@vkontakte/videoplayer 1.1.62-dev.92a4e8bb.0 → 1.1.62-dev.96a1e2ab.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/es2024.esm.js CHANGED
@@ -1,63 +1,63 @@
1
1
  /**
2
- * @vkontakte/videoplayer v1.1.62-dev.92a4e8bb.0
3
- * Wed, 21 May 2025 10:38:08 GMT
2
+ * @vkontakte/videoplayer v1.1.62-dev.96a1e2ab.0
3
+ * Fri, 23 May 2025 06:56:31 GMT
4
4
  * https://st.mycdn.me/static/vkontakte-videoplayer/1-1-62/doc/
5
5
  */
6
- var oa="[",$a="[!",ya="]",Or={};var fi=Symbol(),ti=Symbol("filename"),wm=Symbol("hmr"),Sm="http://www.w3.org/1999/xhtml",nu="http://www.w3.org/2000/svg";var Ad=!0;var ru=globalThis.process?.env?.NODE_ENV;ru||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 Se=ru&&!ru.toLowerCase().includes("prod");var ho=Symbol("$state"),Hr=Symbol("$state metadata"),Ys=Symbol("legacy props"),Cm=Symbol("");var sr=Array.isArray,km=Array.prototype.indexOf,js=Array.from,au=Object.keys,Ni=Object.defineProperty,wn=Object.getOwnPropertyDescriptor,Md=Object.getOwnPropertyDescriptors,su=Object.prototype,Tm=Array.prototype,Fr=Object.getPrototypeOf;function na(t){return typeof t=="function"}var te=()=>{};function Im(t){return t()}function ra(t){for(var e=0;e<t.length;e++)t[e]()}var Zs=[],lu=[];function Em(){var t=Zs;Zs=[],ra(t)}function r1(){var t=lu;lu=[],ra(t)}function Ao(t){Zs.length===0&&queueMicrotask(Em),Zs.push(t)}function du(){Zs.length>0&&Em(),lu.length>0&&r1()}function Ld(t){return t===this.v}function ss(t,e){return t!=t?e==e:t!==e||t!==null&&typeof t=="object"||typeof t=="function"}function Pm(t,e){return t!==e}function ls(t){return!ss(t,this.v)}function Am(){if(Se){let t=new Error(`derived_references_self
6
+ var ta="[",_a="[!",ba="]",Or={};var fi=Symbol(),ti=Symbol("filename"),bm=Symbol("hmr"),$m="http://www.w3.org/1999/xhtml",iu="http://www.w3.org/2000/svg";var Td=!0;var ym=globalThis.process?.env?.NODE_ENV,xe=ym&&!ym.toLowerCase().startsWith("prod");var vo=Symbol("$state"),Hr=Symbol("$state metadata"),zs=Symbol("legacy props"),xm=Symbol("");var dr=Array.isArray,wm=Array.prototype.indexOf,Ws=Array.from,ou=Object.keys,Bi=Object.defineProperty,yn=Object.getOwnPropertyDescriptor,Id=Object.getOwnPropertyDescriptors,nu=Object.prototype,Sm=Array.prototype,Fr=Object.getPrototypeOf;function ia(t){return typeof t=="function"}var J=()=>{};function Cm(t){return t()}function oa(t){for(var e=0;e<t.length;e++)t[e]()}var qs=[],ru=[];function km(){var t=qs;qs=[],oa(t)}function i1(){var t=ru;ru=[],oa(t)}function Ao(t){qs.length===0&&queueMicrotask(km),qs.push(t)}function au(){qs.length>0&&km(),ru.length>0&&i1()}function Ed(t){return t===this.v}function ns(t,e){return t!=t?e==e:t!==e||t!==null&&typeof t=="object"||typeof t=="function"}function Tm(t,e){return t!==e}function rs(t){return!ns(t,this.v)}function Im(){if(xe){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 Mm(t){if(Se){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 Em(t){if(xe){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 Lm(){if(Se){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 Vm(t){if(Se){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 Pm(){if(xe){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 Am(t){if(xe){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 Rm(){if(Se){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 Mm(){if(xe){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 Nm(){if(Se){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 Lm(){if(xe){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 Dm(){if(Se){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 Bm(t){if(Se){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 Vm(){if(xe){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 Rm(t){if(xe){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 Om(t){if(Se){let e=new Error(`props_rest_readonly
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 Dm(t){if(xe){let e=new Error(`props_rest_readonly
19
19
  Rest element properties of \`$props()\` such as \`${t}\` are readonly
20
- https://svelte.dev/e/props_rest_readonly`);throw e.name="Svelte error",e}else throw new Error("https://svelte.dev/e/props_rest_readonly")}function Hm(t){if(Se){let e=new Error(`rune_outside_svelte
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 Nm(t){if(xe){let e=new Error(`rune_outside_svelte
21
21
  The \`${t}\` rune is only available inside \`.svelte\` and \`.svelte.js/ts\` files
22
- https://svelte.dev/e/rune_outside_svelte`);throw e.name="Svelte error",e}else throw new Error("https://svelte.dev/e/rune_outside_svelte")}function Fm(){if(Se){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 Um(){if(Se){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 zm(){if(Se){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(Se){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 Pr=!1,Ar=!1;function Wm(){Pr=!0}var Xs=null;function Ur(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 Bm(){if(xe){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 Om(){if(xe){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 Hm(){if(xe){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 Fm(){if(xe){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 Ir=!1,Er=!1;function Um(){Ir=!0}var Ks=null;function Ur(t){let e=Error(),i=e.stack;if(i){let o=i.split(`
23
23
  `),n=[`
24
- `];for(let a=0;a<o.length;a++){let s=o[a];if(s!=="Error"){if(s.includes("validate_each_keys"))return null;s.includes("svelte/src/internal")||n.push(s)}}if(n.length===1)return null;Ni(e,"stack",{value:n.join(`
25
- `)}),Ni(e,"name",{value:`${t}Error`})}return e}var xa=new Set,ds=new Map;function fu(t){xa=t}function wi(t,e){var i={f:0,v:t,reactions:null,equals:Ld,rv:0,wv:0};return Se&&Ar&&(i.created=e??Ur("CreatedAt"),i.debug=null),i}function X(t){return a1(wi(t))}function qr(t,e=!1){let i=wi(t);return e||(i.equals=ls),Pr&&St!==null&&St.l!==null&&(St.l.s??=[]).push(i),i}function a1(t){return Et!==null&&!Cn&&(Et.f&2)!==0&&(lr===null?Gm([t]):lr.push(t)),t}function D(t,e){return Et!==null&&!Cn&&Mr()&&(Et.f&18)!==0&&(lr===null||!lr.includes(t))&&qm(),cs(t,e)}function cs(t,e){if(!t.equals(e)){var i=t.v;if(Sa?ds.set(t,e):ds.set(t,i),t.v=e,t.wv=el(),Se&&Ar&&(t.updated=Ur("UpdatedAt"),gt!=null&&(t.trace_need_increase=!0,t.trace_v??=i)),Qm(t,2048),Mr()&&gt!==null&&(gt.f&1024)!==0&&(gt.f&96)===0&&(Sn===null?Ym([t]):Sn.push(t)),Se&&xa.size>0){let o=Array.from(xa);for(let n of o)(n.f&1024)!==0&&Vo(n,4096),aa(n)&&us(n);xa.clear()}}return e}function Qm(t,e){var i=t.reactions;if(i!==null)for(var o=Mr(),n=i.length,a=0;a<n;a++){var s=i[a],d=s.f;if((d&2048)===0&&!(!o&&s===gt)){if(Se&&(d&262144)!==0){xa.add(s);continue}Vo(s,e),(d&1280)!==0&&((d&2)!==0?Qm(s,4096):ps(s))}}}function v(t){var e=2050,i=Et!==null&&(Et.f&2)!==0?Et:null;gt===null||i!==null&&(i.f&256)!==0?e|=256:gt.f|=1048576;let o={ctx:St,deps:null,effects:null,equals:Ld,f:e,fn:t,reactions:null,rv:0,v:null,wv:0,parent:i??gt};return Se&&Ar&&(o.created=Ur("CreatedAt")),o}function cr(t){let e=v(t);return e.equals=ls,e}function Vd(t){var e=t.effects;if(e!==null){t.effects=null;for(var i=0;i<e.length;i+=1)Bi(e[i])}}var mu=[];function s1(t){for(var e=t.parent;e!==null;){if((e.f&2)===0)return e;e=e.parent}return null}function l1(t){var e,i=gt;if(Di(s1(t)),Se){let o=xa;fu(new Set);try{mu.includes(t)&&Am(),mu.push(t),Vd(t),e=Rd(t)}finally{Di(i),fu(o),mu.pop()}}else try{Vd(t),e=Rd(t)}finally{Di(i)}return e}function gu(t){var e=l1(t),i=(Wr||(t.f&256)!==0)&&t.deps!==null?4096:1024;Vo(t,i),t.equals(e)||(t.v=e,t.wv=el())}var Ca="font-weight: bold",ka="font-weight: normal";function jm(t,e,i){Se?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;Bi(e,"stack",{value:n.join(`
25
+ `)}),Bi(e,"name",{value:`${t}Error`})}return e}var $a=new Set,as=new Map;function cu(t){$a=t}function xi(t,e){var i={f:0,v:t,reactions:null,equals:Ed,rv:0,wv:0};return xe&&Er&&(i.created=e??Ur("CreatedAt"),i.debug=null),i}function Y(t){return o1(xi(t))}function Wr(t,e=!1){let i=xi(t);return e||(i.equals=rs),Ir&&St!==null&&St.l!==null&&(St.l.s??=[]).push(i),i}function o1(t){return Pt!==null&&!wn&&(Pt.f&2)!==0&&(cr===null?qm([t]):cr.push(t)),t}function N(t,e){return Pt!==null&&!wn&&Pr()&&(Pt.f&18)!==0&&(cr===null||!cr.includes(t))&&Fm(),ss(t,e)}function ss(t,e){if(!t.equals(e)){var i=t.v;if(xa?as.set(t,e):as.set(t,i),t.v=e,t.wv=Gs(),xe&&Er&&(t.updated=Ur("UpdatedAt"),ht!=null&&(t.trace_need_increase=!0,t.trace_v??=i)),Wm(t,2048),Pr()&&ht!==null&&(ht.f&1024)!==0&&(ht.f&96)===0&&(xn===null?Km([t]):xn.push(t)),xe&&$a.size>0){let o=Array.from($a);for(let n of o)(n.f&1024)!==0&&Vo(n,4096),na(n)&&ls(n);$a.clear()}}return e}function Wm(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===ht)){if(xe&&(d&262144)!==0){$a.add(s);continue}Vo(s,e),(d&1280)!==0&&((d&2)!==0?Wm(s,4096):ds(s))}}}function m(t){var e=2050,i=Pt!==null&&(Pt.f&2)!==0?Pt:null;ht===null||i!==null&&(i.f&256)!==0?e|=256:ht.f|=1048576;let o={ctx:St,deps:null,effects:null,equals:Ed,f:e,fn:t,reactions:null,rv:0,v:null,wv:0,parent:i??ht};return xe&&Er&&(o.created=Ur("CreatedAt")),o}function pr(t){let e=m(t);return e.equals=rs,e}function Pd(t){var e=t.effects;if(e!==null){t.effects=null;for(var i=0;i<e.length;i+=1)Hi(e[i])}}var uu=[];function n1(t){for(var e=t.parent;e!==null;){if((e.f&2)===0)return e;e=e.parent}return null}function r1(t){var e,i=ht;if(Oi(n1(t)),xe){let o=$a;cu(new Set);try{uu.includes(t)&&Im(),uu.push(t),Pd(t),e=Ad(t)}finally{Oi(i),cu(o),uu.pop()}}else try{Pd(t),e=Ad(t)}finally{Oi(i)}return e}function fu(t){var e=r1(t),i=(qr||(t.f&256)!==0)&&t.deps!==null?4096:1024;Vo(t,i),t.equals(e)||(t.v=e,t.wv=Gs())}var wa="font-weight: bold",Sa="font-weight: normal";function Qm(t,e,i){xe?console.warn(`%c[svelte] hydration_attribute_changed
26
26
  %cThe \`${t}\` attribute on \`${e}\` changed its value between server and client renders. The client value, \`${i}\`, will be ignored in favour of the server value
27
- https://svelte.dev/e/hydration_attribute_changed`,Ca,ka):console.warn("https://svelte.dev/e/hydration_attribute_changed")}function Zm(t){Se?console.warn(`%c[svelte] hydration_html_changed
27
+ https://svelte.dev/e/hydration_attribute_changed`,wa,Sa):console.warn("https://svelte.dev/e/hydration_attribute_changed")}function Gm(t){xe?console.warn(`%c[svelte] hydration_html_changed
28
28
  %c${t?`The value of an \`{@html ...}\` block ${t} changed between server and client renders. The client value will be ignored in favour of the server value`:"The value of an `{@html ...}` block changed between server and client renders. The client value will be ignored in favour of the server value"}
29
- https://svelte.dev/e/hydration_html_changed`,Ca,ka):console.warn("https://svelte.dev/e/hydration_html_changed")}function Ta(t){Se?console.warn(`%c[svelte] hydration_mismatch
29
+ https://svelte.dev/e/hydration_html_changed`,wa,Sa):console.warn("https://svelte.dev/e/hydration_html_changed")}function Ca(t){xe?console.warn(`%c[svelte] hydration_mismatch
30
30
  %c${t?`Hydration failed because the initial UI does not match what was rendered on the server. The error occurred near ${t}`:"Hydration failed because the initial UI does not match what was rendered on the server"}
31
- https://svelte.dev/e/hydration_mismatch`,Ca,ka):console.warn("https://svelte.dev/e/hydration_mismatch")}function Xm(){Se?console.warn(`%c[svelte] lifecycle_double_unmount
31
+ https://svelte.dev/e/hydration_mismatch`,wa,Sa):console.warn("https://svelte.dev/e/hydration_mismatch")}function Ym(){xe?console.warn(`%c[svelte] lifecycle_double_unmount
32
32
  %cTried to unmount a component that was not mounted
33
- https://svelte.dev/e/lifecycle_double_unmount`,Ca,ka):console.warn("https://svelte.dev/e/lifecycle_double_unmount")}function Jm(t,e,i){Se?console.warn(`%c[svelte] ownership_invalid_binding
33
+ https://svelte.dev/e/lifecycle_double_unmount`,wa,Sa):console.warn("https://svelte.dev/e/lifecycle_double_unmount")}function jm(t,e,i){xe?console.warn(`%c[svelte] ownership_invalid_binding
34
34
  %c${t} passed a value to ${e} with \`bind:\`, but the value is owned by ${i}. Consider creating a binding between ${i} and ${t}
35
- https://svelte.dev/e/ownership_invalid_binding`,Ca,ka):console.warn("https://svelte.dev/e/ownership_invalid_binding")}function hu(t,e){Se?console.warn(`%c[svelte] ownership_invalid_mutation
35
+ https://svelte.dev/e/ownership_invalid_binding`,wa,Sa):console.warn("https://svelte.dev/e/ownership_invalid_binding")}function mu(t,e){xe?console.warn(`%c[svelte] ownership_invalid_mutation
36
36
  %c${t?`${t} mutated a value owned by ${e}. This is strongly discouraged. Consider passing values to child components with \`bind:\`, or use a callback instead`:"Mutating a value outside the component that created it is strongly discouraged. Consider passing values to child components with `bind:`, or use a callback instead"}
37
- https://svelte.dev/e/ownership_invalid_mutation`,Ca,ka):console.warn("https://svelte.dev/e/ownership_invalid_mutation")}function Nd(t){Se?console.warn(`%c[svelte] state_proxy_equality_mismatch
37
+ https://svelte.dev/e/ownership_invalid_mutation`,wa,Sa):console.warn("https://svelte.dev/e/ownership_invalid_mutation")}function Md(t){xe?console.warn(`%c[svelte] state_proxy_equality_mismatch
38
38
  %cReactive \`$state(...)\` proxies and the values they proxy have different identities. Because of this, comparisons with \`${t}\` will produce unexpected results
39
- https://svelte.dev/e/state_proxy_equality_mismatch`,Ca,ka):console.warn("https://svelte.dev/e/state_proxy_equality_mismatch")}var Qe=!1;function Oi(t){Qe=t}var ct;function ii(t){if(t===null)throw Ta(),Or;return ct=t}function bi(){return ii(lo(ct))}function g(t){if(Qe){if(lo(ct)!==null)throw Ta(),Or;ct=t}}function me(t=1){if(Qe){for(var e=t,i=ct;e--;)i=lo(i);ct=i}}function fs(){for(var t=0,e=ct;;){if(e.nodeType===8){var i=e.data;if(i===ya){if(t===0)return e;t-=1}else(i===oa||i===$a)&&(t+=1)}var o=lo(e);e.remove(),e=o}}function de(t,e=null,i){var o=null;if(Se&&Ar&&(o=Ur("CreatedAt")),typeof t!="object"||t===null||ho in t)return t;let n=Fr(t);if(n!==su&&n!==Tm)return t;var a=new Map,s=sr(t),d=wi(0);s&&a.set("length",wi(t.length,o));var l;if(Se)if(l={parent:e,owners:null},i){let c=i.v?.[Hr]?.owners;l.owners=c?new Set(c):null}else l.owners=e===null?St!==null?new Set([St.function]):null:new Set;return new Proxy(t,{defineProperty(c,u,_){(!("value"in _)||_.configurable===!1||_.enumerable===!1||_.writable===!1)&&Fm();var f=a.get(u);return f===void 0?(f=wi(_.value,o),a.set(u,f)):D(f,de(_.value,l)),!0},deleteProperty(c,u){var _=a.get(u);if(_===void 0)u in c&&a.set(u,wi(fi,o));else{if(s&&typeof u=="string"){var f=a.get("length"),$=Number(u);Number.isInteger($)&&$<f.v&&D(f,$)}D(_,fi),ev(d)}return!0},get(c,u,_){if(Se&&u===Hr)return l;if(u===ho)return t;var f=a.get(u),$=u in c;if(f===void 0&&(!$||wn(c,u)?.writable)&&(f=wi(de($?c[u]:fi,l),o),a.set(u,f)),f!==void 0){var x=r(f);if(Se){var w=x?.[Hr];w&&w?.parent!==l&&_u(l,w)}return x===fi?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 $=a.get(u),x=$?.v;if($!==void 0&&x!==fi)return{enumerable:!0,configurable:!0,value:x,writable:!0}}return _},has(c,u){if(Se&&u===Hr||u===ho)return!0;var _=a.get(u),f=_!==void 0&&_.v!==fi||Reflect.has(c,u);if(_!==void 0||gt!==null&&(!f||wn(c,u)?.writable)){_===void 0&&(_=wi(f?de(c[u],l):fi,o),a.set(u,_));var $=r(_);if($===fi)return!1}return f},set(c,u,_,f){var $=a.get(u),x=u in c;if(s&&u==="length")for(var w=_;w<$.v;w+=1){var S=a.get(w+"");S!==void 0?D(S,fi):w in c&&(S=wi(fi,o),a.set(w+"",S))}if($===void 0?(!x||wn(c,u)?.writable)&&($=wi(void 0,o),D($,de(_,l)),a.set(u,$)):(x=$.v!==fi,D($,de(_,l))),Se){var I=_?.[Hr];I&&I?.parent!==l&&_u(l,I),tv(l)}var P=Reflect.getOwnPropertyDescriptor(c,u);if(P?.set&&P.set.call(f,_),!x){if(s&&typeof u=="string"){var M=a.get("length"),L=Number(u);Number.isInteger(L)&&L>=M.v&&D(M,L+1)}ev(d)}return!0},ownKeys(c){r(d);var u=Reflect.ownKeys(c).filter($=>{var x=a.get($);return x===void 0||x.v!==fi});for(var[_,f]of a)f.v!==fi&&!(_ in c)&&u.push(_);return u},setPrototypeOf(){Um()}})}function ev(t,e=1){D(t,t.v+e)}function Dd(t){return t!==null&&typeof t=="object"&&ho in t?t[ho]:t}function iv(){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(Dd(this[l])===a){Nd("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(Dd(this[l])===a){Nd("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(Dd(this[l])===a){Nd("array.includes(...)");break}}return d},Array.__svelte_cleanup=()=>{t.indexOf=i,t.lastIndexOf=o,t.includes=n}}var Ia,ov,tl,nv,rv;function Bd(){if(Ia===void 0){Ia=window,ov=document,tl=/Firefox/.test(navigator.userAgent);var t=Element.prototype,e=Node.prototype;nv=wn(e,"firstChild").get,rv=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,Se&&(t.__svelte_meta=null,iv())}}function Ro(t=""){return document.createTextNode(t)}function oi(t){return nv.call(t)}function lo(t){return rv.call(t)}function h(t,e){if(!Qe)return oi(t);var i=oi(ct);if(i===null)i=ct.appendChild(Ro());else if(e&&i.nodeType!==3){var o=Ro();return i?.before(o),ii(o),o}return ii(i),i}function le(t,e){if(!Qe){var i=oi(t);return i.nodeType===8&&i.data===""?lo(i):i}if(e&&ct?.nodeType!==3){var o=Ro();return ct?.before(o),ii(o),o}return ct}function E(t,e=1,i=!1){let o=Qe?ct:t;for(var n;e--;)n=o,o=lo(o);if(!Qe)return o;var a=o?.nodeType;if(i&&a!==3){var s=Ro();return o===null?n?.after(s):o.before(s),ii(s),s}return ii(o),o}function il(t){t.textContent=""}var av=new WeakSet,Od=!1,rl=!1,ol=null,Ea=!1,Sa=!1;function yu(t){Sa=t}var nl=[],Fd=[],Et=null,Cn=!1;function Xi(t){Et=t}var gt=null;function Di(t){gt=t}var lr=null;function Gm(t){lr=t}var No=null,Tn=0,Sn=null;function Ym(t){Sn=t}var uv=1,Ud=0,Wr=!1,Js=null;function el(){return++uv}function aa(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&&gt!==null&&!Wr,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],aa(a)&&gu(a),a.wv>t.wv)return!0}(!o||gt!==null&&!Wr)&&Vo(t,1024)}return!1}function sv(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 Od=!1,t}function lv(t){return(t.f&16384)===0&&(t.parent===null||(t.parent.f&128)===0)}function vs(t,e,i,o){if(Od){if(i===null&&(Od=!1),lv(e))throw t;return}if(i!==null&&(Od=!0),!Se||o===null||!(t instanceof Error)||av.has(t)){sv(t,e);return}av.add(t);let n=[],a=e.fn?.name;a&&n.push(a);let s=o;for(;s!==null;){if(Se){var d=s.function?.[ti];if(d){let u=d.split("/").pop();n.push(u)}}s=s.p}let l=tl?" ":" ";Ni(t,"message",{value:t.message+`
39
+ https://svelte.dev/e/state_proxy_equality_mismatch`,wa,Sa):console.warn("https://svelte.dev/e/state_proxy_equality_mismatch")}var Qe=!1;function Fi(t){Qe=t}var dt;function ii(t){if(t===null)throw Ca(),Or;return dt=t}function gi(){return ii(ao(dt))}function g(t){if(Qe){if(ao(dt)!==null)throw Ca(),Or;dt=t}}function fe(t=1){if(Qe){for(var e=t,i=dt;e--;)i=ao(i);dt=i}}function cs(){for(var t=0,e=dt;;){if(e.nodeType===8){var i=e.data;if(i===ba){if(t===0)return e;t-=1}else(i===ta||i===_a)&&(t+=1)}var o=ao(e);e.remove(),e=o}}function de(t,e=null,i){var o=null;if(xe&&Er&&(o=Ur("CreatedAt")),typeof t!="object"||t===null||vo in t)return t;let n=Fr(t);if(n!==nu&&n!==Sm)return t;var a=new Map,s=dr(t),d=xi(0);s&&a.set("length",xi(t.length,o));var l;if(xe)if(l={parent:e,owners:null},i){let c=i.v?.[Hr]?.owners;l.owners=c?new Set(c):null}else l.owners=e===null?St!==null?new Set([St.function]):null:new Set;return new Proxy(t,{defineProperty(c,u,_){(!("value"in _)||_.configurable===!1||_.enumerable===!1||_.writable===!1)&&Bm();var f=a.get(u);return f===void 0?(f=xi(_.value,o),a.set(u,f)):N(f,de(_.value,l)),!0},deleteProperty(c,u){var _=a.get(u);if(_===void 0)u in c&&a.set(u,xi(fi,o));else{if(s&&typeof u=="string"){var f=a.get("length"),$=Number(u);Number.isInteger($)&&$<f.v&&N(f,$)}N(_,fi),Zm(d)}return!0},get(c,u,_){if(xe&&u===Hr)return l;if(u===vo)return t;var f=a.get(u),$=u in c;if(f===void 0&&(!$||yn(c,u)?.writable)&&(f=xi(de($?c[u]:fi,l),o),a.set(u,f)),f!==void 0){var x=r(f);if(xe){var w=x?.[Hr];w&&w?.parent!==l&&vu(l,w)}return x===fi?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 $=a.get(u),x=$?.v;if($!==void 0&&x!==fi)return{enumerable:!0,configurable:!0,value:x,writable:!0}}return _},has(c,u){if(xe&&u===Hr||u===vo)return!0;var _=a.get(u),f=_!==void 0&&_.v!==fi||Reflect.has(c,u);if(_!==void 0||ht!==null&&(!f||yn(c,u)?.writable)){_===void 0&&(_=xi(f?de(c[u],l):fi,o),a.set(u,_));var $=r(_);if($===fi)return!1}return f},set(c,u,_,f){var $=a.get(u),x=u in c;if(s&&u==="length")for(var w=_;w<$.v;w+=1){var S=a.get(w+"");S!==void 0?N(S,fi):w in c&&(S=xi(fi,o),a.set(w+"",S))}if($===void 0?(!x||yn(c,u)?.writable)&&($=xi(void 0,o),N($,de(_,l)),a.set(u,$)):(x=$.v!==fi,N($,de(_,l))),xe){var I=_?.[Hr];I&&I?.parent!==l&&vu(l,I),Xm(l)}var M=Reflect.getOwnPropertyDescriptor(c,u);if(M?.set&&M.set.call(f,_),!x){if(s&&typeof u=="string"){var P=a.get("length"),A=Number(u);Number.isInteger(A)&&A>=P.v&&N(P,A+1)}Zm(d)}return!0},ownKeys(c){r(d);var u=Reflect.ownKeys(c).filter($=>{var x=a.get($);return x===void 0||x.v!==fi});for(var[_,f]of a)f.v!==fi&&!(_ in c)&&u.push(_);return u},setPrototypeOf(){Om()}})}function Zm(t,e=1){N(t,t.v+e)}function Ld(t){return t!==null&&typeof t=="object"&&vo in t?t[vo]:t}function Jm(){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(Ld(this[l])===a){Md("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(Ld(this[l])===a){Md("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(Ld(this[l])===a){Md("array.includes(...)");break}}return d},Array.__svelte_cleanup=()=>{t.indexOf=i,t.lastIndexOf=o,t.includes=n}}var ka,ev,Ys,tv,iv;function Vd(){if(ka===void 0){ka=window,ev=document,Ys=/Firefox/.test(navigator.userAgent);var t=Element.prototype,e=Node.prototype;tv=yn(e,"firstChild").get,iv=yn(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,xe&&(t.__svelte_meta=null,Jm())}}function Ro(t=""){return document.createTextNode(t)}function oi(t){return tv.call(t)}function ao(t){return iv.call(t)}function h(t,e){if(!Qe)return oi(t);var i=oi(dt);if(i===null)i=dt.appendChild(Ro());else if(e&&i.nodeType!==3){var o=Ro();return i?.before(o),ii(o),o}return ii(i),i}function le(t,e){if(!Qe){var i=oi(t);return i.nodeType===8&&i.data===""?ao(i):i}if(e&&dt?.nodeType!==3){var o=Ro();return dt?.before(o),ii(o),o}return dt}function E(t,e=1,i=!1){let o=Qe?dt:t;for(var n;e--;)n=o,o=ao(o);if(!Qe)return o;var a=o?.nodeType;if(i&&a!==3){var s=Ro();return o===null?n?.after(s):o.before(s),ii(s),s}return ii(o),o}function js(t){t.textContent=""}var ov=new WeakSet,Rd=!1,Js=!1,Zs=null,Ta=!1,xa=!1;function _u(t){xa=t}var Xs=[],Nd=[],Pt=null,wn=!1;function ji(t){Pt=t}var ht=null;function Oi(t){ht=t}var cr=null;function qm(t){cr=t}var Do=null,Cn=0,xn=null;function Km(t){xn=t}var lv=1,Bd=0,qr=!1,Qs=null;function Gs(){return++lv}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&&ht!==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)&&fu(a),a.wv>t.wv)return!0}(!o||ht!==null&&!qr)&&Vo(t,1024)}return!1}function nv(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 Rd=!1,t}function rv(t){return(t.f&16384)===0&&(t.parent===null||(t.parent.f&128)===0)}function ps(t,e,i,o){if(Rd){if(i===null&&(Rd=!1),rv(e))throw t;return}if(i!==null&&(Rd=!0),!xe||o===null||!(t instanceof Error)||ov.has(t)){nv(t,e);return}ov.add(t);let n=[],a=e.fn?.name;a&&n.push(a);let s=o;for(;s!==null;){if(xe){var d=s.function?.[ti];if(d){let u=d.split("/").pop();n.push(u)}}s=s.p}let l=Ys?" ":" ";Bi(t,"message",{value:t.message+`
40
40
  ${n.map(u=>`
41
41
  ${l}in ${u}`).join("")}
42
- `}),Ni(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 $=u[f];$.includes("svelte/src/internal")||_.push($)}Ni(t,"stack",{value:_.join(`
44
- `)})}if(sv(t,e),lv(e))throw t}function pv(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?pv(a,e,!1):e===a&&(i?Vo(a,2048):(a.f&1024)!==0&&Vo(a,4096),ps(a))}}function Rd(t){var e=No,i=Tn,o=Sn,n=Et,a=Wr,s=lr,d=St,l=Cn,c=t.f;No=null,Tn=0,Sn=null,Wr=(c&256)!==0&&(Cn||!Ea||Et===null),Et=(c&96)===0?t:null,lr=null,sl(t.ctx),Cn=!1,Ud++;try{var u=(0,t.fn)(),_=t.deps;if(No!==null){var f;if(al(t,Tn),_!==null&&Tn>0)for(_.length=Tn+No.length,f=0;f<No.length;f++)_[Tn+f]=No[f];else t.deps=_=No;if(!Wr)for(f=Tn;f<_.length;f++)(_[f].reactions??=[]).push(t)}else _!==null&&Tn<_.length&&(al(t,Tn),_.length=Tn);if(Mr()&&Sn!==null&&!Cn&&_!==null&&(t.f&6146)===0)for(f=0;f<Sn.length;f++)pv(Sn[f],t);return n!==null&&(Ud++,Sn!==null&&(o===null?o=Sn:o.push(...Sn))),u}finally{No=e,Tn=i,Sn=o,Et=n,Wr=a,lr=s,sl(d),Cn=l}}function d1(t,e){let i=e.reactions;if(i!==null){var o=km.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&&(No===null||!No.includes(e))&&(Vo(e,4096),(e.f&768)===0&&(e.f^=512),Vd(e),al(e,0))}function al(t,e){var i=t.deps;if(i!==null)for(var o=e;o<i.length;o++)d1(t,i[o])}function us(t){var e=t.f;if((e&16384)===0){Vo(t,1024);var i=gt,o=St,n=Ea;if(gt=t,Ea=!0,Se){var a=Do;ll(t.component_function)}try{(e&16)!==0?fv(t):wu(t),xu(t);var s=Rd(t);t.teardown=typeof s=="function"?s:null,t.wv=uv;var d=t.deps;if(Se&&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=el(),l.trace_need_increase=void 0,l.trace_v=void 0)}Se&&Fd.push(t)}catch(c){vs(c,t,i,o||t.ctx)}finally{Ea=n,gt=i,Se&&ll(a)}}}function dv(){console.error("Last ten effects were: ",Fd.slice(-10).map(t=>t.fn)),Fd=[]}function c1(){try{Rm()}catch(t){if(Se&&Ni(t,"stack",{value:""}),ol!==null)if(Se)try{vs(t,ol,null,null)}catch(e){throw dv(),e}else vs(t,ol,null,null);else throw Se&&dv(),t}}function bu(){var t=Ea;try{var e=0;for(Ea=!0;nl.length>0;){e++>1e3&&c1();var i=nl,o=i.length;nl=[];for(var n=0;n<o;n++){var a=p1(i[n]);u1(a)}}}finally{rl=!1,Ea=t,ol=null,Se&&(Fd=[]),ds.clear()}}function u1(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{aa(o)&&(us(o),o.deps===null&&o.first===null&&o.nodes_start===null&&(o.teardown===null?Su(o):o.fn=null))}catch(n){vs(n,o,null,o.ctx)}}}function ps(t){rl||(rl=!0,queueMicrotask(bu));for(var e=ol=t;e.parent!==null;){e=e.parent;var i=e.f;if((i&96)!==0){if((i&1024)===0)return;e.f^=1024}}nl.push(e)}function p1(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=Et;try{Et=i,aa(i)&&us(i)}catch(c){vs(c,i,null,i.ctx)}finally{Et=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 gs(t){var e;for(t&&(rl=!0,bu(),e=t()),du();nl.length>0;)rl=!0,bu(),du();return e}async function Ji(){await Promise.resolve(),gs()}function r(t){var e=t.f,i=(e&2)!==0;if(Js!==null&&Js.add(t),Et!==null&&!Cn){lr!==null&&lr.includes(t)&&zm();var o=Et.deps;t.rv<Ud&&(t.rv=Ud,No===null&&o!==null&&o[Tn]===t?Tn++:No===null?No=[t]:(!Wr||!No.includes(t))&&No.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,aa(n)&&gu(n)),Se&&Ar&&Xs!==null&&Et!==null&&Xs.reaction===Et){if(t.debug)t.debug();else if(t.created){var s=Xs.entries.get(t);s===void 0&&(s={read:[]},Xs.entries.set(t,s)),s.read.push(Ur("TracedAt"))}}return Sa&&ds.has(t)?ds.get(t):t.v}function ft(t){var e=Cn;try{return Cn=!0,t()}finally{Cn=e}}var f1=-7169;function Vo(t,e){t.f=t.f&f1|e}function qd(t){if(!(typeof t!="object"||!t||t instanceof EventTarget)){if(ho in t)zd(t);else if(!Array.isArray(t))for(let e in t){let i=t[e];typeof i=="object"&&i&&ho in i&&zd(i)}}}function zd(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{zd(t[o],e)}catch{}let i=Fr(t);if(i!==Object.prototype&&i!==Array.prototype&&i!==Map.prototype&&i!==Set.prototype&&i!==Date.prototype){let o=Md(i);for(let n in o){let a=o[n].get;if(a)try{a.call(t)}catch{}}}}}function ku(t){gt===null&&Et===null&&Vm(t),Et!==null&&(Et.f&256)!==0&&gt===null&&Lm(),Sa&&Mm(t)}function m1(t,e){var i=e.last;i===null?e.last=e.first=t:(i.next=t,t.prev=i,e.last=t)}function Pa(t,e,i,o=!0){var n=gt;if(Se)for(;n!==null&&(n.f&262144)!==0;)n=n.parent;var a={ctx:St,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(Se&&(a.component_function=Do),i)try{us(a),a.f|=32768}catch(l){throw Bi(a),l}else e!==null&&ps(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&&m1(a,n),Et!==null&&(Et.f&2)!==0)){var d=Et;(d.effects??=[]).push(a)}return a}function Bo(t){let e=Pa(8,null,!1);return Vo(e,1024),e.teardown=t,e}function He(t){ku("$effect");var e=gt!==null&&(gt.f&32)!==0&&St!==null&&!St.m;if(Se&&Ni(t,"name",{value:"$effect"}),e){var i=St;(i.e??=[]).push({fn:t,effect:gt,reaction:Et})}else{var o=en(t);return o}}function hs(t){return ku("$effect.pre"),Se&&Ni(t,"name",{value:"$effect.pre"}),eo(t)}function Kd(t){let e=Pa(64,t,!0);return()=>{Bi(e)}}function vv(t){let e=Pa(64,t,!0);return(i={})=>new Promise(o=>{i.outro?tn(e,()=>{Bi(e),o(void 0)}):(Bi(e),o(void 0))})}function en(t){return Pa(4,t,!1)}function eo(t){return Pa(8,t,!0)}function C(t,e=[],i=v){let o=e.map(i),n=()=>t(...o.map(r));return Se&&Ni(n,"name",{value:"{expression}"}),Hi(n)}function Hi(t,e=0){return Pa(24|e,t,!0)}function Si(t,e=!0){return Pa(40,t,!0,e)}function xu(t){var e=t.teardown;if(e!==null){let i=Sa,o=Et;yu(!0),Xi(null);try{e.call(null)}finally{yu(i),Xi(o)}}}function wu(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:Bi(i,e),i=o}}function fv(t){for(var e=t.first;e!==null;){var i=e.next;(e.f&32)===0&&Bi(e),e=i}}function Bi(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:lo(o);o.remove(),o=a}i=!0}wu(t,e&&!i),al(t,0),Vo(t,16384);var s=t.transitions;if(s!==null)for(let l of s)l.stop();xu(t);var d=t.parent;d!==null&&d.first!==null&&Su(t),Se&&(t.component_function=null),t.next=t.prev=t.teardown=t.ctx=t.deps=t.fn=t.nodes_start=t.nodes_end=null}function Su(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=[];Qd(t,i,!0),Tu(i,()=>{Bi(t),e&&e()})}function Tu(t,e){var i=t.length;if(i>0){var o=()=>--i||e();for(var n of t)n.out(o)}else e()}function Qd(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;Qd(o,e,a?i:!1),o=n}}}function Kr(t){gv(t,!0)}function gv(t,e){if((t.f&8192)!==0){t.f^=8192,(t.f&1024)===0&&(t.f^=1024),aa(t)&&(Vo(t,2048),ps(t));for(var i=t.first;i!==null;){var o=i.next,n=(i.f&65536)!==0||(i.f&32)!==0;gv(i,n?e:!1),i=o}if(t.transitions!==null)for(let a of t.transitions)(a.is_global||e)&&a.in()}}var v1={},g1=/at (?:.+ \()?(.+):(\d+):(\d+)\)?$/,h1=/@(.+):(\d+):(\d+)$/;function _1(){let t=new Error().stack;if(!t)return null;let e=[];for(let i of t.split(`
45
- `)){let o=g1.exec(i)??h1.exec(i);o&&e.push({file:o[1],line:+o[2],column:+o[3]})}return e}function hv(){let t=_1()?.slice(4);if(!t)return null;for(let e=0;e<t.length;e++){let i=t[e],o=v1[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 Gd=Symbol("ADD_OWNER");function Iu(t,e,i=!1,o=!1){if(t&&!i){let n=Do,a=t[Hr];if(a&&!Eu(a,n)){let s=Pu(a);e&&e[ti]!==n[ti]&&!o&&Jm(n[ti],e[ti],s[ti])}}Yd(t,e,new Set)}function _u(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 Yd(t,e,i){let o=t?.[Hr];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),Gd in t&&t[Gd])eo(()=>{t[Gd](e)});else{var n=Fr(t);if(n===Object.prototype)for(let a in t)if(Object.getOwnPropertyDescriptor(t,a)?.get){let s=fi;eo(()=>{let d=t[a];s!==d&&(s=d,Yd(d,e,i))})}else Yd(t[a],e,i);else if(n===Array.prototype)for(let a=0;a<t.length;a+=1)Yd(t[a],e,i)}}}function Eu(t,e){return t.owners===null?!0:t.owners.has(e)||ti in e&&[...t.owners].some(i=>i[ti]===e[ti])||t.parent!==null&&Eu(t.parent,e)}function Pu(t){return t?.owners?.values().next().value??Pu(t.parent)}var b1=!1;function tv(t){if(b1)return;let e=hv();if(e&&!Eu(t,e)){let i=Pu(t);i[ti]!==e[ti]?hu(e[ti],i[ti]):hu()}}function _s(t){if(Se){let e=new Error(`lifecycle_outside_component
42
+ `}),Bi(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 $=u[f];$.includes("svelte/src/internal")||_.push($)}Bi(t,"stack",{value:_.join(`
44
+ `)})}if(nv(t,e),rv(e))throw t}function dv(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?dv(a,e,!1):e===a&&(i?Vo(a,2048):(a.f&1024)!==0&&Vo(a,4096),ds(a))}}function Ad(t){var e=Do,i=Cn,o=xn,n=Pt,a=qr,s=cr,d=St,l=wn,c=t.f;Do=null,Cn=0,xn=null,qr=(c&256)!==0&&(wn||!Ta||Pt===null),Pt=(c&96)===0?t:null,cr=null,tl(t.ctx),wn=!1,Bd++;try{var u=(0,t.fn)(),_=t.deps;if(Do!==null){var f;if(el(t,Cn),_!==null&&Cn>0)for(_.length=Cn+Do.length,f=0;f<Do.length;f++)_[Cn+f]=Do[f];else t.deps=_=Do;if(!qr)for(f=Cn;f<_.length;f++)(_[f].reactions??=[]).push(t)}else _!==null&&Cn<_.length&&(el(t,Cn),_.length=Cn);if(Pr()&&xn!==null&&!wn&&_!==null&&(t.f&6146)===0)for(f=0;f<xn.length;f++)dv(xn[f],t);return n!==null&&(Bd++,xn!==null&&(o===null?o=xn:o.push(...xn))),u}finally{Do=e,Cn=i,xn=o,Pt=n,qr=a,cr=s,tl(d),wn=l}}function a1(t,e){let i=e.reactions;if(i!==null){var o=wm.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&&(Do===null||!Do.includes(e))&&(Vo(e,4096),(e.f&768)===0&&(e.f^=512),Pd(e),el(e,0))}function el(t,e){var i=t.deps;if(i!==null)for(var o=e;o<i.length;o++)a1(t,i[o])}function ls(t){var e=t.f;if((e&16384)===0){Vo(t,1024);var i=ht,o=St,n=Ta;if(ht=t,Ta=!0,xe){var a=No;il(t.component_function)}try{(e&16)!==0?cv(t):$u(t),bu(t);var s=Ad(t);t.teardown=typeof s=="function"?s:null,t.wv=lv;var d=t.deps;if(xe&&Er&&(t.f&2048)!==0&&d!==null)for(let c=0;c<d.length;c++){var l=d[c];l.trace_need_increase&&(l.wv=Gs(),l.trace_need_increase=void 0,l.trace_v=void 0)}xe&&Nd.push(t)}catch(c){ps(c,t,i,o||t.ctx)}finally{Ta=n,ht=i,xe&&il(a)}}}function av(){console.error("Last ten effects were: ",Nd.slice(-10).map(t=>t.fn)),Nd=[]}function s1(){try{Mm()}catch(t){if(xe&&Bi(t,"stack",{value:""}),Zs!==null)if(xe)try{ps(t,Zs,null,null)}catch(e){throw av(),e}else ps(t,Zs,null,null);else throw xe&&av(),t}}function gu(){var t=Ta;try{var e=0;for(Ta=!0;Xs.length>0;){e++>1e3&&s1();var i=Xs,o=i.length;Xs=[];for(var n=0;n<o;n++){var a=d1(i[n]);l1(a)}}}finally{Js=!1,Ta=t,Zs=null,xe&&(Nd=[]),as.clear()}}function l1(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)&&(ls(o),o.deps===null&&o.first===null&&o.nodes_start===null&&(o.teardown===null?yu(o):o.fn=null))}catch(n){ps(n,o,null,o.ctx)}}}function ds(t){Js||(Js=!0,queueMicrotask(gu));for(var e=Zs=t;e.parent!==null;){e=e.parent;var i=e.f;if((i&96)!==0){if((i&1024)===0)return;e.f^=1024}}Xs.push(e)}function d1(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=Pt;try{Pt=i,na(i)&&ls(i)}catch(c){ps(c,i,null,i.ctx)}finally{Pt=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 fs(t){var e;for(t&&(Js=!0,gu(),e=t()),au();Xs.length>0;)Js=!0,gu(),au();return e}async function Zi(){await Promise.resolve(),fs()}function r(t){var e=t.f,i=(e&2)!==0;if(Qs!==null&&Qs.add(t),Pt!==null&&!wn){cr!==null&&cr.includes(t)&&Hm();var o=Pt.deps;t.rv<Bd&&(t.rv=Bd,Do===null&&o!==null&&o[Cn]===t?Cn++:Do===null?Do=[t]:(!qr||!Do.includes(t))&&Do.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)&&fu(n)),xe&&Er&&Ks!==null&&Pt!==null&&Ks.reaction===Pt){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(Ur("TracedAt"))}}return xa&&as.has(t)?as.get(t):t.v}function ft(t){var e=wn;try{return wn=!0,t()}finally{wn=e}}var c1=-7169;function Vo(t,e){t.f=t.f&c1|e}function Hd(t){if(!(typeof t!="object"||!t||t instanceof EventTarget)){if(vo in t)Od(t);else if(!Array.isArray(t))for(let e in t){let i=t[e];typeof i=="object"&&i&&vo in i&&Od(i)}}}function Od(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{Od(t[o],e)}catch{}let i=Fr(t);if(i!==Object.prototype&&i!==Array.prototype&&i!==Map.prototype&&i!==Set.prototype&&i!==Date.prototype){let o=Id(i);for(let n in o){let a=o[n].get;if(a)try{a.call(t)}catch{}}}}}function wu(t){ht===null&&Pt===null&&Am(t),Pt!==null&&(Pt.f&256)!==0&&ht===null&&Pm(),xa&&Em(t)}function u1(t,e){var i=e.last;i===null?e.last=e.first=t:(i.next=t,t.prev=i,e.last=t)}function Ia(t,e,i,o=!0){var n=ht;if(xe)for(;n!==null&&(n.f&262144)!==0;)n=n.parent;var a={ctx:St,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(xe&&(a.component_function=No),i)try{ls(a),a.f|=32768}catch(l){throw Hi(a),l}else e!==null&&ds(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&&u1(a,n),Pt!==null&&(Pt.f&2)!==0)){var d=Pt;(d.effects??=[]).push(a)}return a}function Bo(t){let e=Ia(8,null,!1);return Vo(e,1024),e.teardown=t,e}function Ue(t){wu("$effect");var e=ht!==null&&(ht.f&32)!==0&&St!==null&&!St.m;if(xe&&Bi(t,"name",{value:"$effect"}),e){var i=St;(i.e??=[]).push({fn:t,effect:ht,reaction:Pt})}else{var o=Zo(t);return o}}function ms(t){return wu("$effect.pre"),xe&&Bi(t,"name",{value:"$effect.pre"}),Xi(t)}function Ud(t){let e=Ia(64,t,!0);return()=>{Hi(e)}}function pv(t){let e=Ia(64,t,!0);return(i={})=>new Promise(o=>{i.outro?Xo(e,()=>{Hi(e),o(void 0)}):(Hi(e),o(void 0))})}function Zo(t){return Ia(4,t,!1)}function Xi(t){return Ia(8,t,!0)}function C(t,e=[],i=m){let o=e.map(i),n=()=>t(...o.map(r));return xe&&Bi(n,"name",{value:"{expression}"}),Ui(n)}function Ui(t,e=0){return Ia(24|e,t,!0)}function wi(t,e=!0){return Ia(40,t,!0,e)}function bu(t){var e=t.teardown;if(e!==null){let i=xa,o=Pt;_u(!0),ji(null);try{e.call(null)}finally{_u(i),ji(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:Hi(i,e),i=o}}function cv(t){for(var e=t.first;e!==null;){var i=e.next;(e.f&32)===0&&Hi(e),e=i}}function Hi(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:ao(o);o.remove(),o=a}i=!0}$u(t,e&&!i),el(t,0),Vo(t,16384);var s=t.transitions;if(s!==null)for(let l of s)l.stop();bu(t);var d=t.parent;d!==null&&d.first!==null&&yu(t),xe&&(t.component_function=null),t.next=t.prev=t.teardown=t.ctx=t.deps=t.fn=t.nodes_start=t.nodes_end=null}function yu(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 Xo(t,e){var i=[];zd(t,i,!0),Su(i,()=>{Hi(t),e&&e()})}function Su(t,e){var i=t.length;if(i>0){var o=()=>--i||e();for(var n of t)n.out(o)}else e()}function zd(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;zd(o,e,a?i:!1),o=n}}}function Kr(t){fv(t,!0)}function fv(t,e){if((t.f&8192)!==0){t.f^=8192,(t.f&1024)===0&&(t.f^=1024),na(t)&&(Vo(t,2048),ds(t));for(var i=t.first;i!==null;){var o=i.next,n=(i.f&65536)!==0||(i.f&32)!==0;fv(i,n?e:!1),i=o}if(t.transitions!==null)for(let a of t.transitions)(a.is_global||e)&&a.in()}}var p1={},f1=/at (?:.+ \()?(.+):(\d+):(\d+)\)?$/,m1=/@(.+):(\d+):(\d+)$/;function v1(){let t=new Error().stack;if(!t)return null;let e=[];for(let i of t.split(`
45
+ `)){let o=f1.exec(i)??m1.exec(i);o&&e.push({file:o[1],line:+o[2],column:+o[3]})}return e}function mv(){let t=v1()?.slice(4);if(!t)return null;for(let e=0;e<t.length;e++){let i=t[e],o=p1[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 Wd=Symbol("ADD_OWNER");function Cu(t,e,i=!1,o=!1){if(t&&!i){let n=No,a=t[Hr];if(a&&!ku(a,n)){let s=Tu(a);e&&e[ti]!==n[ti]&&!o&&jm(n[ti],e[ti],s[ti])}}qd(t,e,new Set)}function vu(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?.[Hr];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),Wd in t&&t[Wd])Xi(()=>{t[Wd](e)});else{var n=Fr(t);if(n===Object.prototype)for(let a in t)if(Object.getOwnPropertyDescriptor(t,a)?.get){let s=fi;Xi(()=>{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 ku(t,e){return t.owners===null?!0:t.owners.has(e)||ti in e&&[...t.owners].some(i=>i[ti]===e[ti])||t.parent!==null&&ku(t.parent,e)}function Tu(t){return t?.owners?.values().next().value??Tu(t.parent)}var g1=!1;function Xm(t){if(g1)return;let e=mv();if(e&&!ku(t,e)){let i=Tu(t);i[ti]!==e[ti]?mu(e[ti],i[ti]):mu()}}function vs(t){if(xe){let e=new Error(`lifecycle_outside_component
46
46
  \`${t}(...)\` can only be used during component initialisation
47
- https://svelte.dev/e/lifecycle_outside_component`);throw e.name="Svelte error",e}else throw new Error("https://svelte.dev/e/lifecycle_outside_component")}var St=null;function sl(t){St=t}var Do=null;function ll(t){Do=t}function bs(t){return Au("getContext").get(t)}function $s(t,e){let i=Au("setContext");return Se&&ft(()=>Iu(e,null,!0)),i.set(t,e),e}function cl(){return Au("getAllContexts")}function F(t,e=!1,i){var o=St={p:St,c:null,d:!1,e:null,m:!1,s:t,x:null,l:null};Pr&&!e&&(St.l={s:null,u:null,r1:[],r2:wi(!1)}),Bo(()=>{o.d=!0}),Se&&(St.function=i,Do=i)}function U(t){let e=St;if(e!==null){t!==void 0&&(e.x=t);let s=e.e;if(s!==null){var i=gt,o=Et;e.e=null;try{for(var n=0;n<s.length;n++){var a=s[n];Di(a.effect),Xi(a.reaction),en(a.fn)}}finally{Di(i),Xi(o)}}St=e.p,Se&&(Do=e.p?.function??null),e.m=!0}return t||{}}function Mr(){return!Pr||St!==null&&St.l===null}function Au(t){return St===null&&_s(t),St.c??=new Map(y1(St)||void 0)}function y1(t){let e=t.p;for(;e!==null;){let i=e.c;if(i!==null)return i;e=e.p}return null}var x1=/\r/g;function _v(t){t=t.replace(x1,"");let e=5381,i=t.length;for(;i--;)e=(e<<5)-e^t.charCodeAt(i);return(e>>>0).toString(36)}function bv(t){return t.endsWith("capture")&&t!=="gotpointercapture"&&t!=="lostpointercapture"}var w1=["beforeinput","click","change","dblclick","contextmenu","focusin","focusout","input","keydown","keyup","mousedown","mousemove","mouseout","mouseover","mouseup","pointerdown","pointermove","pointerout","pointerover","pointerup","touchend","touchmove","touchstart"];function $v(t){return w1.includes(t)}var S1=["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 C1={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 yv(t){return t=t.toLowerCase(),C1[t]??t}var Nw=[...S1,"formNoValidate","isMap","noModule","playsInline","readOnly","value","volume","defaultValue","defaultChecked","srcObject","noValidate","allowFullscreen","disablePictureInPicture","disableRemotePlayback"];var k1=["touchstart","touchmove"];function xv(t){return k1.includes(t)}var T1=["textarea","script","style","title"];function wv(t){return T1.includes(t)}function Mu(t){return t?.replace(/\//g,"/\u200B")}var Sv=new Map;function Cv(t,e){var i=Sv.get(t);i||(i=new Set,Sv.set(t,i)),i.add(e)}function Lu(t,e){if(e){let i=document.body;t.autofocus=!0,Ao(()=>{document.activeElement===i&&t.focus()})}}function ul(t){var e=Et,i=gt;Xi(null),Di(null);try{return t()}finally{Xi(e),Di(i)}}var Vu=new Set,jd=new Set;function Aa(t){if(!Qe)return;t.onload&&t.removeAttribute("onload"),t.onerror&&t.removeAttribute("onerror");let e=t.__e;e!==void 0&&(t.__e=void 0,queueMicrotask(()=>{t.isConnected&&t.dispatchEvent(e)}))}function Ru(t,e,i,o={}){function n(a){if(o.capture||ys.call(e,a),!a.cancelBubble)return ul(()=>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 ht(t,e,i,o,n){var a={capture:o,passive:n},s=Ru(t,e,i,a);(e===document.body||e===window||e===document)&&Bo(()=>{e.removeEventListener(t,s,a)})}function it(t){for(var e=0;e<t.length;e++)Vu.add(t[e]);for(var i of jd)i(t)}function ys(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){Ni(t,"currentTarget",{configurable:!0,get(){return a||i}});var u=Et,_=gt;Xi(null),Di(null);try{for(var f,$=[];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(P){f?$.push(P):f=P}if(t.cancelBubble||x===e||x===null)break;a=x}if(f){for(let P of $)queueMicrotask(()=>{throw P});throw f}}finally{t.__root=e,delete t.currentTarget,Xi(u),Di(_)}}}var E1;function kv(){E1=void 0}function xs(t){var e=document.createElement("template");return e.innerHTML=t,e.content}function to(t,e){var i=gt;i.nodes_start===null&&(i.nodes_start=t,i.nodes_end=e)}function A(t,e){var i=(e&1)!==0,o=(e&2)!==0,n,a=!t.startsWith("<!>");return()=>{if(Qe)return to(ct,null),ct;n===void 0&&(n=xs(a?t:"<!>"+t),i||(n=oi(n)));var s=o||tl?document.importNode(n,!0):n.cloneNode(!0);if(i){var d=oi(s),l=s.lastChild;to(d,l)}else to(s,s);return s}}function ve(t,e,i="svg"){var o=!t.startsWith("<!>"),n=(e&1)!==0,a=`<${i}>${o?t:"<!>"+t}</${i}>`,s;return()=>{if(Qe)return to(ct,null),ct;if(!s){var d=xs(a),l=oi(d);if(n)for(s=document.createDocumentFragment();oi(l);)s.appendChild(oi(l));else s=oi(l)}var c=s.cloneNode(!0);if(n){var u=oi(c),_=c.lastChild;to(u,_)}else to(c,c);return c}}function Kn(t=""){if(!Qe){var e=Ro(t+"");return to(e,e),e}var i=ct;return i.nodeType!==3&&(i.before(i=Ro()),ii(i)),to(i,i),i}function De(){if(Qe)return to(ct,null),ct;var t=document.createDocumentFragment(),e=document.createComment(""),i=Ro();return t.append(e,i),to(e,i),t}function b(t,e){if(Qe){gt.nodes_end=ct,bi();return}t!==null&&t.before(e)}var pl=!0;function Zd(t){pl=t}function ue(t,e){var i=e==null?"":typeof e=="object"?e+"":e;i!==(t.__t??=t.nodeValue)&&(t.__t=i,t.nodeValue=i+"")}function Qr(t,e){return Iv(t,e)}function Du(t,e){Bd(),e.intro=e.intro??!1;let i=e.target,o=Qe,n=ct;try{for(var a=oi(i);a&&(a.nodeType!==8||a.data!==oa);)a=lo(a);if(!a)throw Or;Oi(!0),ii(a),bi();let s=Iv(t,{...e,anchor:a});if(ct===null||ct.nodeType!==8||ct.data!==ya)throw Ta(),Or;return Oi(!1),s}catch(s){if(s===Or)return e.recover===!1&&Nm(),Bd(),il(i),Oi(!1),Qr(t,e);throw s}finally{Oi(o),ii(n),kv()}}var ws=new Map;function Iv(t,{target:e,anchor:i,props:o={},events:n,context:a,intro:s=!0}){Bd();var d=new Set,l=_=>{for(var f=0;f<_.length;f++){var $=_[f];if(!d.has($)){d.add($);var x=xv($);e.addEventListener($,ys,{passive:x});var w=ws.get($);w===void 0?(document.addEventListener($,ys,{passive:x}),ws.set($,1)):ws.set($,w+1)}}};l(js(Vu)),jd.add(l);var c=void 0,u=vv(()=>{var _=i??e.appendChild(Ro());return Si(()=>{if(a){F({});var f=St;f.c=a}n&&(o.$$events=n),Qe&&to(_,null),pl=s,c=t(_,o)||{},pl=!0,Qe&&(gt.nodes_end=ct),a&&U()}),()=>{for(var f of d){e.removeEventListener(f,ys);var $=ws.get(f);--$===0?(document.removeEventListener(f,ys),ws.delete(f)):ws.set(f,$)}jd.delete(l),_!==i&&_.parentNode?.removeChild(_)}});return Nu.set(c,u),c}var Nu=new WeakMap;function Ma(t,e){let i=Nu.get(t);return i?(Nu.delete(t),i(e)):(Se&&Xm(),Promise.resolve())}function V(t,e,[i,o]=[0,0]){Qe&&i===0&&bi();var n=t,a=null,s=null,d=fi,l=i>0?65536:0,c=!1;let u=(f,$=!0)=>{c=!0,_($,f)},_=(f,$)=>{if(d===(d=f))return;let x=!1;if(Qe&&o!==-1){if(i===0){let S=n.data;S===oa?o=0:S===$a?o=1/0:(o=parseInt(S.substring(1)),o!==o&&(o=d?1/0:-1))}let w=o>i;!!d===w&&(n=fs(),ii(n),Oi(!1),x=!0,o=-1)}d?(a?Kr(a):$&&(a=Si(()=>$(n))),s&&tn(s,()=>{s=null})):(s?Kr(s):$&&(s=Si(()=>$(n,[i+1,o]))),a&&tn(a,()=>{a=null})),x&&Oi(!0)};Hi(()=>{c=!1,e(u),c||_(null,null)},l),Qe&&(n=ct)}function La(t,e,i){Qe&&bi();var o=t,n=fi,a,s=Mr()?Pm:ss;Hi(()=>{s(n,n=e())&&(a&&tn(a),a=Si(()=>i(o)))}),Qe&&(o=ct)}var la=null;function Hu(t){la=t}function fl(t,e){return e}function L1(t,e,i,o){for(var n=[],a=e.length,s=0;s<a;s++)Qd(e[s].e,n,!0);var d=a>0&&n.length===0&&i!==null;if(d){var l=i.parentNode;il(l),l.append(i),o.clear(),sa(t,e[0].prev,e[a-1].next)}Tu(n,()=>{for(var c=0;c<a;c++){var u=e[c];d||(o.delete(u.k),sa(t,u.prev,u.next)),Bi(u.e,!d)}})}function ai(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=Qe?ii(oi(c)):c.appendChild(Ro())}Qe&&bi();var u=null,_=!1,f=cr(()=>{var $=i();return sr($)?$:$==null?[]:js($)});Hi(()=>{var $=r(f),x=$.length;if(_&&x===0)return;_=x===0;let w=!1;if(Qe){var S=s.data===$a;S!==(x===0)&&(s=fs(),ii(s),Oi(!1),w=!0)}if(Qe){for(var I=null,P,M=0;M<x;M++){if(ct.nodeType===8&&ct.data===ya){s=ct,w=!0,Oi(!1);break}var L=$[M],T=o(L,M);P=Av(ct,d,I,null,L,T,M,n,e,i),d.items.set(T,P),I=P}x>0&&ii(fs())}Qe||V1($,d,s,n,e,o,i),a!==null&&(x===0?u?Kr(u):u=Si(()=>a(s)):u!==null&&tn(u,()=>{u=null})),w&&Oi(!0),r(f)}),Qe&&(s=ct)}function V1(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=_,$,x=null,w,S=[],I=[],P,M,L,T;if(d)for(T=0;T<c;T+=1)P=t[T],M=a(P,T),L=u.get(M),L!==void 0&&(L.a?.measure(),(w??=new Set).add(L));for(T=0;T<c;T+=1){if(P=t[T],M=a(P,T),L=u.get(M),L===void 0){var B=f?f.e.nodes_start:i;x=Av(B,e,x,x===null?e.first:x.next,P,M,T,o,n,s),u.set(M,x),S=[],I=[],f=x.next;continue}if(l&&R1(L,P,T,n),(L.e.f&8192)!==0&&(Kr(L.e),d&&(L.a?.unfix(),(w??=new Set).delete(L))),L!==f){if($!==void 0&&$.has(L)){if(S.length<I.length){var K=I[0],Q;x=K.prev;var Y=S[0],ae=S[S.length-1];for(Q=0;Q<S.length;Q+=1)Ev(S[Q],K,i);for(Q=0;Q<I.length;Q+=1)$.delete(I[Q]);sa(e,Y.prev,ae.next),sa(e,x,Y),sa(e,ae,K),f=K,x=ae,T-=1,S=[],I=[]}else $.delete(L),Ev(L,f,i),sa(e,L.prev,L.next),sa(e,L,x===null?e.first:x.next),sa(e,x,L),x=L;continue}for(S=[],I=[];f!==null&&f.k!==M;)(f.e.f&8192)===0&&($??=new Set).add(f),I.push(f),f=f.next;if(f===null)continue;L=f}S.push(L),x=L,f=L.next}if(f!==null||$!==void 0){for(var se=$===void 0?[]:js($);f!==null;)(f.e.f&8192)===0&&se.push(f),f=f.next;var ee=se.length;if(ee>0){var ge=(n&4)!==0&&c===0?i:null;if(d){for(T=0;T<ee;T+=1)se[T].a?.measure();for(T=0;T<ee;T+=1)se[T].a?.fix()}L1(e,se,ge,u)}}d&&Ao(()=>{if(w!==void 0)for(L of w)L.a?.apply()}),gt.first=e.first&&e.first.e,gt.last=x&&x.e}function R1(t,e,i,o){(o&1)!==0&&cs(t.v,e),(o&2)!==0?cs(t.i,i):t.i=i}function Av(t,e,i,o,n,a,s,d,l,c){var u=la,_=(l&1)!==0,f=(l&16)===0,$=_?f?qr(n):wi(n):n,x=(l&2)===0?s:wi(s);Se&&_&&($.debug=()=>{var S=typeof x=="number"?s:x.v;c()[S]});var w={i:x,v:$,k:a,a:null,e:null,prev:i,next:o};la=w;try{return w.e=Si(()=>d(t,$,x,c),Qe),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{la=u}}function Ev(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=lo(a);n.before(a),a=s}}function sa(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 N1(t,e,i){if(!e||e===_v(String(i??"")))return;let o,n=t.__svelte_meta?.loc;n?o=`near ${n.file}:${n.line}:${n.column}`:Do?.[ti]&&(o=`in ${Do[ti]}`),Zm(Mu(o))}function ml(t,e,i,o,n){var a=t,s="",d;Hi(()=>{if(s===(s=e()??"")){Qe&&bi();return}d!==void 0&&(Bi(d),d=void 0),s!==""&&(d=Si(()=>{if(Qe){for(var l=ct.data,c=bi(),u=c;c!==null&&(c.nodeType!==8||c.data!=="");)u=c,c=lo(c);if(c===null)throw Ta(),Or;Se&&!n&&N1(c.parentNode,l,s),to(ct,u),a=ii(c);return}var _=s+"";i?_=`<svg>${_}</svg>`:o&&(_=`<math>${_}</math>`);var f=xs(_);if((i||o)&&(f=oi(f)),to(oi(f),f.lastChild),i||o)for(;oi(f);)a.before(oi(f));else a.before(f)}))})}function pe(t,e,...i){var o=t,n=te,a;Hi(()=>{n!==(n=e())&&(a&&(Bi(a),a=null),Se&&n==null&&Dm(),a=Si(()=>n(o,...i)))},65536),Qe&&(o=ct)}function si(t,e,i){Qe&&bi();var o=t,n,a;Hi(()=>{n!==(n=e())&&(a&&(tn(a),a=null),n&&(a=Si(()=>i(o,n))))},65536),Qe&&(o=ct)}function vl(t,e,i,o,n,a){let s=Qe;Qe&&bi();var d=Se&&a&&St?.function[ti],l,c,u=null;Qe&&ct.nodeType===1&&(u=ct,bi());var _=Qe?ct:t,f,$=la;Hi(()=>{let x=e()||null;var w=n?n():i||x==="svg"?nu:null;if(x!==l){var S=la;Hu($),f&&(x===null?tn(f,()=>{f=null,c=null}):x===c?Kr(f):(Bi(f),Zd(!1))),x&&x!==c&&(f=Si(()=>{if(u=Qe?u:w?document.createElementNS(w,x):document.createElement(x),Se&&a&&(u.__svelte_meta={loc:{file:d,line:a[0],column:a[1]}}),to(u,u),o){Qe&&wv(x)&&u.append(document.createComment(""));var I=Qe?oi(u):u.appendChild(Ro());Qe&&(I===null?Oi(!1):ii(I)),o(u,I)}gt.nodes_end=u,_.before(u)})),l=x,l&&(c=l),Zd(!0),Hu(S)}},65536),s&&(Oi(!0),ii(_))}var Uu;function Mv(t){return Uu=t.target,new Fu(t)}var Fu=class{#t;#e;constructor(e){var i=new Map,o=(a,s)=>{var d=qr(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===Ys?!0:(r(i.get(s)??o(s,Reflect.get(a,s))),Reflect.has(a,s))},set(a,s,d){return D(i.get(s)??o(s,d),d),Reflect.set(a,s,d)}});this.#e=(e.hydrate?Du:Qr)(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)&&gs(),this.#t=n.$$events;for(let a of Object.keys(this.#e))a==="$set"||a==="$destroy"||a==="$on"||Ni(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=()=>{Ma(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 z(t,e){Ao(()=>{var i=t.getRootNode(),o=i.host?i:i.head??i.ownerDocument.head??Uu?.parentNode;if(!o?.querySelector("#"+e.hash)){let n=document.createElement("style");n.id=e.hash,n.textContent=e.code,o.appendChild(n),Se&&Cv(e.hash,n)}})}function Lv(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=Lv(t[e]))&&(o&&(o+=" "),o+=i)}else for(i in t)t[i]&&(o&&(o+=" "),o+=i);return o}function Vv(){for(var t,e,i=0,o="",n=arguments.length;i<n;i++)(t=arguments[i])&&(e=Lv(t))&&(o&&(o+=" "),o+=e);return o}function gl(t){return typeof t=="object"?Vv(t):t??""}var Rv=[...`
48
- \r\f\xA0\v\uFEFF`];function Dv(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||Rv.includes(o[s-1]))&&(d===o.length||Rv.includes(o[d]))?o=(s===0?"":o.substring(0,s))+o.substring(d+1):s=d}}return o===""?null:o}function Nv(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 zu(t){return t[0]!=="-"||t[1]!=="-"?t.toLowerCase():t}function Bv(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(zu)),n&&l.push(...Object.keys(n).map(zu));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 $=zu(t.substring(c,u).trim());if(!l.includes($)){f!==";"&&_++;var x=t.substring(c,_).trim();i+=" "+x+";"}}c=_+1,u=-1}}}}return o&&(i+=Nv(o)),n&&(i+=Nv(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(Qe||s!==i){var d=Dv(i,o,a);(!Qe||d!==t.getAttribute("class"))&&(d==null?t.removeAttribute("class"):e?t.className=d:t.setAttribute("class",d)),t.__className=i}else if(a&&n!==a)for(var l in a){var c=!!a[l];(n==null||c!==!!n[l])&&t.classList.toggle(l,c)}return a}function qu(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(Qe||n!==e){var a=Bv(e,o);(!Qe||a!==t.getAttribute("style"))&&(a==null?t.removeAttribute("style"):t.style.cssText=a),t.__style=e}else o&&(Array.isArray(o)?(qu(t,i?.[0],o[0]),qu(t,i?.[1],o[1],"important")):qu(t,i,o));return o}var Ss=Symbol("class"),Cs=Symbol("style"),Fv=Symbol("is custom element"),Uv=Symbol("is html");function zv(t,e){e?t.hasAttribute("selected")||t.setAttribute("selected",""):t.removeAttribute("selected")}function Re(t,e,i,o){var n=qv(t);if(Qe&&(n[e]=t.getAttribute(e),e==="src"||e==="srcset"||e==="href"&&t.nodeName==="LINK")){o||z1(t,e,i??"");return}n[e]!==(n[e]=i)&&(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 xe(t,e,i,o,n=!1){var a=qv(t),s=a[Fv],d=!a[Uv];let l=Qe&&s;l&&Oi(!1);var c=e||{},u=t.tagName==="OPTION";for(var _ in e)_ in i||(i[_]=null);i.class?i.class=gl(i.class):(o||i[Ss])&&(i.class=null),i[Cs]&&(i.style??=null);var f=Wv(t);for(let L in i){let T=i[L];if(u&&L==="value"&&T==null){t.value=t.__value="",c[L]=T;continue}if(L==="class"){var $=t.namespaceURI==="http://www.w3.org/1999/xhtml";Z(t,$,T,o,e?.[Ss],i[Ss]),c[L]=T,c[Ss]=i[Ss];continue}if(L==="style"){tt(t,T,e?.[Cs],i[Cs]),c[L]=T,c[Cs]=i[Cs];continue}var x=c[L];if(T!==x){c[L]=T;var w=L[0]+L[1];if(w!=="$$")if(w==="on"){let B={},K="$$"+L,Q=L.slice(2);var S=$v(Q);if(bv(Q)&&(Q=Q.slice(0,-7),B.capture=!0),!S&&x){if(T!=null)continue;t.removeEventListener(Q,c[K],B),c[K]=null}if(T!=null)if(S)t[`__${Q}`]=T,it([Q]);else{let Y=function(ae){c[L].call(this,ae)};var M=Y;c[K]=Ru(Q,t,Y,B)}else S&&(t[`__${Q}`]=void 0)}else if(L==="style")Re(t,L,T);else if(L==="autofocus")Lu(t,!!T);else if(!s&&(L==="__value"||L==="value"&&T!=null))t.value=t.__value=T;else if(L==="selected"&&u)zv(t,T);else{var I=L;d||(I=yv(I));var P=I==="defaultValue"||I==="defaultChecked";if(T==null&&!s&&!P)if(a[L]=null,I==="value"||I==="checked"){let B=t,K=e===void 0;if(I==="value"){let Q=B.defaultValue;B.removeAttribute(I),B.defaultValue=Q,B.value=B.__value=K?Q:null}else{let Q=B.defaultChecked;B.removeAttribute(I),B.defaultChecked=Q,B.checked=K?Q:!1}}else t.removeAttribute(L);else P||f.includes(I)&&(s||typeof T!="string")?t[I]=T:typeof T!="function"&&Re(t,I,T,n)}}}return l&&Oi(!0),c}function qv(t){return t.__attributes??={[Fv]:t.nodeName.includes("-"),[Uv]:t.namespaceURI===Sm}}var Ov=new Map;function Wv(t){var e=Ov.get(t.nodeName);if(e)return e;Ov.set(t.nodeName,e=[]);for(var i,o=t,n=Element.prototype;n!==o;){i=Md(o);for(var a in i)i[a].set&&e.push(a);o=Fr(o)}return e}function z1(t,e,i){Se&&(e==="srcset"&&q1(t,i)||Wu(t.getAttribute(e)??"",i)||jm(e,t.outerHTML.replace(t.innerHTML,t.innerHTML&&"..."),String(i)))}function Wu(t,e){return t===e?!0:new URL(t,document.baseURI).href===new URL(e,document.baseURI).href}function Hv(t){return t.split(",").map(e=>e.trim().split(" ").filter(Boolean))}function q1(t,e){var i=Hv(t.srcset),o=Hv(e);return o.length===i.length&&o.every(([n,a],s)=>a===i[s][1]&&(Wu(i[s][0],n)||Wu(n,i[s][0])))}var W1=Ad?()=>performance.now():()=>Date.now(),pr={tick:t=>(Ad?requestAnimationFrame:te)(t),now:()=>W1(),tasks:new Set};function Kv(){let t=pr.now();pr.tasks.forEach(e=>{e.c(t)||(pr.tasks.delete(e),e.f())}),pr.tasks.size!==0&&pr.tick(Kv)}function Qv(t){let e;return pr.tasks.size===0&&pr.tick(Kv),{promise:new Promise(i=>{pr.tasks.add(e={c:t,f:i})}),abort(){pr.tasks.delete(e)}}}function Xd(t,e){ul(()=>{t.dispatchEvent(new CustomEvent(e))})}function Y1(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 Gv(t){let e={},i=t.split(";");for(let o of i){let[n,a]=o.split(":");if(!n||a===void 0)break;let s=Y1(n.trim());e[s]=a.trim()}return e}var j1=t=>t;function Qu(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,$;function x(){var M=Et,L=gt;Xi(null),Di(null);try{return c??=i()(e,o?.()??{},{direction:l})}finally{Xi(M),Di(L)}}var w={is_global:d,in(){if(e.inert=u,!n){$?.abort(),$?.reset?.();return}a||f?.abort(),Xd(e,"introstart"),f=Ku(e,x(),$,1,()=>{Xd(e,"introend"),f?.abort(),f=c=void 0,e.style.overflow=_})},out(M){if(!a){M?.(),c=void 0;return}e.inert=!0,Xd(e,"outrostart"),$=Ku(e,x(),f,0,()=>{Xd(e,"outroend"),M?.()})},stop:()=>{f?.abort(),$?.abort()}},S=gt;if((S.transitions??=[]).push(w),n&&pl){var I=d;if(!I){for(var P=S.parent;P&&(P.f&65536)!==0;)for(;(P=P.parent)&&(P.f&16)===0;);I=!P||(P.f&32768)!==0}I&&en(()=>{ft(()=>w.in())})}}function Ku(t,e,i,o,n){var a=o===1;if(na(e)){var s,d=!1;return Ao(()=>{if(!d){var S=e({direction:a?"in":"out"});s=Ku(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:te,deactivate:te,reset:te,t:()=>o};let{delay:l=0,css:c,tick:u,easing:_=j1}=e;var f=[];if(a&&i===void 0&&(u&&u(0,1),c)){var $=Gv(c(0,1));f.push($,$)}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,P=e.duration*Math.abs(I),M=[];if(P>0){var L=!1;if(c)for(var T=Math.ceil(P/16.666666666666668),B=0;B<=T;B+=1){var K=S+I*_(B/T),Q=Gv(c(K,1-K));M.push(Q),L||=Q.overflow==="hidden"}L&&(t.style.overflow="hidden"),x=()=>{var Y=w.currentTime;return S+I*_(Y/P)},u&&Qv(()=>{if(w.playState!=="running")return!1;var Y=x();return u(Y,1-Y),!0})}w=t.animate(M,{duration:P,fill:"forwards"}),w.onfinish=()=>{x=()=>o,u?.(o,1-o),n()}},{abort:()=>{w&&(w.cancel(),w.effect=null,w.onfinish=te)},deactivate:()=>{n=te},reset:()=>{o===0&&u?.(1,0)},t:()=>x()}}var Gu=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 J1=new Gu({box:"border-box"});function Lr(t,e,i){var o=J1.observe(t,()=>i(t[e]));en(()=>(ft(()=>i(t[e])),o))}function Yv(t,e){return t===e||t?.[ho]===e}function at(t={},e,i,o){return en(()=>{var n,a;return eo(()=>{n=a,a=o?.()||[],ft(()=>{t!==i(...a)&&(e(t,...a),n&&Yv(i(...n),t)&&e(null,...n))})}),()=>{Ao(()=>{a&&Yv(i(...a),t)&&e(null,...a)})}}),t}function fr(t=!1){let e=St,i=e.l.u;if(!i)return;let o=()=>qd(e.s);if(t){let n=0,a={},s=v(()=>{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&&hs(()=>{jv(e,o),ra(i.b)}),He(()=>{let n=ft(()=>i.m.map(Im));return()=>{for(let a of n)typeof a=="function"&&a()}}),i.a.length&&He(()=>{jv(e,o),ra(i.a)})}function jv(t,e){if(t.l.s)for(let i of t.l.s)r(i);e()}if(Se){let t=function(e){if(!(e in globalThis)){let i;Object.defineProperty(globalThis,e,{configurable:!0,get:()=>{if(i!==void 0)return i;Hm(e)},set:o=>{i=o}})}};t0=t,t("$state"),t("$effect"),t("$derived"),t("$inspect"),t("$props"),t("$bindable")}var t0;function At(t){St===null&&_s("onMount"),Pr&&St.l!==null?e0(St).m.push(t):He(()=>{let e=ft(t);if(typeof e=="function")return e})}function on(t){St===null&&_s("onDestroy"),At(()=>()=>ft(t))}function e0(t){var e=t.l;return e.u??={a:[],b:[],m:[]}}function hl(t,e,i){if(t==null)return e(void 0),i&&i(void 0),te;let o=ft(()=>t.subscribe(e,i));return o.unsubscribe?()=>o.unsubscribe():o}var ks=[];function Qn(t,e){return{subscribe:re(t,e).subscribe}}function re(t,e=te){let i=null,o=new Set;function n(d){if(ss(t,d)&&(t=d,i)){let l=!ks.length;for(let c of o)c[1](),ks.push(c,t);if(l){for(let c=0;c<ks.length;c+=2)ks[c][0](ks[c+1]);ks.length=0}}}function a(d){n(d(t))}function s(d,l=te){let c=[d,l];return o.add(c),o.size===1&&(i=e(n,a)||te),d(t),()=>{o.delete(c),o.size===0&&i&&(i(),i=null)}}return{set:n,update:a,subscribe:s}}function ni(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 Qn(i,(s,d)=>{let l=!1,c=[],u=0,_=te,f=()=>{if(u)return;_();let x=e(o?c[0]:c,s,d);a?s(x):_=typeof x=="function"?x:te},$=n.map((x,w)=>hl(x,S=>{c[w]=S,u&=~(1<<w),l&&f()},()=>{u|=1<<w}));return l=!0,f(),function(){ra($),_(),l=!1}})}function he(t){let e;return hl(t,i=>e=i)(),e}var ec=!1,Yu=Symbol();function y(t,e,i){let o=i[e]??={store:null,source:qr(void 0),unsubscribe:te};if(o.store!==t&&!(Yu in i))if(o.unsubscribe(),o.store=t??null,t==null)o.source.v=void 0,o.unsubscribe=te;else{var n=!0;o.unsubscribe=hl(t,a=>{n?o.source.v=a:D(o.source,a)}),n=!1}return t&&Yu in i?he(t):r(o.source)}function Me(){let t={};function e(){Bo(()=>{for(var i in t)t[i].unsubscribe();Ni(t,Yu,{enumerable:!1,value:!0})})}return[t,e]}function ju(t){var e=ec;try{return ec=!1,[t(),ec]}finally{ec=e}}var l0={get(t,e){if(!t.exclude.includes(e))return t.props[e]},set(t,e){return Se&&Om(`${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 Ce(t,e,i){return new Proxy(Se?{props:t,exclude:e,name:i,other:{},to_proxy:[]}:{props:t,exclude:e},l0)}var d0={get(t,e){let i=t.props.length;for(;i--;){let o=t.props[i];if(na(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];na(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(na(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===ho||e===Ys)return!1;for(let i of t.props)if(na(i)&&(i=i()),i!=null&&e in i)return!0;return!1},ownKeys(t){let e=[];for(let i of t.props){na(i)&&(i=i());for(let o in i)e.includes(o)||e.push(o)}return e}};function Gr(...t){return new Proxy({props:t},d0)}function Zv(t){return t.ctx?.d??!1}function m(t,e,i,o){var n=(i&1)!==0,a=!Pr||(i&2)!==0,s=(i&8)!==0,d=(i&16)!==0,l=!1,c;s?[c,l]=ju(()=>t[e]):c=t[e];var u=ho in t||Ys in t,_=s&&(wn(t,e)?.set??(u&&e in t&&(K=>t[e]=K)))||void 0,f=o,$=!0,x=!1,w=()=>(x=!0,$&&($=!1,d?f=ft(o):f=o),f);c===void 0&&o!==void 0&&(_&&a&&Bm(e),c=w(),_&&_(c));var S;if(a)S=()=>{var K=t[e];return K===void 0?w():($=!0,x=!1,K)};else{var I=(n?v:cr)(()=>t[e]);I.f|=131072,S=()=>{var K=r(I);return K!==void 0&&(f=void 0),K===void 0?f:K}}if((i&4)===0)return S;if(_){var P=t.$$legacy;return function(K,Q){return arguments.length>0?((!a||!Q||P||l)&&_(Q?S():K),K):S()}}var M=!1,L=!1,T=qr(c),B=v(()=>{var K=S(),Q=r(T);return M?(M=!1,L=!0,Q):(L=!1,T.v=K)});return s&&r(B),n||(B.equals=ls),function(K,Q){if(Js!==null&&(M=L,S(),r(T)),arguments.length>0){let Y=Q?r(B):a&&s?de(K):K;if(!B.equals(Y)){if(M=!0,D(T,Y),x&&f!==void 0&&(f=Y),Zv(B))return K;ft(()=>r(B))}return K}return Zv(B)?B.v:r(B)}}var c0;typeof HTMLElement=="function"&&(c0=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=u0(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]=Zu(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=Mv({component:this.$$ctor,target:this.shadowRoot||this,props:{...this.$$d,$$slots:i,$$host:this}}),this.$$me=Kd(()=>{eo(()=>{this.$$r=!0;for(let n of au(this.$$c)){if(!this.$$p_d[n]?.reflect)continue;this.$$d[n]=this.$$c[n];let a=Zu(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]=Zu(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 au(this.$$p_d).find(e=>this.$$p_d[e].attribute===t||!this.$$p_d[e].attribute&&e.toLowerCase()===t)||t}});function Zu(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 u0(t){let e={};return t.childNodes.forEach(i=>{e[i.slot||"default"]=!0}),e}var Xv="5";typeof window<"u"&&((window.__svelte??={}).v??=new Set).add(Xv);import{clientChecker as j3}from"@vkontakte/videoplayer-core/es2024";import"@vkontakte/videoplayer-core/es2024";import{noop as Gh,safeStorage as Z3,throttleFn as X3}from"@vkontakte/videoplayer-shared/es2024";import{SeekAction as J3}from"@vkontakte/videoplayer-statistics/es2024";import{InterfaceLanguage as f0,fillWithDefault as m0,VideoQuality as Jv}from"@vkontakte/videoplayer-shared/es2024";var v0={isMobile:void 0,debugLog:!1,devNullLog:!1,defaultLanguage:f0.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:Jv.Q_480P,highQualityLimit:Jv.Q_720P,episodeMinWidthPc:8,hideThumbTimerAfterTouch:!0,preventPauseOnVideoClick:!1,sentry:{dsn:"https://e349fd23c68f405388980d0868d0ff27@sentry.mvk.com/126",sampleRate:.01,whiteErrorCategoryList:[],blackErrorCategoryList:[],whiteErrorIdList:[],blackErrorIdList:[]},features:{autoplay:!0,statistics:!0,sentry:!0,preload:!0,subtitles:!0,episodes:!0,fullscreen:!0,timelinePreview:!0,mediaSession:!0,annotations:!0,slots:!0,annotationsInside:!1,pip:!0,dpip:!0,download:!0,liveRewind:!0,playbackRate:!0,trafficSaving:!0,episodesClustering:!0,copyVideoLink:!0,videoRotate:!0,interactiveGraph:!1,interactiveResponsiveUi:!1,seekToInteractive:!0,interactiveLastFrame:!1,interactiveTextPermanent:!0,interactiveHideTime:!0,interactivePlayPrevChapter:!0,interactiveTimeIndicator:!0,interactiveTimeOpenUri:!1,interactiveAreaControlShadow:!1,interactiveControlsExpectTimeBlinkAnimation:!1,thumbTimer:!0,hotKeyMapModal:!0,hotKeyHelpers:!0,saveDebugInfoToFile:!1,saveTraceInfoToFile:!1,additionalButtons:!0,additionalButtonsDesktopControlPanelRight:!0,additionalSettingsMenuItems:!0,additionalContextMenuItems:!0,contextMenuButton:!0,audioLanguages:!1,saveRate:!1,fullscreenInternalTargetPlayerContainer:!1,endScreen:!0,autoplayNext:!0,nextPrevButtons:!0,previewNoEmptySpace:!1,exposeInternalsToGlobal:!1,skipInitialPlaybackRateValue:!1,qualityDetailsSubMenuEnabled:!1,showSlowVideoNotification:!1,forceAutoQualityWhenSevereStallHappens:!1,timeoutShowSlowVideoNotification:0,maxCountShowSlowVideoNotification:1,forcePlayerDisplayBlock:!1,playbackStatusAnimationDuration:1e3,playbackStatusShow:!1,playbackStatusNextVideoShow:!1,playbackStatusNextVideoAnimationDuration:1e3},controls:{showOnStartupAtAutoplay:!0,hideTimeout:500,hideTimeoutMobile:3e3,hideTimeoutInitial:200,hideTimeoutFullscreen:3e3,hideTimeoutCursor:3e3,hideTimeoutTooltips:1e3,collapseMobileUnmute:6e3,hide360IconTimeout:3e3,hideHotKeyHelpers:2e3,playbackRateMin:.25,playbackRateMax:2,playbackRateStep:.25,volumeStepKeyboard:.05,volumeStepWheel:.05,volumeBarTimeout:300,seekStepKeyboard:1e4,seekStepMobile:15e3,seekStepFrame:400},ads:{enable:void 0,initTimeout:2e3,loadTimeout:2e3,runtimeTimeout:5e3,slot:void 0,preview:void 0,isMobileGoToSiteButton:!0,useAdmanFromNPM:!1,volumeMultiplier:1,isVsidOriginal:!1},interactive:{historyMaxLength:100,noInteractionEventTimeout:3e4},view:{timelineSliderColor:"blue",timelineSliderHandleColor:"red",timelineSliderFilledColor:null,timelineSliderLoadedColor:null,volumeSliderColor:null,volumeSliderHandleColor:null,volumeSliderFilledColor:null,controlsTimeColor:null,timelineSliderFilledActiveLiveColor:null,timelineSliderHandleActiveLiveColor:null,buttonColor:null,buttonToggleOnColor:null,focusedColor:null}},eg=t=>m0(t,v0),tg=t=>$s("ui-config",t),Mt=()=>bs("ui-config");var _l="vk_player_debug_panel_opened";var ig="videoplayer",og="videoplayer";var Vr={KeyF:"f",KeyK:"k",KeyC:"c",KeyM:"m"},ng=new Set(["ArrowLeft","ArrowRight","KeyL","KeyJ"]),rg=new Set(["Tab","Space","ArrowLeft","ArrowRight","ArrowUp","ArrowDown"]),ag=new Set(["ShiftRight","ShiftLeft"]);var sg=["TIMELINE"],bl=[...sg,"GRAPH_BUTTON"],Xu=[...sg,"PLAY_BUTTON"],$l=[...bl,"PLAY_BUTTON"];var Rr=(a=>(a.XS="xs",a.S="s",a.M="m",a.L="l",a.XL="xl",a))(Rr||{}),Ra={xs:0,s:1,m:2,l:3,xl:4};import{assertNonNullable as lg,VERSION as g0}from"@vkontakte/videoplayer-shared/es2024";import{VERSION as h0}from"@vkontakte/videoplayer-core/es2024";import{VERSION as _0}from"@vkontakte/videoplayer-statistics/es2024";var tc="prod",Ts="1.1.62-dev.92a4e8bb.0";var Na=(t,e,i)=>{let o=document.createElement("a");o.href=t,o.download=`${e}.${i}`,o.style.display="none",o.click()};var dg=Symbol("storeContext"),cg=Symbol("microStoresContext"),ug=(t,e)=>{$s(dg,t),$s(cg,e),tc==="dev"&&(window.app={store:t,microStores:e})},_e=()=>{let t=bs(dg);return lg(t,"Store context is empty!"),t},Fi=()=>{let t=bs(cg);return lg(t,"MicroStores context is empty!"),t},zt=(t,e)=>oc(t,t.getValue(),e),oc=(t,e,i)=>Qn(e,o=>{let n=t.subscribe(a=>{o(a),i?.(a)});return()=>n.unsubscribe()}),pg=(t,e,i)=>{let o=t.info,{width:n,height:a}=he(i.ui.playerSize),s=o.throughputEstimation$.getValue()?.toFixed(0)??0,d=o.rttEstimation$.getValue()?.toFixed(0)??0,l=o.isAutoQualityEnabled$.getValue()?"auto":"manual",c=`${Ts} (core: ${h0}, stat: ${_0}, shared: ${g0})`,u=he(i.state.errorLog$),_=u.length?`
49
- `+u.map((I,P)=>{let M=`${P}) Type: ${I.id}
50
- `,L=`Message: ${I.message} (${I.thrown})
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 St=null;function tl(t){St=t}var No=null;function il(t){No=t}function gs(t){return Iu("getContext").get(t)}function hs(t,e){let i=Iu("setContext");return xe&&ft(()=>Cu(e,null,!0)),i.set(t,e),e}function nl(){return Iu("getAllContexts")}function F(t,e=!1,i){var o=St={p:St,c:null,d:!1,e:null,m:!1,s:t,x:null,l:null};Ir&&!e&&(St.l={s:null,u:null,r1:[],r2:xi(!1)}),Bo(()=>{o.d=!0}),xe&&(St.function=i,No=i)}function U(t){let e=St;if(e!==null){t!==void 0&&(e.x=t);let s=e.e;if(s!==null){var i=ht,o=Pt;e.e=null;try{for(var n=0;n<s.length;n++){var a=s[n];Oi(a.effect),ji(a.reaction),Zo(a.fn)}}finally{Oi(i),ji(o)}}St=e.p,xe&&(No=e.p?.function??null),e.m=!0}return t||{}}function Pr(){return!Ir||St!==null&&St.l===null}function Iu(t){return St===null&&vs(t),St.c??=new Map(_1(St)||void 0)}function _1(t){let e=t.p;for(;e!==null;){let i=e.c;if(i!==null)return i;e=e.p}return null}var b1=/\r/g;function vv(t){t=t.replace(b1,"");let e=5381,i=t.length;for(;i--;)e=(e<<5)-e^t.charCodeAt(i);return(e>>>0).toString(36)}function gv(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 hv(t){return $1.includes(t)}var y1=["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 x1={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 _v(t){return t=t.toLowerCase(),x1[t]??t}var ww=[...y1,"formNoValidate","isMap","noModule","playsInline","readOnly","value","volume","defaultValue","defaultChecked","srcObject","noValidate","allowFullscreen","disablePictureInPicture","disableRemotePlayback"];var w1=["touchstart","touchmove"];function bv(t){return w1.includes(t)}var S1=["textarea","script","style","title"];function $v(t){return S1.includes(t)}function Eu(t){return t?.replace(/\//g,"/\u200B")}var yv=new Map;function xv(t,e){var i=yv.get(t);i||(i=new Set,yv.set(t,i)),i.add(e)}function Pu(t,e){if(e){let i=document.body;t.autofocus=!0,Ao(()=>{document.activeElement===i&&t.focus()})}}function rl(t){var e=Pt,i=ht;ji(null),Oi(null);try{return t()}finally{ji(e),Oi(i)}}var Au=new Set,Kd=new Set;function Ea(t){if(!Qe)return;t.onload&&t.removeAttribute("onload"),t.onerror&&t.removeAttribute("onerror");let e=t.__e;e!==void 0&&(t.__e=void 0,queueMicrotask(()=>{t.isConnected&&t.dispatchEvent(e)}))}function Mu(t,e,i,o={}){function n(a){if(o.capture||_s.call(e,a),!a.cancelBubble)return rl(()=>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 Ct(t,e,i,o,n){var a={capture:o,passive:n},s=Mu(t,e,i,a);(e===document.body||e===window||e===document)&&Bo(()=>{e.removeEventListener(t,s,a)})}function ot(t){for(var e=0;e<t.length;e++)Au.add(t[e]);for(var i of Kd)i(t)}function _s(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){Bi(t,"currentTarget",{configurable:!0,get(){return a||i}});var u=Pt,_=ht;ji(null),Oi(null);try{for(var f,$=[];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(dr(w)){var[S,...I]=w;S.apply(a,[t,...I])}else w.call(a,t)}catch(M){f?$.push(M):f=M}if(t.cancelBubble||x===e||x===null)break;a=x}if(f){for(let M of $)queueMicrotask(()=>{throw M});throw f}}finally{t.__root=e,delete t.currentTarget,ji(u),Oi(_)}}}var k1;function wv(){k1=void 0}function bs(t){var e=document.createElement("template");return e.innerHTML=t,e.content}function Ji(t,e){var i=ht;i.nodes_start===null&&(i.nodes_start=t,i.nodes_end=e)}function L(t,e){var i=(e&1)!==0,o=(e&2)!==0,n,a=!t.startsWith("<!>");return()=>{if(Qe)return Ji(dt,null),dt;n===void 0&&(n=bs(a?t:"<!>"+t),i||(n=oi(n)));var s=o||Ys?document.importNode(n,!0):n.cloneNode(!0);if(i){var d=oi(s),l=s.lastChild;Ji(d,l)}else Ji(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(Qe)return Ji(dt,null),dt;if(!s){var d=bs(a),l=oi(d);if(n)for(s=document.createDocumentFragment();oi(l);)s.appendChild(oi(l));else s=oi(l)}var c=s.cloneNode(!0);if(n){var u=oi(c),_=c.lastChild;Ji(u,_)}else Ji(c,c);return c}}function qn(t=""){if(!Qe){var e=Ro(t+"");return Ji(e,e),e}var i=dt;return i.nodeType!==3&&(i.before(i=Ro()),ii(i)),Ji(i,i),i}function Ne(){if(Qe)return Ji(dt,null),dt;var t=document.createDocumentFragment(),e=document.createComment(""),i=Ro();return t.append(e,i),Ji(e,i),t}function b(t,e){if(Qe){ht.nodes_end=dt,gi();return}t!==null&&t.before(e)}var al=!0;function Qd(t){al=t}function ce(t,e){var i=e==null?"":typeof e=="object"?e+"":e;i!==(t.__t??=t.nodeValue)&&(t.__t=i,t.nodeValue=i+"")}function Qr(t,e){return Cv(t,e)}function Vu(t,e){Vd(),e.intro=e.intro??!1;let i=e.target,o=Qe,n=dt;try{for(var a=oi(i);a&&(a.nodeType!==8||a.data!==ta);)a=ao(a);if(!a)throw Or;Fi(!0),ii(a),gi();let s=Cv(t,{...e,anchor:a});if(dt===null||dt.nodeType!==8||dt.data!==ba)throw Ca(),Or;return Fi(!1),s}catch(s){if(s===Or)return e.recover===!1&&Lm(),Vd(),js(i),Fi(!1),Qr(t,e);throw s}finally{Fi(o),ii(n),wv()}}var $s=new Map;function Cv(t,{target:e,anchor:i,props:o={},events:n,context:a,intro:s=!0}){Vd();var d=new Set,l=_=>{for(var f=0;f<_.length;f++){var $=_[f];if(!d.has($)){d.add($);var x=bv($);e.addEventListener($,_s,{passive:x});var w=$s.get($);w===void 0?(document.addEventListener($,_s,{passive:x}),$s.set($,1)):$s.set($,w+1)}}};l(Ws(Au)),Kd.add(l);var c=void 0,u=pv(()=>{var _=i??e.appendChild(Ro());return wi(()=>{if(a){F({});var f=St;f.c=a}n&&(o.$$events=n),Qe&&Ji(_,null),al=s,c=t(_,o)||{},al=!0,Qe&&(ht.nodes_end=dt),a&&U()}),()=>{for(var f of d){e.removeEventListener(f,_s);var $=$s.get(f);--$===0?(document.removeEventListener(f,_s),$s.delete(f)):$s.set(f,$)}Kd.delete(l),_!==i&&_.parentNode?.removeChild(_)}});return Lu.set(c,u),c}var Lu=new WeakMap;function Pa(t,e){let i=Lu.get(t);return i?(Lu.delete(t),i(e)):(xe&&Ym(),Promise.resolve())}function V(t,e,[i,o]=[0,0]){Qe&&i===0&&gi();var n=t,a=null,s=null,d=fi,l=i>0?65536:0,c=!1;let u=(f,$=!0)=>{c=!0,_($,f)},_=(f,$)=>{if(d===(d=f))return;let x=!1;if(Qe&&o!==-1){if(i===0){let S=n.data;S===ta?o=0:S===_a?o=1/0:(o=parseInt(S.substring(1)),o!==o&&(o=d?1/0:-1))}let w=o>i;!!d===w&&(n=cs(),ii(n),Fi(!1),x=!0,o=-1)}d?(a?Kr(a):$&&(a=wi(()=>$(n))),s&&Xo(s,()=>{s=null})):(s?Kr(s):$&&(s=wi(()=>$(n,[i+1,o]))),a&&Xo(a,()=>{a=null})),x&&Fi(!0)};Ui(()=>{c=!1,e(u),c||_(null,null)},l),Qe&&(n=dt)}function Aa(t,e,i){Qe&&gi();var o=t,n=fi,a,s=Pr()?Tm:ns;Ui(()=>{s(n,n=e())&&(a&&Xo(a),a=wi(()=>i(o)))}),Qe&&(o=dt)}var aa=null;function Nu(t){aa=t}function sl(t,e){return e}function P1(t,e,i,o){for(var n=[],a=e.length,s=0;s<a;s++)zd(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)}Su(n,()=>{for(var c=0;c<a;c++){var u=e[c];d||(o.delete(u.k),ra(t,u.prev,u.next)),Hi(u.e,!d)}})}function di(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=Qe?ii(oi(c)):c.appendChild(Ro())}Qe&&gi();var u=null,_=!1,f=pr(()=>{var $=i();return dr($)?$:$==null?[]:Ws($)});Ui(()=>{var $=r(f),x=$.length;if(_&&x===0)return;_=x===0;let w=!1;if(Qe){var S=s.data===_a;S!==(x===0)&&(s=cs(),ii(s),Fi(!1),w=!0)}if(Qe){for(var I=null,M,P=0;P<x;P++){if(dt.nodeType===8&&dt.data===ba){s=dt,w=!0,Fi(!1);break}var A=$[P],T=o(A,P);M=Iv(dt,d,I,null,A,T,P,n,e,i),d.items.set(T,M),I=M}x>0&&ii(cs())}Qe||A1($,d,s,n,e,o,i),a!==null&&(x===0?u?Kr(u):u=wi(()=>a(s)):u!==null&&Xo(u,()=>{u=null})),w&&Fi(!0),r(f)}),Qe&&(s=dt)}function A1(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=_,$,x=null,w,S=[],I=[],M,P,A,T;if(d)for(T=0;T<c;T+=1)M=t[T],P=a(M,T),A=u.get(P),A!==void 0&&(A.a?.measure(),(w??=new Set).add(A));for(T=0;T<c;T+=1){if(M=t[T],P=a(M,T),A=u.get(P),A===void 0){var B=f?f.e.nodes_start:i;x=Iv(B,e,x,x===null?e.first:x.next,M,P,T,o,n,s),u.set(P,x),S=[],I=[],f=x.next;continue}if(l&&M1(A,M,T,n),(A.e.f&8192)!==0&&(Kr(A.e),d&&(A.a?.unfix(),(w??=new Set).delete(A))),A!==f){if($!==void 0&&$.has(A)){if(S.length<I.length){var Q=I[0],G;x=Q.prev;var ee=S[0],te=S[S.length-1];for(G=0;G<S.length;G+=1)kv(S[G],Q,i);for(G=0;G<I.length;G+=1)$.delete(I[G]);ra(e,ee.prev,te.next),ra(e,x,ee),ra(e,te,Q),f=Q,x=te,T-=1,S=[],I=[]}else $.delete(A),kv(A,f,i),ra(e,A.prev,A.next),ra(e,A,x===null?e.first:x.next),ra(e,x,A),x=A;continue}for(S=[],I=[];f!==null&&f.k!==P;)(f.e.f&8192)===0&&($??=new Set).add(f),I.push(f),f=f.next;if(f===null)continue;A=f}S.push(A),x=A,f=A.next}if(f!==null||$!==void 0){for(var ie=$===void 0?[]:Ws($);f!==null;)(f.e.f&8192)===0&&ie.push(f),f=f.next;var oe=ie.length;if(oe>0){var ge=(n&4)!==0&&c===0?i:null;if(d){for(T=0;T<oe;T+=1)ie[T].a?.measure();for(T=0;T<oe;T+=1)ie[T].a?.fix()}P1(e,ie,ge,u)}}d&&Ao(()=>{if(w!==void 0)for(A of w)A.a?.apply()}),ht.first=e.first&&e.first.e,ht.last=x&&x.e}function M1(t,e,i,o){(o&1)!==0&&ss(t.v,e),(o&2)!==0?ss(t.i,i):t.i=i}function Iv(t,e,i,o,n,a,s,d,l,c){var u=aa,_=(l&1)!==0,f=(l&16)===0,$=_?f?Wr(n):xi(n):n,x=(l&2)===0?s:xi(s);xe&&_&&($.debug=()=>{var S=typeof x=="number"?s:x.v;c()[S]});var w={i:x,v:$,k:a,a:null,e:null,prev:i,next:o};aa=w;try{return w.e=wi(()=>d(t,$,x,c),Qe),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 kv(t,e,i){for(var o=t.next?t.next.e.nodes_start:i,n=e?e.e.nodes_start:i,a=t.e.nodes_start;a!==o;){var s=ao(a);n.before(a),a=s}}function 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 L1(t,e,i){if(!e||e===vv(String(i??"")))return;let o,n=t.__svelte_meta?.loc;n?o=`near ${n.file}:${n.line}:${n.column}`:No?.[ti]&&(o=`in ${No[ti]}`),Gm(Eu(o))}function ll(t,e,i,o,n){var a=t,s="",d;Ui(()=>{if(s===(s=e()??"")){Qe&&gi();return}d!==void 0&&(Hi(d),d=void 0),s!==""&&(d=wi(()=>{if(Qe){for(var l=dt.data,c=gi(),u=c;c!==null&&(c.nodeType!==8||c.data!=="");)u=c,c=ao(c);if(c===null)throw Ca(),Or;xe&&!n&&L1(c.parentNode,l,s),Ji(dt,u),a=ii(c);return}var _=s+"";i?_=`<svg>${_}</svg>`:o&&(_=`<math>${_}</math>`);var f=bs(_);if((i||o)&&(f=oi(f)),Ji(oi(f),f.lastChild),i||o)for(;oi(f);)a.before(oi(f));else a.before(f)}))})}function ue(t,e,...i){var o=t,n=J,a;Ui(()=>{n!==(n=e())&&(a&&(Hi(a),a=null),xe&&n==null&&Vm(),a=wi(()=>n(o,...i)))},65536),Qe&&(o=dt)}function ci(t,e,i){Qe&&gi();var o=t,n,a;Ui(()=>{n!==(n=e())&&(a&&(Xo(a),a=null),n&&(a=wi(()=>i(o,n))))},65536),Qe&&(o=dt)}function dl(t,e,i,o,n,a){let s=Qe;Qe&&gi();var d=xe&&a&&St?.function[ti],l,c,u=null;Qe&&dt.nodeType===1&&(u=dt,gi());var _=Qe?dt:t,f,$=aa;Ui(()=>{let x=e()||null;var w=n?n():i||x==="svg"?iu:null;if(x!==l){var S=aa;Nu($),f&&(x===null?Xo(f,()=>{f=null,c=null}):x===c?Kr(f):(Hi(f),Qd(!1))),x&&x!==c&&(f=wi(()=>{if(u=Qe?u:w?document.createElementNS(w,x):document.createElement(x),xe&&a&&(u.__svelte_meta={loc:{file:d,line:a[0],column:a[1]}}),Ji(u,u),o){Qe&&$v(x)&&u.append(document.createComment(""));var I=Qe?oi(u):u.appendChild(Ro());Qe&&(I===null?Fi(!1):ii(I)),o(u,I)}ht.nodes_end=u,_.before(u)})),l=x,l&&(c=l),Qd(!0),Nu(S)}},65536),s&&(Fi(!0),ii(_))}var Ou;function Ev(t){return Ou=t.target,new Bu(t)}var Bu=class{#t;#e;constructor(e){var i=new Map,o=(a,s)=>{var d=Wr(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===zs?!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?Vu:Qr)(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)&&fs(),this.#t=n.$$events;for(let a of Object.keys(this.#e))a==="$set"||a==="$destroy"||a==="$on"||Bi(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=()=>{Pa(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 W(t,e){Ao(()=>{var i=t.getRootNode(),o=i.host?i:i.head??i.ownerDocument.head??Ou?.parentNode;if(!o?.querySelector("#"+e.hash)){let n=document.createElement("style");n.id=e.hash,n.textContent=e.code,o.appendChild(n),xe&&xv(e.hash,n)}})}function Pv(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=Pv(t[e]))&&(o&&(o+=" "),o+=i)}else for(i in t)t[i]&&(o&&(o+=" "),o+=i);return o}function Av(){for(var t,e,i=0,o="",n=arguments.length;i<n;i++)(t=arguments[i])&&(e=Pv(t))&&(o&&(o+=" "),o+=e);return o}function cl(t){return typeof t=="object"?Av(t):t??""}var Mv=[...`
48
+ \r\f\xA0\v\uFEFF`];function Vv(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||Mv.includes(o[s-1]))&&(d===o.length||Mv.includes(o[d]))?o=(s===0?"":o.substring(0,s))+o.substring(d+1):s=d}}return o===""?null:o}function Lv(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 Hu(t){return t[0]!=="-"||t[1]!=="-"?t.toLowerCase():t}function Rv(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(Hu)),n&&l.push(...Object.keys(n).map(Hu));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 $=Hu(t.substring(c,u).trim());if(!l.includes($)){f!==";"&&_++;var x=t.substring(c,_).trim();i+=" "+x+";"}}c=_+1,u=-1}}}}return o&&(i+=Lv(o)),n&&(i+=Lv(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(Qe||s!==i){var d=Vv(i,o,a);(!Qe||d!==t.getAttribute("class"))&&(d==null?t.removeAttribute("class"):e?t.className=d:t.setAttribute("class",d)),t.__className=i}else if(a&&n!==a)for(var l in a){var c=!!a[l];(n==null||c!==!!n[l])&&t.classList.toggle(l,c)}return a}function Fu(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(Qe||n!==e){var a=Rv(e,o);(!Qe||a!==t.getAttribute("style"))&&(a==null?t.removeAttribute("style"):t.style.cssText=a),t.__style=e}else o&&(Array.isArray(o)?(Fu(t,i?.[0],o[0]),Fu(t,i?.[1],o[1],"important")):Fu(t,i,o));return o}var ys=Symbol("class"),xs=Symbol("style"),Bv=Symbol("is custom element"),Ov=Symbol("is html");function Hv(t,e){e?t.hasAttribute("selected")||t.setAttribute("selected",""):t.removeAttribute("selected")}function Le(t,e,i,o){var n=Fv(t);if(Qe&&(n[e]=t.getAttribute(e),e==="src"||e==="srcset"||e==="href"&&t.nodeName==="LINK")){o||H1(t,e,i??"");return}n[e]!==(n[e]=i)&&(e==="loading"&&(t[xm]=i),i==null?t.removeAttribute(e):typeof i!="string"&&Uv(t).includes(e)?t[e]=i:t.setAttribute(e,i))}function he(t,e,i,o,n=!1){var a=Fv(t),s=a[Bv],d=!a[Ov];let l=Qe&&s;l&&Fi(!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[ys])&&(i.class=null),i[xs]&&(i.style??=null);var f=Uv(t);for(let A in i){let T=i[A];if(u&&A==="value"&&T==null){t.value=t.__value="",c[A]=T;continue}if(A==="class"){var $=t.namespaceURI==="http://www.w3.org/1999/xhtml";Z(t,$,T,o,e?.[ys],i[ys]),c[A]=T,c[ys]=i[ys];continue}if(A==="style"){tt(t,T,e?.[xs],i[xs]),c[A]=T,c[xs]=i[xs];continue}var x=c[A];if(T!==x){c[A]=T;var w=A[0]+A[1];if(w!=="$$")if(w==="on"){let B={},Q="$$"+A,G=A.slice(2);var S=hv(G);if(gv(G)&&(G=G.slice(0,-7),B.capture=!0),!S&&x){if(T!=null)continue;t.removeEventListener(G,c[Q],B),c[Q]=null}if(T!=null)if(S)t[`__${G}`]=T,ot([G]);else{let ee=function(te){c[A].call(this,te)};var P=ee;c[Q]=Mu(G,t,ee,B)}else S&&(t[`__${G}`]=void 0)}else if(A==="style")Le(t,A,T);else if(A==="autofocus")Pu(t,!!T);else if(!s&&(A==="__value"||A==="value"&&T!=null))t.value=t.__value=T;else if(A==="selected"&&u)Hv(t,T);else{var I=A;d||(I=_v(I));var M=I==="defaultValue"||I==="defaultChecked";if(T==null&&!s&&!M)if(a[A]=null,I==="value"||I==="checked"){let B=t,Q=e===void 0;if(I==="value"){let G=B.defaultValue;B.removeAttribute(I),B.defaultValue=G,B.value=B.__value=Q?G:null}else{let G=B.defaultChecked;B.removeAttribute(I),B.defaultChecked=G,B.checked=Q?G:!1}}else t.removeAttribute(A);else M||f.includes(I)&&(s||typeof T!="string")?t[I]=T:typeof T!="function"&&Le(t,I,T,n)}}}return l&&Fi(!0),c}function Fv(t){return t.__attributes??={[Bv]:t.nodeName.includes("-"),[Ov]:t.namespaceURI===$m}}var Dv=new Map;function Uv(t){var e=Dv.get(t.nodeName);if(e)return e;Dv.set(t.nodeName,e=[]);for(var i,o=t,n=Element.prototype;n!==o;){i=Id(o);for(var a in i)i[a].set&&e.push(a);o=Fr(o)}return e}function H1(t,e,i){xe&&(e==="srcset"&&F1(t,i)||Uu(t.getAttribute(e)??"",i)||Qm(e,t.outerHTML.replace(t.innerHTML,t.innerHTML&&"..."),String(i)))}function Uu(t,e){return t===e?!0:new URL(t,document.baseURI).href===new URL(e,document.baseURI).href}function Nv(t){return t.split(",").map(e=>e.trim().split(" ").filter(Boolean))}function F1(t,e){var i=Nv(t.srcset),o=Nv(e);return o.length===i.length&&o.every(([n,a],s)=>a===i[s][1]&&(Uu(i[s][0],n)||Uu(n,i[s][0])))}var U1=Td?()=>performance.now():()=>Date.now(),mr={tick:t=>(Td?requestAnimationFrame:J)(t),now:()=>U1(),tasks:new Set};function zv(){let t=mr.now();mr.tasks.forEach(e=>{e.c(t)||(mr.tasks.delete(e),e.f())}),mr.tasks.size!==0&&mr.tick(zv)}function Wv(t){let e;return mr.tasks.size===0&&mr.tick(zv),{promise:new Promise(i=>{mr.tasks.add(e={c:t,f:i})}),abort(){mr.tasks.delete(e)}}}function Gd(t,e){rl(()=>{t.dispatchEvent(new CustomEvent(e))})}function K1(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,a]=o.split(":");if(!n||a===void 0)break;let s=K1(n.trim());e[s]=a.trim()}return e}var Q1=t=>t;function Wu(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,$;function x(){var P=Pt,A=ht;ji(null),Oi(null);try{return c??=i()(e,o?.()??{},{direction:l})}finally{ji(P),Oi(A)}}var w={is_global:d,in(){if(e.inert=u,!n){$?.abort(),$?.reset?.();return}a||f?.abort(),Gd(e,"introstart"),f=zu(e,x(),$,1,()=>{Gd(e,"introend"),f?.abort(),f=c=void 0,e.style.overflow=_})},out(P){if(!a){P?.(),c=void 0;return}e.inert=!0,Gd(e,"outrostart"),$=zu(e,x(),f,0,()=>{Gd(e,"outroend"),P?.()})},stop:()=>{f?.abort(),$?.abort()}},S=ht;if((S.transitions??=[]).push(w),n&&al){var I=d;if(!I){for(var M=S.parent;M&&(M.f&65536)!==0;)for(;(M=M.parent)&&(M.f&16)===0;);I=!M||(M.f&32768)!==0}I&&Zo(()=>{ft(()=>w.in())})}}function zu(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=zu(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:_=Q1}=e;var f=[];if(a&&i===void 0&&(u&&u(0,1),c)){var $=qv(c(0,1));f.push($,$)}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,M=e.duration*Math.abs(I),P=[];if(M>0){var A=!1;if(c)for(var T=Math.ceil(M/16.666666666666668),B=0;B<=T;B+=1){var Q=S+I*_(B/T),G=qv(c(Q,1-Q));P.push(G),A||=G.overflow==="hidden"}A&&(t.style.overflow="hidden"),x=()=>{var ee=w.currentTime;return S+I*_(ee/M)},u&&Wv(()=>{if(w.playState!=="running")return!1;var ee=x();return u(ee,1-ee),!0})}w=t.animate(P,{duration:M,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 qu=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 j1=new qu({box:"border-box"});function Ar(t,e,i){var o=j1.observe(t,()=>i(t[e]));Zo(()=>(ft(()=>i(t[e])),o))}function Kv(t,e){return t===e||t?.[vo]===e}function at(t={},e,i,o){return Zo(()=>{var n,a;return Xi(()=>{n=a,a=o?.()||[],ft(()=>{t!==i(...a)&&(e(t,...a),n&&Kv(i(...n),t)&&e(null,...n))})}),()=>{Ao(()=>{a&&Kv(i(...a),t)&&e(null,...a)})}}),t}function vr(t=!1){let e=St,i=e.l.u;if(!i)return;let o=()=>Hd(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&&ms(()=>{Qv(e,o),oa(i.b)}),Ue(()=>{let n=ft(()=>i.m.map(Cm));return()=>{for(let a of n)typeof a=="function"&&a()}}),i.a.length&&Ue(()=>{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(xe){let t=function(e){if(!(e in globalThis)){let i;Object.defineProperty(globalThis,e,{configurable:!0,get:()=>{if(i!==void 0)return i;Nm(e)},set:o=>{i=o}})}};X1=t,t("$state"),t("$effect"),t("$derived"),t("$inspect"),t("$props"),t("$bindable")}var X1;function At(t){St===null&&vs("onMount"),Ir&&St.l!==null?Z1(St).m.push(t):Ue(()=>{let e=ft(t);if(typeof e=="function")return e})}function Jo(t){St===null&&vs("onDestroy"),At(()=>()=>ft(t))}function Z1(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=ft(()=>t.subscribe(e,i));return o.unsubscribe?()=>o.unsubscribe():o}var ws=[];function Kn(t,e){return{subscribe:re(t,e).subscribe}}function re(t,e=J){let i=null,o=new Set;function n(d){if(ns(t,d)&&(t=d,i)){let l=!ws.length;for(let c of o)c[1](),ws.push(c,t);if(l){for(let c=0;c<ws.length;c+=2)ws[c][0](ws[c+1]);ws.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 ni(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 Kn(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},$=n.map((x,w)=>ul(x,S=>{c[w]=S,u&=~(1<<w),l&&f()},()=>{u|=1<<w}));return l=!0,f(),function(){oa($),_(),l=!1}})}function ve(t){let e;return ul(t,i=>e=i)(),e}var jd=!1,Ku=Symbol();function y(t,e,i){let o=i[e]??={store:null,source:Wr(void 0),unsubscribe:J};if(o.store!==t&&!(Ku 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&&Ku in i?ve(t):r(o.source)}function De(){let t={};function e(){Bo(()=>{for(var i in t)t[i].unsubscribe();Bi(t,Ku,{enumerable:!1,value:!0})})}return[t,e]}function Qu(t){var e=jd;try{return jd=!1,[t(),jd]}finally{jd=e}}var r0={get(t,e){if(!t.exclude.includes(e))return t.props[e]},set(t,e){return xe&&Dm(`${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 Se(t,e,i){return new Proxy(xe?{props:t,exclude:e,name:i,other:{},to_proxy:[]}:{props:t,exclude:e},r0)}var a0={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=yn(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=yn(o,e);return n&&!n.configurable&&(n.configurable=!0),n}}},has(t,e){if(e===vo||e===zs)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 Gr(...t){return new Proxy({props:t},a0)}function Gv(t){return t.ctx?.d??!1}function v(t,e,i,o){var n=(i&1)!==0,a=!Ir||(i&2)!==0,s=(i&8)!==0,d=(i&16)!==0,l=!1,c;s?[c,l]=Qu(()=>t[e]):c=t[e];var u=vo in t||zs in t,_=s&&(yn(t,e)?.set??(u&&e in t&&(Q=>t[e]=Q)))||void 0,f=o,$=!0,x=!1,w=()=>(x=!0,$&&($=!1,d?f=ft(o):f=o),f);c===void 0&&o!==void 0&&(_&&a&&Rm(e),c=w(),_&&_(c));var S;if(a)S=()=>{var Q=t[e];return Q===void 0?w():($=!0,x=!1,Q)};else{var I=(n?m:pr)(()=>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 M=t.$$legacy;return function(Q,G){return arguments.length>0?((!a||!G||M||l)&&_(G?S():Q),Q):S()}}var P=!1,A=!1,T=Wr(c),B=m(()=>{var Q=S(),G=r(T);return P?(P=!1,A=!0,G):(A=!1,T.v=Q)});return s&&r(B),n||(B.equals=rs),function(Q,G){if(Qs!==null&&(P=A,S(),r(T)),arguments.length>0){let ee=G?r(B):a&&s?de(Q):Q;if(!B.equals(ee)){if(P=!0,N(T,ee),x&&f!==void 0&&(f=ee),Gv(B))return Q;ft(()=>r(B))}return Q}return Gv(B)?B.v:r(B)}}var s0;typeof HTMLElement=="function"&&(s0=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=l0(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]=Gu(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=Ev({component:this.$$ctor,target:this.shadowRoot||this,props:{...this.$$d,$$slots:i,$$host:this}}),this.$$me=Ud(()=>{Xi(()=>{this.$$r=!0;for(let n of ou(this.$$c)){if(!this.$$p_d[n]?.reflect)continue;this.$$d[n]=this.$$c[n];let a=Gu(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]=Gu(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 ou(this.$$p_d).find(e=>this.$$p_d[e].attribute===t||!this.$$p_d[e].attribute&&e.toLowerCase()===t)||t}});function Gu(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 l0(t){let e={};return t.childNodes.forEach(i=>{e[i.slot||"default"]=!0}),e}var Yv="5";typeof window<"u"&&((window.__svelte??={}).v??=new Set).add(Yv);import{clientChecker as N3}from"@vkontakte/videoplayer-core/es2024";import"@vkontakte/videoplayer-core/es2024";import{noop as qh,safeStorage as B3,throttleFn as O3}from"@vkontakte/videoplayer-shared/es2024";import{SeekAction as H3}from"@vkontakte/videoplayer-statistics/es2024";import{InterfaceLanguage as c0,fillWithDefault as u0,VideoQuality as jv}from"@vkontakte/videoplayer-shared/es2024";var p0={isMobile:void 0,debugLog:!1,devNullLog:!1,defaultLanguage:c0.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:jv.Q_480P,highQualityLimit:jv.Q_720P,episodeMinWidthPc:8,hideThumbTimerAfterTouch:!0,preventPauseOnVideoClick:!1,sentry:{dsn:"https://e349fd23c68f405388980d0868d0ff27@sentry.mvk.com/126",sampleRate:.01,whiteErrorCategoryList:[],blackErrorCategoryList:[],whiteErrorIdList:[],blackErrorIdList:[]},features:{autoplay:!0,statistics:!0,sentry:!0,preload:!0,subtitles:!0,episodes:!0,fullscreen:!0,timelinePreview:!0,mediaSession:!0,annotations:!0,slots:!0,annotationsInside:!1,pip:!0,dpip:!0,download:!0,liveRewind:!0,playbackRate:!0,trafficSaving:!0,episodesClustering:!0,copyVideoLink:!0,videoRotate:!0,interactiveGraph:!1,interactiveResponsiveUi:!1,seekToInteractive:!0,interactiveLastFrame:!1,interactiveTextPermanent:!0,interactiveHideTime:!0,interactivePlayPrevChapter:!0,interactiveTimeIndicator:!0,interactiveTimeOpenUri:!1,interactiveAreaControlShadow:!1,interactiveControlsExpectTimeBlinkAnimation:!1,thumbTimer:!0,hotKeyMapModal:!0,hotKeyHelpers:!0,saveDebugInfoToFile:!1,saveTraceInfoToFile:!1,additionalButtons:!0,additionalButtonsDesktopControlPanelRight:!0,additionalSettingsMenuItems:!0,additionalContextMenuItems:!0,contextMenuButton:!0,audioLanguages:!1,saveRate:!1,fullscreenInternalTargetPlayerContainer:!1,endScreen:!0,autoplayNext:!0,nextPrevButtons:!0,previewNoEmptySpace:!1,exposeInternalsToGlobal:!1,skipInitialPlaybackRateValue:!1,qualityDetailsSubMenuEnabled:!1,showSlowVideoNotification:!1,forceAutoQualityWhenSevereStallHappens:!1,timeoutShowSlowVideoNotification:0,maxCountShowSlowVideoNotification:1,forcePlayerDisplayBlock:!1,playbackStatusAnimationDuration:1e3,playbackStatusShow:!1,playbackStatusNextVideoShow:!1,playbackStatusNextVideoAnimationDuration:1e3},controls:{showOnStartupAtAutoplay:!0,hideTimeout:500,hideTimeoutMobile:3e3,hideTimeoutInitial:200,hideTimeoutFullscreen:3e3,hideTimeoutCursor:3e3,hideTimeoutTooltips:1e3,collapseMobileUnmute:6e3,hide360IconTimeout:3e3,hideHotKeyHelpers:2e3,playbackRateMin:.25,playbackRateMax:2,playbackRateStep:.25,volumeStepKeyboard:.05,volumeStepWheel:.05,volumeBarTimeout:300,seekStepKeyboard:1e4,seekStepMobile:15e3,seekStepFrame:400},ads:{enable:void 0,initTimeout:2e3,loadTimeout:2e3,runtimeTimeout:5e3,slot:void 0,preview:void 0,isMobileGoToSiteButton:!0,useAdmanFromNPM:!1,volumeMultiplier:1,isVsidOriginal:!1},interactive:{historyMaxLength:100,noInteractionEventTimeout:3e4},view:{timelineSliderColor:null,timelineSliderHandleColor:null,timelineSliderFilledColor:null,timelineSliderLoadedColor:null,volumeSliderColor:null,volumeSliderHandleColor:null,volumeSliderFilledColor:null,controlsTimeColor:null,timelineSliderFilledActiveLiveColor:null,timelineSliderHandleActiveLiveColor:null,buttonColor:null,buttonToggleOnColor:null,focusedColor:null,focusedOutlineWidth:null,focusedOutlineRadius:null,controlsDesktopPaddingHorizontal:null,timelinePaddingHorizontal:null}},Zv=t=>u0(t,p0),Xv=t=>hs("ui-config",t),Rt=()=>gs("ui-config");var pl="vk_player_debug_panel_opened";var Jv="videoplayer",eg="videoplayer";var Mr={KeyF:"f",KeyK:"k",KeyC:"c",KeyM:"m"},tg=new Set(["ArrowLeft","ArrowRight","KeyL","KeyJ"]),ig=new Set(["Tab","Space","ArrowLeft","ArrowRight","ArrowUp","ArrowDown"]),og=new Set(["ShiftRight","ShiftLeft"]);var ng=["TIMELINE"],fl=[...ng,"GRAPH_BUTTON"],Yu=[...ng,"PLAY_BUTTON"],ml=[...fl,"PLAY_BUTTON"];var Lr=(a=>(a.XS="xs",a.S="s",a.M="m",a.L="l",a.XL="xl",a))(Lr||{}),La={xs:0,s:1,m:2,l:3,xl:4};import{assertNonNullable as rg,VERSION as f0}from"@vkontakte/videoplayer-shared/es2024";import{VERSION as m0}from"@vkontakte/videoplayer-core/es2024";import{VERSION as v0}from"@vkontakte/videoplayer-statistics/es2024";var Zd="prod",Ss="1.1.62-dev.96a1e2ab.0";var Va=(t,e,i)=>{let o=document.createElement("a");o.href=t,o.download=`${e}.${i}`,o.style.display="none",o.click()};var ag=Symbol("storeContext"),sg=Symbol("microStoresContext"),lg=(t,e)=>{hs(ag,t),hs(sg,e),Zd==="dev"&&(window.app={store:t,microStores:e})},be=()=>{let t=gs(ag);return rg(t,"Store context is empty!"),t},zi=()=>{let t=gs(sg);return rg(t,"MicroStores context is empty!"),t},Ut=(t,e)=>Jd(t,t.getValue(),e),Jd=(t,e,i)=>Kn(e,o=>{let n=t.subscribe(a=>{o(a),i?.(a)});return()=>n.unsubscribe()}),dg=(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=`${Ss} (core: ${m0}, stat: ${v0}, shared: ${f0})`,u=ve(i.state.errorLog$),_=u.length?`
49
+ `+u.map((I,M)=>{let P=`${M}) Type: ${I.id}
50
+ `,A=`Message: ${I.message} (${I.thrown})
51
51
  `,T=`Trace: ${I.thrown?.stack}
52
- `;return M+L+T}).join(`
53
- `):void 0,f=i.state.isAudioDisabled?"disabled":he(i.state.isAudioAvailable$)?void 0:"unavailable",$=t.info.currentVideoStream$.getValue(),x=t.info.currentAudioStream$.getValue(),w=[];$&&w.push(`Video: ${$?.codec??""}`+($?.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:he(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:`${he(i.state.positionExact$)}s`,State:`${he(i.playerPhase)} ${o.playbackState$.getValue()}`,"Player size":`${n}x${a}`,URL:window.location.href,Errors:_};return Object.entries(S).filter(([I,P])=>P!==void 0).map(([I,P])=>`${I}: ${P}`).join(`
54
- `)},fg=(t,e,i)=>{let o=t.info,{width:n,height:a}=he(i.ui.playerSize),s={version:Ts,viewport:`${n}x${a}`,volume:Math.round(he(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-he(i.state.positionExact$),0));let $=o.throughputEstimation$.getValue();$&&(s.speed=$);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 P=he(i.vsid);typeof P=="string"&&(s.vsid=P);let M=t.info.currentVideoStream$.getValue()?.codec;M&&(s.videoCodec=M);let L=t.info.currentAudioStream$.getValue()?.codec;L&&(s.audioCodec=L),t.info.currentVideoStream$.getValue()?.hdr&&(s.hdr=!0);let B=t.info.currentAudioStream$.getValue()?.language;return B&&(s.audioLanguage=B),s},mg=(t,e)=>Na(t,e,"mp4"),vg=t=>!t.type,gg=t=>!!t.type,hg=()=>{let e=[],i=0;return{add:(o,n)=>{e[i]=[o,n],i=(i+1)%10},find:o=>e.find(([n])=>n===o)}},ic=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 tp,safeStorage as io}from"@vkontakte/videoplayer-shared/es2024";import"@vkontakte/videoplayer-core/es2024";var _g="vk_player_prefer_traffic_saving_enabled",bg="vk_player_preferred_volume",$g="vk_player_prefer_volume_mute",ip="vk_player_preferred_quality",Ju="vk_player_preferred_default_quality_settings",ep="vk_player_preferred_quality_settings_by_video",yg="vk_player_preferred_stream_language",xg="vk_player_preferred_rate",wg="vk_player_preferred_autoplay_next",Sg=t=>t>1?1:t<0?0:t,op=t=>io.set(bg,Sg(t).toString(10)),nc=()=>{let t=io.get(bg);return tp(t)?void 0:Sg(parseFloat(t))},np=(t,e)=>io.set(ip,JSON.stringify({videoId:t,value:e})),xl=()=>io.remove(ip),rp=t=>{let e=io.get(ip);if(tp(e))return;let{videoId:i,value:o}=JSON.parse(e);if(t!==i){xl();return}return o},ap=(t,e)=>{e?io.set(t,"true"):io.remove(t)},sp=t=>io.get(t)==="true",lp=t=>ap($g,t),Cg=()=>sp($g),yl=t=>ap(_g,t),dp=()=>sp(_g),kg=()=>io.get(yg),cp=t=>io.set(yg,t),Tg=t=>io.set(xg,JSON.stringify({rate:t})),Ig=()=>{let t=io.get(xg);if(tp(t))return;let{rate:e}=JSON.parse(t);return e},Eg=t=>ap(wg,t),Pg=()=>sp(wg),b0=()=>{let t=u=>{io.set(Ju,JSON.stringify(u))},e=()=>{try{let u=io.get(Ju);return u?JSON.parse(u):null}catch{return null}},i=()=>{try{let u=io.get(ep);return u?JSON.parse(u):null}catch{return null}},o=u=>{io.set(ep,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=()=>{io.remove(ep)},s=()=>{io.remove(Ju)},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":yl(!0);break;case"exact_quality":np(u,_.quality)}a(),s()}},c=u=>{let _=rp(u);if(_){o({type:"exact_quality",videoId:u,quality:_});return}dp()&&t({type:"traffic_saving",videoId:u}),yl(!1),xl()};return{getPreferredQualitySettings:n,migrateSettingsToLegacyWay:l,savePreferredQualitySettings:d,savePreferredDefaultQualitySettings:t,removePreferredQualitySettingsByVideo:a,getPreferredDefaultQualitySettings:e}},{getPreferredQualitySettings:Ag,migrateSettingsToLegacyWay:Mg,savePreferredQualitySettings:rc,savePreferredDefaultQualitySettings:lP,removePreferredQualitySettingsByVideo:dP,getPreferredDefaultQualitySettings:ac}=b0();import{PlaybackState as Wh}from"@vkontakte/videoplayer-core/es2024";var $0=ve('<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 wl(t,e){let i=Ce(e,["$$slots","$$events","$$legacy","children"]);var o=$0();let n;var a=h(o);pe(a,()=>e.children??te),me(2),g(o),C(()=>n=xe(o,n,{xmlns:"http://www.w3.org/2000/svg",width:"76",height:"45",fill:"none","data-testid":"video-360-icon",role:"img",...i})),b(t,o)}import{isNullable as Rg,InterfaceLanguage as Ng}from"@vkontakte/videoplayer-shared/es2024";var y0={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
+ `;return P+A+T}).join(`
53
+ `):void 0,f=i.state.isAudioDisabled?"disabled":ve(i.state.isAudioAvailable$)?void 0:"unavailable",$=t.info.currentVideoStream$.getValue(),x=t.info.currentAudioStream$.getValue(),w=[];$&&w.push(`Video: ${$?.codec??""}`+($?.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,M])=>M!==void 0).map(([I,M])=>`${I}: ${M}`).join(`
54
+ `)},cg=(t,e,i)=>{let o=t.info,{width:n,height:a}=ve(i.ui.playerSize),s={version:Ss,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 $=o.throughputEstimation$.getValue();$&&(s.speed=$);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 M=ve(i.vsid);typeof M=="string"&&(s.vsid=M);let P=t.info.currentVideoStream$.getValue()?.codec;P&&(s.videoCodec=P);let A=t.info.currentAudioStream$.getValue()?.codec;A&&(s.audioCodec=A),t.info.currentVideoStream$.getValue()?.hdr&&(s.hdr=!0);let B=t.info.currentAudioStream$.getValue()?.language;return B&&(s.audioLanguage=B),s},ug=(t,e)=>Va(t,e,"mp4"),pg=t=>!t.type,fg=t=>!!t.type,mg=()=>{let e=[],i=0;return{add:(o,n)=>{e[i]=[o,n],i=(i+1)%10},find:o=>e.find(([n])=>n===o)}},Xd=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 Xu,safeStorage as eo}from"@vkontakte/videoplayer-shared/es2024";import"@vkontakte/videoplayer-core/es2024";var vg="vk_player_prefer_traffic_saving_enabled",gg="vk_player_preferred_volume",hg="vk_player_prefer_volume_mute",Ju="vk_player_preferred_quality",ju="vk_player_preferred_default_quality_settings",Zu="vk_player_preferred_quality_settings_by_video",_g="vk_player_preferred_stream_language",bg="vk_player_preferred_rate",$g="vk_player_preferred_autoplay_next",yg=t=>t>1?1:t<0?0:t,ep=t=>eo.set(gg,yg(t).toString(10)),ec=()=>{let t=eo.get(gg);return Xu(t)?void 0:yg(parseFloat(t))},tp=(t,e)=>eo.set(Ju,JSON.stringify({videoId:t,value:e})),gl=()=>eo.remove(Ju),ip=t=>{let e=eo.get(Ju);if(Xu(e))return;let{videoId:i,value:o}=JSON.parse(e);if(t!==i){gl();return}return o},op=(t,e)=>{e?eo.set(t,"true"):eo.remove(t)},np=t=>eo.get(t)==="true",rp=t=>op(hg,t),xg=()=>np(hg),vl=t=>op(vg,t),ap=()=>np(vg),wg=()=>eo.get(_g),sp=t=>eo.set(_g,t),Sg=t=>eo.set(bg,JSON.stringify({rate:t})),Cg=()=>{let t=eo.get(bg);if(Xu(t))return;let{rate:e}=JSON.parse(t);return e},kg=t=>op($g,t),Tg=()=>np($g),g0=()=>{let t=u=>{eo.set(ju,JSON.stringify(u))},e=()=>{try{let u=eo.get(ju);return u?JSON.parse(u):null}catch{return null}},i=()=>{try{let u=eo.get(Zu);return u?JSON.parse(u):null}catch{return null}},o=u=>{eo.set(Zu,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=()=>{eo.remove(Zu)},s=()=>{eo.remove(ju)},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":tp(u,_.quality)}a(),s()}},c=u=>{let _=ip(u);if(_){o({type:"exact_quality",videoId:u,quality:_});return}ap()&&t({type:"traffic_saving",videoId:u}),vl(!1),gl()};return{getPreferredQualitySettings:n,migrateSettingsToLegacyWay:l,savePreferredQualitySettings:d,savePreferredDefaultQualitySettings:t,removePreferredQualitySettingsByVideo:a,getPreferredDefaultQualitySettings:e}},{getPreferredQualitySettings:Ig,migrateSettingsToLegacyWay:Eg,savePreferredQualitySettings:tc,savePreferredDefaultQualitySettings:YE,removePreferredQualitySettingsByVideo:jE,getPreferredDefaultQualitySettings:ic}=g0();import{PlaybackState as Uh}from"@vkontakte/videoplayer-core/es2024";var h0=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=Se(e,["$$slots","$$events","$$legacy","children"]);var o=h0();let n;var a=h(o);ue(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 Mg,InterfaceLanguage as Lg}from"@vkontakte/videoplayer-shared/es2024";var _0={auto_quality_invariant:"\u0410\u0432\u0442\u043E",auto_quality:"\u0410\u0432\u0442\u043E ({actual})",auto_quality_option:"\u0410\u0432\u0442\u043E",other_quality:"\u0414\u0440\u0443\u0433\u043E\u0435",high_quality:"\u0412\u044B\u0441\u043E\u043A\u043E\u0435 \u043A\u0430\u0447\u0435\u0441\u0442\u0432\u043E",high_quality_description:"\u0411\u0443\u0434\u0435\u0442 \u0438\u0441\u043F\u043E\u043B\u044C\u0437\u043E\u0432\u0430\u043D\u043E \u0431\u043E\u043B\u044C\u0448\u0435 \u0442\u0440\u0430\u0444\u0438\u043A\u0430",auto_quality_limit:"\u0410\u0432\u0442\u043E\u043C\u0430\u0442\u0438\u0447\u0435\u0441\u043A\u0438",traffic_saving_quality:"\u042D\u043A\u043E\u043D\u043E\u043C\u0438\u044F \u0442\u0440\u0430\u0444\u0438\u043A\u0430",traffic_saving_quality_description:"\u0412\u0438\u0434\u0435\u043E \u0433\u0440\u0443\u0437\u044F\u0442\u0441\u044F \u0431\u044B\u0441\u0442\u0440\u0435\u0435, \u043D\u043E \u043A\u0430\u0447\u0435\u0441\u0442\u0432\u043E \u043D\u0438\u0436\u0435",default_quality_for_any_video:"\u041A\u0430\u0447\u0435\u0441\u0442\u0432\u043E \u0434\u043B\u044F \u0432\u0441\u0435\u0445 \u0432\u0438\u0434\u0435\u043E",quality_applience:"\u041A\u0430\u0447\u0435\u0441\u0442\u0432\u043E \u043F\u043E \u0443\u043C\u043E\u043B\u0447\u0430\u043D\u0438\u044E \u043C\u043E\u0436\u043D\u043E\xA0{action}",quality_applience_action:"\u0438\u0437\u043C\u0435\u043D\u0438\u0442\u044C",menu_quality:"\u041A\u0430\u0447\u0435\u0441\u0442\u0432\u043E",menu_traffic_saving:"\u042D\u043A\u043E\u043D\u043E\u043C\u0438\u044F \u0434\u0430\u043D\u043D\u044B\u0445",menu_playback_rate:"\u0421\u043A\u043E\u0440\u043E\u0441\u0442\u044C",menu_report:"\u0421\u043E\u043E\u0431\u0449\u0438\u0442\u044C \u043E \u043F\u0440\u043E\u0431\u043B\u0435\u043C\u0435",menu_pip:"\u041A\u0430\u0440\u0442\u0438\u043D\u043A\u0430 \u0432 \u043A\u0430\u0440\u0442\u0438\u043D\u043A\u0435",menu_copy_video_link:"\u0421\u043A\u043E\u043F\u0438\u0440\u043E\u0432\u0430\u0442\u044C \u0441\u0441\u044B\u043B\u043A\u0443 \u043D\u0430 \u0432\u0438\u0434\u0435\u043E",menu_copy_video_link_with_timestamp:"\u0421\u043A\u043E\u043F\u0438\u0440\u043E\u0432\u0430\u0442\u044C \u0441\u0441\u044B\u043B\u043A\u0443 \u043D\u0430 \u043A\u0430\u0434\u0440",menu_video_rotate:"\u041F\u043E\u0432\u0435\u0440\u043D\u0443\u0442\u044C",menu_video_loop_on:"\u0412\u043A\u043B\u044E\u0447\u0438\u0442\u044C \u043F\u043E\u0432\u0442\u043E\u0440\u0435\u043D\u0438\u0435",menu_video_loop_off:"\u041E\u0442\u043A\u043B\u044E\u0447\u0438\u0442\u044C \u043F\u043E\u0432\u0442\u043E\u0440\u0435\u043D\u0438\u0435",menu_chromecast:"Chromecast \u0442\u0440\u0430\u043D\u0441\u043B\u044F\u0446\u0438\u044F",menu_copy_debug:"\u041A\u043E\u043F\u0438\u0440\u043E\u0432\u0430\u0442\u044C \u0434\u0430\u043D\u043D\u044B\u0435 \u0434\u043B\u044F \u0434\u0438\u0430\u0433\u043D\u043E\u0441\u0442\u0438\u043A\u0438",menu_save_debug:"\u0421\u043E\u0445\u0440\u0430\u043D\u0438\u0442\u044C \u0434\u0430\u043D\u043D\u044B\u0435 \u0434\u043B\u044F \u0434\u0438\u0430\u0433\u043D\u043E\u0441\u0442\u0438\u043A\u0438",menu_debug_overlay:"\u0422\u0435\u0445\u043D\u0438\u0447\u0435\u0441\u043A\u0430\u044F \u0438\u043D\u0444\u043E\u0440\u043C\u0430\u0446\u0438\u044F",menu_copy_embed_code:"\u041A\u043E\u043F\u0438\u0440\u043E\u0432\u0430\u0442\u044C \u043A\u043E\u0434 \u0434\u043B\u044F \u0432\u0441\u0442\u0440\u0430\u0438\u0432\u0430\u043D\u0438\u044F",menu_audio_languages:"\u0417\u0432\u0443\u043A\u043E\u0432\u0430\u044F \u0434\u043E\u0440\u043E\u0436\u043A\u0430",audio_stream_display_language_label:"{label} ({language})",audio_stream_display_language_label_index:"{label} {index} ({language})",audio_stream_display_label_index:"{label} {index}",audio_stream_display_language_index:"{language} {index}",audio_stream_display_unknown:"\u0414\u043E\u0440\u043E\u0436\u043A\u0430 {index}",pip_dummy_title:"\u0412\u0438\u0434\u0435\u043E \u0432\u043E\u0441\u043F\u0440\u043E\u0438\u0437\u0432\u043E\u0434\u0438\u0442\u0441\u044F \u0432 \u0440\u0435\u0436\u0438\u043C\u0435 \u043A\u0430\u0440\u0442\u0438\u043D\u043A\u0430 \u0432 \u043A\u0430\u0440\u0442\u0438\u043D\u043A\u0435",submenu_quality:"\u041A\u0430\u0447\u0435\u0441\u0442\u0432\u043E",submenu_playback_rate:"\u0421\u043A\u043E\u0440\u043E\u0441\u0442\u044C",submenu_settings:"\u041D\u0430\u0441\u0442\u0440\u043E\u0439\u043A\u0438",submenu_traffic_saving:"\u042D\u043A\u043E\u043D\u043E\u043C\u0438\u044F \u0434\u0430\u043D\u043D\u044B\u0445",submenu_audio_languages:"\u0417\u0432\u0443\u043A\u043E\u0432\u0430\u044F \u0434\u043E\u0440\u043E\u0436\u043A\u0430",mobile_unmute:"\u0412\u043A\u043B\u044E\u0447\u0438\u0442\u044C \u0437\u0432\u0443\u043A",playing_ads:"\u0420\u0435\u043A\u043B\u0430\u043C\u0430 {timeleft}",skip_ads_now:"\u041F\u0440\u043E\u043F\u0443\u0441\u0442\u0438\u0442\u044C \u0440\u0435\u043A\u043B\u0430\u043C\u0443",skip_ads_after:"\u041F\u0440\u043E\u043F\u0443\u0441\u0442\u0438\u0442\u044C {time}\u0441",visit_advertiser:"\u041F\u0435\u0440\u0435\u0439\u0442\u0438 \u043D\u0430 \u0441\u0430\u0439\u0442",aria_timeline:"\u041F\u043E\u043B\u0437\u0443\u043D\u043E\u043A \u0432\u0440\u0435\u043C\u0435\u043D\u043D\u043E\u0439 \u0448\u043A\u0430\u043B\u044B",aria_timeline_value:"{position} (\u043E\u0431\u0449\u0430\u044F \u0434\u043B\u0438\u0442\u0435\u043B\u044C\u043D\u043E\u0441\u0442\u044C {duration}",aria_open_settings:"\u041E\u0442\u043A\u0440\u044B\u0442\u044C \u043D\u0430\u0441\u0442\u0440\u043E\u0439\u043A\u0438 \u0432\u0438\u0434\u0435\u043E\u043F\u043B\u0435\u0435\u0440\u0430",doubletap_seek_step:"{seconds} \u0441\u0435\u043A\u0443\u043D\u0434",playback_rate_1:"\u041E\u0431\u044B\u0447\u043D\u0430\u044F",playback_rate:"{multiplier}x",video360:"\u043F\u0430\u043D\u043E\u0440\u0430\u043C\u043D\u043E\u0435 \u0432\u0438\u0434\u0435\u043E",subtitles_caption:"\u0421\u0443\u0431\u0442\u0438\u0442\u0440\u044B",subtitles_auto:"{language} (\u0410\u0432\u0442\u043E\u043C\u0430\u0442\u0438\u0447\u0435\u0441\u043A\u0438\u0435)",subtitles_off:"\u0412\u044B\u043A\u043B.",subtitles_auto_caption:"\u0410\u0432\u0442\u043E\u043C\u0430\u0442\u0438\u0447\u0435\u0441\u043A\u0438\u0435 \u0441\u0443\u0431\u0442\u0438\u0442\u0440\u044B",subtitles_turn_on:"\u0412\u043A\u043B\u044E\u0447\u0438\u0442\u044C \u0441\u0443\u0431\u0442\u0438\u0442\u0440\u044B",subtitles_turn_off:"\u0412\u044B\u043A\u043B\u044E\u0447\u0438\u0442\u044C \u0441\u0443\u0431\u0442\u0438\u0442\u0440\u044B",traffic_saving_off:"\u041E\u0442\u043A\u043B.",traffic_saving_on:"\u0412\u043A\u043B.",traffic_saving_disable:"\u041E\u0442\u043A\u043B\u044E\u0447\u0435\u043D\u0430",traffic_saving_enable:"\u0412\u043A\u043B\u044E\u0447\u0435\u043D\u0430",traffic_saving_helper_text:"\u041F\u0440\u0438 \u0432\u043A\u043B\u044E\u0447\u0435\u043D\u0438\u0438 \u043A\u0430\u0447\u0435\u0441\u0442\u0432\u043E \u0432\u0438\u0434\u0435\u043E \u0431\u0443\u0434\u0435\u0442 \u0441\u043D\u0438\u0436\u0435\u043D\u043E \u0434\u043B\u044F \u044D\u043A\u043E\u043D\u043E\u043C\u0438\u0438 \u0442\u0440\u0430\u0444\u0438\u043A\u0430",tooltip_button_disabled:"\u041A\u043D\u043E\u043F\u043A\u0430 \u043D\u0435\u0434\u043E\u0441\u0442\u0443\u043F\u043D\u0430",tooltip_previous:"\u041F\u0440\u0435\u0434\u044B\u0434\u0443\u0449\u0435\u0435 \u0432\u0438\u0434\u0435\u043E",tooltip_restart:"\u041D\u0430\u0447\u0430\u0442\u044C \u0437\u0430\u043D\u043E\u0432\u043E",tooltip_play:"\u0421\u043C\u043E\u0442\u0440\u0435\u0442\u044C",tooltip_pause:"\u041F\u0430\u0443\u0437\u0430",tooltip_next:"\u0421\u043B\u0435\u0434\u0443\u044E\u0449\u0435\u0435 \u0432\u0438\u0434\u0435\u043E",tooltip_interactive_go_back:"\u0412\u0435\u0440\u043D\u0443\u0442\u044C\u0441\u044F \u043A \u043F\u0440\u0435\u0434\u044B\u0434\u0443\u0449\u0435\u0439 \u0433\u043B\u0430\u0432\u0435",tooltip_interactive_go_back_disabled:"\u0418\u0441\u0442\u043E\u0440\u0438\u044F \u043F\u0440\u043E\u0445\u043E\u0436\u0434\u0435\u043D\u0438\u044F \u043D\u0435\u0434\u043E\u0441\u0442\u0443\u043F\u043D\u0430",tooltip_interactive_go_back_disabled_first:"\u0412\u044B \u0441\u043C\u043E\u0442\u0440\u0438\u0442\u0435 \u043F\u0435\u0440\u0432\u0443\u044E \u0433\u043B\u0430\u0432\u0443",tooltip_interactive_go_back_disabled_limit:"\u041B\u0438\u043C\u0438\u0442 \u0432\u043E\u0437\u0432\u0440\u0430\u0442\u043E\u0432 \u0438\u0441\u0447\u0435\u0440\u043F\u0430\u043D",tooltip_chapter_without_interactive:"\u0412 \u044D\u0442\u043E\u0439 \u0433\u043B\u0430\u0432\u0435 \u043D\u0435\u0442 \u0438\u043D\u0442\u0435\u0440\u0430\u043A\u0442\u0438\u0432\u0430",tooltip_interactive_of_chapter_completed:"\u0418\u043D\u0442\u0435\u0440\u0430\u043A\u0442\u0438\u0432\u044B \u044D\u0442\u043E\u0439 \u0433\u043B\u0430\u0432\u044B \u0443\u0436\u0435 \u043F\u0440\u043E\u0439\u0434\u0435\u043D\u044B",tooltip_interactive_seek:"\u041F\u0435\u0440\u0435\u0439\u0442\u0438 \u043A \u0438\u043D\u0442\u0435\u0440\u0430\u043A\u0442\u0438\u0432\u0443",tooltip_interactive_graph_off:"\u041F\u043E\u043A\u0430\u0437\u0430\u0442\u044C \u043A\u0430\u0440\u0442\u0443 \u0441\u044E\u0436\u0435\u0442\u0430",tooltip_interactive_graph_on:"\u0421\u043A\u0440\u044B\u0442\u044C \u043A\u0430\u0440\u0442\u0443 \u0441\u044E\u0436\u0435\u0442\u0430",tooltip_live:"\u041F\u0435\u0440\u0435\u043C\u043E\u0442\u0430\u0442\u044C \u043D\u0430 \u0430\u043A\u0442\u0443\u0430\u043B\u044C\u043D\u044B\u0439 \u043B\u0430\u0439\u0432",tooltip_episodes:"\u042D\u043F\u0438\u0437\u043E\u0434\u044B",tooltip_volume:"\u0412\u043A\u043B\u044E\u0447\u0438\u0442\u044C \u0437\u0432\u0443\u043A",tooltip_volume_muted:"\u0412\u044B\u043A\u043B\u044E\u0447\u0438\u0442\u044C \u0437\u0432\u0443\u043A",tooltip_subtitles_off:"\u0412\u043A\u043B\u044E\u0447\u0438\u0442\u044C \u0441\u0443\u0431\u0442\u0438\u0442\u0440\u044B",tooltip_subtitles_on:"\u0412\u044B\u043A\u043B\u044E\u0447\u0438\u0442\u044C \u0441\u0443\u0431\u0442\u0438\u0442\u0440\u044B",tooltip_settings_off:"\u041E\u0442\u043A\u0440\u044B\u0442\u044C \u043D\u0430\u0441\u0442\u0440\u043E\u0439\u043A\u0438",tooltip_settings_on:"\u0417\u0430\u043A\u0440\u044B\u0442\u044C \u043D\u0430\u0441\u0442\u0440\u043E\u0439\u043A\u0438",tooltip_fullscreen_off:"\u041D\u0430 \u0432\u0435\u0441\u044C \u044D\u043A\u0440\u0430\u043D",tooltip_fullscreen_on:"\u0412\u044B\u0439\u0442\u0438 \u0438\u0437 \u043F\u043E\u043B\u043D\u043E\u044D\u043A\u0440\u0430\u043D\u043D\u043E\u0433\u043E \u0440\u0435\u0436\u0438\u043C\u0430",tooltip_chromecast_off:"\u0412\u043A\u043B\u044E\u0447\u0438\u0442\u044C Chromecast",tooltip_chromecast_on:"\u0412\u044B\u043A\u043B\u044E\u0447\u0438\u0442\u044C Chromecast",tooltip_episode_finished:"\u0412\u044B \u0443\u0436\u0435 \u0441\u0434\u0435\u043B\u0430\u043B\u0438 \u0441\u0432\u043E\u0439 \u0432\u044B\u0431\u043E\u0440",tooltip_episode_unfinished:"\u041D\u0435 \u043F\u0440\u043E\u0439\u0434\u0435\u043D\u043E",tooltip_disabled_when_interactive:"\u0418\u043D\u0442\u0435\u0440\u0430\u043A\u0442\u0438\u0432 \u0443\u0436\u0435 \u0438\u0434\u0451\u0442",tooltip_disabled_when_graph_on:"\u041A\u043D\u043E\u043F\u043A\u0430 \u043D\u0435\u0434\u043E\u0441\u0442\u0443\u043F\u043D\u0430 \u0432\u043E \u0432\u0440\u0435\u043C\u044F \u043F\u0440\u043E\u0441\u043C\u043E\u0442\u0440\u0430 \u043A\u0430\u0440\u0442\u044B",tooltip_interactive_interaction_time_indicator:"\u041D\u0430\u0436\u043C\u0438\u0442\u0435 \u043D\u0430 \u044D\u043B\u0435\u043C\u0435\u043D\u0442 \u0438\u043D\u0442\u0435\u0440\u0430\u043A\u0442\u0438\u0432\u0430",tooltip_vk_logo:"\u041E\u0442\u043A\u0440\u044B\u0442\u044C \u0432 VK \u0412\u0438\u0434\u0435\u043E",tooltip_vk_video_logo:"\u041F\u0435\u0440\u0435\u0439\u0442\u0438 \u0432 VK \u0412\u0438\u0434\u0435\u043E",tooltip_autoplay_off:"\u0412\u043A\u043B\u044E\u0447\u0438\u0442\u044C \u0430\u0432\u0442\u043E\u0432\u043E\u0441\u043F\u0440\u043E\u0438\u0437\u0432\u0435\u0434\u0435\u043D\u0438\u0435",tooltip_autoplay_on:"\u041E\u0442\u043A\u043B\u044E\u0447\u0438\u0442\u044C \u0430\u0432\u0442\u043E\u0432\u043E\u0441\u043F\u0440\u043E\u0438\u0437\u0432\u0435\u0434\u0435\u043D\u0438\u0435",download_video_caption:"\u0421\u043A\u0430\u0447\u0430\u0442\u044C \u0432\u0438\u0434\u0435\u043E",hotkey_helper_current_volume:"{value} %",hotkey_map_modal_title:"\u0411\u044B\u0441\u0442\u0440\u044B\u0435 \u043A\u043B\u0430\u0432\u0438\u0448\u0438",hotkey_map_modal_close_btn_text:"\u0417\u0430\u043A\u0440\u044B\u0442\u044C",hotkey_map_group_title_common:"\u041E\u0431\u0449\u0438\u0435",hotkey_map_group_title_playback:"\u0412\u043E\u0441\u043F\u0440\u043E\u0438\u0437\u0432\u0435\u0434\u0435\u043D\u0438\u0435",hotkey_map_group_title_subtitles:"\u0421\u0443\u0431\u0442\u0438\u0442\u0440\u044B",hotkey_map_group_title_episodes:"\u042D\u043F\u0438\u0437\u043E\u0434\u044B",hotkey_map_item_mute_description:"\u0412\u043A\u043B\u044E\u0447\u0438\u0442\u044C \u0438\u043B\u0438 \u043E\u0442\u043A\u043B\u044E\u0447\u0438\u0442\u044C \u0437\u0432\u0443\u043A",hotkey_map_item_mute_value:"m",hotkey_map_item_volume_up_description:"\u0423\u0432\u0435\u043B\u0438\u0447\u0438\u0442\u044C \u0433\u0440\u043E\u043C\u043A\u043E\u0441\u0442\u044C",hotkey_map_item_volume_up_value:"\u0421\u0442\u0440\u0435\u043B\u043A\u0430 \u0432\u0432\u0435\u0440\u0445",hotkey_map_item_volume_down_description:"\u0423\u043C\u0435\u043D\u044C\u0448\u0438\u0442\u044C \u0433\u0440\u043E\u043C\u043A\u043E\u0441\u0442\u044C",hotkey_map_item_volume_down_value:"\u0421\u0442\u0440\u0435\u043B\u043A\u0430 \u0432\u043D\u0438\u0437",hotkey_map_item_pip_description:"\u0421\u0432\u0435\u0440\u043D\u0443\u0442\u044C \u0438\u043B\u0438 \u0440\u0430\u0437\u0432\u0435\u0440\u043D\u0443\u0442\u044C \u043C\u0438\u043D\u0438-\u043F\u0440\u043E\u0438\u0433\u0440\u044B\u0432\u0430\u0442\u0435\u043B\u044C",hotkey_map_item_pip_value:"i",hotkey_map_item_full_screen_description:"\u0412\u043A\u043B\u044E\u0447\u0438\u0442\u044C \u0438\u043B\u0438 \u0432\u044B\u043A\u043B\u044E\u0447\u0438\u0442\u044C \u043F\u043E\u043B\u043D\u043E\u044D\u043A\u0440\u0430\u043D\u043D\u044B\u0439 \u0440\u0435\u0436\u0438\u043C",hotkey_map_item_full_screen_value:"f",hotkey_map_item_show_context_menu_description:"\u0421\u043A\u0440\u044B\u0442\u044C \u0438\u043B\u0438 \u043F\u043E\u043A\u0430\u0437\u0430\u0442\u044C \u043A\u043E\u043D\u0442\u0435\u043A\u0441\u0442\u043D\u043E\u0435 \u043C\u0435\u043D\u044E",hotkey_map_item_show_context_menu_value:"Shift + !",hotkey_map_item_show_hotkey_map_description:"\u0421\u043A\u0440\u044B\u0442\u044C \u0438\u043B\u0438 \u043F\u043E\u043A\u0430\u0437\u0430\u0442\u044C \u0441\u043F\u0438\u0441\u043E\u043A \u0433\u043E\u0440\u044F\u0447\u0438\u0445 \u043A\u043B\u0430\u0432\u0438\u0448",hotkey_map_item_show_hotkey_map_value:"Shift + ?",hotkey_map_item_play_toggle_description:"\u041F\u0440\u0438\u043E\u0441\u0442\u0430\u043D\u043E\u0432\u0438\u0442\u044C \u0438\u043B\u0438 \u043F\u0440\u043E\u0434\u043E\u043B\u0436\u0438\u0442\u044C \u0432\u043E\u0441\u043F\u0440\u043E\u0438\u0437\u0432\u0435\u0434\u0435\u043D\u0438\u0435",hotkey_map_item_play_toggle_value:"\u041F\u0440\u043E\u0431\u0435\u043B (\u0438\u043B\u0438 k)",hotkey_map_item_seek_backward_description:"\u041F\u0435\u0440\u0435\u043C\u043E\u0442\u0430\u0442\u044C \u0440\u043E\u043B\u0438\u043A \u043D\u0430 10 \u0441\u0435\u043A\u0443\u043D\u0434 \u043D\u0430\u0437\u0430\u0434",hotkey_map_item_seek_backward_value:"\u0421\u0442\u0440\u0435\u043B\u043A\u0430 \u0432\u043B\u0435\u0432\u043E (\u0438\u043B\u0438 j)",hotkey_map_item_seek_forward_description:"\u041F\u0435\u0440\u0435\u043C\u043E\u0442\u0430\u0442\u044C \u0440\u043E\u043B\u0438\u043A \u043D\u0430 10 \u0441\u0435\u043A\u0443\u043D\u0434 \u0432\u043F\u0435\u0440\u0451\u0434",hotkey_map_item_seek_forward_value:"\u0421\u0442\u0440\u0435\u043B\u043A\u0430 \u0432\u043F\u0440\u0430\u0432\u043E (\u0438\u043B\u0438 l)",hotkey_map_item_fast_seek_backward_description:"\u0423\u0441\u043A\u043E\u0440\u0435\u043D\u043D\u0430\u044F \u043F\u0435\u0440\u0435\u043C\u043E\u0442\u043A\u0430 \u043D\u0430\u0437\u0430\u0434",hotkey_map_item_fast_seek_backward_value:"Shift + \u0421\u0442\u0440\u0435\u043B\u043A\u0430 \u0432\u043B\u0435\u0432\u043E",hotkey_map_item_fast_seek_forward_description:"\u0423\u0441\u043A\u043E\u0440\u0435\u043D\u043D\u0430\u044F \u043F\u0435\u0440\u0435\u043C\u043E\u0442\u043A\u0430 \u0432\u043F\u0435\u0440\u0451\u0434",hotkey_map_item_fast_seek_forward_value:"Shift + \u0421\u0442\u0440\u0435\u043B\u043A\u0430 \u0432\u043F\u0440\u0430\u0432\u043E",hotkey_map_item_rate_down_description:"\u0423\u043C\u0435\u043D\u044C\u0448\u0438\u0442\u044C \u0441\u043A\u043E\u0440\u043E\u0441\u0442\u044C \u0432\u043E\u0441\u043F\u0440\u043E\u0438\u0437\u0432\u0435\u0434\u0435\u043D\u0438\u044F",hotkey_map_item_rate_down_value:"< (Shift + ,)",hotkey_map_item_rate_up_description:"\u0423\u0432\u0435\u043B\u0438\u0447\u0438\u0442\u044C \u0441\u043A\u043E\u0440\u043E\u0441\u0442\u044C \u0432\u043E\u0441\u043F\u0440\u043E\u0438\u0437\u0432\u0435\u0434\u0435\u043D\u0438\u044F",hotkey_map_item_rate_up_value:"> (Shift + .)",hotkey_map_item_prev_frame_description:"\u041F\u0435\u0440\u0435\u0439\u0442\u0438 \u043A \u043F\u0440\u0435\u0434\u044B\u0434\u0443\u0449\u0435\u043C\u0443 \u043A\u0430\u0434\u0440\u0443 <br />(\u043A\u043E\u0433\u0434\u0430 \u0432\u043E\u0441\u043F\u0440\u043E\u0438\u0437\u0432\u0435\u0434\u0435\u043D\u0438\u0435 \u043F\u0440\u0438\u043E\u0441\u0442\u0430\u043D\u043E\u0432\u043B\u0435\u043D\u043E)",hotkey_map_item_prev_frame_value:",",hotkey_map_item_next_frame_description:"\u041F\u0435\u0440\u0435\u0439\u0442\u0438 \u043A \u0441\u043B\u0435\u0434\u0443\u044E\u0449\u0435\u043C\u0443 \u043A\u0430\u0434\u0440\u0443 <br />(\u043A\u043E\u0433\u0434\u0430 \u0432\u043E\u0441\u043F\u0440\u043E\u0438\u0437\u0432\u0435\u0434\u0435\u043D\u0438\u0435 \u043F\u0440\u0438\u043E\u0441\u0442\u0430\u043D\u043E\u0432\u043B\u0435\u043D\u043E)",hotkey_map_item_next_frame_value:".",hotkey_map_item_jump_seek_description:"\u041F\u0435\u0440\u0435\u0439\u0442\u0438 \u043A \u043E\u043F\u0440\u0435\u0434\u0435\u043B\u0451\u043D\u043D\u043E\u043C\u0443 \u043C\u043E\u043C\u0435\u043D\u0442\u0443 \u0432\u0438\u0434\u0435\u043E <br />(\u043D\u0430\u043F\u0440\u0438\u043C\u0435\u0440, \u043F\u0440\u0438 \u043D\u0430\u0436\u0430\u0442\u0438\u0438 \u043D\u0430 \u0446\u0438\u0444\u0440\u0443 \xAB7\xBB \u0440\u043E\u043B\u0438\u043A \u0431\u0443\u0434\u0435\u0442 \u043F\u0435\u0440\u0435\u043C\u043E\u0442\u0430\u043D \u0434\u043E \u0432\u0440\u0435\u043C\u0435\u043D\u043D\u043E\u0439 \u043E\u0442\u043C\u0435\u0442\u043A\u0438, \u043A\u043E\u0442\u043E\u0440\u0430\u044F \u0441\u043E\u043E\u0442\u0432\u0435\u0442\u0441\u0442\u0432\u0443\u0435\u0442 70% \u043E\u0442 \u0434\u043B\u0438\u0442\u0435\u043B\u044C\u043D\u043E\u0441\u0442\u0438 \u0432\u0438\u0434\u0435\u043E)",hotkey_map_item_jump_seek_value:"0, 1, 2, 3, 4, 5, 6, 7, 8, 9",hotkey_map_item_subtitles_toggle_description:"\u0412\u043A\u043B\u044E\u0447\u0438\u0442\u044C \u0438\u043B\u0438 \u043E\u0442\u043A\u043B\u044E\u0447\u0438\u0442\u044C \u0441\u0443\u0431\u0442\u0438\u0442\u0440\u044B",hotkey_map_item_subtitles_toggle_value:"c",hotkey_map_item_prev_episode_description:"\u041F\u0435\u0440\u0435\u0439\u0442\u0438 \u043A \u043F\u0440\u0435\u0434\u044B\u0434\u0443\u0449\u0435\u043C\u0443 \u044D\u043F\u0438\u0437\u043E\u0434\u0443",hotkey_map_item_prev_episode_pc_value:"Ctrl + \u0421\u0442\u0440\u0435\u043B\u043A\u0430 \u0432\u043B\u0435\u0432\u043E",hotkey_map_item_prev_episode_mac_value:"Option + \u0421\u0442\u0440\u0435\u043B\u043A\u0430 \u0432\u043B\u0435\u0432\u043E",hotkey_map_item_next_episode_description:"\u041F\u0435\u0440\u0435\u0439\u0442\u0438 \u043A \u0441\u043B\u0435\u0434\u0443\u044E\u0449\u0435\u043C\u0443 \u044D\u043F\u0438\u0437\u043E\u0434\u0443",hotkey_map_item_next_episode_pc_value:"Ctrl + \u0421\u0442\u0440\u0435\u043B\u043A\u0430 \u0432\u043F\u0440\u0430\u0432\u043E",hotkey_map_item_next_episode_mac_value:"Option + \u0421\u0442\u0440\u0435\u043B\u043A\u0430 \u0432\u043F\u0440\u0430\u0432\u043E",hotkey_map_item_next_video_description:"\u041F\u0435\u0440\u0435\u0439\u0442\u0438 \u043A \u0441\u043B\u0435\u0434\u0443\u044E\u0449\u0435\u043C\u0443 \u0432\u0438\u0434\u0435\u043E",hotkey_map_item_next_video_value:"Shift + N",hotkey_map_item_prev_video_description:"\u041F\u0435\u0440\u0435\u0439\u0442\u0438 \u043A \u043F\u0440\u0435\u0434\u044B\u0434\u0443\u0449\u0435\u043C\u0443 \u0432\u0438\u0434\u0435\u043E",hotkey_map_item_prev_video_value:"Shift + P",waiting_live_day_value:"\u0434\u043D",waiting_live_hour_value:"\u0447",waiting_live_minute_value:"\u043C\u0438\u043D",waiting_live_second_value:"\u0441\u0435\u043A",waiting_live_colon:":",waiting_live_upcoming_title:"\u0422\u0440\u0430\u043D\u0441\u043B\u044F\u0446\u0438\u044F \u0435\u0449\u0435 \u043D\u0435 \u043D\u0430\u0447\u0430\u043B\u0430\u0441\u044C",waiting_live_timer_title:"\u0414\u043E \u043D\u0430\u0447\u0430\u043B\u0430 \u0442\u0440\u0430\u043D\u0441\u043B\u044F\u0446\u0438\u0438 \u043E\u0441\u0442\u0430\u043B\u043E\u0441\u044C",waiting_live_recover_title:"\u0422\u0440\u0430\u043D\u0441\u043B\u044F\u0446\u0438\u044F \u043F\u0440\u0438\u043E\u0441\u0442\u0430\u043D\u043E\u0432\u043B\u0435\u043D\u0430 - \u043E\u043D\u0430 \u043F\u0440\u043E\u0434\u043E\u043B\u0436\u0438\u0442\u0441\u044F, \u043A\u043E\u0433\u0434\u0430 \u0430\u0432\u0442\u043E\u0440 \u0432\u0435\u0440\u043D\u0451\u0442\u0441\u044F",waiting_record_title:"\u0422\u0440\u0430\u043D\u0441\u043B\u044F\u0446\u0438\u044F \u0437\u0430\u0432\u0435\u0440\u0448\u0435\u043D\u0430 - \u0437\u0430\u043F\u0438\u0441\u044C \u043F\u043E\u044F\u0432\u0438\u0442\u0441\u044F \u043F\u043E\u0437\u0436\u0435",aria_label_video_player:"\u0412\u0438\u0434\u0435\u043E \u043F\u043B\u0435\u0435\u0440",aria_label_spherical_control:"\u041A\u043E\u043D\u0442\u0440\u043E\u043B\u043B\u0435\u0440 \u0434\u043B\u044F \u0441\u0444\u0435\u0440\u0438\u0447\u0435\u0441\u043A\u043E\u0433\u043E \u0432\u0438\u0434\u0435\u043E. \u0418\u0441\u043F\u043E\u043B\u044C\u0437\u0443\u0439\u0442\u0435 \u043A\u043B\u0430\u0432\u0438\u0448\u0438 \u0441\u043E \u0441\u0442\u0440\u0435\u043B\u043A\u0430\u043C\u0438 \u0434\u043B\u044F \u043F\u0430\u043D\u043E\u0440\u0430\u043C\u0438\u0440\u043E\u0432\u0430\u043D\u0438\u044F \u0432\u0438\u0434\u0435\u043E.",aria_label_debug_panel:"\u041E\u0431\u043B\u0430\u0441\u0442\u044C \u0441 \u0442\u0435\u0445\u043D\u0438\u0447\u0435\u0441\u043A\u043E\u0439 \u0438\u043D\u0444\u043E\u0440\u043C\u0430\u0446\u0438\u0435\u0439, \u0441\u0434\u0435\u043B\u0430\u0439\u0442\u0435 \u0441\u043A\u0440\u0438\u043D\u0448\u043E\u0442 \u0434\u043B\u044F \u0442\u0435\u0445\u043F\u043E\u0434\u0434\u0435\u0440\u0436\u043A\u0438",aria_label_new_tab_alert:"\u041E\u0442\u043A\u0440\u043E\u0435\u0442\u0441\u044F \u0432 \u043D\u043E\u0432\u043E\u0439 \u0432\u043A\u043B\u0430\u0434\u043A\u0435.",aria_label_context_menu_open:"\u041E\u0442\u043A\u0440\u044B\u0442\u044C \u043A\u043E\u043D\u0442\u0435\u043A\u0441\u0442\u043D\u043E\u0435 \u043C\u0435\u043D\u044E",aria_label_context_menu_close:"\u0417\u0430\u043A\u0440\u044B\u0442\u044C \u043A\u043E\u043D\u0442\u0435\u043A\u0441\u0442\u043D\u043E\u0435 \u043C\u0435\u043D\u044E",aria_label_menu_quality:"\u041A\u0430\u0447\u0435\u0441\u0442\u0432\u043E: {actual}",aria_label_menu_audio_languages:"\u042F\u0437\u044B\u043A \u0430\u0443\u0434\u0438\u043E: {actual}",aria_label_menu_rate:"\u0421\u043A\u043E\u0440\u043E\u0441\u0442\u044C: {actual}",aria_label_menu_subtitle:"\u0421\u0443\u0431\u0442\u0438\u0442\u0440\u044B: {actual}",aria_label_menu_download:"\u0421\u043A\u0430\u0447\u0430\u0442\u044C \u0432\u0438\u0434\u0435\u043E",aria_label_menu_debug_overlay_enable:"\u0412\u043A\u043B\u044E\u0447\u0438\u0442\u044C \u043E\u0442\u043E\u0431\u0440\u0430\u0436\u0435\u043D\u0438\u0435 \u0442\u0435\u0445\u043D\u0438\u0447\u0435\u0441\u043A\u043E\u0439 \u0438\u043D\u0444\u043E\u0440\u043C\u0430\u0446\u0438\u0438",aria_label_menu_debug_overlay_disable:"\u0412\u044B\u043A\u043B\u044E\u0447\u0438\u0442\u044C \u043E\u0442\u043E\u0431\u0440\u0430\u0436\u0435\u043D\u0438\u0435 \u0442\u0435\u0445\u043D\u0438\u0447\u0435\u0441\u043A\u043E\u0439 \u0438\u043D\u0444\u043E\u0440\u043C\u0430\u0446\u0438\u0438",aria_label_menu_rotate:"\u041F\u043E\u0432\u0435\u0440\u043D\u0443\u0442\u044C \u0432\u0438\u0434\u0435\u043E \u043D\u0430 90 \u0433\u0440\u0430\u0434\u0443\u0441\u043E\u0432",aria_label_menu_loop:"\u041F\u0435\u0440\u0435\u043A\u043B\u044E\u0447\u0435\u043D\u0438\u0435 \u0440\u0435\u0436\u0438\u043C\u0430 \u043F\u043E\u0432\u0442\u043E\u0440\u0435\u043D\u0438\u044F",aria_label_submenu_back:"\u0412\u0435\u0440\u043D\u0443\u0442\u044C\u0441\u044F \u0432 \u043C\u0435\u043D\u044E \u043D\u0430\u0441\u0442\u0440\u043E\u0435\u043A",aria_label_submenu_traffic_saving_off:"\u0412\u044B\u043A\u043B\u044E\u0447\u0438\u0442\u044C \u0440\u0435\u0436\u0438\u043C \u044D\u043A\u043E\u043D\u043E\u043C\u0438\u0438 \u0434\u0430\u043D\u043D\u044B\u0445",aria_label_submenu_traffic_saving_on:"\u0412\u043A\u043B\u044E\u0447\u0438\u0442\u044C \u0440\u0435\u0436\u0438\u043C \u044D\u043A\u043E\u043D\u043E\u043C\u0438\u0438 \u0434\u0430\u043D\u043D\u044B\u0445",end_screen_next_video:"\u0421\u043B\u0435\u0434\u0443\u044E\u0449\u0435\u0435 \u0432\u0438\u0434\u0435\u043E",end_screen_recommended_video:"\u0420\u0435\u043A\u043E\u043C\u0435\u043D\u0434\u0443\u0435\u043C\u043E\u0435 \u0432\u0438\u0434\u0435\u043E",slow_video_notification_button:"\u0412\u044B\u0431\u0440\u0430\u0442\u044C \u043A\u0430\u0447\u0435\u0441\u0442\u0432\u043E \xAB\u0410\u0432\u0442\u043E\xBB",slow_video_notification_force_description:`\u0412\u0438\u0434\u0435\u043E \u0433\u0440\u0443\u0437\u0438\u0442\u0441\u044F \u0441\u043B\u0438\u0448\u043A\u043E\u043C \u043C\u0435\u0434\u043B\u0435\u043D\u043D\u043E,
55
55
  \u043A\u0430\u0447\u0435\u0441\u0442\u0432\u043E \u0438\u0437\u043C\u0435\u043D\u0435\u043D\u043E \u043D\u0430\xA0\xAB\u0410\u0432\u0442\u043E\xBB`,slow_video_notification_suggest_description:`\u0412\u0438\u0434\u0435\u043E \u0437\u0430\u0433\u0440\u0443\u0436\u0430\u0435\u0442\u0441\u044F \u0441\u043B\u0438\u0448\u043A\u043E\u043C \u043C\u0435\u0434\u043B\u0435\u043D\u043D\u043E -
56
- \u043F\u043E\u043F\u0440\u043E\u0431\u0443\u0439\u0442\u0435 \u0438\u0437\u043C\u0435\u043D\u0438\u0442\u044C \u043A\u0430\u0447\u0435\u0441\u0442\u0432\u043E \u043D\u0430 \xAB\u0410\u0432\u0442\u043E\xBB`},Lg=y0;var x0={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`},Pg=_0;var b0={mobile_unmute:"Unmute",auto_quality_invariant:"Auto",auto_quality:"Auto ({actual})",auto_quality_option:"Auto",other_quality:"Other",high_quality:"High quality",high_quality_description:"Uses more data",auto_quality_limit:"Auto",traffic_saving_quality:"Data saving",traffic_saving_quality_description:"Videos load faster but\xA0at\xA0lower quality",quality_applience:"You can\xA0{action} the\xA0default quality",quality_applience_action:"change",default_quality_for_any_video:"Quality for\xA0all videos",menu_quality:"Quality",menu_playback_rate:"Playback rate",menu_traffic_saving:"Data saving",menu_report:"Report a problem",menu_pip:"Picture in picture",menu_copy_video_link:"Copy video link",menu_copy_video_link_with_timestamp:"Copy link with timestamp",menu_video_rotate:"Rotate",menu_video_loop_on:"Enable loop",menu_video_loop_off:"Disable loop",menu_chromecast:"Chromecast stream",menu_copy_debug:"Copy debug info",menu_save_debug:"Save debug info",menu_debug_overlay:"Tech stats",menu_copy_embed_code:"Copy embed code",menu_audio_languages:"Audio track",audio_stream_display_language_label:"{label} ({language})",audio_stream_display_language_label_index:"{label} {index} ({language})",audio_stream_display_label_index:"{label} {index}",audio_stream_display_language_index:"{language} {index}",audio_stream_display_unknown:"Audio track {index}",pip_dummy_title:"Video plays in picture-in-picture mode",submenu_quality:"Quality",submenu_playback_rate:"Playback rate",submenu_traffic_saving:"Data saving",submenu_settings:"Settings",submenu_audio_languages:"Audio track",playing_ads:"Ads {timeleft}",skip_ads_after:"Skip ads",skip_ads_now:"Skip {time}s",visit_advertiser:"Visit site",aria_timeline:"Time scale slider",aria_timeline_value:"{position} out of {duration}",aria_open_settings:"Open video player settings",doubletap_seek_step:"{seconds} seconds",playback_rate_1:"Normal",playback_rate:"{multiplier}x",video360:"spherical video",subtitles_caption:"Subtitles",subtitles_auto:"{language} (Auto-generated)",subtitles_off:"Off",subtitles_auto_caption:"Auto subtitles",subtitles_turn_on:"Turn on subtitles",subtitles_turn_off:"Turn off subtitles",traffic_saving_off:"Off",traffic_saving_on:"On",traffic_saving_disable:"Disabled",traffic_saving_enable:"Enabled",traffic_saving_helper_text:"When turned on the video quality will be reduced to save data",tooltip_button_disabled:"Button disabled",tooltip_previous:"Previous video",tooltip_restart:"Watch again",tooltip_play:"Play",tooltip_pause:"Pause",tooltip_next:"Next video",tooltip_interactive_go_back:"Back to previous chapter",tooltip_interactive_go_back_disabled:"Interactive history unavailable",tooltip_interactive_go_back_disabled_first:"You're watching the first chapter",tooltip_interactive_go_back_disabled_limit:"Go-back limit exceeded",tooltip_chapter_without_interactive:"This chapter has no interactive segment",tooltip_interactive_of_chapter_completed:"Chapter's interactive segments already watched",tooltip_interactive_seek:"Go to interactive",tooltip_interactive_graph_off:"Show interactive graph",tooltip_interactive_graph_on:"Hide interactive graph",tooltip_live:"Go to the live edge",tooltip_episodes:"Episodes",tooltip_volume:"Turn volume off",tooltip_volume_muted:"Turn volume on",tooltip_subtitles_off:"Turn subtitles on",tooltip_subtitles_on:"Turn subtitles off",tooltip_settings_off:"Open settings",tooltip_settings_on:"Close settings",tooltip_fullscreen_off:"Enter fullscreen mode",tooltip_fullscreen_on:"Exit fullscreen mode",tooltip_chromecast_off:"Turn Chromecast on",tooltip_chromecast_on:"Turn Chromecast off",tooltip_episode_finished:"You have already viewed interactive episode",tooltip_episode_unfinished:"Interactive episode not finished",tooltip_disabled_when_interactive:"Interactive video in progress",tooltip_disabled_when_graph_on:"Button is disabled when graph is opened",tooltip_interactive_interaction_time_indicator:"Press the interactive element",tooltip_vk_logo:"Open in VK Video",tooltip_vk_video_logo:"Go to VK Video",tooltip_autoplay_off:"Turn autoplay on",tooltip_autoplay_on:"Turn autoplay off",download_video_caption:"Download video",hotkey_helper_current_volume:"{value} %",hotkey_map_modal_title:"Keyboard shortcuts",hotkey_map_modal_close_btn_text:"Close",hotkey_map_group_title_common:"Common",hotkey_map_group_title_playback:"Playback",hotkey_map_group_title_subtitles:"Subtitles",hotkey_map_group_title_episodes:"Episodes",hotkey_map_item_mute_description:"Toggle mute",hotkey_map_item_mute_value:"m",hotkey_map_item_volume_up_description:"Increase volume",hotkey_map_item_volume_up_value:"Arrow up",hotkey_map_item_volume_down_description:"Decrease volume",hotkey_map_item_volume_down_value:"Arrow down",hotkey_map_item_pip_description:"Toggle miniplayer",hotkey_map_item_pip_value:"i",hotkey_map_item_full_screen_description:"Toggle full screen",hotkey_map_item_full_screen_value:"f",hotkey_map_item_show_context_menu_description:"Hide or show context menu",hotkey_map_item_show_context_menu_value:"Shift + !",hotkey_map_item_show_hotkey_map_description:"Hide or show list of hotkeys",hotkey_map_item_show_hotkey_map_value:"Shift + ?",hotkey_map_item_play_toggle_description:"Toggle play/pause",hotkey_map_item_play_toggle_value:"Space (or k)",hotkey_map_item_seek_backward_description:"Rewind 10 seconds",hotkey_map_item_seek_backward_value:"Arrow left (or j)",hotkey_map_item_seek_forward_description:"Forward 10 seconds",hotkey_map_item_seek_forward_value:"Arrow right (or l)",hotkey_map_item_fast_seek_backward_description:"Fast rewind",hotkey_map_item_fast_seek_backward_value:"Shift + Arrow left",hotkey_map_item_fast_seek_forward_description:"Fast forward",hotkey_map_item_fast_seek_forward_value:"Shift + Arrow right",hotkey_map_item_rate_down_description:"Decrease playback rate",hotkey_map_item_rate_down_value:"< (Shift + ,)",hotkey_map_item_rate_up_description:"Increase playback rate",hotkey_map_item_rate_up_value:"> (Shift + .)",hotkey_map_item_prev_frame_description:"Previous frame (while paused)",hotkey_map_item_prev_frame_value:",",hotkey_map_item_next_frame_description:"Next frame (while paused)",hotkey_map_item_next_frame_value:".",hotkey_map_item_jump_seek_description:"Seek to specific point in the video (7 advances to 70% of duration)",hotkey_map_item_jump_seek_value:"0, 1, 2, 3, 4, 5, 6, 7, 8, 9",hotkey_map_item_subtitles_toggle_description:"Toggle captions ON/OFF",hotkey_map_item_subtitles_toggle_value:"c",hotkey_map_item_prev_episode_description:"Seek to previous episode",hotkey_map_item_prev_episode_pc_value:"Ctrl + Arrow left",hotkey_map_item_prev_episode_mac_value:"Option + Arrow left",hotkey_map_item_next_episode_description:"Seek to next episode",hotkey_map_item_next_episode_pc_value:"Ctrl + Arrow right",hotkey_map_item_next_episode_mac_value:"Option + Arrow right",hotkey_map_item_next_video_description:"Next video",hotkey_map_item_next_video_value:"Shift + N",hotkey_map_item_prev_video_description:"Previous video",hotkey_map_item_prev_video_value:"Shift + P",waiting_live_day_value:"d",waiting_live_hour_value:"h",waiting_live_minute_value:"min",waiting_live_second_value:"sec",waiting_live_colon:":",waiting_live_upcoming_title:"The broadcast hasn't started yet",waiting_live_timer_title:"Before the start of the broadcast left",waiting_live_recover_title:"The broadcast has been paused - it will resume when the author returns",waiting_record_title:"The broadcast completed - recording will appear later",aria_label_video_player:"Video player",aria_label_spherical_control:"Spherical video control. Use the arrow keys to pan the video.",aria_label_debug_panel:"Technical information area, take a screenshot for technical support",aria_label_new_tab_alert:"Opens in a new tab.",aria_label_context_menu_open:"Open context menu",aria_label_context_menu_close:"Close context menu",aria_label_menu_quality:"Quality: {actual}",aria_label_menu_audio_languages:"Audio language: {actual}",aria_label_menu_rate:"Rate: {actual}",aria_label_menu_subtitle:"Subtitles: {actual}",aria_label_menu_download:"Download video",aria_label_menu_debug_overlay_enable:"Enable display of technical information",aria_label_menu_debug_overlay_disable:"Disable display of technical information",aria_label_menu_rotate:"Rotate video 90 degrees",aria_label_menu_loop:"Toggle loop",aria_label_submenu_back:"Return to settings menu",aria_label_submenu_traffic_saving_off:"Disable data saving mode",aria_label_submenu_traffic_saving_on:"Enable data saving mode",end_screen_next_video:"Next video",end_screen_recommended_video:"Recommended video",slow_video_notification_button:"Select Auto quality",slow_video_notification_force_description:`The video is loading too slowly,
57
57
  so\xA0the\xA0quality was changed to\xA0Auto`,slow_video_notification_suggest_description:`The video is loading too slowly.
58
- Try switching the\xA0quality to\xA0Auto.`},Vg=x0;var Yr=new Map;Yr.set(Ng.EN,Vg);Yr.set(Ng.RU,Lg);var Dg=new Map,up=({language:t,pack:e,fallback:i})=>{if(Yr.has(t)){let o=Yr.get(t);Yr.set(t,{...o,...e})}else Yr.set(t,e);Dg.set(t,i)},pp=t=>Yr.has(t),fp=(t,e,i,o)=>{let a=Yr.get(t)?.[e];if(Rg(a)){let s=Dg.get(t)??o;a=(s?Yr.get(s):void 0)?.[e]}return Rg(a)?e+Object.values(i??{}).join(" "):i?a.replaceAll(/{(\w+?)}/g,(s,d)=>i[d]??""):a},H=(t,e)=>{let{interfaceLanguage$:i}=_e(),o=he(i),n=Mt();return fp(o,t,e,n.defaultLanguage)};import"@vkontakte/videoplayer-core/es2024";var Is;(function(t){t.fatal="fatal",t.error="error",t.warning="warning",t.log="log",t.info="info",t.debug="debug",t.critical="critical"})(Is||(Is={}));var w0=/^\s*at (?:(.*?) ?\()?((?:file|https?|blob|chrome-extension|address|native|eval|webpack|<anonymous>|[-a-z]+:|.*bundle|\/).*?)(?::(\d+))?(?::(\d+))?\)?\s*$/i,S0=/^\s*(.*?)(?:\((.*?)\))?(?:^|@)?((?:file|https?|blob|chrome|webpack|resource|moz-extension).*?:\/.*?|\[native code\]|[^@]*(?:bundle|\d+\.js))(?::(\d+))?(?::(\d+))?\s*$/i,C0=/^\s*at (?:((?:\[object object\])?.+) )?\(?((?:file|ms-appx|https?|webpack|blob):.*?):(\d+)(?::(\d+))?\)?\s*$/i,sc="?",k0="X-Sentry-Auth",T0=/^(?:(\w+):)\/\/(?:([\w-]+)(?::(\w+))?@)([\w.-]+)(?::(\d+))?\/(.+)/;function I0(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=w0.exec(i[a]))n={filename:o[2]&&o[2].indexOf("address at ")===0?o[2].substr(11):o[2],function:o[1]||sc,lineno:o[3]?+o[3]:null,colno:o[4]?+o[4]:null};else if(o=C0.exec(i[a]))n={filename:o[2],function:o[1]||sc,lineno:+o[3],colno:o[4]?+o[4]:null};else if(o=S0.exec(i[a]))a===0&&!o[5]&&t.columnNumber!==void 0&&(e[0].column=t.columnNumber+1),n={filename:o[3],function:o[1]||sc,lineno:o[4]?+o[4]:null,colno:o[5]?+o[5]:null};else continue;!n.function&&n.lineno&&(n.function=sc),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(`
60
- `).filter(i=>!!i)[0]}function E0(t){try{let e=I0(t);if(e)return e}catch{}return{value:Bg(t),type:t&&t.name,stacktrace:{frames:[]}}}function P0(){return"xxxxxxxxxxxx4xxxyxxxxxxxxxxxxxxx".replace(/[xy]/g,t=>{let e=Math.random()*16|0;return(t==="x"?e:e&3|8).toString(16)})}var lc=class{constructor(e){if(e&&e.dsn){let i=T0.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:[E0(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(k0,this.authHeader||""),i.send(JSON.stringify(e))}getRequestBlank(){return{platform:"javascript",event_id:P0(),sdk:{name:"micro-sentry.javascript.core",version:"0.0.0"},timestamp:Date.now()/1e3,environment:this.environment}}};function Og(t,e){return Object.prototype.toString.call(e)==="[object RegExp]"?e.test(t):typeof e=="string"?t.indexOf(e)!==-1:!1}function A0(){return window}var dc=class t extends lc{constructor(e,i=A0()){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=>Og(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=>Og(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 cc,Subscription as M0}from"@vkontakte/videoplayer-shared/es2024";var uc=null,Da=class{constructor(e,i,o={}){!uc&&e.dsn&&(this.sentryClient=new dc({dsn:e.dsn,environment:i.env}),this.version=i.version,this.sentrySubscription=new M0,this.options=e,this.context=o,uc=this)}destroy(){this.sentryClient?.destroy(),this.sentrySubscription?.unsubscribe(),uc=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:$}=i;if(cc($)&&_.includes($)||cc(f)&&u.includes(f))return;if(Math.random()<=d||cc($)&&c.includes($)||cc(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?Is.fatal:Is.error),n.report(e)}catch(w){console.error(w)}}}static getInstance(){return uc}};var jr=(d=>(d.Thumb="thumb",d.Video="video",d.Ads="ads",d.Crashed="crashed",d.LiveWaitingStart="LiveWaitingStart",d.LiveWaitingRecover="LiveWaitingRecover",d.LiveWaitingRecord="LiveWaitingRecord",d))(jr||{});var pc=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()},fc=t=>t.exitFullscreen?t.exitFullscreen():t.msExitFullscreen?t.msExitFullscreen():t.webkitExitFullscreen?t.webkitExitFullscreen():t.mozCancelFullScreen?t.mozCancelFullScreen():Promise.reject(),Hg=t=>{let e=t;return e?.webkitExitFullscreen?e?.webkitExitFullscreen():Promise.reject()},Sl=()=>{let t=document;return t.fullscreenElement||t.mozFullScreenElement||t.webkitFullscreenElement||t.msFullscreenElement},da=()=>!!Sl(),mc=t=>{document.addEventListener("fullscreenchange",t),document.addEventListener("webkitfullscreenchange",t),document.addEventListener("mozfullscreenchange",t),document.addEventListener("MSFullscreenChange",t)},vc=t=>{document.removeEventListener("fullscreenchange",t),document.removeEventListener("webkitfullscreenchange",t),document.removeEventListener("mozfullscreenchange",t),document.removeEventListener("MSFullscreenChange",t)},Fg=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 Ug}from"@vkontakte/videoplayer-core/es2024";var zg=()=>({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:Ug.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:Ug.device.isApple?H("hotkey_map_item_next_episode_mac_value"):H("hotkey_map_item_next_episode_pc_value")}]}]});import{debounceFn as L0,ValueSubject as mp}from"@vkontakte/videoplayer-shared/es2024";var Ba=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:L0(this.onResize.bind(this),300)};this.info={isActive$:new mp(!1),isEnabled$:new mp(!1),type:0};this.info.isEnabled$=new mp(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 Oa(t){return t instanceof Ba}import{devNull as qg,now as Wg}from"@vkontakte/videoplayer-shared/es2024";Wm();function hp(t,e){F(e,!1);let i=_e();At(()=>{i.getAdmanWrapper().startPostroll()}),fr(),U()}import{noop as V0}from"@vkontakte/videoplayer-shared/es2024";var R0=(t,e)=>{t.stopPropagation(),e()()},N0=A('<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>'),D0=A("<div><!></div>"),B0={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 _p(t,e){F(e,!0),z(t,B0);let[i,o]=Me(),n=()=>y(c,"$isMobile",i),a=m(e,"position",3,0),s=m(e,"secondsToWatchBeforeSkip",3,0),d=m(e,"skipAd",3,V0),c=_e().ui.isMobile,u=v(()=>a()>0&&a()>=s());var _=D0();let f;var $=h(_);{var x=S=>{var I=N0();I.__click=[R0,d];var P=h(I);me(),g(I),C(M=>ue(P,`${M??""} `),[()=>H("skip_ads_now")]),b(S,I)},w=S=>{var I=Kn();C(P=>ue(I,P),[()=>H("skip_ads_after",{time:Math.ceil(s()-a()).toFixed(0)})]),b(S,I)};V($,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 O0=A('<button class="svelte-1wy3dql"> </button>'),H0={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 bp(t,e){F(e,!1),z(t,H0),fr();var i=O0(),o=h(i,!0);g(i),C(n=>ue(o,n),[()=>H("visit_advertiser")],cr),b(t,i),U()}var F0=A('<div class="top-gradient-mobile svelte-354ajf"></div>'),U0=A('<div class="container svelte-354ajf"><!> <video style="width: 100%; height: 100%" playsinline=""></video> <!> <!> <!></div>',2),z0={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.`},Ag=b0;var Yr=new Map;Yr.set(Lg.EN,Ag);Yr.set(Lg.RU,Pg);var Vg=new Map,lp=({language:t,pack:e,fallback:i})=>{if(Yr.has(t)){let o=Yr.get(t);Yr.set(t,{...o,...e})}else Yr.set(t,e);Vg.set(t,i)},dp=t=>Yr.has(t),cp=(t,e,i,o)=>{let a=Yr.get(t)?.[e];if(Mg(a)){let s=Vg.get(t)??o;a=(s?Yr.get(s):void 0)?.[e]}return Mg(a)?e+Object.values(i??{}).join(" "):i?a.replaceAll(/{(\w+?)}/g,(s,d)=>i[d]??""):a},H=(t,e)=>{let{interfaceLanguage$:i}=be(),o=ve(i),n=Rt();return cp(o,t,e,n.defaultLanguage)};import"@vkontakte/videoplayer-core/es2024";var Cs;(function(t){t.fatal="fatal",t.error="error",t.warning="warning",t.log="log",t.info="info",t.debug="debug",t.critical="critical"})(Cs||(Cs={}));var $0=/^\s*at (?:(.*?) ?\()?((?:file|https?|blob|chrome-extension|address|native|eval|webpack|<anonymous>|[-a-z]+:|.*bundle|\/).*?)(?::(\d+))?(?::(\d+))?\)?\s*$/i,y0=/^\s*(.*?)(?:\((.*?)\))?(?:^|@)?((?:file|https?|blob|chrome|webpack|resource|moz-extension).*?:\/.*?|\[native code\]|[^@]*(?:bundle|\d+\.js))(?::(\d+))?(?::(\d+))?\s*$/i,x0=/^\s*at (?:((?:\[object object\])?.+) )?\(?((?:file|ms-appx|https?|webpack|blob):.*?):(\d+)(?::(\d+))?\)?\s*$/i,oc="?",w0="X-Sentry-Auth",S0=/^(?:(\w+):)\/\/(?:([\w-]+)(?::(\w+))?@)([\w.-]+)(?::(\d+))?\/(.+)/;function C0(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]||oc,lineno:o[3]?+o[3]:null,colno:o[4]?+o[4]:null};else if(o=x0.exec(i[a]))n={filename:o[2],function:o[1]||oc,lineno:+o[3],colno:o[4]?+o[4]:null};else if(o=y0.exec(i[a]))a===0&&!o[5]&&t.columnNumber!==void 0&&(e[0].column=t.columnNumber+1),n={filename:o[3],function:o[1]||oc,lineno:o[4]?+o[4]:null,colno:o[5]?+o[5]:null};else continue;!n.function&&n.lineno&&(n.function=oc),e.push(n)}return e.length?{value:Rg(t),type:t.name,stacktrace:{frames:e.reverse()}}:null}function Rg(t){return(t&&t.message||"No error message").split(`
60
+ `).filter(i=>!!i)[0]}function k0(t){try{let e=C0(t);if(e)return e}catch{}return{value:Rg(t),type:t&&t.name,stacktrace:{frames:[]}}}function T0(){return"xxxxxxxxxxxx4xxxyxxxxxxxxxxxxxxx".replace(/[xy]/g,t=>{let e=Math.random()*16|0;return(t==="x"?e:e&3|8).toString(16)})}var nc=class{constructor(e){if(e&&e.dsn){let i=S0.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:[k0(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(w0,this.authHeader||""),i.send(JSON.stringify(e))}getRequestBlank(){return{platform:"javascript",event_id:T0(),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 I0(){return window}var rc=class t extends nc{constructor(e,i=I0()){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=>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],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 ac,Subscription as E0}from"@vkontakte/videoplayer-shared/es2024";var sc=null,Ra=class{constructor(e,i,o={}){!sc&&e.dsn&&(this.sentryClient=new rc({dsn:e.dsn,environment:i.env}),this.version=i.version,this.sentrySubscription=new E0,this.options=e,this.context=o,sc=this)}destroy(){this.sentryClient?.destroy(),this.sentrySubscription?.unsubscribe(),sc=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:$}=i;if(ac($)&&_.includes($)||ac(f)&&u.includes(f))return;if(Math.random()<=d||ac($)&&c.includes($)||ac(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?Cs.fatal:Cs.error),n.report(e)}catch(w){console.error(w)}}}static getInstance(){return sc}};var Da=(d=>(d.Thumb="thumb",d.Video="video",d.Ads="ads",d.Crashed="crashed",d.LiveWaitingStart="LiveWaitingStart",d.LiveWaitingRecover="LiveWaitingRecover",d.LiveWaitingRecord="LiveWaitingRecord",d))(Da||{});var lc=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()},dc=t=>t.exitFullscreen?t.exitFullscreen():t.msExitFullscreen?t.msExitFullscreen():t.webkitExitFullscreen?t.webkitExitFullscreen():t.mozCancelFullScreen?t.mozCancelFullScreen():Promise.reject(),Ng=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(),cc=t=>{document.addEventListener("fullscreenchange",t),document.addEventListener("webkitfullscreenchange",t),document.addEventListener("mozfullscreenchange",t),document.addEventListener("MSFullscreenChange",t)},uc=t=>{document.removeEventListener("fullscreenchange",t),document.removeEventListener("webkitfullscreenchange",t),document.removeEventListener("mozfullscreenchange",t),document.removeEventListener("MSFullscreenChange",t)},Bg=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 Og}from"@vkontakte/videoplayer-core/es2024";var Hg=()=>({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:Og.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:Og.device.isApple?H("hotkey_map_item_next_episode_mac_value"):H("hotkey_map_item_next_episode_pc_value")}]}]});import{debounceFn as P0,ValueSubject as up}from"@vkontakte/videoplayer-shared/es2024";var Na=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:P0(this.onResize.bind(this),300)};this.info={isActive$:new up(!1),isEnabled$:new up(!1),type:0};this.info.isEnabled$=new up(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 Na}import{devNull as Fg,now as Ug}from"@vkontakte/videoplayer-shared/es2024";Um();function mp(t,e){F(e,!1);let i=be();At(()=>{i.getAdmanWrapper().startPostroll()}),vr(),U()}import{noop as A0}from"@vkontakte/videoplayer-shared/es2024";var M0=(t,e)=>{t.stopPropagation(),e()()},L0=L('<div class="skip svelte-1k4i25s"> <svg class="icon svelte-1k4i25s" width="7" height="12" viewBox="0 0 7 12" fill="none" xmlns="http://www.w3.org/2000/svg"><path fill-rule="evenodd" clip-rule="evenodd" d="M0.263627 0.263605C-0.0878444 0.615078 -0.0878429 1.18493 0.26363 1.5364L4.72723 5.99998L0.263627 10.4636C-0.0878444 10.8151 -0.0878429 11.3849 0.26363 11.7364C0.615103 12.0879 1.18495 12.0879 1.53642 11.7364L6.63642 6.63637C6.98789 6.2849 6.98789 5.71505 6.63642 5.36358L1.53642 0.263602C1.18495 -0.0878686 0.615098 -0.0878673 0.263627 0.263605Z"></path></svg></div>'),V0=L("<div><!></div>"),R0={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 vp(t,e){F(e,!0),W(t,R0);let[i,o]=De(),n=()=>y(c,"$isMobile",i),a=v(e,"position",3,0),s=v(e,"secondsToWatchBeforeSkip",3,0),d=v(e,"skipAd",3,A0),c=be().ui.isMobile,u=m(()=>a()>0&&a()>=s());var _=V0();let f;var $=h(_);{var x=S=>{var I=L0();I.__click=[M0,d];var M=h(I);fe(),g(I),C(P=>ce(M,`${P??""} `),[()=>H("skip_ads_now")]),b(S,I)},w=S=>{var I=qn();C(M=>ce(I,M),[()=>H("skip_ads_after",{time:Math.ceil(s()-a()).toFixed(0)})]),b(S,I)};V($,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()}ot(["click"]);var D0=L('<button class="svelte-1wy3dql"> </button>'),N0={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 gp(t,e){F(e,!1),W(t,N0),vr();var i=D0(),o=h(i,!0);g(i),C(n=>ce(o,n),[()=>H("visit_advertiser")],pr),b(t,i),U()}var B0=L('<div class="top-gradient-mobile svelte-354ajf"></div>'),O0=L('<div class="container svelte-354ajf"><!> <video style="width: 100%; height: 100%" playsinline=""></video> <!> <!> <!></div>',2),H0={hash:"svelte-354ajf",code:`.container.svelte-354ajf {width:100%;height:100%;}.top-gradient-mobile.svelte-354ajf {position:absolute;width:100%;height:80px;top:0;left:0;pointer-events:none;background:linear-gradient(
61
61
  360deg,
62
62
  rgba(0, 0, 0, 0) 0%,
63
63
  rgba(0, 0, 0, 0.05) 12%,
@@ -67,7 +67,7 @@ Try switching the\xA0quality to\xA0Auto.`},Vg=x0;var Yr=new Map;Yr.set(Ng.EN,Vg)
67
67
  rgba(0, 0, 0, 0.5) 77%,
68
68
  rgba(0, 0, 0, 0.55) 88%,
69
69
  rgba(0, 0, 0, 0.65) 100%
70
- );}`};function Cl(t,e){F(e,!0),z(t,z0);let[i,o]=Me(),n=()=>y(Q,"$canSkipAd",i),a=()=>y(K,"$adPlaybackState",i),s=()=>y(P,"$isMobile",i),d=()=>y(Y,"$adPosition",i),l=()=>y(ae,"$secondsToWatchBeforeSkipAd",i),c=()=>y(I,"$isVideoEnded",i),u=m(e,"adsSlotId",3,void 0),_=m(e,"adsParams",3,void 0),f=m(e,"adsPreviewParam",3,void 0),$=m(e,"adsAutoplayParam",3,void 0),x=m(e,"duration",3,0),w=_e(),S=Mt(),I=w.state.isEnded$,P=w.ui.isMobile,M=S.ads.isMobileGoToSiteButton,L=X(void 0),T=X(void 0),B=!1,K=w.ads.playbackState,Q=w.ads.canSkip,Y=w.ads.position,ae=w.ads.secondsToWatchBeforeSkip,se=v(()=>n()&&a()!=="inactive"),ee=v(()=>s()&&a()!=="inactive"&&M);At(()=>{let ke=w.getAdmanWrapper();if(qg.push("ui",{key:"videoplayer_embed",strings:["new","adman_ads_mount"],numbers:[Wg(),u()]}),!u()){ke.onAdmanLoadingError();return}let Be=Ve=>{ke.initAdman(Ve),B=!0},ce=new AbortController,R=()=>{ce.abort()},{width:$e,height:Ie}=he(w.ui.playerSize),Ge=he(w.ui.isFullscreen),ze=$()??he(w.ui.isAutoplay),ye={width:$e,height:Ie,isFullscreen:Ge,isAutoplay:ze,adsContainer:r(L),adsVideoElement:r(T),slotId:u(),params:_(),previewParam:f(),duration:x()};return window.AdmanHTML?Be(ye):ke.loadAdman(ce.signal).then(()=>{Be(ye)}).catch(()=>{ke.onAdmanLoadingError()}),()=>{qg.push("ui",{key:"videoplayer_embed",strings:["new","adman_ads_unmount"],numbers:[Wg(),u()]}),!B&&R()}});var ge=U0(),J=h(ge);{var Pe=ke=>{var Be=F0();b(ke,Be)};V(J,ke=>{s()&&ke(Pe)})}var Ae=E(J,2);at(Ae,ke=>D(T,ke),()=>r(T));var oe=E(Ae,2);{var Fe=ke=>{_p(ke,{get position(){return d()},get secondsToWatchBeforeSkip(){return l()},get skipAd(){return w.actions.internal.skipAd}})};V(oe,ke=>{r(se)&&ke(Fe)})}var j=E(oe,2);{var N=ke=>{hp(ke,{})};V(j,ke=>{c()&&ke(N)})}var Le=E(j,2);{var be=ke=>{bp(ke,{})};V(Le,ke=>{r(ee)&&ke(be)})}g(ge),at(ge,ke=>D(L,ke),()=>r(L)),b(t,ge),U(),o()}var Oo=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 q0=ve('<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 $p(t,e){let i=Ce(e,["$$slots","$$events","$$legacy","children"]);var o=q0();let n;var a=h(o);pe(a,()=>e.children??te),me(2),g(o),C(()=>n=xe(o,n,{xmlns:"http://www.w3.org/2000/svg",width:"42",height:"20","aria-hidden":"true","data-testid":"live-icon",role:"img",...i})),b(t,o)}var W0=ve('<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 yp(t,e){let i=Ce(e,["$$slots","$$events","$$legacy","children"]);var o=W0();let n;var a=h(o);pe(a,()=>e.children??te),me(2),g(o),C(()=>n=xe(o,n,{xmlns:"http://www.w3.org/2000/svg",width:"42",height:"20",fill:"none","aria-hidden":"true","data-testid":"live-active-icon",role:"img",...i})),b(t,o)}function Fa(t,e){let i=m(e,"isActive",3,!1);var o=De(),n=le(o);{var a=d=>{yp(d,{})},s=d=>{$p(d,{})};V(n,d=>{i()?d(a):d(s,!1)})}b(t,o)}var K0=A('<div class="thumb-timer-live-icon svelte-opbced"><!></div>'),Q0=A('<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>'),G0={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),W(t,H0);let[i,o]=De(),n=()=>y(G,"$canSkipAd",i),a=()=>y(Q,"$adPlaybackState",i),s=()=>y(M,"$isMobile",i),d=()=>y(ee,"$adPosition",i),l=()=>y(te,"$secondsToWatchBeforeSkipAd",i),c=()=>y(I,"$isVideoEnded",i),u=v(e,"adsSlotId",3,void 0),_=v(e,"adsParams",3,void 0),f=v(e,"adsPreviewParam",3,void 0),$=v(e,"adsAutoplayParam",3,void 0),x=v(e,"duration",3,0),w=be(),S=Rt(),I=w.state.isEnded$,M=w.ui.isMobile,P=S.ads.isMobileGoToSiteButton,A=Y(void 0),T=Y(void 0),B=!1,Q=w.ads.playbackState,G=w.ads.canSkip,ee=w.ads.position,te=w.ads.secondsToWatchBeforeSkip,ie=m(()=>n()&&a()!=="inactive"),oe=m(()=>s()&&a()!=="inactive"&&P);At(()=>{let ke=w.getAdmanWrapper();if(Fg.push("ui",{key:"videoplayer_embed",strings:["new","adman_ads_mount"],numbers:[Ug(),u()]}),!u()){ke.onAdmanLoadingError();return}let Be=Me=>{ke.initAdman(Me),B=!0},pe=new AbortController,R=()=>{pe.abort()},{width:ye,height:Ie}=ve(w.ui.playerSize),je=ve(w.ui.isFullscreen),ze=$()??ve(w.ui.isAutoplay),Te={width:ye,height:Ie,isFullscreen:je,isAutoplay:ze,adsContainer:r(A),adsVideoElement:r(T),slotId:u(),params:_(),previewParam:f(),duration:x()};return window.AdmanHTML?Be(Te):ke.loadAdman(pe.signal).then(()=>{Be(Te)}).catch(()=>{ke.onAdmanLoadingError()}),()=>{Fg.push("ui",{key:"videoplayer_embed",strings:["new","adman_ads_unmount"],numbers:[Ug(),u()]}),!B&&R()}});var ge=O0(),X=h(ge);{var Ve=ke=>{var Be=B0();b(ke,Be)};V(X,ke=>{s()&&ke(Ve)})}var Ae=E(X,2);at(Ae,ke=>N(T,ke),()=>r(T));var se=E(Ae,2);{var He=ke=>{vp(ke,{get position(){return d()},get secondsToWatchBeforeSkip(){return l()},get skipAd(){return w.actions.internal.skipAd}})};V(se,ke=>{r(ie)&&ke(He)})}var j=E(se,2);{var D=ke=>{mp(ke,{})};V(j,ke=>{c()&&ke(D)})}var Re=E(j,2);{var _e=ke=>{gp(ke,{})};V(Re,ke=>{r(oe)&&ke(_e)})}g(ge),at(ge,ke=>N(A,ke),()=>r(A)),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 F0=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 hp(t,e){let i=Se(e,["$$slots","$$events","$$legacy","children"]);var o=F0();let n;var a=h(o);ue(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 U0=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 _p(t,e){let i=Se(e,["$$slots","$$events","$$legacy","children"]);var o=U0();let n;var a=h(o);ue(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=Ne(),n=le(o);{var a=d=>{_p(d,{})},s=d=>{hp(d,{})};V(n,d=>{i()?d(a):d(s,!1)})}b(t,o)}var z0=L('<div class="thumb-timer-live-icon svelte-opbced"><!></div>'),W0=L('<div role="timer" data-testid="thumb-timer"><div class="thumb-timer-equalizer svelte-opbced"><div class="col svelte-opbced"></div> <div class="col svelte-opbced"></div> <div class="col svelte-opbced"></div></div> <span class="thumb-timer-text svelte-opbced"><!></span></div>'),q0={hash:"svelte-opbced",code:`.thumb-timer.svelte-opbced {position:absolute;z-index:var(--thumb-timer-z-index);bottom:0;right:0;margin:8px;padding:0 7px;border-radius:3px;background:var(--black-alpha-40);color:var(--white);font-size:12.5px;line-height:23px;height:23px;white-space:nowrap;transition:visibility var(--controls-transition-duration), opacity var(--controls-transition-duration);}.thumb-timer.live.svelte-opbced {font-size:0;line-height:20px;height:20px;border-radius:2px;background:var(--red);}.thumb-timer.hidden.svelte-opbced {visibility:hidden;opacity:0;}.thumb-timer.svelte-opbced:after {
71
71
  /* safari fix */content:'';display:inline-block;vertical-align:middle;height:100%;}.thumb-timer-live-icon.svelte-opbced {display:inline-block;vertical-align:middle;width:42px;height:20px;margin:0 -7px;}.thumb-timer-equalizer.svelte-opbced {display:inline-block;vertical-align:middle;position:relative;width:10px;height:10px;margin-top:-4px;margin-right:4px;}.live.svelte-opbced .thumb-timer-equalizer:where(.svelte-opbced) {margin-top:-2px;}.thumb-timer-equalizer.svelte-opbced .col:where(.svelte-opbced) {width:2px;height:10px;margin-right:2px;background:var(--btn-color, --white);position:absolute;bottom:0;transform-origin:50% 100%;
72
72
  animation: 1.5s infinite linear alternate;animation-play-state:paused;}.thumb-timer.playing.svelte-opbced .thumb-timer-equalizer:where(.svelte-opbced) .col:where(.svelte-opbced) {animation-play-state:running;}.thumb-timer-equalizer.svelte-opbced .col:where(.svelte-opbced):nth-child(1) {left:0;
73
73
  animation-name: svelte-opbced-thumb-timer-equalizer-col1;}.thumb-timer-equalizer.svelte-opbced .col:where(.svelte-opbced):nth-child(2) {left:3px;
@@ -138,9 +138,9 @@ Try switching the\xA0quality to\xA0Auto.`},Vg=x0;var Yr=new Map;Yr.set(Ng.EN,Vg)
138
138
  100% {
139
139
  transform: scaleY(0.6);
140
140
  }
141
- }.thumb-timer-text.svelte-opbced {display:inline-block;text-align:right;}`};function kl(t,e){F(e,!0),z(t,G0);let i=m(e,"isHidden",3,!1),o=m(e,"isLive",3,!1),n=m(e,"isPlaying",3,!1);var a=Q0();let s;var d=E(h(a),2),l=h(d);{var c=_=>{var f=K0(),$=h(f);Fa($,{isActive:!0}),g(f),b(_,f)},u=_=>{var f=Kn();C($=>ue(f,$),[()=>Oo(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 Es=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 r_}from"@vkontakte/videoplayer-core/es2024";import{clientChecker as Kg}from"@vkontakte/videoplayer-core/es2024";var Gn=t=>{t.stopPropagation(),t.preventDefault()},j0=t=>{let e=t.previousElementSibling;e||(e=t.parentNode?.lastElementChild),e?.focus()},Z0=t=>{let e=t.nextElementSibling;e||(e=t.parentNode?.firstElementChild),e?.focus()},X0=t=>{let e=t.code;return e==="Tab"&&!t.shiftKey||e==="ArrowDown"},J0=t=>{let e=t.code;return e==="Tab"||e==="ArrowUp"},Qg=t=>t.code==="Escape",e_=t=>t.code==="ArrowLeft",Tl=(t,e=[])=>{let i=t.code;return["Enter","Space",...e].includes(i)},Gg=t=>{if(X0(t)){Gn(t),Z0(t.target);return}J0(t)&&(Gn(t),j0(t.target))},pa=t=>!Kg.device.isAndroid&&t?.detail===0||Kg.device.isAndroid&&t?.pointerType==="",Ps=async(t,e,i)=>{await Ji(),t&&!t.classList.contains("opened")&&!e&&he(i)&&(await Ji(),i.set(!1),t.focus())},Yg=async(t,e,i)=>{await Ji(),t&&!e&&he(i)&&(i.set(!1),t.focus())},As=async(t,e,i)=>{await Ji(),!!t&&e&&i&&t.children[0]?.focus()},jg=async(t,e)=>{setTimeout(()=>{let i=t[e];!!i&&i.focus()},100)},gc=(t,e)=>{Gg(t),Qg(t)&&(Gn(t),e())},hc=async(t,e)=>{Tl(t,["ArrowRight"])&&(Gn(t),e())},Zg=async(t,e,i)=>{if(Gg(t),e_(t)){Gn(t),e();return}Qg(t)&&(Gn(t),i())},Ms=(t,e)=>{Tl(t)&&(Gn(t),e())},Xg=(t,e,i)=>{if(Tl(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))}},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 _c,isValidURL as a_}from"@vkontakte/videoplayer-shared/es2024";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 th}from"@vkontakte/videoplayer-shared/es2024";var i_=(t,e)=>{Ms(t,()=>e())},o_=A('<li class="item svelte-1hm4mm9" role="menuitem" tabindex="0"> </li>'),n_={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 xp(t,e){F(e,!0),z(t,n_);let i=m(e,"onClick",3,th),o=m(e,"closeContextMenu",3,th),n=d=>{d?.stopPropagation(),i()(),o()()};var a=o_();a.__click=n,a.__keydown=[i_,n];var s=h(a,!0);g(a),C(()=>{Re(a,"aria-label",e.ariaLabel??e.label),Re(a,"data-testid",e.id),ue(s,e.label)}),b(t,a),U()}it(["click","keydown"]);var Ua=(t,e)=>t.weight-e.weight;var Il=(o=>(o.OPEN_SUB_MENU="OPEN_SUB_MENU",o.CLICK="CLICK",o.SWITCH="SWITCH",o))(Il||{});var s_=(t,e)=>{gc(t,e)},l_=t=>{t.preventDefault()},d_=A('<ul role="menu" class="svelte-1p5ukkp"></ul>'),c_={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 wp(t,e){F(e,!0),z(t,c_);let[i,o]=Me(),n=()=>y(ee,"$isLive$",i),a=()=>y(Ae,"$isPiPEnabled$",i),s=()=>y(se,"$chromecastState$",i),d=()=>y(oe,"$pictureInPictureApiIsActive$",i),l=()=>y(Pe,"$isLooped$",i),c=()=>y(ge,"$positionExact$",i),u=()=>y(K,"$debugPanelVisible",i),_=()=>y(Q,"$additionalContextMenuItems$",i),f=m(e,"visible",3,!1),$=m(e,"position",19,()=>({top:0,left:0})),x=m(e,"playerContainerRef",3,void 0),w=m(e,"controlsContainerRef",3,void 0),S=m(e,"menuElementRef",15,void 0),I=X(0),P=X(0),M=_e(),{pictureInPicture$:L}=Fi(),T=Mt(),B=M.ui.contextMenu.visible$,K=M.ui.debugPanelVisible,Q=M.ui.additionalContextMenuItems$,Y=M.ui.t,ae=M.actions.internal.togglePictureInPicture,se=M.state.chromecastState$,ee=M.state.isLive$,ge=M.state.positionExact$,J=M.state.isInteractive,Pe=M.state.looped$,{isEnabled$:Ae,isActive$:oe}=L,Fe=v(()=>T.features.copyVideoLink&&M.callbacks?.onCopyVideoLink),j=v(()=>r(Fe)&&!n()&&!J),N=v(()=>!!M.callbacks?.onCopyEmbedCodeClicked),Le=v(()=>a()&&s()!==r_.CONNECTED&&!J),be=v(()=>T.features.videoRotate&&!J),ke=v(()=>T.showSupport&&!d()),Be=v(()=>T.features.saveTraceInfoToFile),ce=()=>{B.set(!1),e.returnFocus?.()},R=(Xe,Ne)=>{if(!S()||!x()||!w())return;let st=S().getBoundingClientRect(),Vt=x().getBoundingClientRect();D(I,Xe-Vt.left),D(P,Ne-Vt.top),r(I)+st.width>Vt.width&&D(I,Vt.width-st.width),r(P)+st.height>Vt.height&&D(P,Vt.height-st.height),D(I,de(Math.max(r(I),0))),D(P,de(Math.max(r(P),0)))};He(()=>{(async()=>{if(S()&&x()&&w()){await Ji();let{top:Ne,left:st,bottom:Vt,right:Zt}=$(),mi=st??0,ri=Ne??0,oo=S().getBoundingClientRect();_c(st)&&!_c(Zt)&&(mi=Zt-oo.width),_c(Ne)&&!_c(Vt)&&(ri=Vt-oo.height),mi=Math.max(mi,0),ri=Math.max(ri,0),R(mi,ri)}})()});let $e=()=>{M.actions.internal.videoRotate()},Ie=()=>{a_(e.supportLink)&&window.open(e.supportLink,"_blank"),M.actions.internal.reportProblem(),M.actions.internal.pause()},Ge=()=>{let Xe=M.actions.internal.getDebugTextData();if(T.features.saveDebugInfoToFile){let Ne=new Blob([...Xe],{type:"plain/text"}),st=window.URL.createObjectURL(Ne);Na(st,"vk_player_debug_info","txt")}else Es(M.actions.internal.getDebugTextData())},ze=()=>{let Xe=M.actions.internal.getTraceTextData(),Ne=new Blob([...Xe],{type:"application/json"}),st=window.URL.createObjectURL(Ne);Na(st,"vk_player_trace_info","json")},ye=()=>{K.set(!0)},Ve=async()=>{try{ae()}finally{e.returnFocus?.()}},qe=()=>{M.actions.internal.setLooped(!l())},ot=()=>{if(r(N)){let Xe=M.callbacks?.onCopyEmbedCodeClicked?.();Xe&&Es(Xe)}},ut=(Xe=!1)=>{if(M.callbacks?.onCopyVideoLink){let Ne=M.callbacks?.onCopyVideoLink(Xe,c());Ne&&Es(Ne)}},pt=v(()=>T.features.saveDebugInfoToFile?Y("menu_save_debug"):Y("menu_copy_debug")),Tt=v(()=>r(Fe)?{id:"copy-link",weight:mr["copy-link"],label:Y("menu_copy_video_link"),onClick:()=>ut()}:void 0),nt=v(()=>r(j)?{id:"copy-link-timestamp",weight:mr["copy-link-timestamp"],label:Y("menu_copy_video_link_with_timestamp"),onClick:()=>ut(!0)}:void 0),vt=v(()=>r(N)?{id:"copy-embed-code",weight:mr["copy-embed-code"],label:Y("menu_copy_embed_code"),onClick:ot}:void 0),Lt=v(()=>r(Le)?{id:"pip",weight:mr.pip,label:Y("menu_pip"),onClick:Ve}:void 0),Te=v(()=>({id:"video-loop",weight:mr["video-loop"],label:l()?Y("menu_video_loop_off"):Y("menu_video_loop_on"),ariaLabel:Y("aria_label_menu_loop"),onClick:qe})),Ue=v(()=>r(be)?{id:"rotate",weight:mr.rotate,label:Y("menu_video_rotate"),ariaLabel:Y("aria_label_menu_rotate"),onClick:$e}:void 0),Ye=v(()=>r(ke)?{id:"report",weight:mr.report,label:Y("menu_report"),ariaLabel:`${Y("menu_report")}. ${Y("aria_label_new_tab_alert")}`,onClick:Ie}:void 0),W=v(()=>({id:"save-debug",weight:mr["save-debug"],label:r(pt),onClick:Ge})),ne=v(()=>r(Be)?{id:"save-trace",weight:mr["save-trace"],label:Y("menu_save_debug"),onClick:ze}:void 0),ie=v(()=>({id:"debug-info",weight:mr["debug-info"],label:Y("menu_debug_overlay"),ariaLabel:u()?Y("aria_label_menu_debug_overlay_disable"):Y("aria_label_menu_debug_overlay_enable"),onClick:ye})),We=v(()=>[r(Tt),r(nt),r(vt),r(Lt),r(Te),r(Ue),r(Ye),r(W),r(ne),r(ie),..._()].filter(Xe=>!!Xe).sort(Ua));var Ze=De(),$t=le(Ze);{var Ke=Xe=>{var Ne=d_();Ne.__contextmenu=[l_],Ne.__keydown=[s_,ce],ai(Ne,21,()=>r(We),st=>st.id,(st,Vt)=>{xp(st,{get id(){return r(Vt).id},get label(){return r(Vt).label},get ariaLabel(){return r(Vt).ariaLabel},get onClick(){return r(Vt).onClick},closeContextMenu:ce})}),g(Ne),at(Ne,st=>S(st),()=>S()),C(()=>tt(Ne,`top: ${r(P)??""}px; left: ${r(I)??""}px;`)),b(Xe,Ne)};V($t,Xe=>{f()&&Xe(Ke)})}b(t,Ze),U(),o()}it(["contextmenu","keydown"]);var bc=class{constructor(e){this.value=e,this.next=null}};var Ls=class{constructor(e){this.top=null,this.bottom=null,this.size=0,this.maxSize=e}push(e){let i=new bc(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 u_=A('<div class="container svelte-1ssl9eb"><canvas class="svelte-1ssl9eb"></canvas></div>'),p_={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 El(t,e){F(e,!0),z(t,p_);let i=m(e,"values",19,()=>[]),o=X(void 0),n=X(null),a=16,s=120,d=60,l=s/d;At(()=>{r(o).width=s,r(o).height=a,D(n,de(r(o).getContext("2d")))});function c(f,$,x,w,S){S===0&&(S=1),f.fillStyle="#fff",f.fillRect($,x,w,S)}He(()=>{let f="";if(r(n)){let $=i()[0];for(let w=1;w<i().length;w++)i()[w]>$&&($=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=$>0?a*(i()[w]/$):0;c(r(n),S,0,l,I),f=I+" "+f,x--}}});var u=u_(),_=h(u);at(_,f=>D(o,f),()=>r(o)),g(u),b(t,u),U()}import{safeStorage as ih}from"@vkontakte/videoplayer-shared/es2024";var f_=(t,e)=>{t.stopPropagation(),ih.remove(_l),e.set(!1)},m_=A('<div class="svelte-4deykz"><div class="svelte-4deykz">Video id</div> <span> </span></div>'),v_=A('<div class="svelte-4deykz"><div class="svelte-4deykz">VSID</div> <span> </span></div>'),g_=A('<div class="svelte-4deykz"><div class="svelte-4deykz">Provider</div> <span> </span></div>'),h_=A('<div class="svelte-4deykz"><div class="svelte-4deykz">Streams</div> <span> </span></div>'),__=A('<div class="svelte-4deykz"><div class="svelte-4deykz">Viewport</div> <span> </span></div>'),b_=A('<div class="svelte-4deykz"><div class="svelte-4deykz">Video size</div> <span> </span></div>'),$_=A('<div class="svelte-4deykz"><div class="svelte-4deykz">CDN host</div> <span> </span></div>'),y_=A('<div class="svelte-4deykz"><div class="svelte-4deykz">Volume</div> <span> </span></div>'),x_=A('<div class="svelte-4deykz"><div class="svelte-4deykz">Buffer</div> <span> </span></div>'),w_=A('<div class="svelte-4deykz"><div class="svelte-4deykz">Live latency</div> <span> </span></div>'),S_=A('<div class="svelte-4deykz"><div class="svelte-4deykz">Segment</div> <span> </span></div>'),C_=A('<div class="svelte-4deykz"><div class="svelte-4deykz">Network</div> <!> <span> </span></div>'),k_=A('<div class="svelte-4deykz"><div class="svelte-4deykz">V bitrate</div> <!> <span> </span></div>'),T_=A('<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>'),I_={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 Pl(t,e){F(e,!0),z(t,I_);let[i,o]=Me(),n=()=>y(d,"$isMobile",i),a=_e(),s=a.ui.debugPanelVisible,d=a.ui.isMobile,l=X(de(a.actions.internal.getDebugPanelData())),c=a.actions.internal.getVideoElement(),u=X(0),_=X(0),f=X(0),$=new Ls(60),x=new Ls(60),w=new Ls(60),S=X(de([])),I=X(de([])),P=X(de([])),M=H("aria_label_debug_panel");At(()=>{ih.set(_l,"true"),a.actions.internal.startLogging(),c&&(D(_,de(c.getVideoPlaybackQuality().droppedVideoFrames)),D(u,de(c.getVideoPlaybackQuality().totalVideoFrames)));let W=window.setInterval(()=>{D(l,de(a.actions.internal.getDebugPanelData()))},500),ne;return c&&(ne=window.setInterval(()=>{if(c){D(_,de(c.getVideoPlaybackQuality().droppedVideoFrames));let ie=c.getVideoPlaybackQuality().totalVideoFrames;D(f,ie-r(u)),D(u,de(ie)),$.push(r(f)),r(l).speed&&x.push(r(l).speed),r(l).bitrate&&w.push(r(l).bitrate),D(S,de($.getValuesFromBottom())),D(I,de(x.getValuesFromBottom())),D(P,de(w.getValuesFromBottom()))}},1e3)),()=>{a.actions.internal.stopLogging(),clearInterval(W),ne&&clearInterval(ne)}});var L=T_();let T;Re(L,"aria-label",M);var B=h(L);B.__click=[f_,s];var K=E(B,2),Q=h(K),Y=E(h(Q),2),ae=h(Y,!0);g(Y),g(Q);var se=E(Q,2);{var ee=W=>{var ne=m_(),ie=E(h(ne),2),We=h(ie,!0);g(ie),g(ne),C(()=>ue(We,r(l).id)),b(W,ne)};V(se,W=>{r(l).id&&W(ee)})}var ge=E(se,2);{var J=W=>{var ne=v_(),ie=E(h(ne),2),We=h(ie,!0);g(ie),g(ne),C(()=>ue(We,r(l).vsid)),b(W,ne)};V(ge,W=>{r(l).vsid&&W(J)})}var Pe=E(ge,2);{var Ae=W=>{var ne=g_(),ie=E(h(ne),2),We=h(ie,!0);g(ie),g(ne),C(()=>ue(We,r(l).provider)),b(W,ne)};V(Pe,W=>{r(l).provider&&W(Ae)})}var oe=E(Pe,2);{var Fe=W=>{var ne=h_(),ie=E(h(ne),2),We=h(ie);g(ie),g(ne),C(()=>ue(We,`Video: ${r(l).videoCodec||""} ${(r(l).hdr?"(HDR)":"")??""}
141
+ }.thumb-timer-text.svelte-opbced {display:inline-block;text-align:right;}`};function yl(t,e){F(e,!0),W(t,q0);let i=v(e,"isHidden",3,!1),o=v(e,"isLive",3,!1),n=v(e,"isPlaying",3,!1);var a=W0();let s;var d=E(h(a),2),l=h(d);{var c=_=>{var f=z0(),$=h(f);$l($,{isActive:!0}),g(f),b(_,f)},u=_=>{var f=qn();C($=>ce(f,$),[()=>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 ks=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 i_}from"@vkontakte/videoplayer-core/es2024";import{clientChecker as zg}from"@vkontakte/videoplayer-core/es2024";var Gn=t=>{t.stopPropagation(),t.preventDefault()},Q0=t=>{let e=t.previousElementSibling;e||(e=t.parentNode?.lastElementChild),e?.focus()},G0=t=>{let e=t.nextElementSibling;e||(e=t.parentNode?.firstElementChild),e?.focus()},Y0=t=>{let e=t.code;return e==="Tab"&&!t.shiftKey||e==="ArrowDown"},j0=t=>{let e=t.code;return e==="Tab"||e==="ArrowUp"},Wg=t=>t.code==="Escape",Z0=t=>t.code==="ArrowLeft",xl=(t,e=[])=>{let i=t.code;return["Enter","Space",...e].includes(i)},qg=t=>{if(Y0(t)){Gn(t),G0(t.target);return}j0(t)&&(Gn(t),Q0(t.target))},ca=t=>!zg.device.isAndroid&&t?.detail===0||zg.device.isAndroid&&t?.pointerType==="",Ts=async(t,e,i)=>{await Zi(),t&&!t.classList.contains("opened")&&!e&&ve(i)&&(await Zi(),i.set(!1),t.focus())},Kg=async(t,e,i)=>{await Zi(),t&&!e&&ve(i)&&(i.set(!1),t.focus())},Is=async(t,e,i)=>{await Zi(),!!t&&e&&i&&t.children[0]?.focus()},Qg=async(t,e)=>{setTimeout(()=>{let i=t[e];!!i&&i.focus()},100)},pc=(t,e)=>{qg(t),Wg(t)&&(Gn(t),e())},fc=async(t,e)=>{xl(t,["ArrowRight"])&&(Gn(t),e())},Gg=async(t,e,i)=>{if(qg(t),Z0(t)){Gn(t),e();return}Wg(t)&&(Gn(t),i())},Es=(t,e)=>{xl(t)&&(Gn(t),e())},Yg=(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))}},jg=t=>{let e=t.getBoundingClientRect(),i=-14,o=e.left+e.width,n=e.top+i;return{right:o,bottom:n}},Zg=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 mc,isValidURL as o_}from"@vkontakte/videoplayer-shared/es2024";var gr={"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 Xg}from"@vkontakte/videoplayer-shared/es2024";var J0=(t,e)=>{Es(t,()=>e())},e_=L('<li class="item svelte-1hm4mm9" role="menuitem" tabindex="0"> </li>'),t_={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 bp(t,e){F(e,!0),W(t,t_);let i=v(e,"onClick",3,Xg),o=v(e,"closeContextMenu",3,Xg),n=d=>{d?.stopPropagation(),i()(),o()()};var a=e_();a.__click=n,a.__keydown=[J0,n];var s=h(a,!0);g(a),C(()=>{Le(a,"aria-label",e.ariaLabel??e.label),Le(a,"data-testid",e.id),ce(s,e.label)}),b(t,a),U()}ot(["click","keydown"]);var Ha=(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 n_=(t,e)=>{pc(t,e)},r_=t=>{t.preventDefault()},a_=L('<ul role="menu" class="svelte-1p5ukkp"></ul>'),s_={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),W(t,s_);let[i,o]=De(),n=()=>y(oe,"$isLive$",i),a=()=>y(Ae,"$isPiPEnabled$",i),s=()=>y(ie,"$chromecastState$",i),d=()=>y(se,"$pictureInPictureApiIsActive$",i),l=()=>y(Ve,"$isLooped$",i),c=()=>y(ge,"$positionExact$",i),u=()=>y(Q,"$debugPanelVisible",i),_=()=>y(G,"$additionalContextMenuItems$",i),f=v(e,"visible",3,!1),$=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),M=Y(0),P=be(),{pictureInPicture$:A}=zi(),T=Rt(),B=P.ui.contextMenu.visible$,Q=P.ui.debugPanelVisible,G=P.ui.additionalContextMenuItems$,ee=P.ui.t,te=P.actions.internal.togglePictureInPicture,ie=P.state.chromecastState$,oe=P.state.isLive$,ge=P.state.positionExact$,X=P.state.isInteractive,Ve=P.state.looped$,{isEnabled$:Ae,isActive$:se}=A,He=m(()=>T.features.copyVideoLink&&P.callbacks?.onCopyVideoLink),j=m(()=>r(He)&&!n()&&!X),D=m(()=>!!P.callbacks?.onCopyEmbedCodeClicked),Re=m(()=>a()&&s()!==i_.CONNECTED&&!X),_e=m(()=>T.features.videoRotate&&!X),ke=m(()=>T.showSupport&&!d()),Be=m(()=>T.features.saveTraceInfoToFile),pe=()=>{B.set(!1),e.returnFocus?.()},R=(Je,Ee)=>{if(!S()||!x()||!w())return;let ct=S().getBoundingClientRect(),Bt=x().getBoundingClientRect();N(I,Je-Bt.left),N(M,Ee-Bt.top),r(I)+ct.width>Bt.width&&N(I,Bt.width-ct.width),r(M)+ct.height>Bt.height&&N(M,Bt.height-ct.height),N(I,de(Math.max(r(I),0))),N(M,de(Math.max(r(M),0)))};Ue(()=>{(async()=>{if(S()&&x()&&w()){await Zi();let{top:Ee,left:ct,bottom:Bt,right:Gt}=$(),Xt=ct??0,ri=Ee??0,Wi=S().getBoundingClientRect();mc(ct)&&!mc(Gt)&&(Xt=Gt-Wi.width),mc(Ee)&&!mc(Bt)&&(ri=Bt-Wi.height),Xt=Math.max(Xt,0),ri=Math.max(ri,0),R(Xt,ri)}})()});let ye=()=>{P.actions.internal.videoRotate()},Ie=()=>{o_(e.supportLink)&&window.open(e.supportLink,"_blank"),P.actions.internal.reportProblem(),P.actions.internal.pause()},je=()=>{let Je=P.actions.internal.getDebugTextData();if(T.features.saveDebugInfoToFile){let Ee=new Blob([...Je],{type:"plain/text"}),ct=window.URL.createObjectURL(Ee);Va(ct,"vk_player_debug_info","txt")}else ks(P.actions.internal.getDebugTextData())},ze=()=>{let Je=P.actions.internal.getTraceTextData(),Ee=new Blob([...Je],{type:"application/json"}),ct=window.URL.createObjectURL(Ee);Va(ct,"vk_player_trace_info","json")},Te=()=>{Q.set(!0)},Me=async()=>{try{te()}finally{e.returnFocus?.()}},We=()=>{P.actions.internal.setLooped(!l())},it=()=>{if(r(D)){let Je=P.callbacks?.onCopyEmbedCodeClicked?.();Je&&ks(Je)}},vt=(Je=!1)=>{if(P.callbacks?.onCopyVideoLink){let Ee=P.callbacks?.onCopyVideoLink(Je,c());Ee&&ks(Ee)}},st=m(()=>T.features.saveDebugInfoToFile?ee("menu_save_debug"):ee("menu_copy_debug")),It=m(()=>r(He)?{id:"copy-link",weight:gr["copy-link"],label:ee("menu_copy_video_link"),onClick:()=>vt()}:void 0),nt=m(()=>r(j)?{id:"copy-link-timestamp",weight:gr["copy-link-timestamp"],label:ee("menu_copy_video_link_with_timestamp"),onClick:()=>vt(!0)}:void 0),gt=m(()=>r(D)?{id:"copy-embed-code",weight:gr["copy-embed-code"],label:ee("menu_copy_embed_code"),onClick:it}:void 0),Mt=m(()=>r(Re)?{id:"pip",weight:gr.pip,label:ee("menu_pip"),onClick:Me}:void 0),Ce=m(()=>({id:"video-loop",weight:gr["video-loop"],label:l()?ee("menu_video_loop_off"):ee("menu_video_loop_on"),ariaLabel:ee("aria_label_menu_loop"),onClick:We})),Oe=m(()=>r(_e)?{id:"rotate",weight:gr.rotate,label:ee("menu_video_rotate"),ariaLabel:ee("aria_label_menu_rotate"),onClick:ye}:void 0),Ze=m(()=>r(ke)?{id:"report",weight:gr.report,label:ee("menu_report"),ariaLabel:`${ee("menu_report")}. ${ee("aria_label_new_tab_alert")}`,onClick:Ie}:void 0),q=m(()=>({id:"save-debug",weight:gr["save-debug"],label:r(st),onClick:je})),ae=m(()=>r(Be)?{id:"save-trace",weight:gr["save-trace"],label:ee("menu_save_debug"),onClick:ze}:void 0),ne=m(()=>({id:"debug-info",weight:gr["debug-info"],label:ee("menu_debug_overlay"),ariaLabel:u()?ee("aria_label_menu_debug_overlay_disable"):ee("aria_label_menu_debug_overlay_enable"),onClick:Te})),Fe=m(()=>[r(It),r(nt),r(gt),r(Mt),r(Ce),r(Oe),r(Ze),r(q),r(ae),r(ne),..._()].filter(Je=>!!Je).sort(Ha));var Ge=Ne(),wt=le(Ge);{var Ke=Je=>{var Ee=a_();Ee.__contextmenu=[r_],Ee.__keydown=[n_,pe],di(Ee,21,()=>r(Fe),ct=>ct.id,(ct,Bt)=>{bp(ct,{get id(){return r(Bt).id},get label(){return r(Bt).label},get ariaLabel(){return r(Bt).ariaLabel},get onClick(){return r(Bt).onClick},closeContextMenu:pe})}),g(Ee),at(Ee,ct=>S(ct),()=>S()),C(()=>tt(Ee,`top: ${r(M)??""}px; left: ${r(I)??""}px;`)),b(Je,Ee)};V(wt,Je=>{f()&&Je(Ke)})}b(t,Ge),U(),o()}ot(["contextmenu","keydown"]);var vc=class{constructor(e){this.value=e,this.next=null}};var Ps=class{constructor(e){this.top=null,this.bottom=null,this.size=0,this.maxSize=e}push(e){let i=new vc(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 l_=L('<div class="container svelte-1ssl9eb"><canvas class="svelte-1ssl9eb"></canvas></div>'),d_={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),W(t,d_);let i=v(e,"values",19,()=>[]),o=Y(void 0),n=Y(null),a=16,s=120,d=60,l=s/d;At(()=>{r(o).width=s,r(o).height=a,N(n,de(r(o).getContext("2d")))});function c(f,$,x,w,S){S===0&&(S=1),f.fillStyle="#fff",f.fillRect($,x,w,S)}Ue(()=>{let f="";if(r(n)){let $=i()[0];for(let w=1;w<i().length;w++)i()[w]>$&&($=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=$>0?a*(i()[w]/$):0;c(r(n),S,0,l,I),f=I+" "+f,x--}}});var u=l_(),_=h(u);at(_,f=>N(o,f),()=>r(o)),g(u),b(t,u),U()}import{safeStorage as Jg}from"@vkontakte/videoplayer-shared/es2024";var c_=(t,e)=>{t.stopPropagation(),Jg.remove(pl),e.set(!1)},u_=L('<div class="svelte-4deykz"><div class="svelte-4deykz">Video id</div> <span> </span></div>'),p_=L('<div class="svelte-4deykz"><div class="svelte-4deykz">VSID</div> <span> </span></div>'),f_=L('<div class="svelte-4deykz"><div class="svelte-4deykz">Provider</div> <span> </span></div>'),m_=L('<div class="svelte-4deykz"><div class="svelte-4deykz">Streams</div> <span> </span></div>'),v_=L('<div class="svelte-4deykz"><div class="svelte-4deykz">Viewport</div> <span> </span></div>'),g_=L('<div class="svelte-4deykz"><div class="svelte-4deykz">Video size</div> <span> </span></div>'),h_=L('<div class="svelte-4deykz"><div class="svelte-4deykz">CDN host</div> <span> </span></div>'),__=L('<div class="svelte-4deykz"><div class="svelte-4deykz">Volume</div> <span> </span></div>'),b_=L('<div class="svelte-4deykz"><div class="svelte-4deykz">Buffer</div> <span> </span></div>'),$_=L('<div class="svelte-4deykz"><div class="svelte-4deykz">Live latency</div> <span> </span></div>'),y_=L('<div class="svelte-4deykz"><div class="svelte-4deykz">Segment</div> <span> </span></div>'),x_=L('<div class="svelte-4deykz"><div class="svelte-4deykz">Network</div> <!> <span> </span></div>'),w_=L('<div class="svelte-4deykz"><div class="svelte-4deykz">V bitrate</div> <!> <span> </span></div>'),S_=L('<div role="region"><button class="close svelte-4deykz" title="\u0437\u0430\u043A\u0440\u044B\u0442\u044C">[x]</button> <div class="content svelte-4deykz"><div class="svelte-4deykz"><div class="svelte-4deykz">Version</div> <span> </span></div> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <div class="svelte-4deykz"><div class="svelte-4deykz">Dropped</div> <span> </span></div> <!> <!> <div class="svelte-4deykz"><div class="svelte-4deykz">FPS</div> <!> <span> </span></div></div></div>'),C_={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),W(t,C_);let[i,o]=De(),n=()=>y(d,"$isMobile",i),a=be(),s=a.ui.debugPanelVisible,d=a.ui.isMobile,l=Y(de(a.actions.internal.getDebugPanelData())),c=a.actions.internal.getVideoElement(),u=Y(0),_=Y(0),f=Y(0),$=new Ps(60),x=new Ps(60),w=new Ps(60),S=Y(de([])),I=Y(de([])),M=Y(de([])),P=H("aria_label_debug_panel");At(()=>{Jg.set(pl,"true"),a.actions.internal.startLogging(),c&&(N(_,de(c.getVideoPlaybackQuality().droppedVideoFrames)),N(u,de(c.getVideoPlaybackQuality().totalVideoFrames)));let q=window.setInterval(()=>{N(l,de(a.actions.internal.getDebugPanelData()))},500),ae;return c&&(ae=window.setInterval(()=>{if(c){N(_,de(c.getVideoPlaybackQuality().droppedVideoFrames));let ne=c.getVideoPlaybackQuality().totalVideoFrames;N(f,ne-r(u)),N(u,de(ne)),$.push(r(f)),r(l).speed&&x.push(r(l).speed),r(l).bitrate&&w.push(r(l).bitrate),N(S,de($.getValuesFromBottom())),N(I,de(x.getValuesFromBottom())),N(M,de(w.getValuesFromBottom()))}},1e3)),()=>{a.actions.internal.stopLogging(),clearInterval(q),ae&&clearInterval(ae)}});var A=S_();let T;Le(A,"aria-label",P);var B=h(A);B.__click=[c_,s];var Q=E(B,2),G=h(Q),ee=E(h(G),2),te=h(ee,!0);g(ee),g(G);var ie=E(G,2);{var oe=q=>{var ae=u_(),ne=E(h(ae),2),Fe=h(ne,!0);g(ne),g(ae),C(()=>ce(Fe,r(l).id)),b(q,ae)};V(ie,q=>{r(l).id&&q(oe)})}var ge=E(ie,2);{var X=q=>{var ae=p_(),ne=E(h(ae),2),Fe=h(ne,!0);g(ne),g(ae),C(()=>ce(Fe,r(l).vsid)),b(q,ae)};V(ge,q=>{r(l).vsid&&q(X)})}var Ve=E(ge,2);{var Ae=q=>{var ae=f_(),ne=E(h(ae),2),Fe=h(ne,!0);g(ne),g(ae),C(()=>ce(Fe,r(l).provider)),b(q,ae)};V(Ve,q=>{r(l).provider&&q(Ae)})}var se=E(Ve,2);{var He=q=>{var ae=m_(),ne=E(h(ae),2),Fe=h(ne);g(ne),g(ae),C(()=>ce(Fe,`Video: ${r(l).videoCodec||""} ${(r(l).hdr?"(HDR)":"")??""}
142
142
  &
143
- Audio: ${r(l).audioCodec||""} ${(r(l).audioLanguage?`(${r(l).audioLanguage})`:"")??""}`)),b(W,ne)};V(oe,W=>{(r(l).videoCodec||r(l).audioCodec)&&W(Fe)})}var j=E(oe,2);{var N=W=>{var ne=__(),ie=E(h(ne),2),We=h(ie,!0);g(ie),g(ne),C(()=>ue(We,r(l).viewport)),b(W,ne)};V(j,W=>{r(l).viewport&&W(N)})}var Le=E(j,2);{var be=W=>{var ne=b_(),ie=E(h(ne),2),We=h(ie,!0);g(ie),g(ne),C(()=>ue(We,r(l).videoSize)),b(W,ne)};V(Le,W=>{r(l).videoSize&&W(be)})}var ke=E(Le,2);{var Be=W=>{var ne=$_(),ie=E(h(ne),2),We=h(ie,!0);g(ie),g(ne),C(()=>ue(We,r(l).cdn)),b(W,ne)};V(ke,W=>{r(l).cdn&&W(Be)})}var ce=E(ke,2);{var R=W=>{var ne=y_(),ie=E(h(ne),2),We=h(ie);g(ie),g(ne),C(()=>ue(We,`${r(l).volume??""} %`)),b(W,ne)};V(ce,W=>{r(l).volume&&W(R)})}var $e=E(ce,2);{var Ie=W=>{var ne=x_(),ie=E(h(ne),2),We=h(ie);g(ie),g(ne),C(Ze=>ue(We,`${Ze??""} s`),[()=>r(l).buffer.toFixed(2)]),b(W,ne)};V($e,W=>{r(l).buffer&&W(Ie)})}var Ge=E($e,2);{var ze=W=>{var ne=w_(),ie=E(h(ne),2),We=h(ie);g(ie),g(ne),C(Ze=>ue(We,`${Ze??""} s`),[()=>r(l).liveLatency.toFixed(2)]),b(W,ne)};V(Ge,W=>{r(l).liveLatency&&W(ze)})}var ye=E(Ge,2);{var Ve=W=>{var ne=S_(),ie=E(h(ne),2),We=h(ie,!0);g(ie),g(ne),C(Ze=>ue(We,Ze),[()=>[{value:r(l).currentVideoSegmentLength,title:"Video:"},{value:r(l).currentAudioSegmentLength,title:"Audio:"}].filter(({value:Ze})=>Ze).map(({value:Ze,title:$t})=>`${$t} ${((Ze??0)/1e3).toFixed(2)} s`).join(" & ")]),b(W,ne)};V(ye,W=>{(r(l).currentVideoSegmentLength||r(l).currentAudioSegmentLength)&&W(Ve)})}var qe=E(ye,2),ot=E(h(qe),2),ut=h(ot);g(ot),g(qe);var pt=E(qe,2);{var Tt=W=>{var ne=C_(),ie=E(h(ne),2);El(ie,{get values(){return r(I)}});var We=E(ie,2),Ze=h(We);g(We),g(ne),C($t=>ue(Ze,`${$t??""} Kbps`),[()=>r(l).speed.toFixed(2)]),b(W,ne)};V(pt,W=>{r(l).speed&&W(Tt)})}var nt=E(pt,2);{var vt=W=>{var ne=k_(),ie=E(h(ne),2);El(ie,{get values(){return r(P)}});var We=E(ie,2),Ze=h(We);g(We),g(ne),C($t=>ue(Ze,`${$t??""} Kbps`),[()=>r(l).bitrate.toFixed(2)]),b(W,ne)};V(nt,W=>{r(l).bitrate&&W(vt)})}var Lt=E(nt,2),Te=E(h(Lt),2);El(Te,{get values(){return r(S)}});var Ue=E(Te,2),Ye=h(Ue,!0);g(Ue),g(Lt),g(K),g(L),C(W=>{T=Z(L,1,"container svelte-4deykz",null,T,W),ue(ae,r(l).version),ue(ut,`${r(_)??""} / ${r(u)??""} frames`),ue(Ye,r(f))},[()=>({"container-mobile":n()})]),b(t,L),U(),o()}it(["click"]);import{noop as E_}from"@vkontakte/videoplayer-shared/es2024";var P_=(t,e)=>{t.stopPropagation(),e()()},A_=A('<div class="close svelte-1ome55p"></div>'),M_={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 za(t,e){F(e,!0),z(t,M_);let i=m(e,"onClick",3,E_);var o=A_();o.__click=[P_,i],b(t,o),U()}it(["click"]);import{noop as L_}from"@vkontakte/videoplayer-shared/es2024";var V_=A('<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>'),R_={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 Al(t,e){F(e,!0),z(t,R_);let i=m(e,"isRunning",3,!0),o=m(e,"onTimerEnded",3,L_),n=5e3,a=X(void 0),s,d,l=X(0),c;He(()=>{i()&&(d=Date.now(),D(l,de(requestAnimationFrame(_))))});let u=()=>{r(l)&&(cancelAnimationFrame(r(l)),D(l,0))},_=()=>{if(!i()){u();return}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(),D(l,de(requestAnimationFrame(_)))):o()()};At(()=>{if(s=r(a).getContext("2d"),!!s)return s.lineWidth=6,s.lineCap="round",s.strokeStyle="#fff",()=>{u()}}),on(()=>{u()});var f=V_(),$=h(f);at($,x=>D(a,x),()=>r(a)),me(2),g(f),b(t,f),U()}var N_=(t,e,i)=>{e(!1),i()},D_=A('<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),B_={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 Sp(t,e){F(e,!0),z(t,B_);let[i,o]=Me(),n=()=>y(d,"$autoplayNextEnabled$",i),a=()=>y(l,"$timerNextVideoRunning$",i),s=_e(),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,$=s.actions.internal.nextVideoAnnouncementCancel,x=()=>{n()&&(c(!1),f())},w=()=>{e.clickCloseIcon(),$()};At(()=>{e.isHide||u(),e.isHide&&n()&&(c(!1),f())});var S=De(),I=le(S);{var P=M=>{var L=D_(),T=E(le(L),2),B=h(T),K=h(B),Q=h(K,!0);g(K);var Y=E(K,2);za(Y,{onClick:w}),g(B);var ae=E(B,2);ae.__click=[N_,c,_];var se=h(ae),ee=h(se),ge=h(ee);let J;var Pe=E(ge,2);{var Ae=N=>{let Le=v(()=>a()&&n());Al(N,{get isRunning(){return r(Le)},onTimerEnded:x})};V(Pe,N=>{n()&&N(Ae)})}g(ee),g(se);var oe=E(se,2),Fe=h(oe),j=h(Fe,!0);g(Fe),g(oe),g(ae),g(T),C((N,Le)=>{ue(Q,N),tt(ee,`background-image: url('${e.thumb}')`),J=Z(ge,1,"thumb-overlay svelte-jfbaax",null,J,Le),ue(j,e.title)},[()=>H("end_screen_next_video"),()=>({withOpacity:n()})]),b(M,L)};V(I,M=>{e.isHide||M(P)})}b(t,S),U(),o()}it(["click"]);import{PlaybackState as qa}from"@vkontakte/videoplayer-core/es2024";import{checkNever as H_}from"@vkontakte/videoplayer-shared/es2024";import{SeekAction as nn}from"@vkontakte/videoplayer-statistics/es2024";var Cp=(t,e)=>Math.min(+(t+e).toFixed(2),1),kp=(t,e)=>Math.max(+(t-e).toFixed(2),0),$c=(t,e,i)=>{let o=Cp(e,i);e<1&&t.actions.internal.setVolume(o)},yc=(t,e,i)=>{let o=kp(e,i);e>0&&t.actions.internal.setVolume(o)};var fa=({isAudioDisabled:t,audioDisabledHintCallback:e,isAudioAvailable:i,audioIsNotExistHintCallback:o})=>t?(e?.(),!1):i?!0:(o?.(),!1);var F_=A('<div class="keyboard-controls svelte-10kkmxz" tabindex="-1" role="region"><!></div>'),U_={hash:"svelte-10kkmxz",code:".keyboard-controls.svelte-10kkmxz {position:absolute;left:0;right:0;top:0;bottom:0;}"};function Tp(t,e){F(e,!0),z(t,U_);let[i,o]=Me(),n=()=>y(Q,"$playbackState$",i),a=()=>y(Y,"$adPlaybackState",i),s=()=>y(ge,"$disabledControls$",i),d=()=>y(ae,"$positionExact$",i),l=()=>y(se,"$duration$",i),c=()=>y(R,"$isAudioAvailable$",i),u=()=>y(ee,"$volume$",i),_=()=>y(oe,"$availablePlaybackRates$",i),f=()=>y(Ae,"$currentPlaybackRate$",i),$=()=>y(Ie,"$isInteractiveTime$",i),x=()=>y(Ge,"$showInteractiveTimeIndicatorTooltip$",i),w=()=>y(be,"$isEnded$",i),S=()=>y(J,"$muted$",i),I=()=>y(Pe,"$currentSubtitle$",i),P=()=>y(ke,"$overlayContainer$",i),M=m(e,"nextButtonActive",3,!1),L=m(e,"prevButtonActive",3,!1),T=_e(),B=Mt(),K=T.getLogger().createComponentLog("KeyboardControls component"),Q=T.state.playbackState$,Y=T.ads.playbackState,ae=T.state.positionExact$,se=T.state.duration$,ee=T.state.volume$,ge=T.ui.controls.disabledControls$,J=T.state.muted$,Pe=T.state.currentSubtitle$,Ae=T.state.currentPlaybackRate$,oe=T.state.availablePlaybackRates$,Fe=T.ui.contextMenu.openedByHotKey$,j=T.ui.contextMenu.lastActiveElem$,N=T.ui.contextMenu.visible$,Le=T.ui.contextMenu.position$,be=T.state.isEnded$,ke=T.ui.overlayContainer$,Be=T.callbacks?.onAudioDoesNotExistHint,ce=T.callbacks?.onAudioDisabledHint,R=T.state.isAudioAvailable$,$e=T.state.isAudioDisabled,Ie=T.state.isInteractiveTime$,{showInteractiveTimeIndicatorTooltip$:Ge}=Fi(),ze=0,ye=!0,Ve=X(void 0),qe=()=>r(Ve)?.focus(),ot=Te=>(Te!==ye&&(ye=Te,ze=0),ze+=1,(B.controls.seekStepKeyboard+B.controls.seekStepKeyboard*ze)/1e3),ut=Te=>{let Ue=Te.target,Ye=Ue?.getAttribute("role")?.includes("menuitem"),W=Ue.classList.contains("btn"),ne=Te.code;if(W&&ne==="Space")return;let ie=rg.has(ne);if(Ye&&ie)return;let We=!ng.has(ne);if(Te.ctrlKey&&We||Te.altKey&&We||Te.metaKey)return;let Ze=Ye&&ne==="Escape";ag.has(ne)||Ze||e.hideContextMenu();let $t=n()===qa.PLAYING||n()===qa.PAUSED,Ke=e.isAds&&(a()==="paused"||a()==="playing"),Xe=!Ke&&!s().has("TIMELINE");if($t||Ke)switch(K({message:`key down, code: ${ne}`}),ne){case"KeyJ":case"ArrowLeft":{if(!Xe)break;if(Te.ctrlKey||Te.altKey){let Ne=T.actions.internal.getPrevEpisode();T.actions.internal.seekToPrevEpisode(Ne),Ne&&e.showHotKeyHelpers({type:"EPISODE_PREV",text:Ne.text}),Te.preventDefault()}else{let Ne=Te.shiftKey?ot(!1):B.controls.seekStepKeyboard/1e3,st=Math.max(d()-Ne,0);d()>0&&(T.actions.internal.seekTime(st,nn.DOUBLE_TAP),e.showHotKeyHelpers({type:"BACKWARD_SEEK",text:Ne.toString()}),Te.preventDefault())}break}case"KeyL":case"ArrowRight":{if(!Xe)break;if(Te.ctrlKey||Te.altKey){let Ne=T.actions.internal.getNextEpisode();T.actions.internal.seekToNextEpisode(Ne),Ne&&e.showHotKeyHelpers({type:"EPISODE_NEXT",text:Ne.text}),Te.preventDefault()}else{let Ne=Te.shiftKey?ot(!0):B.controls.seekStepKeyboard/1e3,st=Math.min(d()+Ne,l());Math.round(d())<Math.round(l())&&(T.actions.internal.seekTime(st,nn.DOUBLE_TAP),e.showHotKeyHelpers({type:"FORWARD_SEEK",text:Ne.toString()}),Te.preventDefault())}break}case"ArrowUp":{if(fa({isAudioDisabled:$e,audioDisabledHintCallback:ce,isAudioAvailable:c(),audioIsNotExistHintCallback:Be})){let Ne=u(),st=B.controls.volumeStepKeyboard,Vt=Ne<=1;if($c(T,Ne,st),Vt){let Zt=Math.round(Cp(Ne,st)*100).toString();e.showHotKeyHelpers({type:"VOLUME",t:{key:"hotkey_helper_current_volume",value:Zt}})}}Te.preventDefault();break}case"ArrowDown":{if(fa({isAudioDisabled:$e,audioDisabledHintCallback:ce,isAudioAvailable:c(),audioIsNotExistHintCallback:Be})){let Ne=u(),st=B.controls.volumeStepKeyboard,Vt=Ne>=0;if(yc(T,Ne,st),Vt){let Zt=Math.round(kp(Ne,st)*100).toString();e.showHotKeyHelpers({type:"VOLUME",t:{key:"hotkey_helper_current_volume",value:Zt}})}}Te.preventDefault();break}case"Comma":{if(Te.shiftKey){T.actions.internal.decrementPlaybackRate();let Ne=_().find(st=>st.value===f());e.showHotKeyHelpers({type:"RATE_DOWN",text:Ne?.displayValue}),Te.preventDefault()}else{if(Ke||n()!==qa.PAUSED)break;let Ne=Math.max(d()-B.controls.seekStepFrame/1e3,0);d()>0&&(e.showHotKeyHelpers({type:"BACKWARD_SEEK"}),T.actions.internal.clearDelayedBufferingCheckTimeout(),T.actions.internal.seekTime(Ne,nn.DOUBLE_TAP),Te.preventDefault())}break}case"Period":{if(Te.shiftKey){T.actions.internal.incrementPlaybackRate();let Ne=_().find(st=>st.value===f());e.showHotKeyHelpers({type:"RATE_UP",text:Ne?.displayValue}),Te.preventDefault()}else{if(Ke||n()!==qa.PAUSED)break;let Ne=Math.min(d()+B.controls.seekStepFrame/1e3,l());d()<l()&&(e.showHotKeyHelpers({type:"FORWARD_SEEK"}),T.actions.internal.clearDelayedBufferingCheckTimeout(),T.actions.internal.seekTime(Ne,nn.DOUBLE_TAP),Te.preventDefault())}break}case"KeyK":case"Space":if(!s().has("PLAY_BUTTON"))if($()&&x()&&Ge.set(!1),e.fakePlayButtonHandler)e.fakePlayButtonHandler();else{T.actions.internal.togglePlay();let Ne="PLAY";n()===qa.PAUSED?Ne="PAUSE":w()&&(Ne="REPLAY"),e.showHotKeyHelpers({type:Ne})}Te.preventDefault();break;case"KeyM":{fa({isAudioDisabled:$e,audioDisabledHintCallback:ce,isAudioAvailable:c(),audioIsNotExistHintCallback:Be})&&(e.showHotKeyHelpers({type:S()?"VOLUME":"MUTE"}),T.actions.internal.toggleMuted()),Te.preventDefault();break}case"KeyF":e.toggleFullscreen(),Te.preventDefault();break;case"KeyC":T.actions.internal.toggleSubtitle(),I().value!=="off"?e.showHotKeyHelpers({type:"SUBTITLES_ON",text:I()?.displayValue}):e.showHotKeyHelpers({type:"SUBTITLES_OFF"}),Te.preventDefault();break;case"KeyI":T.actions.internal.togglePictureInPicture(),Te.preventDefault();break;case"Digit1":case"Numpad1":if(Te.shiftKey){let Ne=eh(P());Le.set(Ne),j.set(Ue),Fe.set(!0),N.set(!0),Te.preventDefault();break}e.showHotKeyHelpers(),T.actions.internal.seekToPercent(.1,nn.DOUBLE_TAP),Te.preventDefault();break;case"Digit2":case"Numpad2":e.showHotKeyHelpers(),T.actions.internal.seekToPercent(.2,nn.DOUBLE_TAP),Te.preventDefault();break;case"Digit3":case"Numpad3":e.showHotKeyHelpers(),T.actions.internal.seekToPercent(.3,nn.DOUBLE_TAP),Te.preventDefault();break;case"Digit4":case"Numpad4":e.showHotKeyHelpers(),T.actions.internal.seekToPercent(.4,nn.DOUBLE_TAP),Te.preventDefault();break;case"Digit5":case"Numpad5":e.showHotKeyHelpers(),T.actions.internal.seekToPercent(.5,nn.DOUBLE_TAP),Te.preventDefault();break;case"Digit6":case"Numpad6":e.showHotKeyHelpers(),T.actions.internal.seekToPercent(.6,nn.DOUBLE_TAP),Te.preventDefault();break;case"Digit7":case"Numpad7":e.showHotKeyHelpers(),T.actions.internal.seekToPercent(.7,nn.DOUBLE_TAP),Te.preventDefault();break;case"Digit8":case"Numpad8":e.showHotKeyHelpers(),T.actions.internal.seekToPercent(.8,nn.DOUBLE_TAP),Te.preventDefault();break;case"Digit9":case"Numpad9":e.showHotKeyHelpers(),T.actions.internal.seekToPercent(.9,nn.DOUBLE_TAP),Te.preventDefault();break;case"Digit0":case"Numpad0":e.showHotKeyHelpers(),T.actions.internal.seekToPercent(0,nn.DOUBLE_TAP),Te.preventDefault();break;case"Slash":{Te.shiftKey&&B.features.hotKeyMapModal&&(e.showKeyMap(),Te.preventDefault());break}case"KeyN":Te.shiftKey&&M()&&T.actions.internal.nextVideoClick();break;case"KeyP":Te.shiftKey&&L()&&T.actions.internal.prevVideoClick();break;case"ShiftLeft":case"ShiftRight":Te.preventDefault();break;case"Tab":case"Escape":case"Enter":break;default:H_(ne);break}},pt=Te=>{let Ue=Te.code;if(Te.ctrlKey||Te.altKey||Te.metaKey)return;let Ye=n()===qa.PLAYING||n()===qa.PAUSED,W=e.isAds&&(a()==="paused"||a()==="playing");if(Ye||W)switch(Ue){case"ShiftLeft":case"ShiftRight":ze=0;break}},Tt=H("aria_label_video_player");var nt=F_();nt.__keyup=pt,nt.__keydown=ut,Re(nt,"aria-label",Tt);var vt=h(nt);pe(vt,()=>e.children??te),g(nt),at(nt,Te=>D(Ve,Te),()=>r(Ve)),b(t,nt);var Lt=U({focus:qe});return o(),Lt}it(["keyup","keydown"]);var z_=A('<div class="container svelte-1dbnjb1"><div class="dot svelte-1dbnjb1"></div> <div class="dot svelte-1dbnjb1"></div> <div class="dot svelte-1dbnjb1"></div></div>'),q_={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(q,ae)};V(se,q=>{(r(l).videoCodec||r(l).audioCodec)&&q(He)})}var j=E(se,2);{var D=q=>{var ae=v_(),ne=E(h(ae),2),Fe=h(ne,!0);g(ne),g(ae),C(()=>ce(Fe,r(l).viewport)),b(q,ae)};V(j,q=>{r(l).viewport&&q(D)})}var Re=E(j,2);{var _e=q=>{var ae=g_(),ne=E(h(ae),2),Fe=h(ne,!0);g(ne),g(ae),C(()=>ce(Fe,r(l).videoSize)),b(q,ae)};V(Re,q=>{r(l).videoSize&&q(_e)})}var ke=E(Re,2);{var Be=q=>{var ae=h_(),ne=E(h(ae),2),Fe=h(ne,!0);g(ne),g(ae),C(()=>ce(Fe,r(l).cdn)),b(q,ae)};V(ke,q=>{r(l).cdn&&q(Be)})}var pe=E(ke,2);{var R=q=>{var ae=__(),ne=E(h(ae),2),Fe=h(ne);g(ne),g(ae),C(()=>ce(Fe,`${r(l).volume??""} %`)),b(q,ae)};V(pe,q=>{r(l).volume&&q(R)})}var ye=E(pe,2);{var Ie=q=>{var ae=b_(),ne=E(h(ae),2),Fe=h(ne);g(ne),g(ae),C(Ge=>ce(Fe,`${Ge??""} s`),[()=>r(l).buffer.toFixed(2)]),b(q,ae)};V(ye,q=>{r(l).buffer&&q(Ie)})}var je=E(ye,2);{var ze=q=>{var ae=$_(),ne=E(h(ae),2),Fe=h(ne);g(ne),g(ae),C(Ge=>ce(Fe,`${Ge??""} s`),[()=>r(l).liveLatency.toFixed(2)]),b(q,ae)};V(je,q=>{r(l).liveLatency&&q(ze)})}var Te=E(je,2);{var Me=q=>{var ae=y_(),ne=E(h(ae),2),Fe=h(ne,!0);g(ne),g(ae),C(Ge=>ce(Fe,Ge),[()=>[{value:r(l).currentVideoSegmentLength,title:"Video:"},{value:r(l).currentAudioSegmentLength,title:"Audio:"}].filter(({value:Ge})=>Ge).map(({value:Ge,title:wt})=>`${wt} ${((Ge??0)/1e3).toFixed(2)} s`).join(" & ")]),b(q,ae)};V(Te,q=>{(r(l).currentVideoSegmentLength||r(l).currentAudioSegmentLength)&&q(Me)})}var We=E(Te,2),it=E(h(We),2),vt=h(it);g(it),g(We);var st=E(We,2);{var It=q=>{var ae=x_(),ne=E(h(ae),2);Sl(ne,{get values(){return r(I)}});var Fe=E(ne,2),Ge=h(Fe);g(Fe),g(ae),C(wt=>ce(Ge,`${wt??""} Kbps`),[()=>r(l).speed.toFixed(2)]),b(q,ae)};V(st,q=>{r(l).speed&&q(It)})}var nt=E(st,2);{var gt=q=>{var ae=w_(),ne=E(h(ae),2);Sl(ne,{get values(){return r(M)}});var Fe=E(ne,2),Ge=h(Fe);g(Fe),g(ae),C(wt=>ce(Ge,`${wt??""} Kbps`),[()=>r(l).bitrate.toFixed(2)]),b(q,ae)};V(nt,q=>{r(l).bitrate&&q(gt)})}var Mt=E(nt,2),Ce=E(h(Mt),2);Sl(Ce,{get values(){return r(S)}});var Oe=E(Ce,2),Ze=h(Oe,!0);g(Oe),g(Mt),g(Q),g(A),C(q=>{T=Z(A,1,"container svelte-4deykz",null,T,q),ce(te,r(l).version),ce(vt,`${r(_)??""} / ${r(u)??""} frames`),ce(Ze,r(f))},[()=>({"container-mobile":n()})]),b(t,A),U(),o()}ot(["click"]);import{noop as k_}from"@vkontakte/videoplayer-shared/es2024";var T_=(t,e)=>{t.stopPropagation(),e()()},I_=L('<div class="close svelte-1ome55p"></div>'),E_={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 Fa(t,e){F(e,!0),W(t,E_);let i=v(e,"onClick",3,k_);var o=I_();o.__click=[T_,i],b(t,o),U()}ot(["click"]);import{noop as P_}from"@vkontakte/videoplayer-shared/es2024";var A_=L('<div class="timer svelte-8jhsry"><canvas class="timer-canvas svelte-8jhsry" width="100" height="100"></canvas> <svg class="timer-play-icon svelte-8jhsry" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><g fill="none" fill-rule="evenodd"><g fill-rule="nonzero"><path class="_play" d="m8.13340613 5.10548415 10.49681277 6.24354325c.3559987.2117494.472936.6720001.2611866 1.0279989-.0638111.1072809-.1533894.1969388-.2606135.2608453l-10.4968128 6.256187c-.35581027.2120659-.81616483.095538-1.02823068-.2602722-.06921066-.1161237-.10574852-.2487949-.10574852-.3839792v-12.49973035c0-.41421357.33578644-.75.75-.75.13495801 0 .26741554.03641567.38340613.1054073z" fill="var(--btn-color, #fff)"></path></g></g></svg></div>'),M_={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),W(t,M_);let i=v(e,"isRunning",3,!0),o=v(e,"onTimerEnded",3,P_),n=5e3,a=Y(void 0),s,d,l=Y(0),c;Ue(()=>{i()&&(d=Date.now(),N(l,de(requestAnimationFrame(_))))});let u=()=>{r(l)&&(cancelAnimationFrame(r(l)),N(l,0))},_=()=>{if(!i()){u();return}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,de(requestAnimationFrame(_)))):o()()};At(()=>{if(s=r(a).getContext("2d"),!!s)return s.lineWidth=6,s.lineCap="round",s.strokeStyle="#fff",()=>{u()}}),Jo(()=>{u()});var f=A_(),$=h(f);at($,x=>N(a,x),()=>r(a)),fe(2),g(f),b(t,f),U()}var L_=(t,e,i)=>{e(!1),i()},V_=L('<div class="overlay svelte-jfbaax"></div> <div class="next-video svelte-jfbaax"><div class="top svelte-jfbaax"><div class="caption svelte-jfbaax"> </div> <!></div> <div class="row svelte-jfbaax"><div class="column svelte-jfbaax"><div class="thumb svelte-jfbaax"><div></div> <!></div></div> <div class="column svelte-jfbaax"><div class="title svelte-jfbaax"> </div></div></div></div>',1),R_={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 yp(t,e){F(e,!0),W(t,R_);let[i,o]=De(),n=()=>y(d,"$autoplayNextEnabled$",i),a=()=>y(l,"$timerNextVideoRunning$",i),s=be(),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,$=s.actions.internal.nextVideoAnnouncementCancel,x=()=>{n()&&(c(!1),f())},w=()=>{e.clickCloseIcon(),$()};At(()=>{e.isHide||u(),e.isHide&&n()&&(c(!1),f())});var S=Ne(),I=le(S);{var M=P=>{var A=V_(),T=E(le(A),2),B=h(T),Q=h(B),G=h(Q,!0);g(Q);var ee=E(Q,2);Fa(ee,{onClick:w}),g(B);var te=E(B,2);te.__click=[L_,c,_];var ie=h(te),oe=h(ie),ge=h(oe);let X;var Ve=E(ge,2);{var Ae=D=>{let Re=m(()=>a()&&n());kl(D,{get isRunning(){return r(Re)},onTimerEnded:x})};V(Ve,D=>{n()&&D(Ae)})}g(oe),g(ie);var se=E(ie,2),He=h(se),j=h(He,!0);g(He),g(se),g(te),g(T),C((D,Re)=>{ce(G,D),tt(oe,`background-image: url('${e.thumb}')`),X=Z(ge,1,"thumb-overlay svelte-jfbaax",null,X,Re),ce(j,e.title)},[()=>H("end_screen_next_video"),()=>({withOpacity:n()})]),b(P,A)};V(I,P=>{e.isHide||P(M)})}b(t,S),U(),o()}ot(["click"]);import{PlaybackState as Ua}from"@vkontakte/videoplayer-core/es2024";import{checkNever as N_}from"@vkontakte/videoplayer-shared/es2024";import{SeekAction as en}from"@vkontakte/videoplayer-statistics/es2024";var xp=(t,e)=>Math.min(+(t+e).toFixed(2),1),wp=(t,e)=>Math.max(+(t-e).toFixed(2),0),gc=(t,e,i)=>{let o=xp(e,i);e<1&&t.actions.internal.setVolume(o)},hc=(t,e,i)=>{let o=wp(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_=L('<div class="keyboard-controls svelte-10kkmxz" tabindex="-1" role="region"><!></div>'),O_={hash:"svelte-10kkmxz",code:".keyboard-controls.svelte-10kkmxz {position:absolute;left:0;right:0;top:0;bottom:0;}"};function Sp(t,e){F(e,!0),W(t,O_);let[i,o]=De(),n=()=>y(G,"$playbackState$",i),a=()=>y(ee,"$adPlaybackState",i),s=()=>y(ge,"$disabledControls$",i),d=()=>y(te,"$positionExact$",i),l=()=>y(ie,"$duration$",i),c=()=>y(R,"$isAudioAvailable$",i),u=()=>y(oe,"$volume$",i),_=()=>y(se,"$availablePlaybackRates$",i),f=()=>y(Ae,"$currentPlaybackRate$",i),$=()=>y(Ie,"$isInteractiveTime$",i),x=()=>y(je,"$showInteractiveTimeIndicatorTooltip$",i),w=()=>y(_e,"$isEnded$",i),S=()=>y(X,"$muted$",i),I=()=>y(Ve,"$currentSubtitle$",i),M=()=>y(ke,"$overlayContainer$",i),P=v(e,"nextButtonActive",3,!1),A=v(e,"prevButtonActive",3,!1),T=be(),B=Rt(),Q=T.getLogger().createComponentLog("KeyboardControls component"),G=T.state.playbackState$,ee=T.ads.playbackState,te=T.state.positionExact$,ie=T.state.duration$,oe=T.state.volume$,ge=T.ui.controls.disabledControls$,X=T.state.muted$,Ve=T.state.currentSubtitle$,Ae=T.state.currentPlaybackRate$,se=T.state.availablePlaybackRates$,He=T.ui.contextMenu.openedByHotKey$,j=T.ui.contextMenu.lastActiveElem$,D=T.ui.contextMenu.visible$,Re=T.ui.contextMenu.position$,_e=T.state.isEnded$,ke=T.ui.overlayContainer$,Be=T.callbacks?.onAudioDoesNotExistHint,pe=T.callbacks?.onAudioDisabledHint,R=T.state.isAudioAvailable$,ye=T.state.isAudioDisabled,Ie=T.state.isInteractiveTime$,{showInteractiveTimeIndicatorTooltip$:je}=zi(),ze=0,Te=!0,Me=Y(void 0),We=()=>r(Me)?.focus(),it=Ce=>(Ce!==Te&&(Te=Ce,ze=0),ze+=1,(B.controls.seekStepKeyboard+B.controls.seekStepKeyboard*ze)/1e3),vt=Ce=>{let Oe=Ce.target,Ze=Oe?.getAttribute("role")?.includes("menuitem"),q=Oe.classList.contains("btn"),ae=Ce.code;if(q&&ae==="Space")return;let ne=ig.has(ae);if(Ze&&ne)return;let Fe=!tg.has(ae);if(Ce.ctrlKey&&Fe||Ce.altKey&&Fe||Ce.metaKey)return;let Ge=Ze&&ae==="Escape";og.has(ae)||Ge||e.hideContextMenu();let wt=n()===Ua.PLAYING||n()===Ua.PAUSED,Ke=e.isAds&&(a()==="paused"||a()==="playing"),Je=!Ke&&!s().has("TIMELINE");if(wt||Ke)switch(Q({message:`key down, code: ${ae}`}),ae){case"KeyJ":case"ArrowLeft":{if(!Je)break;if(Ce.ctrlKey||Ce.altKey){let Ee=T.actions.internal.getPrevEpisode();T.actions.internal.seekToPrevEpisode(Ee),Ee&&e.showHotKeyHelpers({type:"EPISODE_PREV",text:Ee.text}),Ce.preventDefault()}else{let Ee=Ce.shiftKey?it(!1):B.controls.seekStepKeyboard/1e3,ct=Math.max(d()-Ee,0);d()>0&&(T.actions.internal.seekTime(ct,en.DOUBLE_TAP),e.showHotKeyHelpers({type:"BACKWARD_SEEK",text:Ee.toString()}),Ce.preventDefault())}break}case"KeyL":case"ArrowRight":{if(!Je)break;if(Ce.ctrlKey||Ce.altKey){let Ee=T.actions.internal.getNextEpisode();T.actions.internal.seekToNextEpisode(Ee),Ee&&e.showHotKeyHelpers({type:"EPISODE_NEXT",text:Ee.text}),Ce.preventDefault()}else{let Ee=Ce.shiftKey?it(!0):B.controls.seekStepKeyboard/1e3,ct=Math.min(d()+Ee,l());Math.round(d())<Math.round(l())&&(T.actions.internal.seekTime(ct,en.DOUBLE_TAP),e.showHotKeyHelpers({type:"FORWARD_SEEK",text:Ee.toString()}),Ce.preventDefault())}break}case"ArrowUp":{if(ua({isAudioDisabled:ye,audioDisabledHintCallback:pe,isAudioAvailable:c(),audioIsNotExistHintCallback:Be})){let Ee=u(),ct=B.controls.volumeStepKeyboard,Bt=Ee<=1;if(gc(T,Ee,ct),Bt){let Gt=Math.round(xp(Ee,ct)*100).toString();e.showHotKeyHelpers({type:"VOLUME",t:{key:"hotkey_helper_current_volume",value:Gt}})}}Ce.preventDefault();break}case"ArrowDown":{if(ua({isAudioDisabled:ye,audioDisabledHintCallback:pe,isAudioAvailable:c(),audioIsNotExistHintCallback:Be})){let Ee=u(),ct=B.controls.volumeStepKeyboard,Bt=Ee>=0;if(hc(T,Ee,ct),Bt){let Gt=Math.round(wp(Ee,ct)*100).toString();e.showHotKeyHelpers({type:"VOLUME",t:{key:"hotkey_helper_current_volume",value:Gt}})}}Ce.preventDefault();break}case"Comma":{if(Ce.shiftKey){T.actions.internal.decrementPlaybackRate();let Ee=_().find(ct=>ct.value===f());e.showHotKeyHelpers({type:"RATE_DOWN",text:Ee?.displayValue}),Ce.preventDefault()}else{if(Ke||n()!==Ua.PAUSED)break;let Ee=Math.max(d()-B.controls.seekStepFrame/1e3,0);d()>0&&(e.showHotKeyHelpers({type:"BACKWARD_SEEK"}),T.actions.internal.clearDelayedBufferingCheckTimeout(),T.actions.internal.seekTime(Ee,en.DOUBLE_TAP),Ce.preventDefault())}break}case"Period":{if(Ce.shiftKey){T.actions.internal.incrementPlaybackRate();let Ee=_().find(ct=>ct.value===f());e.showHotKeyHelpers({type:"RATE_UP",text:Ee?.displayValue}),Ce.preventDefault()}else{if(Ke||n()!==Ua.PAUSED)break;let Ee=Math.min(d()+B.controls.seekStepFrame/1e3,l());d()<l()&&(e.showHotKeyHelpers({type:"FORWARD_SEEK"}),T.actions.internal.clearDelayedBufferingCheckTimeout(),T.actions.internal.seekTime(Ee,en.DOUBLE_TAP),Ce.preventDefault())}break}case"KeyK":case"Space":if(!s().has("PLAY_BUTTON"))if($()&&x()&&je.set(!1),e.fakePlayButtonHandler)e.fakePlayButtonHandler();else{T.actions.internal.togglePlay();let Ee="PLAY";n()===Ua.PAUSED?Ee="PAUSE":w()&&(Ee="REPLAY"),e.showHotKeyHelpers({type:Ee})}Ce.preventDefault();break;case"KeyM":{ua({isAudioDisabled:ye,audioDisabledHintCallback:pe,isAudioAvailable:c(),audioIsNotExistHintCallback:Be})&&(e.showHotKeyHelpers({type:S()?"VOLUME":"MUTE"}),T.actions.internal.toggleMuted()),Ce.preventDefault();break}case"KeyF":e.toggleFullscreen(),Ce.preventDefault();break;case"KeyC":T.actions.internal.toggleSubtitle(),I().value!=="off"?e.showHotKeyHelpers({type:"SUBTITLES_ON",text:I()?.displayValue}):e.showHotKeyHelpers({type:"SUBTITLES_OFF"}),Ce.preventDefault();break;case"KeyI":T.actions.internal.togglePictureInPicture(),Ce.preventDefault();break;case"Digit1":case"Numpad1":if(Ce.shiftKey){let Ee=Zg(M());Re.set(Ee),j.set(Oe),He.set(!0),D.set(!0),Ce.preventDefault();break}e.showHotKeyHelpers(),T.actions.internal.seekToPercent(.1,en.DOUBLE_TAP),Ce.preventDefault();break;case"Digit2":case"Numpad2":e.showHotKeyHelpers(),T.actions.internal.seekToPercent(.2,en.DOUBLE_TAP),Ce.preventDefault();break;case"Digit3":case"Numpad3":e.showHotKeyHelpers(),T.actions.internal.seekToPercent(.3,en.DOUBLE_TAP),Ce.preventDefault();break;case"Digit4":case"Numpad4":e.showHotKeyHelpers(),T.actions.internal.seekToPercent(.4,en.DOUBLE_TAP),Ce.preventDefault();break;case"Digit5":case"Numpad5":e.showHotKeyHelpers(),T.actions.internal.seekToPercent(.5,en.DOUBLE_TAP),Ce.preventDefault();break;case"Digit6":case"Numpad6":e.showHotKeyHelpers(),T.actions.internal.seekToPercent(.6,en.DOUBLE_TAP),Ce.preventDefault();break;case"Digit7":case"Numpad7":e.showHotKeyHelpers(),T.actions.internal.seekToPercent(.7,en.DOUBLE_TAP),Ce.preventDefault();break;case"Digit8":case"Numpad8":e.showHotKeyHelpers(),T.actions.internal.seekToPercent(.8,en.DOUBLE_TAP),Ce.preventDefault();break;case"Digit9":case"Numpad9":e.showHotKeyHelpers(),T.actions.internal.seekToPercent(.9,en.DOUBLE_TAP),Ce.preventDefault();break;case"Digit0":case"Numpad0":e.showHotKeyHelpers(),T.actions.internal.seekToPercent(0,en.DOUBLE_TAP),Ce.preventDefault();break;case"Slash":{Ce.shiftKey&&B.features.hotKeyMapModal&&(e.showKeyMap(),Ce.preventDefault());break}case"KeyN":Ce.shiftKey&&P()&&T.actions.internal.nextVideoClick();break;case"KeyP":Ce.shiftKey&&A()&&T.actions.internal.prevVideoClick();break;case"ShiftLeft":case"ShiftRight":Ce.preventDefault();break;case"Tab":case"Escape":case"Enter":break;default:N_(ae);break}},st=Ce=>{let Oe=Ce.code;if(Ce.ctrlKey||Ce.altKey||Ce.metaKey)return;let Ze=n()===Ua.PLAYING||n()===Ua.PAUSED,q=e.isAds&&(a()==="paused"||a()==="playing");if(Ze||q)switch(Oe){case"ShiftLeft":case"ShiftRight":ze=0;break}},It=H("aria_label_video_player");var nt=B_();nt.__keyup=st,nt.__keydown=vt,Le(nt,"aria-label",It);var gt=h(nt);ue(gt,()=>e.children??J),g(nt),at(nt,Ce=>N(Me,Ce),()=>r(Me)),b(t,nt);var Mt=U({focus:We});return o(),Mt}ot(["keyup","keydown"]);var H_=L('<div class="container svelte-1dbnjb1"><div class="dot svelte-1dbnjb1"></div> <div class="dot svelte-1dbnjb1"></div> <div class="dot svelte-1dbnjb1"></div></div>'),F_={hash:"svelte-1dbnjb1",code:`.container.svelte-1dbnjb1 {position:absolute;top:50%;left:50%;transform:translate(-50%, -50%);pointer-events:none;display:flex;}.dot.svelte-1dbnjb1:nth-child(1) {animation-delay:calc(0 * 180ms);}.dot.svelte-1dbnjb1:nth-child(2) {animation-delay:calc(1 * 180ms);}.dot.svelte-1dbnjb1:nth-child(3) {animation-delay:calc(2 * 180ms);}
144
144
 
145
145
  @keyframes svelte-1dbnjb1-dot_animation {
146
146
  0% {
@@ -153,7 +153,7 @@ Try switching the\xA0quality to\xA0Auto.`},Vg=x0;var Yr=new Map;Yr.set(Ng.EN,Vg)
153
153
  opacity: 0.2;
154
154
  }
155
155
  }.dot.svelte-1dbnjb1 {border-radius:4px;width:8px;height:8px;background:var(--btn-color);animation-duration:750ms;
156
- animation-name: svelte-1dbnjb1-dot_animation;animation-iteration-count:infinite;}.dot.svelte-1dbnjb1 + .dot:where(.svelte-1dbnjb1) {margin-left:4px;}`};function Wa(t,e){z(t,q_);let i=m(e,"style",3,"");var o=z_();C(()=>tt(o,i())),b(t,o)}var W_=ve('<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 Ip(t,e){let i=Ce(e,["$$slots","$$events","$$legacy","children"]);var o=W_();let n;var a=h(o);pe(a,()=>e.children??te),me(2),g(o),C(()=>n=xe(o,n,{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none","aria-hidden":"true","data-testid":"cross-icon",role:"img",...i})),b(t,o)}import{noop as Vs}from"@vkontakte/videoplayer-shared/es2024";var K_=t=>{t.stopPropagation()},Q_=A("<button><!></button>"),G_={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 za(t,e){W(t,F_);let i=v(e,"style",3,"");var o=H_();C(()=>tt(o,i())),b(t,o)}var U_=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 Cp(t,e){let i=Se(e,["$$slots","$$events","$$legacy","children"]);var o=U_();let n;var a=h(o);ue(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 As}from"@vkontakte/videoplayer-shared/es2024";var z_=t=>{t.stopPropagation()},W_=L("<button><!></button>"),q_={hash:"svelte-wr0kwr",code:`.btn.svelte-wr0kwr {padding:8px;margin:0;height:var(--controls-height);display:flex;flex-direction:row;align-items:center;justify-content:center;}
157
157
 
158
158
  /* \u041D\u0438\u0436\u0435 \u0438\u0434\u0443\u0442 \u0430\u0431\u0441\u0442\u0440\u0430\u043A\u0442\u043D\u044B\u0435 \u0438 \u0441\u043F\u0435\u0446\u0438\u0444\u0438\u043A \u043A\u043B\u0430\u0441\u0441\u044B \u0434\u043B\u044F \u043A\u043D\u043E\u043F\u043E\u043A \u043A\u043E\u0442\u043E\u0440\u044B\u0435 \u043C\u043E\u0436\u043D\u043E \u043F\u0435\u0440\u0435\u0434\u0430\u0442\u044C \u0447\u0435\u0440\u0435\u0437 \u043F\u0430\u0440\u0430\u043C\u0435\u0442\u0440 className */.w-max.svelte-wr0kwr {width:100%;}.btn--live.svelte-wr0kwr {padding:10px 4px;}.btn-jc-l.svelte-wr0kwr {justify-content:left;}
159
159
 
@@ -161,22 +161,22 @@ Try switching the\xA0quality to\xA0Auto.`},Vg=x0;var Yr=new Map;Yr.set(Ng.EN,Vg)
161
161
  /* mobile */
162
162
  /* container mobile */.btn-m.svelte-wr0kwr {position:absolute;left:12px;top:50%;transform:translateY(-50%);height:44px;width:44px;border-radius:12px;background-color:rgba(0, 0, 0, 0.56);transition:opacity var(--controls-transition-duration);display:flex;align-items:center;justify-content:center;}.btn-m--play.svelte-wr0kwr {width:var(--big-play-size);height:var(--big-play-size);display:flex;align-items:center;justify-content:center;position:relative;padding:16px;}.btn-m--play.svelte-wr0kwr svg {transform:scale(2);}.btn-m--prev.svelte-wr0kwr,
163
163
  .btn-m--next.svelte-wr0kwr {position:absolute;width:50px;height:50px;}.btn-m--prev.svelte-wr0kwr {right:calc(100% + 35px);}.btn-m--next.svelte-wr0kwr {left:calc(100% + 35px);}.btn.svelte-wr0kwr:disabled {cursor:default;
164
- /* \u043D\u0443\u0436\u043D\u043E \u0434\u043B\u044F \u0442\u043E\u0433\u043E, \u0447\u0442\u043E\u0431\u044B \u043D\u0435 \u0434\u0430\u0432\u0430\u0442\u044C \u0441\u043E\u0431\u044B\u0442\u0438\u044F\u043C \u043A\u043B\u0438\u043A\u0430 \u043E\u0442\u0440\u0430\u0431\u0430\u0442\u044B\u0432\u0430\u0442\u044C \u043D\u0430 \u0437\u0430\u0431\u043B\u043E\u0447\u0435\u043D\u043D\u043E\u043C \u044D\u043B\u0435\u043C\u0435\u043D\u0442\u0435 */pointer-events:none;}.btn.svelte-wr0kwr:not(.btn-full-opacity):disabled {opacity:0.4;}.btn.svelte-wr0kwr:not(:disabled):hover {opacity:0.8;}.pr-0.svelte-wr0kwr {padding-right:0;}.pl-0.svelte-wr0kwr {padding-left:0;}`};function kt(t,e){F(e,!0),z(t,G_);let i=m(e,"className",3,""),o=m(e,"style",3,""),n=m(e,"disabled",3,void 0),a=m(e,"testId",3,void 0),s=m(e,"ariaHidden",3,void 0),d=m(e,"ariaLabel",3,void 0),l=m(e,"ref",15,void 0),c=m(e,"ariaKeyShortCut",3,void 0),u=m(e,"ariaExpanded",3,void 0),_=m(e,"tabIndex",3,0),f=m(e,"click",3,Vs),$=m(e,"focus",3,Vs),x=m(e,"blur",3,Vs),w=v(()=>f()===Vs?null:L=>{L.stopPropagation(),f()(L)}),S=v(()=>$()===Vs?null:L=>{L.preventDefault(),$()()}),I=v(()=>x()===Vs?null:L=>{L.preventDefault(),x()()});var P=Q_();P.__pointerdown=[K_],P.__click=function(...L){r(w)?.apply(this,L)};var M=h(P);pe(M,()=>e.children??te),g(P),at(P,L=>l(L),()=>l()),C(()=>{Z(P,1,`btn ${i()??""}`,"svelte-wr0kwr"),tt(P,o()||null),P.disabled=n()??null,Re(P,"aria-hidden",s()??null),Re(P,"aria-label",d()??null),Re(P,"aria-keyshortcuts",c()??null),Re(P,"aria-expanded",u()??null),Re(P,"data-testid",a()??null),Re(P,"tabindex",_())}),ht("focus",P,function(...L){r(S)?.apply(this,L)}),ht("blur",P,function(...L){r(I)?.apply(this,L)}),b(t,P),U()}it(["pointerdown","click"]);var Y_=A('<div class="modal-header svelte-1witlsj"><h3 class="modal-title svelte-1witlsj"> </h3> <!></div>'),j_=A('<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>'),Z_={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 Ep(t,e){F(e,!0),z(t,Z_);let i=m(e,"showHeader",3,!0),o=m(e,"showCloseCross",3,!0),n=H("hotkey_map_modal_close_btn_text");var a=j_(),s=h(a),d=h(s);{var l=f=>{var $=Y_(),x=h($),w=h(x,!0);g(x);var S=E(x,2);{var I=P=>{kt(P,{get click(){return e.onClose},testId:"close-modal",style:"padding: 0; height: 24px; width: 24px",ariaLabel:n,children:(M,L)=>{Ip(M,{})},$$slots:{default:!0}})};V(S,P=>{o()&&P(I)})}g($),C(()=>ue(w,e.title)),b(f,$)};V(d,f=>{i()&&f(l)})}var c=E(d,2),u=h(c),_=h(u);pe(_,()=>e.children??te),g(u),g(c),g(s),g(a),b(t,a),U()}var X_=new Set(["BR"]),oh=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;X_.has(a)||n.parentElement?.removeChild(n)}return e.innerHTML};var J_=A('<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>'),eb=A('<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>'),tb=A('<div class="hot-key-map svelte-quklnq"></div>'),ib={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 kt(t,e){F(e,!0),W(t,q_);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,As),$=v(e,"focus",3,As),x=v(e,"blur",3,As),w=m(()=>f()===As?null:A=>{A.stopPropagation(),f()(A)}),S=m(()=>$()===As?null:A=>{A.preventDefault(),$()()}),I=m(()=>x()===As?null:A=>{A.preventDefault(),x()()});var M=W_();M.__pointerdown=[z_],M.__click=function(...A){r(w)?.apply(this,A)};var P=h(M);ue(P,()=>e.children??J),g(M),at(M,A=>l(A),()=>l()),C(()=>{Z(M,1,`btn ${i()??""}`,"svelte-wr0kwr"),tt(M,o()||null),M.disabled=n()??null,Le(M,"aria-hidden",s()??null),Le(M,"aria-label",d()??null),Le(M,"aria-keyshortcuts",c()??null),Le(M,"aria-expanded",u()??null),Le(M,"data-testid",a()??null),Le(M,"tabindex",_())}),Ct("focus",M,function(...A){r(S)?.apply(this,A)}),Ct("blur",M,function(...A){r(I)?.apply(this,A)}),b(t,M),U()}ot(["pointerdown","click"]);var K_=L('<div class="modal-header svelte-1witlsj"><h3 class="modal-title svelte-1witlsj"> </h3> <!></div>'),Q_=L('<div class="modal-overlay svelte-1witlsj"><div class="modal-container svelte-1witlsj"><!> <div class="modal-scroll svelte-1witlsj"><div class="modal-main svelte-1witlsj"><!></div></div></div></div>'),G_={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 kp(t,e){F(e,!0),W(t,G_);let i=v(e,"showHeader",3,!0),o=v(e,"showCloseCross",3,!0),n=H("hotkey_map_modal_close_btn_text");var a=Q_(),s=h(a),d=h(s);{var l=f=>{var $=K_(),x=h($),w=h(x,!0);g(x);var S=E(x,2);{var I=M=>{kt(M,{get click(){return e.onClose},testId:"close-modal",style:"padding: 0; height: 24px; width: 24px",ariaLabel:n,children:(P,A)=>{Cp(P,{})},$$slots:{default:!0}})};V(S,M=>{o()&&M(I)})}g($),C(()=>ce(w,e.title)),b(f,$)};V(d,f=>{i()&&f(l)})}var c=E(d,2),u=h(c),_=h(u);ue(_,()=>e.children??J),g(u),g(c),g(s),g(a),b(t,a),U()}var Y_=new Set(["BR"]),eh=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;Y_.has(a)||n.parentElement?.removeChild(n)}return e.innerHTML};var j_=L('<li class="hot-key-map-item svelte-quklnq"><span class="hot-key-map-item-description svelte-quklnq"><!></span> <span class="hot-key-map-item-value svelte-quklnq"> </span></li>'),Z_=L('<div class="hot-key-map-group svelte-quklnq"><h5 class="hot-key-map-group-title svelte-quklnq"> </h5> <ul class="hot-key-map-group-items svelte-quklnq"></ul></div>'),X_=L('<div class="hot-key-map svelte-quklnq"></div>'),J_={hash:"svelte-quklnq",code:`.hot-key-map.svelte-quklnq {color:var(--black);box-sizing:border-box;overflow-x:hidden;}.hot-key-map-group.svelte-quklnq {border-bottom:1px solid var(--white-alpha-24);margin:0 20px 0 16px;}.hot-key-map-group.svelte-quklnq:last-child {border-bottom:none;}.hot-key-map-group-title.svelte-quklnq {color:var(--white);font-feature-settings:'clig' off, 'liga' off;font-size:13px;font-style:normal;font-weight:600;line-height:16px;}.hot-key-map-group-title.svelte-quklnq,
165
165
  .hot-key-map-item.svelte-quklnq {padding:12px 0;margin:0;width:100%;}.hot-key-map-group-items.svelte-quklnq {box-sizing:border-box;list-style:none;padding:0;margin:0;}.hot-key-map-item.svelte-quklnq {box-sizing:border-box;display:flex;justify-content:space-between;align-items:center;--videoplayer-hotkey-item-value-width: 156px;--videoplayer-hotkey-item-value-padding-left: 24px;}.hot-key-map-item-description.svelte-quklnq {color:var(--white-alpha-72);width:calc(100% - var(--videoplayer-hotkey-item-value-width) - var(--videoplayer-hotkey-item-value-padding-left));max-width:388px;}.hot-key-map-item-value.svelte-quklnq {color:var(--white);width:var(--videoplayer-hotkey-item-value-width);padding-left:var(--videoplayer-hotkey-item-value-padding-left);letter-spacing:-0.14px;}.hot-key-map-item-description.svelte-quklnq,
166
- .hot-key-map-item-value.svelte-quklnq {font-feature-settings:'clig' off, 'liga' off;font-size:13px;font-style:normal;font-weight:400;line-height:16px;}`};function Pp(t,e){F(e,!1),z(t,ib);let[i,o]=Me(),n=()=>y(s,"$data",i),a=_e(),{data:s,show:d}=a.ui.modals.hotKeyMap,l=()=>{d.set(!1)};fr(),Ep(t,{get title(){return n().title},onClose:l,children:(c,u)=>{var _=tb();ai(_,5,()=>n().groups,({title:f,items:$})=>f,(f,$)=>{let x=()=>r($).title,w=()=>r($).items;var S=eb(),I=h(S),P=h(I,!0);g(I);var M=E(I,2);ai(M,5,w,({description:L,value:T})=>T,(L,T)=>{let B=()=>r(T).description,K=()=>r(T).value;var Q=J_(),Y=h(Q),ae=h(Y);ml(ae,()=>oh(B()),!1,!1),g(Y);var se=E(Y,2),ee=h(se,!0);g(se),g(Q),C(()=>ue(ee,K())),b(L,Q)}),g(M),g(S),C(()=>ue(P,x())),b(f,S)}),g(_),b(c,_)},$$slots:{default:!0}}),U(),o()}import{noop as Th}from"@vkontakte/videoplayer-shared/es2024";import{ChromecastState as wh,PlaybackState as gf}from"@vkontakte/videoplayer-core/es2024";import"@vkontakte/videoplayer-shared/es2024";var ob=A('<div class="pillow svelte-1oe0j8n"><!></div>'),nb={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 Ap(t,e){z(t,nb);var i=ob(),o=h(i);pe(o,()=>e.children??te),g(i),b(t,i)}import{VideoQuality as Vl}from"@vkontakte/videoplayer-shared/es2024";var rb=ve('<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 Mp(t,e){let i=Ce(e,["$$slots","$$events","$$legacy","children"]);var o=rb();let n;var a=h(o);pe(a,()=>e.children??te),me(2),g(o),C(()=>n=xe(o,n,{xmlns:"http://www.w3.org/2000/svg",width:"9",height:"5",fill:"none",role:"img",...i})),b(t,o)}var ab=ve('<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 Lp(t,e){let i=Ce(e,["$$slots","$$events","$$legacy","children"]);var o=ab();let n;var a=h(o);pe(a,()=>e.children??te),me(2),g(o),C(()=>n=xe(o,n,{xmlns:"http://www.w3.org/2000/svg",width:"9",height:"5",fill:"none",role:"img",...i})),b(t,o)}var sb=ve('<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 Vp(t,e){let i=Ce(e,["$$slots","$$events","$$legacy","children"]);var o=sb();let n;var a=h(o);pe(a,()=>e.children??te),me(),g(o),C(()=>n=xe(o,n,{xmlns:"http://www.w3.org/2000/svg",width:"9",height:"5",fill:"none",role:"img",...i})),b(t,o)}var lb=ve('<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 Ml(t,e){let i=Ce(e,["$$slots","$$events","$$legacy","children"]);var o=lb();let n;var a=h(o);pe(a,()=>e.children??te),me(),g(o),C(()=>n=xe(o,n,{xmlns:"http://www.w3.org/2000/svg",width:"13",height:"5",fill:"none",role:"img",...i})),b(t,o)}var db=ve('<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 Ll(t,e){let i=Ce(e,["$$slots","$$events","$$legacy","children"]);var o=db();let n;var a=h(o);pe(a,()=>e.children??te),me(2),g(o),C(()=>n=xe(o,n,{xmlns:"http://www.w3.org/2000/svg",width:"15",height:"7",fill:"none",role:"img",...i})),b(t,o)}var xc=t=>{switch(t){case Vl.Q_720P:return Vp;case Vl.Q_1080P:return Ml;case Vl.Q_1440P:return Ll;case Vl.Q_2160P:return Mp;case Vl.Q_4320P:return Lp}};var cb=ve('<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 Rp(t,e){let i=Ce(e,["$$slots","$$events","$$legacy","children"]);var o=cb();let n;var a=h(o);pe(a,()=>e.children??te),me(),g(o),C(()=>n=xe(o,n,{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none","aria-hidden":"true","data-testid":"settings-mobile-icon",role:"img",...i})),b(t,o)}var ub=ve('<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 Np(t,e){let i=Ce(e,["$$slots","$$events","$$legacy","children"]);var o=ub();let n;var a=h(o);pe(a,()=>e.children??te),me(2),g(o),C(()=>n=xe(o,n,{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none","data-testid":"settings-icon",role:"img",...i})),b(t,o)}var pb=A('<div aria-hidden="true"><!> <!></div>'),fb={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 Rl(t,e){F(e,!0),z(t,fb);let i=m(e,"isMobile",3,!1),o=m(e,"currentQuality",3,void 0),n=v(()=>xc(o())),a=v(()=>!!r(n)&&[Ml,Ll].includes(r(n)));var s=De(),d=le(s);{var l=u=>{Rp(u,{})},c=u=>{var _=pb();let f;var $=h(_);{var x=I=>{Ap(I,{children:(P,M)=>{var L=De(),T=le(L);si(T,()=>r(n),(B,K)=>{K(B,{})}),b(P,L)},$$slots:{default:!0}})};V($,I=>{r(n)&&I(x)})}var w=E($,2);let S=v(()=>r(n)?"settings-icon--labeled":"settings-icon");Np(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 mb=A('<span class="settings-icon-wrapper svelte-d9t49t"><!></span>'),vb={hash:"svelte-d9t49t",code:".settings-icon-wrapper.svelte-d9t49t {position:relative;width:24px;}"};function Rs(t,e){F(e,!0),z(t,vb);let[i,o]=Me(),n=()=>y(e.ref$,"$ref$",i),a=()=>y(u,"$settingsMenuVisible",i),s=()=>y($,"$isMobile",i),d=()=>y(c,"$currentQuality",i),l=_e(),c=l.state.currentQuality$,u=l.ui.settingsMenu.visible$,_=l.actions.internal.openSettingsMenu,f=l.actions.internal.closeSettingsMenu,$=l.ui.isMobile,x=l.ui.t,w=X(void 0);He(()=>{n()&&ft(()=>{e.ref$.set(r(w))})});let S=v(()=>a()?x("tooltip_settings_on"):x("tooltip_settings_off"));async function I(M){let L=pa(M);a()?f():_(L,Ji)}let P=v(()=>a()?"opened":"");kt(t,{get className(){return r(P)},testId:"btn-settings",click:I,get ariaLabel(){return r(S)},get ariaExpanded(){return a()},get ref(){return r(w)},set ref(M){D(w,de(M))},children:(M,L)=>{var T=mb(),B=h(T);Rl(B,{get isMobile(){return s()},get currentQuality(){return d()}}),g(T),b(M,T)},$$slots:{default:!0}}),U(),o()}var gb=ve('<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 Dp(t,e){let i=Ce(e,["$$slots","$$events","$$legacy","children"]);var o=gb();let n;var a=h(o);pe(a,()=>e.children??te),me(),g(o),C(()=>n=xe(o,n,{xmlns:"http://www.w3.org/2000/svg",width:"22",height:"16",fill:"none","aria-hidden":"true","data-testid":"subtitle-pained-icon",role:"img",...i})),b(t,o)}var hb=ve('<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 Nl(t,e){let i=Ce(e,["$$slots","$$events","$$legacy","children"]);var o=hb();let n;var a=h(o);pe(a,()=>e.children??te),me(),g(o),C(()=>n=xe(o,n,{xmlns:"http://www.w3.org/2000/svg",width:"22",height:"18",fill:"none","aria-hidden":"true","data-testid":"subtitle-empty-icon",role:"img",...i})),b(t,o)}function Bp(t,e){F(e,!0);let i=m(e,"isSubtitlesEnabled",3,!1),n=_e().ui.t,a=v(()=>i()?n("tooltip_subtitles_on"):n("tooltip_subtitles_off"));kt(t,{testId:"btn-Subtitles",get ariaLabel(){return r(a)},get click(){return e.click},get ariaKeyShortCut(){return Vr.KeyC},children:(s,d)=>{var l=De(),c=le(l);{var u=f=>{Dp(f,{})},_=f=>{Nl(f,{})};V(c,f=>{i()?f(u):f(_,!1)})}b(s,l)},$$slots:{default:!0}}),U()}var _b=A('<span class="duration svelte-sz9er7"> </span>'),bb=A('<div><span class="current svelte-sz9er7"> </span> <!></div>'),$b={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 Dl(t,e){F(e,!0),z(t,$b);let i=m(e,"isMobile",3,!1),o=m(e,"showDuration",3,!0),n=m(e,"ref",15),a=v(()=>Oo(e.duration)),s=v(()=>Oo(e.position));var d=bb();let l;var c=h(d),u=h(c,!0);g(c);var _=E(c,2);{var f=$=>{var x=_b(),w=h(x,!0);g(x),C(()=>ue(w,r(a))),b($,x)};V(_,$=>{o()&&$(f)})}g(d),at(d,$=>n($),()=>n()),C($=>{l=Z(d,1,"time svelte-sz9er7",null,l,$),ue(u,r(s))},[()=>({mobile:i()})]),b(t,d),U()}import{noop as wc}from"@vkontakte/videoplayer-shared/es2024";var yb=ve('<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>'),xb={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 Tp(t,e){F(e,!1),W(t,J_);let[i,o]=De(),n=()=>y(s,"$data",i),a=be(),{data:s,show:d}=a.ui.modals.hotKeyMap,l=()=>{d.set(!1)};vr(),kp(t,{get title(){return n().title},onClose:l,children:(c,u)=>{var _=X_();di(_,5,()=>n().groups,({title:f,items:$})=>f,(f,$)=>{let x=()=>r($).title,w=()=>r($).items;var S=Z_(),I=h(S),M=h(I,!0);g(I);var P=E(I,2);di(P,5,w,({description:A,value:T})=>T,(A,T)=>{let B=()=>r(T).description,Q=()=>r(T).value;var G=j_(),ee=h(G),te=h(ee);ll(te,()=>eh(B()),!1,!1),g(ee);var ie=E(ee,2),oe=h(ie,!0);g(ie),g(G),C(()=>ce(oe,Q())),b(A,G)}),g(P),g(S),C(()=>ce(M,x())),b(f,S)}),g(_),b(c,_)},$$slots:{default:!0}}),U(),o()}import{noop as Sh}from"@vkontakte/videoplayer-shared/es2024";import{ChromecastState as $h,PlaybackState as ff}from"@vkontakte/videoplayer-core/es2024";import"@vkontakte/videoplayer-shared/es2024";var eb=L('<div class="pillow svelte-1oe0j8n"><!></div>'),tb={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 Ip(t,e){W(t,tb);var i=eb(),o=h(i);ue(o,()=>e.children??J),g(i),b(t,i)}import{VideoQuality as El}from"@vkontakte/videoplayer-shared/es2024";var ib=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 Ep(t,e){let i=Se(e,["$$slots","$$events","$$legacy","children"]);var o=ib();let n;var a=h(o);ue(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 ob=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 Pp(t,e){let i=Se(e,["$$slots","$$events","$$legacy","children"]);var o=ob();let n;var a=h(o);ue(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 nb=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 Ap(t,e){let i=Se(e,["$$slots","$$events","$$legacy","children"]);var o=nb();let n;var a=h(o);ue(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 rb=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=Se(e,["$$slots","$$events","$$legacy","children"]);var o=rb();let n;var a=h(o);ue(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 ab=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=Se(e,["$$slots","$$events","$$legacy","children"]);var o=ab();let n;var a=h(o);ue(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 _c=t=>{switch(t){case El.Q_720P:return Ap;case El.Q_1080P:return Tl;case El.Q_1440P:return Il;case El.Q_2160P:return Ep;case El.Q_4320P:return Pp}};var sb=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 Mp(t,e){let i=Se(e,["$$slots","$$events","$$legacy","children"]);var o=sb();let n;var a=h(o);ue(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 lb=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 Lp(t,e){let i=Se(e,["$$slots","$$events","$$legacy","children"]);var o=lb();let n;var a=h(o);ue(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 db=L('<div aria-hidden="true"><!> <!></div>'),cb={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 Pl(t,e){F(e,!0),W(t,cb);let i=v(e,"isMobile",3,!1),o=v(e,"currentQuality",3,void 0),n=m(()=>_c(o())),a=m(()=>!!r(n)&&[Tl,Il].includes(r(n)));var s=Ne(),d=le(s);{var l=u=>{Mp(u,{})},c=u=>{var _=db();let f;var $=h(_);{var x=I=>{Ip(I,{children:(M,P)=>{var A=Ne(),T=le(A);ci(T,()=>r(n),(B,Q)=>{Q(B,{})}),b(M,A)},$$slots:{default:!0}})};V($,I=>{r(n)&&I(x)})}var w=E($,2);let S=m(()=>r(n)?"settings-icon--labeled":"settings-icon");Lp(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 ub=L('<span class="settings-icon-wrapper svelte-d9t49t"><!></span>'),pb={hash:"svelte-d9t49t",code:".settings-icon-wrapper.svelte-d9t49t {position:relative;width:24px;}"};function Ms(t,e){F(e,!0),W(t,pb);let[i,o]=De(),n=()=>y(e.ref$,"$ref$",i),a=()=>y(u,"$settingsMenuVisible",i),s=()=>y($,"$isMobile",i),d=()=>y(c,"$currentQuality",i),l=be(),c=l.state.currentQuality$,u=l.ui.settingsMenu.visible$,_=l.actions.internal.openSettingsMenu,f=l.actions.internal.closeSettingsMenu,$=l.ui.isMobile,x=l.ui.t,w=Y(void 0);Ue(()=>{n()&&ft(()=>{e.ref$.set(r(w))})});let S=m(()=>a()?x("tooltip_settings_on"):x("tooltip_settings_off"));async function I(P){let A=ca(P);a()?f():_(A,Zi)}let M=m(()=>a()?"opened":"");kt(t,{get className(){return r(M)},testId:"btn-settings",click:I,get ariaLabel(){return r(S)},get ariaExpanded(){return a()},get ref(){return r(w)},set ref(P){N(w,de(P))},children:(P,A)=>{var T=ub(),B=h(T);Pl(B,{get isMobile(){return s()},get currentQuality(){return d()}}),g(T),b(P,T)},$$slots:{default:!0}}),U(),o()}var fb=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 Vp(t,e){let i=Se(e,["$$slots","$$events","$$legacy","children"]);var o=fb();let n;var a=h(o);ue(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 mb=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 Al(t,e){let i=Se(e,["$$slots","$$events","$$legacy","children"]);var o=mb();let n;var a=h(o);ue(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 Rp(t,e){F(e,!0);let i=v(e,"isSubtitlesEnabled",3,!1),n=be().ui.t,a=m(()=>i()?n("tooltip_subtitles_on"):n("tooltip_subtitles_off"));kt(t,{testId:"btn-Subtitles",get ariaLabel(){return r(a)},get click(){return e.click},get ariaKeyShortCut(){return Mr.KeyC},children:(s,d)=>{var l=Ne(),c=le(l);{var u=f=>{Vp(f,{})},_=f=>{Al(f,{})};V(c,f=>{i()?f(u):f(_,!1)})}b(s,l)},$$slots:{default:!0}}),U()}var vb=L('<span class="duration svelte-sz9er7"> </span>'),gb=L('<div><span class="current svelte-sz9er7"> </span> <!></div>'),hb={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),W(t,hb);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=gb();let l;var c=h(d),u=h(c,!0);g(c);var _=E(c,2);{var f=$=>{var x=vb(),w=h(x,!0);g(x),C(()=>ce(w,r(a))),b($,x)};V(_,$=>{o()&&$(f)})}g(d),at(d,$=>n($),()=>n()),C($=>{l=Z(d,1,"time svelte-sz9er7",null,l,$),ce(u,r(s))},[()=>({mobile:i()})]),b(t,d),U()}import{noop as bc}from"@vkontakte/videoplayer-shared/es2024";var _b=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>'),bb={hash:"svelte-1n5yyua",code:`.icon.svelte-1n5yyua {display:block;width:24px;height:24px;}.icon.svelte-1n5yyua .cross:where(.svelte-1n5yyua) {visibility:hidden;}.icon[data-value='off'].svelte-1n5yyua .wave1:where(.svelte-1n5yyua),
167
167
  .icon[data-value='off'].svelte-1n5yyua .wave2:where(.svelte-1n5yyua) {visibility:hidden;}.icon[data-value='off'].svelte-1n5yyua .cross:where(.svelte-1n5yyua) {visibility:visible;}.icon[data-value='mid'].svelte-1n5yyua .wave2:where(.svelte-1n5yyua),
168
- .icon[data-value='min'].svelte-1n5yyua .wave2:where(.svelte-1n5yyua) {visibility:hidden;}`};function ma(t,e){z(t,xb);let i=m(e,"volume",3,1),o=m(e,"muted",3,!1),n=(d,l)=>l?"off":d>.5?"max":d>.2?"mid":d>0?"min":"off",a=v(()=>n(i(),o()));var s=yb();C(()=>{Re(s,"data-value",r(a)),Re(s,"data-testid",`volume-${r(a)??""}-icon`)}),b(t,s)}import{isNonNullable as rh,noop as vr}from"@vkontakte/videoplayer-shared/es2024";import{noop as Hp}from"@vkontakte/videoplayer-shared/es2024";import{noop as Sb}from"@vkontakte/videoplayer-shared/es2024";var wb=A('<div class="overlay"><!></div>');function Op(t,e){F(e,!0);let[i,o]=Me(),n=()=>y(s,"$overlayContainer$",i),s=_e().ui.overlayContainer$,d=X(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))};He(()=>{c(n())}),At(()=>(c(n()),()=>l(n())));var u=wb(),_=h(u);pe(_,()=>e.children??te),g(u),at(u,f=>D(d,f),()=>r(d)),b(t,u),U(),o()}var Cb=A('<div class="tooltip svelte-hxlyne"><div class="content svelte-hxlyne"> </div> <div class="tooltip-pointer svelte-hxlyne"></div></div>'),kb=A("<div><!></div> <!>",1),Tb={hash:"svelte-hxlyne",code:'.tooltip-wrapper.svelte-hxlyne {display:flex;flex-direction:column;min-width:0;}.full-width.svelte-hxlyne {width:100%;}.tooltip.svelte-hxlyne {position:absolute;opacity:0;visibility:hidden;transition:opacity 200ms, visibility 200ms;bottom:100%;left:0;}.content.svelte-hxlyne {display:inline-block;padding:6px 10px;border-radius:3px;color:var(--white);background-color:rgba(41, 41, 41, .8);}.tooltip-pointer.svelte-hxlyne {position:absolute;bottom:0;width:0;border-top:5px solid rgba(41, 41, 41, .8);border-right:5px solid transparent;border-left:5px solid transparent;content:" ";font-size:0;line-height:0;}'};function Ka(t,e){F(e,!0),z(t,Tb);let[i,o]=Me(),n=()=>y(ae,"$overlayContainer$",i),a=()=>y(Y,"$containerSize",i),s=m(e,"isMobile",3,!1),d=m(e,"content",3,""),l=m(e,"active",15,!1),c=m(e,"translateX",3,0),u=m(e,"translateY",3,0),_=m(e,"isFullWidthWrapper",3,!1),f=m(e,"maxTooltipWidth",3,void 0),$=m(e,"placement",3,"top"),x=m(e,"onVisibilityChange",3,Sb),w=5,S=X(void 0),I=X(void 0),P,M=X(0),L=X(0),T=X(0),B=X(0),K=Mt(),Q=_e(),Y=Q.ui.playerSize,ae=Q.ui.overlayContainer$;He(()=>{ft(()=>{x()(l())})});let se=Q.getLogger().createComponentLog("Tooltip component"),ee=()=>{if(!n()||!r(I)||!r(S))return;D(L,w);let ye=n().getBoundingClientRect(),Ve=r(S).getBoundingClientRect(),qe=Ve.width,ot=r(I).clientWidth,ut=a().width,pt=(qe-ot)/2,Tt=Ve.left+c()-ye.left,nt=Tt+pt,vt=Ve.top+u()-ye.top,Lt=ot/2-w,Te=nt<8,Ue=nt+ot>ut-8;Te&&(nt=8,Lt=Tt+Ve.width/2-2.5*w),Ue&&(nt=ut-8-ot,Lt=Ve.left-ye.left+Ve.width/2-nt-w),D(T,de(nt)),D(B,vt),D(M,de(Lt))},ge=()=>{!n()||!r(I)||!r(S)||D(L,-w)},J=()=>{if(!n()||!r(I)||!r(S))return;D(M,w);let ye=n().getBoundingClientRect(),Ve=r(S).getBoundingClientRect(),qe=Ve.height,ot=r(I).clientHeight,ut=(qe-ot)/2+ot,pt=Ve.left+c()-ye.left-r(I).clientWidth,Tt=2,nt=pt-w;nt<8&&(nt=8);let Lt=Ve.top+u()-ye.top+ut,Te=Tt-ut/2,Ue=Tt-w;D(T,de(nt)),D(B,Lt),D(L,Te),D(M,Ue)},Pe=()=>{!n()||!r(I)||!r(S)||D(M,-w)},Ae=()=>{switch($()){case"top":ee();break;case"bottom":ge();break;case"left":J();break;default:Pe()}},oe=()=>{try{if(!n()||!r(S))return;Ae(),l(!0)}catch(ye){se({message:String(ye)})}},Fe=()=>{l(!1)},j=()=>{r(I)&&(P||(P=window.setTimeout(oe,K.controls.hideTimeoutTooltips)),l()&&oe())},N=()=>{Fe(),window.clearTimeout(P),P=void 0},Le=(ye,Ve,qe)=>{let ot="";switch($()){case"top":ot=`transform: translate(${ye}px, ${Ve}px);`;break;case"bottom":ot=`transform: translate(${ye}px, ${Ve}px); top: auto; bottom: 100%;`;break;case"left":ot=`transform: translate(${ye}px, ${Ve}px); left: 0; right: auto;`;break;default:ot=`transform: translate(${ye}px, ${Ve}px);`}return ot+=` max-width: ${f()===void 0?"auto":`${f()}px`};`,ot+=` opacity: ${qe?1:0}; visibility: ${qe?"visible":"hidden"}`,ot},be=(ye,Ve)=>{let qe="";switch($()){case"top":qe=`transform: translate(${ye}px, ${Ve}px) rotate(0); top: auto; bottom: 0;`;break;case"bottom":qe=`transform: translate(${ye}px, ${Ve}px) rotate(180deg); top: 0; bottom: auto;`;break;case"left":qe=`transform: translate(${ye}px, ${Ve}px) rotate(-90deg); left: 100%; top: auto; bottom: 0;`;break;default:qe=`transform: translate(${ye}px, ${Ve}px) rotate(90deg); right: 100%; top: auto; bottom: 0;`}return qe},ke=v(()=>Le(r(T),r(B),l())),Be=v(()=>be(r(M),r(L)));At(Ae),on(()=>window.clearTimeout(P));var ce=kb(),R=le(ce);let $e;R.__mousemove=j,R.__mousedown=N,R.__mouseup=j;var Ie=h(R);pe(Ie,()=>e.children??te),g(R),at(R,ye=>D(S,ye),()=>r(S));var Ge=E(R,2);{var ze=ye=>{Op(ye,{children:(Ve,qe)=>{var ot=Cb(),ut=h(ot),pt=h(ut,!0);g(ut);var Tt=E(ut,2);g(ot),at(ot,nt=>D(I,nt),()=>r(I)),C(()=>{tt(ot,r(ke)),ue(pt,d()),tt(Tt,r(Be))}),b(Ve,ot)},$$slots:{default:!0}})};V(Ge,ye=>{d()&&!s()&&ye(ze)})}C(ye=>$e=Z(R,1,"tooltip-wrapper svelte-hxlyne",null,$e,ye),[()=>({"full-width":_()})]),ht("mouseenter",R,j),ht("mouseleave",R,N),b(t,ce),U(),o()}it(["mousemove","mousedown","mouseup"]);var nh=t=>{t.stopPropagation()},Ib=A("<div><!></div>"),Eb={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 co(t,e){F(e,!0),z(t,Eb);let[i,o]=Me(),n=()=>y(c,"$isGraphOpened$",i),a=()=>y(l,"$isMobile",i),s=_e(),d=Fi(),l=s.ui.isMobile,c=d.graphIsOpened$,u=s.ui.t,_=m(e,"className",3,""),f=m(e,"disabled",3,!1),$=m(e,"hasTooltip",3,!0),x=m(e,"ref",15,void 0),w=m(e,"width",15,void 0),S=m(e,"isFullWidthTooltip",3,!0),I=m(e,"tooltipContent",3,""),P=m(e,"tooltipActive",3,!1),M=m(e,"tooltipPlacement",3,"top"),L=m(e,"disabledTooltipContent",19,()=>u("tooltip_button_disabled")),T=m(e,"isAriaHidden",3,!1),B=m(e,"onTooltipVisibilityChange",3,Hp),K=m(e,"initialTranslateXPx",3,0),Q=m(e,"initialTranslateYPx",19,()=>-18),Y=m(e,"mouseEnter",3,Hp),ae=m(e,"mouseLeave",3,Hp),se=v(()=>f()?n()?u("tooltip_disabled_when_graph_on"):L():I());var ee=Ib();ee.__pointerdown=[nh],ee.__click=[nh];var ge=h(ee);{var J=Ae=>{Ka(Ae,{get content(){return r(se)},get translateX(){return K()},get translateY(){return Q()},get isFullWidthWrapper(){return S()},get active(){return P()},get placement(){return M()},get onVisibilityChange(){return B()},children:(oe,Fe)=>{var j=De(),N=le(j);pe(N,()=>e.children??te),b(oe,j)},$$slots:{default:!0}})},Pe=Ae=>{var oe=De(),Fe=le(oe);pe(Fe,()=>e.children??te),b(Ae,oe)};V(ge,Ae=>{$()&&r(se)&&!a()?Ae(J):Ae(Pe,!1)})}g(ee),at(ee,Ae=>x(Ae),()=>x()),C(()=>{Z(ee,1,`btn-container ${_()??""}`,"svelte-p9r045"),Re(ee,"aria-hidden",T()||null)}),ht("mouseenter",ee,function(...Ae){Y()?.apply(this,Ae)}),ht("mouseleave",ee,function(...Ae){ae()?.apply(this,Ae)}),Lr(ee,"clientWidth",w),b(t,ee),U(),o()}it(["pointerdown","click"]);var Pb=ve('<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 Bl(t,e){"use strict";var i=Pb(),o=h(i),n=E(o);g(i),C(()=>{Re(i,"data-testid",(e.completed,"interactive-episode-completed-icon")),Re(o,"fill-opacity",e.completed?1:.24),Re(n,"fill",e.completed?"var(--interactive-episode-complete)":"white")}),b(t,i)}var Ab=A("<div><!></div>"),Mb={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 Fp(t,e){F(e,!0),z(t,Mb);let o=_e().ui.t,n=X(0),a=v(()=>o(e.videoEpisode.completed?"tooltip_episode_finished":"tooltip_episode_unfinished"));co(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=Ab();let c;var u=h(l);let _=v(()=>!!e.videoEpisode.completed);Bl(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})]),Lr(l,"clientWidth",f=>D(n,f)),b(s,l)},$$slots:{default:!0}}),U()}var Lb=A('<div><div class="video-episode-inner svelte-1u6kv8l"><div class="video-episode-loaded svelte-1u6kv8l"></div> <div></div></div></div>'),Vb=A('<div class="video-episodes-wrap svelte-1u6kv8l"></div>'),Rb={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){W(t,bb);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=_b();C(()=>{Le(s,"data-value",r(a)),Le(s,"data-testid",`volume-${r(a)??""}-icon`)}),b(t,s)}import{isNonNullable as ih,noop as hr}from"@vkontakte/videoplayer-shared/es2024";import{noop as Np}from"@vkontakte/videoplayer-shared/es2024";import{noop as yb}from"@vkontakte/videoplayer-shared/es2024";var $b=L('<div class="overlay"><!></div>');function Dp(t,e){F(e,!0);let[i,o]=De(),n=()=>y(s,"$overlayContainer$",i),s=be().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))};Ue(()=>{c(n())}),At(()=>(c(n()),()=>l(n())));var u=$b(),_=h(u);ue(_,()=>e.children??J),g(u),at(u,f=>N(d,f),()=>r(d)),b(t,u),U(),o()}var xb=L('<div class="tooltip svelte-hxlyne"><div class="content svelte-hxlyne"> </div> <div class="tooltip-pointer svelte-hxlyne"></div></div>'),wb=L("<div><!></div> <!>",1),Sb={hash:"svelte-hxlyne",code:'.tooltip-wrapper.svelte-hxlyne {display:flex;flex-direction:column;min-width:0;}.full-width.svelte-hxlyne {width:100%;}.tooltip.svelte-hxlyne {position:absolute;opacity:0;visibility:hidden;transition:opacity 200ms, visibility 200ms;bottom:100%;left:0;}.content.svelte-hxlyne {display:inline-block;padding:6px 10px;border-radius:3px;color:var(--white);background-color:rgba(41, 41, 41, .8);}.tooltip-pointer.svelte-hxlyne {position:absolute;bottom:0;width:0;border-top:5px solid rgba(41, 41, 41, .8);border-right:5px solid transparent;border-left:5px solid transparent;content:" ";font-size:0;line-height:0;}'};function Wa(t,e){F(e,!0),W(t,Sb);let[i,o]=De(),n=()=>y(te,"$overlayContainer$",i),a=()=>y(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),$=v(e,"placement",3,"top"),x=v(e,"onVisibilityChange",3,yb),w=5,S=Y(void 0),I=Y(void 0),M,P=Y(0),A=Y(0),T=Y(0),B=Y(0),Q=Rt(),G=be(),ee=G.ui.playerSize,te=G.ui.overlayContainer$;Ue(()=>{ft(()=>{x()(l())})});let ie=G.getLogger().createComponentLog("Tooltip component"),oe=()=>{if(!n()||!r(I)||!r(S))return;N(A,w);let Te=n().getBoundingClientRect(),Me=r(S).getBoundingClientRect(),We=Me.width,it=r(I).clientWidth,vt=a().width,st=(We-it)/2,It=Me.left+c()-Te.left,nt=It+st,gt=Me.top+u()-Te.top,Mt=it/2-w,Ce=nt<8,Oe=nt+it>vt-8;Ce&&(nt=8,Mt=It+Me.width/2-2.5*w),Oe&&(nt=vt-8-it,Mt=Me.left-Te.left+Me.width/2-nt-w),N(T,de(nt)),N(B,gt),N(P,de(Mt))},ge=()=>{!n()||!r(I)||!r(S)||N(A,-w)},X=()=>{if(!n()||!r(I)||!r(S))return;N(P,w);let Te=n().getBoundingClientRect(),Me=r(S).getBoundingClientRect(),We=Me.height,it=r(I).clientHeight,vt=(We-it)/2+it,st=Me.left+c()-Te.left-r(I).clientWidth,It=2,nt=st-w;nt<8&&(nt=8);let Mt=Me.top+u()-Te.top+vt,Ce=It-vt/2,Oe=It-w;N(T,de(nt)),N(B,Mt),N(A,Ce),N(P,Oe)},Ve=()=>{!n()||!r(I)||!r(S)||N(P,-w)},Ae=()=>{switch($()){case"top":oe();break;case"bottom":ge();break;case"left":X();break;default:Ve()}},se=()=>{try{if(!n()||!r(S))return;Ae(),l(!0)}catch(Te){ie({message:String(Te)})}},He=()=>{l(!1)},j=()=>{r(I)&&(M||(M=window.setTimeout(se,Q.controls.hideTimeoutTooltips)),l()&&se())},D=()=>{He(),window.clearTimeout(M),M=void 0},Re=(Te,Me,We)=>{let it="";switch($()){case"top":it=`transform: translate(${Te}px, ${Me}px);`;break;case"bottom":it=`transform: translate(${Te}px, ${Me}px); top: auto; bottom: 100%;`;break;case"left":it=`transform: translate(${Te}px, ${Me}px); left: 0; right: auto;`;break;default:it=`transform: translate(${Te}px, ${Me}px);`}return it+=` max-width: ${f()===void 0?"auto":`${f()}px`};`,it+=` opacity: ${We?1:0}; visibility: ${We?"visible":"hidden"}`,it},_e=(Te,Me)=>{let We="";switch($()){case"top":We=`transform: translate(${Te}px, ${Me}px) rotate(0); top: auto; bottom: 0;`;break;case"bottom":We=`transform: translate(${Te}px, ${Me}px) rotate(180deg); top: 0; bottom: auto;`;break;case"left":We=`transform: translate(${Te}px, ${Me}px) rotate(-90deg); left: 100%; top: auto; bottom: 0;`;break;default:We=`transform: translate(${Te}px, ${Me}px) rotate(90deg); right: 100%; top: auto; bottom: 0;`}return We},ke=m(()=>Re(r(T),r(B),l())),Be=m(()=>_e(r(P),r(A)));At(Ae),Jo(()=>window.clearTimeout(M));var pe=wb(),R=le(pe);let ye;R.__mousemove=j,R.__mousedown=D,R.__mouseup=j;var Ie=h(R);ue(Ie,()=>e.children??J),g(R),at(R,Te=>N(S,Te),()=>r(S));var je=E(R,2);{var ze=Te=>{Dp(Te,{children:(Me,We)=>{var it=xb(),vt=h(it),st=h(vt,!0);g(vt);var It=E(vt,2);g(it),at(it,nt=>N(I,nt),()=>r(I)),C(()=>{tt(it,r(ke)),ce(st,d()),tt(It,r(Be))}),b(Me,it)},$$slots:{default:!0}})};V(je,Te=>{d()&&!s()&&Te(ze)})}C(Te=>ye=Z(R,1,"tooltip-wrapper svelte-hxlyne",null,ye,Te),[()=>({"full-width":_()})]),Ct("mouseenter",R,j),Ct("mouseleave",R,D),b(t,pe),U(),o()}ot(["mousemove","mousedown","mouseup"]);var th=t=>{t.stopPropagation()},Cb=L("<div><!></div>"),kb={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 so(t,e){F(e,!0),W(t,kb);let[i,o]=De(),n=()=>y(c,"$isGraphOpened$",i),a=()=>y(l,"$isMobile",i),s=be(),d=zi(),l=s.ui.isMobile,c=d.graphIsOpened$,u=s.ui.t,_=v(e,"className",3,""),f=v(e,"disabled",3,!1),$=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,""),M=v(e,"tooltipActive",3,!1),P=v(e,"tooltipPlacement",3,"top"),A=v(e,"disabledTooltipContent",19,()=>u("tooltip_button_disabled")),T=v(e,"isAriaHidden",3,!1),B=v(e,"onTooltipVisibilityChange",3,Np),Q=v(e,"initialTranslateXPx",3,0),G=v(e,"initialTranslateYPx",19,()=>-18),ee=v(e,"mouseEnter",3,Np),te=v(e,"mouseLeave",3,Np),ie=m(()=>f()?n()?u("tooltip_disabled_when_graph_on"):A():I());var oe=Cb();oe.__pointerdown=[th],oe.__click=[th];var ge=h(oe);{var X=Ae=>{Wa(Ae,{get content(){return r(ie)},get translateX(){return Q()},get translateY(){return G()},get isFullWidthWrapper(){return S()},get active(){return M()},get placement(){return P()},get onVisibilityChange(){return B()},children:(se,He)=>{var j=Ne(),D=le(j);ue(D,()=>e.children??J),b(se,j)},$$slots:{default:!0}})},Ve=Ae=>{var se=Ne(),He=le(se);ue(He,()=>e.children??J),b(Ae,se)};V(ge,Ae=>{$()&&r(ie)&&!a()?Ae(X):Ae(Ve,!1)})}g(oe),at(oe,Ae=>x(Ae),()=>x()),C(()=>{Z(oe,1,`btn-container ${_()??""}`,"svelte-p9r045"),Le(oe,"aria-hidden",T()||null)}),Ct("mouseenter",oe,function(...Ae){ee()?.apply(this,Ae)}),Ct("mouseleave",oe,function(...Ae){te()?.apply(this,Ae)}),Ar(oe,"clientWidth",w),b(t,oe),U(),o()}ot(["pointerdown","click"]);var Tb=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=Tb(),o=h(i),n=E(o);g(i),C(()=>{Le(i,"data-testid",(e.completed,"interactive-episode-completed-icon")),Le(o,"fill-opacity",e.completed?1:.24),Le(n,"fill",e.completed?"var(--interactive-episode-complete)":"white")}),b(t,i)}var Ib=L("<div><!></div>"),Eb={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),W(t,Eb);let o=be().ui.t,n=Y(0),a=m(()=>o(e.videoEpisode.completed?"tooltip_episode_finished":"tooltip_episode_unfinished"));so(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=Ib();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})]),Ar(l,"clientWidth",f=>N(n,f)),b(s,l)},$$slots:{default:!0}}),U()}var Pb=L('<div><div class="video-episode-inner svelte-1u6kv8l"><div class="video-episode-loaded svelte-1u6kv8l"></div> <div></div></div></div>'),Ab=L('<div class="video-episodes-wrap svelte-1u6kv8l"></div>'),Mb={hash:"svelte-1u6kv8l",code:`.video-episodes-wrap.svelte-1u6kv8l {position:absolute;width:100%;height:100%;}.video-episode.svelte-1u6kv8l {position:absolute;height:calc(3 * var(--slider-height));box-sizing:border-box;margin-top:calc(-1 * var(--slider-height));padding:var(--slider-height) var(--slider-video-episode-gap);transition:transform 0.2s;}.video-episode.svelte-1u6kv8l:not(.disabled):where(:hover, :active) {transform:scaleY(1.5);}.video-episode-inner.svelte-1u6kv8l,
169
169
  .video-episode-loaded.svelte-1u6kv8l,
170
- .video-episode-filled.svelte-1u6kv8l {position:absolute;height:var(--slider-height);border-radius:var(--slider-radius);}.video-episode-inner.svelte-1u6kv8l {position:absolute;overflow:hidden;width:calc(100% - 2 * var(--slider-video-episode-gap));background:var(--slider-bg);}.video-episode-loaded.svelte-1u6kv8l {position:absolute;left:-100%;width:100%;height:100%;border-radius:var(--slider-radius);background:var(--slider-loaded-bg);transition:transform 0.2s;}.video-episode-filled.svelte-1u6kv8l {position:absolute;left:-100%;width:100%;height:100%;border-radius:var(--slider-radius);background-color:var(--slider-filled-bg);}`};function Up(t,e){z(t,Rb);let i=m(e,"videoEpisodes",19,()=>[]);var o=Vb();ai(o,21,i,n=>n.from,(n,a)=>{var s=Lb();let d;var l=h(s),c=h(l),u=E(c,2);let _;g(l),g(s),C((f,$)=>{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,_,$),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 Nb(t,e,i,o,n,a,s){if(t.preventDefault(),e()&&D(i,de(e().getBoundingClientRect())),o()||r(n)||!e())return;D(n,!0);let d=a(t.clientX,t.clientY);s()(d),e().setPointerCapture(t.pointerId)}function Db(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 Bb(t,e,i,o,n){if(t.preventDefault(),e()||!r(i))return;D(i,!1);let a=o(t.clientX,t.clientY);n()(a)}function Ob(t,e,i,o){t.stopPropagation(),e()&&i()(o(t.clientX,t.clientY))}var Hb=A("<div></div>"),Fb=A('<div class="bars svelte-1tpemng"><div class="loaded svelte-1tpemng"></div> <div></div></div>'),Ub=A('<!> <div role="slider" tabindex="0"><!> <div><div></div></div></div>',1),zb={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 Op(t,e){W(t,Mb);let i=v(e,"videoEpisodes",19,()=>[]);var o=Ab();di(o,21,i,n=>n.from,(n,a)=>{var s=Pb();let d;var l=h(s),c=h(l),u=E(c,2);let _;g(l),g(s),C((f,$)=>{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,_,$),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 Lb(t,e,i,o,n,a,s){if(t.preventDefault(),e()&&N(i,de(e().getBoundingClientRect())),o()||r(n)||!e())return;N(n,!0);let d=a(t.clientX,t.clientY);s()(d),e().setPointerCapture(t.pointerId)}function Vb(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 Rb(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 Db(t,e,i,o){t.stopPropagation(),e()&&i()(o(t.clientX,t.clientY))}var Nb=L("<div></div>"),Bb=L('<div class="bars svelte-1tpemng"><div class="loaded svelte-1tpemng"></div> <div></div></div>'),Ob=L('<!> <div role="slider" tabindex="0"><!> <div><div></div></div></div>',1),Hb={hash:"svelte-1tpemng",code:`.interactive-icons.svelte-1tpemng {position:absolute;width:calc(100% - 20px);top:-28px;}.interactive-icons.mobile.svelte-1tpemng {top:-10px;}.slider.svelte-1tpemng {position:relative;height:var(--slider-height);border-radius:var(--slider-radius);cursor:pointer;transition:visibility 0.2s, opacity 0.2s;will-change:opacity, transform;width:100%;touch-action:none;-webkit-tap-highlight-color:transparent;}.no-handle.svelte-1tpemng {cursor:default;}.slider.svelte-1tpemng:before {
171
171
  /* hit area */content:'';position:absolute;left:0;right:0;top:calc(-1 * (var(--controls-height) / 2 - var(--slider-height)) / 2);height:calc(var(--controls-height) / 2);}.bars.svelte-1tpemng {position:absolute;width:100%;height:100%;border-radius:var(--slider-radius);overflow:hidden;background:var(--slider-bg);}.loaded.svelte-1tpemng {position:absolute;left:-100%;width:100%;height:100%;border-radius:var(--slider-radius);background:var(--slider-loaded-bg);transition:transform 0.2s;will-change:transform;}.filled.svelte-1tpemng {position:absolute;left:-100%;width:100%;height:100%;border-radius:var(--slider-radius);background-color:var(--slider-filled-bg);}.slider.square.svelte-1tpemng,
172
172
  .slider.square.svelte-1tpemng > .bars:where(.svelte-1tpemng),
173
173
  .slider.square.svelte-1tpemng .loaded:where(.svelte-1tpemng),
174
174
  .slider.square.svelte-1tpemng .filled:where(.svelte-1tpemng) {border-radius:unset;}.filled.active-live.svelte-1tpemng {background-color:var(--timeline-slider-filled-active-live-bg);}.filled.ads.svelte-1tpemng {background-color:var(--slider-filled-ads);}.handleWrap.svelte-1tpemng {position:absolute;left:-100%;width:100%;}.handle.svelte-1tpemng {position:absolute;width:var(--slider-handle-size);height:var(--slider-handle-size);right:calc(-1 * var(--slider-handle-size) / 2);top:calc((var(--slider-height) - var(--slider-handle-size)) / 2);border-radius:50%;background-color:var(--slider-handle-bg);visibility:hidden;opacity:0;transform:scale(0);transition:opacity 0.2s, transform 0.2s, visibility 0.2s;will-change:opacity, transform;}.handle.active-live.svelte-1tpemng {background-color:var(--timeline-slider-handle-active-live-bg);}.slider.svelte-1tpemng:hover .handle:where(.svelte-1tpemng),
175
- .slider-dragging.svelte-1tpemng .handle:where(.svelte-1tpemng) {visibility:visible;opacity:1;transform:scale(1);}.slider-dragging.svelte-1tpemng .handle:where(.svelte-1tpemng) {transform:scale(1.3);}.slider-vertical.svelte-1tpemng {position:absolute;left:-8px;top:-18px;transform-origin:0 0;transform:rotate(-90deg);}.slider.disabled.svelte-1tpemng {cursor:default;opacity:0.4;}`};function Qa(t,e){F(e,!0),z(t,zb);let i=m(e,"ref",15,void 0),o=m(e,"className",3,""),n=m(e,"testId",3,void 0),a=m(e,"isHidden",3,!1),s=m(e,"isVertical",3,!1),d=m(e,"isActiveLive",3,!1),l=m(e,"isMobile",3,!1),c=m(e,"squareBorders",3,!1),u=m(e,"videoEpisodes",19,()=>[]),_=m(e,"withWheelHandler",3,!1),f=m(e,"isInteractive",3,!1),$=m(e,"disabled",3,!1),x=m(e,"hideHandel",3,!1),w=m(e,"onPointerDown",3,vr),S=m(e,"onHandleMove",3,vr),I=m(e,"onPointerUp",3,vr),P=m(e,"onPointerEnter",3,vr),M=m(e,"onPointerMove",3,vr),L=m(e,"onPointerLeave",3,vr),T=m(e,"onWheelUp",3,vr),B=m(e,"onWheelDown",3,vr),K=m(e,"onWheelLeft",3,vr),Q=m(e,"onWheelRight",3,vr),Y=m(e,"onDisabledClick",3,vr),ae=m(e,"loadedProgress",3,0),se=m(e,"filledProgress",3,0),ee=m(e,"handleProgress",3,0),ge=m(e,"ariaLabel",3,""),J=m(e,"ariaValueMin",3,void 0),Pe=m(e,"ariaValueMax",3,void 0),Ae=m(e,"ariaValueNow",3,void 0),oe=m(e,"ariaValueText",3,""),Fe=Mt(),j=X(void 0),N=X(!1),Le=v(()=>Pe()??0),be=v(()=>rh(u())&&u()[u().length-1]?.time<r(Le)),ke=v(()=>rh(u())&&u().length&&r(be)&&r(Le)?Ge(ae()*100,se()*100):[]);function Be(Ue){if(Ue.preventDefault(),i()&&D(j,de(i().getBoundingClientRect())),$())return;let Ye=$e(Ue.clientX,Ue.clientY),W=Ie(Ue.clientX);P()(Ye,W,r(j).width)}function ce(Ue){Ue.preventDefault(),!$()&&L()()}function R(Ue){$()||_()&&(Ue.preventDefault(),Ue.deltaY<0?T()():Ue.deltaY>0?B()():Ue.deltaX>0?Q()():K()())}function $e(Ue,Ye){return s()?Math.max(0,Math.min(1,(r(j).height-(Ye-r(j).top))/r(j).height)):Math.min(Math.max(Ue-r(j).x,0),r(j).width)/r(j).width}function Ie(Ue){return Math.min(Math.max(Ue-r(j).x,0),r(j).width)}function Ge(Ue,Ye){let W=Fe.features.episodesClustering&&!f()?Fe.episodeMinWidthPc:0,ne=[],ie=u()[0].time/r(Le)*100,We=0,Ze=0;for(let Xe=1;Xe<u().length;Xe++)We=u()[Xe].time/r(Le)*100,We-ie>W&&(ne.push({from:ie,width:Math.max(0,We-ie),loadedWidth:Math.max(0,Math.min(We,Ue)-ie),filledWidth:Math.max(0,Math.min(We,Ye)-ie),interactive:u()[Xe-1].interactive,completed:u()[Xe-1].completed}),ie=u()[Xe].time/r(Le)*100,Ze++);let $t={from:ie,width:Math.max(0,100-ie),loadedWidth:Math.max(0,Math.min(Ue,100)-ie),filledWidth:Math.max(0,Math.min(Ye,100)-ie),interactive:u()[Ze].interactive,completed:u()[Ze].completed};100-ie<W?(Ze-=1,ne[Ze].width+=100-ie,ne[Ze].loadedWidth+=Math.max(0,Math.min(Ue,100)-ie),ne[Ze].filledWidth+=Math.max(0,Math.min(Ye,100)-ie)):ne[Ze]=$t;let Ke=u()[0].time;if(Ke!==0){let Xe=Ke/r(Le)*100;ne.unshift({from:0,width:Xe,loadedWidth:Math.min(Xe,Ue),filledWidth:Math.min(Xe,Ye)})}return ne}var ze=Ub(),ye=le(ze);{var Ve=Ue=>{var Ye=Hb();let W;ai(Ye,21,()=>r(ke),ne=>ne.from,(ne,ie)=>{var We=De(),Ze=le(We);{var $t=Ke=>{Fp(Ke,{get videoEpisode(){return r(ie)},get disabled(){return $()}})};V(Ze,Ke=>{r(ie).interactive&&Ke($t)})}b(ne,We)}),g(Ye),C(ne=>W=Z(Ye,1,"interactive-icons svelte-1tpemng",null,W,ne),[()=>({mobile:l(),hidden:l()&&!r(N)})]),b(Ue,Ye)};V(ye,Ue=>{f()&&Ue(Ve)})}var qe=E(ye,2);let ot;qe.__pointerdown=[Nb,i,j,$,N,$e,w],qe.__pointermove=[Db,$,$e,Ie,M,j,N,S],qe.__pointerup=[Bb,$,N,$e,I],qe.__click=[Ob,$,Y,$e];var ut=h(qe);{var pt=Ue=>{Up(Ue,{get videoEpisodes(){return r(ke)},get disabled(){return $()},get isMobile(){return l()}})},Tt=Ue=>{var Ye=Fb(),W=h(Ye),ne=E(W,2);let ie;g(Ye),C(We=>{tt(W,`transform: translateX(${ae()*100}%);`),ie=Z(ne,1,"filled svelte-1tpemng",null,ie,We),tt(ne,`transform: translateX(${se()*100}%);`)},[()=>({"active-live":d()})]),b(Ue,Ye)};V(ut,Ue=>{r(ke).length?Ue(pt):Ue(Tt,!1)})}var nt=E(ut,2);let vt;var Lt=h(nt);let Te;g(nt),g(qe),at(qe,Ue=>i(Ue),()=>i()),C((Ue,Ye,W)=>{ot=Z(qe,1,`slider ${o()??""}`,"svelte-1tpemng",ot,Ue),Re(qe,"aria-label",ge()),Re(qe,"aria-valuemin",J()),Re(qe,"aria-valuemax",Pe()),Re(qe,"aria-valuenow",Ae()),Re(qe,"aria-valuetext",oe()),Re(qe,"data-testid",n()??null),vt=Z(nt,1,"handleWrap svelte-1tpemng",null,vt,Ye),tt(nt,`transform: translateX(${ee()*100}%);`),Te=Z(Lt,1,"handle svelte-1tpemng",null,Te,W)},[()=>({disabled:$(),"slider-dragging":r(N),hidden:a(),"slider-vertical":s(),"no-handle":x(),square:c()}),()=>({hidden:x()}),()=>({"active-live":d()})]),ht("pointerenter",qe,Be),ht("pointerleave",qe,ce),ht("wheel",qe,R),b(t,ze),U()}it(["pointerdown","pointermove","pointerup","click"]);var Ci=(t,e)=>Ra[t]>=Ra[e],ah=(t,e)=>Ra[t]<Ra[e],va=(t,e)=>Ra[t]<=Ra[e],sh=t=>t>699?"xl":t>599?"l":t>509?"m":t>320?"s":"xs";var qb=A("<div><!></div>"),Wb=A("<div><!> <!></div>"),Kb={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 zp(t,e){F(e,!0),z(t,Kb);let[i,o]=Me(),n=()=>y(P,"$isAudioAvailable$",i),a=()=>y(_,"$muted$",i),s=()=>y(u,"$volume$",i),d=()=>y(w,"$currentGridType$",i),l=_e(),c=Mt(),u=l.state.volume$,_=l.state.muted$,{setVolume:f,startVolumeChanging:$,stopVolumeChanging:x}=l.actions.internal,w=l.ui.currentGridType$,S=l.callbacks?.onAudioDoesNotExistHint,I=l.callbacks?.onAudioDisabledHint,P=l.state.isAudioAvailable$,M=l.state.isAudioDisabled,L=l.ui.t,T=X(!1),B,K=v(()=>!n()||a()||s()===0),Q=v(()=>va(d(),"s")),Y=v(()=>r(Q)?"":r(K)?L("tooltip_volume"):L("tooltip_volume_muted")),ae=v(()=>r(K)?L("tooltip_volume"):L("tooltip_volume_muted")),se=v(()=>r(K)?0:s()),ee=!1,ge=v(()=>n()?M&&!I:!S);function J(ze){$(),f(ze)}function Pe(){$c(l,s(),c.controls.volumeStepWheel)}function Ae(){yc(l,s(),c.controls.volumeStepWheel)}function oe(ze){f(ze)}function Fe(ze){f(ze),x()}function j(){ee=!0}function N(){ee=!1,ke()}function Le(){clearTimeout(B),D(T,!0)}function be(){ke()}function ke(){B=window.setTimeout(()=>{ee||D(T,!1)},c.controls.volumeBarTimeout)}function Be(ze){ze.preventDefault(),ze.deltaY<0?Pe():ze.deltaY>0&&Ae()}var ce=Wb();let R;var $e=h(ce);Ka($e,{get content(){return r(Y)},translateY:-18,children:(ze,ye)=>{let Ve=v(()=>r(Q)?"btn-volume-vertical":"btn-volume-horizontal");kt(ze,{className:"btn-full-opacity",get disabled(){return r(ge)},get testId(){return r(Ve)},get ariaLabel(){return r(ae)},get click(){return e.click},get ariaKeyShortCut(){return Vr.KeyM},children:(qe,ot)=>{ma(qe,{get volume(){return s()},get muted(){return r(K)}})},$$slots:{default:!0}})},$$slots:{default:!0}});var Ie=E($e,2);{var Ge=ze=>{var ye=qb();let Ve;var qe=h(ye);let ot=v(()=>r(Q)?"volumeBar-slider-vertical":""),ut=v(()=>r(Q)&&!r(T)),pt=v(()=>r(Q)?j:wc),Tt=v(()=>r(Q)?N:wc),nt=v(()=>Math.round(r(se)*100)),vt=v(()=>`${Math.round(r(se)*100)}%`),Lt=v(()=>r(Q)?"volume-slider-vertical":"volume-slider");Qa(qe,{get className(){return r(ot)},get isHidden(){return r(ut)},get isVertical(){return r(Q)},withWheelHandler:!0,onWheelUp:Pe,onWheelDown:Ae,onPointerDown:J,onHandleMove:oe,onPointerUp:Fe,get onPointerEnter(){return r(pt)},get onPointerLeave(){return r(Tt)},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(vt)},get filledProgress(){return r(se)},get handleProgress(){return r(se)},get testId(){return r(Lt)}}),g(ye),C(Te=>Ve=Z(ye,1,"volumeBar svelte-1auih1j",null,Ve,Te),[()=>({"volumeBar-vertical":r(Q)})]),b(ze,ye)};V(Ie,ze=>{n()&&ze(Ge)})}g(ce),C(ze=>R=Z(ce,1,"volumeBar-container svelte-1auih1j",null,R,ze),[()=>({vertical:r(Q)})]),ht("mouseenter",ce,function(...ze){(r(Q)?Le:wc)?.apply(this,ze)}),ht("mouseleave",ce,function(...ze){(r(Q)?be:wc)?.apply(this,ze)}),ht("wheel",ce,Be),b(t,ce),U(),o()}import{noop as Yb}from"@vkontakte/videoplayer-shared/es2024";var Qb=ve('<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 qp(t,e){let i=Ce(e,["$$slots","$$events","$$legacy","children"]);var o=Qb();let n;var a=h(o);pe(a,()=>e.children??te),me(),g(o),C(()=>n=xe(o,n,{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"var(--btn-color, #fff)","aria-hidden":"true",role:"img",...i})),b(t,o)}var Gb={hash:"svelte-17t966y",code:`svg[data-testid="close-fullscreen-icon"] ._enter,
176
- svg[data-testid="open-fullscreen-icon"] ._exit {visibility:hidden;opacity:0;}`};function Wp(t,e){z(t,Gb);let i=m(e,"isFullscreen",8,!1),o=cr(()=>i()?"close-fullscreen-icon":"open-fullscreen-icon");qp(t,{get"data-testid"(){return r(o)},fill:"var(--btn-color, #fff)"})}function Ol(t,e){F(e,!0);let i=m(e,"isFullscreen",3,!1),o=m(e,"click",3,Yb),n=_e(),a=n.ui.isFullscreenOpenedByKeyboard,s=n.ui.t,d=v(()=>i()?s("tooltip_fullscreen_on"):s("tooltip_fullscreen_off"));kt(t,{testId:"btn-fullscreen",get ariaLabel(){return r(d)},click:c=>{let u=pa(c);a.set(u),o()()},get ariaKeyShortCut(){return Vr.KeyF},children:(c,u)=>{Wp(c,{get isFullscreen(){return i()}})},$$slots:{default:!0}}),U()}var jb=ve('<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 Kp(t,e){let i=Ce(e,["$$slots","$$events","$$legacy","children"]);var o=jb();let n;var a=h(o);pe(a,()=>e.children??te),me(),g(o),C(()=>n=xe(o,n,{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none","aria-hidden":"true","data-testid":"vk-logo-icon",role:"img",...i})),b(t,o)}var Zb=ve('<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 Qp(t,e){let i=Ce(e,["$$slots","$$events","$$legacy","children"]);var o=Zb();let n;var a=h(o);pe(a,()=>e.children??te),me(4),g(o),C(()=>n=xe(o,n,{xmlns:"http://www.w3.org/2000/svg",width:"95",height:"24",fill:"none","aria-hidden":"true",role:"img",...i})),b(t,o)}var Xb={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 qa(t,e){F(e,!0),W(t,Hb);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),$=v(e,"disabled",3,!1),x=v(e,"hideHandel",3,!1),w=v(e,"onPointerDown",3,hr),S=v(e,"onHandleMove",3,hr),I=v(e,"onPointerUp",3,hr),M=v(e,"onPointerEnter",3,hr),P=v(e,"onPointerMove",3,hr),A=v(e,"onPointerLeave",3,hr),T=v(e,"onWheelUp",3,hr),B=v(e,"onWheelDown",3,hr),Q=v(e,"onWheelLeft",3,hr),G=v(e,"onWheelRight",3,hr),ee=v(e,"onDisabledClick",3,hr),te=v(e,"loadedProgress",3,0),ie=v(e,"filledProgress",3,0),oe=v(e,"handleProgress",3,0),ge=v(e,"ariaLabel",3,""),X=v(e,"ariaValueMin",3,void 0),Ve=v(e,"ariaValueMax",3,void 0),Ae=v(e,"ariaValueNow",3,void 0),se=v(e,"ariaValueText",3,""),He=Rt(),j=Y(void 0),D=Y(!1),Re=m(()=>Ve()??0),_e=m(()=>ih(u())&&u()[u().length-1]?.time<r(Re)),ke=m(()=>ih(u())&&u().length&&r(_e)&&r(Re)?je(te()*100,ie()*100):[]);function Be(Oe){if(Oe.preventDefault(),i()&&N(j,de(i().getBoundingClientRect())),$())return;let Ze=ye(Oe.clientX,Oe.clientY),q=Ie(Oe.clientX);M()(Ze,q,r(j).width)}function pe(Oe){Oe.preventDefault(),!$()&&A()()}function R(Oe){$()||_()&&(Oe.preventDefault(),Oe.deltaY<0?T()():Oe.deltaY>0?B()():Oe.deltaX>0?G()():Q()())}function ye(Oe,Ze){return s()?Math.max(0,Math.min(1,(r(j).height-(Ze-r(j).top))/r(j).height)):Math.min(Math.max(Oe-r(j).x,0),r(j).width)/r(j).width}function Ie(Oe){return Math.min(Math.max(Oe-r(j).x,0),r(j).width)}function je(Oe,Ze){let q=He.features.episodesClustering&&!f()?He.episodeMinWidthPc:0,ae=[],ne=u()[0].time/r(Re)*100,Fe=0,Ge=0;for(let Je=1;Je<u().length;Je++)Fe=u()[Je].time/r(Re)*100,Fe-ne>q&&(ae.push({from:ne,width:Math.max(0,Fe-ne),loadedWidth:Math.max(0,Math.min(Fe,Oe)-ne),filledWidth:Math.max(0,Math.min(Fe,Ze)-ne),interactive:u()[Je-1].interactive,completed:u()[Je-1].completed}),ne=u()[Je].time/r(Re)*100,Ge++);let wt={from:ne,width:Math.max(0,100-ne),loadedWidth:Math.max(0,Math.min(Oe,100)-ne),filledWidth:Math.max(0,Math.min(Ze,100)-ne),interactive:u()[Ge].interactive,completed:u()[Ge].completed};100-ne<q?(Ge-=1,ae[Ge].width+=100-ne,ae[Ge].loadedWidth+=Math.max(0,Math.min(Oe,100)-ne),ae[Ge].filledWidth+=Math.max(0,Math.min(Ze,100)-ne)):ae[Ge]=wt;let Ke=u()[0].time;if(Ke!==0){let Je=Ke/r(Re)*100;ae.unshift({from:0,width:Je,loadedWidth:Math.min(Je,Oe),filledWidth:Math.min(Je,Ze)})}return ae}var ze=Ob(),Te=le(ze);{var Me=Oe=>{var Ze=Nb();let q;di(Ze,21,()=>r(ke),ae=>ae.from,(ae,ne)=>{var Fe=Ne(),Ge=le(Fe);{var wt=Ke=>{Bp(Ke,{get videoEpisode(){return r(ne)},get disabled(){return $()}})};V(Ge,Ke=>{r(ne).interactive&&Ke(wt)})}b(ae,Fe)}),g(Ze),C(ae=>q=Z(Ze,1,"interactive-icons svelte-1tpemng",null,q,ae),[()=>({mobile:l(),hidden:l()&&!r(D)})]),b(Oe,Ze)};V(Te,Oe=>{f()&&Oe(Me)})}var We=E(Te,2);let it;We.__pointerdown=[Lb,i,j,$,D,ye,w],We.__pointermove=[Vb,$,ye,Ie,P,j,D,S],We.__pointerup=[Rb,$,D,ye,I],We.__click=[Db,$,ee,ye];var vt=h(We);{var st=Oe=>{Op(Oe,{get videoEpisodes(){return r(ke)},get disabled(){return $()},get isMobile(){return l()}})},It=Oe=>{var Ze=Bb(),q=h(Ze),ae=E(q,2);let ne;g(Ze),C(Fe=>{tt(q,`transform: translateX(${te()*100}%);`),ne=Z(ae,1,"filled svelte-1tpemng",null,ne,Fe),tt(ae,`transform: translateX(${ie()*100}%);`)},[()=>({"active-live":d()})]),b(Oe,Ze)};V(vt,Oe=>{r(ke).length?Oe(st):Oe(It,!1)})}var nt=E(vt,2);let gt;var Mt=h(nt);let Ce;g(nt),g(We),at(We,Oe=>i(Oe),()=>i()),C((Oe,Ze,q)=>{it=Z(We,1,`slider ${o()??""}`,"svelte-1tpemng",it,Oe),Le(We,"aria-label",ge()),Le(We,"aria-valuemin",X()),Le(We,"aria-valuemax",Ve()),Le(We,"aria-valuenow",Ae()),Le(We,"aria-valuetext",se()),Le(We,"data-testid",n()??null),gt=Z(nt,1,"handleWrap svelte-1tpemng",null,gt,Ze),tt(nt,`transform: translateX(${oe()*100}%);`),Ce=Z(Mt,1,"handle svelte-1tpemng",null,Ce,q)},[()=>({disabled:$(),"slider-dragging":r(D),hidden:a(),"slider-vertical":s(),"no-handle":x(),square:c()}),()=>({hidden:x()}),()=>({"active-live":d()})]),Ct("pointerenter",We,Be),Ct("pointerleave",We,pe),Ct("wheel",We,R),b(t,ze),U()}ot(["pointerdown","pointermove","pointerup","click"]);var Si=(t,e)=>La[t]>=La[e],oh=(t,e)=>La[t]<La[e],fa=(t,e)=>La[t]<=La[e],nh=t=>t>699?"xl":t>599?"l":t>509?"m":t>320?"s":"xs";var Fb=L("<div><!></div>"),Ub=L("<div><!> <!></div>"),zb={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 Hp(t,e){F(e,!0),W(t,zb);let[i,o]=De(),n=()=>y(M,"$isAudioAvailable$",i),a=()=>y(_,"$muted$",i),s=()=>y(u,"$volume$",i),d=()=>y(w,"$currentGridType$",i),l=be(),c=Rt(),u=l.state.volume$,_=l.state.muted$,{setVolume:f,startVolumeChanging:$,stopVolumeChanging:x}=l.actions.internal,w=l.ui.currentGridType$,S=l.callbacks?.onAudioDoesNotExistHint,I=l.callbacks?.onAudioDisabledHint,M=l.state.isAudioAvailable$,P=l.state.isAudioDisabled,A=l.ui.t,T=Y(!1),B,Q=m(()=>!n()||a()||s()===0),G=m(()=>fa(d(),"s")),ee=m(()=>r(G)?"":r(Q)?A("tooltip_volume"):A("tooltip_volume_muted")),te=m(()=>r(Q)?A("tooltip_volume"):A("tooltip_volume_muted")),ie=m(()=>r(Q)?0:s()),oe=!1,ge=m(()=>n()?P&&!I:!S);function X(ze){$(),f(ze)}function Ve(){gc(l,s(),c.controls.volumeStepWheel)}function Ae(){hc(l,s(),c.controls.volumeStepWheel)}function se(ze){f(ze)}function He(ze){f(ze),x()}function j(){oe=!0}function D(){oe=!1,ke()}function Re(){clearTimeout(B),N(T,!0)}function _e(){ke()}function ke(){B=window.setTimeout(()=>{oe||N(T,!1)},c.controls.volumeBarTimeout)}function Be(ze){ze.preventDefault(),ze.deltaY<0?Ve():ze.deltaY>0&&Ae()}var pe=Ub();let R;var ye=h(pe);Wa(ye,{get content(){return r(ee)},translateY:-18,children:(ze,Te)=>{let Me=m(()=>r(G)?"btn-volume-vertical":"btn-volume-horizontal");kt(ze,{className:"btn-full-opacity",get disabled(){return r(ge)},get testId(){return r(Me)},get ariaLabel(){return r(te)},get click(){return e.click},get ariaKeyShortCut(){return Mr.KeyM},children:(We,it)=>{pa(We,{get volume(){return s()},get muted(){return r(Q)}})},$$slots:{default:!0}})},$$slots:{default:!0}});var Ie=E(ye,2);{var je=ze=>{var Te=Fb();let Me;var We=h(Te);let it=m(()=>r(G)?"volumeBar-slider-vertical":""),vt=m(()=>r(G)&&!r(T)),st=m(()=>r(G)?j:bc),It=m(()=>r(G)?D:bc),nt=m(()=>Math.round(r(ie)*100)),gt=m(()=>`${Math.round(r(ie)*100)}%`),Mt=m(()=>r(G)?"volume-slider-vertical":"volume-slider");qa(We,{get className(){return r(it)},get isHidden(){return r(vt)},get isVertical(){return r(G)},withWheelHandler:!0,onWheelUp:Ve,onWheelDown:Ae,onPointerDown:X,onHandleMove:se,onPointerUp:He,get onPointerEnter(){return r(st)},get onPointerLeave(){return r(It)},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(gt)},get filledProgress(){return r(ie)},get handleProgress(){return r(ie)},get testId(){return r(Mt)}}),g(Te),C(Ce=>Me=Z(Te,1,"volumeBar svelte-1auih1j",null,Me,Ce),[()=>({"volumeBar-vertical":r(G)})]),b(ze,Te)};V(Ie,ze=>{n()&&ze(je)})}g(pe),C(ze=>R=Z(pe,1,"volumeBar-container svelte-1auih1j",null,R,ze),[()=>({vertical:r(G)})]),Ct("mouseenter",pe,function(...ze){(r(G)?Re:bc)?.apply(this,ze)}),Ct("mouseleave",pe,function(...ze){(r(G)?_e:bc)?.apply(this,ze)}),Ct("wheel",pe,Be),b(t,pe),U(),o()}import{noop as Kb}from"@vkontakte/videoplayer-shared/es2024";var Wb=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 Fp(t,e){let i=Se(e,["$$slots","$$events","$$legacy","children"]);var o=Wb();let n;var a=h(o);ue(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 qb={hash:"svelte-17t966y",code:`svg[data-testid="close-fullscreen-icon"] ._enter,
176
+ svg[data-testid="open-fullscreen-icon"] ._exit {visibility:hidden;opacity:0;}`};function Up(t,e){W(t,qb);let i=v(e,"isFullscreen",8,!1),o=pr(()=>i()?"close-fullscreen-icon":"open-fullscreen-icon");Fp(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,Kb),n=be(),a=n.ui.isFullscreenOpenedByKeyboard,s=n.ui.t,d=m(()=>i()?s("tooltip_fullscreen_on"):s("tooltip_fullscreen_off"));kt(t,{testId:"btn-fullscreen",get ariaLabel(){return r(d)},click:c=>{let u=ca(c);a.set(u),o()()},get ariaKeyShortCut(){return Mr.KeyF},children:(c,u)=>{Up(c,{get isFullscreen(){return i()}})},$$slots:{default:!0}}),U()}var Qb=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 zp(t,e){let i=Se(e,["$$slots","$$events","$$legacy","children"]);var o=Qb();let n;var a=h(o);ue(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 Gb=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 Wp(t,e){let i=Se(e,["$$slots","$$events","$$legacy","children"]);var o=Gb();let n;var a=h(o);ue(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 Yb={hash:"svelte-1nhjml",code:`svg[data-testid="vk-video-logo-icon--short"] ._ru,
177
177
  svg[data-testid="vk-video-logo-icon--short"] ._en,
178
178
  svg[data-testid="vk-video-logo-icon"] ._en,
179
- svg[data-testid="vk-video-logo-icon--en"] ._ru {visibility:hidden;opacity:0;}`};function Gp(t,e){z(t,Xb);let i=m(e,"short",3,!1),o=m(e,"isCyrillic",3,!0),n="vk-video-logo-icon--short",a=21,s=v(()=>!o()&&!i()?91:i()?a:95),d=v(()=>!o()&&!i()?"vk-video-logo-icon--en":i()?n:"vk-video-logo-icon"),l=v(()=>`0 0 ${r(s)+1} 24`);Qp(t,{get width(){return r(s)},height:"24",get viewBox(){return r(l)},get"data-testid"(){return r(d)}})}function Hl(t,e){F(e,!0);let[i,o]=Me(),n=()=>y($,"$isMobile",i),a=()=>y(f,"$currentGridType$",i),s=()=>y(w,"$isCyrillicRelatedInterface$",i),d=m(e,"ref",15,void 0),l=m(e,"logoClickable",3,!1),c=m(e,"targetUrl",3,""),u=Mt(),_=_e(),f=_.ui.currentGridType$,$=_.ui.isMobile,x=_.ui.t,w=_.isCyrillicRelatedInterface$,S=v(()=>u.logoType==="vk_video"?x("tooltip_vk_video_logo"):x("tooltip_vk_logo")),I=v(()=>u.logoType==="vk_video"||u.logoType==="vk_video_mobile"),P=v(()=>(n()||va(a(),"l"))&&r(I)),M=()=>{e.click(),_.callbacks?.onLogoClicked?_.callbacks?.onLogoClicked():c()&&window.open(c(),"_blank")},L=v(()=>!l()),T=v(()=>r(I)?"btn-vk-video-logo":"btn-vk-logo");kt(t,{className:"btn-full-opacity",get disabled(){return r(L)},click:M,get testId(){return r(T)},get ariaLabel(){return r(S)},get ref(){return d()},set ref(B){d(B)},children:(B,K)=>{var Q=De(),Y=le(Q);{var ae=ee=>{Gp(ee,{get short(){return r(P)},get isCyrillic(){return s()}})},se=ee=>{Kp(ee,{})};V(Y,ee=>{r(I)?ee(ae):ee(se,!1)})}b(B,Q)},$$slots:{default:!0}}),U(),o()}import{ChromecastState as o$}from"@vkontakte/videoplayer-core/es2024";import{ChromecastState as lh}from"@vkontakte/videoplayer-core/es2024";var e$=ve('<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>'),t$=ve('<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>'),i$={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 qp(t,e){W(t,Yb);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`);Wp(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]=De(),n=()=>y($,"$isMobile",i),a=()=>y(f,"$currentGridType$",i),s=()=>y(w,"$isCyrillicRelatedInterface$",i),d=v(e,"ref",15,void 0),l=v(e,"logoClickable",3,!1),c=v(e,"targetUrl",3,""),u=Rt(),_=be(),f=_.ui.currentGridType$,$=_.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"),M=m(()=>(n()||fa(a(),"l"))&&r(I)),P=()=>{e.click(),_.callbacks?.onLogoClicked?_.callbacks?.onLogoClicked():c()&&window.open(c(),"_blank")},A=m(()=>!l()),T=m(()=>r(I)?"btn-vk-video-logo":"btn-vk-logo");kt(t,{className:"btn-full-opacity",get disabled(){return r(A)},click:P,get testId(){return r(T)},get ariaLabel(){return r(S)},get ref(){return d()},set ref(B){d(B)},children:(B,Q)=>{var G=Ne(),ee=le(G);{var te=oe=>{qp(oe,{get short(){return r(M)},get isCyrillic(){return s()}})},ie=oe=>{zp(oe,{})};V(ee,oe=>{r(I)?oe(te):oe(ie,!1)})}b(B,G)},$$slots:{default:!0}}),U(),o()}import{ChromecastState as e$}from"@vkontakte/videoplayer-core/es2024";import{ChromecastState as rh}from"@vkontakte/videoplayer-core/es2024";var Zb=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>'),Xb=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>'),Jb={hash:"svelte-8z1bf5",code:`.connecting.svelte-8z1bf5 .wave:where(.svelte-8z1bf5) {animation-duration:1s;animation-iteration-count:infinite;}.connecting.svelte-8z1bf5 .wave1:where(.svelte-8z1bf5) {
180
180
  animation-name: svelte-8z1bf5-wave1;}.connecting.svelte-8z1bf5 .wave2:where(.svelte-8z1bf5) {
181
181
  animation-name: svelte-8z1bf5-wave2;}.connecting.svelte-8z1bf5 .wave3:where(.svelte-8z1bf5) {
182
182
  animation-name: svelte-8z1bf5-wave3;}
@@ -224,9 +224,9 @@ Try switching the\xA0quality to\xA0Auto.`},Vg=x0;var Yr=new Map;Yr.set(Ng.EN,Vg)
224
224
  100% {
225
225
  opacity: 1;
226
226
  }
227
- }`};function Yp(t,e){F(e,!0),z(t,i$);let i=m(e,"isMobile",3,!1),o=v(()=>e.iconState===lh.CONNECTED),n=v(()=>e.iconState===lh.CONNECTING);var a=De(),s=le(a);{var d=c=>{var u=e$(),_=h(u),f=h(_),$=h(f);me(),g(f);var x=E(f);me(),g(_);var w=E(_),S=h(w),I=h(S);g(S),me(),g(w),g(u),C(()=>{Re($,"fill",r(o)?"#2688EB":"var(--btn-color, #fff)"),Re(x,"fill",r(o)?"#2688EB":"var(--btn-color, #fff)"),Re(I,"fill",r(o)?"#2688EB":"var(--btn-color, #fff)")}),b(c,u)},l=c=>{var u=t$();let _;var f=h(u),$=E(h(f),5);let x;g(f),g(u),C((w,S)=>{_=Z(u,0,"svelte-8z1bf5",null,_,w),x=Z($,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 n$}from"@vkontakte/videoplayer-shared/es2024";function Fl(t,e){F(e,!0);let i=m(e,"ref",15,void 0),o=m(e,"isMobile",3,!1),n=m(e,"click",3,n$),s=_e().ui.t,d=v(()=>e.state===o$.CONNECTED?s("tooltip_chromecast_on"):s("tooltip_chromecast_off"));kt(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)=>{Yp(l,{get isMobile(){return o()},get iconState(){return e.state}})},$$slots:{default:!0}}),U()}var r$=A('<div class="tooltip-wrapper svelte-5ygsa2"><div><!></div></div>'),a$={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 jp(t,e){z(t,a$);let i=m(e,"active",3,!1),o=m(e,"pointer",3,!1),n=m(e,"translateXPx",3,0),a=m(e,"translateYPx",3,0),s=X(void 0),d=X(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=v(()=>l(n()));var u=r$(),_=h(u);let f;var $=h(_);pe($,()=>e.children??te),g(_),at(_,x=>D(d,x),()=>r(d)),g(u),at(u,x=>D(s,x),()=>r(s)),C(x=>{tt(u,`transform: translate(${r(c)}px, ${a()}px);`),f=Z(_,1,"tooltip svelte-5ygsa2",null,f,x),tt(_,`opacity: ${i()?1:0}; visibility: ${i()?"visible":"hidden"}`)},[()=>({active:i(),pointer:o()})]),b(t,u)}var Sc=(t,e,i)=>i.filter(o=>o.time<=t*e).pop();var dh=t=>!!(Math.round(Math.abs(t)/90)%2),ch=t=>Math.abs(t)/90%4===1;var s$=A('<div class="preview svelte-1wqg760"></div>'),l$=A('<div class="time svelte-1wqg760"> </div>'),d$=A('<div><!> <div class="episode svelte-1wqg760"><!></div> <!></div>'),c$={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 Zp(t,e){F(e,!0),z(t,c$);let[i,o]=Me(),n=()=>y(x,"$rotateAlpha",i),a=()=>y(w,"$playerSize",i),s={MOBILE:150,DESKTOP:278},d=m(e,"time",3,""),l=m(e,"isMobile",3,!1),c=m(e,"videoEpisodes",19,()=>[]),u=m(e,"progress",3,0),_=m(e,"duration",3,0),f=m(e,"isInteractive",3,!1),$=_e(),x=$.ui.rotateAlpha,w=$.ui.playerSize,S=X(0),I=X(0),P=X(""),M=X(0),L=X(0),T=X(0),B=X(0),K=v(()=>Sc(u(),_(),c())),Q=v(()=>dh(n())),Y=v(()=>ch(n())),ae=v(ge),se=v(()=>(r(Y)?1:-1)*(r(S)/2-r(I)/2)),ee=v(()=>r(se)*-1);He(()=>{(R=>(D(S,de(R.width)),D(I,de(R.height))))(Pe())}),He(()=>{(R=>(D(P,de(R.imgSrc)),D(M,de(R.imgWidth)),D(L,de(R.imgHeight)),D(T,de(R.imgOffsetX)),D(B,de(R.imgOffsetY))))(Ae(u()))});function ge(){let R=l()?s.MOBILE:s.DESKTOP,{isVertical:$e}=J(),Ie=30;return r(K)?.text&&(Ie+=16),($e||r(Q))&&(Ie+=18,Ie+=50),Math.min(Math.max(a().height-Ie,0),R)}function J(){let R=e.previewThumbsData.frameWidth,$e=e.previewThumbsData.frameHeight,Ie=$e>R;return{width:R,height:$e,isHorizontal:!Ie,isVertical:Ie}}function Pe(){let{height:R,isHorizontal:$e,isVertical:Ie,width:Ge}=J();return $e&&(R=R/Ge*r(ae),Ge=r(ae)),Ie&&(Ge=Ge/R*r(ae),R=r(ae)),{width:Ge,height:R}}function Ae(R){let $e;e.previewThumbsData.isUV?$e=Math.floor(_()*R/e.previewThumbsData.frequency):$e=Math.min(e.previewThumbsData.countTotal,Math.max(0,Math.floor(e.previewThumbsData.countTotal*R)));let Ie=Math.floor($e/e.previewThumbsData.countPerImage),Ge=Math.floor($e%e.previewThumbsData.countPerImage/e.previewThumbsData.countPerRow),ze=$e%e.previewThumbsData.countPerRow,ye=Math.floor(e.previewThumbsData.countPerImage/e.previewThumbsData.countPerRow);!e.previewThumbsData.isUV&&Ie===Math.floor(e.previewThumbsData.countTotal/e.previewThumbsData.countPerImage)&&(ye=Math.floor(e.previewThumbsData.countTotal%e.previewThumbsData.countPerImage/e.previewThumbsData.countPerRow),e.previewThumbsData.countTotal%e.previewThumbsData.countPerImage%e.previewThumbsData.countPerRow>0&&ye++);let Ve=e.previewThumbsData.countPerRow;!e.previewThumbsData.isUV&&Ie===Math.floor(e.previewThumbsData.countTotal/e.previewThumbsData.countPerImage)&&e.previewThumbsData.countTotal%e.previewThumbsData.countPerImage>0&&(Ve=Math.min(e.previewThumbsData.countPerRow,e.previewThumbsData.countTotal%e.previewThumbsData.countPerImage));let qe=r(S)*Ve,ot=r(I)*ye,ut=-ze*r(S),pt=-Ge*r(I);return{imgSrc:e.previewThumbsData.links[Ie],imgWidth:qe,imgHeight:ot,imgOffsetX:ut,imgOffsetY:pt}}var oe=d$();let Fe;var j=h(oe);{var N=R=>{var $e=s$();C(()=>tt($e,`width: ${r(S)}px; height: ${r(I)}px; background-image: url(${r(P)}); background-size: ${r(M)}px ${r(L)}px; background-position: ${r(T)}px ${r(B)}px;
228
- transform: rotate(${n()}deg) ${r(Q)?`translate(${r(se)}px, ${r(ee)}px)`:""};
229
- `)),b(R,$e)};V(j,R=>{r(P)&&R(N)})}var Le=E(j,2),be=h(Le);{var ke=R=>{var $e=De(),Ie=le($e);{var Ge=ye=>{var Ve=Kn();C(qe=>ue(Ve,qe),[()=>H("tooltip_episode_unfinished")]),b(ye,Ve)},ze=ye=>{var Ve=Kn();C(()=>ue(Ve,r(K).text||"")),b(ye,Ve)};V(Ie,ye=>{f()&&r(K).completed===!1?ye(Ge):ye(ze,!1)})}b(R,$e)};V(be,R=>{r(K)&&R(ke)})}g(Le);var Be=E(Le,2);{var ce=R=>{var $e=l$(),Ie=h($e,!0);g($e),C(()=>ue(Ie,d())),b(R,$e)};V(Be,R=>{f()||R(ce)})}g(oe),C(R=>{Fe=Z(oe,1,"timeline-preview svelte-1wqg760",null,Fe,R),tt(oe,`width: ${r(Q)?r(I):r(S)}px;`)},[()=>({mobile:l()})]),b(t,oe),U(),o()}var u$=A('<span class="time svelte-1jr6obn"> </span>'),p$=A("<!> <!>",1),f$={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 Xp(t,e){F(e,!0),z(t,f$);let[i,o]=Me(),n=()=>y(ae,"$interactiveEpisodes$",i),a=()=>y(L,"$duration$",i),s=()=>y(M,"$position$",i),d=()=>y(ge,"$isInteractiveExpectation$",i),l=()=>y(ee,"$isInteractiveTime$",i),c=()=>y(T,"$isLive$",i),u=()=>y(K,"$isMobile",i),_=()=>y(B,"$isActiveLive$",i),f=()=>y(P,"$bufferedProgress$",i),$=()=>y(Ae,"$disabledControls$",i),x=m(e,"showTimeline",3,!1),w=m(e,"ref",15,void 0),S=_e(),I=Mt(),P=S.state.bufferedProgress$,M=S.state.positionWithScrubbing$,L=S.state.duration$,T=S.state.isLive$,B=S.state.isActiveLive$,K=S.ui.isMobile,Q=I.features.episodes?S.actions.internal.getVideoEpisodes():void 0,Y=S.actions.internal.getPreviewThumbsData(),ae=S.state.interactiveEpisodes$,se=S.state.isInteractive,ee=S.state.isInteractiveTime$,ge=S.state.isInteractiveExpectation$,J=S.actions.internal.correctSeekTimeToInteractive,Pe=S.callbacks?.onDisabledTimelineClick,Ae=S.ui.controls.disabledControls$,oe=S.ui.t,Fe=I.features.interactiveResponsiveUi,j=v(()=>se?n():Q),N=v(()=>Oo(a())),Le=v(()=>Oo(s())),be=v(()=>s()/a()),ke=v(()=>d()||l()),Be=X(!1),ce=X(""),R=X(0),$e=X(0),Ie=X(0),Ge=v(()=>({containerWidth:r($e),translateXPx:r(R),translateYPx:se&&Y?-36:-16,active:r(Be)&&x()&&!r(ke)&&!Fe,pointer:!I.features.timelinePreview||!Y||c()})),ze=oe("aria_timeline"),ye=v(()=>oe("aria_timeline_value",{position:r(Le),duration:r(N)}));function Ve(ie){return!J||!se?ie:J(ie*a())/a()}function qe(ie){S.actions.internal.startScrubbing(Ve(ie))}function ot(ie){l()||S.actions.internal.progressScrubbing(Ve(ie))}function ut(ie){S.actions.internal.completeScrubbing(Ve(ie)),D(Be,!1)}function pt(ie,We,Ze){vt(ie,We,Ze),D(Be,!0)}function Tt(ie,We,Ze){vt(ie,We,Ze),D(Be,!0)}function nt(){D(Be,!1)}function vt(ie,We,Ze){D(Ie,de(Ve(ie))),D(R,de(We)),Ze&&D($e,de(Ze)),D(ce,de(Lt(ie)))}function Lt(ie){let We=Oo((c()?1-ie:ie)*a());return c()?`-${We}`:We}var Te=p$(),Ue=le(Te);jp(Ue,Gr(()=>r(Ge),{children:(ie,We)=>{var Ze=De(),$t=le(Ze);{var Ke=Ne=>{Zp(Ne,{get time(){return r(ce)},get isMobile(){return u()},get videoEpisodes(){return r(j)},previewThumbsData:Y,get progress(){return r(Ie)},get duration(){return a()},isInteractive:se})},Xe=Ne=>{var st=u$(),Vt=h(st,!0);g(st),C(()=>ue(Vt,r(ce))),b(Ne,st)};V($t,Ne=>{I.features.timelinePreview&&Y&&!c()?Ne(Ke):Ne(Xe,!1)})}b(ie,Ze)},$$slots:{default:!0}}));var Ye=E(Ue,2);let W=v(()=>Math.round(r(be)*100)),ne=v(()=>$().has("TIMELINE"));Qa(Ye,{className:"timeline-slider",get isActiveLive(){return _()},get isMobile(){return u()},ariaLabel:ze,ariaValueMin:0,get ariaValueMax(){return a()},get ariaValueNow(){return r(W)},get ariaValueText(){return r(ye)},get loadedProgress(){return f()},get filledProgress(){return r(be)},get handleProgress(){return r(be)},get videoEpisodes(){return r(j)},onPointerDown:qe,onHandleMove:ot,onPointerMove:Tt,onPointerUp:ut,onPointerEnter:pt,onPointerLeave:nt,onDisabledClick:Pe,isInteractive:se,get disabled(){return r(ne)},get hideHandel(){return l()},get ref(){return w()},set ref(ie){w(ie)}}),b(t,Te),U(),o()}var m$={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){F(e,!0),z(t,m$);let[i,o]=Me(),n=()=>y(l,"$isMobile",i),a=m(e,"position",3,0),s=m(e,"duration",3,0),d=_e(),l=d.ui.isMobile,c=d.ui.t,u=v(()=>Oo(s())),_=v(()=>Oo(a())),f=v(()=>a()/s()),$=v(()=>c("aria_timeline_value",{position:r(_),duration:r(u)})),x=v(()=>Math.round(r(f)*100));Qa(t,{className:"timeline-ads-slider",ariaValueMin:0,get ariaValueMax(){return s()},get ariaValueNow(){return r(x)},get ariaValueText(){return r($)},get filledProgress(){return r(f)},hideHandel:!0,get squareBorders(){return n()}}),U(),o()}var v$=A("<div><!></div>"),g$=A("<div></div>"),h$={hash:"svelte-1h5wsmk",code:".timeline.svelte-1h5wsmk {position:relative;pointer-events:all;display:flex;align-items:center;bottom:0;width:100%;min-width:86px;padding:3px 10px 4px;box-sizing:border-box;}.timeline.mobile.svelte-1h5wsmk {height:16px;padding:6px 12px 7px;margin-top:6px;}.withoutPadding.svelte-1h5wsmk {padding:0;}.timeline-stub.svelte-1h5wsmk {width:100%;min-width:20px;}.timeline-stub.mobile.svelte-1h5wsmk {height:8px;}"};function Zr(t,e){F(e,!0),z(t,h$);let[i,o]=Me(),n=()=>y($,"$isLive$",i),a=()=>y(S,"$isMobile",i),s=()=>y(w,"$adPosition",i),d=()=>y(x,"$adDuration",i),l=m(e,"isAds",3,!1),c=m(e,"isHidden",3,!1),u=m(e,"needPadding",3,!0),_=m(e,"ref",15,void 0),f=_e(),$=f.state.isLive$,x=f.ads.duration,w=f.ads.position,S=f.ui.isMobile,I=v(()=>!c()&&(!n()||n()&&e.canRewindLive&&e.isRewindableLive||l()));var P=De(),M=le(P);{var L=B=>{var K=v$();let Q;var Y=h(K);{var ae=ee=>{Ul(ee,{get position(){return s()},get duration(){return d()}})},se=ee=>{Xp(ee,{get showTimeline(){return r(I)},get ref(){return _()},set ref(ge){_(ge)}})};V(Y,ee=>{l()?ee(ae):ee(se,!1)})}g(K),C(ee=>Q=Z(K,1,"timeline svelte-1h5wsmk",null,Q,ee),[()=>({withoutPadding:!u(),mobile:a()})]),b(B,K)},T=B=>{var K=g$();let Q;C(Y=>Q=Z(K,1,"timeline-stub svelte-1h5wsmk",null,Q,Y),[()=>({mobile:a()})]),b(B,K)};V(M,B=>{r(I)?B(L):B(T,!1)})}b(t,P),U(),o()}import{noop as $$}from"@vkontakte/videoplayer-shared/es2024";var _$=ve('<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 Jp(t,e){let i=Ce(e,["$$slots","$$events","$$legacy","children"]);var o=_$();let n;var a=h(o);pe(a,()=>e.children??te),me(3),g(o),C(()=>n=xe(o,n,{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none","aria-hidden":"true","data-testid":"episodes-icon",style:"flex-shrink:0",role:"img",...i})),b(t,o)}var b$=ve('<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 ef(t,e){let i=Ce(e,["$$slots","$$events","$$legacy","children"]);var o=b$();let n;var a=h(o);pe(a,()=>e.children??te),me(),g(o),C(()=>n=xe(o,n,{xmlns:"http://www.w3.org/2000/svg",width:"12",height:"13",fill:"none","aria-hidden":"true","data-testid":"chevron-light-icon",role:"img",...i})),b(t,o)}var y$=A('<span class="text mobile svelte-1yhs2ga"> </span> <div class="chevron-episodes svelte-1yhs2ga"><!></div>',1),x$=A('<span class="text svelte-1yhs2ga"> </span>'),w$=A('<span class="text count svelte-1yhs2ga"> </span>'),S$=A("<!> <!>",1),C$={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 zl(t,e){F(e,!0),z(t,C$);let[i,o]=Me(),n=()=>y(x,"$currentGridType$",i),a=()=>y(w,"$openedByKeyboard$",i),s=()=>y(S,"$panelOpened$",i),d=()=>y(I,"$isMobile",i),l=m(e,"position",3,0),c=m(e,"duration",3,0),u=m(e,"timeCodes",19,()=>[]),_=_e(),f=_.callbacks?.onEpisodeChanged??$$,$=!!_.callbacks?.onEpisodeClicked,x=_.ui.currentGridType$,w=_.ui.episodes.openedByKeyboard$,S=_.ui.episodes.panelOpened$,I=_.ui.isMobile,P=_.ui.t,M=X(void 0),L=J=>{if(!!_.callbacks?.onEpisodeClicked){let Ae=pa(J);w.set(Ae),S.set(!0),_.callbacks?.onEpisodeClicked?.(Ae)}},T=X(null),B=v(()=>l()/c());He(()=>{let J=Sc(r(B),c(),u());J?r(T)?.time!==J.time&&(f(J),D(T,de(J))):D(T,null)});let K=v(()=>r(T)?.text||""),Q=v(()=>Ci(n(),"xl")?"FULL":Ci(n(),"m")&&ah(n(),"xl")?"COUNT":"SHORT"),Y=v(()=>`${P("tooltip_episodes")}: ${r(K)}`),ae=async(J,Pe,Ae)=>{await Ji(),J?.getAttribute("aria-expanded")==="false"&&Pe&&!Ae&&ft(()=>{w.set(!1),J.focus()})};He(()=>{ae(r(M),a(),s())});var se=De(),ee=le(se);{var ge=J=>{let Pe=v(()=>d()?"px-0":"");kt(J,{get className(){return`w-max btn-full-opacity btn-jc-l ${r(Pe)??""}`},testId:"btn-episodes",click:L,disabled:!$,get ariaExpanded(){return s()},get ariaLabel(){return r(Y)},get ref(){return r(M)},set ref(Ae){D(M,de(Ae))},children:(Ae,oe)=>{var Fe=De(),j=le(Fe);{var N=be=>{var ke=y$(),Be=le(ke),ce=h(Be,!0);g(Be);var R=E(Be,2),$e=h(R);ef($e,{}),g(R),C(()=>ue(ce,r(K))),b(be,ke)},Le=be=>{var ke=S$(),Be=le(ke);Jp(Be,{});var ce=E(Be,2);{var R=Ie=>{var Ge=x$(),ze=h(Ge,!0);g(Ge),C(()=>ue(ze,r(K))),b(Ie,Ge)},$e=(Ie,Ge)=>{{var ze=ye=>{var Ve=w$(),qe=h(Ve,!0);g(Ve),C(()=>ue(qe,u().length)),b(ye,Ve)};V(Ie,ye=>{r(Q)==="COUNT"&&ye(ze)},Ge)}};V(ce,Ie=>{r(Q)==="FULL"?Ie(R):Ie($e,!1)})}b(be,ke)};V(j,be=>{d()?be(N):be(Le,!1)})}b(Ae,Fe)},$$slots:{default:!0}})};V(ee,J=>{r(T)&&J(ge)})}b(t,se),U(),o()}import{debounceFn as Cy}from"@vkontakte/videoplayer-shared/es2024";import{ChromecastState as L$,PlaybackState as ql,Player as V$,PredefinedQualityLimits as Dr,VideoFormat as Wl,clientChecker as R$}from"@vkontakte/videoplayer-core/es2024";import{assertNonNullable as In,getHighestQuality as N$,InterfaceLanguage as D$,isInvariantQuality as B$,isNonNullable as O$,loadVKLangPack as H$,Logger as F$,map as _h,merge as U$,Observable as z$,Subject as Ac,Subscription as sf,Tracer as q$,ValueSubject as W$,VideoQuality as K$,devNull as Q$,now as G$}from"@vkontakte/videoplayer-shared/es2024";import{SeekAction as Xr}from"@vkontakte/videoplayer-statistics/es2024";import{detectEmbed as k$,devNull as Ft,now as Ut}from"@vkontakte/videoplayer-shared/es2024";import{addScript as T$,Subject as _o,clearVideoElement as I$}from"@vkontakte/videoplayer-shared/es2024";var uh=(t,e)=>t<400||e<225?5:t<640||e<360?0:t<960||e<540?1:t<1280||e<720?2:3;var E$="//ad.mail.ru/static/admanhtml/rbadman-html5.min.js",Cc=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 _o,loadStarted$:new _o,loadEnded$:new _o,loadError$:new _o,ready$:new _o,slotRequested$:new _o,started$:new _o,timeRemained$:new _o,paused$:new _o,resumed$:new _o,ended$:new _o,empty$:new _o,skipped$:new _o,clicked$:new _o,closed$:new _o,error$:new _o};this.loadAdman=e=>(Ft.push("ui",{key:"videoplayer_embed",strings:["new","adman_load_start",this.useAdmanFromNPM?"npm":"http"],numbers:[Ut()]}),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?(Ft.push("ui",{key:"videoplayer_embed",strings:["new","adman_async_init_done","http"],numbers:[Ut()]}),i(),this.events.loadEnded$.next()):(Ft.push("ui",{key:"videoplayer_embed",strings:["new","adman_init_timed_out","http"],numbers:[Ut()]}),o())};T$(E$,e,this.loadTimeout).then(()=>{Ft.push("ui",{key:"videoplayer_embed",strings:["new","adman_script_loaded","http"],numbers:[Ut()]}),window.AdmanHTML?(Ft.push("ui",{key:"videoplayer_embed",strings:["new","adman_already_inited","http"],numbers:[Ut()]}),i(),this.events.loadEnded$.next()):(Ft.push("ui",{key:"videoplayer_embed",strings:["new","adman_wait_async_init","http"],numbers:[Ut()]}),window.admanAsyncInit=a,n=window.setTimeout(a,this.initTimeout))}).catch(s=>{Ft.push("ui",{key:"videoplayer_embed",strings:["new","adman_script_load_error","http",String(s)],numbers:[Ut()]}),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?(Ft.push("ui",{key:"videoplayer_embed",strings:["new","adman_init_done","npm"],numbers:[Ut()]}),i(),this.events.loadEnded$.next()):(Ft.push("ui",{key:"videoplayer_embed",strings:["new","adman_init_timed_out","npm"],numbers:[Ut()]}),o())},s=()=>{d=!0,o()},d=!1,l=window.setTimeout(()=>{Ft.push("ui",{key:"videoplayer_embed",strings:["new","adman_load_timed_out","npm"],numbers:[Ut()]}),s()},this.loadTimeout);e.addEventListener("abort",s),e.aborted&&(Ft.push("ui",{key:"videoplayer_embed",strings:["new","adman_load_aborted","npm"],numbers:[Ut()]}),s()),window.AdmanHTML=window.AdmanHTML||null,import("@adtech/rbadman/out/rbadman-html5.min.js").then(()=>{Ft.push("ui",{key:"videoplayer_embed",strings:["new","adman_chunk_imorted","npm","failed: "+String(d)],numbers:[Ut()]}),!d&&(window.AdmanHTML?(Ft.push("ui",{key:"videoplayer_embed",strings:["new","adman_already_inited","npm"],numbers:[Ut()]}),i(),this.events.loadEnded$.next()):(Ft.push("ui",{key:"videoplayer_embed",strings:["new","adman_wait_async_init","npm"],numbers:[Ut()]}),window.admanAsyncInit=a,n=window.setTimeout(a,this.initTimeout)))},s).finally(()=>{clearTimeout(n),clearTimeout(l),e.removeEventListener("abort",s)})});this.onAdsReady=()=>{Ft.push("ui",{key:"videoplayer_embed",strings:["new","adman_ads_ready"],numbers:[Ut()]}),this.log({message:"ads ready"}),this.events.ready$.next(),this.startPreroll()};this.onAdStarted=(e,i)=>{Ft.push("ui",{key:"videoplayer_embed",strings:["new","adman_ad_started",e,"muted: "+i.muted],numbers:[Ut(),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"}),he(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=()=>{Ft.push("ui",{key:"videoplayer_embed",strings:["new","adman_ad_pased",this.currentAdSection??""],numbers:[Ut()]}),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=()=>{Ft.push("ui",{key:"videoplayer_embed",strings:["new","adman_ad_played",this.currentAdSection??""],numbers:[Ut()]}),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(Ft.push("ui",{key:"videoplayer_embed",strings:["new","adman_ad_midroll_pioint"],numbers:[Ut()]}),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=()=>{Ft.push("ui",{key:"videoplayer_embed",strings:["new","adman_ad_skipped",this.currentAdSection??""],numbers:[Ut()]}),this.log({message:"ad skipped"}),this.stopWatchDog()};this.onAdClosed=()=>{Ft.push("ui",{key:"videoplayer_embed",strings:["new","adman_ad_closed",this.currentAdSection??""],numbers:[Ut()]}),this.log({message:"ad closed"}),this.currentAdSection&&this.events.closed$.next(this.currentAdSection),this.stopWatchDog(),this.switchToVideo()};this.onAdCompleted=()=>{Ft.push("ui",{key:"videoplayer_embed",strings:["new","adman_ad_completed",this.currentAdSection??""],numbers:[Ut()]}),this.log({message:"ad completed"}),this.currentAdSection?this.events.ended$.next(this.currentAdSection):this.events.empty$.next(),this.switchToVideo(),this.stopWatchDog()};this.onAdClicked=()=>{Ft.push("ui",{key:"videoplayer_embed",strings:["new","adman_ad_clicked",this.currentAdSection??""],numbers:[Ut()]}),this.log({message:"ad clicked"}),this.videoElement?.pause(),this.currentAdSection&&this.events.clicked$.next(this.currentAdSection),this.stopWatchDog()};this.onAdError=(e="ad error")=>{Ft.push("ui",{key:"videoplayer_embed",strings:["new","adman_ad_error",e],numbers:[Ut()]}),this.log({message:e}),this.events.error$.next(e),this.switchToVideo(!0),this.stopWatchDog()};this.log=e.createComponentLog("AdmanWrapper"),Ft.push("ui",{key:"videoplayer_embed",strings:["new","adman_created"],numbers:[Ut()]}),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(Ft.push("ui",{key:"videoplayer_embed",strings:["new","adman_init","already inited: "+!!this.adman],numbers:[Ut(),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,$=this.playerState&&he(this.playerState.vsid);$&&(this.isVsidOriginal?f=$:f=parseInt($,36));let{isEmbed:x,immediateOrigin:w}=k$(),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:uh(i,o),puid11:n?0:1};_||delete I.preview;let P={slot:l,wrapper:s,videoEl:d,videoQuality:o,params:I,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(P),this.adman=M,this.videoElement=d,this.events.slotRequested$.next(),this.log({message:`adman init, config: ${JSON.stringify(P)}`})}catch(M){Ft.push("ui",{key:"videoplayer_embed",strings:["new","adman_init_threw",String(M)],numbers:[Ut()]}),this.onAdError("could not init adman")}}switchToVideo(e=!1){if(Ft.push("ui",{key:"videoplayer_embed",strings:["new","adman_switch_to_video",this.currentAdSection??"","force: "+e],numbers:[Ut()]}),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(Ft.push("ui",{key:"videoplayer_embed",strings:["new","adman_toggle_play",this.currentAdSection??""],numbers:[Ut()]}),this.adsState){this.log({message:"toggle play"});let e=he(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(Ft.push("ui",{key:"videoplayer_embed",strings:["new","adman_start_preroll"],numbers:[Ut()]}),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(Ft.push("ui",{key:"videoplayer_embed",strings:["new","adman_start_postroll",this.currentAdSection??""],numbers:[Ut()]}),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(Ft.push("ui",{key:"videoplayer_embed",strings:["new","adman_pplay",this.currentAdSection??""],numbers:[Ut()]}),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(Ft.push("ui",{key:"videoplayer_embed",strings:["new","adman_pause",this.currentAdSection??""],numbers:[Ut()]}),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(Ft.push("ui",{key:"videoplayer_embed",strings:["new","adman_skip",this.currentAdSection??""],numbers:[Ut()]}),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(){Ft.push("ui",{key:"videoplayer_embed",strings:["new","adman_destroy"],numbers:[Ut()]}),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&&I$(this.videoElement),this.isDestroyed=!0}};var ph=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 tf=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 kc,{startTime:u,endTime:_}=c.parse(l);s.startTime=u,s.endTime=_}else if(l.trim()!==""){let c=new of,{texts:u}=c.parse(l);s.texts=[...s.texts,...u]}(s.startTime||s.endTime)&&s.texts.length>0&&o.push(s)}return o}},kc=class{constructor(){this.timeRegExp=/(\d{2,})?:?(\d{2}):(\d{2}).(\d{2,3})/;this.timingRegExp=new RegExp(`${this.timeRegExp.source}( ?--> ?)${this.timeRegExp.source}`)}parse(e){let i={startTime:0,endTime:0},o=this.timingRegExp.exec(e);return o&&(i.startTime=this.calcTime(o[1],o[2],o[3],o[4]),i.endTime=this.calcTime(o[6],o[7],o[8],o[9])),i}parseTime(e){let i=this.timeRegExp.exec(e);return i?this.calcTime(i[1],i[2],i[3],i[4]):0}isTime(e){return this.timeRegExp.test(e)}calcTime(e="0",i="0",o="0",n="0"){let a=Number(e)*60*60,s=Number(i)*60,d=Number(o),l=+`0.${n}`;return a+s+d+l}},of=class{constructor(){this.letterTagRegExp=/<[a-z]*>|<\/[a-z]*>/}parse(e){let i={texts:[]},n=e.replace(new RegExp(this.letterTagRegExp,"g"),"").split({[Symbol.split](s){let d=0,l=[];for(;d<s.length;){let 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 kc;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}},fh=tf;import{isNonNullable as nf}from"@vkontakte/videoplayer-shared/es2024";var Ga,Yn,rf=0,af=!1,mh="",vh=(t,e=0,i=0)=>t<e&&t<i,Tc=(t,e=0,i=0)=>t>=e&&t<=i,P$=(t,e=0,i=0)=>t>e&&t>i,gh=(t,e,i,o=!1)=>{let n=i.find(({id:d})=>d===e.value)?.subtitles;if(o)return n?.find(({startTime:l,endTime:c})=>Tc(t,l,c));let a=t>=rf,s=t<rf;if(rf=t,s&&(af=!1),nf(Ga)&&Tc(t,Ga.startTime,Ga.endTime)&&mh===e.value)return Ga;if(!nf(Yn)&&n?.length&&!af){Yn=n.find(({startTime:l,endTime:c})=>Tc(t,l,c)||a&&vh(t,l,c)),Ga=void 0,!nf(Yn)&&n[n.length-1].endTime<t&&(af=!0);return}else{if(Tc(t,Yn?.startTime,Yn?.endTime))return Ga=Yn,Yn=void 0,mh=e.value,Ga;(a&&P$(t,Yn?.startTime,Yn?.endTime)||s&&vh(t,Yn?.startTime,Yn?.endTime))&&(Yn=void 0)}};var hh={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"},A$={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"},Ic=t=>hh[t]??hh[A$[t]]??void 0;import{Subscription as M$}from"@vkontakte/videoplayer-shared/es2024";import"@vkontakte/videoplayer-statistics/es2024";var Ec=class{constructor(e,i=new M$){this.oneStat=e;this.statSubscription=i}destroy(){this.oneStat.destroy(),this.statSubscription.unsubscribe()}};var Pc=(i=>(i.DESKTOP_CONTROL_PANEL_LEFT="desktop-control-panel-left",i.DESKTOP_CONTROL_PANEL_RIGHT="desktop-control-panel-right",i))(Pc||{});var Nr=t=>t??0,Ns=(t,e)=>{let i=t?.getBoundingClientRect?.(),o=e?.getBoundingClientRect?.();return{top:Math.round(Nr(i?.top)-Nr(o?.top)),left:Math.round(Nr(i?.left)-Nr(o?.left)),bottom:Math.round(Nr(i?.bottom)-Nr(o?.top)),right:Math.round(Nr(i?.right)-Nr(o?.left))}},Ds=t=>{let e=t?.getBoundingClientRect?.();return{width:Nr(e?.width),height:Nr(e?.height)}};var bh=({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:$,player:x,disabledControls:w,isInteractive:S,interactiveRanges$:I,isInteractiveTime$:P,replayInteractive:M,stopPlayer:L,hasInteractiveBranches:T,playPrevChapterDisabledTooltip:B,additionalButtons:K,additionalSettingsMenuItems:Q,additionalContextMenuItems:Y,playPrevVideo:ae,playNextVideo:se,looped:ee=!1,statistics:ge,saveRate:J,internalsExposure:Pe})=>{let Ae={...$,configName:[...$.configName??[],"ui"],isAudioDisabled:s,live:{...$.live??{},isLiveCatchUpMode:!!n}},oe=f,Fe=q$.createRootTracer(oe.features.saveTraceInfoToFile),j=Fe.createComponentTracer("Store"),N=x||new V$(Ae,Fe);Pe?.expose({corePlayer:N});let Le=new F$,be=new Cc(Le,{loadTimeout:oe.ads.loadTimeout,initTimeout:oe.ads.initTimeout,runtimeTimeout:oe.ads.runtimeTimeout,useAdmanFromNPM:oe.ads.useAdmanFromNPM,volumeMultiplier:oe.ads.volumeMultiplier,isVsidOriginal:oe.ads.isVsidOriginal}),ke=Da.getInstance(),Be=c?.pictureInPictureApi,ce=c?.annotationsApi,R=Le.createComponentLog("Store"),$e,Ie,Ge={},ze=new ic,ye=ge?zt(ge.oneStat.vsid$):Qn(void 0),Ve=re(da()),qe=re(!1),ot=Be?.info.isActive$??new W$(!1),ut=re(0),pt=re([]),Tt=U$(N.events.fatalError$,N.events.managedError$).subscribe(p=>pt.update(k=>[...k,p])),nt=Qn(!1,p=>{let k=N.events.fatalError$.subscribe(()=>p(!0));return()=>k.unsubscribe()}),vt=async p=>{let k=Object.values(D$).includes(p);if(oe.downloadVKLanguages&&(k&&oe.updateBuiltinLanguages||!pp(p))){let we;try{we=await H$(p,ig,og)}catch(rt){ge?.oneStat?.logError({errorType:"VKLangPack",fatal:!1}),ke?.report(rt,{errorType:"VKLangPack",fatal:!1})}we&&(up({language:p,pack:we,fallback:oe.defaultLanguage}),Lt.set(p))}pp(p)&&Lt.set(p)},Lt=re(t),Te=re(e);vt(t);let Ue=(p,k)=>{let O=he(Lt);return fp(O,p,k,oe.defaultLanguage)},Ye=re("thumb"),W=(()=>{let p=ni([nt,Ye],([k,O])=>k?"crashed":O);return{...p,is:k=>he(p)===k}})(),ne=(()=>{let p=re(new Set(w));return{...p,add:k=>{p.update(O=>new Set([...O].concat(k)))},remove:k=>{p.update(O=>{let we=[...O];return new Set(Array.isArray(k)?we.filter(rt=>!k.includes(rt)):we.filter(rt=>rt!==k))})},includes:k=>{let O=he(p);return Array.isArray(k)?k.every(we=>O.has(we)):O.has(k)}}})();j.log("create store"),R({message:"create store"});let ie=p=>{let k=p.container;k.append(N.experimental.element$.getValue()),st=new MutationObserver(O=>{let{removedNodes:we}=O[0];we.length&&k.append(N.experimental.element$.getValue())}),st.observe(k,{childList:!0})},We=p=>{R({message:`init video, config: ${JSON.stringify(p)}`}),S?ie(p):(Q$.push("ui",{key:"videoplayer_embed",strings:["new","core_init_video"],numbers:[G$()]}),N.initVideo(p)),j.log("init video",{isInteractive:S}),p.subtitles&&N.setExternalTextTracks(p.subtitles),$e=p},Ze=new Ac,$t=p=>Ze.next(p),Ke=new Ac,Xe=new Ac,Ne=new Ac,st=null,Vt={actionRewind$:Ke,actionSeek$:Xe,inPiP$:ot,inFullscreen$:new z$(p=>Ve.subscribe(k=>p.next(k))),actionSetSubtitle$:Ne,nextMovie$:Ze};if(ge){let{oneStat:p,statSubscription:k}=ge;S||k.add(p.attachTo(N)),k.add(p.attachToUi(Vt)),k.add(p.attachToAds(be.events)),p.authorize(a).catch(O=>{R({message:`onestat auth error ${String(O)}`})})}if(ke){let p=new sf,k=(O,we)=>p.add(O.subscribe(we));if(k(N.events.managedError$,O=>{ke.logIError(O)}),k(N.events.fatalError$,O=>{ke.logIError(O,!0)}),ge){let{oneStat:O}=ge;k(O.experimental.error$,we=>{ke.logIError(we)})}ke.sentrySubscription.add(p)}let Zt=()=>{R$.device.isIOS&&Ie&&Hg(Ie).catch(p=>{R({message:`exitIosSafariFullscreen failed: ${p}`})})},mi=new sf().add(N.experimental.element$.subscribe(p=>{p&&(Ie=p,p.classList.add("player-media"),Oa(Be)&&(Be.updateVideoElement(),Be.registryEventHandlers()),S&&p.setAttribute("pip","false"))})).add(N.events.ended$.subscribe(()=>{Zt(),l?.onEnded?.()})).add(N.events.looped$.subscribe(()=>{l?.onLooped?.()})).add(N.events.started$.subscribe(async()=>{Oa(Be)&&await Be?.revealPictureInPicture();let p=N.info.muted$.getValue();l?.onStarted?.(),Ge.onStarted?.(p)})).add(N.events.willSeek$.subscribe(({from:p,to:k})=>{l?.onSeek?.(p,k)})).add(N.events.autoplaySoundProhibited$.subscribe(()=>{l?.onAutoplaySoundProhibited?.()})).add(N.info.position$.subscribe(p=>{let k=N.info.duration$.getValue();isFinite(k)&&k>0&&(l?.onTimeupdate?.(k,p),be.setPosition(p,k))})).add(N.events.fatalError$.subscribe(p=>{l?.onCrashed?.(p?`${p.id}: ${p.message}`:void 0)})).add(N.events.fetcherRecoverableError$.subscribe(p=>{l?.onRecoverableError?.(p?`${p.id}: ${p.message}`:void 0)})).add(N.events.loadedMetadata$.subscribe(()=>{dt.state.loadedMetadata$.set(!0)})).add(N.info.is3DVideo$.subscribe(p=>{dt.ui.is3DVideo.set(p)})).add(N.info.isEnded$.subscribe(p=>{S&&(p?(P?.getValue()&&ne.add($l),ne.add("PLAY_BUTTON")):ne.remove("PLAY_BUTTON"))})).add(N.info.liveTime$.subscribe(p=>{l?.onLiveTime?.(p)})).add(N.info.isStalled$.subscribe(p=>{l?.onStalledChanged?.(p)})).add(N.info.isLiveEnded$.subscribe(p=>p&&l?.onLiveEnded?.())).add(be.events.loadStarted$.subscribe(()=>l?.adsInfo?.onLoadStarted?.())).add(be.events.loadEnded$.subscribe(()=>l?.adsInfo?.onLoadEnded?.())).add(be.events.loadError$.subscribe(()=>l?.adsInfo?.onLoadError?.())).add(be.events.init$.subscribe(()=>l?.adsInfo?.onInit?.())).add(be.events.ready$.subscribe(()=>l?.adsInfo?.onReady?.())).add(be.events.started$.subscribe(p=>l?.adsInfo?.onStarted?.(p))).add(be.events.timeRemained$.subscribe(p=>l?.adsInfo?.onTimeRemained?.(p))).add(be.events.ended$.subscribe(p=>l?.adsInfo?.onCompleted?.(p))).add(be.events.empty$.subscribe(()=>l?.adsInfo?.onEmpty?.())).add(be.events.clicked$.subscribe(p=>l?.adsInfo?.onClicked?.(p))).add(be.events.closed$.subscribe(p=>l?.adsInfo?.onClosed?.(p))).add(be.events.error$.subscribe(p=>l?.adsInfo?.onError?.(p))).add(be.events.paused$.subscribe(()=>l?.adsInfo?.onPaused?.())).add(be.events.resumed$.subscribe(()=>l?.adsInfo?.onResumed?.())),ri=new sf,oo=()=>{let{debugLog:p}=oe,k,O="#9df7b7",we="#efd169";if(p&&p!==!0){let{colors:bt}=p;k=p.tag,O=bt?.[0]??O,we=bt?.[1]??bt?.[0]??we}let rt=k?`: ${k}`:"";ri.add(N.events.log$.subscribe(bt=>{console.debug(`%c sdk${rt} `,`background:${O};`,`sdk component: ${bt.component}`,bt.message)})).add(Le.log$.subscribe(bt=>{console.debug(`%c ui${rt} `,`background:${we};`,`ui component: ${bt.component}.`,bt.message)}))},Ho=()=>{ri.unsubscribe()},an=(p,k)=>{j.log("start camera manual rotation",{mx:p,my:k}),N.startCameraManualRotation(p,k)},Ui=(p=!1)=>{j.log("stop camera manual rotation",{immediate:p}),N.stopCameraManualRotation(p)},$o=(p,k,O)=>{j.log("move camera focus px",{xpx:p,ypx:k,dt:O}),N.moveCameraFocusPX(p,k,O)},Fo=()=>{N.holdCamera()},yo=()=>{N.releaseCamera()},uo=Qn(N.info.position$.getValue(),p=>{let k,O,we=()=>{let rt=N.info.playbackState$.getValue(),bt=N.info.isLive$.getValue(),Bt=N.info.duration$.getValue(),jt=N.info.position$.getValue();if(rt&&[ql.PLAYING,ql.PAUSED].includes(rt)){let go=bt?jt-Bt:N.getExactTime();go!==O&&p(go),O=go}k=requestAnimationFrame(we)};return we(),()=>cancelAnimationFrame(k)}),Wt=zt(N.info.playbackState$),G=zt(N.info.currentBuffer$),Kt=zt(N.info.isEnded$),Xt=zt(N.info.isLive$),zi=oe.features.playbackRate?zt(N.info.canChangePlaybackSpeed$):Qn(!1),Gt=zt(N.info.liveBufferTime$),Jt=zt(N.info.volume$),qi=zt(N.info.muted$),no=oc(N.info.predefinedQualityLimitType$.pipe(_h(p=>p===Dr.TRAFFIC_SAVING)),N.info.predefinedQualityLimitType$.getValue()===Dr.TRAFFIC_SAVING),xo=oc(N.info.predefinedQualityLimitType$.pipe(_h(p=>p===Dr.HIGH_QUALITY)),N.info.predefinedQualityLimitType$.getValue()===Dr.HIGH_QUALITY),Nt=zt(N.info.autoQualityLimitingAvailable$),po=zt(N.info.availableQualities$),yt=zt(N.info.availableQualitiesFps$),Ot=zt(N.info.chromecastState$),$i=zt(N.info.chromecastDeviceName$),wo=zt(N.info.currentFormat$),Pn=zt(N.info.throughputEstimation$),ro=zt(N.info.videoBitrate$),ao=zt(N.info.intrinsicVideoSize$),Yt=zt(N.info.duration$),mt=zt(N.info.isAudioAvailable$),li=null,vi=N.info.isBuffering$,yi=Qn(vi.getValue(),p=>{let k=vi.subscribe(O=>{O&&li===null?li=window.setTimeout(()=>{p(vi.getValue()),li=null},oe.loaderDelay):p(O)});return()=>{k.unsubscribe(),li&&clearTimeout(li)}}),sn=()=>{li&&clearTimeout(li),li=null},di=ni([Yt,Xt],([p,k])=>k?-p:p),Ai=ni([Wt],([p])=>p===ql.PLAYING),Uo=zt(N.info.atLiveEdge$),ln=zt(N.info.atLiveDurationEdge$),gi=zt(N.info.position$),An=ni([gi,Yt],([p,k])=>isFinite(p)&&isFinite(k)&&!!k),zo=ni([Ot],([p])=>p===L$.CONNECTED),so=zt(N.info.availableVideoStreams$),dn=oe.features.audioLanguages?zt(N.info.availableAudioStreams$):Qn([]),_r=zt(N.info.currentVideoStream$),jn=zt(N.info.currentAudioStream$),Mn=p=>{p.language&&cp(p.language),N.setVideoStream(p)},cn=p=>{p.language&&cp(p.language),N.setAudioStream(p)},qo=p=>{let k;if(p.length===1&&(k=p.at(0)),k??=p.find(we=>"isDefault"in we&&we.isDefault),k)return k;let O=kg();return O&&(k=p.find(({language:we})=>O===we)),k??=p.at(0),k},un=!1;mi.add(N.info.availableAudioStreams$.subscribe(p=>{if(!un&&p.length){let k=qo(p);k&&(N.setAudioStream(k),un=!0)}}));let Wi=!1;mi.add(N.info.availableVideoStreams$.subscribe(p=>{if(!Wi&&p.length){let k=qo(p);k&&(N.setVideoStream(k),Wi=!0)}}));let et=re(void 0),Wo=zt(N.info.isAutoQualityEnabled$,p=>p&&et.set(void 0)),Ln=zt(N.info.currentQuality$,()=>et.set(void 0)),Vn=ni([et,Ln],([p,k])=>p??k),pn=ni(wo,p=>p!==Wl.MPEG),Ko=ni([po,yt,Wo,Vn,pn],([p,k,O,we,rt])=>{let bt=[];rt&&bt.push({value:"auto",displayValue:Ue("auto_quality_option"),selected:O});let Bt=p.filter(jt=>!B$(jt));for(let jt of Bt){let go=k[jt];bt.push({value:jt,displayValue:`${jt}${go?ph(go):""}`,selected:O?!1:jt===we})}return bt}),Qo=zt(N.info.currentPlaybackRate$),So=ni([Qo,Uo,ln],([p,k,O])=>{let we=O||S?1:oe.controls.playbackRateMin,rt=k?1:oe.controls.playbackRateMax,bt=oe.controls.playbackRateStep,Bt=[];for(let jt=we;jt<=rt;jt+=bt)Bt.push({value:jt,displayValue:jt===1?Ue("playback_rate_1"):Ue("playback_rate",{multiplier:jt.toString(10)}),selected:p===jt});return Bt}),ki={displayValue:Ue("subtitles_off"),value:"off"},Ti=re({...ki}),Rn=oe.features.subtitles?zt(N.info.availableTextTracks$):Qn([]),fn=hg(),Nn=ni([Rn,Ti],([p,k],O)=>{let we=[],rt=p.find(({id:bt})=>bt===k.value);if(rt?.url){let[,bt]=fn.find(rt.url)??[];if(bt){O(bt);return}ze.download(rt.url).then(Bt=>{if(!Bt||ze.isDestroyed())return;let jt=new fh,go=rt.language;if(go){let ou=!!rt.isAuto,n1=jt.parse(Bt,go);we.push({lang:go,subtitles:n1,isAuto:ou,id:rt.id})}fn.add(rt.url,we),he(Ti).value===k.value&&O(we)}).catch(Bt=>{ge?.oneStat?.logError({errorType:"Subtitles download",fatal:!1}),ke?.report(Bt,{errorType:"Subtitles download",fatal:!1})})}O(we)}),Zn=ni([Qo,Ai,Ti],([p,k,O],we)=>{let Bt;if(N.info.isLive$.getValue()&&k&&O.value!==ki.value){let go=()=>{let ou=1e3/(3*p);Bt=setTimeout(go,ou),we(Date.now())};return go(),()=>clearTimeout(Bt)}}),Mi=ni([Rn,Ti],([p,k])=>{if(!p.length)return[];let O=[];for(let{language:we,isAuto:rt,id:bt}of p){let Bt=we&&Ic(we);we&&Bt&&O.push({displayValue:rt?Ue("subtitles_auto",{language:Bt}):Bt,value:bt,selected:k?.value===bt,isAuto:rt})}return O.length?(O.unshift({...ki,selected:k?.value===ki.value}),O):[]}),Li={available:[],prev:[]},mn=()=>N.experimental.getCurrentTime$.getValue()?.()??Ie?.currentTime??0,vn=ni([uo,Ti,Nn,Zn],([p,k,O,we])=>{let rt=N.info.isLive$.getValue();if(rt&&Li.prev!==O){let bt=O.find(({id:jt})=>jt===k.value),Bt=Li.prev.find(({id:jt})=>jt===k.value);if(bt){let jt={...bt,subtitles:[...Bt?.subtitles??[],...bt.subtitles]};Li.available=[jt],Li.prev=O}}if(k&&k.value!==ki.value){let bt=rt?mn():p,Bt=rt?Li.available:O;return gh(bt,k,Bt,rt)}}),Ki=ni([vn],([p])=>p?.texts?p.texts:[]),Vi=re(!0),gn=ni([G,di,gi,Gt],([p,k,O,we])=>{let rt=p?.end??0;if(!we)return rt/k;let Bt=-O+we-k;return(rt-Bt)/k}),fo=zt(N.info.availableSources$),br=ni([fo],([p])=>Object.keys(p?.[Wl.MPEG]||{}).length>0),Dn=()=>{let p=Object.keys(N.info.availableSources$?.getValue()?.[Wl.MPEG]||{}),k=N$(p)||K$.Q_144P;return $e.sources[Wl.MPEG]?.[k]},Xn=()=>{let p=Dn();if(p)j.log("download video",{url:p}),mg(p,$e?.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=N.info.muted$.getValue();N.info.volume$.getValue()===0&&!p?Co(Hn()):qt(!p)},_n=()=>{if(dt.ui.settingsMenu.visible$.set(!1),!he(dt.ui.settingsSubMenu.visible$)){let p=he(dt.ui.settingsMenu.ref$);if(l?.uiInfo?.onSettingsMenu&&p){let O=Ds(p),we={top:0,left:0,bottom:0,right:0};l.uiInfo.onSettingsMenu({visible:!1,size:O,position:we,name:"settings"})}}j.log("close settings menu")},$r=async(p,k=()=>Promise.resolve())=>{dt.ui.settingsMenu.openedByBtnKeyboard$.set(!!p),dt.ui.settingsMenu.visible$.set(!0),await k();let O=he(dt.ui.settingsMenu.ref$),we=ns();if(l?.uiInfo?.onSettingsMenu&&O&&we){let bt=Ds(O),Bt=Ns(O,we);l.uiInfo.onSettingsMenu({visible:!0,size:bt,position:Bt,name:"settings"})}j.log("open settings menu",{wasOpenedByKeyboard:p})},Bn=(p,k=!1)=>{dt.ui.settingsSubMenu.visible$.set(!1);let O=he(dt.ui.settingsMenu.ref$),we=ns(),rt=he(dt.ui.settingsMenu.visible$);if(l?.uiInfo?.onSettingsMenu&&O&&we)if(rt&&!k){let Bt=Ds(O),jt=Ns(O,we);l.uiInfo.onSettingsMenu({visible:!0,size:Bt,position:jt,name:"settings"})}else{let Bt=Ds(p),jt={top:0,left:0,bottom:0,right:0},go=he(dt.ui.settingsSubMenu.name$);l.uiInfo.onSettingsMenu({visible:!1,size:Bt,position:jt,name:go})}j.log("close settings sub menu")},On=(p,k)=>{dt.ui.settingsSubMenu.visible$.set(!0),dt.ui.settingsSubMenu.ref$.set(k),dt.ui.settingsSubMenu.name$.set(p);let O=ns();if(l?.uiInfo?.onSettingsMenu&&k&&O){let rt=Ds(k),bt=Ns(k,O);l.uiInfo.onSettingsMenu({visible:!0,name:p,size:rt,position:bt})}j.log("open settings sub menu",{name:p})},Hn=()=>{let p=Math.max(oe.volumeMinRestore,nc()??0);return p===0?oe.volumeDefault:p},Co=p=>{let k=p===0?Hn():p,O=N.info.muted$.getValue();R({message:`set volume, volume: ${p}, preferredVolume: ${k}`}),O&&p>0&&!s&&(O=!1,lp(!1)),N.setVolume(p,O),be.setVolume(p),op(k)},qt=p=>{let k=N.info.volume$.getValue();if(R({message:`set muted, currentVolume: ${k}, mute: ${p}`}),N.setMuted(p),be.setVolume(p?0:k),lp(p),!p&&k===0){let O=Hn();N.setVolume(O),op(O),be.setVolume(O)}},yr=re(!1),lt=p=>{j.log("set looped",{isLooped:p}),yr.set(p),N.setLooped(p)};lt(ee);let Rt=()=>{l?.uiInfo?.onReportProblem?.()},Pt=(p,k=!1)=>{R({message:`set autoplayNextEnabled, value: ${p}`}),j.log("set autoplay next enabled",{autoplayNextEnabled:p}),dt.ui.autoplayNextEnabled$.set(p),Eg(p),k&&l?.onSetAutoplayNextEnabled?.(p)},Ii=p=>{R({message:`set timerNextVideoRunning, value: ${p}`}),j.log("set timer next video running",{timerNextVideoRunning:p}),dt.ui.timerNextVideoRunning$.set(p)},Qi=(p=!0)=>{let k=!0;if(p&&l?.onPrevVideoClick)try{k=l?.onPrevVideoClick?.()}catch{R({message:"onPrevVideoClick callback failed to execute"})}if(!k)return;p&&Gi("prev")||ae()},Ei=(p=!0)=>{let k=!0;if(p&&l?.onNextVideoClick)try{k=l?.onNextVideoClick?.()}catch{R({message:"onNextVideoClick callback failed to execute"})}if(!k)return;p&&Gi("next")||se()},Gi=p=>{let{isMobile:k,features:{playbackStatusNextVideoShow:O,playbackStatusShow:we}}=oe;return O&&we&&!k?(dt.ui.aboutToGoNextVideo.set(p),dt.ui.userActionsDisabled.set(!0),!0):!1},ko=()=>{l?.onNextVideoAnnouncementShow?.()},mo=()=>{l?.onNextVideoAnnouncementClick?.()},hi=()=>{l?.onNextVideoAnnouncementAuto?.()},je=()=>{l?.onNextVideoAnnouncementCancel?.()},xt=()=>{N.prepare()},Yi=()=>{In(dt);let p=he(dt.ui.controls.disabledControls$),k=he(dt.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),be.togglePlay();return}let we=()=>{R({message:"toggle play, call player.play"}),O.action="play",N.play(),l?.onPlay?.()},rt=()=>{R({message:"toggle play, call player.pause"}),O.action="pause",N.pause(),l?.onPause?.()};if(N.info.isEnded$.getValue()){if(R({message:"toggle play, video ended, seek to 0"}),Ke.next(),Xe.next(Xr.REWIND),S){M?.();return}N.seekTime(0),we()}else N.info.playbackState$.getValue()!==ql.PLAYING?we():rt();j.log("toggle play",O)},xi=(p,{changeReason:k="default",appliesTo:O="to-video"}={})=>{R({message:`set quality, quality: ${p}`}),j.log("set quality",{quality:p}),N.setAutoQuality(p==="auto"),p!=="auto"?(oe.features.qualityDetailsSubMenuEnabled?(rc({type:"exact_quality",quality:p,videoId:i},O),xl(),N.setPredefinedQualityLimits(Dr.UNKNOWN)):np(i,p),et.set(p),N.setQuality(p)):oe.features.qualityDetailsSubMenuEnabled?k==="default"&&(Go("auto_quality",O),he(no)&&Jn(!1),he(xo)&&bn(!1)):xl()},Jn=(p,k="as-default")=>{R({message:`set trafficSavingEnabled, value: ${p}`}),j.log("set traffic saving enabled",{trafficSavingEnabled:p});let O=p?Dr.TRAFFIC_SAVING:Dr.UNKNOWN;oe.features.qualityDetailsSubMenuEnabled?(Pi(O,k),yl(!1)):(N.setPredefinedQualityLimits(O),yl(p))},bn=(p,k="as-default")=>{R({message:`set highQualityEnabled, value: ${p}`}),j.log("set high quality enabled",{highQualityEnabled:p}),Pi(p?Dr.HIGH_QUALITY:Dr.UNKNOWN,k)},Pi=(p,k)=>{p!==Dr.UNKNOWN&&(he(Nt)&&!he(Wo)&&xi("auto",{appliesTo:k,changeReason:"limit-changed"}),Go(p,k)),N.setPredefinedQualityLimits(p)},Go=(p,k)=>{rc({type:p,videoId:i},k),k==="as-default"&&rc({type:p,videoId:i},"to-video")},$n=p=>{j.log("set playback rate",{playbackRate:p}),N.setPlaybackRate(p),oe.features.saveRate&&J&&!N.info.isLive$.getValue()&&Tg(p)},Br=()=>{let p=he(So),k=p.findIndex(({selected:we})=>we);if(k===p.length-1)return;let O=p[k+1];$n(O.value)},xr=()=>{let p=he(So),k=p.findIndex(({selected:we})=>we);if(k===0)return;let O=p[k-1];$n(O.value)},To=(p={...ki,selected:!1})=>{j.log("set subtitles",{...p}),p&&p.value!==ki.value&&Ne.next(p.isAuto?p.value+"_auto":p.value),Ti.set(p)},Fn=()=>{j.log("toggle subtitles");let p=he(Mi),k=he(Ti),O=he(Lt);if(k?.value===ki.value){let we=p.filter(rt=>rt.value!==ki.value).find(rt=>rt.value===O)||p[1];To(we)}else To()},Io=(p,k,O=!0)=>{if(R({message:`seek to time, time: ${p}`}),j.log("seek to time",{time:p,action:k,forcePrecise:O}),Xe.next(k),N.info.isLive$.getValue()){let we=N.info.duration$.getValue(),rt=Math.min(0,we+p);N.seekTime(rt,O)}else{if(P?.getValue())return;N.info.isEnded$.getValue()&&(R({message:"seek after ended, call callbacks.onPlay"}),l?.onPlay?.()),N.seekTime(Oe(p),O)}},wr=p=>{R({message:`seek to episode start time: ${p}`}),j.log("seek to episode start time",{time:p}),Io(p,Xr.EPISODE,!0)},er=(p,k)=>{R({message:`seek to percent, percent: ${p}`}),j.log("seek to percent",{percent:p,action:k});let O=he(di)*p;Io(O,k,!1)},Sr=p=>{R({message:`seek external, time: ${p}`}),j.log("seek external",{time:p}),Xe.next(Xr.UNKNOWN),N.seekTime(N.info.isLive$.getValue()?-p:p)},tr=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}),N.setAutoQualityLimits(p)},Cr=p=>{R({message:`seek external to episode start time: ${p}`}),j.log("seek external to episode start time",{time:p}),Io(p,Xr.EPISODE,!0)},Yo=p=>{R({message:`set playback rate to: ${p}`}),j.log("set playback rate external",{playbackRate:p}),N.setPlaybackRate(p)},yn=re(void 0),Un=re(!1),kr=p=>{R({message:`start scrubbing, progress: ${p}`}),j.log("start scrubbing",{progress:p}),Un.set(!0),Je(p)},Je=p=>{yn.set(p)},It,Qt,ji=()=>{yn.set(void 0),Un.set(!1)},Eo=()=>{clearTimeout(Qt),clearTimeout(It),It=window.setTimeout(()=>{ji()},500),Ie?.removeEventListener("seeked",Eo)},zn=p=>{R({message:`complete scrubbing, progress: ${p}`}),j.log("complete scrubbing",{progress:p}),er(p,Xr.SLIDER),he(dt.ui.isMobile)&&he(dt.state.currentFormat$)===Wl.HLS?(Ie?.addEventListener("seeked",Eo),Qt=window.setTimeout(()=>{Eo()},300)):ji()},ir=ni([uo,di,yn],([p,k,O],we)=>{we(O$(O)?O*k:p)}),jo=re(!1),Ri=()=>{jo.set(!0)},fe=()=>{jo.set(!1)},Ct=re({width:0,height:0}),ei=ni([Ct],([{width:p}],k)=>{let O=sh(p);k(O)}),ci=re(!1),ui=K.filter(p=>vg(p)),or=ni([ei,ci],([p,k])=>k?ui.filter(O=>!O.hideOnMobile):ui.filter(O=>!O.hideOnDesktopGridTypes?.includes(p))),Ee=re(K.filter(p=>gg(p))),Dt=ni([Ee,ei],([p,k])=>p.filter(O=>!O.hideOnDesktopGridTypes?.includes(k))),pi=ni([Dt,or],([p,k])=>[...oe.features.additionalButtonsDesktopControlPanelRight?p.filter(O=>O.type==="desktop-control-panel-right"):[],...oe.features.additionalButtons?k.map((O,we)=>({id:we,weight:we,type:"desktop-control-panel-right",testId:O.testId,icon:O.iconUrl,onClick:O.onClick,ariaLabel:O.ariaLabel??O.tooltip,tooltipText:O.tooltip})):[]]),_i=re(Q),vo=ni([_i],([p])=>oe.features.additionalSettingsMenuItems?p.map(k=>k.type==="SWITCH"?{...k,onClick:k.onChangeEnabled}:k):[]),nr=(p,k)=>{let O=he(Ee).map(we=>we.id!==p?we:{...we,...k});Ee.set(O)},Zo=p=>{let k=he(Ee);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),Ee.set(k)},rr=p=>{let k=he(Ee);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),Ee.set(k)},zs=p=>{Xe.next(Xr.LIVE),R({message:"live switch to low latency "+p}),j.log("live switch to low latency "+p),N.setLiveLowLatency(p)},is=(p,k)=>{let O=he(_i).map(we=>we.id!==p?we:{...we,...k});_i.set(O)},qs=p=>{let k=he(_i);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),_i.set(k)},_a=p=>{let k=he(_i);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),_i.set(k)},ar=re(Y),os=ni([ar],([p])=>oe.features.additionalContextMenuItems?p:[]),wt=(p,k)=>{let O=he(ar).map(we=>we.id!==p?we:{...we,...k});ar.set(O)},_t=p=>{let k=he(ar);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),ar.set(k)},xn=p=>{let k=he(ar);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),ar.set(k)},Tr=ni([ci,nt],([p,k],O)=>{O(p&&k)}),ba=()=>{Xe.next(Xr.LIVE),R({message:"switch to active live"}),j.log("switch to active live"),N.seekTime(0),N.info.playbackState$.getValue()!==ql.PLAYING&&dt.actions.internal.togglePlay()},Ir=()=>{j.log("skip adman"),be.skip()},Er=(p=!0)=>{In(dt),R({message:`switch from ads to video, callPlay: ${p}`}),j.log("switch from ads to video",{callPlay:p}),Ye.set("video"),p&&N.play()},ia=()=>{In(dt),R({message:"switch from video to ads"}),j.log("switch from video to ads"),dt.actions.internal.pause(),Zt(),Ye.set("ads")},Ws=p=>{In(dt);let k=p?"LiveWaitingStart":"thumb";j.log("set live waiting start",{state:p,playerPhase:k}),Ye.set(k)},xd=p=>{In(dt);let k=p?"LiveWaitingRecover":"thumb";j.log("set live waiting recover",{state:p,playerPhase:k}),Ye.set(k)},Zc=p=>{In(dt);let k=p?"LiveWaitingRecord":"thumb";j.log("set live waiting record",{state:p,playerPhase:k}),Ye.set(k)},wd=()=>(In(dt),j.log("get debug text data"),pg(N,$e,dt)),Xc=()=>(In(dt),JSON.stringify(Fe.getFinishedSpans())),Sd=()=>(In(dt),fg(N,$e,dt)),ns=()=>Ie,Cd=()=>{R({message:"toggle chromecast"}),j.log("toggle chromecast"),N.toggleChromecast()},kd=p=>{if(In(dt),N.info.isEnded$.getValue())return;let k=!p;if(he(dt.playerPhase)==="ads"){R({message:`pause ads, internalCall: ${k}`}),j.log("pause ads",{internalCall:k}),be.pause();return}R({message:`pause video, internalCall: ${k}`}),j.log("pause video",{internalCall:k}),k&&l?.onPause?.(),N.pause()},Ks=p=>{In(dt);let k=!p;if(he(dt.playerPhase)==="ads"){R({message:`play ads, internalCall: ${k}`}),j.log("play ads",{internalCall:k}),be.play();return}R({message:`play video, internalCall: ${k}`}),j.log("play video",{internalCall:k}),k&&l?.onPlay?.(),N.play()},Jc=p=>{In(dt);let k=!p;if(he(dt.playerPhase)==="ads"){R({message:"player cannot be stopped during ads via external method"});return}R({message:`player will be stopped, internalCall: ${k}`}),L?.()},Qs=(p,k)=>{In(dt),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?N.play():dt.actions.internal.togglePlay())},rs=()=>(R({message:"getting time codes"}),u),Gs=()=>{let p=rs();if(!p||[0,1].includes(p.length))return;let k=N.info.position$.getValue();return p.find(O=>O.time>k)},Td=p=>{let k=p;k||(k=Gs());let O=N.info.position$.getValue();j.log("seek to next episode",{currentTime:O,...k}),k&&(R({message:"seek to next episode"}),Io(k.time,Xr.EPISODE,!0))},Id=()=>{let p=rs();if(!p||[0,1].includes(p.length))return;let k=N.info.position$.getValue(),O=p.findIndex(rt=>rt.time>k),we=O===-1?p.length-2:O-2;if(!(we<0))return p[we]},Ed=p=>{let k=p;k||(k=Id());let O=N.info.position$.getValue();j.log("seek to prev episode",{currentTime:O,...k}),k&&(R({message:"seek to prev episode"}),Io(k.time,Xr.EPISODE,!0))},eu=()=>(R({message:"getting preview thumbs data"}),j.log("get preview thumbs data",{..._}),_),Pd=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})},tu=(p=-90)=>{j.log("rotate video",{alphaDiff:p}),ut.update(k=>k+p)},as=re([]);I?.subscribe(p=>{let k=[];for(let O=0;O<p.length;O++){let{range:[we,rt],subjects:bt}=p[O];O===0&&we!==0&&k.push({time:0,text:"",interactive:!1,completed:!0}),k.push({time:we/1e3,text:"",interactive:!0,completed:oe.features.interactiveTimeOpenUri?!bt.length||bt.every(Bt=>Bt.isRemoved):!bt.length}),rt!==1/0&&k.push({time:rt/1e3,text:"",interactive:!1,completed:!0})}as.set(k)});let iu=re(!1);P?.subscribe(p=>{p&&he(Un)&&ji()});let Oe=p=>{if(!S)return p;let k=he(as),O=he(di),rt=he(gi)/O,bt=k.find(Bt=>Bt.interactive&&!Bt.completed&&Bt.time>rt);return typeof bt?.time=="number"?Math.min(p,bt.time-.05):p},Ht=()=>{dt.ui.episodes.panelOpened$.set(!1)},Po=()=>{j.log("destroy store"),clearTimeout(Qt),clearTimeout(It),mi.unsubscribe(),ri.unsubscribe(),N.destroy(),be.destroy(),ge?.destroy(),ke?.destroy(),Tt.unsubscribe(),st?.disconnect(),st=null,ze.destroy()},dt={interfaceLanguage$:Lt,isCyrillicRelatedInterface$:Te,initVideo:We,videoId:i,isClip:o,playerPhase:W,vsid:ye,state:{positionExact$:uo,positionWithScrubbing$:ir,duration$:di,playbackState$:Wt,isPlaying$:Ai,isLoaderVisible:yi,bufferedProgress$:gn,isLive$:Xt,canChangePlaybackSpeed$:zi,isActiveLive$:Uo,isOldestAvailableLive$:ln,isRewindableLive$:An,isEnded$:Kt,muted$:qi,volume$:Jt,trafficSavingEnabled$:no,highQualityEnabled$:xo,autoQualityLimitingAvailable$:Nt,availableVideoStreams$:so,availableAudioStreams$:dn,videoStream$:_r,audioStream$:jn,currentQuality$:Vn,isAutoQualityEnabled$:Wo,availableQualities$:Ko,currentPlaybackRate$:Qo,availablePlaybackRates$:So,currentSubtitle$:Ti,availableTextTracks$:Rn,availableSubtitlesList$:Mi,currentSubtitleCaptions$:Ki,isAutoSubtitleCaptionVisible$:Vi,chromecastState$:Ot,chromecastDeviceName$:$i,chromecastConnected$:zo,currentFormat$:wo,throughputEstimation$:Pn,videoBitrate$:ro,videoSize$:ao,errorLog$:pt,crashed$:nt,isAudioAvailable$:mt,isAudioDisabled:!!s,canDownload:oe.features.download&&!!d,availableSources$:fo,hasMpegSources$:br,isInteractive:S,showInteractiveGraph:oe.features.interactiveGraph,showSeekToInteractive:oe.features.seekToInteractive,showPlayPrevChapter:oe.features.interactivePlayPrevChapter,showInteractiveTimeIndicator:oe.features.interactiveTimeIndicator&&!!he(as).length,interactiveEpisodes$:as,isInteractiveTime$:P?zt(P):re(!1),isInteractiveExpectation$:iu,hasInteractiveBranches:T,playPrevChapterDisabledTooltip:B,looped$:yr,loadedMetadata$:re(!1),isAutoQualityAvailable$:pn},ui:{t:Ue,controlsVisible:re(!1),touched:re(!1),controls:{prevButton:re(void 0),playButton:re(void 0),replayButton:re(void 0),nextButton:re(void 0),playPrevChapterButton:re(void 0),seekToInteractiveButton:re(void 0),interactiveGraphButton:re(void 0),liveButton:re(void 0),time:re(void 0),episodes:re(void 0),volume:re(void 0),subtitles:re(void 0),settings:re(void 0),context:re(void 0),chromecast:re(void 0),pip:re(void 0),fullscreen:re(void 0),vkLogo:re(void 0),interactiveTimeIndicator:re(void 0),timeline:re(void 0),autoplayNextToggle:re(void 0),additionalButtons:K.length?K.reduce(p=>[...p,re(void 0)],[]):[],disabledControls$:ne},modals:{hotKeyMap:{show:re(!1),data:re({title:"",closeBtnText:"",groups:[]})}},isFullscreen:Ve,isFullscreenOpenedByKeyboard:qe,rotateAlpha:ut,isAutoplay:re(!1),debugPanelVisible:re(!1),episodes:{panelOpened$:re(!1),openedByKeyboard$:re(!1)},contextMenu:{visible$:re(!1),btnRef$:re(void 0),openedByBtnKeyboard$:re(!1),openedByHotKey$:re(!1),lastActiveElem$:re(void 0),showContextMenuBtn$:re(!1),position$:re({top:0,left:0})},playerSize:Ct,isMobile:ci,mobileNotReportControlHidden$:Tr,mobileUnmuteButtonExpanded:re(!1),mobileUnmuteButtonVisible:re(!1),icon3DVideoVisible:re(!1),scrubbingInProgress:Un,volumeChangingInProgress:jo,is3DVideo:re(!1),currentGridType$:ei,additionalButtonsDeprecated$:or,additionalDesktopControlPanelRightButtons$:pi,additionalSettingsMenuItems$:vo,additionalContextMenuItems$:os,interactiveHideMobileControls:re(!1),overlayContainer$:re(void 0),startedByKeyboard$:re(!1),autoplayNextEnabled$:re(!1),timerNextVideoRunning$:re(!0),settingsMenu:{visible$:re(!1),ref$:re(void 0),openedByBtnKeyboard$:re(!1)},settingsSubMenu:{visible$:re(!1),ref$:re(void 0),name$:re(void 0)},aboutToGoNextVideo:re(void 0),userActionsDisabled:re(!1)},ads:{position:re(0),duration:re(0),playbackState:re("inactive"),canSkip:re(!1),secondsToWatchBeforeSkip:re(0),postrollPassed:re(!1)},webApi:{pictureInPictureApi:Be,annotationsApi:ce},actions:{internal:{preload:xt,firstStart:p=>Qs(p,!1),play:()=>Ks(!1),pause:()=>kd(!1),togglePlay:Yi,toggleMuted:hn,openSettingsMenu:$r,closeSettingsMenu:_n,openSettingsSubMenu:On,closeSettingsSubMenu:Bn,setVolume:Co,startVolumeChanging:Ri,stopVolumeChanging:fe,setVideoStream:Mn,setAudioStream:cn,setQuality:xi,setTrafficSavingEnabled:Jn,setHighQualityEnabled:bn,setPlaybackRate:$n,incrementPlaybackRate:Br,decrementPlaybackRate:xr,setSubtitle:To,toggleSubtitle:Fn,togglePictureInPicture:Pd,startScrubbing:kr,progressScrubbing:Je,completeScrubbing:zn,toggleChromecast:Cd,switchToActiveLive:ba,switchFromAdsToVideo:Er,switchFromVideoToAds:ia,skipAd:Ir,setLiveWaitingStart:Ws,setLiveWaitingRecover:xd,setLiveWaitingRecord:Zc,getDebugTextData:wd,getTraceTextData:Xc,getDebugPanelData:Sd,getVideoElement:ns,seekTime:(p,k,O)=>Io(p,k,O),clearDelayedBufferingCheckTimeout:sn,seekEpisodeStartTime:wr,seekToPercent:er,getNextEpisode:Gs,seekToNextEpisode:Td,getPrevEpisode:Id,seekToPrevEpisode:Ed,startLogging:oo,stopLogging:Ho,startCameraManualRotation:an,stopCameraManualRotation:Ui,moveCameraFocusPX:$o,holdCamera:Fo,releaseCamera:yo,getVideoEpisodes:rs,getPreviewThumbsData:eu,downloadVideo:Xn,addLanguage:up,setLanguage:vt,nextMovie:$t,videoRotate:tu,correctSeekTimeToInteractive:Oe,replayInteractive:M,setLooped:lt,reportProblem:Rt,setAutoplayNextEnabled:Pt,setTimerNextVideoRunning:Ii,prevVideoClick:Qi,nextVideoClick:Ei,nextVideoAnnouncementShow:ko,nextVideoAnnouncementClick:mo,nextVideoAnnouncementAuto:hi,nextVideoAnnouncementCancel:je},external:{firstStart:p=>Qs(p,!0),play:()=>Ks(!0),pause:()=>kd(!0),stop:()=>Jc(!0),seekTime:p=>Sr(p),seekEpisodeStartTime:p=>Cr(p),setPlaybackRate:p=>Yo(p),setAutoQualityLimits:p=>tr(p),setMuted:qt,setVolume:Co,returnFocusToEpisodes:Ht,updateAdditionalSettingsItem:is,addAdditionalSettingsItem:qs,removeAdditionalSettingsItem:_a,updateAdditionalContextItem:wt,addAdditionalContextItem:_t,removeAdditionalContextItem:xn,updateAdditionalButton:nr,addAdditionalButton:Zo,removeAdditionalButton:rr,setLiveLowLatency:zs}},callbacks:l,setUiCallbacks:p=>{Ge={...p}},getAdmanWrapper:()=>be,getLogger:()=>Le,getPlayer:()=>N,destroy:Po};return dt};function Ya(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}=Ns(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 Bs=(t,e,i,o)=>{if(t)for(let[n,a]of Object.entries(e))["tooltipPointerOffsetX","disabledControls$","additionalButtons"].includes(n)||a.set(Ya(t,i,n,o))};var Mc=async(t,e,i)=>{await Ji(),e&&i&&(i.focus(),t.set(!1))};var Y$=ve('<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 lf(t,e){let i=Ce(e,["$$slots","$$events","$$legacy","children"]);var o=Y$();let n;var a=h(o);pe(a,()=>e.children??te),me(),g(o),C(()=>n=xe(o,n,{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none","aria-hidden":"true","data-testid":"dots-icon",role:"img",...i})),b(t,o)}function df(t,e){F(e,!0);let[i,o]=Me(),n=()=>y(l,"$contextMenuVisible$",i),a=m(e,"disabled",3,!1),s=m(e,"ariaLabel",3,""),d=_e(),l=d.ui.contextMenu.visible$,c=d.ui.contextMenu.openedByBtnKeyboard$,u=d.ui.contextMenu.showContextMenuBtn$,_=d.ui.contextMenu.position$,f=d.ui.contextMenu.btnRef$,$=X(void 0);He(()=>{r($)&&ft(()=>{f.set(r($))})});let x=P=>{let M=pa(P),L=Jg(r($));_.set(L),c.set(M),l.set(!n())},w=()=>{u.set(!0)},S=()=>{u.set(!1)},I=v(()=>n()?"opened":"");kt(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($)},set ref(P){D($,de(P))},children:(P,M)=>{lf(P,{})},$$slots:{default:!0}}),U(),o()}var j$=t=>{t.stopPropagation()},Z$=A("<div><!> <div></div> <div></div></div>"),X$={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 Kp(t,e){F(e,!0),W(t,Jb);let i=v(e,"isMobile",3,!1),o=m(()=>e.iconState===rh.CONNECTED),n=m(()=>e.iconState===rh.CONNECTING);var a=Ne(),s=le(a);{var d=c=>{var u=Zb(),_=h(u),f=h(_),$=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(()=>{Le($,"fill",r(o)?"#2688EB":"var(--btn-color, #fff)"),Le(x,"fill",r(o)?"#2688EB":"var(--btn-color, #fff)"),Le(I,"fill",r(o)?"#2688EB":"var(--btn-color, #fff)")}),b(c,u)},l=c=>{var u=Xb();let _;var f=h(u),$=E(h(f),5);let x;g(f),g(u),C((w,S)=>{_=Z(u,0,"svelte-8z1bf5",null,_,w),x=Z($,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 t$}from"@vkontakte/videoplayer-shared/es2024";function Dl(t,e){F(e,!0);let i=v(e,"ref",15,void 0),o=v(e,"isMobile",3,!1),n=v(e,"click",3,t$),s=be().ui.t,d=m(()=>e.state===e$.CONNECTED?s("tooltip_chromecast_on"):s("tooltip_chromecast_off"));kt(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)=>{Kp(l,{get isMobile(){return o()},get iconState(){return e.state}})},$$slots:{default:!0}}),U()}var i$=L('<div class="tooltip-wrapper svelte-5ygsa2"><div><!></div></div>'),o$={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 Qp(t,e){W(t,o$);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=i$(),_=h(u);let f;var $=h(_);ue($,()=>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),tt(_,`opacity: ${i()?1:0}; visibility: ${i()?"visible":"hidden"}`)},[()=>({active:i(),pointer:o()})]),b(t,u)}var $c=(t,e,i)=>i.filter(o=>o.time<=t*e).pop();var ah=t=>!!(Math.round(Math.abs(t)/90)%2),sh=t=>Math.abs(t)/90%4===1;var n$=L('<div class="preview svelte-1wqg760"></div>'),r$=L('<div class="time svelte-1wqg760"> </div>'),a$=L('<div><!> <div class="episode svelte-1wqg760"><!></div> <!></div>'),s$={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 Gp(t,e){F(e,!0),W(t,s$);let[i,o]=De(),n=()=>y(x,"$rotateAlpha",i),a=()=>y(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),$=be(),x=$.ui.rotateAlpha,w=$.ui.playerSize,S=Y(0),I=Y(0),M=Y(""),P=Y(0),A=Y(0),T=Y(0),B=Y(0),Q=m(()=>$c(u(),_(),c())),G=m(()=>ah(n())),ee=m(()=>sh(n())),te=m(ge),ie=m(()=>(r(ee)?1:-1)*(r(S)/2-r(I)/2)),oe=m(()=>r(ie)*-1);Ue(()=>{(R=>(N(S,de(R.width)),N(I,de(R.height))))(Ve())}),Ue(()=>{(R=>(N(M,de(R.imgSrc)),N(P,de(R.imgWidth)),N(A,de(R.imgHeight)),N(T,de(R.imgOffsetX)),N(B,de(R.imgOffsetY))))(Ae(u()))});function ge(){let R=l()?s.MOBILE:s.DESKTOP,{isVertical:ye}=X(),Ie=30;return r(Q)?.text&&(Ie+=16),(ye||r(G))&&(Ie+=18,Ie+=50),Math.min(Math.max(a().height-Ie,0),R)}function X(){let R=e.previewThumbsData.frameWidth,ye=e.previewThumbsData.frameHeight,Ie=ye>R;return{width:R,height:ye,isHorizontal:!Ie,isVertical:Ie}}function Ve(){let{height:R,isHorizontal:ye,isVertical:Ie,width:je}=X();return ye&&(R=R/je*r(te),je=r(te)),Ie&&(je=je/R*r(te),R=r(te)),{width:je,height:R}}function Ae(R){let ye;e.previewThumbsData.isUV?ye=Math.floor(_()*R/e.previewThumbsData.frequency):ye=Math.min(e.previewThumbsData.countTotal,Math.max(0,Math.floor(e.previewThumbsData.countTotal*R)));let Ie=Math.floor(ye/e.previewThumbsData.countPerImage),je=Math.floor(ye%e.previewThumbsData.countPerImage/e.previewThumbsData.countPerRow),ze=ye%e.previewThumbsData.countPerRow,Te=Math.floor(e.previewThumbsData.countPerImage/e.previewThumbsData.countPerRow);!e.previewThumbsData.isUV&&Ie===Math.floor(e.previewThumbsData.countTotal/e.previewThumbsData.countPerImage)&&(Te=Math.floor(e.previewThumbsData.countTotal%e.previewThumbsData.countPerImage/e.previewThumbsData.countPerRow),e.previewThumbsData.countTotal%e.previewThumbsData.countPerImage%e.previewThumbsData.countPerRow>0&&Te++);let Me=e.previewThumbsData.countPerRow;!e.previewThumbsData.isUV&&Ie===Math.floor(e.previewThumbsData.countTotal/e.previewThumbsData.countPerImage)&&e.previewThumbsData.countTotal%e.previewThumbsData.countPerImage>0&&(Me=Math.min(e.previewThumbsData.countPerRow,e.previewThumbsData.countTotal%e.previewThumbsData.countPerImage));let We=r(S)*Me,it=r(I)*Te,vt=-ze*r(S),st=-je*r(I);return{imgSrc:e.previewThumbsData.links[Ie],imgWidth:We,imgHeight:it,imgOffsetX:vt,imgOffsetY:st}}var se=a$();let He;var j=h(se);{var D=R=>{var ye=n$();C(()=>tt(ye,`width: ${r(S)}px; height: ${r(I)}px; background-image: url(${r(M)}); background-size: ${r(P)}px ${r(A)}px; background-position: ${r(T)}px ${r(B)}px;
228
+ transform: rotate(${n()}deg) ${r(G)?`translate(${r(ie)}px, ${r(oe)}px)`:""};
229
+ `)),b(R,ye)};V(j,R=>{r(M)&&R(D)})}var Re=E(j,2),_e=h(Re);{var ke=R=>{var ye=Ne(),Ie=le(ye);{var je=Te=>{var Me=qn();C(We=>ce(Me,We),[()=>H("tooltip_episode_unfinished")]),b(Te,Me)},ze=Te=>{var Me=qn();C(()=>ce(Me,r(Q).text||"")),b(Te,Me)};V(Ie,Te=>{f()&&r(Q).completed===!1?Te(je):Te(ze,!1)})}b(R,ye)};V(_e,R=>{r(Q)&&R(ke)})}g(Re);var Be=E(Re,2);{var pe=R=>{var ye=r$(),Ie=h(ye,!0);g(ye),C(()=>ce(Ie,d())),b(R,ye)};V(Be,R=>{f()||R(pe)})}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 l$=L('<span class="time svelte-1jr6obn"> </span>'),d$=L("<!> <!>",1),c$={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 Yp(t,e){F(e,!0),W(t,c$);let[i,o]=De(),n=()=>y(te,"$interactiveEpisodes$",i),a=()=>y(A,"$duration$",i),s=()=>y(P,"$position$",i),d=()=>y(ge,"$isInteractiveExpectation$",i),l=()=>y(oe,"$isInteractiveTime$",i),c=()=>y(T,"$isLive$",i),u=()=>y(Q,"$isMobile",i),_=()=>y(B,"$isActiveLive$",i),f=()=>y(M,"$bufferedProgress$",i),$=()=>y(Ae,"$disabledControls$",i),x=v(e,"showTimeline",3,!1),w=v(e,"ref",15,void 0),S=be(),I=Rt(),M=S.state.bufferedProgress$,P=S.state.positionWithScrubbing$,A=S.state.duration$,T=S.state.isLive$,B=S.state.isActiveLive$,Q=S.ui.isMobile,G=I.features.episodes?S.actions.internal.getVideoEpisodes():void 0,ee=S.actions.internal.getPreviewThumbsData(),te=S.state.interactiveEpisodes$,ie=S.state.isInteractive,oe=S.state.isInteractiveTime$,ge=S.state.isInteractiveExpectation$,X=S.actions.internal.correctSeekTimeToInteractive,Ve=S.callbacks?.onDisabledTimelineClick,Ae=S.ui.controls.disabledControls$,se=S.ui.t,He=I.features.interactiveResponsiveUi,j=m(()=>ie?n():G),D=m(()=>Qn(a())),Re=m(()=>Qn(s())),_e=m(()=>s()/a()),ke=m(()=>d()||l()),Be=Y(!1),pe=Y(""),R=Y(0),ye=Y(0),Ie=Y(0),je=m(()=>({containerWidth:r(ye),translateXPx:r(R),translateYPx:ie&&ee?-36:-16,active:r(Be)&&x()&&!r(ke)&&!He,pointer:!I.features.timelinePreview||!ee||c()})),ze=se("aria_timeline"),Te=m(()=>se("aria_timeline_value",{position:r(Re),duration:r(D)}));function Me(ne){return!X||!ie?ne:X(ne*a())/a()}function We(ne){S.actions.internal.startScrubbing(Me(ne))}function it(ne){l()||S.actions.internal.progressScrubbing(Me(ne))}function vt(ne){S.actions.internal.completeScrubbing(Me(ne)),N(Be,!1)}function st(ne,Fe,Ge){gt(ne,Fe,Ge),N(Be,!0)}function It(ne,Fe,Ge){gt(ne,Fe,Ge),N(Be,!0)}function nt(){N(Be,!1)}function gt(ne,Fe,Ge){N(Ie,de(Me(ne))),N(R,de(Fe)),Ge&&N(ye,de(Ge)),N(pe,de(Mt(ne)))}function Mt(ne){let Fe=Qn((c()?1-ne:ne)*a());return c()?`-${Fe}`:Fe}var Ce=d$(),Oe=le(Ce);Qp(Oe,Gr(()=>r(je),{children:(ne,Fe)=>{var Ge=Ne(),wt=le(Ge);{var Ke=Ee=>{Gp(Ee,{get time(){return r(pe)},get isMobile(){return u()},get videoEpisodes(){return r(j)},previewThumbsData:ee,get progress(){return r(Ie)},get duration(){return a()},isInteractive:ie})},Je=Ee=>{var ct=l$(),Bt=h(ct,!0);g(ct),C(()=>ce(Bt,r(pe))),b(Ee,ct)};V(wt,Ee=>{I.features.timelinePreview&&ee&&!c()?Ee(Ke):Ee(Je,!1)})}b(ne,Ge)},$$slots:{default:!0}}));var Ze=E(Oe,2);let q=m(()=>Math.round(r(_e)*100)),ae=m(()=>$().has("TIMELINE"));qa(Ze,{className:"timeline-slider",get isActiveLive(){return _()},get isMobile(){return u()},ariaLabel:ze,ariaValueMin:0,get ariaValueMax(){return a()},get ariaValueNow(){return r(q)},get ariaValueText(){return r(Te)},get loadedProgress(){return f()},get filledProgress(){return r(_e)},get handleProgress(){return r(_e)},get videoEpisodes(){return r(j)},onPointerDown:We,onHandleMove:it,onPointerMove:It,onPointerUp:vt,onPointerEnter:st,onPointerLeave:nt,onDisabledClick:Ve,isInteractive:ie,get disabled(){return r(ae)},get hideHandel(){return l()},get ref(){return w()},set ref(ne){w(ne)}}),b(t,Ce),U(),o()}var u$={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),W(t,u$);let[i,o]=De(),n=()=>y(l,"$isMobile",i),a=v(e,"position",3,0),s=v(e,"duration",3,0),d=be(),l=d.ui.isMobile,c=d.ui.t,u=m(()=>Qn(s())),_=m(()=>Qn(a())),f=m(()=>a()/s()),$=m(()=>c("aria_timeline_value",{position:r(_),duration:r(u)})),x=m(()=>Math.round(r(f)*100));qa(t,{className:"timeline-ads-slider",ariaValueMin:0,get ariaValueMax(){return s()},get ariaValueNow(){return r(x)},get ariaValueText(){return r($)},get filledProgress(){return r(f)},hideHandel:!0,get squareBorders(){return n()}}),U(),o()}var p$=L("<div><!></div>"),f$=L("<div></div>"),m$={hash:"svelte-1f460ty",code:".timeline.svelte-1f460ty {position:relative;pointer-events:all;display:flex;align-items:center;bottom:0;width:100%;min-width:86px;padding:3px var(--timeline-padding-horizontal) 4px;box-sizing:border-box;}.timeline.mobile.svelte-1f460ty {height:16px;padding:6px 12px 7px;margin-top:6px;}.timeline-stub.svelte-1f460ty {width:100%;min-width:20px;}.timeline-stub.mobile.svelte-1f460ty {height:8px;}"};function Bl(t,e){F(e,!0),W(t,m$);let[i,o]=De(),n=()=>y(f,"$isLive$",i),a=()=>y(w,"$isMobile",i),s=()=>y(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),_=be(),f=_.state.isLive$,$=_.ads.duration,x=_.ads.position,w=_.ui.isMobile,S=m(()=>!c()&&(!n()||n()&&e.canRewindLive&&e.isRewindableLive||l()));var I=Ne(),M=le(I);{var P=T=>{var B=p$();let Q;var G=h(B);{var ee=ie=>{Nl(ie,{get position(){return s()},get duration(){return d()}})},te=ie=>{Yp(ie,{get showTimeline(){return r(S)},get ref(){return u()},set ref(oe){u(oe)}})};V(G,ie=>{l()?ie(ee):ie(te,!1)})}g(B),C(ie=>Q=Z(B,1,"timeline svelte-1f460ty",null,Q,ie),[()=>({mobile:a()})]),b(T,B)},A=T=>{var B=f$();let Q;C(G=>Q=Z(B,1,"timeline-stub svelte-1f460ty",null,Q,G),[()=>({mobile:a()})]),b(T,B)};V(M,T=>{r(S)?T(P):T(A,!1)})}b(t,I),U(),o()}import{noop as h$}from"@vkontakte/videoplayer-shared/es2024";var v$=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 jp(t,e){let i=Se(e,["$$slots","$$events","$$legacy","children"]);var o=v$();let n;var a=h(o);ue(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 g$=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 Zp(t,e){let i=Se(e,["$$slots","$$events","$$legacy","children"]);var o=g$();let n;var a=h(o);ue(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 _$=L('<span class="text mobile svelte-1yhs2ga"> </span> <div class="chevron-episodes svelte-1yhs2ga"><!></div>',1),b$=L('<span class="text svelte-1yhs2ga"> </span>'),$$=L('<span class="text count svelte-1yhs2ga"> </span>'),y$=L("<!> <!>",1),x$={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),W(t,x$);let[i,o]=De(),n=()=>y(x,"$currentGridType$",i),a=()=>y(w,"$openedByKeyboard$",i),s=()=>y(S,"$panelOpened$",i),d=()=>y(I,"$isMobile",i),l=v(e,"position",3,0),c=v(e,"duration",3,0),u=v(e,"timeCodes",19,()=>[]),_=be(),f=_.callbacks?.onEpisodeChanged??h$,$=!!_.callbacks?.onEpisodeClicked,x=_.ui.currentGridType$,w=_.ui.episodes.openedByKeyboard$,S=_.ui.episodes.panelOpened$,I=_.ui.isMobile,M=_.ui.t,P=Y(void 0),A=X=>{if(!!_.callbacks?.onEpisodeClicked){let Ae=ca(X);w.set(Ae),S.set(!0),_.callbacks?.onEpisodeClicked?.(Ae)}},T=Y(null),B=m(()=>l()/c());Ue(()=>{let X=$c(r(B),c(),u());X?r(T)?.time!==X.time&&(f(X),N(T,de(X))):N(T,null)});let Q=m(()=>r(T)?.text||""),G=m(()=>Si(n(),"xl")?"FULL":Si(n(),"m")&&oh(n(),"xl")?"COUNT":"SHORT"),ee=m(()=>`${M("tooltip_episodes")}: ${r(Q)}`),te=async(X,Ve,Ae)=>{await Zi(),X?.getAttribute("aria-expanded")==="false"&&Ve&&!Ae&&ft(()=>{w.set(!1),X.focus()})};Ue(()=>{te(r(P),a(),s())});var ie=Ne(),oe=le(ie);{var ge=X=>{let Ve=m(()=>d()?"px-0":"");kt(X,{get className(){return`w-max btn-full-opacity btn-jc-l ${r(Ve)??""}`},testId:"btn-episodes",click:A,disabled:!$,get ariaExpanded(){return s()},get ariaLabel(){return r(ee)},get ref(){return r(P)},set ref(Ae){N(P,de(Ae))},children:(Ae,se)=>{var He=Ne(),j=le(He);{var D=_e=>{var ke=_$(),Be=le(ke),pe=h(Be,!0);g(Be);var R=E(Be,2),ye=h(R);Zp(ye,{}),g(R),C(()=>ce(pe,r(Q))),b(_e,ke)},Re=_e=>{var ke=y$(),Be=le(ke);jp(Be,{});var pe=E(Be,2);{var R=Ie=>{var je=b$(),ze=h(je,!0);g(je),C(()=>ce(ze,r(Q))),b(Ie,je)},ye=(Ie,je)=>{{var ze=Te=>{var Me=$$(),We=h(Me,!0);g(Me),C(()=>ce(We,u().length)),b(Te,Me)};V(Ie,Te=>{r(G)==="COUNT"&&Te(ze)},je)}};V(pe,Ie=>{r(G)==="FULL"?Ie(R):Ie(ye,!1)})}b(_e,ke)};V(j,_e=>{d()?_e(D):_e(Re,!1)})}b(Ae,He)},$$slots:{default:!0}})};V(oe,X=>{r(T)&&X(ge)})}b(t,ie),U(),o()}import{debounceFn as xy}from"@vkontakte/videoplayer-shared/es2024";import{ChromecastState as P$,PlaybackState as Hl,Player as A$,PredefinedQualityLimits as Rr,VideoFormat as Fl,clientChecker as M$}from"@vkontakte/videoplayer-core/es2024";import{assertNonNullable as kn,getHighestQuality as L$,InterfaceLanguage as V$,isInvariantQuality as R$,isNonNullable as D$,loadVKLangPack as N$,Logger as B$,map as vh,merge as O$,Observable as H$,Subject as Tc,Subscription as nf,Tracer as F$,ValueSubject as U$,VideoQuality as z$,devNull as W$,now as q$}from"@vkontakte/videoplayer-shared/es2024";import{SeekAction as jr}from"@vkontakte/videoplayer-statistics/es2024";import{detectEmbed as w$,devNull as Ht,now as Ft}from"@vkontakte/videoplayer-shared/es2024";import{addScript as S$,Subject as go,clearVideoElement as C$}from"@vkontakte/videoplayer-shared/es2024";var lh=(t,e)=>t<400||e<225?5:t<640||e<360?0:t<960||e<540?1:t<1280||e<720?2:3;var k$="//ad.mail.ru/static/admanhtml/rbadman-html5.min.js",yc=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 go,loadStarted$:new go,loadEnded$:new go,loadError$:new go,ready$:new go,slotRequested$:new go,started$:new go,timeRemained$:new go,paused$:new go,resumed$:new go,ended$:new go,empty$:new go,skipped$:new go,clicked$:new go,closed$:new go,error$:new go};this.loadAdman=e=>(Ht.push("ui",{key:"videoplayer_embed",strings:["new","adman_load_start",this.useAdmanFromNPM?"npm":"http"],numbers:[Ft()]}),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?(Ht.push("ui",{key:"videoplayer_embed",strings:["new","adman_async_init_done","http"],numbers:[Ft()]}),i(),this.events.loadEnded$.next()):(Ht.push("ui",{key:"videoplayer_embed",strings:["new","adman_init_timed_out","http"],numbers:[Ft()]}),o())};S$(k$,e,this.loadTimeout).then(()=>{Ht.push("ui",{key:"videoplayer_embed",strings:["new","adman_script_loaded","http"],numbers:[Ft()]}),window.AdmanHTML?(Ht.push("ui",{key:"videoplayer_embed",strings:["new","adman_already_inited","http"],numbers:[Ft()]}),i(),this.events.loadEnded$.next()):(Ht.push("ui",{key:"videoplayer_embed",strings:["new","adman_wait_async_init","http"],numbers:[Ft()]}),window.admanAsyncInit=a,n=window.setTimeout(a,this.initTimeout))}).catch(s=>{Ht.push("ui",{key:"videoplayer_embed",strings:["new","adman_script_load_error","http",String(s)],numbers:[Ft()]}),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?(Ht.push("ui",{key:"videoplayer_embed",strings:["new","adman_init_done","npm"],numbers:[Ft()]}),i(),this.events.loadEnded$.next()):(Ht.push("ui",{key:"videoplayer_embed",strings:["new","adman_init_timed_out","npm"],numbers:[Ft()]}),o())},s=()=>{d=!0,o()},d=!1,l=window.setTimeout(()=>{Ht.push("ui",{key:"videoplayer_embed",strings:["new","adman_load_timed_out","npm"],numbers:[Ft()]}),s()},this.loadTimeout);e.addEventListener("abort",s),e.aborted&&(Ht.push("ui",{key:"videoplayer_embed",strings:["new","adman_load_aborted","npm"],numbers:[Ft()]}),s()),window.AdmanHTML=window.AdmanHTML||null,import("@adtech/rbadman/out/rbadman-html5.min.js").then(()=>{Ht.push("ui",{key:"videoplayer_embed",strings:["new","adman_chunk_imorted","npm","failed: "+String(d)],numbers:[Ft()]}),!d&&(window.AdmanHTML?(Ht.push("ui",{key:"videoplayer_embed",strings:["new","adman_already_inited","npm"],numbers:[Ft()]}),i(),this.events.loadEnded$.next()):(Ht.push("ui",{key:"videoplayer_embed",strings:["new","adman_wait_async_init","npm"],numbers:[Ft()]}),window.admanAsyncInit=a,n=window.setTimeout(a,this.initTimeout)))},s).finally(()=>{clearTimeout(n),clearTimeout(l),e.removeEventListener("abort",s)})});this.onAdsReady=()=>{Ht.push("ui",{key:"videoplayer_embed",strings:["new","adman_ads_ready"],numbers:[Ft()]}),this.log({message:"ads ready"}),this.events.ready$.next(),this.startPreroll()};this.onAdStarted=(e,i)=>{Ht.push("ui",{key:"videoplayer_embed",strings:["new","adman_ad_started",e,"muted: "+i.muted],numbers:[Ft(),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=()=>{Ht.push("ui",{key:"videoplayer_embed",strings:["new","adman_ad_pased",this.currentAdSection??""],numbers:[Ft()]}),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=()=>{Ht.push("ui",{key:"videoplayer_embed",strings:["new","adman_ad_played",this.currentAdSection??""],numbers:[Ft()]}),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(Ht.push("ui",{key:"videoplayer_embed",strings:["new","adman_ad_midroll_pioint"],numbers:[Ft()]}),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=()=>{Ht.push("ui",{key:"videoplayer_embed",strings:["new","adman_ad_skipped",this.currentAdSection??""],numbers:[Ft()]}),this.log({message:"ad skipped"}),this.stopWatchDog()};this.onAdClosed=()=>{Ht.push("ui",{key:"videoplayer_embed",strings:["new","adman_ad_closed",this.currentAdSection??""],numbers:[Ft()]}),this.log({message:"ad closed"}),this.currentAdSection&&this.events.closed$.next(this.currentAdSection),this.stopWatchDog(),this.switchToVideo()};this.onAdCompleted=()=>{Ht.push("ui",{key:"videoplayer_embed",strings:["new","adman_ad_completed",this.currentAdSection??""],numbers:[Ft()]}),this.log({message:"ad completed"}),this.currentAdSection?this.events.ended$.next(this.currentAdSection):this.events.empty$.next(),this.switchToVideo(),this.stopWatchDog()};this.onAdClicked=()=>{Ht.push("ui",{key:"videoplayer_embed",strings:["new","adman_ad_clicked",this.currentAdSection??""],numbers:[Ft()]}),this.log({message:"ad clicked"}),this.videoElement?.pause(),this.currentAdSection&&this.events.clicked$.next(this.currentAdSection),this.stopWatchDog()};this.onAdError=(e="ad error")=>{Ht.push("ui",{key:"videoplayer_embed",strings:["new","adman_ad_error",e],numbers:[Ft()]}),this.log({message:e}),this.events.error$.next(e),this.switchToVideo(!0),this.stopWatchDog()};this.log=e.createComponentLog("AdmanWrapper"),Ht.push("ui",{key:"videoplayer_embed",strings:["new","adman_created"],numbers:[Ft()]}),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(Ht.push("ui",{key:"videoplayer_embed",strings:["new","adman_init","already inited: "+!!this.adman],numbers:[Ft(),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,$=this.playerState&&ve(this.playerState.vsid);$&&(this.isVsidOriginal?f=$:f=parseInt($,36));let{isEmbed:x,immediateOrigin:w}=w$(),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:lh(i,o),puid11:n?0:1};_||delete I.preview;let M={slot:l,wrapper:s,videoEl:d,videoQuality:o,params:I,browser:{mobile:!1}};try{let P=new window.AdmanHTML;P.setDebug(!1),P.onReady(this.onAdsReady),P.onStarted(this.onAdStarted),P.onPlayed(this.onAdPlayed),P.onPaused(this.onAdPaused),P.adMidrollPoint(this.onAdMidrollPoint),P.onClosed(this.onAdClosed),P.onSkipped(this.onAdSkipped),P.onClicked(this.onAdClicked),P.onTimeRemained(this.onAdTimeRemained),P.onCompleted(this.onAdCompleted),P.onError(this.onAdError),P.init(M),this.adman=P,this.videoElement=d,this.events.slotRequested$.next(),this.log({message:`adman init, config: ${JSON.stringify(M)}`})}catch(P){Ht.push("ui",{key:"videoplayer_embed",strings:["new","adman_init_threw",String(P)],numbers:[Ft()]}),this.onAdError("could not init adman")}}switchToVideo(e=!1){if(Ht.push("ui",{key:"videoplayer_embed",strings:["new","adman_switch_to_video",this.currentAdSection??"","force: "+e],numbers:[Ft()]}),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(Ht.push("ui",{key:"videoplayer_embed",strings:["new","adman_toggle_play",this.currentAdSection??""],numbers:[Ft()]}),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(Ht.push("ui",{key:"videoplayer_embed",strings:["new","adman_start_preroll"],numbers:[Ft()]}),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(Ht.push("ui",{key:"videoplayer_embed",strings:["new","adman_start_postroll",this.currentAdSection??""],numbers:[Ft()]}),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(Ht.push("ui",{key:"videoplayer_embed",strings:["new","adman_pplay",this.currentAdSection??""],numbers:[Ft()]}),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(Ht.push("ui",{key:"videoplayer_embed",strings:["new","adman_pause",this.currentAdSection??""],numbers:[Ft()]}),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(Ht.push("ui",{key:"videoplayer_embed",strings:["new","adman_skip",this.currentAdSection??""],numbers:[Ft()]}),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(){Ht.push("ui",{key:"videoplayer_embed",strings:["new","adman_destroy"],numbers:[Ft()]}),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&&C$(this.videoElement),this.isDestroyed=!0}};var dh=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 Xp=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 xc,{startTime:u,endTime:_}=c.parse(l);s.startTime=u,s.endTime=_}else if(l.trim()!==""){let c=new Jp,{texts:u}=c.parse(l);s.texts=[...s.texts,...u]}(s.startTime||s.endTime)&&s.texts.length>0&&o.push(s)}return o}},xc=class{constructor(){this.timeRegExp=/(\d{2,})?:?(\d{2}):(\d{2}).(\d{2,3})/;this.timingRegExp=new RegExp(`${this.timeRegExp.source}( ?--> ?)${this.timeRegExp.source}`)}parse(e){let i={startTime:0,endTime:0},o=this.timingRegExp.exec(e);return o&&(i.startTime=this.calcTime(o[1],o[2],o[3],o[4]),i.endTime=this.calcTime(o[6],o[7],o[8],o[9])),i}parseTime(e){let i=this.timeRegExp.exec(e);return i?this.calcTime(i[1],i[2],i[3],i[4]):0}isTime(e){return this.timeRegExp.test(e)}calcTime(e="0",i="0",o="0",n="0"){let a=Number(e)*60*60,s=Number(i)*60,d=Number(o),l=+`0.${n}`;return a+s+d+l}},Jp=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 xc;for(let s of n)a.isTime(s)?i.texts.push({type:"timestamp",value:a.parseTime(s)}):i.texts.push({type:"text",value:s});return i}},ch=Xp;import{isNonNullable as ef}from"@vkontakte/videoplayer-shared/es2024";var Ka,Yn,tf=0,of=!1,uh="",ph=(t,e=0,i=0)=>t<e&&t<i,wc=(t,e=0,i=0)=>t>=e&&t<=i,T$=(t,e=0,i=0)=>t>e&&t>i,fh=(t,e,i,o=!1)=>{let n=i.find(({id:d})=>d===e.value)?.subtitles;if(o)return n?.find(({startTime:l,endTime:c})=>wc(t,l,c));let a=t>=tf,s=t<tf;if(tf=t,s&&(of=!1),ef(Ka)&&wc(t,Ka.startTime,Ka.endTime)&&uh===e.value)return Ka;if(!ef(Yn)&&n?.length&&!of){Yn=n.find(({startTime:l,endTime:c})=>wc(t,l,c)||a&&ph(t,l,c)),Ka=void 0,!ef(Yn)&&n[n.length-1].endTime<t&&(of=!0);return}else{if(wc(t,Yn?.startTime,Yn?.endTime))return Ka=Yn,Yn=void 0,uh=e.value,Ka;(a&&T$(t,Yn?.startTime,Yn?.endTime)||s&&ph(t,Yn?.startTime,Yn?.endTime))&&(Yn=void 0)}};var mh={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"},I$={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"},Sc=t=>mh[t]??mh[I$[t]]??void 0;import{Subscription as E$}from"@vkontakte/videoplayer-shared/es2024";import"@vkontakte/videoplayer-statistics/es2024";var Cc=class{constructor(e,i=new E$){this.oneStat=e;this.statSubscription=i}destroy(){this.oneStat.destroy(),this.statSubscription.unsubscribe()}};var kc=(i=>(i.DESKTOP_CONTROL_PANEL_LEFT="desktop-control-panel-left",i.DESKTOP_CONTROL_PANEL_RIGHT="desktop-control-panel-right",i))(kc||{});var Vr=t=>t??0,Ls=(t,e)=>{let i=t?.getBoundingClientRect?.(),o=e?.getBoundingClientRect?.();return{top:Math.round(Vr(i?.top)-Vr(o?.top)),left:Math.round(Vr(i?.left)-Vr(o?.left)),bottom:Math.round(Vr(i?.bottom)-Vr(o?.top)),right:Math.round(Vr(i?.right)-Vr(o?.left))}},Vs=t=>{let e=t?.getBoundingClientRect?.();return{width:Vr(e?.width),height:Vr(e?.height)}};var gh=({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:$,player:x,disabledControls:w,isInteractive:S,interactiveRanges$:I,isInteractiveTime$:M,replayInteractive:P,stopPlayer:A,hasInteractiveBranches:T,playPrevChapterDisabledTooltip:B,additionalButtons:Q,additionalSettingsMenuItems:G,additionalContextMenuItems:ee,playPrevVideo:te,playNextVideo:ie,looped:oe=!1,statistics:ge,saveRate:X,internalsExposure:Ve})=>{let Ae={...$,configName:[...$.configName??[],"ui"],isAudioDisabled:s,live:{...$.live??{},isLiveCatchUpMode:!!n}},se=f,He=F$.createRootTracer(se.features.saveTraceInfoToFile),j=He.createComponentTracer("Store"),D=x||new A$(Ae,He);Ve?.expose({corePlayer:D});let Re=new B$,_e=new yc(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}),ke=Ra.getInstance(),Be=c?.pictureInPictureApi,pe=c?.annotationsApi,R=Re.createComponentLog("Store"),ye,Ie,je={},ze=new Xd,Te=ge?Ut(ge.oneStat.vsid$):Kn(void 0),Me=re(sa()),We=re(!1),it=Be?.info.isActive$??new U$(!1),vt=re(0),st=re([]),It=O$(D.events.fatalError$,D.events.managedError$).subscribe(p=>st.update(k=>[...k,p])),nt=Kn(!1,p=>{let k=D.events.fatalError$.subscribe(()=>p(!0));return()=>k.unsubscribe()}),gt=async p=>{let k=Object.values(V$).includes(p);if(se.downloadVKLanguages&&(k&&se.updateBuiltinLanguages||!dp(p))){let $e;try{$e=await N$(p,Jv,eg)}catch(rt){ge?.oneStat?.logError({errorType:"VKLangPack",fatal:!1}),ke?.report(rt,{errorType:"VKLangPack",fatal:!1})}$e&&(lp({language:p,pack:$e,fallback:se.defaultLanguage}),Mt.set(p))}dp(p)&&Mt.set(p)},Mt=re(t),Ce=re(e);gt(t);let Oe=(p,k)=>{let O=ve(Mt);return cp(O,p,k,se.defaultLanguage)},Ze=re("thumb"),q=(()=>{let p=ni([nt,Ze],([k,O])=>k?"crashed":O);return{...p,is:k=>ve(p)===k}})(),ae=(()=>{let p=re(new Set(w));return{...p,add:k=>{p.update(O=>new Set([...O].concat(k)))},remove:k=>{p.update(O=>{let $e=[...O];return new Set(Array.isArray(k)?$e.filter(rt=>!k.includes(rt)):$e.filter(rt=>rt!==k))})},includes:k=>{let O=ve(p);return Array.isArray(k)?k.every($e=>O.has($e)):O.has(k)}}})();j.log("create store"),R({message:"create store"});let ne=p=>{let k=p.container;k.append(D.experimental.element$.getValue()),ct=new MutationObserver(O=>{let{removedNodes:$e}=O[0];$e.length&&k.append(D.experimental.element$.getValue())}),ct.observe(k,{childList:!0})},Fe=p=>{R({message:`init video, config: ${JSON.stringify(p)}`}),S?ne(p):(W$.push("ui",{key:"videoplayer_embed",strings:["new","core_init_video"],numbers:[q$()]}),D.initVideo(p)),j.log("init video",{isInteractive:S}),p.subtitles&&D.setExternalTextTracks(p.subtitles),ye=p},Ge=new Tc,wt=p=>Ge.next(p),Ke=new Tc,Je=new Tc,Ee=new Tc,ct=null,Bt={actionRewind$:Ke,actionSeek$:Je,inPiP$:it,inFullscreen$:new H$(p=>Me.subscribe(k=>p.next(k))),actionSetSubtitle$:Ee,nextMovie$:Ge};if(ge){let{oneStat:p,statSubscription:k}=ge;S||k.add(p.attachTo(D)),k.add(p.attachToUi(Bt)),k.add(p.attachToAds(_e.events)),p.authorize(a).catch(O=>{R({message:`onestat auth error ${String(O)}`})})}if(ke){let p=new nf,k=(O,$e)=>p.add(O.subscribe($e));if(k(D.events.managedError$,O=>{ke.logIError(O)}),k(D.events.fatalError$,O=>{ke.logIError(O,!0)}),ge){let{oneStat:O}=ge;k(O.experimental.error$,$e=>{ke.logIError($e)})}ke.sentrySubscription.add(p)}let Gt=()=>{M$.device.isIOS&&Ie&&Ng(Ie).catch(p=>{R({message:`exitIosSafariFullscreen failed: ${p}`})})},Xt=new nf().add(D.experimental.element$.subscribe(p=>{p&&(Ie=p,p.classList.add("player-media"),Ba(Be)&&(Be.updateVideoElement(),Be.registryEventHandlers()),S&&p.setAttribute("pip","false"))})).add(D.events.ended$.subscribe(()=>{Gt(),l?.onEnded?.()})).add(D.events.looped$.subscribe(()=>{l?.onLooped?.()})).add(D.events.started$.subscribe(async()=>{Ba(Be)&&await Be?.revealPictureInPicture();let p=D.info.muted$.getValue();l?.onStarted?.(),je.onStarted?.(p)})).add(D.events.willSeek$.subscribe(({from:p,to:k})=>{l?.onSeek?.(p,k)})).add(D.events.autoplaySoundProhibited$.subscribe(()=>{l?.onAutoplaySoundProhibited?.()})).add(D.info.position$.subscribe(p=>{let k=D.info.duration$.getValue();isFinite(k)&&k>0&&(l?.onTimeupdate?.(k,p),_e.setPosition(p,k))})).add(D.events.fatalError$.subscribe(p=>{l?.onCrashed?.(p?`${p.id}: ${p.message}`:void 0)})).add(D.events.fetcherRecoverableError$.subscribe(p=>{l?.onRecoverableError?.(p?`${p.id}: ${p.message}`:void 0)})).add(D.events.loadedMetadata$.subscribe(()=>{ut.state.loadedMetadata$.set(!0)})).add(D.info.is3DVideo$.subscribe(p=>{ut.ui.is3DVideo.set(p)})).add(D.info.isEnded$.subscribe(p=>{S&&(p?(M?.getValue()&&ae.add(ml),ae.add("PLAY_BUTTON")):ae.remove("PLAY_BUTTON"))})).add(D.info.liveTime$.subscribe(p=>{l?.onLiveTime?.(p)})).add(D.info.isStalled$.subscribe(p=>{l?.onStalledChanged?.(p)})).add(D.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?.())),ri=new nf,Wi=()=>{let{debugLog:p}=se,k,O="#9df7b7",$e="#efd169";if(p&&p!==!0){let{colors:bt}=p;k=p.tag,O=bt?.[0]??O,$e=bt?.[1]??bt?.[0]??$e}let rt=k?`: ${k}`:"";ri.add(D.events.log$.subscribe(bt=>{console.debug(`%c sdk${rt} `,`background:${O};`,`sdk component: ${bt.component}`,bt.message)})).add(Re.log$.subscribe(bt=>{console.debug(`%c ui${rt} `,`background:${$e};`,`ui component: ${bt.component}.`,bt.message)}))},Oo=()=>{ri.unsubscribe()},on=(p,k)=>{j.log("start camera manual rotation",{mx:p,my:k}),D.startCameraManualRotation(p,k)},to=(p=!1)=>{j.log("stop camera manual rotation",{immediate:p}),D.stopCameraManualRotation(p)},nn=(p,k,O)=>{j.log("move camera focus px",{xpx:p,ypx:k,dt:O}),D.moveCameraFocusPX(p,k,O)},Ho=()=>{D.holdCamera()},Fo=()=>{D.releaseCamera()},co=Kn(D.info.position$.getValue(),p=>{let k,O,$e=()=>{let rt=D.info.playbackState$.getValue(),bt=D.info.isLive$.getValue(),Nt=D.info.duration$.getValue(),jt=D.info.position$.getValue();if(rt&&[Hl.PLAYING,Hl.PAUSED].includes(rt)){let mo=bt?jt-Nt:D.getExactTime();mo!==O&&p(mo),O=mo}k=requestAnimationFrame($e)};return $e(),()=>cancelAnimationFrame(k)}),z=Ut(D.info.playbackState$),zt=Ut(D.info.currentBuffer$),hi=Ut(D.info.isEnded$),qi=Ut(D.info.isLive$),Jt=se.features.playbackRate?Ut(D.info.canChangePlaybackSpeed$):Kn(!1),ei=Ut(D.info.liveBufferTime$),jn=Ut(D.info.volume$),_o=Ut(D.info.muted$),rn=Jd(D.info.predefinedQualityLimitType$.pipe(vh(p=>p===Rr.TRAFFIC_SAVING)),D.info.predefinedQualityLimitType$.getValue()===Rr.TRAFFIC_SAVING),bo=Jd(D.info.predefinedQualityLimitType$.pipe(vh(p=>p===Rr.HIGH_QUALITY)),D.info.predefinedQualityLimitType$.getValue()===Rr.HIGH_QUALITY),Vt=Ut(D.info.autoQualityLimitingAvailable$),uo=Ut(D.info.availableQualities$),$t=Ut(D.info.availableQualitiesFps$),Ot=Ut(D.info.chromecastState$),po=Ut(D.info.chromecastDeviceName$),Ci=Ut(D.info.currentFormat$),Tn=Ut(D.info.throughputEstimation$),io=Ut(D.info.videoBitrate$),oo=Ut(D.info.intrinsicVideoSize$),Yt=Ut(D.info.duration$),mt=Ut(D.info.isAudioAvailable$),ai=null,mi=D.info.isBuffering$,_i=Kn(mi.getValue(),p=>{let k=mi.subscribe(O=>{O&&ai===null?ai=window.setTimeout(()=>{p(mi.getValue()),ai=null},se.loaderDelay):p(O)});return()=>{k.unsubscribe(),ai&&clearTimeout(ai)}}),an=()=>{ai&&clearTimeout(ai),ai=null},ui=ni([Yt,qi],([p,k])=>k?-p:p),Pi=ni([z],([p])=>p===Hl.PLAYING),Uo=Ut(D.info.atLiveEdge$),sn=Ut(D.info.atLiveDurationEdge$),vi=Ut(D.info.position$),In=ni([vi,Yt],([p,k])=>isFinite(p)&&isFinite(k)&&!!k),zo=ni([Ot],([p])=>p===P$.CONNECTED),no=Ut(D.info.availableVideoStreams$),ln=se.features.audioLanguages?Ut(D.info.availableAudioStreams$):Kn([]),$r=Ut(D.info.currentVideoStream$),Zn=Ut(D.info.currentAudioStream$),En=p=>{p.language&&sp(p.language),D.setVideoStream(p)},dn=p=>{p.language&&sp(p.language),D.setAudioStream(p)},Wo=p=>{let k;if(p.length===1&&(k=p.at(0)),k??=p.find($e=>"isDefault"in $e&&$e.isDefault),k)return k;let O=wg();return O&&(k=p.find(({language:$e})=>O===$e)),k??=p.at(0),k},cn=!1;Xt.add(D.info.availableAudioStreams$.subscribe(p=>{if(!cn&&p.length){let k=Wo(p);k&&(D.setAudioStream(k),cn=!0)}}));let Ki=!1;Xt.add(D.info.availableVideoStreams$.subscribe(p=>{if(!Ki&&p.length){let k=Wo(p);k&&(D.setVideoStream(k),Ki=!0)}}));let et=re(void 0),qo=Ut(D.info.isAutoQualityEnabled$,p=>p&&et.set(void 0)),Pn=Ut(D.info.currentQuality$,()=>et.set(void 0)),An=ni([et,Pn],([p,k])=>p??k),un=ni(Ci,p=>p!==Fl.MPEG),Ko=ni([uo,$t,qo,An,un],([p,k,O,$e,rt])=>{let bt=[];rt&&bt.push({value:"auto",displayValue:Oe("auto_quality_option"),selected:O});let Nt=p.filter(jt=>!R$(jt));for(let jt of Nt){let mo=k[jt];bt.push({value:jt,displayValue:`${jt}${mo?dh(mo):""}`,selected:O?!1:jt===$e})}return bt}),Qo=Ut(D.info.currentPlaybackRate$),$o=ni([Qo,Uo,sn],([p,k,O])=>{let $e=O||S?1:se.controls.playbackRateMin,rt=k?1:se.controls.playbackRateMax,bt=se.controls.playbackRateStep,Nt=[];for(let jt=$e;jt<=rt;jt+=bt)Nt.push({value:jt,displayValue:jt===1?Oe("playback_rate_1"):Oe("playback_rate",{multiplier:jt.toString(10)}),selected:p===jt});return Nt}),ki={displayValue:Oe("subtitles_off"),value:"off"},Ti=re({...ki}),Mn=se.features.subtitles?Ut(D.info.availableTextTracks$):Kn([]),pn=mg(),Ln=ni([Mn,Ti],([p,k],O)=>{let $e=[],rt=p.find(({id:bt})=>bt===k.value);if(rt?.url){let[,bt]=pn.find(rt.url)??[];if(bt){O(bt);return}ze.download(rt.url).then(Nt=>{if(!Nt||ze.isDestroyed())return;let jt=new ch,mo=rt.language;if(mo){let tu=!!rt.isAuto,t1=jt.parse(Nt,mo);$e.push({lang:mo,subtitles:t1,isAuto:tu,id:rt.id})}pn.add(rt.url,$e),ve(Ti).value===k.value&&O($e)}).catch(Nt=>{ge?.oneStat?.logError({errorType:"Subtitles download",fatal:!1}),ke?.report(Nt,{errorType:"Subtitles download",fatal:!1})})}O($e)}),Xn=ni([Qo,Pi,Ti],([p,k,O],$e)=>{let Nt;if(D.info.isLive$.getValue()&&k&&O.value!==ki.value){let mo=()=>{let tu=1e3/(3*p);Nt=setTimeout(mo,tu),$e(Date.now())};return mo(),()=>clearTimeout(Nt)}}),Ai=ni([Mn,Ti],([p,k])=>{if(!p.length)return[];let O=[];for(let{language:$e,isAuto:rt,id:bt}of p){let Nt=$e&&Sc($e);$e&&Nt&&O.push({displayValue:rt?Oe("subtitles_auto",{language:Nt}):Nt,value:bt,selected:k?.value===bt,isAuto:rt})}return O.length?(O.unshift({...ki,selected:k?.value===ki.value}),O):[]}),Mi={available:[],prev:[]},fn=()=>D.experimental.getCurrentTime$.getValue()?.()??Ie?.currentTime??0,mn=ni([co,Ti,Ln,Xn],([p,k,O,$e])=>{let rt=D.info.isLive$.getValue();if(rt&&Mi.prev!==O){let bt=O.find(({id:jt})=>jt===k.value),Nt=Mi.prev.find(({id:jt})=>jt===k.value);if(bt){let jt={...bt,subtitles:[...Nt?.subtitles??[],...bt.subtitles]};Mi.available=[jt],Mi.prev=O}}if(k&&k.value!==ki.value){let bt=rt?fn():p,Nt=rt?Mi.available:O;return fh(bt,k,Nt,rt)}}),Qi=ni([mn],([p])=>p?.texts?p.texts:[]),Li=re(!0),vn=ni([zt,ui,vi,ei],([p,k,O,$e])=>{let rt=p?.end??0;if(!$e)return rt/k;let Nt=-O+$e-k;return(rt-Nt)/k}),fo=Ut(D.info.availableSources$),yr=ni([fo],([p])=>Object.keys(p?.[Fl.MPEG]||{}).length>0),gn=()=>{let p=Object.keys(D.info.availableSources$?.getValue()?.[Fl.MPEG]||{}),k=L$(p)||z$.Q_144P;return ye.sources[Fl.MPEG]?.[k]},Jn=()=>{let p=gn();if(p)j.log("download video",{url:p}),ug(p,ye?.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=D.info.muted$.getValue();D.info.volume$.getValue()===0&&!p?bn(Rn()):qt(!p)},_n=()=>{if(ut.ui.settingsMenu.visible$.set(!1),!ve(ut.ui.settingsSubMenu.visible$)){let p=ve(ut.ui.settingsMenu.ref$);if(l?.uiInfo?.onSettingsMenu&&p){let O=Vs(p),$e={top:0,left:0,bottom:0,right:0};l.uiInfo.onSettingsMenu({visible:!1,size:O,position:$e,name:"settings"})}}j.log("close settings menu")},xr=async(p,k=()=>Promise.resolve())=>{ut.ui.settingsMenu.openedByBtnKeyboard$.set(!!p),ut.ui.settingsMenu.visible$.set(!0),await k();let O=ve(ut.ui.settingsMenu.ref$),$e=ha();if(l?.uiInfo?.onSettingsMenu&&O&&$e){let bt=Vs(O),Nt=Ls(O,$e);l.uiInfo.onSettingsMenu({visible:!0,size:bt,position:Nt,name:"settings"})}j.log("open settings menu",{wasOpenedByKeyboard:p})},Vn=(p,k=!1)=>{ut.ui.settingsSubMenu.visible$.set(!1);let O=ve(ut.ui.settingsMenu.ref$),$e=ha(),rt=ve(ut.ui.settingsMenu.visible$);if(l?.uiInfo?.onSettingsMenu&&O&&$e)if(rt&&!k){let Nt=Vs(O),jt=Ls(O,$e);l.uiInfo.onSettingsMenu({visible:!0,size:Nt,position:jt,name:"settings"})}else{let Nt=Vs(p),jt={top:0,left:0,bottom:0,right:0},mo=ve(ut.ui.settingsSubMenu.name$);l.uiInfo.onSettingsMenu({visible:!1,size:Nt,position:jt,name:mo})}j.log("close settings sub menu")},er=(p,k)=>{ut.ui.settingsSubMenu.visible$.set(!0),ut.ui.settingsSubMenu.ref$.set(k),ut.ui.settingsSubMenu.name$.set(p);let O=ha();if(l?.uiInfo?.onSettingsMenu&&k&&O){let rt=Vs(k),bt=Ls(k,O);l.uiInfo.onSettingsMenu({visible:!0,name:p,size:rt,position:bt})}j.log("open settings sub menu",{name:p})},Rn=()=>{let p=Math.max(se.volumeMinRestore,ec()??0);return p===0?se.volumeDefault:p},bn=p=>{let k=p===0?Rn():p,O=D.info.muted$.getValue();R({message:`set volume, volume: ${p}, preferredVolume: ${k}`}),O&&p>0&&!s&&(O=!1,rp(!1)),D.setVolume(p,O),_e.setVolume(p),ep(k)},qt=p=>{let k=D.info.volume$.getValue();if(R({message:`set muted, currentVolume: ${k}, mute: ${p}`}),D.setMuted(p),_e.setVolume(p?0:k),rp(p),!p&&k===0){let O=Rn();D.setVolume(O),ep(O),_e.setVolume(O)}},yo=re(!1),lt=p=>{j.log("set looped",{isLooped:p}),yo.set(p),D.setLooped(p)};lt(oe);let Lt=()=>{l?.uiInfo?.onReportProblem?.()},Zt=(p,k=!1)=>{R({message:`set autoplayNextEnabled, value: ${p}`}),j.log("set autoplay next enabled",{autoplayNextEnabled:p}),ut.ui.autoplayNextEnabled$.set(p),kg(p),k&&l?.onSetAutoplayNextEnabled?.(p)},Kt=p=>{R({message:`set timerNextVideoRunning, value: ${p}`}),j.log("set timer next video running",{timerNextVideoRunning:p}),ut.ui.timerNextVideoRunning$.set(p)},Gi=(p=!0)=>{let k=!0;if(p&&l?.onPrevVideoClick)try{k=l?.onPrevVideoClick?.()}catch{R({message:"onPrevVideoClick callback failed to execute"})}if(!k)return;p&&Ri("prev")||te()},Vi=(p=!0)=>{let k=!0;if(p&&l?.onNextVideoClick)try{k=l?.onNextVideoClick?.()}catch{R({message:"onNextVideoClick callback failed to execute"})}if(!k)return;p&&Ri("next")||ie()},Ri=p=>{let{isMobile:k,features:{playbackStatusNextVideoShow:O,playbackStatusShow:$e}}=se;return O&&$e&&!k?(ut.ui.aboutToGoNextVideo.set(p),ut.ui.userActionsDisabled.set(!0),!0):!1},xo=()=>{l?.onNextVideoAnnouncementShow?.()},wo=()=>{l?.onNextVideoAnnouncementClick?.()},bi=()=>{l?.onNextVideoAnnouncementAuto?.()},Xe=()=>{l?.onNextVideoAnnouncementCancel?.()},pt=()=>{D.prepare()},Di=()=>{kn(ut);let p=ve(ut.ui.controls.disabledControls$),k=ve(ut.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 $e=()=>{R({message:"toggle play, call player.play"}),O.action="play",D.play(),l?.onPlay?.()},rt=()=>{R({message:"toggle play, call player.pause"}),O.action="pause",D.pause(),l?.onPause?.()};if(D.info.isEnded$.getValue()){if(R({message:"toggle play, video ended, seek to 0"}),Ke.next(),Je.next(jr.REWIND),S){P?.();return}D.seekTime(0),$e()}else D.info.playbackState$.getValue()!==Hl.PLAYING?$e():rt();j.log("toggle play",O)},$i=(p,{changeReason:k="default",appliesTo:O="to-video"}={})=>{R({message:`set quality, quality: ${p}`}),j.log("set quality",{quality:p}),D.setAutoQuality(p==="auto"),p!=="auto"?(se.features.qualityDetailsSubMenuEnabled?(tc({type:"exact_quality",quality:p,videoId:i},O),gl(),D.setPredefinedQualityLimits(Rr.UNKNOWN)):tp(i,p),et.set(p),D.setQuality(p)):se.features.qualityDetailsSubMenuEnabled?k==="default"&&(So("auto_quality",O),ve(rn)&&tr(!1),ve(bo)&&ir(!1)):gl()},tr=(p,k="as-default")=>{R({message:`set trafficSavingEnabled, value: ${p}`}),j.log("set traffic saving enabled",{trafficSavingEnabled:p});let O=p?Rr.TRAFFIC_SAVING:Rr.UNKNOWN;se.features.qualityDetailsSubMenuEnabled?(yi(O,k),vl(!1)):(D.setPredefinedQualityLimits(O),vl(p))},ir=(p,k="as-default")=>{R({message:`set highQualityEnabled, value: ${p}`}),j.log("set high quality enabled",{highQualityEnabled:p}),yi(p?Rr.HIGH_QUALITY:Rr.UNKNOWN,k)},yi=(p,k)=>{p!==Rr.UNKNOWN&&(ve(Vt)&&!ve(qo)&&$i("auto",{appliesTo:k,changeReason:"limit-changed"}),So(p,k)),D.setPredefinedQualityLimits(p)},So=(p,k)=>{tc({type:p,videoId:i},k),k==="as-default"&&tc({type:p,videoId:i},"to-video")},$n=p=>{j.log("set playback rate",{playbackRate:p}),D.setPlaybackRate(p),se.features.saveRate&&X&&!D.info.isLive$.getValue()&&Sg(p)},Dr=()=>{let p=ve($o),k=p.findIndex(({selected:$e})=>$e);if(k===p.length-1)return;let O=p[k+1];$n(O.value)},wr=()=>{let p=ve($o),k=p.findIndex(({selected:$e})=>$e);if(k===0)return;let O=p[k-1];$n(O.value)},Co=(p={...ki,selected:!1})=>{j.log("set subtitles",{...p}),p&&p.value!==ki.value&&Ee.next(p.isAuto?p.value+"_auto":p.value),Ti.set(p)},Dn=()=>{j.log("toggle subtitles");let p=ve(Ai),k=ve(Ti),O=ve(Mt);if(k?.value===ki.value){let $e=p.filter(rt=>rt.value!==ki.value).find(rt=>rt.value===O)||p[1];Co($e)}else Co()},ko=(p,k,O=!0)=>{if(R({message:`seek to time, time: ${p}`}),j.log("seek to time",{time:p,action:k,forcePrecise:O}),Je.next(k),D.info.isLive$.getValue()){let $e=D.info.duration$.getValue(),rt=Math.min(0,$e+p);D.seekTime(rt,O)}else{if(M?.getValue())return;D.info.isEnded$.getValue()&&(R({message:"seek after ended, call callbacks.onPlay"}),l?.onPlay?.()),D.seekTime(qe(p),O)}},Sr=p=>{R({message:`seek to episode start time: ${p}`}),j.log("seek to episode start time",{time:p}),ko(p,jr.EPISODE,!0)},or=(p,k)=>{R({message:`seek to percent, percent: ${p}`}),j.log("seek to percent",{percent:p,action:k});let O=ve(ui)*p;ko(O,k,!1)},nr=p=>{R({message:`seek external, time: ${p}`}),j.log("seek external",{time:p}),Je.next(jr.UNKNOWN),D.seekTime(D.info.isLive$.getValue()?-p:p)},Cr=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}),D.setAutoQualityLimits(p)},To=p=>{R({message:`seek external to episode start time: ${p}`}),j.log("seek external to episode start time",{time:p}),ko(p,jr.EPISODE,!0)},kr=p=>{R({message:`set playback rate to: ${p}`}),j.log("set playback rate external",{playbackRate:p}),D.setPlaybackRate(p)},Nn=re(void 0),Bn=re(!1),rr=p=>{R({message:`start scrubbing, progress: ${p}`}),j.log("start scrubbing",{progress:p}),Bn.set(!0),Ye(p)},Ye=p=>{Nn.set(p)},Et,pi,ro=()=>{Nn.set(void 0),Bn.set(!1)},Io=()=>{clearTimeout(pi),clearTimeout(Et),Et=window.setTimeout(()=>{ro()},500),Ie?.removeEventListener("seeked",Io)},On=p=>{R({message:`complete scrubbing, progress: ${p}`}),j.log("complete scrubbing",{progress:p}),or(p,jr.SLIDER),ve(ut.ui.isMobile)&&ve(ut.state.currentFormat$)===Fl.HLS?(Ie?.addEventListener("seeked",Io),pi=window.setTimeout(()=>{Io()},300)):ro()},ar=ni([co,ui,Nn],([p,k,O],$e)=>{$e(D$(O)?O*k:p)}),we=re(!1),yt=()=>{we.set(!0)},Dt=()=>{we.set(!1)},Wt=re({width:0,height:0}),Ni=ni([Wt],([{width:p}],k)=>{let O=nh(p);k(O)}),Ii=re(!1),si=Q.filter(p=>pg(p)),Hn=ni([Ni,Ii],([p,k])=>k?si.filter(O=>!O.hideOnMobile):si.filter(O=>!O.hideOnDesktopGridTypes?.includes(p))),Pe=re(Q.filter(p=>fg(p))),Tt=ni([Pe,Ni],([p,k])=>p.filter(O=>!O.hideOnDesktopGridTypes?.includes(k))),li=ni([Tt,Hn],([p,k])=>[...se.features.additionalButtonsDesktopControlPanelRight?p.filter(O=>O.type==="desktop-control-panel-right"):[],...se.features.additionalButtons?k.map((O,$e)=>({id:$e,weight:$e,type:"desktop-control-panel-right",testId:O.testId,icon:O.iconUrl,onClick:O.onClick,ariaLabel:O.ariaLabel??O.tooltip,tooltipText:O.tooltip})):[]]),Ei=re(G),Eo=ni([Ei],([p])=>se.features.additionalSettingsMenuItems?p.map(k=>k.type==="SWITCH"?{...k,onClick:k.onChangeEnabled}:k):[]),sr=(p,k)=>{let O=ve(Pe).map($e=>$e.id!==p?$e:{...$e,...k});Pe.set(O)},Po=p=>{let k=ve(Pe);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),Pe.set(k)},Tr=p=>{let k=ve(Pe);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),Pe.set(k)},Xa=p=>{Je.next(jr.LIVE),R({message:"live switch to low latency "+p}),j.log("live switch to low latency "+p),D.setLiveLowLatency(p)},Os=(p,k)=>{let O=ve(Ei).map($e=>$e.id!==p?$e:{...$e,...k});Ei.set(O)},Ja=p=>{let k=ve(Ei);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),Ei.set(k)},es=p=>{let k=ve(Ei);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),Ei.set(k)},Fn=re(ee),Hs=ni([Fn],([p])=>se.features.additionalContextMenuItems?p:[]),_t=(p,k)=>{let O=ve(Fn).map($e=>$e.id!==p?$e:{...$e,...k});Fn.set(O)},xt=p=>{let k=ve(Fn);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),Fn.set(k)},Go=p=>{let k=ve(Fn);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),Fn.set(k)},Nr=ni([Ii,nt],([p,k],O)=>{O(p&&k)}),ea=()=>{Je.next(jr.LIVE),R({message:"switch to active live"}),j.log("switch to active live"),D.seekTime(0),D.info.playbackState$.getValue()!==Hl.PLAYING&&ut.actions.internal.togglePlay()},Br=()=>{j.log("skip adman"),_e.skip()},lr=(p=!0)=>{kn(ut),R({message:`switch from ads to video, callPlay: ${p}`}),j.log("switch from ads to video",{callPlay:p}),Ze.set("video"),p&&D.play()},ga=()=>{kn(ut),R({message:"switch from video to ads"}),j.log("switch from video to ads"),ut.actions.internal.pause(),Gt(),Ze.set("ads")},ts=p=>{kn(ut);let k=p?"LiveWaitingStart":"thumb";j.log("set live waiting start",{state:p,playerPhase:k}),Ze.set(k)},Gc=p=>{kn(ut);let k=p?"LiveWaitingRecover":"thumb";j.log("set live waiting recover",{state:p,playerPhase:k}),Ze.set(k)},_d=p=>{kn(ut);let k=p?"LiveWaitingRecord":"thumb";j.log("set live waiting record",{state:p,playerPhase:k}),Ze.set(k)},Yc=()=>(kn(ut),j.log("get debug text data"),dg(D,ye,ut)),bd=()=>(kn(ut),JSON.stringify(He.getFinishedSpans())),jc=()=>(kn(ut),cg(D,ye,ut)),ha=()=>Ie,Zc=()=>{R({message:"toggle chromecast"}),j.log("toggle chromecast"),D.toggleChromecast()},Fs=p=>{if(kn(ut),D.info.isEnded$.getValue())return;let k=!p;if(ve(ut.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?.(),D.pause()},$d=p=>{kn(ut);let k=!p;if(ve(ut.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?.(),D.play()},yd=p=>{kn(ut);let k=!p;if(ve(ut.playerPhase)==="ads"){R({message:"player cannot be stopped during ads via external method"});return}R({message:`player will be stopped, internalCall: ${k}`}),A?.()},xd=(p,k)=>{kn(ut),R({message:`first start, show ads: ${p}, internalCall: ${!k}`}),j.log("first start",{showAds:p,external:k}),p?Ze.set("ads"):(Ze.set("video"),k?D.play():ut.actions.internal.togglePlay())},is=()=>(R({message:"getting time codes"}),u),Us=()=>{let p=is();if(!p||[0,1].includes(p.length))return;let k=D.info.position$.getValue();return p.find(O=>O.time>k)},wd=p=>{let k=p;k||(k=Us());let O=D.info.position$.getValue();j.log("seek to next episode",{currentTime:O,...k}),k&&(R({message:"seek to next episode"}),ko(k.time,jr.EPISODE,!0))},Sd=()=>{let p=is();if(!p||[0,1].includes(p.length))return;let k=D.info.position$.getValue(),O=p.findIndex(rt=>rt.time>k),$e=O===-1?p.length-2:O-2;if(!($e<0))return p[$e]},Cd=p=>{let k=p;k||(k=Sd());let O=D.info.position$.getValue();j.log("seek to prev episode",{currentTime:O,...k}),k&&(R({message:"seek to prev episode"}),ko(k.time,jr.EPISODE,!0))},Xc=()=>(R({message:"getting preview thumbs data"}),j.log("get preview thumbs data",{..._}),_),kd=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})},Jc=(p=-90)=>{j.log("rotate video",{alphaDiff:p}),vt.update(k=>k+p)},os=re([]);I?.subscribe(p=>{let k=[];for(let O=0;O<p.length;O++){let{range:[$e,rt],subjects:bt}=p[O];O===0&&$e!==0&&k.push({time:0,text:"",interactive:!1,completed:!0}),k.push({time:$e/1e3,text:"",interactive:!0,completed:se.features.interactiveTimeOpenUri?!bt.length||bt.every(Nt=>Nt.isRemoved):!bt.length}),rt!==1/0&&k.push({time:rt/1e3,text:"",interactive:!1,completed:!0})}os.set(k)});let eu=re(!1);M?.subscribe(p=>{p&&ve(Bn)&&ro()});let qe=p=>{if(!S)return p;let k=ve(os),O=ve(ui),rt=ve(vi)/O,bt=k.find(Nt=>Nt.interactive&&!Nt.completed&&Nt.time>rt);return typeof bt?.time=="number"?Math.min(p,bt.time-.05):p},Qt=()=>{ut.ui.episodes.panelOpened$.set(!1)},Un=()=>{j.log("destroy store"),clearTimeout(pi),clearTimeout(Et),Xt.unsubscribe(),ri.unsubscribe(),D.destroy(),_e.destroy(),ge?.destroy(),ke?.destroy(),It.unsubscribe(),ct?.disconnect(),ct=null,ze.destroy()},ut={interfaceLanguage$:Mt,isCyrillicRelatedInterface$:Ce,initVideo:Fe,videoId:i,isClip:o,playerPhase:q,vsid:Te,state:{positionExact$:co,positionWithScrubbing$:ar,duration$:ui,playbackState$:z,isPlaying$:Pi,isLoaderVisible:_i,bufferedProgress$:vn,isLive$:qi,canChangePlaybackSpeed$:Jt,isActiveLive$:Uo,isOldestAvailableLive$:sn,isRewindableLive$:In,isEnded$:hi,muted$:_o,volume$:jn,trafficSavingEnabled$:rn,highQualityEnabled$:bo,autoQualityLimitingAvailable$:Vt,availableVideoStreams$:no,availableAudioStreams$:ln,videoStream$:$r,audioStream$:Zn,currentQuality$:An,isAutoQualityEnabled$:qo,availableQualities$:Ko,currentPlaybackRate$:Qo,availablePlaybackRates$:$o,currentSubtitle$:Ti,availableTextTracks$:Mn,availableSubtitlesList$:Ai,currentSubtitleCaptions$:Qi,isAutoSubtitleCaptionVisible$:Li,chromecastState$:Ot,chromecastDeviceName$:po,chromecastConnected$:zo,currentFormat$:Ci,throughputEstimation$:Tn,videoBitrate$:io,videoSize$:oo,errorLog$:st,crashed$:nt,isAudioAvailable$:mt,isAudioDisabled:!!s,canDownload:se.features.download&&!!d,availableSources$:fo,hasMpegSources$:yr,isInteractive:S,showInteractiveGraph:se.features.interactiveGraph,showSeekToInteractive:se.features.seekToInteractive,showPlayPrevChapter:se.features.interactivePlayPrevChapter,showInteractiveTimeIndicator:se.features.interactiveTimeIndicator&&!!ve(os).length,interactiveEpisodes$:os,isInteractiveTime$:M?Ut(M):re(!1),isInteractiveExpectation$:eu,hasInteractiveBranches:T,playPrevChapterDisabledTooltip:B,looped$:yo,loadedMetadata$:re(!1),isAutoQualityAvailable$:un},ui:{t:Oe,controlsVisible:re(!1),touched:re(!1),controls:{prevButton:re(void 0),playButton:re(void 0),replayButton:re(void 0),nextButton:re(void 0),playPrevChapterButton:re(void 0),seekToInteractiveButton:re(void 0),interactiveGraphButton:re(void 0),liveButton:re(void 0),time:re(void 0),episodes:re(void 0),volume:re(void 0),subtitles:re(void 0),settings:re(void 0),context:re(void 0),chromecast:re(void 0),pip:re(void 0),fullscreen:re(void 0),vkLogo:re(void 0),interactiveTimeIndicator:re(void 0),timeline:re(void 0),autoplayNextToggle:re(void 0),additionalButtons:Q.length?Q.reduce(p=>[...p,re(void 0)],[]):[],disabledControls$:ae},modals:{hotKeyMap:{show:re(!1),data:re({title:"",closeBtnText:"",groups:[]})}},isFullscreen:Me,isFullscreenOpenedByKeyboard:We,rotateAlpha:vt,isAutoplay:re(!1),debugPanelVisible:re(!1),episodes:{panelOpened$:re(!1),openedByKeyboard$:re(!1)},contextMenu:{visible$:re(!1),btnRef$:re(void 0),openedByBtnKeyboard$:re(!1),openedByHotKey$:re(!1),lastActiveElem$:re(void 0),showContextMenuBtn$:re(!1),position$:re({top:0,left:0})},playerSize:Wt,isMobile:Ii,mobileNotReportControlHidden$:Nr,mobileUnmuteButtonExpanded:re(!1),mobileUnmuteButtonVisible:re(!1),icon3DVideoVisible:re(!1),scrubbingInProgress:Bn,volumeChangingInProgress:we,is3DVideo:re(!1),currentGridType$:Ni,additionalButtonsDeprecated$:Hn,additionalDesktopControlPanelRightButtons$:li,additionalSettingsMenuItems$:Eo,additionalContextMenuItems$:Hs,interactiveHideMobileControls:re(!1),overlayContainer$:re(void 0),startedByKeyboard$:re(!1),autoplayNextEnabled$:re(!1),timerNextVideoRunning$:re(!0),settingsMenu:{visible$:re(!1),ref$:re(void 0),openedByBtnKeyboard$:re(!1)},settingsSubMenu:{visible$:re(!1),ref$:re(void 0),name$:re(void 0)},aboutToGoNextVideo:re(void 0),userActionsDisabled:re(!1)},ads:{position:re(0),duration:re(0),playbackState:re("inactive"),canSkip:re(!1),secondsToWatchBeforeSkip:re(0),postrollPassed:re(!1)},webApi:{pictureInPictureApi:Be,annotationsApi:pe},actions:{internal:{preload:pt,firstStart:p=>xd(p,!1),play:()=>$d(!1),pause:()=>Fs(!1),togglePlay:Di,toggleMuted:hn,openSettingsMenu:xr,closeSettingsMenu:_n,openSettingsSubMenu:er,closeSettingsSubMenu:Vn,setVolume:bn,startVolumeChanging:yt,stopVolumeChanging:Dt,setVideoStream:En,setAudioStream:dn,setQuality:$i,setTrafficSavingEnabled:tr,setHighQualityEnabled:ir,setPlaybackRate:$n,incrementPlaybackRate:Dr,decrementPlaybackRate:wr,setSubtitle:Co,toggleSubtitle:Dn,togglePictureInPicture:kd,startScrubbing:rr,progressScrubbing:Ye,completeScrubbing:On,toggleChromecast:Zc,switchToActiveLive:ea,switchFromAdsToVideo:lr,switchFromVideoToAds:ga,skipAd:Br,setLiveWaitingStart:ts,setLiveWaitingRecover:Gc,setLiveWaitingRecord:_d,getDebugTextData:Yc,getTraceTextData:bd,getDebugPanelData:jc,getVideoElement:ha,seekTime:(p,k,O)=>ko(p,k,O),clearDelayedBufferingCheckTimeout:an,seekEpisodeStartTime:Sr,seekToPercent:or,getNextEpisode:Us,seekToNextEpisode:wd,getPrevEpisode:Sd,seekToPrevEpisode:Cd,startLogging:Wi,stopLogging:Oo,startCameraManualRotation:on,stopCameraManualRotation:to,moveCameraFocusPX:nn,holdCamera:Ho,releaseCamera:Fo,getVideoEpisodes:is,getPreviewThumbsData:Xc,downloadVideo:Jn,addLanguage:lp,setLanguage:gt,nextMovie:wt,videoRotate:Jc,correctSeekTimeToInteractive:qe,replayInteractive:P,setLooped:lt,reportProblem:Lt,setAutoplayNextEnabled:Zt,setTimerNextVideoRunning:Kt,prevVideoClick:Gi,nextVideoClick:Vi,nextVideoAnnouncementShow:xo,nextVideoAnnouncementClick:wo,nextVideoAnnouncementAuto:bi,nextVideoAnnouncementCancel:Xe},external:{firstStart:p=>xd(p,!0),play:()=>$d(!0),pause:()=>Fs(!0),stop:()=>yd(!0),seekTime:p=>nr(p),seekEpisodeStartTime:p=>To(p),setPlaybackRate:p=>kr(p),setAutoQualityLimits:p=>Cr(p),setMuted:qt,setVolume:bn,returnFocusToEpisodes:Qt,updateAdditionalSettingsItem:Os,addAdditionalSettingsItem:Ja,removeAdditionalSettingsItem:es,updateAdditionalContextItem:_t,addAdditionalContextItem:xt,removeAdditionalContextItem:Go,updateAdditionalButton:sr,addAdditionalButton:Po,removeAdditionalButton:Tr,setLiveLowLatency:Xa}},callbacks:l,setUiCallbacks:p=>{je={...p}},getAdmanWrapper:()=>_e,getLogger:()=>Re,getPlayer:()=>D,destroy:Un};return ut};function Qa(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}=Ls(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 Ic=(t,e,i,o)=>{if(t)for(let[n,a]of Object.entries(e))["tooltipPointerOffsetX","disabledControls$","additionalButtons"].includes(n)||a.set(Qa(t,i,n,o))};var Ec=async(t,e,i)=>{await Zi(),e&&i&&(i.focus(),t.set(!1))};var K$=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 rf(t,e){let i=Se(e,["$$slots","$$events","$$legacy","children"]);var o=K$();let n;var a=h(o);ue(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 af(t,e){F(e,!0);let[i,o]=De(),n=()=>y(l,"$contextMenuVisible$",i),a=v(e,"disabled",3,!1),s=v(e,"ariaLabel",3,""),d=be(),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(void 0);Ue(()=>{r($)&&ft(()=>{f.set(r($))})});let x=M=>{let P=ca(M),A=jg(r($));_.set(A),c.set(P),l.set(!n())},w=()=>{u.set(!0)},S=()=>{u.set(!1)},I=m(()=>n()?"opened":"");kt(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($)},set ref(M){N($,de(M))},children:(M,P)=>{rf(M,{})},$$slots:{default:!0}}),U(),o()}var Q$=t=>{t.stopPropagation()},G$=L("<div><!> <div></div> <div></div></div>"),Y$={hash:"svelte-od3veb",code:`.interactive-episode-icon-animated.svelte-od3veb {position:absolute;top:16px;right:16px;width:32px;height:32px;transition:0.3s;opacity:1;}.interactive-episode-icon-animated.icon-small.svelte-od3veb {width:28px;height:28px;}.invisible.svelte-od3veb {opacity:0;visibility:hidden;}.fullscreen.svelte-od3veb:not(.mobile) {width:40px;top:19px;right:23px;height:40px;}.mobile.svelte-od3veb {width:28px;height:28px;top:12px;right:14px;}.fullscreen.mobile.svelte-od3veb {width:32px;height:32px;}
230
230
 
231
231
  @media screen and (orientation: portrait) {.interactive-episode-icon-animated.mobile.fullscreen.svelte-od3veb {top:40px;right:16px;}
232
232
  }
@@ -251,8 +251,8 @@ Try switching the\xA0quality to\xA0Auto.`},Vg=x0;var Yr=new Map;Yr.set(Ng.EN,Vg)
251
251
  opacity: 0;
252
252
  }
253
253
  }.pulse.svelte-od3veb {display:block;content:'';border:1px solid #fff;position:absolute;top:0;left:0;right:0;bottom:0;border-radius:100%;transform:scale(1.8);
254
- animation: 1s svelte-od3veb-pulse infinite;transition:0.3s;pointer-events:none;}.pulse.paused.svelte-od3veb {animation-play-state:paused;}.interactive-episode-icon-animated svg {width:100%;height:100%;}.ref-block.svelte-od3veb {position:absolute;top:0;width:100%;height:100%;visibility:hidden;}.hidden.svelte-od3veb {display:none;}`};function Ql(t,e){F(e,!0),z(t,X$);let[i,o]=Me(),n=()=>y(S,"$isMobile",i),a=()=>y(L,"$areControlsVisible",i),s=()=>y(B,"$currentGridType$",i),d=()=>y(P,"$isInteractiveTime$",i),l=()=>y(w,"$interactiveControlsOpacity$",i),c=()=>y(M,"$showInteractiveTimeIndicatorTooltip$",i),u=()=>y(I,"$isFullscreen",i),_=m(e,"ref",15,void 0),f=X(void 0),$=_e(),x=Fi(),{interactiveControlsOpacity$:w}=x,S=$.ui.isMobile,I=$.ui.isFullscreen,P=$.state.isInteractiveTime$,M=x.showInteractiveTimeIndicatorTooltip$,L=$.ui.controlsVisible,T=$.callbacks?.onInteractiveTimeIndicatorClick,B=$.ui.currentGridType$,K=v(()=>!n()&&a()),Q=v(()=>va(s(),"s")),Y=v(()=>!d()||!!l()||r(K)),ae=X(!1);He(()=>{D(ae,de(r(Y)))});let se=()=>{D(ae,!0)},ee=()=>{ge(),r(f)?.addEventListener("animationiteration",se,{once:!0})},ge=()=>{D(ae,!1),r(f)?.removeEventListener("animationiteration",se)},J=R=>{M.set(R)},Pe=v(()=>c()&&!r(Y));He(()=>{c()?ee():ge()});let Ae=()=>{r(Y)||(M.set(!0),T?.())};on(()=>{M.clearTimeout(),ge()});let oe=()=>{M.set(!1)},Fe=H("tooltip_interactive_interaction_time_indicator");var j=Z$();let N;j.__mousemove=[j$],j.__click=Ae;var Le=h(j);co(Le,{tooltipContent:Fe,get tooltipActive(){return r(Pe)},initialTranslateYPx:72,tooltipPlacement:"bottom",onTooltipVisibilityChange:J,get ref(){return _()},set ref(R){_(R)},children:(R,$e)=>{Bl(R,{completed:!0})},$$slots:{default:!0}});var be=E(Le,2);let ke;at(be,R=>_(R),()=>_());var Be=E(be,2);let ce;at(Be,R=>D(f,R),()=>r(f)),g(j),C((R,$e,Ie)=>{N=Z(j,1,"interactive-episode-icon-animated svelte-od3veb",null,N,R),ke=Z(be,1,"ref-block svelte-od3veb",null,ke,$e),ce=Z(Be,1,"pulse svelte-od3veb",null,ce,Ie)},[()=>({mobile:n(),fullscreen:u(),invisible:r(Y),"icon-small":r(Q)}),()=>({hidden:r(Y)}),()=>({paused:r(ae)})]),ht("mouseleave",j,oe),b(t,j),U(),o()}it(["mousemove","click"]);function Lc(t,e){F(e,!0);let i=m(e,"tooltipEnabled",3,!0),o=m(e,"disabled",3,!1),n=m(e,"className",3,void 0),a=m(e,"ref",15);co(t,{get disabled(){return o()},get tooltipContent(){return e.tooltipText},get disabledTooltipContent(){return e.disabledTooltipContent},get hasTooltip(){return i()},get mouseEnter(){return e.mouseEnter},get mouseLeave(){return e.mouseLeave},get className(){return n()},get ref(){return a()},set ref(s){a(s)},children:(s,d)=>{var l=De();let c=v(()=>e.buttonComponent);var u=le(l);si(u,()=>r(c),(_,f)=>{f(_,Gr(()=>e.buttonComponentProps??{}))}),b(s,l)},$$slots:{default:!0}}),U()}var Jr={prevButton:100,replayButton:200,playButton:300,nextButton:400,playPrevChapterButton:500,seekToInteractiveButton:600,interactiveGraphButton:700,liveButton:800};var ey=ve('<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 cf(t,e){let i=Ce(e,["$$slots","$$events","$$legacy","children"]);var o=ey();let n;var a=h(o);pe(a,()=>e.children??te),me(),g(o),C(()=>n=xe(o,n,{xmlns:"http://www.w3.org/2000/svg",width:"26",height:"24",fill:"none","aria-hidden":"true",role:"img",...i})),b(t,o)}function ga(t,e){let i=m(e,"isPrev",3,!1),o=m(e,"isMobile",3,!1),n=m(e,"width",3,"24"),a=m(e,"height",3,"24"),s=v(()=>i()&&o()?"transform: scaleX(-1) scale(1.3333);":i()?"transform: scaleX(-1);":o()?"transform: scale(1.3333);":void 0),d=v(()=>i()?"prev-icon":"next-icon");cf(t,{get style(){return r(s)},get width(){return n()},get height(){return a()},get viewBox(){return e.viewBox},get"data-testid"(){return r(d)}})}var ty=A('<div class="icon-background-mobile svelte-xtk2k4"></div>'),iy=A("<!> <!>",1),oy={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 ja(t,e){F(e,!0),z(t,oy);let i=m(e,"ref",15,void 0),o=m(e,"isMobile",3,!1),n=m(e,"disabled",3,!1),s=_e().ui.t,d=v(()=>e.type==="prev"?s("tooltip_previous"):s("tooltip_next")),l=v(()=>e.type==="prev"?s("hotkey_map_item_prev_video_value"):s("hotkey_map_item_next_video_value")),c=v(()=>`btn-${o()?"m":"d"}--${e.type}`);kt(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=iy(),$=le(f);{var x=I=>{var P=ty();b(I,P)};V($,I=>{o()&&I(x)})}var w=E($,2);let S=v(()=>e.type==="prev");ga(w,{get isMobile(){return o()},get isPrev(){return r(S)}}),b(u,f)},$$slots:{default:!0}}),U()}var ny=ve('<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 Gl(t,e){let i=Ce(e,["$$slots","$$events","$$legacy","children"]);var o=ny();let n;var a=h(o);pe(a,()=>e.children??te),me(),g(o),C(()=>n=xe(o,n,{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none","aria-hidden":"true","data-testid":"replay-icon",role:"img",...i})),b(t,o)}import{noop as ry}from"@vkontakte/videoplayer-shared/es2024";var ay=A('<div class="icon-background-mobile svelte-1ot3duq"></div>'),sy=A("<!> <div><!></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 Os(t,e){F(e,!0),z(t,ly);let i=m(e,"ref",15,void 0),o=m(e,"isMobile",3,!1),n=m(e,"disabled",3,!1),a=m(e,"className",3,""),s=m(e,"click",3,ry),d=H("tooltip_restart"),l=v(()=>`${o()?"btn-m--play":""} ${a()}`);kt(t,{get className(){return r(l)},testId:"btn-replay",ariaLabel:d,get disabled(){return n()},get click(){return s()},get ariaKeyShortCut(){return Vr.KeyK},get ref(){return i()},set ref(c){i(c)},children:(c,u)=>{var _=sy(),f=le(_);{var $=I=>{var P=ay();b(I,P)};V(f,I=>{o()&&I($)})}var x=E(f,2);let w;var S=h(x);Gl(S,{}),g(x),C(I=>w=Z(x,1,"svelte-1ot3duq",null,w,I),[()=>({mobile:o()})]),b(c,_)},$$slots:{default:!0}}),U()}var dy=ve('<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 gr(t,e){"use strict";let i=m(e,"width",3,"24"),o=m(e,"height",3,"24"),n=m(e,"viewBox",3,"0 0 24 24"),a=m(e,"fill",3,"var(--btn-color)");var s=dy(),d=h(s);g(s),C(()=>{Re(s,"width",i()),Re(s,"height",o()),Re(s,"viewBox",n()),Re(d,"fill",a())}),b(t,s)}var cy=ve('<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 ea(t,e){"use strict";let i=m(e,"width",3,"24"),o=m(e,"height",3,"24"),n=m(e,"viewBox",3,"0 0 24 24"),a=m(e,"fill",3,"var(--btn-color)");var s=cy(),d=h(s);g(s),C(()=>{Re(s,"width",i()),Re(s,"height",o()),Re(s,"viewBox",n()),Re(d,"fill",a())}),b(t,s)}import{noop as uy}from"@vkontakte/videoplayer-shared/es2024";var py=A('<div class="icon-background-mobile svelte-1ot3duq"></div>'),fy=A("<!> <div><!></div>",1),my={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 Hs(t,e){F(e,!0),z(t,my);let[i,o]=Me(),n=()=>y(a,"$fakeIsPlaying$",i),{fakeIsPlaying$:a}=Fi(),s=m(e,"ref",15,void 0),d=m(e,"isMobile",3,!1),l=m(e,"isPlaying",3,!1),c=m(e,"disabled",3,!1),u=m(e,"className",3,""),_=m(e,"click",3,uy),$=_e().ui.t,{toggle:x}=a,w=v(()=>x),S=v(()=>n()!==null),I=v(()=>r(S)?n():l()),P=v(()=>r(I)?$("tooltip_pause"):$("tooltip_play")),M=v(()=>r(I)?ea:gr),L=v(()=>`${d()?"btn-m--play":""} ${u()}`),T=v(()=>r(S)?r(w):_());kt(t,{get className(){return r(L)},testId:"btn-play",get click(){return r(T)},get disabled(){return c()},get ariaLabel(){return r(P)},get ariaKeyShortCut(){return Vr.KeyK},get ref(){return s()},set ref(B){s(B)},children:(B,K)=>{var Q=fy();let Y=v(()=>r(M));var ae=le(Q);{var se=Pe=>{var Ae=py();b(Pe,Ae)};V(ae,Pe=>{d()&&Pe(se)})}var ee=E(ae,2);let ge;var J=h(ee);si(J,()=>r(Y),(Pe,Ae)=>{Ae(Pe,{})}),g(ee),C(Pe=>ge=Z(ee,1,"svelte-1ot3duq",null,ge,Pe),[()=>({mobile:d()})]),b(B,Q)},$$slots:{default:!0}}),U(),o()}var vy=ve('<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 uf(t,e){let i=Ce(e,["$$slots","$$events","$$legacy","children"]);var o=vy();let n;var a=h(o);pe(a,()=>e.children??te),me(),g(o),C(()=>n=xe(o,n,{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none","data-testid":"play-prev-chapter-icon",role:"img",...i})),b(t,o)}function Yl(t,e){F(e,!0);let i=m(e,"ref",15,void 0),o=m(e,"hidden",3,!1),n=m(e,"disabled",3,!1),a=H("tooltip_interactive_go_back"),s=v(()=>o()?"hidden":"");kt(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)=>{uf(d,{})},$$slots:{default:!0}}),U()}var gy=A('<span class="gutter svelte-et3q1q"><span><!></span></span>'),hy={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 jl(t,e){F(e,!0),z(t,hy);let[i,o]=Me(),n=()=>y(d,"$autoplayNextEnabled$",i),a=m(e,"ref",15,void 0),s=_e(),d=s.ui.autoplayNextEnabled$,l=s.actions.internal.setAutoplayNextEnabled;kt(t,{click:()=>{l(!n(),!0)},get ref(){return a()},set ref(u){a(u)},children:(u,_)=>{var f=gy(),$=h(f);let x;var w=h($);{var S=P=>{gr(P,{width:"14",height:"14",fill:"#000"})},I=P=>{ea(P,{width:"14",height:"14",fill:"#000"})};V(w,P=>{n()?P(S):P(I,!1)})}g($),g(f),C(P=>x=Z($,1,"toggler svelte-et3q1q",null,x,P),[()=>({enabled:n()})]),b(u,f)},$$slots:{default:!0}}),U(),o()}var _y=ve('<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 pf(t,e){let i=Ce(e,["$$slots","$$events","$$legacy","children"]);var o=_y();let n;var a=h(o);pe(a,()=>e.children??te),me(2),g(o),C(()=>n=xe(o,n,{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none","aria-hidden":"true","data-testid":"seek-to-interactive-icon",role:"img",...i})),b(t,o)}function Zl(t,e){F(e,!0);let i=m(e,"ref",15,void 0),o=m(e,"hidden",3,!1),n=m(e,"disabled",3,!1),a=H("tooltip_interactive_seek"),s=v(()=>o()?"hidden":"");kt(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)=>{pf(d,{})},$$slots:{default:!0}}),U()}var by=ve('<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 ff(t,e){let i=Ce(e,["$$slots","$$events","$$legacy","children"]);var o=by();let n;var a=h(o);pe(a,()=>e.children??te),me(2),g(o),C(()=>n=xe(o,n,{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none","aria-hidden":"true",role:"img",...i})),b(t,o)}var $y={hash:"svelte-17ceof5",code:'svg[data-testid="graph-open-icon"] ._closed {visibility:hidden;opacity:0;}'};function mf(t,e){z(t,$y);let i=m(e,"isOpened",3,!1),o=v(()=>i()?"graph-close-icon":"graph-open-icon");ff(t,{get"data-testid"(){return r(o)}})}function Xl(t,e){F(e,!0);let i=m(e,"ref",15,void 0),o=m(e,"hidden",3,!1),n=m(e,"disabled",3,!1),a=m(e,"graphIsOpened",3,!1),d=_e().ui.t,l=v(()=>a()?d("tooltip_interactive_graph_on"):d("tooltip_interactive_graph_off")),c=v(()=>o()?"hidden":"");kt(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=v(()=>!!a());mf(u,{get isOpened(){return r(f)}})},$$slots:{default:!0}}),U()}import{PlaybackState as $h}from"@vkontakte/videoplayer-core/es2024";function Jl(t,e){F(e,!0);let[i,o]=Me(),n=()=>y(c,"$playbackState$",i),a=m(e,"isMobile",3,!1),s=m(e,"isLiveActive",3,!1),d=m(e,"ariaLabel",3,""),l=_e(),c=l.state.playbackState$,u=l.actions.internal.switchToActiveLive,_=l.actions.internal.togglePlay,f=v(()=>()=>{if(!s()){u();return}n()===$h.PAUSED&&_()}),$=v(()=>a()?"":"btn--live btn-full-opacity"),x=v(()=>s()?"btn-live":"btn-live-offset"),w=v(()=>s()&&n()===$h.PLAYING);kt(t,{get className(){return r($)},get testId(){return r(x)},get disabled(){return r(w)},get ariaLabel(){return d()},get click(){return r(f)},children:(S,I)=>{Fa(S,{get isActive(){return s()}})},$$slots:{default:!0}}),U(),o()}import{noop as yh}from"@vkontakte/videoplayer-shared/es2024";var yy=A('<div class="icon icon-error-stub"><div class="inner"></div></div>'),xy=A('<img class="icon" aria-hidden="true">');function Za(t,e){"use strict";let i=X(!1),o=()=>{D(i,!0)};var n=De(),a=le(n);{var s=l=>{var c=yy();b(l,c)},d=l=>{var c=xy();C(()=>Re(c,"src",e.icon)),ht("error",c,o),Aa(c),b(l,c)};V(a,l=>{r(i)?l(s):l(d,!1)})}b(t,n)}function vf(t,e){F(e,!0);let i=m(e,"disabled",3,!1),o=m(e,"onClick",3,yh),n=m(e,"ref",15),a=v(()=>o()===yh),s=v(()=>r(a)||i()),d=v(()=>r(a)?"btn-full-opacity":"");co(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=v(()=>e.testId??e.id);kt(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)=>{Za(_,{get icon(){return e.icon}})},$$slots:{default:!0}})},$$slots:{default:!0}}),U()}var xh=t=>!!t.buttonComponent;var ta={vkLogo:100,autoplayNext:200,volume:300,subtitles:400,settings:500,context:600,fullscreen:700,chromecast:800};var ky=A('<div><!> <div class="controls svelte-1iedtj3"><div class="controls-left svelte-1iedtj3"><!> <!> <!></div> <div class="controls-right svelte-1iedtj3"></div></div></div> <!>',1),Ty={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 hf(t,e){F(e,!0),z(t,Ty);let[i,o]=Me(),n=()=>y(Gt,"$disabledControls$",i),a=()=>y(Ot,"$adPlaybackState",i),s=()=>y(Zt,"$playbackState$",i),d=()=>y(zi,"$currentSubtitle$",i),l=()=>y(oo,"$isEnded$",i),c=()=>y(Pn,"$currentGridType$",i),u=()=>y(Ho,"$isLive$",i),_=()=>y(Kt,"$chromecastState$",i),f=()=>y($o,"$isPictureInPictureActive",i),$=()=>y(Fo,"$pictureInPictureType$",i),x=()=>y(Xt,"$availableSubtitlesList$",i),w=()=>y(no,"$contextMenuOpenedByKeyboard$",i),S=()=>y(qi,"$showContextMenuBtn$",i),I=()=>y(wo,"$playerSize",i),P=()=>y(Ui,"$isRewindableLive$",i),M=()=>y(an,"$isActiveLive$",i),L=()=>y(zo,"$graphIsOpened$",i),T=()=>y(Jt,"$contextMenuVisible$",i),B=()=>y($i,"$isFullscreen",i),K=()=>y(ao,"$autoplayNextEnabled",i),Q=()=>y(r(yr),"$prevButton",i),Y=()=>y(r(lt),"$replayButton",i),ae=()=>y(r(Rt),"$playButton",i),se=()=>y(r(Pt),"$nextButton",i),ee=()=>y(r(Ii),"$playPrevChapterButton",i),ge=()=>y(r(Qi),"$seekToInteractiveButton",i),J=()=>y(r(Ei),"$interactiveGraphButton",i),Pe=()=>y(r(Gi),"$liveButton",i),Ae=()=>y(r(ko),"$time",i),oe=()=>y(r(mo),"$episodes",i),Fe=()=>y(r(hi),"$vkLogo",i),j=()=>y(r(je),"$volume",i),N=()=>y(r(xt),"$subtitles",i),Le=()=>y(r(Yi),"$settings",i),be=()=>y(r(xi),"$context",i),ke=()=>y(r(Jn),"$fullscreen",i),Be=()=>y(r(bn),"$chromecast",i),ce=()=>y(ro,"$additionalDesktopControlPanelRightButtons$",i),R=()=>y(sn,"$isInteractiveTime$",i),$e=()=>y(yo,"$settingsMenuVisible",i),Ie=()=>y(To,"$settingButtonRef$",i),Ge=()=>y(xo,"$startedByKeyboard$",i),ze=()=>y(mi,"$isAudioAvailable$",i),ye=()=>y(Ye,"$fakeIsPlaying$",i),Ve=()=>y(An,"$seekToInteractiveDisabledTooltip$",i),qe=()=>y(yt,"$adPosition",i),ot=()=>y(Vt,"$position$",i),ut=()=>y(po,"$adDuration",i),pt=()=>y(st,"$duration$",i),Tt=m(e,"playerControlsWrapperRef",15,void 0),nt=m(e,"playerControlsRef",15,void 0),vt=m(e,"isAds",3,!1),Lt=m(e,"logoTargetUrl",3,""),Te=m(e,"isOneVideoPlaylist",3,!1),Ue=m(e,"customFullscreenSupported",3,!0),{fakeIsPlaying$:Ye}=Fi(),W=_e(),ne=Fi(),ie=Mt(),We=W.actions.internal.toggleMuted,Ze=W.actions.internal.togglePlay,$t=W.actions.internal.pause,Ke=W.actions.internal.toggleSubtitle,Xe=W.callbacks?.onAudioDoesNotExistHint,Ne=W.callbacks?.onAudioDisabledHint,st=W.state.duration$,Vt=W.state.positionWithScrubbing$,Zt=W.state.playbackState$,mi=W.state.isAudioAvailable$,ri=W.state.isAudioDisabled,oo=W.state.isEnded$,Ho=W.state.isLive$,an=W.state.isActiveLive$,Ui=W.state.isRewindableLive$,{isActive$:$o,type$:Fo}=ne.pictureInPicture$,yo=W.ui.settingsMenu.visible$,uo=W.ui.settingsMenu.openedByBtnKeyboard$,Wt=W.ui.controls,G=W.actions.internal.getVideoEpisodes(),Kt=W.state.chromecastState$,Xt=W.state.availableSubtitlesList$,zi=W.state.currentSubtitle$,Gt=Wt.disabledControls$,Jt=W.ui.contextMenu.visible$,qi=W.ui.contextMenu.showContextMenuBtn$,no=W.ui.contextMenu.openedByBtnKeyboard$,xo=W.ui.startedByKeyboard$,Nt=W.ui.t,po=W.ads.duration,yt=W.ads.position,Ot=W.ads.playbackState,$i=W.ui.isFullscreen,wo=W.ui.playerSize,Pn=W.ui.currentGridType$,ro=W.ui.additionalDesktopControlPanelRightButtons$,ao=W.ui.autoplayNextEnabled$,Yt=W.actions.internal.getVideoElement,mt=W.actions.internal.replayInteractive,li=W.actions.internal.prevVideoClick,vi=W.actions.internal.nextVideoClick,yi=W.state.isInteractive,sn=W.state.isInteractiveTime$,di=W.state.showInteractiveGraph,Ai=W.state.showSeekToInteractive,Uo=W.state.showPlayPrevChapter,ln=W.state.showInteractiveTimeIndicator,gi=W.state.playPrevChapterDisabledTooltip,An=ne.seekToInteractiveDisabledTooltip$,zo=ne.graphIsOpened$,so=ie.features.interactiveResponsiveUi,dn=v(()=>n().has("EPISODE_BUTTON")),_r=v(()=>n().has("GRAPH_BUTTON")),jn=v(()=>n().has("SEEK_TO_INTERACTIVE_BUTTON")),Mn=v(()=>n().has("PLAY_BUTTON")),cn=v(()=>n().has("REPLAY_BUTTON")),qo=v(()=>n().has("PLAY_PREV_CHAPTER_BUTTON")),un=()=>W.actions.internal.toggleChromecast(),Wi=v(()=>vt()?a()==="playing":s()===gf.PLAYING),et=v(()=>d().value!=="off"),Wo=v(()=>l()&&!vt()||yi),Ln=v(()=>so?r(Wo)&&Ci(c(),"m"):r(Wo)),Vn=v(()=>!l()||yi||vt()),pn=v(()=>Ci(c(),"m")),Ko=v(()=>e.showNextPrevButtons&&Ci(c(),"m")&&!vt()&&e.nextButtonActive),Qo=v(()=>e.showNextPrevButtons&&Ci(c(),"m")&&!vt()&&e.prevButtonActive),So=v(()=>!vt()&&!!u()),ki=v(()=>_()!==wh.NOT_AVAILABLE&&!(f()&&$()===1)&&Ci(c(),"m")&&!yi),Ti=v(()=>e.showAutoplayNext&&!Te()&&Ci(c(),"s")),Rn=v(()=>x().length>0&&Ci(c(),"m")),fn=v(()=>w()||S()),Nn=v(()=>Ci(c(),"s")&&!vt()),Zn=v(()=>!e.logoHidden&&!vt()),Mi=v(()=>ie.features.fullscreen&&(e.logoHidden||Ci(c(),so?"xs":"s"))&&!(f()&&$()===1)&&(yi?Ue():!0)),Li=v(()=>(!u()||vt())&&!(ie.features.interactiveHideTime&&yi)),mn=v(()=>I().width>100),vn=v(()=>di&&Ci(c(),"m")),Ki=v(()=>so?Ai&&Ci(c(),"s"):Ai),Vi=v(()=>so?Uo&&Ci(c(),"s"):Uo),gn=v(()=>!vt()&&!u()&&!!G?.length&&r(pn)&&!r(dn)),fo=v(()=>!P()||!!M()),br=v(()=>L()?Nt("tooltip_interactive_graph_on"):Nt("tooltip_interactive_graph_off")),Dn=v(()=>T()?Nt("aria_label_context_menu_close"):Nt("aria_label_context_menu_open")),Xn=(wt,_t)=>wt?_t&&_t===gf.PAUSED?Nt("tooltip_play"):"":Nt("tooltip_live"),hn=v(()=>Xn(r(fo),s())),_n=v(()=>ie.logoType==="vk_video"?Nt("tooltip_vk_video_logo"):Nt("tooltip_vk_logo")),$r=v(()=>r(et)?Nt("tooltip_subtitles_on"):Nt("tooltip_subtitles_off")),Bn=v(()=>B()?Nt("tooltip_fullscreen_on"):Nt("tooltip_fullscreen_off")),On=v(()=>_()===wh.CONNECTED?Nt("tooltip_chromecast_on"):Nt("tooltip_chromecast_off")),Hn=v(()=>K()?Nt("tooltip_autoplay_on"):Nt("tooltip_autoplay_off")),Co=X(0),qt=de({}),yr=v(()=>Wt.prevButton),lt=v(()=>Wt.replayButton),Rt=v(()=>Wt.playButton),Pt=v(()=>Wt.nextButton),Ii=v(()=>Wt.playPrevChapterButton),Qi=v(()=>Wt.seekToInteractiveButton),Ei=v(()=>Wt.interactiveGraphButton),Gi=v(()=>Wt.liveButton),ko=v(()=>Wt.time),mo=v(()=>Wt.episodes),hi=v(()=>Wt.vkLogo),je=v(()=>Wt.volume),xt=v(()=>Wt.subtitles),Yi=v(()=>Wt.settings),xi=v(()=>Wt.context),Jn=v(()=>Wt.fullscreen),bn=v(()=>Wt.chromecast),Pi=v(()=>({prevButton:Q()?Q().right-Q().left:0,replayButton:Y()?Y().right-Y().left:0,playButton:ae()?ae().right-ae().left:0,nextButton:se()?se().right-se().left:0,playPrevChapterButton:ee()?ee().right-ee().left:0,seekToInteractiveButton:ge()?ge().right-ge().left:0,interactiveGraphButton:J()?J().right-J().left:0,liveButton:Pe()?Pe().right-Pe().left:0,time:Ae()?Ae().right-Ae().left:0,episodes:oe()?oe().right-oe().left:0,vkLogo:Fe()?Fe().right-Fe().left:0,volume:j()?j().right-j().left:0,subtitles:N()?N().right-N().left:0,settings:Le()?Le().right-Le().left:0,context:be()?be().right-be().left:0,fullscreen:ke()?ke().right-ke().left:0,chromecast:Be()?Be().right-Be().left:0,additionalButtons:ce().length?ce().reduce(wt=>[...wt,40],[]):[]})),Go=X(0);He(()=>{(!r(Go)||r(Go)<r(Pi).time)&&ft(()=>D(Go,de(r(Pi).time)))});let $n=X(!1);He(()=>{let wt=0;r(gn)&&(Ci(c(),"xl")?wt=r(Pi).time:wt=60);let _t=r(Pi).prevButton+r(Pi).playButton+r(Pi).nextButton+r(Pi).seekToInteractiveButton+r(Pi).interactiveGraphButton+r(Pi).liveButton+r(Go)+wt;D($n,de(r(Li)&&r(Co)>=_t))});let Br=v(()=>r($n)&&Ci(c(),"m")),xr=Cy(Bs,260);He(()=>{I(),R(),xr(Yt(),Wt,qt,e.showControls)});let To=re();He(()=>{$e(),Ie()&&ft(()=>Ps(Ie(),$e(),uo))});let Fn;He(()=>{Ge(),ft(()=>Mc(xo,Ge(),Fn))});function Io(){fa({isAudioDisabled:ri,audioDisabledHintCallback:Ne,isAudioAvailable:ze(),audioIsNotExistHintCallback:Xe})&&We()}let wr=yi?mt:Ze,er=v(()=>ye()!==null),Sr=v(()=>r(er)?ye():r(Wi)),tr=v(()=>r(Sr)?Nt("tooltip_pause"):Nt("tooltip_play")),Cr=Nt("tooltip_episodes"),Yo=v(()=>r(Qo)?{id:"prevButton",type:"desktop-control-panel-left",weight:Jr.prevButton,buttonComponent:ja,buttonComponentProps:{disabled:!e.prevButtonActive,type:"prev",click:li.bind(null,!0)},tooltipEnabled:!W.callbacks?.uiInfo?.onPrevButtonMouseEnter&&!W.callbacks?.uiInfo?.onPrevButtonMouseLeave,mouseEnter:()=>{W.callbacks?.uiInfo?.onPrevButtonMouseEnter?.(Ya(Yt(),qt,"prevButton",e.showControls))},mouseLeave:()=>{W.callbacks?.uiInfo?.onPrevButtonMouseLeave?.(Ya(Yt(),qt,"prevButton",e.showControls))},tooltipText:Nt("tooltip_previous"),disabled:!e.prevButtonActive}:void 0),yn=v(()=>r(Ln)?{id:"replayButton",type:"desktop-control-panel-left",weight:Jr.replayButton,buttonComponent:Os,buttonComponentProps:{disabled:r(cn),click:wr},tooltipText:Nt("tooltip_restart"),disabled:r(cn)}:void 0),Un=v(()=>r(Vn)?{id:"playButton",type:"desktop-control-panel-left",weight:Jr.playButton,buttonComponent:Hs,buttonComponentProps:{disabled:r(Mn),isPlaying:r(Wi),click:Ze},tooltipText:r(tr),disabled:r(Mn)}:void 0),kr=v(()=>r(Ko)?{id:"nextButton",type:"desktop-control-panel-left",weight:Jr.nextButton,buttonComponent:ja,buttonComponentProps:{disabled:!e.nextButtonActive,type:"next",click:vi.bind(null,!0)},tooltipEnabled:!W.callbacks?.uiInfo?.onNextButtonMouseEnter&&!W.callbacks?.uiInfo?.onNextButtonMouseLeave,mouseEnter:()=>{W.callbacks?.uiInfo?.onNextButtonMouseEnter?.(Ya(Yt(),qt,"nextButton",e.showControls))},mouseLeave:()=>{W.callbacks?.uiInfo?.onNextButtonMouseLeave?.(Ya(Yt(),qt,"nextButton",e.showControls))},tooltipText:Nt("tooltip_next"),disabled:!e.nextButtonActive}:void 0),Je=v(()=>yi&&r(Vi)?{id:"playPrevChapterButton",type:"desktop-control-panel-left",weight:Jr.playPrevChapterButton,buttonComponent:Yl,buttonComponentProps:{disabled:r(qo),click:e.playPrevChapter},tooltipText:Nt("tooltip_interactive_go_back"),disabledTooltipContent:Nt(gi),disabled:r(qo)}:void 0),It=v(()=>yi&&r(Ki)?{id:"seekToInteractiveButton",type:"desktop-control-panel-left",weight:Jr.seekToInteractiveButton,buttonComponent:Zl,buttonComponentProps:{disabled:r(jn),click:e.seekToInteractive},tooltipText:Nt("tooltip_interactive_seek"),disabled:r(jn),disabledTooltipContent:Nt(Ve())}:void 0),Qt=v(()=>yi&&r(vn)?{id:"interactiveGraphButton",type:"desktop-control-panel-left",weight:Jr.interactiveGraphButton,buttonComponent:Xl,buttonComponentProps:{disabled:r(_r),click:zo.toggle,graphIsOpened:L()},tooltipText:r(br)}:void 0),ji=v(()=>r(So)?{id:"liveButton",type:"desktop-control-panel-left",weight:Jr.liveButton,buttonComponent:Jl,buttonComponentProps:{isLiveActive:r(fo),ariaLabel:r(hn)},tooltipText:r(hn),disabled:r(fo)&&s()===gf.PLAYING}:void 0),Eo=v(()=>[r(Yo),r(yn),r(Un),r(kr),r(Je),r(It),r(Qt),r(ji)].filter(wt=>!!wt).sort(Ua)),zn=v(()=>r(Zn)?{id:"vkLogo",type:"desktop-control-panel-right",weight:ta.vkLogo,buttonComponent:Hl,buttonComponentProps:{targetUrl:Lt(),logoClickable:e.logoClickable,click:$t},tooltipText:r(_n),disabledTooltipContent:"",disabled:!e.logoClickable}:void 0),ir=v(()=>r(Ti)?{id:"autoplayNext",type:"desktop-control-panel-right",weight:ta.autoplayNext,buttonComponent:jl,tooltipText:r(Hn)}:void 0),jo=v(()=>({id:"volume",type:"desktop-control-panel-right",weight:ta.volume,buttonComponent:zp,buttonComponentProps:{click:Io}})),Ri=v(()=>r(Rn)?{id:"subtitles",type:"desktop-control-panel-right",weight:ta.subtitles,buttonComponent:Bp,buttonComponentProps:{isSubtitlesEnabled:r(et),click:Ke},tooltipText:r($r)}:void 0),fe=v(()=>r(Nn)?{id:"settings",type:"desktop-control-panel-right",weight:ta.settings,buttonComponent:Rs,buttonComponentProps:{ref$:To},tooltipText:$e()?void 0:Nt("tooltip_settings_off")}:void 0),Ct=v(()=>ie.features.contextMenuButton?{id:"context",type:"desktop-control-panel-right",weight:ta.context,buttonComponent:df,buttonComponentProps:{click:e.toggleFullscreen,ariaLabel:r(Dn)},className:r(fn)?"":"out-of-view",tooltipText:r(Dn)}:void 0),ei=v(()=>r(Mi)?{id:"fullscreen",type:"desktop-control-panel-right",weight:ta.fullscreen,buttonComponent:Ol,buttonComponentProps:{isFullscreen:B(),click:e.toggleFullscreen},tooltipText:r(Bn)}:void 0),ci=v(()=>r(ki)?{id:"chromecast",type:"desktop-control-panel-right",weight:ta.chromecast,buttonComponent:Fl,buttonComponentProps:{state:_(),click:un},tooltipText:r(On)}:void 0),ui=v(()=>[r(zn),r(ir),r(jo),r(Ri),r(fe),r(Ct),r(ei),r(ci),...ce()].filter(wt=>!!wt).sort(Ua));var or=ky(),Ee=le(or);let Dt;var pi=h(Ee);let _i=v(()=>!r(mn));Zr(pi,{get isHidden(){return r(_i)},get isAds(){return vt()},get canRewindLive(){return e.canRewindLive},get isRewindableLive(){return P()},get ref(){return qt.timeline},set ref(wt){qt.timeline=wt}});var vo=E(pi,2),nr=h(vo),Zo=h(nr);ai(Zo,17,()=>r(Eo),wt=>wt.id,(wt,_t)=>{Lc(wt,{get buttonComponent(){return r(_t).buttonComponent},get buttonComponentProps(){return r(_t).buttonComponentProps},get tooltipText(){return r(_t).tooltipText},get disabledTooltipContent(){return r(_t).disabledTooltipContent},get disabled(){return r(_t).disabled},get className(){return r(_t).className},get tooltipEnabled(){return r(_t).tooltipEnabled},get mouseEnter(){return r(_t).mouseEnter},get mouseLeave(){return r(_t).mouseLeave},get ref(){return qt[r(_t).id]},set ref(xn){qt[r(_t).id]=xn}})});var rr=E(Zo,2);{var zs=wt=>{let _t=v(()=>vt()?qe():ot()),xn=v(()=>vt()?ut():pt());Dl(wt,{isMobile:!1,get showDuration(){return r(Br)},get position(){return r(_t)},get duration(){return r(xn)},get ref(){return qt.time},set ref(Tr){qt.time=Tr}})};V(rr,wt=>{r(Li)&&wt(zs)})}var is=E(rr,2);let qs=v(()=>!r(gn));co(is,{className:"w-max",get disabled(){return r(qs)},tooltipContent:Cr,get ref(){return qt.episodes},set ref(wt){qt.episodes=wt},children:(wt,_t)=>{var xn=De(),Tr=le(xn);{var ba=Ir=>{zl(Ir,{get position(){return ot()},get duration(){return pt()},timeCodes:G})};V(Tr,Ir=>{r(gn)&&Ir(ba)})}b(wt,xn)},$$slots:{default:!0}}),g(nr);var _a=E(nr,2);ai(_a,21,()=>r(ui),wt=>wt.id,(wt,_t)=>{var xn=De(),Tr=le(xn);{var ba=Er=>{Lc(Er,{get buttonComponent(){return r(_t).buttonComponent},get buttonComponentProps(){return r(_t).buttonComponentProps},get tooltipText(){return r(_t).tooltipText},get disabledTooltipContent(){return r(_t).disabledTooltipContent},get disabled(){return r(_t).disabled},get className(){return r(_t).className},get ref(){return qt[r(_t).id]},set ref(ia){qt[r(_t).id]=ia}})},Ir=Er=>{let ia=v(()=>!!r(_t).disabled);vf(Er,{get id(){return r(_t).id},get testId(){return r(_t).testId},get icon(){return r(_t).icon},get ariaLabel(){return r(_t).ariaLabel},get tooltipText(){return r(_t).tooltipText},get disabledTooltipContent(){return r(_t).disabledTooltipContent},get disabled(){return r(ia)},get onClick(){return r(_t).onClick},get ref(){return qt[r(_t).id]},set ref(Ws){qt[r(_t).id]=Ws}})};V(Tr,Er=>{xh(r(_t))?Er(ba):Er(Ir,!1)})}b(wt,xn)}),g(_a),g(vo),at(vo,wt=>nt(wt),()=>nt()),g(Ee),at(Ee,wt=>Tt(wt),()=>Tt());var ar=E(Ee,2);{var os=wt=>{Ql(wt,{get ref(){return qt.interactiveTimeIndicator},set ref(_t){qt.interactiveTimeIndicator=_t}})};V(ar,wt=>{ln&&wt(os)})}C(wt=>Dt=Z(Ee,1,"wrapper-bottom svelte-1iedtj3",null,Dt,wt),[()=>({hidden:e.bottomHidden,"controls-hidden":!e.showControls,"no-smooth":e.bottomNoSmooth})]),Lr(nr,"clientWidth",wt=>D(Co,wt)),b(t,or),U(),o()}import{ChromecastState as Ch,PlaybackState as kh}from"@vkontakte/videoplayer-core/es2024";import{noop as Sh}from"@vkontakte/videoplayer-shared/es2024";var Iy=A('<div class="icon icon-error-stub svelte-167ouw6"><div class="inner svelte-167ouw6"></div></div>'),Ey=A('<img class="icon svelte-167ouw6" aria-hidden="true">'),Py={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 _f(t,e){z(t,Py);let i=m(e,"disabled",3,!1),o=m(e,"onClick",3,Sh),n=v(()=>o()===Sh),a=v(()=>r(n)||i()),s=X(!1),d=()=>{D(s,!0)},l=v(()=>r(n)?"btn-full-opacity":"");kt(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 _=De(),f=le(_);{var $=w=>{var S=Iy();b(w,S)},x=w=>{var S=Ey();C(()=>Re(S,"src",e.iconUrl)),ht("error",S,d),Aa(S),b(w,S)};V(f,w=>{r(s)?w($):w(x,!1)})}b(c,_)},$$slots:{default:!0}})}var Ay=ve('<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 bf(t,e){let i=Ce(e,["$$slots","$$events","$$legacy","children"]);var o=Ay();let n;var a=h(o);pe(a,()=>e.children??te),me(),g(o),C(()=>n=xe(o,n,{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24","aria-hidden":"true","data-testid":"muted-icon",role:"img",...i})),b(t,o)}import{noop as My}from"@vkontakte/videoplayer-shared/es2024";var Ly=A('<span class="text svelte-6gmlbk"> </span>'),Vy=A('<div aria-hidden="true"><!> <!></div>'),Ry={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 Vc(t,e){F(e,!0),z(t,Ry);let i=m(e,"muted",3,!1),o=m(e,"expanded",3,!1),n=m(e,"click",3,My),a=m(e,"ref",15,void 0),d=_e().ui.t,l=v(()=>i()?d("tooltip_volume"):d("tooltip_volume_muted")),c=v(()=>o()?ma:bf),u=v(()=>o()?"btn-mobile-unmuted":"btn-mobile-muted");kt(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 $=Vy();let x=v(()=>r(c)),w;var S=h($);si(S,()=>r(x),(M,L)=>{L(M,{})});var I=E(S,2);{var P=M=>{var L=Ly(),T=h(L,!0);g(L),C(B=>ue(T,B),[()=>d("mobile_unmute")]),b(M,L)};V(I,M=>{o()&&M(P)})}g($),C(M=>w=Z($,1,"container svelte-6gmlbk",null,w,M),[()=>({expanded:o()})]),b(_,$)},$$slots:{default:!0}}),U()}var Ny=ve('<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 $f(t,e){let i=Ce(e,["$$slots","$$events","$$legacy","children"]);var o=Ny();let n;var a=h(o);pe(a,()=>e.children??te),me(3),g(o),C(()=>n=xe(o,n,{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none",role:"img",...i})),b(t,o)}var Dy={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 yf(t,e){z(t,Dy);let i=m(e,"isActive",3,!1),o=v(()=>i()?"color: #2688EB;":"color: #fff;"),n=v(()=>i()?"pip-icon--active":"pip-icon");$f(t,{get style(){return r(o)},get"data-testid"(){return r(n)}})}import{noop as By}from"@vkontakte/videoplayer-shared/es2024";function xf(t,e){F(e,!0);let i=m(e,"ref",15,void 0),o=m(e,"isPictureInPictureActive",3,!1),n=m(e,"click",3,By),a=H("menu_pip");kt(t,{testId:"btn-pip",ariaLabel:a,get click(){return n()},get ref(){return i()},set ref(s){i(s)},children:(s,d)=>{yf(s,{get isActive(){return o()}})},$$slots:{default:!0}}),U()}import{debounceFn as Oy}from"@vkontakte/videoplayer-shared/es2024";var Hy=(t,e,i,o)=>{r(e)&&i.onDisabledPlayPrevChapterClick(r(o))},Fy=(t,e,i,o)=>{r(e)&&i.onDisabledSeekToInteractiveClick(r(o))},Uy=A("<div><!></div>"),zy=A("<div><!></div>"),qy=A("<div><!></div>"),Wy=A("<!> <!> <!>",1),Ky=A("<div></div> <div><!></div> <div><!> <!> <!> <!> <!> <!></div> <div><!> <!> <!> <!></div> <!>",1),Qy=A("<div><!></div>"),Gy=A('<div class="wrapper-middle svelte-1afsgkw"><!></div>'),Yy=A("<!> <!> <div><!></div>",1),jy=A('<div aria-hidden="true">\xB7</div> <!>',1),Zy=A("<!> <!> <div><div><div><!> <!> <!> <!> <!> <!></div> <!></div></div> <!>",1),Xy={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),W(t,Y$);let[i,o]=De(),n=()=>y(S,"$isMobile",i),a=()=>y(A,"$areControlsVisible",i),s=()=>y(B,"$currentGridType$",i),d=()=>y(M,"$isInteractiveTime$",i),l=()=>y(w,"$interactiveControlsOpacity$",i),c=()=>y(P,"$showInteractiveTimeIndicatorTooltip$",i),u=()=>y(I,"$isFullscreen",i),_=v(e,"ref",15,void 0),f=Y(void 0),$=be(),x=zi(),{interactiveControlsOpacity$:w}=x,S=$.ui.isMobile,I=$.ui.isFullscreen,M=$.state.isInteractiveTime$,P=x.showInteractiveTimeIndicatorTooltip$,A=$.ui.controlsVisible,T=$.callbacks?.onInteractiveTimeIndicatorClick,B=$.ui.currentGridType$,Q=m(()=>!n()&&a()),G=m(()=>fa(s(),"s")),ee=m(()=>!d()||!!l()||r(Q)),te=Y(!1);Ue(()=>{N(te,de(r(ee)))});let ie=()=>{N(te,!0)},oe=()=>{ge(),r(f)?.addEventListener("animationiteration",ie,{once:!0})},ge=()=>{N(te,!1),r(f)?.removeEventListener("animationiteration",ie)},X=R=>{P.set(R)},Ve=m(()=>c()&&!r(ee));Ue(()=>{c()?oe():ge()});let Ae=()=>{r(ee)||(P.set(!0),T?.())};Jo(()=>{P.clearTimeout(),ge()});let se=()=>{P.set(!1)},He=H("tooltip_interactive_interaction_time_indicator");var j=G$();let D;j.__mousemove=[Q$],j.__click=Ae;var Re=h(j);so(Re,{tooltipContent:He,get tooltipActive(){return r(Ve)},initialTranslateYPx:72,tooltipPlacement:"bottom",onTooltipVisibilityChange:X,get ref(){return _()},set ref(R){_(R)},children:(R,ye)=>{Ll(R,{completed:!0})},$$slots:{default:!0}});var _e=E(Re,2);let ke;at(_e,R=>_(R),()=>_());var Be=E(_e,2);let pe;at(Be,R=>N(f,R),()=>r(f)),g(j),C((R,ye,Ie)=>{D=Z(j,1,"interactive-episode-icon-animated svelte-od3veb",null,D,R),ke=Z(_e,1,"ref-block svelte-od3veb",null,ke,ye),pe=Z(Be,1,"pulse svelte-od3veb",null,pe,Ie)},[()=>({mobile:n(),fullscreen:u(),invisible:r(ee),"icon-small":r(G)}),()=>({hidden:r(ee)}),()=>({paused:r(te)})]),Ct("mouseleave",j,se),b(t,j),U(),o()}ot(["mousemove","click"]);function Pc(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);so(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=Ne();let c=m(()=>e.buttonComponent);var u=le(l);ci(u,()=>r(c),(_,f)=>{f(_,Gr(()=>e.buttonComponentProps??{}))}),b(s,l)},$$slots:{default:!0}}),U()}var Zr={prevButton:100,replayButton:200,playButton:300,nextButton:400,playPrevChapterButton:500,seekToInteractiveButton:600,interactiveGraphButton:700,liveButton:800};var Z$=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 sf(t,e){let i=Se(e,["$$slots","$$events","$$legacy","children"]);var o=Z$();let n;var a=h(o);ue(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 ma(t,e){let i=v(e,"isPrev",3,!1),o=v(e,"isMobile",3,!1),n=v(e,"width",3,"24"),a=v(e,"height",3,"24"),s=m(()=>i()&&o()?"transform: scaleX(-1) scale(1.3333);":i()?"transform: scaleX(-1);":o()?"transform: scale(1.3333);":void 0),d=m(()=>i()?"prev-icon":"next-icon");sf(t,{get style(){return r(s)},get width(){return n()},get height(){return a()},get viewBox(){return e.viewBox},get"data-testid"(){return r(d)}})}var X$=L('<div class="icon-background-mobile svelte-xtk2k4"></div>'),J$=L("<!> <!>",1),ey={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 Ga(t,e){F(e,!0),W(t,ey);let i=v(e,"ref",15,void 0),o=v(e,"isMobile",3,!1),n=v(e,"disabled",3,!1),s=be().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}`);kt(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=J$(),$=le(f);{var x=I=>{var M=X$();b(I,M)};V($,I=>{o()&&I(x)})}var w=E($,2);let S=m(()=>e.type==="prev");ma(w,{get isMobile(){return o()},get isPrev(){return r(S)}}),b(u,f)},$$slots:{default:!0}}),U()}var ty=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 Wl(t,e){let i=Se(e,["$$slots","$$events","$$legacy","children"]);var o=ty();let n;var a=h(o);ue(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 iy}from"@vkontakte/videoplayer-shared/es2024";var oy=L('<div class="icon-background-mobile svelte-1ot3duq"></div>'),ny=L("<!> <div><!></div>",1),ry={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 Rs(t,e){F(e,!0),W(t,ry);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,iy),d=H("tooltip_restart"),l=m(()=>`${o()?"btn-m--play":""} ${a()}`);kt(t,{get className(){return r(l)},testId:"btn-replay",ariaLabel:d,get disabled(){return n()},get click(){return s()},get ariaKeyShortCut(){return Mr.KeyK},get ref(){return i()},set ref(c){i(c)},children:(c,u)=>{var _=ny(),f=le(_);{var $=I=>{var M=oy();b(I,M)};V(f,I=>{o()&&I($)})}var x=E(f,2);let w;var S=h(x);Wl(S,{}),g(x),C(I=>w=Z(x,1,"svelte-1ot3duq",null,w,I),[()=>({mobile:o()})]),b(c,_)},$$slots:{default:!0}}),U()}var ay=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 _r(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=ay(),d=h(s);g(s),C(()=>{Le(s,"width",i()),Le(s,"height",o()),Le(s,"viewBox",n()),Le(d,"fill",a())}),b(t,s)}var sy=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 Xr(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=sy(),d=h(s);g(s),C(()=>{Le(s,"width",i()),Le(s,"height",o()),Le(s,"viewBox",n()),Le(d,"fill",a())}),b(t,s)}import{noop as ly}from"@vkontakte/videoplayer-shared/es2024";var dy=L('<div class="icon-background-mobile svelte-1ot3duq"></div>'),cy=L("<!> <div><!></div>",1),uy={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 Ds(t,e){F(e,!0),W(t,uy);let[i,o]=De(),n=()=>y(a,"$fakeIsPlaying$",i),{fakeIsPlaying$:a}=zi(),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,ly),$=be().ui.t,{toggle:x}=a,w=m(()=>x),S=m(()=>n()!==null),I=m(()=>r(S)?n():l()),M=m(()=>r(I)?$("tooltip_pause"):$("tooltip_play")),P=m(()=>r(I)?Xr:_r),A=m(()=>`${d()?"btn-m--play":""} ${u()}`),T=m(()=>r(S)?r(w):_());kt(t,{get className(){return r(A)},testId:"btn-play",get click(){return r(T)},get disabled(){return c()},get ariaLabel(){return r(M)},get ariaKeyShortCut(){return Mr.KeyK},get ref(){return s()},set ref(B){s(B)},children:(B,Q)=>{var G=cy();let ee=m(()=>r(P));var te=le(G);{var ie=Ve=>{var Ae=dy();b(Ve,Ae)};V(te,Ve=>{d()&&Ve(ie)})}var oe=E(te,2);let ge;var X=h(oe);ci(X,()=>r(ee),(Ve,Ae)=>{Ae(Ve,{})}),g(oe),C(Ve=>ge=Z(oe,1,"svelte-1ot3duq",null,ge,Ve),[()=>({mobile:d()})]),b(B,G)},$$slots:{default:!0}}),U(),o()}var py=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 lf(t,e){let i=Se(e,["$$slots","$$events","$$legacy","children"]);var o=py();let n;var a=h(o);ue(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 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_go_back"),s=m(()=>o()?"hidden":"");kt(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)=>{lf(d,{})},$$slots:{default:!0}}),U()}var fy=L('<span class="gutter svelte-et3q1q"><span><!></span></span>'),my={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 Kl(t,e){F(e,!0),W(t,my);let[i,o]=De(),n=()=>y(d,"$autoplayNextEnabled$",i),a=v(e,"ref",15,void 0),s=be(),d=s.ui.autoplayNextEnabled$,l=s.actions.internal.setAutoplayNextEnabled;kt(t,{click:()=>{l(!n(),!0)},get ref(){return a()},set ref(u){a(u)},children:(u,_)=>{var f=fy(),$=h(f);let x;var w=h($);{var S=M=>{_r(M,{width:"14",height:"14",fill:"#000"})},I=M=>{Xr(M,{width:"14",height:"14",fill:"#000"})};V(w,M=>{n()?M(S):M(I,!1)})}g($),g(f),C(M=>x=Z($,1,"toggler svelte-et3q1q",null,x,M),[()=>({enabled:n()})]),b(u,f)},$$slots:{default:!0}}),U(),o()}var vy=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 df(t,e){let i=Se(e,["$$slots","$$events","$$legacy","children"]);var o=vy();let n;var a=h(o);ue(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":"");kt(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)=>{df(d,{})},$$slots:{default:!0}}),U()}var gy=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 cf(t,e){let i=Se(e,["$$slots","$$events","$$legacy","children"]);var o=gy();let n;var a=h(o);ue(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 hy={hash:"svelte-17ceof5",code:'svg[data-testid="graph-open-icon"] ._closed {visibility:hidden;opacity:0;}'};function uf(t,e){W(t,hy);let i=v(e,"isOpened",3,!1),o=m(()=>i()?"graph-close-icon":"graph-open-icon");cf(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=be().ui.t,l=m(()=>a()?d("tooltip_interactive_graph_on"):d("tooltip_interactive_graph_off")),c=m(()=>o()?"hidden":"");kt(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());uf(u,{get isOpened(){return r(f)}})},$$slots:{default:!0}}),U()}import{PlaybackState as hh}from"@vkontakte/videoplayer-core/es2024";function Yl(t,e){F(e,!0);let[i,o]=De(),n=()=>y(c,"$playbackState$",i),a=v(e,"isMobile",3,!1),s=v(e,"isLiveActive",3,!1),d=v(e,"ariaLabel",3,""),l=be(),c=l.state.playbackState$,u=l.actions.internal.switchToActiveLive,_=l.actions.internal.togglePlay,f=m(()=>()=>{if(!s()){u();return}n()===hh.PAUSED&&_()}),$=m(()=>a()?"":"btn--live btn-full-opacity"),x=m(()=>s()?"btn-live":"btn-live-offset"),w=m(()=>s()&&n()===hh.PLAYING);kt(t,{get className(){return r($)},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 _h}from"@vkontakte/videoplayer-shared/es2024";var _y=L('<div class="icon icon-error-stub"><div class="inner"></div></div>'),by=L('<img class="icon" aria-hidden="true">');function Ya(t,e){"use strict";let i=Y(!1),o=()=>{N(i,!0)};var n=Ne(),a=le(n);{var s=l=>{var c=_y();b(l,c)},d=l=>{var c=by();C(()=>Le(c,"src",e.icon)),Ct("error",c,o),Ea(c),b(l,c)};V(a,l=>{r(i)?l(s):l(d,!1)})}b(t,n)}function pf(t,e){F(e,!0);let i=v(e,"disabled",3,!1),o=v(e,"onClick",3,_h),n=v(e,"ref",15),a=m(()=>o()===_h),s=m(()=>r(a)||i()),d=m(()=>r(a)?"btn-full-opacity":"");so(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);kt(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)=>{Ya(_,{get icon(){return e.icon}})},$$slots:{default:!0}})},$$slots:{default:!0}}),U()}var bh=t=>!!t.buttonComponent;var Jr={vkLogo:100,autoplayNext:200,volume:300,subtitles:400,settings:500,context:600,fullscreen:700,chromecast:800};var wy=L('<div><!> <div class="controls svelte-f6e8ix"><div class="controls-left svelte-f6e8ix"><!> <!> <!></div> <div class="controls-right svelte-f6e8ix"></div></div></div> <!>',1),Sy={hash:"svelte-f6e8ix",code:".wrapper-bottom.svelte-f6e8ix {pointer-events:none;position:absolute;z-index:var(--controls-container-z-index);width:100%;bottom:0;left:0;height:var(--controls-gradient-height);background:var(--controls-gradient);transition:transform var(--controls-transition-duration) var(--controls-transition-fn);display:flex;flex-direction:column;justify-content:flex-end;box-sizing:border-box;}.wrapper-bottom.svelte-f6e8ix > :where(.svelte-f6e8ix) {pointer-events:auto;}.controls.svelte-f6e8ix {width:100%;display:flex;align-items:center;justify-content:space-between;height:var(--controls-height);white-space:nowrap;font-size:13px;transition:transform var(--controls-transition-duration) var(--controls-transition-fn);will-change:transform;padding:0 var(--controls-desktop-padding-horizontal) 4px;box-sizing:border-box;}.controls-left.svelte-f6e8ix, .controls-right.svelte-f6e8ix {display:flex;align-content:center;}.controls-left.svelte-f6e8ix {flex-grow:1;min-width:0;overflow:hidden;}.controls-left.svelte-f6e8ix > *:not(:first-child), .controls-right.svelte-f6e8ix > * {margin-left:var(--controls-desktop-item-margin-left);}.controls-hidden.svelte-f6e8ix {visibility:visible; /* if hidden then slider will lose focus (if was focused) */transform:translateY(100%);}.wrapper-bottom.no-smooth.svelte-f6e8ix {transition:none;}"};function vf(t,e){F(e,!0),W(t,Sy);let[i,o]=De(),n=()=>y(ei,"$disabledControls$",i),a=()=>y(Ot,"$adPlaybackState",i),s=()=>y(Gt,"$playbackState$",i),d=()=>y(Jt,"$currentSubtitle$",i),l=()=>y(Wi,"$isEnded$",i),c=()=>y(Tn,"$currentGridType$",i),u=()=>y(Oo,"$isLive$",i),_=()=>y(hi,"$chromecastState$",i),f=()=>y(nn,"$isPictureInPictureActive",i),$=()=>y(Ho,"$pictureInPictureType$",i),x=()=>y(qi,"$availableSubtitlesList$",i),w=()=>y(rn,"$contextMenuOpenedByKeyboard$",i),S=()=>y(_o,"$showContextMenuBtn$",i),I=()=>y(Ci,"$playerSize",i),M=()=>y(to,"$isRewindableLive$",i),P=()=>y(on,"$isActiveLive$",i),A=()=>y(zo,"$graphIsOpened$",i),T=()=>y(jn,"$contextMenuVisible$",i),B=()=>y(po,"$isFullscreen",i),Q=()=>y(oo,"$autoplayNextEnabled",i),G=()=>y(r(yo),"$prevButton",i),ee=()=>y(r(lt),"$replayButton",i),te=()=>y(r(Lt),"$playButton",i),ie=()=>y(r(Zt),"$nextButton",i),oe=()=>y(r(Kt),"$playPrevChapterButton",i),ge=()=>y(r(Gi),"$seekToInteractiveButton",i),X=()=>y(r(Vi),"$interactiveGraphButton",i),Ve=()=>y(r(Ri),"$liveButton",i),Ae=()=>y(r(xo),"$time",i),se=()=>y(r(wo),"$episodes",i),He=()=>y(r(bi),"$vkLogo",i),j=()=>y(r(Xe),"$volume",i),D=()=>y(r(pt),"$subtitles",i),Re=()=>y(r(Di),"$settings",i),_e=()=>y(r($i),"$context",i),ke=()=>y(r(tr),"$fullscreen",i),Be=()=>y(r(ir),"$chromecast",i),pe=()=>y(io,"$additionalDesktopControlPanelRightButtons$",i),R=()=>y(an,"$isInteractiveTime$",i),ye=()=>y(Fo,"$settingsMenuVisible",i),Ie=()=>y(Co,"$settingButtonRef$",i),je=()=>y(bo,"$startedByKeyboard$",i),ze=()=>y(Xt,"$isAudioAvailable$",i),Te=()=>y(Ze,"$fakeIsPlaying$",i),Me=()=>y(In,"$seekToInteractiveDisabledTooltip$",i),We=()=>y($t,"$adPosition",i),it=()=>y(Bt,"$position$",i),vt=()=>y(uo,"$adDuration",i),st=()=>y(ct,"$duration$",i),It=v(e,"playerControlsWrapperRef",15,void 0),nt=v(e,"playerControlsRef",15,void 0),gt=v(e,"isAds",3,!1),Mt=v(e,"logoTargetUrl",3,""),Ce=v(e,"isOneVideoPlaylist",3,!1),Oe=v(e,"customFullscreenSupported",3,!0),{fakeIsPlaying$:Ze}=zi(),q=be(),ae=zi(),ne=Rt(),Fe=q.actions.internal.toggleMuted,Ge=q.actions.internal.togglePlay,wt=q.actions.internal.pause,Ke=q.actions.internal.toggleSubtitle,Je=q.callbacks?.onAudioDoesNotExistHint,Ee=q.callbacks?.onAudioDisabledHint,ct=q.state.duration$,Bt=q.state.positionWithScrubbing$,Gt=q.state.playbackState$,Xt=q.state.isAudioAvailable$,ri=q.state.isAudioDisabled,Wi=q.state.isEnded$,Oo=q.state.isLive$,on=q.state.isActiveLive$,to=q.state.isRewindableLive$,{isActive$:nn,type$:Ho}=ae.pictureInPicture$,Fo=q.ui.settingsMenu.visible$,co=q.ui.settingsMenu.openedByBtnKeyboard$,z=q.ui.controls,zt=q.actions.internal.getVideoEpisodes(),hi=q.state.chromecastState$,qi=q.state.availableSubtitlesList$,Jt=q.state.currentSubtitle$,ei=z.disabledControls$,jn=q.ui.contextMenu.visible$,_o=q.ui.contextMenu.showContextMenuBtn$,rn=q.ui.contextMenu.openedByBtnKeyboard$,bo=q.ui.startedByKeyboard$,Vt=q.ui.t,uo=q.ads.duration,$t=q.ads.position,Ot=q.ads.playbackState,po=q.ui.isFullscreen,Ci=q.ui.playerSize,Tn=q.ui.currentGridType$,io=q.ui.additionalDesktopControlPanelRightButtons$,oo=q.ui.autoplayNextEnabled$,Yt=q.actions.internal.getVideoElement,mt=q.actions.internal.replayInteractive,ai=q.actions.internal.prevVideoClick,mi=q.actions.internal.nextVideoClick,_i=q.state.isInteractive,an=q.state.isInteractiveTime$,ui=q.state.showInteractiveGraph,Pi=q.state.showSeekToInteractive,Uo=q.state.showPlayPrevChapter,sn=q.state.showInteractiveTimeIndicator,vi=q.state.playPrevChapterDisabledTooltip,In=ae.seekToInteractiveDisabledTooltip$,zo=ae.graphIsOpened$,no=ne.features.interactiveResponsiveUi,ln=m(()=>n().has("EPISODE_BUTTON")),$r=m(()=>n().has("GRAPH_BUTTON")),Zn=m(()=>n().has("SEEK_TO_INTERACTIVE_BUTTON")),En=m(()=>n().has("PLAY_BUTTON")),dn=m(()=>n().has("REPLAY_BUTTON")),Wo=m(()=>n().has("PLAY_PREV_CHAPTER_BUTTON")),cn=()=>q.actions.internal.toggleChromecast(),Ki=m(()=>gt()?a()==="playing":s()===ff.PLAYING),et=m(()=>d().value!=="off"),qo=m(()=>l()&&!gt()||_i),Pn=m(()=>no?r(qo)&&Si(c(),"m"):r(qo)),An=m(()=>!l()||_i||gt()),un=m(()=>Si(c(),"m")),Ko=m(()=>e.showNextPrevButtons&&Si(c(),"m")&&!gt()&&e.nextButtonActive),Qo=m(()=>e.showNextPrevButtons&&Si(c(),"m")&&!gt()&&e.prevButtonActive),$o=m(()=>!gt()&&!!u()),ki=m(()=>_()!==$h.NOT_AVAILABLE&&!(f()&&$()===1)&&Si(c(),"m")&&!_i),Ti=m(()=>e.showAutoplayNext&&!Ce()&&Si(c(),"s")),Mn=m(()=>x().length>0&&Si(c(),"m")),pn=m(()=>w()||S()),Ln=m(()=>Si(c(),"s")&&!gt()),Xn=m(()=>!e.logoHidden&&!gt()),Ai=m(()=>ne.features.fullscreen&&(e.logoHidden||Si(c(),no?"xs":"s"))&&!(f()&&$()===1)&&(_i?Oe():!0)),Mi=m(()=>(!u()||gt())&&!(ne.features.interactiveHideTime&&_i)),fn=m(()=>I().width>100),mn=m(()=>ui&&Si(c(),"m")),Qi=m(()=>no?Pi&&Si(c(),"s"):Pi),Li=m(()=>no?Uo&&Si(c(),"s"):Uo),vn=m(()=>!gt()&&!u()&&!!zt?.length&&r(un)&&!r(ln)),fo=m(()=>!M()||!!P()),yr=m(()=>A()?Vt("tooltip_interactive_graph_on"):Vt("tooltip_interactive_graph_off")),gn=m(()=>T()?Vt("aria_label_context_menu_close"):Vt("aria_label_context_menu_open")),Jn=(_t,xt)=>_t?xt&&xt===ff.PAUSED?Vt("tooltip_play"):"":Vt("tooltip_live"),hn=m(()=>Jn(r(fo),s())),_n=m(()=>ne.logoType==="vk_video"?Vt("tooltip_vk_video_logo"):Vt("tooltip_vk_logo")),xr=m(()=>r(et)?Vt("tooltip_subtitles_on"):Vt("tooltip_subtitles_off")),Vn=m(()=>B()?Vt("tooltip_fullscreen_on"):Vt("tooltip_fullscreen_off")),er=m(()=>_()===$h.CONNECTED?Vt("tooltip_chromecast_on"):Vt("tooltip_chromecast_off")),Rn=m(()=>Q()?Vt("tooltip_autoplay_on"):Vt("tooltip_autoplay_off")),bn=Y(0),qt=de({}),yo=m(()=>z.prevButton),lt=m(()=>z.replayButton),Lt=m(()=>z.playButton),Zt=m(()=>z.nextButton),Kt=m(()=>z.playPrevChapterButton),Gi=m(()=>z.seekToInteractiveButton),Vi=m(()=>z.interactiveGraphButton),Ri=m(()=>z.liveButton),xo=m(()=>z.time),wo=m(()=>z.episodes),bi=m(()=>z.vkLogo),Xe=m(()=>z.volume),pt=m(()=>z.subtitles),Di=m(()=>z.settings),$i=m(()=>z.context),tr=m(()=>z.fullscreen),ir=m(()=>z.chromecast),yi=m(()=>({prevButton:G()?G().right-G().left:0,replayButton:ee()?ee().right-ee().left:0,playButton:te()?te().right-te().left:0,nextButton:ie()?ie().right-ie().left:0,playPrevChapterButton:oe()?oe().right-oe().left:0,seekToInteractiveButton:ge()?ge().right-ge().left:0,interactiveGraphButton:X()?X().right-X().left:0,liveButton:Ve()?Ve().right-Ve().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:D()?D().right-D().left:0,settings:Re()?Re().right-Re().left:0,context:_e()?_e().right-_e().left:0,fullscreen:ke()?ke().right-ke().left:0,chromecast:Be()?Be().right-Be().left:0,additionalButtons:pe().length?pe().reduce(_t=>[..._t,40],[]):[]})),So=Y(0);Ue(()=>{(!r(So)||r(So)<r(yi).time)&&ft(()=>N(So,de(r(yi).time)))});let $n=Y(!1);Ue(()=>{let _t=0;r(vn)&&(Si(c(),"xl")?_t=r(yi).time:_t=60);let xt=r(yi).prevButton+r(yi).playButton+r(yi).nextButton+r(yi).seekToInteractiveButton+r(yi).interactiveGraphButton+r(yi).liveButton+r(So)+_t;N($n,de(r(Mi)&&r(bn)>=xt))});let Dr=m(()=>r($n)&&Si(c(),"m")),wr=xy(Ic,260);Ue(()=>{I(),R(),wr(Yt(),z,qt,e.showControls)});let Co=re();Ue(()=>{ye(),Ie()&&ft(()=>Ts(Ie(),ye(),co))});let Dn;Ue(()=>{je(),ft(()=>Ec(bo,je(),Dn))});function ko(){ua({isAudioDisabled:ri,audioDisabledHintCallback:Ee,isAudioAvailable:ze(),audioIsNotExistHintCallback:Je})&&Fe()}let Sr=_i?mt:Ge,or=m(()=>Te()!==null),nr=m(()=>r(or)?Te():r(Ki)),Cr=m(()=>r(nr)?Vt("tooltip_pause"):Vt("tooltip_play")),To=Vt("tooltip_episodes"),kr=m(()=>r(Qo)?{id:"prevButton",type:"desktop-control-panel-left",weight:Zr.prevButton,buttonComponent:Ga,buttonComponentProps:{disabled:!e.prevButtonActive,type:"prev",click:ai.bind(null,!0)},tooltipEnabled:!q.callbacks?.uiInfo?.onPrevButtonMouseEnter&&!q.callbacks?.uiInfo?.onPrevButtonMouseLeave,mouseEnter:()=>{q.callbacks?.uiInfo?.onPrevButtonMouseEnter?.(Qa(Yt(),qt,"prevButton",e.showControls))},mouseLeave:()=>{q.callbacks?.uiInfo?.onPrevButtonMouseLeave?.(Qa(Yt(),qt,"prevButton",e.showControls))},tooltipText:Vt("tooltip_previous"),disabled:!e.prevButtonActive}:void 0),Nn=m(()=>r(Pn)?{id:"replayButton",type:"desktop-control-panel-left",weight:Zr.replayButton,buttonComponent:Rs,buttonComponentProps:{disabled:r(dn),click:Sr},tooltipText:Vt("tooltip_restart"),disabled:r(dn)}:void 0),Bn=m(()=>r(An)?{id:"playButton",type:"desktop-control-panel-left",weight:Zr.playButton,buttonComponent:Ds,buttonComponentProps:{disabled:r(En),isPlaying:r(Ki),click:Ge},tooltipText:r(Cr),disabled:r(En)}:void 0),rr=m(()=>r(Ko)?{id:"nextButton",type:"desktop-control-panel-left",weight:Zr.nextButton,buttonComponent:Ga,buttonComponentProps:{disabled:!e.nextButtonActive,type:"next",click:mi.bind(null,!0)},tooltipEnabled:!q.callbacks?.uiInfo?.onNextButtonMouseEnter&&!q.callbacks?.uiInfo?.onNextButtonMouseLeave,mouseEnter:()=>{q.callbacks?.uiInfo?.onNextButtonMouseEnter?.(Qa(Yt(),qt,"nextButton",e.showControls))},mouseLeave:()=>{q.callbacks?.uiInfo?.onNextButtonMouseLeave?.(Qa(Yt(),qt,"nextButton",e.showControls))},tooltipText:Vt("tooltip_next"),disabled:!e.nextButtonActive}:void 0),Ye=m(()=>_i&&r(Li)?{id:"playPrevChapterButton",type:"desktop-control-panel-left",weight:Zr.playPrevChapterButton,buttonComponent:ql,buttonComponentProps:{disabled:r(Wo),click:e.playPrevChapter},tooltipText:Vt("tooltip_interactive_go_back"),disabledTooltipContent:Vt(vi),disabled:r(Wo)}:void 0),Et=m(()=>_i&&r(Qi)?{id:"seekToInteractiveButton",type:"desktop-control-panel-left",weight:Zr.seekToInteractiveButton,buttonComponent:Ql,buttonComponentProps:{disabled:r(Zn),click:e.seekToInteractive},tooltipText:Vt("tooltip_interactive_seek"),disabled:r(Zn),disabledTooltipContent:Vt(Me())}:void 0),pi=m(()=>_i&&r(mn)?{id:"interactiveGraphButton",type:"desktop-control-panel-left",weight:Zr.interactiveGraphButton,buttonComponent:Gl,buttonComponentProps:{disabled:r($r),click:zo.toggle,graphIsOpened:A()},tooltipText:r(yr)}:void 0),ro=m(()=>r($o)?{id:"liveButton",type:"desktop-control-panel-left",weight:Zr.liveButton,buttonComponent:Yl,buttonComponentProps:{isLiveActive:r(fo),ariaLabel:r(hn)},tooltipText:r(hn),disabled:r(fo)&&s()===ff.PLAYING}:void 0),Io=m(()=>[r(kr),r(Nn),r(Bn),r(rr),r(Ye),r(Et),r(pi),r(ro)].filter(_t=>!!_t).sort(Ha)),On=m(()=>r(Xn)?{id:"vkLogo",type:"desktop-control-panel-right",weight:Jr.vkLogo,buttonComponent:Rl,buttonComponentProps:{targetUrl:Mt(),logoClickable:e.logoClickable,click:wt},tooltipText:r(_n),disabledTooltipContent:"",disabled:!e.logoClickable}:void 0),ar=m(()=>r(Ti)?{id:"autoplayNext",type:"desktop-control-panel-right",weight:Jr.autoplayNext,buttonComponent:Kl,tooltipText:r(Rn)}:void 0),we=m(()=>({id:"volume",type:"desktop-control-panel-right",weight:Jr.volume,buttonComponent:Hp,buttonComponentProps:{click:ko}})),yt=m(()=>r(Mn)?{id:"subtitles",type:"desktop-control-panel-right",weight:Jr.subtitles,buttonComponent:Rp,buttonComponentProps:{isSubtitlesEnabled:r(et),click:Ke},tooltipText:r(xr)}:void 0),Dt=m(()=>r(Ln)?{id:"settings",type:"desktop-control-panel-right",weight:Jr.settings,buttonComponent:Ms,buttonComponentProps:{ref$:Co},tooltipText:ye()?void 0:Vt("tooltip_settings_off")}:void 0),Wt=m(()=>ne.features.contextMenuButton?{id:"context",type:"desktop-control-panel-right",weight:Jr.context,buttonComponent:af,buttonComponentProps:{click:e.toggleFullscreen,ariaLabel:r(gn)},className:r(pn)?"":"out-of-view",tooltipText:r(gn)}:void 0),Ni=m(()=>r(Ai)?{id:"fullscreen",type:"desktop-control-panel-right",weight:Jr.fullscreen,buttonComponent:Vl,buttonComponentProps:{isFullscreen:B(),click:e.toggleFullscreen},tooltipText:r(Vn)}:void 0),Ii=m(()=>r(ki)?{id:"chromecast",type:"desktop-control-panel-right",weight:Jr.chromecast,buttonComponent:Dl,buttonComponentProps:{state:_(),click:cn},tooltipText:r(er)}:void 0),si=m(()=>[r(On),r(ar),r(we),r(yt),r(Dt),r(Wt),r(Ni),r(Ii),...pe()].filter(_t=>!!_t).sort(Ha));var Hn=wy(),Pe=le(Hn);let Tt;var li=h(Pe);let Ei=m(()=>!r(fn));Bl(li,{get isHidden(){return r(Ei)},get isAds(){return gt()},get canRewindLive(){return e.canRewindLive},get isRewindableLive(){return M()},get ref(){return qt.timeline},set ref(_t){qt.timeline=_t}});var Eo=E(li,2),sr=h(Eo),Po=h(sr);di(Po,17,()=>r(Io),_t=>_t.id,(_t,xt)=>{Pc(_t,{get buttonComponent(){return r(xt).buttonComponent},get buttonComponentProps(){return r(xt).buttonComponentProps},get tooltipText(){return r(xt).tooltipText},get disabledTooltipContent(){return r(xt).disabledTooltipContent},get disabled(){return r(xt).disabled},get className(){return r(xt).className},get tooltipEnabled(){return r(xt).tooltipEnabled},get mouseEnter(){return r(xt).mouseEnter},get mouseLeave(){return r(xt).mouseLeave},get ref(){return qt[r(xt).id]},set ref(Go){qt[r(xt).id]=Go}})});var Tr=E(Po,2);{var Xa=_t=>{let xt=m(()=>gt()?We():it()),Go=m(()=>gt()?vt():st());Ml(_t,{isMobile:!1,get showDuration(){return r(Dr)},get position(){return r(xt)},get duration(){return r(Go)},get ref(){return qt.time},set ref(Nr){qt.time=Nr}})};V(Tr,_t=>{r(Mi)&&_t(Xa)})}var Os=E(Tr,2);let Ja=m(()=>!r(vn));so(Os,{className:"w-max",get disabled(){return r(Ja)},tooltipContent:To,get ref(){return qt.episodes},set ref(_t){qt.episodes=_t},children:(_t,xt)=>{var Go=Ne(),Nr=le(Go);{var ea=Br=>{Ol(Br,{get position(){return it()},get duration(){return st()},timeCodes:zt})};V(Nr,Br=>{r(vn)&&Br(ea)})}b(_t,Go)},$$slots:{default:!0}}),g(sr);var es=E(sr,2);di(es,21,()=>r(si),_t=>_t.id,(_t,xt)=>{var Go=Ne(),Nr=le(Go);{var ea=lr=>{Pc(lr,{get buttonComponent(){return r(xt).buttonComponent},get buttonComponentProps(){return r(xt).buttonComponentProps},get tooltipText(){return r(xt).tooltipText},get disabledTooltipContent(){return r(xt).disabledTooltipContent},get disabled(){return r(xt).disabled},get className(){return r(xt).className},get ref(){return qt[r(xt).id]},set ref(ga){qt[r(xt).id]=ga}})},Br=lr=>{let ga=m(()=>!!r(xt).disabled);pf(lr,{get id(){return r(xt).id},get testId(){return r(xt).testId},get icon(){return r(xt).icon},get ariaLabel(){return r(xt).ariaLabel},get tooltipText(){return r(xt).tooltipText},get disabledTooltipContent(){return r(xt).disabledTooltipContent},get disabled(){return r(ga)},get onClick(){return r(xt).onClick},get ref(){return qt[r(xt).id]},set ref(ts){qt[r(xt).id]=ts}})};V(Nr,lr=>{bh(r(xt))?lr(ea):lr(Br,!1)})}b(_t,Go)}),g(es),g(Eo),at(Eo,_t=>nt(_t),()=>nt()),g(Pe),at(Pe,_t=>It(_t),()=>It());var Fn=E(Pe,2);{var Hs=_t=>{zl(_t,{get ref(){return qt.interactiveTimeIndicator},set ref(xt){qt.interactiveTimeIndicator=xt}})};V(Fn,_t=>{sn&&_t(Hs)})}C(_t=>Tt=Z(Pe,1,"wrapper-bottom svelte-f6e8ix",null,Tt,_t),[()=>({hidden:e.bottomHidden,"controls-hidden":!e.showControls,"no-smooth":e.bottomNoSmooth})]),Ar(sr,"clientWidth",_t=>N(bn,_t)),b(t,Hn),U(),o()}import{ChromecastState as xh,PlaybackState as wh}from"@vkontakte/videoplayer-core/es2024";import{noop as yh}from"@vkontakte/videoplayer-shared/es2024";var Cy=L('<div class="icon icon-error-stub svelte-167ouw6"><div class="inner svelte-167ouw6"></div></div>'),ky=L('<img class="icon svelte-167ouw6" aria-hidden="true">'),Ty={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 gf(t,e){W(t,Ty);let i=v(e,"disabled",3,!1),o=v(e,"onClick",3,yh),n=m(()=>o()===yh),a=m(()=>r(n)||i()),s=Y(!1),d=()=>{N(s,!0)},l=m(()=>r(n)?"btn-full-opacity":"");kt(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 _=Ne(),f=le(_);{var $=w=>{var S=Cy();b(w,S)},x=w=>{var S=ky();C(()=>Le(S,"src",e.iconUrl)),Ct("error",S,d),Ea(S),b(w,S)};V(f,w=>{r(s)?w($):w(x,!1)})}b(c,_)},$$slots:{default:!0}})}var Iy=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 hf(t,e){let i=Se(e,["$$slots","$$events","$$legacy","children"]);var o=Iy();let n;var a=h(o);ue(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 Ey}from"@vkontakte/videoplayer-shared/es2024";var Py=L('<span class="text svelte-6gmlbk"> </span>'),Ay=L('<div aria-hidden="true"><!> <!></div>'),My={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),W(t,My);let i=v(e,"muted",3,!1),o=v(e,"expanded",3,!1),n=v(e,"click",3,Ey),a=v(e,"ref",15,void 0),d=be().ui.t,l=m(()=>i()?d("tooltip_volume"):d("tooltip_volume_muted")),c=m(()=>o()?pa:hf),u=m(()=>o()?"btn-mobile-unmuted":"btn-mobile-muted");kt(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 $=Ay();let x=m(()=>r(c)),w;var S=h($);ci(S,()=>r(x),(P,A)=>{A(P,{})});var I=E(S,2);{var M=P=>{var A=Py(),T=h(A,!0);g(A),C(B=>ce(T,B),[()=>d("mobile_unmute")]),b(P,A)};V(I,P=>{o()&&P(M)})}g($),C(P=>w=Z($,1,"container svelte-6gmlbk",null,w,P),[()=>({expanded:o()})]),b(_,$)},$$slots:{default:!0}}),U()}var Ly=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 _f(t,e){let i=Se(e,["$$slots","$$events","$$legacy","children"]);var o=Ly();let n;var a=h(o);ue(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 Vy={hash:"svelte-tmam00",code:`svg[data-testid="pip-icon--active"] .hidden-active,
255
+ svg[data-testid="pip-icon"] .hidden-not-active {visibility:hidden;opacity:0;}`};function bf(t,e){W(t,Vy);let i=v(e,"isActive",3,!1),o=m(()=>i()?"color: #2688EB;":"color: #fff;"),n=m(()=>i()?"pip-icon--active":"pip-icon");_f(t,{get style(){return r(o)},get"data-testid"(){return r(n)}})}import{noop as Ry}from"@vkontakte/videoplayer-shared/es2024";function $f(t,e){F(e,!0);let i=v(e,"ref",15,void 0),o=v(e,"isPictureInPictureActive",3,!1),n=v(e,"click",3,Ry),a=H("menu_pip");kt(t,{testId:"btn-pip",ariaLabel:a,get click(){return n()},get ref(){return i()},set ref(s){i(s)},children:(s,d)=>{bf(s,{get isActive(){return o()}})},$$slots:{default:!0}}),U()}import{debounceFn as Dy}from"@vkontakte/videoplayer-shared/es2024";var Ny=(t,e,i,o)=>{r(e)&&i.onDisabledPlayPrevChapterClick(r(o))},By=(t,e,i,o)=>{r(e)&&i.onDisabledSeekToInteractiveClick(r(o))},Oy=L("<div><!></div>"),Hy=L("<div><!></div>"),Fy=L("<div><!></div>"),Uy=L("<!> <!> <!>",1),zy=L("<div></div> <div><!></div> <div><!> <!> <!> <!> <!> <!></div> <div><!> <!> <!> <!></div> <!>",1),Wy=L("<div><!></div>"),qy=L('<div class="wrapper-middle svelte-1afsgkw"><!></div>'),Ky=L("<!> <!> <div><!></div>",1),Qy=L('<div aria-hidden="true">\xB7</div> <!>',1),Gy=L("<!> <!> <div><div><div><!> <!> <!> <!> <!> <!></div> <!></div></div> <!>",1),Yy={hash:"svelte-1afsgkw",code:`.wrapper-bottom.svelte-1afsgkw {pointer-events:none;position:absolute;z-index:var(--controls-container-z-index);width:100%;bottom:0;left:0;height:var(--controls-gradient-height);background:var(--controls-gradient);transition:transform var(--controls-transition-duration) var(--controls-transition-fn);display:flex;flex-direction:column;justify-content:flex-end;box-sizing:border-box;padding:0 4px 8px;}.wrapper-bottom.svelte-1afsgkw > :where(.svelte-1afsgkw) {pointer-events:auto;}.wrapper-bottom.ads-timeline-mobile.svelte-1afsgkw {height:9px;padding:0 4px 4px;}.wrapper-middle.svelte-1afsgkw {position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);transition:opacity var(--controls-transition-duration);display:flex;align-items:center;z-index:var(--controls-container-z-index);}.wrapper-top-right.svelte-1afsgkw {position:absolute;top:4px;right:8px;transition:opacity var(--controls-transition-duration);display:flex;z-index:var(--controls-container-z-index);}.wrapper-top-left.svelte-1afsgkw {position:absolute;top:4px;left:8px;z-index:var(--controls-container-z-index);}.wrapper-middle-left.svelte-1afsgkw,
256
256
  .wrapper-middle-left-second.svelte-1afsgkw,
257
257
  .wrapper-middle-right.svelte-1afsgkw {position:absolute;top:50%;transform:translateY(-50%);height:44px;width:44px;border-radius:12px;background-color:rgba(0, 0, 0, 0.56);transition:opacity var(--controls-transition-duration);display:flex;align-items:center;justify-content:center;}.wrapper-middle-left.svelte-1afsgkw {left:12px;}.wrapper-middle-left-second.svelte-1afsgkw {left:64px;}.wrapper-middle-right.svelte-1afsgkw {right:12px;}.controls.svelte-1afsgkw {width:100%;display:flex;align-items:center;height:var(--controls-height);white-space:nowrap;font-size:13px;transition:transform var(--controls-transition-duration) var(--controls-transition-fn);will-change:transform;padding:0 4px;box-sizing:border-box;}.controls.svelte-1afsgkw > *:not(:first-child) {margin-left:8px;}.hidden.svelte-1afsgkw {visibility:hidden;opacity:0;}.controls-hidden.svelte-1afsgkw {visibility:visible; /* if hidden then slider will lose focus (if was focused) */transform:translateY(100%);}.wrapper-bottom.no-smooth.svelte-1afsgkw {transition:none;}.overlay-mobile.svelte-1afsgkw {position:absolute;top:0;left:0;width:100%;height:100%;background-color:rgba(0, 0, 0, .3);pointer-events:none;transition:opacity var(--controls-transition-duration);}
258
258
 
@@ -260,7 +260,7 @@ Try switching the\xA0quality to\xA0Auto.`},Vg=x0;var Yr=new Map;Yr.set(Ng.EN,Vg)
260
260
  }
261
261
 
262
262
  @media screen and (orientation: landscape) {.wrapper-top-left.fullscreen.svelte-1afsgkw {top:12px;left:44px;}.wrapper-top-right.fullscreen.svelte-1afsgkw {top:12px;right:44px;}.wrapper-middle-left.fullscreen.svelte-1afsgkw {left:44px;}.wrapper-middle-left-second.fullscreen.svelte-1afsgkw {left:96px;}.wrapper-middle-right.fullscreen.svelte-1afsgkw {right:44px;}.controls-wrapper.fullscreen.svelte-1afsgkw {position:absolute;left:36px;right:36px;bottom:32px;width:calc(100% - 72px);}
263
- }`};function wf(t,e){F(e,!0),z(t,Xy);let[i,o]=Me(),n=()=>y(po,"$seekToInteractiveDisabledTooltip$",i),a=()=>y(an,"$disabledControls$",i),s=()=>y(vt,"$playbackState$",i),d=()=>y(uo,"$adPlaybackState",i),l=()=>y(Ue,"$isEnded$",i),c=()=>y(G,"$playerSize",i),u=()=>y(We,"$scrubbingInProgress",i),_=()=>y(oo,"$chromecastState$",i),f=()=>y($t,"$isPictureInPictureActive",i),$=()=>y(Ke,"$pictureInPictureType$",i),x=()=>y(Ze,"$mobileNotReportControlHidden$",i),w=()=>y(pt,"$playerPhase",i),S=()=>y($o,"$currentGridType$",i),I=()=>y(Ye,"$isLive$",i),P=()=>y(st,"$settingsMenuVisible",i),M=()=>y(ie,"$isRewindableLive$",i),L=()=>y(ne,"$isActiveLive$",i),T=()=>y(Jt,"$isInteractiveTime$",i),B=()=>y(Lt,"$isAudioAvailable$",i),K=()=>y(ki,"$settingButtonRef$",i),Q=()=>y(Ui,"$startedByKeyboard$",i),Y=()=>y(Wt,"$isFullscreen",i),ae=()=>y(Ne,"$mobileUnmuteButtonVisible",i),se=()=>y(W,"$muted$",i),ee=()=>y(Xe,"$mobileUnmuteButtonExpanded",i),ge=()=>y(Kt,"$additionalButtons$",i),J=()=>y(Ho,"$crashed$",i),Pe=()=>y(yt,"$graphIsOpened$",i),Ae=()=>y(yo,"$adPosition",i),oe=()=>y(Fo,"$adDuration",i),Fe=()=>y(nt,"$position$",i),j=()=>y(Tt,"$duration$",i),N=m(e,"playerControlsWrapperRef",15,void 0),Le=m(e,"playerControlsRef",15,void 0),be=m(e,"isAds",3,!1),ke=m(e,"logoTargetUrl",3,""),Be=m(e,"isOneVideoPlaylist",3,!1),ce=m(e,"customFullscreenSupported",3,!0),R=_e(),$e=Fi(),Ie=Mt(),Ge=R.actions.internal.toggleMuted,ze=R.actions.internal.togglePlay,ye=R.actions.internal.pause,Ve=R.actions.internal.prevVideoClick,qe=R.actions.internal.nextVideoClick,ot=R.callbacks?.onAudioDoesNotExistHint,ut=R.callbacks?.onAudioDisabledHint,pt=R.playerPhase,Tt=R.state.duration$,nt=R.state.positionWithScrubbing$,vt=R.state.playbackState$,Lt=R.state.isAudioAvailable$,Te=R.state.isAudioDisabled,Ue=R.state.isEnded$,Ye=R.state.isLive$,W=R.state.muted$,ne=R.state.isActiveLive$,ie=R.state.isRewindableLive$,We=R.ui.scrubbingInProgress,Ze=R.ui.mobileNotReportControlHidden$,{isActive$:$t,type$:Ke}=$e.pictureInPicture$,Xe=R.ui.mobileUnmuteButtonExpanded,Ne=R.ui.mobileUnmuteButtonVisible,st=R.ui.settingsMenu.visible$,Vt=R.ui.settingsMenu.openedByBtnKeyboard$,Zt=R.ui.controls,mi=R.actions.internal.getVideoEpisodes(),ri=R.webApi.pictureInPictureApi,oo=R.state.chromecastState$,Ho=R.state.crashed$,an=Zt.disabledControls$,Ui=R.ui.startedByKeyboard$,$o=R.ui.currentGridType$,Fo=R.ads.duration,yo=R.ads.position,uo=R.ads.playbackState,Wt=R.ui.isFullscreen,G=R.ui.playerSize,Kt=R.ui.additionalButtonsDeprecated$,Xt=R.actions.internal.getVideoElement,zi=R.actions.internal.replayInteractive,Gt=R.state.isInteractive,Jt=R.state.isInteractiveTime$,qi=R.state.showInteractiveGraph,no=R.state.showSeekToInteractive,xo=R.state.showPlayPrevChapter,Nt=R.state.showInteractiveTimeIndicator,po=$e.seekToInteractiveDisabledTooltip$,yt=$e.graphIsOpened$,Ot=v(()=>H(R.state.playPrevChapterDisabledTooltip)),$i=v(()=>H(n())),wo=v(()=>a().has("EPISODE_BUTTON")),Pn=v(()=>a().has("GRAPH_BUTTON")),ro=v(()=>a().has("SEEK_TO_INTERACTIVE_BUTTON")),ao=v(()=>a().has("PLAY_BUTTON")),Yt=v(()=>a().has("REPLAY_BUTTON")),mt=v(()=>a().has("PLAY_PREV_CHAPTER_BUTTON")),li=v(()=>s()===kh.PLAYING),vi=v(()=>d()==="paused"),yi=v(()=>l()&&!be()&&!Gt),sn=v(()=>!l()||be()),di=v(()=>e.showNextPrevButtons&&!be()&&e.prevButtonActive),Ai=v(()=>e.showNextPrevButtons&&!be()&&e.nextButtonActive),Uo=v(()=>c().width>300),ln=v(()=>c().width>400),gi=v(u),An=v(()=>_()!==Ch.NOT_AVAILABLE&&!(f()&&$()===1)&&!x()&&!Gt),zo=v(()=>w()==="LiveWaitingStart"),so=v(()=>!!ri&&_()!==Ch.CONNECTED&&!x()&&($()===1&&r(zo)||!r(zo))&&!r(gi)&&!Gt),dn=v(()=>!r(gi)&&Ci(S(),"s")),_r=v(()=>!e.logoHidden&&c().width>350),jn=v(()=>Ie.features.fullscreen&&!(f()&&$()===1)&&(Gt?ce():!0)&&!r(gi)),Mn=v(()=>(!I()||be())&&c().width>260&&!r(gi)&&!(Ie.features.interactiveHideTime&&Gt)),cn=v(()=>P()||e.showControls),qo=v(()=>!be()&&!I()&&!!mi?.length&&r(Uo)&&!r(wo)&&!r(gi)),un=v(()=>!M()||!!L()),Wi=v(()=>qi&&Ci(S(),"m")),et=de({}),Wo=Oy(Bs,260);He(()=>{c(),T(),Wo(Xt(),Zt,et,e.showControls)});let Ln=()=>R.actions.internal.toggleChromecast();function Vn(){fa({isAudioDisabled:Te,audioDisabledHintCallback:ut,isAudioAvailable:B(),audioIsNotExistHintCallback:ot})&&Ge()}async function pn(){ri?.isActive()?await ri?.remove():await ri?.request()}function Ko(){!Te&&B()&&Ne.set(!1),Vn()}let Qo=X(""),So=(lt,Rt)=>{if(!lt){D(Qo,de(H("tooltip_live")));return}Rt&&Rt===kh.PAUSED&&D(Qo,de(H("tooltip_play")))};He(()=>{So(r(un),s())});let ki=re();He(()=>{K()&&Ps(K(),P(),Vt)}),He(()=>{Mc(Ui,Q(),et.playButton)});var Ti=Zy(),Rn=le(Ti);{var fn=lt=>{var Rt=Ky(),Pt=le(Rt);let Ii;var Qi=E(Pt,2);let Ei;var Gi=h(Qi);{var ko=Je=>{let It=v(()=>B()&&!Te&&ee());Vc(Je,{get muted(){return se()},get expanded(){return r(It)},click:Ko,get ref(){return et.volume},set ref(Qt){et.volume=Qt}})};V(Gi,Je=>{(!B()||ae())&&Je(ko)})}g(Qi);var mo=E(Qi,2);let hi;var je=h(mo);ai(je,1,ge,({iconUrl:Je,ariaLabel:It,testId:Qt,onClick:ji,tooltip:Eo})=>Je,(Je,It)=>{let Qt=()=>r(It).iconUrl,ji=()=>r(It).ariaLabel,Eo=()=>r(It).testId,zn=()=>r(It).onClick,ir=()=>r(It).tooltip,jo=v(()=>ji()??ir());_f(Je,{get iconUrl(){return Qt()},get ariaLabel(){return r(jo)},get testId(){return Eo()},get onClick(){return zn()}})});var xt=E(je,2);{var Yi=Je=>{jl(Je,{get ref(){return et.autoplayNextToggle},set ref(It){et.autoplayNextToggle=It}})};V(xt,Je=>{e.showAutoplayNext&&!Be()&&Je(Yi)})}var xi=E(xt,2);{var Jn=Je=>{Fl(Je,{isMobile:!0,click:Ln,get state(){return _()},get ref(){return et.chromecast},set ref(It){et.chromecast=It}})};V(xi,Je=>{r(An)&&Je(Jn)})}var bn=E(xi,2);{var Pi=Je=>{xf(Je,{click:pn,get isPictureInPictureActive(){return f()},get ref(){return et.pip},set ref(It){et.pip=It}})};V(bn,Je=>{r(so)&&Je(Pi)})}var Go=E(bn,2);{var $n=Je=>{Rs(Je,{ref$:ki})};V(Go,Je=>{J()&&Je($n)})}var Br=E(Go,2);{var xr=Je=>{Hl(Je,{click:ye,get targetUrl(){return ke()},get logoClickable(){return e.logoClickable},get ref(){return et.vkLogo},set ref(It){et.vkLogo=It}})};V(Br,Je=>{r(_r)&&Je(xr)})}g(mo);var To=E(mo,2);let Fn;var Io=h(To);{var wr=Je=>{let It=v(()=>Ve.bind(null,!0));ja(Je,{get click(){return r(It)},type:"prev",isMobile:!0,get ref(){return et.prevButton},set ref(Qt){et.prevButton=Qt}})};V(Io,Je=>{r(di)&&Je(wr)})}var er=E(Io,2);{var Sr=Je=>{Hs(Je,{get disabled(){return r(ao)},click:ze,isMobile:!0,get isPlaying(){return r(li)},get ref(){return et.playButton},set ref(It){et.playButton=It}})};V(er,Je=>{r(sn)&&Je(Sr)})}var tr=E(er,2);{var Cr=Je=>{Os(Je,{get disabled(){return r(Yt)},click:ze,isMobile:!0,get ref(){return et.replayButton},set ref(It){et.replayButton=It}})};V(tr,Je=>{r(yi)&&Je(Cr)})}var Yo=E(tr,2);{var yn=Je=>{let It=v(()=>qe.bind(null,!0));ja(Je,{get click(){return r(It)},type:"next",isMobile:!0,get ref(){return et.nextButton},set ref(Qt){et.nextButton=Qt}})};V(Yo,Je=>{r(Ai)&&Je(yn)})}g(To);var Un=E(To,2);{var kr=Je=>{var It=Wy(),Qt=le(It);{var ji=Ri=>{var fe=Uy();let Ct;fe.__click=[Hy,mt,e,Ot];var ei=h(fe);let ci=v(()=>!e.showControls);Yl(ei,{get hidden(){return r(ci)},get disabled(){return r(mt)},get click(){return e.playPrevChapter},get ref(){return et.playPrevChapterButton},set ref(ui){et.playPrevChapterButton=ui}}),g(fe),C(ui=>Ct=Z(fe,1,"wrapper-middle-left svelte-1afsgkw",null,Ct,ui),[()=>({fullscreen:Y(),hidden:!e.showControls})]),b(Ri,fe)};V(Qt,Ri=>{xo&&Ri(ji)})}var Eo=E(Qt,2);{var zn=Ri=>{var fe=zy();let Ct;var ei=h(fe);let ci=v(()=>!e.showControls&&!Pe());Xl(ei,{get hidden(){return r(ci)},get disabled(){return r(Pn)},get click(){return yt.toggle},get graphIsOpened(){return Pe()},get ref(){return et.interactiveGraphButton},set ref(ui){et.interactiveGraphButton=ui}}),g(fe),C(ui=>Ct=Z(fe,1,gl(xo?"wrapper-middle-left-second":"wrapper-middle-left"),"svelte-1afsgkw",Ct,ui),[()=>({fullscreen:Y(),hidden:!e.showControls&&!Pe()})]),b(Ri,fe)};V(Eo,Ri=>{r(Wi)&&Ri(zn)})}var ir=E(Eo,2);{var jo=Ri=>{var fe=qy();let Ct;fe.__click=[Fy,ro,e,$i];var ei=h(fe);let ci=v(()=>!e.showControls);Zl(ei,{get hidden(){return r(ci)},get disabled(){return r(ro)},get click(){return e.seekToInteractive},get ref(){return et.seekToInteractiveButton},set ref(ui){et.seekToInteractiveButton=ui}}),g(fe),C(ui=>Ct=Z(fe,1,"wrapper-middle-right svelte-1afsgkw",null,Ct,ui),[()=>({fullscreen:Y(),hidden:!e.showControls})]),b(Ri,fe)};V(ir,Ri=>{no&&Ri(jo)})}b(Je,It)};V(Un,Je=>{Gt&&!u()&&Je(kr)})}C((Je,It,Qt,ji)=>{Ii=Z(Pt,1,"overlay-mobile svelte-1afsgkw",null,Ii,Je),Ei=Z(Qi,1,"wrapper-top-left svelte-1afsgkw",null,Ei,It),hi=Z(mo,1,"wrapper-top-right svelte-1afsgkw",null,hi,Qt),Fn=Z(To,1,"wrapper-middle svelte-1afsgkw",null,Fn,ji)},[()=>({hidden:!r(cn)}),()=>({hidden:!e.showControls,fullscreen:Y()}),()=>({hidden:!e.showControls&&!x(),fullscreen:Y()}),()=>({hidden:!e.showControls||u()||e.endScreenShown&&e.showNextPrevButtons})]),b(lt,Rt)};V(Rn,lt=>{be()||lt(fn)})}var Nn=E(Rn,2);{var Zn=lt=>{var Rt=Yy(),Pt=le(Rt);{var Ii=hi=>{var je=Qy();let xt;var Yi=h(je);Vc(Yi,{get muted(){return se()},expanded:!1,click:Ko,get ref(){return et.volume},set ref(xi){et.volume=xi}}),g(je),C(xi=>xt=Z(je,1,"wrapper-top-right svelte-1afsgkw",null,xt,xi),[()=>({fullscreen:Y()})]),b(hi,je)};V(Pt,hi=>{ae()&&hi(Ii)})}var Qi=E(Pt,2);{var Ei=hi=>{var je=Gy(),xt=h(je);let Yi=v(()=>!r(vi));Hs(xt,{get disabled(){return r(ao)},click:ze,isMobile:!0,get isPlaying(){return r(Yi)},get ref(){return et.playButton},set ref(xi){et.playButton=xi}}),g(je),b(hi,je)};V(Qi,hi=>{r(vi)&&hi(Ei)})}var Gi=E(Qi,2);let ko;var mo=h(Gi);Ul(mo,{get position(){return Ae()},get duration(){return oe()}}),g(Gi),C(hi=>ko=Z(Gi,1,"wrapper-bottom ads-timeline-mobile svelte-1afsgkw",null,ko,hi),[()=>({fullscreen:Y()})]),b(lt,Rt)};V(Nn,lt=>{be()&&d()!=="inactive"&&lt(Zn)})}var Mi=E(Nn,2);let Li;var mn=h(Mi);let vn;var Ki=h(mn);Z(Ki,1,"controls svelte-1afsgkw",null,{},{mobile:!0});var Vi=h(Ki);{var gn=lt=>{co(lt,{get disabled(){return r(Yt)},get ref(){return et.replayButton},set ref(Rt){et.replayButton=Rt},children:(Rt,Pt)=>{Os(Rt,{get disabled(){return r(Yt)},click:zi})},$$slots:{default:!0}})};V(Vi,lt=>{Gt&&lt(gn)})}var fo=E(Vi,2);{var br=lt=>{co(lt,{get ref(){return et.liveButton},set ref(Rt){et.liveButton=Rt},children:(Rt,Pt)=>{Jl(Rt,{get isLiveActive(){return r(un)},isMobile:!0,get ariaLabel(){return r(Qo)}})},$$slots:{default:!0}})};V(fo,lt=>{!be()&&I()&&lt(br)})}var Dn=E(fo,2);{var Xn=lt=>{let Rt=v(()=>be()?Ae():Fe()),Pt=v(()=>be()?oe():j());Dl(lt,{get showDuration(){return r(ln)},get position(){return r(Rt)},get duration(){return r(Pt)},isMobile:!0,get ref(){return et.time},set ref(Ii){et.time=Ii}})};V(Dn,lt=>{r(Mn)&&lt(Xn)})}var hn=E(Dn,2);let _n=v(()=>!r(qo));co(hn,{className:"w-max",get disabled(){return r(_n)},get ref(){return et.episodes},set ref(lt){et.episodes=lt},children:(lt,Rt)=>{var Pt=De(),Ii=le(Pt);{var Qi=Ei=>{var Gi=jy(),ko=E(le(Gi),2);zl(ko,{get position(){return Fe()},get duration(){return j()},timeCodes:mi}),b(Ei,Gi)};V(Ii,Ei=>{r(qo)&&Ei(Qi)})}b(lt,Pt)},$$slots:{default:!0}});var $r=E(hn,2);{var Bn=lt=>{co(lt,{get ref(){return et.settings},set ref(Rt){et.settings=Rt},children:(Rt,Pt)=>{Rs(Rt,{ref$:ki})},$$slots:{default:!0}})};V($r,lt=>{r(dn)&&lt(Bn)})}var On=E($r,2);{var Hn=lt=>{co(lt,{get ref(){return et.fullscreen},set ref(Rt){et.fullscreen=Rt},children:(Rt,Pt)=>{Ol(Rt,{get click(){return e.toggleFullscreen},get isFullscreen(){return Y()}})},$$slots:{default:!0}})};V(On,lt=>{r(jn)&&lt(Hn)})}g(Ki),at(Ki,lt=>Le(lt),()=>Le());var Co=E(Ki,2);Zr(Co,{get isAds(){return be()},get canRewindLive(){return e.canRewindLive},get isRewindableLive(){return M()},get ref(){return et.timeline},set ref(lt){et.timeline=lt}}),g(mn),g(Mi),at(Mi,lt=>N(lt),()=>N());var qt=E(Mi,2);{var yr=lt=>{Ql(lt,{get ref(){return et.interactiveTimeIndicator},set ref(Rt){et.interactiveTimeIndicator=Rt}})};V(qt,lt=>{Nt&&lt(yr)})}C((lt,Rt)=>{Li=Z(Mi,1,"wrapper-bottom svelte-1afsgkw",null,Li,lt),vn=Z(mn,1,"controls-wrapper svelte-1afsgkw",null,vn,Rt)},[()=>({hidden:e.bottomHidden,"controls-hidden":!e.showControls,"no-smooth":e.bottomNoSmooth,mobile:!0}),()=>({fullscreen:Y()})]),b(t,Ti),U(),o()}it(["click"]);function td(t,e){F(e,!0);let[i,o]=Me(),n=()=>y(I,"$isMobile",i),a=m(e,"bottomNoSmooth",3,!1),s=m(e,"playerControlsWrapperRef",15,void 0),d=m(e,"playerControlsRef",15,void 0),l=m(e,"isAds",3,!1),c=m(e,"logoTargetUrl",3,""),u=m(e,"showAutoplayNext",3,!1),_=m(e,"isOneVideoPlaylist",3,!1),f=m(e,"customFullscreenSupported",3,!0),$=m(e,"endScreenShown",3,!1),x=m(e,"onDisabledPlayPrevChapterClick",3,Th),w=m(e,"onDisabledSeekToInteractiveClick",3,Th),I=_e().ui.isMobile,P=X(!1);At(()=>{let B=setTimeout(()=>D(P,!0),0);return()=>clearTimeout(B)});var M=De(),L=le(M);{var T=B=>{var K=De(),Q=le(K);{var Y=se=>{wf(se,{get bottomHidden(){return e.bottomHidden},get bottomNoSmooth(){return a()},get showControls(){return e.showControls},get isAds(){return l()},get canRewindLive(){return e.canRewindLive},get logoClickable(){return e.logoClickable},get logoHidden(){return e.logoHidden},get logoTargetUrl(){return 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 $()},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(ee){s(ee)},get playerControlsRef(){return d()},set playerControlsRef(ee){d(ee)}})},ae=se=>{hf(se,{get bottomHidden(){return e.bottomHidden},get bottomNoSmooth(){return a()},get showControls(){return e.showControls},get isAds(){return l()},get canRewindLive(){return e.canRewindLive},get logoClickable(){return e.logoClickable},get logoHidden(){return e.logoHidden},get logoTargetUrl(){return 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(ee){s(ee)},get playerControlsRef(){return d()},set playerControlsRef(ee){d(ee)}})};V(Q,se=>{n()?se(Y):se(ae,!1)})}b(B,K)};V(L,B=>{r(P)&&B(T)})}b(t,M),U(),o()}var Jy=ve('<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 Sf(t,e){let i=Ce(e,["$$slots","$$events","$$legacy","children"]);var o=Jy();let n;var a=h(o);pe(a,()=>e.children??te),me(2),g(o),C(()=>n=xe(o,n,{xmlns:"http://www.w3.org/2000/svg",width:"48",height:"51",fill:"none","aria-hidden":"true","data-testid":"seek-icon",role:"img",...i})),b(t,o)}function Cf(t,e){let i=m(e,"reversed",3,!1),o=v(()=>i()?"transform: scaleX(-1);":void 0);Sf(t,{get style(){return r(o)}})}var e2=ve('<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 kf(t,e){let i=Ce(e,["$$slots","$$events","$$legacy","children"]);var o=e2();let n;var a=h(o);pe(a,()=>e.children??te),me(2),g(o),C(()=>n=xe(o,n,{xmlns:"http://www.w3.org/2000/svg",width:"48",height:"48",fill:"none","aria-hidden":"true","data-testid":"subtitles-on-icon",role:"img",...i})),b(t,o)}var t2=ve('<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 Tf(t,e){let i=Ce(e,["$$slots","$$events","$$legacy","children"]);var o=t2();let n;var a=h(o);pe(a,()=>e.children??te),me(2),g(o),C(()=>n=xe(o,n,{xmlns:"http://www.w3.org/2000/svg",width:"48",height:"48",fill:"none","aria-hidden":"true","data-testid":"subtitles-off-icon",role:"img",...i})),b(t,o)}function Rc(t,e){let i=m(e,"isOff",3,!1);var o=De(),n=le(o);{var a=d=>{Tf(d,{})},s=d=>{kf(d,{})};V(n,d=>{i()?d(a):d(s,!1)})}b(t,o)}var i2=ve('<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 If(t,e){let i=Ce(e,["$$slots","$$events","$$legacy","children"]);var o=i2();let n;var a=h(o);pe(a,()=>e.children??te),me(2),g(o),C(()=>n=xe(o,n,{xmlns:"http://www.w3.org/2000/svg",width:"48",height:"48",fill:"none","aria-hidden":"true","data-testid":"rate-change-icon",role:"img",...i})),b(t,o)}function Ef(t,e){let i=m(e,"reversed",3,!1),o=v(()=>i()?"transform: scaleX(-1);":void 0);If(t,{get style(){return r(o)}})}var o2=ve('<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 Pf(t,e){let i=Ce(e,["$$slots","$$events","$$legacy","children"]);var o=o2();let n;var a=h(o);pe(a,()=>e.children??te),me(2),g(o),C(()=>n=xe(o,n,{xmlns:"http://www.w3.org/2000/svg",width:"48",height:"48",fill:"none","aria-hidden":"true","data-testid":"episodes-seek-icon",role:"img",...i})),b(t,o)}function Af(t,e){let i=m(e,"reversed",3,!1),o=v(()=>i()?"transform: scaleX(-1);":void 0);Pf(t,{get style(){return r(o)}})}var n2=A('<span class="hot-key-helpers-text svelte-1ad3n06"> </span>'),r2=A('<div class="svelte-1ad3n06"><!> <!> <!> <!> <!> <!> <!> <!> <!> <!></div> <!>',1),a2=A("<div><!></div>"),s2={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 yf(t,e){F(e,!0),W(t,Yy);let[i,o]=De(),n=()=>y(uo,"$seekToInteractiveDisabledTooltip$",i),a=()=>y(on,"$disabledControls$",i),s=()=>y(gt,"$playbackState$",i),d=()=>y(co,"$adPlaybackState",i),l=()=>y(Oe,"$isEnded$",i),c=()=>y(zt,"$playerSize",i),u=()=>y(Fe,"$scrubbingInProgress",i),_=()=>y(Wi,"$chromecastState$",i),f=()=>y(wt,"$isPictureInPictureActive",i),$=()=>y(Ke,"$pictureInPictureType$",i),x=()=>y(Ge,"$mobileNotReportControlHidden$",i),w=()=>y(st,"$playerPhase",i),S=()=>y(nn,"$currentGridType$",i),I=()=>y(Ze,"$isLive$",i),M=()=>y(ct,"$settingsMenuVisible",i),P=()=>y(ne,"$isRewindableLive$",i),A=()=>y(ae,"$isActiveLive$",i),T=()=>y(jn,"$isInteractiveTime$",i),B=()=>y(Mt,"$isAudioAvailable$",i),Q=()=>y(ki,"$settingButtonRef$",i),G=()=>y(to,"$startedByKeyboard$",i),ee=()=>y(z,"$isFullscreen",i),te=()=>y(Ee,"$mobileUnmuteButtonVisible",i),ie=()=>y(q,"$muted$",i),oe=()=>y(Je,"$mobileUnmuteButtonExpanded",i),ge=()=>y(hi,"$additionalButtons$",i),X=()=>y(Oo,"$crashed$",i),Ve=()=>y($t,"$graphIsOpened$",i),Ae=()=>y(Fo,"$adPosition",i),se=()=>y(Ho,"$adDuration",i),He=()=>y(nt,"$position$",i),j=()=>y(It,"$duration$",i),D=v(e,"playerControlsWrapperRef",15,void 0),Re=v(e,"playerControlsRef",15,void 0),_e=v(e,"isAds",3,!1),ke=v(e,"logoTargetUrl",3,""),Be=v(e,"isOneVideoPlaylist",3,!1),pe=v(e,"customFullscreenSupported",3,!0),R=be(),ye=zi(),Ie=Rt(),je=R.actions.internal.toggleMuted,ze=R.actions.internal.togglePlay,Te=R.actions.internal.pause,Me=R.actions.internal.prevVideoClick,We=R.actions.internal.nextVideoClick,it=R.callbacks?.onAudioDoesNotExistHint,vt=R.callbacks?.onAudioDisabledHint,st=R.playerPhase,It=R.state.duration$,nt=R.state.positionWithScrubbing$,gt=R.state.playbackState$,Mt=R.state.isAudioAvailable$,Ce=R.state.isAudioDisabled,Oe=R.state.isEnded$,Ze=R.state.isLive$,q=R.state.muted$,ae=R.state.isActiveLive$,ne=R.state.isRewindableLive$,Fe=R.ui.scrubbingInProgress,Ge=R.ui.mobileNotReportControlHidden$,{isActive$:wt,type$:Ke}=ye.pictureInPicture$,Je=R.ui.mobileUnmuteButtonExpanded,Ee=R.ui.mobileUnmuteButtonVisible,ct=R.ui.settingsMenu.visible$,Bt=R.ui.settingsMenu.openedByBtnKeyboard$,Gt=R.ui.controls,Xt=R.actions.internal.getVideoEpisodes(),ri=R.webApi.pictureInPictureApi,Wi=R.state.chromecastState$,Oo=R.state.crashed$,on=Gt.disabledControls$,to=R.ui.startedByKeyboard$,nn=R.ui.currentGridType$,Ho=R.ads.duration,Fo=R.ads.position,co=R.ads.playbackState,z=R.ui.isFullscreen,zt=R.ui.playerSize,hi=R.ui.additionalButtonsDeprecated$,qi=R.actions.internal.getVideoElement,Jt=R.actions.internal.replayInteractive,ei=R.state.isInteractive,jn=R.state.isInteractiveTime$,_o=R.state.showInteractiveGraph,rn=R.state.showSeekToInteractive,bo=R.state.showPlayPrevChapter,Vt=R.state.showInteractiveTimeIndicator,uo=ye.seekToInteractiveDisabledTooltip$,$t=ye.graphIsOpened$,Ot=m(()=>H(R.state.playPrevChapterDisabledTooltip)),po=m(()=>H(n())),Ci=m(()=>a().has("EPISODE_BUTTON")),Tn=m(()=>a().has("GRAPH_BUTTON")),io=m(()=>a().has("SEEK_TO_INTERACTIVE_BUTTON")),oo=m(()=>a().has("PLAY_BUTTON")),Yt=m(()=>a().has("REPLAY_BUTTON")),mt=m(()=>a().has("PLAY_PREV_CHAPTER_BUTTON")),ai=m(()=>s()===wh.PLAYING),mi=m(()=>d()==="paused"),_i=m(()=>l()&&!_e()&&!ei),an=m(()=>!l()||_e()),ui=m(()=>e.showNextPrevButtons&&!_e()&&e.prevButtonActive),Pi=m(()=>e.showNextPrevButtons&&!_e()&&e.nextButtonActive),Uo=m(()=>c().width>300),sn=m(()=>c().width>400),vi=m(u),In=m(()=>_()!==xh.NOT_AVAILABLE&&!(f()&&$()===1)&&!x()&&!ei),zo=m(()=>w()==="LiveWaitingStart"),no=m(()=>!!ri&&_()!==xh.CONNECTED&&!x()&&($()===1&&r(zo)||!r(zo))&&!r(vi)&&!ei),ln=m(()=>!r(vi)&&Si(S(),"s")),$r=m(()=>!e.logoHidden&&c().width>350),Zn=m(()=>Ie.features.fullscreen&&!(f()&&$()===1)&&(ei?pe():!0)&&!r(vi)),En=m(()=>(!I()||_e())&&c().width>260&&!r(vi)&&!(Ie.features.interactiveHideTime&&ei)),dn=m(()=>M()||e.showControls),Wo=m(()=>!_e()&&!I()&&!!Xt?.length&&r(Uo)&&!r(Ci)&&!r(vi)),cn=m(()=>!P()||!!A()),Ki=m(()=>_o&&Si(S(),"m")),et=de({}),qo=Dy(Ic,260);Ue(()=>{c(),T(),qo(qi(),Gt,et,e.showControls)});let Pn=()=>R.actions.internal.toggleChromecast();function An(){ua({isAudioDisabled:Ce,audioDisabledHintCallback:vt,isAudioAvailable:B(),audioIsNotExistHintCallback:it})&&je()}async function un(){ri?.isActive()?await ri?.remove():await ri?.request()}function Ko(){!Ce&&B()&&Ee.set(!1),An()}let Qo=Y(""),$o=(lt,Lt)=>{if(!lt){N(Qo,de(H("tooltip_live")));return}Lt&&Lt===wh.PAUSED&&N(Qo,de(H("tooltip_play")))};Ue(()=>{$o(r(cn),s())});let ki=re();Ue(()=>{Q()&&Ts(Q(),M(),Bt)}),Ue(()=>{Ec(to,G(),et.playButton)});var Ti=Gy(),Mn=le(Ti);{var pn=lt=>{var Lt=zy(),Zt=le(Lt);let Kt;var Gi=E(Zt,2);let Vi;var Ri=h(Gi);{var xo=Ye=>{let Et=m(()=>B()&&!Ce&&oe());Ac(Ye,{get muted(){return ie()},get expanded(){return r(Et)},click:Ko,get ref(){return et.volume},set ref(pi){et.volume=pi}})};V(Ri,Ye=>{(!B()||te())&&Ye(xo)})}g(Gi);var wo=E(Gi,2);let bi;var Xe=h(wo);di(Xe,1,ge,({iconUrl:Ye,ariaLabel:Et,testId:pi,onClick:ro,tooltip:Io})=>Ye,(Ye,Et)=>{let pi=()=>r(Et).iconUrl,ro=()=>r(Et).ariaLabel,Io=()=>r(Et).testId,On=()=>r(Et).onClick,ar=()=>r(Et).tooltip,we=m(()=>ro()??ar());gf(Ye,{get iconUrl(){return pi()},get ariaLabel(){return r(we)},get testId(){return Io()},get onClick(){return On()}})});var pt=E(Xe,2);{var Di=Ye=>{Kl(Ye,{get ref(){return et.autoplayNextToggle},set ref(Et){et.autoplayNextToggle=Et}})};V(pt,Ye=>{e.showAutoplayNext&&!Be()&&Ye(Di)})}var $i=E(pt,2);{var tr=Ye=>{Dl(Ye,{isMobile:!0,click:Pn,get state(){return _()},get ref(){return et.chromecast},set ref(Et){et.chromecast=Et}})};V($i,Ye=>{r(In)&&Ye(tr)})}var ir=E($i,2);{var yi=Ye=>{$f(Ye,{click:un,get isPictureInPictureActive(){return f()},get ref(){return et.pip},set ref(Et){et.pip=Et}})};V(ir,Ye=>{r(no)&&Ye(yi)})}var So=E(ir,2);{var $n=Ye=>{Ms(Ye,{ref$:ki})};V(So,Ye=>{X()&&Ye($n)})}var Dr=E(So,2);{var wr=Ye=>{Rl(Ye,{click:Te,get targetUrl(){return ke()},get logoClickable(){return e.logoClickable},get ref(){return et.vkLogo},set ref(Et){et.vkLogo=Et}})};V(Dr,Ye=>{r($r)&&Ye(wr)})}g(wo);var Co=E(wo,2);let Dn;var ko=h(Co);{var Sr=Ye=>{let Et=m(()=>Me.bind(null,!0));Ga(Ye,{get click(){return r(Et)},type:"prev",isMobile:!0,get ref(){return et.prevButton},set ref(pi){et.prevButton=pi}})};V(ko,Ye=>{r(ui)&&Ye(Sr)})}var or=E(ko,2);{var nr=Ye=>{Ds(Ye,{get disabled(){return r(oo)},click:ze,isMobile:!0,get isPlaying(){return r(ai)},get ref(){return et.playButton},set ref(Et){et.playButton=Et}})};V(or,Ye=>{r(an)&&Ye(nr)})}var Cr=E(or,2);{var To=Ye=>{Rs(Ye,{get disabled(){return r(Yt)},click:ze,isMobile:!0,get ref(){return et.replayButton},set ref(Et){et.replayButton=Et}})};V(Cr,Ye=>{r(_i)&&Ye(To)})}var kr=E(Cr,2);{var Nn=Ye=>{let Et=m(()=>We.bind(null,!0));Ga(Ye,{get click(){return r(Et)},type:"next",isMobile:!0,get ref(){return et.nextButton},set ref(pi){et.nextButton=pi}})};V(kr,Ye=>{r(Pi)&&Ye(Nn)})}g(Co);var Bn=E(Co,2);{var rr=Ye=>{var Et=Uy(),pi=le(Et);{var ro=yt=>{var Dt=Oy();let Wt;Dt.__click=[Ny,mt,e,Ot];var Ni=h(Dt);let Ii=m(()=>!e.showControls);ql(Ni,{get hidden(){return r(Ii)},get disabled(){return r(mt)},get click(){return e.playPrevChapter},get ref(){return et.playPrevChapterButton},set ref(si){et.playPrevChapterButton=si}}),g(Dt),C(si=>Wt=Z(Dt,1,"wrapper-middle-left svelte-1afsgkw",null,Wt,si),[()=>({fullscreen:ee(),hidden:!e.showControls})]),b(yt,Dt)};V(pi,yt=>{bo&&yt(ro)})}var Io=E(pi,2);{var On=yt=>{var Dt=Hy();let Wt;var Ni=h(Dt);let Ii=m(()=>!e.showControls&&!Ve());Gl(Ni,{get hidden(){return r(Ii)},get disabled(){return r(Tn)},get click(){return $t.toggle},get graphIsOpened(){return Ve()},get ref(){return et.interactiveGraphButton},set ref(si){et.interactiveGraphButton=si}}),g(Dt),C(si=>Wt=Z(Dt,1,cl(bo?"wrapper-middle-left-second":"wrapper-middle-left"),"svelte-1afsgkw",Wt,si),[()=>({fullscreen:ee(),hidden:!e.showControls&&!Ve()})]),b(yt,Dt)};V(Io,yt=>{r(Ki)&&yt(On)})}var ar=E(Io,2);{var we=yt=>{var Dt=Fy();let Wt;Dt.__click=[By,io,e,po];var Ni=h(Dt);let Ii=m(()=>!e.showControls);Ql(Ni,{get hidden(){return r(Ii)},get disabled(){return r(io)},get click(){return e.seekToInteractive},get ref(){return et.seekToInteractiveButton},set ref(si){et.seekToInteractiveButton=si}}),g(Dt),C(si=>Wt=Z(Dt,1,"wrapper-middle-right svelte-1afsgkw",null,Wt,si),[()=>({fullscreen:ee(),hidden:!e.showControls})]),b(yt,Dt)};V(ar,yt=>{rn&&yt(we)})}b(Ye,Et)};V(Bn,Ye=>{ei&&!u()&&Ye(rr)})}C((Ye,Et,pi,ro)=>{Kt=Z(Zt,1,"overlay-mobile svelte-1afsgkw",null,Kt,Ye),Vi=Z(Gi,1,"wrapper-top-left svelte-1afsgkw",null,Vi,Et),bi=Z(wo,1,"wrapper-top-right svelte-1afsgkw",null,bi,pi),Dn=Z(Co,1,"wrapper-middle svelte-1afsgkw",null,Dn,ro)},[()=>({hidden:!r(dn)}),()=>({hidden:!e.showControls,fullscreen:ee()}),()=>({hidden:!e.showControls&&!x(),fullscreen:ee()}),()=>({hidden:!e.showControls||u()||e.endScreenShown&&e.showNextPrevButtons})]),b(lt,Lt)};V(Mn,lt=>{_e()||lt(pn)})}var Ln=E(Mn,2);{var Xn=lt=>{var Lt=Ky(),Zt=le(Lt);{var Kt=bi=>{var Xe=Wy();let pt;var Di=h(Xe);Ac(Di,{get muted(){return ie()},expanded:!1,click:Ko,get ref(){return et.volume},set ref($i){et.volume=$i}}),g(Xe),C($i=>pt=Z(Xe,1,"wrapper-top-right svelte-1afsgkw",null,pt,$i),[()=>({fullscreen:ee()})]),b(bi,Xe)};V(Zt,bi=>{te()&&bi(Kt)})}var Gi=E(Zt,2);{var Vi=bi=>{var Xe=qy(),pt=h(Xe);let Di=m(()=>!r(mi));Ds(pt,{get disabled(){return r(oo)},click:ze,isMobile:!0,get isPlaying(){return r(Di)},get ref(){return et.playButton},set ref($i){et.playButton=$i}}),g(Xe),b(bi,Xe)};V(Gi,bi=>{r(mi)&&bi(Vi)})}var Ri=E(Gi,2);let xo;var wo=h(Ri);Nl(wo,{get position(){return Ae()},get duration(){return se()}}),g(Ri),C(bi=>xo=Z(Ri,1,"wrapper-bottom ads-timeline-mobile svelte-1afsgkw",null,xo,bi),[()=>({fullscreen:ee()})]),b(lt,Lt)};V(Ln,lt=>{_e()&&d()!=="inactive"&&lt(Xn)})}var Ai=E(Ln,2);let Mi;var fn=h(Ai);let mn;var Qi=h(fn);Z(Qi,1,"controls svelte-1afsgkw",null,{},{mobile:!0});var Li=h(Qi);{var vn=lt=>{so(lt,{get disabled(){return r(Yt)},get ref(){return et.replayButton},set ref(Lt){et.replayButton=Lt},children:(Lt,Zt)=>{Rs(Lt,{get disabled(){return r(Yt)},click:Jt})},$$slots:{default:!0}})};V(Li,lt=>{ei&&lt(vn)})}var fo=E(Li,2);{var yr=lt=>{so(lt,{get ref(){return et.liveButton},set ref(Lt){et.liveButton=Lt},children:(Lt,Zt)=>{Yl(Lt,{get isLiveActive(){return r(cn)},isMobile:!0,get ariaLabel(){return r(Qo)}})},$$slots:{default:!0}})};V(fo,lt=>{!_e()&&I()&&lt(yr)})}var gn=E(fo,2);{var Jn=lt=>{let Lt=m(()=>_e()?Ae():He()),Zt=m(()=>_e()?se():j());Ml(lt,{get showDuration(){return r(sn)},get position(){return r(Lt)},get duration(){return r(Zt)},isMobile:!0,get ref(){return et.time},set ref(Kt){et.time=Kt}})};V(gn,lt=>{r(En)&&lt(Jn)})}var hn=E(gn,2);let _n=m(()=>!r(Wo));so(hn,{className:"w-max",get disabled(){return r(_n)},get ref(){return et.episodes},set ref(lt){et.episodes=lt},children:(lt,Lt)=>{var Zt=Ne(),Kt=le(Zt);{var Gi=Vi=>{var Ri=Qy(),xo=E(le(Ri),2);Ol(xo,{get position(){return He()},get duration(){return j()},timeCodes:Xt}),b(Vi,Ri)};V(Kt,Vi=>{r(Wo)&&Vi(Gi)})}b(lt,Zt)},$$slots:{default:!0}});var xr=E(hn,2);{var Vn=lt=>{so(lt,{get ref(){return et.settings},set ref(Lt){et.settings=Lt},children:(Lt,Zt)=>{Ms(Lt,{ref$:ki})},$$slots:{default:!0}})};V(xr,lt=>{r(ln)&&lt(Vn)})}var er=E(xr,2);{var Rn=lt=>{so(lt,{get ref(){return et.fullscreen},set ref(Lt){et.fullscreen=Lt},children:(Lt,Zt)=>{Vl(Lt,{get click(){return e.toggleFullscreen},get isFullscreen(){return ee()}})},$$slots:{default:!0}})};V(er,lt=>{r(Zn)&&lt(Rn)})}g(Qi),at(Qi,lt=>Re(lt),()=>Re());var bn=E(Qi,2);Bl(bn,{get isAds(){return _e()},get canRewindLive(){return e.canRewindLive},get isRewindableLive(){return P()},get ref(){return et.timeline},set ref(lt){et.timeline=lt}}),g(fn),g(Ai),at(Ai,lt=>D(lt),()=>D());var qt=E(Ai,2);{var yo=lt=>{zl(lt,{get ref(){return et.interactiveTimeIndicator},set ref(Lt){et.interactiveTimeIndicator=Lt}})};V(qt,lt=>{Vt&&lt(yo)})}C((lt,Lt)=>{Mi=Z(Ai,1,"wrapper-bottom svelte-1afsgkw",null,Mi,lt),mn=Z(fn,1,"controls-wrapper svelte-1afsgkw",null,mn,Lt)},[()=>({hidden:e.bottomHidden,"controls-hidden":!e.showControls,"no-smooth":e.bottomNoSmooth,mobile:!0}),()=>({fullscreen:ee()})]),b(t,Ti),U(),o()}ot(["click"]);function jl(t,e){F(e,!0);let[i,o]=De(),n=()=>y(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),$=v(e,"endScreenShown",3,!1),x=v(e,"onDisabledPlayPrevChapterClick",3,Sh),w=v(e,"onDisabledSeekToInteractiveClick",3,Sh),I=be().ui.isMobile,M=Y(!1);At(()=>{let B=setTimeout(()=>N(M,!0),0);return()=>clearTimeout(B)});var P=Ne(),A=le(P);{var T=B=>{var Q=Ne(),G=le(Q);{var ee=ie=>{yf(ie,{get bottomHidden(){return e.bottomHidden},get bottomNoSmooth(){return a()},get showControls(){return e.showControls},get isAds(){return l()},get canRewindLive(){return e.canRewindLive},get logoClickable(){return e.logoClickable},get logoHidden(){return e.logoHidden},get logoTargetUrl(){return 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 $()},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(oe){s(oe)},get playerControlsRef(){return d()},set playerControlsRef(oe){d(oe)}})},te=ie=>{vf(ie,{get bottomHidden(){return e.bottomHidden},get bottomNoSmooth(){return a()},get showControls(){return e.showControls},get isAds(){return l()},get canRewindLive(){return e.canRewindLive},get logoClickable(){return e.logoClickable},get logoHidden(){return e.logoHidden},get logoTargetUrl(){return 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(oe){s(oe)},get playerControlsRef(){return d()},set playerControlsRef(oe){d(oe)}})};V(G,ie=>{n()?ie(ee):ie(te,!1)})}b(B,Q)};V(A,B=>{r(M)&&B(T)})}b(t,P),U(),o()}var jy=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 xf(t,e){let i=Se(e,["$$slots","$$events","$$legacy","children"]);var o=jy();let n;var a=h(o);ue(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 wf(t,e){let i=v(e,"reversed",3,!1),o=m(()=>i()?"transform: scaleX(-1);":void 0);xf(t,{get style(){return r(o)}})}var Zy=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 Sf(t,e){let i=Se(e,["$$slots","$$events","$$legacy","children"]);var o=Zy();let n;var a=h(o);ue(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 Xy=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 Cf(t,e){let i=Se(e,["$$slots","$$events","$$legacy","children"]);var o=Xy();let n;var a=h(o);ue(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 Mc(t,e){let i=v(e,"isOff",3,!1);var o=Ne(),n=le(o);{var a=d=>{Cf(d,{})},s=d=>{Sf(d,{})};V(n,d=>{i()?d(a):d(s,!1)})}b(t,o)}var Jy=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 kf(t,e){let i=Se(e,["$$slots","$$events","$$legacy","children"]);var o=Jy();let n;var a=h(o);ue(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 Tf(t,e){let i=v(e,"reversed",3,!1),o=m(()=>i()?"transform: scaleX(-1);":void 0);kf(t,{get style(){return r(o)}})}var e2=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 If(t,e){let i=Se(e,["$$slots","$$events","$$legacy","children"]);var o=e2();let n;var a=h(o);ue(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 Ef(t,e){let i=v(e,"reversed",3,!1),o=m(()=>i()?"transform: scaleX(-1);":void 0);If(t,{get style(){return r(o)}})}var t2=L('<span class="hot-key-helpers-text svelte-1ad3n06"> </span>'),i2=L('<div class="svelte-1ad3n06"><!> <!> <!> <!> <!> <!> <!> <!> <!> <!></div> <!>',1),o2=L("<div><!></div>"),n2={hash:"svelte-1ad3n06",code:`.hot-key-helpers-container.svelte-1ad3n06 {position:absolute;z-index:var(--hot-key-helpers-container-z-index);top:calc(50% - 40px);left:calc(50% - 100px);width:200px;height:120px;display:flex;align-items:center;flex-direction:column;
264
264
  animation: svelte-1ad3n06-fadeIn ease var(--controls-transition-duration);padding-top:14px;box-sizing:border-box;}.hot-key-helpers-container.svelte-1ad3n06 > div:where(.svelte-1ad3n06) {width:48px;height:48px;display:flex;justify-content:center;align-items:center;}.hot-key-helpers-container.svelte-1ad3n06 svg[data-testid="volume-off-icon"],
265
265
  .hot-key-helpers-container.svelte-1ad3n06 svg[data-testid="volume-max-icon"] {transform:scale(2);}.hot-key-helpers-container.svelte-1ad3n06 svg[data-testid="replay-icon"],
266
266
  .hot-key-helpers-container.svelte-1ad3n06 svg[data-testid="play-icon"],
@@ -275,23 +275,21 @@ Try switching the\xA0quality to\xA0Auto.`},Vg=x0;var Yr=new Map;Yr.set(Ng.EN,Vg)
275
275
  @keyframes svelte-1ad3n06-fadeOut {
276
276
  0% {opacity:1;}
277
277
  100% {opacity:0;}
278
- }`};function Mf(t,e){F(e,!0),z(t,s2);let[i,o]=Me(),n=()=>y(e.data,"$data",i),s=_e().ui.t,d=v(()=>!n()),l=v(()=>n()?.type==="BACKWARD_SEEK"),c=v(()=>n()?.type==="FORWARD_SEEK"),u=v(()=>n()?.type),_=v(()=>n()?.t?s(n().t.key,{value:n().t.value||""}):n()?.text);var f=a2();let $;var x=h(f);{var w=S=>{var I=r2(),P=le(I),M=h(P);{var L=ce=>{let R=v(()=>r(u)==="FORWARD_SEEK");Cf(ce,{get reversed(){return r(R)}})};V(M,ce=>{["BACKWARD_SEEK","FORWARD_SEEK"].includes(r(u))&&ce(L)})}var T=E(M,2);{var B=ce=>{ea(ce,{})};V(T,ce=>{r(u)==="PAUSE"&&ce(B)})}var K=E(T,2);{var Q=ce=>{gr(ce,{})};V(K,ce=>{r(u)==="PLAY"&&ce(Q)})}var Y=E(K,2);{var ae=ce=>{Gl(ce,{})};V(Y,ce=>{r(u)==="REPLAY"&&ce(ae)})}var se=E(Y,2);{var ee=ce=>{Rc(ce,{isOff:!0})};V(se,ce=>{r(u)==="SUBTITLES_OFF"&&ce(ee)})}var ge=E(se,2);{var J=ce=>{Rc(ce,{})};V(ge,ce=>{r(u)==="SUBTITLES_ON"&&ce(J)})}var Pe=E(ge,2);{var Ae=ce=>{let R=v(()=>r(u)==="RATE_UP");Ef(ce,{get reversed(){return r(R)}})};V(Pe,ce=>{["RATE_DOWN","RATE_UP"].includes(r(u))&&ce(Ae)})}var oe=E(Pe,2);{var Fe=ce=>{let R=v(()=>r(u)==="EPISODE_NEXT");Af(ce,{get reversed(){return r(R)}})};V(oe,ce=>{["EPISODE_PREV","EPISODE_NEXT"].includes(r(u))&&ce(Fe)})}var j=E(oe,2);{var N=ce=>{ma(ce,{volume:0})};V(j,ce=>{r(u)==="MUTE"&&ce(N)})}var Le=E(j,2);{var be=ce=>{ma(ce,{volume:1})};V(Le,ce=>{r(u)==="VOLUME"&&ce(be)})}g(P);var ke=E(P,2);{var Be=ce=>{var R=n2(),$e=h(R,!0);g(R),C(()=>ue($e,r(_))),b(ce,R)};V(ke,ce=>{r(_)&&ce(Be)})}b(S,I)};V(x,S=>{!r(d)&&r(u)&&S(w)})}g(f),C(S=>$=Z(f,1,"hot-key-helpers-container svelte-1ad3n06",null,$,S),[()=>({hidden:r(d),"hot-key-helpers-container--left":r(l),"hot-key-helpers-container--right":r(c)})]),b(t,f),U(),o()}var l2=ve('<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 Lf(t,e){let i=Ce(e,["$$slots","$$events","$$legacy","children"]);var o=l2();let n;var a=h(o);pe(a,()=>e.children??te),me(),g(o),C(()=>n=xe(o,n,{xmlns:"http://www.w3.org/2000/svg",width:"12",height:"7",fill:"none","aria-hidden":"true",color:"#fff",role:"img",...i})),b(t,o)}var d2=ve('<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 Vf(t,e){let i=Ce(e,["$$slots","$$events","$$legacy","children"]);var o=d2();let n;var a=h(o);pe(a,()=>e.children??te),me(),g(o),C(()=>n=xe(o,n,{xmlns:"http://www.w3.org/2000/svg",width:"12",height:"16",fill:"none","aria-hidden":"true",color:"#fff",role:"img",...i})),b(t,o)}function ha(t,e){F(e,!0);let i=m(e,"direction",3,"left"),o=m(e,"useBtnColor",3,!1),n=v(()=>["up","down"].includes(i())),a=v(()=>["right","down"].includes(i())),s=v(()=>(()=>{let _="";return r(a)&&(_+="transform: rotate(180deg);"),o()&&(_+="color: var(--btn-color, #fff);"),_.length?_:void 0})());var d=De(),l=le(d);{var c=_=>{let f=v(()=>r(a)?"chevron-icon--down":"chevron-icon--up");Lf(_,{get style(){return r(s)},get"data-testid"(){return r(f)}})},u=_=>{let f=v(()=>r(a)?"chevron-icon--right":"chevron-icon--left");Vf(_,{get style(){return r(s)},get"data-testid"(){return r(f)}})};V(l,_=>{r(n)?_(c):_(u,!1)})}b(t,d),U()}var c2=(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}},u2=(t,e,i)=>{e.has(t.code)&&(t.preventDefault(),t.stopPropagation(),i())},p2=A('<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>'),f2={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 id(t,e){F(e,!0),z(t,f2);let i=m(e,"isShifted",3,!1),o=_e(),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 _=p2();let f;_.__keydown=[c2,n,a,s,l,d],_.__keyup=[u2,n,c],Re(_,"aria-label",u);var $=h(_),x=h($),w=h(x);w.__mousedown=a,w.__mouseup=c;var S=h(w);ha(S,{direction:"up",useBtnColor:!0}),g(w);var I=E(w,2);I.__mousedown=d,I.__mouseup=c;var P=h(I);ha(P,{direction:"up",useBtnColor:!0}),g(I),g(x);var M=E(x,2),L=h(M);L.__mousedown=l,L.__mouseup=c;var T=h(L);ha(T,{direction:"up",useBtnColor:!0}),g(L);var B=E(L,2);B.__mousedown=s,B.__mouseup=c;var K=h(B);ha(K,{direction:"up",useBtnColor:!0}),g(B),g(M),g($),g(_),C(Q=>f=Z(_,1,"immersive-controls svelte-1yzc86r",null,f,Q),[()=>({"m-shifted":i()})]),ht("mouseleave",w,c),ht("mouseleave",I,c),ht("mouseleave",L,c),ht("mouseleave",B,c),b(t,_),U()}it(["keydown","keyup","mousedown","mouseup"]);import{ValueSubject as Eh,Subscription as m2,filterChanged as v2,filter as g2}from"@vkontakte/videoplayer-shared/es2024";var Ih=(t=1e3)=>{let e=null,i=()=>{e&&(clearTimeout(e),e=null)};return{add:o=>{i(),e=setTimeout(o,t)},clear:i}};var Nc=class{constructor(){this.flickeringTimeout=Ih(1e3);this.subscriptions=new m2;this.isAuto=!1;this.isLive=!1;this.captions$=new Eh([]);this.captionsPrepared$=new Eh([])}subscribe(){return this.subscriptions.add(this.captions$.pipe(g2(()=>this.isEnabled()),v2()).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 h2=A('<span class="caption-line svelte-c2x749"><span class="caption-segment svelte-c2x749"> </span></span>'),_2=A('<span class="caption-line svelte-c2x749"><span class="caption-segment svelte-c2x749"></span></span>'),b2=A('<span class="caption-line svelte-c2x749"><span class="caption-segment svelte-c2x749"> </span></span>'),$2=A('<div><span class="caption svelte-c2x749"><!></span></div>'),y2=A("<div><!></div>"),x2={hash:"svelte-c2x749",code:`.subtitles-container.svelte-c2x749 {position:absolute;top:0;left:0;width:100%;height:100%;pointer-events:none;transition:transform var(--controls-transition-duration);}.subtitles-container.shifted.svelte-c2x749 {transform:translateY(calc(var(--controls-height) * -1));}.subtitles-caption.svelte-c2x749 {position:absolute;left:4%;right:4%;bottom:4%;display:flex;justify-content:center;}.subtitles-caption.mobile.svelte-c2x749 {bottom:8%;}.subtitles-container.auto.svelte-c2x749 .subtitles-caption:where(.svelte-c2x749) {left:var(--subtitles-caption-margin);right:var(--subtitles-caption-margin);}.caption.svelte-c2x749 {display:block;overflow-wrap:normal;padding:4px 8px;border-radius:4px;background:rgba(0, 0, 0, 0.4);}.subtitles-container.auto.svelte-c2x749 .caption:where(.svelte-c2x749) {width:100%;}.caption-line.svelte-c2x749 {display:block;text-align:center;}.subtitles-container.auto.svelte-c2x749 .caption-line:where(.svelte-c2x749) {text-align:left;}.caption-segment.svelte-c2x749 {display:inline-block;line-height:1.2;font-size:13px;
279
- /*font-weight: 500;*/color:var(--white);white-space:pre-wrap;}`};function Xa(t,e){F(e,!0),z(t,x2);let[i,o]=Me(),n=()=>y(_,"$currentSubtitle$",i),a=()=>y($,"$isLive$",i),s=()=>y(x,"$isFullscreen",i),d=()=>y(f,"$isAutoSubtitleCaptionVisible$",i),l=m(e,"isMobile",3,!1),c=_e(),u=Mt(),_=c.state.currentSubtitle$,f=c.state.isAutoSubtitleCaptionVisible$,$=c.state.isLive$,x=c.ui.isFullscreen,w=v(()=>!!n().isAuto),S=v(()=>!!a()),I=v(()=>e.playerSize.width*.02),P=v(()=>l()&&!s()||r(I)<=u.minSubtitlesFontSize?u.minSubtitlesFontSize:r(I)),M=X(null);He(()=>{r(M)?.setIsAuto(r(w)),r(M)?.setIsLive(r(S)),r(M)?.setCaptions(e.captions)});let L=X(de([[]]));At(()=>{D(M,de(new Nc().subscribe()));let ae=r(M).captionsPrepared$.subscribe(se=>{D(L,de(se))});return()=>{r(M)?.destroy(),ae.unsubscribe()}}),At(()=>{if(r(w)){let ae=window.setTimeout(()=>{f.set(!1)},u.autoSubtitlesTimeout);return()=>{window.clearTimeout(ae)}}else f.set(!1)});let T=v(()=>e.playerSize.width<400?10:e.playerSize.width<550?14:24);var B=y2();let K;var Q=h(B);{var Y=ae=>{var se=$2();let ee;var ge=h(se),J=h(ge);{var Pe=oe=>{var Fe=h2(),j=h(Fe),N=h(j,!0);g(j),g(Fe),C(Le=>{tt(j,`font-size: ${r(P)??""}px`),ue(N,Le)},[()=>H("subtitles_auto_caption")]),b(oe,Fe)},Ae=(oe,Fe)=>{{var j=Le=>{var be=De(),ke=le(be);ai(ke,17,()=>r(L),fl,(Be,ce)=>{var R=_2(),$e=h(R);ai($e,21,()=>r(ce),({value:Ie,timeAppeared:Ge})=>Ge,(Ie,Ge)=>{let ze=()=>r(Ge).value,ye=()=>r(Ge).timeAppeared;var Ve=De(),qe=le(Ve);{var ot=ut=>{var pt=Kn();C(()=>ue(pt,ze())),b(ut,pt)};V(qe,ut=>{(!ye()||ye()<=e.position)&&ut(ot)})}b(Ie,Ve)}),g($e),g(R),C(()=>tt($e,`font-size: ${r(P)??""}px`)),b(Be,R)}),b(Le,be)},N=Le=>{var be=De(),ke=le(be);ai(ke,17,()=>e.captions,({value:Be})=>Be,(Be,ce)=>{let R=()=>r(ce).value;var $e=b2(),Ie=h($e),Ge=h(Ie,!0);g(Ie),g($e),C(()=>{tt(Ie,`font-size: ${r(P)??""}px`),ue(Ge,R())}),b(Be,$e)}),b(Le,be)};V(oe,Le=>{r(w)&&r(L)?.length?Le(j):Le(N,!1)},Fe)}};V(J,oe=>{r(w)&&d()?oe(Pe):oe(Ae,!1)})}g(ge),g(se),C(oe=>{ee=Z(se,1,"subtitles-caption svelte-c2x749",null,ee,oe),tt(se,`--subtitles-caption-margin: ${r(T)??""}%`)},[()=>({mobile:l()})]),b(ae,se)};V(Q,ae=>{(e.captions.length||r(L)?.length)&&ae(Y)})}g(B),C(ae=>K=Z(B,1,"subtitles-container svelte-c2x749",null,K,ae),[()=>({shifted:e.shifted,auto:r(w)&&!r(S)&&!d()})]),b(t,B),U(),o()}var w2=A('<div class="text svelte-raurnb"> </div>'),S2=A('<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>'),C2={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 od(t,e){F(e,!0),z(t,C2);let i=Mt();var o=S2();let n;var a=E(h(o),2);{var s=d=>{var l=w2(),c=h(l);g(l),C(()=>ue(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 k2=ve('<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 Rf(t,e){let i=Ce(e,["$$slots","$$events","$$legacy","children"]);var o=k2();let n;var a=h(o);pe(a,()=>e.children??te),me(),g(o),C(()=>n=xe(o,n,{xmlns:"http://www.w3.org/2000/svg",width:"200",height:"200","aria-hidden":"true","data-testid":"error-icon",viewBox:"460 190 130 90",role:"img",...i})),b(t,o)}var T2=A('<div class="container svelte-13zpvm8"><!></div>'),I2={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 nd(t){z(t,I2);var e=T2(),i=h(e);Rf(i,{}),g(e),b(t,e)}var E2=A('<div class="playButton svelte-1ciju45" tabindex="0" role="button"><div class="playButtonBackground svelte-1ciju45"></div> <!></div>'),P2=A("<div><!></div>"),A2={hash:"svelte-1ciju45",code:`.container.svelte-1ciju45 {position:absolute;top:0;bottom:0;left:0;right:0;background-position:center;background-size:contain;background-repeat:no-repeat;cursor:pointer;transition:opacity 0.2s,
280
- visibility 0.2s;will-change:opacity;}.container.hidden.svelte-1ciju45 {opacity:0;visibility:hidden;}.container.bgCover.svelte-1ciju45 {background-size:cover;}.playButton.svelte-1ciju45 {position:absolute;top:0;bottom:0;left:0;right:0;margin:auto;width:var(--big-play-size);height:var(--big-play-size);display:flex;align-items:center;justify-content:center;}.playButtonBackground.svelte-1ciju45 {position:absolute;top:0;bottom:0;left:0;right:0;border-radius:var(--big-play-radius);background-color:var(--big-play-bg-color);transition:background 0.2s,
281
- transform 0.2s;transition-timing-function:ease-out;will-change:background, transform;}.container.svelte-1ciju45:hover .playButtonBackground:where(.svelte-1ciju45) {background-color:var(--big-play-hover-bg-color);transform:scale(1.15);}.playButton.svelte-1ciju45 svg {transform:scale(2);}`};function Ja(t,e){F(e,!0),z(t,A2);let i=m(e,"iconVisible",3,!0),o=_e(),n=Mt(),a=o.ui.startedByKeyboard$,s=H("tooltip_play"),d=$=>{let x=$.code;["Enter","Space"].includes(x)&&($.stopPropagation(),$.preventDefault(),a.set(!0),e.startVideo())},l=$=>{$.stopPropagation(),e.startVideo()};var c=P2();let u;c.__click=l;var _=h(c);{var f=$=>{var x=E2();x.__keydown=d,Re(x,"aria-label",s);var w=E(h(x),2);gr(w,{}),g(x),b($,x)};V(_,$=>{i()&&$(f)})}return g(c),C($=>{u=Z(c,1,"container svelte-1ciju45",null,u,$),tt(c,`background-color: #222; background-image: url('${e.thumbUrl||""}')`)},[()=>({hidden:e.hidden,bgCover:n.features.previewNoEmptySpace})]),b(t,c),U({handlePressKey:d,handleClick:l})}it(["click","keydown"]);var M2=A("<div> </div>"),L2={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 Pf(t,e){F(e,!0),W(t,n2);let[i,o]=De(),n=()=>y(e.data,"$data",i),s=be().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=o2();let $;var x=h(f);{var w=S=>{var I=i2(),M=le(I),P=h(M);{var A=pe=>{let R=m(()=>r(u)==="FORWARD_SEEK");wf(pe,{get reversed(){return r(R)}})};V(P,pe=>{["BACKWARD_SEEK","FORWARD_SEEK"].includes(r(u))&&pe(A)})}var T=E(P,2);{var B=pe=>{Xr(pe,{})};V(T,pe=>{r(u)==="PAUSE"&&pe(B)})}var Q=E(T,2);{var G=pe=>{_r(pe,{})};V(Q,pe=>{r(u)==="PLAY"&&pe(G)})}var ee=E(Q,2);{var te=pe=>{Wl(pe,{})};V(ee,pe=>{r(u)==="REPLAY"&&pe(te)})}var ie=E(ee,2);{var oe=pe=>{Mc(pe,{isOff:!0})};V(ie,pe=>{r(u)==="SUBTITLES_OFF"&&pe(oe)})}var ge=E(ie,2);{var X=pe=>{Mc(pe,{})};V(ge,pe=>{r(u)==="SUBTITLES_ON"&&pe(X)})}var Ve=E(ge,2);{var Ae=pe=>{let R=m(()=>r(u)==="RATE_UP");Tf(pe,{get reversed(){return r(R)}})};V(Ve,pe=>{["RATE_DOWN","RATE_UP"].includes(r(u))&&pe(Ae)})}var se=E(Ve,2);{var He=pe=>{let R=m(()=>r(u)==="EPISODE_NEXT");Ef(pe,{get reversed(){return r(R)}})};V(se,pe=>{["EPISODE_PREV","EPISODE_NEXT"].includes(r(u))&&pe(He)})}var j=E(se,2);{var D=pe=>{pa(pe,{volume:0})};V(j,pe=>{r(u)==="MUTE"&&pe(D)})}var Re=E(j,2);{var _e=pe=>{pa(pe,{volume:1})};V(Re,pe=>{r(u)==="VOLUME"&&pe(_e)})}g(M);var ke=E(M,2);{var Be=pe=>{var R=t2(),ye=h(R,!0);g(R),C(()=>ce(ye,r(_))),b(pe,R)};V(ke,pe=>{r(_)&&pe(Be)})}b(S,I)};V(x,S=>{!r(d)&&r(u)&&S(w)})}g(f),C(S=>$=Z(f,1,"hot-key-helpers-container svelte-1ad3n06",null,$,S),[()=>({hidden:r(d),"hot-key-helpers-container--left":r(l),"hot-key-helpers-container--right":r(c)})]),b(t,f),U(),o()}var r2=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=Se(e,["$$slots","$$events","$$legacy","children"]);var o=r2();let n;var a=h(o);ue(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 a2=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 Mf(t,e){let i=Se(e,["$$slots","$$events","$$legacy","children"]);var o=a2();let n;var a=h(o);ue(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 va(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=Ne(),l=le(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");Mf(_,{get style(){return r(s)},get"data-testid"(){return r(f)}})};V(l,_=>{r(n)?_(c):_(u,!1)})}b(t,d),U()}var s2=(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}},l2=(t,e,i)=>{e.has(t.code)&&(t.preventDefault(),t.stopPropagation(),i())},d2=L('<div tabindex="0" role="button"><div class="button-block svelte-1yzc86r" aria-hidden="true"><div class="button-row svelte-1yzc86r"><div class="button button-up svelte-1yzc86r"><!></div> <div class="button button-right svelte-1yzc86r"><!></div></div> <div class="button-row svelte-1yzc86r"><div class="button button-left svelte-1yzc86r"><!></div> <div class="button button-down svelte-1yzc86r"><!></div></div></div></div>'),c2={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),W(t,c2);let i=v(e,"isShifted",3,!1),o=be(),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 _=d2();let f;_.__keydown=[s2,n,a,s,l,d],_.__keyup=[l2,n,c],Le(_,"aria-label",u);var $=h(_),x=h($),w=h(x);w.__mousedown=a,w.__mouseup=c;var S=h(w);va(S,{direction:"up",useBtnColor:!0}),g(w);var I=E(w,2);I.__mousedown=d,I.__mouseup=c;var M=h(I);va(M,{direction:"up",useBtnColor:!0}),g(I),g(x);var P=E(x,2),A=h(P);A.__mousedown=l,A.__mouseup=c;var T=h(A);va(T,{direction:"up",useBtnColor:!0}),g(A);var B=E(A,2);B.__mousedown=s,B.__mouseup=c;var Q=h(B);va(Q,{direction:"up",useBtnColor:!0}),g(B),g(P),g($),g(_),C(G=>f=Z(_,1,"immersive-controls svelte-1yzc86r",null,f,G),[()=>({"m-shifted":i()})]),Ct("mouseleave",w,c),Ct("mouseleave",I,c),Ct("mouseleave",A,c),Ct("mouseleave",B,c),b(t,_),U()}ot(["keydown","keyup","mousedown","mouseup"]);import{ValueSubject as kh,Subscription as u2,filterChanged as p2,filter as f2}from"@vkontakte/videoplayer-shared/es2024";var Ch=(t=1e3)=>{let e=null,i=()=>{e&&(clearTimeout(e),e=null)};return{add:o=>{i(),e=setTimeout(o,t)},clear:i}};var Lc=class{constructor(){this.flickeringTimeout=Ch(1e3);this.subscriptions=new u2;this.isAuto=!1;this.isLive=!1;this.captions$=new kh([]);this.captionsPrepared$=new kh([])}subscribe(){return this.subscriptions.add(this.captions$.pipe(f2(()=>this.isEnabled()),p2()).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 m2=L('<span class="caption-line svelte-c2x749"><span class="caption-segment svelte-c2x749"> </span></span>'),v2=L('<span class="caption-line svelte-c2x749"><span class="caption-segment svelte-c2x749"></span></span>'),g2=L('<span class="caption-line svelte-c2x749"><span class="caption-segment svelte-c2x749"> </span></span>'),h2=L('<div><span class="caption svelte-c2x749"><!></span></div>'),_2=L("<div><!></div>"),b2={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),W(t,b2);let[i,o]=De(),n=()=>y(_,"$currentSubtitle$",i),a=()=>y($,"$isLive$",i),s=()=>y(x,"$isFullscreen",i),d=()=>y(f,"$isAutoSubtitleCaptionVisible$",i),l=v(e,"isMobile",3,!1),c=be(),u=Rt(),_=c.state.currentSubtitle$,f=c.state.isAutoSubtitleCaptionVisible$,$=c.state.isLive$,x=c.ui.isFullscreen,w=m(()=>!!n().isAuto),S=m(()=>!!a()),I=m(()=>e.playerSize.width*.02),M=m(()=>l()&&!s()||r(I)<=u.minSubtitlesFontSize?u.minSubtitlesFontSize:r(I)),P=Y(null);Ue(()=>{r(P)?.setIsAuto(r(w)),r(P)?.setIsLive(r(S)),r(P)?.setCaptions(e.captions)});let A=Y(de([[]]));At(()=>{N(P,de(new Lc().subscribe()));let te=r(P).captionsPrepared$.subscribe(ie=>{N(A,de(ie))});return()=>{r(P)?.destroy(),te.unsubscribe()}}),At(()=>{if(r(w)){let te=window.setTimeout(()=>{f.set(!1)},u.autoSubtitlesTimeout);return()=>{window.clearTimeout(te)}}else f.set(!1)});let T=m(()=>e.playerSize.width<400?10:e.playerSize.width<550?14:24);var B=_2();let Q;var G=h(B);{var ee=te=>{var ie=h2();let oe;var ge=h(ie),X=h(ge);{var Ve=se=>{var He=m2(),j=h(He),D=h(j,!0);g(j),g(He),C(Re=>{tt(j,`font-size: ${r(M)??""}px`),ce(D,Re)},[()=>H("subtitles_auto_caption")]),b(se,He)},Ae=(se,He)=>{{var j=Re=>{var _e=Ne(),ke=le(_e);di(ke,17,()=>r(A),sl,(Be,pe)=>{var R=v2(),ye=h(R);di(ye,21,()=>r(pe),({value:Ie,timeAppeared:je})=>je,(Ie,je)=>{let ze=()=>r(je).value,Te=()=>r(je).timeAppeared;var Me=Ne(),We=le(Me);{var it=vt=>{var st=qn();C(()=>ce(st,ze())),b(vt,st)};V(We,vt=>{(!Te()||Te()<=e.position)&&vt(it)})}b(Ie,Me)}),g(ye),g(R),C(()=>tt(ye,`font-size: ${r(M)??""}px`)),b(Be,R)}),b(Re,_e)},D=Re=>{var _e=Ne(),ke=le(_e);di(ke,17,()=>e.captions,({value:Be})=>Be,(Be,pe)=>{let R=()=>r(pe).value;var ye=g2(),Ie=h(ye),je=h(Ie,!0);g(Ie),g(ye),C(()=>{tt(Ie,`font-size: ${r(M)??""}px`),ce(je,R())}),b(Be,ye)}),b(Re,_e)};V(se,Re=>{r(w)&&r(A)?.length?Re(j):Re(D,!1)},He)}};V(X,se=>{r(w)&&d()?se(Ve):se(Ae,!1)})}g(ge),g(ie),C(se=>{oe=Z(ie,1,"subtitles-caption svelte-c2x749",null,oe,se),tt(ie,`--subtitles-caption-margin: ${r(T)??""}%`)},[()=>({mobile:l()})]),b(te,ie)};V(G,te=>{(e.captions.length||r(A)?.length)&&te(ee)})}g(B),C(te=>Q=Z(B,1,"subtitles-container svelte-c2x749",null,Q,te),[()=>({shifted:e.shifted,auto:r(w)&&!r(S)&&!d()})]),b(t,B),U(),o()}var $2=L('<div class="text svelte-raurnb"> </div>'),y2=L('<div><div class="icon_wrapper svelte-raurnb"><svg class="icon svelte-raurnb" width="22" height="22" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><g fill="none" fill-rule="evenodd"><path d="M1 18v3h3c0-1.66-1.34-3-3-3zm0-4v2c2.76 0 5 2.24 5 5h2c0-3.87-3.13-7-7-7zm0-4v2a9 9 0 0 1 9 9h2c0-6.08-4.93-11-11-11zm20-7H3c-1.1 0-2 .9-2 2v3h2V5h18v14h-7v2h7c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2z" fill="var(--btn-color, #fff)"></path><path d="M0 0h24v24H0z"></path></g></svg></div> <!></div>'),x2={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),W(t,x2);let i=Rt();var o=y2();let n;var a=E(h(o),2);{var s=d=>{var l=$2(),c=h(l);g(l),C(()=>ce(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 w2=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 Lf(t,e){let i=Se(e,["$$slots","$$events","$$legacy","children"]);var o=w2();let n;var a=h(o);ue(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 S2=L('<div class="container svelte-13zpvm8"><!></div>'),C2={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){W(t,C2);var e=S2(),i=h(e);Lf(i,{}),g(e),b(t,e)}var k2=L('<div><div class="playButton svelte-1xnh9dd" tabindex="0" role="button"><div class="playButtonBackground svelte-1xnh9dd"></div> <!></div></div>'),T2={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),W(t,T2);let i=be(),o=Rt(),n=i.ui.startedByKeyboard$,a=H("tooltip_play"),s=f=>{let $=f.code;["Enter","Space"].includes($)&&(f.stopPropagation(),f.preventDefault(),n.set(!0),e.startVideo())},d=f=>{f.stopPropagation(),e.startVideo()};var l=k2();let c;l.__click=d;var u=h(l);u.__keydown=s,Le(u,"aria-label",a);var _=E(h(u),2);return _r(_,{}),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})}ot(["click","keydown"]);var I2=L("<div> </div>"),E2={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(
282
280
  0deg,
283
281
  rgba(0, 0, 0, 0) 0%,
284
282
  rgba(0, 0, 0, 0.02) 19%,
285
283
  rgba(0, 0, 0, 0.10) 34%,
286
284
  rgba(0, 0, 0, 0.40) 60%,
287
285
  rgba(0, 0, 0, 0.60) 100%
288
- );}.hidden.svelte-1bcvcf2 {visibility:hidden;transform:translateY(calc(var(--controls-gradient-height) * -1));opacity:0;}`};function Nf(t,e){z(t,L2);let i=m(e,"title",3,""),o=m(e,"isHidden",3,!1);var n=M2();let a;var s=h(n,!0);g(n),C(d=>{a=Z(n,1,"title svelte-1bcvcf2",null,a,d),ue(s,i())},[()=>({hidden:o()})]),b(t,n)}var V2=A('<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),R2=A('<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),N2=A('<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),D2=A('<div class="timer__cell cell svelte-1qpxtfg"><span class="cell__value svelte-1qpxtfg"> </span> <span class="cell__unit svelte-1qpxtfg"> </span></div>'),B2=A('<div class="timer__container svelte-1qpxtfg"><!> <!> <!> <!></div>'),O2={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 Df(t,e){F(e,!0),z(t,O2);let i=X(""),o=X(""),n=X(""),a=X(""),s,d=M=>String(M).padStart(2,"0"),l=M=>{let L=Math.floor(M/86400);L&&(M-=L*86400,D(i,de(d(L))));let T=Math.floor(M/3600);D(o,de(d(T)));let B=Math.floor(M/60)%60;D(n,de(d(B)));let K=M%60;D(a,de(d(K)))},c=()=>{let M=Math.floor(Date.now()/1e3),L=e.startTime-M;l(L),L>=1?s=requestAnimationFrame(c):e.onTimerOver()};At(()=>{s=requestAnimationFrame(c)}),on(()=>{cancelAnimationFrame(s)});var u=B2(),_=h(u);{var f=M=>{var L=V2(),T=le(L),B=h(T),K=h(B,!0);g(B);var Q=E(B,2),Y=h(Q,!0);g(Q),g(T);var ae=E(T,2),se=h(ae,!0);g(ae),C((ee,ge)=>{ue(K,r(i)),ue(Y,ee),ue(se,ge)},[()=>H("waiting_live_day_value"),()=>H("waiting_live_colon")]),b(M,L)};V(_,M=>{r(i)&&M(f)})}var $=E(_,2);{var x=M=>{var L=R2(),T=le(L),B=h(T),K=h(B,!0);g(B);var Q=E(B,2),Y=h(Q,!0);g(Q),g(T);var ae=E(T,2),se=h(ae,!0);g(ae),C((ee,ge)=>{ue(K,r(o)),ue(Y,ee),ue(se,ge)},[()=>H("waiting_live_hour_value"),()=>H("waiting_live_colon")]),b(M,L)};V($,M=>{r(o)&&M(x)})}var w=E($,2);{var S=M=>{var L=N2(),T=le(L),B=h(T),K=h(B,!0);g(B);var Q=E(B,2),Y=h(Q,!0);g(Q),g(T);var ae=E(T,2),se=h(ae,!0);g(ae),C((ee,ge)=>{ue(K,r(n)),ue(Y,ee),ue(se,ge)},[()=>H("waiting_live_minute_value"),()=>H("waiting_live_colon")]),b(M,L)};V(w,M=>{r(n)&&M(S)})}var I=E(w,2);{var P=M=>{var L=D2(),T=h(L),B=h(T,!0);g(T);var K=E(T,2),Q=h(K,!0);g(K),g(L),C(Y=>{ue(B,r(a)),ue(Q,Y)},[()=>H("waiting_live_second_value")]),b(M,L)};V(I,M=>{r(a)&&M(P)})}g(u),b(t,u),U()}var H2=ve('<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 Bf(t,e){let i=Ce(e,["$$slots","$$events","$$legacy","children"]);var o=H2();let n;var a=h(o);pe(a,()=>e.children??te),me(4),g(o),C(()=>n=xe(o,n,{xmlns:"http://www.w3.org/2000/svg","aria-hidden":"true","data-testid":"podcast-icon",style:"shape-rendering:geometricPrecision;text-rendering:geometricPrecision;image-rendering:optimizeQuality;fill-rule:evenodd;clip-rule:evenodd;width:100%;height:100%",viewBox:"0 0 400 400",role:"img",...i})),b(t,o)}var F2=A('<div class="upcoming svelte-15pewff"><div class="upcoming-icon svelte-15pewff"><!></div> <span class="upcoming__title svelte-15pewff"> </span></div>'),U2=A('<div class="waiting-timer timer svelte-15pewff"><span class="timer__title svelte-15pewff"> </span> <!></div>'),z2=A('<div class="waiting-container svelte-15pewff"><!></div>'),q2={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 rd(t,e){F(e,!0),z(t,q2);let i=X(!1);He(()=>{D(i,de(e.startTime===void 0||e.startTime<Math.floor(Date.now()/1e3)))});var o=z2(),n=h(o);{var a=d=>{var l=F2(),c=h(l),u=h(c);Bf(u,{}),g(c);var _=E(c,2),f=h(_,!0);g(_),g(l),C($=>ue(f,$),[()=>H("waiting_live_upcoming_title")]),b(d,l)},s=d=>{var l=U2(),c=h(l),u=h(c,!0);g(c);var _=E(c,2);let f=v(()=>e.startTime||0);Df(_,{get startTime(){return r(f)},onTimerOver:()=>D(i,!0)}),g(l),C($=>ue(u,$),[()=>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 W2=A('<div class="waiting-container svelte-xvqwsa"><div class="waiting-caption svelte-xvqwsa"><!> <p class="waiting-title svelte-xvqwsa"> </p></div></div>'),K2={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 es(t,e){F(e,!0),z(t,K2);let i=m(e,"thumbUrl",3,""),o={recover:H("waiting_live_recover_title"),record:H("waiting_record_title")},n=v(()=>o[e.kind]||"");var a=W2(),s=h(a),d=h(s);Wa(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()}')`),ue(c,r(n))}),b(t,a),U()}var Q2=ve('<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 Of(t,e){let i=Ce(e,["$$slots","$$events","$$legacy","children"]);var o=Q2();let n;var a=h(o);pe(a,()=>e.children??te),me(),g(o),C(()=>n=xe(o,n,{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16","aria-hidden":"true","data-testid":"check-mark-icon",role:"img",...i})),b(t,o)}var G2=A('<div class="select-icon svelte-124aexk"><!></div>'),Y2={hash:"svelte-124aexk",code:".select-icon.svelte-124aexk {margin-right:auto;padding-right:12px;opacity:0.9;position:relative;top:3px;}"};function ad(t){z(t,Y2);var e=G2(),i=h(e);Of(i,{}),g(e),b(t,e)}var j2=(t,e)=>{t.stopPropagation(),e.item.selectItem(e.item.value)},Z2=(t,e)=>{Ms(t,()=>e.item.selectItem(e.item.value))},X2=A("<p> </p>"),J2=A('<p class="sublabel svelte-1t7rx2m"> </p>'),e4=A('<li role="menuitem" tabindex="0"><!> <div><!> <!></div></li>'),t4={hash:"svelte-1t7rx2m",code:`.menu-item-value.svelte-1t7rx2m {display:flex;flex-direction:column;align-items:end;min-width:0;}.menu-item-value[data-selected='false'].svelte-1t7rx2m {--select-icon-width: 16px;--icon-padding: 12px;
286
+ );}.hidden.svelte-1bcvcf2 {visibility:hidden;transform:translateY(calc(var(--controls-gradient-height) * -1));opacity:0;}`};function Vf(t,e){W(t,E2);let i=v(e,"title",3,""),o=v(e,"isHidden",3,!1);var n=I2();let a;var s=h(n,!0);g(n),C(d=>{a=Z(n,1,"title svelte-1bcvcf2",null,a,d),ce(s,i())},[()=>({hidden:o()})]),b(t,n)}var P2=L('<div class="timer__cell cell svelte-1qpxtfg"><span class="cell__value svelte-1qpxtfg"> </span> <span class="cell__unit svelte-1qpxtfg"> </span></div> <span class="timer__points svelte-1qpxtfg"> </span>',1),A2=L('<div class="timer__cell cell svelte-1qpxtfg"><span class="cell__value svelte-1qpxtfg"> </span> <span class="cell__unit svelte-1qpxtfg"> </span></div> <span class="timer__points svelte-1qpxtfg"> </span>',1),M2=L('<div class="timer__cell cell svelte-1qpxtfg"><span class="cell__value svelte-1qpxtfg"> </span> <span class="cell__unit svelte-1qpxtfg"> </span></div> <span class="timer__points svelte-1qpxtfg"> </span>',1),L2=L('<div class="timer__cell cell svelte-1qpxtfg"><span class="cell__value svelte-1qpxtfg"> </span> <span class="cell__unit svelte-1qpxtfg"> </span></div>'),V2=L('<div class="timer__container svelte-1qpxtfg"><!> <!> <!> <!></div>'),R2={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 Rf(t,e){F(e,!0),W(t,R2);let i=Y(""),o=Y(""),n=Y(""),a=Y(""),s,d=P=>String(P).padStart(2,"0"),l=P=>{let A=Math.floor(P/86400);A&&(P-=A*86400,N(i,de(d(A))));let T=Math.floor(P/3600);N(o,de(d(T)));let B=Math.floor(P/60)%60;N(n,de(d(B)));let Q=P%60;N(a,de(d(Q)))},c=()=>{let P=Math.floor(Date.now()/1e3),A=e.startTime-P;l(A),A>=1?s=requestAnimationFrame(c):e.onTimerOver()};At(()=>{s=requestAnimationFrame(c)}),Jo(()=>{cancelAnimationFrame(s)});var u=V2(),_=h(u);{var f=P=>{var A=P2(),T=le(A),B=h(T),Q=h(B,!0);g(B);var G=E(B,2),ee=h(G,!0);g(G),g(T);var te=E(T,2),ie=h(te,!0);g(te),C((oe,ge)=>{ce(Q,r(i)),ce(ee,oe),ce(ie,ge)},[()=>H("waiting_live_day_value"),()=>H("waiting_live_colon")]),b(P,A)};V(_,P=>{r(i)&&P(f)})}var $=E(_,2);{var x=P=>{var A=A2(),T=le(A),B=h(T),Q=h(B,!0);g(B);var G=E(B,2),ee=h(G,!0);g(G),g(T);var te=E(T,2),ie=h(te,!0);g(te),C((oe,ge)=>{ce(Q,r(o)),ce(ee,oe),ce(ie,ge)},[()=>H("waiting_live_hour_value"),()=>H("waiting_live_colon")]),b(P,A)};V($,P=>{r(o)&&P(x)})}var w=E($,2);{var S=P=>{var A=M2(),T=le(A),B=h(T),Q=h(B,!0);g(B);var G=E(B,2),ee=h(G,!0);g(G),g(T);var te=E(T,2),ie=h(te,!0);g(te),C((oe,ge)=>{ce(Q,r(n)),ce(ee,oe),ce(ie,ge)},[()=>H("waiting_live_minute_value"),()=>H("waiting_live_colon")]),b(P,A)};V(w,P=>{r(n)&&P(S)})}var I=E(w,2);{var M=P=>{var A=L2(),T=h(A),B=h(T,!0);g(T);var Q=E(T,2),G=h(Q,!0);g(Q),g(A),C(ee=>{ce(B,r(a)),ce(G,ee)},[()=>H("waiting_live_second_value")]),b(P,A)};V(I,P=>{r(a)&&P(M)})}g(u),b(t,u),U()}var D2=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 Df(t,e){let i=Se(e,["$$slots","$$events","$$legacy","children"]);var o=D2();let n;var a=h(o);ue(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 N2=L('<div class="upcoming svelte-15pewff"><div class="upcoming-icon svelte-15pewff"><!></div> <span class="upcoming__title svelte-15pewff"> </span></div>'),B2=L('<div class="waiting-timer timer svelte-15pewff"><span class="timer__title svelte-15pewff"> </span> <!></div>'),O2=L('<div class="waiting-container svelte-15pewff"><!></div>'),H2={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),W(t,H2);let i=Y(!1);Ue(()=>{N(i,de(e.startTime===void 0||e.startTime<Math.floor(Date.now()/1e3)))});var o=O2(),n=h(o);{var a=d=>{var l=N2(),c=h(l),u=h(c);Df(u,{}),g(c);var _=E(c,2),f=h(_,!0);g(_),g(l),C($=>ce(f,$),[()=>H("waiting_live_upcoming_title")]),b(d,l)},s=d=>{var l=B2(),c=h(l),u=h(c,!0);g(c);var _=E(c,2);let f=m(()=>e.startTime||0);Rf(_,{get startTime(){return r(f)},onTimerOver:()=>N(i,!0)}),g(l),C($=>ce(u,$),[()=>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 F2=L('<div class="waiting-container svelte-xvqwsa"><div class="waiting-caption svelte-xvqwsa"><!> <p class="waiting-title svelte-xvqwsa"> </p></div></div>'),U2={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),W(t,U2);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=F2(),s=h(a),d=h(s);za(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()}')`),ce(c,r(n))}),b(t,a),U()}var z2=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 Nf(t,e){let i=Se(e,["$$slots","$$events","$$legacy","children"]);var o=z2();let n;var a=h(o);ue(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 W2=L('<div class="select-icon svelte-124aexk"><!></div>'),q2={hash:"svelte-124aexk",code:".select-icon.svelte-124aexk {margin-right:auto;padding-right:12px;opacity:0.9;position:relative;top:3px;}"};function od(t){W(t,q2);var e=W2(),i=h(e);Nf(i,{}),g(e),b(t,e)}var K2=(t,e)=>{t.stopPropagation(),e.item.selectItem(e.item.value)},Q2=(t,e)=>{Es(t,()=>e.item.selectItem(e.item.value))},G2=L("<p> </p>"),Y2=L('<p class="sublabel svelte-1t7rx2m"> </p>'),j2=L('<li role="menuitem" tabindex="0"><!> <div><!> <!></div></li>'),Z2={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;
289
287
 
290
288
  /**
291
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
292
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.
293
291
  */margin-left:calc(var(--icon-padding) + var(--select-icon-width));}.label.svelte-1t7rx2m,
294
- .sublabel.svelte-1t7rx2m {text-overflow:ellipsis;overflow:hidden;max-width:100%;}.sublabel.svelte-1t7rx2m {opacity:0.5;}`};function Hf(t,e){F(e,!0),z(t,t4);let i=m(e,"isMobile",3,!1);var o=e4();let n;o.__click=[j2,e],o.__keydown=[Z2,e];var a=h(o);{var s=x=>{ad(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=De(),S=le(w);si(S,()=>e.item.valueComponent,(I,P)=>{P(I,Gr(()=>e.item.valueComponentParams??{}))}),b(x,w)},_=x=>{var w=X2();let S;var I=h(w,!0);g(w),C(P=>{S=Z(w,1,"label svelte-1t7rx2m",null,S,P),ue(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 $=x=>{var w=J2(),S=h(w,!0);g(w),C(()=>ue(S,e.item.sublabel)),b(x,w)};V(f,x=>{e.item.sublabel&&x($)})}g(d),g(o),C((x,w,S)=>{n=Z(o,1,"item",null,n,x),Re(o,"data-value",e.item.value),Re(o,"aria-label",w),l=Z(d,1,"menu-item-value svelte-1t7rx2m",null,l,S),Re(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 i4=A('<li role="menuitem" tabindex="0" aria-haspopup="true"><!> <div><!></div></li>');function Ff(t,e){F(e,!0);let i=m(e,"isMobile",3,!1),o=m(e,"refMenuItems",15),n=v(()=>()=>e.openSubMenuList(e.item.children)),a=v(()=>w=>hc(w,r(n)));var s=i4();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=>{ad(w,{})};V(l,w=>{e.item.selected&&w(c)})}var u=E(l,2);let _;var f=h(u);{var $=w=>{var S=De();let I=v(()=>e.item.valueComponent);var P=le(S);si(P,()=>r(I),(M,L)=>{L(M,Gr(()=>e.item.valueComponentParams??{}))}),b(w,S)},x=w=>{var S=Kn();C(()=>ue(S,e.item.label)),b(w,S)};V(f,w=>{e.item.valueComponent?w($):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),Re(s,"aria-label",e.item.ariaLabel??e.item.label),Re(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 hr={"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 n4=(t,e)=>{Zg(t,e.returnFromSubMenu,e.closeSettingsMenu)},r4=(t,e)=>{t.stopPropagation(),e.returnFromSubMenu()},a4=(t,e)=>{Tl(t)&&(Gn(t),e.returnFromSubMenu())},s4=A('<div><ul role="menu"><li role="menuitem" tabindex="0" data-testid="return-to-settings-menu"><!> <p class="title svelte-7dfsuh"> </p></li> <!></ul></div>'),l4={hash:"svelte-7dfsuh",code:`.sub-menu.svelte-7dfsuh {--item-padding-vertical-mobile: 16px;--item-padding-vertical: 7px;--item-label-line-height: 18px;
292
+ .sublabel.svelte-1t7rx2m {text-overflow:ellipsis;overflow:hidden;max-width:100%;}.sublabel.svelte-1t7rx2m {opacity:0.5;}`};function Bf(t,e){F(e,!0),W(t,Z2);let i=v(e,"isMobile",3,!1);var o=j2();let n;o.__click=[K2,e],o.__keydown=[Q2,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=Ne(),S=le(w);ci(S,()=>e.item.valueComponent,(I,M)=>{M(I,Gr(()=>e.item.valueComponentParams??{}))}),b(x,w)},_=x=>{var w=G2();let S;var I=h(w,!0);g(w),C(M=>{S=Z(w,1,"label svelte-1t7rx2m",null,S,M),ce(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 $=x=>{var w=Y2(),S=h(w,!0);g(w),C(()=>ce(S,e.item.sublabel)),b(x,w)};V(f,x=>{e.item.sublabel&&x($)})}g(d),g(o),C((x,w,S)=>{n=Z(o,1,"item",null,n,x),Le(o,"data-value",e.item.value),Le(o,"aria-label",w),l=Z(d,1,"menu-item-value svelte-1t7rx2m",null,l,S),Le(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()}ot(["click","keydown"]);var X2=L('<li role="menuitem" tabindex="0" aria-haspopup="true"><!> <div><!></div></li>');function Of(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=>fc(w,r(n)));var s=X2();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 $=w=>{var S=Ne();let I=m(()=>e.item.valueComponent);var M=le(S);ci(M,()=>r(I),(P,A)=>{A(P,Gr(()=>e.item.valueComponentParams??{}))}),b(w,S)},x=w=>{var S=qn();C(()=>ce(S,e.item.label)),b(w,S)};V(f,w=>{e.item.valueComponent?w($):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),Le(s,"aria-label",e.item.ariaLabel??e.item.label),Le(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()}ot(["click","keydown"]);var br={"quality-settings":100,"audio-language-settings":200,"playback-rate-settings":300,"subtitles-settings":400,"traffic-saving-settings":500,download:600,report:700,"copy-data":800,"save-trace-info":900,"debug-info":1e3};var e4=(t,e)=>{Gg(t,e.returnFromSubMenu,e.closeSettingsMenu)},t4=(t,e)=>{t.stopPropagation(),e.returnFromSubMenu()},i4=(t,e)=>{xl(t)&&(Gn(t),e.returnFromSubMenu())},o4=L('<div><ul role="menu"><li role="menuitem" tabindex="0" data-testid="return-to-settings-menu"><!> <p class="title svelte-7dfsuh"> </p></li> <!></ul></div>'),n4={hash:"svelte-7dfsuh",code:`.sub-menu.svelte-7dfsuh {--item-padding-vertical-mobile: 16px;--item-padding-vertical: 7px;--item-label-line-height: 18px;
295
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 {
296
294
  /**
297
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.
@@ -301,14 +299,14 @@ Try switching the\xA0quality to\xA0Auto.`},Vg=x0;var Yr=new Map;Yr.set(Ng.EN,Vg)
301
299
  var(--edge-item-padding-vertical-mobile) + var(--item-padding-vertical-mobile) + var(--item-label-line-height) +
302
300
  1px
303
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,
304
- .item.svelte-7dfsuh:not(.mobile) p:where(.svelte-7dfsuh) {line-height:var(--item-label-line-height);font-size:13px;}`};function zf(t,e){F(e,!0),z(t,l4);let[i,o]=Me(),n=()=>y(_,"$isFullscreen",i),a=()=>y(f,"$playerSize",i),s=m(e,"isMobile",3,!1),d=m(e,"playerControlsHeight",3,0),l=m(e,"ariaLabelReturnFromSubMenu",19,()=>H("aria_label_submenu_back")),c=m(e,"listRef",15);At(()=>{let ee=e.items.findIndex(ge=>ge.selected);c().children[ee+1].focus()});let u=_e(),_=u.ui.isFullscreen,f=u.ui.playerSize,$=X(void 0),x=X(0),w=X(0),S=v(()=>s()&&n()?`max-height: ${Math.round(a().height*.6)}px`:s()?"":`max-height: ${a().height-32-r(w)-d()}px; overflow: auto;`),I=v(()=>Math.max(e.minWidth,r(x)));var P=s4();let M;var L=h(P);let T;L.__keydown=[n4,e];var B=h(L);let K;B.__click=[r4,e],B.__keydown=[a4,e];var Q=h(B);ha(Q,{direction:"left"});var Y=E(Q,2),ae=h(Y,!0);g(Y),g(B),at(B,ee=>D($,ee),()=>r($));var se=E(B,2);ai(se,17,()=>e.items,fl,(ee,ge)=>{var J=De(),Pe=le(J);{var Ae=Fe=>{Hf(Fe,{get item(){return r(ge)},get isMobile(){return s()}})},oe=(Fe,j)=>{{var N=Le=>{Ff(Le,{get isMobile(){return s()},get item(){return r(ge)},get openSubMenuList(){return e.openSubMenuList},get refMenuItems(){return e.refMenuItems}})};V(Fe,Le=>{r(ge).type==="OPEN_SUB_MENU"&&Le(N)},j)}};V(Pe,Fe=>{r(ge).type==="SELECT_VALUE"?Fe(Ae):Fe(oe,!1)})}b(ee,J)}),g(L),at(L,ee=>c(ee),()=>c()),g(P),C((ee,ge,J)=>{M=Z(P,1,"sub-menu menu svelte-7dfsuh",null,M,ee),Re(P,"data-testid",`sub-menu-${e.id}`),tt(P,`min-width: ${r(I)}px`),T=Z(L,1,"items svelte-7dfsuh",null,T,ge),tt(L,r(S)),K=Z(B,1,"item header back svelte-7dfsuh",null,K,J),Re(B,"aria-label",l()),ue(ae,e.title)},[()=>({desktop:!s(),mobile:s()}),()=>({mobile:s()}),()=>({mobile:s()})]),Lr(B,"clientWidth",ee=>D(x,ee)),Lr(B,"clientHeight",ee=>D(w,ee)),b(t,P),U(),o()}it(["keydown","click"]);import{noop as d4}from"@vkontakte/videoplayer-shared/es2024";var c4=(t,e)=>hc(t,e()),u4=(t,e)=>{t.stopPropagation(),e()()},p4=A('<div class="value svelte-1ikfjte"> </div>'),f4=A('<li role="menuitem" tabindex="0" aria-haspopup="true"><div class="icon-wrapper"><!></div> <div class="label"> </div> <!></li>'),m4={hash:"svelte-1ikfjte",code:".value.svelte-1ikfjte {position:relative;opacity:0.7;overflow:hidden;text-overflow:ellipsis;}"};function qf(t,e){F(e,!0),z(t,m4);let i=m(e,"isMobile",3,!1),o=m(e,"onClick",3,d4),n=m(e,"valueComponent",3,void 0),a=m(e,"ref",15);var s=f4();let d;s.__click=[u4,o],s.__keydown=[c4,o];var l=h(s),c=h(l);{var u=I=>{Za(I,{get icon(){return e.icon}})},_=I=>{var P=De();let M=v(()=>e.icon);var L=le(P);si(L,()=>r(M),(T,B)=>{B(T,{})}),b(I,P)};V(c,I=>{typeof e.icon=="string"?I(u):I(_,!1)})}g(l);var f=E(l,2),$=h(f,!0);g(f);var x=E(f,2);{var w=I=>{var P=De();let M=v(n);var L=le(P);si(L,()=>r(M),(T,B)=>{B(T,{})}),b(I,P)},S=I=>{var P=p4(),M=h(P,!0);g(P),C(()=>ue(M,e.value)),b(I,P)};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),Re(s,"aria-label",e.ariaLabel),Re(s,"data-testid",e.id),ue($,e.label)},[()=>({mobile:i()})]),b(t,s),U()}it(["click","keydown"]);import{noop as Ah}from"@vkontakte/videoplayer-shared/es2024";var v4=(t,e)=>{Ms(t,()=>e())},g4=A('<div class="icon icon-error-stub"><div class="inner"></div></div>'),h4=A('<img class="icon" aria-hidden="true">'),_4=A('<li role="menuitem" tabindex="0"><div class="icon-wrapper"><!></div> <div class="label svelte-15ifkac"> </div></li>'),b4={hash:"svelte-15ifkac",code:".label.svelte-15ifkac {overflow:hidden;text-overflow:ellipsis;}"};function Wf(t,e){F(e,!0),z(t,b4);let i=m(e,"isMobile",3,!1),o=m(e,"onClick",3,Ah),n=m(e,"closeSettings",3,Ah),a=X(!1),s=()=>{D(a,!0)},d=S=>{S?.stopPropagation(),o()(),n()()};var l=_4();let c;l.__click=d,l.__keydown=[v4,d];var u=h(l),_=h(u);{var f=S=>{var I=De(),P=le(I);{var M=T=>{var B=g4();b(T,B)},L=T=>{var B=h4();C(()=>Re(B,"src",e.icon)),ht("error",B,s),Aa(B),b(T,B)};V(P,T=>{r(a)?T(M):T(L,!1)})}b(S,I)},$=S=>{var I=De();let P=v(()=>e.icon);var M=le(I);si(M,()=>r(P),(L,T)=>{T(L,{})}),b(S,I)};V(_,S=>{typeof e.icon=="string"?S(f):S($,!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),Re(l,"aria-label",e.ariaLabel??e.label),Re(l,"data-testid",e.id),ue(w,e.label)},[()=>({mobile:i()})]),b(t,l),U()}it(["click","keydown"]);import{noop as x4}from"@vkontakte/videoplayer-shared/es2024";var $4=A('<div class="toggle_wrap svelte-17wbjko"><div></div> <div class="toggle-label svelte-17wbjko"></div></div>'),y4={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 Kf(t,e){z(t,y4);let i=m(e,"enabled",3,!1);var o=$4(),n=h(o);let a;me(2),g(o),C(s=>a=Z(n,1,"toggle svelte-17wbjko",null,a,s),[()=>({on:i()})]),b(t,o)}var w4=(t,e,i)=>{Xg(t,e(),o=>i()(o))},S4=(t,e,i)=>{t.stopPropagation(),e()(!i())},C4=A('<div><div class="icon-wrapper"><!></div> <div class="label"> </div> <!></div>'),k4=A('<li role="menuitem" tabindex="0"><!></li>');function Qf(t,e){F(e,!0);let i=m(e,"isMobile",3,!1),o=m(e,"onClick",3,x4),n=m(e,"enabled",3,!1),a=m(e,"tooltipText",3,void 0),s=m(e,"maxTooltipWidth",3,void 0);var d=k4();let l;d.__click=[S4,o,n],d.__keydown=[w4,n,o];var c=h(d);Ka(c,{get content(){return a()},get isMobile(){return i()},placement:"left",translateX:10,isFullWidthWrapper:!0,get maxTooltipWidth(){return s()},children:(u,_)=>{var f=C4();let $;var x=h(f),w=h(x);{var S=T=>{Za(T,{get icon(){return e.icon}})},I=T=>{var B=De();let K=v(()=>e.icon);var Q=le(B);si(Q,()=>r(K),(Y,ae)=>{ae(Y,{})}),b(T,B)};V(w,T=>{typeof e.icon=="string"?T(S):T(I,!1)})}g(x);var P=E(x,2),M=h(P,!0);g(P);var L=E(P,2);Kf(L,{get enabled(){return n()}}),g(f),C(T=>{$=Z(f,1,"switch-wrapper",null,$,T),ue(M,e.label)},[()=>({mobile:i()})]),b(u,f)},$$slots:{default:!0}}),g(d),C(u=>{l=Z(d,1,"item switch-item",null,l,u),Re(d,"aria-label",e.ariaLabel??e.label),Re(d,"data-testid",e.id)},[()=>({mobile:i()})]),b(t,d),U()}it(["click","keydown"]);import{isValidURL as j4,VideoQuality as Uh}from"@vkontakte/videoplayer-shared/es2024";var Mh=()=>{let t=X(de([])),e=v(()=>(r(t).length?r(t).at(-1):null)||null);return{get current(){return r(e)},pushSubMenu:i=>{r(t).push(i)},popSubMenu:()=>{D(t,de(r(t).slice(0,-1)))},popAllSubMenus:()=>{D(t,de([]))}}};var T4=A('<div class="quality-icon svelte-t2qk8t"><!></div>'),I4=A('<div class="quality-label svelte-t2qk8t"><span> </span> <!></div>'),E4={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 ts(t,e){F(e,!0),z(t,E4);let i=m(e,"isSubCase",3,!1),o=v(()=>xc(e.quality));var n=I4(),a=h(n);let s;var d=h(a,!0);g(a);var l=E(a,2);{var c=u=>{var _=T4();let f=v(()=>r(o));var $=h(_);si($,()=>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),ue(d,e.label)},[()=>({sub:!i(),quality:!e.isMobile})]),b(t,n),U()}import{VideoQuality as P4}from"@vkontakte/videoplayer-shared/es2024";import{VideoQuality as Lh}from"@vkontakte/videoplayer-core/es2024";var Vh=({quality:t,availableQualities:e})=>{let i=e.find(o=>o.value===t);return i?i.displayValue:t},Rh=({quality:t,availableQualities:e,isAutoQualityEnabled:i})=>{if(!t)return"...";let o=Vh({quality:t,availableQualities:e});return i?t===Lh.INVARIANT?H("auto_quality_invariant"):H("auto_quality",{actual:o}):o},Nh=({quality:t,availableQualities:e,prefix:i,onlyPrefix:o})=>t?o||t===Lh.INVARIANT?i:`${i}${Vh({quality:t,availableQualities:e})}`:"...";var A4=A('<div class="menu-item-value-wrapper svelte-1j7b2kc"><!></div>'),M4={hash:"svelte-1j7b2kc",code:".menu-item-value-wrapper.svelte-1j7b2kc {line-height:normal;}"};function Fs(t,e){F(e,!0),z(t,M4);let[i,o]=Me(),n=()=>y(l,"$currentQuality$",i),a=()=>y(c,"$availableQualities$",i),s=()=>y(u,"$isMobile$",i),d=_e(),l=d.state.currentQuality$,c=d.state.availableQualities$,u=d.ui.isMobile,_=" \xB7 ",f=v(()=>e.prefix+(e.selected&&n()!==P4.INVARIANT?_:"")),$=v(()=>Nh({prefix:r(f),quality:n(),availableQualities:a(),onlyPrefix:!e.selected}));var x=A4(),w=h(x);let S=v(()=>e.selected?n():void 0);ts(w,{get quality(){return r(S)},get label(){return r($)},get isMobile(){return s()},isSubCase:!0}),g(x),b(t,x),U(),o()}var L4=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")},V4={br:!0,span:!0},Gf=(t,e={})=>{if(!t)return t;let i={...V4,...e},o=Object.keys(i);if(!o.length)return t;let n=L4(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?Gf(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 sd(t,e){F(e,!1);let i=m(e,"message",8),o=Gf(i());fr();var n=De(),a=le(n);{var s=d=>{var l=De(),c=le(l);ml(c,()=>o,!1,!1),b(d,l)};V(a,d=>{o&&d(s)})}b(t,n),U()}var R4=A('<p class="quality-applies sublabel svelte-1qk3zto"><!></p>'),N4={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 Yf(t,e){F(e,!1),z(t,N4),fr();var i=R4(),o=h(i);let n=cr(()=>H("quality_applience",{action:`<span>${H("quality_applience_action")}</span>`}));sd(o,{get message(){return r(n)}}),g(i),b(t,i),U()}var Bh=({isAutoQualityEnabled:t,trafficSavingEnabled:e,highQualityEnabled:i})=>{let o=!t&&!e&&!i;return{id:"QUALITY_OTHER",type:"OPEN_SUB_MENU",selected:o,valueComponent:Fs,valueComponentParams:{prefix:H("other_quality"),selected:o},children:"QUALITY"}},jf=({appliesTo:t,labelWithQuality:e,selected:i},{selectQuality:o})=>({id:"QUALITY_AUTO",type:"SELECT_VALUE",value:"auto",label:H("auto_quality_limit"),valueComponent:e?Fs:void 0,valueComponentParams:{prefix:H("auto_quality_limit"),selected:i},selectItem:()=>o("auto",t),selected:i}),Oh=()=>({id:"QUALITY_APPLIENCE",type:"OPEN_SUB_MENU",valueComponent:Yf,bottomBordered:!0,children:"QUALITY_APPLIENCE"}),Zf=({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?Fs:void 0,valueComponentParams:{prefix:H("high_quality"),selected:i},sublabel:H("high_quality_description")}),Xf=({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?Fs:void 0,valueComponentParams:{prefix:H("traffic_saving_quality"),selected:i},sublabel:H("traffic_saving_quality_description")});var Dc=(t,e)=>String(e.findIndex(i=>i.id===t.id)+1),Bc=(t,e)=>{if(!t)return"";let{language:i,label:o}=t,n;if(i==="und"?n=void 0:i&&(n=Ic(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=Dc(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=Dc(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=Dc(t,s);return H("audio_stream_display_language_index",{language:n,index:d})}}let a=Dc(t,e);return H("audio_stream_display_unknown",{index:a})};var D4={QUALITY_DETAILS:t=>{let{isAutoQualityEnabled:e,isAutoQualityAvailable:i,trafficSavingEnabled:o,highQualityEnabled:n}=t,a=[];return i&&a.push({handler:jf,selected:e&&!o&&!n||!1}),a.push({handler:Xf,selected:o},{handler:Zf,selected:n}),{title:H("submenu_quality"),id:"QUALITY_DETAILS",items:[Oh(t),...a.map(({handler:s,selected:d})=>s({labelWithQuality:!0,appliesTo:"to-video",selected:d},t)),Bh(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:ts,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:jf,selected:ac()?.type==="auto_quality"},{handler:Xf,selected:ac()?.type==="traffic_saving"},{handler:Zf,selected:ac()?.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:Bc(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}))})},Hh=({subMenuId:t,context:e})=>t?[D4[t](e)]:[];var B4=ve('<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 Jf(t,e){let i=Ce(e,["$$slots","$$events","$$legacy","children"]);var o=B4();let n;var a=h(o);pe(a,()=>e.children??te),me(),g(o),C(()=>n=xe(o,n,{xmlns:"http://www.w3.org/2000/svg",width:"18",height:"17",fill:"none","aria-hidden":"true","data-testid":"traffic-saving-icon",role:"img",...i})),b(t,o)}var O4=ve('<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 em(t,e){let i=Ce(e,["$$slots","$$events","$$legacy","children"]);var o=O4();let n;var a=h(o);pe(a,()=>e.children??te),me(),g(o),C(()=>n=xe(o,n,{xmlns:"http://www.w3.org/2000/svg",width:"18",height:"15",fill:"none","aria-hidden":"true","data-testid":"audio-languages-icon",role:"img",...i})),b(t,o)}var H4=ve('<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 tm(t,e){let i=Ce(e,["$$slots","$$events","$$legacy","children"]);var o=H4();let n;var a=h(o);pe(a,()=>e.children??te),me(),g(o),C(()=>n=xe(o,n,{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24","aria-hidden":"true","data-testid":"play-speed-icon",role:"img",...i})),b(t,o)}var F4=ve('<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 im(t,e){let i=Ce(e,["$$slots","$$events","$$legacy","children"]);var o=F4();let n;var a=h(o);pe(a,()=>e.children??te),me(),g(o),C(()=>n=xe(o,n,{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"19",fill:"none","aria-hidden":"true","data-testid":"download-icon",role:"img",...i})),b(t,o)}var U4=ve('<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 om(t,e){let i=Ce(e,["$$slots","$$events","$$legacy","children"]);var o=U4();let n;var a=h(o);pe(a,()=>e.children??te),me(),g(o),C(()=>n=xe(o,n,{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none","aria-hidden":"true","data-testid":"report-icon",role:"img",...i})),b(t,o)}var z4=ve('<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 Oc(t,e){let i=Ce(e,["$$slots","$$events","$$legacy","children"]);var o=z4();let n;var a=h(o);pe(a,()=>e.children??te),me(),g(o),C(()=>n=xe(o,n,{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none","aria-hidden":"true","data-testid":"copy-icon",role:"img",...i})),b(t,o)}var q4=ve('<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 nm(t,e){let i=Ce(e,["$$slots","$$events","$$legacy","children"]);var o=q4();let n;var a=h(o);pe(a,()=>e.children??te),me(),g(o),C(()=>n=xe(o,n,{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none","aria-hidden":"true","data-testid":"info-icon",role:"img",...i})),b(t,o)}var W4=A('<div class="menu-item-value-wrapper svelte-1j7b2kc"><!></div>'),K4={hash:"svelte-1j7b2kc",code:".menu-item-value-wrapper.svelte-1j7b2kc {line-height:normal;}"};function rm(t,e){F(e,!0),z(t,K4);let[i,o]=Me(),n=()=>y(c,"$currentQuality$",i),a=()=>y(u,"$availableQualities$",i),s=()=>y(_,"$isAutoQualityEnabled$",i),d=()=>y(f,"$isMobile$",i),l=_e(),c=l.state.currentQuality$,u=l.state.availableQualities$,_=l.state.isAutoQualityEnabled$,f=l.ui.isMobile,$=v(()=>Rh({quality:n(),availableQualities:a(),isAutoQualityEnabled:s()}));var x=W4(),w=h(x);ts(w,{get quality(){return n()},get label(){return r($)},get isMobile(){return d()}}),g(x),b(t,x),U(),o()}var G4={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:Rl,label:H("menu_quality"),value:e,valueComponent:rm,weight:hr["quality-settings"],children:i?"QUALITY_DETAILS":"QUALITY"}},TRAFFIC_SAVING_SWITCH:({trafficSavingEnabled:t,toggleTrafficSaving:e})=>({id:"TRAFFIC_SAVING_SWITCH",weight:hr["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:Jf,label:H("menu_traffic_saving"),enabled:t,tooltipText:H("traffic_saving_helper_text"),maxTooltipWidth:175}),AUDIO_LANGUAGES:({currentAudioStream:t,availableAudioStreams:e})=>{let i=Bc(t,e);return{id:"AUDIO_LANGUAGES",weight:hr["audio-language-settings"],type:"OPEN_SUB_MENU",ariaLabel:H("aria_label_menu_audio_languages",{actual:i}),icon:em,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:hr["playback-rate-settings"],type:"OPEN_SUB_MENU",ariaLabel:H("aria_label_menu_rate",{actual:i}),icon:tm,label:H("menu_playback_rate"),value:`${e}x`,children:"PLAYBACK_RATE_SUB_MENU"}},SUBTITLES:({currentSubtitle:t})=>({id:"SUBTITLES",weight:hr["subtitles-settings"],type:"OPEN_SUB_MENU",ariaLabel:H("aria_label_menu_subtitle",{actual:t.displayValue}),icon:Nl,label:H("subtitles_caption"),value:t.displayValue,children:"SUBTITLES"}),DOWNLOAD:({onDownloadClick:t})=>({id:"DOWNLOAD",weight:hr.download,type:"CLICK",onClick:t,label:H("download_video_caption"),ariaLabel:H("aria_label_menu_download"),icon:im}),SHOW_SUPPORT:({onReportProblemClick:t})=>({id:"SHOW_SUPPORT",weight:hr.report,type:"CLICK",onClick:t,label:H("menu_report"),ariaLabel:`${H("menu_report")}. ${H("aria_label_new_tab_alert")}`,icon:om,isHiddenFor:["desktop"]}),COPY_DATA:({onCopyDataClick:t})=>({id:"COPY_DATA",weight:hr["copy-data"],type:"CLICK",onClick:t,label:H("menu_copy_debug"),ariaLabel:H("menu_copy_debug"),icon:Oc,isHiddenFor:["desktop"]}),SAVE_TRACE_INFO:({onSaveTraceDataClick:t})=>({id:"SAVE_TRACE_INFO",weight:hr["save-trace-info"],type:"CLICK",onClick:t,label:H("menu_save_debug"),ariaLabel:H("menu_save_debug"),icon:Oc,isHiddenFor:["desktop"]}),DEBUG_INFO:({toggleShowDebugInfo:t,debugPanelVisible:e})=>({id:"DEBUG_INFO",weight:hr["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:nm,isHiddenFor:["desktop"]})},Fh=({items:t,context:e,additionalSettingsMenuItems:i})=>{let{isMobile:o}=e;return[...t.map(n=>G4[n](e)),...i.map(n=>({...n,isAdditional:!0}))].filter(n=>!n?.isHiddenFor?.length||!n?.isHiddenFor?.includes("desktop")&&!o||!n?.isHiddenFor?.includes("mobile")&&o).sort(Ua)};var Z4=(t,e)=>{gc(t,e)},X4=A('<div><div> </div> <div class="close svelte-17or3al"></div></div>'),J4=A('<div data-testid="settings-menu"><!> <ul role="menu"></ul></div>'),e3=A("<div><!> <!></div>"),t3={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 Ff(t,e){F(e,!0),W(t,n4);let[i,o]=De(),n=()=>y(_,"$isFullscreen",i),a=()=>y(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);At(()=>{let oe=e.items.findIndex(ge=>ge.selected);c().children[oe+1].focus()});let u=be(),_=u.ui.isFullscreen,f=u.ui.playerSize,$=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 M=o4();let P;var A=h(M);let T;A.__keydown=[e4,e];var B=h(A);let Q;B.__click=[t4,e],B.__keydown=[i4,e];var G=h(B);va(G,{direction:"left"});var ee=E(G,2),te=h(ee,!0);g(ee),g(B),at(B,oe=>N($,oe),()=>r($));var ie=E(B,2);di(ie,17,()=>e.items,sl,(oe,ge)=>{var X=Ne(),Ve=le(X);{var Ae=He=>{Bf(He,{get item(){return r(ge)},get isMobile(){return s()}})},se=(He,j)=>{{var D=Re=>{Of(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(D)},j)}};V(Ve,He=>{r(ge).type==="SELECT_VALUE"?He(Ae):He(se,!1)})}b(oe,X)}),g(A),at(A,oe=>c(oe),()=>c()),g(M),C((oe,ge,X)=>{P=Z(M,1,"sub-menu menu svelte-7dfsuh",null,P,oe),Le(M,"data-testid",`sub-menu-${e.id}`),tt(M,`min-width: ${r(I)}px`),T=Z(A,1,"items svelte-7dfsuh",null,T,ge),tt(A,r(S)),Q=Z(B,1,"item header back svelte-7dfsuh",null,Q,X),Le(B,"aria-label",l()),ce(te,e.title)},[()=>({desktop:!s(),mobile:s()}),()=>({mobile:s()}),()=>({mobile:s()})]),Ar(B,"clientWidth",oe=>N(x,oe)),Ar(B,"clientHeight",oe=>N(w,oe)),b(t,M),U(),o()}ot(["keydown","click"]);import{noop as r4}from"@vkontakte/videoplayer-shared/es2024";var a4=(t,e)=>fc(t,e()),s4=(t,e)=>{t.stopPropagation(),e()()},l4=L('<div class="value svelte-1ikfjte"> </div>'),d4=L('<li role="menuitem" tabindex="0" aria-haspopup="true"><div class="icon-wrapper"><!></div> <div class="label"> </div> <!></li>'),c4={hash:"svelte-1ikfjte",code:".value.svelte-1ikfjte {position:relative;opacity:0.7;overflow:hidden;text-overflow:ellipsis;}"};function Uf(t,e){F(e,!0),W(t,c4);let i=v(e,"isMobile",3,!1),o=v(e,"onClick",3,r4),n=v(e,"valueComponent",3,void 0),a=v(e,"ref",15);var s=d4();let d;s.__click=[s4,o],s.__keydown=[a4,o];var l=h(s),c=h(l);{var u=I=>{Ya(I,{get icon(){return e.icon}})},_=I=>{var M=Ne();let P=m(()=>e.icon);var A=le(M);ci(A,()=>r(P),(T,B)=>{B(T,{})}),b(I,M)};V(c,I=>{typeof e.icon=="string"?I(u):I(_,!1)})}g(l);var f=E(l,2),$=h(f,!0);g(f);var x=E(f,2);{var w=I=>{var M=Ne();let P=m(n);var A=le(M);ci(A,()=>r(P),(T,B)=>{B(T,{})}),b(I,M)},S=I=>{var M=l4(),P=h(M,!0);g(M),C(()=>ce(P,e.value)),b(I,M)};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),Le(s,"aria-label",e.ariaLabel),Le(s,"data-testid",e.id),ce($,e.label)},[()=>({mobile:i()})]),b(t,s),U()}ot(["click","keydown"]);import{noop as Ih}from"@vkontakte/videoplayer-shared/es2024";var u4=(t,e)=>{Es(t,()=>e())},p4=L('<div class="icon icon-error-stub"><div class="inner"></div></div>'),f4=L('<img class="icon" aria-hidden="true">'),m4=L('<li role="menuitem" tabindex="0"><div class="icon-wrapper"><!></div> <div class="label svelte-15ifkac"> </div></li>'),v4={hash:"svelte-15ifkac",code:".label.svelte-15ifkac {overflow:hidden;text-overflow:ellipsis;}"};function zf(t,e){F(e,!0),W(t,v4);let i=v(e,"isMobile",3,!1),o=v(e,"onClick",3,Ih),n=v(e,"closeSettings",3,Ih),a=Y(!1),s=()=>{N(a,!0)},d=S=>{S?.stopPropagation(),o()(),n()()};var l=m4();let c;l.__click=d,l.__keydown=[u4,d];var u=h(l),_=h(u);{var f=S=>{var I=Ne(),M=le(I);{var P=T=>{var B=p4();b(T,B)},A=T=>{var B=f4();C(()=>Le(B,"src",e.icon)),Ct("error",B,s),Ea(B),b(T,B)};V(M,T=>{r(a)?T(P):T(A,!1)})}b(S,I)},$=S=>{var I=Ne();let M=m(()=>e.icon);var P=le(I);ci(P,()=>r(M),(A,T)=>{T(A,{})}),b(S,I)};V(_,S=>{typeof e.icon=="string"?S(f):S($,!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),Le(l,"aria-label",e.ariaLabel??e.label),Le(l,"data-testid",e.id),ce(w,e.label)},[()=>({mobile:i()})]),b(t,l),U()}ot(["click","keydown"]);import{noop as _4}from"@vkontakte/videoplayer-shared/es2024";var g4=L('<div class="toggle_wrap svelte-17wbjko"><div></div> <div class="toggle-label svelte-17wbjko"></div></div>'),h4={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 Wf(t,e){W(t,h4);let i=v(e,"enabled",3,!1);var o=g4(),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 b4=(t,e,i)=>{Yg(t,e(),o=>i()(o))},$4=(t,e,i)=>{t.stopPropagation(),e()(!i())},y4=L('<div><div class="icon-wrapper"><!></div> <div class="label"> </div> <!></div>'),x4=L('<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,_4),n=v(e,"enabled",3,!1),a=v(e,"tooltipText",3,void 0),s=v(e,"maxTooltipWidth",3,void 0);var d=x4();let l;d.__click=[$4,o,n],d.__keydown=[b4,n,o];var c=h(d);Wa(c,{get content(){return a()},get isMobile(){return i()},placement:"left",translateX:10,isFullWidthWrapper:!0,get maxTooltipWidth(){return s()},children:(u,_)=>{var f=y4();let $;var x=h(f),w=h(x);{var S=T=>{Ya(T,{get icon(){return e.icon}})},I=T=>{var B=Ne();let Q=m(()=>e.icon);var G=le(B);ci(G,()=>r(Q),(ee,te)=>{te(ee,{})}),b(T,B)};V(w,T=>{typeof e.icon=="string"?T(S):T(I,!1)})}g(x);var M=E(x,2),P=h(M,!0);g(M);var A=E(M,2);Wf(A,{get enabled(){return n()}}),g(f),C(T=>{$=Z(f,1,"switch-wrapper",null,$,T),ce(P,e.label)},[()=>({mobile:i()})]),b(u,f)},$$slots:{default:!0}}),g(d),C(u=>{l=Z(d,1,"item switch-item",null,l,u),Le(d,"aria-label",e.ariaLabel??e.label),Le(d,"data-testid",e.id)},[()=>({mobile:i()})]),b(t,d),U()}ot(["click","keydown"]);import{isValidURL as K4,VideoQuality as Oh}from"@vkontakte/videoplayer-shared/es2024";var Eh=()=>{let t=Y(de([])),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,de(r(t).slice(0,-1)))},popAllSubMenus:()=>{N(t,de([]))}}};var w4=L('<div class="quality-icon svelte-t2qk8t"><!></div>'),S4=L('<div class="quality-label svelte-t2qk8t"><span> </span> <!></div>'),C4={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 Za(t,e){F(e,!0),W(t,C4);let i=v(e,"isSubCase",3,!1),o=m(()=>_c(e.quality));var n=S4(),a=h(n);let s;var d=h(a,!0);g(a);var l=E(a,2);{var c=u=>{var _=w4();let f=m(()=>r(o));var $=h(_);ci($,()=>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),ce(d,e.label)},[()=>({sub:!i(),quality:!e.isMobile})]),b(t,n),U()}import{VideoQuality as k4}from"@vkontakte/videoplayer-shared/es2024";import{VideoQuality as Ph}from"@vkontakte/videoplayer-core/es2024";var Ah=({quality:t,availableQualities:e})=>{let i=e.find(o=>o.value===t);return i?i.displayValue:t},Mh=({quality:t,availableQualities:e,isAutoQualityEnabled:i})=>{if(!t)return"...";let o=Ah({quality:t,availableQualities:e});return i?t===Ph.INVARIANT?H("auto_quality_invariant"):H("auto_quality",{actual:o}):o},Lh=({quality:t,availableQualities:e,prefix:i,onlyPrefix:o})=>t?o||t===Ph.INVARIANT?i:`${i}${Ah({quality:t,availableQualities:e})}`:"...";var T4=L('<div class="menu-item-value-wrapper svelte-1j7b2kc"><!></div>'),I4={hash:"svelte-1j7b2kc",code:".menu-item-value-wrapper.svelte-1j7b2kc {line-height:normal;}"};function Ns(t,e){F(e,!0),W(t,I4);let[i,o]=De(),n=()=>y(l,"$currentQuality$",i),a=()=>y(c,"$availableQualities$",i),s=()=>y(u,"$isMobile$",i),d=be(),l=d.state.currentQuality$,c=d.state.availableQualities$,u=d.ui.isMobile,_=" \xB7 ",f=m(()=>e.prefix+(e.selected&&n()!==k4.INVARIANT?_:"")),$=m(()=>Lh({prefix:r(f),quality:n(),availableQualities:a(),onlyPrefix:!e.selected}));var x=T4(),w=h(x);let S=m(()=>e.selected?n():void 0);Za(w,{get quality(){return r(S)},get label(){return r($)},get isMobile(){return s()},isSubCase:!0}),g(x),b(t,x),U(),o()}var E4=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")},P4={br:!0,span:!0},Kf=(t,e={})=>{if(!t)return t;let i={...P4,...e},o=Object.keys(i);if(!o.length)return t;let n=E4(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());vr();var n=Ne(),a=le(n);{var s=d=>{var l=Ne(),c=le(l);ll(c,()=>o,!1,!1),b(d,l)};V(a,d=>{o&&d(s)})}b(t,n),U()}var A4=L('<p class="quality-applies sublabel svelte-1qk3zto"><!></p>'),M4={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 Qf(t,e){F(e,!1),W(t,M4),vr();var i=A4(),o=h(i);let n=pr(()=>H("quality_applience",{action:`<span>${H("quality_applience_action")}</span>`}));nd(o,{get message(){return r(n)}}),g(i),b(t,i),U()}var Rh=({isAutoQualityEnabled:t,trafficSavingEnabled:e,highQualityEnabled:i})=>{let o=!t&&!e&&!i;return{id:"QUALITY_OTHER",type:"OPEN_SUB_MENU",selected:o,valueComponent:Ns,valueComponentParams:{prefix:H("other_quality"),selected:o},children:"QUALITY"}},Gf=({appliesTo:t,labelWithQuality:e,selected:i},{selectQuality:o})=>({id:"QUALITY_AUTO",type:"SELECT_VALUE",value:"auto",label:H("auto_quality_limit"),valueComponent:e?Ns:void 0,valueComponentParams:{prefix:H("auto_quality_limit"),selected:i},selectItem:()=>o("auto",t),selected:i}),Dh=()=>({id:"QUALITY_APPLIENCE",type:"OPEN_SUB_MENU",valueComponent:Qf,bottomBordered:!0,children:"QUALITY_APPLIENCE"}),Yf=({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?Ns: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?Ns:void 0,valueComponentParams:{prefix:H("traffic_saving_quality"),selected:i},sublabel:H("traffic_saving_quality_description")});var Vc=(t,e)=>String(e.findIndex(i=>i.id===t.id)+1),Rc=(t,e)=>{if(!t)return"";let{language:i,label:o}=t,n;if(i==="und"?n=void 0:i&&(n=Sc(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=Vc(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=Vc(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=Vc(t,s);return H("audio_stream_display_language_index",{language:n,index:d})}}let a=Vc(t,e);return H("audio_stream_display_unknown",{index:a})};var L4={QUALITY_DETAILS:t=>{let{isAutoQualityEnabled:e,isAutoQualityAvailable:i,trafficSavingEnabled:o,highQualityEnabled:n}=t,a=[];return i&&a.push({handler:Gf,selected:e&&!o&&!n||!1}),a.push({handler:jf,selected:o},{handler:Yf,selected:n}),{title:H("submenu_quality"),id:"QUALITY_DETAILS",items:[Dh(t),...a.map(({handler:s,selected:d})=>s({labelWithQuality:!0,appliesTo:"to-video",selected:d},t)),Rh(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:Za,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:Gf,selected:ic()?.type==="auto_quality"},{handler:jf,selected:ic()?.type==="traffic_saving"},{handler:Yf,selected:ic()?.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:Rc(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}))})},Nh=({subMenuId:t,context:e})=>t?[L4[t](e)]:[];var V4=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 Zf(t,e){let i=Se(e,["$$slots","$$events","$$legacy","children"]);var o=V4();let n;var a=h(o);ue(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 R4=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 Xf(t,e){let i=Se(e,["$$slots","$$events","$$legacy","children"]);var o=R4();let n;var a=h(o);ue(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 D4=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 Jf(t,e){let i=Se(e,["$$slots","$$events","$$legacy","children"]);var o=D4();let n;var a=h(o);ue(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 N4=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 em(t,e){let i=Se(e,["$$slots","$$events","$$legacy","children"]);var o=N4();let n;var a=h(o);ue(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 tm(t,e){let i=Se(e,["$$slots","$$events","$$legacy","children"]);var o=B4();let n;var a=h(o);ue(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 O4=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 Dc(t,e){let i=Se(e,["$$slots","$$events","$$legacy","children"]);var o=O4();let n;var a=h(o);ue(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 H4=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 im(t,e){let i=Se(e,["$$slots","$$events","$$legacy","children"]);var o=H4();let n;var a=h(o);ue(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 F4=L('<div class="menu-item-value-wrapper svelte-1j7b2kc"><!></div>'),U4={hash:"svelte-1j7b2kc",code:".menu-item-value-wrapper.svelte-1j7b2kc {line-height:normal;}"};function om(t,e){F(e,!0),W(t,U4);let[i,o]=De(),n=()=>y(c,"$currentQuality$",i),a=()=>y(u,"$availableQualities$",i),s=()=>y(_,"$isAutoQualityEnabled$",i),d=()=>y(f,"$isMobile$",i),l=be(),c=l.state.currentQuality$,u=l.state.availableQualities$,_=l.state.isAutoQualityEnabled$,f=l.ui.isMobile,$=m(()=>Mh({quality:n(),availableQualities:a(),isAutoQualityEnabled:s()}));var x=F4(),w=h(x);Za(w,{get quality(){return n()},get label(){return r($)},get isMobile(){return d()}}),g(x),b(t,x),U(),o()}var W4={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:Pl,label:H("menu_quality"),value:e,valueComponent:om,weight:br["quality-settings"],children:i?"QUALITY_DETAILS":"QUALITY"}},TRAFFIC_SAVING_SWITCH:({trafficSavingEnabled:t,toggleTrafficSaving:e})=>({id:"TRAFFIC_SAVING_SWITCH",weight:br["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:Zf,label:H("menu_traffic_saving"),enabled:t,tooltipText:H("traffic_saving_helper_text"),maxTooltipWidth:175}),AUDIO_LANGUAGES:({currentAudioStream:t,availableAudioStreams:e})=>{let i=Rc(t,e);return{id:"AUDIO_LANGUAGES",weight:br["audio-language-settings"],type:"OPEN_SUB_MENU",ariaLabel:H("aria_label_menu_audio_languages",{actual:i}),icon:Xf,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:br["playback-rate-settings"],type:"OPEN_SUB_MENU",ariaLabel:H("aria_label_menu_rate",{actual:i}),icon:Jf,label:H("menu_playback_rate"),value:`${e}x`,children:"PLAYBACK_RATE_SUB_MENU"}},SUBTITLES:({currentSubtitle:t})=>({id:"SUBTITLES",weight:br["subtitles-settings"],type:"OPEN_SUB_MENU",ariaLabel:H("aria_label_menu_subtitle",{actual:t.displayValue}),icon:Al,label:H("subtitles_caption"),value:t.displayValue,children:"SUBTITLES"}),DOWNLOAD:({onDownloadClick:t})=>({id:"DOWNLOAD",weight:br.download,type:"CLICK",onClick:t,label:H("download_video_caption"),ariaLabel:H("aria_label_menu_download"),icon:em}),SHOW_SUPPORT:({onReportProblemClick:t})=>({id:"SHOW_SUPPORT",weight:br.report,type:"CLICK",onClick:t,label:H("menu_report"),ariaLabel:`${H("menu_report")}. ${H("aria_label_new_tab_alert")}`,icon:tm,isHiddenFor:["desktop"]}),COPY_DATA:({onCopyDataClick:t})=>({id:"COPY_DATA",weight:br["copy-data"],type:"CLICK",onClick:t,label:H("menu_copy_debug"),ariaLabel:H("menu_copy_debug"),icon:Dc,isHiddenFor:["desktop"]}),SAVE_TRACE_INFO:({onSaveTraceDataClick:t})=>({id:"SAVE_TRACE_INFO",weight:br["save-trace-info"],type:"CLICK",onClick:t,label:H("menu_save_debug"),ariaLabel:H("menu_save_debug"),icon:Dc,isHiddenFor:["desktop"]}),DEBUG_INFO:({toggleShowDebugInfo:t,debugPanelVisible:e})=>({id:"DEBUG_INFO",weight:br["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:im,isHiddenFor:["desktop"]})},Bh=({items:t,context:e,additionalSettingsMenuItems:i})=>{let{isMobile:o}=e;return[...t.map(n=>W4[n](e)),...i.map(n=>({...n,isAdditional:!0}))].filter(n=>!n?.isHiddenFor?.length||!n?.isHiddenFor?.includes("desktop")&&!o||!n?.isHiddenFor?.includes("mobile")&&o).sort(Ha)};var Q4=(t,e)=>{pc(t,e)},G4=L('<div><div> </div> <div class="close svelte-17or3al"></div></div>'),Y4=L('<div data-testid="settings-menu"><!> <ul role="menu"></ul></div>'),j4=L("<div><!> <!></div>"),Z4={hash:"svelte-17or3al",code:`.settings-menu-container.mobile.svelte-17or3al {width:100%;}.settings-menu-container.svelte-17or3al ul {margin:0;padding:0;list-style-type:none;}.settings-menu-container.svelte-17or3al .menu {background-color:var(--settings-bg);border-radius:var(--settings-radius);transition:opacity 0.2s, visibility 0.2s;overflow:hidden;}.settings-menu-container.svelte-17or3al .menu .item:first-child:not(.mobile) {border-top-right-radius:var(--settings-radius);border-top-left-radius:var(--settings-radius);}.settings-menu-container.svelte-17or3al .menu .item:last-child {border-bottom-right-radius:var(--settings-radius);border-bottom-left-radius:var(--settings-radius);}.settings-menu-container.svelte-17or3al .settings-menu .item:first-child:not(.mobile) {padding-top:6px;}.settings-menu-container.svelte-17or3al .settings-menu .item:last-child:not(.mobile) {padding-bottom:6px;}.settings-menu-container.svelte-17or3al .menu.desktop {position:absolute;right:0;bottom:0;max-width:100%;}.settings-menu.svelte-17or3al {line-height:40px;}.settings-menu.desktop.svelte-17or3al {
305
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),
306
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),
307
305
  .settings-menu.svelte-17or3al .switch-wrapper {padding:0 32px 0 18px;}.settings-menu.svelte-17or3al .item.mobile:not(.switch-item),
308
- .settings-menu.svelte-17or3al .switch-wrapper.mobile {padding:0 14px;}.settings-menu.svelte-17or3al .icon-wrapper {width:24px;min-width:24px;height:24px;display:flex;align-items:center;justify-content:center;margin-right:16px;}.settings-menu.svelte-17or3al .label {flex-grow:1;margin-right:24px;overflow:hidden;text-overflow:ellipsis;}.settings-menu.svelte-17or3al .item.header.mobile:where(.svelte-17or3al) {color:var(--white);cursor:pointer;justify-content:space-between;column-gap:12px;display:flex;border-bottom:var(--divider-border);margin-bottom:4px;}.settings-menu-container.svelte-17or3al .items::-webkit-scrollbar {width:8px;}.settings-menu-container.svelte-17or3al .items::-webkit-scrollbar-track {box-shadow:none;background-color:#3a3a3a;border-radius:4px;}.settings-menu-container.svelte-17or3al .items::-webkit-scrollbar-thumb {min-height:40px;border-radius:5px;background-color:#666;border:1px solid transparent;background-clip:padding-box;}.settings-menu-container.svelte-17or3al .items::-webkit-scrollbar-thumb:hover {background-color:#777;}.settings-menu-container.svelte-17or3al .items.mobile {overflow-y:auto;overflow-x:hidden;max-height:160px;text-align:left;}.close.svelte-17or3al {position:relative;width:12px;height:12px;padding:12px;margin-right:-12px;}.close.svelte-17or3al:before, .close.svelte-17or3al:after {position:absolute;left:18px;content:' ';height:12px;width:2px;background-color:var(--white);}.close.svelte-17or3al:before {transform:rotate(45deg);}.close.svelte-17or3al:after {transform:rotate(-45deg);}`};function ld(t,e){F(e,!0),z(t,t3);let[i,o]=Me(),n=()=>y(Ge,"$settingsMenuVisible",i),a=()=>y(ze,"$settingsMenuOpenedByKeyboard",i),s=()=>y(nt,"$debugPanelVisible",i),d=()=>y(Ve,"$isMobile",i),l=()=>y(Tt,"$playerSize",i),c=()=>y(Ie,"$hasMpegSources$",i),u=()=>y(qe,"$mobileNotReportControlHidden$",i),_=()=>y(N,"$autoQualityLimitingAvailable$",i),f=()=>y(R,"$availableSubtitlesList$",i),$=()=>y(ot,"$isLiveWithPlaybackSpeed",i),x=()=>y(oe,"$availableAudioStreams$",i),w=()=>y(Be,"$availablePlaybackRates$",i),S=()=>y(Ae,"$currentAudioStream$",i),I=()=>y(ke,"$currentPlaybackRate$",i),P=()=>y(ut,"$trafficSavingEnabled",i),M=()=>y(Fe,"$currentQuality$",i),L=()=>y(Le,"$isAutoQualityEnabled$",i),T=()=>y(ce,"$currentSubtitle$",i),B=()=>y(Lt,"$additionalSettingsMenuItems$",i),K=()=>y(be,"$isAutoQualityAvailable$",i),Q=()=>y(j,"$availableQualities$",i),Y=()=>y(pt,"$highQualityEnabled",i),ae=m(e,"ref",15,void 0),se=m(e,"playerControlsHeight",3,0),ee=de({}),ge=de({}),J=_e(),Pe=Mt(),Ae=J.state.audioStream$,oe=J.state.availableAudioStreams$,Fe=J.state.currentQuality$,j=J.state.availableQualities$,N=J.state.autoQualityLimitingAvailable$,Le=J.state.isAutoQualityEnabled$,be=J.state.isAutoQualityAvailable$,ke=J.state.currentPlaybackRate$,Be=J.state.availablePlaybackRates$,ce=J.state.currentSubtitle$,R=J.state.availableSubtitlesList$,$e=J.state.canDownload,Ie=J.state.hasMpegSources$,Ge=J.ui.settingsMenu.visible$,ze=J.ui.settingsMenu.openedByBtnKeyboard$,ye=J.ui.settingsMenu.ref$,Ve=J.ui.isMobile,qe=J.ui.mobileNotReportControlHidden$,ot=J.state.canChangePlaybackSpeed$,ut=J.state.trafficSavingEnabled$,pt=J.state.highQualityEnabled$,Tt=J.ui.playerSize,nt=J.ui.debugPanelVisible,vt=J.state.isInteractiveTime$,Lt=J.ui.additionalSettingsMenuItems$,Te=J.ui.t,Ue=J.actions.internal.downloadVideo,Ye=J.actions.internal.closeSettingsMenu,W=J.actions.internal.openSettingsSubMenu,ne=J.actions.internal.closeSettingsSubMenu,ie=X(!1),We=X(void 0),Ze=Mh();He(()=>{!n()&&Ze.current&&(ne(ge[Ze.current]),Ze.popAllSubMenus())}),He(()=>{n()||D(We,void 0)}),He(()=>{!Ze.current&&r(We)&&jg(ee,r(We))}),He(()=>{ae()&&ye.set(ae())});async function $t(yt){Ze.pushSubMenu(yt),await Ji(),W(yt,ge[yt])}function Ke(yt){yt?.stopPropagation(),a()||e.returnFocus?.(),Ye(),D(ie,!1)}function Xe(yt,Ot){J.actions.internal.setQuality(yt,{appliesTo:Ot}),Ke()}function Ne(yt){J.actions.internal.setAudioStream(yt),Ke()}function st(yt,Ot){J.actions.internal.setTrafficSavingEnabled(yt,Ot),Pe.features.qualityDetailsSubMenuEnabled&&Ke()}function Vt(yt,Ot){J.actions.internal.setHighQualityEnabled(yt,Ot),Ke()}function Zt(yt){J.actions.internal.setPlaybackRate(yt),Ke()}function mi(yt){J.actions.internal.setSubtitle(yt),Ke()}function ri(){Ue()}function oo(){j4(e.supportLink)&&window.open(e.supportLink,"_blank"),J.actions.internal.reportProblem(),J.actions.internal.pause()}function Ho(){Es(J.actions.internal.getDebugTextData())}let an=()=>{let yt=J.actions.internal.getTraceTextData(),Ot=new Blob([...yt],{type:"application/json"}),$i=window.URL.createObjectURL(Ot);Na($i,"vk_player_trace_info","json")};function Ui(){nt.set(!s())}function $o(){D(ie,!0)}function Fo(){D(ie,!1)}function yo(){return d()?`max-height: ${Math.round(l().height*.6)}px`:`max-height: ${l().height-32-se()}px; overflow: auto;`}let uo=v(()=>$e&&c()&&!u()),Wt=v(()=>Pe.features.trafficSaving&&!u()&&_()&&!Pe.features.qualityDetailsSubMenuEnabled),G=v(()=>f().length>0&&!u()),Kt=v(()=>!!$()&&!u()),Xt=v(()=>Pe.features.audioLanguages&&x().length>=2&&!u()),zi=v(()=>!u());At(()=>vt.subscribe(yt=>{yt&&!d()&&!r(ie)&&!a()&&Ke()}));let Gt=v(()=>{let yt=[r(zi)&&"QUALITY_SETTINGS",r(Xt)&&"AUDIO_LANGUAGES",r(Kt)&&"PLAYBACK_RATE",r(G)&&"SUBTITLES",r(Wt)&&"TRAFFIC_SAVING_SWITCH",r(uo)&&"DOWNLOAD",Pe.showSupport&&"SHOW_SUPPORT","COPY_DATA",Pe.features.saveTraceInfoToFile&&"SAVE_TRACE_INFO","DEBUG_INFO"].filter(Ot=>!!Ot);return Fh({items:yt,context:{qualityDetailsSubMenuEnabled:Pe.features.qualityDetailsSubMenuEnabled,availablePlaybackRates:w(),currentAudioStream:S(),availableAudioStreams:x(),currentPlaybackRate:I(),selectPlaybackRate:Zt,trafficSavingEnabled:P(),toggleTrafficSaving:st,currentQuality:M()||Uh.INVARIANT,isAutoQualityEnabled:L()||!1,currentSubtitle:T(),isMobile:d(),onDownloadClick:ri,debugPanelVisible:s(),onCopyDataClick:Ho,onReportProblemClick:oo,onSaveTraceDataClick:an,toggleShowDebugInfo:Ui},additionalSettingsMenuItems:B()})}),Jt=v(()=>Hh({subMenuId:Ze.current,context:{availablePlaybackRates:w(),selectPlaybackRate:Zt,trafficSavingEnabled:P(),toggleTrafficSaving:st,currentQuality:M()||Uh.INVARIANT,isAutoQualityEnabled:L()||!1,isAutoQualityAvailable:K()||!1,availableQualities:Q(),highQualityEnabled:Y(),toggleHighQuality:Vt,availableAudioStreams:x(),availableSubtitlesList:f(),closeSettingsMenu:Ye,currentAudioStream:S(),isMobile:d(),selectAudioLanguage:Ne,selectQuality:Xe,selectSubtitle:mi}}));var qi=e3();let no;var xo=h(qi);{var Nt=yt=>{var Ot=J4();let $i;Ot.__keydown=[Z4,Ye];var wo=h(Ot);{var Pn=Yt=>{var mt=X4();let li;var vi=h(mt),yi=h(vi,!0);g(vi);var sn=E(vi,2);sn.__click=Ke,g(mt),C((di,Ai)=>{li=Z(mt,1,"item header svelte-17or3al",null,li,di),ue(yi,Ai)},[()=>({mobile:d()}),()=>Te("submenu_settings")]),b(Yt,mt)};V(wo,Yt=>{d()&&Yt(Pn)})}var ro=E(wo,2);let ao;ai(ro,21,()=>r(Gt),Yt=>Yt.id,(Yt,mt)=>{var li=De(),vi=le(li);{var yi=di=>{qf(di,{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:()=>{$t(r(mt).children),D(We,de(r(mt).id))},get ref(){return ee[r(mt).id]},set ref(Ai){ee[r(mt).id]=Ai}})},sn=(di,Ai)=>{{var Uo=gi=>{Wf(gi,{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=(gi,An)=>{{var zo=so=>{Qf(so,{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(gi,so=>{r(mt).type==="SWITCH"&&so(zo)},An)}};V(di,gi=>{r(mt).type==="CLICK"?gi(Uo):gi(ln,!1)},Ai)}};V(vi,di=>{r(mt).type==="OPEN_SUB_MENU"?di(yi):di(sn,!1)})}b(Yt,li)}),g(ro),at(ro,Yt=>ae(Yt),()=>ae()),g(Ot),C((Yt,mt,li)=>{$i=Z(Ot,1,"settings-menu menu svelte-17or3al",null,$i,Yt),ao=Z(ro,1,"items",null,ao,mt),tt(ro,li)},[()=>({desktop:!d(),mobile:d(),hidden:!!Ze.current}),()=>({mobile:d()}),yo]),ht("mouseenter",Ot,$o),ht("mouseleave",Ot,Fo),b(yt,Ot)};V(xo,yt=>{n()&&yt(Nt)})}var po=E(xo,2);ai(po,17,()=>r(Jt),yt=>yt.id,(yt,Ot)=>{let $i=v(()=>r(Ot).minWidth??137);zf(yt,{get isMobile(){return d()},get playerControlsHeight(){return se()},get returnFromSubMenu(){return Ze.popSubMenu},get id(){return r(Ot).id},get title(){return r(Ot).title},closeSettingsMenu:Ye,openSubMenuList:$t,get items(){return r(Ot).items},get minWidth(){return r($i)},get refMenuItems(){return ee},get listRef(){return ge[r(Ot).id]},set listRef(wo){ge[r(Ot).id]=wo}})}),g(qi),C(yt=>no=Z(qi,1,"settings-menu-container svelte-17or3al",null,no,yt),[()=>({mobile:d(),hidden:!n()})]),b(t,qi),U(),o()}it(["keydown","click"]);var i3=t=>t;function zh(t,{delay:e=0,duration:i=400,easing:o=i3}={}){let n=+getComputedStyle(t).opacity;return{delay:e,duration:i,easing:o,css:a=>`opacity: ${a*n}`}}var o3=A('<button class="button svelte-1sbbskl"> </button>'),n3={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 am(t,e){z(t,n3);var i=o3();i.__click=function(...n){e.onClick?.apply(this,n)};var o=h(i,!0);g(i),C(()=>ue(o,e.label)),b(t,i)}it(["click"]);var r3=A('<div class="container svelte-1es7arp"><div class="notification svelte-1es7arp"><div><p class="description svelte-1es7arp"><!></p> <!></div> <!></div></div>'),a3={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),W(t,Z4);let[i,o]=De(),n=()=>y(je,"$settingsMenuVisible",i),a=()=>y(ze,"$settingsMenuOpenedByKeyboard",i),s=()=>y(nt,"$debugPanelVisible",i),d=()=>y(Me,"$isMobile",i),l=()=>y(It,"$playerSize",i),c=()=>y(Ie,"$hasMpegSources$",i),u=()=>y(We,"$mobileNotReportControlHidden$",i),_=()=>y(D,"$autoQualityLimitingAvailable$",i),f=()=>y(R,"$availableSubtitlesList$",i),$=()=>y(it,"$isLiveWithPlaybackSpeed",i),x=()=>y(se,"$availableAudioStreams$",i),w=()=>y(Be,"$availablePlaybackRates$",i),S=()=>y(Ae,"$currentAudioStream$",i),I=()=>y(ke,"$currentPlaybackRate$",i),M=()=>y(vt,"$trafficSavingEnabled",i),P=()=>y(He,"$currentQuality$",i),A=()=>y(Re,"$isAutoQualityEnabled$",i),T=()=>y(pe,"$currentSubtitle$",i),B=()=>y(Mt,"$additionalSettingsMenuItems$",i),Q=()=>y(_e,"$isAutoQualityAvailable$",i),G=()=>y(j,"$availableQualities$",i),ee=()=>y(st,"$highQualityEnabled",i),te=v(e,"ref",15,void 0),ie=v(e,"playerControlsHeight",3,0),oe=de({}),ge=de({}),X=be(),Ve=Rt(),Ae=X.state.audioStream$,se=X.state.availableAudioStreams$,He=X.state.currentQuality$,j=X.state.availableQualities$,D=X.state.autoQualityLimitingAvailable$,Re=X.state.isAutoQualityEnabled$,_e=X.state.isAutoQualityAvailable$,ke=X.state.currentPlaybackRate$,Be=X.state.availablePlaybackRates$,pe=X.state.currentSubtitle$,R=X.state.availableSubtitlesList$,ye=X.state.canDownload,Ie=X.state.hasMpegSources$,je=X.ui.settingsMenu.visible$,ze=X.ui.settingsMenu.openedByBtnKeyboard$,Te=X.ui.settingsMenu.ref$,Me=X.ui.isMobile,We=X.ui.mobileNotReportControlHidden$,it=X.state.canChangePlaybackSpeed$,vt=X.state.trafficSavingEnabled$,st=X.state.highQualityEnabled$,It=X.ui.playerSize,nt=X.ui.debugPanelVisible,gt=X.state.isInteractiveTime$,Mt=X.ui.additionalSettingsMenuItems$,Ce=X.ui.t,Oe=X.actions.internal.downloadVideo,Ze=X.actions.internal.closeSettingsMenu,q=X.actions.internal.openSettingsSubMenu,ae=X.actions.internal.closeSettingsSubMenu,ne=Y(!1),Fe=Y(void 0),Ge=Eh();Ue(()=>{!n()&&Ge.current&&(ae(ge[Ge.current]),Ge.popAllSubMenus())}),Ue(()=>{n()||N(Fe,void 0)}),Ue(()=>{!Ge.current&&r(Fe)&&Qg(oe,r(Fe))}),Ue(()=>{te()&&Te.set(te())});async function wt($t){Ge.pushSubMenu($t),await Zi(),q($t,ge[$t])}function Ke($t){$t?.stopPropagation(),a()||e.returnFocus?.(),Ze(),N(ne,!1)}function Je($t,Ot){X.actions.internal.setQuality($t,{appliesTo:Ot}),Ke()}function Ee($t){X.actions.internal.setAudioStream($t),Ke()}function ct($t,Ot){X.actions.internal.setTrafficSavingEnabled($t,Ot),Ve.features.qualityDetailsSubMenuEnabled&&Ke()}function Bt($t,Ot){X.actions.internal.setHighQualityEnabled($t,Ot),Ke()}function Gt($t){X.actions.internal.setPlaybackRate($t),Ke()}function Xt($t){X.actions.internal.setSubtitle($t),Ke()}function ri(){Oe()}function Wi(){K4(e.supportLink)&&window.open(e.supportLink,"_blank"),X.actions.internal.reportProblem(),X.actions.internal.pause()}function Oo(){ks(X.actions.internal.getDebugTextData())}let on=()=>{let $t=X.actions.internal.getTraceTextData(),Ot=new Blob([...$t],{type:"application/json"}),po=window.URL.createObjectURL(Ot);Va(po,"vk_player_trace_info","json")};function to(){nt.set(!s())}function nn(){N(ne,!0)}function Ho(){N(ne,!1)}function Fo(){return d()?`max-height: ${Math.round(l().height*.6)}px`:`max-height: ${l().height-32-ie()}px; overflow: auto;`}let co=m(()=>ye&&c()&&!u()),z=m(()=>Ve.features.trafficSaving&&!u()&&_()&&!Ve.features.qualityDetailsSubMenuEnabled),zt=m(()=>f().length>0&&!u()),hi=m(()=>!!$()&&!u()),qi=m(()=>Ve.features.audioLanguages&&x().length>=2&&!u()),Jt=m(()=>!u());At(()=>gt.subscribe($t=>{$t&&!d()&&!r(ne)&&!a()&&Ke()}));let ei=m(()=>{let $t=[r(Jt)&&"QUALITY_SETTINGS",r(qi)&&"AUDIO_LANGUAGES",r(hi)&&"PLAYBACK_RATE",r(zt)&&"SUBTITLES",r(z)&&"TRAFFIC_SAVING_SWITCH",r(co)&&"DOWNLOAD",Ve.showSupport&&"SHOW_SUPPORT","COPY_DATA",Ve.features.saveTraceInfoToFile&&"SAVE_TRACE_INFO","DEBUG_INFO"].filter(Ot=>!!Ot);return Bh({items:$t,context:{qualityDetailsSubMenuEnabled:Ve.features.qualityDetailsSubMenuEnabled,availablePlaybackRates:w(),currentAudioStream:S(),availableAudioStreams:x(),currentPlaybackRate:I(),selectPlaybackRate:Gt,trafficSavingEnabled:M(),toggleTrafficSaving:ct,currentQuality:P()||Oh.INVARIANT,isAutoQualityEnabled:A()||!1,currentSubtitle:T(),isMobile:d(),onDownloadClick:ri,debugPanelVisible:s(),onCopyDataClick:Oo,onReportProblemClick:Wi,onSaveTraceDataClick:on,toggleShowDebugInfo:to},additionalSettingsMenuItems:B()})}),jn=m(()=>Nh({subMenuId:Ge.current,context:{availablePlaybackRates:w(),selectPlaybackRate:Gt,trafficSavingEnabled:M(),toggleTrafficSaving:ct,currentQuality:P()||Oh.INVARIANT,isAutoQualityEnabled:A()||!1,isAutoQualityAvailable:Q()||!1,availableQualities:G(),highQualityEnabled:ee(),toggleHighQuality:Bt,availableAudioStreams:x(),availableSubtitlesList:f(),closeSettingsMenu:Ze,currentAudioStream:S(),isMobile:d(),selectAudioLanguage:Ee,selectQuality:Je,selectSubtitle:Xt}}));var _o=j4();let rn;var bo=h(_o);{var Vt=$t=>{var Ot=Y4();let po;Ot.__keydown=[Q4,Ze];var Ci=h(Ot);{var Tn=Yt=>{var mt=G4();let ai;var mi=h(mt),_i=h(mi,!0);g(mi);var an=E(mi,2);an.__click=Ke,g(mt),C((ui,Pi)=>{ai=Z(mt,1,"item header svelte-17or3al",null,ai,ui),ce(_i,Pi)},[()=>({mobile:d()}),()=>Ce("submenu_settings")]),b(Yt,mt)};V(Ci,Yt=>{d()&&Yt(Tn)})}var io=E(Ci,2);let oo;di(io,21,()=>r(ei),Yt=>Yt.id,(Yt,mt)=>{var ai=Ne(),mi=le(ai);{var _i=ui=>{Uf(ui,{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:()=>{wt(r(mt).children),N(Fe,de(r(mt).id))},get ref(){return oe[r(mt).id]},set ref(Pi){oe[r(mt).id]=Pi}})},an=(ui,Pi)=>{{var Uo=vi=>{zf(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})},sn=(vi,In)=>{{var zo=no=>{qf(no,{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,no=>{r(mt).type==="SWITCH"&&no(zo)},In)}};V(ui,vi=>{r(mt).type==="CLICK"?vi(Uo):vi(sn,!1)},Pi)}};V(mi,ui=>{r(mt).type==="OPEN_SUB_MENU"?ui(_i):ui(an,!1)})}b(Yt,ai)}),g(io),at(io,Yt=>te(Yt),()=>te()),g(Ot),C((Yt,mt,ai)=>{po=Z(Ot,1,"settings-menu menu svelte-17or3al",null,po,Yt),oo=Z(io,1,"items",null,oo,mt),tt(io,ai)},[()=>({desktop:!d(),mobile:d(),hidden:!!Ge.current}),()=>({mobile:d()}),Fo]),Ct("mouseenter",Ot,nn),Ct("mouseleave",Ot,Ho),b($t,Ot)};V(bo,$t=>{n()&&$t(Vt)})}var uo=E(bo,2);di(uo,17,()=>r(jn),$t=>$t.id,($t,Ot)=>{let po=m(()=>r(Ot).minWidth??137);Ff($t,{get isMobile(){return d()},get playerControlsHeight(){return ie()},get returnFromSubMenu(){return Ge.popSubMenu},get id(){return r(Ot).id},get title(){return r(Ot).title},closeSettingsMenu:Ze,openSubMenuList:wt,get items(){return r(Ot).items},get minWidth(){return r(po)},get refMenuItems(){return oe},get listRef(){return ge[r(Ot).id]},set listRef(Ci){ge[r(Ot).id]=Ci}})}),g(_o),C($t=>rn=Z(_o,1,"settings-menu-container svelte-17or3al",null,rn,$t),[()=>({mobile:d(),hidden:!n()})]),b(t,_o),U(),o()}ot(["keydown","click"]);var X4=t=>t;function Hh(t,{delay:e=0,duration:i=400,easing:o=X4}={}){let n=+getComputedStyle(t).opacity;return{delay:e,duration:i,easing:o,css:a=>`opacity: ${a*n}`}}var J4=L('<button class="button svelte-1sbbskl"> </button>'),e3={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 nm(t,e){W(t,e3);var i=J4();i.__click=function(...n){e.onClick?.apply(this,n)};var o=h(i,!0);g(i),C(()=>ce(o,e.label)),b(t,i)}ot(["click"]);var t3=L('<div class="container svelte-1es7arp"><div class="notification svelte-1es7arp"><div><p class="description svelte-1es7arp"><!></p> <!></div> <!></div></div>'),i3={hash:"svelte-1es7arp",code:`.container.svelte-1es7arp {position:absolute;left:0;right:0;top:20px;display:flex;justify-content:center;
309
307
  /**
310
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.
311
- */pointer-events:none;}.notification.svelte-1es7arp {padding:9px 14px 10px 12px;background:var(--notification-bg);display:inline-flex;border-radius:var(--notification-radius);gap:10px;pointer-events:auto;}.description.svelte-1es7arp {line-height:16px;font-size:13px;margin:0;white-space:pre;}`};function dd(t,e){F(e,!0),z(t,a3);let i=340,{features:{forceAutoQualityWhenSevereStallHappens:o}}=Mt(),{ui:{t:n}}=_e(),a=n(o?"slow_video_notification_force_description":"slow_video_notification_suggest_description");var s=r3(),d=h(s),l=h(d),c=h(l),u=h(c);sd(u,{message:a}),g(c);var _=E(c,2);{var f=x=>{let w=v(()=>n("slow_video_notification_button"));am(x,{get label(){return r(w)},get onClick(){return e.onSelectAutoQuality}})};V(_,x=>{o||x(f)})}g(l);var $=E(l,2);za($,{get onClick(){return e.onClose}}),g(d),g(s),Qu(3,d,()=>zh,()=>({duration:i})),b(t,s),U()}var cd="annotation",Hc=class{constructor(){this.slots=new Map}init(e){this.shadowRootContainer=e}add(e,{overlay:i,id:o}){e.setAttribute("slot",cd),this.setupSlotStyles(e,i),this.shadowRootContainer.append(e),this.slots.set(o,e)}setupSlotStyles(e,i){switch(e.style.position="absolute",i){case"over_video":e.style.zIndex="calc(var(--video-container-z-index) + 1)";break;case"over_controls":e.style.zIndex="calc(var(--controls-container-z-index) + 1)";break;default:e.style.zIndex="0"}}remove(e){let i=this.slots.get(e);i&&(i.remove(),this.slots.delete(e))}destroy(){for(let e in this.slots.keys())this.remove(e);this.slots.clear()}};var s3=A('<div class="container svelte-f47ws8"><div class="playback_state_icon svelte-f47ws8"><!></div></div>'),l3={hash:"svelte-f47ws8",code:`.container.svelte-f47ws8 {position:absolute;display:flex;width:100%;height:100%;align-items:center;justify-content:center;pointer-events:none;}.playback_state_icon.svelte-f47ws8 {display:flex;align-items:center;justify-content:center;width:64px;height:64px;border-radius:100%;background-color:#00000073;will-change:opacity, scale;
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),W(t,i3);let i=340,{features:{forceAutoQualityWhenSevereStallHappens:o}}=Rt(),{ui:{t:n}}=be(),a=n(o?"slow_video_notification_force_description":"slow_video_notification_suggest_description");var s=t3(),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"));nm(x,{get label(){return r(w)},get onClick(){return e.onSelectAutoQuality}})};V(_,x=>{o||x(f)})}g(l);var $=E(l,2);Fa($,{get onClick(){return e.onClose}}),g(d),g(s),Wu(3,d,()=>Hh,()=>({duration:i})),b(t,s),U()}var sd="annotation",Nc=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="calc(var(--video-container-z-index) + 1)";break;case"over_controls":e.style.zIndex="calc(var(--controls-container-z-index) + 1)";break;default:e.style.zIndex="0"}}remove(e){let i=this.slots.get(e);i&&(i.remove(),this.slots.delete(e))}destroy(){for(let e in this.slots.keys())this.remove(e);this.slots.clear()}};var o3=L('<div class="container svelte-f47ws8"><div class="playback_state_icon svelte-f47ws8"><!></div></div>'),n3={hash:"svelte-f47ws8",code:`.container.svelte-f47ws8 {position:absolute;display:flex;width:100%;height:100%;align-items:center;justify-content:center;pointer-events:none;}.playback_state_icon.svelte-f47ws8 {display:flex;align-items:center;justify-content:center;width:64px;height:64px;border-radius:100%;background-color:#00000073;will-change:opacity, scale;
312
310
 
313
311
  animation-name: svelte-f47ws8-videoPlayerStatusIconPopup;animation-fill-mode:forwards;}
314
312
 
@@ -339,8 +337,9 @@ Try switching the\xA0quality to\xA0Auto.`},Vg=x0;var Yr=new Map;Yr.set(Ng.EN,Vg)
339
337
  opacity: 0;
340
338
  scale: 0;
341
339
  }
342
- }`};function sm(t,e){F(e,!0),z(t,l3);let[i,o]=Me(),n=()=>y(s,"$isPlaying$",i),a=()=>y(d,"$aboutToGoNextVideo",i),{state:{isPlaying$:s},ui:{aboutToGoNextVideo:d},actions:l}=_e(),{features:{playbackStatusShow:c,playbackStatusAnimationDuration:u,playbackStatusNextVideoAnimationDuration:_}}=Mt(),f=0,$=X(null),x=X(!1);He(()=>{D($,de(n()?gr:ea))}),He(()=>{D($,de(a()?ga:null))}),He(()=>{if(c)return f=window.setTimeout(()=>{f=0,a()&&r($)===ga&&(a()==="next"?l.internal.nextVideoClick(!1):l.internal.prevVideoClick(!1)),D($,null)},r($)!==ga?u:_),()=>{f&&(window.clearTimeout(f),f=0)}}),He(()=>{n()&&!r(x)&&(D(x,!0),D($,null))});var w=De(),S=le(w);{var I=P=>{var M=De(),L=le(M);La(L,()=>r($),T=>{var B=s3(),K=h(B),Q=h(K);let Y=v(()=>a()==="prev");si(Q,()=>r($),(ae,se)=>{se(ae,{width:"40",height:"40",viewBox:"0 0 24 24",get isPrev(){return r(Y)}})}),g(K),g(B),C(()=>tt(K,`animation-duration: ${r($)!==ga?u:_}ms`)),b(T,B)}),b(P,M)};V(S,P=>{r($)&&c&&P(I)})}b(t,w),U(),o()}var d3=A('<div><div data-testid="video-container"></div></div>'),c3={hash:"svelte-1czns9r",code:`.video-wrapper.svelte-1czns9r,
343
- .video-container.svelte-1czns9r {position:absolute;width:100%;height:100%;left:0;top:0;}.video-wrapper.svelte-1czns9r {z-index:var(--video-container-z-index);background:var(--black);}.video-container.svelte-1czns9r {z-index:var(--video-container-z-index);transition:var(--rotate-transition-duration) ease all;}.video-container.fast-rotate.svelte-1czns9r {transition:none;}.nocursor.svelte-1czns9r {cursor:none;}`};function ud(t,e){F(e,!0),z(t,c3);let[i,o]=Me(),n=()=>y(u,"$rotateAlpha",i),a=()=>y(_,"$playerSize",i),s=()=>y(c,"$playerPhase",i),d=()=>y(f,"$isPlaying$",i),l=m(e,"videoContainer",15),{playerPhase:c,ui:{rotateAlpha:u,playerSize:_},state:{isPlaying$:f}}=_e(),{isSmoothVideoRotate:$}=Mt(),x=v(()=>l()&&n()%180?a().height/a().width:1);var w=d3();let S;w.__contextmenu=function(...P){e.onContextMenu?.apply(this,P)},w.__mousedown=function(...P){e.onMouseDown?.apply(this,P)},w.__mouseup=function(...P){e.onMouseUp?.apply(this,P)},w.__click=function(...P){e.onClick?.apply(this,P)},w.__dblclick=function(...P){e.onDblclick?.apply(this,P)};var I=h(w);Z(I,1,"video-container svelte-1czns9r",null,{},{"fast-rotate":!$}),at(I,P=>l(P),()=>l()),g(w),C(P=>{S=Z(w,1,"video-wrapper svelte-1czns9r",null,S,P),tt(I,`transform: rotate(${n()}deg) scale(${r(x)})`),Re(I,"data-is-playing",d())},[()=>({hidden:s()!=="video",nocursor:e.hideCursor})]),b(t,w),U(),o()}it(["contextmenu","mousedown","mouseup","click","dblclick"]);var u3=(t,e,i,o,n,a)=>{if(t.stopPropagation(),e()||o()){a();return}},p3=A("<div><!></div>"),f3=A('<div class="spherical-video-icon svelte-tvjmg6"><!></div>'),m3=A("<div><!></div>"),v3=A("<div><!></div>"),g3=A('<div class="settings-menu svelte-tvjmg6"><!></div>'),h3=A("<!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!>",1),_3=A("<!> <!> <!>",1),b3=A('<div class="blocked svelte-tvjmg6"></div>'),$3=A('<div class="player-wrapper svelte-tvjmg6"><!> <div class="overlay-container"></div></div> <!>',1),y3={hash:"svelte-tvjmg6",code:".player-wrapper.svelte-tvjmg6 {position:absolute;width:100%;height:100%;}.blocked.svelte-tvjmg6 {position:absolute;width:100%;height:100%;z-index:var(--overlay-container-z-index);}.timiline-wrapper.svelte-tvjmg6 {pointer-events:none;opacity:0;position:absolute;z-index:var(--controls-container-z-index);width:100%;bottom:0;left:0;transition:opacity var(--controls-transition-duration) var(--controls-transition-fn);}.timiline-wrapper.visible.svelte-tvjmg6 {opacity:1;}.player-wrapper.svelte-tvjmg6 .player-media {position:absolute;left:0;top:0;width:100%;height:100%;background:var(--black);transition:transform 0.2s ease-in-out;}.player-wrapper.svelte-tvjmg6 .timeline {padding:0;position:absolute;}.spherical-video-icon.svelte-tvjmg6 {display:inline-block;position:absolute;top:calc(50% - 23px);left:calc(50% - 38px);}.ads-container.svelte-tvjmg6 {position:absolute;width:100%;height:100%;left:0;top:0;}.ads-container.svelte-tvjmg6 {z-index:var(--ads-container-z-index);background:var(--black);}.settings-menu.svelte-tvjmg6 {position:absolute;z-index:var(--settings-menu-z-index);bottom:57px;right:18px;left:0;transition:opacity 0.2s, visibility 0.2s;}"};function lm(t,e){F(e,!0),z(t,y3);let[i,o]=Me(),n=()=>y(So,"$notificationsToShow$",i),a=()=>y(Ui,"$playerPhase",i),s=()=>y(Gt,"$isLoaderVisible",i),d=()=>y(oo,"$adPlaybackState",i),l=()=>y(yt,"$crashed",i),c=()=>y(yi,"$isInteractiveTime$",i),u=()=>y(uo,"$settingsMenuVisible",i),_=()=>y(sn,"$isInteractiveExpectation$",i),f=()=>y(yo,"$controlsVisible",i),$=()=>y(Ai,"$touched",i),x=()=>y(un,"$graphIsOpened$",i),w=()=>y($o,"$isFullscreen",i),S=()=>y(jn,"$autoplayNextEnabled$",i),I=()=>y(xo,"$postrollPassed",i),P=()=>y(Jt,"$isEnded$",i),M=()=>y(mn,"$cursorInside",i),L=()=>y(cn,"$fakeIsPlaying$",i),T=()=>y(Nn,"$bottomNoSmooth",i),B=()=>y(An,"$interactiveTimeIndicator",i),K=()=>y(ao,"$playerSize",i),Q=()=>y(Yt,"$is3DVideo",i),Y=()=>y(Xt,"$contextMenuVisible$",i),ae=()=>y(ri,"$playbackState$",i),se=()=>y(Uo,"$hotKeyMapData",i),ee=()=>y(Mi,"$controlsTimeoutActive",i),ge=()=>y(G,"$scrubbingInProgress",i),J=()=>y(Kt,"$volumeChangingInProgress",i),Pe=()=>y(qi,"$chromecastConnected$",i),Ae=()=>y(Wt,"$settingsMenuOpenedByKeyboard",i),oe=()=>y(tr,"$contextMenuOpenedByKeyboard$",i),Fe=()=>y(Cr,"$contextMenuButtonRef$",i),j=()=>y(yn,"$contextMenuOpenedByHotKey$",i),N=()=>y(Un,"$contextMenuLastActiveElem$",i),Le=()=>y(Fo,"$isFullscreenOpenedByKeyboard",i),be=()=>y(mi,"$language$",i),ke=()=>y(mt,"$icon3DVideoVisible",i),Be=()=>y(no,"$chromecastDeviceName$",i),ce=()=>y(wo,"$currentSubtitle$",i),R=()=>y(Pn,"$currentSubtitleCaptions$",i),$e=()=>y(Ho,"$position$",i),Ie=()=>y(ro,"$realDuration$",i),Ge=()=>y(po,"$isPlaying$",i),ze=()=>y(an,"$duration$",i),ye=()=>y(so,"$contextMenuPosition$",i),Ve=()=>y(ln,"$showHotKeyMap",i),qe=()=>y(zi,"$debugPanelVisible",i),ot=()=>y(Mn,"$userActionsDisabled$",i),ut=m(e,"videoContainer",15),pt=m(e,"adsSlotId",3,void 0),Tt=m(e,"adsParams",3,void 0),nt=m(e,"adsPreviewParam",3,void 0),vt=m(e,"adsAutoplayParam",3,void 0),Lt=m(e,"duration",3,void 0),Te=m(e,"logoTargetUrl",3,""),Ue=m(e,"showNextPrevButtons",3,!1),Ye=m(e,"nextButtonActive",3,!1),W=m(e,"prevButtonActive",3,!1),ne=m(e,"endScreenVideoTitle",3,void 0),ie=m(e,"endScreenVideoThumb",3,void 0),We=m(e,"isOneVideoPlaylist",3,!1),Ze=m(e,"shadowRootContainer",3,void 0),$t=m(e,"outerContainerRef",3,void 0),Ke=m(e,"playerStarted",3,!1),Xe=m(e,"fullScreenTarget",3,void 0),Ne=m(e,"showMiniTimer",3,!1),st=m(e,"showEndScreen",3,!0),Vt=m(e,"keyboardControls",15),Zt=e.store.getLogger().createComponentLog("Root component"),mi=e.store.interfaceLanguage$,ri=e.store.state.playbackState$,oo=e.store.ads.playbackState,Ho=e.store.state.positionWithScrubbing$,an=e.store.state.duration$,Ui=e.store.playerPhase,$o=e.store.ui.isFullscreen,Fo=e.store.ui.isFullscreenOpenedByKeyboard,yo=e.store.ui.controlsVisible,uo=e.store.ui.settingsMenu.visible$,Wt=e.store.ui.settingsMenu.openedByBtnKeyboard$,G=e.store.ui.scrubbingInProgress,Kt=e.store.ui.volumeChangingInProgress,Xt=e.store.ui.contextMenu.visible$,zi=e.store.ui.debugPanelVisible,Gt=e.store.state.isLoaderVisible,Jt=e.store.state.isEnded$,qi=e.store.state.chromecastConnected$,no=e.store.state.chromecastDeviceName$,xo=e.store.ads.postrollPassed,Nt=e.store.state.isLive$,po=e.store.state.isPlaying$,yt=e.store.state.crashed$,Ot=e.store.webApi.annotationsApi,$i=e.store.webApi.pictureInPictureApi,wo=e.store.state.currentSubtitle$,Pn=e.store.state.currentSubtitleCaptions$,ro=e.store.state.duration$,ao=e.store.ui.playerSize,Yt=e.store.ui.is3DVideo,mt=e.store.ui.icon3DVideoVisible,li=e.store.ui.rotateAlpha,vi=e.store.state.isInteractive,yi=e.store.state.isInteractiveTime$,sn=e.store.state.isInteractiveExpectation$,di=e.store.state.hasInteractiveBranches,Ai=e.store.ui.touched,Uo=e.store.ui.modals.hotKeyMap.data,ln=e.store.ui.modals.hotKeyMap.show,gi=e.store.ui.overlayContainer$,An=e.store.ui.controls.interactiveTimeIndicator,zo=e.store.state.showInteractiveTimeIndicator,so=e.store.ui.contextMenu.position$,dn=e.store.actions.internal.setQuality,_r=e.store.actions.internal.closeSettingsMenu,jn=e.store.ui.autoplayNextEnabled$,Mn=e.store.ui.userActionsDisabled,{fakeIsPlaying$:cn,notifications$:qo,graphIsOpened$:un}=Fi(),Wi=X(void 0),et=X(void 0),Wo=X(void 0),Ln=X(void 0),Vn,pn,Ko;Uo.set(zg());let{closeNotification:Qo,notificationsToShow$:So}=qo,ki=v(()=>!!n().slow_video),Ti=()=>Qo("slow_video"),Rn=v(()=>(a()==="video"&&s()||a()==="ads"&&d()==="inactive")&&!l()),fn=X(void 0),Nn=re(!1),Zn,Mi=re(!1),Li=re(),mn=re(!1),vn=X(!1),Ki=X(!1),Vi=X(!1),gn=X(!(e.autoplay&&!e.uiConfig.controls.showOnStartupAtAutoplay)),fo=v(()=>c()&&!u()&&!(r(vn)||r(Ki))&&!(r(Vi)&&!_())),br=!0,Dn=v(()=>e.uiConfig.features.thumbTimer&&Ne()&&a()==="video"&&!f()&&!l()&&!vi&&(e.uiConfig.hideThumbTimerAfterTouch&&!$()||!e.uiConfig.hideThumbTimerAfterTouch)),Xn=v(()=>a()==="video"&&!x()&&w()),hn=X(!1),_n=v(()=>(st()||e.showAutoplayNext&&S())&&!!ne()&&!!ie()&&(e.showAds&&I()||!e.showAds)&&P()&&!l()&&!r(hn)),$r=v(()=>M()&&!(f()||r(_n))&&!c()),Bn=X(!1),On=v(()=>L()!==null),{toggle:Hn}=cn,Co=!1,qt=null;$i?.setContext(cl());let yr=()=>{e.autoplay&&!vi&&e.uiConfig.controls.showOnStartupAtAutoplay&&Pt(e.uiConfig.controls.hideTimeout)};e.store.setUiCallbacks({onStarted:yr});let lt=()=>{window.clearTimeout(Vn),Mi.set(!1)},Rt=()=>{window.clearTimeout(pn),Li.set(null)},Pt=fe=>{lt(),Mi.set(!0),Vn=window.setTimeout(()=>Mi.set(!1),fe);let Ct=fe-100;Zn=window.setTimeout(()=>{T()&&Nn.set(!1)},Ct>0?Ct:fe)},Ii=(fe,Ct)=>{Rt(),Li.set(Ct),pn=window.setTimeout(()=>Li.set(null),fe)},Qi=Yt.subscribe(fe=>{mt.set(fe),fe&&(window.clearTimeout(Ko),Ko=window.setTimeout(()=>mt.set(!1),e.uiConfig.controls.hide360IconTimeout))}),Ei=async()=>{let fe=da();if(fe){let Ct=Sl(),ei=mo();fe=Ct===ei||Ct===Ze()}if(fe){Pt(e.uiConfig.controls.hideTimeoutFullscreen);try{await $i?.remove()}catch(Ct){Zt({message:String(Ct)})}}$o.set(fe),e.store.getAdmanWrapper().setFullscreen(fe),w()?e.store.callbacks?.onFullscreenEnter?.():e.store.callbacks?.onFullscreenExit?.()},Gi=fe=>{let{width:Ct,height:ei}=fe.target;ao.set({width:Ct,height:ei})},ko=()=>{let{width:fe,height:Ct}=r(Wi).getBoundingClientRect();ao.set({width:fe,height:Ct})};At(()=>(mc(Ei),e.uiConfig.features.annotationsInside&&Ot?.init(r(Wi)),Oa($i)&&($i?.assignPlayerContainer(r(Wi)),$i?.registryExternalEventHandlers({resize:Gi,leavepictureinpicture:ko})),e.interactiveContainer&&ut().parentElement?.insertBefore(e.interactiveContainer,ut().nextSibling),()=>{window.clearTimeout(Vn),window.clearTimeout(Zn),window.clearTimeout(pn),window.clearTimeout(Ko),Qi(),$i?.dispose().catch(Ct=>{Zt({message:String(Ct)})}),vc(Ei)}));let mo=()=>{let fe=e.uiConfig.features.fullscreenInternalTargetPlayerContainer||!$t()?r(Wi):$t(),Ct=fe.getRootNode(),ei=Ct instanceof ShadowRoot?Ct.host:Ct,ci=Xe()instanceof HTMLElement&&Xe().contains(ei);return e.uiConfig.allowChangingFullscreenTarget&&Xe()&&ci?Xe():fe},hi=async()=>{da()?(await fc(document),Zt({message:"exit fullscreen"})):(Zt({message:"request fullscreen"}),await pc(mo()))},je=()=>{_r(),Xt.set(!1)},xt=fe=>{x()||(fe.preventDefault(),Xt.set(!0),so.set({left:fe.clientX,top:fe.clientY}))};function Yi(){mn.set(!0),vi||Pt(e.uiConfig.controls.hideTimeoutCursor)}function xi(){vi||(Nn.set(!0),Pt(e.uiConfig.controls.hideTimeoutCursor))}function Jn(){mn.set(!1),D(Ki,!1),D(vn,!1),Co=!1,e.store.actions.internal.releaseCamera(),Pt(e.uiConfig.controls.hideTimeout)}function bn(fe){return fe?fe.offsetTop+bn(fe.offsetParent):0}function Pi(fe){return fe?fe.offsetLeft+Pi(fe.offsetParent):0}function Go(fe){if(B()&&zo){let Ct=fe.currentTarget,ei=bn(Ct),ci=Pi(Ct),ui=fe.pageX-ci,or=fe.pageY-ei,{left:Ee,bottom:Dt,right:pi}=B(),_i=pi-Ee;return ui>=Ee-_i&&or<=Dt+_i}}function $n(fe){if(r(Wi)){let Ct=bn(fe.currentTarget),ei=K().height,ci=fe.pageY-Ct;if(Go(fe)){D(Ki,!1);return}ci<40?D(Ki,!0):ci>ei-40?D(vn,!0):(D(Ki,!1),u()||D(vn,!1))}}function Br(fe){$n(fe),r(fo)||Pt(e.uiConfig.controls.hideTimeoutCursor),Q()&&Co&&qt&&e.store.actions.internal.moveCameraFocusPX(qt.clientX-fe.clientX,qt.clientY-fe.clientY,fe.timeStamp-qt.timeStamp),qt=fe}let xr=fe=>{fe.preventDefault(),fe.button===0&&(Co=!0,e.store.actions.internal.holdCamera()),Pt(e.uiConfig.controls.hideTimeoutCursor)},To=fe=>{fe.preventDefault(),fe.button===0&&(qt=fe,Co=!1,e.store.actions.internal.releaseCamera()),Pt(e.uiConfig.controls.hideTimeoutCursor)},Fn=fe=>{fe.preventDefault(),br&&(Zt({message:"double click on video"}),hi(),Pt(e.uiConfig.controls.hideTimeoutCursor))},Io=fe=>{if(fe.preventDefault(),Y()||u()){je();return}if(!(P()&&!di)){if(r(On))return Hn();if(Vt()?.focus(),!Ke()){e.firstStart(),Pt(e.uiConfig.controls.hideTimeoutCursor);return}(!e.uiConfig.preventPauseOnVideoClick||ae()!==Wh.PLAYING)&&e.store.actions.internal.togglePlay(),Pt(e.uiConfig.controls.hideTimeoutCursor)}},wr=fe=>{je(),Ai.set(!0),Pt(e.uiConfig.controls.hideTimeout),fe&&Ii(e.uiConfig.controls.hideHotKeyHelpers,fe)},er=()=>{je(),e.store.callbacks?.onOpenHotKeyMap?e.store.callbacks?.onOpenHotKeyMap(se()):ln.update(fe=>!fe)},Sr=()=>{Ai.set(!0)},tr=e.store.ui.contextMenu.openedByBtnKeyboard$,Cr=e.store.ui.contextMenu.btnRef$,Yo=X(void 0),yn=e.store.ui.contextMenu.openedByHotKey$,Un=e.store.ui.contextMenu.lastActiveElem$;He(()=>{gi.set(r(fn))}),He(()=>{D(Vi,de(r(gn)&&ae()!==Wh.PLAYING)),r(gn)||ft(()=>D(gn,!0))}),He(()=>{if(e.playerView==="compact"){yo.set(ee());return}yo.set((r(Vi)||P()||u()||ge()||J()||Pe()||ee())&&!r(fo)&&(a()==="video"||a()==="ads")&&!l())}),He(()=>{!ge()&&r(Bn)&&!c()&&Pt(e.uiConfig.controls.hideTimeoutCursor),ft(()=>D(Bn,de(ge())))}),He(()=>{r(Ln),u(),Ae(),ft(()=>As(r(Ln),u(),Ae()))}),He(()=>{r(Yo),Y(),oe(),ft(()=>As(r(Yo),Y(),oe()))}),He(()=>{let fe=Fe();fe&&(Y(),ft(()=>Ps(fe,Y(),tr)))}),He(()=>{r(Yo),Y(),j(),ft(()=>As(r(Yo),Y(),j()))}),He(()=>{let fe=N();fe&&(Y(),ft(()=>Yg(fe,Y(),yn)))}),He(()=>{!Le()&&w()&&(ft(()=>Fo.set(!1)),Vt()?.focus())}),He(()=>{x()&&je()});let kr=H("video360"),Je=e.playerView==="compact";console.log(Je);var It=$3();ht("blur",Ia,je);var Qt=le(It);Qt.__mousemove=Br;var ji=h(Qt);let Eo=v(()=>a()==="ads"),zn=v(()=>r(On)?Hn:void 0);at(Tp(ji,{toggleFullscreen:hi,hideContextMenu:je,showHotKeyHelpers:wr,showKeyMap:er,get isAds(){return r(Eo)},get fakePlayButtonHandler(){return r(zn)},get nextButtonActive(){return Ye()},get prevButtonActive(){return W()},children:(fe,Ct)=>{var ei=_3(),ci=le(ei);ud(ci,{get hideCursor(){return r($r)},onClick:Io,onDblclick:Fn,onContextMenu:xt,onMouseDown:xr,onMouseUp:To,get videoContainer(){return ut()},set videoContainer(Ee){ut(Ee)}});var ui=E(ci,2);vl(ui,()=>"slot",!1,(Ee,Dt)=>{xe(Ee,null,{name:cd})});var or=E(ui,2);La(or,be,Ee=>{var Dt=h3(),pi=le(Dt);let _i=v(()=>a()!=="thumb"||l()||vi&&e.autoplay);Ja(pi,{get hidden(){return r(_i)},get thumbUrl(){return e.thumbUrl},get startVideo(){return e.firstStart},iconVisible:!Je});var vo=E(pi,2);sm(vo,{});var nr=E(vo,2);{var Zo=Oe=>{let Ht=v(()=>e.live?.startTime);rd(Oe,{get thumbUrl(){return e.thumbUrl},get startTime(){return r(Ht)}})};V(nr,Oe=>{a()==="LiveWaitingStart"&&Oe(Zo)})}var rr=E(nr,2);{var zs=Oe=>{es(Oe,{kind:"recover",get thumbUrl(){return e.thumbUrl}})};V(rr,Oe=>{a()==="LiveWaitingRecover"&&Oe(zs)})}var is=E(rr,2);{var qs=Oe=>{es(Oe,{kind:"record",get thumbUrl(){return e.thumbUrl}})};V(is,Oe=>{a()==="LiveWaitingRecord"&&Oe(qs)})}var _a=E(is,2);{var ar=Oe=>{var Ht=p3();let Po;var dt=h(Ht);Cl(dt,{get adsSlotId(){return pt()},get adsParams(){return Tt()},get adsPreviewParam(){return nt()},get adsAutoplayParam(){return vt()},get duration(){return Lt()}}),g(Ht),C(p=>Po=Z(Ht,1,"ads-container svelte-tvjmg6",null,Po,p),[()=>({hidden:a()!=="ads"})]),b(Oe,Ht)};V(_a,Oe=>{e.showAds&&Ke()&&!Je&&Oe(ar)})}var os=E(_a,2);{var wt=Oe=>{let Ht=v(()=>!st()&&e.showAutoplayNext&&S());Sp(Oe,{get title(){return ne()},get thumb(){return ie()},get isHide(){return r(Ht)},clickCloseIcon:()=>D(hn,!0)})};V(os,Oe=>{r(_n)&&ne()&&ie()&&!Je&&Oe(wt)})}var _t=E(os,2);{var xn=Oe=>{let Ht=v(()=>!f());Nf(Oe,{get title(){return e.title},get isHidden(){return r(Ht)}})};V(_t,Oe=>{r(Xn)&&Oe(xn)})}var Tr=E(_t,2);{var ba=Oe=>{let Ht=v(()=>a()==="video"&&f());id(Oe,{get isShifted(){return r(Ht)}})};V(Tr,Oe=>{Q()&&Oe(ba)})}var Ir=E(Tr,2);{var Er=Oe=>{var Ht=f3(),Po=h(Ht);wl(Po,{"aria-label":kr}),g(Ht),b(Oe,Ht)};V(Ir,Oe=>{ke()&&Oe(Er)})}var ia=E(Ir,2);{var Ws=Oe=>{od(Oe,{get thumbUrl(){return e.thumbUrl},get chromecastDeviceName(){return Be()}})};V(ia,Oe=>{Pe()&&Oe(Ws)})}var xd=E(ia,2);{var Zc=Oe=>{Xa(Oe,{get shifted(){return f()},get captions(){return R()},get position(){return $e()},get playerSize(){return K()}})};V(xd,Oe=>{ce().value!=="off"&&Oe(Zc)})}var wd=E(xd,2);{var Xc=Oe=>{var Ht=m3();Ht.__contextmenu=xt,Ht.__click=[u3,Y,Xt,u,uo,je];var Po=h(Ht);nd(Po,{}),g(Ht),b(Oe,Ht)};V(wd,Oe=>{l()&&Oe(Xc)})}var Sd=E(wd,2);{var ns=Oe=>{var Ht=v3();let Po;var dt=h(Ht);Zr(dt,{needPadding:!1,canRewindLive:!1,isAds:!1,isRewindableLive:!1,isHidden:!1}),g(Ht),C(p=>Po=Z(Ht,1,"timiline-wrapper svelte-tvjmg6",null,Po,p),[()=>({visible:f()})]),b(Oe,Ht)};V(Sd,Oe=>{Je&&Oe(ns)})}var Cd=E(Sd,2);{var kd=Oe=>{let Ht=v(()=>a()==="thumb"||a()==="LiveWaitingStart"||a()==="LiveWaitingRecover"||a()==="LiveWaitingRecord"),Po=v(()=>a()==="ads"),dt=v(()=>e.canRewindLive&&Ie()!==0);td(Oe,{get bottomHidden(){return r(Ht)},get bottomNoSmooth(){return T()},get showControls(){return f()},get isAds(){return r(Po)},get canRewindLive(){return r(dt)},get logoClickable(){return e.logoClickable},get logoHidden(){return e.logoHidden},get logoTargetUrl(){return Te()},get showAutoplayNext(){return e.showAutoplayNext},get showNextPrevButtons(){return Ue()},get nextButtonActive(){return Ye()},get prevButtonActive(){return W()},get isOneVideoPlaylist(){return We()},customFullscreenSupported:br,toggleFullscreen:hi,get seekToInteractive(){return e.seekToInteractive},get playPrevChapter(){return e.playPrevChapter},get playerControlsWrapperRef(){return r(et)},set playerControlsWrapperRef(p){D(et,de(p))},get playerControlsRef(){return r(Wo)},set playerControlsRef(p){D(Wo,de(p))}})};V(Cd,Oe=>{Ke()&&!Je&&Oe(kd)})}var Ks=E(Cd,2);{var Jc=Oe=>{var Ht=g3(),Po=h(Ht);let dt=v(()=>r(Wo)?.clientHeight);ld(Po,{get supportLink(){return e.supportLink},get playerControlsHeight(){return r(dt)},returnFocus:()=>Vt()?.focus(),get ref(){return r(Ln)},set ref(p){D(Ln,de(p))}}),g(Ht),b(Oe,Ht)};V(Ks,Oe=>{!Pe()&&a()!=="ads"&&Oe(Jc)})}var Qs=E(Ks,2);kl(Qs,{isLive:!0,isHidden:!1,get isPlaying(){return Ge()},get position(){return $e()},get duration(){return ze()}});var rs=E(Qs,2);Mf(rs,{data:Li});var Gs=E(rs,2);wp(Gs,{get supportLink(){return e.supportLink},returnFocus:()=>Vt()?.focus(),get visible(){return Y()},get playerContainerRef(){return r(Wi)},get controlsContainerRef(){return r(et)},get position(){return ye()},get menuElementRef(){return r(Yo)},set menuElementRef(Oe){D(Yo,de(Oe))}});var Td=E(Gs,2);{var Id=Oe=>{dd(Oe,{onClose:Ti,onSelectAutoQuality:()=>{dn("auto"),Ti()}})};V(Td,Oe=>{r(ki)&&Oe(Id)})}var Ed=E(Td,2);{var eu=Oe=>{Wa(Oe,{})};V(Ed,Oe=>{r(Rn)&&Oe(eu)})}var Pd=E(Ed,2);{var tu=Oe=>{Pp(Oe,{})};V(Pd,Oe=>{Ve()&&Oe(tu)})}var as=E(Pd,2);{var iu=Oe=>{Pl(Oe,{})};V(as,Oe=>{qe()&&Oe(iu)})}b(Ee,Dt)}),b(fe,ei)},$$slots:{default:!0}}),fe=>Vt(fe),()=>Vt());var ir=E(ji,2);at(ir,fe=>D(fn,fe),()=>r(fn)),g(Qt),at(Qt,fe=>D(Wi,fe),()=>r(Wi));var jo=E(Qt,2);{var Ri=fe=>{var Ct=b3();b(fe,Ct)};V(jo,fe=>{ot()&&fe(Ri)})}ht("mouseenter",Qt,Yi),ht("mouseleave",Qt,Jn),ht("click",Qt,Sr,!0),ht("focusin",Qt,xi,!0),b(t,It),U(),o()}it(["mousemove","contextmenu","click"]);import{clientChecker as pd,PlaybackState as A3}from"@vkontakte/videoplayer-core/es2024";import{noop as M3}from"@vkontakte/videoplayer-shared/es2024";var x3=A('<div></div> <div class="info svelte-nhq2ld"><div class="triangles-wrapper svelte-nhq2ld"><div></div> <div></div> <div></div></div> <p class="step-caption svelte-nhq2ld"> </p></div>',1),w3=A("<div><!></div>"),S3={hash:"svelte-nhq2ld",code:`.double-click-area.svelte-nhq2ld {position:absolute;top:0;height:100%;width:25%;overflow:hidden;}.double-click-area.left.svelte-nhq2ld {left:0;}.double-click-area.right.svelte-nhq2ld {right:0;}.semicircle.svelte-nhq2ld {position:absolute;top:0;width:100%;height:100%;background-color:rgba(0, 0, 0, 0.5);}.semicircle.left.svelte-nhq2ld {left:0;border-top-right-radius:50%;border-bottom-right-radius:50%;}.semicircle.right.svelte-nhq2ld {right:0;border-top-left-radius:50%;border-bottom-left-radius:50%;}.info.svelte-nhq2ld {position:absolute;top:50%;left:50%;transform:translate(-50%, -50%);display:flex;flex-direction:column;align-items:center;justify-content:center;}.triangles-wrapper.svelte-nhq2ld {position:relative;display:flex;margin-bottom:10px;justify-content:center;}.triangle.svelte-nhq2ld {width:0;height:0;border-top:6px solid transparent;border-bottom:6px solid transparent;
340
+ }`};function rm(t,e){F(e,!0),W(t,n3);let[i,o]=De(),n=()=>y(s,"$isPlaying$",i),a=()=>y(d,"$aboutToGoNextVideo",i),{state:{isPlaying$:s},ui:{aboutToGoNextVideo:d},actions:l}=be(),{features:{playbackStatusShow:c,playbackStatusAnimationDuration:u,playbackStatusNextVideoAnimationDuration:_}}=Rt(),f=0,$=Y(null),x=Y(!1);Ue(()=>{N($,de(n()?_r:Xr))}),Ue(()=>{N($,de(a()?ma:null))}),Ue(()=>{if(c)return f=window.setTimeout(()=>{f=0,a()&&r($)===ma&&(a()==="next"?l.internal.nextVideoClick(!1):l.internal.prevVideoClick(!1)),N($,null)},r($)!==ma?u:_),()=>{f&&(window.clearTimeout(f),f=0)}}),Ue(()=>{n()&&!r(x)&&(N(x,!0),N($,null))});var w=Ne(),S=le(w);{var I=M=>{var P=Ne(),A=le(P);Aa(A,()=>r($),T=>{var B=o3(),Q=h(B),G=h(Q);let ee=m(()=>a()==="prev");ci(G,()=>r($),(te,ie)=>{ie(te,{width:"40",height:"40",viewBox:"0 0 24 24",get isPrev(){return r(ee)}})}),g(Q),g(B),C(()=>tt(Q,`animation-duration: ${r($)!==ma?u:_}ms`)),b(T,B)}),b(M,P)};V(S,M=>{r($)&&c&&M(I)})}b(t,w),U(),o()}var r3=(t,e,i,o,n,a)=>{t.preventDefault(),e&&(i({message:"double click on video"}),o(),n(a.uiConfig.controls.hideTimeoutCursor))},a3=(t,e,i,o,n,a,s,d,l,c,u,_,f,$,x,w,S)=>{if(t.preventDefault(),e()||o()){a();return}if(!(s()&&!l)){if(r(c))return u();if(_()?.focus(),!f()){$.firstStart(),x($.uiConfig.controls.hideTimeoutCursor);return}(!$.uiConfig.preventPauseOnVideoClick||w()!==Uh.PLAYING)&&$.store.actions.internal.togglePlay(),x($.uiConfig.controls.hideTimeoutCursor)}},s3=(t,e,i,o,n,a)=>{if(t.stopPropagation(),e()||o()){a();return}},l3=L("<div><!></div>"),d3=L('<div class="spherical-video-icon svelte-cy741x"><!></div>'),c3=L("<div><!></div>"),u3=L('<div class="settings-menu svelte-cy741x"><!></div>'),p3=L("<!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!>",1),f3=L('<div><div data-testid="video-container"></div></div> <!> <!>',1),m3=L('<div class="blocked svelte-cy741x"></div>'),v3=L('<div class="player-wrapper svelte-cy741x"><!> <div class="overlay-container"></div></div> <!>',1),g3={hash:"svelte-cy741x",code:`.player-wrapper.svelte-cy741x {position:absolute;width:100%;height:100%;}.blocked.svelte-cy741x {position:absolute;width:100%;height:100%;z-index:var(--overlay-container-z-index);}.player-wrapper.svelte-cy741x .player-media {position:absolute;left:0;top:0;width:100%;height:100%;background:var(--black);transition:transform 0.2s ease-in-out;}.spherical-video-icon.svelte-cy741x {display:inline-block;position:absolute;top:calc(50% - 23px);left:calc(50% - 38px);}.video-wrapper.svelte-cy741x,
341
+ .video-container.svelte-cy741x,
342
+ .ads-container.svelte-cy741x {position:absolute;width:100%;height:100%;left:0;top:0;}.video-wrapper.svelte-cy741x {z-index:var(--video-container-z-index);background:var(--black);}.video-container.svelte-cy741x {z-index:var(--video-container-z-index);transition:var(--rotate-transition-duration) ease all;}.video-container.fast-rotate.svelte-cy741x {transition:none;}.nocursor.svelte-cy741x {cursor:none;}.ads-container.svelte-cy741x {z-index:var(--ads-container-z-index);background:var(--black);}.settings-menu.svelte-cy741x {position:absolute;z-index:var(--settings-menu-z-index);bottom:57px;right:18px;left:0;transition:opacity 0.2s, visibility 0.2s;}`};function am(t,e){F(e,!0),W(t,g3);let[i,o]=De(),n=()=>y($o,"$notificationsToShow$",i),a=()=>y(nn,"$playerPhase",i),s=()=>y(jn,"$isLoaderVisible",i),d=()=>y(Oo,"$adPlaybackState",i),l=()=>y(Ot,"$crashed",i),c=()=>y(_i,"$isInteractiveTime$",i),u=()=>y(z,"$settingsMenuVisible",i),_=()=>y(an,"$isInteractiveExpectation$",i),f=()=>y(co,"$controlsVisible",i),$=()=>y(Pi,"$touched",i),x=()=>y(cn,"$graphIsOpened$",i),w=()=>y(Ho,"$isFullscreen",i),S=()=>y(Zn,"$autoplayNextEnabled$",i),I=()=>y(Vt,"$postrollPassed",i),M=()=>y(_o,"$isEnded$",i),P=()=>y(fn,"$cursorInside",i),A=()=>y(ai,"$rotateAlpha",i),T=()=>y(oo,"$playerSize",i),B=()=>y(dn,"$fakeIsPlaying$",i),Q=()=>y(Ln,"$bottomNoSmooth",i),G=()=>y(In,"$interactiveTimeIndicator",i),ee=()=>y(Yt,"$is3DVideo",i),te=()=>y(Jt,"$contextMenuVisible$",i),ie=()=>y(Wi,"$playbackState$",i),oe=()=>y(Uo,"$hotKeyMapData",i),ge=()=>y(hi,"$scrubbingInProgress",i),X=()=>y(qi,"$volumeChangingInProgress",i),Ve=()=>y(rn,"$chromecastConnected$",i),Ae=()=>y(Ai,"$controlsTimeoutActive",i),se=()=>y(zt,"$settingsMenuOpenedByKeyboard",i),He=()=>y(nr,"$contextMenuOpenedByKeyboard$",i),j=()=>y(Cr,"$contextMenuButtonRef$",i),D=()=>y(kr,"$contextMenuOpenedByHotKey$",i),Re=()=>y(Nn,"$contextMenuLastActiveElem$",i),_e=()=>y(Fo,"$isFullscreenOpenedByKeyboard",i),ke=()=>y($t,"$isPlaying$",i),Be=()=>y(ri,"$language$",i),pe=()=>y(mt,"$icon3DVideoVisible",i),R=()=>y(bo,"$chromecastDeviceName$",i),ye=()=>y(Tn,"$currentSubtitle$",i),Ie=()=>y(io,"$currentSubtitleCaptions$",i),je=()=>y(on,"$position$",i),ze=()=>y(to,"$duration$",i),Te=()=>y(uo,"$isLive$",i),Me=()=>y(no,"$contextMenuPosition$",i),We=()=>y(sn,"$showHotKeyMap",i),it=()=>y(ei,"$debugPanelVisible",i),vt=()=>y(En,"$userActionsDisabled$",i),st=v(e,"videoContainer",15),It=v(e,"adsSlotId",3,void 0),nt=v(e,"adsParams",3,void 0),gt=v(e,"adsPreviewParam",3,void 0),Mt=v(e,"adsAutoplayParam",3,void 0),Ce=v(e,"duration",3,void 0),Oe=v(e,"logoTargetUrl",3,""),Ze=v(e,"showNextPrevButtons",3,!1),q=v(e,"nextButtonActive",3,!1),ae=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),wt=v(e,"shadowRootContainer",3,void 0),Ke=v(e,"outerContainerRef",3,void 0),Je=v(e,"playerStarted",3,!1),Ee=v(e,"fullScreenTarget",3,void 0),ct=v(e,"showMiniTimer",3,!1),Bt=v(e,"showEndScreen",3,!0),Gt=v(e,"keyboardControls",15),Xt=e.store.getLogger().createComponentLog("Root component"),ri=e.store.interfaceLanguage$,Wi=e.store.state.playbackState$,Oo=e.store.ads.playbackState,on=e.store.state.positionWithScrubbing$,to=e.store.state.duration$,nn=e.store.playerPhase,Ho=e.store.ui.isFullscreen,Fo=e.store.ui.isFullscreenOpenedByKeyboard,co=e.store.ui.controlsVisible,z=e.store.ui.settingsMenu.visible$,zt=e.store.ui.settingsMenu.openedByBtnKeyboard$,hi=e.store.ui.scrubbingInProgress,qi=e.store.ui.volumeChangingInProgress,Jt=e.store.ui.contextMenu.visible$,ei=e.store.ui.debugPanelVisible,jn=e.store.state.isLoaderVisible,_o=e.store.state.isEnded$,rn=e.store.state.chromecastConnected$,bo=e.store.state.chromecastDeviceName$,Vt=e.store.ads.postrollPassed,uo=e.store.state.isLive$,$t=e.store.state.isPlaying$,Ot=e.store.state.crashed$,po=e.store.webApi.annotationsApi,Ci=e.store.webApi.pictureInPictureApi,Tn=e.store.state.currentSubtitle$,io=e.store.state.currentSubtitleCaptions$,oo=e.store.ui.playerSize,Yt=e.store.ui.is3DVideo,mt=e.store.ui.icon3DVideoVisible,ai=e.store.ui.rotateAlpha,mi=e.store.state.isInteractive,_i=e.store.state.isInteractiveTime$,an=e.store.state.isInteractiveExpectation$,ui=e.store.state.hasInteractiveBranches,Pi=e.store.ui.touched,Uo=e.store.ui.modals.hotKeyMap.data,sn=e.store.ui.modals.hotKeyMap.show,vi=e.store.ui.overlayContainer$,In=e.store.ui.controls.interactiveTimeIndicator,zo=e.store.state.showInteractiveTimeIndicator,no=e.store.ui.contextMenu.position$,ln=e.store.actions.internal.setQuality,$r=e.store.actions.internal.closeSettingsMenu,Zn=e.store.ui.autoplayNextEnabled$,En=e.store.ui.userActionsDisabled,{fakeIsPlaying$:dn,notifications$:Wo,graphIsOpened$:cn}=zi(),Ki=Y(void 0),et=Y(void 0),qo=Y(void 0),Pn=Y(void 0),An,un,Ko;Uo.set(Hg());let{closeNotification:Qo,notificationsToShow$:$o}=Wo,ki=m(()=>!!n().slow_video),Ti=()=>Qo("slow_video"),Mn=m(()=>(a()==="video"&&s()||a()==="ads"&&d()==="inactive")&&!l()),pn=Y(void 0),Ln=re(!1),Xn,Ai=re(!1),Mi=re(),fn=re(!1),mn=Y(!1),Qi=Y(!1),Li=Y(!1),vn=Y(!(e.autoplay&&!e.uiConfig.controls.showOnStartupAtAutoplay)),fo=m(()=>c()&&!u()&&!(r(mn)||r(Qi))&&!(r(Li)&&!_())),yr=!0,gn=m(()=>e.uiConfig.features.thumbTimer&&ct()&&a()==="video"&&!f()&&!l()&&!mi&&(e.uiConfig.hideThumbTimerAfterTouch&&!$()||!e.uiConfig.hideThumbTimerAfterTouch)),Jn=m(()=>a()==="video"&&!x()&&w()),hn=Y(!1),_n=m(()=>(Bt()||e.showAutoplayNext&&S())&&!!ne()&&!!Fe()&&(e.showAds&&I()||!e.showAds)&&M()&&!l()&&!r(hn)),xr=m(()=>P()&&!(f()||r(_n))&&!c()),Vn=Y(!1),er=m(()=>st()&&A()%180?T().height/T().width:1),Rn=m(()=>B()!==null),{toggle:bn}=dn,qt=!1,yo=null;Ci?.setContext(nl());let lt=()=>{e.autoplay&&!mi&&e.uiConfig.controls.showOnStartupAtAutoplay&&Kt(e.uiConfig.controls.hideTimeout)};e.store.setUiCallbacks({onStarted:lt});let Lt=()=>{window.clearTimeout(An),Ai.set(!1)},Zt=()=>{window.clearTimeout(un),Mi.set(null)},Kt=we=>{Lt(),Ai.set(!0),An=window.setTimeout(()=>Ai.set(!1),we);let yt=we-100;Xn=window.setTimeout(()=>{Q()&&Ln.set(!1)},yt>0?yt:we)},Gi=(we,yt)=>{Zt(),Mi.set(yt),un=window.setTimeout(()=>Mi.set(null),we)},Vi=Yt.subscribe(we=>{mt.set(we),we&&(window.clearTimeout(Ko),Ko=window.setTimeout(()=>mt.set(!1),e.uiConfig.controls.hide360IconTimeout))}),Ri=async()=>{let we=sa();if(we){let yt=_l(),Dt=bi();we=yt===Dt||yt===wt()}if(we){Kt(e.uiConfig.controls.hideTimeoutFullscreen);try{await Ci?.remove()}catch(yt){Xt({message:String(yt)})}}Ho.set(we),e.store.getAdmanWrapper().setFullscreen(we),w()?e.store.callbacks?.onFullscreenEnter?.():e.store.callbacks?.onFullscreenExit?.()},xo=we=>{let{width:yt,height:Dt}=we.target;oo.set({width:yt,height:Dt})},wo=()=>{let{width:we,height:yt}=r(Ki).getBoundingClientRect();oo.set({width:we,height:yt})};At(()=>(cc(Ri),e.uiConfig.features.annotationsInside&&po?.init(r(Ki)),Ba(Ci)&&(Ci?.assignPlayerContainer(r(Ki)),Ci?.registryExternalEventHandlers({resize:xo,leavepictureinpicture:wo})),e.interactiveContainer&&st().parentElement?.insertBefore(e.interactiveContainer,st().nextSibling),()=>{window.clearTimeout(An),window.clearTimeout(Xn),window.clearTimeout(un),window.clearTimeout(Ko),Vi(),Ci?.dispose().catch(yt=>{Xt({message:String(yt)})}),uc(Ri)}));let bi=()=>{let we=e.uiConfig.features.fullscreenInternalTargetPlayerContainer||!Ke()?r(Ki):Ke(),yt=we.getRootNode(),Dt=yt instanceof ShadowRoot?yt.host:yt,Wt=Ee()instanceof HTMLElement&&Ee().contains(Dt);return e.uiConfig.allowChangingFullscreenTarget&&Ee()&&Wt?Ee():we},Xe=async()=>{sa()?(await dc(document),Xt({message:"exit fullscreen"})):(Xt({message:"request fullscreen"}),await lc(bi()))},pt=()=>{$r(),Jt.set(!1)},Di=we=>{x()||(we.preventDefault(),Jt.set(!0),no.set({left:we.clientX,top:we.clientY}))};function $i(){fn.set(!0),mi||Kt(e.uiConfig.controls.hideTimeoutCursor)}function tr(){mi||(Ln.set(!0),Kt(e.uiConfig.controls.hideTimeoutCursor))}function ir(){fn.set(!1),N(Qi,!1),N(mn,!1),qt=!1,e.store.actions.internal.releaseCamera(),Kt(e.uiConfig.controls.hideTimeout)}function yi(we){return we?we.offsetTop+yi(we.offsetParent):0}function So(we){return we?we.offsetLeft+So(we.offsetParent):0}function $n(we){if(G()&&zo){let yt=we.currentTarget,Dt=yi(yt),Wt=So(yt),Ni=we.pageX-Wt,Ii=we.pageY-Dt,{left:si,bottom:Hn,right:Pe}=G(),Tt=Pe-si;return Ni>=si-Tt&&Ii<=Hn+Tt}}function Dr(we){if(r(Ki)){let yt=yi(we.currentTarget),Dt=T().height,Wt=we.pageY-yt;if($n(we)){N(Qi,!1);return}Wt<40?N(Qi,!0):Wt>Dt-40?N(mn,!0):(N(Qi,!1),u()||N(mn,!1))}}function wr(we){Dr(we),r(fo)||Kt(e.uiConfig.controls.hideTimeoutCursor),ee()&&qt&&yo&&e.store.actions.internal.moveCameraFocusPX(yo.clientX-we.clientX,yo.clientY-we.clientY,we.timeStamp-yo.timeStamp),yo=we}let Co=we=>{we.preventDefault(),we.button===0&&(qt=!0,e.store.actions.internal.holdCamera()),Kt(e.uiConfig.controls.hideTimeoutCursor)},Dn=we=>{we.preventDefault(),we.button===0&&(yo=we,qt=!1,e.store.actions.internal.releaseCamera()),Kt(e.uiConfig.controls.hideTimeoutCursor)},ko=we=>{pt(),Pi.set(!0),Kt(e.uiConfig.controls.hideTimeout),we&&Gi(e.uiConfig.controls.hideHotKeyHelpers,we)},Sr=()=>{pt(),e.store.callbacks?.onOpenHotKeyMap?e.store.callbacks?.onOpenHotKeyMap(oe()):sn.update(we=>!we)},or=()=>{Pi.set(!0)},nr=e.store.ui.contextMenu.openedByBtnKeyboard$,Cr=e.store.ui.contextMenu.btnRef$,To=Y(void 0),kr=e.store.ui.contextMenu.openedByHotKey$,Nn=e.store.ui.contextMenu.lastActiveElem$;Ue(()=>{vi.set(r(pn))}),Ue(()=>{N(Li,de(r(vn)&&ie()!==Uh.PLAYING)),r(vn)||ft(()=>N(vn,!0))}),Ue(()=>{co.set((r(Li)||M()||u()||ge()||X()||Ve()||Ae())&&!r(fo)&&(a()==="video"||a()==="ads")&&!l())}),Ue(()=>{!ge()&&r(Vn)&&!c()&&Kt(e.uiConfig.controls.hideTimeoutCursor),ft(()=>N(Vn,de(ge())))}),Ue(()=>{r(Pn),u(),se(),ft(()=>Is(r(Pn),u(),se()))}),Ue(()=>{r(To),te(),He(),ft(()=>Is(r(To),te(),He()))}),Ue(()=>{let we=j();we&&(te(),ft(()=>Ts(we,te(),nr)))}),Ue(()=>{r(To),te(),D(),ft(()=>Is(r(To),te(),D()))}),Ue(()=>{let we=Re();we&&(te(),ft(()=>Kg(we,te(),kr)))}),Ue(()=>{!_e()&&w()&&(ft(()=>Fo.set(!1)),Gt()?.focus())}),Ue(()=>{x()&&pt()});let Bn=H("video360");var rr=v3();Ct("blur",ka,pt);var Ye=le(rr);Ye.__mousemove=wr;var Et=h(Ye);let pi=m(()=>a()==="ads"),ro=m(()=>r(Rn)?bn:void 0);at(Sp(Et,{toggleFullscreen:Xe,hideContextMenu:pt,showHotKeyHelpers:ko,showKeyMap:Sr,get isAds(){return r(pi)},get fakePlayButtonHandler(){return r(ro)},get nextButtonActive(){return q()},get prevButtonActive(){return ae()},children:(we,yt)=>{var Dt=f3(),Wt=le(Dt);let Ni;Wt.__contextmenu=Di,Wt.__mousedown=Co,Wt.__mouseup=Dn,Wt.__click=[a3,te,Jt,u,z,pt,M,_o,ui,Rn,bn,Gt,Je,e,Kt,ie,Wi],Wt.__dblclick=[r3,yr,Xt,Xe,Kt,e];var Ii=h(Wt);let si;at(Ii,Tt=>st(Tt),()=>st()),g(Wt);var Hn=E(Wt,2);dl(Hn,()=>"slot",!1,(Tt,li)=>{he(Tt,null,{name:sd})});var Pe=E(Hn,2);Aa(Pe,Be,Tt=>{var li=p3(),Ei=le(li);let Eo=m(()=>a()!=="thumb"||l()||mi&&e.autoplay);td(Ei,{get hidden(){return r(Eo)},get thumbUrl(){return e.thumbUrl},get startVideo(){return e.firstStart}});var sr=E(Ei,2);rm(sr,{});var Po=E(sr,2);{var Tr=qe=>{let Qt=m(()=>e.live?.startTime);id(qe,{get thumbUrl(){return e.thumbUrl},get startTime(){return r(Qt)}})};V(Po,qe=>{a()==="LiveWaitingStart"&&qe(Tr)})}var Xa=E(Po,2);{var Os=qe=>{ja(qe,{kind:"recover",get thumbUrl(){return e.thumbUrl}})};V(Xa,qe=>{a()==="LiveWaitingRecover"&&qe(Os)})}var Ja=E(Xa,2);{var es=qe=>{ja(qe,{kind:"record",get thumbUrl(){return e.thumbUrl}})};V(Ja,qe=>{a()==="LiveWaitingRecord"&&qe(es)})}var Fn=E(Ja,2);{var Hs=qe=>{var Qt=l3();let Un;var ut=h(Qt);bl(ut,{get adsSlotId(){return It()},get adsParams(){return nt()},get adsPreviewParam(){return gt()},get adsAutoplayParam(){return Mt()},get duration(){return Ce()}}),g(Qt),C(p=>Un=Z(Qt,1,"ads-container svelte-cy741x",null,Un,p),[()=>({hidden:a()!=="ads"})]),b(qe,Qt)};V(Fn,qe=>{e.showAds&&Je()&&qe(Hs)})}var _t=E(Fn,2);{var xt=qe=>{let Qt=m(()=>!Bt()&&e.showAutoplayNext&&S());yp(qe,{get title(){return ne()},get thumb(){return Fe()},get isHide(){return r(Qt)},clickCloseIcon:()=>N(hn,!0)})};V(_t,qe=>{r(_n)&&ne()&&Fe()&&qe(xt)})}var Go=E(_t,2);{var Nr=qe=>{let Qt=m(()=>!f());Vf(qe,{get title(){return e.title},get isHidden(){return r(Qt)}})};V(Go,qe=>{r(Jn)&&qe(Nr)})}var ea=E(Go,2);{var Br=qe=>{let Qt=m(()=>a()==="video"&&f());Zl(qe,{get isShifted(){return r(Qt)}})};V(ea,qe=>{ee()&&qe(Br)})}var lr=E(ea,2);{var ga=qe=>{var Qt=d3(),Un=h(Qt);hl(Un,{"aria-label":Bn}),g(Qt),b(qe,Qt)};V(lr,qe=>{pe()&&qe(ga)})}var ts=E(lr,2);{var Gc=qe=>{Jl(qe,{get thumbUrl(){return e.thumbUrl},get chromecastDeviceName(){return R()}})};V(ts,qe=>{Ve()&&qe(Gc)})}var _d=E(ts,2);{var Yc=qe=>{Xl(qe,{get shifted(){return f()},get captions(){return Ie()},get position(){return je()},get playerSize(){return T()}})};V(_d,qe=>{ye().value!=="off"&&qe(Yc)})}var bd=E(_d,2);{var jc=qe=>{var Qt=c3();Qt.__contextmenu=Di,Qt.__click=[s3,te,Jt,u,z,pt];var Un=h(Qt);ed(Un,{}),g(Qt),b(qe,Qt)};V(bd,qe=>{l()&&qe(jc)})}var ha=E(bd,2);{var Zc=qe=>{let Qt=m(()=>a()==="thumb"||a()==="LiveWaitingStart"||a()==="LiveWaitingRecover"||a()==="LiveWaitingRecord"),Un=m(()=>a()==="ads"),ut=m(()=>e.canRewindLive&&ze()!==0);jl(qe,{get bottomHidden(){return r(Qt)},get bottomNoSmooth(){return Q()},get showControls(){return f()},get isAds(){return r(Un)},get canRewindLive(){return r(ut)},get logoClickable(){return e.logoClickable},get logoHidden(){return e.logoHidden},get logoTargetUrl(){return Oe()},get showAutoplayNext(){return e.showAutoplayNext},get showNextPrevButtons(){return Ze()},get nextButtonActive(){return q()},get prevButtonActive(){return ae()},get isOneVideoPlaylist(){return Ge()},customFullscreenSupported:yr,toggleFullscreen:Xe,get seekToInteractive(){return e.seekToInteractive},get playPrevChapter(){return e.playPrevChapter},get playerControlsWrapperRef(){return r(et)},set playerControlsWrapperRef(p){N(et,de(p))},get playerControlsRef(){return r(qo)},set playerControlsRef(p){N(qo,de(p))}})};V(ha,qe=>{Je()&&qe(Zc)})}var Fs=E(ha,2);{var $d=qe=>{var Qt=u3(),Un=h(Qt);let ut=m(()=>r(qo)?.clientHeight);rd(Un,{get supportLink(){return e.supportLink},get playerControlsHeight(){return r(ut)},returnFocus:()=>Gt()?.focus(),get ref(){return r(Pn)},set ref(p){N(Pn,de(p))}}),g(Qt),b(qe,Qt)};V(Fs,qe=>{!Ve()&&a()!=="ads"&&qe($d)})}var yd=E(Fs,2);let xd=m(()=>!r(gn));yl(yd,{get isLive(){return Te()},get isHidden(){return r(xd)},get isPlaying(){return ke()},get position(){return je()},get duration(){return ze()}});var is=E(yd,2);Pf(is,{data:Mi});var Us=E(is,2);$p(Us,{get supportLink(){return e.supportLink},returnFocus:()=>Gt()?.focus(),get visible(){return te()},get playerContainerRef(){return r(Ki)},get controlsContainerRef(){return r(et)},get position(){return Me()},get menuElementRef(){return r(To)},set menuElementRef(qe){N(To,de(qe))}});var wd=E(Us,2);{var Sd=qe=>{ad(qe,{onClose:Ti,onSelectAutoQuality:()=>{ln("auto"),Ti()}})};V(wd,qe=>{r(ki)&&qe(Sd)})}var Cd=E(wd,2);{var Xc=qe=>{za(qe,{})};V(Cd,qe=>{r(Mn)&&qe(Xc)})}var kd=E(Cd,2);{var Jc=qe=>{Tp(qe,{})};V(kd,qe=>{We()&&qe(Jc)})}var os=E(kd,2);{var eu=qe=>{Cl(qe,{})};V(os,qe=>{it()&&qe(eu)})}b(Tt,li)}),C((Tt,li)=>{Ni=Z(Wt,1,"video-wrapper svelte-cy741x",null,Ni,Tt),si=Z(Ii,1,"video-container svelte-cy741x",null,si,li),tt(Ii,`transform: rotate(${A()}deg) scale(${r(er)})`),Le(Ii,"data-is-playing",ke())},[()=>({hidden:a()!=="video",nocursor:r(xr)}),()=>({"fast-rotate":!e.uiConfig.isSmoothVideoRotate})]),b(we,Dt)},$$slots:{default:!0}}),we=>Gt(we),()=>Gt());var Io=E(Et,2);at(Io,we=>N(pn,we),()=>r(pn)),g(Ye),at(Ye,we=>N(Ki,we),()=>r(Ki));var On=E(Ye,2);{var ar=we=>{var yt=m3();b(we,yt)};V(On,we=>{vt()&&we(ar)})}Ct("mouseenter",Ye,$i),Ct("mouseleave",Ye,ir),Ct("click",Ye,or,!0),Ct("focusin",Ye,tr,!0),b(t,rr),U(),o()}ot(["mousemove","contextmenu","mousedown","mouseup","click","dblclick"]);import{clientChecker as ld,PlaybackState as k3}from"@vkontakte/videoplayer-core/es2024";import{noop as T3}from"@vkontakte/videoplayer-shared/es2024";var h3=L('<div></div> <div class="info svelte-nhq2ld"><div class="triangles-wrapper svelte-nhq2ld"><div></div> <div></div> <div></div></div> <p class="step-caption svelte-nhq2ld"> </p></div>',1),_3=L("<div><!></div>"),b3={hash:"svelte-nhq2ld",code:`.double-click-area.svelte-nhq2ld {position:absolute;top:0;height:100%;width:25%;overflow:hidden;}.double-click-area.left.svelte-nhq2ld {left:0;}.double-click-area.right.svelte-nhq2ld {right:0;}.semicircle.svelte-nhq2ld {position:absolute;top:0;width:100%;height:100%;background-color:rgba(0, 0, 0, 0.5);}.semicircle.left.svelte-nhq2ld {left:0;border-top-right-radius:50%;border-bottom-right-radius:50%;}.semicircle.right.svelte-nhq2ld {right:0;border-top-left-radius:50%;border-bottom-left-radius:50%;}.info.svelte-nhq2ld {position:absolute;top:50%;left:50%;transform:translate(-50%, -50%);display:flex;flex-direction:column;align-items:center;justify-content:center;}.triangles-wrapper.svelte-nhq2ld {position:relative;display:flex;margin-bottom:10px;justify-content:center;}.triangle.svelte-nhq2ld {width:0;height:0;border-top:6px solid transparent;border-bottom:6px solid transparent;
344
343
  animation: svelte-nhq2ld-blink 500ms infinite;opacity:0;}.triangle.right.svelte-nhq2ld:nth-child(1),
345
344
  .triangle.left.svelte-nhq2ld:nth-child(3) {animation-delay:0ms;}.triangle.right.svelte-nhq2ld:nth-child(2),
346
345
  .triangle.left.svelte-nhq2ld:nth-child(2) {animation-delay:100ms;}.triangle.right.svelte-nhq2ld:nth-child(3),
@@ -356,92 +355,9 @@ Try switching the\xA0quality to\xA0Auto.`},Vg=x0;var Yr=new Map;Yr.set(Ng.EN,Vg)
356
355
  100% {
357
356
  opacity: 0;
358
357
  }
359
- }.triangle.left.svelte-nhq2ld {border-right:8px solid var(--white);}.triangle.right.svelte-nhq2ld {border-left:8px solid var(--white);}.triangle.svelte-nhq2ld:not(:last-child) {margin-right:5px;}.step-caption.svelte-nhq2ld {margin:0;text-align:center;font-size:12px;line-height:1;color:var(--white);}`};function Fc(t,e){F(e,!0),z(t,S3);let i=m(e,"seekStep",3,0),o=X(!1),n=0,a=0,s=X(de(i())),d=_=>{_.stopPropagation(),a+=1,D(s,i()*(a-1)),a===1?e.handleSingleFirstClick(_):(D(o,!0),e.handleSecondClick()),window.clearTimeout(n),n=window.setTimeout(()=>{a=0,D(o,!1)},300)};on(()=>{window.clearTimeout(n)});var l=w3();l.__click=d;var c=h(l);{var u=_=>{var f=x3(),$=le(f),x=E($,2),w=h(x),S=h(w),I=E(S,2),P=E(I,2);g(w);var M=E(w,2),L=h(M,!0);g(M),g(x),C(T=>{Z($,1,`semicircle ${e.side??""}`,"svelte-nhq2ld"),Z(S,1,`triangle ${e.side??""}`,"svelte-nhq2ld"),Z(I,1,`triangle ${e.side??""}`,"svelte-nhq2ld"),Z(P,1,`triangle ${e.side??""}`,"svelte-nhq2ld"),ue(L,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 C3=(t,e,i)=>{e(!1),i()},k3=A('<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),T3={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 dm(t,e){F(e,!0),z(t,T3);let[i,o]=Me(),n=()=>y(d,"$autoplayNextEnabled$",i),a=()=>y(l,"$timerNextVideoRunning$",i),s=_e(),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,$=s.actions.internal.nextVideoAnnouncementCancel,x=()=>{c(!1),f()},w=()=>{e.clickCloseIcon(),$()};At(()=>{e.isHide||u(),e.isHide&&n()&&(c(!1),f())});var S=De(),I=le(S);{var P=M=>{var L=k3(),T=E(le(L),2),B=h(T),K=h(B),Q=h(K,!0);g(K);var Y=E(K,2);za(Y,{onClick:w}),g(B);var ae=E(B,2);ae.__click=[C3,c,_];var se=h(ae),ee=h(se),ge=h(ee);let J;var Pe=E(ge,2);{var Ae=N=>{Al(N,{get isRunning(){return a()},onTimerEnded:x})};V(Pe,N=>{n()&&N(Ae)})}g(ee),g(se);var oe=E(se,2),Fe=h(oe),j=h(Fe,!0);g(Fe),g(oe),g(ae),g(T),C((N,Le)=>{ue(Q,N),tt(ee,`background-image: url('${e.thumb}')`),J=Z(ge,1,"thumb-overlay svelte-1qdxi6t",null,J,Le),ue(j,e.title)},[()=>n()?H("end_screen_next_video"):H("end_screen_recommended_video"),()=>({withOpacity:n()})]),b(M,L)};V(I,M=>{e.isHide||M(P)})}b(t,S),U(),o()}it(["click"]);import{clientChecker as I3}from"@vkontakte/videoplayer-core/es2024";var Kh=({getFullscreenTarget:t,fullScreenChangeHandler:e})=>{let i=null,o;At(()=>{I3.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))}),on(()=>{i?.(),clearTimeout(o)})};import{VideoFormat as E3}from"@vkontakte/videoplayer-core/es2024";var Uc=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 P3}from"@vkontakte/videoplayer-core/es2024";var Qh=({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=()=>P3.device.isIOS&&he(s)===E3.DASH_LIVE_CMAF,_=()=>{l?.(),l=null},f=$=>{if(_(),!u()||!$)return;let x=c();if(!x)return;let w=new Uc(x),S=he(d),I=he(a),P=he(n);for(let T of S)I.some(K=>K.value===T.id)&&w.attach(T,P.value===T.id);let M=d.subscribe(T=>{for(let B of T)w.updateSrc(B)}),L=()=>{let T=w.getCurrentShowingId();o(he(a).find(B=>B.value===T))};x.textTracks.addEventListener("change",L),l=()=>{M(),w.detachAll(),x.textTracks.removeEventListener("change",L)}};At(()=>i.subscribe(f)),on(_)};var L3=(t,e,i,o)=>{if(t.stopPropagation(),e()){o();return}},V3=A("<!> <!>",1),R3=A("<div><!></div>"),N3=A('<div class="spherical-video-icon svelte-dtyj47"><!></div>'),D3=A("<div><!></div>"),B3=A('<div class="settings-mobile svelte-dtyj47"><!></div>'),O3=A("<!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!>",1),H3=A('<div class="player-wrapper svelte-dtyj47" role="region" tabindex="-1"><div><div data-testid="video-container"></div></div> <!> <!> <div class="overlay-container"></div></div>'),F3={hash:"svelte-dtyj47",code:`.player-wrapper.svelte-dtyj47 {position:absolute;width:100%;height:100%;}.player-wrapper.svelte-dtyj47 .player-media {position:absolute;left:0;top:0;width:100%;height:100%;background:var(--black);transition:transform 0.2s ease-in-out;}.spherical-video-icon.svelte-dtyj47 {display:inline-block;position:absolute;top:calc(50% - 23px);left:calc(50% - 38px);}.video-wrapper.svelte-dtyj47,
358
+ }.triangle.left.svelte-nhq2ld {border-right:8px solid var(--white);}.triangle.right.svelte-nhq2ld {border-left:8px solid var(--white);}.triangle.svelte-nhq2ld:not(:last-child) {margin-right:5px;}.step-caption.svelte-nhq2ld {margin:0;text-align:center;font-size:12px;line-height:1;color:var(--white);}`};function Bc(t,e){F(e,!0),W(t,b3);let i=v(e,"seekStep",3,0),o=Y(!1),n=0,a=0,s=Y(de(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)};Jo(()=>{window.clearTimeout(n)});var l=_3();l.__click=d;var c=h(l);{var u=_=>{var f=h3(),$=le(f),x=E($,2),w=h(x),S=h(w),I=E(S,2),M=E(I,2);g(w);var P=E(w,2),A=h(P,!0);g(P),g(x),C(T=>{Z($,1,`semicircle ${e.side??""}`,"svelte-nhq2ld"),Z(S,1,`triangle ${e.side??""}`,"svelte-nhq2ld"),Z(I,1,`triangle ${e.side??""}`,"svelte-nhq2ld"),Z(M,1,`triangle ${e.side??""}`,"svelte-nhq2ld"),ce(A,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()}ot(["click"]);var $3=(t,e,i)=>{e(!1),i()},y3=L('<div class="overlay svelte-1qdxi6t"></div> <div class="next-video svelte-1qdxi6t"><div class="top svelte-1qdxi6t"><div class="caption svelte-1qdxi6t"> </div> <!></div> <div class="row svelte-1qdxi6t"><div class="column svelte-1qdxi6t"><div class="thumb svelte-1qdxi6t"><div></div> <!></div></div> <div class="column svelte-1qdxi6t"><div class="title svelte-1qdxi6t"> </div></div></div></div>',1),x3={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 sm(t,e){F(e,!0),W(t,x3);let[i,o]=De(),n=()=>y(d,"$autoplayNextEnabled$",i),a=()=>y(l,"$timerNextVideoRunning$",i),s=be(),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,$=s.actions.internal.nextVideoAnnouncementCancel,x=()=>{c(!1),f()},w=()=>{e.clickCloseIcon(),$()};At(()=>{e.isHide||u(),e.isHide&&n()&&(c(!1),f())});var S=Ne(),I=le(S);{var M=P=>{var A=y3(),T=E(le(A),2),B=h(T),Q=h(B),G=h(Q,!0);g(Q);var ee=E(Q,2);Fa(ee,{onClick:w}),g(B);var te=E(B,2);te.__click=[$3,c,_];var ie=h(te),oe=h(ie),ge=h(oe);let X;var Ve=E(ge,2);{var Ae=D=>{kl(D,{get isRunning(){return a()},onTimerEnded:x})};V(Ve,D=>{n()&&D(Ae)})}g(oe),g(ie);var se=E(ie,2),He=h(se),j=h(He,!0);g(He),g(se),g(te),g(T),C((D,Re)=>{ce(G,D),tt(oe,`background-image: url('${e.thumb}')`),X=Z(ge,1,"thumb-overlay svelte-1qdxi6t",null,X,Re),ce(j,e.title)},[()=>n()?H("end_screen_next_video"):H("end_screen_recommended_video"),()=>({withOpacity:n()})]),b(P,A)};V(I,P=>{e.isHide||P(M)})}b(t,S),U(),o()}ot(["click"]);import{clientChecker as w3}from"@vkontakte/videoplayer-core/es2024";var zh=({getFullscreenTarget:t,fullScreenChangeHandler:e})=>{let i=null,o;At(()=>{w3.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))}),Jo(()=>{i?.(),clearTimeout(o)})};import{VideoFormat as S3}from"@vkontakte/videoplayer-core/es2024";var Oc=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 C3}from"@vkontakte/videoplayer-core/es2024";var Wh=({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=()=>C3.device.isIOS&&ve(s)===S3.DASH_LIVE_CMAF,_=()=>{l?.(),l=null},f=$=>{if(_(),!u()||!$)return;let x=c();if(!x)return;let w=new Oc(x),S=ve(d),I=ve(a),M=ve(n);for(let T of S)I.some(Q=>Q.value===T.id)&&w.attach(T,M.value===T.id);let P=d.subscribe(T=>{for(let B of T)w.updateSrc(B)}),A=()=>{let T=w.getCurrentShowingId();o(ve(a).find(B=>B.value===T))};x.textTracks.addEventListener("change",A),l=()=>{P(),w.detachAll(),x.textTracks.removeEventListener("change",A)}};At(()=>i.subscribe(f)),Jo(_)};var I3=(t,e,i,o)=>{if(t.stopPropagation(),e()){o();return}},E3=L("<!> <!>",1),P3=L("<div><!></div>"),A3=L('<div class="spherical-video-icon svelte-dtyj47"><!></div>'),M3=L("<div><!></div>"),L3=L('<div class="settings-mobile svelte-dtyj47"><!></div>'),V3=L("<!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!>",1),R3=L('<div class="player-wrapper svelte-dtyj47" role="region" tabindex="-1"><div><div data-testid="video-container"></div></div> <!> <!> <div class="overlay-container"></div></div>'),D3={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,
360
359
  .video-container.svelte-dtyj47,
361
- .ads-container.svelte-dtyj47 {position:absolute;width:100%;height:100%;left:0;top:0;}.video-wrapper.svelte-dtyj47 {z-index:var(--video-container-z-index);background:var(--black);}.video-container.svelte-dtyj47 {z-index:var(--video-container-z-index);transition:var(--rotate-transition-duration) ease all;}.video-container.fast-rotate.svelte-dtyj47 {transition:none;}.ads-container.svelte-dtyj47 {z-index:var(--ads-container-z-index);background:var(--black);}.settings-mobile.svelte-dtyj47 {position:absolute;z-index:var(--settings-menu-z-index);top:50%;left:50%;transform:translate(-50%,-50%);transition:opacity var(--controls-transition-duration);display:flex;align-items:center;max-width:320px;width:90%;}`};function cm(t,e){F(e,!0),z(t,F3);let[i,o]=Me(),n=()=>y(Zt,"$playerPhase",i),a=()=>y(yo,"$isLoaderVisible",i),s=()=>y(Ne,"$adPlaybackState",i),d=()=>y(xo,"$crashed",i),l=()=>y(Ln,"$notificationsToShow$",i),c=()=>y(Xe,"$playbackState$",i),u=()=>y(Ze,"$graphIsOpened$",i),_=()=>y(oo,"$interactiveHideMobileControls",i),f=()=>y(uo,"$isEnded$",i),$=()=>y(vi,"$isInteractiveExpectation$",i),x=()=>y(ri,"$controlsVisible",i),w=()=>y(di,"$touched",i),S=()=>y(Uo,"$autoplayNextEnabled$",i),I=()=>y(Kt,"$postrollPassed",i),P=()=>y(Yt,"$rotateAlpha",i),M=()=>y(Pn,"$playerSize",i),L=()=>y(Ko,"$bottomNoSmooth",i),T=()=>y(yt,"$videoSize",i),B=()=>y(mi,"$isFullscreen",i),K=()=>y(st,"$position$",i),Q=()=>y(Vt,"$duration$",i),Y=()=>y(ln,"$loadedMetadata",i),ae=()=>y(Ho,"$settingsMenuVisible",i),se=()=>y(Ui,"$scrubbingInProgress",i),ee=()=>y($o,"$volumeChangingInProgress",i),ge=()=>y(Wt,"$chromecastConnected$",i),J=()=>y(li,"$isInteractiveTime$",i),Pe=()=>y(qi,"$isActiveLive",i),Ae=()=>y(an,"$settingsMenuOpenedByKeyboard",i),oe=()=>y(Jt,"$isPlaying$",i),Fe=()=>y(Ke,"$language$",i),j=()=>y(sn,"$disabledControls$",i),N=()=>y(ro,"$is3DVideo",i),Le=()=>y(ao,"$icon3DVideoVisible",i),be=()=>y(G,"$chromecastDeviceName$",i),ke=()=>y(Ot,"$currentSubtitle$",i),Be=()=>y($i,"$currentSubtitleCaptions$",i),ce=()=>y(wo,"$realDuration$",i),R=()=>y(Gt,"$isLive$",i),$e=()=>y(Fo,"$debugPanelVisible",i),Ie=m(e,"videoContainer",15),Ge=m(e,"adsSlotId",3,void 0),ze=m(e,"adsParams",3,void 0),ye=m(e,"adsPreviewParam",3,void 0),Ve=m(e,"adsAutoplayParam",3,void 0),qe=m(e,"duration",3,void 0),ot=m(e,"logoTargetUrl",3,""),ut=m(e,"showNextPrevButtons",3,!1),pt=m(e,"nextButtonActive",3,!1),Tt=m(e,"prevButtonActive",3,!1),nt=m(e,"endScreenVideoTitle",3,void 0),vt=m(e,"endScreenVideoThumb",3,void 0),Lt=m(e,"isOneVideoPlaylist",3,!1),Te=m(e,"shadowRootContainer",3,void 0),Ue=m(e,"outerContainerRef",3,void 0),Ye=m(e,"showMiniTimer",3,!1),W=m(e,"fullScreenTarget",3,void 0),ne=m(e,"playerStarted",3,!1),ie=m(e,"showEndScreen",3,!0),{notifications$:We,graphIsOpened$:Ze}=Fi(),$t=e.store.getLogger().createComponentLog("Root component"),Ke=e.store.interfaceLanguage$,Xe=e.store.state.playbackState$,Ne=e.store.ads.playbackState,st=e.store.state.positionWithScrubbing$,Vt=e.store.state.duration$,Zt=e.store.playerPhase,mi=e.store.ui.isFullscreen,ri=e.store.ui.controlsVisible,oo=e.store.ui.interactiveHideMobileControls,Ho=e.store.ui.settingsMenu.visible$,an=e.store.ui.settingsMenu.openedByBtnKeyboard$,Ui=e.store.ui.scrubbingInProgress,$o=e.store.ui.volumeChangingInProgress,Fo=e.store.ui.debugPanelVisible,yo=e.store.state.isLoaderVisible,uo=e.store.state.isEnded$,Wt=e.store.state.chromecastConnected$,G=e.store.state.chromecastDeviceName$,Kt=e.store.ads.postrollPassed,Xt=e.store.ui.mobileUnmuteButtonExpanded,zi=e.store.ui.mobileUnmuteButtonVisible,Gt=e.store.state.isLive$,Jt=e.store.state.isPlaying$,qi=e.store.state.isActiveLive$,no=e.store.state.isRewindableLive$,xo=e.store.state.crashed$,Nt=e.store.webApi.annotationsApi,po=e.store.webApi.pictureInPictureApi,yt=e.store.state.videoSize$,Ot=e.store.state.currentSubtitle$,$i=e.store.state.currentSubtitleCaptions$,wo=e.store.state.duration$,Pn=e.store.ui.playerSize,ro=e.store.ui.is3DVideo,ao=e.store.ui.icon3DVideoVisible,Yt=e.store.ui.rotateAlpha,mt=e.store.state.isInteractive,li=e.store.state.isInteractiveTime$,vi=e.store.state.isInteractiveExpectation$,yi=e.store.state.hasInteractiveBranches,sn=e.store.ui.controls.disabledControls$,di=e.store.ui.touched,Ai=e.store.ui.overlayContainer$,Uo=e.store.ui.autoplayNextEnabled$,ln=e.store.state.loadedMetadata$,gi=e.store.actions.internal.closeSettingsMenu,An=e.store.callbacks?.onDisabledPlayPrevChapterClick,zo=e.store.callbacks?.onDisabledSeekToInteractiveClick,so=e.store.actions.internal.setQuality,dn=X(void 0),_r=X(void 0),jn=X(void 0),Mn=X(void 0),cn,qo,un,Wi=v(()=>(n()==="video"&&a()||n()==="ads"&&s()==="inactive")&&!d()),et=X(void 0),{closeNotification:Wo,notificationsToShow$:Ln}=We,Vn=v(()=>!!l().slow_video),pn=()=>Wo("slow_video"),Ko=re(!1),Qo,So=X(!1),ki=v(()=>c()!==A3.PLAYING),Ti=X(!1),Rn=v(()=>u()||_()||!r(So)&&(f()&&!!yi||r(ki)&&$())),fn=X(!0),Nn=v(()=>e.uiConfig.features.thumbTimer&&Ye()&&n()==="video"&&!x()&&!d()&&!mt&&(e.uiConfig.hideThumbTimerAfterTouch&&!w()||!e.uiConfig.hideThumbTimerAfterTouch)),Zn=X(!1),Mi=v(()=>(ie()||e.showAutoplayNext&&S())&&!!nt()&&!!vt()&&(e.showAds&&I()||!e.showAds)&&f()&&!d()&&!r(Zn)),Li=X(!1),mn=v(()=>Ie()&&P()%180?M().height/M().width:1);po?.setContext(cl());let vn=je=>{clearTimeout(qo),je&&(zi.set(!0),Xt.set(!0),qo=setTimeout(()=>{Xt.set(!1)},e.uiConfig.controls.collapseMobileUnmute),mt||Vi(e.uiConfig.controls.hideTimeoutMobile))};e.store.setUiCallbacks({onStarted:vn});let Ki=()=>{clearTimeout(cn),D(So,!1),_()&&oo.set(!1)},Vi=je=>{Ki(),D(So,!0),cn=setTimeout(()=>D(So,!1),je);let xt=je-100;Qo=setTimeout(()=>{L()&&Ko.set(!1)},xt>0?xt:je)},gn=ro.subscribe(je=>{ao.set(je),je&&(clearTimeout(un),un=setTimeout(()=>ao.set(!1),e.uiConfig.controls.hide360IconTimeout))}),fo=async(je=da())=>{if(je&&!pd.device.isIOS){let xt=Sl(),Yi=_n(),xi=pd.browser.isSamsungBrowser&&xt===Te();je=xt===Yi||xi}if(je){Vi(e.uiConfig.controls.hideTimeoutFullscreen);try{await po?.remove()}catch(xt){$t({message:String(xt)})}try{let xt=T()?.width&&T()?.height?T():M();await Fg(xt)}catch(xt){$t({message:String(xt)})}}mi.set(je),e.store.getAdmanWrapper().setFullscreen(je),B()?e.store.callbacks?.onFullscreenEnter?.():e.store.callbacks?.onFullscreenExit?.()},br=je=>{let xt=je;Pn.set({width:xt.target.width,height:xt.target.height})};At(()=>(mc(fo),e.uiConfig.features.annotationsInside&&Nt?.init(r(dn)),Oa(po)&&(po?.assignPlayerContainer(r(dn)),po?.registryExternalEventHandlers({resize:br})),D(fn,!pd.device.isIphoneOrOldIpad),e.interactiveContainer&&Ie().parentElement?.insertBefore(e.interactiveContainer,Ie().nextSibling),()=>{clearTimeout(cn),clearTimeout(Qo),clearTimeout(qo),clearTimeout(un),gn(),po?.dispose().catch(je=>{$t({message:String(je)})}),vc(fo)}));let Dn=X(!0),Xn=X(!0),hn=je=>{let xt=K()+(je==="forward"?1:-1)*e.uiConfig.controls.seekStepMobile/1e3;xt<0?(D(Dn,!1),xt=0):xt>=Q()&&(D(Xn,!1),xt=Q()),D(Ti,!0),e.seekTime(xt)},_n=()=>{let je=pd.device.isIOS||e.uiConfig.features.fullscreenInternalTargetPlayerContainer||!Ue()?r(dn):Ue(),xt=je.getRootNode(),Yi=xt instanceof ShadowRoot?xt.host:xt,xi=W()instanceof HTMLElement&&W().contains(Yi);return e.uiConfig.allowChangingFullscreenTarget&&W()&&xi?W():je},$r=async()=>{try{if(da())await fc(document),$t({message:"exit fullscreen"});else{if($t({message:"request fullscreen"}),pd.device.isIOS&&!Y())return;await pc(_n())}}catch(je){$t({message:String(je)})}},Bn=()=>{gi()},On=je=>{if(je.preventDefault(),ae()){Bn();return}if(!ne()){e.firstStart(),Vi(e.uiConfig.controls.hideTimeoutCursor);return}D(Ti,!1),x()?Ki():Vi(e.uiConfig.controls.hideTimeoutMobile)},Hn=()=>{di.set(!0)},Co=()=>{mt||(Ko.set(!0),Vi(e.uiConfig.controls.hideTimeoutCursor))},qt=je=>{An&&(An(je),Vi(e.uiConfig.controls.hideTimeoutMobile))},yr=je=>{zo&&(zo(je),Vi(e.uiConfig.controls.hideTimeoutMobile))};He(()=>{Ai.set(r(et))}),He(()=>{ri.set((r(ki)||ae()||se()||ee()||ge()||!r(Mi)&&(f()||r(So)&&!r(Ti)))&&!r(Rn)&&n()==="video"&&!d())}),He(()=>{!se()&&r(Li)&&!J()&&Vi(e.uiConfig.controls.hideTimeoutMobile),D(Li,de(se()))}),He(()=>{D(Dn,K()>0),D(Xn,de(!Pe()&&K()<Q()))}),He(()=>{As(r(Mn),ae(),Ae())});let lt=H("aria_label_video_player"),Rt=H("video360");Kh({fullScreenChangeHandler:fo,getFullscreenTarget:_n}),Qh({store:e.store,getFullscreenTarget:_n});var Pt=H3();ht("blur",Ia,Bn),Re(Pt,"aria-label",lt);var Ii=h(Pt);let Qi;Ii.__click=On;var Ei=h(Ii);let Gi;at(Ei,je=>Ie(je),()=>Ie()),g(Ii);var ko=E(Ii,2);vl(ko,()=>"slot",!1,(je,xt)=>{xe(je,null,{name:cd})});var mo=E(ko,2);La(mo,Fe,je=>{var xt=O3(),Yi=le(xt);let xi=v(()=>n()!=="thumb"||d()||mt&&e.autoplay);Ja(Yi,{get hidden(){return r(xi)},get thumbUrl(){return e.thumbUrl},get startVideo(){return e.firstStart}});var Jn=E(Yi,2);{var bn=Ee=>{var Dt=V3(),pi=le(Dt);{var _i=Zo=>{let rr=v(()=>e.uiConfig.controls.seekStepMobile/1e3);Fc(Zo,{side:"left",get seekStep(){return r(rr)},handleSingleFirstClick:On,handleSecondClick:()=>hn("backward")})};V(pi,Zo=>{r(Dn)&&Zo(_i)})}var vo=E(pi,2);{var nr=Zo=>{let rr=v(()=>e.uiConfig.controls.seekStepMobile/1e3);Fc(Zo,{side:"right",get seekStep(){return r(rr)},handleSingleFirstClick:On,handleSecondClick:()=>hn("forward")})};V(vo,Zo=>{r(Xn)&&Zo(nr)})}b(Ee,Dt)};V(Jn,Ee=>{e.canRewindLive&&no&&!j().has("TIMELINE")&&Ee(bn)})}var Pi=E(Jn,2);{var Go=Ee=>{let Dt=v(()=>e.live?.startTime);rd(Ee,{get thumbUrl(){return e.thumbUrl},get startTime(){return r(Dt)}})};V(Pi,Ee=>{n()==="LiveWaitingStart"&&Ee(Go)})}var $n=E(Pi,2);{var Br=Ee=>{es(Ee,{kind:"recover",get thumbUrl(){return e.thumbUrl}})};V($n,Ee=>{n()==="LiveWaitingRecover"&&Ee(Br)})}var xr=E($n,2);{var To=Ee=>{es(Ee,{kind:"record",get thumbUrl(){return e.thumbUrl}})};V(xr,Ee=>{n()==="LiveWaitingRecord"&&Ee(To)})}var Fn=E(xr,2);{var Io=Ee=>{var Dt=R3();let pi;var _i=h(Dt);Cl(_i,{get adsSlotId(){return Ge()},get adsParams(){return ze()},get adsPreviewParam(){return ye()},get adsAutoplayParam(){return Ve()},get duration(){return qe()}}),g(Dt),C(vo=>pi=Z(Dt,1,"ads-container svelte-dtyj47",null,pi,vo),[()=>({hidden:n()!=="ads"})]),b(Ee,Dt)};V(Fn,Ee=>{e.showAds&&ne()&&Ee(Io)})}var wr=E(Fn,2);{var er=Ee=>{let Dt=v(()=>!ie()&&e.showAutoplayNext&&S());dm(Ee,{get title(){return nt()},get thumb(){return vt()},get isHide(){return r(Dt)},clickCloseIcon:()=>D(Zn,!0)})};V(wr,Ee=>{r(Mi)&&nt()&&vt()&&Ee(er)})}var Sr=E(wr,2);{var tr=Ee=>{id(Ee,{})};V(Sr,Ee=>{N()&&Ee(tr)})}var Cr=E(Sr,2);{var Yo=Ee=>{var Dt=N3(),pi=h(Dt);wl(pi,{"aria-label":Rt}),g(Dt),b(Ee,Dt)};V(Cr,Ee=>{Le()&&Ee(Yo)})}var yn=E(Cr,2);{var Un=Ee=>{od(Ee,{get thumbUrl(){return e.thumbUrl},get chromecastDeviceName(){return be()}})};V(yn,Ee=>{ge()&&Ee(Un)})}var kr=E(yn,2);{var Je=Ee=>{Xa(Ee,{get shifted(){return x()},get captions(){return Be()},get position(){return K()},get playerSize(){return M()},isMobile:!0})};V(kr,Ee=>{ke().value!=="off"&&Ee(Je)})}var It=E(kr,2);{var Qt=Ee=>{var Dt=D3();Dt.__click=[L3,ae,Ho,Bn];var pi=h(Dt);nd(pi,{}),g(Dt),b(Ee,Dt)};V(It,Ee=>{d()&&Ee(Qt)})}var ji=E(It,2);{var Eo=Ee=>{let Dt=v(()=>n()==="thumb"||n()==="LiveWaitingStart"||n()==="LiveWaitingRecover"||n()==="LiveWaitingRecord"||n()==="ads"),pi=v(()=>n()==="ads"),_i=v(()=>e.canRewindLive&&ce()!==0);td(Ee,{get bottomHidden(){return r(Dt)},get showControls(){return x()},get bottomNoSmooth(){return L()},get isAds(){return r(pi)},get canRewindLive(){return r(_i)},get logoClickable(){return e.logoClickable},get logoHidden(){return e.logoHidden},get logoTargetUrl(){return ot()},get showAutoplayNext(){return e.showAutoplayNext},get showNextPrevButtons(){return ut()},get nextButtonActive(){return pt()},get prevButtonActive(){return Tt()},get isOneVideoPlaylist(){return Lt()},get customFullscreenSupported(){return r(fn)},get endScreenShown(){return r(Mi)},toggleFullscreen:$r,get seekToInteractive(){return e.seekToInteractive},get playPrevChapter(){return e.playPrevChapter},onDisabledPlayPrevChapterClick:qt,onDisabledSeekToInteractiveClick:yr,get playerControlsWrapperRef(){return r(_r)},set playerControlsWrapperRef(vo){D(_r,de(vo))},get playerControlsRef(){return r(jn)},set playerControlsRef(vo){D(jn,de(vo))}})};V(ji,Ee=>{ne()&&Ee(Eo)})}var zn=E(ji,2);{var ir=Ee=>{var Dt=B3(),pi=h(Dt);ld(pi,{get supportLink(){return e.supportLink},returnFocus:M3,get ref(){return r(Mn)},set ref(_i){D(Mn,de(_i))}}),g(Dt),b(Ee,Dt)};V(zn,Ee=>{ae()&&Ee(ir)})}var jo=E(zn,2);let Ri=v(()=>!r(Nn));kl(jo,{get isLive(){return R()},get isHidden(){return r(Ri)},get isPlaying(){return oe()},get position(){return K()},get duration(){return Q()}});var fe=E(jo,2);{var Ct=Ee=>{Wa(Ee,{})};V(fe,Ee=>{r(Wi)&&Ee(Ct)})}var ei=E(fe,2);{var ci=Ee=>{Pl(Ee,{})};V(ei,Ee=>{$e()&&Ee(ci)})}var ui=E(ei,2);{var or=Ee=>{dd(Ee,{onClose:pn,onSelectAutoQuality:()=>{so("auto"),pn()}})};V(ui,Ee=>{r(Vn)&&Ee(or)})}b(je,xt)});var hi=E(mo,2);at(hi,je=>D(et,je),()=>r(et)),g(Pt),at(Pt,je=>D(dn,je),()=>r(dn)),C((je,xt)=>{Qi=Z(Ii,1,"video-wrapper svelte-dtyj47",null,Qi,je),Gi=Z(Ei,1,"video-container svelte-dtyj47",null,Gi,xt),tt(Ei,`transform: rotate(${P()}deg) scale(${r(mn)})`),Re(Ei,"data-is-playing",oe())},[()=>({hidden:n()!=="video"}),()=>({"fast-rotate":!e.uiConfig.isSmoothVideoRotate})]),ht("click",Pt,Hn,!0),ht("focusin",Pt,Co,!0),b(t,Pt),U(),o()}it(["click"]);function zc(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(";")}import{debounceFn as Q3}from"@vkontakte/videoplayer-shared/es2024";var U3=A('<div class="equalizer svelte-ysxd4z"><div class="col svelte-ysxd4z"></div> <div class="col svelte-ysxd4z"></div> <div class="col svelte-ysxd4z"></div></div>'),z3=A('<div class="live-icon svelte-ysxd4z"><!></div>'),q3=A('<span class="text svelte-ysxd4z"> </span>'),W3=A("<div><!> <!></div>"),K3={hash:"svelte-ysxd4z",code:`.wrapper.svelte-ysxd4z {padding:2px 6px;border-radius:4px;background-color:var(--black-alpha-40);transition:visibility var(--controls-transition-duration),
362
- opacity var(--controls-transition-duration);}.wrapper.live.svelte-ysxd4z {font-size:0;line-height:20px;height:20px;border-radius:2px;background:var(--red);padding-right:7px;}.wrapper.hidden.svelte-ysxd4z {visibility:hidden;opacity:0;}.equalizer.svelte-ysxd4z {display:inline-block;vertical-align:middle;position:relative;width:10px;height:10px;margin-top:-4px;margin-right:4px;}.live.svelte-ysxd4z .equalizer:where(.svelte-ysxd4z) {margin-top:-2px;}.equalizer.svelte-ysxd4z .col:where(.svelte-ysxd4z) {width:2px;height:10px;margin-right:2px;background:var(--btn-color, --white);position:absolute;bottom:0;transform-origin:50% 100%;
363
- animation: 1.5s infinite linear alternate;animation-play-state:paused;}.playing.svelte-ysxd4z .equalizer:where(.svelte-ysxd4z) .col:where(.svelte-ysxd4z) {animation-play-state:running;}.equalizer.svelte-ysxd4z .col:where(.svelte-ysxd4z):nth-child(1) {left:0;
364
- animation-name: svelte-ysxd4z-thumb-timer-equalizer-col1;}.equalizer.svelte-ysxd4z .col:where(.svelte-ysxd4z):nth-child(2) {left:3px;
365
- animation-name: svelte-ysxd4z-thumb-timer-equalizer-col2;}.equalizer.svelte-ysxd4z .col:where(.svelte-ysxd4z):nth-child(3) {left:6px;
366
- animation-name: svelte-ysxd4z-thumb-timer-equalizer-col3;}.live-icon.svelte-ysxd4z {display:inline-block;vertical-align:middle;width:42px;height:20px;margin:0 -7px;}
367
-
368
- @keyframes svelte-ysxd4z-thumb-timer-equalizer-col1 {
369
- 0% {
370
- transform: scaleY(0.1);
371
- }
372
-
373
- 25% {
374
- transform: scaleY(0.8);
375
- }
376
-
377
- 50% {
378
- transform: scaleY(0.4);
379
- }
380
-
381
- 75% {
382
- transform: scaleY(0.6);
383
- }
384
-
385
- 100% {
386
- transform: scaleY(0.1);
387
- }
388
- }
389
-
390
- @keyframes svelte-ysxd4z-thumb-timer-equalizer-col2 {
391
- 0% {
392
- transform: scaleY(1);
393
- }
394
-
395
- 25% {
396
- transform: scaleY(0.3);
397
- }
398
-
399
- 50% {
400
- transform: scaleY(0.9);
401
- }
402
-
403
- 75% {
404
- transform: scaleY(0.6);
405
- }
406
-
407
- 100% {
408
- transform: scaleY(1);
409
- }
410
- }
411
-
412
- @keyframes svelte-ysxd4z-thumb-timer-equalizer-col3 {
413
- 0% {
414
- transform: scaleY(0.6);
415
- }
416
-
417
- 25% {
418
- transform: scaleY(0.9);
419
- }
420
-
421
- 50% {
422
- transform: scaleY(0.1);
423
- }
424
-
425
- 75% {
426
- transform: scaleY(0.9);
427
- }
428
-
429
- 100% {
430
- transform: scaleY(0.6);
431
- }
432
- }.text.svelte-ysxd4z {font-size:13px;line-height:16px;color:var(--controls-time);font-weight:500;}`};function um(t,e){z(t,K3);let i=m(e,"withEqualizer",3,!1),o=m(e,"isLive",3,!1),n=m(e,"isPlaying",3,!1),a=m(e,"isHidden",3,!1);var s=W3();let d;var l=h(s);{var c=$=>{var x=U3();b($,x)};V(l,$=>{i()&&$(c)})}var u=E(l,2);{var _=$=>{var x=z3(),w=h(x);Fa(w,{isActive:!0}),g(x),b($,x)},f=$=>{var x=q3(),w=h(x,!0);g(x),C(()=>ue(w,e.time)),b($,x)};V(u,$=>{o()?$(_):$(f,!1)})}g(s),C($=>d=Z(s,1,"wrapper svelte-ysxd4z",null,d,$),[()=>({live:o(),hidden:a(),playing:n()})]),b(t,s)}var G3=A('<div class="player-wrapper svelte-ftsecf"><!> <!> <!> <button class="test svelte-ftsecf">press</button> <div class="time-container svelte-ftsecf"><!></div> <div><!></div></div>'),Y3={hash:"svelte-ftsecf",code:`.player-wrapper.svelte-ftsecf {position:absolute;width:100%;height:100%;}.player-wrapper.svelte-ftsecf .player-media {position:absolute;left:0;top:0;width:100%;height:100%;background:var(--black);transition:transform 0.2s ease-in-out;}.test.svelte-ftsecf {z-index:100;position:absolute;border:1px solid pink;}
433
-
434
- /* .controls-wrapper {
435
- pointer-events: none;
436
- opacity: 1;
437
- position: absolute;
438
- z-index: var(--controls-container-z-index);
439
- width: 100%;
440
- bottom: 0;
441
- left: 0;
442
- transition: opacity var(--controls-transition-duration) var(--controls-transition-fn);
443
- } */.timeline.svelte-ftsecf {opacity:0;
444
- /* pointer-events: none; */opacity:1;position:absolute;z-index:var(--controls-container-z-index);width:100%;bottom:0;left:0;transition:opacity var(--controls-transition-duration) var(--controls-transition-fn);}.visible.svelte-ftsecf {opacity:1;}.time-container.svelte-ftsecf {position:absolute;bottom:8px;right:8px;z-index:var(--thumb-timer-z-index);}`};function pm(t,e){F(e,!0),z(t,Y3);let[i,o]=Me(),n=()=>y(ae,"$playerSize",i),a=()=>y(S,"$playerPhase",i),s=()=>y(I,"$crashed$",i),d=()=>y(T,"$currentSubtitle$",i),l=()=>y(B,"$currentSubtitleCaptions$",i),c=()=>y(M,"$positionExact$",i),u=()=>y(Q,"$isLive$",i),_=()=>y(L,"$isPlaying$",i),f=()=>y(P,"$duration$",i),$=()=>y(K,"$positionWithScrubbing$",i),x=()=>y(Y,"$isRewindableLive$",i),w=m(e,"videoContainer",15),{playerPhase:S,state:{crashed$:I,duration$:P,positionExact$:M,isPlaying$:L,currentSubtitle$:T,currentSubtitleCaptions$:B,positionWithScrubbing$:K,isLive$:Q,isRewindableLive$:Y},ui:{playerSize:ae,controls:se},actions:{internal:{toggleSubtitle:ee,getVideoElement:ge}}}=_e(),J=X(!1),Pe=de({}),Ae=()=>{D(J,!0)},oe=()=>{D(J,!1)},Fe=Q3(Bs,260);He(()=>{n(),Fe(ge(),se,Pe,r(J))});var j=G3(),N=h(j);ud(N,{hideCursor:!1,get videoContainer(){return w()},set videoContainer(ye){w(ye)}});var Le=E(N,2);let be=v(()=>a()!=="thumb"||s());Ja(Le,{get hidden(){return r(be)},get thumbUrl(){return e.thumbUrl},iconVisible:!1});var ke=E(Le,2);{var Be=ye=>{Xa(ye,{shifted:!1,get captions(){return l()},get position(){return c()},get playerSize(){return n()}})};V(ke,ye=>{d().value!=="off"&&ye(Be)})}var ce=E(ke,2);ce.__click=ee;var R=E(ce,2),$e=h(R);let Ie=v(()=>_()?Oo(f()-$()):Oo(f()));um($e,{get isLive(){return u()},get isPlaying(){return _()},get time(){return r(Ie)}}),g(R);var Ge=E(R,2);Z(Ge,1,"timeline svelte-ftsecf",null,{},{visible:!0});var ze=h(Ge);Zr(ze,{needPadding:!1,get canRewindLive(){return e.canRewindLive},isAds:!1,get isRewindableLive(){return x()},isHidden:!1,get ref(){return Pe.timeline},set ref(ye){Pe.timeline=ye}}),g(Ge),g(j),ht("mouseenter",j,Ae),ht("mouseleave",j,oe),b(t,j),U(),o()}it(["click"]);var ex=A("<div><!></div>"),tx={hash:"svelte-1aahjq",code:`.root.svelte-1aahjq {--white: #fff;--black: #000;--red: #ff3347;--blue-light: #70c1ff;--black-alpha-40: rgba(0, 0, 0, 0.4);--white-alpha-24: rgba(255, 255, 255, 0.24);--white-alpha-72: rgba(255, 255, 255, 0.72);--devider-gray: #dce1e6;--text-gray: #626d7a;--font: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;--controls-height: 40px;--controls-gradient-height: 100px;--controls-transition-duration: 0.25s;--controls-transition-fn: cubic-bezier(0.455, 0.03, 0.515, 0.955);--controls-desktop-item-margin-left: 4px;--focused: var(--white);--focused-element-shadow: inset 0 0 0 2px var(--focused);--focused-slider-shadow: 0 0 0 2px var(--focused);--big-play-size: 96px;--big-play-radius: 50%;--big-play-bg-color: rgba(0, 0, 0, 0.5);--big-play-hover-bg-color: rgba(0, 0, 0, 0.6);--big-play-icon-width: 38px;--big-play-icon-height: 33px;--interactive-episode-complete: rgba(92, 156, 230, 1);--slider-bg: rgba(255, 255, 255, 0.4);--slider-filled-bg: var(--white);--slider-handle-bg: var(--white);--slider-loaded-bg: rgba(255, 255, 255, 0.4);--slider-height: 3px;--slider-video-episode-gap: 1.5px;--slider-radius: 0px;--slider-handle-size: 12px;--slider-filled-ads: rgba(103, 165, 235, 1);--slider-disabled-color: rgba(248, 248, 248, 0.31);--slider-volume-height: 5px;--slider-volume-radius: calc(var(--slider-volume-height) / 2);--slider-volume-handle-size: 13px;
360
+ .ads-container.svelte-dtyj47 {position:absolute;width:100%;height:100%;left:0;top:0;}.video-wrapper.svelte-dtyj47 {z-index:var(--video-container-z-index);background:var(--black);}.video-container.svelte-dtyj47 {z-index:var(--video-container-z-index);transition:var(--rotate-transition-duration) ease all;}.video-container.fast-rotate.svelte-dtyj47 {transition:none;}.ads-container.svelte-dtyj47 {z-index:var(--ads-container-z-index);background:var(--black);}.settings-mobile.svelte-dtyj47 {position:absolute;z-index:var(--settings-menu-z-index);top:50%;left:50%;transform:translate(-50%,-50%);transition:opacity var(--controls-transition-duration);display:flex;align-items:center;max-width:320px;width:90%;}`};function lm(t,e){F(e,!0),W(t,D3);let[i,o]=De(),n=()=>y(Gt,"$playerPhase",i),a=()=>y(Fo,"$isLoaderVisible",i),s=()=>y(Ee,"$adPlaybackState",i),d=()=>y(bo,"$crashed",i),l=()=>y(Pn,"$notificationsToShow$",i),c=()=>y(Je,"$playbackState$",i),u=()=>y(Ge,"$graphIsOpened$",i),_=()=>y(Wi,"$interactiveHideMobileControls",i),f=()=>y(co,"$isEnded$",i),$=()=>y(mi,"$isInteractiveExpectation$",i),x=()=>y(ri,"$controlsVisible",i),w=()=>y(ui,"$touched",i),S=()=>y(Uo,"$autoplayNextEnabled$",i),I=()=>y(hi,"$postrollPassed",i),M=()=>y(Yt,"$rotateAlpha",i),P=()=>y(Tn,"$playerSize",i),A=()=>y(Ko,"$bottomNoSmooth",i),T=()=>y($t,"$videoSize",i),B=()=>y(Xt,"$isFullscreen",i),Q=()=>y(ct,"$position$",i),G=()=>y(Bt,"$duration$",i),ee=()=>y(sn,"$loadedMetadata",i),te=()=>y(Oo,"$settingsMenuVisible",i),ie=()=>y(to,"$scrubbingInProgress",i),oe=()=>y(nn,"$volumeChangingInProgress",i),ge=()=>y(z,"$chromecastConnected$",i),X=()=>y(ai,"$isInteractiveTime$",i),Ve=()=>y(_o,"$isActiveLive",i),Ae=()=>y(on,"$settingsMenuOpenedByKeyboard",i),se=()=>y(jn,"$isPlaying$",i),He=()=>y(Ke,"$language$",i),j=()=>y(an,"$disabledControls$",i),D=()=>y(io,"$is3DVideo",i),Re=()=>y(oo,"$icon3DVideoVisible",i),_e=()=>y(zt,"$chromecastDeviceName$",i),ke=()=>y(Ot,"$currentSubtitle$",i),Be=()=>y(po,"$currentSubtitleCaptions$",i),pe=()=>y(Ci,"$realDuration$",i),R=()=>y(ei,"$isLive$",i),ye=()=>y(Ho,"$debugPanelVisible",i),Ie=v(e,"videoContainer",15),je=v(e,"adsSlotId",3,void 0),ze=v(e,"adsParams",3,void 0),Te=v(e,"adsPreviewParam",3,void 0),Me=v(e,"adsAutoplayParam",3,void 0),We=v(e,"duration",3,void 0),it=v(e,"logoTargetUrl",3,""),vt=v(e,"showNextPrevButtons",3,!1),st=v(e,"nextButtonActive",3,!1),It=v(e,"prevButtonActive",3,!1),nt=v(e,"endScreenVideoTitle",3,void 0),gt=v(e,"endScreenVideoThumb",3,void 0),Mt=v(e,"isOneVideoPlaylist",3,!1),Ce=v(e,"shadowRootContainer",3,void 0),Oe=v(e,"outerContainerRef",3,void 0),Ze=v(e,"showMiniTimer",3,!1),q=v(e,"fullScreenTarget",3,void 0),ae=v(e,"playerStarted",3,!1),ne=v(e,"showEndScreen",3,!0),{notifications$:Fe,graphIsOpened$:Ge}=zi(),wt=e.store.getLogger().createComponentLog("Root component"),Ke=e.store.interfaceLanguage$,Je=e.store.state.playbackState$,Ee=e.store.ads.playbackState,ct=e.store.state.positionWithScrubbing$,Bt=e.store.state.duration$,Gt=e.store.playerPhase,Xt=e.store.ui.isFullscreen,ri=e.store.ui.controlsVisible,Wi=e.store.ui.interactiveHideMobileControls,Oo=e.store.ui.settingsMenu.visible$,on=e.store.ui.settingsMenu.openedByBtnKeyboard$,to=e.store.ui.scrubbingInProgress,nn=e.store.ui.volumeChangingInProgress,Ho=e.store.ui.debugPanelVisible,Fo=e.store.state.isLoaderVisible,co=e.store.state.isEnded$,z=e.store.state.chromecastConnected$,zt=e.store.state.chromecastDeviceName$,hi=e.store.ads.postrollPassed,qi=e.store.ui.mobileUnmuteButtonExpanded,Jt=e.store.ui.mobileUnmuteButtonVisible,ei=e.store.state.isLive$,jn=e.store.state.isPlaying$,_o=e.store.state.isActiveLive$,rn=e.store.state.isRewindableLive$,bo=e.store.state.crashed$,Vt=e.store.webApi.annotationsApi,uo=e.store.webApi.pictureInPictureApi,$t=e.store.state.videoSize$,Ot=e.store.state.currentSubtitle$,po=e.store.state.currentSubtitleCaptions$,Ci=e.store.state.duration$,Tn=e.store.ui.playerSize,io=e.store.ui.is3DVideo,oo=e.store.ui.icon3DVideoVisible,Yt=e.store.ui.rotateAlpha,mt=e.store.state.isInteractive,ai=e.store.state.isInteractiveTime$,mi=e.store.state.isInteractiveExpectation$,_i=e.store.state.hasInteractiveBranches,an=e.store.ui.controls.disabledControls$,ui=e.store.ui.touched,Pi=e.store.ui.overlayContainer$,Uo=e.store.ui.autoplayNextEnabled$,sn=e.store.state.loadedMetadata$,vi=e.store.actions.internal.closeSettingsMenu,In=e.store.callbacks?.onDisabledPlayPrevChapterClick,zo=e.store.callbacks?.onDisabledSeekToInteractiveClick,no=e.store.actions.internal.setQuality,ln=Y(void 0),$r=Y(void 0),Zn=Y(void 0),En=Y(void 0),dn,Wo,cn,Ki=m(()=>(n()==="video"&&a()||n()==="ads"&&s()==="inactive")&&!d()),et=Y(void 0),{closeNotification:qo,notificationsToShow$:Pn}=Fe,An=m(()=>!!l().slow_video),un=()=>qo("slow_video"),Ko=re(!1),Qo,$o=Y(!1),ki=m(()=>c()!==k3.PLAYING),Ti=Y(!1),Mn=m(()=>u()||_()||!r($o)&&(f()&&!!_i||r(ki)&&$())),pn=Y(!0),Ln=m(()=>e.uiConfig.features.thumbTimer&&Ze()&&n()==="video"&&!x()&&!d()&&!mt&&(e.uiConfig.hideThumbTimerAfterTouch&&!w()||!e.uiConfig.hideThumbTimerAfterTouch)),Xn=Y(!1),Ai=m(()=>(ne()||e.showAutoplayNext&&S())&&!!nt()&&!!gt()&&(e.showAds&&I()||!e.showAds)&&f()&&!d()&&!r(Xn)),Mi=Y(!1),fn=m(()=>Ie()&&M()%180?P().height/P().width:1);uo?.setContext(nl());let mn=Xe=>{clearTimeout(Wo),Xe&&(Jt.set(!0),qi.set(!0),Wo=setTimeout(()=>{qi.set(!1)},e.uiConfig.controls.collapseMobileUnmute),mt||Li(e.uiConfig.controls.hideTimeoutMobile))};e.store.setUiCallbacks({onStarted:mn});let Qi=()=>{clearTimeout(dn),N($o,!1),_()&&Wi.set(!1)},Li=Xe=>{Qi(),N($o,!0),dn=setTimeout(()=>N($o,!1),Xe);let pt=Xe-100;Qo=setTimeout(()=>{A()&&Ko.set(!1)},pt>0?pt:Xe)},vn=io.subscribe(Xe=>{oo.set(Xe),Xe&&(clearTimeout(cn),cn=setTimeout(()=>oo.set(!1),e.uiConfig.controls.hide360IconTimeout))}),fo=async(Xe=sa())=>{if(Xe&&!ld.device.isIOS){let pt=_l(),Di=_n(),$i=ld.browser.isSamsungBrowser&&pt===Ce();Xe=pt===Di||$i}if(Xe){Li(e.uiConfig.controls.hideTimeoutFullscreen);try{await uo?.remove()}catch(pt){wt({message:String(pt)})}try{let pt=T()?.width&&T()?.height?T():P();await Bg(pt)}catch(pt){wt({message:String(pt)})}}Xt.set(Xe),e.store.getAdmanWrapper().setFullscreen(Xe),B()?e.store.callbacks?.onFullscreenEnter?.():e.store.callbacks?.onFullscreenExit?.()},yr=Xe=>{let pt=Xe;Tn.set({width:pt.target.width,height:pt.target.height})};At(()=>(cc(fo),e.uiConfig.features.annotationsInside&&Vt?.init(r(ln)),Ba(uo)&&(uo?.assignPlayerContainer(r(ln)),uo?.registryExternalEventHandlers({resize:yr})),N(pn,!ld.device.isIphoneOrOldIpad),e.interactiveContainer&&Ie().parentElement?.insertBefore(e.interactiveContainer,Ie().nextSibling),()=>{clearTimeout(dn),clearTimeout(Qo),clearTimeout(Wo),clearTimeout(cn),vn(),uo?.dispose().catch(Xe=>{wt({message:String(Xe)})}),uc(fo)}));let gn=Y(!0),Jn=Y(!0),hn=Xe=>{let pt=Q()+(Xe==="forward"?1:-1)*e.uiConfig.controls.seekStepMobile/1e3;pt<0?(N(gn,!1),pt=0):pt>=G()&&(N(Jn,!1),pt=G()),N(Ti,!0),e.seekTime(pt)},_n=()=>{let Xe=ld.device.isIOS||e.uiConfig.features.fullscreenInternalTargetPlayerContainer||!Oe()?r(ln):Oe(),pt=Xe.getRootNode(),Di=pt instanceof ShadowRoot?pt.host:pt,$i=q()instanceof HTMLElement&&q().contains(Di);return e.uiConfig.allowChangingFullscreenTarget&&q()&&$i?q():Xe},xr=async()=>{try{if(sa())await dc(document),wt({message:"exit fullscreen"});else{if(wt({message:"request fullscreen"}),ld.device.isIOS&&!ee())return;await lc(_n())}}catch(Xe){wt({message:String(Xe)})}},Vn=()=>{vi()},er=Xe=>{if(Xe.preventDefault(),te()){Vn();return}if(!ae()){e.firstStart(),Li(e.uiConfig.controls.hideTimeoutCursor);return}N(Ti,!1),x()?Qi():Li(e.uiConfig.controls.hideTimeoutMobile)},Rn=()=>{ui.set(!0)},bn=()=>{mt||(Ko.set(!0),Li(e.uiConfig.controls.hideTimeoutCursor))},qt=Xe=>{In&&(In(Xe),Li(e.uiConfig.controls.hideTimeoutMobile))},yo=Xe=>{zo&&(zo(Xe),Li(e.uiConfig.controls.hideTimeoutMobile))};Ue(()=>{Pi.set(r(et))}),Ue(()=>{ri.set((r(ki)||te()||ie()||oe()||ge()||!r(Ai)&&(f()||r($o)&&!r(Ti)))&&!r(Mn)&&n()==="video"&&!d())}),Ue(()=>{!ie()&&r(Mi)&&!X()&&Li(e.uiConfig.controls.hideTimeoutMobile),N(Mi,de(ie()))}),Ue(()=>{N(gn,Q()>0),N(Jn,de(!Ve()&&Q()<G()))}),Ue(()=>{Is(r(En),te(),Ae())});let lt=H("aria_label_video_player"),Lt=H("video360");zh({fullScreenChangeHandler:fo,getFullscreenTarget:_n}),Wh({store:e.store,getFullscreenTarget:_n});var Zt=R3();Ct("blur",ka,Vn),Le(Zt,"aria-label",lt);var Kt=h(Zt);let Gi;Kt.__click=er;var Vi=h(Kt);let Ri;at(Vi,Xe=>Ie(Xe),()=>Ie()),g(Kt);var xo=E(Kt,2);dl(xo,()=>"slot",!1,(Xe,pt)=>{he(Xe,null,{name:sd})});var wo=E(xo,2);Aa(wo,He,Xe=>{var pt=V3(),Di=le(pt);let $i=m(()=>n()!=="thumb"||d()||mt&&e.autoplay);td(Di,{get hidden(){return r($i)},get thumbUrl(){return e.thumbUrl},get startVideo(){return e.firstStart}});var tr=E(Di,2);{var ir=Pe=>{var Tt=E3(),li=le(Tt);{var Ei=Po=>{let Tr=m(()=>e.uiConfig.controls.seekStepMobile/1e3);Bc(Po,{side:"left",get seekStep(){return r(Tr)},handleSingleFirstClick:er,handleSecondClick:()=>hn("backward")})};V(li,Po=>{r(gn)&&Po(Ei)})}var Eo=E(li,2);{var sr=Po=>{let Tr=m(()=>e.uiConfig.controls.seekStepMobile/1e3);Bc(Po,{side:"right",get seekStep(){return r(Tr)},handleSingleFirstClick:er,handleSecondClick:()=>hn("forward")})};V(Eo,Po=>{r(Jn)&&Po(sr)})}b(Pe,Tt)};V(tr,Pe=>{e.canRewindLive&&rn&&!j().has("TIMELINE")&&Pe(ir)})}var yi=E(tr,2);{var So=Pe=>{let Tt=m(()=>e.live?.startTime);id(Pe,{get thumbUrl(){return e.thumbUrl},get startTime(){return r(Tt)}})};V(yi,Pe=>{n()==="LiveWaitingStart"&&Pe(So)})}var $n=E(yi,2);{var Dr=Pe=>{ja(Pe,{kind:"recover",get thumbUrl(){return e.thumbUrl}})};V($n,Pe=>{n()==="LiveWaitingRecover"&&Pe(Dr)})}var wr=E($n,2);{var Co=Pe=>{ja(Pe,{kind:"record",get thumbUrl(){return e.thumbUrl}})};V(wr,Pe=>{n()==="LiveWaitingRecord"&&Pe(Co)})}var Dn=E(wr,2);{var ko=Pe=>{var Tt=P3();let li;var Ei=h(Tt);bl(Ei,{get adsSlotId(){return je()},get adsParams(){return ze()},get adsPreviewParam(){return Te()},get adsAutoplayParam(){return Me()},get duration(){return We()}}),g(Tt),C(Eo=>li=Z(Tt,1,"ads-container svelte-dtyj47",null,li,Eo),[()=>({hidden:n()!=="ads"})]),b(Pe,Tt)};V(Dn,Pe=>{e.showAds&&ae()&&Pe(ko)})}var Sr=E(Dn,2);{var or=Pe=>{let Tt=m(()=>!ne()&&e.showAutoplayNext&&S());sm(Pe,{get title(){return nt()},get thumb(){return gt()},get isHide(){return r(Tt)},clickCloseIcon:()=>N(Xn,!0)})};V(Sr,Pe=>{r(Ai)&&nt()&&gt()&&Pe(or)})}var nr=E(Sr,2);{var Cr=Pe=>{Zl(Pe,{})};V(nr,Pe=>{D()&&Pe(Cr)})}var To=E(nr,2);{var kr=Pe=>{var Tt=A3(),li=h(Tt);hl(li,{"aria-label":Lt}),g(Tt),b(Pe,Tt)};V(To,Pe=>{Re()&&Pe(kr)})}var Nn=E(To,2);{var Bn=Pe=>{Jl(Pe,{get thumbUrl(){return e.thumbUrl},get chromecastDeviceName(){return _e()}})};V(Nn,Pe=>{ge()&&Pe(Bn)})}var rr=E(Nn,2);{var Ye=Pe=>{Xl(Pe,{get shifted(){return x()},get captions(){return Be()},get position(){return Q()},get playerSize(){return P()},isMobile:!0})};V(rr,Pe=>{ke().value!=="off"&&Pe(Ye)})}var Et=E(rr,2);{var pi=Pe=>{var Tt=M3();Tt.__click=[I3,te,Oo,Vn];var li=h(Tt);ed(li,{}),g(Tt),b(Pe,Tt)};V(Et,Pe=>{d()&&Pe(pi)})}var ro=E(Et,2);{var Io=Pe=>{let Tt=m(()=>n()==="thumb"||n()==="LiveWaitingStart"||n()==="LiveWaitingRecover"||n()==="LiveWaitingRecord"||n()==="ads"),li=m(()=>n()==="ads"),Ei=m(()=>e.canRewindLive&&pe()!==0);jl(Pe,{get bottomHidden(){return r(Tt)},get showControls(){return x()},get bottomNoSmooth(){return A()},get isAds(){return r(li)},get canRewindLive(){return r(Ei)},get logoClickable(){return e.logoClickable},get logoHidden(){return e.logoHidden},get logoTargetUrl(){return it()},get showAutoplayNext(){return e.showAutoplayNext},get showNextPrevButtons(){return vt()},get nextButtonActive(){return st()},get prevButtonActive(){return It()},get isOneVideoPlaylist(){return Mt()},get customFullscreenSupported(){return r(pn)},get endScreenShown(){return r(Ai)},toggleFullscreen:xr,get seekToInteractive(){return e.seekToInteractive},get playPrevChapter(){return e.playPrevChapter},onDisabledPlayPrevChapterClick:qt,onDisabledSeekToInteractiveClick:yo,get playerControlsWrapperRef(){return r($r)},set playerControlsWrapperRef(Eo){N($r,de(Eo))},get playerControlsRef(){return r(Zn)},set playerControlsRef(Eo){N(Zn,de(Eo))}})};V(ro,Pe=>{ae()&&Pe(Io)})}var On=E(ro,2);{var ar=Pe=>{var Tt=L3(),li=h(Tt);rd(li,{get supportLink(){return e.supportLink},returnFocus:T3,get ref(){return r(En)},set ref(Ei){N(En,de(Ei))}}),g(Tt),b(Pe,Tt)};V(On,Pe=>{te()&&Pe(ar)})}var we=E(On,2);let yt=m(()=>!r(Ln));yl(we,{get isLive(){return R()},get isHidden(){return r(yt)},get isPlaying(){return se()},get position(){return Q()},get duration(){return G()}});var Dt=E(we,2);{var Wt=Pe=>{za(Pe,{})};V(Dt,Pe=>{r(Ki)&&Pe(Wt)})}var Ni=E(Dt,2);{var Ii=Pe=>{Cl(Pe,{})};V(Ni,Pe=>{ye()&&Pe(Ii)})}var si=E(Ni,2);{var Hn=Pe=>{ad(Pe,{onClose:un,onSelectAutoQuality:()=>{no("auto"),un()}})};V(si,Pe=>{r(An)&&Pe(Hn)})}b(Xe,pt)});var bi=E(wo,2);at(bi,Xe=>N(et,Xe),()=>r(et)),g(Zt),at(Zt,Xe=>N(ln,Xe),()=>r(ln)),C((Xe,pt)=>{Gi=Z(Kt,1,"video-wrapper svelte-dtyj47",null,Gi,Xe),Ri=Z(Vi,1,"video-container svelte-dtyj47",null,Ri,pt),tt(Vi,`transform: rotate(${M()}deg) scale(${r(fn)})`),Le(Vi,"data-is-playing",se())},[()=>({hidden:n()!=="video"}),()=>({"fast-rotate":!e.uiConfig.isSmoothVideoRotate})]),Ct("click",Zt,Rn,!0),Ct("focusin",Zt,bn,!0),b(t,Zt),U(),o()}ot(["click"]);function Hc(t){let e="";return lo(t.timelineSliderFilledColor)&&(e+=`--timeline-slider-filled-bg:${t.timelineSliderFilledColor};`),lo(t.timelineSliderHandleColor)&&(e+=`--timeline-slider-handle-bg:${t.timelineSliderHandleColor};`),lo(t.timelineSliderLoadedColor)&&(e+=`--timeline-slider-loaded-bg:${t.timelineSliderLoadedColor};`),lo(t.timelineSliderColor)&&(e+=`--timeline-slider-bg:${t.timelineSliderColor};`),lo(t.volumeSliderColor)&&(e+=`--volume-slider-bg:${t.volumeSliderColor};`),lo(t.volumeSliderHandleColor)&&(e+=`--volume-slider-handle-bg:${t.volumeSliderHandleColor};`),lo(t.volumeSliderFilledColor)&&(e+=`--volume-slider-filled-bg:${t.volumeSliderFilledColor};`),lo(t.controlsTimeColor)&&(e+=`--controls-time:${t.controlsTimeColor};`),lo(t.timelineSliderFilledActiveLiveColor)&&(e+=`--timeline-slider-filled-active-live-bg:${t.timelineSliderFilledActiveLiveColor};`),lo(t.timelineSliderHandleActiveLiveColor)&&(e+=`--timeline-slider-handle-active-live-bg:${t.timelineSliderHandleActiveLiveColor};`),lo(t.buttonColor)&&(e+=`--btn-color:${t.buttonColor};`),lo(t.buttonToggleOnColor)&&(e+=`--toggle-color-on:${t.buttonToggleOnColor};`,e+=`--toggle-color-autoplay-on:${t.buttonToggleOnColor};`),lo(t.focusedColor)&&(e+=`--focused:${t.focusedColor};`),lo(t.focusedOutlineWidth)&&(e+=`--focused-outline-width:${t.focusedOutlineWidth};`),lo(t.focusedOutlineRadius)&&(e+=`--focused-outline-radius:${t.focusedOutlineRadius};`),lo(t.controlsDesktopPaddingHorizontal)&&(e+=`--controls-desktop-padding-horizontal:${t.controlsDesktopPaddingHorizontal};`),lo(t.timelinePaddingHorizontal)&&(e+=`--timeline-padding-horizontal:${t.timelinePaddingHorizontal};`),e.length&&e||void 0}function lo(t){return typeof t=="string"&&!t.includes(";")}var F3=L('<div class="root svelte-1uxry5g"><!></div>'),U3={hash:"svelte-1uxry5g",code:`.root.svelte-1uxry5g {--white: #fff;--black: #000;--red: #ff3347;--blue-light: #70c1ff;--black-alpha-40: rgba(0, 0, 0, 0.4);--white-alpha-24: rgba(255, 255, 255, 0.24);--white-alpha-72: rgba(255, 255, 255, 0.72);--devider-gray: #dce1e6;--text-gray: #626d7a;--font: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;--controls-height: 40px;--controls-gradient-height: 100px;--controls-transition-duration: 0.25s;--controls-transition-fn: cubic-bezier(0.455, 0.03, 0.515, 0.955);--controls-desktop-item-margin-left: 4px;--controls-desktop-padding-horizontal: 4px;--focused: var(--white);--focused-outline-width: 2px;--focused-outline-radius: 0;--focused-element-shadow: inset 0 0 0 var(--focused-outline-width) var(--focused);--focused-slider-shadow: 0 0 0 2px var(--focused);--big-play-size: 96px;--big-play-radius: 50%;--big-play-bg-color: rgba(0, 0, 0, 0.5);--big-play-hover-bg-color: rgba(0, 0, 0, 0.6);--big-play-icon-width: 38px;--big-play-icon-height: 33px;--interactive-episode-complete: rgba(92, 156, 230, 1);--slider-bg: rgba(255, 255, 255, 0.4);--slider-filled-bg: var(--white);--slider-handle-bg: var(--white);--slider-loaded-bg: rgba(255, 255, 255, 0.4);--slider-height: 3px;--slider-video-episode-gap: 1.5px;--slider-radius: 0px;--slider-handle-size: 12px;--slider-filled-ads: rgba(103, 165, 235, 1);--slider-disabled-color: rgba(248, 248, 248, 0.31);--slider-volume-height: 5px;--slider-volume-radius: calc(var(--slider-volume-height) / 2);--slider-volume-handle-size: 13px;
445
361
 
446
362
  /* USER DEFINED COLORS */
447
363
 
@@ -468,12 +384,12 @@ Try switching the\xA0quality to\xA0Auto.`},Vg=x0;var Yr=new Map;Yr.set(Ng.EN,Vg)
468
384
  rgba(0, 0, 0, 0.96) 86.67%,
469
385
  rgba(0, 0, 0, 0.99) 93.33%,
470
386
  #000 100%
471
- );--timeline-preview-shadow: rgba(0, 0, 0, 0.08);--timeline-preview-bg: rgba(34, 34, 34, 1);--settings-bg: rgba(0, 0, 0, 0.72);--settings-item-bg-hover: rgba(255, 255, 255, 0.08);--settings-radius: 8px;--mobile-settings-bg: #2c2d2e;--divider-border: 1px solid var(--white-alpha-24);--toggle-color-separator: #363738;--toggle-color-off: #656565;--toggle-color-on: #71aaeb;--toggle-color-autoplay-on: var(--white);--notification-bg: #2C2D2E;--notification-radius: 8px;--button-hover-transition: opacity 0.2s;--video-container-z-index: 0;--controls-container-z-index: 1;--ads-container-z-index: 1;--end-screen-mobile-z-index: 1;--notification-z-index: 1;--thumb-timer-z-index: 2;--debug-panel-z-index: 2;--settings-menu-z-index: 2;--context-menu-z-index: 3;--hot-key-helpers-container-z-index: 3;--overlay-container-z-index: 4;--rotate-transition-duration: 0.25s;--btn-color: var(--white);position:relative;width:100%;height:100%;color:var(--white);font-size:12px;line-height:normal;overflow:hidden;outline:0;user-select:none;
472
- /* --vk-vp-custom-font - vk video player custom font */font-family:var(--vk-vp-custom-font, var(--font));background:var(--black);}.root.visible-outside.svelte-1aahjq {overflow:visible;}
387
+ );--timeline-preview-shadow: rgba(0, 0, 0, 0.08);--timeline-preview-bg: rgba(34, 34, 34, 1);--timeline-padding-horizontal: 10px;--settings-bg: rgba(0, 0, 0, 0.72);--settings-item-bg-hover: rgba(255, 255, 255, 0.08);--settings-radius: 8px;--mobile-settings-bg: #2c2d2e;--divider-border: 1px solid var(--white-alpha-24);--toggle-color-separator: #363738;--toggle-color-off: #656565;--toggle-color-on: #71aaeb;--toggle-color-autoplay-on: var(--white);--notification-bg: #2C2D2E;--notification-radius: 8px;--button-hover-transition: opacity 0.2s;--video-container-z-index: 0;--controls-container-z-index: 1;--ads-container-z-index: 1;--end-screen-mobile-z-index: 1;--notification-z-index: 1;--thumb-timer-z-index: 2;--debug-panel-z-index: 2;--settings-menu-z-index: 2;--context-menu-z-index: 3;--hot-key-helpers-container-z-index: 3;--overlay-container-z-index: 4;--rotate-transition-duration: 0.25s;--btn-color: var(--white);position:relative;width:100%;height:100%;color:var(--white);font-size:12px;line-height:normal;overflow:hidden;outline:0;user-select:none;
388
+ /* --vk-vp-custom-font - vk video player custom font */font-family:var(--vk-vp-custom-font, var(--font));background:var(--black);}
473
389
 
474
390
  /* css reset start */* {-webkit-tap-highlight-color:transparent;}button {border:none;margin:0;padding:0;width:auto;overflow:visible;background:transparent;color:inherit;font:inherit;line-height:normal;-webkit-font-smoothing:inherit;-moz-osx-font-smoothing:inherit;-webkit-appearance:none;cursor:pointer;}p {margin:0;}svg:not(.interactive-root svg) {pointer-events:none;}.interactive-root {
475
- /* --vk-vp-int-custom-font - vk video player interactive custom font */font-family:var(--vk-vp-int-custom-font, inherit);}*:focus, *:focus-visible {outline:none;}*:focus-visible {box-shadow:var(--focused-element-shadow);}
391
+ /* --vk-vp-int-custom-font - vk video player interactive custom font */font-family:var(--vk-vp-int-custom-font, inherit);}*:focus, *:focus-visible {outline:none;}*:focus-visible {box-shadow:var(--focused-element-shadow);border-radius:var(--focused-outline-radius);}
476
392
  /* css reset end */.hidden {visibility:hidden;opacity:0;}.overlay-container {pointer-events:none;top:0;left:0;height:100%;width:100%;position:fixed;z-index:var(--overlay-container-z-index);}
477
393
 
478
- /* \u041A\u043B\u0430\u0441\u0441 \u0434\u043B\u044F \u0441\u043E\u043A\u0440\u044B\u0442\u0438\u0435 \u043A\u043E\u043D\u0442\u0435\u043D\u0442\u0430 \u0432\u0438\u0437\u0443\u0430\u043B\u044C\u043D\u043E \u043D\u043E \u043D\u0435 \u0434\u043B\u044F \u043E\u0431\u0445\u043E\u0434\u0430 \u043F\u043E \u0442\u0430\u0431 \u0438 \u0441\u043A\u0440\u0438\u043D \u0440\u0438\u0434\u0435\u0440\u0430 */.out-of-view {position:absolute !important;left:-1000vh !important;}.icon.icon-error-stub {display:flex;justify-content:center;align-items:center;}`};function fm(t,e){F(e,!0),z(t,tx);let[i,o]=Me(),n=()=>y(Lt,"$isLive$",i),a=m(e,"sources",7),s=m(e,"store",7),d=m(e,"microStoresRoot",7),l=m(e,"videoConfig",7),c=m(e,"uiConfig",7),u=m(e,"title",7),_=m(e,"thumbUrl",7),f=m(e,"interactiveContainer",7),$=m(e,"interactiveController",7),x=m(e,"subtitles",7),w=m(e,"live",7),S=m(e,"preload",7),I=m(e,"autoplay",7),P=m(e,"volume",7,void 0),M=m(e,"muted",7,void 0),L=m(e,"fromTime",7),T=m(e,"canRewindLive",7),B=m(e,"showAds",7),K=m(e,"adsSlotId",7,void 0),Q=m(e,"adsParams",7,void 0),Y=m(e,"adsPreviewParam",7,void 0),ae=m(e,"adsAutoplayParam",7,void 0),se=m(e,"duration",7,void 0),ee=m(e,"logoClickable",7),ge=m(e,"logoHidden",7),J=m(e,"isMobile",7),Pe=m(e,"showNextPrevButtons",7,!1),Ae=m(e,"nextButtonActive",7,!1),oe=m(e,"prevButtonActive",7,!1),Fe=m(e,"endScreenVideoTitle",7,void 0),j=m(e,"endScreenVideoThumb",7,void 0),N=m(e,"isOneVideoPlaylist",7,!1),Le=m(e,"supportLink",7),be=m(e,"shadowRootContainer",7,void 0),ke=m(e,"outerContainerRef",7,void 0),Be=m(e,"fullScreenTarget",7,void 0),ce=m(e,"failoverHosts",7,void 0),R=m(e,"showMiniTimer",7,!1),$e=m(e,"saveRate",7),Ie=m(e,"seekToInteractive",7,Gh),Ge=m(e,"playPrevChapter",7,Gh),ze=m(e,"volumeMultiplier",7),ye=m(e,"showAutoplayNext",7),Ve=m(e,"showEndScreen",7,!0),qe=m(e,"keyboardControls",15,void 0),{subscribers:ot,stores:ut}=d();tg(c());let pt=Mt(),Tt=c().logoLink,nt=s().ui.debugPanelVisible,vt=s().ui.playerSize,Lt=s().state.isLive$,Ue=s().state.isInteractive&&j3.device.isAndroid,Ye=X(void 0),W=null,ne=X(!1);s().getAdmanWrapper().init({switchFromAdsToVideo:s().actions.internal.switchFromAdsToVideo,switchFromVideoToAds:s().actions.internal.switchFromVideoToAds,setMuted:s().actions.external.setMuted},s().ads,{isMobile:s().ui.isMobile,mobileUnmuteButtonVisible:s().ui.mobileUnmuteButtonVisible,vsid:s().vsid}),ug(s(),ut),He(()=>{s().ui.isMobile.set(J())});let ie=(G=!1)=>{D(ne,!0),G?s().actions.external.firstStart(B()):s().actions.internal.firstStart(B())},We=()=>{if(pt.features.qualityDetailsSubMenuEnabled){let G=Ag(s().videoId);if(G)switch(G.type){case"high_quality":s().actions.internal.setHighQualityEnabled(!0,G.appliesTo);break;case"traffic_saving":s().actions.internal.setTrafficSavingEnabled(!0,G.appliesTo);break;case"exact_quality":s().actions.internal.setQuality(G.quality);break}}else{Mg(s().videoId),dp()&&s().actions.internal.setTrafficSavingEnabled(!0);let Kt=rp(s().videoId);Kt&&s().actions.internal.setQuality(Kt)}};function Ze(G){let Kt=a()||G;Kt&&s().initVideo({container:r(Ye),sources:Kt,failoverHosts:ce(),subtitles:x(),volumeMultiplier:ze()});let Xt=Z3.get(_l)==="true";nt.set(Xt),L()>0&&s().actions.external.seekTime(L());let zi=J()?pt.volumeDefault:P()??nc()??pt.volumeDefault,Gt=M()??Cg();if(s().actions.external.setVolume(zi),s().actions.external.setMuted(Gt),s().getAdmanWrapper().setInitialVolume(Gt?0:zi),We(),pt.features.saveRate&&$e()){let Jt=Ig();Jt&&!n()&&s().actions.internal.setPlaybackRate(Jt)}if(ye()){let Jt=Pg();Jt&&s().actions.internal.setAutoplayNextEnabled(Jt)}s().ui.isAutoplay.set(I()),I()?ie():S()&&pt.features.preload&&s().actions.internal.preload()}let $t=G=>{if(window.ResizeObserver){let Kt,Xt;W=new ResizeObserver(X3(zi=>{let Gt=zi[0];if(Gt.contentBoxSize){let Jt=Array.isArray(Gt.contentBoxSize)?Gt.contentBoxSize[0]:Gt.contentBoxSize;Kt=Jt.inlineSize,Xt=Jt.blockSize}else Gt.contentRect&&(Kt=Gt.contentRect.width,Xt=Gt.contentRect.height);vt.set({width:Kt,height:Xt})},300)),W.observe(G)}vt.set({width:G.clientWidth,height:G.clientHeight})},Ke=()=>{document.hidden&&s().actions.external.stop()};At(()=>{Ue&&document.addEventListener("visibilitychange",Ke),pt.debugLog&&s().actions.internal.startLogging(),$t(r(Ye));let G=ot.map(Xt=>Xt.init({store:s(),microStores:ut,config:l(),interactiveController:$(),uiConfig:c()})),Kt=()=>{Ue&&document.removeEventListener("visibilitychange",Ke),W?.disconnect(),G.forEach(Xt=>Xt.unsubscribe()),s().destroy()};return w()?.status==="upcoming"?(s().actions.internal.setLiveWaitingStart(!0),Kt):w()?.status==="waiting"?(s().actions.internal.setLiveWaitingRecover(!0),Kt):(w()?.status==="finished"||w()?.status==="postlive")&&!Object.keys(a()||[]).length?(s().actions.internal.setLiveWaitingRecord(!0),Kt):(Ze(),Kt)});function Xe(){r(ne)?s().actions.external.play():ie(!0)}function Ne(){s().actions.external.pause()}function st(G){s().actions.external.setMuted(G)}function Vt(G){J()||G>=0&&G<=1&&s().actions.external.setVolume(G)}function Zt(G){s().actions.internal.seekTime(G,J3.UNKNOWN)}function mi(G){s().actions.external.seekEpisodeStartTime(G)}function ri(){s().actions.external.returnFocusToEpisodes()}function oo(G){s().actions.external.setPlaybackRate(G)}function Ho(G){s().actions.external.setAutoQualityLimits(G)}let an=zc(pt.view);var Ui=ex();let $o;tt(Ui,an);var Fo=h(Ui);{var yo=G=>{cm(G,{get store(){return s()},uiConfig:pt,get thumbUrl(){return _()},get interactiveContainer(){return f()},get live(){return w()},get autoplay(){return I()},get canRewindLive(){return T()},get showAds(){return B()},get adsSlotId(){return K()},get adsParams(){return Q()},get adsPreviewParam(){return Y()},get adsAutoplayParam(){return ae()},get duration(){return se()},get logoClickable(){return ee()},get logoHidden(){return ge()},logoTargetUrl:Tt,get nextButtonActive(){return Ae()},get prevButtonActive(){return oe()},get endScreenVideoTitle(){return Fe()},get endScreenVideoThumb(){return j()},get isOneVideoPlaylist(){return N()},get supportLink(){return Le()},get shadowRootContainer(){return be()},get outerContainerRef(){return ke()},get fullScreenTarget(){return Be()},get showMiniTimer(){return R()},get playerStarted(){return r(ne)},get seekToInteractive(){return Ie()},get playPrevChapter(){return Ge()},firstStart:ie,seekTime:Zt,get showEndScreen(){return Ve()},get showAutoplayNext(){return ye()},get showNextPrevButtons(){return Pe()},get videoContainer(){return r(Ye)},set videoContainer(Kt){D(Ye,de(Kt))}})},uo=G=>{var Kt=De(),Xt=le(Kt);{var zi=Jt=>{pm(Jt,{get thumbUrl(){return _()},get canRewindLive(){return T()},get videoContainer(){return r(Ye)},set videoContainer(qi){D(Ye,de(qi))}})},Gt=Jt=>{let qi=v(()=>l().playerView||"full");lm(Jt,{get store(){return s()},uiConfig:pt,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 B()},get adsSlotId(){return K()},get adsParams(){return Q()},get adsPreviewParam(){return Y()},get adsAutoplayParam(){return ae()},get duration(){return se()},get logoClickable(){return ee()},get logoHidden(){return ge()},logoTargetUrl:Tt,get nextButtonActive(){return Ae()},get prevButtonActive(){return oe()},get endScreenVideoTitle(){return Fe()},get endScreenVideoThumb(){return j()},get isOneVideoPlaylist(){return N()},get supportLink(){return Le()},get shadowRootContainer(){return be()},get outerContainerRef(){return ke()},get fullScreenTarget(){return Be()},get showMiniTimer(){return R()},get playerStarted(){return r(ne)},get seekToInteractive(){return Ie()},get playPrevChapter(){return Ge()},firstStart:ie,get showEndScreen(){return Ve()},get showAutoplayNext(){return ye()},get showNextPrevButtons(){return Pe()},get playerView(){return r(qi)},get videoContainer(){return r(Ye)},set videoContainer(no){D(Ye,de(no))},get keyboardControls(){return qe()},set keyboardControls(no){qe(no)}})};V(Xt,Jt=>{l().playerView==="compact"?Jt(zi):Jt(Gt,!1)})}b(G,Kt)};V(Fo,G=>{J()?G(yo):G(uo,!1)})}g(Ui),C(G=>$o=Z(Ui,1,"root svelte-1aahjq",null,$o,G),[()=>({"visible-outside":l().playerView==="compact"})]),b(t,Ui);var Wt=U({initVideo:Ze,play:Xe,pause:Ne,setMuted:st,setVolume:Vt,seekTime:Zt,seekEpisodeStartTime:mi,returnFocusToEpisodes:ri,setPlaybackRate:oo,setAutoQualityLimits:Ho,get sources(){return a()},set sources(G){a(G)},get store(){return s()},set store(G){s(G)},get microStoresRoot(){return d()},set microStoresRoot(G){d(G)},get videoConfig(){return l()},set videoConfig(G){l(G)},get uiConfig(){return c()},set uiConfig(G){c(G)},get title(){return u()},set title(G){u(G)},get thumbUrl(){return _()},set thumbUrl(G){_(G)},get interactiveContainer(){return f()},set interactiveContainer(G){f(G)},get interactiveController(){return $()},set interactiveController(G){$(G)},get subtitles(){return x()},set subtitles(G){x(G)},get live(){return w()},set live(G){w(G)},get preload(){return S()},set preload(G){S(G)},get autoplay(){return I()},set autoplay(G){I(G)},get volume(){return P()},set volume(G){P(G)},get muted(){return M()},set muted(G){M(G)},get fromTime(){return L()},set fromTime(G){L(G)},get canRewindLive(){return T()},set canRewindLive(G){T(G)},get showAds(){return B()},set showAds(G){B(G)},get adsSlotId(){return K()},set adsSlotId(G){K(G)},get adsParams(){return Q()},set adsParams(G){Q(G)},get adsPreviewParam(){return Y()},set adsPreviewParam(G){Y(G)},get adsAutoplayParam(){return ae()},set adsAutoplayParam(G){ae(G)},get duration(){return se()},set duration(G){se(G)},get logoClickable(){return ee()},set logoClickable(G){ee(G)},get logoHidden(){return ge()},set logoHidden(G){ge(G)},get isMobile(){return J()},set isMobile(G){J(G)},get showNextPrevButtons(){return Pe()},set showNextPrevButtons(G){Pe(G)},get nextButtonActive(){return Ae()},set nextButtonActive(G){Ae(G)},get prevButtonActive(){return oe()},set prevButtonActive(G){oe(G)},get endScreenVideoTitle(){return Fe()},set endScreenVideoTitle(G){Fe(G)},get endScreenVideoThumb(){return j()},set endScreenVideoThumb(G){j(G)},get isOneVideoPlaylist(){return N()},set isOneVideoPlaylist(G){N(G)},get supportLink(){return Le()},set supportLink(G){Le(G)},get shadowRootContainer(){return be()},set shadowRootContainer(G){be(G)},get outerContainerRef(){return ke()},set outerContainerRef(G){ke(G)},get fullScreenTarget(){return Be()},set fullScreenTarget(G){Be(G)},get failoverHosts(){return ce()},set failoverHosts(G){ce(G)},get showMiniTimer(){return R()},set showMiniTimer(G){R(G)},get saveRate(){return $e()},set saveRate(G){$e(G)},get showAutoplayNext(){return ye()},set showAutoplayNext(G){ye(G)},get seekToInteractive(){return Ie()},set seekToInteractive(G){Ie(G)},get playPrevChapter(){return Ge()},set playPrevChapter(G){Ge(G)},get volumeMultiplier(){return ze()},set volumeMultiplier(G){ze(G)},get showEndScreen(){return Ve()},set showEndScreen(G){Ve(G)},get keyboardControls(){return qe()},set keyboardControls(G){qe(G)}});return o(),Wt}var ix=ve('<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 mm(t,e){let i=Ce(e,["$$slots","$$events","$$legacy","children"]);var o=ix();let n;var a=h(o);pe(a,()=>e.children??te),me(),g(o),C(()=>n=xe(o,n,{xmlns:"http://www.w3.org/2000/svg",width:"57",height:"60",fill:"none","aria-hidden":"true","data-testid":"stub-icon",role:"img",...i})),b(t,o)}function vm(t,e){let i=m(e,"isWhite",3,!1),o=v(()=>i()?"color: #fff;":"color: #909499;");mm(t,{get style(){return r(o)}})}var ox=A('<div class="title svelte-1y9fytq"> </div>'),nx=A('<div class="playerStub svelte-1y9fytq"><!> <!></div>'),rx={hash:"svelte-1y9fytq",code:".playerStub.svelte-1y9fytq {width:100%;height:100%;background-color:#222;display:flex;justify-content:center;align-items:center;position:relative;background-position:center;background-size:cover;font-family:-apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;}.title.svelte-1y9fytq {position:absolute;left:0;top:0;width:100%;font-size:15px;color:#fff;box-sizing:border-box;padding:18px 20px 10px;overflow:hidden;white-space:nowrap;text-overflow:ellipsis;}"};function gm(t,e){z(t,rx);var i=nx(),o=h(i);{var n=d=>{var l=ox(),c=h(l,!0);g(l),C(()=>ue(c,e.title)),b(d,l)};V(o,d=>{e.title&&d(n)})}var a=E(o,2);{var s=d=>{let l=v(()=>!!e.thumbUrl);vm(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 Tx}from"@vkontakte/videoplayer-shared/es2024";import{cloneDeepWith as Ix,InterfaceLanguage as Ex,isNonNullable as xm,Logger as Px,Observable as Ax,Subscription as i1,once as Mx,InternalsExposure as Lx,skip as Vx}from"@vkontakte/videoplayer-shared/es2024";import{clientChecker as o1,isMobile as Rx}from"@vkontakte/videoplayer-core/es2024";import{OneStat as Nx}from"@vkontakte/videoplayer-statistics/es2024";import{Logger as ax,Subscription as sx}from"@vkontakte/videoplayer-shared/es2024";var qc=class{constructor(){this.subscription=new sx,this.logger=new ax,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=he(e.state.currentPlaybackRate$),n=he(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/es2024";var lx=ve('<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 hm(t,e){let i=Ce(e,["$$slots","$$events","$$legacy","children"]);var o=lx();let n;var a=h(o);pe(a,()=>e.children??te),me(),g(o),C(()=>n=xe(o,n,{xmlns:"http://www.w3.org/2000/svg",width:"57",height:"56",fill:"none","aria-label":"dummy-image","data-testid":"pip-dummy-icon",role:"img",...i})),b(t,o)}var dx=A('<div><div><!></div> <span class="title svelte-1pbsod4"> </span></div>'),cx={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 _m(t,e){F(e,!0),z(t,cx);let[i,o]=Me(),n=()=>y(c,"$interfaceLanguage$",i),a=()=>y(u,"$isMobile$",i),s=_e(),d=Mt(),l=!!s.webApi.pictureInPictureApi,c=s.interfaceLanguage$,u=s.ui.isMobile,_=s.ui.t,f=v(()=>n()&&_("pip_dummy_title")),$=zc(d.view);var x=dx();Z(x,1,"player-pip-dummy svelte-1pbsod4",null,{},{"is-pip-api":l}),tt(x,$);var w=h(x);let S;var I=h(w);hm(I,{}),g(w);var P=E(w,2),M=h(P,!0);g(P),g(x),C(L=>{S=Z(w,1,"dummy-image svelte-1pbsod4",null,S,L),ue(M,r(f))},[()=>({desktop:!a()})]),b(t,x),U(),o()}var px=460,fx=280,fd=class{playerDomElement;playerParentShadowRoot;playerDummyElement;svelteContext;pipWindow;info={isActive$:new bm(!1),isEnabled$:new bm(!1),type:1};constructor({enabled:e=!0}={enabled:!0}){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:px,height:fx,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(`
479
- `),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=Qr(_m,a),this.pipWindow?.document.body.append(o),this.info.isActive$.next(!0),this.pipWindow?.addEventListener("unload",s=>{!this.playerDomElement||!this.playerParentShadowRoot||!this.playerDummyElement||(Ma(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 Yh(t){return t instanceof fd}var Wc=class{static getLatestSupportedVersion(e){let i=new Ba,o=new fd(e);if(o.isSupported())return o;if(i.isSupported())return i}};function Kc(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 jh="Inner error. Unexpectedly root annotation container null reference exception",Zh="Annotation with such name already exists",Xh="Annotation with such name does not exist";var Us=class extends Error{constructor(e){super(e),this.name="AnnotationError"}};import{observeElementSize as mx,Subscription as vx,throttleFn as gx}from"@vkontakte/videoplayer-shared/es2024";var hx="1",_x=100,Qc=class{constructor(e){this.annotationsInside=e;this.annotations=new Map;this.subscriptions=new vx}init(e){if(this.rootAnnotationsContainer=e,this.annotationsInside)return;let i=gx(()=>{for(let o of this.annotations.values())this.isElementExceedsBoundaries(o,this.playerSize.width,this.playerSize.height)?o.style.visibility="hidden":o.style.visibility="visible"},_x);this.subscriptions.add(mx(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 Us(jh);if(this.annotations.has(e))throw new Us(Zh);i.style.zIndex=i.style.zIndex??hx,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 Us(Xh);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 Gc,Subscription as bx}from"@vkontakte/videoplayer-shared/es2024";var bo=class{init({store:e,microStores:i,interactiveController:o,config:n}){return Gc(e),Gc(i),Gc(n),n.interactiveData&&Gc(o),this.subscription=new bx,this.subscription}};var md=class extends bo{constructor(){super(...arguments);this.stateName="fakeIsPlaying$";this.state$={...re(null),toggle:()=>this.state$.update(i=>!i)}}init(i){let o=super.init(i),{isInteractiveExpectation$:n}=i.store.state;return o.add(n.subscribe(a=>{this.state$.set(a?!0:null)})),o}};var vd=class extends bo{constructor(){super(...arguments);this.stateName="interactiveControlsOpacity$";this.state$={...re(null),toggle:()=>this.state$.update(i=>!i)}}init(i){let o=super.init(i),{microStores:n,store:a}=i,{fakeIsPlaying$:s}=n,{isInteractiveExpectation$:d,isPlaying$:l}=a.state,{controlsVisible:c,isMobile:u}=a.ui,_=he(u),f=()=>_&&he(c);return o.add(c.subscribe($=>{if(!_)return;let x=he(s);he(l)?this.state$.set($):x!==null&&this.state$.set(!x||$)})),o.add(l.subscribe($=>{this.state$.set(!$||f())})),o.add(s.subscribe($=>{if($===null)return;let x=he(d);if(f()){this.state$.set(!0);return}x&&this.state$.set(!$)})),o}};var gd=class extends bo{constructor(){super(...arguments);this.stateName="seekToInteractiveDisabledTooltip$";this.state$=re("tooltip_chapter_without_interactive")}init(i){let o=super.init(i),{store:n}=i;return o.add(n.state.interactiveEpisodes$.subscribe(a=>{a.length&&(a.every(s=>s.completed)?this.state$.set("tooltip_interactive_of_chapter_completed"):this.state$.set("tooltip_disabled_when_interactive"))})),o}};import{combine as $x}from"@vkontakte/videoplayer-shared/es2024";var $m=re(!1),Yc=null,hd=class extends bo{constructor(){super(...arguments);this.stateName="showInteractiveTimeIndicatorTooltip$";this.state$={...$m,set:(i,o=!1)=>{i!==he($m)&&(this.clearTimeout(),$m.set(i),!i&&Yc&&(Yc=!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(_=>{he(s)&&_&&this.state$.set(!1)}));let u=a?.interactiveData||{tooltipHelpHintActive:!1};return o.add($x({isPlaying$:d,isInteractiveTime$:s,interactiveTimeIndicator:c}).subscribe(({isPlaying$:_,isInteractiveTime$:f,interactiveTimeIndicator:$})=>{if(!(!_||!$?.isDisplayed)){if(!f)return this.state$.set(!1);u.tooltipHelpHintActive&&Yc===null&&(Yc=!0,u.tooltipHelpHintActive=!1,this.state$.set(!0),n.callbacks?.onInteractiveTimeIndicatorHintDeactivated?.())}})),o}clearTimeout(){window.clearTimeout(this.timeout)}};import{combine as yx,noop as xx}from"@vkontakte/videoplayer-shared/es2024";var _d=class extends bo{constructor(){super(...arguments);this.stateName="graphIsOpened$";this.graphMadePause=!1;this.state$={...re(null),toggle:xx};this.checkIfShouldHide=i=>va(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(he(s)))return;let l=he(this.state$),{isEnded$:c,playbackState$:u}=n.state,{disabledControls$:_}=n.ui.controls,f=he(c),$=he(u);if(l)try{await a?.toggleGraphView(!1),this.state$.set(!1),_.remove(Xu),!f&&this.graphMadePause&&n.actions.internal.play()}catch{d({message:"Cant hide graph"})}else{this.graphMadePause=$==="playing";try{await a?.toggleGraphView(!0),this.state$.set(!0),_.add(Xu),!f&&this.graphMadePause&&n.actions.internal.pause()}catch{d({message:"Cant show graph"})}}},o.add(yx({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 Jh}from"@vkontakte/videoplayer-shared/es2024";var bd=class extends bo{constructor(){super(...arguments);this.stateName="pictureInPicture$";this.state$={isActive$:re(!1),isEnabled$:re(!1),type$:re(void 0)}}init(i){let o=super.init(i),{store:n}=i,{info:{isActive$:a,isEnabled$:s,type:d}}=n.webApi.pictureInPictureApi||{info:{isActive$:new Jh(!1),isEnabled$:new Jh(!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 Cx,filterChanged as kx}from"@vkontakte/videoplayer-shared/es2024";import{safeStorage as ym}from"@vkontakte/videoplayer-shared/es2024";var e1=({maxShowCount:t,timeout:e})=>{let i=[t!==0?wx({maxCount:t}):void 0,e!==0?Sx({timeout:e}):void 0].filter(o=>!!o);return{notificationShowed:o=>i.forEach(n=>n.notificationShowed(o)),canShowNotification:o=>i.every(n=>n.canShowNotification(o))}},wx=({maxCount:t})=>{let e={};return{notificationShowed:i=>{e[i]=(e[i]??0)+1,ym.set("videoplayer_notifications_manager_count",JSON.stringify(e[i]??0))},canShowNotification:i=>(e[i]??0)<t}},Sx=({timeout:t})=>{let e="videoplayer_notifications_manager",i=()=>{try{return JSON.parse(ym.get(e)||"{}")}catch{return{}}},o=a=>ym.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 $d=class extends bo{constructor(){super(...arguments);this.stateName="notifications$";this.state$={notificationsToShow$:re({}),showNotification:i=>{this.state$.notificationsToShow$.update(o=>(o[i]=!0,o)),this.notificationManager.notificationShowed(i)},closeNotification:i=>{this.state$.notificationsToShow$.update(o=>(delete o[i],o))}}}init(i){let o=super.init(i),{store:n,uiConfig:{features:{maxCountShowSlowVideoNotification:a,timeoutShowSlowVideoNotification:s,showSlowVideoNotification:d,forceAutoQualityWhenSevereStallHappens:l}}}=i;this.notificationManager=e1({maxShowCount:a,timeout:s});let c=n.getPlayer();return o.add(c.events.severeStallOccured$.pipe(kx(),Cx(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 t1=()=>[md,vd,gd,hd,_d,bd,$d].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 yd}from"@vkontakte/videoplayer-shared/es2024";var Dx={preload:!0,autoplay:!1,repeat:!1,fromTime:0,canRewindLive:!0,showAds:!1,interfaceLanguage:Ex.RU,isCyrillicRelatedInterface:!0,logoClickable:!1,logoHidden:!1,isTouch:Rx(),isMediaSessionEnabled:!0,isPictureInPictureEnabled:!0,isAudioDisabled:!1,callbacks:{uiInfo:{}},tuningConfig:{configName:[]},saveRate:!0,volumeMultiplier:1,showEndScreen:!0,showAutoplayNext:!0,showNextPrevButtons:!0},rn=X(void 0),jc=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;shadowDOMCallbacksDisabled=!1;constructor(){super(),yd.create("ui"),this.logger=new Px,this.log=this.logger.createComponentLog("VKVideoPlayer"),this.subscription=new i1,this.interactiveSubscription=new i1,this.graphMadePause=!1}connectedCallback(){if(this.isInited||this.shadowDOMCallbacksDisabled)return;this.initPlayerRootContainers();let e=this.getAttribute("stub-title")??void 0,i=this.getAttribute("stub-thumb-url")??void 0,o=de({title:e,thumbUrl:i}),n={target:this.playerContainer,props:o};this.svelteStubComponent=Qr(gm,n)}disconnectedCallback(){this.shadowDOMCallbacksDisabled||(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(),yd.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:$,interactiveData:x}=Kc(this.videoConfig,i),w=x?.projectInfo?.pid,S=this.interactiveController?.state.isReplay$.getValue()??!1;S&&(this.prevIsid=void 0);let{unitedVideoId:I,isClip:P=!1}=e;if(this.uiConfig.features.statistics&&I)return new Nx({movieId:I,albumId:o,place:n,trackCode:s,vkAppId:d,autoplay:(c&&!this.interactiveController)??!1,mobile:_??u,clip:P,refDomain:f,deviceId:$,...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:$,showAds:x,adsSlotId:w,adsParams:S={},adsPreviewParam:I,adsAutoplayParam:P,interfaceLanguage:M,isCyrillicRelatedInterface:L,logoClickable:T,logoHidden:B,isMobile:K,isTouch:Q,isAudioDisabled:Y,isLiveCatchUpMode:ae,fullScreenTarget:se,failoverHosts:ee,canDownload:ge,callbacks:J,interactiveData:Pe,showThumbTimer:Ae,additionalButtons:oe=[],additionalSettingsMenuItems:Fe=[],additionalContextMenuItems:j=[],repeat:N,saveRate:Le,volumeMultiplier:be,showEndScreen:ke,showAutoplayNext:Be}=Kc(this.videoConfig,i),{sources:ce,title:R,thumbUrl:$e,unitedVideoId:Ie,isClip:Ge=!1,duration:ze,adsParams:ye={},videoEpisodes:Ve,previewThumbsData:qe,subtitles:ot,live:ut}=e,pt={...S,...ye},Tt=this.getNextVideoInfo(),nt={sources:ce,title:R,thumbUrl:$e,subtitles:ot,unitedVideoId:Ie,isClip:Ge,live:ut,albumId:n,statPlace:a,autoplay:l,muted:u,volume:c,fromTime:_,canRewindLive:f,showAds:x,adsSlotId:w,adsParams:pt,adsPreviewParam:I,adsAutoplayParam:P,duration:ze,logoClickable:T,logoHidden:B,isTouch:Q??K,repeat:N,showNextPrevButtons:this.needToShowNextPrevButtons(),nextButtonActive:this.isNextButtonActive(),prevButtonActive:this.isPrevButtonActive(),endScreenVideoTitle:Tt.nextVideoTitle,endScreenVideoThumb:Tt.nextVideoThumb,isOneVideoPlaylist:this.isOneVideoPlaylist()},vt={pictureInPictureApi:this.pictureInPictureApi,annotationsApi:this.annotationsApi};this.log({message:`create player, props: ${JSON.stringify(nt)}`});let Lt=this.interactiveController?.state.statistics$.getValue(),Te=Lt?.oneStat||this.createOneStat(e,i);Te&&(this.statistics=new Ec(Te,Lt?.statSubscription)),this.uiConfig.features.sentry&&this.uiConfig.sentry.dsn&&new Da(this.uiConfig.sentry,{version:Ts,env:tc},{movieId:Ie,albumId:n,place:a,autoplay:(l&&!this.interactiveController)??!1,mobile:Q??K,clip:Ge}),this.interactiveController&&(this.prevIsid??=this.statistics?.oneStat.isid$.getValue()),this.sentry={...this.sentry,...Da.getInstance()};let Ye=!!Pe,W=[],ne="tooltip_interactive_go_back_disabled_first";if(Ye&&this.interactiveController){let $t=this.interactiveController.state.isInitialChapter$.getValue(),Ke=this.interactiveController.getHistoryState();$t&&W.push("REPLAY_BUTTON"),this.interactiveController.getIsSeekable().getValue()||W.push("SEEK_TO_INTERACTIVE_BUTTON"),Ke.hasPrevChapter$.getValue()||(W.push("PLAY_PREV_CHAPTER_BUTTON"),$t||(Ke.isGoBackLimited$.getValue()?ne="tooltip_interactive_go_back_disabled_limit":ne="tooltip_interactive_go_back_disabled"))}let ie=()=>{this.isInited=!1,this.prevIsid=void 0;let $t=o?.info.isEnded$.getValue()&&this.interactiveController?.state.isEndChapter$.getValue();J.onReplayInteractiveVideo&&!$t?J.onReplayInteractiveVideo():this.replayInteractiveVideo()};this.store=bh({player:o,interfaceLanguage:M,isCyrillicRelatedInterface:L,videoId:Ie,isClip:Ge,isLiveCatchUpMode:ae,isAudioDisabled:Y,statAuthToken:s,callbacks:J,webApi:vt,videoEpisodes:Ve,previewThumbsData:qe,canDownload:ge,uiConfig:this.uiConfig,coreConfig:this.coreConfig,disabledControls:W,isInteractive:Ye,saveRate:Le,interactiveRanges$:this.interactiveController?.state.interactiveRanges$,isInteractiveTime$:this.interactiveController?.state.isInteractiveTime$,stopPlayer:()=>this.stop(),replayInteractive:ie,playPrevChapterDisabledTooltip:ne,hasInteractiveBranches:!!this.interactiveController?.getChapterBranches()?.length,additionalButtons:this.uiConfig.features.additionalButtons?oe:[],additionalSettingsMenuItems:Fe??[],additionalContextMenuItems:j??[],playPrevVideo:()=>this.playPrevVideo(),playNextVideo:()=>this.playNextVideo(),looped:N&&this.videoConfig.videos.length===1,statistics:this.statistics,internalsExposure:this.internalsExposure});let{stores:We}=this.microStoresRoot=t1(),Ze=()=>{if(!this.store||!this.microStoresRoot||!this.videoConfig)return;this.subscription.add(this.store.state.currentFormat$.subscribe(Ke=>J?.onCurrentFormatChanged?.(Ke))),this.subscription.add(We.interactiveControlsOpacity$.subscribe(Ke=>{Ke!==null&&this?.interactiveController?.setDisabledControls(Ke)})),this.subscription.add(this.store.state.throughputEstimation$.subscribe(Ke=>J?.onThroughputEstimationChanged?.(Ke))),this.subscription.add(this.store.state.trafficSavingEnabled$.subscribe(Ke=>J?.onTrafficSavingEnabledChanged?.(Ke))),this.subscription.add(new Ax(Ke=>{this.store&&this.subscription.add(this.store.state.currentPlaybackRate$.subscribe(Xe=>Ke.next(Xe)))}).pipe(this.uiConfig.features.skipInitialPlaybackRateValue?Vx(1):Ke=>Ke).subscribe(Ke=>J?.onCurrentPlaybackRateChanged?.(Ke))),this.subscription.add(this.store.state.volume$.subscribe(Ke=>J?.onVolumeChange?.(Ke))),this.subscription.add(this.store.state.muted$.subscribe(Ke=>Ke?J?.onMute?.():J?.onUnmute?.())),this.subscription.add(this.store.state.videoBitrate$.subscribe(Ke=>J?.onVideoBitrateChanged?.(Ke))),this.subscription.add(this.store.state.isInteractiveTime$.subscribe(Ke=>{let Xe=this.store?.ui.controls.disabledControls$;Xe&&(Ke&&!Xe.includes(bl)&&Xe.add(bl),Ke||Xe.remove(bl))})),this.subscription.add(this.store.ui.isFullscreen.subscribe(async Ke=>{if(!o1.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=>J?.onVSIDChanged?.(Ke))),this.initMediaSession(),D(rn,de({interactiveController:this.interactiveController,interactiveContainer:this.interactiveContainer,sources:ce,store:this.store,microStoresRoot:this.microStoresRoot,videoConfig:this.videoConfig,uiConfig:this.uiConfig,title:R,thumbUrl:$e,subtitles:ot,live:ut,preload:d,autoplay:l,muted:u,volume:c,fromTime:_,canRewindLive:f,supportLink:$,showAds:x,adsSlotId:w,adsParams:pt,adsPreviewParam:I,adsAutoplayParam:P,duration:ze,logoClickable:T,logoHidden:B,isMobile:Q??K,failoverHosts:ee,fullScreenTarget:se,saveRate:Le,shadowRootContainer:this.shadowRootContainer,showMiniTimer:Ae,outerContainerRef:this.rootContainer,showNextPrevButtons:this.needToShowNextPrevButtons(),nextButtonActive:this.isNextButtonActive(),prevButtonActive:this.isPrevButtonActive(),endScreenVideoTitle:Tt.nextVideoTitle,endScreenVideoThumb:Tt.nextVideoThumb,isOneVideoPlaylist:this.isOneVideoPlaylist(),playPrevChapter:()=>this.playPrevChapter(),seekToInteractive:()=>this.seekToInteractive(),volumeMultiplier:be,showEndScreen:ke,showAutoplayNext:Be}));let $t={target:this.playerContainer,props:r(rn)};this.svelteRootComponent=Qr(fm,$t),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?yd.subscribe("ui",this.videoConfig.callbacks.onDevNullLog):yd.destroy("ui")};this.coreConfig.asyncResolveClientChecker?o1.isInited$.subscribe($t=>{$t&&(console.log("UI SDK async start"),Ze())}):Ze()}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&&xm(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/es2024");this.interactiveContainer=document.createElement("div"),this.interactiveContainer.classList.add("interactive-root");let i=this.store?.interfaceLanguage$,o=i?he(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 $=l.getValue();if(_==="action-choice"&&f==="setRandomBranch"&&(this.microStoresRoot.stores.graphIsOpened$.set(!1),this.store.ui.controls.disabledControls$.remove($l)),_==="action-choice-canceled"){let x=he(this.store.state.isPlaying$)||$;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($l)})),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(console.log(e),this.videoConfig=Kc(Dx,Ix(e,o=>o instanceof HTMLElement?o:void 0)),this.uiConfig=eg(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.videoConfig.playerView==="compact"&&(this.playerContainer.style.contain="none"),this.sentry={config:this.uiConfig.sentry??{}},this.uiConfig.features.exposeInternalsToGlobal&&(this.internalsExposure??=new Lx("UI")),yd.push("ui",{key:"videoplayer_embed",strings:["new","player_init_player","ads.enable: "+this.uiConfig.ads.enable,"showAds: "+this.videoConfig?.showAds],numbers:[Tx()]}),xm(this.videoConfig.isMediaSessionEnabled)&&(this.uiConfig.features.mediaSession=this.uiConfig.features.mediaSession??this.videoConfig.isMediaSessionEnabled??!0),xm(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=Wc.getLatestSupportedVersion(o):this.pictureInPictureApi=new Ba(o)}this.mediaSessionApi=this.uiConfig.features.mediaSession?new qc:void 0,this.slotsApi=this.uiConfig.features.slots?new Hc:void 0,this.annotationsApi=this.uiConfig.features.annotations?new Qc(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]),Yh(this.pictureInPictureApi)&&this.pictureInPictureApi.setPlayerDomElement(this.playerContainer,this._shadowRoot)}isOneVideoPlaylist(){return this.videoConfig?this.videoConfig.videos.length===1:!1}updateVideos(e,i){if(!this.videoConfig)return;this.log({message:`update ${i} videos, videos: ${JSON.stringify(e)}`}),i==="prev"?(this.videoConfig.videos.splice(0,this.currentPlayingVideoIndex),this.videoConfig.videos.unshift(...e),this.currentPlayingVideoIndex=e.length):i==="next"&&(this.videoConfig.videos.splice(this.currentPlayingVideoIndex+1),this.videoConfig.videos.push(...e));let o=this.getNextVideoInfo();r(rn)&&(r(rn).showNextPrevButtons=this.needToShowNextPrevButtons(),r(rn).nextButtonActive=this.isNextButtonActive(),r(rn).prevButtonActive=this.isPrevButtonActive(),r(rn).endScreenVideoTitle=o.nextVideoTitle,r(rn).endScreenVideoThumb=o.nextVideoThumb,r(rn).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})}}moveTo(e){this.shadowDOMCallbacksDisabled=!0,e.append(this),this.shadowDOMCallbacksDisabled=!1}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,r(rn)&&(r(rn).needToRepeatPlaylist=this.needToRepeatPlaylist,r(rn).showNextPrevButtons=this.needToShowNextPrevButtons(),r(rn).nextButtonActive=this.isNextButtonActive(),r(rn).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)}getDebugData(){return this.store?.actions.internal.getDebugTextData()??""}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=he(this.store.state.positionExact$),n=he(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&&Ma(e)}};import{InterfaceLanguage as gZ,VKNumericLanguage as hZ,loadVKLangPack as _Z}from"@vkontakte/videoplayer-shared/es2024";import{VideoQuality as $Z,VideoFormat as yZ}from"@vkontakte/videoplayer-core/es2024";var lZ=()=>{window.customElements.define("vk-video-player",jc)};export{Pc as ControlButtonType,Rr as GridTypes,gZ as InterfaceLanguage,Il as MenuItemType,jr as PlayerPhase,Ts as VERSION,hZ as VKNumericLanguage,yZ as VideoFormat,$Z as VideoQuality,_Z as loadVKLangPack,lZ as registerPlayerWebComponent};
394
+ /* \u041A\u043B\u0430\u0441\u0441 \u0434\u043B\u044F \u0441\u043E\u043A\u0440\u044B\u0442\u0438\u0435 \u043A\u043E\u043D\u0442\u0435\u043D\u0442\u0430 \u0432\u0438\u0437\u0443\u0430\u043B\u044C\u043D\u043E \u043D\u043E \u043D\u0435 \u0434\u043B\u044F \u043E\u0431\u0445\u043E\u0434\u0430 \u043F\u043E \u0442\u0430\u0431 \u0438 \u0441\u043A\u0440\u0438\u043D \u0440\u0438\u0434\u0435\u0440\u0430 */.out-of-view {position:absolute !important;left:-1000vh !important;}.icon.icon-error-stub {display:flex;justify-content:center;align-items:center;}`};function dm(t,e){F(e,!0),W(t,U3);let[i,o]=De(),n=()=>y(Mt,"$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),$=v(e,"interactiveController",7),x=v(e,"subtitles",7),w=v(e,"live",7),S=v(e,"preload",7),I=v(e,"autoplay",7),M=v(e,"volume",7,void 0),P=v(e,"muted",7,void 0),A=v(e,"fromTime",7),T=v(e,"canRewindLive",7),B=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),te=v(e,"adsAutoplayParam",7,void 0),ie=v(e,"duration",7,void 0),oe=v(e,"logoClickable",7),ge=v(e,"logoHidden",7),X=v(e,"isMobile",7),Ve=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),D=v(e,"isOneVideoPlaylist",7,!1),Re=v(e,"supportLink",7),_e=v(e,"shadowRootContainer",7,void 0),ke=v(e,"outerContainerRef",7,void 0),Be=v(e,"fullScreenTarget",7,void 0),pe=v(e,"failoverHosts",7,void 0),R=v(e,"showMiniTimer",7,!1),ye=v(e,"saveRate",7),Ie=v(e,"seekToInteractive",7,qh),je=v(e,"playPrevChapter",7,qh),ze=v(e,"volumeMultiplier",7),Te=v(e,"showAutoplayNext",7),Me=v(e,"showEndScreen",7,!0),We=v(e,"keyboardControls",15,void 0),{subscribers:it,stores:vt}=d();Xv(c());let st=Rt(),It=c().logoLink,nt=s().ui.debugPanelVisible,gt=s().ui.playerSize,Mt=s().state.isLive$,Oe=s().state.isInteractive&&N3.device.isAndroid,Ze=Y(void 0),q=null,ae=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}),lg(s(),vt),Ue(()=>{s().ui.isMobile.set(X())});let ne=(z=!1)=>{N(ae,!0),z?s().actions.external.firstStart(B()):s().actions.internal.firstStart(B())},Fe=()=>{if(st.features.qualityDetailsSubMenuEnabled){let z=Ig(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{Eg(s().videoId),ap()&&s().actions.internal.setTrafficSavingEnabled(!0);let zt=ip(s().videoId);zt&&s().actions.internal.setQuality(zt)}};function Ge(z){let zt=a()||z;zt&&s().initVideo({container:r(Ze),sources:zt,failoverHosts:pe(),subtitles:x(),volumeMultiplier:ze()});let hi=B3.get(pl)==="true";nt.set(hi),A()>0&&s().actions.external.seekTime(A());let qi=X()?st.volumeDefault:M()??ec()??st.volumeDefault,Jt=P()??xg();if(s().actions.external.setVolume(qi),s().actions.external.setMuted(Jt),s().getAdmanWrapper().setInitialVolume(Jt?0:qi),Fe(),st.features.saveRate&&ye()){let ei=Cg();ei&&!n()&&s().actions.internal.setPlaybackRate(ei)}if(Te()){let ei=Tg();ei&&s().actions.internal.setAutoplayNextEnabled(ei)}s().ui.isAutoplay.set(I()),I()?ne():S()&&st.features.preload&&s().actions.internal.preload()}let wt=z=>{if(window.ResizeObserver){let zt,hi;q=new ResizeObserver(O3(qi=>{let Jt=qi[0];if(Jt.contentBoxSize){let ei=Array.isArray(Jt.contentBoxSize)?Jt.contentBoxSize[0]:Jt.contentBoxSize;zt=ei.inlineSize,hi=ei.blockSize}else Jt.contentRect&&(zt=Jt.contentRect.width,hi=Jt.contentRect.height);gt.set({width:zt,height:hi})},300)),q.observe(z)}gt.set({width:z.clientWidth,height:z.clientHeight})},Ke=()=>{document.hidden&&s().actions.external.stop()};At(()=>{Oe&&document.addEventListener("visibilitychange",Ke),st.debugLog&&s().actions.internal.startLogging(),wt(r(Ze));let z=it.map(hi=>hi.init({store:s(),microStores:vt,config:l(),interactiveController:$(),uiConfig:c()})),zt=()=>{Oe&&document.removeEventListener("visibilitychange",Ke),q?.disconnect(),z.forEach(hi=>hi.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 Je(){r(ae)?s().actions.external.play():ne(!0)}function Ee(){s().actions.external.pause()}function ct(z){s().actions.external.setMuted(z)}function Bt(z){X()||z>=0&&z<=1&&s().actions.external.setVolume(z)}function Gt(z){s().actions.internal.seekTime(z,H3.UNKNOWN)}function Xt(z){s().actions.external.seekEpisodeStartTime(z)}function ri(){s().actions.external.returnFocusToEpisodes()}function Wi(z){s().actions.external.setPlaybackRate(z)}function Oo(z){s().actions.external.setAutoQualityLimits(z)}let on=Hc(st.view);var to=F3();tt(to,on);var nn=h(to);{var Ho=z=>{lm(z,{get store(){return s()},uiConfig:st,get thumbUrl(){return _()},get interactiveContainer(){return f()},get live(){return w()},get autoplay(){return I()},get canRewindLive(){return T()},get showAds(){return B()},get adsSlotId(){return Q()},get adsParams(){return G()},get adsPreviewParam(){return ee()},get adsAutoplayParam(){return te()},get duration(){return ie()},get logoClickable(){return oe()},get logoHidden(){return ge()},logoTargetUrl:It,get nextButtonActive(){return Ae()},get prevButtonActive(){return se()},get endScreenVideoTitle(){return He()},get endScreenVideoThumb(){return j()},get isOneVideoPlaylist(){return D()},get supportLink(){return Re()},get shadowRootContainer(){return _e()},get outerContainerRef(){return ke()},get fullScreenTarget(){return Be()},get showMiniTimer(){return R()},get playerStarted(){return r(ae)},get seekToInteractive(){return Ie()},get playPrevChapter(){return je()},firstStart:ne,seekTime:Gt,get showEndScreen(){return Me()},get showAutoplayNext(){return Te()},get showNextPrevButtons(){return Ve()},get videoContainer(){return r(Ze)},set videoContainer(zt){N(Ze,de(zt))}})},Fo=z=>{am(z,{get store(){return s()},uiConfig:st,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 B()},get adsSlotId(){return Q()},get adsParams(){return G()},get adsPreviewParam(){return ee()},get adsAutoplayParam(){return te()},get duration(){return ie()},get logoClickable(){return oe()},get logoHidden(){return ge()},logoTargetUrl:It,get nextButtonActive(){return Ae()},get prevButtonActive(){return se()},get endScreenVideoTitle(){return He()},get endScreenVideoThumb(){return j()},get isOneVideoPlaylist(){return D()},get supportLink(){return Re()},get shadowRootContainer(){return _e()},get outerContainerRef(){return ke()},get fullScreenTarget(){return Be()},get showMiniTimer(){return R()},get playerStarted(){return r(ae)},get seekToInteractive(){return Ie()},get playPrevChapter(){return je()},firstStart:ne,get showEndScreen(){return Me()},get showAutoplayNext(){return Te()},get showNextPrevButtons(){return Ve()},get videoContainer(){return r(Ze)},set videoContainer(zt){N(Ze,de(zt))},get keyboardControls(){return We()},set keyboardControls(zt){We(zt)}})};V(nn,z=>{X()?z(Ho):z(Fo,!1)})}g(to),b(t,to);var co=U({initVideo:Ge,play:Je,pause:Ee,setMuted:ct,setVolume:Bt,seekTime:Gt,seekEpisodeStartTime:Xt,returnFocusToEpisodes:ri,setPlaybackRate:Wi,setAutoQualityLimits:Oo,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 $()},set interactiveController(z){$(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 M()},set volume(z){M(z)},get muted(){return P()},set muted(z){P(z)},get fromTime(){return A()},set fromTime(z){A(z)},get canRewindLive(){return T()},set canRewindLive(z){T(z)},get showAds(){return B()},set showAds(z){B(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 te()},set adsAutoplayParam(z){te(z)},get duration(){return ie()},set duration(z){ie(z)},get logoClickable(){return oe()},set logoClickable(z){oe(z)},get logoHidden(){return ge()},set logoHidden(z){ge(z)},get isMobile(){return X()},set isMobile(z){X(z)},get showNextPrevButtons(){return Ve()},set showNextPrevButtons(z){Ve(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 D()},set isOneVideoPlaylist(z){D(z)},get supportLink(){return Re()},set supportLink(z){Re(z)},get shadowRootContainer(){return _e()},set shadowRootContainer(z){_e(z)},get outerContainerRef(){return ke()},set outerContainerRef(z){ke(z)},get fullScreenTarget(){return Be()},set fullScreenTarget(z){Be(z)},get failoverHosts(){return pe()},set failoverHosts(z){pe(z)},get showMiniTimer(){return R()},set showMiniTimer(z){R(z)},get saveRate(){return ye()},set saveRate(z){ye(z)},get showAutoplayNext(){return Te()},set showAutoplayNext(z){Te(z)},get seekToInteractive(){return Ie()},set seekToInteractive(z){Ie(z)},get playPrevChapter(){return je()},set playPrevChapter(z){je(z)},get volumeMultiplier(){return ze()},set volumeMultiplier(z){ze(z)},get showEndScreen(){return Me()},set showEndScreen(z){Me(z)},get keyboardControls(){return We()},set keyboardControls(z){We(z)}});return o(),co}var z3=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 cm(t,e){let i=Se(e,["$$slots","$$events","$$legacy","children"]);var o=z3();let n;var a=h(o);ue(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 um(t,e){let i=v(e,"isWhite",3,!1),o=m(()=>i()?"color: #fff;":"color: #909499;");cm(t,{get style(){return r(o)}})}var W3=L('<div class="title svelte-1y9fytq"> </div>'),q3=L('<div class="playerStub svelte-1y9fytq"><!> <!></div>'),K3={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 pm(t,e){W(t,K3);var i=q3(),o=h(i);{var n=d=>{var l=W3(),c=h(l,!0);g(l),C(()=>ce(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);um(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 mx}from"@vkontakte/videoplayer-shared/es2024";import{cloneDeepWith as vx,InterfaceLanguage as gx,isNonNullable as _m,Logger as hx,Observable as _x,Subscription as Jh,once as bx,InternalsExposure as $x,skip as yx}from"@vkontakte/videoplayer-shared/es2024";import{clientChecker as e1,isMobile as xx}from"@vkontakte/videoplayer-core/es2024";import{OneStat as wx}from"@vkontakte/videoplayer-statistics/es2024";import{Logger as Q3,Subscription as G3}from"@vkontakte/videoplayer-shared/es2024";var Fc=class{constructor(){this.subscription=new G3,this.logger=new Q3,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 vm,detectEmbed as X3}from"@vkontakte/videoplayer-shared/es2024";var Y3=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 fm(t,e){let i=Se(e,["$$slots","$$events","$$legacy","children"]);var o=Y3();let n;var a=h(o);ue(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 j3=L('<div><div><!></div> <span class="title svelte-1pbsod4"> </span></div>'),Z3={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 mm(t,e){F(e,!0),W(t,Z3);let[i,o]=De(),n=()=>y(c,"$interfaceLanguage$",i),a=()=>y(u,"$isMobile$",i),s=be(),d=Rt(),l=!!s.webApi.pictureInPictureApi,c=s.interfaceLanguage$,u=s.ui.isMobile,_=s.ui.t,f=m(()=>n()&&_("pip_dummy_title")),$=Hc(d.view);var x=j3();Z(x,1,"player-pip-dummy svelte-1pbsod4",null,{},{"is-pip-api":l}),tt(x,$);var w=h(x);let S;var I=h(w);fm(I,{}),g(w);var M=E(w,2),P=h(M,!0);g(M),g(x),C(A=>{S=Z(w,1,"dummy-image svelte-1pbsod4",null,S,A),ce(P,r(f))},[()=>({desktop:!a()})]),b(t,x),U(),o()}var J3=460,ex=280,dd=class{playerDomElement;playerParentShadowRoot;playerDummyElement;svelteContext;pipWindow;info={isActive$:new vm(!1),isEnabled$:new vm(!1),type:1};constructor({enabled:e=!0}={enabled:!0}){this.info.isEnabled$=new vm(e)}isSupported(){let{isEmbed:e}=X3();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:J3,height:ex,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(`
395
+ `),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=Qr(mm,a),this.pipWindow?.document.body.append(o),this.info.isActive$.next(!0),this.pipWindow?.addEventListener("unload",s=>{!this.playerDomElement||!this.playerParentShadowRoot||!this.playerDummyElement||(Pa(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 Kh(t){return t instanceof dd}var Uc=class{static getLatestSupportedVersion(e){let i=new Na,o=new dd(e);if(o.isSupported())return o;if(i.isSupported())return i}};function zc(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",Gh="Annotation with such name already exists",Yh="Annotation with such name does not exist";var Bs=class extends Error{constructor(e){super(e),this.name="AnnotationError"}};import{observeElementSize as tx,Subscription as ix,throttleFn as ox}from"@vkontakte/videoplayer-shared/es2024";var nx="1",rx=100,Wc=class{constructor(e){this.annotationsInside=e;this.annotations=new Map;this.subscriptions=new ix}init(e){if(this.rootAnnotationsContainer=e,this.annotationsInside)return;let i=ox(()=>{for(let o of this.annotations.values())this.isElementExceedsBoundaries(o,this.playerSize.width,this.playerSize.height)?o.style.visibility="hidden":o.style.visibility="visible"},rx);this.subscriptions.add(tx(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 Bs(Qh);if(this.annotations.has(e))throw new Bs(Gh);i.style.zIndex=i.style.zIndex??nx,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 Bs(Yh);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 ax}from"@vkontakte/videoplayer-shared/es2024";var ho=class{init({store:e,microStores:i,interactiveController:o,config:n}){return qc(e),qc(i),qc(n),n.interactiveData&&qc(o),this.subscription=new ax,this.subscription}};var cd=class extends ho{constructor(){super(...arguments);this.stateName="fakeIsPlaying$";this.state$={...re(null),toggle:()=>this.state$.update(i=>!i)}}init(i){let o=super.init(i),{isInteractiveExpectation$:n}=i.store.state;return o.add(n.subscribe(a=>{this.state$.set(a?!0:null)})),o}};var ud=class extends ho{constructor(){super(...arguments);this.stateName="interactiveControlsOpacity$";this.state$={...re(null),toggle:()=>this.state$.update(i=>!i)}}init(i){let o=super.init(i),{microStores:n,store:a}=i,{fakeIsPlaying$:s}=n,{isInteractiveExpectation$:d,isPlaying$:l}=a.state,{controlsVisible:c,isMobile:u}=a.ui,_=ve(u),f=()=>_&&ve(c);return o.add(c.subscribe($=>{if(!_)return;let x=ve(s);ve(l)?this.state$.set($):x!==null&&this.state$.set(!x||$)})),o.add(l.subscribe($=>{this.state$.set(!$||f())})),o.add(s.subscribe($=>{if($===null)return;let x=ve(d);if(f()){this.state$.set(!0);return}x&&this.state$.set(!$)})),o}};var pd=class extends ho{constructor(){super(...arguments);this.stateName="seekToInteractiveDisabledTooltip$";this.state$=re("tooltip_chapter_without_interactive")}init(i){let o=super.init(i),{store:n}=i;return o.add(n.state.interactiveEpisodes$.subscribe(a=>{a.length&&(a.every(s=>s.completed)?this.state$.set("tooltip_interactive_of_chapter_completed"):this.state$.set("tooltip_disabled_when_interactive"))})),o}};import{combine as sx}from"@vkontakte/videoplayer-shared/es2024";var gm=re(!1),Kc=null,fd=class extends ho{constructor(){super(...arguments);this.stateName="showInteractiveTimeIndicatorTooltip$";this.state$={...gm,set:(i,o=!1)=>{i!==ve(gm)&&(this.clearTimeout(),gm.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(sx({isPlaying$:d,isInteractiveTime$:s,interactiveTimeIndicator:c}).subscribe(({isPlaying$:_,isInteractiveTime$:f,interactiveTimeIndicator:$})=>{if(!(!_||!$?.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 lx,noop as dx}from"@vkontakte/videoplayer-shared/es2024";var md=class extends ho{constructor(){super(...arguments);this.stateName="graphIsOpened$";this.graphMadePause=!1;this.state$={...re(null),toggle:dx};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),$=ve(u);if(l)try{await a?.toggleGraphView(!1),this.state$.set(!1),_.remove(Yu),!f&&this.graphMadePause&&n.actions.internal.play()}catch{d({message:"Cant hide graph"})}else{this.graphMadePause=$==="playing";try{await a?.toggleGraphView(!0),this.state$.set(!0),_.add(Yu),!f&&this.graphMadePause&&n.actions.internal.pause()}catch{d({message:"Cant show graph"})}}},o.add(lx({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 jh}from"@vkontakte/videoplayer-shared/es2024";var vd=class extends ho{constructor(){super(...arguments);this.stateName="pictureInPicture$";this.state$={isActive$:re(!1),isEnabled$:re(!1),type$:re(void 0)}}init(i){let o=super.init(i),{store:n}=i,{info:{isActive$:a,isEnabled$:s,type:d}}=n.webApi.pictureInPictureApi||{info:{isActive$:new jh(!1),isEnabled$:new jh(!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 px,filterChanged as fx}from"@vkontakte/videoplayer-shared/es2024";import{safeStorage as hm}from"@vkontakte/videoplayer-shared/es2024";var Zh=({maxShowCount:t,timeout:e})=>{let i=[t!==0?cx({maxCount:t}):void 0,e!==0?ux({timeout:e}):void 0].filter(o=>!!o);return{notificationShowed:o=>i.forEach(n=>n.notificationShowed(o)),canShowNotification:o=>i.every(n=>n.canShowNotification(o))}},cx=({maxCount:t})=>{let e={};return{notificationShowed:i=>{e[i]=(e[i]??0)+1,hm.set("videoplayer_notifications_manager_count",JSON.stringify(e[i]??0))},canShowNotification:i=>(e[i]??0)<t}},ux=({timeout:t})=>{let e="videoplayer_notifications_manager",i=()=>{try{return JSON.parse(hm.get(e)||"{}")}catch{return{}}},o=a=>hm.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 ho{constructor(){super(...arguments);this.stateName="notifications$";this.state$={notificationsToShow$:re({}),showNotification:i=>{this.state$.notificationsToShow$.update(o=>(o[i]=!0,o)),this.notificationManager.notificationShowed(i)},closeNotification:i=>{this.state$.notificationsToShow$.update(o=>(delete o[i],o))}}}init(i){let o=super.init(i),{store:n,uiConfig:{features:{maxCountShowSlowVideoNotification:a,timeoutShowSlowVideoNotification:s,showSlowVideoNotification:d,forceAutoQualityWhenSevereStallHappens:l}}}=i;this.notificationManager=Zh({maxShowCount:a,timeout:s});let c=n.getPlayer();return o.add(c.events.severeStallOccured$.pipe(fx(),px(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 Xh=()=>[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/es2024";var Sx={preload:!0,autoplay:!1,repeat:!1,fromTime:0,canRewindLive:!0,showAds:!1,interfaceLanguage:gx.RU,isCyrillicRelatedInterface:!0,logoClickable:!1,logoHidden:!1,isTouch:xx(),isMediaSessionEnabled:!0,isPictureInPictureEnabled:!0,isAudioDisabled:!1,callbacks:{uiInfo:{}},tuningConfig:{configName:[]},saveRate:!0,volumeMultiplier:1,showEndScreen:!0,showAutoplayNext:!0,showNextPrevButtons:!0},tn=Y(void 0),Qc=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;shadowDOMCallbacksDisabled=!1;constructor(){super(),hd.create("ui"),this.logger=new hx,this.log=this.logger.createComponentLog("VKVideoPlayer"),this.subscription=new Jh,this.interactiveSubscription=new Jh,this.graphMadePause=!1}connectedCallback(){if(this.isInited||this.shadowDOMCallbacksDisabled)return;this.initPlayerRootContainers();let e=this.getAttribute("stub-title")??void 0,i=this.getAttribute("stub-thumb-url")??void 0,o=de({title:e,thumbUrl:i}),n={target:this.playerContainer,props:o};this.svelteStubComponent=Qr(pm,n)}disconnectedCallback(){this.shadowDOMCallbacksDisabled||(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:$,interactiveData:x}=zc(this.videoConfig,i),w=x?.projectInfo?.pid,S=this.interactiveController?.state.isReplay$.getValue()??!1;S&&(this.prevIsid=void 0);let{unitedVideoId:I,isClip:M=!1}=e;if(this.uiConfig.features.statistics&&I)return new wx({movieId:I,albumId:o,place:n,trackCode:s,vkAppId:d,autoplay:(c&&!this.interactiveController)??!1,mobile:_??u,clip:M,refDomain:f,deviceId:$,...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:$,showAds:x,adsSlotId:w,adsParams:S={},adsPreviewParam:I,adsAutoplayParam:M,interfaceLanguage:P,isCyrillicRelatedInterface:A,logoClickable:T,logoHidden:B,isMobile:Q,isTouch:G,isAudioDisabled:ee,isLiveCatchUpMode:te,fullScreenTarget:ie,failoverHosts:oe,canDownload:ge,callbacks:X,interactiveData:Ve,showThumbTimer:Ae,additionalButtons:se=[],additionalSettingsMenuItems:He=[],additionalContextMenuItems:j=[],repeat:D,saveRate:Re,volumeMultiplier:_e,showEndScreen:ke,showAutoplayNext:Be}=zc(this.videoConfig,i),{sources:pe,title:R,thumbUrl:ye,unitedVideoId:Ie,isClip:je=!1,duration:ze,adsParams:Te={},videoEpisodes:Me,previewThumbsData:We,subtitles:it,live:vt}=e,st={...S,...Te},It=this.getNextVideoInfo(),nt={sources:pe,title:R,thumbUrl:ye,subtitles:it,unitedVideoId:Ie,isClip:je,live:vt,albumId:n,statPlace:a,autoplay:l,muted:u,volume:c,fromTime:_,canRewindLive:f,showAds:x,adsSlotId:w,adsParams:st,adsPreviewParam:I,adsAutoplayParam:M,duration:ze,logoClickable:T,logoHidden:B,isTouch:G??Q,repeat:D,showNextPrevButtons:this.needToShowNextPrevButtons(),nextButtonActive:this.isNextButtonActive(),prevButtonActive:this.isPrevButtonActive(),endScreenVideoTitle:It.nextVideoTitle,endScreenVideoThumb:It.nextVideoThumb,isOneVideoPlaylist:this.isOneVideoPlaylist()},gt={pictureInPictureApi:this.pictureInPictureApi,annotationsApi:this.annotationsApi};this.log({message:`create player, props: ${JSON.stringify(nt)}`});let Mt=this.interactiveController?.state.statistics$.getValue(),Ce=Mt?.oneStat||this.createOneStat(e,i);Ce&&(this.statistics=new Cc(Ce,Mt?.statSubscription)),this.uiConfig.features.sentry&&this.uiConfig.sentry.dsn&&new Ra(this.uiConfig.sentry,{version:Ss,env:Zd},{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,...Ra.getInstance()};let Ze=!!Ve,q=[],ae="tooltip_interactive_go_back_disabled_first";if(Ze&&this.interactiveController){let wt=this.interactiveController.state.isInitialChapter$.getValue(),Ke=this.interactiveController.getHistoryState();wt&&q.push("REPLAY_BUTTON"),this.interactiveController.getIsSeekable().getValue()||q.push("SEEK_TO_INTERACTIVE_BUTTON"),Ke.hasPrevChapter$.getValue()||(q.push("PLAY_PREV_CHAPTER_BUTTON"),wt||(Ke.isGoBackLimited$.getValue()?ae="tooltip_interactive_go_back_disabled_limit":ae="tooltip_interactive_go_back_disabled"))}let ne=()=>{this.isInited=!1,this.prevIsid=void 0;let wt=o?.info.isEnded$.getValue()&&this.interactiveController?.state.isEndChapter$.getValue();X.onReplayInteractiveVideo&&!wt?X.onReplayInteractiveVideo():this.replayInteractiveVideo()};this.store=gh({player:o,interfaceLanguage:P,isCyrillicRelatedInterface:A,videoId:Ie,isClip:je,isLiveCatchUpMode:te,isAudioDisabled:ee,statAuthToken:s,callbacks:X,webApi:gt,videoEpisodes:Me,previewThumbsData:We,canDownload:ge,uiConfig:this.uiConfig,coreConfig:this.coreConfig,disabledControls:q,isInteractive:Ze,saveRate:Re,interactiveRanges$:this.interactiveController?.state.interactiveRanges$,isInteractiveTime$:this.interactiveController?.state.isInteractiveTime$,stopPlayer:()=>this.stop(),replayInteractive:ne,playPrevChapterDisabledTooltip:ae,hasInteractiveBranches:!!this.interactiveController?.getChapterBranches()?.length,additionalButtons:this.uiConfig.features.additionalButtons?se:[],additionalSettingsMenuItems:He??[],additionalContextMenuItems:j??[],playPrevVideo:()=>this.playPrevVideo(),playNextVideo:()=>this.playNextVideo(),looped:D&&this.videoConfig.videos.length===1,statistics:this.statistics,internalsExposure:this.internalsExposure});let{stores:Fe}=this.microStoresRoot=Xh(),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 _x(Ke=>{this.store&&this.subscription.add(this.store.state.currentPlaybackRate$.subscribe(Je=>Ke.next(Je)))}).pipe(this.uiConfig.features.skipInitialPlaybackRateValue?yx(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 Je=this.store?.ui.controls.disabledControls$;Je&&(Ke&&!Je.includes(fl)&&Je.add(fl),Ke||Je.remove(fl))})),this.subscription.add(this.store.ui.isFullscreen.subscribe(async Ke=>{if(!e1.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(tn,de({interactiveController:this.interactiveController,interactiveContainer:this.interactiveContainer,sources:pe,store:this.store,microStoresRoot:this.microStoresRoot,videoConfig:this.videoConfig,uiConfig:this.uiConfig,title:R,thumbUrl:ye,subtitles:it,live:vt,preload:d,autoplay:l,muted:u,volume:c,fromTime:_,canRewindLive:f,supportLink:$,showAds:x,adsSlotId:w,adsParams:st,adsPreviewParam:I,adsAutoplayParam:M,duration:ze,logoClickable:T,logoHidden:B,isMobile:G??Q,failoverHosts:oe,fullScreenTarget:ie,saveRate:Re,shadowRootContainer:this.shadowRootContainer,showMiniTimer:Ae,outerContainerRef:this.rootContainer,showNextPrevButtons:this.needToShowNextPrevButtons(),nextButtonActive:this.isNextButtonActive(),prevButtonActive:this.isPrevButtonActive(),endScreenVideoTitle:It.nextVideoTitle,endScreenVideoThumb:It.nextVideoThumb,isOneVideoPlaylist:this.isOneVideoPlaylist(),playPrevChapter:()=>this.playPrevChapter(),seekToInteractive:()=>this.seekToInteractive(),volumeMultiplier:_e,showEndScreen:ke,showAutoplayNext:Be}));let wt={target:this.playerContainer,props:r(tn)};this.svelteRootComponent=Qr(dm,wt),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?e1.isInited$.subscribe(wt=>{wt&&(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&&_m(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/es2024");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 $=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$)||$;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=zc(Sx,vx(e,o=>o instanceof HTMLElement?o:void 0)),this.uiConfig=Zv(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 $x("UI")),hd.push("ui",{key:"videoplayer_embed",strings:["new","player_init_player","ads.enable: "+this.uiConfig.ads.enable,"showAds: "+this.videoConfig?.showAds],numbers:[mx()]}),_m(this.videoConfig.isMediaSessionEnabled)&&(this.uiConfig.features.mediaSession=this.uiConfig.features.mediaSession??this.videoConfig.isMediaSessionEnabled??!0),_m(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=Uc.getLatestSupportedVersion(o):this.pictureInPictureApi=new Na(o)}this.mediaSessionApi=this.uiConfig.features.mediaSession?new Fc:void 0,this.slotsApi=this.uiConfig.features.slots?new Nc:void 0,this.annotationsApi=this.uiConfig.features.annotations?new Wc(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]),Kh(this.pictureInPictureApi)&&this.pictureInPictureApi.setPlayerDomElement(this.playerContainer,this._shadowRoot)}isOneVideoPlaylist(){return this.videoConfig?this.videoConfig.videos.length===1:!1}updateVideos(e,i){if(!this.videoConfig)return;this.log({message:`update ${i} videos, videos: ${JSON.stringify(e)}`}),i==="prev"?(this.videoConfig.videos.splice(0,this.currentPlayingVideoIndex),this.videoConfig.videos.unshift(...e),this.currentPlayingVideoIndex=e.length):i==="next"&&(this.videoConfig.videos.splice(this.currentPlayingVideoIndex+1),this.videoConfig.videos.push(...e));let o=this.getNextVideoInfo();r(tn)&&(r(tn).showNextPrevButtons=this.needToShowNextPrevButtons(),r(tn).nextButtonActive=this.isNextButtonActive(),r(tn).prevButtonActive=this.isPrevButtonActive(),r(tn).endScreenVideoTitle=o.nextVideoTitle,r(tn).endScreenVideoThumb=o.nextVideoThumb,r(tn).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})}}moveTo(e){this.shadowDOMCallbacksDisabled=!0,e.append(this),this.shadowDOMCallbacksDisabled=!1}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,r(tn)&&(r(tn).needToRepeatPlaylist=this.needToRepeatPlaylist,r(tn).showNextPrevButtons=this.needToShowNextPrevButtons(),r(tn).nextButtonActive=this.isNextButtonActive(),r(tn).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)}getDebugData(){return this.store?.actions.internal.getDebugTextData()??""}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(bx()).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&&Pa(e)}};import{InterfaceLanguage as Lj,VKNumericLanguage as Vj,loadVKLangPack as Rj}from"@vkontakte/videoplayer-shared/es2024";import{VideoQuality as Nj,VideoFormat as Bj}from"@vkontakte/videoplayer-core/es2024";var Cj=()=>{window.customElements.define("vk-video-player",Qc)};export{kc as ControlButtonType,Lr as GridTypes,Lj as InterfaceLanguage,wl as MenuItemType,Da as PlayerPhase,Ss as VERSION,Vj as VKNumericLanguage,Bj as VideoFormat,Nj as VideoQuality,Rj as loadVKLangPack,Cj as registerPlayerWebComponent};