@vkontakte/videoplayer 1.1.59 → 1.1.60-beta.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/evergreen.esm.js CHANGED
@@ -1,60 +1,63 @@
1
1
  /**
2
- * @vkontakte/videoplayer v1.1.59
3
- * Tue, 25 Mar 2025 14:54:58 GMT
4
- * https://st.mycdn.me/static/vkontakte-videoplayer/1-1-59/doc/
2
+ * @vkontakte/videoplayer v1.1.60-beta.0
3
+ * Thu, 03 Apr 2025 12:02:30 GMT
4
+ * https://st.mycdn.me/static/vkontakte-videoplayer/1-1-60/doc/
5
5
  */
6
- var wo=Symbol("$state"),as=Symbol("$state metadata"),Dl=Symbol("legacy props"),Cm=Symbol("");var Bc=!0;var qp=globalThis.process?.env?.NODE_ENV;qp||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 Fe=qp&&!qp.toLowerCase().includes("prod");var kr=Array.isArray,Sm=Array.prototype.indexOf,Ol=Array.from,Kp=Object.keys,Qi=Object.defineProperty,yn=Object.getOwnPropertyDescriptor,Dc=Object.getOwnPropertyDescriptors,Qp=Object.prototype,km=Array.prototype,ls=Object.getPrototypeOf;function Cs(t){return typeof t=="function"}var Ht=()=>{};function Tm(t){return t()}function Ss(t){for(var e=0;e<t.length;e++)t[e]()}var Oc=!1,Em=!1,Gp=[],Im=[];function Pm(){Oc=!1;let t=Gp.slice();Gp=[],Ss(t)}function l_(){Em=!1;let t=Im.slice();Im=[],Ss(t)}function No(t){Oc||(Oc=!0,queueMicrotask(Pm)),Gp.push(t)}function Am(){Oc&&Pm(),Em&&l_()}function Hc(t){return t===this.v}function xa(t,e){return t!=t?e==e:t!==e||t!==null&&typeof t=="object"||typeof t=="function"}function Mm(t,e){return t!==e}function wa(t){return!xa(t,this.v)}function Lm(){if(Fe){let t=new Error(`derived_references_self
6
+ var ta="[",ha="[!",_a="]",Dr={};var _i=Symbol(),ri=Symbol("filename"),hm=Symbol("hmr"),_m="http://www.w3.org/1999/xhtml",Jc="http://www.w3.org/2000/svg";var kd=!0;var eu=globalThis.process?.env?.NODE_ENV;eu||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 $e=eu&&!eu.toLowerCase().includes("prod");var _o=Symbol("$state"),Or=Symbol("$state metadata"),Us=Symbol("legacy props"),bm=Symbol("");var sr=Array.isArray,$m=Array.prototype.indexOf,zs=Array.from,tu=Object.keys,Ri=Object.defineProperty,wn=Object.getOwnPropertyDescriptor,Td=Object.getOwnPropertyDescriptors,iu=Object.prototype,ym=Array.prototype,Hr=Object.getPrototypeOf;function ia(t){return typeof t=="function"}var J=()=>{};function xm(t){return t()}function oa(t){for(var e=0;e<t.length;e++)t[e]()}var qs=[],ou=[];function wm(){var t=qs;qs=[],oa(t)}function e1(){var t=ou;ou=[],oa(t)}function Ao(t){qs.length===0&&queueMicrotask(wm),qs.push(t)}function nu(){qs.length>0&&wm(),ou.length>0&&e1()}function Id(t){return t===this.v}function es(t,e){return t!=t?e==e:t!==e||t!==null&&typeof t=="object"||typeof t=="function"}function Sm(t,e){return t!==e}function ts(t){return!es(t,this.v)}function Cm(){if($e){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 Rm(t){if(Fe){let e=new Error(`effect_in_teardown
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 km(t){if($e){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 Vm(){if(Fe){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 Nm(t){if(Fe){let e=new Error(`effect_orphan
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 Tm(){if($e){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 Im(t){if($e){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 Bm(){if(Fe){let t=new Error(`effect_update_depth_exceeded
12
+ https://svelte.dev/e/effect_orphan`);throw e.name="Svelte error",e}else throw new Error("https://svelte.dev/e/effect_orphan")}function Em(){if($e){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 Dm(){if(Fe){let t=new Error(`hydration_failed
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 Am(){if($e){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 Om(){if(Fe){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 Hm(t){if(Fe){let e=new Error(`props_invalid_value
16
+ https://svelte.dev/e/hydration_failed`);throw t.name="Svelte error",t}else throw new Error("https://svelte.dev/e/hydration_failed")}function Pm(){if($e){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 Mm(t){if($e){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 Fm(t){if(Fe){let e=new Error(`rune_outside_svelte
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 Lm(t){if($e){let e=new Error(`props_rest_readonly
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 Vm(t){if($e){let e=new Error(`rune_outside_svelte
19
21
  The \`${t}\` rune is only available inside \`.svelte\` and \`.svelte.js/ts\` files
20
- 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 Um(){if(Fe){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 zm(){if(Fe){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 Wm(){if(Fe){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 qm(){if(Fe){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 Wr=!1,qr=!1;function Km(){Wr=!0}var Ca="[",Ws="[!",qs="]",cs={};var Li=Symbol(),pi=Symbol("filename"),Qm=Symbol("hmr"),Ks="http://www.w3.org/2000/svg";var Hl=null;function ds(t){let e=Error(),i=e.stack;if(i){let o=i.split(`
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 Rm(){if($e){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 Bm(){if($e){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 Nm(){if($e){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 Dm(){if($e){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 Er=!1,Ar=!1;function Om(){Er=!0}var Ks=null;function Fr(t){let e=Error(),i=e.stack;if(i){let o=i.split(`
21
23
  `),n=[`
22
- `];for(let s=0;s<o.length;s++){let a=o[s];if(a!=="Error"){if(a.includes("validate_each_keys"))return null;a.includes("svelte/src/internal")||n.push(a)}}if(n.length===1)return null;Qi(e,"stack",{value:n.join(`
23
- `)}),Qi(e,"name",{value:`${t}Error`})}return e}var Qs="font-weight: bold",Gs="font-weight: normal";function Ym(t,e,i){Fe?console.warn(`%c[svelte] hydration_attribute_changed
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;Ri(e,"stack",{value:n.join(`
25
+ `)}),Ri(e,"name",{value:`${t}Error`})}return e}var ba=new Set,is=new Map;function lu(t){ba=t}function wi(t,e){var i={f:0,v:t,reactions:null,equals:Id,rv:0,wv:0};return $e&&Ar&&(i.created=e??Fr("CreatedAt"),i.debug=null),i}function Y(t){return t1(wi(t))}function zr(t,e=!1){let i=wi(t);return e||(i.equals=ts),Er&&wt!==null&&wt.l!==null&&(wt.l.s??=[]).push(i),i}function t1(t){return Tt!==null&&!Cn&&(Tt.f&2)!==0&&(lr===null?Um([t]):lr.push(t)),t}function N(t,e){return Tt!==null&&!Cn&&Pr()&&(Tt.f&18)!==0&&(lr===null||!lr.includes(t))&&Dm(),os(t,e)}function os(t,e){if(!t.equals(e)){var i=t.v;if(ya?is.set(t,e):is.set(t,i),t.v=e,t.wv=Qs(),$e&&Ar&&(t.updated=Fr("UpdatedAt"),vt!=null&&(t.trace_need_increase=!0,t.trace_v??=i)),Fm(t,2048),Pr()&&vt!==null&&(vt.f&1024)!==0&&(vt.f&96)===0&&(Sn===null?zm([t]):Sn.push(t)),$e&&ba.size>0){let o=Array.from(ba);for(let n of o)(n.f&1024)!==0&&Lo(n,4096),na(n)&&ns(n);ba.clear()}}return e}function Fm(t,e){var i=t.reactions;if(i!==null)for(var o=Pr(),n=i.length,a=0;a<n;a++){var s=i[a],d=s.f;if((d&2048)===0&&!(!o&&s===vt)){if($e&&(d&262144)!==0){ba.add(s);continue}Lo(s,e),(d&1280)!==0&&((d&2)!==0?Fm(s,4096):rs(s))}}}function m(t){var e=2050,i=Tt!==null&&(Tt.f&2)!==0?Tt:null;vt===null||i!==null&&(i.f&256)!==0?e|=256:vt.f|=1048576;let o={ctx:wt,deps:null,effects:null,equals:Id,f:e,fn:t,reactions:null,rv:0,v:null,wv:0,parent:i??vt};return $e&&Ar&&(o.created=Fr("CreatedAt")),o}function cr(t){let e=m(t);return e.equals=ts,e}function Ed(t){var e=t.effects;if(e!==null){t.effects=null;for(var i=0;i<e.length;i+=1)Ni(e[i])}}var du=[];function i1(t){for(var e=t.parent;e!==null;){if((e.f&2)===0)return e;e=e.parent}return null}function o1(t){var e,i=vt;if(Bi(i1(t)),$e){let o=ba;lu(new Set);try{du.includes(t)&&Cm(),du.push(t),Ed(t),e=Ad(t)}finally{Bi(i),lu(o),du.pop()}}else try{Ed(t),e=Ad(t)}finally{Bi(i)}return e}function uu(t){var e=o1(t),i=(qr||(t.f&256)!==0)&&t.deps!==null?4096:1024;Lo(t,i),t.equals(e)||(t.v=e,t.wv=Qs())}var xa="font-weight: bold",wa="font-weight: normal";function qm(t,e,i){$e?console.warn(`%c[svelte] hydration_attribute_changed
24
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
25
- https://svelte.dev/e/hydration_attribute_changed`,Qs,Gs):console.warn("https://svelte.dev/e/hydration_attribute_changed")}function jm(t){Fe?console.warn(`%c[svelte] hydration_html_changed
27
+ https://svelte.dev/e/hydration_attribute_changed`,xa,wa):console.warn("https://svelte.dev/e/hydration_attribute_changed")}function Km(t){$e?console.warn(`%c[svelte] hydration_html_changed
26
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"}
27
- https://svelte.dev/e/hydration_html_changed`,Qs,Gs):console.warn("https://svelte.dev/e/hydration_html_changed")}function Ys(t){Fe?console.warn(`%c[svelte] hydration_mismatch
29
+ https://svelte.dev/e/hydration_html_changed`,xa,wa):console.warn("https://svelte.dev/e/hydration_html_changed")}function Sa(t){$e?console.warn(`%c[svelte] hydration_mismatch
28
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"}
29
- https://svelte.dev/e/hydration_mismatch`,Qs,Gs):console.warn("https://svelte.dev/e/hydration_mismatch")}function Zm(){Fe?console.warn(`%c[svelte] lifecycle_double_unmount
31
+ https://svelte.dev/e/hydration_mismatch`,xa,wa):console.warn("https://svelte.dev/e/hydration_mismatch")}function Wm(){$e?console.warn(`%c[svelte] lifecycle_double_unmount
30
32
  %cTried to unmount a component that was not mounted
31
- https://svelte.dev/e/lifecycle_double_unmount`,Qs,Gs):console.warn("https://svelte.dev/e/lifecycle_double_unmount")}function Xm(t,e,i){Fe?console.warn(`%c[svelte] ownership_invalid_binding
33
+ https://svelte.dev/e/lifecycle_double_unmount`,xa,wa):console.warn("https://svelte.dev/e/lifecycle_double_unmount")}function Qm(t,e,i){$e?console.warn(`%c[svelte] ownership_invalid_binding
32
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}
33
- https://svelte.dev/e/ownership_invalid_binding`,Qs,Gs):console.warn("https://svelte.dev/e/ownership_invalid_binding")}function Zp(t,e){Fe?console.warn(`%c[svelte] ownership_invalid_mutation
35
+ https://svelte.dev/e/ownership_invalid_binding`,xa,wa):console.warn("https://svelte.dev/e/ownership_invalid_binding")}function pu(t,e){$e?console.warn(`%c[svelte] ownership_invalid_mutation
34
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"}
35
- https://svelte.dev/e/ownership_invalid_mutation`,Qs,Gs):console.warn("https://svelte.dev/e/ownership_invalid_mutation")}function Fc(t){Fe?console.warn(`%c[svelte] state_proxy_equality_mismatch
37
+ https://svelte.dev/e/ownership_invalid_mutation`,xa,wa):console.warn("https://svelte.dev/e/ownership_invalid_mutation")}function Pd(t){$e?console.warn(`%c[svelte] state_proxy_equality_mismatch
36
38
  %cReactive \`$state(...)\` proxies and the values they proxy have different identities. Because of this, comparisons with \`${t}\` will produce unexpected results
37
- https://svelte.dev/e/state_proxy_equality_mismatch`,Qs,Gs):console.warn("https://svelte.dev/e/state_proxy_equality_mismatch")}var c_={},d_=/at (?:.+ \()?(.+):(\d+):(\d+)\)?$/,u_=/@(.+):(\d+):(\d+)$/;function p_(){let t=new Error().stack;if(!t)return null;let e=[];for(let i of t.split(`
38
- `)){let o=d_.exec(i)??u_.exec(i);o&&e.push({file:o[1],line:+o[2],column:+o[3]})}return e}function Jm(){let t=p_()?.slice(4);if(!t)return null;for(let e=0;e<t.length;e++){let i=t[e],o=c_[i.file];if(!o){if(e===0)return null;continue}for(let n of o){if(n.end==null)return null;if(n.start.line<i.line&&n.end.line>i.line)return n.component}}return null}var Uc=Symbol("ADD_OWNER");function Jp(t,e,i=!1,o=!1){if(t&&!i){let n=Do,s=t[as];if(s&&!tf(s,n)){let a=of(s);e&&e[pi]!==n[pi]&&!o&&Xm(n[pi],e[pi],a[pi])}}Xp(t,e,new Set)}function ef(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 Xp(t,e,i){let o=t?.[as];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),Uc in t&&t[Uc])mo(()=>{t[Uc](e)});else{var n=ls(t);if(n===Object.prototype)for(let s in t)Xp(t[s],e,i);else if(n===Array.prototype)for(let s=0;s<t.length;s+=1)Xp(t[s],e,i)}}}function tf(t,e){return t.owners===null?!0:t.owners.has(e)||[...t.owners].some(i=>i[pi]===e?.[pi])||t.parent!==null&&tf(t.parent,e)}function of(t){return t?.owners?.values().next().value??of(t.parent)}var f_=!1;function ev(t){if(f_)return;let e=Jm();if(e&&!tf(t,e)){let i=of(t);i[pi]!==e[pi]?Zp(e[pi],i[pi]):Zp()}}function ka(t){if(Fe){let e=new Error(`lifecycle_outside_component
39
+ https://svelte.dev/e/state_proxy_equality_mismatch`,xa,wa):console.warn("https://svelte.dev/e/state_proxy_equality_mismatch")}var We=!1;function Di(t){We=t}var lt;function ai(t){if(t===null)throw Sa(),Dr;return lt=t}function bi(){return ai(so(lt))}function g(t){if(We){if(so(lt)!==null)throw Sa(),Dr;lt=t}}function fe(t=1){if(We){for(var e=t,i=lt;e--;)i=so(i);lt=i}}function as(){for(var t=0,e=lt;;){if(e.nodeType===8){var i=e.data;if(i===_a){if(t===0)return e;t-=1}else(i===ta||i===ha)&&(t+=1)}var o=so(e);e.remove(),e=o}}function le(t,e=null,i){var o=null;if($e&&Ar&&(o=Fr("CreatedAt")),typeof t!="object"||t===null||_o in t)return t;let n=Hr(t);if(n!==iu&&n!==ym)return t;var a=new Map,s=sr(t),d=wi(0);s&&a.set("length",wi(t.length,o));var l;if($e)if(l={parent:e,owners:null},i){let c=i.v?.[Or]?.owners;l.owners=c?new Set(c):null}else l.owners=e===null?wt!==null?new Set([wt.function]):null:new Set;return new Proxy(t,{defineProperty(c,u,_){(!("value"in _)||_.configurable===!1||_.enumerable===!1||_.writable===!1)&&Rm();var f=a.get(u);return f===void 0?(f=wi(_.value,o),a.set(u,f)):N(f,le(_.value,l)),!0},deleteProperty(c,u){var _=a.get(u);if(_===void 0)u in c&&a.set(u,wi(_i,o));else{if(s&&typeof u=="string"){var f=a.get("length"),y=Number(u);Number.isInteger(y)&&y<f.v&&N(f,y)}N(_,_i),Gm(d)}return!0},get(c,u,_){if($e&&u===Or)return l;if(u===_o)return t;var f=a.get(u),y=u in c;if(f===void 0&&(!y||wn(c,u)?.writable)&&(f=wi(le(y?c[u]:_i,l),o),a.set(u,f)),f!==void 0){var x=r(f);if($e){var w=x?.[Or];w&&w?.parent!==l&&fu(l,w)}return x===_i?void 0:x}return Reflect.get(c,u,_)},getOwnPropertyDescriptor(c,u){var _=Reflect.getOwnPropertyDescriptor(c,u);if(_&&"value"in _){var f=a.get(u);f&&(_.value=r(f))}else if(_===void 0){var y=a.get(u),x=y?.v;if(y!==void 0&&x!==_i)return{enumerable:!0,configurable:!0,value:x,writable:!0}}return _},has(c,u){if($e&&u===Or||u===_o)return!0;var _=a.get(u),f=_!==void 0&&_.v!==_i||Reflect.has(c,u);if(_!==void 0||vt!==null&&(!f||wn(c,u)?.writable)){_===void 0&&(_=wi(f?le(c[u],l):_i,o),a.set(u,_));var y=r(_);if(y===_i)return!1}return f},set(c,u,_,f){var y=a.get(u),x=u in c;if(s&&u==="length")for(var w=_;w<y.v;w+=1){var S=a.get(w+"");S!==void 0?N(S,_i):w in c&&(S=wi(_i,o),a.set(w+"",S))}if(y===void 0?(!x||wn(c,u)?.writable)&&(y=wi(void 0,o),N(y,le(_,l)),a.set(u,y)):(x=y.v!==_i,N(y,le(_,l))),$e){var I=_?.[Or];I&&I?.parent!==l&&fu(l,I),jm(l)}var L=Reflect.getOwnPropertyDescriptor(c,u);if(L?.set&&L.set.call(f,_),!x){if(s&&typeof u=="string"){var A=a.get("length"),P=Number(u);Number.isInteger(P)&&P>=A.v&&N(A,P+1)}Gm(d)}return!0},ownKeys(c){r(d);var u=Reflect.ownKeys(c).filter(y=>{var x=a.get(y);return x===void 0||x.v!==_i});for(var[_,f]of a)f.v!==_i&&!(_ in c)&&u.push(_);return u},setPrototypeOf(){Bm()}})}function Gm(t,e=1){N(t,t.v+e)}function Md(t){return t!==null&&typeof t=="object"&&_o in t?t[_o]:t}function Ym(){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??0;l<this.length;l+=1)if(Md(this[l])===a){Pd("array.indexOf(...)");break}}return d},t.lastIndexOf=function(a,s){let d=o.call(this,a,s??this.length-1);if(d===-1){for(let l=0;l<=(s??this.length-1);l+=1)if(Md(this[l])===a){Pd("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(Md(this[l])===a){Pd("array.includes(...)");break}}return d},Array.__svelte_cleanup=()=>{t.indexOf=i,t.lastIndexOf=o,t.includes=n}}var Ca,Zm,Gs,Xm,Jm;function Ld(){if(Ca===void 0){Ca=window,Zm=document,Gs=/Firefox/.test(navigator.userAgent);var t=Element.prototype,e=Node.prototype;Xm=wn(e,"firstChild").get,Jm=wn(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,$e&&(t.__svelte_meta=null,Ym())}}function Vo(t=""){return document.createTextNode(t)}function si(t){return Xm.call(t)}function so(t){return Jm.call(t)}function h(t,e){if(!We)return si(t);var i=si(lt);if(i===null)i=lt.appendChild(Vo());else if(e&&i.nodeType!==3){var o=Vo();return i?.before(o),ai(o),o}return ai(i),i}function pe(t,e){if(!We){var i=si(t);return i.nodeType===8&&i.data===""?so(i):i}if(e&&lt?.nodeType!==3){var o=Vo();return lt?.before(o),ai(o),o}return lt}function E(t,e=1,i=!1){let o=We?lt:t;for(var n;e--;)n=o,o=so(o);if(!We)return o;var a=o?.nodeType;if(i&&a!==3){var s=Vo();return o===null?n?.after(s):o.before(s),ai(s),s}return ai(o),o}function js(t){t.textContent=""}var ev=new WeakSet,Vd=!1,Xs=!1,Ys=null,ka=!1,ya=!1;function gu(t){ya=t}var Zs=[],Bd=[],Tt=null,Cn=!1;function Zi(t){Tt=t}var vt=null;function Bi(t){vt=t}var lr=null;function Um(t){lr=t}var Ro=null,Tn=0,Sn=null;function zm(t){Sn=t}var rv=1,Nd=0,qr=!1,Ws=null;function Qs(){return++rv}function na(t){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&&vt!==null&&!qr,l=i.length;if(s||d){var c=t,u=c.parent;for(n=0;n<l;n++)a=i[n],(s||!a?.reactions?.includes(c))&&(a.reactions??=[]).push(c);s&&(c.f^=512),d&&u!==null&&(u.f&256)===0&&(c.f^=256)}for(n=0;n<l;n++)if(a=i[n],na(a)&&uu(a),a.wv>t.wv)return!0}(!o||vt!==null&&!qr)&&Lo(t,1024)}return!1}function tv(t,e){for(var i=e;i!==null;){if((i.f&128)!==0)try{i.fn(t);return}catch{i.f^=128}i=i.parent}throw Vd=!1,t}function iv(t){return(t.f&16384)===0&&(t.parent===null||(t.parent.f&128)===0)}function ls(t,e,i,o){if(Vd){if(i===null&&(Vd=!1),iv(e))throw t;return}if(i!==null&&(Vd=!0),!$e||o===null||!(t instanceof Error)||ev.has(t)){tv(t,e);return}ev.add(t);let n=[],a=e.fn?.name;a&&n.push(a);let s=o;for(;s!==null;){if($e){var d=s.function?.[ri];if(d){let u=d.split("/").pop();n.push(u)}}s=s.p}let l=Gs?" ":" ";Ri(t,"message",{value:t.message+`
40
+ ${n.map(u=>`
41
+ ${l}in ${u}`).join("")}
42
+ `}),Ri(t,"component_stack",{value:n});let c=t.stack;if(c){let u=c.split(`
43
+ `),_=[];for(let f=0;f<u.length;f++){let y=u[f];y.includes("svelte/src/internal")||_.push(y)}Ri(t,"stack",{value:_.join(`
44
+ `)})}if(tv(t,e),iv(e))throw t}function av(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?av(a,e,!1):e===a&&(i?Lo(a,2048):(a.f&1024)!==0&&Lo(a,4096),rs(a))}}function Ad(t){var e=Ro,i=Tn,o=Sn,n=Tt,a=qr,s=lr,d=wt,l=Cn,c=t.f;Ro=null,Tn=0,Sn=null,qr=(c&256)!==0&&(Cn||!ka||Tt===null),Tt=(c&96)===0?t:null,lr=null,el(t.ctx),Cn=!1,Nd++;try{var u=(0,t.fn)(),_=t.deps;if(Ro!==null){var f;if(Js(t,Tn),_!==null&&Tn>0)for(_.length=Tn+Ro.length,f=0;f<Ro.length;f++)_[Tn+f]=Ro[f];else t.deps=_=Ro;if(!qr)for(f=Tn;f<_.length;f++)(_[f].reactions??=[]).push(t)}else _!==null&&Tn<_.length&&(Js(t,Tn),_.length=Tn);if(Pr()&&Sn!==null&&!Cn&&_!==null&&(t.f&6146)===0)for(f=0;f<Sn.length;f++)av(Sn[f],t);return n!==null&&(Nd++,Sn!==null&&(o===null?o=Sn:o.push(...Sn))),u}finally{Ro=e,Tn=i,Sn=o,Tt=n,qr=a,lr=s,el(d),Cn=l}}function n1(t,e){let i=e.reactions;if(i!==null){var o=$m.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&&(Ro===null||!Ro.includes(e))&&(Lo(e,4096),(e.f&768)===0&&(e.f^=512),Ed(e),Js(e,0))}function Js(t,e){var i=t.deps;if(i!==null)for(var o=e;o<i.length;o++)n1(t,i[o])}function ns(t){var e=t.f;if((e&16384)===0){Lo(t,1024);var i=vt,o=wt,n=ka;if(vt=t,ka=!0,$e){var a=Bo;tl(t.component_function)}try{(e&16)!==0?sv(t):_u(t),hu(t);var s=Ad(t);t.teardown=typeof s=="function"?s:null,t.wv=rv;var d=t.deps;if($e&&Ar&&(t.f&2048)!==0&&d!==null)for(let c=0;c<d.length;c++){var l=d[c];l.trace_need_increase&&(l.wv=Qs(),l.trace_need_increase=void 0,l.trace_v=void 0)}$e&&Bd.push(t)}catch(c){ls(c,t,i,o||t.ctx)}finally{ka=n,vt=i,$e&&tl(a)}}}function ov(){console.error("Last ten effects were: ",Bd.slice(-10).map(t=>t.fn)),Bd=[]}function r1(){try{Em()}catch(t){if($e&&Ri(t,"stack",{value:""}),Ys!==null)if($e)try{ls(t,Ys,null,null)}catch(e){throw ov(),e}else ls(t,Ys,null,null);else throw $e&&ov(),t}}function mu(){var t=ka;try{var e=0;for(ka=!0;Zs.length>0;){e++>1e3&&r1();var i=Zs,o=i.length;Zs=[];for(var n=0;n<o;n++){var a=s1(i[n]);a1(a)}}}finally{Xs=!1,ka=t,Ys=null,$e&&(Bd=[]),is.clear()}}function a1(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{na(o)&&(ns(o),o.deps===null&&o.first===null&&o.nodes_start===null&&(o.teardown===null?bu(o):o.fn=null))}catch(n){ls(n,o,null,o.ctx)}}}function rs(t){Xs||(Xs=!0,queueMicrotask(mu));for(var e=Ys=t;e.parent!==null;){e=e.parent;var i=e.f;if((i&96)!==0){if((i&1024)===0)return;e.f^=1024}}Zs.push(e)}function s1(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=Tt;try{Tt=i,na(i)&&ns(i)}catch(c){ls(c,i,null,i.ctx)}finally{Tt=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 ds(t){var e;for(t&&(Xs=!0,mu(),e=t()),nu();Zs.length>0;)Xs=!0,mu(),nu();return e}async function Xi(){await Promise.resolve(),ds()}function r(t){var e=t.f,i=(e&2)!==0;if(Ws!==null&&Ws.add(t),Tt!==null&&!Cn){lr!==null&&lr.includes(t)&&Nm();var o=Tt.deps;t.rv<Nd&&(t.rv=Nd,Ro===null&&o!==null&&o[Tn]===t?Tn++:Ro===null?Ro=[t]:(!qr||!Ro.includes(t))&&Ro.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,na(n)&&uu(n)),$e&&Ar&&Ks!==null&&Tt!==null&&Ks.reaction===Tt){if(t.debug)t.debug();else if(t.created){var s=Ks.entries.get(t);s===void 0&&(s={read:[]},Ks.entries.set(t,s)),s.read.push(Fr("TracedAt"))}}return ya&&is.has(t)?is.get(t):t.v}function pt(t){var e=Cn;try{return Cn=!0,t()}finally{Cn=e}}var l1=-7169;function Lo(t,e){t.f=t.f&l1|e}function Od(t){if(!(typeof t!="object"||!t||t instanceof EventTarget)){if(_o in t)Dd(t);else if(!Array.isArray(t))for(let e in t){let i=t[e];typeof i=="object"&&i&&_o in i&&Dd(i)}}}function Dd(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{Dd(t[o],e)}catch{}let i=Hr(t);if(i!==Object.prototype&&i!==Array.prototype&&i!==Map.prototype&&i!==Set.prototype&&i!==Date.prototype){let o=Td(i);for(let n in o){let a=o[n].get;if(a)try{a.call(t)}catch{}}}}}function yu(t){vt===null&&Tt===null&&Im(t),Tt!==null&&(Tt.f&256)!==0&&vt===null&&Tm(),ya&&km(t)}function d1(t,e){var i=e.last;i===null?e.last=e.first=t:(i.next=t,t.prev=i,e.last=t)}function Ta(t,e,i,o=!0){var n=vt;if($e)for(;n!==null&&(n.f&262144)!==0;)n=n.parent;var a={ctx:wt,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($e&&(a.component_function=Bo),i)try{ns(a),a.f|=32768}catch(l){throw Ni(a),l}else e!==null&&rs(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&&d1(a,n),Tt!==null&&(Tt.f&2)!==0)){var d=Tt;(d.effects??=[]).push(a)}return a}function No(t){let e=Ta(8,null,!1);return Lo(e,1024),e.teardown=t,e}function Qe(t){yu("$effect");var e=vt!==null&&(vt.f&32)!==0&&wt!==null&&!wt.m;if($e&&Ri(t,"name",{value:"$effect"}),e){var i=wt;(i.e??=[]).push({fn:t,effect:vt,reaction:Tt})}else{var o=en(t);return o}}function cs(t){return yu("$effect.pre"),$e&&Ri(t,"name",{value:"$effect.pre"}),Ji(t)}function Fd(t){let e=Ta(64,t,!0);return()=>{Ni(e)}}function dv(t){let e=Ta(64,t,!0);return(i={})=>new Promise(o=>{i.outro?tn(e,()=>{Ni(e),o(void 0)}):(Ni(e),o(void 0))})}function en(t){return Ta(4,t,!1)}function Ji(t){return Ta(8,t,!0)}function C(t,e=[],i=m){let o=e.map(i),n=()=>t(...o.map(r));return $e&&Ri(n,"name",{value:"{expression}"}),Oi(n)}function Oi(t,e=0){return Ta(24|e,t,!0)}function Si(t,e=!0){return Ta(40,t,!0,e)}function hu(t){var e=t.teardown;if(e!==null){let i=ya,o=Tt;gu(!0),Zi(null);try{e.call(null)}finally{gu(i),Zi(o)}}}function _u(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:Ni(i,e),i=o}}function sv(t){for(var e=t.first;e!==null;){var i=e.next;(e.f&32)===0&&Ni(e),e=i}}function Ni(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:so(o);o.remove(),o=a}i=!0}_u(t,e&&!i),Js(t,0),Lo(t,16384);var s=t.transitions;if(s!==null)for(let l of s)l.stop();hu(t);var d=t.parent;d!==null&&d.first!==null&&bu(t),$e&&(t.component_function=null),t.next=t.prev=t.teardown=t.ctx=t.deps=t.fn=t.nodes_start=t.nodes_end=null}function bu(t){var e=t.parent,i=t.prev,o=t.next;i!==null&&(i.next=o),o!==null&&(o.prev=i),e!==null&&(e.first===t&&(e.first=o),e.last===t&&(e.last=i))}function tn(t,e){var i=[];Ud(t,i,!0),xu(i,()=>{Ni(t),e&&e()})}function xu(t,e){var i=t.length;if(i>0){var o=()=>--i||e();for(var n of t)n.out(o)}else e()}function Ud(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;Ud(o,e,a?i:!1),o=n}}}function Kr(t){cv(t,!0)}function cv(t,e){if((t.f&8192)!==0){t.f^=8192,(t.f&1024)===0&&(t.f^=1024),na(t)&&(Lo(t,2048),rs(t));for(var i=t.first;i!==null;){var o=i.next,n=(i.f&65536)!==0||(i.f&32)!==0;cv(i,n?e:!1),i=o}if(t.transitions!==null)for(let a of t.transitions)(a.is_global||e)&&a.in()}}var c1={},u1=/at (?:.+ \()?(.+):(\d+):(\d+)\)?$/,p1=/@(.+):(\d+):(\d+)$/;function f1(){let t=new Error().stack;if(!t)return null;let e=[];for(let i of t.split(`
45
+ `)){let o=u1.exec(i)??p1.exec(i);o&&e.push({file:o[1],line:+o[2],column:+o[3]})}return e}function uv(){let t=f1()?.slice(4);if(!t)return null;for(let e=0;e<t.length;e++){let i=t[e],o=c1[i.file];if(!o){if(e===0)return null;continue}for(let n of o){if(n.end==null)return null;if(n.start.line<i.line&&n.end.line>i.line)return n.component}}return null}var zd=Symbol("ADD_OWNER");function wu(t,e,i=!1,o=!1){if(t&&!i){let n=Bo,a=t[Or];if(a&&!Su(a,n)){let s=Cu(a);e&&e[ri]!==n[ri]&&!o&&Qm(n[ri],e[ri],s[ri])}}qd(t,e,new Set)}function fu(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 qd(t,e,i){let o=t?.[Or];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),zd in t&&t[zd])Ji(()=>{t[zd](e)});else{var n=Hr(t);if(n===Object.prototype)for(let a in t)if(Object.getOwnPropertyDescriptor(t,a)?.get){let s=_i;Ji(()=>{let d=t[a];s!==d&&(s=d,qd(d,e,i))})}else qd(t[a],e,i);else if(n===Array.prototype)for(let a=0;a<t.length;a+=1)qd(t[a],e,i)}}}function Su(t,e){return t.owners===null?!0:t.owners.has(e)||ri in e&&[...t.owners].some(i=>i[ri]===e[ri])||t.parent!==null&&Su(t.parent,e)}function Cu(t){return t?.owners?.values().next().value??Cu(t.parent)}var m1=!1;function jm(t){if(m1)return;let e=uv();if(e&&!Su(t,e)){let i=Cu(t);i[ri]!==e[ri]?pu(e[ri],i[ri]):pu()}}function us(t){if($e){let e=new Error(`lifecycle_outside_component
39
46
  \`${t}(...)\` can only be used during component initialisation
40
- https://svelte.dev/e/lifecycle_outside_component`);throw e.name="Svelte error",e}else throw new Error("https://svelte.dev/e/lifecycle_outside_component")}var At=null;function Ul(t){At=t}var Do=null;function zl(t){Do=t}function Ta(t){return nf("getContext").get(t)}function Ia(t,e){let i=nf("setContext");return Fe&&xt(()=>Jp(e,null,!0)),i.set(t,e),e}function Wl(){return nf("getAllContexts")}function I(t,e=!1,i){At={p:At,c:null,e:null,m:!1,s:t,x:null,l:null},Wr&&!e&&(At.l={s:null,u:null,r1:[],r2:Ci(!1)}),Fe&&(At.function=i,Do=i)}function E(t){let e=At;if(e!==null){t!==void 0&&(e.x=t);let a=e.e;if(a!==null){var i=wt,o=Ft;e.e=null;try{for(var n=0;n<a.length;n++){var s=a[n];wi(s.effect),eo(s.reaction),Jo(s.fn)}}finally{wi(i),eo(o)}}At=e.p,Fe&&(Do=e.p?.function??null),e.m=!0}return t||{}}function Kr(){return!Wr||At!==null&&At.l===null}function nf(t){return At===null&&ka(t),At.c??=new Map(v_(At)||void 0)}function v_(t){let e=t.p;for(;e!==null;){let i=e.c;if(i!==null)return i;e=e.p}return null}var js=new Set;function sf(t){js=t}function Ci(t,e){var i={f:0,v:t,reactions:null,equals:Hc,rv:0,wv:0};return Fe&&qr&&(i.created=e??ds("CreatedAt"),i.debug=null),i}function de(t){return g_(Ci(t))}function us(t,e=!1){let i=Ci(t);return e||(i.equals=wa),Wr&&At!==null&&At.l!==null&&(At.l.s??=[]).push(i),i}function g_(t){return Ft!==null&&!Ir&&Ft.f&2&&(Tr===null?iv([t]):Tr.push(t)),t}function K(t,e){return Ft!==null&&!Ir&&Kr()&&Ft.f&18&&(Tr===null||!Tr.includes(t))&&qm(),Pa(t,e)}function Pa(t,e){if(!t.equals(e)){var i=t.v;if(t.v=e,t.wv=ql(),Fe&&qr&&(t.updated=ds("UpdatedAt"),wt!=null&&(t.trace_need_increase=!0,t.trace_v??=i)),tv(t,2048),Kr()&&wt!==null&&wt.f&1024&&!(wt.f&96)&&(Qr===null?ov([t]):Qr.push(t)),Fe&&js.size>0){let n=Array.from(js);var o=ps;Ea(!0);try{for(let s of n)s.f&1024&&Oo(s,4096),ks(s)&&Aa(s)}finally{Ea(o)}js.clear()}}return e}function zc(t,e=1){var i=r(t),o=e===1?i++:i--;return K(t,i),o}function tv(t,e){var i=t.reactions;if(i!==null)for(var o=Kr(),n=i.length,s=0;s<n;s++){var a=i[s],l=a.f;if(!(l&2048)&&!(!o&&a===wt)){if(Fe&&l&262144){js.add(a);continue}Oo(a,e),l&1280&&(l&2?tv(a,4096):Ma(a))}}}function _(t){var e=2050,i=Ft!==null&&Ft.f&2?Ft:null;wt===null||i!==null&&i.f&256?e|=256:wt.f|=1048576;let o={ctx:At,deps:null,effects:null,equals:Hc,f:e,fn:t,reactions:null,rv:0,v:null,wv:0,parent:i??wt};return Fe&&qr&&(o.created=ds("CreatedAt")),o}function Er(t){let e=_(t);return e.equals=wa,e}function Wc(t){var e=t.effects;if(e!==null){t.effects=null;for(var i=0;i<e.length;i+=1)Gi(e[i])}}var af=[];function h_(t){for(var e=t.parent;e!==null;){if(!(e.f&2))return e;e=e.parent}return null}function __(t){var e,i=wt;if(wi(h_(t)),Fe){let o=js;sf(new Set);try{af.includes(t)&&Lm(),af.push(t),Wc(t),e=qc(t)}finally{wi(i),sf(o),af.pop()}}else try{Wc(t),e=qc(t)}finally{wi(i)}return e}function cf(t){var e=__(t),i=(fs||t.f&256)&&t.deps!==null?4096:1024;Oo(t,i),t.equals(e)||(t.v=e,t.wv=ql())}var cv=0,$_=1,nv=new WeakSet,Kc=!1,Qc=cv,Kl=!1,La=null,ps=!1,Zc=!1;function Ea(t){ps=t}function uf(t){Zc=t}var Xs=[],Ra=0,Ql=[],Ft=null,Ir=!1;function eo(t){Ft=t}var wt=null;function wi(t){wt=t}var Tr=null;function iv(t){Tr=t}var Ho=null,Sn=0,Qr=null;function ov(t){Qr=t}var dv=1,Yc=0,fs=!1,Fl=null;function ql(){return++dv}function ks(t){var e=t.f;if(e&2048)return!0;if(e&4096){var i=t.deps,o=(e&256)!==0;if(i!==null){var n,s,a=(e&512)!==0,l=o&&wt!==null&&!fs,c=i.length;if(a||l){for(n=0;n<c;n++)s=i[n],(a||!s?.reactions?.includes(t))&&(s.reactions??=[]).push(t);a&&(t.f^=512)}for(n=0;n<c;n++)if(s=i[n],ks(s)&&cf(s),s.wv>t.wv)return!0}(!o||wt!==null&&!fs)&&Oo(t,1024)}return!1}function rv(t,e){for(var i=e;i!==null;){if(i.f&128)try{i.fn(t);return}catch{i.f^=128}i=i.parent}throw Kc=!1,t}function sv(t){return(t.f&16384)===0&&(t.parent===null||(t.parent.f&128)===0)}function Na(t,e,i,o){if(Kc){if(i===null&&(Kc=!1),sv(e))throw t;return}if(i!==null&&(Kc=!0),!Fe||o===null||!(t instanceof Error)||nv.has(t)){rv(t,e);return}nv.add(t);let n=[],s=e.fn?.name;s&&n.push(s);let a=o;for(;a!==null;){if(Fe){var l=a.function?.[pi];if(l){let f=l.split("/").pop();n.push(f)}}a=a.p}let c=/Firefox/.test(navigator.userAgent)?" ":" ";Qi(t,"message",{value:t.message+`
41
- ${n.map(f=>`
42
- ${c}in ${f}`).join("")}
43
- `}),Qi(t,"component_stack",{value:n});let p=t.stack;if(p){let f=p.split(`
44
- `),v=[];for(let m=0;m<f.length;m++){let g=f[m];g.includes("svelte/src/internal")||v.push(g)}Qi(t,"stack",{value:v.join(`
45
- `)})}if(rv(t,e),sv(e))throw t}function uv(t,e,i=0){var o=t.reactions;if(o!==null)for(var n=0;n<o.length;n++){var s=o[n];s.f&2?uv(s,e,i+1):e===s&&(i===0?Oo(s,2048):s.f&1024&&Oo(s,4096),Ma(s))}}function qc(t){var e=Ho,i=Sn,o=Qr,n=Ft,s=fs,a=Tr,l=At,c=Ir,p=t.f;Ho=null,Sn=0,Qr=null,Ft=p&96?null:t,fs=(p&256)!==0&&(!ps||n===null||c),Tr=null,Ul(t.ctx),Ir=!1,Yc++;try{var f=(0,t.fn)(),v=t.deps;if(Ho!==null){var m;if(Gl(t,Sn),v!==null&&Sn>0)for(v.length=Sn+Ho.length,m=0;m<Ho.length;m++)v[Sn+m]=Ho[m];else t.deps=v=Ho;if(!fs)for(m=Sn;m<v.length;m++)(v[m].reactions??=[]).push(t)}else v!==null&&Sn<v.length&&(Gl(t,Sn),v.length=Sn);if(Kr()&&Qr!==null&&!(t.f&6146))for(m=0;m<Qr.length;m++)uv(Qr[m],t);return n!==null&&Yc++,f}finally{Ho=e,Sn=i,Qr=o,Ft=n,fs=s,Tr=a,Ul(l),Ir=c}}function b_(t,e){let i=e.reactions;if(i!==null){var o=Sm.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&&(Ho===null||!Ho.includes(e))&&(Oo(e,4096),e.f&768||(e.f^=512),Wc(e),Gl(e,0))}function Gl(t,e){var i=t.deps;if(i!==null)for(var o=e;o<i.length;o++)b_(t,i[o])}function Aa(t){var e=t.f;if(!(e&16384)){Oo(t,1024);var i=wt,o=At;if(wt=t,Fe){var n=Do;zl(t.component_function)}try{e&16?vv(t):ff(t),pf(t);var s=qc(t);t.teardown=typeof s=="function"?s:null,t.wv=dv;var a=t.deps;if(Fe&&qr&&t.f&2048&&a!==null)for(let c=0;c<a.length;c++){var l=a[c];l.trace_need_increase&&(l.wv=ql(),l.trace_need_increase=void 0,l.trace_v=void 0)}Fe&&Ql.push(t)}catch(c){Na(c,t,i,o||t.ctx)}finally{wt=i,Fe&&zl(n)}}}function av(){console.error("Last ten effects were: ",Ql.slice(-10).map(t=>t.fn)),Ql=[]}function pv(){if(Ra>1e3){Ra=0;try{Bm()}catch(t){if(Fe&&Qi(t,"stack",{value:""}),La!==null)if(Fe)try{Na(t,La,null,null)}catch(e){throw av(),e}else Na(t,La,null,null);else throw Fe&&av(),t}}Ra++}function fv(t){var e=t.length;if(e!==0){pv();var i=ps;ps=!0;try{for(var o=0;o<e;o++){var n=t[o];n.f&1024||(n.f^=1024);var s=[];mv(n,s),y_(s)}}finally{ps=i}}}function y_(t){var e=t.length;if(e!==0)for(var i=0;i<e;i++){var o=t[i];if(!(o.f&24576))try{ks(o)&&(Aa(o),o.deps===null&&o.first===null&&o.nodes_start===null&&(o.teardown===null?mf(o):o.fn=null))}catch(n){Na(n,o,null,o.ctx)}}}function x_(){if(Kl=!1,Ra>1001)return;let t=Xs;Xs=[],fv(t),Kl||(Ra=0,La=null,Fe&&(Ql=[]))}function Ma(t){Qc===cv&&(Kl||(Kl=!0,queueMicrotask(x_))),La=t;for(var e=t;e.parent!==null;){e=e.parent;var i=e.f;if(i&96){if(!(i&1024))return;e.f^=1024}}Xs.push(e)}function mv(t,e){var i=t.first,o=[];e:for(;i!==null;){var n=i.f,s=(n&32)!==0,a=s&&(n&1024)!==0,l=i.next;if(!a&&!(n&8192))if(n&8){if(s)i.f^=1024;else{var c=Ft;try{Ft=i,ks(i)&&Aa(i)}catch(m){Na(m,i,null,i.ctx)}finally{Ft=c}}var p=i.first;if(p!==null){i=p;continue}}else n&4&&o.push(i);if(l===null){let m=i.parent;for(;m!==null;){if(t===m)break e;var f=m.next;if(f!==null){i=f;continue e}m=m.parent}}i=l}for(var v=0;v<o.length;v++)p=o[v],e.push(p),mv(p,e)}function d(t){var e=Qc,i=Xs;try{pv();let n=[];Qc=$_,Xs=n,Kl=!1,fv(i);var o=t?.();return Am(),(Xs.length>0||n.length>0)&&d(),Ra=0,La=null,Fe&&(Ql=[]),o}finally{Qc=e,Xs=i}}async function to(){await Promise.resolve(),d()}function r(t){var e=t.f,i=(e&2)!==0;if(Fl!==null&&Fl.add(t),Ft!==null&&!Ir){Tr!==null&&Tr.includes(t)&&Wm();var o=Ft.deps;t.rv<Yc&&(t.rv=Yc,Ho===null&&o!==null&&o[Sn]===t?Sn++:Ho===null?Ho=[t]:(!fs||!Ho.includes(t))&&Ho.push(t))}else if(i&&t.deps===null&&t.effects===null){var n=t,s=n.parent;s!==null&&!(s.f&256)&&(n.f^=256)}if(i&&(n=t,ks(n)&&cf(n)),Fe&&qr&&Hl!==null&&Ft!==null&&Hl.reaction===Ft){if(t.debug)t.debug();else if(t.created){var a=Hl.entries.get(t);a===void 0&&(a={read:[]},Hl.entries.set(t,a)),a.read.push(ds("TracedAt"))}}return t.v}function xt(t){var e=Ir;try{return Ir=!0,t()}finally{Ir=e}}var w_=-7169;function Oo(t,e){t.f=t.f&w_|e}function Xc(t){if(!(typeof t!="object"||!t||t instanceof EventTarget)){if(wo in t)jc(t);else if(!Array.isArray(t))for(let e in t){let i=t[e];typeof i=="object"&&i&&wo in i&&jc(i)}}}function jc(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{jc(t[o],e)}catch{}let i=ls(t);if(i!==Object.prototype&&i!==Array.prototype&&i!==Map.prototype&&i!==Set.prototype&&i!==Date.prototype){let o=Dc(i);for(let n in o){let s=o[n].get;if(s)try{s.call(t)}catch{}}}}}var nt=!1;function Yi(t){nt=t}var _t;function ri(t){if(t===null)throw Ys(),cs;return _t=t}function bi(){return ri(vo(_t))}function $(t){if(nt){if(vo(_t)!==null)throw Ys(),cs;_t=t}}function Te(t=1){if(nt){for(var e=t,i=_t;e--;)i=vo(i);_t=i}}function Da(){for(var t=0,e=_t;;){if(e.nodeType===8){var i=e.data;if(i===qs){if(t===0)return e;t-=1}else(i===Ca||i===Ws)&&(t+=1)}var o=vo(e);e.remove(),e=o}}function ke(t,e=null,i){var o=null;if(Fe&&qr&&(o=ds("CreatedAt")),typeof t!="object"||t===null||wo in t)return t;let n=ls(t);if(n!==Qp&&n!==km)return t;var s=new Map,a=kr(t),l=Ci(0);a&&s.set("length",Ci(t.length,o));var c;if(Fe)if(c={parent:e,owners:null},i){let p=i.v?.[as]?.owners;c.owners=p?new Set(p):null}else c.owners=e===null?At!==null?new Set([At.function]):null:new Set;return new Proxy(t,{defineProperty(p,f,v){(!("value"in v)||v.configurable===!1||v.enumerable===!1||v.writable===!1)&&Um();var m=s.get(f);return m===void 0?(m=Ci(v.value,o),s.set(f,m)):K(m,ke(v.value,c)),!0},deleteProperty(p,f){var v=s.get(f);if(v===void 0)f in p&&s.set(f,Ci(Li,o));else{if(a&&typeof f=="string"){var m=s.get("length"),g=Number(f);Number.isInteger(g)&&g<m.v&&K(m,g)}K(v,Li),gv(l)}return!0},get(p,f,v){if(Fe&&f===as)return c;if(f===wo)return t;var m=s.get(f),g=f in p;if(m===void 0&&(!g||yn(p,f)?.writable)&&(m=Ci(ke(g?p[f]:Li,c),o),s.set(f,m)),m!==void 0){var b=r(m);if(Fe){var w=b?.[as];w&&w?.parent!==c&&ef(c,w)}return b===Li?void 0:b}return Reflect.get(p,f,v)},getOwnPropertyDescriptor(p,f){var v=Reflect.getOwnPropertyDescriptor(p,f);if(v&&"value"in v){var m=s.get(f);m&&(v.value=r(m))}else if(v===void 0){var g=s.get(f),b=g?.v;if(g!==void 0&&b!==Li)return{enumerable:!0,configurable:!0,value:b,writable:!0}}return v},has(p,f){if(Fe&&f===as||f===wo)return!0;var v=s.get(f),m=v!==void 0&&v.v!==Li||Reflect.has(p,f);if(v!==void 0||wt!==null&&(!m||yn(p,f)?.writable)){v===void 0&&(v=Ci(m?ke(p[f],c):Li,o),s.set(f,v));var g=r(v);if(g===Li)return!1}return m},set(p,f,v,m){var g=s.get(f),b=f in p;if(a&&f==="length")for(var w=v;w<g.v;w+=1){var k=s.get(w+"");k!==void 0?K(k,Li):w in p&&(k=Ci(Li,o),s.set(w+"",k))}if(g===void 0?(!b||yn(p,f)?.writable)&&(g=Ci(void 0,o),K(g,ke(v,c)),s.set(f,g)):(b=g.v!==Li,K(g,ke(v,c))),Fe){var V=v?.[as];V&&V?.parent!==c&&ef(c,V),ev(c)}var F=Reflect.getOwnPropertyDescriptor(p,f);if(F?.set&&F.set.call(m,v),!b){if(a&&typeof f=="string"){var M=s.get("length"),H=Number(f);Number.isInteger(H)&&H>=M.v&&K(M,H+1)}gv(l)}return!0},ownKeys(p){r(l);var f=Reflect.ownKeys(p).filter(g=>{var b=s.get(g);return b===void 0||b.v!==Li});for(var[v,m]of s)m.v!==Li&&!(v in p)&&f.push(v);return f},setPrototypeOf(){zm()}})}function gv(t,e=1){K(t,t.v+e)}function Jc(t){return t!==null&&typeof t=="object"&&wo in t?t[wo]:t}function hv(){let t=Array.prototype,e=Array.__svelte_cleanup;e&&e();let{indexOf:i,lastIndexOf:o,includes:n}=t;t.indexOf=function(s,a){let l=i.call(this,s,a);if(l===-1){for(let c=a??0;c<this.length;c+=1)if(Jc(this[c])===s){Fc("array.indexOf(...)");break}}return l},t.lastIndexOf=function(s,a){let l=o.call(this,s,a??this.length-1);if(l===-1){for(let c=0;c<=(a??this.length-1);c+=1)if(Jc(this[c])===s){Fc("array.lastIndexOf(...)");break}}return l},t.includes=function(s,a){let l=n.call(this,s,a);if(!l){for(let c=0;c<this.length;c+=1)if(Jc(this[c])===s){Fc("array.includes(...)");break}}return l},Array.__svelte_cleanup=()=>{t.indexOf=i,t.lastIndexOf=o,t.includes=n}}var Js,_v,$v,bv;function ed(){if(Js===void 0){Js=window,_v=document;var t=Element.prototype,e=Node.prototype;$v=yn(e,"firstChild").get,bv=yn(e,"nextSibling").get,t.__click=void 0,t.__className="",t.__attributes=null,t.__styles=null,t.__e=void 0,Text.prototype.__t=void 0,Fe&&(t.__svelte_meta=null,hv())}}function Fo(t=""){return document.createTextNode(t)}function si(t){return $v.call(t)}function vo(t){return bv.call(t)}function y(t,e){if(!nt)return si(t);var i=si(_t);if(i===null)i=_t.appendChild(Fo());else if(e&&i.nodeType!==3){var o=Fo();return i?.before(o),ri(o),o}return ri(i),i}function ye(t,e){if(!nt){var i=si(t);return i.nodeType===8&&i.data===""?vo(i):i}if(e&&_t?.nodeType!==3){var o=Fo();return _t?.before(o),ri(o),o}return _t}function N(t,e=1,i=!1){let o=nt?_t:t;for(var n;e--;)n=o,o=vo(o);if(!nt)return o;var s=o?.nodeType;if(i&&s!==3){var a=Fo();return o===null?n?.after(a):o.before(a),ri(a),a}return ri(o),o}function jl(t){t.textContent=""}function gf(t){wt===null&&Ft===null&&Nm(t),Ft!==null&&Ft.f&256&&wt===null&&Vm(),Zc&&Rm(t)}function C_(t,e){var i=e.last;i===null?e.last=e.first=t:(i.next=t,t.prev=i,e.last=t)}function ea(t,e,i,o=!0){var n=(t&64)!==0,s=wt;if(Fe)for(;s!==null&&s.f&262144;)s=s.parent;var a={ctx:At,deps:null,nodes_start:null,nodes_end:null,f:t|2048,first:null,fn:e,last:null,next:null,parent:n?null:s,prev:null,teardown:null,transitions:null,wv:0};if(Fe&&(a.component_function=Do),i){var l=ps;try{Ea(!0),Aa(a),a.f|=32768}catch(f){throw Gi(a),f}finally{Ea(l)}}else e!==null&&Ma(a);var c=i&&a.deps===null&&a.first===null&&a.nodes_start===null&&a.teardown===null&&(a.f&1048704)===0;if(!c&&!n&&o&&(s!==null&&C_(a,s),Ft!==null&&Ft.f&2)){var p=Ft;(p.effects??=[]).push(a)}return a}function kn(t){let e=ea(8,null,!1);return Oo(e,1024),e.teardown=t,e}function ot(t){gf("$effect");var e=wt!==null&&(wt.f&32)!==0&&At!==null&&!At.m;if(Fe&&Qi(t,"name",{value:"$effect"}),e){var i=At;(i.e??=[]).push({fn:t,effect:wt,reaction:Ft})}else{var o=Jo(t);return o}}function Sa(t){return gf("$effect.pre"),Fe&&Qi(t,"name",{value:"$effect.pre"}),mo(t)}function td(t){let e=ea(64,t,!0);return()=>{Gi(e)}}function xv(t){let e=ea(64,t,!0);return(i={})=>new Promise(o=>{i.outro?on(e,()=>{Gi(e),o(void 0)}):(Gi(e),o(void 0))})}function Jo(t){return ea(4,t,!1)}function mo(t){return ea(8,t,!0)}function L(t,e=[],i=_){let o=e.map(i),n=()=>t(...o.map(r));return Fe&&Qi(n,"name",{value:"{expression}"}),ji(n)}function ji(t,e=0){return ea(24|e,t,!0)}function Ri(t,e=!0){return ea(40,t,!0,e)}function pf(t){var e=t.teardown;if(e!==null){let i=Zc,o=Ft;uf(!0),eo(null);try{e.call(null)}finally{uf(i),eo(o)}}}function ff(t,e=!1){var i=t.first;for(t.first=t.last=null;i!==null;){var o=i.next;Gi(i,e),i=o}}function vv(t){for(var e=t.first;e!==null;){var i=e.next;e.f&32||Gi(e),e=i}}function Gi(t,e=!0){var i=!1;if((e||t.f&524288)&&t.nodes_start!==null){for(var o=t.nodes_start,n=t.nodes_end;o!==null;){var s=o===n?null:vo(o);o.remove(),o=s}i=!0}ff(t,e&&!i),Gl(t,0),Oo(t,16384);var a=t.transitions;if(a!==null)for(let c of a)c.stop();pf(t);var l=t.parent;l!==null&&l.first!==null&&mf(t),Fe&&(t.component_function=null),t.next=t.prev=t.teardown=t.ctx=t.deps=t.fn=t.nodes_start=t.nodes_end=null}function mf(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 on(t,e){var i=[];id(t,i,!0),hf(i,()=>{Gi(t),e&&e()})}function hf(t,e){var i=t.length;if(i>0){var o=()=>--i||e();for(var n of t)n.out(o)}else e()}function id(t,e,i){if(!(t.f&8192)){if(t.f^=8192,t.transitions!==null)for(let a of t.transitions)(a.is_global||i)&&e.push(a);for(var o=t.first;o!==null;){var n=o.next,s=(o.f&65536)!==0||(o.f&32)!==0;id(o,e,s?i:!1),o=n}}}function ms(t){wv(t,!0)}function wv(t,e){if(t.f&8192){t.f^=8192,t.f&1024||(t.f^=1024),ks(t)&&(Oo(t,2048),Ma(t));for(var i=t.first;i!==null;){var o=i.next,n=(i.f&65536)!==0||(i.f&32)!==0;wv(i,n?e:!1),i=o}if(t.transitions!==null)for(let s of t.transitions)(s.is_global||e)&&s.in()}}function _f(t,e){if(e){let i=document.body;t.autofocus=!0,No(()=>{document.activeElement===i&&t.focus()})}}function $f(t){var e=Ft,i=wt;eo(null),wi(null);try{return t()}finally{eo(e),wi(i)}}var bf=new Set,od=new Set;function ta(t){if(!nt)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 yf(t,e,i,o={}){function n(s){if(o.capture||Oa.call(e,s),!s.cancelBubble)return $f(()=>i?.call(this,s))}return t.startsWith("pointer")||t.startsWith("touch")||t==="wheel"?No(()=>{e.addEventListener(t,n,o)}):e.addEventListener(t,n,o),n}function Dt(t,e,i,o,n){var s={capture:o,passive:n},a=yf(t,e,i,s);(e===document.body||e===window||e===document)&&kn(()=>{e.removeEventListener(t,a,s)})}function pt(t){for(var e=0;e<t.length;e++)bf.add(t[e]);for(var i of od)i(t)}function Oa(t){var e=this,i=e.ownerDocument,o=t.type,n=t.composedPath?.()||[],s=n[0]||t.target,a=0,l=t.__root;if(l){var c=n.indexOf(l);if(c!==-1&&(e===document||e===window)){t.__root=e;return}var p=n.indexOf(e);if(p===-1)return;c<=p&&(a=c)}if(s=n[a]||t.target,s!==e){Qi(t,"currentTarget",{configurable:!0,get(){return s||i}});var f=Ft,v=wt;eo(null),wi(null);try{for(var m,g=[];s!==null;){var b=s.assignedSlot||s.parentNode||s.host||null;try{var w=s["__"+o];if(w!==void 0&&!s.disabled)if(kr(w)){var[k,...V]=w;k.apply(s,[t,...V])}else w.call(s,t)}catch(F){m?g.push(F):m=F}if(t.cancelBubble||b===e||b===null)break;s=b}if(m){for(let F of g)queueMicrotask(()=>{throw F});throw m}}finally{t.__root=e,delete t.currentTarget,eo(f),wi(v)}}}var k_;function Cv(){k_=void 0}function Ha(t){var e=document.createElement("template");return e.innerHTML=t,e.content}function io(t,e){var i=wt;i.nodes_start===null&&(i.nodes_start=t,i.nodes_end=e)}function D(t,e){var i=(e&1)!==0,o=(e&2)!==0,n,s=!t.startsWith("<!>");return()=>{if(nt)return io(_t,null),_t;n===void 0&&(n=Ha(s?t:"<!>"+t),i||(n=si(n)));var a=o?document.importNode(n,!0):n.cloneNode(!0);if(i){var l=si(a),c=a.lastChild;io(l,c)}else io(a,a);return a}}function Ie(t,e,i="svg"){var o=!t.startsWith("<!>"),n=(e&1)!==0,s=`<${i}>${o?t:"<!>"+t}</${i}>`,a;return()=>{if(nt)return io(_t,null),_t;if(!a){var l=Ha(s),c=si(l);if(n)for(a=document.createDocumentFragment();si(c);)a.appendChild(si(c));else a=si(c)}var p=a.cloneNode(!0);if(n){var f=si(p),v=p.lastChild;io(f,v)}else io(p,p);return p}}function er(t=""){if(!nt){var e=Fo(t+"");return io(e,e),e}var i=_t;return i.nodeType!==3&&(i.before(i=Fo()),ri(i)),io(i,i),i}function Ye(){if(nt)return io(_t,null),_t;var t=document.createDocumentFragment(),e=document.createComment(""),i=Fo();return t.append(e,i),io(e,i),t}function x(t,e){if(nt){wt.nodes_end=_t,bi();return}t!==null&&t.before(e)}var I_=/\r/g;function kv(t){t=t.replace(I_,"");let e=5381,i=t.length;for(;i--;)e=(e<<5)-e^t.charCodeAt(i);return(e>>>0).toString(36)}function Tv(t){return t.endsWith("capture")&&t!=="gotpointercapture"&&t!=="lostpointercapture"}var E_=["beforeinput","click","change","dblclick","contextmenu","focusin","focusout","input","keydown","keyup","mousedown","mousemove","mouseout","mouseover","mouseup","pointerdown","pointermove","pointerout","pointerover","pointerup","touchend","touchmove","touchstart"];function Iv(t){return E_.includes(t)}var P_=["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 A_={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 Ev(t){return t=t.toLowerCase(),A_[t]??t}var qw=[...P_,"formNoValidate","isMap","noModule","playsInline","readOnly","value","volume","defaultValue","defaultChecked","srcObject","noValidate","allowFullscreen","disablePictureInPicture","disableRemotePlayback"];var M_=["touchstart","touchmove"];function Pv(t){return M_.includes(t)}var L_=["textarea","script","style","title"];function Av(t){return L_.includes(t)}function xf(t){return t?.replace(/\//g,"/\u200B")}var Zl=!0;function nd(t){Zl=t}function Se(t,e){var i=e==null?"":typeof e=="object"?e+"":e;i!==(t.__t??=t.nodeValue)&&(t.__t=i,t.nodeValue=i+"")}function rd(t,e){return Mv(t,e)}function Cf(t,e){ed(),e.intro=e.intro??!1;let i=e.target,o=nt,n=_t;try{for(var s=si(i);s&&(s.nodeType!==8||s.data!==Ca);)s=vo(s);if(!s)throw cs;Yi(!0),ri(s),bi();let a=Mv(t,{...e,anchor:s});if(_t===null||_t.nodeType!==8||_t.data!==qs)throw Ys(),cs;return Yi(!1),a}catch(a){if(a===cs)return e.recover===!1&&Dm(),ed(),jl(i),Yi(!1),rd(t,e);throw a}finally{Yi(o),ri(n),Cv()}}var Fa=new Map;function Mv(t,{target:e,anchor:i,props:o={},events:n,context:s,intro:a=!0}){ed();var l=new Set,c=v=>{for(var m=0;m<v.length;m++){var g=v[m];if(!l.has(g)){l.add(g);var b=Pv(g);e.addEventListener(g,Oa,{passive:b});var w=Fa.get(g);w===void 0?(document.addEventListener(g,Oa,{passive:b}),Fa.set(g,1)):Fa.set(g,w+1)}}};c(Ol(bf)),od.add(c);var p=void 0,f=xv(()=>{var v=i??e.appendChild(Fo());return Ri(()=>{if(s){I({});var m=At;m.c=s}n&&(o.$$events=n),nt&&io(v,null),Zl=a,p=t(v,o)||{},Zl=!0,nt&&(wt.nodes_end=_t),s&&E()}),()=>{for(var m of l){e.removeEventListener(m,Oa);var g=Fa.get(m);--g===0?(document.removeEventListener(m,Oa),Fa.delete(m)):Fa.set(m,g)}od.delete(c),v!==i&&v.parentNode?.removeChild(v)}});return wf.set(p,f),p}var wf=new WeakMap;function Sf(t,e){let i=wf.get(t);return i?(wf.delete(t),i(e)):(Fe&&Zm(),Promise.resolve())}var Tf;function T(t){return Tf=t.target,new kf(t)}var kf=class{#t;#e;constructor(e){var i=new Map,o=(s,a)=>{var l=us(a);return i.set(s,l),l};let n=new Proxy({...e.props||{},$$events:{}},{get(s,a){return r(i.get(a)??o(a,Reflect.get(s,a)))},has(s,a){return a===Dl?!0:(r(i.get(a)??o(a,Reflect.get(s,a))),Reflect.has(s,a))},set(s,a,l){return K(i.get(a)??o(a,l),l),Reflect.set(s,a,l)}});this.#e=(e.hydrate?Cf:rd)(e.component,{target:e.target,anchor:e.anchor,props:n,context:e.context,intro:e.intro??!1,recover:e.recover}),(!e?.props?.$$host||e.sync===!1)&&d(),this.#t=n.$$events;for(let s of Object.keys(this.#e))s==="$set"||s==="$destroy"||s==="$on"||Qi(this,s,{get(){return this.#e[s]},set(a){this.#e[s]=a},enumerable:!0});this.#e.$set=s=>{Object.assign(n,s)},this.#e.$destroy=()=>{Sf(this.#e)}}$set(e){this.#e.$set(e)}$on(e,i){this.#t[e]=this.#t[e]||[];let o=(...n)=>i.call(this,...n);return this.#t[e].push(o),()=>{this.#t[e]=this.#t[e].filter(n=>n!==o)}}$destroy(){this.#e.$destroy()}};var Lv="5";typeof window<"u"&&(window.__svelte||={v:new Set}).v.add(Lv);var Rv=new Map;function Vv(t,e){var i=Rv.get(t);i||(i=new Set,Rv.set(t,i)),i.add(e)}function O(t,e,i=!1){nt&&bi();var o=t,n=null,s=null,a=Li,l=i?65536:0,c=!1;let p=(v,m=!0)=>{c=!0,f(m,v)},f=(v,m)=>{if(a===(a=v))return;let g=!1;if(nt){let b=o.data===Ws;!!a===b&&(o=Da(),ri(o),Yi(!1),g=!0)}a?(n?ms(n):m&&(n=Ri(()=>m(o))),s&&on(s,()=>{s=null})):(s?ms(s):m&&(s=Ri(()=>m(o))),n&&on(n,()=>{n=null})),g&&Yi(!0)};ji(()=>{c=!1,e(p),c||f(null,null)},l),nt&&(o=_t)}function Xl(t,e,i){nt&&bi();var o=t,n=Li,s,a=Kr()?Mm:xa;ji(()=>{a(n,n=e())&&(s&&on(s),s=Ri(()=>i(o)))}),nt&&(o=_t)}var Is=null;function Pf(t){Is=t}function Fi(t,e){return e}function U_(t,e,i,o){for(var n=[],s=e.length,a=0;a<s;a++)id(e[a].e,n,!0);var l=s>0&&n.length===0&&i!==null;if(l){var c=i.parentNode;jl(c),c.append(i),o.clear(),Ts(t,e[0].prev,e[s-1].next)}hf(n,()=>{for(var p=0;p<s;p++){var f=e[p];l||(o.delete(f.k),Ts(t,f.prev,f.next)),Gi(f.e,!l)}})}function vi(t,e,i,o,n,s=null){var a=t,l={flags:e,items:new Map,first:null},c=(e&4)!==0;if(c){var p=t;a=nt?ri(si(p)):p.appendChild(Fo())}nt&&bi();var f=null,v=!1,m=Er(()=>{var g=i();return kr(g)?g:g==null?[]:Ol(g)});ji(()=>{var g=r(m),b=g.length;if(v&&b===0)return;v=b===0;let w=!1;if(nt){var k=a.data===Ws;k!==(b===0)&&(a=Da(),ri(a),Yi(!1),w=!0)}if(nt){for(var V=null,F,M=0;M<b;M++){if(_t.nodeType===8&&_t.data===qs){a=_t,w=!0,Yi(!1);break}var H=g[M],S=o(H,M);F=Dv(_t,l,V,null,H,S,M,n,e,i),l.items.set(S,F),V=F}b>0&&ri(Da())}nt||z_(g,l,a,n,e,o,i),s!==null&&(b===0?f?ms(f):f=Ri(()=>s(a)):f!==null&&on(f,()=>{f=null})),w&&Yi(!0),r(m)}),nt&&(a=_t)}function z_(t,e,i,o,n,s,a){var l=(n&8)!==0,c=(n&3)!==0,p=t.length,f=e.items,v=e.first,m=v,g,b=null,w,k=[],V=[],F,M,H,S;if(l)for(S=0;S<p;S+=1)F=t[S],M=s(F,S),H=f.get(M),H!==void 0&&(H.a?.measure(),(w??=new Set).add(H));for(S=0;S<p;S+=1){if(F=t[S],M=s(F,S),H=f.get(M),H===void 0){var q=m?m.e.nodes_start:i;b=Dv(q,e,b,b===null?e.first:b.next,F,M,S,o,n,a),f.set(M,b),k=[],V=[],m=b.next;continue}if(c&&W_(H,F,S,n),H.e.f&8192&&(ms(H.e),l&&(H.a?.unfix(),(w??=new Set).delete(H))),H!==m){if(g!==void 0&&g.has(H)){if(k.length<V.length){var W=V[0],U;b=W.prev;var ie=k[0],se=k[k.length-1];for(U=0;U<k.length;U+=1)Nv(k[U],W,i);for(U=0;U<V.length;U+=1)g.delete(V[U]);Ts(e,ie.prev,se.next),Ts(e,b,ie),Ts(e,se,W),m=W,b=se,S-=1,k=[],V=[]}else g.delete(H),Nv(H,m,i),Ts(e,H.prev,H.next),Ts(e,H,b===null?e.first:b.next),Ts(e,b,H),b=H;continue}for(k=[],V=[];m!==null&&m.k!==M;)m.e.f&8192||(g??=new Set).add(m),V.push(m),m=m.next;if(m===null)continue;H=m}k.push(H),b=H,m=H.next}if(m!==null||g!==void 0){for(var fe=g===void 0?[]:Ol(g);m!==null;)m.e.f&8192||fe.push(m),m=m.next;var J=fe.length;if(J>0){var xe=n&4&&p===0?i:null;if(l){for(S=0;S<J;S+=1)fe[S].a?.measure();for(S=0;S<J;S+=1)fe[S].a?.fix()}U_(e,fe,xe,f)}}l&&No(()=>{if(w!==void 0)for(H of w)H.a?.apply()}),wt.first=e.first&&e.first.e,wt.last=b&&b.e}function W_(t,e,i,o){o&1&&Pa(t.v,e),o&2?Pa(t.i,i):t.i=i}function Dv(t,e,i,o,n,s,a,l,c,p){var f=Is,v=(c&1)!==0,m=(c&16)===0,g=v?m?us(n):Ci(n):n,b=c&2?Ci(a):a;Fe&&v&&(g.debug=()=>{var k=typeof b=="number"?a:b.v;p()[k]});var w={i:b,v:g,k:s,a:null,e:null,prev:i,next:o};Is=w;try{return w.e=Ri(()=>l(t,g,b,p),nt),w.e.prev=i&&i.e,w.e.next=o&&o.e,i===null?e.first=w:(i.next=w,i.e.next=w.e),o!==null&&(o.prev=w,o.e.prev=w.e),w}finally{Is=f}}function Nv(t,e,i){for(var o=t.next?t.next.e.nodes_start:i,n=e?e.e.nodes_start:i,s=t.e.nodes_start;s!==o;){var a=vo(s);n.before(s),s=a}}function Ts(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 q_(t,e,i){if(!e||e===kv(String(i??"")))return;let o,n=t.__svelte_meta?.loc;n?o=`near ${n.file}:${n.line}:${n.column}`:Do?.[pi]&&(o=`in ${Do[pi]}`),jm(xf(o))}function Jl(t,e,i,o,n){var s=t,a="",l;ji(()=>{if(a===(a=e()??"")){nt&&bi();return}l!==void 0&&(Gi(l),l=void 0),a!==""&&(l=Ri(()=>{if(nt){for(var c=_t.data,p=bi(),f=p;p!==null&&(p.nodeType!==8||p.data!=="");)f=p,p=vo(p);if(p===null)throw Ys(),cs;Fe&&!n&&q_(p.parentNode,c,a),io(_t,f),s=ri(p);return}var v=a+"";i?v=`<svg>${v}</svg>`:o&&(v=`<math>${v}</math>`);var m=Ha(v);if((i||o)&&(m=si(m)),io(si(m),m.lastChild),i||o)for(;si(m);)s.before(si(m));else s.before(m)}))})}function De(t,e,i,o,n){nt&&bi();var s=e.$$slots?.[i],a=!1;s===!0&&(s=e[i==="default"?"children":i],a=!0),s===void 0?n!==null&&n(t):s(t,a?()=>o:o)}function oo(t,e,...i){var o=t,n=Ht,s;ji(()=>{n!==(n=e())&&(s&&(Gi(s),s=null),Fe&&n==null&&Om(),s=Ri(()=>n(o,...i)))},65536),nt&&(o=_t)}function Si(t,e,i){nt&&bi();var o=t,n,s;ji(()=>{n!==(n=e())&&(s&&(on(s),s=null),n&&(s=Ri(()=>i(o,n))))},65536),nt&&(o=_t)}function ec(t,e,i,o,n,s){let a=nt;nt&&bi();var l=Fe&&s&&At?.function[pi],c,p,f=null;nt&&_t.nodeType===1&&(f=_t,bi());var v=nt?_t:t,m,g=Is;ji(()=>{let b=e()||null;var w=n?n():i||b==="svg"?Ks:null;if(b!==c){var k=Is;Pf(g),m&&(b===null?on(m,()=>{m=null,p=null}):b===p?ms(m):(Gi(m),nd(!1))),b&&b!==p&&(m=Ri(()=>{if(f=nt?f:w?document.createElementNS(w,b):document.createElement(b),Fe&&s&&(f.__svelte_meta={loc:{file:l,line:s[0],column:s[1]}}),io(f,f),o){nt&&Av(b)&&f.append(document.createComment(""));var V=nt?si(f):f.appendChild(Fo());nt&&(V===null?Yi(!1):ri(V)),o(f,V)}wt.nodes_end=f,v.before(f)})),c=b,c&&(p=c),nd(!0),Pf(k)}},65536),a&&(Yi(!0),ri(v))}function oe(t,e){No(()=>{var i=t.getRootNode(),o=i.host?i:i.head??i.ownerDocument.head??Tf?.parentNode;if(!o?.querySelector("#"+e.hash)){let n=document.createElement("style");n.id=e.hash,n.textContent=e.code,o.appendChild(n),Fe&&Vv(e.hash,n)}})}function Ov(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=Ov(t[e]))&&(o&&(o+=" "),o+=i)}else for(i in t)t[i]&&(o&&(o+=" "),o+=i);return o}function Hv(){for(var t,e,i=0,o="",n=arguments.length;i<n;i++)(t=arguments[i])&&(e=Ov(t))&&(o&&(o+=" "),o+=e);return o}function tc(t){return typeof t=="object"?Hv(t):t??""}function zv(t,e){e?t.hasAttribute("selected")||t.setAttribute("selected",""):t.removeAttribute("selected")}function pe(t,e,i,o){var n=t.__attributes??={};if(nt&&(n[e]=t.getAttribute(e),e==="src"||e==="srcset"||e==="href"&&t.nodeName==="LINK")){o||K_(t,e,i??"");return}n[e]!==(n[e]=i)&&(e==="style"&&"__styles"in t&&(t.__styles={}),e==="loading"&&(t[Cm]=i),i==null?t.removeAttribute(e):typeof i!="string"&&Wv(t).includes(e)?t[e]=i:t.setAttribute(e,i))}function Le(t,e,i,o,n=!1,s=!1,a=!1){let l=nt&&s;l&&Yi(!1);var c=e||{},p=t.tagName==="OPTION";for(var f in e)f in i||(i[f]=null);i.class&&(i.class=tc(i.class)),o!==void 0&&(i.class=i.class?i.class+" "+o:o);var v=Wv(t),m=t.__attributes??={};for(let M in i){let H=i[M];if(p&&M==="value"&&H==null){t.value=t.__value="",c[M]=H;continue}var g=c[M];if(H!==g){c[M]=H;var b=M[0]+M[1];if(b!=="$$"){if(b==="on"){let S={},q="$$"+M,W=M.slice(2);var w=Iv(W);if(Tv(W)&&(W=W.slice(0,-7),S.capture=!0),!w&&g){if(H!=null)continue;t.removeEventListener(W,c[q],S),c[q]=null}if(H!=null)if(w)t[`__${W}`]=H,pt([W]);else{let U=function(ie){c[M].call(this,ie)};var F=U;c[q]=yf(W,t,U,S)}else w&&(t[`__${W}`]=void 0)}else if(M==="style"&&H!=null)t.style.cssText=H+"";else if(M==="autofocus")_f(t,!!H);else if(!s&&(M==="__value"||M==="value"&&H!=null))t.value=t.__value=H;else if(M==="selected"&&p)zv(t,H);else{var k=M;n||(k=Ev(k));var V=k==="defaultValue"||k==="defaultChecked";if(H==null&&!s&&!V)if(m[M]=null,k==="value"||k==="checked"){let S=t;if(k==="value"){let q=S.defaultValue;S.removeAttribute(k),S.defaultValue=q}else{let q=S.defaultChecked;S.removeAttribute(k),S.defaultChecked=q}}else t.removeAttribute(M);else V||v.includes(k)&&(s||typeof H!="string")?t[k]=H:typeof H!="function"&&pe(t,k,H)}M==="style"&&"__styles"in t&&(t.__styles={})}}}return l&&Yi(!0),c}var Fv=new Map;function Wv(t){var e=Fv.get(t.nodeName);if(e)return e;Fv.set(t.nodeName,e=[]);for(var i,o=t,n=Element.prototype;n!==o;){i=Dc(o);for(var s in i)i[s].set&&e.push(s);o=ls(o)}return e}function K_(t,e,i){Fe&&(e==="srcset"&&Q_(t,i)||Af(t.getAttribute(e)??"",i)||Ym(e,t.outerHTML.replace(t.innerHTML,t.innerHTML&&"..."),String(i)))}function Af(t,e){return t===e?!0:new URL(t,document.baseURI).href===new URL(e,document.baseURI).href}function Uv(t){return t.split(",").map(e=>e.trim().split(" ").filter(Boolean))}function Q_(t,e){var i=Uv(t.srcset),o=Uv(e);return o.length===i.length&&o.every(([n,s],a)=>s===i[a][1]&&(Af(i[a][0],n)||Af(n,i[a][0])))}function Uo(t,e,i){var o=t.__className,n=G_(e,i);nt&&t.className===n?t.__className=n:(o!==n||nt&&t.className!==n)&&(e==null&&!i?t.removeAttribute("class"):t.className=n,t.__className=n)}function G_(t,e){return(t??"")+(e?" "+e:"")}function ne(t,e,i){if(i){if(t.classList.contains(e))return;t.classList.add(e)}else{if(!t.classList.contains(e))return;t.classList.remove(e)}}var Y_=Bc?()=>performance.now():()=>Date.now(),Ar={tick:t=>(Bc?requestAnimationFrame:Ht)(t),now:()=>Y_(),tasks:new Set};function qv(){let t=Ar.now();Ar.tasks.forEach(e=>{e.c(t)||(Ar.tasks.delete(e),e.f())}),Ar.tasks.size!==0&&Ar.tick(qv)}function Kv(t){let e;return Ar.tasks.size===0&&Ar.tick(qv),{promise:new Promise(i=>{Ar.tasks.add(e={c:t,f:i})}),abort(){Ar.tasks.delete(e)}}}function sd(t,e){t.dispatchEvent(new CustomEvent(e))}function J_(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 Qv(t){let e={},i=t.split(";");for(let o of i){let[n,s]=o.split(":");if(!n||s===void 0)break;let a=J_(n.trim());e[a]=s.trim()}return e}var e$=t=>t;function Lf(t,e,i,o){var n=(t&1)!==0,s=(t&2)!==0,a=n&&s,l=(t&4)!==0,c=a?"both":n?"in":"out",p,f=e.inert,v=e.style.overflow,m,g;function b(){var M=Ft,H=wt;eo(null),wi(null);try{return p??=i()(e,o?.()??{},{direction:c})}finally{eo(M),wi(H)}}var w={is_global:l,in(){if(e.inert=f,!n){g?.abort(),g?.reset?.();return}s||m?.abort(),sd(e,"introstart"),m=Mf(e,b(),g,1,()=>{sd(e,"introend"),m?.abort(),m=p=void 0,e.style.overflow=v})},out(M){if(!s){M?.(),p=void 0;return}e.inert=!0,sd(e,"outrostart"),g=Mf(e,b(),m,0,()=>{sd(e,"outroend"),M?.()})},stop:()=>{m?.abort(),g?.abort()}},k=wt;if((k.transitions??=[]).push(w),n&&Zl){var V=l;if(!V){for(var F=k.parent;F&&F.f&65536;)for(;(F=F.parent)&&!(F.f&16););V=!F||(F.f&32768)!==0}V&&Jo(()=>{xt(()=>w.in())})}}function Mf(t,e,i,o,n){var s=o===1;if(Cs(e)){var a,l=!1;return No(()=>{if(!l){var k=e({direction:s?"in":"out"});a=Mf(t,k,i,o,n)}}),{abort:()=>{l=!0,a?.abort()},deactivate:()=>a.deactivate(),reset:()=>a.reset(),t:()=>a.t()}}if(i?.deactivate(),!e?.duration)return n(),{abort:Ht,deactivate:Ht,reset:Ht,t:()=>o};let{delay:c=0,css:p,tick:f,easing:v=e$}=e;var m=[];if(s&&i===void 0&&(f&&f(0,1),p)){var g=Qv(p(0,1));m.push(g,g)}var b=()=>1-o,w=t.animate(m,{duration:c});return w.onfinish=()=>{var k=i?.t()??1-o;i?.abort();var V=o-k,F=e.duration*Math.abs(V),M=[];if(F>0){var H=!1;if(p)for(var S=Math.ceil(F/16.666666666666668),q=0;q<=S;q+=1){var W=k+V*v(q/S),U=Qv(p(W,1-W));M.push(U),H||=U.overflow==="hidden"}H&&(t.style.overflow="hidden"),b=()=>{var ie=w.currentTime;return k+V*v(ie/F)},f&&Kv(()=>{if(w.playState!=="running")return!1;var ie=b();return f(ie,1-ie),!0})}w=t.animate(M,{duration:F,fill:"forwards"}),w.onfinish=()=>{b=()=>o,f?.(o,1-o),n()}},{abort:()=>{w&&(w.cancel(),w.effect=null,w.onfinish=Ht)},deactivate:()=>{n=Ht},reset:()=>{o===0&&f?.(1,0)},t:()=>b()}}var Rf=class t{#t=new WeakMap;#e;#i;static entries=new WeakMap;constructor(e){this.#i=e}observe(e,i){var o=this.#t.get(e)||new Set;return o.add(i),this.#t.set(e,o),this.#o().observe(e,this.#i),()=>{var n=this.#t.get(e);n.delete(i),n.size===0&&(this.#t.delete(e),this.#e.unobserve(e))}}#o(){return this.#e??(this.#e=new ResizeObserver(e=>{for(var i of e){t.entries.set(i.target,i);for(var o of this.#t.get(i.target)||[])o(i)}}))}};var o$=new Rf({box:"border-box"});function Yr(t,e,i){var o=o$.observe(t,()=>i(t[e]));Jo(()=>(xt(()=>i(t[e])),o))}function Gv(t,e){return t===e||t?.[wo]===e}function vt(t={},e,i,o){return Jo(()=>{var n,s;return mo(()=>{n=s,s=o?.()||[],xt(()=>{t!==i(...s)&&(e(t,...s),n&&Gv(i(...n),t)&&e(null,...n))})}),()=>{No(()=>{s&&Gv(i(...s),t)&&e(null,...s)})}}),t}function Mr(t=!1){let e=At,i=e.l.u;if(!i)return;let o=()=>Xc(e.s);if(t){let n=0,s={},a=_(()=>{let l=!1,c=e.s;for(let p in c)c[p]!==s[p]&&(s[p]=c[p],l=!0);return l&&n++,n});o=()=>r(a)}i.b.length&&Sa(()=>{Yv(e,o),Ss(i.b)}),ot(()=>{let n=xt(()=>i.m.map(Tm));return()=>{for(let s of n)typeof s=="function"&&s()}}),i.a.length&&ot(()=>{Yv(e,o),Ss(i.a)})}function Yv(t,e){if(t.l.s)for(let i of t.l.s)r(i);e()}function P(t,e,i){t.$$events||={},t.$$events[e]||=[],t.$$events[e].push(i)}function A(t){for(var e in t)e in this&&(this[e]=t[e])}if(Fe){let t=function(e){if(!(e in globalThis)){let i;Object.defineProperty(globalThis,e,{configurable:!0,get:()=>{if(i!==void 0)return i;Fm(e)},set:o=>{i=o}})}};r$=t,t("$state"),t("$effect"),t("$derived"),t("$inspect"),t("$props"),t("$bindable")}var r$;function Ut(t){At===null&&ka("onMount"),Wr&&At.l!==null?n$(At).m.push(t):ot(()=>{let e=xt(t);if(typeof e=="function")return e})}function tr(t){At===null&&ka("onDestroy"),Ut(()=>()=>xt(t))}function n$(t){var e=t.l;return e.u??={a:[],b:[],m:[]}}function ic(t,e,i){if(t==null)return e(void 0),i&&i(void 0),Ht;let o=xt(()=>t.subscribe(e,i));return o.unsubscribe?()=>o.unsubscribe():o}var Ua=[];function ir(t,e){return{subscribe:be(t,e).subscribe}}function be(t,e=Ht){let i=null,o=new Set;function n(l){if(xa(t,l)&&(t=l,i)){let c=!Ua.length;for(let p of o)p[1](),Ua.push(p,t);if(c){for(let p=0;p<Ua.length;p+=2)Ua[p][0](Ua[p+1]);Ua.length=0}}}function s(l){n(l(t))}function a(l,c=Ht){let p=[l,c];return o.add(p),o.size===1&&(i=e(n,s)||Ht),l(t),()=>{o.delete(p),o.size===0&&i&&(i(),i=null)}}return{set:n,update:s,subscribe:a}}function ai(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 s=e.length<2;return ir(i,(a,l)=>{let c=!1,p=[],f=0,v=Ht,m=()=>{if(f)return;v();let b=e(o?p[0]:p,a,l);s?a(b):v=typeof b=="function"?b:Ht},g=n.map((b,w)=>ic(b,k=>{p[w]=k,f&=~(1<<w),c&&m()},()=>{f|=1<<w}));return c=!0,m(),function(){Ss(g),v(),c=!1}})}function Ae(t){let e;return ic(t,i=>e=i)(),e}var ld=!1,Vf=Symbol();function C(t,e,i){let o=i[e]??={store:null,source:us(void 0),unsubscribe:Ht};if(o.store!==t&&!(Vf in i))if(o.unsubscribe(),o.store=t??null,t==null)o.source.v=void 0,o.unsubscribe=Ht;else{var n=!0;o.unsubscribe=ic(t,s=>{n?o.source.v=s:K(o.source,s)}),n=!1}return t&&Vf in i?Ae(t):r(o.source)}function Je(){let t={};function e(){kn(()=>{for(var i in t)t[i].unsubscribe();Qi(t,Vf,{enumerable:!1,value:!0})})}return[t,e]}function Nf(t){var e=ld;try{return ld=!1,[t(),ld]}finally{ld=e}}var d$={get(t,e){if(!t.exclude.includes(e))return r(t.version),e in t.special?t.special[e]():t.props[e]},set(t,e,i){return e in t.special||(t.special[e]=u({get[e](){return t.props[e]}},e,4)),t.special[e](i),zc(t.version),!0},getOwnPropertyDescriptor(t,e){if(!t.exclude.includes(e)&&e in t.props)return{enumerable:!0,configurable:!0,value:t.props[e]}},deleteProperty(t,e){return t.exclude.includes(e)||(t.exclude.push(e),zc(t.version)),!0},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 Oe(t,e){return new Proxy({props:t,exclude:e,special:{},version:Ci(0)},d$)}var u$={get(t,e){let i=t.props.length;for(;i--;){let o=t.props[i];if(Cs(o)&&(o=o()),typeof o=="object"&&o!==null&&e in o)return o[e]}},set(t,e,i){let o=t.props.length;for(;o--;){let n=t.props[o];Cs(n)&&(n=n());let s=yn(n,e);if(s&&s.set)return s.set(i),!0}return!1},getOwnPropertyDescriptor(t,e){let i=t.props.length;for(;i--;){let o=t.props[i];if(Cs(o)&&(o=o()),typeof o=="object"&&o!==null&&e in o){let n=yn(o,e);return n&&!n.configurable&&(n.configurable=!0),n}}},has(t,e){if(e===wo||e===Dl)return!1;for(let i of t.props)if(Cs(i)&&(i=i()),i!=null&&e in i)return!0;return!1},ownKeys(t){let e=[];for(let i of t.props){Cs(i)&&(i=i());for(let o in i)e.includes(o)||e.push(o)}return e}};function vs(...t){return new Proxy({props:t},u$)}function jv(t){for(var e=wt,i=wt;e!==null&&!(e.f&96);)e=e.parent;try{return wi(e),t()}finally{wi(i)}}function u(t,e,i,o){var n=(i&1)!==0,s=!Wr||(i&2)!==0,a=(i&8)!==0,l=(i&16)!==0,c=!1,p;a?[p,c]=Nf(()=>t[e]):p=t[e];var f=wo in t||Dl in t,v=a&&(yn(t,e)?.set??(f&&e in t&&(W=>t[e]=W)))||void 0,m=o,g=!0,b=!1,w=()=>(b=!0,g&&(g=!1,l?m=xt(o):m=o),m);p===void 0&&o!==void 0&&(v&&s&&Hm(e),p=w(),v&&v(p));var k;if(s)k=()=>{var W=t[e];return W===void 0?w():(g=!0,b=!1,W)};else{var V=jv(()=>(n?_:Er)(()=>t[e]));V.f|=131072,k=()=>{var W=r(V);return W!==void 0&&(m=void 0),W===void 0?m:W}}if(!(i&4))return k;if(v){var F=t.$$legacy;return function(W,U){return arguments.length>0?((!s||!U||F||c)&&v(U?k():W),W):k()}}var M=!1,H=!1,S=us(p),q=jv(()=>_(()=>{var W=k(),U=r(S);return M?(M=!1,H=!0,U):(H=!1,S.v=W)}));return n||(q.equals=wa),function(W,U){if(Fl!==null&&(M=H,k(),r(S)),arguments.length>0){let ie=U?r(q):s&&a?ke(W):W;return q.equals(ie)||(M=!0,K(S,ie),b&&m!==void 0&&(m=ie),xt(()=>r(q))),W}return r(q)}}var p$;typeof HTMLElement=="function"&&(p$=class extends HTMLElement{$$ctor;$$s;$$c;$$cn=!1;$$d={};$$r=!1;$$p_d={};$$l={};$$l_u=new Map;$$me;constructor(t,e,i){super(),this.$$ctor=t,this.$$s=e,i&&this.attachShadow({mode:"open"})}addEventListener(t,e,i){if(this.$$l[t]=this.$$l[t]||[],this.$$l[t].push(e),this.$$c){let o=this.$$c.$on(t,e);this.$$l_u.set(e,o)}super.addEventListener(t,e,i)}removeEventListener(t,e,i){if(super.removeEventListener(t,e,i),this.$$c){let o=this.$$l_u.get(e);o&&(o(),this.$$l_u.delete(e))}}async connectedCallback(){if(this.$$cn=!0,!this.$$c){let e=function(n){return s=>{let a=document.createElement("slot");n!=="default"&&(a.name=n),x(s,a)}};var t=e;if(await Promise.resolve(),!this.$$cn||this.$$c)return;let i={},o=f$(this);for(let n of this.$$s)n in o&&(n==="default"&&!this.$$d.children?(this.$$d.children=e(n),i.default=!0):i[n]=e(n));for(let n of this.attributes){let s=this.$$g_p(n.name);s in this.$$d||(this.$$d[s]=Bf(s,n.value,this.$$p_d,"toProp"))}for(let n in this.$$p_d)!(n in this.$$d)&&this[n]!==void 0&&(this.$$d[n]=this[n],delete this[n]);this.$$c=T({component:this.$$ctor,target:this.shadowRoot||this,props:{...this.$$d,$$slots:i,$$host:this}}),this.$$me=td(()=>{mo(()=>{this.$$r=!0;for(let n of Kp(this.$$c)){if(!this.$$p_d[n]?.reflect)continue;this.$$d[n]=this.$$c[n];let s=Bf(n,this.$$d[n],this.$$p_d,"toAttribute");s==null?this.removeAttribute(this.$$p_d[n].attribute||n):this.setAttribute(this.$$p_d[n].attribute||n,s)}this.$$r=!1})});for(let n in this.$$l)for(let s of this.$$l[n]){let a=this.$$c.$on(n,s);this.$$l_u.set(s,a)}this.$$l={}}}attributeChangedCallback(t,e,i){this.$$r||(t=this.$$g_p(t),this.$$d[t]=Bf(t,i,this.$$p_d,"toProp"),this.$$c?.$set({[t]:this.$$d[t]}))}disconnectedCallback(){this.$$cn=!1,Promise.resolve().then(()=>{!this.$$cn&&this.$$c&&(this.$$c.$destroy(),this.$$me(),this.$$c=void 0)})}$$g_p(t){return Kp(this.$$p_d).find(e=>this.$$p_d[e].attribute===t||!this.$$p_d[e].attribute&&e.toLowerCase()===t)||t}});function Bf(t,e,i,o){let n=i[t]?.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;default:return e}else switch(n){case"Object":case"Array":return e&&JSON.parse(e);case"Boolean":return e;case"Number":return e!=null?+e:e;default:return e}}function f$(t){let e={};return t.childNodes.forEach(i=>{e[i.slot||"default"]=!0}),e}import{clientChecker as Tx}from"@vkontakte/videoplayer-core/evergreen";import"@vkontakte/videoplayer-core/evergreen";import{noop as Ep,safeStorage as Ix,throttleFn as Ex}from"@vkontakte/videoplayer-shared/evergreen";import{SeekAction as Px}from"@vkontakte/videoplayer-statistics/evergreen";import{InterfaceLanguage as v$,fillWithDefault as g$,VideoQuality as Xv}from"@vkontakte/videoplayer-shared/evergreen";var h$={isMobile:void 0,debugLog:!1,devNullLog:!1,defaultLanguage:v$.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:Xv.Q_480P,highQualityLimit:Xv.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,thumbTimer:!0,hotKeyMapModal:!0,hotKeyHelpers:!0,saveDebugInfoToFile:!1,saveTraceInfoToFile:!1,additionalButtons:!0,additionalButtonsDesktopControlPanelRight:!0,additionalSettingsMenuItems:!0,additionalContextMenuItems:!0,contextMenuButton:!0,audioLanguages:!1,saveRate:!1,fullscreenInternalTargetPlayerContainer:!1,endScreen:!0,autoplayNext:!0,nextPrevButtons:!0,previewNoEmptySpace:!1,exposeInternalsToGlobal:!1,skipInitialPlaybackRateValue:!1,qualityDetailsSubMenuEnabled:!1,showSlowVideoNotification:!1,forceAutoQualityWhenSevereStallHappens:!1,timeoutShowSlowVideoNotification:0,maxCountShowSlowVideoNotification:1,forcePlayerDisplayBlock:!1},controls:{showOnStartupAtAutoplay:!0,hideTimeout:500,hideTimeoutMobile:3e3,hideTimeoutInitial:200,hideTimeoutFullscreen:3e3,hideTimeoutCursor:3e3,hideTimeoutTooltips:1e3,collapseMobileUnmute:6e3,hide360IconTimeout:3e3,hideHotKeyHelpers:2e3,playbackRateMin:.25,playbackRateMax:2,playbackRateStep:.25,volumeStepKeyboard:.05,volumeStepWheel:.05,volumeBarTimeout:300,seekStepKeyboard:1e4,seekStepMobile:15e3,seekStepFrame:400},ads:{enable:void 0,initTimeout:2e3,loadTimeout:2e3,runtimeTimeout:5e3,slot:void 0,preview:void 0,isMobileGoToSiteButton:!0,useAdmanFromNPM:!1,volumeMultiplier:1,isVsidOriginal:!1},interactive:{historyMaxLength:100,noInteractionEventTimeout:3e4},view:{timelineSliderColor:null,timelineSliderHandleColor:null,timelineSliderFilledColor:null,timelineSliderLoadedColor:null,volumeSliderColor:null,volumeSliderHandleColor:null,volumeSliderFilledColor:null,controlsTimeColor:null,timelineSliderFilledActiveLiveColor:null,timelineSliderHandleActiveLiveColor:null,buttonColor:null,buttonToggleOnColor:null,focusedColor:null}},Jv=t=>g$(t,h$),eg=t=>Ia("ui-config",t),Qt=()=>Ta("ui-config");var oc="vk_player_debug_panel_opened";var tg="videoplayer",ig="videoplayer";var jr={KeyF:"f",KeyK:"k",KeyC:"c",KeyM:"m"},og=new Set(["ArrowLeft","ArrowRight","KeyL","KeyJ"]),ng=new Set(["Tab","Space","ArrowLeft","ArrowRight","ArrowUp","ArrowDown"]),rg=new Set(["ShiftRight","ShiftLeft"]);var sg=["TIMELINE"],nc=[...sg,"GRAPH_BUTTON"],Df=[...sg,"PLAY_BUTTON"],rc=[...nc,"PLAY_BUTTON"];var Zr=(s=>(s.XS="xs",s.S="s",s.M="m",s.L="l",s.XL="xl",s))(Zr||{}),oa={xs:0,s:1,m:2,l:3,xl:4};import{assertNonNullable as ag,VERSION as _$}from"@vkontakte/videoplayer-shared/evergreen";import{VERSION as $$}from"@vkontakte/videoplayer-core/evergreen";import{VERSION as b$}from"@vkontakte/videoplayer-statistics/evergreen";var cd="prod",za="1.1.59";var na=(t,e,i)=>{let o=document.createElement("a");o.href=t,o.download=`${e}.${i}`,o.style.display="none",o.click()};var lg=Symbol("storeContext"),cg=Symbol("microStoresContext"),dg=(t,e)=>{Ia(lg,t),Ia(cg,e),cd==="dev"&&(window.app={store:t,microStores:e})},Be=()=>{let t=Ta(lg);return ag(t,"Store context is empty!"),t},go=()=>{let t=Ta(cg);return ag(t,"MicroStores context is empty!"),t},Xt=(t,e)=>ud(t,t.getValue(),e),ud=(t,e,i)=>ir(e,o=>{let n=t.subscribe(s=>{o(s),i?.(s)});return()=>n.unsubscribe()}),ug=(t,e,i)=>{let o=t.info,{width:n,height:s}=Ae(i.ui.playerSize),a=o.throughputEstimation$.getValue()?.toFixed(0)??0,l=o.rttEstimation$.getValue()?.toFixed(0)??0,c=o.isAutoQualityEnabled$.getValue()?"auto":"manual",p=`${za} (core: ${$$}, stat: ${b$}, shared: ${_$})`,f=Ae(i.state.errorLog$),v=f.length?`
46
- `+f.map((V,F)=>{let M=`${F}) Type: ${V.id}
47
- `,H=`Message: ${V.message} (${V.thrown})
48
- `,S=`Trace: ${V.thrown?.stack}
49
- `;return M+H+S}).join(`
50
- `):void 0,m=i.state.isAudioDisabled?"disabled":Ae(i.state.isAudioAvailable$)?void 0:"unavailable",g=t.info.currentVideoStream$.getValue(),b=t.info.currentAudioStream$.getValue(),w=[];g&&w.push(`Video: ${g?.codec??""}`+(g?.hdr?" (HDR)":"")),b&&w.push(`Audio: ${b?.codec??""}`+(b?.language?` (${b.language})`:""));let k={Version:p,Browser:navigator.userAgent,Config:t.experimental.tuningConfigName$.getValue().join(", "),"United video id":String(i.videoId),VSID:Ae(i.vsid),"Content host":o.hostname$.getValue(),"Connection type":o.httpConnectionType$.getValue()+(o.httpConnectionReused$.getValue()?" (reused)":""),Throughput:`${a}Kbps @ ${l}ms RTT`,Format:o.currentFormat$.getValue(),"Available Formats":Object.keys(e.sources).join(", "),Streams:w.join(", "),Quality:`${c} ${o.currentQuality$.getValue()}`,"Available qualities":o.availableQualities$.getValue().join(", "),Audio:m,Position:`${Ae(i.state.positionExact$)}s`,State:`${Ae(i.playerPhase)} ${o.playbackState$.getValue()}`,"Player size":`${n}x${s}`,URL:window.location.href,Errors:v};return Object.entries(k).filter(([V,F])=>F!==void 0).map(([V,F])=>`${V}: ${F}`).join(`
51
- `)},pg=(t,e,i)=>{let o=t.info,{width:n,height:s}=Ae(i.ui.playerSize),a={version:za,viewport:`${n}x${s}`,volume:Math.round(Ae(i.state.volume$)*100)};a.id=i.videoId,o.currentFormat$.getValue()&&(a.provider=o.currentFormat$.getValue()),o.hostname$.getValue()&&(a.cdn=o.hostname$.getValue());let p=o.intrinsicVideoSize$.getValue();p&&(a.videoSize=`${p.width}x${p.height}`);let f=o.currentBuffer$.getValue(),v=o.isLive$.getValue(),m=o.liveBufferTime$.getValue();f&&(v&&m?a.buffer=f.end-m:a.buffer=Math.max(f.end-Ae(i.state.positionExact$),0));let g=o.throughputEstimation$.getValue();g&&(a.speed=g);let b=o.videoBitrate$.getValue();b&&(a.bitrate=b);let w=o.liveLatency$.getValue();w&&(a.liveLatency=w);let k=o.currentVideoSegmentLength$.getValue();k&&(a.currentVideoSegmentLength=k);let V=o.currentAudioSegmentLength$.getValue();V&&(a.currentAudioSegmentLength=V);let F=Ae(i.vsid);typeof F=="string"&&(a.vsid=F);let M=t.info.currentVideoStream$.getValue()?.codec;M&&(a.videoCodec=M);let H=t.info.currentAudioStream$.getValue()?.codec;H&&(a.audioCodec=H),t.info.currentVideoStream$.getValue()?.hdr&&(a.hdr=!0);let q=t.info.currentAudioStream$.getValue()?.language;return q&&(a.audioLanguage=q),a},fg=(t,e)=>na(t,e,"mp4"),mg=t=>!t.type,vg=t=>!!t.type,gg=()=>{let e=[],i=0;return{add:(o,n)=>{e[i]=[o,n],i=(i+1)%10},find:o=>e.find(([n])=>n===o)}},dd=class{constructor(){this.destroyController=new AbortController;this.pendingDownloads=new Set}async download(e){if(this.pendingDownloads.has(e))return null;this.pendingDownloads.add(e);try{let i=await fetch(e,{signal:this.destroyController.signal});if(i.ok)return await i.text();throw i}finally{this.pendingDownloads.delete(e)}}destroy(){this.destroyController.abort(),this.pendingDownloads.clear()}isDestroyed(){return this.destroyController.signal.aborted}};import{isNullable as Ff,safeStorage as no}from"@vkontakte/videoplayer-shared/evergreen";import"@vkontakte/videoplayer-core/evergreen";var hg="vk_player_prefer_traffic_saving_enabled",_g="vk_player_preferred_volume",$g="vk_player_prefer_volume_mute",Uf="vk_player_preferred_quality",Of="vk_player_preferred_default_quality_settings",Hf="vk_player_preferred_quality_settings_by_video",bg="vk_player_preferred_stream_language",yg="vk_player_preferred_rate",xg="vk_player_preferred_autoplay_next",wg=t=>t>1?1:t<0?0:t,zf=t=>no.set(_g,wg(t).toString(10)),pd=()=>{let t=no.get(_g);return Ff(t)?void 0:wg(parseFloat(t))},Wf=(t,e)=>no.set(Uf,JSON.stringify({videoId:t,value:e})),ac=()=>no.remove(Uf),qf=t=>{let e=no.get(Uf);if(Ff(e))return;let{videoId:i,value:o}=JSON.parse(e);if(t!==i){ac();return}return o},Kf=(t,e)=>{e?no.set(t,"true"):no.remove(t)},Qf=t=>no.get(t)==="true",Gf=t=>Kf($g,t),Cg=()=>Qf($g),sc=t=>Kf(hg,t),Yf=()=>Qf(hg),Sg=()=>no.get(bg),jf=t=>no.set(bg,t),kg=t=>no.set(yg,JSON.stringify({rate:t})),Tg=()=>{let t=no.get(yg);if(Ff(t))return;let{rate:e}=JSON.parse(t);return e},Ig=t=>Kf(xg,t),Eg=()=>Qf(xg),y$=()=>{let t=f=>{no.set(Of,JSON.stringify(f))},e=()=>{try{let f=no.get(Of);return f?JSON.parse(f):null}catch{return null}},i=()=>{try{let f=no.get(Hf);return f?JSON.parse(f):null}catch{return null}},o=f=>{no.set(Hf,JSON.stringify(f))},n=f=>{p(f);let v=f?i():null;if(v&&v?.videoId===f)return{...v,appliesTo:"to-video"};v&&s();let m=e();return m?{...m,appliesTo:"as-default"}:(t({type:"auto_quality"}),{type:"auto_quality",appliesTo:"as-default"})},s=()=>{no.remove(Hf)},a=()=>{no.remove(Of)},l=(f,v="as-default")=>{f.type==="exact_quality"?o(f):v==="as-default"?t(f):o(f)},c=f=>{let v=n(f);if(v){switch(v.type){case"traffic_saving":sc(!0);break;case"exact_quality":Wf(f,v.quality)}s(),a()}},p=f=>{let v=qf(f);if(v){o({type:"exact_quality",videoId:f,quality:v});return}Yf()&&t({type:"traffic_saving",videoId:f}),sc(!1),ac()};return{getPreferredQualitySettings:n,migrateSettingsToLegacyWay:c,savePreferredQualitySettings:l,savePreferredDefaultQualitySettings:t,removePreferredQualitySettingsByVideo:s,getPreferredDefaultQualitySettings:e}},{getPreferredQualitySettings:Pg,migrateSettingsToLegacyWay:Ag,savePreferredQualitySettings:fd,savePreferredDefaultQualitySettings:LE,removePreferredQualitySettingsByVideo:RE,getPreferredDefaultQualitySettings:md}=y$();import{PlaybackState as jh}from"@vkontakte/videoplayer-core/evergreen";Km();var x$=Ie('<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 Wa(t,e){if(new.target)return T({component:Wa,...t});let i=Oe(e,["children","$$slots","$$events","$$legacy"]);I(e,!1);var o=x$();let n;var s=y(o);return De(s,e,"default",{},null),Te(2),$(o),L(()=>n=Le(o,n,{xmlns:"http://www.w3.org/2000/svg",width:"76",height:"45",fill:"none","data-testid":"video-360-icon",role:"img",...i},void 0,!0)),x(t,o),E({$set:A,$on:(a,l)=>P(e,a,l)})}import{isNullable as Rg,InterfaceLanguage as Vg}from"@vkontakte/videoplayer-shared/evergreen";var w$={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 wt=null;function el(t){wt=t}var Bo=null;function tl(t){Bo=t}function ps(t){return ku("getContext").get(t)}function fs(t,e){let i=ku("setContext");return $e&&pt(()=>wu(e,null,!0)),i.set(t,e),e}function ol(){return ku("getAllContexts")}function F(t,e=!1,i){var o=wt={p:wt,c:null,d:!1,e:null,m:!1,s:t,x:null,l:null};Er&&!e&&(wt.l={s:null,u:null,r1:[],r2:wi(!1)}),No(()=>{o.d=!0}),$e&&(wt.function=i,Bo=i)}function U(t){let e=wt;if(e!==null){t!==void 0&&(e.x=t);let s=e.e;if(s!==null){var i=vt,o=Tt;e.e=null;try{for(var n=0;n<s.length;n++){var a=s[n];Bi(a.effect),Zi(a.reaction),en(a.fn)}}finally{Bi(i),Zi(o)}}wt=e.p,$e&&(Bo=e.p?.function??null),e.m=!0}return t||{}}function Pr(){return!Er||wt!==null&&wt.l===null}function ku(t){return wt===null&&us(t),wt.c??=new Map(g1(wt)||void 0)}function g1(t){let e=t.p;for(;e!==null;){let i=e.c;if(i!==null)return i;e=e.p}return null}var h1=/\r/g;function pv(t){t=t.replace(h1,"");let e=5381,i=t.length;for(;i--;)e=(e<<5)-e^t.charCodeAt(i);return(e>>>0).toString(36)}function fv(t){return t.endsWith("capture")&&t!=="gotpointercapture"&&t!=="lostpointercapture"}var _1=["beforeinput","click","change","dblclick","contextmenu","focusin","focusout","input","keydown","keyup","mousedown","mousemove","mouseout","mouseover","mouseup","pointerdown","pointermove","pointerout","pointerover","pointerup","touchend","touchmove","touchstart"];function mv(t){return _1.includes(t)}var b1=["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 $1={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 vv(t){return t=t.toLowerCase(),$1[t]??t}var _w=[...b1,"formNoValidate","isMap","noModule","playsInline","readOnly","value","volume","defaultValue","defaultChecked","srcObject","noValidate","allowFullscreen","disablePictureInPicture","disableRemotePlayback"];var y1=["touchstart","touchmove"];function gv(t){return y1.includes(t)}var x1=["textarea","script","style","title"];function hv(t){return x1.includes(t)}function Tu(t){return t?.replace(/\//g,"/\u200B")}var _v=new Map;function bv(t,e){var i=_v.get(t);i||(i=new Set,_v.set(t,i)),i.add(e)}function Iu(t,e){if(e){let i=document.body;t.autofocus=!0,Ao(()=>{document.activeElement===i&&t.focus()})}}function nl(t){var e=Tt,i=vt;Zi(null),Bi(null);try{return t()}finally{Zi(e),Bi(i)}}var Eu=new Set,Kd=new Set;function Ia(t){if(!We)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 Au(t,e,i,o={}){function n(a){if(o.capture||ms.call(e,a),!a.cancelBubble)return nl(()=>i?.call(this,a))}return t.startsWith("pointer")||t.startsWith("touch")||t==="wheel"?Ao(()=>{e.addEventListener(t,n,o)}):e.addEventListener(t,n,o),n}function St(t,e,i,o,n){var a={capture:o,passive:n},s=Au(t,e,i,a);(e===document.body||e===window||e===document)&&No(()=>{e.removeEventListener(t,s,a)})}function it(t){for(var e=0;e<t.length;e++)Eu.add(t[e]);for(var i of Kd)i(t)}function ms(t){var e=this,i=e.ownerDocument,o=t.type,n=t.composedPath?.()||[],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 c=n.indexOf(e);if(c===-1)return;l<=c&&(s=l)}if(a=n[s]||t.target,a!==e){Ri(t,"currentTarget",{configurable:!0,get(){return a||i}});var u=Tt,_=vt;Zi(null),Bi(null);try{for(var f,y=[];a!==null;){var x=a.assignedSlot||a.parentNode||a.host||null;try{var w=a["__"+o];if(w!=null&&(!a.disabled||t.target===a))if(sr(w)){var[S,...I]=w;S.apply(a,[t,...I])}else w.call(a,t)}catch(L){f?y.push(L):f=L}if(t.cancelBubble||x===e||x===null)break;a=x}if(f){for(let L of y)queueMicrotask(()=>{throw L});throw f}}finally{t.__root=e,delete t.currentTarget,Zi(u),Bi(_)}}}var S1;function $v(){S1=void 0}function vs(t){var e=document.createElement("template");return e.innerHTML=t,e.content}function eo(t,e){var i=vt;i.nodes_start===null&&(i.nodes_start=t,i.nodes_end=e)}function M(t,e){var i=(e&1)!==0,o=(e&2)!==0,n,a=!t.startsWith("<!>");return()=>{if(We)return eo(lt,null),lt;n===void 0&&(n=vs(a?t:"<!>"+t),i||(n=si(n)));var s=o||Gs?document.importNode(n,!0):n.cloneNode(!0);if(i){var d=si(s),l=s.lastChild;eo(d,l)}else eo(s,s);return s}}function me(t,e,i="svg"){var o=!t.startsWith("<!>"),n=(e&1)!==0,a=`<${i}>${o?t:"<!>"+t}</${i}>`,s;return()=>{if(We)return eo(lt,null),lt;if(!s){var d=vs(a),l=si(d);if(n)for(s=document.createDocumentFragment();si(l);)s.appendChild(si(l));else s=si(l)}var c=s.cloneNode(!0);if(n){var u=si(c),_=c.lastChild;eo(u,_)}else eo(c,c);return c}}function qn(t=""){if(!We){var e=Vo(t+"");return eo(e,e),e}var i=lt;return i.nodeType!==3&&(i.before(i=Vo()),ai(i)),eo(i,i),i}function ze(){if(We)return eo(lt,null),lt;var t=document.createDocumentFragment(),e=document.createComment(""),i=Vo();return t.append(e,i),eo(e,i),t}function b(t,e){if(We){vt.nodes_end=lt,bi();return}t!==null&&t.before(e)}var rl=!0;function Wd(t){rl=t}function de(t,e){var i=e==null?"":typeof e=="object"?e+"":e;i!==(t.__t??=t.nodeValue)&&(t.__t=i,t.nodeValue=i+"")}function Wr(t,e){return xv(t,e)}function Mu(t,e){Ld(),e.intro=e.intro??!1;let i=e.target,o=We,n=lt;try{for(var a=si(i);a&&(a.nodeType!==8||a.data!==ta);)a=so(a);if(!a)throw Dr;Di(!0),ai(a),bi();let s=xv(t,{...e,anchor:a});if(lt===null||lt.nodeType!==8||lt.data!==_a)throw Sa(),Dr;return Di(!1),s}catch(s){if(s===Dr)return e.recover===!1&&Am(),Ld(),js(i),Di(!1),Wr(t,e);throw s}finally{Di(o),ai(n),$v()}}var gs=new Map;function xv(t,{target:e,anchor:i,props:o={},events:n,context:a,intro:s=!0}){Ld();var d=new Set,l=_=>{for(var f=0;f<_.length;f++){var y=_[f];if(!d.has(y)){d.add(y);var x=gv(y);e.addEventListener(y,ms,{passive:x});var w=gs.get(y);w===void 0?(document.addEventListener(y,ms,{passive:x}),gs.set(y,1)):gs.set(y,w+1)}}};l(zs(Eu)),Kd.add(l);var c=void 0,u=dv(()=>{var _=i??e.appendChild(Vo());return Si(()=>{if(a){F({});var f=wt;f.c=a}n&&(o.$$events=n),We&&eo(_,null),rl=s,c=t(_,o)||{},rl=!0,We&&(vt.nodes_end=lt),a&&U()}),()=>{for(var f of d){e.removeEventListener(f,ms);var y=gs.get(f);--y===0?(document.removeEventListener(f,ms),gs.delete(f)):gs.set(f,y)}Kd.delete(l),_!==i&&_.parentNode?.removeChild(_)}});return Pu.set(c,u),c}var Pu=new WeakMap;function Ea(t,e){let i=Pu.get(t);return i?(Pu.delete(t),i(e)):($e&&Wm(),Promise.resolve())}function V(t,e,[i,o]=[0,0]){We&&i===0&&bi();var n=t,a=null,s=null,d=_i,l=i>0?65536:0,c=!1;let u=(f,y=!0)=>{c=!0,_(y,f)},_=(f,y)=>{if(d===(d=f))return;let x=!1;if(We&&o!==-1){if(i===0){let S=n.data;S===ta?o=0:S===ha?o=1/0:(o=parseInt(S.substring(1)),o!==o&&(o=d?1/0:-1))}let w=o>i;!!d===w&&(n=as(),ai(n),Di(!1),x=!0,o=-1)}d?(a?Kr(a):y&&(a=Si(()=>y(n))),s&&tn(s,()=>{s=null})):(s?Kr(s):y&&(s=Si(()=>y(n,[i+1,o]))),a&&tn(a,()=>{a=null})),x&&Di(!0)};Oi(()=>{c=!1,e(u),c||_(null,null)},l),We&&(n=lt)}function al(t,e,i){We&&bi();var o=t,n=_i,a,s=Pr()?Sm:es;Oi(()=>{s(n,n=e())&&(a&&tn(a),a=Si(()=>i(o)))}),We&&(o=lt)}var aa=null;function Ru(t){aa=t}function sl(t,e){return e}function I1(t,e,i,o){for(var n=[],a=e.length,s=0;s<a;s++)Ud(e[s].e,n,!0);var d=a>0&&n.length===0&&i!==null;if(d){var l=i.parentNode;js(l),l.append(i),o.clear(),ra(t,e[0].prev,e[a-1].next)}xu(n,()=>{for(var c=0;c<a;c++){var u=e[c];d||(o.delete(u.k),ra(t,u.prev,u.next)),Ni(u.e,!d)}})}function fi(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 c=t;s=We?ai(si(c)):c.appendChild(Vo())}We&&bi();var u=null,_=!1,f=cr(()=>{var y=i();return sr(y)?y:y==null?[]:zs(y)});Oi(()=>{var y=r(f),x=y.length;if(_&&x===0)return;_=x===0;let w=!1;if(We){var S=s.data===ha;S!==(x===0)&&(s=as(),ai(s),Di(!1),w=!0)}if(We){for(var I=null,L,A=0;A<x;A++){if(lt.nodeType===8&&lt.data===_a){s=lt,w=!0,Di(!1);break}var P=y[A],T=o(P,A);L=Cv(lt,d,I,null,P,T,A,n,e,i),d.items.set(T,L),I=L}x>0&&ai(as())}We||E1(y,d,s,n,e,o,i),a!==null&&(x===0?u?Kr(u):u=Si(()=>a(s)):u!==null&&tn(u,()=>{u=null})),w&&Di(!0),r(f)}),We&&(s=lt)}function E1(t,e,i,o,n,a,s){var d=(n&8)!==0,l=(n&3)!==0,c=t.length,u=e.items,_=e.first,f=_,y,x=null,w,S=[],I=[],L,A,P,T;if(d)for(T=0;T<c;T+=1)L=t[T],A=a(L,T),P=u.get(A),P!==void 0&&(P.a?.measure(),(w??=new Set).add(P));for(T=0;T<c;T+=1){if(L=t[T],A=a(L,T),P=u.get(A),P===void 0){var D=f?f.e.nodes_start:i;x=Cv(D,e,x,x===null?e.first:x.next,L,A,T,o,n,s),u.set(A,x),S=[],I=[],f=x.next;continue}if(l&&A1(P,L,T,n),(P.e.f&8192)!==0&&(Kr(P.e),d&&(P.a?.unfix(),(w??=new Set).delete(P))),P!==f){if(y!==void 0&&y.has(P)){if(S.length<I.length){var Q=I[0],G;x=Q.prev;var ee=S[0],ie=S[S.length-1];for(G=0;G<S.length;G+=1)wv(S[G],Q,i);for(G=0;G<I.length;G+=1)y.delete(I[G]);ra(e,ee.prev,ie.next),ra(e,x,ee),ra(e,ie,Q),f=Q,x=ie,T-=1,S=[],I=[]}else y.delete(P),wv(P,f,i),ra(e,P.prev,P.next),ra(e,P,x===null?e.first:x.next),ra(e,x,P),x=P;continue}for(S=[],I=[];f!==null&&f.k!==A;)(f.e.f&8192)===0&&(y??=new Set).add(f),I.push(f),f=f.next;if(f===null)continue;P=f}S.push(P),x=P,f=P.next}if(f!==null||y!==void 0){for(var oe=y===void 0?[]:zs(y);f!==null;)(f.e.f&8192)===0&&oe.push(f),f=f.next;var te=oe.length;if(te>0){var ge=(n&4)!==0&&c===0?i:null;if(d){for(T=0;T<te;T+=1)oe[T].a?.measure();for(T=0;T<te;T+=1)oe[T].a?.fix()}I1(e,oe,ge,u)}}d&&Ao(()=>{if(w!==void 0)for(P of w)P.a?.apply()}),vt.first=e.first&&e.first.e,vt.last=x&&x.e}function A1(t,e,i,o){(o&1)!==0&&os(t.v,e),(o&2)!==0?os(t.i,i):t.i=i}function Cv(t,e,i,o,n,a,s,d,l,c){var u=aa,_=(l&1)!==0,f=(l&16)===0,y=_?f?zr(n):wi(n):n,x=(l&2)===0?s:wi(s);$e&&_&&(y.debug=()=>{var S=typeof x=="number"?s:x.v;c()[S]});var w={i:x,v:y,k:a,a:null,e:null,prev:i,next:o};aa=w;try{return w.e=Si(()=>d(t,y,x,c),We),w.e.prev=i&&i.e,w.e.next=o&&o.e,i===null?e.first=w:(i.next=w,i.e.next=w.e),o!==null&&(o.prev=w,o.e.prev=w.e),w}finally{aa=u}}function wv(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=so(a);n.before(a),a=s}}function ra(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 P1(t,e,i){if(!e||e===pv(String(i??"")))return;let o,n=t.__svelte_meta?.loc;n?o=`near ${n.file}:${n.line}:${n.column}`:Bo?.[ri]&&(o=`in ${Bo[ri]}`),Km(Tu(o))}function ll(t,e,i,o,n){var a=t,s="",d;Oi(()=>{if(s===(s=e()??"")){We&&bi();return}d!==void 0&&(Ni(d),d=void 0),s!==""&&(d=Si(()=>{if(We){for(var l=lt.data,c=bi(),u=c;c!==null&&(c.nodeType!==8||c.data!=="");)u=c,c=so(c);if(c===null)throw Sa(),Dr;$e&&!n&&P1(c.parentNode,l,s),eo(lt,u),a=ai(c);return}var _=s+"";i?_=`<svg>${_}</svg>`:o&&(_=`<math>${_}</math>`);var f=vs(_);if((i||o)&&(f=si(f)),eo(si(f),f.lastChild),i||o)for(;si(f);)a.before(si(f));else a.before(f)}))})}function ce(t,e,...i){var o=t,n=J,a;Oi(()=>{n!==(n=e())&&(a&&(Ni(a),a=null),$e&&n==null&&Pm(),a=Si(()=>n(o,...i)))},65536),We&&(o=lt)}function $i(t,e,i){We&&bi();var o=t,n,a;Oi(()=>{n!==(n=e())&&(a&&(tn(a),a=null),n&&(a=Si(()=>i(o,n))))},65536),We&&(o=lt)}function dl(t,e,i,o,n,a){let s=We;We&&bi();var d=$e&&a&&wt?.function[ri],l,c,u=null;We&&lt.nodeType===1&&(u=lt,bi());var _=We?lt:t,f,y=aa;Oi(()=>{let x=e()||null;var w=n?n():i||x==="svg"?Jc:null;if(x!==l){var S=aa;Ru(y),f&&(x===null?tn(f,()=>{f=null,c=null}):x===c?Kr(f):(Ni(f),Wd(!1))),x&&x!==c&&(f=Si(()=>{if(u=We?u:w?document.createElementNS(w,x):document.createElement(x),$e&&a&&(u.__svelte_meta={loc:{file:d,line:a[0],column:a[1]}}),eo(u,u),o){We&&hv(x)&&u.append(document.createComment(""));var I=We?si(u):u.appendChild(Vo());We&&(I===null?Di(!1):ai(I)),o(u,I)}vt.nodes_end=u,_.before(u)})),l=x,l&&(c=l),Wd(!0),Ru(S)}},65536),s&&(Di(!0),ai(_))}var Nu;function kv(t){return Nu=t.target,new Bu(t)}var Bu=class{#t;#e;constructor(e){var i=new Map,o=(a,s)=>{var d=zr(s);return i.set(a,d),d};let n=new Proxy({...e.props||{},$$events:{}},{get(a,s){return r(i.get(s)??o(s,Reflect.get(a,s)))},has(a,s){return s===Us?!0:(r(i.get(s)??o(s,Reflect.get(a,s))),Reflect.has(a,s))},set(a,s,d){return N(i.get(s)??o(s,d),d),Reflect.set(a,s,d)}});this.#e=(e.hydrate?Mu:Wr)(e.component,{target:e.target,anchor:e.anchor,props:n,context:e.context,intro:e.intro??!1,recover:e.recover}),(!e?.props?.$$host||e.sync===!1)&&ds(),this.#t=n.$$events;for(let a of Object.keys(this.#e))a==="$set"||a==="$destroy"||a==="$on"||Ri(this,a,{get(){return this.#e[a]},set(s){this.#e[a]=s},enumerable:!0});this.#e.$set=a=>{Object.assign(n,a)},this.#e.$destroy=()=>{Ea(this.#e)}}$set(e){this.#e.$set(e)}$on(e,i){this.#t[e]=this.#t[e]||[];let o=(...n)=>i.call(this,...n);return this.#t[e].push(o),()=>{this.#t[e]=this.#t[e].filter(n=>n!==o)}}$destroy(){this.#e.$destroy()}};function q(t,e){Ao(()=>{var i=t.getRootNode(),o=i.host?i:i.head??i.ownerDocument.head??Nu?.parentNode;if(!o?.querySelector("#"+e.hash)){let n=document.createElement("style");n.id=e.hash,n.textContent=e.code,o.appendChild(n),$e&&bv(e.hash,n)}})}function Tv(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=Tv(t[e]))&&(o&&(o+=" "),o+=i)}else for(i in t)t[i]&&(o&&(o+=" "),o+=i);return o}function Iv(){for(var t,e,i=0,o="",n=arguments.length;i<n;i++)(t=arguments[i])&&(e=Tv(t))&&(o&&(o+=" "),o+=e);return o}function cl(t){return typeof t=="object"?Iv(t):t??""}var Ev=[...`
48
+ \r\f\xA0\v\uFEFF`];function Pv(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||Ev.includes(o[s-1]))&&(d===o.length||Ev.includes(o[d]))?o=(s===0?"":o.substring(0,s))+o.substring(d+1):s=d}}return o===""?null:o}function Av(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 Du(t){return t[0]!=="-"||t[1]!=="-"?t.toLowerCase():t}function Mv(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(Du)),n&&l.push(...Object.keys(n).map(Du));var c=0,u=-1;let w=t.length;for(var _=0;_<w;_++){var f=t[_];if(d?f==="/"&&t[_-1]==="*"&&(d=!1):a?a===f&&(a=!1):f==="/"&&t[_+1]==="*"?d=!0:f==='"'||f==="'"?a=f:f==="("?s++:f===")"&&s--,!d&&a===!1&&s===0){if(f===":"&&u===-1)u=_;else if(f===";"||_===w-1){if(u!==-1){var y=Du(t.substring(c,u).trim());if(!l.includes(y)){f!==";"&&_++;var x=t.substring(c,_).trim();i+=" "+x+";"}}c=_+1,u=-1}}}}return o&&(i+=Av(o)),n&&(i+=Av(n,!0)),i=i.trim(),i===""?null:i}return t==null?null:String(t)}function Z(t,e,i,o,n,a){var s=t.__className;if(We||s!==i){var d=Pv(i,o,a);(!We||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 c=!!a[l];(n==null||c!==!!n[l])&&t.classList.toggle(l,c)}return a}function Ou(t,e={},i,o){for(var n in i){var a=i[n];e[n]!==a&&(i[n]==null?t.style.removeProperty(n):t.style.setProperty(n,a,o))}}function tt(t,e,i,o){var n=t.__style;if(We||n!==e){var a=Mv(e,o);(!We||a!==t.getAttribute("style"))&&(a==null?t.removeAttribute("style"):t.style.cssText=a),t.__style=e}else o&&(Array.isArray(o)?(Ou(t,i?.[0],o[0]),Ou(t,i?.[1],o[1],"important")):Ou(t,i,o));return o}var hs=Symbol("class"),_s=Symbol("style"),Rv=Symbol("is custom element"),Bv=Symbol("is html");function Nv(t,e){e?t.hasAttribute("selected")||t.setAttribute("selected",""):t.removeAttribute("selected")}function Me(t,e,i,o){var n=Dv(t);if(We&&(n[e]=t.getAttribute(e),e==="src"||e==="srcset"||e==="href"&&t.nodeName==="LINK")){o||D1(t,e,i??"");return}n[e]!==(n[e]=i)&&(e==="loading"&&(t[bm]=i),i==null?t.removeAttribute(e):typeof i!="string"&&Ov(t).includes(e)?t[e]=i:t.setAttribute(e,i))}function he(t,e,i,o,n=!1){var a=Dv(t),s=a[Rv],d=!a[Bv];let l=We&&s;l&&Di(!1);var c=e||{},u=t.tagName==="OPTION";for(var _ in e)_ in i||(i[_]=null);i.class?i.class=cl(i.class):(o||i[hs])&&(i.class=null),i[_s]&&(i.style??=null);var f=Ov(t);for(let P in i){let T=i[P];if(u&&P==="value"&&T==null){t.value=t.__value="",c[P]=T;continue}if(P==="class"){var y=t.namespaceURI==="http://www.w3.org/1999/xhtml";Z(t,y,T,o,e?.[hs],i[hs]),c[P]=T,c[hs]=i[hs];continue}if(P==="style"){tt(t,T,e?.[_s],i[_s]),c[P]=T,c[_s]=i[_s];continue}var x=c[P];if(T!==x){c[P]=T;var w=P[0]+P[1];if(w!=="$$")if(w==="on"){let D={},Q="$$"+P,G=P.slice(2);var S=mv(G);if(fv(G)&&(G=G.slice(0,-7),D.capture=!0),!S&&x){if(T!=null)continue;t.removeEventListener(G,c[Q],D),c[Q]=null}if(T!=null)if(S)t[`__${G}`]=T,it([G]);else{let ee=function(ie){c[P].call(this,ie)};var A=ee;c[Q]=Au(G,t,ee,D)}else S&&(t[`__${G}`]=void 0)}else if(P==="style")Me(t,P,T);else if(P==="autofocus")Iu(t,!!T);else if(!s&&(P==="__value"||P==="value"&&T!=null))t.value=t.__value=T;else if(P==="selected"&&u)Nv(t,T);else{var I=P;d||(I=vv(I));var L=I==="defaultValue"||I==="defaultChecked";if(T==null&&!s&&!L)if(a[P]=null,I==="value"||I==="checked"){let D=t,Q=e===void 0;if(I==="value"){let G=D.defaultValue;D.removeAttribute(I),D.defaultValue=G,D.value=D.__value=Q?G:null}else{let G=D.defaultChecked;D.removeAttribute(I),D.defaultChecked=G,D.checked=Q?G:!1}}else t.removeAttribute(P);else L||f.includes(I)&&(s||typeof T!="string")?t[I]=T:typeof T!="function"&&Me(t,I,T,n)}}}return l&&Di(!0),c}function Dv(t){return t.__attributes??={[Rv]:t.nodeName.includes("-"),[Bv]:t.namespaceURI===_m}}var Lv=new Map;function Ov(t){var e=Lv.get(t.nodeName);if(e)return e;Lv.set(t.nodeName,e=[]);for(var i,o=t,n=Element.prototype;n!==o;){i=Td(o);for(var a in i)i[a].set&&e.push(a);o=Hr(o)}return e}function D1(t,e,i){$e&&(e==="srcset"&&O1(t,i)||Hu(t.getAttribute(e)??"",i)||qm(e,t.outerHTML.replace(t.innerHTML,t.innerHTML&&"..."),String(i)))}function Hu(t,e){return t===e?!0:new URL(t,document.baseURI).href===new URL(e,document.baseURI).href}function Vv(t){return t.split(",").map(e=>e.trim().split(" ").filter(Boolean))}function O1(t,e){var i=Vv(t.srcset),o=Vv(e);return o.length===i.length&&o.every(([n,a],s)=>a===i[s][1]&&(Hu(i[s][0],n)||Hu(n,i[s][0])))}var H1=kd?()=>performance.now():()=>Date.now(),pr={tick:t=>(kd?requestAnimationFrame:J)(t),now:()=>H1(),tasks:new Set};function Hv(){let t=pr.now();pr.tasks.forEach(e=>{e.c(t)||(pr.tasks.delete(e),e.f())}),pr.tasks.size!==0&&pr.tick(Hv)}function Fv(t){let e;return pr.tasks.size===0&&pr.tick(Hv),{promise:new Promise(i=>{pr.tasks.add(e={c:t,f:i})}),abort(){pr.tasks.delete(e)}}}function Qd(t,e){nl(()=>{t.dispatchEvent(new CustomEvent(e))})}function q1(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 Uv(t){let e={},i=t.split(";");for(let o of i){let[n,a]=o.split(":");if(!n||a===void 0)break;let s=q1(n.trim());e[s]=a.trim()}return e}var K1=t=>t;function Uu(t,e,i,o){var n=(t&1)!==0,a=(t&2)!==0,s=n&&a,d=(t&4)!==0,l=s?"both":n?"in":"out",c,u=e.inert,_=e.style.overflow,f,y;function x(){var A=Tt,P=vt;Zi(null),Bi(null);try{return c??=i()(e,o?.()??{},{direction:l})}finally{Zi(A),Bi(P)}}var w={is_global:d,in(){if(e.inert=u,!n){y?.abort(),y?.reset?.();return}a||f?.abort(),Qd(e,"introstart"),f=Fu(e,x(),y,1,()=>{Qd(e,"introend"),f?.abort(),f=c=void 0,e.style.overflow=_})},out(A){if(!a){A?.(),c=void 0;return}e.inert=!0,Qd(e,"outrostart"),y=Fu(e,x(),f,0,()=>{Qd(e,"outroend"),A?.()})},stop:()=>{f?.abort(),y?.abort()}},S=vt;if((S.transitions??=[]).push(w),n&&rl){var I=d;if(!I){for(var L=S.parent;L&&(L.f&65536)!==0;)for(;(L=L.parent)&&(L.f&16)===0;);I=!L||(L.f&32768)!==0}I&&en(()=>{pt(()=>w.in())})}}function Fu(t,e,i,o,n){var a=o===1;if(ia(e)){var s,d=!1;return Ao(()=>{if(!d){var S=e({direction:a?"in":"out"});s=Fu(t,S,i,o,n)}}),{abort:()=>{d=!0,s?.abort()},deactivate:()=>s.deactivate(),reset:()=>s.reset(),t:()=>s.t()}}if(i?.deactivate(),!e?.duration)return n(),{abort:J,deactivate:J,reset:J,t:()=>o};let{delay:l=0,css:c,tick:u,easing:_=K1}=e;var f=[];if(a&&i===void 0&&(u&&u(0,1),c)){var y=Uv(c(0,1));f.push(y,y)}var x=()=>1-o,w=t.animate(f,{duration:l});return w.onfinish=()=>{var S=i?.t()??1-o;i?.abort();var I=o-S,L=e.duration*Math.abs(I),A=[];if(L>0){var P=!1;if(c)for(var T=Math.ceil(L/16.666666666666668),D=0;D<=T;D+=1){var Q=S+I*_(D/T),G=Uv(c(Q,1-Q));A.push(G),P||=G.overflow==="hidden"}P&&(t.style.overflow="hidden"),x=()=>{var ee=w.currentTime;return S+I*_(ee/L)},u&&Fv(()=>{if(w.playState!=="running")return!1;var ee=x();return u(ee,1-ee),!0})}w=t.animate(A,{duration:L,fill:"forwards"}),w.onfinish=()=>{x=()=>o,u?.(o,1-o),n()}},{abort:()=>{w&&(w.cancel(),w.effect=null,w.onfinish=J)},deactivate:()=>{n=J},reset:()=>{o===0&&u?.(1,0)},t:()=>x()}}var zu=class t{#t=new WeakMap;#e;#i;static entries=new WeakMap;constructor(e){this.#i=e}observe(e,i){var o=this.#t.get(e)||new Set;return o.add(i),this.#t.set(e,o),this.#o().observe(e,this.#i),()=>{var n=this.#t.get(e);n.delete(i),n.size===0&&(this.#t.delete(e),this.#e.unobserve(e))}}#o(){return this.#e??(this.#e=new ResizeObserver(e=>{for(var i of e){t.entries.set(i.target,i);for(var o of this.#t.get(i.target)||[])o(i)}}))}};var G1=new zu({box:"border-box"});function Mr(t,e,i){var o=G1.observe(t,()=>i(t[e]));en(()=>(pt(()=>i(t[e])),o))}function zv(t,e){return t===e||t?.[_o]===e}function at(t={},e,i,o){return en(()=>{var n,a;return Ji(()=>{n=a,a=o?.()||[],pt(()=>{t!==i(...a)&&(e(t,...a),n&&zv(i(...n),t)&&e(null,...n))})}),()=>{Ao(()=>{a&&zv(i(...a),t)&&e(null,...a)})}}),t}function fr(t=!1){let e=wt,i=e.l.u;if(!i)return;let o=()=>Od(e.s);if(t){let n=0,a={},s=m(()=>{let d=!1,l=e.s;for(let c in l)l[c]!==a[c]&&(a[c]=l[c],d=!0);return d&&n++,n});o=()=>r(s)}i.b.length&&cs(()=>{qv(e,o),oa(i.b)}),Qe(()=>{let n=pt(()=>i.m.map(xm));return()=>{for(let a of n)typeof a=="function"&&a()}}),i.a.length&&Qe(()=>{qv(e,o),oa(i.a)})}function qv(t,e){if(t.l.s)for(let i of t.l.s)r(i);e()}if($e){let t=function(e){if(!(e in globalThis)){let i;Object.defineProperty(globalThis,e,{configurable:!0,get:()=>{if(i!==void 0)return i;Vm(e)},set:o=>{i=o}})}};Y1=t,t("$state"),t("$effect"),t("$derived"),t("$inspect"),t("$props"),t("$bindable")}var Y1;function It(t){wt===null&&us("onMount"),Er&&wt.l!==null?j1(wt).m.push(t):Qe(()=>{let e=pt(t);if(typeof e=="function")return e})}function Kn(t){wt===null&&us("onDestroy"),It(()=>()=>pt(t))}function j1(t){var e=t.l;return e.u??={a:[],b:[],m:[]}}function ul(t,e,i){if(t==null)return e(void 0),i&&i(void 0),J;let o=pt(()=>t.subscribe(e,i));return o.unsubscribe?()=>o.unsubscribe():o}var bs=[];function Wn(t,e){return{subscribe:ae(t,e).subscribe}}function ae(t,e=J){let i=null,o=new Set;function n(d){if(es(t,d)&&(t=d,i)){let l=!bs.length;for(let c of o)c[1](),bs.push(c,t);if(l){for(let c=0;c<bs.length;c+=2)bs[c][0](bs[c+1]);bs.length=0}}}function a(d){n(d(t))}function s(d,l=J){let c=[d,l];return o.add(c),o.size===1&&(i=e(n,a)||J),d(t),()=>{o.delete(c),o.size===0&&i&&(i(),i=null)}}return{set:n,update:a,subscribe:s}}function li(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 Wn(i,(s,d)=>{let l=!1,c=[],u=0,_=J,f=()=>{if(u)return;_();let x=e(o?c[0]:c,s,d);a?s(x):_=typeof x=="function"?x:J},y=n.map((x,w)=>ul(x,S=>{c[w]=S,u&=~(1<<w),l&&f()},()=>{u|=1<<w}));return l=!0,f(),function(){oa(y),_(),l=!1}})}function ve(t){let e;return ul(t,i=>e=i)(),e}var jd=!1,qu=Symbol();function $(t,e,i){let o=i[e]??={store:null,source:zr(void 0),unsubscribe:J};if(o.store!==t&&!(qu in i))if(o.unsubscribe(),o.store=t??null,t==null)o.source.v=void 0,o.unsubscribe=J;else{var n=!0;o.unsubscribe=ul(t,a=>{n?o.source.v=a:N(o.source,a)}),n=!1}return t&&qu in i?ve(t):r(o.source)}function Oe(){let t={};function e(){No(()=>{for(var i in t)t[i].unsubscribe();Ri(t,qu,{enumerable:!1,value:!0})})}return[t,e]}function Ku(t){var e=jd;try{return jd=!1,[t(),jd]}finally{jd=e}}var o0={get(t,e){if(!t.exclude.includes(e))return t.props[e]},set(t,e){return $e&&Lm(`${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 xe(t,e,i){return new Proxy($e?{props:t,exclude:e,name:i,other:{},to_proxy:[]}:{props:t,exclude:e},o0)}var n0={get(t,e){let i=t.props.length;for(;i--;){let o=t.props[i];if(ia(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];ia(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(ia(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===_o||e===Us)return!1;for(let i of t.props)if(ia(i)&&(i=i()),i!=null&&e in i)return!0;return!1},ownKeys(t){let e=[];for(let i of t.props){ia(i)&&(i=i());for(let o in i)e.includes(o)||e.push(o)}return e}};function Qr(...t){return new Proxy({props:t},n0)}function Kv(t){return t.ctx?.d??!1}function v(t,e,i,o){var n=(i&1)!==0,a=!Er||(i&2)!==0,s=(i&8)!==0,d=(i&16)!==0,l=!1,c;s?[c,l]=Ku(()=>t[e]):c=t[e];var u=_o in t||Us in t,_=s&&(wn(t,e)?.set??(u&&e in t&&(Q=>t[e]=Q)))||void 0,f=o,y=!0,x=!1,w=()=>(x=!0,y&&(y=!1,d?f=pt(o):f=o),f);c===void 0&&o!==void 0&&(_&&a&&Mm(e),c=w(),_&&_(c));var S;if(a)S=()=>{var Q=t[e];return Q===void 0?w():(y=!0,x=!1,Q)};else{var I=(n?m:cr)(()=>t[e]);I.f|=131072,S=()=>{var Q=r(I);return Q!==void 0&&(f=void 0),Q===void 0?f:Q}}if((i&4)===0)return S;if(_){var L=t.$$legacy;return function(Q,G){return arguments.length>0?((!a||!G||L||l)&&_(G?S():Q),Q):S()}}var A=!1,P=!1,T=zr(c),D=m(()=>{var Q=S(),G=r(T);return A?(A=!1,P=!0,G):(P=!1,T.v=Q)});return s&&r(D),n||(D.equals=ts),function(Q,G){if(Ws!==null&&(A=P,S(),r(T)),arguments.length>0){let ee=G?r(D):a&&s?le(Q):Q;if(!D.equals(ee)){if(A=!0,N(T,ee),x&&f!==void 0&&(f=ee),Kv(D))return Q;pt(()=>r(D))}return Q}return Kv(D)?D.v:r(D)}}var r0;typeof HTMLElement=="function"&&(r0=class extends HTMLElement{$$ctor;$$s;$$c;$$cn=!1;$$d={};$$r=!1;$$p_d={};$$l={};$$l_u=new Map;$$me;constructor(t,e,i){super(),this.$$ctor=t,this.$$s=e,i&&this.attachShadow({mode:"open"})}addEventListener(t,e,i){if(this.$$l[t]=this.$$l[t]||[],this.$$l[t].push(e),this.$$c){let o=this.$$c.$on(t,e);this.$$l_u.set(e,o)}super.addEventListener(t,e,i)}removeEventListener(t,e,i){if(super.removeEventListener(t,e,i),this.$$c){let o=this.$$l_u.get(e);o&&(o(),this.$$l_u.delete(e))}}async connectedCallback(){if(this.$$cn=!0,!this.$$c){let e=function(n){return a=>{let s=document.createElement("slot");n!=="default"&&(s.name=n),b(a,s)}};var t=e;if(await Promise.resolve(),!this.$$cn||this.$$c)return;let i={},o=a0(this);for(let n of this.$$s)n in o&&(n==="default"&&!this.$$d.children?(this.$$d.children=e(n),i.default=!0):i[n]=e(n));for(let n of this.attributes){let a=this.$$g_p(n.name);a in this.$$d||(this.$$d[a]=Wu(a,n.value,this.$$p_d,"toProp"))}for(let n in this.$$p_d)!(n in this.$$d)&&this[n]!==void 0&&(this.$$d[n]=this[n],delete this[n]);this.$$c=kv({component:this.$$ctor,target:this.shadowRoot||this,props:{...this.$$d,$$slots:i,$$host:this}}),this.$$me=Fd(()=>{Ji(()=>{this.$$r=!0;for(let n of tu(this.$$c)){if(!this.$$p_d[n]?.reflect)continue;this.$$d[n]=this.$$c[n];let a=Wu(n,this.$$d[n],this.$$p_d,"toAttribute");a==null?this.removeAttribute(this.$$p_d[n].attribute||n):this.setAttribute(this.$$p_d[n].attribute||n,a)}this.$$r=!1})});for(let n in this.$$l)for(let a of this.$$l[n]){let s=this.$$c.$on(n,a);this.$$l_u.set(a,s)}this.$$l={}}}attributeChangedCallback(t,e,i){this.$$r||(t=this.$$g_p(t),this.$$d[t]=Wu(t,i,this.$$p_d,"toProp"),this.$$c?.$set({[t]:this.$$d[t]}))}disconnectedCallback(){this.$$cn=!1,Promise.resolve().then(()=>{!this.$$cn&&this.$$c&&(this.$$c.$destroy(),this.$$me(),this.$$c=void 0)})}$$g_p(t){return tu(this.$$p_d).find(e=>this.$$p_d[e].attribute===t||!this.$$p_d[e].attribute&&e.toLowerCase()===t)||t}});function Wu(t,e,i,o){let n=i[t]?.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;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 a0(t){let e={};return t.childNodes.forEach(i=>{e[i.slot||"default"]=!0}),e}var Wv="5";typeof window<"u"&&((window.__svelte??={}).v??=new Set).add(Wv);import{clientChecker as M3}from"@vkontakte/videoplayer-core/evergreen";import"@vkontakte/videoplayer-core/evergreen";import{noop as Uh,safeStorage as L3,throttleFn as V3}from"@vkontakte/videoplayer-shared/evergreen";import{SeekAction as R3}from"@vkontakte/videoplayer-statistics/evergreen";import{InterfaceLanguage as l0,fillWithDefault as d0,VideoQuality as Qv}from"@vkontakte/videoplayer-shared/evergreen";var c0={isMobile:void 0,debugLog:!1,devNullLog:!1,defaultLanguage:l0.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:Qv.Q_480P,highQualityLimit:Qv.Q_720P,episodeMinWidthPc:8,hideThumbTimerAfterTouch:!0,preventPauseOnVideoClick:!1,sentry:{dsn:"https://e349fd23c68f405388980d0868d0ff27@sentry.mvk.com/126",sampleRate:.01,whiteErrorCategoryList:[],blackErrorCategoryList:[],whiteErrorIdList:[],blackErrorIdList:[]},features:{autoplay:!0,statistics:!0,sentry:!0,preload:!0,subtitles:!0,episodes:!0,fullscreen:!0,timelinePreview:!0,mediaSession:!0,annotations:!0,slots:!0,annotationsInside:!1,pip:!0,dpip:!0,download:!0,liveRewind:!0,playbackRate:!0,trafficSaving:!0,episodesClustering:!0,copyVideoLink:!0,videoRotate:!0,interactiveGraph:!1,interactiveResponsiveUi:!1,seekToInteractive:!0,interactiveLastFrame:!1,interactiveTextPermanent:!0,interactiveHideTime:!0,interactivePlayPrevChapter:!0,interactiveTimeIndicator:!0,interactiveTimeOpenUri:!1,interactiveAreaControlShadow:!1,interactiveControlsExpectTimeBlinkAnimation:!1,thumbTimer:!0,hotKeyMapModal:!0,hotKeyHelpers:!0,saveDebugInfoToFile:!1,saveTraceInfoToFile:!1,additionalButtons:!0,additionalButtonsDesktopControlPanelRight:!0,additionalSettingsMenuItems:!0,additionalContextMenuItems:!0,contextMenuButton:!0,audioLanguages:!1,saveRate:!1,fullscreenInternalTargetPlayerContainer:!1,endScreen:!0,autoplayNext:!0,nextPrevButtons:!0,previewNoEmptySpace:!1,exposeInternalsToGlobal:!1,skipInitialPlaybackRateValue:!1,qualityDetailsSubMenuEnabled:!1,showSlowVideoNotification:!1,forceAutoQualityWhenSevereStallHappens:!1,timeoutShowSlowVideoNotification:0,maxCountShowSlowVideoNotification:1,forcePlayerDisplayBlock:!1},controls:{showOnStartupAtAutoplay:!0,hideTimeout:500,hideTimeoutMobile:3e3,hideTimeoutInitial:200,hideTimeoutFullscreen:3e3,hideTimeoutCursor:3e3,hideTimeoutTooltips:1e3,collapseMobileUnmute:6e3,hide360IconTimeout:3e3,hideHotKeyHelpers:2e3,playbackRateMin:.25,playbackRateMax:2,playbackRateStep:.25,volumeStepKeyboard:.05,volumeStepWheel:.05,volumeBarTimeout:300,seekStepKeyboard:1e4,seekStepMobile:15e3,seekStepFrame:400},ads:{enable:void 0,initTimeout:2e3,loadTimeout:2e3,runtimeTimeout:5e3,slot:void 0,preview:void 0,isMobileGoToSiteButton:!0,useAdmanFromNPM:!1,volumeMultiplier:1,isVsidOriginal:!1},interactive:{historyMaxLength:100,noInteractionEventTimeout:3e4},view:{timelineSliderColor:null,timelineSliderHandleColor:null,timelineSliderFilledColor:null,timelineSliderLoadedColor:null,volumeSliderColor:null,volumeSliderHandleColor:null,volumeSliderFilledColor:null,controlsTimeColor:null,timelineSliderFilledActiveLiveColor:null,timelineSliderHandleActiveLiveColor:null,buttonColor:null,buttonToggleOnColor:null,focusedColor:null}},Gv=t=>d0(t,c0),jv=t=>fs("ui-config",t),Vt=()=>ps("ui-config");var pl="vk_player_debug_panel_opened";var Yv="videoplayer",Zv="videoplayer";var Lr={KeyF:"f",KeyK:"k",KeyC:"c",KeyM:"m"},Xv=new Set(["ArrowLeft","ArrowRight","KeyL","KeyJ"]),Jv=new Set(["Tab","Space","ArrowLeft","ArrowRight","ArrowUp","ArrowDown"]),eg=new Set(["ShiftRight","ShiftLeft"]);var tg=["TIMELINE"],fl=[...tg,"GRAPH_BUTTON"],Qu=[...tg,"PLAY_BUTTON"],ml=[...fl,"PLAY_BUTTON"];var Vr=(a=>(a.XS="xs",a.S="s",a.M="m",a.L="l",a.XL="xl",a))(Vr||{}),Pa={xs:0,s:1,m:2,l:3,xl:4};import{assertNonNullable as ig,VERSION as u0}from"@vkontakte/videoplayer-shared/evergreen";import{VERSION as p0}from"@vkontakte/videoplayer-core/evergreen";import{VERSION as f0}from"@vkontakte/videoplayer-statistics/evergreen";var Yd="prod",$s="1.1.60-beta.0";var Ma=(t,e,i)=>{let o=document.createElement("a");o.href=t,o.download=`${e}.${i}`,o.style.display="none",o.click()};var og=Symbol("storeContext"),ng=Symbol("microStoresContext"),rg=(t,e)=>{fs(og,t),fs(ng,e),Yd==="dev"&&(window.app={store:t,microStores:e})},ye=()=>{let t=ps(og);return ig(t,"Store context is empty!"),t},Hi=()=>{let t=ps(ng);return ig(t,"MicroStores context is empty!"),t},Ut=(t,e)=>Xd(t,t.getValue(),e),Xd=(t,e,i)=>Wn(e,o=>{let n=t.subscribe(a=>{o(a),i?.(a)});return()=>n.unsubscribe()}),ag=(t,e,i)=>{let o=t.info,{width:n,height:a}=ve(i.ui.playerSize),s=o.throughputEstimation$.getValue()?.toFixed(0)??0,d=o.rttEstimation$.getValue()?.toFixed(0)??0,l=o.isAutoQualityEnabled$.getValue()?"auto":"manual",c=`${$s} (core: ${p0}, stat: ${f0}, shared: ${u0})`,u=ve(i.state.errorLog$),_=u.length?`
49
+ `+u.map((I,L)=>{let A=`${L}) Type: ${I.id}
50
+ `,P=`Message: ${I.message} (${I.thrown})
51
+ `,T=`Trace: ${I.thrown?.stack}
52
+ `;return A+P+T}).join(`
53
+ `):void 0,f=i.state.isAudioDisabled?"disabled":ve(i.state.isAudioAvailable$)?void 0:"unavailable",y=t.info.currentVideoStream$.getValue(),x=t.info.currentAudioStream$.getValue(),w=[];y&&w.push(`Video: ${y?.codec??""}`+(y?.hdr?" (HDR)":"")),x&&w.push(`Audio: ${x?.codec??""}`+(x?.language?` (${x.language})`:""));let S={Version:c,Browser:navigator.userAgent,Config:t.experimental.tuningConfigName$.getValue().join(", "),"United video id":String(i.videoId),VSID:ve(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:w.join(", "),Quality:`${l} ${o.currentQuality$.getValue()}`,"Available qualities":o.availableQualities$.getValue().join(", "),Audio:f,Position:`${ve(i.state.positionExact$)}s`,State:`${ve(i.playerPhase)} ${o.playbackState$.getValue()}`,"Player size":`${n}x${a}`,URL:window.location.href,Errors:_};return Object.entries(S).filter(([I,L])=>L!==void 0).map(([I,L])=>`${I}: ${L}`).join(`
54
+ `)},sg=(t,e,i)=>{let o=t.info,{width:n,height:a}=ve(i.ui.playerSize),s={version:$s,viewport:`${n}x${a}`,volume:Math.round(ve(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 c=o.intrinsicVideoSize$.getValue();c&&(s.videoSize=`${c.width}x${c.height}`);let u=o.currentBuffer$.getValue(),_=o.isLive$.getValue(),f=o.liveBufferTime$.getValue();u&&(_&&f?s.buffer=u.end-f:s.buffer=Math.max(u.end-ve(i.state.positionExact$),0));let y=o.throughputEstimation$.getValue();y&&(s.speed=y);let x=o.videoBitrate$.getValue();x&&(s.bitrate=x);let w=o.liveLatency$.getValue();w&&(s.liveLatency=w);let S=o.currentVideoSegmentLength$.getValue();S&&(s.currentVideoSegmentLength=S);let I=o.currentAudioSegmentLength$.getValue();I&&(s.currentAudioSegmentLength=I);let L=ve(i.vsid);typeof L=="string"&&(s.vsid=L);let A=t.info.currentVideoStream$.getValue()?.codec;A&&(s.videoCodec=A);let P=t.info.currentAudioStream$.getValue()?.codec;P&&(s.audioCodec=P),t.info.currentVideoStream$.getValue()?.hdr&&(s.hdr=!0);let D=t.info.currentAudioStream$.getValue()?.language;return D&&(s.audioLanguage=D),s},lg=(t,e)=>Ma(t,e,"mp4"),dg=t=>!t.type,cg=t=>!!t.type,ug=()=>{let e=[],i=0;return{add:(o,n)=>{e[i]=[o,n],i=(i+1)%10},find:o=>e.find(([n])=>n===o)}},Zd=class{constructor(){this.destroyController=new AbortController;this.pendingDownloads=new Set}async download(e){if(this.pendingDownloads.has(e))return null;this.pendingDownloads.add(e);try{let i=await fetch(e,{signal:this.destroyController.signal});if(i.ok)return await i.text();throw i}finally{this.pendingDownloads.delete(e)}}destroy(){this.destroyController.abort(),this.pendingDownloads.clear()}isDestroyed(){return this.destroyController.signal.aborted}};import{isNullable as Yu,safeStorage as to}from"@vkontakte/videoplayer-shared/evergreen";import"@vkontakte/videoplayer-core/evergreen";var pg="vk_player_prefer_traffic_saving_enabled",fg="vk_player_preferred_volume",mg="vk_player_prefer_volume_mute",Zu="vk_player_preferred_quality",Gu="vk_player_preferred_default_quality_settings",ju="vk_player_preferred_quality_settings_by_video",vg="vk_player_preferred_stream_language",gg="vk_player_preferred_rate",hg="vk_player_preferred_autoplay_next",_g=t=>t>1?1:t<0?0:t,Xu=t=>to.set(fg,_g(t).toString(10)),Jd=()=>{let t=to.get(fg);return Yu(t)?void 0:_g(parseFloat(t))},Ju=(t,e)=>to.set(Zu,JSON.stringify({videoId:t,value:e})),gl=()=>to.remove(Zu),ep=t=>{let e=to.get(Zu);if(Yu(e))return;let{videoId:i,value:o}=JSON.parse(e);if(t!==i){gl();return}return o},tp=(t,e)=>{e?to.set(t,"true"):to.remove(t)},ip=t=>to.get(t)==="true",op=t=>tp(mg,t),bg=()=>ip(mg),vl=t=>tp(pg,t),np=()=>ip(pg),$g=()=>to.get(vg),rp=t=>to.set(vg,t),yg=t=>to.set(gg,JSON.stringify({rate:t})),xg=()=>{let t=to.get(gg);if(Yu(t))return;let{rate:e}=JSON.parse(t);return e},wg=t=>tp(hg,t),Sg=()=>ip(hg),m0=()=>{let t=u=>{to.set(Gu,JSON.stringify(u))},e=()=>{try{let u=to.get(Gu);return u?JSON.parse(u):null}catch{return null}},i=()=>{try{let u=to.get(ju);return u?JSON.parse(u):null}catch{return null}},o=u=>{to.set(ju,JSON.stringify(u))},n=u=>{c(u);let _=u?i():null;if(_&&_?.videoId===u)return{..._,appliesTo:"to-video"};_&&a();let f=e();return f?{...f,appliesTo:"as-default"}:(t({type:"auto_quality"}),{type:"auto_quality",appliesTo:"as-default"})},a=()=>{to.remove(ju)},s=()=>{to.remove(Gu)},d=(u,_="as-default")=>{u.type==="exact_quality"?o(u):_==="as-default"?t(u):o(u)},l=u=>{let _=n(u);if(_){switch(_.type){case"traffic_saving":vl(!0);break;case"exact_quality":Ju(u,_.quality)}a(),s()}},c=u=>{let _=ep(u);if(_){o({type:"exact_quality",videoId:u,quality:_});return}np()&&t({type:"traffic_saving",videoId:u}),vl(!1),gl()};return{getPreferredQualitySettings:n,migrateSettingsToLegacyWay:l,savePreferredQualitySettings:d,savePreferredDefaultQualitySettings:t,removePreferredQualitySettingsByVideo:a,getPreferredDefaultQualitySettings:e}},{getPreferredQualitySettings:Cg,migrateSettingsToLegacyWay:kg,savePreferredQualitySettings:ec,savePreferredDefaultQualitySettings:qE,removePreferredQualitySettingsByVideo:KE,getPreferredDefaultQualitySettings:tc}=m0();import{PlaybackState as Oh}from"@vkontakte/videoplayer-core/evergreen";var v0=me('<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 hl(t,e){let i=xe(e,["$$slots","$$events","$$legacy","children"]);var o=v0();let n;var a=h(o);ce(a,()=>e.children??J),fe(2),g(o),C(()=>n=he(o,n,{xmlns:"http://www.w3.org/2000/svg",width:"76",height:"45",fill:"none","data-testid":"video-360-icon",role:"img",...i})),b(t,o)}import{isNullable as Eg,InterfaceLanguage as Ag}from"@vkontakte/videoplayer-shared/evergreen";var g0={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,
52
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 -
53
- \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`},Mg=w$;var C$={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,
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`},Tg=g0;var h0={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,
54
57
  so\xA0the\xA0quality was changed to\xA0Auto`,slow_video_notification_suggest_description:`The video is loading too slowly.
55
- Try switching the\xA0quality to\xA0Auto.`},Lg=C$;var gs=new Map;gs.set(Vg.EN,Lg);gs.set(Vg.RU,Mg);var Ng=new Map,Zf=({language:t,pack:e,fallback:i})=>{if(gs.has(t)){let o=gs.get(t);gs.set(t,{...o,...e})}else gs.set(t,e);Ng.set(t,i)},Xf=t=>gs.has(t),Jf=(t,e,i,o)=>{let s=gs.get(t)?.[e];if(Rg(s)){let a=Ng.get(t)??o;s=(a?gs.get(a):void 0)?.[e]}return Rg(s)?e+Object.values(i??{}).join(" "):i?s.replaceAll(/{(\w+?)}/g,(a,l)=>i[l]??""):s},j=(t,e)=>{let{interfaceLanguage$:i}=Be(),o=Ae(i),n=Qt();return Jf(o,t,e,n.defaultLanguage)};import"@vkontakte/videoplayer-core/evergreen";var qa;(function(t){t.fatal="fatal",t.error="error",t.warning="warning",t.log="log",t.info="info",t.debug="debug",t.critical="critical"})(qa||(qa={}));var S$=/^\s*at (?:(.*?) ?\()?((?:file|https?|blob|chrome-extension|address|native|eval|webpack|<anonymous>|[-a-z]+:|.*bundle|\/).*?)(?::(\d+))?(?::(\d+))?\)?\s*$/i,k$=/^\s*(.*?)(?:\((.*?)\))?(?:^|@)?((?:file|https?|blob|chrome|webpack|resource|moz-extension).*?:\/.*?|\[native code\]|[^@]*(?:bundle|\d+\.js))(?::(\d+))?(?::(\d+))?\s*$/i,T$=/^\s*at (?:((?:\[object object\])?.+) )?\(?((?:file|ms-appx|https?|webpack|blob):.*?):(\d+)(?::(\d+))?\)?\s*$/i,vd="?",I$="X-Sentry-Auth",E$=/^(?:(\w+):)\/\/(?:([\w-]+)(?::(\w+))?@)([\w.-]+)(?::(\d+))?\/(.+)/;function P$(t){if(!t.stack)return null;let e=[],i=t.stack.split(`
56
- `),o,n;for(let s=0;s<i.length;++s){if(o=S$.exec(i[s]))n={filename:o[2]&&o[2].indexOf("address at ")===0?o[2].substr(11):o[2],function:o[1]||vd,lineno:o[3]?+o[3]:null,colno:o[4]?+o[4]:null};else if(o=T$.exec(i[s]))n={filename:o[2],function:o[1]||vd,lineno:+o[3],colno:o[4]?+o[4]:null};else if(o=k$.exec(i[s]))s===0&&!o[5]&&t.columnNumber!==void 0&&(e[0].column=t.columnNumber+1),n={filename:o[3],function:o[1]||vd,lineno:o[4]?+o[4]:null,colno:o[5]?+o[5]:null};else continue;!n.function&&n.lineno&&(n.function=vd),e.push(n)}return e.length?{value:Bg(t),type:t.name,stacktrace:{frames:e.reverse()}}:null}function Bg(t){return(t&&t.message||"No error message").split(`
57
- `).filter(i=>!!i)[0]}function A$(t){try{let e=P$(t);if(e)return e}catch{}return{value:Bg(t),type:t&&t.name,stacktrace:{frames:[]}}}function M$(){return"xxxxxxxxxxxx4xxxyxxxxxxxxxxxxxxx".replace(/[xy]/g,t=>{let e=Math.random()*16|0;return(t==="x"?e:e&3|8).toString(16)})}var gd=class{constructor(e){if(e&&e.dsn){let i=E$.exec(e.dsn),o=i?i.slice(1):[],n=o[5].split("/"),s=n.slice(0,-1).join("/");this.apiUrl=o[0]+"://"+o[3]+(o[4]?":"+o[4]:"")+(s?"/"+s:"")+"/api/"+n.pop()+"/store/",this.authHeader="Sentry sentry_version=7,sentry_key="+o[1]+(o[2]?",sentry_secret="+o[2]:"")}this.environment=e&&e.environment}prepare(e){return{...this.getRequestBlank(),exception:{values:[A$(e)]}}}report(e){this.send(this.prepare(e))}send(e){!this.apiUrl||!e||this.createRequest(e)}createRequest(e){let i=new XMLHttpRequest;i.open("POST",this.apiUrl,!0),i.setRequestHeader("Content-type","application/json"),i.setRequestHeader(I$,this.authHeader||""),i.send(JSON.stringify(e))}getRequestBlank(){return{platform:"javascript",event_id:M$(),sdk:{name:"micro-sentry.javascript.core",version:"0.0.0"},timestamp:Date.now()/1e3,environment:this.environment}}};function Dg(t,e){return Object.prototype.toString.call(e)==="[object RegExp]"?e.test(t):typeof e=="string"?t.indexOf(e)!==-1:!1}function L$(){return window}var hd=class t extends gd{constructor(e,i=L$()){super(e),this.options=e,this.window=i,this.destroyed=!1,this._state={};let{plugins:o=[],beforeSend:n=p=>p,beforeBreadcrumb:s=p=>p,blacklistUrls:a=[],ignoreErrors:l=[],release:c=void 0}=this.options||{};this.plugins=o.map(p=>new p(this)),this.beforeSend=n,this.beforeBreadcrumb=s,this.blacklistUrls=a,this.ignoreErrors=l,this.release=c}get state(){return this._state}clearState(){this._state={}}setTags(e){return this.setKeyState("tags",{...e}),this}setTag(e,i){return this.extendState({tags:{[e]:i}}),this}setExtra(e,i){return this.extendState({extra:{[e]:i}}),this}setExtras(e){return this.setKeyState("extra",{...e}),this}setUser(e){return this.setKeyState("user",{...e}),this}clone(){let e=new t({...this.options,plugins:[]});return e.extendState(this.state),e}withScope(e){let i=this.clone();e(i),i.destroy(),this.setBreadcrumbs(void 0)}addBreadcrumb(e){this.extendState({breadcrumbs:[{timestamp:Date.now()/1e3,...this.beforeBreadcrumb(e)}]})}setBreadcrumbs(e){this.setKeyState("breadcrumbs",e)}captureMessage(e,i){this.send({...this.getRequestBlank(),message:e,level:i})}destroy(){this.destroyed=!0,this.plugins.forEach(e=>{e.destroy&&e.destroy()})}isIgnoredError(e){return this.ignoreErrors.length?this.getPossibleEventMessages(e).some(i=>this.ignoreErrors.some(o=>Dg(i,o))):!1}getRequestBlank(){return{request:{url:this.window.location.toString(),headers:{"User-Agent":this.window.navigator.userAgent}},...super.getRequestBlank(),sdk:{name:"micro-sentry.javascript.browser",version:"0.0.0"},...this.state}}send(e){this.destroyed||this.isDeniedUrl(e)||this.isIgnoredError(e)||(super.send(this.beforeSend({release:this.release,...e})),this.setBreadcrumbs(void 0))}getPossibleEventMessages(e){if(e.message)return[e.message];if(e.exception)try{let{type:i="",value:o=""}=e.exception.values&&e.exception.values[0]||{};return[`${o}`,`${i}: ${o}`]}catch{return[]}return[]}isDeniedUrl(e){if(!this.blacklistUrls.length)return!1;let i=this.getEventFilterUrl(e);return i?this.blacklistUrls.some(o=>Dg(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{return null}}extendState(e){this._state=Object.keys(e).reduce((i,o)=>{let n=this._state[o],s=Array.isArray(n)?n:null,a=e[o],l=Array.isArray(a)?a:null;return{...i,[o]:s||l?[...s||[],...l||[]]:{...typeof n!="string"?n:{},...typeof a!="string"?a:{}}}},this._state)}setKeyState(e,i){this._state[e]=i}};import{isNonNullable as _d,Subscription as R$}from"@vkontakte/videoplayer-shared/evergreen";var $d=null,ra=class{constructor(e,i,o={}){!$d&&e.dsn&&(this.sentryClient=new hd({dsn:e.dsn,environment:i.env}),this.version=i.version,this.sentrySubscription=new R$,this.options=e,this.context=o,$d=this)}destroy(){this.sentryClient?.destroy(),this.sentrySubscription?.unsubscribe(),$d=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:s,options:a}=this,{sampleRate:l=0,whiteErrorIdList:c,whiteErrorCategoryList:p=[],blackErrorIdList:f,blackErrorCategoryList:v}=a,{errorType:m,category:g}=i;if(_d(g)&&v.includes(g)||_d(m)&&f.includes(m))return;if(Math.random()<=l||_d(g)&&p.includes(g)||_d(m)&&c.includes(m)){Object.keys(i).length&&n.setTags({version:this.version,...i}),(Object.keys(s).length||Object.keys(o).length)&&n.setExtras({...s,...o});try{m&&n.captureMessage(m,i.fatal?qa.fatal:qa.error),n.report(e)}catch(w){console.error(w)}}}static getInstance(){return $d}};var sa=(l=>(l.Thumb="thumb",l.Video="video",l.Ads="ads",l.Crashed="crashed",l.LiveWaitingStart="LiveWaitingStart",l.LiveWaitingRecover="LiveWaitingRecover",l.LiveWaitingRecord="LiveWaitingRecord",l))(sa||{});var bd=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?.webkitEnterFullscreen?e.webkitEnterFullscreen():Promise.reject()},yd=t=>t.exitFullscreen?t.exitFullscreen():t.msExitFullscreen?t.msExitFullscreen():t.webkitExitFullscreen?t.webkitExitFullscreen():t.mozCancelFullScreen?t.mozCancelFullScreen():Promise.reject(),Og=t=>{let e=t;return e?.webkitExitFullscreen?e?.webkitExitFullscreen():Promise.reject()},lc=()=>{let t=document;return t.fullscreenElement||t.mozFullScreenElement||t.webkitFullscreenElement||t.msFullscreenElement},Es=()=>!!lc(),xd=t=>{document.addEventListener("fullscreenchange",t),document.addEventListener("webkitfullscreenchange",t),document.addEventListener("mozfullscreenchange",t),document.addEventListener("MSFullscreenChange",t)},wd=t=>{document.removeEventListener("fullscreenchange",t),document.removeEventListener("webkitfullscreenchange",t),document.removeEventListener("mozfullscreenchange",t),document.removeEventListener("MSFullscreenChange",t)},Hg=t=>{let e=window.screen;return(async n=>e.orientation?e.orientation.lock(n):e.mozLockOrientation?e.mozLockOrientation(n):e.msLockOrientation?e.msLockOrientation(n):Promise.reject())(((n={width:0,height:0})=>n.width<=n.height?"portrait":"landscape")(t))};import{clientChecker as Fg}from"@vkontakte/videoplayer-core/evergreen";var Ug=()=>({title:j("hotkey_map_modal_title"),closeBtnText:j("hotkey_map_modal_close_btn_text"),groups:[{title:j("hotkey_map_group_title_common"),items:[{description:j("hotkey_map_item_mute_description"),value:j("hotkey_map_item_mute_value")},{description:j("hotkey_map_item_volume_up_description"),value:j("hotkey_map_item_volume_up_value")},{description:j("hotkey_map_item_volume_down_description"),value:j("hotkey_map_item_volume_down_value")},{description:j("hotkey_map_item_pip_description"),value:j("hotkey_map_item_pip_value")},{description:j("hotkey_map_item_full_screen_description"),value:j("hotkey_map_item_full_screen_value")},{description:j("hotkey_map_item_show_context_menu_description"),value:j("hotkey_map_item_show_context_menu_value")},{description:j("hotkey_map_item_show_hotkey_map_description"),value:j("hotkey_map_item_show_hotkey_map_value")}]},{title:j("hotkey_map_group_title_playback"),items:[{description:j("hotkey_map_item_play_toggle_description"),value:j("hotkey_map_item_play_toggle_value")},{description:j("hotkey_map_item_seek_backward_description"),value:j("hotkey_map_item_seek_backward_value")},{description:j("hotkey_map_item_seek_forward_description"),value:j("hotkey_map_item_seek_forward_value")},{description:j("hotkey_map_item_fast_seek_backward_description"),value:j("hotkey_map_item_fast_seek_backward_value")},{description:j("hotkey_map_item_fast_seek_forward_description"),value:j("hotkey_map_item_fast_seek_forward_value")},{description:j("hotkey_map_item_rate_down_description"),value:j("hotkey_map_item_rate_down_value")},{description:j("hotkey_map_item_rate_up_description"),value:j("hotkey_map_item_rate_up_value")},{description:j("hotkey_map_item_prev_frame_description"),value:j("hotkey_map_item_prev_frame_value")},{description:j("hotkey_map_item_next_frame_description"),value:j("hotkey_map_item_next_frame_value")},{description:j("hotkey_map_item_jump_seek_description"),value:j("hotkey_map_item_jump_seek_value")},{description:j("hotkey_map_item_next_video_description"),value:j("hotkey_map_item_next_video_value")},{description:j("hotkey_map_item_prev_video_description"),value:j("hotkey_map_item_prev_video_value")}]},{title:j("hotkey_map_group_title_subtitles"),items:[{description:j("hotkey_map_item_subtitles_toggle_description"),value:j("hotkey_map_item_subtitles_toggle_value")}]},{title:j("hotkey_map_group_title_episodes"),items:[{description:j("hotkey_map_item_prev_episode_description"),value:Fg.device.isApple?j("hotkey_map_item_prev_episode_mac_value"):j("hotkey_map_item_prev_episode_pc_value")},{description:j("hotkey_map_item_next_episode_description"),value:Fg.device.isApple?j("hotkey_map_item_next_episode_mac_value"):j("hotkey_map_item_next_episode_pc_value")}]}]});import{debounceFn as V$,ValueSubject as em}from"@vkontakte/videoplayer-shared/evergreen";var aa=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:V$(this.onResize.bind(this),300)};this.info={isActive$:new em(!1),isEnabled$:new em(!1),type:0};this.info.isEnabled$=new em(e)}isSupported(){return document.pictureInPictureEnabled}isActive(){return this.isSupported()&&!!document.pictureInPictureElement}setContext(e){this.svelteContext=e}async revealPictureInPicture(){this.isRequested&&(this.unregistryEventHandlers(),await this.request(),this.registryEventHandlers())}async request(){if(!(!this.isSupported()||this.isActive()))try{await this.videoElement?.requestPictureInPicture()}catch{this.isRequested=!1}}async remove(){!this.isSupported()||!this.isActive()||await document.exitPictureInPicture()}assignPlayerContainer(e){this.isSupported()&&(this.playerContainer=e)}updateVideoElement(){this.isSupported()&&(this.videoElement=this.playerContainer?.querySelector("video"))}registryEventHandlers(){this.videoElement?.addEventListener("enterpictureinpicture",this.eventHandlers.enterpictureinpicture),this.videoElement?.addEventListener("leavepictureinpicture",this.eventHandlers.leavepictureinpicture)}registryExternalEventHandlers(e){this.externalEventHandlers={...e}}unregistryEventHandlers(){this.videoElement?.removeEventListener("enterpictureinpicture",this.eventHandlers.enterpictureinpicture),this.videoElement?.removeEventListener("leavepictureinpicture",this.eventHandlers.leavepictureinpicture)}async dispose(){this.unregistryEventHandlers(),await this.remove()}onEnterPictureInPicture(e){let o=e.pictureInPictureWindow;o&&(this.info.isActive$.next(!0),this.isRequested=!0,o.addEventListener("resize",this.eventHandlers.resize),this.externalEventHandlers.enterpictureinpicture?.(e))}onLeavePictureInPicture(e){let o=e.pictureInPictureWindow;this.info.isActive$.next(!1),this.isRequested=!1,o?.removeEventListener("resize",this.eventHandlers.resize),this.externalEventHandlers.leavepictureinpicture?.(e),this.playerDummyElement?.$destroy()}onResize(e){this.externalEventHandlers.resize?.(e)}setEnabled(e){this.info.isEnabled$.next(e)}};function la(t){return t instanceof aa}import{devNull as Wg,now as qg}from"@vkontakte/videoplayer-shared/evergreen";function Cd(t,e){if(new.target)return T({component:Cd,...t});I(e,!1);let i=Be();return Ut(()=>{i.getAdmanWrapper().startPostroll()}),Mr(),E({$set:A,$on:(o,n)=>P(e,o,n)})}import{noop as zg}from"@vkontakte/videoplayer-shared/evergreen";var N$=(t,e)=>{t.stopPropagation(),e()()},B$=D('<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>'),D$=D('<div class="container svelte-1k4i25s"><!></div>'),O$={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 Sd(t,e){if(new.target)return T({component:Sd,...t});I(e,!0),oe(t,O$);let[i,o]=Je(),n=()=>C(p,"$isMobile",i),s=u(e,"position",7,0),a=u(e,"secondsToWatchBeforeSkip",7,0),l=u(e,"skipAd",7,zg),p=Be().ui.isMobile,f=_(()=>s()>0&&s()>=a());var v=D$(),m=y(v);{var g=k=>{var V=B$();V.__click=[N$,l];var F=y(V);Te(),$(V),L(M=>Se(F,`${M??""} `),[()=>j("skip_ads_now")]),x(k,V)},b=k=>{var V=er();L(F=>Se(V,F),[()=>j("skip_ads_after",{time:Math.ceil(a()-s()).toFixed(0)})]),x(k,V)};O(m,k=>{r(f)?k(g):k(b,!1)})}$(v),L(()=>{ne(v,"container-mobile",n()),ne(v,"skippable",r(f))}),x(t,v);var w=E({get position(){return s()},set position(k=0){s(k),d()},get secondsToWatchBeforeSkip(){return a()},set secondsToWatchBeforeSkip(k=0){a(k),d()},get skipAd(){return l()},set skipAd(k=zg){l(k),d()},$set:A,$on:(k,V)=>P(e,k,V)});return o(),w}pt(["click"]);var H$=D('<button class="svelte-1wy3dql"> </button>'),F$={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 kd(t,e){if(new.target)return T({component:kd,...t});I(e,!1),oe(t,F$),Mr();var i=H$(),o=y(i,!0);return $(i),L(n=>Se(o,n),[()=>j("visit_advertiser")],Er),x(t,i),E({$set:A,$on:(n,s)=>P(e,n,s)})}var U$=D('<div class="top-gradient-mobile svelte-354ajf"></div>'),z$=D('<div class="container svelte-354ajf"><!> <video style="width: 100%; height: 100%" playsinline=""></video> <!> <!> <!></div>',2),W$={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.`},Ig=h0;var Gr=new Map;Gr.set(Ag.EN,Ig);Gr.set(Ag.RU,Tg);var Pg=new Map,ap=({language:t,pack:e,fallback:i})=>{if(Gr.has(t)){let o=Gr.get(t);Gr.set(t,{...o,...e})}else Gr.set(t,e);Pg.set(t,i)},sp=t=>Gr.has(t),lp=(t,e,i,o)=>{let a=Gr.get(t)?.[e];if(Eg(a)){let s=Pg.get(t)??o;a=(s?Gr.get(s):void 0)?.[e]}return Eg(a)?e+Object.values(i??{}).join(" "):i?a.replaceAll(/{(\w+?)}/g,(s,d)=>i[d]??""):a},H=(t,e)=>{let{interfaceLanguage$:i}=ye(),o=ve(i),n=Vt();return lp(o,t,e,n.defaultLanguage)};import"@vkontakte/videoplayer-core/evergreen";var ys;(function(t){t.fatal="fatal",t.error="error",t.warning="warning",t.log="log",t.info="info",t.debug="debug",t.critical="critical"})(ys||(ys={}));var _0=/^\s*at (?:(.*?) ?\()?((?:file|https?|blob|chrome-extension|address|native|eval|webpack|<anonymous>|[-a-z]+:|.*bundle|\/).*?)(?::(\d+))?(?::(\d+))?\)?\s*$/i,b0=/^\s*(.*?)(?:\((.*?)\))?(?:^|@)?((?:file|https?|blob|chrome|webpack|resource|moz-extension).*?:\/.*?|\[native code\]|[^@]*(?:bundle|\d+\.js))(?::(\d+))?(?::(\d+))?\s*$/i,$0=/^\s*at (?:((?:\[object object\])?.+) )?\(?((?:file|ms-appx|https?|webpack|blob):.*?):(\d+)(?::(\d+))?\)?\s*$/i,ic="?",y0="X-Sentry-Auth",x0=/^(?:(\w+):)\/\/(?:([\w-]+)(?::(\w+))?@)([\w.-]+)(?::(\d+))?\/(.+)/;function w0(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=_0.exec(i[a]))n={filename:o[2]&&o[2].indexOf("address at ")===0?o[2].substr(11):o[2],function:o[1]||ic,lineno:o[3]?+o[3]:null,colno:o[4]?+o[4]:null};else if(o=$0.exec(i[a]))n={filename:o[2],function:o[1]||ic,lineno:+o[3],colno:o[4]?+o[4]:null};else if(o=b0.exec(i[a]))a===0&&!o[5]&&t.columnNumber!==void 0&&(e[0].column=t.columnNumber+1),n={filename:o[3],function:o[1]||ic,lineno:o[4]?+o[4]:null,colno:o[5]?+o[5]:null};else continue;!n.function&&n.lineno&&(n.function=ic),e.push(n)}return e.length?{value:Mg(t),type:t.name,stacktrace:{frames:e.reverse()}}:null}function Mg(t){return(t&&t.message||"No error message").split(`
60
+ `).filter(i=>!!i)[0]}function S0(t){try{let e=w0(t);if(e)return e}catch{}return{value:Mg(t),type:t&&t.name,stacktrace:{frames:[]}}}function C0(){return"xxxxxxxxxxxx4xxxyxxxxxxxxxxxxxxx".replace(/[xy]/g,t=>{let e=Math.random()*16|0;return(t==="x"?e:e&3|8).toString(16)})}var oc=class{constructor(e){if(e&&e.dsn){let i=x0.exec(e.dsn),o=i?i.slice(1):[],n=o[5].split("/"),a=n.slice(0,-1).join("/");this.apiUrl=o[0]+"://"+o[3]+(o[4]?":"+o[4]:"")+(a?"/"+a:"")+"/api/"+n.pop()+"/store/",this.authHeader="Sentry sentry_version=7,sentry_key="+o[1]+(o[2]?",sentry_secret="+o[2]:"")}this.environment=e&&e.environment}prepare(e){return{...this.getRequestBlank(),exception:{values:[S0(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(y0,this.authHeader||""),i.send(JSON.stringify(e))}getRequestBlank(){return{platform:"javascript",event_id:C0(),sdk:{name:"micro-sentry.javascript.core",version:"0.0.0"},timestamp:Date.now()/1e3,environment:this.environment}}};function Lg(t,e){return Object.prototype.toString.call(e)==="[object RegExp]"?e.test(t):typeof e=="string"?t.indexOf(e)!==-1:!1}function k0(){return window}var nc=class t extends oc{constructor(e,i=k0()){super(e),this.options=e,this.window=i,this.destroyed=!1,this._state={};let{plugins:o=[],beforeSend:n=c=>c,beforeBreadcrumb:a=c=>c,blacklistUrls:s=[],ignoreErrors:d=[],release:l=void 0}=this.options||{};this.plugins=o.map(c=>new c(this)),this.beforeSend=n,this.beforeBreadcrumb=a,this.blacklistUrls=s,this.ignoreErrors=d,this.release=l}get state(){return this._state}clearState(){this._state={}}setTags(e){return this.setKeyState("tags",{...e}),this}setTag(e,i){return this.extendState({tags:{[e]:i}}),this}setExtra(e,i){return this.extendState({extra:{[e]:i}}),this}setExtras(e){return this.setKeyState("extra",{...e}),this}setUser(e){return this.setKeyState("user",{...e}),this}clone(){let e=new t({...this.options,plugins:[]});return e.extendState(this.state),e}withScope(e){let i=this.clone();e(i),i.destroy(),this.setBreadcrumbs(void 0)}addBreadcrumb(e){this.extendState({breadcrumbs:[{timestamp:Date.now()/1e3,...this.beforeBreadcrumb(e)}]})}setBreadcrumbs(e){this.setKeyState("breadcrumbs",e)}captureMessage(e,i){this.send({...this.getRequestBlank(),message:e,level:i})}destroy(){this.destroyed=!0,this.plugins.forEach(e=>{e.destroy&&e.destroy()})}isIgnoredError(e){return this.ignoreErrors.length?this.getPossibleEventMessages(e).some(i=>this.ignoreErrors.some(o=>Lg(i,o))):!1}getRequestBlank(){return{request:{url:this.window.location.toString(),headers:{"User-Agent":this.window.navigator.userAgent}},...super.getRequestBlank(),sdk:{name:"micro-sentry.javascript.browser",version:"0.0.0"},...this.state}}send(e){this.destroyed||this.isDeniedUrl(e)||this.isIgnoredError(e)||(super.send(this.beforeSend({release:this.release,...e})),this.setBreadcrumbs(void 0))}getPossibleEventMessages(e){if(e.message)return[e.message];if(e.exception)try{let{type:i="",value:o=""}=e.exception.values&&e.exception.values[0]||{};return[`${o}`,`${i}: ${o}`]}catch{return[]}return[]}isDeniedUrl(e){if(!this.blacklistUrls.length)return!1;let i=this.getEventFilterUrl(e);return i?this.blacklistUrls.some(o=>Lg(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{return null}}extendState(e){this._state=Object.keys(e).reduce((i,o)=>{let n=this._state[o],a=Array.isArray(n)?n:null,s=e[o],d=Array.isArray(s)?s:null;return{...i,[o]:a||d?[...a||[],...d||[]]:{...typeof n!="string"?n:{},...typeof s!="string"?s:{}}}},this._state)}setKeyState(e,i){this._state[e]=i}};import{isNonNullable as rc,Subscription as T0}from"@vkontakte/videoplayer-shared/evergreen";var ac=null,La=class{constructor(e,i,o={}){!ac&&e.dsn&&(this.sentryClient=new nc({dsn:e.dsn,environment:i.env}),this.version=i.version,this.sentrySubscription=new T0,this.options=e,this.context=o,ac=this)}destroy(){this.sentryClient?.destroy(),this.sentrySubscription?.unsubscribe(),ac=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:c=[],blackErrorIdList:u,blackErrorCategoryList:_}=s,{errorType:f,category:y}=i;if(rc(y)&&_.includes(y)||rc(f)&&u.includes(f))return;if(Math.random()<=d||rc(y)&&c.includes(y)||rc(f)&&l.includes(f)){Object.keys(i).length&&n.setTags({version:this.version,...i}),(Object.keys(a).length||Object.keys(o).length)&&n.setExtras({...a,...o});try{f&&n.captureMessage(f,i.fatal?ys.fatal:ys.error),n.report(e)}catch(w){console.error(w)}}}static getInstance(){return ac}};var Va=(d=>(d.Thumb="thumb",d.Video="video",d.Ads="ads",d.Crashed="crashed",d.LiveWaitingStart="LiveWaitingStart",d.LiveWaitingRecover="LiveWaitingRecover",d.LiveWaitingRecord="LiveWaitingRecord",d))(Va||{});var sc=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?.webkitEnterFullscreen?e.webkitEnterFullscreen():Promise.reject()},lc=t=>t.exitFullscreen?t.exitFullscreen():t.msExitFullscreen?t.msExitFullscreen():t.webkitExitFullscreen?t.webkitExitFullscreen():t.mozCancelFullScreen?t.mozCancelFullScreen():Promise.reject(),Vg=t=>{let e=t;return e?.webkitExitFullscreen?e?.webkitExitFullscreen():Promise.reject()},_l=()=>{let t=document;return t.fullscreenElement||t.mozFullScreenElement||t.webkitFullscreenElement||t.msFullscreenElement},sa=()=>!!_l(),dc=t=>{document.addEventListener("fullscreenchange",t),document.addEventListener("webkitfullscreenchange",t),document.addEventListener("mozfullscreenchange",t),document.addEventListener("MSFullscreenChange",t)},cc=t=>{document.removeEventListener("fullscreenchange",t),document.removeEventListener("webkitfullscreenchange",t),document.removeEventListener("mozfullscreenchange",t),document.removeEventListener("MSFullscreenChange",t)},Rg=t=>{let e=window.screen;return(async n=>e.orientation?e.orientation.lock(n):e.mozLockOrientation?e.mozLockOrientation(n):e.msLockOrientation?e.msLockOrientation(n):Promise.reject())(((n={width:0,height:0})=>n.width<=n.height?"portrait":"landscape")(t))};import{clientChecker as Bg}from"@vkontakte/videoplayer-core/evergreen";var Ng=()=>({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:Bg.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:Bg.device.isApple?H("hotkey_map_item_next_episode_mac_value"):H("hotkey_map_item_next_episode_pc_value")}]}]});import{debounceFn as I0,ValueSubject as dp}from"@vkontakte/videoplayer-shared/evergreen";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:I0(this.onResize.bind(this),300)};this.info={isActive$:new dp(!1),isEnabled$:new dp(!1),type:0};this.info.isEnabled$=new dp(e)}isSupported(){return document.pictureInPictureEnabled}isActive(){return this.isSupported()&&!!document.pictureInPictureElement}setContext(e){this.svelteContext=e}async revealPictureInPicture(){this.isRequested&&(this.unregistryEventHandlers(),await this.request(),this.registryEventHandlers())}async request(){if(!(!this.isSupported()||this.isActive()))try{await this.videoElement?.requestPictureInPicture()}catch{this.isRequested=!1}}async remove(){!this.isSupported()||!this.isActive()||await document.exitPictureInPicture()}assignPlayerContainer(e){this.isSupported()&&(this.playerContainer=e)}updateVideoElement(){this.isSupported()&&(this.videoElement=this.playerContainer?.querySelector("video"))}registryEventHandlers(){this.videoElement?.addEventListener("enterpictureinpicture",this.eventHandlers.enterpictureinpicture),this.videoElement?.addEventListener("leavepictureinpicture",this.eventHandlers.leavepictureinpicture)}registryExternalEventHandlers(e){this.externalEventHandlers={...e}}unregistryEventHandlers(){this.videoElement?.removeEventListener("enterpictureinpicture",this.eventHandlers.enterpictureinpicture),this.videoElement?.removeEventListener("leavepictureinpicture",this.eventHandlers.leavepictureinpicture)}async dispose(){this.unregistryEventHandlers(),await this.remove()}onEnterPictureInPicture(e){let o=e.pictureInPictureWindow;o&&(this.info.isActive$.next(!0),this.isRequested=!0,o.addEventListener("resize",this.eventHandlers.resize),this.externalEventHandlers.enterpictureinpicture?.(e))}onLeavePictureInPicture(e){let o=e.pictureInPictureWindow;this.info.isActive$.next(!1),this.isRequested=!1,o?.removeEventListener("resize",this.eventHandlers.resize),this.externalEventHandlers.leavepictureinpicture?.(e),this.playerDummyElement?.$destroy()}onResize(e){this.externalEventHandlers.resize?.(e)}setEnabled(e){this.info.isEnabled$.next(e)}};function Ba(t){return t instanceof Ra}import{devNull as Dg,now as Og}from"@vkontakte/videoplayer-shared/evergreen";Om();function pp(t,e){F(e,!1);let i=ye();It(()=>{i.getAdmanWrapper().startPostroll()}),fr(),U()}import{noop as E0}from"@vkontakte/videoplayer-shared/evergreen";var A0=(t,e)=>{t.stopPropagation(),e()()},P0=M('<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>'),M0=M("<div><!></div>"),L0={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 fp(t,e){F(e,!0),q(t,L0);let[i,o]=Oe(),n=()=>$(c,"$isMobile",i),a=v(e,"position",3,0),s=v(e,"secondsToWatchBeforeSkip",3,0),d=v(e,"skipAd",3,E0),c=ye().ui.isMobile,u=m(()=>a()>0&&a()>=s());var _=M0();let f;var y=h(_);{var x=S=>{var I=P0();I.__click=[A0,d];var L=h(I);fe(),g(I),C(A=>de(L,`${A??""} `),[()=>H("skip_ads_now")]),b(S,I)},w=S=>{var I=qn();C(L=>de(I,L),[()=>H("skip_ads_after",{time:Math.ceil(s()-a()).toFixed(0)})]),b(S,I)};V(y,S=>{r(u)?S(x):S(w,!1)})}g(_),C(S=>f=Z(_,1,"container svelte-1k4i25s",null,f,S),[()=>({"container-mobile":n(),skippable:r(u)})]),b(t,_),U(),o()}it(["click"]);var V0=M('<button class="svelte-1wy3dql"> </button>'),R0={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 mp(t,e){F(e,!1),q(t,R0),fr();var i=V0(),o=h(i,!0);g(i),C(n=>de(o,n),[()=>H("visit_advertiser")],cr),b(t,i),U()}var B0=M('<div class="top-gradient-mobile svelte-354ajf"></div>'),N0=M('<div class="container svelte-354ajf"><!> <video style="width: 100%; height: 100%" playsinline=""></video> <!> <!> <!></div>',2),D0={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
61
  360deg,
59
62
  rgba(0, 0, 0, 0) 0%,
60
63
  rgba(0, 0, 0, 0.05) 12%,
@@ -64,7 +67,7 @@ Try switching the\xA0quality to\xA0Auto.`},Lg=C$;var gs=new Map;gs.set(Vg.EN,Lg)
64
67
  rgba(0, 0, 0, 0.5) 77%,
65
68
  rgba(0, 0, 0, 0.55) 88%,
66
69
  rgba(0, 0, 0, 0.65) 100%
67
- );}`};function Ka(t,e){if(new.target)return T({component:Ka,...t});I(e,!0),oe(t,W$);let[i,o]=Je(),n=()=>C(q,"$adPlaybackState",i),s=()=>C(V,"$isMobile",i),a=()=>C(U,"$adPosition",i),l=()=>C(ie,"$secondsToWatchBeforeSkipAd",i),c=()=>C(k,"$isVideoEnded",i),p=u(e,"adsSlotId",7,void 0),f=u(e,"adsParams",7,void 0),v=u(e,"adsPreviewParam",7,void 0),m=u(e,"adsAutoplayParam",7,void 0),g=u(e,"duration",7,0),b=Be(),w=Qt(),k=b.state.isEnded$,V=b.ui.isMobile,F=w.ads.isMobileGoToSiteButton,M=de(void 0),H=de(void 0),S=!1,q=b.ads.playbackState,W=b.ads.canSkip,U=b.ads.position,ie=b.ads.secondsToWatchBeforeSkip,se=_(()=>W&&n()!=="inactive"),fe=_(()=>s()&&n()!=="inactive"&&F);Ut(()=>{let Y=b.getAdmanWrapper();if(Wg.push("ui",{key:"videoplayer_embed",strings:["new","adman_ads_mount"],numbers:[qg(),p()]}),!p()){Y.onAdmanLoadingError();return}let ce=we=>{Y.initAdman(we),S=!0},Ge=new AbortController,G=()=>{Ge.abort()},{width:Ve,height:ue}=Ae(b.ui.playerSize),We=Ae(b.ui.isFullscreen),rt=m()??Ae(b.ui.isAutoplay),Ue={width:Ve,height:ue,isFullscreen:We,isAutoplay:rt,adsContainer:r(M),adsVideoElement:r(H),slotId:p(),params:f(),previewParam:v(),duration:g()};return window.AdmanHTML?ce(Ue):Y.loadAdman(Ge.signal).then(()=>{ce(Ue)}).catch(()=>{Y.onAdmanLoadingError()}),()=>{Wg.push("ui",{key:"videoplayer_embed",strings:["new","adman_ads_unmount"],numbers:[qg(),p()]}),!S&&G()}});var J=z$(),xe=y(J);{var Ce=Y=>{var ce=U$();x(Y,ce)};O(xe,Y=>{s()&&Y(Ce)})}var X=N(xe,2);vt(X,Y=>K(H,Y),()=>r(H));var me=N(X,2);{var he=Y=>{Sd(Y,{get position(){return a()},get secondsToWatchBeforeSkip(){return l()},get skipAd(){return b.actions.internal.skipAd}})};O(me,Y=>{r(se)&&Y(he)})}var te=N(me,2);{var le=Y=>{Cd(Y,{})};O(te,Y=>{c()&&Y(le)})}var z=N(te,2);{var je=Y=>{kd(Y,{})};O(z,Y=>{r(fe)&&Y(je)})}$(J),vt(J,Y=>K(M,Y),()=>r(M)),x(t,J);var Re=E({get adsSlotId(){return p()},set adsSlotId(Y=void 0){p(Y),d()},get adsParams(){return f()},set adsParams(Y=void 0){f(Y),d()},get adsPreviewParam(){return v()},set adsPreviewParam(Y=void 0){v(Y),d()},get adsAutoplayParam(){return m()},set adsAutoplayParam(Y=void 0){m(Y),d()},get duration(){return g()},set duration(Y=0){g(Y),d()},$set:A,$on:(Y,ce)=>P(e,Y,ce)});return o(),Re}var or=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(s=>String(s).padStart(2,"0")).join(":");return i>0&&(n=`${i}:${n}`),n};var q$=Ie('<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 Td(t,e){if(new.target)return T({component:Td,...t});let i=Oe(e,["children","$$slots","$$events","$$legacy"]);I(e,!1);var o=q$();let n;var s=y(o);return De(s,e,"default",{},null),Te(2),$(o),L(()=>n=Le(o,n,{xmlns:"http://www.w3.org/2000/svg",width:"42",height:"20","aria-hidden":"true","data-testid":"live-icon",role:"img",...i},void 0,!0)),x(t,o),E({$set:A,$on:(a,l)=>P(e,a,l)})}var K$=Ie('<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 Id(t,e){if(new.target)return T({component:Id,...t});let i=Oe(e,["children","$$slots","$$events","$$legacy"]);I(e,!1);var o=K$();let n;var s=y(o);return De(s,e,"default",{},null),Te(2),$(o),L(()=>n=Le(o,n,{xmlns:"http://www.w3.org/2000/svg",width:"42",height:"20",fill:"none","aria-hidden":"true","data-testid":"live-active-icon",role:"img",...i},void 0,!0)),x(t,o),E({$set:A,$on:(a,l)=>P(e,a,l)})}function Qa(t,e){if(new.target)return T({component:Qa,...t});I(e,!0);let i=u(e,"isActive",7,!1);var o=Ye(),n=ye(o);{var s=l=>{Id(l,{})},a=l=>{Td(l,{})};O(n,l=>{i()?l(s):l(a,!1)})}return x(t,o),E({get isActive(){return i()},set isActive(l=!1){i(l),d()},$set:A,$on:(l,c)=>P(e,l,c)})}var Q$=D('<div class="thumb-timer-live-icon svelte-opbced"><!></div>'),G$=D('<div role="timer" class="thumb-timer svelte-opbced" 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>'),Y$={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 {
70
+ );}`};function bl(t,e){F(e,!0),q(t,D0);let[i,o]=Oe(),n=()=>$(G,"$canSkipAd",i),a=()=>$(Q,"$adPlaybackState",i),s=()=>$(L,"$isMobile",i),d=()=>$(ee,"$adPosition",i),l=()=>$(ie,"$secondsToWatchBeforeSkipAd",i),c=()=>$(I,"$isVideoEnded",i),u=v(e,"adsSlotId",3,void 0),_=v(e,"adsParams",3,void 0),f=v(e,"adsPreviewParam",3,void 0),y=v(e,"adsAutoplayParam",3,void 0),x=v(e,"duration",3,0),w=ye(),S=Vt(),I=w.state.isEnded$,L=w.ui.isMobile,A=S.ads.isMobileGoToSiteButton,P=Y(void 0),T=Y(void 0),D=!1,Q=w.ads.playbackState,G=w.ads.canSkip,ee=w.ads.position,ie=w.ads.secondsToWatchBeforeSkip,oe=m(()=>n()&&a()!=="inactive"),te=m(()=>s()&&a()!=="inactive"&&A);It(()=>{let Ce=w.getAdmanWrapper();if(Dg.push("ui",{key:"videoplayer_embed",strings:["new","adman_ads_mount"],numbers:[Og(),u()]}),!u()){Ce.onAdmanLoadingError();return}let Be=Pe=>{Ce.initAdman(Pe),D=!0},ue=new AbortController,R=()=>{ue.abort()},{width:be,height:Ie}=ve(w.ui.playerSize),je=ve(w.ui.isFullscreen),qe=y()??ve(w.ui.isAutoplay),ke={width:be,height:Ie,isFullscreen:je,isAutoplay:qe,adsContainer:r(P),adsVideoElement:r(T),slotId:u(),params:_(),previewParam:f(),duration:x()};return window.AdmanHTML?Be(ke):Ce.loadAdman(ue.signal).then(()=>{Be(ke)}).catch(()=>{Ce.onAdmanLoadingError()}),()=>{Dg.push("ui",{key:"videoplayer_embed",strings:["new","adman_ads_unmount"],numbers:[Og(),u()]}),!D&&R()}});var ge=N0(),X=h(ge);{var Le=Ce=>{var Be=B0();b(Ce,Be)};V(X,Ce=>{s()&&Ce(Le)})}var Ae=E(X,2);at(Ae,Ce=>N(T,Ce),()=>r(T));var se=E(Ae,2);{var He=Ce=>{fp(Ce,{get position(){return d()},get secondsToWatchBeforeSkip(){return l()},get skipAd(){return w.actions.internal.skipAd}})};V(se,Ce=>{r(oe)&&Ce(He)})}var j=E(se,2);{var B=Ce=>{pp(Ce,{})};V(j,Ce=>{c()&&Ce(B)})}var Re=E(j,2);{var _e=Ce=>{mp(Ce,{})};V(Re,Ce=>{r(te)&&Ce(_e)})}g(ge),at(ge,Ce=>N(P,Ce),()=>r(P)),b(t,ge),U(),o()}var Qn=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 O0=me('<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 vp(t,e){let i=xe(e,["$$slots","$$events","$$legacy","children"]);var o=O0();let n;var a=h(o);ce(a,()=>e.children??J),fe(2),g(o),C(()=>n=he(o,n,{xmlns:"http://www.w3.org/2000/svg",width:"42",height:"20","aria-hidden":"true","data-testid":"live-icon",role:"img",...i})),b(t,o)}var H0=me('<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 gp(t,e){let i=xe(e,["$$slots","$$events","$$legacy","children"]);var o=H0();let n;var a=h(o);ce(a,()=>e.children??J),fe(2),g(o),C(()=>n=he(o,n,{xmlns:"http://www.w3.org/2000/svg",width:"42",height:"20",fill:"none","aria-hidden":"true","data-testid":"live-active-icon",role:"img",...i})),b(t,o)}function $l(t,e){let i=v(e,"isActive",3,!1);var o=ze(),n=pe(o);{var a=d=>{gp(d,{})},s=d=>{vp(d,{})};V(n,d=>{i()?d(a):d(s,!1)})}b(t,o)}var F0=M('<div class="thumb-timer-live-icon svelte-opbced"><!></div>'),U0=M('<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>'),z0={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 {
68
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%;
69
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;
70
73
  animation-name: svelte-opbced-thumb-timer-equalizer-col1;}.thumb-timer-equalizer.svelte-opbced .col:where(.svelte-opbced):nth-child(2) {left:3px;
@@ -135,9 +138,9 @@ Try switching the\xA0quality to\xA0Auto.`},Lg=C$;var gs=new Map;gs.set(Vg.EN,Lg)
135
138
  100% {
136
139
  transform: scaleY(0.6);
137
140
  }
138
- }.thumb-timer-text.svelte-opbced {display:inline-block;text-align:right;}`};function Ga(t,e){if(new.target)return T({component:Ga,...t});I(e,!0),oe(t,Y$);let i=u(e,"isHidden",7,!1),o=u(e,"isLive",7,!1),n=u(e,"isPlaying",7,!1),s=u(e,"position",7),a=u(e,"duration",7);var l=G$(),c=N(y(l),2),p=y(c);{var f=m=>{var g=Q$(),b=y(g);Qa(b,{isActive:!0}),$(g),x(m,g)},v=m=>{var g=er();L(b=>Se(g,b),[()=>or(a()-s())]),x(m,g)};O(p,m=>{o()?m(f):m(v,!1)})}return $(c),$(l),L(()=>{ne(l,"live",o()),ne(l,"hidden",i()),ne(l,"playing",n())}),x(t,l),E({get isHidden(){return i()},set isHidden(m=!1){i(m),d()},get isLive(){return o()},set isLive(m=!1){o(m),d()},get isPlaying(){return n()},set isPlaying(m=!1){n(m),d()},get position(){return s()},set position(m){s(m),d()},get duration(){return a()},set duration(m){a(m),d()},$set:A,$on:(m,g)=>P(e,m,g)})}var Ya=t=>{if(document.queryCommandSupported&&document.queryCommandSupported("copy")){let e=document.createElement("textarea");e.textContent=t,e.style.position="absolute",e.style.top="-9999px",document.body.appendChild(e),e.select();try{document.execCommand("copy")}finally{document.body.removeChild(e)}}};import{ChromecastState as s1}from"@vkontakte/videoplayer-core/evergreen";import{clientChecker as Kg}from"@vkontakte/videoplayer-core/evergreen";var nr=t=>{t.stopPropagation(),t.preventDefault()},Z$=t=>{let e=t.previousElementSibling;e||(e=t.parentNode?.lastElementChild),e?.focus()},X$=t=>{let e=t.nextElementSibling;e||(e=t.parentNode?.firstElementChild),e?.focus()},J$=t=>{let e=t.code;return e==="Tab"&&!t.shiftKey||e==="ArrowDown"},e1=t=>{let e=t.code;return e==="Tab"||e==="ArrowUp"},Qg=t=>t.code==="Escape",t1=t=>t.code==="ArrowLeft",cc=(t,e=[])=>{let i=t.code;return["Enter","Space",...e].includes(i)},Gg=t=>{if(J$(t)){nr(t),X$(t.target);return}e1(t)&&(nr(t),Z$(t.target))},Ms=t=>!Kg.device.isAndroid&&t?.detail===0||Kg.device.isAndroid&&t?.pointerType==="",ja=async(t,e,i)=>{await to(),t&&!t.classList.contains("opened")&&!e&&Ae(i)&&(await to(),i.set(!1),t.focus())},Yg=async(t,e,i)=>{await to(),t&&!e&&Ae(i)&&(i.set(!1),t.focus())},Xr=async(t,e,i)=>{await to(),!!t&&e&&i&&t.children[0]?.focus()},jg=async(t,e)=>{setTimeout(()=>{let i=t[e];!!i&&i.focus()},100)},Ed=(t,e)=>{Gg(t),Qg(t)&&(nr(t),e())},Pd=async(t,e)=>{cc(t,["ArrowRight"])&&(nr(t),e())},Zg=async(t,e,i)=>{if(Gg(t),t1(t)){nr(t),e();return}Qg(t)&&(nr(t),i())},Za=(t,e)=>{cc(t)&&(nr(t),e())},Xg=(t,e,i)=>{if(cc(t))nr(t),i(!e);else{let o=t.code;if(o==="ArrowLeft"&&e){i(!1),nr(t);return}o==="ArrowRight"&&!e&&(i(!0),nr(t))}},Jg=t=>{let e=t.getBoundingClientRect(),i=-14,o=e.left+e.width,n=e.top+i;return{right:o,bottom:n}},eh=t=>{if(!t)return{top:0,left:0};let e=t.getBoundingClientRect(),i=-58,o=8,n=e.left+o;return{bottom:e.bottom+i,left:n}};import{isNullable as Ld,isValidURL as a1}from"@vkontakte/videoplayer-shared/evergreen";var Lr={"copy-link":100,"copy-link-timestamp":200,"copy-embed-code":300,pip:400,"video-loop":500,rotate:600,report:700,"save-debug":800,"save-trace":900,"debug-info":1e3};import{noop as Ad}from"@vkontakte/videoplayer-shared/evergreen";var o1=(t,e)=>{Za(t,()=>e())},n1=D('<li class="item svelte-1hm4mm9" role="menuitem" tabindex="0"> </li>'),r1={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 Md(t,e){if(new.target)return T({component:Md,...t});I(e,!0),oe(t,r1);let i=u(e,"id",7),o=u(e,"onClick",7,Ad),n=u(e,"closeContextMenu",7,Ad),s=u(e,"label",7),a=u(e,"ariaLabel",7),l=f=>{f?.stopPropagation(),o()(),n()()};var c=n1();c.__click=l,c.__keydown=[o1,l];var p=y(c,!0);return $(c),L(()=>{pe(c,"aria-label",a()??s()),pe(c,"data-testid",i()),Se(p,s())}),x(t,c),E({get id(){return i()},set id(f){i(f),d()},get onClick(){return o()},set onClick(f=Ad){o(f),d()},get closeContextMenu(){return n()},set closeContextMenu(f=Ad){n(f),d()},get label(){return s()},set label(f){s(f),d()},get ariaLabel(){return a()},set ariaLabel(f){a(f),d()},$set:A,$on:(f,v)=>P(e,f,v)})}pt(["click","keydown"]);var da=(t,e)=>t.weight-e.weight;var dc=(o=>(o.OPEN_SUB_MENU="OPEN_SUB_MENU",o.CLICK="CLICK",o.SWITCH="SWITCH",o))(dc||{});var l1=(t,e)=>{Ed(t,e)},c1=t=>{t.preventDefault()},d1=D('<ul role="menu" class="svelte-1p5ukkp"></ul>'),u1={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 Rd(t,e){if(new.target)return T({component:Rd,...t});I(e,!0),oe(t,u1);let[i,o]=Je(),n=()=>C(Ce,"$isLive$",i),s=()=>C(te,"$isPiPEnabled$",i),a=()=>C(xe,"$chromecastState$",i),l=()=>C(le,"$pictureInPictureApiIsActive$",i),c=()=>C(he,"$isLooped$",i),p=()=>C(X,"$positionExact$",i),f=()=>C(ie,"$debugPanelVisible",i),v=()=>C(se,"$additionalContextMenuItems$",i),m=u(e,"visible",7,!1),g=u(e,"supportLink",7),b=u(e,"position",23,()=>({top:0,left:0})),w=u(e,"playerContainerRef",7,void 0),k=u(e,"controlsContainerRef",7,void 0),V=u(e,"menuElementRef",15,void 0),F=u(e,"returnFocus",7),M=de(0),H=de(0),S=Be(),{pictureInPicture$:q}=go(),W=Qt(),U=S.ui.contextMenu.visible$,ie=S.ui.debugPanelVisible,se=S.ui.additionalContextMenuItems$,fe=S.ui.t,J=S.actions.internal.togglePictureInPicture,xe=S.state.chromecastState$,Ce=S.state.isLive$,X=S.state.positionExact$,me=S.state.isInteractive,he=S.state.looped$,{isEnabled$:te,isActive$:le}=q,z=_(()=>W.features.copyVideoLink&&S.callbacks?.onCopyVideoLink),je=_(()=>r(z)&&!n()&&!me),Re=_(()=>!!S.callbacks?.onCopyEmbedCodeClicked),Y=_(()=>s()&&a()!==s1.CONNECTED&&!me),ce=_(()=>W.features.videoRotate&&!me),Ge=_(()=>W.showSupport&&!l()),G=_(()=>W.features.saveTraceInfoToFile),Ve=()=>{U.set(!1),F()?.()},ue=(at,bt)=>{if(!V()||!w()||!k())return;let Rt=V().getBoundingClientRect(),Lt=w().getBoundingClientRect();K(M,at-Lt.left),K(H,bt-Lt.top),r(M)+Rt.width>Lt.width&&K(M,Lt.width-Rt.width),r(H)+Rt.height>Lt.height&&K(H,Lt.height-Rt.height),K(M,ke(Math.max(r(M),0))),K(H,ke(Math.max(r(H),0)))};ot(()=>{(async()=>{if(V()&&w()&&k()){await to();let{top:bt,left:Rt,bottom:Lt,right:Xe}=b(),lt=Rt??0,Nt=bt??0,ii=V().getBoundingClientRect();Ld(Rt)&&!Ld(Xe)&&(lt=Xe-ii.width),Ld(bt)&&!Ld(Lt)&&(Nt=Lt-ii.height),lt=Math.max(lt,0),Nt=Math.max(Nt,0),ue(lt,Nt)}})()});let We=()=>{S.actions.internal.videoRotate()},rt=()=>{a1(g())&&window.open(g(),"_blank"),S.actions.internal.reportProblem(),S.actions.internal.pause()},Ue=()=>{let at=S.actions.internal.getDebugTextData();if(W.features.saveDebugInfoToFile){let bt=new Blob([...at],{type:"plain/text"}),Rt=window.URL.createObjectURL(bt);na(Rt,"vk_player_debug_info","txt")}else Ya(S.actions.internal.getDebugTextData())},we=()=>{let at=S.actions.internal.getTraceTextData(),bt=new Blob([...at],{type:"application/json"}),Rt=window.URL.createObjectURL(bt);na(Rt,"vk_player_trace_info","json")},Me=()=>{ie.set(!0)},st=async()=>{try{J()}finally{F()?.()}},ct=()=>{S.actions.internal.setLooped(!c())},_e=()=>{if(r(Re)){let at=S.callbacks?.onCopyEmbedCodeClicked?.();at&&Ya(at)}},et=(at=!1)=>{if(S.callbacks?.onCopyVideoLink){let bt=S.callbacks?.onCopyVideoLink(at,p());bt&&Ya(bt)}},yt=_(()=>W.features.saveDebugInfoToFile?fe("menu_save_debug"):fe("menu_copy_debug")),ee=_(()=>r(z)?{id:"copy-link",weight:Lr["copy-link"],label:fe("menu_copy_video_link"),onClick:()=>et()}:void 0),tt=_(()=>r(je)?{id:"copy-link-timestamp",weight:Lr["copy-link-timestamp"],label:fe("menu_copy_video_link_with_timestamp"),onClick:()=>et(!0)}:void 0),$t=_(()=>r(Re)?{id:"copy-embed-code",weight:Lr["copy-embed-code"],label:fe("menu_copy_embed_code"),onClick:_e}:void 0),dt=_(()=>r(Y)?{id:"pip",weight:Lr.pip,label:fe("menu_pip"),onClick:st}:void 0),ge=_(()=>({id:"video-loop",weight:Lr["video-loop"],label:c()?fe("menu_video_loop_off"):fe("menu_video_loop_on"),ariaLabel:fe("aria_label_menu_loop"),onClick:ct})),Pe=_(()=>r(ce)?{id:"rotate",weight:Lr.rotate,label:fe("menu_video_rotate"),ariaLabel:fe("aria_label_menu_rotate"),onClick:We}:void 0),$e=_(()=>r(Ge)?{id:"report",weight:Lr.report,label:fe("menu_report"),ariaLabel:`${fe("menu_report")}. ${fe("aria_label_new_tab_alert")}`,onClick:rt}:void 0),Qe=_(()=>({id:"save-debug",weight:Lr["save-debug"],label:r(yt),onClick:Ue})),ze=_(()=>r(G)?{id:"save-trace",weight:Lr["save-trace"],label:fe("menu_save_debug"),onClick:we}:void 0),ae=_(()=>({id:"debug-info",weight:Lr["debug-info"],label:fe("menu_debug_overlay"),ariaLabel:f()?fe("aria_label_menu_debug_overlay_disable"):fe("aria_label_menu_debug_overlay_enable"),onClick:Me})),gt=_(()=>[r(ee),r(tt),r($t),r(dt),r(ge),r(Pe),r($e),r(Qe),r(ze),r(ae),...v()].filter(at=>!!at).sort(da));var Ze=Ye(),Tt=ye(Ze);{var Vt=at=>{var bt=d1();bt.__contextmenu=[c1],bt.__keydown=[l1,Ve],vi(bt,21,()=>r(gt),Fi,(Rt,Lt)=>{Md(Rt,{get id(){return r(Lt).id},get label(){return r(Lt).label},get ariaLabel(){return r(Lt).ariaLabel},get onClick(){return r(Lt).onClick},closeContextMenu:Ve})}),$(bt),vt(bt,Rt=>V(Rt),()=>V()),L(()=>pe(bt,"style",`top: ${r(H)??""}px; left: ${r(M)??""}px;`)),x(at,bt)};O(Tt,at=>{m()&&at(Vt)})}x(t,Ze);var Zt=E({get visible(){return m()},set visible(at=!1){m(at),d()},get supportLink(){return g()},set supportLink(at){g(at),d()},get position(){return b()},set position(at={top:0,left:0}){b(at),d()},get playerContainerRef(){return w()},set playerContainerRef(at=void 0){w(at),d()},get controlsContainerRef(){return k()},set controlsContainerRef(at=void 0){k(at),d()},get menuElementRef(){return V()},set menuElementRef(at=void 0){V(at),d()},get returnFocus(){return F()},set returnFocus(at){F(at),d()},$set:A,$on:(at,bt)=>P(e,at,bt)});return o(),Zt}pt(["contextmenu","keydown"]);var Vd=class{constructor(e){this.value=e,this.next=null}};var Xa=class{constructor(e){this.top=null,this.bottom=null,this.size=0,this.maxSize=e}push(e){let i=new Vd(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 p1=D('<div class="container svelte-1ssl9eb"><canvas class="svelte-1ssl9eb"></canvas></div>'),f1={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 Ja(t,e){if(new.target)return T({component:Ja,...t});I(e,!0),oe(t,f1);let i=u(e,"values",23,()=>[]),o=de(void 0),n=de(null),s=16,a=120,l=60,c=a/l;Ut(()=>{r(o).width=a,r(o).height=s,K(n,ke(r(o).getContext("2d")))});function p(m,g,b,w,k){k===0&&(k=1),m.fillStyle="#fff",m.fillRect(g,b,w,k)}ot(()=>{let m="";if(r(n)){let g=i()[0];for(let w=1;w<i().length;w++)i()[w]>g&&(g=i()[w]);r(n).clearRect(0,0,a,s);let b=l-1;for(let w=i().length-1;w>=0;w--){let k=b*c,V=g>0?s*(i()[w]/g):0;p(r(n),k,0,c,V),m=V+" "+m,b--}}});var f=p1(),v=y(f);return vt(v,m=>K(o,m),()=>r(o)),$(f),x(t,f),E({get values(){return i()},set values(m=[]){i(m),d()},$set:A,$on:(m,g)=>P(e,m,g)})}import{safeStorage as th}from"@vkontakte/videoplayer-shared/evergreen";var m1=(t,e)=>{t.stopPropagation(),th.remove(oc),e.set(!1)},v1=D('<div class="svelte-4deykz"><div class="svelte-4deykz">Video id</div> <span> </span></div>'),g1=D('<div class="svelte-4deykz"><div class="svelte-4deykz">VSID</div> <span> </span></div>'),h1=D('<div class="svelte-4deykz"><div class="svelte-4deykz">Provider</div> <span> </span></div>'),_1=D('<div class="svelte-4deykz"><div class="svelte-4deykz">Streams</div> <span> </span></div>'),$1=D('<div class="svelte-4deykz"><div class="svelte-4deykz">Viewport</div> <span> </span></div>'),b1=D('<div class="svelte-4deykz"><div class="svelte-4deykz">Video size</div> <span> </span></div>'),y1=D('<div class="svelte-4deykz"><div class="svelte-4deykz">CDN host</div> <span> </span></div>'),x1=D('<div class="svelte-4deykz"><div class="svelte-4deykz">Volume</div> <span> </span></div>'),w1=D('<div class="svelte-4deykz"><div class="svelte-4deykz">Buffer</div> <span> </span></div>'),C1=D('<div class="svelte-4deykz"><div class="svelte-4deykz">Live latency</div> <span> </span></div>'),S1=D('<div class="svelte-4deykz"><div class="svelte-4deykz">Segment</div> <span> </span></div>'),k1=D('<div class="svelte-4deykz"><div class="svelte-4deykz">Network</div> <!> <span> </span></div>'),T1=D('<div class="svelte-4deykz"><div class="svelte-4deykz">V bitrate</div> <!> <span> </span></div>'),I1=D('<div class="container svelte-4deykz" 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>'),E1={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 el(t,e){if(new.target)return T({component:el,...t});I(e,!0),oe(t,E1);let[i,o]=Je(),n=()=>C(l,"$isMobile",i),s=Be(),a=s.ui.debugPanelVisible,l=s.ui.isMobile,c=de(ke(s.actions.internal.getDebugPanelData())),p=s.actions.internal.getVideoElement(),f=de(0),v=de(0),m=de(0),g=new Xa(60),b=new Xa(60),w=new Xa(60),k=de(ke([])),V=de(ke([])),F=de(ke([])),M=j("aria_label_debug_panel");Ut(()=>{th.set(oc,"true"),s.actions.internal.startLogging(),p&&(K(v,ke(p.getVideoPlaybackQuality().droppedVideoFrames)),K(f,ke(p.getVideoPlaybackQuality().totalVideoFrames)));let Pe=window.setInterval(()=>{K(c,ke(s.actions.internal.getDebugPanelData()))},500),$e;return p&&($e=window.setInterval(()=>{if(p){K(v,ke(p.getVideoPlaybackQuality().droppedVideoFrames));let Qe=p.getVideoPlaybackQuality().totalVideoFrames;K(m,Qe-r(f)),K(f,ke(Qe)),g.push(r(m)),r(c).speed&&b.push(r(c).speed),r(c).bitrate&&w.push(r(c).bitrate),K(k,ke(g.getValuesFromBottom())),K(V,ke(b.getValuesFromBottom())),K(F,ke(w.getValuesFromBottom()))}},1e3)),()=>{s.actions.internal.stopLogging(),clearInterval(Pe),$e&&clearInterval($e)}});var H=I1();pe(H,"aria-label",M);var S=y(H);S.__click=[m1,a];var q=N(S,2),W=y(q),U=N(y(W),2),ie=y(U,!0);$(U),$(W);var se=N(W,2);{var fe=Pe=>{var $e=v1(),Qe=N(y($e),2),ze=y(Qe,!0);$(Qe),$($e),L(()=>Se(ze,r(c).id)),x(Pe,$e)};O(se,Pe=>{r(c).id&&Pe(fe)})}var J=N(se,2);{var xe=Pe=>{var $e=g1(),Qe=N(y($e),2),ze=y(Qe,!0);$(Qe),$($e),L(()=>Se(ze,r(c).vsid)),x(Pe,$e)};O(J,Pe=>{r(c).vsid&&Pe(xe)})}var Ce=N(J,2);{var X=Pe=>{var $e=h1(),Qe=N(y($e),2),ze=y(Qe,!0);$(Qe),$($e),L(()=>Se(ze,r(c).provider)),x(Pe,$e)};O(Ce,Pe=>{r(c).provider&&Pe(X)})}var me=N(Ce,2);{var he=Pe=>{var $e=_1(),Qe=N(y($e),2),ze=y(Qe);$(Qe),$($e),L(()=>Se(ze,`Video: ${r(c).videoCodec||""} ${(r(c).hdr?"(HDR)":"")??""}
141
+ }.thumb-timer-text.svelte-opbced {display:inline-block;text-align:right;}`};function yl(t,e){F(e,!0),q(t,z0);let i=v(e,"isHidden",3,!1),o=v(e,"isLive",3,!1),n=v(e,"isPlaying",3,!1);var a=U0();let s;var d=E(h(a),2),l=h(d);{var c=_=>{var f=F0(),y=h(f);$l(y,{isActive:!0}),g(f),b(_,f)},u=_=>{var f=qn();C(y=>de(f,y),[()=>Qn(e.duration-e.position)]),b(_,f)};V(l,_=>{o()?_(c):_(u,!1)})}g(d),g(a),C(_=>s=Z(a,1,"thumb-timer svelte-opbced",null,s,_),[()=>({live:o(),hidden:i(),playing:n()})]),b(t,a),U()}var xs=t=>{if(document.queryCommandSupported&&document.queryCommandSupported("copy")){let e=document.createElement("textarea");e.textContent=t,e.style.position="absolute",e.style.top="-9999px",document.body.appendChild(e),e.select();try{document.execCommand("copy")}finally{document.body.removeChild(e)}}};import{ChromecastState as e_}from"@vkontakte/videoplayer-core/evergreen";import{clientChecker as Hg}from"@vkontakte/videoplayer-core/evergreen";var Gn=t=>{t.stopPropagation(),t.preventDefault()},K0=t=>{let e=t.previousElementSibling;e||(e=t.parentNode?.lastElementChild),e?.focus()},W0=t=>{let e=t.nextElementSibling;e||(e=t.parentNode?.firstElementChild),e?.focus()},Q0=t=>{let e=t.code;return e==="Tab"&&!t.shiftKey||e==="ArrowDown"},G0=t=>{let e=t.code;return e==="Tab"||e==="ArrowUp"},Fg=t=>t.code==="Escape",j0=t=>t.code==="ArrowLeft",xl=(t,e=[])=>{let i=t.code;return["Enter","Space",...e].includes(i)},Ug=t=>{if(Q0(t)){Gn(t),W0(t.target);return}G0(t)&&(Gn(t),K0(t.target))},ca=t=>!Hg.device.isAndroid&&t?.detail===0||Hg.device.isAndroid&&t?.pointerType==="",ws=async(t,e,i)=>{await Xi(),t&&!t.classList.contains("opened")&&!e&&ve(i)&&(await Xi(),i.set(!1),t.focus())},zg=async(t,e,i)=>{await Xi(),t&&!e&&ve(i)&&(i.set(!1),t.focus())},Ss=async(t,e,i)=>{await Xi(),!!t&&e&&i&&t.children[0]?.focus()},qg=async(t,e)=>{setTimeout(()=>{let i=t[e];!!i&&i.focus()},100)},uc=(t,e)=>{Ug(t),Fg(t)&&(Gn(t),e())},pc=async(t,e)=>{xl(t,["ArrowRight"])&&(Gn(t),e())},Kg=async(t,e,i)=>{if(Ug(t),j0(t)){Gn(t),e();return}Fg(t)&&(Gn(t),i())},Cs=(t,e)=>{xl(t)&&(Gn(t),e())},Wg=(t,e,i)=>{if(xl(t))Gn(t),i(!e);else{let o=t.code;if(o==="ArrowLeft"&&e){i(!1),Gn(t);return}o==="ArrowRight"&&!e&&(i(!0),Gn(t))}},Qg=t=>{let e=t.getBoundingClientRect(),i=-14,o=e.left+e.width,n=e.top+i;return{right:o,bottom:n}},Gg=t=>{if(!t)return{top:0,left:0};let e=t.getBoundingClientRect(),i=-58,o=8,n=e.left+o;return{bottom:e.bottom+i,left:n}};import{isNullable as fc,isValidURL as t_}from"@vkontakte/videoplayer-shared/evergreen";var mr={"copy-link":100,"copy-link-timestamp":200,"copy-embed-code":300,pip:400,"video-loop":500,rotate:600,report:700,"save-debug":800,"save-trace":900,"debug-info":1e3};import{noop as jg}from"@vkontakte/videoplayer-shared/evergreen";var Z0=(t,e)=>{Cs(t,()=>e())},X0=M('<li class="item svelte-1hm4mm9" role="menuitem" tabindex="0"> </li>'),J0={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 hp(t,e){F(e,!0),q(t,J0);let i=v(e,"onClick",3,jg),o=v(e,"closeContextMenu",3,jg),n=d=>{d?.stopPropagation(),i()(),o()()};var a=X0();a.__click=n,a.__keydown=[Z0,n];var s=h(a,!0);g(a),C(()=>{Me(a,"aria-label",e.ariaLabel??e.label),Me(a,"data-testid",e.id),de(s,e.label)}),b(t,a),U()}it(["click","keydown"]);var Da=(t,e)=>t.weight-e.weight;var wl=(o=>(o.OPEN_SUB_MENU="OPEN_SUB_MENU",o.CLICK="CLICK",o.SWITCH="SWITCH",o))(wl||{});var i_=(t,e)=>{uc(t,e)},o_=t=>{t.preventDefault()},n_=M('<ul role="menu" class="svelte-1p5ukkp"></ul>'),r_={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 _p(t,e){F(e,!0),q(t,r_);let[i,o]=Oe(),n=()=>$(te,"$isLive$",i),a=()=>$(Ae,"$isPiPEnabled$",i),s=()=>$(oe,"$chromecastState$",i),d=()=>$(se,"$pictureInPictureApiIsActive$",i),l=()=>$(Le,"$isLooped$",i),c=()=>$(ge,"$positionExact$",i),u=()=>$(Q,"$debugPanelVisible",i),_=()=>$(G,"$additionalContextMenuItems$",i),f=v(e,"visible",3,!1),y=v(e,"position",19,()=>({top:0,left:0})),x=v(e,"playerContainerRef",3,void 0),w=v(e,"controlsContainerRef",3,void 0),S=v(e,"menuElementRef",15,void 0),I=Y(0),L=Y(0),A=ye(),{pictureInPicture$:P}=Hi(),T=Vt(),D=A.ui.contextMenu.visible$,Q=A.ui.debugPanelVisible,G=A.ui.additionalContextMenuItems$,ee=A.ui.t,ie=A.actions.internal.togglePictureInPicture,oe=A.state.chromecastState$,te=A.state.isLive$,ge=A.state.positionExact$,X=A.state.isInteractive,Le=A.state.looped$,{isEnabled$:Ae,isActive$:se}=P,He=m(()=>T.features.copyVideoLink&&A.callbacks?.onCopyVideoLink),j=m(()=>r(He)&&!n()&&!X),B=m(()=>!!A.callbacks?.onCopyEmbedCodeClicked),Re=m(()=>a()&&s()!==e_.CONNECTED&&!X),_e=m(()=>T.features.videoRotate&&!X),Ce=m(()=>T.showSupport&&!d()),Be=m(()=>T.features.saveTraceInfoToFile),ue=()=>{D.set(!1),e.returnFocus?.()},R=(Ze,Ee)=>{if(!S()||!x()||!w())return;let dt=S().getBoundingClientRect(),Rt=x().getBoundingClientRect();N(I,Ze-Rt.left),N(L,Ee-Rt.top),r(I)+dt.width>Rt.width&&N(I,Rt.width-dt.width),r(L)+dt.height>Rt.height&&N(L,Rt.height-dt.height),N(I,le(Math.max(r(I),0))),N(L,le(Math.max(r(L),0)))};Qe(()=>{(async()=>{if(S()&&x()&&w()){await Xi();let{top:Ee,left:dt,bottom:Rt,right:Gt}=y(),Zt=dt??0,ui=Ee??0,Fi=S().getBoundingClientRect();fc(dt)&&!fc(Gt)&&(Zt=Gt-Fi.width),fc(Ee)&&!fc(Rt)&&(ui=Rt-Fi.height),Zt=Math.max(Zt,0),ui=Math.max(ui,0),R(Zt,ui)}})()});let be=()=>{A.actions.internal.videoRotate()},Ie=()=>{t_(e.supportLink)&&window.open(e.supportLink,"_blank"),A.actions.internal.reportProblem(),A.actions.internal.pause()},je=()=>{let Ze=A.actions.internal.getDebugTextData();if(T.features.saveDebugInfoToFile){let Ee=new Blob([...Ze],{type:"plain/text"}),dt=window.URL.createObjectURL(Ee);Ma(dt,"vk_player_debug_info","txt")}else xs(A.actions.internal.getDebugTextData())},qe=()=>{let Ze=A.actions.internal.getTraceTextData(),Ee=new Blob([...Ze],{type:"application/json"}),dt=window.URL.createObjectURL(Ee);Ma(dt,"vk_player_trace_info","json")},ke=()=>{Q.set(!0)},Pe=async()=>{try{ie()}finally{e.returnFocus?.()}},Ve=()=>{A.actions.internal.setLooped(!l())},ct=()=>{if(r(B)){let Ze=A.callbacks?.onCopyEmbedCodeClicked?.();Ze&&xs(Ze)}},gt=(Ze=!1)=>{if(A.callbacks?.onCopyVideoLink){let Ee=A.callbacks?.onCopyVideoLink(Ze,c());Ee&&xs(Ee)}},ot=m(()=>T.features.saveDebugInfoToFile?ee("menu_save_debug"):ee("menu_copy_debug")),kt=m(()=>r(He)?{id:"copy-link",weight:mr["copy-link"],label:ee("menu_copy_video_link"),onClick:()=>gt()}:void 0),nt=m(()=>r(j)?{id:"copy-link-timestamp",weight:mr["copy-link-timestamp"],label:ee("menu_copy_video_link_with_timestamp"),onClick:()=>gt(!0)}:void 0),ut=m(()=>r(B)?{id:"copy-embed-code",weight:mr["copy-embed-code"],label:ee("menu_copy_embed_code"),onClick:ct}:void 0),Et=m(()=>r(Re)?{id:"pip",weight:mr.pip,label:ee("menu_pip"),onClick:Pe}:void 0),we=m(()=>({id:"video-loop",weight:mr["video-loop"],label:l()?ee("menu_video_loop_off"):ee("menu_video_loop_on"),ariaLabel:ee("aria_label_menu_loop"),onClick:Ve})),Ne=m(()=>r(_e)?{id:"rotate",weight:mr.rotate,label:ee("menu_video_rotate"),ariaLabel:ee("aria_label_menu_rotate"),onClick:be}:void 0),Ye=m(()=>r(Ce)?{id:"report",weight:mr.report,label:ee("menu_report"),ariaLabel:`${ee("menu_report")}. ${ee("aria_label_new_tab_alert")}`,onClick:Ie}:void 0),W=m(()=>({id:"save-debug",weight:mr["save-debug"],label:r(ot),onClick:je})),re=m(()=>r(Be)?{id:"save-trace",weight:mr["save-trace"],label:ee("menu_save_debug"),onClick:qe}:void 0),ne=m(()=>({id:"debug-info",weight:mr["debug-info"],label:ee("menu_debug_overlay"),ariaLabel:u()?ee("aria_label_menu_debug_overlay_disable"):ee("aria_label_menu_debug_overlay_enable"),onClick:ke})),Fe=m(()=>[r(kt),r(nt),r(ut),r(Et),r(we),r(Ne),r(Ye),r(W),r(re),r(ne),..._()].filter(Ze=>!!Ze).sort(Da));var Ge=ze(),yt=pe(Ge);{var Ke=Ze=>{var Ee=n_();Ee.__contextmenu=[o_],Ee.__keydown=[i_,ue],fi(Ee,21,()=>r(Fe),dt=>dt.id,(dt,Rt)=>{hp(dt,{get id(){return r(Rt).id},get label(){return r(Rt).label},get ariaLabel(){return r(Rt).ariaLabel},get onClick(){return r(Rt).onClick},closeContextMenu:ue})}),g(Ee),at(Ee,dt=>S(dt),()=>S()),C(()=>tt(Ee,`top: ${r(L)??""}px; left: ${r(I)??""}px;`)),b(Ze,Ee)};V(yt,Ze=>{f()&&Ze(Ke)})}b(t,Ge),U(),o()}it(["contextmenu","keydown"]);var mc=class{constructor(e){this.value=e,this.next=null}};var ks=class{constructor(e){this.top=null,this.bottom=null,this.size=0,this.maxSize=e}push(e){let i=new mc(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 a_=M('<div class="container svelte-1ssl9eb"><canvas class="svelte-1ssl9eb"></canvas></div>'),s_={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 Sl(t,e){F(e,!0),q(t,s_);let i=v(e,"values",19,()=>[]),o=Y(void 0),n=Y(null),a=16,s=120,d=60,l=s/d;It(()=>{r(o).width=s,r(o).height=a,N(n,le(r(o).getContext("2d")))});function c(f,y,x,w,S){S===0&&(S=1),f.fillStyle="#fff",f.fillRect(y,x,w,S)}Qe(()=>{let f="";if(r(n)){let y=i()[0];for(let w=1;w<i().length;w++)i()[w]>y&&(y=i()[w]);r(n).clearRect(0,0,s,a);let x=d-1;for(let w=i().length-1;w>=0;w--){let S=x*l,I=y>0?a*(i()[w]/y):0;c(r(n),S,0,l,I),f=I+" "+f,x--}}});var u=a_(),_=h(u);at(_,f=>N(o,f),()=>r(o)),g(u),b(t,u),U()}import{safeStorage as Yg}from"@vkontakte/videoplayer-shared/evergreen";var l_=(t,e)=>{t.stopPropagation(),Yg.remove(pl),e.set(!1)},d_=M('<div class="svelte-4deykz"><div class="svelte-4deykz">Video id</div> <span> </span></div>'),c_=M('<div class="svelte-4deykz"><div class="svelte-4deykz">VSID</div> <span> </span></div>'),u_=M('<div class="svelte-4deykz"><div class="svelte-4deykz">Provider</div> <span> </span></div>'),p_=M('<div class="svelte-4deykz"><div class="svelte-4deykz">Streams</div> <span> </span></div>'),f_=M('<div class="svelte-4deykz"><div class="svelte-4deykz">Viewport</div> <span> </span></div>'),m_=M('<div class="svelte-4deykz"><div class="svelte-4deykz">Video size</div> <span> </span></div>'),v_=M('<div class="svelte-4deykz"><div class="svelte-4deykz">CDN host</div> <span> </span></div>'),g_=M('<div class="svelte-4deykz"><div class="svelte-4deykz">Volume</div> <span> </span></div>'),h_=M('<div class="svelte-4deykz"><div class="svelte-4deykz">Buffer</div> <span> </span></div>'),__=M('<div class="svelte-4deykz"><div class="svelte-4deykz">Live latency</div> <span> </span></div>'),b_=M('<div class="svelte-4deykz"><div class="svelte-4deykz">Segment</div> <span> </span></div>'),$_=M('<div class="svelte-4deykz"><div class="svelte-4deykz">Network</div> <!> <span> </span></div>'),y_=M('<div class="svelte-4deykz"><div class="svelte-4deykz">V bitrate</div> <!> <span> </span></div>'),x_=M('<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>'),w_={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 Cl(t,e){F(e,!0),q(t,w_);let[i,o]=Oe(),n=()=>$(d,"$isMobile",i),a=ye(),s=a.ui.debugPanelVisible,d=a.ui.isMobile,l=Y(le(a.actions.internal.getDebugPanelData())),c=a.actions.internal.getVideoElement(),u=Y(0),_=Y(0),f=Y(0),y=new ks(60),x=new ks(60),w=new ks(60),S=Y(le([])),I=Y(le([])),L=Y(le([])),A=H("aria_label_debug_panel");It(()=>{Yg.set(pl,"true"),a.actions.internal.startLogging(),c&&(N(_,le(c.getVideoPlaybackQuality().droppedVideoFrames)),N(u,le(c.getVideoPlaybackQuality().totalVideoFrames)));let W=window.setInterval(()=>{N(l,le(a.actions.internal.getDebugPanelData()))},500),re;return c&&(re=window.setInterval(()=>{if(c){N(_,le(c.getVideoPlaybackQuality().droppedVideoFrames));let ne=c.getVideoPlaybackQuality().totalVideoFrames;N(f,ne-r(u)),N(u,le(ne)),y.push(r(f)),r(l).speed&&x.push(r(l).speed),r(l).bitrate&&w.push(r(l).bitrate),N(S,le(y.getValuesFromBottom())),N(I,le(x.getValuesFromBottom())),N(L,le(w.getValuesFromBottom()))}},1e3)),()=>{a.actions.internal.stopLogging(),clearInterval(W),re&&clearInterval(re)}});var P=x_();let T;Me(P,"aria-label",A);var D=h(P);D.__click=[l_,s];var Q=E(D,2),G=h(Q),ee=E(h(G),2),ie=h(ee,!0);g(ee),g(G);var oe=E(G,2);{var te=W=>{var re=d_(),ne=E(h(re),2),Fe=h(ne,!0);g(ne),g(re),C(()=>de(Fe,r(l).id)),b(W,re)};V(oe,W=>{r(l).id&&W(te)})}var ge=E(oe,2);{var X=W=>{var re=c_(),ne=E(h(re),2),Fe=h(ne,!0);g(ne),g(re),C(()=>de(Fe,r(l).vsid)),b(W,re)};V(ge,W=>{r(l).vsid&&W(X)})}var Le=E(ge,2);{var Ae=W=>{var re=u_(),ne=E(h(re),2),Fe=h(ne,!0);g(ne),g(re),C(()=>de(Fe,r(l).provider)),b(W,re)};V(Le,W=>{r(l).provider&&W(Ae)})}var se=E(Le,2);{var He=W=>{var re=p_(),ne=E(h(re),2),Fe=h(ne);g(ne),g(re),C(()=>de(Fe,`Video: ${r(l).videoCodec||""} ${(r(l).hdr?"(HDR)":"")??""}
139
142
  &
140
- Audio: ${r(c).audioCodec||""} ${(r(c).audioLanguage?`(${r(c).audioLanguage})`:"")??""}`)),x(Pe,$e)};O(me,Pe=>{(r(c).videoCodec||r(c).audioCodec)&&Pe(he)})}var te=N(me,2);{var le=Pe=>{var $e=$1(),Qe=N(y($e),2),ze=y(Qe,!0);$(Qe),$($e),L(()=>Se(ze,r(c).viewport)),x(Pe,$e)};O(te,Pe=>{r(c).viewport&&Pe(le)})}var z=N(te,2);{var je=Pe=>{var $e=b1(),Qe=N(y($e),2),ze=y(Qe,!0);$(Qe),$($e),L(()=>Se(ze,r(c).videoSize)),x(Pe,$e)};O(z,Pe=>{r(c).videoSize&&Pe(je)})}var Re=N(z,2);{var Y=Pe=>{var $e=y1(),Qe=N(y($e),2),ze=y(Qe,!0);$(Qe),$($e),L(()=>Se(ze,r(c).cdn)),x(Pe,$e)};O(Re,Pe=>{r(c).cdn&&Pe(Y)})}var ce=N(Re,2);{var Ge=Pe=>{var $e=x1(),Qe=N(y($e),2),ze=y(Qe);$(Qe),$($e),L(()=>Se(ze,`${r(c).volume??""} %`)),x(Pe,$e)};O(ce,Pe=>{r(c).volume&&Pe(Ge)})}var G=N(ce,2);{var Ve=Pe=>{var $e=w1(),Qe=N(y($e),2),ze=y(Qe);$(Qe),$($e),L(ae=>Se(ze,`${ae??""} s`),[()=>r(c).buffer.toFixed(2)]),x(Pe,$e)};O(G,Pe=>{r(c).buffer&&Pe(Ve)})}var ue=N(G,2);{var We=Pe=>{var $e=C1(),Qe=N(y($e),2),ze=y(Qe);$(Qe),$($e),L(ae=>Se(ze,`${ae??""} s`),[()=>r(c).liveLatency.toFixed(2)]),x(Pe,$e)};O(ue,Pe=>{r(c).liveLatency&&Pe(We)})}var rt=N(ue,2);{var Ue=Pe=>{var $e=S1(),Qe=N(y($e),2),ze=y(Qe,!0);$(Qe),$($e),L(ae=>Se(ze,ae),[()=>[{value:r(c).currentVideoSegmentLength,title:"Video:"},{value:r(c).currentAudioSegmentLength,title:"Audio:"}].filter(({value:ae})=>ae).map(({value:ae,title:gt})=>`${gt} ${((ae??0)/1e3).toFixed(2)} s`).join(" & ")]),x(Pe,$e)};O(rt,Pe=>{(r(c).currentVideoSegmentLength||r(c).currentAudioSegmentLength)&&Pe(Ue)})}var we=N(rt,2),Me=N(y(we),2),st=y(Me);$(Me),$(we);var ct=N(we,2);{var _e=Pe=>{var $e=k1(),Qe=N(y($e),2);Ja(Qe,{get values(){return r(V)}});var ze=N(Qe,2),ae=y(ze);$(ze),$($e),L(gt=>Se(ae,`${gt??""} Kbps`),[()=>r(c).speed.toFixed(2)]),x(Pe,$e)};O(ct,Pe=>{r(c).speed&&Pe(_e)})}var et=N(ct,2);{var yt=Pe=>{var $e=T1(),Qe=N(y($e),2);Ja(Qe,{get values(){return r(F)}});var ze=N(Qe,2),ae=y(ze);$(ze),$($e),L(gt=>Se(ae,`${gt??""} Kbps`),[()=>r(c).bitrate.toFixed(2)]),x(Pe,$e)};O(et,Pe=>{r(c).bitrate&&Pe(yt)})}var ee=N(et,2),tt=N(y(ee),2);Ja(tt,{get values(){return r(k)}});var $t=N(tt,2),dt=y($t,!0);$($t),$(ee),$(q),$(H),L(()=>{ne(H,"container-mobile",n()),Se(ie,r(c).version),Se(st,`${r(v)??""} / ${r(f)??""} frames`),Se(dt,r(m))}),x(t,H);var ge=E({$set:A,$on:(Pe,$e)=>P(e,Pe,$e)});return o(),ge}pt(["click"]);import{noop as ih}from"@vkontakte/videoplayer-shared/evergreen";var P1=(t,e)=>{t.stopPropagation(),e()()},A1=D('<div class="close svelte-1ome55p"></div>'),M1={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 Ls(t,e){if(new.target)return T({component:Ls,...t});I(e,!0),oe(t,M1);let i=u(e,"onClick",7,ih);var o=A1();return o.__click=[P1,i],x(t,o),E({get onClick(){return i()},set onClick(n=ih){i(n),d()},$set:A,$on:(n,s)=>P(e,n,s)})}pt(["click"]);import{noop as oh}from"@vkontakte/videoplayer-shared/evergreen";var L1=D('<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>'),R1={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 tl(t,e){if(new.target)return T({component:tl,...t});I(e,!0),oe(t,R1);let i=u(e,"isRunning",7,!0),o=u(e,"onTimerEnded",7,oh),n=5e3,s=de(void 0),a,l,c=de(0),p;ot(()=>{i()&&(l=Date.now(),K(c,ke(requestAnimationFrame(f))))});let f=()=>{i()&&(p=(Date.now()-l)/n,p<1?(a?.clearRect(0,0,100,100),a?.beginPath(),a?.arc(50,50,47,-Math.PI/2,-Math.PI/2+Math.PI*2*p),a?.stroke(),K(c,ke(requestAnimationFrame(f)))):o()())};Ut(()=>{if(a=r(s).getContext("2d"),!!a)return a.lineWidth=6,a.lineCap="round",a.strokeStyle="#fff",()=>{cancelAnimationFrame(r(c))}});var v=L1(),m=y(v);return vt(m,g=>K(s,g),()=>r(s)),Te(2),$(v),x(t,v),E({get isRunning(){return i()},set isRunning(g=!0){i(g),d()},get onTimerEnded(){return o()},set onTimerEnded(g=oh){o(g),d()},$set:A,$on:(g,b)=>P(e,g,b)})}var V1=(t,e,i)=>{e(!1),i()},N1=D('<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 class="thumb-overlay svelte-jfbaax"></div> <!></div></div> <div class="column svelte-jfbaax"><div class="title svelte-jfbaax"> </div></div></div></div>',1),B1={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 Nd(t,e){if(new.target)return T({component:Nd,...t});I(e,!0),oe(t,B1);let[i,o]=Je(),n=()=>C(v,"$autoplayNextEnabled$",i),s=()=>C(m,"$timerNextVideoRunning$",i),a=u(e,"title",7),l=u(e,"thumb",7),c=u(e,"clickCloseIcon",7),p=u(e,"isHide",7),f=Be(),v=f.ui.autoplayNextEnabled$,m=f.ui.timerNextVideoRunning$,g=f.actions.internal.nextVideoClick,b=f.actions.internal.nextVideoAnnouncementShow,w=f.actions.internal.nextVideoAnnouncementClick,k=f.actions.internal.nextVideoAnnouncementAuto,V=f.actions.internal.nextVideoAnnouncementCancel,F=()=>{g(!1),k()},M=()=>{c()(),V()};Ut(()=>{p()||b(),p()&&n()&&(g(!1),k())});var H=Ye(),S=ye(H);{var q=U=>{var ie=N1(),se=N(ye(ie),2),fe=y(se),J=y(fe),xe=y(J,!0);$(J);var Ce=N(J,2);Ls(Ce,{onClick:M}),$(fe);var X=N(fe,2);X.__click=[V1,g,w];var me=y(X),he=y(me),te=y(he),le=N(te,2);{var z=ce=>{tl(ce,{get isRunning(){return s()},onTimerEnded:F})};O(le,ce=>{n()&&ce(z)})}$(he),$(me);var je=N(me,2),Re=y(je),Y=y(Re,!0);$(Re),$(je),$(X),$(se),L(ce=>{Se(xe,ce),pe(he,"style",`background-image: url('${l()}')`),ne(te,"withOpacity",n()),Se(Y,a())},[()=>j("end_screen_next_video")]),x(U,ie)};O(S,U=>{p()||U(q)})}x(t,H);var W=E({get title(){return a()},set title(U){a(U),d()},get thumb(){return l()},set thumb(U){l(U),d()},get clickCloseIcon(){return c()},set clickCloseIcon(U){c(U),d()},get isHide(){return p()},set isHide(U){p(U),d()},$set:A,$on:(U,ie)=>P(e,U,ie)});return o(),W}pt(["click"]);import{PlaybackState as ua}from"@vkontakte/videoplayer-core/evergreen";import{checkNever as O1}from"@vkontakte/videoplayer-shared/evergreen";import{SeekAction as nn}from"@vkontakte/videoplayer-statistics/evergreen";var om=(t,e)=>Math.min(+(t+e).toFixed(2),1),nm=(t,e)=>Math.max(+(t-e).toFixed(2),0),Bd=(t,e,i)=>{let o=om(e,i);e<1&&t.actions.internal.setVolume(o)},Dd=(t,e,i)=>{let o=nm(e,i);e>0&&t.actions.internal.setVolume(o)};var Rs=({isAudioDisabled:t,audioDisabledHintCallback:e,isAudioAvailable:i,audioIsNotExistHintCallback:o})=>t?(e?.(),!1):i?!0:(o?.(),!1);var H1=D('<div class="keyboard-controls svelte-10kkmxz" tabindex="-1" role="region"><!></div>'),F1={hash:"svelte-10kkmxz",code:".keyboard-controls.svelte-10kkmxz {position:absolute;left:0;right:0;top:0;bottom:0;}"};function Od(t,e){if(new.target)return T({component:Od,...t});I(e,!0),oe(t,F1);let[i,o]=Je(),n=()=>C(X,"$playbackState$",i),s=()=>C(me,"$adPlaybackState",i),a=()=>C(z,"$disabledControls$",i),l=()=>C(he,"$positionExact$",i),c=()=>C(te,"$duration$",i),p=()=>C(Me,"$isAudioAvailable$",i),f=()=>C(le,"$volume$",i),v=()=>C(ce,"$availablePlaybackRates$",i),m=()=>C(Y,"$currentPlaybackRate$",i),g=()=>C(ct,"$isInteractiveTime$",i),b=()=>C(_e,"$showInteractiveTimeIndicatorTooltip$",i),w=()=>C(We,"$isEnded$",i),k=()=>C(je,"$muted$",i),V=()=>C(Re,"$currentSubtitle$",i),F=()=>C(rt,"$overlayContainer$",i),M=u(e,"isAds",7),H=u(e,"hideContextMenu",7),S=u(e,"toggleFullscreen",7),q=u(e,"showHotKeyHelpers",7),W=u(e,"showKeyMap",7),U=u(e,"fakePlayButtonHandler",7),ie=u(e,"children",7),se=u(e,"nextButtonActive",7,!1),fe=u(e,"prevButtonActive",7,!1),J=Be(),xe=Qt(),Ce=J.getLogger().createComponentLog("KeyboardControls component"),X=J.state.playbackState$,me=J.ads.playbackState,he=J.state.positionExact$,te=J.state.duration$,le=J.state.volume$,z=J.ui.controls.disabledControls$,je=J.state.muted$,Re=J.state.currentSubtitle$,Y=J.state.currentPlaybackRate$,ce=J.state.availablePlaybackRates$,Ge=J.ui.contextMenu.openedByHotKey$,G=J.ui.contextMenu.lastActiveElem$,Ve=J.ui.contextMenu.visible$,ue=J.ui.contextMenu.position$,We=J.state.isEnded$,rt=J.ui.overlayContainer$,Ue=J.callbacks?.onAudioDoesNotExistHint,we=J.callbacks?.onAudioDisabledHint,Me=J.state.isAudioAvailable$,st=J.state.isAudioDisabled,ct=J.state.isInteractiveTime$,{showInteractiveTimeIndicatorTooltip$:_e}=go(),et=0,yt=!0,ee=de(void 0),tt=()=>r(ee)?.focus(),$t=ae=>(ae!==yt&&(yt=ae,et=0),et+=1,(xe.controls.seekStepKeyboard+xe.controls.seekStepKeyboard*et)/1e3),dt=ae=>{let gt=ae.target,Ze=gt?.getAttribute("role")?.includes("menuitem"),Tt=gt.classList.contains("btn"),Vt=ae.code;if(Tt&&Vt==="Space")return;let Zt=ng.has(Vt);if(Ze&&Zt)return;let at=!og.has(Vt);if(ae.ctrlKey&&at||ae.altKey&&at||ae.metaKey)return;let bt=Ze&&Vt==="Escape";rg.has(Vt)||bt||H()();let Rt=n()===ua.PLAYING||n()===ua.PAUSED,Lt=M()&&(s()==="paused"||s()==="playing"),Xe=!Lt&&!a().has("TIMELINE");if(Rt||Lt)switch(Ce({message:`key down, code: ${Vt}`}),Vt){case"KeyJ":case"ArrowLeft":{if(!Xe)break;if(ae.ctrlKey||ae.altKey){let lt=J.actions.internal.getPrevEpisode();J.actions.internal.seekToPrevEpisode(lt),lt&&q()({type:"EPISODE_PREV",text:lt.text}),ae.preventDefault()}else{let lt=ae.shiftKey?$t(!1):xe.controls.seekStepKeyboard/1e3,Nt=Math.max(l()-lt,0);l()>0&&(J.actions.internal.seekTime(Nt,nn.DOUBLE_TAP),q()({type:"BACKWARD_SEEK",text:lt.toString()}),ae.preventDefault())}break}case"KeyL":case"ArrowRight":{if(!Xe)break;if(ae.ctrlKey||ae.altKey){let lt=J.actions.internal.getNextEpisode();J.actions.internal.seekToNextEpisode(lt),lt&&q()({type:"EPISODE_NEXT",text:lt.text}),ae.preventDefault()}else{let lt=ae.shiftKey?$t(!0):xe.controls.seekStepKeyboard/1e3,Nt=Math.min(l()+lt,c());Math.round(l())<Math.round(c())&&(J.actions.internal.seekTime(Nt,nn.DOUBLE_TAP),q()({type:"FORWARD_SEEK",text:lt.toString()}),ae.preventDefault())}break}case"ArrowUp":{if(Rs({isAudioDisabled:st,audioDisabledHintCallback:we,isAudioAvailable:p(),audioIsNotExistHintCallback:Ue})){let lt=f(),Nt=xe.controls.volumeStepKeyboard,ii=lt<=1;if(Bd(J,lt,Nt),ii){let gi=Math.round(om(lt,Nt)*100).toString();q()({type:"VOLUME",t:{key:"hotkey_helper_current_volume",value:gi}})}}ae.preventDefault();break}case"ArrowDown":{if(Rs({isAudioDisabled:st,audioDisabledHintCallback:we,isAudioAvailable:p(),audioIsNotExistHintCallback:Ue})){let lt=f(),Nt=xe.controls.volumeStepKeyboard,ii=lt>=0;if(Dd(J,lt,Nt),ii){let gi=Math.round(nm(lt,Nt)*100).toString();q()({type:"VOLUME",t:{key:"hotkey_helper_current_volume",value:gi}})}}ae.preventDefault();break}case"Comma":{if(ae.shiftKey){J.actions.internal.decrementPlaybackRate();let lt=v().find(Nt=>Nt.value===m());q()({type:"RATE_DOWN",text:lt?.displayValue}),ae.preventDefault()}else{if(Lt||n()!==ua.PAUSED)break;let lt=Math.max(l()-xe.controls.seekStepFrame/1e3,0);l()>0&&(q()({type:"BACKWARD_SEEK"}),J.actions.internal.clearDelayedBufferingCheckTimeout(),J.actions.internal.seekTime(lt,nn.DOUBLE_TAP),ae.preventDefault())}break}case"Period":{if(ae.shiftKey){J.actions.internal.incrementPlaybackRate();let lt=v().find(Nt=>Nt.value===m());q()({type:"RATE_UP",text:lt?.displayValue}),ae.preventDefault()}else{if(Lt||n()!==ua.PAUSED)break;let lt=Math.min(l()+xe.controls.seekStepFrame/1e3,c());l()<c()&&(q()({type:"FORWARD_SEEK"}),J.actions.internal.clearDelayedBufferingCheckTimeout(),J.actions.internal.seekTime(lt,nn.DOUBLE_TAP),ae.preventDefault())}break}case"KeyK":case"Space":if(!a().has("PLAY_BUTTON"))if(g()&&b()&&_e.set(!1),U())U()();else{J.actions.internal.togglePlay();let lt="PLAY";n()===ua.PAUSED?lt="PAUSE":w()&&(lt="REPLAY"),q()({type:lt})}ae.preventDefault();break;case"KeyM":{Rs({isAudioDisabled:st,audioDisabledHintCallback:we,isAudioAvailable:p(),audioIsNotExistHintCallback:Ue})&&(q()({type:k()?"VOLUME":"MUTE"}),J.actions.internal.toggleMuted()),ae.preventDefault();break}case"KeyF":S()(),ae.preventDefault();break;case"KeyC":J.actions.internal.toggleSubtitle(),V().value!=="off"?q()({type:"SUBTITLES_ON",text:V()?.displayValue}):q()({type:"SUBTITLES_OFF"}),ae.preventDefault();break;case"KeyI":J.actions.internal.togglePictureInPicture(),ae.preventDefault();break;case"Digit1":case"Numpad1":if(ae.shiftKey){let lt=eh(F());ue.set(lt),G.set(gt),Ge.set(!0),Ve.set(!0),ae.preventDefault();break}q()(),J.actions.internal.seekToPercent(.1,nn.DOUBLE_TAP),ae.preventDefault();break;case"Digit2":case"Numpad2":q()(),J.actions.internal.seekToPercent(.2,nn.DOUBLE_TAP),ae.preventDefault();break;case"Digit3":case"Numpad3":q()(),J.actions.internal.seekToPercent(.3,nn.DOUBLE_TAP),ae.preventDefault();break;case"Digit4":case"Numpad4":q()(),J.actions.internal.seekToPercent(.4,nn.DOUBLE_TAP),ae.preventDefault();break;case"Digit5":case"Numpad5":q()(),J.actions.internal.seekToPercent(.5,nn.DOUBLE_TAP),ae.preventDefault();break;case"Digit6":case"Numpad6":q()(),J.actions.internal.seekToPercent(.6,nn.DOUBLE_TAP),ae.preventDefault();break;case"Digit7":case"Numpad7":q()(),J.actions.internal.seekToPercent(.7,nn.DOUBLE_TAP),ae.preventDefault();break;case"Digit8":case"Numpad8":q()(),J.actions.internal.seekToPercent(.8,nn.DOUBLE_TAP),ae.preventDefault();break;case"Digit9":case"Numpad9":q()(),J.actions.internal.seekToPercent(.9,nn.DOUBLE_TAP),ae.preventDefault();break;case"Digit0":case"Numpad0":q()(),J.actions.internal.seekToPercent(0,nn.DOUBLE_TAP),ae.preventDefault();break;case"Slash":{ae.shiftKey&&xe.features.hotKeyMapModal&&(W()(),ae.preventDefault());break}case"KeyN":ae.shiftKey&&se()&&J.actions.internal.nextVideoClick();break;case"KeyP":ae.shiftKey&&fe()&&J.actions.internal.prevVideoClick();break;case"ShiftLeft":case"ShiftRight":ae.preventDefault();break;case"Tab":case"Escape":case"Enter":break;default:O1(Vt);break}},ge=ae=>{let gt=ae.code;if(ae.ctrlKey||ae.altKey||ae.metaKey)return;let Ze=n()===ua.PLAYING||n()===ua.PAUSED,Tt=M()&&(s()==="paused"||s()==="playing");if(Ze||Tt)switch(gt){case"ShiftLeft":case"ShiftRight":et=0;break}},Pe=j("aria_label_video_player");var $e=H1();$e.__keyup=ge,$e.__keydown=dt,pe($e,"aria-label",Pe);var Qe=y($e);oo(Qe,()=>ie()??Ht),$($e),vt($e,ae=>K(ee,ae),()=>r(ee)),x(t,$e);var ze=E({focus:tt,get isAds(){return M()},set isAds(ae){M(ae),d()},get hideContextMenu(){return H()},set hideContextMenu(ae){H(ae),d()},get toggleFullscreen(){return S()},set toggleFullscreen(ae){S(ae),d()},get showHotKeyHelpers(){return q()},set showHotKeyHelpers(ae){q(ae),d()},get showKeyMap(){return W()},set showKeyMap(ae){W(ae),d()},get fakePlayButtonHandler(){return U()},set fakePlayButtonHandler(ae){U(ae),d()},get children(){return ie()},set children(ae){ie(ae),d()},get nextButtonActive(){return se()},set nextButtonActive(ae=!1){se(ae),d()},get prevButtonActive(){return fe()},set prevButtonActive(ae=!1){fe(ae),d()},$set:A,$on:(ae,gt)=>P(e,ae,gt)});return o(),ze}pt(["keyup","keydown"]);var U1=D('<div class="container svelte-1dbnjb1"><div class="dot svelte-1dbnjb1"></div> <div class="dot svelte-1dbnjb1"></div> <div class="dot svelte-1dbnjb1"></div></div>'),z1={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||""} ${(r(l).audioLanguage?`(${r(l).audioLanguage})`:"")??""}`)),b(W,re)};V(se,W=>{(r(l).videoCodec||r(l).audioCodec)&&W(He)})}var j=E(se,2);{var B=W=>{var re=f_(),ne=E(h(re),2),Fe=h(ne,!0);g(ne),g(re),C(()=>de(Fe,r(l).viewport)),b(W,re)};V(j,W=>{r(l).viewport&&W(B)})}var Re=E(j,2);{var _e=W=>{var re=m_(),ne=E(h(re),2),Fe=h(ne,!0);g(ne),g(re),C(()=>de(Fe,r(l).videoSize)),b(W,re)};V(Re,W=>{r(l).videoSize&&W(_e)})}var Ce=E(Re,2);{var Be=W=>{var re=v_(),ne=E(h(re),2),Fe=h(ne,!0);g(ne),g(re),C(()=>de(Fe,r(l).cdn)),b(W,re)};V(Ce,W=>{r(l).cdn&&W(Be)})}var ue=E(Ce,2);{var R=W=>{var re=g_(),ne=E(h(re),2),Fe=h(ne);g(ne),g(re),C(()=>de(Fe,`${r(l).volume??""} %`)),b(W,re)};V(ue,W=>{r(l).volume&&W(R)})}var be=E(ue,2);{var Ie=W=>{var re=h_(),ne=E(h(re),2),Fe=h(ne);g(ne),g(re),C(Ge=>de(Fe,`${Ge??""} s`),[()=>r(l).buffer.toFixed(2)]),b(W,re)};V(be,W=>{r(l).buffer&&W(Ie)})}var je=E(be,2);{var qe=W=>{var re=__(),ne=E(h(re),2),Fe=h(ne);g(ne),g(re),C(Ge=>de(Fe,`${Ge??""} s`),[()=>r(l).liveLatency.toFixed(2)]),b(W,re)};V(je,W=>{r(l).liveLatency&&W(qe)})}var ke=E(je,2);{var Pe=W=>{var re=b_(),ne=E(h(re),2),Fe=h(ne,!0);g(ne),g(re),C(Ge=>de(Fe,Ge),[()=>[{value:r(l).currentVideoSegmentLength,title:"Video:"},{value:r(l).currentAudioSegmentLength,title:"Audio:"}].filter(({value:Ge})=>Ge).map(({value:Ge,title:yt})=>`${yt} ${((Ge??0)/1e3).toFixed(2)} s`).join(" & ")]),b(W,re)};V(ke,W=>{(r(l).currentVideoSegmentLength||r(l).currentAudioSegmentLength)&&W(Pe)})}var Ve=E(ke,2),ct=E(h(Ve),2),gt=h(ct);g(ct),g(Ve);var ot=E(Ve,2);{var kt=W=>{var re=$_(),ne=E(h(re),2);Sl(ne,{get values(){return r(I)}});var Fe=E(ne,2),Ge=h(Fe);g(Fe),g(re),C(yt=>de(Ge,`${yt??""} Kbps`),[()=>r(l).speed.toFixed(2)]),b(W,re)};V(ot,W=>{r(l).speed&&W(kt)})}var nt=E(ot,2);{var ut=W=>{var re=y_(),ne=E(h(re),2);Sl(ne,{get values(){return r(L)}});var Fe=E(ne,2),Ge=h(Fe);g(Fe),g(re),C(yt=>de(Ge,`${yt??""} Kbps`),[()=>r(l).bitrate.toFixed(2)]),b(W,re)};V(nt,W=>{r(l).bitrate&&W(ut)})}var Et=E(nt,2),we=E(h(Et),2);Sl(we,{get values(){return r(S)}});var Ne=E(we,2),Ye=h(Ne,!0);g(Ne),g(Et),g(Q),g(P),C(W=>{T=Z(P,1,"container svelte-4deykz",null,T,W),de(ie,r(l).version),de(gt,`${r(_)??""} / ${r(u)??""} frames`),de(Ye,r(f))},[()=>({"container-mobile":n()})]),b(t,P),U(),o()}it(["click"]);import{noop as S_}from"@vkontakte/videoplayer-shared/evergreen";var C_=(t,e)=>{t.stopPropagation(),e()()},k_=M('<div class="close svelte-1ome55p"></div>'),T_={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 Oa(t,e){F(e,!0),q(t,T_);let i=v(e,"onClick",3,S_);var o=k_();o.__click=[C_,i],b(t,o),U()}it(["click"]);import{noop as I_}from"@vkontakte/videoplayer-shared/evergreen";var E_=M('<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>'),A_={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 kl(t,e){F(e,!0),q(t,A_);let i=v(e,"isRunning",3,!0),o=v(e,"onTimerEnded",3,I_),n=5e3,a=Y(void 0),s,d,l=Y(0),c;Qe(()=>{i()&&(d=Date.now(),N(l,le(requestAnimationFrame(u))))});let u=()=>{i()&&(c=(Date.now()-d)/n,c<1?(s?.clearRect(0,0,100,100),s?.beginPath(),s?.arc(50,50,47,-Math.PI/2,-Math.PI/2+Math.PI*2*c),s?.stroke(),N(l,le(requestAnimationFrame(u)))):o()())};It(()=>{if(s=r(a).getContext("2d"),!!s)return s.lineWidth=6,s.lineCap="round",s.strokeStyle="#fff",()=>{cancelAnimationFrame(r(l))}});var _=E_(),f=h(_);at(f,y=>N(a,y),()=>r(a)),fe(2),g(_),b(t,_),U()}var P_=(t,e,i)=>{e(!1),i()},M_=M('<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),L_={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 bp(t,e){F(e,!0),q(t,L_);let[i,o]=Oe(),n=()=>$(d,"$autoplayNextEnabled$",i),a=()=>$(l,"$timerNextVideoRunning$",i),s=ye(),d=s.ui.autoplayNextEnabled$,l=s.ui.timerNextVideoRunning$,c=s.actions.internal.nextVideoClick,u=s.actions.internal.nextVideoAnnouncementShow,_=s.actions.internal.nextVideoAnnouncementClick,f=s.actions.internal.nextVideoAnnouncementAuto,y=s.actions.internal.nextVideoAnnouncementCancel,x=()=>{c(!1),f()},w=()=>{e.clickCloseIcon(),y()};It(()=>{e.isHide||u(),e.isHide&&n()&&(c(!1),f())});var S=ze(),I=pe(S);{var L=A=>{var P=M_(),T=E(pe(P),2),D=h(T),Q=h(D),G=h(Q,!0);g(Q);var ee=E(Q,2);Oa(ee,{onClick:w}),g(D);var ie=E(D,2);ie.__click=[P_,c,_];var oe=h(ie),te=h(oe),ge=h(te);let X;var Le=E(ge,2);{var Ae=B=>{kl(B,{get isRunning(){return a()},onTimerEnded:x})};V(Le,B=>{n()&&B(Ae)})}g(te),g(oe);var se=E(oe,2),He=h(se),j=h(He,!0);g(He),g(se),g(ie),g(T),C((B,Re)=>{de(G,B),tt(te,`background-image: url('${e.thumb}')`),X=Z(ge,1,"thumb-overlay svelte-jfbaax",null,X,Re),de(j,e.title)},[()=>H("end_screen_next_video"),()=>({withOpacity:n()})]),b(A,P)};V(I,A=>{e.isHide||A(L)})}b(t,S),U(),o()}it(["click"]);import{PlaybackState as Ha}from"@vkontakte/videoplayer-core/evergreen";import{checkNever as R_}from"@vkontakte/videoplayer-shared/evergreen";import{SeekAction as on}from"@vkontakte/videoplayer-statistics/evergreen";var $p=(t,e)=>Math.min(+(t+e).toFixed(2),1),yp=(t,e)=>Math.max(+(t-e).toFixed(2),0),vc=(t,e,i)=>{let o=$p(e,i);e<1&&t.actions.internal.setVolume(o)},gc=(t,e,i)=>{let o=yp(e,i);e>0&&t.actions.internal.setVolume(o)};var ua=({isAudioDisabled:t,audioDisabledHintCallback:e,isAudioAvailable:i,audioIsNotExistHintCallback:o})=>t?(e?.(),!1):i?!0:(o?.(),!1);var B_=M('<div class="keyboard-controls svelte-10kkmxz" tabindex="-1" role="region"><!></div>'),N_={hash:"svelte-10kkmxz",code:".keyboard-controls.svelte-10kkmxz {position:absolute;left:0;right:0;top:0;bottom:0;}"};function xp(t,e){F(e,!0),q(t,N_);let[i,o]=Oe(),n=()=>$(G,"$playbackState$",i),a=()=>$(ee,"$adPlaybackState",i),s=()=>$(ge,"$disabledControls$",i),d=()=>$(ie,"$positionExact$",i),l=()=>$(oe,"$duration$",i),c=()=>$(R,"$isAudioAvailable$",i),u=()=>$(te,"$volume$",i),_=()=>$(se,"$availablePlaybackRates$",i),f=()=>$(Ae,"$currentPlaybackRate$",i),y=()=>$(Ie,"$isInteractiveTime$",i),x=()=>$(je,"$showInteractiveTimeIndicatorTooltip$",i),w=()=>$(_e,"$isEnded$",i),S=()=>$(X,"$muted$",i),I=()=>$(Le,"$currentSubtitle$",i),L=()=>$(Ce,"$overlayContainer$",i),A=v(e,"nextButtonActive",3,!1),P=v(e,"prevButtonActive",3,!1),T=ye(),D=Vt(),Q=T.getLogger().createComponentLog("KeyboardControls component"),G=T.state.playbackState$,ee=T.ads.playbackState,ie=T.state.positionExact$,oe=T.state.duration$,te=T.state.volume$,ge=T.ui.controls.disabledControls$,X=T.state.muted$,Le=T.state.currentSubtitle$,Ae=T.state.currentPlaybackRate$,se=T.state.availablePlaybackRates$,He=T.ui.contextMenu.openedByHotKey$,j=T.ui.contextMenu.lastActiveElem$,B=T.ui.contextMenu.visible$,Re=T.ui.contextMenu.position$,_e=T.state.isEnded$,Ce=T.ui.overlayContainer$,Be=T.callbacks?.onAudioDoesNotExistHint,ue=T.callbacks?.onAudioDisabledHint,R=T.state.isAudioAvailable$,be=T.state.isAudioDisabled,Ie=T.state.isInteractiveTime$,{showInteractiveTimeIndicatorTooltip$:je}=Hi(),qe=0,ke=!0,Pe=Y(void 0),Ve=()=>r(Pe)?.focus(),ct=we=>(we!==ke&&(ke=we,qe=0),qe+=1,(D.controls.seekStepKeyboard+D.controls.seekStepKeyboard*qe)/1e3),gt=we=>{let Ne=we.target,Ye=Ne?.getAttribute("role")?.includes("menuitem"),W=Ne.classList.contains("btn"),re=we.code;if(W&&re==="Space")return;let ne=Jv.has(re);if(Ye&&ne)return;let Fe=!Xv.has(re);if(we.ctrlKey&&Fe||we.altKey&&Fe||we.metaKey)return;let Ge=Ye&&re==="Escape";eg.has(re)||Ge||e.hideContextMenu();let yt=n()===Ha.PLAYING||n()===Ha.PAUSED,Ke=e.isAds&&(a()==="paused"||a()==="playing"),Ze=!Ke&&!s().has("TIMELINE");if(yt||Ke)switch(Q({message:`key down, code: ${re}`}),re){case"KeyJ":case"ArrowLeft":{if(!Ze)break;if(we.ctrlKey||we.altKey){let Ee=T.actions.internal.getPrevEpisode();T.actions.internal.seekToPrevEpisode(Ee),Ee&&e.showHotKeyHelpers({type:"EPISODE_PREV",text:Ee.text}),we.preventDefault()}else{let Ee=we.shiftKey?ct(!1):D.controls.seekStepKeyboard/1e3,dt=Math.max(d()-Ee,0);d()>0&&(T.actions.internal.seekTime(dt,on.DOUBLE_TAP),e.showHotKeyHelpers({type:"BACKWARD_SEEK",text:Ee.toString()}),we.preventDefault())}break}case"KeyL":case"ArrowRight":{if(!Ze)break;if(we.ctrlKey||we.altKey){let Ee=T.actions.internal.getNextEpisode();T.actions.internal.seekToNextEpisode(Ee),Ee&&e.showHotKeyHelpers({type:"EPISODE_NEXT",text:Ee.text}),we.preventDefault()}else{let Ee=we.shiftKey?ct(!0):D.controls.seekStepKeyboard/1e3,dt=Math.min(d()+Ee,l());Math.round(d())<Math.round(l())&&(T.actions.internal.seekTime(dt,on.DOUBLE_TAP),e.showHotKeyHelpers({type:"FORWARD_SEEK",text:Ee.toString()}),we.preventDefault())}break}case"ArrowUp":{if(ua({isAudioDisabled:be,audioDisabledHintCallback:ue,isAudioAvailable:c(),audioIsNotExistHintCallback:Be})){let Ee=u(),dt=D.controls.volumeStepKeyboard,Rt=Ee<=1;if(vc(T,Ee,dt),Rt){let Gt=Math.round($p(Ee,dt)*100).toString();e.showHotKeyHelpers({type:"VOLUME",t:{key:"hotkey_helper_current_volume",value:Gt}})}}we.preventDefault();break}case"ArrowDown":{if(ua({isAudioDisabled:be,audioDisabledHintCallback:ue,isAudioAvailable:c(),audioIsNotExistHintCallback:Be})){let Ee=u(),dt=D.controls.volumeStepKeyboard,Rt=Ee>=0;if(gc(T,Ee,dt),Rt){let Gt=Math.round(yp(Ee,dt)*100).toString();e.showHotKeyHelpers({type:"VOLUME",t:{key:"hotkey_helper_current_volume",value:Gt}})}}we.preventDefault();break}case"Comma":{if(we.shiftKey){T.actions.internal.decrementPlaybackRate();let Ee=_().find(dt=>dt.value===f());e.showHotKeyHelpers({type:"RATE_DOWN",text:Ee?.displayValue}),we.preventDefault()}else{if(Ke||n()!==Ha.PAUSED)break;let Ee=Math.max(d()-D.controls.seekStepFrame/1e3,0);d()>0&&(e.showHotKeyHelpers({type:"BACKWARD_SEEK"}),T.actions.internal.clearDelayedBufferingCheckTimeout(),T.actions.internal.seekTime(Ee,on.DOUBLE_TAP),we.preventDefault())}break}case"Period":{if(we.shiftKey){T.actions.internal.incrementPlaybackRate();let Ee=_().find(dt=>dt.value===f());e.showHotKeyHelpers({type:"RATE_UP",text:Ee?.displayValue}),we.preventDefault()}else{if(Ke||n()!==Ha.PAUSED)break;let Ee=Math.min(d()+D.controls.seekStepFrame/1e3,l());d()<l()&&(e.showHotKeyHelpers({type:"FORWARD_SEEK"}),T.actions.internal.clearDelayedBufferingCheckTimeout(),T.actions.internal.seekTime(Ee,on.DOUBLE_TAP),we.preventDefault())}break}case"KeyK":case"Space":if(!s().has("PLAY_BUTTON"))if(y()&&x()&&je.set(!1),e.fakePlayButtonHandler)e.fakePlayButtonHandler();else{T.actions.internal.togglePlay();let Ee="PLAY";n()===Ha.PAUSED?Ee="PAUSE":w()&&(Ee="REPLAY"),e.showHotKeyHelpers({type:Ee})}we.preventDefault();break;case"KeyM":{ua({isAudioDisabled:be,audioDisabledHintCallback:ue,isAudioAvailable:c(),audioIsNotExistHintCallback:Be})&&(e.showHotKeyHelpers({type:S()?"VOLUME":"MUTE"}),T.actions.internal.toggleMuted()),we.preventDefault();break}case"KeyF":e.toggleFullscreen(),we.preventDefault();break;case"KeyC":T.actions.internal.toggleSubtitle(),I().value!=="off"?e.showHotKeyHelpers({type:"SUBTITLES_ON",text:I()?.displayValue}):e.showHotKeyHelpers({type:"SUBTITLES_OFF"}),we.preventDefault();break;case"KeyI":T.actions.internal.togglePictureInPicture(),we.preventDefault();break;case"Digit1":case"Numpad1":if(we.shiftKey){let Ee=Gg(L());Re.set(Ee),j.set(Ne),He.set(!0),B.set(!0),we.preventDefault();break}e.showHotKeyHelpers(),T.actions.internal.seekToPercent(.1,on.DOUBLE_TAP),we.preventDefault();break;case"Digit2":case"Numpad2":e.showHotKeyHelpers(),T.actions.internal.seekToPercent(.2,on.DOUBLE_TAP),we.preventDefault();break;case"Digit3":case"Numpad3":e.showHotKeyHelpers(),T.actions.internal.seekToPercent(.3,on.DOUBLE_TAP),we.preventDefault();break;case"Digit4":case"Numpad4":e.showHotKeyHelpers(),T.actions.internal.seekToPercent(.4,on.DOUBLE_TAP),we.preventDefault();break;case"Digit5":case"Numpad5":e.showHotKeyHelpers(),T.actions.internal.seekToPercent(.5,on.DOUBLE_TAP),we.preventDefault();break;case"Digit6":case"Numpad6":e.showHotKeyHelpers(),T.actions.internal.seekToPercent(.6,on.DOUBLE_TAP),we.preventDefault();break;case"Digit7":case"Numpad7":e.showHotKeyHelpers(),T.actions.internal.seekToPercent(.7,on.DOUBLE_TAP),we.preventDefault();break;case"Digit8":case"Numpad8":e.showHotKeyHelpers(),T.actions.internal.seekToPercent(.8,on.DOUBLE_TAP),we.preventDefault();break;case"Digit9":case"Numpad9":e.showHotKeyHelpers(),T.actions.internal.seekToPercent(.9,on.DOUBLE_TAP),we.preventDefault();break;case"Digit0":case"Numpad0":e.showHotKeyHelpers(),T.actions.internal.seekToPercent(0,on.DOUBLE_TAP),we.preventDefault();break;case"Slash":{we.shiftKey&&D.features.hotKeyMapModal&&(e.showKeyMap(),we.preventDefault());break}case"KeyN":we.shiftKey&&A()&&T.actions.internal.nextVideoClick();break;case"KeyP":we.shiftKey&&P()&&T.actions.internal.prevVideoClick();break;case"ShiftLeft":case"ShiftRight":we.preventDefault();break;case"Tab":case"Escape":case"Enter":break;default:R_(re);break}},ot=we=>{let Ne=we.code;if(we.ctrlKey||we.altKey||we.metaKey)return;let Ye=n()===Ha.PLAYING||n()===Ha.PAUSED,W=e.isAds&&(a()==="paused"||a()==="playing");if(Ye||W)switch(Ne){case"ShiftLeft":case"ShiftRight":qe=0;break}},kt=H("aria_label_video_player");var nt=B_();nt.__keyup=ot,nt.__keydown=gt,Me(nt,"aria-label",kt);var ut=h(nt);ce(ut,()=>e.children??J),g(nt),at(nt,we=>N(Pe,we),()=>r(Pe)),b(t,nt);var Et=U({focus:Ve});return o(),Et}it(["keyup","keydown"]);var D_=M('<div class="container svelte-1dbnjb1"><div class="dot svelte-1dbnjb1"></div> <div class="dot svelte-1dbnjb1"></div> <div class="dot svelte-1dbnjb1"></div></div>'),O_={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);}
141
144
 
142
145
  @keyframes svelte-1dbnjb1-dot_animation {
143
146
  0% {
@@ -150,7 +153,7 @@ Try switching the\xA0quality to\xA0Auto.`},Lg=C$;var gs=new Map;gs.set(Vg.EN,Lg)
150
153
  opacity: 0.2;
151
154
  }
152
155
  }.dot.svelte-1dbnjb1 {border-radius:4px;width:8px;height:8px;background:var(--btn-color);animation-duration:750ms;
153
- animation-name: svelte-1dbnjb1-dot_animation;animation-iteration-count:infinite;}.dot.svelte-1dbnjb1 + .dot:where(.svelte-1dbnjb1) {margin-left:4px;}`};function Vs(t,e){if(new.target)return T({component:Vs,...t});I(e,!0),oe(t,z1);let i=u(e,"style",7,"");var o=U1();return L(()=>pe(o,"style",i())),x(t,o),E({get style(){return i()},set style(n=""){i(n),d()},$set:A,$on:(n,s)=>P(e,n,s)})}var W1=Ie('<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 Hd(t,e){if(new.target)return T({component:Hd,...t});let i=Oe(e,["children","$$slots","$$events","$$legacy"]);I(e,!1);var o=W1();let n;var s=y(o);return De(s,e,"default",{},null),Te(2),$(o),L(()=>n=Le(o,n,{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none","aria-hidden":"true","data-testid":"cross-icon",role:"img",...i},void 0,!0)),x(t,o),E({$set:A,$on:(a,l)=>P(e,a,l)})}import{noop as hs}from"@vkontakte/videoplayer-shared/evergreen";var q1=t=>{t.stopPropagation()},K1=D("<button><!></button>"),Q1={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;}
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){q(t,O_);let i=v(e,"style",3,"");var o=D_();C(()=>tt(o,i())),b(t,o)}var H_=me('<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 wp(t,e){let i=xe(e,["$$slots","$$events","$$legacy","children"]);var o=H_();let n;var a=h(o);ce(a,()=>e.children??J),fe(2),g(o),C(()=>n=he(o,n,{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none","aria-hidden":"true","data-testid":"cross-icon",role:"img",...i})),b(t,o)}import{noop as Ts}from"@vkontakte/videoplayer-shared/evergreen";var F_=t=>{t.stopPropagation()},U_=M("<button><!></button>"),z_={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;}
154
157
 
155
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;}
156
159
 
@@ -158,22 +161,22 @@ Try switching the\xA0quality to\xA0Auto.`},Lg=C$;var gs=new Map;gs.set(Vg.EN,Lg)
158
161
  /* mobile */
159
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,
160
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;
161
- /* \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 Mt(t,e){if(new.target)return T({component:Mt,...t});I(e,!0),oe(t,Q1);let i=u(e,"className",7,""),o=u(e,"style",7,""),n=u(e,"disabled",7,void 0),s=u(e,"testId",7,void 0),a=u(e,"ariaHidden",7,void 0),l=u(e,"ariaLabel",7,void 0),c=u(e,"ref",15,void 0),p=u(e,"ariaKeyShortCut",7,void 0),f=u(e,"ariaExpanded",7,void 0),v=u(e,"tabIndex",7,0),m=u(e,"click",7,hs),g=u(e,"focus",7,hs),b=u(e,"blur",7,hs),w=u(e,"children",7),k=_(()=>m()===hs?null:S=>{S.stopPropagation(),m()(S)}),V=_(()=>g()===hs?null:S=>{S.preventDefault(),g()()}),F=_(()=>b()===hs?null:S=>{S.preventDefault(),b()()});var M=K1();M.__pointerdown=[q1],M.__click=function(...S){r(k)?.apply(this,S)};var H=y(M);return oo(H,()=>w()??Ht),$(M),vt(M,S=>c(S),()=>c()),L(()=>{Uo(M,`btn ${i()??""} svelte-wr0kwr`),pe(M,"style",o()||null),M.disabled=n()??null,pe(M,"aria-hidden",a()??null),pe(M,"aria-label",l()??null),pe(M,"aria-keyshortcuts",p()??null),pe(M,"aria-expanded",f()??null),pe(M,"data-testid",s()??null),pe(M,"tabindex",v())}),Dt("focus",M,function(...S){r(V)?.apply(this,S)}),Dt("blur",M,function(...S){r(F)?.apply(this,S)}),x(t,M),E({get className(){return i()},set className(S=""){i(S),d()},get style(){return o()},set style(S=""){o(S),d()},get disabled(){return n()},set disabled(S=void 0){n(S),d()},get testId(){return s()},set testId(S=void 0){s(S),d()},get ariaHidden(){return a()},set ariaHidden(S=void 0){a(S),d()},get ariaLabel(){return l()},set ariaLabel(S=void 0){l(S),d()},get ref(){return c()},set ref(S=void 0){c(S),d()},get ariaKeyShortCut(){return p()},set ariaKeyShortCut(S=void 0){p(S),d()},get ariaExpanded(){return f()},set ariaExpanded(S=void 0){f(S),d()},get tabIndex(){return v()},set tabIndex(S=0){v(S),d()},get click(){return m()},set click(S=hs){m(S),d()},get focus(){return g()},set focus(S=hs){g(S),d()},get blur(){return b()},set blur(S=hs){b(S),d()},get children(){return w()},set children(S){w(S),d()},$set:A,$on:(S,q)=>P(e,S,q)})}pt(["pointerdown","click"]);var G1=D('<div class="modal-header svelte-1witlsj"><h3 class="modal-title svelte-1witlsj"> </h3> <!></div>'),Y1=D('<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>'),j1={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 Fd(t,e){if(new.target)return T({component:Fd,...t});I(e,!0),oe(t,j1);let i=u(e,"onClose",7),o=u(e,"showHeader",7,!0),n=u(e,"showCloseCross",7,!0),s=u(e,"title",7),a=u(e,"children",7),l=j("hotkey_map_modal_close_btn_text");var c=Y1(),p=y(c),f=y(p);{var v=w=>{var k=G1(),V=y(k),F=y(V,!0);$(V);var M=N(V,2);{var H=S=>{Mt(S,{get click(){return i()},testId:"close-modal",style:"padding: 0; height: 24px; width: 24px",ariaLabel:l,children:(q,W)=>{Hd(q,{})},$$slots:{default:!0}})};O(M,S=>{n()&&S(H)})}$(k),L(()=>Se(F,s())),x(w,k)};O(f,w=>{o()&&w(v)})}var m=N(f,2),g=y(m),b=y(g);return oo(b,()=>a()??Ht),$(g),$(m),$(p),$(c),x(t,c),E({get onClose(){return i()},set onClose(w){i(w),d()},get showHeader(){return o()},set showHeader(w=!0){o(w),d()},get showCloseCross(){return n()},set showCloseCross(w=!0){n(w),d()},get title(){return s()},set title(w){s(w),d()},get children(){return a()},set children(w){a(w),d()},$set:A,$on:(w,k)=>P(e,w,k)})}var Z1=new Set(["BR"]),nh=t=>{let e=document.createElement("DIV");e.innerHTML=t;let i=e.querySelectorAll("*"),o=i.length;for(;o--;){let n=i[o],s=n.tagName;Z1.has(s)||n.parentElement?.removeChild(n)}return e.innerHTML};var X1=D('<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>'),J1=D('<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>'),e0=D('<div class="hot-key-map svelte-quklnq"></div>'),t0={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,
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 Ct(t,e){F(e,!0),q(t,z_);let i=v(e,"className",3,""),o=v(e,"style",3,""),n=v(e,"disabled",3,void 0),a=v(e,"testId",3,void 0),s=v(e,"ariaHidden",3,void 0),d=v(e,"ariaLabel",3,void 0),l=v(e,"ref",15,void 0),c=v(e,"ariaKeyShortCut",3,void 0),u=v(e,"ariaExpanded",3,void 0),_=v(e,"tabIndex",3,0),f=v(e,"click",3,Ts),y=v(e,"focus",3,Ts),x=v(e,"blur",3,Ts),w=m(()=>f()===Ts?null:P=>{P.stopPropagation(),f()(P)}),S=m(()=>y()===Ts?null:P=>{P.preventDefault(),y()()}),I=m(()=>x()===Ts?null:P=>{P.preventDefault(),x()()});var L=U_();L.__pointerdown=[F_],L.__click=function(...P){r(w)?.apply(this,P)};var A=h(L);ce(A,()=>e.children??J),g(L),at(L,P=>l(P),()=>l()),C(()=>{Z(L,1,`btn ${i()??""}`,"svelte-wr0kwr"),tt(L,o()||null),L.disabled=n()??null,Me(L,"aria-hidden",s()??null),Me(L,"aria-label",d()??null),Me(L,"aria-keyshortcuts",c()??null),Me(L,"aria-expanded",u()??null),Me(L,"data-testid",a()??null),Me(L,"tabindex",_())}),St("focus",L,function(...P){r(S)?.apply(this,P)}),St("blur",L,function(...P){r(I)?.apply(this,P)}),b(t,L),U()}it(["pointerdown","click"]);var q_=M('<div class="modal-header svelte-1witlsj"><h3 class="modal-title svelte-1witlsj"> </h3> <!></div>'),K_=M('<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>'),W_={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 Sp(t,e){F(e,!0),q(t,W_);let i=v(e,"showHeader",3,!0),o=v(e,"showCloseCross",3,!0),n=H("hotkey_map_modal_close_btn_text");var a=K_(),s=h(a),d=h(s);{var l=f=>{var y=q_(),x=h(y),w=h(x,!0);g(x);var S=E(x,2);{var I=L=>{Ct(L,{get click(){return e.onClose},testId:"close-modal",style:"padding: 0; height: 24px; width: 24px",ariaLabel:n,children:(A,P)=>{wp(A,{})},$$slots:{default:!0}})};V(S,L=>{o()&&L(I)})}g(y),C(()=>de(w,e.title)),b(f,y)};V(d,f=>{i()&&f(l)})}var c=E(d,2),u=h(c),_=h(u);ce(_,()=>e.children??J),g(u),g(c),g(s),g(a),b(t,a),U()}var Q_=new Set(["BR"]),Zg=t=>{let e=document.createElement("DIV");e.innerHTML=t;let i=e.querySelectorAll("*"),o=i.length;for(;o--;){let n=i[o],a=n.tagName;Q_.has(a)||n.parentElement?.removeChild(n)}return e.innerHTML};var G_=M('<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>'),j_=M('<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>'),Y_=M('<div class="hot-key-map svelte-quklnq"></div>'),Z_={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,
162
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,
163
- .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 Ud(t,e){if(new.target)return T({component:Ud,...t});I(e,!1),oe(t,t0);let[i,o]=Je(),n=()=>C(a,"$data",i),s=Be(),{data:a,show:l}=s.ui.modals.hotKeyMap,c=()=>{l.set(!1)};Mr(),Fd(t,{get title(){return n().title},onClose:c,children:(f,v)=>{var m=e0();vi(m,5,()=>n().groups,Fi,(g,b)=>{let w=()=>r(b).title,k=()=>r(b).items;var V=J1(),F=y(V),M=y(F,!0);$(F);var H=N(F,2);vi(H,5,k,Fi,(S,q)=>{let W=()=>r(q).description,U=()=>r(q).value;var ie=X1(),se=y(ie),fe=y(se);Jl(fe,()=>nh(W()),!1,!1),$(se);var J=N(se,2),xe=y(J,!0);$(J),$(ie),L(()=>Se(xe,U())),x(S,ie)}),$(H),$(V),L(()=>Se(M,w())),x(g,V)}),$(m),x(f,m)},$$slots:{default:!0}});var p=E({$set:A,$on:(f,v)=>P(e,f,v)});return o(),p}import{noop as Hu}from"@vkontakte/videoplayer-shared/evergreen";import{ChromecastState as Th,PlaybackState as pm}from"@vkontakte/videoplayer-core/evergreen";import"@vkontakte/videoplayer-shared/evergreen";var i0=D('<div class="pillow svelte-1oe0j8n"><!></div>'),o0={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 zd(t,e){if(new.target)return T({component:zd,...t});I(e,!0),oe(t,o0);let i=u(e,"children",7);var o=i0(),n=y(o);return oo(n,()=>i()??Ht),$(o),x(t,o),E({get children(){return i()},set children(s){i(s),d()},$set:A,$on:(s,a)=>P(e,s,a)})}import{VideoQuality as uc}from"@vkontakte/videoplayer-shared/evergreen";var n0=Ie('<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 Wd(t,e){if(new.target)return T({component:Wd,...t});let i=Oe(e,["children","$$slots","$$events","$$legacy"]);I(e,!1);var o=n0();let n;var s=y(o);return De(s,e,"default",{},null),Te(2),$(o),L(()=>n=Le(o,n,{xmlns:"http://www.w3.org/2000/svg",width:"9",height:"5",fill:"none",role:"img",...i},void 0,!0)),x(t,o),E({$set:A,$on:(a,l)=>P(e,a,l)})}var r0=Ie('<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 qd(t,e){if(new.target)return T({component:qd,...t});let i=Oe(e,["children","$$slots","$$events","$$legacy"]);I(e,!1);var o=r0();let n;var s=y(o);return De(s,e,"default",{},null),Te(2),$(o),L(()=>n=Le(o,n,{xmlns:"http://www.w3.org/2000/svg",width:"9",height:"5",fill:"none",role:"img",...i},void 0,!0)),x(t,o),E({$set:A,$on:(a,l)=>P(e,a,l)})}var s0=Ie('<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 Kd(t,e){if(new.target)return T({component:Kd,...t});let i=Oe(e,["children","$$slots","$$events","$$legacy"]);I(e,!1);var o=s0();let n;var s=y(o);return De(s,e,"default",{},null),Te(),$(o),L(()=>n=Le(o,n,{xmlns:"http://www.w3.org/2000/svg",width:"9",height:"5",fill:"none",role:"img",...i},void 0,!0)),x(t,o),E({$set:A,$on:(a,l)=>P(e,a,l)})}var a0=Ie('<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 il(t,e){if(new.target)return T({component:il,...t});let i=Oe(e,["children","$$slots","$$events","$$legacy"]);I(e,!1);var o=a0();let n;var s=y(o);return De(s,e,"default",{},null),Te(),$(o),L(()=>n=Le(o,n,{xmlns:"http://www.w3.org/2000/svg",width:"13",height:"5",fill:"none",role:"img",...i},void 0,!0)),x(t,o),E({$set:A,$on:(a,l)=>P(e,a,l)})}var l0=Ie('<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 ol(t,e){if(new.target)return T({component:ol,...t});let i=Oe(e,["children","$$slots","$$events","$$legacy"]);I(e,!1);var o=l0();let n;var s=y(o);return De(s,e,"default",{},null),Te(2),$(o),L(()=>n=Le(o,n,{xmlns:"http://www.w3.org/2000/svg",width:"15",height:"7",fill:"none",role:"img",...i},void 0,!0)),x(t,o),E({$set:A,$on:(a,l)=>P(e,a,l)})}var Qd=t=>{switch(t){case uc.Q_720P:return Kd;case uc.Q_1080P:return il;case uc.Q_1440P:return ol;case uc.Q_2160P:return Wd;case uc.Q_4320P:return qd}};var c0=Ie('<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 Gd(t,e){if(new.target)return T({component:Gd,...t});let i=Oe(e,["children","$$slots","$$events","$$legacy"]);I(e,!1);var o=c0();let n;var s=y(o);return De(s,e,"default",{},null),Te(),$(o),L(()=>n=Le(o,n,{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none","aria-hidden":"true","data-testid":"settings-mobile-icon",role:"img",...i},void 0,!0)),x(t,o),E({$set:A,$on:(a,l)=>P(e,a,l)})}var d0=Ie('<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 Yd(t,e){if(new.target)return T({component:Yd,...t});let i=Oe(e,["children","$$slots","$$events","$$legacy"]);I(e,!1);var o=d0();let n;var s=y(o);return De(s,e,"default",{},null),Te(2),$(o),L(()=>n=Le(o,n,{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none","data-testid":"settings-icon",role:"img",...i},void 0,!0)),x(t,o),E({$set:A,$on:(a,l)=>P(e,a,l)})}var u0=D('<div class="icon svelte-8t5w85" aria-hidden="true"><!> <!></div>'),p0={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 nl(t,e){if(new.target)return T({component:nl,...t});I(e,!0),oe(t,p0);let i=u(e,"isMobile",7,!1),o=u(e,"currentQuality",7,void 0),n=_(()=>Qd(o())),s=_(()=>!!r(n)&&[il,ol].includes(r(n)));var a=Ye(),l=ye(a);{var c=f=>{Gd(f,{})},p=f=>{var v=u0(),m=y(v);{var g=k=>{zd(k,{children:(V,F)=>{var M=Ye(),H=ye(M);Si(H,()=>r(n),(S,q)=>{q(S,{})}),x(V,M)},$$slots:{default:!0}})};O(m,k=>{r(n)&&k(g)})}var b=N(m,2);let w=_(()=>r(n)?"settings-icon--labeled":"settings-icon");Yd(b,{get"data-testid"(){return r(w)},fill:"var(--btn-color, #fff)"}),$(v),L(()=>ne(v,"triple",r(s))),x(f,v)};O(l,f=>{i()?f(c):f(p,!1)})}return x(t,a),E({get isMobile(){return i()},set isMobile(f=!1){i(f),d()},get currentQuality(){return o()},set currentQuality(f=void 0){o(f),d()},$set:A,$on:(f,v)=>P(e,f,v)})}var f0=D('<span class="settings-icon-wrapper svelte-d9t49t"><!></span>'),m0={hash:"svelte-d9t49t",code:".settings-icon-wrapper.svelte-d9t49t {position:relative;width:24px;}"};function pa(t,e){if(new.target)return T({component:pa,...t});I(e,!0),oe(t,m0);let[i,o]=Je(),n=()=>C(f,"$settingsMenuVisible",i),s=()=>C(g,"$isMobile",i),a=()=>C(p,"$currentQuality",i),l=u(e,"ref$",7),c=Be(),p=c.state.currentQuality$,f=c.ui.settingsMenu.visible$,v=c.actions.internal.openSettingsMenu,m=c.actions.internal.closeSettingsMenu,g=c.ui.isMobile,b=c.ui.t,w=de(void 0);ot(()=>{l()&&xt(()=>{l().set(r(w))})});let k=_(()=>n()?b("tooltip_settings_on"):b("tooltip_settings_off"));async function V(H){let S=Ms(H);n()?m():v(S,to)}let F=_(()=>n()?"opened":"");Mt(t,{get className(){return r(F)},testId:"btn-settings",click:V,get ariaLabel(){return r(k)},get ariaExpanded(){return n()},get ref(){return r(w)},set ref(H){K(w,ke(H))},children:(H,S)=>{var q=f0(),W=y(q);nl(W,{get isMobile(){return s()},get currentQuality(){return a()}}),$(q),x(H,q)},$$slots:{default:!0}});var M=E({get ref$(){return l()},set ref$(H){l(H),d()},$set:A,$on:(H,S)=>P(e,H,S)});return o(),M}var v0=Ie('<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 jd(t,e){if(new.target)return T({component:jd,...t});let i=Oe(e,["children","$$slots","$$events","$$legacy"]);I(e,!1);var o=v0();let n;var s=y(o);return De(s,e,"default",{},null),Te(),$(o),L(()=>n=Le(o,n,{xmlns:"http://www.w3.org/2000/svg",width:"22",height:"16",fill:"none","aria-hidden":"true","data-testid":"subtitle-pained-icon",role:"img",...i},void 0,!0)),x(t,o),E({$set:A,$on:(a,l)=>P(e,a,l)})}var g0=Ie('<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 rl(t,e){if(new.target)return T({component:rl,...t});let i=Oe(e,["children","$$slots","$$events","$$legacy"]);I(e,!1);var o=g0();let n;var s=y(o);return De(s,e,"default",{},null),Te(),$(o),L(()=>n=Le(o,n,{xmlns:"http://www.w3.org/2000/svg",width:"22",height:"18",fill:"none","aria-hidden":"true","data-testid":"subtitle-empty-icon",role:"img",...i},void 0,!0)),x(t,o),E({$set:A,$on:(a,l)=>P(e,a,l)})}function Zd(t,e){if(new.target)return T({component:Zd,...t});I(e,!0);let i=u(e,"isSubtitlesEnabled",7,!1),o=u(e,"click",7),s=Be().ui.t,a=_(()=>i()?s("tooltip_subtitles_on"):s("tooltip_subtitles_off"));return Mt(t,{testId:"btn-Subtitles",get ariaLabel(){return r(a)},get click(){return o()},get ariaKeyShortCut(){return jr.KeyC},children:(l,c)=>{var p=Ye(),f=ye(p);{var v=g=>{jd(g,{})},m=g=>{rl(g,{})};O(f,g=>{i()?g(v):g(m,!1)})}x(l,p)},$$slots:{default:!0}}),E({get isSubtitlesEnabled(){return i()},set isSubtitlesEnabled(l=!1){i(l),d()},get click(){return o()},set click(l){o(l),d()},$set:A,$on:(l,c)=>P(e,l,c)})}var h0=D('<span class="duration svelte-sz9er7"> </span>'),_0=D('<div class="time svelte-sz9er7"><span class="current svelte-sz9er7"> </span> <!></div>'),$0={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 sl(t,e){if(new.target)return T({component:sl,...t});I(e,!0),oe(t,$0);let i=u(e,"isMobile",7,!1),o=u(e,"duration",7),n=u(e,"position",7),s=u(e,"showDuration",7,!0),a=u(e,"ref",15),l=_(()=>or(o())),c=_(()=>or(n()));var p=_0(),f=y(p),v=y(f,!0);$(f);var m=N(f,2);{var g=b=>{var w=h0(),k=y(w,!0);$(w),L(()=>Se(k,r(l))),x(b,w)};O(m,b=>{s()&&b(g)})}return $(p),vt(p,b=>a(b),()=>a()),L(()=>{ne(p,"mobile",i()),Se(v,r(c))}),x(t,p),E({get isMobile(){return i()},set isMobile(b=!1){i(b),d()},get duration(){return o()},set duration(b){o(b),d()},get position(){return n()},set position(b){n(b),d()},get showDuration(){return s()},set showDuration(b=!0){s(b),d()},get ref(){return a()},set ref(b){a(b),d()},$set:A,$on:(b,w)=>P(e,b,w)})}import{noop as tu}from"@vkontakte/videoplayer-shared/evergreen";var b0=Ie('<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>'),y0={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 Cp(t,e){F(e,!1),q(t,Z_);let[i,o]=Oe(),n=()=>$(s,"$data",i),a=ye(),{data:s,show:d}=a.ui.modals.hotKeyMap,l=()=>{d.set(!1)};fr(),Sp(t,{get title(){return n().title},onClose:l,children:(c,u)=>{var _=Y_();fi(_,5,()=>n().groups,({title:f,items:y})=>f,(f,y)=>{let x=()=>r(y).title,w=()=>r(y).items;var S=j_(),I=h(S),L=h(I,!0);g(I);var A=E(I,2);fi(A,5,w,({description:P,value:T})=>T,(P,T)=>{let D=()=>r(T).description,Q=()=>r(T).value;var G=G_(),ee=h(G),ie=h(ee);ll(ie,()=>Zg(D()),!1,!1),g(ee);var oe=E(ee,2),te=h(oe,!0);g(oe),g(G),C(()=>de(te,Q())),b(P,G)}),g(A),g(S),C(()=>de(L,x())),b(f,S)}),g(_),b(c,_)},$$slots:{default:!0}}),U(),o()}import{noop as yh}from"@vkontakte/videoplayer-shared/evergreen";import{ChromecastState as hh,PlaybackState as pf}from"@vkontakte/videoplayer-core/evergreen";import"@vkontakte/videoplayer-shared/evergreen";var X_=M('<div class="pillow svelte-1oe0j8n"><!></div>'),J_={hash:"svelte-1oe0j8n",code:".pillow.svelte-1oe0j8n {background-color:#679FF8;color:var(--white);font-size:6px;font-weight:600;-webkit-font-smoothing:antialiased;padding:2px 4px;border-radius:12px;}"};function kp(t,e){q(t,J_);var i=X_(),o=h(i);ce(o,()=>e.children??J),g(i),b(t,i)}import{VideoQuality as El}from"@vkontakte/videoplayer-shared/evergreen";var eb=me('<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 Tp(t,e){let i=xe(e,["$$slots","$$events","$$legacy","children"]);var o=eb();let n;var a=h(o);ce(a,()=>e.children??J),fe(2),g(o),C(()=>n=he(o,n,{xmlns:"http://www.w3.org/2000/svg",width:"9",height:"5",fill:"none",role:"img",...i})),b(t,o)}var tb=me('<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 Ip(t,e){let i=xe(e,["$$slots","$$events","$$legacy","children"]);var o=tb();let n;var a=h(o);ce(a,()=>e.children??J),fe(2),g(o),C(()=>n=he(o,n,{xmlns:"http://www.w3.org/2000/svg",width:"9",height:"5",fill:"none",role:"img",...i})),b(t,o)}var ib=me('<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 Ep(t,e){let i=xe(e,["$$slots","$$events","$$legacy","children"]);var o=ib();let n;var a=h(o);ce(a,()=>e.children??J),fe(),g(o),C(()=>n=he(o,n,{xmlns:"http://www.w3.org/2000/svg",width:"9",height:"5",fill:"none",role:"img",...i})),b(t,o)}var ob=me('<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 Tl(t,e){let i=xe(e,["$$slots","$$events","$$legacy","children"]);var o=ob();let n;var a=h(o);ce(a,()=>e.children??J),fe(),g(o),C(()=>n=he(o,n,{xmlns:"http://www.w3.org/2000/svg",width:"13",height:"5",fill:"none",role:"img",...i})),b(t,o)}var nb=me('<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 Il(t,e){let i=xe(e,["$$slots","$$events","$$legacy","children"]);var o=nb();let n;var a=h(o);ce(a,()=>e.children??J),fe(2),g(o),C(()=>n=he(o,n,{xmlns:"http://www.w3.org/2000/svg",width:"15",height:"7",fill:"none",role:"img",...i})),b(t,o)}var hc=t=>{switch(t){case El.Q_720P:return Ep;case El.Q_1080P:return Tl;case El.Q_1440P:return Il;case El.Q_2160P:return Tp;case El.Q_4320P:return Ip}};var rb=me('<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 Ap(t,e){let i=xe(e,["$$slots","$$events","$$legacy","children"]);var o=rb();let n;var a=h(o);ce(a,()=>e.children??J),fe(),g(o),C(()=>n=he(o,n,{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none","aria-hidden":"true","data-testid":"settings-mobile-icon",role:"img",...i})),b(t,o)}var ab=me('<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 Pp(t,e){let i=xe(e,["$$slots","$$events","$$legacy","children"]);var o=ab();let n;var a=h(o);ce(a,()=>e.children??J),fe(2),g(o),C(()=>n=he(o,n,{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none","data-testid":"settings-icon",role:"img",...i})),b(t,o)}var sb=M('<div aria-hidden="true"><!> <!></div>'),lb={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 Al(t,e){F(e,!0),q(t,lb);let i=v(e,"isMobile",3,!1),o=v(e,"currentQuality",3,void 0),n=m(()=>hc(o())),a=m(()=>!!r(n)&&[Tl,Il].includes(r(n)));var s=ze(),d=pe(s);{var l=u=>{Ap(u,{})},c=u=>{var _=sb();let f;var y=h(_);{var x=I=>{kp(I,{children:(L,A)=>{var P=ze(),T=pe(P);$i(T,()=>r(n),(D,Q)=>{Q(D,{})}),b(L,P)},$$slots:{default:!0}})};V(y,I=>{r(n)&&I(x)})}var w=E(y,2);let S=m(()=>r(n)?"settings-icon--labeled":"settings-icon");Pp(w,{get"data-testid"(){return r(S)},fill:"var(--btn-color, #fff)"}),g(_),C(I=>f=Z(_,1,"icon svelte-8t5w85",null,f,I),[()=>({triple:r(a)})]),b(u,_)};V(d,u=>{i()?u(l):u(c,!1)})}b(t,s),U()}var db=M('<span class="settings-icon-wrapper svelte-d9t49t"><!></span>'),cb={hash:"svelte-d9t49t",code:".settings-icon-wrapper.svelte-d9t49t {position:relative;width:24px;}"};function Is(t,e){F(e,!0),q(t,cb);let[i,o]=Oe(),n=()=>$(e.ref$,"$ref$",i),a=()=>$(u,"$settingsMenuVisible",i),s=()=>$(y,"$isMobile",i),d=()=>$(c,"$currentQuality",i),l=ye(),c=l.state.currentQuality$,u=l.ui.settingsMenu.visible$,_=l.actions.internal.openSettingsMenu,f=l.actions.internal.closeSettingsMenu,y=l.ui.isMobile,x=l.ui.t,w=Y(void 0);Qe(()=>{n()&&pt(()=>{e.ref$.set(r(w))})});let S=m(()=>a()?x("tooltip_settings_on"):x("tooltip_settings_off"));async function I(A){let P=ca(A);a()?f():_(P,Xi)}let L=m(()=>a()?"opened":"");Ct(t,{get className(){return r(L)},testId:"btn-settings",click:I,get ariaLabel(){return r(S)},get ariaExpanded(){return a()},get ref(){return r(w)},set ref(A){N(w,le(A))},children:(A,P)=>{var T=db(),D=h(T);Al(D,{get isMobile(){return s()},get currentQuality(){return d()}}),g(T),b(A,T)},$$slots:{default:!0}}),U(),o()}var ub=me('<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 Mp(t,e){let i=xe(e,["$$slots","$$events","$$legacy","children"]);var o=ub();let n;var a=h(o);ce(a,()=>e.children??J),fe(),g(o),C(()=>n=he(o,n,{xmlns:"http://www.w3.org/2000/svg",width:"22",height:"16",fill:"none","aria-hidden":"true","data-testid":"subtitle-pained-icon",role:"img",...i})),b(t,o)}var pb=me('<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 Pl(t,e){let i=xe(e,["$$slots","$$events","$$legacy","children"]);var o=pb();let n;var a=h(o);ce(a,()=>e.children??J),fe(),g(o),C(()=>n=he(o,n,{xmlns:"http://www.w3.org/2000/svg",width:"22",height:"18",fill:"none","aria-hidden":"true","data-testid":"subtitle-empty-icon",role:"img",...i})),b(t,o)}function Lp(t,e){F(e,!0);let i=v(e,"isSubtitlesEnabled",3,!1),n=ye().ui.t,a=m(()=>i()?n("tooltip_subtitles_on"):n("tooltip_subtitles_off"));Ct(t,{testId:"btn-Subtitles",get ariaLabel(){return r(a)},get click(){return e.click},get ariaKeyShortCut(){return Lr.KeyC},children:(s,d)=>{var l=ze(),c=pe(l);{var u=f=>{Mp(f,{})},_=f=>{Pl(f,{})};V(c,f=>{i()?f(u):f(_,!1)})}b(s,l)},$$slots:{default:!0}}),U()}var fb=M('<span class="duration svelte-sz9er7"> </span>'),mb=M('<div><span class="current svelte-sz9er7"> </span> <!></div>'),vb={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 Ml(t,e){F(e,!0),q(t,vb);let i=v(e,"isMobile",3,!1),o=v(e,"showDuration",3,!0),n=v(e,"ref",15),a=m(()=>Qn(e.duration)),s=m(()=>Qn(e.position));var d=mb();let l;var c=h(d),u=h(c,!0);g(c);var _=E(c,2);{var f=y=>{var x=fb(),w=h(x,!0);g(x),C(()=>de(w,r(a))),b(y,x)};V(_,y=>{o()&&y(f)})}g(d),at(d,y=>n(y),()=>n()),C(y=>{l=Z(d,1,"time svelte-sz9er7",null,l,y),de(u,r(s))},[()=>({mobile:i()})]),b(t,d),U()}import{noop as _c}from"@vkontakte/videoplayer-shared/evergreen";var gb=me('<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>'),hb={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),
164
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),
165
- .icon[data-value='min'].svelte-1n5yyua .wave2:where(.svelte-1n5yyua) {visibility:hidden;}`};function _s(t,e){if(new.target)return T({component:_s,...t});I(e,!0),oe(t,y0);let i=u(e,"volume",7,1),o=u(e,"muted",7,!1),n=(l,c)=>c?"off":l>.5?"max":l>.2?"mid":l>0?"min":"off",s=_(()=>n(i(),o()));var a=b0();return L(()=>{pe(a,"data-value",r(s)),pe(a,"data-testid",`volume-${r(s)??""}-icon`)}),x(t,a),E({get volume(){return i()},set volume(l=1){i(l),d()},get muted(){return o()},set muted(l=!1){o(l),d()},$set:A,$on:(l,c)=>P(e,l,c)})}import{isNonNullable as lh,noop as ki}from"@vkontakte/videoplayer-shared/evergreen";import{noop as sh}from"@vkontakte/videoplayer-shared/evergreen";import{noop as rh}from"@vkontakte/videoplayer-shared/evergreen";var x0=D('<div class="overlay"><!></div>');function Xd(t,e){if(new.target)return T({component:Xd,...t});I(e,!0);let[i,o]=Je(),n=()=>C(l,"$overlayContainer$",i),s=u(e,"children",7),l=Be().ui.overlayContainer$,c=de(void 0),p=b=>{!b||!r(c)||!b.contains(r(c))||b.removeChild(r(c))},f=b=>{!b||!r(c)||b.contains(r(c))||b.appendChild(r(c))};ot(()=>{f(n())}),Ut(()=>(f(n()),()=>p(n())));var v=x0(),m=y(v);oo(m,()=>s()??Ht),$(v),vt(v,b=>K(c,b),()=>r(c)),x(t,v);var g=E({get children(){return s()},set children(b){s(b),d()},$set:A,$on:(b,w)=>P(e,b,w)});return o(),g}var w0=D('<div class="tooltip svelte-1jbbzcj"><div class="content svelte-1jbbzcj"> </div> <div class="tooltip-pointer svelte-1jbbzcj"></div></div>'),C0=D('<div class="tooltip-wrapper svelte-1jbbzcj"><!></div> <!>',1),S0={hash:"svelte-1jbbzcj",code:'.tooltip-wrapper.svelte-1jbbzcj {display:flex;flex-direction:column;min-width:0;}.full-width.svelte-1jbbzcj {width:100%;}.tooltip.svelte-1jbbzcj {position:absolute;opacity:0;visibility:hidden;transition:opacity 200ms, visibility 200ms;bottom:100%;left:0;}.content.svelte-1jbbzcj {display:inline-block;padding:6px 10px;border-radius:3px;color:var(--white);background-color:rgba(41, 41, 41, .8);}.tooltip.active.svelte-1jbbzcj {opacity:1;visibility:visible;}.tooltip-pointer.svelte-1jbbzcj {position:absolute;bottom:0;width:0;border-top:5px solid rgba(41, 41, 41, .8);border-right:5px solid transparent;border-left:5px solid transparent;content:" ";font-size:0;line-height:0;}'};function Ns(t,e){if(new.target)return T({component:Ns,...t});I(e,!0),oe(t,S0);let[i,o]=Je(),n=()=>C(fe,"$overlayContainer$",i),s=()=>C(se,"$containerSize",i),a=u(e,"isMobile",7,!1),l=u(e,"content",7,""),c=u(e,"active",15,!1),p=u(e,"translateX",7,0),f=u(e,"translateY",7,0),v=u(e,"isFullWidthWrapper",7,!1),m=u(e,"maxTooltipWidth",7,void 0),g=u(e,"placement",7,"top"),b=u(e,"onVisibilityChange",7,rh),w=u(e,"children",7),k=5,V=de(void 0),F=de(void 0),M,H=de(0),S=de(0),q=de(0),W=de(0),U=Qt(),ie=Be(),se=ie.ui.playerSize,fe=ie.ui.overlayContainer$;ot(()=>{xt(()=>{b()(c())})});let J=ie.getLogger().createComponentLog("Tooltip component"),xe=()=>{if(!n()||!r(F)||!r(V))return;K(S,k);let we=n().getBoundingClientRect(),Me=r(V).getBoundingClientRect(),st=Me.width,ct=r(F).clientWidth,_e=s().width,et=(st-ct)/2,yt=Me.left+p()-we.left,ee=yt+et,tt=Me.top+f()-we.top,$t=ct/2-k,dt=ee<8,ge=ee+ct>_e-8;dt&&(ee=8,$t=yt+Me.width/2-2.5*k),ge&&(ee=_e-8-ct,$t=Me.left-we.left+Me.width/2-ee-k),K(q,ke(ee)),K(W,tt),K(H,ke($t))},Ce=()=>{!n()||!r(F)||!r(V)||K(S,-k)},X=()=>{if(!n()||!r(F)||!r(V))return;K(H,k);let we=n().getBoundingClientRect(),Me=r(V).getBoundingClientRect(),st=Me.height,ct=r(F).clientHeight,_e=(st-ct)/2+ct,et=Me.left+p()-we.left-r(F).clientWidth,yt=2,ee=et-k;ee<8&&(ee=8);let $t=Me.top+f()-we.top+_e,dt=yt-_e/2,ge=yt-k;K(q,ke(ee)),K(W,$t),K(S,dt),K(H,ge)},me=()=>{!n()||!r(F)||!r(V)||K(H,-k)},he=()=>{switch(g()){case"top":xe();break;case"bottom":Ce();break;case"left":X();break;default:me()}},te=()=>{try{if(!n()||!r(V))return;he(),c(!0)}catch(we){J({message:String(we)})}},le=()=>{c(!1)},z=()=>{r(F)&&(M||(M=window.setTimeout(te,U.controls.hideTimeoutTooltips)),c()&&te())},je=()=>{le(),window.clearTimeout(M),M=void 0},Re=(we,Me)=>{let st="";switch(g()){case"top":st=`transform: translate(${we}px, ${Me}px);`;break;case"bottom":st=`transform: translate(${we}px, ${Me}px); top: auto; bottom: 100%;`;break;case"left":st=`transform: translate(${we}px, ${Me}px); left: 0; right: auto;`;break;default:st=`transform: translate(${we}px, ${Me}px);`}return st+=` max-width: ${m()===void 0?"auto":`${m()}px`};`,st},Y=(we,Me)=>{let st="";switch(g()){case"top":st=`transform: translate(${we}px, ${Me}px) rotate(0); top: auto; bottom: 0;`;break;case"bottom":st=`transform: translate(${we}px, ${Me}px) rotate(180deg); top: 0; bottom: auto;`;break;case"left":st=`transform: translate(${we}px, ${Me}px) rotate(-90deg); left: 100%; top: auto; bottom: 0;`;break;default:st=`transform: translate(${we}px, ${Me}px) rotate(90deg); right: 100%; top: auto; bottom: 0;`}return st},ce=_(()=>Re(r(q),r(W))),Ge=_(()=>Y(r(H),r(S)));Ut(he),tr(()=>window.clearTimeout(M));var G=C0(),Ve=ye(G);Ve.__mousemove=z,Ve.__mousedown=je,Ve.__mouseup=z;var ue=y(Ve);oo(ue,()=>w()??Ht),$(Ve),vt(Ve,we=>K(V,we),()=>r(V));var We=N(Ve,2);{var rt=we=>{Xd(we,{children:(Me,st)=>{var ct=w0(),_e=y(ct),et=y(_e,!0);$(_e);var yt=N(_e,2);$(ct),vt(ct,ee=>K(F,ee),()=>r(F)),L(()=>{pe(ct,"style",r(ce)),ne(ct,"active",c()),Se(et,l()),pe(yt,"style",r(Ge))}),x(Me,ct)},$$slots:{default:!0}})};O(We,we=>{l()&&!a()&&we(rt)})}L(()=>ne(Ve,"full-width",v())),Dt("mouseenter",Ve,z),Dt("mouseleave",Ve,je),x(t,G);var Ue=E({get isMobile(){return a()},set isMobile(we=!1){a(we),d()},get content(){return l()},set content(we=""){l(we),d()},get active(){return c()},set active(we=!1){c(we),d()},get translateX(){return p()},set translateX(we=0){p(we),d()},get translateY(){return f()},set translateY(we=0){f(we),d()},get isFullWidthWrapper(){return v()},set isFullWidthWrapper(we=!1){v(we),d()},get maxTooltipWidth(){return m()},set maxTooltipWidth(we=void 0){m(we),d()},get placement(){return g()},set placement(we="top"){g(we),d()},get onVisibilityChange(){return b()},set onVisibilityChange(we=rh){b(we),d()},get children(){return w()},set children(we){w(we),d()},$set:A,$on:(we,Me)=>P(e,we,Me)});return o(),Ue}pt(["mousemove","mousedown","mouseup"]);var ah=t=>{t.stopPropagation()},k0=D("<div><!></div>"),T0={hash:"svelte-p9r045",code:".btn-container.svelte-p9r045 {position:relative;display:flex;align-items:center;height:100%;transition:var(--button-hover-transition);will-change:opacity;-webkit-tap-highlight-color:transparent;}.w-max.svelte-p9r045 {width:100%;min-width:0;}"};function ro(t,e){if(new.target)return T({component:ro,...t});I(e,!0),oe(t,T0);let[i,o]=Je(),n=()=>C(c,"$isGraphOpened$",i),s=()=>C(l,"$isMobile",i),a=Be(),l=a.ui.isMobile,c=a.state.graphIsOpened$,p=a.ui.t,f=u(e,"className",7,""),v=u(e,"disabled",7,!1),m=u(e,"hasTooltip",7,!0),g=u(e,"ref",15,void 0),b=u(e,"width",15,void 0),w=u(e,"isFullWidthTooltip",7,!0),k=u(e,"tooltipContent",7,""),V=u(e,"tooltipActive",7,!1),F=u(e,"tooltipPlacement",7,"top"),M=u(e,"disabledTooltipContent",23,()=>p("tooltip_button_disabled")),H=u(e,"isAriaHidden",7,!1),S=u(e,"onTooltipVisibilityChange",7,sh),q=u(e,"initialTranslateXPx",7,0),W=u(e,"initialTranslateYPx",23,()=>-18),U=u(e,"children",7),ie=_(()=>v()?n()?p("tooltip_disabled_when_graph_on"):M():k());var se=k0();se.__pointerdown=[ah],se.__click=[ah];var fe=y(se);{var J=X=>{Ns(X,{get content(){return r(ie)},get translateX(){return q()},get translateY(){return W()},get isFullWidthWrapper(){return w()},get active(){return V()},get placement(){return F()},get onVisibilityChange(){return S()},children:(me,he)=>{var te=Ye(),le=ye(te);oo(le,()=>U()??Ht),x(me,te)},$$slots:{default:!0}})},xe=X=>{var me=Ye(),he=ye(me);oo(he,()=>U()??Ht),x(X,me)};O(fe,X=>{m()&&r(ie)&&!s()?X(J):X(xe,!1)})}$(se),vt(se,X=>g(X),()=>g()),L(()=>{Uo(se,`btn-container ${f()??""} svelte-p9r045`),pe(se,"aria-hidden",H()||null)}),Yr(se,"clientWidth",b),x(t,se);var Ce=E({get className(){return f()},set className(X=""){f(X),d()},get disabled(){return v()},set disabled(X=!1){v(X),d()},get hasTooltip(){return m()},set hasTooltip(X=!0){m(X),d()},get ref(){return g()},set ref(X=void 0){g(X),d()},get width(){return b()},set width(X=void 0){b(X),d()},get isFullWidthTooltip(){return w()},set isFullWidthTooltip(X=!0){w(X),d()},get tooltipContent(){return k()},set tooltipContent(X=""){k(X),d()},get tooltipActive(){return V()},set tooltipActive(X=!1){V(X),d()},get tooltipPlacement(){return F()},set tooltipPlacement(X="top"){F(X),d()},get disabledTooltipContent(){return M()},set disabledTooltipContent(X=p("tooltip_button_disabled")){M(X),d()},get isAriaHidden(){return H()},set isAriaHidden(X=!1){H(X),d()},get onTooltipVisibilityChange(){return S()},set onTooltipVisibilityChange(X=sh){S(X),d()},get initialTranslateXPx(){return q()},set initialTranslateXPx(X=0){q(X),d()},get initialTranslateYPx(){return W()},set initialTranslateYPx(X=-18){W(X),d()},get children(){return U()},set children(X){U(X),d()},$set:A,$on:(X,me)=>P(e,X,me)});return o(),Ce}pt(["pointerdown","click"]);var I0=Ie('<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 al(t,e){if(new.target)return T({component:al,...t});I(e,!0);let i=u(e,"completed",7);var o=I0(),n=y(o),s=N(n);return $(o),L(()=>{pe(o,"data-testid",(i(),"interactive-episode-completed-icon")),pe(n,"fill-opacity",i()?1:.24),pe(s,"fill",i()?"var(--interactive-episode-complete)":"white")}),x(t,o),E({get completed(){return i()},set completed(a){i(a),d()},$set:A,$on:(a,l)=>P(e,a,l)})}var E0=D('<div class="interactive-episode-icon svelte-bklhpe"><!></div>'),P0={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 Jd(t,e){if(new.target)return T({component:Jd,...t});I(e,!0),oe(t,P0);let i=u(e,"videoEpisode",7),o=u(e,"disabled",7),s=Be().ui.t,a=de(0),l=_(()=>s(i().completed?"tooltip_episode_finished":"tooltip_episode_unfinished"));return ro(t,{get tooltipContent(){return r(l)},initialTranslateXPx:-10,initialTranslateYPx:-10,get disabled(){return o()},get width(){return r(a)},isAriaHidden:!0,isFullWidthTooltip:!1,children:(c,p)=>{var f=E0(),v=y(f);let m=_(()=>!!i().completed);al(v,{get completed(){return r(m)}}),$(f),L(()=>{pe(f,"style",`left: ${i().from+i().width/2}%`),ne(f,"disabled",o())}),Yr(f,"clientWidth",g=>K(a,g)),x(c,f)},$$slots:{default:!0}}),E({get videoEpisode(){return i()},set videoEpisode(c){i(c),d()},get disabled(){return o()},set disabled(c){o(c),d()},$set:A,$on:(c,p)=>P(e,c,p)})}var A0=D('<div class="video-episode svelte-1u6kv8l"><div class="video-episode-inner svelte-1u6kv8l"><div class="video-episode-loaded svelte-1u6kv8l"></div> <div class="video-episode-filled svelte-1u6kv8l"></div></div></div>'),M0=D('<div class="video-episodes-wrap svelte-1u6kv8l"></div>'),L0={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,
168
+ .icon[data-value='min'].svelte-1n5yyua .wave2:where(.svelte-1n5yyua) {visibility:hidden;}`};function pa(t,e){q(t,hb);let i=v(e,"volume",3,1),o=v(e,"muted",3,!1),n=(d,l)=>l?"off":d>.5?"max":d>.2?"mid":d>0?"min":"off",a=m(()=>n(i(),o()));var s=gb();C(()=>{Me(s,"data-value",r(a)),Me(s,"data-testid",`volume-${r(a)??""}-icon`)}),b(t,s)}import{isNonNullable as Jg,noop as vr}from"@vkontakte/videoplayer-shared/evergreen";import{noop as Rp}from"@vkontakte/videoplayer-shared/evergreen";import{noop as bb}from"@vkontakte/videoplayer-shared/evergreen";var _b=M('<div class="overlay"><!></div>');function Vp(t,e){F(e,!0);let[i,o]=Oe(),n=()=>$(s,"$overlayContainer$",i),s=ye().ui.overlayContainer$,d=Y(void 0),l=f=>{!f||!r(d)||!f.contains(r(d))||f.removeChild(r(d))},c=f=>{!f||!r(d)||f.contains(r(d))||f.appendChild(r(d))};Qe(()=>{c(n())}),It(()=>(c(n()),()=>l(n())));var u=_b(),_=h(u);ce(_,()=>e.children??J),g(u),at(u,f=>N(d,f),()=>r(d)),b(t,u),U(),o()}var $b=M('<div><div class="content svelte-1jbbzcj"> </div> <div class="tooltip-pointer svelte-1jbbzcj"></div></div>'),yb=M("<div><!></div> <!>",1),xb={hash:"svelte-1jbbzcj",code:'.tooltip-wrapper.svelte-1jbbzcj {display:flex;flex-direction:column;min-width:0;}.full-width.svelte-1jbbzcj {width:100%;}.tooltip.svelte-1jbbzcj {position:absolute;opacity:0;visibility:hidden;transition:opacity 200ms, visibility 200ms;bottom:100%;left:0;}.content.svelte-1jbbzcj {display:inline-block;padding:6px 10px;border-radius:3px;color:var(--white);background-color:rgba(41, 41, 41, .8);}.tooltip.active.svelte-1jbbzcj {opacity:1;visibility:visible;}.tooltip-pointer.svelte-1jbbzcj {position:absolute;bottom:0;width:0;border-top:5px solid rgba(41, 41, 41, .8);border-right:5px solid transparent;border-left:5px solid transparent;content:" ";font-size:0;line-height:0;}'};function Ua(t,e){F(e,!0),q(t,xb);let[i,o]=Oe(),n=()=>$(ie,"$overlayContainer$",i),a=()=>$(ee,"$containerSize",i),s=v(e,"isMobile",3,!1),d=v(e,"content",3,""),l=v(e,"active",15,!1),c=v(e,"translateX",3,0),u=v(e,"translateY",3,0),_=v(e,"isFullWidthWrapper",3,!1),f=v(e,"maxTooltipWidth",3,void 0),y=v(e,"placement",3,"top"),x=v(e,"onVisibilityChange",3,bb),w=5,S=Y(void 0),I=Y(void 0),L,A=Y(0),P=Y(0),T=Y(0),D=Y(0),Q=Vt(),G=ye(),ee=G.ui.playerSize,ie=G.ui.overlayContainer$;Qe(()=>{pt(()=>{x()(l())})});let oe=G.getLogger().createComponentLog("Tooltip component"),te=()=>{if(!n()||!r(I)||!r(S))return;N(P,w);let ke=n().getBoundingClientRect(),Pe=r(S).getBoundingClientRect(),Ve=Pe.width,ct=r(I).clientWidth,gt=a().width,ot=(Ve-ct)/2,kt=Pe.left+c()-ke.left,nt=kt+ot,ut=Pe.top+u()-ke.top,Et=ct/2-w,we=nt<8,Ne=nt+ct>gt-8;we&&(nt=8,Et=kt+Pe.width/2-2.5*w),Ne&&(nt=gt-8-ct,Et=Pe.left-ke.left+Pe.width/2-nt-w),N(T,le(nt)),N(D,ut),N(A,le(Et))},ge=()=>{!n()||!r(I)||!r(S)||N(P,-w)},X=()=>{if(!n()||!r(I)||!r(S))return;N(A,w);let ke=n().getBoundingClientRect(),Pe=r(S).getBoundingClientRect(),Ve=Pe.height,ct=r(I).clientHeight,gt=(Ve-ct)/2+ct,ot=Pe.left+c()-ke.left-r(I).clientWidth,kt=2,nt=ot-w;nt<8&&(nt=8);let Et=Pe.top+u()-ke.top+gt,we=kt-gt/2,Ne=kt-w;N(T,le(nt)),N(D,Et),N(P,we),N(A,Ne)},Le=()=>{!n()||!r(I)||!r(S)||N(A,-w)},Ae=()=>{switch(y()){case"top":te();break;case"bottom":ge();break;case"left":X();break;default:Le()}},se=()=>{try{if(!n()||!r(S))return;Ae(),l(!0)}catch(ke){oe({message:String(ke)})}},He=()=>{l(!1)},j=()=>{r(I)&&(L||(L=window.setTimeout(se,Q.controls.hideTimeoutTooltips)),l()&&se())},B=()=>{He(),window.clearTimeout(L),L=void 0},Re=(ke,Pe)=>{let Ve="";switch(y()){case"top":Ve=`transform: translate(${ke}px, ${Pe}px);`;break;case"bottom":Ve=`transform: translate(${ke}px, ${Pe}px); top: auto; bottom: 100%;`;break;case"left":Ve=`transform: translate(${ke}px, ${Pe}px); left: 0; right: auto;`;break;default:Ve=`transform: translate(${ke}px, ${Pe}px);`}return Ve+=` max-width: ${f()===void 0?"auto":`${f()}px`};`,Ve},_e=(ke,Pe)=>{let Ve="";switch(y()){case"top":Ve=`transform: translate(${ke}px, ${Pe}px) rotate(0); top: auto; bottom: 0;`;break;case"bottom":Ve=`transform: translate(${ke}px, ${Pe}px) rotate(180deg); top: 0; bottom: auto;`;break;case"left":Ve=`transform: translate(${ke}px, ${Pe}px) rotate(-90deg); left: 100%; top: auto; bottom: 0;`;break;default:Ve=`transform: translate(${ke}px, ${Pe}px) rotate(90deg); right: 100%; top: auto; bottom: 0;`}return Ve},Ce=m(()=>Re(r(T),r(D))),Be=m(()=>_e(r(A),r(P)));It(Ae),Kn(()=>window.clearTimeout(L));var ue=yb(),R=pe(ue);let be;R.__mousemove=j,R.__mousedown=B,R.__mouseup=j;var Ie=h(R);ce(Ie,()=>e.children??J),g(R),at(R,ke=>N(S,ke),()=>r(S));var je=E(R,2);{var qe=ke=>{Vp(ke,{children:(Pe,Ve)=>{var ct=$b();let gt;var ot=h(ct),kt=h(ot,!0);g(ot);var nt=E(ot,2);g(ct),at(ct,ut=>N(I,ut),()=>r(I)),C(ut=>{gt=Z(ct,1,"tooltip svelte-1jbbzcj",null,gt,ut),tt(ct,r(Ce)),de(kt,d()),tt(nt,r(Be))},[()=>({active:l()})]),b(Pe,ct)},$$slots:{default:!0}})};V(je,ke=>{d()&&!s()&&ke(qe)})}C(ke=>be=Z(R,1,"tooltip-wrapper svelte-1jbbzcj",null,be,ke),[()=>({"full-width":_()})]),St("mouseenter",R,j),St("mouseleave",R,B),b(t,ue),U(),o()}it(["mousemove","mousedown","mouseup"]);var Xg=t=>{t.stopPropagation()},wb=M("<div><!></div>"),Sb={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 lo(t,e){F(e,!0),q(t,Sb);let[i,o]=Oe(),n=()=>$(c,"$isGraphOpened$",i),a=()=>$(l,"$isMobile",i),s=ye(),d=Hi(),l=s.ui.isMobile,c=d.graphIsOpened$,u=s.ui.t,_=v(e,"className",3,""),f=v(e,"disabled",3,!1),y=v(e,"hasTooltip",3,!0),x=v(e,"ref",15,void 0),w=v(e,"width",15,void 0),S=v(e,"isFullWidthTooltip",3,!0),I=v(e,"tooltipContent",3,""),L=v(e,"tooltipActive",3,!1),A=v(e,"tooltipPlacement",3,"top"),P=v(e,"disabledTooltipContent",19,()=>u("tooltip_button_disabled")),T=v(e,"isAriaHidden",3,!1),D=v(e,"onTooltipVisibilityChange",3,Rp),Q=v(e,"initialTranslateXPx",3,0),G=v(e,"initialTranslateYPx",19,()=>-18),ee=v(e,"mouseEnter",3,Rp),ie=v(e,"mouseLeave",3,Rp),oe=m(()=>f()?n()?u("tooltip_disabled_when_graph_on"):P():I());var te=wb();te.__pointerdown=[Xg],te.__click=[Xg];var ge=h(te);{var X=Ae=>{Ua(Ae,{get content(){return r(oe)},get translateX(){return Q()},get translateY(){return G()},get isFullWidthWrapper(){return S()},get active(){return L()},get placement(){return A()},get onVisibilityChange(){return D()},children:(se,He)=>{var j=ze(),B=pe(j);ce(B,()=>e.children??J),b(se,j)},$$slots:{default:!0}})},Le=Ae=>{var se=ze(),He=pe(se);ce(He,()=>e.children??J),b(Ae,se)};V(ge,Ae=>{y()&&r(oe)&&!a()?Ae(X):Ae(Le,!1)})}g(te),at(te,Ae=>x(Ae),()=>x()),C(()=>{Z(te,1,`btn-container ${_()??""}`,"svelte-p9r045"),Me(te,"aria-hidden",T()||null)}),St("mouseenter",te,function(...Ae){ee()?.apply(this,Ae)}),St("mouseleave",te,function(...Ae){ie()?.apply(this,Ae)}),Mr(te,"clientWidth",w),b(t,te),U(),o()}it(["pointerdown","click"]);var Cb=me('<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 Ll(t,e){"use strict";var i=Cb(),o=h(i),n=E(o);g(i),C(()=>{Me(i,"data-testid",(e.completed,"interactive-episode-completed-icon")),Me(o,"fill-opacity",e.completed?1:.24),Me(n,"fill",e.completed?"var(--interactive-episode-complete)":"white")}),b(t,i)}var kb=M("<div><!></div>"),Tb={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 Bp(t,e){F(e,!0),q(t,Tb);let o=ye().ui.t,n=Y(0),a=m(()=>o(e.videoEpisode.completed?"tooltip_episode_finished":"tooltip_episode_unfinished"));lo(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=kb();let c;var u=h(l);let _=m(()=>!!e.videoEpisode.completed);Ll(u,{get completed(){return r(_)}}),g(l),C(f=>{c=Z(l,1,"interactive-episode-icon svelte-bklhpe",null,c,f),tt(l,`left: ${e.videoEpisode.from+e.videoEpisode.width/2}%`)},[()=>({disabled:e.disabled})]),Mr(l,"clientWidth",f=>N(n,f)),b(s,l)},$$slots:{default:!0}}),U()}var Ib=M('<div><div class="video-episode-inner svelte-1u6kv8l"><div class="video-episode-loaded svelte-1u6kv8l"></div> <div></div></div></div>'),Eb=M('<div class="video-episodes-wrap svelte-1u6kv8l"></div>'),Ab={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,
166
169
  .video-episode-loaded.svelte-1u6kv8l,
167
- .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 eu(t,e){if(new.target)return T({component:eu,...t});I(e,!0),oe(t,L0);let i=u(e,"videoEpisodes",23,()=>[]),o=u(e,"isMobile",7),n=u(e,"disabled",7);var s=M0();return vi(s,21,i,Fi,(a,l)=>{var c=A0(),p=y(c),f=y(p),v=N(f,2);$(p),$(c),L(()=>{pe(c,"style",`left: ${r(l).from}%; width: ${r(l).width}%`),ne(c,"disabled",n()),ne(c,"mobile",o()),pe(f,"style",`transform: translateX(${r(l).loadedWidth/r(l).width*100}%)`),pe(v,"style",`transform: translateX(${r(l).filledWidth/r(l).width*100}%)`),ne(v,"mobile",o())}),x(a,c)}),$(s),x(t,s),E({get videoEpisodes(){return i()},set videoEpisodes(a=[]){i(a),d()},get isMobile(){return o()},set isMobile(a){o(a),d()},get disabled(){return n()},set disabled(a){n(a),d()},$set:A,$on:(a,l)=>P(e,a,l)})}function R0(t,e,i,o,n,s,a){if(t.preventDefault(),e()&&K(i,ke(e().getBoundingClientRect())),o()||r(n)||!e())return;K(n,!0);let l=s(t.clientX,t.clientY);a()(l),e().setPointerCapture(t.pointerId)}function V0(t,e,i,o,n,s,a,l){if(t.preventDefault(),e())return;let c=i(t.clientX,t.clientY),p=o(t.clientX);n()(c,p,r(s).width),r(a)&&l()(c)}function N0(t,e,i,o,n){if(t.preventDefault(),e()||!r(i))return;K(i,!1);let s=o(t.clientX,t.clientY);n()(s)}function B0(t,e,i,o){t.stopPropagation(),e()&&i()(o(t.clientX,t.clientY))}var D0=D('<div class="interactive-icons svelte-1tpemng"></div>'),O0=D('<div class="bars svelte-1tpemng"><div class="loaded svelte-1tpemng"></div> <div class="filled svelte-1tpemng"></div></div>'),H0=D('<!> <div role="slider" tabindex="0"><!> <div class="handleWrap svelte-1tpemng"><div class="handle svelte-1tpemng"></div></div></div>',1),F0={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 {
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 Np(t,e){q(t,Ab);let i=v(e,"videoEpisodes",19,()=>[]);var o=Eb();fi(o,21,i,n=>n.from,(n,a)=>{var s=Ib();let d;var l=h(s),c=h(l),u=E(c,2);let _;g(l),g(s),C((f,y)=>{d=Z(s,1,"video-episode svelte-1u6kv8l",null,d,f),tt(s,`left: ${r(a).from}%; width: ${r(a).width}%`),tt(c,`transform: translateX(${r(a).loadedWidth/r(a).width*100}%)`),_=Z(u,1,"video-episode-filled svelte-1u6kv8l",null,_,y),tt(u,`transform: translateX(${r(a).filledWidth/r(a).width*100}%)`)},[()=>({disabled:e.disabled,mobile:e.isMobile}),()=>({mobile:e.isMobile})]),b(n,s)}),g(o),b(t,o)}function Pb(t,e,i,o,n,a,s){if(t.preventDefault(),e()&&N(i,le(e().getBoundingClientRect())),o()||r(n)||!e())return;N(n,!0);let d=a(t.clientX,t.clientY);s()(d),e().setPointerCapture(t.pointerId)}function Mb(t,e,i,o,n,a,s,d){if(t.preventDefault(),e())return;let l=i(t.clientX,t.clientY),c=o(t.clientX);n()(l,c,r(a).width),r(s)&&d()(l)}function Lb(t,e,i,o,n){if(t.preventDefault(),e()||!r(i))return;N(i,!1);let a=o(t.clientX,t.clientY);n()(a)}function Vb(t,e,i,o){t.stopPropagation(),e()&&i()(o(t.clientX,t.clientY))}var Rb=M("<div></div>"),Bb=M('<div class="bars svelte-1tpemng"><div class="loaded svelte-1tpemng"></div> <div></div></div>'),Nb=M('<!> <div role="slider" tabindex="0"><!> <div><div></div></div></div>',1),Db={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 {
168
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,
169
172
  .slider.square.svelte-1tpemng > .bars:where(.svelte-1tpemng),
170
173
  .slider.square.svelte-1tpemng .loaded:where(.svelte-1tpemng),
171
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),
172
- .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 Bs(t,e){if(new.target)return T({component:Bs,...t});I(e,!0),oe(t,F0);let i=u(e,"ref",15,void 0),o=u(e,"className",7,""),n=u(e,"testId",7,void 0),s=u(e,"isHidden",7,!1),a=u(e,"isVertical",7,!1),l=u(e,"isActiveLive",7,!1),c=u(e,"isMobile",7,!1),p=u(e,"squareBorders",7,!1),f=u(e,"videoEpisodes",23,()=>[]),v=u(e,"withWheelHandler",7,!1),m=u(e,"isInteractive",7,!1),g=u(e,"disabled",7,!1),b=u(e,"hideHandel",7,!1),w=u(e,"onPointerDown",7,ki),k=u(e,"onHandleMove",7,ki),V=u(e,"onPointerUp",7,ki),F=u(e,"onPointerEnter",7,ki),M=u(e,"onPointerMove",7,ki),H=u(e,"onPointerLeave",7,ki),S=u(e,"onWheelUp",7,ki),q=u(e,"onWheelDown",7,ki),W=u(e,"onWheelLeft",7,ki),U=u(e,"onWheelRight",7,ki),ie=u(e,"onDisabledClick",7,ki),se=u(e,"loadedProgress",7,0),fe=u(e,"filledProgress",7,0),J=u(e,"handleProgress",7,0),xe=u(e,"ariaLabel",7,""),Ce=u(e,"ariaValueMin",7,void 0),X=u(e,"ariaValueMax",7,void 0),me=u(e,"ariaValueNow",7,void 0),he=u(e,"ariaValueText",7,""),te=Qt(),le=de(void 0),z=de(!1),je=_(()=>X()??0),Re=_(()=>lh(f())&&f()[f().length-1]?.time<r(je)),Y=_(()=>lh(f())&&f().length&&r(Re)&&r(je)?We(se()*100,fe()*100):[]);function ce(ee){if(ee.preventDefault(),i()&&K(le,ke(i().getBoundingClientRect())),g())return;let tt=Ve(ee.clientX,ee.clientY),$t=ue(ee.clientX);F()(tt,$t,r(le).width)}function Ge(ee){ee.preventDefault(),!g()&&H()()}function G(ee){g()||v()&&(ee.preventDefault(),ee.deltaY<0?S()():ee.deltaY>0?q()():ee.deltaX>0?U()():W()())}function Ve(ee,tt){return a()?Math.max(0,Math.min(1,(r(le).height-(tt-r(le).top))/r(le).height)):Math.min(Math.max(ee-r(le).x,0),r(le).width)/r(le).width}function ue(ee){return Math.min(Math.max(ee-r(le).x,0),r(le).width)}function We(ee,tt){let $t=te.features.episodesClustering&&!m()?te.episodeMinWidthPc:0,dt=[],ge=f()[0].time/r(je)*100,Pe=0,$e=0;for(let ae=1;ae<f().length;ae++)Pe=f()[ae].time/r(je)*100,Pe-ge>$t&&(dt.push({from:ge,width:Math.max(0,Pe-ge),loadedWidth:Math.max(0,Math.min(Pe,ee)-ge),filledWidth:Math.max(0,Math.min(Pe,tt)-ge),interactive:f()[ae-1].interactive,completed:f()[ae-1].completed}),ge=f()[ae].time/r(je)*100,$e++);let Qe={from:ge,width:Math.max(0,100-ge),loadedWidth:Math.max(0,Math.min(ee,100)-ge),filledWidth:Math.max(0,Math.min(tt,100)-ge),interactive:f()[$e].interactive,completed:f()[$e].completed};100-ge<$t?($e-=1,dt[$e].width+=100-ge,dt[$e].loadedWidth+=Math.max(0,Math.min(ee,100)-ge),dt[$e].filledWidth+=Math.max(0,Math.min(tt,100)-ge)):dt[$e]=Qe;let ze=f()[0].time;if(ze!==0){let ae=ze/r(je)*100;dt.unshift({from:0,width:ae,loadedWidth:Math.min(ae,ee),filledWidth:Math.min(ae,tt)})}return dt}var rt=H0(),Ue=ye(rt);{var we=ee=>{var tt=D0();vi(tt,21,()=>r(Y),Fi,($t,dt)=>{var ge=Ye(),Pe=ye(ge);{var $e=Qe=>{Jd(Qe,{get videoEpisode(){return r(dt)},get disabled(){return g()}})};O(Pe,Qe=>{r(dt).interactive&&Qe($e)})}x($t,ge)}),$(tt),L(()=>{ne(tt,"mobile",c()),ne(tt,"hidden",c()&&!r(z))}),x(ee,tt)};O(Ue,ee=>{m()&&ee(we)})}var Me=N(Ue,2);Me.__pointerdown=[R0,i,le,g,z,Ve,w],Me.__pointermove=[V0,g,Ve,ue,M,le,z,k],Me.__pointerup=[N0,g,z,Ve,V],Me.__click=[B0,g,ie,Ve];var st=y(Me);{var ct=ee=>{eu(ee,{get videoEpisodes(){return r(Y)},get disabled(){return g()},get isMobile(){return c()}})},_e=ee=>{var tt=O0(),$t=y(tt),dt=N($t,2);$(tt),L(()=>{pe($t,"style",`transform: translateX(${se()*100}%);`),pe(dt,"style",`transform: translateX(${fe()*100}%);`),ne(dt,"active-live",l())}),x(ee,tt)};O(st,ee=>{r(Y).length?ee(ct):ee(_e,!1)})}var et=N(st,2),yt=y(et);return $(et),$(Me),vt(Me,ee=>i(ee),()=>i()),L(()=>{Uo(Me,`slider ${o()??""} svelte-1tpemng`),pe(Me,"aria-label",xe()),pe(Me,"aria-valuemin",Ce()),pe(Me,"aria-valuemax",X()),pe(Me,"aria-valuenow",me()),pe(Me,"aria-valuetext",he()),pe(Me,"data-testid",n()??null),ne(Me,"disabled",g()),ne(Me,"slider-dragging",r(z)),ne(Me,"hidden",s()),ne(Me,"slider-vertical",a()),ne(Me,"no-handle",b()),ne(Me,"square",p()),pe(et,"style",`transform: translateX(${J()*100}%);`),ne(et,"hidden",b()),ne(yt,"active-live",l())}),Dt("pointerenter",Me,ce),Dt("pointerleave",Me,Ge),Dt("wheel",Me,G),x(t,rt),E({get ref(){return i()},set ref(ee=void 0){i(ee),d()},get className(){return o()},set className(ee=""){o(ee),d()},get testId(){return n()},set testId(ee=void 0){n(ee),d()},get isHidden(){return s()},set isHidden(ee=!1){s(ee),d()},get isVertical(){return a()},set isVertical(ee=!1){a(ee),d()},get isActiveLive(){return l()},set isActiveLive(ee=!1){l(ee),d()},get isMobile(){return c()},set isMobile(ee=!1){c(ee),d()},get squareBorders(){return p()},set squareBorders(ee=!1){p(ee),d()},get videoEpisodes(){return f()},set videoEpisodes(ee=[]){f(ee),d()},get withWheelHandler(){return v()},set withWheelHandler(ee=!1){v(ee),d()},get isInteractive(){return m()},set isInteractive(ee=!1){m(ee),d()},get disabled(){return g()},set disabled(ee=!1){g(ee),d()},get hideHandel(){return b()},set hideHandel(ee=!1){b(ee),d()},get onPointerDown(){return w()},set onPointerDown(ee=ki){w(ee),d()},get onHandleMove(){return k()},set onHandleMove(ee=ki){k(ee),d()},get onPointerUp(){return V()},set onPointerUp(ee=ki){V(ee),d()},get onPointerEnter(){return F()},set onPointerEnter(ee=ki){F(ee),d()},get onPointerMove(){return M()},set onPointerMove(ee=ki){M(ee),d()},get onPointerLeave(){return H()},set onPointerLeave(ee=ki){H(ee),d()},get onWheelUp(){return S()},set onWheelUp(ee=ki){S(ee),d()},get onWheelDown(){return q()},set onWheelDown(ee=ki){q(ee),d()},get onWheelLeft(){return W()},set onWheelLeft(ee=ki){W(ee),d()},get onWheelRight(){return U()},set onWheelRight(ee=ki){U(ee),d()},get onDisabledClick(){return ie()},set onDisabledClick(ee=ki){ie(ee),d()},get loadedProgress(){return se()},set loadedProgress(ee=0){se(ee),d()},get filledProgress(){return fe()},set filledProgress(ee=0){fe(ee),d()},get handleProgress(){return J()},set handleProgress(ee=0){J(ee),d()},get ariaLabel(){return xe()},set ariaLabel(ee=""){xe(ee),d()},get ariaValueMin(){return Ce()},set ariaValueMin(ee=void 0){Ce(ee),d()},get ariaValueMax(){return X()},set ariaValueMax(ee=void 0){X(ee),d()},get ariaValueNow(){return me()},set ariaValueNow(ee=void 0){me(ee),d()},get ariaValueText(){return he()},set ariaValueText(ee=""){he(ee),d()},$set:A,$on:(ee,tt)=>P(e,ee,tt)})}pt(["pointerdown","pointermove","pointerup","click"]);var Vi=(t,e)=>oa[t]>=oa[e],ch=(t,e)=>oa[t]<oa[e],Ds=(t,e)=>oa[t]<=oa[e],dh=t=>t>699?"xl":t>599?"l":t>509?"m":t>320?"s":"xs";var U0=D('<div class="volumeBar svelte-1auih1j"><!></div>'),z0=D('<div class="volumeBar-container svelte-1auih1j"><!> <!></div>'),W0={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 iu(t,e){if(new.target)return T({component:iu,...t});I(e,!0),oe(t,W0);let[i,o]=Je(),n=()=>C(M,"$isAudioAvailable$",i),s=()=>C(m,"$muted$",i),a=()=>C(v,"$volume$",i),l=()=>C(k,"$currentGridType$",i),c=u(e,"click",7),p=Be(),f=Qt(),v=p.state.volume$,m=p.state.muted$,{setVolume:g,startVolumeChanging:b,stopVolumeChanging:w}=p.actions.internal,k=p.ui.currentGridType$,V=p.callbacks?.onAudioDoesNotExistHint,F=p.callbacks?.onAudioDisabledHint,M=p.state.isAudioAvailable$,H=p.state.isAudioDisabled,S=p.ui.t,q=de(!1),W,U=_(()=>!n()||s()||a()===0),ie=_(()=>Ds(l(),"s")),se=_(()=>r(ie)?"":r(U)?S("tooltip_volume"):S("tooltip_volume_muted")),fe=_(()=>r(U)?S("tooltip_volume"):S("tooltip_volume_muted")),J=_(()=>r(U)?0:a()),xe=!1,Ce=_(()=>n()?H&&!F:!V);function X(Ue){b(),g(Ue)}function me(){Bd(p,a(),f.controls.volumeStepWheel)}function he(){Dd(p,a(),f.controls.volumeStepWheel)}function te(Ue){g(Ue)}function le(Ue){g(Ue),w()}function z(){xe=!0}function je(){xe=!1,ce()}function Re(){clearTimeout(W),K(q,!0)}function Y(){ce()}function ce(){W=window.setTimeout(()=>{xe||K(q,!1)},f.controls.volumeBarTimeout)}function Ge(Ue){Ue.preventDefault(),Ue.deltaY<0?me():Ue.deltaY>0&&he()}var G=z0(),Ve=y(G);Ns(Ve,{get content(){return r(se)},translateY:-18,children:(Ue,we)=>{let Me=_(()=>r(ie)?"btn-volume-vertical":"btn-volume-horizontal");Mt(Ue,{className:"btn-full-opacity",get disabled(){return r(Ce)},get testId(){return r(Me)},get ariaLabel(){return r(fe)},get click(){return c()},get ariaKeyShortCut(){return jr.KeyM},children:(st,ct)=>{_s(st,{get volume(){return a()},get muted(){return r(U)}})},$$slots:{default:!0}})},$$slots:{default:!0}});var ue=N(Ve,2);{var We=Ue=>{var we=U0(),Me=y(we);let st=_(()=>r(ie)?"volumeBar-slider-vertical":""),ct=_(()=>r(ie)&&!r(q)),_e=_(()=>r(ie)?z:tu),et=_(()=>r(ie)?je:tu),yt=_(()=>Math.round(r(J)*100)),ee=_(()=>`${Math.round(r(J)*100)}%`),tt=_(()=>r(ie)?"volume-slider-vertical":"volume-slider");Bs(Me,{get className(){return r(st)},get isHidden(){return r(ct)},get isVertical(){return r(ie)},withWheelHandler:!0,onWheelUp:me,onWheelDown:he,onPointerDown:X,onHandleMove:te,onPointerUp:le,get onPointerEnter(){return r(_e)},get onPointerLeave(){return r(et)},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(ee)},get filledProgress(){return r(J)},get handleProgress(){return r(J)},get testId(){return r(tt)}}),$(we),L(()=>ne(we,"volumeBar-vertical",r(ie))),x(Ue,we)};O(ue,Ue=>{n()&&Ue(We)})}$(G),L(()=>ne(G,"vertical",r(ie))),Dt("mouseenter",G,function(...Ue){(r(ie)?Re:tu)?.apply(this,Ue)}),Dt("mouseleave",G,function(...Ue){(r(ie)?Y:tu)?.apply(this,Ue)}),Dt("wheel",G,Ge),x(t,G);var rt=E({get click(){return c()},set click(Ue){c(Ue),d()},$set:A,$on:(Ue,we)=>P(e,Ue,we)});return o(),rt}import{noop as uh}from"@vkontakte/videoplayer-shared/evergreen";var q0=Ie('<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 ou(t,e){if(new.target)return T({component:ou,...t});let i=Oe(e,["children","$$slots","$$events","$$legacy"]);I(e,!1);var o=q0();let n;var s=y(o);return De(s,e,"default",{},null),Te(),$(o),L(()=>n=Le(o,n,{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"var(--btn-color, #fff)","aria-hidden":"true",role:"img",...i},void 0,!0)),x(t,o),E({$set:A,$on:(a,l)=>P(e,a,l)})}var K0={hash:"svelte-17t966y",code:`svg[data-testid="close-fullscreen-icon"] ._enter,
173
- svg[data-testid="open-fullscreen-icon"] ._exit {visibility:hidden;opacity:0;}`};function nu(t,e){if(new.target)return T({component:nu,...t});I(e,!1),oe(t,K0);let i=u(e,"isFullscreen",12,!1),o=Er(()=>i()?"close-fullscreen-icon":"open-fullscreen-icon");return ou(t,{get"data-testid"(){return r(o)},fill:"var(--btn-color, #fff)"}),E({get isFullscreen(){return i()},set isFullscreen(n){i(n),d()},$set:A,$on:(n,s)=>P(e,n,s)})}function ll(t,e){if(new.target)return T({component:ll,...t});I(e,!0);let i=u(e,"isFullscreen",7,!1),o=u(e,"click",7,uh),n=Be(),s=n.ui.isFullscreenOpenedByKeyboard,a=n.ui.t,l=_(()=>i()?a("tooltip_fullscreen_on"):a("tooltip_fullscreen_off"));return Mt(t,{testId:"btn-fullscreen",get ariaLabel(){return r(l)},click:p=>{let f=Ms(p);s.set(f),o()()},get ariaKeyShortCut(){return jr.KeyF},children:(p,f)=>{nu(p,{get isFullscreen(){return i()}})},$$slots:{default:!0}}),E({get isFullscreen(){return i()},set isFullscreen(p=!1){i(p),d()},get click(){return o()},set click(p=uh){o(p),d()},$set:A,$on:(p,f)=>P(e,p,f)})}var Q0=Ie('<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 ru(t,e){if(new.target)return T({component:ru,...t});let i=Oe(e,["children","$$slots","$$events","$$legacy"]);I(e,!1);var o=Q0();let n;var s=y(o);return De(s,e,"default",{},null),Te(),$(o),L(()=>n=Le(o,n,{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none","aria-hidden":"true","data-testid":"vk-logo-icon",role:"img",...i},void 0,!0)),x(t,o),E({$set:A,$on:(a,l)=>P(e,a,l)})}var G0=Ie('<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 su(t,e){if(new.target)return T({component:su,...t});let i=Oe(e,["children","$$slots","$$events","$$legacy"]);I(e,!1);var o=G0();let n;var s=y(o);return De(s,e,"default",{},null),Te(4),$(o),L(()=>n=Le(o,n,{xmlns:"http://www.w3.org/2000/svg",width:"95",height:"24",fill:"none","aria-hidden":"true",role:"img",...i},void 0,!0)),x(t,o),E({$set:A,$on:(a,l)=>P(e,a,l)})}var Y0={hash:"svelte-1nhjml",code:`svg[data-testid="vk-video-logo-icon--short"] ._ru,
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 za(t,e){F(e,!0),q(t,Db);let i=v(e,"ref",15,void 0),o=v(e,"className",3,""),n=v(e,"testId",3,void 0),a=v(e,"isHidden",3,!1),s=v(e,"isVertical",3,!1),d=v(e,"isActiveLive",3,!1),l=v(e,"isMobile",3,!1),c=v(e,"squareBorders",3,!1),u=v(e,"videoEpisodes",19,()=>[]),_=v(e,"withWheelHandler",3,!1),f=v(e,"isInteractive",3,!1),y=v(e,"disabled",3,!1),x=v(e,"hideHandel",3,!1),w=v(e,"onPointerDown",3,vr),S=v(e,"onHandleMove",3,vr),I=v(e,"onPointerUp",3,vr),L=v(e,"onPointerEnter",3,vr),A=v(e,"onPointerMove",3,vr),P=v(e,"onPointerLeave",3,vr),T=v(e,"onWheelUp",3,vr),D=v(e,"onWheelDown",3,vr),Q=v(e,"onWheelLeft",3,vr),G=v(e,"onWheelRight",3,vr),ee=v(e,"onDisabledClick",3,vr),ie=v(e,"loadedProgress",3,0),oe=v(e,"filledProgress",3,0),te=v(e,"handleProgress",3,0),ge=v(e,"ariaLabel",3,""),X=v(e,"ariaValueMin",3,void 0),Le=v(e,"ariaValueMax",3,void 0),Ae=v(e,"ariaValueNow",3,void 0),se=v(e,"ariaValueText",3,""),He=Vt(),j=Y(void 0),B=Y(!1),Re=m(()=>Le()??0),_e=m(()=>Jg(u())&&u()[u().length-1]?.time<r(Re)),Ce=m(()=>Jg(u())&&u().length&&r(_e)&&r(Re)?je(ie()*100,oe()*100):[]);function Be(Ne){if(Ne.preventDefault(),i()&&N(j,le(i().getBoundingClientRect())),y())return;let Ye=be(Ne.clientX,Ne.clientY),W=Ie(Ne.clientX);L()(Ye,W,r(j).width)}function ue(Ne){Ne.preventDefault(),!y()&&P()()}function R(Ne){y()||_()&&(Ne.preventDefault(),Ne.deltaY<0?T()():Ne.deltaY>0?D()():Ne.deltaX>0?G()():Q()())}function be(Ne,Ye){return s()?Math.max(0,Math.min(1,(r(j).height-(Ye-r(j).top))/r(j).height)):Math.min(Math.max(Ne-r(j).x,0),r(j).width)/r(j).width}function Ie(Ne){return Math.min(Math.max(Ne-r(j).x,0),r(j).width)}function je(Ne,Ye){let W=He.features.episodesClustering&&!f()?He.episodeMinWidthPc:0,re=[],ne=u()[0].time/r(Re)*100,Fe=0,Ge=0;for(let Ze=1;Ze<u().length;Ze++)Fe=u()[Ze].time/r(Re)*100,Fe-ne>W&&(re.push({from:ne,width:Math.max(0,Fe-ne),loadedWidth:Math.max(0,Math.min(Fe,Ne)-ne),filledWidth:Math.max(0,Math.min(Fe,Ye)-ne),interactive:u()[Ze-1].interactive,completed:u()[Ze-1].completed}),ne=u()[Ze].time/r(Re)*100,Ge++);let yt={from:ne,width:Math.max(0,100-ne),loadedWidth:Math.max(0,Math.min(Ne,100)-ne),filledWidth:Math.max(0,Math.min(Ye,100)-ne),interactive:u()[Ge].interactive,completed:u()[Ge].completed};100-ne<W?(Ge-=1,re[Ge].width+=100-ne,re[Ge].loadedWidth+=Math.max(0,Math.min(Ne,100)-ne),re[Ge].filledWidth+=Math.max(0,Math.min(Ye,100)-ne)):re[Ge]=yt;let Ke=u()[0].time;if(Ke!==0){let Ze=Ke/r(Re)*100;re.unshift({from:0,width:Ze,loadedWidth:Math.min(Ze,Ne),filledWidth:Math.min(Ze,Ye)})}return re}var qe=Nb(),ke=pe(qe);{var Pe=Ne=>{var Ye=Rb();let W;fi(Ye,21,()=>r(Ce),re=>re.from,(re,ne)=>{var Fe=ze(),Ge=pe(Fe);{var yt=Ke=>{Bp(Ke,{get videoEpisode(){return r(ne)},get disabled(){return y()}})};V(Ge,Ke=>{r(ne).interactive&&Ke(yt)})}b(re,Fe)}),g(Ye),C(re=>W=Z(Ye,1,"interactive-icons svelte-1tpemng",null,W,re),[()=>({mobile:l(),hidden:l()&&!r(B)})]),b(Ne,Ye)};V(ke,Ne=>{f()&&Ne(Pe)})}var Ve=E(ke,2);let ct;Ve.__pointerdown=[Pb,i,j,y,B,be,w],Ve.__pointermove=[Mb,y,be,Ie,A,j,B,S],Ve.__pointerup=[Lb,y,B,be,I],Ve.__click=[Vb,y,ee,be];var gt=h(Ve);{var ot=Ne=>{Np(Ne,{get videoEpisodes(){return r(Ce)},get disabled(){return y()},get isMobile(){return l()}})},kt=Ne=>{var Ye=Bb(),W=h(Ye),re=E(W,2);let ne;g(Ye),C(Fe=>{tt(W,`transform: translateX(${ie()*100}%);`),ne=Z(re,1,"filled svelte-1tpemng",null,ne,Fe),tt(re,`transform: translateX(${oe()*100}%);`)},[()=>({"active-live":d()})]),b(Ne,Ye)};V(gt,Ne=>{r(Ce).length?Ne(ot):Ne(kt,!1)})}var nt=E(gt,2);let ut;var Et=h(nt);let we;g(nt),g(Ve),at(Ve,Ne=>i(Ne),()=>i()),C((Ne,Ye,W)=>{ct=Z(Ve,1,`slider ${o()??""}`,"svelte-1tpemng",ct,Ne),Me(Ve,"aria-label",ge()),Me(Ve,"aria-valuemin",X()),Me(Ve,"aria-valuemax",Le()),Me(Ve,"aria-valuenow",Ae()),Me(Ve,"aria-valuetext",se()),Me(Ve,"data-testid",n()??null),ut=Z(nt,1,"handleWrap svelte-1tpemng",null,ut,Ye),tt(nt,`transform: translateX(${te()*100}%);`),we=Z(Et,1,"handle svelte-1tpemng",null,we,W)},[()=>({disabled:y(),"slider-dragging":r(B),hidden:a(),"slider-vertical":s(),"no-handle":x(),square:c()}),()=>({hidden:x()}),()=>({"active-live":d()})]),St("pointerenter",Ve,Be),St("pointerleave",Ve,ue),St("wheel",Ve,R),b(t,qe),U()}it(["pointerdown","pointermove","pointerup","click"]);var Ci=(t,e)=>Pa[t]>=Pa[e],eh=(t,e)=>Pa[t]<Pa[e],fa=(t,e)=>Pa[t]<=Pa[e],th=t=>t>699?"xl":t>599?"l":t>509?"m":t>320?"s":"xs";var Ob=M("<div><!></div>"),Hb=M("<div><!> <!></div>"),Fb={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 Dp(t,e){F(e,!0),q(t,Fb);let[i,o]=Oe(),n=()=>$(L,"$isAudioAvailable$",i),a=()=>$(_,"$muted$",i),s=()=>$(u,"$volume$",i),d=()=>$(w,"$currentGridType$",i),l=ye(),c=Vt(),u=l.state.volume$,_=l.state.muted$,{setVolume:f,startVolumeChanging:y,stopVolumeChanging:x}=l.actions.internal,w=l.ui.currentGridType$,S=l.callbacks?.onAudioDoesNotExistHint,I=l.callbacks?.onAudioDisabledHint,L=l.state.isAudioAvailable$,A=l.state.isAudioDisabled,P=l.ui.t,T=Y(!1),D,Q=m(()=>!n()||a()||s()===0),G=m(()=>fa(d(),"s")),ee=m(()=>r(G)?"":r(Q)?P("tooltip_volume"):P("tooltip_volume_muted")),ie=m(()=>r(Q)?P("tooltip_volume"):P("tooltip_volume_muted")),oe=m(()=>r(Q)?0:s()),te=!1,ge=m(()=>n()?A&&!I:!S);function X(qe){y(),f(qe)}function Le(){vc(l,s(),c.controls.volumeStepWheel)}function Ae(){gc(l,s(),c.controls.volumeStepWheel)}function se(qe){f(qe)}function He(qe){f(qe),x()}function j(){te=!0}function B(){te=!1,Ce()}function Re(){clearTimeout(D),N(T,!0)}function _e(){Ce()}function Ce(){D=window.setTimeout(()=>{te||N(T,!1)},c.controls.volumeBarTimeout)}function Be(qe){qe.preventDefault(),qe.deltaY<0?Le():qe.deltaY>0&&Ae()}var ue=Hb();let R;var be=h(ue);Ua(be,{get content(){return r(ee)},translateY:-18,children:(qe,ke)=>{let Pe=m(()=>r(G)?"btn-volume-vertical":"btn-volume-horizontal");Ct(qe,{className:"btn-full-opacity",get disabled(){return r(ge)},get testId(){return r(Pe)},get ariaLabel(){return r(ie)},get click(){return e.click},get ariaKeyShortCut(){return Lr.KeyM},children:(Ve,ct)=>{pa(Ve,{get volume(){return s()},get muted(){return r(Q)}})},$$slots:{default:!0}})},$$slots:{default:!0}});var Ie=E(be,2);{var je=qe=>{var ke=Ob();let Pe;var Ve=h(ke);let ct=m(()=>r(G)?"volumeBar-slider-vertical":""),gt=m(()=>r(G)&&!r(T)),ot=m(()=>r(G)?j:_c),kt=m(()=>r(G)?B:_c),nt=m(()=>Math.round(r(oe)*100)),ut=m(()=>`${Math.round(r(oe)*100)}%`),Et=m(()=>r(G)?"volume-slider-vertical":"volume-slider");za(Ve,{get className(){return r(ct)},get isHidden(){return r(gt)},get isVertical(){return r(G)},withWheelHandler:!0,onWheelUp:Le,onWheelDown:Ae,onPointerDown:X,onHandleMove:se,onPointerUp:He,get onPointerEnter(){return r(ot)},get onPointerLeave(){return r(kt)},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(nt)},get ariaValueText(){return r(ut)},get filledProgress(){return r(oe)},get handleProgress(){return r(oe)},get testId(){return r(Et)}}),g(ke),C(we=>Pe=Z(ke,1,"volumeBar svelte-1auih1j",null,Pe,we),[()=>({"volumeBar-vertical":r(G)})]),b(qe,ke)};V(Ie,qe=>{n()&&qe(je)})}g(ue),C(qe=>R=Z(ue,1,"volumeBar-container svelte-1auih1j",null,R,qe),[()=>({vertical:r(G)})]),St("mouseenter",ue,function(...qe){(r(G)?Re:_c)?.apply(this,qe)}),St("mouseleave",ue,function(...qe){(r(G)?_e:_c)?.apply(this,qe)}),St("wheel",ue,Be),b(t,ue),U(),o()}import{noop as qb}from"@vkontakte/videoplayer-shared/evergreen";var Ub=me('<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 Op(t,e){let i=xe(e,["$$slots","$$events","$$legacy","children"]);var o=Ub();let n;var a=h(o);ce(a,()=>e.children??J),fe(),g(o),C(()=>n=he(o,n,{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"var(--btn-color, #fff)","aria-hidden":"true",role:"img",...i})),b(t,o)}var zb={hash:"svelte-17t966y",code:`svg[data-testid="close-fullscreen-icon"] ._enter,
176
+ svg[data-testid="open-fullscreen-icon"] ._exit {visibility:hidden;opacity:0;}`};function Hp(t,e){q(t,zb);let i=v(e,"isFullscreen",8,!1),o=cr(()=>i()?"close-fullscreen-icon":"open-fullscreen-icon");Op(t,{get"data-testid"(){return r(o)},fill:"var(--btn-color, #fff)"})}function Vl(t,e){F(e,!0);let i=v(e,"isFullscreen",3,!1),o=v(e,"click",3,qb),n=ye(),a=n.ui.isFullscreenOpenedByKeyboard,s=n.ui.t,d=m(()=>i()?s("tooltip_fullscreen_on"):s("tooltip_fullscreen_off"));Ct(t,{testId:"btn-fullscreen",get ariaLabel(){return r(d)},click:c=>{let u=ca(c);a.set(u),o()()},get ariaKeyShortCut(){return Lr.KeyF},children:(c,u)=>{Hp(c,{get isFullscreen(){return i()}})},$$slots:{default:!0}}),U()}var Kb=me('<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 Fp(t,e){let i=xe(e,["$$slots","$$events","$$legacy","children"]);var o=Kb();let n;var a=h(o);ce(a,()=>e.children??J),fe(),g(o),C(()=>n=he(o,n,{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none","aria-hidden":"true","data-testid":"vk-logo-icon",role:"img",...i})),b(t,o)}var Wb=me('<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 Up(t,e){let i=xe(e,["$$slots","$$events","$$legacy","children"]);var o=Wb();let n;var a=h(o);ce(a,()=>e.children??J),fe(4),g(o),C(()=>n=he(o,n,{xmlns:"http://www.w3.org/2000/svg",width:"95",height:"24",fill:"none","aria-hidden":"true",role:"img",...i})),b(t,o)}var Qb={hash:"svelte-1nhjml",code:`svg[data-testid="vk-video-logo-icon--short"] ._ru,
174
177
  svg[data-testid="vk-video-logo-icon--short"] ._en,
175
178
  svg[data-testid="vk-video-logo-icon"] ._en,
176
- svg[data-testid="vk-video-logo-icon--en"] ._ru {visibility:hidden;opacity:0;}`};function au(t,e){if(new.target)return T({component:au,...t});I(e,!0),oe(t,Y0);let i=u(e,"short",7,!1),o=u(e,"isCyrillic",7,!0),n="vk-video-logo-icon--short",s=21,a=_(()=>!o()&&!i()?91:i()?s:95),l=_(()=>!o()&&!i()?"vk-video-logo-icon--en":i()?n:"vk-video-logo-icon"),c=_(()=>`0 0 ${r(a)+1} 24`);return su(t,{get width(){return r(a)},height:"24",get viewBox(){return r(c)},get"data-testid"(){return r(l)}}),E({get short(){return i()},set short(p=!1){i(p),d()},get isCyrillic(){return o()},set isCyrillic(p=!0){o(p),d()},$set:A,$on:(p,f)=>P(e,p,f)})}function cl(t,e){if(new.target)return T({component:cl,...t});I(e,!0);let[i,o]=Je(),n=()=>C(b,"$isMobile",i),s=()=>C(g,"$currentGridType$",i),a=()=>C(k,"$isCyrillicRelatedInterface$",i),l=u(e,"ref",15,void 0),c=u(e,"logoClickable",7,!1),p=u(e,"targetUrl",7,""),f=u(e,"click",7),v=Qt(),m=Be(),g=m.ui.currentGridType$,b=m.ui.isMobile,w=m.ui.t,k=m.isCyrillicRelatedInterface$,V=_(()=>v.logoType==="vk_video"?w("tooltip_vk_video_logo"):w("tooltip_vk_logo")),F=_(()=>v.logoType==="vk_video"||v.logoType==="vk_video_mobile"),M=_(()=>(n()||Ds(s(),"l"))&&r(F)),H=()=>{f()(),m.callbacks?.onLogoClicked?m.callbacks?.onLogoClicked():p()&&window.open(p(),"_blank")},S=_(()=>!c()),q=_(()=>r(F)?"btn-vk-video-logo":"btn-vk-logo");Mt(t,{className:"btn-full-opacity",get disabled(){return r(S)},click:H,get testId(){return r(q)},get ariaLabel(){return r(V)},get ref(){return l()},set ref(U){l(U)},children:(U,ie)=>{var se=Ye(),fe=ye(se);{var J=Ce=>{au(Ce,{get short(){return r(M)},get isCyrillic(){return a()}})},xe=Ce=>{ru(Ce,{})};O(fe,Ce=>{r(F)?Ce(J):Ce(xe,!1)})}x(U,se)},$$slots:{default:!0}});var W=E({get ref(){return l()},set ref(U=void 0){l(U),d()},get logoClickable(){return c()},set logoClickable(U=!1){c(U),d()},get targetUrl(){return p()},set targetUrl(U=""){p(U),d()},get click(){return f()},set click(U){f(U),d()},$set:A,$on:(U,ie)=>P(e,U,ie)});return o(),W}import{ChromecastState as eb}from"@vkontakte/videoplayer-core/evergreen";import{ChromecastState as ph}from"@vkontakte/videoplayer-core/evergreen";var Z0=Ie('<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>'),X0=Ie('<svg width="24" height="24" xmlns="http://www.w3.org/2000/svg" aria-hidden="true" data-testid="chromecast-icon" class="svelte-8z1bf5"><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)" class="svelte-8z1bf5"></path></g></svg>'),J0={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 zp(t,e){q(t,Qb);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`);Up(t,{get width(){return r(s)},height:"24",get viewBox(){return r(l)},get"data-testid"(){return r(d)}})}function Rl(t,e){F(e,!0);let[i,o]=Oe(),n=()=>$(y,"$isMobile",i),a=()=>$(f,"$currentGridType$",i),s=()=>$(w,"$isCyrillicRelatedInterface$",i),d=v(e,"ref",15,void 0),l=v(e,"logoClickable",3,!1),c=v(e,"targetUrl",3,""),u=Vt(),_=ye(),f=_.ui.currentGridType$,y=_.ui.isMobile,x=_.ui.t,w=_.isCyrillicRelatedInterface$,S=m(()=>u.logoType==="vk_video"?x("tooltip_vk_video_logo"):x("tooltip_vk_logo")),I=m(()=>u.logoType==="vk_video"||u.logoType==="vk_video_mobile"),L=m(()=>(n()||fa(a(),"l"))&&r(I)),A=()=>{e.click(),_.callbacks?.onLogoClicked?_.callbacks?.onLogoClicked():c()&&window.open(c(),"_blank")},P=m(()=>!l()),T=m(()=>r(I)?"btn-vk-video-logo":"btn-vk-logo");Ct(t,{className:"btn-full-opacity",get disabled(){return r(P)},click:A,get testId(){return r(T)},get ariaLabel(){return r(S)},get ref(){return d()},set ref(D){d(D)},children:(D,Q)=>{var G=ze(),ee=pe(G);{var ie=te=>{zp(te,{get short(){return r(L)},get isCyrillic(){return s()}})},oe=te=>{Fp(te,{})};V(ee,te=>{r(I)?te(ie):te(oe,!1)})}b(D,G)},$$slots:{default:!0}}),U(),o()}import{ChromecastState as Xb}from"@vkontakte/videoplayer-core/evergreen";import{ChromecastState as ih}from"@vkontakte/videoplayer-core/evergreen";var jb=me('<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>'),Yb=me('<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>'),Zb={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) {
177
180
  animation-name: svelte-8z1bf5-wave1;}.connecting.svelte-8z1bf5 .wave2:where(.svelte-8z1bf5) {
178
181
  animation-name: svelte-8z1bf5-wave2;}.connecting.svelte-8z1bf5 .wave3:where(.svelte-8z1bf5) {
179
182
  animation-name: svelte-8z1bf5-wave3;}
@@ -221,7 +224,9 @@ Try switching the\xA0quality to\xA0Auto.`},Lg=C$;var gs=new Map;gs.set(Vg.EN,Lg)
221
224
  100% {
222
225
  opacity: 1;
223
226
  }
224
- }`};function lu(t,e){if(new.target)return T({component:lu,...t});I(e,!0),oe(t,J0);let i=u(e,"isMobile",7,!1),o=u(e,"iconState",7),n=_(()=>o()===ph.CONNECTED),s=_(()=>o()===ph.CONNECTING);var a=Ye(),l=ye(a);{var c=f=>{var v=Z0(),m=y(v),g=y(m),b=y(g);Te(),$(g);var w=N(g);Te(),$(m);var k=N(m),V=y(k),F=y(V);$(V),Te(),$(k),$(v),L(()=>{pe(b,"fill",r(n)?"#2688EB":"var(--btn-color, #fff)"),pe(w,"fill",r(n)?"#2688EB":"var(--btn-color, #fff)"),pe(F,"fill",r(n)?"#2688EB":"var(--btn-color, #fff)")}),x(f,v)},p=f=>{var v=X0(),m=y(v),g=N(y(m),5);$(m),$(v),L(()=>{ne(v,"connecting",r(s)),ne(g,"hidden",!r(n))}),x(f,v)};O(l,f=>{i()?f(c):f(p,!1)})}return x(t,a),E({get isMobile(){return i()},set isMobile(f=!1){i(f),d()},get iconState(){return o()},set iconState(f){o(f),d()},$set:A,$on:(f,v)=>P(e,f,v)})}import{noop as fh}from"@vkontakte/videoplayer-shared/evergreen";function dl(t,e){if(new.target)return T({component:dl,...t});I(e,!0);let i=u(e,"ref",15,void 0),o=u(e,"isMobile",7,!1),n=u(e,"state",7),s=u(e,"click",7,fh),l=Be().ui.t,c=_(()=>n()===eb.CONNECTED?l("tooltip_chromecast_on"):l("tooltip_chromecast_off"));return Mt(t,{get ariaLabel(){return r(c)},get click(){return s()},testId:"btn-chromecast",get ref(){return i()},set ref(p){i(p)},children:(p,f)=>{lu(p,{get isMobile(){return o()},get iconState(){return n()}})},$$slots:{default:!0}}),E({get ref(){return i()},set ref(p=void 0){i(p),d()},get isMobile(){return o()},set isMobile(p=!1){o(p),d()},get state(){return n()},set state(p){n(p),d()},get click(){return s()},set click(p=fh){s(p),d()},$set:A,$on:(p,f)=>P(e,p,f)})}var tb=D('<div class="tooltip-wrapper svelte-5ygsa2"><div class="tooltip svelte-5ygsa2"><!></div></div>'),ib={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 cu(t,e){if(new.target)return T({component:cu,...t});I(e,!0),oe(t,ib);let i=u(e,"active",7,!1),o=u(e,"pointer",7,!1),n=u(e,"translateXPx",7,0),s=u(e,"translateYPx",7,0),a=u(e,"containerWidth",7),l=u(e,"children",7),c=de(void 0),p=de(void 0);function f(w){if(!r(p))return 0;let{width:k}=r(p).getBoundingClientRect(),V=k/2;return w<V?V:w>a()-V?a()-V:w}let v=_(()=>f(n()));var m=tb(),g=y(m),b=y(g);return oo(b,()=>l()??Ht),$(g),vt(g,w=>K(p,w),()=>r(p)),$(m),vt(m,w=>K(c,w),()=>r(c)),L(()=>{pe(m,"style",`transform: translate(${r(v)}px, ${s()}px);`),ne(g,"active",i()),ne(g,"pointer",o())}),x(t,m),E({get active(){return i()},set active(w=!1){i(w),d()},get pointer(){return o()},set pointer(w=!1){o(w),d()},get translateXPx(){return n()},set translateXPx(w=0){n(w),d()},get translateYPx(){return s()},set translateYPx(w=0){s(w),d()},get containerWidth(){return a()},set containerWidth(w){a(w),d()},get children(){return l()},set children(w){l(w),d()},$set:A,$on:(w,k)=>P(e,w,k)})}var du=(t,e,i)=>i.filter(o=>o.time<=t*e).pop();var ob=D('<div class="preview svelte-vdzt6e"></div>'),nb=D('<div class="time svelte-vdzt6e"> </div>'),rb=D('<div class="timeline-preview svelte-vdzt6e"><!> <div class="episode svelte-vdzt6e"><!></div> <!></div>'),sb={hash:"svelte-vdzt6e",code:".timeline-preview.svelte-vdzt6e {bottom:18px;border-radius:2px;pointer-events:none;}.timeline-preview.mobile.svelte-vdzt6e {bottom:72px;}.preview.svelte-vdzt6e {margin-bottom:10px;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-vdzt6e {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-vdzt6e {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 uu(t,e){if(new.target)return T({component:uu,...t});I(e,!0),oe(t,sb);let[i,o]=Je(),n=()=>C(k,"$playerSize",i),s=()=>C(w,"$rotateAlpha",i),a={MOBILE:150,DESKTOP:278},l=u(e,"time",7,""),c=u(e,"isMobile",7,!1),p=u(e,"videoEpisodes",23,()=>[]),f=u(e,"previewThumbsData",7),v=u(e,"progress",7,0),m=u(e,"duration",7,0),g=u(e,"isInteractive",7,!1),b=Be(),w=b.ui.rotateAlpha,k=b.ui.playerSize,V=de(0),F=de(0),M=de(""),H=de(0),S=de(0),q=de(0),W=de(0),U=_(()=>du(v(),m(),p())),ie=_(()=>se(n().height,c()));ot(()=>{(Y=>(K(V,ke(Y.width)),K(F,ke(Y.height))))(J())}),ot(()=>{(Y=>(K(M,ke(Y.imgSrc)),K(H,ke(Y.imgWidth)),K(S,ke(Y.imgHeight)),K(q,ke(Y.imgOffsetX)),K(W,ke(Y.imgOffsetY))))(xe(v()))});function se(Y,ce){let Ge=ce?a.MOBILE:a.DESKTOP,{isVertical:G}=fe(),Ve=30;return r(U)?.text&&(Ve+=16),G&&(Ve+=18,Ve+=50),Math.min(Math.max(Y-Ve,0),Ge)}function fe(){let Y=f().frameWidth,ce=f().frameHeight,Ge=ce>Y;return{width:Y,height:ce,isHorizontal:!Ge,isVertical:Ge}}function J(){let{height:Y,isHorizontal:ce,isVertical:Ge,width:G}=fe();return ce&&(Y=Y/G*r(ie),G=r(ie)),Ge&&(G=G/Y*r(ie),Y=r(ie)),{width:G,height:Y}}function xe(Y){let ce;f().isUV?ce=Math.floor(m()*Y/f().frequency):ce=Math.min(f().countTotal,Math.max(0,Math.floor(f().countTotal*Y)));let Ge=Math.floor(ce/f().countPerImage),G=Math.floor(ce%f().countPerImage/f().countPerRow),Ve=ce%f().countPerRow,ue=Math.floor(f().countPerImage/f().countPerRow);!f().isUV&&Ge===Math.floor(f().countTotal/f().countPerImage)&&(ue=Math.floor(f().countTotal%f().countPerImage/f().countPerRow),f().countTotal%f().countPerImage%f().countPerRow>0&&ue++);let We=f().countPerRow;!f().isUV&&Ge===Math.floor(f().countTotal/f().countPerImage)&&f().countTotal%f().countPerImage>0&&(We=Math.min(f().countPerRow,f().countTotal%f().countPerImage));let rt=r(V)*We,Ue=r(F)*ue,we=-Ve*r(V),Me=-G*r(F);return{imgSrc:f().links[Ge],imgWidth:rt,imgHeight:Ue,imgOffsetX:we,imgOffsetY:Me}}var Ce=rb(),X=y(Ce);{var me=Y=>{var ce=ob();L(()=>pe(ce,"style",`width: ${r(V)}px; height: ${r(F)}px; background-image: url(${r(M)}); background-size: ${r(H)}px ${r(S)}px; background-position: ${r(q)}px ${r(W)}px; transform: translateY(${s()%180?-35:0}px) rotate(${s()}deg);`)),x(Y,ce)};O(X,Y=>{r(M)&&Y(me)})}var he=N(X,2),te=y(he);{var le=Y=>{var ce=Ye(),Ge=ye(ce);{var G=ue=>{var We=er();L(rt=>Se(We,rt),[()=>j("tooltip_episode_unfinished")]),x(ue,We)},Ve=ue=>{var We=er();L(()=>Se(We,r(U).text||"")),x(ue,We)};O(Ge,ue=>{g()&&r(U).completed===!1?ue(G):ue(Ve,!1)})}x(Y,ce)};O(te,Y=>{r(U)&&Y(le)})}$(he);var z=N(he,2);{var je=Y=>{var ce=nb(),Ge=y(ce,!0);$(ce),L(()=>Se(Ge,l())),x(Y,ce)};O(z,Y=>{g()||Y(je)})}$(Ce),L(()=>{ne(Ce,"mobile",c()),pe(he,"style",`max-width: ${r(V)}px;`)}),x(t,Ce);var Re=E({get time(){return l()},set time(Y=""){l(Y),d()},get isMobile(){return c()},set isMobile(Y=!1){c(Y),d()},get videoEpisodes(){return p()},set videoEpisodes(Y=[]){p(Y),d()},get previewThumbsData(){return f()},set previewThumbsData(Y){f(Y),d()},get progress(){return v()},set progress(Y=0){v(Y),d()},get duration(){return m()},set duration(Y=0){m(Y),d()},get isInteractive(){return g()},set isInteractive(Y=!1){g(Y),d()},$set:A,$on:(Y,ce)=>P(e,Y,ce)});return o(),Re}var ab=D('<span class="time svelte-1jr6obn"> </span>'),lb=D("<!> <!>",1),cb={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 pu(t,e){if(new.target)return T({component:pu,...t});I(e,!0),oe(t,cb);let[i,o]=Je(),n=()=>C(se,"$interactiveEpisodes$",i),s=()=>C(H,"$duration$",i),a=()=>C(M,"$position$",i),l=()=>C(xe,"$isInteractiveExpectation$",i),c=()=>C(J,"$isInteractiveTime$",i),p=()=>C(S,"$isLive$",i),f=()=>C(W,"$isMobile",i),v=()=>C(q,"$isActiveLive$",i),m=()=>C(F,"$bufferedProgress$",i),g=()=>C(me,"$disabledControls$",i),b=u(e,"showTimeline",7,!1),w=u(e,"ref",15,void 0),k=Be(),V=Qt(),F=k.state.bufferedProgress$,M=k.state.positionWithScrubbing$,H=k.state.duration$,S=k.state.isLive$,q=k.state.isActiveLive$,W=k.ui.isMobile,U=V.features.episodes?k.actions.internal.getVideoEpisodes():void 0,ie=k.actions.internal.getPreviewThumbsData(),se=k.state.interactiveEpisodes$,fe=k.state.isInteractive,J=k.state.isInteractiveTime$,xe=k.state.isInteractiveExpectation$,Ce=k.actions.internal.correctSeekTimeToInteractive,X=k.callbacks?.onDisabledTimelineClick,me=k.ui.controls.disabledControls$,he=k.ui.t,te=V.features.interactiveResponsiveUi,le=_(()=>fe?n():U),z=_(()=>or(s())),je=_(()=>or(a())),Re=_(()=>a()/s()),Y=_(()=>l()||c()),ce=de(!1),Ge=de(""),G=de(0),Ve=de(0),ue=de(0),We=_(()=>({containerWidth:r(Ve),translateXPx:r(G),translateYPx:fe&&ie?-36:-16,active:r(ce)&&b()&&!r(Y)&&!te,pointer:!V.features.timelinePreview||!ie||p()})),rt=he("aria_timeline"),Ue=_(()=>he("aria_timeline_value",{position:r(je),duration:r(z)}));function we(ze){return!Ce||!fe?ze:Ce(ze*s())/s()}function Me(ze){k.actions.internal.startScrubbing(we(ze))}function st(ze){c()||k.actions.internal.progressScrubbing(we(ze))}function ct(ze){k.actions.internal.completeScrubbing(we(ze)),K(ce,!1)}function _e(ze,ae,gt){ee(ze,ae,gt),K(ce,!0)}function et(ze,ae,gt){ee(ze,ae,gt),K(ce,!0)}function yt(){K(ce,!1)}function ee(ze,ae,gt){K(ue,ke(we(ze))),K(G,ke(ae)),gt&&K(Ve,ke(gt)),K(Ge,ke(tt(ze)))}function tt(ze){let ae=or((p()?1-ze:ze)*s());return p()?`-${ae}`:ae}var $t=lb(),dt=ye($t);cu(dt,vs(()=>r(We),{children:(ze,ae)=>{var gt=Ye(),Ze=ye(gt);{var Tt=Zt=>{uu(Zt,{get time(){return r(Ge)},get isMobile(){return f()},get videoEpisodes(){return r(le)},previewThumbsData:ie,get progress(){return r(ue)},get duration(){return s()},isInteractive:fe})},Vt=Zt=>{var at=ab(),bt=y(at,!0);$(at),L(()=>Se(bt,r(Ge))),x(Zt,at)};O(Ze,Zt=>{V.features.timelinePreview&&ie&&!p()?Zt(Tt):Zt(Vt,!1)})}x(ze,gt)},$$slots:{default:!0}}));var ge=N(dt,2);let Pe=_(()=>Math.round(r(Re)*100)),$e=_(()=>g().has("TIMELINE"));Bs(ge,{className:"timeline-slider",get isActiveLive(){return v()},get isMobile(){return f()},ariaLabel:rt,ariaValueMin:0,get ariaValueMax(){return s()},get ariaValueNow(){return r(Pe)},get ariaValueText(){return r(Ue)},get loadedProgress(){return m()},get filledProgress(){return r(Re)},get handleProgress(){return r(Re)},get videoEpisodes(){return r(le)},onPointerDown:Me,onHandleMove:st,onPointerMove:et,onPointerUp:ct,onPointerEnter:_e,onPointerLeave:yt,onDisabledClick:X,isInteractive:fe,get disabled(){return r($e)},get hideHandel(){return c()},get ref(){return w()},set ref(ze){w(ze)}}),x(t,$t);var Qe=E({get showTimeline(){return b()},set showTimeline(ze=!1){b(ze),d()},get ref(){return w()},set ref(ze=void 0){w(ze),d()},$set:A,$on:(ze,ae)=>P(e,ze,ae)});return o(),Qe}var db={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 ul(t,e){if(new.target)return T({component:ul,...t});I(e,!0),oe(t,db);let[i,o]=Je(),n=()=>C(c,"$isMobile",i),s=u(e,"position",7,0),a=u(e,"duration",7,0),l=Be(),c=l.ui.isMobile,p=l.ui.t,f=_(()=>or(a())),v=_(()=>or(s())),m=_(()=>s()/a()),g=_(()=>p("aria_timeline_value",{position:r(v),duration:r(f)})),b=_(()=>Math.round(r(m)*100));Bs(t,{className:"timeline-ads-slider",ariaValueMin:0,get ariaValueMax(){return a()},get ariaValueNow(){return r(b)},get ariaValueText(){return r(g)},get filledProgress(){return r(m)},hideHandel:!0,get squareBorders(){return n()}});var w=E({get position(){return s()},set position(k=0){s(k),d()},get duration(){return a()},set duration(k=0){a(k),d()},$set:A,$on:(k,V)=>P(e,k,V)});return o(),w}var ub=D('<div class="timeline svelte-1gqonyf"><!></div>'),pb=D('<div class="timeline-stub svelte-1gqonyf"></div>'),fb={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 pl(t,e){if(new.target)return T({component:pl,...t});I(e,!0),oe(t,fb);let[i,o]=Je(),n=()=>C(b,"$isLive$",i),s=()=>C(V,"$isMobile",i),a=()=>C(k,"$adPosition",i),l=()=>C(w,"$adDuration",i),c=u(e,"isAds",7,!1),p=u(e,"canRewindLive",7),f=u(e,"isRewindableLive",7),v=u(e,"isHidden",7,!1),m=u(e,"ref",15,void 0),g=Be(),b=g.state.isLive$,w=g.ads.duration,k=g.ads.position,V=g.ui.isMobile,F=_(()=>!v()&&(!n()||n()&&p()&&f()||c()));var M=Ye(),H=ye(M);{var S=U=>{var ie=ub(),se=y(ie);{var fe=xe=>{ul(xe,{get position(){return a()},get duration(){return l()}})},J=xe=>{pu(xe,{get showTimeline(){return r(F)},get ref(){return m()},set ref(Ce){m(Ce)}})};O(se,xe=>{c()?xe(fe):xe(J,!1)})}$(ie),L(()=>ne(ie,"mobile",s())),x(U,ie)},q=U=>{var ie=pb();L(()=>ne(ie,"mobile",s())),x(U,ie)};O(H,U=>{r(F)?U(S):U(q,!1)})}x(t,M);var W=E({get isAds(){return c()},set isAds(U=!1){c(U),d()},get canRewindLive(){return p()},set canRewindLive(U){p(U),d()},get isRewindableLive(){return f()},set isRewindableLive(U){f(U),d()},get isHidden(){return v()},set isHidden(U=!1){v(U),d()},get ref(){return m()},set ref(U=void 0){m(U),d()},$set:A,$on:(U,ie)=>P(e,U,ie)});return o(),W}import{noop as gb}from"@vkontakte/videoplayer-shared/evergreen";var mb=Ie('<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 fu(t,e){if(new.target)return T({component:fu,...t});let i=Oe(e,["children","$$slots","$$events","$$legacy"]);I(e,!1);var o=mb();let n;var s=y(o);return De(s,e,"default",{},null),Te(3),$(o),L(()=>n=Le(o,n,{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none","aria-hidden":"true","data-testid":"episodes-icon",style:"flex-shrink:0",role:"img",...i},void 0,!0)),x(t,o),E({$set:A,$on:(a,l)=>P(e,a,l)})}var vb=Ie('<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 mu(t,e){if(new.target)return T({component:mu,...t});let i=Oe(e,["children","$$slots","$$events","$$legacy"]);I(e,!1);var o=vb();let n;var s=y(o);return De(s,e,"default",{},null),Te(),$(o),L(()=>n=Le(o,n,{xmlns:"http://www.w3.org/2000/svg",width:"12",height:"13",fill:"none","aria-hidden":"true","data-testid":"chevron-light-icon",role:"img",...i},void 0,!0)),x(t,o),E({$set:A,$on:(a,l)=>P(e,a,l)})}var hb=D('<span class="text mobile svelte-1yhs2ga"> </span> <div class="chevron-episodes svelte-1yhs2ga"><!></div>',1),_b=D('<span class="text svelte-1yhs2ga"> </span>'),$b=D('<span class="text count svelte-1yhs2ga"> </span>'),bb=D("<!> <!>",1),yb={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 fl(t,e){if(new.target)return T({component:fl,...t});I(e,!0),oe(t,yb);let[i,o]=Je(),n=()=>C(b,"$currentGridType$",i),s=()=>C(w,"$openedByKeyboard$",i),a=()=>C(k,"$panelOpened$",i),l=()=>C(V,"$isMobile",i),c=u(e,"position",7,0),p=u(e,"duration",7,0),f=u(e,"timeCodes",23,()=>[]),v=Be(),m=v.callbacks?.onEpisodeChanged??gb,g=!!v.callbacks?.onEpisodeClicked,b=v.ui.currentGridType$,w=v.ui.episodes.openedByKeyboard$,k=v.ui.episodes.panelOpened$,V=v.ui.isMobile,F=v.ui.t,M=de(void 0),H=X=>{if(!!v.callbacks?.onEpisodeClicked){let he=Ms(X);w.set(he),k.set(!0),v.callbacks?.onEpisodeClicked?.(he)}},S=de(null),q=_(()=>c()/p());ot(()=>{let X=du(r(q),p(),f());X?r(S)?.time!==X.time&&(m(X),K(S,ke(X))):K(S,null)});let W=_(()=>r(S)?.text||""),U=_(()=>Vi(n(),"xl")?"FULL":Vi(n(),"m")&&ch(n(),"xl")?"COUNT":"SHORT"),ie=_(()=>`${F("tooltip_episodes")}: ${r(W)}`),se=async(X,me,he)=>{await to(),X?.getAttribute("aria-expanded")==="false"&&me&&!he&&xt(()=>{w.set(!1),X.focus()})};ot(()=>{se(r(M),s(),a())});var fe=Ye(),J=ye(fe);{var xe=X=>{let me=_(()=>l()?"px-0":"");Mt(X,{get className(){return`w-max btn-full-opacity btn-jc-l ${r(me)??""}`},testId:"btn-episodes",click:H,disabled:!g,get ariaExpanded(){return a()},get ariaLabel(){return r(ie)},get ref(){return r(M)},set ref(he){K(M,ke(he))},children:(he,te)=>{var le=Ye(),z=ye(le);{var je=Y=>{var ce=hb(),Ge=ye(ce),G=y(Ge,!0);$(Ge);var Ve=N(Ge,2),ue=y(Ve);mu(ue,{}),$(Ve),L(()=>Se(G,r(W))),x(Y,ce)},Re=Y=>{var ce=bb(),Ge=ye(ce);fu(Ge,{});var G=N(Ge,2);{var Ve=We=>{var rt=_b(),Ue=y(rt,!0);$(rt),L(()=>Se(Ue,r(W))),x(We,rt)},ue=We=>{var rt=Ye(),Ue=ye(rt);{var we=Me=>{var st=$b(),ct=y(st,!0);$(st),L(()=>Se(ct,f().length)),x(Me,st)};O(Ue,Me=>{r(U)==="COUNT"&&Me(we)},!0)}x(We,rt)};O(G,We=>{r(U)==="FULL"?We(Ve):We(ue,!1)})}x(Y,ce)};O(z,Y=>{l()?Y(je):Y(Re,!1)})}x(he,le)},$$slots:{default:!0}})};O(J,X=>{r(S)&&X(xe)})}x(t,fe);var Ce=E({get position(){return c()},set position(X=0){c(X),d()},get duration(){return p()},set duration(X=0){p(X),d()},get timeCodes(){return f()},set timeCodes(X=[]){f(X),d()},$set:A,$on:(X,me)=>P(e,X,me)});return o(),Ce}import{debounceFn as $y}from"@vkontakte/videoplayer-shared/evergreen";import{ChromecastState as Eb,PlaybackState as pc,Player as Pb,PredefinedQualityLimits as es,VideoFormat as fc,clientChecker as Ab}from"@vkontakte/videoplayer-core/evergreen";import{assertNonNullable as Tn,getHighestQuality as Mb,InterfaceLanguage as Lb,isInvariantQuality as Rb,isNonNullable as Vb,loadVKLangPack as Nb,Logger as Bb,map as yh,merge as Db,Observable as Ob,Subject as yu,Subscription as dm,Tracer as Hb,ValueSubject as Fb,VideoQuality as Ub,devNull as zb,now as Wb}from"@vkontakte/videoplayer-shared/evergreen";import{SeekAction as $s}from"@vkontakte/videoplayer-statistics/evergreen";import{detectEmbed as xb,devNull as Yt,now as jt}from"@vkontakte/videoplayer-shared/evergreen";import{addScript as wb,Subject as Co,clearVideoElement as Cb}from"@vkontakte/videoplayer-shared/evergreen";var mh=(t,e)=>t<400||e<225?5:t<640||e<360?0:t<960||e<540?1:t<1280||e<720?2:3;var Sb="//ad.mail.ru/static/admanhtml/rbadman-html5.min.js",vu=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 Co,loadStarted$:new Co,loadEnded$:new Co,loadError$:new Co,ready$:new Co,slotRequested$:new Co,started$:new Co,timeRemained$:new Co,paused$:new Co,resumed$:new Co,ended$:new Co,empty$:new Co,skipped$:new Co,clicked$:new Co,closed$:new Co,error$:new Co};this.loadAdman=e=>(Yt.push("ui",{key:"videoplayer_embed",strings:["new","adman_load_start",this.useAdmanFromNPM?"npm":"http"],numbers:[jt()]}),this.useAdmanFromNPM?this.loadAdmanNPM(e):this.loadAdmanMailRu(e));this.loadAdmanMailRu=e=>new Promise((i,o)=>{let n;this.events.loadStarted$.next();let s=()=>{clearTimeout(n),delete window.admanAsyncInit,window.AdmanHTML?(Yt.push("ui",{key:"videoplayer_embed",strings:["new","adman_async_init_done","http"],numbers:[jt()]}),i(),this.events.loadEnded$.next()):(Yt.push("ui",{key:"videoplayer_embed",strings:["new","adman_init_timed_out","http"],numbers:[jt()]}),o())};wb(Sb,e,this.loadTimeout).then(()=>{Yt.push("ui",{key:"videoplayer_embed",strings:["new","adman_script_loaded","http"],numbers:[jt()]}),window.AdmanHTML?(Yt.push("ui",{key:"videoplayer_embed",strings:["new","adman_already_inited","http"],numbers:[jt()]}),i(),this.events.loadEnded$.next()):(Yt.push("ui",{key:"videoplayer_embed",strings:["new","adman_wait_async_init","http"],numbers:[jt()]}),window.admanAsyncInit=s,n=window.setTimeout(s,this.initTimeout))}).catch(a=>{Yt.push("ui",{key:"videoplayer_embed",strings:["new","adman_script_load_error","http",String(a)],numbers:[jt()]}),o(),clearTimeout(n)})});this.loadAdmanNPM=e=>new Promise((i,o)=>{let n;this.events.loadStarted$.next();let s=()=>{clearTimeout(n),delete window.admanAsyncInit,window.AdmanHTML?(Yt.push("ui",{key:"videoplayer_embed",strings:["new","adman_init_done","npm"],numbers:[jt()]}),i(),this.events.loadEnded$.next()):(Yt.push("ui",{key:"videoplayer_embed",strings:["new","adman_init_timed_out","npm"],numbers:[jt()]}),o())},a=()=>{l=!0,o()},l=!1,c=window.setTimeout(()=>{Yt.push("ui",{key:"videoplayer_embed",strings:["new","adman_load_timed_out","npm"],numbers:[jt()]}),a()},this.loadTimeout);e.addEventListener("abort",a),e.aborted&&(Yt.push("ui",{key:"videoplayer_embed",strings:["new","adman_load_aborted","npm"],numbers:[jt()]}),a()),window.AdmanHTML=window.AdmanHTML||null,import("@adtech/rbadman/out/rbadman-html5.min.js").then(()=>{Yt.push("ui",{key:"videoplayer_embed",strings:["new","adman_chunk_imorted","npm","failed: "+String(l)],numbers:[jt()]}),!l&&(window.AdmanHTML?(Yt.push("ui",{key:"videoplayer_embed",strings:["new","adman_already_inited","npm"],numbers:[jt()]}),i(),this.events.loadEnded$.next()):(Yt.push("ui",{key:"videoplayer_embed",strings:["new","adman_wait_async_init","npm"],numbers:[jt()]}),window.admanAsyncInit=s,n=window.setTimeout(s,this.initTimeout)))},a).finally(()=>{clearTimeout(n),clearTimeout(c),e.removeEventListener("abort",a)})});this.onAdsReady=()=>{Yt.push("ui",{key:"videoplayer_embed",strings:["new","adman_ads_ready"],numbers:[jt()]}),this.log({message:"ads ready"}),this.events.ready$.next(),this.startPreroll()};this.onAdStarted=(e,i)=>{Yt.push("ui",{key:"videoplayer_embed",strings:["new","adman_ad_started",e,"muted: "+i.muted],numbers:[jt(),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"}),Ae(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=()=>{Yt.push("ui",{key:"videoplayer_embed",strings:["new","adman_ad_pased",this.currentAdSection??""],numbers:[jt()]}),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=()=>{Yt.push("ui",{key:"videoplayer_embed",strings:["new","adman_ad_played",this.currentAdSection??""],numbers:[jt()]}),this.startWatchDog(),this.adsState?(this.log({message:"ad played"}),this.adsState.playbackState.set("playing")):this.onAdError("Player callback failed: Adman is not initialized")};this.onAdMidrollPoint=()=>{if(Yt.push("ui",{key:"videoplayer_embed",strings:["new","adman_ad_midroll_pioint"],numbers:[jt()]}),this.adman&&this.actions){this.log({message:"midroll point"}),this.actions.switchFromVideoToAds(),this.currentAdSection="midroll",this.startWatchDog();try{this.adman.start("midroll")}catch{this.onAdError("could not start midroll")}}else this.onAdError("Midroll callback failed: Adman is not initialized")};this.onAdSkipped=()=>{Yt.push("ui",{key:"videoplayer_embed",strings:["new","adman_ad_skipped",this.currentAdSection??""],numbers:[jt()]}),this.log({message:"ad skipped"}),this.stopWatchDog()};this.onAdClosed=()=>{Yt.push("ui",{key:"videoplayer_embed",strings:["new","adman_ad_closed",this.currentAdSection??""],numbers:[jt()]}),this.log({message:"ad closed"}),this.currentAdSection&&this.events.closed$.next(this.currentAdSection),this.stopWatchDog(),this.switchToVideo()};this.onAdCompleted=()=>{Yt.push("ui",{key:"videoplayer_embed",strings:["new","adman_ad_completed",this.currentAdSection??""],numbers:[jt()]}),this.log({message:"ad completed"}),this.currentAdSection?this.events.ended$.next(this.currentAdSection):this.events.empty$.next(),this.switchToVideo(),this.stopWatchDog()};this.onAdClicked=()=>{Yt.push("ui",{key:"videoplayer_embed",strings:["new","adman_ad_clicked",this.currentAdSection??""],numbers:[jt()]}),this.log({message:"ad clicked"}),this.videoElement?.pause(),this.currentAdSection&&this.events.clicked$.next(this.currentAdSection),this.stopWatchDog()};this.onAdError=(e="ad error")=>{Yt.push("ui",{key:"videoplayer_embed",strings:["new","adman_ad_error",e],numbers:[jt()]}),this.log({message:e}),this.events.error$.next(e),this.switchToVideo(!0),this.stopWatchDog()};this.log=e.createComponentLog("AdmanWrapper"),Yt.push("ui",{key:"videoplayer_embed",strings:["new","adman_created"],numbers:[jt()]}),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){if(Yt.push("ui",{key:"videoplayer_embed",strings:["new","adman_init","already inited: "+!!this.adman],numbers:[jt(),e.slotId]}),this.adman)return;this.events.init$.next(),this.startWatchDog();let{width:i,height:o,isFullscreen:n,isAutoplay:s,adsContainer:a,adsVideoElement:l,slotId:c,params:p={},duration:f,previewParam:v}=e,m,g=this.playerState&&Ae(this.playerState.vsid);g&&(this.isVsidOriginal?m=g:m=parseInt(g,36));let{isEmbed:b,immediateOrigin:w}=xb(),k=(b?w:window.location.href)??window.location.href,V={...p,dl:encodeURIComponent(k),autoplay:s?1:0,player_width:i,player_height:o,preview:v,...m?{request_id:m}:{},duration:f,puid10:mh(i,o),puid11:n?0:1};v||delete V.preview;let F={slot:c,wrapper:a,videoEl:l,videoQuality:o,params:V,browser:{mobile:!1}};try{let M=new window.AdmanHTML;M.setDebug(!1),M.onReady(this.onAdsReady),M.onStarted(this.onAdStarted),M.onPlayed(this.onAdPlayed),M.onPaused(this.onAdPaused),M.adMidrollPoint(this.onAdMidrollPoint),M.onClosed(this.onAdClosed),M.onSkipped(this.onAdSkipped),M.onClicked(this.onAdClicked),M.onTimeRemained(this.onAdTimeRemained),M.onCompleted(this.onAdCompleted),M.onError(this.onAdError),M.init(F),this.adman=M,this.videoElement=l,this.events.slotRequested$.next(),this.log({message:`adman init, config: ${JSON.stringify(F)}`})}catch(M){Yt.push("ui",{key:"videoplayer_embed",strings:["new","adman_init_threw",String(M)],numbers:[jt()]}),this.onAdError("could not init adman")}}switchToVideo(e=!1){if(Yt.push("ui",{key:"videoplayer_embed",strings:["new","adman_switch_to_video",this.currentAdSection??"","force: "+e],numbers:[jt()]}),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 o="Switch to video: Adman state was not updated correctly";this.log({message:o}),this.events.error$.next(o)}this.actions.switchFromAdsToVideo?.(!i)}}togglePlay(){if(Yt.push("ui",{key:"videoplayer_embed",strings:["new","adman_toggle_play",this.currentAdSection??""],numbers:[jt()]}),this.adsState){this.log({message:"toggle play"});let e=Ae(this.adsState.playbackState);e==="playing"?this.pause():e==="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{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{this.onAdError("could not set ad fullscreen")}}startPreroll(){if(Yt.push("ui",{key:"videoplayer_embed",strings:["new","adman_start_preroll"],numbers:[jt()]}),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{this.onAdError("could not start preroll")}}}else this.onAdError("Can not start preroll: Adman is not initialized")}startPostroll(){if(Yt.push("ui",{key:"videoplayer_embed",strings:["new","adman_start_postroll",this.currentAdSection??""],numbers:[jt()]}),this.adman&&this.actions){this.log({message:"start postroll"}),this.actions.switchFromVideoToAds(),this.currentAdSection="postroll",this.startWatchDog();try{this.adman.start("postroll")}catch{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(){if(Yt.push("ui",{key:"videoplayer_embed",strings:["new","adman_pplay",this.currentAdSection??""],numbers:[jt()]}),this.adman){this.log({message:"ad play"}),this.startWatchDog();try{this.adman.resume(),this.events.resumed$.next()}catch{this.onAdError("could not resume ad")}}else this.onAdError("Can not play: Adman is not initialized")}pause(){if(Yt.push("ui",{key:"videoplayer_embed",strings:["new","adman_pause",this.currentAdSection??""],numbers:[jt()]}),this.adman){this.stopWatchDog(),this.log({message:"ad pause"});try{this.adman.pause(),this.events.paused$.next()}catch{this.onAdError("could not pause ad")}}else this.onAdError("Can not pause: Adman is not initialized")}skip(){if(Yt.push("ui",{key:"videoplayer_embed",strings:["new","adman_skip",this.currentAdSection??""],numbers:[jt()]}),this.adman){this.stopWatchDog(),this.log({message:"ad skip"});try{this.adman.skip(),this.events.skipped$.next()}catch{this.onAdError("could not skip ad")}}else this.onAdError("Can not skip: Adman is not initialized")}setPosition(e,i){this.adman?.setPosition(Math.floor(e),Math.floor(i))}destroy(){Yt.push("ui",{key:"videoplayer_embed",strings:["new","adman_destroy"],numbers:[jt()]}),this.log({message:"destroy"}),this.stopWatchDog(),this.adman?.destroy(),this.videoElement&&Cb(this.videoElement),this.isDestroyed=!0}};var vh=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 rm=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 s of n){let a={startTime:0,endTime:0,texts:[],lang:i},l=s.split(this.oneLineRegExp);for(let c of l)if(!a.startTime&&!a.endTime){let p=new gu,{startTime:f,endTime:v}=p.parse(c);a.startTime=f,a.endTime=v}else if(c.trim()!==""){let p=new sm,{texts:f}=p.parse(c);a.texts=[...a.texts,...f]}(a.startTime||a.endTime)&&a.texts.length>0&&o.push(a)}return o}},gu=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 s=Number(e)*60*60,a=Number(i)*60,l=Number(o),c=+`0.${n}`;return s+a+l+c}},sm=class{constructor(){this.letterTagRegExp=/<[a-z]*>|<\/[a-z]*>/}parse(e){let i={texts:[]},n=e.replace(new RegExp(this.letterTagRegExp,"g"),"").split({[Symbol.split](a){let l=0,c=[];for(;l<a.length;){let p=["<",">"].reduce((f,v)=>{let m=a.indexOf(v,l);return f===-1||f>m?m:f},-1);if(p===-1){c.push(a.substring(l));break}c.push(a.substring(l,p)),l=p+1}return c}}),s=new gu;for(let a of n)s.isTime(a)?i.texts.push({type:"timestamp",value:s.parseTime(a)}):i.texts.push({type:"text",value:a});return i}},gh=rm;import{isNonNullable as am}from"@vkontakte/videoplayer-shared/evergreen";var fa,rr,lm=0,cm=!1,hh="",_h=(t,e=0,i=0)=>t<e&&t<i,hu=(t,e=0,i=0)=>t>=e&&t<=i,kb=(t,e=0,i=0)=>t>e&&t>i,$h=(t,e,i,o=!1)=>{let n=i.find(({id:l})=>l===e.value)?.subtitles;if(o)return n?.find(({startTime:c,endTime:p})=>hu(t,c,p));let s=t>=lm,a=t<lm;if(lm=t,a&&(cm=!1),am(fa)&&hu(t,fa.startTime,fa.endTime)&&hh===e.value)return fa;if(!am(rr)&&n?.length&&!cm){rr=n.find(({startTime:c,endTime:p})=>hu(t,c,p)||s&&_h(t,c,p)),fa=void 0,!am(rr)&&n[n.length-1].endTime<t&&(cm=!0);return}else{if(hu(t,rr?.startTime,rr?.endTime))return fa=rr,rr=void 0,hh=e.value,fa;(s&&kb(t,rr?.startTime,rr?.endTime)||a&&_h(t,rr?.startTime,rr?.endTime))&&(rr=void 0)}};var bh={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"},Tb={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"},_u=t=>bh[t]??bh[Tb[t]]??void 0;import{Subscription as Ib}from"@vkontakte/videoplayer-shared/evergreen";import"@vkontakte/videoplayer-statistics/evergreen";var $u=class{constructor(e,i=new Ib){this.oneStat=e;this.statSubscription=i}destroy(){this.oneStat.destroy(),this.statSubscription.unsubscribe()}};var bu=(i=>(i.DESKTOP_CONTROL_PANEL_LEFT="desktop-control-panel-left",i.DESKTOP_CONTROL_PANEL_RIGHT="desktop-control-panel-right",i))(bu||{});var Jr=t=>t??0,ml=(t,e)=>{let i=t?.getBoundingClientRect?.(),o=e?.getBoundingClientRect?.();return{top:Math.round(Jr(i?.top)-Jr(o?.top)),left:Math.round(Jr(i?.left)-Jr(o?.left)),bottom:Math.round(Jr(i?.bottom)-Jr(o?.top)),right:Math.round(Jr(i?.right)-Jr(o?.left))}},vl=t=>{let e=t?.getBoundingClientRect?.();return{width:Jr(e?.width),height:Jr(e?.height)}};var xh=({interfaceLanguage:t,isCyrillicRelatedInterface:e,videoId:i,isClip:o,isLiveCatchUpMode:n,statAuthToken:s,isAudioDisabled:a,canDownload:l,callbacks:c,webApi:p,videoEpisodes:f,previewThumbsData:v,uiConfig:m,coreConfig:g,player:b,disabledControls:w,isInteractive:k,interactiveRanges$:V,isInteractiveTime$:F,replayInteractive:M,stopPlayer:H,hasInteractiveBranches:S,playPrevChapterDisabledTooltip:q,additionalButtons:W,additionalSettingsMenuItems:U,additionalContextMenuItems:ie,playPrevVideo:se,playNextVideo:fe,looped:J=!1,statistics:xe,saveRate:Ce,internalsExposure:X})=>{let me={...g,configName:[...g.configName??[],"ui"],isAudioDisabled:a,live:{...g.live??{},isLiveCatchUpMode:!!n}},he=m,te=Hb.createRootTracer(he.features.saveTraceInfoToFile),le=te.createComponentTracer("Store"),z=b||new Pb(me,te);X?.expose({corePlayer:z});let je=new Bb,Re=new vu(je,{loadTimeout:he.ads.loadTimeout,initTimeout:he.ads.initTimeout,runtimeTimeout:he.ads.runtimeTimeout,useAdmanFromNPM:he.ads.useAdmanFromNPM,volumeMultiplier:he.ads.volumeMultiplier,isVsidOriginal:he.ads.isVsidOriginal}),Y=ra.getInstance(),ce=p?.pictureInPictureApi,Ge=p?.annotationsApi,G=je.createComponentLog("Store"),Ve,ue,We={},rt=new dd,Ue=xe?Xt(xe.oneStat.vsid$):ir(void 0),we=be(Es()),Me=be(!1),st=ce?.info.isActive$??new Fb(!1),ct=be(0),_e=be([]),et=Db(z.events.fatalError$,z.events.managedError$).subscribe(h=>_e.update(R=>[...R,h])),yt=ir(!1,h=>{let R=z.events.fatalError$.subscribe(()=>h(!0));return()=>R.unsubscribe()}),ee=async h=>{let R=Object.values(Lb).includes(h);if(he.downloadVKLanguages&&(R&&he.updateBuiltinLanguages||!Xf(h))){let Ne;try{Ne=await Nb(h,tg,ig)}catch(ut){xe?.oneStat?.logError({errorType:"VKLangPack",fatal:!1}),Y?.report(ut,{errorType:"VKLangPack",fatal:!1})}Ne&&(Zf({language:h,pack:Ne,fallback:he.defaultLanguage}),tt.set(h))}Xf(h)&&tt.set(h)},tt=be(t),$t=be(e);ee(t);let dt=(h,R)=>{let Q=Ae(tt);return Jf(Q,h,R,he.defaultLanguage)},ge=be("thumb"),Pe=(()=>{let h=ai([yt,ge],([R,Q])=>R?"crashed":Q);return{...h,is:R=>Ae(h)===R}})(),$e=(()=>{let h=be(new Set(w));return{...h,add:R=>{h.update(Q=>new Set([...Q].concat(R)))},remove:R=>{h.update(Q=>{let Ne=[...Q];return new Set(Array.isArray(R)?Ne.filter(ut=>!R.includes(ut)):Ne.filter(ut=>ut!==R))})},includes:R=>{let Q=Ae(h);return Array.isArray(R)?R.every(Ne=>Q.has(Ne)):Q.has(R)}}})();le.log("create store"),G({message:"create store"});let Qe=h=>{let R=h.container;R.append(z.experimental.element$.getValue()),Zt=new MutationObserver(Q=>{let{removedNodes:Ne}=Q[0];Ne.length&&R.append(z.experimental.element$.getValue())}),Zt.observe(R,{childList:!0})},ze=h=>{G({message:`init video, config: ${JSON.stringify(h)}`}),k?Qe(h):(zb.push("ui",{key:"videoplayer_embed",strings:["new","core_init_video"],numbers:[Wb()]}),z.initVideo(h)),le.log("init video",{isInteractive:k}),h.subtitles&&z.setExternalTextTracks(h.subtitles),Ve=h},ae=new yu,gt=h=>ae.next(h),Ze=new yu,Tt=new yu,Vt=new yu,Zt=null,at={actionRewind$:Ze,actionSeek$:Tt,inPiP$:st,inFullscreen$:new Ob(h=>we.subscribe(R=>h.next(R))),actionSetSubtitle$:Vt,nextMovie$:ae};if(xe){let{oneStat:h,statSubscription:R}=xe;k||R.add(h.attachTo(z)),R.add(h.attachToUi(at)),R.add(h.attachToAds(Re.events)),h.authorize(s).catch(Q=>{G({message:`onestat auth error ${String(Q)}`})})}if(Y){let h=new dm,R=(Q,Ne)=>h.add(Q.subscribe(Ne));if(R(z.events.managedError$,Q=>{Y.logIError(Q)}),R(z.events.fatalError$,Q=>{Y.logIError(Q,!0)}),xe){let{oneStat:Q}=xe;R(Q.experimental.error$,Ne=>{Y.logIError(Ne)})}Y.sentrySubscription.add(h)}let bt=()=>{Ab.device.isIOS&&ue&&Og(ue).catch(h=>{G({message:`exitIosSafariFullscreen failed: ${h}`})})},Rt=new dm().add(z.experimental.element$.subscribe(h=>{h&&(ue=h,h.classList.add("player-media"),la(ce)&&(ce.updateVideoElement(),ce.registryEventHandlers()),k&&h.setAttribute("pip","false"))})).add(z.events.ended$.subscribe(()=>{bt(),c?.onEnded?.()})).add(z.events.looped$.subscribe(()=>{c?.onLooped?.()})).add(z.events.started$.subscribe(async()=>{la(ce)&&await ce?.revealPictureInPicture();let h=z.info.muted$.getValue();c?.onStarted?.(),We.onStarted?.(h)})).add(z.events.willSeek$.subscribe(({from:h,to:R})=>{c?.onSeek?.(h,R)})).add(z.events.autoplaySoundProhibited$.subscribe(()=>{c?.onAutoplaySoundProhibited?.()})).add(z.info.position$.subscribe(h=>{let R=z.info.duration$.getValue();isFinite(R)&&R>0&&(c?.onTimeupdate?.(R,h),Re.setPosition(h,R))})).add(z.events.fatalError$.subscribe(h=>{c?.onCrashed?.(h?`${h.id}: ${h.message}`:void 0)})).add(z.events.fetcherRecoverableError$.subscribe(h=>{c?.onRecoverableError?.(h?`${h.id}: ${h.message}`:void 0)})).add(z.events.loadedMetadata$.subscribe(()=>{kt.state.loadedMetadata$.set(!0)})).add(z.info.is3DVideo$.subscribe(h=>{kt.ui.is3DVideo.set(h)})).add(z.info.isEnded$.subscribe(h=>{k&&(h?(F?.getValue()&&$e.add(rc),$e.add("PLAY_BUTTON")):$e.remove("PLAY_BUTTON"))})).add(z.info.liveTime$.subscribe(h=>{c?.onLiveTime?.(h)})).add(z.info.isStalled$.subscribe(h=>{c?.onStalledChanged?.(h)})).add(z.info.isLiveEnded$.subscribe(h=>h&&c?.onLiveEnded?.())).add(Re.events.loadStarted$.subscribe(()=>c?.adsInfo?.onLoadStarted?.())).add(Re.events.loadEnded$.subscribe(()=>c?.adsInfo?.onLoadEnded?.())).add(Re.events.loadError$.subscribe(()=>c?.adsInfo?.onLoadError?.())).add(Re.events.init$.subscribe(()=>c?.adsInfo?.onInit?.())).add(Re.events.ready$.subscribe(()=>c?.adsInfo?.onReady?.())).add(Re.events.started$.subscribe(h=>c?.adsInfo?.onStarted?.(h))).add(Re.events.timeRemained$.subscribe(h=>c?.adsInfo?.onTimeRemained?.(h))).add(Re.events.ended$.subscribe(h=>c?.adsInfo?.onCompleted?.(h))).add(Re.events.empty$.subscribe(()=>c?.adsInfo?.onEmpty?.())).add(Re.events.clicked$.subscribe(h=>c?.adsInfo?.onClicked?.(h))).add(Re.events.closed$.subscribe(h=>c?.adsInfo?.onClosed?.(h))).add(Re.events.error$.subscribe(h=>c?.adsInfo?.onError?.(h))).add(Re.events.paused$.subscribe(()=>c?.adsInfo?.onPaused?.())).add(Re.events.resumed$.subscribe(()=>c?.adsInfo?.onResumed?.())),Lt=new dm,Xe=()=>{let{debugLog:h}=he,R,Q="#9df7b7",Ne="#efd169";if(h&&h!==!0){let{colors:Ct}=h;R=h.tag,Q=Ct?.[0]??Q,Ne=Ct?.[1]??Ct?.[0]??Ne}let ut=R?`: ${R}`:"";Lt.add(z.events.log$.subscribe(Ct=>{console.debug(`%c sdk${ut} `,`background:${Q};`,`sdk component: ${Ct.component}`,Ct.message)})).add(je.log$.subscribe(Ct=>{console.debug(`%c ui${ut} `,`background:${Ne};`,`ui component: ${Ct.component}.`,Ct.message)}))},lt=()=>{Lt.unsubscribe()},Nt=(h,R)=>{le.log("start camera manual rotation",{mx:h,my:R}),z.startCameraManualRotation(h,R)},ii=(h=!1)=>{le.log("stop camera manual rotation",{immediate:h}),z.stopCameraManualRotation(h)},gi=(h,R,Q)=>{le.log("move camera focus px",{xpx:h,ypx:R,dt:Q}),z.moveCameraFocusPX(h,R,Q)},so=()=>{z.holdCamera()},hi=()=>{z.releaseCamera()},ao=ir(z.info.position$.getValue(),h=>{let R,Q,Ne=()=>{let ut=z.info.playbackState$.getValue(),Ct=z.info.isLive$.getValue(),qt=z.info.duration$.getValue(),ei=z.info.position$.getValue();if(ut&&[pc.PLAYING,pc.PAUSED].includes(ut)){let He=Ct?ei-qt:z.getExactTime();He!==Q&&h(He),Q=He}R=requestAnimationFrame(Ne)};return Ne(),()=>cancelAnimationFrame(R)}),B=Xt(z.info.playbackState$),Wt=Xt(z.info.currentBuffer$),oi=Xt(z.info.isEnded$),Ni=Xt(z.info.isLive$),fi=he.features.playbackRate?Xt(z.info.canChangePlaybackSpeed$):ir(!1),li=Xt(z.info.liveBufferTime$),lo=Xt(z.info.volume$),rn=Xt(z.info.muted$),co=ud(z.info.predefinedQualityLimitType$.pipe(yh(h=>h===es.TRAFFIC_SAVING)),z.info.predefinedQualityLimitType$.getValue()===es.TRAFFIC_SAVING),ho=ud(z.info.predefinedQualityLimitType$.pipe(yh(h=>h===es.HIGH_QUALITY)),z.info.predefinedQualityLimitType$.getValue()===es.HIGH_QUALITY),sn=Xt(z.info.autoQualityLimitingAvailable$),sr=Xt(z.info.availableQualities$),En=Xt(z.info.availableQualitiesFps$),ko=Xt(z.info.chromecastState$),it=Xt(z.info.chromecastDeviceName$),Bt=Xt(z.info.currentFormat$),Zi=Xt(z.info.throughputEstimation$),an=Xt(z.info.videoBitrate$),_o=Xt(z.info.intrinsicVideoSize$),Bi=Xt(z.info.duration$),Et=Xt(z.info.isAudioAvailable$),_i=null,Ti=z.info.isBuffering$,$o=ir(Ti.getValue(),h=>{let R=Ti.subscribe(Q=>{Q&&_i===null?_i=window.setTimeout(()=>{h(Ti.getValue()),_i=null},he.loaderDelay):h(Q)});return()=>{R.unsubscribe(),_i&&clearTimeout(_i)}}),zt=()=>{_i&&clearTimeout(_i),_i=null},Di=ai([Bi,Ni],([h,R])=>R?-h:h),Ii=ai([B],([h])=>h===pc.PLAYING),Pn=Xt(z.info.atLiveEdge$),An=Xt(z.info.atLiveDurationEdge$),zo=Xt(z.info.position$),bo=ai([zo,Bi],([h,R])=>isFinite(h)&&isFinite(R)&&!!R),uo=ai([ko],([h])=>h===Eb.CONNECTED),Mn=Xt(z.info.availableVideoStreams$),Ln=he.features.audioLanguages?Xt(z.info.availableAudioStreams$):ir([]),yo=Xt(z.info.currentVideoStream$),Vr=Xt(z.info.currentAudioStream$),xo=h=>{h.language&&jf(h.language),z.setVideoStream(h)},Ui=h=>{h.language&&jf(h.language),z.setAudioStream(h)},Rn=h=>{let R;if(h.length===1&&(R=h.at(0)),R??=h.find(Ne=>"isDefault"in Ne&&Ne.isDefault),R)return R;let Q=Sg();return Q&&(R=h.find(({language:Ne})=>Q===Ne)),R??=h.at(0),R},ar=!1;Rt.add(z.info.availableAudioStreams$.subscribe(h=>{if(!ar&&h.length){let R=Rn(h);R&&(z.setAudioStream(R),ar=!0)}}));let To=!1;Rt.add(z.info.availableVideoStreams$.subscribe(h=>{if(!To&&h.length){let R=Rn(h);R&&(z.setVideoStream(R),To=!0)}}));let Wo=be(void 0),lr=Xt(z.info.isAutoQualityEnabled$,h=>h&&Wo.set(void 0)),is=Xt(z.info.currentQuality$,()=>Wo.set(void 0)),Vn=ai([Wo,is],([h,R])=>h??R),Nn=ai(Bt,h=>h!==fc.MPEG),Xi=ai([sr,En,lr,Vn,Nn],([h,R,Q,Ne,ut])=>{let Ct=[];ut&&Ct.push({value:"auto",displayValue:dt("auto_quality_option"),selected:Q});let qt=h.filter(ei=>!Rb(ei));for(let ei of qt){let He=R[ei];Ct.push({value:ei,displayValue:`${ei}${He?vh(He):""}`,selected:Q?!1:ei===Ne})}return Ct}),Bn=Xt(z.info.currentPlaybackRate$),Dn=ai([Bn,Pn,An],([h,R,Q])=>{let Ne=Q||k?1:he.controls.playbackRateMin,ut=R?1:he.controls.playbackRateMax,Ct=he.controls.playbackRateStep,qt=[];for(let ei=Ne;ei<=ut;ei+=Ct)qt.push({value:ei,displayValue:ei===1?dt("playback_rate_1"):dt("playback_rate",{multiplier:ei.toString(10)}),selected:h===ei});return qt}),yi={displayValue:dt("subtitles_off"),value:"off"},zi=be({...yi}),ln=he.features.subtitles?Xt(z.info.availableTextTracks$):ir([]),cn=gg(),cr=ai([ln,zi],([h,R],Q)=>{let Ne=[],ut=h.find(({id:Ct})=>Ct===R.value);if(ut?.url){let[,Ct]=cn.find(ut.url)??[];if(Ct){Q(Ct);return}rt.download(ut.url).then(qt=>{if(!qt||rt.isDestroyed())return;let ei=new gh,He=ut.language;if(He){let Jt=!!ut.isAuto,Sr=ei.parse(qt,He);Ne.push({lang:He,subtitles:Sr,isAuto:Jt,id:ut.id})}cn.add(ut.url,Ne),Ae(zi).value===R.value&&Q(Ne)}).catch(qt=>{xe?.oneStat?.logError({errorType:"Subtitles download",fatal:!1}),Y?.report(qt,{errorType:"Subtitles download",fatal:!1})})}Q(Ne)}),dn=ai([Bn,Ii,zi],([h,R,Q],Ne)=>{let qt;if(z.info.isLive$.getValue()&&R&&Q.value!==yi.value){let He=()=>{let Jt=1e3/(3*h);qt=setTimeout(He,Jt),Ne(Date.now())};return He(),()=>clearTimeout(qt)}}),qo=ai([ln,zi],([h,R])=>{if(!h.length)return[];let Q=[];for(let{language:Ne,isAuto:ut,id:Ct}of h){let qt=Ne&&_u(Ne);Ne&&qt&&Q.push({displayValue:ut?dt("subtitles_auto",{language:qt}):qt,value:Ct,selected:R?.value===Ct,isAuto:ut})}return Q.length?(Q.unshift({...yi,selected:R?.value===yi.value}),Q):[]}),xi={available:[],prev:[]},un=()=>z.experimental.getCurrentTime$.getValue()?.()??ue?.currentTime??0,ft=ai([ao,zi,cr,dn],([h,R,Q,Ne])=>{let ut=z.info.isLive$.getValue();if(ut&&xi.prev!==Q){let Ct=Q.find(({id:ei})=>ei===R.value),qt=xi.prev.find(({id:ei})=>ei===R.value);if(Ct){let ei={...Ct,subtitles:[...qt?.subtitles??[],...Ct.subtitles]};xi.available=[ei],xi.prev=Q}}if(R&&R.value!==yi.value){let Ct=ut?un():h,qt=ut?xi.available:Q;return $h(Ct,R,qt,ut)}}),On=ai([ft],([h])=>h?.texts?h.texts:[]),dr=be(!0),Hn=ai([Wt,Di,zo,li],([h,R,Q,Ne])=>{let ut=h?.end??0;if(!Ne)return ut/R;let qt=-Q+Ne-R;return(ut-qt)/R}),Ko=Xt(z.info.availableSources$),ur=ai([Ko],([h])=>Object.keys(h?.[fc.MPEG]||{}).length>0),Io=()=>{let h=Object.keys(z.info.availableSources$?.getValue()?.[fc.MPEG]||{}),R=Mb(h)||Ub.Q_144P;return Ve.sources[fc.MPEG]?.[R]},Nr=()=>{let h=Io();if(h)le.log("download video",{url:h}),fg(h,Ve?.meta?.title||"video");else{let R="There is no URL for download video";le.log("download video",{message:R}),G({message:R})}},Fn=()=>{G({message:"toggle muted"});let h=z.info.muted$.getValue();z.info.volume$.getValue()===0&&!h?Eo(po()):Wi(!h)},pr=()=>{if(kt.ui.settingsMenu.visible$.set(!1),!Ae(kt.ui.settingsSubMenu.visible$)){let h=Ae(kt.ui.settingsMenu.ref$);if(c?.uiInfo?.onSettingsMenu&&h){let Q=vl(h),Ne={top:0,left:0,bottom:0,right:0};c.uiInfo.onSettingsMenu({visible:!1,size:Q,position:Ne,name:"settings"})}}le.log("close settings menu")},pn=async(h,R=()=>Promise.resolve())=>{kt.ui.settingsMenu.openedByBtnKeyboard$.set(!!h),kt.ui.settingsMenu.visible$.set(!0),await R();let Q=Ae(kt.ui.settingsMenu.ref$),Ne=ws();if(c?.uiInfo?.onSettingsMenu&&Q&&Ne){let Ct=vl(Q),qt=ml(Q,Ne);c.uiInfo.onSettingsMenu({visible:!0,size:Ct,position:qt,name:"settings"})}le.log("open settings menu",{wasOpenedByKeyboard:h})},Un=(h,R=!1)=>{kt.ui.settingsSubMenu.visible$.set(!1);let Q=Ae(kt.ui.settingsMenu.ref$),Ne=ws(),ut=Ae(kt.ui.settingsMenu.visible$);if(c?.uiInfo?.onSettingsMenu&&Q&&Ne)if(ut&&!R){let qt=vl(Q),ei=ml(Q,Ne);c.uiInfo.onSettingsMenu({visible:!0,size:qt,position:ei,name:"settings"})}else{let qt=vl(h),ei={top:0,left:0,bottom:0,right:0},He=Ae(kt.ui.settingsSubMenu.name$);c.uiInfo.onSettingsMenu({visible:!1,size:qt,position:ei,name:He})}le.log("close settings sub menu")},zn=(h,R)=>{kt.ui.settingsSubMenu.visible$.set(!0),kt.ui.settingsSubMenu.ref$.set(R),kt.ui.settingsSubMenu.name$.set(h);let Q=ws();if(c?.uiInfo?.onSettingsMenu&&R&&Q){let ut=vl(R),Ct=ml(R,Q);c.uiInfo.onSettingsMenu({visible:!0,name:h,size:ut,position:Ct})}le.log("open settings sub menu",{name:h})},po=()=>{let h=Math.max(he.volumeMinRestore,pd()??0);return h===0?he.volumeDefault:h},Eo=h=>{let R=h===0?po():h,Q=z.info.muted$.getValue();G({message:`set volume, volume: ${h}, preferredVolume: ${R}`}),Q&&h>0&&!a&&(Q=!1,Gf(!1)),z.setVolume(h,Q),Re.setVolume(h),zf(R)},Wi=h=>{let R=z.info.volume$.getValue();if(G({message:`set muted, currentVolume: ${R}, mute: ${h}`}),z.setMuted(h),Re.setVolume(h?0:R),Gf(h),!h&&R===0){let Q=po();z.setVolume(Q),zf(Q),Re.setVolume(Q)}},Po=be(!1),Ei=h=>{le.log("set looped",{isLooped:h}),Po.set(h),z.setLooped(h)};Ei(J);let Pi=()=>{c?.uiInfo?.onReportProblem?.()},fr=(h,R=!1)=>{G({message:`set autoplayNextEnabled, value: ${h}`}),le.log("set autoplay next enabled",{autoplayNextEnabled:h}),kt.ui.autoplayNextEnabled$.set(h),Ig(h),R&&c?.onSetAutoplayNextEnabled?.(h)},fn=h=>{G({message:`set timerNextVideoRunning, value: ${h}`}),le.log("set timer next video running",{timerNextVideoRunning:h}),kt.ui.timerNextVideoRunning$.set(h)},Br=(h=!0)=>{let R=!0;if(h&&c?.onPrevVideoClick)try{R=c?.onPrevVideoClick?.()}catch{G({message:"onPrevVideoClick callback failed to execute"})}R&&se()},mn=(h=!0)=>{let R=!0;if(h&&c?.onNextVideoClick)try{R=c?.onNextVideoClick?.()}catch{G({message:"onNextVideoClick callback failed to execute"})}R&&fe()},mr=()=>{c?.onNextVideoAnnouncementShow?.()},Wn=()=>{c?.onNextVideoAnnouncementClick?.()},vn=()=>{c?.onNextVideoAnnouncementAuto?.()},Dr=()=>{c?.onNextVideoAnnouncementCancel?.()},qn=()=>{z.prepare()},Kn=()=>{Tn(kt);let h=Ae(kt.ui.controls.disabledControls$),R=Ae(kt.playerPhase),Q={playerPhase:R,isInteractive:k,isVideoEnded:!1,action:"none"};if(h.has("PLAY_BUTTON"))return;if(G({message:"toggle play"}),R==="ads"){Q.action="play",le.log("toggle adman play",Q),Re.togglePlay();return}let Ne=()=>{G({message:"toggle play, call player.play"}),Q.action="play",z.play(),c?.onPlay?.()},ut=()=>{G({message:"toggle play, call player.pause"}),Q.action="pause",z.pause(),c?.onPause?.()};if(z.info.isEnded$.getValue()){if(G({message:"toggle play, video ended, seek to 0"}),Ze.next(),Tt.next($s.REWIND),k){M?.();return}z.seekTime(0),Ne()}else z.info.playbackState$.getValue()!==pc.PLAYING?Ne():ut();le.log("toggle play",Q)},ci=(h,{changeReason:R="default",appliesTo:Q="to-video"}={})=>{G({message:`set quality, quality: ${h}`}),le.log("set quality",{quality:h}),z.setAutoQuality(h==="auto"),h!=="auto"?(he.features.qualityDetailsSubMenuEnabled?(fd({type:"exact_quality",quality:h,videoId:i},Q),ac(),z.setPredefinedQualityLimits(es.UNKNOWN)):Wf(i,h),Wo.set(h),z.setQuality(h)):he.features.qualityDetailsSubMenuEnabled?R==="default"&&(Or("auto_quality",Q),Ae(co)&&vr(!1),Ae(ho)&&gn(!1)):ac()},vr=(h,R="as-default")=>{G({message:`set trafficSavingEnabled, value: ${h}`}),le.log("set traffic saving enabled",{trafficSavingEnabled:h});let Q=h?es.TRAFFIC_SAVING:es.UNKNOWN;he.features.qualityDetailsSubMenuEnabled?(Ao(Q,R),sc(!1)):(z.setPredefinedQualityLimits(Q),sc(h))},gn=(h,R="as-default")=>{G({message:`set highQualityEnabled, value: ${h}`}),le.log("set high quality enabled",{highQualityEnabled:h}),Ao(h?es.HIGH_QUALITY:es.UNKNOWN,R)},Ao=(h,R)=>{h!==es.UNKNOWN&&(Ae(sn)&&!Ae(lr)&&ci("auto",{appliesTo:R,changeReason:"limit-changed"}),Or(h,R)),z.setPredefinedQualityLimits(h)},Or=(h,R)=>{fd({type:h,videoId:i},R),R==="as-default"&&fd({type:h,videoId:i},"to-video")},Ee=h=>{le.log("set playback rate",{playbackRate:h}),z.setPlaybackRate(h),he.features.saveRate&&Ce&&!z.info.isLive$.getValue()&&kg(h)},Pt=()=>{let h=Ae(Dn),R=h.findIndex(({selected:Ne})=>Ne);if(R===h.length-1)return;let Q=h[R+1];Ee(Q.value)},Kt=()=>{let h=Ae(Dn),R=h.findIndex(({selected:Ne})=>Ne);if(R===0)return;let Q=h[R-1];Ee(Q.value)},mi=(h={...yi,selected:!1})=>{le.log("set subtitles",{...h}),h&&h.value!==yi.value&&Vt.next(h.isAuto?h.value+"_auto":h.value),zi.set(h)},Mo=()=>{le.log("toggle subtitles");let h=Ae(qo),R=Ae(zi),Q=Ae(tt);if(R?.value===yi.value){let Ne=h.filter(ut=>ut.value!==yi.value).find(ut=>ut.value===Q)||h[1];mi(Ne)}else mi()},Ai=(h,R,Q=!0)=>{if(G({message:`seek to time, time: ${h}`}),le.log("seek to time",{time:h,action:R,forcePrecise:Q}),Tt.next(R),z.info.isLive$.getValue()){let Ne=z.info.duration$.getValue(),ut=Math.min(0,Ne+h);z.seekTime(ut,Q)}else{if(F?.getValue())return;z.info.isEnded$.getValue()&&(G({message:"seek after ended, call callbacks.onPlay"}),c?.onPlay?.()),z.seekTime(Rc(h),Q)}},Oi=h=>{G({message:`seek to episode start time: ${h}`}),le.log("seek to episode start time",{time:h}),Ai(h,$s.EPISODE,!0)},ve=(h,R)=>{G({message:`seek to percent, percent: ${h}`}),le.log("seek to percent",{percent:h,action:R});let Q=Ae(Di)*h;Ai(Q,R,!1)},St=h=>{G({message:`seek external, time: ${h}`}),le.log("seek external",{time:h}),Tt.next($s.UNKNOWN),z.seekTime(z.info.isLive$.getValue()?-h:h)},di=h=>{let R=h.max??"none",Q=h.min??"none";G({message:`set auto quality limitation. Max: ${R}. Min: ${Q}`}),le.log("set auto quality limits",{max:R,min:Q}),z.setAutoQualityLimits(h)},$i=h=>{G({message:`seek external to episode start time: ${h}`}),le.log("seek external to episode start time",{time:h}),Ai(h,$s.EPISODE,!0)},Lo=h=>{G({message:`set playback rate to: ${h}`}),le.log("set playback rate external",{playbackRate:h}),z.setPlaybackRate(h)},Qo=be(void 0),Mi=be(!1),hn=h=>{G({message:`start scrubbing, progress: ${h}`}),le.log("start scrubbing",{progress:h}),Mi.set(!0),Go(h)},Go=h=>{Qo.set(h)},Qn,Gn,Ro=()=>{Qo.set(void 0),Mi.set(!1)},Yo=()=>{clearTimeout(Gn),clearTimeout(Qn),Qn=window.setTimeout(()=>{Ro()},500),ue?.removeEventListener("seeked",Yo)},Hr=h=>{G({message:`complete scrubbing, progress: ${h}`}),le.log("complete scrubbing",{progress:h}),ve(h,$s.SLIDER),Ae(kt.ui.isMobile)&&Ae(kt.state.currentFormat$)===fc.HLS?(ue?.addEventListener("seeked",Yo),Gn=window.setTimeout(()=>{Yo()},300)):Ro()},gr=ai([ao,Di,Qo],([h,R,Q],Ne)=>{Ne(Vb(Q)?Q*R:h)}),hr=be(!1),_r=()=>{hr.set(!0)},os=()=>{hr.set(!1)},_n=be({width:0,height:0}),$r=ai([_n],([{width:h}],R)=>{let Q=dh(h);R(Q)}),fo=be(!1),Yn=W.filter(h=>mg(h)),mt=ai([$r,fo],([h,R])=>R?Yn.filter(Q=>!Q.hideOnMobile):Yn.filter(Q=>!Q.hideOnDesktopGridTypes?.includes(h))),Ot=be(W.filter(h=>vg(h))),ni=ai([Ot,$r],([h,R])=>h.filter(Q=>!Q.hideOnDesktopGridTypes?.includes(R))),jn=ai([ni,mt],([h,R])=>[...he.features.additionalButtonsDesktopControlPanelRight?h.filter(Q=>Q.type==="desktop-control-panel-right"):[],...he.features.additionalButtons?R.map((Q,Ne)=>({id:Ne,weight:Ne,type:"desktop-control-panel-right",testId:Q.testId,icon:Q.iconUrl,onClick:Q.onClick,ariaLabel:Q.ariaLabel??Q.tooltip,tooltipText:Q.tooltip})):[]]),qi=be(U),br=ai([qi],([h])=>he.features.additionalSettingsMenuItems?h.map(R=>R.type==="SWITCH"?{...R,onClick:R.onChangeEnabled}:R):[]),Zn=(h,R)=>{let Q=Ae(Ot).map(Ne=>Ne.id!==h?Ne:{...Ne,...R});Ot.set(Q)},yr=h=>{let R=Ae(Ot);if(R.some(Q=>Q.id===h.id)){G({message:`Additional button with id: "${h.id}" was exist! Can't add more with the same id`});return}R.push(h),Ot.set(R)},Z=h=>{let R=Ae(Ot);if(!R.some(Q=>Q.id===h)){G({message:`Can't find additional button with id: "${h}"! Can't remove item with this id`});return}R=R.filter(Q=>Q.id!==h),Ot.set(R)},ht=h=>{Tt.next($s.LIVE),G({message:"live switch to low latency "+h}),le.log("live switch to low latency "+h),z.setLiveLowLatency(h)},ui=(h,R)=>{let Q=Ae(qi).map(Ne=>Ne.id!==h?Ne:{...Ne,...R});qi.set(Q)},ti=h=>{let R=Ae(qi);if(R.some(Q=>Q.id===h.id)){G({message:`Settings menu item with id: "${h.id}" was exist! Can't add more with the same id`});return}R.push(h),qi.set(R)},Ki=h=>{let R=Ae(qi);if(!R.some(Q=>Q.id===h)){G({message:`Can't find settings menu item with id: "${h}"! Can't remove item with this id`});return}R=R.filter(Q=>Q.id!==h),qi.set(R)},Vo=be(ie),$n=ai([Vo],([h])=>he.features.additionalContextMenuItems?h:[]),Fr=(h,R)=>{let Q=Ae(Vo).map(Ne=>Ne.id!==h?Ne:{...Ne,...R});Vo.set(Q)},xr=h=>{let R=Ae(Vo);if(R.some(Q=>Q.id===h.id)){G({message:`Context menu item with id: "${h.id}" was exist! Can't add more with the same id`});return}R.push(h),Vo.set(R)},Ke=h=>{let R=Ae(Vo);if(!R.some(Q=>Q.id===h)){G({message:`Can't find context menu item with id: "${h}"! Can't remove item with this id`});return}R=R.filter(Q=>Q.id!==h),Vo.set(R)},Gt=ai([fo,yt],([h,R],Q)=>{Q(h&&R)}),Ji=()=>{Tt.next($s.LIVE),G({message:"switch to active live"}),le.log("switch to active live"),z.seekTime(0),z.info.playbackState$.getValue()!==pc.PLAYING&&kt.actions.internal.togglePlay()},jo=()=>{le.log("skip adman"),Re.skip()},Zo=(h=!0)=>{Tn(kt),G({message:`switch from ads to video, callPlay: ${h}`}),le.log("switch from ads to video",{callPlay:h}),ge.set("video"),h&&z.play()},ns=()=>{Tn(kt),G({message:"switch from video to ads"}),le.log("switch from video to ads"),kt.actions.internal.pause(),bt(),ge.set("ads")},Xo=h=>{Tn(kt);let R=h?"LiveWaitingStart":"thumb";le.log("set live waiting start",{state:h,playerPhase:R}),ge.set(R)},Ur=h=>{Tn(kt);let R=h?"LiveWaitingRecover":"thumb";le.log("set live waiting recover",{state:h,playerPhase:R}),ge.set(R)},Vl=h=>{Tn(kt);let R=h?"LiveWaitingRecord":"thumb";le.log("set live waiting record",{state:h,playerPhase:R}),ge.set(R)},ha=()=>(Tn(kt),le.log("get debug text data"),ug(z,Ve,kt)),_a=()=>(Tn(kt),JSON.stringify(te.getFinishedSpans())),$a=()=>(Tn(kt),pg(z,Ve,kt)),ws=()=>ue,ba=()=>{G({message:"toggle chromecast"}),le.log("toggle chromecast"),z.toggleChromecast()},qe=h=>{if(Tn(kt),z.info.isEnded$.getValue())return;let R=!h;if(Ae(kt.playerPhase)==="ads"){G({message:`pause ads, internalCall: ${R}`}),le.log("pause ads",{internalCall:R}),Re.pause();return}G({message:`pause video, internalCall: ${R}`}),le.log("pause video",{internalCall:R}),R&&c?.onPause?.(),z.pause()},It=h=>{Tn(kt);let R=!h;if(Ae(kt.playerPhase)==="ads"){G({message:`play ads, internalCall: ${R}`}),le.log("play ads",{internalCall:R}),Re.play();return}G({message:`play video, internalCall: ${R}`}),le.log("play video",{internalCall:R}),R&&c?.onPlay?.(),z.play()},bn=h=>{Tn(kt);let R=!h;if(Ae(kt.playerPhase)==="ads"){G({message:"player cannot be stopped during ads via external method"});return}G({message:`player will be stopped, internalCall: ${R}`}),H?.()},wr=(h,R)=>{Tn(kt),G({message:`first start, show ads: ${h}, internalCall: ${!R}`}),le.log("first start",{showAds:h,external:R}),h?ge.set("ads"):(ge.set("video"),R?z.play():kt.actions.internal.togglePlay())},rs=()=>(G({message:"getting time codes"}),f),Cr=()=>{let h=rs();if(!h||[0,1].includes(h.length))return;let R=z.info.position$.getValue();return h.find(Q=>Q.time>R)},zr=h=>{let R=h;R||(R=Cr());let Q=z.info.position$.getValue();le.log("seek to next episode",{currentTime:Q,...R}),R&&(G({message:"seek to next episode"}),Ai(R.time,$s.EPISODE,!0))},ss=()=>{let h=rs();if(!h||[0,1].includes(h.length))return;let R=z.info.position$.getValue(),Q=h.findIndex(ut=>ut.time>R),Ne=Q===-1?h.length-2:Q-2;if(!(Ne<0))return h[Ne]},Nl=h=>{let R=h;R||(R=ss());let Q=z.info.position$.getValue();le.log("seek to prev episode",{currentTime:Q,...R}),R&&(G({message:"seek to prev episode"}),Ai(R.time,$s.EPISODE,!0))},Ac=()=>(G({message:"getting preview thumbs data"}),le.log("get preview thumbs data",{...v}),v),zp=async()=>{let h=ce?.isActive(),R="none";ce?.isActive()?(R="remove",await ce?.remove()):(R="request",await ce?.request()),le.log("toggle picture in picture",{isActive:h,action:R})},Mc=(h=-90)=>{le.log("rotate video",{alphaDiff:h}),ct.update(R=>R+h)},ya=be([]);V?.subscribe(h=>{let R=[];for(let Q=0;Q<h.length;Q++){let{range:[Ne,ut],subjects:Ct}=h[Q];Q===0&&Ne!==0&&R.push({time:0,text:"",interactive:!1,completed:!0}),R.push({time:Ne/1e3,text:"",interactive:!0,completed:he.features.interactiveTimeOpenUri?!Ct.length||Ct.every(qt=>qt.isRemoved):!Ct.length}),ut!==1/0&&R.push({time:ut/1e3,text:"",interactive:!1,completed:!0})}ya.set(R)});let Lc=be(!1);F?.subscribe(h=>{h&&Ae(Mi)&&Ro()});let Rc=h=>{if(!k)return h;let R=Ae(ya),Q=Ae(Di),ut=Ae(zo)/Q,Ct=R.find(qt=>qt.interactive&&!qt.completed&&qt.time>ut);return typeof Ct?.time=="number"?Math.min(h,Ct.time-.05):h},Vc=()=>{kt.ui.episodes.panelOpened$.set(!1)},Nc=()=>{le.log("destroy store"),clearTimeout(Gn),clearTimeout(Qn),Rt.unsubscribe(),Lt.unsubscribe(),z.destroy(),Re.destroy(),xe?.destroy(),Y?.destroy(),et.unsubscribe(),Zt?.disconnect(),Zt=null,rt.destroy()},kt={interfaceLanguage$:tt,isCyrillicRelatedInterface$:$t,initVideo:ze,videoId:i,isClip:o,playerPhase:Pe,vsid:Ue,state:{positionExact$:ao,positionWithScrubbing$:gr,duration$:Di,playbackState$:B,isPlaying$:Ii,isLoaderVisible:$o,bufferedProgress$:Hn,isLive$:Ni,canChangePlaybackSpeed$:fi,isActiveLive$:Pn,isOldestAvailableLive$:An,isRewindableLive$:bo,isEnded$:oi,muted$:rn,volume$:lo,trafficSavingEnabled$:co,highQualityEnabled$:ho,autoQualityLimitingAvailable$:sn,availableVideoStreams$:Mn,availableAudioStreams$:Ln,videoStream$:yo,audioStream$:Vr,currentQuality$:Vn,isAutoQualityEnabled$:lr,availableQualities$:Xi,currentPlaybackRate$:Bn,availablePlaybackRates$:Dn,currentSubtitle$:zi,availableTextTracks$:ln,availableSubtitlesList$:qo,currentSubtitleCaptions$:On,isAutoSubtitleCaptionVisible$:dr,chromecastState$:ko,chromecastDeviceName$:it,chromecastConnected$:uo,currentFormat$:Bt,throughputEstimation$:Zi,videoBitrate$:an,videoSize$:_o,errorLog$:_e,crashed$:yt,isAudioAvailable$:Et,isAudioDisabled:!!a,canDownload:he.features.download&&!!l,availableSources$:Ko,hasMpegSources$:ur,isInteractive:k,showInteractiveGraph:he.features.interactiveGraph,showSeekToInteractive:he.features.seekToInteractive,showPlayPrevChapter:he.features.interactivePlayPrevChapter,showInteractiveTimeIndicator:he.features.interactiveTimeIndicator&&!!Ae(ya).length,interactiveEpisodes$:ya,isInteractiveTime$:F?Xt(F):be(!1),graphIsOpened$:be(!1),isInteractiveExpectation$:Lc,hasInteractiveBranches:S,playPrevChapterDisabledTooltip:q,looped$:Po,loadedMetadata$:be(!1),isAutoQualityAvailable$:Nn},ui:{t:dt,controlsVisible:be(!1),touched:be(!1),controls:{prevButton:be(void 0),playButton:be(void 0),replayButton:be(void 0),nextButton:be(void 0),playPrevChapterButton:be(void 0),seekToInteractiveButton:be(void 0),interactiveGraphButton:be(void 0),liveButton:be(void 0),time:be(void 0),episodes:be(void 0),volume:be(void 0),subtitles:be(void 0),settings:be(void 0),context:be(void 0),chromecast:be(void 0),pip:be(void 0),fullscreen:be(void 0),vkLogo:be(void 0),interactiveTimeIndicator:be(void 0),timeline:be(void 0),autoplayNextToggle:be(void 0),additionalButtons:W.length?W.reduce(h=>[...h,be(void 0)],[]):[],disabledControls$:$e},modals:{hotKeyMap:{show:be(!1),data:be({title:"",closeBtnText:"",groups:[]})}},isFullscreen:we,isFullscreenOpenedByKeyboard:Me,rotateAlpha:ct,isAutoplay:be(!1),debugPanelVisible:be(!1),episodes:{panelOpened$:be(!1),openedByKeyboard$:be(!1)},contextMenu:{visible$:be(!1),btnRef$:be(void 0),openedByBtnKeyboard$:be(!1),openedByHotKey$:be(!1),lastActiveElem$:be(void 0),showContextMenuBtn$:be(!1),position$:be({top:0,left:0})},playerSize:_n,isMobile:fo,mobileNotReportControlHidden$:Gt,mobileUnmuteButtonExpanded:be(!1),mobileUnmuteButtonVisible:be(!1),icon3DVideoVisible:be(!1),scrubbingInProgress:Mi,volumeChangingInProgress:hr,is3DVideo:be(!1),currentGridType$:$r,additionalButtonsDeprecated$:mt,additionalDesktopControlPanelRightButtons$:jn,additionalSettingsMenuItems$:br,additionalContextMenuItems$:$n,interactiveHideMobileControls:be(!1),overlayContainer$:be(void 0),startedByKeyboard$:be(!1),autoplayNextEnabled$:be(!1),timerNextVideoRunning$:be(!0),settingsMenu:{visible$:be(!1),ref$:be(void 0),openedByBtnKeyboard$:be(!1)},settingsSubMenu:{visible$:be(!1),ref$:be(void 0),name$:be(void 0)}},ads:{position:be(0),duration:be(0),playbackState:be("inactive"),canSkip:be(!1),secondsToWatchBeforeSkip:be(0),postrollPassed:be(!1)},webApi:{pictureInPictureApi:ce,annotationsApi:Ge},actions:{internal:{preload:qn,firstStart:h=>wr(h,!1),play:()=>It(!1),pause:()=>qe(!1),togglePlay:Kn,toggleMuted:Fn,openSettingsMenu:pn,closeSettingsMenu:pr,openSettingsSubMenu:zn,closeSettingsSubMenu:Un,setVolume:Eo,startVolumeChanging:_r,stopVolumeChanging:os,setVideoStream:xo,setAudioStream:Ui,setQuality:ci,setTrafficSavingEnabled:vr,setHighQualityEnabled:gn,setPlaybackRate:Ee,incrementPlaybackRate:Pt,decrementPlaybackRate:Kt,setSubtitle:mi,toggleSubtitle:Mo,togglePictureInPicture:zp,startScrubbing:hn,progressScrubbing:Go,completeScrubbing:Hr,toggleChromecast:ba,switchToActiveLive:Ji,switchFromAdsToVideo:Zo,switchFromVideoToAds:ns,skipAd:jo,setLiveWaitingStart:Xo,setLiveWaitingRecover:Ur,setLiveWaitingRecord:Vl,getDebugTextData:ha,getTraceTextData:_a,getDebugPanelData:$a,getVideoElement:ws,seekTime:(h,R,Q)=>Ai(h,R,Q),clearDelayedBufferingCheckTimeout:zt,seekEpisodeStartTime:Oi,seekToPercent:ve,getNextEpisode:Cr,seekToNextEpisode:zr,getPrevEpisode:ss,seekToPrevEpisode:Nl,startLogging:Xe,stopLogging:lt,startCameraManualRotation:Nt,stopCameraManualRotation:ii,moveCameraFocusPX:gi,holdCamera:so,releaseCamera:hi,getVideoEpisodes:rs,getPreviewThumbsData:Ac,downloadVideo:Nr,addLanguage:Zf,setLanguage:ee,nextMovie:gt,videoRotate:Mc,correctSeekTimeToInteractive:Rc,replayInteractive:M,setLooped:Ei,reportProblem:Pi,setAutoplayNextEnabled:fr,setTimerNextVideoRunning:fn,prevVideoClick:Br,nextVideoClick:mn,nextVideoAnnouncementShow:mr,nextVideoAnnouncementClick:Wn,nextVideoAnnouncementAuto:vn,nextVideoAnnouncementCancel:Dr},external:{firstStart:h=>wr(h,!0),play:()=>It(!0),pause:()=>qe(!0),stop:()=>bn(!0),seekTime:h=>St(h),seekEpisodeStartTime:h=>$i(h),setPlaybackRate:h=>Lo(h),setAutoQualityLimits:h=>di(h),setMuted:Wi,setVolume:Eo,returnFocusToEpisodes:Vc,updateAdditionalSettingsItem:ui,addAdditionalSettingsItem:ti,removeAdditionalSettingsItem:Ki,updateAdditionalContextItem:Fr,addAdditionalContextItem:xr,removeAdditionalContextItem:Ke,updateAdditionalButton:Zn,addAdditionalButton:yr,removeAdditionalButton:Z,setLiveLowLatency:ht}},callbacks:c,setUiCallbacks:h=>{We={...h}},getAdmanWrapper:()=>Re,getLogger:()=>je,getPlayer:()=>z,destroy:Nc};return kt};var xu=(t,e,i,o)=>{if(!t)return;let n=["tooltipPointerOffsetX","disabledControls$","additionalButtons"],s=["interactiveTimeIndicator"];for(let[a,l]of Object.entries(e))if(!["tooltipPointerOffsetX","disabledControls$","additionalButtons"].includes(a)){let c=i[a]?.getBoundingClientRect(),p=(o||s.includes(a))&&!!c&&!!(c.right-c.left),{top:f,left:v,bottom:m,right:g}=ml(i[a],t);l.set({positionStartX:0,positionEndX:0,left:p?v:0,right:p?g:0,top:p?f:0,bottom:p?m:0,isDisplayed:p})}};var wu=async(t,e,i)=>{await to(),e&&i&&(i.focus(),t.set(!1))};var qb=Ie('<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 Cu(t,e){if(new.target)return T({component:Cu,...t});let i=Oe(e,["children","$$slots","$$events","$$legacy"]);I(e,!1);var o=qb();let n;var s=y(o);return De(s,e,"default",{},null),Te(),$(o),L(()=>n=Le(o,n,{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none","aria-hidden":"true","data-testid":"dots-icon",role:"img",...i},void 0,!0)),x(t,o),E({$set:A,$on:(a,l)=>P(e,a,l)})}function Su(t,e){if(new.target)return T({component:Su,...t});I(e,!0);let[i,o]=Je(),n=()=>C(c,"$contextMenuVisible$",i),s=u(e,"disabled",7,!1),a=u(e,"ariaLabel",7,""),l=Be(),c=l.ui.contextMenu.visible$,p=l.ui.contextMenu.openedByBtnKeyboard$,f=l.ui.contextMenu.showContextMenuBtn$,v=l.ui.contextMenu.position$,m=l.ui.contextMenu.btnRef$,g=de(void 0);ot(()=>{r(g)&&xt(()=>{m.set(r(g))})});let b=M=>{let H=Ms(M),S=Jg(r(g));v.set(S),p.set(H),c.set(!n())},w=()=>{f.set(!0)},k=()=>{f.set(!1)},V=_(()=>n()?"opened":"");Mt(t,{get className(){return r(V)},testId:"btn-context-menu",get disabled(){return s()},get ariaLabel(){return a()},click:b,focus:w,blur:k,get ariaExpanded(){return n()},get ref(){return r(g)},set ref(M){K(g,ke(M))},children:(M,H)=>{Cu(M,{})},$$slots:{default:!0}});var F=E({get disabled(){return s()},set disabled(M=!1){s(M),d()},get ariaLabel(){return a()},set ariaLabel(M=""){a(M),d()},$set:A,$on:(M,H)=>P(e,M,H)});return o(),F}var Kb=t=>{t.stopPropagation()},Qb=D('<div class="interactive-episode-icon-animated svelte-od3veb"><!> <div class="ref-block svelte-od3veb"></div> <div class="pulse svelte-od3veb"></div></div>'),Gb={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 qp(t,e){F(e,!0),q(t,Zb);let i=v(e,"isMobile",3,!1),o=m(()=>e.iconState===ih.CONNECTED),n=m(()=>e.iconState===ih.CONNECTING);var a=ze(),s=pe(a);{var d=c=>{var u=jb(),_=h(u),f=h(_),y=h(f);fe(),g(f);var x=E(f);fe(),g(_);var w=E(_),S=h(w),I=h(S);g(S),fe(),g(w),g(u),C(()=>{Me(y,"fill",r(o)?"#2688EB":"var(--btn-color, #fff)"),Me(x,"fill",r(o)?"#2688EB":"var(--btn-color, #fff)"),Me(I,"fill",r(o)?"#2688EB":"var(--btn-color, #fff)")}),b(c,u)},l=c=>{var u=Yb();let _;var f=h(u),y=E(h(f),5);let x;g(f),g(u),C((w,S)=>{_=Z(u,0,"svelte-8z1bf5",null,_,w),x=Z(y,0,"svelte-8z1bf5",null,x,S)},[()=>({connecting:r(n)}),()=>({hidden:!r(o)})]),b(c,u)};V(s,c=>{i()?c(d):c(l,!1)})}b(t,a),U()}import{noop as Jb}from"@vkontakte/videoplayer-shared/evergreen";function Bl(t,e){F(e,!0);let i=v(e,"ref",15,void 0),o=v(e,"isMobile",3,!1),n=v(e,"click",3,Jb),s=ye().ui.t,d=m(()=>e.state===Xb.CONNECTED?s("tooltip_chromecast_on"):s("tooltip_chromecast_off"));Ct(t,{get ariaLabel(){return r(d)},get click(){return n()},testId:"btn-chromecast",get ref(){return i()},set ref(l){i(l)},children:(l,c)=>{qp(l,{get isMobile(){return o()},get iconState(){return e.state}})},$$slots:{default:!0}}),U()}var e$=M('<div class="tooltip-wrapper svelte-5ygsa2"><div><!></div></div>'),t$={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 Kp(t,e){q(t,t$);let i=v(e,"active",3,!1),o=v(e,"pointer",3,!1),n=v(e,"translateXPx",3,0),a=v(e,"translateYPx",3,0),s=Y(void 0),d=Y(void 0);function l(x){if(!r(d))return 0;let{width:w}=r(d).getBoundingClientRect(),S=w/2;return x<S?S:x>e.containerWidth-S?e.containerWidth-S:x}let c=m(()=>l(n()));var u=e$(),_=h(u);let f;var y=h(_);ce(y,()=>e.children??J),g(_),at(_,x=>N(d,x),()=>r(d)),g(u),at(u,x=>N(s,x),()=>r(s)),C(x=>{tt(u,`transform: translate(${r(c)}px, ${a()}px);`),f=Z(_,1,"tooltip svelte-5ygsa2",null,f,x)},[()=>({active:i(),pointer:o()})]),b(t,u)}var bc=(t,e,i)=>i.filter(o=>o.time<=t*e).pop();var oh=t=>!!(Math.round(Math.abs(t)/90)%2),nh=t=>Math.abs(t)/90%4===1;var i$=M('<div class="preview svelte-1wqg760"></div>'),o$=M('<div class="time svelte-1wqg760"> </div>'),n$=M('<div><!> <div class="episode svelte-1wqg760"><!></div> <!></div>'),r$={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 Wp(t,e){F(e,!0),q(t,r$);let[i,o]=Oe(),n=()=>$(x,"$rotateAlpha",i),a=()=>$(w,"$playerSize",i),s={MOBILE:150,DESKTOP:278},d=v(e,"time",3,""),l=v(e,"isMobile",3,!1),c=v(e,"videoEpisodes",19,()=>[]),u=v(e,"progress",3,0),_=v(e,"duration",3,0),f=v(e,"isInteractive",3,!1),y=ye(),x=y.ui.rotateAlpha,w=y.ui.playerSize,S=Y(0),I=Y(0),L=Y(""),A=Y(0),P=Y(0),T=Y(0),D=Y(0),Q=m(()=>bc(u(),_(),c())),G=m(()=>oh(n())),ee=m(()=>nh(n())),ie=m(ge),oe=m(()=>(r(ee)?1:-1)*(r(S)/2-r(I)/2)),te=m(()=>r(oe)*-1);Qe(()=>{(R=>(N(S,le(R.width)),N(I,le(R.height))))(Le())}),Qe(()=>{(R=>(N(L,le(R.imgSrc)),N(A,le(R.imgWidth)),N(P,le(R.imgHeight)),N(T,le(R.imgOffsetX)),N(D,le(R.imgOffsetY))))(Ae(u()))});function ge(){let R=l()?s.MOBILE:s.DESKTOP,{isVertical:be}=X(),Ie=30;return r(Q)?.text&&(Ie+=16),(be||r(G))&&(Ie+=18,Ie+=50),Math.min(Math.max(a().height-Ie,0),R)}function X(){let R=e.previewThumbsData.frameWidth,be=e.previewThumbsData.frameHeight,Ie=be>R;return{width:R,height:be,isHorizontal:!Ie,isVertical:Ie}}function Le(){let{height:R,isHorizontal:be,isVertical:Ie,width:je}=X();return be&&(R=R/je*r(ie),je=r(ie)),Ie&&(je=je/R*r(ie),R=r(ie)),{width:je,height:R}}function Ae(R){let be;e.previewThumbsData.isUV?be=Math.floor(_()*R/e.previewThumbsData.frequency):be=Math.min(e.previewThumbsData.countTotal,Math.max(0,Math.floor(e.previewThumbsData.countTotal*R)));let Ie=Math.floor(be/e.previewThumbsData.countPerImage),je=Math.floor(be%e.previewThumbsData.countPerImage/e.previewThumbsData.countPerRow),qe=be%e.previewThumbsData.countPerRow,ke=Math.floor(e.previewThumbsData.countPerImage/e.previewThumbsData.countPerRow);!e.previewThumbsData.isUV&&Ie===Math.floor(e.previewThumbsData.countTotal/e.previewThumbsData.countPerImage)&&(ke=Math.floor(e.previewThumbsData.countTotal%e.previewThumbsData.countPerImage/e.previewThumbsData.countPerRow),e.previewThumbsData.countTotal%e.previewThumbsData.countPerImage%e.previewThumbsData.countPerRow>0&&ke++);let Pe=e.previewThumbsData.countPerRow;!e.previewThumbsData.isUV&&Ie===Math.floor(e.previewThumbsData.countTotal/e.previewThumbsData.countPerImage)&&e.previewThumbsData.countTotal%e.previewThumbsData.countPerImage>0&&(Pe=Math.min(e.previewThumbsData.countPerRow,e.previewThumbsData.countTotal%e.previewThumbsData.countPerImage));let Ve=r(S)*Pe,ct=r(I)*ke,gt=-qe*r(S),ot=-je*r(I);return{imgSrc:e.previewThumbsData.links[Ie],imgWidth:Ve,imgHeight:ct,imgOffsetX:gt,imgOffsetY:ot}}var se=n$();let He;var j=h(se);{var B=R=>{var be=i$();C(()=>tt(be,`width: ${r(S)}px; height: ${r(I)}px; background-image: url(${r(L)}); background-size: ${r(A)}px ${r(P)}px; background-position: ${r(T)}px ${r(D)}px;
228
+ transform: rotate(${n()}deg) ${r(G)?`translate(${r(oe)}px, ${r(te)}px)`:""};
229
+ `)),b(R,be)};V(j,R=>{r(L)&&R(B)})}var Re=E(j,2),_e=h(Re);{var Ce=R=>{var be=ze(),Ie=pe(be);{var je=ke=>{var Pe=qn();C(Ve=>de(Pe,Ve),[()=>H("tooltip_episode_unfinished")]),b(ke,Pe)},qe=ke=>{var Pe=qn();C(()=>de(Pe,r(Q).text||"")),b(ke,Pe)};V(Ie,ke=>{f()&&r(Q).completed===!1?ke(je):ke(qe,!1)})}b(R,be)};V(_e,R=>{r(Q)&&R(Ce)})}g(Re);var Be=E(Re,2);{var ue=R=>{var be=o$(),Ie=h(be,!0);g(be),C(()=>de(Ie,d())),b(R,be)};V(Be,R=>{f()||R(ue)})}g(se),C(R=>{He=Z(se,1,"timeline-preview svelte-1wqg760",null,He,R),tt(se,`width: ${r(G)?r(I):r(S)}px;`)},[()=>({mobile:l()})]),b(t,se),U(),o()}var a$=M('<span class="time svelte-1jr6obn"> </span>'),s$=M("<!> <!>",1),l$={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 Qp(t,e){F(e,!0),q(t,l$);let[i,o]=Oe(),n=()=>$(ie,"$interactiveEpisodes$",i),a=()=>$(P,"$duration$",i),s=()=>$(A,"$position$",i),d=()=>$(ge,"$isInteractiveExpectation$",i),l=()=>$(te,"$isInteractiveTime$",i),c=()=>$(T,"$isLive$",i),u=()=>$(Q,"$isMobile",i),_=()=>$(D,"$isActiveLive$",i),f=()=>$(L,"$bufferedProgress$",i),y=()=>$(Ae,"$disabledControls$",i),x=v(e,"showTimeline",3,!1),w=v(e,"ref",15,void 0),S=ye(),I=Vt(),L=S.state.bufferedProgress$,A=S.state.positionWithScrubbing$,P=S.state.duration$,T=S.state.isLive$,D=S.state.isActiveLive$,Q=S.ui.isMobile,G=I.features.episodes?S.actions.internal.getVideoEpisodes():void 0,ee=S.actions.internal.getPreviewThumbsData(),ie=S.state.interactiveEpisodes$,oe=S.state.isInteractive,te=S.state.isInteractiveTime$,ge=S.state.isInteractiveExpectation$,X=S.actions.internal.correctSeekTimeToInteractive,Le=S.callbacks?.onDisabledTimelineClick,Ae=S.ui.controls.disabledControls$,se=S.ui.t,He=I.features.interactiveResponsiveUi,j=m(()=>oe?n():G),B=m(()=>Qn(a())),Re=m(()=>Qn(s())),_e=m(()=>s()/a()),Ce=m(()=>d()||l()),Be=Y(!1),ue=Y(""),R=Y(0),be=Y(0),Ie=Y(0),je=m(()=>({containerWidth:r(be),translateXPx:r(R),translateYPx:oe&&ee?-36:-16,active:r(Be)&&x()&&!r(Ce)&&!He,pointer:!I.features.timelinePreview||!ee||c()})),qe=se("aria_timeline"),ke=m(()=>se("aria_timeline_value",{position:r(Re),duration:r(B)}));function Pe(ne){return!X||!oe?ne:X(ne*a())/a()}function Ve(ne){S.actions.internal.startScrubbing(Pe(ne))}function ct(ne){l()||S.actions.internal.progressScrubbing(Pe(ne))}function gt(ne){S.actions.internal.completeScrubbing(Pe(ne)),N(Be,!1)}function ot(ne,Fe,Ge){ut(ne,Fe,Ge),N(Be,!0)}function kt(ne,Fe,Ge){ut(ne,Fe,Ge),N(Be,!0)}function nt(){N(Be,!1)}function ut(ne,Fe,Ge){N(Ie,le(Pe(ne))),N(R,le(Fe)),Ge&&N(be,le(Ge)),N(ue,le(Et(ne)))}function Et(ne){let Fe=Qn((c()?1-ne:ne)*a());return c()?`-${Fe}`:Fe}var we=s$(),Ne=pe(we);Kp(Ne,Qr(()=>r(je),{children:(ne,Fe)=>{var Ge=ze(),yt=pe(Ge);{var Ke=Ee=>{Wp(Ee,{get time(){return r(ue)},get isMobile(){return u()},get videoEpisodes(){return r(j)},previewThumbsData:ee,get progress(){return r(Ie)},get duration(){return a()},isInteractive:oe})},Ze=Ee=>{var dt=a$(),Rt=h(dt,!0);g(dt),C(()=>de(Rt,r(ue))),b(Ee,dt)};V(yt,Ee=>{I.features.timelinePreview&&ee&&!c()?Ee(Ke):Ee(Ze,!1)})}b(ne,Ge)},$$slots:{default:!0}}));var Ye=E(Ne,2);let W=m(()=>Math.round(r(_e)*100)),re=m(()=>y().has("TIMELINE"));za(Ye,{className:"timeline-slider",get isActiveLive(){return _()},get isMobile(){return u()},ariaLabel:qe,ariaValueMin:0,get ariaValueMax(){return a()},get ariaValueNow(){return r(W)},get ariaValueText(){return r(ke)},get loadedProgress(){return f()},get filledProgress(){return r(_e)},get handleProgress(){return r(_e)},get videoEpisodes(){return r(j)},onPointerDown:Ve,onHandleMove:ct,onPointerMove:kt,onPointerUp:gt,onPointerEnter:ot,onPointerLeave:nt,onDisabledClick:Le,isInteractive:oe,get disabled(){return r(re)},get hideHandel(){return l()},get ref(){return w()},set ref(ne){w(ne)}}),b(t,we),U(),o()}var d$={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 Nl(t,e){F(e,!0),q(t,d$);let[i,o]=Oe(),n=()=>$(l,"$isMobile",i),a=v(e,"position",3,0),s=v(e,"duration",3,0),d=ye(),l=d.ui.isMobile,c=d.ui.t,u=m(()=>Qn(s())),_=m(()=>Qn(a())),f=m(()=>a()/s()),y=m(()=>c("aria_timeline_value",{position:r(_),duration:r(u)})),x=m(()=>Math.round(r(f)*100));za(t,{className:"timeline-ads-slider",ariaValueMin:0,get ariaValueMax(){return s()},get ariaValueNow(){return r(x)},get ariaValueText(){return r(y)},get filledProgress(){return r(f)},hideHandel:!0,get squareBorders(){return n()}}),U(),o()}var c$=M("<div><!></div>"),u$=M("<div></div>"),p$={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 Dl(t,e){F(e,!0),q(t,p$);let[i,o]=Oe(),n=()=>$(f,"$isLive$",i),a=()=>$(w,"$isMobile",i),s=()=>$(x,"$adPosition",i),d=()=>$(y,"$adDuration",i),l=v(e,"isAds",3,!1),c=v(e,"isHidden",3,!1),u=v(e,"ref",15,void 0),_=ye(),f=_.state.isLive$,y=_.ads.duration,x=_.ads.position,w=_.ui.isMobile,S=m(()=>!c()&&(!n()||n()&&e.canRewindLive&&e.isRewindableLive||l()));var I=ze(),L=pe(I);{var A=T=>{var D=c$();let Q;var G=h(D);{var ee=oe=>{Nl(oe,{get position(){return s()},get duration(){return d()}})},ie=oe=>{Qp(oe,{get showTimeline(){return r(S)},get ref(){return u()},set ref(te){u(te)}})};V(G,oe=>{l()?oe(ee):oe(ie,!1)})}g(D),C(oe=>Q=Z(D,1,"timeline svelte-1gqonyf",null,Q,oe),[()=>({mobile:a()})]),b(T,D)},P=T=>{var D=u$();let Q;C(G=>Q=Z(D,1,"timeline-stub svelte-1gqonyf",null,Q,G),[()=>({mobile:a()})]),b(T,D)};V(L,T=>{r(S)?T(A):T(P,!1)})}b(t,I),U(),o()}import{noop as v$}from"@vkontakte/videoplayer-shared/evergreen";var f$=me('<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 Gp(t,e){let i=xe(e,["$$slots","$$events","$$legacy","children"]);var o=f$();let n;var a=h(o);ce(a,()=>e.children??J),fe(3),g(o),C(()=>n=he(o,n,{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none","aria-hidden":"true","data-testid":"episodes-icon",style:"flex-shrink:0",role:"img",...i})),b(t,o)}var m$=me('<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 jp(t,e){let i=xe(e,["$$slots","$$events","$$legacy","children"]);var o=m$();let n;var a=h(o);ce(a,()=>e.children??J),fe(),g(o),C(()=>n=he(o,n,{xmlns:"http://www.w3.org/2000/svg",width:"12",height:"13",fill:"none","aria-hidden":"true","data-testid":"chevron-light-icon",role:"img",...i})),b(t,o)}var g$=M('<span class="text mobile svelte-1yhs2ga"> </span> <div class="chevron-episodes svelte-1yhs2ga"><!></div>',1),h$=M('<span class="text svelte-1yhs2ga"> </span>'),_$=M('<span class="text count svelte-1yhs2ga"> </span>'),b$=M("<!> <!>",1),$$={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 Ol(t,e){F(e,!0),q(t,$$);let[i,o]=Oe(),n=()=>$(x,"$currentGridType$",i),a=()=>$(w,"$openedByKeyboard$",i),s=()=>$(S,"$panelOpened$",i),d=()=>$(I,"$isMobile",i),l=v(e,"position",3,0),c=v(e,"duration",3,0),u=v(e,"timeCodes",19,()=>[]),_=ye(),f=_.callbacks?.onEpisodeChanged??v$,y=!!_.callbacks?.onEpisodeClicked,x=_.ui.currentGridType$,w=_.ui.episodes.openedByKeyboard$,S=_.ui.episodes.panelOpened$,I=_.ui.isMobile,L=_.ui.t,A=Y(void 0),P=X=>{if(!!_.callbacks?.onEpisodeClicked){let Ae=ca(X);w.set(Ae),S.set(!0),_.callbacks?.onEpisodeClicked?.(Ae)}},T=Y(null),D=m(()=>l()/c());Qe(()=>{let X=bc(r(D),c(),u());X?r(T)?.time!==X.time&&(f(X),N(T,le(X))):N(T,null)});let Q=m(()=>r(T)?.text||""),G=m(()=>Ci(n(),"xl")?"FULL":Ci(n(),"m")&&eh(n(),"xl")?"COUNT":"SHORT"),ee=m(()=>`${L("tooltip_episodes")}: ${r(Q)}`),ie=async(X,Le,Ae)=>{await Xi(),X?.getAttribute("aria-expanded")==="false"&&Le&&!Ae&&pt(()=>{w.set(!1),X.focus()})};Qe(()=>{ie(r(A),a(),s())});var oe=ze(),te=pe(oe);{var ge=X=>{let Le=m(()=>d()?"px-0":"");Ct(X,{get className(){return`w-max btn-full-opacity btn-jc-l ${r(Le)??""}`},testId:"btn-episodes",click:P,disabled:!y,get ariaExpanded(){return s()},get ariaLabel(){return r(ee)},get ref(){return r(A)},set ref(Ae){N(A,le(Ae))},children:(Ae,se)=>{var He=ze(),j=pe(He);{var B=_e=>{var Ce=g$(),Be=pe(Ce),ue=h(Be,!0);g(Be);var R=E(Be,2),be=h(R);jp(be,{}),g(R),C(()=>de(ue,r(Q))),b(_e,Ce)},Re=_e=>{var Ce=b$(),Be=pe(Ce);Gp(Be,{});var ue=E(Be,2);{var R=Ie=>{var je=h$(),qe=h(je,!0);g(je),C(()=>de(qe,r(Q))),b(Ie,je)},be=(Ie,je)=>{{var qe=ke=>{var Pe=_$(),Ve=h(Pe,!0);g(Pe),C(()=>de(Ve,u().length)),b(ke,Pe)};V(Ie,ke=>{r(G)==="COUNT"&&ke(qe)},je)}};V(ue,Ie=>{r(G)==="FULL"?Ie(R):Ie(be,!1)})}b(_e,Ce)};V(j,_e=>{d()?_e(B):_e(Re,!1)})}b(Ae,He)},$$slots:{default:!0}})};V(te,X=>{r(T)&&X(ge)})}b(t,oe),U(),o()}import{debounceFn as $2}from"@vkontakte/videoplayer-shared/evergreen";import{ChromecastState as I$,PlaybackState as Hl,Player as E$,PredefinedQualityLimits as Br,VideoFormat as Fl,clientChecker as A$}from"@vkontakte/videoplayer-core/evergreen";import{assertNonNullable as In,getHighestQuality as P$,InterfaceLanguage as M$,isInvariantQuality as L$,isNonNullable as V$,loadVKLangPack as R$,Logger as B$,map as ph,merge as N$,Observable as D$,Subject as kc,Subscription as tf,Tracer as O$,ValueSubject as H$,VideoQuality as F$,devNull as U$,now as z$}from"@vkontakte/videoplayer-shared/evergreen";import{SeekAction as jr}from"@vkontakte/videoplayer-statistics/evergreen";import{detectEmbed as y$,devNull as Ot,now as Ht}from"@vkontakte/videoplayer-shared/evergreen";import{addScript as x$,Subject as bo,clearVideoElement as w$}from"@vkontakte/videoplayer-shared/evergreen";var rh=(t,e)=>t<400||e<225?5:t<640||e<360?0:t<960||e<540?1:t<1280||e<720?2:3;var S$="//ad.mail.ru/static/admanhtml/rbadman-html5.min.js",$c=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 bo,loadStarted$:new bo,loadEnded$:new bo,loadError$:new bo,ready$:new bo,slotRequested$:new bo,started$:new bo,timeRemained$:new bo,paused$:new bo,resumed$:new bo,ended$:new bo,empty$:new bo,skipped$:new bo,clicked$:new bo,closed$:new bo,error$:new bo};this.loadAdman=e=>(Ot.push("ui",{key:"videoplayer_embed",strings:["new","adman_load_start",this.useAdmanFromNPM?"npm":"http"],numbers:[Ht()]}),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?(Ot.push("ui",{key:"videoplayer_embed",strings:["new","adman_async_init_done","http"],numbers:[Ht()]}),i(),this.events.loadEnded$.next()):(Ot.push("ui",{key:"videoplayer_embed",strings:["new","adman_init_timed_out","http"],numbers:[Ht()]}),o())};x$(S$,e,this.loadTimeout).then(()=>{Ot.push("ui",{key:"videoplayer_embed",strings:["new","adman_script_loaded","http"],numbers:[Ht()]}),window.AdmanHTML?(Ot.push("ui",{key:"videoplayer_embed",strings:["new","adman_already_inited","http"],numbers:[Ht()]}),i(),this.events.loadEnded$.next()):(Ot.push("ui",{key:"videoplayer_embed",strings:["new","adman_wait_async_init","http"],numbers:[Ht()]}),window.admanAsyncInit=a,n=window.setTimeout(a,this.initTimeout))}).catch(s=>{Ot.push("ui",{key:"videoplayer_embed",strings:["new","adman_script_load_error","http",String(s)],numbers:[Ht()]}),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?(Ot.push("ui",{key:"videoplayer_embed",strings:["new","adman_init_done","npm"],numbers:[Ht()]}),i(),this.events.loadEnded$.next()):(Ot.push("ui",{key:"videoplayer_embed",strings:["new","adman_init_timed_out","npm"],numbers:[Ht()]}),o())},s=()=>{d=!0,o()},d=!1,l=window.setTimeout(()=>{Ot.push("ui",{key:"videoplayer_embed",strings:["new","adman_load_timed_out","npm"],numbers:[Ht()]}),s()},this.loadTimeout);e.addEventListener("abort",s),e.aborted&&(Ot.push("ui",{key:"videoplayer_embed",strings:["new","adman_load_aborted","npm"],numbers:[Ht()]}),s()),window.AdmanHTML=window.AdmanHTML||null,import("@adtech/rbadman/out/rbadman-html5.min.js").then(()=>{Ot.push("ui",{key:"videoplayer_embed",strings:["new","adman_chunk_imorted","npm","failed: "+String(d)],numbers:[Ht()]}),!d&&(window.AdmanHTML?(Ot.push("ui",{key:"videoplayer_embed",strings:["new","adman_already_inited","npm"],numbers:[Ht()]}),i(),this.events.loadEnded$.next()):(Ot.push("ui",{key:"videoplayer_embed",strings:["new","adman_wait_async_init","npm"],numbers:[Ht()]}),window.admanAsyncInit=a,n=window.setTimeout(a,this.initTimeout)))},s).finally(()=>{clearTimeout(n),clearTimeout(l),e.removeEventListener("abort",s)})});this.onAdsReady=()=>{Ot.push("ui",{key:"videoplayer_embed",strings:["new","adman_ads_ready"],numbers:[Ht()]}),this.log({message:"ads ready"}),this.events.ready$.next(),this.startPreroll()};this.onAdStarted=(e,i)=>{Ot.push("ui",{key:"videoplayer_embed",strings:["new","adman_ad_started",e,"muted: "+i.muted],numbers:[Ht(),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"}),ve(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=()=>{Ot.push("ui",{key:"videoplayer_embed",strings:["new","adman_ad_pased",this.currentAdSection??""],numbers:[Ht()]}),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=()=>{Ot.push("ui",{key:"videoplayer_embed",strings:["new","adman_ad_played",this.currentAdSection??""],numbers:[Ht()]}),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(Ot.push("ui",{key:"videoplayer_embed",strings:["new","adman_ad_midroll_pioint"],numbers:[Ht()]}),this.adman&&this.actions){this.log({message:"midroll point"}),this.actions.switchFromVideoToAds(),this.currentAdSection="midroll",this.startWatchDog();try{this.adman.start("midroll")}catch{this.onAdError("could not start midroll")}}else this.onAdError("Midroll callback failed: Adman is not initialized")};this.onAdSkipped=()=>{Ot.push("ui",{key:"videoplayer_embed",strings:["new","adman_ad_skipped",this.currentAdSection??""],numbers:[Ht()]}),this.log({message:"ad skipped"}),this.stopWatchDog()};this.onAdClosed=()=>{Ot.push("ui",{key:"videoplayer_embed",strings:["new","adman_ad_closed",this.currentAdSection??""],numbers:[Ht()]}),this.log({message:"ad closed"}),this.currentAdSection&&this.events.closed$.next(this.currentAdSection),this.stopWatchDog(),this.switchToVideo()};this.onAdCompleted=()=>{Ot.push("ui",{key:"videoplayer_embed",strings:["new","adman_ad_completed",this.currentAdSection??""],numbers:[Ht()]}),this.log({message:"ad completed"}),this.currentAdSection?this.events.ended$.next(this.currentAdSection):this.events.empty$.next(),this.switchToVideo(),this.stopWatchDog()};this.onAdClicked=()=>{Ot.push("ui",{key:"videoplayer_embed",strings:["new","adman_ad_clicked",this.currentAdSection??""],numbers:[Ht()]}),this.log({message:"ad clicked"}),this.videoElement?.pause(),this.currentAdSection&&this.events.clicked$.next(this.currentAdSection),this.stopWatchDog()};this.onAdError=(e="ad error")=>{Ot.push("ui",{key:"videoplayer_embed",strings:["new","adman_ad_error",e],numbers:[Ht()]}),this.log({message:e}),this.events.error$.next(e),this.switchToVideo(!0),this.stopWatchDog()};this.log=e.createComponentLog("AdmanWrapper"),Ot.push("ui",{key:"videoplayer_embed",strings:["new","adman_created"],numbers:[Ht()]}),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){if(Ot.push("ui",{key:"videoplayer_embed",strings:["new","adman_init","already inited: "+!!this.adman],numbers:[Ht(),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:c={},duration:u,previewParam:_}=e,f,y=this.playerState&&ve(this.playerState.vsid);y&&(this.isVsidOriginal?f=y:f=parseInt(y,36));let{isEmbed:x,immediateOrigin:w}=y$(),S=(x?w:window.location.href)??window.location.href,I={...c,dl:encodeURIComponent(S),autoplay:a?1:0,player_width:i,player_height:o,preview:_,...f?{request_id:f}:{},duration:u,puid10:rh(i,o),puid11:n?0:1};_||delete I.preview;let L={slot:l,wrapper:s,videoEl:d,videoQuality:o,params:I,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(L),this.adman=A,this.videoElement=d,this.events.slotRequested$.next(),this.log({message:`adman init, config: ${JSON.stringify(L)}`})}catch(A){Ot.push("ui",{key:"videoplayer_embed",strings:["new","adman_init_threw",String(A)],numbers:[Ht()]}),this.onAdError("could not init adman")}}switchToVideo(e=!1){if(Ot.push("ui",{key:"videoplayer_embed",strings:["new","adman_switch_to_video",this.currentAdSection??"","force: "+e],numbers:[Ht()]}),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 o="Switch to video: Adman state was not updated correctly";this.log({message:o}),this.events.error$.next(o)}this.actions.switchFromAdsToVideo?.(!i)}}togglePlay(){if(Ot.push("ui",{key:"videoplayer_embed",strings:["new","adman_toggle_play",this.currentAdSection??""],numbers:[Ht()]}),this.adsState){this.log({message:"toggle play"});let e=ve(this.adsState.playbackState);e==="playing"?this.pause():e==="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{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{this.onAdError("could not set ad fullscreen")}}startPreroll(){if(Ot.push("ui",{key:"videoplayer_embed",strings:["new","adman_start_preroll"],numbers:[Ht()]}),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{this.onAdError("could not start preroll")}}}else this.onAdError("Can not start preroll: Adman is not initialized")}startPostroll(){if(Ot.push("ui",{key:"videoplayer_embed",strings:["new","adman_start_postroll",this.currentAdSection??""],numbers:[Ht()]}),this.adman&&this.actions){this.log({message:"start postroll"}),this.actions.switchFromVideoToAds(),this.currentAdSection="postroll",this.startWatchDog();try{this.adman.start("postroll")}catch{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(){if(Ot.push("ui",{key:"videoplayer_embed",strings:["new","adman_pplay",this.currentAdSection??""],numbers:[Ht()]}),this.adman){this.log({message:"ad play"}),this.startWatchDog();try{this.adman.resume(),this.events.resumed$.next()}catch{this.onAdError("could not resume ad")}}else this.onAdError("Can not play: Adman is not initialized")}pause(){if(Ot.push("ui",{key:"videoplayer_embed",strings:["new","adman_pause",this.currentAdSection??""],numbers:[Ht()]}),this.adman){this.stopWatchDog(),this.log({message:"ad pause"});try{this.adman.pause(),this.events.paused$.next()}catch{this.onAdError("could not pause ad")}}else this.onAdError("Can not pause: Adman is not initialized")}skip(){if(Ot.push("ui",{key:"videoplayer_embed",strings:["new","adman_skip",this.currentAdSection??""],numbers:[Ht()]}),this.adman){this.stopWatchDog(),this.log({message:"ad skip"});try{this.adman.skip(),this.events.skipped$.next()}catch{this.onAdError("could not skip ad")}}else this.onAdError("Can not skip: Adman is not initialized")}setPosition(e,i){this.adman?.setPosition(Math.floor(e),Math.floor(i))}destroy(){Ot.push("ui",{key:"videoplayer_embed",strings:["new","adman_destroy"],numbers:[Ht()]}),this.log({message:"destroy"}),this.stopWatchDog(),this.adman?.onReady(void 0),this.adman?.onStarted(void 0),this.adman?.onPlayed(void 0),this.adman?.onPaused(void 0),this.adman?.adMidrollPoint(void 0),this.adman?.onClosed(void 0),this.adman?.onSkipped(void 0),this.adman?.onClicked(void 0),this.adman?.onTimeRemained(void 0),this.adman?.onCompleted(void 0),this.adman?.onError(void 0),this.adman?.destroy(),this.videoElement&&w$(this.videoElement),this.isDestroyed=!0}};var ah=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 Yp=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 c=new yc,{startTime:u,endTime:_}=c.parse(l);s.startTime=u,s.endTime=_}else if(l.trim()!==""){let c=new Zp,{texts:u}=c.parse(l);s.texts=[...s.texts,...u]}(s.startTime||s.endTime)&&s.texts.length>0&&o.push(s)}return o}},yc=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}},Zp=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 c=["<",">"].reduce((u,_)=>{let f=s.indexOf(_,d);return u===-1||u>f?f:u},-1);if(c===-1){l.push(s.substring(d));break}l.push(s.substring(d,c)),d=c+1}return l}}),a=new yc;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}},sh=Yp;import{isNonNullable as Xp}from"@vkontakte/videoplayer-shared/evergreen";var qa,jn,Jp=0,ef=!1,lh="",dh=(t,e=0,i=0)=>t<e&&t<i,xc=(t,e=0,i=0)=>t>=e&&t<=i,C$=(t,e=0,i=0)=>t>e&&t>i,ch=(t,e,i,o=!1)=>{let n=i.find(({id:d})=>d===e.value)?.subtitles;if(o)return n?.find(({startTime:l,endTime:c})=>xc(t,l,c));let a=t>=Jp,s=t<Jp;if(Jp=t,s&&(ef=!1),Xp(qa)&&xc(t,qa.startTime,qa.endTime)&&lh===e.value)return qa;if(!Xp(jn)&&n?.length&&!ef){jn=n.find(({startTime:l,endTime:c})=>xc(t,l,c)||a&&dh(t,l,c)),qa=void 0,!Xp(jn)&&n[n.length-1].endTime<t&&(ef=!0);return}else{if(xc(t,jn?.startTime,jn?.endTime))return qa=jn,jn=void 0,lh=e.value,qa;(a&&C$(t,jn?.startTime,jn?.endTime)||s&&dh(t,jn?.startTime,jn?.endTime))&&(jn=void 0)}};var uh={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"},k$={abk:"as",ara:"ar",aze:"az",bak:"ba",bel:"be",ben:"bn",bos:"bs",bul:"bg",ces:"cs",chv:"cv",dan:"da",deu:"de",ell:"el",eng:"en",epo:"eo",est:"et",eus:"eu",fas:"fa",fin:"fi",fra:"fr",heb:"he",hin:"hi",hrv:"hr",hun:"hu",hye:"hy",ind:"id",ita:"it",jpn:"ja",kan:"kn",kat:"ka",kaz:"kk",kir:"ky",kor:"ko",lav:"lv",lit:"lt",mon:"mn",mya:"my",nep:"ne",nld:"nl",nor:"no",oss:"os",pan:"pa",pol:"pl",por:"pt",ron:"ro",rus:"ru",sin:"si",slk:"sk",slv:"sl",spa:"es",srp:"sr",swa:"sw",swe:"sv",tat:"tt",tgk:"tg",tgl:"tl",tha:"th",tuk:"tk",tur:"tr",ukr:"uk",urd:"ur",uzb:"uz",vie:"vi"},wc=t=>uh[t]??uh[k$[t]]??void 0;import{Subscription as T$}from"@vkontakte/videoplayer-shared/evergreen";import"@vkontakte/videoplayer-statistics/evergreen";var Sc=class{constructor(e,i=new T$){this.oneStat=e;this.statSubscription=i}destroy(){this.oneStat.destroy(),this.statSubscription.unsubscribe()}};var Cc=(i=>(i.DESKTOP_CONTROL_PANEL_LEFT="desktop-control-panel-left",i.DESKTOP_CONTROL_PANEL_RIGHT="desktop-control-panel-right",i))(Cc||{});var Rr=t=>t??0,Es=(t,e)=>{let i=t?.getBoundingClientRect?.(),o=e?.getBoundingClientRect?.();return{top:Math.round(Rr(i?.top)-Rr(o?.top)),left:Math.round(Rr(i?.left)-Rr(o?.left)),bottom:Math.round(Rr(i?.bottom)-Rr(o?.top)),right:Math.round(Rr(i?.right)-Rr(o?.left))}},As=t=>{let e=t?.getBoundingClientRect?.();return{width:Rr(e?.width),height:Rr(e?.height)}};var fh=({interfaceLanguage:t,isCyrillicRelatedInterface:e,videoId:i,isClip:o,isLiveCatchUpMode:n,statAuthToken:a,isAudioDisabled:s,canDownload:d,callbacks:l,webApi:c,videoEpisodes:u,previewThumbsData:_,uiConfig:f,coreConfig:y,player:x,disabledControls:w,isInteractive:S,interactiveRanges$:I,isInteractiveTime$:L,replayInteractive:A,stopPlayer:P,hasInteractiveBranches:T,playPrevChapterDisabledTooltip:D,additionalButtons:Q,additionalSettingsMenuItems:G,additionalContextMenuItems:ee,playPrevVideo:ie,playNextVideo:oe,looped:te=!1,statistics:ge,saveRate:X,internalsExposure:Le})=>{let Ae={...y,configName:[...y.configName??[],"ui"],isAudioDisabled:s,live:{...y.live??{},isLiveCatchUpMode:!!n}},se=f,He=O$.createRootTracer(se.features.saveTraceInfoToFile),j=He.createComponentTracer("Store"),B=x||new E$(Ae,He);Le?.expose({corePlayer:B});let Re=new B$,_e=new $c(Re,{loadTimeout:se.ads.loadTimeout,initTimeout:se.ads.initTimeout,runtimeTimeout:se.ads.runtimeTimeout,useAdmanFromNPM:se.ads.useAdmanFromNPM,volumeMultiplier:se.ads.volumeMultiplier,isVsidOriginal:se.ads.isVsidOriginal}),Ce=La.getInstance(),Be=c?.pictureInPictureApi,ue=c?.annotationsApi,R=Re.createComponentLog("Store"),be,Ie,je={},qe=new Zd,ke=ge?Ut(ge.oneStat.vsid$):Wn(void 0),Pe=ae(sa()),Ve=ae(!1),ct=Be?.info.isActive$??new H$(!1),gt=ae(0),ot=ae([]),kt=N$(B.events.fatalError$,B.events.managedError$).subscribe(p=>ot.update(k=>[...k,p])),nt=Wn(!1,p=>{let k=B.events.fatalError$.subscribe(()=>p(!0));return()=>k.unsubscribe()}),ut=async p=>{let k=Object.values(M$).includes(p);if(se.downloadVKLanguages&&(k&&se.updateBuiltinLanguages||!sp(p))){let Se;try{Se=await R$(p,Yv,Zv)}catch(rt){ge?.oneStat?.logError({errorType:"VKLangPack",fatal:!1}),Ce?.report(rt,{errorType:"VKLangPack",fatal:!1})}Se&&(ap({language:p,pack:Se,fallback:se.defaultLanguage}),Et.set(p))}sp(p)&&Et.set(p)},Et=ae(t),we=ae(e);ut(t);let Ne=(p,k)=>{let O=ve(Et);return lp(O,p,k,se.defaultLanguage)},Ye=ae("thumb"),W=(()=>{let p=li([nt,Ye],([k,O])=>k?"crashed":O);return{...p,is:k=>ve(p)===k}})(),re=(()=>{let p=ae(new Set(w));return{...p,add:k=>{p.update(O=>new Set([...O].concat(k)))},remove:k=>{p.update(O=>{let Se=[...O];return new Set(Array.isArray(k)?Se.filter(rt=>!k.includes(rt)):Se.filter(rt=>rt!==k))})},includes:k=>{let O=ve(p);return Array.isArray(k)?k.every(Se=>O.has(Se)):O.has(k)}}})();j.log("create store"),R({message:"create store"});let ne=p=>{let k=p.container;k.append(B.experimental.element$.getValue()),dt=new MutationObserver(O=>{let{removedNodes:Se}=O[0];Se.length&&k.append(B.experimental.element$.getValue())}),dt.observe(k,{childList:!0})},Fe=p=>{R({message:`init video, config: ${JSON.stringify(p)}`}),S?ne(p):(U$.push("ui",{key:"videoplayer_embed",strings:["new","core_init_video"],numbers:[z$()]}),B.initVideo(p)),j.log("init video",{isInteractive:S}),p.subtitles&&B.setExternalTextTracks(p.subtitles),be=p},Ge=new kc,yt=p=>Ge.next(p),Ke=new kc,Ze=new kc,Ee=new kc,dt=null,Rt={actionRewind$:Ke,actionSeek$:Ze,inPiP$:ct,inFullscreen$:new D$(p=>Pe.subscribe(k=>p.next(k))),actionSetSubtitle$:Ee,nextMovie$:Ge};if(ge){let{oneStat:p,statSubscription:k}=ge;S||k.add(p.attachTo(B)),k.add(p.attachToUi(Rt)),k.add(p.attachToAds(_e.events)),p.authorize(a).catch(O=>{R({message:`onestat auth error ${String(O)}`})})}if(Ce){let p=new tf,k=(O,Se)=>p.add(O.subscribe(Se));if(k(B.events.managedError$,O=>{Ce.logIError(O)}),k(B.events.fatalError$,O=>{Ce.logIError(O,!0)}),ge){let{oneStat:O}=ge;k(O.experimental.error$,Se=>{Ce.logIError(Se)})}Ce.sentrySubscription.add(p)}let Gt=()=>{A$.device.isIOS&&Ie&&Vg(Ie).catch(p=>{R({message:`exitIosSafariFullscreen failed: ${p}`})})},Zt=new tf().add(B.experimental.element$.subscribe(p=>{p&&(Ie=p,p.classList.add("player-media"),Ba(Be)&&(Be.updateVideoElement(),Be.registryEventHandlers()),S&&p.setAttribute("pip","false"))})).add(B.events.ended$.subscribe(()=>{Gt(),l?.onEnded?.()})).add(B.events.looped$.subscribe(()=>{l?.onLooped?.()})).add(B.events.started$.subscribe(async()=>{Ba(Be)&&await Be?.revealPictureInPicture();let p=B.info.muted$.getValue();l?.onStarted?.(),je.onStarted?.(p)})).add(B.events.willSeek$.subscribe(({from:p,to:k})=>{l?.onSeek?.(p,k)})).add(B.events.autoplaySoundProhibited$.subscribe(()=>{l?.onAutoplaySoundProhibited?.()})).add(B.info.position$.subscribe(p=>{let k=B.info.duration$.getValue();isFinite(k)&&k>0&&(l?.onTimeupdate?.(k,p),_e.setPosition(p,k))})).add(B.events.fatalError$.subscribe(p=>{l?.onCrashed?.(p?`${p.id}: ${p.message}`:void 0)})).add(B.events.fetcherRecoverableError$.subscribe(p=>{l?.onRecoverableError?.(p?`${p.id}: ${p.message}`:void 0)})).add(B.events.loadedMetadata$.subscribe(()=>{xt.state.loadedMetadata$.set(!0)})).add(B.info.is3DVideo$.subscribe(p=>{xt.ui.is3DVideo.set(p)})).add(B.info.isEnded$.subscribe(p=>{S&&(p?(L?.getValue()&&re.add(ml),re.add("PLAY_BUTTON")):re.remove("PLAY_BUTTON"))})).add(B.info.liveTime$.subscribe(p=>{l?.onLiveTime?.(p)})).add(B.info.isStalled$.subscribe(p=>{l?.onStalledChanged?.(p)})).add(B.info.isLiveEnded$.subscribe(p=>p&&l?.onLiveEnded?.())).add(_e.events.loadStarted$.subscribe(()=>l?.adsInfo?.onLoadStarted?.())).add(_e.events.loadEnded$.subscribe(()=>l?.adsInfo?.onLoadEnded?.())).add(_e.events.loadError$.subscribe(()=>l?.adsInfo?.onLoadError?.())).add(_e.events.init$.subscribe(()=>l?.adsInfo?.onInit?.())).add(_e.events.ready$.subscribe(()=>l?.adsInfo?.onReady?.())).add(_e.events.started$.subscribe(p=>l?.adsInfo?.onStarted?.(p))).add(_e.events.timeRemained$.subscribe(p=>l?.adsInfo?.onTimeRemained?.(p))).add(_e.events.ended$.subscribe(p=>l?.adsInfo?.onCompleted?.(p))).add(_e.events.empty$.subscribe(()=>l?.adsInfo?.onEmpty?.())).add(_e.events.clicked$.subscribe(p=>l?.adsInfo?.onClicked?.(p))).add(_e.events.closed$.subscribe(p=>l?.adsInfo?.onClosed?.(p))).add(_e.events.error$.subscribe(p=>l?.adsInfo?.onError?.(p))).add(_e.events.paused$.subscribe(()=>l?.adsInfo?.onPaused?.())).add(_e.events.resumed$.subscribe(()=>l?.adsInfo?.onResumed?.())),ui=new tf,Fi=()=>{let{debugLog:p}=se,k,O="#9df7b7",Se="#efd169";if(p&&p!==!0){let{colors:_t}=p;k=p.tag,O=_t?.[0]??O,Se=_t?.[1]??_t?.[0]??Se}let rt=k?`: ${k}`:"";ui.add(B.events.log$.subscribe(_t=>{console.debug(`%c sdk${rt} `,`background:${O};`,`sdk component: ${_t.component}`,_t.message)})).add(Re.log$.subscribe(_t=>{console.debug(`%c ui${rt} `,`background:${Se};`,`ui component: ${_t.component}.`,_t.message)}))},Do=()=>{ui.unsubscribe()},nn=(p,k)=>{j.log("start camera manual rotation",{mx:p,my:k}),B.startCameraManualRotation(p,k)},io=(p=!1)=>{j.log("stop camera manual rotation",{immediate:p}),B.stopCameraManualRotation(p)},rn=(p,k,O)=>{j.log("move camera focus px",{xpx:p,ypx:k,dt:O}),B.moveCameraFocusPX(p,k,O)},Oo=()=>{B.holdCamera()},Ho=()=>{B.releaseCamera()},co=Wn(B.info.position$.getValue(),p=>{let k,O,Se=()=>{let rt=B.info.playbackState$.getValue(),_t=B.info.isLive$.getValue(),Lt=B.info.duration$.getValue(),jt=B.info.position$.getValue();if(rt&&[Hl.PLAYING,Hl.PAUSED].includes(rt)){let ho=_t?jt-Lt:B.getExactTime();ho!==O&&p(ho),O=ho}k=requestAnimationFrame(Se)};return Se(),()=>cancelAnimationFrame(k)}),z=Ut(B.info.playbackState$),zt=Ut(B.info.currentBuffer$),yi=Ut(B.info.isEnded$),Ui=Ut(B.info.isLive$),Xt=se.features.playbackRate?Ut(B.info.canChangePlaybackSpeed$):Wn(!1),Jt=Ut(B.info.liveBufferTime$),Yn=Ut(B.info.volume$),yo=Ut(B.info.muted$),an=Xd(B.info.predefinedQualityLimitType$.pipe(ph(p=>p===Br.TRAFFIC_SAVING)),B.info.predefinedQualityLimitType$.getValue()===Br.TRAFFIC_SAVING),xo=Xd(B.info.predefinedQualityLimitType$.pipe(ph(p=>p===Br.HIGH_QUALITY)),B.info.predefinedQualityLimitType$.getValue()===Br.HIGH_QUALITY),Mt=Ut(B.info.autoQualityLimitingAvailable$),uo=Ut(B.info.availableQualities$),bt=Ut(B.info.availableQualitiesFps$),Bt=Ut(B.info.chromecastState$),po=Ut(B.info.chromecastDeviceName$),ki=Ut(B.info.currentFormat$),An=Ut(B.info.throughputEstimation$),oo=Ut(B.info.videoBitrate$),wo=Ut(B.info.intrinsicVideoSize$),Wt=Ut(B.info.duration$),mt=Ut(B.info.isAudioAvailable$),ei=null,zi=B.info.isBuffering$,di=Wn(zi.getValue(),p=>{let k=zi.subscribe(O=>{O&&ei===null?ei=window.setTimeout(()=>{p(zi.getValue()),ei=null},se.loaderDelay):p(O)});return()=>{k.unsubscribe(),ei&&clearTimeout(ei)}}),sn=()=>{ei&&clearTimeout(ei),ei=null},mi=li([Wt,Ui],([p,k])=>k?-p:p),no=li([z],([p])=>p===Hl.PLAYING),So=Ut(B.info.atLiveEdge$),ln=Ut(B.info.atLiveDurationEdge$),vi=Ut(B.info.position$),Pn=li([vi,Wt],([p,k])=>isFinite(p)&&isFinite(k)&&!!k),Fo=li([Bt],([p])=>p===I$.CONNECTED),fo=Ut(B.info.availableVideoStreams$),Uo=se.features.audioLanguages?Ut(B.info.availableAudioStreams$):Wn([]),hr=Ut(B.info.currentVideoStream$),Zn=Ut(B.info.currentAudioStream$),Mn=p=>{p.language&&rp(p.language),B.setVideoStream(p)},dn=p=>{p.language&&rp(p.language),B.setAudioStream(p)},zo=p=>{let k;if(p.length===1&&(k=p.at(0)),k??=p.find(Se=>"isDefault"in Se&&Se.isDefault),k)return k;let O=$g();return O&&(k=p.find(({language:Se})=>O===Se)),k??=p.at(0),k},cn=!1;Zt.add(B.info.availableAudioStreams$.subscribe(p=>{if(!cn&&p.length){let k=zo(p);k&&(B.setAudioStream(k),cn=!0)}}));let qi=!1;Zt.add(B.info.availableVideoStreams$.subscribe(p=>{if(!qi&&p.length){let k=zo(p);k&&(B.setVideoStream(k),qi=!0)}}));let Xe=ae(void 0),qo=Ut(B.info.isAutoQualityEnabled$,p=>p&&Xe.set(void 0)),Ln=Ut(B.info.currentQuality$,()=>Xe.set(void 0)),Vn=li([Xe,Ln],([p,k])=>p??k),un=li(ki,p=>p!==Fl.MPEG),Ko=li([uo,bt,qo,Vn,un],([p,k,O,Se,rt])=>{let _t=[];rt&&_t.push({value:"auto",displayValue:Ne("auto_quality_option"),selected:O});let Lt=p.filter(jt=>!L$(jt));for(let jt of Lt){let ho=k[jt];_t.push({value:jt,displayValue:`${jt}${ho?ah(ho):""}`,selected:O?!1:jt===Se})}return _t}),Wo=Ut(B.info.currentPlaybackRate$),Co=li([Wo,So,ln],([p,k,O])=>{let Se=O||S?1:se.controls.playbackRateMin,rt=k?1:se.controls.playbackRateMax,_t=se.controls.playbackRateStep,Lt=[];for(let jt=Se;jt<=rt;jt+=_t)Lt.push({value:jt,displayValue:jt===1?Ne("playback_rate_1"):Ne("playback_rate",{multiplier:jt.toString(10)}),selected:p===jt});return Lt}),Ti={displayValue:Ne("subtitles_off"),value:"off"},Ii=ae({...Ti}),Rn=se.features.subtitles?Ut(B.info.availableTextTracks$):Wn([]),pn=ug(),Bn=li([Rn,Ii],([p,k],O)=>{let Se=[],rt=p.find(({id:_t})=>_t===k.value);if(rt?.url){let[,_t]=pn.find(rt.url)??[];if(_t){O(_t);return}qe.download(rt.url).then(Lt=>{if(!Lt||qe.isDestroyed())return;let jt=new sh,ho=rt.language;if(ho){let Xc=!!rt.isAuto,Jh=jt.parse(Lt,ho);Se.push({lang:ho,subtitles:Jh,isAuto:Xc,id:rt.id})}pn.add(rt.url,Se),ve(Ii).value===k.value&&O(Se)}).catch(Lt=>{ge?.oneStat?.logError({errorType:"Subtitles download",fatal:!1}),Ce?.report(Lt,{errorType:"Subtitles download",fatal:!1})})}O(Se)}),Xn=li([Wo,no,Ii],([p,k,O],Se)=>{let Lt;if(B.info.isLive$.getValue()&&k&&O.value!==Ti.value){let ho=()=>{let Xc=1e3/(3*p);Lt=setTimeout(ho,Xc),Se(Date.now())};return ho(),()=>clearTimeout(Lt)}}),Ai=li([Rn,Ii],([p,k])=>{if(!p.length)return[];let O=[];for(let{language:Se,isAuto:rt,id:_t}of p){let Lt=Se&&wc(Se);Se&&Lt&&O.push({displayValue:rt?Ne("subtitles_auto",{language:Lt}):Lt,value:_t,selected:k?.value===_t,isAuto:rt})}return O.length?(O.unshift({...Ti,selected:k?.value===Ti.value}),O):[]}),Pi={available:[],prev:[]},fn=()=>B.experimental.getCurrentTime$.getValue()?.()??Ie?.currentTime??0,mn=li([co,Ii,Bn,Xn],([p,k,O,Se])=>{let rt=B.info.isLive$.getValue();if(rt&&Pi.prev!==O){let _t=O.find(({id:jt})=>jt===k.value),Lt=Pi.prev.find(({id:jt})=>jt===k.value);if(_t){let jt={..._t,subtitles:[...Lt?.subtitles??[],..._t.subtitles]};Pi.available=[jt],Pi.prev=O}}if(k&&k.value!==Ti.value){let _t=rt?fn():p,Lt=rt?Pi.available:O;return ch(_t,k,Lt,rt)}}),Ki=li([mn],([p])=>p?.texts?p.texts:[]),Mi=ae(!0),vn=li([zt,mi,vi,Jt],([p,k,O,Se])=>{let rt=p?.end??0;if(!Se)return rt/k;let Lt=-O+Se-k;return(rt-Lt)/k}),mo=Ut(B.info.availableSources$),_r=li([mo],([p])=>Object.keys(p?.[Fl.MPEG]||{}).length>0),gn=()=>{let p=Object.keys(B.info.availableSources$?.getValue()?.[Fl.MPEG]||{}),k=P$(p)||F$.Q_144P;return be.sources[Fl.MPEG]?.[k]},Jn=()=>{let p=gn();if(p)j.log("download video",{url:p}),lg(p,be?.meta?.title||"video");else{let k="There is no URL for download video";j.log("download video",{message:k}),R({message:k})}},hn=()=>{R({message:"toggle muted"});let p=B.info.muted$.getValue();B.info.volume$.getValue()===0&&!p?bn(Dn()):qt(!p)},_n=()=>{if(xt.ui.settingsMenu.visible$.set(!1),!ve(xt.ui.settingsSubMenu.visible$)){let p=ve(xt.ui.settingsMenu.ref$);if(l?.uiInfo?.onSettingsMenu&&p){let O=As(p),Se={top:0,left:0,bottom:0,right:0};l.uiInfo.onSettingsMenu({visible:!1,size:O,position:Se,name:"settings"})}}j.log("close settings menu")},br=async(p,k=()=>Promise.resolve())=>{xt.ui.settingsMenu.openedByBtnKeyboard$.set(!!p),xt.ui.settingsMenu.visible$.set(!0),await k();let O=ve(xt.ui.settingsMenu.ref$),Se=ga();if(l?.uiInfo?.onSettingsMenu&&O&&Se){let _t=As(O),Lt=Es(O,Se);l.uiInfo.onSettingsMenu({visible:!0,size:_t,position:Lt,name:"settings"})}j.log("open settings menu",{wasOpenedByKeyboard:p})},Nn=(p,k=!1)=>{xt.ui.settingsSubMenu.visible$.set(!1);let O=ve(xt.ui.settingsMenu.ref$),Se=ga(),rt=ve(xt.ui.settingsMenu.visible$);if(l?.uiInfo?.onSettingsMenu&&O&&Se)if(rt&&!k){let Lt=As(O),jt=Es(O,Se);l.uiInfo.onSettingsMenu({visible:!0,size:Lt,position:jt,name:"settings"})}else{let Lt=As(p),jt={top:0,left:0,bottom:0,right:0},ho=ve(xt.ui.settingsSubMenu.name$);l.uiInfo.onSettingsMenu({visible:!1,size:Lt,position:jt,name:ho})}j.log("close settings sub menu")},er=(p,k)=>{xt.ui.settingsSubMenu.visible$.set(!0),xt.ui.settingsSubMenu.ref$.set(k),xt.ui.settingsSubMenu.name$.set(p);let O=ga();if(l?.uiInfo?.onSettingsMenu&&k&&O){let rt=As(k),_t=Es(k,O);l.uiInfo.onSettingsMenu({visible:!0,name:p,size:rt,position:_t})}j.log("open settings sub menu",{name:p})},Dn=()=>{let p=Math.max(se.volumeMinRestore,Jd()??0);return p===0?se.volumeDefault:p},bn=p=>{let k=p===0?Dn():p,O=B.info.muted$.getValue();R({message:`set volume, volume: ${p}, preferredVolume: ${k}`}),O&&p>0&&!s&&(O=!1,op(!1)),B.setVolume(p,O),_e.setVolume(p),Xu(k)},qt=p=>{let k=B.info.volume$.getValue();if(R({message:`set muted, currentVolume: ${k}, mute: ${p}`}),B.setMuted(p),_e.setVolume(p?0:k),op(p),!p&&k===0){let O=Dn();B.setVolume(O),Xu(O),_e.setVolume(O)}},ko=ae(!1),st=p=>{j.log("set looped",{isLooped:p}),ko.set(p),B.setLooped(p)};st(te);let At=()=>{l?.uiInfo?.onReportProblem?.()},Yt=(p,k=!1)=>{R({message:`set autoplayNextEnabled, value: ${p}`}),j.log("set autoplay next enabled",{autoplayNextEnabled:p}),xt.ui.autoplayNextEnabled$.set(p),wg(p),k&&l?.onSetAutoplayNextEnabled?.(p)},Kt=p=>{R({message:`set timerNextVideoRunning, value: ${p}`}),j.log("set timer next video running",{timerNextVideoRunning:p}),xt.ui.timerNextVideoRunning$.set(p)},Wi=(p=!0)=>{let k=!0;if(p&&l?.onPrevVideoClick)try{k=l?.onPrevVideoClick?.()}catch{R({message:"onPrevVideoClick callback failed to execute"})}k&&ie()},Li=(p=!0)=>{let k=!0;if(p&&l?.onNextVideoClick)try{k=l?.onNextVideoClick?.()}catch{R({message:"onNextVideoClick callback failed to execute"})}k&&oe()},Qi=()=>{l?.onNextVideoAnnouncementShow?.()},To=()=>{l?.onNextVideoAnnouncementClick?.()},Qo=()=>{l?.onNextVideoAnnouncementAuto?.()},Je=()=>{l?.onNextVideoAnnouncementCancel?.()},ft=()=>{B.prepare()},ti=()=>{In(xt);let p=ve(xt.ui.controls.disabledControls$),k=ve(xt.playerPhase),O={playerPhase:k,isInteractive:S,isVideoEnded:!1,action:"none"};if(p.has("PLAY_BUTTON"))return;if(R({message:"toggle play"}),k==="ads"){O.action="play",j.log("toggle adman play",O),_e.togglePlay();return}let Se=()=>{R({message:"toggle play, call player.play"}),O.action="play",B.play(),l?.onPlay?.()},rt=()=>{R({message:"toggle play, call player.pause"}),O.action="pause",B.pause(),l?.onPause?.()};if(B.info.isEnded$.getValue()){if(R({message:"toggle play, video ended, seek to 0"}),Ke.next(),Ze.next(jr.REWIND),S){A?.();return}B.seekTime(0),Se()}else B.info.playbackState$.getValue()!==Hl.PLAYING?Se():rt();j.log("toggle play",O)},Vi=(p,{changeReason:k="default",appliesTo:O="to-video"}={})=>{R({message:`set quality, quality: ${p}`}),j.log("set quality",{quality:p}),B.setAutoQuality(p==="auto"),p!=="auto"?(se.features.qualityDetailsSubMenuEnabled?(ec({type:"exact_quality",quality:p,videoId:i},O),gl(),B.setPredefinedQualityLimits(Br.UNKNOWN)):Ju(i,p),Xe.set(p),B.setQuality(p)):se.features.qualityDetailsSubMenuEnabled?k==="default"&&(Ei("auto_quality",O),ve(an)&&Gi(!1),ve(xo)&&$r(!1)):gl()},Gi=(p,k="as-default")=>{R({message:`set trafficSavingEnabled, value: ${p}`}),j.log("set traffic saving enabled",{trafficSavingEnabled:p});let O=p?Br.TRAFFIC_SAVING:Br.UNKNOWN;se.features.qualityDetailsSubMenuEnabled?(On(O,k),vl(!1)):(B.setPredefinedQualityLimits(O),vl(p))},$r=(p,k="as-default")=>{R({message:`set highQualityEnabled, value: ${p}`}),j.log("set high quality enabled",{highQualityEnabled:p}),On(p?Br.HIGH_QUALITY:Br.UNKNOWN,k)},On=(p,k)=>{p!==Br.UNKNOWN&&(ve(Mt)&&!ve(qo)&&Vi("auto",{appliesTo:k,changeReason:"limit-changed"}),Ei(p,k)),B.setPredefinedQualityLimits(p)},Ei=(p,k)=>{ec({type:p,videoId:i},k),k==="as-default"&&ec({type:p,videoId:i},"to-video")},ro=p=>{j.log("set playback rate",{playbackRate:p}),B.setPlaybackRate(p),se.features.saveRate&&X&&!B.info.isLive$.getValue()&&yg(p)},yr=()=>{let p=ve(Co),k=p.findIndex(({selected:Se})=>Se);if(k===p.length-1)return;let O=p[k+1];ro(O.value)},xr=()=>{let p=ve(Co),k=p.findIndex(({selected:Se})=>Se);if(k===0)return;let O=p[k-1];ro(O.value)},tr=(p={...Ti,selected:!1})=>{j.log("set subtitles",{...p}),p&&p.value!==Ti.value&&Ee.next(p.isAuto?p.value+"_auto":p.value),Ii.set(p)},Go=()=>{j.log("toggle subtitles");let p=ve(Ai),k=ve(Ii),O=ve(Et);if(k?.value===Ti.value){let Se=p.filter(rt=>rt.value!==Ti.value).find(rt=>rt.value===O)||p[1];tr(Se)}else tr()},vo=(p,k,O=!0)=>{if(R({message:`seek to time, time: ${p}`}),j.log("seek to time",{time:p,action:k,forcePrecise:O}),Ze.next(k),B.info.isLive$.getValue()){let Se=B.info.duration$.getValue(),rt=Math.min(0,Se+p);B.seekTime(rt,O)}else{if(L?.getValue())return;B.info.isEnded$.getValue()&&(R({message:"seek after ended, call callbacks.onPlay"}),l?.onPlay?.()),B.seekTime(ea(p),O)}},ir=p=>{R({message:`seek to episode start time: ${p}`}),j.log("seek to episode start time",{time:p}),vo(p,jr.EPISODE,!0)},wr=(p,k)=>{R({message:`seek to percent, percent: ${p}`}),j.log("seek to percent",{percent:p,action:k});let O=ve(mi)*p;vo(O,k,!1)},or=p=>{R({message:`seek external, time: ${p}`}),j.log("seek external",{time:p}),Ze.next(jr.UNKNOWN),B.seekTime(B.info.isLive$.getValue()?-p:p)},Sr=p=>{let k=p.max??"none",O=p.min??"none";R({message:`set auto quality limitation. Max: ${k}. Min: ${O}`}),j.log("set auto quality limits",{max:k,min:O}),B.setAutoQualityLimits(p)},nr=p=>{R({message:`seek external to episode start time: ${p}`}),j.log("seek external to episode start time",{time:p}),vo(p,jr.EPISODE,!0)},jo=p=>{R({message:`set playback rate to: ${p}`}),j.log("set playback rate external",{playbackRate:p}),B.setPlaybackRate(p)},$n=ae(void 0),Hn=ae(!1),Cr=p=>{R({message:`start scrubbing, progress: ${p}`}),j.log("start scrubbing",{progress:p}),Hn.set(!0),ji(p)},ji=p=>{$n.set(p)},et,Pt,pi=()=>{$n.set(void 0),Hn.set(!1)},go=()=>{clearTimeout(Pt),clearTimeout(et),et=window.setTimeout(()=>{pi()},500),Ie?.removeEventListener("seeked",go)},Te=p=>{R({message:`complete scrubbing, progress: ${p}`}),j.log("complete scrubbing",{progress:p}),wr(p,jr.SLIDER),ve(xt.ui.isMobile)&&ve(xt.state.currentFormat$)===Fl.HLS?(Ie?.addEventListener("seeked",go),Pt=window.setTimeout(()=>{go()},300)):pi()},Nt=li([co,mi,$n],([p,k,O],Se)=>{Se(V$(O)?O*k:p)}),ci=ae(!1),ii=()=>{ci.set(!0)},gi=()=>{ci.set(!1)},Qt=ae({width:0,height:0}),hi=li([Qt],([{width:p}],k)=>{let O=th(p);k(O)}),ao=ae(!1),xi=Q.filter(p=>dg(p)),oi=li([hi,ao],([p,k])=>k?xi.filter(O=>!O.hideOnMobile):xi.filter(O=>!O.hideOnDesktopGridTypes?.includes(p))),Io=ae(Q.filter(p=>cg(p))),De=li([Io,hi],([p,k])=>p.filter(O=>!O.hideOnDesktopGridTypes?.includes(k))),Dt=li([De,oi],([p,k])=>[...se.features.additionalButtonsDesktopControlPanelRight?p.filter(O=>O.type==="desktop-control-panel-right"):[],...se.features.additionalButtons?k.map((O,Se)=>({id:Se,weight:Se,type:"desktop-control-panel-right",testId:O.testId,icon:O.iconUrl,onClick:O.onClick,ariaLabel:O.ariaLabel??O.tooltip,tooltipText:O.tooltip})):[]]),ni=ae(G),Yo=li([ni],([p])=>se.features.additionalSettingsMenuItems?p.map(k=>k.type==="SWITCH"?{...k,onClick:k.onChangeEnabled}:k):[]),Eo=(p,k)=>{let O=ve(Io).map(Se=>Se.id!==p?Se:{...Se,...k});Io.set(O)},rr=p=>{let k=ve(Io);if(k.some(O=>O.id===p.id)){R({message:`Additional button with id: "${p.id}" was exist! Can't add more with the same id`});return}k.push(p),Io.set(k)},Zo=p=>{let k=ve(Io);if(!k.some(O=>O.id===p)){R({message:`Can't find additional button with id: "${p}"! Can't remove item with this id`});return}k=k.filter(O=>O.id!==p),Io.set(k)},ar=p=>{Ze.next(jr.LIVE),R({message:"live switch to low latency "+p}),j.log("live switch to low latency "+p),B.setLiveLowLatency(p)},Bs=(p,k)=>{let O=ve(ni).map(Se=>Se.id!==p?Se:{...Se,...k});ni.set(O)},Za=p=>{let k=ve(ni);if(k.some(O=>O.id===p.id)){R({message:`Settings menu item with id: "${p.id}" was exist! Can't add more with the same id`});return}k.push(p),ni.set(k)},Ns=p=>{let k=ve(ni);if(!k.some(O=>O.id===p)){R({message:`Can't find settings menu item with id: "${p}"! Can't remove item with this id`});return}k=k.filter(O=>O.id!==p),ni.set(k)},yn=ae(ee),Ds=li([yn],([p])=>se.features.additionalContextMenuItems?p:[]),Xa=(p,k)=>{let O=ve(yn).map(Se=>Se.id!==p?Se:{...Se,...k});yn.set(O)},$t=p=>{let k=ve(yn);if(k.some(O=>O.id===p.id)){R({message:`Context menu item with id: "${p.id}" was exist! Can't add more with the same id`});return}k.push(p),yn.set(k)},ht=p=>{let k=ve(yn);if(!k.some(O=>O.id===p)){R({message:`Can't find context menu item with id: "${p}"! Can't remove item with this id`});return}k=k.filter(O=>O.id!==p),yn.set(k)},xn=li([ao,nt],([p,k],O)=>{O(p&&k)}),kr=()=>{Ze.next(jr.LIVE),R({message:"switch to active live"}),j.log("switch to active live"),B.seekTime(0),B.info.playbackState$.getValue()!==Hl.PLAYING&&xt.actions.internal.togglePlay()},va=()=>{j.log("skip adman"),_e.skip()},Tr=(p=!0)=>{In(xt),R({message:`switch from ads to video, callPlay: ${p}`}),j.log("switch from ads to video",{callPlay:p}),Ye.set("video"),p&&B.play()},Ir=()=>{In(xt),R({message:"switch from video to ads"}),j.log("switch from video to ads"),xt.actions.internal.pause(),Gt(),Ye.set("ads")},Jr=p=>{In(xt);let k=p?"LiveWaitingStart":"thumb";j.log("set live waiting start",{state:p,playerPhase:k}),Ye.set(k)},Os=p=>{In(xt);let k=p?"LiveWaitingRecover":"thumb";j.log("set live waiting recover",{state:p,playerPhase:k}),Ye.set(k)},_d=p=>{In(xt);let k=p?"LiveWaitingRecord":"thumb";j.log("set live waiting record",{state:p,playerPhase:k}),Ye.set(k)},Qc=()=>(In(xt),j.log("get debug text data"),ag(B,be,xt)),bd=()=>(In(xt),JSON.stringify(He.getFinishedSpans())),Gc=()=>(In(xt),sg(B,be,xt)),ga=()=>Ie,jc=()=>{R({message:"toggle chromecast"}),j.log("toggle chromecast"),B.toggleChromecast()},Hs=p=>{if(In(xt),B.info.isEnded$.getValue())return;let k=!p;if(ve(xt.playerPhase)==="ads"){R({message:`pause ads, internalCall: ${k}`}),j.log("pause ads",{internalCall:k}),_e.pause();return}R({message:`pause video, internalCall: ${k}`}),j.log("pause video",{internalCall:k}),k&&l?.onPause?.(),B.pause()},Fs=p=>{In(xt);let k=!p;if(ve(xt.playerPhase)==="ads"){R({message:`play ads, internalCall: ${k}`}),j.log("play ads",{internalCall:k}),_e.play();return}R({message:`play video, internalCall: ${k}`}),j.log("play video",{internalCall:k}),k&&l?.onPlay?.(),B.play()},$d=p=>{In(xt);let k=!p;if(ve(xt.playerPhase)==="ads"){R({message:"player cannot be stopped during ads via external method"});return}R({message:`player will be stopped, internalCall: ${k}`}),P?.()},yd=(p,k)=>{In(xt),R({message:`first start, show ads: ${p}, internalCall: ${!k}`}),j.log("first start",{showAds:p,external:k}),p?Ye.set("ads"):(Ye.set("video"),k?B.play():xt.actions.internal.togglePlay())},Ja=()=>(R({message:"getting time codes"}),u),xd=()=>{let p=Ja();if(!p||[0,1].includes(p.length))return;let k=B.info.position$.getValue();return p.find(O=>O.time>k)},wd=p=>{let k=p;k||(k=xd());let O=B.info.position$.getValue();j.log("seek to next episode",{currentTime:O,...k}),k&&(R({message:"seek to next episode"}),vo(k.time,jr.EPISODE,!0))},Sd=()=>{let p=Ja();if(!p||[0,1].includes(p.length))return;let k=B.info.position$.getValue(),O=p.findIndex(rt=>rt.time>k),Se=O===-1?p.length-2:O-2;if(!(Se<0))return p[Se]},Cd=p=>{let k=p;k||(k=Sd());let O=B.info.position$.getValue();j.log("seek to prev episode",{currentTime:O,...k}),k&&(R({message:"seek to prev episode"}),vo(k.time,jr.EPISODE,!0))},Yc=()=>(R({message:"getting preview thumbs data"}),j.log("get preview thumbs data",{..._}),_),Zc=async()=>{let p=Be?.isActive(),k="none";Be?.isActive()?(k="remove",await Be?.remove()):(k="request",await Be?.request()),j.log("toggle picture in picture",{isActive:p,action:k})},Ue=(p=-90)=>{j.log("rotate video",{alphaDiff:p}),gt.update(k=>k+p)},Ft=ae([]);I?.subscribe(p=>{let k=[];for(let O=0;O<p.length;O++){let{range:[Se,rt],subjects:_t}=p[O];O===0&&Se!==0&&k.push({time:0,text:"",interactive:!1,completed:!0}),k.push({time:Se/1e3,text:"",interactive:!0,completed:se.features.interactiveTimeOpenUri?!_t.length||_t.every(Lt=>Lt.isRemoved):!_t.length}),rt!==1/0&&k.push({time:rt/1e3,text:"",interactive:!1,completed:!0})}Ft.set(k)});let Fn=ae(!1);L?.subscribe(p=>{p&&ve(Hn)&&pi()});let ea=p=>{if(!S)return p;let k=ve(Ft),O=ve(mi),rt=ve(vi)/O,_t=k.find(Lt=>Lt.interactive&&!Lt.completed&&Lt.time>rt);return typeof _t?.time=="number"?Math.min(p,_t.time-.05):p},Nr=()=>{xt.ui.episodes.panelOpened$.set(!1)},Xh=()=>{j.log("destroy store"),clearTimeout(Pt),clearTimeout(et),Zt.unsubscribe(),ui.unsubscribe(),B.destroy(),_e.destroy(),ge?.destroy(),Ce?.destroy(),kt.unsubscribe(),dt?.disconnect(),dt=null,qe.destroy()},xt={interfaceLanguage$:Et,isCyrillicRelatedInterface$:we,initVideo:Fe,videoId:i,isClip:o,playerPhase:W,vsid:ke,state:{positionExact$:co,positionWithScrubbing$:Nt,duration$:mi,playbackState$:z,isPlaying$:no,isLoaderVisible:di,bufferedProgress$:vn,isLive$:Ui,canChangePlaybackSpeed$:Xt,isActiveLive$:So,isOldestAvailableLive$:ln,isRewindableLive$:Pn,isEnded$:yi,muted$:yo,volume$:Yn,trafficSavingEnabled$:an,highQualityEnabled$:xo,autoQualityLimitingAvailable$:Mt,availableVideoStreams$:fo,availableAudioStreams$:Uo,videoStream$:hr,audioStream$:Zn,currentQuality$:Vn,isAutoQualityEnabled$:qo,availableQualities$:Ko,currentPlaybackRate$:Wo,availablePlaybackRates$:Co,currentSubtitle$:Ii,availableTextTracks$:Rn,availableSubtitlesList$:Ai,currentSubtitleCaptions$:Ki,isAutoSubtitleCaptionVisible$:Mi,chromecastState$:Bt,chromecastDeviceName$:po,chromecastConnected$:Fo,currentFormat$:ki,throughputEstimation$:An,videoBitrate$:oo,videoSize$:wo,errorLog$:ot,crashed$:nt,isAudioAvailable$:mt,isAudioDisabled:!!s,canDownload:se.features.download&&!!d,availableSources$:mo,hasMpegSources$:_r,isInteractive:S,showInteractiveGraph:se.features.interactiveGraph,showSeekToInteractive:se.features.seekToInteractive,showPlayPrevChapter:se.features.interactivePlayPrevChapter,showInteractiveTimeIndicator:se.features.interactiveTimeIndicator&&!!ve(Ft).length,interactiveEpisodes$:Ft,isInteractiveTime$:L?Ut(L):ae(!1),isInteractiveExpectation$:Fn,hasInteractiveBranches:T,playPrevChapterDisabledTooltip:D,looped$:ko,loadedMetadata$:ae(!1),isAutoQualityAvailable$:un},ui:{t:Ne,controlsVisible:ae(!1),touched:ae(!1),controls:{prevButton:ae(void 0),playButton:ae(void 0),replayButton:ae(void 0),nextButton:ae(void 0),playPrevChapterButton:ae(void 0),seekToInteractiveButton:ae(void 0),interactiveGraphButton:ae(void 0),liveButton:ae(void 0),time:ae(void 0),episodes:ae(void 0),volume:ae(void 0),subtitles:ae(void 0),settings:ae(void 0),context:ae(void 0),chromecast:ae(void 0),pip:ae(void 0),fullscreen:ae(void 0),vkLogo:ae(void 0),interactiveTimeIndicator:ae(void 0),timeline:ae(void 0),autoplayNextToggle:ae(void 0),additionalButtons:Q.length?Q.reduce(p=>[...p,ae(void 0)],[]):[],disabledControls$:re},modals:{hotKeyMap:{show:ae(!1),data:ae({title:"",closeBtnText:"",groups:[]})}},isFullscreen:Pe,isFullscreenOpenedByKeyboard:Ve,rotateAlpha:gt,isAutoplay:ae(!1),debugPanelVisible:ae(!1),episodes:{panelOpened$:ae(!1),openedByKeyboard$:ae(!1)},contextMenu:{visible$:ae(!1),btnRef$:ae(void 0),openedByBtnKeyboard$:ae(!1),openedByHotKey$:ae(!1),lastActiveElem$:ae(void 0),showContextMenuBtn$:ae(!1),position$:ae({top:0,left:0})},playerSize:Qt,isMobile:ao,mobileNotReportControlHidden$:xn,mobileUnmuteButtonExpanded:ae(!1),mobileUnmuteButtonVisible:ae(!1),icon3DVideoVisible:ae(!1),scrubbingInProgress:Hn,volumeChangingInProgress:ci,is3DVideo:ae(!1),currentGridType$:hi,additionalButtonsDeprecated$:oi,additionalDesktopControlPanelRightButtons$:Dt,additionalSettingsMenuItems$:Yo,additionalContextMenuItems$:Ds,interactiveHideMobileControls:ae(!1),overlayContainer$:ae(void 0),startedByKeyboard$:ae(!1),autoplayNextEnabled$:ae(!1),timerNextVideoRunning$:ae(!0),settingsMenu:{visible$:ae(!1),ref$:ae(void 0),openedByBtnKeyboard$:ae(!1)},settingsSubMenu:{visible$:ae(!1),ref$:ae(void 0),name$:ae(void 0)}},ads:{position:ae(0),duration:ae(0),playbackState:ae("inactive"),canSkip:ae(!1),secondsToWatchBeforeSkip:ae(0),postrollPassed:ae(!1)},webApi:{pictureInPictureApi:Be,annotationsApi:ue},actions:{internal:{preload:ft,firstStart:p=>yd(p,!1),play:()=>Fs(!1),pause:()=>Hs(!1),togglePlay:ti,toggleMuted:hn,openSettingsMenu:br,closeSettingsMenu:_n,openSettingsSubMenu:er,closeSettingsSubMenu:Nn,setVolume:bn,startVolumeChanging:ii,stopVolumeChanging:gi,setVideoStream:Mn,setAudioStream:dn,setQuality:Vi,setTrafficSavingEnabled:Gi,setHighQualityEnabled:$r,setPlaybackRate:ro,incrementPlaybackRate:yr,decrementPlaybackRate:xr,setSubtitle:tr,toggleSubtitle:Go,togglePictureInPicture:Zc,startScrubbing:Cr,progressScrubbing:ji,completeScrubbing:Te,toggleChromecast:jc,switchToActiveLive:kr,switchFromAdsToVideo:Tr,switchFromVideoToAds:Ir,skipAd:va,setLiveWaitingStart:Jr,setLiveWaitingRecover:Os,setLiveWaitingRecord:_d,getDebugTextData:Qc,getTraceTextData:bd,getDebugPanelData:Gc,getVideoElement:ga,seekTime:(p,k,O)=>vo(p,k,O),clearDelayedBufferingCheckTimeout:sn,seekEpisodeStartTime:ir,seekToPercent:wr,getNextEpisode:xd,seekToNextEpisode:wd,getPrevEpisode:Sd,seekToPrevEpisode:Cd,startLogging:Fi,stopLogging:Do,startCameraManualRotation:nn,stopCameraManualRotation:io,moveCameraFocusPX:rn,holdCamera:Oo,releaseCamera:Ho,getVideoEpisodes:Ja,getPreviewThumbsData:Yc,downloadVideo:Jn,addLanguage:ap,setLanguage:ut,nextMovie:yt,videoRotate:Ue,correctSeekTimeToInteractive:ea,replayInteractive:A,setLooped:st,reportProblem:At,setAutoplayNextEnabled:Yt,setTimerNextVideoRunning:Kt,prevVideoClick:Wi,nextVideoClick:Li,nextVideoAnnouncementShow:Qi,nextVideoAnnouncementClick:To,nextVideoAnnouncementAuto:Qo,nextVideoAnnouncementCancel:Je},external:{firstStart:p=>yd(p,!0),play:()=>Fs(!0),pause:()=>Hs(!0),stop:()=>$d(!0),seekTime:p=>or(p),seekEpisodeStartTime:p=>nr(p),setPlaybackRate:p=>jo(p),setAutoQualityLimits:p=>Sr(p),setMuted:qt,setVolume:bn,returnFocusToEpisodes:Nr,updateAdditionalSettingsItem:Bs,addAdditionalSettingsItem:Za,removeAdditionalSettingsItem:Ns,updateAdditionalContextItem:Xa,addAdditionalContextItem:$t,removeAdditionalContextItem:ht,updateAdditionalButton:Eo,addAdditionalButton:rr,removeAdditionalButton:Zo,setLiveLowLatency:ar}},callbacks:l,setUiCallbacks:p=>{je={...p}},getAdmanWrapper:()=>_e,getLogger:()=>Re,getPlayer:()=>B,destroy:Xh};return xt};function Ka(t,e,i,o){let n=["interactiveTimeIndicator"],a=e[i]?.getBoundingClientRect(),s=(o||n.includes(i))&&!!a&&!!(a.right-a.left),{top:d,left:l,bottom:c,right:u}=Es(e[i],t||void 0);return{left:s?l:0,right:s?u:0,top:s?d:0,bottom:s?c:0,isDisplayed:s}}var Tc=(t,e,i,o)=>{if(t)for(let[n,a]of Object.entries(e))["tooltipPointerOffsetX","disabledControls$","additionalButtons"].includes(n)||a.set(Ka(t,i,n,o))};var Ic=async(t,e,i)=>{await Xi(),e&&i&&(i.focus(),t.set(!1))};var q$=me('<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 of(t,e){let i=xe(e,["$$slots","$$events","$$legacy","children"]);var o=q$();let n;var a=h(o);ce(a,()=>e.children??J),fe(),g(o),C(()=>n=he(o,n,{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none","aria-hidden":"true","data-testid":"dots-icon",role:"img",...i})),b(t,o)}function nf(t,e){F(e,!0);let[i,o]=Oe(),n=()=>$(l,"$contextMenuVisible$",i),a=v(e,"disabled",3,!1),s=v(e,"ariaLabel",3,""),d=ye(),l=d.ui.contextMenu.visible$,c=d.ui.contextMenu.openedByBtnKeyboard$,u=d.ui.contextMenu.showContextMenuBtn$,_=d.ui.contextMenu.position$,f=d.ui.contextMenu.btnRef$,y=Y(void 0);Qe(()=>{r(y)&&pt(()=>{f.set(r(y))})});let x=L=>{let A=ca(L),P=Qg(r(y));_.set(P),c.set(A),l.set(!n())},w=()=>{u.set(!0)},S=()=>{u.set(!1)},I=m(()=>n()?"opened":"");Ct(t,{get className(){return r(I)},testId:"btn-context-menu",get disabled(){return a()},get ariaLabel(){return s()},click:x,focus:w,blur:S,get ariaExpanded(){return n()},get ref(){return r(y)},set ref(L){N(y,le(L))},children:(L,A)=>{of(L,{})},$$slots:{default:!0}}),U(),o()}var K$=t=>{t.stopPropagation()},W$=M("<div><!> <div></div> <div></div></div>"),Q$={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;}
225
230
 
226
231
  @media screen and (orientation: portrait) {.interactive-episode-icon-animated.mobile.fullscreen.svelte-od3veb {top:40px;right:16px;}
227
232
  }
@@ -246,8 +251,8 @@ Try switching the\xA0quality to\xA0Auto.`},Lg=C$;var gs=new Map;gs.set(Vg.EN,Lg)
246
251
  opacity: 0;
247
252
  }
248
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);
249
- 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 gl(t,e){if(new.target)return T({component:gl,...t});I(e,!0),oe(t,Gb);let[i,o]=Je(),n=()=>C(k,"$isMobile",i),s=()=>C(H,"$areControlsVisible",i),a=()=>C(q,"$currentGridType$",i),l=()=>C(F,"$isInteractiveTime$",i),c=()=>C(w,"$interactiveControlsOpacity$",i),p=()=>C(M,"$showInteractiveTimeIndicatorTooltip$",i),f=()=>C(V,"$isFullscreen",i),v=u(e,"ref",15,void 0),m=de(void 0),g=Be(),b=go(),{interactiveControlsOpacity$:w}=b,k=g.ui.isMobile,V=g.ui.isFullscreen,F=g.state.isInteractiveTime$,M=b.showInteractiveTimeIndicatorTooltip$,H=g.ui.controlsVisible,S=g.callbacks?.onInteractiveTimeIndicatorClick,q=g.ui.currentGridType$,W=_(()=>!n()&&s()),U=_(()=>Ds(a(),"s")),ie=_(()=>!l()||!!c()||r(W)),se=de(!1);ot(()=>{K(se,ke(r(ie)))});let fe=()=>{K(se,!0)},J=()=>{xe(),r(m)?.addEventListener("animationiteration",fe,{once:!0})},xe=()=>{K(se,!1),r(m)?.removeEventListener("animationiteration",fe)},Ce=ce=>{M.set(ce)},X=_(()=>p()&&!r(ie));ot(()=>{p()?J():xe()});let me=()=>{r(ie)||(M.set(!0),S?.())};tr(()=>{M.clearTimeout(),xe()});let he=()=>{M.set(!1)},te=j("tooltip_interactive_interaction_time_indicator");var le=Qb();le.__mousemove=[Kb],le.__click=me;var z=y(le);ro(z,{tooltipContent:te,get tooltipActive(){return r(X)},initialTranslateYPx:72,tooltipPlacement:"bottom",onTooltipVisibilityChange:Ce,get ref(){return v()},set ref(ce){v(ce)},children:(ce,Ge)=>{al(ce,{completed:!0})},$$slots:{default:!0}});var je=N(z,2);vt(je,ce=>v(ce),()=>v());var Re=N(je,2);vt(Re,ce=>K(m,ce),()=>r(m)),$(le),L(()=>{ne(le,"mobile",n()),ne(le,"fullscreen",f()),ne(le,"invisible",r(ie)),ne(le,"icon-small",r(U)),ne(je,"hidden",r(ie)),ne(Re,"paused",r(se))}),Dt("mouseleave",le,he),x(t,le);var Y=E({get ref(){return v()},set ref(ce=void 0){v(ce),d()},$set:A,$on:(ce,Ge)=>P(e,ce,Ge)});return o(),Y}pt(["mousemove","click"]);function vc(t,e){if(new.target)return T({component:vc,...t});I(e,!0);let i=u(e,"buttonComponent",7),o=u(e,"buttonComponentProps",7),n=u(e,"tooltipText",7),s=u(e,"disabledTooltipContent",7),a=u(e,"disabled",7,!1),l=u(e,"className",7,void 0),c=u(e,"ref",15);return ro(t,{get disabled(){return a()},get tooltipContent(){return n()},get disabledTooltipContent(){return s()},get className(){return l()},get ref(){return c()},set ref(p){c(p)},children:(p,f)=>{var v=Ye();let m=_(i);var g=ye(v);Si(g,()=>r(m),(b,w)=>{w(b,vs(()=>o()??{}))}),x(p,v)},$$slots:{default:!0}}),E({get buttonComponent(){return i()},set buttonComponent(p){i(p),d()},get buttonComponentProps(){return o()},set buttonComponentProps(p){o(p),d()},get tooltipText(){return n()},set tooltipText(p){n(p),d()},get disabledTooltipContent(){return s()},set disabledTooltipContent(p){s(p),d()},get disabled(){return a()},set disabled(p=!1){a(p),d()},get className(){return l()},set className(p=void 0){l(p),d()},get ref(){return c()},set ref(p){c(p),d()},$set:A,$on:(p,f)=>P(e,p,f)})}var bs={prevButton:100,replayButton:200,playButton:300,nextButton:400,playPrevChapterButton:500,seekToInteractiveButton:600,interactiveGraphButton:700,liveButton:800};var jb=Ie('<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 ku(t,e){if(new.target)return T({component:ku,...t});let i=Oe(e,["children","$$slots","$$events","$$legacy"]);I(e,!1);var o=jb();let n;var s=y(o);return De(s,e,"default",{},null),Te(),$(o),L(()=>n=Le(o,n,{xmlns:"http://www.w3.org/2000/svg",width:"26",height:"24",fill:"none","aria-hidden":"true",role:"img",...i},void 0,!0)),x(t,o),E({$set:A,$on:(a,l)=>P(e,a,l)})}function Tu(t,e){if(new.target)return T({component:Tu,...t});I(e,!0);let i=u(e,"isPrev",7,!1),o=u(e,"isMobile",7,!1),n=_(()=>i()&&o()?"transform: scaleX(-1) scale(1.3333);":i()?"transform: scaleX(-1);":o()?"transform: scale(1.3333);":void 0),s=_(()=>i()?"prev-icon":"next-icon");return ku(t,{get style(){return r(n)},get"data-testid"(){return r(s)}}),E({get isPrev(){return i()},set isPrev(a=!1){i(a),d()},get isMobile(){return o()},set isMobile(a=!1){o(a),d()},$set:A,$on:(a,l)=>P(e,a,l)})}var Zb=D('<div class="icon-background-mobile svelte-xtk2k4"></div>'),Xb=D("<!> <!>",1),Jb={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 Os(t,e){if(new.target)return T({component:Os,...t});I(e,!0),oe(t,Jb);let i=u(e,"ref",15,void 0),o=u(e,"isMobile",7,!1),n=u(e,"disabled",7,!1),s=u(e,"type",7),a=u(e,"click",7),c=Be().ui.t,p=_(()=>s()==="prev"?c("tooltip_previous"):c("tooltip_next")),f=_(()=>s()==="prev"?c("hotkey_map_item_prev_video_value"):c("hotkey_map_item_next_video_value")),v=_(()=>`btn-${o()?"m":"d"}--${s()}`);return Mt(t,{get className(){return r(v)},get testId(){return`btn-${s()??""}`},get disabled(){return n()},get ariaLabel(){return r(p)},get click(){return a()},get ariaKeyShortCut(){return r(f)},get ref(){return i()},set ref(m){i(m)},children:(m,g)=>{var b=Xb(),w=ye(b);{var k=M=>{var H=Zb();x(M,H)};O(w,M=>{o()&&M(k)})}var V=N(w,2);let F=_(()=>s()==="prev");Tu(V,{get isMobile(){return o()},get isPrev(){return r(F)}}),x(m,b)},$$slots:{default:!0}}),E({get ref(){return i()},set ref(m=void 0){i(m),d()},get isMobile(){return o()},set isMobile(m=!1){o(m),d()},get disabled(){return n()},set disabled(m=!1){n(m),d()},get type(){return s()},set type(m){s(m),d()},get click(){return a()},set click(m){a(m),d()},$set:A,$on:(m,g)=>P(e,m,g)})}var ey=Ie('<svg><!><path fill="var(--btn-color, #fff)" d="M12 9.096a.4.4 0 0 1-.67.296L7.044 5.493a.67.67 0 0 1 0-.986L11.33.608a.4.4 0 0 1 .67.296V4a8 8 0 1 1-8 8 1 1 0 1 1 2 0 6 6 0 1 0 6-6z"></path></svg>');function hl(t,e){if(new.target)return T({component:hl,...t});let i=Oe(e,["children","$$slots","$$events","$$legacy"]);I(e,!1);var o=ey();let n;var s=y(o);return De(s,e,"default",{},null),Te(),$(o),L(()=>n=Le(o,n,{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none","aria-hidden":"true","data-testid":"replay-icon",role:"img",...i},void 0,!0)),x(t,o),E({$set:A,$on:(a,l)=>P(e,a,l)})}import{noop as wh}from"@vkontakte/videoplayer-shared/evergreen";var ty=D('<div class="icon-background-mobile svelte-1ot3duq"></div>'),iy=D('<!> <div class="svelte-1ot3duq"><!></div>',1),oy={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 ma(t,e){if(new.target)return T({component:ma,...t});I(e,!0),oe(t,oy);let i=u(e,"ref",15,void 0),o=u(e,"isMobile",7,!1),n=u(e,"disabled",7,!1),s=u(e,"className",7,""),a=u(e,"click",7,wh),l=j("tooltip_restart"),c=_(()=>`${o()?"btn-m--play":""} ${s()}`);return Mt(t,{get className(){return r(c)},testId:"btn-replay",ariaLabel:l,get disabled(){return n()},get click(){return a()},get ariaKeyShortCut(){return jr.KeyK},get ref(){return i()},set ref(p){i(p)},children:(p,f)=>{var v=iy(),m=ye(v);{var g=k=>{var V=ty();x(k,V)};O(m,k=>{o()&&k(g)})}var b=N(m,2),w=y(b);hl(w,{}),$(b),L(()=>ne(b,"mobile",o())),x(p,v)},$$slots:{default:!0}}),E({get ref(){return i()},set ref(p=void 0){i(p),d()},get isMobile(){return o()},set isMobile(p=!1){o(p),d()},get disabled(){return n()},set disabled(p=!1){n(p),d()},get className(){return s()},set className(p=""){s(p),d()},get click(){return a()},set click(p=wh){a(p),d()},$set:A,$on:(p,f)=>P(e,p,f)})}var ny=Ie('<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 ts(t,e){if(new.target)return T({component:ts,...t});I(e,!0);let i=u(e,"width",7,"24"),o=u(e,"height",7,"24"),n=u(e,"viewBox",7,"0 0 24 24"),s=u(e,"fill",7,"var(--btn-color)");var a=ny(),l=y(a);return $(a),L(()=>{pe(a,"width",i()),pe(a,"height",o()),pe(a,"viewBox",n()),pe(l,"fill",s())}),x(t,a),E({get width(){return i()},set width(c="24"){i(c),d()},get height(){return o()},set height(c="24"){o(c),d()},get viewBox(){return n()},set viewBox(c="0 0 24 24"){n(c),d()},get fill(){return s()},set fill(c="var(--btn-color)"){s(c),d()},$set:A,$on:(c,p)=>P(e,c,p)})}var ry=Ie('<svg fill="none" xmlns="http://www.w3.org/2000/svg" aria-hidden="true" data-testid="pause-icon"><path d="M8.712 5c.448 0 .61.047.774.134a.913.913 0 0 1 .38.38c.087.164.134.326.134.774v11.424c0 .448-.047.61-.134.774a.914.914 0 0 1-.38.38c-.164.087-.326.134-.774.134H6.788c-.448 0-.61-.047-.774-.134a.914.914 0 0 1-.38-.38c-.087-.164-.134-.326-.134-.774V6.288c0-.448.047-.61.134-.774a.913.913 0 0 1 .38-.38C6.178 5.047 6.34 5 6.788 5h1.924zm8 0c.448 0 .61.047.774.134a.914.914 0 0 1 .38.38c.087.164.134.326.134.774v11.424c0 .448-.047.61-.134.774a.914.914 0 0 1-.38.38c-.164.087-.326.134-.774.134h-1.924c-.448 0-.61-.047-.774-.134a.914.914 0 0 1-.38-.38c-.087-.164-.134-.326-.134-.774V6.288c0-.448.047-.61.134-.774a.914.914 0 0 1 .38-.38c.164-.087.326-.134.774-.134h1.924z"></path></svg>');function Hs(t,e){if(new.target)return T({component:Hs,...t});I(e,!0);let i=u(e,"width",7,"24"),o=u(e,"height",7,"24"),n=u(e,"viewBox",7,"0 0 24 24"),s=u(e,"fill",7,"var(--btn-color)");var a=ry(),l=y(a);return $(a),L(()=>{pe(a,"width",i()),pe(a,"height",o()),pe(a,"viewBox",n()),pe(l,"fill",s())}),x(t,a),E({get width(){return i()},set width(c="24"){i(c),d()},get height(){return o()},set height(c="24"){o(c),d()},get viewBox(){return n()},set viewBox(c="0 0 24 24"){n(c),d()},get fill(){return s()},set fill(c="var(--btn-color)"){s(c),d()},$set:A,$on:(c,p)=>P(e,c,p)})}import{noop as Ch}from"@vkontakte/videoplayer-shared/evergreen";var sy=D('<div class="icon-background-mobile svelte-1ot3duq"></div>'),ay=D('<!> <div class="svelte-1ot3duq"><!></div>',1),ly={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 va(t,e){if(new.target)return T({component:va,...t});I(e,!0),oe(t,ly);let[i,o]=Je(),n=()=>C(s,"$fakeIsPlaying$",i),{fakeIsPlaying$:s}=go(),a=u(e,"ref",15,void 0),l=u(e,"isMobile",7,!1),c=u(e,"isPlaying",7,!1),p=u(e,"disabled",7,!1),f=u(e,"className",7,""),v=u(e,"click",7,Ch),g=Be().ui.t,{toggle:b}=s,w=_(()=>b),k=_(()=>n()!==null),V=_(()=>r(k)?n():c()),F=_(()=>r(V)?g("tooltip_pause"):g("tooltip_play")),M=_(()=>r(V)?Hs:ts),H=_(()=>`${l()?"btn-m--play":""} ${f()}`),S=_(()=>r(k)?r(w):v());Mt(t,{get className(){return r(H)},testId:"btn-play",get click(){return r(S)},get disabled(){return p()},get ariaLabel(){return r(F)},get ariaKeyShortCut(){return jr.KeyK},get ref(){return a()},set ref(W){a(W)},children:(W,U)=>{var ie=ay();let se=_(()=>r(M));var fe=ye(ie);{var J=X=>{var me=sy();x(X,me)};O(fe,X=>{l()&&X(J)})}var xe=N(fe,2),Ce=y(xe);Si(Ce,()=>r(se),(X,me)=>{me(X,{})}),$(xe),L(()=>ne(xe,"mobile",l())),x(W,ie)},$$slots:{default:!0}});var q=E({get ref(){return a()},set ref(W=void 0){a(W),d()},get isMobile(){return l()},set isMobile(W=!1){l(W),d()},get isPlaying(){return c()},set isPlaying(W=!1){c(W),d()},get disabled(){return p()},set disabled(W=!1){p(W),d()},get className(){return f()},set className(W=""){f(W),d()},get click(){return v()},set click(W=Ch){v(W),d()},$set:A,$on:(W,U)=>P(e,W,U)});return o(),q}var cy=Ie('<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 Iu(t,e){if(new.target)return T({component:Iu,...t});let i=Oe(e,["children","$$slots","$$events","$$legacy"]);I(e,!1);var o=cy();let n;var s=y(o);return De(s,e,"default",{},null),Te(),$(o),L(()=>n=Le(o,n,{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none","data-testid":"play-prev-chapter-icon",role:"img",...i},void 0,!0)),x(t,o),E({$set:A,$on:(a,l)=>P(e,a,l)})}function _l(t,e){if(new.target)return T({component:_l,...t});I(e,!0);let i=u(e,"ref",15,void 0),o=u(e,"hidden",7,!1),n=u(e,"disabled",7,!1),s=u(e,"click",7),a=j("tooltip_interactive_go_back"),l=_(()=>o()?"hidden":"");return Mt(t,{get className(){return r(l)},testId:"btn-play-prev-chapter",ariaLabel:a,get disabled(){return n()},get click(){return s()},get ref(){return i()},set ref(c){i(c)},children:(c,p)=>{Iu(c,{})},$$slots:{default:!0}}),E({get ref(){return i()},set ref(c=void 0){i(c),d()},get hidden(){return o()},set hidden(c=!1){o(c),d()},get disabled(){return n()},set disabled(c=!1){n(c),d()},get click(){return s()},set click(c){s(c),d()},$set:A,$on:(c,p)=>P(e,c,p)})}var dy=D('<span class="gutter svelte-et3q1q"><span class="toggler svelte-et3q1q"><!></span></span>'),uy={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 $l(t,e){if(new.target)return T({component:$l,...t});I(e,!0),oe(t,uy);let[i,o]=Je(),n=()=>C(l,"$autoplayNextEnabled$",i),s=u(e,"ref",15,void 0),a=Be(),l=a.ui.autoplayNextEnabled$,c=a.actions.internal.setAutoplayNextEnabled;Mt(t,{click:()=>{c(!n(),!0)},get ref(){return s()},set ref(v){s(v)},children:(v,m)=>{var g=dy(),b=y(g),w=y(b);{var k=F=>{ts(F,{width:"14",height:"14",fill:"#000"})},V=F=>{Hs(F,{width:"14",height:"14",fill:"#000"})};O(w,F=>{n()?F(k):F(V,!1)})}$(b),$(g),L(()=>ne(b,"enabled",n())),x(v,g)},$$slots:{default:!0}});var f=E({get ref(){return s()},set ref(v=void 0){s(v),d()},$set:A,$on:(v,m)=>P(e,v,m)});return o(),f}var py=Ie('<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 Eu(t,e){if(new.target)return T({component:Eu,...t});let i=Oe(e,["children","$$slots","$$events","$$legacy"]);I(e,!1);var o=py();let n;var s=y(o);return De(s,e,"default",{},null),Te(2),$(o),L(()=>n=Le(o,n,{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none","aria-hidden":"true","data-testid":"seek-to-interactive-icon",role:"img",...i},void 0,!0)),x(t,o),E({$set:A,$on:(a,l)=>P(e,a,l)})}function bl(t,e){if(new.target)return T({component:bl,...t});I(e,!0);let i=u(e,"ref",15,void 0),o=u(e,"hidden",7,!1),n=u(e,"disabled",7,!1),s=u(e,"click",7),a=j("tooltip_interactive_seek"),l=_(()=>o()?"hidden":"");return Mt(t,{get className(){return r(l)},testId:"btn-seek-to-interactive",ariaLabel:a,get disabled(){return n()},get click(){return s()},get ref(){return i()},set ref(c){i(c)},children:(c,p)=>{Eu(c,{})},$$slots:{default:!0}}),E({get ref(){return i()},set ref(c=void 0){i(c),d()},get hidden(){return o()},set hidden(c=!1){o(c),d()},get disabled(){return n()},set disabled(c=!1){n(c),d()},get click(){return s()},set click(c){s(c),d()},$set:A,$on:(c,p)=>P(e,c,p)})}var fy=Ie('<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 Pu(t,e){if(new.target)return T({component:Pu,...t});let i=Oe(e,["children","$$slots","$$events","$$legacy"]);I(e,!1);var o=fy();let n;var s=y(o);return De(s,e,"default",{},null),Te(2),$(o),L(()=>n=Le(o,n,{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none","aria-hidden":"true",role:"img",...i},void 0,!0)),x(t,o),E({$set:A,$on:(a,l)=>P(e,a,l)})}var my={hash:"svelte-17ceof5",code:'svg[data-testid="graph-open-icon"] ._closed {visibility:hidden;opacity:0;}'};function Au(t,e){if(new.target)return T({component:Au,...t});I(e,!0),oe(t,my);let i=u(e,"isOpened",7,!1),o=_(()=>i()?"graph-close-icon":"graph-open-icon");return Pu(t,{get"data-testid"(){return r(o)}}),E({get isOpened(){return i()},set isOpened(n=!1){i(n),d()},$set:A,$on:(n,s)=>P(e,n,s)})}function yl(t,e){if(new.target)return T({component:yl,...t});I(e,!0);let i=u(e,"ref",15,void 0),o=u(e,"hidden",7,!1),n=u(e,"disabled",7,!1),s=u(e,"graphIsOpened",7,!1),a=u(e,"click",7),c=Be().ui.t,p=_(()=>s()?c("tooltip_interactive_graph_on"):c("tooltip_interactive_graph_off")),f=_(()=>o()?"hidden":"");return Mt(t,{get className(){return r(f)},testId:"btn-graph",get disabled(){return n()},get ariaLabel(){return r(p)},get click(){return a()},get ref(){return i()},set ref(v){i(v)},children:(v,m)=>{let g=_(()=>!!s());Au(v,{get isOpened(){return r(g)}})},$$slots:{default:!0}}),E({get ref(){return i()},set ref(v=void 0){i(v),d()},get hidden(){return o()},set hidden(v=!1){o(v),d()},get disabled(){return n()},set disabled(v=!1){n(v),d()},get graphIsOpened(){return s()},set graphIsOpened(v=!1){s(v),d()},get click(){return a()},set click(v){a(v),d()},$set:A,$on:(v,m)=>P(e,v,m)})}import{PlaybackState as Sh}from"@vkontakte/videoplayer-core/evergreen";function xl(t,e){if(new.target)return T({component:xl,...t});I(e,!0);let[i,o]=Je(),n=()=>C(p,"$playbackState$",i),s=u(e,"isMobile",7,!1),a=u(e,"isLiveActive",7,!1),l=u(e,"ariaLabel",7,""),c=Be(),p=c.state.playbackState$,f=c.actions.internal.switchToActiveLive,v=c.actions.internal.togglePlay,m=_(()=>()=>{if(!a()){f();return}n()===Sh.PAUSED&&v()}),g=_(()=>s()?"":"btn--live btn-full-opacity"),b=_(()=>a()?"btn-live":"btn-live-offset"),w=_(()=>a()&&n()===Sh.PLAYING);Mt(t,{get className(){return r(g)},get testId(){return r(b)},get disabled(){return r(w)},get ariaLabel(){return l()},get click(){return r(m)},children:(V,F)=>{Qa(V,{get isActive(){return a()}})},$$slots:{default:!0}});var k=E({get isMobile(){return s()},set isMobile(V=!1){s(V),d()},get isLiveActive(){return a()},set isLiveActive(V=!1){a(V),d()},get ariaLabel(){return l()},set ariaLabel(V=""){l(V),d()},$set:A,$on:(V,F)=>P(e,V,F)});return o(),k}import{noop as um}from"@vkontakte/videoplayer-shared/evergreen";var vy=D('<div class="icon icon-error-stub"><div class="inner"></div></div>'),gy=D('<img class="icon" aria-hidden="true">');function Fs(t,e){if(new.target)return T({component:Fs,...t});I(e,!0);let i=u(e,"icon",7),o=de(!1),n=()=>{K(o,!0)};var s=Ye(),a=ye(s);{var l=p=>{var f=vy();x(p,f)},c=p=>{var f=gy();L(()=>pe(f,"src",i())),Dt("error",f,n),ta(f),x(p,f)};O(a,p=>{r(o)?p(l):p(c,!1)})}return x(t,s),E({get icon(){return i()},set icon(p){i(p),d()},$set:A,$on:(p,f)=>P(e,p,f)})}function Mu(t,e){if(new.target)return T({component:Mu,...t});I(e,!0);let i=u(e,"id",7),o=u(e,"testId",7),n=u(e,"icon",7),s=u(e,"ariaLabel",7),a=u(e,"tooltipText",7),l=u(e,"disabledTooltipContent",7),c=u(e,"disabled",7,!1),p=u(e,"onClick",7,um),f=u(e,"ref",15),v=_(()=>p()===um),m=_(()=>r(v)||c()),g=_(()=>r(v)?"btn-full-opacity":"");return ro(t,{get disabled(){return r(m)},get tooltipContent(){return a()},get disabledTooltipContent(){return l()},width:40,get ref(){return f()},set ref(b){f(b)},children:(b,w)=>{let k=_(()=>o()??i());Mt(b,{get className(){return r(g)},get ariaLabel(){return s()},get click(){return p()},get disabled(){return r(m)},get testId(){return r(k)},children:(V,F)=>{Fs(V,{get icon(){return n()}})},$$slots:{default:!0}})},$$slots:{default:!0}}),E({get id(){return i()},set id(b){i(b),d()},get testId(){return o()},set testId(b){o(b),d()},get icon(){return n()},set icon(b){n(b),d()},get ariaLabel(){return s()},set ariaLabel(b){s(b),d()},get tooltipText(){return a()},set tooltipText(b){a(b),d()},get disabledTooltipContent(){return l()},set disabledTooltipContent(b){l(b),d()},get disabled(){return c()},set disabled(b=!1){c(b),d()},get onClick(){return p()},set onClick(b=um){p(b),d()},get ref(){return f()},set ref(b){f(b),d()},$set:A,$on:(b,w)=>P(e,b,w)})}var kh=t=>!!t.buttonComponent;var ys={vkLogo:100,autoplayNext:200,volume:300,subtitles:400,settings:500,context:600,fullscreen:700,chromecast:800};var by=D('<div class="wrapper-bottom svelte-1iedtj3"><!> <div class="controls svelte-1iedtj3"><div class="controls-left svelte-1iedtj3"><!> <!> <!></div> <div class="controls-right svelte-1iedtj3"></div></div></div> <!>',1),yy={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 Lu(t,e){if(new.target)return T({component:Lu,...t});I(e,!0),oe(t,yy);let[i,o]=Je(),n=()=>C(Bi,"$disabledControls$",i),s=()=>C(Pn,"$adPlaybackState",i),a=()=>C(Ni,"$playbackState$",i),l=()=>C(_o,"$currentSubtitle$",i),c=()=>C(lo,"$isEnded$",i),p=()=>C(bo,"$currentGridType$",i),f=()=>C(rn,"$isLive$",i),v=()=>C(Zi,"$chromecastState$",i),m=()=>C(sn,"$isPictureInPictureActive",i),g=()=>C(sr,"$pictureInPictureType$",i),b=()=>C(an,"$availableSubtitlesList$",i),w=()=>C(Ti,"$contextMenuOpenedByKeyboard$",i),k=()=>C(_i,"$showContextMenuBtn$",i),V=()=>C(zo,"$playerSize",i),F=()=>C(ho,"$isRewindableLive$",i),M=()=>C(co,"$isActiveLive$",i),H=()=>C(Nn,"$graphIsOpened$",i),S=()=>C(Et,"$contextMenuVisible$",i),q=()=>C(An,"$isFullscreen",i),W=()=>C(Mn,"$autoplayNextEnabled",i),U=()=>C(r(vr),"$prevButton",i),ie=()=>C(r(gn),"$replayButton",i),se=()=>C(r(Ao),"$playButton",i),fe=()=>C(r(Or),"$nextButton",i),J=()=>C(r(Ee),"$playPrevChapterButton",i),xe=()=>C(r(Pt),"$seekToInteractiveButton",i),Ce=()=>C(r(Kt),"$interactiveGraphButton",i),X=()=>C(r(mi),"$liveButton",i),me=()=>C(r(Mo),"$time",i),he=()=>C(r(Ai),"$episodes",i),te=()=>C(r(Oi),"$vkLogo",i),le=()=>C(r(ve),"$volume",i),z=()=>C(r(St),"$subtitles",i),je=()=>C(r(di),"$settings",i),Re=()=>C(r($i),"$context",i),Y=()=>C(r(Lo),"$fullscreen",i),ce=()=>C(r(Qo),"$chromecast",i),Ge=()=>C(uo,"$additionalDesktopControlPanelRightButtons$",i),G=()=>C(Rn,"$isInteractiveTime$",i),Ve=()=>C(En,"$settingsMenuVisible",i),ue=()=>C(Yo,"$settingButtonRef$",i),We=()=>C(ko,"$settingsMenuOpenedByKeyboard",i),rt=()=>C($o,"$startedByKeyboard$",i),Ue=()=>C(fi,"$isAudioAvailable$",i),we=()=>C(Lt,"$fakeIsPlaying$",i),Me=()=>C(Vn,"$seekToInteractiveDisabledTooltip$",i),st=()=>C(Ii,"$adPosition",i),ct=()=>C(oi,"$position$",i),_e=()=>C(Di,"$adDuration",i),et=()=>C(Wt,"$duration$",i),yt=u(e,"bottomHidden",7),ee=u(e,"bottomNoSmooth",7),tt=u(e,"showControls",7),$t=u(e,"playerControlsWrapperRef",15,void 0),dt=u(e,"playerControlsRef",15,void 0),ge=u(e,"isAds",7,!1),Pe=u(e,"canRewindLive",7),$e=u(e,"logoClickable",7),Qe=u(e,"logoHidden",7),ze=u(e,"logoTargetUrl",7,""),ae=u(e,"showAutoplayNext",7),gt=u(e,"showNextPrevButtons",7),Ze=u(e,"nextButtonActive",7),Tt=u(e,"prevButtonActive",7),Vt=u(e,"isOneVideoPlaylist",7,!1),Zt=u(e,"customFullscreenSupported",7,!0),at=u(e,"toggleFullscreen",7),bt=u(e,"seekToInteractive",7),Rt=u(e,"playPrevChapter",7),{fakeIsPlaying$:Lt}=go(),Xe=Be(),lt=go(),Nt=Qt(),ii=Xe.actions.internal.toggleMuted,gi=Xe.actions.internal.togglePlay,so=Xe.actions.internal.pause,hi=Xe.actions.internal.toggleSubtitle,ao=Xe.callbacks?.onAudioDoesNotExistHint,B=Xe.callbacks?.onAudioDisabledHint,Wt=Xe.state.duration$,oi=Xe.state.positionWithScrubbing$,Ni=Xe.state.playbackState$,fi=Xe.state.isAudioAvailable$,li=Xe.state.isAudioDisabled,lo=Xe.state.isEnded$,rn=Xe.state.isLive$,co=Xe.state.isActiveLive$,ho=Xe.state.isRewindableLive$,{isActive$:sn,type$:sr}=lt.pictureInPicture$,En=Xe.ui.settingsMenu.visible$,ko=Xe.ui.settingsMenu.openedByBtnKeyboard$,it=Xe.ui.controls,Bt=Xe.actions.internal.getVideoEpisodes(),Zi=Xe.state.chromecastState$,an=Xe.state.availableSubtitlesList$,_o=Xe.state.currentSubtitle$,Bi=it.disabledControls$,Et=Xe.ui.contextMenu.visible$,_i=Xe.ui.contextMenu.showContextMenuBtn$,Ti=Xe.ui.contextMenu.openedByBtnKeyboard$,$o=Xe.ui.startedByKeyboard$,zt=Xe.ui.t,Di=Xe.ads.duration,Ii=Xe.ads.position,Pn=Xe.ads.playbackState,An=Xe.ui.isFullscreen,zo=Xe.ui.playerSize,bo=Xe.ui.currentGridType$,uo=Xe.ui.additionalDesktopControlPanelRightButtons$,Mn=Xe.ui.autoplayNextEnabled$,Ln=Xe.actions.internal.getVideoElement,yo=Xe.actions.internal.replayInteractive,Vr=Xe.actions.internal.prevVideoClick,xo=Xe.actions.internal.nextVideoClick,Ui=Xe.state.isInteractive,Rn=Xe.state.isInteractiveTime$,ar=Xe.state.showInteractiveGraph,To=Xe.state.showSeekToInteractive,Wo=Xe.state.showPlayPrevChapter,lr=Xe.state.showInteractiveTimeIndicator,is=Xe.state.playPrevChapterDisabledTooltip,Vn=lt.seekToInteractiveDisabledTooltip$,Nn=lt.graphIsOpened$,Xi=Nt.features.interactiveResponsiveUi,Bn=_(()=>n().has("EPISODE_BUTTON")),Dn=_(()=>n().has("GRAPH_BUTTON")),yi=_(()=>n().has("SEEK_TO_INTERACTIVE_BUTTON")),zi=_(()=>n().has("PLAY_BUTTON")),ln=_(()=>n().has("REPLAY_BUTTON")),cn=_(()=>n().has("PLAY_PREV_CHAPTER_BUTTON")),cr=()=>Xe.actions.internal.toggleChromecast(),dn=_(()=>ge()?s()==="playing":a()===pm.PLAYING),qo=_(()=>l().value!=="off"),xi=_(()=>c()&&!ge()||Ui),un=_(()=>Xi?r(xi)&&Vi(p(),"m"):r(xi)),ft=_(()=>!c()||Ui||ge()),On=_(()=>Vi(p(),"m")),dr=_(()=>gt()&&Vi(p(),"m")&&!ge()&&Ze()),Hn=_(()=>gt()&&Vi(p(),"m")&&!ge()&&Tt()),Ko=_(()=>!ge()&&!!f()),ur=_(()=>v()!==Th.NOT_AVAILABLE&&!(m()&&g()===1)&&Vi(p(),"m")&&!Ui),Io=_(()=>ae()&&!Vt()&&Vi(p(),"s")),Nr=_(()=>b().length>0&&Vi(p(),"m")),Fn=_(()=>w()||k()),pr=_(()=>Vi(p(),"s")&&!ge()),pn=_(()=>!Qe()&&!ge()),Un=_(()=>Nt.features.fullscreen&&(Qe()||Vi(p(),Xi?"xs":"s"))&&!(m()&&g()===1)&&(Ui?Zt():!0)),zn=_(()=>(!f()||ge())&&!(Nt.features.interactiveHideTime&&Ui)),po=_(()=>V().width>100),Eo=_(()=>ar&&Vi(p(),"m")),Wi=_(()=>Xi?To&&Vi(p(),"s"):To),Po=_(()=>Xi?Wo&&Vi(p(),"s"):Wo),Ei=_(()=>!ge()&&!f()&&!!Bt?.length&&r(On)&&!r(Bn)),Pi=_(()=>!F()||!!M()),fr=_(()=>H()?zt("tooltip_interactive_graph_on"):zt("tooltip_interactive_graph_off")),fn=_(()=>S()?zt("aria_label_context_menu_close"):zt("aria_label_context_menu_open")),Br=(qe,It)=>qe?It&&It===pm.PAUSED?zt("tooltip_play"):"":zt("tooltip_live"),mn=_(()=>Br(r(Pi),a())),mr=_(()=>Nt.logoType==="vk_video"?zt("tooltip_vk_video_logo"):zt("tooltip_vk_logo")),Wn=_(()=>r(qo)?zt("tooltip_subtitles_on"):zt("tooltip_subtitles_off")),vn=_(()=>q()?zt("tooltip_fullscreen_on"):zt("tooltip_fullscreen_off")),Dr=_(()=>v()===Th.CONNECTED?zt("tooltip_chromecast_on"):zt("tooltip_chromecast_off")),qn=_(()=>W()?zt("tooltip_autoplay_on"):zt("tooltip_autoplay_off")),Kn=de(0),ci=de(ke({})),vr=_(()=>it.prevButton),gn=_(()=>it.replayButton),Ao=_(()=>it.playButton),Or=_(()=>it.nextButton),Ee=_(()=>it.playPrevChapterButton),Pt=_(()=>it.seekToInteractiveButton),Kt=_(()=>it.interactiveGraphButton),mi=_(()=>it.liveButton),Mo=_(()=>it.time),Ai=_(()=>it.episodes),Oi=_(()=>it.vkLogo),ve=_(()=>it.volume),St=_(()=>it.subtitles),di=_(()=>it.settings),$i=_(()=>it.context),Lo=_(()=>it.fullscreen),Qo=_(()=>it.chromecast),Mi=_(()=>({prevButton:U()?U().right-U().left:0,replayButton:ie()?ie().right-ie().left:0,playButton:se()?se().right-se().left:0,nextButton:fe()?fe().right-fe().left:0,playPrevChapterButton:J()?J().right-J().left:0,seekToInteractiveButton:xe()?xe().right-xe().left:0,interactiveGraphButton:Ce()?Ce().right-Ce().left:0,liveButton:X()?X().right-X().left:0,time:me()?me().right-me().left:0,episodes:he()?he().right-he().left:0,vkLogo:te()?te().right-te().left:0,volume:le()?le().right-le().left:0,subtitles:z()?z().right-z().left:0,settings:je()?je().right-je().left:0,context:Re()?Re().right-Re().left:0,fullscreen:Y()?Y().right-Y().left:0,chromecast:ce()?ce().right-ce().left:0,additionalButtons:Ge().length?Ge().reduce(qe=>[...qe,40],[]):[]})),hn=de(0);ot(()=>{(!r(hn)||r(hn)<r(Mi).time)&&xt(()=>K(hn,ke(r(Mi).time)))});let Go=de(!1);ot(()=>{let qe=0;r(Ei)&&(Vi(p(),"xl")?qe=r(Mi).time:qe=60);let It=r(Mi).prevButton+r(Mi).playButton+r(Mi).nextButton+r(Mi).seekToInteractiveButton+r(Mi).interactiveGraphButton+r(Mi).liveButton+r(hn)+qe;K(Go,ke(r(zn)&&r(Kn)>=It))});let Qn=_(()=>r(Go)&&Vi(p(),"m")),Gn=$y(xu,260);ot(()=>{V(),G(),Gn(Ln(),it,r(ci),tt())});let Ro,Yo=be();ot(()=>{Ve(),ue()&&xt(()=>ja(ue(),Ve(),ko))}),ot(()=>{Ve(),We(),xt(()=>Xr(Ro,Ve(),We()))});let Hr=de(void 0);ot(()=>{rt(),r(Hr),xt(()=>wu($o,rt(),r(Hr)))});function gr(){Rs({isAudioDisabled:li,audioDisabledHintCallback:B,isAudioAvailable:Ue(),audioIsNotExistHintCallback:ao})&&ii()}let hr=Ui?yo:gi,_r=_(()=>we()!==null),os=_(()=>r(_r)?we():r(dn)),_n=_(()=>r(os)?zt("tooltip_pause"):zt("tooltip_play")),$r=zt("tooltip_episodes"),fo=_(()=>r(Hn)?{id:"prevButton",type:"desktop-control-panel-left",weight:bs.prevButton,buttonComponent:Os,buttonComponentProps:{disabled:!Tt(),type:"prev",click:Vr.bind(null,!0)},tooltipText:zt("tooltip_previous"),disabled:!Tt()}:void 0),Yn=_(()=>r(un)?{id:"replayButton",type:"desktop-control-panel-left",weight:bs.replayButton,buttonComponent:ma,buttonComponentProps:{disabled:r(ln),click:hr},tooltipText:zt("tooltip_restart"),disabled:r(ln)}:void 0),mt=_(()=>r(ft)?{id:"playButton",type:"desktop-control-panel-left",weight:bs.playButton,buttonComponent:va,buttonComponentProps:{disabled:r(zi),isPlaying:r(dn),click:gi},tooltipText:r(_n),disabled:r(zi)}:void 0),Ot=_(()=>r(dr)?{id:"nextButton",type:"desktop-control-panel-left",weight:bs.nextButton,buttonComponent:Os,buttonComponentProps:{disabled:!Ze(),type:"next",click:xo.bind(null,!0)},tooltipText:zt("tooltip_next"),disabled:!Ze()}:void 0),ni=_(()=>Ui&&r(Po)?{id:"playPrevChapterButton",type:"desktop-control-panel-left",weight:bs.playPrevChapterButton,buttonComponent:_l,buttonComponentProps:{disabled:r(cn),click:Rt()},tooltipText:zt("tooltip_interactive_go_back"),disabledTooltipContent:zt(is),disabled:r(cn)}:void 0),jn=_(()=>Ui&&r(Wi)?{id:"seekToInteractiveButton",type:"desktop-control-panel-left",weight:bs.seekToInteractiveButton,buttonComponent:bl,buttonComponentProps:{disabled:r(yi),click:bt()},tooltipText:zt("tooltip_interactive_seek"),disabled:r(yi),disabledTooltipContent:zt(Me())}:void 0),qi=_(()=>Ui&&r(Eo)?{id:"interactiveGraphButton",type:"desktop-control-panel-left",weight:bs.interactiveGraphButton,buttonComponent:yl,buttonComponentProps:{disabled:r(Dn),click:Nn.toggle,graphIsOpened:H()},tooltipText:r(fr)}:void 0),br=_(()=>r(Ko)?{id:"liveButton",type:"desktop-control-panel-left",weight:bs.liveButton,buttonComponent:xl,buttonComponentProps:{isLiveActive:r(Pi),ariaLabel:r(mn)},tooltipText:r(mn),disabled:r(Pi)&&a()===pm.PLAYING}:void 0),Zn=_(()=>[r(fo),r(Yn),r(mt),r(Ot),r(ni),r(jn),r(qi),r(br)].filter(qe=>!!qe).sort(da)),yr=_(()=>r(pn)?{id:"vkLogo",type:"desktop-control-panel-right",weight:ys.vkLogo,buttonComponent:cl,buttonComponentProps:{targetUrl:ze(),logoClickable:$e(),click:so},tooltipText:r(mr),disabledTooltipContent:"",disabled:!$e()}:void 0),Z=_(()=>r(Io)?{id:"autoplayNext",type:"desktop-control-panel-right",weight:ys.autoplayNext,buttonComponent:$l,tooltipText:r(qn)}:void 0),ht=_(()=>({id:"volume",type:"desktop-control-panel-right",weight:ys.volume,buttonComponent:iu,buttonComponentProps:{click:gr}})),ui=_(()=>r(Nr)?{id:"subtitles",type:"desktop-control-panel-right",weight:ys.subtitles,buttonComponent:Zd,buttonComponentProps:{isSubtitlesEnabled:r(qo),click:hi},tooltipText:r(Wn)}:void 0),ti=_(()=>r(pr)?{id:"settings",type:"desktop-control-panel-right",weight:ys.settings,buttonComponent:pa,buttonComponentProps:{ref$:Yo},tooltipText:Ve()?void 0:zt("tooltip_settings_off")}:void 0),Ki=_(()=>Nt.features.contextMenuButton?{id:"context",type:"desktop-control-panel-right",weight:ys.context,buttonComponent:Su,buttonComponentProps:{click:at()},className:r(Fn)?"":"out-of-view",tooltipText:r(fn)}:void 0),Vo=_(()=>r(Un)?{id:"fullscreen",type:"desktop-control-panel-right",weight:ys.fullscreen,buttonComponent:ll,buttonComponentProps:{isFullscreen:q(),click:at()},tooltipText:r(vn)}:void 0),$n=_(()=>r(ur)?{id:"chromecast",type:"desktop-control-panel-right",weight:ys.chromecast,buttonComponent:dl,buttonComponentProps:{state:v(),click:cr},tooltipText:r(Dr)}:void 0),Fr=_(()=>[r(yr),r(Z),r(ht),r(ui),r(ti),r(Ki),r(Vo),r($n),...Ge()].filter(qe=>!!qe).sort(da));var xr=by(),Ke=ye(xr),Gt=y(Ke);let Ji=_(()=>!r(po));pl(Gt,{get isHidden(){return r(Ji)},get isAds(){return ge()},get canRewindLive(){return Pe()},get isRewindableLive(){return F()},get ref(){return r(ci).timeline},set ref(qe){r(ci).timeline=qe}});var jo=N(Gt,2),Zo=y(jo),ns=y(Zo);vi(ns,17,()=>r(Zn),qe=>qe.id,(qe,It)=>{vc(qe,{get buttonComponent(){return r(It).buttonComponent},get buttonComponentProps(){return r(It).buttonComponentProps},get tooltipText(){return r(It).tooltipText},get disabledTooltipContent(){return r(It).disabledTooltipContent},get disabled(){return r(It).disabled},get className(){return r(It).className},get ref(){return r(ci)[r(It).id]},set ref(bn){r(ci)[r(It).id]=bn}})});var Xo=N(ns,2);{var Ur=qe=>{let It=_(()=>ge()?st():ct()),bn=_(()=>ge()?_e():et());sl(qe,{isMobile:!1,get showDuration(){return r(Qn)},get position(){return r(It)},get duration(){return r(bn)},get ref(){return r(ci).time},set ref(wr){r(ci).time=wr}})};O(Xo,qe=>{r(zn)&&qe(Ur)})}var Vl=N(Xo,2);let ha=_(()=>!r(Ei));ro(Vl,{className:"w-max",get disabled(){return r(ha)},tooltipContent:$r,get ref(){return r(ci).episodes},set ref(qe){r(ci).episodes=qe},children:(qe,It)=>{var bn=Ye(),wr=ye(bn);{var rs=Cr=>{fl(Cr,{get position(){return ct()},get duration(){return et()},timeCodes:Bt})};O(wr,Cr=>{r(Ei)&&Cr(rs)})}x(qe,bn)},$$slots:{default:!0}}),$(Zo);var _a=N(Zo,2);vi(_a,21,()=>r(Fr),qe=>qe.id,(qe,It)=>{var bn=Ye(),wr=ye(bn);{var rs=zr=>{vc(zr,{get buttonComponent(){return r(It).buttonComponent},get buttonComponentProps(){return r(It).buttonComponentProps},get tooltipText(){return r(It).tooltipText},get disabledTooltipContent(){return r(It).disabledTooltipContent},get disabled(){return r(It).disabled},get className(){return r(It).className},get ref(){return r(ci)[r(It).id]},set ref(ss){r(ci)[r(It).id]=ss}})},Cr=zr=>{let ss=_(()=>!!r(It).disabled);Mu(zr,{get id(){return r(It).id},get testId(){return r(It).testId},get icon(){return r(It).icon},get ariaLabel(){return r(It).ariaLabel},get tooltipText(){return r(It).tooltipText},get disabledTooltipContent(){return r(It).disabledTooltipContent},get disabled(){return r(ss)},get onClick(){return r(It).onClick},get ref(){return r(ci)[r(It).id]},set ref(Nl){r(ci)[r(It).id]=Nl}})};O(wr,zr=>{kh(r(It))?zr(rs):zr(Cr,!1)})}x(qe,bn)}),$(_a),$(jo),vt(jo,qe=>dt(qe),()=>dt()),$(Ke),vt(Ke,qe=>$t(qe),()=>$t());var $a=N(Ke,2);{var ws=qe=>{gl(qe,{get ref(){return r(ci).interactiveTimeIndicator},set ref(It){r(ci).interactiveTimeIndicator=It}})};O($a,qe=>{lr&&qe(ws)})}L(()=>{ne(Ke,"hidden",yt()),ne(Ke,"controls-hidden",!tt()),ne(Ke,"no-smooth",ee())}),Yr(Zo,"clientWidth",qe=>K(Kn,qe)),x(t,xr);var ba=E({get bottomHidden(){return yt()},set bottomHidden(qe){yt(qe),d()},get bottomNoSmooth(){return ee()},set bottomNoSmooth(qe){ee(qe),d()},get showControls(){return tt()},set showControls(qe){tt(qe),d()},get playerControlsWrapperRef(){return $t()},set playerControlsWrapperRef(qe=void 0){$t(qe),d()},get playerControlsRef(){return dt()},set playerControlsRef(qe=void 0){dt(qe),d()},get isAds(){return ge()},set isAds(qe=!1){ge(qe),d()},get canRewindLive(){return Pe()},set canRewindLive(qe){Pe(qe),d()},get logoClickable(){return $e()},set logoClickable(qe){$e(qe),d()},get logoHidden(){return Qe()},set logoHidden(qe){Qe(qe),d()},get logoTargetUrl(){return ze()},set logoTargetUrl(qe=""){ze(qe),d()},get showAutoplayNext(){return ae()},set showAutoplayNext(qe){ae(qe),d()},get showNextPrevButtons(){return gt()},set showNextPrevButtons(qe){gt(qe),d()},get nextButtonActive(){return Ze()},set nextButtonActive(qe){Ze(qe),d()},get prevButtonActive(){return Tt()},set prevButtonActive(qe){Tt(qe),d()},get isOneVideoPlaylist(){return Vt()},set isOneVideoPlaylist(qe=!1){Vt(qe),d()},get customFullscreenSupported(){return Zt()},set customFullscreenSupported(qe=!0){Zt(qe),d()},get toggleFullscreen(){return at()},set toggleFullscreen(qe){at(qe),d()},get seekToInteractive(){return bt()},set seekToInteractive(qe){bt(qe),d()},get playPrevChapter(){return Rt()},set playPrevChapter(qe){Rt(qe),d()},$set:A,$on:(qe,It)=>P(e,qe,It)});return o(),ba}import{ChromecastState as Ph,PlaybackState as Ah}from"@vkontakte/videoplayer-core/evergreen";import{noop as mm}from"@vkontakte/videoplayer-shared/evergreen";var xy=D('<div class="icon icon-error-stub svelte-167ouw6"><div class="inner svelte-167ouw6"></div></div>'),wy=D('<img class="icon svelte-167ouw6" aria-hidden="true">'),Cy={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 Ru(t,e){if(new.target)return T({component:Ru,...t});I(e,!0),oe(t,Cy);let i=u(e,"iconUrl",7),o=u(e,"ariaLabel",7),n=u(e,"disabled",7,!1),s=u(e,"testId",7),a=u(e,"onClick",7,mm),l=_(()=>a()===mm),c=_(()=>r(l)||n()),p=de(!1),f=()=>{K(p,!0)},v=_(()=>r(l)?"btn-full-opacity":"");return Mt(t,{get className(){return r(v)},get ariaLabel(){return o()},get click(){return a()},get disabled(){return r(c)},get testId(){return s()},children:(m,g)=>{var b=Ye(),w=ye(b);{var k=F=>{var M=xy();x(F,M)},V=F=>{var M=wy();L(()=>pe(M,"src",i())),Dt("error",M,f),ta(M),x(F,M)};O(w,F=>{r(p)?F(k):F(V,!1)})}x(m,b)},$$slots:{default:!0}}),E({get iconUrl(){return i()},set iconUrl(m){i(m),d()},get ariaLabel(){return o()},set ariaLabel(m){o(m),d()},get disabled(){return n()},set disabled(m=!1){n(m),d()},get testId(){return s()},set testId(m){s(m),d()},get onClick(){return a()},set onClick(m=mm){a(m),d()},$set:A,$on:(m,g)=>P(e,m,g)})}var Sy=Ie('<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 Vu(t,e){if(new.target)return T({component:Vu,...t});let i=Oe(e,["children","$$slots","$$events","$$legacy"]);I(e,!1);var o=Sy();let n;var s=y(o);return De(s,e,"default",{},null),Te(),$(o),L(()=>n=Le(o,n,{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24","aria-hidden":"true","data-testid":"muted-icon",role:"img",...i},void 0,!0)),x(t,o),E({$set:A,$on:(a,l)=>P(e,a,l)})}import{noop as Ih}from"@vkontakte/videoplayer-shared/evergreen";var ky=D('<span class="text svelte-6gmlbk"> </span>'),Ty=D('<div class="container svelte-6gmlbk" aria-hidden="true"><!> <!></div>'),Iy={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 gc(t,e){if(new.target)return T({component:gc,...t});I(e,!0),oe(t,Iy);let i=u(e,"muted",7,!1),o=u(e,"expanded",7,!1),n=u(e,"click",7,Ih),s=u(e,"ref",15,void 0),l=Be().ui.t,c=_(()=>i()?l("tooltip_volume"):l("tooltip_volume_muted")),p=_(()=>o()?_s:Vu),f=_(()=>o()?"btn-mobile-unmuted":"btn-mobile-muted");return Mt(t,{get testId(){return r(f)},get click(){return n()},get ariaLabel(){return r(c)},get ref(){return s()},set ref(v){s(v)},children:(v,m)=>{var g=Ty();let b=_(()=>r(p));var w=y(g);Si(w,()=>r(b),(F,M)=>{M(F,{})});var k=N(w,2);{var V=F=>{var M=ky(),H=y(M,!0);$(M),L(S=>Se(H,S),[()=>l("mobile_unmute")]),x(F,M)};O(k,F=>{o()&&F(V)})}$(g),L(()=>ne(g,"expanded",o())),x(v,g)},$$slots:{default:!0}}),E({get muted(){return i()},set muted(v=!1){i(v),d()},get expanded(){return o()},set expanded(v=!1){o(v),d()},get click(){return n()},set click(v=Ih){n(v),d()},get ref(){return s()},set ref(v=void 0){s(v),d()},$set:A,$on:(v,m)=>P(e,v,m)})}var Ey=Ie('<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 Nu(t,e){if(new.target)return T({component:Nu,...t});let i=Oe(e,["children","$$slots","$$events","$$legacy"]);I(e,!1);var o=Ey();let n;var s=y(o);return De(s,e,"default",{},null),Te(3),$(o),L(()=>n=Le(o,n,{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none",role:"img",...i},void 0,!0)),x(t,o),E({$set:A,$on:(a,l)=>P(e,a,l)})}var Py={hash:"svelte-tmam00",code:`svg[data-testid="pip-icon--active"] .hidden-active,
250
- svg[data-testid="pip-icon"] .hidden-not-active {visibility:hidden;opacity:0;}`};function Bu(t,e){if(new.target)return T({component:Bu,...t});I(e,!0),oe(t,Py);let i=u(e,"isActive",7,!1),o=_(()=>i()?"color: #2688EB;":"color: #fff;"),n=_(()=>i()?"pip-icon--active":"pip-icon");return Nu(t,{get style(){return r(o)},get"data-testid"(){return r(n)}}),E({get isActive(){return i()},set isActive(s=!1){i(s),d()},$set:A,$on:(s,a)=>P(e,s,a)})}import{noop as Eh}from"@vkontakte/videoplayer-shared/evergreen";function Du(t,e){if(new.target)return T({component:Du,...t});I(e,!0);let i=u(e,"ref",15,void 0),o=u(e,"isPictureInPictureActive",7,!1),n=u(e,"click",7,Eh),s=j("menu_pip");return Mt(t,{testId:"btn-pip",ariaLabel:s,get click(){return n()},get ref(){return i()},set ref(a){i(a)},children:(a,l)=>{Bu(a,{get isActive(){return o()}})},$$slots:{default:!0}}),E({get ref(){return i()},set ref(a=void 0){i(a),d()},get isPictureInPictureActive(){return o()},set isPictureInPictureActive(a=!1){o(a),d()},get click(){return n()},set click(a=Eh){n(a),d()},$set:A,$on:(a,l)=>P(e,a,l)})}import{debounceFn as Ay}from"@vkontakte/videoplayer-shared/evergreen";var My=(t,e,i,o)=>{r(e)&&i()(r(o))},Ly=(t,e,i,o)=>{r(e)&&i()(r(o))},Ry=D('<div class="wrapper-middle-left svelte-1afsgkw"><!></div>'),Vy=D("<div><!></div>"),Ny=D('<div class="wrapper-middle-right svelte-1afsgkw"><!></div>'),By=D("<!> <!> <!>",1),Dy=D('<div class="overlay-mobile svelte-1afsgkw"></div> <div class="wrapper-top-left svelte-1afsgkw"><!></div> <div class="wrapper-top-right svelte-1afsgkw"><!> <!> <!> <!> <!> <!></div> <div class="wrapper-middle svelte-1afsgkw"><!> <!> <!> <!></div> <!>',1),Oy=D('<div class="wrapper-top-right svelte-1afsgkw"><!></div>'),Hy=D('<div class="wrapper-middle svelte-1afsgkw"><!></div>'),Fy=D('<!> <!> <div class="wrapper-bottom ads-timeline-mobile svelte-1afsgkw"><!></div>',1),Uy=D('<div aria-hidden="true">\xB7</div> <!>',1),zy=D('<!> <!> <div class="wrapper-bottom svelte-1afsgkw"><div class="controls-wrapper svelte-1afsgkw"><div class="controls svelte-1afsgkw"><!> <!> <!> <!> <!> <!></div> <!></div></div> <!>',1),Wy={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,
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 zl(t,e){F(e,!0),q(t,Q$);let[i,o]=Oe(),n=()=>$(S,"$isMobile",i),a=()=>$(P,"$areControlsVisible",i),s=()=>$(D,"$currentGridType$",i),d=()=>$(L,"$isInteractiveTime$",i),l=()=>$(w,"$interactiveControlsOpacity$",i),c=()=>$(A,"$showInteractiveTimeIndicatorTooltip$",i),u=()=>$(I,"$isFullscreen",i),_=v(e,"ref",15,void 0),f=Y(void 0),y=ye(),x=Hi(),{interactiveControlsOpacity$:w}=x,S=y.ui.isMobile,I=y.ui.isFullscreen,L=y.state.isInteractiveTime$,A=x.showInteractiveTimeIndicatorTooltip$,P=y.ui.controlsVisible,T=y.callbacks?.onInteractiveTimeIndicatorClick,D=y.ui.currentGridType$,Q=m(()=>!n()&&a()),G=m(()=>fa(s(),"s")),ee=m(()=>!d()||!!l()||r(Q)),ie=Y(!1);Qe(()=>{N(ie,le(r(ee)))});let oe=()=>{N(ie,!0)},te=()=>{ge(),r(f)?.addEventListener("animationiteration",oe,{once:!0})},ge=()=>{N(ie,!1),r(f)?.removeEventListener("animationiteration",oe)},X=R=>{A.set(R)},Le=m(()=>c()&&!r(ee));Qe(()=>{c()?te():ge()});let Ae=()=>{r(ee)||(A.set(!0),T?.())};Kn(()=>{A.clearTimeout(),ge()});let se=()=>{A.set(!1)},He=H("tooltip_interactive_interaction_time_indicator");var j=W$();let B;j.__mousemove=[K$],j.__click=Ae;var Re=h(j);lo(Re,{tooltipContent:He,get tooltipActive(){return r(Le)},initialTranslateYPx:72,tooltipPlacement:"bottom",onTooltipVisibilityChange:X,get ref(){return _()},set ref(R){_(R)},children:(R,be)=>{Ll(R,{completed:!0})},$$slots:{default:!0}});var _e=E(Re,2);let Ce;at(_e,R=>_(R),()=>_());var Be=E(_e,2);let ue;at(Be,R=>N(f,R),()=>r(f)),g(j),C((R,be,Ie)=>{B=Z(j,1,"interactive-episode-icon-animated svelte-od3veb",null,B,R),Ce=Z(_e,1,"ref-block svelte-od3veb",null,Ce,be),ue=Z(Be,1,"pulse svelte-od3veb",null,ue,Ie)},[()=>({mobile:n(),fullscreen:u(),invisible:r(ee),"icon-small":r(G)}),()=>({hidden:r(ee)}),()=>({paused:r(ie)})]),St("mouseleave",j,se),b(t,j),U(),o()}it(["mousemove","click"]);function Ec(t,e){F(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);lo(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 c=m(()=>e.buttonComponent);var u=pe(l);$i(u,()=>r(c),(_,f)=>{f(_,Qr(()=>e.buttonComponentProps??{}))}),b(s,l)},$$slots:{default:!0}}),U()}var Yr={prevButton:100,replayButton:200,playButton:300,nextButton:400,playPrevChapterButton:500,seekToInteractiveButton:600,interactiveGraphButton:700,liveButton:800};var j$=me('<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 rf(t,e){let i=xe(e,["$$slots","$$events","$$legacy","children"]);var o=j$();let n;var a=h(o);ce(a,()=>e.children??J),fe(),g(o),C(()=>n=he(o,n,{xmlns:"http://www.w3.org/2000/svg",width:"26",height:"24",fill:"none","aria-hidden":"true",role:"img",...i})),b(t,o)}function af(t,e){let i=v(e,"isPrev",3,!1),o=v(e,"isMobile",3,!1),n=m(()=>i()&&o()?"transform: scaleX(-1) scale(1.3333);":i()?"transform: scaleX(-1);":o()?"transform: scale(1.3333);":void 0),a=m(()=>i()?"prev-icon":"next-icon");rf(t,{get style(){return r(n)},get"data-testid"(){return r(a)}})}var Y$=M('<div class="icon-background-mobile svelte-xtk2k4"></div>'),Z$=M("<!> <!>",1),X$={hash:"svelte-xtk2k4",code:".icon-background-mobile.svelte-xtk2k4 {position:absolute;top:0;left:0;width:100%;height:100%;border-radius:var(--big-play-radius);background-color:var(--big-play-bg-color);}"};function Wa(t,e){F(e,!0),q(t,X$);let i=v(e,"ref",15,void 0),o=v(e,"isMobile",3,!1),n=v(e,"disabled",3,!1),s=ye().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")),c=m(()=>`btn-${o()?"m":"d"}--${e.type}`);Ct(t,{get className(){return r(c)},get testId(){return`btn-${e.type??""}`},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(u){i(u)},children:(u,_)=>{var f=Z$(),y=pe(f);{var x=I=>{var L=Y$();b(I,L)};V(y,I=>{o()&&I(x)})}var w=E(y,2);let S=m(()=>e.type==="prev");af(w,{get isMobile(){return o()},get isPrev(){return r(S)}}),b(u,f)},$$slots:{default:!0}}),U()}var J$=me('<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 ql(t,e){let i=xe(e,["$$slots","$$events","$$legacy","children"]);var o=J$();let n;var a=h(o);ce(a,()=>e.children??J),fe(),g(o),C(()=>n=he(o,n,{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none","aria-hidden":"true","data-testid":"replay-icon",role:"img",...i})),b(t,o)}import{noop as e2}from"@vkontakte/videoplayer-shared/evergreen";var t2=M('<div class="icon-background-mobile svelte-1ot3duq"></div>'),i2=M("<!> <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 Ps(t,e){F(e,!0),q(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,e2),d=H("tooltip_restart"),l=m(()=>`${o()?"btn-m--play":""} ${a()}`);Ct(t,{get className(){return r(l)},testId:"btn-replay",ariaLabel:d,get disabled(){return n()},get click(){return s()},get ariaKeyShortCut(){return Lr.KeyK},get ref(){return i()},set ref(c){i(c)},children:(c,u)=>{var _=i2(),f=pe(_);{var y=I=>{var L=t2();b(I,L)};V(f,I=>{o()&&I(y)})}var x=E(f,2);let w;var S=h(x);ql(S,{}),g(x),C(I=>w=Z(x,1,"svelte-1ot3duq",null,w,I),[()=>({mobile:o()})]),b(c,_)},$$slots:{default:!0}}),U()}var n2=me('<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 Zr(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=n2(),d=h(s);g(s),C(()=>{Me(s,"width",i()),Me(s,"height",o()),Me(s,"viewBox",n()),Me(d,"fill",a())}),b(t,s)}var r2=me('<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 Qa(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=r2(),d=h(s);g(s),C(()=>{Me(s,"width",i()),Me(s,"height",o()),Me(s,"viewBox",n()),Me(d,"fill",a())}),b(t,s)}import{noop as a2}from"@vkontakte/videoplayer-shared/evergreen";var s2=M('<div class="icon-background-mobile svelte-1ot3duq"></div>'),l2=M("<!> <div><!></div>",1),d2={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 Ms(t,e){F(e,!0),q(t,d2);let[i,o]=Oe(),n=()=>$(a,"$fakeIsPlaying$",i),{fakeIsPlaying$:a}=Hi(),s=v(e,"ref",15,void 0),d=v(e,"isMobile",3,!1),l=v(e,"isPlaying",3,!1),c=v(e,"disabled",3,!1),u=v(e,"className",3,""),_=v(e,"click",3,a2),y=ye().ui.t,{toggle:x}=a,w=m(()=>x),S=m(()=>n()!==null),I=m(()=>r(S)?n():l()),L=m(()=>r(I)?y("tooltip_pause"):y("tooltip_play")),A=m(()=>r(I)?Qa:Zr),P=m(()=>`${d()?"btn-m--play":""} ${u()}`),T=m(()=>r(S)?r(w):_());Ct(t,{get className(){return r(P)},testId:"btn-play",get click(){return r(T)},get disabled(){return c()},get ariaLabel(){return r(L)},get ariaKeyShortCut(){return Lr.KeyK},get ref(){return s()},set ref(D){s(D)},children:(D,Q)=>{var G=l2();let ee=m(()=>r(A));var ie=pe(G);{var oe=Le=>{var Ae=s2();b(Le,Ae)};V(ie,Le=>{d()&&Le(oe)})}var te=E(ie,2);let ge;var X=h(te);$i(X,()=>r(ee),(Le,Ae)=>{Ae(Le,{})}),g(te),C(Le=>ge=Z(te,1,"svelte-1ot3duq",null,ge,Le),[()=>({mobile:d()})]),b(D,G)},$$slots:{default:!0}}),U(),o()}var c2=me('<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 sf(t,e){let i=xe(e,["$$slots","$$events","$$legacy","children"]);var o=c2();let n;var a=h(o);ce(a,()=>e.children??J),fe(),g(o),C(()=>n=he(o,n,{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none","data-testid":"play-prev-chapter-icon",role:"img",...i})),b(t,o)}function Kl(t,e){F(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":"");Ct(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)=>{sf(d,{})},$$slots:{default:!0}}),U()}var u2=M('<span class="gutter svelte-et3q1q"><span><!></span></span>'),p2={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 Wl(t,e){F(e,!0),q(t,p2);let[i,o]=Oe(),n=()=>$(d,"$autoplayNextEnabled$",i),a=v(e,"ref",15,void 0),s=ye(),d=s.ui.autoplayNextEnabled$,l=s.actions.internal.setAutoplayNextEnabled;Ct(t,{click:()=>{l(!n(),!0)},get ref(){return a()},set ref(u){a(u)},children:(u,_)=>{var f=u2(),y=h(f);let x;var w=h(y);{var S=L=>{Zr(L,{width:"14",height:"14",fill:"#000"})},I=L=>{Qa(L,{width:"14",height:"14",fill:"#000"})};V(w,L=>{n()?L(S):L(I,!1)})}g(y),g(f),C(L=>x=Z(y,1,"toggler svelte-et3q1q",null,x,L),[()=>({enabled:n()})]),b(u,f)},$$slots:{default:!0}}),U(),o()}var f2=me('<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 lf(t,e){let i=xe(e,["$$slots","$$events","$$legacy","children"]);var o=f2();let n;var a=h(o);ce(a,()=>e.children??J),fe(2),g(o),C(()=>n=he(o,n,{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none","aria-hidden":"true","data-testid":"seek-to-interactive-icon",role:"img",...i})),b(t,o)}function Ql(t,e){F(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":"");Ct(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)=>{lf(d,{})},$$slots:{default:!0}}),U()}var m2=me('<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 df(t,e){let i=xe(e,["$$slots","$$events","$$legacy","children"]);var o=m2();let n;var a=h(o);ce(a,()=>e.children??J),fe(2),g(o),C(()=>n=he(o,n,{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none","aria-hidden":"true",role:"img",...i})),b(t,o)}var v2={hash:"svelte-17ceof5",code:'svg[data-testid="graph-open-icon"] ._closed {visibility:hidden;opacity:0;}'};function cf(t,e){q(t,v2);let i=v(e,"isOpened",3,!1),o=m(()=>i()?"graph-close-icon":"graph-open-icon");df(t,{get"data-testid"(){return r(o)}})}function Gl(t,e){F(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=ye().ui.t,l=m(()=>a()?d("tooltip_interactive_graph_on"):d("tooltip_interactive_graph_off")),c=m(()=>o()?"hidden":"");Ct(t,{get className(){return r(c)},testId:"btn-graph",get disabled(){return n()},get ariaLabel(){return r(l)},get click(){return e.click},get ref(){return i()},set ref(u){i(u)},children:(u,_)=>{let f=m(()=>!!a());cf(u,{get isOpened(){return r(f)}})},$$slots:{default:!0}}),U()}import{PlaybackState as mh}from"@vkontakte/videoplayer-core/evergreen";function jl(t,e){F(e,!0);let[i,o]=Oe(),n=()=>$(c,"$playbackState$",i),a=v(e,"isMobile",3,!1),s=v(e,"isLiveActive",3,!1),d=v(e,"ariaLabel",3,""),l=ye(),c=l.state.playbackState$,u=l.actions.internal.switchToActiveLive,_=l.actions.internal.togglePlay,f=m(()=>()=>{if(!s()){u();return}n()===mh.PAUSED&&_()}),y=m(()=>a()?"":"btn--live btn-full-opacity"),x=m(()=>s()?"btn-live":"btn-live-offset"),w=m(()=>s()&&n()===mh.PLAYING);Ct(t,{get className(){return r(y)},get testId(){return r(x)},get disabled(){return r(w)},get ariaLabel(){return d()},get click(){return r(f)},children:(S,I)=>{$l(S,{get isActive(){return s()}})},$$slots:{default:!0}}),U(),o()}import{noop as vh}from"@vkontakte/videoplayer-shared/evergreen";var g2=M('<div class="icon icon-error-stub"><div class="inner"></div></div>'),h2=M('<img class="icon" aria-hidden="true">');function Ga(t,e){"use strict";let i=Y(!1),o=()=>{N(i,!0)};var n=ze(),a=pe(n);{var s=l=>{var c=g2();b(l,c)},d=l=>{var c=h2();C(()=>Me(c,"src",e.icon)),St("error",c,o),Ia(c),b(l,c)};V(a,l=>{r(i)?l(s):l(d,!1)})}b(t,n)}function uf(t,e){F(e,!0);let i=v(e,"disabled",3,!1),o=v(e,"onClick",3,vh),n=v(e,"ref",15),a=m(()=>o()===vh),s=m(()=>r(a)||i()),d=m(()=>r(a)?"btn-full-opacity":"");lo(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,c)=>{let u=m(()=>e.testId??e.id);Ct(l,{get className(){return r(d)},get ariaLabel(){return e.ariaLabel},get click(){return o()},get disabled(){return r(s)},get testId(){return r(u)},children:(_,f)=>{Ga(_,{get icon(){return e.icon}})},$$slots:{default:!0}})},$$slots:{default:!0}}),U()}var gh=t=>!!t.buttonComponent;var Xr={vkLogo:100,autoplayNext:200,volume:300,subtitles:400,settings:500,context:600,fullscreen:700,chromecast:800};var y2=M('<div><!> <div class="controls svelte-1iedtj3"><div class="controls-left svelte-1iedtj3"><!> <!> <!></div> <div class="controls-right svelte-1iedtj3"></div></div></div> <!>',1),x2={hash:"svelte-1iedtj3",code:".wrapper-bottom.svelte-1iedtj3 {pointer-events:none;position:absolute;z-index:var(--controls-container-z-index);width:100%;bottom:0;left:0;height:var(--controls-gradient-height);background:var(--controls-gradient);transition:transform var(--controls-transition-duration) var(--controls-transition-fn);display:flex;flex-direction:column;justify-content:flex-end;box-sizing:border-box;}.wrapper-bottom.svelte-1iedtj3 > :where(.svelte-1iedtj3) {pointer-events:auto;}.controls.svelte-1iedtj3 {width:100%;display:flex;align-items:center;justify-content:space-between;height:var(--controls-height);white-space:nowrap;font-size:13px;transition:transform var(--controls-transition-duration) var(--controls-transition-fn);will-change:transform;padding:0 8px 4px;box-sizing:border-box;}.controls-left.svelte-1iedtj3, .controls-right.svelte-1iedtj3 {display:flex;align-content:center;}.controls-left.svelte-1iedtj3 {flex-grow:1;min-width:0;overflow:hidden;}.controls-left.svelte-1iedtj3 > *:not(:first-child), .controls-right.svelte-1iedtj3 > * {margin-left:var(--controls-desktop-item-margin-left);}.controls-hidden.svelte-1iedtj3 {visibility:visible; /* if hidden then slider will lose focus (if was focused) */transform:translateY(100%);}.wrapper-bottom.no-smooth.svelte-1iedtj3 {transition:none;}"};function mf(t,e){F(e,!0),q(t,x2);let[i,o]=Oe(),n=()=>$(Jt,"$disabledControls$",i),a=()=>$(Bt,"$adPlaybackState",i),s=()=>$(Gt,"$playbackState$",i),d=()=>$(Xt,"$currentSubtitle$",i),l=()=>$(Fi,"$isEnded$",i),c=()=>$(An,"$currentGridType$",i),u=()=>$(Do,"$isLive$",i),_=()=>$(yi,"$chromecastState$",i),f=()=>$(rn,"$isPictureInPictureActive",i),y=()=>$(Oo,"$pictureInPictureType$",i),x=()=>$(Ui,"$availableSubtitlesList$",i),w=()=>$(an,"$contextMenuOpenedByKeyboard$",i),S=()=>$(yo,"$showContextMenuBtn$",i),I=()=>$(ki,"$playerSize",i),L=()=>$(io,"$isRewindableLive$",i),A=()=>$(nn,"$isActiveLive$",i),P=()=>$(Fo,"$graphIsOpened$",i),T=()=>$(Yn,"$contextMenuVisible$",i),D=()=>$(po,"$isFullscreen",i),Q=()=>$(wo,"$autoplayNextEnabled",i),G=()=>$(r(ko),"$prevButton",i),ee=()=>$(r(st),"$replayButton",i),ie=()=>$(r(At),"$playButton",i),oe=()=>$(r(Yt),"$nextButton",i),te=()=>$(r(Kt),"$playPrevChapterButton",i),ge=()=>$(r(Wi),"$seekToInteractiveButton",i),X=()=>$(r(Li),"$interactiveGraphButton",i),Le=()=>$(r(Qi),"$liveButton",i),Ae=()=>$(r(To),"$time",i),se=()=>$(r(Qo),"$episodes",i),He=()=>$(r(Je),"$vkLogo",i),j=()=>$(r(ft),"$volume",i),B=()=>$(r(ti),"$subtitles",i),Re=()=>$(r(Vi),"$settings",i),_e=()=>$(r(Gi),"$context",i),Ce=()=>$(r($r),"$fullscreen",i),Be=()=>$(r(On),"$chromecast",i),ue=()=>$(oo,"$additionalDesktopControlPanelRightButtons$",i),R=()=>$(sn,"$isInteractiveTime$",i),be=()=>$(Ho,"$settingsMenuVisible",i),Ie=()=>$(Go,"$settingButtonRef$",i),je=()=>$(xo,"$startedByKeyboard$",i),qe=()=>$(Zt,"$isAudioAvailable$",i),ke=()=>$(Ye,"$fakeIsPlaying$",i),Pe=()=>$(Pn,"$seekToInteractiveDisabledTooltip$",i),Ve=()=>$(bt,"$adPosition",i),ct=()=>$(Rt,"$position$",i),gt=()=>$(uo,"$adDuration",i),ot=()=>$(dt,"$duration$",i),kt=v(e,"playerControlsWrapperRef",15,void 0),nt=v(e,"playerControlsRef",15,void 0),ut=v(e,"isAds",3,!1),Et=v(e,"logoTargetUrl",3,""),we=v(e,"isOneVideoPlaylist",3,!1),Ne=v(e,"customFullscreenSupported",3,!0),{fakeIsPlaying$:Ye}=Hi(),W=ye(),re=Hi(),ne=Vt(),Fe=W.actions.internal.toggleMuted,Ge=W.actions.internal.togglePlay,yt=W.actions.internal.pause,Ke=W.actions.internal.toggleSubtitle,Ze=W.callbacks?.onAudioDoesNotExistHint,Ee=W.callbacks?.onAudioDisabledHint,dt=W.state.duration$,Rt=W.state.positionWithScrubbing$,Gt=W.state.playbackState$,Zt=W.state.isAudioAvailable$,ui=W.state.isAudioDisabled,Fi=W.state.isEnded$,Do=W.state.isLive$,nn=W.state.isActiveLive$,io=W.state.isRewindableLive$,{isActive$:rn,type$:Oo}=re.pictureInPicture$,Ho=W.ui.settingsMenu.visible$,co=W.ui.settingsMenu.openedByBtnKeyboard$,z=W.ui.controls,zt=W.actions.internal.getVideoEpisodes(),yi=W.state.chromecastState$,Ui=W.state.availableSubtitlesList$,Xt=W.state.currentSubtitle$,Jt=z.disabledControls$,Yn=W.ui.contextMenu.visible$,yo=W.ui.contextMenu.showContextMenuBtn$,an=W.ui.contextMenu.openedByBtnKeyboard$,xo=W.ui.startedByKeyboard$,Mt=W.ui.t,uo=W.ads.duration,bt=W.ads.position,Bt=W.ads.playbackState,po=W.ui.isFullscreen,ki=W.ui.playerSize,An=W.ui.currentGridType$,oo=W.ui.additionalDesktopControlPanelRightButtons$,wo=W.ui.autoplayNextEnabled$,Wt=W.actions.internal.getVideoElement,mt=W.actions.internal.replayInteractive,ei=W.actions.internal.prevVideoClick,zi=W.actions.internal.nextVideoClick,di=W.state.isInteractive,sn=W.state.isInteractiveTime$,mi=W.state.showInteractiveGraph,no=W.state.showSeekToInteractive,So=W.state.showPlayPrevChapter,ln=W.state.showInteractiveTimeIndicator,vi=W.state.playPrevChapterDisabledTooltip,Pn=re.seekToInteractiveDisabledTooltip$,Fo=re.graphIsOpened$,fo=ne.features.interactiveResponsiveUi,Uo=m(()=>n().has("EPISODE_BUTTON")),hr=m(()=>n().has("GRAPH_BUTTON")),Zn=m(()=>n().has("SEEK_TO_INTERACTIVE_BUTTON")),Mn=m(()=>n().has("PLAY_BUTTON")),dn=m(()=>n().has("REPLAY_BUTTON")),zo=m(()=>n().has("PLAY_PREV_CHAPTER_BUTTON")),cn=()=>W.actions.internal.toggleChromecast(),qi=m(()=>ut()?a()==="playing":s()===pf.PLAYING),Xe=m(()=>d().value!=="off"),qo=m(()=>l()&&!ut()||di),Ln=m(()=>fo?r(qo)&&Ci(c(),"m"):r(qo)),Vn=m(()=>!l()||di||ut()),un=m(()=>Ci(c(),"m")),Ko=m(()=>e.showNextPrevButtons&&Ci(c(),"m")&&!ut()&&e.nextButtonActive),Wo=m(()=>e.showNextPrevButtons&&Ci(c(),"m")&&!ut()&&e.prevButtonActive),Co=m(()=>!ut()&&!!u()),Ti=m(()=>_()!==hh.NOT_AVAILABLE&&!(f()&&y()===1)&&Ci(c(),"m")&&!di),Ii=m(()=>e.showAutoplayNext&&!we()&&Ci(c(),"s")),Rn=m(()=>x().length>0&&Ci(c(),"m")),pn=m(()=>w()||S()),Bn=m(()=>Ci(c(),"s")&&!ut()),Xn=m(()=>!e.logoHidden&&!ut()),Ai=m(()=>ne.features.fullscreen&&(e.logoHidden||Ci(c(),fo?"xs":"s"))&&!(f()&&y()===1)&&(di?Ne():!0)),Pi=m(()=>(!u()||ut())&&!(ne.features.interactiveHideTime&&di)),fn=m(()=>I().width>100),mn=m(()=>mi&&Ci(c(),"m")),Ki=m(()=>fo?no&&Ci(c(),"s"):no),Mi=m(()=>fo?So&&Ci(c(),"s"):So),vn=m(()=>!ut()&&!u()&&!!zt?.length&&r(un)&&!r(Uo)),mo=m(()=>!L()||!!A()),_r=m(()=>P()?Mt("tooltip_interactive_graph_on"):Mt("tooltip_interactive_graph_off")),gn=m(()=>T()?Mt("aria_label_context_menu_close"):Mt("aria_label_context_menu_open")),Jn=($t,ht)=>$t?ht&&ht===pf.PAUSED?Mt("tooltip_play"):"":Mt("tooltip_live"),hn=m(()=>Jn(r(mo),s())),_n=m(()=>ne.logoType==="vk_video"?Mt("tooltip_vk_video_logo"):Mt("tooltip_vk_logo")),br=m(()=>r(Xe)?Mt("tooltip_subtitles_on"):Mt("tooltip_subtitles_off")),Nn=m(()=>D()?Mt("tooltip_fullscreen_on"):Mt("tooltip_fullscreen_off")),er=m(()=>_()===hh.CONNECTED?Mt("tooltip_chromecast_on"):Mt("tooltip_chromecast_off")),Dn=m(()=>Q()?Mt("tooltip_autoplay_on"):Mt("tooltip_autoplay_off")),bn=Y(0),qt=le({}),ko=m(()=>z.prevButton),st=m(()=>z.replayButton),At=m(()=>z.playButton),Yt=m(()=>z.nextButton),Kt=m(()=>z.playPrevChapterButton),Wi=m(()=>z.seekToInteractiveButton),Li=m(()=>z.interactiveGraphButton),Qi=m(()=>z.liveButton),To=m(()=>z.time),Qo=m(()=>z.episodes),Je=m(()=>z.vkLogo),ft=m(()=>z.volume),ti=m(()=>z.subtitles),Vi=m(()=>z.settings),Gi=m(()=>z.context),$r=m(()=>z.fullscreen),On=m(()=>z.chromecast),Ei=m(()=>({prevButton:G()?G().right-G().left:0,replayButton:ee()?ee().right-ee().left:0,playButton:ie()?ie().right-ie().left:0,nextButton:oe()?oe().right-oe().left:0,playPrevChapterButton:te()?te().right-te().left:0,seekToInteractiveButton:ge()?ge().right-ge().left:0,interactiveGraphButton:X()?X().right-X().left:0,liveButton:Le()?Le().right-Le().left:0,time:Ae()?Ae().right-Ae().left:0,episodes:se()?se().right-se().left:0,vkLogo:He()?He().right-He().left:0,volume:j()?j().right-j().left:0,subtitles:B()?B().right-B().left:0,settings:Re()?Re().right-Re().left:0,context:_e()?_e().right-_e().left:0,fullscreen:Ce()?Ce().right-Ce().left:0,chromecast:Be()?Be().right-Be().left:0,additionalButtons:ue().length?ue().reduce($t=>[...$t,40],[]):[]})),ro=Y(0);Qe(()=>{(!r(ro)||r(ro)<r(Ei).time)&&pt(()=>N(ro,le(r(Ei).time)))});let yr=Y(!1);Qe(()=>{let $t=0;r(vn)&&(Ci(c(),"xl")?$t=r(Ei).time:$t=60);let ht=r(Ei).prevButton+r(Ei).playButton+r(Ei).nextButton+r(Ei).seekToInteractiveButton+r(Ei).interactiveGraphButton+r(Ei).liveButton+r(ro)+$t;N(yr,le(r(Pi)&&r(bn)>=ht))});let xr=m(()=>r(yr)&&Ci(c(),"m")),tr=$2(Tc,260);Qe(()=>{I(),R(),tr(Wt(),z,qt,e.showControls)});let Go=ae();Qe(()=>{be(),Ie()&&pt(()=>ws(Ie(),be(),co))});let vo;Qe(()=>{je(),pt(()=>Ic(xo,je(),vo))});function ir(){ua({isAudioDisabled:ui,audioDisabledHintCallback:Ee,isAudioAvailable:qe(),audioIsNotExistHintCallback:Ze})&&Fe()}let wr=di?mt:Ge,or=m(()=>ke()!==null),Sr=m(()=>r(or)?ke():r(qi)),nr=m(()=>r(Sr)?Mt("tooltip_pause"):Mt("tooltip_play")),jo=Mt("tooltip_episodes"),$n=m(()=>r(Wo)?{id:"prevButton",type:"desktop-control-panel-left",weight:Yr.prevButton,buttonComponent:Wa,buttonComponentProps:{disabled:!e.prevButtonActive,type:"prev",click:ei.bind(null,!0)},tooltipEnabled:!1,mouseEnter:()=>{W.callbacks?.uiInfo?.onPrevButtonMouseEnter?.(Ka(Wt(),qt,"prevButton",e.showControls))},mouseLeave:()=>{W.callbacks?.uiInfo?.onPrevButtonMouseLeave?.(Ka(Wt(),qt,"prevButton",e.showControls))},tooltipText:Mt("tooltip_previous"),disabled:!e.prevButtonActive}:void 0),Hn=m(()=>r(Ln)?{id:"replayButton",type:"desktop-control-panel-left",weight:Yr.replayButton,buttonComponent:Ps,buttonComponentProps:{disabled:r(dn),click:wr},tooltipText:Mt("tooltip_restart"),disabled:r(dn)}:void 0),Cr=m(()=>r(Vn)?{id:"playButton",type:"desktop-control-panel-left",weight:Yr.playButton,buttonComponent:Ms,buttonComponentProps:{disabled:r(Mn),isPlaying:r(qi),click:Ge},tooltipText:r(nr),disabled:r(Mn)}:void 0),ji=m(()=>r(Ko)?{id:"nextButton",type:"desktop-control-panel-left",weight:Yr.nextButton,buttonComponent:Wa,buttonComponentProps:{disabled:!e.nextButtonActive,type:"next",click:zi.bind(null,!0)},tooltipEnabled:!1,mouseEnter:()=>{W.callbacks?.uiInfo?.onNextButtonMouseEnter?.(Ka(Wt(),qt,"nextButton",e.showControls))},mouseLeave:()=>{W.callbacks?.uiInfo?.onNextButtonMouseLeave?.(Ka(Wt(),qt,"nextButton",e.showControls))},tooltipText:Mt("tooltip_next"),disabled:!e.nextButtonActive}:void 0),et=m(()=>di&&r(Mi)?{id:"playPrevChapterButton",type:"desktop-control-panel-left",weight:Yr.playPrevChapterButton,buttonComponent:Kl,buttonComponentProps:{disabled:r(zo),click:e.playPrevChapter},tooltipText:Mt("tooltip_interactive_go_back"),disabledTooltipContent:Mt(vi),disabled:r(zo)}:void 0),Pt=m(()=>di&&r(Ki)?{id:"seekToInteractiveButton",type:"desktop-control-panel-left",weight:Yr.seekToInteractiveButton,buttonComponent:Ql,buttonComponentProps:{disabled:r(Zn),click:e.seekToInteractive},tooltipText:Mt("tooltip_interactive_seek"),disabled:r(Zn),disabledTooltipContent:Mt(Pe())}:void 0),pi=m(()=>di&&r(mn)?{id:"interactiveGraphButton",type:"desktop-control-panel-left",weight:Yr.interactiveGraphButton,buttonComponent:Gl,buttonComponentProps:{disabled:r(hr),click:Fo.toggle,graphIsOpened:P()},tooltipText:r(_r)}:void 0),go=m(()=>r(Co)?{id:"liveButton",type:"desktop-control-panel-left",weight:Yr.liveButton,buttonComponent:jl,buttonComponentProps:{isLiveActive:r(mo),ariaLabel:r(hn)},tooltipText:r(hn),disabled:r(mo)&&s()===pf.PLAYING}:void 0),Te=m(()=>[r($n),r(Hn),r(Cr),r(ji),r(et),r(Pt),r(pi),r(go)].filter($t=>!!$t).sort(Da)),Nt=m(()=>r(Xn)?{id:"vkLogo",type:"desktop-control-panel-right",weight:Xr.vkLogo,buttonComponent:Rl,buttonComponentProps:{targetUrl:Et(),logoClickable:e.logoClickable,click:yt},tooltipText:r(_n),disabledTooltipContent:"",disabled:!e.logoClickable}:void 0),ci=m(()=>r(Ii)?{id:"autoplayNext",type:"desktop-control-panel-right",weight:Xr.autoplayNext,buttonComponent:Wl,tooltipText:r(Dn)}:void 0),ii=m(()=>({id:"volume",type:"desktop-control-panel-right",weight:Xr.volume,buttonComponent:Dp,buttonComponentProps:{click:ir}})),gi=m(()=>r(Rn)?{id:"subtitles",type:"desktop-control-panel-right",weight:Xr.subtitles,buttonComponent:Lp,buttonComponentProps:{isSubtitlesEnabled:r(Xe),click:Ke},tooltipText:r(br)}:void 0),Qt=m(()=>r(Bn)?{id:"settings",type:"desktop-control-panel-right",weight:Xr.settings,buttonComponent:Is,buttonComponentProps:{ref$:Go},tooltipText:be()?void 0:Mt("tooltip_settings_off")}:void 0),hi=m(()=>ne.features.contextMenuButton?{id:"context",type:"desktop-control-panel-right",weight:Xr.context,buttonComponent:nf,buttonComponentProps:{click:e.toggleFullscreen,ariaLabel:r(gn)},className:r(pn)?"":"out-of-view",tooltipText:r(gn)}:void 0),ao=m(()=>r(Ai)?{id:"fullscreen",type:"desktop-control-panel-right",weight:Xr.fullscreen,buttonComponent:Vl,buttonComponentProps:{isFullscreen:D(),click:e.toggleFullscreen},tooltipText:r(Nn)}:void 0),xi=m(()=>r(Ti)?{id:"chromecast",type:"desktop-control-panel-right",weight:Xr.chromecast,buttonComponent:Bl,buttonComponentProps:{state:_(),click:cn},tooltipText:r(er)}:void 0),oi=m(()=>[r(Nt),r(ci),r(ii),r(gi),r(Qt),r(hi),r(ao),r(xi),...ue()].filter($t=>!!$t).sort(Da));var Io=y2(),De=pe(Io);let Dt;var ni=h(De);let Yo=m(()=>!r(fn));Dl(ni,{get isHidden(){return r(Yo)},get isAds(){return ut()},get canRewindLive(){return e.canRewindLive},get isRewindableLive(){return L()},get ref(){return qt.timeline},set ref($t){qt.timeline=$t}});var Eo=E(ni,2),rr=h(Eo),Zo=h(rr);fi(Zo,17,()=>r(Te),$t=>$t.id,($t,ht)=>{Ec($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 qt[r(ht).id]},set ref(xn){qt[r(ht).id]=xn}})});var ar=E(Zo,2);{var Bs=$t=>{let ht=m(()=>ut()?Ve():ct()),xn=m(()=>ut()?gt():ot());Ml($t,{isMobile:!1,get showDuration(){return r(xr)},get position(){return r(ht)},get duration(){return r(xn)},get ref(){return qt.time},set ref(kr){qt.time=kr}})};V(ar,$t=>{r(Pi)&&$t(Bs)})}var Za=E(ar,2);let Ns=m(()=>!r(vn));lo(Za,{className:"w-max",get disabled(){return r(Ns)},tooltipContent:jo,get ref(){return qt.episodes},set ref($t){qt.episodes=$t},children:($t,ht)=>{var xn=ze(),kr=pe(xn);{var va=Tr=>{Ol(Tr,{get position(){return ct()},get duration(){return ot()},timeCodes:zt})};V(kr,Tr=>{r(vn)&&Tr(va)})}b($t,xn)},$$slots:{default:!0}}),g(rr);var yn=E(rr,2);fi(yn,21,()=>r(oi),$t=>$t.id,($t,ht)=>{var xn=ze(),kr=pe(xn);{var va=Ir=>{Ec(Ir,{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 qt[r(ht).id]},set ref(Jr){qt[r(ht).id]=Jr}})},Tr=Ir=>{let Jr=m(()=>!!r(ht).disabled);uf(Ir,{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(Jr)},get onClick(){return r(ht).onClick},get ref(){return qt[r(ht).id]},set ref(Os){qt[r(ht).id]=Os}})};V(kr,Ir=>{gh(r(ht))?Ir(va):Ir(Tr,!1)})}b($t,xn)}),g(yn),g(Eo),at(Eo,$t=>nt($t),()=>nt()),g(De),at(De,$t=>kt($t),()=>kt());var Ds=E(De,2);{var Xa=$t=>{zl($t,{get ref(){return qt.interactiveTimeIndicator},set ref(ht){qt.interactiveTimeIndicator=ht}})};V(Ds,$t=>{ln&&$t(Xa)})}C($t=>Dt=Z(De,1,"wrapper-bottom svelte-1iedtj3",null,Dt,$t),[()=>({hidden:e.bottomHidden,"controls-hidden":!e.showControls,"no-smooth":e.bottomNoSmooth})]),Mr(rr,"clientWidth",$t=>N(bn,$t)),b(t,Io),U(),o()}import{ChromecastState as bh,PlaybackState as $h}from"@vkontakte/videoplayer-core/evergreen";import{noop as _h}from"@vkontakte/videoplayer-shared/evergreen";var w2=M('<div class="icon icon-error-stub svelte-167ouw6"><div class="inner svelte-167ouw6"></div></div>'),S2=M('<img class="icon svelte-167ouw6" aria-hidden="true">'),C2={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 vf(t,e){q(t,C2);let i=v(e,"disabled",3,!1),o=v(e,"onClick",3,_h),n=m(()=>o()===_h),a=m(()=>r(n)||i()),s=Y(!1),d=()=>{N(s,!0)},l=m(()=>r(n)?"btn-full-opacity":"");Ct(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:(c,u)=>{var _=ze(),f=pe(_);{var y=w=>{var S=w2();b(w,S)},x=w=>{var S=S2();C(()=>Me(S,"src",e.iconUrl)),St("error",S,d),Ia(S),b(w,S)};V(f,w=>{r(s)?w(y):w(x,!1)})}b(c,_)},$$slots:{default:!0}})}var k2=me('<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 gf(t,e){let i=xe(e,["$$slots","$$events","$$legacy","children"]);var o=k2();let n;var a=h(o);ce(a,()=>e.children??J),fe(),g(o),C(()=>n=he(o,n,{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24","aria-hidden":"true","data-testid":"muted-icon",role:"img",...i})),b(t,o)}import{noop as T2}from"@vkontakte/videoplayer-shared/evergreen";var I2=M('<span class="text svelte-6gmlbk"> </span>'),E2=M('<div aria-hidden="true"><!> <!></div>'),A2={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 Ac(t,e){F(e,!0),q(t,A2);let i=v(e,"muted",3,!1),o=v(e,"expanded",3,!1),n=v(e,"click",3,T2),a=v(e,"ref",15,void 0),d=ye().ui.t,l=m(()=>i()?d("tooltip_volume"):d("tooltip_volume_muted")),c=m(()=>o()?pa:gf),u=m(()=>o()?"btn-mobile-unmuted":"btn-mobile-muted");Ct(t,{get testId(){return r(u)},get click(){return n()},get ariaLabel(){return r(l)},get ref(){return a()},set ref(_){a(_)},children:(_,f)=>{var y=E2();let x=m(()=>r(c)),w;var S=h(y);$i(S,()=>r(x),(A,P)=>{P(A,{})});var I=E(S,2);{var L=A=>{var P=I2(),T=h(P,!0);g(P),C(D=>de(T,D),[()=>d("mobile_unmute")]),b(A,P)};V(I,A=>{o()&&A(L)})}g(y),C(A=>w=Z(y,1,"container svelte-6gmlbk",null,w,A),[()=>({expanded:o()})]),b(_,y)},$$slots:{default:!0}}),U()}var P2=me('<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 hf(t,e){let i=xe(e,["$$slots","$$events","$$legacy","children"]);var o=P2();let n;var a=h(o);ce(a,()=>e.children??J),fe(3),g(o),C(()=>n=he(o,n,{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none",role:"img",...i})),b(t,o)}var M2={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 _f(t,e){q(t,M2);let i=v(e,"isActive",3,!1),o=m(()=>i()?"color: #2688EB;":"color: #fff;"),n=m(()=>i()?"pip-icon--active":"pip-icon");hf(t,{get style(){return r(o)},get"data-testid"(){return r(n)}})}import{noop as L2}from"@vkontakte/videoplayer-shared/evergreen";function bf(t,e){F(e,!0);let i=v(e,"ref",15,void 0),o=v(e,"isPictureInPictureActive",3,!1),n=v(e,"click",3,L2),a=H("menu_pip");Ct(t,{testId:"btn-pip",ariaLabel:a,get click(){return n()},get ref(){return i()},set ref(s){i(s)},children:(s,d)=>{_f(s,{get isActive(){return o()}})},$$slots:{default:!0}}),U()}import{debounceFn as V2}from"@vkontakte/videoplayer-shared/evergreen";var R2=(t,e,i,o)=>{r(e)&&i.onDisabledPlayPrevChapterClick(r(o))},B2=(t,e,i,o)=>{r(e)&&i.onDisabledSeekToInteractiveClick(r(o))},N2=M("<div><!></div>"),D2=M("<div><!></div>"),O2=M("<div><!></div>"),H2=M("<!> <!> <!>",1),F2=M("<div></div> <div><!></div> <div><!> <!> <!> <!> <!> <!></div> <div><!> <!> <!> <!></div> <!>",1),U2=M("<div><!></div>"),z2=M('<div class="wrapper-middle svelte-1afsgkw"><!></div>'),q2=M("<!> <!> <div><!></div>",1),K2=M('<div aria-hidden="true">\xB7</div> <!>',1),W2=M("<!> <!> <div><div><div><!> <!> <!> <!> <!> <!></div> <!></div></div> <!>",1),Q2={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,
251
256
  .wrapper-middle-left-second.svelte-1afsgkw,
252
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);}
253
258
 
@@ -255,7 +260,7 @@ Try switching the\xA0quality to\xA0Auto.`},Lg=C$;var gs=new Map;gs.set(Vg.EN,Lg)
255
260
  }
256
261
 
257
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);}
258
- }`};function Ou(t,e){if(new.target)return T({component:Ou,...t});I(e,!0),oe(t,Wy);let[i,o]=Je(),n=()=>C(An,"$seekToInteractiveDisabledTooltip$",i),s=()=>C(sr,"$disabledControls$",i),a=()=>C(Rt,"$playbackState$",i),l=()=>C(Zi,"$adPlaybackState",i),c=()=>C(lt,"$isEnded$",i),p=()=>C(_o,"$playerSize",i),f=()=>C(hi,"$scrubbingInProgress",i),v=()=>C(ho,"$chromecastState$",i),m=()=>C(B,"$isPictureInPictureActive",i),g=()=>C(Wt,"$pictureInPictureType$",i),b=()=>C(ao,"$mobileNotReportControlHidden$",i),w=()=>C(Zt,"$playerPhase",i),k=()=>C(ko,"$currentGridType$",i),V=()=>C(Nt,"$isLive$",i),F=()=>C(fi,"$settingsMenuVisible",i),M=()=>C(so,"$isRewindableLive$",i),H=()=>C(gi,"$isActiveLive$",i),S=()=>C($o,"$isInteractiveTime$",i),q=()=>C(Lt,"$isAudioAvailable$",i),W=()=>C(pr,"$settingButtonRef$",i),U=()=>C(li,"$settingsMenuOpenedByKeyboard",i),ie=()=>C(En,"$startedByKeyboard$",i),se=()=>C(an,"$isFullscreen",i),fe=()=>C(Ni,"$mobileUnmuteButtonVisible",i),J=()=>C(ii,"$muted$",i),xe=()=>C(oi,"$mobileUnmuteButtonExpanded",i),Ce=()=>C(Bi,"$additionalButtons$",i),X=()=>C(sn,"$crashed$",i),me=()=>C(zo,"$graphIsOpened$",i),he=()=>C(Bt,"$adPosition",i),te=()=>C(it,"$adDuration",i),le=()=>C(bt,"$position$",i),z=()=>C(at,"$duration$",i),je=u(e,"bottomHidden",7),Re=u(e,"bottomNoSmooth",7),Y=u(e,"showControls",7),ce=u(e,"playerControlsWrapperRef",15,void 0),Ge=u(e,"playerControlsRef",15,void 0),G=u(e,"isAds",7,!1),Ve=u(e,"canRewindLive",7),ue=u(e,"logoClickable",7),We=u(e,"logoHidden",7),rt=u(e,"logoTargetUrl",7,""),Ue=u(e,"showNextPrevButtons",7),we=u(e,"nextButtonActive",7),Me=u(e,"prevButtonActive",7),st=u(e,"isOneVideoPlaylist",7,!1),ct=u(e,"customFullscreenSupported",7,!0),_e=u(e,"endScreenShown",7),et=u(e,"showAutoplayNext",7),yt=u(e,"toggleFullscreen",7),ee=u(e,"seekToInteractive",7),tt=u(e,"playPrevChapter",7),$t=u(e,"onDisabledPlayPrevChapterClick",7),dt=u(e,"onDisabledSeekToInteractiveClick",7),ge=Be(),Pe=go(),$e=Qt(),Qe=ge.actions.internal.toggleMuted,ze=ge.actions.internal.togglePlay,ae=ge.actions.internal.pause,gt=ge.actions.internal.prevVideoClick,Ze=ge.actions.internal.nextVideoClick,Tt=ge.callbacks?.onAudioDoesNotExistHint,Vt=ge.callbacks?.onAudioDisabledHint,Zt=ge.playerPhase,at=ge.state.duration$,bt=ge.state.positionWithScrubbing$,Rt=ge.state.playbackState$,Lt=ge.state.isAudioAvailable$,Xe=ge.state.isAudioDisabled,lt=ge.state.isEnded$,Nt=ge.state.isLive$,ii=ge.state.muted$,gi=ge.state.isActiveLive$,so=ge.state.isRewindableLive$,hi=ge.ui.scrubbingInProgress,ao=ge.ui.mobileNotReportControlHidden$,{isActive$:B,type$:Wt}=Pe.pictureInPicture$,oi=ge.ui.mobileUnmuteButtonExpanded,Ni=ge.ui.mobileUnmuteButtonVisible,fi=ge.ui.settingsMenu.visible$,li=ge.ui.settingsMenu.openedByBtnKeyboard$,lo=ge.ui.controls,rn=ge.actions.internal.getVideoEpisodes(),co=ge.webApi.pictureInPictureApi,ho=ge.state.chromecastState$,sn=ge.state.crashed$,sr=lo.disabledControls$,En=ge.ui.startedByKeyboard$,ko=ge.ui.currentGridType$,it=ge.ads.duration,Bt=ge.ads.position,Zi=ge.ads.playbackState,an=ge.ui.isFullscreen,_o=ge.ui.playerSize,Bi=ge.ui.additionalButtonsDeprecated$,Et=ge.actions.internal.getVideoElement,_i=ge.actions.internal.replayInteractive,Ti=ge.state.isInteractive,$o=ge.state.isInteractiveTime$,zt=ge.state.showInteractiveGraph,Di=ge.state.showSeekToInteractive,Ii=ge.state.showPlayPrevChapter,Pn=ge.state.showInteractiveTimeIndicator,An=Pe.seekToInteractiveDisabledTooltip$,zo=Pe.graphIsOpened$,bo=_(()=>j(ge.state.playPrevChapterDisabledTooltip)),uo=_(()=>j(n())),Mn=_(()=>s().has("EPISODE_BUTTON")),Ln=_(()=>s().has("GRAPH_BUTTON")),yo=_(()=>s().has("SEEK_TO_INTERACTIVE_BUTTON")),Vr=_(()=>s().has("PLAY_BUTTON")),xo=_(()=>s().has("REPLAY_BUTTON")),Ui=_(()=>s().has("PLAY_PREV_CHAPTER_BUTTON")),Rn=_(()=>a()===Ah.PLAYING),ar=_(()=>l()==="paused"),To=_(()=>c()&&!G()&&!Ti),Wo=_(()=>!c()||G()),lr=_(()=>Ue()&&!G()&&Me()),is=_(()=>Ue()&&!G()&&we()),Vn=_(()=>p().width>300),Nn=_(()=>p().width>400),Xi=_(f),Bn=_(()=>v()!==Ph.NOT_AVAILABLE&&!(m()&&g()===1)&&!b()&&!Ti),Dn=_(()=>w()==="LiveWaitingStart"),yi=_(()=>!!co&&v()!==Ph.CONNECTED&&!b()&&(g()===1&&r(Dn)||!r(Dn))&&!r(Xi)&&!Ti),zi=_(()=>!r(Xi)&&Vi(k(),"s")),ln=_(()=>!We()&&p().width>350),cn=_(()=>$e.features.fullscreen&&!(m()&&g()===1)&&(Ti?ct():!0)&&!r(Xi)),cr=_(()=>(!V()||G())&&p().width>260&&!r(Xi)&&!($e.features.interactiveHideTime&&Ti)),dn=_(()=>F()||Y()),qo=_(()=>!G()&&!V()&&!!rn?.length&&r(Vn)&&!r(Mn)&&!r(Xi)),xi=_(()=>!M()||!!H()),un=_(()=>zt&&Vi(k(),"m")),ft=de(ke({})),On=Ay(xu,260);ot(()=>{p(),S(),On(Et(),lo,r(ft),Y())});let dr=()=>ge.actions.internal.toggleChromecast();function Hn(){Rs({isAudioDisabled:Xe,audioDisabledHintCallback:Vt,isAudioAvailable:q(),audioIsNotExistHintCallback:Tt})&&Qe()}async function Ko(){co?.isActive()?await co?.remove():await co?.request()}function ur(){!Xe&&q()&&Ni.set(!1),Hn()}let Io=de(""),Nr=(Ee,Pt)=>{if(!Ee){K(Io,ke(j("tooltip_live")));return}Pt&&Pt===Ah.PAUSED&&K(Io,ke(j("tooltip_play")))};ot(()=>{Nr(r(xi),a())});let Fn,pr=be();ot(()=>{W()&&ja(W(),F(),li)}),ot(()=>{Xr(Fn,F(),U())}),ot(()=>{wu(En,ie(),r(ft).playButton)});var pn=zy(),Un=ye(pn);{var zn=Ee=>{var Pt=Dy(),Kt=ye(Pt),mi=N(Kt,2),Mo=y(mi);{var Ai=mt=>{let Ot=_(()=>q()&&!Xe&&xe());gc(mt,{get muted(){return J()},get expanded(){return r(Ot)},click:ur,get ref(){return r(ft).volume},set ref(ni){r(ft).volume=ni}})};O(Mo,mt=>{(!q()||fe())&&mt(Ai)})}$(mi);var Oi=N(mi,2),ve=y(Oi);vi(ve,1,Ce,Fi,(mt,Ot)=>{let ni=()=>r(Ot).iconUrl,jn=()=>r(Ot).ariaLabel,qi=()=>r(Ot).testId,br=()=>r(Ot).onClick,Zn=()=>r(Ot).tooltip,yr=_(()=>jn()??Zn());Ru(mt,{get iconUrl(){return ni()},get ariaLabel(){return r(yr)},get testId(){return qi()},get onClick(){return br()}})});var St=N(ve,2);{var di=mt=>{$l(mt,{get ref(){return r(ft).autoplayNextToggle},set ref(Ot){r(ft).autoplayNextToggle=Ot}})};O(St,mt=>{et()&&!st()&&mt(di)})}var $i=N(St,2);{var Lo=mt=>{dl(mt,{isMobile:!0,click:dr,get state(){return v()},get ref(){return r(ft).chromecast},set ref(Ot){r(ft).chromecast=Ot}})};O($i,mt=>{r(Bn)&&mt(Lo)})}var Qo=N($i,2);{var Mi=mt=>{Du(mt,{click:Ko,get isPictureInPictureActive(){return m()},get ref(){return r(ft).pip},set ref(Ot){r(ft).pip=Ot}})};O(Qo,mt=>{r(yi)&&mt(Mi)})}var hn=N(Qo,2);{var Go=mt=>{pa(mt,{ref$:pr})};O(hn,mt=>{X()&&mt(Go)})}var Qn=N(hn,2);{var Gn=mt=>{cl(mt,{click:ae,get targetUrl(){return rt()},get logoClickable(){return ue()},get ref(){return r(ft).vkLogo},set ref(Ot){r(ft).vkLogo=Ot}})};O(Qn,mt=>{r(ln)&&mt(Gn)})}$(Oi);var Ro=N(Oi,2),Yo=y(Ro);{var Hr=mt=>{let Ot=_(()=>gt.bind(null,!0));Os(mt,{get click(){return r(Ot)},type:"prev",isMobile:!0,get ref(){return r(ft).prevButton},set ref(ni){r(ft).prevButton=ni}})};O(Yo,mt=>{r(lr)&&mt(Hr)})}var gr=N(Yo,2);{var hr=mt=>{va(mt,{get disabled(){return r(Vr)},click:ze,isMobile:!0,get isPlaying(){return r(Rn)},get ref(){return r(ft).playButton},set ref(Ot){r(ft).playButton=Ot}})};O(gr,mt=>{r(Wo)&&mt(hr)})}var _r=N(gr,2);{var os=mt=>{ma(mt,{get disabled(){return r(xo)},click:ze,isMobile:!0,get ref(){return r(ft).replayButton},set ref(Ot){r(ft).replayButton=Ot}})};O(_r,mt=>{r(To)&&mt(os)})}var _n=N(_r,2);{var $r=mt=>{let Ot=_(()=>Ze.bind(null,!0));Os(mt,{get click(){return r(Ot)},type:"next",isMobile:!0,get ref(){return r(ft).nextButton},set ref(ni){r(ft).nextButton=ni}})};O(_n,mt=>{r(is)&&mt($r)})}$(Ro);var fo=N(Ro,2);{var Yn=mt=>{var Ot=By(),ni=ye(Ot);{var jn=Z=>{var ht=Ry();ht.__click=[My,Ui,$t,bo];var ui=y(ht);let ti=_(()=>!Y());_l(ui,{get hidden(){return r(ti)},get disabled(){return r(Ui)},get click(){return tt()},get ref(){return r(ft).playPrevChapterButton},set ref(Ki){r(ft).playPrevChapterButton=Ki}}),$(ht),L(()=>{ne(ht,"fullscreen",se()),ne(ht,"hidden",!Y())}),x(Z,ht)};O(ni,Z=>{Ii&&Z(jn)})}var qi=N(ni,2);{var br=Z=>{var ht=Vy();Uo(ht,tc(Ii?"wrapper-middle-left-second":"wrapper-middle-left"),"svelte-1afsgkw");var ui=y(ht);let ti=_(()=>!Y()&&!me());yl(ui,{get hidden(){return r(ti)},get disabled(){return r(Ln)},get click(){return zo.toggle},get graphIsOpened(){return me()},get ref(){return r(ft).interactiveGraphButton},set ref(Ki){r(ft).interactiveGraphButton=Ki}}),$(ht),L(()=>{ne(ht,"fullscreen",se()),ne(ht,"hidden",!Y()&&!me())}),x(Z,ht)};O(qi,Z=>{r(un)&&Z(br)})}var Zn=N(qi,2);{var yr=Z=>{var ht=Ny();ht.__click=[Ly,yo,dt,uo];var ui=y(ht);let ti=_(()=>!Y());bl(ui,{get hidden(){return r(ti)},get disabled(){return r(yo)},get click(){return ee()},get ref(){return r(ft).seekToInteractiveButton},set ref(Ki){r(ft).seekToInteractiveButton=Ki}}),$(ht),L(()=>{ne(ht,"fullscreen",se()),ne(ht,"hidden",!Y())}),x(Z,ht)};O(Zn,Z=>{Di&&Z(yr)})}x(mt,Ot)};O(fo,mt=>{Ti&&!f()&&mt(Yn)})}L(()=>{ne(Kt,"hidden",!r(dn)),ne(mi,"hidden",!Y()),ne(mi,"fullscreen",se()),ne(Oi,"hidden",!Y()&&!b()),ne(Oi,"fullscreen",se()),ne(Ro,"hidden",!Y()||f()||_e()&&Ue())}),x(Ee,Pt)};O(Un,Ee=>{G()||Ee(zn)})}var po=N(Un,2);{var Eo=Ee=>{var Pt=Fy(),Kt=ye(Pt);{var mi=St=>{var di=Oy(),$i=y(di);gc($i,{get muted(){return J()},expanded:!1,click:ur,get ref(){return r(ft).volume},set ref(Lo){r(ft).volume=Lo}}),$(di),L(()=>ne(di,"fullscreen",se())),x(St,di)};O(Kt,St=>{fe()&&St(mi)})}var Mo=N(Kt,2);{var Ai=St=>{var di=Hy(),$i=y(di);let Lo=_(()=>!r(ar));va($i,{get disabled(){return r(Vr)},click:ze,isMobile:!0,get isPlaying(){return r(Lo)},get ref(){return r(ft).playButton},set ref(Qo){r(ft).playButton=Qo}}),$(di),x(St,di)};O(Mo,St=>{r(ar)&&St(Ai)})}var Oi=N(Mo,2),ve=y(Oi);ul(ve,{get position(){return he()},get duration(){return te()}}),$(Oi),L(()=>ne(Oi,"fullscreen",se())),x(Ee,Pt)};O(po,Ee=>{G()&&l()!=="inactive"&&Ee(Eo)})}var Wi=N(po,2);ne(Wi,"mobile",!0);var Po=y(Wi),Ei=y(Po);ne(Ei,"mobile",!0);var Pi=y(Ei);{var fr=Ee=>{ro(Ee,{get disabled(){return r(xo)},get ref(){return r(ft).replayButton},set ref(Pt){r(ft).replayButton=Pt},children:(Pt,Kt)=>{ma(Pt,{get disabled(){return r(xo)},click:_i})},$$slots:{default:!0}})};O(Pi,Ee=>{Ti&&Ee(fr)})}var fn=N(Pi,2);{var Br=Ee=>{ro(Ee,{get ref(){return r(ft).liveButton},set ref(Pt){r(ft).liveButton=Pt},children:(Pt,Kt)=>{xl(Pt,{get isLiveActive(){return r(xi)},isMobile:!0,get ariaLabel(){return r(Io)}})},$$slots:{default:!0}})};O(fn,Ee=>{!G()&&V()&&Ee(Br)})}var mn=N(fn,2);{var mr=Ee=>{let Pt=_(()=>G()?he():le()),Kt=_(()=>G()?te():z());sl(Ee,{get showDuration(){return r(Nn)},get position(){return r(Pt)},get duration(){return r(Kt)},isMobile:!0,get ref(){return r(ft).time},set ref(mi){r(ft).time=mi}})};O(mn,Ee=>{r(cr)&&Ee(mr)})}var Wn=N(mn,2);let vn=_(()=>!r(qo));ro(Wn,{className:"w-max",get disabled(){return r(vn)},get ref(){return r(ft).episodes},set ref(Ee){r(ft).episodes=Ee},children:(Ee,Pt)=>{var Kt=Ye(),mi=ye(Kt);{var Mo=Ai=>{var Oi=Uy(),ve=N(ye(Oi),2);fl(ve,{get position(){return le()},get duration(){return z()},timeCodes:rn}),x(Ai,Oi)};O(mi,Ai=>{r(qo)&&Ai(Mo)})}x(Ee,Kt)},$$slots:{default:!0}});var Dr=N(Wn,2);{var qn=Ee=>{ro(Ee,{get ref(){return r(ft).settings},set ref(Pt){r(ft).settings=Pt},children:(Pt,Kt)=>{pa(Pt,{ref$:pr})},$$slots:{default:!0}})};O(Dr,Ee=>{r(zi)&&Ee(qn)})}var Kn=N(Dr,2);{var ci=Ee=>{ro(Ee,{get ref(){return r(ft).fullscreen},set ref(Pt){r(ft).fullscreen=Pt},children:(Pt,Kt)=>{ll(Pt,{get click(){return yt()},get isFullscreen(){return se()}})},$$slots:{default:!0}})};O(Kn,Ee=>{r(cn)&&Ee(ci)})}$(Ei),vt(Ei,Ee=>Ge(Ee),()=>Ge());var vr=N(Ei,2);pl(vr,{get isAds(){return G()},get canRewindLive(){return Ve()},get isRewindableLive(){return M()},get ref(){return r(ft).timeline},set ref(Ee){r(ft).timeline=Ee}}),$(Po),$(Wi),vt(Wi,Ee=>ce(Ee),()=>ce());var gn=N(Wi,2);{var Ao=Ee=>{gl(Ee,{get ref(){return r(ft).interactiveTimeIndicator},set ref(Pt){r(ft).interactiveTimeIndicator=Pt}})};O(gn,Ee=>{Pn&&Ee(Ao)})}L(()=>{ne(Wi,"hidden",je()),ne(Wi,"controls-hidden",!Y()),ne(Wi,"no-smooth",Re()),ne(Po,"fullscreen",se())}),x(t,pn);var Or=E({get bottomHidden(){return je()},set bottomHidden(Ee){je(Ee),d()},get bottomNoSmooth(){return Re()},set bottomNoSmooth(Ee){Re(Ee),d()},get showControls(){return Y()},set showControls(Ee){Y(Ee),d()},get playerControlsWrapperRef(){return ce()},set playerControlsWrapperRef(Ee=void 0){ce(Ee),d()},get playerControlsRef(){return Ge()},set playerControlsRef(Ee=void 0){Ge(Ee),d()},get isAds(){return G()},set isAds(Ee=!1){G(Ee),d()},get canRewindLive(){return Ve()},set canRewindLive(Ee){Ve(Ee),d()},get logoClickable(){return ue()},set logoClickable(Ee){ue(Ee),d()},get logoHidden(){return We()},set logoHidden(Ee){We(Ee),d()},get logoTargetUrl(){return rt()},set logoTargetUrl(Ee=""){rt(Ee),d()},get showNextPrevButtons(){return Ue()},set showNextPrevButtons(Ee){Ue(Ee),d()},get nextButtonActive(){return we()},set nextButtonActive(Ee){we(Ee),d()},get prevButtonActive(){return Me()},set prevButtonActive(Ee){Me(Ee),d()},get isOneVideoPlaylist(){return st()},set isOneVideoPlaylist(Ee=!1){st(Ee),d()},get customFullscreenSupported(){return ct()},set customFullscreenSupported(Ee=!0){ct(Ee),d()},get endScreenShown(){return _e()},set endScreenShown(Ee){_e(Ee),d()},get showAutoplayNext(){return et()},set showAutoplayNext(Ee){et(Ee),d()},get toggleFullscreen(){return yt()},set toggleFullscreen(Ee){yt(Ee),d()},get seekToInteractive(){return ee()},set seekToInteractive(Ee){ee(Ee),d()},get playPrevChapter(){return tt()},set playPrevChapter(Ee){tt(Ee),d()},get onDisabledPlayPrevChapterClick(){return $t()},set onDisabledPlayPrevChapterClick(Ee){$t(Ee),d()},get onDisabledSeekToInteractiveClick(){return dt()},set onDisabledSeekToInteractiveClick(Ee){dt(Ee),d()},$set:A,$on:(Ee,Pt)=>P(e,Ee,Pt)});return o(),Or}pt(["click"]);function wl(t,e){if(new.target)return T({component:wl,...t});I(e,!0);let[i,o]=Je(),n=()=>C(J,"$isMobile",i),s=u(e,"bottomHidden",7),a=u(e,"bottomNoSmooth",7,!1),l=u(e,"showControls",7),c=u(e,"playerControlsWrapperRef",15,void 0),p=u(e,"playerControlsRef",15,void 0),f=u(e,"isAds",7,!1),v=u(e,"canRewindLive",7),m=u(e,"logoClickable",7),g=u(e,"logoHidden",7),b=u(e,"logoTargetUrl",7,""),w=u(e,"showNextPrevButtons",7),k=u(e,"showAutoplayNext",7,!1),V=u(e,"nextButtonActive",7),F=u(e,"prevButtonActive",7),M=u(e,"isOneVideoPlaylist",7,!1),H=u(e,"customFullscreenSupported",7,!0),S=u(e,"endScreenShown",7,!1),q=u(e,"toggleFullscreen",7),W=u(e,"seekToInteractive",7),U=u(e,"playPrevChapter",7),ie=u(e,"onDisabledPlayPrevChapterClick",7,Hu),se=u(e,"onDisabledSeekToInteractiveClick",7,Hu),J=Be().ui.isMobile,xe=de(!1);Ut(()=>{let te=setTimeout(()=>K(xe,!0),0);return()=>clearTimeout(te)});var Ce=Ye(),X=ye(Ce);{var me=te=>{var le=Ye(),z=ye(le);{var je=Y=>{Ou(Y,{get bottomHidden(){return s()},get bottomNoSmooth(){return a()},get showControls(){return l()},get isAds(){return f()},get canRewindLive(){return v()},get logoClickable(){return m()},get logoHidden(){return g()},get logoTargetUrl(){return b()},get showAutoplayNext(){return k()},get showNextPrevButtons(){return w()},get nextButtonActive(){return V()},get prevButtonActive(){return F()},get isOneVideoPlaylist(){return M()},get customFullscreenSupported(){return H()},get endScreenShown(){return S()},get toggleFullscreen(){return q()},get seekToInteractive(){return W()},get playPrevChapter(){return U()},get onDisabledPlayPrevChapterClick(){return ie()},get onDisabledSeekToInteractiveClick(){return se()},get playerControlsWrapperRef(){return c()},set playerControlsWrapperRef(ce){c(ce)},get playerControlsRef(){return p()},set playerControlsRef(ce){p(ce)}})},Re=Y=>{Lu(Y,{get bottomHidden(){return s()},get bottomNoSmooth(){return a()},get showControls(){return l()},get isAds(){return f()},get canRewindLive(){return v()},get logoClickable(){return m()},get logoHidden(){return g()},get logoTargetUrl(){return b()},get isOneVideoPlaylist(){return M()},get showAutoplayNext(){return k()},get showNextPrevButtons(){return w()},get nextButtonActive(){return V()},get prevButtonActive(){return F()},get customFullscreenSupported(){return H()},get toggleFullscreen(){return q()},get seekToInteractive(){return W()},get playPrevChapter(){return U()},get playerControlsWrapperRef(){return c()},set playerControlsWrapperRef(ce){c(ce)},get playerControlsRef(){return p()},set playerControlsRef(ce){p(ce)}})};O(z,Y=>{n()?Y(je):Y(Re,!1)})}x(te,le)};O(X,te=>{r(xe)&&te(me)})}x(t,Ce);var he=E({get bottomHidden(){return s()},set bottomHidden(te){s(te),d()},get bottomNoSmooth(){return a()},set bottomNoSmooth(te=!1){a(te),d()},get showControls(){return l()},set showControls(te){l(te),d()},get playerControlsWrapperRef(){return c()},set playerControlsWrapperRef(te=void 0){c(te),d()},get playerControlsRef(){return p()},set playerControlsRef(te=void 0){p(te),d()},get isAds(){return f()},set isAds(te=!1){f(te),d()},get canRewindLive(){return v()},set canRewindLive(te){v(te),d()},get logoClickable(){return m()},set logoClickable(te){m(te),d()},get logoHidden(){return g()},set logoHidden(te){g(te),d()},get logoTargetUrl(){return b()},set logoTargetUrl(te=""){b(te),d()},get showNextPrevButtons(){return w()},set showNextPrevButtons(te){w(te),d()},get showAutoplayNext(){return k()},set showAutoplayNext(te=!1){k(te),d()},get nextButtonActive(){return V()},set nextButtonActive(te){V(te),d()},get prevButtonActive(){return F()},set prevButtonActive(te){F(te),d()},get isOneVideoPlaylist(){return M()},set isOneVideoPlaylist(te=!1){M(te),d()},get customFullscreenSupported(){return H()},set customFullscreenSupported(te=!0){H(te),d()},get endScreenShown(){return S()},set endScreenShown(te=!1){S(te),d()},get toggleFullscreen(){return q()},set toggleFullscreen(te){q(te),d()},get seekToInteractive(){return W()},set seekToInteractive(te){W(te),d()},get playPrevChapter(){return U()},set playPrevChapter(te){U(te),d()},get onDisabledPlayPrevChapterClick(){return ie()},set onDisabledPlayPrevChapterClick(te=Hu){ie(te),d()},get onDisabledSeekToInteractiveClick(){return se()},set onDisabledSeekToInteractiveClick(te=Hu){se(te),d()},$set:A,$on:(te,le)=>P(e,te,le)});return o(),he}var qy=Ie('<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 Fu(t,e){if(new.target)return T({component:Fu,...t});let i=Oe(e,["children","$$slots","$$events","$$legacy"]);I(e,!1);var o=qy();let n;var s=y(o);return De(s,e,"default",{},null),Te(2),$(o),L(()=>n=Le(o,n,{xmlns:"http://www.w3.org/2000/svg",width:"48",height:"51",fill:"none","aria-hidden":"true","data-testid":"seek-icon",role:"img",...i},void 0,!0)),x(t,o),E({$set:A,$on:(a,l)=>P(e,a,l)})}function Uu(t,e){if(new.target)return T({component:Uu,...t});I(e,!0);let i=u(e,"reversed",7,!1),o=_(()=>i()?"transform: scaleX(-1);":void 0);return Fu(t,{get style(){return r(o)}}),E({get reversed(){return i()},set reversed(n=!1){i(n),d()},$set:A,$on:(n,s)=>P(e,n,s)})}var Ky=Ie('<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 zu(t,e){if(new.target)return T({component:zu,...t});let i=Oe(e,["children","$$slots","$$events","$$legacy"]);I(e,!1);var o=Ky();let n;var s=y(o);return De(s,e,"default",{},null),Te(2),$(o),L(()=>n=Le(o,n,{xmlns:"http://www.w3.org/2000/svg",width:"48",height:"48",fill:"none","aria-hidden":"true","data-testid":"subtitles-on-icon",role:"img",...i},void 0,!0)),x(t,o),E({$set:A,$on:(a,l)=>P(e,a,l)})}var Qy=Ie('<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 Wu(t,e){if(new.target)return T({component:Wu,...t});let i=Oe(e,["children","$$slots","$$events","$$legacy"]);I(e,!1);var o=Qy();let n;var s=y(o);return De(s,e,"default",{},null),Te(2),$(o),L(()=>n=Le(o,n,{xmlns:"http://www.w3.org/2000/svg",width:"48",height:"48",fill:"none","aria-hidden":"true","data-testid":"subtitles-off-icon",role:"img",...i},void 0,!0)),x(t,o),E({$set:A,$on:(a,l)=>P(e,a,l)})}function hc(t,e){if(new.target)return T({component:hc,...t});I(e,!0);let i=u(e,"isOff",7,!1);var o=Ye(),n=ye(o);{var s=l=>{Wu(l,{})},a=l=>{zu(l,{})};O(n,l=>{i()?l(s):l(a,!1)})}return x(t,o),E({get isOff(){return i()},set isOff(l=!1){i(l),d()},$set:A,$on:(l,c)=>P(e,l,c)})}var Gy=Ie('<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 qu(t,e){if(new.target)return T({component:qu,...t});let i=Oe(e,["children","$$slots","$$events","$$legacy"]);I(e,!1);var o=Gy();let n;var s=y(o);return De(s,e,"default",{},null),Te(2),$(o),L(()=>n=Le(o,n,{xmlns:"http://www.w3.org/2000/svg",width:"48",height:"48",fill:"none","aria-hidden":"true","data-testid":"rate-change-icon",role:"img",...i},void 0,!0)),x(t,o),E({$set:A,$on:(a,l)=>P(e,a,l)})}function Ku(t,e){if(new.target)return T({component:Ku,...t});I(e,!0);let i=u(e,"reversed",7,!1),o=_(()=>i()?"transform: scaleX(-1);":void 0);return qu(t,{get style(){return r(o)}}),E({get reversed(){return i()},set reversed(n=!1){i(n),d()},$set:A,$on:(n,s)=>P(e,n,s)})}var Yy=Ie('<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 Qu(t,e){if(new.target)return T({component:Qu,...t});let i=Oe(e,["children","$$slots","$$events","$$legacy"]);I(e,!1);var o=Yy();let n;var s=y(o);return De(s,e,"default",{},null),Te(2),$(o),L(()=>n=Le(o,n,{xmlns:"http://www.w3.org/2000/svg",width:"48",height:"48",fill:"none","aria-hidden":"true","data-testid":"episodes-seek-icon",role:"img",...i},void 0,!0)),x(t,o),E({$set:A,$on:(a,l)=>P(e,a,l)})}function Gu(t,e){if(new.target)return T({component:Gu,...t});I(e,!0);let i=u(e,"reversed",7,!1),o=_(()=>i()?"transform: scaleX(-1);":void 0);return Qu(t,{get style(){return r(o)}}),E({get reversed(){return i()},set reversed(n=!1){i(n),d()},$set:A,$on:(n,s)=>P(e,n,s)})}var jy=D('<span class="hot-key-helpers-text svelte-1ad3n06"> </span>'),Zy=D('<div class="svelte-1ad3n06"><!> <!> <!> <!> <!> <!> <!> <!> <!> <!></div> <!>',1),Xy=D('<div class="hot-key-helpers-container svelte-1ad3n06"><!></div>'),Jy={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 $f(t,e){F(e,!0),q(t,Q2);let[i,o]=Oe(),n=()=>$(uo,"$seekToInteractiveDisabledTooltip$",i),a=()=>$(nn,"$disabledControls$",i),s=()=>$(ut,"$playbackState$",i),d=()=>$(co,"$adPlaybackState",i),l=()=>$(Ne,"$isEnded$",i),c=()=>$(zt,"$playerSize",i),u=()=>$(Fe,"$scrubbingInProgress",i),_=()=>$(Fi,"$chromecastState$",i),f=()=>$(yt,"$isPictureInPictureActive",i),y=()=>$(Ke,"$pictureInPictureType$",i),x=()=>$(Ge,"$mobileNotReportControlHidden$",i),w=()=>$(ot,"$playerPhase",i),S=()=>$(rn,"$currentGridType$",i),I=()=>$(Ye,"$isLive$",i),L=()=>$(dt,"$settingsMenuVisible",i),A=()=>$(ne,"$isRewindableLive$",i),P=()=>$(re,"$isActiveLive$",i),T=()=>$(Yn,"$isInteractiveTime$",i),D=()=>$(Et,"$isAudioAvailable$",i),Q=()=>$(Ti,"$settingButtonRef$",i),G=()=>$(io,"$startedByKeyboard$",i),ee=()=>$(z,"$isFullscreen",i),ie=()=>$(Ee,"$mobileUnmuteButtonVisible",i),oe=()=>$(W,"$muted$",i),te=()=>$(Ze,"$mobileUnmuteButtonExpanded",i),ge=()=>$(yi,"$additionalButtons$",i),X=()=>$(Do,"$crashed$",i),Le=()=>$(bt,"$graphIsOpened$",i),Ae=()=>$(Ho,"$adPosition",i),se=()=>$(Oo,"$adDuration",i),He=()=>$(nt,"$position$",i),j=()=>$(kt,"$duration$",i),B=v(e,"playerControlsWrapperRef",15,void 0),Re=v(e,"playerControlsRef",15,void 0),_e=v(e,"isAds",3,!1),Ce=v(e,"logoTargetUrl",3,""),Be=v(e,"isOneVideoPlaylist",3,!1),ue=v(e,"customFullscreenSupported",3,!0),R=ye(),be=Hi(),Ie=Vt(),je=R.actions.internal.toggleMuted,qe=R.actions.internal.togglePlay,ke=R.actions.internal.pause,Pe=R.actions.internal.prevVideoClick,Ve=R.actions.internal.nextVideoClick,ct=R.callbacks?.onAudioDoesNotExistHint,gt=R.callbacks?.onAudioDisabledHint,ot=R.playerPhase,kt=R.state.duration$,nt=R.state.positionWithScrubbing$,ut=R.state.playbackState$,Et=R.state.isAudioAvailable$,we=R.state.isAudioDisabled,Ne=R.state.isEnded$,Ye=R.state.isLive$,W=R.state.muted$,re=R.state.isActiveLive$,ne=R.state.isRewindableLive$,Fe=R.ui.scrubbingInProgress,Ge=R.ui.mobileNotReportControlHidden$,{isActive$:yt,type$:Ke}=be.pictureInPicture$,Ze=R.ui.mobileUnmuteButtonExpanded,Ee=R.ui.mobileUnmuteButtonVisible,dt=R.ui.settingsMenu.visible$,Rt=R.ui.settingsMenu.openedByBtnKeyboard$,Gt=R.ui.controls,Zt=R.actions.internal.getVideoEpisodes(),ui=R.webApi.pictureInPictureApi,Fi=R.state.chromecastState$,Do=R.state.crashed$,nn=Gt.disabledControls$,io=R.ui.startedByKeyboard$,rn=R.ui.currentGridType$,Oo=R.ads.duration,Ho=R.ads.position,co=R.ads.playbackState,z=R.ui.isFullscreen,zt=R.ui.playerSize,yi=R.ui.additionalButtonsDeprecated$,Ui=R.actions.internal.getVideoElement,Xt=R.actions.internal.replayInteractive,Jt=R.state.isInteractive,Yn=R.state.isInteractiveTime$,yo=R.state.showInteractiveGraph,an=R.state.showSeekToInteractive,xo=R.state.showPlayPrevChapter,Mt=R.state.showInteractiveTimeIndicator,uo=be.seekToInteractiveDisabledTooltip$,bt=be.graphIsOpened$,Bt=m(()=>H(R.state.playPrevChapterDisabledTooltip)),po=m(()=>H(n())),ki=m(()=>a().has("EPISODE_BUTTON")),An=m(()=>a().has("GRAPH_BUTTON")),oo=m(()=>a().has("SEEK_TO_INTERACTIVE_BUTTON")),wo=m(()=>a().has("PLAY_BUTTON")),Wt=m(()=>a().has("REPLAY_BUTTON")),mt=m(()=>a().has("PLAY_PREV_CHAPTER_BUTTON")),ei=m(()=>s()===$h.PLAYING),zi=m(()=>d()==="paused"),di=m(()=>l()&&!_e()&&!Jt),sn=m(()=>!l()||_e()),mi=m(()=>e.showNextPrevButtons&&!_e()&&e.prevButtonActive),no=m(()=>e.showNextPrevButtons&&!_e()&&e.nextButtonActive),So=m(()=>c().width>300),ln=m(()=>c().width>400),vi=m(u),Pn=m(()=>_()!==bh.NOT_AVAILABLE&&!(f()&&y()===1)&&!x()&&!Jt),Fo=m(()=>w()==="LiveWaitingStart"),fo=m(()=>!!ui&&_()!==bh.CONNECTED&&!x()&&(y()===1&&r(Fo)||!r(Fo))&&!r(vi)&&!Jt),Uo=m(()=>!r(vi)&&Ci(S(),"s")),hr=m(()=>!e.logoHidden&&c().width>350),Zn=m(()=>Ie.features.fullscreen&&!(f()&&y()===1)&&(Jt?ue():!0)&&!r(vi)),Mn=m(()=>(!I()||_e())&&c().width>260&&!r(vi)&&!(Ie.features.interactiveHideTime&&Jt)),dn=m(()=>L()||e.showControls),zo=m(()=>!_e()&&!I()&&!!Zt?.length&&r(So)&&!r(ki)&&!r(vi)),cn=m(()=>!A()||!!P()),qi=m(()=>yo&&Ci(S(),"m")),Xe=le({}),qo=V2(Tc,260);Qe(()=>{c(),T(),qo(Ui(),Gt,Xe,e.showControls)});let Ln=()=>R.actions.internal.toggleChromecast();function Vn(){ua({isAudioDisabled:we,audioDisabledHintCallback:gt,isAudioAvailable:D(),audioIsNotExistHintCallback:ct})&&je()}async function un(){ui?.isActive()?await ui?.remove():await ui?.request()}function Ko(){!we&&D()&&Ee.set(!1),Vn()}let Wo=Y(""),Co=(st,At)=>{if(!st){N(Wo,le(H("tooltip_live")));return}At&&At===$h.PAUSED&&N(Wo,le(H("tooltip_play")))};Qe(()=>{Co(r(cn),s())});let Ti=ae();Qe(()=>{Q()&&ws(Q(),L(),Rt)}),Qe(()=>{Ic(io,G(),Xe.playButton)});var Ii=W2(),Rn=pe(Ii);{var pn=st=>{var At=F2(),Yt=pe(At);let Kt;var Wi=E(Yt,2);let Li;var Qi=h(Wi);{var To=et=>{let Pt=m(()=>D()&&!we&&te());Ac(et,{get muted(){return oe()},get expanded(){return r(Pt)},click:Ko,get ref(){return Xe.volume},set ref(pi){Xe.volume=pi}})};V(Qi,et=>{(!D()||ie())&&et(To)})}g(Wi);var Qo=E(Wi,2);let Je;var ft=h(Qo);fi(ft,1,ge,({iconUrl:et,ariaLabel:Pt,testId:pi,onClick:go,tooltip:Te})=>et,(et,Pt)=>{let pi=()=>r(Pt).iconUrl,go=()=>r(Pt).ariaLabel,Te=()=>r(Pt).testId,Nt=()=>r(Pt).onClick,ci=()=>r(Pt).tooltip,ii=m(()=>go()??ci());vf(et,{get iconUrl(){return pi()},get ariaLabel(){return r(ii)},get testId(){return Te()},get onClick(){return Nt()}})});var ti=E(ft,2);{var Vi=et=>{Wl(et,{get ref(){return Xe.autoplayNextToggle},set ref(Pt){Xe.autoplayNextToggle=Pt}})};V(ti,et=>{e.showAutoplayNext&&!Be()&&et(Vi)})}var Gi=E(ti,2);{var $r=et=>{Bl(et,{isMobile:!0,click:Ln,get state(){return _()},get ref(){return Xe.chromecast},set ref(Pt){Xe.chromecast=Pt}})};V(Gi,et=>{r(Pn)&&et($r)})}var On=E(Gi,2);{var Ei=et=>{bf(et,{click:un,get isPictureInPictureActive(){return f()},get ref(){return Xe.pip},set ref(Pt){Xe.pip=Pt}})};V(On,et=>{r(fo)&&et(Ei)})}var ro=E(On,2);{var yr=et=>{Is(et,{ref$:Ti})};V(ro,et=>{X()&&et(yr)})}var xr=E(ro,2);{var tr=et=>{Rl(et,{click:ke,get targetUrl(){return Ce()},get logoClickable(){return e.logoClickable},get ref(){return Xe.vkLogo},set ref(Pt){Xe.vkLogo=Pt}})};V(xr,et=>{r(hr)&&et(tr)})}g(Qo);var Go=E(Qo,2);let vo;var ir=h(Go);{var wr=et=>{let Pt=m(()=>Pe.bind(null,!0));Wa(et,{get click(){return r(Pt)},type:"prev",isMobile:!0,get ref(){return Xe.prevButton},set ref(pi){Xe.prevButton=pi}})};V(ir,et=>{r(mi)&&et(wr)})}var or=E(ir,2);{var Sr=et=>{Ms(et,{get disabled(){return r(wo)},click:qe,isMobile:!0,get isPlaying(){return r(ei)},get ref(){return Xe.playButton},set ref(Pt){Xe.playButton=Pt}})};V(or,et=>{r(sn)&&et(Sr)})}var nr=E(or,2);{var jo=et=>{Ps(et,{get disabled(){return r(Wt)},click:qe,isMobile:!0,get ref(){return Xe.replayButton},set ref(Pt){Xe.replayButton=Pt}})};V(nr,et=>{r(di)&&et(jo)})}var $n=E(nr,2);{var Hn=et=>{let Pt=m(()=>Ve.bind(null,!0));Wa(et,{get click(){return r(Pt)},type:"next",isMobile:!0,get ref(){return Xe.nextButton},set ref(pi){Xe.nextButton=pi}})};V($n,et=>{r(no)&&et(Hn)})}g(Go);var Cr=E(Go,2);{var ji=et=>{var Pt=H2(),pi=pe(Pt);{var go=gi=>{var Qt=N2();let hi;Qt.__click=[R2,mt,e,Bt];var ao=h(Qt);let xi=m(()=>!e.showControls);Kl(ao,{get hidden(){return r(xi)},get disabled(){return r(mt)},get click(){return e.playPrevChapter},get ref(){return Xe.playPrevChapterButton},set ref(oi){Xe.playPrevChapterButton=oi}}),g(Qt),C(oi=>hi=Z(Qt,1,"wrapper-middle-left svelte-1afsgkw",null,hi,oi),[()=>({fullscreen:ee(),hidden:!e.showControls})]),b(gi,Qt)};V(pi,gi=>{xo&&gi(go)})}var Te=E(pi,2);{var Nt=gi=>{var Qt=D2();let hi;var ao=h(Qt);let xi=m(()=>!e.showControls&&!Le());Gl(ao,{get hidden(){return r(xi)},get disabled(){return r(An)},get click(){return bt.toggle},get graphIsOpened(){return Le()},get ref(){return Xe.interactiveGraphButton},set ref(oi){Xe.interactiveGraphButton=oi}}),g(Qt),C(oi=>hi=Z(Qt,1,cl(xo?"wrapper-middle-left-second":"wrapper-middle-left"),"svelte-1afsgkw",hi,oi),[()=>({fullscreen:ee(),hidden:!e.showControls&&!Le()})]),b(gi,Qt)};V(Te,gi=>{r(qi)&&gi(Nt)})}var ci=E(Te,2);{var ii=gi=>{var Qt=O2();let hi;Qt.__click=[B2,oo,e,po];var ao=h(Qt);let xi=m(()=>!e.showControls);Ql(ao,{get hidden(){return r(xi)},get disabled(){return r(oo)},get click(){return e.seekToInteractive},get ref(){return Xe.seekToInteractiveButton},set ref(oi){Xe.seekToInteractiveButton=oi}}),g(Qt),C(oi=>hi=Z(Qt,1,"wrapper-middle-right svelte-1afsgkw",null,hi,oi),[()=>({fullscreen:ee(),hidden:!e.showControls})]),b(gi,Qt)};V(ci,gi=>{an&&gi(ii)})}b(et,Pt)};V(Cr,et=>{Jt&&!u()&&et(ji)})}C((et,Pt,pi,go)=>{Kt=Z(Yt,1,"overlay-mobile svelte-1afsgkw",null,Kt,et),Li=Z(Wi,1,"wrapper-top-left svelte-1afsgkw",null,Li,Pt),Je=Z(Qo,1,"wrapper-top-right svelte-1afsgkw",null,Je,pi),vo=Z(Go,1,"wrapper-middle svelte-1afsgkw",null,vo,go)},[()=>({hidden:!r(dn)}),()=>({hidden:!e.showControls,fullscreen:ee()}),()=>({hidden:!e.showControls&&!x(),fullscreen:ee()}),()=>({hidden:!e.showControls||u()||e.endScreenShown&&e.showNextPrevButtons})]),b(st,At)};V(Rn,st=>{_e()||st(pn)})}var Bn=E(Rn,2);{var Xn=st=>{var At=q2(),Yt=pe(At);{var Kt=Je=>{var ft=U2();let ti;var Vi=h(ft);Ac(Vi,{get muted(){return oe()},expanded:!1,click:Ko,get ref(){return Xe.volume},set ref(Gi){Xe.volume=Gi}}),g(ft),C(Gi=>ti=Z(ft,1,"wrapper-top-right svelte-1afsgkw",null,ti,Gi),[()=>({fullscreen:ee()})]),b(Je,ft)};V(Yt,Je=>{ie()&&Je(Kt)})}var Wi=E(Yt,2);{var Li=Je=>{var ft=z2(),ti=h(ft);let Vi=m(()=>!r(zi));Ms(ti,{get disabled(){return r(wo)},click:qe,isMobile:!0,get isPlaying(){return r(Vi)},get ref(){return Xe.playButton},set ref(Gi){Xe.playButton=Gi}}),g(ft),b(Je,ft)};V(Wi,Je=>{r(zi)&&Je(Li)})}var Qi=E(Wi,2);let To;var Qo=h(Qi);Nl(Qo,{get position(){return Ae()},get duration(){return se()}}),g(Qi),C(Je=>To=Z(Qi,1,"wrapper-bottom ads-timeline-mobile svelte-1afsgkw",null,To,Je),[()=>({fullscreen:ee()})]),b(st,At)};V(Bn,st=>{_e()&&d()!=="inactive"&&st(Xn)})}var Ai=E(Bn,2);let Pi;var fn=h(Ai);let mn;var Ki=h(fn);Z(Ki,1,"controls svelte-1afsgkw",null,{},{mobile:!0});var Mi=h(Ki);{var vn=st=>{lo(st,{get disabled(){return r(Wt)},get ref(){return Xe.replayButton},set ref(At){Xe.replayButton=At},children:(At,Yt)=>{Ps(At,{get disabled(){return r(Wt)},click:Xt})},$$slots:{default:!0}})};V(Mi,st=>{Jt&&st(vn)})}var mo=E(Mi,2);{var _r=st=>{lo(st,{get ref(){return Xe.liveButton},set ref(At){Xe.liveButton=At},children:(At,Yt)=>{jl(At,{get isLiveActive(){return r(cn)},isMobile:!0,get ariaLabel(){return r(Wo)}})},$$slots:{default:!0}})};V(mo,st=>{!_e()&&I()&&st(_r)})}var gn=E(mo,2);{var Jn=st=>{let At=m(()=>_e()?Ae():He()),Yt=m(()=>_e()?se():j());Ml(st,{get showDuration(){return r(ln)},get position(){return r(At)},get duration(){return r(Yt)},isMobile:!0,get ref(){return Xe.time},set ref(Kt){Xe.time=Kt}})};V(gn,st=>{r(Mn)&&st(Jn)})}var hn=E(gn,2);let _n=m(()=>!r(zo));lo(hn,{className:"w-max",get disabled(){return r(_n)},get ref(){return Xe.episodes},set ref(st){Xe.episodes=st},children:(st,At)=>{var Yt=ze(),Kt=pe(Yt);{var Wi=Li=>{var Qi=K2(),To=E(pe(Qi),2);Ol(To,{get position(){return He()},get duration(){return j()},timeCodes:Zt}),b(Li,Qi)};V(Kt,Li=>{r(zo)&&Li(Wi)})}b(st,Yt)},$$slots:{default:!0}});var br=E(hn,2);{var Nn=st=>{lo(st,{get ref(){return Xe.settings},set ref(At){Xe.settings=At},children:(At,Yt)=>{Is(At,{ref$:Ti})},$$slots:{default:!0}})};V(br,st=>{r(Uo)&&st(Nn)})}var er=E(br,2);{var Dn=st=>{lo(st,{get ref(){return Xe.fullscreen},set ref(At){Xe.fullscreen=At},children:(At,Yt)=>{Vl(At,{get click(){return e.toggleFullscreen},get isFullscreen(){return ee()}})},$$slots:{default:!0}})};V(er,st=>{r(Zn)&&st(Dn)})}g(Ki),at(Ki,st=>Re(st),()=>Re());var bn=E(Ki,2);Dl(bn,{get isAds(){return _e()},get canRewindLive(){return e.canRewindLive},get isRewindableLive(){return A()},get ref(){return Xe.timeline},set ref(st){Xe.timeline=st}}),g(fn),g(Ai),at(Ai,st=>B(st),()=>B());var qt=E(Ai,2);{var ko=st=>{zl(st,{get ref(){return Xe.interactiveTimeIndicator},set ref(At){Xe.interactiveTimeIndicator=At}})};V(qt,st=>{Mt&&st(ko)})}C((st,At)=>{Pi=Z(Ai,1,"wrapper-bottom svelte-1afsgkw",null,Pi,st),mn=Z(fn,1,"controls-wrapper svelte-1afsgkw",null,mn,At)},[()=>({hidden:e.bottomHidden,"controls-hidden":!e.showControls,"no-smooth":e.bottomNoSmooth,mobile:!0}),()=>({fullscreen:ee()})]),b(t,Ii),U(),o()}it(["click"]);function Yl(t,e){F(e,!0);let[i,o]=Oe(),n=()=>$(I,"$isMobile",i),a=v(e,"bottomNoSmooth",3,!1),s=v(e,"playerControlsWrapperRef",15,void 0),d=v(e,"playerControlsRef",15,void 0),l=v(e,"isAds",3,!1),c=v(e,"logoTargetUrl",3,""),u=v(e,"showAutoplayNext",3,!1),_=v(e,"isOneVideoPlaylist",3,!1),f=v(e,"customFullscreenSupported",3,!0),y=v(e,"endScreenShown",3,!1),x=v(e,"onDisabledPlayPrevChapterClick",3,yh),w=v(e,"onDisabledSeekToInteractiveClick",3,yh),I=ye().ui.isMobile,L=Y(!1);It(()=>{let D=setTimeout(()=>N(L,!0),0);return()=>clearTimeout(D)});var A=ze(),P=pe(A);{var T=D=>{var Q=ze(),G=pe(Q);{var ee=oe=>{$f(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 c()},get showAutoplayNext(){return u()},get showNextPrevButtons(){return e.showNextPrevButtons},get nextButtonActive(){return e.nextButtonActive},get prevButtonActive(){return e.prevButtonActive},get isOneVideoPlaylist(){return _()},get customFullscreenSupported(){return f()},get endScreenShown(){return y()},get toggleFullscreen(){return e.toggleFullscreen},get seekToInteractive(){return e.seekToInteractive},get playPrevChapter(){return e.playPrevChapter},get onDisabledPlayPrevChapterClick(){return x()},get onDisabledSeekToInteractiveClick(){return w()},get playerControlsWrapperRef(){return s()},set playerControlsWrapperRef(te){s(te)},get playerControlsRef(){return d()},set playerControlsRef(te){d(te)}})},ie=oe=>{mf(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 c()},get isOneVideoPlaylist(){return _()},get showAutoplayNext(){return u()},get showNextPrevButtons(){return e.showNextPrevButtons},get nextButtonActive(){return e.nextButtonActive},get prevButtonActive(){return e.prevButtonActive},get customFullscreenSupported(){return f()},get toggleFullscreen(){return e.toggleFullscreen},get seekToInteractive(){return e.seekToInteractive},get playPrevChapter(){return e.playPrevChapter},get playerControlsWrapperRef(){return s()},set playerControlsWrapperRef(te){s(te)},get playerControlsRef(){return d()},set playerControlsRef(te){d(te)}})};V(G,oe=>{n()?oe(ee):oe(ie,!1)})}b(D,Q)};V(P,D=>{r(L)&&D(T)})}b(t,A),U(),o()}var G2=me('<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 yf(t,e){let i=xe(e,["$$slots","$$events","$$legacy","children"]);var o=G2();let n;var a=h(o);ce(a,()=>e.children??J),fe(2),g(o),C(()=>n=he(o,n,{xmlns:"http://www.w3.org/2000/svg",width:"48",height:"51",fill:"none","aria-hidden":"true","data-testid":"seek-icon",role:"img",...i})),b(t,o)}function xf(t,e){let i=v(e,"reversed",3,!1),o=m(()=>i()?"transform: scaleX(-1);":void 0);yf(t,{get style(){return r(o)}})}var j2=me('<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 wf(t,e){let i=xe(e,["$$slots","$$events","$$legacy","children"]);var o=j2();let n;var a=h(o);ce(a,()=>e.children??J),fe(2),g(o),C(()=>n=he(o,n,{xmlns:"http://www.w3.org/2000/svg",width:"48",height:"48",fill:"none","aria-hidden":"true","data-testid":"subtitles-on-icon",role:"img",...i})),b(t,o)}var Y2=me('<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 Sf(t,e){let i=xe(e,["$$slots","$$events","$$legacy","children"]);var o=Y2();let n;var a=h(o);ce(a,()=>e.children??J),fe(2),g(o),C(()=>n=he(o,n,{xmlns:"http://www.w3.org/2000/svg",width:"48",height:"48",fill:"none","aria-hidden":"true","data-testid":"subtitles-off-icon",role:"img",...i})),b(t,o)}function Pc(t,e){let i=v(e,"isOff",3,!1);var o=ze(),n=pe(o);{var a=d=>{Sf(d,{})},s=d=>{wf(d,{})};V(n,d=>{i()?d(a):d(s,!1)})}b(t,o)}var Z2=me('<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 Cf(t,e){let i=xe(e,["$$slots","$$events","$$legacy","children"]);var o=Z2();let n;var a=h(o);ce(a,()=>e.children??J),fe(2),g(o),C(()=>n=he(o,n,{xmlns:"http://www.w3.org/2000/svg",width:"48",height:"48",fill:"none","aria-hidden":"true","data-testid":"rate-change-icon",role:"img",...i})),b(t,o)}function kf(t,e){let i=v(e,"reversed",3,!1),o=m(()=>i()?"transform: scaleX(-1);":void 0);Cf(t,{get style(){return r(o)}})}var X2=me('<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 Tf(t,e){let i=xe(e,["$$slots","$$events","$$legacy","children"]);var o=X2();let n;var a=h(o);ce(a,()=>e.children??J),fe(2),g(o),C(()=>n=he(o,n,{xmlns:"http://www.w3.org/2000/svg",width:"48",height:"48",fill:"none","aria-hidden":"true","data-testid":"episodes-seek-icon",role:"img",...i})),b(t,o)}function If(t,e){let i=v(e,"reversed",3,!1),o=m(()=>i()?"transform: scaleX(-1);":void 0);Tf(t,{get style(){return r(o)}})}var J2=M('<span class="hot-key-helpers-text svelte-1ad3n06"> </span>'),ey=M('<div class="svelte-1ad3n06"><!> <!> <!> <!> <!> <!> <!> <!> <!> <!></div> <!>',1),ty=M("<div><!></div>"),iy={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;
259
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"],
260
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"],
261
266
  .hot-key-helpers-container.svelte-1ad3n06 svg[data-testid="play-icon"],
@@ -270,21 +275,21 @@ Try switching the\xA0quality to\xA0Auto.`},Lg=C$;var gs=new Map;gs.set(Vg.EN,Lg)
270
275
  @keyframes svelte-1ad3n06-fadeOut {
271
276
  0% {opacity:1;}
272
277
  100% {opacity:0;}
273
- }`};function Yu(t,e){if(new.target)return T({component:Yu,...t});I(e,!0),oe(t,Jy);let[i,o]=Je(),n=()=>C(s(),"$data",i),s=u(e,"data",7),l=Be().ui.t,c=_(()=>!n()),p=_(()=>n()?.type==="BACKWARD_SEEK"),f=_(()=>n()?.type==="FORWARD_SEEK"),v=_(()=>n()?.type),m=_(()=>n()?.t?l(n().t.key,{value:n().t.value||""}):n()?.text);var g=Xy(),b=y(g);{var w=V=>{var F=Zy(),M=ye(F),H=y(M);{var S=G=>{let Ve=_(()=>r(v)==="FORWARD_SEEK");Uu(G,{get reversed(){return r(Ve)}})};O(H,G=>{["BACKWARD_SEEK","FORWARD_SEEK"].includes(r(v))&&G(S)})}var q=N(H,2);{var W=G=>{Hs(G,{})};O(q,G=>{r(v)==="PAUSE"&&G(W)})}var U=N(q,2);{var ie=G=>{ts(G,{})};O(U,G=>{r(v)==="PLAY"&&G(ie)})}var se=N(U,2);{var fe=G=>{hl(G,{})};O(se,G=>{r(v)==="REPLAY"&&G(fe)})}var J=N(se,2);{var xe=G=>{hc(G,{isOff:!0})};O(J,G=>{r(v)==="SUBTITLES_OFF"&&G(xe)})}var Ce=N(J,2);{var X=G=>{hc(G,{})};O(Ce,G=>{r(v)==="SUBTITLES_ON"&&G(X)})}var me=N(Ce,2);{var he=G=>{let Ve=_(()=>r(v)==="RATE_UP");Ku(G,{get reversed(){return r(Ve)}})};O(me,G=>{["RATE_DOWN","RATE_UP"].includes(r(v))&&G(he)})}var te=N(me,2);{var le=G=>{let Ve=_(()=>r(v)==="EPISODE_NEXT");Gu(G,{get reversed(){return r(Ve)}})};O(te,G=>{["EPISODE_PREV","EPISODE_NEXT"].includes(r(v))&&G(le)})}var z=N(te,2);{var je=G=>{_s(G,{volume:0})};O(z,G=>{r(v)==="MUTE"&&G(je)})}var Re=N(z,2);{var Y=G=>{_s(G,{volume:1})};O(Re,G=>{r(v)==="VOLUME"&&G(Y)})}$(M);var ce=N(M,2);{var Ge=G=>{var Ve=jy(),ue=y(Ve,!0);$(Ve),L(()=>Se(ue,r(m))),x(G,Ve)};O(ce,G=>{r(m)&&G(Ge)})}x(V,F)};O(b,V=>{!r(c)&&r(v)&&V(w)})}$(g),L(()=>{ne(g,"hidden",r(c)),ne(g,"hot-key-helpers-container--left",r(p)),ne(g,"hot-key-helpers-container--right",r(f))}),x(t,g);var k=E({get data(){return s()},set data(V){s(V),d()},$set:A,$on:(V,F)=>P(e,V,F)});return o(),k}var e2=Ie('<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 ju(t,e){if(new.target)return T({component:ju,...t});let i=Oe(e,["children","$$slots","$$events","$$legacy"]);I(e,!1);var o=e2();let n;var s=y(o);return De(s,e,"default",{},null),Te(),$(o),L(()=>n=Le(o,n,{xmlns:"http://www.w3.org/2000/svg",width:"12",height:"7",fill:"none","aria-hidden":"true",color:"#fff",role:"img",...i},void 0,!0)),x(t,o),E({$set:A,$on:(a,l)=>P(e,a,l)})}var t2=Ie('<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 Zu(t,e){if(new.target)return T({component:Zu,...t});let i=Oe(e,["children","$$slots","$$events","$$legacy"]);I(e,!1);var o=t2();let n;var s=y(o);return De(s,e,"default",{},null),Te(),$(o),L(()=>n=Le(o,n,{xmlns:"http://www.w3.org/2000/svg",width:"12",height:"16",fill:"none","aria-hidden":"true",color:"#fff",role:"img",...i},void 0,!0)),x(t,o),E({$set:A,$on:(a,l)=>P(e,a,l)})}function xs(t,e){if(new.target)return T({component:xs,...t});I(e,!0);let i=u(e,"direction",7,"left"),o=u(e,"useBtnColor",7,!1),n=_(()=>["up","down"].includes(i())),s=_(()=>["right","down"].includes(i())),a=_(()=>(()=>{let v="";return r(s)&&(v+="transform: rotate(180deg);"),o()&&(v+="color: var(--btn-color, #fff);"),v.length?v:void 0})());var l=Ye(),c=ye(l);{var p=v=>{let m=_(()=>r(s)?"chevron-icon--down":"chevron-icon--up");ju(v,{get style(){return r(a)},get"data-testid"(){return r(m)}})},f=v=>{let m=_(()=>r(s)?"chevron-icon--right":"chevron-icon--left");Zu(v,{get style(){return r(a)},get"data-testid"(){return r(m)}})};O(c,v=>{r(n)?v(p):v(f,!1)})}return x(t,l),E({get direction(){return i()},set direction(v="left"){i(v),d()},get useBtnColor(){return o()},set useBtnColor(v=!1){o(v),d()},$set:A,$on:(v,m)=>P(e,v,m)})}var i2=(t,e,i,o,n,s)=>{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":s();break}},o2=(t,e,i)=>{e.has(t.code)&&(t.preventDefault(),t.stopPropagation(),i())},n2=D('<div class="immersive-controls svelte-1yzc86r" 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>'),r2={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 Cl(t,e){if(new.target)return T({component:Cl,...t});I(e,!0),oe(t,r2);let i=u(e,"isShifted",7,!1),o=Be(),n=new Set(["ArrowUp","ArrowDown","ArrowLeft","ArrowRight"]),s=()=>{o.actions.internal.startCameraManualRotation(0,1)},a=()=>{o.actions.internal.startCameraManualRotation(0,-1)},l=()=>{o.actions.internal.startCameraManualRotation(1,0)},c=()=>{o.actions.internal.startCameraManualRotation(-1,0)},p=()=>(o.actions.internal.stopCameraManualRotation(),null),f=j("aria_label_spherical_control");var v=n2();v.__keydown=[i2,n,s,a,c,l],v.__keyup=[o2,n,p],pe(v,"aria-label",f);var m=y(v),g=y(m),b=y(g);b.__mousedown=s,b.__mouseup=p;var w=y(b);xs(w,{direction:"up",useBtnColor:!0}),$(b);var k=N(b,2);k.__mousedown=l,k.__mouseup=p;var V=y(k);xs(V,{direction:"up",useBtnColor:!0}),$(k),$(g);var F=N(g,2),M=y(F);M.__mousedown=c,M.__mouseup=p;var H=y(M);xs(H,{direction:"up",useBtnColor:!0}),$(M);var S=N(M,2);S.__mousedown=a,S.__mouseup=p;var q=y(S);return xs(q,{direction:"up",useBtnColor:!0}),$(S),$(F),$(m),$(v),L(()=>ne(v,"m-shifted",i())),Dt("mouseleave",b,p),Dt("mouseleave",k,p),Dt("mouseleave",M,p),Dt("mouseleave",S,p),x(t,v),E({get isShifted(){return i()},set isShifted(W=!1){i(W),d()},$set:A,$on:(W,U)=>P(e,W,U)})}pt(["keydown","keyup","mousedown","mouseup"]);import{ValueSubject as Lh,Subscription as s2,filterChanged as a2,filter as l2}from"@vkontakte/videoplayer-shared/evergreen";var Mh=(t=1e3)=>{let e=null,i=()=>{e&&(clearTimeout(e),e=null)};return{add:o=>{i(),e=setTimeout(o,t)},clear:i}};var Xu=class{constructor(){this.flickeringTimeout=Mh(1e3);this.subscriptions=new s2;this.isAuto=!1;this.isLive=!1;this.captions$=new Lh([]);this.captionsPrepared$=new Lh([])}subscribe(){return this.subscriptions.add(this.captions$.pipe(l2(()=>this.isEnabled()),a2()).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:s,value:a},l)=>(o&&!l||(s==="timestamp"?n.push({timeAppeared:Number(a),value:""}):n.length===0?n.push({value:String(a)}):n[n.length-1].value=String(a)),n),[])),this.captionsPrepared$.next(i)}};var c2=D('<span class="caption-line svelte-c2x749"><span class="caption-segment svelte-c2x749"> </span></span>'),d2=D('<span class="caption-line svelte-c2x749"><span class="caption-segment svelte-c2x749"></span></span>'),u2=D('<span class="caption-line svelte-c2x749"><span class="caption-segment svelte-c2x749"> </span></span>'),p2=D('<div class="subtitles-caption svelte-c2x749"><span class="caption svelte-c2x749"><!></span></div>'),f2=D('<div class="subtitles-container svelte-c2x749"><!></div>'),m2={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;
274
- /*font-weight: 500;*/color:var(--white);white-space:pre-wrap;}`};function Sl(t,e){if(new.target)return T({component:Sl,...t});I(e,!0),oe(t,m2);let[i,o]=Je(),n=()=>C(w,"$currentSubtitle$",i),s=()=>C(V,"$isLive$",i),a=()=>C(F,"$isFullscreen",i),l=()=>C(k,"$isAutoSubtitleCaptionVisible$",i),c=u(e,"shifted",7),p=u(e,"captions",7),f=u(e,"position",7),v=u(e,"playerSize",7),m=u(e,"isMobile",7,!1),g=Be(),b=Qt(),w=g.state.currentSubtitle$,k=g.state.isAutoSubtitleCaptionVisible$,V=g.state.isLive$,F=g.ui.isFullscreen,M=_(()=>!!n().isAuto),H=_(()=>!!s()),S=_(()=>v().width*.02),q=_(()=>m()&&!a()||r(S)<=b.minSubtitlesFontSize?b.minSubtitlesFontSize:r(S)),W=de(null);ot(()=>{r(W)?.setIsAuto(r(M)),r(W)?.setIsLive(r(H)),r(W)?.setCaptions(p())});let U=de(ke([[]]));Ut(()=>{K(W,ke(new Xu().subscribe()));let Ce=r(W).captionsPrepared$.subscribe(X=>{K(U,ke(X))});return()=>{r(W)?.destroy(),Ce.unsubscribe()}}),Ut(()=>{if(r(M)){let Ce=window.setTimeout(()=>{k.set(!1)},b.autoSubtitlesTimeout);return()=>{window.clearTimeout(Ce)}}else k.set(!1)});let ie=_(()=>v().width<400?10:v().width<550?14:24);var se=f2(),fe=y(se);{var J=Ce=>{var X=p2(),me=y(X),he=y(me);{var te=z=>{var je=c2(),Re=y(je),Y=y(Re,!0);$(Re),$(je),L(ce=>{pe(Re,"style",`font-size: ${r(q)??""}px`),Se(Y,ce)},[()=>j("subtitles_auto_caption")]),x(z,je)},le=z=>{var je=Ye(),Re=ye(je);{var Y=Ge=>{var G=Ye(),Ve=ye(G);vi(Ve,17,()=>r(U),Fi,(ue,We)=>{var rt=d2(),Ue=y(rt);vi(Ue,21,()=>r(We),Fi,(we,Me)=>{let st=()=>r(Me).value,ct=()=>r(Me).timeAppeared;var _e=Ye(),et=ye(_e);{var yt=ee=>{var tt=er();L(()=>Se(tt,st())),x(ee,tt)};O(et,ee=>{(!ct()||ct()<=f())&&ee(yt)})}x(we,_e)}),$(Ue),$(rt),L(()=>pe(Ue,"style",`font-size: ${r(q)??""}px`)),x(ue,rt)}),x(Ge,G)},ce=Ge=>{var G=Ye(),Ve=ye(G);vi(Ve,17,p,Fi,(ue,We)=>{let rt=()=>r(We).value;var Ue=u2(),we=y(Ue),Me=y(we,!0);$(we),$(Ue),L(()=>{pe(we,"style",`font-size: ${r(q)??""}px`),Se(Me,rt())}),x(ue,Ue)}),x(Ge,G)};O(Re,Ge=>{r(M)&&r(U)?.length?Ge(Y):Ge(ce,!1)},!0)}x(z,je)};O(he,z=>{r(M)&&l()?z(te):z(le,!1)})}$(me),$(X),L(()=>{pe(X,"style",`--subtitles-caption-margin: ${r(ie)??""}%`),ne(X,"mobile",m())}),x(Ce,X)};O(fe,Ce=>{(p().length||r(U)?.length)&&Ce(J)})}$(se),L(()=>{ne(se,"shifted",c()),ne(se,"auto",r(M)&&!r(H)&&!l())}),x(t,se);var xe=E({get shifted(){return c()},set shifted(Ce){c(Ce),d()},get captions(){return p()},set captions(Ce){p(Ce),d()},get position(){return f()},set position(Ce){f(Ce),d()},get playerSize(){return v()},set playerSize(Ce){v(Ce),d()},get isMobile(){return m()},set isMobile(Ce=!1){m(Ce),d()},$set:A,$on:(Ce,X)=>P(e,Ce,X)});return o(),xe}var v2=D('<div class="text svelte-raurnb"> </div>'),g2=D('<div class="wrapper svelte-raurnb"><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>'),h2={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 kl(t,e){if(new.target)return T({component:kl,...t});I(e,!0),oe(t,h2);let i=u(e,"thumbUrl",7),o=u(e,"chromecastDeviceName",7),n=Qt();var s=g2(),a=N(y(s),2);{var l=c=>{var p=v2(),f=y(p);$(p),L(()=>Se(f,`\u0412\u0438\u0434\u0435\u043E \u0432\u043E\u0441\u043F\u0440\u043E\u0438\u0437\u0432\u043E\u0434\u0438\u0442\u0441\u044F \u043D\u0430 ${o()??""}`)),x(c,p)};O(a,c=>{o()&&c(l)})}return $(s),L(()=>{pe(s,"style",`background-image: linear-gradient(0deg, rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)), url('${i()||""}')`),ne(s,"bgCover",n.features.previewNoEmptySpace)}),x(t,s),E({get thumbUrl(){return i()},set thumbUrl(c){i(c),d()},get chromecastDeviceName(){return o()},set chromecastDeviceName(c){o(c),d()},$set:A,$on:(c,p)=>P(e,c,p)})}var _2=Ie('<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 Ju(t,e){if(new.target)return T({component:Ju,...t});let i=Oe(e,["children","$$slots","$$events","$$legacy"]);I(e,!1);var o=_2();let n;var s=y(o);return De(s,e,"default",{},null),Te(),$(o),L(()=>n=Le(o,n,{xmlns:"http://www.w3.org/2000/svg",width:"200",height:"200","aria-hidden":"true","data-testid":"error-icon",viewBox:"460 190 130 90",role:"img",...i},void 0,!0)),x(t,o),E({$set:A,$on:(a,l)=>P(e,a,l)})}var $2=D('<div class="container svelte-13zpvm8"><!></div>'),b2={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 Tl(t,e){if(new.target)return T({component:Tl,...t});I(e,!1),oe(t,b2);var i=$2(),o=y(i);return Ju(o,{}),$(i),x(t,i),E({$set:A,$on:(n,s)=>P(e,n,s)})}var y2=D('<div class="container svelte-1xnh9dd"><div class="playButton svelte-1xnh9dd" tabindex="0" role="button"><div class="playButtonBackground svelte-1xnh9dd"></div> <!></div></div>'),x2={hash:"svelte-1xnh9dd",code:".container.svelte-1xnh9dd {position:absolute;top:0;bottom:0;left:0;right:0;background-position:center;background-size:contain;background-repeat:no-repeat;cursor:pointer;transition:opacity 0.2s, visibility 0.2s;will-change:opacity;}.container.hidden.svelte-1xnh9dd {opacity:0;visibility:hidden;}.container.bgCover.svelte-1xnh9dd {background-size:cover;}.playButton.svelte-1xnh9dd {position:absolute;top:0;bottom:0;left:0;right:0;margin:auto;width:var(--big-play-size);height:var(--big-play-size);display:flex;align-items:center;justify-content:center;}.playButtonBackground.svelte-1xnh9dd {position:absolute;top:0;bottom:0;left:0;right:0;border-radius:var(--big-play-radius);background-color:var(--big-play-bg-color);transition:background 0.2s, transform 0.2s;transition-timing-function:ease-out;will-change:background, transform;}.container.svelte-1xnh9dd:hover .playButtonBackground:where(.svelte-1xnh9dd) {background-color:var(--big-play-hover-bg-color);transform:scale(1.15);}.playButton.svelte-1xnh9dd svg {transform:scale(2);}"};function Il(t,e){if(new.target)return T({component:Il,...t});I(e,!0),oe(t,x2);let i=u(e,"thumbUrl",7),o=u(e,"hidden",7),n=u(e,"startVideo",7),s=Be(),a=Qt(),l=s.ui.startedByKeyboard$,c=j("tooltip_play"),p=b=>{let w=b.code;["Enter","Space"].includes(w)&&(b.stopPropagation(),b.preventDefault(),l.set(!0),n()())},f=b=>{b.stopPropagation(),n()()};var v=y2();v.__click=f;var m=y(v);m.__keydown=p,pe(m,"aria-label",c);var g=N(y(m),2);return ts(g,{}),$(m),$(v),L(()=>{pe(v,"style",`background-color: #222; background-image: url('${i()||""}')`),ne(v,"hidden",o()),ne(v,"bgCover",a.features.previewNoEmptySpace)}),x(t,v),E({handlePressKey:p,handleClick:f,get thumbUrl(){return i()},set thumbUrl(b){i(b),d()},get hidden(){return o()},set hidden(b){o(b),d()},get startVideo(){return n()},set startVideo(b){n(b),d()},$set:A,$on:(b,w)=>P(e,b,w)})}pt(["click","keydown"]);var w2=D('<div class="title svelte-1bcvcf2"> </div>'),C2={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(
278
+ }`};function Ef(t,e){F(e,!0),q(t,iy);let[i,o]=Oe(),n=()=>$(e.data,"$data",i),s=ye().ui.t,d=m(()=>!n()),l=m(()=>n()?.type==="BACKWARD_SEEK"),c=m(()=>n()?.type==="FORWARD_SEEK"),u=m(()=>n()?.type),_=m(()=>n()?.t?s(n().t.key,{value:n().t.value||""}):n()?.text);var f=ty();let y;var x=h(f);{var w=S=>{var I=ey(),L=pe(I),A=h(L);{var P=ue=>{let R=m(()=>r(u)==="FORWARD_SEEK");xf(ue,{get reversed(){return r(R)}})};V(A,ue=>{["BACKWARD_SEEK","FORWARD_SEEK"].includes(r(u))&&ue(P)})}var T=E(A,2);{var D=ue=>{Qa(ue,{})};V(T,ue=>{r(u)==="PAUSE"&&ue(D)})}var Q=E(T,2);{var G=ue=>{Zr(ue,{})};V(Q,ue=>{r(u)==="PLAY"&&ue(G)})}var ee=E(Q,2);{var ie=ue=>{ql(ue,{})};V(ee,ue=>{r(u)==="REPLAY"&&ue(ie)})}var oe=E(ee,2);{var te=ue=>{Pc(ue,{isOff:!0})};V(oe,ue=>{r(u)==="SUBTITLES_OFF"&&ue(te)})}var ge=E(oe,2);{var X=ue=>{Pc(ue,{})};V(ge,ue=>{r(u)==="SUBTITLES_ON"&&ue(X)})}var Le=E(ge,2);{var Ae=ue=>{let R=m(()=>r(u)==="RATE_UP");kf(ue,{get reversed(){return r(R)}})};V(Le,ue=>{["RATE_DOWN","RATE_UP"].includes(r(u))&&ue(Ae)})}var se=E(Le,2);{var He=ue=>{let R=m(()=>r(u)==="EPISODE_NEXT");If(ue,{get reversed(){return r(R)}})};V(se,ue=>{["EPISODE_PREV","EPISODE_NEXT"].includes(r(u))&&ue(He)})}var j=E(se,2);{var B=ue=>{pa(ue,{volume:0})};V(j,ue=>{r(u)==="MUTE"&&ue(B)})}var Re=E(j,2);{var _e=ue=>{pa(ue,{volume:1})};V(Re,ue=>{r(u)==="VOLUME"&&ue(_e)})}g(L);var Ce=E(L,2);{var Be=ue=>{var R=J2(),be=h(R,!0);g(R),C(()=>de(be,r(_))),b(ue,R)};V(Ce,ue=>{r(_)&&ue(Be)})}b(S,I)};V(x,S=>{!r(d)&&r(u)&&S(w)})}g(f),C(S=>y=Z(f,1,"hot-key-helpers-container svelte-1ad3n06",null,y,S),[()=>({hidden:r(d),"hot-key-helpers-container--left":r(l),"hot-key-helpers-container--right":r(c)})]),b(t,f),U(),o()}var oy=me('<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 Af(t,e){let i=xe(e,["$$slots","$$events","$$legacy","children"]);var o=oy();let n;var a=h(o);ce(a,()=>e.children??J),fe(),g(o),C(()=>n=he(o,n,{xmlns:"http://www.w3.org/2000/svg",width:"12",height:"7",fill:"none","aria-hidden":"true",color:"#fff",role:"img",...i})),b(t,o)}var ny=me('<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 Pf(t,e){let i=xe(e,["$$slots","$$events","$$legacy","children"]);var o=ny();let n;var a=h(o);ce(a,()=>e.children??J),fe(),g(o),C(()=>n=he(o,n,{xmlns:"http://www.w3.org/2000/svg",width:"12",height:"16",fill:"none","aria-hidden":"true",color:"#fff",role:"img",...i})),b(t,o)}function ma(t,e){F(e,!0);let i=v(e,"direction",3,"left"),o=v(e,"useBtnColor",3,!1),n=m(()=>["up","down"].includes(i())),a=m(()=>["right","down"].includes(i())),s=m(()=>(()=>{let _="";return r(a)&&(_+="transform: rotate(180deg);"),o()&&(_+="color: var(--btn-color, #fff);"),_.length?_:void 0})());var d=ze(),l=pe(d);{var c=_=>{let f=m(()=>r(a)?"chevron-icon--down":"chevron-icon--up");Af(_,{get style(){return r(s)},get"data-testid"(){return r(f)}})},u=_=>{let f=m(()=>r(a)?"chevron-icon--right":"chevron-icon--left");Pf(_,{get style(){return r(s)},get"data-testid"(){return r(f)}})};V(l,_=>{r(n)?_(c):_(u,!1)})}b(t,d),U()}var ry=(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}},ay=(t,e,i)=>{e.has(t.code)&&(t.preventDefault(),t.stopPropagation(),i())},sy=M('<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>'),ly={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 Zl(t,e){F(e,!0),q(t,ly);let i=v(e,"isShifted",3,!1),o=ye(),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)},c=()=>(o.actions.internal.stopCameraManualRotation(),null),u=H("aria_label_spherical_control");var _=sy();let f;_.__keydown=[ry,n,a,s,l,d],_.__keyup=[ay,n,c],Me(_,"aria-label",u);var y=h(_),x=h(y),w=h(x);w.__mousedown=a,w.__mouseup=c;var S=h(w);ma(S,{direction:"up",useBtnColor:!0}),g(w);var I=E(w,2);I.__mousedown=d,I.__mouseup=c;var L=h(I);ma(L,{direction:"up",useBtnColor:!0}),g(I),g(x);var A=E(x,2),P=h(A);P.__mousedown=l,P.__mouseup=c;var T=h(P);ma(T,{direction:"up",useBtnColor:!0}),g(P);var D=E(P,2);D.__mousedown=s,D.__mouseup=c;var Q=h(D);ma(Q,{direction:"up",useBtnColor:!0}),g(D),g(A),g(y),g(_),C(G=>f=Z(_,1,"immersive-controls svelte-1yzc86r",null,f,G),[()=>({"m-shifted":i()})]),St("mouseleave",w,c),St("mouseleave",I,c),St("mouseleave",P,c),St("mouseleave",D,c),b(t,_),U()}it(["keydown","keyup","mousedown","mouseup"]);import{ValueSubject as wh,Subscription as dy,filterChanged as cy,filter as uy}from"@vkontakte/videoplayer-shared/evergreen";var xh=(t=1e3)=>{let e=null,i=()=>{e&&(clearTimeout(e),e=null)};return{add:o=>{i(),e=setTimeout(o,t)},clear:i}};var Mc=class{constructor(){this.flickeringTimeout=xh(1e3);this.subscriptions=new dy;this.isAuto=!1;this.isLive=!1;this.captions$=new wh([]);this.captionsPrepared$=new wh([])}subscribe(){return this.subscriptions.add(this.captions$.pipe(uy(()=>this.isEnabled()),cy()).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 py=M('<span class="caption-line svelte-c2x749"><span class="caption-segment svelte-c2x749"> </span></span>'),fy=M('<span class="caption-line svelte-c2x749"><span class="caption-segment svelte-c2x749"></span></span>'),my=M('<span class="caption-line svelte-c2x749"><span class="caption-segment svelte-c2x749"> </span></span>'),vy=M('<div><span class="caption svelte-c2x749"><!></span></div>'),gy=M("<div><!></div>"),hy={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 Xl(t,e){F(e,!0),q(t,hy);let[i,o]=Oe(),n=()=>$(_,"$currentSubtitle$",i),a=()=>$(y,"$isLive$",i),s=()=>$(x,"$isFullscreen",i),d=()=>$(f,"$isAutoSubtitleCaptionVisible$",i),l=v(e,"isMobile",3,!1),c=ye(),u=Vt(),_=c.state.currentSubtitle$,f=c.state.isAutoSubtitleCaptionVisible$,y=c.state.isLive$,x=c.ui.isFullscreen,w=m(()=>!!n().isAuto),S=m(()=>!!a()),I=m(()=>e.playerSize.width*.02),L=m(()=>l()&&!s()||r(I)<=u.minSubtitlesFontSize?u.minSubtitlesFontSize:r(I)),A=Y(null);Qe(()=>{r(A)?.setIsAuto(r(w)),r(A)?.setIsLive(r(S)),r(A)?.setCaptions(e.captions)});let P=Y(le([[]]));It(()=>{N(A,le(new Mc().subscribe()));let ie=r(A).captionsPrepared$.subscribe(oe=>{N(P,le(oe))});return()=>{r(A)?.destroy(),ie.unsubscribe()}}),It(()=>{if(r(w)){let ie=window.setTimeout(()=>{f.set(!1)},u.autoSubtitlesTimeout);return()=>{window.clearTimeout(ie)}}else f.set(!1)});let T=m(()=>e.playerSize.width<400?10:e.playerSize.width<550?14:24);var D=gy();let Q;var G=h(D);{var ee=ie=>{var oe=vy();let te;var ge=h(oe),X=h(ge);{var Le=se=>{var He=py(),j=h(He),B=h(j,!0);g(j),g(He),C(Re=>{tt(j,`font-size: ${r(L)??""}px`),de(B,Re)},[()=>H("subtitles_auto_caption")]),b(se,He)},Ae=(se,He)=>{{var j=Re=>{var _e=ze(),Ce=pe(_e);fi(Ce,17,()=>r(P),sl,(Be,ue)=>{var R=fy(),be=h(R);fi(be,21,()=>r(ue),({value:Ie,timeAppeared:je})=>je,(Ie,je)=>{let qe=()=>r(je).value,ke=()=>r(je).timeAppeared;var Pe=ze(),Ve=pe(Pe);{var ct=gt=>{var ot=qn();C(()=>de(ot,qe())),b(gt,ot)};V(Ve,gt=>{(!ke()||ke()<=e.position)&&gt(ct)})}b(Ie,Pe)}),g(be),g(R),C(()=>tt(be,`font-size: ${r(L)??""}px`)),b(Be,R)}),b(Re,_e)},B=Re=>{var _e=ze(),Ce=pe(_e);fi(Ce,17,()=>e.captions,({value:Be})=>Be,(Be,ue)=>{let R=()=>r(ue).value;var be=my(),Ie=h(be),je=h(Ie,!0);g(Ie),g(be),C(()=>{tt(Ie,`font-size: ${r(L)??""}px`),de(je,R())}),b(Be,be)}),b(Re,_e)};V(se,Re=>{r(w)&&r(P)?.length?Re(j):Re(B,!1)},He)}};V(X,se=>{r(w)&&d()?se(Le):se(Ae,!1)})}g(ge),g(oe),C(se=>{te=Z(oe,1,"subtitles-caption svelte-c2x749",null,te,se),tt(oe,`--subtitles-caption-margin: ${r(T)??""}%`)},[()=>({mobile:l()})]),b(ie,oe)};V(G,ie=>{(e.captions.length||r(P)?.length)&&ie(ee)})}g(D),C(ie=>Q=Z(D,1,"subtitles-container svelte-c2x749",null,Q,ie),[()=>({shifted:e.shifted,auto:r(w)&&!r(S)&&!d()})]),b(t,D),U(),o()}var _y=M('<div class="text svelte-raurnb"> </div>'),by=M('<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>'),$y={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 Jl(t,e){F(e,!0),q(t,$y);let i=Vt();var o=by();let n;var a=E(h(o),2);{var s=d=>{var l=_y(),c=h(l);g(l),C(()=>de(c,`\u0412\u0438\u0434\u0435\u043E \u0432\u043E\u0441\u043F\u0440\u043E\u0438\u0437\u0432\u043E\u0434\u0438\u0442\u0441\u044F \u043D\u0430 ${e.chromecastDeviceName??""}`)),b(d,l)};V(a,d=>{e.chromecastDeviceName&&d(s)})}g(o),C(d=>{n=Z(o,1,"wrapper svelte-raurnb",null,n,d),tt(o,`background-image: linear-gradient(0deg, rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)), url('${e.thumbUrl||""}')`)},[()=>({bgCover:i.features.previewNoEmptySpace})]),b(t,o),U()}var yy=me('<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 Mf(t,e){let i=xe(e,["$$slots","$$events","$$legacy","children"]);var o=yy();let n;var a=h(o);ce(a,()=>e.children??J),fe(),g(o),C(()=>n=he(o,n,{xmlns:"http://www.w3.org/2000/svg",width:"200",height:"200","aria-hidden":"true","data-testid":"error-icon",viewBox:"460 190 130 90",role:"img",...i})),b(t,o)}var xy=M('<div class="container svelte-13zpvm8"><!></div>'),wy={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 ed(t){q(t,wy);var e=xy(),i=h(e);Mf(i,{}),g(e),b(t,e)}var Sy=M('<div><div class="playButton svelte-1xnh9dd" tabindex="0" role="button"><div class="playButtonBackground svelte-1xnh9dd"></div> <!></div></div>'),Cy={hash:"svelte-1xnh9dd",code:".container.svelte-1xnh9dd {position:absolute;top:0;bottom:0;left:0;right:0;background-position:center;background-size:contain;background-repeat:no-repeat;cursor:pointer;transition:opacity 0.2s, visibility 0.2s;will-change:opacity;}.container.hidden.svelte-1xnh9dd {opacity:0;visibility:hidden;}.container.bgCover.svelte-1xnh9dd {background-size:cover;}.playButton.svelte-1xnh9dd {position:absolute;top:0;bottom:0;left:0;right:0;margin:auto;width:var(--big-play-size);height:var(--big-play-size);display:flex;align-items:center;justify-content:center;}.playButtonBackground.svelte-1xnh9dd {position:absolute;top:0;bottom:0;left:0;right:0;border-radius:var(--big-play-radius);background-color:var(--big-play-bg-color);transition:background 0.2s, transform 0.2s;transition-timing-function:ease-out;will-change:background, transform;}.container.svelte-1xnh9dd:hover .playButtonBackground:where(.svelte-1xnh9dd) {background-color:var(--big-play-hover-bg-color);transform:scale(1.15);}.playButton.svelte-1xnh9dd svg {transform:scale(2);}"};function td(t,e){F(e,!0),q(t,Cy);let i=ye(),o=Vt(),n=i.ui.startedByKeyboard$,a=H("tooltip_play"),s=f=>{let y=f.code;["Enter","Space"].includes(y)&&(f.stopPropagation(),f.preventDefault(),n.set(!0),e.startVideo())},d=f=>{f.stopPropagation(),e.startVideo()};var l=Sy();let c;l.__click=d;var u=h(l);u.__keydown=s,Me(u,"aria-label",a);var _=E(h(u),2);return Zr(_,{}),g(u),g(l),C(f=>{c=Z(l,1,"container svelte-1xnh9dd",null,c,f),tt(l,`background-color: #222; background-image: url('${e.thumbUrl||""}')`)},[()=>({hidden:e.hidden,bgCover:o.features.previewNoEmptySpace})]),b(t,l),U({handlePressKey:s,handleClick:d})}it(["click","keydown"]);var ky=M("<div> </div>"),Ty={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(
275
280
  0deg,
276
281
  rgba(0, 0, 0, 0) 0%,
277
282
  rgba(0, 0, 0, 0.02) 19%,
278
283
  rgba(0, 0, 0, 0.10) 34%,
279
284
  rgba(0, 0, 0, 0.40) 60%,
280
285
  rgba(0, 0, 0, 0.60) 100%
281
- );}.hidden.svelte-1bcvcf2 {visibility:hidden;transform:translateY(calc(var(--controls-gradient-height) * -1));opacity:0;}`};function ep(t,e){if(new.target)return T({component:ep,...t});I(e,!0),oe(t,C2);let i=u(e,"title",7,""),o=u(e,"isHidden",7,!1);var n=w2(),s=y(n,!0);return $(n),L(()=>{ne(n,"hidden",o()),Se(s,i())}),x(t,n),E({get title(){return i()},set title(a=""){i(a),d()},get isHidden(){return o()},set isHidden(a=!1){o(a),d()},$set:A,$on:(a,l)=>P(e,a,l)})}var S2=D('<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),k2=D('<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),T2=D('<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),I2=D('<div class="timer__cell cell svelte-1qpxtfg"><span class="cell__value svelte-1qpxtfg"> </span> <span class="cell__unit svelte-1qpxtfg"> </span></div>'),E2=D('<div class="timer__container svelte-1qpxtfg"><!> <!> <!> <!></div>'),P2={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 tp(t,e){if(new.target)return T({component:tp,...t});I(e,!0),oe(t,P2);let i=u(e,"startTime",7),o=u(e,"onTimerOver",7),n=de(""),s=de(""),a=de(""),l=de(""),c,p=S=>String(S).padStart(2,"0"),f=S=>{let q=Math.floor(S/86400);q&&(S-=q*86400,K(n,ke(p(q))));let W=Math.floor(S/3600);K(s,ke(p(W)));let U=Math.floor(S/60)%60;K(a,ke(p(U)));let ie=S%60;K(l,ke(p(ie)))},v=()=>{let S=Math.floor(Date.now()/1e3),q=i()-S;f(q),q>=1?c=requestAnimationFrame(v):o()()};Ut(()=>{c=requestAnimationFrame(v)}),tr(()=>{cancelAnimationFrame(c)});var m=E2(),g=y(m);{var b=S=>{var q=S2(),W=ye(q),U=y(W),ie=y(U,!0);$(U);var se=N(U,2),fe=y(se,!0);$(se),$(W);var J=N(W,2),xe=y(J,!0);$(J),L((Ce,X)=>{Se(ie,r(n)),Se(fe,Ce),Se(xe,X)},[()=>j("waiting_live_day_value"),()=>j("waiting_live_colon")]),x(S,q)};O(g,S=>{r(n)&&S(b)})}var w=N(g,2);{var k=S=>{var q=k2(),W=ye(q),U=y(W),ie=y(U,!0);$(U);var se=N(U,2),fe=y(se,!0);$(se),$(W);var J=N(W,2),xe=y(J,!0);$(J),L((Ce,X)=>{Se(ie,r(s)),Se(fe,Ce),Se(xe,X)},[()=>j("waiting_live_hour_value"),()=>j("waiting_live_colon")]),x(S,q)};O(w,S=>{r(s)&&S(k)})}var V=N(w,2);{var F=S=>{var q=T2(),W=ye(q),U=y(W),ie=y(U,!0);$(U);var se=N(U,2),fe=y(se,!0);$(se),$(W);var J=N(W,2),xe=y(J,!0);$(J),L((Ce,X)=>{Se(ie,r(a)),Se(fe,Ce),Se(xe,X)},[()=>j("waiting_live_minute_value"),()=>j("waiting_live_colon")]),x(S,q)};O(V,S=>{r(a)&&S(F)})}var M=N(V,2);{var H=S=>{var q=I2(),W=y(q),U=y(W,!0);$(W);var ie=N(W,2),se=y(ie,!0);$(ie),$(q),L(fe=>{Se(U,r(l)),Se(se,fe)},[()=>j("waiting_live_second_value")]),x(S,q)};O(M,S=>{r(l)&&S(H)})}return $(m),x(t,m),E({get startTime(){return i()},set startTime(S){i(S),d()},get onTimerOver(){return o()},set onTimerOver(S){o(S),d()},$set:A,$on:(S,q)=>P(e,S,q)})}var A2=Ie('<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 ip(t,e){if(new.target)return T({component:ip,...t});let i=Oe(e,["children","$$slots","$$events","$$legacy"]);I(e,!1);var o=A2();let n;var s=y(o);return De(s,e,"default",{},null),Te(4),$(o),L(()=>n=Le(o,n,{xmlns:"http://www.w3.org/2000/svg","aria-hidden":"true","data-testid":"podcast-icon",style:"shape-rendering:geometricPrecision;text-rendering:geometricPrecision;image-rendering:optimizeQuality;fill-rule:evenodd;clip-rule:evenodd;width:100%;height:100%",viewBox:"0 0 400 400",role:"img",...i},void 0,!0)),x(t,o),E({$set:A,$on:(a,l)=>P(e,a,l)})}var M2=D('<div class="upcoming svelte-15pewff"><div class="upcoming-icon svelte-15pewff"><!></div> <span class="upcoming__title svelte-15pewff"> </span></div>'),L2=D('<div class="waiting-timer timer svelte-15pewff"><span class="timer__title svelte-15pewff"> </span> <!></div>'),R2=D('<div class="waiting-container svelte-15pewff"><!></div>'),V2={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 El(t,e){if(new.target)return T({component:El,...t});I(e,!0),oe(t,V2);let i=u(e,"thumbUrl",7),o=u(e,"startTime",7),n=de(!1);ot(()=>{K(n,ke(o()===void 0||o()<Math.floor(Date.now()/1e3)))});var s=R2(),a=y(s);{var l=p=>{var f=M2(),v=y(f),m=y(v);ip(m,{}),$(v);var g=N(v,2),b=y(g,!0);$(g),$(f),L(w=>Se(b,w),[()=>j("waiting_live_upcoming_title")]),x(p,f)},c=p=>{var f=L2(),v=y(f),m=y(v,!0);$(v);var g=N(v,2);let b=_(()=>o()||0);tp(g,{get startTime(){return r(b)},onTimerOver:()=>K(n,!0)}),$(f),L(w=>Se(m,w),[()=>j("waiting_live_timer_title")]),x(p,f)};O(a,p=>{r(n)?p(l):p(c,!1)})}return $(s),L(()=>pe(s,"style",`background-image: url(${r(n)?"":i()})`)),x(t,s),E({get thumbUrl(){return i()},set thumbUrl(p){i(p),d()},get startTime(){return o()},set startTime(p){o(p),d()},$set:A,$on:(p,f)=>P(e,p,f)})}var N2=D('<div class="waiting-container svelte-xvqwsa"><div class="waiting-caption svelte-xvqwsa"><!> <p class="waiting-title svelte-xvqwsa"> </p></div></div>'),B2={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 Us(t,e){if(new.target)return T({component:Us,...t});I(e,!0),oe(t,B2);let i=u(e,"thumbUrl",7,""),o=u(e,"kind",7),n={recover:j("waiting_live_recover_title"),record:j("waiting_record_title")},s=_(()=>n[o()]||"");var a=N2(),l=y(a),c=y(l);Vs(c,{style:"position: static; transform: translate(0, 0)"});var p=N(c,2),f=y(p,!0);return $(p),$(l),$(a),L(()=>{pe(a,"style",`background-image: url('${i()}')`),Se(f,r(s))}),x(t,a),E({get thumbUrl(){return i()},set thumbUrl(v=""){i(v),d()},get kind(){return o()},set kind(v){o(v),d()},$set:A,$on:(v,m)=>P(e,v,m)})}var D2=Ie('<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 op(t,e){if(new.target)return T({component:op,...t});let i=Oe(e,["children","$$slots","$$events","$$legacy"]);I(e,!1);var o=D2();let n;var s=y(o);return De(s,e,"default",{},null),Te(),$(o),L(()=>n=Le(o,n,{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16","aria-hidden":"true","data-testid":"check-mark-icon",role:"img",...i},void 0,!0)),x(t,o),E({$set:A,$on:(a,l)=>P(e,a,l)})}var O2=D('<div class="select-icon svelte-124aexk"><!></div>'),H2={hash:"svelte-124aexk",code:".select-icon.svelte-124aexk {margin-right:auto;padding-right:12px;opacity:0.9;position:relative;top:3px;}"};function Pl(t,e){if(new.target)return T({component:Pl,...t});I(e,!1),oe(t,H2);var i=O2(),o=y(i);return op(o,{}),$(i),x(t,i),E({$set:A,$on:(n,s)=>P(e,n,s)})}var F2=(t,e)=>{t.stopPropagation(),e().selectItem(e().value)},U2=(t,e)=>{Za(t,()=>e().selectItem(e().value))},z2=D('<p class="label svelte-1t7rx2m"> </p>'),W2=D('<p class="sublabel svelte-1t7rx2m"> </p>'),q2=D('<li class="item" role="menuitem" tabindex="0"><!> <div class="menu-item-value svelte-1t7rx2m"><!> <!></div></li>'),K2={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;
286
+ );}.hidden.svelte-1bcvcf2 {visibility:hidden;transform:translateY(calc(var(--controls-gradient-height) * -1));opacity:0;}`};function Lf(t,e){q(t,Ty);let i=v(e,"title",3,""),o=v(e,"isHidden",3,!1);var n=ky();let a;var s=h(n,!0);g(n),C(d=>{a=Z(n,1,"title svelte-1bcvcf2",null,a,d),de(s,i())},[()=>({hidden:o()})]),b(t,n)}var Iy=M('<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),Ey=M('<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),Ay=M('<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),Py=M('<div class="timer__cell cell svelte-1qpxtfg"><span class="cell__value svelte-1qpxtfg"> </span> <span class="cell__unit svelte-1qpxtfg"> </span></div>'),My=M('<div class="timer__container svelte-1qpxtfg"><!> <!> <!> <!></div>'),Ly={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 Vf(t,e){F(e,!0),q(t,Ly);let i=Y(""),o=Y(""),n=Y(""),a=Y(""),s,d=A=>String(A).padStart(2,"0"),l=A=>{let P=Math.floor(A/86400);P&&(A-=P*86400,N(i,le(d(P))));let T=Math.floor(A/3600);N(o,le(d(T)));let D=Math.floor(A/60)%60;N(n,le(d(D)));let Q=A%60;N(a,le(d(Q)))},c=()=>{let A=Math.floor(Date.now()/1e3),P=e.startTime-A;l(P),P>=1?s=requestAnimationFrame(c):e.onTimerOver()};It(()=>{s=requestAnimationFrame(c)}),Kn(()=>{cancelAnimationFrame(s)});var u=My(),_=h(u);{var f=A=>{var P=Iy(),T=pe(P),D=h(T),Q=h(D,!0);g(D);var G=E(D,2),ee=h(G,!0);g(G),g(T);var ie=E(T,2),oe=h(ie,!0);g(ie),C((te,ge)=>{de(Q,r(i)),de(ee,te),de(oe,ge)},[()=>H("waiting_live_day_value"),()=>H("waiting_live_colon")]),b(A,P)};V(_,A=>{r(i)&&A(f)})}var y=E(_,2);{var x=A=>{var P=Ey(),T=pe(P),D=h(T),Q=h(D,!0);g(D);var G=E(D,2),ee=h(G,!0);g(G),g(T);var ie=E(T,2),oe=h(ie,!0);g(ie),C((te,ge)=>{de(Q,r(o)),de(ee,te),de(oe,ge)},[()=>H("waiting_live_hour_value"),()=>H("waiting_live_colon")]),b(A,P)};V(y,A=>{r(o)&&A(x)})}var w=E(y,2);{var S=A=>{var P=Ay(),T=pe(P),D=h(T),Q=h(D,!0);g(D);var G=E(D,2),ee=h(G,!0);g(G),g(T);var ie=E(T,2),oe=h(ie,!0);g(ie),C((te,ge)=>{de(Q,r(n)),de(ee,te),de(oe,ge)},[()=>H("waiting_live_minute_value"),()=>H("waiting_live_colon")]),b(A,P)};V(w,A=>{r(n)&&A(S)})}var I=E(w,2);{var L=A=>{var P=Py(),T=h(P),D=h(T,!0);g(T);var Q=E(T,2),G=h(Q,!0);g(Q),g(P),C(ee=>{de(D,r(a)),de(G,ee)},[()=>H("waiting_live_second_value")]),b(A,P)};V(I,A=>{r(a)&&A(L)})}g(u),b(t,u),U()}var Vy=me('<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 Rf(t,e){let i=xe(e,["$$slots","$$events","$$legacy","children"]);var o=Vy();let n;var a=h(o);ce(a,()=>e.children??J),fe(4),g(o),C(()=>n=he(o,n,{xmlns:"http://www.w3.org/2000/svg","aria-hidden":"true","data-testid":"podcast-icon",style:"shape-rendering:geometricPrecision;text-rendering:geometricPrecision;image-rendering:optimizeQuality;fill-rule:evenodd;clip-rule:evenodd;width:100%;height:100%",viewBox:"0 0 400 400",role:"img",...i})),b(t,o)}var Ry=M('<div class="upcoming svelte-15pewff"><div class="upcoming-icon svelte-15pewff"><!></div> <span class="upcoming__title svelte-15pewff"> </span></div>'),By=M('<div class="waiting-timer timer svelte-15pewff"><span class="timer__title svelte-15pewff"> </span> <!></div>'),Ny=M('<div class="waiting-container svelte-15pewff"><!></div>'),Dy={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 id(t,e){F(e,!0),q(t,Dy);let i=Y(!1);Qe(()=>{N(i,le(e.startTime===void 0||e.startTime<Math.floor(Date.now()/1e3)))});var o=Ny(),n=h(o);{var a=d=>{var l=Ry(),c=h(l),u=h(c);Rf(u,{}),g(c);var _=E(c,2),f=h(_,!0);g(_),g(l),C(y=>de(f,y),[()=>H("waiting_live_upcoming_title")]),b(d,l)},s=d=>{var l=By(),c=h(l),u=h(c,!0);g(c);var _=E(c,2);let f=m(()=>e.startTime||0);Vf(_,{get startTime(){return r(f)},onTimerOver:()=>N(i,!0)}),g(l),C(y=>de(u,y),[()=>H("waiting_live_timer_title")]),b(d,l)};V(n,d=>{r(i)?d(a):d(s,!1)})}g(o),C(()=>tt(o,`background-image: url(${r(i)?"":e.thumbUrl})`)),b(t,o),U()}var Oy=M('<div class="waiting-container svelte-xvqwsa"><div class="waiting-caption svelte-xvqwsa"><!> <p class="waiting-title svelte-xvqwsa"> </p></div></div>'),Hy={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 ja(t,e){F(e,!0),q(t,Hy);let i=v(e,"thumbUrl",3,""),o={recover:H("waiting_live_recover_title"),record:H("waiting_record_title")},n=m(()=>o[e.kind]||"");var a=Oy(),s=h(a),d=h(s);Fa(d,{style:"position: static; transform: translate(0, 0)"});var l=E(d,2),c=h(l,!0);g(l),g(s),g(a),C(()=>{tt(a,`background-image: url('${i()}')`),de(c,r(n))}),b(t,a),U()}var Fy=me('<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 Bf(t,e){let i=xe(e,["$$slots","$$events","$$legacy","children"]);var o=Fy();let n;var a=h(o);ce(a,()=>e.children??J),fe(),g(o),C(()=>n=he(o,n,{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16","aria-hidden":"true","data-testid":"check-mark-icon",role:"img",...i})),b(t,o)}var Uy=M('<div class="select-icon svelte-124aexk"><!></div>'),zy={hash:"svelte-124aexk",code:".select-icon.svelte-124aexk {margin-right:auto;padding-right:12px;opacity:0.9;position:relative;top:3px;}"};function od(t){q(t,zy);var e=Uy(),i=h(e);Bf(i,{}),g(e),b(t,e)}var qy=(t,e)=>{t.stopPropagation(),e.item.selectItem(e.item.value)},Ky=(t,e)=>{Cs(t,()=>e.item.selectItem(e.item.value))},Wy=M("<p> </p>"),Qy=M('<p class="sublabel svelte-1t7rx2m"> </p>'),Gy=M('<li role="menuitem" tabindex="0"><!> <div><!> <!></div></li>'),jy={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;
282
287
 
283
288
  /**
284
289
  * \u0415\u0441\u043B\u0438 \u044D\u043B\u0435\u043C\u0435\u043D\u0442 \u043D\u0435 \u0432\u044B\u0431\u0440\u0430\u043D(\u0438\u043A\u043E\u043D\u043A\u0430 \u043E\u0442\u0441\u0443\u0442\u0441\u0442\u0432\u0443\u0435\u0442), \u0442\u043E \u0434\u043E\u043B\u0436\u043D\u044B \u0437\u0430\u043F\u043E\u043B\u043D\u0438\u0442\u044C \u043F\u0443\u0441\u0442\u043E\u0435 \u043C\u0435\u0441\u0442\u043E
285
290
  * \u0447\u0442\u043E\u0431\u044B \u0432\u0441\u0435 \u043B\u0435\u0439\u0431\u043B\u044B \u043D\u0430\u0447\u0438\u043D\u0430\u043B\u0438\u0441\u044C \u0441 \u043E\u0434\u043D\u043E\u0433\u043E \u043E\u0442\u0441\u0442\u0443\u043F\u0430.
286
291
  */margin-left:calc(var(--icon-padding) + var(--select-icon-width));}.label.svelte-1t7rx2m,
287
- .sublabel.svelte-1t7rx2m {text-overflow:ellipsis;overflow:hidden;max-width:100%;}.sublabel.svelte-1t7rx2m {opacity:0.5;}`};function np(t,e){if(new.target)return T({component:np,...t});I(e,!0),oe(t,K2);let i=u(e,"isMobile",7,!1),o=u(e,"item",7);var n=q2();n.__click=[F2,o],n.__keydown=[U2,o];var s=y(n);{var a=g=>{Pl(g,{})};O(s,g=>{o().selected&&g(a)})}var l=N(s,2),c=y(l);{var p=g=>{var b=Ye(),w=ye(b);Si(w,()=>o().valueComponent,(k,V)=>{V(k,vs(()=>o().valueComponentParams??{}))}),x(g,b)},f=g=>{var b=z2(),w=y(b,!0);$(b),L(()=>{ne(b,"mobile",i()),Se(w,o().label??o().value)}),x(g,b)};O(c,g=>{o().valueComponent?g(p):g(f,!1)})}var v=N(c,2);{var m=g=>{var b=W2(),w=y(b,!0);$(b),L(()=>Se(w,o().sublabel)),x(g,b)};O(v,g=>{o().sublabel&&g(m)})}return $(l),$(n),L(g=>{pe(n,"data-value",o().value),pe(n,"aria-label",g),ne(n,"mobile",i()),pe(l,"data-selected",o().selected),ne(l,"submenu-value-mobile",i())},[()=>o().ariaLabel??o().label??o().value.toString()]),x(t,n),E({get isMobile(){return i()},set isMobile(g=!1){i(g),d()},get item(){return o()},set item(g){o(g),d()},$set:A,$on:(g,b)=>P(e,g,b)})}pt(["click","keydown"]);var Q2=D('<li class="item" role="menuitem" tabindex="0" aria-haspopup="true"><!> <div class="menu-item-value"><!></div></li>');function rp(t,e){if(new.target)return T({component:rp,...t});I(e,!0);let i=u(e,"isMobile",7,!1),o=u(e,"item",7),n=u(e,"openSubMenuList",7),s=u(e,"refMenuItems",15),a=_(()=>()=>n()(o().children)),l=_(()=>w=>Pd(w,r(a)));var c=Q2();c.__click=function(...w){r(a)?.apply(this,w)},c.__keydown=function(...w){r(l)?.apply(this,w)};var p=y(c);{var f=w=>{Pl(w,{})};O(p,w=>{o().selected&&w(f)})}var v=N(p,2),m=y(v);{var g=w=>{var k=Ye();let V=_(()=>o().valueComponent);var F=ye(k);Si(F,()=>r(V),(M,H)=>{H(M,vs(()=>o().valueComponentParams??{}))}),x(w,k)},b=w=>{var k=er();L(()=>Se(k,o().label)),x(w,k)};O(m,w=>{o().valueComponent?w(g):w(b,!1)})}return $(v),$(c),vt(c,w=>s(s()[o().id]=w,!0),()=>s()?.[o().id]),L(()=>{pe(c,"aria-label",o().ariaLabel??o().label),pe(c,"data-testid",o().id),ne(c,"mobile",i()),ne(c,"bottomBordered",o().bottomBordered),ne(v,"submenu-value-mobile",i())}),x(t,c),E({get isMobile(){return i()},set isMobile(w=!1){i(w),d()},get item(){return o()},set item(w){o(w),d()},get openSubMenuList(){return n()},set openSubMenuList(w){n(w),d()},get refMenuItems(){return s()},set refMenuItems(w){s(w),d()},$set:A,$on:(w,k)=>P(e,w,k)})}pt(["click","keydown"]);var Rr={"quality-settings":100,"audio-language-settings":200,"playback-rate-settings":300,"subtitles-settings":400,"traffic-saving-settings":500,download:600,report:700,"copy-data":800,"save-trace-info":900,"debug-info":1e3};var Y2=(t,e,i)=>{Zg(t,e(),i())},j2=(t,e)=>{t.stopPropagation(),e()()},Z2=(t,e)=>{cc(t)&&(nr(t),e()())},X2=D('<div class="sub-menu menu svelte-7dfsuh"><ul class="items svelte-7dfsuh" role="menu"><li class="item header back svelte-7dfsuh" role="menuitem" tabindex="0" data-testid="return-to-settings-menu"><!> <p class="title svelte-7dfsuh"> </p></li> <!></ul></div>'),J2={hash:"svelte-7dfsuh",code:`.sub-menu.svelte-7dfsuh {--item-padding-vertical-mobile: 16px;--item-padding-vertical: 7px;--item-label-line-height: 18px;
292
+ .sublabel.svelte-1t7rx2m {text-overflow:ellipsis;overflow:hidden;max-width:100%;}.sublabel.svelte-1t7rx2m {opacity:0.5;}`};function Nf(t,e){F(e,!0),q(t,jy);let i=v(e,"isMobile",3,!1);var o=Gy();let n;o.__click=[qy,e],o.__keydown=[Ky,e];var a=h(o);{var s=x=>{od(x,{})};V(a,x=>{e.item.selected&&x(s)})}var d=E(a,2);let l;var c=h(d);{var u=x=>{var w=ze(),S=pe(w);$i(S,()=>e.item.valueComponent,(I,L)=>{L(I,Qr(()=>e.item.valueComponentParams??{}))}),b(x,w)},_=x=>{var w=Wy();let S;var I=h(w,!0);g(w),C(L=>{S=Z(w,1,"label svelte-1t7rx2m",null,S,L),de(I,e.item.label??e.item.value)},[()=>({mobile:i()})]),b(x,w)};V(c,x=>{e.item.valueComponent?x(u):x(_,!1)})}var f=E(c,2);{var y=x=>{var w=Qy(),S=h(w,!0);g(w),C(()=>de(S,e.item.sublabel)),b(x,w)};V(f,x=>{e.item.sublabel&&x(y)})}g(d),g(o),C((x,w,S)=>{n=Z(o,1,"item",null,n,x),Me(o,"data-value",e.item.value),Me(o,"aria-label",w),l=Z(d,1,"menu-item-value svelte-1t7rx2m",null,l,S),Me(d,"data-selected",e.item.selected)},[()=>({mobile:i()}),()=>e.item.ariaLabel??e.item.label??e.item.value.toString(),()=>({"submenu-value-mobile":i()})]),b(t,o),U()}it(["click","keydown"]);var Yy=M('<li role="menuitem" tabindex="0" aria-haspopup="true"><!> <div><!></div></li>');function Df(t,e){F(e,!0);let i=v(e,"isMobile",3,!1),o=v(e,"refMenuItems",15),n=m(()=>()=>e.openSubMenuList(e.item.children)),a=m(()=>w=>pc(w,r(n)));var s=Yy();let d;s.__click=function(...w){r(n)?.apply(this,w)},s.__keydown=function(...w){r(a)?.apply(this,w)};var l=h(s);{var c=w=>{od(w,{})};V(l,w=>{e.item.selected&&w(c)})}var u=E(l,2);let _;var f=h(u);{var y=w=>{var S=ze();let I=m(()=>e.item.valueComponent);var L=pe(S);$i(L,()=>r(I),(A,P)=>{P(A,Qr(()=>e.item.valueComponentParams??{}))}),b(w,S)},x=w=>{var S=qn();C(()=>de(S,e.item.label)),b(w,S)};V(f,w=>{e.item.valueComponent?w(y):w(x,!1)})}g(u),g(s),at(s,w=>o(o()[e.item.id]=w,!0),()=>o()?.[e.item.id]),C((w,S)=>{d=Z(s,1,"item",null,d,w),Me(s,"aria-label",e.item.ariaLabel??e.item.label),Me(s,"data-testid",e.item.id),_=Z(u,1,"menu-item-value",null,_,S)},[()=>({mobile:i(),bottomBordered:e.item.bottomBordered}),()=>({"submenu-value-mobile":i()})]),b(t,s),U()}it(["click","keydown"]);var gr={"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 Xy=(t,e)=>{Kg(t,e.returnFromSubMenu,e.closeSettingsMenu)},Jy=(t,e)=>{t.stopPropagation(),e.returnFromSubMenu()},e4=(t,e)=>{xl(t)&&(Gn(t),e.returnFromSubMenu())},t4=M('<div><ul role="menu"><li role="menuitem" tabindex="0" data-testid="return-to-settings-menu"><!> <p class="title svelte-7dfsuh"> </p></li> <!></ul></div>'),i4={hash:"svelte-7dfsuh",code:`.sub-menu.svelte-7dfsuh {--item-padding-vertical-mobile: 16px;--item-padding-vertical: 7px;--item-label-line-height: 18px;
288
293
  /*\u0414\u043B\u044F \u043F\u0435\u0440\u0432\u043E\u0433\u043E \u0438 \u043F\u043E\u0441\u043B\u0435\u0434\u043D\u0435\u0433\u043E \u044D\u043B\u0435\u043C\u0435\u043D\u0442\u0430 \u0441\u043F\u0438\u0441\u043A\u0430*/--edge-item-padding-vertical-mobile: calc(6px + var(--item-padding-vertical-mobile));--edge-item-padding-vertical: calc(8px + var(--item-padding-vertical));}.sub-menu.svelte-7dfsuh .item.mobile {padding:var(--item-padding-vertical-mobile) 17px;line-height:var(--item-label-line-height);font-size:14px;}.sub-menu.svelte-7dfsuh {
289
294
  /**
290
295
  * \u0422\u0430\u043A \u043A\u0430\u043A \u0443 \u043D\u0430\u0441 \u0437\u0430\u0433\u043E\u043B\u043E\u0432\u043E\u043A \u0434\u043E\u043B\u0436\u0435\u043D \u0431\u044B\u0442\u044C \u0441\u0442\u0438\u043A\u0438, \u043D\u0443\u0436\u043D\u043E \u0434\u043E\u0431\u0430\u0432\u0438\u0442\u044C \u043F\u0430\u0434\u0434\u0438\u043D\u0433 \u0441 \u0432\u044B\u0441\u043E\u0442\u0443 \u0437\u0430\u0433\u043E\u043B\u043E\u0432\u043A\u0430.
@@ -294,16 +299,16 @@ Try switching the\xA0quality to\xA0Auto.`},Lg=C$;var gs=new Map;gs.set(Vg.EN,Lg)
294
299
  var(--edge-item-padding-vertical-mobile) + var(--item-padding-vertical-mobile) + var(--item-label-line-height) +
295
300
  1px
296
301
  );}.sub-menu.svelte-7dfsuh .items:where(.svelte-7dfsuh) .item.header:where(.svelte-7dfsuh) {position:absolute;top:0;left:0;right:0;min-width:max-content;display:flex;justify-content:space-between;border-bottom:var(--divider-border);}.header.svelte-7dfsuh .title:where(.svelte-7dfsuh) {margin-left:8px;}.sub-menu.svelte-7dfsuh .item {padding:var(--item-padding-vertical) 12px;padding-right:22px;}.items.svelte-7dfsuh .item:first-child:not(.mobile) {padding-top:var(--edge-item-padding-vertical);}.items.svelte-7dfsuh .item:last-child:not(.mobile) {padding-bottom:var(--edge-item-padding-vertical);}.items.svelte-7dfsuh .item.mobile:first-child {padding-top:var(--edge-item-padding-vertical-mobile);}.items.svelte-7dfsuh .item.mobile:last-child {padding-bottom:var(--edge-item-padding-vertical-mobile);}.sub-menu.svelte-7dfsuh .item.bottomBordered {border-bottom:var(--divider-border);}.sub-menu.svelte-7dfsuh .item .sublabel {line-height:14px;font-size:12px;}.sub-menu.svelte-7dfsuh .item:not(.mobile) .label,
297
- .item.svelte-7dfsuh:not(.mobile) p:where(.svelte-7dfsuh) {line-height:var(--item-label-line-height);font-size:13px;}`};function sp(t,e){if(new.target)return T({component:sp,...t});I(e,!0),oe(t,J2);let[i,o]=Je(),n=()=>C(M,"$isFullscreen",i),s=()=>C(H,"$playerSize",i),a=u(e,"id",7),l=u(e,"isMobile",7,!1),c=u(e,"playerControlsHeight",7,0),p=u(e,"returnFromSubMenu",7),f=u(e,"ariaLabelReturnFromSubMenu",23,()=>j("aria_label_submenu_back")),v=u(e,"title",7),m=u(e,"listRef",15),g=u(e,"closeSettingsMenu",7),b=u(e,"openSubMenuList",7),w=u(e,"items",7),k=u(e,"minWidth",7),V=u(e,"refMenuItems",7);Ut(()=>{let te=w().findIndex(le=>le.selected);m().children[te+1].focus()});let F=Be(),M=F.ui.isFullscreen,H=F.ui.playerSize,S=de(void 0),q=de(0),W=de(0),U=_(()=>l()&&n()?`max-height: ${Math.round(s().height*.6)}px`:l()?"":`max-height: ${s().height-32-r(W)-c()}px; overflow: auto;`),ie=_(()=>Math.max(k(),r(q)));var se=X2(),fe=y(se);fe.__keydown=[Y2,p,g];var J=y(fe);J.__click=[j2,p],J.__keydown=[Z2,p];var xe=y(J);xs(xe,{direction:"left"});var Ce=N(xe,2),X=y(Ce,!0);$(Ce),$(J),vt(J,te=>K(S,te),()=>r(S));var me=N(J,2);vi(me,17,w,Fi,(te,le)=>{var z=Ye(),je=ye(z);{var Re=ce=>{np(ce,{get item(){return r(le)},get isMobile(){return l()}})},Y=ce=>{var Ge=Ye(),G=ye(Ge);{var Ve=ue=>{rp(ue,{get isMobile(){return l()},get item(){return r(le)},get openSubMenuList(){return b()},get refMenuItems(){return V()}})};O(G,ue=>{r(le).type==="OPEN_SUB_MENU"&&ue(Ve)},!0)}x(ce,Ge)};O(je,ce=>{r(le).type==="SELECT_VALUE"?ce(Re):ce(Y,!1)})}x(te,z)}),$(fe),vt(fe,te=>m(te),()=>m()),$(se),L(()=>{pe(se,"data-testid",`sub-menu-${a()}`),pe(se,"style",`min-width: ${r(ie)}px`),ne(se,"desktop",!l()),ne(se,"mobile",l()),pe(fe,"style",r(U)),ne(fe,"mobile",l()),pe(J,"aria-label",f()),ne(J,"mobile",l()),Se(X,v())}),Yr(J,"clientWidth",te=>K(q,te)),Yr(J,"clientHeight",te=>K(W,te)),x(t,se);var he=E({get id(){return a()},set id(te){a(te),d()},get isMobile(){return l()},set isMobile(te=!1){l(te),d()},get playerControlsHeight(){return c()},set playerControlsHeight(te=0){c(te),d()},get returnFromSubMenu(){return p()},set returnFromSubMenu(te){p(te),d()},get ariaLabelReturnFromSubMenu(){return f()},set ariaLabelReturnFromSubMenu(te=j("aria_label_submenu_back")){f(te),d()},get title(){return v()},set title(te){v(te),d()},get listRef(){return m()},set listRef(te){m(te),d()},get closeSettingsMenu(){return g()},set closeSettingsMenu(te){g(te),d()},get openSubMenuList(){return b()},set openSubMenuList(te){b(te),d()},get items(){return w()},set items(te){w(te),d()},get minWidth(){return k()},set minWidth(te){k(te),d()},get refMenuItems(){return V()},set refMenuItems(te){V(te),d()},$set:A,$on:(te,le)=>P(e,te,le)});return o(),he}pt(["keydown","click"]);import{noop as Vh}from"@vkontakte/videoplayer-shared/evergreen";var e4=(t,e)=>Pd(t,e()),t4=(t,e)=>{t.stopPropagation(),e()()},i4=D('<div class="value svelte-1ikfjte"> </div>'),o4=D('<li class="item" role="menuitem" tabindex="0" aria-haspopup="true"><div class="icon-wrapper"><!></div> <div class="label"> </div> <!></li>'),n4={hash:"svelte-1ikfjte",code:".value.svelte-1ikfjte {position:relative;opacity:0.7;overflow:hidden;text-overflow:ellipsis;}"};function ap(t,e){if(new.target)return T({component:ap,...t});I(e,!0),oe(t,n4);let i=u(e,"id",7),o=u(e,"isMobile",7,!1),n=u(e,"onClick",7,Vh),s=u(e,"label",7),a=u(e,"ariaLabel",7),l=u(e,"value",7),c=u(e,"valueComponent",7,void 0),p=u(e,"ref",15),f=u(e,"icon",7);var v=o4();v.__click=[t4,n],v.__keydown=[e4,n];var m=y(v),g=y(m);{var b=S=>{Fs(S,{get icon(){return f()}})},w=S=>{var q=Ye();let W=_(f);var U=ye(q);Si(U,()=>r(W),(ie,se)=>{se(ie,{})}),x(S,q)};O(g,S=>{typeof f()=="string"?S(b):S(w,!1)})}$(m);var k=N(m,2),V=y(k,!0);$(k);var F=N(k,2);{var M=S=>{var q=Ye();let W=_(c);var U=ye(q);Si(U,()=>r(W),(ie,se)=>{se(ie,{})}),x(S,q)},H=S=>{var q=i4(),W=y(q,!0);$(q),L(()=>Se(W,l())),x(S,q)};O(F,S=>{c()?S(M):S(H,!1)})}return $(v),vt(v,S=>p(S),()=>p()),L(()=>{pe(v,"aria-label",a()),pe(v,"data-testid",i()),ne(v,"mobile",o()),Se(V,s())}),x(t,v),E({get id(){return i()},set id(S){i(S),d()},get isMobile(){return o()},set isMobile(S=!1){o(S),d()},get onClick(){return n()},set onClick(S=Vh){n(S),d()},get label(){return s()},set label(S){s(S),d()},get ariaLabel(){return a()},set ariaLabel(S){a(S),d()},get value(){return l()},set value(S){l(S),d()},get valueComponent(){return c()},set valueComponent(S=void 0){c(S),d()},get ref(){return p()},set ref(S){p(S),d()},get icon(){return f()},set icon(S){f(S),d()},$set:A,$on:(S,q)=>P(e,S,q)})}pt(["click","keydown"]);import{noop as lp}from"@vkontakte/videoplayer-shared/evergreen";var r4=(t,e)=>{Za(t,()=>e())},s4=D('<div class="icon icon-error-stub"><div class="inner"></div></div>'),a4=D('<img class="icon" aria-hidden="true">'),l4=D('<li class="item" role="menuitem" tabindex="0"><div class="icon-wrapper"><!></div> <div class="label svelte-15ifkac"> </div></li>'),c4={hash:"svelte-15ifkac",code:".label.svelte-15ifkac {overflow:hidden;text-overflow:ellipsis;}"};function cp(t,e){if(new.target)return T({component:cp,...t});I(e,!0),oe(t,c4);let i=u(e,"id",7),o=u(e,"isMobile",7,!1),n=u(e,"onClick",7,lp),s=u(e,"closeSettings",7,lp),a=u(e,"label",7),l=u(e,"ariaLabel",7),c=u(e,"icon",7),p=de(!1),f=()=>{K(p,!0)},v=M=>{M?.stopPropagation(),n()(),s()()};var m=l4();m.__click=v,m.__keydown=[r4,v];var g=y(m),b=y(g);{var w=M=>{var H=Ye(),S=ye(H);{var q=U=>{var ie=s4();x(U,ie)},W=U=>{var ie=a4();L(()=>pe(ie,"src",c())),Dt("error",ie,f),ta(ie),x(U,ie)};O(S,U=>{r(p)?U(q):U(W,!1)})}x(M,H)},k=M=>{var H=Ye();let S=_(c);var q=ye(H);Si(q,()=>r(S),(W,U)=>{U(W,{})}),x(M,H)};O(b,M=>{typeof c()=="string"?M(w):M(k,!1)})}$(g);var V=N(g,2),F=y(V,!0);return $(V),$(m),L(()=>{pe(m,"aria-label",l()??a()),pe(m,"data-testid",i()),ne(m,"mobile",o()),Se(F,a())}),x(t,m),E({get id(){return i()},set id(M){i(M),d()},get isMobile(){return o()},set isMobile(M=!1){o(M),d()},get onClick(){return n()},set onClick(M=lp){n(M),d()},get closeSettings(){return s()},set closeSettings(M=lp){s(M),d()},get label(){return a()},set label(M){a(M),d()},get ariaLabel(){return l()},set ariaLabel(M){l(M),d()},get icon(){return c()},set icon(M){c(M),d()},$set:A,$on:(M,H)=>P(e,M,H)})}pt(["click","keydown"]);import{noop as Nh}from"@vkontakte/videoplayer-shared/evergreen";var d4=D('<div class="toggle_wrap svelte-17wbjko"><div class="toggle svelte-17wbjko"></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 dp(t,e){if(new.target)return T({component:dp,...t});I(e,!0),oe(t,u4);let i=u(e,"enabled",7,!1);var o=d4(),n=y(o);return Te(2),$(o),L(()=>ne(n,"on",i())),x(t,o),E({get enabled(){return i()},set enabled(s=!1){i(s),d()},$set:A,$on:(s,a)=>P(e,s,a)})}var p4=(t,e,i)=>{Xg(t,e(),o=>i()(o))},f4=(t,e,i)=>{t.stopPropagation(),e()(!i())},m4=D('<div class="switch-wrapper"><div class="icon-wrapper"><!></div> <div class="label"> </div> <!></div>'),v4=D('<li class="item switch-item" role="menuitem" tabindex="0"><!></li>');function up(t,e){if(new.target)return T({component:up,...t});I(e,!0);let i=u(e,"id",7),o=u(e,"isMobile",7,!1),n=u(e,"onClick",7,Nh),s=u(e,"label",7),a=u(e,"ariaLabel",7),l=u(e,"icon",7),c=u(e,"enabled",7,!1),p=u(e,"tooltipText",7,void 0),f=u(e,"maxTooltipWidth",7,void 0);var v=v4();v.__click=[f4,n,c],v.__keydown=[p4,c,n];var m=y(v);return Ns(m,{get content(){return p()},get isMobile(){return o()},placement:"left",translateX:10,isFullWidthWrapper:!0,get maxTooltipWidth(){return f()},children:(g,b)=>{var w=m4(),k=y(w),V=y(k);{var F=W=>{Fs(W,{get icon(){return l()}})},M=W=>{var U=Ye();let ie=_(l);var se=ye(U);Si(se,()=>r(ie),(fe,J)=>{J(fe,{})}),x(W,U)};O(V,W=>{typeof l()=="string"?W(F):W(M,!1)})}$(k);var H=N(k,2),S=y(H,!0);$(H);var q=N(H,2);dp(q,{get enabled(){return c()}}),$(w),L(()=>{ne(w,"mobile",o()),Se(S,s())}),x(g,w)},$$slots:{default:!0}}),$(v),L(()=>{pe(v,"aria-label",a()??s()),pe(v,"data-testid",i()),ne(v,"mobile",o())}),x(t,v),E({get id(){return i()},set id(g){i(g),d()},get isMobile(){return o()},set isMobile(g=!1){o(g),d()},get onClick(){return n()},set onClick(g=Nh){n(g),d()},get label(){return s()},set label(g){s(g),d()},get ariaLabel(){return a()},set ariaLabel(g){a(g),d()},get icon(){return l()},set icon(g){l(g),d()},get enabled(){return c()},set enabled(g=!1){c(g),d()},get tooltipText(){return p()},set tooltipText(g=void 0){p(g),d()},get maxTooltipWidth(){return f()},set maxTooltipWidth(g=void 0){f(g),d()},$set:A,$on:(g,b)=>P(e,g,b)})}pt(["click","keydown"]);import{isValidURL as O4,VideoQuality as Qh}from"@vkontakte/videoplayer-shared/evergreen";var Bh=()=>{let t=de(ke([])),e=_(()=>(r(t).length?r(t).at(-1):null)||null);return{get current(){return r(e)},pushSubMenu:i=>{r(t).push(i)},popSubMenu:()=>{K(t,ke(r(t).slice(0,-1)))},popAllSubMenus:()=>{K(t,ke([]))}}};var g4=D('<div class="quality-icon svelte-t2qk8t"><!></div>'),h4=D('<div class="quality-label svelte-t2qk8t"><span class="svelte-t2qk8t"> </span> <!></div>'),_4={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 zs(t,e){if(new.target)return T({component:zs,...t});I(e,!0),oe(t,_4);let i=u(e,"quality",7),o=u(e,"label",7),n=u(e,"isMobile",7),s=u(e,"isSubCase",7,!1),a=_(()=>Qd(i()));var l=h4(),c=y(l),p=y(c,!0);$(c);var f=N(c,2);{var v=m=>{var g=g4();let b=_(()=>r(a));var w=y(g);Si(w,()=>r(b),(k,V)=>{V(k,{})}),$(g),x(m,g)};O(f,m=>{r(a)&&!n()&&m(v)})}return $(l),L(()=>{ne(c,"sub",!s()),ne(c,"quality",!n()),Se(p,o())}),x(t,l),E({get quality(){return i()},set quality(m){i(m),d()},get label(){return o()},set label(m){o(m),d()},get isMobile(){return n()},set isMobile(m){n(m),d()},get isSubCase(){return s()},set isSubCase(m=!1){s(m),d()},$set:A,$on:(m,g)=>P(e,m,g)})}import{VideoQuality as $4}from"@vkontakte/videoplayer-shared/evergreen";import{VideoQuality as Dh}from"@vkontakte/videoplayer-core/evergreen";var Oh=({quality:t,availableQualities:e})=>{let i=e.find(o=>o.value===t);return i?i.displayValue:t},Hh=({quality:t,availableQualities:e,isAutoQualityEnabled:i})=>{if(!t)return"...";let o=Oh({quality:t,availableQualities:e});return i?t===Dh.INVARIANT?j("auto_quality_invariant"):j("auto_quality",{actual:o}):o},Fh=({quality:t,availableQualities:e,prefix:i,onlyPrefix:o})=>t?o||t===Dh.INVARIANT?i:`${i}${Oh({quality:t,availableQualities:e})}`:"...";var b4=D('<div class="menu-item-value-wrapper svelte-1j7b2kc"><!></div>'),y4={hash:"svelte-1j7b2kc",code:".menu-item-value-wrapper.svelte-1j7b2kc {line-height:normal;}"};function ga(t,e){if(new.target)return T({component:ga,...t});I(e,!0),oe(t,y4);let[i,o]=Je(),n=()=>C(f,"$currentQuality$",i),s=()=>C(v,"$availableQualities$",i),a=()=>C(m,"$isMobile$",i),l=Be(),c=u(e,"selected",7),p=u(e,"prefix",7),f=l.state.currentQuality$,v=l.state.availableQualities$,m=l.ui.isMobile,g=" \xB7 ",b=_(()=>p()+(c()&&n()!==$4.INVARIANT?g:"")),w=_(()=>Fh({prefix:r(b),quality:n(),availableQualities:s(),onlyPrefix:!c()}));var k=b4(),V=y(k);let F=_(()=>c()?n():void 0);zs(V,{get quality(){return r(F)},get label(){return r(w)},get isMobile(){return a()},isSubCase:!0}),$(k),x(t,k);var M=E({get selected(){return c()},set selected(H){c(H),d()},get prefix(){return p()},set prefix(H){p(H),d()},$set:A,$on:(H,S)=>P(e,H,S)});return o(),M}var x4=t=>{let e=t.join("|"),i="<(?<keyhtml>.*?)(?<propshtml> .*?)?>(?<childrenhtml>.*?)</\\k<keyhtml>>",o=`{(?<keyi18n>${e})}(?<childreni18n>.*?){/\\k<keyi18n>}`,n="<(?<keyhtmlself>.*?)(?<propshtmlself> .*?)?/?>",s=`{(?<keyi18nself>${e})}`;return new RegExp(`${i}|${o}|${n}|${s}`,"g")},w4={br:!0,span:!0},gm=(t,e={})=>{if(!t)return t;let i={...w4,...e},o=Object.keys(i);if(!o.length)return t;let n=x4(o),s=[],a=0;for(let l of t.matchAll(n)){let c=l[0],p=l.groups?.keyhtml||l.groups?.keyi18n||l.groups?.keyhtmlself||l.groups?.keyi18nself||"",{index:f}=l;if(!i[p]){s.push(t.slice(a,f)),a=f+c.length;continue}let v=l.groups?.childrenhtml?gm(l.groups.childrenhtml,i):"",m=l.groups?.childrenhtml?c.replace(new RegExp(l.groups?.childrenhtml),()=>v||""):c;s.push(t.slice(a,f),m),a=f+c.length}return a===0?t:(s.push(t.slice(a)),s.join(""))};function Al(t,e){if(new.target)return T({component:Al,...t});I(e,!1);let i=u(e,"message",12),o=gm(i());Mr();var n=Ye(),s=ye(n);{var a=l=>{var c=Ye(),p=ye(c);Jl(p,()=>o,!1,!1),x(l,c)};O(s,l=>{o&&l(a)})}return x(t,n),E({get message(){return i()},set message(l){i(l),d()},$set:A,$on:(l,c)=>P(e,l,c)})}var C4=D('<p class="quality-applies sublabel svelte-1qk3zto"><!></p>'),S4={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 pp(t,e){if(new.target)return T({component:pp,...t});I(e,!1),oe(t,S4),Mr();var i=C4(),o=y(i);let n=Er(()=>j("quality_applience",{action:`<span>${j("quality_applience_action")}</span>`}));return Al(o,{get message(){return r(n)}}),$(i),x(t,i),E({$set:A,$on:(s,a)=>P(e,s,a)})}var zh=({isAutoQualityEnabled:t,trafficSavingEnabled:e,highQualityEnabled:i})=>{let o=!t&&!e&&!i;return{id:"QUALITY_OTHER",type:"OPEN_SUB_MENU",selected:o,valueComponent:ga,valueComponentParams:{prefix:j("other_quality"),selected:o},children:"QUALITY"}},hm=({appliesTo:t,labelWithQuality:e,selected:i},{selectQuality:o})=>({id:"QUALITY_AUTO",type:"SELECT_VALUE",value:"auto",label:j("auto_quality_limit"),valueComponent:e?ga:void 0,valueComponentParams:{prefix:j("auto_quality_limit"),selected:i},selectItem:()=>o("auto",t),selected:i}),Wh=()=>({id:"QUALITY_APPLIENCE",type:"OPEN_SUB_MENU",valueComponent:pp,bottomBordered:!0,children:"QUALITY_APPLIENCE"}),_m=({labelWithQuality:t,appliesTo:e,selected:i},{toggleHighQuality:o})=>({id:"QUALITY_HIGH",type:"SELECT_VALUE",value:"high_quality",selectItem:()=>o(!0,e),selected:i,label:j("high_quality"),valueComponent:t?ga:void 0,valueComponentParams:{prefix:j("high_quality"),selected:i},sublabel:j("high_quality_description")}),$m=({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:j("traffic_saving_quality"),valueComponent:t?ga:void 0,valueComponentParams:{prefix:j("traffic_saving_quality"),selected:i},sublabel:j("traffic_saving_quality_description")});var fp=(t,e)=>String(e.findIndex(i=>i.id===t.id)+1),mp=(t,e)=>{if(!t)return"";let{language:i,label:o}=t,n;if(i==="und"?n=void 0:i&&(n=_u(i)??i),o&&i&&n){let a=e.filter(l=>l.label===o&&l.language===i);if(a.length===1)return j("audio_stream_display_language_label",{language:n,label:o});{let l=fp(t,a);return j("audio_stream_display_language_label_index",{language:n,label:o,index:l})}}if(o){let a=e.filter(l=>l.label===o);if(a.length===1)return o;{let l=fp(t,a);return j("audio_stream_display_label_index",{label:o,index:l})}}if(i&&n){let a=e.filter(l=>l.language===i);if(a.length===1)return n;{let l=fp(t,a);return j("audio_stream_display_language_index",{language:n,index:l})}}let s=fp(t,e);return j("audio_stream_display_unknown",{index:s})};var k4={QUALITY_DETAILS:t=>{let{isAutoQualityEnabled:e,isAutoQualityAvailable:i,trafficSavingEnabled:o,highQualityEnabled:n}=t,s=[];return i&&s.push({handler:hm,selected:e&&!o&&!n||!1}),s.push({handler:$m,selected:o},{handler:_m,selected:n}),{title:j("submenu_quality"),id:"QUALITY_DETAILS",items:[Wh(t),...s.map(({handler:a,selected:l})=>a({labelWithQuality:!0,appliesTo:"to-video",selected:l},t)),zh(t)]}},QUALITY:({closeSettingsMenu:t,selectQuality:e,availableQualities:i,isMobile:o})=>({id:"QUALITY",title:j("submenu_quality"),closeSettingsMenu:t,items:i.map(n=>({type:"SELECT_VALUE",value:n.value,valueComponent:zs,valueComponentParams:{quality:n.value,label:n.displayValue,isMobile:o,isSubCase:!0},selectItem:s=>e(s,"to-video"),selected:n.selected,label:n.displayValue}))}),QUALITY_APPLIENCE:t=>{let{closeSettingsMenu:e}=t;return{id:"QUALITY_APPLIENCE",title:j("default_quality_for_any_video"),closeSettingsMenu:e,items:[{handler:hm,selected:md()?.type==="auto_quality"},{handler:$m,selected:md()?.type==="traffic_saving"},{handler:_m,selected:md()?.type==="high_quality"}].map(({handler:i,selected:o})=>i({labelWithQuality:!1,appliesTo:"as-default",selected:o},t))}},AUDIO_LANGUAGES:({closeSettingsMenu:t,availableAudioStreams:e,currentAudioStream:i,selectAudioLanguage:o})=>({id:"AUDIO_LANGUAGES",title:j("submenu_audio_languages"),closeSettingsMenu:t,items:e.map(n=>({type:"SELECT_VALUE",value:n,dataValue:n.id,selectItem:o,selected:n.id===i?.id,label:mp(n,e)}))}),PLAYBACK_RATE_SUB_MENU:({closeSettingsMenu:t,availablePlaybackRates:e,selectPlaybackRate:i})=>({id:"PLAYBACK_RATE_SUB_MENU",title:j("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:j("subtitles_caption"),items:t.map(i=>({type:"SELECT_VALUE",value:i,selectItem:e,selected:i.selected,label:i.displayValue}))})},qh=({subMenuId:t,context:e})=>t?[k4[t](e)]:[];var T4=Ie('<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 vp(t,e){if(new.target)return T({component:vp,...t});let i=Oe(e,["children","$$slots","$$events","$$legacy"]);I(e,!1);var o=T4();let n;var s=y(o);return De(s,e,"default",{},null),Te(),$(o),L(()=>n=Le(o,n,{xmlns:"http://www.w3.org/2000/svg",width:"18",height:"17",fill:"none","aria-hidden":"true","data-testid":"traffic-saving-icon",role:"img",...i},void 0,!0)),x(t,o),E({$set:A,$on:(a,l)=>P(e,a,l)})}var I4=Ie('<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 gp(t,e){if(new.target)return T({component:gp,...t});let i=Oe(e,["children","$$slots","$$events","$$legacy"]);I(e,!1);var o=I4();let n;var s=y(o);return De(s,e,"default",{},null),Te(),$(o),L(()=>n=Le(o,n,{xmlns:"http://www.w3.org/2000/svg",width:"18",height:"15",fill:"none","aria-hidden":"true","data-testid":"audio-languages-icon",role:"img",...i},void 0,!0)),x(t,o),E({$set:A,$on:(a,l)=>P(e,a,l)})}var E4=Ie('<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 hp(t,e){if(new.target)return T({component:hp,...t});let i=Oe(e,["children","$$slots","$$events","$$legacy"]);I(e,!1);var o=E4();let n;var s=y(o);return De(s,e,"default",{},null),Te(),$(o),L(()=>n=Le(o,n,{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24","aria-hidden":"true","data-testid":"play-speed-icon",role:"img",...i},void 0,!0)),x(t,o),E({$set:A,$on:(a,l)=>P(e,a,l)})}var P4=Ie('<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 _p(t,e){if(new.target)return T({component:_p,...t});let i=Oe(e,["children","$$slots","$$events","$$legacy"]);I(e,!1);var o=P4();let n;var s=y(o);return De(s,e,"default",{},null),Te(),$(o),L(()=>n=Le(o,n,{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"19",fill:"none","aria-hidden":"true","data-testid":"download-icon",role:"img",...i},void 0,!0)),x(t,o),E({$set:A,$on:(a,l)=>P(e,a,l)})}var A4=Ie('<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 $p(t,e){if(new.target)return T({component:$p,...t});let i=Oe(e,["children","$$slots","$$events","$$legacy"]);I(e,!1);var o=A4();let n;var s=y(o);return De(s,e,"default",{},null),Te(),$(o),L(()=>n=Le(o,n,{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none","aria-hidden":"true","data-testid":"report-icon",role:"img",...i},void 0,!0)),x(t,o),E({$set:A,$on:(a,l)=>P(e,a,l)})}var M4=Ie('<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 _c(t,e){if(new.target)return T({component:_c,...t});let i=Oe(e,["children","$$slots","$$events","$$legacy"]);I(e,!1);var o=M4();let n;var s=y(o);return De(s,e,"default",{},null),Te(),$(o),L(()=>n=Le(o,n,{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none","aria-hidden":"true","data-testid":"copy-icon",role:"img",...i},void 0,!0)),x(t,o),E({$set:A,$on:(a,l)=>P(e,a,l)})}var L4=Ie('<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 bp(t,e){if(new.target)return T({component:bp,...t});let i=Oe(e,["children","$$slots","$$events","$$legacy"]);I(e,!1);var o=L4();let n;var s=y(o);return De(s,e,"default",{},null),Te(),$(o),L(()=>n=Le(o,n,{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none","aria-hidden":"true","data-testid":"info-icon",role:"img",...i},void 0,!0)),x(t,o),E({$set:A,$on:(a,l)=>P(e,a,l)})}var R4=D('<div class="menu-item-value-wrapper svelte-1j7b2kc"><!></div>'),V4={hash:"svelte-1j7b2kc",code:".menu-item-value-wrapper.svelte-1j7b2kc {line-height:normal;}"};function yp(t,e){if(new.target)return T({component:yp,...t});I(e,!0),oe(t,V4);let[i,o]=Je(),n=()=>C(p,"$currentQuality$",i),s=()=>C(f,"$availableQualities$",i),a=()=>C(v,"$isAutoQualityEnabled$",i),l=()=>C(m,"$isMobile$",i),c=Be(),p=c.state.currentQuality$,f=c.state.availableQualities$,v=c.state.isAutoQualityEnabled$,m=c.ui.isMobile,g=_(()=>Hh({quality:n(),availableQualities:s(),isAutoQualityEnabled:a()}));var b=R4(),w=y(b);zs(w,{get quality(){return n()},get label(){return r(g)},get isMobile(){return l()}}),$(b),x(t,b);var k=E({$set:A,$on:(V,F)=>P(e,V,F)});return o(),k}var B4={QUALITY_SETTINGS:({isAutoQualityEnabled:t,currentQuality:e,qualityDetailsSubMenuEnabled:i})=>{let o=(t?j("auto_quality_option"):e)||"";return{id:"QUALITY_SETTINGS",type:"OPEN_SUB_MENU",ariaLabel:j("aria_label_menu_quality",{actual:o}),icon:nl,label:j("menu_quality"),value:e,valueComponent:yp,weight:Rr["quality-settings"],children:i?"QUALITY_DETAILS":"QUALITY"}},TRAFFIC_SAVING_SWITCH:({trafficSavingEnabled:t,toggleTrafficSaving:e})=>({id:"TRAFFIC_SAVING_SWITCH",weight:Rr["traffic-saving-settings"],type:"SWITCH",onClick:i=>e(i,"to-video"),ariaLabel:t?j("aria_label_submenu_traffic_saving_off"):`${j("aria_label_submenu_traffic_saving_on")}. ${j("traffic_saving_helper_text")}`,icon:vp,label:j("menu_traffic_saving"),enabled:t,tooltipText:j("traffic_saving_helper_text"),maxTooltipWidth:175}),AUDIO_LANGUAGES:({currentAudioStream:t,availableAudioStreams:e})=>{let i=mp(t,e);return{id:"AUDIO_LANGUAGES",weight:Rr["audio-language-settings"],type:"OPEN_SUB_MENU",ariaLabel:j("aria_label_menu_audio_languages",{actual:i}),icon:gp,label:j("menu_audio_languages"),value:i,children:"AUDIO_LANGUAGES"}},PLAYBACK_RATE:({availablePlaybackRates:t,currentPlaybackRate:e})=>{let i=t.find(o=>o.value===e)?.displayValue||"";return{id:"PLAYBACK_RATE",weight:Rr["playback-rate-settings"],type:"OPEN_SUB_MENU",ariaLabel:j("aria_label_menu_rate",{actual:i}),icon:hp,label:j("menu_playback_rate"),value:`${e}x`,children:"PLAYBACK_RATE_SUB_MENU"}},SUBTITLES:({currentSubtitle:t})=>({id:"SUBTITLES",weight:Rr["subtitles-settings"],type:"OPEN_SUB_MENU",ariaLabel:j("aria_label_menu_subtitle",{actual:t.displayValue}),icon:rl,label:j("subtitles_caption"),value:t.displayValue,children:"SUBTITLES"}),DOWNLOAD:({onDownloadClick:t})=>({id:"DOWNLOAD",weight:Rr.download,type:"CLICK",onClick:t,label:j("download_video_caption"),ariaLabel:j("aria_label_menu_download"),icon:_p}),SHOW_SUPPORT:({onReportProblemClick:t})=>({id:"SHOW_SUPPORT",weight:Rr.report,type:"CLICK",onClick:t,label:j("menu_report"),ariaLabel:`${j("menu_report")}. ${j("aria_label_new_tab_alert")}`,icon:$p,isHiddenFor:["desktop"]}),COPY_DATA:({onCopyDataClick:t})=>({id:"COPY_DATA",weight:Rr["copy-data"],type:"CLICK",onClick:t,label:j("menu_copy_debug"),ariaLabel:j("menu_copy_debug"),icon:_c,isHiddenFor:["desktop"]}),SAVE_TRACE_INFO:({onSaveTraceDataClick:t})=>({id:"SAVE_TRACE_INFO",weight:Rr["save-trace-info"],type:"CLICK",onClick:t,label:j("menu_save_debug"),ariaLabel:j("menu_save_debug"),icon:_c,isHiddenFor:["desktop"]}),DEBUG_INFO:({toggleShowDebugInfo:t,debugPanelVisible:e})=>({id:"DEBUG_INFO",weight:Rr["debug-info"],type:"CLICK",onClick:t,label:e?j("aria_label_menu_debug_overlay_disable"):j("aria_label_menu_debug_overlay_enable"),ariaLabel:j("menu_debug_overlay"),icon:bp,isHiddenFor:["desktop"]})},Kh=({items:t,context:e,additionalSettingsMenuItems:i})=>{let{isMobile:o}=e;return[...t.map(n=>B4[n](e)),...i.map(n=>({...n,isAdditional:!0}))].filter(n=>!n?.isHiddenFor?.length||!n?.isHiddenFor?.includes("desktop")&&!o||!n?.isHiddenFor?.includes("mobile")&&o).sort(da)};var H4=(t,e)=>{Ed(t,e)},F4=D('<div class="item header svelte-17or3al"><div> </div> <div class="close svelte-17or3al"></div></div>'),U4=D('<div class="settings-menu menu svelte-17or3al" data-testid="settings-menu"><!> <ul class="items" role="menu"></ul></div>'),z4=D('<div class="settings-menu-container svelte-17or3al"><!> <!></div>'),W4={hash:"svelte-17or3al",code:`.settings-menu-container.mobile.svelte-17or3al {width:100%;}.settings-menu-container.svelte-17or3al ul {margin:0;padding:0;list-style-type:none;}.settings-menu-container.svelte-17or3al .menu {background-color:var(--settings-bg);border-radius:var(--settings-radius);transition:opacity 0.2s, visibility 0.2s;overflow:hidden;}.settings-menu-container.svelte-17or3al .menu .item:first-child:not(.mobile) {border-top-right-radius:var(--settings-radius);border-top-left-radius:var(--settings-radius);}.settings-menu-container.svelte-17or3al .menu .item:last-child {border-bottom-right-radius:var(--settings-radius);border-bottom-left-radius:var(--settings-radius);}.settings-menu-container.svelte-17or3al .settings-menu .item:first-child:not(.mobile) {padding-top:6px;}.settings-menu-container.svelte-17or3al .settings-menu .item:last-child:not(.mobile) {padding-bottom:6px;}.settings-menu-container.svelte-17or3al .menu.desktop {position:absolute;right:0;bottom:0;max-width:100%;}.settings-menu.svelte-17or3al {line-height:40px;}.settings-menu.desktop.svelte-17or3al {
302
+ .item.svelte-7dfsuh:not(.mobile) p:where(.svelte-7dfsuh) {line-height:var(--item-label-line-height);font-size:13px;}`};function Hf(t,e){F(e,!0),q(t,i4);let[i,o]=Oe(),n=()=>$(_,"$isFullscreen",i),a=()=>$(f,"$playerSize",i),s=v(e,"isMobile",3,!1),d=v(e,"playerControlsHeight",3,0),l=v(e,"ariaLabelReturnFromSubMenu",19,()=>H("aria_label_submenu_back")),c=v(e,"listRef",15);It(()=>{let te=e.items.findIndex(ge=>ge.selected);c().children[te+1].focus()});let u=ye(),_=u.ui.isFullscreen,f=u.ui.playerSize,y=Y(void 0),x=Y(0),w=Y(0),S=m(()=>s()&&n()?`max-height: ${Math.round(a().height*.6)}px`:s()?"":`max-height: ${a().height-32-r(w)-d()}px; overflow: auto;`),I=m(()=>Math.max(e.minWidth,r(x)));var L=t4();let A;var P=h(L);let T;P.__keydown=[Xy,e];var D=h(P);let Q;D.__click=[Jy,e],D.__keydown=[e4,e];var G=h(D);ma(G,{direction:"left"});var ee=E(G,2),ie=h(ee,!0);g(ee),g(D),at(D,te=>N(y,te),()=>r(y));var oe=E(D,2);fi(oe,17,()=>e.items,sl,(te,ge)=>{var X=ze(),Le=pe(X);{var Ae=He=>{Nf(He,{get item(){return r(ge)},get isMobile(){return s()}})},se=(He,j)=>{{var B=Re=>{Df(Re,{get isMobile(){return s()},get item(){return r(ge)},get openSubMenuList(){return e.openSubMenuList},get refMenuItems(){return e.refMenuItems}})};V(He,Re=>{r(ge).type==="OPEN_SUB_MENU"&&Re(B)},j)}};V(Le,He=>{r(ge).type==="SELECT_VALUE"?He(Ae):He(se,!1)})}b(te,X)}),g(P),at(P,te=>c(te),()=>c()),g(L),C((te,ge,X)=>{A=Z(L,1,"sub-menu menu svelte-7dfsuh",null,A,te),Me(L,"data-testid",`sub-menu-${e.id}`),tt(L,`min-width: ${r(I)}px`),T=Z(P,1,"items svelte-7dfsuh",null,T,ge),tt(P,r(S)),Q=Z(D,1,"item header back svelte-7dfsuh",null,Q,X),Me(D,"aria-label",l()),de(ie,e.title)},[()=>({desktop:!s(),mobile:s()}),()=>({mobile:s()}),()=>({mobile:s()})]),Mr(D,"clientWidth",te=>N(x,te)),Mr(D,"clientHeight",te=>N(w,te)),b(t,L),U(),o()}it(["keydown","click"]);import{noop as o4}from"@vkontakte/videoplayer-shared/evergreen";var n4=(t,e)=>pc(t,e()),r4=(t,e)=>{t.stopPropagation(),e()()},a4=M('<div class="value svelte-1ikfjte"> </div>'),s4=M('<li role="menuitem" tabindex="0" aria-haspopup="true"><div class="icon-wrapper"><!></div> <div class="label"> </div> <!></li>'),l4={hash:"svelte-1ikfjte",code:".value.svelte-1ikfjte {position:relative;opacity:0.7;overflow:hidden;text-overflow:ellipsis;}"};function Ff(t,e){F(e,!0),q(t,l4);let i=v(e,"isMobile",3,!1),o=v(e,"onClick",3,o4),n=v(e,"valueComponent",3,void 0),a=v(e,"ref",15);var s=s4();let d;s.__click=[r4,o],s.__keydown=[n4,o];var l=h(s),c=h(l);{var u=I=>{Ga(I,{get icon(){return e.icon}})},_=I=>{var L=ze();let A=m(()=>e.icon);var P=pe(L);$i(P,()=>r(A),(T,D)=>{D(T,{})}),b(I,L)};V(c,I=>{typeof e.icon=="string"?I(u):I(_,!1)})}g(l);var f=E(l,2),y=h(f,!0);g(f);var x=E(f,2);{var w=I=>{var L=ze();let A=m(n);var P=pe(L);$i(P,()=>r(A),(T,D)=>{D(T,{})}),b(I,L)},S=I=>{var L=a4(),A=h(L,!0);g(L),C(()=>de(A,e.value)),b(I,L)};V(x,I=>{n()?I(w):I(S,!1)})}g(s),at(s,I=>a(I),()=>a()),C(I=>{d=Z(s,1,"item",null,d,I),Me(s,"aria-label",e.ariaLabel),Me(s,"data-testid",e.id),de(y,e.label)},[()=>({mobile:i()})]),b(t,s),U()}it(["click","keydown"]);import{noop as Ch}from"@vkontakte/videoplayer-shared/evergreen";var d4=(t,e)=>{Cs(t,()=>e())},c4=M('<div class="icon icon-error-stub"><div class="inner"></div></div>'),u4=M('<img class="icon" aria-hidden="true">'),p4=M('<li role="menuitem" tabindex="0"><div class="icon-wrapper"><!></div> <div class="label svelte-15ifkac"> </div></li>'),f4={hash:"svelte-15ifkac",code:".label.svelte-15ifkac {overflow:hidden;text-overflow:ellipsis;}"};function Uf(t,e){F(e,!0),q(t,f4);let i=v(e,"isMobile",3,!1),o=v(e,"onClick",3,Ch),n=v(e,"closeSettings",3,Ch),a=Y(!1),s=()=>{N(a,!0)},d=S=>{S?.stopPropagation(),o()(),n()()};var l=p4();let c;l.__click=d,l.__keydown=[d4,d];var u=h(l),_=h(u);{var f=S=>{var I=ze(),L=pe(I);{var A=T=>{var D=c4();b(T,D)},P=T=>{var D=u4();C(()=>Me(D,"src",e.icon)),St("error",D,s),Ia(D),b(T,D)};V(L,T=>{r(a)?T(A):T(P,!1)})}b(S,I)},y=S=>{var I=ze();let L=m(()=>e.icon);var A=pe(I);$i(A,()=>r(L),(P,T)=>{T(P,{})}),b(S,I)};V(_,S=>{typeof e.icon=="string"?S(f):S(y,!1)})}g(u);var x=E(u,2),w=h(x,!0);g(x),g(l),C(S=>{c=Z(l,1,"item",null,c,S),Me(l,"aria-label",e.ariaLabel??e.label),Me(l,"data-testid",e.id),de(w,e.label)},[()=>({mobile:i()})]),b(t,l),U()}it(["click","keydown"]);import{noop as g4}from"@vkontakte/videoplayer-shared/evergreen";var m4=M('<div class="toggle_wrap svelte-17wbjko"><div></div> <div class="toggle-label svelte-17wbjko"></div></div>'),v4={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 zf(t,e){q(t,v4);let i=v(e,"enabled",3,!1);var o=m4(),n=h(o);let a;fe(2),g(o),C(s=>a=Z(n,1,"toggle svelte-17wbjko",null,a,s),[()=>({on:i()})]),b(t,o)}var h4=(t,e,i)=>{Wg(t,e(),o=>i()(o))},_4=(t,e,i)=>{t.stopPropagation(),e()(!i())},b4=M('<div><div class="icon-wrapper"><!></div> <div class="label"> </div> <!></div>'),$4=M('<li role="menuitem" tabindex="0"><!></li>');function qf(t,e){F(e,!0);let i=v(e,"isMobile",3,!1),o=v(e,"onClick",3,g4),n=v(e,"enabled",3,!1),a=v(e,"tooltipText",3,void 0),s=v(e,"maxTooltipWidth",3,void 0);var d=$4();let l;d.__click=[_4,o,n],d.__keydown=[h4,n,o];var c=h(d);Ua(c,{get content(){return a()},get isMobile(){return i()},placement:"left",translateX:10,isFullWidthWrapper:!0,get maxTooltipWidth(){return s()},children:(u,_)=>{var f=b4();let y;var x=h(f),w=h(x);{var S=T=>{Ga(T,{get icon(){return e.icon}})},I=T=>{var D=ze();let Q=m(()=>e.icon);var G=pe(D);$i(G,()=>r(Q),(ee,ie)=>{ie(ee,{})}),b(T,D)};V(w,T=>{typeof e.icon=="string"?T(S):T(I,!1)})}g(x);var L=E(x,2),A=h(L,!0);g(L);var P=E(L,2);zf(P,{get enabled(){return n()}}),g(f),C(T=>{y=Z(f,1,"switch-wrapper",null,y,T),de(A,e.label)},[()=>({mobile:i()})]),b(u,f)},$$slots:{default:!0}}),g(d),C(u=>{l=Z(d,1,"item switch-item",null,l,u),Me(d,"aria-label",e.ariaLabel??e.label),Me(d,"data-testid",e.id)},[()=>({mobile:i()})]),b(t,d),U()}it(["click","keydown"]);import{isValidURL as q4,VideoQuality as Bh}from"@vkontakte/videoplayer-shared/evergreen";var kh=()=>{let t=Y(le([])),e=m(()=>(r(t).length?r(t).at(-1):null)||null);return{get current(){return r(e)},pushSubMenu:i=>{r(t).push(i)},popSubMenu:()=>{N(t,le(r(t).slice(0,-1)))},popAllSubMenus:()=>{N(t,le([]))}}};var y4=M('<div class="quality-icon svelte-t2qk8t"><!></div>'),x4=M('<div class="quality-label svelte-t2qk8t"><span> </span> <!></div>'),w4={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){F(e,!0),q(t,w4);let i=v(e,"isSubCase",3,!1),o=m(()=>hc(e.quality));var n=x4(),a=h(n);let s;var d=h(a,!0);g(a);var l=E(a,2);{var c=u=>{var _=y4();let f=m(()=>r(o));var y=h(_);$i(y,()=>r(f),(x,w)=>{w(x,{})}),g(_),b(u,_)};V(l,u=>{r(o)&&!e.isMobile&&u(c)})}g(n),C(u=>{s=Z(a,1,"svelte-t2qk8t",null,s,u),de(d,e.label)},[()=>({sub:!i(),quality:!e.isMobile})]),b(t,n),U()}import{VideoQuality as S4}from"@vkontakte/videoplayer-shared/evergreen";import{VideoQuality as Th}from"@vkontakte/videoplayer-core/evergreen";var Ih=({quality:t,availableQualities:e})=>{let i=e.find(o=>o.value===t);return i?i.displayValue:t},Eh=({quality:t,availableQualities:e,isAutoQualityEnabled:i})=>{if(!t)return"...";let o=Ih({quality:t,availableQualities:e});return i?t===Th.INVARIANT?H("auto_quality_invariant"):H("auto_quality",{actual:o}):o},Ah=({quality:t,availableQualities:e,prefix:i,onlyPrefix:o})=>t?o||t===Th.INVARIANT?i:`${i}${Ih({quality:t,availableQualities:e})}`:"...";var C4=M('<div class="menu-item-value-wrapper svelte-1j7b2kc"><!></div>'),k4={hash:"svelte-1j7b2kc",code:".menu-item-value-wrapper.svelte-1j7b2kc {line-height:normal;}"};function Ls(t,e){F(e,!0),q(t,k4);let[i,o]=Oe(),n=()=>$(l,"$currentQuality$",i),a=()=>$(c,"$availableQualities$",i),s=()=>$(u,"$isMobile$",i),d=ye(),l=d.state.currentQuality$,c=d.state.availableQualities$,u=d.ui.isMobile,_=" \xB7 ",f=m(()=>e.prefix+(e.selected&&n()!==S4.INVARIANT?_:"")),y=m(()=>Ah({prefix:r(f),quality:n(),availableQualities:a(),onlyPrefix:!e.selected}));var x=C4(),w=h(x);let S=m(()=>e.selected?n():void 0);Ya(w,{get quality(){return r(S)},get label(){return r(y)},get isMobile(){return s()},isSubCase:!0}),g(x),b(t,x),U(),o()}var T4=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")},I4={br:!0,span:!0},Kf=(t,e={})=>{if(!t)return t;let i={...I4,...e},o=Object.keys(i);if(!o.length)return t;let n=T4(o),a=[],s=0;for(let d of t.matchAll(n)){let l=d[0],c=d.groups?.keyhtml||d.groups?.keyi18n||d.groups?.keyhtmlself||d.groups?.keyi18nself||"",{index:u}=d;if(!i[c]){a.push(t.slice(s,u)),s=u+l.length;continue}let _=d.groups?.childrenhtml?Kf(d.groups.childrenhtml,i):"",f=d.groups?.childrenhtml?l.replace(new RegExp(d.groups?.childrenhtml),()=>_||""):l;a.push(t.slice(s,u),f),s=u+l.length}return s===0?t:(a.push(t.slice(s)),a.join(""))};function nd(t,e){F(e,!1);let i=v(e,"message",8),o=Kf(i());fr();var n=ze(),a=pe(n);{var s=d=>{var l=ze(),c=pe(l);ll(c,()=>o,!1,!1),b(d,l)};V(a,d=>{o&&d(s)})}b(t,n),U()}var E4=M('<p class="quality-applies sublabel svelte-1qk3zto"><!></p>'),A4={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 Wf(t,e){F(e,!1),q(t,A4),fr();var i=E4(),o=h(i);let n=cr(()=>H("quality_applience",{action:`<span>${H("quality_applience_action")}</span>`}));nd(o,{get message(){return r(n)}}),g(i),b(t,i),U()}var Mh=({isAutoQualityEnabled:t,trafficSavingEnabled:e,highQualityEnabled:i})=>{let o=!t&&!e&&!i;return{id:"QUALITY_OTHER",type:"OPEN_SUB_MENU",selected:o,valueComponent:Ls,valueComponentParams:{prefix:H("other_quality"),selected:o},children:"QUALITY"}},Qf=({appliesTo:t,labelWithQuality:e,selected:i},{selectQuality:o})=>({id:"QUALITY_AUTO",type:"SELECT_VALUE",value:"auto",label:H("auto_quality_limit"),valueComponent:e?Ls:void 0,valueComponentParams:{prefix:H("auto_quality_limit"),selected:i},selectItem:()=>o("auto",t),selected:i}),Lh=()=>({id:"QUALITY_APPLIENCE",type:"OPEN_SUB_MENU",valueComponent:Wf,bottomBordered:!0,children:"QUALITY_APPLIENCE"}),Gf=({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?Ls:void 0,valueComponentParams:{prefix:H("high_quality"),selected:i},sublabel:H("high_quality_description")}),jf=({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?Ls:void 0,valueComponentParams:{prefix:H("traffic_saving_quality"),selected:i},sublabel:H("traffic_saving_quality_description")});var Lc=(t,e)=>String(e.findIndex(i=>i.id===t.id)+1),Vc=(t,e)=>{if(!t)return"";let{language:i,label:o}=t,n;if(i==="und"?n=void 0:i&&(n=wc(i)??i),o&&i&&n){let s=e.filter(d=>d.label===o&&d.language===i);if(s.length===1)return H("audio_stream_display_language_label",{language:n,label:o});{let d=Lc(t,s);return H("audio_stream_display_language_label_index",{language:n,label:o,index:d})}}if(o){let s=e.filter(d=>d.label===o);if(s.length===1)return o;{let d=Lc(t,s);return H("audio_stream_display_label_index",{label:o,index:d})}}if(i&&n){let s=e.filter(d=>d.language===i);if(s.length===1)return n;{let d=Lc(t,s);return H("audio_stream_display_language_index",{language:n,index:d})}}let a=Lc(t,e);return H("audio_stream_display_unknown",{index:a})};var P4={QUALITY_DETAILS:t=>{let{isAutoQualityEnabled:e,isAutoQualityAvailable:i,trafficSavingEnabled:o,highQualityEnabled:n}=t,a=[];return i&&a.push({handler:Qf,selected:e&&!o&&!n||!1}),a.push({handler:jf,selected:o},{handler:Gf,selected:n}),{title:H("submenu_quality"),id:"QUALITY_DETAILS",items:[Lh(t),...a.map(({handler:s,selected:d})=>s({labelWithQuality:!0,appliesTo:"to-video",selected:d},t)),Mh(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=>{let{closeSettingsMenu:e}=t;return{id:"QUALITY_APPLIENCE",title:H("default_quality_for_any_video"),closeSettingsMenu:e,items:[{handler:Qf,selected:tc()?.type==="auto_quality"},{handler:jf,selected:tc()?.type==="traffic_saving"},{handler:Gf,selected:tc()?.type==="high_quality"}].map(({handler:i,selected:o})=>i({labelWithQuality:!1,appliesTo:"as-default",selected:o},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?.id,label:Vc(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}))})},Vh=({subMenuId:t,context:e})=>t?[P4[t](e)]:[];var M4=me('<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 Yf(t,e){let i=xe(e,["$$slots","$$events","$$legacy","children"]);var o=M4();let n;var a=h(o);ce(a,()=>e.children??J),fe(),g(o),C(()=>n=he(o,n,{xmlns:"http://www.w3.org/2000/svg",width:"18",height:"17",fill:"none","aria-hidden":"true","data-testid":"traffic-saving-icon",role:"img",...i})),b(t,o)}var L4=me('<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 Zf(t,e){let i=xe(e,["$$slots","$$events","$$legacy","children"]);var o=L4();let n;var a=h(o);ce(a,()=>e.children??J),fe(),g(o),C(()=>n=he(o,n,{xmlns:"http://www.w3.org/2000/svg",width:"18",height:"15",fill:"none","aria-hidden":"true","data-testid":"audio-languages-icon",role:"img",...i})),b(t,o)}var V4=me('<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 Xf(t,e){let i=xe(e,["$$slots","$$events","$$legacy","children"]);var o=V4();let n;var a=h(o);ce(a,()=>e.children??J),fe(),g(o),C(()=>n=he(o,n,{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24","aria-hidden":"true","data-testid":"play-speed-icon",role:"img",...i})),b(t,o)}var R4=me('<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 Jf(t,e){let i=xe(e,["$$slots","$$events","$$legacy","children"]);var o=R4();let n;var a=h(o);ce(a,()=>e.children??J),fe(),g(o),C(()=>n=he(o,n,{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"19",fill:"none","aria-hidden":"true","data-testid":"download-icon",role:"img",...i})),b(t,o)}var B4=me('<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 em(t,e){let i=xe(e,["$$slots","$$events","$$legacy","children"]);var o=B4();let n;var a=h(o);ce(a,()=>e.children??J),fe(),g(o),C(()=>n=he(o,n,{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none","aria-hidden":"true","data-testid":"report-icon",role:"img",...i})),b(t,o)}var N4=me('<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 Rc(t,e){let i=xe(e,["$$slots","$$events","$$legacy","children"]);var o=N4();let n;var a=h(o);ce(a,()=>e.children??J),fe(),g(o),C(()=>n=he(o,n,{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none","aria-hidden":"true","data-testid":"copy-icon",role:"img",...i})),b(t,o)}var D4=me('<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 tm(t,e){let i=xe(e,["$$slots","$$events","$$legacy","children"]);var o=D4();let n;var a=h(o);ce(a,()=>e.children??J),fe(),g(o),C(()=>n=he(o,n,{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none","aria-hidden":"true","data-testid":"info-icon",role:"img",...i})),b(t,o)}var O4=M('<div class="menu-item-value-wrapper svelte-1j7b2kc"><!></div>'),H4={hash:"svelte-1j7b2kc",code:".menu-item-value-wrapper.svelte-1j7b2kc {line-height:normal;}"};function im(t,e){F(e,!0),q(t,H4);let[i,o]=Oe(),n=()=>$(c,"$currentQuality$",i),a=()=>$(u,"$availableQualities$",i),s=()=>$(_,"$isAutoQualityEnabled$",i),d=()=>$(f,"$isMobile$",i),l=ye(),c=l.state.currentQuality$,u=l.state.availableQualities$,_=l.state.isAutoQualityEnabled$,f=l.ui.isMobile,y=m(()=>Eh({quality:n(),availableQualities:a(),isAutoQualityEnabled:s()}));var x=O4(),w=h(x);Ya(w,{get quality(){return n()},get label(){return r(y)},get isMobile(){return d()}}),g(x),b(t,x),U(),o()}var U4={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:Al,label:H("menu_quality"),value:e,valueComponent:im,weight:gr["quality-settings"],children:i?"QUALITY_DETAILS":"QUALITY"}},TRAFFIC_SAVING_SWITCH:({trafficSavingEnabled:t,toggleTrafficSaving:e})=>({id:"TRAFFIC_SAVING_SWITCH",weight:gr["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:Yf,label:H("menu_traffic_saving"),enabled:t,tooltipText:H("traffic_saving_helper_text"),maxTooltipWidth:175}),AUDIO_LANGUAGES:({currentAudioStream:t,availableAudioStreams:e})=>{let i=Vc(t,e);return{id:"AUDIO_LANGUAGES",weight:gr["audio-language-settings"],type:"OPEN_SUB_MENU",ariaLabel:H("aria_label_menu_audio_languages",{actual:i}),icon:Zf,label:H("menu_audio_languages"),value:i,children:"AUDIO_LANGUAGES"}},PLAYBACK_RATE:({availablePlaybackRates:t,currentPlaybackRate:e})=>{let i=t.find(o=>o.value===e)?.displayValue||"";return{id:"PLAYBACK_RATE",weight:gr["playback-rate-settings"],type:"OPEN_SUB_MENU",ariaLabel:H("aria_label_menu_rate",{actual:i}),icon:Xf,label:H("menu_playback_rate"),value:`${e}x`,children:"PLAYBACK_RATE_SUB_MENU"}},SUBTITLES:({currentSubtitle:t})=>({id:"SUBTITLES",weight:gr["subtitles-settings"],type:"OPEN_SUB_MENU",ariaLabel:H("aria_label_menu_subtitle",{actual:t.displayValue}),icon:Pl,label:H("subtitles_caption"),value:t.displayValue,children:"SUBTITLES"}),DOWNLOAD:({onDownloadClick:t})=>({id:"DOWNLOAD",weight:gr.download,type:"CLICK",onClick:t,label:H("download_video_caption"),ariaLabel:H("aria_label_menu_download"),icon:Jf}),SHOW_SUPPORT:({onReportProblemClick:t})=>({id:"SHOW_SUPPORT",weight:gr.report,type:"CLICK",onClick:t,label:H("menu_report"),ariaLabel:`${H("menu_report")}. ${H("aria_label_new_tab_alert")}`,icon:em,isHiddenFor:["desktop"]}),COPY_DATA:({onCopyDataClick:t})=>({id:"COPY_DATA",weight:gr["copy-data"],type:"CLICK",onClick:t,label:H("menu_copy_debug"),ariaLabel:H("menu_copy_debug"),icon:Rc,isHiddenFor:["desktop"]}),SAVE_TRACE_INFO:({onSaveTraceDataClick:t})=>({id:"SAVE_TRACE_INFO",weight:gr["save-trace-info"],type:"CLICK",onClick:t,label:H("menu_save_debug"),ariaLabel:H("menu_save_debug"),icon:Rc,isHiddenFor:["desktop"]}),DEBUG_INFO:({toggleShowDebugInfo:t,debugPanelVisible:e})=>({id:"DEBUG_INFO",weight:gr["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:tm,isHiddenFor:["desktop"]})},Rh=({items:t,context:e,additionalSettingsMenuItems:i})=>{let{isMobile:o}=e;return[...t.map(n=>U4[n](e)),...i.map(n=>({...n,isAdditional:!0}))].filter(n=>!n?.isHiddenFor?.length||!n?.isHiddenFor?.includes("desktop")&&!o||!n?.isHiddenFor?.includes("mobile")&&o).sort(Da)};var K4=(t,e)=>{uc(t,e)},W4=M('<div><div> </div> <div class="close svelte-17or3al"></div></div>'),Q4=M('<div data-testid="settings-menu"><!> <ul role="menu"></ul></div>'),G4=M("<div><!> <!></div>"),j4={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 {
298
303
  /* \u043D\u0443\u0436\u043D\u043E \u0447\u0442\u043E\u0431 \u043C\u0435\u043D\u044E \u043D\u0435 \u0441\u043A\u0430\u043A\u0430\u043B\u043E \u0432 \u0448\u0438\u0440\u0438\u043D\u0435 \u043F\u0440\u0438 \u0441\u043C\u0435\u043D\u0435 \u0440\u0430\u0437\u0440\u0435\u0448\u0435\u043D\u0438\u044F, \u043E\u0441\u043E\u0431\u043E \u0430\u043A\u0442\u0443\u0430\u043B\u044C\u043D\u043E \u043F\u0440\u0438 \u0430\u0432\u0442\u043E \u0440\u0435\u0436\u0438\u043C\u0435 */min-width:300px;}.settings-menu-container.svelte-17or3al .menu.mobile {width:100%;background:var(--mobile-settings-bg);font-size:15px;line-height:50px;}.settings-menu-container.svelte-17or3al .menu.mobile.hidden {display:none;}.settings-menu-container.svelte-17or3al .menu .item:not(.switch-item),
299
304
  .settings-menu-container.svelte-17or3al .menu .switch-wrapper {align-items:center;color:var(--white);cursor:pointer;display:flex;justify-content:flex-end;white-space:nowrap;position:relative;}.settings-menu-container.svelte-17or3al .menu .item:hover {background-color:var(--settings-item-bg-hover);}.settings-menu-container.svelte-17or3al .menu .item.mobile:hover {background:var(--mobile-settings-bg);}.settings-menu.svelte-17or3al .item:not(.switch-item),
300
305
  .settings-menu.svelte-17or3al .switch-wrapper {padding:0 32px 0 18px;}.settings-menu.svelte-17or3al .item.mobile:not(.switch-item),
301
- .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 Ml(t,e){if(new.target)return T({component:Ml,...t});I(e,!0),oe(t,W4);let[i,o]=Je(),n=()=>C(Ue,"$settingsMenuVisible",i),s=()=>C(we,"$settingsMenuOpenedByKeyboard",i),a=()=>C(tt,"$debugPanelVisible",i),l=()=>C(st,"$isMobile",i),c=()=>C(ee,"$playerSize",i),p=()=>C(rt,"$hasMpegSources$",i),f=()=>C(ct,"$mobileNotReportControlHidden$",i),v=()=>C(Re,"$autoQualityLimitingAvailable$",i),m=()=>C(ue,"$availableSubtitlesList$",i),g=()=>C(_e,"$isLiveWithPlaybackSpeed",i),b=()=>C(le,"$availableAudioStreams$",i),w=()=>C(G,"$availablePlaybackRates$",i),k=()=>C(te,"$currentAudioStream$",i),V=()=>C(Ge,"$currentPlaybackRate$",i),F=()=>C(et,"$trafficSavingEnabled",i),M=()=>C(z,"$currentQuality$",i),H=()=>C(Y,"$isAutoQualityEnabled$",i),S=()=>C(Ve,"$currentSubtitle$",i),q=()=>C(dt,"$additionalSettingsMenuItems$",i),W=()=>C(ce,"$isAutoQualityAvailable$",i),U=()=>C(je,"$availableQualities$",i),ie=()=>C(yt,"$highQualityEnabled",i),se=u(e,"ref",15,void 0),fe=u(e,"supportLink",7),J=u(e,"playerControlsHeight",7,0),xe=u(e,"returnFocus",7),Ce=de(ke({})),X=de(ke({})),me=Be(),he=Qt(),te=me.state.audioStream$,le=me.state.availableAudioStreams$,z=me.state.currentQuality$,je=me.state.availableQualities$,Re=me.state.autoQualityLimitingAvailable$,Y=me.state.isAutoQualityEnabled$,ce=me.state.isAutoQualityAvailable$,Ge=me.state.currentPlaybackRate$,G=me.state.availablePlaybackRates$,Ve=me.state.currentSubtitle$,ue=me.state.availableSubtitlesList$,We=me.state.canDownload,rt=me.state.hasMpegSources$,Ue=me.ui.settingsMenu.visible$,we=me.ui.settingsMenu.openedByBtnKeyboard$,Me=me.ui.settingsMenu.ref$,st=me.ui.isMobile,ct=me.ui.mobileNotReportControlHidden$,_e=me.state.canChangePlaybackSpeed$,et=me.state.trafficSavingEnabled$,yt=me.state.highQualityEnabled$,ee=me.ui.playerSize,tt=me.ui.debugPanelVisible,$t=me.state.isInteractiveTime$,dt=me.ui.additionalSettingsMenuItems$,ge=me.ui.t,Pe=me.actions.internal.downloadVideo,$e=me.actions.internal.closeSettingsMenu,Qe=me.actions.internal.openSettingsSubMenu,ze=me.actions.internal.closeSettingsSubMenu,ae=de(!1),gt=de(void 0),Ze=Bh();ot(()=>{!n()&&Ze.current&&(ze(r(X)[Ze.current]),Ze.popAllSubMenus())}),ot(()=>{n()||K(gt,void 0)}),ot(()=>{!Ze.current&&r(gt)&&jg(r(Ce),r(gt))}),ot(()=>{se()&&Me.set(se())});async function Tt(it){Ze.pushSubMenu(it),await to(),Qe(it,r(X)[it])}function Vt(it){it?.stopPropagation(),s()||xe()?.(),$e(),K(ae,!1)}function Zt(it,Bt){me.actions.internal.setQuality(it,{appliesTo:Bt}),Vt()}function at(it){me.actions.internal.setAudioStream(it),Vt()}function bt(it,Bt){me.actions.internal.setTrafficSavingEnabled(it,Bt),he.features.qualityDetailsSubMenuEnabled&&Vt()}function Rt(it,Bt){me.actions.internal.setHighQualityEnabled(it,Bt),Vt()}function Lt(it){me.actions.internal.setPlaybackRate(it),Vt()}function Xe(it){me.actions.internal.setSubtitle(it),Vt()}function lt(){Pe()}function Nt(){O4(fe())&&window.open(fe(),"_blank"),me.actions.internal.reportProblem(),me.actions.internal.pause()}function ii(){Ya(me.actions.internal.getDebugTextData())}let gi=()=>{let it=me.actions.internal.getTraceTextData(),Bt=new Blob([...it],{type:"application/json"}),Zi=window.URL.createObjectURL(Bt);na(Zi,"vk_player_trace_info","json")};function so(){tt.set(!a())}function hi(){K(ae,!0)}function ao(){K(ae,!1)}function B(){return l()?`max-height: ${Math.round(c().height*.6)}px`:`max-height: ${c().height-32-J()}px; overflow: auto;`}let Wt=_(()=>We&&p()&&!f()),oi=_(()=>he.features.trafficSaving&&!f()&&v()&&!he.features.qualityDetailsSubMenuEnabled),Ni=_(()=>m().length>0&&!f()),fi=_(()=>!!g()&&!f()),li=_(()=>he.features.audioLanguages&&b().length>=2&&!f()),lo=_(()=>!f());Ut(()=>$t.subscribe(it=>{it&&!l()&&!r(ae)&&!s()&&Vt()}));let rn=_(()=>{let it=[r(lo)&&"QUALITY_SETTINGS",r(li)&&"AUDIO_LANGUAGES",r(fi)&&"PLAYBACK_RATE",r(Ni)&&"SUBTITLES",r(oi)&&"TRAFFIC_SAVING_SWITCH",r(Wt)&&"DOWNLOAD",he.showSupport&&"SHOW_SUPPORT","COPY_DATA",he.features.saveTraceInfoToFile&&"SAVE_TRACE_INFO","DEBUG_INFO"].filter(Bt=>!!Bt);return Kh({items:it,context:{qualityDetailsSubMenuEnabled:he.features.qualityDetailsSubMenuEnabled,availablePlaybackRates:w(),currentAudioStream:k(),availableAudioStreams:b(),currentPlaybackRate:V(),selectPlaybackRate:Lt,trafficSavingEnabled:F(),toggleTrafficSaving:bt,currentQuality:M()||Qh.INVARIANT,isAutoQualityEnabled:H()||!1,currentSubtitle:S(),isMobile:l(),onDownloadClick:lt,debugPanelVisible:a(),onCopyDataClick:ii,onReportProblemClick:Nt,onSaveTraceDataClick:gi,toggleShowDebugInfo:so},additionalSettingsMenuItems:q()})}),co=_(()=>qh({subMenuId:Ze.current,context:{availablePlaybackRates:w(),selectPlaybackRate:Lt,trafficSavingEnabled:F(),toggleTrafficSaving:bt,currentQuality:M()||Qh.INVARIANT,isAutoQualityEnabled:H()||!1,isAutoQualityAvailable:W()||!1,availableQualities:U(),highQualityEnabled:ie(),toggleHighQuality:Rt,availableAudioStreams:b(),availableSubtitlesList:m(),closeSettingsMenu:$e,currentAudioStream:k(),isMobile:l(),selectAudioLanguage:at,selectQuality:Zt,selectSubtitle:Xe}}));var ho=z4(),sn=y(ho);{var sr=it=>{var Bt=U4();Bt.__keydown=[H4,$e];var Zi=y(Bt);{var an=Bi=>{var Et=F4(),_i=y(Et),Ti=y(_i,!0);$(_i);var $o=N(_i,2);$o.__click=Vt,$(Et),L(zt=>{ne(Et,"mobile",l()),Se(Ti,zt)},[()=>ge("submenu_settings")]),x(Bi,Et)};O(Zi,Bi=>{l()&&Bi(an)})}var _o=N(Zi,2);vi(_o,21,()=>r(rn),Fi,(Bi,Et)=>{var _i=Ye(),Ti=ye(_i);{var $o=Di=>{ap(Di,{get isMobile(){return l()},get id(){return r(Et).id},get icon(){return r(Et).icon},get label(){return r(Et).label},get ariaLabel(){return r(Et).ariaLabel},get value(){return r(Et).value},get valueComponent(){return r(Et).valueComponent},onClick:()=>{Tt(r(Et).children),K(gt,ke(r(Et).id))},get ref(){return r(Ce)[r(Et).id]},set ref(Ii){r(Ce)[r(Et).id]=Ii}})},zt=Di=>{var Ii=Ye(),Pn=ye(Ii);{var An=bo=>{cp(bo,{get isMobile(){return l()},get id(){return r(Et).id},get onClick(){return r(Et).onClick},get icon(){return r(Et).icon},get label(){return r(Et).label},get ariaLabel(){return r(Et).ariaLabel},closeSettings:Vt})},zo=bo=>{var uo=Ye(),Mn=ye(uo);{var Ln=yo=>{up(yo,{get isMobile(){return l()},get id(){return r(Et).id},get onClick(){return r(Et).onClick},get icon(){return r(Et).icon},get label(){return r(Et).label},get ariaLabel(){return r(Et).ariaLabel},get enabled(){return r(Et).enabled},get tooltipText(){return r(Et).tooltipText},get maxTooltipWidth(){return r(Et).maxTooltipWidth}})};O(Mn,yo=>{r(Et).type==="SWITCH"&&yo(Ln)},!0)}x(bo,uo)};O(Pn,bo=>{r(Et).type==="CLICK"?bo(An):bo(zo,!1)},!0)}x(Di,Ii)};O(Ti,Di=>{r(Et).type==="OPEN_SUB_MENU"?Di($o):Di(zt,!1)})}x(Bi,_i)}),$(_o),vt(_o,Bi=>se(Bi),()=>se()),$(Bt),L(Bi=>{ne(Bt,"desktop",!l()),ne(Bt,"mobile",l()),ne(Bt,"hidden",!!Ze.current),pe(_o,"style",Bi),ne(_o,"mobile",l())},[B]),Dt("mouseenter",Bt,hi),Dt("mouseleave",Bt,ao),x(it,Bt)};O(sn,it=>{n()&&it(sr)})}var En=N(sn,2);vi(En,17,()=>r(co),it=>it.id,(it,Bt)=>{let Zi=_(()=>r(Bt).minWidth??137);sp(it,{get isMobile(){return l()},get playerControlsHeight(){return J()},get returnFromSubMenu(){return Ze.popSubMenu},get id(){return r(Bt).id},get title(){return r(Bt).title},closeSettingsMenu:$e,openSubMenuList:Tt,get items(){return r(Bt).items},get minWidth(){return r(Zi)},get refMenuItems(){return r(Ce)},get listRef(){return r(X)[r(Bt).id]},set listRef(an){r(X)[r(Bt).id]=an}})}),$(ho),L(()=>{ne(ho,"mobile",l()),ne(ho,"hidden",!n())}),x(t,ho);var ko=E({get ref(){return se()},set ref(it=void 0){se(it),d()},get supportLink(){return fe()},set supportLink(it){fe(it),d()},get playerControlsHeight(){return J()},set playerControlsHeight(it=0){J(it),d()},get returnFocus(){return xe()},set returnFocus(it){xe(it),d()},$set:A,$on:(it,Bt)=>P(e,it,Bt)});return o(),ko}pt(["keydown","click"]);var q4=t=>t;function Gh(t,{delay:e=0,duration:i=400,easing:o=q4}={}){let n=+getComputedStyle(t).opacity;return{delay:e,duration:i,easing:o,css:s=>`opacity: ${s*n}`}}var K4=D('<button class="button svelte-1sbbskl"> </button>'),Q4={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 xp(t,e){if(new.target)return T({component:xp,...t});I(e,!0),oe(t,Q4);let i=u(e,"label",7),o=u(e,"onClick",7);var n=K4();n.__click=function(...a){o()?.apply(this,a)};var s=y(n,!0);return $(n),L(()=>Se(s,i())),x(t,n),E({get label(){return i()},set label(a){i(a),d()},get onClick(){return o()},set onClick(a){o(a),d()},$set:A,$on:(a,l)=>P(e,a,l)})}pt(["click"]);var G4=D('<div class="container svelte-1es7arp"><div class="notification svelte-1es7arp"><div><p class="description svelte-1es7arp"><!></p> <!></div> <!></div></div>'),Y4={hash:"svelte-1es7arp",code:`.container.svelte-1es7arp {position:absolute;left:0;right:0;top:20px;display:flex;justify-content:center;
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 rd(t,e){F(e,!0),q(t,j4);let[i,o]=Oe(),n=()=>$(je,"$settingsMenuVisible",i),a=()=>$(qe,"$settingsMenuOpenedByKeyboard",i),s=()=>$(nt,"$debugPanelVisible",i),d=()=>$(Pe,"$isMobile",i),l=()=>$(kt,"$playerSize",i),c=()=>$(Ie,"$hasMpegSources$",i),u=()=>$(Ve,"$mobileNotReportControlHidden$",i),_=()=>$(B,"$autoQualityLimitingAvailable$",i),f=()=>$(R,"$availableSubtitlesList$",i),y=()=>$(ct,"$isLiveWithPlaybackSpeed",i),x=()=>$(se,"$availableAudioStreams$",i),w=()=>$(Be,"$availablePlaybackRates$",i),S=()=>$(Ae,"$currentAudioStream$",i),I=()=>$(Ce,"$currentPlaybackRate$",i),L=()=>$(gt,"$trafficSavingEnabled",i),A=()=>$(He,"$currentQuality$",i),P=()=>$(Re,"$isAutoQualityEnabled$",i),T=()=>$(ue,"$currentSubtitle$",i),D=()=>$(Et,"$additionalSettingsMenuItems$",i),Q=()=>$(_e,"$isAutoQualityAvailable$",i),G=()=>$(j,"$availableQualities$",i),ee=()=>$(ot,"$highQualityEnabled",i),ie=v(e,"ref",15,void 0),oe=v(e,"playerControlsHeight",3,0),te=le({}),ge=le({}),X=ye(),Le=Vt(),Ae=X.state.audioStream$,se=X.state.availableAudioStreams$,He=X.state.currentQuality$,j=X.state.availableQualities$,B=X.state.autoQualityLimitingAvailable$,Re=X.state.isAutoQualityEnabled$,_e=X.state.isAutoQualityAvailable$,Ce=X.state.currentPlaybackRate$,Be=X.state.availablePlaybackRates$,ue=X.state.currentSubtitle$,R=X.state.availableSubtitlesList$,be=X.state.canDownload,Ie=X.state.hasMpegSources$,je=X.ui.settingsMenu.visible$,qe=X.ui.settingsMenu.openedByBtnKeyboard$,ke=X.ui.settingsMenu.ref$,Pe=X.ui.isMobile,Ve=X.ui.mobileNotReportControlHidden$,ct=X.state.canChangePlaybackSpeed$,gt=X.state.trafficSavingEnabled$,ot=X.state.highQualityEnabled$,kt=X.ui.playerSize,nt=X.ui.debugPanelVisible,ut=X.state.isInteractiveTime$,Et=X.ui.additionalSettingsMenuItems$,we=X.ui.t,Ne=X.actions.internal.downloadVideo,Ye=X.actions.internal.closeSettingsMenu,W=X.actions.internal.openSettingsSubMenu,re=X.actions.internal.closeSettingsSubMenu,ne=Y(!1),Fe=Y(void 0),Ge=kh();Qe(()=>{!n()&&Ge.current&&(re(ge[Ge.current]),Ge.popAllSubMenus())}),Qe(()=>{n()||N(Fe,void 0)}),Qe(()=>{!Ge.current&&r(Fe)&&qg(te,r(Fe))}),Qe(()=>{ie()&&ke.set(ie())});async function yt(bt){Ge.pushSubMenu(bt),await Xi(),W(bt,ge[bt])}function Ke(bt){bt?.stopPropagation(),a()||e.returnFocus?.(),Ye(),N(ne,!1)}function Ze(bt,Bt){X.actions.internal.setQuality(bt,{appliesTo:Bt}),Ke()}function Ee(bt){X.actions.internal.setAudioStream(bt),Ke()}function dt(bt,Bt){X.actions.internal.setTrafficSavingEnabled(bt,Bt),Le.features.qualityDetailsSubMenuEnabled&&Ke()}function Rt(bt,Bt){X.actions.internal.setHighQualityEnabled(bt,Bt),Ke()}function Gt(bt){X.actions.internal.setPlaybackRate(bt),Ke()}function Zt(bt){X.actions.internal.setSubtitle(bt),Ke()}function ui(){Ne()}function Fi(){q4(e.supportLink)&&window.open(e.supportLink,"_blank"),X.actions.internal.reportProblem(),X.actions.internal.pause()}function Do(){xs(X.actions.internal.getDebugTextData())}let nn=()=>{let bt=X.actions.internal.getTraceTextData(),Bt=new Blob([...bt],{type:"application/json"}),po=window.URL.createObjectURL(Bt);Ma(po,"vk_player_trace_info","json")};function io(){nt.set(!s())}function rn(){N(ne,!0)}function Oo(){N(ne,!1)}function Ho(){return d()?`max-height: ${Math.round(l().height*.6)}px`:`max-height: ${l().height-32-oe()}px; overflow: auto;`}let co=m(()=>be&&c()&&!u()),z=m(()=>Le.features.trafficSaving&&!u()&&_()&&!Le.features.qualityDetailsSubMenuEnabled),zt=m(()=>f().length>0&&!u()),yi=m(()=>!!y()&&!u()),Ui=m(()=>Le.features.audioLanguages&&x().length>=2&&!u()),Xt=m(()=>!u());It(()=>ut.subscribe(bt=>{bt&&!d()&&!r(ne)&&!a()&&Ke()}));let Jt=m(()=>{let bt=[r(Xt)&&"QUALITY_SETTINGS",r(Ui)&&"AUDIO_LANGUAGES",r(yi)&&"PLAYBACK_RATE",r(zt)&&"SUBTITLES",r(z)&&"TRAFFIC_SAVING_SWITCH",r(co)&&"DOWNLOAD",Le.showSupport&&"SHOW_SUPPORT","COPY_DATA",Le.features.saveTraceInfoToFile&&"SAVE_TRACE_INFO","DEBUG_INFO"].filter(Bt=>!!Bt);return Rh({items:bt,context:{qualityDetailsSubMenuEnabled:Le.features.qualityDetailsSubMenuEnabled,availablePlaybackRates:w(),currentAudioStream:S(),availableAudioStreams:x(),currentPlaybackRate:I(),selectPlaybackRate:Gt,trafficSavingEnabled:L(),toggleTrafficSaving:dt,currentQuality:A()||Bh.INVARIANT,isAutoQualityEnabled:P()||!1,currentSubtitle:T(),isMobile:d(),onDownloadClick:ui,debugPanelVisible:s(),onCopyDataClick:Do,onReportProblemClick:Fi,onSaveTraceDataClick:nn,toggleShowDebugInfo:io},additionalSettingsMenuItems:D()})}),Yn=m(()=>Vh({subMenuId:Ge.current,context:{availablePlaybackRates:w(),selectPlaybackRate:Gt,trafficSavingEnabled:L(),toggleTrafficSaving:dt,currentQuality:A()||Bh.INVARIANT,isAutoQualityEnabled:P()||!1,isAutoQualityAvailable:Q()||!1,availableQualities:G(),highQualityEnabled:ee(),toggleHighQuality:Rt,availableAudioStreams:x(),availableSubtitlesList:f(),closeSettingsMenu:Ye,currentAudioStream:S(),isMobile:d(),selectAudioLanguage:Ee,selectQuality:Ze,selectSubtitle:Zt}}));var yo=G4();let an;var xo=h(yo);{var Mt=bt=>{var Bt=Q4();let po;Bt.__keydown=[K4,Ye];var ki=h(Bt);{var An=Wt=>{var mt=W4();let ei;var zi=h(mt),di=h(zi,!0);g(zi);var sn=E(zi,2);sn.__click=Ke,g(mt),C((mi,no)=>{ei=Z(mt,1,"item header svelte-17or3al",null,ei,mi),de(di,no)},[()=>({mobile:d()}),()=>we("submenu_settings")]),b(Wt,mt)};V(ki,Wt=>{d()&&Wt(An)})}var oo=E(ki,2);let wo;fi(oo,21,()=>r(Jt),Wt=>Wt.id,(Wt,mt)=>{var ei=ze(),zi=pe(ei);{var di=mi=>{Ff(mi,{get isMobile(){return d()},get id(){return r(mt).id},get icon(){return r(mt).icon},get label(){return r(mt).label},get ariaLabel(){return r(mt).ariaLabel},get value(){return r(mt).value},get valueComponent(){return r(mt).valueComponent},onClick:()=>{yt(r(mt).children),N(Fe,le(r(mt).id))},get ref(){return te[r(mt).id]},set ref(no){te[r(mt).id]=no}})},sn=(mi,no)=>{{var So=vi=>{Uf(vi,{get isMobile(){return d()},get id(){return r(mt).id},get onClick(){return r(mt).onClick},get icon(){return r(mt).icon},get label(){return r(mt).label},get ariaLabel(){return r(mt).ariaLabel},closeSettings:Ke})},ln=(vi,Pn)=>{{var Fo=fo=>{qf(fo,{get isMobile(){return d()},get id(){return r(mt).id},get onClick(){return r(mt).onClick},get icon(){return r(mt).icon},get label(){return r(mt).label},get ariaLabel(){return r(mt).ariaLabel},get enabled(){return r(mt).enabled},get tooltipText(){return r(mt).tooltipText},get maxTooltipWidth(){return r(mt).maxTooltipWidth}})};V(vi,fo=>{r(mt).type==="SWITCH"&&fo(Fo)},Pn)}};V(mi,vi=>{r(mt).type==="CLICK"?vi(So):vi(ln,!1)},no)}};V(zi,mi=>{r(mt).type==="OPEN_SUB_MENU"?mi(di):mi(sn,!1)})}b(Wt,ei)}),g(oo),at(oo,Wt=>ie(Wt),()=>ie()),g(Bt),C((Wt,mt,ei)=>{po=Z(Bt,1,"settings-menu menu svelte-17or3al",null,po,Wt),wo=Z(oo,1,"items",null,wo,mt),tt(oo,ei)},[()=>({desktop:!d(),mobile:d(),hidden:!!Ge.current}),()=>({mobile:d()}),Ho]),St("mouseenter",Bt,rn),St("mouseleave",Bt,Oo),b(bt,Bt)};V(xo,bt=>{n()&&bt(Mt)})}var uo=E(xo,2);fi(uo,17,()=>r(Yn),bt=>bt.id,(bt,Bt)=>{let po=m(()=>r(Bt).minWidth??137);Hf(bt,{get isMobile(){return d()},get playerControlsHeight(){return oe()},get returnFromSubMenu(){return Ge.popSubMenu},get id(){return r(Bt).id},get title(){return r(Bt).title},closeSettingsMenu:Ye,openSubMenuList:yt,get items(){return r(Bt).items},get minWidth(){return r(po)},get refMenuItems(){return te},get listRef(){return ge[r(Bt).id]},set listRef(ki){ge[r(Bt).id]=ki}})}),g(yo),C(bt=>an=Z(yo,1,"settings-menu-container svelte-17or3al",null,an,bt),[()=>({mobile:d(),hidden:!n()})]),b(t,yo),U(),o()}it(["keydown","click"]);var Y4=t=>t;function Nh(t,{delay:e=0,duration:i=400,easing:o=Y4}={}){let n=+getComputedStyle(t).opacity;return{delay:e,duration:i,easing:o,css:a=>`opacity: ${a*n}`}}var Z4=M('<button class="button svelte-1sbbskl"> </button>'),X4={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 om(t,e){q(t,X4);var i=Z4();i.__click=function(...n){e.onClick?.apply(this,n)};var o=h(i,!0);g(i),C(()=>de(o,e.label)),b(t,i)}it(["click"]);var J4=M('<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;
302
307
  /**
303
308
  * \u0415\u0441\u043B\u0438 \u043D\u0435 \u043E\u0442\u043A\u043B\u044E\u0447\u0438\u043C \u0443 \u043A\u043E\u043D\u0442\u0435\u0439\u043D\u0435\u0440\u0430 \u0441\u043E\u0431\u044B\u0442\u0438\u044F, \u0442\u043E \u043D\u0435 \u0441\u043C\u043E\u0436\u0435\u043C \u043F\u043E \u044D\u0442\u043E\u0439 \u043E\u0431\u043B\u0430\u0441\u0442\u0438 \u0432\u044B\u0437\u0432\u0430\u0442\u044C \u043A\u043E\u043D\u0442\u0435\u043A\u0441\u0442\u043D\u043E\u0435 \u043C\u0435\u043D\u044E.
304
- */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 Ll(t,e){if(new.target)return T({component:Ll,...t});I(e,!0),oe(t,Y4);let i=340,o=u(e,"onClose",7),n=u(e,"onSelectAutoQuality",7),{features:{forceAutoQualityWhenSevereStallHappens:s}}=Qt(),{ui:{t:a}}=Be(),l=a(s?"slow_video_notification_force_description":"slow_video_notification_suggest_description");var c=G4(),p=y(c),f=y(p),v=y(f),m=y(v);Al(m,{message:l}),$(v);var g=N(v,2);{var b=k=>{let V=_(()=>a("slow_video_notification_button"));xp(k,{get label(){return r(V)},get onClick(){return n()}})};O(g,k=>{s||k(b)})}$(f);var w=N(f,2);return Ls(w,{get onClick(){return o()}}),$(p),$(c),Lf(3,p,()=>Gh,()=>({duration:i})),x(t,c),E({get onClose(){return o()},set onClose(k){o(k),d()},get onSelectAutoQuality(){return n()},set onSelectAutoQuality(k){n(k),d()},$set:A,$on:(k,V)=>P(e,k,V)})}var $c="annotation",wp=class{constructor(){this.slots=new Map}init(e){this.shadowRootContainer=e}add(e,{overlay:i,id:o}){e.setAttribute("slot",$c),this.setupSlotStyles(e,i),this.shadowRootContainer.append(e),this.slots.set(o,e)}setupSlotStyles(e,i){switch(e.style.position="absolute",i){case"over_video":e.style.zIndex="var(--video-container-z-index)";break;case"over_controls":e.style.zIndex="var(--controls-container-z-index)";break;default:e.style.zIndex="0"}}remove(e){let i=this.slots.get(e);i&&(i.remove(),this.slots.delete(e))}destroy(){for(let e in this.slots.keys())this.remove(e);this.slots.clear()}};var j4=(t,e,i,o,n,s)=>{t.preventDefault(),e&&(i({message:"double click on video"}),o(),n(s().controls.hideTimeoutCursor))},Z4=(t,e,i,o,n,s,a,l,c,p,f,v,m,g,b,w,k,V,F)=>{if(t.preventDefault(),e()||o()){s();return}if(!(a()&&!c)){if(r(p))return f();if(v()?.focus(),!m()){g()(),b(w().controls.hideTimeoutCursor);return}(!w().preventPauseOnVideoClick||k()!==jh.PLAYING)&&F().actions.internal.togglePlay(),b(w().controls.hideTimeoutCursor)}},X4=(t,e,i,o,n,s)=>{if(t.stopPropagation(),e()||o()){s();return}},J4=D('<div class="ads-container svelte-1b9vdl1"><!></div>'),ex=D('<div class="spherical-video-icon svelte-1b9vdl1"><!></div>'),tx=D("<div><!></div>"),ix=D('<div class="settings-menu svelte-1b9vdl1"><!></div>'),ox=D("<!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!>",1),nx=D('<div class="video-wrapper svelte-1b9vdl1"><div class="video-container svelte-1b9vdl1" data-testid="video-container"></div></div> <!>',1),rx=D('<div class="player-wrapper svelte-1b9vdl1"><!> <div class="overlay-container"></div></div>'),sx={hash:"svelte-1b9vdl1",code:`.player-wrapper.svelte-1b9vdl1 {position:absolute;width:100%;height:100%;}.player-wrapper.svelte-1b9vdl1 .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-1b9vdl1 {display:inline-block;position:absolute;top:calc(50% - 23px);left:calc(50% - 38px);}.video-wrapper.svelte-1b9vdl1,
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 ad(t,e){F(e,!0),q(t,e3);let i=340,{features:{forceAutoQualityWhenSevereStallHappens:o}}=Vt(),{ui:{t:n}}=ye(),a=n(o?"slow_video_notification_force_description":"slow_video_notification_suggest_description");var s=J4(),d=h(s),l=h(d),c=h(l),u=h(c);nd(u,{message:a}),g(c);var _=E(c,2);{var f=x=>{let w=m(()=>n("slow_video_notification_button"));om(x,{get label(){return r(w)},get onClick(){return e.onSelectAutoQuality}})};V(_,x=>{o||x(f)})}g(l);var y=E(l,2);Oa(y,{get onClick(){return e.onClose}}),g(d),g(s),Uu(3,d,()=>Nh,()=>({duration:i})),b(t,s),U()}var sd="annotation",Bc=class{constructor(){this.slots=new Map}init(e){this.shadowRootContainer=e}add(e,{overlay:i,id:o}){e.setAttribute("slot",sd),this.setupSlotStyles(e,i),this.shadowRootContainer.append(e),this.slots.set(o,e)}setupSlotStyles(e,i){switch(e.style.position="absolute",i){case"over_video":e.style.zIndex="var(--video-container-z-index)";break;case"over_controls":e.style.zIndex="var(--controls-container-z-index)";break;default:e.style.zIndex="0"}}remove(e){let i=this.slots.get(e);i&&(i.remove(),this.slots.delete(e))}destroy(){for(let e in this.slots.keys())this.remove(e);this.slots.clear()}};var t3=(t,e,i,o,n,a)=>{t.preventDefault(),e&&(i({message:"double click on video"}),o(),n(a.uiConfig.controls.hideTimeoutCursor))},i3=(t,e,i,o,n,a,s,d,l,c,u,_,f,y,x,w,S)=>{if(t.preventDefault(),e()||o()){a();return}if(!(s()&&!l)){if(r(c))return u();if(_()?.focus(),!f()){y.firstStart(),x(y.uiConfig.controls.hideTimeoutCursor);return}(!y.uiConfig.preventPauseOnVideoClick||w()!==Oh.PLAYING)&&y.store.actions.internal.togglePlay(),x(y.uiConfig.controls.hideTimeoutCursor)}},o3=(t,e,i,o,n,a)=>{if(t.stopPropagation(),e()||o()){a();return}},n3=M("<div><!></div>"),r3=M('<div class="spherical-video-icon svelte-1b9vdl1"><!></div>'),a3=M("<div><!></div>"),s3=M('<div class="settings-menu svelte-1b9vdl1"><!></div>'),l3=M("<!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!>",1),d3=M('<div><div data-testid="video-container"></div></div> <!>',1),c3=M('<div class="player-wrapper svelte-1b9vdl1"><!> <div class="overlay-container"></div></div>'),u3={hash:"svelte-1b9vdl1",code:`.player-wrapper.svelte-1b9vdl1 {position:absolute;width:100%;height:100%;}.player-wrapper.svelte-1b9vdl1 .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-1b9vdl1 {display:inline-block;position:absolute;top:calc(50% - 23px);left:calc(50% - 38px);}.video-wrapper.svelte-1b9vdl1,
305
310
  .video-container.svelte-1b9vdl1,
306
- .ads-container.svelte-1b9vdl1 {position:absolute;width:100%;height:100%;left:0;top:0;}.video-wrapper.svelte-1b9vdl1 {z-index:var(--video-container-z-index);background:var(--black);}.video-container.svelte-1b9vdl1 {z-index:var(--video-container-z-index);transition:var(--rotate-transition-duration) ease all;}.video-container.fast-rotate.svelte-1b9vdl1 {transition:none;}.nocursor.svelte-1b9vdl1 {cursor:none;}.ads-container.svelte-1b9vdl1 {z-index:var(--ads-container-z-index);background:var(--black);}.settings-menu.svelte-1b9vdl1 {position:absolute;z-index:var(--settings-menu-z-index);bottom:57px;right:18px;left:0;transition:opacity 0.2s, visibility 0.2s;}`};function Cp(t,e){if(new.target)return T({component:Cp,...t});I(e,!0),oe(t,sx);let[i,o]=Je(),n=()=>C(Io,"$notificationsToShow$",i),s=()=>C(En,"$playerPhase",i),a=()=>C(Ti,"$isLoaderVisible",i),l=()=>C(ho,"$adPlaybackState",i),c=()=>C(zo,"$crashed",i),p=()=>C(Wo,"$isInteractiveTime$",i),f=()=>C(Zi,"$settingsMenuVisible",i),v=()=>C(lr,"$isInteractiveExpectation$",i),m=()=>C(Bt,"$controlsVisible",i),g=()=>C(Vn,"$touched",i),b=()=>C(Vr,"$graphIsOpened$",i),w=()=>C(ko,"$isFullscreen",i),k=()=>C(cr,"$autoplayNextEnabled$",i),V=()=>C(Ii,"$postrollPassed",i),F=()=>C($o,"$isEnded$",i),M=()=>C(Wi,"$cursorInside",i),H=()=>C(ar,"$rotateAlpha",i),S=()=>C(xo,"$playerSize",i),q=()=>C(dn,"$fakeIsPlaying$",i),W=()=>C(Un,"$bottomNoSmooth",i),U=()=>C(Dn,"$interactiveTimeIndicator",i),ie=()=>C(Ui,"$is3DVideo",i),se=()=>C(Et,"$contextMenuVisible$",i),fe=()=>C(co,"$playbackState$",i),J=()=>C(Nn,"$hotKeyMapData",i),xe=()=>C(_o,"$scrubbingInProgress",i),Ce=()=>C(Bi,"$volumeChangingInProgress",i),X=()=>C(zt,"$chromecastConnected$",i),me=()=>C(po,"$controlsTimeoutActive",i),he=()=>C(an,"$settingsMenuOpenedByKeyboard",i),te=()=>C(_n,"$contextMenuOpenedByKeyboard$",i),le=()=>C($r,"$contextMenuButtonRef$",i),z=()=>C(Yn,"$contextMenuOpenedByHotKey$",i),je=()=>C(mt,"$contextMenuLastActiveElem$",i),Re=()=>C(it,"$isFullscreenOpenedByKeyboard",i),Y=()=>C(An,"$isPlaying$",i),ce=()=>C(rn,"$language$",i),Ge=()=>C(Rn,"$icon3DVideoVisible",i),G=()=>C(Di,"$chromecastDeviceName$",i),Ve=()=>C(Mn,"$currentSubtitle$",i),ue=()=>C(Ln,"$currentSubtitleCaptions$",i),We=()=>C(sn,"$position$",i),rt=()=>C(yo,"$realDuration$",i),Ue=()=>C(Pn,"$isLive$",i),we=()=>C(sr,"$duration$",i),Me=()=>C(zi,"$contextMenuPosition$",i),st=()=>C(Xi,"$showHotKeyMap",i),ct=()=>C(_i,"$debugPanelVisible",i),_e=u(e,"store",7),et=u(e,"uiConfig",7),yt=u(e,"title",7),ee=u(e,"thumbUrl",7),tt=u(e,"videoContainer",15),$t=u(e,"interactiveContainer",7),dt=u(e,"live",7),ge=u(e,"autoplay",7),Pe=u(e,"canRewindLive",7),$e=u(e,"showAds",7),Qe=u(e,"adsSlotId",7,void 0),ze=u(e,"adsParams",7,void 0),ae=u(e,"adsPreviewParam",7,void 0),gt=u(e,"adsAutoplayParam",7,void 0),Ze=u(e,"duration",7,void 0),Tt=u(e,"logoClickable",7),Vt=u(e,"logoHidden",7),Zt=u(e,"logoTargetUrl",7,""),at=u(e,"showNextPrevButtons",7,!1),bt=u(e,"nextButtonActive",7,!1),Rt=u(e,"prevButtonActive",7,!1),Lt=u(e,"endScreenVideoTitle",7,void 0),Xe=u(e,"endScreenVideoThumb",7,void 0),lt=u(e,"isOneVideoPlaylist",7,!1),Nt=u(e,"supportLink",7),ii=u(e,"shadowRootContainer",7,void 0),gi=u(e,"outerContainerRef",7,void 0),so=u(e,"playerStarted",7,!1),hi=u(e,"fullScreenTarget",7,void 0),ao=u(e,"showMiniTimer",7,!1),B=u(e,"showEndScreen",7,!0),Wt=u(e,"showAutoplayNext",7),oi=u(e,"keyboardControls",15),Ni=u(e,"seekToInteractive",7),fi=u(e,"playPrevChapter",7),li=u(e,"firstStart",7),lo=_e().getLogger().createComponentLog("Root component"),rn=_e().interfaceLanguage$,co=_e().state.playbackState$,ho=_e().ads.playbackState,sn=_e().state.positionWithScrubbing$,sr=_e().state.duration$,En=_e().playerPhase,ko=_e().ui.isFullscreen,it=_e().ui.isFullscreenOpenedByKeyboard,Bt=_e().ui.controlsVisible,Zi=_e().ui.settingsMenu.visible$,an=_e().ui.settingsMenu.openedByBtnKeyboard$,_o=_e().ui.scrubbingInProgress,Bi=_e().ui.volumeChangingInProgress,Et=_e().ui.contextMenu.visible$,_i=_e().ui.debugPanelVisible,Ti=_e().state.isLoaderVisible,$o=_e().state.isEnded$,zt=_e().state.chromecastConnected$,Di=_e().state.chromecastDeviceName$,Ii=_e().ads.postrollPassed,Pn=_e().state.isLive$,An=_e().state.isPlaying$,zo=_e().state.crashed$,bo=_e().webApi.annotationsApi,uo=_e().webApi.pictureInPictureApi,Mn=_e().state.currentSubtitle$,Ln=_e().state.currentSubtitleCaptions$,yo=_e().state.duration$,Vr=_e().state.graphIsOpened$,xo=_e().ui.playerSize,Ui=_e().ui.is3DVideo,Rn=_e().ui.icon3DVideoVisible,ar=_e().ui.rotateAlpha,To=_e().state.isInteractive,Wo=_e().state.isInteractiveTime$,lr=_e().state.isInteractiveExpectation$,is=_e().state.hasInteractiveBranches,Vn=_e().ui.touched,Nn=_e().ui.modals.hotKeyMap.data,Xi=_e().ui.modals.hotKeyMap.show,Bn=_e().ui.overlayContainer$,Dn=_e().ui.controls.interactiveTimeIndicator,yi=_e().state.showInteractiveTimeIndicator,zi=_e().ui.contextMenu.position$,ln=_e().actions.internal.setQuality,cn=_e().actions.internal.closeSettingsMenu,cr=_e().ui.autoplayNextEnabled$,{fakeIsPlaying$:dn,notifications$:qo}=go(),xi=de(void 0),un=de(void 0),ft=de(void 0),On=de(void 0),dr,Hn,Ko;Nn.set(Ug());let{closeNotification:ur,notificationsToShow$:Io}=qo,Nr=_(()=>!!n().slow_video),Fn=()=>ur("slow_video"),pr=_(()=>(s()==="video"&&a()||s()==="ads"&&l()==="inactive")&&!c()),pn=de(void 0),Un=be(!1),zn,po=be(!1),Eo=be(),Wi=be(!1),Po=de(!1),Ei=de(!1),Pi=de(!1),fr=de(!(ge()&&!et().controls.showOnStartupAtAutoplay)),fn=_(()=>p()&&!f()&&!(r(Po)||r(Ei))&&!(r(Pi)&&!v())),Br=!0,mn=_(()=>et().features.thumbTimer&&ao()&&s()==="video"&&!m()&&!c()&&!To&&(et().hideThumbTimerAfterTouch&&!g()||!et().hideThumbTimerAfterTouch)),mr=_(()=>s()==="video"&&!b()&&w()),Wn=de(!1),vn=_(()=>(B()||Wt()&&k())&&!!Lt()&&!!Xe()&&($e()&&V()||!$e())&&F()&&!c()&&!r(Wn)),Dr=_(()=>M()&&!(m()||r(vn))&&!p()),qn=de(!1),Kn=_(()=>tt()&&H()%180?S().height/S().width:1),ci=_(()=>q()!==null),{toggle:vr}=dn,gn=!1,Ao=null;uo?.setContext(Wl());let Or=()=>{ge()&&!To&&et().controls.showOnStartupAtAutoplay&&Kt(et().controls.hideTimeout)};_e().setUiCallbacks({onStarted:Or});let Ee=()=>{window.clearTimeout(dr),po.set(!1)},Pt=()=>{window.clearTimeout(Hn),Eo.set(null)},Kt=Z=>{Ee(),po.set(!0),dr=window.setTimeout(()=>po.set(!1),Z);let ht=Z-100;zn=window.setTimeout(()=>{W()&&Un.set(!1)},ht>0?ht:Z)},mi=(Z,ht)=>{Pt(),Eo.set(ht),Hn=window.setTimeout(()=>Eo.set(null),Z)},Mo=Ui.subscribe(Z=>{Rn.set(Z),Z&&(window.clearTimeout(Ko),Ko=window.setTimeout(()=>Rn.set(!1),et().controls.hide360IconTimeout))}),Ai=async()=>{let Z=Es();if(Z){let ht=lc(),ui=St();Z=ht===ui||ht===ii()}if(Z){Kt(et().controls.hideTimeoutFullscreen);try{await uo?.remove()}catch(ht){lo({message:String(ht)})}}ko.set(Z),_e().getAdmanWrapper().setFullscreen(Z),w()?_e().callbacks?.onFullscreenEnter?.():_e().callbacks?.onFullscreenExit?.()},Oi=Z=>{let{width:ht,height:ui}=Z.target;xo.set({width:ht,height:ui})},ve=()=>{let{width:Z,height:ht}=r(xi).getBoundingClientRect();xo.set({width:Z,height:ht})};Ut(()=>(xd(Ai),et().features.annotationsInside&&bo?.init(r(xi)),la(uo)&&(uo?.assignPlayerContainer(r(xi)),uo?.registryExternalEventHandlers({resize:Oi,leavepictureinpicture:ve})),$t()&&tt().parentElement?.insertBefore($t(),tt().nextSibling),()=>{window.clearTimeout(dr),window.clearTimeout(zn),window.clearTimeout(Hn),window.clearTimeout(Ko),Mo(),uo?.dispose().catch(ht=>{lo({message:String(ht)})}),wd(Ai)}));let St=()=>{let Z=et().features.fullscreenInternalTargetPlayerContainer||!gi()?r(xi):gi(),ht=Z.getRootNode(),ui=ht instanceof ShadowRoot?ht.host:ht,ti=hi()instanceof HTMLElement&&hi().contains(ui);return et().allowChangingFullscreenTarget&&hi()&&ti?hi():Z},di=async()=>{Es()?(await yd(document),lo({message:"exit fullscreen"})):(lo({message:"request fullscreen"}),await bd(St()))},$i=()=>{cn(),Et.set(!1)},Lo=Z=>{Z.preventDefault(),Et.set(!0),zi.set({left:Z.clientX,top:Z.clientY})};function Qo(){Wi.set(!0),To||Kt(et().controls.hideTimeoutCursor)}function Mi(){To||(Un.set(!0),Kt(et().controls.hideTimeoutCursor))}function hn(){Wi.set(!1),K(Ei,!1),K(Po,!1),gn=!1,_e().actions.internal.releaseCamera(),Kt(et().controls.hideTimeout)}function Go(Z){return Z?Z.offsetTop+Go(Z.offsetParent):0}function Qn(Z){return Z?Z.offsetLeft+Qn(Z.offsetParent):0}function Gn(Z){if(U()&&yi){let ht=Z.currentTarget,ui=Go(ht),ti=Qn(ht),Ki=Z.pageX-ti,Vo=Z.pageY-ui,{left:$n,bottom:Fr,right:xr}=U(),Ke=xr-$n;return Ki>=$n-Ke&&Vo<=Fr+Ke}}function Ro(Z){if(r(xi)){let ht=Go(Z.currentTarget),ui=S().height,ti=Z.pageY-ht;if(Gn(Z)){K(Ei,!1);return}ti<40?K(Ei,!0):ti>ui-40?K(Po,!0):(K(Ei,!1),f()||K(Po,!1))}}function Yo(Z){Ro(Z),r(fn)||Kt(et().controls.hideTimeoutCursor),ie()&&gn&&Ao&&_e().actions.internal.moveCameraFocusPX(Ao.clientX-Z.clientX,Ao.clientY-Z.clientY,Z.timeStamp-Ao.timeStamp),Ao=Z}let Hr=Z=>{Z.preventDefault(),Z.button===0&&(gn=!0,_e().actions.internal.holdCamera()),Kt(et().controls.hideTimeoutCursor)},gr=Z=>{Z.preventDefault(),Z.button===0&&(Ao=Z,gn=!1,_e().actions.internal.releaseCamera()),Kt(et().controls.hideTimeoutCursor)},hr=Z=>{$i(),Vn.set(!0),Kt(et().controls.hideTimeout),Z&&mi(et().controls.hideHotKeyHelpers,Z)},_r=()=>{$i(),_e().callbacks?.onOpenHotKeyMap?_e().callbacks?.onOpenHotKeyMap(J()):Xi.update(Z=>!Z)},os=()=>{Vn.set(!0)},_n=_e().ui.contextMenu.openedByBtnKeyboard$,$r=_e().ui.contextMenu.btnRef$,fo=de(void 0),Yn=_e().ui.contextMenu.openedByHotKey$,mt=_e().ui.contextMenu.lastActiveElem$;ot(()=>{Bn.set(r(pn))}),ot(()=>{K(Pi,ke(r(fr)&&fe()!==jh.PLAYING)),r(fr)||xt(()=>K(fr,!0))}),ot(()=>{Bt.set((r(Pi)||f()||xe()||Ce()||X()||me())&&!r(fn)&&(s()==="video"||s()==="ads")&&!c())}),ot(()=>{!xe()&&r(qn)&&!p()&&Kt(et().controls.hideTimeoutCursor),xt(()=>K(qn,ke(xe())))}),ot(()=>{r(On),f(),he(),xt(()=>Xr(r(On),f(),he()))}),ot(()=>{r(fo),se(),te(),xt(()=>Xr(r(fo),se(),te()))}),ot(()=>{let Z=le();Z&&(se(),xt(()=>ja(Z,se(),_n)))}),ot(()=>{r(fo),se(),z(),xt(()=>Xr(r(fo),se(),z()))}),ot(()=>{let Z=je();Z&&(se(),xt(()=>Yg(Z,se(),Yn)))}),ot(()=>{!Re()&&w()&&(xt(()=>it.set(!1)),oi()?.focus())});let Ot=j("video360");var ni=rx();Dt("blur",Js,$i),ni.__mousemove=Yo;var jn=y(ni);let qi=_(()=>s()==="ads"),br=_(()=>r(ci)?vr:void 0);vt(Od(jn,{toggleFullscreen:di,hideContextMenu:$i,showHotKeyHelpers:hr,showKeyMap:_r,get isAds(){return r(qi)},get fakePlayButtonHandler(){return r(br)},get nextButtonActive(){return bt()},get prevButtonActive(){return Rt()},children:(Z,ht)=>{var ui=nx(),ti=ye(ui);ti.__contextmenu=Lo,ti.__mousedown=Hr,ti.__mouseup=gr,ti.__click=[Z4,se,Et,f,Zi,$i,F,$o,is,ci,vr,oi,so,li,Kt,et,fe,co,_e],ti.__dblclick=[j4,Br,lo,di,Kt,et];var Ki=y(ti);vt(Ki,$n=>tt($n),()=>tt()),$(ti);var Vo=N(ti,2);Xl(Vo,ce,$n=>{var Fr=ox(),xr=ye(Fr);let Ke=_(()=>s()!=="thumb"||c()||To&&ge());Il(xr,{get hidden(){return r(Ke)},get thumbUrl(){return ee()},get startVideo(){return li()}});var Gt=N(xr,2);{var Ji=He=>{let Jt=_(()=>dt()?.startTime);El(He,{get thumbUrl(){return ee()},get startTime(){return r(Jt)}})};O(Gt,He=>{s()==="LiveWaitingStart"&&He(Ji)})}var jo=N(Gt,2);{var Zo=He=>{Us(He,{kind:"recover",get thumbUrl(){return ee()}})};O(jo,He=>{s()==="LiveWaitingRecover"&&He(Zo)})}var ns=N(jo,2);{var Xo=He=>{Us(He,{kind:"record",get thumbUrl(){return ee()}})};O(ns,He=>{s()==="LiveWaitingRecord"&&He(Xo)})}var Ur=N(ns,2);{var Vl=He=>{var Jt=J4(),Sr=y(Jt);Ka(Sr,{get adsSlotId(){return Qe()},get adsParams(){return ze()},get adsPreviewParam(){return ae()},get adsAutoplayParam(){return gt()},get duration(){return Ze()}}),$(Jt),L(()=>ne(Jt,"hidden",s()!=="ads")),x(He,Jt)};O(Ur,He=>{$e()&&so()&&He(Vl)})}var ha=N(Ur,2);{var _a=He=>{let Jt=_(()=>!B()&&Wt()&&k());Nd(He,{get title(){return Lt()},get thumb(){return Xe()},get isHide(){return r(Jt)},clickCloseIcon:()=>K(Wn,!0)})};O(ha,He=>{r(vn)&&Lt()&&Xe()&&He(_a)})}var $a=N(ha,2);{var ws=He=>{let Jt=_(()=>!m());ep(He,{get title(){return yt()},get isHidden(){return r(Jt)}})};O($a,He=>{r(mr)&&He(ws)})}var ba=N($a,2);{var qe=He=>{let Jt=_(()=>s()==="video"&&m());Cl(He,{get isShifted(){return r(Jt)}})};O(ba,He=>{ie()&&He(qe)})}var It=N(ba,2);{var bn=He=>{var Jt=ex(),Sr=y(Jt);Wa(Sr,{"aria-label":Ot}),$(Jt),x(He,Jt)};O(It,He=>{Ge()&&He(bn)})}var wr=N(It,2);{var rs=He=>{kl(He,{get thumbUrl(){return ee()},get chromecastDeviceName(){return G()}})};O(wr,He=>{X()&&He(rs)})}var Cr=N(wr,2);{var zr=He=>{Sl(He,{get shifted(){return m()},get captions(){return ue()},get position(){return We()},get playerSize(){return S()}})};O(Cr,He=>{Ve().value!=="off"&&He(zr)})}var ss=N(Cr,2);{var Nl=He=>{var Jt=tx();Jt.__contextmenu=Lo,Jt.__click=[X4,se,Et,f,Zi,$i];var Sr=y(Jt);Tl(Sr,{}),$(Jt),x(He,Jt)};O(ss,He=>{c()&&He(Nl)})}var Ac=N(ss,2);{var zp=He=>{let Jt=_(()=>s()==="thumb"||s()==="LiveWaitingStart"||s()==="LiveWaitingRecover"||s()==="LiveWaitingRecord"),Sr=_(()=>s()==="ads"),Wp=_(()=>Pe()&&rt()!==0);wl(He,{get bottomHidden(){return r(Jt)},get bottomNoSmooth(){return W()},get showControls(){return m()},get isAds(){return r(Sr)},get canRewindLive(){return r(Wp)},get logoClickable(){return Tt()},get logoHidden(){return Vt()},get logoTargetUrl(){return Zt()},get showAutoplayNext(){return Wt()},get showNextPrevButtons(){return at()},get nextButtonActive(){return bt()},get prevButtonActive(){return Rt()},get isOneVideoPlaylist(){return lt()},customFullscreenSupported:Br,toggleFullscreen:di,get seekToInteractive(){return Ni()},get playPrevChapter(){return fi()},get playerControlsWrapperRef(){return r(un)},set playerControlsWrapperRef(Bl){K(un,ke(Bl))},get playerControlsRef(){return r(ft)},set playerControlsRef(Bl){K(ft,ke(Bl))}})};O(Ac,He=>{so()&&He(zp)})}var Mc=N(Ac,2);{var ya=He=>{var Jt=ix(),Sr=y(Jt);let Wp=_(()=>r(ft)?.clientHeight);Ml(Sr,{get supportLink(){return Nt()},get playerControlsHeight(){return r(Wp)},returnFocus:()=>oi()?.focus(),get ref(){return r(On)},set ref(Bl){K(On,ke(Bl))}}),$(Jt),x(He,Jt)};O(Mc,He=>{!X()&&s()!=="ads"&&He(ya)})}var Lc=N(Mc,2);let Rc=_(()=>!r(mn));Ga(Lc,{get isLive(){return Ue()},get isHidden(){return r(Rc)},get isPlaying(){return Y()},get position(){return We()},get duration(){return we()}});var Vc=N(Lc,2);Yu(Vc,{data:Eo});var Nc=N(Vc,2);Rd(Nc,{get supportLink(){return Nt()},returnFocus:()=>oi()?.focus(),get visible(){return se()},get playerContainerRef(){return r(xi)},get controlsContainerRef(){return r(un)},get position(){return Me()},get menuElementRef(){return r(fo)},set menuElementRef(He){K(fo,ke(He))}});var kt=N(Nc,2);{var h=He=>{Ll(He,{onClose:Fn,onSelectAutoQuality:()=>{ln("auto"),Fn()}})};O(kt,He=>{r(Nr)&&He(h)})}var R=N(kt,2);{var Q=He=>{Vs(He,{})};O(R,He=>{r(pr)&&He(Q)})}var Ne=N(R,2);{var ut=He=>{Ud(He,{})};O(Ne,He=>{st()&&He(ut)})}var Ct=N(Ne,2);{var qt=He=>{el(He,{})};O(Ct,He=>{ct()&&He(qt)})}var ei=N(Ct,2);ec(ei,()=>"slot",!1,(He,Jt)=>{Le(He,null,{name:$c},"svelte-1b9vdl1",He.namespaceURI===Ks,He.nodeName.includes("-"))}),x($n,Fr)}),L(()=>{ne(ti,"hidden",s()!=="video"),ne(ti,"nocursor",r(Dr)),pe(Ki,"style",`transform: rotate(${H()}deg) scale(${r(Kn)})`),pe(Ki,"data-is-playing",Y()),ne(Ki,"fast-rotate",!et().isSmoothVideoRotate)}),x(Z,ui)},$$slots:{default:!0}}),Z=>oi(Z),()=>oi());var Zn=N(jn,2);vt(Zn,Z=>K(pn,Z),()=>r(pn)),$(ni),vt(ni,Z=>K(xi,Z),()=>r(xi)),Dt("mouseenter",ni,Qo),Dt("mouseleave",ni,hn),Dt("click",ni,os,!0),Dt("focusin",ni,Mi,!0),x(t,ni);var yr=E({get store(){return _e()},set store(Z){_e(Z),d()},get uiConfig(){return et()},set uiConfig(Z){et(Z),d()},get title(){return yt()},set title(Z){yt(Z),d()},get thumbUrl(){return ee()},set thumbUrl(Z){ee(Z),d()},get videoContainer(){return tt()},set videoContainer(Z){tt(Z),d()},get interactiveContainer(){return $t()},set interactiveContainer(Z){$t(Z),d()},get live(){return dt()},set live(Z){dt(Z),d()},get autoplay(){return ge()},set autoplay(Z){ge(Z),d()},get canRewindLive(){return Pe()},set canRewindLive(Z){Pe(Z),d()},get showAds(){return $e()},set showAds(Z){$e(Z),d()},get adsSlotId(){return Qe()},set adsSlotId(Z=void 0){Qe(Z),d()},get adsParams(){return ze()},set adsParams(Z=void 0){ze(Z),d()},get adsPreviewParam(){return ae()},set adsPreviewParam(Z=void 0){ae(Z),d()},get adsAutoplayParam(){return gt()},set adsAutoplayParam(Z=void 0){gt(Z),d()},get duration(){return Ze()},set duration(Z=void 0){Ze(Z),d()},get logoClickable(){return Tt()},set logoClickable(Z){Tt(Z),d()},get logoHidden(){return Vt()},set logoHidden(Z){Vt(Z),d()},get logoTargetUrl(){return Zt()},set logoTargetUrl(Z=""){Zt(Z),d()},get showNextPrevButtons(){return at()},set showNextPrevButtons(Z=!1){at(Z),d()},get nextButtonActive(){return bt()},set nextButtonActive(Z=!1){bt(Z),d()},get prevButtonActive(){return Rt()},set prevButtonActive(Z=!1){Rt(Z),d()},get endScreenVideoTitle(){return Lt()},set endScreenVideoTitle(Z=void 0){Lt(Z),d()},get endScreenVideoThumb(){return Xe()},set endScreenVideoThumb(Z=void 0){Xe(Z),d()},get isOneVideoPlaylist(){return lt()},set isOneVideoPlaylist(Z=!1){lt(Z),d()},get supportLink(){return Nt()},set supportLink(Z){Nt(Z),d()},get shadowRootContainer(){return ii()},set shadowRootContainer(Z=void 0){ii(Z),d()},get outerContainerRef(){return gi()},set outerContainerRef(Z=void 0){gi(Z),d()},get playerStarted(){return so()},set playerStarted(Z=!1){so(Z),d()},get fullScreenTarget(){return hi()},set fullScreenTarget(Z=void 0){hi(Z),d()},get showMiniTimer(){return ao()},set showMiniTimer(Z=!1){ao(Z),d()},get showEndScreen(){return B()},set showEndScreen(Z=!0){B(Z),d()},get showAutoplayNext(){return Wt()},set showAutoplayNext(Z){Wt(Z),d()},get keyboardControls(){return oi()},set keyboardControls(Z){oi(Z),d()},get seekToInteractive(){return Ni()},set seekToInteractive(Z){Ni(Z),d()},get playPrevChapter(){return fi()},set playPrevChapter(Z){fi(Z),d()},get firstStart(){return li()},set firstStart(Z){li(Z),d()},$set:A,$on:(Z,ht)=>P(e,Z,ht)});return o(),yr}pt(["mousemove","contextmenu","mousedown","mouseup","click","dblclick"]);import{clientChecker as yc,PlaybackState as gx}from"@vkontakte/videoplayer-core/evergreen";import{noop as hx}from"@vkontakte/videoplayer-shared/evergreen";var ax=D('<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),lx=D("<div><!></div>"),cx={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;
311
+ .ads-container.svelte-1b9vdl1 {position:absolute;width:100%;height:100%;left:0;top:0;}.video-wrapper.svelte-1b9vdl1 {z-index:var(--video-container-z-index);background:var(--black);}.video-container.svelte-1b9vdl1 {z-index:var(--video-container-z-index);transition:var(--rotate-transition-duration) ease all;}.video-container.fast-rotate.svelte-1b9vdl1 {transition:none;}.nocursor.svelte-1b9vdl1 {cursor:none;}.ads-container.svelte-1b9vdl1 {z-index:var(--ads-container-z-index);background:var(--black);}.settings-menu.svelte-1b9vdl1 {position:absolute;z-index:var(--settings-menu-z-index);bottom:57px;right:18px;left:0;transition:opacity 0.2s, visibility 0.2s;}`};function nm(t,e){F(e,!0),q(t,u3);let[i,o]=Oe(),n=()=>$(Co,"$notificationsToShow$",i),a=()=>$(rn,"$playerPhase",i),s=()=>$(Yn,"$isLoaderVisible",i),d=()=>$(Do,"$adPlaybackState",i),l=()=>$(Bt,"$crashed",i),c=()=>$(sn,"$isInteractiveTime$",i),u=()=>$(z,"$settingsMenuVisible",i),_=()=>$(mi,"$isInteractiveExpectation$",i),f=()=>$(co,"$controlsVisible",i),y=()=>$(So,"$touched",i),x=()=>$(cn,"$graphIsOpened$",i),w=()=>$(Oo,"$isFullscreen",i),S=()=>$(Mn,"$autoplayNextEnabled$",i),I=()=>$(Mt,"$postrollPassed",i),L=()=>$(yo,"$isEnded$",i),A=()=>$(fn,"$cursorInside",i),P=()=>$(zi,"$rotateAlpha",i),T=()=>$(Wt,"$playerSize",i),D=()=>$(dn,"$fakeIsPlaying$",i),Q=()=>$(Bn,"$bottomNoSmooth",i),G=()=>$(Fo,"$interactiveTimeIndicator",i),ee=()=>$(mt,"$is3DVideo",i),ie=()=>$(Xt,"$contextMenuVisible$",i),oe=()=>$(Fi,"$playbackState$",i),te=()=>$(ln,"$hotKeyMapData",i),ge=()=>$(yi,"$scrubbingInProgress",i),X=()=>$(Ui,"$volumeChangingInProgress",i),Le=()=>$(an,"$chromecastConnected$",i),Ae=()=>$(Ai,"$controlsTimeoutActive",i),se=()=>$(zt,"$settingsMenuOpenedByKeyboard",i),He=()=>$(Sr,"$contextMenuOpenedByKeyboard$",i),j=()=>$(nr,"$contextMenuButtonRef$",i),B=()=>$($n,"$contextMenuOpenedByHotKey$",i),Re=()=>$(Hn,"$contextMenuLastActiveElem$",i),_e=()=>$(Ho,"$isFullscreenOpenedByKeyboard",i),Ce=()=>$(bt,"$isPlaying$",i),Be=()=>$(ui,"$language$",i),ue=()=>$(ei,"$icon3DVideoVisible",i),R=()=>$(xo,"$chromecastDeviceName$",i),be=()=>$(An,"$currentSubtitle$",i),Ie=()=>$(oo,"$currentSubtitleCaptions$",i),je=()=>$(nn,"$position$",i),qe=()=>$(wo,"$realDuration$",i),ke=()=>$(uo,"$isLive$",i),Pe=()=>$(io,"$duration$",i),Ve=()=>$(Uo,"$contextMenuPosition$",i),ct=()=>$(vi,"$showHotKeyMap",i),gt=()=>$(Jt,"$debugPanelVisible",i),ot=v(e,"videoContainer",15),kt=v(e,"adsSlotId",3,void 0),nt=v(e,"adsParams",3,void 0),ut=v(e,"adsPreviewParam",3,void 0),Et=v(e,"adsAutoplayParam",3,void 0),we=v(e,"duration",3,void 0),Ne=v(e,"logoTargetUrl",3,""),Ye=v(e,"showNextPrevButtons",3,!1),W=v(e,"nextButtonActive",3,!1),re=v(e,"prevButtonActive",3,!1),ne=v(e,"endScreenVideoTitle",3,void 0),Fe=v(e,"endScreenVideoThumb",3,void 0),Ge=v(e,"isOneVideoPlaylist",3,!1),yt=v(e,"shadowRootContainer",3,void 0),Ke=v(e,"outerContainerRef",3,void 0),Ze=v(e,"playerStarted",3,!1),Ee=v(e,"fullScreenTarget",3,void 0),dt=v(e,"showMiniTimer",3,!1),Rt=v(e,"showEndScreen",3,!0),Gt=v(e,"keyboardControls",15),Zt=e.store.getLogger().createComponentLog("Root component"),ui=e.store.interfaceLanguage$,Fi=e.store.state.playbackState$,Do=e.store.ads.playbackState,nn=e.store.state.positionWithScrubbing$,io=e.store.state.duration$,rn=e.store.playerPhase,Oo=e.store.ui.isFullscreen,Ho=e.store.ui.isFullscreenOpenedByKeyboard,co=e.store.ui.controlsVisible,z=e.store.ui.settingsMenu.visible$,zt=e.store.ui.settingsMenu.openedByBtnKeyboard$,yi=e.store.ui.scrubbingInProgress,Ui=e.store.ui.volumeChangingInProgress,Xt=e.store.ui.contextMenu.visible$,Jt=e.store.ui.debugPanelVisible,Yn=e.store.state.isLoaderVisible,yo=e.store.state.isEnded$,an=e.store.state.chromecastConnected$,xo=e.store.state.chromecastDeviceName$,Mt=e.store.ads.postrollPassed,uo=e.store.state.isLive$,bt=e.store.state.isPlaying$,Bt=e.store.state.crashed$,po=e.store.webApi.annotationsApi,ki=e.store.webApi.pictureInPictureApi,An=e.store.state.currentSubtitle$,oo=e.store.state.currentSubtitleCaptions$,wo=e.store.state.duration$,Wt=e.store.ui.playerSize,mt=e.store.ui.is3DVideo,ei=e.store.ui.icon3DVideoVisible,zi=e.store.ui.rotateAlpha,di=e.store.state.isInteractive,sn=e.store.state.isInteractiveTime$,mi=e.store.state.isInteractiveExpectation$,no=e.store.state.hasInteractiveBranches,So=e.store.ui.touched,ln=e.store.ui.modals.hotKeyMap.data,vi=e.store.ui.modals.hotKeyMap.show,Pn=e.store.ui.overlayContainer$,Fo=e.store.ui.controls.interactiveTimeIndicator,fo=e.store.state.showInteractiveTimeIndicator,Uo=e.store.ui.contextMenu.position$,hr=e.store.actions.internal.setQuality,Zn=e.store.actions.internal.closeSettingsMenu,Mn=e.store.ui.autoplayNextEnabled$,{fakeIsPlaying$:dn,notifications$:zo,graphIsOpened$:cn}=Hi(),qi=Y(void 0),Xe=Y(void 0),qo=Y(void 0),Ln=Y(void 0),Vn,un,Ko;ln.set(Ng());let{closeNotification:Wo,notificationsToShow$:Co}=zo,Ti=m(()=>!!n().slow_video),Ii=()=>Wo("slow_video"),Rn=m(()=>(a()==="video"&&s()||a()==="ads"&&d()==="inactive")&&!l()),pn=Y(void 0),Bn=ae(!1),Xn,Ai=ae(!1),Pi=ae(),fn=ae(!1),mn=Y(!1),Ki=Y(!1),Mi=Y(!1),vn=Y(!(e.autoplay&&!e.uiConfig.controls.showOnStartupAtAutoplay)),mo=m(()=>c()&&!u()&&!(r(mn)||r(Ki))&&!(r(Mi)&&!_())),_r=!0,gn=m(()=>e.uiConfig.features.thumbTimer&&dt()&&a()==="video"&&!f()&&!l()&&!di&&(e.uiConfig.hideThumbTimerAfterTouch&&!y()||!e.uiConfig.hideThumbTimerAfterTouch)),Jn=m(()=>a()==="video"&&!x()&&w()),hn=Y(!1),_n=m(()=>(Rt()||e.showAutoplayNext&&S())&&!!ne()&&!!Fe()&&(e.showAds&&I()||!e.showAds)&&L()&&!l()&&!r(hn)),br=m(()=>A()&&!(f()||r(_n))&&!c()),Nn=Y(!1),er=m(()=>ot()&&P()%180?T().height/T().width:1),Dn=m(()=>D()!==null),{toggle:bn}=dn,qt=!1,ko=null;ki?.setContext(ol());let st=()=>{e.autoplay&&!di&&e.uiConfig.controls.showOnStartupAtAutoplay&&Kt(e.uiConfig.controls.hideTimeout)};e.store.setUiCallbacks({onStarted:st});let At=()=>{window.clearTimeout(Vn),Ai.set(!1)},Yt=()=>{window.clearTimeout(un),Pi.set(null)},Kt=Te=>{At(),Ai.set(!0),Vn=window.setTimeout(()=>Ai.set(!1),Te);let Nt=Te-100;Xn=window.setTimeout(()=>{Q()&&Bn.set(!1)},Nt>0?Nt:Te)},Wi=(Te,Nt)=>{Yt(),Pi.set(Nt),un=window.setTimeout(()=>Pi.set(null),Te)},Li=mt.subscribe(Te=>{ei.set(Te),Te&&(window.clearTimeout(Ko),Ko=window.setTimeout(()=>ei.set(!1),e.uiConfig.controls.hide360IconTimeout))}),Qi=async()=>{let Te=sa();if(Te){let Nt=_l(),ci=Je();Te=Nt===ci||Nt===yt()}if(Te){Kt(e.uiConfig.controls.hideTimeoutFullscreen);try{await ki?.remove()}catch(Nt){Zt({message:String(Nt)})}}Oo.set(Te),e.store.getAdmanWrapper().setFullscreen(Te),w()?e.store.callbacks?.onFullscreenEnter?.():e.store.callbacks?.onFullscreenExit?.()},To=Te=>{let{width:Nt,height:ci}=Te.target;Wt.set({width:Nt,height:ci})},Qo=()=>{let{width:Te,height:Nt}=r(qi).getBoundingClientRect();Wt.set({width:Te,height:Nt})};It(()=>(dc(Qi),e.uiConfig.features.annotationsInside&&po?.init(r(qi)),Ba(ki)&&(ki?.assignPlayerContainer(r(qi)),ki?.registryExternalEventHandlers({resize:To,leavepictureinpicture:Qo})),e.interactiveContainer&&ot().parentElement?.insertBefore(e.interactiveContainer,ot().nextSibling),()=>{window.clearTimeout(Vn),window.clearTimeout(Xn),window.clearTimeout(un),window.clearTimeout(Ko),Li(),ki?.dispose().catch(Nt=>{Zt({message:String(Nt)})}),cc(Qi)}));let Je=()=>{let Te=e.uiConfig.features.fullscreenInternalTargetPlayerContainer||!Ke()?r(qi):Ke(),Nt=Te.getRootNode(),ci=Nt instanceof ShadowRoot?Nt.host:Nt,ii=Ee()instanceof HTMLElement&&Ee().contains(ci);return e.uiConfig.allowChangingFullscreenTarget&&Ee()&&ii?Ee():Te},ft=async()=>{sa()?(await lc(document),Zt({message:"exit fullscreen"})):(Zt({message:"request fullscreen"}),await sc(Je()))},ti=()=>{Zn(),Xt.set(!1)},Vi=Te=>{x()||(Te.preventDefault(),Xt.set(!0),Uo.set({left:Te.clientX,top:Te.clientY}))};function Gi(){fn.set(!0),di||Kt(e.uiConfig.controls.hideTimeoutCursor)}function $r(){di||(Bn.set(!0),Kt(e.uiConfig.controls.hideTimeoutCursor))}function On(){fn.set(!1),N(Ki,!1),N(mn,!1),qt=!1,e.store.actions.internal.releaseCamera(),Kt(e.uiConfig.controls.hideTimeout)}function Ei(Te){return Te?Te.offsetTop+Ei(Te.offsetParent):0}function ro(Te){return Te?Te.offsetLeft+ro(Te.offsetParent):0}function yr(Te){if(G()&&fo){let Nt=Te.currentTarget,ci=Ei(Nt),ii=ro(Nt),gi=Te.pageX-ii,Qt=Te.pageY-ci,{left:hi,bottom:ao,right:xi}=G(),oi=xi-hi;return gi>=hi-oi&&Qt<=ao+oi}}function xr(Te){if(r(qi)){let Nt=Ei(Te.currentTarget),ci=T().height,ii=Te.pageY-Nt;if(yr(Te)){N(Ki,!1);return}ii<40?N(Ki,!0):ii>ci-40?N(mn,!0):(N(Ki,!1),u()||N(mn,!1))}}function tr(Te){xr(Te),r(mo)||Kt(e.uiConfig.controls.hideTimeoutCursor),ee()&&qt&&ko&&e.store.actions.internal.moveCameraFocusPX(ko.clientX-Te.clientX,ko.clientY-Te.clientY,Te.timeStamp-ko.timeStamp),ko=Te}let Go=Te=>{Te.preventDefault(),Te.button===0&&(qt=!0,e.store.actions.internal.holdCamera()),Kt(e.uiConfig.controls.hideTimeoutCursor)},vo=Te=>{Te.preventDefault(),Te.button===0&&(ko=Te,qt=!1,e.store.actions.internal.releaseCamera()),Kt(e.uiConfig.controls.hideTimeoutCursor)},ir=Te=>{ti(),So.set(!0),Kt(e.uiConfig.controls.hideTimeout),Te&&Wi(e.uiConfig.controls.hideHotKeyHelpers,Te)},wr=()=>{ti(),e.store.callbacks?.onOpenHotKeyMap?e.store.callbacks?.onOpenHotKeyMap(te()):vi.update(Te=>!Te)},or=()=>{So.set(!0)},Sr=e.store.ui.contextMenu.openedByBtnKeyboard$,nr=e.store.ui.contextMenu.btnRef$,jo=Y(void 0),$n=e.store.ui.contextMenu.openedByHotKey$,Hn=e.store.ui.contextMenu.lastActiveElem$;Qe(()=>{Pn.set(r(pn))}),Qe(()=>{N(Mi,le(r(vn)&&oe()!==Oh.PLAYING)),r(vn)||pt(()=>N(vn,!0))}),Qe(()=>{co.set((r(Mi)||L()||u()||ge()||X()||Le()||Ae())&&!r(mo)&&(a()==="video"||a()==="ads")&&!l())}),Qe(()=>{!ge()&&r(Nn)&&!c()&&Kt(e.uiConfig.controls.hideTimeoutCursor),pt(()=>N(Nn,le(ge())))}),Qe(()=>{r(Ln),u(),se(),pt(()=>Ss(r(Ln),u(),se()))}),Qe(()=>{r(jo),ie(),He(),pt(()=>Ss(r(jo),ie(),He()))}),Qe(()=>{let Te=j();Te&&(ie(),pt(()=>ws(Te,ie(),Sr)))}),Qe(()=>{r(jo),ie(),B(),pt(()=>Ss(r(jo),ie(),B()))}),Qe(()=>{let Te=Re();Te&&(ie(),pt(()=>zg(Te,ie(),$n)))}),Qe(()=>{!_e()&&w()&&(pt(()=>Ho.set(!1)),Gt()?.focus())}),Qe(()=>{x()&&ti()});let Cr=H("video360");var ji=c3();St("blur",Ca,ti),ji.__mousemove=tr;var et=h(ji);let Pt=m(()=>a()==="ads"),pi=m(()=>r(Dn)?bn:void 0);at(xp(et,{toggleFullscreen:ft,hideContextMenu:ti,showHotKeyHelpers:ir,showKeyMap:wr,get isAds(){return r(Pt)},get fakePlayButtonHandler(){return r(pi)},get nextButtonActive(){return W()},get prevButtonActive(){return re()},children:(Te,Nt)=>{var ci=d3(),ii=pe(ci);let gi;ii.__contextmenu=Vi,ii.__mousedown=Go,ii.__mouseup=vo,ii.__click=[i3,ie,Xt,u,z,ti,L,yo,no,Dn,bn,Gt,Ze,e,Kt,oe,Fi],ii.__dblclick=[t3,_r,Zt,ft,Kt,e];var Qt=h(ii);let hi;at(Qt,xi=>ot(xi),()=>ot()),g(ii);var ao=E(ii,2);al(ao,Be,xi=>{var oi=l3(),Io=pe(oi);let De=m(()=>a()!=="thumb"||l()||di&&e.autoplay);td(Io,{get hidden(){return r(De)},get thumbUrl(){return e.thumbUrl},get startVideo(){return e.firstStart}});var Dt=E(Io,2);{var ni=Ue=>{let Ft=m(()=>e.live?.startTime);id(Ue,{get thumbUrl(){return e.thumbUrl},get startTime(){return r(Ft)}})};V(Dt,Ue=>{a()==="LiveWaitingStart"&&Ue(ni)})}var Yo=E(Dt,2);{var Eo=Ue=>{ja(Ue,{kind:"recover",get thumbUrl(){return e.thumbUrl}})};V(Yo,Ue=>{a()==="LiveWaitingRecover"&&Ue(Eo)})}var rr=E(Yo,2);{var Zo=Ue=>{ja(Ue,{kind:"record",get thumbUrl(){return e.thumbUrl}})};V(rr,Ue=>{a()==="LiveWaitingRecord"&&Ue(Zo)})}var ar=E(rr,2);{var Bs=Ue=>{var Ft=n3();let Fn;var ea=h(Ft);bl(ea,{get adsSlotId(){return kt()},get adsParams(){return nt()},get adsPreviewParam(){return ut()},get adsAutoplayParam(){return Et()},get duration(){return we()}}),g(Ft),C(Nr=>Fn=Z(Ft,1,"ads-container svelte-1b9vdl1",null,Fn,Nr),[()=>({hidden:a()!=="ads"})]),b(Ue,Ft)};V(ar,Ue=>{e.showAds&&Ze()&&Ue(Bs)})}var Za=E(ar,2);{var Ns=Ue=>{let Ft=m(()=>!Rt()&&e.showAutoplayNext&&S());bp(Ue,{get title(){return ne()},get thumb(){return Fe()},get isHide(){return r(Ft)},clickCloseIcon:()=>N(hn,!0)})};V(Za,Ue=>{r(_n)&&ne()&&Fe()&&Ue(Ns)})}var yn=E(Za,2);{var Ds=Ue=>{let Ft=m(()=>!f());Lf(Ue,{get title(){return e.title},get isHidden(){return r(Ft)}})};V(yn,Ue=>{r(Jn)&&Ue(Ds)})}var Xa=E(yn,2);{var $t=Ue=>{let Ft=m(()=>a()==="video"&&f());Zl(Ue,{get isShifted(){return r(Ft)}})};V(Xa,Ue=>{ee()&&Ue($t)})}var ht=E(Xa,2);{var xn=Ue=>{var Ft=r3(),Fn=h(Ft);hl(Fn,{"aria-label":Cr}),g(Ft),b(Ue,Ft)};V(ht,Ue=>{ue()&&Ue(xn)})}var kr=E(ht,2);{var va=Ue=>{Jl(Ue,{get thumbUrl(){return e.thumbUrl},get chromecastDeviceName(){return R()}})};V(kr,Ue=>{Le()&&Ue(va)})}var Tr=E(kr,2);{var Ir=Ue=>{Xl(Ue,{get shifted(){return f()},get captions(){return Ie()},get position(){return je()},get playerSize(){return T()}})};V(Tr,Ue=>{be().value!=="off"&&Ue(Ir)})}var Jr=E(Tr,2);{var Os=Ue=>{var Ft=a3();Ft.__contextmenu=Vi,Ft.__click=[o3,ie,Xt,u,z,ti];var Fn=h(Ft);ed(Fn,{}),g(Ft),b(Ue,Ft)};V(Jr,Ue=>{l()&&Ue(Os)})}var _d=E(Jr,2);{var Qc=Ue=>{let Ft=m(()=>a()==="thumb"||a()==="LiveWaitingStart"||a()==="LiveWaitingRecover"||a()==="LiveWaitingRecord"),Fn=m(()=>a()==="ads"),ea=m(()=>e.canRewindLive&&qe()!==0);Yl(Ue,{get bottomHidden(){return r(Ft)},get bottomNoSmooth(){return Q()},get showControls(){return f()},get isAds(){return r(Fn)},get canRewindLive(){return r(ea)},get logoClickable(){return e.logoClickable},get logoHidden(){return e.logoHidden},get logoTargetUrl(){return Ne()},get showAutoplayNext(){return e.showAutoplayNext},get showNextPrevButtons(){return Ye()},get nextButtonActive(){return W()},get prevButtonActive(){return re()},get isOneVideoPlaylist(){return Ge()},customFullscreenSupported:_r,toggleFullscreen:ft,get seekToInteractive(){return e.seekToInteractive},get playPrevChapter(){return e.playPrevChapter},get playerControlsWrapperRef(){return r(Xe)},set playerControlsWrapperRef(Nr){N(Xe,le(Nr))},get playerControlsRef(){return r(qo)},set playerControlsRef(Nr){N(qo,le(Nr))}})};V(_d,Ue=>{Ze()&&Ue(Qc)})}var bd=E(_d,2);{var Gc=Ue=>{var Ft=s3(),Fn=h(Ft);let ea=m(()=>r(qo)?.clientHeight);rd(Fn,{get supportLink(){return e.supportLink},get playerControlsHeight(){return r(ea)},returnFocus:()=>Gt()?.focus(),get ref(){return r(Ln)},set ref(Nr){N(Ln,le(Nr))}}),g(Ft),b(Ue,Ft)};V(bd,Ue=>{!Le()&&a()!=="ads"&&Ue(Gc)})}var ga=E(bd,2);let jc=m(()=>!r(gn));yl(ga,{get isLive(){return ke()},get isHidden(){return r(jc)},get isPlaying(){return Ce()},get position(){return je()},get duration(){return Pe()}});var Hs=E(ga,2);Ef(Hs,{data:Pi});var Fs=E(Hs,2);_p(Fs,{get supportLink(){return e.supportLink},returnFocus:()=>Gt()?.focus(),get visible(){return ie()},get playerContainerRef(){return r(qi)},get controlsContainerRef(){return r(Xe)},get position(){return Ve()},get menuElementRef(){return r(jo)},set menuElementRef(Ue){N(jo,le(Ue))}});var $d=E(Fs,2);{var yd=Ue=>{ad(Ue,{onClose:Ii,onSelectAutoQuality:()=>{hr("auto"),Ii()}})};V($d,Ue=>{r(Ti)&&Ue(yd)})}var Ja=E($d,2);{var xd=Ue=>{Fa(Ue,{})};V(Ja,Ue=>{r(Rn)&&Ue(xd)})}var wd=E(Ja,2);{var Sd=Ue=>{Cp(Ue,{})};V(wd,Ue=>{ct()&&Ue(Sd)})}var Cd=E(wd,2);{var Yc=Ue=>{Cl(Ue,{})};V(Cd,Ue=>{gt()&&Ue(Yc)})}var Zc=E(Cd,2);dl(Zc,()=>"slot",!1,(Ue,Ft)=>{he(Ue,null,{name:sd})}),b(xi,oi)}),C((xi,oi)=>{gi=Z(ii,1,"video-wrapper svelte-1b9vdl1",null,gi,xi),hi=Z(Qt,1,"video-container svelte-1b9vdl1",null,hi,oi),tt(Qt,`transform: rotate(${P()}deg) scale(${r(er)})`),Me(Qt,"data-is-playing",Ce())},[()=>({hidden:a()!=="video",nocursor:r(br)}),()=>({"fast-rotate":!e.uiConfig.isSmoothVideoRotate})]),b(Te,ci)},$$slots:{default:!0}}),Te=>Gt(Te),()=>Gt());var go=E(et,2);at(go,Te=>N(pn,Te),()=>r(pn)),g(ji),at(ji,Te=>N(qi,Te),()=>r(qi)),St("mouseenter",ji,Gi),St("mouseleave",ji,On),St("click",ji,or,!0),St("focusin",ji,$r,!0),b(t,ji),U(),o()}it(["mousemove","contextmenu","mousedown","mouseup","click","dblclick"]);import{clientChecker as ld,PlaybackState as y3}from"@vkontakte/videoplayer-core/evergreen";import{noop as x3}from"@vkontakte/videoplayer-shared/evergreen";var p3=M('<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),f3=M("<div><!></div>"),m3={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;
307
312
  animation: svelte-nhq2ld-blink 500ms infinite;opacity:0;}.triangle.right.svelte-nhq2ld:nth-child(1),
308
313
  .triangle.left.svelte-nhq2ld:nth-child(3) {animation-delay:0ms;}.triangle.right.svelte-nhq2ld:nth-child(2),
309
314
  .triangle.left.svelte-nhq2ld:nth-child(2) {animation-delay:100ms;}.triangle.right.svelte-nhq2ld:nth-child(3),
@@ -319,9 +324,9 @@ Try switching the\xA0quality to\xA0Auto.`},Lg=C$;var gs=new Map;gs.set(Vg.EN,Lg)
319
324
  100% {
320
325
  opacity: 0;
321
326
  }
322
- }.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 bc(t,e){if(new.target)return T({component:bc,...t});I(e,!0),oe(t,cx);let i=u(e,"side",7),o=u(e,"seekStep",7,0),n=u(e,"handleSingleFirstClick",7),s=u(e,"handleSecondClick",7),a=de(!1),l=0,c=0,p=de(ke(o())),f=b=>{b.stopPropagation(),c+=1,K(p,o()*(c-1)),c===1?n()(b):(K(a,!0),s()()),window.clearTimeout(l),l=window.setTimeout(()=>{c=0,K(a,!1)},300)};tr(()=>{window.clearTimeout(l)});var v=lx();v.__click=f;var m=y(v);{var g=b=>{var w=ax(),k=ye(w),V=N(k,2),F=y(V),M=y(F),H=N(M,2),S=N(H,2);$(F);var q=N(F,2),W=y(q,!0);$(q),$(V),L(U=>{Uo(k,`semicircle ${i()??""} svelte-nhq2ld`),Uo(M,`triangle ${i()??""} svelte-nhq2ld`),Uo(H,`triangle ${i()??""} svelte-nhq2ld`),Uo(S,`triangle ${i()??""} svelte-nhq2ld`),Se(W,U)},[()=>j("doubletap_seek_step",{seconds:r(p).toFixed(0)})]),x(b,w)};O(m,b=>{r(a)&&b(g)})}return $(v),L(()=>Uo(v,`double-click-area ${i()??""} svelte-nhq2ld`)),x(t,v),E({get side(){return i()},set side(b){i(b),d()},get seekStep(){return o()},set seekStep(b=0){o(b),d()},get handleSingleFirstClick(){return n()},set handleSingleFirstClick(b){n(b),d()},get handleSecondClick(){return s()},set handleSecondClick(b){s(b),d()},$set:A,$on:(b,w)=>P(e,b,w)})}pt(["click"]);var dx=(t,e,i)=>{e(!1),i()},ux=D('<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 class="thumb-overlay svelte-1qdxi6t"></div> <!></div></div> <div class="column svelte-1qdxi6t"><div class="title svelte-1qdxi6t"> </div></div></div></div>',1),px={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 Sp(t,e){if(new.target)return T({component:Sp,...t});I(e,!0),oe(t,px);let[i,o]=Je(),n=()=>C(v,"$autoplayNextEnabled$",i),s=()=>C(m,"$timerNextVideoRunning$",i),a=u(e,"title",7),l=u(e,"thumb",7),c=u(e,"isHide",7),p=u(e,"clickCloseIcon",7),f=Be(),v=f.ui.autoplayNextEnabled$,m=f.ui.timerNextVideoRunning$,g=f.actions.internal.nextVideoClick,b=f.actions.internal.nextVideoAnnouncementShow,w=f.actions.internal.nextVideoAnnouncementClick,k=f.actions.internal.nextVideoAnnouncementAuto,V=f.actions.internal.nextVideoAnnouncementCancel,F=()=>{g(!1),k()},M=()=>{p()(),V()};Ut(()=>{c()||b(),c()&&n()&&(g(!1),k())});var H=Ye(),S=ye(H);{var q=U=>{var ie=ux(),se=N(ye(ie),2),fe=y(se),J=y(fe),xe=y(J,!0);$(J);var Ce=N(J,2);Ls(Ce,{onClick:M}),$(fe);var X=N(fe,2);X.__click=[dx,g,w];var me=y(X),he=y(me),te=y(he),le=N(te,2);{var z=ce=>{tl(ce,{get isRunning(){return s()},onTimerEnded:F})};O(le,ce=>{n()&&ce(z)})}$(he),$(me);var je=N(me,2),Re=y(je),Y=y(Re,!0);$(Re),$(je),$(X),$(se),L(ce=>{Se(xe,ce),pe(he,"style",`background-image: url('${l()}')`),ne(te,"withOpacity",n()),Se(Y,a())},[()=>n()?j("end_screen_next_video"):j("end_screen_recommended_video")]),x(U,ie)};O(S,U=>{c()||U(q)})}x(t,H);var W=E({get title(){return a()},set title(U){a(U),d()},get thumb(){return l()},set thumb(U){l(U),d()},get isHide(){return c()},set isHide(U){c(U),d()},get clickCloseIcon(){return p()},set clickCloseIcon(U){p(U),d()},$set:A,$on:(U,ie)=>P(e,U,ie)});return o(),W}pt(["click"]);import{clientChecker as fx}from"@vkontakte/videoplayer-core/evergreen";var Zh=({getFullscreenTarget:t,fullScreenChangeHandler:e})=>{let i=null,o;Ut(()=>{fx.device.isIOS&&(o=setTimeout(()=>{let s=t().querySelector("video");if(!s)return;let a=()=>e(!0),l=()=>e(!1);s.addEventListener("webkitbeginfullscreen",a),s.addEventListener("webkitendfullscreen",l),i=()=>{s.removeEventListener("webkitbeginfullscreen",a),s.removeEventListener("webkitendfullscreen",l)}},0))}),tr(()=>{i?.(),clearTimeout(o)})};import{VideoFormat as mx}from"@vkontakte/videoplayer-core/evergreen";var kp=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(){return this.getTracksArray().find(e=>e.track.mode==="showing")?.id??null}};import{clientChecker as vx}from"@vkontakte/videoplayer-core/evergreen";var Xh=({store:t,getFullscreenTarget:e})=>{let{isFullscreen:i}=t.ui,{setSubtitle:o}=t.actions.internal,{currentSubtitle$:n,availableSubtitlesList$:s,currentFormat$:a,availableTextTracks$:l}=t.state,c=null,p=()=>e().querySelector("video"),f=()=>vx.device.isIOS&&Ae(a)===mx.DASH_LIVE_CMAF,v=()=>{c?.(),c=null},m=g=>{if(v(),!f()||!g)return;let b=p();if(!b)return;let w=new kp(b),k=Ae(l),V=Ae(s),F=Ae(n);for(let S of k)V.some(W=>W.value===S.id)&&w.attach(S,F.value===S.id);let M=l.subscribe(S=>{for(let q of S)w.updateSrc(q)}),H=()=>{let S=w.getCurrentShowingId();o(Ae(s).find(q=>q.value===S))};b.textTracks.addEventListener("change",H),c=()=>{M(),w.detachAll(),b.textTracks.removeEventListener("change",H)}};Ut(()=>i.subscribe(m)),tr(v)};var _x=(t,e,i,o)=>{if(t.stopPropagation(),e()){o();return}},$x=D("<!> <!>",1),bx=D('<div class="ads-container svelte-dtyj47"><!></div>'),yx=D('<div class="spherical-video-icon svelte-dtyj47"><!></div>'),xx=D("<div><!></div>"),wx=D('<div class="settings-mobile svelte-dtyj47"><!></div>'),Cx=D("<!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!>",1),Sx=D('<div class="player-wrapper svelte-dtyj47" role="region" tabindex="-1"><div class="video-wrapper svelte-dtyj47"><div class="video-container svelte-dtyj47" data-testid="video-container"></div></div> <!> <div class="overlay-container"></div></div>'),kx={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,
327
+ }.triangle.left.svelte-nhq2ld {border-right:8px solid var(--white);}.triangle.right.svelte-nhq2ld {border-left:8px solid var(--white);}.triangle.svelte-nhq2ld:not(:last-child) {margin-right:5px;}.step-caption.svelte-nhq2ld {margin:0;text-align:center;font-size:12px;line-height:1;color:var(--white);}`};function Nc(t,e){F(e,!0),q(t,m3);let i=v(e,"seekStep",3,0),o=Y(!1),n=0,a=0,s=Y(le(i())),d=_=>{_.stopPropagation(),a+=1,N(s,i()*(a-1)),a===1?e.handleSingleFirstClick(_):(N(o,!0),e.handleSecondClick()),window.clearTimeout(n),n=window.setTimeout(()=>{a=0,N(o,!1)},300)};Kn(()=>{window.clearTimeout(n)});var l=f3();l.__click=d;var c=h(l);{var u=_=>{var f=p3(),y=pe(f),x=E(y,2),w=h(x),S=h(w),I=E(S,2),L=E(I,2);g(w);var A=E(w,2),P=h(A,!0);g(A),g(x),C(T=>{Z(y,1,`semicircle ${e.side??""}`,"svelte-nhq2ld"),Z(S,1,`triangle ${e.side??""}`,"svelte-nhq2ld"),Z(I,1,`triangle ${e.side??""}`,"svelte-nhq2ld"),Z(L,1,`triangle ${e.side??""}`,"svelte-nhq2ld"),de(P,T)},[()=>H("doubletap_seek_step",{seconds:r(s).toFixed(0)})]),b(_,f)};V(c,_=>{r(o)&&_(u)})}g(l),C(()=>Z(l,1,`double-click-area ${e.side??""}`,"svelte-nhq2ld")),b(t,l),U()}it(["click"]);var v3=(t,e,i)=>{e(!1),i()},g3=M('<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),h3={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 rm(t,e){F(e,!0),q(t,h3);let[i,o]=Oe(),n=()=>$(d,"$autoplayNextEnabled$",i),a=()=>$(l,"$timerNextVideoRunning$",i),s=ye(),d=s.ui.autoplayNextEnabled$,l=s.ui.timerNextVideoRunning$,c=s.actions.internal.nextVideoClick,u=s.actions.internal.nextVideoAnnouncementShow,_=s.actions.internal.nextVideoAnnouncementClick,f=s.actions.internal.nextVideoAnnouncementAuto,y=s.actions.internal.nextVideoAnnouncementCancel,x=()=>{c(!1),f()},w=()=>{e.clickCloseIcon(),y()};It(()=>{e.isHide||u(),e.isHide&&n()&&(c(!1),f())});var S=ze(),I=pe(S);{var L=A=>{var P=g3(),T=E(pe(P),2),D=h(T),Q=h(D),G=h(Q,!0);g(Q);var ee=E(Q,2);Oa(ee,{onClick:w}),g(D);var ie=E(D,2);ie.__click=[v3,c,_];var oe=h(ie),te=h(oe),ge=h(te);let X;var Le=E(ge,2);{var Ae=B=>{kl(B,{get isRunning(){return a()},onTimerEnded:x})};V(Le,B=>{n()&&B(Ae)})}g(te),g(oe);var se=E(oe,2),He=h(se),j=h(He,!0);g(He),g(se),g(ie),g(T),C((B,Re)=>{de(G,B),tt(te,`background-image: url('${e.thumb}')`),X=Z(ge,1,"thumb-overlay svelte-1qdxi6t",null,X,Re),de(j,e.title)},[()=>n()?H("end_screen_next_video"):H("end_screen_recommended_video"),()=>({withOpacity:n()})]),b(A,P)};V(I,A=>{e.isHide||A(L)})}b(t,S),U(),o()}it(["click"]);import{clientChecker as _3}from"@vkontakte/videoplayer-core/evergreen";var Hh=({getFullscreenTarget:t,fullScreenChangeHandler:e})=>{let i=null,o;It(()=>{_3.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))}),Kn(()=>{i?.(),clearTimeout(o)})};import{VideoFormat as b3}from"@vkontakte/videoplayer-core/evergreen";var Dc=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(){return this.getTracksArray().find(e=>e.track.mode==="showing")?.id??null}};import{clientChecker as $3}from"@vkontakte/videoplayer-core/evergreen";var Fh=({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,c=()=>e().querySelector("video"),u=()=>$3.device.isIOS&&ve(s)===b3.DASH_LIVE_CMAF,_=()=>{l?.(),l=null},f=y=>{if(_(),!u()||!y)return;let x=c();if(!x)return;let w=new Dc(x),S=ve(d),I=ve(a),L=ve(n);for(let T of S)I.some(Q=>Q.value===T.id)&&w.attach(T,L.value===T.id);let A=d.subscribe(T=>{for(let D of T)w.updateSrc(D)}),P=()=>{let T=w.getCurrentShowingId();o(ve(a).find(D=>D.value===T))};x.textTracks.addEventListener("change",P),l=()=>{A(),w.detachAll(),x.textTracks.removeEventListener("change",P)}};It(()=>i.subscribe(f)),Kn(_)};var w3=(t,e,i,o)=>{if(t.stopPropagation(),e()){o();return}},S3=M("<!> <!>",1),C3=M("<div><!></div>"),k3=M('<div class="spherical-video-icon svelte-dtyj47"><!></div>'),T3=M("<div><!></div>"),I3=M('<div class="settings-mobile svelte-dtyj47"><!></div>'),E3=M("<!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!>",1),A3=M('<div class="player-wrapper svelte-dtyj47" role="region" tabindex="-1"><div><div data-testid="video-container"></div></div> <!> <div class="overlay-container"></div></div>'),P3={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,
323
328
  .video-container.svelte-dtyj47,
324
- .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 Tp(t,e){if(new.target)return T({component:Tp,...t});I(e,!0),oe(t,kx);let[i,o]=Je(),n=()=>C(fi,"$playerPhase",i),s=()=>C(ko,"$isLoaderVisible",i),a=()=>C(Wt,"$adPlaybackState",i),l=()=>C(zt,"$crashed",i),c=()=>C(On,"$notificationsToShow$",i),p=()=>C(B,"$playbackState$",i),f=()=>C(uo,"$graphIsOpened$",i),v=()=>C(rn,"$interactiveHideMobileControls",i),m=()=>C(it,"$isEnded$",i),g=()=>C(Rn,"$isInteractiveExpectation$",i),b=()=>C(lo,"$controlsVisible",i),w=()=>C(Wo,"$touched",i),k=()=>C(is,"$autoplayNextEnabled$",i),V=()=>C(an,"$postrollPassed",i),F=()=>C(Vr,"$rotateAlpha",i),M=()=>C(Mn,"$playerSize",i),H=()=>C(Ko,"$bottomNoSmooth",i),S=()=>C(Pn,"$videoSize",i),q=()=>C(li,"$isFullscreen",i),W=()=>C(oi,"$position$",i),U=()=>C(Ni,"$duration$",i),ie=()=>C(Vn,"$loadedMetadata",i),se=()=>C(co,"$settingsMenuVisible",i),fe=()=>C(sn,"$scrubbingInProgress",i),J=()=>C(sr,"$volumeChangingInProgress",i),xe=()=>C(Bt,"$chromecastConnected$",i),Ce=()=>C(Ui,"$isInteractiveTime$",i),X=()=>C(Ti,"$isActiveLive",i),me=()=>C(ho,"$settingsMenuOpenedByKeyboard",i),he=()=>C(_i,"$isPlaying$",i),te=()=>C(ao,"$language$",i),le=()=>C(To,"$disabledControls$",i),z=()=>C(Ln,"$is3DVideo",i),je=()=>C(yo,"$icon3DVideoVisible",i),Re=()=>C(Zi,"$chromecastDeviceName$",i),Y=()=>C(An,"$currentSubtitle$",i),ce=()=>C(zo,"$currentSubtitleCaptions$",i),Ge=()=>C(bo,"$realDuration$",i),G=()=>C(Et,"$isLive$",i),Ve=()=>C(En,"$debugPanelVisible",i),ue=u(e,"store",7),We=u(e,"uiConfig",7),rt=u(e,"thumbUrl",7),Ue=u(e,"videoContainer",15),we=u(e,"interactiveContainer",7),Me=u(e,"live",7),st=u(e,"autoplay",7),ct=u(e,"canRewindLive",7),_e=u(e,"showAds",7),et=u(e,"adsSlotId",7,void 0),yt=u(e,"adsParams",7,void 0),ee=u(e,"adsPreviewParam",7,void 0),tt=u(e,"adsAutoplayParam",7,void 0),$t=u(e,"duration",7,void 0),dt=u(e,"logoClickable",7),ge=u(e,"logoHidden",7),Pe=u(e,"logoTargetUrl",7,""),$e=u(e,"showNextPrevButtons",7,!1),Qe=u(e,"nextButtonActive",7,!1),ze=u(e,"prevButtonActive",7,!1),ae=u(e,"endScreenVideoTitle",7,void 0),gt=u(e,"endScreenVideoThumb",7,void 0),Ze=u(e,"isOneVideoPlaylist",7,!1),Tt=u(e,"supportLink",7),Vt=u(e,"shadowRootContainer",7,void 0),Zt=u(e,"outerContainerRef",7,void 0),at=u(e,"showMiniTimer",7,!1),bt=u(e,"fullScreenTarget",7,void 0),Rt=u(e,"playerStarted",7,!1),Lt=u(e,"showEndScreen",7,!0),Xe=u(e,"showAutoplayNext",7),lt=u(e,"seekToInteractive",7),Nt=u(e,"playPrevChapter",7),ii=u(e,"firstStart",7),gi=u(e,"seekTime",7),{notifications$:so}=go(),hi=ue().getLogger().createComponentLog("Root component"),ao=ue().interfaceLanguage$,B=ue().state.playbackState$,Wt=ue().ads.playbackState,oi=ue().state.positionWithScrubbing$,Ni=ue().state.duration$,fi=ue().playerPhase,li=ue().ui.isFullscreen,lo=ue().ui.controlsVisible,rn=ue().ui.interactiveHideMobileControls,co=ue().ui.settingsMenu.visible$,ho=ue().ui.settingsMenu.openedByBtnKeyboard$,sn=ue().ui.scrubbingInProgress,sr=ue().ui.volumeChangingInProgress,En=ue().ui.debugPanelVisible,ko=ue().state.isLoaderVisible,it=ue().state.isEnded$,Bt=ue().state.chromecastConnected$,Zi=ue().state.chromecastDeviceName$,an=ue().ads.postrollPassed,_o=ue().ui.mobileUnmuteButtonExpanded,Bi=ue().ui.mobileUnmuteButtonVisible,Et=ue().state.isLive$,_i=ue().state.isPlaying$,Ti=ue().state.isActiveLive$,$o=ue().state.isRewindableLive$,zt=ue().state.crashed$,Di=ue().webApi.annotationsApi,Ii=ue().webApi.pictureInPictureApi,Pn=ue().state.videoSize$,An=ue().state.currentSubtitle$,zo=ue().state.currentSubtitleCaptions$,bo=ue().state.duration$,uo=ue().state.graphIsOpened$,Mn=ue().ui.playerSize,Ln=ue().ui.is3DVideo,yo=ue().ui.icon3DVideoVisible,Vr=ue().ui.rotateAlpha,xo=ue().state.isInteractive,Ui=ue().state.isInteractiveTime$,Rn=ue().state.isInteractiveExpectation$,ar=ue().state.hasInteractiveBranches,To=ue().ui.controls.disabledControls$,Wo=ue().ui.touched,lr=ue().ui.overlayContainer$,is=ue().ui.autoplayNextEnabled$,Vn=ue().state.loadedMetadata$,Nn=ue().actions.internal.closeSettingsMenu,Xi=ue().callbacks?.onDisabledPlayPrevChapterClick,Bn=ue().callbacks?.onDisabledSeekToInteractiveClick,Dn=ue().actions.internal.setQuality,yi=de(void 0),zi=de(void 0),ln=de(void 0),cn=de(void 0),cr,dn,qo,xi=_(()=>(n()==="video"&&s()||n()==="ads"&&a()==="inactive")&&!l()),un=de(void 0),{closeNotification:ft,notificationsToShow$:On}=so,dr=_(()=>!!c().slow_video),Hn=()=>ft("slow_video"),Ko=be(!1),ur,Io=de(!1),Nr=_(()=>p()!==gx.PLAYING),Fn=de(!1),pr=_(()=>f()||v()||!r(Io)&&(m()&&!!ar||r(Nr)&&g())),pn=de(!0),Un=_(()=>We().features.thumbTimer&&at()&&n()==="video"&&!b()&&!l()&&!xo&&(We().hideThumbTimerAfterTouch&&!w()||!We().hideThumbTimerAfterTouch)),zn=de(!1),po=_(()=>(Lt()||Xe()&&k())&&!!ae()&&!!gt()&&(_e()&&V()||!_e())&&m()&&!l()&&!r(zn)),Eo=de(!1),Wi=_(()=>Ue()&&F()%180?M().height/M().width:1);Ii?.setContext(Wl());let Po=ve=>{clearTimeout(dn),ve&&(Bi.set(!0),_o.set(!0),dn=setTimeout(()=>{_o.set(!1)},We().controls.collapseMobileUnmute),xo||Pi(We().controls.hideTimeoutMobile))};ue().setUiCallbacks({onStarted:Po});let Ei=()=>{clearTimeout(cr),K(Io,!1),v()&&rn.set(!1)},Pi=ve=>{Ei(),K(Io,!0),cr=setTimeout(()=>K(Io,!1),ve);let St=ve-100;ur=setTimeout(()=>{H()&&Ko.set(!1)},St>0?St:ve)},fr=Ln.subscribe(ve=>{yo.set(ve),ve&&(clearTimeout(qo),qo=setTimeout(()=>yo.set(!1),We().controls.hide360IconTimeout))}),fn=async(ve=Es())=>{if(ve&&!yc.device.isIOS){let St=lc(),di=vn(),$i=yc.browser.isSamsungBrowser&&St===Vt();ve=St===di||$i}if(ve){Pi(We().controls.hideTimeoutFullscreen);try{await Ii?.remove()}catch(St){hi({message:String(St)})}try{let St=S()?.width&&S()?.height?S():M();await Hg(St)}catch(St){hi({message:String(St)})}}li.set(ve),ue().getAdmanWrapper().setFullscreen(ve),q()?ue().callbacks?.onFullscreenEnter?.():ue().callbacks?.onFullscreenExit?.()},Br=ve=>{let St=ve;Mn.set({width:St.target.width,height:St.target.height})};Ut(()=>(xd(fn),We().features.annotationsInside&&Di?.init(r(yi)),la(Ii)&&(Ii?.assignPlayerContainer(r(yi)),Ii?.registryExternalEventHandlers({resize:Br})),K(pn,!yc.device.isIphoneOrOldIpad),we()&&Ue().parentElement?.insertBefore(we(),Ue().nextSibling),()=>{clearTimeout(cr),clearTimeout(ur),clearTimeout(dn),clearTimeout(qo),fr(),Ii?.dispose().catch(ve=>{hi({message:String(ve)})}),wd(fn)}));let mn=de(!0),mr=de(!0),Wn=ve=>{let St=W()+(ve==="forward"?1:-1)*We().controls.seekStepMobile/1e3;St<0?(K(mn,!1),St=0):St>=U()&&(K(mr,!1),St=U()),K(Fn,!0),gi()(St)},vn=()=>{let ve=yc.device.isIOS||We().features.fullscreenInternalTargetPlayerContainer||!Zt()?r(yi):Zt(),St=ve.getRootNode(),di=St instanceof ShadowRoot?St.host:St,$i=bt()instanceof HTMLElement&&bt().contains(di);return We().allowChangingFullscreenTarget&&bt()&&$i?bt():ve},Dr=async()=>{try{if(Es())await yd(document),hi({message:"exit fullscreen"});else{if(hi({message:"request fullscreen"}),yc.device.isIOS&&!ie())return;await bd(vn())}}catch(ve){hi({message:String(ve)})}},qn=()=>{Nn()},Kn=ve=>{if(ve.preventDefault(),se()){qn();return}if(!Rt()){ii()(),Pi(We().controls.hideTimeoutCursor);return}K(Fn,!1),b()?Ei():Pi(We().controls.hideTimeoutMobile)},ci=()=>{Wo.set(!0)},vr=()=>{xo||(Ko.set(!0),Pi(We().controls.hideTimeoutCursor))},gn=ve=>{Xi&&(Xi(ve),Pi(We().controls.hideTimeoutMobile))},Ao=ve=>{Bn&&(Bn(ve),Pi(We().controls.hideTimeoutMobile))};ot(()=>{lr.set(r(un))}),ot(()=>{lo.set((r(Nr)||se()||fe()||J()||xe()||!r(po)&&(m()||r(Io)&&!r(Fn)))&&!r(pr)&&n()==="video"&&!l())}),ot(()=>{!fe()&&r(Eo)&&!Ce()&&Pi(We().controls.hideTimeoutMobile),K(Eo,ke(fe()))}),ot(()=>{K(mn,W()>0),K(mr,ke(!X()&&W()<U()))}),ot(()=>{Xr(r(cn),se(),me())});let Or=j("aria_label_video_player"),Ee=j("video360");Zh({fullScreenChangeHandler:fn,getFullscreenTarget:vn}),Xh({store:ue(),getFullscreenTarget:vn});var Pt=Sx();Dt("blur",Js,qn),pe(Pt,"aria-label",Or);var Kt=y(Pt);Kt.__click=Kn;var mi=y(Kt);vt(mi,ve=>Ue(ve),()=>Ue()),$(Kt);var Mo=N(Kt,2);Xl(Mo,te,ve=>{var St=Cx(),di=ye(St);let $i=_(()=>n()!=="thumb"||l()||xo&&st());Il(di,{get hidden(){return r($i)},get thumbUrl(){return rt()},get startVideo(){return ii()}});var Lo=N(di,2);{var Qo=Ke=>{var Gt=$x(),Ji=ye(Gt);{var jo=Xo=>{let Ur=_(()=>We().controls.seekStepMobile/1e3);bc(Xo,{side:"left",get seekStep(){return r(Ur)},handleSingleFirstClick:Kn,handleSecondClick:()=>Wn("backward")})};O(Ji,Xo=>{r(mn)&&Xo(jo)})}var Zo=N(Ji,2);{var ns=Xo=>{let Ur=_(()=>We().controls.seekStepMobile/1e3);bc(Xo,{side:"right",get seekStep(){return r(Ur)},handleSingleFirstClick:Kn,handleSecondClick:()=>Wn("forward")})};O(Zo,Xo=>{r(mr)&&Xo(ns)})}x(Ke,Gt)};O(Lo,Ke=>{ct()&&$o&&!le().has("TIMELINE")&&Ke(Qo)})}var Mi=N(Lo,2);{var hn=Ke=>{let Gt=_(()=>Me()?.startTime);El(Ke,{get thumbUrl(){return rt()},get startTime(){return r(Gt)}})};O(Mi,Ke=>{n()==="LiveWaitingStart"&&Ke(hn)})}var Go=N(Mi,2);{var Qn=Ke=>{Us(Ke,{kind:"recover",get thumbUrl(){return rt()}})};O(Go,Ke=>{n()==="LiveWaitingRecover"&&Ke(Qn)})}var Gn=N(Go,2);{var Ro=Ke=>{Us(Ke,{kind:"record",get thumbUrl(){return rt()}})};O(Gn,Ke=>{n()==="LiveWaitingRecord"&&Ke(Ro)})}var Yo=N(Gn,2);{var Hr=Ke=>{var Gt=bx(),Ji=y(Gt);Ka(Ji,{get adsSlotId(){return et()},get adsParams(){return yt()},get adsPreviewParam(){return ee()},get adsAutoplayParam(){return tt()},get duration(){return $t()}}),$(Gt),L(()=>ne(Gt,"hidden",n()!=="ads")),x(Ke,Gt)};O(Yo,Ke=>{_e()&&Rt()&&Ke(Hr)})}var gr=N(Yo,2);{var hr=Ke=>{let Gt=_(()=>!Lt()&&Xe()&&k());Sp(Ke,{get title(){return ae()},get thumb(){return gt()},get isHide(){return r(Gt)},clickCloseIcon:()=>K(zn,!0)})};O(gr,Ke=>{r(po)&&ae()&&gt()&&Ke(hr)})}var _r=N(gr,2);{var os=Ke=>{Cl(Ke,{})};O(_r,Ke=>{z()&&Ke(os)})}var _n=N(_r,2);{var $r=Ke=>{var Gt=yx(),Ji=y(Gt);Wa(Ji,{"aria-label":Ee}),$(Gt),x(Ke,Gt)};O(_n,Ke=>{je()&&Ke($r)})}var fo=N(_n,2);{var Yn=Ke=>{kl(Ke,{get thumbUrl(){return rt()},get chromecastDeviceName(){return Re()}})};O(fo,Ke=>{xe()&&Ke(Yn)})}var mt=N(fo,2);{var Ot=Ke=>{Sl(Ke,{get shifted(){return b()},get captions(){return ce()},get position(){return W()},get playerSize(){return M()},isMobile:!0})};O(mt,Ke=>{Y().value!=="off"&&Ke(Ot)})}var ni=N(mt,2);{var jn=Ke=>{var Gt=xx();Gt.__click=[_x,se,co,qn];var Ji=y(Gt);Tl(Ji,{}),$(Gt),x(Ke,Gt)};O(ni,Ke=>{l()&&Ke(jn)})}var qi=N(ni,2);{var br=Ke=>{let Gt=_(()=>n()==="thumb"||n()==="LiveWaitingStart"||n()==="LiveWaitingRecover"||n()==="LiveWaitingRecord"||n()==="ads"),Ji=_(()=>n()==="ads"),jo=_(()=>ct()&&Ge()!==0);wl(Ke,{get bottomHidden(){return r(Gt)},get showControls(){return b()},get bottomNoSmooth(){return H()},get isAds(){return r(Ji)},get canRewindLive(){return r(jo)},get logoClickable(){return dt()},get logoHidden(){return ge()},get logoTargetUrl(){return Pe()},get showAutoplayNext(){return Xe()},get showNextPrevButtons(){return $e()},get nextButtonActive(){return Qe()},get prevButtonActive(){return ze()},get isOneVideoPlaylist(){return Ze()},get customFullscreenSupported(){return r(pn)},get endScreenShown(){return r(po)},toggleFullscreen:Dr,get seekToInteractive(){return lt()},get playPrevChapter(){return Nt()},onDisabledPlayPrevChapterClick:gn,onDisabledSeekToInteractiveClick:Ao,get playerControlsWrapperRef(){return r(zi)},set playerControlsWrapperRef(Zo){K(zi,ke(Zo))},get playerControlsRef(){return r(ln)},set playerControlsRef(Zo){K(ln,ke(Zo))}})};O(qi,Ke=>{Rt()&&Ke(br)})}var Zn=N(qi,2);{var yr=Ke=>{var Gt=wx(),Ji=y(Gt);Ml(Ji,{get supportLink(){return Tt()},returnFocus:hx,get ref(){return r(cn)},set ref(jo){K(cn,ke(jo))}}),$(Gt),x(Ke,Gt)};O(Zn,Ke=>{se()&&Ke(yr)})}var Z=N(Zn,2);let ht=_(()=>!r(Un));Ga(Z,{get isLive(){return G()},get isHidden(){return r(ht)},get isPlaying(){return he()},get position(){return W()},get duration(){return U()}});var ui=N(Z,2);{var ti=Ke=>{Vs(Ke,{})};O(ui,Ke=>{r(xi)&&Ke(ti)})}var Ki=N(ui,2);{var Vo=Ke=>{el(Ke,{})};O(Ki,Ke=>{Ve()&&Ke(Vo)})}var $n=N(Ki,2);{var Fr=Ke=>{Ll(Ke,{onClose:Hn,onSelectAutoQuality:()=>{Dn("auto"),Hn()}})};O($n,Ke=>{r(dr)&&Ke(Fr)})}var xr=N($n,2);ec(xr,()=>"slot",!1,(Ke,Gt)=>{Le(Ke,null,{name:$c},"svelte-dtyj47",Ke.namespaceURI===Ks,Ke.nodeName.includes("-"))}),x(ve,St)});var Ai=N(Mo,2);vt(Ai,ve=>K(un,ve),()=>r(un)),$(Pt),vt(Pt,ve=>K(yi,ve),()=>r(yi)),L(()=>{ne(Kt,"hidden",n()!=="video"),pe(mi,"style",`transform: rotate(${F()}deg) scale(${r(Wi)})`),pe(mi,"data-is-playing",he()),ne(mi,"fast-rotate",!We().isSmoothVideoRotate)}),Dt("click",Pt,ci,!0),Dt("focusin",Pt,vr,!0),x(t,Pt);var Oi=E({get store(){return ue()},set store(ve){ue(ve),d()},get uiConfig(){return We()},set uiConfig(ve){We(ve),d()},get thumbUrl(){return rt()},set thumbUrl(ve){rt(ve),d()},get videoContainer(){return Ue()},set videoContainer(ve){Ue(ve),d()},get interactiveContainer(){return we()},set interactiveContainer(ve){we(ve),d()},get live(){return Me()},set live(ve){Me(ve),d()},get autoplay(){return st()},set autoplay(ve){st(ve),d()},get canRewindLive(){return ct()},set canRewindLive(ve){ct(ve),d()},get showAds(){return _e()},set showAds(ve){_e(ve),d()},get adsSlotId(){return et()},set adsSlotId(ve=void 0){et(ve),d()},get adsParams(){return yt()},set adsParams(ve=void 0){yt(ve),d()},get adsPreviewParam(){return ee()},set adsPreviewParam(ve=void 0){ee(ve),d()},get adsAutoplayParam(){return tt()},set adsAutoplayParam(ve=void 0){tt(ve),d()},get duration(){return $t()},set duration(ve=void 0){$t(ve),d()},get logoClickable(){return dt()},set logoClickable(ve){dt(ve),d()},get logoHidden(){return ge()},set logoHidden(ve){ge(ve),d()},get logoTargetUrl(){return Pe()},set logoTargetUrl(ve=""){Pe(ve),d()},get showNextPrevButtons(){return $e()},set showNextPrevButtons(ve=!1){$e(ve),d()},get nextButtonActive(){return Qe()},set nextButtonActive(ve=!1){Qe(ve),d()},get prevButtonActive(){return ze()},set prevButtonActive(ve=!1){ze(ve),d()},get endScreenVideoTitle(){return ae()},set endScreenVideoTitle(ve=void 0){ae(ve),d()},get endScreenVideoThumb(){return gt()},set endScreenVideoThumb(ve=void 0){gt(ve),d()},get isOneVideoPlaylist(){return Ze()},set isOneVideoPlaylist(ve=!1){Ze(ve),d()},get supportLink(){return Tt()},set supportLink(ve){Tt(ve),d()},get shadowRootContainer(){return Vt()},set shadowRootContainer(ve=void 0){Vt(ve),d()},get outerContainerRef(){return Zt()},set outerContainerRef(ve=void 0){Zt(ve),d()},get showMiniTimer(){return at()},set showMiniTimer(ve=!1){at(ve),d()},get fullScreenTarget(){return bt()},set fullScreenTarget(ve=void 0){bt(ve),d()},get playerStarted(){return Rt()},set playerStarted(ve=!1){Rt(ve),d()},get showEndScreen(){return Lt()},set showEndScreen(ve=!0){Lt(ve),d()},get showAutoplayNext(){return Xe()},set showAutoplayNext(ve){Xe(ve),d()},get seekToInteractive(){return lt()},set seekToInteractive(ve){lt(ve),d()},get playPrevChapter(){return Nt()},set playPrevChapter(ve){Nt(ve),d()},get firstStart(){return ii()},set firstStart(ve){ii(ve),d()},get seekTime(){return gi()},set seekTime(ve){gi(ve),d()},$set:A,$on:(ve,St)=>P(e,ve,St)});return o(),Oi}pt(["click"]);function Ip(t){let e="";return In(t.timelineSliderFilledColor)&&(e+=`--timeline-slider-filled-bg:${t.timelineSliderFilledColor};`),In(t.timelineSliderHandleColor)&&(e+=`--timeline-slider-handle-bg:${t.timelineSliderHandleColor};`),In(t.timelineSliderLoadedColor)&&(e+=`--timeline-slider-loaded-bg:${t.timelineSliderLoadedColor};`),In(t.timelineSliderColor)&&(e+=`--timeline-slider-bg:${t.timelineSliderColor};`),In(t.volumeSliderColor)&&(e+=`--volume-slider-bg:${t.volumeSliderColor};`),In(t.volumeSliderHandleColor)&&(e+=`--volume-slider-handle-bg:${t.volumeSliderHandleColor};`),In(t.volumeSliderFilledColor)&&(e+=`--volume-slider-filled-bg:${t.volumeSliderFilledColor};`),In(t.controlsTimeColor)&&(e+=`--controls-time:${t.controlsTimeColor};`),In(t.timelineSliderFilledActiveLiveColor)&&(e+=`--timeline-slider-filled-active-live-bg:${t.timelineSliderFilledActiveLiveColor};`),In(t.timelineSliderHandleActiveLiveColor)&&(e+=`--timeline-slider-handle-active-live-bg:${t.timelineSliderHandleActiveLiveColor};`),In(t.buttonColor)&&(e+=`--btn-color:${t.buttonColor};`),In(t.buttonToggleOnColor)&&(e+=`--toggle-color-on:${t.buttonToggleOnColor};`,e+=`--toggle-color-autoplay-on:${t.buttonToggleOnColor};`),In(t.focusedColor)&&(e+=`--focused:${t.focusedColor};`),e.length&&e||void 0}function In(t){return typeof t=="string"&&!t.includes(";")}var Ax=D('<div class="root svelte-1cnbt6x"><!></div>'),Mx={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;
329
+ .ads-container.svelte-dtyj47 {position:absolute;width:100%;height:100%;left:0;top:0;}.video-wrapper.svelte-dtyj47 {z-index:var(--video-container-z-index);background:var(--black);}.video-container.svelte-dtyj47 {z-index:var(--video-container-z-index);transition:var(--rotate-transition-duration) ease all;}.video-container.fast-rotate.svelte-dtyj47 {transition:none;}.ads-container.svelte-dtyj47 {z-index:var(--ads-container-z-index);background:var(--black);}.settings-mobile.svelte-dtyj47 {position:absolute;z-index:var(--settings-menu-z-index);top:50%;left:50%;transform:translate(-50%,-50%);transition:opacity var(--controls-transition-duration);display:flex;align-items:center;max-width:320px;width:90%;}`};function am(t,e){F(e,!0),q(t,P3);let[i,o]=Oe(),n=()=>$(Gt,"$playerPhase",i),a=()=>$(Ho,"$isLoaderVisible",i),s=()=>$(Ee,"$adPlaybackState",i),d=()=>$(xo,"$crashed",i),l=()=>$(Ln,"$notificationsToShow$",i),c=()=>$(Ze,"$playbackState$",i),u=()=>$(Ge,"$graphIsOpened$",i),_=()=>$(Fi,"$interactiveHideMobileControls",i),f=()=>$(co,"$isEnded$",i),y=()=>$(zi,"$isInteractiveExpectation$",i),x=()=>$(ui,"$controlsVisible",i),w=()=>$(mi,"$touched",i),S=()=>$(So,"$autoplayNextEnabled$",i),I=()=>$(yi,"$postrollPassed",i),L=()=>$(Wt,"$rotateAlpha",i),A=()=>$(An,"$playerSize",i),P=()=>$(Ko,"$bottomNoSmooth",i),T=()=>$(bt,"$videoSize",i),D=()=>$(Zt,"$isFullscreen",i),Q=()=>$(dt,"$position$",i),G=()=>$(Rt,"$duration$",i),ee=()=>$(ln,"$loadedMetadata",i),ie=()=>$(Do,"$settingsMenuVisible",i),oe=()=>$(io,"$scrubbingInProgress",i),te=()=>$(rn,"$volumeChangingInProgress",i),ge=()=>$(z,"$chromecastConnected$",i),X=()=>$(ei,"$isInteractiveTime$",i),Le=()=>$(yo,"$isActiveLive",i),Ae=()=>$(nn,"$settingsMenuOpenedByKeyboard",i),se=()=>$(Yn,"$isPlaying$",i),He=()=>$(Ke,"$language$",i),j=()=>$(sn,"$disabledControls$",i),B=()=>$(oo,"$is3DVideo",i),Re=()=>$(wo,"$icon3DVideoVisible",i),_e=()=>$(zt,"$chromecastDeviceName$",i),Ce=()=>$(Bt,"$currentSubtitle$",i),Be=()=>$(po,"$currentSubtitleCaptions$",i),ue=()=>$(ki,"$realDuration$",i),R=()=>$(Jt,"$isLive$",i),be=()=>$(Oo,"$debugPanelVisible",i),Ie=v(e,"videoContainer",15),je=v(e,"adsSlotId",3,void 0),qe=v(e,"adsParams",3,void 0),ke=v(e,"adsPreviewParam",3,void 0),Pe=v(e,"adsAutoplayParam",3,void 0),Ve=v(e,"duration",3,void 0),ct=v(e,"logoTargetUrl",3,""),gt=v(e,"showNextPrevButtons",3,!1),ot=v(e,"nextButtonActive",3,!1),kt=v(e,"prevButtonActive",3,!1),nt=v(e,"endScreenVideoTitle",3,void 0),ut=v(e,"endScreenVideoThumb",3,void 0),Et=v(e,"isOneVideoPlaylist",3,!1),we=v(e,"shadowRootContainer",3,void 0),Ne=v(e,"outerContainerRef",3,void 0),Ye=v(e,"showMiniTimer",3,!1),W=v(e,"fullScreenTarget",3,void 0),re=v(e,"playerStarted",3,!1),ne=v(e,"showEndScreen",3,!0),{notifications$:Fe,graphIsOpened$:Ge}=Hi(),yt=e.store.getLogger().createComponentLog("Root component"),Ke=e.store.interfaceLanguage$,Ze=e.store.state.playbackState$,Ee=e.store.ads.playbackState,dt=e.store.state.positionWithScrubbing$,Rt=e.store.state.duration$,Gt=e.store.playerPhase,Zt=e.store.ui.isFullscreen,ui=e.store.ui.controlsVisible,Fi=e.store.ui.interactiveHideMobileControls,Do=e.store.ui.settingsMenu.visible$,nn=e.store.ui.settingsMenu.openedByBtnKeyboard$,io=e.store.ui.scrubbingInProgress,rn=e.store.ui.volumeChangingInProgress,Oo=e.store.ui.debugPanelVisible,Ho=e.store.state.isLoaderVisible,co=e.store.state.isEnded$,z=e.store.state.chromecastConnected$,zt=e.store.state.chromecastDeviceName$,yi=e.store.ads.postrollPassed,Ui=e.store.ui.mobileUnmuteButtonExpanded,Xt=e.store.ui.mobileUnmuteButtonVisible,Jt=e.store.state.isLive$,Yn=e.store.state.isPlaying$,yo=e.store.state.isActiveLive$,an=e.store.state.isRewindableLive$,xo=e.store.state.crashed$,Mt=e.store.webApi.annotationsApi,uo=e.store.webApi.pictureInPictureApi,bt=e.store.state.videoSize$,Bt=e.store.state.currentSubtitle$,po=e.store.state.currentSubtitleCaptions$,ki=e.store.state.duration$,An=e.store.ui.playerSize,oo=e.store.ui.is3DVideo,wo=e.store.ui.icon3DVideoVisible,Wt=e.store.ui.rotateAlpha,mt=e.store.state.isInteractive,ei=e.store.state.isInteractiveTime$,zi=e.store.state.isInteractiveExpectation$,di=e.store.state.hasInteractiveBranches,sn=e.store.ui.controls.disabledControls$,mi=e.store.ui.touched,no=e.store.ui.overlayContainer$,So=e.store.ui.autoplayNextEnabled$,ln=e.store.state.loadedMetadata$,vi=e.store.actions.internal.closeSettingsMenu,Pn=e.store.callbacks?.onDisabledPlayPrevChapterClick,Fo=e.store.callbacks?.onDisabledSeekToInteractiveClick,fo=e.store.actions.internal.setQuality,Uo=Y(void 0),hr=Y(void 0),Zn=Y(void 0),Mn=Y(void 0),dn,zo,cn,qi=m(()=>(n()==="video"&&a()||n()==="ads"&&s()==="inactive")&&!d()),Xe=Y(void 0),{closeNotification:qo,notificationsToShow$:Ln}=Fe,Vn=m(()=>!!l().slow_video),un=()=>qo("slow_video"),Ko=ae(!1),Wo,Co=Y(!1),Ti=m(()=>c()!==y3.PLAYING),Ii=Y(!1),Rn=m(()=>u()||_()||!r(Co)&&(f()&&!!di||r(Ti)&&y())),pn=Y(!0),Bn=m(()=>e.uiConfig.features.thumbTimer&&Ye()&&n()==="video"&&!x()&&!d()&&!mt&&(e.uiConfig.hideThumbTimerAfterTouch&&!w()||!e.uiConfig.hideThumbTimerAfterTouch)),Xn=Y(!1),Ai=m(()=>(ne()||e.showAutoplayNext&&S())&&!!nt()&&!!ut()&&(e.showAds&&I()||!e.showAds)&&f()&&!d()&&!r(Xn)),Pi=Y(!1),fn=m(()=>Ie()&&L()%180?A().height/A().width:1);uo?.setContext(ol());let mn=Je=>{clearTimeout(zo),Je&&(Xt.set(!0),Ui.set(!0),zo=setTimeout(()=>{Ui.set(!1)},e.uiConfig.controls.collapseMobileUnmute),mt||Mi(e.uiConfig.controls.hideTimeoutMobile))};e.store.setUiCallbacks({onStarted:mn});let Ki=()=>{clearTimeout(dn),N(Co,!1),_()&&Fi.set(!1)},Mi=Je=>{Ki(),N(Co,!0),dn=setTimeout(()=>N(Co,!1),Je);let ft=Je-100;Wo=setTimeout(()=>{P()&&Ko.set(!1)},ft>0?ft:Je)},vn=oo.subscribe(Je=>{wo.set(Je),Je&&(clearTimeout(cn),cn=setTimeout(()=>wo.set(!1),e.uiConfig.controls.hide360IconTimeout))}),mo=async(Je=sa())=>{if(Je&&!ld.device.isIOS){let ft=_l(),ti=_n(),Vi=ld.browser.isSamsungBrowser&&ft===we();Je=ft===ti||Vi}if(Je){Mi(e.uiConfig.controls.hideTimeoutFullscreen);try{await uo?.remove()}catch(ft){yt({message:String(ft)})}try{let ft=T()?.width&&T()?.height?T():A();await Rg(ft)}catch(ft){yt({message:String(ft)})}}Zt.set(Je),e.store.getAdmanWrapper().setFullscreen(Je),D()?e.store.callbacks?.onFullscreenEnter?.():e.store.callbacks?.onFullscreenExit?.()},_r=Je=>{let ft=Je;An.set({width:ft.target.width,height:ft.target.height})};It(()=>(dc(mo),e.uiConfig.features.annotationsInside&&Mt?.init(r(Uo)),Ba(uo)&&(uo?.assignPlayerContainer(r(Uo)),uo?.registryExternalEventHandlers({resize:_r})),N(pn,!ld.device.isIphoneOrOldIpad),e.interactiveContainer&&Ie().parentElement?.insertBefore(e.interactiveContainer,Ie().nextSibling),()=>{clearTimeout(dn),clearTimeout(Wo),clearTimeout(zo),clearTimeout(cn),vn(),uo?.dispose().catch(Je=>{yt({message:String(Je)})}),cc(mo)}));let gn=Y(!0),Jn=Y(!0),hn=Je=>{let ft=Q()+(Je==="forward"?1:-1)*e.uiConfig.controls.seekStepMobile/1e3;ft<0?(N(gn,!1),ft=0):ft>=G()&&(N(Jn,!1),ft=G()),N(Ii,!0),e.seekTime(ft)},_n=()=>{let Je=ld.device.isIOS||e.uiConfig.features.fullscreenInternalTargetPlayerContainer||!Ne()?r(Uo):Ne(),ft=Je.getRootNode(),ti=ft instanceof ShadowRoot?ft.host:ft,Vi=W()instanceof HTMLElement&&W().contains(ti);return e.uiConfig.allowChangingFullscreenTarget&&W()&&Vi?W():Je},br=async()=>{try{if(sa())await lc(document),yt({message:"exit fullscreen"});else{if(yt({message:"request fullscreen"}),ld.device.isIOS&&!ee())return;await sc(_n())}}catch(Je){yt({message:String(Je)})}},Nn=()=>{vi()},er=Je=>{if(Je.preventDefault(),ie()){Nn();return}if(!re()){e.firstStart(),Mi(e.uiConfig.controls.hideTimeoutCursor);return}N(Ii,!1),x()?Ki():Mi(e.uiConfig.controls.hideTimeoutMobile)},Dn=()=>{mi.set(!0)},bn=()=>{mt||(Ko.set(!0),Mi(e.uiConfig.controls.hideTimeoutCursor))},qt=Je=>{Pn&&(Pn(Je),Mi(e.uiConfig.controls.hideTimeoutMobile))},ko=Je=>{Fo&&(Fo(Je),Mi(e.uiConfig.controls.hideTimeoutMobile))};Qe(()=>{no.set(r(Xe))}),Qe(()=>{ui.set((r(Ti)||ie()||oe()||te()||ge()||!r(Ai)&&(f()||r(Co)&&!r(Ii)))&&!r(Rn)&&n()==="video"&&!d())}),Qe(()=>{!oe()&&r(Pi)&&!X()&&Mi(e.uiConfig.controls.hideTimeoutMobile),N(Pi,le(oe()))}),Qe(()=>{N(gn,Q()>0),N(Jn,le(!Le()&&Q()<G()))}),Qe(()=>{Ss(r(Mn),ie(),Ae())});let st=H("aria_label_video_player"),At=H("video360");Hh({fullScreenChangeHandler:mo,getFullscreenTarget:_n}),Fh({store:e.store,getFullscreenTarget:_n});var Yt=A3();St("blur",Ca,Nn),Me(Yt,"aria-label",st);var Kt=h(Yt);let Wi;Kt.__click=er;var Li=h(Kt);let Qi;at(Li,Je=>Ie(Je),()=>Ie()),g(Kt);var To=E(Kt,2);al(To,He,Je=>{var ft=E3(),ti=pe(ft);let Vi=m(()=>n()!=="thumb"||d()||mt&&e.autoplay);td(ti,{get hidden(){return r(Vi)},get thumbUrl(){return e.thumbUrl},get startVideo(){return e.firstStart}});var Gi=E(ti,2);{var $r=De=>{var Dt=S3(),ni=pe(Dt);{var Yo=Zo=>{let ar=m(()=>e.uiConfig.controls.seekStepMobile/1e3);Nc(Zo,{side:"left",get seekStep(){return r(ar)},handleSingleFirstClick:er,handleSecondClick:()=>hn("backward")})};V(ni,Zo=>{r(gn)&&Zo(Yo)})}var Eo=E(ni,2);{var rr=Zo=>{let ar=m(()=>e.uiConfig.controls.seekStepMobile/1e3);Nc(Zo,{side:"right",get seekStep(){return r(ar)},handleSingleFirstClick:er,handleSecondClick:()=>hn("forward")})};V(Eo,Zo=>{r(Jn)&&Zo(rr)})}b(De,Dt)};V(Gi,De=>{e.canRewindLive&&an&&!j().has("TIMELINE")&&De($r)})}var On=E(Gi,2);{var Ei=De=>{let Dt=m(()=>e.live?.startTime);id(De,{get thumbUrl(){return e.thumbUrl},get startTime(){return r(Dt)}})};V(On,De=>{n()==="LiveWaitingStart"&&De(Ei)})}var ro=E(On,2);{var yr=De=>{ja(De,{kind:"recover",get thumbUrl(){return e.thumbUrl}})};V(ro,De=>{n()==="LiveWaitingRecover"&&De(yr)})}var xr=E(ro,2);{var tr=De=>{ja(De,{kind:"record",get thumbUrl(){return e.thumbUrl}})};V(xr,De=>{n()==="LiveWaitingRecord"&&De(tr)})}var Go=E(xr,2);{var vo=De=>{var Dt=C3();let ni;var Yo=h(Dt);bl(Yo,{get adsSlotId(){return je()},get adsParams(){return qe()},get adsPreviewParam(){return ke()},get adsAutoplayParam(){return Pe()},get duration(){return Ve()}}),g(Dt),C(Eo=>ni=Z(Dt,1,"ads-container svelte-dtyj47",null,ni,Eo),[()=>({hidden:n()!=="ads"})]),b(De,Dt)};V(Go,De=>{e.showAds&&re()&&De(vo)})}var ir=E(Go,2);{var wr=De=>{let Dt=m(()=>!ne()&&e.showAutoplayNext&&S());rm(De,{get title(){return nt()},get thumb(){return ut()},get isHide(){return r(Dt)},clickCloseIcon:()=>N(Xn,!0)})};V(ir,De=>{r(Ai)&&nt()&&ut()&&De(wr)})}var or=E(ir,2);{var Sr=De=>{Zl(De,{})};V(or,De=>{B()&&De(Sr)})}var nr=E(or,2);{var jo=De=>{var Dt=k3(),ni=h(Dt);hl(ni,{"aria-label":At}),g(Dt),b(De,Dt)};V(nr,De=>{Re()&&De(jo)})}var $n=E(nr,2);{var Hn=De=>{Jl(De,{get thumbUrl(){return e.thumbUrl},get chromecastDeviceName(){return _e()}})};V($n,De=>{ge()&&De(Hn)})}var Cr=E($n,2);{var ji=De=>{Xl(De,{get shifted(){return x()},get captions(){return Be()},get position(){return Q()},get playerSize(){return A()},isMobile:!0})};V(Cr,De=>{Ce().value!=="off"&&De(ji)})}var et=E(Cr,2);{var Pt=De=>{var Dt=T3();Dt.__click=[w3,ie,Do,Nn];var ni=h(Dt);ed(ni,{}),g(Dt),b(De,Dt)};V(et,De=>{d()&&De(Pt)})}var pi=E(et,2);{var go=De=>{let Dt=m(()=>n()==="thumb"||n()==="LiveWaitingStart"||n()==="LiveWaitingRecover"||n()==="LiveWaitingRecord"||n()==="ads"),ni=m(()=>n()==="ads"),Yo=m(()=>e.canRewindLive&&ue()!==0);Yl(De,{get bottomHidden(){return r(Dt)},get showControls(){return x()},get bottomNoSmooth(){return P()},get isAds(){return r(ni)},get canRewindLive(){return r(Yo)},get logoClickable(){return e.logoClickable},get logoHidden(){return e.logoHidden},get logoTargetUrl(){return ct()},get showAutoplayNext(){return e.showAutoplayNext},get showNextPrevButtons(){return gt()},get nextButtonActive(){return ot()},get prevButtonActive(){return kt()},get isOneVideoPlaylist(){return Et()},get customFullscreenSupported(){return r(pn)},get endScreenShown(){return r(Ai)},toggleFullscreen:br,get seekToInteractive(){return e.seekToInteractive},get playPrevChapter(){return e.playPrevChapter},onDisabledPlayPrevChapterClick:qt,onDisabledSeekToInteractiveClick:ko,get playerControlsWrapperRef(){return r(hr)},set playerControlsWrapperRef(Eo){N(hr,le(Eo))},get playerControlsRef(){return r(Zn)},set playerControlsRef(Eo){N(Zn,le(Eo))}})};V(pi,De=>{re()&&De(go)})}var Te=E(pi,2);{var Nt=De=>{var Dt=I3(),ni=h(Dt);rd(ni,{get supportLink(){return e.supportLink},returnFocus:x3,get ref(){return r(Mn)},set ref(Yo){N(Mn,le(Yo))}}),g(Dt),b(De,Dt)};V(Te,De=>{ie()&&De(Nt)})}var ci=E(Te,2);let ii=m(()=>!r(Bn));yl(ci,{get isLive(){return R()},get isHidden(){return r(ii)},get isPlaying(){return se()},get position(){return Q()},get duration(){return G()}});var gi=E(ci,2);{var Qt=De=>{Fa(De,{})};V(gi,De=>{r(qi)&&De(Qt)})}var hi=E(gi,2);{var ao=De=>{Cl(De,{})};V(hi,De=>{be()&&De(ao)})}var xi=E(hi,2);{var oi=De=>{ad(De,{onClose:un,onSelectAutoQuality:()=>{fo("auto"),un()}})};V(xi,De=>{r(Vn)&&De(oi)})}var Io=E(xi,2);dl(Io,()=>"slot",!1,(De,Dt)=>{he(De,null,{name:sd})}),b(Je,ft)});var Qo=E(To,2);at(Qo,Je=>N(Xe,Je),()=>r(Xe)),g(Yt),at(Yt,Je=>N(Uo,Je),()=>r(Uo)),C((Je,ft)=>{Wi=Z(Kt,1,"video-wrapper svelte-dtyj47",null,Wi,Je),Qi=Z(Li,1,"video-container svelte-dtyj47",null,Qi,ft),tt(Li,`transform: rotate(${L()}deg) scale(${r(fn)})`),Me(Li,"data-is-playing",se())},[()=>({hidden:n()!=="video"}),()=>({"fast-rotate":!e.uiConfig.isSmoothVideoRotate})]),St("click",Yt,Dn,!0),St("focusin",Yt,bn,!0),b(t,Yt),U(),o()}it(["click"]);function Oc(t){let e="";return En(t.timelineSliderFilledColor)&&(e+=`--timeline-slider-filled-bg:${t.timelineSliderFilledColor};`),En(t.timelineSliderHandleColor)&&(e+=`--timeline-slider-handle-bg:${t.timelineSliderHandleColor};`),En(t.timelineSliderLoadedColor)&&(e+=`--timeline-slider-loaded-bg:${t.timelineSliderLoadedColor};`),En(t.timelineSliderColor)&&(e+=`--timeline-slider-bg:${t.timelineSliderColor};`),En(t.volumeSliderColor)&&(e+=`--volume-slider-bg:${t.volumeSliderColor};`),En(t.volumeSliderHandleColor)&&(e+=`--volume-slider-handle-bg:${t.volumeSliderHandleColor};`),En(t.volumeSliderFilledColor)&&(e+=`--volume-slider-filled-bg:${t.volumeSliderFilledColor};`),En(t.controlsTimeColor)&&(e+=`--controls-time:${t.controlsTimeColor};`),En(t.timelineSliderFilledActiveLiveColor)&&(e+=`--timeline-slider-filled-active-live-bg:${t.timelineSliderFilledActiveLiveColor};`),En(t.timelineSliderHandleActiveLiveColor)&&(e+=`--timeline-slider-handle-active-live-bg:${t.timelineSliderHandleActiveLiveColor};`),En(t.buttonColor)&&(e+=`--btn-color:${t.buttonColor};`),En(t.buttonToggleOnColor)&&(e+=`--toggle-color-on:${t.buttonToggleOnColor};`,e+=`--toggle-color-autoplay-on:${t.buttonToggleOnColor};`),En(t.focusedColor)&&(e+=`--focused:${t.focusedColor};`),e.length&&e||void 0}function En(t){return typeof t=="string"&&!t.includes(";")}var B3=M('<div class="root svelte-1cnbt6x"><!></div>'),N3={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;
325
330
 
326
331
  /* USER DEFINED COLORS */
327
332
 
@@ -355,5 +360,5 @@ Try switching the\xA0quality to\xA0Auto.`},Lg=C$;var gs=new Map;gs.set(Vg.EN,Lg)
355
360
  /* --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);}
356
361
  /* 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);}
357
362
 
358
- /* \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 Pp(t,e){if(new.target)return T({component:Pp,...t});I(e,!0),oe(t,Mx);let[i,o]=Je(),n=()=>C(tt,"$isLive$",i),s=u(e,"sources",7),a=u(e,"store",7),l=u(e,"microStoresRoot",7),c=u(e,"videoConfig",7),p=u(e,"uiConfig",7),f=u(e,"title",7),v=u(e,"thumbUrl",7),m=u(e,"interactiveContainer",7),g=u(e,"interactiveController",7),b=u(e,"subtitles",7),w=u(e,"live",7),k=u(e,"preload",7),V=u(e,"autoplay",7),F=u(e,"volume",7,void 0),M=u(e,"muted",7,void 0),H=u(e,"fromTime",7),S=u(e,"canRewindLive",7),q=u(e,"showAds",7),W=u(e,"adsSlotId",7,void 0),U=u(e,"adsParams",7,void 0),ie=u(e,"adsPreviewParam",7,void 0),se=u(e,"adsAutoplayParam",7,void 0),fe=u(e,"duration",7,void 0),J=u(e,"logoClickable",7),xe=u(e,"logoHidden",7),Ce=u(e,"isMobile",7),X=u(e,"showNextPrevButtons",7,!1),me=u(e,"nextButtonActive",7,!1),he=u(e,"prevButtonActive",7,!1),te=u(e,"endScreenVideoTitle",7,void 0),le=u(e,"endScreenVideoThumb",7,void 0),z=u(e,"isOneVideoPlaylist",7,!1),je=u(e,"supportLink",7),Re=u(e,"shadowRootContainer",7,void 0),Y=u(e,"outerContainerRef",7,void 0),ce=u(e,"fullScreenTarget",7,void 0),Ge=u(e,"failoverHosts",7,void 0),G=u(e,"showMiniTimer",7,!1),Ve=u(e,"saveRate",7),ue=u(e,"seekToInteractive",7,Ep),We=u(e,"playPrevChapter",7,Ep),rt=u(e,"volumeMultiplier",7),Ue=u(e,"showAutoplayNext",7),we=u(e,"showEndScreen",7,!0),Me=u(e,"keyboardControls",15,void 0),{subscribers:st,stores:ct}=l();eg(p());let _e=Qt(),et=p().logoLink,yt=a().ui.debugPanelVisible,ee=a().ui.playerSize,tt=a().state.isLive$,dt=a().state.isInteractive&&Tx.device.isAndroid,ge=de(void 0),Pe=null,$e=de(!1);a().getAdmanWrapper().init({switchFromAdsToVideo:a().actions.internal.switchFromAdsToVideo,switchFromVideoToAds:a().actions.internal.switchFromVideoToAds,setMuted:a().actions.external.setMuted},a().ads,{isMobile:a().ui.isMobile,mobileUnmuteButtonVisible:a().ui.mobileUnmuteButtonVisible,vsid:a().vsid}),dg(a(),ct),ot(()=>{a().ui.isMobile.set(Ce())});let Qe=(B=!1)=>{K($e,!0),B?a().actions.external.firstStart(q()):a().actions.internal.firstStart(q())},ze=()=>{if(_e.features.qualityDetailsSubMenuEnabled){let B=Pg(a().videoId);if(B)switch(B.type){case"high_quality":a().actions.internal.setHighQualityEnabled(!0,B.appliesTo);break;case"traffic_saving":a().actions.internal.setTrafficSavingEnabled(!0,B.appliesTo);break;case"exact_quality":a().actions.internal.setQuality(B.quality);break}}else{Ag(a().videoId),Yf()&&a().actions.internal.setTrafficSavingEnabled(!0);let Wt=qf(a().videoId);Wt&&a().actions.internal.setQuality(Wt)}};function ae(B){let Wt=s()||B;Wt&&a().initVideo({container:r(ge),sources:Wt,failoverHosts:Ge(),subtitles:b(),volumeMultiplier:rt()});let oi=Ix.get(oc)==="true";yt.set(oi),H()>0&&a().actions.external.seekTime(H());let Ni=Ce()?_e.volumeDefault:F()??pd()??_e.volumeDefault,fi=M()??Cg();if(a().actions.external.setVolume(Ni),a().actions.external.setMuted(fi),a().getAdmanWrapper().setInitialVolume(fi?0:Ni),ze(),_e.features.saveRate&&Ve()){let li=Tg();li&&!n()&&a().actions.internal.setPlaybackRate(li)}if(Ue()){let li=Eg();li&&a().actions.internal.setAutoplayNextEnabled(li)}a().ui.isAutoplay.set(V()),V()?Qe():k()&&_e.features.preload&&a().actions.internal.preload()}let gt=B=>{if(window.ResizeObserver){let Wt,oi;Pe=new ResizeObserver(Ex(Ni=>{let fi=Ni[0];if(fi.contentBoxSize){let li=Array.isArray(fi.contentBoxSize)?fi.contentBoxSize[0]:fi.contentBoxSize;Wt=li.inlineSize,oi=li.blockSize}else fi.contentRect&&(Wt=fi.contentRect.width,oi=fi.contentRect.height);ee.set({width:Wt,height:oi})},300)),Pe.observe(B)}ee.set({width:B.clientWidth,height:B.clientHeight})},Ze=()=>{document.hidden&&a().actions.external.stop()};Ut(()=>{dt&&document.addEventListener("visibilitychange",Ze),_e.debugLog&&a().actions.internal.startLogging(),gt(r(ge));let B=st.map(oi=>oi.init({store:a(),microStores:ct,config:c(),interactiveController:g(),uiConfig:p()})),Wt=()=>{dt&&document.removeEventListener("visibilitychange",Ze),Pe?.disconnect(),B.forEach(oi=>oi.unsubscribe()),a().destroy()};return w()?.status==="upcoming"?(a().actions.internal.setLiveWaitingStart(!0),Wt):w()?.status==="waiting"?(a().actions.internal.setLiveWaitingRecover(!0),Wt):(w()?.status==="finished"||w()?.status==="postlive")&&!Object.keys(s()||[]).length?(a().actions.internal.setLiveWaitingRecord(!0),Wt):(ae(),Wt)});function Tt(){r($e)?a().actions.external.play():Qe(!0)}function Vt(){a().actions.external.pause()}function Zt(B){a().actions.external.setMuted(B)}function at(B){Ce()||B>=0&&B<=1&&a().actions.external.setVolume(B)}function bt(B){a().actions.internal.seekTime(B,Px.UNKNOWN)}function Rt(B){a().actions.external.seekEpisodeStartTime(B)}function Lt(){a().actions.external.returnFocusToEpisodes()}function Xe(B){a().actions.external.setPlaybackRate(B)}function lt(B){a().actions.external.setAutoQualityLimits(B)}let Nt=Ip(_e.view);var ii=Ax();pe(ii,"style",Nt);var gi=y(ii);{var so=B=>{Tp(B,{get store(){return a()},uiConfig:_e,get thumbUrl(){return v()},get interactiveContainer(){return m()},get live(){return w()},get autoplay(){return V()},get canRewindLive(){return S()},get showAds(){return q()},get adsSlotId(){return W()},get adsParams(){return U()},get adsPreviewParam(){return ie()},get adsAutoplayParam(){return se()},get duration(){return fe()},get logoClickable(){return J()},get logoHidden(){return xe()},logoTargetUrl:et,get nextButtonActive(){return me()},get prevButtonActive(){return he()},get endScreenVideoTitle(){return te()},get endScreenVideoThumb(){return le()},get isOneVideoPlaylist(){return z()},get supportLink(){return je()},get shadowRootContainer(){return Re()},get outerContainerRef(){return Y()},get fullScreenTarget(){return ce()},get showMiniTimer(){return G()},get playerStarted(){return r($e)},get seekToInteractive(){return ue()},get playPrevChapter(){return We()},firstStart:Qe,seekTime:bt,get showEndScreen(){return we()},get showAutoplayNext(){return Ue()},get showNextPrevButtons(){return X()},get videoContainer(){return r(ge)},set videoContainer(Wt){K(ge,ke(Wt))}})},hi=B=>{Cp(B,{get store(){return a()},uiConfig:_e,get title(){return f()},get thumbUrl(){return v()},get interactiveContainer(){return m()},get live(){return w()},get autoplay(){return V()},get canRewindLive(){return S()},get showAds(){return q()},get adsSlotId(){return W()},get adsParams(){return U()},get adsPreviewParam(){return ie()},get adsAutoplayParam(){return se()},get duration(){return fe()},get logoClickable(){return J()},get logoHidden(){return xe()},logoTargetUrl:et,get nextButtonActive(){return me()},get prevButtonActive(){return he()},get endScreenVideoTitle(){return te()},get endScreenVideoThumb(){return le()},get isOneVideoPlaylist(){return z()},get supportLink(){return je()},get shadowRootContainer(){return Re()},get outerContainerRef(){return Y()},get fullScreenTarget(){return ce()},get showMiniTimer(){return G()},get playerStarted(){return r($e)},get seekToInteractive(){return ue()},get playPrevChapter(){return We()},firstStart:Qe,get showEndScreen(){return we()},get showAutoplayNext(){return Ue()},get showNextPrevButtons(){return X()},get videoContainer(){return r(ge)},set videoContainer(Wt){K(ge,ke(Wt))},get keyboardControls(){return Me()},set keyboardControls(Wt){Me(Wt)}})};O(gi,B=>{Ce()?B(so):B(hi,!1)})}$(ii),x(t,ii);var ao=E({initVideo:ae,play:Tt,pause:Vt,setMuted:Zt,setVolume:at,seekTime:bt,seekEpisodeStartTime:Rt,returnFocusToEpisodes:Lt,setPlaybackRate:Xe,setAutoQualityLimits:lt,get sources(){return s()},set sources(B){s(B)},get store(){return a()},set store(B){a(B)},get microStoresRoot(){return l()},set microStoresRoot(B){l(B)},get videoConfig(){return c()},set videoConfig(B){c(B)},get uiConfig(){return p()},set uiConfig(B){p(B)},get title(){return f()},set title(B){f(B)},get thumbUrl(){return v()},set thumbUrl(B){v(B)},get interactiveContainer(){return m()},set interactiveContainer(B){m(B)},get interactiveController(){return g()},set interactiveController(B){g(B)},get subtitles(){return b()},set subtitles(B){b(B)},get live(){return w()},set live(B){w(B)},get preload(){return k()},set preload(B){k(B)},get autoplay(){return V()},set autoplay(B){V(B)},get volume(){return F()},set volume(B){F(B)},get muted(){return M()},set muted(B){M(B)},get fromTime(){return H()},set fromTime(B){H(B)},get canRewindLive(){return S()},set canRewindLive(B){S(B)},get showAds(){return q()},set showAds(B){q(B)},get adsSlotId(){return W()},set adsSlotId(B){W(B)},get adsParams(){return U()},set adsParams(B){U(B)},get adsPreviewParam(){return ie()},set adsPreviewParam(B){ie(B)},get adsAutoplayParam(){return se()},set adsAutoplayParam(B){se(B)},get duration(){return fe()},set duration(B){fe(B)},get logoClickable(){return J()},set logoClickable(B){J(B)},get logoHidden(){return xe()},set logoHidden(B){xe(B)},get isMobile(){return Ce()},set isMobile(B){Ce(B)},get showNextPrevButtons(){return X()},set showNextPrevButtons(B){X(B)},get nextButtonActive(){return me()},set nextButtonActive(B){me(B)},get prevButtonActive(){return he()},set prevButtonActive(B){he(B)},get endScreenVideoTitle(){return te()},set endScreenVideoTitle(B){te(B)},get endScreenVideoThumb(){return le()},set endScreenVideoThumb(B){le(B)},get isOneVideoPlaylist(){return z()},set isOneVideoPlaylist(B){z(B)},get supportLink(){return je()},set supportLink(B){je(B)},get shadowRootContainer(){return Re()},set shadowRootContainer(B){Re(B)},get outerContainerRef(){return Y()},set outerContainerRef(B){Y(B)},get fullScreenTarget(){return ce()},set fullScreenTarget(B){ce(B)},get failoverHosts(){return Ge()},set failoverHosts(B){Ge(B)},get showMiniTimer(){return G()},set showMiniTimer(B){G(B)},get saveRate(){return Ve()},set saveRate(B){Ve(B)},get showAutoplayNext(){return Ue()},set showAutoplayNext(B){Ue(B)},get seekToInteractive(){return ue()},set seekToInteractive(B){ue(B)},get playPrevChapter(){return We()},set playPrevChapter(B){We(B)},get volumeMultiplier(){return rt()},set volumeMultiplier(B){rt(B)},get showEndScreen(){return we()},set showEndScreen(B){we(B)},get keyboardControls(){return Me()},set keyboardControls(B){Me(B)},get sources(){return s()},set sources(B){s(B),d()},get store(){return a()},set store(B){a(B),d()},get microStoresRoot(){return l()},set microStoresRoot(B){l(B),d()},get videoConfig(){return c()},set videoConfig(B){c(B),d()},get uiConfig(){return p()},set uiConfig(B){p(B),d()},get title(){return f()},set title(B){f(B),d()},get thumbUrl(){return v()},set thumbUrl(B){v(B),d()},get interactiveContainer(){return m()},set interactiveContainer(B){m(B),d()},get interactiveController(){return g()},set interactiveController(B){g(B),d()},get subtitles(){return b()},set subtitles(B){b(B),d()},get live(){return w()},set live(B){w(B),d()},get preload(){return k()},set preload(B){k(B),d()},get autoplay(){return V()},set autoplay(B){V(B),d()},get volume(){return F()},set volume(B=void 0){F(B),d()},get muted(){return M()},set muted(B=void 0){M(B),d()},get fromTime(){return H()},set fromTime(B){H(B),d()},get canRewindLive(){return S()},set canRewindLive(B){S(B),d()},get showAds(){return q()},set showAds(B){q(B),d()},get adsSlotId(){return W()},set adsSlotId(B=void 0){W(B),d()},get adsParams(){return U()},set adsParams(B=void 0){U(B),d()},get adsPreviewParam(){return ie()},set adsPreviewParam(B=void 0){ie(B),d()},get adsAutoplayParam(){return se()},set adsAutoplayParam(B=void 0){se(B),d()},get duration(){return fe()},set duration(B=void 0){fe(B),d()},get logoClickable(){return J()},set logoClickable(B){J(B),d()},get logoHidden(){return xe()},set logoHidden(B){xe(B),d()},get isMobile(){return Ce()},set isMobile(B){Ce(B),d()},get showNextPrevButtons(){return X()},set showNextPrevButtons(B=!1){X(B),d()},get nextButtonActive(){return me()},set nextButtonActive(B=!1){me(B),d()},get prevButtonActive(){return he()},set prevButtonActive(B=!1){he(B),d()},get endScreenVideoTitle(){return te()},set endScreenVideoTitle(B=void 0){te(B),d()},get endScreenVideoThumb(){return le()},set endScreenVideoThumb(B=void 0){le(B),d()},get isOneVideoPlaylist(){return z()},set isOneVideoPlaylist(B=!1){z(B),d()},get supportLink(){return je()},set supportLink(B){je(B),d()},get shadowRootContainer(){return Re()},set shadowRootContainer(B=void 0){Re(B),d()},get outerContainerRef(){return Y()},set outerContainerRef(B=void 0){Y(B),d()},get fullScreenTarget(){return ce()},set fullScreenTarget(B=void 0){ce(B),d()},get failoverHosts(){return Ge()},set failoverHosts(B=void 0){Ge(B),d()},get showMiniTimer(){return G()},set showMiniTimer(B=!1){G(B),d()},get saveRate(){return Ve()},set saveRate(B){Ve(B),d()},get seekToInteractive(){return ue()},set seekToInteractive(B=Ep){ue(B),d()},get playPrevChapter(){return We()},set playPrevChapter(B=Ep){We(B),d()},get volumeMultiplier(){return rt()},set volumeMultiplier(B){rt(B),d()},get showAutoplayNext(){return Ue()},set showAutoplayNext(B){Ue(B),d()},get showEndScreen(){return we()},set showEndScreen(B=!0){we(B),d()},get keyboardControls(){return Me()},set keyboardControls(B=void 0){Me(B),d()},$set:A,$on:(B,Wt)=>P(e,B,Wt)});return o(),ao}var Lx=Ie('<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 Ap(t,e){if(new.target)return T({component:Ap,...t});let i=Oe(e,["children","$$slots","$$events","$$legacy"]);I(e,!1);var o=Lx();let n;var s=y(o);return De(s,e,"default",{},null),Te(),$(o),L(()=>n=Le(o,n,{xmlns:"http://www.w3.org/2000/svg",width:"57",height:"60",fill:"none","aria-hidden":"true","data-testid":"stub-icon",role:"img",...i},void 0,!0)),x(t,o),E({$set:A,$on:(a,l)=>P(e,a,l)})}function Mp(t,e){if(new.target)return T({component:Mp,...t});I(e,!0);let i=u(e,"isWhite",7,!1),o=_(()=>i()?"color: #fff;":"color: #909499;");return Ap(t,{get style(){return r(o)}}),E({get isWhite(){return i()},set isWhite(n=!1){i(n),d()},$set:A,$on:(n,s)=>P(e,n,s)})}var Rx=D('<div class="title svelte-1y9fytq"> </div>'),Vx=D('<div class="playerStub svelte-1y9fytq"><!> <!></div>'),Nx={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 Lp(t,e){if(new.target)return T({component:Lp,...t});I(e,!0),oe(t,Nx);let i=u(e,"title",7),o=u(e,"thumbUrl",7);var n=Vx(),s=y(n);{var a=p=>{var f=Rx(),v=y(f,!0);$(f),L(()=>Se(v,i())),x(p,f)};O(s,p=>{i()&&p(a)})}var l=N(s,2);{var c=p=>{let f=_(()=>!!o());Mp(p,{get isWhite(){return r(f)}})};O(l,p=>{(!i()||!o())&&p(c)})}return $(n),L(()=>pe(n,"style",o()?`background-image: url('${o()}')`:"")),x(t,n),E({get title(){return i()},set title(p){i(p),d()},get thumbUrl(){return o()},set thumbUrl(p){o(p),d()},$set:A,$on:(p,f)=>P(e,p,f)})}import{now as n3}from"@vkontakte/videoplayer-shared/evergreen";import{cloneDeepWith as r3,InterfaceLanguage as s3,isNonNullable as wm,Logger as a3,Observable as l3,Subscription as s_,once as c3,InternalsExposure as d3,skip as u3}from"@vkontakte/videoplayer-shared/evergreen";import{clientChecker as a_,isMobile as p3}from"@vkontakte/videoplayer-core/evergreen";import{OneStat as f3}from"@vkontakte/videoplayer-statistics/evergreen";import{Logger as Bx,Subscription as Dx}from"@vkontakte/videoplayer-shared/evergreen";var Rp=class{constructor(){this.subscription=new Dx,this.logger=new Bx,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",i=>null],["seekbackward",i=>null],["seekforward",i=>null]];this.setActionHandlers(e)}setActionHandlers(e){if(this.isSupported())for(let[i,o]of e)try{navigator.mediaSession.setActionHandler?.(i,o)}catch{throw new Error(`The media session action "${i}" is not supported yet.`)}}attachToStore(e){!this.isSupported()||!e||this.subscription.add(e.state.positionExact$.subscribe(i=>{let o=Ae(e.state.currentPlaybackRate$),n=Ae(e.state.duration$);if(!(!isFinite(i)||!isFinite(n)))try{navigator.mediaSession.setPositionState?.({position:i,playbackRate:o,duration:n})}catch{this.log({message:`MediaSession setPositionState can't call with position: ${i} and duration: ${n}`})}}))}clearSubscriptions(){this.subscription.unsubscribe()}destroy(){this.resetActionHandlers(),this.clearSubscriptions()}};import{ValueSubject as bm,detectEmbed as Ux}from"@vkontakte/videoplayer-shared/evergreen";var Ox=Ie('<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 Vp(t,e){if(new.target)return T({component:Vp,...t});let i=Oe(e,["children","$$slots","$$events","$$legacy"]);I(e,!1);var o=Ox();let n;var s=y(o);return De(s,e,"default",{},null),Te(),$(o),L(()=>n=Le(o,n,{xmlns:"http://www.w3.org/2000/svg",width:"57",height:"56",fill:"none","aria-label":"dummy-image","data-testid":"pip-dummy-icon",role:"img",...i},void 0,!0)),x(t,o),E({$set:A,$on:(a,l)=>P(e,a,l)})}var Hx=D('<div class="player-pip-dummy svelte-1pbsod4"><div class="dummy-image svelte-1pbsod4"><!></div> <span class="title svelte-1pbsod4"> </span></div>'),Fx={hash:"svelte-1pbsod4",code:".player-pip-dummy.svelte-1pbsod4 {width:100%;height:100%;background-color:#19191A;display:flex;flex-direction:column;justify-content:center;align-items:center;font-family:-apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;}.player-pip-dummy.is-pip-api.svelte-1pbsod4 {position:relative;}.dummy-image.svelte-1pbsod4 svg {transform:scale(1.07143);}.dummy-image.desktop.svelte-1pbsod4 {transform:scale(1.07143) rotate(-90deg) rotateY(180deg);}.title.svelte-1pbsod4 {font-size:16px;color:#fff;padding:18px 20px 10px;text-align:center;}"};function Np(t,e){if(new.target)return T({component:Np,...t});I(e,!0),oe(t,Fx);let[i,o]=Je(),n=()=>C(p,"$interfaceLanguage$",i),s=()=>C(f,"$isMobile$",i),a=Be(),l=Qt(),c=!!a.webApi.pictureInPictureApi,p=a.interfaceLanguage$,f=a.ui.isMobile,v=a.ui.t,m=_(()=>n()&&v("pip_dummy_title")),g=Ip(l.view);var b=Hx();pe(b,"style",g),ne(b,"is-pip-api",c);var w=y(b),k=y(w);Vp(k,{}),$(w);var V=N(w,2),F=y(V,!0);$(V),$(b),L(()=>{ne(w,"desktop",!s()),Se(F,r(m))}),x(t,b);var M=E({$set:A,$on:(H,S)=>P(e,H,S)});return o(),M}var zx=460,Wx=280,xc=class{constructor({enabled:e=!0}={enabled:!0}){this.info={isActive$:new bm(!1),isEnabled$:new bm(!1),type:1};this.info.isEnabled$=new bm(e)}isSupported(){let{isEmbed:e}=Ux();return"documentPictureInPicture"in window&&!e}isActive(){return this.isSupported()&&!!documentPictureInPicture.window}setPlayerDomElement(e,i){this.playerDomElement=e,this.playerParentShadowRoot=i}setContext(e){this.svelteContext=e}async request(){if(!this.isSupported()||!this.playerDomElement||!this.playerParentShadowRoot)return;this.pipWindow=await documentPictureInPicture.requestWindow({width:zx,height:Wx,copyStyleSheets:!0}),this.pipWindow.document.body.style.margin="0";let e=[...this.playerParentShadowRoot.styleSheets].map(s=>[...s.cssRules].map(a=>a.cssText).join(" ")).filter(Boolean).join(`
359
- `),i=document.createElement("style");i.textContent=e;let o=this.createStretchedContainer(),n=o.attachShadow({mode:"open"});n.append(i),n.append(this.playerDomElement),this.playerDummyElement=T({component:Np,target:this.playerParentShadowRoot,context:this.svelteContext}),this.pipWindow?.document.body.append(o),this.info.isActive$.next(!0),this.pipWindow?.addEventListener("unload",s=>{!this.playerDomElement||!this.playerParentShadowRoot||!this.playerDummyElement||(this.playerDummyElement.$destroy(),this.playerParentShadowRoot.append(this.playerDomElement),this.info.isActive$.next(!1))})}async remove(){return new Promise(e=>{documentPictureInPicture.window?.close(),e()})}async dispose(){await this.remove()}setEnabled(e){this.info.isEnabled$.next(e)}createStretchedContainer(){let e=document.createElement("div");return e.style.position="absolute",e.style.top="0",e.style.left="0",e.style.width="100%",e.style.height="100%",e}};function Jh(t){return t instanceof xc}var Bp=class{static getLatestSupportedVersion(e){let i=new aa,o=new xc(e);if(o.isSupported())return o;if(i.isSupported())return i}};function Dp(t,e){let i=new Set([...Object.keys(t),...Object.keys(e)]),o={};for(let n of i)o[n]=e[n]??t[n]??void 0;return o}var e_="Inner error. Unexpectedly root annotation container null reference exception",t_="Annotation with such name already exists",i_="Annotation with such name does not exist";var Rl=class extends Error{constructor(e){super(e),this.name="AnnotationError"}};import{observeElementSize as qx,Subscription as Kx,throttleFn as Qx}from"@vkontakte/videoplayer-shared/evergreen";var Gx="1",Yx=100,Op=class{constructor(e){this.annotationsInside=e;this.annotations=new Map;this.subscriptions=new Kx}init(e){if(this.rootAnnotationsContainer=e,this.annotationsInside)return;let i=Qx(()=>{for(let o of this.annotations.values())this.isElementExceedsBoundaries(o,this.playerSize.width,this.playerSize.height)?o.style.visibility="hidden":o.style.visibility="visible"},Yx);this.subscriptions.add(qx(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){if(!this.rootAnnotationsContainer)throw new Rl(e_);if(this.annotations.has(e))throw new Rl(t_);i.style.zIndex=i.style.zIndex??Gx,i.style.position="absolute",this.rootAnnotationsContainer.append(i),this.annotations.set(e,i)}get(e){let i=this.annotations.get(e);if(!i)throw new Rl(i_);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(){this.annotations.clear(),this.subscriptions.unsubscribe(),this.mutationObserver?.disconnect(),this.rootAnnotationsContainer=null}isElementExceedsBoundaries(e,i,o){let n=e.offsetTop,s=e.offsetLeft,a=e.offsetWidth,l=e.offsetHeight;return n<0||s<0||s+a>i||n+l>o}registryRootContainer(e){}addLayer(e){return document.createElement("div")}getLayer(e){}removeLayer(e){}clearLayer(e){}detach(){}reattach(){}};import{assertNonNullable as Hp,Subscription as jx}from"@vkontakte/videoplayer-shared/evergreen";var So=class{init({store:e,microStores:i,interactiveController:o,config:n}){return Hp(e),Hp(i),Hp(n),n.interactiveData&&Hp(o),this.subscription=new jx,this.subscription}};var wc=class extends So{constructor(){super(...arguments);this.stateName="fakeIsPlaying$";this.state$={...be(null),toggle:()=>this.state$.update(i=>!i)}}init(i){let o=super.init(i),{isInteractiveExpectation$:n}=i.store.state;return o.add(n.subscribe(s=>{this.state$.set(s?!0:null)})),o}};var Cc=class extends So{constructor(){super(...arguments);this.stateName="interactiveControlsOpacity$";this.state$={...be(null),toggle:()=>this.state$.update(i=>!i)}}init(i){let o=super.init(i),{microStores:n,store:s}=i,{fakeIsPlaying$:a}=n,{isInteractiveExpectation$:l,isPlaying$:c}=s.state,{controlsVisible:p,isMobile:f}=s.ui,v=Ae(f),m=()=>v&&Ae(p);return o.add(p.subscribe(g=>{if(!v)return;let b=Ae(a);Ae(c)?this.state$.set(g):b!==null&&this.state$.set(!b||g)})),o.add(c.subscribe(g=>{this.state$.set(!g||m())})),o.add(a.subscribe(g=>{if(g===null)return;let b=Ae(l);if(m()){this.state$.set(!0);return}b&&this.state$.set(!g)})),o}};var Sc=class extends So{constructor(){super(...arguments);this.stateName="seekToInteractiveDisabledTooltip$";this.state$=be("tooltip_chapter_without_interactive")}init(i){let o=super.init(i),{store:n}=i;return o.add(n.state.interactiveEpisodes$.subscribe(s=>{s.length&&(s.every(a=>a.completed)?this.state$.set("tooltip_interactive_of_chapter_completed"):this.state$.set("tooltip_disabled_when_interactive"))})),o}};import{combine as Zx}from"@vkontakte/videoplayer-shared/evergreen";var ym=be(!1),Fp=null,kc=class extends So{constructor(){super(...arguments);this.stateName="showInteractiveTimeIndicatorTooltip$";this.state$={...ym,set:(i,o=!1)=>{i!==Ae(ym)&&(this.clearTimeout(),ym.set(i),!i&&Fp&&(Fp=!1),i&&o&&(this.timeout=setTimeout(()=>{this.state$.set(!1)},3e3)))},clearTimeout:()=>this.clearTimeout()}}init(i){let o=super.init(i),{store:n,config:s}=i,{isInteractiveTime$:a,isPlaying$:l}=n.state,c=n.ui.controlsVisible,{interactiveTimeIndicator:p}=n.ui.controls;o.add(c.subscribe(v=>{Ae(a)&&v&&this.state$.set(!1)}));let f=s?.interactiveData||{tooltipHelpHintActive:!1};return o.add(Zx({isPlaying$:l,isInteractiveTime$:a,interactiveTimeIndicator:p}).subscribe(({isPlaying$:v,isInteractiveTime$:m,interactiveTimeIndicator:g})=>{if(!(!v||!g?.isDisplayed)){if(!m)return this.state$.set(!1);f.tooltipHelpHintActive&&Fp===null&&(Fp=!0,f.tooltipHelpHintActive=!1,this.state$.set(!0),n.callbacks?.onInteractiveTimeIndicatorHintDeactivated?.())}})),o}clearTimeout(){window.clearTimeout(this.timeout)}};import{combine as Xx,noop as Jx}from"@vkontakte/videoplayer-shared/evergreen";var Tc=class extends So{constructor(){super(...arguments);this.stateName="graphIsOpened$";this.graphMadePause=!1;this.state$={...be(null),toggle:Jx};this.checkIfShouldHide=i=>Ds(i,"s")}init(i){let o=super.init(i),{store:n,interactiveController:s}=i,a=n.ui.currentGridType$,l=n.getLogger().createComponentLog("GraphIsOpened microStore");return this.state$.toggle=async()=>{if(this.checkIfShouldHide(Ae(a)))return;let c=Ae(this.state$),{isEnded$:p,playbackState$:f}=n.state,{disabledControls$:v}=n.ui.controls,m=Ae(p),g=Ae(f);if(c)try{await s?.toggleGraphView(!1),this.state$.set(!1),v.remove(Df),!m&&this.graphMadePause&&n.actions.internal.play()}catch{l({message:"Cant hide graph"})}else{this.graphMadePause=g==="playing";try{await s?.toggleGraphView(!0),this.state$.set(!0),v.add(Df),!m&&this.graphMadePause&&n.actions.internal.pause()}catch{l({message:"Cant show graph"})}}},o.add(Xx({graphIsOpened:this.state$,currentGridType:a}).subscribe(async({graphIsOpened:c,currentGridType:p})=>{if(this.checkIfShouldHide(p)&&c)try{await s?.toggleGraphView(!1),this.state$.set(!1)}catch{l({message:"Cant hide graph"})}})),o}};import{ValueSubject as o_}from"@vkontakte/videoplayer-shared/evergreen";var Ic=class extends So{constructor(){super(...arguments);this.stateName="pictureInPicture$";this.state$={isActive$:be(!1),isEnabled$:be(!1),type$:be(void 0)}}init(i){let o=super.init(i),{store:n}=i,{info:{isActive$:s,isEnabled$:a,type:l}}=n.webApi.pictureInPictureApi||{info:{isActive$:new o_(!1),isEnabled$:new o_(!1)}};return o.add(s.subscribe(c=>{this.state$.isActive$.set(c)})),o.add(a.subscribe(c=>{this.state$.isEnabled$.set(c)})),this.state$.type$.set(l),o}};import{filter as i3,filterChanged as o3}from"@vkontakte/videoplayer-shared/evergreen";import{safeStorage as xm}from"@vkontakte/videoplayer-shared/evergreen";var n_=({maxShowCount:t,timeout:e})=>{let i=[t!==0?e3({maxCount:t}):void 0,e!==0?t3({timeout:e}):void 0].filter(o=>!!o);return{notificationShowed:o=>i.forEach(n=>n.notificationShowed(o)),canShowNotification:o=>i.every(n=>n.canShowNotification(o))}},e3=({maxCount:t})=>{let e={};return{notificationShowed:i=>{e[i]=(e[i]??0)+1,xm.set("videoplayer_notifications_manager_count",JSON.stringify(e[i]??0))},canShowNotification:i=>(e[i]??0)<t}},t3=({timeout:t})=>{let e="videoplayer_notifications_manager",i=()=>{try{return JSON.parse(xm.get(e)||"{}")}catch{return{}}},o=s=>xm.set(e,JSON.stringify(s)),n=s=>{let a=i();delete a[s],o(a)};return{notificationShowed:s=>{o({...i(),[s]:{timeout:t,launchTime:Date.now()}})},canShowNotification:s=>{let a=i()[s];if(a){let l=Date.now()-a.launchTime>t;return l&&n(s),l}else return!0}}};var Ec=class extends So{constructor(){super(...arguments);this.stateName="notifications$";this.state$={notificationsToShow$:be({}),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:s,timeoutShowSlowVideoNotification:a,showSlowVideoNotification:l,forceAutoQualityWhenSevereStallHappens:c}}}=i;this.notificationManager=n_({maxShowCount:s,timeout:a});let p=n.getPlayer();return o.add(p.events.severeStallOccured$.pipe(o3(),i3(f=>f)).subscribe(()=>{l&&!p.info.isAutoQualityEnabled$.getValue()&&this.notificationManager.canShowNotification("slow_video")&&(c&&n.actions.internal.setQuality("auto"),this.state$.showNotification("slow_video"))})),o}};var r_=()=>[wc,Cc,Sc,kc,Tc,Ic,Ec].reduce(({subscribers:t,stores:e},i)=>{let o=new i;return{subscribers:[...t,o],stores:{...e,[o.stateName]:o.state$}}},{subscribers:[],stores:{}});import{devNull as Pc}from"@vkontakte/videoplayer-shared/evergreen";var m3={preload:!0,autoplay:!1,repeat:!1,fromTime:0,canRewindLive:!0,showAds:!1,interfaceLanguage:s3.RU,isCyrillicRelatedInterface:!0,logoClickable:!1,logoHidden:!1,isTouch:p3(),isMediaSessionEnabled:!0,isPictureInPictureEnabled:!0,isAudioDisabled:!1,callbacks:{uiInfo:{}},tuningConfig:{configName:[]},saveRate:!0,volumeMultiplier:1,showEndScreen:!0,showAutoplayNext:!0,showNextPrevButtons:!0},Up=class extends HTMLElement{constructor(){super();this.currentPlayingVideoIndex=0;this.needToRepeatPlaylist=!1;this.videoConfig=void 0;this.pictureInPictureApi=void 0;this.mediaSessionApi=void 0;this.unsubscribePlayerPhaseSubscription=void 0;this.annotationsApi=void 0;this.prevIsid=void 0;this.isInited=!1;this.internalsExposure=null;this.createOneStat=(i,o={})=>{let{albumId:n,statPlace:s,statUserSalt:a,statTrackCode:l,statVKAppId:c,refreshStatAuthToken:p,autoplay:f,isMobile:v,isTouch:m,refDomain:g,deviceId:b,interactiveData:w}=Dp(this.videoConfig,o),k=w?.projectInfo?.pid,V=this.interactiveController?.state.isReplay$.getValue()??!1;V&&(this.prevIsid=void 0);let{unitedVideoId:F,isClip:M=!1}=i;if(this.uiConfig.features.statistics&&F)return new f3({movieId:F,albumId:n,place:s,trackCode:l,vkAppId:c,autoplay:(f&&!this.interactiveController)??!1,mobile:m??v,clip:M,refDomain:g,deviceId:b,...k&&(!this.isInited||V)&&{projectId:Number(k)}},{refreshAuthToken:p,userSalt:a,config:this.statisticsConfig,...this.interactiveController&&{useIsid:!0,isid:this.prevIsid}})};Pc.create("ui"),this.logger=new a3,this.log=this.logger.createComponentLog("VKVideoPlayer"),this.subscription=new s_,this.interactiveSubscription=new s_,this.graphMadePause=!1}connectedCallback(){if(this.isInited)return;this.initPlayerRootContainers();let i=this.getAttribute("stub-title")??void 0,o=this.getAttribute("stub-thumb-url")??void 0;this.svelteStubComponent=T({component:Lp,target:this.playerContainer,props:{title:i,thumbUrl:o}})}disconnectedCallback(){this.annotationsApi?.destroy(),this.mediaSessionApi?.destroy(),this.svelteRootComponent?.$destroy(),this.svelteStubComponent?.$destroy(),this.subscription.unsubscribe(),this.unsubscribePlayerPhaseSubscription?.(),this.interactiveController?.destroy(),this.interactiveSubscription.unsubscribe(),this.internalsExposure?.destroy(),Pc.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(i){return this.store?.ui.controls.disabledControls$?.includes(i)||!1}getNextVideoInfo(){if(!this.videoConfig)return{nextVideoTitle:void 0,nextVideoThumb:void 0};let i=this.videoConfig.videos[this.currentPlayingVideoIndex+1]||{};return{nextVideoTitle:i.title,nextVideoThumb:i.thumbUrl}}createPlayer(i,o={},n){if(!this.videoConfig)return;let{albumId:s,statPlace:a,statAuthToken:l,preload:c,autoplay:p,volume:f,muted:v,fromTime:m,canRewindLive:g,supportLink:b,showAds:w,adsSlotId:k,adsParams:V={},adsPreviewParam:F,adsAutoplayParam:M,interfaceLanguage:H,isCyrillicRelatedInterface:S,logoClickable:q,logoHidden:W,isMobile:U,isTouch:ie,isAudioDisabled:se,isLiveCatchUpMode:fe,fullScreenTarget:J,failoverHosts:xe,canDownload:Ce,callbacks:X,interactiveData:me,showThumbTimer:he,additionalButtons:te=[],additionalSettingsMenuItems:le=[],additionalContextMenuItems:z=[],repeat:je,saveRate:Re,volumeMultiplier:Y,showEndScreen:ce,showAutoplayNext:Ge}=Dp(this.videoConfig,o),{sources:G,title:Ve,thumbUrl:ue,unitedVideoId:We,isClip:rt=!1,duration:Ue,adsParams:we={},videoEpisodes:Me,previewThumbsData:st,subtitles:ct,live:_e}=i,et={...V,...we},yt=this.getNextVideoInfo(),ee={sources:G,title:Ve,thumbUrl:ue,subtitles:ct,unitedVideoId:We,isClip:rt,live:_e,albumId:s,statPlace:a,autoplay:p,muted:v,volume:f,fromTime:m,canRewindLive:g,showAds:w,adsSlotId:k,adsParams:et,adsPreviewParam:F,adsAutoplayParam:M,duration:Ue,logoClickable:q,logoHidden:W,isTouch:ie??U,repeat:je,showNextPrevButtons:this.needToShowNextPrevButtons(),nextButtonActive:this.isNextButtonActive(),prevButtonActive:this.isPrevButtonActive(),endScreenVideoTitle:yt.nextVideoTitle,endScreenVideoThumb:yt.nextVideoThumb,isOneVideoPlaylist:this.isOneVideoPlaylist()},tt={pictureInPictureApi:this.pictureInPictureApi,annotationsApi:this.annotationsApi};this.log({message:`create player, props: ${JSON.stringify(ee)}`});let $t=this.interactiveController?.state.statistics$.getValue(),dt=$t?.oneStat||this.createOneStat(i,o);dt&&(this.statistics=new $u(dt,$t?.statSubscription)),this.uiConfig.features.sentry&&this.uiConfig.sentry.dsn&&new ra(this.uiConfig.sentry,{version:za,env:cd},{movieId:We,albumId:s,place:a,autoplay:(p&&!this.interactiveController)??!1,mobile:ie??U,clip:rt}),this.interactiveController&&(this.prevIsid??=this.statistics?.oneStat.isid$.getValue()),this.sentry={...this.sentry,...ra.getInstance()};let Pe=!!me,$e=[],Qe="tooltip_interactive_go_back_disabled_first";if(Pe&&this.interactiveController){let Ze=this.interactiveController.state.isInitialChapter$.getValue(),Tt=this.interactiveController.getHistoryState();Ze&&$e.push("REPLAY_BUTTON"),this.interactiveController.getIsSeekable().getValue()||$e.push("SEEK_TO_INTERACTIVE_BUTTON"),Tt.hasPrevChapter$.getValue()||($e.push("PLAY_PREV_CHAPTER_BUTTON"),Ze||(Tt.isGoBackLimited$.getValue()?Qe="tooltip_interactive_go_back_disabled_limit":Qe="tooltip_interactive_go_back_disabled"))}let ze=()=>{this.isInited=!1,this.prevIsid=void 0;let Ze=n?.info.isEnded$.getValue()&&this.interactiveController?.state.isEndChapter$.getValue();X.onReplayInteractiveVideo&&!Ze?X.onReplayInteractiveVideo():this.replayInteractiveVideo()};this.store=xh({player:n,interfaceLanguage:H,isCyrillicRelatedInterface:S,videoId:We,isClip:rt,isLiveCatchUpMode:fe,isAudioDisabled:se,statAuthToken:l,callbacks:X,webApi:tt,videoEpisodes:Me,previewThumbsData:st,canDownload:Ce,uiConfig:this.uiConfig,coreConfig:this.coreConfig,disabledControls:$e,isInteractive:Pe,saveRate:Re,interactiveRanges$:this.interactiveController?.state.interactiveRanges$,isInteractiveTime$:this.interactiveController?.state.isInteractiveTime$,stopPlayer:()=>this.stop(),replayInteractive:ze,playPrevChapterDisabledTooltip:Qe,hasInteractiveBranches:!!this.interactiveController?.getChapterBranches()?.length,additionalButtons:this.uiConfig.features.additionalButtons?te:[],additionalSettingsMenuItems:le??[],additionalContextMenuItems:z??[],playPrevVideo:()=>this.playPrevVideo(),playNextVideo:()=>this.playNextVideo(),looped:je&&this.videoConfig.videos.length===1,statistics:this.statistics,internalsExposure:this.internalsExposure});let{stores:ae}=this.microStoresRoot=r_(),gt=()=>{!this.store||!this.microStoresRoot||!this.videoConfig||(this.subscription.add(this.store.state.currentFormat$.subscribe(Ze=>X?.onCurrentFormatChanged?.(Ze))),this.subscription.add(ae.interactiveControlsOpacity$.subscribe(Ze=>{Ze!==null&&this?.interactiveController?.setDisabledControls(Ze)})),this.subscription.add(this.store.state.throughputEstimation$.subscribe(Ze=>X?.onThroughputEstimationChanged?.(Ze))),this.subscription.add(this.store.state.trafficSavingEnabled$.subscribe(Ze=>X?.onTrafficSavingEnabledChanged?.(Ze))),this.subscription.add(new l3(Ze=>{this.store?.state.currentPlaybackRate$.subscribe(Tt=>Ze.next(Tt))}).pipe(this.uiConfig.features.skipInitialPlaybackRateValue?u3(1):Ze=>Ze).subscribe(Ze=>X?.onCurrentPlaybackRateChanged?.(Ze))),this.subscription.add(this.store.state.volume$.subscribe(Ze=>X?.onVolumeChange?.(Ze))),this.subscription.add(this.store.state.muted$.subscribe(Ze=>Ze?X?.onMute?.():X?.onUnmute?.())),this.subscription.add(this.store.state.videoBitrate$.subscribe(Ze=>X?.onVideoBitrateChanged?.(Ze))),this.subscription.add(this.store.state.isInteractiveTime$.subscribe(Ze=>{let Tt=this.store?.ui.controls.disabledControls$;Tt&&(Ze&&!Tt.includes(nc)&&Tt.add(nc),Ze||Tt.remove(nc))})),this.subscription.add(this.store.ui.isFullscreen.subscribe(async Ze=>{if(!a_.browser.isSamsungBrowser||!Ze||!this.interactiveController)return;document.fullscreenElement===this.shadowRootContainer&&await this.replayInteractiveChapter(this.videoConfig?.callbacks.onExternalFullscreenExit)})),this.statistics&&this.subscription.add(this.statistics.oneStat.vsid$.subscribe(Ze=>X?.onVSIDChanged?.(Ze))),this.initMediaSession(),this.svelteRootComponent=T({component:Pp,target:this.playerContainer,props:{interactiveController:this.interactiveController,interactiveContainer:this.interactiveContainer,sources:G,store:this.store,microStoresRoot:this.microStoresRoot,videoConfig:this.videoConfig,uiConfig:this.uiConfig,title:Ve,thumbUrl:ue,subtitles:ct,live:_e,preload:c,autoplay:p,muted:v,volume:f,fromTime:m,canRewindLive:g,supportLink:b,showAds:w,adsSlotId:k,adsParams:et,adsPreviewParam:F,adsAutoplayParam:M,duration:Ue,logoClickable:q,logoHidden:W,isMobile:ie??U,failoverHosts:xe,fullScreenTarget:J,saveRate:Re,shadowRootContainer:this.shadowRootContainer,showMiniTimer:he,outerContainerRef:this.rootContainer,showNextPrevButtons:this.needToShowNextPrevButtons(),nextButtonActive:this.isNextButtonActive(),prevButtonActive:this.isPrevButtonActive(),endScreenVideoTitle:yt.nextVideoTitle,endScreenVideoThumb:yt.nextVideoThumb,isOneVideoPlaylist:this.isOneVideoPlaylist(),playPrevChapter:()=>this.playPrevChapter(),seekToInteractive:()=>this.seekToInteractive(),volumeMultiplier:Y,showEndScreen:ce,showAutoplayNext:Ge}}),this.addPlayerInfoSubscriptions(),this.isInited||(this.isInited=!0,this.videoConfig?.callbacks?.onInited?.()),this.internalsExposure?.expose({player:this,videoConfig:this.videoConfig,coreConfig:this.coreConfig,uiConfig:this.uiConfig,statisticsConfig:this.statisticsConfig,logger:this.logger,log:this.log}),this.uiConfig.devNullLog&&this.videoConfig?.callbacks?.onDevNullLog?Pc.subscribe("ui",this.videoConfig.callbacks.onDevNullLog):Pc.destroy("ui"))};this.coreConfig.asyncResolveClientChecker?a_.isInited$.subscribe(Ze=>{Ze&&(console.log("UI SDK async start"),gt())}):gt()}addPlayerInfoSubscriptions(){let i=this.store,o=this.microStoresRoot?.stores;if(!i||!o)return;let n=this.videoConfig?.callbacks;n&&this.subscription.add(i.playerPhase.subscribe(a=>n.onPlayerPhaseChanged?.(a))).add(i.state.playbackState$.subscribe(a=>a&&n.onPlaybackStateChanged?.(a))).add(i.state.isLive$.subscribe(a=>n.onIsLiveChanged?.(a))).add(i.state.isActiveLive$.subscribe(a=>n.onIsActiveLiveChanged?.(a))).add(i.state.isAudioAvailable$.subscribe(a=>n.onIsAudioAvailableChanged?.(a))).add(i.state.currentQuality$.subscribe(a=>n.onCurrentQualityChanged?.(a))).add(i.state.availableQualities$.subscribe(a=>n.onAvailableQualitiesChanged?.(a.map(({value:l})=>l).filter(l=>l!=="auto")))).add(i.state.availableAudioStreams$.subscribe(a=>{a.length>1&&n.onAudioLanguagesAvailable&&n.onAudioLanguagesAvailable()})).add(o.pictureInPicture$.isActive$.subscribe(a=>a?n.onPiPEnter?.():n.onPiPExit?.()));let s=n?.uiInfo;s&&this.subscription.add(i.ui.controlsVisible.subscribe(a=>s.onControlsVisibleChanged?.(a))).add(i.ui.isMobile.subscribe(a=>s.onIsMobileChanged?.(a))).add(i.ui.playerSize.subscribe(a=>s.onPlayerSizeChanged?.(a))).add(i.ui.controls.prevButton.subscribe(a=>s.onPrevButtonChanged?.(a))).add(i.ui.controls.playButton.subscribe(a=>s.onPlayButtonChanged?.(a))).add(i.ui.controls.replayButton.subscribe(a=>s.onReplayButtonChanged?.(a))).add(i.ui.controls.nextButton.subscribe(a=>s.onNextButtonChanged?.(a))).add(i.ui.controls.playPrevChapterButton.subscribe(a=>s.onPlayPrevChapterChanged?.(a))).add(i.ui.controls.seekToInteractiveButton.subscribe(a=>s.onSeekToInteractiveButtonChanged?.(a))).add(i.ui.controls.interactiveGraphButton.subscribe(a=>s.onGraphButtonChanged?.(a))).add(i.ui.controls.liveButton.subscribe(a=>s.onLiveButtonChanged?.(a))).add(i.ui.controls.time.subscribe(a=>s.onTimeUpdateChanged?.(a))).add(i.ui.controls.episodes.subscribe(a=>s.onEpisodesChanged?.(a))).add(i.ui.controls.subtitles.subscribe(a=>s.onSubtitlesChanged?.(a))).add(i.ui.controls.settings.subscribe(a=>s.onSettingsChanged?.(a))).add(i.ui.controls.fullscreen.subscribe(a=>s.onFullscreenChanged?.(a))).add(i.ui.controls.chromecast.subscribe(a=>s.onChromecastChanged?.(a))).add(i.ui.controls.pip.subscribe(a=>s.onPipChanged?.(a))).add(i.ui.controls.vkLogo.subscribe(a=>s.onVkLogoChanged?.(a))).add(i.ui.controls.interactiveTimeIndicator.subscribe(a=>s.onInteractiveTimeIndicatorChanged?.(a))).add(i.ui.controls.timeline.subscribe(a=>s.onTimelineChanged?.(a)))}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(i,o=!0){if(!this.videoConfig)return;let n=this.videoConfig.videos[this.currentPlayingVideoIndex];if(!n){this.log({message:"no next video"});return}this.isInited&&wm(n.unitedVideoId)&&this.store.actions.internal.nextMovie(n.unitedVideoId),this.svelteRootComponent?.$destroy(),this.createPlayer(n,{autoplay:o,fromTime:0},i)}playPrevChapter(){this.interactiveController?.playPrevChapter()}seekToInteractive(){let i=this.interactiveController?.getNextInteractiveStartTime();typeof i=="number"&&this.seekTime(i/1e3)}async initInteractives(){if(this.videoConfig?.interactiveData)try{let{Interactives:i}=await import("@vkontakte/videoplayer-interactive/evergreen");this.interactiveContainer=document.createElement("div"),this.interactiveContainer.classList.add("interactive-root");let o=this.store?.interfaceLanguage$,n=o?Ae(o):this.videoConfig.interfaceLanguage,{projectInfo:s,initChapterId:a,historyApi:l,videoLoader:c}=this.videoConfig.interactiveData;this.interactiveController=new i({parentElement:this.interactiveContainer,fullscreenTargetElement:this.playerContainer,lang:n,graph:this.uiConfig.features.interactiveGraph,projectInfo:s,initChapterId:a,historyApi:l,vkVideoLoader:c,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});let{isInteractiveExpectation$:p,isSeekable$:f}=this.interactiveController.state;this.uiConfig.features.seekToInteractive&&this.subscription.add(f.subscribe(m=>{if(!this.isInited)return;let g=this.store;m?g.ui.controls.disabledControls$.remove("SEEK_TO_INTERACTIVE_BUTTON"):g.ui.controls.disabledControls$.add("SEEK_TO_INTERACTIVE_BUTTON")})),this.subscription.add(p.subscribe(m=>{this.store&&this.store.state.isInteractiveExpectation$.set(m)}));let v=!0;if(this.subscription.add(this.interactiveController.events.playerChanged$.subscribe(m=>{if(!this.videoConfig)return;this.videoConfig.videos[this.currentPlayingVideoIndex]={...m.config,title:s?.title||m.config.title};let g=v?this.videoConfig.autoplay:!0;this.createPlayerWithCurrentVideo(m.player,g),v&&(v=!1)})),this.interactiveSubscription.add(this.interactiveController.events.interactiveActionChoice$.subscribe(({type:m,actionType:g})=>{if(!this.store)return;let b=p.getValue();if(m==="action-choice"&&g==="setRandomBranch"&&(this.store.state.graphIsOpened$.set(!1),this.store.ui.controls.disabledControls$.remove(rc)),m==="action-choice-canceled"){let w=Ae(this.store.state.isPlaying$)||b;if((this.videoConfig?.isTouch??this.videoConfig?.isMobile)&&w){this.store.ui.interactiveHideMobileControls.set(!0);return}this.videoConfig?.callbacks.onDisabledInteractiveClick?.()}})),this.interactiveSubscription.add(this.interactiveController.events.interactiveContainerFakeRemoved$.subscribe(({type:m,removeAllOpenURI:g})=>{this.store&&m==="container-fake-removed"&&g&&this.store.ui.controls.disabledControls$.remove(rc)})),await this.interactiveController.setManifest(this.videoConfig.interactiveData.manifest),this.videoConfig?.callbacks?.onInteractiveHistoryChanged){let m=this.interactiveController.getHistoryState();this.subscription.add(m.history$.subscribe(g=>{g.length&&this.videoConfig?.callbacks?.onInteractiveHistoryChanged?.(g)}))}this.uiConfig.features.interactiveTimeIndicator&&this.subscription.add(this.interactiveController.events.noInteraction$.subscribe(()=>{this.microStoresRoot?.stores.showInteractiveTimeIndicatorTooltip$.set(!0,!0),this.videoConfig?.callbacks.onInteractiveTimeIndicatorClick?.()})),this.interactiveSubscription.add(this.interactiveController.events.error$.subscribe(m=>{this.log({message:m.toString()})}))}catch(i){this.log({message:i.message})}}initPlayer(i,o={}){if(!Array.isArray(i.videos)||i.videos.length===0&&!i.interactiveData)throw new Error("empty videos");if(this.videoConfig=Dp(m3,r3(i,n=>n instanceof HTMLElement?n:void 0)),this.uiConfig=Jv(o.ui??{}),this.coreConfig=o.core??{configName:[]},this.statisticsConfig=o.statistics??{},this.uiConfig.features.forcePlayerDisplayBlock&&(this.rootContainer.style.minHeight="unset",this.style.display="block",this.style.width="100%",this.style.height="100%"),this.sentry={config:this.uiConfig.sentry??{}},this.uiConfig.features.exposeInternalsToGlobal&&(this.internalsExposure??=new d3("UI")),Pc.push("ui",{key:"videoplayer_embed",strings:["new","player_init_player","ads.enable: "+this.uiConfig.ads.enable,"showAds: "+this.videoConfig?.showAds],numbers:[n3()]}),wm(this.videoConfig.isMediaSessionEnabled)&&(this.uiConfig.features.mediaSession=this.uiConfig.features.mediaSession??this.videoConfig.isMediaSessionEnabled??!0),wm(this.videoConfig.isPictureInPictureEnabled)&&(this.uiConfig.features.pip=this.uiConfig.features.pip??this.videoConfig.isPictureInPictureEnabled??!0,this.uiConfig.features.dpip=this.uiConfig.features.dpip??this.videoConfig.isPictureInPictureEnabled??!0),this.videoConfig.isTouch=this.uiConfig.isMobile??this.videoConfig.isTouch??this.videoConfig.isMobile,this.videoConfig.autoplay&&=this.uiConfig.features.autoplay,this.videoConfig.showAds=this.uiConfig.ads.enable??this.videoConfig.showAds,this.videoConfig.adsSlotId=this.uiConfig.ads.slot??this.videoConfig.adsSlotId,this.videoConfig.adsPreviewParam=this.uiConfig.ads.preview??this.videoConfig.adsPreviewParam,this.videoConfig.logoHidden=!(this.uiConfig.showLogo??!this.videoConfig.logoHidden),this.videoConfig.canRewindLive&&=this.uiConfig.features.liveRewind,this.videoConfig.supportLink=this.videoConfig.supportLink??this.uiConfig.supportLink,this.videoConfig.showEndScreen=this.uiConfig.features.endScreen??this.videoConfig.showEndScreen,this.videoConfig.showAutoplayNext=this.uiConfig.features.autoplayNext??this.videoConfig.showAutoplayNext,this.videoConfig.showNextPrevButtons=this.uiConfig.features.nextPrevButtons??this.videoConfig.showNextPrevButtons,this.currentPlayingVideoIndex=this.videoConfig.videoIndex&&this.videoConfig.videos?.[this.videoConfig.videoIndex]?this.videoConfig.videoIndex:0,this.needToRepeatPlaylist=this.videoConfig.repeat,this.uiConfig.features.pip){let n={enabled:this.videoConfig.pipEnabled};this.uiConfig.features.dpip?this.pictureInPictureApi=Bp.getLatestSupportedVersion(n):this.pictureInPictureApi=new aa(n)}this.mediaSessionApi=this.uiConfig.features.mediaSession?new Rp:void 0,this.slotsApi=this.uiConfig.features.slots?new wp:void 0,this.annotationsApi=this.uiConfig.features.annotations?new Op(this.uiConfig.features.annotationsInside):void 0,this.annotationsApi&&!this.uiConfig.features.annotationsInside&&this.annotationsApi?.init(this.rootContainer),this.slotsApi?.init(this.shadowRootContainer),this.svelteStubComponent?.$destroy(),this.svelteRootComponent?.$destroy(),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]),Jh(this.pictureInPictureApi)&&this.pictureInPictureApi.setPlayerDomElement(this.playerContainer,this._shadowRoot)}isOneVideoPlaylist(){return this.videoConfig?this.videoConfig.videos.length===1:!1}updateVideos(i,o){if(!this.videoConfig)return;this.log({message:`update ${o} videos, videos: ${JSON.stringify(i)}`}),o==="prev"?(this.videoConfig.videos.splice(0,this.currentPlayingVideoIndex),this.videoConfig.videos.unshift(...i),this.currentPlayingVideoIndex=i.length):o==="next"&&(this.videoConfig.videos.splice(this.currentPlayingVideoIndex+1),this.videoConfig.videos.push(...i));let n=this.getNextVideoInfo();this.svelteRootComponent?.$set({showNextPrevButtons:this.needToShowNextPrevButtons(),nextButtonActive:this.isNextButtonActive(),prevButtonActive:this.isPrevButtonActive(),endScreenVideoTitle:n.nextVideoTitle,endScreenVideoThumb:n.nextVideoThumb,isOneVideoPlaylist:this.isOneVideoPlaylist()})}updatePrevVideos(i){this.updateVideos(i,"prev")}updateNextVideos(i){this.updateVideos(i,"next")}initMediaSession(){this.mediaSessionApi&&(this.unsubscribePlayerPhaseSubscription?.(),this.mediaSessionApi.clearSubscriptions(),this.unsubscribePlayerPhaseSubscription=this.store?.playerPhase.subscribe(i=>{i==="video"?this.setupMediaSessionForVideo():i==="ads"&&this.setupMediaSessionForAds()}))}setupMediaSessionForVideo(){if(!(!this.videoConfig||!this.mediaSessionApi))try{let{title:i,thumbUrl:o}={...this.videoConfig.videos[this.currentPlayingVideoIndex]},n=[["play",()=>this.play()],["pause",()=>this.pause()],["seekto",s=>this.seekTime(s.seekTime)]];this.videoConfig.videos.length>1&&(this.currentPlayingVideoIndex<this.videoConfig.videos.length-1&&n.push(["nexttrack",()=>this.playNextVideo()]),this.currentPlayingVideoIndex>0&&n.push(["previoustrack",()=>this.playPrevVideo()])),this.mediaSessionApi.setMetaData({title:i,thumbUrl:o}),this.mediaSessionApi.updateActionHandlers(n),this.mediaSessionApi.attachToStore(this.store)}catch(i){this.log({message:i.message})}}setupMediaSessionForAds(){if(!(!this.videoConfig||!this.mediaSessionApi))try{let i="\u0420\u0435\u043A\u043B\u0430\u043C\u0430",o=[["play",()=>this.play()],["pause",()=>this.pause()]];this.mediaSessionApi.setMetaData({title:i}),this.mediaSessionApi.updateActionHandlers(o),this.mediaSessionApi.attachToStore(this.store)}catch(i){this.log({message:i.message})}}play(){this.isControlDisabled("PLAY_BUTTON")||this.store?.playerPhase.is("LiveWaitingStart")||this.store?.playerPhase.is("LiveWaitingRecover")||this.store?.playerPhase.is("LiveWaitingRecord")||(this.log({message:"play"}),this.svelteRootComponent?.play())}pause(){this.log({message:"pause"}),this.svelteRootComponent?.pause()}stop(){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.svelteStubComponent?.$destroy(),this.mediaSessionApi?.destroy();let o=this.videoConfig.videos[0];o&&(this.svelteRootComponent?.$destroy(),i?(this.videoConfig.autoplay=!1,this.initInteractives()):this.createPlayer(o))}setMuted(i){this.log({message:`set muted, muted: ${i}`}),this.svelteRootComponent?.setMuted(i)}setPiPEnabled(i){this.store?.webApi.pictureInPictureApi?.setEnabled(i)}setVolume(i){this.log({message:`set volume, volume: ${i}`}),this.svelteRootComponent?.setVolume(i)}setRepeat(i){this.log({message:`set repeat, repeat: ${i}`}),this.needToRepeatPlaylist=i,this.svelteRootComponent?.$set({needToRepeatPlaylist:this.needToRepeatPlaylist,showNextPrevButtons:this.needToShowNextPrevButtons(),nextButtonActive:this.isNextButtonActive(),prevButtonActive:this.isPrevButtonActive()})}seekTime(i){this.isControlDisabled("TIMELINE")||(this.log({message:`seek time, time: ${i}`}),this.svelteRootComponent?.seekTime(i))}seekEpisodeStartTime(i){this.log({message:`seek episode start time, time: ${i}`}),this.svelteRootComponent?.seekEpisodeStartTime(i)}returnFocusToEpisodes(){this.log({message:"return focus to episodes button"}),this.svelteRootComponent?.returnFocusToEpisodes()}setPlaybackRate(i){this.log({message:`set playback rate to: ${i}`}),this.svelteRootComponent?.setPlaybackRate(i)}setAutoQualityLimits(i){this.log({message:`set auto quality limitation. Max: ${i.max??"none"}. Min: ${i.min??"none"}`}),this.svelteRootComponent?.setAutoQualityLimits(i)}addLanguage(i){this.store?.actions.internal.addLanguage(i)}async setLanguage(i){await this.store?.actions.internal.setLanguage(i)}setLiveStart(i){this.log({message:"live started"}),this.store?.actions.internal.setLiveWaitingRecover(!1),this.store?.actions.internal.setLiveWaitingStart(!1),this.svelteRootComponent?.$destroy(),this.createPlayer(i,{autoplay:!0})}setLiveWaitingRecover(){this.log({message:"live waiting"}),this.store?.callbacks&&(this.store.callbacks.onLiveEnded=()=>{this.store?.actions.internal.setLiveWaitingRecover(!0),this.store?.destroy()})}setLiveWaitingRecord(){this.log({message:"post live"}),this.store?.callbacks&&(this.store.callbacks.onLiveEnded=()=>{this.store?.actions.internal.setLiveWaitingRecord(!0),this.store?.destroy()})}setLiveEnd(i){this.log({message:"live ended"}),this.store?.callbacks&&(this.store.callbacks.onLiveEnded=()=>{this.store?.actions.internal.setLiveWaitingRecover(!1),this.store?.actions.internal.setLiveWaitingRecord(!1),this.svelteRootComponent?.$destroy(),this.createPlayer(i,{autoplay:!1})})}setLiveLowLatency(i){this.log({message:"live switch to low latency "+i}),this.store?.actions.external.setLiveLowLatency(i)}getDeviceId(){return this.statistics?.oneStat.getDeviceId()??void 0}replayInteractiveVideo(){this.interactiveController&&this.interactiveController.setChapter()}async replayInteractiveChapter(i){if(this.interactiveController&&this.store?.state.positionExact$){let o=Ae(this.store.state.positionExact$),s=Ae(this.store.state.interactiveEpisodes$).find(l=>!l.completed);this.interactiveController.events.playerChanged$.pipe(c3()).subscribe(()=>{s&&o>=s.time?this.seekTime(s.time):this.seekTime(o),i?.()});let a=this.interactiveController.getCurrentChapter();await this.interactiveController.setChapter({chapterId:a.chapter.id,pushToHistory:!1})}}showInteractiveIndicatorTooltip(i,o=!1){this.microStoresRoot?.stores.showInteractiveTimeIndicatorTooltip$.set(i,o)}switchToActiveLive(){this.store?.actions.internal.switchToActiveLive()}updateAdditionalSettingsItem(i,o){this.store?.actions.external.updateAdditionalSettingsItem(i,o)}addAdditionalSettingsItem(i){this.store?.actions.external.addAdditionalSettingsItem(i)}removeAdditionalSettingsItem(i){this.store?.actions.external.removeAdditionalSettingsItem(i)}updateAdditionalContextItem(i,o){this.store?.actions.external.updateAdditionalContextItem(i,o)}addAdditionalContextItem(i){this.store?.actions.external.addAdditionalContextItem(i)}removeAdditionalContextItem(i){this.store?.actions.external.removeAdditionalContextItem(i)}updateAdditionalButton(i,o){this.store?.actions.external.updateAdditionalButton(i,o)}addAdditionalButton(i){this.store?.actions.external.addAdditionalButton(i)}removeAdditionalButton(i){this.store?.actions.external.removeAdditionalButton(i)}updateStatContext(i){this.statistics&&this.statistics.oneStat.updateContext(i)}handleTimerNextVideo(i){this.store?.actions.internal.setTimerNextVideoRunning(i)}focus(){this.svelteRootComponent?.keyboardControls?.focus?.()}};import{InterfaceLanguage as OJ,VKNumericLanguage as HJ,loadVKLangPack as FJ}from"@vkontakte/videoplayer-shared/evergreen";import{VideoQuality as zJ,VideoFormat as WJ}from"@vkontakte/videoplayer-core/evergreen";var AJ=()=>{window.customElements.define("vk-video-player",Up)};export{bu as ControlButtonType,Zr as GridTypes,OJ as InterfaceLanguage,dc as MenuItemType,sa as PlayerPhase,za as VERSION,HJ as VKNumericLanguage,WJ as VideoFormat,zJ as VideoQuality,FJ as loadVKLangPack,AJ as registerPlayerWebComponent};
363
+ /* \u041A\u043B\u0430\u0441\u0441 \u0434\u043B\u044F \u0441\u043E\u043A\u0440\u044B\u0442\u0438\u0435 \u043A\u043E\u043D\u0442\u0435\u043D\u0442\u0430 \u0432\u0438\u0437\u0443\u0430\u043B\u044C\u043D\u043E \u043D\u043E \u043D\u0435 \u0434\u043B\u044F \u043E\u0431\u0445\u043E\u0434\u0430 \u043F\u043E \u0442\u0430\u0431 \u0438 \u0441\u043A\u0440\u0438\u043D \u0440\u0438\u0434\u0435\u0440\u0430 */.out-of-view {position:absolute !important;left:-1000vh !important;}.icon.icon-error-stub {display:flex;justify-content:center;align-items:center;}`};function sm(t,e){F(e,!0),q(t,N3);let[i,o]=Oe(),n=()=>$(Et,"$isLive$",i),a=v(e,"sources",7),s=v(e,"store",7),d=v(e,"microStoresRoot",7),l=v(e,"videoConfig",7),c=v(e,"uiConfig",7),u=v(e,"title",7),_=v(e,"thumbUrl",7),f=v(e,"interactiveContainer",7),y=v(e,"interactiveController",7),x=v(e,"subtitles",7),w=v(e,"live",7),S=v(e,"preload",7),I=v(e,"autoplay",7),L=v(e,"volume",7,void 0),A=v(e,"muted",7,void 0),P=v(e,"fromTime",7),T=v(e,"canRewindLive",7),D=v(e,"showAds",7),Q=v(e,"adsSlotId",7,void 0),G=v(e,"adsParams",7,void 0),ee=v(e,"adsPreviewParam",7,void 0),ie=v(e,"adsAutoplayParam",7,void 0),oe=v(e,"duration",7,void 0),te=v(e,"logoClickable",7),ge=v(e,"logoHidden",7),X=v(e,"isMobile",7),Le=v(e,"showNextPrevButtons",7,!1),Ae=v(e,"nextButtonActive",7,!1),se=v(e,"prevButtonActive",7,!1),He=v(e,"endScreenVideoTitle",7,void 0),j=v(e,"endScreenVideoThumb",7,void 0),B=v(e,"isOneVideoPlaylist",7,!1),Re=v(e,"supportLink",7),_e=v(e,"shadowRootContainer",7,void 0),Ce=v(e,"outerContainerRef",7,void 0),Be=v(e,"fullScreenTarget",7,void 0),ue=v(e,"failoverHosts",7,void 0),R=v(e,"showMiniTimer",7,!1),be=v(e,"saveRate",7),Ie=v(e,"seekToInteractive",7,Uh),je=v(e,"playPrevChapter",7,Uh),qe=v(e,"volumeMultiplier",7),ke=v(e,"showAutoplayNext",7),Pe=v(e,"showEndScreen",7,!0),Ve=v(e,"keyboardControls",15,void 0),{subscribers:ct,stores:gt}=d();jv(c());let ot=Vt(),kt=c().logoLink,nt=s().ui.debugPanelVisible,ut=s().ui.playerSize,Et=s().state.isLive$,Ne=s().state.isInteractive&&M3.device.isAndroid,Ye=Y(void 0),W=null,re=Y(!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}),rg(s(),gt),Qe(()=>{s().ui.isMobile.set(X())});let ne=(z=!1)=>{N(re,!0),z?s().actions.external.firstStart(D()):s().actions.internal.firstStart(D())},Fe=()=>{if(ot.features.qualityDetailsSubMenuEnabled){let z=Cg(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{kg(s().videoId),np()&&s().actions.internal.setTrafficSavingEnabled(!0);let zt=ep(s().videoId);zt&&s().actions.internal.setQuality(zt)}};function Ge(z){let zt=a()||z;zt&&s().initVideo({container:r(Ye),sources:zt,failoverHosts:ue(),subtitles:x(),volumeMultiplier:qe()});let yi=L3.get(pl)==="true";nt.set(yi),P()>0&&s().actions.external.seekTime(P());let Ui=X()?ot.volumeDefault:L()??Jd()??ot.volumeDefault,Xt=A()??bg();if(s().actions.external.setVolume(Ui),s().actions.external.setMuted(Xt),s().getAdmanWrapper().setInitialVolume(Xt?0:Ui),Fe(),ot.features.saveRate&&be()){let Jt=xg();Jt&&!n()&&s().actions.internal.setPlaybackRate(Jt)}if(ke()){let Jt=Sg();Jt&&s().actions.internal.setAutoplayNextEnabled(Jt)}s().ui.isAutoplay.set(I()),I()?ne():S()&&ot.features.preload&&s().actions.internal.preload()}let yt=z=>{if(window.ResizeObserver){let zt,yi;W=new ResizeObserver(V3(Ui=>{let Xt=Ui[0];if(Xt.contentBoxSize){let Jt=Array.isArray(Xt.contentBoxSize)?Xt.contentBoxSize[0]:Xt.contentBoxSize;zt=Jt.inlineSize,yi=Jt.blockSize}else Xt.contentRect&&(zt=Xt.contentRect.width,yi=Xt.contentRect.height);ut.set({width:zt,height:yi})},300)),W.observe(z)}ut.set({width:z.clientWidth,height:z.clientHeight})},Ke=()=>{document.hidden&&s().actions.external.stop()};It(()=>{Ne&&document.addEventListener("visibilitychange",Ke),ot.debugLog&&s().actions.internal.startLogging(),yt(r(Ye));let z=ct.map(yi=>yi.init({store:s(),microStores:gt,config:l(),interactiveController:y(),uiConfig:c()})),zt=()=>{Ne&&document.removeEventListener("visibilitychange",Ke),W?.disconnect(),z.forEach(yi=>yi.unsubscribe()),s().destroy()};return w()?.status==="upcoming"?(s().actions.internal.setLiveWaitingStart(!0),zt):w()?.status==="waiting"?(s().actions.internal.setLiveWaitingRecover(!0),zt):(w()?.status==="finished"||w()?.status==="postlive")&&!Object.keys(a()||[]).length?(s().actions.internal.setLiveWaitingRecord(!0),zt):(Ge(),zt)});function Ze(){r(re)?s().actions.external.play():ne(!0)}function Ee(){s().actions.external.pause()}function dt(z){s().actions.external.setMuted(z)}function Rt(z){X()||z>=0&&z<=1&&s().actions.external.setVolume(z)}function Gt(z){s().actions.internal.seekTime(z,R3.UNKNOWN)}function Zt(z){s().actions.external.seekEpisodeStartTime(z)}function ui(){s().actions.external.returnFocusToEpisodes()}function Fi(z){s().actions.external.setPlaybackRate(z)}function Do(z){s().actions.external.setAutoQualityLimits(z)}let nn=Oc(ot.view);var io=B3();tt(io,nn);var rn=h(io);{var Oo=z=>{am(z,{get store(){return s()},uiConfig:ot,get thumbUrl(){return _()},get interactiveContainer(){return f()},get live(){return w()},get autoplay(){return I()},get canRewindLive(){return T()},get showAds(){return D()},get adsSlotId(){return Q()},get adsParams(){return G()},get adsPreviewParam(){return ee()},get adsAutoplayParam(){return ie()},get duration(){return oe()},get logoClickable(){return te()},get logoHidden(){return ge()},logoTargetUrl:kt,get nextButtonActive(){return Ae()},get prevButtonActive(){return se()},get endScreenVideoTitle(){return He()},get endScreenVideoThumb(){return j()},get isOneVideoPlaylist(){return B()},get supportLink(){return Re()},get shadowRootContainer(){return _e()},get outerContainerRef(){return Ce()},get fullScreenTarget(){return Be()},get showMiniTimer(){return R()},get playerStarted(){return r(re)},get seekToInteractive(){return Ie()},get playPrevChapter(){return je()},firstStart:ne,seekTime:Gt,get showEndScreen(){return Pe()},get showAutoplayNext(){return ke()},get showNextPrevButtons(){return Le()},get videoContainer(){return r(Ye)},set videoContainer(zt){N(Ye,le(zt))}})},Ho=z=>{nm(z,{get store(){return s()},uiConfig:ot,get title(){return u()},get thumbUrl(){return _()},get interactiveContainer(){return f()},get live(){return w()},get autoplay(){return I()},get canRewindLive(){return T()},get showAds(){return D()},get adsSlotId(){return Q()},get adsParams(){return G()},get adsPreviewParam(){return ee()},get adsAutoplayParam(){return ie()},get duration(){return oe()},get logoClickable(){return te()},get logoHidden(){return ge()},logoTargetUrl:kt,get nextButtonActive(){return Ae()},get prevButtonActive(){return se()},get endScreenVideoTitle(){return He()},get endScreenVideoThumb(){return j()},get isOneVideoPlaylist(){return B()},get supportLink(){return Re()},get shadowRootContainer(){return _e()},get outerContainerRef(){return Ce()},get fullScreenTarget(){return Be()},get showMiniTimer(){return R()},get playerStarted(){return r(re)},get seekToInteractive(){return Ie()},get playPrevChapter(){return je()},firstStart:ne,get showEndScreen(){return Pe()},get showAutoplayNext(){return ke()},get showNextPrevButtons(){return Le()},get videoContainer(){return r(Ye)},set videoContainer(zt){N(Ye,le(zt))},get keyboardControls(){return Ve()},set keyboardControls(zt){Ve(zt)}})};V(rn,z=>{X()?z(Oo):z(Ho,!1)})}g(io),b(t,io);var co=U({initVideo:Ge,play:Ze,pause:Ee,setMuted:dt,setVolume:Rt,seekTime:Gt,seekEpisodeStartTime:Zt,returnFocusToEpisodes:ui,setPlaybackRate:Fi,setAutoQualityLimits:Do,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 c()},set uiConfig(z){c(z)},get title(){return u()},set title(z){u(z)},get thumbUrl(){return _()},set thumbUrl(z){_(z)},get interactiveContainer(){return f()},set interactiveContainer(z){f(z)},get interactiveController(){return y()},set interactiveController(z){y(z)},get subtitles(){return x()},set subtitles(z){x(z)},get live(){return w()},set live(z){w(z)},get preload(){return S()},set preload(z){S(z)},get autoplay(){return I()},set autoplay(z){I(z)},get volume(){return L()},set volume(z){L(z)},get muted(){return A()},set muted(z){A(z)},get fromTime(){return P()},set fromTime(z){P(z)},get canRewindLive(){return T()},set canRewindLive(z){T(z)},get showAds(){return D()},set showAds(z){D(z)},get adsSlotId(){return Q()},set adsSlotId(z){Q(z)},get adsParams(){return G()},set adsParams(z){G(z)},get adsPreviewParam(){return ee()},set adsPreviewParam(z){ee(z)},get adsAutoplayParam(){return ie()},set adsAutoplayParam(z){ie(z)},get duration(){return oe()},set duration(z){oe(z)},get logoClickable(){return te()},set logoClickable(z){te(z)},get logoHidden(){return ge()},set logoHidden(z){ge(z)},get isMobile(){return X()},set isMobile(z){X(z)},get showNextPrevButtons(){return Le()},set showNextPrevButtons(z){Le(z)},get nextButtonActive(){return Ae()},set nextButtonActive(z){Ae(z)},get prevButtonActive(){return se()},set prevButtonActive(z){se(z)},get endScreenVideoTitle(){return He()},set endScreenVideoTitle(z){He(z)},get endScreenVideoThumb(){return j()},set endScreenVideoThumb(z){j(z)},get isOneVideoPlaylist(){return B()},set isOneVideoPlaylist(z){B(z)},get supportLink(){return Re()},set supportLink(z){Re(z)},get shadowRootContainer(){return _e()},set shadowRootContainer(z){_e(z)},get outerContainerRef(){return Ce()},set outerContainerRef(z){Ce(z)},get fullScreenTarget(){return Be()},set fullScreenTarget(z){Be(z)},get failoverHosts(){return ue()},set failoverHosts(z){ue(z)},get showMiniTimer(){return R()},set showMiniTimer(z){R(z)},get saveRate(){return be()},set saveRate(z){be(z)},get showAutoplayNext(){return ke()},set showAutoplayNext(z){ke(z)},get seekToInteractive(){return Ie()},set seekToInteractive(z){Ie(z)},get playPrevChapter(){return je()},set playPrevChapter(z){je(z)},get volumeMultiplier(){return qe()},set volumeMultiplier(z){qe(z)},get showEndScreen(){return Pe()},set showEndScreen(z){Pe(z)},get keyboardControls(){return Ve()},set keyboardControls(z){Ve(z)}});return o(),co}var D3=me('<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 lm(t,e){let i=xe(e,["$$slots","$$events","$$legacy","children"]);var o=D3();let n;var a=h(o);ce(a,()=>e.children??J),fe(),g(o),C(()=>n=he(o,n,{xmlns:"http://www.w3.org/2000/svg",width:"57",height:"60",fill:"none","aria-hidden":"true","data-testid":"stub-icon",role:"img",...i})),b(t,o)}function dm(t,e){let i=v(e,"isWhite",3,!1),o=m(()=>i()?"color: #fff;":"color: #909499;");lm(t,{get style(){return r(o)}})}var O3=M('<div class="title svelte-1y9fytq"> </div>'),H3=M('<div class="playerStub svelte-1y9fytq"><!> <!></div>'),F3={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 cm(t,e){q(t,F3);var i=H3(),o=h(i);{var n=d=>{var l=O3(),c=h(l,!0);g(l),C(()=>de(c,e.title)),b(d,l)};V(o,d=>{e.title&&d(n)})}var a=E(o,2);{var s=d=>{let l=m(()=>!!e.thumbUrl);dm(d,{get isWhite(){return r(l)}})};V(a,d=>{(!e.title||!e.thumbUrl)&&d(s)})}g(i),C(()=>tt(i,e.thumbUrl?`background-image: url('${e.thumbUrl}')`:"")),b(t,i)}import{now as dx}from"@vkontakte/videoplayer-shared/evergreen";import{cloneDeepWith as cx,InterfaceLanguage as ux,isNonNullable as gm,Logger as px,Observable as fx,Subscription as Yh,once as mx,InternalsExposure as vx,skip as gx}from"@vkontakte/videoplayer-shared/evergreen";import{clientChecker as Zh,isMobile as hx}from"@vkontakte/videoplayer-core/evergreen";import{OneStat as _x}from"@vkontakte/videoplayer-statistics/evergreen";import{Logger as U3,Subscription as z3}from"@vkontakte/videoplayer-shared/evergreen";var Hc=class{constructor(){this.subscription=new z3,this.logger=new U3,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){if(this.isSupported())for(let[i,o]of e)try{navigator.mediaSession.setActionHandler?.(i,o)}catch{throw new Error(`The media session action "${i}" is not supported yet.`)}}attachToStore(e){!this.isSupported()||!e||(this.clearSubscriptions(),this.subscription.add(e.state.positionExact$.subscribe(i=>{let o=ve(e.state.currentPlaybackRate$),n=ve(e.state.duration$);if(!(!isFinite(i)||!isFinite(n)))try{navigator.mediaSession.setPositionState?.({position:i,playbackRate:o,duration:n})}catch{this.log({message:`MediaSession setPositionState can't call with position: ${i} and duration: ${n}`})}})))}clearSubscriptions(){this.subscription.unsubscribe()}destroy(){this.resetActionHandlers(),this.clearSubscriptions()}};import{ValueSubject as fm,detectEmbed as Q3}from"@vkontakte/videoplayer-shared/evergreen";var q3=me('<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 um(t,e){let i=xe(e,["$$slots","$$events","$$legacy","children"]);var o=q3();let n;var a=h(o);ce(a,()=>e.children??J),fe(),g(o),C(()=>n=he(o,n,{xmlns:"http://www.w3.org/2000/svg",width:"57",height:"56",fill:"none","aria-label":"dummy-image","data-testid":"pip-dummy-icon",role:"img",...i})),b(t,o)}var K3=M('<div><div><!></div> <span class="title svelte-1pbsod4"> </span></div>'),W3={hash:"svelte-1pbsod4",code:".player-pip-dummy.svelte-1pbsod4 {width:100%;height:100%;background-color:#19191A;display:flex;flex-direction:column;justify-content:center;align-items:center;font-family:-apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;}.player-pip-dummy.is-pip-api.svelte-1pbsod4 {position:relative;}.dummy-image.svelte-1pbsod4 svg {transform:scale(1.07143);}.dummy-image.desktop.svelte-1pbsod4 {transform:scale(1.07143) rotate(-90deg) rotateY(180deg);}.title.svelte-1pbsod4 {font-size:16px;color:#fff;padding:18px 20px 10px;text-align:center;}"};function pm(t,e){F(e,!0),q(t,W3);let[i,o]=Oe(),n=()=>$(c,"$interfaceLanguage$",i),a=()=>$(u,"$isMobile$",i),s=ye(),d=Vt(),l=!!s.webApi.pictureInPictureApi,c=s.interfaceLanguage$,u=s.ui.isMobile,_=s.ui.t,f=m(()=>n()&&_("pip_dummy_title")),y=Oc(d.view);var x=K3();Z(x,1,"player-pip-dummy svelte-1pbsod4",null,{},{"is-pip-api":l}),tt(x,y);var w=h(x);let S;var I=h(w);um(I,{}),g(w);var L=E(w,2),A=h(L,!0);g(L),g(x),C(P=>{S=Z(w,1,"dummy-image svelte-1pbsod4",null,S,P),de(A,r(f))},[()=>({desktop:!a()})]),b(t,x),U(),o()}var G3=460,j3=280,dd=class{playerDomElement;playerParentShadowRoot;playerDummyElement;svelteContext;pipWindow;info={isActive$:new fm(!1),isEnabled$:new fm(!1),type:1};constructor({enabled:e=!0}={enabled:!0}){this.info.isEnabled$=new fm(e)}isSupported(){let{isEmbed:e}=Q3();return"documentPictureInPicture"in window&&!e}isActive(){return this.isSupported()&&!!documentPictureInPicture.window}setPlayerDomElement(e,i){this.playerDomElement=e,this.playerParentShadowRoot=i}setContext(e){this.svelteContext=e}async request(){if(!this.isSupported()||!this.playerDomElement||!this.playerParentShadowRoot)return;this.pipWindow=await documentPictureInPicture.requestWindow({width:G3,height:j3,copyStyleSheets:!0}),this.pipWindow.document.body.style.margin="0";let e=[...this.playerParentShadowRoot.styleSheets].map(s=>[...s.cssRules].map(d=>d.cssText).join(" ")).filter(Boolean).join(`
364
+ `),i=document.createElement("style");i.textContent=e;let o=this.createStretchedContainer(),n=o.attachShadow({mode:"open"});n.append(i),n.append(this.playerDomElement);let a={target:this.playerParentShadowRoot,context:this.svelteContext};this.playerDummyElement=Wr(pm,a),this.pipWindow?.document.body.append(o),this.info.isActive$.next(!0),this.pipWindow?.addEventListener("unload",s=>{!this.playerDomElement||!this.playerParentShadowRoot||!this.playerDummyElement||(Ea(this.playerDummyElement),this.playerParentShadowRoot.append(this.playerDomElement),this.info.isActive$.next(!1))})}async remove(){return new Promise(e=>{documentPictureInPicture.window?.close(),e()})}async dispose(){await this.remove()}setEnabled(e){this.info.isEnabled$.next(e)}createStretchedContainer(){let e=document.createElement("div");return e.style.position="absolute",e.style.top="0",e.style.left="0",e.style.width="100%",e.style.height="100%",e}};function zh(t){return t instanceof dd}var Fc=class{static getLatestSupportedVersion(e){let i=new Ra,o=new dd(e);if(o.isSupported())return o;if(i.isSupported())return i}};function Uc(t,e){let i=new Set([...Object.keys(t),...Object.keys(e)]),o={};for(let n of i)o[n]=e[n]??t[n]??void 0;return o}var qh="Inner error. Unexpectedly root annotation container null reference exception",Kh="Annotation with such name already exists",Wh="Annotation with such name does not exist";var Vs=class extends Error{constructor(e){super(e),this.name="AnnotationError"}};import{observeElementSize as Y3,Subscription as Z3,throttleFn as X3}from"@vkontakte/videoplayer-shared/evergreen";var J3="1",ex=100,zc=class{constructor(e){this.annotationsInside=e;this.annotations=new Map;this.subscriptions=new Z3}init(e){if(this.rootAnnotationsContainer=e,this.annotationsInside)return;let i=X3(()=>{for(let o of this.annotations.values())this.isElementExceedsBoundaries(o,this.playerSize.width,this.playerSize.height)?o.style.visibility="hidden":o.style.visibility="visible"},ex);this.subscriptions.add(Y3(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){if(!this.rootAnnotationsContainer)throw new Vs(qh);if(this.annotations.has(e))throw new Vs(Kh);i.style.zIndex=i.style.zIndex??J3,i.style.position="absolute",this.rootAnnotationsContainer.append(i),this.annotations.set(e,i)}get(e){let i=this.annotations.get(e);if(!i)throw new Vs(Wh);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(){this.annotations.clear(),this.subscriptions.unsubscribe(),this.mutationObserver?.disconnect(),this.rootAnnotationsContainer=null}isElementExceedsBoundaries(e,i,o){let n=e.offsetTop,a=e.offsetLeft,s=e.offsetWidth,d=e.offsetHeight;return n<0||a<0||a+s>i||n+d>o}registryRootContainer(e){}addLayer(e){return document.createElement("div")}getLayer(e){}removeLayer(e){}clearLayer(e){}detach(){}reattach(){}};import{assertNonNullable as qc,Subscription as tx}from"@vkontakte/videoplayer-shared/evergreen";var $o=class{init({store:e,microStores:i,interactiveController:o,config:n}){return qc(e),qc(i),qc(n),n.interactiveData&&qc(o),this.subscription=new tx,this.subscription}};var cd=class extends $o{constructor(){super(...arguments);this.stateName="fakeIsPlaying$";this.state$={...ae(null),toggle:()=>this.state$.update(i=>!i)}}init(i){let o=super.init(i),{isInteractiveExpectation$:n}=i.store.state;return o.add(n.subscribe(a=>{this.state$.set(a?!0:null)})),o}};var ud=class extends $o{constructor(){super(...arguments);this.stateName="interactiveControlsOpacity$";this.state$={...ae(null),toggle:()=>this.state$.update(i=>!i)}}init(i){let o=super.init(i),{microStores:n,store:a}=i,{fakeIsPlaying$:s}=n,{isInteractiveExpectation$:d,isPlaying$:l}=a.state,{controlsVisible:c,isMobile:u}=a.ui,_=ve(u),f=()=>_&&ve(c);return o.add(c.subscribe(y=>{if(!_)return;let x=ve(s);ve(l)?this.state$.set(y):x!==null&&this.state$.set(!x||y)})),o.add(l.subscribe(y=>{this.state$.set(!y||f())})),o.add(s.subscribe(y=>{if(y===null)return;let x=ve(d);if(f()){this.state$.set(!0);return}x&&this.state$.set(!y)})),o}};var pd=class extends $o{constructor(){super(...arguments);this.stateName="seekToInteractiveDisabledTooltip$";this.state$=ae("tooltip_chapter_without_interactive")}init(i){let o=super.init(i),{store:n}=i;return o.add(n.state.interactiveEpisodes$.subscribe(a=>{a.length&&(a.every(s=>s.completed)?this.state$.set("tooltip_interactive_of_chapter_completed"):this.state$.set("tooltip_disabled_when_interactive"))})),o}};import{combine as ix}from"@vkontakte/videoplayer-shared/evergreen";var mm=ae(!1),Kc=null,fd=class extends $o{constructor(){super(...arguments);this.stateName="showInteractiveTimeIndicatorTooltip$";this.state$={...mm,set:(i,o=!1)=>{i!==ve(mm)&&(this.clearTimeout(),mm.set(i),!i&&Kc&&(Kc=!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:c}=n.ui.controls;o.add(l.subscribe(_=>{ve(s)&&_&&this.state$.set(!1)}));let u=a?.interactiveData||{tooltipHelpHintActive:!1};return o.add(ix({isPlaying$:d,isInteractiveTime$:s,interactiveTimeIndicator:c}).subscribe(({isPlaying$:_,isInteractiveTime$:f,interactiveTimeIndicator:y})=>{if(!(!_||!y?.isDisplayed)){if(!f)return this.state$.set(!1);u.tooltipHelpHintActive&&Kc===null&&(Kc=!0,u.tooltipHelpHintActive=!1,this.state$.set(!0),n.callbacks?.onInteractiveTimeIndicatorHintDeactivated?.())}})),o}clearTimeout(){window.clearTimeout(this.timeout)}};import{combine as ox,noop as nx}from"@vkontakte/videoplayer-shared/evergreen";var md=class extends $o{constructor(){super(...arguments);this.stateName="graphIsOpened$";this.graphMadePause=!1;this.state$={...ae(null),toggle:nx};this.checkIfShouldHide=i=>fa(i,"s")}init(i){let o=super.init(i),{store:n,interactiveController:a}=i,s=n.ui.currentGridType$,d=n.getLogger().createComponentLog("GraphIsOpened microStore");return this.state$.toggle=async()=>{if(this.checkIfShouldHide(ve(s)))return;let l=ve(this.state$),{isEnded$:c,playbackState$:u}=n.state,{disabledControls$:_}=n.ui.controls,f=ve(c),y=ve(u);if(l)try{await a?.toggleGraphView(!1),this.state$.set(!1),_.remove(Qu),!f&&this.graphMadePause&&n.actions.internal.play()}catch{d({message:"Cant hide graph"})}else{this.graphMadePause=y==="playing";try{await a?.toggleGraphView(!0),this.state$.set(!0),_.add(Qu),!f&&this.graphMadePause&&n.actions.internal.pause()}catch{d({message:"Cant show graph"})}}},o.add(ox({graphIsOpened:this.state$,currentGridType:s}).subscribe(async({graphIsOpened:l,currentGridType:c})=>{if(this.checkIfShouldHide(c)&&l)try{await a?.toggleGraphView(!1),this.state$.set(!1)}catch{d({message:"Cant hide graph"})}})),o}};import{ValueSubject as Qh}from"@vkontakte/videoplayer-shared/evergreen";var vd=class extends $o{constructor(){super(...arguments);this.stateName="pictureInPicture$";this.state$={isActive$:ae(!1),isEnabled$:ae(!1),type$:ae(void 0)}}init(i){let o=super.init(i),{store:n}=i,{info:{isActive$:a,isEnabled$:s,type:d}}=n.webApi.pictureInPictureApi||{info:{isActive$:new Qh(!1),isEnabled$:new Qh(!1)}};return o.add(a.subscribe(l=>{this.state$.isActive$.set(l)})),o.add(s.subscribe(l=>{this.state$.isEnabled$.set(l)})),this.state$.type$.set(d),o}};import{filter as sx,filterChanged as lx}from"@vkontakte/videoplayer-shared/evergreen";import{safeStorage as vm}from"@vkontakte/videoplayer-shared/evergreen";var Gh=({maxShowCount:t,timeout:e})=>{let i=[t!==0?rx({maxCount:t}):void 0,e!==0?ax({timeout:e}):void 0].filter(o=>!!o);return{notificationShowed:o=>i.forEach(n=>n.notificationShowed(o)),canShowNotification:o=>i.every(n=>n.canShowNotification(o))}},rx=({maxCount:t})=>{let e={};return{notificationShowed:i=>{e[i]=(e[i]??0)+1,vm.set("videoplayer_notifications_manager_count",JSON.stringify(e[i]??0))},canShowNotification:i=>(e[i]??0)<t}},ax=({timeout:t})=>{let e="videoplayer_notifications_manager",i=()=>{try{return JSON.parse(vm.get(e)||"{}")}catch{return{}}},o=a=>vm.set(e,JSON.stringify(a)),n=a=>{let s=i();delete s[a],o(s)};return{notificationShowed:a=>{o({...i(),[a]:{timeout:t,launchTime:Date.now()}})},canShowNotification:a=>{let s=i()[a];if(s){let d=Date.now()-s.launchTime>t;return d&&n(a),d}else return!0}}};var gd=class extends $o{constructor(){super(...arguments);this.stateName="notifications$";this.state$={notificationsToShow$:ae({}),showNotification:i=>{this.state$.notificationsToShow$.update(o=>(o[i]=!0,o)),this.notificationManager.notificationShowed(i)},closeNotification:i=>{this.state$.notificationsToShow$.update(o=>(delete o[i],o))}}}init(i){let o=super.init(i),{store:n,uiConfig:{features:{maxCountShowSlowVideoNotification:a,timeoutShowSlowVideoNotification:s,showSlowVideoNotification:d,forceAutoQualityWhenSevereStallHappens:l}}}=i;this.notificationManager=Gh({maxShowCount:a,timeout:s});let c=n.getPlayer();return o.add(c.events.severeStallOccured$.pipe(lx(),sx(u=>u)).subscribe(()=>{d&&!c.info.isAutoQualityEnabled$.getValue()&&this.notificationManager.canShowNotification("slow_video")&&(l&&n.actions.internal.setQuality("auto"),this.state$.showNotification("slow_video"))})),o}};var jh=()=>[cd,ud,pd,fd,md,vd,gd].reduce(({subscribers:t,stores:e},i)=>{let o=new i;return{subscribers:[...t,o],stores:{...e,[o.stateName]:o.state$}}},{subscribers:[],stores:{}});import{devNull as hd}from"@vkontakte/videoplayer-shared/evergreen";var bx={preload:!0,autoplay:!1,repeat:!1,fromTime:0,canRewindLive:!0,showAds:!1,interfaceLanguage:ux.RU,isCyrillicRelatedInterface:!0,logoClickable:!1,logoHidden:!1,isTouch:hx(),isMediaSessionEnabled:!0,isPictureInPictureEnabled:!0,isAudioDisabled:!1,callbacks:{uiInfo:{}},tuningConfig:{configName:[]},saveRate:!0,volumeMultiplier:1,showEndScreen:!0,showAutoplayNext:!0,showNextPrevButtons:!0},Rs=Y(void 0),Wc=class extends HTMLElement{svelteStubComponent;svelteRootComponent;store;microStoresRoot;statistics;sentry;_shadowRoot;playerContainer;rootContainer;shadowRootContainer;uiConfig;coreConfig;statisticsConfig;interactiveController;interactiveContainer;graphMadePause;currentPlayingVideoIndex=0;needToRepeatPlaylist=!1;videoConfig=void 0;pictureInPictureApi=void 0;mediaSessionApi=void 0;unsubscribePlayerPhaseSubscription=void 0;logger;log;subscription;interactiveSubscription;annotationsApi=void 0;slotsApi;prevIsid=void 0;isInited=!1;internalsExposure=null;constructor(){super(),hd.create("ui"),this.logger=new px,this.log=this.logger.createComponentLog("VKVideoPlayer"),this.subscription=new Yh,this.interactiveSubscription=new Yh,this.graphMadePause=!1}connectedCallback(){if(this.isInited)return;this.initPlayerRootContainers();let e=this.getAttribute("stub-title")??void 0,i=this.getAttribute("stub-thumb-url")??void 0,o=le({title:e,thumbUrl:i}),n={target:this.playerContainer,props:o};this.svelteStubComponent=Wr(cm,n)}disconnectedCallback(){this.annotationsApi?.destroy(),this.mediaSessionApi?.destroy(),this.unmountComponent(this.svelteRootComponent),this.unmountComponent(this.svelteStubComponent),this.subscription.unsubscribe(),this.unsubscribePlayerPhaseSubscription?.(),this.interactiveController?.destroy(),this.interactiveSubscription.unsubscribe(),this.internalsExposure?.destroy(),hd.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){return this.store?.ui.controls.disabledControls$?.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}}createOneStat=(e,i={})=>{let{albumId:o,statPlace:n,statUserSalt:a,statTrackCode:s,statVKAppId:d,refreshStatAuthToken:l,autoplay:c,isMobile:u,isTouch:_,refDomain:f,deviceId:y,interactiveData:x}=Uc(this.videoConfig,i),w=x?.projectInfo?.pid,S=this.interactiveController?.state.isReplay$.getValue()??!1;S&&(this.prevIsid=void 0);let{unitedVideoId:I,isClip:L=!1}=e;if(this.uiConfig.features.statistics&&I)return new _x({movieId:I,albumId:o,place:n,trackCode:s,vkAppId:d,autoplay:(c&&!this.interactiveController)??!1,mobile:_??u,clip:L,refDomain:f,deviceId:y,...w&&(!this.isInited||S)&&{projectId:Number(w)}},{refreshAuthToken:l,userSalt:a,config:this.statisticsConfig,...this.interactiveController&&{useIsid:!0,isid:this.prevIsid}})};createPlayer(e,i={},o){if(!this.videoConfig)return;let{albumId:n,statPlace:a,statAuthToken:s,preload:d,autoplay:l,volume:c,muted:u,fromTime:_,canRewindLive:f,supportLink:y,showAds:x,adsSlotId:w,adsParams:S={},adsPreviewParam:I,adsAutoplayParam:L,interfaceLanguage:A,isCyrillicRelatedInterface:P,logoClickable:T,logoHidden:D,isMobile:Q,isTouch:G,isAudioDisabled:ee,isLiveCatchUpMode:ie,fullScreenTarget:oe,failoverHosts:te,canDownload:ge,callbacks:X,interactiveData:Le,showThumbTimer:Ae,additionalButtons:se=[],additionalSettingsMenuItems:He=[],additionalContextMenuItems:j=[],repeat:B,saveRate:Re,volumeMultiplier:_e,showEndScreen:Ce,showAutoplayNext:Be}=Uc(this.videoConfig,i),{sources:ue,title:R,thumbUrl:be,unitedVideoId:Ie,isClip:je=!1,duration:qe,adsParams:ke={},videoEpisodes:Pe,previewThumbsData:Ve,subtitles:ct,live:gt}=e,ot={...S,...ke},kt=this.getNextVideoInfo(),nt={sources:ue,title:R,thumbUrl:be,subtitles:ct,unitedVideoId:Ie,isClip:je,live:gt,albumId:n,statPlace:a,autoplay:l,muted:u,volume:c,fromTime:_,canRewindLive:f,showAds:x,adsSlotId:w,adsParams:ot,adsPreviewParam:I,adsAutoplayParam:L,duration:qe,logoClickable:T,logoHidden:D,isTouch:G??Q,repeat:B,showNextPrevButtons:this.needToShowNextPrevButtons(),nextButtonActive:this.isNextButtonActive(),prevButtonActive:this.isPrevButtonActive(),endScreenVideoTitle:kt.nextVideoTitle,endScreenVideoThumb:kt.nextVideoThumb,isOneVideoPlaylist:this.isOneVideoPlaylist()},ut={pictureInPictureApi:this.pictureInPictureApi,annotationsApi:this.annotationsApi};this.log({message:`create player, props: ${JSON.stringify(nt)}`});let Et=this.interactiveController?.state.statistics$.getValue(),we=Et?.oneStat||this.createOneStat(e,i);we&&(this.statistics=new Sc(we,Et?.statSubscription)),this.uiConfig.features.sentry&&this.uiConfig.sentry.dsn&&new La(this.uiConfig.sentry,{version:$s,env:Yd},{movieId:Ie,albumId:n,place:a,autoplay:(l&&!this.interactiveController)??!1,mobile:G??Q,clip:je}),this.interactiveController&&(this.prevIsid??=this.statistics?.oneStat.isid$.getValue()),this.sentry={...this.sentry,...La.getInstance()};let Ye=!!Le,W=[],re="tooltip_interactive_go_back_disabled_first";if(Ye&&this.interactiveController){let yt=this.interactiveController.state.isInitialChapter$.getValue(),Ke=this.interactiveController.getHistoryState();yt&&W.push("REPLAY_BUTTON"),this.interactiveController.getIsSeekable().getValue()||W.push("SEEK_TO_INTERACTIVE_BUTTON"),Ke.hasPrevChapter$.getValue()||(W.push("PLAY_PREV_CHAPTER_BUTTON"),yt||(Ke.isGoBackLimited$.getValue()?re="tooltip_interactive_go_back_disabled_limit":re="tooltip_interactive_go_back_disabled"))}let ne=()=>{this.isInited=!1,this.prevIsid=void 0;let yt=o?.info.isEnded$.getValue()&&this.interactiveController?.state.isEndChapter$.getValue();X.onReplayInteractiveVideo&&!yt?X.onReplayInteractiveVideo():this.replayInteractiveVideo()};this.store=fh({player:o,interfaceLanguage:A,isCyrillicRelatedInterface:P,videoId:Ie,isClip:je,isLiveCatchUpMode:ie,isAudioDisabled:ee,statAuthToken:s,callbacks:X,webApi:ut,videoEpisodes:Pe,previewThumbsData:Ve,canDownload:ge,uiConfig:this.uiConfig,coreConfig:this.coreConfig,disabledControls:W,isInteractive:Ye,saveRate:Re,interactiveRanges$:this.interactiveController?.state.interactiveRanges$,isInteractiveTime$:this.interactiveController?.state.isInteractiveTime$,stopPlayer:()=>this.stop(),replayInteractive:ne,playPrevChapterDisabledTooltip:re,hasInteractiveBranches:!!this.interactiveController?.getChapterBranches()?.length,additionalButtons:this.uiConfig.features.additionalButtons?se:[],additionalSettingsMenuItems:He??[],additionalContextMenuItems:j??[],playPrevVideo:()=>this.playPrevVideo(),playNextVideo:()=>this.playNextVideo(),looped:B&&this.videoConfig.videos.length===1,statistics:this.statistics,internalsExposure:this.internalsExposure});let{stores:Fe}=this.microStoresRoot=jh(),Ge=()=>{if(!this.store||!this.microStoresRoot||!this.videoConfig)return;this.subscription.add(this.store.state.currentFormat$.subscribe(Ke=>X?.onCurrentFormatChanged?.(Ke))),this.subscription.add(Fe.interactiveControlsOpacity$.subscribe(Ke=>{Ke!==null&&this?.interactiveController?.setDisabledControls(Ke)})),this.subscription.add(this.store.state.throughputEstimation$.subscribe(Ke=>X?.onThroughputEstimationChanged?.(Ke))),this.subscription.add(this.store.state.trafficSavingEnabled$.subscribe(Ke=>X?.onTrafficSavingEnabledChanged?.(Ke))),this.subscription.add(new fx(Ke=>{this.store&&this.subscription.add(this.store.state.currentPlaybackRate$.subscribe(Ze=>Ke.next(Ze)))}).pipe(this.uiConfig.features.skipInitialPlaybackRateValue?gx(1):Ke=>Ke).subscribe(Ke=>X?.onCurrentPlaybackRateChanged?.(Ke))),this.subscription.add(this.store.state.volume$.subscribe(Ke=>X?.onVolumeChange?.(Ke))),this.subscription.add(this.store.state.muted$.subscribe(Ke=>Ke?X?.onMute?.():X?.onUnmute?.())),this.subscription.add(this.store.state.videoBitrate$.subscribe(Ke=>X?.onVideoBitrateChanged?.(Ke))),this.subscription.add(this.store.state.isInteractiveTime$.subscribe(Ke=>{let Ze=this.store?.ui.controls.disabledControls$;Ze&&(Ke&&!Ze.includes(fl)&&Ze.add(fl),Ke||Ze.remove(fl))})),this.subscription.add(this.store.ui.isFullscreen.subscribe(async Ke=>{if(!Zh.browser.isSamsungBrowser||!Ke||!this.interactiveController)return;document.fullscreenElement===this.shadowRootContainer&&await this.replayInteractiveChapter(this.videoConfig?.callbacks.onExternalFullscreenExit)})),this.statistics&&this.subscription.add(this.statistics.oneStat.vsid$.subscribe(Ke=>X?.onVSIDChanged?.(Ke))),this.initMediaSession(),N(Rs,le({interactiveController:this.interactiveController,interactiveContainer:this.interactiveContainer,sources:ue,store:this.store,microStoresRoot:this.microStoresRoot,videoConfig:this.videoConfig,uiConfig:this.uiConfig,title:R,thumbUrl:be,subtitles:ct,live:gt,preload:d,autoplay:l,muted:u,volume:c,fromTime:_,canRewindLive:f,supportLink:y,showAds:x,adsSlotId:w,adsParams:ot,adsPreviewParam:I,adsAutoplayParam:L,duration:qe,logoClickable:T,logoHidden:D,isMobile:G??Q,failoverHosts:te,fullScreenTarget:oe,saveRate:Re,shadowRootContainer:this.shadowRootContainer,showMiniTimer:Ae,outerContainerRef:this.rootContainer,showNextPrevButtons:this.needToShowNextPrevButtons(),nextButtonActive:this.isNextButtonActive(),prevButtonActive:this.isPrevButtonActive(),endScreenVideoTitle:kt.nextVideoTitle,endScreenVideoThumb:kt.nextVideoThumb,isOneVideoPlaylist:this.isOneVideoPlaylist(),playPrevChapter:()=>this.playPrevChapter(),seekToInteractive:()=>this.seekToInteractive(),volumeMultiplier:_e,showEndScreen:Ce,showAutoplayNext:Be}));let yt={target:this.playerContainer,props:r(Rs)};this.svelteRootComponent=Wr(sm,yt),this.addPlayerInfoSubscriptions(),this.isInited||(this.isInited=!0,this.videoConfig?.callbacks?.onInited?.()),this.internalsExposure?.expose({player:this,videoConfig:this.videoConfig,coreConfig:this.coreConfig,uiConfig:this.uiConfig,statisticsConfig:this.statisticsConfig,logger:this.logger,log:this.log}),this.uiConfig.devNullLog&&this.videoConfig?.callbacks?.onDevNullLog?hd.subscribe("ui",this.videoConfig.callbacks.onDevNullLog):hd.destroy("ui")};this.coreConfig.asyncResolveClientChecker?Zh.isInited$.subscribe(yt=>{yt&&(console.log("UI SDK async start"),Ge())}):Ge()}addPlayerInfoSubscriptions(){let e=this.store,i=this.microStoresRoot?.stores;if(!e||!i)return;let o=this.videoConfig?.callbacks;o&&this.subscription.add(e.playerPhase.subscribe(a=>o.onPlayerPhaseChanged?.(a))).add(e.state.playbackState$.subscribe(a=>a&&o.onPlaybackStateChanged?.(a))).add(e.state.isLive$.subscribe(a=>o.onIsLiveChanged?.(a))).add(e.state.isActiveLive$.subscribe(a=>o.onIsActiveLiveChanged?.(a))).add(e.state.isAudioAvailable$.subscribe(a=>o.onIsAudioAvailableChanged?.(a))).add(e.state.currentQuality$.subscribe(a=>o.onCurrentQualityChanged?.(a))).add(e.state.availableQualities$.subscribe(a=>o.onAvailableQualitiesChanged?.(a.map(({value:s})=>s).filter(s=>s!=="auto")))).add(e.state.availableAudioStreams$.subscribe(a=>{a.length>1&&o.onAudioLanguagesAvailable&&o.onAudioLanguagesAvailable()})).add(i.pictureInPicture$.isActive$.subscribe(a=>a?o.onPiPEnter?.():o.onPiPExit?.()));let n=o?.uiInfo;n&&this.subscription.add(e.ui.controlsVisible.subscribe(a=>n.onControlsVisibleChanged?.(a))).add(e.ui.isMobile.subscribe(a=>n.onIsMobileChanged?.(a))).add(e.ui.playerSize.subscribe(a=>n.onPlayerSizeChanged?.(a))).add(e.ui.controls.prevButton.subscribe(a=>n.onPrevButtonChanged?.(a))).add(e.ui.controls.playButton.subscribe(a=>n.onPlayButtonChanged?.(a))).add(e.ui.controls.replayButton.subscribe(a=>n.onReplayButtonChanged?.(a))).add(e.ui.controls.nextButton.subscribe(a=>n.onNextButtonChanged?.(a))).add(e.ui.controls.playPrevChapterButton.subscribe(a=>n.onPlayPrevChapterChanged?.(a))).add(e.ui.controls.seekToInteractiveButton.subscribe(a=>n.onSeekToInteractiveButtonChanged?.(a))).add(e.ui.controls.interactiveGraphButton.subscribe(a=>n.onGraphButtonChanged?.(a))).add(e.ui.controls.liveButton.subscribe(a=>n.onLiveButtonChanged?.(a))).add(e.ui.controls.time.subscribe(a=>n.onTimeUpdateChanged?.(a))).add(e.ui.controls.episodes.subscribe(a=>n.onEpisodesChanged?.(a))).add(e.ui.controls.subtitles.subscribe(a=>n.onSubtitlesChanged?.(a))).add(e.ui.controls.settings.subscribe(a=>n.onSettingsChanged?.(a))).add(e.ui.controls.fullscreen.subscribe(a=>n.onFullscreenChanged?.(a))).add(e.ui.controls.chromecast.subscribe(a=>n.onChromecastChanged?.(a))).add(e.ui.controls.pip.subscribe(a=>n.onPipChanged?.(a))).add(e.ui.controls.vkLogo.subscribe(a=>n.onVkLogoChanged?.(a))).add(e.ui.controls.interactiveTimeIndicator.subscribe(a=>n.onInteractiveTimeIndicatorChanged?.(a))).add(e.ui.controls.timeline.subscribe(a=>n.onTimelineChanged?.(a)))}playNextVideo(){this.videoConfig&&(this.currentPlayingVideoIndex++,this.currentPlayingVideoIndex>=this.videoConfig.videos.length&&(this.currentPlayingVideoIndex=0),this.log({message:`play next video, index: ${this.currentPlayingVideoIndex}`}),this.createPlayerWithCurrentVideo())}playPrevVideo(){this.videoConfig&&(this.currentPlayingVideoIndex--,this.currentPlayingVideoIndex<0&&(this.currentPlayingVideoIndex=this.videoConfig.videos.length-1),this.log({message:`play prev video, index: ${this.currentPlayingVideoIndex}`}),this.createPlayerWithCurrentVideo())}createPlayerWithCurrentVideo(e,i=!0){if(!this.videoConfig)return;let o=this.videoConfig.videos[this.currentPlayingVideoIndex];if(!o){this.log({message:"no next video"});return}this.isInited&&gm(o.unitedVideoId)&&this.store.actions.internal.nextMovie(o.unitedVideoId),this.unmountComponent(this.svelteRootComponent),this.createPlayer(o,{autoplay:i,fromTime:0},e)}playPrevChapter(){this.interactiveController?.playPrevChapter()}seekToInteractive(){let e=this.interactiveController?.getNextInteractiveStartTime();typeof e=="number"&&this.seekTime(e/1e3)}async initInteractives(){if(this.videoConfig?.interactiveData)try{let{Interactives:e}=await import("@vkontakte/videoplayer-interactive/evergreen");this.interactiveContainer=document.createElement("div"),this.interactiveContainer.classList.add("interactive-root");let i=this.store?.interfaceLanguage$,o=i?ve(i):this.videoConfig.interfaceLanguage,{projectInfo:n,initChapterId:a,historyApi:s,videoLoader:d}=this.videoConfig.interactiveData;this.interactiveController=new e({parentElement:this.interactiveContainer,fullscreenTargetElement:this.playerContainer,lang:o,graph:this.uiConfig.features.interactiveGraph,projectInfo:n,initChapterId:a,historyApi:s,vkVideoLoader:d,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$:l,isSeekable$:c}=this.interactiveController.state;this.uiConfig.features.seekToInteractive&&this.subscription.add(c.subscribe(_=>{if(!this.isInited)return;let f=this.store;_?f.ui.controls.disabledControls$.remove("SEEK_TO_INTERACTIVE_BUTTON"):f.ui.controls.disabledControls$.add("SEEK_TO_INTERACTIVE_BUTTON")})),this.subscription.add(l.subscribe(_=>{this.store&&this.store.state.isInteractiveExpectation$.set(_)}));let u=!0;if(this.subscription.add(this.interactiveController.events.playerChanged$.subscribe(_=>{if(!this.videoConfig)return;this.videoConfig.videos[this.currentPlayingVideoIndex]={..._.config,title:n?.title||_.config.title};let f=u?this.videoConfig.autoplay:!0;this.createPlayerWithCurrentVideo(_.player,f),u&&(u=!1)})),this.interactiveSubscription.add(this.interactiveController.events.interactiveActionChoice$.subscribe(({type:_,actionType:f})=>{if(!this.store||!this.microStoresRoot)return;let y=l.getValue();if(_==="action-choice"&&f==="setRandomBranch"&&(this.microStoresRoot.stores.graphIsOpened$.set(!1),this.store.ui.controls.disabledControls$.remove(ml)),_==="action-choice-canceled"){let x=ve(this.store.state.isPlaying$)||y;if((this.videoConfig?.isTouch??this.videoConfig?.isMobile)&&x){this.store.ui.interactiveHideMobileControls.set(!0);return}this.videoConfig?.callbacks.onDisabledInteractiveClick?.()}})),this.interactiveSubscription.add(this.interactiveController.events.interactiveContainerFakeRemoved$.subscribe(({type:_,removeAllOpenURI:f})=>{this.store&&_==="container-fake-removed"&&f&&this.store.ui.controls.disabledControls$.remove(ml)})),await this.interactiveController.setManifest(this.videoConfig.interactiveData.manifest),this.videoConfig?.callbacks?.onInteractiveHistoryChanged){let _=this.interactiveController.getHistoryState();this.subscription.add(_.history$.subscribe(f=>{f.length&&this.videoConfig?.callbacks?.onInteractiveHistoryChanged?.(f)}))}this.uiConfig.features.interactiveTimeIndicator&&this.subscription.add(this.interactiveController.events.noInteraction$.subscribe(()=>{this.microStoresRoot?.stores.showInteractiveTimeIndicatorTooltip$.set(!0,!0),this.videoConfig?.callbacks.onInteractiveTimeIndicatorClick?.()})),this.interactiveSubscription.add(this.interactiveController.events.error$.subscribe(_=>{this.log({message:_.toString()})}))}catch(e){this.log({message:e.message})}}initPlayer(e,i={}){if(!Array.isArray(e.videos)||e.videos.length===0&&!e.interactiveData)throw new Error("empty videos");if(this.videoConfig=Uc(bx,cx(e,o=>o instanceof HTMLElement?o:void 0)),this.uiConfig=Gv(i.ui??{}),this.coreConfig=i.core??{configName:[]},this.statisticsConfig=i.statistics??{},this.uiConfig.features.forcePlayerDisplayBlock&&(this.rootContainer.style.minHeight="unset",this.style.display="block",this.style.width="100%",this.style.height="100%"),this.sentry={config:this.uiConfig.sentry??{}},this.uiConfig.features.exposeInternalsToGlobal&&(this.internalsExposure??=new vx("UI")),hd.push("ui",{key:"videoplayer_embed",strings:["new","player_init_player","ads.enable: "+this.uiConfig.ads.enable,"showAds: "+this.videoConfig?.showAds],numbers:[dx()]}),gm(this.videoConfig.isMediaSessionEnabled)&&(this.uiConfig.features.mediaSession=this.uiConfig.features.mediaSession??this.videoConfig.isMediaSessionEnabled??!0),gm(this.videoConfig.isPictureInPictureEnabled)&&(this.uiConfig.features.pip=this.uiConfig.features.pip??this.videoConfig.isPictureInPictureEnabled??!0,this.uiConfig.features.dpip=this.uiConfig.features.dpip??this.videoConfig.isPictureInPictureEnabled??!0),this.videoConfig.isTouch=this.uiConfig.isMobile??this.videoConfig.isTouch??this.videoConfig.isMobile,this.videoConfig.autoplay&&=this.uiConfig.features.autoplay,this.videoConfig.showAds=this.uiConfig.ads.enable??this.videoConfig.showAds,this.videoConfig.adsSlotId=this.uiConfig.ads.slot??this.videoConfig.adsSlotId,this.videoConfig.adsPreviewParam=this.uiConfig.ads.preview??this.videoConfig.adsPreviewParam,this.videoConfig.logoHidden=!(this.uiConfig.showLogo??!this.videoConfig.logoHidden),this.videoConfig.canRewindLive&&=this.uiConfig.features.liveRewind,this.videoConfig.supportLink=this.videoConfig.supportLink??this.uiConfig.supportLink,this.videoConfig.showEndScreen=this.uiConfig.features.endScreen??this.videoConfig.showEndScreen,this.videoConfig.showAutoplayNext=this.uiConfig.features.autoplayNext??this.videoConfig.showAutoplayNext,this.videoConfig.showNextPrevButtons=this.uiConfig.features.nextPrevButtons??this.videoConfig.showNextPrevButtons,this.currentPlayingVideoIndex=this.videoConfig.videoIndex&&this.videoConfig.videos?.[this.videoConfig.videoIndex]?this.videoConfig.videoIndex:0,this.needToRepeatPlaylist=this.videoConfig.repeat,this.uiConfig.features.pip){let o={enabled:this.videoConfig.pipEnabled};this.uiConfig.features.dpip?this.pictureInPictureApi=Fc.getLatestSupportedVersion(o):this.pictureInPictureApi=new Ra(o)}this.mediaSessionApi=this.uiConfig.features.mediaSession?new Hc:void 0,this.slotsApi=this.uiConfig.features.slots?new Bc:void 0,this.annotationsApi=this.uiConfig.features.annotations?new zc(this.uiConfig.features.annotationsInside):void 0,this.annotationsApi&&!this.uiConfig.features.annotationsInside&&this.annotationsApi.init(this.rootContainer),this.slotsApi?.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]),zh(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();N(Rs,le({...r(Rs),showNextPrevButtons:this.needToShowNextPrevButtons(),nextButtonActive:this.isNextButtonActive(),prevButtonActive:this.isPrevButtonActive(),endScreenVideoTitle:o.nextVideoTitle,endScreenVideoThumb:o.nextVideoThumb,isOneVideoPlaylist:this.isOneVideoPlaylist()}))}updatePrevVideos(e){this.updateVideos(e,"prev")}updateNextVideos(e){this.updateVideos(e,"next")}initMediaSession(){this.mediaSessionApi&&(this.unsubscribePlayerPhaseSubscription?.(),this.mediaSessionApi.clearSubscriptions(),this.unsubscribePlayerPhaseSubscription=this.store?.playerPhase.subscribe(e=>{e==="video"?this.setupMediaSessionForVideo():e==="ads"&&this.setupMediaSessionForAds()}))}setupMediaSessionForVideo(){if(!(!this.videoConfig||!this.mediaSessionApi))try{let{title:e,thumbUrl:i}={...this.videoConfig.videos[this.currentPlayingVideoIndex]},o=[["play",()=>this.play()],["pause",()=>this.pause()],["seekto",n=>this.seekTime(n.seekTime)]];this.videoConfig.videos.length>1&&(this.currentPlayingVideoIndex<this.videoConfig.videos.length-1&&o.push(["nexttrack",()=>this.playNextVideo()]),this.currentPlayingVideoIndex>0&&o.push(["previoustrack",()=>this.playPrevVideo()])),this.mediaSessionApi.setMetaData({title:e,thumbUrl:i}),this.mediaSessionApi.updateActionHandlers(o),this.mediaSessionApi.attachToStore(this.store)}catch(e){this.log({message:e.message})}}setupMediaSessionForAds(){if(!(!this.videoConfig||!this.mediaSessionApi))try{let e="\u0420\u0435\u043A\u043B\u0430\u043C\u0430",i=[["play",()=>this.play()],["pause",()=>this.pause()]];this.mediaSessionApi.setMetaData({title:e}),this.mediaSessionApi.updateActionHandlers(i),this.mediaSessionApi.attachToStore(this.store)}catch(e){this.log({message:e.message})}}play(){this.isControlDisabled("PLAY_BUTTON")||this.store?.playerPhase.is("LiveWaitingStart")||this.store?.playerPhase.is("LiveWaitingRecover")||this.store?.playerPhase.is("LiveWaitingRecord")||(this.log({message:"play"}),this.svelteRootComponent?.play())}pause(){this.log({message:"pause"}),this.svelteRootComponent?.pause()}stop(){if(!this.videoConfig)return;this.log({message:"stop"});let e=!!this.interactiveController;e&&(this.interactiveController.destroy(),this.interactiveController=void 0,this.interactiveContainer=void 0,this.interactiveSubscription.unsubscribe()),this.unmountComponent(this.svelteStubComponent),this.mediaSessionApi?.destroy();let i=this.videoConfig.videos[0];i&&(this.unmountComponent(this.svelteRootComponent),e?(this.videoConfig.autoplay=!1,this.initInteractives()):this.createPlayer(i))}setMuted(e){this.log({message:`set muted, muted: ${e}`}),this.svelteRootComponent?.setMuted(e)}setPiPEnabled(e){this.store?.webApi.pictureInPictureApi?.setEnabled(e)}setVolume(e){this.log({message:`set volume, volume: ${e}`}),this.svelteRootComponent?.setVolume(e)}setRepeat(e){this.log({message:`set repeat, repeat: ${e}`}),this.needToRepeatPlaylist=e,N(Rs,le({...r(Rs),needToRepeatPlaylist:this.needToRepeatPlaylist,showNextPrevButtons:this.needToShowNextPrevButtons(),nextButtonActive:this.isNextButtonActive(),prevButtonActive:this.isPrevButtonActive()}))}seekTime(e){this.isControlDisabled("TIMELINE")||(this.log({message:`seek time, time: ${e}`}),this.svelteRootComponent?.seekTime(e))}seekEpisodeStartTime(e){this.log({message:`seek episode start time, time: ${e}`}),this.svelteRootComponent?.seekEpisodeStartTime(e)}returnFocusToEpisodes(){this.log({message:"return focus to episodes button"}),this.svelteRootComponent?.returnFocusToEpisodes()}setPlaybackRate(e){this.log({message:`set playback rate to: ${e}`}),this.svelteRootComponent?.setPlaybackRate(e)}setAutoQualityLimits(e){this.log({message:`set auto quality limitation. Max: ${e.max??"none"}. Min: ${e.min??"none"}`}),this.svelteRootComponent?.setAutoQualityLimits(e)}addLanguage(e){this.store?.actions.internal.addLanguage(e)}async setLanguage(e){await this.store?.actions.internal.setLanguage(e)}setLiveStart(e){this.log({message:"live started"}),this.store?.actions.internal.setLiveWaitingRecover(!1),this.store?.actions.internal.setLiveWaitingStart(!1),this.unmountComponent(this.svelteRootComponent),this.createPlayer(e,{autoplay:!0})}setLiveWaitingRecover(){this.log({message:"live waiting"}),this.store?.callbacks&&(this.store.callbacks.onLiveEnded=()=>{this.store?.actions.internal.setLiveWaitingRecover(!0),this.store?.destroy()})}setLiveWaitingRecord(){this.log({message:"post live"}),this.store?.callbacks&&(this.store.callbacks.onLiveEnded=()=>{this.store?.actions.internal.setLiveWaitingRecord(!0),this.store?.destroy()})}setLiveEnd(e){this.log({message:"live ended"}),this.store?.callbacks&&(this.store.callbacks.onLiveEnded=()=>{this.store?.actions.internal.setLiveWaitingRecover(!1),this.store?.actions.internal.setLiveWaitingRecord(!1),this.unmountComponent(this.svelteRootComponent),this.createPlayer(e,{autoplay:!1})})}setLiveLowLatency(e){this.log({message:"live switch to low latency "+e}),this.store?.actions.external.setLiveLowLatency(e)}getDeviceId(){return this.statistics?.oneStat.getDeviceId()??void 0}replayInteractiveVideo(){this.interactiveController&&this.interactiveController.setChapter()}async replayInteractiveChapter(e){if(this.interactiveController&&this.store?.state.positionExact$){let i=ve(this.store.state.positionExact$),n=ve(this.store.state.interactiveEpisodes$).find(s=>!s.completed);this.interactiveController.events.playerChanged$.pipe(mx()).subscribe(()=>{n&&i>=n.time?this.seekTime(n.time):this.seekTime(i),e?.()});let a=this.interactiveController.getCurrentChapter();await this.interactiveController.setChapter({chapterId:a?.chapter?.id,pushToHistory:!1})}}showInteractiveIndicatorTooltip(e,i=!1){this.microStoresRoot?.stores.showInteractiveTimeIndicatorTooltip$.set(e,i)}switchToActiveLive(){this.store?.actions.internal.switchToActiveLive()}updateAdditionalSettingsItem(e,i){this.store?.actions.external.updateAdditionalSettingsItem(e,i)}addAdditionalSettingsItem(e){this.store?.actions.external.addAdditionalSettingsItem(e)}removeAdditionalSettingsItem(e){this.store?.actions.external.removeAdditionalSettingsItem(e)}updateAdditionalContextItem(e,i){this.store?.actions.external.updateAdditionalContextItem(e,i)}addAdditionalContextItem(e){this.store?.actions.external.addAdditionalContextItem(e)}removeAdditionalContextItem(e){this.store?.actions.external.removeAdditionalContextItem(e)}updateAdditionalButton(e,i){this.store?.actions.external.updateAdditionalButton(e,i)}addAdditionalButton(e){this.store?.actions.external.addAdditionalButton(e)}removeAdditionalButton(e){this.store?.actions.external.removeAdditionalButton(e)}updateStatContext(e){this.statistics&&this.statistics.oneStat.updateContext(e)}handleTimerNextVideo(e){this.store?.actions.internal.setTimerNextVideoRunning(e)}focus(){this.svelteRootComponent?.keyboardControls?.focus?.()}unmountComponent(e){e&&Ea(e)}};import{InterfaceLanguage as bY,VKNumericLanguage as $Y,loadVKLangPack as yY}from"@vkontakte/videoplayer-shared/evergreen";import{VideoQuality as wY,VideoFormat as SY}from"@vkontakte/videoplayer-core/evergreen";var uY=()=>{window.customElements.define("vk-video-player",Wc)};export{Cc as ControlButtonType,Vr as GridTypes,bY as InterfaceLanguage,wl as MenuItemType,Va as PlayerPhase,$s as VERSION,$Y as VKNumericLanguage,SY as VideoFormat,wY as VideoQuality,yY as loadVKLangPack,uY as registerPlayerWebComponent};