@vkontakte/videoplayer 1.1.68-dev.102bdf41.0 → 1.1.68-dev.26d8ec66.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/es2018.esm.js CHANGED
@@ -1,59 +1,59 @@
1
1
  /**
2
- * @vkontakte/videoplayer v1.1.68-dev.102bdf41.0
3
- * Fri, 08 Aug 2025 09:09:00 GMT
2
+ * @vkontakte/videoplayer v1.1.68-dev.26d8ec66.0
3
+ * Mon, 11 Aug 2025 20:03:12 GMT
4
4
  * https://st.mycdn.me/static/vkontakte-videoplayer/1-1-68/doc/
5
5
  */
6
- var s0=Object.defineProperty;var uv=t=>{throw TypeError(t)};var a0=(t,e,i)=>e in t?s0(t,e,{enumerable:!0,configurable:!0,writable:!0,value:i}):t[e]=i;var zn=(t,e,i)=>a0(t,typeof e!="symbol"?e+"":e,i),Ou=(t,e,i)=>e.has(t)||uv("Cannot "+i);var ki=(t,e,i)=>(Ou(t,e,"read from private field"),i?i.call(t):e.get(t)),ys=(t,e,i)=>e.has(t)?uv("Cannot add the same private member more than once"):e instanceof WeakSet?e.add(t):e.set(t,i),Ma=(t,e,i,o)=>(Ou(t,e,"write to private field"),o?o.call(t,i):e.set(t,i),i),pv=(t,e,i)=>(Ou(t,e,"access private method"),i);var xs="[",ws="[!",zs="]",Qr={};var Qi=Symbol(),wn=Symbol("filename"),fv=Symbol("hmr"),mv="http://www.w3.org/1999/xhtml",ic="http://www.w3.org/2000/svg";var Du="@attach";var oc=!0;var gv,hv,vv=(hv=(gv=globalThis.process)==null?void 0:gv.env)==null?void 0:hv.NODE_ENV,Pe=vv&&!vv.toLowerCase().startsWith("prod");var Wn=Array.isArray,_v=Array.prototype.indexOf,_l=Array.from,Hu=Object.keys,ro=Object.defineProperty,zo=Object.getOwnPropertyDescriptor,nc=Object.getOwnPropertyDescriptors,Fu=Object.prototype,bv=Array.prototype,Ws=Object.getPrototypeOf,Uu=Object.isExtensible;function Cs(t){return typeof t=="function"}var oe=()=>{};function $v(t){return t()}function Ss(t){for(var e=0;e<t.length;e++)t[e]()}var Eo=Symbol("$state"),La=Symbol("legacy props"),yv=Symbol(""),rc=Symbol("proxy path"),sc=1,Va=3,qn=8;function ac(t){return t===this.v}function Ra(t,e){return t!=t?e==e:t!==e||t!==null&&typeof t=="object"||typeof t=="function"}function xv(t,e){return t!==e}function Na(t){return!Ra(t,this.v)}function wv(){if(Pe){let t=new Error(`derived_references_self
6
+ var r0=Object.defineProperty;var uv=t=>{throw TypeError(t)};var s0=(t,e,i)=>e in t?r0(t,e,{enumerable:!0,configurable:!0,writable:!0,value:i}):t[e]=i;var Wn=(t,e,i)=>s0(t,typeof e!="symbol"?e+"":e,i),Hu=(t,e,i)=>e.has(t)||uv("Cannot "+i);var Pi=(t,e,i)=>(Hu(t,e,"read from private field"),i?i.call(t):e.get(t)),ws=(t,e,i)=>e.has(t)?uv("Cannot add the same private member more than once"):e instanceof WeakSet?e.add(t):e.set(t,i),Pa=(t,e,i,o)=>(Hu(t,e,"write to private field"),o?o.call(t,i):e.set(t,i),i),pv=(t,e,i)=>(Hu(t,e,"access private method"),i);var Cs="[",Ss="[!",Us="]",Gr={};var Ki=Symbol(),Cn=Symbol("filename"),fv=Symbol("hmr"),mv="http://www.w3.org/1999/xhtml",nc="http://www.w3.org/2000/svg";var Fu="@attach";var rc=!0;var gv,hv,vv=(hv=(gv=globalThis.process)==null?void 0:gv.env)==null?void 0:hv.NODE_ENV,Me=vv&&!vv.toLowerCase().startsWith("prod");var Kn=Array.isArray,_v=Array.prototype.indexOf,$l=Array.from,Uu=Object.keys,Ji=Object.defineProperty,qo=Object.getOwnPropertyDescriptor,sc=Object.getOwnPropertyDescriptors,zu=Object.prototype,bv=Array.prototype,zs=Object.getPrototypeOf,Wu=Object.isExtensible;function Ts(t){return typeof t=="function"}var se=()=>{};function $v(t){return t()}function Es(t){for(var e=0;e<t.length;e++)t[e]()}var Lo=Symbol("$state"),Aa=Symbol("legacy props"),yv=Symbol(""),ac=Symbol("proxy path"),lc=1,Ma=3,qn=8;function dc(t){return t===this.v}function La(t,e){return t!=t?e==e:t!==e||t!==null&&typeof t=="object"||typeof t=="function"}function xv(t,e){return t!==e}function Va(t){return!La(t,this.v)}function wv(){if(Me){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 Cv(t){if(Pe){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 Cv(t){if(Me){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 Sv(){if(Pe){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 Tv(t){if(Pe){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 Sv(){if(Me){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 Tv(t){if(Me){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 Ev(){if(Pe){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 Ev(){if(Me){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 Iv(){if(Pe){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 Iv(){if(Me){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 kv(){if(Pe){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 Pv(t){if(Pe){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 kv(){if(Me){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 Pv(t){if(Me){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 Av(t){if(Pe){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 Av(t){if(Me){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 Mv(t){if(Pe){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 Mv(t){if(Me){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 Lv(){if(Pe){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 Vv(){if(Pe){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 Rv(){if(Pe){let t=new Error("state_unsafe_mutation\nUpdating state inside `$derived(...)`, `$inspect(...)` 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 Gr=!1,Yr=!1;function Nv(){Gr=!0}var bl=null;function ss(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 Lv(){if(Me){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 Vv(){if(Me){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 Rv(){if(Me){let t=new Error("state_unsafe_mutation\nUpdating state inside `$derived(...)`, `$inspect(...)` or a template expression is forbidden. If the value should not be reactive, declare it without `$state`\nhttps://svelte.dev/e/state_unsafe_mutation");throw t.name="Svelte error",t}else throw new Error("https://svelte.dev/e/state_unsafe_mutation")}var Qr=!1,Yr=!1;function Nv(){Qr=!0}var yl=null;function ss(t){let e=Error(),i=e.stack;if(i){let o=i.split(`
23
23
  `),n=[`
24
- `];for(let r=0;r<o.length;r++){let l=o[r];if(l!=="Error"){if(l.includes("validate_each_keys"))return null;l.includes("svelte/src/internal")||n.push(l)}}if(n.length===1)return null;ro(e,"stack",{value:n.join(`
25
- `)}),ro(e,"name",{value:`${t}Error`})}return e}function Er(t,e){return t.label=e,lc(t.v,e),t}function lc(t,e){var i;return(i=t==null?void 0:t[rc])==null||i.call(t,e),t}function Ba(t){if(Pe){let e=new Error(`lifecycle_outside_component
24
+ `];for(let s=0;s<o.length;s++){let l=o[s];if(l!=="Error"){if(l.includes("validate_each_keys"))return null;l.includes("svelte/src/internal")||n.push(l)}}if(n.length===1)return null;Ji(e,"stack",{value:n.join(`
25
+ `)}),Ji(e,"name",{value:`${t}Error`})}return e}function Pr(t,e){return t.label=e,cc(t.v,e),t}function cc(t,e){var i;return(i=t==null?void 0:t[ac])==null||i.call(t,e),t}function Ra(t){if(Me){let e=new Error(`lifecycle_outside_component
26
26
  \`${t}(...)\` can only be used during component initialisation
27
- 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 Lt=null;function $l(t){Lt=t}var Kn=null;function yl(t){Kn=t}function Oa(t){return qu("getContext").get(t)}function Da(t,e){return qu("setContext").set(t,e),e}function xl(){return qu("getAllContexts")}function D(t,e=!1,i){var o=Lt={p:Lt,c:null,d:!1,e:null,m:!1,s:t,x:null,l:null};Gr&&!e&&(Lt.l={s:null,u:null,r1:[],r2:pr(!1)}),Io(()=>{o.d=!0}),Pe&&(Lt.function=i,Kn=i)}function H(t){var l,d;let e=Lt;if(e!==null){t!==void 0&&(e.x=t);let a=e.e;if(a!==null){var i=mt,o=Et;e.e=null;try{for(var n=0;n<a.length;n++){var r=a[n];so(r.effect),Ni(r.reaction),bo(r.fn)}}finally{so(i),Ni(o)}}Lt=e.p,Pe&&(Kn=(d=(l=e.p)==null?void 0:l.function)!=null?d:null),e.m=!0}return t||{}}function jr(){return!Gr||Lt!==null&&Lt.l===null}function qu(t){var e;return Lt===null&&Ba(t),(e=Lt.c)!=null?e:Lt.c=new Map(d0(Lt)||void 0)}function d0(t){let e=t.p;for(;e!==null;){let i=e.c;if(i!==null)return i;e=e.p}return null}var c0=/^[a-zA-Z_$][a-zA-Z_$0-9]*$/;function oi(t){if(typeof t!="object"||t===null||Eo in t)return t;let e=Ws(t);if(e!==Fu&&e!==bv)return t;var i=new Map,o=Wn(t),n=j(0),r=Pe&&Yr?ss("CreatedAt"):null,l=Et,d=f=>{var v=Et;Ni(l);var u=f();return Ni(v),u};o&&i.set("length",j(t.length,r));var a="";function p(f){a=f,Er(n,`${a} version`);for(let[v,u]of i)Er(u,qs(a,v))}return new Proxy(t,{defineProperty(f,v,u){(!("value"in u)||u.configurable===!1||u.enumerable===!1||u.writable===!1)&&Lv();var $=i.get(v);return $===void 0?$=d(()=>{var w=j(u.value,r);return i.set(v,w),Pe&&typeof v=="string"&&Er(w,qs(a,v)),w}):B($,u.value,!0),!0},deleteProperty(f,v){var u=i.get(v);if(u===void 0){if(v in f){let y=d(()=>j(Qi,r));i.set(v,y),Ku(n),Pe&&Er(y,qs(a,v))}}else{if(o&&typeof v=="string"){var $=i.get("length"),w=Number(v);Number.isInteger(w)&&w<$.v&&B($,w)}B(u,Qi),Ku(n)}return!0},get(f,v,u){var S;if(v===Eo)return t;if(Pe&&v===rc)return p;var $=i.get(v),w=v in f;if($===void 0&&(!w||(S=zo(f,v))!=null&&S.writable)&&($=d(()=>{var T=oi(w?f[v]:Qi),k=j(T,r);return Pe&&Er(k,qs(a,v)),k}),i.set(v,$)),$!==void 0){var y=s($);return y===Qi?void 0:y}return Reflect.get(f,v,u)},getOwnPropertyDescriptor(f,v){var u=Reflect.getOwnPropertyDescriptor(f,v);if(u&&"value"in u){var $=i.get(v);$&&(u.value=s($))}else if(u===void 0){var w=i.get(v),y=w==null?void 0:w.v;if(w!==void 0&&y!==Qi)return{enumerable:!0,configurable:!0,value:y,writable:!0}}return u},has(f,v){var y;if(v===Eo)return!0;var u=i.get(v),$=u!==void 0&&u.v!==Qi||Reflect.has(f,v);if(u!==void 0||mt!==null&&(!$||(y=zo(f,v))!=null&&y.writable)){u===void 0&&(u=d(()=>{var S=$?oi(f[v]):Qi,T=j(S,r);return Pe&&Er(T,qs(a,v)),T}),i.set(v,u));var w=s(u);if(w===Qi)return!1}return $},set(f,v,u,$){var V;var w=i.get(v),y=v in f;if(o&&v==="length")for(var S=u;S<w.v;S+=1){var T=i.get(S+"");T!==void 0?B(T,Qi):S in f&&(T=d(()=>j(Qi,r)),i.set(S+"",T),Pe&&Er(T,qs(a,S)))}if(w===void 0)(!y||(V=zo(f,v))!=null&&V.writable)&&(w=d(()=>j(void 0,r)),B(w,oi(u)),i.set(v,w),Pe&&Er(w,qs(a,v)));else{y=w.v!==Qi;var k=d(()=>oi(u));B(w,k)}var A=Reflect.getOwnPropertyDescriptor(f,v);if(A!=null&&A.set&&A.set.call($,u),!y){if(o&&typeof v=="string"){var I=i.get("length"),E=Number(v);Number.isInteger(E)&&E>=I.v&&B(I,E+1)}Ku(n)}return!0},ownKeys(f){s(n);var v=Reflect.ownKeys(f).filter(w=>{var y=i.get(w);return y===void 0||y.v!==Qi});for(var[u,$]of i)$.v!==Qi&&!(u in f)&&v.push(u);return v},setPrototypeOf(){Vv()}})}function qs(t,e){var i;return typeof e=="symbol"?`${t}[Symbol(${(i=e.description)!=null?i:""})]`:c0.test(e)?`${t}.${e}`:/^\d+$/.test(e)?`${t}[${e}]`:`${t}['${e}']`}function Ku(t,e=1){B(t,t.v+e)}function Ha(t){try{if(t!==null&&typeof t=="object"&&Eo in t)return t[Eo]}catch(e){}return t}function Qu(t,e){return Object.is(Ha(t),Ha(e))}function Ir(t){var e=2050,i=Et!==null&&(Et.f&2)!==0?Et:null;mt===null||i!==null&&(i.f&256)!==0?e|=256:mt.f|=1048576;let o={ctx:Lt,deps:null,effects:null,equals:ac,f:e,fn:t,reactions:null,rv:0,v:null,wv:0,parent:i!=null?i:mt};return Pe&&Yr&&(o.created=ss("CreatedAt")),o}function h(t){let e=Ir(t);return uc(e),e}function kr(t){let e=Ir(t);return e.equals=Na,e}function dc(t){var e=t.effects;if(e!==null){t.effects=null;for(var i=0;i<e.length;i+=1)Bi(e[i])}}var Gu=[];function u0(t){for(var e=t.parent;e!==null;){if((e.f&2)===0)return e;e=e.parent}return null}function Zu(t){var e,i=mt;if(so(u0(t)),Pe){let o=Ks;Yu(new Set);try{Gu.includes(t)&&wv(),Gu.push(t),dc(t),e=cc(t)}finally{so(i),Yu(o),Gu.pop()}}else try{dc(t),e=cc(t)}finally{so(i)}return e}function Xu(t){var e=Zu(t);if(t.equals(e)||(t.v=e,t.wv=wl()),!as){var i=(ls||(t.f&256)!==0)&&t.deps!==null?4096:1024;sn(t,i)}}var Ks=new Set,Fa=new Map;function Yu(t){Ks=t}function pr(t,e){var i={f:0,v:t,reactions:null,equals:ac,rv:0,wv:0};return Pe&&Yr&&(i.created=e!=null?e:ss("CreatedAt"),i.updated=null,i.set_during_effect=!1,i.trace=null),i}function j(t,e){let i=pr(t,e);return uc(i),i}function Zr(t,e=!1,i=!0){var n,r;let o=pr(t);return e||(o.equals=Na),Gr&&i&&Lt!==null&&Lt.l!==null&&((r=(n=Lt.l).s)!=null?r:n.s=[]).push(o),o}function B(t,e,i=!1){var n;Et!==null&&(!Yn||(Et.f&262144)!==0)&&jr()&&(Et.f&262162)!==0&&!((n=Po)!=null&&n[1].includes(t)&&Po[0]===Et)&&Rv();let o=i?oi(e):e;return Pe&&lc(o,t.label),Ua(t,o)}function Ua(t,e){if(!t.equals(e)){var i=t.v;if(as?Fa.set(t,e):Fa.set(t,i),t.v=e,Pe&&Yr&&(t.updated=ss("UpdatedAt"),mt!==null&&(t.set_during_effect=!0)),(t.f&2)!==0&&((t.f&2048)!==0&&Zu(t),sn(t,(t.f&256)===0?1024:4096)),t.wv=wl(),Ov(t,2048),jr()&&mt!==null&&(mt.f&1024)!==0&&(mt.f&96)===0&&(Gn===null?Dv([t]):Gn.push(t)),Pe&&Ks.size>0){let o=Array.from(Ks);for(let n of o)(n.f&1024)!==0&&sn(n,4096),Gs(n)&&za(n);Ks.clear()}}return e}function Ov(t,e){var i=t.reactions;if(i!==null)for(var o=jr(),n=i.length,r=0;r<n;r++){var l=i[r],d=l.f;if((d&2048)===0&&!(!o&&l===mt)){if(Pe&&(d&262144)!==0){Ks.add(l);continue}sn(l,e),(d&1280)!==0&&((d&2)!==0?Ov(l,4096):Sl(l))}}}var Wa="font-weight: bold",qa="font-weight: normal";function Hv(t,e,i){Pe?console.warn(`%c[svelte] hydration_attribute_changed
27
+ 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 Lt=null;function xl(t){Lt=t}var Gn=null;function wl(t){Gn=t}function Na(t){return Gu("getContext").get(t)}function Ba(t,e){return Gu("setContext").set(t,e),e}function Cl(){return Gu("getAllContexts")}function F(t,e=!1,i){var o=Lt={p:Lt,c:null,d:!1,e:null,m:!1,s:t,x:null,l:null};Qr&&!e&&(Lt.l={s:null,u:null,r1:[],r2:mr(!1)}),Vo(()=>{o.d=!0}),Me&&(Lt.function=i,Gn=i)}function U(t){var l,d;let e=Lt;if(e!==null){t!==void 0&&(e.x=t);let a=e.e;if(a!==null){var i=vt,o=Et;e.e=null;try{for(var n=0;n<a.length;n++){var s=a[n];eo(s.effect),Di(s.reaction),$o(s.fn)}}finally{eo(i),Di(o)}}Lt=e.p,Me&&(Gn=(d=(l=e.p)==null?void 0:l.function)!=null?d:null),e.m=!0}return t||{}}function jr(){return!Qr||Lt!==null&&Lt.l===null}function Gu(t){var e;return Lt===null&&Ra(t),(e=Lt.c)!=null?e:Lt.c=new Map(l0(Lt)||void 0)}function l0(t){let e=t.p;for(;e!==null;){let i=e.c;if(i!==null)return i;e=e.p}return null}var d0=/^[a-zA-Z_$][a-zA-Z_$0-9]*$/;function si(t){if(typeof t!="object"||t===null||Lo in t)return t;let e=zs(t);if(e!==zu&&e!==bv)return t;var i=new Map,o=Kn(t),n=j(0),s=Me&&Yr?ss("CreatedAt"):null,l=Et,d=f=>{var v=Et;Di(l);var u=f();return Di(v),u};o&&i.set("length",j(t.length,s));var a="";function p(f){a=f,Pr(n,`${a} version`);for(let[v,u]of i)Pr(u,Ws(a,v))}return new Proxy(t,{defineProperty(f,v,u){(!("value"in u)||u.configurable===!1||u.enumerable===!1||u.writable===!1)&&Lv();var y=i.get(v);return y===void 0?y=d(()=>{var w=j(u.value,s);return i.set(v,w),Me&&typeof v=="string"&&Pr(w,Ws(a,v)),w}):B(y,u.value,!0),!0},deleteProperty(f,v){var u=i.get(v);if(u===void 0){if(v in f){let b=d(()=>j(Ki,s));i.set(v,b),Qu(n),Me&&Pr(b,Ws(a,v))}}else{if(o&&typeof v=="string"){var y=i.get("length"),w=Number(v);Number.isInteger(w)&&w<y.v&&B(y,w)}B(u,Ki),Qu(n)}return!0},get(f,v,u){var S;if(v===Lo)return t;if(Me&&v===ac)return p;var y=i.get(v),w=v in f;if(y===void 0&&(!w||(S=qo(f,v))!=null&&S.writable)&&(y=d(()=>{var T=si(w?f[v]:Ki),E=j(T,s);return Me&&Pr(E,Ws(a,v)),E}),i.set(v,y)),y!==void 0){var b=r(y);return b===Ki?void 0:b}return Reflect.get(f,v,u)},getOwnPropertyDescriptor(f,v){var u=Reflect.getOwnPropertyDescriptor(f,v);if(u&&"value"in u){var y=i.get(v);y&&(u.value=r(y))}else if(u===void 0){var w=i.get(v),b=w==null?void 0:w.v;if(w!==void 0&&b!==Ki)return{enumerable:!0,configurable:!0,value:b,writable:!0}}return u},has(f,v){var b;if(v===Lo)return!0;var u=i.get(v),y=u!==void 0&&u.v!==Ki||Reflect.has(f,v);if(u!==void 0||vt!==null&&(!y||(b=qo(f,v))!=null&&b.writable)){u===void 0&&(u=d(()=>{var S=y?si(f[v]):Ki,T=j(S,s);return Me&&Pr(T,Ws(a,v)),T}),i.set(v,u));var w=r(u);if(w===Ki)return!1}return y},set(f,v,u,y){var R;var w=i.get(v),b=v in f;if(o&&v==="length")for(var S=u;S<w.v;S+=1){var T=i.get(S+"");T!==void 0?B(T,Ki):S in f&&(T=d(()=>j(Ki,s)),i.set(S+"",T),Me&&Pr(T,Ws(a,S)))}if(w===void 0)(!b||(R=qo(f,v))!=null&&R.writable)&&(w=d(()=>j(void 0,s)),B(w,si(u)),i.set(v,w),Me&&Pr(w,Ws(a,v)));else{b=w.v!==Ki;var E=d(()=>si(u));B(w,E)}var M=Reflect.getOwnPropertyDescriptor(f,v);if(M!=null&&M.set&&M.set.call(y,u),!b){if(o&&typeof v=="string"){var I=i.get("length"),k=Number(v);Number.isInteger(k)&&k>=I.v&&B(I,k+1)}Qu(n)}return!0},ownKeys(f){r(n);var v=Reflect.ownKeys(f).filter(w=>{var b=i.get(w);return b===void 0||b.v!==Ki});for(var[u,y]of i)y.v!==Ki&&!(u in f)&&v.push(u);return v},setPrototypeOf(){Vv()}})}function Ws(t,e){var i;return typeof e=="symbol"?`${t}[Symbol(${(i=e.description)!=null?i:""})]`:d0.test(e)?`${t}.${e}`:/^\d+$/.test(e)?`${t}[${e}]`:`${t}['${e}']`}function Qu(t,e=1){B(t,t.v+e)}function Oa(t){try{if(t!==null&&typeof t=="object"&&Lo in t)return t[Lo]}catch(e){}return t}function Yu(t,e){return Object.is(Oa(t),Oa(e))}function Ar(t){var e=2050,i=Et!==null&&(Et.f&2)!==0?Et:null;vt===null||i!==null&&(i.f&256)!==0?e|=256:vt.f|=1048576;let o={ctx:Lt,deps:null,effects:null,equals:dc,f:e,fn:t,reactions:null,rv:0,v:null,wv:0,parent:i!=null?i:vt};return Me&&Yr&&(o.created=ss("CreatedAt")),o}function g(t){let e=Ar(t);return fc(e),e}function Mr(t){let e=Ar(t);return e.equals=Va,e}function uc(t){var e=t.effects;if(e!==null){t.effects=null;for(var i=0;i<e.length;i+=1)Hi(e[i])}}var ju=[];function c0(t){for(var e=t.parent;e!==null;){if((e.f&2)===0)return e;e=e.parent}return null}function Ju(t){var e,i=vt;if(eo(c0(t)),Me){let o=Ks;Zu(new Set);try{ju.includes(t)&&wv(),ju.push(t),uc(t),e=pc(t)}finally{eo(i),Zu(o),ju.pop()}}else try{uc(t),e=pc(t)}finally{eo(i)}return e}function ep(t){var e=Ju(t);if(t.equals(e)||(t.v=e,t.wv=Sl()),!as){var i=(ls||(t.f&256)!==0)&&t.deps!==null?4096:1024;ln(t,i)}}var Ks=new Set,Da=new Map;function Zu(t){Ks=t}function mr(t,e){var i={f:0,v:t,reactions:null,equals:dc,rv:0,wv:0};return Me&&Yr&&(i.created=e!=null?e:ss("CreatedAt"),i.updated=null,i.set_during_effect=!1,i.trace=null),i}function j(t,e){let i=mr(t,e);return fc(i),i}function Zr(t,e=!1,i=!0){var n,s;let o=mr(t);return e||(o.equals=Va),Qr&&i&&Lt!==null&&Lt.l!==null&&((s=(n=Lt.l).s)!=null?s:n.s=[]).push(o),o}function B(t,e,i=!1){var n;Et!==null&&(!jn||(Et.f&262144)!==0)&&jr()&&(Et.f&262162)!==0&&!((n=No)!=null&&n[1].includes(t)&&No[0]===Et)&&Rv();let o=i?si(e):e;return Me&&cc(o,t.label),Ha(t,o)}function Ha(t,e){if(!t.equals(e)){var i=t.v;if(as?Da.set(t,e):Da.set(t,i),t.v=e,Me&&Yr&&(t.updated=ss("UpdatedAt"),vt!==null&&(t.set_during_effect=!0)),(t.f&2)!==0&&((t.f&2048)!==0&&Ju(t),ln(t,(t.f&256)===0?1024:4096)),t.wv=Sl(),Ov(t,2048),jr()&&vt!==null&&(vt.f&1024)!==0&&(vt.f&96)===0&&(Yn===null?Dv([t]):Yn.push(t)),Me&&Ks.size>0){let o=Array.from(Ks);for(let n of o)(n.f&1024)!==0&&ln(n,4096),Gs(n)&&Fa(n);Ks.clear()}}return e}function Ov(t,e){var i=t.reactions;if(i!==null)for(var o=jr(),n=i.length,s=0;s<n;s++){var l=i[s],d=l.f;if((d&2048)===0&&!(!o&&l===vt)){if(Me&&(d&262144)!==0){Ks.add(l);continue}ln(l,e),(d&1280)!==0&&((d&2)!==0?Ov(l,4096):El(l))}}}var Ua="font-weight: bold",za="font-weight: normal";function Hv(t,e,i){Me?console.warn(`%c[svelte] hydration_attribute_changed
28
28
  %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
29
- https://svelte.dev/e/hydration_attribute_changed`,Wa,qa):console.warn("https://svelte.dev/e/hydration_attribute_changed")}function Fv(t){Pe?console.warn(`%c[svelte] hydration_html_changed
29
+ https://svelte.dev/e/hydration_attribute_changed`,Ua,za):console.warn("https://svelte.dev/e/hydration_attribute_changed")}function Fv(t){Me?console.warn(`%c[svelte] hydration_html_changed
30
30
  %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"}
31
- https://svelte.dev/e/hydration_html_changed`,Wa,qa):console.warn("https://svelte.dev/e/hydration_html_changed")}function Ts(t){Pe?console.warn(`%c[svelte] hydration_mismatch
31
+ https://svelte.dev/e/hydration_html_changed`,Ua,za):console.warn("https://svelte.dev/e/hydration_html_changed")}function Is(t){Me?console.warn(`%c[svelte] hydration_mismatch
32
32
  %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"}
33
- https://svelte.dev/e/hydration_mismatch`,Wa,qa):console.warn("https://svelte.dev/e/hydration_mismatch")}function Uv(){Pe?console.warn(`%c[svelte] lifecycle_double_unmount
33
+ https://svelte.dev/e/hydration_mismatch`,Ua,za):console.warn("https://svelte.dev/e/hydration_mismatch")}function Uv(){Me?console.warn(`%c[svelte] lifecycle_double_unmount
34
34
  %cTried to unmount a component that was not mounted
35
- https://svelte.dev/e/lifecycle_double_unmount`,Wa,qa):console.warn("https://svelte.dev/e/lifecycle_double_unmount")}function zv(){Pe?console.warn("%c[svelte] select_multiple_invalid_value\n%cThe `value` property of a `<select multiple>` element should be an array, but it received a non-array value. The selection will be kept as is.\nhttps://svelte.dev/e/select_multiple_invalid_value",Wa,qa):console.warn("https://svelte.dev/e/select_multiple_invalid_value")}function pc(t){Pe?console.warn(`%c[svelte] state_proxy_equality_mismatch
35
+ https://svelte.dev/e/lifecycle_double_unmount`,Ua,za):console.warn("https://svelte.dev/e/lifecycle_double_unmount")}function zv(){Me?console.warn("%c[svelte] select_multiple_invalid_value\n%cThe `value` property of a `<select multiple>` element should be an array, but it received a non-array value. The selection will be kept as is.\nhttps://svelte.dev/e/select_multiple_invalid_value",Ua,za):console.warn("https://svelte.dev/e/select_multiple_invalid_value")}function mc(t){Me?console.warn(`%c[svelte] state_proxy_equality_mismatch
36
36
  %cReactive \`$state(...)\` proxies and the values they proxy have different identities. Because of this, comparisons with \`${t}\` will produce unexpected results
37
- https://svelte.dev/e/state_proxy_equality_mismatch`,Wa,qa):console.warn("https://svelte.dev/e/state_proxy_equality_mismatch")}var Ze=!1;function ao(t){Ze=t}var vt;function ui(t){if(t===null)throw Ts(),Qr;return vt=t}function Oi(){return ui(Ao(vt))}function g(t){if(Ze){if(Ao(vt)!==null)throw Ts(),Qr;vt=t}}function Ce(t=1){if(Ze){for(var e=t,i=vt;e--;)i=Ao(i);vt=i}}function Ys(){for(var t=0,e=vt;;){if(e.nodeType===qn){var i=e.data;if(i===zs){if(t===0)return e;t-=1}else(i===xs||i===ws)&&(t+=1)}var o=Ao(e);e.remove(),e=o}}function fc(t){if(!t||t.nodeType!==qn)throw Ts(),Qr;return t.data}function Wv(){let t=Array.prototype,e=Array.__svelte_cleanup;e&&e();let{indexOf:i,lastIndexOf:o,includes:n}=t;t.indexOf=function(r,l){let d=i.call(this,r,l);if(d===-1){for(let a=l!=null?l:0;a<this.length;a+=1)if(Ha(this[a])===r){pc("array.indexOf(...)");break}}return d},t.lastIndexOf=function(r,l){let d=o.call(this,r,l!=null?l:this.length-1);if(d===-1){for(let a=0;a<=(l!=null?l:this.length-1);a+=1)if(Ha(this[a])===r){pc("array.lastIndexOf(...)");break}}return d},t.includes=function(r,l){let d=n.call(this,r,l);if(!d){for(let a=0;a<this.length;a+=1)if(Ha(this[a])===r){pc("array.includes(...)");break}}return d},Array.__svelte_cleanup=()=>{t.indexOf=i,t.lastIndexOf=o,t.includes=n}}var js,qv,Tl,Kv,Qv;function mc(){if(js===void 0){js=window,qv=document,Tl=/Firefox/.test(navigator.userAgent);var t=Element.prototype,e=Node.prototype,i=Text.prototype;Kv=zo(e,"firstChild").get,Qv=zo(e,"nextSibling").get,Uu(t)&&(t.__click=void 0,t.__className=void 0,t.__attributes=null,t.__style=void 0,t.__e=void 0),Uu(i)&&(i.__t=void 0),Pe&&(t.__svelte_meta=null,Wv())}}function an(t=""){return document.createTextNode(t)}function fi(t){return Kv.call(t)}function Ao(t){return Qv.call(t)}function _(t,e){if(!Ze)return fi(t);var i=fi(vt);if(i===null)i=vt.appendChild(an());else if(e&&i.nodeType!==Va){var o=an();return i==null||i.before(o),ui(o),o}return ui(i),i}function fe(t,e){var n,r;if(!Ze){var i=fi(t);return i.nodeType===8&&i.data===""?Ao(i):i}if(e&&((n=vt)==null?void 0:n.nodeType)!==Va){var o=an();return(r=vt)==null||r.before(o),ui(o),o}return vt}function P(t,e=1,i=!1){let o=Ze?vt:t;for(var n;e--;)n=o,o=Ao(o);if(!Ze)return o;if(i&&(o==null?void 0:o.nodeType)!==Va){var r=an();return o===null?n==null||n.after(r):o.before(r),ui(r),r}return ui(o),o}function El(t){t.textContent=""}function tp(t){mt===null&&Et===null&&Tv(t),Et!==null&&(Et.f&256)!==0&&mt===null&&Sv(),as&&Cv(t)}function p0(t,e){var i=e.last;i===null?e.last=e.first=t:(i.next=t,t.prev=i,e.last=t)}function Zs(t,e,i,o=!0){var a;var n=mt;if(Pe)for(;n!==null&&(n.f&262144)!==0;)n=n.parent;var r={ctx:Lt,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(Pe&&(r.component_function=Kn),i)try{za(r),r.f|=32768}catch(p){throw Bi(r),p}else e!==null&&Sl(r);var l=i&&r.deps===null&&r.first===null&&r.nodes_start===null&&r.teardown===null&&(r.f&1048704)===0;if(!l&&o&&(n!==null&&p0(r,n),Et!==null&&(Et.f&2)!==0)){var d=Et;((a=d.effects)!=null?a:d.effects=[]).push(r)}return r}function Io(t){let e=Zs(8,null,!1);return sn(e,1024),e.teardown=t,e}function We(t){var n;tp("$effect");var e=mt!==null&&(mt.f&32)!==0&&Lt!==null&&!Lt.m;if(Pe&&ro(t,"name",{value:"$effect"}),e){var i=Lt;((n=i.e)!=null?n:i.e=[]).push({fn:t,effect:mt,reaction:Et})}else{var o=bo(t);return o}}function Pl(t){return tp("$effect.pre"),Pe&&ro(t,"name",{value:"$effect.pre"}),Mo(t)}function hc(t){let e=Zs(64,t,!0);return()=>{Bi(e)}}function Yv(t){let e=Zs(64,t,!0);return(i={})=>new Promise(o=>{i.outro?En(e,()=>{Bi(e),o(void 0)}):(Bi(e),o(void 0))})}function bo(t){return Zs(4,t,!1)}function Mo(t){return Zs(8,t,!0)}function O(t,e=[],i=Ir){if(Pe)return Mo(()=>{var n=mt,r=()=>t(...l.map(s));ro(n.fn,"name",{value:"{expression}"}),ro(r,"name",{value:"{expression}"});let l=e.map(i);Di(r)});let o=e.map(i);return Di(()=>t(...o.map(s)))}function Di(t,e=0){return Zs(24|e,t,!0)}function Pi(t,e=!0){return Zs(40,t,!0,e)}function ip(t){var e=t.teardown;if(e!==null){let i=as,o=Et;Ju(!0),Ni(null);try{e.call(null)}finally{Ju(i),Ni(o)}}}function op(t,e=!1){var i=t.first;for(t.first=t.last=null;i!==null;){var o=i.next;(i.f&64)!==0?i.parent=null:Bi(i,e),i=o}}function jv(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;(e||(t.f&524288)!==0)&&t.nodes_start!==null&&t.nodes_end!==null&&(np(t.nodes_start,t.nodes_end),i=!0),op(t,e&&!i),Al(t,0),sn(t,16384);var o=t.transitions;if(o!==null)for(let r of o)r.stop();ip(t);var n=t.parent;n!==null&&n.first!==null&&rp(t),Pe&&(t.component_function=null),t.next=t.prev=t.teardown=t.ctx=t.deps=t.fn=t.nodes_start=t.nodes_end=null}function np(t,e){for(;t!==null;){var i=t===e?null:Ao(t);t.remove(),t=i}}function rp(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 En(t,e){var i=[];_c(t,i,!0),sp(i,()=>{Bi(t),e&&e()})}function sp(t,e){var i=t.length;if(i>0){var o=()=>--i||e();for(var n of t)n.out(o)}else e()}function _c(t,e,i){if((t.f&8192)===0){if(t.f^=8192,t.transitions!==null)for(let l of t.transitions)(l.is_global||i)&&e.push(l);for(var o=t.first;o!==null;){var n=o.next,r=(o.f&65536)!==0||(o.f&32)!==0;_c(o,e,r?i:!1),o=n}}}function cs(t){Zv(t,!0)}function Zv(t,e){if((t.f&8192)!==0){t.f^=8192;for(var i=t.first;i!==null;){var o=i.next,n=(i.f&65536)!==0||(i.f&32)!==0;Zv(i,n?e:!1),i=o}if(t.transitions!==null)for(let r of t.transitions)(r.is_global||e)&&r.in()}}var Ml=[],ap=[];function Xv(){var t=Ml;Ml=[],Ss(t)}function f0(){var t=ap;ap=[],Ss(t)}function ln(t){Ml.length===0&&queueMicrotask(Xv),Ml.push(t)}function Jv(){Ml.length>0&&Xv(),ap.length>0&&f0()}function tg(t){var e=mt;if(Pe&&t instanceof Error&&m0(t,e),(e.f&32768)===0){if((e.f&128)===0)throw t;e.fn(t)}else Ll(t,e)}function Ll(t,e){for(;e!==null;){if((e.f&128)!==0)try{e.fn(t);return}catch(i){}e=e.parent}throw t}var eg=new WeakSet;function m0(t,e){var l,d;if(eg.has(t))return;eg.add(t);let i=zo(t,"message");if(!(i&&!i.configurable)){for(var o=Tl?" ":" ",n=`
38
- ${o}in ${((l=e.fn)==null?void 0:l.name)||"<unknown>"}`,r=e.ctx;r!==null;)n+=`
39
- ${o}in ${(d=r.function)==null?void 0:d[wn].split("/").pop()}`,r=r.p;ro(t,"message",{value:t.message+`
37
+ https://svelte.dev/e/state_proxy_equality_mismatch`,Ua,za):console.warn("https://svelte.dev/e/state_proxy_equality_mismatch")}var Ze=!1;function to(t){Ze=t}var gt;function fi(t){if(t===null)throw Is(),Gr;return gt=t}function Fi(){return fi(Bo(gt))}function h(t){if(Ze){if(Bo(gt)!==null)throw Is(),Gr;gt=t}}function Se(t=1){if(Ze){for(var e=t,i=gt;e--;)i=Bo(i);gt=i}}function Qs(){for(var t=0,e=gt;;){if(e.nodeType===qn){var i=e.data;if(i===Us){if(t===0)return e;t-=1}else(i===Cs||i===Ss)&&(t+=1)}var o=Bo(e);e.remove(),e=o}}function vc(t){if(!t||t.nodeType!==qn)throw Is(),Gr;return t.data}function Wv(){let t=Array.prototype,e=Array.__svelte_cleanup;e&&e();let{indexOf:i,lastIndexOf:o,includes:n}=t;t.indexOf=function(s,l){let d=i.call(this,s,l);if(d===-1){for(let a=l!=null?l:0;a<this.length;a+=1)if(Oa(this[a])===s){mc("array.indexOf(...)");break}}return d},t.lastIndexOf=function(s,l){let d=o.call(this,s,l!=null?l:this.length-1);if(d===-1){for(let a=0;a<=(l!=null?l:this.length-1);a+=1)if(Oa(this[a])===s){mc("array.lastIndexOf(...)");break}}return d},t.includes=function(s,l){let d=n.call(this,s,l);if(!d){for(let a=0;a<this.length;a+=1)if(Oa(this[a])===s){mc("array.includes(...)");break}}return d},Array.__svelte_cleanup=()=>{t.indexOf=i,t.lastIndexOf=o,t.includes=n}}var Ys,Kv,Il,qv,Gv;function gc(){if(Ys===void 0){Ys=window,Kv=document,Il=/Firefox/.test(navigator.userAgent);var t=Element.prototype,e=Node.prototype,i=Text.prototype;qv=qo(e,"firstChild").get,Gv=qo(e,"nextSibling").get,Wu(t)&&(t.__click=void 0,t.__className=void 0,t.__attributes=null,t.__style=void 0,t.__e=void 0),Wu(i)&&(i.__t=void 0),Me&&(t.__svelte_meta=null,Wv())}}function dn(t=""){return document.createTextNode(t)}function vi(t){return qv.call(t)}function Bo(t){return Gv.call(t)}function _(t,e){if(!Ze)return vi(t);var i=vi(gt);if(i===null)i=gt.appendChild(dn());else if(e&&i.nodeType!==Ma){var o=dn();return i==null||i.before(o),fi(o),o}return fi(i),i}function me(t,e){var n,s;if(!Ze){var i=vi(t);return i.nodeType===8&&i.data===""?Bo(i):i}if(e&&((n=gt)==null?void 0:n.nodeType)!==Ma){var o=dn();return(s=gt)==null||s.before(o),fi(o),o}return gt}function P(t,e=1,i=!1){let o=Ze?gt:t;for(var n;e--;)n=o,o=Bo(o);if(!Ze)return o;if(i&&(o==null?void 0:o.nodeType)!==Ma){var s=dn();return o===null?n==null||n.after(s):o.before(s),fi(s),s}return fi(o),o}function kl(t){t.textContent=""}function op(t){vt===null&&Et===null&&Tv(t),Et!==null&&(Et.f&256)!==0&&vt===null&&Sv(),as&&Cv(t)}function u0(t,e){var i=e.last;i===null?e.last=e.first=t:(i.next=t,t.prev=i,e.last=t)}function js(t,e,i,o=!0){var a;var n=vt;if(Me)for(;n!==null&&(n.f&262144)!==0;)n=n.parent;var s={ctx:Lt,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(Me&&(s.component_function=Gn),i)try{Fa(s),s.f|=32768}catch(p){throw Hi(s),p}else e!==null&&El(s);var l=i&&s.deps===null&&s.first===null&&s.nodes_start===null&&s.teardown===null&&(s.f&1048704)===0;if(!l&&o&&(n!==null&&u0(s,n),Et!==null&&(Et.f&2)!==0)){var d=Et;((a=d.effects)!=null?a:d.effects=[]).push(s)}return s}function Vo(t){let e=js(8,null,!1);return ln(e,1024),e.teardown=t,e}function We(t){var n;op("$effect");var e=vt!==null&&(vt.f&32)!==0&&Lt!==null&&!Lt.m;if(Me&&Ji(t,"name",{value:"$effect"}),e){var i=Lt;((n=i.e)!=null?n:i.e=[]).push({fn:t,effect:vt,reaction:Et})}else{var o=$o(t);return o}}function Ml(t){return op("$effect.pre"),Me&&Ji(t,"name",{value:"$effect.pre"}),Oo(t)}function bc(t){let e=js(64,t,!0);return()=>{Hi(e)}}function Yv(t){let e=js(64,t,!0);return(i={})=>new Promise(o=>{i.outro?In(e,()=>{Hi(e),o(void 0)}):(Hi(e),o(void 0))})}function $o(t){return js(4,t,!1)}function Oo(t){return js(8,t,!0)}function O(t,e=[],i=Ar){if(Me)return Oo(()=>{var n=vt,s=()=>t(...l.map(r));Ji(n.fn,"name",{value:"{expression}"}),Ji(s,"name",{value:"{expression}"});let l=e.map(i);Ui(s)});let o=e.map(i);return Ui(()=>t(...o.map(r)))}function Ui(t,e=0){return js(24|e,t,!0)}function Ai(t,e=!0){return js(40,t,!0,e)}function np(t){var e=t.teardown;if(e!==null){let i=as,o=Et;tp(!0),Di(null);try{e.call(null)}finally{tp(i),Di(o)}}}function rp(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 jv(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;(e||(t.f&524288)!==0)&&t.nodes_start!==null&&t.nodes_end!==null&&(sp(t.nodes_start,t.nodes_end),i=!0),rp(t,e&&!i),Ll(t,0),ln(t,16384);var o=t.transitions;if(o!==null)for(let s of o)s.stop();np(t);var n=t.parent;n!==null&&n.first!==null&&ap(t),Me&&(t.component_function=null),t.next=t.prev=t.teardown=t.ctx=t.deps=t.fn=t.nodes_start=t.nodes_end=null}function sp(t,e){for(;t!==null;){var i=t===e?null:Bo(t);t.remove(),t=i}}function ap(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 In(t,e){var i=[];$c(t,i,!0),lp(i,()=>{Hi(t),e&&e()})}function lp(t,e){var i=t.length;if(i>0){var o=()=>--i||e();for(var n of t)n.out(o)}else e()}function $c(t,e,i){if((t.f&8192)===0){if(t.f^=8192,t.transitions!==null)for(let l of t.transitions)(l.is_global||i)&&e.push(l);for(var o=t.first;o!==null;){var n=o.next,s=(o.f&65536)!==0||(o.f&32)!==0;$c(o,e,s?i:!1),o=n}}}function cs(t){Zv(t,!0)}function Zv(t,e){if((t.f&8192)!==0){t.f^=8192;for(var i=t.first;i!==null;){var o=i.next,n=(i.f&65536)!==0||(i.f&32)!==0;Zv(i,n?e:!1),i=o}if(t.transitions!==null)for(let s of t.transitions)(s.is_global||e)&&s.in()}}var Vl=[],dp=[];function Xv(){var t=Vl;Vl=[],Es(t)}function p0(){var t=dp;dp=[],Es(t)}function cn(t){Vl.length===0&&queueMicrotask(Xv),Vl.push(t)}function Jv(){Vl.length>0&&Xv(),dp.length>0&&p0()}function tg(t){var e=vt;if(Me&&t instanceof Error&&f0(t,e),(e.f&32768)===0){if((e.f&128)===0)throw t;e.fn(t)}else Rl(t,e)}function Rl(t,e){for(;e!==null;){if((e.f&128)!==0)try{e.fn(t);return}catch(i){}e=e.parent}throw t}var eg=new WeakSet;function f0(t,e){var l,d;if(eg.has(t))return;eg.add(t);let i=qo(t,"message");if(!(i&&!i.configurable)){for(var o=Il?" ":" ",n=`
38
+ ${o}in ${((l=e.fn)==null?void 0:l.name)||"<unknown>"}`,s=e.ctx;s!==null;)n+=`
39
+ ${o}in ${(d=s.function)==null?void 0:d[Cn].split("/").pop()}`,s=s.p;Ji(t,"message",{value:t.message+`
40
40
  ${n}
41
- `}),t.stack&&ro(t,"stack",{value:t.stack.split(`
41
+ `}),t.stack&&Ji(t,"stack",{value:t.stack.split(`
42
42
  `).filter(a=>!a.includes("svelte/src/internal")).join(`
43
- `)})}}var Xs=!1,Ka=null,Js=!1,as=!1;function Ju(t){as=t}var Vl=[],Rl=[],Et=null,Yn=!1;function Ni(t){Et=t}var mt=null;function so(t){mt=t}var Po=null;function uc(t){Et!==null&&Et.f&2097152&&(Po===null?Po=[Et,[t]]:Po[1].push(t))}var dn=null,jn=0,Gn=null;function Dv(t){Gn=t}var ng=1,$c=0,ls=!1,yc=null;function wl(){return++ng}function Gs(t){var v,u;var e=t.f;if((e&2048)!==0)return!0;if((e&4096)!==0){var i=t.deps,o=(e&256)!==0;if(i!==null){var n,r,l=(e&512)!==0,d=o&&mt!==null&&!ls,a=i.length;if(l||d){var p=t,f=p.parent;for(n=0;n<a;n++)r=i[n],(l||!((v=r==null?void 0:r.reactions)!=null&&v.includes(p)))&&((u=r.reactions)!=null?u:r.reactions=[]).push(p);l&&(p.f^=512),d&&f!==null&&(f.f&256)===0&&(p.f^=256)}for(n=0;n<a;n++)if(r=i[n],Gs(r)&&Xu(r),r.wv>t.wv)return!0}(!o||mt!==null&&!ls)&&sn(t,1024)}return!1}function rg(t,e,i=!0){var o=t.reactions;if(o!==null)for(var n=0;n<o.length;n++){var r=o[n];Po!=null&&Po[1].includes(t)&&Po[0]===Et||((r.f&2)!==0?rg(r,e,!1):e===r&&(i?sn(r,2048):(r.f&1024)!==0&&sn(r,4096),Sl(r)))}}function cc(t){var $,w;var e=dn,i=jn,o=Gn,n=Et,r=ls,l=Po,d=Lt,a=Yn,p=t.f;dn=null,jn=0,Gn=null,ls=(p&256)!==0&&(Yn||!Js||Et===null),Et=(p&96)===0?t:null,Po=null,$l(t.ctx),Yn=!1,$c++,t.f|=2097152;try{var f=(0,t.fn)(),v=t.deps;if(dn!==null){var u;if(Al(t,jn),v!==null&&jn>0)for(v.length=jn+dn.length,u=0;u<dn.length;u++)v[jn+u]=dn[u];else t.deps=v=dn;if(!ls||(p&2)!==0&&t.reactions!==null)for(u=jn;u<v.length;u++)((w=($=v[u]).reactions)!=null?w:$.reactions=[]).push(t)}else v!==null&&jn<v.length&&(Al(t,jn),v.length=jn);if(jr()&&Gn!==null&&!Yn&&v!==null&&(t.f&6146)===0)for(u=0;u<Gn.length;u++)rg(Gn[u],t);return n!==null&&n!==t&&($c++,Gn!==null&&(o===null?o=Gn:o.push(...Gn))),f}catch(y){tg(y)}finally{dn=e,jn=i,Gn=o,Et=n,ls=r,Po=l,$l(d),Yn=a,t.f^=2097152}}function v0(t,e){let i=e.reactions;if(i!==null){var o=_v.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&&(dn===null||!dn.includes(e))&&(sn(e,4096),(e.f&768)===0&&(e.f^=512),dc(e),Al(e,0))}function Al(t,e){var i=t.deps;if(i!==null)for(var o=e;o<i.length;o++)v0(t,i[o])}function za(t){var e=t.f;if((e&16384)===0){sn(t,1024);var i=mt,o=Js;if(mt=t,Js=!0,Pe){var n=Kn;yl(t.component_function)}try{(e&16)!==0?jv(t):op(t),ip(t);var r=cc(t);if(t.teardown=typeof r=="function"?r:null,t.wv=ng,Pe&&Yr&&(t.f&2048)!==0&&t.deps!==null)for(var l of t.deps)l.set_during_effect&&(l.wv=wl(),l.set_during_effect=!1);Pe&&Rl.push(t)}finally{Js=o,mt=i,Pe&&yl(n)}}}function ig(){console.error("Last ten effects were: ",Rl.slice(-10).map(t=>t.fn)),Rl=[]}function g0(){try{Ev()}catch(t){if(Pe&&ro(t,"stack",{value:""}),Ka!==null)if(Pe)try{Ll(t,Ka)}catch(e){throw ig(),e}else Ll(t,Ka);else throw Pe&&ig(),t}}function dp(){var t=Js;try{var e=0;for(Js=!0;Vl.length>0;){e++>1e3&&g0();var i=Vl,o=i.length;Vl=[];for(var n=0;n<o;n++){var r=_0(i[n]);h0(r)}Fa.clear()}}finally{Xs=!1,Js=t,Ka=null,Pe&&(Rl=[])}}function h0(t){var e=t.length;if(e!==0)for(var i=0;i<e;i++){var o=t[i];(o.f&24576)===0&&Gs(o)&&(za(o),o.deps===null&&o.first===null&&o.nodes_start===null&&(o.teardown===null?rp(o):o.fn=null))}}function Sl(t){Xs||(Xs=!0,queueMicrotask(dp));for(var e=Ka=t;e.parent!==null;){e=e.parent;var i=e.f;if((i&96)!==0){if((i&1024)===0)return;e.f^=1024}}Vl.push(e)}function _0(t){for(var e=[],i=t;i!==null;){var o=i.f,n=(o&96)!==0,r=n&&(o&1024)!==0;if(!r&&(o&8192)===0){(o&4)!==0?e.push(i):n?i.f^=1024:Gs(i)&&za(i);var l=i.first;if(l!==null){i=l;continue}}var d=i.parent;for(i=i.next;i===null&&d!==null;)i=d.next,d=d.parent}return e}function Qa(t){var e;for(t&&(Xs=!0,dp(),Xs=!0,e=t());;){if(Jv(),Vl.length===0)return Xs=!1,Ka=null,Pe&&(Rl=[]),e;Xs=!0,dp()}}async function $o(){await Promise.resolve(),Qa()}function s(t){var e=t.f,i=(e&2)!==0;if(yc!==null&&yc.add(t),Et!==null&&!Yn){if(!(Po!=null&&Po[1].includes(t))||Po[0]!==Et){var o=Et.deps;t.rv<$c&&(t.rv=$c,dn===null&&o!==null&&o[jn]===t?jn++:dn===null?dn=[t]:(!ls||!dn.includes(t))&&dn.push(t))}}else if(i&&t.deps===null&&t.effects===null){var n=t,r=n.parent;r!==null&&(r.f&256)===0&&(n.f^=256)}if(i&&(n=t,Gs(n)&&Xu(n)),Pe&&Yr&&!Yn&&bl!==null&&Et!==null&&bl.reaction===Et)if(t.trace)t.trace();else{var l=ss("TracedAt");if(l){var d=bl.entries.get(t);d===void 0&&(d={traces:[]},bl.entries.set(t,d));var a=d.traces[d.traces.length-1];l.stack!==(a==null?void 0:a.stack)&&d.traces.push(l)}}return as&&Fa.has(t)?Fa.get(t):t.v}function Ct(t){var e=Yn;try{return Yn=!0,t()}finally{Yn=e}}var b0=-7169;function sn(t,e){t.f=t.f&b0|e}function wc(t){if(!(typeof t!="object"||!t||t instanceof EventTarget)){if(Eo in t)xc(t);else if(!Array.isArray(t))for(let e in t){let i=t[e];typeof i=="object"&&i&&Eo in i&&xc(i)}}}function xc(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{xc(t[o],e)}catch(n){}let i=Ws(t);if(i!==Object.prototype&&i!==Array.prototype&&i!==Map.prototype&&i!==Set.prototype&&i!==Date.prototype){let o=nc(i);for(let n in o){let r=o[n].get;if(r)try{r.call(t)}catch(l){}}}}}function cp(t,e){if(e){let i=document.body;t.autofocus=!0,ln(()=>{document.activeElement===i&&t.focus()})}}function Nl(t){var e=Et,i=mt;Ni(null),so(null);try{return t()}finally{Ni(e),so(i)}}var up=new Set,Cc=new Set;function ea(t){if(!Ze)return;t.removeAttribute("onload"),t.removeAttribute("onerror");let e=t.__e;e!==void 0&&(t.__e=void 0,queueMicrotask(()=>{t.isConnected&&t.dispatchEvent(e)}))}function pp(t,e,i,o={}){function n(r){if(o.capture||Ga.call(e,r),!r.cancelBubble)return Nl(()=>i==null?void 0:i.call(this,r))}return t.startsWith("pointer")||t.startsWith("touch")||t==="wheel"?ln(()=>{e.addEventListener(t,n,o)}):e.addEventListener(t,n,o),n}function wt(t,e,i,o,n){var r={capture:o,passive:n},l=pp(t,e,i,r);(e===document.body||e===window||e===document||e instanceof HTMLMediaElement)&&Io(()=>{e.removeEventListener(t,l,r)})}function lt(t){for(var e=0;e<t.length;e++)up.add(t[e]);for(var i of Cc)i(t)}function Ga(t){var k;var e=this,i=e.ownerDocument,o=t.type,n=((k=t.composedPath)==null?void 0:k.call(t))||[],r=n[0]||t.target,l=0,d=t.__root;if(d){var a=n.indexOf(d);if(a!==-1&&(e===document||e===window)){t.__root=e;return}var p=n.indexOf(e);if(p===-1)return;a<=p&&(l=a)}if(r=n[l]||t.target,r!==e){ro(t,"currentTarget",{configurable:!0,get(){return r||i}});var f=Et,v=mt;Ni(null),so(null);try{for(var u,$=[];r!==null;){var w=r.assignedSlot||r.parentNode||r.host||null;try{var y=r["__"+o];if(y!=null&&(!r.disabled||t.target===r))if(Wn(y)){var[S,...T]=y;S.apply(r,[t,...T])}else y.call(r,t)}catch(A){u?$.push(A):u=A}if(t.cancelBubble||w===e||w===null)break;r=w}if(u){for(let A of $)queueMicrotask(()=>{throw A});throw u}}finally{t.__root=e,delete t.currentTarget,Ni(f),so(v)}}}var y0;function sg(){y0=void 0}function Ya(t){var e=document.createElement("template");return e.innerHTML=t.replaceAll("<!>","<!---->"),e.content}function yo(t,e){var i=mt;i.nodes_start===null&&(i.nodes_start=t,i.nodes_end=e)}function M(t,e){var i=(e&1)!==0,o=(e&2)!==0,n,r=!t.startsWith("<!>");return()=>{if(Ze)return yo(vt,null),vt;n===void 0&&(n=Ya(r?t:"<!>"+t),i||(n=fi(n)));var l=o||Tl?document.importNode(n,!0):n.cloneNode(!0);if(i){var d=fi(l),a=l.lastChild;yo(d,a)}else yo(l,l);return l}}function C0(t,e,i="svg"){var o=!t.startsWith("<!>"),n=(e&1)!==0,r=`<${i}>${o?t:"<!>"+t}</${i}>`,l;return()=>{if(Ze)return yo(vt,null),vt;if(!l){var d=Ya(r),a=fi(d);if(n)for(l=document.createDocumentFragment();fi(a);)l.appendChild(fi(a));else l=fi(a)}var p=l.cloneNode(!0);if(n){var f=fi(p),v=p.lastChild;yo(f,v)}else yo(p,p);return p}}function Se(t,e){return C0(t,e,"svg")}function Xr(t=""){if(!Ze){var e=an(t+"");return yo(e,e),e}var i=vt;return i.nodeType!==Va&&(i.before(i=an()),ui(i)),yo(i,i),i}function Ue(){if(Ze)return yo(vt,null),vt;var t=document.createDocumentFragment(),e=document.createComment(""),i=an();return t.append(e,i),yo(e,i),t}function b(t,e){if(Ze){mt.nodes_end=vt,Oi();return}t!==null&&t.before(e)}var S0=/\r/g;function lg(t){t=t.replace(S0,"");let e=5381,i=t.length;for(;i--;)e=(e<<5)-e^t.charCodeAt(i);return(e>>>0).toString(36)}function dg(t){return t.endsWith("capture")&&t!=="gotpointercapture"&&t!=="lostpointercapture"}var T0=["beforeinput","click","change","dblclick","contextmenu","focusin","focusout","input","keydown","keyup","mousedown","mousemove","mouseout","mouseover","mouseup","pointerdown","pointermove","pointerout","pointerover","pointerup","touchend","touchmove","touchstart"];function cg(t){return T0.includes(t)}var E0=["allowfullscreen","async","autofocus","autoplay","checked","controls","default","disabled","formnovalidate","hidden","indeterminate","inert","ismap","loop","multiple","muted","nomodule","novalidate","open","playsinline","readonly","required","reversed","seamless","selected","webkitdirectory","defer","disablepictureinpicture","disableremoteplayback"];var I0={formnovalidate:"formNoValidate",ismap:"isMap",nomodule:"noModule",playsinline:"playsInline",readonly:"readOnly",defaultvalue:"defaultValue",defaultchecked:"defaultChecked",srcobject:"srcObject",novalidate:"noValidate",allowfullscreen:"allowFullscreen",disablepictureinpicture:"disablePictureInPicture",disableremoteplayback:"disableRemotePlayback"};function ug(t){var e;return t=t.toLowerCase(),(e=I0[t])!=null?e:t}var O9=[...E0,"formNoValidate","isMap","noModule","playsInline","readOnly","value","volume","defaultValue","defaultChecked","srcObject","noValidate","allowFullscreen","disablePictureInPicture","disableRemotePlayback"];var k0=["touchstart","touchmove"];function pg(t){return k0.includes(t)}var P0=["$state","$state.raw","$derived","$derived.by"],D9=[...P0,"$state.snapshot","$props","$props.id","$bindable","$effect","$effect.pre","$effect.tracking","$effect.root","$inspect","$inspect().with","$inspect.trace","$host"];var A0=["textarea","script","style","title"];function fg(t){return A0.includes(t)}function Sc(t){return t==null?void 0:t.replace(/\//g,"/\u200B")}var Bl=!0;function Tc(t){Bl=t}function he(t,e){var o;var i=e==null?"":typeof e=="object"?e+"":e;i!==((o=t.__t)!=null?o:t.__t=t.nodeValue)&&(t.__t=i,t.nodeValue=i+"")}function Jr(t,e){return mg(t,e)}function mp(t,e){var l;mc(),e.intro=(l=e.intro)!=null?l:!1;let i=e.target,o=Ze,n=vt;try{for(var r=fi(i);r&&(r.nodeType!==qn||r.data!==xs);)r=Ao(r);if(!r)throw Qr;ao(!0),ui(r),Oi();let d=mg(t,{...e,anchor:r});if(vt===null||vt.nodeType!==qn||vt.data!==zs)throw Ts(),Qr;return ao(!1),d}catch(d){if(d===Qr)return e.recover===!1&&Iv(),mc(),El(i),ao(!1),Jr(t,e);throw d}finally{ao(o),ui(n),sg()}}var ja=new Map;function mg(t,{target:e,anchor:i,props:o={},events:n,context:r,intro:l=!0}){mc();var d=new Set,a=v=>{for(var u=0;u<v.length;u++){var $=v[u];if(!d.has($)){d.add($);var w=pg($);e.addEventListener($,Ga,{passive:w});var y=ja.get($);y===void 0?(document.addEventListener($,Ga,{passive:w}),ja.set($,1)):ja.set($,y+1)}}};a(_l(up)),Cc.add(a);var p=void 0,f=Yv(()=>{var v=i!=null?i:e.appendChild(an());return Pi(()=>{if(r){D({});var u=Lt;u.c=r}n&&(o.$$events=n),Ze&&yo(v,null),Bl=l,p=t(v,o)||{},Bl=!0,Ze&&(mt.nodes_end=vt),r&&H()}),()=>{var w;for(var u of d){e.removeEventListener(u,Ga);var $=ja.get(u);--$===0?(document.removeEventListener(u,Ga),ja.delete(u)):ja.set(u,$)}Cc.delete(a),v!==i&&((w=v.parentNode)==null||w.removeChild(v))}});return fp.set(p,f),p}var fp=new WeakMap;function ta(t,e){let i=fp.get(t);return i?(fp.delete(t),i(e)):(Pe&&Uv(),Promise.resolve())}function be(t,e,...i){var o=t,n=oe,r;Di(()=>{n!==(n=e())&&(r&&(Bi(r),r=null),Pe&&n==null&&kv(),r=Pi(()=>n(o,...i)))},65536),Ze&&(o=vt)}if(Pe){let t=function(e){if(!(e in globalThis)){let i;Object.defineProperty(globalThis,e,{configurable:!0,get:()=>{if(i!==void 0)return i;Mv(e)},set:o=>{i=o}})}};R0=t,t("$state"),t("$effect"),t("$derived"),t("$inspect"),t("$props"),t("$bindable")}var R0;function Rt(t){Lt===null&&Ba("onMount"),Gr&&Lt.l!==null?V0(Lt).m.push(t):We(()=>{let e=Ct(t);if(typeof e=="function")return e})}function In(t){Lt===null&&Ba("onDestroy"),Rt(()=>()=>Ct(t))}function V0(t){var i;var e=t.l;return(i=e.u)!=null?i:e.u={a:[],b:[],m:[]}}var vg=new Map;function gg(t,e){var i=vg.get(t);i||(i=new Set,vg.set(t,i)),i.add(e)}function L(t,e,[i,o]=[0,0]){Ze&&i===0&&Oi();var n=t,r=null,l=null,d=Qi,a=i>0?65536:0,p=!1;let f=(u,$=!0)=>{p=!0,v($,u)},v=(u,$)=>{if(d===(d=u))return;let w=!1;if(Ze&&o!==-1){if(i===0){let S=fc(n);S===xs?o=0:S===ws?o=1/0:(o=parseInt(S.substring(1)),o!==o&&(o=d?1/0:-1))}let y=o>i;!!d===y&&(n=Ys(),ui(n),ao(!1),w=!0,o=-1)}d?(r?cs(r):$&&(r=Pi(()=>$(n))),l&&En(l,()=>{l=null})):(l?cs(l):$&&(l=Pi(()=>$(n,[i+1,o]))),r&&En(r,()=>{r=null})),w&&ao(!0)};Di(()=>{p=!1,e(f),p||v(null,null)},a),Ze&&(n=vt)}function ia(t,e,i){Ze&&Oi();var o=t,n=Qi,r,l=jr()?xv:Ra;Di(()=>{l(n,n=e())&&(r&&En(r),r=Pi(()=>i(o)))}),Ze&&(o=vt)}var Is=null;function hp(t){Is=t}function Ol(t,e){return e}function O0(t,e,i,o){for(var n=[],r=e.length,l=0;l<r;l++)_c(e[l].e,n,!0);var d=r>0&&n.length===0&&i!==null;if(d){var a=i.parentNode;El(a),a.append(i),o.clear(),Es(t,e[0].prev,e[r-1].next)}sp(n,()=>{for(var p=0;p<r;p++){var f=e[p];d||(o.delete(f.k),Es(t,f.prev,f.next)),Bi(f.e,!d)}})}function $i(t,e,i,o,n,r=null){var l=t,d={flags:e,items:new Map,first:null},a=(e&4)!==0;if(a){var p=t;l=Ze?ui(fi(p)):p.appendChild(an())}Ze&&Oi();var f=null,v=!1,u=kr(()=>{var $=i();return Wn($)?$:$==null?[]:_l($)});Di(()=>{var $=s(u),w=$.length;if(v&&w===0)return;v=w===0;let y=!1;if(Ze){var S=fc(l)===ws;S!==(w===0)&&(l=Ys(),ui(l),ao(!1),y=!0)}if(Ze){for(var T=null,k,A=0;A<w;A++){if(vt.nodeType===qn&&vt.data===zs){l=vt,y=!0,ao(!1);break}var I=$[A],E=o(I,A);k=bg(vt,d,T,null,I,E,A,n,e,i),d.items.set(E,k),T=k}w>0&&ui(Ys())}Ze||D0($,d,l,n,e,o,i),r!==null&&(w===0?f?cs(f):f=Pi(()=>r(l)):f!==null&&En(f,()=>{f=null})),y&&ao(!0),s(u)}),Ze&&(l=vt)}function D0(t,e,i,o,n,r,l){var le,we,Ve,ve;var d=(n&8)!==0,a=(n&3)!==0,p=t.length,f=e.items,v=e.first,u=v,$,w=null,y,S=[],T=[],k,A,I,E;if(d)for(E=0;E<p;E+=1)k=t[E],A=r(k,E),I=f.get(A),I!==void 0&&((le=I.a)==null||le.measure(),(y!=null?y:y=new Set).add(I));for(E=0;E<p;E+=1){if(k=t[E],A=r(k,E),I=f.get(A),I===void 0){var V=u?u.e.nodes_start:i;w=bg(V,e,w,w===null?e.first:w.next,k,A,E,o,n,l),f.set(A,w),S=[],T=[],u=w.next;continue}if(a&&H0(I,k,E,n),(I.e.f&8192)!==0&&(cs(I.e),d&&((we=I.a)==null||we.unfix(),(y!=null?y:y=new Set).delete(I))),I!==u){if($!==void 0&&$.has(I)){if(S.length<T.length){var K=T[0],W;w=K.prev;var U=S[0],Y=S[S.length-1];for(W=0;W<S.length;W+=1)hg(S[W],K,i);for(W=0;W<T.length;W+=1)$.delete(T[W]);Es(e,U.prev,Y.next),Es(e,w,U),Es(e,Y,K),u=K,w=Y,E-=1,S=[],T=[]}else $.delete(I),hg(I,u,i),Es(e,I.prev,I.next),Es(e,I,w===null?e.first:w.next),Es(e,w,I),w=I;continue}for(S=[],T=[];u!==null&&u.k!==A;)(u.e.f&8192)===0&&($!=null?$:$=new Set).add(u),T.push(u),u=u.next;if(u===null)continue;I=u}S.push(I),w=I,u=I.next}if(u!==null||$!==void 0){for(var ne=$===void 0?[]:_l($);u!==null;)(u.e.f&8192)===0&&ne.push(u),u=u.next;var G=ne.length;if(G>0){var ce=(n&4)!==0&&p===0?i:null;if(d){for(E=0;E<G;E+=1)(Ve=ne[E].a)==null||Ve.measure();for(E=0;E<G;E+=1)(ve=ne[E].a)==null||ve.fix()}O0(e,ne,ce,f)}}d&&ln(()=>{var ae;if(y!==void 0)for(I of y)(ae=I.a)==null||ae.apply()}),mt.first=e.first&&e.first.e,mt.last=w&&w.e}function H0(t,e,i,o){(o&1)!==0&&Ua(t.v,e),(o&2)!==0?Ua(t.i,i):t.i=i}function bg(t,e,i,o,n,r,l,d,a,p){var f=Is,v=(a&1)!==0,u=(a&16)===0,$=v?u?Zr(n,!1,!1):pr(n):n,w=(a&2)===0?l:pr(l);Pe&&v&&($.trace=()=>{var S=typeof w=="number"?l:w.v;p()[S]});var y={i:w,v:$,k:r,a:null,e:null,prev:i,next:o};Is=y;try{return y.e=Pi(()=>d(t,$,w,p),Ze),y.e.prev=i&&i.e,y.e.next=o&&o.e,i===null?e.first=y:(i.next=y,i.e.next=y.e),o!==null&&(o.prev=y,o.e.prev=y.e),y}finally{Is=f}}function hg(t,e,i){for(var o=t.next?t.next.e.nodes_start:i,n=e?e.e.nodes_start:i,r=t.e.nodes_start;r!==o;){var l=Ao(r);n.before(r),r=l}}function Es(t,e,i){e===null?t.first=i:(e.next=i,e.e.next=i&&i.e),i!==null&&(i.prev=e,i.e.prev=e&&e.e)}function F0(t,e,i){var r,l;if(!e||e===lg(String(i!=null?i:"")))return;let o,n=(r=t.__svelte_meta)==null?void 0:r.loc;n?o=`near ${n.file}:${n.line}:${n.column}`:(l=Kn)!=null&&l[wn]&&(o=`in ${Kn[wn]}`),Fv(Sc(o))}function Dl(t,e,i=!1,o=!1,n=!1){var r=t,l="";O(()=>{var $;var d=mt;if(l===(l=($=e())!=null?$:"")){Ze&&Oi();return}if(d.nodes_start!==null&&(np(d.nodes_start,d.nodes_end),d.nodes_start=d.nodes_end=null),l!==""){if(Ze){for(var a=vt.data,p=Oi(),f=p;p!==null&&(p.nodeType!==qn||p.data!=="");)f=p,p=Ao(p);if(p===null)throw Ts(),Qr;Pe&&!n&&F0(p.parentNode,a,l),yo(vt,f),r=ui(p);return}var v=l+"";i?v=`<svg>${v}</svg>`:o&&(v=`<math>${v}</math>`);var u=Ya(v);if((i||o)&&(u=fi(u)),yo(fi(u),u.lastChild),i||o)for(;fi(u);)r.before(fi(u));else r.before(u)}})}function yi(t,e,i){Ze&&Oi();var o=t,n,r;Di(()=>{n!==(n=e())&&(r&&(En(r),r=null),n&&(r=Pi(()=>i(o,n))))},65536),Ze&&(o=vt)}function oa(t,e,i,o,n,r){var w;let l=Ze;Ze&&Oi();var d=Pe&&r&&((w=Lt)==null?void 0:w.function[wn]),a,p,f=null;Ze&&vt.nodeType===sc&&(f=vt,Oi());var v=Ze?vt:t,u,$=Is;Di(()=>{let y=e()||null;var S=n?n():i||y==="svg"?ic:null;if(y!==a){var T=Is;hp($),u&&(y===null?En(u,()=>{u=null,p=null}):y===p?cs(u):(Bi(u),Tc(!1))),y&&y!==p&&(u=Pi(()=>{if(f=Ze?f:S?document.createElementNS(S,y):document.createElement(y),Pe&&r&&(f.__svelte_meta={loc:{file:d,line:r[0],column:r[1]}}),yo(f,f),o){Ze&&fg(y)&&f.append(document.createComment(""));var k=Ze?fi(f):f.appendChild(an());Ze&&(k===null?ao(!1):ui(k)),o(f,k)}mt.nodes_end=f,v.before(f)})),a=y,a&&(p=a),Tc(!0),hp(T)}},65536),l&&(ao(!0),ui(v))}var bp;function $g(t){return bp=t.target,new _p(t)}var us,fr,_p=class{constructor(e){ys(this,us);ys(this,fr);var r,l;var i=new Map,o=(d,a)=>{var p=Zr(a,!1,!1);return i.set(d,p),p};let n=new Proxy({...e.props||{},$$events:{}},{get(d,a){var p;return s((p=i.get(a))!=null?p:o(a,Reflect.get(d,a)))},has(d,a){var p;return a===La?!0:(s((p=i.get(a))!=null?p:o(a,Reflect.get(d,a))),Reflect.has(d,a))},set(d,a,p){var f;return B((f=i.get(a))!=null?f:o(a,p),p),Reflect.set(d,a,p)}});Ma(this,fr,(e.hydrate?mp:Jr)(e.component,{target:e.target,anchor:e.anchor,props:n,context:e.context,intro:(r=e.intro)!=null?r:!1,recover:e.recover})),(!((l=e==null?void 0:e.props)!=null&&l.$$host)||e.sync===!1)&&Qa(),Ma(this,us,n.$$events);for(let d of Object.keys(ki(this,fr)))d==="$set"||d==="$destroy"||d==="$on"||ro(this,d,{get(){return ki(this,fr)[d]},set(a){ki(this,fr)[d]=a},enumerable:!0});ki(this,fr).$set=d=>{Object.assign(n,d)},ki(this,fr).$destroy=()=>{ta(ki(this,fr))}}$set(e){ki(this,fr).$set(e)}$on(e,i){ki(this,us)[e]=ki(this,us)[e]||[];let o=(...n)=>i.call(this,...n);return ki(this,us)[e].push(o),()=>{ki(this,us)[e]=ki(this,us)[e].filter(n=>n!==o)}}$destroy(){ki(this,fr).$destroy()}};us=new WeakMap,fr=new WeakMap;function z(t,e){ln(()=>{var n,r,l;var i=t.getRootNode(),o=i.host?i:(l=(n=i.head)!=null?n:i.ownerDocument.head)!=null?l:(r=bp)==null?void 0:r.parentNode;if(!(o!=null&&o.querySelector("#"+e.hash))){let d=document.createElement("style");d.id=e.hash,d.textContent=e.code,o.appendChild(d),Pe&&gg(e.hash,d)}})}function $p(t,e){var i=void 0,o;Di(()=>{i!==(i=e())&&(o&&(Bi(o),o=null),i&&(o=Pi(()=>{bo(()=>i(t))})))})}function yg(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=yg(t[e]))&&(o&&(o+=" "),o+=i)}else for(i in t)t[i]&&(o&&(o+=" "),o+=i);return o}function xg(){for(var t,e,i=0,o="",n=arguments.length;i<n;i++)(t=arguments[i])&&(e=yg(t))&&(o&&(o+=" "),o+=e);return o}function Hl(t){return typeof t=="object"?xg(t):t!=null?t:""}var wg=[...`
44
- \r\f\xA0\v\uFEFF`];function Sg(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 r=n.length,l=0;(l=o.indexOf(n,l))>=0;){var d=l+r;(l===0||wg.includes(o[l-1]))&&(d===o.length||wg.includes(o[d]))?o=(l===0?"":o.substring(0,l))+o.substring(d+1):l=d}}return o===""?null:o}function Cg(t,e=!1){var i=e?" !important;":";",o="";for(var n in t){var r=t[n];r!=null&&r!==""&&(o+=" "+n+": "+r+i)}return o}function yp(t){return t[0]!=="-"||t[1]!=="-"?t.toLowerCase():t}function Tg(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 r=!1,l=0,d=!1,a=[];o&&a.push(...Object.keys(o).map(yp)),n&&a.push(...Object.keys(n).map(yp));var p=0,f=-1;let y=t.length;for(var v=0;v<y;v++){var u=t[v];if(d?u==="/"&&t[v-1]==="*"&&(d=!1):r?r===u&&(r=!1):u==="/"&&t[v+1]==="*"?d=!0:u==='"'||u==="'"?r=u:u==="("?l++:u===")"&&l--,!d&&r===!1&&l===0){if(u===":"&&f===-1)f=v;else if(u===";"||v===y-1){if(f!==-1){var $=yp(t.substring(p,f).trim());if(!a.includes($)){u!==";"&&v++;var w=t.substring(p,v).trim();i+=" "+w+";"}}p=v+1,f=-1}}}}return o&&(i+=Cg(o)),n&&(i+=Cg(n,!0)),i=i.trim(),i===""?null:i}return t==null?null:String(t)}function J(t,e,i,o,n,r){var l=t.__className;if(Ze||l!==i||l===void 0){var d=Sg(i,o,r);(!Ze||d!==t.getAttribute("class"))&&(d==null?t.removeAttribute("class"):e?t.className=d:t.setAttribute("class",d)),t.__className=i}else if(r&&n!==r)for(var a in r){var p=!!r[a];(n==null||p!==!!n[a])&&t.classList.toggle(a,p)}return r}function xp(t,e={},i,o){for(var n in i){var r=i[n];e[n]!==r&&(i[n]==null?t.style.removeProperty(n):t.style.setProperty(n,r,o))}}function st(t,e,i,o){var n=t.__style;if(Ze||n!==e){var r=Tg(e,o);(!Ze||r!==t.getAttribute("style"))&&(r==null?t.removeAttribute("style"):t.style.cssText=r),t.__style=e}else o&&(Array.isArray(o)?(xp(t,i==null?void 0:i[0],o[0]),xp(t,i==null?void 0:i[1],o[1],"important")):xp(t,i,o));return o}function Fl(t,e,i){if(t.multiple){if(e==null)return;if(!Wn(e))return zv();for(var o of t.options)o.selected=e.includes(Eg(o));return}for(o of t.options){var n=Eg(o);if(Qu(n,e)){o.selected=!0;return}}(!i||e!==void 0)&&(t.selectedIndex=-1)}function wp(t){var e=new MutationObserver(()=>{Fl(t,t.__value)});e.observe(t,{childList:!0,subtree:!0,attributes:!0,attributeFilter:["value"]}),Io(()=>{e.disconnect()})}function Eg(t){return"__value"in t?t.__value:t.value}var Za=Symbol("class"),Xa=Symbol("style"),Pg=Symbol("is custom element"),Ag=Symbol("is html");function Mg(t,e){e?t.hasAttribute("selected")||t.setAttribute("selected",""):t.removeAttribute("selected")}function Ne(t,e,i,o){var n=Vg(t);if(Ze&&(n[e]=t.getAttribute(e),e==="src"||e==="srcset"||e==="href"&&t.nodeName==="LINK")){o||Y0(t,e,i!=null?i:"");return}n[e]!==(n[e]=i)&&(e==="loading"&&(t[yv]=i),i==null?t.removeAttribute(e):typeof i!="string"&&Rg(t).includes(e)?t[e]=i:t.setAttribute(e,i))}function Lg(t,e,i,o,n=!1){var I;var r=Vg(t),l=r[Pg],d=!r[Ag];let a=Ze&&l;a&&ao(!1);var p=e||{},f=t.tagName==="OPTION";for(var v in e)v in i||(i[v]=null);i.class?i.class=Hl(i.class):(o||i[Za])&&(i.class=null),i[Xa]&&((I=i.style)!=null||(i.style=null));var u=Rg(t);for(let E in i){let V=i[E];if(f&&E==="value"&&V==null){t.value=t.__value="",p[E]=V;continue}if(E==="class"){var $=t.namespaceURI==="http://www.w3.org/1999/xhtml";J(t,$,V,o,e==null?void 0:e[Za],i[Za]),p[E]=V,p[Za]=i[Za];continue}if(E==="style"){st(t,V,e==null?void 0:e[Xa],i[Xa]),p[E]=V,p[Xa]=i[Xa];continue}var w=p[E];if(!(V===w&&!(V===void 0&&t.hasAttribute(E)))){p[E]=V;var y=E[0]+E[1];if(y!=="$$")if(y==="on"){let K={},W="$$"+E,U=E.slice(2);var S=cg(U);if(dg(U)&&(U=U.slice(0,-7),K.capture=!0),!S&&w){if(V!=null)continue;t.removeEventListener(U,p[W],K),p[W]=null}if(V!=null)if(S)t[`__${U}`]=V,lt([U]);else{let Y=function(ne){p[E].call(this,ne)};var A=Y;p[W]=pp(U,t,Y,K)}else S&&(t[`__${U}`]=void 0)}else if(E==="style")Ne(t,E,V);else if(E==="autofocus")cp(t,!!V);else if(!l&&(E==="__value"||E==="value"&&V!=null))t.value=t.__value=V;else if(E==="selected"&&f)Mg(t,V);else{var T=E;d||(T=ug(T));var k=T==="defaultValue"||T==="defaultChecked";if(V==null&&!l&&!k)if(r[E]=null,T==="value"||T==="checked"){let K=t,W=e===void 0;if(T==="value"){let U=K.defaultValue;K.removeAttribute(T),K.defaultValue=U,K.value=K.__value=W?U:null}else{let U=K.defaultChecked;K.removeAttribute(T),K.defaultChecked=U,K.checked=W?U:!1}}else t.removeAttribute(E);else k||u.includes(T)&&(l||typeof V!="string")?t[T]=V:typeof V!="function"&&Ne(t,T,V,n)}}}return a&&ao(!0),p}function Ie(t,e,i=[],o,n=!1,r=Ir){let l=i.map(r);var d=void 0,a={},p=t.nodeName==="SELECT",f=!1;if(Di(()=>{var u=e(...l.map(s)),$=Lg(t,d,u,o,n);f&&p&&"value"in u&&Fl(t,u.value,!1);for(let y of Object.getOwnPropertySymbols(a))u[y]||Bi(a[y]);for(let y of Object.getOwnPropertySymbols(u)){var w=u[y];y.description===Du&&(!d||w!==d[y])&&(a[y]&&Bi(a[y]),a[y]=Pi(()=>$p(t,()=>w))),$[y]=w}d=$}),p){var v=t;bo(()=>{Fl(v,d.value),wp(v)})}f=!0}function Vg(t){var e;return(e=t.__attributes)!=null?e:t.__attributes={[Pg]:t.nodeName.includes("-"),[Ag]:t.namespaceURI===mv}}var Ig=new Map;function Rg(t){var e=Ig.get(t.nodeName);if(e)return e;Ig.set(t.nodeName,e=[]);for(var i,o=t,n=Element.prototype;n!==o;){i=nc(o);for(var r in i)i[r].set&&e.push(r);o=Ws(o)}return e}function Y0(t,e,i){var o;Pe&&(e==="srcset"&&j0(t,i)||Cp((o=t.getAttribute(e))!=null?o:"",i)||Hv(e,t.outerHTML.replace(t.innerHTML,t.innerHTML&&"..."),String(i)))}function Cp(t,e){return t===e?!0:new URL(t,document.baseURI).href===new URL(e,document.baseURI).href}function kg(t){return t.split(",").map(e=>e.trim().split(" ").filter(Boolean))}function j0(t,e){var i=kg(t.srcset),o=kg(e);return o.length===i.length&&o.every(([n,r],l)=>r===i[l][1]&&(Cp(i[l][0],n)||Cp(n,i[l][0])))}var Z0=oc?()=>performance.now():()=>Date.now(),Mr={tick:t=>(oc?requestAnimationFrame:oe)(t),now:()=>Z0(),tasks:new Set};function Ng(){let t=Mr.now();Mr.tasks.forEach(e=>{e.c(t)||(Mr.tasks.delete(e),e.f())}),Mr.tasks.size!==0&&Mr.tick(Ng)}function Bg(t){let e;return Mr.tasks.size===0&&Mr.tick(Ng),{promise:new Promise(i=>{Mr.tasks.add(e={c:t,f:i})}),abort(){Mr.tasks.delete(e)}}}function Ec(t,e){Nl(()=>{t.dispatchEvent(new CustomEvent(e))})}function t_(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 Og(t){let e={},i=t.split(";");for(let o of i){let[n,r]=o.split(":");if(!n||r===void 0)break;let l=t_(n.trim());e[l]=r.trim()}return e}var i_=t=>t;function Tp(t,e,i,o){var A;var n=(t&1)!==0,r=(t&2)!==0,l=n&&r,d=(t&4)!==0,a=l?"both":n?"in":"out",p,f=e.inert,v=e.style.overflow,u,$;function w(){var V;var I=Et,E=mt;Ni(null),so(null);try{return p!=null?p:p=i()(e,(V=o==null?void 0:o())!=null?V:{},{direction:a})}finally{Ni(I),so(E)}}var y={is_global:d,in(){var I;if(e.inert=f,!n){$==null||$.abort(),(I=$==null?void 0:$.reset)==null||I.call($);return}r||u==null||u.abort(),Ec(e,"introstart"),u=Sp(e,w(),$,1,()=>{Ec(e,"introend"),u==null||u.abort(),u=p=void 0,e.style.overflow=v})},out(I){if(!r){I==null||I(),p=void 0;return}e.inert=!0,Ec(e,"outrostart"),$=Sp(e,w(),u,0,()=>{Ec(e,"outroend"),I==null||I()})},stop:()=>{u==null||u.abort(),$==null||$.abort()}},S=mt;if(((A=S.transitions)!=null?A:S.transitions=[]).push(y),n&&Bl){var T=d;if(!T){for(var k=S.parent;k&&(k.f&65536)!==0;)for(;(k=k.parent)&&(k.f&16)===0;);T=!k||(k.f&32768)!==0}T&&bo(()=>{Ct(()=>y.in())})}}function Sp(t,e,i,o,n){var r=o===1;if(Cs(e)){var l,d=!1;return ln(()=>{if(!d){var S=e({direction:r?"in":"out"});l=Sp(t,S,i,o,n)}}),{abort:()=>{d=!0,l==null||l.abort()},deactivate:()=>l.deactivate(),reset:()=>l.reset(),t:()=>l.t()}}if(i==null||i.deactivate(),!(e!=null&&e.duration))return n(),{abort:oe,deactivate:oe,reset:oe,t:()=>o};let{delay:a=0,css:p,tick:f,easing:v=i_}=e;var u=[];if(r&&i===void 0&&(f&&f(0,1),p)){var $=Og(p(0,1));u.push($,$)}var w=()=>1-o,y=t.animate(u,{duration:a,fill:"forwards"});return y.onfinish=()=>{var U;y.cancel();var S=(U=i==null?void 0:i.t())!=null?U:1-o;i==null||i.abort();var T=o-S,k=e.duration*Math.abs(T),A=[];if(k>0){var I=!1;if(p)for(var E=Math.ceil(k/16.666666666666668),V=0;V<=E;V+=1){var K=S+T*v(V/E),W=Og(p(K,1-K));A.push(W),I||(I=W.overflow==="hidden")}I&&(t.style.overflow="hidden"),w=()=>{var Y=y.currentTime;return S+T*v(Y/k)},f&&Bg(()=>{if(y.playState!=="running")return!1;var Y=w();return f(Y,1-Y),!0})}y=t.animate(A,{duration:k,fill:"forwards"}),y.onfinish=()=>{w=()=>o,f==null||f(o,1-o),n()}},{abort:()=>{y&&(y.cancel(),y.effect=null,y.onfinish=oe)},deactivate:()=>{n=oe},reset:()=>{o===0&&(f==null||f(1,0))},t:()=>w()}}var ks,Ja,Ul,kc,Dg,Pc=class Pc{constructor(e){ys(this,kc);ys(this,ks,new WeakMap);ys(this,Ja);ys(this,Ul);Ma(this,Ul,e)}observe(e,i){var o=ki(this,ks).get(e)||new Set;return o.add(i),ki(this,ks).set(e,o),pv(this,kc,Dg).call(this).observe(e,ki(this,Ul)),()=>{var n=ki(this,ks).get(e);n.delete(i),n.size===0&&(ki(this,ks).delete(e),ki(this,Ja).unobserve(e))}}};ks=new WeakMap,Ja=new WeakMap,Ul=new WeakMap,kc=new WeakSet,Dg=function(){var e;return(e=ki(this,Ja))!=null?e:Ma(this,Ja,new ResizeObserver(i=>{for(var o of i){Pc.entries.set(o.target,o);for(var n of ki(this,ks).get(o.target)||[])n(o)}}))},zn(Pc,"entries",new WeakMap);var Ep=Pc;var o_=new Ep({box:"border-box"});function es(t,e,i){var o=o_.observe(t,()=>i(t[e]));bo(()=>(Ct(()=>i(t[e])),o))}function Hg(t,e){return t===e||(t==null?void 0:t[Eo])===e}function ot(t={},e,i,o){return bo(()=>{var n,r;return Mo(()=>{n=r,r=(o==null?void 0:o())||[],Ct(()=>{t!==i(...r)&&(e(t,...r),n&&Hg(i(...n),t)&&e(null,...n))})}),()=>{ln(()=>{r&&Hg(i(...r),t)&&e(null,...r)})}}),t}function Lr(t=!1){let e=Lt,i=e.l.u;if(!i)return;let o=()=>wc(e.s);if(t){let n=0,r={},l=Ir(()=>{let d=!1,a=e.s;for(let p in a)a[p]!==r[p]&&(r[p]=a[p],d=!0);return d&&n++,n});o=()=>s(l)}i.b.length&&Pl(()=>{Fg(e,o),Ss(i.b)}),We(()=>{let n=Ct(()=>i.m.map($v));return()=>{for(let r of n)typeof r=="function"&&r()}}),i.a.length&&We(()=>{Fg(e,o),Ss(i.a)})}function Fg(t,e){if(t.l.s)for(let i of t.l.s)s(i);e()}function zl(t,e,i){if(t==null)return e(void 0),i&&i(void 0),oe;let o=Ct(()=>t.subscribe(e,i));return o.unsubscribe?()=>o.unsubscribe():o}var el=[];function mr(t,e){return{subscribe:re(t,e).subscribe}}function re(t,e=oe){let i=null,o=new Set;function n(d){if(Ra(t,d)&&(t=d,i)){let a=!el.length;for(let p of o)p[1](),el.push(p,t);if(a){for(let p=0;p<el.length;p+=2)el[p][0](el[p+1]);el.length=0}}}function r(d){n(d(t))}function l(d,a=oe){let p=[d,a];return o.add(p),o.size===1&&(i=e(n,r)||oe),d(t),()=>{o.delete(p),o.size===0&&i&&(i(),i=null)}}return{set:n,update:r,subscribe:l}}function mi(t,e,i){let o=!Array.isArray(t),n=o?[t]:t;if(!n.every(Boolean))throw new Error("derived() expects stores as input, got a falsy value");let r=e.length<2;return mr(i,(l,d)=>{let a=!1,p=[],f=0,v=oe,u=()=>{if(f)return;v();let w=e(o?p[0]:p,l,d);r?l(w):v=typeof w=="function"?w:oe},$=n.map((w,y)=>zl(w,S=>{p[y]=S,f&=~(1<<y),a&&u()},()=>{f|=1<<y}));return a=!0,u(),function(){Ss($),v(),a=!1}})}function $e(t){let e;return zl(t,i=>e=i)(),e}var Ac=!1,Ip=Symbol();function C(t,e,i){var r;let o=(r=i[e])!=null?r:i[e]={store:null,source:Zr(void 0),unsubscribe:oe};if(o.store!==t&&!(Ip in i))if(o.unsubscribe(),o.store=t!=null?t:null,t==null)o.source.v=void 0,o.unsubscribe=oe;else{var n=!0;o.unsubscribe=zl(t,l=>{n?o.source.v=l:B(o.source,l)}),n=!1}return t&&Ip in i?$e(t):s(o.source)}function De(){let t={};function e(){Io(()=>{for(var i in t)t[i].unsubscribe();ro(t,Ip,{enumerable:!1,value:!0})})}return[t,e]}function kp(t){var e=Ac;try{return Ac=!1,[t(),Ac]}finally{Ac=e}}var c_={get(t,e){if(!t.exclude.includes(e))return t.props[e]},set(t,e){return Pe&&Av(`${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 Me(t,e,i){return new Proxy(Pe?{props:t,exclude:e,name:i,other:{},to_proxy:[]}:{props:t,exclude:e},c_)}var u_={get(t,e){let i=t.props.length;for(;i--;){let o=t.props[i];if(Cs(o)&&(o=o()),typeof o=="object"&&o!==null&&e in o)return o[e]}},set(t,e,i){let o=t.props.length;for(;o--;){let n=t.props[o];Cs(n)&&(n=n());let r=zo(n,e);if(r&&r.set)return r.set(i),!0}return!1},getOwnPropertyDescriptor(t,e){let i=t.props.length;for(;i--;){let o=t.props[i];if(Cs(o)&&(o=o()),typeof o=="object"&&o!==null&&e in o){let n=zo(o,e);return n&&!n.configurable&&(n.configurable=!0),n}}},has(t,e){if(e===Eo||e===La)return!1;for(let i of t.props)if(Cs(i)&&(i=i()),i!=null&&e in i)return!0;return!1},ownKeys(t){let e=[];for(let i of t.props)if(Cs(i)&&(i=i()),!!i){for(let o in i)e.includes(o)||e.push(o);for(let o of Object.getOwnPropertySymbols(i))e.includes(o)||e.push(o)}return e}};function ps(...t){return new Proxy({props:t},u_)}function Ug(t){var e,i;return(i=(e=t.ctx)==null?void 0:e.d)!=null?i:!1}function m(t,e,i,o){var K,W;var n=(i&1)!==0,r=!Gr||(i&2)!==0,l=(i&8)!==0,d=(i&16)!==0,a=!1,p;l?[p,a]=kp(()=>t[e]):p=t[e];var f=Eo in t||La in t,v=l&&((W=(K=zo(t,e))==null?void 0:K.set)!=null?W:f&&e in t&&(U=>t[e]=U))||void 0,u=o,$=!0,w=!1,y=()=>(w=!0,$&&($=!1,d?u=Ct(o):u=o),u);p===void 0&&o!==void 0&&(v&&r&&Pv(e),p=y(),v&&v(p));var S;if(r)S=()=>{var U=t[e];return U===void 0?y():($=!0,w=!1,U)};else{var T=(n?Ir:kr)(()=>t[e]);T.f|=131072,S=()=>{var U=s(T);return U!==void 0&&(u=void 0),U===void 0?u:U}}if((i&4)===0&&r)return S;if(v){var k=t.$$legacy;return function(U,Y){return arguments.length>0?((!r||!Y||k||a)&&v(Y?S():U),U):S()}}var A=!1,I=!1,E=Zr(p),V=Ir(()=>{var U=S(),Y=s(E);return A?(A=!1,I=!0,Y):(I=!1,E.v=U)});return l&&s(V),n||(V.equals=Na),function(U,Y){if(yc!==null&&(A=I,S(),s(E)),arguments.length>0){let ne=Y?s(V):r&&l?oi(U):U;if(!V.equals(ne)){if(A=!0,B(E,ne),w&&u!==void 0&&(u=ne),Ug(V))return U;Ct(()=>s(V))}return U}return Ug(V)?V.v:s(V)}}var p_;typeof HTMLElement=="function"&&(p_=class extends HTMLElement{constructor(e,i,o){super();zn(this,"$$ctor");zn(this,"$$s");zn(this,"$$c");zn(this,"$$cn",!1);zn(this,"$$d",{});zn(this,"$$r",!1);zn(this,"$$p_d",{});zn(this,"$$l",{});zn(this,"$$l_u",new Map);zn(this,"$$me");this.$$ctor=e,this.$$s=i,o&&this.attachShadow({mode:"open"})}addEventListener(e,i,o){if(this.$$l[e]=this.$$l[e]||[],this.$$l[e].push(i),this.$$c){let n=this.$$c.$on(e,i);this.$$l_u.set(i,n)}super.addEventListener(e,i,o)}removeEventListener(e,i,o){if(super.removeEventListener(e,i,o),this.$$c){let n=this.$$l_u.get(i);n&&(n(),this.$$l_u.delete(i))}}async connectedCallback(){if(this.$$cn=!0,!this.$$c){let i=function(r){return l=>{let d=document.createElement("slot");r!=="default"&&(d.name=r),b(l,d)}};var e=i;if(await Promise.resolve(),!this.$$cn||this.$$c)return;let o={},n=f_(this);for(let r of this.$$s)r in n&&(r==="default"&&!this.$$d.children?(this.$$d.children=i(r),o.default=!0):o[r]=i(r));for(let r of this.attributes){let l=this.$$g_p(r.name);l in this.$$d||(this.$$d[l]=Pp(l,r.value,this.$$p_d,"toProp"))}for(let r in this.$$p_d)!(r in this.$$d)&&this[r]!==void 0&&(this.$$d[r]=this[r],delete this[r]);this.$$c=$g({component:this.$$ctor,target:this.shadowRoot||this,props:{...this.$$d,$$slots:o,$$host:this}}),this.$$me=hc(()=>{Mo(()=>{var r;this.$$r=!0;for(let l of Hu(this.$$c)){if(!((r=this.$$p_d[l])!=null&&r.reflect))continue;this.$$d[l]=this.$$c[l];let d=Pp(l,this.$$d[l],this.$$p_d,"toAttribute");d==null?this.removeAttribute(this.$$p_d[l].attribute||l):this.setAttribute(this.$$p_d[l].attribute||l,d)}this.$$r=!1})});for(let r in this.$$l)for(let l of this.$$l[r]){let d=this.$$c.$on(r,l);this.$$l_u.set(l,d)}this.$$l={}}}attributeChangedCallback(e,i,o){var n;this.$$r||(e=this.$$g_p(e),this.$$d[e]=Pp(e,o,this.$$p_d,"toProp"),(n=this.$$c)==null||n.$set({[e]:this.$$d[e]}))}disconnectedCallback(){this.$$cn=!1,Promise.resolve().then(()=>{!this.$$cn&&this.$$c&&(this.$$c.$destroy(),this.$$me(),this.$$c=void 0)})}$$g_p(e){return Hu(this.$$p_d).find(i=>this.$$p_d[i].attribute===e||!this.$$p_d[i].attribute&&i.toLowerCase()===e)||e}});function Pp(t,e,i,o){var r;let n=(r=i[t])==null?void 0:r.type;if(e=n==="Boolean"&&typeof e!="boolean"?e!=null:e,!o||!i[t])return e;if(o==="toAttribute")switch(n){case"Object":case"Array":return e==null?null:JSON.stringify(e);case"Boolean":return e?"":null;case"Number":return e==null?null:e;default:return e}else switch(n){case"Object":case"Array":return e&&JSON.parse(e);case"Boolean":return e;case"Number":return e!=null?+e:e;default:return e}}function f_(t){let e={};return t.childNodes.forEach(i=>{e[i.slot||"default"]=!0}),e}var zg="5";var Wg,qg,Kg;typeof window!="undefined"&&((Kg=(qg=(Wg=window.__svelte)!=null?Wg:window.__svelte={}).v)!=null?Kg:qg.v=new Set).add(zg);import{areValidLiveRecordSources as e5,clientChecker as jm}from"@vkontakte/videoplayer-core/es2018";import"@vkontakte/videoplayer-core/es2018";import{noop as K1,safeStorage as t5,throttleFn as i5}from"@vkontakte/videoplayer-shared/es2018";import{SeekAction as o5}from"@vkontakte/videoplayer-statistics/es2018";import{InterfaceLanguage as m_,fillWithDefault as v_,VideoQuality as Qg}from"@vkontakte/videoplayer-shared/es2018";var g_={isMobile:void 0,debugLog:!1,devNullLog:!1,defaultLanguage:m_.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:Qg.Q_480P,highQualityLimit:Qg.Q_720P,episodeMinWidthPc:8,hideThumbTimerAfterTouch:!0,preventPauseOnVideoClick:!1,sentry:{dsn:"https://e349fd23c68f405388980d0868d0ff27@sentry.mvk.com/126",sampleRate:.01,whiteErrorCategoryList:[],blackErrorCategoryList:[],whiteErrorIdList:[],blackErrorIdList:[]},features:{autoplay:!0,statistics:!0,thinStatistics:!1,sentry:!0,preload:!0,subtitles:!0,episodes:!0,fullscreen:!0,timelinePreview:!0,mediaSession:!0,annotations:!0,slots:!0,annotationsInside:!1,pip:!0,dpip:!0,download:!0,liveRewind:!0,playbackRate:!0,trafficSaving:!0,episodesClustering:!0,copyVideoLink:!0,videoRotate:!0,tracer:!1,interactiveGraph:!1,interactiveResponsiveUi:!1,seekToInteractive:!0,interactiveLastFrame:!1,interactiveTextPermanent:!0,interactiveHideTime:!0,interactivePlayPrevChapter:!0,interactiveTimeIndicator:!0,interactiveTimeOpenUri:!1,interactiveAreaControlShadow:!1,interactiveControlsExpectTimeBlinkAnimation:!1,interactiveControlsTapPlace:!1,interactiveControlsFillAnimation:!1,interactiveControlsHideAnimation:!1,interactiveHistoryEndChapterFix:!0,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,initSubtitles:!0,useCallbackForMediaSessionNextPrevClick:!1},controls:{showOnStartupAtAutoplay:!0,hideTimeout:500,hideTimeoutMobile:3e3,hideTimeoutInitial:200,hideTimeoutFullscreen:3e3,hideTimeoutCursor:3e3,hideTimeoutTooltips:1e3,collapseMobileUnmute:6e3,hide360IconTimeout:3e3,hideHotKeyHelpers:2e3,playbackRateMin:.25,playbackRateMax:2,playbackRateStep:.25,volumeStepKeyboard:.05,volumeStepWheel:.05,volumeBarTimeout:300,seekStepKeyboard:1e4,seekStepMobile:15e3,seekStepFrame:400},ads:{enable:void 0,initTimeout:2e3,loadTimeout:2e3,runtimeTimeout:5e3,slot:void 0,preview:void 0,isMobileGoToSiteButton:!0,useAdmanFromNPM:!1,volumeMultiplier:1,isVsidOriginal:!1},interactive:{historyMaxLength:100,noInteractionEventTimeout:3e4},view:{timelineSliderColor:null,timelineSliderHandleColor:null,timelineSliderFilledColor:null,timelineSliderLoadedColor:null,volumeSliderColor:null,volumeSliderHandleColor:null,volumeSliderFilledColor:null,controlsTimeColor:null,timelineSliderFilledActiveLiveColor:null,timelineSliderHandleActiveLiveColor:null,buttonColor:null,buttonToggleOnColor:null,focusedColor:null,font:null,focusedOutlineWidth:null,focusedOutlineRadius:null,controlsDesktopPaddingHorizontal:null,timelinePaddingHorizontal:null,settingsBackgroundColor:null,controlsGradientHeight:null,controlsGradient:null}},Gg=t=>v_(t,g_),Yg=t=>Da("ui-config",t),Ft=()=>Oa("ui-config");var Wl="vk_player_debug_panel_opened";var jg="videoplayer",Zg="videoplayer";var ts={KeyF:"f",KeyK:"k",KeyC:"c",KeyM:"m"},Xg=new Set(["ArrowLeft","ArrowRight","KeyL","KeyJ"]),Jg=new Set(["Tab","Space","ArrowLeft","ArrowRight","ArrowUp","ArrowDown"]),eh=new Set(["ShiftRight","ShiftLeft"]);var th=["TIMELINE"],ql=[...th,"GRAPH_BUTTON"],Ap=[...th,"PLAY_BUTTON"],Kl=[...ql,"PLAY_BUTTON"];var is=(r=>(r.XS="xs",r.S="s",r.M="m",r.L="l",r.XL="xl",r))(is||{}),ra={xs:0,s:1,m:2,l:3,xl:4};import{assertNonNullable as ih,VERSION as h_}from"@vkontakte/videoplayer-shared/es2018";import{VERSION as __}from"@vkontakte/videoplayer-core/es2018";import{VERSION as b_}from"@vkontakte/videoplayer-statistics/es2018";var Mc="prod",tl="1.1.68-dev.102bdf41.0";var sa=(t,e,i)=>{let o=document.createElement("a");o.href=t,o.download=`${e}.${i}`,o.style.display="none",o.click()};var oh=Symbol("storeContext"),nh=Symbol("microStoresContext"),rh=(t,e)=>{Da(oh,t),Da(nh,e),Mc==="dev"&&(window.app={store:t,microStores:e})},Ee=()=>{let t=Oa(oh);return ih(t,"Store context is empty!"),t},co=()=>{let t=Oa(nh);return ih(t,"MicroStores context is empty!"),t},ti=(t,e)=>Vc(t,t.getValue(),e),Vc=(t,e,i)=>mr(e,o=>{let n=t.subscribe(r=>{o(r),i==null||i(r)});return()=>n.unsubscribe()}),sh=(t,e,i,o)=>{var V,K,W,U,Y,ne,G,ce;let n=t.info,{width:r,height:l}=$e(i.ui.playerSize),d=(K=(V=n.throughputEstimation$.getValue())==null?void 0:V.toFixed(0))!=null?K:0,a=(U=(W=n.rttEstimation$.getValue())==null?void 0:W.toFixed(0))!=null?U:0,p=n.isAutoQualityEnabled$.getValue()?"auto":"manual",f=`${tl} (core: ${__}, stat: ${b_}, shared: ${h_})`,v=$e(i.state.errorLog$),u=v.length?`
45
- `+v.map((le,we)=>{var Le;let Ve=`${we}) Type: ${le.id}
46
- `,ve=`Message: ${le.message} (${le.thrown})
47
- `,ae=`Trace: ${(Le=le.thrown)==null?void 0:Le.stack}
48
- `;return Ve+ve+ae}).join(`
49
- `):void 0,$=i.state.isAudioDisabled?"disabled":$e(i.state.isAudioAvailable$)?void 0:"unavailable",w=t.info.currentVideoStream$.getValue(),y=t.info.currentAudioStream$.getValue(),S=[];w&&S.push(`Video: ${(Y=w==null?void 0:w.codec)!=null?Y:""}`+(w!=null&&w.hdr?" (HDR)":"")),y&&S.push(`Audio: ${(ne=y==null?void 0:y.codec)!=null?ne:""}`+(y!=null&&y.language?` (${y.language})`:""));let T=n.currentQuality$.getValue(),k="";if(T){let le=n.availableQualitiesFps$.getValue()[T];k=le?`${le}fps`:""}let A=(ce=(G=n.currentBuffer$.getValue())==null?void 0:G.end)!=null?ce:0,I=Math.max(A-$e(i.state.positionExact$),0),E={Version:f,Browser:navigator.userAgent,Config:t.experimental.tuningConfigName$.getValue().join(", "),"United video id":String(i.videoId),TraceId:o,VSID:$e(i.vsid),"Content host":n.hostname$.getValue(),"Connection type":n.httpConnectionType$.getValue()+(n.httpConnectionReused$.getValue()?" (reused)":""),Throughput:`${d}Kbps @ ${a}ms RTT`,Format:n.currentFormat$.getValue(),"Available Formats":Object.keys(e.sources).join(", "),Streams:S.join(", "),Quality:`${p} ${T} ${k}`,"Available qualities":n.availableQualities$.getValue().join(", "),Audio:$,Position:`${$e(i.state.positionExact$)}s`,Buffer:`${I}s`,State:`${$e(i.playerPhase)} ${n.playbackState$.getValue()}`,"Player size":`${r}x${l}`,URL:window.location.href,Errors:u};return Object.entries(E).filter(([le,we])=>we!==void 0).map(([le,we])=>`${le}: ${we}`).join(`
50
- `)},ah=(t,e,i)=>{var K,W,U,Y;let o=t.info,{width:n,height:r}=$e(i.ui.playerSize),l={version:tl,viewport:`${n}x${r}`,volume:Math.round($e(i.state.volume$)*100)};l.id=i.videoId,o.currentFormat$.getValue()&&(l.provider=o.currentFormat$.getValue()),o.hostname$.getValue()&&(l.cdn=o.hostname$.getValue());let p=o.intrinsicVideoSize$.getValue();p&&(l.videoSize=`${p.width}x${p.height}`);let f=o.currentBuffer$.getValue(),v=o.isLive$.getValue(),u=o.liveBufferTime$.getValue();f&&(v&&u?l.buffer=f.end-u:l.buffer=Math.max(f.end-$e(i.state.positionExact$),0)),l.position=$e(i.state.positionExact$);let $=o.throughputEstimation$.getValue();$&&(l.speed=$);let w=o.videoBitrate$.getValue();w&&(l.bitrate=w);let y=o.liveLatency$.getValue();y&&(l.liveLatency=y);let S=o.currentVideoSegmentLength$.getValue();S&&(l.currentVideoSegmentLength=S);let T=o.currentAudioSegmentLength$.getValue();T&&(l.currentAudioSegmentLength=T);let k=$e(i.vsid);typeof k=="string"&&(l.vsid=k);let A=(K=t.info.currentVideoStream$.getValue())==null?void 0:K.codec;A&&(l.videoCodec=A);let I=(W=t.info.currentAudioStream$.getValue())==null?void 0:W.codec;I&&(l.audioCodec=I),((U=t.info.currentVideoStream$.getValue())==null?void 0:U.hdr)&&(l.hdr=!0);let V=(Y=t.info.currentAudioStream$.getValue())==null?void 0:Y.language;return V&&(l.audioLanguage=V),l},lh=(t,e)=>sa(t,e,"mp4"),dh=t=>!t.type,ch=t=>!!t.type,uh=()=>{let e=[],i=0;return{add:(o,n)=>{e[i]=[o,n],i=(i+1)%10},find:o=>e.find(([n])=>n===o)}},Lc=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 Rp,safeStorage as Gi}from"@vkontakte/videoplayer-shared/es2018";import"@vkontakte/videoplayer-core/es2018";var ph="vk_player_prefer_traffic_saving_enabled",fh="vk_player_preferred_volume",mh="vk_player_prefer_volume_mute",Np="vk_player_preferred_quality",Mp="vk_player_preferred_default_quality_settings",Lp="vk_player_preferred_quality_settings_by_video",vh="vk_player_preferred_stream_language",gh="vk_player_preferred_rate",hh="vk_player_preferred_autoplay_next",Vp="vk_player_preferred_subtitles_language",_h=t=>t>1?1:t<0?0:t,Bp=t=>Gi.set(fh,_h(t).toString(10)),Rc=()=>{let t=Gi.get(fh);return Rp(t)?void 0:_h(parseFloat(t))},Op=(t,e)=>Gi.set(Np,JSON.stringify({videoId:t,value:e})),Gl=()=>Gi.remove(Np),Dp=t=>{let e=Gi.get(Np);if(Rp(e))return;let{videoId:i,value:o}=JSON.parse(e);if(t!==i){Gl();return}return o},Hp=(t,e)=>{e?Gi.set(t,"true"):Gi.remove(t)},Fp=t=>Gi.get(t)==="true",Up=t=>Hp(mh,t),bh=()=>Fp(mh),Ql=t=>Hp(ph,t),zp=()=>Fp(ph),$h=()=>Gi.get(vh),Wp=t=>Gi.set(vh,t),qp=()=>Gi.get(Vp),Kp=t=>{t?Gi.set(Vp,t):Gi.remove(Vp)},yh=t=>Gi.set(gh,JSON.stringify({rate:t})),xh=()=>{let t=Gi.get(gh);if(Rp(t))return;let{rate:e}=JSON.parse(t);return e},wh=t=>Hp(hh,t),Ch=()=>Fp(hh),$_=()=>{let t=f=>{Gi.set(Mp,JSON.stringify(f))},e=()=>{try{let f=Gi.get(Mp);return f?JSON.parse(f):null}catch(f){return null}},i=()=>{try{let f=Gi.get(Lp);return f?JSON.parse(f):null}catch(f){return null}},o=f=>{Gi.set(Lp,JSON.stringify(f))},n=f=>{p(f);let v=f?i():null;if(v&&(v==null?void 0:v.videoId)===f)return{...v,appliesTo:"to-video"};v&&r();let u=e();return u?{...u,appliesTo:"as-default"}:(t({type:"auto_quality"}),{type:"auto_quality",appliesTo:"as-default"})},r=()=>{Gi.remove(Lp)},l=()=>{Gi.remove(Mp)},d=(f,v="as-default")=>{f.type==="exact_quality"?o(f):v==="as-default"?t(f):o(f)},a=f=>{let v=n(f);if(v){switch(v.type){case"traffic_saving":Ql(!0);break;case"exact_quality":Op(f,v.quality)}r(),l()}},p=f=>{let v=Dp(f);if(v){o({type:"exact_quality",videoId:f,quality:v});return}zp()&&t({type:"traffic_saving",videoId:f}),Ql(!1),Gl()};return{getPreferredQualitySettings:n,migrateSettingsToLegacyWay:a,savePreferredQualitySettings:d,savePreferredDefaultQualitySettings:t,removePreferredQualitySettingsByVideo:r,getPreferredDefaultQualitySettings:e,getPreferredSubtitlesLanguage:qp,savePreferredSubtitlesLanguage:Kp}},{getPreferredQualitySettings:Sh,migrateSettingsToLegacyWay:Th,savePreferredQualitySettings:Nc,savePreferredDefaultQualitySettings:cM,removePreferredQualitySettingsByVideo:uM,getPreferredDefaultQualitySettings:Bc}=$_();import{PlaybackState as z1}from"@vkontakte/videoplayer-core/es2018";var y_=Se('<svg><!><g filter="url(#a)"><path fill="var(--btn-color, #fff)" fill-rule="evenodd" d="M67 9.489A3.49 3.49 0 0 1 63.511 13 3.493 3.493 0 0 1 60 9.489 3.49 3.49 0 0 1 63.511 6 3.484 3.484 0 0 1 67 9.489m-5.003 0c0 .834.68 1.514 1.514 1.514.812 0 1.492-.68 1.492-1.514 0-.812-.68-1.492-1.492-1.492-.834 0-1.514.68-1.514 1.492" clip-rule="evenodd"></path><path fill="var(--btn-color, #fff)" d="M26.86 15.183c1.372-.492 2.534-1.711 2.534-3.61C29.394 8.922 27.185 7 24.07 7c-1.965 0-3.573.784-4.67 2.29l-.108.149a1.333 1.333 0 0 0 .268 1.855c.536.402 1.295.343 1.736-.162.09-.102.164-.19.205-.247.594-.81 1.431-1.306 2.5-1.306 1.534 0 2.604.915 2.604 2.251 0 1.36-1.093 2.275-2.651 2.275h-.583a1.231 1.231 0 0 0 0 2.462h.583c1.744 0 2.907.985 2.907 2.392 0 1.453-1.186 2.462-2.884 2.462-1.296 0-2.201-.552-2.883-1.603a10 10 0 0 0-.2-.287 1.403 1.403 0 0 0-2.052-.246c-.494.42-.65 1.13-.305 1.68.072.116.146.227.218.322C20.132 23.137 21.678 24 23.999 24c3.28 0 5.628-2.04 5.628-4.924 0-2.204-1.395-3.4-2.767-3.893"></path><path fill="var(--btn-color, #fff)" fill-rule="evenodd" d="M37.732 12.675c-.465 0-1 .046-1.511.164l2.584-3.74a1.338 1.338 0 1 0-2.203-1.518l-3.753 5.469c-1.418 2.133-1.837 3.822-1.837 5.276 0 3.47 2.558 5.674 6.186 5.674 3.604 0 6.162-2.392 6.162-5.768 0-3.236-2.349-5.557-5.628-5.557m-.534 8.746c-1.977 0-3.326-1.267-3.326-3.142 0-1.853 1.349-3.142 3.326-3.142 1.953 0 3.302 1.29 3.302 3.142 0 1.875-1.35 3.142-3.302 3.142M58 15.512c0 5.041-2.697 8.441-6.627 8.441s-6.628-3.4-6.628-8.441 2.698-8.442 6.628-8.442S58 10.47 58 15.512m-10.348 0c0 3.564 1.488 5.862 3.72 5.862s3.721-2.298 3.721-5.862-1.488-5.862-3.72-5.862-3.72 2.298-3.72 5.862Z" clip-rule="evenodd"></path><path fill="var(--btn-color, #fff)" d="M67 23.5c0-1.318-1.201-3.094-4.199-4.673a1.5 1.5 0 1 1 1.398-2.654C67.452 17.886 70 20.433 70 23.5c0 3.126-2.556 5.554-6.088 7.27-3.633 1.766-8.825 3.062-15.259 3.722a1.5 1.5 0 0 1-.306-2.984c6.248-.641 11.057-1.882 14.253-3.436C65.897 26.47 67 24.8 67 23.5M38.879 35H38c-9.64 0-17.447-1.133-22.9-3.018-2.72-.941-4.94-2.099-6.506-3.468C7.019 27.138 6 25.445 6 23.5c0-1.64.785-3.073 1.908-4.255 1.119-1.179 2.66-2.205 4.42-3.086a1.5 1.5 0 1 1 1.343 2.682c-1.584.793-2.794 1.634-3.588 2.47C9.293 22.143 9 22.873 9 23.5c0 .807.407 1.74 1.568 2.755 1.17 1.022 2.996 2.02 5.513 2.892C21.106 30.885 28.55 32 38 32h.879l-1.44-1.44a1.5 1.5 0 0 1 2.122-2.12l3.999 3.998.01.011a1.5 1.5 0 0 1 .317 1.624 1.5 1.5 0 0 1-.326.488l-4 4a1.5 1.5 0 0 1-2.122-2.122L38.88 35Z"></path><path stroke="#000" stroke-linecap="round" stroke-linejoin="round" stroke-opacity=".12" stroke-width=".5" d="m7.908 19.245-.181-.173c1.146-1.206 2.714-2.248 4.49-3.137a1.75 1.75 0 1 1 1.566 3.13c-1.57.786-2.752 1.61-3.519 2.418-.762.802-1.014 1.474-1.014 2.017 0 .713.357 1.583 1.483 2.567 1.136.993 2.93 1.978 5.43 2.843 4.99 1.726 12.403 2.84 21.837 2.84h.275l-1.012-1.013a1.75 1.75 0 1 1 2.474-2.474l4 3.998h0l.012.013s0 0 0 0c.162.165.284.354.368.556q0 0 0 0l-.23.096A1.5 1.5 0 0 1 44 33.5q-.002.306-.113.573L7.907 19.245Zm0 0-.181-.173C6.576 20.284 5.75 21.775 5.75 23.5c0 2.04 1.07 3.796 2.68 5.202 1.599 1.398 3.85 2.569 6.589 3.516C20.506 34.116 28.343 35.25 38 35.25h.275zm29.824-6.82c-.3 0-.63.018-.965.063l2.244-3.247c.728-1.054-.026-2.491-1.306-2.491-.524 0-1.014.258-1.31.69l-3.752 5.468h0l-.002.003c-1.442 2.17-1.879 3.905-1.879 5.415 0 1.8.665 3.288 1.815 4.324 1.147 1.033 2.757 1.6 4.62 1.6 3.727 0 6.413-2.488 6.413-6.018 0-3.377-2.464-5.807-5.878-5.807m25.779.825c2.07 0 3.739-1.67 3.739-3.761 0-2.07-1.67-3.739-3.739-3.739a3.74 3.74 0 0 0-3.761 3.739 3.743 3.743 0 0 0 3.761 3.761m0-2.497a1.267 1.267 0 0 1-1.264-1.264c0-.671.566-1.242 1.264-1.242.674 0 1.242.568 1.242 1.242 0 .698-.57 1.264-1.242 1.264m-33.634 8.323c0-2.043-1.139-3.272-2.388-3.895 1.208-.629 2.155-1.846 2.155-3.609 0-2.82-2.357-4.822-5.575-4.822-2.04 0-3.724.818-4.871 2.392l-.109.149a1.583 1.583 0 0 0 .32 2.203c.635.476 1.542.411 2.074-.197.09-.103.17-.198.219-.264.553-.755 1.318-1.204 2.297-1.204.72 0 1.309.214 1.715.564.403.347.64.84.64 1.437 0 .608-.242 1.107-.653 1.457-.415.353-1.017.568-1.748.568h-.583a1.481 1.481 0 0 0 0 2.962h.583c.826 0 1.493.233 1.948.61.451.375.709.902.709 1.532 0 .654-.265 1.2-.718 1.586-.455.388-1.116.626-1.916.626-.61 0-1.117-.13-1.548-.375s-.801-.614-1.125-1.114a11 11 0 0 0-.206-.296 1.653 1.653 0 0 0-2.417-.292c-.577.49-.774 1.335-.356 2.004.075.119.152.236.23.339.704.945 1.462 1.652 2.352 2.121.892.47 1.9.692 3.094.692 3.383 0 5.877-2.121 5.877-5.174m7.32 2.095c-.934 0-1.7-.299-2.232-.8-.53-.5-.843-1.217-.843-2.092 0-.863.313-1.581.844-2.085s1.298-.807 2.232-.807c.92 0 1.682.303 2.21.807.529.503.842 1.222.842 2.085 0 .875-.314 1.593-.84 2.093-.53.5-1.29.799-2.212.799Zm14.176 3.032c2.044 0 3.772-.887 4.983-2.425 1.208-1.534 1.894-3.703 1.894-6.266s-.686-4.732-1.894-6.266c-1.211-1.539-2.94-2.426-4.983-2.426-2.044 0-3.773.887-4.984 2.426-1.208 1.534-1.894 3.703-1.894 6.266s.686 4.732 1.894 6.266c1.211 1.538 2.94 2.425 4.984 2.425m0-3.08c-1.017 0-1.874-.518-2.487-1.478-.618-.968-.984-2.382-.984-4.133 0-1.752.366-3.166.984-4.133.613-.96 1.47-1.48 2.487-1.48s1.873.52 2.486 1.48c.618.967.984 2.381.984 4.133 0 1.751-.366 3.165-.984 4.133-.613.96-1.47 1.479-2.486 1.479Zm11.312-2.075c2.975 1.567 4.065 3.279 4.065 4.452 0 1.148-.983 2.756-4.259 4.347-3.16 1.536-7.937 2.773-14.17 3.412a1.75 1.75 0 0 0 .358 3.482c6.45-.662 11.673-1.963 15.342-3.746 3.551-1.725 6.229-4.216 6.229-7.495 0-3.213-2.661-5.825-5.935-7.548a1.75 1.75 0 1 0-1.63 3.096"></path></g><defs><filter id="a" width="75" height="44" x=".5" y=".5" color-interpolation-filters="sRGB" filterUnits="userSpaceOnUse"><feFlood flood-opacity="0" result="BackgroundImageFix"></feFlood><feColorMatrix in="SourceAlpha" result="hardAlpha" values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0"></feColorMatrix><feOffset></feOffset><feGaussianBlur stdDeviation="2.5"></feGaussianBlur><feColorMatrix values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.16 0"></feColorMatrix><feBlend in2="BackgroundImageFix" result="effect1_dropShadow_618_12297"></feBlend><feBlend in="SourceGraphic" in2="effect1_dropShadow_618_12297" result="shape"></feBlend></filter></defs></svg>');function Yl(t,e){let i=Me(e,["$$slots","$$events","$$legacy","children"]);var o=y_();Ie(o,()=>({xmlns:"http://www.w3.org/2000/svg",width:"76",height:"45",fill:"none","data-testid":"video-360-icon",role:"img",...i}));var n=_(o);be(n,()=>{var r;return(r=e.children)!=null?r:oe}),Ce(2),g(o),b(t,o)}import{isNullable as kh,InterfaceLanguage as Ph}from"@vkontakte/videoplayer-shared/es2018";var x_={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_pip_close:"\u0420\u0430\u0437\u0432\u0435\u0440\u043D\u0443\u0442\u044C \u0432\u0438\u0434\u0435\u043E",menu_copy_video_link:"\u0421\u043A\u043E\u043F\u0438\u0440\u043E\u0432\u0430\u0442\u044C \u0441\u0441\u044B\u043B\u043A\u0443 \u043D\u0430 \u0432\u0438\u0434\u0435\u043E",menu_copy_video_link_with_timestamp:"\u0421\u043A\u043E\u043F\u0438\u0440\u043E\u0432\u0430\u0442\u044C \u0441\u0441\u044B\u043B\u043A\u0443 \u043D\u0430 \u043A\u0430\u0434\u0440",menu_video_rotate:"\u041F\u043E\u0432\u0435\u0440\u043D\u0443\u0442\u044C",menu_video_loop_on:"\u0412\u043A\u043B\u044E\u0447\u0438\u0442\u044C \u043F\u043E\u0432\u0442\u043E\u0440\u0435\u043D\u0438\u0435",menu_video_loop_off:"\u041E\u0442\u043A\u043B\u044E\u0447\u0438\u0442\u044C \u043F\u043E\u0432\u0442\u043E\u0440\u0435\u043D\u0438\u0435",menu_chromecast:"Chromecast \u0442\u0440\u0430\u043D\u0441\u043B\u044F\u0446\u0438\u044F",menu_copy_debug:"\u041A\u043E\u043F\u0438\u0440\u043E\u0432\u0430\u0442\u044C \u0434\u0430\u043D\u043D\u044B\u0435 \u0434\u043B\u044F \u0434\u0438\u0430\u0433\u043D\u043E\u0441\u0442\u0438\u043A\u0438",menu_save_debug:"\u0421\u043E\u0445\u0440\u0430\u043D\u0438\u0442\u044C \u0434\u0430\u043D\u043D\u044B\u0435 \u0434\u043B\u044F \u0434\u0438\u0430\u0433\u043D\u043E\u0441\u0442\u0438\u043A\u0438",menu_debug_overlay:"\u0422\u0435\u0445\u043D\u0438\u0447\u0435\u0441\u043A\u0430\u044F \u0438\u043D\u0444\u043E\u0440\u043C\u0430\u0446\u0438\u044F",menu_copy_embed_code:"\u041A\u043E\u043F\u0438\u0440\u043E\u0432\u0430\u0442\u044C \u043A\u043E\u0434 \u0434\u043B\u044F \u0432\u0441\u0442\u0440\u0430\u0438\u0432\u0430\u043D\u0438\u044F",menu_audio_languages:"\u0417\u0432\u0443\u043A\u043E\u0432\u0430\u044F \u0434\u043E\u0440\u043E\u0436\u043A\u0430",audio_stream_display_language_label:"{label} ({language})",audio_stream_display_language_label_index:"{label} {index} ({language})",audio_stream_display_label_index:"{label} {index}",audio_stream_display_language_index:"{language} {index}",audio_stream_display_unknown:"\u0414\u043E\u0440\u043E\u0436\u043A\u0430 {index}",pip_dummy_title:"\u0412\u0438\u0434\u0435\u043E \u0432\u043E\u0441\u043F\u0440\u043E\u0438\u0437\u0432\u043E\u0434\u0438\u0442\u0441\u044F \u0432 \u0440\u0435\u0436\u0438\u043C\u0435 \u043A\u0430\u0440\u0442\u0438\u043D\u043A\u0430 \u0432 \u043A\u0430\u0440\u0442\u0438\u043D\u043A\u0435",submenu_quality:"\u041A\u0430\u0447\u0435\u0441\u0442\u0432\u043E",submenu_playback_rate:"\u0421\u043A\u043E\u0440\u043E\u0441\u0442\u044C",submenu_settings:"\u041D\u0430\u0441\u0442\u0440\u043E\u0439\u043A\u0438",submenu_traffic_saving:"\u042D\u043A\u043E\u043D\u043E\u043C\u0438\u044F \u0434\u0430\u043D\u043D\u044B\u0445",submenu_audio_languages:"\u0417\u0432\u0443\u043A\u043E\u0432\u0430\u044F \u0434\u043E\u0440\u043E\u0436\u043A\u0430",mobile_unmute:"\u0412\u043A\u043B\u044E\u0447\u0438\u0442\u044C \u0437\u0432\u0443\u043A",playing_ads:"\u0420\u0435\u043A\u043B\u0430\u043C\u0430 {timeleft}",skip_ads_now:"\u041F\u0440\u043E\u043F\u0443\u0441\u0442\u0438\u0442\u044C \u0440\u0435\u043A\u043B\u0430\u043C\u0443",skip_ads_after:"\u041F\u0440\u043E\u043F\u0443\u0441\u0442\u0438\u0442\u044C {time}\u0441",visit_advertiser:"\u041F\u0435\u0440\u0435\u0439\u0442\u0438 \u043D\u0430 \u0441\u0430\u0439\u0442",aria_timeline:"\u041F\u043E\u043B\u0437\u0443\u043D\u043E\u043A \u0432\u0440\u0435\u043C\u0435\u043D\u043D\u043E\u0439 \u0448\u043A\u0430\u043B\u044B",aria_timeline_value:"{position} (\u043E\u0431\u0449\u0430\u044F \u0434\u043B\u0438\u0442\u0435\u043B\u044C\u043D\u043E\u0441\u0442\u044C {duration}",doubletap_seek_step:"{seconds} \u0441\u0435\u043A\u0443\u043D\u0434",playback_rate_1:"\u041E\u0431\u044B\u0447\u043D\u0430\u044F",playback_rate:"{multiplier}x",video360:"\u043F\u0430\u043D\u043E\u0440\u0430\u043C\u043D\u043E\u0435 \u0432\u0438\u0434\u0435\u043E",subtitles_caption:"\u0421\u0443\u0431\u0442\u0438\u0442\u0440\u044B",subtitles_auto:"{language} (\u0410\u0432\u0442\u043E\u043C\u0430\u0442\u0438\u0447\u0435\u0441\u043A\u0438\u0435)",subtitles_off:"\u0412\u044B\u043A\u043B.",subtitles_auto_caption:"\u0410\u0432\u0442\u043E\u043C\u0430\u0442\u0438\u0447\u0435\u0441\u043A\u0438\u0435 \u0441\u0443\u0431\u0442\u0438\u0442\u0440\u044B",subtitles_turn_on:"\u0412\u043A\u043B\u044E\u0447\u0438\u0442\u044C \u0441\u0443\u0431\u0442\u0438\u0442\u0440\u044B",subtitles_turn_off:"\u0412\u044B\u043A\u043B\u044E\u0447\u0438\u0442\u044C \u0441\u0443\u0431\u0442\u0438\u0442\u0440\u044B",traffic_saving_off:"\u041E\u0442\u043A\u043B.",traffic_saving_on:"\u0412\u043A\u043B.",traffic_saving_helper_text:"\u041F\u0440\u0438 \u0432\u043A\u043B\u044E\u0447\u0435\u043D\u0438\u0438 \u043A\u0430\u0447\u0435\u0441\u0442\u0432\u043E \u0432\u0438\u0434\u0435\u043E \u0431\u0443\u0434\u0435\u0442 \u0441\u043D\u0438\u0436\u0435\u043D\u043E \u0434\u043B\u044F \u044D\u043A\u043E\u043D\u043E\u043C\u0438\u0438 \u0442\u0440\u0430\u0444\u0438\u043A\u0430",tooltip_button_disabled:"\u041A\u043D\u043E\u043F\u043A\u0430 \u043D\u0435\u0434\u043E\u0441\u0442\u0443\u043F\u043D\u0430",tooltip_previous:"\u041F\u0440\u0435\u0434\u044B\u0434\u0443\u0449\u0435\u0435 \u0432\u0438\u0434\u0435\u043E",tooltip_restart:"\u041D\u0430\u0447\u0430\u0442\u044C \u0437\u0430\u043D\u043E\u0432\u043E",tooltip_play:"\u0421\u043C\u043E\u0442\u0440\u0435\u0442\u044C",tooltip_pause:"\u041F\u0430\u0443\u0437\u0430",tooltip_next:"\u0421\u043B\u0435\u0434\u0443\u044E\u0449\u0435\u0435 \u0432\u0438\u0434\u0435\u043E",tooltip_interactive_go_back:"\u0412\u0435\u0440\u043D\u0443\u0442\u044C\u0441\u044F \u043A \u043F\u0440\u0435\u0434\u044B\u0434\u0443\u0449\u0435\u0439 \u0433\u043B\u0430\u0432\u0435",tooltip_interactive_go_back_disabled:"\u0418\u0441\u0442\u043E\u0440\u0438\u044F \u043F\u0440\u043E\u0445\u043E\u0436\u0434\u0435\u043D\u0438\u044F \u043D\u0435\u0434\u043E\u0441\u0442\u0443\u043F\u043D\u0430",tooltip_interactive_go_back_disabled_first:"\u0412\u044B \u0441\u043C\u043E\u0442\u0440\u0438\u0442\u0435 \u043F\u0435\u0440\u0432\u0443\u044E \u0433\u043B\u0430\u0432\u0443",tooltip_interactive_go_back_disabled_limit:"\u041B\u0438\u043C\u0438\u0442 \u0432\u043E\u0437\u0432\u0440\u0430\u0442\u043E\u0432 \u0438\u0441\u0447\u0435\u0440\u043F\u0430\u043D",tooltip_chapter_without_interactive:"\u0412 \u044D\u0442\u043E\u0439 \u0433\u043B\u0430\u0432\u0435 \u043D\u0435\u0442 \u0438\u043D\u0442\u0435\u0440\u0430\u043A\u0442\u0438\u0432\u0430",tooltip_interactive_of_chapter_completed:"\u0418\u043D\u0442\u0435\u0440\u0430\u043A\u0442\u0438\u0432\u044B \u044D\u0442\u043E\u0439 \u0433\u043B\u0430\u0432\u044B \u0443\u0436\u0435 \u043F\u0440\u043E\u0439\u0434\u0435\u043D\u044B",tooltip_interactive_seek:"\u041F\u0435\u0440\u0435\u0439\u0442\u0438 \u043A \u0438\u043D\u0442\u0435\u0440\u0430\u043A\u0442\u0438\u0432\u0443",tooltip_interactive_graph_off:"\u041F\u043E\u043A\u0430\u0437\u0430\u0442\u044C \u043A\u0430\u0440\u0442\u0443 \u0441\u044E\u0436\u0435\u0442\u0430",tooltip_interactive_graph_on:"\u0421\u043A\u0440\u044B\u0442\u044C \u043A\u0430\u0440\u0442\u0443 \u0441\u044E\u0436\u0435\u0442\u0430",tooltip_live:"\u041F\u0435\u0440\u0435\u043C\u043E\u0442\u0430\u0442\u044C \u043D\u0430 \u0430\u043A\u0442\u0443\u0430\u043B\u044C\u043D\u044B\u0439 \u043B\u0430\u0439\u0432",tooltip_episodes:"\u042D\u043F\u0438\u0437\u043E\u0434\u044B",tooltip_volume:"\u0412\u043A\u043B\u044E\u0447\u0438\u0442\u044C \u0437\u0432\u0443\u043A",tooltip_volume_muted:"\u0412\u044B\u043A\u043B\u044E\u0447\u0438\u0442\u044C \u0437\u0432\u0443\u043A",tooltip_sound_unavailable:"\u0417\u0432\u0443\u043A \u043D\u0435\u0434\u043E\u0441\u0442\u0443\u043F\u0435\u043D",tooltip_subtitles_off:"\u0412\u043A\u043B\u044E\u0447\u0438\u0442\u044C \u0441\u0443\u0431\u0442\u0438\u0442\u0440\u044B",tooltip_subtitles_on:"\u0412\u044B\u043A\u043B\u044E\u0447\u0438\u0442\u044C \u0441\u0443\u0431\u0442\u0438\u0442\u0440\u044B",tooltip_settings_off:"\u041E\u0442\u043A\u0440\u044B\u0442\u044C \u043D\u0430\u0441\u0442\u0440\u043E\u0439\u043A\u0438",tooltip_settings_on:"\u0417\u0430\u043A\u0440\u044B\u0442\u044C \u043D\u0430\u0441\u0442\u0440\u043E\u0439\u043A\u0438",tooltip_fullscreen_off:"\u041D\u0430 \u0432\u0435\u0441\u044C \u044D\u043A\u0440\u0430\u043D",tooltip_fullscreen_on:"\u0412\u044B\u0439\u0442\u0438 \u0438\u0437 \u043F\u043E\u043B\u043D\u043E\u044D\u043A\u0440\u0430\u043D\u043D\u043E\u0433\u043E \u0440\u0435\u0436\u0438\u043C\u0430",tooltip_chromecast_off:"\u0412\u043A\u043B\u044E\u0447\u0438\u0442\u044C Chromecast",tooltip_chromecast_on:"\u0412\u044B\u043A\u043B\u044E\u0447\u0438\u0442\u044C Chromecast",tooltip_episode_finished:"\u0412\u044B \u0443\u0436\u0435 \u0441\u0434\u0435\u043B\u0430\u043B\u0438 \u0441\u0432\u043E\u0439 \u0432\u044B\u0431\u043E\u0440",tooltip_episode_unfinished:"\u041D\u0435 \u043F\u0440\u043E\u0439\u0434\u0435\u043D\u043E",tooltip_disabled_when_interactive:"\u0418\u043D\u0442\u0435\u0440\u0430\u043A\u0442\u0438\u0432 \u0443\u0436\u0435 \u0438\u0434\u0451\u0442",tooltip_disabled_when_graph_on:"\u041A\u043D\u043E\u043F\u043A\u0430 \u043D\u0435\u0434\u043E\u0441\u0442\u0443\u043F\u043D\u0430 \u0432\u043E \u0432\u0440\u0435\u043C\u044F \u043F\u0440\u043E\u0441\u043C\u043E\u0442\u0440\u0430 \u043A\u0430\u0440\u0442\u044B",tooltip_interactive_interaction_time_indicator:"\u041D\u0430\u0436\u043C\u0438\u0442\u0435 \u043D\u0430 \u044D\u043B\u0435\u043C\u0435\u043D\u0442 \u0438\u043D\u0442\u0435\u0440\u0430\u043A\u0442\u0438\u0432\u0430",tooltip_vk_logo:"\u041E\u0442\u043A\u0440\u044B\u0442\u044C \u0432 VK \u0412\u0438\u0434\u0435\u043E",tooltip_vk_video_logo:"\u041F\u0435\u0440\u0435\u0439\u0442\u0438 \u0432 VK \u0412\u0438\u0434\u0435\u043E",tooltip_autoplay_off:"\u0412\u043A\u043B\u044E\u0447\u0438\u0442\u044C \u0430\u0432\u0442\u043E\u0432\u043E\u0441\u043F\u0440\u043E\u0438\u0437\u0432\u0435\u0434\u0435\u043D\u0438\u0435",tooltip_autoplay_on:"\u041E\u0442\u043A\u043B\u044E\u0447\u0438\u0442\u044C \u0430\u0432\u0442\u043E\u0432\u043E\u0441\u043F\u0440\u043E\u0438\u0437\u0432\u0435\u0434\u0435\u043D\u0438\u0435",tooltip_context_menu_open:"\u041E\u0442\u043A\u0440\u044B\u0442\u044C \u043A\u043E\u043D\u0442\u0435\u043A\u0441\u0442\u043D\u043E\u0435 \u043C\u0435\u043D\u044E",tooltip_context_menu_close:"\u0417\u0430\u043A\u0440\u044B\u0442\u044C \u043A\u043E\u043D\u0442\u0435\u043A\u0441\u0442\u043D\u043E\u0435 \u043C\u0435\u043D\u044E",download_video_caption:"\u0421\u043A\u0430\u0447\u0430\u0442\u044C \u0432\u0438\u0434\u0435\u043E",hotkey_helper_current_volume:"{value} %",hotkey_map_modal_title:"\u0411\u044B\u0441\u0442\u0440\u044B\u0435 \u043A\u043B\u0430\u0432\u0438\u0448\u0438",hotkey_map_modal_close_btn_text:"\u0417\u0430\u043A\u0440\u044B\u0442\u044C",hotkey_map_group_title_common:"\u041E\u0431\u0449\u0438\u0435",hotkey_map_group_title_playback:"\u0412\u043E\u0441\u043F\u0440\u043E\u0438\u0437\u0432\u0435\u0434\u0435\u043D\u0438\u0435",hotkey_map_group_title_subtitles:"\u0421\u0443\u0431\u0442\u0438\u0442\u0440\u044B",hotkey_map_group_title_episodes:"\u042D\u043F\u0438\u0437\u043E\u0434\u044B",hotkey_map_item_mute_description:"\u0412\u043A\u043B\u044E\u0447\u0438\u0442\u044C \u0438\u043B\u0438 \u043E\u0442\u043A\u043B\u044E\u0447\u0438\u0442\u044C \u0437\u0432\u0443\u043A",hotkey_map_item_mute_value:"m",hotkey_map_item_volume_up_description:"\u0423\u0432\u0435\u043B\u0438\u0447\u0438\u0442\u044C \u0433\u0440\u043E\u043C\u043A\u043E\u0441\u0442\u044C",hotkey_map_item_volume_up_value:"\u0421\u0442\u0440\u0435\u043B\u043A\u0430 \u0432\u0432\u0435\u0440\u0445",hotkey_map_item_volume_down_description:"\u0423\u043C\u0435\u043D\u044C\u0448\u0438\u0442\u044C \u0433\u0440\u043E\u043C\u043A\u043E\u0441\u0442\u044C",hotkey_map_item_volume_down_value:"\u0421\u0442\u0440\u0435\u043B\u043A\u0430 \u0432\u043D\u0438\u0437",hotkey_map_item_pip_description:"\u0421\u0432\u0435\u0440\u043D\u0443\u0442\u044C \u0438\u043B\u0438 \u0440\u0430\u0437\u0432\u0435\u0440\u043D\u0443\u0442\u044C \u043C\u0438\u043D\u0438-\u043F\u0440\u043E\u0438\u0433\u0440\u044B\u0432\u0430\u0442\u0435\u043B\u044C",hotkey_map_item_pip_value:"i",hotkey_map_item_full_screen_description:"\u0412\u043A\u043B\u044E\u0447\u0438\u0442\u044C \u0438\u043B\u0438 \u0432\u044B\u043A\u043B\u044E\u0447\u0438\u0442\u044C \u043F\u043E\u043B\u043D\u043E\u044D\u043A\u0440\u0430\u043D\u043D\u044B\u0439 \u0440\u0435\u0436\u0438\u043C",hotkey_map_item_full_screen_value:"f",hotkey_map_item_show_context_menu_description:"\u0421\u043A\u0440\u044B\u0442\u044C \u0438\u043B\u0438 \u043F\u043E\u043A\u0430\u0437\u0430\u0442\u044C \u043A\u043E\u043D\u0442\u0435\u043A\u0441\u0442\u043D\u043E\u0435 \u043C\u0435\u043D\u044E",hotkey_map_item_show_context_menu_value:"Shift + !",hotkey_map_item_show_hotkey_map_description:"\u0421\u043A\u0440\u044B\u0442\u044C \u0438\u043B\u0438 \u043F\u043E\u043A\u0430\u0437\u0430\u0442\u044C \u0441\u043F\u0438\u0441\u043E\u043A \u0433\u043E\u0440\u044F\u0447\u0438\u0445 \u043A\u043B\u0430\u0432\u0438\u0448",hotkey_map_item_show_hotkey_map_value:"Shift + ?",hotkey_map_item_play_toggle_description:"\u041F\u0440\u0438\u043E\u0441\u0442\u0430\u043D\u043E\u0432\u0438\u0442\u044C \u0438\u043B\u0438 \u043F\u0440\u043E\u0434\u043E\u043B\u0436\u0438\u0442\u044C \u0432\u043E\u0441\u043F\u0440\u043E\u0438\u0437\u0432\u0435\u0434\u0435\u043D\u0438\u0435",hotkey_map_item_play_toggle_value:"\u041F\u0440\u043E\u0431\u0435\u043B (\u0438\u043B\u0438 k)",hotkey_map_item_seek_backward_description:"\u041F\u0435\u0440\u0435\u043C\u043E\u0442\u0430\u0442\u044C \u0440\u043E\u043B\u0438\u043A \u043D\u0430 10 \u0441\u0435\u043A\u0443\u043D\u0434 \u043D\u0430\u0437\u0430\u0434",hotkey_map_item_seek_backward_value:"\u0421\u0442\u0440\u0435\u043B\u043A\u0430 \u0432\u043B\u0435\u0432\u043E (\u0438\u043B\u0438 j)",hotkey_map_item_seek_forward_description:"\u041F\u0435\u0440\u0435\u043C\u043E\u0442\u0430\u0442\u044C \u0440\u043E\u043B\u0438\u043A \u043D\u0430 10 \u0441\u0435\u043A\u0443\u043D\u0434 \u0432\u043F\u0435\u0440\u0451\u0434",hotkey_map_item_seek_forward_value:"\u0421\u0442\u0440\u0435\u043B\u043A\u0430 \u0432\u043F\u0440\u0430\u0432\u043E (\u0438\u043B\u0438 l)",hotkey_map_item_fast_seek_backward_description:"\u0423\u0441\u043A\u043E\u0440\u0435\u043D\u043D\u0430\u044F \u043F\u0435\u0440\u0435\u043C\u043E\u0442\u043A\u0430 \u043D\u0430\u0437\u0430\u0434",hotkey_map_item_fast_seek_backward_value:"Shift + \u0421\u0442\u0440\u0435\u043B\u043A\u0430 \u0432\u043B\u0435\u0432\u043E",hotkey_map_item_fast_seek_forward_description:"\u0423\u0441\u043A\u043E\u0440\u0435\u043D\u043D\u0430\u044F \u043F\u0435\u0440\u0435\u043C\u043E\u0442\u043A\u0430 \u0432\u043F\u0435\u0440\u0451\u0434",hotkey_map_item_fast_seek_forward_value:"Shift + \u0421\u0442\u0440\u0435\u043B\u043A\u0430 \u0432\u043F\u0440\u0430\u0432\u043E",hotkey_map_item_rate_down_description:"\u0423\u043C\u0435\u043D\u044C\u0448\u0438\u0442\u044C \u0441\u043A\u043E\u0440\u043E\u0441\u0442\u044C \u0432\u043E\u0441\u043F\u0440\u043E\u0438\u0437\u0432\u0435\u0434\u0435\u043D\u0438\u044F",hotkey_map_item_rate_down_value:"< (Shift + ,)",hotkey_map_item_rate_up_description:"\u0423\u0432\u0435\u043B\u0438\u0447\u0438\u0442\u044C \u0441\u043A\u043E\u0440\u043E\u0441\u0442\u044C \u0432\u043E\u0441\u043F\u0440\u043E\u0438\u0437\u0432\u0435\u0434\u0435\u043D\u0438\u044F",hotkey_map_item_rate_up_value:"> (Shift + .)",hotkey_map_item_prev_frame_description:"\u041F\u0435\u0440\u0435\u0439\u0442\u0438 \u043A \u043F\u0440\u0435\u0434\u044B\u0434\u0443\u0449\u0435\u043C\u0443 \u043A\u0430\u0434\u0440\u0443 <br />(\u043A\u043E\u0433\u0434\u0430 \u0432\u043E\u0441\u043F\u0440\u043E\u0438\u0437\u0432\u0435\u0434\u0435\u043D\u0438\u0435 \u043F\u0440\u0438\u043E\u0441\u0442\u0430\u043D\u043E\u0432\u043B\u0435\u043D\u043E)",hotkey_map_item_prev_frame_value:",",hotkey_map_item_next_frame_description:"\u041F\u0435\u0440\u0435\u0439\u0442\u0438 \u043A \u0441\u043B\u0435\u0434\u0443\u044E\u0449\u0435\u043C\u0443 \u043A\u0430\u0434\u0440\u0443 <br />(\u043A\u043E\u0433\u0434\u0430 \u0432\u043E\u0441\u043F\u0440\u043E\u0438\u0437\u0432\u0435\u0434\u0435\u043D\u0438\u0435 \u043F\u0440\u0438\u043E\u0441\u0442\u0430\u043D\u043E\u0432\u043B\u0435\u043D\u043E)",hotkey_map_item_next_frame_value:".",hotkey_map_item_jump_seek_description:"\u041F\u0435\u0440\u0435\u0439\u0442\u0438 \u043A \u043E\u043F\u0440\u0435\u0434\u0435\u043B\u0451\u043D\u043D\u043E\u043C\u0443 \u043C\u043E\u043C\u0435\u043D\u0442\u0443 \u0432\u0438\u0434\u0435\u043E <br />(\u043D\u0430\u043F\u0440\u0438\u043C\u0435\u0440, \u043F\u0440\u0438 \u043D\u0430\u0436\u0430\u0442\u0438\u0438 \u043D\u0430 \u0446\u0438\u0444\u0440\u0443 \xAB7\xBB \u0440\u043E\u043B\u0438\u043A \u0431\u0443\u0434\u0435\u0442 \u043F\u0435\u0440\u0435\u043C\u043E\u0442\u0430\u043D \u0434\u043E \u0432\u0440\u0435\u043C\u0435\u043D\u043D\u043E\u0439 \u043E\u0442\u043C\u0435\u0442\u043A\u0438, \u043A\u043E\u0442\u043E\u0440\u0430\u044F \u0441\u043E\u043E\u0442\u0432\u0435\u0442\u0441\u0442\u0432\u0443\u0435\u0442 70% \u043E\u0442 \u0434\u043B\u0438\u0442\u0435\u043B\u044C\u043D\u043E\u0441\u0442\u0438 \u0432\u0438\u0434\u0435\u043E)",hotkey_map_item_jump_seek_value:"0, 1, 2, 3, 4, 5, 6, 7, 8, 9",hotkey_map_item_subtitles_toggle_description:"\u0412\u043A\u043B\u044E\u0447\u0438\u0442\u044C \u0438\u043B\u0438 \u043E\u0442\u043A\u043B\u044E\u0447\u0438\u0442\u044C \u0441\u0443\u0431\u0442\u0438\u0442\u0440\u044B",hotkey_map_item_subtitles_toggle_value:"c",hotkey_map_item_prev_episode_description:"\u041F\u0435\u0440\u0435\u0439\u0442\u0438 \u043A \u043F\u0440\u0435\u0434\u044B\u0434\u0443\u0449\u0435\u043C\u0443 \u044D\u043F\u0438\u0437\u043E\u0434\u0443",hotkey_map_item_prev_episode_pc_value:"Ctrl + \u0421\u0442\u0440\u0435\u043B\u043A\u0430 \u0432\u043B\u0435\u0432\u043E",hotkey_map_item_prev_episode_mac_value:"Option + \u0421\u0442\u0440\u0435\u043B\u043A\u0430 \u0432\u043B\u0435\u0432\u043E",hotkey_map_item_next_episode_description:"\u041F\u0435\u0440\u0435\u0439\u0442\u0438 \u043A \u0441\u043B\u0435\u0434\u0443\u044E\u0449\u0435\u043C\u0443 \u044D\u043F\u0438\u0437\u043E\u0434\u0443",hotkey_map_item_next_episode_pc_value:"Ctrl + \u0421\u0442\u0440\u0435\u043B\u043A\u0430 \u0432\u043F\u0440\u0430\u0432\u043E",hotkey_map_item_next_episode_mac_value:"Option + \u0421\u0442\u0440\u0435\u043B\u043A\u0430 \u0432\u043F\u0440\u0430\u0432\u043E",hotkey_map_item_next_video_description:"\u041F\u0435\u0440\u0435\u0439\u0442\u0438 \u043A \u0441\u043B\u0435\u0434\u0443\u044E\u0449\u0435\u043C\u0443 \u0432\u0438\u0434\u0435\u043E",hotkey_map_item_next_video_value:"Shift + N",hotkey_map_item_prev_video_description:"\u041F\u0435\u0440\u0435\u0439\u0442\u0438 \u043A \u043F\u0440\u0435\u0434\u044B\u0434\u0443\u0449\u0435\u043C\u0443 \u0432\u0438\u0434\u0435\u043E",hotkey_map_item_prev_video_value:"Shift + P",waiting_live_day_value:"\u0434\u043D",waiting_live_hour_value:"\u0447",waiting_live_minute_value:"\u043C\u0438\u043D",waiting_live_second_value:"\u0441\u0435\u043A",waiting_live_colon:":",waiting_live_upcoming_title:"\u0422\u0440\u0430\u043D\u0441\u043B\u044F\u0446\u0438\u044F \u0435\u0449\u0435 \u043D\u0435 \u043D\u0430\u0447\u0430\u043B\u0430\u0441\u044C",waiting_live_timer_title:"\u0414\u043E \u043D\u0430\u0447\u0430\u043B\u0430 \u0442\u0440\u0430\u043D\u0441\u043B\u044F\u0446\u0438\u0438 \u043E\u0441\u0442\u0430\u043B\u043E\u0441\u044C",waiting_live_recover_title:"\u0422\u0440\u0430\u043D\u0441\u043B\u044F\u0446\u0438\u044F \u043F\u0440\u0438\u043E\u0441\u0442\u0430\u043D\u043E\u0432\u043B\u0435\u043D\u0430 - \u043E\u043D\u0430 \u043F\u0440\u043E\u0434\u043E\u043B\u0436\u0438\u0442\u0441\u044F, \u043A\u043E\u0433\u0434\u0430 \u0430\u0432\u0442\u043E\u0440 \u0432\u0435\u0440\u043D\u0451\u0442\u0441\u044F",waiting_record_title:"\u0422\u0440\u0430\u043D\u0441\u043B\u044F\u0446\u0438\u044F \u0437\u0430\u0432\u0435\u0440\u0448\u0435\u043D\u0430 - \u0437\u0430\u043F\u0438\u0441\u044C \u043F\u043E\u044F\u0432\u0438\u0442\u0441\u044F \u043F\u043E\u0437\u0436\u0435",aria_label_video_player:"\u0412\u0438\u0434\u0435\u043E \u043F\u043B\u0435\u0435\u0440",aria_label_spherical_control:"\u041A\u043E\u043D\u0442\u0440\u043E\u043B\u043B\u0435\u0440 \u0434\u043B\u044F \u0441\u0444\u0435\u0440\u0438\u0447\u0435\u0441\u043A\u043E\u0433\u043E \u0432\u0438\u0434\u0435\u043E. \u0418\u0441\u043F\u043E\u043B\u044C\u0437\u0443\u0439\u0442\u0435 \u043A\u043B\u0430\u0432\u0438\u0448\u0438 \u0441\u043E \u0441\u0442\u0440\u0435\u043B\u043A\u0430\u043C\u0438 \u0434\u043B\u044F \u043F\u0430\u043D\u043E\u0440\u0430\u043C\u0438\u0440\u043E\u0432\u0430\u043D\u0438\u044F \u0432\u0438\u0434\u0435\u043E.",aria_label_debug_panel:"\u041E\u0431\u043B\u0430\u0441\u0442\u044C \u0441 \u0442\u0435\u0445\u043D\u0438\u0447\u0435\u0441\u043A\u043E\u0439 \u0438\u043D\u0444\u043E\u0440\u043C\u0430\u0446\u0438\u0435\u0439, \u0441\u0434\u0435\u043B\u0430\u0439\u0442\u0435 \u0441\u043A\u0440\u0438\u043D\u0448\u043E\u0442 \u0434\u043B\u044F \u0442\u0435\u0445\u043F\u043E\u0434\u0434\u0435\u0440\u0436\u043A\u0438",aria_label_new_tab_alert:"\u041E\u0442\u043A\u0440\u043E\u0435\u0442\u0441\u044F \u0432 \u043D\u043E\u0432\u043E\u0439 \u0432\u043A\u043B\u0430\u0434\u043A\u0435.",aria_label_menu_quality:"\u041A\u0430\u0447\u0435\u0441\u0442\u0432\u043E: {actual}",aria_label_menu_audio_languages:"\u042F\u0437\u044B\u043A \u0430\u0443\u0434\u0438\u043E: {actual}",aria_label_menu_rate:"\u0421\u043A\u043E\u0440\u043E\u0441\u0442\u044C: {actual}",aria_label_menu_subtitle:"\u0421\u0443\u0431\u0442\u0438\u0442\u0440\u044B: {actual}",aria_label_menu_download:"\u0421\u043A\u0430\u0447\u0430\u0442\u044C \u0432\u0438\u0434\u0435\u043E",aria_label_menu_debug_overlay:"\u041E\u0442\u043E\u0431\u0440\u0430\u0436\u0435\u043D\u0438\u0435 \u0442\u0435\u0445\u043D\u0438\u0447\u0435\u0441\u043A\u043E\u0439 \u0438\u043D\u0444\u043E\u0440\u043C\u0430\u0446\u0438\u0438",aria_label_menu_rotate:"\u041F\u043E\u0432\u0435\u0440\u043D\u0443\u0442\u044C \u0432\u0438\u0434\u0435\u043E \u043D\u0430 90 \u0433\u0440\u0430\u0434\u0443\u0441\u043E\u0432",aria_label_menu_loop:"\u041F\u0435\u0440\u0435\u043A\u043B\u044E\u0447\u0435\u043D\u0438\u0435 \u0440\u0435\u0436\u0438\u043C\u0430 \u043F\u043E\u0432\u0442\u043E\u0440\u0435\u043D\u0438\u044F",aria_label_submenu_back:"\u0412\u0435\u0440\u043D\u0443\u0442\u044C\u0441\u044F \u0432 \u043C\u0435\u043D\u044E \u043D\u0430\u0441\u0442\u0440\u043E\u0435\u043A",aria_label_submenu_traffic_saving:"\u0420\u0435\u0436\u0438\u043C \u044D\u043A\u043E\u043D\u043E\u043C\u0438\u0438 \u0434\u0430\u043D\u043D\u044B\u0445",aria_label_settings:"\u041D\u0430\u0441\u0442\u0440\u043E\u0439\u043A\u0438",aria_label_context_menu:"\u041A\u043E\u043D\u0442\u0435\u043A\u0441\u0442\u043D\u043E\u0435 \u043C\u0435\u043D\u044E",aria_label_autoplay:"\u0410\u0432\u0442\u043E\u0432\u043E\u0441\u043F\u0440\u043E\u0438\u0437\u0432\u0435\u0434\u0435\u043D\u0438\u0435",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,
43
+ `)})}}var Zs=!1,Wa=null,Xs=!1,as=!1;function tp(t){as=t}var Nl=[],Bl=[],Et=null,jn=!1;function Di(t){Et=t}var vt=null;function eo(t){vt=t}var No=null;function fc(t){Et!==null&&Et.f&2097152&&(No===null?No=[Et,[t]]:No[1].push(t))}var un=null,Zn=0,Yn=null;function Dv(t){Yn=t}var ng=1,xc=0,ls=!1,wc=null;function Sl(){return++ng}function Gs(t){var v,u;var e=t.f;if((e&2048)!==0)return!0;if((e&4096)!==0){var i=t.deps,o=(e&256)!==0;if(i!==null){var n,s,l=(e&512)!==0,d=o&&vt!==null&&!ls,a=i.length;if(l||d){var p=t,f=p.parent;for(n=0;n<a;n++)s=i[n],(l||!((v=s==null?void 0:s.reactions)!=null&&v.includes(p)))&&((u=s.reactions)!=null?u:s.reactions=[]).push(p);l&&(p.f^=512),d&&f!==null&&(f.f&256)===0&&(p.f^=256)}for(n=0;n<a;n++)if(s=i[n],Gs(s)&&ep(s),s.wv>t.wv)return!0}(!o||vt!==null&&!ls)&&ln(t,1024)}return!1}function rg(t,e,i=!0){var o=t.reactions;if(o!==null)for(var n=0;n<o.length;n++){var s=o[n];No!=null&&No[1].includes(t)&&No[0]===Et||((s.f&2)!==0?rg(s,e,!1):e===s&&(i?ln(s,2048):(s.f&1024)!==0&&ln(s,4096),El(s)))}}function pc(t){var y,w;var e=un,i=Zn,o=Yn,n=Et,s=ls,l=No,d=Lt,a=jn,p=t.f;un=null,Zn=0,Yn=null,ls=(p&256)!==0&&(jn||!Xs||Et===null),Et=(p&96)===0?t:null,No=null,xl(t.ctx),jn=!1,xc++,t.f|=2097152;try{var f=(0,t.fn)(),v=t.deps;if(un!==null){var u;if(Ll(t,Zn),v!==null&&Zn>0)for(v.length=Zn+un.length,u=0;u<un.length;u++)v[Zn+u]=un[u];else t.deps=v=un;if(!ls||(p&2)!==0&&t.reactions!==null)for(u=Zn;u<v.length;u++)((w=(y=v[u]).reactions)!=null?w:y.reactions=[]).push(t)}else v!==null&&Zn<v.length&&(Ll(t,Zn),v.length=Zn);if(jr()&&Yn!==null&&!jn&&v!==null&&(t.f&6146)===0)for(u=0;u<Yn.length;u++)rg(Yn[u],t);return n!==null&&n!==t&&(xc++,Yn!==null&&(o===null?o=Yn:o.push(...Yn))),f}catch(b){tg(b)}finally{un=e,Zn=i,Yn=o,Et=n,ls=s,No=l,xl(d),jn=a,t.f^=2097152}}function m0(t,e){let i=e.reactions;if(i!==null){var o=_v.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&&(un===null||!un.includes(e))&&(ln(e,4096),(e.f&768)===0&&(e.f^=512),uc(e),Ll(e,0))}function Ll(t,e){var i=t.deps;if(i!==null)for(var o=e;o<i.length;o++)m0(t,i[o])}function Fa(t){var e=t.f;if((e&16384)===0){ln(t,1024);var i=vt,o=Xs;if(vt=t,Xs=!0,Me){var n=Gn;wl(t.component_function)}try{(e&16)!==0?jv(t):rp(t),np(t);var s=pc(t);if(t.teardown=typeof s=="function"?s:null,t.wv=ng,Me&&Yr&&(t.f&2048)!==0&&t.deps!==null)for(var l of t.deps)l.set_during_effect&&(l.wv=Sl(),l.set_during_effect=!1);Me&&Bl.push(t)}finally{Xs=o,vt=i,Me&&wl(n)}}}function ig(){console.error("Last ten effects were: ",Bl.slice(-10).map(t=>t.fn)),Bl=[]}function v0(){try{Ev()}catch(t){if(Me&&Ji(t,"stack",{value:""}),Wa!==null)if(Me)try{Rl(t,Wa)}catch(e){throw ig(),e}else Rl(t,Wa);else throw Me&&ig(),t}}function up(){var t=Xs;try{var e=0;for(Xs=!0;Nl.length>0;){e++>1e3&&v0();var i=Nl,o=i.length;Nl=[];for(var n=0;n<o;n++){var s=h0(i[n]);g0(s)}Da.clear()}}finally{Zs=!1,Xs=t,Wa=null,Me&&(Bl=[])}}function g0(t){var e=t.length;if(e!==0)for(var i=0;i<e;i++){var o=t[i];(o.f&24576)===0&&Gs(o)&&(Fa(o),o.deps===null&&o.first===null&&o.nodes_start===null&&(o.teardown===null?ap(o):o.fn=null))}}function El(t){Zs||(Zs=!0,queueMicrotask(up));for(var e=Wa=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 h0(t){for(var e=[],i=t;i!==null;){var o=i.f,n=(o&96)!==0,s=n&&(o&1024)!==0;if(!s&&(o&8192)===0){(o&4)!==0?e.push(i):n?i.f^=1024:Gs(i)&&Fa(i);var l=i.first;if(l!==null){i=l;continue}}var d=i.parent;for(i=i.next;i===null&&d!==null;)i=d.next,d=d.parent}return e}function Ka(t){var e;for(t&&(Zs=!0,up(),Zs=!0,e=t());;){if(Jv(),Nl.length===0)return Zs=!1,Wa=null,Me&&(Bl=[]),e;Zs=!0,up()}}async function yo(){await Promise.resolve(),Ka()}function r(t){var e=t.f,i=(e&2)!==0;if(wc!==null&&wc.add(t),Et!==null&&!jn){if(!(No!=null&&No[1].includes(t))||No[0]!==Et){var o=Et.deps;t.rv<xc&&(t.rv=xc,un===null&&o!==null&&o[Zn]===t?Zn++:un===null?un=[t]:(!ls||!un.includes(t))&&un.push(t))}}else if(i&&t.deps===null&&t.effects===null){var n=t,s=n.parent;s!==null&&(s.f&256)===0&&(n.f^=256)}if(i&&(n=t,Gs(n)&&ep(n)),Me&&Yr&&!jn&&yl!==null&&Et!==null&&yl.reaction===Et)if(t.trace)t.trace();else{var l=ss("TracedAt");if(l){var d=yl.entries.get(t);d===void 0&&(d={traces:[]},yl.entries.set(t,d));var a=d.traces[d.traces.length-1];l.stack!==(a==null?void 0:a.stack)&&d.traces.push(l)}}return as&&Da.has(t)?Da.get(t):t.v}function Ct(t){var e=jn;try{return jn=!0,t()}finally{jn=e}}var _0=-7169;function ln(t,e){t.f=t.f&_0|e}function Sc(t){if(!(typeof t!="object"||!t||t instanceof EventTarget)){if(Lo in t)Cc(t);else if(!Array.isArray(t))for(let e in t){let i=t[e];typeof i=="object"&&i&&Lo in i&&Cc(i)}}}function Cc(t,e=new Set){if(typeof t=="object"&&t!==null&&!(t instanceof EventTarget)&&!e.has(t)){e.add(t),t instanceof Date&&t.getTime();for(let o in t)try{Cc(t[o],e)}catch(n){}let i=zs(t);if(i!==Object.prototype&&i!==Array.prototype&&i!==Map.prototype&&i!==Set.prototype&&i!==Date.prototype){let o=sc(i);for(let n in o){let s=o[n].get;if(s)try{s.call(t)}catch(l){}}}}}function pp(t,e){if(e){let i=document.body;t.autofocus=!0,cn(()=>{document.activeElement===i&&t.focus()})}}function Ol(t){var e=Et,i=vt;Di(null),eo(null);try{return t()}finally{Di(e),eo(i)}}var fp=new Set,Tc=new Set;function Js(t){if(!Ze)return;t.removeAttribute("onload"),t.removeAttribute("onerror");let e=t.__e;e!==void 0&&(t.__e=void 0,queueMicrotask(()=>{t.isConnected&&t.dispatchEvent(e)}))}function mp(t,e,i,o={}){function n(s){if(o.capture||qa.call(e,s),!s.cancelBubble)return Ol(()=>i==null?void 0:i.call(this,s))}return t.startsWith("pointer")||t.startsWith("touch")||t==="wheel"?cn(()=>{e.addEventListener(t,n,o)}):e.addEventListener(t,n,o),n}function Tt(t,e,i,o,n){var s={capture:o,passive:n},l=mp(t,e,i,s);(e===document.body||e===window||e===document||e instanceof HTMLMediaElement)&&Vo(()=>{e.removeEventListener(t,l,s)})}function lt(t){for(var e=0;e<t.length;e++)fp.add(t[e]);for(var i of Tc)i(t)}function qa(t){var E;var e=this,i=e.ownerDocument,o=t.type,n=((E=t.composedPath)==null?void 0:E.call(t))||[],s=n[0]||t.target,l=0,d=t.__root;if(d){var a=n.indexOf(d);if(a!==-1&&(e===document||e===window)){t.__root=e;return}var p=n.indexOf(e);if(p===-1)return;a<=p&&(l=a)}if(s=n[l]||t.target,s!==e){Ji(t,"currentTarget",{configurable:!0,get(){return s||i}});var f=Et,v=vt;Di(null),eo(null);try{for(var u,y=[];s!==null;){var w=s.assignedSlot||s.parentNode||s.host||null;try{var b=s["__"+o];if(b!=null&&(!s.disabled||t.target===s))if(Kn(b)){var[S,...T]=b;S.apply(s,[t,...T])}else b.call(s,t)}catch(M){u?y.push(M):u=M}if(t.cancelBubble||w===e||w===null)break;s=w}if(u){for(let M of y)queueMicrotask(()=>{throw M});throw u}}finally{t.__root=e,delete t.currentTarget,Di(f),eo(v)}}}var $0;function sg(){$0=void 0}function Ga(t){var e=document.createElement("template");return e.innerHTML=t.replaceAll("<!>","<!---->"),e.content}function xo(t,e){var i=vt;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,s=!t.startsWith("<!>");return()=>{if(Ze)return xo(gt,null),gt;n===void 0&&(n=Ga(s?t:"<!>"+t),i||(n=vi(n)));var l=o||Il?document.importNode(n,!0):n.cloneNode(!0);if(i){var d=vi(l),a=l.lastChild;xo(d,a)}else xo(l,l);return l}}function w0(t,e,i="svg"){var o=!t.startsWith("<!>"),n=(e&1)!==0,s=`<${i}>${o?t:"<!>"+t}</${i}>`,l;return()=>{if(Ze)return xo(gt,null),gt;if(!l){var d=Ga(s),a=vi(d);if(n)for(l=document.createDocumentFragment();vi(a);)l.appendChild(vi(a));else l=vi(a)}var p=l.cloneNode(!0);if(n){var f=vi(p),v=p.lastChild;xo(f,v)}else xo(p,p);return p}}function Te(t,e){return w0(t,e,"svg")}function Xr(t=""){if(!Ze){var e=dn(t+"");return xo(e,e),e}var i=gt;return i.nodeType!==Ma&&(i.before(i=dn()),fi(i)),xo(i,i),i}function Ue(){if(Ze)return xo(gt,null),gt;var t=document.createDocumentFragment(),e=document.createComment(""),i=dn();return t.append(e,i),xo(e,i),t}function $(t,e){if(Ze){vt.nodes_end=gt,Fi();return}t!==null&&t.before(e)}var C0=/\r/g;function lg(t){t=t.replace(C0,"");let e=5381,i=t.length;for(;i--;)e=(e<<5)-e^t.charCodeAt(i);return(e>>>0).toString(36)}function dg(t){return t.endsWith("capture")&&t!=="gotpointercapture"&&t!=="lostpointercapture"}var S0=["beforeinput","click","change","dblclick","contextmenu","focusin","focusout","input","keydown","keyup","mousedown","mousemove","mouseout","mouseover","mouseup","pointerdown","pointermove","pointerout","pointerover","pointerup","touchend","touchmove","touchstart"];function cg(t){return S0.includes(t)}var T0=["allowfullscreen","async","autofocus","autoplay","checked","controls","default","disabled","formnovalidate","hidden","indeterminate","inert","ismap","loop","multiple","muted","nomodule","novalidate","open","playsinline","readonly","required","reversed","seamless","selected","webkitdirectory","defer","disablepictureinpicture","disableremoteplayback"];var E0={formnovalidate:"formNoValidate",ismap:"isMap",nomodule:"noModule",playsinline:"playsInline",readonly:"readOnly",defaultvalue:"defaultValue",defaultchecked:"defaultChecked",srcobject:"srcObject",novalidate:"noValidate",allowfullscreen:"allowFullscreen",disablepictureinpicture:"disablePictureInPicture",disableremoteplayback:"disableRemotePlayback"};function ug(t){var e;return t=t.toLowerCase(),(e=E0[t])!=null?e:t}var O9=[...T0,"formNoValidate","isMap","noModule","playsInline","readOnly","value","volume","defaultValue","defaultChecked","srcObject","noValidate","allowFullscreen","disablePictureInPicture","disableRemotePlayback"];var I0=["touchstart","touchmove"];function pg(t){return I0.includes(t)}var k0=["$state","$state.raw","$derived","$derived.by"],D9=[...k0,"$state.snapshot","$props","$props.id","$bindable","$effect","$effect.pre","$effect.tracking","$effect.root","$inspect","$inspect().with","$inspect.trace","$host"];var P0=["textarea","script","style","title"];function fg(t){return P0.includes(t)}function Ec(t){return t==null?void 0:t.replace(/\//g,"/\u200B")}var Dl=!0;function Ic(t){Dl=t}function _e(t,e){var o;var i=e==null?"":typeof e=="object"?e+"":e;i!==((o=t.__t)!=null?o:t.__t=t.nodeValue)&&(t.__t=i,t.nodeValue=i+"")}function Jr(t,e){return mg(t,e)}function gp(t,e){var l;gc(),e.intro=(l=e.intro)!=null?l:!1;let i=e.target,o=Ze,n=gt;try{for(var s=vi(i);s&&(s.nodeType!==qn||s.data!==Cs);)s=Bo(s);if(!s)throw Gr;to(!0),fi(s),Fi();let d=mg(t,{...e,anchor:s});if(gt===null||gt.nodeType!==qn||gt.data!==Us)throw Is(),Gr;return to(!1),d}catch(d){if(d===Gr)return e.recover===!1&&Iv(),gc(),kl(i),to(!1),Jr(t,e);throw d}finally{to(o),fi(n),sg()}}var Qa=new Map;function mg(t,{target:e,anchor:i,props:o={},events:n,context:s,intro:l=!0}){gc();var d=new Set,a=v=>{for(var u=0;u<v.length;u++){var y=v[u];if(!d.has(y)){d.add(y);var w=pg(y);e.addEventListener(y,qa,{passive:w});var b=Qa.get(y);b===void 0?(document.addEventListener(y,qa,{passive:w}),Qa.set(y,1)):Qa.set(y,b+1)}}};a($l(fp)),Tc.add(a);var p=void 0,f=Yv(()=>{var v=i!=null?i:e.appendChild(dn());return Ai(()=>{if(s){F({});var u=Lt;u.c=s}n&&(o.$$events=n),Ze&&xo(v,null),Dl=l,p=t(v,o)||{},Dl=!0,Ze&&(vt.nodes_end=gt),s&&U()}),()=>{var w;for(var u of d){e.removeEventListener(u,qa);var y=Qa.get(u);--y===0?(document.removeEventListener(u,qa),Qa.delete(u)):Qa.set(u,y)}Tc.delete(a),v!==i&&((w=v.parentNode)==null||w.removeChild(v))}});return vp.set(p,f),p}var vp=new WeakMap;function ea(t,e){let i=vp.get(t);return i?(vp.delete(t),i(e)):(Me&&Uv(),Promise.resolve())}function xe(t,e,...i){var o=t,n=se,s;Ui(()=>{n!==(n=e())&&(s&&(Hi(s),s=null),Me&&n==null&&kv(),s=Ai(()=>n(o,...i)))},65536),Ze&&(o=gt)}if(Me){let t=function(e){if(!(e in globalThis)){let i;Object.defineProperty(globalThis,e,{configurable:!0,get:()=>{if(i!==void 0)return i;Mv(e)},set:o=>{i=o}})}};V0=t,t("$state"),t("$effect"),t("$derived"),t("$inspect"),t("$props"),t("$bindable")}var V0;function Rt(t){Lt===null&&Ra("onMount"),Qr&&Lt.l!==null?L0(Lt).m.push(t):We(()=>{let e=Ct(t);if(typeof e=="function")return e})}function Yo(t){Lt===null&&Ra("onDestroy"),Rt(()=>()=>Ct(t))}function L0(t){var i;var e=t.l;return(i=e.u)!=null?i:e.u={a:[],b:[],m:[]}}var vg=new Map;function gg(t,e){var i=vg.get(t);i||(i=new Set,vg.set(t,i)),i.add(e)}function L(t,e,[i,o]=[0,0]){Ze&&i===0&&Fi();var n=t,s=null,l=null,d=Ki,a=i>0?65536:0,p=!1;let f=(u,y=!0)=>{p=!0,v(y,u)},v=(u,y)=>{if(d===(d=u))return;let w=!1;if(Ze&&o!==-1){if(i===0){let S=vc(n);S===Cs?o=0:S===Ss?o=1/0:(o=parseInt(S.substring(1)),o!==o&&(o=d?1/0:-1))}let b=o>i;!!d===b&&(n=Qs(),fi(n),to(!1),w=!0,o=-1)}d?(s?cs(s):y&&(s=Ai(()=>y(n))),l&&In(l,()=>{l=null})):(l?cs(l):y&&(l=Ai(()=>y(n,[i+1,o]))),s&&In(s,()=>{s=null})),w&&to(!0)};Ui(()=>{p=!1,e(f),p||v(null,null)},a),Ze&&(n=gt)}function ta(t,e,i){Ze&&Fi();var o=t,n=Ki,s,l=jr()?xv:La;Ui(()=>{l(n,n=e())&&(s&&In(s),s=Ai(()=>i(o)))}),Ze&&(o=gt)}var Ps=null;function bp(t){Ps=t}function Hl(t,e){return e}function B0(t,e,i,o){for(var n=[],s=e.length,l=0;l<s;l++)$c(e[l].e,n,!0);var d=s>0&&n.length===0&&i!==null;if(d){var a=i.parentNode;kl(a),a.append(i),o.clear(),ks(t,e[0].prev,e[s-1].next)}lp(n,()=>{for(var p=0;p<s;p++){var f=e[p];d||(o.delete(f.k),ks(t,f.prev,f.next)),Hi(f.e,!d)}})}function $i(t,e,i,o,n,s=null){var l=t,d={flags:e,items:new Map,first:null},a=(e&4)!==0;if(a){var p=t;l=Ze?fi(vi(p)):p.appendChild(dn())}Ze&&Fi();var f=null,v=!1,u=Mr(()=>{var y=i();return Kn(y)?y:y==null?[]:$l(y)});Ui(()=>{var y=r(u),w=y.length;if(v&&w===0)return;v=w===0;let b=!1;if(Ze){var S=vc(l)===Ss;S!==(w===0)&&(l=Qs(),fi(l),to(!1),b=!0)}if(Ze){for(var T=null,E,M=0;M<w;M++){if(gt.nodeType===qn&&gt.data===Us){l=gt,b=!0,to(!1);break}var I=y[M],k=o(I,M);E=bg(gt,d,T,null,I,k,M,n,e,i),d.items.set(k,E),T=E}w>0&&fi(Qs())}Ze||O0(y,d,l,n,e,o,i),s!==null&&(w===0?f?cs(f):f=Ai(()=>s(l)):f!==null&&In(f,()=>{f=null})),b&&to(!0),r(u)}),Ze&&(l=gt)}function O0(t,e,i,o,n,s,l){var ie,ve,Ie,fe;var d=(n&8)!==0,a=(n&3)!==0,p=t.length,f=e.items,v=e.first,u=v,y,w=null,b,S=[],T=[],E,M,I,k;if(d)for(k=0;k<p;k+=1)E=t[k],M=s(E,k),I=f.get(M),I!==void 0&&((ie=I.a)==null||ie.measure(),(b!=null?b:b=new Set).add(I));for(k=0;k<p;k+=1){if(E=t[k],M=s(E,k),I=f.get(M),I===void 0){var R=u?u.e.nodes_start:i;w=bg(R,e,w,w===null?e.first:w.next,E,M,k,o,n,l),f.set(M,w),S=[],T=[],u=w.next;continue}if(a&&D0(I,E,k,n),(I.e.f&8192)!==0&&(cs(I.e),d&&((ve=I.a)==null||ve.unfix(),(b!=null?b:b=new Set).delete(I))),I!==u){if(y!==void 0&&y.has(I)){if(S.length<T.length){var Y=T[0],D;w=Y.prev;var H=S[0],q=S[S.length-1];for(D=0;D<S.length;D+=1)hg(S[D],Y,i);for(D=0;D<T.length;D+=1)y.delete(T[D]);ks(e,H.prev,q.next),ks(e,w,H),ks(e,q,Y),u=Y,w=q,k-=1,S=[],T=[]}else y.delete(I),hg(I,u,i),ks(e,I.prev,I.next),ks(e,I,w===null?e.first:w.next),ks(e,w,I),w=I;continue}for(S=[],T=[];u!==null&&u.k!==M;)(u.e.f&8192)===0&&(y!=null?y:y=new Set).add(u),T.push(u),u=u.next;if(u===null)continue;I=u}S.push(I),w=I,u=I.next}if(u!==null||y!==void 0){for(var J=y===void 0?[]:$l(y);u!==null;)(u.e.f&8192)===0&&J.push(u),u=u.next;var W=J.length;if(W>0){var de=(n&4)!==0&&p===0?i:null;if(d){for(k=0;k<W;k+=1)(Ie=J[k].a)==null||Ie.measure();for(k=0;k<W;k+=1)(fe=J[k].a)==null||fe.fix()}B0(e,J,de,f)}}d&&cn(()=>{var re;if(b!==void 0)for(I of b)(re=I.a)==null||re.apply()}),vt.first=e.first&&e.first.e,vt.last=w&&w.e}function D0(t,e,i,o){(o&1)!==0&&Ha(t.v,e),(o&2)!==0?Ha(t.i,i):t.i=i}function bg(t,e,i,o,n,s,l,d,a,p){var f=Ps,v=(a&1)!==0,u=(a&16)===0,y=v?u?Zr(n,!1,!1):mr(n):n,w=(a&2)===0?l:mr(l);Me&&v&&(y.trace=()=>{var S=typeof w=="number"?l:w.v;p()[S]});var b={i:w,v:y,k:s,a:null,e:null,prev:i,next:o};Ps=b;try{return b.e=Ai(()=>d(t,y,w,p),Ze),b.e.prev=i&&i.e,b.e.next=o&&o.e,i===null?e.first=b:(i.next=b,i.e.next=b.e),o!==null&&(o.prev=b,o.e.prev=b.e),b}finally{Ps=f}}function hg(t,e,i){for(var o=t.next?t.next.e.nodes_start:i,n=e?e.e.nodes_start:i,s=t.e.nodes_start;s!==o;){var l=Bo(s);n.before(s),s=l}}function ks(t,e,i){e===null?t.first=i:(e.next=i,e.e.next=i&&i.e),i!==null&&(i.prev=e,i.e.prev=e&&e.e)}function H0(t,e,i){var s,l;if(!e||e===lg(String(i!=null?i:"")))return;let o,n=(s=t.__svelte_meta)==null?void 0:s.loc;n?o=`near ${n.file}:${n.line}:${n.column}`:(l=Gn)!=null&&l[Cn]&&(o=`in ${Gn[Cn]}`),Fv(Ec(o))}function Fl(t,e,i=!1,o=!1,n=!1){var s=t,l="";O(()=>{var y;var d=vt;if(l===(l=(y=e())!=null?y:"")){Ze&&Fi();return}if(d.nodes_start!==null&&(sp(d.nodes_start,d.nodes_end),d.nodes_start=d.nodes_end=null),l!==""){if(Ze){for(var a=gt.data,p=Fi(),f=p;p!==null&&(p.nodeType!==qn||p.data!=="");)f=p,p=Bo(p);if(p===null)throw Is(),Gr;Me&&!n&&H0(p.parentNode,a,l),xo(gt,f),s=fi(p);return}var v=l+"";i?v=`<svg>${v}</svg>`:o&&(v=`<math>${v}</math>`);var u=Ga(v);if((i||o)&&(u=vi(u)),xo(vi(u),u.lastChild),i||o)for(;vi(u);)s.before(vi(u));else s.before(u)}})}function yi(t,e,i){Ze&&Fi();var o=t,n,s;Ui(()=>{n!==(n=e())&&(s&&(In(s),s=null),n&&(s=Ai(()=>i(o,n))))},65536),Ze&&(o=gt)}function ia(t,e,i,o,n,s){var w;let l=Ze;Ze&&Fi();var d=Me&&s&&((w=Lt)==null?void 0:w.function[Cn]),a,p,f=null;Ze&&gt.nodeType===lc&&(f=gt,Fi());var v=Ze?gt:t,u,y=Ps;Ui(()=>{let b=e()||null;var S=n?n():i||b==="svg"?nc:null;if(b!==a){var T=Ps;bp(y),u&&(b===null?In(u,()=>{u=null,p=null}):b===p?cs(u):(Hi(u),Ic(!1))),b&&b!==p&&(u=Ai(()=>{if(f=Ze?f:S?document.createElementNS(S,b):document.createElement(b),Me&&s&&(f.__svelte_meta={loc:{file:d,line:s[0],column:s[1]}}),xo(f,f),o){Ze&&fg(b)&&f.append(document.createComment(""));var E=Ze?vi(f):f.appendChild(dn());Ze&&(E===null?to(!1):fi(E)),o(f,E)}vt.nodes_end=f,v.before(f)})),a=b,a&&(p=a),Ic(!0),bp(T)}},65536),l&&(to(!0),fi(v))}var yp;function $g(t){return yp=t.target,new $p(t)}var us,vr,$p=class{constructor(e){ws(this,us);ws(this,vr);var s,l;var i=new Map,o=(d,a)=>{var p=Zr(a,!1,!1);return i.set(d,p),p};let n=new Proxy({...e.props||{},$$events:{}},{get(d,a){var p;return r((p=i.get(a))!=null?p:o(a,Reflect.get(d,a)))},has(d,a){var p;return a===Aa?!0:(r((p=i.get(a))!=null?p:o(a,Reflect.get(d,a))),Reflect.has(d,a))},set(d,a,p){var f;return B((f=i.get(a))!=null?f:o(a,p),p),Reflect.set(d,a,p)}});Pa(this,vr,(e.hydrate?gp:Jr)(e.component,{target:e.target,anchor:e.anchor,props:n,context:e.context,intro:(s=e.intro)!=null?s:!1,recover:e.recover})),(!((l=e==null?void 0:e.props)!=null&&l.$$host)||e.sync===!1)&&Ka(),Pa(this,us,n.$$events);for(let d of Object.keys(Pi(this,vr)))d==="$set"||d==="$destroy"||d==="$on"||Ji(this,d,{get(){return Pi(this,vr)[d]},set(a){Pi(this,vr)[d]=a},enumerable:!0});Pi(this,vr).$set=d=>{Object.assign(n,d)},Pi(this,vr).$destroy=()=>{ea(Pi(this,vr))}}$set(e){Pi(this,vr).$set(e)}$on(e,i){Pi(this,us)[e]=Pi(this,us)[e]||[];let o=(...n)=>i.call(this,...n);return Pi(this,us)[e].push(o),()=>{Pi(this,us)[e]=Pi(this,us)[e].filter(n=>n!==o)}}$destroy(){Pi(this,vr).$destroy()}};us=new WeakMap,vr=new WeakMap;function K(t,e){cn(()=>{var n,s,l;var i=t.getRootNode(),o=i.host?i:(l=(n=i.head)!=null?n:i.ownerDocument.head)!=null?l:(s=yp)==null?void 0:s.parentNode;if(!(o!=null&&o.querySelector("#"+e.hash))){let d=document.createElement("style");d.id=e.hash,d.textContent=e.code,o.appendChild(d),Me&&gg(e.hash,d)}})}function xp(t,e){var i=void 0,o;Ui(()=>{i!==(i=e())&&(o&&(Hi(o),o=null),i&&(o=Ai(()=>{$o(()=>i(t))})))})}function yg(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=yg(t[e]))&&(o&&(o+=" "),o+=i)}else for(i in t)t[i]&&(o&&(o+=" "),o+=i);return o}function xg(){for(var t,e,i=0,o="",n=arguments.length;i<n;i++)(t=arguments[i])&&(e=yg(t))&&(o&&(o+=" "),o+=e);return o}function Ul(t){return typeof t=="object"?xg(t):t!=null?t:""}var wg=[...`
44
+ \r\f\xA0\v\uFEFF`];function Sg(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 s=n.length,l=0;(l=o.indexOf(n,l))>=0;){var d=l+s;(l===0||wg.includes(o[l-1]))&&(d===o.length||wg.includes(o[d]))?o=(l===0?"":o.substring(0,l))+o.substring(d+1):l=d}}return o===""?null:o}function Cg(t,e=!1){var i=e?" !important;":";",o="";for(var n in t){var s=t[n];s!=null&&s!==""&&(o+=" "+n+": "+s+i)}return o}function wp(t){return t[0]!=="-"||t[1]!=="-"?t.toLowerCase():t}function Tg(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 s=!1,l=0,d=!1,a=[];o&&a.push(...Object.keys(o).map(wp)),n&&a.push(...Object.keys(n).map(wp));var p=0,f=-1;let b=t.length;for(var v=0;v<b;v++){var u=t[v];if(d?u==="/"&&t[v-1]==="*"&&(d=!1):s?s===u&&(s=!1):u==="/"&&t[v+1]==="*"?d=!0:u==='"'||u==="'"?s=u:u==="("?l++:u===")"&&l--,!d&&s===!1&&l===0){if(u===":"&&f===-1)f=v;else if(u===";"||v===b-1){if(f!==-1){var y=wp(t.substring(p,f).trim());if(!a.includes(y)){u!==";"&&v++;var w=t.substring(p,v).trim();i+=" "+w+";"}}p=v+1,f=-1}}}}return o&&(i+=Cg(o)),n&&(i+=Cg(n,!0)),i=i.trim(),i===""?null:i}return t==null?null:String(t)}function X(t,e,i,o,n,s){var l=t.__className;if(Ze||l!==i||l===void 0){var d=Sg(i,o,s);(!Ze||d!==t.getAttribute("class"))&&(d==null?t.removeAttribute("class"):e?t.className=d:t.setAttribute("class",d)),t.__className=i}else if(s&&n!==s)for(var a in s){var p=!!s[a];(n==null||p!==!!n[a])&&t.classList.toggle(a,p)}return s}function Cp(t,e={},i,o){for(var n in i){var s=i[n];e[n]!==s&&(i[n]==null?t.style.removeProperty(n):t.style.setProperty(n,s,o))}}function nt(t,e,i,o){var n=t.__style;if(Ze||n!==e){var s=Tg(e,o);(!Ze||s!==t.getAttribute("style"))&&(s==null?t.removeAttribute("style"):t.style.cssText=s),t.__style=e}else o&&(Array.isArray(o)?(Cp(t,i==null?void 0:i[0],o[0]),Cp(t,i==null?void 0:i[1],o[1],"important")):Cp(t,i,o));return o}function zl(t,e,i){if(t.multiple){if(e==null)return;if(!Kn(e))return zv();for(var o of t.options)o.selected=e.includes(Eg(o));return}for(o of t.options){var n=Eg(o);if(Yu(n,e)){o.selected=!0;return}}(!i||e!==void 0)&&(t.selectedIndex=-1)}function Sp(t){var e=new MutationObserver(()=>{zl(t,t.__value)});e.observe(t,{childList:!0,subtree:!0,attributes:!0,attributeFilter:["value"]}),Vo(()=>{e.disconnect()})}function Eg(t){return"__value"in t?t.__value:t.value}var Ya=Symbol("class"),ja=Symbol("style"),Pg=Symbol("is custom element"),Ag=Symbol("is html");function Mg(t,e){e?t.hasAttribute("selected")||t.setAttribute("selected",""):t.removeAttribute("selected")}function Be(t,e,i,o){var n=Vg(t);if(Ze&&(n[e]=t.getAttribute(e),e==="src"||e==="srcset"||e==="href"&&t.nodeName==="LINK")){o||Q0(t,e,i!=null?i:"");return}n[e]!==(n[e]=i)&&(e==="loading"&&(t[yv]=i),i==null?t.removeAttribute(e):typeof i!="string"&&Rg(t).includes(e)?t[e]=i:t.setAttribute(e,i))}function Lg(t,e,i,o,n=!1){var I;var s=Vg(t),l=s[Pg],d=!s[Ag];let a=Ze&&l;a&&to(!1);var p=e||{},f=t.tagName==="OPTION";for(var v in e)v in i||(i[v]=null);i.class?i.class=Ul(i.class):(o||i[Ya])&&(i.class=null),i[ja]&&((I=i.style)!=null||(i.style=null));var u=Rg(t);for(let k in i){let R=i[k];if(f&&k==="value"&&R==null){t.value=t.__value="",p[k]=R;continue}if(k==="class"){var y=t.namespaceURI==="http://www.w3.org/1999/xhtml";X(t,y,R,o,e==null?void 0:e[Ya],i[Ya]),p[k]=R,p[Ya]=i[Ya];continue}if(k==="style"){nt(t,R,e==null?void 0:e[ja],i[ja]),p[k]=R,p[ja]=i[ja];continue}var w=p[k];if(!(R===w&&!(R===void 0&&t.hasAttribute(k)))){p[k]=R;var b=k[0]+k[1];if(b!=="$$")if(b==="on"){let Y={},D="$$"+k,H=k.slice(2);var S=cg(H);if(dg(H)&&(H=H.slice(0,-7),Y.capture=!0),!S&&w){if(R!=null)continue;t.removeEventListener(H,p[D],Y),p[D]=null}if(R!=null)if(S)t[`__${H}`]=R,lt([H]);else{let q=function(J){p[k].call(this,J)};var M=q;p[D]=mp(H,t,q,Y)}else S&&(t[`__${H}`]=void 0)}else if(k==="style")Be(t,k,R);else if(k==="autofocus")pp(t,!!R);else if(!l&&(k==="__value"||k==="value"&&R!=null))t.value=t.__value=R;else if(k==="selected"&&f)Mg(t,R);else{var T=k;d||(T=ug(T));var E=T==="defaultValue"||T==="defaultChecked";if(R==null&&!l&&!E)if(s[k]=null,T==="value"||T==="checked"){let Y=t,D=e===void 0;if(T==="value"){let H=Y.defaultValue;Y.removeAttribute(T),Y.defaultValue=H,Y.value=Y.__value=D?H:null}else{let H=Y.defaultChecked;Y.removeAttribute(T),Y.defaultChecked=H,Y.checked=D?H:!1}}else t.removeAttribute(k);else E||u.includes(T)&&(l||typeof R!="string")?t[T]=R:typeof R!="function"&&Be(t,T,R,n)}}}return a&&to(!0),p}function Pe(t,e,i=[],o,n=!1,s=Ar){let l=i.map(s);var d=void 0,a={},p=t.nodeName==="SELECT",f=!1;if(Ui(()=>{var u=e(...l.map(r)),y=Lg(t,d,u,o,n);f&&p&&"value"in u&&zl(t,u.value,!1);for(let b of Object.getOwnPropertySymbols(a))u[b]||Hi(a[b]);for(let b of Object.getOwnPropertySymbols(u)){var w=u[b];b.description===Fu&&(!d||w!==d[b])&&(a[b]&&Hi(a[b]),a[b]=Ai(()=>xp(t,()=>w))),y[b]=w}d=y}),p){var v=t;$o(()=>{zl(v,d.value),Sp(v)})}f=!0}function Vg(t){var e;return(e=t.__attributes)!=null?e:t.__attributes={[Pg]:t.nodeName.includes("-"),[Ag]:t.namespaceURI===mv}}var Ig=new Map;function Rg(t){var e=Ig.get(t.nodeName);if(e)return e;Ig.set(t.nodeName,e=[]);for(var i,o=t,n=Element.prototype;n!==o;){i=sc(o);for(var s in i)i[s].set&&e.push(s);o=zs(o)}return e}function Q0(t,e,i){var o;Me&&(e==="srcset"&&Y0(t,i)||Tp((o=t.getAttribute(e))!=null?o:"",i)||Hv(e,t.outerHTML.replace(t.innerHTML,t.innerHTML&&"..."),String(i)))}function Tp(t,e){return t===e?!0:new URL(t,document.baseURI).href===new URL(e,document.baseURI).href}function kg(t){return t.split(",").map(e=>e.trim().split(" ").filter(Boolean))}function Y0(t,e){var i=kg(t.srcset),o=kg(e);return o.length===i.length&&o.every(([n,s],l)=>s===i[l][1]&&(Tp(i[l][0],n)||Tp(n,i[l][0])))}var j0=rc?()=>performance.now():()=>Date.now(),Rr={tick:t=>(rc?requestAnimationFrame:se)(t),now:()=>j0(),tasks:new Set};function Ng(){let t=Rr.now();Rr.tasks.forEach(e=>{e.c(t)||(Rr.tasks.delete(e),e.f())}),Rr.tasks.size!==0&&Rr.tick(Ng)}function Bg(t){let e;return Rr.tasks.size===0&&Rr.tick(Ng),{promise:new Promise(i=>{Rr.tasks.add(e={c:t,f:i})}),abort(){Rr.tasks.delete(e)}}}function kc(t,e){Ol(()=>{t.dispatchEvent(new CustomEvent(e))})}function e_(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 Og(t){let e={},i=t.split(";");for(let o of i){let[n,s]=o.split(":");if(!n||s===void 0)break;let l=e_(n.trim());e[l]=s.trim()}return e}var t_=t=>t;function Ip(t,e,i,o){var M;var n=(t&1)!==0,s=(t&2)!==0,l=n&&s,d=(t&4)!==0,a=l?"both":n?"in":"out",p,f=e.inert,v=e.style.overflow,u,y;function w(){var R;var I=Et,k=vt;Di(null),eo(null);try{return p!=null?p:p=i()(e,(R=o==null?void 0:o())!=null?R:{},{direction:a})}finally{Di(I),eo(k)}}var b={is_global:d,in(){var I;if(e.inert=f,!n){y==null||y.abort(),(I=y==null?void 0:y.reset)==null||I.call(y);return}s||u==null||u.abort(),kc(e,"introstart"),u=Ep(e,w(),y,1,()=>{kc(e,"introend"),u==null||u.abort(),u=p=void 0,e.style.overflow=v})},out(I){if(!s){I==null||I(),p=void 0;return}e.inert=!0,kc(e,"outrostart"),y=Ep(e,w(),u,0,()=>{kc(e,"outroend"),I==null||I()})},stop:()=>{u==null||u.abort(),y==null||y.abort()}},S=vt;if(((M=S.transitions)!=null?M:S.transitions=[]).push(b),n&&Dl){var T=d;if(!T){for(var E=S.parent;E&&(E.f&65536)!==0;)for(;(E=E.parent)&&(E.f&16)===0;);T=!E||(E.f&32768)!==0}T&&$o(()=>{Ct(()=>b.in())})}}function Ep(t,e,i,o,n){var s=o===1;if(Ts(e)){var l,d=!1;return cn(()=>{if(!d){var S=e({direction:s?"in":"out"});l=Ep(t,S,i,o,n)}}),{abort:()=>{d=!0,l==null||l.abort()},deactivate:()=>l.deactivate(),reset:()=>l.reset(),t:()=>l.t()}}if(i==null||i.deactivate(),!(e!=null&&e.duration))return n(),{abort:se,deactivate:se,reset:se,t:()=>o};let{delay:a=0,css:p,tick:f,easing:v=t_}=e;var u=[];if(s&&i===void 0&&(f&&f(0,1),p)){var y=Og(p(0,1));u.push(y,y)}var w=()=>1-o,b=t.animate(u,{duration:a,fill:"forwards"});return b.onfinish=()=>{var H;b.cancel();var S=(H=i==null?void 0:i.t())!=null?H:1-o;i==null||i.abort();var T=o-S,E=e.duration*Math.abs(T),M=[];if(E>0){var I=!1;if(p)for(var k=Math.ceil(E/16.666666666666668),R=0;R<=k;R+=1){var Y=S+T*v(R/k),D=Og(p(Y,1-Y));M.push(D),I||(I=D.overflow==="hidden")}I&&(t.style.overflow="hidden"),w=()=>{var q=b.currentTime;return S+T*v(q/E)},f&&Bg(()=>{if(b.playState!=="running")return!1;var q=w();return f(q,1-q),!0})}b=t.animate(M,{duration:E,fill:"forwards"}),b.onfinish=()=>{w=()=>o,f==null||f(o,1-o),n()}},{abort:()=>{b&&(b.cancel(),b.effect=null,b.onfinish=se)},deactivate:()=>{n=se},reset:()=>{o===0&&(f==null||f(1,0))},t:()=>w()}}var As,Za,Wl,Ac,Dg,Mc=class Mc{constructor(e){ws(this,Ac);ws(this,As,new WeakMap);ws(this,Za);ws(this,Wl);Pa(this,Wl,e)}observe(e,i){var o=Pi(this,As).get(e)||new Set;return o.add(i),Pi(this,As).set(e,o),pv(this,Ac,Dg).call(this).observe(e,Pi(this,Wl)),()=>{var n=Pi(this,As).get(e);n.delete(i),n.size===0&&(Pi(this,As).delete(e),Pi(this,Za).unobserve(e))}}};As=new WeakMap,Za=new WeakMap,Wl=new WeakMap,Ac=new WeakSet,Dg=function(){var e;return(e=Pi(this,Za))!=null?e:Pa(this,Za,new ResizeObserver(i=>{for(var o of i){Mc.entries.set(o.target,o);for(var n of Pi(this,As).get(o.target)||[])n(o)}}))},Wn(Mc,"entries",new WeakMap);var kp=Mc;var i_=new kp({box:"border-box"});function Xn(t,e,i){var o=i_.observe(t,()=>i(t[e]));$o(()=>(Ct(()=>i(t[e])),o))}function Hg(t,e){return t===e||(t==null?void 0:t[Lo])===e}function ot(t={},e,i,o){return $o(()=>{var n,s;return Oo(()=>{n=s,s=(o==null?void 0:o())||[],Ct(()=>{t!==i(...s)&&(e(t,...s),n&&Hg(i(...n),t)&&e(null,...n))})}),()=>{cn(()=>{s&&Hg(i(...s),t)&&e(null,...s)})}}),t}function Nr(t=!1){let e=Lt,i=e.l.u;if(!i)return;let o=()=>Sc(e.s);if(t){let n=0,s={},l=Ar(()=>{let d=!1,a=e.s;for(let p in a)a[p]!==s[p]&&(s[p]=a[p],d=!0);return d&&n++,n});o=()=>r(l)}i.b.length&&Ml(()=>{Fg(e,o),Es(i.b)}),We(()=>{let n=Ct(()=>i.m.map($v));return()=>{for(let s of n)typeof s=="function"&&s()}}),i.a.length&&We(()=>{Fg(e,o),Es(i.a)})}function Fg(t,e){if(t.l.s)for(let i of t.l.s)r(i);e()}function Kl(t,e,i){if(t==null)return e(void 0),i&&i(void 0),se;let o=Ct(()=>t.subscribe(e,i));return o.unsubscribe?()=>o.unsubscribe():o}var Xa=[];function gr(t,e){return{subscribe:ae(t,e).subscribe}}function ae(t,e=se){let i=null,o=new Set;function n(d){if(La(t,d)&&(t=d,i)){let a=!Xa.length;for(let p of o)p[1](),Xa.push(p,t);if(a){for(let p=0;p<Xa.length;p+=2)Xa[p][0](Xa[p+1]);Xa.length=0}}}function s(d){n(d(t))}function l(d,a=se){let p=[d,a];return o.add(p),o.size===1&&(i=e(n,s)||se),d(t),()=>{o.delete(p),o.size===0&&i&&(i(),i=null)}}return{set:n,update:s,subscribe:l}}function gi(t,e,i){let o=!Array.isArray(t),n=o?[t]:t;if(!n.every(Boolean))throw new Error("derived() expects stores as input, got a falsy value");let s=e.length<2;return gr(i,(l,d)=>{let a=!1,p=[],f=0,v=se,u=()=>{if(f)return;v();let w=e(o?p[0]:p,l,d);s?l(w):v=typeof w=="function"?w:se},y=n.map((w,b)=>Kl(w,S=>{p[b]=S,f&=~(1<<b),a&&u()},()=>{f|=1<<b}));return a=!0,u(),function(){Es(y),v(),a=!1}})}function $e(t){let e;return Kl(t,i=>e=i)(),e}var Lc=!1,Pp=Symbol();function C(t,e,i){var s;let o=(s=i[e])!=null?s:i[e]={store:null,source:Zr(void 0),unsubscribe:se};if(o.store!==t&&!(Pp in i))if(o.unsubscribe(),o.store=t!=null?t:null,t==null)o.source.v=void 0,o.unsubscribe=se;else{var n=!0;o.unsubscribe=Kl(t,l=>{n?o.source.v=l:B(o.source,l)}),n=!1}return t&&Pp in i?$e(t):r(o.source)}function He(){let t={};function e(){Vo(()=>{for(var i in t)t[i].unsubscribe();Ji(t,Pp,{enumerable:!1,value:!0})})}return[t,e]}function Ap(t){var e=Lc;try{return Lc=!1,[t(),Lc]}finally{Lc=e}}var d_={get(t,e){if(!t.exclude.includes(e))return t.props[e]},set(t,e){return Me&&Av(`${t.name}.${String(e)}`),!1},getOwnPropertyDescriptor(t,e){if(!t.exclude.includes(e)&&e in t.props)return{enumerable:!0,configurable:!0,value:t.props[e]}},has(t,e){return t.exclude.includes(e)?!1:e in t.props},ownKeys(t){return Reflect.ownKeys(t.props).filter(e=>!t.exclude.includes(e))}};function Ve(t,e,i){return new Proxy(Me?{props:t,exclude:e,name:i,other:{},to_proxy:[]}:{props:t,exclude:e},d_)}var c_={get(t,e){let i=t.props.length;for(;i--;){let o=t.props[i];if(Ts(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];Ts(n)&&(n=n());let s=qo(n,e);if(s&&s.set)return s.set(i),!0}return!1},getOwnPropertyDescriptor(t,e){let i=t.props.length;for(;i--;){let o=t.props[i];if(Ts(o)&&(o=o()),typeof o=="object"&&o!==null&&e in o){let n=qo(o,e);return n&&!n.configurable&&(n.configurable=!0),n}}},has(t,e){if(e===Lo||e===Aa)return!1;for(let i of t.props)if(Ts(i)&&(i=i()),i!=null&&e in i)return!0;return!1},ownKeys(t){let e=[];for(let i of t.props)if(Ts(i)&&(i=i()),!!i){for(let o in i)e.includes(o)||e.push(o);for(let o of Object.getOwnPropertySymbols(i))e.includes(o)||e.push(o)}return e}};function ps(...t){return new Proxy({props:t},c_)}function Ug(t){var e,i;return(i=(e=t.ctx)==null?void 0:e.d)!=null?i:!1}function m(t,e,i,o){var Y,D;var n=(i&1)!==0,s=!Qr||(i&2)!==0,l=(i&8)!==0,d=(i&16)!==0,a=!1,p;l?[p,a]=Ap(()=>t[e]):p=t[e];var f=Lo in t||Aa in t,v=l&&((D=(Y=qo(t,e))==null?void 0:Y.set)!=null?D:f&&e in t&&(H=>t[e]=H))||void 0,u=o,y=!0,w=!1,b=()=>(w=!0,y&&(y=!1,d?u=Ct(o):u=o),u);p===void 0&&o!==void 0&&(v&&s&&Pv(e),p=b(),v&&v(p));var S;if(s)S=()=>{var H=t[e];return H===void 0?b():(y=!0,w=!1,H)};else{var T=(n?Ar:Mr)(()=>t[e]);T.f|=131072,S=()=>{var H=r(T);return H!==void 0&&(u=void 0),H===void 0?u:H}}if((i&4)===0&&s)return S;if(v){var E=t.$$legacy;return function(H,q){return arguments.length>0?((!s||!q||E||a)&&v(q?S():H),H):S()}}var M=!1,I=!1,k=Zr(p),R=Ar(()=>{var H=S(),q=r(k);return M?(M=!1,I=!0,q):(I=!1,k.v=H)});return l&&r(R),n||(R.equals=Va),function(H,q){if(wc!==null&&(M=I,S(),r(k)),arguments.length>0){let J=q?r(R):s&&l?si(H):H;if(!R.equals(J)){if(M=!0,B(k,J),w&&u!==void 0&&(u=J),Ug(R))return H;Ct(()=>r(R))}return H}return Ug(R)?R.v:r(R)}}var u_;typeof HTMLElement=="function"&&(u_=class extends HTMLElement{constructor(e,i,o){super();Wn(this,"$$ctor");Wn(this,"$$s");Wn(this,"$$c");Wn(this,"$$cn",!1);Wn(this,"$$d",{});Wn(this,"$$r",!1);Wn(this,"$$p_d",{});Wn(this,"$$l",{});Wn(this,"$$l_u",new Map);Wn(this,"$$me");this.$$ctor=e,this.$$s=i,o&&this.attachShadow({mode:"open"})}addEventListener(e,i,o){if(this.$$l[e]=this.$$l[e]||[],this.$$l[e].push(i),this.$$c){let n=this.$$c.$on(e,i);this.$$l_u.set(i,n)}super.addEventListener(e,i,o)}removeEventListener(e,i,o){if(super.removeEventListener(e,i,o),this.$$c){let n=this.$$l_u.get(i);n&&(n(),this.$$l_u.delete(i))}}async connectedCallback(){if(this.$$cn=!0,!this.$$c){let i=function(s){return l=>{let d=document.createElement("slot");s!=="default"&&(d.name=s),$(l,d)}};var e=i;if(await Promise.resolve(),!this.$$cn||this.$$c)return;let o={},n=p_(this);for(let s of this.$$s)s in n&&(s==="default"&&!this.$$d.children?(this.$$d.children=i(s),o.default=!0):o[s]=i(s));for(let s of this.attributes){let l=this.$$g_p(s.name);l in this.$$d||(this.$$d[l]=Mp(l,s.value,this.$$p_d,"toProp"))}for(let s in this.$$p_d)!(s in this.$$d)&&this[s]!==void 0&&(this.$$d[s]=this[s],delete this[s]);this.$$c=$g({component:this.$$ctor,target:this.shadowRoot||this,props:{...this.$$d,$$slots:o,$$host:this}}),this.$$me=bc(()=>{Oo(()=>{var s;this.$$r=!0;for(let l of Uu(this.$$c)){if(!((s=this.$$p_d[l])!=null&&s.reflect))continue;this.$$d[l]=this.$$c[l];let d=Mp(l,this.$$d[l],this.$$p_d,"toAttribute");d==null?this.removeAttribute(this.$$p_d[l].attribute||l):this.setAttribute(this.$$p_d[l].attribute||l,d)}this.$$r=!1})});for(let s in this.$$l)for(let l of this.$$l[s]){let d=this.$$c.$on(s,l);this.$$l_u.set(l,d)}this.$$l={}}}attributeChangedCallback(e,i,o){var n;this.$$r||(e=this.$$g_p(e),this.$$d[e]=Mp(e,o,this.$$p_d,"toProp"),(n=this.$$c)==null||n.$set({[e]:this.$$d[e]}))}disconnectedCallback(){this.$$cn=!1,Promise.resolve().then(()=>{!this.$$cn&&this.$$c&&(this.$$c.$destroy(),this.$$me(),this.$$c=void 0)})}$$g_p(e){return Uu(this.$$p_d).find(i=>this.$$p_d[i].attribute===e||!this.$$p_d[i].attribute&&i.toLowerCase()===e)||e}});function Mp(t,e,i,o){var s;let n=(s=i[t])==null?void 0:s.type;if(e=n==="Boolean"&&typeof e!="boolean"?e!=null:e,!o||!i[t])return e;if(o==="toAttribute")switch(n){case"Object":case"Array":return e==null?null:JSON.stringify(e);case"Boolean":return e?"":null;case"Number":return e==null?null:e;default:return e}else switch(n){case"Object":case"Array":return e&&JSON.parse(e);case"Boolean":return e;case"Number":return e!=null?+e:e;default:return e}}function p_(t){let e={};return t.childNodes.forEach(i=>{e[i.slot||"default"]=!0}),e}var zg="5";var Wg,Kg,qg;typeof window!="undefined"&&((qg=(Kg=(Wg=window.__svelte)!=null?Wg:window.__svelte={}).v)!=null?qg:Kg.v=new Set).add(zg);import{areValidLiveRecordSources as e5,clientChecker as jm}from"@vkontakte/videoplayer-core/es2018";import"@vkontakte/videoplayer-core/es2018";import{noop as q1,safeStorage as t5,throttleFn as i5}from"@vkontakte/videoplayer-shared/es2018";import{SeekAction as o5}from"@vkontakte/videoplayer-statistics/es2018";import{InterfaceLanguage as f_,fillWithDefault as m_,VideoQuality as Gg}from"@vkontakte/videoplayer-shared/es2018";var v_={isMobile:void 0,debugLog:!1,devNullLog:!1,defaultLanguage:f_.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:Gg.Q_480P,highQualityLimit:Gg.Q_720P,episodeMinWidthPc:8,hideThumbTimerAfterTouch:!0,preventPauseOnVideoClick:!1,sentry:{dsn:"https://e349fd23c68f405388980d0868d0ff27@sentry.mvk.com/126",sampleRate:.01,whiteErrorCategoryList:[],blackErrorCategoryList:[],whiteErrorIdList:[],blackErrorIdList:[]},features:{autoplay:!0,statistics:!0,thinStatistics:!1,sentry:!0,preload:!0,subtitles:!0,episodes:!0,fullscreen:!0,timelinePreview:!0,mediaSession:!0,annotations:!0,slots:!0,annotationsInside:!1,pip:!0,dpip:!0,download:!0,liveRewind:!0,playbackRate:!0,trafficSaving:!0,episodesClustering:!0,copyVideoLink:!0,videoRotate:!0,tracer:!1,interactiveGraph:!1,interactiveResponsiveUi:!1,seekToInteractive:!0,interactiveLastFrame:!1,interactiveTextPermanent:!0,interactiveHideTime:!0,interactivePlayPrevChapter:!0,interactiveTimeIndicator:!0,interactiveTimeOpenUri:!1,interactiveAreaControlShadow:!1,interactiveControlsExpectTimeBlinkAnimation:!1,interactiveControlsTapPlace:!1,interactiveControlsFillAnimation:!1,interactiveControlsHideAnimation:!1,interactiveHistoryEndChapterFix:!0,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,initSubtitles:!0,useCallbackForMediaSessionNextPrevClick:!1},controls:{showOnStartupAtAutoplay:!0,hideTimeout:500,hideTimeoutMobile:3e3,hideTimeoutInitial:200,hideTimeoutFullscreen:3e3,hideTimeoutCursor:3e3,hideTimeoutTooltips:1e3,collapseMobileUnmute:6e3,hide360IconTimeout:3e3,hideHotKeyHelpers:2e3,playbackRateMin:.25,playbackRateMax:2,playbackRateStep:.25,volumeStepKeyboard:.05,volumeStepWheel:.05,volumeBarTimeout:300,seekStepKeyboard:1e4,seekStepMobile:15e3,seekStepFrame:400},ads:{enable:void 0,initTimeout:2e3,loadTimeout:2e3,runtimeTimeout:5e3,slot:void 0,preview:void 0,isMobileGoToSiteButton:!0,useAdmanFromNPM:!1,volumeMultiplier:1,isVsidOriginal:!1},interactive:{historyMaxLength:100,noInteractionEventTimeout:3e4},view:{timelineSliderColor:null,timelineSliderHandleColor:null,timelineSliderFilledColor:null,timelineSliderLoadedColor:null,volumeSliderColor:null,volumeSliderHandleColor:null,volumeSliderFilledColor:null,controlsTimeColor:null,timelineSliderFilledActiveLiveColor:null,timelineSliderHandleActiveLiveColor:null,buttonColor:null,buttonToggleOnColor:null,focusedColor:null,font:null,focusedOutlineWidth:null,focusedOutlineRadius:null,controlsDesktopPaddingHorizontal:null,timelinePaddingHorizontal:null,settingsBackgroundColor:null,controlsGradientHeight:null,controlsGradient:null}},Qg=t=>m_(t,v_),Yg=t=>Ba("ui-config",t),Ft=()=>Na("ui-config");var ql="vk_player_debug_panel_opened";var jg="videoplayer",Zg="videoplayer";var es={KeyF:"f",KeyK:"k",KeyC:"c",KeyM:"m"},Xg=new Set(["ArrowLeft","ArrowRight","KeyL","KeyJ"]),Jg=new Set(["Tab","Space","ArrowLeft","ArrowRight","ArrowUp","ArrowDown"]),eh=new Set(["ShiftRight","ShiftLeft"]);var th=["TIMELINE"],Gl=[...th,"GRAPH_BUTTON"],Lp=[...th,"PLAY_BUTTON"],Ql=[...Gl,"PLAY_BUTTON"];var ts=(s=>(s.XS="xs",s.S="s",s.M="m",s.L="l",s.XL="xl",s))(ts||{}),na={xs:0,s:1,m:2,l:3,xl:4};import{assertNonNullable as ih,VERSION as g_}from"@vkontakte/videoplayer-shared/es2018";import{VERSION as h_}from"@vkontakte/videoplayer-core/es2018";import{VERSION as __}from"@vkontakte/videoplayer-statistics/es2018";var Vc="prod",Ja="1.1.68-dev.26d8ec66.0";var ra=(t,e,i)=>{let o=document.createElement("a");o.href=t,o.download=`${e}.${i}`,o.style.display="none",o.click()};var oh=Symbol("storeContext"),nh=Symbol("microStoresContext"),rh=(t,e)=>{Ba(oh,t),Ba(nh,e),Vc==="dev"&&(window.app={store:t,microStores:e})},Ee=()=>{let t=Na(oh);return ih(t,"Store context is empty!"),t},uo=()=>{let t=Na(nh);return ih(t,"MicroStores context is empty!"),t},ei=(t,e)=>Nc(t,t.getValue(),e),Nc=(t,e,i)=>gr(e,o=>{let n=t.subscribe(s=>{o(s),i==null||i(s)});return()=>n.unsubscribe()}),sh=(t,e,i,o)=>{var R,Y,D,H,q,J,W,de;let n=t.info,{width:s,height:l}=$e(i.ui.playerSize),d=(Y=(R=n.throughputEstimation$.getValue())==null?void 0:R.toFixed(0))!=null?Y:0,a=(H=(D=n.rttEstimation$.getValue())==null?void 0:D.toFixed(0))!=null?H:0,p=n.isAutoQualityEnabled$.getValue()?"auto":"manual",f=`${Ja} (core: ${h_}, stat: ${__}, shared: ${g_})`,v=$e(i.state.errorLog$),u=v.length?`
45
+ `+v.map((ie,ve)=>{var ke;let Ie=`${ve}) Type: ${ie.id}
46
+ `,fe=`Message: ${ie.message} (${ie.thrown})
47
+ `,re=`Trace: ${(ke=ie.thrown)==null?void 0:ke.stack}
48
+ `;return Ie+fe+re}).join(`
49
+ `):void 0,y=i.state.isAudioDisabled?"disabled":$e(i.state.isAudioAvailable$)?void 0:"unavailable",w=t.info.currentVideoStream$.getValue(),b=t.info.currentAudioStream$.getValue(),S=[];w&&S.push(`Video: ${(q=w==null?void 0:w.codec)!=null?q:""}`+(w!=null&&w.hdr?" (HDR)":"")),b&&S.push(`Audio: ${(J=b==null?void 0:b.codec)!=null?J:""}`+(b!=null&&b.language?` (${b.language})`:""));let T=n.currentQuality$.getValue(),E="";if(T){let ie=n.availableQualitiesFps$.getValue()[T];E=ie?`${ie}fps`:""}let M=(de=(W=n.currentBuffer$.getValue())==null?void 0:W.end)!=null?de:0,I=Math.max(M-$e(i.state.positionExact$),0),k={Version:f,Browser:navigator.userAgent,Config:t.experimental.tuningConfigName$.getValue().join(", "),"United video id":String(i.videoId),TraceId:o,VSID:$e(i.vsid),"Content host":n.hostname$.getValue(),"Connection type":n.httpConnectionType$.getValue()+(n.httpConnectionReused$.getValue()?" (reused)":""),Throughput:`${d}Kbps @ ${a}ms RTT`,Format:n.currentFormat$.getValue(),"Available Formats":Object.keys(e.sources).join(", "),Streams:S.join(", "),Quality:`${p} ${T} ${E}`,"Available qualities":n.availableQualities$.getValue().join(", "),Audio:y,Position:`${$e(i.state.positionExact$)}s`,Buffer:`${I}s`,State:`${$e(i.playerPhase)} ${n.playbackState$.getValue()}`,"Player size":`${s}x${l}`,URL:window.location.href,Errors:u};return Object.entries(k).filter(([ie,ve])=>ve!==void 0).map(([ie,ve])=>`${ie}: ${ve}`).join(`
50
+ `)},ah=(t,e,i)=>{var Y,D,H,q;let o=t.info,{width:n,height:s}=$e(i.ui.playerSize),l={version:Ja,viewport:`${n}x${s}`,volume:Math.round($e(i.state.volume$)*100)};l.id=i.videoId,o.currentFormat$.getValue()&&(l.provider=o.currentFormat$.getValue()),o.hostname$.getValue()&&(l.cdn=o.hostname$.getValue());let p=o.intrinsicVideoSize$.getValue();p&&(l.videoSize=`${p.width}x${p.height}`);let f=o.currentBuffer$.getValue(),v=o.isLive$.getValue(),u=o.liveBufferTime$.getValue();f&&(v&&u?l.buffer=f.end-u:l.buffer=Math.max(f.end-$e(i.state.positionExact$),0)),l.position=$e(i.state.positionExact$);let y=o.throughputEstimation$.getValue();y&&(l.speed=y);let w=o.videoBitrate$.getValue();w&&(l.bitrate=w);let b=o.liveLatency$.getValue();b&&(l.liveLatency=b);let S=o.currentVideoSegmentLength$.getValue();S&&(l.currentVideoSegmentLength=S);let T=o.currentAudioSegmentLength$.getValue();T&&(l.currentAudioSegmentLength=T);let E=$e(i.vsid);typeof E=="string"&&(l.vsid=E);let M=(Y=t.info.currentVideoStream$.getValue())==null?void 0:Y.codec;M&&(l.videoCodec=M);let I=(D=t.info.currentAudioStream$.getValue())==null?void 0:D.codec;I&&(l.audioCodec=I),((H=t.info.currentVideoStream$.getValue())==null?void 0:H.hdr)&&(l.hdr=!0);let R=(q=t.info.currentAudioStream$.getValue())==null?void 0:q.language;return R&&(l.audioLanguage=R),l},lh=(t,e)=>ra(t,e,"mp4"),dh=t=>!t.type,ch=t=>!!t.type,uh=()=>{let e=[],i=0;return{add:(o,n)=>{e[i]=[o,n],i=(i+1)%10},find:o=>e.find(([n])=>n===o)}},Rc=class{constructor(){this.destroyController=new AbortController;this.pendingDownloads=new Set}async download(e){if(this.pendingDownloads.has(e))return null;this.pendingDownloads.add(e);try{let i=await fetch(e,{signal:this.destroyController.signal});if(i.ok)return await i.text();throw i}finally{this.pendingDownloads.delete(e)}}destroy(){this.destroyController.abort(),this.pendingDownloads.clear()}isDestroyed(){return this.destroyController.signal.aborted}};import{isNullable as Bp,safeStorage as qi}from"@vkontakte/videoplayer-shared/es2018";import"@vkontakte/videoplayer-core/es2018";var ph="vk_player_prefer_traffic_saving_enabled",fh="vk_player_preferred_volume",mh="vk_player_prefer_volume_mute",Op="vk_player_preferred_quality",Vp="vk_player_preferred_default_quality_settings",Rp="vk_player_preferred_quality_settings_by_video",vh="vk_player_preferred_stream_language",gh="vk_player_preferred_rate",hh="vk_player_preferred_autoplay_next",Np="vk_player_preferred_subtitles_language",_h=t=>t>1?1:t<0?0:t,Dp=t=>qi.set(fh,_h(t).toString(10)),Bc=()=>{let t=qi.get(fh);return Bp(t)?void 0:_h(parseFloat(t))},Hp=(t,e)=>qi.set(Op,JSON.stringify({videoId:t,value:e})),jl=()=>qi.remove(Op),Fp=t=>{let e=qi.get(Op);if(Bp(e))return;let{videoId:i,value:o}=JSON.parse(e);if(t!==i){jl();return}return o},Up=(t,e)=>{e?qi.set(t,"true"):qi.remove(t)},zp=t=>qi.get(t)==="true",Wp=t=>Up(mh,t),bh=()=>zp(mh),Yl=t=>Up(ph,t),Kp=()=>zp(ph),$h=()=>qi.get(vh),qp=t=>qi.set(vh,t),Gp=()=>qi.get(Np),Qp=t=>{t?qi.set(Np,t):qi.remove(Np)},yh=t=>qi.set(gh,JSON.stringify({rate:t})),xh=()=>{let t=qi.get(gh);if(Bp(t))return;let{rate:e}=JSON.parse(t);return e},wh=t=>Up(hh,t),Ch=()=>zp(hh),b_=()=>{let t=f=>{qi.set(Vp,JSON.stringify(f))},e=()=>{try{let f=qi.get(Vp);return f?JSON.parse(f):null}catch(f){return null}},i=()=>{try{let f=qi.get(Rp);return f?JSON.parse(f):null}catch(f){return null}},o=f=>{qi.set(Rp,JSON.stringify(f))},n=f=>{p(f);let v=f?i():null;if(v&&(v==null?void 0:v.videoId)===f)return{...v,appliesTo:"to-video"};v&&s();let u=e();return u?{...u,appliesTo:"as-default"}:(t({type:"auto_quality"}),{type:"auto_quality",appliesTo:"as-default"})},s=()=>{qi.remove(Rp)},l=()=>{qi.remove(Vp)},d=(f,v="as-default")=>{f.type==="exact_quality"?o(f):v==="as-default"?t(f):o(f)},a=f=>{let v=n(f);if(v){switch(v.type){case"traffic_saving":Yl(!0);break;case"exact_quality":Hp(f,v.quality)}s(),l()}},p=f=>{let v=Fp(f);if(v){o({type:"exact_quality",videoId:f,quality:v});return}Kp()&&t({type:"traffic_saving",videoId:f}),Yl(!1),jl()};return{getPreferredQualitySettings:n,migrateSettingsToLegacyWay:a,savePreferredQualitySettings:d,savePreferredDefaultQualitySettings:t,removePreferredQualitySettingsByVideo:s,getPreferredDefaultQualitySettings:e,getPreferredSubtitlesLanguage:Gp,savePreferredSubtitlesLanguage:Qp}},{getPreferredQualitySettings:Sh,migrateSettingsToLegacyWay:Th,savePreferredQualitySettings:Oc,savePreferredDefaultQualitySettings:cM,removePreferredQualitySettingsByVideo:uM,getPreferredDefaultQualitySettings:Dc}=b_();import{PlaybackState as z1}from"@vkontakte/videoplayer-core/es2018";var $_=Te('<svg><!><g filter="url(#a)"><path fill="var(--btn-color, #fff)" fill-rule="evenodd" d="M67 9.489A3.49 3.49 0 0 1 63.511 13 3.493 3.493 0 0 1 60 9.489 3.49 3.49 0 0 1 63.511 6 3.484 3.484 0 0 1 67 9.489m-5.003 0c0 .834.68 1.514 1.514 1.514.812 0 1.492-.68 1.492-1.514 0-.812-.68-1.492-1.492-1.492-.834 0-1.514.68-1.514 1.492" clip-rule="evenodd"></path><path fill="var(--btn-color, #fff)" d="M26.86 15.183c1.372-.492 2.534-1.711 2.534-3.61C29.394 8.922 27.185 7 24.07 7c-1.965 0-3.573.784-4.67 2.29l-.108.149a1.333 1.333 0 0 0 .268 1.855c.536.402 1.295.343 1.736-.162.09-.102.164-.19.205-.247.594-.81 1.431-1.306 2.5-1.306 1.534 0 2.604.915 2.604 2.251 0 1.36-1.093 2.275-2.651 2.275h-.583a1.231 1.231 0 0 0 0 2.462h.583c1.744 0 2.907.985 2.907 2.392 0 1.453-1.186 2.462-2.884 2.462-1.296 0-2.201-.552-2.883-1.603a10 10 0 0 0-.2-.287 1.403 1.403 0 0 0-2.052-.246c-.494.42-.65 1.13-.305 1.68.072.116.146.227.218.322C20.132 23.137 21.678 24 23.999 24c3.28 0 5.628-2.04 5.628-4.924 0-2.204-1.395-3.4-2.767-3.893"></path><path fill="var(--btn-color, #fff)" fill-rule="evenodd" d="M37.732 12.675c-.465 0-1 .046-1.511.164l2.584-3.74a1.338 1.338 0 1 0-2.203-1.518l-3.753 5.469c-1.418 2.133-1.837 3.822-1.837 5.276 0 3.47 2.558 5.674 6.186 5.674 3.604 0 6.162-2.392 6.162-5.768 0-3.236-2.349-5.557-5.628-5.557m-.534 8.746c-1.977 0-3.326-1.267-3.326-3.142 0-1.853 1.349-3.142 3.326-3.142 1.953 0 3.302 1.29 3.302 3.142 0 1.875-1.35 3.142-3.302 3.142M58 15.512c0 5.041-2.697 8.441-6.627 8.441s-6.628-3.4-6.628-8.441 2.698-8.442 6.628-8.442S58 10.47 58 15.512m-10.348 0c0 3.564 1.488 5.862 3.72 5.862s3.721-2.298 3.721-5.862-1.488-5.862-3.72-5.862-3.72 2.298-3.72 5.862Z" clip-rule="evenodd"></path><path fill="var(--btn-color, #fff)" d="M67 23.5c0-1.318-1.201-3.094-4.199-4.673a1.5 1.5 0 1 1 1.398-2.654C67.452 17.886 70 20.433 70 23.5c0 3.126-2.556 5.554-6.088 7.27-3.633 1.766-8.825 3.062-15.259 3.722a1.5 1.5 0 0 1-.306-2.984c6.248-.641 11.057-1.882 14.253-3.436C65.897 26.47 67 24.8 67 23.5M38.879 35H38c-9.64 0-17.447-1.133-22.9-3.018-2.72-.941-4.94-2.099-6.506-3.468C7.019 27.138 6 25.445 6 23.5c0-1.64.785-3.073 1.908-4.255 1.119-1.179 2.66-2.205 4.42-3.086a1.5 1.5 0 1 1 1.343 2.682c-1.584.793-2.794 1.634-3.588 2.47C9.293 22.143 9 22.873 9 23.5c0 .807.407 1.74 1.568 2.755 1.17 1.022 2.996 2.02 5.513 2.892C21.106 30.885 28.55 32 38 32h.879l-1.44-1.44a1.5 1.5 0 0 1 2.122-2.12l3.999 3.998.01.011a1.5 1.5 0 0 1 .317 1.624 1.5 1.5 0 0 1-.326.488l-4 4a1.5 1.5 0 0 1-2.122-2.122L38.88 35Z"></path><path stroke="#000" stroke-linecap="round" stroke-linejoin="round" stroke-opacity=".12" stroke-width=".5" d="m7.908 19.245-.181-.173c1.146-1.206 2.714-2.248 4.49-3.137a1.75 1.75 0 1 1 1.566 3.13c-1.57.786-2.752 1.61-3.519 2.418-.762.802-1.014 1.474-1.014 2.017 0 .713.357 1.583 1.483 2.567 1.136.993 2.93 1.978 5.43 2.843 4.99 1.726 12.403 2.84 21.837 2.84h.275l-1.012-1.013a1.75 1.75 0 1 1 2.474-2.474l4 3.998h0l.012.013s0 0 0 0c.162.165.284.354.368.556q0 0 0 0l-.23.096A1.5 1.5 0 0 1 44 33.5q-.002.306-.113.573L7.907 19.245Zm0 0-.181-.173C6.576 20.284 5.75 21.775 5.75 23.5c0 2.04 1.07 3.796 2.68 5.202 1.599 1.398 3.85 2.569 6.589 3.516C20.506 34.116 28.343 35.25 38 35.25h.275zm29.824-6.82c-.3 0-.63.018-.965.063l2.244-3.247c.728-1.054-.026-2.491-1.306-2.491-.524 0-1.014.258-1.31.69l-3.752 5.468h0l-.002.003c-1.442 2.17-1.879 3.905-1.879 5.415 0 1.8.665 3.288 1.815 4.324 1.147 1.033 2.757 1.6 4.62 1.6 3.727 0 6.413-2.488 6.413-6.018 0-3.377-2.464-5.807-5.878-5.807m25.779.825c2.07 0 3.739-1.67 3.739-3.761 0-2.07-1.67-3.739-3.739-3.739a3.74 3.74 0 0 0-3.761 3.739 3.743 3.743 0 0 0 3.761 3.761m0-2.497a1.267 1.267 0 0 1-1.264-1.264c0-.671.566-1.242 1.264-1.242.674 0 1.242.568 1.242 1.242 0 .698-.57 1.264-1.242 1.264m-33.634 8.323c0-2.043-1.139-3.272-2.388-3.895 1.208-.629 2.155-1.846 2.155-3.609 0-2.82-2.357-4.822-5.575-4.822-2.04 0-3.724.818-4.871 2.392l-.109.149a1.583 1.583 0 0 0 .32 2.203c.635.476 1.542.411 2.074-.197.09-.103.17-.198.219-.264.553-.755 1.318-1.204 2.297-1.204.72 0 1.309.214 1.715.564.403.347.64.84.64 1.437 0 .608-.242 1.107-.653 1.457-.415.353-1.017.568-1.748.568h-.583a1.481 1.481 0 0 0 0 2.962h.583c.826 0 1.493.233 1.948.61.451.375.709.902.709 1.532 0 .654-.265 1.2-.718 1.586-.455.388-1.116.626-1.916.626-.61 0-1.117-.13-1.548-.375s-.801-.614-1.125-1.114a11 11 0 0 0-.206-.296 1.653 1.653 0 0 0-2.417-.292c-.577.49-.774 1.335-.356 2.004.075.119.152.236.23.339.704.945 1.462 1.652 2.352 2.121.892.47 1.9.692 3.094.692 3.383 0 5.877-2.121 5.877-5.174m7.32 2.095c-.934 0-1.7-.299-2.232-.8-.53-.5-.843-1.217-.843-2.092 0-.863.313-1.581.844-2.085s1.298-.807 2.232-.807c.92 0 1.682.303 2.21.807.529.503.842 1.222.842 2.085 0 .875-.314 1.593-.84 2.093-.53.5-1.29.799-2.212.799Zm14.176 3.032c2.044 0 3.772-.887 4.983-2.425 1.208-1.534 1.894-3.703 1.894-6.266s-.686-4.732-1.894-6.266c-1.211-1.539-2.94-2.426-4.983-2.426-2.044 0-3.773.887-4.984 2.426-1.208 1.534-1.894 3.703-1.894 6.266s.686 4.732 1.894 6.266c1.211 1.538 2.94 2.425 4.984 2.425m0-3.08c-1.017 0-1.874-.518-2.487-1.478-.618-.968-.984-2.382-.984-4.133 0-1.752.366-3.166.984-4.133.613-.96 1.47-1.48 2.487-1.48s1.873.52 2.486 1.48c.618.967.984 2.381.984 4.133 0 1.751-.366 3.165-.984 4.133-.613.96-1.47 1.479-2.486 1.479Zm11.312-2.075c2.975 1.567 4.065 3.279 4.065 4.452 0 1.148-.983 2.756-4.259 4.347-3.16 1.536-7.937 2.773-14.17 3.412a1.75 1.75 0 0 0 .358 3.482c6.45-.662 11.673-1.963 15.342-3.746 3.551-1.725 6.229-4.216 6.229-7.495 0-3.213-2.661-5.825-5.935-7.548a1.75 1.75 0 1 0-1.63 3.096"></path></g><defs><filter id="a" width="75" height="44" x=".5" y=".5" color-interpolation-filters="sRGB" filterUnits="userSpaceOnUse"><feFlood flood-opacity="0" result="BackgroundImageFix"></feFlood><feColorMatrix in="SourceAlpha" result="hardAlpha" values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0"></feColorMatrix><feOffset></feOffset><feGaussianBlur stdDeviation="2.5"></feGaussianBlur><feColorMatrix values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.16 0"></feColorMatrix><feBlend in2="BackgroundImageFix" result="effect1_dropShadow_618_12297"></feBlend><feBlend in="SourceGraphic" in2="effect1_dropShadow_618_12297" result="shape"></feBlend></filter></defs></svg>');function Zl(t,e){let i=Ve(e,["$$slots","$$events","$$legacy","children"]);var o=$_();Pe(o,()=>({xmlns:"http://www.w3.org/2000/svg",width:"76",height:"45",fill:"none","data-testid":"video-360-icon",role:"img",...i}));var n=_(o);xe(n,()=>{var s;return(s=e.children)!=null?s:se}),Se(2),h(o),$(t,o)}import{isNullable as kh,InterfaceLanguage as Ph}from"@vkontakte/videoplayer-shared/es2018";var y_={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_pip_close:"\u0420\u0430\u0437\u0432\u0435\u0440\u043D\u0443\u0442\u044C \u0432\u0438\u0434\u0435\u043E",menu_copy_video_link:"\u0421\u043A\u043E\u043F\u0438\u0440\u043E\u0432\u0430\u0442\u044C \u0441\u0441\u044B\u043B\u043A\u0443 \u043D\u0430 \u0432\u0438\u0434\u0435\u043E",menu_copy_video_link_with_timestamp:"\u0421\u043A\u043E\u043F\u0438\u0440\u043E\u0432\u0430\u0442\u044C \u0441\u0441\u044B\u043B\u043A\u0443 \u043D\u0430 \u043A\u0430\u0434\u0440",menu_video_rotate:"\u041F\u043E\u0432\u0435\u0440\u043D\u0443\u0442\u044C",menu_video_loop_on:"\u0412\u043A\u043B\u044E\u0447\u0438\u0442\u044C \u043F\u043E\u0432\u0442\u043E\u0440\u0435\u043D\u0438\u0435",menu_video_loop_off:"\u041E\u0442\u043A\u043B\u044E\u0447\u0438\u0442\u044C \u043F\u043E\u0432\u0442\u043E\u0440\u0435\u043D\u0438\u0435",menu_chromecast:"Chromecast \u0442\u0440\u0430\u043D\u0441\u043B\u044F\u0446\u0438\u044F",menu_copy_debug:"\u041A\u043E\u043F\u0438\u0440\u043E\u0432\u0430\u0442\u044C \u0434\u0430\u043D\u043D\u044B\u0435 \u0434\u043B\u044F \u0434\u0438\u0430\u0433\u043D\u043E\u0441\u0442\u0438\u043A\u0438",menu_save_debug:"\u0421\u043E\u0445\u0440\u0430\u043D\u0438\u0442\u044C \u0434\u0430\u043D\u043D\u044B\u0435 \u0434\u043B\u044F \u0434\u0438\u0430\u0433\u043D\u043E\u0441\u0442\u0438\u043A\u0438",menu_debug_overlay:"\u0422\u0435\u0445\u043D\u0438\u0447\u0435\u0441\u043A\u0430\u044F \u0438\u043D\u0444\u043E\u0440\u043C\u0430\u0446\u0438\u044F",menu_copy_embed_code:"\u041A\u043E\u043F\u0438\u0440\u043E\u0432\u0430\u0442\u044C \u043A\u043E\u0434 \u0434\u043B\u044F \u0432\u0441\u0442\u0440\u0430\u0438\u0432\u0430\u043D\u0438\u044F",menu_audio_languages:"\u0417\u0432\u0443\u043A\u043E\u0432\u0430\u044F \u0434\u043E\u0440\u043E\u0436\u043A\u0430",audio_stream_display_language_label:"{label} ({language})",audio_stream_display_language_label_index:"{label} {index} ({language})",audio_stream_display_label_index:"{label} {index}",audio_stream_display_language_index:"{language} {index}",audio_stream_display_unknown:"\u0414\u043E\u0440\u043E\u0436\u043A\u0430 {index}",pip_dummy_title:"\u0412\u0438\u0434\u0435\u043E \u0432\u043E\u0441\u043F\u0440\u043E\u0438\u0437\u0432\u043E\u0434\u0438\u0442\u0441\u044F \u0432 \u0440\u0435\u0436\u0438\u043C\u0435 \u043A\u0430\u0440\u0442\u0438\u043D\u043A\u0430 \u0432 \u043A\u0430\u0440\u0442\u0438\u043D\u043A\u0435",submenu_quality:"\u041A\u0430\u0447\u0435\u0441\u0442\u0432\u043E",submenu_playback_rate:"\u0421\u043A\u043E\u0440\u043E\u0441\u0442\u044C",submenu_settings:"\u041D\u0430\u0441\u0442\u0440\u043E\u0439\u043A\u0438",submenu_traffic_saving:"\u042D\u043A\u043E\u043D\u043E\u043C\u0438\u044F \u0434\u0430\u043D\u043D\u044B\u0445",submenu_audio_languages:"\u0417\u0432\u0443\u043A\u043E\u0432\u0430\u044F \u0434\u043E\u0440\u043E\u0436\u043A\u0430",mobile_unmute:"\u0412\u043A\u043B\u044E\u0447\u0438\u0442\u044C \u0437\u0432\u0443\u043A",playing_ads:"\u0420\u0435\u043A\u043B\u0430\u043C\u0430 {timeleft}",skip_ads_now:"\u041F\u0440\u043E\u043F\u0443\u0441\u0442\u0438\u0442\u044C \u0440\u0435\u043A\u043B\u0430\u043C\u0443",skip_ads_after:"\u041F\u0440\u043E\u043F\u0443\u0441\u0442\u0438\u0442\u044C {time}\u0441",visit_advertiser:"\u041F\u0435\u0440\u0435\u0439\u0442\u0438 \u043D\u0430 \u0441\u0430\u0439\u0442",aria_timeline:"\u041F\u043E\u043B\u0437\u0443\u043D\u043E\u043A \u0432\u0440\u0435\u043C\u0435\u043D\u043D\u043E\u0439 \u0448\u043A\u0430\u043B\u044B",aria_timeline_value:"{position} (\u043E\u0431\u0449\u0430\u044F \u0434\u043B\u0438\u0442\u0435\u043B\u044C\u043D\u043E\u0441\u0442\u044C {duration}",doubletap_seek_step:"{seconds} \u0441\u0435\u043A\u0443\u043D\u0434",playback_rate_1:"\u041E\u0431\u044B\u0447\u043D\u0430\u044F",playback_rate:"{multiplier}x",video360:"\u043F\u0430\u043D\u043E\u0440\u0430\u043C\u043D\u043E\u0435 \u0432\u0438\u0434\u0435\u043E",subtitles_caption:"\u0421\u0443\u0431\u0442\u0438\u0442\u0440\u044B",subtitles_auto:"{language} (\u0410\u0432\u0442\u043E\u043C\u0430\u0442\u0438\u0447\u0435\u0441\u043A\u0438\u0435)",subtitles_off:"\u0412\u044B\u043A\u043B.",subtitles_auto_caption:"\u0410\u0432\u0442\u043E\u043C\u0430\u0442\u0438\u0447\u0435\u0441\u043A\u0438\u0435 \u0441\u0443\u0431\u0442\u0438\u0442\u0440\u044B",subtitles_turn_on:"\u0412\u043A\u043B\u044E\u0447\u0438\u0442\u044C \u0441\u0443\u0431\u0442\u0438\u0442\u0440\u044B",subtitles_turn_off:"\u0412\u044B\u043A\u043B\u044E\u0447\u0438\u0442\u044C \u0441\u0443\u0431\u0442\u0438\u0442\u0440\u044B",traffic_saving_off:"\u041E\u0442\u043A\u043B.",traffic_saving_on:"\u0412\u043A\u043B.",traffic_saving_helper_text:"\u041F\u0440\u0438 \u0432\u043A\u043B\u044E\u0447\u0435\u043D\u0438\u0438 \u043A\u0430\u0447\u0435\u0441\u0442\u0432\u043E \u0432\u0438\u0434\u0435\u043E \u0431\u0443\u0434\u0435\u0442 \u0441\u043D\u0438\u0436\u0435\u043D\u043E \u0434\u043B\u044F \u044D\u043A\u043E\u043D\u043E\u043C\u0438\u0438 \u0442\u0440\u0430\u0444\u0438\u043A\u0430",tooltip_button_disabled:"\u041A\u043D\u043E\u043F\u043A\u0430 \u043D\u0435\u0434\u043E\u0441\u0442\u0443\u043F\u043D\u0430",tooltip_previous:"\u041F\u0440\u0435\u0434\u044B\u0434\u0443\u0449\u0435\u0435 \u0432\u0438\u0434\u0435\u043E",tooltip_restart:"\u041D\u0430\u0447\u0430\u0442\u044C \u0437\u0430\u043D\u043E\u0432\u043E",tooltip_play:"\u0421\u043C\u043E\u0442\u0440\u0435\u0442\u044C",tooltip_pause:"\u041F\u0430\u0443\u0437\u0430",tooltip_next:"\u0421\u043B\u0435\u0434\u0443\u044E\u0449\u0435\u0435 \u0432\u0438\u0434\u0435\u043E",tooltip_interactive_go_back:"\u0412\u0435\u0440\u043D\u0443\u0442\u044C\u0441\u044F \u043A \u043F\u0440\u0435\u0434\u044B\u0434\u0443\u0449\u0435\u0439 \u0433\u043B\u0430\u0432\u0435",tooltip_interactive_go_back_disabled:"\u0418\u0441\u0442\u043E\u0440\u0438\u044F \u043F\u0440\u043E\u0445\u043E\u0436\u0434\u0435\u043D\u0438\u044F \u043D\u0435\u0434\u043E\u0441\u0442\u0443\u043F\u043D\u0430",tooltip_interactive_go_back_disabled_first:"\u0412\u044B \u0441\u043C\u043E\u0442\u0440\u0438\u0442\u0435 \u043F\u0435\u0440\u0432\u0443\u044E \u0433\u043B\u0430\u0432\u0443",tooltip_interactive_go_back_disabled_limit:"\u041B\u0438\u043C\u0438\u0442 \u0432\u043E\u0437\u0432\u0440\u0430\u0442\u043E\u0432 \u0438\u0441\u0447\u0435\u0440\u043F\u0430\u043D",tooltip_chapter_without_interactive:"\u0412 \u044D\u0442\u043E\u0439 \u0433\u043B\u0430\u0432\u0435 \u043D\u0435\u0442 \u0438\u043D\u0442\u0435\u0440\u0430\u043A\u0442\u0438\u0432\u0430",tooltip_interactive_of_chapter_completed:"\u0418\u043D\u0442\u0435\u0440\u0430\u043A\u0442\u0438\u0432\u044B \u044D\u0442\u043E\u0439 \u0433\u043B\u0430\u0432\u044B \u0443\u0436\u0435 \u043F\u0440\u043E\u0439\u0434\u0435\u043D\u044B",tooltip_interactive_seek:"\u041F\u0435\u0440\u0435\u0439\u0442\u0438 \u043A \u0438\u043D\u0442\u0435\u0440\u0430\u043A\u0442\u0438\u0432\u0443",tooltip_interactive_graph_off:"\u041F\u043E\u043A\u0430\u0437\u0430\u0442\u044C \u043A\u0430\u0440\u0442\u0443 \u0441\u044E\u0436\u0435\u0442\u0430",tooltip_interactive_graph_on:"\u0421\u043A\u0440\u044B\u0442\u044C \u043A\u0430\u0440\u0442\u0443 \u0441\u044E\u0436\u0435\u0442\u0430",tooltip_live:"\u041F\u0435\u0440\u0435\u043C\u043E\u0442\u0430\u0442\u044C \u043D\u0430 \u0430\u043A\u0442\u0443\u0430\u043B\u044C\u043D\u044B\u0439 \u043B\u0430\u0439\u0432",tooltip_episodes:"\u042D\u043F\u0438\u0437\u043E\u0434\u044B",tooltip_volume:"\u0412\u043A\u043B\u044E\u0447\u0438\u0442\u044C \u0437\u0432\u0443\u043A",tooltip_volume_muted:"\u0412\u044B\u043A\u043B\u044E\u0447\u0438\u0442\u044C \u0437\u0432\u0443\u043A",tooltip_sound_unavailable:"\u0417\u0432\u0443\u043A \u043D\u0435\u0434\u043E\u0441\u0442\u0443\u043F\u0435\u043D",tooltip_subtitles_off:"\u0412\u043A\u043B\u044E\u0447\u0438\u0442\u044C \u0441\u0443\u0431\u0442\u0438\u0442\u0440\u044B",tooltip_subtitles_on:"\u0412\u044B\u043A\u043B\u044E\u0447\u0438\u0442\u044C \u0441\u0443\u0431\u0442\u0438\u0442\u0440\u044B",tooltip_settings_off:"\u041E\u0442\u043A\u0440\u044B\u0442\u044C \u043D\u0430\u0441\u0442\u0440\u043E\u0439\u043A\u0438",tooltip_settings_on:"\u0417\u0430\u043A\u0440\u044B\u0442\u044C \u043D\u0430\u0441\u0442\u0440\u043E\u0439\u043A\u0438",tooltip_fullscreen_off:"\u041D\u0430 \u0432\u0435\u0441\u044C \u044D\u043A\u0440\u0430\u043D",tooltip_fullscreen_on:"\u0412\u044B\u0439\u0442\u0438 \u0438\u0437 \u043F\u043E\u043B\u043D\u043E\u044D\u043A\u0440\u0430\u043D\u043D\u043E\u0433\u043E \u0440\u0435\u0436\u0438\u043C\u0430",tooltip_chromecast_off:"\u0412\u043A\u043B\u044E\u0447\u0438\u0442\u044C Chromecast",tooltip_chromecast_on:"\u0412\u044B\u043A\u043B\u044E\u0447\u0438\u0442\u044C Chromecast",tooltip_episode_finished:"\u0412\u044B \u0443\u0436\u0435 \u0441\u0434\u0435\u043B\u0430\u043B\u0438 \u0441\u0432\u043E\u0439 \u0432\u044B\u0431\u043E\u0440",tooltip_episode_unfinished:"\u041D\u0435 \u043F\u0440\u043E\u0439\u0434\u0435\u043D\u043E",tooltip_disabled_when_interactive:"\u0418\u043D\u0442\u0435\u0440\u0430\u043A\u0442\u0438\u0432 \u0443\u0436\u0435 \u0438\u0434\u0451\u0442",tooltip_disabled_when_graph_on:"\u041A\u043D\u043E\u043F\u043A\u0430 \u043D\u0435\u0434\u043E\u0441\u0442\u0443\u043F\u043D\u0430 \u0432\u043E \u0432\u0440\u0435\u043C\u044F \u043F\u0440\u043E\u0441\u043C\u043E\u0442\u0440\u0430 \u043A\u0430\u0440\u0442\u044B",tooltip_interactive_interaction_time_indicator:"\u041D\u0430\u0436\u043C\u0438\u0442\u0435 \u043D\u0430 \u044D\u043B\u0435\u043C\u0435\u043D\u0442 \u0438\u043D\u0442\u0435\u0440\u0430\u043A\u0442\u0438\u0432\u0430",tooltip_vk_logo:"\u041E\u0442\u043A\u0440\u044B\u0442\u044C \u0432 VK \u0412\u0438\u0434\u0435\u043E",tooltip_vk_video_logo:"\u041F\u0435\u0440\u0435\u0439\u0442\u0438 \u0432 VK \u0412\u0438\u0434\u0435\u043E",tooltip_autoplay_off:"\u0412\u043A\u043B\u044E\u0447\u0438\u0442\u044C \u0430\u0432\u0442\u043E\u0432\u043E\u0441\u043F\u0440\u043E\u0438\u0437\u0432\u0435\u0434\u0435\u043D\u0438\u0435",tooltip_autoplay_on:"\u041E\u0442\u043A\u043B\u044E\u0447\u0438\u0442\u044C \u0430\u0432\u0442\u043E\u0432\u043E\u0441\u043F\u0440\u043E\u0438\u0437\u0432\u0435\u0434\u0435\u043D\u0438\u0435",tooltip_context_menu_open:"\u041E\u0442\u043A\u0440\u044B\u0442\u044C \u043A\u043E\u043D\u0442\u0435\u043A\u0441\u0442\u043D\u043E\u0435 \u043C\u0435\u043D\u044E",tooltip_context_menu_close:"\u0417\u0430\u043A\u0440\u044B\u0442\u044C \u043A\u043E\u043D\u0442\u0435\u043A\u0441\u0442\u043D\u043E\u0435 \u043C\u0435\u043D\u044E",download_video_caption:"\u0421\u043A\u0430\u0447\u0430\u0442\u044C \u0432\u0438\u0434\u0435\u043E",hotkey_helper_current_volume:"{value} %",hotkey_map_modal_title:"\u0411\u044B\u0441\u0442\u0440\u044B\u0435 \u043A\u043B\u0430\u0432\u0438\u0448\u0438",hotkey_map_modal_close_btn_text:"\u0417\u0430\u043A\u0440\u044B\u0442\u044C",hotkey_map_group_title_common:"\u041E\u0431\u0449\u0438\u0435",hotkey_map_group_title_playback:"\u0412\u043E\u0441\u043F\u0440\u043E\u0438\u0437\u0432\u0435\u0434\u0435\u043D\u0438\u0435",hotkey_map_group_title_subtitles:"\u0421\u0443\u0431\u0442\u0438\u0442\u0440\u044B",hotkey_map_group_title_episodes:"\u042D\u043F\u0438\u0437\u043E\u0434\u044B",hotkey_map_item_mute_description:"\u0412\u043A\u043B\u044E\u0447\u0438\u0442\u044C \u0438\u043B\u0438 \u043E\u0442\u043A\u043B\u044E\u0447\u0438\u0442\u044C \u0437\u0432\u0443\u043A",hotkey_map_item_mute_value:"m",hotkey_map_item_volume_up_description:"\u0423\u0432\u0435\u043B\u0438\u0447\u0438\u0442\u044C \u0433\u0440\u043E\u043C\u043A\u043E\u0441\u0442\u044C",hotkey_map_item_volume_up_value:"\u0421\u0442\u0440\u0435\u043B\u043A\u0430 \u0432\u0432\u0435\u0440\u0445",hotkey_map_item_volume_down_description:"\u0423\u043C\u0435\u043D\u044C\u0448\u0438\u0442\u044C \u0433\u0440\u043E\u043C\u043A\u043E\u0441\u0442\u044C",hotkey_map_item_volume_down_value:"\u0421\u0442\u0440\u0435\u043B\u043A\u0430 \u0432\u043D\u0438\u0437",hotkey_map_item_pip_description:"\u0421\u0432\u0435\u0440\u043D\u0443\u0442\u044C \u0438\u043B\u0438 \u0440\u0430\u0437\u0432\u0435\u0440\u043D\u0443\u0442\u044C \u043C\u0438\u043D\u0438-\u043F\u0440\u043E\u0438\u0433\u0440\u044B\u0432\u0430\u0442\u0435\u043B\u044C",hotkey_map_item_pip_value:"i",hotkey_map_item_full_screen_description:"\u0412\u043A\u043B\u044E\u0447\u0438\u0442\u044C \u0438\u043B\u0438 \u0432\u044B\u043A\u043B\u044E\u0447\u0438\u0442\u044C \u043F\u043E\u043B\u043D\u043E\u044D\u043A\u0440\u0430\u043D\u043D\u044B\u0439 \u0440\u0435\u0436\u0438\u043C",hotkey_map_item_full_screen_value:"f",hotkey_map_item_show_context_menu_description:"\u0421\u043A\u0440\u044B\u0442\u044C \u0438\u043B\u0438 \u043F\u043E\u043A\u0430\u0437\u0430\u0442\u044C \u043A\u043E\u043D\u0442\u0435\u043A\u0441\u0442\u043D\u043E\u0435 \u043C\u0435\u043D\u044E",hotkey_map_item_show_context_menu_value:"Shift + !",hotkey_map_item_show_hotkey_map_description:"\u0421\u043A\u0440\u044B\u0442\u044C \u0438\u043B\u0438 \u043F\u043E\u043A\u0430\u0437\u0430\u0442\u044C \u0441\u043F\u0438\u0441\u043E\u043A \u0433\u043E\u0440\u044F\u0447\u0438\u0445 \u043A\u043B\u0430\u0432\u0438\u0448",hotkey_map_item_show_hotkey_map_value:"Shift + ?",hotkey_map_item_play_toggle_description:"\u041F\u0440\u0438\u043E\u0441\u0442\u0430\u043D\u043E\u0432\u0438\u0442\u044C \u0438\u043B\u0438 \u043F\u0440\u043E\u0434\u043E\u043B\u0436\u0438\u0442\u044C \u0432\u043E\u0441\u043F\u0440\u043E\u0438\u0437\u0432\u0435\u0434\u0435\u043D\u0438\u0435",hotkey_map_item_play_toggle_value:"\u041F\u0440\u043E\u0431\u0435\u043B (\u0438\u043B\u0438 k)",hotkey_map_item_seek_backward_description:"\u041F\u0435\u0440\u0435\u043C\u043E\u0442\u0430\u0442\u044C \u0440\u043E\u043B\u0438\u043A \u043D\u0430 10 \u0441\u0435\u043A\u0443\u043D\u0434 \u043D\u0430\u0437\u0430\u0434",hotkey_map_item_seek_backward_value:"\u0421\u0442\u0440\u0435\u043B\u043A\u0430 \u0432\u043B\u0435\u0432\u043E (\u0438\u043B\u0438 j)",hotkey_map_item_seek_forward_description:"\u041F\u0435\u0440\u0435\u043C\u043E\u0442\u0430\u0442\u044C \u0440\u043E\u043B\u0438\u043A \u043D\u0430 10 \u0441\u0435\u043A\u0443\u043D\u0434 \u0432\u043F\u0435\u0440\u0451\u0434",hotkey_map_item_seek_forward_value:"\u0421\u0442\u0440\u0435\u043B\u043A\u0430 \u0432\u043F\u0440\u0430\u0432\u043E (\u0438\u043B\u0438 l)",hotkey_map_item_fast_seek_backward_description:"\u0423\u0441\u043A\u043E\u0440\u0435\u043D\u043D\u0430\u044F \u043F\u0435\u0440\u0435\u043C\u043E\u0442\u043A\u0430 \u043D\u0430\u0437\u0430\u0434",hotkey_map_item_fast_seek_backward_value:"Shift + \u0421\u0442\u0440\u0435\u043B\u043A\u0430 \u0432\u043B\u0435\u0432\u043E",hotkey_map_item_fast_seek_forward_description:"\u0423\u0441\u043A\u043E\u0440\u0435\u043D\u043D\u0430\u044F \u043F\u0435\u0440\u0435\u043C\u043E\u0442\u043A\u0430 \u0432\u043F\u0435\u0440\u0451\u0434",hotkey_map_item_fast_seek_forward_value:"Shift + \u0421\u0442\u0440\u0435\u043B\u043A\u0430 \u0432\u043F\u0440\u0430\u0432\u043E",hotkey_map_item_rate_down_description:"\u0423\u043C\u0435\u043D\u044C\u0448\u0438\u0442\u044C \u0441\u043A\u043E\u0440\u043E\u0441\u0442\u044C \u0432\u043E\u0441\u043F\u0440\u043E\u0438\u0437\u0432\u0435\u0434\u0435\u043D\u0438\u044F",hotkey_map_item_rate_down_value:"< (Shift + ,)",hotkey_map_item_rate_up_description:"\u0423\u0432\u0435\u043B\u0438\u0447\u0438\u0442\u044C \u0441\u043A\u043E\u0440\u043E\u0441\u0442\u044C \u0432\u043E\u0441\u043F\u0440\u043E\u0438\u0437\u0432\u0435\u0434\u0435\u043D\u0438\u044F",hotkey_map_item_rate_up_value:"> (Shift + .)",hotkey_map_item_prev_frame_description:"\u041F\u0435\u0440\u0435\u0439\u0442\u0438 \u043A \u043F\u0440\u0435\u0434\u044B\u0434\u0443\u0449\u0435\u043C\u0443 \u043A\u0430\u0434\u0440\u0443 <br />(\u043A\u043E\u0433\u0434\u0430 \u0432\u043E\u0441\u043F\u0440\u043E\u0438\u0437\u0432\u0435\u0434\u0435\u043D\u0438\u0435 \u043F\u0440\u0438\u043E\u0441\u0442\u0430\u043D\u043E\u0432\u043B\u0435\u043D\u043E)",hotkey_map_item_prev_frame_value:",",hotkey_map_item_next_frame_description:"\u041F\u0435\u0440\u0435\u0439\u0442\u0438 \u043A \u0441\u043B\u0435\u0434\u0443\u044E\u0449\u0435\u043C\u0443 \u043A\u0430\u0434\u0440\u0443 <br />(\u043A\u043E\u0433\u0434\u0430 \u0432\u043E\u0441\u043F\u0440\u043E\u0438\u0437\u0432\u0435\u0434\u0435\u043D\u0438\u0435 \u043F\u0440\u0438\u043E\u0441\u0442\u0430\u043D\u043E\u0432\u043B\u0435\u043D\u043E)",hotkey_map_item_next_frame_value:".",hotkey_map_item_jump_seek_description:"\u041F\u0435\u0440\u0435\u0439\u0442\u0438 \u043A \u043E\u043F\u0440\u0435\u0434\u0435\u043B\u0451\u043D\u043D\u043E\u043C\u0443 \u043C\u043E\u043C\u0435\u043D\u0442\u0443 \u0432\u0438\u0434\u0435\u043E <br />(\u043D\u0430\u043F\u0440\u0438\u043C\u0435\u0440, \u043F\u0440\u0438 \u043D\u0430\u0436\u0430\u0442\u0438\u0438 \u043D\u0430 \u0446\u0438\u0444\u0440\u0443 \xAB7\xBB \u0440\u043E\u043B\u0438\u043A \u0431\u0443\u0434\u0435\u0442 \u043F\u0435\u0440\u0435\u043C\u043E\u0442\u0430\u043D \u0434\u043E \u0432\u0440\u0435\u043C\u0435\u043D\u043D\u043E\u0439 \u043E\u0442\u043C\u0435\u0442\u043A\u0438, \u043A\u043E\u0442\u043E\u0440\u0430\u044F \u0441\u043E\u043E\u0442\u0432\u0435\u0442\u0441\u0442\u0432\u0443\u0435\u0442 70% \u043E\u0442 \u0434\u043B\u0438\u0442\u0435\u043B\u044C\u043D\u043E\u0441\u0442\u0438 \u0432\u0438\u0434\u0435\u043E)",hotkey_map_item_jump_seek_value:"0, 1, 2, 3, 4, 5, 6, 7, 8, 9",hotkey_map_item_subtitles_toggle_description:"\u0412\u043A\u043B\u044E\u0447\u0438\u0442\u044C \u0438\u043B\u0438 \u043E\u0442\u043A\u043B\u044E\u0447\u0438\u0442\u044C \u0441\u0443\u0431\u0442\u0438\u0442\u0440\u044B",hotkey_map_item_subtitles_toggle_value:"c",hotkey_map_item_prev_episode_description:"\u041F\u0435\u0440\u0435\u0439\u0442\u0438 \u043A \u043F\u0440\u0435\u0434\u044B\u0434\u0443\u0449\u0435\u043C\u0443 \u044D\u043F\u0438\u0437\u043E\u0434\u0443",hotkey_map_item_prev_episode_pc_value:"Ctrl + \u0421\u0442\u0440\u0435\u043B\u043A\u0430 \u0432\u043B\u0435\u0432\u043E",hotkey_map_item_prev_episode_mac_value:"Option + \u0421\u0442\u0440\u0435\u043B\u043A\u0430 \u0432\u043B\u0435\u0432\u043E",hotkey_map_item_next_episode_description:"\u041F\u0435\u0440\u0435\u0439\u0442\u0438 \u043A \u0441\u043B\u0435\u0434\u0443\u044E\u0449\u0435\u043C\u0443 \u044D\u043F\u0438\u0437\u043E\u0434\u0443",hotkey_map_item_next_episode_pc_value:"Ctrl + \u0421\u0442\u0440\u0435\u043B\u043A\u0430 \u0432\u043F\u0440\u0430\u0432\u043E",hotkey_map_item_next_episode_mac_value:"Option + \u0421\u0442\u0440\u0435\u043B\u043A\u0430 \u0432\u043F\u0440\u0430\u0432\u043E",hotkey_map_item_next_video_description:"\u041F\u0435\u0440\u0435\u0439\u0442\u0438 \u043A \u0441\u043B\u0435\u0434\u0443\u044E\u0449\u0435\u043C\u0443 \u0432\u0438\u0434\u0435\u043E",hotkey_map_item_next_video_value:"Shift + N",hotkey_map_item_prev_video_description:"\u041F\u0435\u0440\u0435\u0439\u0442\u0438 \u043A \u043F\u0440\u0435\u0434\u044B\u0434\u0443\u0449\u0435\u043C\u0443 \u0432\u0438\u0434\u0435\u043E",hotkey_map_item_prev_video_value:"Shift + P",waiting_live_day_value:"\u0434\u043D",waiting_live_hour_value:"\u0447",waiting_live_minute_value:"\u043C\u0438\u043D",waiting_live_second_value:"\u0441\u0435\u043A",waiting_live_colon:":",waiting_live_upcoming_title:"\u0422\u0440\u0430\u043D\u0441\u043B\u044F\u0446\u0438\u044F \u0435\u0449\u0435 \u043D\u0435 \u043D\u0430\u0447\u0430\u043B\u0430\u0441\u044C",waiting_live_timer_title:"\u0414\u043E \u043D\u0430\u0447\u0430\u043B\u0430 \u0442\u0440\u0430\u043D\u0441\u043B\u044F\u0446\u0438\u0438 \u043E\u0441\u0442\u0430\u043B\u043E\u0441\u044C",waiting_live_recover_title:"\u0422\u0440\u0430\u043D\u0441\u043B\u044F\u0446\u0438\u044F \u043F\u0440\u0438\u043E\u0441\u0442\u0430\u043D\u043E\u0432\u043B\u0435\u043D\u0430 - \u043E\u043D\u0430 \u043F\u0440\u043E\u0434\u043E\u043B\u0436\u0438\u0442\u0441\u044F, \u043A\u043E\u0433\u0434\u0430 \u0430\u0432\u0442\u043E\u0440 \u0432\u0435\u0440\u043D\u0451\u0442\u0441\u044F",waiting_record_title:"\u0422\u0440\u0430\u043D\u0441\u043B\u044F\u0446\u0438\u044F \u0437\u0430\u0432\u0435\u0440\u0448\u0435\u043D\u0430 - \u0437\u0430\u043F\u0438\u0441\u044C \u043F\u043E\u044F\u0432\u0438\u0442\u0441\u044F \u043F\u043E\u0437\u0436\u0435",aria_label_video_player:"\u0412\u0438\u0434\u0435\u043E \u043F\u043B\u0435\u0435\u0440",aria_label_spherical_control:"\u041A\u043E\u043D\u0442\u0440\u043E\u043B\u043B\u0435\u0440 \u0434\u043B\u044F \u0441\u0444\u0435\u0440\u0438\u0447\u0435\u0441\u043A\u043E\u0433\u043E \u0432\u0438\u0434\u0435\u043E. \u0418\u0441\u043F\u043E\u043B\u044C\u0437\u0443\u0439\u0442\u0435 \u043A\u043B\u0430\u0432\u0438\u0448\u0438 \u0441\u043E \u0441\u0442\u0440\u0435\u043B\u043A\u0430\u043C\u0438 \u0434\u043B\u044F \u043F\u0430\u043D\u043E\u0440\u0430\u043C\u0438\u0440\u043E\u0432\u0430\u043D\u0438\u044F \u0432\u0438\u0434\u0435\u043E.",aria_label_debug_panel:"\u041E\u0431\u043B\u0430\u0441\u0442\u044C \u0441 \u0442\u0435\u0445\u043D\u0438\u0447\u0435\u0441\u043A\u043E\u0439 \u0438\u043D\u0444\u043E\u0440\u043C\u0430\u0446\u0438\u0435\u0439, \u0441\u0434\u0435\u043B\u0430\u0439\u0442\u0435 \u0441\u043A\u0440\u0438\u043D\u0448\u043E\u0442 \u0434\u043B\u044F \u0442\u0435\u0445\u043F\u043E\u0434\u0434\u0435\u0440\u0436\u043A\u0438",aria_label_new_tab_alert:"\u041E\u0442\u043A\u0440\u043E\u0435\u0442\u0441\u044F \u0432 \u043D\u043E\u0432\u043E\u0439 \u0432\u043A\u043B\u0430\u0434\u043A\u0435.",aria_label_menu_quality:"\u041A\u0430\u0447\u0435\u0441\u0442\u0432\u043E: {actual}",aria_label_menu_audio_languages:"\u042F\u0437\u044B\u043A \u0430\u0443\u0434\u0438\u043E: {actual}",aria_label_menu_rate:"\u0421\u043A\u043E\u0440\u043E\u0441\u0442\u044C: {actual}",aria_label_menu_subtitle:"\u0421\u0443\u0431\u0442\u0438\u0442\u0440\u044B: {actual}",aria_label_menu_download:"\u0421\u043A\u0430\u0447\u0430\u0442\u044C \u0432\u0438\u0434\u0435\u043E",aria_label_menu_debug_overlay:"\u041E\u0442\u043E\u0431\u0440\u0430\u0436\u0435\u043D\u0438\u0435 \u0442\u0435\u0445\u043D\u0438\u0447\u0435\u0441\u043A\u043E\u0439 \u0438\u043D\u0444\u043E\u0440\u043C\u0430\u0446\u0438\u0438",aria_label_menu_rotate:"\u041F\u043E\u0432\u0435\u0440\u043D\u0443\u0442\u044C \u0432\u0438\u0434\u0435\u043E \u043D\u0430 90 \u0433\u0440\u0430\u0434\u0443\u0441\u043E\u0432",aria_label_menu_loop:"\u041F\u0435\u0440\u0435\u043A\u043B\u044E\u0447\u0435\u043D\u0438\u0435 \u0440\u0435\u0436\u0438\u043C\u0430 \u043F\u043E\u0432\u0442\u043E\u0440\u0435\u043D\u0438\u044F",aria_label_submenu_back:"\u0412\u0435\u0440\u043D\u0443\u0442\u044C\u0441\u044F \u0432 \u043C\u0435\u043D\u044E \u043D\u0430\u0441\u0442\u0440\u043E\u0435\u043A",aria_label_submenu_traffic_saving:"\u0420\u0435\u0436\u0438\u043C \u044D\u043A\u043E\u043D\u043E\u043C\u0438\u0438 \u0434\u0430\u043D\u043D\u044B\u0445",aria_label_settings:"\u041D\u0430\u0441\u0442\u0440\u043E\u0439\u043A\u0438",aria_label_context_menu:"\u041A\u043E\u043D\u0442\u0435\u043A\u0441\u0442\u043D\u043E\u0435 \u043C\u0435\u043D\u044E",aria_label_autoplay:"\u0410\u0432\u0442\u043E\u0432\u043E\u0441\u043F\u0440\u043E\u0438\u0437\u0432\u0435\u0434\u0435\u043D\u0438\u0435",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,
51
51
  \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 -
52
- \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`},Eh=x_;var w_={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_pip_close:"Expand video",menu_copy_video_link:"Copy video link",menu_copy_video_link_with_timestamp:"Copy link with timestamp",menu_video_rotate:"Rotate",menu_video_loop_on:"Enable loop",menu_video_loop_off:"Disable loop",menu_chromecast:"Chromecast stream",menu_copy_debug:"Copy debug info",menu_save_debug:"Save debug info",menu_debug_overlay:"Tech stats",menu_copy_embed_code:"Copy embed code",menu_audio_languages:"Audio track",audio_stream_display_language_label:"{label} ({language})",audio_stream_display_language_label_index:"{label} {index} ({language})",audio_stream_display_label_index:"{label} {index}",audio_stream_display_language_index:"{language} {index}",audio_stream_display_unknown:"Audio track {index}",pip_dummy_title:"Video plays in picture-in-picture mode",submenu_quality:"Quality",submenu_playback_rate:"Playback rate",submenu_traffic_saving:"Data saving",submenu_settings:"Settings",submenu_audio_languages:"Audio track",playing_ads:"Ads {timeleft}",skip_ads_after:"Skip ads",skip_ads_now:"Skip {time}s",visit_advertiser:"Visit site",aria_timeline:"Time scale slider",aria_timeline_value:"{position} out of {duration}",doubletap_seek_step:"{seconds} seconds",playback_rate_1:"Normal",playback_rate:"{multiplier}x",video360:"spherical video",subtitles_caption:"Subtitles",subtitles_auto:"{language} (Auto-generated)",subtitles_off:"Off",subtitles_auto_caption:"Auto subtitles",subtitles_turn_on:"Turn on subtitles",subtitles_turn_off:"Turn off subtitles",traffic_saving_off:"Off",traffic_saving_on:"On",traffic_saving_helper_text:"When turned on the video quality will be reduced to save data",tooltip_button_disabled:"Button disabled",tooltip_previous:"Previous video",tooltip_restart:"Watch again",tooltip_play:"Play",tooltip_pause:"Pause",tooltip_next:"Next video",tooltip_interactive_go_back:"Back to previous chapter",tooltip_interactive_go_back_disabled:"Interactive history unavailable",tooltip_interactive_go_back_disabled_first:"You're watching the first chapter",tooltip_interactive_go_back_disabled_limit:"Go-back limit exceeded",tooltip_chapter_without_interactive:"This chapter has no interactive segment",tooltip_interactive_of_chapter_completed:"Chapter's interactive segments already watched",tooltip_interactive_seek:"Go to interactive",tooltip_interactive_graph_off:"Show interactive graph",tooltip_interactive_graph_on:"Hide interactive graph",tooltip_live:"Go to the live edge",tooltip_episodes:"Episodes",tooltip_volume:"Volume off",tooltip_volume_muted:"Turn volume on",tooltip_sound_unavailable:"Sound unavailable",tooltip_subtitles_off:"Turn subtitles on",tooltip_subtitles_on:"Turn subtitles off",tooltip_settings_off:"Open settings",tooltip_settings_on:"Close settings",tooltip_fullscreen_off:"Enter fullscreen mode",tooltip_fullscreen_on:"Exit fullscreen mode",tooltip_chromecast_off:"Turn Chromecast on",tooltip_chromecast_on:"Turn Chromecast off",tooltip_episode_finished:"You have already viewed interactive episode",tooltip_episode_unfinished:"Interactive episode not finished",tooltip_disabled_when_interactive:"Interactive video in progress",tooltip_disabled_when_graph_on:"Button is disabled when graph is opened",tooltip_interactive_interaction_time_indicator:"Press the interactive element",tooltip_vk_logo:"Open in VK Video",tooltip_vk_video_logo:"Go to VK Video",tooltip_autoplay_off:"Turn autoplay on",tooltip_autoplay_on:"Turn autoplay off",tooltip_context_menu_open:"Open context menu",tooltip_context_menu_close:"Close context menu",download_video_caption:"Download video",hotkey_helper_current_volume:"{value} %",hotkey_map_modal_title:"Keyboard shortcuts",hotkey_map_modal_close_btn_text:"Close",hotkey_map_group_title_common:"Common",hotkey_map_group_title_playback:"Playback",hotkey_map_group_title_subtitles:"Subtitles",hotkey_map_group_title_episodes:"Episodes",hotkey_map_item_mute_description:"Toggle mute",hotkey_map_item_mute_value:"m",hotkey_map_item_volume_up_description:"Increase volume",hotkey_map_item_volume_up_value:"Arrow up",hotkey_map_item_volume_down_description:"Decrease volume",hotkey_map_item_volume_down_value:"Arrow down",hotkey_map_item_pip_description:"Toggle miniplayer",hotkey_map_item_pip_value:"i",hotkey_map_item_full_screen_description:"Toggle full screen",hotkey_map_item_full_screen_value:"f",hotkey_map_item_show_context_menu_description:"Hide or show context menu",hotkey_map_item_show_context_menu_value:"Shift + !",hotkey_map_item_show_hotkey_map_description:"Hide or show list of hotkeys",hotkey_map_item_show_hotkey_map_value:"Shift + ?",hotkey_map_item_play_toggle_description:"Toggle play/pause",hotkey_map_item_play_toggle_value:"Space (or k)",hotkey_map_item_seek_backward_description:"Rewind 10 seconds",hotkey_map_item_seek_backward_value:"Arrow left (or j)",hotkey_map_item_seek_forward_description:"Forward 10 seconds",hotkey_map_item_seek_forward_value:"Arrow right (or l)",hotkey_map_item_fast_seek_backward_description:"Fast rewind",hotkey_map_item_fast_seek_backward_value:"Shift + Arrow left",hotkey_map_item_fast_seek_forward_description:"Fast forward",hotkey_map_item_fast_seek_forward_value:"Shift + Arrow right",hotkey_map_item_rate_down_description:"Decrease playback rate",hotkey_map_item_rate_down_value:"< (Shift + ,)",hotkey_map_item_rate_up_description:"Increase playback rate",hotkey_map_item_rate_up_value:"> (Shift + .)",hotkey_map_item_prev_frame_description:"Previous frame (while paused)",hotkey_map_item_prev_frame_value:",",hotkey_map_item_next_frame_description:"Next frame (while paused)",hotkey_map_item_next_frame_value:".",hotkey_map_item_jump_seek_description:"Seek to specific point in the video (7 advances to 70% of duration)",hotkey_map_item_jump_seek_value:"0, 1, 2, 3, 4, 5, 6, 7, 8, 9",hotkey_map_item_subtitles_toggle_description:"Toggle captions ON/OFF",hotkey_map_item_subtitles_toggle_value:"c",hotkey_map_item_prev_episode_description:"Seek to previous episode",hotkey_map_item_prev_episode_pc_value:"Ctrl + Arrow left",hotkey_map_item_prev_episode_mac_value:"Option + Arrow left",hotkey_map_item_next_episode_description:"Seek to next episode",hotkey_map_item_next_episode_pc_value:"Ctrl + Arrow right",hotkey_map_item_next_episode_mac_value:"Option + Arrow right",hotkey_map_item_next_video_description:"Next video",hotkey_map_item_next_video_value:"Shift + N",hotkey_map_item_prev_video_description:"Previous video",hotkey_map_item_prev_video_value:"Shift + P",waiting_live_day_value:"d",waiting_live_hour_value:"h",waiting_live_minute_value:"min",waiting_live_second_value:"sec",waiting_live_colon:":",waiting_live_upcoming_title:"The broadcast hasn't started yet",waiting_live_timer_title:"Before the start of the broadcast left",waiting_live_recover_title:"The broadcast has been paused - it will resume when the author returns",waiting_record_title:"The broadcast completed - recording will appear later",aria_label_video_player:"Video player",aria_label_spherical_control:"Spherical video control. Use the arrow keys to pan the video.",aria_label_debug_panel:"Technical information area, take a screenshot for technical support",aria_label_new_tab_alert:"Opens in a new tab.",aria_label_menu_quality:"Quality: {actual}",aria_label_menu_audio_languages:"Audio language: {actual}",aria_label_menu_rate:"Rate: {actual}",aria_label_menu_subtitle:"Subtitles: {actual}",aria_label_menu_download:"Download video",aria_label_menu_debug_overlay:"Display of technical information",aria_label_menu_rotate:"Rotate video 90 degrees",aria_label_menu_loop:"Toggle loop",aria_label_submenu_back:"Return to settings menu",aria_label_submenu_traffic_saving:"Data saving mode",aria_label_settings:"Settings",aria_label_context_menu:"Context menu",aria_label_autoplay:"Autoplay",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,
52
+ \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`},Eh=y_;var x_={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_pip_close:"Expand video",menu_copy_video_link:"Copy video link",menu_copy_video_link_with_timestamp:"Copy link with timestamp",menu_video_rotate:"Rotate",menu_video_loop_on:"Enable loop",menu_video_loop_off:"Disable loop",menu_chromecast:"Chromecast stream",menu_copy_debug:"Copy debug info",menu_save_debug:"Save debug info",menu_debug_overlay:"Tech stats",menu_copy_embed_code:"Copy embed code",menu_audio_languages:"Audio track",audio_stream_display_language_label:"{label} ({language})",audio_stream_display_language_label_index:"{label} {index} ({language})",audio_stream_display_label_index:"{label} {index}",audio_stream_display_language_index:"{language} {index}",audio_stream_display_unknown:"Audio track {index}",pip_dummy_title:"Video plays in picture-in-picture mode",submenu_quality:"Quality",submenu_playback_rate:"Playback rate",submenu_traffic_saving:"Data saving",submenu_settings:"Settings",submenu_audio_languages:"Audio track",playing_ads:"Ads {timeleft}",skip_ads_after:"Skip ads",skip_ads_now:"Skip {time}s",visit_advertiser:"Visit site",aria_timeline:"Time scale slider",aria_timeline_value:"{position} out of {duration}",doubletap_seek_step:"{seconds} seconds",playback_rate_1:"Normal",playback_rate:"{multiplier}x",video360:"spherical video",subtitles_caption:"Subtitles",subtitles_auto:"{language} (Auto-generated)",subtitles_off:"Off",subtitles_auto_caption:"Auto subtitles",subtitles_turn_on:"Turn on subtitles",subtitles_turn_off:"Turn off subtitles",traffic_saving_off:"Off",traffic_saving_on:"On",traffic_saving_helper_text:"When turned on the video quality will be reduced to save data",tooltip_button_disabled:"Button disabled",tooltip_previous:"Previous video",tooltip_restart:"Watch again",tooltip_play:"Play",tooltip_pause:"Pause",tooltip_next:"Next video",tooltip_interactive_go_back:"Back to previous chapter",tooltip_interactive_go_back_disabled:"Interactive history unavailable",tooltip_interactive_go_back_disabled_first:"You're watching the first chapter",tooltip_interactive_go_back_disabled_limit:"Go-back limit exceeded",tooltip_chapter_without_interactive:"This chapter has no interactive segment",tooltip_interactive_of_chapter_completed:"Chapter's interactive segments already watched",tooltip_interactive_seek:"Go to interactive",tooltip_interactive_graph_off:"Show interactive graph",tooltip_interactive_graph_on:"Hide interactive graph",tooltip_live:"Go to the live edge",tooltip_episodes:"Episodes",tooltip_volume:"Volume off",tooltip_volume_muted:"Turn volume on",tooltip_sound_unavailable:"Sound unavailable",tooltip_subtitles_off:"Turn subtitles on",tooltip_subtitles_on:"Turn subtitles off",tooltip_settings_off:"Open settings",tooltip_settings_on:"Close settings",tooltip_fullscreen_off:"Enter fullscreen mode",tooltip_fullscreen_on:"Exit fullscreen mode",tooltip_chromecast_off:"Turn Chromecast on",tooltip_chromecast_on:"Turn Chromecast off",tooltip_episode_finished:"You have already viewed interactive episode",tooltip_episode_unfinished:"Interactive episode not finished",tooltip_disabled_when_interactive:"Interactive video in progress",tooltip_disabled_when_graph_on:"Button is disabled when graph is opened",tooltip_interactive_interaction_time_indicator:"Press the interactive element",tooltip_vk_logo:"Open in VK Video",tooltip_vk_video_logo:"Go to VK Video",tooltip_autoplay_off:"Turn autoplay on",tooltip_autoplay_on:"Turn autoplay off",tooltip_context_menu_open:"Open context menu",tooltip_context_menu_close:"Close context menu",download_video_caption:"Download video",hotkey_helper_current_volume:"{value} %",hotkey_map_modal_title:"Keyboard shortcuts",hotkey_map_modal_close_btn_text:"Close",hotkey_map_group_title_common:"Common",hotkey_map_group_title_playback:"Playback",hotkey_map_group_title_subtitles:"Subtitles",hotkey_map_group_title_episodes:"Episodes",hotkey_map_item_mute_description:"Toggle mute",hotkey_map_item_mute_value:"m",hotkey_map_item_volume_up_description:"Increase volume",hotkey_map_item_volume_up_value:"Arrow up",hotkey_map_item_volume_down_description:"Decrease volume",hotkey_map_item_volume_down_value:"Arrow down",hotkey_map_item_pip_description:"Toggle miniplayer",hotkey_map_item_pip_value:"i",hotkey_map_item_full_screen_description:"Toggle full screen",hotkey_map_item_full_screen_value:"f",hotkey_map_item_show_context_menu_description:"Hide or show context menu",hotkey_map_item_show_context_menu_value:"Shift + !",hotkey_map_item_show_hotkey_map_description:"Hide or show list of hotkeys",hotkey_map_item_show_hotkey_map_value:"Shift + ?",hotkey_map_item_play_toggle_description:"Toggle play/pause",hotkey_map_item_play_toggle_value:"Space (or k)",hotkey_map_item_seek_backward_description:"Rewind 10 seconds",hotkey_map_item_seek_backward_value:"Arrow left (or j)",hotkey_map_item_seek_forward_description:"Forward 10 seconds",hotkey_map_item_seek_forward_value:"Arrow right (or l)",hotkey_map_item_fast_seek_backward_description:"Fast rewind",hotkey_map_item_fast_seek_backward_value:"Shift + Arrow left",hotkey_map_item_fast_seek_forward_description:"Fast forward",hotkey_map_item_fast_seek_forward_value:"Shift + Arrow right",hotkey_map_item_rate_down_description:"Decrease playback rate",hotkey_map_item_rate_down_value:"< (Shift + ,)",hotkey_map_item_rate_up_description:"Increase playback rate",hotkey_map_item_rate_up_value:"> (Shift + .)",hotkey_map_item_prev_frame_description:"Previous frame (while paused)",hotkey_map_item_prev_frame_value:",",hotkey_map_item_next_frame_description:"Next frame (while paused)",hotkey_map_item_next_frame_value:".",hotkey_map_item_jump_seek_description:"Seek to specific point in the video (7 advances to 70% of duration)",hotkey_map_item_jump_seek_value:"0, 1, 2, 3, 4, 5, 6, 7, 8, 9",hotkey_map_item_subtitles_toggle_description:"Toggle captions ON/OFF",hotkey_map_item_subtitles_toggle_value:"c",hotkey_map_item_prev_episode_description:"Seek to previous episode",hotkey_map_item_prev_episode_pc_value:"Ctrl + Arrow left",hotkey_map_item_prev_episode_mac_value:"Option + Arrow left",hotkey_map_item_next_episode_description:"Seek to next episode",hotkey_map_item_next_episode_pc_value:"Ctrl + Arrow right",hotkey_map_item_next_episode_mac_value:"Option + Arrow right",hotkey_map_item_next_video_description:"Next video",hotkey_map_item_next_video_value:"Shift + N",hotkey_map_item_prev_video_description:"Previous video",hotkey_map_item_prev_video_value:"Shift + P",waiting_live_day_value:"d",waiting_live_hour_value:"h",waiting_live_minute_value:"min",waiting_live_second_value:"sec",waiting_live_colon:":",waiting_live_upcoming_title:"The broadcast hasn't started yet",waiting_live_timer_title:"Before the start of the broadcast left",waiting_live_recover_title:"The broadcast has been paused - it will resume when the author returns",waiting_record_title:"The broadcast completed - recording will appear later",aria_label_video_player:"Video player",aria_label_spherical_control:"Spherical video control. Use the arrow keys to pan the video.",aria_label_debug_panel:"Technical information area, take a screenshot for technical support",aria_label_new_tab_alert:"Opens in a new tab.",aria_label_menu_quality:"Quality: {actual}",aria_label_menu_audio_languages:"Audio language: {actual}",aria_label_menu_rate:"Rate: {actual}",aria_label_menu_subtitle:"Subtitles: {actual}",aria_label_menu_download:"Download video",aria_label_menu_debug_overlay:"Display of technical information",aria_label_menu_rotate:"Rotate video 90 degrees",aria_label_menu_loop:"Toggle loop",aria_label_submenu_back:"Return to settings menu",aria_label_submenu_traffic_saving:"Data saving mode",aria_label_settings:"Settings",aria_label_context_menu:"Context menu",aria_label_autoplay:"Autoplay",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,
53
53
  so\xA0the\xA0quality was changed to\xA0Auto`,slow_video_notification_suggest_description:`The video is loading too slowly.
54
- Try switching the\xA0quality to\xA0Auto.`},Ih=w_;var fs=new Map;fs.set(Ph.EN,Ih);fs.set(Ph.RU,Eh);var Ah=new Map,Qp=({language:t,pack:e,fallback:i})=>{if(fs.has(t)){let o=fs.get(t);fs.set(t,{...o,...e})}else fs.set(t,e);Ah.set(t,i)},Gp=t=>fs.has(t),Yp=(t,e,i,o)=>{var l;let n=fs.get(t),r=n==null?void 0:n[e];if(kh(r)){let d=(l=Ah.get(t))!=null?l:o,a=d?fs.get(d):void 0;r=a==null?void 0:a[e]}return kh(r)?e+Object.values(i!=null?i:{}).join(" "):i?r.replaceAll(/{(\w+?)}/g,(d,a)=>{var p;return(p=i[a])!=null?p:""}):r},F=(t,e)=>{let{interfaceLanguage$:i}=Ee(),o=$e(i),n=Ft();return Yp(o,t,e,n.defaultLanguage)};import"@vkontakte/videoplayer-core/es2018";var il;(function(t){t.fatal="fatal",t.error="error",t.warning="warning",t.log="log",t.info="info",t.debug="debug",t.critical="critical"})(il||(il={}));var C_=/^\s*at (?:(.*?) ?\()?((?:file|https?|blob|chrome-extension|address|native|eval|webpack|<anonymous>|[-a-z]+:|.*bundle|\/).*?)(?::(\d+))?(?::(\d+))?\)?\s*$/i,S_=/^\s*(.*?)(?:\((.*?)\))?(?:^|@)?((?:file|https?|blob|chrome|webpack|resource|moz-extension).*?:\/.*?|\[native code\]|[^@]*(?:bundle|\d+\.js))(?::(\d+))?(?::(\d+))?\s*$/i,T_=/^\s*at (?:((?:\[object object\])?.+) )?\(?((?:file|ms-appx|https?|webpack|blob):.*?):(\d+)(?::(\d+))?\)?\s*$/i,Oc="?",E_="X-Sentry-Auth",I_=/^(?:(\w+):)\/\/(?:([\w-]+)(?::(\w+))?@)([\w.-]+)(?::(\d+))?\/(.+)/;function k_(t){if(!t.stack)return null;let e=[],i=t.stack.split(`
55
- `),o,n;for(let r=0;r<i.length;++r){if(o=C_.exec(i[r]))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=T_.exec(i[r]))n={filename:o[2],function:o[1]||Oc,lineno:+o[3],colno:o[4]?+o[4]:null};else if(o=S_.exec(i[r]))r===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:Mh(t),type:t.name,stacktrace:{frames:e.reverse()}}:null}function Mh(t){return(t&&t.message||"No error message").split(`
56
- `).filter(i=>!!i)[0]}function P_(t){try{let e=k_(t);if(e)return e}catch(e){}return{value:Mh(t),type:t&&t.name,stacktrace:{frames:[]}}}function A_(){return"xxxxxxxxxxxx4xxxyxxxxxxxxxxxxxxx".replace(/[xy]/g,t=>{let e=Math.random()*16|0;return(t==="x"?e:e&3|8).toString(16)})}var Dc=class{constructor(e){if(e&&e.dsn){let i=I_.exec(e.dsn),o=i?i.slice(1):[],n=o[5].split("/"),r=n.slice(0,-1).join("/");this.apiUrl=o[0]+"://"+o[3]+(o[4]?":"+o[4]:"")+(r?"/"+r:"")+"/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:[P_(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(E_,this.authHeader||""),i.send(JSON.stringify(e))}getRequestBlank(){return{platform:"javascript",event_id:A_(),sdk:{name:"micro-sentry.javascript.core",version:"0.0.0"},timestamp:Date.now()/1e3,environment:this.environment}}};function Lh(t,e){return Object.prototype.toString.call(e)==="[object RegExp]"?e.test(t):typeof e=="string"?t.indexOf(e)!==-1:!1}function M_(){return window}var Hc=class t extends Dc{constructor(e,i=M_()){super(e),this.options=e,this.window=i,this.destroyed=!1,this._state={};let{plugins:o=[],beforeSend:n=p=>p,beforeBreadcrumb:r=p=>p,blacklistUrls:l=[],ignoreErrors:d=[],release:a=void 0}=this.options||{};this.plugins=o.map(p=>new p(this)),this.beforeSend=n,this.beforeBreadcrumb=r,this.blacklistUrls=l,this.ignoreErrors=d,this.release=a}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=>Lh(i,o))):!1}getRequestBlank(){return{request:{url:this.window.location.toString(),headers:{"User-Agent":this.window.navigator.userAgent}},...super.getRequestBlank(),sdk:{name:"micro-sentry.javascript.browser",version:"0.0.0"},...this.state}}send(e){this.destroyed||this.isDeniedUrl(e)||this.isIgnoredError(e)||(super.send(this.beforeSend({release:this.release,...e})),this.setBreadcrumbs(void 0))}getPossibleEventMessages(e){if(e.message)return[e.message];if(e.exception)try{let{type:i="",value:o=""}=e.exception.values&&e.exception.values[0]||{};return[`${o}`,`${i}: ${o}`]}catch(i){return[]}return[]}isDeniedUrl(e){if(!this.blacklistUrls.length)return!1;let i=this.getEventFilterUrl(e);return i?this.blacklistUrls.some(o=>Lh(i,o)):!1}getEventFilterUrl(e){try{if(e.exception){let i=e.exception.values&&e.exception.values[0].stacktrace&&e.exception.values[0].stacktrace.frames;return i&&i[i.length-1].filename||null}return null}catch(i){return null}}extendState(e){this._state=Object.keys(e).reduce((i,o)=>{let n=this._state[o],r=Array.isArray(n)?n:null,l=e[o],d=Array.isArray(l)?l:null;return{...i,[o]:r||d?[...r||[],...d||[]]:{...typeof n!="string"?n:{},...typeof l!="string"?l:{}}}},this._state)}setKeyState(e,i){this._state[e]=i}};import{isNonNullable as Fc,Subscription as L_}from"@vkontakte/videoplayer-shared/es2018";var Uc=null,aa=class{constructor(e,i,o={}){!Uc&&e.dsn&&(this.sentryClient=new Hc({dsn:e.dsn,environment:i.env}),this.version=i.version,this.sentrySubscription=new L_,this.options=e,this.context=o,Uc=this)}destroy(){var e,i;(e=this.sentryClient)==null||e.destroy(),(i=this.sentrySubscription)==null||i.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:r,options:l}=this,{sampleRate:d=0,whiteErrorIdList:a,whiteErrorCategoryList:p=[],blackErrorIdList:f,blackErrorCategoryList:v}=l,{errorType:u,category:$}=i;if(Fc($)&&v.includes($)||Fc(u)&&f.includes(u))return;if(Math.random()<=d||Fc($)&&p.includes($)||Fc(u)&&a.includes(u)){Object.keys(i).length&&n.setTags({version:this.version,...i}),(Object.keys(r).length||Object.keys(o).length)&&n.setExtras({...r,...o});try{u&&n.captureMessage(u,i.fatal?il.fatal:il.error),n.report(e)}catch(y){console.error(y)}}}static getInstance(){return Uc}};var ms=(d=>(d.Thumb="thumb",d.Video="video",d.Ads="ads",d.Crashed="crashed",d.LiveWaitingStart="LiveWaitingStart",d.LiveWaitingRecover="LiveWaitingRecover",d.LiveWaitingRecord="LiveWaitingRecord",d))(ms||{});var zc=t=>{if(t.requestFullscreen)return t.requestFullscreen();if(t.msRequestFullscreen)return t.msRequestFullscreen();if(t.webkitRequestFullscreen)return t.webkitRequestFullscreen();if(t.mozRequestFullScreen)return t.mozRequestFullScreen();let e=t.querySelector("video");return e!=null&&e.webkitEnterFullscreen?e.webkitEnterFullscreen():Promise.reject()},Wc=t=>t.exitFullscreen?t.exitFullscreen():t.msExitFullscreen?t.msExitFullscreen():t.webkitExitFullscreen?t.webkitExitFullscreen():t.mozCancelFullScreen?t.mozCancelFullScreen():Promise.reject(),Vh=t=>{let e=t;return e!=null&&e.webkitExitFullscreen?e==null?void 0:e.webkitExitFullscreen():Promise.reject()},jl=()=>{let t=document;return t.fullscreenElement||t.mozFullScreenElement||t.webkitFullscreenElement||t.msFullscreenElement},Ps=()=>!!jl(),qc=t=>{document.addEventListener("fullscreenchange",t),document.addEventListener("webkitfullscreenchange",t),document.addEventListener("mozfullscreenchange",t),document.addEventListener("MSFullscreenChange",t)},Kc=t=>{document.removeEventListener("fullscreenchange",t),document.removeEventListener("webkitfullscreenchange",t),document.removeEventListener("mozfullscreenchange",t),document.removeEventListener("MSFullscreenChange",t)},Rh=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 Nh}from"@vkontakte/videoplayer-core/es2018";var Bh=()=>({title:F("hotkey_map_modal_title"),closeBtnText:F("hotkey_map_modal_close_btn_text"),groups:[{title:F("hotkey_map_group_title_common"),items:[{description:F("hotkey_map_item_mute_description"),value:F("hotkey_map_item_mute_value")},{description:F("hotkey_map_item_volume_up_description"),value:F("hotkey_map_item_volume_up_value")},{description:F("hotkey_map_item_volume_down_description"),value:F("hotkey_map_item_volume_down_value")},{description:F("hotkey_map_item_pip_description"),value:F("hotkey_map_item_pip_value")},{description:F("hotkey_map_item_full_screen_description"),value:F("hotkey_map_item_full_screen_value")},{description:F("hotkey_map_item_show_context_menu_description"),value:F("hotkey_map_item_show_context_menu_value")},{description:F("hotkey_map_item_show_hotkey_map_description"),value:F("hotkey_map_item_show_hotkey_map_value")}]},{title:F("hotkey_map_group_title_playback"),items:[{description:F("hotkey_map_item_play_toggle_description"),value:F("hotkey_map_item_play_toggle_value")},{description:F("hotkey_map_item_seek_backward_description"),value:F("hotkey_map_item_seek_backward_value")},{description:F("hotkey_map_item_seek_forward_description"),value:F("hotkey_map_item_seek_forward_value")},{description:F("hotkey_map_item_fast_seek_backward_description"),value:F("hotkey_map_item_fast_seek_backward_value")},{description:F("hotkey_map_item_fast_seek_forward_description"),value:F("hotkey_map_item_fast_seek_forward_value")},{description:F("hotkey_map_item_rate_down_description"),value:F("hotkey_map_item_rate_down_value")},{description:F("hotkey_map_item_rate_up_description"),value:F("hotkey_map_item_rate_up_value")},{description:F("hotkey_map_item_prev_frame_description"),value:F("hotkey_map_item_prev_frame_value")},{description:F("hotkey_map_item_next_frame_description"),value:F("hotkey_map_item_next_frame_value")},{description:F("hotkey_map_item_jump_seek_description"),value:F("hotkey_map_item_jump_seek_value")},{description:F("hotkey_map_item_next_video_description"),value:F("hotkey_map_item_next_video_value")},{description:F("hotkey_map_item_prev_video_description"),value:F("hotkey_map_item_prev_video_value")}]},{title:F("hotkey_map_group_title_subtitles"),items:[{description:F("hotkey_map_item_subtitles_toggle_description"),value:F("hotkey_map_item_subtitles_toggle_value")}]},{title:F("hotkey_map_group_title_episodes"),items:[{description:F("hotkey_map_item_prev_episode_description"),value:Nh.device.isApple?F("hotkey_map_item_prev_episode_mac_value"):F("hotkey_map_item_prev_episode_pc_value")},{description:F("hotkey_map_item_next_episode_description"),value:Nh.device.isApple?F("hotkey_map_item_next_episode_mac_value"):F("hotkey_map_item_next_episode_pc_value")}]}]});import{debounceFn as V_,ValueSubject as jp}from"@vkontakte/videoplayer-shared/es2018";var la=class{constructor({enabled:e=!0}={enabled:!0}){this.isRequested=!1;this.videoElement=void 0;this.playerContainer=void 0;this.externalEventHandlers={};this.eventHandlers={enterpictureinpicture:this.onEnterPictureInPicture.bind(this),leavepictureinpicture:this.onLeavePictureInPicture.bind(this),resize:V_(this.onResize.bind(this),300)};this.info={isActive$:new jp(!1),isEnabled$:new jp(!1),type:0};this.info.isEnabled$=new jp(e)}isSupported(){return document.pictureInPictureEnabled}isActive(){return this.info.isActive$.getValue()}setContext(e){this.svelteContext=e}async revealPictureInPicture(){this.isRequested&&(this.removeEventHandlers(),await this.request(),this.addEventHandlers())}async request(){var e;if(!(!this.isSupported()||this.isActive()))try{await((e=this.videoElement)==null?void 0:e.requestPictureInPicture())}catch(i){this.isRequested=!1}}async exit(){!this.isSupported()||!this.isActive()||await document.exitPictureInPicture()}assignPlayerContainer(e){this.isSupported()&&(this.playerContainer=e)}updateVideoElement(){var e;this.isSupported()&&(this.removeEventHandlers(),this.videoElement=(e=this.playerContainer)==null?void 0:e.querySelector("video"),this.addEventHandlers())}addEventHandlers(){var e,i;(e=this.videoElement)==null||e.addEventListener("enterpictureinpicture",this.eventHandlers.enterpictureinpicture),(i=this.videoElement)==null||i.addEventListener("leavepictureinpicture",this.eventHandlers.leavepictureinpicture)}setExternalEventHandlers(e){this.externalEventHandlers={...e}}removeEventHandlers(){var e,i;(e=this.videoElement)==null||e.removeEventListener("enterpictureinpicture",this.eventHandlers.enterpictureinpicture),(i=this.videoElement)==null||i.removeEventListener("leavepictureinpicture",this.eventHandlers.leavepictureinpicture)}async dispose(){this.removeEventHandlers(),await this.exit(),this.info.isActive$.next(!1),this.isRequested=!1}onEnterPictureInPicture(e){var n,r;let o=e.pictureInPictureWindow;o&&(this.info.isActive$.next(!0),this.isRequested=!0,o.addEventListener("resize",this.eventHandlers.resize),(r=(n=this.externalEventHandlers).enterpictureinpicture)==null||r.call(n,e))}onLeavePictureInPicture(e){var n,r;let o=e.pictureInPictureWindow;this.info.isActive$.next(!1),this.isRequested=!1,o==null||o.removeEventListener("resize",this.eventHandlers.resize),(r=(n=this.externalEventHandlers).leavepictureinpicture)==null||r.call(n,e)}onResize(e){var i,o;(o=(i=this.externalEventHandlers).resize)==null||o.call(i,e)}setEnabled(e){this.info.isEnabled$.next(e)}};function da(t){return t instanceof la}import{devNull as Oh,now as Dh}from"@vkontakte/videoplayer-shared/es2018";Nv();function Jp(t,e){D(e,!1);let i=Ee();Rt(()=>{i.getAdmanWrapper().startPostroll()}),Lr(),H()}import{noop as R_}from"@vkontakte/videoplayer-shared/es2018";var N_=(t,e)=>{t.stopPropagation(),e()()},B_=M('<div class="skip svelte-1k4i25s"> <svg class="icon svelte-1k4i25s" width="7" height="12" viewBox="0 0 7 12" fill="none" xmlns="http://www.w3.org/2000/svg"><path fill-rule="evenodd" clip-rule="evenodd" d="M0.263627 0.263605C-0.0878444 0.615078 -0.0878429 1.18493 0.26363 1.5364L4.72723 5.99998L0.263627 10.4636C-0.0878444 10.8151 -0.0878429 11.3849 0.26363 11.7364C0.615103 12.0879 1.18495 12.0879 1.53642 11.7364L6.63642 6.63637C6.98789 6.2849 6.98789 5.71505 6.63642 5.36358L1.53642 0.263602C1.18495 -0.0878686 0.615098 -0.0878673 0.263627 0.263605Z"></path></svg></div>'),O_=M("<div><!></div>"),D_={hash:"svelte-1k4i25s",code:".container.svelte-1k4i25s {position:absolute;top:14px;right:16px;padding:6px 10px;font-size:13px;color:#fff;background:rgba(0, 0, 0, 0.56);border-radius:6px;transition:color .2s;}.container-mobile.svelte-1k4i25s {bottom:14px;top:unset;font-size:15px;max-width:142px;}.icon.svelte-1k4i25s {margin-left:4px;position:relative;top:2px;fill:var(--white);transition:fill .2s;}.skip.svelte-1k4i25s {width:86px;}.skippable.svelte-1k4i25s {cursor:pointer;color:var(--white);}.skippable.svelte-1k4i25s:hover {color:rgba(255, 255, 255, .75);}.skippable.svelte-1k4i25s:hover .icon:where(.svelte-1k4i25s) {fill:rgba(255, 255, 255, .75);}"};function ef(t,e){D(e,!0),z(t,D_);let[i,o]=De(),n=()=>C(p,"$isMobile",i),r=m(e,"position",3,0),l=m(e,"secondsToWatchBeforeSkip",3,0),d=m(e,"skipAd",3,R_),p=Ee().ui.isMobile,f=h(()=>r()>0&&r()>=l());var v=O_();let u;var $=_(v);{var w=S=>{var T=B_();T.__click=[N_,d];var k=_(T);Ce(),g(T),O(A=>he(k,`${A!=null?A:""} `),[()=>F("skip_ads_now")]),b(S,T)},y=S=>{var T=Xr();O(k=>he(T,k),[()=>F("skip_ads_after",{time:Math.ceil(l()-r()).toFixed(0)})]),b(S,T)};L($,S=>{s(f)?S(w):S(y,!1)})}g(v),O(S=>u=J(v,1,"container svelte-1k4i25s",null,u,S),[()=>({"container-mobile":n(),skippable:s(f)})]),b(t,v),H(),o()}lt(["click"]);var H_=M('<button class="svelte-1wy3dql"> </button>'),F_={hash:"svelte-1wy3dql",code:"button.svelte-1wy3dql {position:absolute;pointer-events:none;bottom:14px;left:16px;font-size:15px;background:white;border:none;padding:6px 10px;border-radius:6px;color:black;}"};function tf(t,e){D(e,!1),z(t,F_),Lr();var i=H_(),o=_(i,!0);g(i),O(n=>he(o,n),[()=>F("visit_advertiser")],kr),b(t,i),H()}var U_=M('<div class="top-gradient-mobile svelte-354ajf"></div>'),z_=M('<div class="container svelte-354ajf"><!> <video style="width: 100%; height: 100%" playsinline=""></video> <!> <!> <!></div>',2),W_={hash:"svelte-354ajf",code:`.container.svelte-354ajf {width:100%;height:100%;}.top-gradient-mobile.svelte-354ajf {position:absolute;width:100%;height:80px;top:0;left:0;pointer-events:none;background:linear-gradient(
54
+ Try switching the\xA0quality to\xA0Auto.`},Ih=x_;var fs=new Map;fs.set(Ph.EN,Ih);fs.set(Ph.RU,Eh);var Ah=new Map,Yp=({language:t,pack:e,fallback:i})=>{if(fs.has(t)){let o=fs.get(t);fs.set(t,{...o,...e})}else fs.set(t,e);Ah.set(t,i)},jp=t=>fs.has(t),Zp=(t,e,i,o)=>{var l;let n=fs.get(t),s=n==null?void 0:n[e];if(kh(s)){let d=(l=Ah.get(t))!=null?l:o,a=d?fs.get(d):void 0;s=a==null?void 0:a[e]}return kh(s)?e+Object.values(i!=null?i:{}).join(" "):i?s.replaceAll(/{(\w+?)}/g,(d,a)=>{var p;return(p=i[a])!=null?p:""}):s},z=(t,e)=>{let{interfaceLanguage$:i}=Ee(),o=$e(i),n=Ft();return Zp(o,t,e,n.defaultLanguage)};import"@vkontakte/videoplayer-core/es2018";var el;(function(t){t.fatal="fatal",t.error="error",t.warning="warning",t.log="log",t.info="info",t.debug="debug",t.critical="critical"})(el||(el={}));var w_=/^\s*at (?:(.*?) ?\()?((?:file|https?|blob|chrome-extension|address|native|eval|webpack|<anonymous>|[-a-z]+:|.*bundle|\/).*?)(?::(\d+))?(?::(\d+))?\)?\s*$/i,C_=/^\s*(.*?)(?:\((.*?)\))?(?:^|@)?((?:file|https?|blob|chrome|webpack|resource|moz-extension).*?:\/.*?|\[native code\]|[^@]*(?:bundle|\d+\.js))(?::(\d+))?(?::(\d+))?\s*$/i,S_=/^\s*at (?:((?:\[object object\])?.+) )?\(?((?:file|ms-appx|https?|webpack|blob):.*?):(\d+)(?::(\d+))?\)?\s*$/i,Hc="?",T_="X-Sentry-Auth",E_=/^(?:(\w+):)\/\/(?:([\w-]+)(?::(\w+))?@)([\w.-]+)(?::(\d+))?\/(.+)/;function I_(t){if(!t.stack)return null;let e=[],i=t.stack.split(`
55
+ `),o,n;for(let s=0;s<i.length;++s){if(o=w_.exec(i[s]))n={filename:o[2]&&o[2].indexOf("address at ")===0?o[2].substr(11):o[2],function:o[1]||Hc,lineno:o[3]?+o[3]:null,colno:o[4]?+o[4]:null};else if(o=S_.exec(i[s]))n={filename:o[2],function:o[1]||Hc,lineno:+o[3],colno:o[4]?+o[4]:null};else if(o=C_.exec(i[s]))s===0&&!o[5]&&t.columnNumber!==void 0&&(e[0].column=t.columnNumber+1),n={filename:o[3],function:o[1]||Hc,lineno:o[4]?+o[4]:null,colno:o[5]?+o[5]:null};else continue;!n.function&&n.lineno&&(n.function=Hc),e.push(n)}return e.length?{value:Mh(t),type:t.name,stacktrace:{frames:e.reverse()}}:null}function Mh(t){return(t&&t.message||"No error message").split(`
56
+ `).filter(i=>!!i)[0]}function k_(t){try{let e=I_(t);if(e)return e}catch(e){}return{value:Mh(t),type:t&&t.name,stacktrace:{frames:[]}}}function P_(){return"xxxxxxxxxxxx4xxxyxxxxxxxxxxxxxxx".replace(/[xy]/g,t=>{let e=Math.random()*16|0;return(t==="x"?e:e&3|8).toString(16)})}var Fc=class{constructor(e){if(e&&e.dsn){let i=E_.exec(e.dsn),o=i?i.slice(1):[],n=o[5].split("/"),s=n.slice(0,-1).join("/");this.apiUrl=o[0]+"://"+o[3]+(o[4]?":"+o[4]:"")+(s?"/"+s:"")+"/api/"+n.pop()+"/store/",this.authHeader="Sentry sentry_version=7,sentry_key="+o[1]+(o[2]?",sentry_secret="+o[2]:"")}this.environment=e&&e.environment}prepare(e){return{...this.getRequestBlank(),exception:{values:[k_(e)]}}}report(e){this.send(this.prepare(e))}send(e){!this.apiUrl||!e||this.createRequest(e)}createRequest(e){let i=new XMLHttpRequest;i.open("POST",this.apiUrl,!0),i.setRequestHeader("Content-type","application/json"),i.setRequestHeader(T_,this.authHeader||""),i.send(JSON.stringify(e))}getRequestBlank(){return{platform:"javascript",event_id:P_(),sdk:{name:"micro-sentry.javascript.core",version:"0.0.0"},timestamp:Date.now()/1e3,environment:this.environment}}};function Lh(t,e){return Object.prototype.toString.call(e)==="[object RegExp]"?e.test(t):typeof e=="string"?t.indexOf(e)!==-1:!1}function A_(){return window}var Uc=class t extends Fc{constructor(e,i=A_()){super(e),this.options=e,this.window=i,this.destroyed=!1,this._state={};let{plugins:o=[],beforeSend:n=p=>p,beforeBreadcrumb:s=p=>p,blacklistUrls:l=[],ignoreErrors:d=[],release:a=void 0}=this.options||{};this.plugins=o.map(p=>new p(this)),this.beforeSend=n,this.beforeBreadcrumb=s,this.blacklistUrls=l,this.ignoreErrors=d,this.release=a}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=>Lh(i,o))):!1}getRequestBlank(){return{request:{url:this.window.location.toString(),headers:{"User-Agent":this.window.navigator.userAgent}},...super.getRequestBlank(),sdk:{name:"micro-sentry.javascript.browser",version:"0.0.0"},...this.state}}send(e){this.destroyed||this.isDeniedUrl(e)||this.isIgnoredError(e)||(super.send(this.beforeSend({release:this.release,...e})),this.setBreadcrumbs(void 0))}getPossibleEventMessages(e){if(e.message)return[e.message];if(e.exception)try{let{type:i="",value:o=""}=e.exception.values&&e.exception.values[0]||{};return[`${o}`,`${i}: ${o}`]}catch(i){return[]}return[]}isDeniedUrl(e){if(!this.blacklistUrls.length)return!1;let i=this.getEventFilterUrl(e);return i?this.blacklistUrls.some(o=>Lh(i,o)):!1}getEventFilterUrl(e){try{if(e.exception){let i=e.exception.values&&e.exception.values[0].stacktrace&&e.exception.values[0].stacktrace.frames;return i&&i[i.length-1].filename||null}return null}catch(i){return null}}extendState(e){this._state=Object.keys(e).reduce((i,o)=>{let n=this._state[o],s=Array.isArray(n)?n:null,l=e[o],d=Array.isArray(l)?l:null;return{...i,[o]:s||d?[...s||[],...d||[]]:{...typeof n!="string"?n:{},...typeof l!="string"?l:{}}}},this._state)}setKeyState(e,i){this._state[e]=i}};import{isNonNullable as zc,Subscription as M_}from"@vkontakte/videoplayer-shared/es2018";var Wc=null,sa=class{constructor(e,i,o={}){!Wc&&e.dsn&&(this.sentryClient=new Uc({dsn:e.dsn,environment:i.env}),this.version=i.version,this.sentrySubscription=new M_,this.options=e,this.context=o,Wc=this)}destroy(){var e,i;(e=this.sentryClient)==null||e.destroy(),(i=this.sentrySubscription)==null||i.unsubscribe(),Wc=null}logIError(e,i=!1){e.thrown&&this.report(e.thrown,{fatal:i,errorType:e.id,category:e.category},{message:e.message,errorData:e.data})}report(e,i={},o={}){let{sentryClient:n,context:s,options:l}=this,{sampleRate:d=0,whiteErrorIdList:a,whiteErrorCategoryList:p=[],blackErrorIdList:f,blackErrorCategoryList:v}=l,{errorType:u,category:y}=i;if(zc(y)&&v.includes(y)||zc(u)&&f.includes(u))return;if(Math.random()<=d||zc(y)&&p.includes(y)||zc(u)&&a.includes(u)){Object.keys(i).length&&n.setTags({version:this.version,...i}),(Object.keys(s).length||Object.keys(o).length)&&n.setExtras({...s,...o});try{u&&n.captureMessage(u,i.fatal?el.fatal:el.error),n.report(e)}catch(b){console.error(b)}}}static getInstance(){return Wc}};var ms=(d=>(d.Thumb="thumb",d.Video="video",d.Ads="ads",d.Crashed="crashed",d.LiveWaitingStart="LiveWaitingStart",d.LiveWaitingRecover="LiveWaitingRecover",d.LiveWaitingRecord="LiveWaitingRecord",d))(ms||{});var Kc=t=>{if(t.requestFullscreen)return t.requestFullscreen();if(t.msRequestFullscreen)return t.msRequestFullscreen();if(t.webkitRequestFullscreen)return t.webkitRequestFullscreen();if(t.mozRequestFullScreen)return t.mozRequestFullScreen();let e=t.querySelector("video");return e!=null&&e.webkitEnterFullscreen?e.webkitEnterFullscreen():Promise.reject()},qc=t=>t.exitFullscreen?t.exitFullscreen():t.msExitFullscreen?t.msExitFullscreen():t.webkitExitFullscreen?t.webkitExitFullscreen():t.mozCancelFullScreen?t.mozCancelFullScreen():Promise.reject(),Vh=t=>{let e=t;return e!=null&&e.webkitExitFullscreen?e==null?void 0:e.webkitExitFullscreen():Promise.reject()},Xl=()=>{let t=document;return t.fullscreenElement||t.mozFullScreenElement||t.webkitFullscreenElement||t.msFullscreenElement},Ms=()=>!!Xl(),Gc=t=>{document.addEventListener("fullscreenchange",t),document.addEventListener("webkitfullscreenchange",t),document.addEventListener("mozfullscreenchange",t),document.addEventListener("MSFullscreenChange",t)},Qc=t=>{document.removeEventListener("fullscreenchange",t),document.removeEventListener("webkitfullscreenchange",t),document.removeEventListener("mozfullscreenchange",t),document.removeEventListener("MSFullscreenChange",t)},Rh=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 Nh}from"@vkontakte/videoplayer-core/es2018";var Bh=()=>({title:z("hotkey_map_modal_title"),closeBtnText:z("hotkey_map_modal_close_btn_text"),groups:[{title:z("hotkey_map_group_title_common"),items:[{description:z("hotkey_map_item_mute_description"),value:z("hotkey_map_item_mute_value")},{description:z("hotkey_map_item_volume_up_description"),value:z("hotkey_map_item_volume_up_value")},{description:z("hotkey_map_item_volume_down_description"),value:z("hotkey_map_item_volume_down_value")},{description:z("hotkey_map_item_pip_description"),value:z("hotkey_map_item_pip_value")},{description:z("hotkey_map_item_full_screen_description"),value:z("hotkey_map_item_full_screen_value")},{description:z("hotkey_map_item_show_context_menu_description"),value:z("hotkey_map_item_show_context_menu_value")},{description:z("hotkey_map_item_show_hotkey_map_description"),value:z("hotkey_map_item_show_hotkey_map_value")}]},{title:z("hotkey_map_group_title_playback"),items:[{description:z("hotkey_map_item_play_toggle_description"),value:z("hotkey_map_item_play_toggle_value")},{description:z("hotkey_map_item_seek_backward_description"),value:z("hotkey_map_item_seek_backward_value")},{description:z("hotkey_map_item_seek_forward_description"),value:z("hotkey_map_item_seek_forward_value")},{description:z("hotkey_map_item_fast_seek_backward_description"),value:z("hotkey_map_item_fast_seek_backward_value")},{description:z("hotkey_map_item_fast_seek_forward_description"),value:z("hotkey_map_item_fast_seek_forward_value")},{description:z("hotkey_map_item_rate_down_description"),value:z("hotkey_map_item_rate_down_value")},{description:z("hotkey_map_item_rate_up_description"),value:z("hotkey_map_item_rate_up_value")},{description:z("hotkey_map_item_prev_frame_description"),value:z("hotkey_map_item_prev_frame_value")},{description:z("hotkey_map_item_next_frame_description"),value:z("hotkey_map_item_next_frame_value")},{description:z("hotkey_map_item_jump_seek_description"),value:z("hotkey_map_item_jump_seek_value")},{description:z("hotkey_map_item_next_video_description"),value:z("hotkey_map_item_next_video_value")},{description:z("hotkey_map_item_prev_video_description"),value:z("hotkey_map_item_prev_video_value")}]},{title:z("hotkey_map_group_title_subtitles"),items:[{description:z("hotkey_map_item_subtitles_toggle_description"),value:z("hotkey_map_item_subtitles_toggle_value")}]},{title:z("hotkey_map_group_title_episodes"),items:[{description:z("hotkey_map_item_prev_episode_description"),value:Nh.device.isApple?z("hotkey_map_item_prev_episode_mac_value"):z("hotkey_map_item_prev_episode_pc_value")},{description:z("hotkey_map_item_next_episode_description"),value:Nh.device.isApple?z("hotkey_map_item_next_episode_mac_value"):z("hotkey_map_item_next_episode_pc_value")}]}]});import{debounceFn as L_,ValueSubject as Xp}from"@vkontakte/videoplayer-shared/es2018";var aa=class{constructor({enabled:e=!0}={enabled:!0}){this.isRequested=!1;this.videoElement=void 0;this.playerContainer=void 0;this.externalEventHandlers={};this.eventHandlers={enterpictureinpicture:this.onEnterPictureInPicture.bind(this),leavepictureinpicture:this.onLeavePictureInPicture.bind(this),resize:L_(this.onResize.bind(this),300)};this.info={isActive$:new Xp(!1),isEnabled$:new Xp(!1),type:0};this.info.isEnabled$=new Xp(e)}isSupported(){return document.pictureInPictureEnabled}isActive(){return this.info.isActive$.getValue()}setContext(e){this.svelteContext=e}async revealPictureInPicture(){this.isRequested&&(this.removeEventHandlers(),await this.request(),this.addEventHandlers())}async request(){var e;if(!(!this.isSupported()||this.isActive()))try{await((e=this.videoElement)==null?void 0:e.requestPictureInPicture())}catch(i){this.isRequested=!1}}async exit(){!this.isSupported()||!this.isActive()||await document.exitPictureInPicture()}assignPlayerContainer(e){this.isSupported()&&(this.playerContainer=e)}updateVideoElement(){var e;this.isSupported()&&(this.removeEventHandlers(),this.videoElement=(e=this.playerContainer)==null?void 0:e.querySelector("video"),this.addEventHandlers())}addEventHandlers(){var e,i;(e=this.videoElement)==null||e.addEventListener("enterpictureinpicture",this.eventHandlers.enterpictureinpicture),(i=this.videoElement)==null||i.addEventListener("leavepictureinpicture",this.eventHandlers.leavepictureinpicture)}setExternalEventHandlers(e){this.externalEventHandlers={...e}}removeEventHandlers(){var e,i;(e=this.videoElement)==null||e.removeEventListener("enterpictureinpicture",this.eventHandlers.enterpictureinpicture),(i=this.videoElement)==null||i.removeEventListener("leavepictureinpicture",this.eventHandlers.leavepictureinpicture)}async dispose(){this.removeEventHandlers(),await this.exit(),this.info.isActive$.next(!1),this.isRequested=!1}onEnterPictureInPicture(e){var n,s;let o=e.pictureInPictureWindow;o&&(this.info.isActive$.next(!0),this.isRequested=!0,o.addEventListener("resize",this.eventHandlers.resize),(s=(n=this.externalEventHandlers).enterpictureinpicture)==null||s.call(n,e))}onLeavePictureInPicture(e){var n,s;let o=e.pictureInPictureWindow;this.info.isActive$.next(!1),this.isRequested=!1,o==null||o.removeEventListener("resize",this.eventHandlers.resize),(s=(n=this.externalEventHandlers).leavepictureinpicture)==null||s.call(n,e)}onResize(e){var i,o;(o=(i=this.externalEventHandlers).resize)==null||o.call(i,e)}setEnabled(e){this.info.isEnabled$.next(e)}};function la(t){return t instanceof aa}import{devNull as Oh,now as Dh}from"@vkontakte/videoplayer-shared/es2018";Nv();function ef(t,e){F(e,!1);let i=Ee();Rt(()=>{i.getAdmanWrapper().startPostroll()}),Nr(),U()}import{noop as V_}from"@vkontakte/videoplayer-shared/es2018";var R_=(t,e)=>{t.stopPropagation(),e()()},N_=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>'),B_=A("<div><!></div>"),O_={hash:"svelte-1k4i25s",code:".container.svelte-1k4i25s {position:absolute;top:14px;right:16px;padding:6px 10px;font-size:13px;color:#fff;background:rgba(0, 0, 0, 0.56);border-radius:6px;transition:color .2s;}.container-mobile.svelte-1k4i25s {bottom:14px;top:unset;font-size:15px;max-width:142px;}.icon.svelte-1k4i25s {margin-left:4px;position:relative;top:2px;fill:var(--white);transition:fill .2s;}.skip.svelte-1k4i25s {width:86px;}.skippable.svelte-1k4i25s {cursor:pointer;color:var(--white);}.skippable.svelte-1k4i25s:hover {color:rgba(255, 255, 255, .75);}.skippable.svelte-1k4i25s:hover .icon:where(.svelte-1k4i25s) {fill:rgba(255, 255, 255, .75);}"};function tf(t,e){F(e,!0),K(t,O_);let[i,o]=He(),n=()=>C(p,"$isMobile",i),s=m(e,"position",3,0),l=m(e,"secondsToWatchBeforeSkip",3,0),d=m(e,"skipAd",3,V_),p=Ee().ui.isMobile,f=g(()=>s()>0&&s()>=l());var v=B_();let u;var y=_(v);{var w=S=>{var T=N_();T.__click=[R_,d];var E=_(T);Se(),h(T),O(M=>_e(E,`${M!=null?M:""} `),[()=>z("skip_ads_now")]),$(S,T)},b=S=>{var T=Xr();O(E=>_e(T,E),[()=>z("skip_ads_after",{time:Math.ceil(l()-s()).toFixed(0)})]),$(S,T)};L(y,S=>{r(f)?S(w):S(b,!1)})}h(v),O(S=>u=X(v,1,"container svelte-1k4i25s",null,u,S),[()=>({"container-mobile":n(),skippable:r(f)})]),$(t,v),U(),o()}lt(["click"]);var D_=A('<button class="svelte-1wy3dql"> </button>'),H_={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 of(t,e){F(e,!1),K(t,H_),Nr();var i=D_(),o=_(i,!0);h(i),O(n=>_e(o,n),[()=>z("visit_advertiser")],Mr),$(t,i),U()}var F_=A('<div class="top-gradient-mobile svelte-354ajf"></div>'),U_=A('<div class="container svelte-354ajf"><!> <video style="width: 100%; height: 100%" playsinline=""></video> <!> <!> <!></div>',2),z_={hash:"svelte-354ajf",code:`.container.svelte-354ajf {width:100%;height:100%;}.top-gradient-mobile.svelte-354ajf {position:absolute;width:100%;height:80px;top:0;left:0;pointer-events:none;background:linear-gradient(
57
57
  360deg,
58
58
  rgba(0, 0, 0, 0) 0%,
59
59
  rgba(0, 0, 0, 0.05) 12%,
@@ -63,7 +63,7 @@ Try switching the\xA0quality to\xA0Auto.`},Ih=w_;var fs=new Map;fs.set(Ph.EN,Ih)
63
63
  rgba(0, 0, 0, 0.5) 77%,
64
64
  rgba(0, 0, 0, 0.55) 88%,
65
65
  rgba(0, 0, 0, 0.65) 100%
66
- );}`};function Zl(t,e){D(e,!0),z(t,W_);let[i,o]=De(),n=()=>C(W,"$canSkipAd",i),r=()=>C(K,"$adPlaybackState",i),l=()=>C(k,"$isMobile",i),d=()=>C(U,"$adPosition",i),a=()=>C(Y,"$secondsToWatchBeforeSkipAd",i),p=()=>C(T,"$isVideoEnded",i),f=m(e,"adsSlotId",3,void 0),v=m(e,"adsParams",3,void 0),u=m(e,"adsPreviewParam",3,void 0),$=m(e,"adsAutoplayParam",3,void 0),w=m(e,"duration",3,0),y=Ee(),S=Ft(),T=y.state.isEnded$,k=y.ui.isMobile,A=S.ads.isMobileGoToSiteButton,I=j(void 0),E=j(void 0),V=!1,K=y.ads.playbackState,W=y.ads.canSkip,U=y.ads.position,Y=y.ads.secondsToWatchBeforeSkip,ne=h(()=>n()&&r()!=="inactive"),G=h(()=>l()&&r()!=="inactive"&&A);Rt(()=>{var X;let ye=y.getAdmanWrapper();if(Oh.push("ui",{key:"videoplayer_embed",strings:["new","adman_ads_mount"],numbers:[Dh(),f()]}),!f()){ye.onAdmanLoadingError();return}let ge=Te=>{ye.initAdman(Te),V=!0},de=new AbortController,ue=()=>{de.abort()},{width:xe,height:Z}=$e(y.ui.playerSize),qe=$e(y.ui.isFullscreen),Xe=(X=$())!=null?X:$e(y.ui.isAutoplay),ke={width:xe,height:Z,isFullscreen:qe,isAutoplay:Xe,adsContainer:s(I),adsVideoElement:s(E),slotId:f(),params:v(),previewParam:u(),duration:w()};return window.AdmanHTML?ge(ke):ye.loadAdman(de.signal).then(()=>{ge(ke)}).catch(()=>{ye.onAdmanLoadingError()}),()=>{Oh.push("ui",{key:"videoplayer_embed",strings:["new","adman_ads_unmount"],numbers:[Dh(),f()]}),!V&&ue()}});var ce=z_(),le=_(ce);{var we=ye=>{var ge=U_();b(ye,ge)};L(le,ye=>{l()&&ye(we)})}var Ve=P(le,2);ot(Ve,ye=>B(E,ye),()=>s(E));var ve=P(Ve,2);{var ae=ye=>{ef(ye,{get position(){return d()},get secondsToWatchBeforeSkip(){return a()},get skipAd(){return y.actions.internal.skipAd}})};L(ve,ye=>{s(ne)&&ye(ae)})}var Le=P(ve,2);{var te=ye=>{Jp(ye,{})};L(Le,ye=>{p()&&ye(te)})}var N=P(Le,2);{var Be=ye=>{tf(ye,{})};L(N,ye=>{s(G)&&ye(Be)})}g(ce),ot(ce,ye=>B(I,ye),()=>s(I)),b(t,ce),H(),o()}var cn=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(r=>String(r).padStart(2,"0")).join(":");return i>0&&(n=`${i}:${n}`),n};var q_=Se('<svg><!><path fill="none" stroke="var(--btn-color, #fff)" stroke-width="2" d="M6.41 1A6.46 6.46 0 0 0 3 1.55 3.5 3.5 0 0 0 1.55 3 6.46 6.46 0 0 0 1 6.41v7.18A6.46 6.46 0 0 0 1.55 17 3.5 3.5 0 0 0 3 18.45a6.46 6.46 0 0 0 3.41.55h29.18a6.46 6.46 0 0 0 3.41-.55A3.5 3.5 0 0 0 40.45 17a6.46 6.46 0 0 0 .55-3.41V6.41A6.46 6.46 0 0 0 40.45 3 3.5 3.5 0 0 0 39 1.55 6.46 6.46 0 0 0 35.59 1z"></path><path fill="var(--btn-color, #f0f2f5)" fill-rule="evenodd" d="M8 5a1 1 0 0 1 1 1v7h3a1 1 0 0 1 1 .88V14a1 1 0 0 1-1 1H8a1 1 0 0 1-1-.77v-.11A.5.5 0 0 1 7 14V6a1 1 0 0 1 .88-1zm8 0a1 1 0 0 1 1 1v8a1 1 0 0 1-.88 1H16a1 1 0 0 1-1-1V6a1 1 0 0 1 .88-1zm18 0a1 1 0 0 1 1 .88V6a1 1 0 0 1-1 1h-3v2h3a1 1 0 0 1 1 .88V10a1 1 0 0 1-1 1h-3v2h3a1 1 0 0 1 1 .88V14a1 1 0 0 1-1 1h-4a1 1 0 0 1-1-.77v-.11a.5.5 0 0 1 0-.12V6a1 1 0 0 1 .56-.9A1 1 0 0 1 30 5zm-8 0a1 1 0 0 1 1 1v.1a.9.9 0 0 1-.11.35l-2.47 7.57a1.48 1.48 0 0 1-1.32.98h-.2a1.48 1.48 0 0 1-1.31-.95l-2.47-7.57a.9.9 0 0 1-.12-.36V6a1 1 0 0 1 .88-1H20a1 1 0 0 1 1 1v-.1l2 6.4 2-6.4a1 1 0 0 1 1-.9"></path></svg>');function of(t,e){let i=Me(e,["$$slots","$$events","$$legacy","children"]);var o=q_();Ie(o,()=>({xmlns:"http://www.w3.org/2000/svg",width:"42",height:"20","aria-hidden":"true","data-testid":"live-icon",role:"img",...i}));var n=_(o);be(n,()=>{var r;return(r=e.children)!=null?r:oe}),Ce(2),g(o),b(t,o)}var K_=Se('<svg><!><rect width="42" height="20" fill="var(--timeline-slider-filled-active-live-bg, #ff3347)" rx="5"></rect><path fill="#f2f3f5" fill-rule="evenodd" d="M8 5a1 1 0 0 0-1 1v8a1 1 0 0 0 1 1h4a1 1 0 1 0 0-2H9V6a1 1 0 0 0-1-1m7 1a1 1 0 1 1 2 0v8a1 1 0 1 1-2 0zm15-1a1 1 0 0 0-1 1v8a1 1 0 0 0 1 1h4a1 1 0 1 0 0-2h-3v-2h3a1 1 0 1 0 0-2h-3V7h3a1 1 0 1 0 0-2zm-8.325 9.31-2.55-7.824a1 1 0 0 1-.117-.363L19 6.1h.005a1 1 0 1 1 1.99-.199L21 5.9l2 6.4 2-6.4h.005a1 1 0 0 1 1.99.2H27l-.008.023a1 1 0 0 1-.118.363l-2.55 7.824a1 1 0 0 1-.95.69h-.748a1 1 0 0 1-.95-.69z" clip-rule="evenodd"></path></svg>');function nf(t,e){let i=Me(e,["$$slots","$$events","$$legacy","children"]);var o=K_();Ie(o,()=>({xmlns:"http://www.w3.org/2000/svg",width:"42",height:"20",fill:"none","aria-hidden":"true","data-testid":"live-active-icon",role:"img",...i}));var n=_(o);be(n,()=>{var r;return(r=e.children)!=null?r:oe}),Ce(2),g(o),b(t,o)}function Xl(t,e){let i=m(e,"isActive",3,!1);var o=Ue(),n=fe(o);{var r=d=>{nf(d,{})},l=d=>{of(d,{})};L(n,d=>{i()?d(r):d(l,!1)})}b(t,o)}var Q_=M('<div class="equalizer svelte-1s15d2i"><div class="col svelte-1s15d2i"></div> <div class="col svelte-1s15d2i"></div> <div class="col svelte-1s15d2i"></div></div>'),G_=M('<div class="live-icon svelte-1s15d2i"><!></div>'),Y_=M('<span class="text svelte-1s15d2i"> </span>'),j_=M("<div><!> <!></div>"),Z_={hash:"svelte-1s15d2i",code:`.wrapper.svelte-1s15d2i {padding:2px 6px;white-space:nowrap;border-radius:4px;background-color:var(--black-alpha-40);transition:visibility var(--controls-transition-duration),
66
+ );}`};function ed(t,e){F(e,!0),K(t,z_);let[i,o]=He(),n=()=>C(D,"$canSkipAd",i),s=()=>C(Y,"$adPlaybackState",i),l=()=>C(E,"$isMobile",i),d=()=>C(H,"$adPosition",i),a=()=>C(q,"$secondsToWatchBeforeSkipAd",i),p=()=>C(T,"$isVideoEnded",i),f=m(e,"adsSlotId",3,void 0),v=m(e,"adsParams",3,void 0),u=m(e,"adsPreviewParam",3,void 0),y=m(e,"adsAutoplayParam",3,void 0),w=m(e,"duration",3,0),b=Ee(),S=Ft(),T=b.state.isEnded$,E=b.ui.isMobile,M=S.ads.isMobileGoToSiteButton,I=j(void 0),k=j(void 0),R=!1,Y=b.ads.playbackState,D=b.ads.canSkip,H=b.ads.position,q=b.ads.secondsToWatchBeforeSkip,J=g(()=>n()&&s()!=="inactive"),W=g(()=>l()&&s()!=="inactive"&&M);Rt(()=>{var ee;let ye=b.getAdmanWrapper();if(Oh.push("ui",{key:"videoplayer_embed",strings:["new","adman_ads_mount"],numbers:[Dh(),f()]}),!f()){ye.onAdmanLoadingError();return}let he=Ce=>{ye.initAdman(Ce),R=!0},ce=new AbortController,ue=()=>{ce.abort()},{width:we,height:Z}=$e(b.ui.playerSize),Ke=$e(b.ui.isFullscreen),Xe=(ee=y())!=null?ee:$e(b.ui.isAutoplay),Ae={width:we,height:Z,isFullscreen:Ke,isAutoplay:Xe,adsContainer:r(I),adsVideoElement:r(k),slotId:f(),params:v(),previewParam:u(),duration:w()};return window.AdmanHTML?he(Ae):ye.loadAdman(ce.signal).then(()=>{he(Ae)}).catch(()=>{ye.onAdmanLoadingError()}),()=>{Oh.push("ui",{key:"videoplayer_embed",strings:["new","adman_ads_unmount"],numbers:[Dh(),f()]}),!R&&ue()}});var de=U_(),ie=_(de);{var ve=ye=>{var he=F_();$(ye,he)};L(ie,ye=>{l()&&ye(ve)})}var Ie=P(ie,2);ot(Ie,ye=>B(k,ye),()=>r(k));var fe=P(Ie,2);{var re=ye=>{tf(ye,{get position(){return d()},get secondsToWatchBeforeSkip(){return a()},get skipAd(){return b.actions.internal.skipAd}})};L(fe,ye=>{r(J)&&ye(re)})}var ke=P(fe,2);{var te=ye=>{ef(ye,{})};L(ke,ye=>{p()&&ye(te)})}var N=P(ke,2);{var Oe=ye=>{of(ye,{})};L(N,ye=>{r(W)&&ye(Oe)})}h(de),ot(de,ye=>B(I,ye),()=>r(I)),$(t,de),U(),o()}var pn=t=>{if(!isFinite(t))return"00:00";let e=Math.round(t),i=Math.floor(e/(60*60));e-=i*3600;let o=Math.floor(e/60);e-=o*60;let n=[o,e].map(s=>String(s).padStart(2,"0")).join(":");return i>0&&(n=`${i}:${n}`),n};var W_=Te('<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 nf(t,e){let i=Ve(e,["$$slots","$$events","$$legacy","children"]);var o=W_();Pe(o,()=>({xmlns:"http://www.w3.org/2000/svg",width:"42",height:"20","aria-hidden":"true","data-testid":"live-icon",role:"img",...i}));var n=_(o);xe(n,()=>{var s;return(s=e.children)!=null?s:se}),Se(2),h(o),$(t,o)}var K_=Te('<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 rf(t,e){let i=Ve(e,["$$slots","$$events","$$legacy","children"]);var o=K_();Pe(o,()=>({xmlns:"http://www.w3.org/2000/svg",width:"42",height:"20",fill:"none","aria-hidden":"true","data-testid":"live-active-icon",role:"img",...i}));var n=_(o);xe(n,()=>{var s;return(s=e.children)!=null?s:se}),Se(2),h(o),$(t,o)}function td(t,e){let i=m(e,"isActive",3,!1);var o=Ue(),n=me(o);{var s=d=>{rf(d,{})},l=d=>{nf(d,{})};L(n,d=>{i()?d(s):d(l,!1)})}$(t,o)}var q_=A('<div class="equalizer svelte-1s15d2i"><div class="col svelte-1s15d2i"></div> <div class="col svelte-1s15d2i"></div> <div class="col svelte-1s15d2i"></div></div>'),G_=A('<div class="live-icon svelte-1s15d2i"><!></div>'),Q_=A('<span class="text svelte-1s15d2i"> </span>'),Y_=A("<div><!> <!></div>"),j_={hash:"svelte-1s15d2i",code:`.wrapper.svelte-1s15d2i {padding:2px 6px;white-space:nowrap;border-radius:4px;background-color:var(--black-alpha-40);transition:visibility var(--controls-transition-duration),
67
67
  opacity var(--controls-transition-duration);}.wrapper.live.svelte-1s15d2i {font-size:0;line-height:20px;height:20px;border-radius:2px;background:var(--red);padding:0 7px;}.equalizer.svelte-1s15d2i {display:inline-block;vertical-align:middle;position:relative;width:10px;height:10px;margin-top:-4px;margin-right:4px;}.live.svelte-1s15d2i .equalizer:where(.svelte-1s15d2i) {margin-top:-2px;}.equalizer.svelte-1s15d2i .col:where(.svelte-1s15d2i) {width:2px;height:10px;margin-right:2px;background:var(--btn-color, --white);position:absolute;bottom:0;transform-origin:50% 100%;
68
68
  animation: 1.5s infinite linear alternate;animation-play-state:paused;}.playing.svelte-1s15d2i .equalizer:where(.svelte-1s15d2i) .col:where(.svelte-1s15d2i) {animation-play-state:running;}.equalizer.svelte-1s15d2i .col:where(.svelte-1s15d2i):nth-child(1) {left:0;
69
69
  animation-name: svelte-1s15d2i-thumb-timer-equalizer-col1;}.equalizer.svelte-1s15d2i .col:where(.svelte-1s15d2i):nth-child(2) {left:3px;
@@ -134,10 +134,10 @@ Try switching the\xA0quality to\xA0Auto.`},Ih=w_;var fs=new Map;fs.set(Ph.EN,Ih)
134
134
  100% {
135
135
  transform: scaleY(0.6);
136
136
  }
137
- }.text.svelte-1s15d2i {font-size:13px;line-height:16px;color:var(--controls-time);font-weight:500;}`};function Jl(t,e){z(t,Z_);let i=m(e,"withEqualizer",3,!1),o=m(e,"isLive",3,!1),n=m(e,"isPlaying",3,!1);var r=j_();let l;var d=_(r);{var a=u=>{var $=Q_();b(u,$)};L(d,u=>{i()&&u(a)})}var p=P(d,2);{var f=u=>{var $=G_(),w=_($);Xl(w,{isActive:!0}),g($),b(u,$)},v=u=>{var $=Y_(),w=_($,!0);g($),O(()=>he(w,e.time)),b(u,$)};L(p,u=>{o()?u(f):u(v,!1)})}g(r),O(u=>l=J(r,1,"wrapper svelte-1s15d2i",null,l,u),[()=>({live:o(),playing:n()})]),b(t,r)}var X_=M('<div role="timer" data-testid="thumb-timer"><!></div>'),J_={hash:"svelte-1b40w20",code:`.thumb-timer.svelte-1b40w20 {position:absolute;z-index:var(--thumb-timer-z-index);bottom:0;right:0;margin:8px;transition:visibility var(--controls-transition-duration),
138
- opacity var(--controls-transition-duration);}.thumb-timer.hidden.svelte-1b40w20 {visibility:hidden;opacity:0;}`};function ed(t,e){D(e,!0),z(t,J_);let i=m(e,"isHidden",3,!1),o=m(e,"isLive",3,!1),n=m(e,"isPlaying",3,!1),r=h(()=>cn(e.duration-e.position));var l=X_();let d;var a=_(l);Jl(a,{get time(){return s(r)},get isLive(){return o()},get isPlaying(){return n()},withEqualizer:!0}),g(l),O(p=>d=J(l,1,"thumb-timer svelte-1b40w20",null,d,p),[()=>({hidden:i()})]),b(t,l),H()}var ol=t=>{if(!navigator.clipboard){Hh(t);return}navigator.clipboard.writeText(t).catch(()=>Hh(t))};function Hh(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 cb}from"@vkontakte/videoplayer-core/es2018";import{clientChecker as Fh}from"@vkontakte/videoplayer-core/es2018";var rf="focus-hidden";var vr=t=>{t.stopPropagation(),t.preventDefault()},sf=t=>{var e,i;(i=(e=t.parentNode)==null?void 0:e.firstElementChild)==null||i.classList.remove(rf)},tb=t=>{var i;let e=t.previousElementSibling;e||(e=(i=t.parentNode)==null?void 0:i.lastElementChild),e==null||e.focus()},ib=t=>{var i;let e=t.nextElementSibling;e||(e=(i=t.parentNode)==null?void 0:i.firstElementChild),e==null||e.focus()},ob=t=>{let e=t.code;return e==="Tab"&&!t.shiftKey||e==="ArrowDown"},nb=t=>{let e=t.code;return e==="Tab"||e==="ArrowUp"},Uh=t=>t.code==="Escape",rb=t=>t.code==="ArrowLeft",td=(t,e=[])=>{let i=t.code;return["Enter","Space",...e].includes(i)},zh=t=>{ob(t)?(vr(t),ib(t.target)):nb(t)&&(vr(t),tb(t.target))},Ls=t=>!Fh.device.isAndroid&&(t==null?void 0:t.detail)===0||Fh.device.isAndroid&&(t==null?void 0:t.pointerType)==="",nl=async(t,e,i)=>{await $o(),t&&!t.classList.contains("opened")&&!e&&$e(i)&&(await $o(),i.set(!1),t.focus())},Wh=async(t,e,i)=>{await $o(),t&&!e&&$e(i)&&(i.set(!1),t.focus())},id=async(t,e,i,o=!1)=>{if(await $o(),!!t&&e&&!o){let r=t.children[0];r==null||r.classList.toggle(rf,!i),r==null||r.focus()}},qh=async(t,e)=>{setTimeout(()=>{let i=t[e];!!i&&i.focus()},100)},Qc=(t,e)=>{zh(t),sf(t.target),Uh(t)&&(vr(t),e())},Gc=async(t,e)=>{td(t,["ArrowRight"])&&(vr(t),e())},Kh=async(t,e,i)=>{if(zh(t),rb(t)){vr(t),e();return}Uh(t)&&(vr(t),i())},rl=(t,e)=>{td(t)&&(vr(t),e())},Qh=(t,e,i)=>{if(td(t))vr(t),i(!e);else{let o=t.code;if(o==="ArrowLeft"&&e){i(!1),vr(t);return}o==="ArrowRight"&&!e&&(i(!0),vr(t))}},Gh=t=>{let e=t.getBoundingClientRect(),i=-14,o=e.left+e.width,n=e.top+i;return{right:o,bottom:n}},Yh=t=>{if(!t)return{top:0,left:0};let e=t.getBoundingClientRect(),i=-58,o=8,n=e.left+o;return{bottom:e.bottom+i,left:n}};import{isNullable as Yc,isValidURL as ub}from"@vkontakte/videoplayer-shared/es2018";var Vr={"copy-link":100,"copy-link-timestamp":200,"copy-embed-code":300,pip:400,"video-loop":500,rotate:600,report:700,"save-debug":800,"save-trace":900,"debug-info":1e3};import{noop as jh}from"@vkontakte/videoplayer-shared/es2018";var ab=(t,e)=>{rl(t,()=>e())},lb=M('<li class="item svelte-1hm4mm9" role="menuitem" tabindex="0"> </li>'),db={hash:"svelte-1hm4mm9",code:".item.svelte-1hm4mm9 {padding:8px 16px;cursor:pointer;position:relative;display:block;color:rgba(255, 255, 255, 0.72);font-size:13px;line-height:18px;letter-spacing:-0.14px;white-space:nowrap;}.item.svelte-1hm4mm9:hover {background:rgba(66, 66, 66, .5);color:var(--white);}"};function af(t,e){D(e,!0),z(t,db);let i=m(e,"onClick",3,jh),o=m(e,"closeContextMenu",3,jh),n=d=>{d==null||d.stopPropagation(),i()(),o()()};var r=lb();r.__click=n,r.__keydown=[ab,n];var l=_(r,!0);g(r),O(()=>{var d;Ne(r,"aria-label",(d=e.ariaLabel)!=null?d:e.label),Ne(r,"data-testid",e.id),he(l,e.label)}),b(t,r),H()}lt(["click","keydown"]);var ua=(t,e)=>t.weight-e.weight;var od=(o=>(o.OPEN_SUB_MENU="OPEN_SUB_MENU",o.CLICK="CLICK",o.SWITCH="SWITCH",o))(od||{});var pb=(t,e)=>{Qc(t,e)},fb=t=>{t.preventDefault()},mb=M('<ul role="menu" class="svelte-1p5ukkp"></ul>'),vb={hash:"svelte-1p5ukkp",code:"ul.svelte-1p5ukkp {position:absolute;z-index:var(--context-menu-z-index);border-radius:8px;background:rgba(0, 0, 0, 0.72);transition:visibility .1s,opacity .1s;list-style:none;margin:0;padding:6px 0;max-height:100%;max-width:100%;overflow-x:hidden;overflow-y:auto;}"};function lf(t,e){D(e,!0),z(t,vb);let[i,o]=De(),n=()=>C(ne,"$isLive$",i),r=()=>C(we,"$isPiPEnabled$",i),l=()=>C(Y,"$chromecastState$",i),d=()=>C(Ve,"$pictureInPictureApiIsActive$",i),a=()=>C(le,"$isLooped$",i),p=()=>C(G,"$positionExact$",i),f=()=>C(K,"$additionalContextMenuItems$",i),v=m(e,"visible",3,!1),u=m(e,"position",19,()=>({top:0,left:0})),$=m(e,"playerContainerRef",3,void 0),w=m(e,"controlsContainerRef",3,void 0),y=m(e,"menuElementRef",15,void 0),S=j(0),T=j(0),k=Ee(),{pictureInPicture$:A}=co(),I=Ft(),E=k.ui.contextMenu.visible$,V=k.ui.debugPanelVisible,K=k.ui.additionalContextMenuItems$,W=k.ui.t,U=k.actions.internal.togglePictureInPicture,Y=k.state.chromecastState$,ne=k.state.isLive$,G=k.state.positionExact$,ce=k.state.isInteractive,le=k.state.looped$,{isEnabled$:we,isActive$:Ve}=A,ve=h(()=>{var Ae;return I.features.copyVideoLink&&((Ae=k.callbacks)==null?void 0:Ae.onCopyVideoLink)}),ae=h(()=>s(ve)&&!n()&&!ce),Le=h(()=>{var Ae;return!!((Ae=k.callbacks)!=null&&Ae.onCopyEmbedCodeClicked)}),te=h(()=>r()&&l()!==cb.CONNECTED&&!ce),N=h(()=>!ce),Be=h(()=>I.features.videoRotate&&!ce),ye=h(()=>I.showSupport&&!d()),ge=h(()=>I.features.saveTraceInfoToFile),de=()=>{var Ae;E.set(!1),(Ae=e.returnFocus)==null||Ae.call(e)},ue=(Ae,Ye)=>{if(!y()||!$()||!w())return;let Re=y().getBoundingClientRect(),tt=$().getBoundingClientRect();B(S,Ae-tt.left),B(T,Ye-tt.top),s(S)+Re.width>tt.width&&B(S,tt.width-Re.width),s(T)+Re.height>tt.height&&B(T,tt.height-Re.height),B(S,Math.max(s(S),0),!0),B(T,Math.max(s(T),0),!0)};We(()=>{(async()=>{if(y()&&$()&&w()){await $o();let{top:Ye,left:Re,bottom:tt,right:kt}=u(),Mt=Re!=null?Re:0,Je=Ye!=null?Ye:0,ni=y().getBoundingClientRect();Yc(Re)&&!Yc(kt)&&(Mt=kt-ni.width),Yc(Ye)&&!Yc(tt)&&(Je=tt-ni.height),Mt=Math.max(Mt,0),Je=Math.max(Je,0),ue(Mt,Je)}})()});let xe=()=>{k.actions.internal.videoRotate()},Z=()=>{ub(e.supportLink)&&window.open(e.supportLink,"_blank"),k.actions.internal.reportProblem(),k.actions.internal.pause()},qe=()=>{let Ae=k.actions.internal.getDebugTextData();if(I.features.saveDebugInfoToFile){let Ye=new Blob([...Ae],{type:"plain/text"}),Re=window.URL.createObjectURL(Ye);sa(Re,"vk_player_debug_info","txt")}else ol(k.actions.internal.getDebugTextData())},Xe=()=>{let Ae=k.actions.internal.getTraceTextData(),Ye=new Blob([...Ae],{type:"application/json"}),Re=window.URL.createObjectURL(Ye);sa(Re,"vk_player_trace_info","json")},ke=()=>{V.set(!0)},X=async()=>{var Ae;try{U()}finally{(Ae=e.returnFocus)==null||Ae.call(e)}},Te=()=>{k.actions.internal.setLooped(!a())},Ke=()=>{var Ae,Ye;if(s(Le)){let Re=(Ye=(Ae=k.callbacks)==null?void 0:Ae.onCopyEmbedCodeClicked)==null?void 0:Ye.call(Ae);Re&&ol(Re)}},rt=(Ae=!1)=>{var Ye,Re;if((Ye=k.callbacks)!=null&&Ye.onCopyVideoLink){let tt=(Re=k.callbacks)==null?void 0:Re.onCopyVideoLink(Ae,p());tt&&ol(tt)}},ct=h(()=>I.features.saveDebugInfoToFile?W("menu_save_debug"):W("menu_copy_debug")),ht=h(()=>s(ve)?{id:"copy-link",weight:Vr["copy-link"],label:W("menu_copy_video_link"),onClick:()=>rt()}:void 0),xt=h(()=>s(ae)?{id:"copy-link-timestamp",weight:Vr["copy-link-timestamp"],label:W("menu_copy_video_link_with_timestamp"),onClick:()=>rt(!0)}:void 0),Qe=h(()=>s(Le)?{id:"copy-embed-code",weight:Vr["copy-embed-code"],label:W("menu_copy_embed_code"),onClick:Ke}:void 0),qt=h(()=>s(te)?{id:"pip",weight:Vr.pip,label:d()?W("menu_pip_close"):W("menu_pip"),onClick:X}:void 0),Yt=h(()=>s(N)?{id:"video-loop",weight:Vr["video-loop"],label:a()?W("menu_video_loop_off"):W("menu_video_loop_on"),ariaLabel:W("aria_label_menu_loop"),onClick:Te}:void 0),Qt=h(()=>s(Be)?{id:"rotate",weight:Vr.rotate,label:W("menu_video_rotate"),ariaLabel:W("aria_label_menu_rotate"),onClick:xe}:void 0),Nt=h(()=>s(ye)?{id:"report",weight:Vr.report,label:W("menu_report"),ariaLabel:`${W("menu_report")}. ${W("aria_label_new_tab_alert")}`,onClick:Z}:void 0),ee=h(()=>({id:"save-debug",weight:Vr["save-debug"],label:s(ct),onClick:qe})),At=h(()=>s(ge)?{id:"save-trace",weight:Vr["save-trace"],label:W("menu_save_debug"),onClick:Xe}:void 0),me=h(()=>({id:"debug-info",weight:Vr["debug-info"],label:W("menu_debug_overlay"),ariaLabel:W("aria_label_menu_debug_overlay"),onClick:ke})),_e=h(()=>[s(ht),s(xt),s(Qe),s(qt),s(Yt),s(Qt),s(Nt),s(ee),s(At),s(me),...f()].filter(Ae=>!!Ae).sort(ua));var se=Ue(),Oe=fe(se);{var ze=Ae=>{var Ye=mb();Ye.__contextmenu=[fb],Ye.__keydown=[pb,de],$i(Ye,21,()=>s(_e),Re=>Re.id,(Re,tt)=>{af(Re,{get id(){return s(tt).id},get label(){return s(tt).label},get ariaLabel(){return s(tt).ariaLabel},get onClick(){return s(tt).onClick},closeContextMenu:de})}),g(Ye),ot(Ye,Re=>y(Re),()=>y()),O(()=>{var Re,tt;return st(Ye,`top: ${(Re=s(T))!=null?Re:""}px; left: ${(tt=s(S))!=null?tt:""}px;`)}),b(Ae,Ye)};L(Oe,Ae=>{v()&&Ae(ze)})}b(t,se),H(),o()}lt(["contextmenu","keydown"]);var jc=class{constructor(e){this.value=e,this.next=null}};var sl=class{constructor(e){this.top=null,this.bottom=null,this.size=0,this.maxSize=e}push(e){let i=new jc(e);this.top?(this.top.next=i,this.top=i):(this.top=i,this.bottom=i),this.size++,this.size>this.maxSize&&this.bottom&&(this.bottom=this.bottom.next)}getValuesFromBottom(){let e=[],i=this.bottom;for(;i;)e.push(i.value),i=i.next;return e}};var gb=M('<div class="container svelte-1ssl9eb"><canvas class="svelte-1ssl9eb"></canvas></div>'),hb={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 nd(t,e){D(e,!0),z(t,hb);let i=m(e,"values",19,()=>[]),o=j(void 0),n=j(null),r=16,l=120,d=60,a=l/d;Rt(()=>{s(o).width=l,s(o).height=r,B(n,s(o).getContext("2d"),!0)});function p(u,$,w,y,S){S===0&&(S=1),u.fillStyle="#fff",u.fillRect($,w,y,S)}We(()=>{let u="";if(s(n)){let $=i()[0];for(let y=1;y<i().length;y++)i()[y]>$&&($=i()[y]);s(n).clearRect(0,0,l,r);let w=d-1;for(let y=i().length-1;y>=0;y--){let S=w*a,T=$>0?r*(i()[y]/$):0;p(s(n),S,0,a,T),u=T+" "+u,w--}}});var f=gb(),v=_(f);ot(v,u=>B(o,u),()=>s(o)),g(f),b(t,f),H()}import{safeStorage as Zh}from"@vkontakte/videoplayer-shared/es2018";var _b=(t,e)=>{t.stopPropagation(),Zh.remove(Wl),e.set(!1)},bb=M('<div class="svelte-4deykz"><div class="svelte-4deykz">Video id</div> <span> </span></div>'),$b=M('<div class="svelte-4deykz"><div class="svelte-4deykz">VSID</div> <span> </span></div>'),yb=M('<div class="svelte-4deykz"><div class="svelte-4deykz">Provider</div> <span> </span></div>'),xb=M('<div class="svelte-4deykz"><div class="svelte-4deykz">Streams</div> <span> </span></div>'),wb=M('<div class="svelte-4deykz"><div class="svelte-4deykz">Viewport</div> <span> </span></div>'),Cb=M('<div class="svelte-4deykz"><div class="svelte-4deykz">Video size</div> <span> </span></div>'),Sb=M('<div class="svelte-4deykz"><div class="svelte-4deykz">CDN host</div> <span> </span></div>'),Tb=M('<div class="svelte-4deykz"><div class="svelte-4deykz">Volume</div> <span> </span></div>'),Eb=M('<div class="svelte-4deykz"><div class="svelte-4deykz">Position</div> <span> </span></div>'),Ib=M('<div class="svelte-4deykz"><div class="svelte-4deykz">Buffer</div> <span> </span></div>'),kb=M('<div class="svelte-4deykz"><div class="svelte-4deykz">Live latency</div> <span> </span></div>'),Pb=M('<div class="svelte-4deykz"><div class="svelte-4deykz">Segment</div> <span> </span></div>'),Ab=M('<div class="svelte-4deykz"><div class="svelte-4deykz">Network</div> <!> <span> </span></div>'),Mb=M('<div class="svelte-4deykz"><div class="svelte-4deykz">V bitrate</div> <!> <span> </span></div>'),Lb=M('<div role="region"><button class="close svelte-4deykz" title="\u0437\u0430\u043A\u0440\u044B\u0442\u044C">[x]</button> <div class="content svelte-4deykz"><div class="svelte-4deykz"><div class="svelte-4deykz">Version</div> <span> </span></div> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <div class="svelte-4deykz"><div class="svelte-4deykz">Dropped</div> <span> </span></div> <!> <!> <div class="svelte-4deykz"><div class="svelte-4deykz">FPS</div> <!> <span> </span></div></div></div>'),Vb={hash:"svelte-4deykz",code:".container.svelte-4deykz {background:rgba(28, 28, 28, 0.8);border-radius:4px;color:#fff;left:20px;position:absolute;z-index:var(--debug-panel-z-index);top:45px;min-width:160px;font-size:10px;text-align:left;user-select:text;}.container-mobile.svelte-4deykz {top:16px;left:16px;}button.svelte-4deykz {position:absolute;right:5px;top:3px;cursor:pointer;outline:0;border:none;background-color:transparent;padding:0;color:#fff;}.content.svelte-4deykz {padding:5px;}.content.svelte-4deykz > div:where(.svelte-4deykz) > div:where(.svelte-4deykz) {display:inline-block;text-align:right;width:60px;padding:0 5px;}"};function rd(t,e){D(e,!0),z(t,Vb);let[i,o]=De(),n=()=>C(d,"$isMobile",i),r=Ee(),l=r.ui.debugPanelVisible,d=r.ui.isMobile,a=j(oi(r.actions.internal.getDebugPanelData())),p=r.actions.internal.getVideoElement(),f=j(0),v=j(0),u=j(0),$=new sl(60),w=new sl(60),y=new sl(60),S=j(oi([])),T=j(oi([])),k=j(oi([])),A=F("aria_label_debug_panel");Rt(()=>{Zh.set(Wl,"true"),r.actions.internal.startLogging(),p&&(B(v,p.getVideoPlaybackQuality().droppedVideoFrames,!0),B(f,p.getVideoPlaybackQuality().totalVideoFrames,!0));let me=window.setInterval(()=>{B(a,r.actions.internal.getDebugPanelData(),!0)},500),_e;return p&&(_e=window.setInterval(()=>{if(p){B(v,p.getVideoPlaybackQuality().droppedVideoFrames,!0);let se=p.getVideoPlaybackQuality().totalVideoFrames;B(u,se-s(f)),B(f,se,!0),$.push(s(u)),s(a).speed&&w.push(s(a).speed),s(a).bitrate&&y.push(s(a).bitrate),B(S,$.getValuesFromBottom(),!0),B(T,w.getValuesFromBottom(),!0),B(k,y.getValuesFromBottom(),!0)}},1e3)),()=>{r.actions.internal.stopLogging(),clearInterval(me),_e&&clearInterval(_e)}});var I=Lb();let E;var V=_(I);V.__click=[_b,l];var K=P(V,2),W=_(K),U=P(_(W),2),Y=_(U,!0);g(U),g(W);var ne=P(W,2);{var G=me=>{var _e=bb(),se=P(_(_e),2),Oe=_(se,!0);g(se),g(_e),O(()=>he(Oe,s(a).id)),b(me,_e)};L(ne,me=>{s(a).id&&me(G)})}var ce=P(ne,2);{var le=me=>{var _e=$b(),se=P(_(_e),2),Oe=_(se,!0);g(se),g(_e),O(()=>he(Oe,s(a).vsid)),b(me,_e)};L(ce,me=>{s(a).vsid&&me(le)})}var we=P(ce,2);{var Ve=me=>{var _e=yb(),se=P(_(_e),2),Oe=_(se,!0);g(se),g(_e),O(()=>he(Oe,s(a).provider)),b(me,_e)};L(we,me=>{s(a).provider&&me(Ve)})}var ve=P(we,2);{var ae=me=>{var _e=xb(),se=P(_(_e),2),Oe=_(se);g(se),g(_e),O(()=>{var ze,Ae;return he(Oe,`Video: ${(ze=s(a).videoCodec||"")!=null?ze:""} ${s(a).hdr?"(HDR)":""}
137
+ }.text.svelte-1s15d2i {font-size:13px;line-height:16px;color:var(--controls-time);font-weight:500;}`};function id(t,e){K(t,j_);let i=m(e,"withEqualizer",3,!1),o=m(e,"isLive",3,!1),n=m(e,"isPlaying",3,!1);var s=Y_();let l;var d=_(s);{var a=u=>{var y=q_();$(u,y)};L(d,u=>{i()&&u(a)})}var p=P(d,2);{var f=u=>{var y=G_(),w=_(y);td(w,{isActive:!0}),h(y),$(u,y)},v=u=>{var y=Q_(),w=_(y,!0);h(y),O(()=>_e(w,e.time)),$(u,y)};L(p,u=>{o()?u(f):u(v,!1)})}h(s),O(u=>l=X(s,1,"wrapper svelte-1s15d2i",null,l,u),[()=>({live:o(),playing:n()})]),$(t,s)}var Z_=A('<div role="timer" data-testid="thumb-timer"><!></div>'),X_={hash:"svelte-1b40w20",code:`.thumb-timer.svelte-1b40w20 {position:absolute;z-index:var(--thumb-timer-z-index);bottom:0;right:0;margin:8px;transition:visibility var(--controls-transition-duration),
138
+ opacity var(--controls-transition-duration);}.thumb-timer.hidden.svelte-1b40w20 {visibility:hidden;opacity:0;}`};function od(t,e){F(e,!0),K(t,X_);let i=m(e,"isHidden",3,!1),o=m(e,"isLive",3,!1),n=m(e,"isPlaying",3,!1),s=g(()=>pn(e.duration-e.position));var l=Z_();let d;var a=_(l);id(a,{get time(){return r(s)},get isLive(){return o()},get isPlaying(){return n()},withEqualizer:!0}),h(l),O(p=>d=X(l,1,"thumb-timer svelte-1b40w20",null,d,p),[()=>({hidden:i()})]),$(t,l),U()}var tl=t=>{if(!navigator.clipboard){Hh(t);return}navigator.clipboard.writeText(t).catch(()=>Hh(t))};function Hh(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 db}from"@vkontakte/videoplayer-core/es2018";import{clientChecker as Fh}from"@vkontakte/videoplayer-core/es2018";var sf="focus-hidden";var hr=t=>{t.stopPropagation(),t.preventDefault()},af=t=>{var e,i;(i=(e=t.parentNode)==null?void 0:e.firstElementChild)==null||i.classList.remove(sf)},eb=t=>{var i;let e=t.previousElementSibling;e||(e=(i=t.parentNode)==null?void 0:i.lastElementChild),e==null||e.focus()},tb=t=>{var i;let e=t.nextElementSibling;e||(e=(i=t.parentNode)==null?void 0:i.firstElementChild),e==null||e.focus()},ib=t=>{let e=t.code;return e==="Tab"&&!t.shiftKey||e==="ArrowDown"},ob=t=>{let e=t.code;return e==="Tab"||e==="ArrowUp"},Uh=t=>t.code==="Escape",nb=t=>t.code==="ArrowLeft",nd=(t,e=[])=>{let i=t.code;return["Enter","Space",...e].includes(i)},zh=t=>{ib(t)?(hr(t),tb(t.target)):ob(t)&&(hr(t),eb(t.target))},Rs=t=>!Fh.device.isAndroid&&(t==null?void 0:t.detail)===0||Fh.device.isAndroid&&(t==null?void 0:t.pointerType)==="",il=async(t,e,i)=>{await yo(),t&&!t.classList.contains("opened")&&!e&&$e(i)&&(await yo(),i.set(!1),t.focus())},Wh=async(t,e,i)=>{await yo(),t&&!e&&$e(i)&&(i.set(!1),t.focus())},rd=async(t,e,i,o=!1)=>{if(await yo(),!!t&&e&&!o){let s=t.children[0];s==null||s.classList.toggle(sf,!i),s==null||s.focus()}},Kh=async(t,e)=>{setTimeout(()=>{let i=t[e];!!i&&i.focus()},100)},Yc=(t,e)=>{zh(t),af(t.target),Uh(t)&&(hr(t),e())},jc=async(t,e)=>{nd(t,["ArrowRight"])&&(hr(t),e())},qh=async(t,e,i)=>{if(zh(t),nb(t)){hr(t),e();return}Uh(t)&&(hr(t),i())},ol=(t,e)=>{nd(t)&&(hr(t),e())},Gh=(t,e,i)=>{if(nd(t))hr(t),i(!e);else{let o=t.code;if(o==="ArrowLeft"&&e){i(!1),hr(t);return}o==="ArrowRight"&&!e&&(i(!0),hr(t))}},Qh=t=>{let e=t.getBoundingClientRect(),i=-14,o=e.left+e.width,n=e.top+i;return{right:o,bottom:n}},Yh=t=>{if(!t)return{top:0,left:0};let e=t.getBoundingClientRect(),i=-58,o=8,n=e.left+o;return{bottom:e.bottom+i,left:n}};import{isNullable as Zc,isValidURL as cb}from"@vkontakte/videoplayer-shared/es2018";var Br={"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 jh}from"@vkontakte/videoplayer-shared/es2018";var sb=(t,e)=>{ol(t,()=>e())},ab=A('<li class="item svelte-1hm4mm9" role="menuitem" tabindex="0"> </li>'),lb={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 lf(t,e){F(e,!0),K(t,lb);let i=m(e,"onClick",3,jh),o=m(e,"closeContextMenu",3,jh),n=d=>{d==null||d.stopPropagation(),i()(),o()()};var s=ab();s.__click=n,s.__keydown=[sb,n];var l=_(s,!0);h(s),O(()=>{var d;Be(s,"aria-label",(d=e.ariaLabel)!=null?d:e.label),Be(s,"data-testid",e.id),_e(l,e.label)}),$(t,s),U()}lt(["click","keydown"]);var ca=(t,e)=>t.weight-e.weight;var sd=(o=>(o.OPEN_SUB_MENU="OPEN_SUB_MENU",o.CLICK="CLICK",o.SWITCH="SWITCH",o))(sd||{});var ub=(t,e)=>{Yc(t,e)},pb=t=>{t.preventDefault()},fb=A('<ul role="menu" class="svelte-1p5ukkp"></ul>'),mb={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 df(t,e){F(e,!0),K(t,mb);let[i,o]=He(),n=()=>C(J,"$isLive$",i),s=()=>C(ve,"$isPiPEnabled$",i),l=()=>C(q,"$chromecastState$",i),d=()=>C(Ie,"$pictureInPictureApiIsActive$",i),a=()=>C(ie,"$isLooped$",i),p=()=>C(W,"$positionExact$",i),f=()=>C(Y,"$additionalContextMenuItems$",i),v=m(e,"visible",3,!1),u=m(e,"position",19,()=>({top:0,left:0})),y=m(e,"playerContainerRef",3,void 0),w=m(e,"controlsContainerRef",3,void 0),b=m(e,"menuElementRef",15,void 0),S=j(0),T=j(0),E=Ee(),{pictureInPicture$:M}=uo(),I=Ft(),k=E.ui.contextMenu.visible$,R=E.ui.debugPanelVisible,Y=E.ui.additionalContextMenuItems$,D=E.ui.t,H=E.actions.internal.togglePictureInPicture,q=E.state.chromecastState$,J=E.state.isLive$,W=E.state.positionExact$,de=E.state.isInteractive,ie=E.state.looped$,{isEnabled$:ve,isActive$:Ie}=M,fe=g(()=>{var Le;return I.features.copyVideoLink&&((Le=E.callbacks)==null?void 0:Le.onCopyVideoLink)}),re=g(()=>r(fe)&&!n()&&!de),ke=g(()=>{var Le;return!!((Le=E.callbacks)!=null&&Le.onCopyEmbedCodeClicked)}),te=g(()=>s()&&l()!==db.CONNECTED&&!de),N=g(()=>!de),Oe=g(()=>I.features.videoRotate&&!de),ye=g(()=>I.showSupport&&!d()),he=g(()=>I.features.saveTraceInfoToFile),ce=()=>{var Le;k.set(!1),(Le=e.returnFocus)==null||Le.call(e)},ue=(Le,Ye)=>{if(!b()||!y()||!w())return;let Re=b().getBoundingClientRect(),tt=y().getBoundingClientRect();B(S,Le-tt.left),B(T,Ye-tt.top),r(S)+Re.width>tt.width&&B(S,tt.width-Re.width),r(T)+Re.height>tt.height&&B(T,tt.height-Re.height),B(S,Math.max(r(S),0),!0),B(T,Math.max(r(T),0),!0)};We(()=>{(async()=>{if(b()&&y()&&w()){await yo();let{top:Ye,left:Re,bottom:tt,right:Pt}=u(),Mt=Re!=null?Re:0,Je=Ye!=null?Ye:0,ai=b().getBoundingClientRect();Zc(Re)&&!Zc(Pt)&&(Mt=Pt-ai.width),Zc(Ye)&&!Zc(tt)&&(Je=tt-ai.height),Mt=Math.max(Mt,0),Je=Math.max(Je,0),ue(Mt,Je)}})()});let we=()=>{E.actions.internal.videoRotate()},Z=()=>{cb(e.supportLink)&&window.open(e.supportLink,"_blank"),E.actions.internal.reportProblem(),E.actions.internal.pause()},Ke=()=>{let Le=E.actions.internal.getDebugTextData();if(I.features.saveDebugInfoToFile){let Ye=new Blob([...Le],{type:"plain/text"}),Re=window.URL.createObjectURL(Ye);ra(Re,"vk_player_debug_info","txt")}else tl(E.actions.internal.getDebugTextData())},Xe=()=>{let Le=E.actions.internal.getTraceTextData(),Ye=new Blob([...Le],{type:"application/json"}),Re=window.URL.createObjectURL(Ye);ra(Re,"vk_player_trace_info","json")},Ae=()=>{R.set(!0)},ee=async()=>{var Le;try{H()}finally{(Le=e.returnFocus)==null||Le.call(e)}},Ce=()=>{E.actions.internal.setLooped(!a())},qe=()=>{var Le,Ye;if(r(ke)){let Re=(Ye=(Le=E.callbacks)==null?void 0:Le.onCopyEmbedCodeClicked)==null?void 0:Ye.call(Le);Re&&tl(Re)}},st=(Le=!1)=>{var Ye,Re;if((Ye=E.callbacks)!=null&&Ye.onCopyVideoLink){let tt=(Re=E.callbacks)==null?void 0:Re.onCopyVideoLink(Le,p());tt&&tl(tt)}},ct=g(()=>I.features.saveDebugInfoToFile?D("menu_save_debug"):D("menu_copy_debug")),bt=g(()=>r(fe)?{id:"copy-link",weight:Br["copy-link"],label:D("menu_copy_video_link"),onClick:()=>st()}:void 0),St=g(()=>r(re)?{id:"copy-link-timestamp",weight:Br["copy-link-timestamp"],label:D("menu_copy_video_link_with_timestamp"),onClick:()=>st(!0)}:void 0),Ge=g(()=>r(ke)?{id:"copy-embed-code",weight:Br["copy-embed-code"],label:D("menu_copy_embed_code"),onClick:qe}:void 0),Wt=g(()=>r(te)?{id:"pip",weight:Br.pip,label:d()?D("menu_pip_close"):D("menu_pip"),onClick:ee}:void 0),Qt=g(()=>r(N)?{id:"video-loop",weight:Br["video-loop"],label:a()?D("menu_video_loop_off"):D("menu_video_loop_on"),ariaLabel:D("aria_label_menu_loop"),onClick:Ce}:void 0),qt=g(()=>r(Oe)?{id:"rotate",weight:Br.rotate,label:D("menu_video_rotate"),ariaLabel:D("aria_label_menu_rotate"),onClick:we}:void 0),Nt=g(()=>r(ye)?{id:"report",weight:Br.report,label:D("menu_report"),ariaLabel:`${D("menu_report")}. ${D("aria_label_new_tab_alert")}`,onClick:Z}:void 0),oe=g(()=>({id:"save-debug",weight:Br["save-debug"],label:r(ct),onClick:Ke})),At=g(()=>r(he)?{id:"save-trace",weight:Br["save-trace"],label:D("menu_save_debug"),onClick:Xe}:void 0),ge=g(()=>({id:"debug-info",weight:Br["debug-info"],label:D("menu_debug_overlay"),ariaLabel:D("aria_label_menu_debug_overlay"),onClick:Ae})),be=g(()=>[r(bt),r(St),r(Ge),r(Wt),r(Qt),r(qt),r(Nt),r(oe),r(At),r(ge),...f()].filter(Le=>!!Le).sort(ca));var le=Ue(),De=me(le);{var ze=Le=>{var Ye=fb();Ye.__contextmenu=[pb],Ye.__keydown=[ub,ce],$i(Ye,21,()=>r(be),Re=>Re.id,(Re,tt)=>{lf(Re,{get id(){return r(tt).id},get label(){return r(tt).label},get ariaLabel(){return r(tt).ariaLabel},get onClick(){return r(tt).onClick},closeContextMenu:ce})}),h(Ye),ot(Ye,Re=>b(Re),()=>b()),O(()=>{var Re,tt;return nt(Ye,`top: ${(Re=r(T))!=null?Re:""}px; left: ${(tt=r(S))!=null?tt:""}px;`)}),$(Le,Ye)};L(De,Le=>{v()&&Le(ze)})}$(t,le),U(),o()}lt(["contextmenu","keydown"]);var Xc=class{constructor(e){this.value=e,this.next=null}};var nl=class{constructor(e){this.top=null,this.bottom=null,this.size=0,this.maxSize=e}push(e){let i=new Xc(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 vb=A('<div class="container svelte-1ssl9eb"><canvas class="svelte-1ssl9eb"></canvas></div>'),gb={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 ad(t,e){F(e,!0),K(t,gb);let i=m(e,"values",19,()=>[]),o=j(void 0),n=j(null),s=16,l=120,d=60,a=l/d;Rt(()=>{r(o).width=l,r(o).height=s,B(n,r(o).getContext("2d"),!0)});function p(u,y,w,b,S){S===0&&(S=1),u.fillStyle="#fff",u.fillRect(y,w,b,S)}We(()=>{let u="";if(r(n)){let y=i()[0];for(let b=1;b<i().length;b++)i()[b]>y&&(y=i()[b]);r(n).clearRect(0,0,l,s);let w=d-1;for(let b=i().length-1;b>=0;b--){let S=w*a,T=y>0?s*(i()[b]/y):0;p(r(n),S,0,a,T),u=T+" "+u,w--}}});var f=vb(),v=_(f);ot(v,u=>B(o,u),()=>r(o)),h(f),$(t,f),U()}import{safeStorage as Zh}from"@vkontakte/videoplayer-shared/es2018";var hb=(t,e)=>{t.stopPropagation(),Zh.remove(ql),e.set(!1)},_b=A('<div class="svelte-4deykz"><div class="svelte-4deykz">Video id</div> <span> </span></div>'),bb=A('<div class="svelte-4deykz"><div class="svelte-4deykz">VSID</div> <span> </span></div>'),$b=A('<div class="svelte-4deykz"><div class="svelte-4deykz">Provider</div> <span> </span></div>'),yb=A('<div class="svelte-4deykz"><div class="svelte-4deykz">Streams</div> <span> </span></div>'),xb=A('<div class="svelte-4deykz"><div class="svelte-4deykz">Viewport</div> <span> </span></div>'),wb=A('<div class="svelte-4deykz"><div class="svelte-4deykz">Video size</div> <span> </span></div>'),Cb=A('<div class="svelte-4deykz"><div class="svelte-4deykz">CDN host</div> <span> </span></div>'),Sb=A('<div class="svelte-4deykz"><div class="svelte-4deykz">Volume</div> <span> </span></div>'),Tb=A('<div class="svelte-4deykz"><div class="svelte-4deykz">Position</div> <span> </span></div>'),Eb=A('<div class="svelte-4deykz"><div class="svelte-4deykz">Buffer</div> <span> </span></div>'),Ib=A('<div class="svelte-4deykz"><div class="svelte-4deykz">Live latency</div> <span> </span></div>'),kb=A('<div class="svelte-4deykz"><div class="svelte-4deykz">Segment</div> <span> </span></div>'),Pb=A('<div class="svelte-4deykz"><div class="svelte-4deykz">Network</div> <!> <span> </span></div>'),Ab=A('<div class="svelte-4deykz"><div class="svelte-4deykz">V bitrate</div> <!> <span> </span></div>'),Mb=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>'),Lb={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 ld(t,e){F(e,!0),K(t,Lb);let[i,o]=He(),n=()=>C(d,"$isMobile",i),s=Ee(),l=s.ui.debugPanelVisible,d=s.ui.isMobile,a=j(si(s.actions.internal.getDebugPanelData())),p=s.actions.internal.getVideoElement(),f=j(0),v=j(0),u=j(0),y=new nl(60),w=new nl(60),b=new nl(60),S=j(si([])),T=j(si([])),E=j(si([])),M=z("aria_label_debug_panel");Rt(()=>{Zh.set(ql,"true"),s.actions.internal.startLogging(),p&&(B(v,p.getVideoPlaybackQuality().droppedVideoFrames,!0),B(f,p.getVideoPlaybackQuality().totalVideoFrames,!0));let ge=window.setInterval(()=>{B(a,s.actions.internal.getDebugPanelData(),!0)},500),be;return p&&(be=window.setInterval(()=>{if(p){B(v,p.getVideoPlaybackQuality().droppedVideoFrames,!0);let le=p.getVideoPlaybackQuality().totalVideoFrames;B(u,le-r(f)),B(f,le,!0),y.push(r(u)),r(a).speed&&w.push(r(a).speed),r(a).bitrate&&b.push(r(a).bitrate),B(S,y.getValuesFromBottom(),!0),B(T,w.getValuesFromBottom(),!0),B(E,b.getValuesFromBottom(),!0)}},1e3)),()=>{s.actions.internal.stopLogging(),clearInterval(ge),be&&clearInterval(be)}});var I=Mb();let k;var R=_(I);R.__click=[hb,l];var Y=P(R,2),D=_(Y),H=P(_(D),2),q=_(H,!0);h(H),h(D);var J=P(D,2);{var W=ge=>{var be=_b(),le=P(_(be),2),De=_(le,!0);h(le),h(be),O(()=>_e(De,r(a).id)),$(ge,be)};L(J,ge=>{r(a).id&&ge(W)})}var de=P(J,2);{var ie=ge=>{var be=bb(),le=P(_(be),2),De=_(le,!0);h(le),h(be),O(()=>_e(De,r(a).vsid)),$(ge,be)};L(de,ge=>{r(a).vsid&&ge(ie)})}var ve=P(de,2);{var Ie=ge=>{var be=$b(),le=P(_(be),2),De=_(le,!0);h(le),h(be),O(()=>_e(De,r(a).provider)),$(ge,be)};L(ve,ge=>{r(a).provider&&ge(Ie)})}var fe=P(ve,2);{var re=ge=>{var be=yb(),le=P(_(be),2),De=_(le);h(le),h(be),O(()=>{var ze,Le;return _e(De,`Video: ${(ze=r(a).videoCodec||"")!=null?ze:""} ${r(a).hdr?"(HDR)":""}
139
139
  &
140
- Audio: ${(Ae=s(a).audioCodec||"")!=null?Ae:""} ${s(a).audioLanguage?`(${s(a).audioLanguage})`:""}`)}),b(me,_e)};L(ve,me=>{(s(a).videoCodec||s(a).audioCodec)&&me(ae)})}var Le=P(ve,2);{var te=me=>{var _e=wb(),se=P(_(_e),2),Oe=_(se,!0);g(se),g(_e),O(()=>he(Oe,s(a).viewport)),b(me,_e)};L(Le,me=>{s(a).viewport&&me(te)})}var N=P(Le,2);{var Be=me=>{var _e=Cb(),se=P(_(_e),2),Oe=_(se,!0);g(se),g(_e),O(()=>he(Oe,s(a).videoSize)),b(me,_e)};L(N,me=>{s(a).videoSize&&me(Be)})}var ye=P(N,2);{var ge=me=>{var _e=Sb(),se=P(_(_e),2),Oe=_(se,!0);g(se),g(_e),O(()=>he(Oe,s(a).cdn)),b(me,_e)};L(ye,me=>{s(a).cdn&&me(ge)})}var de=P(ye,2);{var ue=me=>{var _e=Tb(),se=P(_(_e),2),Oe=_(se);g(se),g(_e),O(()=>{var ze;return he(Oe,`${(ze=s(a).volume)!=null?ze:""} %`)}),b(me,_e)};L(de,me=>{s(a).volume&&me(ue)})}var xe=P(de,2);{var Z=me=>{var _e=Eb(),se=P(_(_e),2),Oe=_(se);g(se),g(_e),O(ze=>he(Oe,`${ze!=null?ze:""} s`),[()=>s(a).position.toFixed(2)]),b(me,_e)};L(xe,me=>{s(a).position&&me(Z)})}var qe=P(xe,2);{var Xe=me=>{var _e=Ib(),se=P(_(_e),2),Oe=_(se);g(se),g(_e),O(ze=>he(Oe,`${ze!=null?ze:""} s`),[()=>s(a).buffer.toFixed(2)]),b(me,_e)};L(qe,me=>{s(a).buffer&&me(Xe)})}var ke=P(qe,2);{var X=me=>{var _e=kb(),se=P(_(_e),2),Oe=_(se);g(se),g(_e),O(ze=>he(Oe,`${ze!=null?ze:""} s`),[()=>s(a).liveLatency.toFixed(2)]),b(me,_e)};L(ke,me=>{s(a).liveLatency&&me(X)})}var Te=P(ke,2);{var Ke=me=>{var _e=Pb(),se=P(_(_e),2),Oe=_(se,!0);g(se),g(_e),O(ze=>he(Oe,ze),[()=>[{value:s(a).currentVideoSegmentLength,title:"Video:"},{value:s(a).currentAudioSegmentLength,title:"Audio:"}].filter(({value:ze})=>ze).map(({value:ze,title:Ae})=>`${Ae} ${((ze!=null?ze:0)/1e3).toFixed(2)} s`).join(" & ")]),b(me,_e)};L(Te,me=>{(s(a).currentVideoSegmentLength||s(a).currentAudioSegmentLength)&&me(Ke)})}var rt=P(Te,2),ct=P(_(rt),2),ht=_(ct);g(ct),g(rt);var xt=P(rt,2);{var Qe=me=>{var _e=Ab(),se=P(_(_e),2);nd(se,{get values(){return s(T)}});var Oe=P(se,2),ze=_(Oe);g(Oe),g(_e),O(Ae=>he(ze,`${Ae!=null?Ae:""} Kbps`),[()=>s(a).speed.toFixed(2)]),b(me,_e)};L(xt,me=>{s(a).speed&&me(Qe)})}var qt=P(xt,2);{var Yt=me=>{var _e=Mb(),se=P(_(_e),2);nd(se,{get values(){return s(k)}});var Oe=P(se,2),ze=_(Oe);g(Oe),g(_e),O(Ae=>he(ze,`${Ae!=null?Ae:""} Kbps`),[()=>s(a).bitrate.toFixed(2)]),b(me,_e)};L(qt,me=>{s(a).bitrate&&me(Yt)})}var Qt=P(qt,2),Nt=P(_(Qt),2);nd(Nt,{get values(){return s(S)}});var ee=P(Nt,2),At=_(ee,!0);g(ee),g(Qt),g(K),g(I),O(me=>{var _e,se;E=J(I,1,"container svelte-4deykz",null,E,me),Ne(I,"aria-label",A),he(Y,s(a).version),he(ht,`${(_e=s(v))!=null?_e:""} / ${(se=s(f))!=null?se:""} frames`),he(At,s(u))},[()=>({"container-mobile":n()})]),b(t,I),H(),o()}lt(["click"]);import{noop as Rb}from"@vkontakte/videoplayer-shared/es2018";var Nb=(t,e)=>{t.stopPropagation(),e()()},Bb=M('<div class="close svelte-1ome55p"></div>'),Ob={hash:"svelte-1ome55p",code:".close.svelte-1ome55p {cursor:pointer;opacity:0.8;transition:opacity 0.2s;position:relative;width:16px;height:16px;}.close.svelte-1ome55p:hover {opacity:1;}.close.svelte-1ome55p:before, .close.svelte-1ome55p:after {position:absolute;left:8px;content:' ';height:16px;width:2px;background-color:var(--white);}.close.svelte-1ome55p:before {transform:rotate(45deg);}.close.svelte-1ome55p:after {transform:rotate(-45deg);}"};function pa(t,e){D(e,!0),z(t,Ob);let i=m(e,"onClick",3,Rb);var o=Bb();o.__click=[Nb,i],b(t,o),H()}lt(["click"]);import{noop as Db}from"@vkontakte/videoplayer-shared/es2018";var Hb=M('<div class="timer svelte-8jhsry"><canvas class="timer-canvas svelte-8jhsry" width="100" height="100"></canvas> <svg class="timer-play-icon svelte-8jhsry" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><g fill="none" fill-rule="evenodd"><g fill-rule="nonzero"><path class="_play" d="m8.13340613 5.10548415 10.49681277 6.24354325c.3559987.2117494.472936.6720001.2611866 1.0279989-.0638111.1072809-.1533894.1969388-.2606135.2608453l-10.4968128 6.256187c-.35581027.2120659-.81616483.095538-1.02823068-.2602722-.06921066-.1161237-.10574852-.2487949-.10574852-.3839792v-12.49973035c0-.41421357.33578644-.75.75-.75.13495801 0 .26741554.03641567.38340613.1054073z" fill="var(--btn-color, #fff)"></path></g></g></svg></div>'),Fb={hash:"svelte-8jhsry",code:".timer.svelte-8jhsry {border-radius:50%;transition:background .2s;background:rgba(31, 31, 31, .65);width:50px;height:50px;display:flex;align-items:center;justify-content:space-around;}.timer.svelte-8jhsry:hover {background:rgba(31, 31, 31, .85)}.timer-canvas.svelte-8jhsry {width:50px;height:50px;position:absolute;}.timer-play-icon.svelte-8jhsry {width:22px;height:26px;}"};function sd(t,e){D(e,!0),z(t,Fb);let i=m(e,"isRunning",3,!0),o=m(e,"onTimerEnded",3,Db),n=5e3,r=j(void 0),l,d,a=j(0),p;We(()=>{i()&&(d=Date.now(),B(a,requestAnimationFrame(v),!0))});let f=()=>{s(a)&&(cancelAnimationFrame(s(a)),B(a,0))},v=()=>{if(!i()){f();return}p=(Date.now()-d)/n,p<1?(l==null||l.clearRect(0,0,100,100),l==null||l.beginPath(),l==null||l.arc(50,50,47,-Math.PI/2,-Math.PI/2+Math.PI*2*p),l==null||l.stroke(),B(a,requestAnimationFrame(v),!0)):o()()};Rt(()=>{if(l=s(r).getContext("2d"),!!l)return l.lineWidth=6,l.lineCap="round",l.strokeStyle="#fff",()=>{f()}}),In(()=>{f()});var u=Hb(),$=_(u);ot($,w=>B(r,w),()=>s(r)),Ce(2),g(u),b(t,u),H()}var Ub=(t,e,i)=>{e(!1),i()},zb=M('<div class="overlay svelte-jfbaax"></div> <div class="next-video svelte-jfbaax"><div class="top svelte-jfbaax"><div class="caption svelte-jfbaax"> </div> <!></div> <div class="row svelte-jfbaax"><div class="column svelte-jfbaax"><div class="thumb svelte-jfbaax"><div></div> <!></div></div> <div class="column svelte-jfbaax"><div class="title svelte-jfbaax"> </div></div></div></div>',1),Wb={hash:"svelte-jfbaax",code:".overlay.svelte-jfbaax {width:100%;height:100%;background:rgba(0, 0, 0, 0.72);position:absolute;}.next-video.svelte-jfbaax {position:absolute;top:50%;left:50%;transform:translate(-50%, -50%);display:flex;width:362px;flex-direction:column;}.top.svelte-jfbaax {display:flex;justify-content:space-between;}.caption.svelte-jfbaax {font-size:11px;font-weight:bold;color:var(--white);text-transform:uppercase;opacity:0.8;}.row.svelte-jfbaax {height:102px;background:rgba(48, 48, 48, .8);cursor:pointer;margin-top:6px;display:flex;flex-direction:row;width:100%;}.column.svelte-jfbaax {display:flex;flex-direction:column;flex-basis:50%;}.thumb.svelte-jfbaax {width:100%;height:100%;background:no-repeat center;background-size:cover;display:flex;align-items:center;position:relative;justify-content:space-around;}.thumb-overlay.svelte-jfbaax {width:100%;height:100%;position:absolute;}.thumb-overlay.withOpacity.svelte-jfbaax {background:var(--black);opacity:0.3;}.title.svelte-jfbaax {padding:10px 16px;font-size:12px;font-weight:bold;color:var(--white);line-height:1.6;max-height:52px;overflow:hidden;}"};function df(t,e){D(e,!0),z(t,Wb);let[i,o]=De(),n=()=>C(d,"$autoplayNextEnabled$",i),r=()=>C(a,"$timerNextVideoRunning$",i),l=Ee(),d=l.ui.autoplayNextEnabled$,a=l.ui.timerNextVideoRunning$,p=l.actions.internal.nextVideoClick,f=l.actions.internal.nextVideoAnnouncementShow,v=l.actions.internal.nextVideoAnnouncementClick,u=l.actions.internal.nextVideoAnnouncementAuto,$=l.actions.internal.nextVideoAnnouncementCancel,w=()=>{n()&&(p(!1),u())},y=()=>{e.clickCloseIcon(),$()};Rt(()=>{e.isHide||f(),e.isHide&&n()&&(p(!1),u())});var S=Ue(),T=fe(S);{var k=A=>{var I=zb(),E=P(fe(I),2),V=_(E),K=_(V),W=_(K,!0);g(K);var U=P(K,2);pa(U,{onClick:y}),g(V);var Y=P(V,2);Y.__click=[Ub,p,v];var ne=_(Y),G=_(ne),ce=_(G);let le;var we=P(ce,2);{var Ve=te=>{let N=h(()=>r()&&n());sd(te,{get isRunning(){return s(N)},onTimerEnded:w})};L(we,te=>{n()&&te(Ve)})}g(G),g(ne);var ve=P(ne,2),ae=_(ve),Le=_(ae,!0);g(ae),g(ve),g(Y),g(E),O((te,N)=>{he(W,te),st(G,`background-image: url('${e.thumb}')`),le=J(ce,1,"thumb-overlay svelte-jfbaax",null,le,N),he(Le,e.title)},[()=>F("end_screen_next_video"),()=>({withOpacity:n()})]),b(A,I)};L(T,A=>{e.isHide||A(k)})}b(t,S),H(),o()}lt(["click"]);import{PlaybackState as fa}from"@vkontakte/videoplayer-core/es2018";import{checkNever as Kb}from"@vkontakte/videoplayer-shared/es2018";import{SeekAction as kn}from"@vkontakte/videoplayer-statistics/es2018";var cf=(t,e)=>Math.min(+(t+e).toFixed(2),1),uf=(t,e)=>Math.max(+(t-e).toFixed(2),0),Zc=(t,e,i)=>{let o=cf(e,i);e<1?t.actions.internal.setVolume(o):$e(t.state.muted$)&&t.actions.external.setMuted(!1)},Xc=(t,e,i)=>{let o=uf(e,i);e>0&&t.actions.internal.setVolume(o)};var Vs=({isAudioDisabled:t,isAudioAvailable:e,isAds:i,audioDisabledHintCallback:o,audioIsNotExistHintCallback:n})=>t?i?!0:(o==null||o(),!1):e?!0:(n==null||n(),!1);var Qb=(t,e)=>{e(t)},Gb=M('<div class="keyboard-controls svelte-10kkmxz" tabindex="-1" role="region"><!></div>'),Yb={hash:"svelte-10kkmxz",code:".keyboard-controls.svelte-10kkmxz {position:absolute;left:0;right:0;top:0;bottom:0;}"};function pf(t,e){var Qt,Nt;D(e,!0),z(t,Yb);let[i,o]=De(),n=()=>C(W,"$playbackState$",i),r=()=>C(U,"$adPlaybackState",i),l=()=>C(ce,"$disabledControls$",i),d=()=>C(Y,"$positionExact$",i),a=()=>C(ne,"$duration$",i),p=()=>C(ue,"$isAudioAvailable$",i),f=()=>C(G,"$volume$",i),v=()=>C(ve,"$availablePlaybackRates$",i),u=()=>C(Ve,"$currentPlaybackRate$",i),$=()=>C(Z,"$isInteractiveTime$",i),w=()=>C(qe,"$showInteractiveTimeIndicatorTooltip$",i),y=()=>C(Be,"$isEnded$",i),S=()=>C(le,"$muted$",i),T=()=>C(we,"$currentSubtitle$",i),k=()=>C(ye,"$overlayContainer$",i),A=m(e,"nextButtonActive",3,!1),I=m(e,"prevButtonActive",3,!1),E=Ee(),V=Ft(),K=E.getLogger().createComponentLog("KeyboardControls component"),W=E.state.playbackState$,U=E.ads.playbackState,Y=E.state.positionExact$,ne=E.state.duration$,G=E.state.volume$,ce=E.ui.controls.disabledControls$,le=E.state.muted$,we=E.state.currentSubtitle$,Ve=E.state.currentPlaybackRate$,ve=E.state.availablePlaybackRates$,ae=E.ui.contextMenu.openedByHotKey$,Le=E.ui.contextMenu.lastActiveElem$,te=E.ui.contextMenu.visible$,N=E.ui.contextMenu.position$,Be=E.state.isEnded$,ye=E.ui.overlayContainer$,ge=(Qt=E.callbacks)==null?void 0:Qt.onAudioDoesNotExistHint,de=(Nt=E.callbacks)==null?void 0:Nt.onAudioDisabledHint,ue=E.state.isAudioAvailable$,xe=E.state.isAudioDisabled,Z=E.state.isInteractiveTime$,{showInteractiveTimeIndicatorTooltip$:qe}=co(),Xe=0,ke=!0,X=j(void 0),Te=ee=>(ee!==ke&&(ke=ee,Xe=0),Xe+=1,(V.controls.seekStepKeyboard+V.controls.seekStepKeyboard*Xe)/1e3),Ke=(ee,At=!1)=>{var ni,pi;let me=ee.target,_e=(ni=me==null?void 0:me.getAttribute("role"))==null?void 0:ni.includes("menuitem"),se=me.classList.contains("btn"),Oe=ee.code;if(se&&Oe==="Space")return!1;let ze=Jg.has(Oe);if(_e&&ze)return!1;let Ae=!Xg.has(Oe);if(ee.ctrlKey&&Ae||ee.altKey&&Ae||ee.metaKey)return!1;let Ye=_e&&Oe==="Escape";eh.has(Oe)||Ye||e.hideContextMenu();let Re=n()===fa.PLAYING||n()===fa.PAUSED,tt=e.isAds&&(r()==="paused"||r()==="playing"),kt=!tt&&!l().has("TIMELINE");if(!(Re||tt))return!1;K({message:`key down, code: ${Oe}, isExternal = ${At}`});let Mt=!1,Je=()=>{Mt=!0,At||ee.preventDefault()};switch(Oe){case"KeyJ":case"ArrowLeft":{if(!kt)break;if(ee.ctrlKey||ee.altKey){let at=E.actions.internal.getPrevEpisode();E.actions.internal.seekToPrevEpisode(at),at&&e.showHotKeyHelpers({type:"EPISODE_PREV",text:at.text}),Je()}else{let at=ee.shiftKey?Te(!1):V.controls.seekStepKeyboard/1e3,ei=Math.max(d()-at,0);d()>0&&(E.actions.internal.seekTime(ei,kn.DOUBLE_TAP),e.showHotKeyHelpers({type:"BACKWARD_SEEK",text:at.toString()}),Je())}break}case"KeyL":case"ArrowRight":{if(!kt)break;if(ee.ctrlKey||ee.altKey){let at=E.actions.internal.getNextEpisode();E.actions.internal.seekToNextEpisode(at),at&&e.showHotKeyHelpers({type:"EPISODE_NEXT",text:at.text}),Je()}else{let at=ee.shiftKey?Te(!0):V.controls.seekStepKeyboard/1e3,ei=Math.min(d()+at,a());Math.round(d())<Math.round(a())&&(E.actions.internal.seekTime(ei,kn.DOUBLE_TAP),e.showHotKeyHelpers({type:"FORWARD_SEEK",text:at.toString()}),Je())}break}case"ArrowUp":{if(Vs({isAudioDisabled:xe,audioDisabledHintCallback:de,isAudioAvailable:p(),audioIsNotExistHintCallback:ge,isAds:e.isAds})){let at=f(),ei=V.controls.volumeStepKeyboard,ii=at<=1;if(Zc(E,at,ei),ii){let ci=Math.round(cf(at,ei)*100).toString();e.showHotKeyHelpers({type:"VOLUME",t:{key:"hotkey_helper_current_volume",value:ci}})}}Je();break}case"ArrowDown":{if(Vs({isAudioDisabled:xe,audioDisabledHintCallback:de,isAudioAvailable:p(),audioIsNotExistHintCallback:ge,isAds:e.isAds})){let at=f(),ei=V.controls.volumeStepKeyboard,ii=at>=0;if(Xc(E,at,ei),ii){let ci=Math.round(uf(at,ei)*100).toString();e.showHotKeyHelpers({type:"VOLUME",t:{key:"hotkey_helper_current_volume",value:ci}})}}Je();break}case"Comma":{if(ee.shiftKey){E.actions.internal.decrementPlaybackRate();let at=v().find(ei=>ei.value===u());e.showHotKeyHelpers({type:"RATE_DOWN",text:at==null?void 0:at.displayValue}),Je()}else{if(tt||n()!==fa.PAUSED)break;let at=Math.max(d()-V.controls.seekStepFrame/1e3,0);d()>0&&(e.showHotKeyHelpers({type:"BACKWARD_SEEK"}),E.actions.internal.clearDelayedBufferingCheckTimeout(),E.actions.internal.seekTime(at,kn.DOUBLE_TAP),Je())}break}case"Period":{if(ee.shiftKey){E.actions.internal.incrementPlaybackRate();let at=v().find(ei=>ei.value===u());e.showHotKeyHelpers({type:"RATE_UP",text:at==null?void 0:at.displayValue}),Je()}else{if(tt||n()!==fa.PAUSED)break;let at=Math.min(d()+V.controls.seekStepFrame/1e3,a());d()<a()&&(e.showHotKeyHelpers({type:"FORWARD_SEEK"}),E.actions.internal.clearDelayedBufferingCheckTimeout(),E.actions.internal.seekTime(at,kn.DOUBLE_TAP),Je())}break}case"KeyK":case"Space":if(!l().has("PLAY_BUTTON"))if($()&&w()&&qe.set(!1),e.fakePlayButtonHandler)e.fakePlayButtonHandler();else{E.actions.internal.togglePlay();let at="PLAY";n()===fa.PAUSED?at="PAUSE":y()&&(at="REPLAY"),e.showHotKeyHelpers({type:at})}Je();break;case"KeyM":{Vs({isAudioDisabled:xe,audioDisabledHintCallback:de,isAudioAvailable:p(),audioIsNotExistHintCallback:ge,isAds:e.isAds})&&(e.showHotKeyHelpers({type:S()?"VOLUME":"MUTE"}),E.actions.internal.toggleMuted()),Je();break}case"KeyF":e.toggleFullscreen(),Je();break;case"KeyC":E.actions.internal.toggleSubtitle(),T().value!=="off"?e.showHotKeyHelpers({type:"SUBTITLES_ON",text:(pi=T())==null?void 0:pi.displayValue}):e.showHotKeyHelpers({type:"SUBTITLES_OFF"}),Je();break;case"KeyI":E.actions.internal.togglePictureInPicture(),Je();break;case"Digit1":case"Numpad1":if(ee.shiftKey){let at=Yh(k());N.set(at),Le.set(me),ae.set(!0),te.set(!0),Je();break}e.showHotKeyHelpers(),E.actions.internal.seekToPercent(.1,kn.DOUBLE_TAP),Je();break;case"Digit2":case"Numpad2":e.showHotKeyHelpers(),E.actions.internal.seekToPercent(.2,kn.DOUBLE_TAP),Je();break;case"Digit3":case"Numpad3":e.showHotKeyHelpers(),E.actions.internal.seekToPercent(.3,kn.DOUBLE_TAP),Je();break;case"Digit4":case"Numpad4":e.showHotKeyHelpers(),E.actions.internal.seekToPercent(.4,kn.DOUBLE_TAP),Je();break;case"Digit5":case"Numpad5":e.showHotKeyHelpers(),E.actions.internal.seekToPercent(.5,kn.DOUBLE_TAP),Je();break;case"Digit6":case"Numpad6":e.showHotKeyHelpers(),E.actions.internal.seekToPercent(.6,kn.DOUBLE_TAP),Je();break;case"Digit7":case"Numpad7":e.showHotKeyHelpers(),E.actions.internal.seekToPercent(.7,kn.DOUBLE_TAP),Je();break;case"Digit8":case"Numpad8":e.showHotKeyHelpers(),E.actions.internal.seekToPercent(.8,kn.DOUBLE_TAP),Je();break;case"Digit9":case"Numpad9":e.showHotKeyHelpers(),E.actions.internal.seekToPercent(.9,kn.DOUBLE_TAP),Je();break;case"Digit0":case"Numpad0":e.showHotKeyHelpers(),E.actions.internal.seekToPercent(0,kn.DOUBLE_TAP),Je();break;case"Slash":{ee.shiftKey&&V.features.hotKeyMapModal&&(e.showKeyMap(),Je());break}case"KeyN":ee.shiftKey&&A()&&(E.actions.internal.nextVideoClick(),Je());break;case"KeyP":ee.shiftKey&&I()&&(E.actions.internal.prevVideoClick(),Je());break;case"ShiftLeft":case"ShiftRight":Je();break;case"Tab":case"Escape":case"Enter":break;default:Kb(Oe);break}return Mt},rt=ee=>{let At=ee.code;if(ee.ctrlKey||ee.altKey||ee.metaKey)return;let me=n()===fa.PLAYING||n()===fa.PAUSED,_e=e.isAds&&(r()==="paused"||r()==="playing");if(me||_e)switch(At){case"ShiftLeft":case"ShiftRight":Xe=0;break}},ct=F("aria_label_video_player"),ht=()=>{var ee;return(ee=s(X))==null?void 0:ee.focus()},xt=ee=>ee.type==="keydown"?Ke(ee,!0):(ee.type==="keyup"&&rt(ee),!1);var Qe=Gb();Qe.__keyup=rt,Qe.__keydown=[Qb,Ke];var qt=_(Qe);be(qt,()=>{var ee;return(ee=e.children)!=null?ee:oe}),g(Qe),ot(Qe,ee=>B(X,ee),()=>s(X)),O(()=>Ne(Qe,"aria-label",ct)),b(t,Qe);var Yt=H({focus:ht,handleExternalKeyboardEvent:xt});return o(),Yt}lt(["keyup","keydown"]);var jb=M('<div class="container svelte-1dbnjb1"><div class="dot svelte-1dbnjb1"></div> <div class="dot svelte-1dbnjb1"></div> <div class="dot svelte-1dbnjb1"></div></div>'),Zb={hash:"svelte-1dbnjb1",code:`.container.svelte-1dbnjb1 {position:absolute;top:50%;left:50%;transform:translate(-50%, -50%);pointer-events:none;display:flex;}.dot.svelte-1dbnjb1:nth-child(1) {animation-delay:calc(0 * 180ms);}.dot.svelte-1dbnjb1:nth-child(2) {animation-delay:calc(1 * 180ms);}.dot.svelte-1dbnjb1:nth-child(3) {animation-delay:calc(2 * 180ms);}
140
+ Audio: ${(Le=r(a).audioCodec||"")!=null?Le:""} ${r(a).audioLanguage?`(${r(a).audioLanguage})`:""}`)}),$(ge,be)};L(fe,ge=>{(r(a).videoCodec||r(a).audioCodec)&&ge(re)})}var ke=P(fe,2);{var te=ge=>{var be=xb(),le=P(_(be),2),De=_(le,!0);h(le),h(be),O(()=>_e(De,r(a).viewport)),$(ge,be)};L(ke,ge=>{r(a).viewport&&ge(te)})}var N=P(ke,2);{var Oe=ge=>{var be=wb(),le=P(_(be),2),De=_(le,!0);h(le),h(be),O(()=>_e(De,r(a).videoSize)),$(ge,be)};L(N,ge=>{r(a).videoSize&&ge(Oe)})}var ye=P(N,2);{var he=ge=>{var be=Cb(),le=P(_(be),2),De=_(le,!0);h(le),h(be),O(()=>_e(De,r(a).cdn)),$(ge,be)};L(ye,ge=>{r(a).cdn&&ge(he)})}var ce=P(ye,2);{var ue=ge=>{var be=Sb(),le=P(_(be),2),De=_(le);h(le),h(be),O(()=>{var ze;return _e(De,`${(ze=r(a).volume)!=null?ze:""} %`)}),$(ge,be)};L(ce,ge=>{r(a).volume&&ge(ue)})}var we=P(ce,2);{var Z=ge=>{var be=Tb(),le=P(_(be),2),De=_(le);h(le),h(be),O(ze=>_e(De,`${ze!=null?ze:""} s`),[()=>r(a).position.toFixed(2)]),$(ge,be)};L(we,ge=>{r(a).position&&ge(Z)})}var Ke=P(we,2);{var Xe=ge=>{var be=Eb(),le=P(_(be),2),De=_(le);h(le),h(be),O(ze=>_e(De,`${ze!=null?ze:""} s`),[()=>r(a).buffer.toFixed(2)]),$(ge,be)};L(Ke,ge=>{r(a).buffer&&ge(Xe)})}var Ae=P(Ke,2);{var ee=ge=>{var be=Ib(),le=P(_(be),2),De=_(le);h(le),h(be),O(ze=>_e(De,`${ze!=null?ze:""} s`),[()=>r(a).liveLatency.toFixed(2)]),$(ge,be)};L(Ae,ge=>{r(a).liveLatency&&ge(ee)})}var Ce=P(Ae,2);{var qe=ge=>{var be=kb(),le=P(_(be),2),De=_(le,!0);h(le),h(be),O(ze=>_e(De,ze),[()=>[{value:r(a).currentVideoSegmentLength,title:"Video:"},{value:r(a).currentAudioSegmentLength,title:"Audio:"}].filter(({value:ze})=>ze).map(({value:ze,title:Le})=>`${Le} ${((ze!=null?ze:0)/1e3).toFixed(2)} s`).join(" & ")]),$(ge,be)};L(Ce,ge=>{(r(a).currentVideoSegmentLength||r(a).currentAudioSegmentLength)&&ge(qe)})}var st=P(Ce,2),ct=P(_(st),2),bt=_(ct);h(ct),h(st);var St=P(st,2);{var Ge=ge=>{var be=Pb(),le=P(_(be),2);ad(le,{get values(){return r(T)}});var De=P(le,2),ze=_(De);h(De),h(be),O(Le=>_e(ze,`${Le!=null?Le:""} Kbps`),[()=>r(a).speed.toFixed(2)]),$(ge,be)};L(St,ge=>{r(a).speed&&ge(Ge)})}var Wt=P(St,2);{var Qt=ge=>{var be=Ab(),le=P(_(be),2);ad(le,{get values(){return r(E)}});var De=P(le,2),ze=_(De);h(De),h(be),O(Le=>_e(ze,`${Le!=null?Le:""} Kbps`),[()=>r(a).bitrate.toFixed(2)]),$(ge,be)};L(Wt,ge=>{r(a).bitrate&&ge(Qt)})}var qt=P(Wt,2),Nt=P(_(qt),2);ad(Nt,{get values(){return r(S)}});var oe=P(Nt,2),At=_(oe,!0);h(oe),h(qt),h(Y),h(I),O(ge=>{var be,le;k=X(I,1,"container svelte-4deykz",null,k,ge),Be(I,"aria-label",M),_e(q,r(a).version),_e(bt,`${(be=r(v))!=null?be:""} / ${(le=r(f))!=null?le:""} frames`),_e(At,r(u))},[()=>({"container-mobile":n()})]),$(t,I),U(),o()}lt(["click"]);import{noop as Vb}from"@vkontakte/videoplayer-shared/es2018";var Rb=(t,e)=>{t.stopPropagation(),e()()},Nb=A('<div class="close svelte-1ome55p"></div>'),Bb={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 ua(t,e){F(e,!0),K(t,Bb);let i=m(e,"onClick",3,Vb);var o=Nb();o.__click=[Rb,i],$(t,o),U()}lt(["click"]);import{noop as Ob}from"@vkontakte/videoplayer-shared/es2018";var Db=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>'),Hb={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 dd(t,e){F(e,!0),K(t,Hb);let i=m(e,"isRunning",3,!0),o=m(e,"onTimerEnded",3,Ob),n=5e3,s=j(void 0),l,d,a=0,p;We(()=>{i()&&Ct(()=>{d=Date.now(),a=requestAnimationFrame(v)})});let f=()=>{a&&(cancelAnimationFrame(a),a=0)},v=()=>{f(),i()&&(p=(Date.now()-d)/n,p<1?(l==null||l.clearRect(0,0,100,100),l==null||l.beginPath(),l==null||l.arc(50,50,47,-Math.PI/2,-Math.PI/2+Math.PI*2*p),l==null||l.stroke(),a=requestAnimationFrame(v)):o()())};Rt(()=>{l=r(s).getContext("2d"),l&&(l.lineWidth=6,l.lineCap="round",l.strokeStyle="#fff")}),Yo(()=>{f()});var u=Db(),y=_(u);ot(y,w=>B(s,w),()=>r(s)),Se(2),h(u),$(t,u),U()}var Fb=(t,e,i)=>{e(!1),i()},Ub=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),zb={hash:"svelte-jfbaax",code:".overlay.svelte-jfbaax {width:100%;height:100%;background:rgba(0, 0, 0, 0.72);position:absolute;}.next-video.svelte-jfbaax {position:absolute;top:50%;left:50%;transform:translate(-50%, -50%);display:flex;width:362px;flex-direction:column;}.top.svelte-jfbaax {display:flex;justify-content:space-between;}.caption.svelte-jfbaax {font-size:11px;font-weight:bold;color:var(--white);text-transform:uppercase;opacity:0.8;}.row.svelte-jfbaax {height:102px;background:rgba(48, 48, 48, .8);cursor:pointer;margin-top:6px;display:flex;flex-direction:row;width:100%;}.column.svelte-jfbaax {display:flex;flex-direction:column;flex-basis:50%;}.thumb.svelte-jfbaax {width:100%;height:100%;background:no-repeat center;background-size:cover;display:flex;align-items:center;position:relative;justify-content:space-around;}.thumb-overlay.svelte-jfbaax {width:100%;height:100%;position:absolute;}.thumb-overlay.withOpacity.svelte-jfbaax {background:var(--black);opacity:0.3;}.title.svelte-jfbaax {padding:10px 16px;font-size:12px;font-weight:bold;color:var(--white);line-height:1.6;max-height:52px;overflow:hidden;}"};function cf(t,e){F(e,!0),K(t,zb);let[i,o]=He(),n=()=>C(d,"$autoplayNextEnabled$",i),s=()=>C(a,"$timerNextVideoRunning$",i),l=Ee(),d=l.ui.autoplayNextEnabled$,a=l.ui.timerNextVideoRunning$,p=l.actions.internal.nextVideoClick,f=l.actions.internal.nextVideoAnnouncementShow,v=l.actions.internal.nextVideoAnnouncementClick,u=l.actions.internal.nextVideoAnnouncementAuto,y=l.actions.internal.nextVideoAnnouncementCancel,w=()=>{n()&&(p(!1),u())},b=()=>{e.clickCloseIcon(),y()};Rt(()=>{e.isHide||f(),e.isHide&&n()&&(p(!1),u())});var S=Ue(),T=me(S);{var E=M=>{var I=Ub(),k=P(me(I),2),R=_(k),Y=_(R),D=_(Y,!0);h(Y);var H=P(Y,2);ua(H,{onClick:b}),h(R);var q=P(R,2);q.__click=[Fb,p,v];var J=_(q),W=_(J),de=_(W);let ie;var ve=P(de,2);{var Ie=te=>{let N=g(()=>s()&&n());dd(te,{get isRunning(){return r(N)},onTimerEnded:w})};L(ve,te=>{n()&&te(Ie)})}h(W),h(J);var fe=P(J,2),re=_(fe),ke=_(re,!0);h(re),h(fe),h(q),h(k),O((te,N)=>{_e(D,te),nt(W,`background-image: url('${e.thumb}')`),ie=X(de,1,"thumb-overlay svelte-jfbaax",null,ie,N),_e(ke,e.title)},[()=>z("end_screen_next_video"),()=>({withOpacity:n()})]),$(M,I)};L(T,M=>{e.isHide||M(E)})}$(t,S),U(),o()}lt(["click"]);import{PlaybackState as pa}from"@vkontakte/videoplayer-core/es2018";import{checkNever as Kb}from"@vkontakte/videoplayer-shared/es2018";import{SeekAction as kn}from"@vkontakte/videoplayer-statistics/es2018";var uf=(t,e)=>Math.min(+(t+e).toFixed(2),1),pf=(t,e)=>Math.max(+(t-e).toFixed(2),0),Jc=(t,e,i)=>{let o=uf(e,i);e<1?t.actions.internal.setVolume(o):$e(t.state.muted$)&&t.actions.external.setMuted(!1)},eu=(t,e,i)=>{let o=pf(e,i);e>0&&t.actions.internal.setVolume(o)};var Ns=({isAudioDisabled:t,isAudioAvailable:e,isAds:i,audioDisabledHintCallback:o,audioIsNotExistHintCallback:n})=>t?i?!0:(o==null||o(),!1):e?!0:(n==null||n(),!1);var qb=(t,e)=>{e(t)},Gb=A('<div class="keyboard-controls svelte-10kkmxz" tabindex="-1" role="region"><!></div>'),Qb={hash:"svelte-10kkmxz",code:".keyboard-controls.svelte-10kkmxz {position:absolute;left:0;right:0;top:0;bottom:0;}"};function ff(t,e){var qt,Nt;F(e,!0),K(t,Qb);let[i,o]=He(),n=()=>C(D,"$playbackState$",i),s=()=>C(H,"$adPlaybackState",i),l=()=>C(de,"$disabledControls$",i),d=()=>C(q,"$positionExact$",i),a=()=>C(J,"$duration$",i),p=()=>C(ue,"$isAudioAvailable$",i),f=()=>C(W,"$volume$",i),v=()=>C(fe,"$availablePlaybackRates$",i),u=()=>C(Ie,"$currentPlaybackRate$",i),y=()=>C(Z,"$isInteractiveTime$",i),w=()=>C(Ke,"$showInteractiveTimeIndicatorTooltip$",i),b=()=>C(Oe,"$isEnded$",i),S=()=>C(ie,"$muted$",i),T=()=>C(ve,"$currentSubtitle$",i),E=()=>C(ye,"$overlayContainer$",i),M=m(e,"nextButtonActive",3,!1),I=m(e,"prevButtonActive",3,!1),k=Ee(),R=Ft(),Y=k.getLogger().createComponentLog("KeyboardControls component"),D=k.state.playbackState$,H=k.ads.playbackState,q=k.state.positionExact$,J=k.state.duration$,W=k.state.volume$,de=k.ui.controls.disabledControls$,ie=k.state.muted$,ve=k.state.currentSubtitle$,Ie=k.state.currentPlaybackRate$,fe=k.state.availablePlaybackRates$,re=k.ui.contextMenu.openedByHotKey$,ke=k.ui.contextMenu.lastActiveElem$,te=k.ui.contextMenu.visible$,N=k.ui.contextMenu.position$,Oe=k.state.isEnded$,ye=k.ui.overlayContainer$,he=(qt=k.callbacks)==null?void 0:qt.onAudioDoesNotExistHint,ce=(Nt=k.callbacks)==null?void 0:Nt.onAudioDisabledHint,ue=k.state.isAudioAvailable$,we=k.state.isAudioDisabled,Z=k.state.isInteractiveTime$,{showInteractiveTimeIndicatorTooltip$:Ke}=uo(),Xe=0,Ae=!0,ee=j(void 0),Ce=oe=>(oe!==Ae&&(Ae=oe,Xe=0),Xe+=1,(R.controls.seekStepKeyboard+R.controls.seekStepKeyboard*Xe)/1e3),qe=(oe,At=!1)=>{var ai,mi;let ge=oe.target,be=(ai=ge==null?void 0:ge.getAttribute("role"))==null?void 0:ai.includes("menuitem"),le=ge.classList.contains("btn"),De=oe.code;if(le&&De==="Space")return!1;let ze=Jg.has(De);if(be&&ze)return!1;let Le=!Xg.has(De);if(oe.ctrlKey&&Le||oe.altKey&&Le||oe.metaKey)return!1;let Ye=be&&De==="Escape";eh.has(De)||Ye||e.hideContextMenu();let Re=n()===pa.PLAYING||n()===pa.PAUSED,tt=e.isAds&&(s()==="paused"||s()==="playing"),Pt=!tt&&!l().has("TIMELINE");if(!(Re||tt))return!1;Y({message:`key down, code: ${De}, isExternal = ${At}`});let Mt=!1,Je=()=>{Mt=!0,At||oe.preventDefault()};switch(De){case"KeyJ":case"ArrowLeft":{if(!Pt)break;if(oe.ctrlKey||oe.altKey){let at=k.actions.internal.getPrevEpisode();k.actions.internal.seekToPrevEpisode(at),at&&e.showHotKeyHelpers({type:"EPISODE_PREV",text:at.text}),Je()}else{let at=oe.shiftKey?Ce(!1):R.controls.seekStepKeyboard/1e3,Xt=Math.max(d()-at,0);d()>0&&(k.actions.internal.seekTime(Xt,kn.DOUBLE_TAP),e.showHotKeyHelpers({type:"BACKWARD_SEEK",text:at.toString()}),Je())}break}case"KeyL":case"ArrowRight":{if(!Pt)break;if(oe.ctrlKey||oe.altKey){let at=k.actions.internal.getNextEpisode();k.actions.internal.seekToNextEpisode(at),at&&e.showHotKeyHelpers({type:"EPISODE_NEXT",text:at.text}),Je()}else{let at=oe.shiftKey?Ce(!0):R.controls.seekStepKeyboard/1e3,Xt=Math.min(d()+at,a());Math.round(d())<Math.round(a())&&(k.actions.internal.seekTime(Xt,kn.DOUBLE_TAP),e.showHotKeyHelpers({type:"FORWARD_SEEK",text:at.toString()}),Je())}break}case"ArrowUp":{if(Ns({isAudioDisabled:we,audioDisabledHintCallback:ce,isAudioAvailable:p(),audioIsNotExistHintCallback:he,isAds:e.isAds})){let at=f(),Xt=R.controls.volumeStepKeyboard,ti=at<=1;if(Jc(k,at,Xt),ti){let ui=Math.round(uf(at,Xt)*100).toString();e.showHotKeyHelpers({type:"VOLUME",t:{key:"hotkey_helper_current_volume",value:ui}})}}Je();break}case"ArrowDown":{if(Ns({isAudioDisabled:we,audioDisabledHintCallback:ce,isAudioAvailable:p(),audioIsNotExistHintCallback:he,isAds:e.isAds})){let at=f(),Xt=R.controls.volumeStepKeyboard,ti=at>=0;if(eu(k,at,Xt),ti){let ui=Math.round(pf(at,Xt)*100).toString();e.showHotKeyHelpers({type:"VOLUME",t:{key:"hotkey_helper_current_volume",value:ui}})}}Je();break}case"Comma":{if(oe.shiftKey){k.actions.internal.decrementPlaybackRate();let at=v().find(Xt=>Xt.value===u());e.showHotKeyHelpers({type:"RATE_DOWN",text:at==null?void 0:at.displayValue}),Je()}else{if(tt||n()!==pa.PAUSED)break;let at=Math.max(d()-R.controls.seekStepFrame/1e3,0);d()>0&&(e.showHotKeyHelpers({type:"BACKWARD_SEEK"}),k.actions.internal.clearDelayedBufferingCheckTimeout(),k.actions.internal.seekTime(at,kn.DOUBLE_TAP),Je())}break}case"Period":{if(oe.shiftKey){k.actions.internal.incrementPlaybackRate();let at=v().find(Xt=>Xt.value===u());e.showHotKeyHelpers({type:"RATE_UP",text:at==null?void 0:at.displayValue}),Je()}else{if(tt||n()!==pa.PAUSED)break;let at=Math.min(d()+R.controls.seekStepFrame/1e3,a());d()<a()&&(e.showHotKeyHelpers({type:"FORWARD_SEEK"}),k.actions.internal.clearDelayedBufferingCheckTimeout(),k.actions.internal.seekTime(at,kn.DOUBLE_TAP),Je())}break}case"KeyK":case"Space":if(!l().has("PLAY_BUTTON"))if(y()&&w()&&Ke.set(!1),e.fakePlayButtonHandler)e.fakePlayButtonHandler();else{k.actions.internal.togglePlay();let at="PLAY";n()===pa.PAUSED?at="PAUSE":b()&&(at="REPLAY"),e.showHotKeyHelpers({type:at})}Je();break;case"KeyM":{Ns({isAudioDisabled:we,audioDisabledHintCallback:ce,isAudioAvailable:p(),audioIsNotExistHintCallback:he,isAds:e.isAds})&&(e.showHotKeyHelpers({type:S()?"VOLUME":"MUTE"}),k.actions.internal.toggleMuted()),Je();break}case"KeyF":e.toggleFullscreen(),Je();break;case"KeyC":k.actions.internal.toggleSubtitle(),T().value!=="off"?e.showHotKeyHelpers({type:"SUBTITLES_ON",text:(mi=T())==null?void 0:mi.displayValue}):e.showHotKeyHelpers({type:"SUBTITLES_OFF"}),Je();break;case"KeyI":k.actions.internal.togglePictureInPicture(),Je();break;case"Digit1":case"Numpad1":if(oe.shiftKey){let at=Yh(E());N.set(at),ke.set(ge),re.set(!0),te.set(!0),Je();break}e.showHotKeyHelpers(),k.actions.internal.seekToPercent(.1,kn.DOUBLE_TAP),Je();break;case"Digit2":case"Numpad2":e.showHotKeyHelpers(),k.actions.internal.seekToPercent(.2,kn.DOUBLE_TAP),Je();break;case"Digit3":case"Numpad3":e.showHotKeyHelpers(),k.actions.internal.seekToPercent(.3,kn.DOUBLE_TAP),Je();break;case"Digit4":case"Numpad4":e.showHotKeyHelpers(),k.actions.internal.seekToPercent(.4,kn.DOUBLE_TAP),Je();break;case"Digit5":case"Numpad5":e.showHotKeyHelpers(),k.actions.internal.seekToPercent(.5,kn.DOUBLE_TAP),Je();break;case"Digit6":case"Numpad6":e.showHotKeyHelpers(),k.actions.internal.seekToPercent(.6,kn.DOUBLE_TAP),Je();break;case"Digit7":case"Numpad7":e.showHotKeyHelpers(),k.actions.internal.seekToPercent(.7,kn.DOUBLE_TAP),Je();break;case"Digit8":case"Numpad8":e.showHotKeyHelpers(),k.actions.internal.seekToPercent(.8,kn.DOUBLE_TAP),Je();break;case"Digit9":case"Numpad9":e.showHotKeyHelpers(),k.actions.internal.seekToPercent(.9,kn.DOUBLE_TAP),Je();break;case"Digit0":case"Numpad0":e.showHotKeyHelpers(),k.actions.internal.seekToPercent(0,kn.DOUBLE_TAP),Je();break;case"Slash":{oe.shiftKey&&R.features.hotKeyMapModal&&(e.showKeyMap(),Je());break}case"KeyN":oe.shiftKey&&M()&&(k.actions.internal.nextVideoClick(),Je());break;case"KeyP":oe.shiftKey&&I()&&(k.actions.internal.prevVideoClick(),Je());break;case"ShiftLeft":case"ShiftRight":Je();break;case"Tab":case"Escape":case"Enter":break;default:Kb(De);break}return Mt},st=oe=>{let At=oe.code;if(oe.ctrlKey||oe.altKey||oe.metaKey)return;let ge=n()===pa.PLAYING||n()===pa.PAUSED,be=e.isAds&&(s()==="paused"||s()==="playing");if(ge||be)switch(At){case"ShiftLeft":case"ShiftRight":Xe=0;break}},ct=z("aria_label_video_player"),bt=()=>{var oe;return(oe=r(ee))==null?void 0:oe.focus()},St=oe=>oe.type==="keydown"?qe(oe,!0):(oe.type==="keyup"&&st(oe),!1);var Ge=Gb();Ge.__keyup=st,Ge.__keydown=[qb,qe];var Wt=_(Ge);xe(Wt,()=>{var oe;return(oe=e.children)!=null?oe:se}),h(Ge),ot(Ge,oe=>B(ee,oe),()=>r(ee)),O(()=>Be(Ge,"aria-label",ct)),$(t,Ge);var Qt=U({focus:bt,handleExternalKeyboardEvent:St});return o(),Qt}lt(["keyup","keydown"]);var Yb=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>'),jb={hash:"svelte-1dbnjb1",code:`.container.svelte-1dbnjb1 {position:absolute;top:50%;left:50%;transform:translate(-50%, -50%);pointer-events:none;display:flex;}.dot.svelte-1dbnjb1:nth-child(1) {animation-delay:calc(0 * 180ms);}.dot.svelte-1dbnjb1:nth-child(2) {animation-delay:calc(1 * 180ms);}.dot.svelte-1dbnjb1:nth-child(3) {animation-delay:calc(2 * 180ms);}
141
141
 
142
142
  @keyframes svelte-1dbnjb1-dot_animation {
143
143
  0% {
@@ -150,7 +150,7 @@ Try switching the\xA0quality to\xA0Auto.`},Ih=w_;var fs=new Map;fs.set(Ph.EN,Ih)
150
150
  opacity: 0.2;
151
151
  }
152
152
  }.dot.svelte-1dbnjb1 {border-radius:4px;width:8px;height:8px;background:var(--btn-color);animation-duration:750ms;
153
- animation-name: svelte-1dbnjb1-dot_animation;animation-iteration-count:infinite;}.dot.svelte-1dbnjb1 + .dot:where(.svelte-1dbnjb1) {margin-left:4px;}`};function ma(t,e){z(t,Zb);let i=m(e,"style",3,"");var o=jb();O(()=>st(o,i())),b(t,o)}var Xb=Se('<svg><!><g filter="url(#a)"><path fill="#fff" d="M7.536 6.264a.9.9 0 0 0-1.272 1.272L10.727 12l-4.463 4.464a.9.9 0 0 0 1.272 1.272L12 13.273l4.464 4.463a.9.9 0 1 0 1.272-1.272L13.273 12l4.463-4.464a.9.9 0 1 0-1.272-1.272L12 10.727z"></path><path stroke="#000" stroke-opacity=".12" stroke-width=".5" d="M7.713 6.087a1.15 1.15 0 1 0-1.626 1.626L10.374 12l-4.287 4.287a1.15 1.15 0 0 0 1.626 1.626L12 13.626l4.287 4.287a1.15 1.15 0 0 0 1.626-1.626L13.626 12l4.287-4.287a1.15 1.15 0 1 0-1.626-1.626L12 10.374z"></path></g><defs><filter id="a" width="23" height="23" x=".5" y=".5" color-interpolation-filters="sRGB" filterUnits="userSpaceOnUse"><feFlood flood-opacity="0" result="BackgroundImageFix"></feFlood><feColorMatrix in="SourceAlpha" result="hardAlpha" values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0"></feColorMatrix><feOffset></feOffset><feGaussianBlur stdDeviation="2.5"></feGaussianBlur><feColorMatrix values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.16 0"></feColorMatrix><feBlend in2="BackgroundImageFix" result="effect1_dropShadow_2422_111980"></feBlend><feBlend in="SourceGraphic" in2="effect1_dropShadow_2422_111980" result="shape"></feBlend></filter></defs></svg>');function ff(t,e){let i=Me(e,["$$slots","$$events","$$legacy","children"]);var o=Xb();Ie(o,()=>({xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none","aria-hidden":"true","data-testid":"cross-icon",role:"img",...i}));var n=_(o);be(n,()=>{var r;return(r=e.children)!=null?r:oe}),Ce(2),g(o),b(t,o)}import{noop as al}from"@vkontakte/videoplayer-shared/es2018";var Jb=t=>{t.stopPropagation()},e$=M("<button><!></button>"),t$={hash:"svelte-wr0kwr",code:`.btn.svelte-wr0kwr {padding:8px;margin:0;height:var(--controls-height);display:flex;flex-direction:row;align-items:center;justify-content:center;}
153
+ animation-name: svelte-1dbnjb1-dot_animation;animation-iteration-count:infinite;}.dot.svelte-1dbnjb1 + .dot:where(.svelte-1dbnjb1) {margin-left:4px;}`};function fa(t,e){K(t,jb);let i=m(e,"style",3,"");var o=Yb();O(()=>nt(o,i())),$(t,o)}var Zb=Te('<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 mf(t,e){let i=Ve(e,["$$slots","$$events","$$legacy","children"]);var o=Zb();Pe(o,()=>({xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none","aria-hidden":"true","data-testid":"cross-icon",role:"img",...i}));var n=_(o);xe(n,()=>{var s;return(s=e.children)!=null?s:se}),Se(2),h(o),$(t,o)}import{noop as rl}from"@vkontakte/videoplayer-shared/es2018";var Xb=t=>{t.stopPropagation()},Jb=A("<button><!></button>"),e$={hash:"svelte-wr0kwr",code:`.btn.svelte-wr0kwr {padding:8px;margin:0;height:var(--controls-height);display:flex;flex-direction:row;align-items:center;justify-content:center;}
154
154
 
155
155
  /* \u041D\u0438\u0436\u0435 \u0438\u0434\u0443\u0442 \u0430\u0431\u0441\u0442\u0440\u0430\u043A\u0442\u043D\u044B\u0435 \u0438 \u0441\u043F\u0435\u0446\u0438\u0444\u0438\u043A \u043A\u043B\u0430\u0441\u0441\u044B \u0434\u043B\u044F \u043A\u043D\u043E\u043F\u043E\u043A \u043A\u043E\u0442\u043E\u0440\u044B\u0435 \u043C\u043E\u0436\u043D\u043E \u043F\u0435\u0440\u0435\u0434\u0430\u0442\u044C \u0447\u0435\u0440\u0435\u0437 \u043F\u0430\u0440\u0430\u043C\u0435\u0442\u0440 className */.w-max.svelte-wr0kwr {width:100%;}.btn--live.svelte-wr0kwr {padding:10px 4px;}.btn-jc-l.svelte-wr0kwr {justify-content:left;}
156
156
 
@@ -158,22 +158,22 @@ Try switching the\xA0quality to\xA0Auto.`},Ih=w_;var fs=new Map;fs.set(Ph.EN,Ih)
158
158
  /* mobile */
159
159
  /* container mobile */.btn-m.svelte-wr0kwr {position:absolute;left:12px;top:50%;transform:translateY(-50%);height:44px;width:44px;border-radius:12px;background-color:rgba(0, 0, 0, 0.56);transition:opacity var(--controls-transition-duration);display:flex;align-items:center;justify-content:center;}.btn-m--play.svelte-wr0kwr {width:var(--big-play-size);height:var(--big-play-size);display:flex;align-items:center;justify-content:center;position:relative;padding:16px;}.btn-m--play.svelte-wr0kwr svg {transform:scale(2);}.btn-m--prev.svelte-wr0kwr,
160
160
  .btn-m--next.svelte-wr0kwr {position:absolute;width:50px;height:50px;}.btn-m--prev.svelte-wr0kwr {right:calc(100% + 35px);}.btn-m--next.svelte-wr0kwr {left:calc(100% + 35px);}.btn.svelte-wr0kwr:disabled {cursor:default;
161
- /* \u043D\u0443\u0436\u043D\u043E \u0434\u043B\u044F \u0442\u043E\u0433\u043E, \u0447\u0442\u043E\u0431\u044B \u043D\u0435 \u0434\u0430\u0432\u0430\u0442\u044C \u0441\u043E\u0431\u044B\u0442\u0438\u044F\u043C \u043A\u043B\u0438\u043A\u0430 \u043E\u0442\u0440\u0430\u0431\u0430\u0442\u044B\u0432\u0430\u0442\u044C \u043D\u0430 \u0437\u0430\u0431\u043B\u043E\u0447\u0435\u043D\u043D\u043E\u043C \u044D\u043B\u0435\u043C\u0435\u043D\u0442\u0435 */pointer-events:none;}.btn.svelte-wr0kwr:not(.btn-full-opacity):disabled {opacity:0.4;}.btn.svelte-wr0kwr:not(:disabled):hover {opacity:0.8;}.pr-0.svelte-wr0kwr {padding-right:0;}.pl-0.svelte-wr0kwr {padding-left:0;}`};function Vt(t,e){D(e,!0),z(t,t$);let i=m(e,"className",3,""),o=m(e,"style",3,""),n=m(e,"disabled",3,void 0),r=m(e,"testId",3,void 0),l=m(e,"ariaHidden",3,void 0),d=m(e,"ariaLabel",3,void 0),a=m(e,"ref",15,void 0),p=m(e,"ariaKeyShortCut",3,void 0),f=m(e,"ariaExpanded",3,void 0),v=m(e,"tabIndex",3,0),u=m(e,"click",3,al),$=m(e,"focus",3,al),w=m(e,"blur",3,al),y=h(()=>u()===al?null:I=>{I.stopPropagation(),u()(I)}),S=h(()=>$()===al?null:I=>{I.preventDefault(),$()()}),T=h(()=>w()===al?null:I=>{I.preventDefault(),w()()});var k=e$();k.__pointerdown=[Jb],k.__click=function(...I){var E;(E=s(y))==null||E.apply(this,I)};var A=_(k);be(A,()=>{var I;return(I=e.children)!=null?I:oe}),g(k),ot(k,I=>a(I),()=>a()),O(()=>{var I,E,V,K,W,U,Y,ne;J(k,1,`btn ${(I=i())!=null?I:""}`,"svelte-wr0kwr"),st(k,o()||null),k.disabled=(E=n())!=null?E:null,Ne(k,"aria-hidden",(V=l())!=null?V:null),Ne(k,"aria-label",(K=d())!=null?K:null),Ne(k,"aria-keyshortcuts",(W=p())!=null?W:null),Ne(k,"aria-expanded",(U=f())!=null?U:null),Ne(k,"data-testid",(Y=r())!=null?Y:null),Ne(k,"tabindex",v()),Ne(k,"role",e.role),Ne(k,"aria-checked",(ne=e.areaChecked)!=null?ne:null)}),wt("focus",k,function(...I){var E;(E=s(S))==null||E.apply(this,I)}),wt("blur",k,function(...I){var E;(E=s(T))==null||E.apply(this,I)}),b(t,k),H()}lt(["pointerdown","click"]);var i$=M('<div class="modal-header svelte-1witlsj"><h3 class="modal-title svelte-1witlsj"> </h3> <!></div>'),o$=M('<div class="modal-overlay svelte-1witlsj"><div class="modal-container svelte-1witlsj"><!> <div class="modal-scroll svelte-1witlsj"><div class="modal-main svelte-1witlsj"><!></div></div></div></div>'),n$={hash:"svelte-1witlsj",code:".modal-overlay.svelte-1witlsj {position:absolute;top:0;bottom:0;left:0;right:0;background:transparent;display:flex;align-items:center;justify-content:center;}.modal-container.svelte-1witlsj {display:flex;flex-direction:column;width:calc(100% - 32px);max-width:600px;height:calc(100% - 24px);max-height:490px;background:var(--mobile-settings-bg);color:var(--white);border-radius:8px;}.modal-header.svelte-1witlsj {box-sizing:border-box;display:flex;justify-content:space-between;align-items:start;height:40px;padding:8px 10px;border-bottom:1px solid var(--white-alpha-24);}.modal-title.svelte-1witlsj {margin:3px 0 0 6px;color:var(--white);font-feature-settings:'clig' off, 'liga' off;font-size:13px;font-style:normal;font-weight:600;line-height:16px;}.modal-scroll.svelte-1witlsj {overflow-y:auto;overflow-x:hidden;margin:8px 4px 8px 0;height:100%;}.modal-scroll.svelte-1witlsj::-webkit-scrollbar {width:8px;}.modal-scroll.svelte-1witlsj::-webkit-scrollbar-track {box-shadow:none;background-color:transparent;border-radius:4px;margin-right:2px;}.modal-scroll.svelte-1witlsj::-webkit-scrollbar-thumb {min-height:40px;border-radius:5px;background-color:#666;border:1px solid transparent;background-clip:padding-box;}.modal-scroll.svelte-1witlsj::-webkit-scrollbar-thumb:hover {background-color:#777;}.modal-main.svelte-1witlsj {margin:-8px -4px 0 0;}"};function mf(t,e){D(e,!0),z(t,n$);let i=m(e,"showHeader",3,!0),o=m(e,"showCloseCross",3,!0),n=F("hotkey_map_modal_close_btn_text");var r=o$(),l=_(r),d=_(l);{var a=u=>{var $=i$(),w=_($),y=_(w,!0);g(w);var S=P(w,2);{var T=k=>{Vt(k,{get click(){return e.onClose},testId:"close-modal",style:"padding: 0; height: 24px; width: 24px",get ariaLabel(){return n},children:(A,I)=>{ff(A,{})},$$slots:{default:!0}})};L(S,k=>{o()&&k(T)})}g($),O(()=>he(y,e.title)),b(u,$)};L(d,u=>{i()&&u(a)})}var p=P(d,2),f=_(p),v=_(f);be(v,()=>{var u;return(u=e.children)!=null?u:oe}),g(f),g(p),g(l),g(r),b(t,r),H()}var r$=new Set(["BR"]),Xh=t=>{var n;let e=document.createElement("DIV");e.innerHTML=t;let i=e.querySelectorAll("*"),o=i.length;for(;o--;){let r=i[o],l=r.tagName;r$.has(l)||(n=r.parentElement)==null||n.removeChild(r)}return e.innerHTML};var s$=M('<li class="hot-key-map-item svelte-quklnq"><span class="hot-key-map-item-description svelte-quklnq"><!></span> <span class="hot-key-map-item-value svelte-quklnq"> </span></li>'),a$=M('<div class="hot-key-map-group svelte-quklnq"><h5 class="hot-key-map-group-title svelte-quklnq"> </h5> <ul class="hot-key-map-group-items svelte-quklnq"></ul></div>'),l$=M('<div class="hot-key-map svelte-quklnq"></div>'),d$={hash:"svelte-quklnq",code:`.hot-key-map.svelte-quklnq {color:var(--black);box-sizing:border-box;overflow-x:hidden;}.hot-key-map-group.svelte-quklnq {border-bottom:1px solid var(--white-alpha-24);margin:0 20px 0 16px;}.hot-key-map-group.svelte-quklnq:last-child {border-bottom:none;}.hot-key-map-group-title.svelte-quklnq {color:var(--white);font-feature-settings:'clig' off, 'liga' off;font-size:13px;font-style:normal;font-weight:600;line-height:16px;}.hot-key-map-group-title.svelte-quklnq,
161
+ /* \u043D\u0443\u0436\u043D\u043E \u0434\u043B\u044F \u0442\u043E\u0433\u043E, \u0447\u0442\u043E\u0431\u044B \u043D\u0435 \u0434\u0430\u0432\u0430\u0442\u044C \u0441\u043E\u0431\u044B\u0442\u0438\u044F\u043C \u043A\u043B\u0438\u043A\u0430 \u043E\u0442\u0440\u0430\u0431\u0430\u0442\u044B\u0432\u0430\u0442\u044C \u043D\u0430 \u0437\u0430\u0431\u043B\u043E\u0447\u0435\u043D\u043D\u043E\u043C \u044D\u043B\u0435\u043C\u0435\u043D\u0442\u0435 */pointer-events:none;}.btn.svelte-wr0kwr:not(.btn-full-opacity):disabled {opacity:0.4;}.btn.svelte-wr0kwr:not(:disabled):hover {opacity:0.8;}.pr-0.svelte-wr0kwr {padding-right:0;}.pl-0.svelte-wr0kwr {padding-left:0;}`};function Vt(t,e){F(e,!0),K(t,e$);let i=m(e,"className",3,""),o=m(e,"style",3,""),n=m(e,"disabled",3,void 0),s=m(e,"testId",3,void 0),l=m(e,"ariaHidden",3,void 0),d=m(e,"ariaLabel",3,void 0),a=m(e,"ref",15,void 0),p=m(e,"ariaKeyShortCut",3,void 0),f=m(e,"ariaExpanded",3,void 0),v=m(e,"tabIndex",3,0),u=m(e,"click",3,rl),y=m(e,"focus",3,rl),w=m(e,"blur",3,rl),b=g(()=>u()===rl?null:I=>{I.stopPropagation(),u()(I)}),S=g(()=>y()===rl?null:I=>{I.preventDefault(),y()()}),T=g(()=>w()===rl?null:I=>{I.preventDefault(),w()()});var E=Jb();E.__pointerdown=[Xb],E.__click=function(...I){var k;(k=r(b))==null||k.apply(this,I)};var M=_(E);xe(M,()=>{var I;return(I=e.children)!=null?I:se}),h(E),ot(E,I=>a(I),()=>a()),O(()=>{var I,k,R,Y,D,H,q,J;X(E,1,`btn ${(I=i())!=null?I:""}`,"svelte-wr0kwr"),nt(E,o()||null),E.disabled=(k=n())!=null?k:null,Be(E,"aria-hidden",(R=l())!=null?R:null),Be(E,"aria-label",(Y=d())!=null?Y:null),Be(E,"aria-keyshortcuts",(D=p())!=null?D:null),Be(E,"aria-expanded",(H=f())!=null?H:null),Be(E,"data-testid",(q=s())!=null?q:null),Be(E,"tabindex",v()),Be(E,"role",e.role),Be(E,"aria-checked",(J=e.areaChecked)!=null?J:null)}),Tt("focus",E,function(...I){var k;(k=r(S))==null||k.apply(this,I)}),Tt("blur",E,function(...I){var k;(k=r(T))==null||k.apply(this,I)}),$(t,E),U()}lt(["pointerdown","click"]);var t$=A('<div class="modal-header svelte-1witlsj"><h3 class="modal-title svelte-1witlsj"> </h3> <!></div>'),i$=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>'),o$={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 vf(t,e){F(e,!0),K(t,o$);let i=m(e,"showHeader",3,!0),o=m(e,"showCloseCross",3,!0),n=z("hotkey_map_modal_close_btn_text");var s=i$(),l=_(s),d=_(l);{var a=u=>{var y=t$(),w=_(y),b=_(w,!0);h(w);var S=P(w,2);{var T=E=>{Vt(E,{get click(){return e.onClose},testId:"close-modal",style:"padding: 0; height: 24px; width: 24px",get ariaLabel(){return n},children:(M,I)=>{mf(M,{})},$$slots:{default:!0}})};L(S,E=>{o()&&E(T)})}h(y),O(()=>_e(b,e.title)),$(u,y)};L(d,u=>{i()&&u(a)})}var p=P(d,2),f=_(p),v=_(f);xe(v,()=>{var u;return(u=e.children)!=null?u:se}),h(f),h(p),h(l),h(s),$(t,s),U()}var n$=new Set(["BR"]),Xh=t=>{var n;let e=document.createElement("DIV");e.innerHTML=t;let i=e.querySelectorAll("*"),o=i.length;for(;o--;){let s=i[o],l=s.tagName;n$.has(l)||(n=s.parentElement)==null||n.removeChild(s)}return e.innerHTML};var r$=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>'),s$=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>'),a$=A('<div class="hot-key-map svelte-quklnq"></div>'),l$={hash:"svelte-quklnq",code:`.hot-key-map.svelte-quklnq {color:var(--black);box-sizing:border-box;overflow-x:hidden;}.hot-key-map-group.svelte-quklnq {border-bottom:1px solid var(--white-alpha-24);margin:0 20px 0 16px;}.hot-key-map-group.svelte-quklnq:last-child {border-bottom:none;}.hot-key-map-group-title.svelte-quklnq {color:var(--white);font-feature-settings:'clig' off, 'liga' off;font-size:13px;font-style:normal;font-weight:600;line-height:16px;}.hot-key-map-group-title.svelte-quklnq,
162
162
  .hot-key-map-item.svelte-quklnq {padding:12px 0;margin:0;width:100%;}.hot-key-map-group-items.svelte-quklnq {box-sizing:border-box;list-style:none;padding:0;margin:0;}.hot-key-map-item.svelte-quklnq {box-sizing:border-box;display:flex;justify-content:space-between;align-items:center;--videoplayer-hotkey-item-value-width: 156px;--videoplayer-hotkey-item-value-padding-left: 24px;}.hot-key-map-item-description.svelte-quklnq {color:var(--white-alpha-72);width:calc(100% - var(--videoplayer-hotkey-item-value-width) - var(--videoplayer-hotkey-item-value-padding-left));max-width:388px;}.hot-key-map-item-value.svelte-quklnq {color:var(--white);width:var(--videoplayer-hotkey-item-value-width);padding-left:var(--videoplayer-hotkey-item-value-padding-left);letter-spacing:-0.14px;}.hot-key-map-item-description.svelte-quklnq,
163
- .hot-key-map-item-value.svelte-quklnq {font-feature-settings:'clig' off, 'liga' off;font-size:13px;font-style:normal;font-weight:400;line-height:16px;}`};function vf(t,e){D(e,!1),z(t,d$);let[i,o]=De(),n=()=>C(l,"$data",i),r=Ee(),{data:l,show:d}=r.ui.modals.hotKeyMap,a=()=>{d.set(!1)};Lr(),mf(t,{get title(){return n().title},onClose:a,children:(p,f)=>{var v=l$();$i(v,5,()=>n().groups,({title:u,items:$})=>u,(u,$)=>{let w=()=>s($).title,y=()=>s($).items;var S=a$(),T=_(S),k=_(T,!0);g(T);var A=P(T,2);$i(A,5,y,({description:I,value:E})=>E,(I,E)=>{let V=()=>s(E).description,K=()=>s(E).value;var W=s$(),U=_(W),Y=_(U);Dl(Y,()=>Xh(V())),g(U);var ne=P(U,2),G=_(ne,!0);g(ne),g(W),O(()=>he(G,K())),b(I,W)}),g(A),g(S),O(()=>he(k,w())),b(u,S)}),g(v),b(p,v)},$$slots:{default:!0}}),H(),o()}import{noop as C1}from"@vkontakte/videoplayer-shared/es2018";import{ChromecastState as _1,PlaybackState as em}from"@vkontakte/videoplayer-core/es2018";import"@vkontakte/videoplayer-shared/es2018";var c$=M('<div class="pillow svelte-1oe0j8n"><!></div>'),u$={hash:"svelte-1oe0j8n",code:".pillow.svelte-1oe0j8n {background-color:#679FF8;color:var(--white);font-size:6px;font-weight:600;-webkit-font-smoothing:antialiased;padding:2px 4px;border-radius:12px;}"};function gf(t,e){z(t,u$);var i=c$(),o=_(i);be(o,()=>{var n;return(n=e.children)!=null?n:oe}),g(i),b(t,i)}import{VideoQuality as dd}from"@vkontakte/videoplayer-shared/es2018";var p$=Se('<svg><!><path fill="currentColor" d="M5.517 5c.325 0 .516-.198.516-.536v-.97l.492-.517 1.46 1.74c.16.205.304.283.516.283A.49.49 0 0 0 9 4.501c0-.14-.068-.287-.222-.478l-1.47-1.73L8.818.868C8.949.731 9 .618 9 .475A.474.474 0 0 0 8.515 0c-.171 0-.301.065-.445.222L6.064 2.25h-.03V.54c0-.342-.192-.54-.517-.54s-.516.198-.516.54v3.924c0 .338.191.536.516.536"></path><path fill="currentColor" fill-rule="evenodd" d="m2.551 1.052-1.51 2.052h1.51zM3.5 3.104V.832c0-.81-1.089-1.14-1.556-.48L.139 2.821a.75.75 0 0 0 .612 1.183h1.8v.55c0 .248.25.45.499.45a.45.45 0 0 0 .45-.45v-.55h.052a.45.45 0 0 0 0-.9z" clip-rule="evenodd"></path></svg>');function hf(t,e){let i=Me(e,["$$slots","$$events","$$legacy","children"]);var o=p$();Ie(o,()=>({xmlns:"http://www.w3.org/2000/svg",width:"9",height:"5",fill:"none",role:"img",...i}));var n=_(o);be(n,()=>{var r;return(r=e.children)!=null?r:oe}),Ce(2),g(o),b(t,o)}var f$=Se('<svg><!><path fill="currentColor" d="M5.513 5c.323 0 .513-.198.513-.537v-.97l.49-.516L7.99 4.715c.16.205.302.284.513.284A.49.49 0 0 0 9 4.5c0-.14-.068-.287-.22-.478L7.293 2.293 8.82.868C8.949.731 9 .618 9 .475A.473.473 0 0 0 8.517 0c-.17 0-.299.065-.441.222L6.056 2.25h-.03V.54c0-.342-.19-.54-.513-.54S5 .198 5 .54v3.923c0 .339.19.537.513.537"></path><path fill="currentColor" fill-rule="evenodd" d="M2 0q-.53 0-.952.173a1.5 1.5 0 0 0-.654.484q-.23.312-.23.71c0 .423.208.756.613.995a1.46 1.46 0 0 0-.547.44q-.23.305-.23.71 0 .432.252.778l.001.001q.26.336.712.523Q1.418 5.001 2 5q.582 0 1.035-.186.451-.187.705-.524.26-.346.26-.777 0-.406-.23-.711a1.45 1.45 0 0 0-.552-.44c.409-.235.618-.569.618-.994a1.14 1.14 0 0 0-.238-.711 1.44 1.44 0 0 0-.653-.484A2.4 2.4 0 0 0 2 0m-.573.964C1.563.86 1.75.804 2 .804s.434.055.564.16h.001a.51.51 0 0 1 .204.43.52.52 0 0 1-.204.437c-.13.105-.315.161-.565.161s-.437-.056-.573-.161a.52.52 0 0 1-.203-.437q.002-.276.203-.43m-.345 2.522c0-.217.08-.381.233-.503.16-.122.385-.188.685-.188s.522.066.677.188q.24.181.24.503a.63.63 0 0 1-.24.523c-.155.122-.377.188-.677.188s-.524-.065-.684-.187a.64.64 0 0 1-.234-.524" clip-rule="evenodd"></path></svg>');function _f(t,e){let i=Me(e,["$$slots","$$events","$$legacy","children"]);var o=f$();Ie(o,()=>({xmlns:"http://www.w3.org/2000/svg",width:"9",height:"5",fill:"none",role:"img",...i}));var n=_(o);be(n,()=>{var r;return(r=e.children)!=null?r:oe}),Ce(2),g(o),b(t,o)}var m$=Se('<svg><!><path fill="currentColor" d="M5.516 5h1.107C8.103 5 9 4.065 9 2.5S8.103 0 6.623 0H5.516C5.191 0 5 .2 5 .537V4.46c0 .342.191.54.516.54m.516-.854V.852H6.5C7.41.852 8 1.468 8 2.5c0 1.066-.577 1.646-1.5 1.646zM.516 5c.325 0 .516-.198.516-.536V2.922h1.936v1.542c0 .338.191.536.516.536S4 4.802 4 4.464V.54C4 .198 3.809 0 3.484 0s-.516.198-.516.54v1.531H1.032V.54C1.032.198.841 0 .516 0S0 .198 0 .54v3.989C0 4.867.191 5 .516 5"></path></svg>');function bf(t,e){let i=Me(e,["$$slots","$$events","$$legacy","children"]);var o=m$();Ie(o,()=>({xmlns:"http://www.w3.org/2000/svg",width:"9",height:"5",fill:"none",role:"img",...i}));var n=_(o);be(n,()=>{var r;return(r=e.children)!=null?r:oe}),Ce(),g(o),b(t,o)}var v$=Se('<svg><!><path fill="currentColor" d="M9.516 5h1.107C12.103 5 13 4.065 13 2.5S12.103 0 10.623 0H9.516C9.191 0 9 .2 9 .537V4.46c0 .342.191.54.516.54m.516-.854V.852h.468c.91 0 1.5.616 1.5 1.648 0 1.066-.577 1.646-1.5 1.646zM4.516 5c.325 0 .516-.198.516-.536V2.922h1.936v1.542c0 .338.191.536.516.536S8 4.802 8 4.464V.54C8 .198 7.809 0 7.484 0s-.516.198-.516.54v1.531H5.032V.54c0-.342-.191-.54-.516-.54S4 .198 4 .54v3.989c0 .338.191.471.516.471m-4 0c.325 0 .516-.198.516-.537V3h1.332c.27 0 .441-.154.441-.41 0-.253-.174-.407-.44-.407H1.031V.854h1.5c.28 0 .468-.16.468-.427C3 .161 2.815 0 2.532 0H.516C.191 0 0 .198 0 .537v3.926C0 4.802.191 5 .516 5"></path></svg>');function ad(t,e){let i=Me(e,["$$slots","$$events","$$legacy","children"]);var o=v$();Ie(o,()=>({xmlns:"http://www.w3.org/2000/svg",width:"13",height:"5",fill:"none",role:"img",...i}));var n=_(o);be(n,()=>{var r;return(r=e.children)!=null?r:oe}),Ce(),g(o),b(t,o)}var g$=Se('<svg><!><path fill="currentColor" d="M11.516 5.75h1.107c1.48 0 2.377-.935 2.377-2.5s-.897-2.5-2.377-2.5h-1.107c-.325 0-.516.199-.516.537V5.21c0 .342.191.54.516.54m.516-.854V1.602h.468c.91 0 1.5.616 1.5 1.648 0 1.066-.577 1.646-1.5 1.646zm-5.516.854c.325 0 .516-.198.516-.536V3.672h1.936v1.542c0 .338.191.536.516.536S10 5.552 10 5.214V1.29c0-.342-.191-.54-.516-.54s-.516.198-.516.54v1.531H7.032V1.29c0-.342-.191-.54-.516-.54S6 .948 6 1.29v3.989c0 .338.191.471.516.471"></path><path fill="currentColor" fill-rule="evenodd" d="M3.338 5.659a4 4 0 0 1-.838.091C1.037 5.75 0 4.885 0 3.303 0 1.733 1.037.75 2.5.75 3.96.75 5 1.734 5 3.303c0 .863-.274 1.46-.778 1.88l.194.29a.5.5 0 0 1-.832.554zm-.52-.78-.234-.352a.5.5 0 1 1 .832-.554l.245.367c.184-.26.286-.615.286-1.037 0-1.036-.64-1.653-1.447-1.653-.81 0-1.447.617-1.447 1.653 0 1.032.637 1.596 1.447 1.596.08 0 .208-.007.318-.02" clip-rule="evenodd"></path></svg>');function ld(t,e){let i=Me(e,["$$slots","$$events","$$legacy","children"]);var o=g$();Ie(o,()=>({xmlns:"http://www.w3.org/2000/svg",width:"15",height:"7",fill:"none",role:"img",...i}));var n=_(o);be(n,()=>{var r;return(r=e.children)!=null?r:oe}),Ce(2),g(o),b(t,o)}var Jc=t=>{switch(t){case dd.Q_720P:return bf;case dd.Q_1080P:return ad;case dd.Q_1440P:return ld;case dd.Q_2160P:return hf;case dd.Q_4320P:return _f}};var h$=Se('<svg><!><path fill="var(--btn-color, #fff)" d="M12.722 2.213c1.208.037 1.994.702 2.408 1.954l.065.215.051.191q.027.111.068.235l.058.159.034.017.069-.023.133-.051.156-.068c1.414-.658 2.502-.536 3.387.437l.125.145.82 1.017c.732.962.71 1.99-.004 3.1l-.125.187-.117.16a3 3 0 0 0-.142.205l-.07.115-.034.057.004.02.091.06.127.077.153.083c1.39.71 1.963 1.641 1.742 2.936l-.038.188-.244 1.058c-.158.685-.282 1.01-.77 1.454-.475.432-1.016.61-1.732.67l-.22.014-.198.006q-.116.002-.246.015l-.181.021.013.142.013.096.033.179c.323 1.526-.04 2.558-1.188 3.202l-.17.09-1.175.57c-1.102.495-2.099.242-3.02-.702l-.153-.164-.13-.15a3 3 0 0 0-.17-.186l-.097-.096-.05-.046-.09.087-.106.108-.118.133c-.952 1.134-1.957 1.54-3.176 1.067l-.175-.074-1.052-.51-.312-.16c-.476-.26-.743-.51-1.004-1.061-.275-.58-.294-1.15-.16-1.883l.044-.225q.024-.114.041-.242l.019-.172-.004-.004-.104-.014-.146-.013-.174-.008c-1.56-.028-2.484-.614-2.853-1.877l-.049-.185-.292-1.274c-.235-1.185.236-2.1 1.364-2.785l.194-.112.175-.093a3 3 0 0 0 .216-.12l.155-.102.004-.019-.063-.108-.08-.125-.103-.143c-.937-1.246-1.044-2.335-.276-3.404l.115-.153.824-1.013c.79-.915 1.8-1.107 3.034-.64l.208.083.181.081q.103.048.222.093l.136.048.036-.017.033-.089.045-.138.046-.166c.36-1.436 1.085-2.242 2.39-2.35l.19-.011h1.39Zm-.056 1.799h-1.333l-.14.01c-.285.037-.472.191-.652.832l-.041.156-.057.206a6.3 6.3 0 0 1-.468 1.134 6 6 0 0 0-1.147.558 6.5 6.5 0 0 1-1.16-.35l-.35-.154c-.248-.107-.435-.161-.583-.175l-.084-.003a.55.55 0 0 0-.408.193l-.068.074-.789.973-.095.125c-.183.264-.21.5.195 1.075l.228.316c.212.31.425.692.598 1.102q-.195.577-.27 1.201c-.334.29-.69.537-1.013.72l-.343.184c-.617.34-.695.563-.646.881l.013.075.28 1.22.04.152c.096.308.265.475.968.509l.388.014c.37.024.798.09 1.223.204q.337.526.776.968a6.3 6.3 0 0 1-.118 1.445c-.201.95-.014 1.102.383 1.3l1.126.547a.8.8 0 0 0 .337.089l.067-.006c.181-.028.382-.162.67-.485l.258-.295a6.5 6.5 0 0 1 .949-.837l.298.023L12 18l.302-.008.298-.022c.363.263.691.559.948.837l.258.295c.325.364.538.488.737.49l.066-.003a.8.8 0 0 0 .178-.046l.093-.039 1.126-.548.139-.073c.3-.175.42-.395.245-1.226a6.2 6.2 0 0 1-.117-1.445q.436-.442.775-.97a6.5 6.5 0 0 1 1.223-.202l.387-.014c.812-.04.912-.256 1.008-.66l.264-1.142c.09-.406.095-.643-.617-1.035l-.342-.183a6.4 6.4 0 0 1-1.014-.722 6 6 0 0 0-.27-1.201c.174-.41.386-.791.598-1.1l.228-.317c.406-.575.378-.81.195-1.075l-.045-.062-.787-.974c-.14-.171-.259-.294-.452-.322l-.076-.007c-.16-.003-.368.05-.667.178l-.35.155a6.4 6.4 0 0 1-1.158.348 6 6 0 0 0-1.15-.556 6.5 6.5 0 0 1-.454-1.093l-.113-.414c-.192-.678-.393-.805-.714-.828zM12 8.2a3.8 3.8 0 1 1 0 7.6 3.8 3.8 0 0 1 0-7.6m0 1.8a2 2 0 1 0 0 4 2 2 0 0 0 0-4"></path></svg>');function $f(t,e){let i=Me(e,["$$slots","$$events","$$legacy","children"]);var o=h$();Ie(o,()=>({xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none","aria-hidden":"true","data-testid":"settings-mobile-icon",role:"img",...i}));var n=_(o);be(n,()=>{var r;return(r=e.children)!=null?r:oe}),Ce(),g(o),b(t,o)}var _$=Se('<svg><!><path fill="var(--btn-color, #fff)" fill-rule="evenodd" d="M13.933 4.875a.6.6 0 0 0-.07-.658c-.327-.413-.45-.833-.574-1.253l-.039-.13C13 2 12.833 2 12.417 2h-.91c-.371.003-.6.052-.757.833-.148.738-.36 1.476-1.566 2.186a.5.5 0 0 1-.12.05c-1.27.324-1.905-.023-2.542-.37l-.12-.065c-.766-.412-.884-.294-1.178 0l-.643.644c-.26.264-.389.461.053 1.124.418.626.789 1.299.438 2.654a.5.5 0 0 1-.05.12c-.668 1.126-1.362 1.33-2.058 1.535l-.13.039C2 11 2 11.167 2 11.583v.91c.003.371.052.6.833.757.738.148 1.476.36 2.186 1.566a.5.5 0 0 1 .05.12c.324 1.27-.023 1.905-.37 2.542l-.065.12c-.412.766-.294.884 0 1.178l.644.643c.264.26.461.389 1.124-.053.626-.418 1.299-.789 2.654-.438q.063.016.12.05c1.126.668 1.33 1.362 1.535 2.058l.039.13c.25.834.417.834.833.834h.91c.371-.003.6-.052.757-.833.148-.738.36-1.476 1.566-2.186a.5.5 0 0 1 .12-.05c1.27-.324 1.905.023 2.542.37l.12.065c.766.412.884.294 1.178 0l.643-.644c.26-.264.389-.461-.053-1.124-.26-.39-.503-.799-.563-1.38a.6.6 0 0 0-.413-.519 7.5 7.5 0 0 1-1.918-.871.58.58 0 0 0-.758.134 4.75 4.75 0 1 1-3.163-7.68.58.58 0 0 0 .633-.44 7.5 7.5 0 0 1 .749-1.967" clip-rule="evenodd"></path><path fill="var(--btn-color, #fff)" d="M13.25 2.833c.225.751.383 1.502 1.63 2.222 1.399.38 2.082.003 2.718-.42.663-.443.86-.315 1.124-.054l.644.643c.294.294.412.412 0 1.178-.372.69-.792 1.333-.418 2.726.72 1.255 1.47 1.472 2.219 1.622.78.156.83.386.833.757v.91c0 .416 0 .583-.833.833-.751.225-1.502.383-2.222 1.63-.38 1.399-.003 2.082.42 2.718.443.663.315.86.054 1.124l-.643.644c-.294.294-.412.412-1.178 0-.69-.372-1.333-.792-2.726-.418-1.255.72-1.472 1.47-1.622 2.219-.156.78-.386.83-.757.833h-.91c-.416 0-.583 0-.833-.833-.225-.751-.383-1.502-1.63-2.222-1.399-.38-2.082-.003-2.718.42-.663.443-.86.315-1.124.054l-.644-.643c-.294-.294-.412-.412 0-1.178.372-.69.792-1.333.418-2.726-.72-1.255-1.47-1.472-2.219-1.622-.78-.156-.83-.386-.833-.757v-.91c0-.416 0-.583.833-.833.751-.225 1.502-.383 2.222-1.63.38-1.399.003-2.082-.42-2.718-.443-.663-.315-.86-.054-1.124l.643-.644c.294-.294.412-.412 1.178 0 .69.372 1.333.792 2.726.418 1.255-.72 1.472-1.47 1.622-2.219.156-.78.386-.83.757-.833h.91c.416 0 .583 0 .833.833M12 7.25a4.75 4.75 0 1 0 0 9.5 4.75 4.75 0 0 0 0-9.5" class="_full"></path></svg>');function yf(t,e){let i=Me(e,["$$slots","$$events","$$legacy","children"]);var o=_$();Ie(o,()=>({xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none","data-testid":"settings-icon",role:"img",...i}));var n=_(o);be(n,()=>{var r;return(r=e.children)!=null?r:oe}),Ce(2),g(o),b(t,o)}var b$=M('<div aria-hidden="true"><!> <!></div>'),$$={hash:"svelte-8t5w85",code:'.icon.svelte-8t5w85 {display:flex;position:relative;width:24px;height:24px;}.icon.svelte-8t5w85 .pillow {position:absolute;top:1px;right:-9px;}.icon.triple.svelte-8t5w85 .pillow {right:-13px;}.icon.svelte-8t5w85 svg[data-testid="settings-icon--labeled"] ._full {visibility:hidden;opacity:0;}'};function cd(t,e){D(e,!0),z(t,$$);let i=m(e,"isMobile",3,!1),o=m(e,"currentQuality",3,void 0),n=h(()=>Jc(o())),r=h(()=>!!s(n)&&[ad,ld].includes(s(n)));var l=Ue(),d=fe(l);{var a=f=>{$f(f,{})},p=f=>{var v=b$();let u;var $=_(v);{var w=T=>{gf(T,{children:(k,A)=>{var I=Ue(),E=fe(I);yi(E,()=>s(n),(V,K)=>{K(V,{})}),b(k,I)},$$slots:{default:!0}})};L($,T=>{s(n)&&T(w)})}var y=P($,2);let S=h(()=>s(n)?"settings-icon--labeled":"settings-icon");yf(y,{get"data-testid"(){return s(S)},fill:"var(--btn-color, #fff)"}),g(v),O(T=>u=J(v,1,"icon svelte-8t5w85",null,u,T),[()=>({triple:s(r)})]),b(f,v)};L(d,f=>{i()?f(a):f(p,!1)})}b(t,l),H()}var y$=M('<span class="settings-icon-wrapper svelte-d9t49t"><!></span>'),x$={hash:"svelte-d9t49t",code:".settings-icon-wrapper.svelte-d9t49t {position:relative;width:24px;}"};function ll(t,e){D(e,!0),z(t,x$);let[i,o]=De(),n=()=>C(p,"$settingsMenuVisible",i),r=()=>C(u,"$isMobile",i),l=()=>C(a,"$currentQuality",i),d=Ee(),a=d.state.currentQuality$,p=d.ui.settingsMenu.visible$,f=d.actions.internal.openSettingsMenu,v=d.actions.internal.closeSettingsMenu,u=d.ui.isMobile,$=d.ui.t,w=j(void 0);We(()=>{s(w)&&Ct(()=>{e.ref$.set(s(w))})});let y=$("aria_label_settings");async function S(k){let A=Ls(k);n()?v():f(A,$o)}let T=h(()=>n()?"opened":"");Vt(t,{get className(){return s(T)},testId:"btn-settings",click:S,get ariaLabel(){return y},get ariaExpanded(){return n()},get ref(){return s(w)},set ref(k){B(w,k,!0)},children:(k,A)=>{var I=y$(),E=_(I);cd(E,{get isMobile(){return r()},get currentQuality(){return l()}}),g(I),b(k,I)},$$slots:{default:!0}}),H(),o()}var w$=Se('<svg><!><path fill="var(--btn-color, #fff)" fill-rule="evenodd" d="M15.538 4c.948 0 1.714 0 2.334.05.64.053 1.203.163 1.726.43a4.4 4.4 0 0 1 1.922 1.922c.267.523.377 1.087.43 1.726.05.62.05 1.386.05 2.334v3.076c0 .948 0 1.714-.05 2.334-.053.64-.163 1.203-.43 1.726a4.4 4.4 0 0 1-1.922 1.922c-.523.267-1.087.377-1.726.43-.62.05-1.386.05-2.334.05H8.462c-.948 0-1.714 0-2.334-.05-.64-.053-1.203-.163-1.726-.43a4.4 4.4 0 0 1-1.922-1.922c-.267-.523-.377-1.087-.43-1.726C2 15.252 2 14.486 2 13.538v-3.076c0-.948 0-1.714.05-2.334.053-.64.163-1.203.43-1.726A4.4 4.4 0 0 1 4.402 4.48c.523-.267 1.087-.377 1.726-.43C6.748 4 7.514 4 8.462 4zM6 14.9a.9.9 0 0 1 .9-.9h5.2a.9.9 0 0 1 0 1.8H6.9a.9.9 0 0 1-.9-.9m.9-4.7a.9.9 0 1 0 0 1.8h1.7a.9.9 0 1 0 0-1.8zm7.6 4.7a.9.9 0 0 1 .9-.9h1.7a.9.9 0 0 1 0 1.8h-1.7a.9.9 0 0 1-.9-.9m-2.6-4.7a.9.9 0 1 0 0 1.8h5.2a.9.9 0 0 0 0-1.8z" clip-rule="evenodd"></path></svg>');function xf(t,e){let i=Me(e,["$$slots","$$events","$$legacy","children"]);var o=w$();Ie(o,()=>({xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none","aria-hidden":"true","data-testid":"subtitle-pained-icon",viewBox:"0 0 24 24",role:"img",...i}));var n=_(o);be(n,()=>{var r;return(r=e.children)!=null?r:oe}),Ce(),g(o),b(t,o)}var C$=Se('<svg><!><g fill="var(--btn-color, #fff)" fill-rule="evenodd" clip-rule="evenodd"><path d="M8.462 4h7.076c.948 0 1.714 0 2.334.05.64.053 1.203.163 1.726.43a4.4 4.4 0 0 1 1.922 1.922c.267.523.377 1.087.43 1.726.05.62.05 1.386.05 2.333v3.077c0 .948 0 1.713-.05 2.334-.053.64-.163 1.203-.43 1.725a4.4 4.4 0 0 1-1.922 1.923c-.523.267-1.087.377-1.726.43-.62.05-1.386.05-2.334.05H8.462c-.948 0-1.714 0-2.334-.05-.64-.053-1.203-.163-1.726-.43a4.4 4.4 0 0 1-1.922-1.923c-.267-.522-.377-1.086-.43-1.725C2 15.252 2 14.486 2 13.538v-3.077c0-.947 0-1.713.05-2.333.053-.64.163-1.203.43-1.726A4.4 4.4 0 0 1 4.402 4.48c.523-.266 1.087-.376 1.726-.428C6.748 4 7.514 4 8.462 4M6.275 5.845c-.528.043-.83.123-1.055.238A2.6 2.6 0 0 0 4.083 7.22c-.115.227-.195.527-.238 1.055C3.8 8.813 3.8 9.504 3.8 10.5v3c0 .995 0 1.687.045 2.225.043.528.123.829.238 1.055a2.6 2.6 0 0 0 1.137 1.136c.226.116.527.196 1.055.24.538.043 1.23.044 2.225.044h7c.995 0 1.687 0 2.226-.045.527-.043.828-.123 1.054-.239a2.6 2.6 0 0 0 1.137-1.136c.115-.226.195-.527.238-1.055.044-.538.045-1.23.045-2.225v-3c0-.995 0-1.687-.045-2.226-.043-.528-.123-.828-.238-1.054a2.6 2.6 0 0 0-1.137-1.137c-.226-.115-.527-.195-1.055-.238-.538-.044-1.23-.045-2.225-.045h-7c-.995 0-1.687 0-2.226.045"></path><path d="M6 14.9a.9.9 0 0 1 .9-.9h5.2a.9.9 0 0 1 0 1.8H6.9a.9.9 0 0 1-.9-.9M6 11.1a.9.9 0 0 1 .9-.9h1.7a.9.9 0 1 1 0 1.8H6.9a.9.9 0 0 1-.9-.9M14.5 14.9a.9.9 0 0 1 .9-.9h1.7a.9.9 0 1 1 0 1.8h-1.7a.9.9 0 0 1-.9-.9M11 11.1a.9.9 0 0 1 .9-.9h5.2a.9.9 0 0 1 0 1.8h-5.2a.9.9 0 0 1-.9-.9"></path></g></svg>');function ud(t,e){let i=Me(e,["$$slots","$$events","$$legacy","children"]);var o=C$();Ie(o,()=>({xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none","aria-hidden":"true","data-testid":"subtitle-empty-icon",viewBox:"0 0 24 24",role:"img",...i}));var n=_(o);be(n,()=>{var r;return(r=e.children)!=null?r:oe}),Ce(),g(o),b(t,o)}function wf(t,e){D(e,!0);let i=m(e,"isSubtitlesEnabled",3,!1),n=Ee().ui.t,r=h(()=>i()?n("tooltip_subtitles_on"):n("tooltip_subtitles_off"));Vt(t,{testId:"btn-Subtitles",get ariaLabel(){return s(r)},get click(){return e.click},get ariaKeyShortCut(){return ts.KeyC},role:"button",children:(l,d)=>{var a=Ue(),p=fe(a);{var f=u=>{xf(u,{})},v=u=>{ud(u,{})};L(p,u=>{i()?u(f):u(v,!1)})}b(l,a)},$$slots:{default:!0}}),H()}var S$=M('<span class="duration svelte-sz9er7" data-testid="video_duration"> </span>'),T$=M('<div><span class="current svelte-sz9er7" data-testid="current_time"> </span> <!></div>'),E$={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 pd(t,e){D(e,!0),z(t,E$);let i=m(e,"isMobile",3,!1),o=m(e,"showDuration",3,!0),n=m(e,"ref",15),r=h(()=>cn(e.duration)),l=h(()=>cn(e.position));var d=T$();let a;var p=_(d),f=_(p,!0);g(p);var v=P(p,2);{var u=$=>{var w=S$(),y=_(w,!0);g(w),O(()=>he(y,s(r))),b($,w)};L(v,$=>{o()&&$(u)})}g(d),ot(d,$=>n($),()=>n()),O($=>{a=J(d,1,"time svelte-sz9er7",null,a,$),he(f,s(l))},[()=>({mobile:i()})]),b(t,d),H()}import{noop as eu}from"@vkontakte/videoplayer-shared/es2018";var I$=Se('<svg xmlns="http://www.w3.org/2000/svg" class="icon svelte-v40k9i" aria-hidden="true"><g fill="var(--btn-color, #fff)" fill-rule="evenodd"><path d="M2 9.94595C2 9.41522 2.41461 8.97693 2.94453 8.94749L5.775 8.79025C6.24338 8.76422 6.6877 8.57439 7.03029 8.25394L11.3169 4.24433C11.9558 3.64667 13 4.09974 13 4.97464V19.0253C13 19.9002 11.9558 20.3533 11.3169 19.7556L7.03029 15.746C6.6877 15.4255 6.24337 15.2357 5.77499 15.2097L2.94453 15.0524C2.41461 15.023 2 14.5847 2 14.054V9.94595Z"></path><path class="cross svelte-v40k9i" d="M22.4636 8.26359C22.8151 7.91212 23.3849 7.91212 23.7364 8.26359C24.0879 8.61506 24.0879 9.18491 23.7364 9.53638L21.2728 12L23.7364 14.4636C24.0879 14.815 24.0879 15.3849 23.7364 15.7364C23.3849 16.0878 22.8151 16.0878 22.4636 15.7364L20 13.2728L17.5364 15.7364C17.1849 16.0878 16.6151 16.0878 16.2636 15.7364C15.9121 15.3849 15.9121 14.815 16.2636 14.4636L18.7272 12L16.2636 9.53638C15.9121 9.18491 15.9121 8.61506 16.2636 8.26359C16.6151 7.91212 17.1849 7.91212 17.5364 8.26359L20 10.7272L22.4636 8.26359Z"></path><path class="wave1 svelte-v40k9i" d="M15.7484 8.89758C16.0811 8.52829 16.6501 8.49862 17.0194 8.83132C17.8726 9.59994 18.4 10.7425 18.4 12C18.4 13.2575 17.8726 14.4001 17.0194 15.1687C16.6501 15.5014 16.0811 15.4717 15.7484 15.1024C15.4157 14.7331 15.4453 14.1641 15.8146 13.8314C16.2849 13.4077 16.6 12.753 16.6 12C16.6 11.2471 16.2849 10.5923 15.8146 10.1686C15.4453 9.83595 15.4157 9.26687 15.7484 8.89758Z"></path><path class="wave2 svelte-v40k9i" d="M18.8141 6.67424C19.1924 6.35184 19.7605 6.39716 20.0829 6.77547C21.2779 8.17774 22 10.0053 22 12C22 13.9946 21.2779 15.8222 20.0829 17.2245C19.7605 17.6028 19.1924 17.6481 18.8141 17.3257C18.4358 17.0033 18.3905 16.4353 18.7129 16.057C19.639 14.9702 20.2 13.5535 20.2 12C20.2 10.4464 19.639 9.02976 18.7129 7.943C18.3905 7.56469 18.4358 6.99665 18.8141 6.67424Z"></path></g></svg>'),k$={hash:"svelte-v40k9i",code:`.icon.svelte-v40k9i {display:block;width:24px;height:24px;}.icon.svelte-v40k9i .cross:where(.svelte-v40k9i) {visibility:hidden;}.icon[data-value='off'].svelte-v40k9i .wave1:where(.svelte-v40k9i),
163
+ .hot-key-map-item-value.svelte-quklnq {font-feature-settings:'clig' off, 'liga' off;font-size:13px;font-style:normal;font-weight:400;line-height:16px;}`};function gf(t,e){F(e,!1),K(t,l$);let[i,o]=He(),n=()=>C(l,"$data",i),s=Ee(),{data:l,show:d}=s.ui.modals.hotKeyMap,a=()=>{d.set(!1)};Nr(),vf(t,{get title(){return n().title},onClose:a,children:(p,f)=>{var v=a$();$i(v,5,()=>n().groups,({title:u,items:y})=>u,(u,y)=>{let w=()=>r(y).title,b=()=>r(y).items;var S=s$(),T=_(S),E=_(T,!0);h(T);var M=P(T,2);$i(M,5,b,({description:I,value:k})=>k,(I,k)=>{let R=()=>r(k).description,Y=()=>r(k).value;var D=r$(),H=_(D),q=_(H);Fl(q,()=>Xh(R())),h(H);var J=P(H,2),W=_(J,!0);h(J),h(D),O(()=>_e(W,Y())),$(I,D)}),h(M),h(S),O(()=>_e(E,w())),$(u,S)}),h(v),$(p,v)},$$slots:{default:!0}}),U(),o()}import{noop as C1}from"@vkontakte/videoplayer-shared/es2018";import{ChromecastState as _1,PlaybackState as tm}from"@vkontakte/videoplayer-core/es2018";import"@vkontakte/videoplayer-shared/es2018";var d$=A('<div class="pillow svelte-1oe0j8n"><!></div>'),c$={hash:"svelte-1oe0j8n",code:".pillow.svelte-1oe0j8n {background-color:#679FF8;color:var(--white);font-size:6px;font-weight:600;-webkit-font-smoothing:antialiased;padding:2px 4px;border-radius:12px;}"};function hf(t,e){K(t,c$);var i=d$(),o=_(i);xe(o,()=>{var n;return(n=e.children)!=null?n:se}),h(i),$(t,i)}import{VideoQuality as pd}from"@vkontakte/videoplayer-shared/es2018";var u$=Te('<svg><!><path fill="currentColor" d="M5.517 5c.325 0 .516-.198.516-.536v-.97l.492-.517 1.46 1.74c.16.205.304.283.516.283A.49.49 0 0 0 9 4.501c0-.14-.068-.287-.222-.478l-1.47-1.73L8.818.868C8.949.731 9 .618 9 .475A.474.474 0 0 0 8.515 0c-.171 0-.301.065-.445.222L6.064 2.25h-.03V.54c0-.342-.192-.54-.517-.54s-.516.198-.516.54v3.924c0 .338.191.536.516.536"></path><path fill="currentColor" fill-rule="evenodd" d="m2.551 1.052-1.51 2.052h1.51zM3.5 3.104V.832c0-.81-1.089-1.14-1.556-.48L.139 2.821a.75.75 0 0 0 .612 1.183h1.8v.55c0 .248.25.45.499.45a.45.45 0 0 0 .45-.45v-.55h.052a.45.45 0 0 0 0-.9z" clip-rule="evenodd"></path></svg>');function _f(t,e){let i=Ve(e,["$$slots","$$events","$$legacy","children"]);var o=u$();Pe(o,()=>({xmlns:"http://www.w3.org/2000/svg",width:"9",height:"5",fill:"none",role:"img",...i}));var n=_(o);xe(n,()=>{var s;return(s=e.children)!=null?s:se}),Se(2),h(o),$(t,o)}var p$=Te('<svg><!><path fill="currentColor" d="M5.513 5c.323 0 .513-.198.513-.537v-.97l.49-.516L7.99 4.715c.16.205.302.284.513.284A.49.49 0 0 0 9 4.5c0-.14-.068-.287-.22-.478L7.293 2.293 8.82.868C8.949.731 9 .618 9 .475A.473.473 0 0 0 8.517 0c-.17 0-.299.065-.441.222L6.056 2.25h-.03V.54c0-.342-.19-.54-.513-.54S5 .198 5 .54v3.923c0 .339.19.537.513.537"></path><path fill="currentColor" fill-rule="evenodd" d="M2 0q-.53 0-.952.173a1.5 1.5 0 0 0-.654.484q-.23.312-.23.71c0 .423.208.756.613.995a1.46 1.46 0 0 0-.547.44q-.23.305-.23.71 0 .432.252.778l.001.001q.26.336.712.523Q1.418 5.001 2 5q.582 0 1.035-.186.451-.187.705-.524.26-.346.26-.777 0-.406-.23-.711a1.45 1.45 0 0 0-.552-.44c.409-.235.618-.569.618-.994a1.14 1.14 0 0 0-.238-.711 1.44 1.44 0 0 0-.653-.484A2.4 2.4 0 0 0 2 0m-.573.964C1.563.86 1.75.804 2 .804s.434.055.564.16h.001a.51.51 0 0 1 .204.43.52.52 0 0 1-.204.437c-.13.105-.315.161-.565.161s-.437-.056-.573-.161a.52.52 0 0 1-.203-.437q.002-.276.203-.43m-.345 2.522c0-.217.08-.381.233-.503.16-.122.385-.188.685-.188s.522.066.677.188q.24.181.24.503a.63.63 0 0 1-.24.523c-.155.122-.377.188-.677.188s-.524-.065-.684-.187a.64.64 0 0 1-.234-.524" clip-rule="evenodd"></path></svg>');function bf(t,e){let i=Ve(e,["$$slots","$$events","$$legacy","children"]);var o=p$();Pe(o,()=>({xmlns:"http://www.w3.org/2000/svg",width:"9",height:"5",fill:"none",role:"img",...i}));var n=_(o);xe(n,()=>{var s;return(s=e.children)!=null?s:se}),Se(2),h(o),$(t,o)}var f$=Te('<svg><!><path fill="currentColor" d="M5.516 5h1.107C8.103 5 9 4.065 9 2.5S8.103 0 6.623 0H5.516C5.191 0 5 .2 5 .537V4.46c0 .342.191.54.516.54m.516-.854V.852H6.5C7.41.852 8 1.468 8 2.5c0 1.066-.577 1.646-1.5 1.646zM.516 5c.325 0 .516-.198.516-.536V2.922h1.936v1.542c0 .338.191.536.516.536S4 4.802 4 4.464V.54C4 .198 3.809 0 3.484 0s-.516.198-.516.54v1.531H1.032V.54C1.032.198.841 0 .516 0S0 .198 0 .54v3.989C0 4.867.191 5 .516 5"></path></svg>');function $f(t,e){let i=Ve(e,["$$slots","$$events","$$legacy","children"]);var o=f$();Pe(o,()=>({xmlns:"http://www.w3.org/2000/svg",width:"9",height:"5",fill:"none",role:"img",...i}));var n=_(o);xe(n,()=>{var s;return(s=e.children)!=null?s:se}),Se(),h(o),$(t,o)}var m$=Te('<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 cd(t,e){let i=Ve(e,["$$slots","$$events","$$legacy","children"]);var o=m$();Pe(o,()=>({xmlns:"http://www.w3.org/2000/svg",width:"13",height:"5",fill:"none",role:"img",...i}));var n=_(o);xe(n,()=>{var s;return(s=e.children)!=null?s:se}),Se(),h(o),$(t,o)}var v$=Te('<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 ud(t,e){let i=Ve(e,["$$slots","$$events","$$legacy","children"]);var o=v$();Pe(o,()=>({xmlns:"http://www.w3.org/2000/svg",width:"15",height:"7",fill:"none",role:"img",...i}));var n=_(o);xe(n,()=>{var s;return(s=e.children)!=null?s:se}),Se(2),h(o),$(t,o)}var tu=t=>{switch(t){case pd.Q_720P:return $f;case pd.Q_1080P:return cd;case pd.Q_1440P:return ud;case pd.Q_2160P:return _f;case pd.Q_4320P:return bf}};var g$=Te('<svg><!><path fill="var(--btn-color, #fff)" d="M12.722 2.213c1.208.037 1.994.702 2.408 1.954l.065.215.051.191q.027.111.068.235l.058.159.034.017.069-.023.133-.051.156-.068c1.414-.658 2.502-.536 3.387.437l.125.145.82 1.017c.732.962.71 1.99-.004 3.1l-.125.187-.117.16a3 3 0 0 0-.142.205l-.07.115-.034.057.004.02.091.06.127.077.153.083c1.39.71 1.963 1.641 1.742 2.936l-.038.188-.244 1.058c-.158.685-.282 1.01-.77 1.454-.475.432-1.016.61-1.732.67l-.22.014-.198.006q-.116.002-.246.015l-.181.021.013.142.013.096.033.179c.323 1.526-.04 2.558-1.188 3.202l-.17.09-1.175.57c-1.102.495-2.099.242-3.02-.702l-.153-.164-.13-.15a3 3 0 0 0-.17-.186l-.097-.096-.05-.046-.09.087-.106.108-.118.133c-.952 1.134-1.957 1.54-3.176 1.067l-.175-.074-1.052-.51-.312-.16c-.476-.26-.743-.51-1.004-1.061-.275-.58-.294-1.15-.16-1.883l.044-.225q.024-.114.041-.242l.019-.172-.004-.004-.104-.014-.146-.013-.174-.008c-1.56-.028-2.484-.614-2.853-1.877l-.049-.185-.292-1.274c-.235-1.185.236-2.1 1.364-2.785l.194-.112.175-.093a3 3 0 0 0 .216-.12l.155-.102.004-.019-.063-.108-.08-.125-.103-.143c-.937-1.246-1.044-2.335-.276-3.404l.115-.153.824-1.013c.79-.915 1.8-1.107 3.034-.64l.208.083.181.081q.103.048.222.093l.136.048.036-.017.033-.089.045-.138.046-.166c.36-1.436 1.085-2.242 2.39-2.35l.19-.011h1.39Zm-.056 1.799h-1.333l-.14.01c-.285.037-.472.191-.652.832l-.041.156-.057.206a6.3 6.3 0 0 1-.468 1.134 6 6 0 0 0-1.147.558 6.5 6.5 0 0 1-1.16-.35l-.35-.154c-.248-.107-.435-.161-.583-.175l-.084-.003a.55.55 0 0 0-.408.193l-.068.074-.789.973-.095.125c-.183.264-.21.5.195 1.075l.228.316c.212.31.425.692.598 1.102q-.195.577-.27 1.201c-.334.29-.69.537-1.013.72l-.343.184c-.617.34-.695.563-.646.881l.013.075.28 1.22.04.152c.096.308.265.475.968.509l.388.014c.37.024.798.09 1.223.204q.337.526.776.968a6.3 6.3 0 0 1-.118 1.445c-.201.95-.014 1.102.383 1.3l1.126.547a.8.8 0 0 0 .337.089l.067-.006c.181-.028.382-.162.67-.485l.258-.295a6.5 6.5 0 0 1 .949-.837l.298.023L12 18l.302-.008.298-.022c.363.263.691.559.948.837l.258.295c.325.364.538.488.737.49l.066-.003a.8.8 0 0 0 .178-.046l.093-.039 1.126-.548.139-.073c.3-.175.42-.395.245-1.226a6.2 6.2 0 0 1-.117-1.445q.436-.442.775-.97a6.5 6.5 0 0 1 1.223-.202l.387-.014c.812-.04.912-.256 1.008-.66l.264-1.142c.09-.406.095-.643-.617-1.035l-.342-.183a6.4 6.4 0 0 1-1.014-.722 6 6 0 0 0-.27-1.201c.174-.41.386-.791.598-1.1l.228-.317c.406-.575.378-.81.195-1.075l-.045-.062-.787-.974c-.14-.171-.259-.294-.452-.322l-.076-.007c-.16-.003-.368.05-.667.178l-.35.155a6.4 6.4 0 0 1-1.158.348 6 6 0 0 0-1.15-.556 6.5 6.5 0 0 1-.454-1.093l-.113-.414c-.192-.678-.393-.805-.714-.828zM12 8.2a3.8 3.8 0 1 1 0 7.6 3.8 3.8 0 0 1 0-7.6m0 1.8a2 2 0 1 0 0 4 2 2 0 0 0 0-4"></path></svg>');function yf(t,e){let i=Ve(e,["$$slots","$$events","$$legacy","children"]);var o=g$();Pe(o,()=>({xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none","aria-hidden":"true","data-testid":"settings-mobile-icon",role:"img",...i}));var n=_(o);xe(n,()=>{var s;return(s=e.children)!=null?s:se}),Se(),h(o),$(t,o)}var h$=Te('<svg><!><path fill="var(--btn-color, #fff)" fill-rule="evenodd" d="M13.933 4.875a.6.6 0 0 0-.07-.658c-.327-.413-.45-.833-.574-1.253l-.039-.13C13 2 12.833 2 12.417 2h-.91c-.371.003-.6.052-.757.833-.148.738-.36 1.476-1.566 2.186a.5.5 0 0 1-.12.05c-1.27.324-1.905-.023-2.542-.37l-.12-.065c-.766-.412-.884-.294-1.178 0l-.643.644c-.26.264-.389.461.053 1.124.418.626.789 1.299.438 2.654a.5.5 0 0 1-.05.12c-.668 1.126-1.362 1.33-2.058 1.535l-.13.039C2 11 2 11.167 2 11.583v.91c.003.371.052.6.833.757.738.148 1.476.36 2.186 1.566a.5.5 0 0 1 .05.12c.324 1.27-.023 1.905-.37 2.542l-.065.12c-.412.766-.294.884 0 1.178l.644.643c.264.26.461.389 1.124-.053.626-.418 1.299-.789 2.654-.438q.063.016.12.05c1.126.668 1.33 1.362 1.535 2.058l.039.13c.25.834.417.834.833.834h.91c.371-.003.6-.052.757-.833.148-.738.36-1.476 1.566-2.186a.5.5 0 0 1 .12-.05c1.27-.324 1.905.023 2.542.37l.12.065c.766.412.884.294 1.178 0l.643-.644c.26-.264.389-.461-.053-1.124-.26-.39-.503-.799-.563-1.38a.6.6 0 0 0-.413-.519 7.5 7.5 0 0 1-1.918-.871.58.58 0 0 0-.758.134 4.75 4.75 0 1 1-3.163-7.68.58.58 0 0 0 .633-.44 7.5 7.5 0 0 1 .749-1.967" clip-rule="evenodd"></path><path fill="var(--btn-color, #fff)" d="M13.25 2.833c.225.751.383 1.502 1.63 2.222 1.399.38 2.082.003 2.718-.42.663-.443.86-.315 1.124-.054l.644.643c.294.294.412.412 0 1.178-.372.69-.792 1.333-.418 2.726.72 1.255 1.47 1.472 2.219 1.622.78.156.83.386.833.757v.91c0 .416 0 .583-.833.833-.751.225-1.502.383-2.222 1.63-.38 1.399-.003 2.082.42 2.718.443.663.315.86.054 1.124l-.643.644c-.294.294-.412.412-1.178 0-.69-.372-1.333-.792-2.726-.418-1.255.72-1.472 1.47-1.622 2.219-.156.78-.386.83-.757.833h-.91c-.416 0-.583 0-.833-.833-.225-.751-.383-1.502-1.63-2.222-1.399-.38-2.082-.003-2.718.42-.663.443-.86.315-1.124.054l-.644-.643c-.294-.294-.412-.412 0-1.178.372-.69.792-1.333.418-2.726-.72-1.255-1.47-1.472-2.219-1.622-.78-.156-.83-.386-.833-.757v-.91c0-.416 0-.583.833-.833.751-.225 1.502-.383 2.222-1.63.38-1.399.003-2.082-.42-2.718-.443-.663-.315-.86-.054-1.124l.643-.644c.294-.294.412-.412 1.178 0 .69.372 1.333.792 2.726.418 1.255-.72 1.472-1.47 1.622-2.219.156-.78.386-.83.757-.833h.91c.416 0 .583 0 .833.833M12 7.25a4.75 4.75 0 1 0 0 9.5 4.75 4.75 0 0 0 0-9.5" class="_full"></path></svg>');function xf(t,e){let i=Ve(e,["$$slots","$$events","$$legacy","children"]);var o=h$();Pe(o,()=>({xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none","data-testid":"settings-icon",role:"img",...i}));var n=_(o);xe(n,()=>{var s;return(s=e.children)!=null?s:se}),Se(2),h(o),$(t,o)}var _$=A('<div aria-hidden="true"><!> <!></div>'),b$={hash:"svelte-8t5w85",code:'.icon.svelte-8t5w85 {display:flex;position:relative;width:24px;height:24px;}.icon.svelte-8t5w85 .pillow {position:absolute;top:1px;right:-9px;}.icon.triple.svelte-8t5w85 .pillow {right:-13px;}.icon.svelte-8t5w85 svg[data-testid="settings-icon--labeled"] ._full {visibility:hidden;opacity:0;}'};function fd(t,e){F(e,!0),K(t,b$);let i=m(e,"isMobile",3,!1),o=m(e,"currentQuality",3,void 0),n=g(()=>tu(o())),s=g(()=>!!r(n)&&[cd,ud].includes(r(n)));var l=Ue(),d=me(l);{var a=f=>{yf(f,{})},p=f=>{var v=_$();let u;var y=_(v);{var w=T=>{hf(T,{children:(E,M)=>{var I=Ue(),k=me(I);yi(k,()=>r(n),(R,Y)=>{Y(R,{})}),$(E,I)},$$slots:{default:!0}})};L(y,T=>{r(n)&&T(w)})}var b=P(y,2);let S=g(()=>r(n)?"settings-icon--labeled":"settings-icon");xf(b,{get"data-testid"(){return r(S)},fill:"var(--btn-color, #fff)"}),h(v),O(T=>u=X(v,1,"icon svelte-8t5w85",null,u,T),[()=>({triple:r(s)})]),$(f,v)};L(d,f=>{i()?f(a):f(p,!1)})}$(t,l),U()}var $$=A('<span class="settings-icon-wrapper svelte-d9t49t"><!></span>'),y$={hash:"svelte-d9t49t",code:".settings-icon-wrapper.svelte-d9t49t {position:relative;width:24px;}"};function sl(t,e){F(e,!0),K(t,y$);let[i,o]=He(),n=()=>C(p,"$settingsMenuVisible",i),s=()=>C(u,"$isMobile",i),l=()=>C(a,"$currentQuality",i),d=Ee(),a=d.state.currentQuality$,p=d.ui.settingsMenu.visible$,f=d.actions.internal.openSettingsMenu,v=d.actions.internal.closeSettingsMenu,u=d.ui.isMobile,y=d.ui.t,w=j(void 0);We(()=>{r(w)&&Ct(()=>{e.ref$.set(r(w))})});let b=y("aria_label_settings");async function S(E){let M=Rs(E);n()?v():f(M,yo)}let T=g(()=>n()?"opened":"");Vt(t,{get className(){return r(T)},testId:"btn-settings",click:S,get ariaLabel(){return b},get ariaExpanded(){return n()},get ref(){return r(w)},set ref(E){B(w,E,!0)},children:(E,M)=>{var I=$$(),k=_(I);fd(k,{get isMobile(){return s()},get currentQuality(){return l()}}),h(I),$(E,I)},$$slots:{default:!0}}),U(),o()}var x$=Te('<svg><!><path fill="var(--btn-color, #fff)" fill-rule="evenodd" d="M15.538 4c.948 0 1.714 0 2.334.05.64.053 1.203.163 1.726.43a4.4 4.4 0 0 1 1.922 1.922c.267.523.377 1.087.43 1.726.05.62.05 1.386.05 2.334v3.076c0 .948 0 1.714-.05 2.334-.053.64-.163 1.203-.43 1.726a4.4 4.4 0 0 1-1.922 1.922c-.523.267-1.087.377-1.726.43-.62.05-1.386.05-2.334.05H8.462c-.948 0-1.714 0-2.334-.05-.64-.053-1.203-.163-1.726-.43a4.4 4.4 0 0 1-1.922-1.922c-.267-.523-.377-1.087-.43-1.726C2 15.252 2 14.486 2 13.538v-3.076c0-.948 0-1.714.05-2.334.053-.64.163-1.203.43-1.726A4.4 4.4 0 0 1 4.402 4.48c.523-.267 1.087-.377 1.726-.43C6.748 4 7.514 4 8.462 4zM6 14.9a.9.9 0 0 1 .9-.9h5.2a.9.9 0 0 1 0 1.8H6.9a.9.9 0 0 1-.9-.9m.9-4.7a.9.9 0 1 0 0 1.8h1.7a.9.9 0 1 0 0-1.8zm7.6 4.7a.9.9 0 0 1 .9-.9h1.7a.9.9 0 0 1 0 1.8h-1.7a.9.9 0 0 1-.9-.9m-2.6-4.7a.9.9 0 1 0 0 1.8h5.2a.9.9 0 0 0 0-1.8z" clip-rule="evenodd"></path></svg>');function wf(t,e){let i=Ve(e,["$$slots","$$events","$$legacy","children"]);var o=x$();Pe(o,()=>({xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none","aria-hidden":"true","data-testid":"subtitle-pained-icon",viewBox:"0 0 24 24",role:"img",...i}));var n=_(o);xe(n,()=>{var s;return(s=e.children)!=null?s:se}),Se(),h(o),$(t,o)}var w$=Te('<svg><!><g fill="var(--btn-color, #fff)" fill-rule="evenodd" clip-rule="evenodd"><path d="M8.462 4h7.076c.948 0 1.714 0 2.334.05.64.053 1.203.163 1.726.43a4.4 4.4 0 0 1 1.922 1.922c.267.523.377 1.087.43 1.726.05.62.05 1.386.05 2.333v3.077c0 .948 0 1.713-.05 2.334-.053.64-.163 1.203-.43 1.725a4.4 4.4 0 0 1-1.922 1.923c-.523.267-1.087.377-1.726.43-.62.05-1.386.05-2.334.05H8.462c-.948 0-1.714 0-2.334-.05-.64-.053-1.203-.163-1.726-.43a4.4 4.4 0 0 1-1.922-1.923c-.267-.522-.377-1.086-.43-1.725C2 15.252 2 14.486 2 13.538v-3.077c0-.947 0-1.713.05-2.333.053-.64.163-1.203.43-1.726A4.4 4.4 0 0 1 4.402 4.48c.523-.266 1.087-.376 1.726-.428C6.748 4 7.514 4 8.462 4M6.275 5.845c-.528.043-.83.123-1.055.238A2.6 2.6 0 0 0 4.083 7.22c-.115.227-.195.527-.238 1.055C3.8 8.813 3.8 9.504 3.8 10.5v3c0 .995 0 1.687.045 2.225.043.528.123.829.238 1.055a2.6 2.6 0 0 0 1.137 1.136c.226.116.527.196 1.055.24.538.043 1.23.044 2.225.044h7c.995 0 1.687 0 2.226-.045.527-.043.828-.123 1.054-.239a2.6 2.6 0 0 0 1.137-1.136c.115-.226.195-.527.238-1.055.044-.538.045-1.23.045-2.225v-3c0-.995 0-1.687-.045-2.226-.043-.528-.123-.828-.238-1.054a2.6 2.6 0 0 0-1.137-1.137c-.226-.115-.527-.195-1.055-.238-.538-.044-1.23-.045-2.225-.045h-7c-.995 0-1.687 0-2.226.045"></path><path d="M6 14.9a.9.9 0 0 1 .9-.9h5.2a.9.9 0 0 1 0 1.8H6.9a.9.9 0 0 1-.9-.9M6 11.1a.9.9 0 0 1 .9-.9h1.7a.9.9 0 1 1 0 1.8H6.9a.9.9 0 0 1-.9-.9M14.5 14.9a.9.9 0 0 1 .9-.9h1.7a.9.9 0 1 1 0 1.8h-1.7a.9.9 0 0 1-.9-.9M11 11.1a.9.9 0 0 1 .9-.9h5.2a.9.9 0 0 1 0 1.8h-5.2a.9.9 0 0 1-.9-.9"></path></g></svg>');function md(t,e){let i=Ve(e,["$$slots","$$events","$$legacy","children"]);var o=w$();Pe(o,()=>({xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none","aria-hidden":"true","data-testid":"subtitle-empty-icon",viewBox:"0 0 24 24",role:"img",...i}));var n=_(o);xe(n,()=>{var s;return(s=e.children)!=null?s:se}),Se(),h(o),$(t,o)}function Cf(t,e){F(e,!0);let i=m(e,"isSubtitlesEnabled",3,!1),n=Ee().ui.t,s=g(()=>i()?n("tooltip_subtitles_on"):n("tooltip_subtitles_off"));Vt(t,{testId:"btn-Subtitles",get ariaLabel(){return r(s)},get click(){return e.click},get ariaKeyShortCut(){return es.KeyC},role:"button",children:(l,d)=>{var a=Ue(),p=me(a);{var f=u=>{wf(u,{})},v=u=>{md(u,{})};L(p,u=>{i()?u(f):u(v,!1)})}$(l,a)},$$slots:{default:!0}}),U()}var C$=A('<span class="duration svelte-sz9er7" data-testid="video_duration"> </span>'),S$=A('<div><span class="current svelte-sz9er7" data-testid="current_time"> </span> <!></div>'),T$={hash:"svelte-sz9er7",code:".time.svelte-sz9er7 {display:flex;align-items:center;font-weight:500;font-variant-numeric:tabular-nums;padding:12px 6px;color:var(--controls-time);}.time.mobile.svelte-sz9er7 {padding:0 0 0 8px;}.current.svelte-sz9er7 {position:relative;}.duration.svelte-sz9er7 {opacity:0.7;}.duration.svelte-sz9er7:before {content:' / ';white-space:pre;}"};function vd(t,e){F(e,!0),K(t,T$);let i=m(e,"isMobile",3,!1),o=m(e,"showDuration",3,!0),n=m(e,"ref",15),s=g(()=>pn(e.duration)),l=g(()=>pn(e.position));var d=S$();let a;var p=_(d),f=_(p,!0);h(p);var v=P(p,2);{var u=y=>{var w=C$(),b=_(w,!0);h(w),O(()=>_e(b,r(s))),$(y,w)};L(v,y=>{o()&&y(u)})}h(d),ot(d,y=>n(y),()=>n()),O(y=>{a=X(d,1,"time svelte-sz9er7",null,a,y),_e(f,r(l))},[()=>({mobile:i()})]),$(t,d),U()}import{noop as iu}from"@vkontakte/videoplayer-shared/es2018";var E$=Te('<svg xmlns="http://www.w3.org/2000/svg" class="icon svelte-v40k9i" aria-hidden="true"><g fill="var(--btn-color, #fff)" fill-rule="evenodd"><path d="M2 9.94595C2 9.41522 2.41461 8.97693 2.94453 8.94749L5.775 8.79025C6.24338 8.76422 6.6877 8.57439 7.03029 8.25394L11.3169 4.24433C11.9558 3.64667 13 4.09974 13 4.97464V19.0253C13 19.9002 11.9558 20.3533 11.3169 19.7556L7.03029 15.746C6.6877 15.4255 6.24337 15.2357 5.77499 15.2097L2.94453 15.0524C2.41461 15.023 2 14.5847 2 14.054V9.94595Z"></path><path class="cross svelte-v40k9i" d="M22.4636 8.26359C22.8151 7.91212 23.3849 7.91212 23.7364 8.26359C24.0879 8.61506 24.0879 9.18491 23.7364 9.53638L21.2728 12L23.7364 14.4636C24.0879 14.815 24.0879 15.3849 23.7364 15.7364C23.3849 16.0878 22.8151 16.0878 22.4636 15.7364L20 13.2728L17.5364 15.7364C17.1849 16.0878 16.6151 16.0878 16.2636 15.7364C15.9121 15.3849 15.9121 14.815 16.2636 14.4636L18.7272 12L16.2636 9.53638C15.9121 9.18491 15.9121 8.61506 16.2636 8.26359C16.6151 7.91212 17.1849 7.91212 17.5364 8.26359L20 10.7272L22.4636 8.26359Z"></path><path class="wave1 svelte-v40k9i" d="M15.7484 8.89758C16.0811 8.52829 16.6501 8.49862 17.0194 8.83132C17.8726 9.59994 18.4 10.7425 18.4 12C18.4 13.2575 17.8726 14.4001 17.0194 15.1687C16.6501 15.5014 16.0811 15.4717 15.7484 15.1024C15.4157 14.7331 15.4453 14.1641 15.8146 13.8314C16.2849 13.4077 16.6 12.753 16.6 12C16.6 11.2471 16.2849 10.5923 15.8146 10.1686C15.4453 9.83595 15.4157 9.26687 15.7484 8.89758Z"></path><path class="wave2 svelte-v40k9i" d="M18.8141 6.67424C19.1924 6.35184 19.7605 6.39716 20.0829 6.77547C21.2779 8.17774 22 10.0053 22 12C22 13.9946 21.2779 15.8222 20.0829 17.2245C19.7605 17.6028 19.1924 17.6481 18.8141 17.3257C18.4358 17.0033 18.3905 16.4353 18.7129 16.057C19.639 14.9702 20.2 13.5535 20.2 12C20.2 10.4464 19.639 9.02976 18.7129 7.943C18.3905 7.56469 18.4358 6.99665 18.8141 6.67424Z"></path></g></svg>'),I$={hash:"svelte-v40k9i",code:`.icon.svelte-v40k9i {display:block;width:24px;height:24px;}.icon.svelte-v40k9i .cross:where(.svelte-v40k9i) {visibility:hidden;}.icon[data-value='off'].svelte-v40k9i .wave1:where(.svelte-v40k9i),
164
164
  .icon[data-value='off'].svelte-v40k9i .wave2:where(.svelte-v40k9i) {visibility:hidden;}.icon[data-value='off'].svelte-v40k9i .cross:where(.svelte-v40k9i) {visibility:visible;}.icon[data-value='mid'].svelte-v40k9i .wave2:where(.svelte-v40k9i),
165
- .icon[data-value='min'].svelte-v40k9i .wave2:where(.svelte-v40k9i) {visibility:hidden;}`};function Rs(t,e){z(t,k$);let i=m(e,"volume",3,1),o=m(e,"muted",3,!1),n=(d,a)=>a?"off":d>.5?"max":d>.2?"mid":d>0?"min":"off",r=h(()=>n(i(),o()));var l=I$();O(()=>{var d;Ne(l,"data-value",s(r)),Ne(l,"data-testid",`volume-${(d=s(r))!=null?d:""}-icon`)}),b(t,l)}import{isNonNullable as e1,noop as Pn}from"@vkontakte/videoplayer-shared/es2018";import{noop as Sf}from"@vkontakte/videoplayer-shared/es2018";import{noop as A$}from"@vkontakte/videoplayer-shared/es2018";var P$=M('<div class="overlay"><!></div>');function Cf(t,e){D(e,!0);let[i,o]=De(),n=()=>C(l,"$overlayContainer$",i),l=Ee().ui.overlayContainer$,d=j(void 0),a=u=>{!u||!s(d)||!u.contains(s(d))||u.removeChild(s(d))},p=u=>{!u||!s(d)||u.contains(s(d))||u.appendChild(s(d))};We(()=>{p(n())}),Rt(()=>(p(n()),()=>a(n())));var f=P$(),v=_(f);be(v,()=>{var u;return(u=e.children)!=null?u:oe}),g(f),ot(f,u=>B(d,u),()=>s(d)),b(t,f),H(),o()}var M$=M('<div class="tooltip svelte-hxlyne"><div class="content svelte-hxlyne"> </div> <div class="tooltip-pointer svelte-hxlyne"></div></div>'),L$=M("<div><!></div> <!>",1),V$={hash:"svelte-hxlyne",code:'.tooltip-wrapper.svelte-hxlyne {display:flex;flex-direction:column;min-width:0;}.full-width.svelte-hxlyne {width:100%;}.tooltip.svelte-hxlyne {position:absolute;opacity:0;visibility:hidden;transition:opacity 200ms, visibility 200ms;bottom:100%;left:0;}.content.svelte-hxlyne {display:inline-block;padding:6px 10px;border-radius:3px;color:var(--white);background-color:rgba(41, 41, 41, .8);}.tooltip-pointer.svelte-hxlyne {position:absolute;bottom:0;width:0;border-top:5px solid rgba(41, 41, 41, .8);border-right:5px solid transparent;border-left:5px solid transparent;content:" ";font-size:0;line-height:0;}'};function va(t,e){D(e,!0),z(t,V$);let[i,o]=De(),n=()=>C(Y,"$overlayContainer$",i),r=()=>C(U,"$containerSize",i),l=m(e,"isMobile",3,!1),d=m(e,"content",3,""),a=m(e,"active",15,!1),p=m(e,"translateX",3,0),f=m(e,"translateY",3,0),v=m(e,"isFullWidthWrapper",3,!1),u=m(e,"maxTooltipWidth",3,void 0),$=m(e,"placement",3,"top"),w=m(e,"onVisibilityChange",3,A$),y=5,S=j(void 0),T=j(void 0),k,A=j(0),I=j(0),E=j(0),V=j(0),K=Ft(),W=Ee(),U=W.ui.playerSize,Y=W.ui.overlayContainer$;We(()=>{Ct(()=>{w()(a())})});let ne=W.getLogger().createComponentLog("Tooltip component"),G=()=>{if(!n()||!s(T)||!s(S))return;B(I,y);let ke=n().getBoundingClientRect(),X=s(S).getBoundingClientRect(),Te=X.width,Ke=s(T).clientWidth,rt=r().width,ct=(Te-Ke)/2,ht=X.left+p()-ke.left,xt=ht+ct,Qe=X.top+f()-ke.top,qt=Ke/2-y,Yt=xt<8,Qt=xt+Ke>rt-8;Yt&&(xt=8,qt=ht+X.width/2-2.5*y),Qt&&(xt=rt-8-Ke,qt=X.left-ke.left+X.width/2-xt-y),B(E,xt,!0),B(V,Qe),B(A,qt,!0)},ce=()=>{!n()||!s(T)||!s(S)||B(I,-y)},le=()=>{if(!n()||!s(T)||!s(S))return;B(A,y);let ke=n().getBoundingClientRect(),X=s(S).getBoundingClientRect(),Te=X.height,Ke=s(T).clientHeight,rt=(Te-Ke)/2+Ke,ct=X.left+p()-ke.left-s(T).clientWidth,ht=2,xt=ct-y;xt<8&&(xt=8);let qt=X.top+f()-ke.top+rt,Yt=ht-rt/2,Qt=ht-y;B(E,xt,!0),B(V,qt),B(I,Yt),B(A,Qt)},we=()=>{!n()||!s(T)||!s(S)||B(A,-y)},Ve=()=>{switch($()){case"top":G();break;case"bottom":ce();break;case"left":le();break;default:we()}},ve=()=>{try{if(!n()||!s(S))return;Ve(),a(!0)}catch(ke){ne({message:String(ke)})}},ae=()=>{a(!1)},Le=()=>{s(T)&&(k||(k=window.setTimeout(ve,K.controls.hideTimeoutTooltips)),a()&&ve())},te=()=>{ae(),window.clearTimeout(k),k=void 0},N=(ke,X,Te)=>{let Ke="";switch($()){case"top":Ke=`transform: translate(${ke}px, ${X}px);`;break;case"bottom":Ke=`transform: translate(${ke}px, ${X}px); top: auto; bottom: 100%;`;break;case"left":Ke=`transform: translate(${ke}px, ${X}px); left: 0; right: auto;`;break;default:Ke=`transform: translate(${ke}px, ${X}px);`}return Ke+=` max-width: ${u()===void 0?"auto":`${u()}px`};`,Ke+=` opacity: ${Te?1:0}; visibility: ${Te?"visible":"hidden"}`,Ke},Be=(ke,X)=>{let Te="";switch($()){case"top":Te=`transform: translate(${ke}px, ${X}px) rotate(0); top: auto; bottom: 0;`;break;case"bottom":Te=`transform: translate(${ke}px, ${X}px) rotate(180deg); top: 0; bottom: auto;`;break;case"left":Te=`transform: translate(${ke}px, ${X}px) rotate(-90deg); left: 100%; top: auto; bottom: 0;`;break;default:Te=`transform: translate(${ke}px, ${X}px) rotate(90deg); right: 100%; top: auto; bottom: 0;`}return Te},ye=h(()=>N(s(E),s(V),a())),ge=h(()=>Be(s(A),s(I)));Rt(Ve),In(()=>window.clearTimeout(k));var de=L$(),ue=fe(de);let xe;ue.__mousemove=Le,ue.__mousedown=te,ue.__mouseup=function(...ke){var X;(X=e.disableMouseupTooltipShow?void 0:Le)==null||X.apply(this,ke)};var Z=_(ue);be(Z,()=>{var ke;return(ke=e.children)!=null?ke:oe}),g(ue),ot(ue,ke=>B(S,ke),()=>s(S));var qe=P(ue,2);{var Xe=ke=>{Cf(ke,{children:(X,Te)=>{var Ke=M$(),rt=_(Ke),ct=_(rt,!0);g(rt);var ht=P(rt,2);g(Ke),ot(Ke,xt=>B(T,xt),()=>s(T)),O(()=>{st(Ke,s(ye)),he(ct,d()),st(ht,s(ge))}),b(X,Ke)},$$slots:{default:!0}})};L(qe,ke=>{d()&&!l()&&ke(Xe)})}O(ke=>xe=J(ue,1,"tooltip-wrapper svelte-hxlyne",null,xe,ke),[()=>({"full-width":v()})]),wt("mouseenter",ue,Le),wt("mouseleave",ue,te),b(t,de),H(),o()}lt(["mousemove","mousedown","mouseup"]);var Jh=t=>{t.stopPropagation()},R$=M("<div><!></div>"),N$={hash:"svelte-p9r045",code:".btn-container.svelte-p9r045 {position:relative;display:flex;align-items:center;height:100%;transition:var(--button-hover-transition);will-change:opacity;-webkit-tap-highlight-color:transparent;}.w-max.svelte-p9r045 {width:100%;min-width:0;}"};function Lo(t,e){D(e,!0),z(t,N$);let[i,o]=De(),n=()=>C(p,"$isGraphOpened$",i),r=()=>C(a,"$isMobile",i),l=Ee(),d=co(),a=l.ui.isMobile,p=d.graphIsOpened$,f=l.ui.t,v=m(e,"className",3,""),u=m(e,"disabled",3,!1),$=m(e,"hasTooltip",3,!0),w=m(e,"ref",15,void 0),y=m(e,"width",15,void 0),S=m(e,"isFullWidthTooltip",3,!0),T=m(e,"tooltipContent",3,""),k=m(e,"tooltipActive",3,!1),A=m(e,"tooltipPlacement",3,"top"),I=m(e,"disabledTooltipContent",19,()=>f("tooltip_button_disabled")),E=m(e,"isAriaHidden",3,!1),V=m(e,"onTooltipVisibilityChange",3,Sf),K=m(e,"initialTranslateXPx",3,0),W=m(e,"initialTranslateYPx",19,()=>-18),U=m(e,"mouseEnter",3,Sf),Y=m(e,"mouseLeave",3,Sf),ne=h(()=>u()?n()?f("tooltip_disabled_when_graph_on"):I():T());var G=R$();G.__pointerdown=[Jh],G.__click=[Jh];var ce=_(G);{var le=Ve=>{va(Ve,{get content(){return s(ne)},get translateX(){return K()},get translateY(){return W()},get isFullWidthWrapper(){return S()},get active(){return k()},get placement(){return A()},get onVisibilityChange(){return V()},get disableMouseupTooltipShow(){return e.disableMouseupTooltipShow},children:(ve,ae)=>{var Le=Ue(),te=fe(Le);be(te,()=>{var N;return(N=e.children)!=null?N:oe}),b(ve,Le)},$$slots:{default:!0}})},we=Ve=>{var ve=Ue(),ae=fe(ve);be(ae,()=>{var Le;return(Le=e.children)!=null?Le:oe}),b(Ve,ve)};L(ce,Ve=>{$()&&s(ne)&&!r()?Ve(le):Ve(we,!1)})}g(G),ot(G,Ve=>w(Ve),()=>w()),O(()=>{var Ve;J(G,1,`btn-container ${(Ve=v())!=null?Ve:""}`,"svelte-p9r045"),Ne(G,"aria-hidden",E()||null)}),wt("mouseenter",G,function(...Ve){var ve;(ve=U())==null||ve.apply(this,Ve)}),wt("mouseleave",G,function(...Ve){var ve;(ve=Y())==null||ve.apply(this,Ve)}),es(G,"clientWidth",y),b(t,G),H(),o()}lt(["pointerdown","click"]);var B$=Se('<svg width="20" height="20" viewBox="0 0 20 20" fill="none" xmlns="http://www.w3.org/2000/svg" aria-hidden="true"><rect width="20" height="20" rx="10" fill="var(--btn-color, #fff)"></rect><path d="M12.5259 8.68864L12.587 8.87536L12.3702 8.23648C12.236 7.84095 11.8295 7.60563 11.4192 7.68593C10.9471 7.77831 10.6508 8.24892 10.7718 8.71381L10.8968 9.19361L10.6671 8.33855C10.5566 7.92714 10.1475 7.67011 9.72832 7.74872C9.32282 7.82476 9.04808 8.18606 9.06319 8.57993L8.34064 5.64592C8.21338 5.12912 7.64646 4.85578 7.1621 5.07767C6.79216 5.24715 6.59467 5.65495 6.69131 6.0498L7.98547 11.3373L6.87 10.178C6.52545 9.81987 5.94024 9.86103 5.64933 10.2638C5.44455 10.5474 5.44907 10.9312 5.66048 11.2098L7.89246 14.1518C7.89246 14.1518 9.12075 15.9833 12.1932 15.3769C14.6243 14.8972 15.4434 12.7097 14.7748 10.4997L14.2213 8.20869C14.0975 7.69621 13.5537 7.40646 13.0585 7.58916C12.614 7.75319 12.3788 8.23875 12.5259 8.68864Z"></path></svg>');function fd(t,e){"use strict";var i=B$(),o=_(i),n=P(o);g(i),O(()=>{Ne(i,"data-testid",(e.completed,"interactive-episode-completed-icon")),Ne(o,"fill-opacity",e.completed?1:.24),Ne(n,"fill",e.completed?"var(--interactive-episode-complete)":"white")}),b(t,i)}var O$=M("<div><!></div>"),D$={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 Tf(t,e){D(e,!0),z(t,D$);let o=Ee().ui.t,n=j(0),r=h(()=>o(e.videoEpisode.completed?"tooltip_episode_finished":"tooltip_episode_unfinished"));Lo(t,{get tooltipContent(){return s(r)},initialTranslateXPx:-10,initialTranslateYPx:-10,get disabled(){return e.disabled},get width(){return s(n)},isAriaHidden:!0,isFullWidthTooltip:!1,children:(l,d)=>{var a=O$();let p;var f=_(a);let v=h(()=>!!e.videoEpisode.completed);fd(f,{get completed(){return s(v)}}),g(a),O(u=>{p=J(a,1,"interactive-episode-icon svelte-bklhpe",null,p,u),st(a,`left: ${e.videoEpisode.from+e.videoEpisode.width/2}%`)},[()=>({disabled:e.disabled})]),es(a,"clientWidth",u=>B(n,u)),b(l,a)},$$slots:{default:!0}}),H()}var H$=M('<div><div class="video-episode-inner svelte-1u6kv8l"><div class="video-episode-loaded svelte-1u6kv8l"></div> <div></div></div></div>'),F$=M('<div class="video-episodes-wrap svelte-1u6kv8l"></div>'),U$={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,
165
+ .icon[data-value='min'].svelte-v40k9i .wave2:where(.svelte-v40k9i) {visibility:hidden;}`};function Bs(t,e){K(t,I$);let i=m(e,"volume",3,1),o=m(e,"muted",3,!1),n=(d,a)=>a?"off":d>.5?"max":d>.2?"mid":d>0?"min":"off",s=g(()=>n(i(),o()));var l=E$();O(()=>{var d;Be(l,"data-value",r(s)),Be(l,"data-testid",`volume-${(d=r(s))!=null?d:""}-icon`)}),$(t,l)}import{isNonNullable as e1,noop as Pn}from"@vkontakte/videoplayer-shared/es2018";import{noop as Tf}from"@vkontakte/videoplayer-shared/es2018";import{noop as P$}from"@vkontakte/videoplayer-shared/es2018";var k$=A('<div class="overlay"><!></div>');function Sf(t,e){F(e,!0);let[i,o]=He(),n=()=>C(l,"$overlayContainer$",i),l=Ee().ui.overlayContainer$,d=j(void 0),a=u=>{!u||!r(d)||!u.contains(r(d))||u.removeChild(r(d))},p=u=>{!u||!r(d)||u.contains(r(d))||u.appendChild(r(d))};We(()=>{p(n())}),Rt(()=>(p(n()),()=>a(n())));var f=k$(),v=_(f);xe(v,()=>{var u;return(u=e.children)!=null?u:se}),h(f),ot(f,u=>B(d,u),()=>r(d)),$(t,f),U(),o()}var A$=A('<div class="tooltip svelte-hxlyne"><div class="content svelte-hxlyne"> </div> <div class="tooltip-pointer svelte-hxlyne"></div></div>'),M$=A("<div><!></div> <!>",1),L$={hash:"svelte-hxlyne",code:'.tooltip-wrapper.svelte-hxlyne {display:flex;flex-direction:column;min-width:0;}.full-width.svelte-hxlyne {width:100%;}.tooltip.svelte-hxlyne {position:absolute;opacity:0;visibility:hidden;transition:opacity 200ms, visibility 200ms;bottom:100%;left:0;}.content.svelte-hxlyne {display:inline-block;padding:6px 10px;border-radius:3px;color:var(--white);background-color:rgba(41, 41, 41, .8);}.tooltip-pointer.svelte-hxlyne {position:absolute;bottom:0;width:0;border-top:5px solid rgba(41, 41, 41, .8);border-right:5px solid transparent;border-left:5px solid transparent;content:" ";font-size:0;line-height:0;}'};function ma(t,e){F(e,!0),K(t,L$);let[i,o]=He(),n=()=>C(q,"$overlayContainer$",i),s=()=>C(H,"$containerSize",i),l=m(e,"isMobile",3,!1),d=m(e,"content",3,""),a=m(e,"active",15,!1),p=m(e,"translateX",3,0),f=m(e,"translateY",3,0),v=m(e,"isFullWidthWrapper",3,!1),u=m(e,"maxTooltipWidth",3,void 0),y=m(e,"placement",3,"top"),w=m(e,"onVisibilityChange",3,P$),b=5,S=j(void 0),T=j(void 0),E,M=j(0),I=j(0),k=j(0),R=j(0),Y=Ft(),D=Ee(),H=D.ui.playerSize,q=D.ui.overlayContainer$;We(()=>{Ct(()=>{w()(a())})});let J=D.getLogger().createComponentLog("Tooltip component"),W=()=>{if(!n()||!r(T)||!r(S))return;B(I,b);let Ae=n().getBoundingClientRect(),ee=r(S).getBoundingClientRect(),Ce=ee.width,qe=r(T).clientWidth,st=s().width,ct=(Ce-qe)/2,bt=ee.left+p()-Ae.left,St=bt+ct,Ge=ee.top+f()-Ae.top,Wt=qe/2-b,Qt=St<8,qt=St+qe>st-8;Qt&&(St=8,Wt=bt+ee.width/2-2.5*b),qt&&(St=st-8-qe,Wt=ee.left-Ae.left+ee.width/2-St-b),B(k,St,!0),B(R,Ge),B(M,Wt,!0)},de=()=>{!n()||!r(T)||!r(S)||B(I,-b)},ie=()=>{if(!n()||!r(T)||!r(S))return;B(M,b);let Ae=n().getBoundingClientRect(),ee=r(S).getBoundingClientRect(),Ce=ee.height,qe=r(T).clientHeight,st=(Ce-qe)/2+qe,ct=ee.left+p()-Ae.left-r(T).clientWidth,bt=2,St=ct-b;St<8&&(St=8);let Wt=ee.top+f()-Ae.top+st,Qt=bt-st/2,qt=bt-b;B(k,St,!0),B(R,Wt),B(I,Qt),B(M,qt)},ve=()=>{!n()||!r(T)||!r(S)||B(M,-b)},Ie=()=>{switch(y()){case"top":W();break;case"bottom":de();break;case"left":ie();break;default:ve()}},fe=()=>{try{if(!n()||!r(S))return;Ie(),a(!0)}catch(Ae){J({message:String(Ae)})}},re=()=>{a(!1)},ke=()=>{r(T)&&(E||(E=window.setTimeout(fe,Y.controls.hideTimeoutTooltips)),a()&&fe())},te=()=>{re(),window.clearTimeout(E),E=void 0},N=(Ae,ee,Ce)=>{let qe="";switch(y()){case"top":qe=`transform: translate(${Ae}px, ${ee}px);`;break;case"bottom":qe=`transform: translate(${Ae}px, ${ee}px); top: auto; bottom: 100%;`;break;case"left":qe=`transform: translate(${Ae}px, ${ee}px); left: 0; right: auto;`;break;default:qe=`transform: translate(${Ae}px, ${ee}px);`}return qe+=` max-width: ${u()===void 0?"auto":`${u()}px`};`,qe+=` opacity: ${Ce?1:0}; visibility: ${Ce?"visible":"hidden"}`,qe},Oe=(Ae,ee)=>{let Ce="";switch(y()){case"top":Ce=`transform: translate(${Ae}px, ${ee}px) rotate(0); top: auto; bottom: 0;`;break;case"bottom":Ce=`transform: translate(${Ae}px, ${ee}px) rotate(180deg); top: 0; bottom: auto;`;break;case"left":Ce=`transform: translate(${Ae}px, ${ee}px) rotate(-90deg); left: 100%; top: auto; bottom: 0;`;break;default:Ce=`transform: translate(${Ae}px, ${ee}px) rotate(90deg); right: 100%; top: auto; bottom: 0;`}return Ce},ye=g(()=>N(r(k),r(R),a())),he=g(()=>Oe(r(M),r(I)));Rt(Ie),Yo(()=>window.clearTimeout(E));var ce=M$(),ue=me(ce);let we;ue.__mousemove=ke,ue.__mousedown=te,ue.__mouseup=function(...Ae){var ee;(ee=e.disableMouseupTooltipShow?void 0:ke)==null||ee.apply(this,Ae)};var Z=_(ue);xe(Z,()=>{var Ae;return(Ae=e.children)!=null?Ae:se}),h(ue),ot(ue,Ae=>B(S,Ae),()=>r(S));var Ke=P(ue,2);{var Xe=Ae=>{Sf(Ae,{children:(ee,Ce)=>{var qe=A$(),st=_(qe),ct=_(st,!0);h(st);var bt=P(st,2);h(qe),ot(qe,St=>B(T,St),()=>r(T)),O(()=>{nt(qe,r(ye)),_e(ct,d()),nt(bt,r(he))}),$(ee,qe)},$$slots:{default:!0}})};L(Ke,Ae=>{d()&&!l()&&Ae(Xe)})}O(Ae=>we=X(ue,1,"tooltip-wrapper svelte-hxlyne",null,we,Ae),[()=>({"full-width":v()})]),Tt("mouseenter",ue,ke),Tt("mouseleave",ue,te),$(t,ce),U(),o()}lt(["mousemove","mousedown","mouseup"]);var Jh=t=>{t.stopPropagation()},V$=A("<div><!></div>"),R$={hash:"svelte-p9r045",code:".btn-container.svelte-p9r045 {position:relative;display:flex;align-items:center;height:100%;transition:var(--button-hover-transition);will-change:opacity;-webkit-tap-highlight-color:transparent;}.w-max.svelte-p9r045 {width:100%;min-width:0;}"};function Do(t,e){F(e,!0),K(t,R$);let[i,o]=He(),n=()=>C(p,"$isGraphOpened$",i),s=()=>C(a,"$isMobile",i),l=Ee(),d=uo(),a=l.ui.isMobile,p=d.graphIsOpened$,f=l.ui.t,v=m(e,"className",3,""),u=m(e,"disabled",3,!1),y=m(e,"hasTooltip",3,!0),w=m(e,"ref",15,void 0),b=m(e,"width",15,void 0),S=m(e,"isFullWidthTooltip",3,!0),T=m(e,"tooltipContent",3,""),E=m(e,"tooltipActive",3,!1),M=m(e,"tooltipPlacement",3,"top"),I=m(e,"disabledTooltipContent",19,()=>f("tooltip_button_disabled")),k=m(e,"isAriaHidden",3,!1),R=m(e,"onTooltipVisibilityChange",3,Tf),Y=m(e,"initialTranslateXPx",3,0),D=m(e,"initialTranslateYPx",19,()=>-18),H=m(e,"mouseEnter",3,Tf),q=m(e,"mouseLeave",3,Tf),J=g(()=>u()?n()?f("tooltip_disabled_when_graph_on"):I():T());var W=V$();W.__pointerdown=[Jh],W.__click=[Jh];var de=_(W);{var ie=Ie=>{ma(Ie,{get content(){return r(J)},get translateX(){return Y()},get translateY(){return D()},get isFullWidthWrapper(){return S()},get active(){return E()},get placement(){return M()},get onVisibilityChange(){return R()},get disableMouseupTooltipShow(){return e.disableMouseupTooltipShow},children:(fe,re)=>{var ke=Ue(),te=me(ke);xe(te,()=>{var N;return(N=e.children)!=null?N:se}),$(fe,ke)},$$slots:{default:!0}})},ve=Ie=>{var fe=Ue(),re=me(fe);xe(re,()=>{var ke;return(ke=e.children)!=null?ke:se}),$(Ie,fe)};L(de,Ie=>{y()&&r(J)&&!s()?Ie(ie):Ie(ve,!1)})}h(W),ot(W,Ie=>w(Ie),()=>w()),O(()=>{var Ie;X(W,1,`btn-container ${(Ie=v())!=null?Ie:""}`,"svelte-p9r045"),Be(W,"aria-hidden",k()||null)}),Tt("mouseenter",W,function(...Ie){var fe;(fe=H())==null||fe.apply(this,Ie)}),Tt("mouseleave",W,function(...Ie){var fe;(fe=q())==null||fe.apply(this,Ie)}),Xn(W,"clientWidth",b),$(t,W),U(),o()}lt(["pointerdown","click"]);var N$=Te('<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 gd(t,e){"use strict";var i=N$(),o=_(i),n=P(o);h(i),O(()=>{Be(i,"data-testid",(e.completed,"interactive-episode-completed-icon")),Be(o,"fill-opacity",e.completed?1:.24),Be(n,"fill",e.completed?"var(--interactive-episode-complete)":"white")}),$(t,i)}var B$=A("<div><!></div>"),O$={hash:"svelte-bklhpe",code:".interactive-episode-icon.svelte-bklhpe {width:20px;height:20px;position:absolute;transform:translateX(-50%);cursor:default;}.interactive-episode-icon.disabled.svelte-bklhpe {pointer-events:none;opacity:0.4;}"};function Ef(t,e){F(e,!0),K(t,O$);let o=Ee().ui.t,n=j(0),s=g(()=>o(e.videoEpisode.completed?"tooltip_episode_finished":"tooltip_episode_unfinished"));Do(t,{get tooltipContent(){return r(s)},initialTranslateXPx:-10,initialTranslateYPx:-10,get disabled(){return e.disabled},get width(){return r(n)},isAriaHidden:!0,isFullWidthTooltip:!1,children:(l,d)=>{var a=B$();let p;var f=_(a);let v=g(()=>!!e.videoEpisode.completed);gd(f,{get completed(){return r(v)}}),h(a),O(u=>{p=X(a,1,"interactive-episode-icon svelte-bklhpe",null,p,u),nt(a,`left: ${e.videoEpisode.from+e.videoEpisode.width/2}%`)},[()=>({disabled:e.disabled})]),Xn(a,"clientWidth",u=>B(n,u)),$(l,a)},$$slots:{default:!0}}),U()}var D$=A('<div><div class="video-episode-inner svelte-1u6kv8l"><div class="video-episode-loaded svelte-1u6kv8l"></div> <div></div></div></div>'),H$=A('<div class="video-episodes-wrap svelte-1u6kv8l"></div>'),F$={hash:"svelte-1u6kv8l",code:`.video-episodes-wrap.svelte-1u6kv8l {position:absolute;width:100%;height:100%;}.video-episode.svelte-1u6kv8l {position:absolute;height:calc(3 * var(--slider-height));box-sizing:border-box;margin-top:calc(-1 * var(--slider-height));padding:var(--slider-height) var(--slider-video-episode-gap);transition:transform 0.2s;}.video-episode.svelte-1u6kv8l:not(.disabled):where(:hover, :active) {transform:scaleY(1.5);}.video-episode-inner.svelte-1u6kv8l,
166
166
  .video-episode-loaded.svelte-1u6kv8l,
167
- .video-episode-filled.svelte-1u6kv8l {position:absolute;height:var(--slider-height);border-radius:var(--slider-radius);}.video-episode-inner.svelte-1u6kv8l {position:absolute;overflow:hidden;width:calc(100% - 2 * var(--slider-video-episode-gap));background:var(--slider-bg);}.video-episode-loaded.svelte-1u6kv8l {position:absolute;left:-100%;width:100%;height:100%;border-radius:var(--slider-radius);background:var(--slider-loaded-bg);transition:transform 0.2s;}.video-episode-filled.svelte-1u6kv8l {position:absolute;left:-100%;width:100%;height:100%;border-radius:var(--slider-radius);background-color:var(--slider-filled-bg);}`};function Ef(t,e){z(t,U$);let i=m(e,"videoEpisodes",19,()=>[]);var o=F$();$i(o,21,i,n=>n.from,(n,r)=>{var l=H$();let d;var a=_(l),p=_(a),f=P(p,2);let v;g(a),g(l),O((u,$)=>{d=J(l,1,"video-episode svelte-1u6kv8l",null,d,u),st(l,`left: ${s(r).from}%; width: ${s(r).width}%`),st(p,`transform: translateX(${s(r).loadedWidth/s(r).width*100}%)`),v=J(f,1,"video-episode-filled svelte-1u6kv8l",null,v,$),st(f,`transform: translateX(${s(r).filledWidth/s(r).width*100}%)`)},[()=>({disabled:e.disabled,mobile:e.isMobile}),()=>({mobile:e.isMobile})]),b(n,l)}),g(o),b(t,o)}function z$(t,e,i,o,n,r,l){if(t.preventDefault(),e()&&B(i,e().getBoundingClientRect(),!0),o()||s(n)||!e())return;B(n,!0);let d=r(t.clientX,t.clientY);l()(d),e().setPointerCapture(t.pointerId)}function W$(t,e,i,o,n,r,l,d){if(t.preventDefault(),e())return;let a=i(t.clientX,t.clientY),p=o(t.clientX);n()(a,p,s(r).width),s(l)&&d()(a)}function q$(t,e,i,o,n){if(t.preventDefault(),e()||!s(i))return;B(i,!1);let r=o(t.clientX,t.clientY);n()(r)}function K$(t,e,i,o){t.stopPropagation(),t.preventDefault(),e()&&i()(o(t.clientX,t.clientY))}function Q$(t,e,i,o,n,r){let l=e(t.clientX,t.clientY);i()&&o()(l),B(n,!1),r()(l)}var G$=M("<div></div>"),Y$=M('<div class="bars svelte-1tpemng"><div class="loaded svelte-1tpemng"></div> <div></div></div>'),j$=M('<!> <div role="slider" tabindex="0"><!> <div><div></div></div></div>',1),Z$={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 {
167
+ .video-episode-filled.svelte-1u6kv8l {position:absolute;height:var(--slider-height);border-radius:var(--slider-radius);}.video-episode-inner.svelte-1u6kv8l {position:absolute;overflow:hidden;width:calc(100% - 2 * var(--slider-video-episode-gap));background:var(--slider-bg);}.video-episode-loaded.svelte-1u6kv8l {position:absolute;left:-100%;width:100%;height:100%;border-radius:var(--slider-radius);background:var(--slider-loaded-bg);transition:transform 0.2s;}.video-episode-filled.svelte-1u6kv8l {position:absolute;left:-100%;width:100%;height:100%;border-radius:var(--slider-radius);background-color:var(--slider-filled-bg);}`};function If(t,e){K(t,F$);let i=m(e,"videoEpisodes",19,()=>[]);var o=H$();$i(o,21,i,n=>n.from,(n,s)=>{var l=D$();let d;var a=_(l),p=_(a),f=P(p,2);let v;h(a),h(l),O((u,y)=>{d=X(l,1,"video-episode svelte-1u6kv8l",null,d,u),nt(l,`left: ${r(s).from}%; width: ${r(s).width}%`),nt(p,`transform: translateX(${r(s).loadedWidth/r(s).width*100}%)`),v=X(f,1,"video-episode-filled svelte-1u6kv8l",null,v,y),nt(f,`transform: translateX(${r(s).filledWidth/r(s).width*100}%)`)},[()=>({disabled:e.disabled,mobile:e.isMobile}),()=>({mobile:e.isMobile})]),$(n,l)}),h(o),$(t,o)}function U$(t,e,i,o,n,s,l){if(t.preventDefault(),e()&&B(i,e().getBoundingClientRect(),!0),o()||r(n)||!e())return;B(n,!0);let d=s(t.clientX,t.clientY);l()(d),e().setPointerCapture(t.pointerId)}function z$(t,e,i,o,n,s,l,d){if(t.preventDefault(),e())return;let a=i(t.clientX,t.clientY),p=o(t.clientX);n()(a,p,r(s).width),r(l)&&d()(a)}function W$(t,e,i,o,n){if(t.preventDefault(),e()||!r(i))return;B(i,!1);let s=o(t.clientX,t.clientY);n()(s)}function K$(t,e,i,o){t.stopPropagation(),t.preventDefault(),e()&&i()(o(t.clientX,t.clientY))}function q$(t,e,i,o,n,s){let l=e(t.clientX,t.clientY);i()&&o()(l),B(n,!1),s()(l)}var G$=A("<div></div>"),Q$=A('<div class="bars svelte-1tpemng"><div class="loaded svelte-1tpemng"></div> <div></div></div>'),Y$=A('<!> <div role="slider" tabindex="0"><!> <div><div></div></div></div>',1),j$={hash:"svelte-1tpemng",code:`.interactive-icons.svelte-1tpemng {position:absolute;width:calc(100% - 20px);top:-28px;}.interactive-icons.mobile.svelte-1tpemng {top:-10px;}.slider.svelte-1tpemng {position:relative;height:var(--slider-height);border-radius:var(--slider-radius);cursor:pointer;transition:visibility 0.2s, opacity 0.2s;will-change:opacity, transform;width:100%;touch-action:none;-webkit-tap-highlight-color:transparent;}.no-handle.svelte-1tpemng {cursor:default;}.slider.svelte-1tpemng:before {
168
168
  /* hit area */content:'';position:absolute;left:0;right:0;top:calc(-1 * (var(--controls-height) / 2 - var(--slider-height)) / 2);height:calc(var(--controls-height) / 2);}.bars.svelte-1tpemng {position:absolute;width:100%;height:100%;border-radius:var(--slider-radius);overflow:hidden;background:var(--slider-bg);}.loaded.svelte-1tpemng {position:absolute;left:-100%;width:100%;height:100%;border-radius:var(--slider-radius);background:var(--slider-loaded-bg);transition:transform 0.2s;will-change:transform;}.filled.svelte-1tpemng {position:absolute;left:-100%;width:100%;height:100%;border-radius:var(--slider-radius);background-color:var(--slider-filled-bg);}.slider.square.svelte-1tpemng,
169
169
  .slider.square.svelte-1tpemng > .bars:where(.svelte-1tpemng),
170
170
  .slider.square.svelte-1tpemng .loaded:where(.svelte-1tpemng),
171
171
  .slider.square.svelte-1tpemng .filled:where(.svelte-1tpemng) {border-radius:unset;}.filled.active-live.svelte-1tpemng {background-color:var(--timeline-slider-filled-active-live-bg);}.filled.ads.svelte-1tpemng {background-color:var(--slider-filled-ads);}.handleWrap.svelte-1tpemng {position:absolute;left:-100%;width:100%;}.handle.svelte-1tpemng {position:absolute;width:var(--slider-handle-size);height:var(--slider-handle-size);right:calc(-1 * var(--slider-handle-size) / 2);top:calc((var(--slider-height) - var(--slider-handle-size)) / 2);border-radius:50%;background-color:var(--slider-handle-bg);visibility:hidden;opacity:0;transform:scale(0);transition:opacity 0.2s, transform 0.2s, visibility 0.2s;will-change:opacity, transform;}.handle.active-live.svelte-1tpemng {background-color:var(--timeline-slider-handle-active-live-bg);}.slider.svelte-1tpemng:hover .handle:where(.svelte-1tpemng),
172
- .slider-dragging.svelte-1tpemng .handle:where(.svelte-1tpemng) {visibility:visible;opacity:1;transform:scale(1);}.slider-dragging.svelte-1tpemng .handle:where(.svelte-1tpemng) {transform:scale(1.3);}.slider-vertical.svelte-1tpemng {position:absolute;left:-8px;top:-18px;transform-origin:0 0;transform:rotate(-90deg);}.slider.disabled.svelte-1tpemng {cursor:default;opacity:0.4;}`};function ga(t,e){D(e,!0),z(t,Z$);let i=m(e,"ref",15,void 0),o=m(e,"className",3,""),n=m(e,"testId",3,void 0),r=m(e,"isHidden",3,!1),l=m(e,"isVertical",3,!1),d=m(e,"isActiveLive",3,!1),a=m(e,"isMobile",3,!1),p=m(e,"squareBorders",3,!1),f=m(e,"videoEpisodes",19,()=>[]),v=m(e,"withWheelHandler",3,!1),u=m(e,"isInteractive",3,!1),$=m(e,"disabled",3,!1),w=m(e,"hideHandel",3,!1),y=m(e,"onPointerDown",3,Pn),S=m(e,"onHandleMove",3,Pn),T=m(e,"onPointerUp",3,Pn),k=m(e,"onPointerEnter",3,Pn),A=m(e,"onPointerMove",3,Pn),I=m(e,"onPointerLeave",3,Pn),E=m(e,"onMouseEnter",3,Pn),V=m(e,"onMouseLeave",3,Pn),K=m(e,"onWheelUp",3,Pn),W=m(e,"onWheelDown",3,Pn),U=m(e,"onWheelLeft",3,Pn),Y=m(e,"onWheelRight",3,Pn),ne=m(e,"onDisabledClick",3,Pn),G=m(e,"loadedProgress",3,0),ce=m(e,"filledProgress",3,0),le=m(e,"handleProgress",3,0),we=m(e,"ariaLabel",3,""),Ve=m(e,"ariaValueMin",3,void 0),ve=m(e,"ariaValueMax",3,void 0),ae=m(e,"ariaValueNow",3,void 0),Le=m(e,"ariaValueText",3,""),te=m(e,"onContextMenu",3,Pn),N=Ft(),Be=j(void 0),ye=j(!1),ge=h(()=>{var se;return(se=ve())!=null?se:0}),de=h(()=>{var se;return e1(f())&&((se=f()[f().length-1])==null?void 0:se.time)<s(ge)}),ue=h(()=>e1(f())&&f().length&&s(de)&&s(ge)?Ke(G()*100,ce()*100):[]);function xe(se){if(se.preventDefault(),i()&&B(Be,i().getBoundingClientRect(),!0),$())return;let Oe=X(se.clientX,se.clientY),ze=Te(se.clientX);k()(Oe,ze,s(Be).width)}function Z(se){se.preventDefault(),!$()&&I()()}function qe(){E()()}function Xe(){V()()}function ke(se){$()||v()&&(se.preventDefault(),se.deltaY<0?K()():se.deltaY>0?W()():se.deltaX>0?Y()():U()())}function X(se,Oe){return l()?Math.max(0,Math.min(1,(s(Be).height-(Oe-s(Be).top))/s(Be).height)):Math.min(Math.max(se-s(Be).x,0),s(Be).width)/s(Be).width}function Te(se){return Math.min(Math.max(se-s(Be).x,0),s(Be).width)}function Ke(se,Oe){let ze=N.features.episodesClustering&&!u()?N.episodeMinWidthPc:0,Ae=[],Ye=f()[0].time/s(ge)*100,Re=0,tt=0;for(let Je=1;Je<f().length;Je++)Re=f()[Je].time/s(ge)*100,Re-Ye>ze&&(Ae.push({from:Ye,width:Math.max(0,Re-Ye),loadedWidth:Math.max(0,Math.min(Re,se)-Ye),filledWidth:Math.max(0,Math.min(Re,Oe)-Ye),interactive:f()[Je-1].interactive,completed:f()[Je-1].completed}),Ye=f()[Je].time/s(ge)*100,tt++);let kt={from:Ye,width:Math.max(0,100-Ye),loadedWidth:Math.max(0,Math.min(se,100)-Ye),filledWidth:Math.max(0,Math.min(Oe,100)-Ye),interactive:f()[tt].interactive,completed:f()[tt].completed};100-Ye<ze?(tt-=1,Ae[tt].width+=100-Ye,Ae[tt].loadedWidth+=Math.max(0,Math.min(se,100)-Ye),Ae[tt].filledWidth+=Math.max(0,Math.min(Oe,100)-Ye)):Ae[tt]=kt;let Mt=f()[0].time;if(Mt!==0){let Je=Mt/s(ge)*100;Ae.unshift({from:0,width:Je,loadedWidth:Math.min(Je,se),filledWidth:Math.min(Je,Oe)})}return Ae}function rt(se){return Math.max(0,Math.min(100,se*100))}var ct=j$(),ht=fe(ct);{var xt=se=>{var Oe=G$();let ze;$i(Oe,21,()=>s(ue),Ae=>Ae.from,(Ae,Ye)=>{var Re=Ue(),tt=fe(Re);{var kt=Mt=>{Tf(Mt,{get videoEpisode(){return s(Ye)},get disabled(){return $()}})};L(tt,Mt=>{s(Ye).interactive&&Mt(kt)})}b(Ae,Re)}),g(Oe),O(Ae=>ze=J(Oe,1,"interactive-icons svelte-1tpemng",null,ze,Ae),[()=>({mobile:a(),hidden:a()&&!s(ye)})]),b(se,Oe)};L(ht,se=>{u()&&se(xt)})}var Qe=P(ht,2);let qt;Qe.__pointerdown=[z$,i,Be,$,ye,X,y],Qe.__pointermove=[W$,$,X,Te,A,Be,ye,S],Qe.__pointerup=[q$,$,ye,X,T],Qe.__click=[K$,$,ne,X],Qe.__contextmenu=[Q$,X,$,ne,ye,te];var Yt=_(Qe);{var Qt=se=>{Ef(se,{get videoEpisodes(){return s(ue)},get disabled(){return $()},get isMobile(){return a()}})},Nt=se=>{var Oe=Y$(),ze=_(Oe),Ae=P(ze,2);let Ye;g(Oe),O((Re,tt,kt)=>{st(ze,Re),Ye=J(Ae,1,"filled svelte-1tpemng",null,Ye,tt),st(Ae,kt)},[()=>`transform: translateX(${rt(G())}%);`,()=>({"active-live":d()}),()=>`transform: translateX(${rt(ce())}%);`]),b(se,Oe)};L(Yt,se=>{s(ue).length?se(Qt):se(Nt,!1)})}var ee=P(Yt,2);let At;var me=_(ee);let _e;g(ee),g(Qe),ot(Qe,se=>i(se),()=>i()),O((se,Oe,ze,Ae)=>{var Ye,Re;qt=J(Qe,1,`slider ${(Ye=o())!=null?Ye:""}`,"svelte-1tpemng",qt,se),Ne(Qe,"aria-label",we()),Ne(Qe,"aria-valuemin",Ve()),Ne(Qe,"aria-valuemax",ve()),Ne(Qe,"aria-valuenow",ae()),Ne(Qe,"aria-valuetext",Le()),Ne(Qe,"data-testid",(Re=n())!=null?Re:null),At=J(ee,1,"handleWrap svelte-1tpemng",null,At,Oe),st(ee,ze),_e=J(me,1,"handle svelte-1tpemng",null,_e,Ae)},[()=>({disabled:$(),"slider-dragging":s(ye),hidden:r(),"slider-vertical":l(),"no-handle":w(),square:p()}),()=>({hidden:w()}),()=>`transform: translateX(${rt(le())}%);`,()=>({"active-live":d()})]),wt("pointerenter",Qe,xe),wt("pointerleave",Qe,Z),wt("mouseenter",Qe,qe),wt("mouseleave",Qe,Xe),wt("wheel",Qe,ke),b(t,ct),H()}lt(["pointerdown","pointermove","pointerup","click","contextmenu"]);var Yi=(t,e)=>ra[t]>=ra[e],t1=(t,e)=>ra[t]<ra[e],Ns=(t,e)=>ra[t]<=ra[e],i1=t=>t>699?"xl":t>599?"l":t>509?"m":t>320?"s":"xs";var X$=M("<div><!></div>"),J$=M("<div><!> <!></div>"),e2={hash:"svelte-1auih1j",code:".volumeBar-container.svelte-1auih1j {display:flex;align-items:center;}.volumeBar-container.vertical.svelte-1auih1j, .vertical.svelte-1auih1j .tooltip-wrapper, .vertical.svelte-1auih1j .btn {width:40px;}.volumeBar.svelte-1auih1j {display:flex;align-items:center;margin:0 8px;position:relative;width:70px;--slider-height: var(--slider-volume-height);--slider-radius: var(--slider-volume-radius);--slider-handle-size: var(--slider-volume-handle-size);--slider-bg: var(--volume-slider-bg);--slider-filled-bg: var(--volume-slider-filled-bg);--slider-handle-bg: var(--volume-slider-handle-bg);}.volumeBar-slider-vertical {width:50px !important;}.volumeBar-vertical.svelte-1auih1j {padding:0 8px 0 0;width:0;}"};function If(t,e){var ke,X;D(e,!0),z(t,e2);let[i,o]=De(),n=()=>C(k,"$isAudioAvailable$",i),r=()=>C(v,"$muted$",i),l=()=>C(f,"$volume$",i),d=()=>C(y,"$currentGridType$",i),a=Ee(),p=Ft(),f=a.state.volume$,v=a.state.muted$,{setVolume:u,startVolumeChanging:$,stopVolumeChanging:w}=a.actions.internal,y=a.ui.currentGridType$,S=(ke=a.callbacks)==null?void 0:ke.onAudioDoesNotExistHint,T=(X=a.callbacks)==null?void 0:X.onAudioDisabledHint,k=a.state.isAudioAvailable$,A=a.state.isAudioDisabled,I=a.ui.t,E=j(!1),V,K=h(()=>e.isAds||n()),W=h(()=>!s(K)||r()||l()===0),U=h(()=>Ns(d(),"s")),Y=h(()=>s(U)?"":s(W)?!n()||A?I("tooltip_sound_unavailable"):I("tooltip_volume"):I("tooltip_volume_muted")),ne=h(()=>s(W)?I("tooltip_volume"):I("tooltip_volume_muted")),G=h(()=>s(W)?0:l()),ce=!1,le=h(()=>e.isAds?!1:A?!T:n()?!1:!S);function we(Te){$(),u(Te)}function Ve(){Zc(a,l(),p.controls.volumeStepWheel)}function ve(){Xc(a,l(),p.controls.volumeStepWheel)}function ae(Te){u(Te)}function Le(Te){u(Te),w()}function te(){ce=!0}function N(){ce=!1,ge()}function Be(){clearTimeout(V),B(E,!0)}function ye(){ge()}function ge(){V=window.setTimeout(()=>{ce||B(E,!1)},p.controls.volumeBarTimeout)}function de(Te){Te.preventDefault(),Te.deltaY<0?Ve():Te.deltaY>0&&ve()}var ue=J$();let xe;var Z=_(ue);va(Z,{get content(){return s(Y)},translateY:-18,children:(Te,Ke)=>{let rt=h(()=>s(U)?"btn-volume-vertical":"btn-volume-horizontal");Vt(Te,{className:"btn-full-opacity",get disabled(){return s(le)},get testId(){return s(rt)},get ariaLabel(){return s(ne)},get click(){return e.click},get ariaKeyShortCut(){return ts.KeyM},role:"button",children:(ct,ht)=>{Rs(ct,{get volume(){return l()},get muted(){return s(W)}})},$$slots:{default:!0}})},$$slots:{default:!0}});var qe=P(Z,2);{var Xe=Te=>{var Ke=X$();let rt;var ct=_(Ke);let ht=h(()=>s(U)?"volumeBar-slider-vertical":""),xt=h(()=>s(U)&&!s(E)),Qe=h(()=>s(U)?te:eu),qt=h(()=>s(U)?N:eu),Yt=h(()=>Math.round(s(G)*100)),Qt=h(()=>`${Math.round(s(G)*100)}%`),Nt=h(()=>s(U)?"volume-slider-vertical":"volume-slider");ga(ct,{get className(){return s(ht)},get isHidden(){return s(xt)},get isVertical(){return s(U)},withWheelHandler:!0,onWheelUp:Ve,onWheelDown:ve,onPointerDown:we,onHandleMove:ae,onPointerUp:Le,get onPointerEnter(){return s(Qe)},get onPointerLeave(){return s(qt)},ariaLabel:"\u041F\u043E\u043B\u0437\u0443\u043D\u043E\u043A \u0433\u0440\u043E\u043C\u043A\u043E\u0441\u0442\u0438",ariaValueMin:0,ariaValueMax:100,get ariaValueNow(){return s(Yt)},get ariaValueText(){return s(Qt)},get filledProgress(){return s(G)},get handleProgress(){return s(G)},get testId(){return s(Nt)}}),g(Ke),O(ee=>rt=J(Ke,1,"volumeBar svelte-1auih1j",null,rt,ee),[()=>({"volumeBar-vertical":s(U)})]),b(Te,Ke)};L(qe,Te=>{s(K)&&Te(Xe)})}g(ue),O(Te=>xe=J(ue,1,"volumeBar-container svelte-1auih1j",null,xe,Te),[()=>({vertical:s(U)})]),wt("mouseenter",ue,function(...Te){var Ke;(Ke=s(U)?Be:eu)==null||Ke.apply(this,Te)}),wt("mouseleave",ue,function(...Te){var Ke;(Ke=s(U)?ye:eu)==null||Ke.apply(this,Te)}),wt("wheel",ue,de),b(t,ue),H(),o()}import{noop as o2}from"@vkontakte/videoplayer-shared/es2018";var t2=Se('<svg><!><g fill-rule="evenodd"><path d="M4.58 13.979a.99.99 0 0 1 .99-.99h4.451a.99.99 0 0 1 .99.99v4.452a.99.99 0 0 1-1.98 0v-2.05l-3.319 3.322a1 1 0 0 1-1.414 0v-.001a1 1 0 0 1 0-1.414l3.32-3.32H5.57a.99.99 0 0 1-.99-.99m10.388-6.36 3.32-3.322a1 1 0 0 1 1.414 0v.001a1 1 0 0 1 0 1.414l-3.32 3.32h2.049a.99.99 0 0 1 0 1.979h-4.442a1 1 0 0 1-1-1V5.569a.99.99 0 1 1 1.98 0z" class="_exit"></path><path d="M10.5 19a1 1 0 0 1-1 1H5a1 1 0 0 1-1-1v-4.5a1 1 0 0 1 2 0v2.072l3.363-3.365a1 1 0 0 1 1.414 0l.016.016a1 1 0 0 1 0 1.414L7.429 18H9.5a1 1 0 0 1 1 1M18 7.429l-3.363 3.364a1 1 0 0 1-1.414 0l-.016-.016a1 1 0 0 1 0-1.414L16.571 6H14.5a1 1 0 0 1 0-2H19a1 1 0 0 1 1 1v4.5a1 1 0 0 1-2 0z" class="_enter"></path></g></svg>');function kf(t,e){let i=Me(e,["$$slots","$$events","$$legacy","children"]);var o=t2();Ie(o,()=>({xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"var(--btn-color, #fff)","aria-hidden":"true",viewBox:"0 0 24 24",role:"img",...i}));var n=_(o);be(n,()=>{var r;return(r=e.children)!=null?r:oe}),Ce(),g(o),b(t,o)}var i2={hash:"svelte-17t966y",code:`svg[data-testid="close-fullscreen-icon"] ._enter,
173
- svg[data-testid="open-fullscreen-icon"] ._exit {visibility:hidden;opacity:0;}`};function Pf(t,e){z(t,i2);let i=m(e,"isFullscreen",8,!1),o=kr(()=>i()?"close-fullscreen-icon":"open-fullscreen-icon");kf(t,{get"data-testid"(){return s(o)},fill:"var(--btn-color, #fff)"})}function md(t,e){D(e,!0);let i=m(e,"isFullscreen",3,!1),o=m(e,"click",3,o2),n=Ee(),r=n.ui.isFullscreenOpenedByKeyboard,l=n.ui.t,d=h(()=>i()?l("tooltip_fullscreen_on"):l("tooltip_fullscreen_off"));Vt(t,{testId:"btn-fullscreen",get ariaLabel(){return s(d)},click:p=>{let f=Ls(p);r.set(f),o()()},get ariaKeyShortCut(){return ts.KeyF},role:"button",children:(p,f)=>{Pf(p,{get isFullscreen(){return i()}})},$$slots:{default:!0}}),H()}var n2=Se('<svg><!><path fill="var(--btn-color, #fff)" fill-rule="evenodd" d="M4.265 4.265C3 5.531 3 7.567 3 11.64v.72c0 4.073 0 6.11 1.265 7.375C5.531 21 7.567 21 11.64 21h.72c4.073 0 6.11 0 7.375-1.265C21 18.469 21 16.433 21 12.36v-.72c0-4.073 0-6.11-1.265-7.375C18.469 3 16.433 3 12.36 3h-.72C7.567 3 5.53 3 4.265 4.265M6 8.5c.096 4.682 2.556 7.5 6.61 7.5h.235v-2.679c1.476.15 2.577 1.254 3.026 2.679H18c-.578-2.132-2.075-3.31-3.005-3.76.93-.558 2.246-1.908 2.556-3.74h-1.937c-.406 1.49-1.615 2.84-2.77 2.968V8.5h-1.968v5.197c-1.197-.3-2.759-1.757-2.823-5.197z" clip-rule="evenodd"></path></svg>');function Af(t,e){let i=Me(e,["$$slots","$$events","$$legacy","children"]);var o=n2();Ie(o,()=>({xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none","aria-hidden":"true","data-testid":"vk-logo-icon",role:"img",...i}));var n=_(o);be(n,()=>{var r;return(r=e.children)!=null?r:oe}),Ce(),g(o),b(t,o)}var r2=Se('<svg><!><path fill="var(--btn-color, #fff)" d="M32.55 17.042h2.494L38.707 7h-1.81l-2.936 8.276h-.286L30.84 7H29zM48.075 17.042l-4.619-5.199L47.718 7h-2.11l-3.563 4.088h-.413V7h-1.71v10.042h1.71V12.74h.427l3.764 4.302z"></path><path fill="var(--btn-color, #fff)" d="M57.888 11.886c.883-.342 1.44-1.125 1.44-2.151C59.327 8.14 58.001 7 56.062 7h-3.92v10.042h4.205c1.953 0 3.279-1.14 3.279-2.806 0-1.168-.656-2.037-1.74-2.35m-4.034-3.39h2.21c.911 0 1.539.555 1.539 1.381 0 .812-.628 1.368-1.54 1.368h-2.21zm2.494 7.05h-2.494V12.74h2.494c.898 0 1.525.57 1.525 1.396 0 .84-.627 1.41-1.525 1.41M61.188 17.042h2.323l2.766-5.498h.228v5.498h1.568V9.635h-2.324l-2.765 5.498h-.228V9.635h-1.568zM69.146 19.25h1.64v-2.208h5.33v2.208h1.64v-3.703h-1.283V9.635h-5.431l-.37 3.79c-.13 1.338-.528 2.121-1.34 2.121h-.186zm2.494-3.703c.4-.385.57-1.04.685-2.151l.228-2.265h2.28v4.416zM86.025 13.253c0-2.136-1.597-3.76-3.849-3.76s-3.848 1.61-3.848 3.846 1.596 3.846 3.848 3.846c1.54 0 2.994-.727 3.55-2.137l-1.54-.256c-.356.527-1.04.897-1.91.897-1.254 0-2.081-.77-2.238-1.909h5.958c.015-.156.029-.327.029-.527m-3.849-2.336c1.027 0 1.796.655 2.067 1.581h-4.105c.27-.954 1.04-1.58 2.038-1.58M90.837 17.185c2.324 0 3.963-1.596 3.963-3.846s-1.64-3.846-3.963-3.846-3.962 1.595-3.962 3.846c0 2.25 1.639 3.846 3.962 3.846m0-1.496c-1.34 0-2.252-.954-2.252-2.35s.912-2.35 2.252-2.35 2.252.954 2.252 2.35-.912 2.35-2.252 2.35" class="_ru"></path><path fill="var(--btn-color, #fff)" d="M35.02 17.36h-2.484L29 7.422h1.832l2.826 8.188h.284l2.925-8.188h1.803zM43.43 12.215l4.6 5.144h-2.243l-3.749-4.256h-.426v4.256h-1.704V7.423h1.704v4.045h.412l3.55-4.045h2.101zM56.808 17.36h-2.485l-3.536-9.937h1.832l2.826 8.188h.284l2.925-8.188h1.803zM63.257 17.36h-1.633v-7.33h1.633zm-.809-8.373q-.455 0-.738-.268a.97.97 0 0 1-.284-.718.97.97 0 0 1 .284-.72q.297-.28.738-.281.44 0 .724.282a.97.97 0 0 1 .284.719.97.97 0 0 1-.284.718q-.284.268-.724.268M68.382 17.5q-1.037 0-1.86-.48a3.5 3.5 0 0 1-1.293-1.352q-.454-.874-.454-1.973t.454-1.96a3.37 3.37 0 0 1 1.293-1.352 3.55 3.55 0 0 1 1.86-.494q.894 0 1.59.367.696.352 1.136.888V7.423h1.633v9.936h-1.22l-.342-1.184a4 4 0 0 1-1.164.944q-.71.381-1.633.381m.397-1.452q1.038 0 1.676-.648.654-.663.653-1.705 0-1.044-.653-1.692-.639-.662-1.675-.662-1.023 0-1.662.662-.639.649-.639 1.692t.64 1.705q.638.648 1.66.648M81.929 13.61q0 .211-.029.522h-5.935q.113.86.71 1.38.597.508 1.52.508.624 0 1.121-.24.51-.24.781-.648l1.534.254a3 3 0 0 1-1.378 1.564q-.965.55-2.158.55-1.108 0-1.988-.48a3.6 3.6 0 0 1-1.363-1.352q-.483-.874-.483-1.973t.483-1.96a3.5 3.5 0 0 1 1.363-1.352q.88-.495 1.988-.494 1.107 0 1.974.494.88.478 1.363 1.339.497.845.497 1.888M78.095 11.3q-.738 0-1.292.423-.54.422-.739 1.141h4.09a2.17 2.17 0 0 0-.767-1.127q-.54-.437-1.292-.437M86.751 17.5q-1.136 0-2.044-.48a3.66 3.66 0 0 1-1.406-1.352q-.497-.874-.497-1.973t.497-1.96q.511-.873 1.406-1.352.909-.495 2.044-.494 1.137 0 2.031.494a3.4 3.4 0 0 1 1.406 1.353q.51.86.511 1.959 0 1.098-.511 1.973a3.53 3.53 0 0 1-1.406 1.353q-.894.48-2.03.479m0-1.48q.995 0 1.62-.634.624-.648.624-1.691t-.625-1.678q-.624-.648-1.619-.648-.993 0-1.618.648-.625.634-.625 1.678 0 1.043.625 1.69.625.636 1.618.635" class="_en"></path><path fill="var(--btn-color, #fff)" fill-rule="evenodd" d="M7 8.6c0-1.96 0-2.94.381-3.689a3.5 3.5 0 0 1 1.53-1.53C9.66 3 10.64 3 12.6 3h1.36c2.464 0 3.696 0 4.638.48a4.4 4.4 0 0 1 1.922 1.922c.48.942.48 2.174.48 4.638v3.92c0 2.464 0 3.696-.48 4.638a4.4 4.4 0 0 1-1.922 1.922c-.942.48-2.174.48-4.638.48H12.6c-1.96 0-2.94 0-3.689-.381a3.5 3.5 0 0 1-1.53-1.53C7 18.34 7 17.36 7 15.4zm9.265 1.744c.901.539 1.352.808 1.505 1.157.133.304.133.65 0 .954-.153.349-.604.618-1.505 1.157l-2.386 1.425c-.943.563-1.414.844-1.802.807a1.2 1.2 0 0 1-.847-.48C11 15.05 11 14.5 11 13.403v-2.85c0-1.098 0-1.647.23-1.96.201-.274.51-.45.847-.481.388-.037.86.244 1.802.807zM5 9.04c0-2.464 0-3.696.48-4.638a4.4 4.4 0 0 1 .955-1.253 3.7 3.7 0 0 0-1.033.33A4.4 4.4 0 0 0 3.48 5.403C3 6.344 3 7.576 3 10.04v3.92c0 2.464 0 3.696.48 4.638a4.4 4.4 0 0 0 1.922 1.922c.304.155.637.26 1.033.33a4.4 4.4 0 0 1-.955-1.252C5 18.656 5 17.424 5 14.96z" clip-rule="evenodd"></path></svg>');function Mf(t,e){let i=Me(e,["$$slots","$$events","$$legacy","children"]);var o=r2();Ie(o,()=>({xmlns:"http://www.w3.org/2000/svg",width:"95",height:"24",fill:"none","aria-hidden":"true",viewBox:"0 0 95 24",role:"img",...i}));var n=_(o);be(n,()=>{var r;return(r=e.children)!=null?r:oe}),Ce(4),g(o),b(t,o)}var s2={hash:"svelte-1nhjml",code:`svg[data-testid="vk-video-logo-icon--short"] ._ru,
172
+ .slider-dragging.svelte-1tpemng .handle:where(.svelte-1tpemng) {visibility:visible;opacity:1;transform:scale(1);}.slider-dragging.svelte-1tpemng .handle:where(.svelte-1tpemng) {transform:scale(1.3);}.slider-vertical.svelte-1tpemng {position:absolute;left:-8px;top:-18px;transform-origin:0 0;transform:rotate(-90deg);}.slider.disabled.svelte-1tpemng {cursor:default;opacity:0.4;}`};function va(t,e){F(e,!0),K(t,j$);let i=m(e,"ref",15,void 0),o=m(e,"className",3,""),n=m(e,"testId",3,void 0),s=m(e,"isHidden",3,!1),l=m(e,"isVertical",3,!1),d=m(e,"isActiveLive",3,!1),a=m(e,"isMobile",3,!1),p=m(e,"squareBorders",3,!1),f=m(e,"videoEpisodes",19,()=>[]),v=m(e,"withWheelHandler",3,!1),u=m(e,"isInteractive",3,!1),y=m(e,"disabled",3,!1),w=m(e,"hideHandel",3,!1),b=m(e,"onPointerDown",3,Pn),S=m(e,"onHandleMove",3,Pn),T=m(e,"onPointerUp",3,Pn),E=m(e,"onPointerEnter",3,Pn),M=m(e,"onPointerMove",3,Pn),I=m(e,"onPointerLeave",3,Pn),k=m(e,"onMouseEnter",3,Pn),R=m(e,"onMouseLeave",3,Pn),Y=m(e,"onWheelUp",3,Pn),D=m(e,"onWheelDown",3,Pn),H=m(e,"onWheelLeft",3,Pn),q=m(e,"onWheelRight",3,Pn),J=m(e,"onDisabledClick",3,Pn),W=m(e,"loadedProgress",3,0),de=m(e,"filledProgress",3,0),ie=m(e,"handleProgress",3,0),ve=m(e,"ariaLabel",3,""),Ie=m(e,"ariaValueMin",3,void 0),fe=m(e,"ariaValueMax",3,void 0),re=m(e,"ariaValueNow",3,void 0),ke=m(e,"ariaValueText",3,""),te=m(e,"onContextMenu",3,Pn),N=Ft(),Oe=j(void 0),ye=j(!1),he=g(()=>{var le;return(le=fe())!=null?le:0}),ce=g(()=>{var le;return e1(f())&&((le=f()[f().length-1])==null?void 0:le.time)<r(he)}),ue=g(()=>e1(f())&&f().length&&r(ce)&&r(he)?qe(W()*100,de()*100):[]);function we(le){if(le.preventDefault(),i()&&B(Oe,i().getBoundingClientRect(),!0),y())return;let De=ee(le.clientX,le.clientY),ze=Ce(le.clientX);E()(De,ze,r(Oe).width)}function Z(le){le.preventDefault(),!y()&&I()()}function Ke(){k()()}function Xe(){R()()}function Ae(le){y()||v()&&(le.preventDefault(),le.deltaY<0?Y()():le.deltaY>0?D()():le.deltaX>0?q()():H()())}function ee(le,De){return l()?Math.max(0,Math.min(1,(r(Oe).height-(De-r(Oe).top))/r(Oe).height)):Math.min(Math.max(le-r(Oe).x,0),r(Oe).width)/r(Oe).width}function Ce(le){return Math.min(Math.max(le-r(Oe).x,0),r(Oe).width)}function qe(le,De){let ze=N.features.episodesClustering&&!u()?N.episodeMinWidthPc:0,Le=[],Ye=f()[0].time/r(he)*100,Re=0,tt=0;for(let Je=1;Je<f().length;Je++)Re=f()[Je].time/r(he)*100,Re-Ye>ze&&(Le.push({from:Ye,width:Math.max(0,Re-Ye),loadedWidth:Math.max(0,Math.min(Re,le)-Ye),filledWidth:Math.max(0,Math.min(Re,De)-Ye),interactive:f()[Je-1].interactive,completed:f()[Je-1].completed}),Ye=f()[Je].time/r(he)*100,tt++);let Pt={from:Ye,width:Math.max(0,100-Ye),loadedWidth:Math.max(0,Math.min(le,100)-Ye),filledWidth:Math.max(0,Math.min(De,100)-Ye),interactive:f()[tt].interactive,completed:f()[tt].completed};100-Ye<ze?(tt-=1,Le[tt].width+=100-Ye,Le[tt].loadedWidth+=Math.max(0,Math.min(le,100)-Ye),Le[tt].filledWidth+=Math.max(0,Math.min(De,100)-Ye)):Le[tt]=Pt;let Mt=f()[0].time;if(Mt!==0){let Je=Mt/r(he)*100;Le.unshift({from:0,width:Je,loadedWidth:Math.min(Je,le),filledWidth:Math.min(Je,De)})}return Le}function st(le){return Math.max(0,Math.min(100,le*100))}var ct=Y$(),bt=me(ct);{var St=le=>{var De=G$();let ze;$i(De,21,()=>r(ue),Le=>Le.from,(Le,Ye)=>{var Re=Ue(),tt=me(Re);{var Pt=Mt=>{Ef(Mt,{get videoEpisode(){return r(Ye)},get disabled(){return y()}})};L(tt,Mt=>{r(Ye).interactive&&Mt(Pt)})}$(Le,Re)}),h(De),O(Le=>ze=X(De,1,"interactive-icons svelte-1tpemng",null,ze,Le),[()=>({mobile:a(),hidden:a()&&!r(ye)})]),$(le,De)};L(bt,le=>{u()&&le(St)})}var Ge=P(bt,2);let Wt;Ge.__pointerdown=[U$,i,Oe,y,ye,ee,b],Ge.__pointermove=[z$,y,ee,Ce,M,Oe,ye,S],Ge.__pointerup=[W$,y,ye,ee,T],Ge.__click=[K$,y,J,ee],Ge.__contextmenu=[q$,ee,y,J,ye,te];var Qt=_(Ge);{var qt=le=>{If(le,{get videoEpisodes(){return r(ue)},get disabled(){return y()},get isMobile(){return a()}})},Nt=le=>{var De=Q$(),ze=_(De),Le=P(ze,2);let Ye;h(De),O((Re,tt,Pt)=>{nt(ze,Re),Ye=X(Le,1,"filled svelte-1tpemng",null,Ye,tt),nt(Le,Pt)},[()=>`transform: translateX(${st(W())}%);`,()=>({"active-live":d()}),()=>`transform: translateX(${st(de())}%);`]),$(le,De)};L(Qt,le=>{r(ue).length?le(qt):le(Nt,!1)})}var oe=P(Qt,2);let At;var ge=_(oe);let be;h(oe),h(Ge),ot(Ge,le=>i(le),()=>i()),O((le,De,ze,Le)=>{var Ye,Re;Wt=X(Ge,1,`slider ${(Ye=o())!=null?Ye:""}`,"svelte-1tpemng",Wt,le),Be(Ge,"aria-label",ve()),Be(Ge,"aria-valuemin",Ie()),Be(Ge,"aria-valuemax",fe()),Be(Ge,"aria-valuenow",re()),Be(Ge,"aria-valuetext",ke()),Be(Ge,"data-testid",(Re=n())!=null?Re:null),At=X(oe,1,"handleWrap svelte-1tpemng",null,At,De),nt(oe,ze),be=X(ge,1,"handle svelte-1tpemng",null,be,Le)},[()=>({disabled:y(),"slider-dragging":r(ye),hidden:s(),"slider-vertical":l(),"no-handle":w(),square:p()}),()=>({hidden:w()}),()=>`transform: translateX(${st(ie())}%);`,()=>({"active-live":d()})]),Tt("pointerenter",Ge,we),Tt("pointerleave",Ge,Z),Tt("mouseenter",Ge,Ke),Tt("mouseleave",Ge,Xe),Tt("wheel",Ge,Ae),$(t,ct),U()}lt(["pointerdown","pointermove","pointerup","click","contextmenu"]);var Gi=(t,e)=>na[t]>=na[e],t1=(t,e)=>na[t]<na[e],Os=(t,e)=>na[t]<=na[e],i1=t=>t>699?"xl":t>599?"l":t>509?"m":t>320?"s":"xs";var X$=A("<div><!></div>"),J$=A("<div><!> <!></div>"),e2={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 kf(t,e){var Ae,ee;F(e,!0),K(t,e2);let[i,o]=He(),n=()=>C(E,"$isAudioAvailable$",i),s=()=>C(v,"$muted$",i),l=()=>C(f,"$volume$",i),d=()=>C(b,"$currentGridType$",i),a=Ee(),p=Ft(),f=a.state.volume$,v=a.state.muted$,{setVolume:u,startVolumeChanging:y,stopVolumeChanging:w}=a.actions.internal,b=a.ui.currentGridType$,S=(Ae=a.callbacks)==null?void 0:Ae.onAudioDoesNotExistHint,T=(ee=a.callbacks)==null?void 0:ee.onAudioDisabledHint,E=a.state.isAudioAvailable$,M=a.state.isAudioDisabled,I=a.ui.t,k=j(!1),R,Y=g(()=>e.isAds||n()),D=g(()=>!r(Y)||s()||l()===0),H=g(()=>Os(d(),"s")),q=g(()=>r(H)?"":r(D)?!n()||M?I("tooltip_sound_unavailable"):I("tooltip_volume"):I("tooltip_volume_muted")),J=g(()=>r(D)?I("tooltip_volume"):I("tooltip_volume_muted")),W=g(()=>r(D)?0:l()),de=!1,ie=g(()=>e.isAds?!1:M?!T:n()?!1:!S);function ve(Ce){y(),u(Ce)}function Ie(){Jc(a,l(),p.controls.volumeStepWheel)}function fe(){eu(a,l(),p.controls.volumeStepWheel)}function re(Ce){u(Ce)}function ke(Ce){u(Ce),w()}function te(){de=!0}function N(){de=!1,he()}function Oe(){clearTimeout(R),B(k,!0)}function ye(){he()}function he(){R=window.setTimeout(()=>{de||B(k,!1)},p.controls.volumeBarTimeout)}function ce(Ce){Ce.preventDefault(),Ce.deltaY<0?Ie():Ce.deltaY>0&&fe()}var ue=J$();let we;var Z=_(ue);ma(Z,{get content(){return r(q)},translateY:-18,children:(Ce,qe)=>{let st=g(()=>r(H)?"btn-volume-vertical":"btn-volume-horizontal");Vt(Ce,{className:"btn-full-opacity",get disabled(){return r(ie)},get testId(){return r(st)},get ariaLabel(){return r(J)},get click(){return e.click},get ariaKeyShortCut(){return es.KeyM},role:"button",children:(ct,bt)=>{Bs(ct,{get volume(){return l()},get muted(){return r(D)}})},$$slots:{default:!0}})},$$slots:{default:!0}});var Ke=P(Z,2);{var Xe=Ce=>{var qe=X$();let st;var ct=_(qe);let bt=g(()=>r(H)?"volumeBar-slider-vertical":""),St=g(()=>r(H)&&!r(k)),Ge=g(()=>r(H)?te:iu),Wt=g(()=>r(H)?N:iu),Qt=g(()=>Math.round(r(W)*100)),qt=g(()=>`${Math.round(r(W)*100)}%`),Nt=g(()=>r(H)?"volume-slider-vertical":"volume-slider");va(ct,{get className(){return r(bt)},get isHidden(){return r(St)},get isVertical(){return r(H)},withWheelHandler:!0,onWheelUp:Ie,onWheelDown:fe,onPointerDown:ve,onHandleMove:re,onPointerUp:ke,get onPointerEnter(){return r(Ge)},get onPointerLeave(){return r(Wt)},ariaLabel:"\u041F\u043E\u043B\u0437\u0443\u043D\u043E\u043A \u0433\u0440\u043E\u043C\u043A\u043E\u0441\u0442\u0438",ariaValueMin:0,ariaValueMax:100,get ariaValueNow(){return r(Qt)},get ariaValueText(){return r(qt)},get filledProgress(){return r(W)},get handleProgress(){return r(W)},get testId(){return r(Nt)}}),h(qe),O(oe=>st=X(qe,1,"volumeBar svelte-1auih1j",null,st,oe),[()=>({"volumeBar-vertical":r(H)})]),$(Ce,qe)};L(Ke,Ce=>{r(Y)&&Ce(Xe)})}h(ue),O(Ce=>we=X(ue,1,"volumeBar-container svelte-1auih1j",null,we,Ce),[()=>({vertical:r(H)})]),Tt("mouseenter",ue,function(...Ce){var qe;(qe=r(H)?Oe:iu)==null||qe.apply(this,Ce)}),Tt("mouseleave",ue,function(...Ce){var qe;(qe=r(H)?ye:iu)==null||qe.apply(this,Ce)}),Tt("wheel",ue,ce),$(t,ue),U(),o()}import{noop as o2}from"@vkontakte/videoplayer-shared/es2018";var t2=Te('<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 Pf(t,e){let i=Ve(e,["$$slots","$$events","$$legacy","children"]);var o=t2();Pe(o,()=>({xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"var(--btn-color, #fff)","aria-hidden":"true",viewBox:"0 0 24 24",role:"img",...i}));var n=_(o);xe(n,()=>{var s;return(s=e.children)!=null?s:se}),Se(),h(o),$(t,o)}var i2={hash:"svelte-17t966y",code:`svg[data-testid="close-fullscreen-icon"] ._enter,
173
+ svg[data-testid="open-fullscreen-icon"] ._exit {visibility:hidden;opacity:0;}`};function Af(t,e){K(t,i2);let i=m(e,"isFullscreen",8,!1),o=Mr(()=>i()?"close-fullscreen-icon":"open-fullscreen-icon");Pf(t,{get"data-testid"(){return r(o)},fill:"var(--btn-color, #fff)"})}function hd(t,e){F(e,!0);let i=m(e,"isFullscreen",3,!1),o=m(e,"click",3,o2),n=Ee(),s=n.ui.isFullscreenOpenedByKeyboard,l=n.ui.t,d=g(()=>i()?l("tooltip_fullscreen_on"):l("tooltip_fullscreen_off"));Vt(t,{testId:"btn-fullscreen",get ariaLabel(){return r(d)},click:p=>{let f=Rs(p);s.set(f),o()()},get ariaKeyShortCut(){return es.KeyF},role:"button",children:(p,f)=>{Af(p,{get isFullscreen(){return i()}})},$$slots:{default:!0}}),U()}var n2=Te('<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 Mf(t,e){let i=Ve(e,["$$slots","$$events","$$legacy","children"]);var o=n2();Pe(o,()=>({xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none","aria-hidden":"true","data-testid":"vk-logo-icon",role:"img",...i}));var n=_(o);xe(n,()=>{var s;return(s=e.children)!=null?s:se}),Se(),h(o),$(t,o)}var r2=Te('<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 Lf(t,e){let i=Ve(e,["$$slots","$$events","$$legacy","children"]);var o=r2();Pe(o,()=>({xmlns:"http://www.w3.org/2000/svg",width:"95",height:"24",fill:"none","aria-hidden":"true",viewBox:"0 0 95 24",role:"img",...i}));var n=_(o);xe(n,()=>{var s;return(s=e.children)!=null?s:se}),Se(4),h(o),$(t,o)}var s2={hash:"svelte-1nhjml",code:`svg[data-testid="vk-video-logo-icon--short"] ._ru,
174
174
  svg[data-testid="vk-video-logo-icon--short"] ._en,
175
175
  svg[data-testid="vk-video-logo-icon"] ._en,
176
- svg[data-testid="vk-video-logo-icon--en"] ._ru {visibility:hidden;opacity:0;}`};function Lf(t,e){z(t,s2);let i=m(e,"short",3,!1),o=m(e,"isCyrillic",3,!0),n="vk-video-logo-icon--short",r=21,l=h(()=>!o()&&!i()?91:i()?r:95),d=h(()=>!o()&&!i()?"vk-video-logo-icon--en":i()?n:"vk-video-logo-icon"),a=h(()=>`0 0 ${s(l)+1} 24`);Mf(t,{get width(){return s(l)},height:"24",get viewBox(){return s(a)},get"data-testid"(){return s(d)}})}function vd(t,e){D(e,!0);let[i,o]=De(),n=()=>C($,"$isMobile",i),r=()=>C(u,"$currentGridType$",i),l=()=>C(y,"$isCyrillicRelatedInterface$",i),d=m(e,"ref",15,void 0),a=m(e,"logoClickable",3,!1),p=m(e,"targetUrl",3,""),f=Ft(),v=Ee(),u=v.ui.currentGridType$,$=v.ui.isMobile,w=v.ui.t,y=v.isCyrillicRelatedInterface$,S=h(()=>f.logoType==="vk_video"?w("tooltip_vk_video_logo"):w("tooltip_vk_logo")),T=h(()=>f.logoType==="vk_video"||f.logoType==="vk_video_mobile"),k=h(()=>(n()||Ns(r(),"l"))&&s(T)),A=()=>{var V,K;e.click(),(V=v.callbacks)!=null&&V.onLogoClicked?(K=v.callbacks)==null||K.onLogoClicked():p()&&window.open(p(),"_blank")},I=h(()=>!a()),E=h(()=>s(T)?"btn-vk-video-logo":"btn-vk-logo");Vt(t,{className:"btn-full-opacity",get disabled(){return s(I)},click:A,get testId(){return s(E)},get ariaLabel(){return s(S)},get ref(){return d()},set ref(V){d(V)},children:(V,K)=>{var W=Ue(),U=fe(W);{var Y=G=>{Lf(G,{get short(){return s(k)},get isCyrillic(){return l()}})},ne=G=>{Af(G,{})};L(U,G=>{s(T)?G(Y):G(ne,!1)})}b(V,W)},$$slots:{default:!0}}),H(),o()}import{ChromecastState as u2}from"@vkontakte/videoplayer-core/es2018";import{ChromecastState as o1}from"@vkontakte/videoplayer-core/es2018";var l2=Se('<svg width="24" height="24" fill="none" xmlns="http://www.w3.org/2000/svg" aria-hidden="true" data-testid="chromecast-mobile-icon" class="svelte-8z1bf5"><g filter="url(#b)" clip-path="url(#a)" class="svelte-8z1bf5"><mask id="c" maskUnits="userSpaceOnUse" x="1.1" y="3.1" width="22" height="18" fill="#000" class="svelte-8z1bf5"><path d="M1.1 3.1h22v18h-22z" class="svelte-8z1bf5"></path><path fill-rule="evenodd" clip-rule="evenodd" d="M16.2 5.9c.855 0 1.442 0 1.897.038.445.036.683.103.856.19a2.1 2.1 0 0 1 .918.919c.088.172.155.411.191.856.037.455.038 1.042.038 1.897v4.4c0 .855 0 1.442-.038 1.897-.036.445-.103.683-.19.856a2.1 2.1 0 0 1-.919.918c-.172.088-.411.155-.856.191-.455.037-1.042.038-1.897.038H15a.9.9 0 0 0 0 1.8h1.238c.808 0 1.469 0 2.006-.044.556-.045 1.058-.142 1.527-.381a3.9 3.9 0 0 0 1.704-1.704c.239-.47.336-.971.381-1.527.044-.537.044-1.198.044-2.006V9.762c0-.808 0-1.469-.044-2.006-.045-.556-.142-1.058-.381-1.527a3.9 3.9 0 0 0-1.704-1.704c-.47-.239-.971-.336-1.527-.381-.537-.044-1.198-.044-2.006-.044H6a3.901 3.901 0 0 0-3.678 2.6.9.9 0 0 0 1.697.6A2.101 2.101 0 0 1 6 5.9h10.2ZM3.069 11.52a6.9 6.9 0 0 1 7.413 7.413.9.9 0 0 0 1.795.137 8.7 8.7 0 0 0-9.344-9.344.9.9 0 0 0 .136 1.794Zm.533 3.58c-.161 0-.32.011-.474.034a.9.9 0 1 1-.256-1.782A5.1 5.1 0 0 1 8.65 19.13a.9.9 0 1 1-1.782-.256A3.3 3.3 0 0 0 3.602 15.1Zm-1.5 3.3a1.5 1.5 0 1 1 3 0 1.5 1.5 0 0 1-3 0Z" class="svelte-8z1bf5"></path></mask><path fill-rule="evenodd" clip-rule="evenodd" d="M16.2 5.9c.855 0 1.442 0 1.897.038.445.036.683.103.856.19a2.1 2.1 0 0 1 .918.919c.088.172.155.411.191.856.037.455.038 1.042.038 1.897v4.4c0 .855 0 1.442-.038 1.897-.036.445-.103.683-.19.856a2.1 2.1 0 0 1-.919.918c-.172.088-.411.155-.856.191-.455.037-1.042.038-1.897.038H15a.9.9 0 0 0 0 1.8h1.238c.808 0 1.469 0 2.006-.044.556-.045 1.058-.142 1.527-.381a3.9 3.9 0 0 0 1.704-1.704c.239-.47.336-.971.381-1.527.044-.537.044-1.198.044-2.006V9.762c0-.808 0-1.469-.044-2.006-.045-.556-.142-1.058-.381-1.527a3.9 3.9 0 0 0-1.704-1.704c-.47-.239-.971-.336-1.527-.381-.537-.044-1.198-.044-2.006-.044H6a3.901 3.901 0 0 0-3.678 2.6.9.9 0 0 0 1.697.6A2.101 2.101 0 0 1 6 5.9h10.2ZM3.069 11.52a6.9 6.9 0 0 1 7.413 7.413.9.9 0 0 0 1.795.137 8.7 8.7 0 0 0-9.344-9.344.9.9 0 0 0 .136 1.794Zm.533 3.58c-.161 0-.32.011-.474.034a.9.9 0 1 1-.256-1.782A5.1 5.1 0 0 1 8.65 19.13a.9.9 0 1 1-1.782-.256A3.3 3.3 0 0 0 3.602 15.1Zm-1.5 3.3a1.5 1.5 0 1 1 3 0 1.5 1.5 0 0 1-3 0Z" class="svelte-8z1bf5"></path><path d="m18.097 5.938-.04.498.04-.498Zm.856.19-.227.446.227-.445Zm.918.919-.445.227.445-.227Zm.191.856-.498.04.498-.04Zm0 8.194-.498-.04.498.04Zm-.19.856-.446-.227.445.227Zm-.919.918-.227-.445.227.445Zm-.856.191.04.498-.04-.498Zm-1.86 1.838v-.5.5Zm2.007-.044.04.498-.04-.498Zm1.527-.381-.227-.446.227.446Zm1.704-1.704.445.227-.445-.227Zm.381-1.527.498.04-.498-.04Zm.044-2.006h-.5.5Zm0-4.476h-.5.5Zm-.044-2.006.498-.04-.498.04Zm-.381-1.527.445-.227-.445.227ZM19.77 4.525l-.227.446.227-.446Zm-1.527-.381.04-.498-.04.498ZM16.238 4.1v.5-.5ZM6 4.1v-.5.5ZM2.322 6.7l-.471-.167.471.167Zm1.697.6-.471-.167.471.167ZM6 5.9v-.5.5Zm-2.931 5.62-.038-.498.038.498Zm7.413 7.413.498.038-.498-.038Zm1.795.137.498.038-.498-.038ZM2.931 9.725l-.038-.498.038.498Zm-.829.966.499-.038-.499.038Zm1.025 4.443-.071-.495.071.495Zm-1.019-.763.495-.071-.495.07Zm.763-1.02.071.496-.07-.495ZM8.65 19.13l.495.072-.495-.072Zm-1.019.764-.07.494.07-.494Zm-.763-1.02.495.072-.495-.071ZM18.138 5.44c-.48-.04-1.091-.04-1.938-.04v1c.863 0 1.426.001 1.856.036l.082-.996Zm1.042.243c-.255-.13-.567-.205-1.042-.243l-.082.996c.414.034.58.092.67.138l.454-.89Zm1.137 1.137a2.6 2.6 0 0 0-1.137-1.137l-.454.891a1.6 1.6 0 0 1 .7.7l.89-.454Zm.244 1.042c-.04-.475-.114-.787-.244-1.042l-.891.454c.046.09.104.256.138.67l.997-.082ZM20.6 9.8c0-.846 0-1.458-.04-1.938l-.996.082c.035.43.036.993.036 1.856h1Zm0 4.4V9.8h-1v4.4h1Zm-.04 1.938c.04-.48.04-1.092.04-1.938h-1c0 .863-.001 1.426-.036 1.856l.997.082Zm-.243 1.042c.13-.255.205-.567.244-1.042l-.997-.082c-.034.414-.092.58-.138.67l.89.454Zm-1.137 1.137a2.6 2.6 0 0 0 1.137-1.137l-.891-.454a1.6 1.6 0 0 1-.7.7l.454.89Zm-1.042.244c.475-.04.787-.114 1.042-.244l-.454-.891c-.09.046-.256.104-.67.138l.082.997ZM16.2 18.6c.847 0 1.458 0 1.938-.04l-.082-.996c-.43.035-.993.036-1.856.036v1Zm-1.2 0h1.2v-1H15v1Zm-.4.4c0-.22.18-.4.4-.4v-1a1.4 1.4 0 0 0-1.4 1.4h1Zm.4.4a.4.4 0 0 1-.4-.4h-1a1.4 1.4 0 0 0 1.4 1.4v-1Zm1.238 0H15v1h1.238v-1Zm1.965-.042c-.512.042-1.15.042-1.965.042v1c.8 0 1.484 0 2.046-.045l-.081-.997Zm1.34-.329c-.386.198-.815.286-1.34.329l.081.997c.587-.049 1.163-.154 1.714-.435l-.454-.89Zm1.486-1.485a3.4 3.4 0 0 1-1.485 1.485l.454.891a4.4 4.4 0 0 0 1.922-1.922l-.89-.454Zm.329-1.341c-.043.525-.131.954-.329 1.34l.891.455c.281-.552.386-1.127.434-1.714l-.996-.081Zm.042-1.965c0 .815 0 1.453-.042 1.965l.997.081c.045-.561.045-1.246.045-2.046h-1Zm0 0h1-1Zm0-4.476v4.476h1V9.762h-1Zm0 0h1-1Zm-.042-1.965c.042.512.042 1.15.042 1.965h1c0-.8 0-1.484-.045-2.046l-.997.081Zm-.329-1.34c.198.386.286.815.329 1.34l.997-.081c-.049-.587-.154-1.162-.435-1.714l-.89.454ZM19.544 4.97a3.4 3.4 0 0 1 1.485 1.485l.891-.454a4.4 4.4 0 0 0-1.922-1.922l-.454.89Zm-1.341-.329c.525.043.954.132 1.34.329l.455-.891c-.552-.281-1.127-.387-1.714-.434l-.081.996ZM16.238 4.6c.815 0 1.453 0 1.965.042l.081-.996c-.562-.046-1.246-.046-2.046-.046v1Zm0 0v-1 1ZM6 4.6h10.238v-1H6v1Zm0-1v1-1Zm0 0a4.401 4.401 0 0 0-4.15 2.933l.944.334A3.401 3.401 0 0 1 6 4.6v-1ZM1.85 6.533a1.4 1.4 0 0 0 .854 1.787l.333-.943a.4.4 0 0 1-.243-.51l-.943-.334Zm.854 1.787a1.4 1.4 0 0 0 1.787-.853l-.943-.334a.4.4 0 0 1-.51.244l-.334.943Zm1.787-.853A1.601 1.601 0 0 1 6 6.4v-1c-1.131 0-2.095.722-2.452 1.733l.943.334ZM16.2 5.4H6v1h10.2v-1ZM3.602 11c-.192 0-.383.007-.571.022l.076.997A6.53 6.53 0 0 1 3.602 12v-1Zm7.4 7.4a7.4 7.4 0 0 0-7.4-7.4v1a6.4 6.4 0 0 1 6.4 6.4h1Zm-.022.571c.015-.188.022-.379.022-.571h-1c0 .167-.006.332-.019.495l.997.076Zm.369.43a.4.4 0 0 1-.369-.43l-.997-.076a1.4 1.4 0 0 0 1.29 1.502l.076-.997Zm.429-.37a.4.4 0 0 1-.43.37l-.075.996a1.4 1.4 0 0 0 1.502-1.29l-.997-.075Zm.024-.631c0 .213-.008.423-.024.632l.997.076c.018-.234.027-.47.027-.708h-1Zm-8.2-8.2a8.2 8.2 0 0 1 8.2 8.2h1a9.2 9.2 0 0 0-9.2-9.2v1Zm-.632.024c.209-.016.42-.024.632-.024v-1c-.238 0-.474.01-.708.027l.076.997Zm-.368.43a.4.4 0 0 1 .368-.43l-.076-.997a1.4 1.4 0 0 0-1.29 1.502l.998-.076Zm.429.368a.4.4 0 0 1-.43-.369l-.996.076a1.4 1.4 0 0 0 1.502 1.29l-.076-.997Zm.168 4.607c.13-.02.265-.029.403-.029v-1c-.185 0-.367.013-.545.039l.142.99Zm-1.585-1.187A1.4 1.4 0 0 0 3.2 15.629l-.142-.99a.4.4 0 0 1-.453-.34l-.99.143Zm1.187-1.585a1.4 1.4 0 0 0-1.187 1.585l.99-.142a.4.4 0 0 1 .34-.453l-.143-.99Zm.801-.057c-.271 0-.538.02-.8.057l.141.99c.216-.031.436-.047.659-.047v-1Zm5.6 5.6a5.6 5.6 0 0 0-5.6-5.6v1a4.6 4.6 0 0 1 4.6 4.6h1Zm-.057.8c.038-.262.057-.529.057-.8h-1c0 .223-.016.443-.047.659l.99.142ZM7.56 20.389A1.4 1.4 0 0 0 9.145 19.2l-.99-.142a.4.4 0 0 1-.453.34l-.142.99Zm-1.187-1.585a1.4 1.4 0 0 0 1.187 1.584l.142-.99a.4.4 0 0 1-.339-.452l-.99-.142Zm.029-.403c0 .138-.01.272-.029.403l.99.142c.026-.178.039-.36.039-.545h-1Zm-2.8-2.8a2.8 2.8 0 0 1 2.8 2.8h1a3.8 3.8 0 0 0-3.8-3.8v1Zm0 .8a2 2 0 0 0-2 2h1a1 1 0 0 1 1-1v-1Zm2 2a2 2 0 0 0-2-2v1a1 1 0 0 1 1 1h1Zm-2 2a2 2 0 0 0 2-2h-1a1 1 0 0 1-1 1v1Zm-2-2a2 2 0 0 0 2 2v-1a1 1 0 0 1-1-1h-1Z" fill="#000" fill-opacity=".12" mask="url(#c)" class="svelte-8z1bf5"></path></g><defs class="svelte-8z1bf5"><clipPath id="a" class="svelte-8z1bf5"><path d="M0 0h24v24H0z" class="svelte-8z1bf5"></path></clipPath><filter id="b" x="-3.4" y="-1.4" width="30.8" height="26.802" filterUnits="userSpaceOnUse" color-interpolation-filters="sRGB" class="svelte-8z1bf5"><feFlood flood-opacity="0" result="BackgroundImageFix" class="svelte-8z1bf5"></feFlood><feColorMatrix in="SourceAlpha" values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0" result="hardAlpha" class="svelte-8z1bf5"></feColorMatrix><feOffset class="svelte-8z1bf5"></feOffset><feGaussianBlur stdDeviation="2.5" class="svelte-8z1bf5"></feGaussianBlur><feColorMatrix values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.16 0" class="svelte-8z1bf5"></feColorMatrix><feBlend in2="BackgroundImageFix" result="effect1_dropShadow_4085_178456" class="svelte-8z1bf5"></feBlend><feBlend in="SourceGraphic" in2="effect1_dropShadow_4085_178456" result="shape" class="svelte-8z1bf5"></feBlend></filter></defs></svg>'),d2=Se('<svg width="24" height="24" xmlns="http://www.w3.org/2000/svg" aria-hidden="true" data-testid="chromecast-icon"><g fill="none" fill-rule="evenodd" class="svelte-8z1bf5"><path class="wave wave1 svelte-8z1bf5" d="M1 18v3h3c0-1.66-1.34-3-3-3z" fill="var(--btn-color, #fff)"></path><path class="wave wave2 svelte-8z1bf5" d="M1 14v2c2.76 0 5 2.24 5 5h2c0-3.87-3.13-7-7-7z" fill="var(--btn-color, #fff)"></path><path class="wave wave3 svelte-8z1bf5" d="M1 10v2a9 9 0 0 1 9 9h2c0-6.08-4.93-11-11-11z" fill="var(--btn-color, #fff)"></path><path d="M21 3H3c-1.1 0-2 .9-2 2v3h2V5h18v14h-7v2h7c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2z" fill="var(--btn-color, #fff)" class="svelte-8z1bf5"></path><path d="M0 0h24v24H0z" class="svelte-8z1bf5"></path><path d="M5.667 7.44H18.5v9.167h-5.161a11.947 11.947 0 0 0-7.673-7.672V7.44Z" fill="var(--btn-color, #fff)"></path></g></svg>'),c2={hash:"svelte-8z1bf5",code:`.connecting.svelte-8z1bf5 .wave:where(.svelte-8z1bf5) {animation-duration:1s;animation-iteration-count:infinite;}.connecting.svelte-8z1bf5 .wave1:where(.svelte-8z1bf5) {
176
+ svg[data-testid="vk-video-logo-icon--en"] ._ru {visibility:hidden;opacity:0;}`};function Vf(t,e){K(t,s2);let i=m(e,"short",3,!1),o=m(e,"isCyrillic",3,!0),n="vk-video-logo-icon--short",s=21,l=g(()=>!o()&&!i()?91:i()?s:95),d=g(()=>!o()&&!i()?"vk-video-logo-icon--en":i()?n:"vk-video-logo-icon"),a=g(()=>`0 0 ${r(l)+1} 24`);Lf(t,{get width(){return r(l)},height:"24",get viewBox(){return r(a)},get"data-testid"(){return r(d)}})}function _d(t,e){F(e,!0);let[i,o]=He(),n=()=>C(y,"$isMobile",i),s=()=>C(u,"$currentGridType$",i),l=()=>C(b,"$isCyrillicRelatedInterface$",i),d=m(e,"ref",15,void 0),a=m(e,"logoClickable",3,!1),p=m(e,"targetUrl",3,""),f=Ft(),v=Ee(),u=v.ui.currentGridType$,y=v.ui.isMobile,w=v.ui.t,b=v.isCyrillicRelatedInterface$,S=g(()=>f.logoType==="vk_video"?w("tooltip_vk_video_logo"):w("tooltip_vk_logo")),T=g(()=>f.logoType==="vk_video"||f.logoType==="vk_video_mobile"),E=g(()=>(n()||Os(s(),"l"))&&r(T)),M=()=>{var R,Y;e.click(),(R=v.callbacks)!=null&&R.onLogoClicked?(Y=v.callbacks)==null||Y.onLogoClicked():p()&&window.open(p(),"_blank")},I=g(()=>!a()),k=g(()=>r(T)?"btn-vk-video-logo":"btn-vk-logo");Vt(t,{className:"btn-full-opacity",get disabled(){return r(I)},click:M,get testId(){return r(k)},get ariaLabel(){return r(S)},get ref(){return d()},set ref(R){d(R)},children:(R,Y)=>{var D=Ue(),H=me(D);{var q=W=>{Vf(W,{get short(){return r(E)},get isCyrillic(){return l()}})},J=W=>{Mf(W,{})};L(H,W=>{r(T)?W(q):W(J,!1)})}$(R,D)},$$slots:{default:!0}}),U(),o()}import{ChromecastState as u2}from"@vkontakte/videoplayer-core/es2018";import{ChromecastState as o1}from"@vkontakte/videoplayer-core/es2018";var l2=Te('<svg width="24" height="24" fill="none" xmlns="http://www.w3.org/2000/svg" aria-hidden="true" data-testid="chromecast-mobile-icon" class="svelte-8z1bf5"><g filter="url(#b)" clip-path="url(#a)" class="svelte-8z1bf5"><mask id="c" maskUnits="userSpaceOnUse" x="1.1" y="3.1" width="22" height="18" fill="#000" class="svelte-8z1bf5"><path d="M1.1 3.1h22v18h-22z" class="svelte-8z1bf5"></path><path fill-rule="evenodd" clip-rule="evenodd" d="M16.2 5.9c.855 0 1.442 0 1.897.038.445.036.683.103.856.19a2.1 2.1 0 0 1 .918.919c.088.172.155.411.191.856.037.455.038 1.042.038 1.897v4.4c0 .855 0 1.442-.038 1.897-.036.445-.103.683-.19.856a2.1 2.1 0 0 1-.919.918c-.172.088-.411.155-.856.191-.455.037-1.042.038-1.897.038H15a.9.9 0 0 0 0 1.8h1.238c.808 0 1.469 0 2.006-.044.556-.045 1.058-.142 1.527-.381a3.9 3.9 0 0 0 1.704-1.704c.239-.47.336-.971.381-1.527.044-.537.044-1.198.044-2.006V9.762c0-.808 0-1.469-.044-2.006-.045-.556-.142-1.058-.381-1.527a3.9 3.9 0 0 0-1.704-1.704c-.47-.239-.971-.336-1.527-.381-.537-.044-1.198-.044-2.006-.044H6a3.901 3.901 0 0 0-3.678 2.6.9.9 0 0 0 1.697.6A2.101 2.101 0 0 1 6 5.9h10.2ZM3.069 11.52a6.9 6.9 0 0 1 7.413 7.413.9.9 0 0 0 1.795.137 8.7 8.7 0 0 0-9.344-9.344.9.9 0 0 0 .136 1.794Zm.533 3.58c-.161 0-.32.011-.474.034a.9.9 0 1 1-.256-1.782A5.1 5.1 0 0 1 8.65 19.13a.9.9 0 1 1-1.782-.256A3.3 3.3 0 0 0 3.602 15.1Zm-1.5 3.3a1.5 1.5 0 1 1 3 0 1.5 1.5 0 0 1-3 0Z" class="svelte-8z1bf5"></path></mask><path fill-rule="evenodd" clip-rule="evenodd" d="M16.2 5.9c.855 0 1.442 0 1.897.038.445.036.683.103.856.19a2.1 2.1 0 0 1 .918.919c.088.172.155.411.191.856.037.455.038 1.042.038 1.897v4.4c0 .855 0 1.442-.038 1.897-.036.445-.103.683-.19.856a2.1 2.1 0 0 1-.919.918c-.172.088-.411.155-.856.191-.455.037-1.042.038-1.897.038H15a.9.9 0 0 0 0 1.8h1.238c.808 0 1.469 0 2.006-.044.556-.045 1.058-.142 1.527-.381a3.9 3.9 0 0 0 1.704-1.704c.239-.47.336-.971.381-1.527.044-.537.044-1.198.044-2.006V9.762c0-.808 0-1.469-.044-2.006-.045-.556-.142-1.058-.381-1.527a3.9 3.9 0 0 0-1.704-1.704c-.47-.239-.971-.336-1.527-.381-.537-.044-1.198-.044-2.006-.044H6a3.901 3.901 0 0 0-3.678 2.6.9.9 0 0 0 1.697.6A2.101 2.101 0 0 1 6 5.9h10.2ZM3.069 11.52a6.9 6.9 0 0 1 7.413 7.413.9.9 0 0 0 1.795.137 8.7 8.7 0 0 0-9.344-9.344.9.9 0 0 0 .136 1.794Zm.533 3.58c-.161 0-.32.011-.474.034a.9.9 0 1 1-.256-1.782A5.1 5.1 0 0 1 8.65 19.13a.9.9 0 1 1-1.782-.256A3.3 3.3 0 0 0 3.602 15.1Zm-1.5 3.3a1.5 1.5 0 1 1 3 0 1.5 1.5 0 0 1-3 0Z" class="svelte-8z1bf5"></path><path d="m18.097 5.938-.04.498.04-.498Zm.856.19-.227.446.227-.445Zm.918.919-.445.227.445-.227Zm.191.856-.498.04.498-.04Zm0 8.194-.498-.04.498.04Zm-.19.856-.446-.227.445.227Zm-.919.918-.227-.445.227.445Zm-.856.191.04.498-.04-.498Zm-1.86 1.838v-.5.5Zm2.007-.044.04.498-.04-.498Zm1.527-.381-.227-.446.227.446Zm1.704-1.704.445.227-.445-.227Zm.381-1.527.498.04-.498-.04Zm.044-2.006h-.5.5Zm0-4.476h-.5.5Zm-.044-2.006.498-.04-.498.04Zm-.381-1.527.445-.227-.445.227ZM19.77 4.525l-.227.446.227-.446Zm-1.527-.381.04-.498-.04.498ZM16.238 4.1v.5-.5ZM6 4.1v-.5.5ZM2.322 6.7l-.471-.167.471.167Zm1.697.6-.471-.167.471.167ZM6 5.9v-.5.5Zm-2.931 5.62-.038-.498.038.498Zm7.413 7.413.498.038-.498-.038Zm1.795.137.498.038-.498-.038ZM2.931 9.725l-.038-.498.038.498Zm-.829.966.499-.038-.499.038Zm1.025 4.443-.071-.495.071.495Zm-1.019-.763.495-.071-.495.07Zm.763-1.02.071.496-.07-.495ZM8.65 19.13l.495.072-.495-.072Zm-1.019.764-.07.494.07-.494Zm-.763-1.02.495.072-.495-.071ZM18.138 5.44c-.48-.04-1.091-.04-1.938-.04v1c.863 0 1.426.001 1.856.036l.082-.996Zm1.042.243c-.255-.13-.567-.205-1.042-.243l-.082.996c.414.034.58.092.67.138l.454-.89Zm1.137 1.137a2.6 2.6 0 0 0-1.137-1.137l-.454.891a1.6 1.6 0 0 1 .7.7l.89-.454Zm.244 1.042c-.04-.475-.114-.787-.244-1.042l-.891.454c.046.09.104.256.138.67l.997-.082ZM20.6 9.8c0-.846 0-1.458-.04-1.938l-.996.082c.035.43.036.993.036 1.856h1Zm0 4.4V9.8h-1v4.4h1Zm-.04 1.938c.04-.48.04-1.092.04-1.938h-1c0 .863-.001 1.426-.036 1.856l.997.082Zm-.243 1.042c.13-.255.205-.567.244-1.042l-.997-.082c-.034.414-.092.58-.138.67l.89.454Zm-1.137 1.137a2.6 2.6 0 0 0 1.137-1.137l-.891-.454a1.6 1.6 0 0 1-.7.7l.454.89Zm-1.042.244c.475-.04.787-.114 1.042-.244l-.454-.891c-.09.046-.256.104-.67.138l.082.997ZM16.2 18.6c.847 0 1.458 0 1.938-.04l-.082-.996c-.43.035-.993.036-1.856.036v1Zm-1.2 0h1.2v-1H15v1Zm-.4.4c0-.22.18-.4.4-.4v-1a1.4 1.4 0 0 0-1.4 1.4h1Zm.4.4a.4.4 0 0 1-.4-.4h-1a1.4 1.4 0 0 0 1.4 1.4v-1Zm1.238 0H15v1h1.238v-1Zm1.965-.042c-.512.042-1.15.042-1.965.042v1c.8 0 1.484 0 2.046-.045l-.081-.997Zm1.34-.329c-.386.198-.815.286-1.34.329l.081.997c.587-.049 1.163-.154 1.714-.435l-.454-.89Zm1.486-1.485a3.4 3.4 0 0 1-1.485 1.485l.454.891a4.4 4.4 0 0 0 1.922-1.922l-.89-.454Zm.329-1.341c-.043.525-.131.954-.329 1.34l.891.455c.281-.552.386-1.127.434-1.714l-.996-.081Zm.042-1.965c0 .815 0 1.453-.042 1.965l.997.081c.045-.561.045-1.246.045-2.046h-1Zm0 0h1-1Zm0-4.476v4.476h1V9.762h-1Zm0 0h1-1Zm-.042-1.965c.042.512.042 1.15.042 1.965h1c0-.8 0-1.484-.045-2.046l-.997.081Zm-.329-1.34c.198.386.286.815.329 1.34l.997-.081c-.049-.587-.154-1.162-.435-1.714l-.89.454ZM19.544 4.97a3.4 3.4 0 0 1 1.485 1.485l.891-.454a4.4 4.4 0 0 0-1.922-1.922l-.454.89Zm-1.341-.329c.525.043.954.132 1.34.329l.455-.891c-.552-.281-1.127-.387-1.714-.434l-.081.996ZM16.238 4.6c.815 0 1.453 0 1.965.042l.081-.996c-.562-.046-1.246-.046-2.046-.046v1Zm0 0v-1 1ZM6 4.6h10.238v-1H6v1Zm0-1v1-1Zm0 0a4.401 4.401 0 0 0-4.15 2.933l.944.334A3.401 3.401 0 0 1 6 4.6v-1ZM1.85 6.533a1.4 1.4 0 0 0 .854 1.787l.333-.943a.4.4 0 0 1-.243-.51l-.943-.334Zm.854 1.787a1.4 1.4 0 0 0 1.787-.853l-.943-.334a.4.4 0 0 1-.51.244l-.334.943Zm1.787-.853A1.601 1.601 0 0 1 6 6.4v-1c-1.131 0-2.095.722-2.452 1.733l.943.334ZM16.2 5.4H6v1h10.2v-1ZM3.602 11c-.192 0-.383.007-.571.022l.076.997A6.53 6.53 0 0 1 3.602 12v-1Zm7.4 7.4a7.4 7.4 0 0 0-7.4-7.4v1a6.4 6.4 0 0 1 6.4 6.4h1Zm-.022.571c.015-.188.022-.379.022-.571h-1c0 .167-.006.332-.019.495l.997.076Zm.369.43a.4.4 0 0 1-.369-.43l-.997-.076a1.4 1.4 0 0 0 1.29 1.502l.076-.997Zm.429-.37a.4.4 0 0 1-.43.37l-.075.996a1.4 1.4 0 0 0 1.502-1.29l-.997-.075Zm.024-.631c0 .213-.008.423-.024.632l.997.076c.018-.234.027-.47.027-.708h-1Zm-8.2-8.2a8.2 8.2 0 0 1 8.2 8.2h1a9.2 9.2 0 0 0-9.2-9.2v1Zm-.632.024c.209-.016.42-.024.632-.024v-1c-.238 0-.474.01-.708.027l.076.997Zm-.368.43a.4.4 0 0 1 .368-.43l-.076-.997a1.4 1.4 0 0 0-1.29 1.502l.998-.076Zm.429.368a.4.4 0 0 1-.43-.369l-.996.076a1.4 1.4 0 0 0 1.502 1.29l-.076-.997Zm.168 4.607c.13-.02.265-.029.403-.029v-1c-.185 0-.367.013-.545.039l.142.99Zm-1.585-1.187A1.4 1.4 0 0 0 3.2 15.629l-.142-.99a.4.4 0 0 1-.453-.34l-.99.143Zm1.187-1.585a1.4 1.4 0 0 0-1.187 1.585l.99-.142a.4.4 0 0 1 .34-.453l-.143-.99Zm.801-.057c-.271 0-.538.02-.8.057l.141.99c.216-.031.436-.047.659-.047v-1Zm5.6 5.6a5.6 5.6 0 0 0-5.6-5.6v1a4.6 4.6 0 0 1 4.6 4.6h1Zm-.057.8c.038-.262.057-.529.057-.8h-1c0 .223-.016.443-.047.659l.99.142ZM7.56 20.389A1.4 1.4 0 0 0 9.145 19.2l-.99-.142a.4.4 0 0 1-.453.34l-.142.99Zm-1.187-1.585a1.4 1.4 0 0 0 1.187 1.584l.142-.99a.4.4 0 0 1-.339-.452l-.99-.142Zm.029-.403c0 .138-.01.272-.029.403l.99.142c.026-.178.039-.36.039-.545h-1Zm-2.8-2.8a2.8 2.8 0 0 1 2.8 2.8h1a3.8 3.8 0 0 0-3.8-3.8v1Zm0 .8a2 2 0 0 0-2 2h1a1 1 0 0 1 1-1v-1Zm2 2a2 2 0 0 0-2-2v1a1 1 0 0 1 1 1h1Zm-2 2a2 2 0 0 0 2-2h-1a1 1 0 0 1-1 1v1Zm-2-2a2 2 0 0 0 2 2v-1a1 1 0 0 1-1-1h-1Z" fill="#000" fill-opacity=".12" mask="url(#c)" class="svelte-8z1bf5"></path></g><defs class="svelte-8z1bf5"><clipPath id="a" class="svelte-8z1bf5"><path d="M0 0h24v24H0z" class="svelte-8z1bf5"></path></clipPath><filter id="b" x="-3.4" y="-1.4" width="30.8" height="26.802" filterUnits="userSpaceOnUse" color-interpolation-filters="sRGB" class="svelte-8z1bf5"><feFlood flood-opacity="0" result="BackgroundImageFix" class="svelte-8z1bf5"></feFlood><feColorMatrix in="SourceAlpha" values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0" result="hardAlpha" class="svelte-8z1bf5"></feColorMatrix><feOffset class="svelte-8z1bf5"></feOffset><feGaussianBlur stdDeviation="2.5" class="svelte-8z1bf5"></feGaussianBlur><feColorMatrix values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.16 0" class="svelte-8z1bf5"></feColorMatrix><feBlend in2="BackgroundImageFix" result="effect1_dropShadow_4085_178456" class="svelte-8z1bf5"></feBlend><feBlend in="SourceGraphic" in2="effect1_dropShadow_4085_178456" result="shape" class="svelte-8z1bf5"></feBlend></filter></defs></svg>'),d2=Te('<svg width="24" height="24" xmlns="http://www.w3.org/2000/svg" aria-hidden="true" data-testid="chromecast-icon"><g fill="none" fill-rule="evenodd" class="svelte-8z1bf5"><path class="wave wave1 svelte-8z1bf5" d="M1 18v3h3c0-1.66-1.34-3-3-3z" fill="var(--btn-color, #fff)"></path><path class="wave wave2 svelte-8z1bf5" d="M1 14v2c2.76 0 5 2.24 5 5h2c0-3.87-3.13-7-7-7z" fill="var(--btn-color, #fff)"></path><path class="wave wave3 svelte-8z1bf5" d="M1 10v2a9 9 0 0 1 9 9h2c0-6.08-4.93-11-11-11z" fill="var(--btn-color, #fff)"></path><path d="M21 3H3c-1.1 0-2 .9-2 2v3h2V5h18v14h-7v2h7c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2z" fill="var(--btn-color, #fff)" class="svelte-8z1bf5"></path><path d="M0 0h24v24H0z" class="svelte-8z1bf5"></path><path d="M5.667 7.44H18.5v9.167h-5.161a11.947 11.947 0 0 0-7.673-7.672V7.44Z" fill="var(--btn-color, #fff)"></path></g></svg>'),c2={hash:"svelte-8z1bf5",code:`.connecting.svelte-8z1bf5 .wave:where(.svelte-8z1bf5) {animation-duration:1s;animation-iteration-count:infinite;}.connecting.svelte-8z1bf5 .wave1:where(.svelte-8z1bf5) {
177
177
  animation-name: svelte-8z1bf5-wave1;}.connecting.svelte-8z1bf5 .wave2:where(.svelte-8z1bf5) {
178
178
  animation-name: svelte-8z1bf5-wave2;}.connecting.svelte-8z1bf5 .wave3:where(.svelte-8z1bf5) {
179
179
  animation-name: svelte-8z1bf5-wave3;}
@@ -221,9 +221,9 @@ Try switching the\xA0quality to\xA0Auto.`},Ih=w_;var fs=new Map;fs.set(Ph.EN,Ih)
221
221
  100% {
222
222
  opacity: 1;
223
223
  }
224
- }`};function Vf(t,e){D(e,!0),z(t,c2);let i=m(e,"isMobile",3,!1),o=h(()=>e.iconState===o1.CONNECTED),n=h(()=>e.iconState===o1.CONNECTING);var r=Ue(),l=fe(r);{var d=p=>{var f=l2(),v=_(f),u=_(v),$=_(u);Ce(),g(u);var w=P(u);Ce(),g(v);var y=P(v),S=_(y),T=_(S);g(S),Ce(),g(y),g(f),O(()=>{Ne($,"fill",s(o)?"#2688EB":"var(--btn-color, #fff)"),Ne(w,"fill",s(o)?"#2688EB":"var(--btn-color, #fff)"),Ne(T,"fill",s(o)?"#2688EB":"var(--btn-color, #fff)")}),b(p,f)},a=p=>{var f=d2();let v;var u=_(f),$=P(_(u),5);let w;g(u),g(f),O((y,S)=>{v=J(f,0,"svelte-8z1bf5",null,v,y),w=J($,0,"svelte-8z1bf5",null,w,S)},[()=>({connecting:s(n)}),()=>({hidden:!s(o)})]),b(p,f)};L(l,p=>{i()?p(d):p(a,!1)})}b(t,r),H()}import{noop as p2}from"@vkontakte/videoplayer-shared/es2018";function gd(t,e){D(e,!0);let i=m(e,"ref",15,void 0),o=m(e,"isMobile",3,!1),n=m(e,"click",3,p2),l=Ee().ui.t,d=h(()=>e.state===u2.CONNECTED?l("tooltip_chromecast_on"):l("tooltip_chromecast_off"));Vt(t,{get ariaLabel(){return s(d)},get click(){return n()},testId:"btn-chromecast",get ref(){return i()},set ref(a){i(a)},children:(a,p)=>{Vf(a,{get isMobile(){return o()},get iconState(){return e.state}})},$$slots:{default:!0}}),H()}var f2=M('<div class="tooltip-wrapper svelte-5ygsa2"><div><!></div></div>'),m2={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 Rf(t,e){z(t,m2);let i=m(e,"active",3,!1),o=m(e,"pointer",3,!1),n=m(e,"translateXPx",3,0),r=m(e,"translateYPx",3,0),l=m(e,"leftOffset",3,0),d=m(e,"rightOffset",3,0),a=j(void 0),p=j(void 0);function f(S){if(!s(p))return 0;let{width:T}=s(p).getBoundingClientRect(),k=T/2;return S<k?k+l():S>e.containerWidth-k?e.containerWidth-k-d():S}let v=h(()=>f(n()));var u=f2(),$=_(u);let w;var y=_($);be(y,()=>{var S;return(S=e.children)!=null?S:oe}),g($),ot($,S=>B(p,S),()=>s(p)),g(u),ot(u,S=>B(a,S),()=>s(a)),O(S=>{st(u,`transform: translate(${s(v)}px, ${r()}px);`),w=J($,1,"tooltip svelte-5ygsa2",null,w,S),st($,`opacity: ${i()?1:0}; visibility: ${i()?"visible":"hidden"}`)},[()=>({active:i(),pointer:o()})]),b(t,u)}var tu=(t,e,i)=>i.filter(o=>o.time<=t*e).pop();var n1=t=>!!(Math.round(Math.abs(t)/90)%2),r1=t=>Math.abs(t)/90%4===1;var v2=M('<div class="preview svelte-1wqg760"></div>'),g2=M('<div class="time svelte-1wqg760"> </div>'),h2=M('<div><!> <div class="episode svelte-1wqg760"><!></div> <!></div>'),_2={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 Nf(t,e){D(e,!0),z(t,_2);let[i,o]=De(),n=()=>C(w,"$rotateAlpha",i),r=()=>C(y,"$playerSize",i),l={MOBILE:150,DESKTOP:278},d=m(e,"time",3,""),a=m(e,"isMobile",3,!1),p=m(e,"videoEpisodes",19,()=>[]),f=m(e,"progress",3,0),v=m(e,"duration",3,0),u=m(e,"isInteractive",3,!1),$=Ee(),w=$.ui.rotateAlpha,y=$.ui.playerSize,S=j(0),T=j(0),k=j(""),A=j(0),I=j(0),E=j(0),V=j(0),K=h(()=>tu(f(),v(),p())),W=h(()=>n1(n())),U=h(()=>r1(n())),Y=h(ce),ne=h(()=>(s(U)?1:-1)*(s(S)/2-s(T)/2)),G=h(()=>s(ne)*-1);We(()=>{(ue=>{B(S,ue.width,!0),B(T,ue.height,!0)})(we())}),We(()=>{(ue=>{B(k,ue.imgSrc,!0),B(A,ue.imgWidth,!0),B(I,ue.imgHeight,!0),B(E,ue.imgOffsetX,!0),B(V,ue.imgOffsetY,!0)})(Ve(f()))});function ce(){var qe;let ue=a()?l.MOBILE:l.DESKTOP,{isVertical:xe}=le(),Z=30;return(qe=s(K))!=null&&qe.text&&(Z+=16),(xe||s(W))&&(Z+=18,Z+=50),Math.min(Math.max(r().height-Z,0),ue)}function le(){let ue=e.previewThumbsData.frameWidth,xe=e.previewThumbsData.frameHeight,Z=xe>ue;return{width:ue,height:xe,isHorizontal:!Z,isVertical:Z}}function we(){let{height:ue,isHorizontal:xe,isVertical:Z,width:qe}=le();return xe&&(ue=ue/qe*s(Y),qe=s(Y)),Z&&(qe=qe/ue*s(Y),ue=s(Y)),{width:qe,height:ue}}function Ve(ue){let xe;e.previewThumbsData.isUV?xe=Math.floor(v()*ue/e.previewThumbsData.frequency):xe=Math.min(e.previewThumbsData.countTotal,Math.max(0,Math.floor(e.previewThumbsData.countTotal*ue)));let Z=Math.floor(xe/e.previewThumbsData.countPerImage),qe=Math.floor(xe%e.previewThumbsData.countPerImage/e.previewThumbsData.countPerRow),Xe=xe%e.previewThumbsData.countPerRow,ke=Math.floor(e.previewThumbsData.countPerImage/e.previewThumbsData.countPerRow);!e.previewThumbsData.isUV&&Z===Math.floor(e.previewThumbsData.countTotal/e.previewThumbsData.countPerImage)&&(ke=Math.floor(e.previewThumbsData.countTotal%e.previewThumbsData.countPerImage/e.previewThumbsData.countPerRow),e.previewThumbsData.countTotal%e.previewThumbsData.countPerImage%e.previewThumbsData.countPerRow>0&&ke++);let X=e.previewThumbsData.countPerRow;!e.previewThumbsData.isUV&&Z===Math.floor(e.previewThumbsData.countTotal/e.previewThumbsData.countPerImage)&&e.previewThumbsData.countTotal%e.previewThumbsData.countPerImage>0&&(X=Math.min(e.previewThumbsData.countPerRow,e.previewThumbsData.countTotal%e.previewThumbsData.countPerImage));let Te=s(S)*X,Ke=s(T)*ke,rt=-Xe*s(S),ct=-qe*s(T);return{imgSrc:e.previewThumbsData.links[Z],imgWidth:Te,imgHeight:Ke,imgOffsetX:rt,imgOffsetY:ct}}var ve=h2();let ae;var Le=_(ve);{var te=ue=>{var xe=v2();O(()=>st(xe,`width: ${s(S)}px; height: ${s(T)}px; background-image: url(${s(k)}); background-size: ${s(A)}px ${s(I)}px; background-position: ${s(E)}px ${s(V)}px;
225
- transform: rotate(${n()}deg) ${s(W)?`translate(${s(ne)}px, ${s(G)}px)`:""};
226
- `)),b(ue,xe)};L(Le,ue=>{s(k)&&ue(te)})}var N=P(Le,2),Be=_(N);{var ye=ue=>{var xe=Ue(),Z=fe(xe);{var qe=ke=>{var X=Xr();O(Te=>he(X,Te),[()=>F("tooltip_episode_unfinished")]),b(ke,X)},Xe=ke=>{var X=Xr();O(()=>he(X,s(K).text||"")),b(ke,X)};L(Z,ke=>{u()&&s(K).completed===!1?ke(qe):ke(Xe,!1)})}b(ue,xe)};L(Be,ue=>{s(K)&&ue(ye)})}g(N);var ge=P(N,2);{var de=ue=>{var xe=g2(),Z=_(xe,!0);g(xe),O(()=>he(Z,d())),b(ue,xe)};L(ge,ue=>{u()||ue(de)})}g(ve),O(ue=>{ae=J(ve,1,"timeline-preview svelte-1wqg760",null,ae,ue),st(ve,`width: ${s(W)?s(T):s(S)}px;`)},[()=>({mobile:a()})]),b(t,ve),H(),o()}var b2=M('<span class="time svelte-1jr6obn"> </span>'),$2=M("<!> <!>",1),y2={hash:"svelte-1jr6obn",code:".time.svelte-1jr6obn {display:inline-block;padding:6px 10px;border-radius:3px;color:var(--white);background-color:rgba(41, 41, 41, .8);}.timeline-slider {--slider-bg: var(--timeline-slider-bg);--slider-filled-bg: var(--timeline-slider-filled-bg);--slider-handle-bg: var(--timeline-slider-handle-bg);--slider-loaded-bg: var(--timeline-slider-loaded-bg);}"};function Bf(t,e){var se,Oe,ze,Ae,Ye;D(e,!0),z(t,y2);let[i,o]=De(),n=()=>C(ne,"$interactiveEpisodes$",i),r=()=>C(E,"$duration$",i),l=()=>C(I,"$position$",i),d=()=>C(le,"$isInteractiveExpectation$",i),a=()=>C(ce,"$isInteractiveTime$",i),p=()=>C(V,"$isLive$",i),f=()=>C(W,"$isMobile",i),v=()=>C(K,"$isActiveLive$",i),u=()=>C(A,"$bufferedProgress$",i),$=()=>C(ve,"$disabledControls$",i),w=m(e,"showTimeline",3,!1),y=m(e,"withEpisodes",3,!0),S=m(e,"ref",15,void 0),T=Ee(),k=Ft(),A=T.state.bufferedProgress$,I=T.state.positionWithScrubbing$,E=T.state.duration$,V=T.state.isLive$,K=T.state.isActiveLive$,W=T.ui.isMobile,U=k.features.episodes&&y()?T.actions.internal.getVideoEpisodes():void 0,Y=T.actions.internal.getPreviewThumbsData(),ne=T.state.interactiveEpisodes$,G=T.state.isInteractive,ce=T.state.isInteractiveTime$,le=T.state.isInteractiveExpectation$,we=T.actions.internal.correctSeekTimeToInteractive,Ve=(se=T.callbacks)==null?void 0:se.onDisabledTimelineClick,ve=T.ui.controls.disabledControls$,ae=(ze=(Oe=T.callbacks)==null?void 0:Oe.uiInfo)==null?void 0:ze.onTimelineMouseEnter,Le=(Ye=(Ae=T.callbacks)==null?void 0:Ae.uiInfo)==null?void 0:Ye.onTimelineMouseLeave,te=T.ui.t,N=k.features.interactiveResponsiveUi,Be=h(()=>G?n():U),ye=h(()=>cn(r())),ge=h(()=>cn(l())),de=h(()=>l()/r()),ue=h(()=>d()||a()),xe=j(!1),Z=j(""),qe=j(0),Xe=j(0),ke=j(0),X=h(()=>({containerWidth:s(Xe),translateXPx:s(qe),translateYPx:G&&Y?-36:-16,active:s(xe)&&w()&&!s(ue)&&!N,pointer:!k.features.timelinePreview||!Y||p()})),Te=te("aria_timeline"),Ke=h(()=>te("aria_timeline_value",{position:s(ge),duration:s(ye)}));function rt(Re){return!we||!G?Re:we(Re*r())/r()}function ct(Re){T.actions.internal.startScrubbing(rt(Re))}function ht(Re){a()||T.actions.internal.progressScrubbing(rt(Re))}function xt(Re){T.actions.internal.completeScrubbing(rt(Re)),B(xe,!1)}function Qe(Re,tt,kt){Qt(Re,tt,kt),B(xe,!0)}function qt(Re,tt,kt){Qt(Re,tt,kt),B(xe,!0)}function Yt(){B(xe,!1)}function Qt(Re,tt,kt){B(ke,rt(Re),!0),B(qe,tt,!0),kt&&B(Xe,kt,!0),B(Z,Nt(Re),!0)}function Nt(Re){let tt=cn((p()?1-Re:Re)*r());return p()?`-${tt}`:tt}var ee=$2(),At=fe(ee);Rf(At,ps(()=>s(X),{get leftOffset(){return e.tooltipLeftOffset},get rightOffset(){return e.tooltipRightOffset},children:(Re,tt)=>{var kt=Ue(),Mt=fe(kt);{var Je=pi=>{Nf(pi,{get time(){return s(Z)},get isMobile(){return f()},get videoEpisodes(){return s(Be)},get previewThumbsData(){return Y},get progress(){return s(ke)},get duration(){return r()},get isInteractive(){return G}})},ni=pi=>{var at=b2(),ei=_(at,!0);g(at),O(()=>he(ei,s(Z))),b(pi,at)};L(Mt,pi=>{k.features.timelinePreview&&Y&&!p()?pi(Je):pi(ni,!1)})}b(Re,kt)},$$slots:{default:!0}}));var me=P(At,2);let _e=h(()=>$().has("TIMELINE"));ga(me,{className:"timeline-slider",get isActiveLive(){return v()},get isMobile(){return f()},get ariaLabel(){return Te},ariaValueMin:0,get ariaValueMax(){return r()},get ariaValueNow(){return l()},get ariaValueText(){return s(Ke)},get loadedProgress(){return u()},get filledProgress(){return s(de)},get handleProgress(){return s(de)},get videoEpisodes(){return s(Be)},onPointerDown:ct,onHandleMove:ht,onPointerMove:qt,onPointerUp:xt,onPointerEnter:Qe,onPointerLeave:Yt,get onMouseEnter(){return ae},get onMouseLeave(){return Le},get onDisabledClick(){return Ve},get isInteractive(){return G},get disabled(){return s(_e)},get hideHandel(){return a()},testId:"progress_bar",onContextMenu:xt,get ref(){return S()},set ref(Re){S(Re)}}),b(t,ee),H(),o()}var x2={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 hd(t,e){D(e,!0),z(t,x2);let[i,o]=De(),n=()=>C(a,"$isMobile",i),r=m(e,"position",3,0),l=m(e,"duration",3,0),d=Ee(),a=d.ui.isMobile,p=d.ui.t,f=h(()=>cn(l())),v=h(()=>cn(r())),u=h(()=>r()/l()),$=h(()=>p("aria_timeline_value",{position:s(v),duration:s(f)})),w=h(()=>Math.round(s(u)*100));ga(t,{className:"timeline-ads-slider",ariaValueMin:0,get ariaValueMax(){return l()},get ariaValueNow(){return s(w)},get ariaValueText(){return s($)},get filledProgress(){return s(u)},hideHandel:!0,get squareBorders(){return n()}}),H(),o()}var w2=M("<div><!></div>"),C2=M("<div></div>"),S2={hash:"svelte-41cp6d",code:".timeline.svelte-41cp6d {position:relative;pointer-events:all;display:flex;align-items:center;bottom:0;width:100%;min-width:86px;padding:3px var(--timeline-padding-horizontal) 4px;box-sizing:border-box;}.timeline.mobile.svelte-41cp6d {height:16px;padding:6px 12px 7px;margin-top:6px;}.withoutPadding.svelte-41cp6d {padding:0;}.timeline-stub.svelte-41cp6d {width:100%;min-width:20px;}.timeline-stub.mobile.svelte-41cp6d {height:8px;}"};function ha(t,e){D(e,!0),z(t,S2);let[i,o]=De(),n=()=>C($,"$isLive$",i),r=()=>C(S,"$isMobile",i),l=()=>C(y,"$adPosition",i),d=()=>C(w,"$adDuration",i),a=m(e,"isAds",3,!1),p=m(e,"isHidden",3,!1),f=m(e,"needPadding",3,!0),v=m(e,"ref",15,void 0),u=Ee(),$=u.state.isLive$,w=u.ads.duration,y=u.ads.position,S=u.ui.isMobile,T=h(()=>!p()&&(!n()||n()&&e.canRewindLive&&e.isRewindableLive||a()));var k=Ue(),A=fe(k);{var I=V=>{var K=w2();let W;var U=_(K);{var Y=G=>{hd(G,{get position(){return l()},get duration(){return d()}})},ne=G=>{Bf(G,{get tooltipLeftOffset(){return e.tooltipLeftOffset},get tooltipRightOffset(){return e.tooltipRightOffset},get showTimeline(){return s(T)},get withEpisodes(){return e.withEpisodes},get ref(){return v()},set ref(ce){v(ce)}})};L(U,G=>{a()?G(Y):G(ne,!1)})}g(K),O(G=>W=J(K,1,"timeline svelte-41cp6d",null,W,G),[()=>({withoutPadding:!f(),mobile:r()})]),b(V,K)},E=V=>{var K=C2();let W;O(U=>W=J(K,1,"timeline-stub svelte-41cp6d",null,W,U),[()=>({mobile:r()})]),b(V,K)};L(A,V=>{s(T)?V(I):V(E,!1)})}b(t,k),H(),o()}import{noop as I2}from"@vkontakte/videoplayer-shared/es2018";var T2=Se('<svg><!><path fill="var(--btn-color, #fff)" fill-rule="evenodd" d="m21.616 16.495-.012.07c-.156.852-.282 1.541-.427 2.093-.148.569-.333 1.063-.64 1.5a4.4 4.4 0 0 1-2.507 1.732c-.52.133-1.046.131-1.63.069-.568-.06-1.257-.187-2.11-.343l-4.34-.794c-.853-.156-1.542-.282-2.094-.426-.568-.149-1.062-.334-1.5-.642a4.4 4.4 0 0 1-1.731-2.507c-.133-.518-.131-1.045-.069-1.63.06-.567.187-1.257.343-2.11l.012-.068c.156-.853.282-1.542.427-2.095.148-.568.333-1.062.641-1.5a4.4 4.4 0 0 1 2.507-1.731c.518-.133 1.045-.131 1.63-.069.567.06 1.256.187 2.109.343l4.34.794c.853.156 1.542.282 2.094.426.568.149 1.062.334 1.5.642a4.4 4.4 0 0 1 1.731 2.506c.133.52.131 1.046.069 1.63-.06.568-.187 1.258-.343 2.11m-1.446-2.3c.052-.483.035-.769-.022-.993a2.6 2.6 0 0 0-1.023-1.481c-.19-.133-.45-.25-.921-.373-.48-.125-1.102-.24-1.997-.404l-4.272-.781c-.895-.164-1.518-.277-2.01-.33-.483-.051-.769-.035-.993.023-.6.153-1.125.516-1.481 1.023-.133.19-.25.45-.373.92-.125.48-.24 1.103-.403 1.998s-.277 1.518-.33 2.01c-.051.484-.035.77.023.994.153.6.516 1.125 1.023 1.481.189.133.45.25.92.373.48.125 1.102.24 1.997.404l4.272.781c.895.164 1.518.277 2.01.33.483.051.77.035.993-.023a2.6 2.6 0 0 0 1.481-1.023c.133-.19.25-.45.373-.92.125-.48.24-1.103.403-1.998s.278-1.518.33-2.01Z" clip-rule="evenodd"></path><path fill="var(--btn-color, #fff)" fill-rule="evenodd" d="M18.187 7.488a.9.9 0 0 1-1.045-.727c-.145-.807-.199-1.086-.28-1.296A2.6 2.6 0 0 0 14.504 3.8c-.224-.006-.505.036-1.315.169l-5.846.962c-1.366.224-1.834.313-2.174.492A2.6 2.6 0 0 0 3.837 7.18c-.08.376-.039.85.114 2.226l.011.1a.9.9 0 1 1-1.787.198l-.01-.093-.019-.17c-.129-1.147-.217-1.937-.068-2.636A4.4 4.4 0 0 1 4.332 3.83c.633-.333 1.417-.461 2.556-.648l.163-.027 5.846-.961.098-.016c.674-.111 1.138-.188 1.556-.177a4.4 4.4 0 0 1 3.99 2.819c.15.39.234.853.355 1.526l.017.097a.9.9 0 0 1-.726 1.045" clip-rule="evenodd"></path><path fill="var(--btn-color, #fff)" d="M12.724 12.414a.415.415 0 0 0-.69.231l-.72 4.18a.4.4 0 0 0 .025.221c.085.21.327.311.539.226l3.669-1.467a.406.406 0 0 0 .127-.68z"></path></svg>');function Of(t,e){let i=Me(e,["$$slots","$$events","$$legacy","children"]);var o=T2();Ie(o,()=>({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}));var n=_(o);be(n,()=>{var r;return(r=e.children)!=null?r:oe}),Ce(3),g(o),b(t,o)}var E2=Se('<svg><!><path fill="var(--btn-color, #fff)" fill-rule="evenodd" d="M4.146 3.146a.5.5 0 0 1 .708 0l3 3a.5.5 0 0 1 0 .708l-3 3a.5.5 0 0 1-.708-.708L6.793 6.5 4.146 3.854a.5.5 0 0 1 0-.708" clip-rule="evenodd" opacity=".7"></path></svg>');function Df(t,e){let i=Me(e,["$$slots","$$events","$$legacy","children"]);var o=E2();Ie(o,()=>({xmlns:"http://www.w3.org/2000/svg",width:"12",height:"13",fill:"none","aria-hidden":"true","data-testid":"chevron-light-icon",role:"img",...i}));var n=_(o);be(n,()=>{var r;return(r=e.children)!=null?r:oe}),Ce(),g(o),b(t,o)}var k2=M('<span class="text mobile svelte-1yhs2ga"> </span> <div class="chevron-episodes svelte-1yhs2ga"><!></div>',1),P2=M('<span class="text svelte-1yhs2ga"> </span>'),A2=M('<span class="text count svelte-1yhs2ga"> </span>'),M2=M("<!> <!>",1),L2={hash:"svelte-1yhs2ga",code:".text.svelte-1yhs2ga {padding:0 8px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;}.text.count.svelte-1yhs2ga {overflow:visible;}.text.mobile.svelte-1yhs2ga {padding:0 3px 0 4px;}.chevron-episodes.svelte-1yhs2ga {margin-bottom:-4px;}"};function _d(t,e){var le,we,Ve;D(e,!0),z(t,L2);let[i,o]=De(),n=()=>C(w,"$currentGridType$",i),r=()=>C(y,"$openedByKeyboard$",i),l=()=>C(S,"$panelOpened$",i),d=()=>C(T,"$isMobile",i),a=m(e,"position",3,0),p=m(e,"duration",3,0),f=m(e,"timeCodes",19,()=>[]),v=Ee(),u=(we=(le=v.callbacks)==null?void 0:le.onEpisodeChanged)!=null?we:I2,$=!!((Ve=v.callbacks)!=null&&Ve.onEpisodeClicked),w=v.ui.currentGridType$,y=v.ui.episodes.openedByKeyboard$,S=v.ui.episodes.panelOpened$,T=v.ui.isMobile,k=v.ui.t,A=j(void 0),I=ve=>{var Le,te,N;if(!!((Le=v.callbacks)!=null&&Le.onEpisodeClicked)){let Be=Ls(ve);y.set(Be),S.set(!0),(N=(te=v.callbacks)==null?void 0:te.onEpisodeClicked)==null||N.call(te,Be)}},E=j(null),V=h(()=>a()/p());We(()=>{var ae;let ve=tu(s(V),p(),f());ve?((ae=s(E))==null?void 0:ae.time)!==ve.time&&(u(ve),B(E,ve,!0)):B(E,null)});let K=h(()=>{var ve;return((ve=s(E))==null?void 0:ve.text)||""}),W=h(()=>Yi(n(),"xl")?"FULL":Yi(n(),"m")&&t1(n(),"xl")?"COUNT":"SHORT"),U=h(()=>`${k("tooltip_episodes")}: ${s(K)}`),Y=async(ve,ae,Le)=>{await $o(),(ve==null?void 0:ve.getAttribute("aria-expanded"))==="false"&&ae&&!Le&&Ct(()=>{y.set(!1),ve.focus()})};We(()=>{Y(s(A),r(),l())});var ne=Ue(),G=fe(ne);{var ce=ve=>{let ae=h(()=>d()?"px-0":""),Le=h(()=>!$);Vt(ve,{get className(){var te;return`w-max btn-full-opacity btn-jc-l ${(te=s(ae))!=null?te:""}`},testId:"btn-episodes",click:I,get disabled(){return s(Le)},get ariaExpanded(){return l()},get ariaLabel(){return s(U)},get ref(){return s(A)},set ref(te){B(A,te,!0)},children:(te,N)=>{var Be=Ue(),ye=fe(Be);{var ge=ue=>{var xe=k2(),Z=fe(xe),qe=_(Z,!0);g(Z);var Xe=P(Z,2),ke=_(Xe);Df(ke,{}),g(Xe),O(()=>he(qe,s(K))),b(ue,xe)},de=ue=>{var xe=M2(),Z=fe(xe);Of(Z,{});var qe=P(Z,2);{var Xe=X=>{var Te=P2(),Ke=_(Te,!0);g(Te),O(()=>he(Ke,s(K))),b(X,Te)},ke=(X,Te)=>{{var Ke=rt=>{var ct=A2(),ht=_(ct,!0);g(ct),O(()=>he(ht,f().length)),b(rt,ct)};L(X,rt=>{s(W)==="COUNT"&&rt(Ke)},Te)}};L(qe,X=>{s(W)==="FULL"?X(Xe):X(ke,!1)})}b(ue,xe)};L(ye,ue=>{d()?ue(ge):ue(de,!1)})}b(te,Be)},$$slots:{default:!0}})};L(G,ve=>{s(E)&&ve(ce)})}b(t,ne),H(),o()}import{debounceFn as b1}from"@vkontakte/videoplayer-shared/es2018";import{ChromecastState as F2,PlaybackState as bd,Player as U2,PredefinedQualityLimits as ns,VideoFormat as $d,clientChecker as z2}from"@vkontakte/videoplayer-core/es2018";import{assertNonNullable as Zn,getHighestQuality as W2,InterfaceLanguage as q2,isInvariantQuality as K2,isNonNullable as Q2,loadVKLangPack as G2,Logger as Y2,map as p1,merge as j2,Observable as f1,Subject as cu,Subscription as qf,TracerFactory as Z2,ValueSubject as X2,VideoQuality as J2,devNull as ey,now as ty,filter as iy,once as oy}from"@vkontakte/videoplayer-shared/es2018";import{SeekAction as gs}from"@vkontakte/videoplayer-statistics/es2018";import{detectEmbed as V2,devNull as Xt,now as Jt}from"@vkontakte/videoplayer-shared/es2018";import{addScript as R2,Subject as Ko,clearVideoElement as N2}from"@vkontakte/videoplayer-shared/es2018";var s1=(t,e)=>t<400||e<225?5:t<640||e<360?0:t<960||e<540?1:t<1280||e<720?2:3;var B2="//ad.mail.ru/static/admanhtml/rbadman-html5.min.js",iu=class{constructor(e,i){this.adman=null;this.initialVolume=1;this.videoElement=null;this.currentAdSection=null;this.actions=null;this.adsState=null;this.playerState=null;this.events={init$:new Ko,loadStarted$:new Ko,loadEnded$:new Ko,loadError$:new Ko,ready$:new Ko,slotRequested$:new Ko,started$:new Ko,timeRemained$:new Ko,paused$:new Ko,resumed$:new Ko,ended$:new Ko,empty$:new Ko,skipped$:new Ko,clicked$:new Ko,closed$:new Ko,error$:new Ko};this.loadAdman=e=>(Xt.push("ui",{key:"videoplayer_embed",strings:["new","adman_load_start",this.useAdmanFromNPM?"npm":"http"],numbers:[Jt()]}),this.useAdmanFromNPM?this.loadAdmanNPM(e):this.loadAdmanMailRu(e));this.loadAdmanMailRu=e=>new Promise((i,o)=>{let n;this.events.loadStarted$.next();let r=()=>{clearTimeout(n),delete window.admanAsyncInit,window.AdmanHTML?(Xt.push("ui",{key:"videoplayer_embed",strings:["new","adman_async_init_done","http"],numbers:[Jt()]}),i(),this.events.loadEnded$.next()):(Xt.push("ui",{key:"videoplayer_embed",strings:["new","adman_init_timed_out","http"],numbers:[Jt()]}),o())};R2(B2,e,this.loadTimeout).then(()=>{Xt.push("ui",{key:"videoplayer_embed",strings:["new","adman_script_loaded","http"],numbers:[Jt()]}),window.AdmanHTML?(Xt.push("ui",{key:"videoplayer_embed",strings:["new","adman_already_inited","http"],numbers:[Jt()]}),i(),this.events.loadEnded$.next()):(Xt.push("ui",{key:"videoplayer_embed",strings:["new","adman_wait_async_init","http"],numbers:[Jt()]}),window.admanAsyncInit=r,n=window.setTimeout(r,this.initTimeout))}).catch(l=>{Xt.push("ui",{key:"videoplayer_embed",strings:["new","adman_script_load_error","http",String(l)],numbers:[Jt()]}),o(),clearTimeout(n)})});this.loadAdmanNPM=e=>new Promise((i,o)=>{let n;this.events.loadStarted$.next();let r=()=>{clearTimeout(n),delete window.admanAsyncInit,window.AdmanHTML?(Xt.push("ui",{key:"videoplayer_embed",strings:["new","adman_init_done","npm"],numbers:[Jt()]}),i(),this.events.loadEnded$.next()):(Xt.push("ui",{key:"videoplayer_embed",strings:["new","adman_init_timed_out","npm"],numbers:[Jt()]}),o())},l=()=>{d=!0,o()},d=!1,a=window.setTimeout(()=>{Xt.push("ui",{key:"videoplayer_embed",strings:["new","adman_load_timed_out","npm"],numbers:[Jt()]}),l()},this.loadTimeout);e.addEventListener("abort",l),e.aborted&&(Xt.push("ui",{key:"videoplayer_embed",strings:["new","adman_load_aborted","npm"],numbers:[Jt()]}),l()),window.AdmanHTML=window.AdmanHTML||null,import("@adtech/rbadman/out/rbadman-html5.min.js").then(()=>{Xt.push("ui",{key:"videoplayer_embed",strings:["new","adman_chunk_imorted","npm","failed: "+String(d)],numbers:[Jt()]}),!d&&(window.AdmanHTML?(Xt.push("ui",{key:"videoplayer_embed",strings:["new","adman_already_inited","npm"],numbers:[Jt()]}),i(),this.events.loadEnded$.next()):(Xt.push("ui",{key:"videoplayer_embed",strings:["new","adman_wait_async_init","npm"],numbers:[Jt()]}),window.admanAsyncInit=r,n=window.setTimeout(r,this.initTimeout)))},l).finally(()=>{clearTimeout(n),clearTimeout(a),e.removeEventListener("abort",l)})});this.onAdsReady=()=>{Xt.push("ui",{key:"videoplayer_embed",strings:["new","adman_ads_ready"],numbers:[Jt()]}),this.log({message:"ads ready"}),this.events.ready$.next(),this.startPreroll()};this.onAdStarted=(e,i)=>{Xt.push("ui",{key:"videoplayer_embed",strings:["new","adman_ad_started",e,"muted: "+i.muted],numbers:[Jt(),i.bannerID]}),this.adsState&&this.playerState&&this.actions?(this.log({message:`ad started, section: ${e}, banner: ${JSON.stringify(i)}`}),this.events.started$.next(e),i.muted&&(this.setVolume(0),this.actions.setMuted(!0),this.log({message:"ad muted start"}),$e(this.playerState.isMobile)&&this.playerState.mobileUnmuteButtonVisible.set(!0)),this.adsState.duration.set(i.duration),this.adsState.playbackState.set("playing"),this.adsState.canSkip.set(i.allowClose),this.adsState.secondsToWatchBeforeSkip.set(i.allowCloseDelay),this.startWatchDog()):this.onAdError("Started callback failed: Adman is not initialized")};this.onAdTimeRemained=e=>{this.adsState?(this.adsState.position.set(e.currentTime),this.events.timeRemained$.next(e),this.startWatchDog()):this.onAdError("TimeRemained callback failed: Adman state is not initialized")};this.onAdPaused=()=>{var e;Xt.push("ui",{key:"videoplayer_embed",strings:["new","adman_ad_pased",(e=this.currentAdSection)!=null?e:""],numbers:[Jt()]}),this.stopWatchDog(),this.adsState?(this.log({message:"ad paused"}),this.adsState.playbackState.set("paused")):this.onAdError("Paused callback failed: Adman state is not initialized")};this.onAdPlayed=()=>{var e;Xt.push("ui",{key:"videoplayer_embed",strings:["new","adman_ad_played",(e=this.currentAdSection)!=null?e:""],numbers:[Jt()]}),this.startWatchDog(),this.adsState?(this.log({message:"ad played"}),this.adsState.playbackState.set("playing")):this.onAdError("Player callback failed: Adman is not initialized")};this.onAdMidrollPoint=()=>{if(Xt.push("ui",{key:"videoplayer_embed",strings:["new","adman_ad_midroll_pioint"],numbers:[Jt()]}),this.adman&&this.actions){this.log({message:"midroll point"}),this.actions.switchFromVideoToAds(),this.currentAdSection="midroll",this.startWatchDog();try{this.adman.start("midroll")}catch(e){this.onAdError("could not start midroll")}}else this.onAdError("Midroll callback failed: Adman is not initialized")};this.onAdSkipped=()=>{var e;Xt.push("ui",{key:"videoplayer_embed",strings:["new","adman_ad_skipped",(e=this.currentAdSection)!=null?e:""],numbers:[Jt()]}),this.log({message:"ad skipped"}),this.stopWatchDog()};this.onAdClosed=()=>{var e;Xt.push("ui",{key:"videoplayer_embed",strings:["new","adman_ad_closed",(e=this.currentAdSection)!=null?e:""],numbers:[Jt()]}),this.log({message:"ad closed"}),this.currentAdSection&&this.events.closed$.next(this.currentAdSection),this.stopWatchDog(),this.switchToVideo()};this.onAdCompleted=()=>{var e;Xt.push("ui",{key:"videoplayer_embed",strings:["new","adman_ad_completed",(e=this.currentAdSection)!=null?e:""],numbers:[Jt()]}),this.log({message:"ad completed"}),this.currentAdSection?this.events.ended$.next(this.currentAdSection):this.events.empty$.next(),this.switchToVideo(),this.stopWatchDog()};this.onAdClicked=()=>{var e,i;Xt.push("ui",{key:"videoplayer_embed",strings:["new","adman_ad_clicked",(e=this.currentAdSection)!=null?e:""],numbers:[Jt()]}),this.log({message:"ad clicked"}),(i=this.videoElement)==null||i.pause(),this.currentAdSection&&this.events.clicked$.next(this.currentAdSection),this.stopWatchDog()};this.onAdError=(e="ad error")=>{Xt.push("ui",{key:"videoplayer_embed",strings:["new","adman_ad_error",e],numbers:[Jt()]}),this.log({message:e}),this.events.error$.next(e),this.switchToVideo(!0),this.stopWatchDog()};this.log=e.createComponentLog("AdmanWrapper"),Xt.push("ui",{key:"videoplayer_embed",strings:["new","adman_created"],numbers:[Jt()]}),this.loadTimeout=i.loadTimeout,this.initTimeout=i.initTimeout,this.runtimeTimeout=i.runtimeTimeout,this.useAdmanFromNPM=i.useAdmanFromNPM,this.volumeMultiplier=Math.max(0,Math.min(i.volumeMultiplier,1)),this.isVsidOriginal=i.isVsidOriginal}init(e,i,o){this.actions=e,this.adsState=i,this.playerState=o}onAdmanLoadingError(){this.onAdError("adman loading error")}initAdman(e){var A;if(Xt.push("ui",{key:"videoplayer_embed",strings:["new","adman_init","already inited: "+!!this.adman],numbers:[Jt(),e.slotId]}),this.adman)return;this.events.init$.next(),this.startWatchDog();let{width:i,height:o,isFullscreen:n,isAutoplay:r,adsContainer:l,adsVideoElement:d,slotId:a,params:p={},duration:f,previewParam:v}=e,u,$=this.playerState&&$e(this.playerState.vsid);$&&(this.isVsidOriginal?u=$:u=parseInt($,36));let{isEmbed:w,immediateOrigin:y}=V2(),S=(A=w?y:window.location.href)!=null?A:window.location.href,T={...p,dl:encodeURIComponent(S),autoplay:r?1:0,player_width:i,player_height:o,preview:v,...u?{request_id:u}:{},duration:f,puid10:s1(i,o),puid11:n?0:1};v||delete T.preview;let k={slot:a,wrapper:l,videoEl:d,videoQuality:o,params:T,browser:{mobile:!1}};try{let I=new window.AdmanHTML;I.setDebug(!1),I.onReady(this.onAdsReady),I.onStarted(this.onAdStarted),I.onPlayed(this.onAdPlayed),I.onPaused(this.onAdPaused),I.adMidrollPoint(this.onAdMidrollPoint),I.onClosed(this.onAdClosed),I.onSkipped(this.onAdSkipped),I.onClicked(this.onAdClicked),I.onTimeRemained(this.onAdTimeRemained),I.onCompleted(this.onAdCompleted),I.onError(this.onAdError),I.init(k),this.adman=I,this.videoElement=d,this.events.slotRequested$.next(),this.log({message:`adman init, config: ${JSON.stringify(k)}`})}catch(I){Xt.push("ui",{key:"videoplayer_embed",strings:["new","adman_init_threw",String(I)],numbers:[Jt()]}),this.onAdError("could not init adman")}}switchToVideo(e=!1){var o,n,r;if(Xt.push("ui",{key:"videoplayer_embed",strings:["new","adman_switch_to_video",(o=this.currentAdSection)!=null?o:"","force: "+e],numbers:[Jt()]}),this.currentAdSection===null&&!e){this.log({message:"switch to video, no currentAdSection. can't switch"});return}let i=this.currentAdSection==="postroll";if(this.actions){if(this.adsState&&this.playerState)this.adsState.playbackState.set("inactive"),this.currentAdSection=null,this.playerState.mobileUnmuteButtonVisible.set(!1),this.log({message:`switch to video, isPostroll: ${i}`}),i&&(this.adsState.postrollPassed.set(!0),this.log({message:"postroll passed"}));else{let l="Switch to video: Adman state was not updated correctly";this.log({message:l}),this.events.error$.next(l)}(r=(n=this.actions).switchFromAdsToVideo)==null||r.call(n,!i)}}togglePlay(){var e;if(Xt.push("ui",{key:"videoplayer_embed",strings:["new","adman_toggle_play",(e=this.currentAdSection)!=null?e:""],numbers:[Jt()]}),this.adsState){this.log({message:"toggle play"});let i=$e(this.adsState.playbackState);i==="playing"?this.pause():i==="paused"&&this.play()}else this.onAdError("Can not toggle play: Adman state is not initialized")}setInitialVolume(e){this.log({message:`set initial volume ${e}`}),this.initialVolume=e}setVolume(e){let i=e*this.volumeMultiplier;if(this.log({message:`set volume ${i}`}),this.adman)try{this.adman.setVolume(i)}catch(o){this.onAdError("could not set ad volume")}this.videoElement&&(this.videoElement.volume=i)}setFullscreen(e){if(this.log({message:`set fullscreen ${e}`}),this.adman)try{this.adman.setFullscreen(e)}catch(i){this.onAdError("could not set ad fullscreen")}}startPreroll(){if(Xt.push("ui",{key:"videoplayer_embed",strings:["new","adman_start_preroll"],numbers:[Jt()]}),this.adman){if(!this.isDestroyed){this.log({message:"start preroll"}),this.setVolume(this.initialVolume),this.currentAdSection="preroll",this.startWatchDog();try{this.adman.start("preroll")}catch(e){this.onAdError("could not start preroll")}}}else this.onAdError("Can not start preroll: Adman is not initialized")}startPostroll(){var e;if(Xt.push("ui",{key:"videoplayer_embed",strings:["new","adman_start_postroll",(e=this.currentAdSection)!=null?e:""],numbers:[Jt()]}),this.adman&&this.actions){this.log({message:"start postroll"}),this.actions.switchFromVideoToAds(),this.currentAdSection="postroll",this.startWatchDog();try{this.adman.start("postroll")}catch(i){this.onAdError("could not start postroll")}}else this.onAdError("Can not start postroll: Adman is not initialized")}startWatchDog(){var i;this.watchDogTimeout&&this.stopWatchDog(),((i=this.adsState)!=null&&i.playbackState?$e(this.adsState.playbackState):void 0)!=="inactive"&&(this.watchDogTimeout=window.setTimeout(()=>this.onAdError("Watchdog timeout"),this.runtimeTimeout))}stopWatchDog(){clearTimeout(this.watchDogTimeout)}play(){var e;if(Xt.push("ui",{key:"videoplayer_embed",strings:["new","adman_pplay",(e=this.currentAdSection)!=null?e:""],numbers:[Jt()]}),this.adman){this.log({message:"ad play"}),this.startWatchDog();try{this.adman.resume(),this.events.resumed$.next()}catch(i){this.onAdError("could not resume ad")}}else this.onAdError("Can not play: Adman is not initialized")}pause(){var e;if(Xt.push("ui",{key:"videoplayer_embed",strings:["new","adman_pause",(e=this.currentAdSection)!=null?e:""],numbers:[Jt()]}),this.adman){this.stopWatchDog(),this.log({message:"ad pause"});try{this.adman.pause(),this.events.paused$.next()}catch(i){this.onAdError("could not pause ad")}}else this.onAdError("Can not pause: Adman is not initialized")}skip(){var e;if(Xt.push("ui",{key:"videoplayer_embed",strings:["new","adman_skip",(e=this.currentAdSection)!=null?e:""],numbers:[Jt()]}),this.adman){this.stopWatchDog(),this.log({message:"ad skip"});try{this.adman.skip(),this.events.skipped$.next()}catch(i){this.onAdError("could not skip ad")}}else this.onAdError("Can not skip: Adman is not initialized")}setPosition(e,i){var o;(o=this.adman)==null||o.setPosition(Math.floor(e),Math.floor(i))}destroy(){var e,i,o,n,r,l,d,a,p,f,v,u;Xt.push("ui",{key:"videoplayer_embed",strings:["new","adman_destroy"],numbers:[Jt()]}),this.log({message:"destroy"}),this.stopWatchDog(),(e=this.adman)==null||e.onReady(void 0),(i=this.adman)==null||i.onStarted(void 0),(o=this.adman)==null||o.onPlayed(void 0),(n=this.adman)==null||n.onPaused(void 0),(r=this.adman)==null||r.adMidrollPoint(void 0),(l=this.adman)==null||l.onClosed(void 0),(d=this.adman)==null||d.onSkipped(void 0),(a=this.adman)==null||a.onClicked(void 0),(p=this.adman)==null||p.onTimeRemained(void 0),(f=this.adman)==null||f.onCompleted(void 0),(v=this.adman)==null||v.onError(void 0),(u=this.adman)==null||u.destroy(),this.videoElement&&N2(this.videoElement),this.isDestroyed=!0}};var a1=t=>{let e=Math.round(t);return isNaN(e)||e<40?"":e>=40&&e<55?50:e>=55&&e<90?60:e>=90&&e<180?120:e>=180?240:""};var Hf=class{constructor(){this.oneLineRegExp=/\r\n|\n|\r/;this.twoLinesRegExp=/\r\n\r\n|\n\n|\r\r/}parse(e,i){let o=[],n=e.split(this.twoLinesRegExp);for(let r of n){let l={startTime:0,endTime:0,texts:[],lang:i},d=r.split(this.oneLineRegExp);for(let a of d)if(!l.startTime&&!l.endTime){let p=new ou,{startTime:f,endTime:v}=p.parse(a);l.startTime=f,l.endTime=v}else if(a.trim()!==""){let p=new Ff,{texts:f}=p.parse(a);l.texts=[...l.texts,...f]}(l.startTime||l.endTime)&&l.texts.length>0&&o.push(l)}return o}},ou=class{constructor(){this.timeRegExp=/(\d{2,})?:?(\d{2}):(\d{2}).(\d{2,3})/;this.timingRegExp=new RegExp(`${this.timeRegExp.source}( ?--> ?)${this.timeRegExp.source}`)}parse(e){let i={startTime:0,endTime:0},o=this.timingRegExp.exec(e);return o&&(i.startTime=this.calcTime(o[1],o[2],o[3],o[4]),i.endTime=this.calcTime(o[6],o[7],o[8],o[9])),i}parseTime(e){let i=this.timeRegExp.exec(e);return i?this.calcTime(i[1],i[2],i[3],i[4]):0}isTime(e){return this.timeRegExp.test(e)}calcTime(e="0",i="0",o="0",n="0"){let r=Number(e)*60*60,l=Number(i)*60,d=Number(o),a=+`0.${n}`;return r+l+d+a}},Ff=class{constructor(){this.letterTagRegExp=/<[a-z]*>|<\/[a-z]*>/}parse(e){let i={texts:[]},n=e.replace(new RegExp(this.letterTagRegExp,"g"),"").split({[Symbol.split](l){let d=0,a=[];for(;d<l.length;){let p=["<",">"].reduce((f,v)=>{let u=l.indexOf(v,d);return f===-1||f>u?u:f},-1);if(p===-1){a.push(l.substring(d));break}a.push(l.substring(d,p)),d=p+1}return a}}),r=new ou;for(let l of n)r.isTime(l)?i.texts.push({type:"timestamp",value:r.parseTime(l)}):i.texts.push({type:"text",value:l});return i}},l1=Hf;import{isNonNullable as Uf}from"@vkontakte/videoplayer-shared/es2018";var _a,xi,zf=0,Wf=!1,d1="",c1=(t,e=0,i=0)=>t<e&&t<i,nu=(t,e=0,i=0)=>t>=e&&t<=i,O2=(t,e=0,i=0)=>t>e&&t>i,u1=(t,e,i,o=!1)=>{var d;let n=(d=i.find(({id:a})=>a===e.value))==null?void 0:d.subtitles;if(o)return n==null?void 0:n.find(({startTime:p,endTime:f})=>nu(t,p,f));let r=t>=zf,l=t<zf;if(zf=t,l&&(Wf=!1),Uf(_a)&&nu(t,_a.startTime,_a.endTime)&&d1===e.value)return _a;if(!Uf(xi)&&(n!=null&&n.length)&&!Wf){xi=n.find(({startTime:p,endTime:f})=>nu(t,p,f)||r&&c1(t,p,f)),_a=void 0,!Uf(xi)&&n[n.length-1].endTime<t&&(Wf=!0);return}else{if(nu(t,xi==null?void 0:xi.startTime,xi==null?void 0:xi.endTime))return _a=xi,xi=void 0,d1=e.value,_a;(r&&O2(t,xi==null?void 0:xi.startTime,xi==null?void 0:xi.endTime)||l&&c1(t,xi==null?void 0:xi.startTime,xi==null?void 0:xi.endTime))&&(xi=void 0)}};var ru={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"},D2={abk:"as",ara:"ar",aze:"az",bak:"ba",bel:"be",ben:"bn",bos:"bs",bul:"bg",ces:"cs",chv:"cv",dan:"da",deu:"de",ell:"el",eng:"en",epo:"eo",est:"et",eus:"eu",fas:"fa",fin:"fi",fra:"fr",heb:"he",hin:"hi",hrv:"hr",hun:"hu",hye:"hy",ind:"id",ita:"it",jpn:"ja",kan:"kn",kat:"ka",kaz:"kk",kir:"ky",kor:"ko",lav:"lv",lit:"lt",mon:"mn",mya:"my",nep:"ne",nld:"nl",nor:"no",oss:"os",pan:"pa",pol:"pl",por:"pt",ron:"ro",rus:"ru",sin:"si",slk:"sk",slv:"sl",spa:"es",srp:"sr",swa:"sw",swe:"sv",tat:"tt",tgk:"tg",tgl:"tl",tha:"th",tuk:"tk",tur:"tr",ukr:"uk",urd:"ur",uzb:"uz",vie:"vi"},su=t=>{var e,i;return(i=(e=ru[t])!=null?e:ru[D2[t]])!=null?i:void 0};import{Subscription as H2}from"@vkontakte/videoplayer-shared/es2018";import"@vkontakte/videoplayer-statistics/es2018";var au=class{constructor(e,i,o,n=new H2){this.oneStat=e;this.thinOneStat=i;this.mediascopePixel=o;this.statSubscription=n}destroy(){var e,i,o;(e=this.oneStat)==null||e.destroy(),(i=this.thinOneStat)==null||i.destroy(),(o=this.mediascopePixel)==null||o.destroy(),this.statSubscription.unsubscribe()}};var lu=(i=>(i.DESKTOP_CONTROL_PANEL_LEFT="desktop-control-panel-left",i.DESKTOP_CONTROL_PANEL_RIGHT="desktop-control-panel-right",i))(lu||{});var os=t=>t!=null?t:0,vs=(t,e)=>{var n,r;let i=(n=t==null?void 0:t.getBoundingClientRect)==null?void 0:n.call(t),o=(r=e==null?void 0:e.getBoundingClientRect)==null?void 0:r.call(e);return{top:Math.round(os(i==null?void 0:i.top)-os(o==null?void 0:o.top)),left:Math.round(os(i==null?void 0:i.left)-os(o==null?void 0:o.left)),bottom:Math.round(os(i==null?void 0:i.bottom)-os(o==null?void 0:o.top)),right:Math.round(os(i==null?void 0:i.right)-os(o==null?void 0:o.left))}},dl=t=>{var i;let e=(i=t==null?void 0:t.getBoundingClientRect)==null?void 0:i.call(t);return{width:os(e==null?void 0:e.width),height:os(e==null?void 0:e.height)}};var du="off";var m1=({interfaceLanguage:t,isCyrillicRelatedInterface:e,videoId:i,isClip:o,isLiveCatchUpMode:n,statAuthToken:r,isAudioDisabled:l,canDownload:d,callbacks:a,webApi:p,videoEpisodes:f,previewThumbsData:v,uiConfig:u,coreConfig:$,player:w,disabledControls:y,isInteractive:S,interactiveRanges$:T,isInteractiveTime$:k,replayInteractive:A,stopPlayer:I,hasInteractiveBranches:E,playPrevChapterDisabledTooltip:V,additionalButtons:K,additionalSettingsMenuItems:W,additionalContextMenuItems:U,playPrevVideo:Y,playNextVideo:ne,looped:G=!1,statistics:ce,saveRate:le,internalsExposure:we,playerView:Ve})=>{var lv,dv,cv;let ve={...$,configName:[...(lv=$.configName)!=null?lv:[],"ui"],isAudioDisabled:l,live:{...(dv=$.live)!=null?dv:{},isLiveCatchUpMode:!!n}},ae=u,Le=Z2.createRootTracer(ae.features.tracer),te=Le.createComponentTracer("Store"),N=w||new U2(ve,Le);we==null||we.expose({corePlayer:N});let Be=new Y2,ye=new iu(Be,{loadTimeout:ae.ads.loadTimeout,initTimeout:ae.ads.initTimeout,runtimeTimeout:ae.ads.runtimeTimeout,useAdmanFromNPM:ae.ads.useAdmanFromNPM,volumeMultiplier:ae.ads.volumeMultiplier,isVsidOriginal:ae.ads.isVsidOriginal}),ge=aa.getInstance(),de=p==null?void 0:p.pictureInPictureApi,ue=p==null?void 0:p.annotationsApi,xe=p==null?void 0:p.slotsApi,Z=Be.createComponentLog("Store"),qe,Xe,ke={},X=new Lc,Te=new qf,Ke=ce&&ce.oneStat?ti(ce.oneStat.vsid$):mr(void 0),rt=re(Ps()),ct=re(!1),ht=(cv=de==null?void 0:de.info.isActive$)!=null?cv:new X2(!1),xt=re(0),Qe=re([]),qt=j2(N.events.fatalError$,N.events.managedError$).subscribe(c=>Qe.update(x=>[...x,c])),Yt=mr(!1,c=>{let x=N.events.fatalError$.subscribe(()=>c(!0));return()=>x.unsubscribe()}),Qt=async c=>{var ie;let x=Object.values(q2).includes(c);if(ae.downloadVKLanguages&&(x&&ae.updateBuiltinLanguages||!Gp(c))){let He;try{He=await G2(c,jg,Zg)}catch(pt){(ie=ce==null?void 0:ce.oneStat)==null||ie.logError({errorType:"VKLangPack",fatal:!1}),ge==null||ge.report(pt,{errorType:"VKLangPack",fatal:!1})}He&&(Qp({language:c,pack:He,fallback:ae.defaultLanguage}),Nt.set(c))}Gp(c)&&Nt.set(c)},Nt=re(t),ee=re(e);Qt(t);let At=(c,x)=>{let R=$e(Nt);return Yp(R,c,x,ae.defaultLanguage)},me=re("thumb");me.subscribe(c=>{c==="ads"&&Oe()});let _e=(()=>{let c=mi([Yt,me],([x,R])=>x?"crashed":R);return{...c,is:x=>$e(c)===x}})(),se=re(),Oe=()=>{se.set({muted:N.info.muted$.getValue()})},ze=(()=>{let c=re(new Set(y));return{...c,add:x=>{c.update(R=>new Set([...R].concat(x)))},remove:x=>{c.update(R=>{let ie=[...R];return new Set(Array.isArray(x)?ie.filter(He=>!x.includes(He)):ie.filter(He=>He!==x))})},includes:x=>{let R=$e(c);return Array.isArray(x)?x.every(ie=>R.has(ie)):R.has(x)}}})();te.log("create store"),Z({message:"create store"});let Ae=c=>{let x=c.container,R=()=>{ni=new MutationObserver(He=>{let{removedNodes:pt}=He[0];pt.length&&x.append(N.experimental.element$.getValue())}),ni.observe(x,{childList:!0})},ie=N.experimental.element$.getValue();if(ie)x.append(ie),R();else{let He=N.experimental.element$.pipe(iy(pt=>!!pt),oy()).subscribe(pt=>{x.append(pt),R()});Te.add(He)}},Ye=c=>{Z({message:`init video, config: ${JSON.stringify(c)}`}),S?Ae(c):(ey.push("ui",{key:"videoplayer_embed",strings:["new","core_init_video"],numbers:[ty()]}),N.initVideo(c)),te.log("init video",{isInteractive:S}),c.subtitles&&N.setExternalTextTracks(c.subtitles),qe=c},Re=new cu,tt=c=>Re.next(c),kt=new cu,Mt=new cu,Je=new cu,ni=null,pi={actionRewind$:kt,actionSeek$:Mt,inPiP$:ht,inFullscreen$:new f1(c=>rt.subscribe(x=>c.next(x))),actionSetSubtitle$:Je,nextMovie$:Re},at={actionSeek$:Mt,playerSize$:new f1(c=>bi.subscribe(x=>c.next(x)))};if(ce){let{oneStat:c,thinOneStat:x,mediascopePixel:R,statSubscription:ie}=ce;c&&(S||ie.add(c.attachTo(N)),ie.add(c.attachToUi(pi)),ie.add(c.attachToAds(ye.events)),c.authorize(r).catch(He=>{Z({message:`onestat auth error ${String(He)}`})}),R&&R.attachTo(N)),x&&(ie.add(x.attachTo(N)),ie.add(x.attachToUi(at)),x.authorize(r))}if(ge){let c=new qf,x=(R,ie)=>c.add(R.subscribe(ie));if(x(N.events.managedError$,R=>{ge.logIError(R)}),x(N.events.fatalError$,R=>{ge.logIError(R,!0)}),ce){let{oneStat:R}=ce;R&&x(R.experimental.error$,ie=>{ge.logIError(ie)})}ge.sentrySubscription.add(c)}let ei=()=>{z2.device.isIOS&&Xe&&Vh(Xe).catch(c=>{Z({message:`exitIosSafariFullscreen failed: ${c}`})})};Te.add(N.experimental.element$.subscribe(c=>{c&&(Xe=c,c.classList.add("player-media"),da(de)&&de.updateVideoElement(),S&&c.setAttribute("pip","false"),Ve==="preview"&&(c.setAttribute("disablePictureInPicture","true"),c.setAttribute("x-yandex-pip","false")))})).add(N.events.ended$.subscribe(()=>{var c;ei(),(c=a==null?void 0:a.onEnded)==null||c.call(a)})).add(N.events.looped$.subscribe(()=>{var c;(c=a==null?void 0:a.onLooped)==null||c.call(a)})).add(N.events.started$.subscribe(async()=>{var x,R;da(de)&&await(de==null?void 0:de.revealPictureInPicture());let c=N.info.muted$.getValue();(x=a==null?void 0:a.onStarted)==null||x.call(a),(R=ke.onStarted)==null||R.call(ke,c)})).add(N.events.willSeek$.subscribe(({from:c,to:x})=>{var R;(R=a==null?void 0:a.onSeek)==null||R.call(a,c,x)})).add(N.events.autoplaySoundProhibited$.subscribe(()=>{var c;(c=a==null?void 0:a.onAutoplaySoundProhibited)==null||c.call(a)})).add(N.info.position$.subscribe(c=>{var R;let x=N.info.duration$.getValue();isFinite(x)&&x>0&&((R=a==null?void 0:a.onTimeupdate)==null||R.call(a,x,c),ye.setPosition(c,x))})).add(N.events.fatalError$.subscribe(c=>{var x;(x=a==null?void 0:a.onCrashed)==null||x.call(a,c?`${c.id}: ${c.message}`:void 0)})).add(N.events.fetcherRecoverableError$.subscribe(c=>{var x;(x=a==null?void 0:a.onRecoverableError)==null||x.call(a,c?`${c.id}: ${c.message}`:void 0)})).add(N.events.loadedMetadata$.subscribe(()=>{It.state.loadedMetadata$.set(!0)})).add(N.info.is3DVideo$.subscribe(c=>{It.ui.is3DVideo.set(c)})).add(N.info.isEnded$.subscribe(c=>{S&&(c?(k!=null&&k.getValue()&&ze.add(Kl),ze.add("PLAY_BUTTON")):ze.remove("PLAY_BUTTON"))})).add(N.info.liveTime$.subscribe(c=>{var x;(x=a==null?void 0:a.onLiveTime)==null||x.call(a,c)})).add(N.info.isStalled$.subscribe(c=>{var x;(x=a==null?void 0:a.onStalledChanged)==null||x.call(a,c)})).add(N.info.isLiveEnded$.subscribe(c=>{var x;return c&&((x=a==null?void 0:a.onLiveEnded)==null?void 0:x.call(a))})).add(ye.events.loadStarted$.subscribe(()=>{var c,x;return(x=(c=a==null?void 0:a.adsInfo)==null?void 0:c.onLoadStarted)==null?void 0:x.call(c)})).add(ye.events.loadEnded$.subscribe(()=>{var c,x;return(x=(c=a==null?void 0:a.adsInfo)==null?void 0:c.onLoadEnded)==null?void 0:x.call(c)})).add(ye.events.loadError$.subscribe(()=>{var c,x;return(x=(c=a==null?void 0:a.adsInfo)==null?void 0:c.onLoadError)==null?void 0:x.call(c)})).add(ye.events.init$.subscribe(()=>{var c,x;return(x=(c=a==null?void 0:a.adsInfo)==null?void 0:c.onInit)==null?void 0:x.call(c)})).add(ye.events.ready$.subscribe(()=>{var c,x;return(x=(c=a==null?void 0:a.adsInfo)==null?void 0:c.onReady)==null?void 0:x.call(c)})).add(ye.events.started$.subscribe(c=>{var x,R;return(R=(x=a==null?void 0:a.adsInfo)==null?void 0:x.onStarted)==null?void 0:R.call(x,c)})).add(ye.events.timeRemained$.subscribe(c=>{var x,R;return(R=(x=a==null?void 0:a.adsInfo)==null?void 0:x.onTimeRemained)==null?void 0:R.call(x,c)})).add(ye.events.ended$.subscribe(c=>{var x,R;return(R=(x=a==null?void 0:a.adsInfo)==null?void 0:x.onCompleted)==null?void 0:R.call(x,c)})).add(ye.events.empty$.subscribe(()=>{var c,x;return(x=(c=a==null?void 0:a.adsInfo)==null?void 0:c.onEmpty)==null?void 0:x.call(c)})).add(ye.events.clicked$.subscribe(c=>{var x,R;return(R=(x=a==null?void 0:a.adsInfo)==null?void 0:x.onClicked)==null?void 0:R.call(x,c)})).add(ye.events.closed$.subscribe(c=>{var x,R;return(R=(x=a==null?void 0:a.adsInfo)==null?void 0:x.onClosed)==null?void 0:R.call(x,c)})).add(ye.events.error$.subscribe(c=>{var x,R;return(R=(x=a==null?void 0:a.adsInfo)==null?void 0:x.onError)==null?void 0:R.call(x,c)})).add(ye.events.paused$.subscribe(()=>{var c,x;return(x=(c=a==null?void 0:a.adsInfo)==null?void 0:c.onPaused)==null?void 0:x.call(c)})).add(ye.events.resumed$.subscribe(()=>{var c,x;return(x=(c=a==null?void 0:a.adsInfo)==null?void 0:c.onResumed)==null?void 0:x.call(c)}));let ii=new qf,ci=()=>{var pt,Dt,Wt;let{debugLog:c}=ae,x,R="#9df7b7",ie="#efd169";if(c&&c!==!0){let{colors:Ht}=c;x=c.tag,R=(pt=Ht==null?void 0:Ht[0])!=null?pt:R,ie=(Wt=(Dt=Ht==null?void 0:Ht[1])!=null?Dt:Ht==null?void 0:Ht[0])!=null?Wt:ie}let He=x?`: ${x}`:"";ii.add(N.events.log$.subscribe(Ht=>{console.debug(`%c sdk${He} `,`background:${R};`,`sdk component: ${Ht.component}`,Ht.message)})).add(Be.log$.subscribe(Ht=>{console.debug(`%c ui${He} `,`background:${ie};`,`ui component: ${Ht.component}.`,Ht.message)}))},xo=()=>{ii.unsubscribe()},uo=(c,x)=>{te.log("start camera manual rotation",{mx:c,my:x}),N.startCameraManualRotation(c,x)},jt=(c=!1)=>{te.log("stop camera manual rotation",{immediate:c}),N.stopCameraManualRotation(c)},wi=(c,x,R)=>{te.log("move camera focus px",{xpx:c,ypx:x,dt:R}),N.moveCameraFocusPX(c,x,R)},Zi=()=>{N.holdCamera()},$t=()=>{N.releaseCamera()},gt=mr(N.info.position$.getValue(),c=>{let x,R,ie=()=>{let He=N.info.playbackState$.getValue(),pt=N.info.isLive$.getValue(),Dt=N.info.duration$.getValue(),Wt=N.info.position$.getValue();if(He&&[bd.PLAYING,bd.PAUSED].includes(He)){let Ht=pt?Wt-Dt:N.getExactTime();Ht!==R&&c(Ht),R=Ht}x=requestAnimationFrame(ie)};return ie(),()=>cancelAnimationFrame(x)}),Ci=ti(N.info.playbackState$),Vo=ti(N.info.currentBuffer$),q=ti(N.info.isEnded$),Bt=ti(N.info.isLive$),di=ae.features.playbackRate?ti(N.info.canChangePlaybackSpeed$):mr(!1),Kt=ti(N.info.liveBufferTime$),ft=ti(N.info.volume$),nt=ti(N.info.muted$),ut=Vc(N.info.predefinedQualityLimitType$.pipe(p1(c=>c===ns.TRAFFIC_SAVING)),N.info.predefinedQualityLimitType$.getValue()===ns.TRAFFIC_SAVING),vi=Vc(N.info.predefinedQualityLimitType$.pipe(p1(c=>c===ns.HIGH_QUALITY)),N.info.predefinedQualityLimitType$.getValue()===ns.HIGH_QUALITY),Ot=ti(N.info.autoQualityLimitingAvailable$),Xn=ti(N.info.availableQualities$),Si=ti(N.info.availableQualitiesFps$),po=ti(N.info.chromecastState$),Ai=ti(N.info.chromecastDeviceName$),bt=ti(N.info.currentFormat$),Mi=ti(N.info.throughputEstimation$),Go=ti(N.info.videoBitrate$),un=ti(N.info.intrinsicVideoSize$),Ti=ti(N.info.duration$),Xi=ti(N.info.isAudioAvailable$),Ei=null,Yo=N.info.isBuffering$,Mn=mr(Yo.getValue(),c=>{let x=Yo.subscribe(R=>{R&&Ei===null?Ei=window.setTimeout(()=>{c(Yo.getValue()),Ei=null},ae.loaderDelay):c(R)});return()=>{x.unsubscribe(),Ei&&clearTimeout(Ei)}}),wo=()=>{Ei&&clearTimeout(Ei),Ei=null},Ro=mi([Ti,Bt],([c,x])=>x?-c:c),fo=mi([Ci],([c])=>c===bd.PLAYING),mo=ti(N.info.atLiveEdge$),jo=ti(N.info.atLiveDurationEdge$),Ln=ti(N.info.position$),Jn=mi([Ln,Ti],([c,x])=>isFinite(c)&&isFinite(x)&&!!x),er=mi([po],([c])=>c===F2.CONNECTED),tr=ti(N.info.availableVideoStreams$),Or=ae.features.audioLanguages?ti(N.info.availableAudioStreams$):mr([]),Vn=ti(N.info.currentVideoStream$),rs=ti(N.info.currentAudioStream$),Dr=c=>{c.language&&Wp(c.language),N.setVideoStream(c)},Hi=c=>{c.language&&Wp(c.language),N.setAudioStream(c)},pn=c=>{let x;if(c.length===1&&(x=c.at(0)),x!=null||(x=c.find(ie=>"isDefault"in ie&&ie.isDefault)),x)return x;let R=$h();return R&&(x=c.find(({language:ie})=>R===ie)),x!=null||(x=c.at(0)),x},Zo=!1;Te.add(N.info.availableAudioStreams$.subscribe(c=>{if(!Zo&&c.length){let x=pn(c);x&&(N.setAudioStream(x),Zo=!0)}}));let fn=!1;Te.add(N.info.availableVideoStreams$.subscribe(c=>{if(!fn&&c.length){let x=pn(c);x&&(N.setVideoStream(x),fn=!0)}}));let vo=re(void 0),mn=ti(N.info.isAutoQualityEnabled$,c=>c&&vo.set(void 0)),Rn=ti(N.info.currentQuality$,()=>vo.set(void 0)),Hr=mi([vo,Rn],([c,x])=>c!=null?c:x),gr=mi(bt,c=>c!==$d.MPEG),Fr=mi([Xn,Si,mn,Hr,gr],([c,x,R,ie,He])=>{let pt=[];He&&pt.push({value:"auto",displayValue:At("auto_quality_option"),selected:R});let Dt=c.filter(Wt=>!K2(Wt));for(let Wt of Dt){let Ht=x[Wt];pt.push({value:Wt,displayValue:`${Wt}${Ht?a1(Ht):""}`,selected:R?!1:Wt===ie})}return pt}),vn=ti(N.info.currentPlaybackRate$),Nn=mi([vn,mo,jo],([c,x,R])=>{let ie=R||S?1:ae.controls.playbackRateMin,He=x?1:ae.controls.playbackRateMax,pt=ae.controls.playbackRateStep,Dt=[];for(let Wt=ie;Wt<=He;Wt+=pt)Dt.push({value:Wt,displayValue:Wt===1?At("playback_rate_1"):At("playback_rate",{multiplier:Wt.toString(10)}),selected:c===Wt});return Dt}),it={displayValue:At("subtitles_off"),value:du,language:""},Ut=re({...it}),Bn=ae.features.subtitles?ti(N.info.availableTextTracks$):mr([]),Fi=uh(),ir=mi([Bn,Ut],([c,x],R)=>{var pt;let ie=[],He=c.find(({id:Dt})=>Dt===x.value);if(He!=null&&He.url){let[,Dt]=(pt=Fi.find(He.url))!=null?pt:[];if(Dt){R(Dt);return}X.download(He.url).then(Wt=>{if(!Wt||X.isDestroyed())return;let Ht=new l1,$s=He.language;if($s){let n0=!!He.isAuto,r0=Ht.parse(Wt,$s);ie.push({lang:$s,subtitles:r0,isAuto:n0,id:He.id})}Fi.add(He.url,ie),$e(Ut).value===x.value&&R(ie)}).catch(Wt=>{var Ht;(Ht=ce==null?void 0:ce.oneStat)==null||Ht.logError({errorType:"Subtitles download",fatal:!1}),ge==null||ge.report(Wt,{errorType:"Subtitles download",fatal:!1})})}R(ie)}),On=mi([vn,fo,Ut],([c,x,R],ie)=>{let Dt;if(N.info.isLive$.getValue()&&x&&R.value!==it.value){let Ht=()=>{let $s=1e3/(3*c);Dt=setTimeout(Ht,$s),ie(Date.now())};return Ht(),()=>clearTimeout(Dt)}}),gn=mi([Bn,Ut],([c,x])=>{if(!c.length)return[];let R=[];for(let{language:ie,isAuto:He,id:pt}of c){let Dt=ie&&su(ie);ie&&Dt&&R.push({displayValue:He?At("subtitles_auto",{language:Dt}):Dt,value:pt,selected:(x==null?void 0:x.value)===pt,isAuto:He,language:ie})}return R.length?(R.unshift({...it,selected:(x==null?void 0:x.value)===it.value}),R):[]}),Ui={available:[],prev:[]},Xo=()=>{var x,R;let c=N.experimental.getCurrentTime$.getValue();return(R=(x=c==null?void 0:c())!=null?x:Xe==null?void 0:Xe.currentTime)!=null?R:0},No=mi([gt,Ut,ir,On],([c,x,R,ie])=>{var pt;let He=N.info.isLive$.getValue();if(He&&Ui.prev!==R){let Dt=R.find(({id:Ht})=>Ht===x.value),Wt=Ui.prev.find(({id:Ht})=>Ht===x.value);if(Dt){let Ht={...Dt,subtitles:[...(pt=Wt==null?void 0:Wt.subtitles)!=null?pt:[],...Dt.subtitles]};Ui.available=[Ht],Ui.prev=R}}if(x&&x.value!==it.value){let Dt=He?Xo():c,Wt=He?Ui.available:R;return u1(Dt,x,Wt,He)}}),hn=mi([No],([c])=>c!=null&&c.texts?c.texts:[]);Te.add(Ut.subscribe(c=>{var x,R;if(c.value===it.value)(x=a==null?void 0:a.onSubtitleOff)==null||x.call(a);else{let ie=Object.entries(ru).find(([He,pt])=>pt===c.displayValue);(R=a==null?void 0:a.onSubtitleOn)==null||R.call(a,ie?ie[0]:"")}}));let hr=re(!0),_r=mi([Vo,Ro,Ln,Kt],([c,x,R,ie])=>{var Wt;let He=(Wt=c==null?void 0:c.end)!=null?Wt:0;if(!ie)return He/x;let Dt=-R+ie-x;return(He-Dt)/x}),_n=ti(N.info.availableSources$),Ur=mi([_n],([c])=>Object.keys((c==null?void 0:c[$d.MPEG])||{}).length>0),bn=()=>{var R,ie,He;let c=Object.keys(((ie=(R=N.info.availableSources$)==null?void 0:R.getValue())==null?void 0:ie[$d.MPEG])||{}),x=W2(c)||J2.Q_144P;return(He=qe.sources[$d.MPEG])==null?void 0:He[x]},zr=()=>{var x;let c=bn();if(c)te.log("download video",{url:c}),lh(c,((x=qe==null?void 0:qe.meta)==null?void 0:x.title)||"video");else{let R="There is no URL for download video";te.log("download video",{message:R}),Z({message:R})}},or=()=>{Z({message:"toggle muted"});let c=N.info.muted$.getValue();N.info.volume$.getValue()===0&&!c?Dn(nr()):rr(!c)},br=()=>{var c;if(It.ui.settingsMenu.visible$.set(!1),!$e(It.ui.settingsSubMenu.visible$)){let x=$e(It.ui.settingsMenu.ref$);if((c=a==null?void 0:a.uiInfo)!=null&&c.onSettingsMenu&&x){let ie=dl(x),He={top:0,left:0,bottom:0,right:0};a.uiInfo.onSettingsMenu({visible:!1,size:ie,position:He,name:"settings"})}}te.log("close settings menu")},Jo=async(c,x=()=>Promise.resolve())=>{var He;It.ui.settingsMenu.openedByBtnKeyboard$.set(!!c),It.ui.settingsMenu.visible$.set(!0),await x();let R=$e(It.ui.settingsMenu.ref$),ie=Fs();if((He=a==null?void 0:a.uiInfo)!=null&&He.onSettingsMenu&&R&&ie){let Dt=dl(R),Wt=vs(R,ie);a.uiInfo.onSettingsMenu({visible:!0,size:Dt,position:Wt,name:"settings"})}te.log("open settings menu",{wasOpenedByKeyboard:c})},zt=(c,x=!1)=>{var pt;It.ui.settingsSubMenu.visible$.set(!1);let R=$e(It.ui.settingsMenu.ref$),ie=Fs(),He=$e(It.ui.settingsMenu.visible$);if((pt=a==null?void 0:a.uiInfo)!=null&&pt.onSettingsMenu&&R&&ie)if(He&&!x){let Wt=dl(R),Ht=vs(R,ie);a.uiInfo.onSettingsMenu({visible:!0,size:Wt,position:Ht,name:"settings"})}else{let Wt=dl(c),Ht={top:0,left:0,bottom:0,right:0},$s=$e(It.ui.settingsSubMenu.name$);a.uiInfo.onSettingsMenu({visible:!1,size:Wt,position:Ht,name:$s})}te.log("close settings sub menu")},Co=(c,x)=>{var ie;It.ui.settingsSubMenu.visible$.set(!0),It.ui.settingsSubMenu.ref$.set(x),It.ui.settingsSubMenu.name$.set(c);let R=Fs();if((ie=a==null?void 0:a.uiInfo)!=null&&ie.onSettingsMenu&&x&&R){let pt=dl(x),Dt=vs(x,R);a.uiInfo.onSettingsMenu({visible:!0,name:c,size:pt,position:Dt})}te.log("open settings sub menu",{name:c})},nr=()=>{var x;let c=Math.max(ae.volumeMinRestore,(x=Rc())!=null?x:0);return c===0?ae.volumeDefault:c},Dn=c=>{let x=c===0?nr():c,R=N.info.muted$.getValue();Z({message:`set volume, volume: ${c}, preferredVolume: ${x}`});let ie=!l||_e.is("ads");R&&c>0&&ie&&(R=!1,Up(!1)),N.setVolume(c,R),ye.setVolume(c),Bp(x)},rr=c=>{let x=N.info.volume$.getValue();Z({message:`set muted, currentVolume: ${x}, mute: ${c}`});let R=_e.is("ads");if(N.setMuted(c,R),ye.setVolume(c?0:x),(!R||!c)&&Up(c),!c&&x===0){let ie=nr();N.setVolume(ie),Bp(ie),ye.setVolume(ie)}},_i=re(!1),$r=c=>{var x,R;te.log("set looped",{isLooped:c}),_i.set(c),N.setLooped(c),(R=(x=a==null?void 0:a.uiInfo)==null?void 0:x.onLoopedChanged)==null||R.call(x,c)};$r(G);let St=()=>{var c,x;(x=(c=a==null?void 0:a.uiInfo)==null?void 0:c.onReportProblem)==null||x.call(c)},ai=(c,x=!1)=>{var R;Z({message:`set autoplayNextEnabled, value: ${c}`}),te.log("set autoplay next enabled",{autoplayNextEnabled:c}),It.ui.autoplayNextEnabled$.set(c),wh(c),x&&((R=a==null?void 0:a.onSetAutoplayNextEnabled)==null||R.call(a,c))},en=c=>{Z({message:`set timerNextVideoRunning, value: ${c}`}),te.log("set timer next video running",{timerNextVideoRunning:c}),It.ui.timerNextVideoRunning$.set(c)},tn=(c=!0)=>{var ie;let x=!0;if(c&&(a!=null&&a.onPrevVideoClick))try{x=(ie=a==null?void 0:a.onPrevVideoClick)==null?void 0:ie.call(a)}catch(He){Z({message:"onPrevVideoClick callback failed to execute"})}if(!x)return;c&&Bo("prev")||Y()},$n=(c=!0)=>{var ie;let x=!0;if(c&&(a!=null&&a.onNextVideoClick))try{x=(ie=a==null?void 0:a.onNextVideoClick)==null?void 0:ie.call(a)}catch(He){Z({message:"onNextVideoClick callback failed to execute"})}if(!x)return;c&&Bo("next")||ne()},Bo=c=>{let{isMobile:x,features:{playbackStatusNextVideoShow:R,playbackStatusShow:ie}}=ae;return R&&ie&&!x?(It.ui.aboutToGoNextVideo.set(c),It.ui.userActionsDisabled.set(!0),!0):!1},lo=()=>{var c;(c=a==null?void 0:a.onNextVideoAnnouncementShow)==null||c.call(a)},Ji=()=>{var c;(c=a==null?void 0:a.onNextVideoAnnouncementClick)==null||c.call(a)},Hn=()=>{var c;(c=a==null?void 0:a.onNextVideoAnnouncementAuto)==null||c.call(a)},yr=()=>{var c;(c=a==null?void 0:a.onNextVideoAnnouncementCancel)==null||c.call(a)},xr=()=>{N.prepare()},Wr=()=>{Zn(It);let c=$e(It.ui.controls.disabledControls$),x=$e(It.playerPhase),R={playerPhase:x,isInteractive:S,isVideoEnded:!1,action:"none"};if(c.has("PLAY_BUTTON"))return;if(Z({message:"toggle play"}),x==="ads"){R.action="play",te.log("toggle adman play",R),ye.togglePlay();return}let ie=()=>{var pt;Z({message:"toggle play, call player.play"}),R.action="play",N.play(),(pt=a==null?void 0:a.onPlay)==null||pt.call(a)},He=()=>{var pt;Z({message:"toggle play, call player.pause"}),R.action="pause",N.pause(),(pt=a==null?void 0:a.onPause)==null||pt.call(a)};if(N.info.isEnded$.getValue()){if(Z({message:"toggle play, video ended, seek to 0"}),kt.next(),Mt.next(gs.REWIND),S){A==null||A();return}N.seekTime(0),ie()}else N.info.playbackState$.getValue()!==bd.PLAYING?ie():He();te.log("toggle play",R)},et=(c,{changeReason:x="default",appliesTo:R="to-video"}={})=>{Z({message:`set quality, quality: ${c}`}),te.log("set quality",{quality:c}),N.setAutoQuality(c==="auto"),c!=="auto"?(ae.features.qualityDetailsSubMenuEnabled?(Nc({type:"exact_quality",quality:c,videoId:i},R),Gl(),N.setPredefinedQualityLimits(ns.UNKNOWN)):Op(i,c),vo.set(c),N.setQuality(c)):ae.features.qualityDetailsSubMenuEnabled?x==="default"&&(eo("auto_quality",R),$e(ut)&&Pt(!1),$e(vi)&&gi(!1)):Gl()},Pt=(c,x="as-default")=>{Z({message:`set trafficSavingEnabled, value: ${c}`}),te.log("set traffic saving enabled",{trafficSavingEnabled:c});let R=c?ns.TRAFFIC_SAVING:ns.UNKNOWN;ae.features.qualityDetailsSubMenuEnabled?(So(R,x),Ql(!1)):(N.setPredefinedQualityLimits(R),Ql(c))},gi=(c,x="as-default")=>{Z({message:`set highQualityEnabled, value: ${c}`}),te.log("set high quality enabled",{highQualityEnabled:c}),So(c?ns.HIGH_QUALITY:ns.UNKNOWN,x)},So=(c,x)=>{c!==ns.UNKNOWN&&($e(Ot)&&!$e(mn)&&et("auto",{appliesTo:x,changeReason:"limit-changed"}),eo(c,x)),N.setPredefinedQualityLimits(c)},eo=(c,x)=>{Nc({type:c,videoId:i},x),x==="as-default"&&Nc({type:c,videoId:i},"to-video")},go=c=>{te.log("set playback rate",{playbackRate:c}),N.setPlaybackRate(c),ae.features.saveRate&&le&&!N.info.isLive$.getValue()&&yh(c)},ho=()=>{let c=$e(Nn),x=c.findIndex(({selected:ie})=>ie);if(x===c.length-1)return;let R=c[x+1];go(R.value)},on=()=>{let c=$e(Nn),x=c.findIndex(({selected:ie})=>ie);if(x===0)return;let R=c[x-1];go(R.value)},_o=(c={...it,selected:!1})=>{te.log("set subtitles",{...c}),c.value!==it.value&&Je.next(c.isAuto?c.value+"_auto":c.value),Ut.set(c),Kp(c.value===it.value?void 0:c.language)},zi=()=>{te.log("toggle subtitles");let c=$e(gn),x=$e(Ut),R=$e(Nt);if((x==null?void 0:x.value)===it.value){let ie=c.filter(He=>He.value!==it.value).find(He=>He.value===R)||c[1];_o(ie)}else _o()},Wi=re(!0),Oo=c=>{Wi.set(c)},to=(c,x,R=!0)=>{var ie;if(Z({message:`seek to time, time: ${c}`}),te.log("seek to time",{time:c,action:x,forcePrecise:R}),Mt.next(x),N.info.isLive$.getValue()){let He=N.info.duration$.getValue(),pt=Math.min(0,He+c);N.seekTime(pt,R)}else{if(k!=null&&k.getValue())return;N.info.isEnded$.getValue()&&(Z({message:"seek after ended, call callbacks.onPlay"}),(ie=a==null?void 0:a.onPlay)==null||ie.call(a)),N.seekTime(Uo(c),R)}},Do=c=>{Z({message:`seek to episode start time: ${c}`}),te.log("seek to episode start time",{time:c}),to(c,gs.EPISODE,!0)},yn=(c,x)=>{Z({message:`seek to percent, percent: ${c}`}),te.log("seek to percent",{percent:c,action:x});let R=$e(Ro)*c;to(R,x,!1)},wr=c=>{Z({message:`seek external, time: ${c}`}),te.log("seek external",{time:c}),Mt.next(gs.UNKNOWN),N.seekTime(N.info.isLive$.getValue()?-c:c)},qr=c=>{var ie,He;let x=(ie=c.max)!=null?ie:"none",R=(He=c.min)!=null?He:"none";Z({message:`set auto quality limitation. Max: ${x}. Min: ${R}`}),te.log("set auto quality limits",{max:x,min:R}),N.setAutoQualityLimits(c)},Kr=c=>{Z({message:`seek external to episode start time: ${c}`}),te.log("seek external to episode start time",{time:c}),to(c,gs.EPISODE,!0)},sr=c=>{Z({message:`set playback rate to: ${c}`}),te.log("set playback rate external",{playbackRate:c}),N.setPlaybackRate(c)},Cr=re(void 0),xn=re(!1),qi=c=>{Z({message:`start scrubbing, progress: ${c}`}),te.log("start scrubbing",{progress:c}),xn.set(!0),Fn(c)},Fn=c=>{Cr.set(c)},ar,Sr,lr=()=>{Cr.set(void 0),xn.set(!1)},je=()=>{clearTimeout(Sr),clearTimeout(ar),ar=window.setTimeout(()=>{lr()},500),Xe==null||Xe.removeEventListener("seeked",je)},Zt=c=>{Z({message:`complete scrubbing, progress: ${c}`}),te.log("complete scrubbing",{progress:c}),yn(c,gs.SLIDER),$e(It.ui.isMobile)&&$e(It.state.currentFormat$)===$d.HLS?(Xe==null||Xe.addEventListener("seeked",je),Sr=window.setTimeout(()=>{je()},300)):lr()},pe=mi([gt,Ro,Cr],([c,x,R],ie)=>{ie(Q2(R)?R*x:c)}),yt=re(!1),ri=()=>{yt.set(!0)},Li=()=>{yt.set(!1)},bi=re({width:0,height:0}),Fe=mi([bi],([{width:c}],x)=>{let R=i1(c);x(R)}),Tt=re(!1),hi=K.filter(c=>dh(c)),Ho=mi([Fe,Tt],([c,x])=>x?hi.filter(R=>!R.hideOnMobile):hi.filter(R=>{var ie;return!((ie=R.hideOnDesktopGridTypes)!=null&&ie.includes(c))})),Vi=re(K.filter(c=>ch(c))),Un=mi([Vi,Fe],([c,x])=>c.filter(R=>{var ie;return!((ie=R.hideOnDesktopGridTypes)!=null&&ie.includes(x))})),Tr=mi([Un,Ho],([c,x])=>[...ae.features.additionalButtonsDesktopControlPanelRight?c.filter(R=>R.type==="desktop-control-panel-right"):[],...ae.features.additionalButtons?x.map((R,ie)=>{var He;return{id:ie,weight:ie,type:"desktop-control-panel-right",testId:R.testId,icon:R.iconUrl,onClick:R.onClick,ariaLabel:(He=R.ariaLabel)!=null?He:R.tooltip,tooltipText:R.tooltip}}):[]]),Fo=re(W),Ki=mi([Fo],([c])=>ae.features.additionalSettingsMenuItems?c.map(x=>x.type==="SWITCH"?{...x,onClick:x.onChangeEnabled}:x):[]),Ri=(c,x)=>{let R=$e(Vi).map(ie=>ie.id!==c?ie:{...ie,...x});Vi.set(R)},nn=c=>{let x=$e(Vi);if(x.some(R=>R.id===c.id)){Z({message:`Additional button with id: "${c.id}" was exist! Can't add more with the same id`});return}x.push(c),Vi.set(x)},dr=c=>{let x=$e(Vi);if(!x.some(R=>R.id===c)){Z({message:`Can't find additional button with id: "${c}"! Can't remove item with this id`});return}x=x.filter(R=>R.id!==c),Vi.set(x)},cr=c=>{Mt.next(gs.LIVE),Z({message:"live switch to low latency "+c}),te.log("live switch to low latency "+c),N.setLiveLowLatency(c)},To=(c,x)=>{let R=$e(Fo).map(ie=>ie.id!==c?ie:{...ie,...x});Fo.set(R)},Ds=c=>{let x=$e(Fo);if(x.some(R=>R.id===c.id)){Z({message:`Settings menu item with id: "${c.id}" was exist! Can't add more with the same id`});return}x.push(c),Fo.set(x)},ka=c=>{let x=$e(Fo);if(!x.some(R=>R.id===c)){Z({message:`Can't find settings menu item with id: "${c}"! Can't remove item with this id`});return}x=x.filter(R=>R.id!==c),Fo.set(x)},dt=re(U),_t=mi([dt],([c])=>ae.features.additionalContextMenuItems?c:[]),io=(c,x)=>{let R=$e(dt).map(ie=>ie.id!==c?ie:{...ie,...x});dt.set(R)},rn=c=>{let x=$e(dt);if(x.some(R=>R.id===c.id)){Z({message:`Context menu item with id: "${c.id}" was exist! Can't add more with the same id`});return}x.push(c),dt.set(x)},oo=c=>{let x=$e(dt);if(!x.some(R=>R.id===c)){Z({message:`Can't find context menu item with id: "${c}"! Can't remove item with this id`});return}x=x.filter(R=>R.id!==c),dt.set(x)},li=mi([Tt,Yt],([c,x],R)=>{R(c&&x)}),Ii=()=>{Mt.next(gs.LIVE),Z({message:"switch to active live"}),te.log("switch to active live"),N.seekTime(0),N.info.playbackState$.getValue()!==bd.PLAYING&&It.actions.internal.togglePlay()},Hs=()=>{te.log("skip adman"),ye.skip()},Pa=(c=!0)=>{var ie;Zn(It),Z({message:`switch from ads to video, callPlay: ${c}`}),te.log("switch from ads to video",{callPlay:c}),me.set("video"),c&&N.play(),l&&rr(!0);let x=(ie=$e(se))==null?void 0:ie.muted,R=!N.info.muted$.getValue();x!==void 0&&!R&&rr(x),se.set(void 0)},Au=()=>{Zn(It),Z({message:"switch from video to ads"}),te.log("switch from video to ads"),It.actions.internal.pause(),ei(),me.set("ads")},Gd=c=>{Zn(It);let x=c?"LiveWaitingStart":"thumb";te.log("set live waiting start",{state:c,playerPhase:x}),me.set(x)},Mu=c=>{Zn(It);let x=c?"LiveWaitingRecover":"thumb";te.log("set live waiting recover",{state:c,playerPhase:x}),me.set(x)},Yd=c=>{Zn(It);let x=c?"LiveWaitingRecord":"thumb";te.log("set live waiting record",{state:c,playerPhase:x}),me.set(x)},Lu=()=>(Zn(It),te.log("get debug text data"),sh(N,qe,It,Le.getTraceId())),jd=()=>(Zn(It),JSON.stringify(Le.getFinishedSpans())),Vu=()=>(Zn(It),ah(N,qe,It)),Fs=()=>Xe,Ru=()=>{Z({message:"toggle chromecast"}),te.log("toggle chromecast"),N.toggleChromecast()},gl=c=>{var R;if(Zn(It),N.info.isEnded$.getValue())return;let x=!c;if($e(It.playerPhase)==="ads"){Z({message:`pause ads, internalCall: ${x}`}),te.log("pause ads",{internalCall:x}),ye.pause();return}Z({message:`pause video, internalCall: ${x}`}),te.log("pause video",{internalCall:x}),x&&((R=a==null?void 0:a.onPause)==null||R.call(a)),N.pause()},hl=c=>{var R;Zn(It);let x=!c;if($e(It.playerPhase)==="ads"){Z({message:`play ads, internalCall: ${x}`}),te.log("play ads",{internalCall:x}),ye.play();return}Z({message:`play video, internalCall: ${x}`}),te.log("play video",{internalCall:x}),x&&((R=a==null?void 0:a.onPlay)==null||R.call(a)),N.play()},Zd=c=>{Zn(It);let x=!c;if($e(It.playerPhase)==="ads"){Z({message:"player cannot be stopped during ads via external method"});return}Z({message:`player will be stopped, internalCall: ${x}`}),I==null||I()},Xd=(c,x)=>{Zn(It),Z({message:`first start, show ads: ${c}, internalCall: ${!x}`}),te.log("first start",{showAds:c,external:x}),c?me.set("ads"):(me.set("video"),x?N.play():It.actions.internal.togglePlay())},Aa=()=>(Z({message:"getting time codes"}),f),Jd=()=>{let c=Aa();if(!c||[0,1].includes(c.length))return;let x=N.info.position$.getValue();return c.find(R=>R.time>x)},ec=c=>{let x=c;x||(x=Jd());let R=N.info.position$.getValue();te.log("seek to next episode",{currentTime:R,...x}),x&&(Z({message:"seek to next episode"}),to(x.time,gs.EPISODE,!0))},tc=()=>{let c=Aa();if(!c||[0,1].includes(c.length))return;let x=N.info.position$.getValue(),R=c.findIndex(He=>He.time>x),ie=R===-1?c.length-2:R-2;if(!(ie<0))return c[ie]},Nu=c=>{let x=c;x||(x=tc());let R=N.info.position$.getValue();te.log("seek to prev episode",{currentTime:R,...x}),x&&(Z({message:"seek to prev episode"}),to(x.time,gs.EPISODE,!0))},Bu=()=>(Z({message:"getting preview thumbs data"}),te.log("get preview thumbs data",{...v}),v),Ge=async()=>{let c=de==null?void 0:de.isActive(),x="none";de!=null&&de.isActive()?(x="exit",await(de==null?void 0:de.exit())):(x="request",await(de==null?void 0:de.request())),te.log("toggle picture in picture",{isActive:c,action:x})},si=(c=-90)=>{te.log("rotate video",{alphaDiff:c}),xt.update(x=>x+c)},no=re([]);T==null||T.subscribe(c=>{let x=[];for(let R=0;R<c.length;R++){let{range:[ie,He],subjects:pt}=c[R];R===0&&ie!==0&&x.push({time:0,text:"",interactive:!1,completed:!0}),x.push({time:ie/1e3,text:"",interactive:!0,completed:ae.features.interactiveTimeOpenUri?!pt.length||pt.every(Dt=>Dt.isRemoved):!pt.length}),He!==1/0&&x.push({time:He/1e3,text:"",interactive:!1,completed:!0})}no.set(x)});let Us=re(!1);k==null||k.subscribe(c=>{c&&$e(xn)&&lr()});let Uo=c=>{if(!S)return c;let x=$e(no),R=$e(Ro),He=$e(Ln)/R,pt=x.find(Dt=>Dt.interactive&&!Dt.completed&&Dt.time>He);return typeof(pt==null?void 0:pt.time)=="number"?Math.min(c,pt.time-.05):c},i0=()=>{It.ui.episodes.panelOpened$.set(!1)},o0=()=>{te.log("destroy store"),clearTimeout(Sr),clearTimeout(ar),Te.unsubscribe(),ii.unsubscribe(),N.destroy(),ye.destroy(),ce==null||ce.destroy(),ge==null||ge.destroy(),qt.unsubscribe(),ni==null||ni.disconnect(),ni=null,X.destroy()},It={interfaceLanguage$:Nt,isCyrillicRelatedInterface$:ee,initVideo:Ye,videoId:i,isClip:o,playerPhase:_e,vsid:Ke,state:{positionExact$:gt,positionWithScrubbing$:pe,duration$:Ro,playbackState$:Ci,isPlaying$:fo,isLoaderVisible:Mn,bufferedProgress$:_r,isLive$:Bt,canChangePlaybackSpeed$:di,isActiveLive$:mo,isOldestAvailableLive$:jo,isRewindableLive$:Jn,isEnded$:q,muted$:nt,volume$:ft,trafficSavingEnabled$:ut,highQualityEnabled$:vi,autoQualityLimitingAvailable$:Ot,availableVideoStreams$:tr,availableAudioStreams$:Or,videoStream$:Vn,audioStream$:rs,currentQuality$:Hr,isAutoQualityEnabled$:mn,availableQualities$:Fr,currentPlaybackRate$:vn,availablePlaybackRates$:Nn,currentSubtitle$:Ut,availableTextTracks$:Bn,availableSubtitlesList$:gn,currentSubtitleCaptions$:hn,isAutoSubtitleCaptionVisible$:hr,chromecastState$:po,chromecastDeviceName$:Ai,chromecastConnected$:er,currentFormat$:bt,throughputEstimation$:Mi,videoBitrate$:Go,videoSize$:un,errorLog$:Qe,crashed$:Yt,isAudioAvailable$:Xi,isAudioDisabled:!!l,canDownload:ae.features.download&&!!d,availableSources$:_n,hasMpegSources$:Ur,isInteractive:S,showInteractiveGraph:ae.features.interactiveGraph,showSeekToInteractive:ae.features.seekToInteractive,showPlayPrevChapter:ae.features.interactivePlayPrevChapter,showInteractiveTimeIndicator:ae.features.interactiveTimeIndicator&&!!$e(no).length,interactiveEpisodes$:no,isInteractiveTime$:k?ti(k):re(!1),isInteractiveExpectation$:Us,hasInteractiveBranches:E,playPrevChapterDisabledTooltip:V,looped$:_i,loadedMetadata$:re(!1),isAutoQualityAvailable$:gr},ui:{t:At,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(c=>[...c,re(void 0)],[]):[],disabledControls$:ze},modals:{hotKeyMap:{show:re(!1),data:re({title:"",closeBtnText:"",groups:[]})}},isFullscreen:rt,isFullscreenOpenedByKeyboard:ct,rotateAlpha:xt,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:bi,isMobile:Tt,mobileNotReportControlHidden$:li,mobileUnmuteButtonExpanded:re(!1),mobileUnmuteButtonVisible:re(!1),icon3DVideoVisible:re(!1),scrubbingInProgress:xn,volumeChangingInProgress:yt,is3DVideo:re(!1),currentGridType$:Fe,additionalButtonsDeprecated$:Ho,additionalDesktopControlPanelRightButtons$:Tr,additionalSettingsMenuItems$:Ki,additionalContextMenuItems$:_t,interactiveHideMobileControls:re(!1),overlayContainer$:re(void 0),startedByKeyboard$:re(!1),autoplayNextEnabled$:re(!1),timerNextVideoRunning$:re(!0),settingsMenu:{visible$:re(!1),ref$:re(void 0),openedByBtnKeyboard$:re(!1)},settingsSubMenu:{visible$:re(!1),ref$:re(void 0),name$:re(void 0)},aboutToGoNextVideo:re(void 0),userActionsDisabled:re(!1),hiddenControls:{volume:re(!1),vkLogo:re(!1),pip:re(!1),chromecast:re(!1),settings:re(!1)},isControlsAvailable:Wi,controlBlocks:{topLeft:re(void 0),topRight:re(void 0),middle:re(void 0),bottom:re(void 0),bottomLeft:re(void 0),bottomRight:re(void 0)},videoTitleInfo:re(void 0)},ads:{position:re(0),duration:re(0),playbackState:re("inactive"),canSkip:re(!1),secondsToWatchBeforeSkip:re(0),postrollPassed:re(!1)},webApi:{pictureInPictureApi:de,annotationsApi:ue,slotsApi:xe},actions:{internal:{preload:xr,firstStart:c=>Xd(c,!1),play:()=>hl(!1),pause:()=>gl(!1),togglePlay:Wr,toggleMuted:or,openSettingsMenu:Jo,closeSettingsMenu:br,openSettingsSubMenu:Co,closeSettingsSubMenu:zt,setVolume:Dn,startVolumeChanging:ri,stopVolumeChanging:Li,setVideoStream:Dr,setAudioStream:Hi,setQuality:et,setTrafficSavingEnabled:Pt,setHighQualityEnabled:gi,setPlaybackRate:go,incrementPlaybackRate:ho,decrementPlaybackRate:on,setSubtitle:_o,toggleSubtitle:zi,togglePictureInPicture:Ge,startScrubbing:qi,progressScrubbing:Fn,completeScrubbing:Zt,toggleChromecast:Ru,switchToActiveLive:Ii,switchFromAdsToVideo:Pa,switchFromVideoToAds:Au,skipAd:Hs,setLiveWaitingStart:Gd,setLiveWaitingRecover:Mu,setLiveWaitingRecord:Yd,getDebugTextData:Lu,getTraceTextData:jd,getDebugPanelData:Vu,getVideoElement:Fs,seekTime:(c,x,R)=>to(c,x,R),clearDelayedBufferingCheckTimeout:wo,seekEpisodeStartTime:Do,seekToPercent:yn,getNextEpisode:Jd,seekToNextEpisode:ec,getPrevEpisode:tc,seekToPrevEpisode:Nu,startLogging:ci,stopLogging:xo,startCameraManualRotation:uo,stopCameraManualRotation:jt,moveCameraFocusPX:wi,holdCamera:Zi,releaseCamera:$t,getVideoEpisodes:Aa,getPreviewThumbsData:Bu,downloadVideo:zr,addLanguage:Qp,setLanguage:Qt,nextMovie:tt,videoRotate:si,correctSeekTimeToInteractive:Uo,replayInteractive:A,setLooped:$r,reportProblem:St,setAutoplayNextEnabled:ai,setTimerNextVideoRunning:en,prevVideoClick:tn,nextVideoClick:$n,nextVideoAnnouncementShow:lo,nextVideoAnnouncementClick:Ji,nextVideoAnnouncementAuto:Hn,nextVideoAnnouncementCancel:yr},external:{firstStart:c=>Xd(c,!0),play:()=>hl(!0),pause:()=>gl(!0),stop:()=>Zd(!0),seekTime:c=>wr(c),seekEpisodeStartTime:c=>Kr(c),setPlaybackRate:c=>sr(c),setAutoQualityLimits:c=>qr(c),setMuted:rr,toggleSubtitle:zi,setVolume:Dn,returnFocusToEpisodes:i0,updateAdditionalSettingsItem:To,addAdditionalSettingsItem:Ds,removeAdditionalSettingsItem:ka,updateAdditionalContextItem:io,addAdditionalContextItem:rn,removeAdditionalContextItem:oo,updateAdditionalButton:Ri,addAdditionalButton:nn,removeAdditionalButton:dr,setLiveLowLatency:cr,hideControls:()=>Oo(!1),showControls:()=>Oo(!0)}},callbacks:a,setUiCallbacks:c=>{ke={...c}},getAdmanWrapper:()=>ye,getLogger:()=>Be,getPlayer:()=>N,destroy:o0};return It};function Rr(t,e,i,o){var f;let n=(f=e[i])==null?void 0:f.getBoundingClientRect(),r=o&&!!n&&!!(n.right-n.left),{top:l,left:d,bottom:a,right:p}=vs(e[i],t||void 0);return{left:r?d:0,right:r?p:0,top:r?l:0,bottom:r?a:0,isDisplayed:r}}var ny=["disabledControls$","additionalButtons"],ry=["interactiveTimeIndicator"],cl=(t,e,i,o)=>{if(t){for(let[n,r]of Object.entries(e))if(!ny.includes(n)){let l=o||ry.includes(n);r.set(Rr(t,i,n,l))}}};var uu=async(t,e,i)=>{await $o(),e&&i&&(i.focus(),t.set(!1))};var sy=Se('<svg><!><path fill="var(--btn-color, #fff)" d="M18 10c1.1 0 2 .9 2 2s-.9 2-2 2-2-.9-2-2 .9-2 2-2m-6 4c-1.1 0-2-.9-2-2s.9-2 2-2 2 .9 2 2-.9 2-2 2m-6 0c-1.1 0-2-.9-2-2s.9-2 2-2 2 .9 2 2-.9 2-2 2"></path></svg>');function Kf(t,e){let i=Me(e,["$$slots","$$events","$$legacy","children"]);var o=sy();Ie(o,()=>({xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none","aria-hidden":"true","data-testid":"dots-icon",role:"img",...i}));var n=_(o);be(n,()=>{var r;return(r=e.children)!=null?r:oe}),Ce(),g(o),b(t,o)}function Qf(t,e){D(e,!0);let[i,o]=De(),n=()=>C(a,"$contextMenuVisible$",i),r=m(e,"disabled",3,!1),l=m(e,"ariaLabel",3,""),d=Ee(),a=d.ui.contextMenu.visible$,p=d.ui.contextMenu.openedByBtnKeyboard$,f=d.ui.contextMenu.showContextMenuBtn$,v=d.ui.contextMenu.position$,u=d.ui.contextMenu.btnRef$,$=j(void 0);We(()=>{s($)&&Ct(()=>{u.set(s($))})});let w=k=>{let A=Ls(k),I=Gh(s($));v.set(I),p.set(A),a.set(!n())},y=()=>{f.set(!0)},S=()=>{f.set(!1)},T=h(()=>n()?"opened":"");Vt(t,{get className(){return s(T)},testId:"btn-context-menu",get disabled(){return r()},get ariaLabel(){return l()},click:w,focus:y,blur:S,get ariaExpanded(){return n()},get ref(){return s($)},set ref(k){B($,k,!0)},children:(k,A)=>{Kf(k,{})},$$slots:{default:!0}}),H(),o()}var ay=t=>{t.stopPropagation()},ly=M("<div><!> <div></div> <div></div></div>"),dy={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;}
224
+ }`};function Rf(t,e){F(e,!0),K(t,c2);let i=m(e,"isMobile",3,!1),o=g(()=>e.iconState===o1.CONNECTED),n=g(()=>e.iconState===o1.CONNECTING);var s=Ue(),l=me(s);{var d=p=>{var f=l2(),v=_(f),u=_(v),y=_(u);Se(),h(u);var w=P(u);Se(),h(v);var b=P(v),S=_(b),T=_(S);h(S),Se(),h(b),h(f),O(()=>{Be(y,"fill",r(o)?"#2688EB":"var(--btn-color, #fff)"),Be(w,"fill",r(o)?"#2688EB":"var(--btn-color, #fff)"),Be(T,"fill",r(o)?"#2688EB":"var(--btn-color, #fff)")}),$(p,f)},a=p=>{var f=d2();let v;var u=_(f),y=P(_(u),5);let w;h(u),h(f),O((b,S)=>{v=X(f,0,"svelte-8z1bf5",null,v,b),w=X(y,0,"svelte-8z1bf5",null,w,S)},[()=>({connecting:r(n)}),()=>({hidden:!r(o)})]),$(p,f)};L(l,p=>{i()?p(d):p(a,!1)})}$(t,s),U()}import{noop as p2}from"@vkontakte/videoplayer-shared/es2018";function bd(t,e){F(e,!0);let i=m(e,"ref",15,void 0),o=m(e,"isMobile",3,!1),n=m(e,"click",3,p2),l=Ee().ui.t,d=g(()=>e.state===u2.CONNECTED?l("tooltip_chromecast_on"):l("tooltip_chromecast_off"));Vt(t,{get ariaLabel(){return r(d)},get click(){return n()},testId:"btn-chromecast",get ref(){return i()},set ref(a){i(a)},children:(a,p)=>{Rf(a,{get isMobile(){return o()},get iconState(){return e.state}})},$$slots:{default:!0}}),U()}var f2=A('<div class="tooltip-wrapper svelte-5ygsa2"><div><!></div></div>'),m2={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 Nf(t,e){K(t,m2);let i=m(e,"active",3,!1),o=m(e,"pointer",3,!1),n=m(e,"translateXPx",3,0),s=m(e,"translateYPx",3,0),l=m(e,"leftOffset",3,0),d=m(e,"rightOffset",3,0),a=j(void 0),p=j(void 0);function f(S){if(!r(p))return 0;let{width:T}=r(p).getBoundingClientRect(),E=T/2;return S<E?E+l():S>e.containerWidth-E?e.containerWidth-E-d():S}let v=g(()=>f(n()));var u=f2(),y=_(u);let w;var b=_(y);xe(b,()=>{var S;return(S=e.children)!=null?S:se}),h(y),ot(y,S=>B(p,S),()=>r(p)),h(u),ot(u,S=>B(a,S),()=>r(a)),O(S=>{nt(u,`transform: translate(${r(v)}px, ${s()}px);`),w=X(y,1,"tooltip svelte-5ygsa2",null,w,S),nt(y,`opacity: ${i()?1:0}; visibility: ${i()?"visible":"hidden"}`)},[()=>({active:i(),pointer:o()})]),$(t,u)}var ou=(t,e,i)=>i.filter(o=>o.time<=t*e).pop();var n1=t=>!!(Math.round(Math.abs(t)/90)%2),r1=t=>Math.abs(t)/90%4===1;var v2=A('<div class="preview svelte-1wqg760"></div>'),g2=A('<div class="time svelte-1wqg760"> </div>'),h2=A('<div><!> <div class="episode svelte-1wqg760"><!></div> <!></div>'),_2={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 Bf(t,e){F(e,!0),K(t,_2);let[i,o]=He(),n=()=>C(w,"$rotateAlpha",i),s=()=>C(b,"$playerSize",i),l={MOBILE:150,DESKTOP:278},d=m(e,"time",3,""),a=m(e,"isMobile",3,!1),p=m(e,"videoEpisodes",19,()=>[]),f=m(e,"progress",3,0),v=m(e,"duration",3,0),u=m(e,"isInteractive",3,!1),y=Ee(),w=y.ui.rotateAlpha,b=y.ui.playerSize,S=j(0),T=j(0),E=j(""),M=j(0),I=j(0),k=j(0),R=j(0),Y=g(()=>ou(f(),v(),p())),D=g(()=>n1(n())),H=g(()=>r1(n())),q=g(de),J=g(()=>(r(H)?1:-1)*(r(S)/2-r(T)/2)),W=g(()=>r(J)*-1);We(()=>{(ue=>{B(S,ue.width,!0),B(T,ue.height,!0)})(ve())}),We(()=>{(ue=>{B(E,ue.imgSrc,!0),B(M,ue.imgWidth,!0),B(I,ue.imgHeight,!0),B(k,ue.imgOffsetX,!0),B(R,ue.imgOffsetY,!0)})(Ie(f()))});function de(){var Ke;let ue=a()?l.MOBILE:l.DESKTOP,{isVertical:we}=ie(),Z=30;return(Ke=r(Y))!=null&&Ke.text&&(Z+=16),(we||r(D))&&(Z+=18,Z+=50),Math.min(Math.max(s().height-Z,0),ue)}function ie(){let ue=e.previewThumbsData.frameWidth,we=e.previewThumbsData.frameHeight,Z=we>ue;return{width:ue,height:we,isHorizontal:!Z,isVertical:Z}}function ve(){let{height:ue,isHorizontal:we,isVertical:Z,width:Ke}=ie();return we&&(ue=ue/Ke*r(q),Ke=r(q)),Z&&(Ke=Ke/ue*r(q),ue=r(q)),{width:Ke,height:ue}}function Ie(ue){let we;e.previewThumbsData.isUV?we=Math.floor(v()*ue/e.previewThumbsData.frequency):we=Math.min(e.previewThumbsData.countTotal,Math.max(0,Math.floor(e.previewThumbsData.countTotal*ue)));let Z=Math.floor(we/e.previewThumbsData.countPerImage),Ke=Math.floor(we%e.previewThumbsData.countPerImage/e.previewThumbsData.countPerRow),Xe=we%e.previewThumbsData.countPerRow,Ae=Math.floor(e.previewThumbsData.countPerImage/e.previewThumbsData.countPerRow);!e.previewThumbsData.isUV&&Z===Math.floor(e.previewThumbsData.countTotal/e.previewThumbsData.countPerImage)&&(Ae=Math.floor(e.previewThumbsData.countTotal%e.previewThumbsData.countPerImage/e.previewThumbsData.countPerRow),e.previewThumbsData.countTotal%e.previewThumbsData.countPerImage%e.previewThumbsData.countPerRow>0&&Ae++);let ee=e.previewThumbsData.countPerRow;!e.previewThumbsData.isUV&&Z===Math.floor(e.previewThumbsData.countTotal/e.previewThumbsData.countPerImage)&&e.previewThumbsData.countTotal%e.previewThumbsData.countPerImage>0&&(ee=Math.min(e.previewThumbsData.countPerRow,e.previewThumbsData.countTotal%e.previewThumbsData.countPerImage));let Ce=r(S)*ee,qe=r(T)*Ae,st=-Xe*r(S),ct=-Ke*r(T);return{imgSrc:e.previewThumbsData.links[Z],imgWidth:Ce,imgHeight:qe,imgOffsetX:st,imgOffsetY:ct}}var fe=h2();let re;var ke=_(fe);{var te=ue=>{var we=v2();O(()=>nt(we,`width: ${r(S)}px; height: ${r(T)}px; background-image: url(${r(E)}); background-size: ${r(M)}px ${r(I)}px; background-position: ${r(k)}px ${r(R)}px;
225
+ transform: rotate(${n()}deg) ${r(D)?`translate(${r(J)}px, ${r(W)}px)`:""};
226
+ `)),$(ue,we)};L(ke,ue=>{r(E)&&ue(te)})}var N=P(ke,2),Oe=_(N);{var ye=ue=>{var we=Ue(),Z=me(we);{var Ke=Ae=>{var ee=Xr();O(Ce=>_e(ee,Ce),[()=>z("tooltip_episode_unfinished")]),$(Ae,ee)},Xe=Ae=>{var ee=Xr();O(()=>_e(ee,r(Y).text||"")),$(Ae,ee)};L(Z,Ae=>{u()&&r(Y).completed===!1?Ae(Ke):Ae(Xe,!1)})}$(ue,we)};L(Oe,ue=>{r(Y)&&ue(ye)})}h(N);var he=P(N,2);{var ce=ue=>{var we=g2(),Z=_(we,!0);h(we),O(()=>_e(Z,d())),$(ue,we)};L(he,ue=>{u()||ue(ce)})}h(fe),O(ue=>{re=X(fe,1,"timeline-preview svelte-1wqg760",null,re,ue),nt(fe,`width: ${r(D)?r(T):r(S)}px;`)},[()=>({mobile:a()})]),$(t,fe),U(),o()}var b2=A('<span class="time svelte-1jr6obn"> </span>'),$2=A("<!> <!>",1),y2={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 Of(t,e){var le,De,ze,Le,Ye;F(e,!0),K(t,y2);let[i,o]=He(),n=()=>C(J,"$interactiveEpisodes$",i),s=()=>C(k,"$duration$",i),l=()=>C(I,"$position$",i),d=()=>C(ie,"$isInteractiveExpectation$",i),a=()=>C(de,"$isInteractiveTime$",i),p=()=>C(R,"$isLive$",i),f=()=>C(D,"$isMobile",i),v=()=>C(Y,"$isActiveLive$",i),u=()=>C(M,"$bufferedProgress$",i),y=()=>C(fe,"$disabledControls$",i),w=m(e,"showTimeline",3,!1),b=m(e,"withEpisodes",3,!0),S=m(e,"ref",15,void 0),T=Ee(),E=Ft(),M=T.state.bufferedProgress$,I=T.state.positionWithScrubbing$,k=T.state.duration$,R=T.state.isLive$,Y=T.state.isActiveLive$,D=T.ui.isMobile,H=E.features.episodes&&b()?T.actions.internal.getVideoEpisodes():void 0,q=T.actions.internal.getPreviewThumbsData(),J=T.state.interactiveEpisodes$,W=T.state.isInteractive,de=T.state.isInteractiveTime$,ie=T.state.isInteractiveExpectation$,ve=T.actions.internal.correctSeekTimeToInteractive,Ie=(le=T.callbacks)==null?void 0:le.onDisabledTimelineClick,fe=T.ui.controls.disabledControls$,re=(ze=(De=T.callbacks)==null?void 0:De.uiInfo)==null?void 0:ze.onTimelineMouseEnter,ke=(Ye=(Le=T.callbacks)==null?void 0:Le.uiInfo)==null?void 0:Ye.onTimelineMouseLeave,te=T.ui.t,N=E.features.interactiveResponsiveUi,Oe=g(()=>W?n():H),ye=g(()=>pn(s())),he=g(()=>pn(l())),ce=g(()=>l()/s()),ue=g(()=>d()||a()),we=j(!1),Z=j(""),Ke=j(0),Xe=j(0),Ae=j(0),ee=g(()=>({containerWidth:r(Xe),translateXPx:r(Ke),translateYPx:W&&q?-36:-16,active:r(we)&&w()&&!r(ue)&&!N,pointer:!E.features.timelinePreview||!q||p()})),Ce=te("aria_timeline"),qe=g(()=>te("aria_timeline_value",{position:r(he),duration:r(ye)}));function st(Re){return!ve||!W?Re:ve(Re*s())/s()}function ct(Re){T.actions.internal.startScrubbing(st(Re))}function bt(Re){a()||T.actions.internal.progressScrubbing(st(Re))}function St(Re){T.actions.internal.completeScrubbing(st(Re)),B(we,!1)}function Ge(Re,tt,Pt){qt(Re,tt,Pt),B(we,!0)}function Wt(Re,tt,Pt){qt(Re,tt,Pt),B(we,!0)}function Qt(){B(we,!1)}function qt(Re,tt,Pt){B(Ae,st(Re),!0),B(Ke,tt,!0),Pt&&B(Xe,Pt,!0),B(Z,Nt(Re),!0)}function Nt(Re){let tt=pn((p()?1-Re:Re)*s());return p()?`-${tt}`:tt}var oe=$2(),At=me(oe);Nf(At,ps(()=>r(ee),{get leftOffset(){return e.tooltipLeftOffset},get rightOffset(){return e.tooltipRightOffset},children:(Re,tt)=>{var Pt=Ue(),Mt=me(Pt);{var Je=mi=>{Bf(mi,{get time(){return r(Z)},get isMobile(){return f()},get videoEpisodes(){return r(Oe)},get previewThumbsData(){return q},get progress(){return r(Ae)},get duration(){return s()},get isInteractive(){return W}})},ai=mi=>{var at=b2(),Xt=_(at,!0);h(at),O(()=>_e(Xt,r(Z))),$(mi,at)};L(Mt,mi=>{E.features.timelinePreview&&q&&!p()?mi(Je):mi(ai,!1)})}$(Re,Pt)},$$slots:{default:!0}}));var ge=P(At,2);let be=g(()=>y().has("TIMELINE"));va(ge,{className:"timeline-slider",get isActiveLive(){return v()},get isMobile(){return f()},get ariaLabel(){return Ce},ariaValueMin:0,get ariaValueMax(){return s()},get ariaValueNow(){return l()},get ariaValueText(){return r(qe)},get loadedProgress(){return u()},get filledProgress(){return r(ce)},get handleProgress(){return r(ce)},get videoEpisodes(){return r(Oe)},onPointerDown:ct,onHandleMove:bt,onPointerMove:Wt,onPointerUp:St,onPointerEnter:Ge,onPointerLeave:Qt,get onMouseEnter(){return re},get onMouseLeave(){return ke},get onDisabledClick(){return Ie},get isInteractive(){return W},get disabled(){return r(be)},get hideHandel(){return a()},testId:"progress_bar",onContextMenu:St,get ref(){return S()},set ref(Re){S(Re)}}),$(t,oe),U(),o()}var x2={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 $d(t,e){F(e,!0),K(t,x2);let[i,o]=He(),n=()=>C(a,"$isMobile",i),s=m(e,"position",3,0),l=m(e,"duration",3,0),d=Ee(),a=d.ui.isMobile,p=d.ui.t,f=g(()=>pn(l())),v=g(()=>pn(s())),u=g(()=>s()/l()),y=g(()=>p("aria_timeline_value",{position:r(v),duration:r(f)})),w=g(()=>Math.round(r(u)*100));va(t,{className:"timeline-ads-slider",ariaValueMin:0,get ariaValueMax(){return l()},get ariaValueNow(){return r(w)},get ariaValueText(){return r(y)},get filledProgress(){return r(u)},hideHandel:!0,get squareBorders(){return n()}}),U(),o()}var w2=A("<div><!></div>"),C2=A("<div></div>"),S2={hash:"svelte-41cp6d",code:".timeline.svelte-41cp6d {position:relative;pointer-events:all;display:flex;align-items:center;bottom:0;width:100%;min-width:86px;padding:3px var(--timeline-padding-horizontal) 4px;box-sizing:border-box;}.timeline.mobile.svelte-41cp6d {height:16px;padding:6px 12px 7px;margin-top:6px;}.withoutPadding.svelte-41cp6d {padding:0;}.timeline-stub.svelte-41cp6d {width:100%;min-width:20px;}.timeline-stub.mobile.svelte-41cp6d {height:8px;}"};function ga(t,e){F(e,!0),K(t,S2);let[i,o]=He(),n=()=>C(y,"$isLive$",i),s=()=>C(S,"$isMobile",i),l=()=>C(b,"$adPosition",i),d=()=>C(w,"$adDuration",i),a=m(e,"isAds",3,!1),p=m(e,"isHidden",3,!1),f=m(e,"needPadding",3,!0),v=m(e,"ref",15,void 0),u=Ee(),y=u.state.isLive$,w=u.ads.duration,b=u.ads.position,S=u.ui.isMobile,T=g(()=>!p()&&(!n()||n()&&e.canRewindLive&&e.isRewindableLive||a()));var E=Ue(),M=me(E);{var I=R=>{var Y=w2();let D;var H=_(Y);{var q=W=>{$d(W,{get position(){return l()},get duration(){return d()}})},J=W=>{Of(W,{get tooltipLeftOffset(){return e.tooltipLeftOffset},get tooltipRightOffset(){return e.tooltipRightOffset},get showTimeline(){return r(T)},get withEpisodes(){return e.withEpisodes},get ref(){return v()},set ref(de){v(de)}})};L(H,W=>{a()?W(q):W(J,!1)})}h(Y),O(W=>D=X(Y,1,"timeline svelte-41cp6d",null,D,W),[()=>({withoutPadding:!f(),mobile:s()})]),$(R,Y)},k=R=>{var Y=C2();let D;O(H=>D=X(Y,1,"timeline-stub svelte-41cp6d",null,D,H),[()=>({mobile:s()})]),$(R,Y)};L(M,R=>{r(T)?R(I):R(k,!1)})}$(t,E),U(),o()}import{noop as I2}from"@vkontakte/videoplayer-shared/es2018";var T2=Te('<svg><!><path fill="var(--btn-color, #fff)" fill-rule="evenodd" d="m21.616 16.495-.012.07c-.156.852-.282 1.541-.427 2.093-.148.569-.333 1.063-.64 1.5a4.4 4.4 0 0 1-2.507 1.732c-.52.133-1.046.131-1.63.069-.568-.06-1.257-.187-2.11-.343l-4.34-.794c-.853-.156-1.542-.282-2.094-.426-.568-.149-1.062-.334-1.5-.642a4.4 4.4 0 0 1-1.731-2.507c-.133-.518-.131-1.045-.069-1.63.06-.567.187-1.257.343-2.11l.012-.068c.156-.853.282-1.542.427-2.095.148-.568.333-1.062.641-1.5a4.4 4.4 0 0 1 2.507-1.731c.518-.133 1.045-.131 1.63-.069.567.06 1.256.187 2.109.343l4.34.794c.853.156 1.542.282 2.094.426.568.149 1.062.334 1.5.642a4.4 4.4 0 0 1 1.731 2.506c.133.52.131 1.046.069 1.63-.06.568-.187 1.258-.343 2.11m-1.446-2.3c.052-.483.035-.769-.022-.993a2.6 2.6 0 0 0-1.023-1.481c-.19-.133-.45-.25-.921-.373-.48-.125-1.102-.24-1.997-.404l-4.272-.781c-.895-.164-1.518-.277-2.01-.33-.483-.051-.769-.035-.993.023-.6.153-1.125.516-1.481 1.023-.133.19-.25.45-.373.92-.125.48-.24 1.103-.403 1.998s-.277 1.518-.33 2.01c-.051.484-.035.77.023.994.153.6.516 1.125 1.023 1.481.189.133.45.25.92.373.48.125 1.102.24 1.997.404l4.272.781c.895.164 1.518.277 2.01.33.483.051.77.035.993-.023a2.6 2.6 0 0 0 1.481-1.023c.133-.19.25-.45.373-.92.125-.48.24-1.103.403-1.998s.278-1.518.33-2.01Z" clip-rule="evenodd"></path><path fill="var(--btn-color, #fff)" fill-rule="evenodd" d="M18.187 7.488a.9.9 0 0 1-1.045-.727c-.145-.807-.199-1.086-.28-1.296A2.6 2.6 0 0 0 14.504 3.8c-.224-.006-.505.036-1.315.169l-5.846.962c-1.366.224-1.834.313-2.174.492A2.6 2.6 0 0 0 3.837 7.18c-.08.376-.039.85.114 2.226l.011.1a.9.9 0 1 1-1.787.198l-.01-.093-.019-.17c-.129-1.147-.217-1.937-.068-2.636A4.4 4.4 0 0 1 4.332 3.83c.633-.333 1.417-.461 2.556-.648l.163-.027 5.846-.961.098-.016c.674-.111 1.138-.188 1.556-.177a4.4 4.4 0 0 1 3.99 2.819c.15.39.234.853.355 1.526l.017.097a.9.9 0 0 1-.726 1.045" clip-rule="evenodd"></path><path fill="var(--btn-color, #fff)" d="M12.724 12.414a.415.415 0 0 0-.69.231l-.72 4.18a.4.4 0 0 0 .025.221c.085.21.327.311.539.226l3.669-1.467a.406.406 0 0 0 .127-.68z"></path></svg>');function Df(t,e){let i=Ve(e,["$$slots","$$events","$$legacy","children"]);var o=T2();Pe(o,()=>({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}));var n=_(o);xe(n,()=>{var s;return(s=e.children)!=null?s:se}),Se(3),h(o),$(t,o)}var E2=Te('<svg><!><path fill="var(--btn-color, #fff)" fill-rule="evenodd" d="M4.146 3.146a.5.5 0 0 1 .708 0l3 3a.5.5 0 0 1 0 .708l-3 3a.5.5 0 0 1-.708-.708L6.793 6.5 4.146 3.854a.5.5 0 0 1 0-.708" clip-rule="evenodd" opacity=".7"></path></svg>');function Hf(t,e){let i=Ve(e,["$$slots","$$events","$$legacy","children"]);var o=E2();Pe(o,()=>({xmlns:"http://www.w3.org/2000/svg",width:"12",height:"13",fill:"none","aria-hidden":"true","data-testid":"chevron-light-icon",role:"img",...i}));var n=_(o);xe(n,()=>{var s;return(s=e.children)!=null?s:se}),Se(),h(o),$(t,o)}var k2=A('<span class="text mobile svelte-1yhs2ga"> </span> <div class="chevron-episodes svelte-1yhs2ga"><!></div>',1),P2=A('<span class="text svelte-1yhs2ga"> </span>'),A2=A('<span class="text count svelte-1yhs2ga"> </span>'),M2=A("<!> <!>",1),L2={hash:"svelte-1yhs2ga",code:".text.svelte-1yhs2ga {padding:0 8px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;}.text.count.svelte-1yhs2ga {overflow:visible;}.text.mobile.svelte-1yhs2ga {padding:0 3px 0 4px;}.chevron-episodes.svelte-1yhs2ga {margin-bottom:-4px;}"};function yd(t,e){var ie,ve,Ie;F(e,!0),K(t,L2);let[i,o]=He(),n=()=>C(w,"$currentGridType$",i),s=()=>C(b,"$openedByKeyboard$",i),l=()=>C(S,"$panelOpened$",i),d=()=>C(T,"$isMobile",i),a=m(e,"position",3,0),p=m(e,"duration",3,0),f=m(e,"timeCodes",19,()=>[]),v=Ee(),u=(ve=(ie=v.callbacks)==null?void 0:ie.onEpisodeChanged)!=null?ve:I2,y=!!((Ie=v.callbacks)!=null&&Ie.onEpisodeClicked),w=v.ui.currentGridType$,b=v.ui.episodes.openedByKeyboard$,S=v.ui.episodes.panelOpened$,T=v.ui.isMobile,E=v.ui.t,M=j(void 0),I=fe=>{var ke,te,N;if(!!((ke=v.callbacks)!=null&&ke.onEpisodeClicked)){let Oe=Rs(fe);b.set(Oe),S.set(!0),(N=(te=v.callbacks)==null?void 0:te.onEpisodeClicked)==null||N.call(te,Oe)}},k=j(null),R=g(()=>a()/p());We(()=>{var re;let fe=ou(r(R),p(),f());fe?((re=r(k))==null?void 0:re.time)!==fe.time&&(u(fe),B(k,fe,!0)):B(k,null)});let Y=g(()=>{var fe;return((fe=r(k))==null?void 0:fe.text)||""}),D=g(()=>Gi(n(),"xl")?"FULL":Gi(n(),"m")&&t1(n(),"xl")?"COUNT":"SHORT"),H=g(()=>`${E("tooltip_episodes")}: ${r(Y)}`),q=async(fe,re,ke)=>{await yo(),(fe==null?void 0:fe.getAttribute("aria-expanded"))==="false"&&re&&!ke&&Ct(()=>{b.set(!1),fe.focus()})};We(()=>{q(r(M),s(),l())});var J=Ue(),W=me(J);{var de=fe=>{let re=g(()=>d()?"px-0":""),ke=g(()=>!y);Vt(fe,{get className(){var te;return`w-max btn-full-opacity btn-jc-l ${(te=r(re))!=null?te:""}`},testId:"btn-episodes",click:I,get disabled(){return r(ke)},get ariaExpanded(){return l()},get ariaLabel(){return r(H)},get ref(){return r(M)},set ref(te){B(M,te,!0)},children:(te,N)=>{var Oe=Ue(),ye=me(Oe);{var he=ue=>{var we=k2(),Z=me(we),Ke=_(Z,!0);h(Z);var Xe=P(Z,2),Ae=_(Xe);Hf(Ae,{}),h(Xe),O(()=>_e(Ke,r(Y))),$(ue,we)},ce=ue=>{var we=M2(),Z=me(we);Df(Z,{});var Ke=P(Z,2);{var Xe=ee=>{var Ce=P2(),qe=_(Ce,!0);h(Ce),O(()=>_e(qe,r(Y))),$(ee,Ce)},Ae=(ee,Ce)=>{{var qe=st=>{var ct=A2(),bt=_(ct,!0);h(ct),O(()=>_e(bt,f().length)),$(st,ct)};L(ee,st=>{r(D)==="COUNT"&&st(qe)},Ce)}};L(Ke,ee=>{r(D)==="FULL"?ee(Xe):ee(Ae,!1)})}$(ue,we)};L(ye,ue=>{d()?ue(he):ue(ce,!1)})}$(te,Oe)},$$slots:{default:!0}})};L(W,fe=>{r(k)&&fe(de)})}$(t,J),U(),o()}import{debounceFn as b1}from"@vkontakte/videoplayer-shared/es2018";import{ChromecastState as F2,PlaybackState as xd,Player as U2,PredefinedQualityLimits as os,VideoFormat as wd,clientChecker as z2}from"@vkontakte/videoplayer-core/es2018";import{assertNonNullable as Jn,getHighestQuality as W2,InterfaceLanguage as K2,isInvariantQuality as q2,isNonNullable as G2,loadVKLangPack as Q2,Logger as Y2,map as p1,merge as j2,Observable as f1,Subject as pu,Subscription as qf,TracerFactory as Z2,ValueSubject as X2,VideoQuality as J2,devNull as ey,now as ty,filter as iy,once as oy}from"@vkontakte/videoplayer-shared/es2018";import{SeekAction as gs}from"@vkontakte/videoplayer-statistics/es2018";import{detectEmbed as V2,devNull as jt,now as Zt}from"@vkontakte/videoplayer-shared/es2018";import{addScript as R2,Subject as jo,clearVideoElement as N2}from"@vkontakte/videoplayer-shared/es2018";var s1=(t,e)=>t<400||e<225?5:t<640||e<360?0:t<960||e<540?1:t<1280||e<720?2:3;var B2="//ad.mail.ru/static/admanhtml/rbadman-html5.min.js",nu=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 jo,loadStarted$:new jo,loadEnded$:new jo,loadError$:new jo,ready$:new jo,slotRequested$:new jo,started$:new jo,timeRemained$:new jo,paused$:new jo,resumed$:new jo,ended$:new jo,empty$:new jo,skipped$:new jo,clicked$:new jo,closed$:new jo,error$:new jo};this.loadAdman=e=>(jt.push("ui",{key:"videoplayer_embed",strings:["new","adman_load_start",this.useAdmanFromNPM?"npm":"http"],numbers:[Zt()]}),this.useAdmanFromNPM?this.loadAdmanNPM(e):this.loadAdmanMailRu(e));this.loadAdmanMailRu=e=>new Promise((i,o)=>{let n;this.events.loadStarted$.next();let s=()=>{clearTimeout(n),delete window.admanAsyncInit,window.AdmanHTML?(jt.push("ui",{key:"videoplayer_embed",strings:["new","adman_async_init_done","http"],numbers:[Zt()]}),i(),this.events.loadEnded$.next()):(jt.push("ui",{key:"videoplayer_embed",strings:["new","adman_init_timed_out","http"],numbers:[Zt()]}),o())};R2(B2,e,this.loadTimeout).then(()=>{jt.push("ui",{key:"videoplayer_embed",strings:["new","adman_script_loaded","http"],numbers:[Zt()]}),window.AdmanHTML?(jt.push("ui",{key:"videoplayer_embed",strings:["new","adman_already_inited","http"],numbers:[Zt()]}),i(),this.events.loadEnded$.next()):(jt.push("ui",{key:"videoplayer_embed",strings:["new","adman_wait_async_init","http"],numbers:[Zt()]}),window.admanAsyncInit=s,n=window.setTimeout(s,this.initTimeout))}).catch(l=>{jt.push("ui",{key:"videoplayer_embed",strings:["new","adman_script_load_error","http",String(l)],numbers:[Zt()]}),o(),clearTimeout(n)})});this.loadAdmanNPM=e=>new Promise((i,o)=>{let n;this.events.loadStarted$.next();let s=()=>{clearTimeout(n),delete window.admanAsyncInit,window.AdmanHTML?(jt.push("ui",{key:"videoplayer_embed",strings:["new","adman_init_done","npm"],numbers:[Zt()]}),i(),this.events.loadEnded$.next()):(jt.push("ui",{key:"videoplayer_embed",strings:["new","adman_init_timed_out","npm"],numbers:[Zt()]}),o())},l=()=>{d=!0,o()},d=!1,a=window.setTimeout(()=>{jt.push("ui",{key:"videoplayer_embed",strings:["new","adman_load_timed_out","npm"],numbers:[Zt()]}),l()},this.loadTimeout);e.addEventListener("abort",l),e.aborted&&(jt.push("ui",{key:"videoplayer_embed",strings:["new","adman_load_aborted","npm"],numbers:[Zt()]}),l()),window.AdmanHTML=window.AdmanHTML||null,import("@adtech/rbadman/out/rbadman-html5.min.js").then(()=>{jt.push("ui",{key:"videoplayer_embed",strings:["new","adman_chunk_imorted","npm","failed: "+String(d)],numbers:[Zt()]}),!d&&(window.AdmanHTML?(jt.push("ui",{key:"videoplayer_embed",strings:["new","adman_already_inited","npm"],numbers:[Zt()]}),i(),this.events.loadEnded$.next()):(jt.push("ui",{key:"videoplayer_embed",strings:["new","adman_wait_async_init","npm"],numbers:[Zt()]}),window.admanAsyncInit=s,n=window.setTimeout(s,this.initTimeout)))},l).finally(()=>{clearTimeout(n),clearTimeout(a),e.removeEventListener("abort",l)})});this.onAdsReady=()=>{jt.push("ui",{key:"videoplayer_embed",strings:["new","adman_ads_ready"],numbers:[Zt()]}),this.log({message:"ads ready"}),this.events.ready$.next(),this.startPreroll()};this.onAdStarted=(e,i)=>{jt.push("ui",{key:"videoplayer_embed",strings:["new","adman_ad_started",e,"muted: "+i.muted],numbers:[Zt(),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"}),$e(this.playerState.isMobile)&&this.playerState.mobileUnmuteButtonVisible.set(!0)),this.adsState.duration.set(i.duration),this.adsState.playbackState.set("playing"),this.adsState.canSkip.set(i.allowClose),this.adsState.secondsToWatchBeforeSkip.set(i.allowCloseDelay),this.startWatchDog()):this.onAdError("Started callback failed: Adman is not initialized")};this.onAdTimeRemained=e=>{this.adsState?(this.adsState.position.set(e.currentTime),this.events.timeRemained$.next(e),this.startWatchDog()):this.onAdError("TimeRemained callback failed: Adman state is not initialized")};this.onAdPaused=()=>{var e;jt.push("ui",{key:"videoplayer_embed",strings:["new","adman_ad_pased",(e=this.currentAdSection)!=null?e:""],numbers:[Zt()]}),this.stopWatchDog(),this.adsState?(this.log({message:"ad paused"}),this.adsState.playbackState.set("paused")):this.onAdError("Paused callback failed: Adman state is not initialized")};this.onAdPlayed=()=>{var e;jt.push("ui",{key:"videoplayer_embed",strings:["new","adman_ad_played",(e=this.currentAdSection)!=null?e:""],numbers:[Zt()]}),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(jt.push("ui",{key:"videoplayer_embed",strings:["new","adman_ad_midroll_pioint"],numbers:[Zt()]}),this.adman&&this.actions){this.log({message:"midroll point"}),this.actions.switchFromVideoToAds(),this.currentAdSection="midroll",this.startWatchDog();try{this.adman.start("midroll")}catch(e){this.onAdError("could not start midroll")}}else this.onAdError("Midroll callback failed: Adman is not initialized")};this.onAdSkipped=()=>{var e;jt.push("ui",{key:"videoplayer_embed",strings:["new","adman_ad_skipped",(e=this.currentAdSection)!=null?e:""],numbers:[Zt()]}),this.log({message:"ad skipped"}),this.stopWatchDog()};this.onAdClosed=()=>{var e;jt.push("ui",{key:"videoplayer_embed",strings:["new","adman_ad_closed",(e=this.currentAdSection)!=null?e:""],numbers:[Zt()]}),this.log({message:"ad closed"}),this.currentAdSection&&this.events.closed$.next(this.currentAdSection),this.stopWatchDog(),this.switchToVideo()};this.onAdCompleted=()=>{var e;jt.push("ui",{key:"videoplayer_embed",strings:["new","adman_ad_completed",(e=this.currentAdSection)!=null?e:""],numbers:[Zt()]}),this.log({message:"ad completed"}),this.currentAdSection?this.events.ended$.next(this.currentAdSection):this.events.empty$.next(),this.switchToVideo(),this.stopWatchDog()};this.onAdClicked=()=>{var e,i;jt.push("ui",{key:"videoplayer_embed",strings:["new","adman_ad_clicked",(e=this.currentAdSection)!=null?e:""],numbers:[Zt()]}),this.log({message:"ad clicked"}),(i=this.videoElement)==null||i.pause(),this.currentAdSection&&this.events.clicked$.next(this.currentAdSection),this.stopWatchDog()};this.onAdError=(e="ad error")=>{jt.push("ui",{key:"videoplayer_embed",strings:["new","adman_ad_error",e],numbers:[Zt()]}),this.log({message:e}),this.events.error$.next(e),this.switchToVideo(!0),this.stopWatchDog()};this.log=e.createComponentLog("AdmanWrapper"),jt.push("ui",{key:"videoplayer_embed",strings:["new","adman_created"],numbers:[Zt()]}),this.loadTimeout=i.loadTimeout,this.initTimeout=i.initTimeout,this.runtimeTimeout=i.runtimeTimeout,this.useAdmanFromNPM=i.useAdmanFromNPM,this.volumeMultiplier=Math.max(0,Math.min(i.volumeMultiplier,1)),this.isVsidOriginal=i.isVsidOriginal}init(e,i,o){this.actions=e,this.adsState=i,this.playerState=o}onAdmanLoadingError(){this.onAdError("adman loading error")}initAdman(e){var M;if(jt.push("ui",{key:"videoplayer_embed",strings:["new","adman_init","already inited: "+!!this.adman],numbers:[Zt(),e.slotId]}),this.adman)return;this.events.init$.next(),this.startWatchDog();let{width:i,height:o,isFullscreen:n,isAutoplay:s,adsContainer:l,adsVideoElement:d,slotId:a,params:p={},duration:f,previewParam:v}=e,u,y=this.playerState&&$e(this.playerState.vsid);y&&(this.isVsidOriginal?u=y:u=parseInt(y,36));let{isEmbed:w,immediateOrigin:b}=V2(),S=(M=w?b:window.location.href)!=null?M:window.location.href,T={...p,dl:encodeURIComponent(S),autoplay:s?1:0,player_width:i,player_height:o,preview:v,...u?{request_id:u}:{},duration:f,puid10:s1(i,o),puid11:n?0:1};v||delete T.preview;let E={slot:a,wrapper:l,videoEl:d,videoQuality:o,params:T,browser:{mobile:!1}};try{let I=new window.AdmanHTML;I.setDebug(!1),I.onReady(this.onAdsReady),I.onStarted(this.onAdStarted),I.onPlayed(this.onAdPlayed),I.onPaused(this.onAdPaused),I.adMidrollPoint(this.onAdMidrollPoint),I.onClosed(this.onAdClosed),I.onSkipped(this.onAdSkipped),I.onClicked(this.onAdClicked),I.onTimeRemained(this.onAdTimeRemained),I.onCompleted(this.onAdCompleted),I.onError(this.onAdError),I.init(E),this.adman=I,this.videoElement=d,this.events.slotRequested$.next(),this.log({message:`adman init, config: ${JSON.stringify(E)}`})}catch(I){jt.push("ui",{key:"videoplayer_embed",strings:["new","adman_init_threw",String(I)],numbers:[Zt()]}),this.onAdError("could not init adman")}}switchToVideo(e=!1){var o,n,s;if(jt.push("ui",{key:"videoplayer_embed",strings:["new","adman_switch_to_video",(o=this.currentAdSection)!=null?o:"","force: "+e],numbers:[Zt()]}),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 l="Switch to video: Adman state was not updated correctly";this.log({message:l}),this.events.error$.next(l)}(s=(n=this.actions).switchFromAdsToVideo)==null||s.call(n,!i)}}togglePlay(){var e;if(jt.push("ui",{key:"videoplayer_embed",strings:["new","adman_toggle_play",(e=this.currentAdSection)!=null?e:""],numbers:[Zt()]}),this.adsState){this.log({message:"toggle play"});let i=$e(this.adsState.playbackState);i==="playing"?this.pause():i==="paused"&&this.play()}else this.onAdError("Can not toggle play: Adman state is not initialized")}setInitialVolume(e){this.log({message:`set initial volume ${e}`}),this.initialVolume=e}setVolume(e){let i=e*this.volumeMultiplier;if(this.log({message:`set volume ${i}`}),this.adman)try{this.adman.setVolume(i)}catch(o){this.onAdError("could not set ad volume")}this.videoElement&&(this.videoElement.volume=i)}setFullscreen(e){if(this.log({message:`set fullscreen ${e}`}),this.adman)try{this.adman.setFullscreen(e)}catch(i){this.onAdError("could not set ad fullscreen")}}startPreroll(){if(jt.push("ui",{key:"videoplayer_embed",strings:["new","adman_start_preroll"],numbers:[Zt()]}),this.adman){if(!this.isDestroyed){this.log({message:"start preroll"}),this.setVolume(this.initialVolume),this.currentAdSection="preroll",this.startWatchDog();try{this.adman.start("preroll")}catch(e){this.onAdError("could not start preroll")}}}else this.onAdError("Can not start preroll: Adman is not initialized")}startPostroll(){var e;if(jt.push("ui",{key:"videoplayer_embed",strings:["new","adman_start_postroll",(e=this.currentAdSection)!=null?e:""],numbers:[Zt()]}),this.adman&&this.actions){this.log({message:"start postroll"}),this.actions.switchFromVideoToAds(),this.currentAdSection="postroll",this.startWatchDog();try{this.adman.start("postroll")}catch(i){this.onAdError("could not start postroll")}}else this.onAdError("Can not start postroll: Adman is not initialized")}startWatchDog(){var i;this.watchDogTimeout&&this.stopWatchDog(),((i=this.adsState)!=null&&i.playbackState?$e(this.adsState.playbackState):void 0)!=="inactive"&&(this.watchDogTimeout=window.setTimeout(()=>this.onAdError("Watchdog timeout"),this.runtimeTimeout))}stopWatchDog(){clearTimeout(this.watchDogTimeout)}play(){var e;if(jt.push("ui",{key:"videoplayer_embed",strings:["new","adman_pplay",(e=this.currentAdSection)!=null?e:""],numbers:[Zt()]}),this.adman){this.log({message:"ad play"}),this.startWatchDog();try{this.adman.resume(),this.events.resumed$.next()}catch(i){this.onAdError("could not resume ad")}}else this.onAdError("Can not play: Adman is not initialized")}pause(){var e;if(jt.push("ui",{key:"videoplayer_embed",strings:["new","adman_pause",(e=this.currentAdSection)!=null?e:""],numbers:[Zt()]}),this.adman){this.stopWatchDog(),this.log({message:"ad pause"});try{this.adman.pause(),this.events.paused$.next()}catch(i){this.onAdError("could not pause ad")}}else this.onAdError("Can not pause: Adman is not initialized")}skip(){var e;if(jt.push("ui",{key:"videoplayer_embed",strings:["new","adman_skip",(e=this.currentAdSection)!=null?e:""],numbers:[Zt()]}),this.adman){this.stopWatchDog(),this.log({message:"ad skip"});try{this.adman.skip(),this.events.skipped$.next()}catch(i){this.onAdError("could not skip ad")}}else this.onAdError("Can not skip: Adman is not initialized")}setPosition(e,i){var o;(o=this.adman)==null||o.setPosition(Math.floor(e),Math.floor(i))}destroy(){var e,i,o,n,s,l,d,a,p,f,v,u;jt.push("ui",{key:"videoplayer_embed",strings:["new","adman_destroy"],numbers:[Zt()]}),this.log({message:"destroy"}),this.stopWatchDog(),(e=this.adman)==null||e.onReady(void 0),(i=this.adman)==null||i.onStarted(void 0),(o=this.adman)==null||o.onPlayed(void 0),(n=this.adman)==null||n.onPaused(void 0),(s=this.adman)==null||s.adMidrollPoint(void 0),(l=this.adman)==null||l.onClosed(void 0),(d=this.adman)==null||d.onSkipped(void 0),(a=this.adman)==null||a.onClicked(void 0),(p=this.adman)==null||p.onTimeRemained(void 0),(f=this.adman)==null||f.onCompleted(void 0),(v=this.adman)==null||v.onError(void 0),(u=this.adman)==null||u.destroy(),this.videoElement&&N2(this.videoElement),this.isDestroyed=!0}};var a1=t=>{let e=Math.round(t);return isNaN(e)||e<40?"":e>=40&&e<55?50:e>=55&&e<90?60:e>=90&&e<180?120:e>=180?240:""};var Ff=class{constructor(){this.oneLineRegExp=/\r\n|\n|\r/;this.twoLinesRegExp=/\r\n\r\n|\n\n|\r\r/}parse(e,i){let o=[],n=e.split(this.twoLinesRegExp);for(let s of n){let l={startTime:0,endTime:0,texts:[],lang:i},d=s.split(this.oneLineRegExp);for(let a of d)if(!l.startTime&&!l.endTime){let p=new ru,{startTime:f,endTime:v}=p.parse(a);l.startTime=f,l.endTime=v}else if(a.trim()!==""){let p=new Uf,{texts:f}=p.parse(a);l.texts=[...l.texts,...f]}(l.startTime||l.endTime)&&l.texts.length>0&&o.push(l)}return o}},ru=class{constructor(){this.timeRegExp=/(\d{2,})?:?(\d{2}):(\d{2}).(\d{2,3})/;this.timingRegExp=new RegExp(`${this.timeRegExp.source}( ?--> ?)${this.timeRegExp.source}`)}parse(e){let i={startTime:0,endTime:0},o=this.timingRegExp.exec(e);return o&&(i.startTime=this.calcTime(o[1],o[2],o[3],o[4]),i.endTime=this.calcTime(o[6],o[7],o[8],o[9])),i}parseTime(e){let i=this.timeRegExp.exec(e);return i?this.calcTime(i[1],i[2],i[3],i[4]):0}isTime(e){return this.timeRegExp.test(e)}calcTime(e="0",i="0",o="0",n="0"){let s=Number(e)*60*60,l=Number(i)*60,d=Number(o),a=+`0.${n}`;return s+l+d+a}},Uf=class{constructor(){this.letterTagRegExp=/<[a-z]*>|<\/[a-z]*>/}parse(e){let i={texts:[]},n=e.replace(new RegExp(this.letterTagRegExp,"g"),"").split({[Symbol.split](l){let d=0,a=[];for(;d<l.length;){let p=["<",">"].reduce((f,v)=>{let u=l.indexOf(v,d);return f===-1||f>u?u:f},-1);if(p===-1){a.push(l.substring(d));break}a.push(l.substring(d,p)),d=p+1}return a}}),s=new ru;for(let l of n)s.isTime(l)?i.texts.push({type:"timestamp",value:s.parseTime(l)}):i.texts.push({type:"text",value:l});return i}},l1=Ff;import{isNonNullable as zf}from"@vkontakte/videoplayer-shared/es2018";var ha,xi,Wf=0,Kf=!1,d1="",c1=(t,e=0,i=0)=>t<e&&t<i,su=(t,e=0,i=0)=>t>=e&&t<=i,O2=(t,e=0,i=0)=>t>e&&t>i,u1=(t,e,i,o=!1)=>{var d;let n=(d=i.find(({id:a})=>a===e.value))==null?void 0:d.subtitles;if(o)return n==null?void 0:n.find(({startTime:p,endTime:f})=>su(t,p,f));let s=t>=Wf,l=t<Wf;if(Wf=t,l&&(Kf=!1),zf(ha)&&su(t,ha.startTime,ha.endTime)&&d1===e.value)return ha;if(!zf(xi)&&(n!=null&&n.length)&&!Kf){xi=n.find(({startTime:p,endTime:f})=>su(t,p,f)||s&&c1(t,p,f)),ha=void 0,!zf(xi)&&n[n.length-1].endTime<t&&(Kf=!0);return}else{if(su(t,xi==null?void 0:xi.startTime,xi==null?void 0:xi.endTime))return ha=xi,xi=void 0,d1=e.value,ha;(s&&O2(t,xi==null?void 0:xi.startTime,xi==null?void 0:xi.endTime)||l&&c1(t,xi==null?void 0:xi.startTime,xi==null?void 0:xi.endTime))&&(xi=void 0)}};var au={ru:"\u0420\u0443\u0441\u0441\u043A\u0438\u0439",en:"English",uk:"\u0423\u043A\u0440\u0430\u0457\u043D\u0441\u044C\u043A\u0430",be:"\u0411\u0435\u043B\u0430\u0440\u0443\u0441\u043A\u0430\u044F (\u0442\u0430\u0440\u0430\u0448\u043A\u0435\u0432i\u0446\u0430)",es:"Espa\xF1ol",fi:"Suomi",de:"Deutsch",it:"Italiano",bg:"\u0411\u044A\u043B\u0433\u0430\u0440\u0441\u043A\u0438",hr:"Hrvatski",hu:"Magyar",sr:"\u0421\u0440\u043F\u0441\u043A\u0438",pt:"Portugu\xEAs",el:"\u0395\u03BB\u03BB\u03B7\u03BD\u03B9\u03BA\u03AC",pl:"Polski",fr:"Fran\xE7ais",ko:"\uD55C\uAD6D\uC5B4","zh-CN":"\u6C49\u8BED",lt:"Lietuvi\u0173",ja:"\u65E5\u672C\u8A9E",cs:"\u010Ce\u0161tina",et:"Eesti",tt:"\u0422\u0430\u0442\u0430\u0440\u0447\u0430",ba:"\u0411\u0430\u0448\u04A1\u043E\u0440\u0442\u0441\u0430",cv:"\u0427\u0103\u0432\u0430\u0448\u043B\u0430",sk:"Sloven\u010Dina",ro:"Rom\xE2n\u0103",no:"Norsk",lv:"Latvie\u0161u",az:"Az\u0259rbaycan dili",hy:"\u0540\u0561\u0575\u0565\u0580\u0565\u0576",sv:"Svenska",nl:"Nederlands",tk:"T\xFCrkmen",ka:"\u10E5\u10D0\u10E0\u10D7\u10E3\u10DA\u10D8",da:"Dansk",uz:"O\u2018zbek",th:"\u0E20\u0E32\u0E29\u0E32\u0E44\u0E17\u0E22",id:"Bahasa Indonesia",tg:"\u0422\u043E\u04B7\u0438\u043A\u04E3",sl:"Sloven\u0161\u010Dina",bs:"Bosanski","pt-BR":"Portugu\xEAs brasileiro",fa:"\u0641\u0627\u0631\u0633\u06CC",vi:"Ti\u1EBFng Vi\u1EC7t",hi:"\u0939\u093F\u0928\u094D\u0926\u0940",si:"\u0DC3\u0DD2\u0D82\u0DC4\u0DBD",bn:"\u09AC\u09BE\u0982\u09B2\u09BE",tl:"Tagalog",mn:"\u041C\u043E\u043D\u0433\u043E\u043B",my:"\u1017\u1019\u102C\u1005\u102C",tr:"T\xFCrk\xE7e",ne:"\u0928\u0947\u092A\u093E\u0932\u0940",ur:"\u0627\u0631\u062F\u0648",ky:"\u041A\u044B\u0440\u0433\u044B\u0437 \u0442\u0438\u043B\u0438",pa:"\u067E\u0646\u062C\u0627\u0628\u06CC",os:"\u0418\u0440\u043E\u043D",kn:"\u0C95\u0CA8\u0CCD\u0CA8\u0CA1",sw:"Kiswahili",kk:"\u049A\u0430\u0437\u0430\u049B\u0448\u0430",ar:"\u0627\u0644\u0639\u0631\u0628\u064A\u0629",he:"\u05E2\u05D1\u05E8\u05D9\u05EA",ab:"\u0410\u04A7\u0441\u0448\u04D9\u0430",eu:"Euskara",eo:"Esperanto"},D2={abk:"as",ara:"ar",aze:"az",bak:"ba",bel:"be",ben:"bn",bos:"bs",bul:"bg",ces:"cs",chv:"cv",dan:"da",deu:"de",ell:"el",eng:"en",epo:"eo",est:"et",eus:"eu",fas:"fa",fin:"fi",fra:"fr",heb:"he",hin:"hi",hrv:"hr",hun:"hu",hye:"hy",ind:"id",ita:"it",jpn:"ja",kan:"kn",kat:"ka",kaz:"kk",kir:"ky",kor:"ko",lav:"lv",lit:"lt",mon:"mn",mya:"my",nep:"ne",nld:"nl",nor:"no",oss:"os",pan:"pa",pol:"pl",por:"pt",ron:"ro",rus:"ru",sin:"si",slk:"sk",slv:"sl",spa:"es",srp:"sr",swa:"sw",swe:"sv",tat:"tt",tgk:"tg",tgl:"tl",tha:"th",tuk:"tk",tur:"tr",ukr:"uk",urd:"ur",uzb:"uz",vie:"vi"},lu=t=>{var e,i;return(i=(e=au[t])!=null?e:au[D2[t]])!=null?i:void 0};import{Subscription as H2}from"@vkontakte/videoplayer-shared/es2018";import"@vkontakte/videoplayer-statistics/es2018";var du=class{constructor(e,i,o,n=new H2){this.oneStat=e;this.thinOneStat=i;this.mediascopePixel=o;this.statSubscription=n}destroy(){var e,i,o;(e=this.oneStat)==null||e.destroy(),(i=this.thinOneStat)==null||i.destroy(),(o=this.mediascopePixel)==null||o.destroy(),this.statSubscription.unsubscribe()}};var cu=(i=>(i.DESKTOP_CONTROL_PANEL_LEFT="desktop-control-panel-left",i.DESKTOP_CONTROL_PANEL_RIGHT="desktop-control-panel-right",i))(cu||{});var is=t=>t!=null?t:0,vs=(t,e)=>{var n,s;let i=(n=t==null?void 0:t.getBoundingClientRect)==null?void 0:n.call(t),o=(s=e==null?void 0:e.getBoundingClientRect)==null?void 0:s.call(e);return{top:Math.round(is(i==null?void 0:i.top)-is(o==null?void 0:o.top)),left:Math.round(is(i==null?void 0:i.left)-is(o==null?void 0:o.left)),bottom:Math.round(is(i==null?void 0:i.bottom)-is(o==null?void 0:o.top)),right:Math.round(is(i==null?void 0:i.right)-is(o==null?void 0:o.left))}},al=t=>{var i;let e=(i=t==null?void 0:t.getBoundingClientRect)==null?void 0:i.call(t);return{width:is(e==null?void 0:e.width),height:is(e==null?void 0:e.height)}};var uu="off";var m1=({interfaceLanguage:t,isCyrillicRelatedInterface:e,videoId:i,isClip:o,isLiveCatchUpMode:n,statAuthToken:s,isAudioDisabled:l,canDownload:d,callbacks:a,webApi:p,videoEpisodes:f,previewThumbsData:v,uiConfig:u,coreConfig:y,player:w,disabledControls:b,isInteractive:S,interactiveRanges$:T,isInteractiveTime$:E,replayInteractive:M,stopPlayer:I,hasInteractiveBranches:k,playPrevChapterDisabledTooltip:R,additionalButtons:Y,additionalSettingsMenuItems:D,additionalContextMenuItems:H,playPrevVideo:q,playNextVideo:J,looped:W=!1,statistics:de,saveRate:ie,internalsExposure:ve,playerView:Ie})=>{var lv,dv,cv;let fe={...y,configName:[...(lv=y.configName)!=null?lv:[],"ui"],isAudioDisabled:l,live:{...(dv=y.live)!=null?dv:{},isLiveCatchUpMode:!!n}},re=u,ke=Z2.createRootTracer(re.features.tracer),te=ke.createComponentTracer("Store"),N=w||new U2(fe,ke);ve==null||ve.expose({corePlayer:N});let Oe=new Y2,ye=new nu(Oe,{loadTimeout:re.ads.loadTimeout,initTimeout:re.ads.initTimeout,runtimeTimeout:re.ads.runtimeTimeout,useAdmanFromNPM:re.ads.useAdmanFromNPM,volumeMultiplier:re.ads.volumeMultiplier,isVsidOriginal:re.ads.isVsidOriginal}),he=sa.getInstance(),ce=p==null?void 0:p.pictureInPictureApi,ue=p==null?void 0:p.annotationsApi,we=p==null?void 0:p.slotsApi,Z=Oe.createComponentLog("Store"),Ke,Xe,Ae={},ee=new Rc,Ce=new qf,qe=de&&de.oneStat?ei(de.oneStat.vsid$):gr(void 0),st=ae(Ms()),ct=ae(!1),bt=(cv=ce==null?void 0:ce.info.isActive$)!=null?cv:new X2(!1),St=ae(0),Ge=ae([]),Wt=j2(N.events.fatalError$,N.events.managedError$).subscribe(c=>Ge.update(x=>[...x,c])),Qt=gr(!1,c=>{let x=N.events.fatalError$.subscribe(()=>c(!0));return()=>x.unsubscribe()}),qt=async c=>{var ne;let x=Object.values(K2).includes(c);if(re.downloadVKLanguages&&(x&&re.updateBuiltinLanguages||!jp(c))){let Fe;try{Fe=await Q2(c,jg,Zg)}catch(pt){(ne=de==null?void 0:de.oneStat)==null||ne.logError({errorType:"VKLangPack",fatal:!1}),he==null||he.report(pt,{errorType:"VKLangPack",fatal:!1})}Fe&&(Yp({language:c,pack:Fe,fallback:re.defaultLanguage}),Nt.set(c))}jp(c)&&Nt.set(c)},Nt=ae(t),oe=ae(e);qt(t);let At=(c,x)=>{let V=$e(Nt);return Zp(V,c,x,re.defaultLanguage)},ge=ae("thumb");ge.subscribe(c=>{c==="ads"&&De()});let be=(()=>{let c=gi([Qt,ge],([x,V])=>x?"crashed":V);return{...c,is:x=>$e(c)===x}})(),le=ae(),De=()=>{le.set({muted:N.info.muted$.getValue()})},ze=(()=>{let c=ae(new Set(b));return{...c,add:x=>{c.update(V=>new Set([...V].concat(x)))},remove:x=>{c.update(V=>{let ne=[...V];return new Set(Array.isArray(x)?ne.filter(Fe=>!x.includes(Fe)):ne.filter(Fe=>Fe!==x))})},includes:x=>{let V=$e(c);return Array.isArray(x)?x.every(ne=>V.has(ne)):V.has(x)}}})();te.log("create store"),Z({message:"create store"});let Le=c=>{let x=c.container,V=()=>{ai=new MutationObserver(Fe=>{let{removedNodes:pt}=Fe[0];pt.length&&x.append(N.experimental.element$.getValue())}),ai.observe(x,{childList:!0})},ne=N.experimental.element$.getValue();if(ne)x.append(ne),V();else{let Fe=N.experimental.element$.pipe(iy(pt=>!!pt),oy()).subscribe(pt=>{x.append(pt),V()});Ce.add(Fe)}},Ye=c=>{Z({message:`init video, config: ${JSON.stringify(c)}`}),S?Le(c):(ey.push("ui",{key:"videoplayer_embed",strings:["new","core_init_video"],numbers:[ty()]}),N.initVideo(c)),te.log("init video",{isInteractive:S}),c.subtitles&&N.setExternalTextTracks(c.subtitles),Ke=c},Re=new pu,tt=c=>Re.next(c),Pt=new pu,Mt=new pu,Je=new pu,ai=null,mi={actionRewind$:Pt,actionSeek$:Mt,inPiP$:bt,inFullscreen$:new f1(c=>st.subscribe(x=>c.next(x))),actionSetSubtitle$:Je,nextMovie$:Re},at={actionSeek$:Mt,playerSize$:new f1(c=>pi.subscribe(x=>c.next(x)))};if(de){let{oneStat:c,thinOneStat:x,mediascopePixel:V,statSubscription:ne}=de;c&&(S||ne.add(c.attachTo(N)),ne.add(c.attachToUi(mi)),ne.add(c.attachToAds(ye.events)),c.authorize(s).catch(Fe=>{Z({message:`onestat auth error ${String(Fe)}`})}),V&&V.attachTo(N)),x&&(ne.add(x.attachTo(N)),ne.add(x.attachToUi(at)),x.authorize(s))}if(he){let c=new qf,x=(V,ne)=>c.add(V.subscribe(ne));if(x(N.events.managedError$,V=>{he.logIError(V)}),x(N.events.fatalError$,V=>{he.logIError(V,!0)}),de){let{oneStat:V}=de;V&&x(V.experimental.error$,ne=>{he.logIError(ne)})}he.sentrySubscription.add(c)}let Xt=()=>{z2.device.isIOS&&Xe&&Vh(Xe).catch(c=>{Z({message:`exitIosSafariFullscreen failed: ${c}`})})};Ce.add(N.experimental.element$.subscribe(c=>{c&&(Xe=c,c.classList.add("player-media"),la(ce)&&ce.updateVideoElement(),S&&c.setAttribute("pip","false"),Ie==="preview"&&(c.setAttribute("disablePictureInPicture","true"),c.setAttribute("x-yandex-pip","false")))})).add(N.events.ended$.subscribe(()=>{var c;Xt(),(c=a==null?void 0:a.onEnded)==null||c.call(a)})).add(N.events.looped$.subscribe(()=>{var c;(c=a==null?void 0:a.onLooped)==null||c.call(a)})).add(N.events.started$.subscribe(async()=>{var x,V;la(ce)&&await(ce==null?void 0:ce.revealPictureInPicture());let c=N.info.muted$.getValue();(x=a==null?void 0:a.onStarted)==null||x.call(a),(V=Ae.onStarted)==null||V.call(Ae,c)})).add(N.events.willSeek$.subscribe(({from:c,to:x})=>{var V;(V=a==null?void 0:a.onSeek)==null||V.call(a,c,x)})).add(N.events.autoplaySoundProhibited$.subscribe(()=>{var c;(c=a==null?void 0:a.onAutoplaySoundProhibited)==null||c.call(a)})).add(N.info.position$.subscribe(c=>{var V;let x=N.info.duration$.getValue();isFinite(x)&&x>0&&((V=a==null?void 0:a.onTimeupdate)==null||V.call(a,x,c),ye.setPosition(c,x))})).add(N.events.fatalError$.subscribe(c=>{var x;(x=a==null?void 0:a.onCrashed)==null||x.call(a,c?`${c.id}: ${c.message}`:void 0)})).add(N.events.fetcherRecoverableError$.subscribe(c=>{var x;(x=a==null?void 0:a.onRecoverableError)==null||x.call(a,c?`${c.id}: ${c.message}`:void 0)})).add(N.events.loadedMetadata$.subscribe(()=>{It.state.loadedMetadata$.set(!0)})).add(N.info.is3DVideo$.subscribe(c=>{It.ui.is3DVideo.set(c)})).add(N.info.isEnded$.subscribe(c=>{S&&(c?(E!=null&&E.getValue()&&ze.add(Ql),ze.add("PLAY_BUTTON")):ze.remove("PLAY_BUTTON"))})).add(N.info.liveTime$.subscribe(c=>{var x;(x=a==null?void 0:a.onLiveTime)==null||x.call(a,c)})).add(N.info.isStalled$.subscribe(c=>{var x;(x=a==null?void 0:a.onStalledChanged)==null||x.call(a,c)})).add(N.info.isLiveEnded$.subscribe(c=>{var x;return c&&((x=a==null?void 0:a.onLiveEnded)==null?void 0:x.call(a))})).add(ye.events.loadStarted$.subscribe(()=>{var c,x;return(x=(c=a==null?void 0:a.adsInfo)==null?void 0:c.onLoadStarted)==null?void 0:x.call(c)})).add(ye.events.loadEnded$.subscribe(()=>{var c,x;return(x=(c=a==null?void 0:a.adsInfo)==null?void 0:c.onLoadEnded)==null?void 0:x.call(c)})).add(ye.events.loadError$.subscribe(()=>{var c,x;return(x=(c=a==null?void 0:a.adsInfo)==null?void 0:c.onLoadError)==null?void 0:x.call(c)})).add(ye.events.init$.subscribe(()=>{var c,x;return(x=(c=a==null?void 0:a.adsInfo)==null?void 0:c.onInit)==null?void 0:x.call(c)})).add(ye.events.ready$.subscribe(()=>{var c,x;return(x=(c=a==null?void 0:a.adsInfo)==null?void 0:c.onReady)==null?void 0:x.call(c)})).add(ye.events.started$.subscribe(c=>{var x,V;return(V=(x=a==null?void 0:a.adsInfo)==null?void 0:x.onStarted)==null?void 0:V.call(x,c)})).add(ye.events.timeRemained$.subscribe(c=>{var x,V;return(V=(x=a==null?void 0:a.adsInfo)==null?void 0:x.onTimeRemained)==null?void 0:V.call(x,c)})).add(ye.events.ended$.subscribe(c=>{var x,V;return(V=(x=a==null?void 0:a.adsInfo)==null?void 0:x.onCompleted)==null?void 0:V.call(x,c)})).add(ye.events.empty$.subscribe(()=>{var c,x;return(x=(c=a==null?void 0:a.adsInfo)==null?void 0:c.onEmpty)==null?void 0:x.call(c)})).add(ye.events.clicked$.subscribe(c=>{var x,V;return(V=(x=a==null?void 0:a.adsInfo)==null?void 0:x.onClicked)==null?void 0:V.call(x,c)})).add(ye.events.closed$.subscribe(c=>{var x,V;return(V=(x=a==null?void 0:a.adsInfo)==null?void 0:x.onClosed)==null?void 0:V.call(x,c)})).add(ye.events.error$.subscribe(c=>{var x,V;return(V=(x=a==null?void 0:a.adsInfo)==null?void 0:x.onError)==null?void 0:V.call(x,c)})).add(ye.events.paused$.subscribe(()=>{var c,x;return(x=(c=a==null?void 0:a.adsInfo)==null?void 0:c.onPaused)==null?void 0:x.call(c)})).add(ye.events.resumed$.subscribe(()=>{var c,x;return(x=(c=a==null?void 0:a.adsInfo)==null?void 0:c.onResumed)==null?void 0:x.call(c)}));let ti=new qf,ui=()=>{var pt,Dt,zt;let{debugLog:c}=re,x,V="#9df7b7",ne="#efd169";if(c&&c!==!0){let{colors:Ht}=c;x=c.tag,V=(pt=Ht==null?void 0:Ht[0])!=null?pt:V,ne=(zt=(Dt=Ht==null?void 0:Ht[1])!=null?Dt:Ht==null?void 0:Ht[0])!=null?zt:ne}let Fe=x?`: ${x}`:"";ti.add(N.events.log$.subscribe(Ht=>{console.debug(`%c sdk${Fe} `,`background:${V};`,`sdk component: ${Ht.component}`,Ht.message)})).add(Oe.log$.subscribe(Ht=>{console.debug(`%c ui${Fe} `,`background:${ne};`,`ui component: ${Ht.component}.`,Ht.message)}))},wo=()=>{ti.unsubscribe()},po=(c,x)=>{te.log("start camera manual rotation",{mx:c,my:x}),N.startCameraManualRotation(c,x)},Yt=(c=!1)=>{te.log("stop camera manual rotation",{immediate:c}),N.stopCameraManualRotation(c)},wi=(c,x,V)=>{te.log("move camera focus px",{xpx:c,ypx:x,dt:V}),N.moveCameraFocusPX(c,x,V)},Yi=()=>{N.holdCamera()},yt=()=>{N.releaseCamera()},ht=gr(N.info.position$.getValue(),c=>{let x,V,ne=()=>{let Fe=N.info.playbackState$.getValue(),pt=N.info.isLive$.getValue(),Dt=N.info.duration$.getValue(),zt=N.info.position$.getValue();if(Fe&&[xd.PLAYING,xd.PAUSED].includes(Fe)){let Ht=pt?zt-Dt:N.getExactTime();Ht!==V&&c(Ht),V=Ht}x=requestAnimationFrame(ne)};return ne(),()=>cancelAnimationFrame(x)}),Ci=ei(N.info.playbackState$),Ho=ei(N.info.currentBuffer$),G=ei(N.info.isEnded$),Bt=ei(N.info.isLive$),ci=re.features.playbackRate?ei(N.info.canChangePlaybackSpeed$):gr(!1),Kt=ei(N.info.liveBufferTime$),ft=ei(N.info.volume$),rt=ei(N.info.muted$),ut=Nc(N.info.predefinedQualityLimitType$.pipe(p1(c=>c===os.TRAFFIC_SAVING)),N.info.predefinedQualityLimitType$.getValue()===os.TRAFFIC_SAVING),hi=Nc(N.info.predefinedQualityLimitType$.pipe(p1(c=>c===os.HIGH_QUALITY)),N.info.predefinedQualityLimitType$.getValue()===os.HIGH_QUALITY),Ot=ei(N.info.autoQualityLimitingAvailable$),er=ei(N.info.availableQualities$),Si=ei(N.info.availableQualitiesFps$),fo=ei(N.info.chromecastState$),Mi=ei(N.info.chromecastDeviceName$),$t=ei(N.info.currentFormat$),Li=ei(N.info.throughputEstimation$),Xo=ei(N.info.videoBitrate$),fn=ei(N.info.intrinsicVideoSize$),Ti=ei(N.info.duration$),ji=ei(N.info.isAudioAvailable$),Ei=null,Jo=N.info.isBuffering$,Ln=gr(Jo.getValue(),c=>{let x=Jo.subscribe(V=>{V&&Ei===null?Ei=window.setTimeout(()=>{c(Jo.getValue()),Ei=null},re.loaderDelay):c(V)});return()=>{x.unsubscribe(),Ei&&clearTimeout(Ei)}}),Co=()=>{Ei&&clearTimeout(Ei),Ei=null},Fo=gi([Ti,Bt],([c,x])=>x?-c:c),io=gi([Ci],([c])=>c===xd.PLAYING),mo=ei(N.info.atLiveEdge$),en=ei(N.info.atLiveDurationEdge$),Vn=ei(N.info.position$),tr=gi([Vn,Ti],([c,x])=>isFinite(c)&&isFinite(x)&&!!x),ir=gi([fo],([c])=>c===F2.CONNECTED),or=ei(N.info.availableVideoStreams$),Hr=re.features.audioLanguages?ei(N.info.availableAudioStreams$):gr([]),Rn=ei(N.info.currentVideoStream$),ns=ei(N.info.currentAudioStream$),Fr=c=>{c.language&&qp(c.language),N.setVideoStream(c)},Vi=c=>{c.language&&qp(c.language),N.setAudioStream(c)},mn=c=>{let x;if(c.length===1&&(x=c.at(0)),x!=null||(x=c.find(ne=>"isDefault"in ne&&ne.isDefault)),x)return x;let V=$h();return V&&(x=c.find(({language:ne})=>V===ne)),x!=null||(x=c.at(0)),x},tn=!1;Ce.add(N.info.availableAudioStreams$.subscribe(c=>{if(!tn&&c.length){let x=mn(c);x&&(N.setAudioStream(x),tn=!0)}}));let vn=!1;Ce.add(N.info.availableVideoStreams$.subscribe(c=>{if(!vn&&c.length){let x=mn(c);x&&(N.setVideoStream(x),vn=!0)}}));let vo=ae(void 0),gn=ei(N.info.isAutoQualityEnabled$,c=>c&&vo.set(void 0)),Nn=ei(N.info.currentQuality$,()=>vo.set(void 0)),Ur=gi([vo,Nn],([c,x])=>c!=null?c:x),_r=gi($t,c=>c!==wd.MPEG),zr=gi([er,Si,gn,Ur,_r],([c,x,V,ne,Fe])=>{let pt=[];Fe&&pt.push({value:"auto",displayValue:At("auto_quality_option"),selected:V});let Dt=c.filter(zt=>!q2(zt));for(let zt of Dt){let Ht=x[zt];pt.push({value:zt,displayValue:`${zt}${Ht?a1(Ht):""}`,selected:V?!1:zt===ne})}return pt}),hn=ei(N.info.currentPlaybackRate$),Bn=gi([hn,mo,en],([c,x,V])=>{let ne=V||S?1:re.controls.playbackRateMin,Fe=x?1:re.controls.playbackRateMax,pt=re.controls.playbackRateStep,Dt=[];for(let zt=ne;zt<=Fe;zt+=pt)Dt.push({value:zt,displayValue:zt===1?At("playback_rate_1"):At("playback_rate",{multiplier:zt.toString(10)}),selected:c===zt});return Dt}),it={displayValue:At("subtitles_off"),value:uu,language:""},Ut=ae({...it}),On=re.features.subtitles?ei(N.info.availableTextTracks$):gr([]),zi=uh(),nr=gi([On,Ut],([c,x],V)=>{var pt;let ne=[],Fe=c.find(({id:Dt})=>Dt===x.value);if(Fe!=null&&Fe.url){let[,Dt]=(pt=zi.find(Fe.url))!=null?pt:[];if(Dt){V(Dt);return}ee.download(Fe.url).then(zt=>{if(!zt||ee.isDestroyed())return;let Ht=new l1,xs=Fe.language;if(xs){let o0=!!Fe.isAuto,n0=Ht.parse(zt,xs);ne.push({lang:xs,subtitles:n0,isAuto:o0,id:Fe.id})}zi.add(Fe.url,ne),$e(Ut).value===x.value&&V(ne)}).catch(zt=>{var Ht;(Ht=de==null?void 0:de.oneStat)==null||Ht.logError({errorType:"Subtitles download",fatal:!1}),he==null||he.report(zt,{errorType:"Subtitles download",fatal:!1})})}V(ne)}),Dn=gi([hn,io,Ut],([c,x,V],ne)=>{let Dt;if(N.info.isLive$.getValue()&&x&&V.value!==it.value){let Ht=()=>{let xs=1e3/(3*c);Dt=setTimeout(Ht,xs),ne(Date.now())};return Ht(),()=>clearTimeout(Dt)}}),_n=gi([On,Ut],([c,x])=>{if(!c.length)return[];let V=[];for(let{language:ne,isAuto:Fe,id:pt}of c){let Dt=ne&&lu(ne);ne&&Dt&&V.push({displayValue:Fe?At("subtitles_auto",{language:Dt}):Dt,value:pt,selected:(x==null?void 0:x.value)===pt,isAuto:Fe,language:ne})}return V.length?(V.unshift({...it,selected:(x==null?void 0:x.value)===it.value}),V):[]}),Wi={available:[],prev:[]},on=()=>{var x,V;let c=N.experimental.getCurrentTime$.getValue();return(V=(x=c==null?void 0:c())!=null?x:Xe==null?void 0:Xe.currentTime)!=null?V:0},Uo=gi([ht,Ut,nr,Dn],([c,x,V,ne])=>{var pt;let Fe=N.info.isLive$.getValue();if(Fe&&Wi.prev!==V){let Dt=V.find(({id:Ht})=>Ht===x.value),zt=Wi.prev.find(({id:Ht})=>Ht===x.value);if(Dt){let Ht={...Dt,subtitles:[...(pt=zt==null?void 0:zt.subtitles)!=null?pt:[],...Dt.subtitles]};Wi.available=[Ht],Wi.prev=V}}if(x&&x.value!==it.value){let Dt=Fe?on():c,zt=Fe?Wi.available:V;return u1(Dt,x,zt,Fe)}}),bn=gi([Uo],([c])=>c!=null&&c.texts?c.texts:[]);Ce.add(Ut.subscribe(c=>{var x,V;if(c.value===it.value)(x=a==null?void 0:a.onSubtitleOff)==null||x.call(a);else{let ne=Object.entries(au).find(([Fe,pt])=>pt===c.displayValue);(V=a==null?void 0:a.onSubtitleOn)==null||V.call(a,ne?ne[0]:"")}}));let br=ae(!0),$r=gi([Ho,Fo,Vn,Kt],([c,x,V,ne])=>{var zt;let Fe=(zt=c==null?void 0:c.end)!=null?zt:0;if(!ne)return Fe/x;let Dt=-V+ne-x;return(Fe-Dt)/x}),$n=ei(N.info.availableSources$),Wr=gi([$n],([c])=>Object.keys((c==null?void 0:c[wd.MPEG])||{}).length>0),yn=()=>{var V,ne,Fe;let c=Object.keys(((ne=(V=N.info.availableSources$)==null?void 0:V.getValue())==null?void 0:ne[wd.MPEG])||{}),x=W2(c)||J2.Q_144P;return(Fe=Ke.sources[wd.MPEG])==null?void 0:Fe[x]},Kr=()=>{var x;let c=yn();if(c)te.log("download video",{url:c}),lh(c,((x=Ke==null?void 0:Ke.meta)==null?void 0:x.title)||"video");else{let V="There is no URL for download video";te.log("download video",{message:V}),Z({message:V})}},rr=()=>{Z({message:"toggle muted"});let c=N.info.muted$.getValue();N.info.volume$.getValue()===0&&!c?Hn(sr()):Fn(!c)},yr=()=>{var c;if(It.ui.settingsMenu.visible$.set(!1),!$e(It.ui.settingsSubMenu.visible$)){let x=$e(It.ui.settingsMenu.ref$);if((c=a==null?void 0:a.uiInfo)!=null&&c.onSettingsMenu&&x){let ne=al(x),Fe={top:0,left:0,bottom:0,right:0};a.uiInfo.onSettingsMenu({visible:!1,size:ne,position:Fe,name:"settings"})}}te.log("close settings menu")},nn=async(c,x=()=>Promise.resolve())=>{var Fe;It.ui.settingsMenu.openedByBtnKeyboard$.set(!!c),It.ui.settingsMenu.visible$.set(!0),await x();let V=$e(It.ui.settingsMenu.ref$),ne=ka();if((Fe=a==null?void 0:a.uiInfo)!=null&&Fe.onSettingsMenu&&V&&ne){let Dt=al(V),zt=vs(V,ne);a.uiInfo.onSettingsMenu({visible:!0,size:Dt,position:zt,name:"settings"})}te.log("open settings menu",{wasOpenedByKeyboard:c})},ii=(c,x=!1)=>{var pt;It.ui.settingsSubMenu.visible$.set(!1);let V=$e(It.ui.settingsMenu.ref$),ne=ka(),Fe=$e(It.ui.settingsMenu.visible$);if((pt=a==null?void 0:a.uiInfo)!=null&&pt.onSettingsMenu&&V&&ne)if(Fe&&!x){let zt=al(V),Ht=vs(V,ne);a.uiInfo.onSettingsMenu({visible:!0,size:zt,position:Ht,name:"settings"})}else{let zt=al(c),Ht={top:0,left:0,bottom:0,right:0},xs=$e(It.ui.settingsSubMenu.name$);a.uiInfo.onSettingsMenu({visible:!1,size:zt,position:Ht,name:xs})}te.log("close settings sub menu")},Ri=(c,x)=>{var ne;It.ui.settingsSubMenu.visible$.set(!0),It.ui.settingsSubMenu.ref$.set(x),It.ui.settingsSubMenu.name$.set(c);let V=ka();if((ne=a==null?void 0:a.uiInfo)!=null&&ne.onSettingsMenu&&x&&V){let pt=al(x),Dt=vs(x,V);a.uiInfo.onSettingsMenu({visible:!0,name:c,size:pt,position:Dt})}te.log("open settings sub menu",{name:c})},sr=()=>{var x;let c=Math.max(re.volumeMinRestore,(x=Bc())!=null?x:0);return c===0?re.volumeDefault:c},Hn=c=>{let x=c===0?sr():c,V=N.info.muted$.getValue();Z({message:`set volume, volume: ${c}, preferredVolume: ${x}`});let ne=!l||be.is("ads");V&&c>0&&ne&&(V=!1,Wp(!1)),N.setVolume(c,V),ye.setVolume(c),Dp(x)},Fn=c=>{let x=N.info.volume$.getValue();Z({message:`set muted, currentVolume: ${x}, mute: ${c}`});let V=be.is("ads");if(N.setMuted(c,V),ye.setVolume(c?0:x),(!V||!c)&&Wp(c),!c&&x===0){let ne=sr();N.setVolume(ne),Dp(ne),ye.setVolume(ne)}},Ii=ae(!1),xr=c=>{var x,V;te.log("set looped",{isLooped:c}),Ii.set(c),N.setLooped(c),(V=(x=a==null?void 0:a.uiInfo)==null?void 0:x.onLoopedChanged)==null||V.call(x,c)};xr(W);let qr=()=>{var c,x;(x=(c=a==null?void 0:a.uiInfo)==null?void 0:c.onReportProblem)==null||x.call(c)},xt=(c,x=!1)=>{var V;Z({message:`set autoplayNextEnabled, value: ${c}`}),te.log("set autoplay next enabled",{autoplayNextEnabled:c}),It.ui.autoplayNextEnabled$.set(c),wh(c),x&&((V=a==null?void 0:a.onSetAutoplayNextEnabled)==null||V.call(a,c))},li=c=>{Z({message:`set timerNextVideoRunning, value: ${c}`}),te.log("set timer next video running",{timerNextVideoRunning:c}),It.ui.timerNextVideoRunning$.set(c)},zo=(c=!0)=>{var ne;let x=!0;if(c&&(a!=null&&a.onPrevVideoClick))try{x=(ne=a==null?void 0:a.onPrevVideoClick)==null?void 0:ne.call(a)}catch(Fe){Z({message:"onPrevVideoClick callback failed to execute"})}if(!x)return;c&&go("prev")||q()},So=(c=!0)=>{var ne;let x=!0;if(c&&(a!=null&&a.onNextVideoClick))try{x=(ne=a==null?void 0:a.onNextVideoClick)==null?void 0:ne.call(a)}catch(Fe){Z({message:"onNextVideoClick callback failed to execute"})}if(!x)return;c&&go("next")||J()},go=c=>{let{isMobile:x,features:{playbackStatusNextVideoShow:V,playbackStatusShow:ne}}=re;return V&&ne&&!x?(It.ui.aboutToGoNextVideo.set(c),It.ui.userActionsDisabled.set(!0),!0):!1},_i=()=>{var c;(c=a==null?void 0:a.onNextVideoAnnouncementShow)==null||c.call(a)},ho=()=>{var c;(c=a==null?void 0:a.onNextVideoAnnouncementClick)==null||c.call(a)},oo=()=>{var c;(c=a==null?void 0:a.onNextVideoAnnouncementAuto)==null||c.call(a)},ar=()=>{var c;(c=a==null?void 0:a.onNextVideoAnnouncementCancel)==null||c.call(a)},lr=()=>{N.prepare()},wr=()=>{Jn(It);let c=$e(It.ui.controls.disabledControls$),x=$e(It.playerPhase),V={playerPhase:x,isInteractive:S,isVideoEnded:!1,action:"none"};if(c.has("PLAY_BUTTON"))return;if(Z({message:"toggle play"}),x==="ads"){V.action="play",te.log("toggle adman play",V),ye.togglePlay();return}let ne=()=>{var pt;Z({message:"toggle play, call player.play"}),V.action="play",N.play(),(pt=a==null?void 0:a.onPlay)==null||pt.call(a)},Fe=()=>{var pt;Z({message:"toggle play, call player.pause"}),V.action="pause",N.pause(),(pt=a==null?void 0:a.onPause)==null||pt.call(a)};if(N.info.isEnded$.getValue()){if(Z({message:"toggle play, video ended, seek to 0"}),Pt.next(),Mt.next(gs.REWIND),S){M==null||M();return}N.seekTime(0),ne()}else N.info.playbackState$.getValue()!==xd.PLAYING?ne():Fe();te.log("toggle play",V)},et=(c,{changeReason:x="default",appliesTo:V="to-video"}={})=>{Z({message:`set quality, quality: ${c}`}),te.log("set quality",{quality:c}),N.setAutoQuality(c==="auto"),c!=="auto"?(re.features.qualityDetailsSubMenuEnabled?(Oc({type:"exact_quality",quality:c,videoId:i},V),jl(),N.setPredefinedQualityLimits(os.UNKNOWN)):Hp(i,c),vo.set(c),N.setQuality(c)):re.features.qualityDetailsSubMenuEnabled?x==="default"&&(no("auto_quality",V),$e(ut)&&kt(!1),$e(hi)&&bi(!1)):jl()},kt=(c,x="as-default")=>{Z({message:`set trafficSavingEnabled, value: ${c}`}),te.log("set traffic saving enabled",{trafficSavingEnabled:c});let V=c?os.TRAFFIC_SAVING:os.UNKNOWN;re.features.qualityDetailsSubMenuEnabled?(_o(V,x),Yl(!1)):(N.setPredefinedQualityLimits(V),Yl(c))},bi=(c,x="as-default")=>{Z({message:`set highQualityEnabled, value: ${c}`}),te.log("set high quality enabled",{highQualityEnabled:c}),_o(c?os.HIGH_QUALITY:os.UNKNOWN,x)},_o=(c,x)=>{c!==os.UNKNOWN&&($e(Ot)&&!$e(gn)&&et("auto",{appliesTo:x,changeReason:"limit-changed"}),no(c,x)),N.setPredefinedQualityLimits(c)},no=(c,x)=>{Oc({type:c,videoId:i},x),x==="as-default"&&Oc({type:c,videoId:i},"to-video")},ro=c=>{te.log("set playback rate",{playbackRate:c}),N.setPlaybackRate(c),re.features.saveRate&&ie&&!N.info.isLive$.getValue()&&yh(c)},To=()=>{let c=$e(Bn),x=c.findIndex(({selected:ne})=>ne);if(x===c.length-1)return;let V=c[x+1];ro(V.value)},Wo=()=>{let c=$e(Bn),x=c.findIndex(({selected:ne})=>ne);if(x===0)return;let V=c[x-1];ro(V.value)},Eo=(c={...it,selected:!1})=>{te.log("set subtitles",{...c}),c.value!==it.value&&Je.next(c.isAuto?c.value+"_auto":c.value),Ut.set(c),Qp(c.value===it.value?void 0:c.language)},Ni=()=>{te.log("toggle subtitles");let c=$e(_n),x=$e(Ut),V=$e(Nt);if((x==null?void 0:x.value)===it.value){let ne=c.filter(Fe=>Fe.value!==it.value).find(Fe=>Fe.value===V)||c[1];Eo(ne)}else Eo()},Zi=ae(!0),Io=c=>{Zi.set(c)},so=(c,x,V=!0)=>{var ne;if(Z({message:`seek to time, time: ${c}`}),te.log("seek to time",{time:c,action:x,forcePrecise:V}),Mt.next(x),N.info.isLive$.getValue()){let Fe=N.info.duration$.getValue(),pt=Math.min(0,Fe+c);N.seekTime(pt,V)}else{if(E!=null&&E.getValue())return;N.info.isEnded$.getValue()&&(Z({message:"seek after ended, call callbacks.onPlay"}),(ne=a==null?void 0:a.onPlay)==null||ne.call(a)),N.seekTime(ys(c),V)}},ko=c=>{Z({message:`seek to episode start time: ${c}`}),te.log("seek to episode start time",{time:c}),so(c,gs.EPISODE,!0)},Un=(c,x)=>{Z({message:`seek to percent, percent: ${c}`}),te.log("seek to percent",{percent:c,action:x});let V=$e(Fo)*c;so(V,x,!1)},dr=c=>{Z({message:`seek external, time: ${c}`}),te.log("seek external",{time:c}),Mt.next(gs.UNKNOWN),N.seekTime(N.info.isLive$.getValue()?-c:c)},rs=c=>{var ne,Fe;let x=(ne=c.max)!=null?ne:"none",V=(Fe=c.min)!=null?Fe:"none";Z({message:`set auto quality limitation. Max: ${x}. Min: ${V}`}),te.log("set auto quality limits",{max:x,min:V}),N.setAutoQualityLimits(c)},Cr=c=>{Z({message:`seek external to episode start time: ${c}`}),te.log("seek external to episode start time",{time:c}),so(c,gs.EPISODE,!0)},Sr=c=>{Z({message:`set playback rate to: ${c}`}),te.log("set playback rate external",{playbackRate:c}),N.setPlaybackRate(c)},cr=ae(void 0),ur=ae(!1),rn=c=>{Z({message:`start scrubbing, progress: ${c}`}),te.log("start scrubbing",{progress:c}),ur.set(!0),ao(c)},ao=c=>{cr.set(c)},xn,Tr,pr=()=>{cr.set(void 0),ur.set(!1)},Er=()=>{clearTimeout(Tr),clearTimeout(xn),xn=window.setTimeout(()=>{pr()},500),Xe==null||Xe.removeEventListener("seeked",Er)},je=c=>{Z({message:`complete scrubbing, progress: ${c}`}),te.log("complete scrubbing",{progress:c}),Un(c,gs.SLIDER),$e(It.ui.isMobile)&&$e(It.state.currentFormat$)===wd.HLS?(Xe==null||Xe.addEventListener("seeked",Er),Tr=window.setTimeout(()=>{Er()},300)):pr()},Jt=gi([ht,Fo,cr],([c,x,V],ne)=>{ne(G2(V)?V*x:c)}),pe=ae(!1),wt=()=>{pe.set(!0)},oi=()=>{pe.set(!1)},pi=ae({width:0,height:0}),Ne=gi([pi],([{width:c}],x)=>{let V=i1(c);x(V)}),mt=ae(!1),ni=Y.filter(c=>dh(c)),Po=gi([Ne,mt],([c,x])=>x?ni.filter(V=>!V.hideOnMobile):ni.filter(V=>{var ne;return!((ne=V.hideOnDesktopGridTypes)!=null&&ne.includes(c))})),Bi=ae(Y.filter(c=>ch(c))),sn=gi([Bi,Ne],([c,x])=>c.filter(V=>{var ne;return!((ne=V.hideOnDesktopGridTypes)!=null&&ne.includes(x))})),Ir=gi([sn,Po],([c,x])=>[...re.features.additionalButtonsDesktopControlPanelRight?c.filter(V=>V.type==="desktop-control-panel-right"):[],...re.features.additionalButtons?x.map((V,ne)=>{var Fe;return{id:ne,weight:ne,type:"desktop-control-panel-right",testId:V.testId,icon:V.iconUrl,onClick:V.onClick,ariaLabel:(Fe=V.ariaLabel)!=null?Fe:V.tooltip,tooltipText:V.tooltip}}):[]]),Ao=ae(D),Xi=gi([Ao],([c])=>re.features.additionalSettingsMenuItems?c.map(x=>x.type==="SWITCH"?{...x,onClick:x.onChangeEnabled}:x):[]),ki=(c,x)=>{let V=$e(Bi).map(ne=>ne.id!==c?ne:{...ne,...x});Bi.set(V)},wn=c=>{let x=$e(Bi);if(x.some(V=>V.id===c.id)){Z({message:`Additional button with id: "${c.id}" was exist! Can't add more with the same id`});return}x.push(c),Bi.set(x)},zn=c=>{let x=$e(Bi);if(!x.some(V=>V.id===c)){Z({message:`Can't find additional button with id: "${c}"! Can't remove item with this id`});return}x=x.filter(V=>V.id!==c),Bi.set(x)},kr=c=>{Mt.next(gs.LIVE),Z({message:"live switch to low latency "+c}),te.log("live switch to low latency "+c),N.setLiveLowLatency(c)},bo=(c,x)=>{let V=$e(Ao).map(ne=>ne.id!==c?ne:{...ne,...x});Ao.set(V)},Ia=c=>{let x=$e(Ao);if(x.some(V=>V.id===c.id)){Z({message:`Settings menu item with id: "${c.id}" was exist! Can't add more with the same id`});return}x.push(c),Ao.set(x)},Fs=c=>{let x=$e(Ao);if(!x.some(V=>V.id===c)){Z({message:`Can't find settings menu item with id: "${c}"! Can't remove item with this id`});return}x=x.filter(V=>V.id!==c),Ao.set(x)},dt=ae(H),_t=gi([dt],([c])=>re.features.additionalContextMenuItems?c:[]),lo=(c,x)=>{let V=$e(dt).map(ne=>ne.id!==c?ne:{...ne,...x});dt.set(V)},Ko=c=>{let x=$e(dt);if(x.some(V=>V.id===c.id)){Z({message:`Context menu item with id: "${c.id}" was exist! Can't add more with the same id`});return}x.push(c),dt.set(x)},co=c=>{let x=$e(dt);if(!x.some(V=>V.id===c)){Z({message:`Can't find context menu item with id: "${c}"! Can't remove item with this id`});return}x=x.filter(V=>V.id!==c),dt.set(x)},di=gi([mt,Qt],([c,x],V)=>{V(c&&x)}),Oi=()=>{Mt.next(gs.LIVE),Z({message:"switch to active live"}),te.log("switch to active live"),N.seekTime(0),N.info.playbackState$.getValue()!==xd.PLAYING&&It.actions.internal.togglePlay()},$s=()=>{te.log("skip adman"),ye.skip()},ml=(c=!0)=>{var ne;Jn(It),Z({message:`switch from ads to video, callPlay: ${c}`}),te.log("switch from ads to video",{callPlay:c}),ge.set("video"),c&&N.play(),l&&Fn(!0);let x=(ne=$e(le))==null?void 0:ne.muted,V=!N.info.muted$.getValue();x!==void 0&&!V&&Fn(x),le.set(void 0)},Zd=()=>{Jn(It),Z({message:"switch from video to ads"}),te.log("switch from video to ads"),It.actions.internal.pause(),Xt(),ge.set("ads")},Lu=c=>{Jn(It);let x=c?"LiveWaitingStart":"thumb";te.log("set live waiting start",{state:c,playerPhase:x}),ge.set(x)},Xd=c=>{Jn(It);let x=c?"LiveWaitingRecover":"thumb";te.log("set live waiting recover",{state:c,playerPhase:x}),ge.set(x)},Vu=c=>{Jn(It);let x=c?"LiveWaitingRecord":"thumb";te.log("set live waiting record",{state:c,playerPhase:x}),ge.set(x)},Jd=()=>(Jn(It),te.log("get debug text data"),sh(N,Ke,It,ke.getTraceId())),Ru=()=>(Jn(It),JSON.stringify(ke.getFinishedSpans())),ec=()=>(Jn(It),ah(N,Ke,It)),ka=()=>Xe,tc=()=>{Z({message:"toggle chromecast"}),te.log("toggle chromecast"),N.toggleChromecast()},ic=c=>{var V;if(Jn(It),N.info.isEnded$.getValue())return;let x=!c;if($e(It.playerPhase)==="ads"){Z({message:`pause ads, internalCall: ${x}`}),te.log("pause ads",{internalCall:x}),ye.pause();return}Z({message:`pause video, internalCall: ${x}`}),te.log("pause video",{internalCall:x}),x&&((V=a==null?void 0:a.onPause)==null||V.call(a)),N.pause()},vl=c=>{var V;Jn(It);let x=!c;if($e(It.playerPhase)==="ads"){Z({message:`play ads, internalCall: ${x}`}),te.log("play ads",{internalCall:x}),ye.play();return}Z({message:`play video, internalCall: ${x}`}),te.log("play video",{internalCall:x}),x&&((V=a==null?void 0:a.onPlay)==null||V.call(a)),N.play()},oc=c=>{Jn(It);let x=!c;if($e(It.playerPhase)==="ads"){Z({message:"player cannot be stopped during ads via external method"});return}Z({message:`player will be stopped, internalCall: ${x}`}),I==null||I()},gl=(c,x)=>{Jn(It),Z({message:`first start, show ads: ${c}, internalCall: ${!x}`}),te.log("first start",{showAds:c,external:x}),c?ge.set("ads"):(ge.set("video"),x?N.play():It.actions.internal.togglePlay())},hl=()=>(Z({message:"getting time codes"}),f),_l=()=>{let c=hl();if(!c||[0,1].includes(c.length))return;let x=N.info.position$.getValue();return c.find(V=>V.time>x)},Nu=c=>{let x=c;x||(x=_l());let V=N.info.position$.getValue();te.log("seek to next episode",{currentTime:V,...x}),x&&(Z({message:"seek to next episode"}),so(x.time,gs.EPISODE,!0))},bl=()=>{let c=hl();if(!c||[0,1].includes(c.length))return;let x=N.info.position$.getValue(),V=c.findIndex(Fe=>Fe.time>x),ne=V===-1?c.length-2:V-2;if(!(ne<0))return c[ne]},Bu=c=>{let x=c;x||(x=bl());let V=N.info.position$.getValue();te.log("seek to prev episode",{currentTime:V,...x}),x&&(Z({message:"seek to prev episode"}),so(x.time,gs.EPISODE,!0))},Ou=()=>(Z({message:"getting preview thumbs data"}),te.log("get preview thumbs data",{...v}),v),Du=async()=>{let c=ce==null?void 0:ce.isActive(),x="none";ce!=null&&ce.isActive()?(x="exit",await(ce==null?void 0:ce.exit())):(x="request",await(ce==null?void 0:ce.request())),te.log("toggle picture in picture",{isActive:c,action:x})},Qe=(c=-90)=>{te.log("rotate video",{alphaDiff:c}),St.update(x=>x+c)},ri=ae([]);T==null||T.subscribe(c=>{let x=[];for(let V=0;V<c.length;V++){let{range:[ne,Fe],subjects:pt}=c[V];V===0&&ne!==0&&x.push({time:0,text:"",interactive:!1,completed:!0}),x.push({time:ne/1e3,text:"",interactive:!0,completed:re.features.interactiveTimeOpenUri?!pt.length||pt.every(Dt=>Dt.isRemoved):!pt.length}),Fe!==1/0&&x.push({time:Fe/1e3,text:"",interactive:!1,completed:!0})}ri.set(x)});let Mo=ae(!1);E==null||E.subscribe(c=>{c&&$e(ur)&&pr()});let ys=c=>{if(!S)return c;let x=$e(ri),V=$e(Fo),Fe=$e(Vn)/V,pt=x.find(Dt=>Dt.interactive&&!Dt.completed&&Dt.time>Fe);return typeof(pt==null?void 0:pt.time)=="number"?Math.min(c,pt.time-.05):c},an=()=>{It.ui.episodes.panelOpened$.set(!1)},i0=()=>{te.log("destroy store"),clearTimeout(Tr),clearTimeout(xn),Ce.unsubscribe(),ti.unsubscribe(),N.destroy(),ye.destroy(),de==null||de.destroy(),he==null||he.destroy(),Wt.unsubscribe(),ai==null||ai.disconnect(),ai=null,ee.destroy()},It={interfaceLanguage$:Nt,isCyrillicRelatedInterface$:oe,initVideo:Ye,videoId:i,isClip:o,playerPhase:be,vsid:qe,state:{positionExact$:ht,positionWithScrubbing$:Jt,duration$:Fo,playbackState$:Ci,isPlaying$:io,isLoaderVisible:Ln,bufferedProgress$:$r,isLive$:Bt,canChangePlaybackSpeed$:ci,isActiveLive$:mo,isOldestAvailableLive$:en,isRewindableLive$:tr,isEnded$:G,muted$:rt,volume$:ft,trafficSavingEnabled$:ut,highQualityEnabled$:hi,autoQualityLimitingAvailable$:Ot,availableVideoStreams$:or,availableAudioStreams$:Hr,videoStream$:Rn,audioStream$:ns,currentQuality$:Ur,isAutoQualityEnabled$:gn,availableQualities$:zr,currentPlaybackRate$:hn,availablePlaybackRates$:Bn,currentSubtitle$:Ut,availableTextTracks$:On,availableSubtitlesList$:_n,currentSubtitleCaptions$:bn,isAutoSubtitleCaptionVisible$:br,chromecastState$:fo,chromecastDeviceName$:Mi,chromecastConnected$:ir,currentFormat$:$t,throughputEstimation$:Li,videoBitrate$:Xo,videoSize$:fn,errorLog$:Ge,crashed$:Qt,isAudioAvailable$:ji,isAudioDisabled:!!l,canDownload:re.features.download&&!!d,availableSources$:$n,hasMpegSources$:Wr,isInteractive:S,showInteractiveGraph:re.features.interactiveGraph,showSeekToInteractive:re.features.seekToInteractive,showPlayPrevChapter:re.features.interactivePlayPrevChapter,showInteractiveTimeIndicator:re.features.interactiveTimeIndicator&&!!$e(ri).length,interactiveEpisodes$:ri,isInteractiveTime$:E?ei(E):ae(!1),isInteractiveExpectation$:Mo,hasInteractiveBranches:k,playPrevChapterDisabledTooltip:R,looped$:Ii,loadedMetadata$:ae(!1),isAutoQualityAvailable$:_r},ui:{t:At,controlsVisible:ae(!1),touched:ae(!1),controls:{prevButton:ae(void 0),playButton:ae(void 0),replayButton:ae(void 0),nextButton:ae(void 0),playPrevChapterButton:ae(void 0),seekToInteractiveButton:ae(void 0),interactiveGraphButton:ae(void 0),liveButton:ae(void 0),time:ae(void 0),episodes:ae(void 0),volume:ae(void 0),subtitles:ae(void 0),settings:ae(void 0),context:ae(void 0),chromecast:ae(void 0),pip:ae(void 0),fullscreen:ae(void 0),vkLogo:ae(void 0),interactiveTimeIndicator:ae(void 0),timeline:ae(void 0),autoplayNextToggle:ae(void 0),additionalButtons:Y.length?Y.reduce(c=>[...c,ae(void 0)],[]):[],disabledControls$:ze},modals:{hotKeyMap:{show:ae(!1),data:ae({title:"",closeBtnText:"",groups:[]})}},isFullscreen:st,isFullscreenOpenedByKeyboard:ct,rotateAlpha:St,isAutoplay:ae(!1),debugPanelVisible:ae(!1),episodes:{panelOpened$:ae(!1),openedByKeyboard$:ae(!1)},contextMenu:{visible$:ae(!1),btnRef$:ae(void 0),openedByBtnKeyboard$:ae(!1),openedByHotKey$:ae(!1),lastActiveElem$:ae(void 0),showContextMenuBtn$:ae(!1),position$:ae({top:0,left:0})},playerSize:pi,isMobile:mt,mobileNotReportControlHidden$:di,mobileUnmuteButtonExpanded:ae(!1),mobileUnmuteButtonVisible:ae(!1),icon3DVideoVisible:ae(!1),scrubbingInProgress:ur,volumeChangingInProgress:pe,is3DVideo:ae(!1),currentGridType$:Ne,additionalButtonsDeprecated$:Po,additionalDesktopControlPanelRightButtons$:Ir,additionalSettingsMenuItems$:Xi,additionalContextMenuItems$:_t,interactiveHideMobileControls:ae(!1),overlayContainer$:ae(void 0),startedByKeyboard$:ae(!1),autoplayNextEnabled$:ae(!1),timerNextVideoRunning$:ae(!0),settingsMenu:{visible$:ae(!1),ref$:ae(void 0),openedByBtnKeyboard$:ae(!1)},settingsSubMenu:{visible$:ae(!1),ref$:ae(void 0),name$:ae(void 0)},aboutToGoNextVideo:ae(void 0),userActionsDisabled:ae(!1),hiddenControls:{volume:ae(!1),vkLogo:ae(!1),pip:ae(!1),chromecast:ae(!1),settings:ae(!1)},isControlsAvailable:Zi,controlBlocks:{topLeft:ae(void 0),topRight:ae(void 0),middle:ae(void 0),bottom:ae(void 0),bottomLeft:ae(void 0),bottomRight:ae(void 0)},videoTitleInfo:ae(void 0)},ads:{position:ae(0),duration:ae(0),playbackState:ae("inactive"),canSkip:ae(!1),secondsToWatchBeforeSkip:ae(0),postrollPassed:ae(!1)},webApi:{pictureInPictureApi:ce,annotationsApi:ue,slotsApi:we},actions:{internal:{preload:lr,firstStart:c=>gl(c,!1),play:()=>vl(!1),pause:()=>ic(!1),togglePlay:wr,toggleMuted:rr,openSettingsMenu:nn,closeSettingsMenu:yr,openSettingsSubMenu:Ri,closeSettingsSubMenu:ii,setVolume:Hn,startVolumeChanging:wt,stopVolumeChanging:oi,setVideoStream:Fr,setAudioStream:Vi,setQuality:et,setTrafficSavingEnabled:kt,setHighQualityEnabled:bi,setPlaybackRate:ro,incrementPlaybackRate:To,decrementPlaybackRate:Wo,setSubtitle:Eo,toggleSubtitle:Ni,togglePictureInPicture:Du,startScrubbing:rn,progressScrubbing:ao,completeScrubbing:je,toggleChromecast:tc,switchToActiveLive:Oi,switchFromAdsToVideo:ml,switchFromVideoToAds:Zd,skipAd:$s,setLiveWaitingStart:Lu,setLiveWaitingRecover:Xd,setLiveWaitingRecord:Vu,getDebugTextData:Jd,getTraceTextData:Ru,getDebugPanelData:ec,getVideoElement:ka,seekTime:(c,x,V)=>so(c,x,V),clearDelayedBufferingCheckTimeout:Co,seekEpisodeStartTime:ko,seekToPercent:Un,getNextEpisode:_l,seekToNextEpisode:Nu,getPrevEpisode:bl,seekToPrevEpisode:Bu,startLogging:ui,stopLogging:wo,startCameraManualRotation:po,stopCameraManualRotation:Yt,moveCameraFocusPX:wi,holdCamera:Yi,releaseCamera:yt,getVideoEpisodes:hl,getPreviewThumbsData:Ou,downloadVideo:Kr,addLanguage:Yp,setLanguage:qt,nextMovie:tt,videoRotate:Qe,correctSeekTimeToInteractive:ys,replayInteractive:M,setLooped:xr,reportProblem:qr,setAutoplayNextEnabled:xt,setTimerNextVideoRunning:li,prevVideoClick:zo,nextVideoClick:So,nextVideoAnnouncementShow:_i,nextVideoAnnouncementClick:ho,nextVideoAnnouncementAuto:oo,nextVideoAnnouncementCancel:ar},external:{firstStart:c=>gl(c,!0),play:()=>vl(!0),pause:()=>ic(!0),stop:()=>oc(!0),seekTime:c=>dr(c),seekEpisodeStartTime:c=>Cr(c),setPlaybackRate:c=>Sr(c),setAutoQualityLimits:c=>rs(c),setMuted:Fn,toggleSubtitle:Ni,setVolume:Hn,returnFocusToEpisodes:an,updateAdditionalSettingsItem:bo,addAdditionalSettingsItem:Ia,removeAdditionalSettingsItem:Fs,updateAdditionalContextItem:lo,addAdditionalContextItem:Ko,removeAdditionalContextItem:co,updateAdditionalButton:ki,addAdditionalButton:wn,removeAdditionalButton:zn,setLiveLowLatency:kr,hideControls:()=>Io(!1),showControls:()=>Io(!0)}},callbacks:a,setUiCallbacks:c=>{Ae={...c}},getAdmanWrapper:()=>ye,getLogger:()=>Oe,getPlayer:()=>N,destroy:i0};return It};function An(t,e,i,o){var f;let n=(f=e[i])==null?void 0:f.getBoundingClientRect(),s=o&&!!n&&!!(n.right-n.left),{top:l,left:d,bottom:a,right:p}=vs(e[i],t||void 0);return{left:s?d:0,right:s?p:0,top:s?l:0,bottom:s?a:0,isDisplayed:s}}var ny=["disabledControls$","additionalButtons"],ry=["interactiveTimeIndicator"],ll=(t,e,i,o)=>{if(t){for(let[n,s]of Object.entries(e))if(!ny.includes(n)){let l=o||ry.includes(n);s.set(An(t,i,n,l))}}};var fu=async(t,e,i)=>{await yo(),e&&i&&(i.focus(),t.set(!1))};var sy=Te('<svg><!><path fill="var(--btn-color, #fff)" d="M18 10c1.1 0 2 .9 2 2s-.9 2-2 2-2-.9-2-2 .9-2 2-2m-6 4c-1.1 0-2-.9-2-2s.9-2 2-2 2 .9 2 2-.9 2-2 2m-6 0c-1.1 0-2-.9-2-2s.9-2 2-2 2 .9 2 2-.9 2-2 2"></path></svg>');function Gf(t,e){let i=Ve(e,["$$slots","$$events","$$legacy","children"]);var o=sy();Pe(o,()=>({xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none","aria-hidden":"true","data-testid":"dots-icon",role:"img",...i}));var n=_(o);xe(n,()=>{var s;return(s=e.children)!=null?s:se}),Se(),h(o),$(t,o)}function Qf(t,e){F(e,!0);let[i,o]=He(),n=()=>C(a,"$contextMenuVisible$",i),s=m(e,"disabled",3,!1),l=m(e,"ariaLabel",3,""),d=Ee(),a=d.ui.contextMenu.visible$,p=d.ui.contextMenu.openedByBtnKeyboard$,f=d.ui.contextMenu.showContextMenuBtn$,v=d.ui.contextMenu.position$,u=d.ui.contextMenu.btnRef$,y=j(void 0);We(()=>{r(y)&&Ct(()=>{u.set(r(y))})});let w=E=>{let M=Rs(E),I=Qh(r(y));v.set(I),p.set(M),a.set(!n())},b=()=>{f.set(!0)},S=()=>{f.set(!1)},T=g(()=>n()?"opened":"");Vt(t,{get className(){return r(T)},testId:"btn-context-menu",get disabled(){return s()},get ariaLabel(){return l()},click:w,focus:b,blur:S,get ariaExpanded(){return n()},get ref(){return r(y)},set ref(E){B(y,E,!0)},children:(E,M)=>{Gf(E,{})},$$slots:{default:!0}}),U(),o()}var ay=t=>{t.stopPropagation()},ly=A("<div><!> <div></div> <div></div></div>"),dy={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
227
 
228
228
  @media screen and (orientation: portrait) {.interactive-episode-icon-animated.mobile.fullscreen.svelte-od3veb {top:40px;right:16px;}
229
229
  }
@@ -248,8 +248,8 @@ Try switching the\xA0quality to\xA0Auto.`},Ih=w_;var fs=new Map;fs.set(Ph.EN,Ih)
248
248
  opacity: 0;
249
249
  }
250
250
  }.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);
251
- 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 xd(t,e){var ue;D(e,!0),z(t,dy);let[i,o]=De(),n=()=>C(S,"$isMobile",i),r=()=>C(I,"$areControlsVisible",i),l=()=>C(V,"$currentGridType$",i),d=()=>C(k,"$isInteractiveTime$",i),a=()=>C(y,"$interactiveControlsOpacity$",i),p=()=>C(A,"$showInteractiveTimeIndicatorTooltip$",i),f=()=>C(T,"$isFullscreen",i),v=m(e,"ref",15,void 0),u=j(void 0),$=Ee(),w=co(),{interactiveControlsOpacity$:y}=w,S=$.ui.isMobile,T=$.ui.isFullscreen,k=$.state.isInteractiveTime$,A=w.showInteractiveTimeIndicatorTooltip$,I=$.ui.controlsVisible,E=(ue=$.callbacks)==null?void 0:ue.onInteractiveTimeIndicatorClick,V=$.ui.currentGridType$,K=h(()=>!n()&&r()),W=h(()=>Ns(l(),"s")),U=h(()=>!d()||!!a()||s(K)),Y=j(!1);We(()=>{B(Y,s(U),!0)});let ne=()=>{B(Y,!0)},G=()=>{var xe;ce(),(xe=s(u))==null||xe.addEventListener("animationiteration",ne,{once:!0})},ce=()=>{var xe;B(Y,!1),(xe=s(u))==null||xe.removeEventListener("animationiteration",ne)},le=xe=>{A.set(xe)},we=h(()=>p()&&!s(U));We(()=>{p()?G():ce()});let Ve=()=>{s(U)||(A.set(!0),E==null||E())};In(()=>{A.clearTimeout(),ce()});let ve=()=>{A.set(!1)},ae=F("tooltip_interactive_interaction_time_indicator");var Le=ly();let te;Le.__mousemove=[ay],Le.__click=Ve;var N=_(Le);Lo(N,{get tooltipContent(){return ae},get tooltipActive(){return s(we)},initialTranslateYPx:72,tooltipPlacement:"bottom",onTooltipVisibilityChange:le,get ref(){return v()},set ref(xe){v(xe)},children:(xe,Z)=>{fd(xe,{completed:!0})},$$slots:{default:!0}});var Be=P(N,2);let ye;ot(Be,xe=>v(xe),()=>v());var ge=P(Be,2);let de;ot(ge,xe=>B(u,xe),()=>s(u)),g(Le),O((xe,Z,qe)=>{te=J(Le,1,"interactive-episode-icon-animated svelte-od3veb",null,te,xe),ye=J(Be,1,"ref-block svelte-od3veb",null,ye,Z),de=J(ge,1,"pulse svelte-od3veb",null,de,qe)},[()=>({mobile:n(),fullscreen:f(),invisible:s(U),"icon-small":s(W)}),()=>({hidden:s(U)}),()=>({paused:s(Y)})]),wt("mouseleave",Le,ve),b(t,Le),H(),o()}lt(["mousemove","click"]);function pu(t,e){D(e,!0);let i=m(e,"tooltipEnabled",3,!0),o=m(e,"disabled",3,!1),n=m(e,"className",3,void 0),r=m(e,"ref",15);Lo(t,{get disabled(){return o()},get tooltipContent(){return e.tooltipText},get disabledTooltipContent(){return e.disabledTooltipContent},get hasTooltip(){return i()},get mouseEnter(){return e.mouseEnter},get mouseLeave(){return e.mouseLeave},get className(){return n()},get ref(){return r()},set ref(l){r(l)},children:(l,d)=>{var a=Ue();let p=h(()=>e.buttonComponent);var f=fe(a);yi(f,()=>s(p),(v,u)=>{u(v,ps(()=>{var $;return($=e.buttonComponentProps)!=null?$:{}}))}),b(l,a)},$$slots:{default:!0}}),H()}var hs={prevButton:100,replayButton:200,playButton:300,nextButton:400,playPrevChapterButton:500,seekToInteractiveButton:600,interactiveGraphButton:700,liveButton:800};var uy=Se('<svg><!><path fill="var(--btn-color, #fff)" d="M16 10.835V7.5a1 1 0 1 1 2 0v9a1 1 0 0 1-2 0v-3.335l-8.149 4.67C7.03 18.304 6 17.715 6 16.772V7.227c0-.943 1.029-1.533 1.851-1.061L16 10.834z"></path></svg>');function Gf(t,e){let i=Me(e,["$$slots","$$events","$$legacy","children"]);var o=uy();Ie(o,()=>({xmlns:"http://www.w3.org/2000/svg",width:"26",height:"24",fill:"none","aria-hidden":"true",role:"img",...i}));var n=_(o);be(n,()=>{var r;return(r=e.children)!=null?r:oe}),Ce(),g(o),b(t,o)}function Bs(t,e){let i=m(e,"isPrev",3,!1),o=m(e,"isMobile",3,!1),n=m(e,"width",3,"24"),r=m(e,"height",3,"24"),l=h(()=>i()&&o()?"transform: scaleX(-1) scale(1.3333);":i()?"transform: scaleX(-1);":o()?"transform: scale(1.3333);":void 0),d=h(()=>i()?"prev-icon":"next-icon");Gf(t,{get style(){return s(l)},get width(){return n()},get height(){return r()},get viewBox(){return e.viewBox},get"data-testid"(){return s(d)}})}var py=M('<div class="icon-background-mobile svelte-xtk2k4"></div>'),fy=M("<!> <!>",1),my={hash:"svelte-xtk2k4",code:".icon-background-mobile.svelte-xtk2k4 {position:absolute;top:0;left:0;width:100%;height:100%;border-radius:var(--big-play-radius);background-color:var(--big-play-bg-color);}"};function ba(t,e){D(e,!0),z(t,my);let i=m(e,"ref",15,void 0),o=m(e,"isMobile",3,!1),n=m(e,"disabled",3,!1),l=Ee().ui.t,d=h(()=>e.type==="prev"?l("tooltip_previous"):l("tooltip_next")),a=h(()=>e.type==="prev"?l("hotkey_map_item_prev_video_value"):l("hotkey_map_item_next_video_value")),p=h(()=>`btn-${o()?"m":"d"}--${e.type}`);Vt(t,{get className(){return s(p)},get testId(){var f;return`btn-${(f=e.type)!=null?f:""}`},get disabled(){return n()},get ariaLabel(){return s(d)},get click(){return e.click},get ariaKeyShortCut(){return s(a)},get ref(){return i()},set ref(f){i(f)},children:(f,v)=>{var u=fy(),$=fe(u);{var w=T=>{var k=py();b(T,k)};L($,T=>{o()&&T(w)})}var y=P($,2);let S=h(()=>e.type==="prev");Bs(y,{get isMobile(){return o()},get isPrev(){return s(S)}}),b(f,u)},$$slots:{default:!0}}),H()}var vy=Se('<svg><!><path fill="var(--btn-color, #fff)" d="M12 10.096a.4.4 0 0 1-.67.296L7.044 6.493a.67.67 0 0 1 0-.986l4.288-3.899a.4.4 0 0 1 .669.296V5a8 8 0 1 1-8 8 1 1 0 1 1 2 0 6 6 0 1 0 6-6z"></path></svg>');function wd(t,e){let i=Me(e,["$$slots","$$events","$$legacy","children"]);var o=vy();Ie(o,()=>({xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none","aria-hidden":"true","data-testid":"replay-icon",role:"img",...i}));var n=_(o);be(n,()=>{var r;return(r=e.children)!=null?r:oe}),Ce(),g(o),b(t,o)}import{noop as gy}from"@vkontakte/videoplayer-shared/es2018";var hy=M('<div class="icon-background-mobile svelte-1ot3duq"></div>'),_y=M("<!> <div><!></div>",1),by={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 ul(t,e){D(e,!0),z(t,by);let i=m(e,"ref",15,void 0),o=m(e,"isMobile",3,!1),n=m(e,"disabled",3,!1),r=m(e,"className",3,""),l=m(e,"click",3,gy),d=F("tooltip_restart"),a=h(()=>`${o()?"btn-m--play":""} ${r()}`);Vt(t,{get className(){return s(a)},testId:"btn-replay",get ariaLabel(){return d},get disabled(){return n()},get click(){return l()},get ariaKeyShortCut(){return ts.KeyK},get ref(){return i()},set ref(p){i(p)},children:(p,f)=>{var v=_y(),u=fe(v);{var $=T=>{var k=hy();b(T,k)};L(u,T=>{o()&&T($)})}var w=P(u,2);let y;var S=_(w);wd(S,{}),g(w),O(T=>y=J(w,1,"svelte-1ot3duq",null,y,T),[()=>({mobile:o()})]),b(p,v)},$$slots:{default:!0}}),H()}var $y=Se('<svg fill="none" xmlns="http://www.w3.org/2000/svg" aria-hidden="true" data-testid="play-icon"><path d="M17.671 10.923c.82.483.82 1.67 0 2.154l-8.787 5.175A1.25 1.25 0 0 1 7 17.174V6.826a1.25 1.25 0 0 1 1.884-1.078l8.787 5.175z"></path></svg>');function Nr(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"),r=m(e,"fill",3,"var(--btn-color)");var l=$y(),d=_(l);g(l),O(()=>{Ne(l,"width",i()),Ne(l,"height",o()),Ne(l,"viewBox",n()),Ne(d,"fill",r())}),b(t,l)}var yy=Se('<svg fill="none" xmlns="http://www.w3.org/2000/svg" aria-hidden="true" data-testid="pause-icon"><path d="M8.712 5c.448 0 .61.047.774.134a.913.913 0 0 1 .38.38c.087.164.134.326.134.774v11.424c0 .448-.047.61-.134.774a.914.914 0 0 1-.38.38c-.164.087-.326.134-.774.134H6.788c-.448 0-.61-.047-.774-.134a.914.914 0 0 1-.38-.38c-.087-.164-.134-.326-.134-.774V6.288c0-.448.047-.61.134-.774a.913.913 0 0 1 .38-.38C6.178 5.047 6.34 5 6.788 5h1.924zm8 0c.448 0 .61.047.774.134a.914.914 0 0 1 .38.38c.087.164.134.326.134.774v11.424c0 .448-.047.61-.134.774a.914.914 0 0 1-.38.38c-.164.087-.326.134-.774.134h-1.924c-.448 0-.61-.047-.774-.134a.914.914 0 0 1-.38-.38c-.087-.164-.134-.326-.134-.774V6.288c0-.448.047-.61.134-.774a.914.914 0 0 1 .38-.38c.164-.087.326-.134.774-.134h1.924z"></path></svg>');function _s(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"),r=m(e,"fill",3,"var(--btn-color)");var l=yy(),d=_(l);g(l),O(()=>{Ne(l,"width",i()),Ne(l,"height",o()),Ne(l,"viewBox",n()),Ne(d,"fill",r())}),b(t,l)}import{noop as xy}from"@vkontakte/videoplayer-shared/es2018";var wy=M('<div class="icon-background-mobile svelte-1ot3duq"></div>'),Cy=M("<!> <div><!></div>",1),Sy={hash:"svelte-1ot3duq",code:".mobile.svelte-1ot3duq {position:relative;display:flex;align-items:center;justify-content:center;}.mobile.svelte-1ot3duq svg {transform:scale(2);}.icon-background-mobile.svelte-1ot3duq {position:absolute;top:16px;left:16px;border-radius:var(--big-play-radius);background-color:var(--big-play-bg-color);width:calc(100% - 32px);height:calc(100% - 32px);}"};function pl(t,e){D(e,!0),z(t,Sy);let[i,o]=De(),n=()=>C(r,"$fakeIsPlaying$",i),{fakeIsPlaying$:r}=co(),l=m(e,"ref",15,void 0),d=m(e,"isMobile",3,!1),a=m(e,"isPlaying",3,!1),p=m(e,"disabled",3,!1),f=m(e,"className",3,""),v=m(e,"click",3,xy),$=Ee().ui.t,{toggle:w}=r,y=h(()=>w),S=h(()=>n()!==null),T=h(()=>s(S)?n():a()),k=h(()=>s(T)?$("tooltip_pause"):$("tooltip_play")),A=h(()=>s(T)?_s:Nr),I=h(()=>`${d()?"btn-m--play":""} ${f()}`),E=h(()=>s(S)?s(y):v());Vt(t,{get className(){return s(I)},testId:"btn-play",get click(){return s(E)},get disabled(){return p()},get ariaLabel(){return s(k)},get ariaKeyShortCut(){return ts.KeyK},get ref(){return l()},set ref(V){l(V)},children:(V,K)=>{var W=Cy();let U=h(()=>s(A));var Y=fe(W);{var ne=we=>{var Ve=wy();b(we,Ve)};L(Y,we=>{d()&&we(ne)})}var G=P(Y,2);let ce;var le=_(G);yi(le,()=>s(U),(we,Ve)=>{Ve(we,{})}),g(G),O(we=>ce=J(G,1,"svelte-1ot3duq",null,ce,we),[()=>({mobile:d()})]),b(V,W)},$$slots:{default:!0}}),H(),o()}var Ty=Se('<svg><!><path fill="var(--btn-color, #fff)" d="M12.583 12.917v2.496a1 1 0 0 1-1.522.853l-5.583-3.413a1 1 0 0 1 0-1.706l5.583-3.413a1 1 0 0 1 1.522.853v2.496l5.478-3.349a1 1 0 0 1 1.522.853v6.826a1 1 0 0 1-1.522.853z"></path></svg>');function Yf(t,e){let i=Me(e,["$$slots","$$events","$$legacy","children"]);var o=Ty();Ie(o,()=>({xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none","data-testid":"play-prev-chapter-icon",role:"img",...i}));var n=_(o);be(n,()=>{var r;return(r=e.children)!=null?r:oe}),Ce(),g(o),b(t,o)}function Cd(t,e){D(e,!0);let i=m(e,"ref",15,void 0),o=m(e,"hidden",3,!1),n=m(e,"disabled",3,!1),r=F("tooltip_interactive_go_back"),l=h(()=>o()?"hidden":"");Vt(t,{get className(){return s(l)},testId:"btn-play-prev-chapter",get ariaLabel(){return r},get disabled(){return n()},get click(){return e.click},get ref(){return i()},set ref(d){i(d)},children:(d,a)=>{Yf(d,{})},$$slots:{default:!0}}),H()}var Ey=M('<span class="gutter svelte-et3q1q"><span><!></span></span>'),Iy={hash:"svelte-et3q1q",code:".gutter.svelte-et3q1q {--gutterWidth: 32px;--gutterHeight: 12px;--togglerWidth: 18px;--togglerHeight: 18px;--togglerGap: calc(var(--togglerWidth) / 6);position:relative;width:var(--gutterWidth);height:var(--gutterHeight);background-color:rgba(255, 255, 255, 0.3);border-radius:50px;}.toggler.svelte-et3q1q {position:absolute;top:calc(((var(--togglerHeight) - var(--gutterHeight)) / 2) * -1);left:0;display:flex;align-items:center;justify-content:center;width:var(--togglerWidth);height:var(--togglerHeight);background-color:rgba(98, 99, 100, 1);border-radius:50%;transform:translateX(calc(var(--togglerGap) * -1));transition-property:background-color, transform;transition-duration:0.2s;transition-timing-function:ease;}.toggler.enabled.svelte-et3q1q {background-color:var(--toggle-color-autoplay-on);transform:translateX(calc(var(--gutterWidth) - var(--togglerWidth) + var(--togglerGap)));}"};function Sd(t,e){D(e,!0),z(t,Iy);let[i,o]=De(),n=()=>C(a,"$autoplayNextEnabled$",i),r=m(e,"ref",15,void 0),l=Ee(),d=l.ui.t,a=l.ui.autoplayNextEnabled$,p=l.actions.internal.setAutoplayNextEnabled,f=()=>{p(!n(),!0)},v=d("aria_label_autoplay"),u=h(()=>n()?"true":"false");Vt(t,{click:f,get ariaLabel(){return v},role:"switch",get areaChecked(){return s(u)},get ref(){return r()},set ref($){r($)},children:($,w)=>{var y=Ey(),S=_(y);let T;var k=_(S);{var A=E=>{Nr(E,{width:"14",height:"14",fill:"#000"})},I=E=>{_s(E,{width:"14",height:"14",fill:"#000"})};L(k,E=>{n()?E(A):E(I,!1)})}g(S),g(y),O(E=>T=J(S,1,"toggler svelte-et3q1q",null,T,E),[()=>({enabled:n()})]),b($,y)},$$slots:{default:!0}}),H(),o()}var ky=Se('<svg><!><path fill="var(--btn-color, #fff)" fill-rule="evenodd" d="M16.726 4.845C16.187 4.8 15.496 4.8 14.5 4.8H7.9a.9.9 0 1 1 0-1.8h6.639c.947 0 1.713 0 2.333.05.64.053 1.204.163 1.726.43a4.4 4.4 0 0 1 1.923 1.922c.266.523.377 1.087.429 1.726.05.62.05 1.386.05 2.334v5.076c0 .948 0 1.714-.05 2.334-.052.64-.163 1.203-.43 1.726a4.4 4.4 0 0 1-1.922 1.922c-.522.267-1.086.377-1.726.43-.62.05-1.386.05-2.333.05H7.9a.9.9 0 1 1 0-1.8h6.6c.995 0 1.687 0 2.226-.045.528-.043.828-.123 1.055-.238a2.6 2.6 0 0 0 1.136-1.137c.115-.226.195-.527.239-1.055.044-.538.044-1.23.044-2.225v-5c0-.995 0-1.687-.044-2.226-.043-.527-.124-.828-.239-1.054a2.6 2.6 0 0 0-1.136-1.137c-.227-.115-.527-.195-1.055-.238" clip-rule="evenodd"></path><path fill="var(--btn-color, #fff)" d="M7.76 11.169V8.908c0-.708.704-1.143 1.252-.774l4.594 3.093c.525.353.525 1.193 0 1.546l-4.594 3.093c-.548.369-1.252-.066-1.252-.774v-2.261l-4.508 3.035C2.704 16.235 2 15.8 2 15.091V8.908c0-.708.704-1.143 1.252-.774z"></path></svg>');function jf(t,e){let i=Me(e,["$$slots","$$events","$$legacy","children"]);var o=ky();Ie(o,()=>({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}));var n=_(o);be(n,()=>{var r;return(r=e.children)!=null?r:oe}),Ce(2),g(o),b(t,o)}function Td(t,e){D(e,!0);let i=m(e,"ref",15,void 0),o=m(e,"hidden",3,!1),n=m(e,"disabled",3,!1),r=F("tooltip_interactive_seek"),l=h(()=>o()?"hidden":"");Vt(t,{get className(){return s(l)},testId:"btn-seek-to-interactive",get ariaLabel(){return r},get disabled(){return n()},get click(){return e.click},get ref(){return i()},set ref(d){i(d)},children:(d,a)=>{jf(d,{})},$$slots:{default:!0}}),H()}var Py=Se('<svg><!><path fill="var(--btn-color, #fff)" fill-rule="evenodd" d="M16.777 3h1.419c.31 0 .596 0 .834.02.258.02.539.068.817.21.397.2.72.523.923.918.141.277.19.557.21.814.02.237.02.521.02.83V7.19c0 .31 0 .594-.02.831-.02.256-.069.537-.21.813a2.1 2.1 0 0 1-.923.92c-.278.14-.56.188-.817.21-.238.019-.524.019-.834.019h-1.419c-.31 0-.596 0-.834-.02a2.15 2.15 0 0 1-.817-.21 2.1 2.1 0 0 1-.923-.919 2.1 2.1 0 0 1-.21-.813 8 8 0 0 1-.02-.63l-2.198-.002c-.495-.001-.81 0-1.05.018-.23.019-.309.05-.343.067a.8.8 0 0 0-.352.35c-.017.034-.049.113-.068.341-.02.24-.02.554-.02 1.046v5.57c0 .49 0 .804.02 1.043.019.228.05.306.068.34.077.15.2.273.35.35.035.017.113.049.342.067.24.02.555.021 1.048.022l2.203.003a8 8 0 0 1 .02-.627c.02-.256.069-.537.21-.813.203-.396.526-.718.923-.92.278-.14.56-.189.817-.21.238-.019.524-.019.834-.019h1.419c.31 0 .596 0 .834.02.258.02.539.068.817.21.397.201.72.523.923.919.141.276.19.557.21.813.02.237.02.522.02.831v1.397c0 .31 0 .594-.02.831-.02.256-.069.537-.21.814a2.1 2.1 0 0 1-.923.919c-.278.14-.56.189-.817.21-.238.019-.524.019-.834.019h-1.419c-.31 0-.596 0-.834-.02a2.15 2.15 0 0 1-.817-.21 2.1 2.1 0 0 1-.923-.918 2.1 2.1 0 0 1-.21-.814 8 8 0 0 1-.02-.63l-2.24-.002c-.449 0-.839-.001-1.16-.028-.341-.028-.684-.09-1.016-.259a2.6 2.6 0 0 1-1.14-1.137c-.17-.33-.231-.672-.259-1.011-.026-.321-.026-.71-.026-1.156v-1.921H2.905A.903.903 0 0 1 2 11.992c0-.498.405-.901.905-.901h5.227V9.177c0-.448 0-.837.026-1.159.028-.34.09-.682.26-1.013a2.6 2.6 0 0 1 1.144-1.138c.332-.168.676-.23 1.017-.257.323-.025.714-.025 1.164-.024l2.23.003a8 8 0 0 1 .02-.627c.02-.257.069-.537.21-.814.203-.395.526-.717.923-.919.278-.14.56-.189.817-.21C16.18 3 16.467 3 16.777 3m-.833 1.837a1 1 0 0 1 .146-.02 10 10 0 0 1 .72-.014h1.354c.353 0 .563 0 .719.013a1 1 0 0 1 .146.021.3.3 0 0 1 .126.126 1 1 0 0 1 .021.145c.013.156.014.365.014.716v1.334c0 .352 0 .561-.014.716a1 1 0 0 1-.02.146.3.3 0 0 1-.127.125 1 1 0 0 1-.146.022c-.156.012-.366.013-.719.013H16.81c-.353 0-.563 0-.719-.013a1 1 0 0 1-.146-.022.3.3 0 0 1-.126-.125 1 1 0 0 1-.021-.146 10 10 0 0 1-.014-.716V5.824c0-.351.001-.56.014-.716a1 1 0 0 1 .021-.145.3.3 0 0 1 .126-.126Zm0 11.018a1 1 0 0 1 .146-.022c.156-.012.366-.013.72-.013h1.354c.353 0 .563 0 .719.013a1 1 0 0 1 .146.022.3.3 0 0 1 .126.125 1 1 0 0 1 .021.146c.013.155.014.364.014.716v1.334c0 .351 0 .56-.014.716a1 1 0 0 1-.02.145.3.3 0 0 1-.127.126 1 1 0 0 1-.146.02c-.156.014-.366.014-.719.014H16.81c-.353 0-.563 0-.719-.013a1 1 0 0 1-.146-.021.3.3 0 0 1-.126-.126 1 1 0 0 1-.021-.145 10 10 0 0 1-.014-.716v-1.334c0-.352.001-.561.014-.716a1 1 0 0 1 .021-.146.3.3 0 0 1 .126-.125Z" clip-rule="evenodd"></path><path fill="var(--btn-color, #fff)" fill-rule="evenodd" d="M15.2 5.899v1.203c0 .594 0 .892.115 1.119.102.2.265.362.464.463.227.116.525.116 1.12.116H18.1c.595 0 .892 0 1.12-.116.199-.101.361-.264.463-.463.116-.227.116-.525.116-1.12V5.9c0-.595 0-.892-.116-1.12a1.06 1.06 0 0 0-.464-.463c-.227-.116-.524-.116-1.119-.116h-1.203c-.594 0-.892 0-1.119.116-.2.102-.362.264-.464.464-.115.227-.115.524-.115 1.119Zm-.051 11.03v1.143c0 .605 0 .908.118 1.139.103.203.268.368.472.472.23.117.533.117 1.138.117H18.1c.605 0 .907 0 1.138-.117a1.08 1.08 0 0 0 .472-.472c.118-.231.118-.534.118-1.139v-1.144c0-.605 0-.907-.118-1.138a1.08 1.08 0 0 0-.472-.472c-.231-.118-.534-.118-1.138-.118h-1.224c-.605 0-.907 0-1.138.118a1.08 1.08 0 0 0-.472.472c-.118.23-.118.533-.118 1.138Z" class="_closed" clip-rule="evenodd"></path></svg>');function Zf(t,e){let i=Me(e,["$$slots","$$events","$$legacy","children"]);var o=Py();Ie(o,()=>({xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none","aria-hidden":"true",role:"img",...i}));var n=_(o);be(n,()=>{var r;return(r=e.children)!=null?r:oe}),Ce(2),g(o),b(t,o)}var Ay={hash:"svelte-17ceof5",code:'svg[data-testid="graph-open-icon"] ._closed {visibility:hidden;opacity:0;}'};function Xf(t,e){z(t,Ay);let i=m(e,"isOpened",3,!1),o=h(()=>i()?"graph-close-icon":"graph-open-icon");Zf(t,{get"data-testid"(){return s(o)}})}function Ed(t,e){D(e,!0);let i=m(e,"ref",15,void 0),o=m(e,"hidden",3,!1),n=m(e,"disabled",3,!1),r=m(e,"graphIsOpened",3,!1),d=Ee().ui.t,a=h(()=>r()?d("tooltip_interactive_graph_on"):d("tooltip_interactive_graph_off")),p=h(()=>o()?"hidden":"");Vt(t,{get className(){return s(p)},testId:"btn-graph",get disabled(){return n()},get ariaLabel(){return s(a)},get click(){return e.click},get ref(){return i()},set ref(f){i(f)},children:(f,v)=>{let u=h(()=>!!r());Xf(f,{get isOpened(){return s(u)}})},$$slots:{default:!0}}),H()}import{PlaybackState as v1}from"@vkontakte/videoplayer-core/es2018";function Id(t,e){D(e,!0);let[i,o]=De(),n=()=>C(p,"$playbackState$",i),r=m(e,"isMobile",3,!1),l=m(e,"isLiveActive",3,!1),d=m(e,"ariaLabel",3,""),a=Ee(),p=a.state.playbackState$,f=a.actions.internal.switchToActiveLive,v=a.actions.internal.togglePlay,u=h(()=>()=>{if(!l()){f();return}n()===v1.PAUSED&&v()}),$=h(()=>r()?"":"btn--live btn-full-opacity"),w=h(()=>l()?"btn-live":"btn-live-offset"),y=h(()=>l()&&n()===v1.PLAYING);Vt(t,{get className(){return s($)},get testId(){return s(w)},get disabled(){return s(y)},get ariaLabel(){return d()},get click(){return s(u)},children:(S,T)=>{Xl(S,{get isActive(){return l()}})},$$slots:{default:!0}}),H(),o()}import{noop as g1}from"@vkontakte/videoplayer-shared/es2018";var My=M('<div class="icon icon-error-stub"><div class="inner"></div></div>'),Ly=M('<img class="icon" aria-hidden="true"/>');function $a(t,e){"use strict";let i=j(!1),o=()=>{B(i,!0)};var n=Ue(),r=fe(n);{var l=a=>{var p=My();b(a,p)},d=a=>{var p=Ly();O(()=>Ne(p,"src",e.icon)),wt("error",p,o),ea(p),b(a,p)};L(r,a=>{s(i)?a(l):a(d,!1)})}b(t,n)}function Jf(t,e){D(e,!0);let i=m(e,"disabled",3,!1),o=m(e,"onClick",3,g1),n=m(e,"ref",15),r=h(()=>o()===g1),l=h(()=>s(r)||i()),d=h(()=>s(r)?"btn-full-opacity":"");Lo(t,{get disabled(){return s(l)},get tooltipContent(){return e.tooltipText},get disabledTooltipContent(){return e.disabledTooltipContent},width:40,get disableMouseupTooltipShow(){return e.disableMouseupTooltipShow},get ref(){return n()},set ref(a){n(a)},children:(a,p)=>{let f=h(()=>{var v;return(v=e.testId)!=null?v:e.id});Vt(a,{get className(){return s(d)},get ariaLabel(){return e.ariaLabel},get click(){return o()},get disabled(){return s(l)},get testId(){return s(f)},children:(v,u)=>{$a(v,{get icon(){return e.icon}})},$$slots:{default:!0}})},$$slots:{default:!0}}),H()}var h1=t=>!!t.buttonComponent;var bs={vkLogo:100,autoplayNext:200,volume:300,subtitles:400,settings:500,context:600,fullscreen:700,chromecast:800};var fu=(t,e,i,o)=>{if(t)for(let[n,r]of Object.entries(e))r.set(Rr(t,i,n,o))};var Ny=M('<div><!> <div class="controls svelte-f6e8ix" data-testid="player_controls"><div class="controls-left svelte-f6e8ix"><!> <!> <!></div> <div class="controls-right svelte-f6e8ix"></div></div></div> <!>',1),By={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 tm(t,e){var Ds,ka;D(e,!0),z(t,By);let[i,o]=De(),n=()=>C(Ci,"$disabledControls$",i),r=()=>C(vi,"$adPlaybackState",i),l=()=>C(kt,"$playbackState$",i),d=()=>C(gt,"$currentSubtitle$",i),a=()=>C(ni,"$isEnded$",i),p=()=>C(Si,"$currentGridType$",i),f=()=>C(pi,"$isLive$",i),v=()=>C(Zi,"$chromecastState$",i),u=()=>C(ii,"$isPictureInPictureActive",i),$=()=>C(ci,"$pictureInPictureType$",i),w=()=>C($t,"$availableSubtitlesList$",i),y=()=>C(Bt,"$contextMenuOpenedByKeyboard$",i),S=()=>C(q,"$showContextMenuBtn$",i),T=()=>C(Xn,"$playerSize",i),k=()=>C(ei,"$isRewindableLive$",i),A=()=>C(at,"$isActiveLive$",i),I=()=>C(mo,"$graphIsOpened$",i),E=()=>C(Vo,"$contextMenuVisible$",i),V=()=>C(Ot,"$isFullscreen",i),K=()=>C(Ai,"$autoplayNextEnabled",i),W=()=>C(s(nr),"$prevButton",i),U=()=>C(s(Dn),"$replayButton",i),Y=()=>C(s(rr),"$playButton",i),ne=()=>C(s(_i),"$nextButton",i),G=()=>C(s($r),"$playPrevChapterButton",i),ce=()=>C(s(St),"$seekToInteractiveButton",i),le=()=>C(s(ai),"$interactiveGraphButton",i),we=()=>C(s(en),"$liveButton",i),Ve=()=>C(s(tn),"$time",i),ve=()=>C(s($n),"$episodes",i),ae=()=>C(s(Bo),"$vkLogo",i),Le=()=>C(s(lo),"$volume",i),te=()=>C(s(Ji),"$subtitles",i),N=()=>C(s(Hn),"$settings",i),Be=()=>C(s(yr),"$context",i),ye=()=>C(s(xr),"$fullscreen",i),ge=()=>C(s(Wr),"$chromecast",i),de=()=>C(po,"$additionalDesktopControlPanelRightButtons$",i),ue=()=>C(Xi,"$isInteractiveTime$",i),xe=()=>C(xo,"$settingsMenuVisible",i),Z=()=>C(ho,"$settingButtonRef$",i),qe=()=>C(di,"$startedByKeyboard$",i),Xe=()=>C(Mt,"$isAudioAvailable$",i),ke=()=>C(Nt,"$fakeIsPlaying$",i),X=()=>C(fo,"$seekToInteractiveDisabledTooltip$",i),Te=()=>C(ut,"$adPosition",i),Ke=()=>C(tt,"$position$",i),rt=()=>C(nt,"$adDuration",i),ct=()=>C(Re,"$duration$",i),ht=m(e,"playerControlsWrapperRef",15,void 0),xt=m(e,"playerControlsRef",15,void 0),Qe=m(e,"isAds",3,!1),qt=m(e,"logoTargetUrl",3,""),Yt=m(e,"isOneVideoPlaylist",3,!1),Qt=m(e,"customFullscreenSupported",3,!0),{fakeIsPlaying$:Nt}=co(),ee=Ee(),At=co(),me=Ft(),_e=ee.actions.internal.toggleMuted,se=ee.actions.internal.togglePlay,Oe=ee.actions.internal.pause,ze=ee.actions.internal.toggleSubtitle,Ae=(Ds=ee.callbacks)==null?void 0:Ds.onAudioDoesNotExistHint,Ye=(ka=ee.callbacks)==null?void 0:ka.onAudioDisabledHint,Re=ee.state.duration$,tt=ee.state.positionWithScrubbing$,kt=ee.state.playbackState$,Mt=ee.state.isAudioAvailable$,Je=ee.state.isAudioDisabled,ni=ee.state.isEnded$,pi=ee.state.isLive$,at=ee.state.isActiveLive$,ei=ee.state.isRewindableLive$,{isActive$:ii,type$:ci}=At.pictureInPicture$,xo=ee.ui.settingsMenu.visible$,uo=ee.ui.settingsMenu.openedByBtnKeyboard$,jt=ee.ui.controls,wi=ee.actions.internal.getVideoEpisodes(),Zi=ee.state.chromecastState$,$t=ee.state.availableSubtitlesList$,gt=ee.state.currentSubtitle$,Ci=jt.disabledControls$,Vo=ee.ui.contextMenu.visible$,q=ee.ui.contextMenu.showContextMenuBtn$,Bt=ee.ui.contextMenu.openedByBtnKeyboard$,di=ee.ui.startedByKeyboard$,Kt=ee.ui.controlBlocks,ft=ee.ui.t,nt=ee.ads.duration,ut=ee.ads.position,vi=ee.ads.playbackState,Ot=ee.ui.isFullscreen,Xn=ee.ui.playerSize,Si=ee.ui.currentGridType$,po=ee.ui.additionalDesktopControlPanelRightButtons$,Ai=ee.ui.autoplayNextEnabled$,bt=ee.actions.internal.getVideoElement,Mi=ee.actions.internal.replayInteractive,Go=ee.actions.internal.prevVideoClick,un=ee.actions.internal.nextVideoClick,Ti=ee.state.isInteractive,Xi=ee.state.isInteractiveTime$,Ei=ee.state.showInteractiveGraph,Yo=ee.state.showSeekToInteractive,Mn=ee.state.showPlayPrevChapter,wo=ee.state.showInteractiveTimeIndicator,Ro=ee.state.playPrevChapterDisabledTooltip,fo=At.seekToInteractiveDisabledTooltip$,mo=At.graphIsOpened$,jo=me.features.interactiveResponsiveUi,Ln=h(()=>n().has("EPISODE_BUTTON")),Jn=h(()=>n().has("GRAPH_BUTTON")),er=h(()=>n().has("SEEK_TO_INTERACTIVE_BUTTON")),tr=h(()=>n().has("PLAY_BUTTON")),Or=h(()=>n().has("REPLAY_BUTTON")),Vn=h(()=>n().has("PLAY_PREV_CHAPTER_BUTTON")),rs=()=>ee.actions.internal.toggleChromecast(),Dr=h(()=>Qe()?r()==="playing":l()===em.PLAYING),Hi=h(()=>d().value!=="off"),pn=h(()=>a()&&!Qe()||Ti),Zo=h(()=>jo?s(pn)&&Yi(p(),"m"):s(pn)),fn=h(()=>!a()||Ti||Qe()),vo=h(()=>Yi(p(),"m")),mn=h(()=>e.showNextPrevButtons&&Yi(p(),"m")&&!Qe()&&e.nextButtonActive),Rn=h(()=>e.showNextPrevButtons&&Yi(p(),"m")&&!Qe()&&e.prevButtonActive),Hr=h(()=>!Qe()&&!!f()),gr=h(()=>v()!==_1.NOT_AVAILABLE&&!(u()&&$()===1)&&Yi(p(),"m")&&!Ti),Fr=h(()=>e.showAutoplayNext&&!Yt()&&Yi(p(),"s")),vn=h(()=>w().length>0&&Yi(p(),"m")),Nn=h(()=>y()||S()),it=h(()=>Yi(p(),"s")&&!Qe()),Ut=h(()=>!e.logoHidden&&!Qe()),Bn=h(()=>me.features.fullscreen&&(e.logoHidden||Yi(p(),jo?"xs":"s"))&&!(u()&&$()===1)&&(Ti?Qt():!0)),Fi=h(()=>(!f()||Qe())&&!(me.features.interactiveHideTime&&Ti)),ir=h(()=>T().width>100),On=h(()=>Ei&&Yi(p(),"m")),gn=h(()=>jo?Yo&&Yi(p(),"s"):Yo),Ui=h(()=>jo?Mn&&Yi(p(),"s"):Mn),Xo=h(()=>!Qe()&&!f()&&!!(wi!=null&&wi.length)&&s(vo)&&!s(Ln)),No=h(()=>!k()||!!A()),hn=h(()=>I()?ft("tooltip_interactive_graph_on"):ft("tooltip_interactive_graph_off")),hr=h(()=>E()?ft("tooltip_context_menu_close"):ft("tooltip_context_menu_open")),_r=(dt,_t)=>dt?_t&&_t===em.PAUSED?ft("tooltip_play"):"":ft("tooltip_live"),_n=h(()=>_r(s(No),l())),Ur=h(()=>me.logoType==="vk_video"?ft("tooltip_vk_video_logo"):ft("tooltip_vk_logo")),bn=h(()=>s(Hi)?ft("tooltip_subtitles_on"):ft("tooltip_subtitles_off")),zr=h(()=>V()?ft("tooltip_fullscreen_on"):ft("tooltip_fullscreen_off")),or=h(()=>v()===_1.CONNECTED?ft("tooltip_chromecast_on"):ft("tooltip_chromecast_off")),br=h(()=>K()?ft("tooltip_autoplay_on"):ft("tooltip_autoplay_off")),Jo=j(0),zt=oi({}),Co=oi({}),nr=h(()=>jt.prevButton),Dn=h(()=>jt.replayButton),rr=h(()=>jt.playButton),_i=h(()=>jt.nextButton),$r=h(()=>jt.playPrevChapterButton),St=h(()=>jt.seekToInteractiveButton),ai=h(()=>jt.interactiveGraphButton),en=h(()=>jt.liveButton),tn=h(()=>jt.time),$n=h(()=>jt.episodes),Bo=h(()=>jt.vkLogo),lo=h(()=>jt.volume),Ji=h(()=>jt.subtitles),Hn=h(()=>jt.settings),yr=h(()=>jt.context),xr=h(()=>jt.fullscreen),Wr=h(()=>jt.chromecast),et=h(()=>({prevButton:W()?W().right-W().left:0,replayButton:U()?U().right-U().left:0,playButton:Y()?Y().right-Y().left:0,nextButton:ne()?ne().right-ne().left:0,playPrevChapterButton:G()?G().right-G().left:0,seekToInteractiveButton:ce()?ce().right-ce().left:0,interactiveGraphButton:le()?le().right-le().left:0,liveButton:we()?we().right-we().left:0,time:Ve()?Ve().right-Ve().left:0,episodes:ve()?ve().right-ve().left:0,vkLogo:ae()?ae().right-ae().left:0,volume:Le()?Le().right-Le().left:0,subtitles:te()?te().right-te().left:0,settings:N()?N().right-N().left:0,context:Be()?Be().right-Be().left:0,fullscreen:ye()?ye().right-ye().left:0,chromecast:ge()?ge().right-ge().left:0,additionalButtons:de().length?de().reduce(dt=>[...dt,40],[]):[]})),Pt=j(0);We(()=>{(!s(Pt)||s(Pt)<s(et).time)&&Ct(()=>B(Pt,s(et).time,!0))});let gi=j(!1);We(()=>{let dt=0;s(Xo)&&(Yi(p(),"xl")?dt=s(et).time:dt=60);let _t=s(et).prevButton+s(et).playButton+s(et).nextButton+s(et).seekToInteractiveButton+s(et).interactiveGraphButton+s(et).liveButton+s(Pt)+dt;B(gi,s(Fi)&&s(Jo)>=_t,!0)});let So=h(()=>s(gi)&&Yi(p(),"m")),eo=b1(cl,260),go=b1(fu,260);We(()=>{T(),ue(),eo(bt(),jt,zt,e.showControls),go(bt(),Kt,Co,e.showControls)}),We(()=>{Co.bottom=ht()});let ho=re();We(()=>{xe(),Z()&&Ct(()=>nl(Z(),xe(),uo))});let on;We(()=>{qe(),Ct(()=>uu(di,qe(),on))});function _o(){Vs({isAudioDisabled:Je,isAudioAvailable:Xe(),isAds:Qe(),audioIsNotExistHintCallback:Ae,audioDisabledHintCallback:Ye})&&_e()}let zi=Ti?Mi:se,Wi=h(()=>ke()!==null),Oo=h(()=>s(Wi)?ke():s(Dr)),to=h(()=>s(Oo)?ft("tooltip_pause"):ft("tooltip_play")),Do=ft("tooltip_episodes"),yn=h(()=>{var dt,_t,io,rn;return s(Rn)?{id:"prevButton",type:"desktop-control-panel-left",weight:hs.prevButton,buttonComponent:ba,buttonComponentProps:{disabled:!e.prevButtonActive,type:"prev",click:Go.bind(null,!0)},tooltipEnabled:!((_t=(dt=ee.callbacks)==null?void 0:dt.uiInfo)!=null&&_t.onPrevButtonMouseEnter)&&!((rn=(io=ee.callbacks)==null?void 0:io.uiInfo)!=null&&rn.onPrevButtonMouseLeave),mouseEnter:()=>{var oo,li,Ii;(Ii=(li=(oo=ee.callbacks)==null?void 0:oo.uiInfo)==null?void 0:li.onPrevButtonMouseEnter)==null||Ii.call(li,Rr(bt(),zt,"prevButton",e.showControls))},mouseLeave:()=>{var oo,li,Ii;(Ii=(li=(oo=ee.callbacks)==null?void 0:oo.uiInfo)==null?void 0:li.onPrevButtonMouseLeave)==null||Ii.call(li,Rr(bt(),zt,"prevButton",e.showControls))},tooltipText:ft("tooltip_previous"),disabled:!e.prevButtonActive}:void 0}),wr=h(()=>s(Zo)?{id:"replayButton",type:"desktop-control-panel-left",weight:hs.replayButton,buttonComponent:ul,buttonComponentProps:{disabled:s(Or),click:zi},tooltipText:ft("tooltip_restart"),disabled:s(Or)}:void 0),qr=h(()=>s(fn)?{id:"playButton",type:"desktop-control-panel-left",weight:hs.playButton,buttonComponent:pl,buttonComponentProps:{disabled:s(tr),isPlaying:s(Dr),click:se},tooltipText:s(to),disabled:s(tr)}:void 0),Kr=h(()=>{var dt,_t,io,rn;return s(mn)?{id:"nextButton",type:"desktop-control-panel-left",weight:hs.nextButton,buttonComponent:ba,buttonComponentProps:{disabled:!e.nextButtonActive,type:"next",click:un.bind(null,!0)},tooltipEnabled:!((_t=(dt=ee.callbacks)==null?void 0:dt.uiInfo)!=null&&_t.onNextButtonMouseEnter)&&!((rn=(io=ee.callbacks)==null?void 0:io.uiInfo)!=null&&rn.onNextButtonMouseLeave),mouseEnter:()=>{var oo,li,Ii;(Ii=(li=(oo=ee.callbacks)==null?void 0:oo.uiInfo)==null?void 0:li.onNextButtonMouseEnter)==null||Ii.call(li,Rr(bt(),zt,"nextButton",e.showControls))},mouseLeave:()=>{var oo,li,Ii;(Ii=(li=(oo=ee.callbacks)==null?void 0:oo.uiInfo)==null?void 0:li.onNextButtonMouseLeave)==null||Ii.call(li,Rr(bt(),zt,"nextButton",e.showControls))},tooltipText:ft("tooltip_next"),disabled:!e.nextButtonActive}:void 0}),sr=h(()=>Ti&&s(Ui)?{id:"playPrevChapterButton",type:"desktop-control-panel-left",weight:hs.playPrevChapterButton,buttonComponent:Cd,buttonComponentProps:{disabled:s(Vn),click:e.playPrevChapter},tooltipText:ft("tooltip_interactive_go_back"),disabledTooltipContent:ft(Ro),disabled:s(Vn)}:void 0),Cr=h(()=>Ti&&s(gn)?{id:"seekToInteractiveButton",type:"desktop-control-panel-left",weight:hs.seekToInteractiveButton,buttonComponent:Td,buttonComponentProps:{disabled:s(er),click:e.seekToInteractive},tooltipText:ft("tooltip_interactive_seek"),disabled:s(er),disabledTooltipContent:ft(X())}:void 0),xn=h(()=>Ti&&s(On)?{id:"interactiveGraphButton",type:"desktop-control-panel-left",weight:hs.interactiveGraphButton,buttonComponent:Ed,buttonComponentProps:{disabled:s(Jn),click:mo.toggle,graphIsOpened:I()},tooltipText:s(hn)}:void 0),qi=h(()=>s(Hr)?{id:"liveButton",type:"desktop-control-panel-left",weight:hs.liveButton,buttonComponent:Id,buttonComponentProps:{isLiveActive:s(No),ariaLabel:s(_n)},tooltipText:s(_n),disabled:s(No)&&l()===em.PLAYING}:void 0),Fn=h(()=>[s(yn),s(wr),s(qr),s(Kr),s(sr),s(Cr),s(xn),s(qi)].filter(dt=>!!dt).sort(ua)),ar=h(()=>s(Ut)?{id:"vkLogo",type:"desktop-control-panel-right",weight:bs.vkLogo,buttonComponent:vd,buttonComponentProps:{targetUrl:qt(),logoClickable:e.logoClickable,click:Oe},tooltipText:s(Ur),disabledTooltipContent:"",disabled:!e.logoClickable}:void 0),Sr=h(()=>s(Fr)?{id:"autoplayNext",type:"desktop-control-panel-right",weight:bs.autoplayNext,buttonComponent:Sd,tooltipText:s(br)}:void 0),lr=h(()=>({id:"volume",type:"desktop-control-panel-right",weight:bs.volume,buttonComponent:If,buttonComponentProps:{click:_o,isAds:Qe()}})),je=h(()=>s(vn)?{id:"subtitles",type:"desktop-control-panel-right",weight:bs.subtitles,buttonComponent:wf,buttonComponentProps:{isSubtitlesEnabled:s(Hi),click:ze},tooltipText:s(bn)}:void 0),Zt=h(()=>s(it)?{id:"settings",type:"desktop-control-panel-right",weight:bs.settings,buttonComponent:ll,buttonComponentProps:{ref$:ho},tooltipText:xe()?void 0:ft("tooltip_settings_off")}:void 0),pe=h(()=>me.features.contextMenuButton?{id:"context",type:"desktop-control-panel-right",weight:bs.context,buttonComponent:Qf,buttonComponentProps:{ariaLabel:ft("aria_label_context_menu")},className:s(Nn)?"":"out-of-view",tooltipText:s(hr)}:void 0),yt=h(()=>s(Bn)?{id:"fullscreen",type:"desktop-control-panel-right",weight:bs.fullscreen,buttonComponent:md,buttonComponentProps:{isFullscreen:V(),click:e.toggleFullscreen},tooltipText:s(zr)}:void 0),ri=h(()=>s(gr)?{id:"chromecast",type:"desktop-control-panel-right",weight:bs.chromecast,buttonComponent:gd,buttonComponentProps:{state:v(),click:rs},tooltipText:s(or)}:void 0),Li=h(()=>[s(ar),s(Sr),s(lr),s(je),s(Zt),s(pe),s(yt),s(ri),...de()].filter(dt=>!!dt).sort(ua));var bi=Ny(),Fe=fe(bi);let Tt;var hi=_(Fe);let Ho=h(()=>!s(ir));ha(hi,{get isHidden(){return s(Ho)},get isAds(){return Qe()},get canRewindLive(){return e.canRewindLive},get isRewindableLive(){return k()},get ref(){return zt.timeline},set ref(dt){zt.timeline=dt}});var Vi=P(hi,2),Un=_(Vi),Tr=_(Un);$i(Tr,17,()=>s(Fn),dt=>dt.id,(dt,_t)=>{pu(dt,{get buttonComponent(){return s(_t).buttonComponent},get buttonComponentProps(){return s(_t).buttonComponentProps},get tooltipText(){return s(_t).tooltipText},get disabledTooltipContent(){return s(_t).disabledTooltipContent},get disabled(){return s(_t).disabled},get className(){return s(_t).className},get tooltipEnabled(){return s(_t).tooltipEnabled},get mouseEnter(){return s(_t).mouseEnter},get mouseLeave(){return s(_t).mouseLeave},get ref(){return zt[s(_t).id]},set ref(io){zt[s(_t).id]=io}})});var Fo=P(Tr,2);{var Ki=dt=>{let _t=h(()=>Qe()?Te():Ke()),io=h(()=>Qe()?rt():ct());pd(dt,{isMobile:!1,get showDuration(){return s(So)},get position(){return s(_t)},get duration(){return s(io)},get ref(){return zt.time},set ref(rn){zt.time=rn}})};L(Fo,dt=>{s(Fi)&&dt(Ki)})}var Ri=P(Fo,2);let nn=h(()=>!s(Xo));Lo(Ri,{className:"w-max",get disabled(){return s(nn)},get tooltipContent(){return Do},get ref(){return zt.episodes},set ref(dt){zt.episodes=dt},children:(dt,_t)=>{var io=Ue(),rn=fe(io);{var oo=li=>{_d(li,{get position(){return Ke()},get duration(){return ct()},get timeCodes(){return wi}})};L(rn,li=>{s(Xo)&&li(oo)})}b(dt,io)},$$slots:{default:!0}}),g(Un);var dr=P(Un,2);$i(dr,21,()=>s(Li),dt=>dt.id,(dt,_t)=>{var io=Ue(),rn=fe(io);{var oo=Ii=>{pu(Ii,{get buttonComponent(){return s(_t).buttonComponent},get buttonComponentProps(){return s(_t).buttonComponentProps},get tooltipText(){return s(_t).tooltipText},get disabledTooltipContent(){return s(_t).disabledTooltipContent},get disabled(){return s(_t).disabled},get className(){return s(_t).className},get ref(){return zt[s(_t).id]},set ref(Hs){zt[s(_t).id]=Hs}})},li=Ii=>{let Hs=h(()=>!!s(_t).disabled);Jf(Ii,{get id(){return s(_t).id},get testId(){return s(_t).testId},get icon(){return s(_t).icon},get ariaLabel(){return s(_t).ariaLabel},get tooltipText(){return s(_t).tooltipText},get disabledTooltipContent(){return s(_t).disabledTooltipContent},get disabled(){return s(Hs)},get onClick(){return s(_t).onClick},get disableMouseupTooltipShow(){return s(_t).disableMouseupTooltipShow},get ref(){return zt[s(_t).id]},set ref(Pa){zt[s(_t).id]=Pa}})};L(rn,Ii=>{h1(s(_t))?Ii(oo):Ii(li,!1)})}b(dt,io)}),g(dr),g(Vi),ot(Vi,dt=>xt(dt),()=>xt()),g(Fe),ot(Fe,dt=>ht(dt),()=>ht());var cr=P(Fe,2);{var To=dt=>{xd(dt,{get ref(){return zt.interactiveTimeIndicator},set ref(_t){zt.interactiveTimeIndicator=_t}})};L(cr,dt=>{wo&&dt(To)})}O(dt=>Tt=J(Fe,1,"wrapper-bottom svelte-f6e8ix",null,Tt,dt),[()=>({hidden:e.bottomHidden,"controls-hidden":!e.showControls,"no-smooth":e.bottomNoSmooth})]),es(Un,"clientWidth",dt=>B(Jo,dt)),b(t,bi),H(),o()}import{ChromecastState as y1,PlaybackState as x1}from"@vkontakte/videoplayer-core/es2018";import{noop as $1}from"@vkontakte/videoplayer-shared/es2018";var Oy=M('<div class="icon icon-error-stub svelte-167ouw6"><div class="inner svelte-167ouw6"></div></div>'),Dy=M('<img class="icon svelte-167ouw6" aria-hidden="true"/>'),Hy={hash:"svelte-167ouw6",code:".icon.svelte-167ouw6 {width:24px !important;height:24px !important;}.inner.svelte-167ouw6 {width:16px;height:16px;background-color:var(--white);}"};function im(t,e){z(t,Hy);let i=m(e,"disabled",3,!1),o=m(e,"onClick",3,$1),n=h(()=>o()===$1),r=h(()=>s(n)||i()),l=j(!1),d=()=>{B(l,!0)},a=h(()=>s(n)?"btn-full-opacity":"");Vt(t,{get className(){return s(a)},get ariaLabel(){return e.ariaLabel},get click(){return o()},get disabled(){return s(r)},get testId(){return e.testId},children:(p,f)=>{var v=Ue(),u=fe(v);{var $=y=>{var S=Oy();b(y,S)},w=y=>{var S=Dy();O(()=>Ne(S,"src",e.iconUrl)),wt("error",S,d),ea(S),b(y,S)};L(u,y=>{s(l)?y($):y(w,!1)})}b(p,v)},$$slots:{default:!0}})}var Fy=Se('<svg><!><g fill="none" fill-rule="evenodd"><path d="M0 0h24v24H0z"></path><path fill="var(--btn-color, #fff)" d="M8.695 8.105 5.301 4.71a1 1 0 0 1 1.414-1.415L20.7 17.285a1 1 0 0 1-1.414 1.415L16 15.41V20a1 1 0 0 1-1 1c-.641 0-1.258-.25-1.72-.695L7.79 15H5a2 2 0 0 1-2-2v-2a2 2 0 0 1 2-2h2.765zm2.88-2.77 1.704-1.642A2.48 2.48 0 0 1 15 3a1 1 0 0 1 1 1v5.76l-4.426-4.426Z"></path></g></svg>');function om(t,e){let i=Me(e,["$$slots","$$events","$$legacy","children"]);var o=Fy();Ie(o,()=>({xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24","aria-hidden":"true","data-testid":"muted-icon",role:"img",...i}));var n=_(o);be(n,()=>{var r;return(r=e.children)!=null?r:oe}),Ce(),g(o),b(t,o)}import{noop as Uy}from"@vkontakte/videoplayer-shared/es2018";var zy=M('<span class="text svelte-6gmlbk"> </span>'),Wy=M('<div aria-hidden="true"><!> <!></div>'),qy={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 mu(t,e){D(e,!0),z(t,qy);let i=m(e,"muted",3,!1),o=m(e,"expanded",3,!1),n=m(e,"click",3,Uy),r=m(e,"ref",15,void 0),d=Ee().ui.t,a=h(()=>i()?d("tooltip_volume"):d("tooltip_volume_muted")),p=h(()=>o()?Rs:om),f=h(()=>o()?"btn-mobile-unmuted":"btn-mobile-muted");Vt(t,{get testId(){return s(f)},get click(){return n()},get ariaLabel(){return s(a)},role:"button",get ref(){return r()},set ref(v){r(v)},children:(v,u)=>{var $=Wy();let w=h(()=>s(p)),y;var S=_($);yi(S,()=>s(w),(A,I)=>{I(A,{})});var T=P(S,2);{var k=A=>{var I=zy(),E=_(I,!0);g(I),O(V=>he(E,V),[()=>d("mobile_unmute")]),b(A,I)};L(T,A=>{o()&&A(k)})}g($),O(A=>y=J($,1,"container svelte-6gmlbk",null,y,A),[()=>({expanded:o()})]),b(v,$)},$$slots:{default:!0}}),H()}var Ky=Se('<svg><!><path fill="var(--btn-color, #fff)" d="M7.662 4h6.676c.808 0 1.469 0 2.006.044.556.045 1.058.142 1.526.381a3.9 3.9 0 0 1 1.705 1.704c.239.47.336.971.381 1.527C20 8.193 20 8.854 20 9.662V11.1a.9.9 0 0 1-1.8 0V9.7c0-.855 0-1.442-.038-1.897-.036-.445-.103-.684-.19-.856a2.1 2.1 0 0 0-.919-.918c-.172-.088-.411-.155-.856-.191C15.742 5.8 15.155 5.8 14.3 5.8H7.7c-.855 0-1.442 0-1.897.038-.445.036-.684.103-.856.19a2.1 2.1 0 0 0-.918.919c-.088.172-.155.411-.191.856C3.8 8.258 3.8 8.845 3.8 9.7v2.646c0 .855 0 1.442.038 1.897.036.445.103.683.19.856a2.1 2.1 0 0 0 .919.918c.172.088.411.155.856.191.455.037 1.042.038 1.897.038h2.4a.9.9 0 0 1 0 1.8H7.662c-.808 0-1.469 0-2.006-.044-.556-.045-1.058-.142-1.527-.381a3.9 3.9 0 0 1-1.704-1.704c-.239-.47-.336-.972-.381-1.527C2 13.852 2 13.192 2 12.384V9.662c0-.808 0-1.469.044-2.006.045-.556.142-1.058.381-1.527A3.9 3.9 0 0 1 4.13 4.425c.47-.239.971-.336 1.527-.381C6.193 4 6.854 4 7.662 4M13 16.8c0-.98 0-1.47.19-1.845a1.75 1.75 0 0 1 .766-.764C14.33 14 14.82 14 15.8 14h3.4c.98 0 1.47 0 1.845.19.329.168.596.436.764.766.191.374.191.864.191 1.844v.4c0 .98 0 1.47-.19 1.845a1.75 1.75 0 0 1-.765.764C20.67 20 20.18 20 19.2 20h-3.4c-.98 0-1.47 0-1.845-.19a1.75 1.75 0 0 1-.764-.765C13 18.67 13 18.18 13 17.2z" clip-rule="evenodd"></path><path fill="var(--btn-color, #fff)" d="m11.643 12.37-.007-.006L9.073 9.8H10.1a.9.9 0 1 0 0-1.8H6.9a.9.9 0 0 0-.9.9v3.2a.9.9 0 0 0 1.8 0v-1.022l2.53 2.524.134.134a.9.9 0 0 0 1.272-1.272z" class="hidden-not-active"></path><path fill="var(--btn-color, #fff)" d="m6.357 9.63.007.006L8.927 12.2H7.9a.9.9 0 1 0 0 1.8h3.2a.9.9 0 0 0 .9-.9V9.9a.9.9 0 0 0-1.8 0v1.022L7.67 8.397l-.134-.133a.9.9 0 0 0-1.272 1.272z" class="hidden-active"></path></svg>');function nm(t,e){let i=Me(e,["$$slots","$$events","$$legacy","children"]);var o=Ky();Ie(o,()=>({xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none",role:"img",...i}));var n=_(o);be(n,()=>{var r;return(r=e.children)!=null?r:oe}),Ce(3),g(o),b(t,o)}var Qy={hash:"svelte-tmam00",code:`svg[data-testid="pip-icon--active"] .hidden-active,
252
- svg[data-testid="pip-icon"] .hidden-not-active {visibility:hidden;opacity:0;}`};function rm(t,e){z(t,Qy);let i=m(e,"isActive",3,!1),o=h(()=>i()?"color: #2688EB;":"color: #fff;"),n=h(()=>i()?"pip-icon--active":"pip-icon");nm(t,{get style(){return s(o)},get"data-testid"(){return s(n)}})}import{noop as Gy}from"@vkontakte/videoplayer-shared/es2018";function sm(t,e){D(e,!0);let i=m(e,"ref",15,void 0),o=m(e,"isPictureInPictureActive",3,!1),n=m(e,"click",3,Gy),r=F("menu_pip");Vt(t,{testId:"btn-pip",get ariaLabel(){return r},get click(){return n()},get ref(){return i()},set ref(l){i(l)},children:(l,d)=>{rm(l,{get isActive(){return o()}})},$$slots:{default:!0}}),H()}import{debounceFn as w1}from"@vkontakte/videoplayer-shared/es2018";var Yy=(t,e,i,o)=>{s(e)&&i.onDisabledPlayPrevChapterClick(s(o))},jy=(t,e,i,o)=>{s(e)&&i.onDisabledSeekToInteractiveClick(s(o))},Zy=M("<div><!></div>"),Xy=M("<div><!></div>"),Jy=M("<div><!></div>"),e4=M("<!> <!> <!>",1),t4=M("<div></div> <div><!></div> <div><!> <!> <!> <!> <!> <!></div> <div><!> <!> <!> <!></div> <!>",1),i4=M("<div><!></div>"),o4=M('<div class="wrapper-middle svelte-9xcbwc"><!></div>'),n4=M("<!> <!> <div><!></div>",1),r4=M('<div aria-hidden="true">\xB7</div> <!>',1),s4=M('<!> <!> <div><div><div><div class="controls-group contain svelte-9xcbwc"><!> <!> <!> <!></div> <div class="controls-group svelte-9xcbwc"><!> <!></div></div> <!></div></div> <!>',1),a4={hash:"svelte-9xcbwc",code:`.wrapper-bottom.svelte-9xcbwc {pointer-events:none;position:absolute;z-index:var(--controls-container-z-index);width:100%;bottom:0;left:0;height:var(--controls-gradient-height);background:var(--controls-gradient);transition:transform var(--controls-transition-duration) var(--controls-transition-fn);display:flex;flex-direction:column;justify-content:flex-end;box-sizing:border-box;padding:0 4px 8px;}.wrapper-bottom.svelte-9xcbwc > :where(.svelte-9xcbwc) {pointer-events:auto;}.wrapper-bottom.ads-timeline-mobile.svelte-9xcbwc {height:9px;padding:0 4px 4px;}.wrapper-middle.svelte-9xcbwc {position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);transition:opacity var(--controls-transition-duration);display:flex;align-items:center;z-index:var(--controls-container-z-index);}.wrapper-top-right.svelte-9xcbwc {position:absolute;top:4px;right:8px;transition:opacity var(--controls-transition-duration);display:flex;z-index:var(--controls-container-z-index);}.wrapper-top-left.svelte-9xcbwc {position:absolute;top:4px;left:8px;z-index:var(--controls-container-z-index);}.wrapper-middle-left.svelte-9xcbwc,
251
+ animation: 1s svelte-od3veb-pulse infinite;transition:0.3s;pointer-events:none;}.pulse.paused.svelte-od3veb {animation-play-state:paused;}.interactive-episode-icon-animated svg {width:100%;height:100%;}.ref-block.svelte-od3veb {position:absolute;top:0;width:100%;height:100%;visibility:hidden;}.hidden.svelte-od3veb {display:none;}`};function Sd(t,e){var ue;F(e,!0),K(t,dy);let[i,o]=He(),n=()=>C(S,"$isMobile",i),s=()=>C(I,"$areControlsVisible",i),l=()=>C(R,"$currentGridType$",i),d=()=>C(E,"$isInteractiveTime$",i),a=()=>C(b,"$interactiveControlsOpacity$",i),p=()=>C(M,"$showInteractiveTimeIndicatorTooltip$",i),f=()=>C(T,"$isFullscreen",i),v=m(e,"ref",15,void 0),u=j(void 0),y=Ee(),w=uo(),{interactiveControlsOpacity$:b}=w,S=y.ui.isMobile,T=y.ui.isFullscreen,E=y.state.isInteractiveTime$,M=w.showInteractiveTimeIndicatorTooltip$,I=y.ui.controlsVisible,k=(ue=y.callbacks)==null?void 0:ue.onInteractiveTimeIndicatorClick,R=y.ui.currentGridType$,Y=g(()=>!n()&&s()),D=g(()=>Os(l(),"s")),H=g(()=>!d()||!!a()||r(Y)),q=j(!1);We(()=>{B(q,r(H),!0)});let J=()=>{B(q,!0)},W=()=>{var we;de(),(we=r(u))==null||we.addEventListener("animationiteration",J,{once:!0})},de=()=>{var we;B(q,!1),(we=r(u))==null||we.removeEventListener("animationiteration",J)},ie=we=>{M.set(we)},ve=g(()=>p()&&!r(H));We(()=>{p()?W():de()});let Ie=()=>{r(H)||(M.set(!0),k==null||k())};Yo(()=>{M.clearTimeout(),de()});let fe=()=>{M.set(!1)},re=z("tooltip_interactive_interaction_time_indicator");var ke=ly();let te;ke.__mousemove=[ay],ke.__click=Ie;var N=_(ke);Do(N,{get tooltipContent(){return re},get tooltipActive(){return r(ve)},initialTranslateYPx:72,tooltipPlacement:"bottom",onTooltipVisibilityChange:ie,get ref(){return v()},set ref(we){v(we)},children:(we,Z)=>{gd(we,{completed:!0})},$$slots:{default:!0}});var Oe=P(N,2);let ye;ot(Oe,we=>v(we),()=>v());var he=P(Oe,2);let ce;ot(he,we=>B(u,we),()=>r(u)),h(ke),O((we,Z,Ke)=>{te=X(ke,1,"interactive-episode-icon-animated svelte-od3veb",null,te,we),ye=X(Oe,1,"ref-block svelte-od3veb",null,ye,Z),ce=X(he,1,"pulse svelte-od3veb",null,ce,Ke)},[()=>({mobile:n(),fullscreen:f(),invisible:r(H),"icon-small":r(D)}),()=>({hidden:r(H)}),()=>({paused:r(q)})]),Tt("mouseleave",ke,fe),$(t,ke),U(),o()}lt(["mousemove","click"]);function mu(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),s=m(e,"ref",15);Do(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 s()},set ref(l){s(l)},children:(l,d)=>{var a=Ue();let p=g(()=>e.buttonComponent);var f=me(a);yi(f,()=>r(p),(v,u)=>{u(v,ps(()=>{var y;return(y=e.buttonComponentProps)!=null?y:{}}))}),$(l,a)},$$slots:{default:!0}}),U()}var hs={prevButton:100,replayButton:200,playButton:300,nextButton:400,playPrevChapterButton:500,seekToInteractiveButton:600,interactiveGraphButton:700,liveButton:800};var uy=Te('<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 Yf(t,e){let i=Ve(e,["$$slots","$$events","$$legacy","children"]);var o=uy();Pe(o,()=>({xmlns:"http://www.w3.org/2000/svg",width:"26",height:"24",fill:"none","aria-hidden":"true",role:"img",...i}));var n=_(o);xe(n,()=>{var s;return(s=e.children)!=null?s:se}),Se(),h(o),$(t,o)}function Ds(t,e){let i=m(e,"isPrev",3,!1),o=m(e,"isMobile",3,!1),n=m(e,"width",3,"24"),s=m(e,"height",3,"24"),l=g(()=>i()&&o()?"transform: scaleX(-1) scale(1.3333);":i()?"transform: scaleX(-1);":o()?"transform: scale(1.3333);":void 0),d=g(()=>i()?"prev-icon":"next-icon");Yf(t,{get style(){return r(l)},get width(){return n()},get height(){return s()},get viewBox(){return e.viewBox},get"data-testid"(){return r(d)}})}var py=A('<div class="icon-background-mobile svelte-xtk2k4"></div>'),fy=A("<!> <!>",1),my={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 _a(t,e){F(e,!0),K(t,my);let i=m(e,"ref",15,void 0),o=m(e,"isMobile",3,!1),n=m(e,"disabled",3,!1),l=Ee().ui.t,d=g(()=>e.type==="prev"?l("tooltip_previous"):l("tooltip_next")),a=g(()=>e.type==="prev"?l("hotkey_map_item_prev_video_value"):l("hotkey_map_item_next_video_value")),p=g(()=>`btn-${o()?"m":"d"}--${e.type}`);Vt(t,{get className(){return r(p)},get testId(){var f;return`btn-${(f=e.type)!=null?f:""}`},get disabled(){return n()},get ariaLabel(){return r(d)},get click(){return e.click},get ariaKeyShortCut(){return r(a)},get ref(){return i()},set ref(f){i(f)},children:(f,v)=>{var u=fy(),y=me(u);{var w=T=>{var E=py();$(T,E)};L(y,T=>{o()&&T(w)})}var b=P(y,2);let S=g(()=>e.type==="prev");Ds(b,{get isMobile(){return o()},get isPrev(){return r(S)}}),$(f,u)},$$slots:{default:!0}}),U()}var vy=Te('<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 Td(t,e){let i=Ve(e,["$$slots","$$events","$$legacy","children"]);var o=vy();Pe(o,()=>({xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none","aria-hidden":"true","data-testid":"replay-icon",role:"img",...i}));var n=_(o);xe(n,()=>{var s;return(s=e.children)!=null?s:se}),Se(),h(o),$(t,o)}import{noop as gy}from"@vkontakte/videoplayer-shared/es2018";var hy=A('<div class="icon-background-mobile svelte-1ot3duq"></div>'),_y=A("<!> <div><!></div>",1),by={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 dl(t,e){F(e,!0),K(t,by);let i=m(e,"ref",15,void 0),o=m(e,"isMobile",3,!1),n=m(e,"disabled",3,!1),s=m(e,"className",3,""),l=m(e,"click",3,gy),d=z("tooltip_restart"),a=g(()=>`${o()?"btn-m--play":""} ${s()}`);Vt(t,{get className(){return r(a)},testId:"btn-replay",get ariaLabel(){return d},get disabled(){return n()},get click(){return l()},get ariaKeyShortCut(){return es.KeyK},get ref(){return i()},set ref(p){i(p)},children:(p,f)=>{var v=_y(),u=me(v);{var y=T=>{var E=hy();$(T,E)};L(u,T=>{o()&&T(y)})}var w=P(u,2);let b;var S=_(w);Td(S,{}),h(w),O(T=>b=X(w,1,"svelte-1ot3duq",null,b,T),[()=>({mobile:o()})]),$(p,v)},$$slots:{default:!0}}),U()}var $y=Te('<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 Or(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"),s=m(e,"fill",3,"var(--btn-color)");var l=$y(),d=_(l);h(l),O(()=>{Be(l,"width",i()),Be(l,"height",o()),Be(l,"viewBox",n()),Be(d,"fill",s())}),$(t,l)}var yy=Te('<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 _s(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"),s=m(e,"fill",3,"var(--btn-color)");var l=yy(),d=_(l);h(l),O(()=>{Be(l,"width",i()),Be(l,"height",o()),Be(l,"viewBox",n()),Be(d,"fill",s())}),$(t,l)}import{noop as xy}from"@vkontakte/videoplayer-shared/es2018";var wy=A('<div class="icon-background-mobile svelte-1ot3duq"></div>'),Cy=A("<!> <div><!></div>",1),Sy={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 cl(t,e){F(e,!0),K(t,Sy);let[i,o]=He(),n=()=>C(s,"$fakeIsPlaying$",i),{fakeIsPlaying$:s}=uo(),l=m(e,"ref",15,void 0),d=m(e,"isMobile",3,!1),a=m(e,"isPlaying",3,!1),p=m(e,"disabled",3,!1),f=m(e,"className",3,""),v=m(e,"click",3,xy),y=Ee().ui.t,{toggle:w}=s,b=g(()=>w),S=g(()=>n()!==null),T=g(()=>r(S)?n():a()),E=g(()=>r(T)?y("tooltip_pause"):y("tooltip_play")),M=g(()=>r(T)?_s:Or),I=g(()=>`${d()?"btn-m--play":""} ${f()}`),k=g(()=>r(S)?r(b):v());Vt(t,{get className(){return r(I)},testId:"btn-play",get click(){return r(k)},get disabled(){return p()},get ariaLabel(){return r(E)},get ariaKeyShortCut(){return es.KeyK},get ref(){return l()},set ref(R){l(R)},children:(R,Y)=>{var D=Cy();let H=g(()=>r(M));var q=me(D);{var J=ve=>{var Ie=wy();$(ve,Ie)};L(q,ve=>{d()&&ve(J)})}var W=P(q,2);let de;var ie=_(W);yi(ie,()=>r(H),(ve,Ie)=>{Ie(ve,{})}),h(W),O(ve=>de=X(W,1,"svelte-1ot3duq",null,de,ve),[()=>({mobile:d()})]),$(R,D)},$$slots:{default:!0}}),U(),o()}var Ty=Te('<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 jf(t,e){let i=Ve(e,["$$slots","$$events","$$legacy","children"]);var o=Ty();Pe(o,()=>({xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none","data-testid":"play-prev-chapter-icon",role:"img",...i}));var n=_(o);xe(n,()=>{var s;return(s=e.children)!=null?s:se}),Se(),h(o),$(t,o)}function Ed(t,e){F(e,!0);let i=m(e,"ref",15,void 0),o=m(e,"hidden",3,!1),n=m(e,"disabled",3,!1),s=z("tooltip_interactive_go_back"),l=g(()=>o()?"hidden":"");Vt(t,{get className(){return r(l)},testId:"btn-play-prev-chapter",get ariaLabel(){return s},get disabled(){return n()},get click(){return e.click},get ref(){return i()},set ref(d){i(d)},children:(d,a)=>{jf(d,{})},$$slots:{default:!0}}),U()}var Ey=A('<span class="gutter svelte-et3q1q"><span><!></span></span>'),Iy={hash:"svelte-et3q1q",code:".gutter.svelte-et3q1q {--gutterWidth: 32px;--gutterHeight: 12px;--togglerWidth: 18px;--togglerHeight: 18px;--togglerGap: calc(var(--togglerWidth) / 6);position:relative;width:var(--gutterWidth);height:var(--gutterHeight);background-color:rgba(255, 255, 255, 0.3);border-radius:50px;}.toggler.svelte-et3q1q {position:absolute;top:calc(((var(--togglerHeight) - var(--gutterHeight)) / 2) * -1);left:0;display:flex;align-items:center;justify-content:center;width:var(--togglerWidth);height:var(--togglerHeight);background-color:rgba(98, 99, 100, 1);border-radius:50%;transform:translateX(calc(var(--togglerGap) * -1));transition-property:background-color, transform;transition-duration:0.2s;transition-timing-function:ease;}.toggler.enabled.svelte-et3q1q {background-color:var(--toggle-color-autoplay-on);transform:translateX(calc(var(--gutterWidth) - var(--togglerWidth) + var(--togglerGap)));}"};function Id(t,e){F(e,!0),K(t,Iy);let[i,o]=He(),n=()=>C(a,"$autoplayNextEnabled$",i),s=m(e,"ref",15,void 0),l=Ee(),d=l.ui.t,a=l.ui.autoplayNextEnabled$,p=l.actions.internal.setAutoplayNextEnabled,f=()=>{p(!n(),!0)},v=d("aria_label_autoplay"),u=g(()=>n()?"true":"false");Vt(t,{click:f,get ariaLabel(){return v},role:"switch",get areaChecked(){return r(u)},get ref(){return s()},set ref(y){s(y)},children:(y,w)=>{var b=Ey(),S=_(b);let T;var E=_(S);{var M=k=>{Or(k,{width:"14",height:"14",fill:"#000"})},I=k=>{_s(k,{width:"14",height:"14",fill:"#000"})};L(E,k=>{n()?k(M):k(I,!1)})}h(S),h(b),O(k=>T=X(S,1,"toggler svelte-et3q1q",null,T,k),[()=>({enabled:n()})]),$(y,b)},$$slots:{default:!0}}),U(),o()}var ky=Te('<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 Zf(t,e){let i=Ve(e,["$$slots","$$events","$$legacy","children"]);var o=ky();Pe(o,()=>({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}));var n=_(o);xe(n,()=>{var s;return(s=e.children)!=null?s:se}),Se(2),h(o),$(t,o)}function kd(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),s=z("tooltip_interactive_seek"),l=g(()=>o()?"hidden":"");Vt(t,{get className(){return r(l)},testId:"btn-seek-to-interactive",get ariaLabel(){return s},get disabled(){return n()},get click(){return e.click},get ref(){return i()},set ref(d){i(d)},children:(d,a)=>{Zf(d,{})},$$slots:{default:!0}}),U()}var Py=Te('<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 Xf(t,e){let i=Ve(e,["$$slots","$$events","$$legacy","children"]);var o=Py();Pe(o,()=>({xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none","aria-hidden":"true",role:"img",...i}));var n=_(o);xe(n,()=>{var s;return(s=e.children)!=null?s:se}),Se(2),h(o),$(t,o)}var Ay={hash:"svelte-17ceof5",code:'svg[data-testid="graph-open-icon"] ._closed {visibility:hidden;opacity:0;}'};function Jf(t,e){K(t,Ay);let i=m(e,"isOpened",3,!1),o=g(()=>i()?"graph-close-icon":"graph-open-icon");Xf(t,{get"data-testid"(){return r(o)}})}function Pd(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),s=m(e,"graphIsOpened",3,!1),d=Ee().ui.t,a=g(()=>s()?d("tooltip_interactive_graph_on"):d("tooltip_interactive_graph_off")),p=g(()=>o()?"hidden":"");Vt(t,{get className(){return r(p)},testId:"btn-graph",get disabled(){return n()},get ariaLabel(){return r(a)},get click(){return e.click},get ref(){return i()},set ref(f){i(f)},children:(f,v)=>{let u=g(()=>!!s());Jf(f,{get isOpened(){return r(u)}})},$$slots:{default:!0}}),U()}import{PlaybackState as v1}from"@vkontakte/videoplayer-core/es2018";function Ad(t,e){F(e,!0);let[i,o]=He(),n=()=>C(p,"$playbackState$",i),s=m(e,"isMobile",3,!1),l=m(e,"isLiveActive",3,!1),d=m(e,"ariaLabel",3,""),a=Ee(),p=a.state.playbackState$,f=a.actions.internal.switchToActiveLive,v=a.actions.internal.togglePlay,u=g(()=>()=>{if(!l()){f();return}n()===v1.PAUSED&&v()}),y=g(()=>s()?"":"btn--live btn-full-opacity"),w=g(()=>l()?"btn-live":"btn-live-offset"),b=g(()=>l()&&n()===v1.PLAYING);Vt(t,{get className(){return r(y)},get testId(){return r(w)},get disabled(){return r(b)},get ariaLabel(){return d()},get click(){return r(u)},children:(S,T)=>{td(S,{get isActive(){return l()}})},$$slots:{default:!0}}),U(),o()}import{noop as g1}from"@vkontakte/videoplayer-shared/es2018";var My=A('<div class="icon icon-error-stub"><div class="inner"></div></div>'),Ly=A('<img class="icon" aria-hidden="true"/>');function ba(t,e){"use strict";let i=j(!1),o=()=>{B(i,!0)};var n=Ue(),s=me(n);{var l=a=>{var p=My();$(a,p)},d=a=>{var p=Ly();O(()=>Be(p,"src",e.icon)),Tt("error",p,o),Js(p),$(a,p)};L(s,a=>{r(i)?a(l):a(d,!1)})}$(t,n)}function em(t,e){F(e,!0);let i=m(e,"disabled",3,!1),o=m(e,"onClick",3,g1),n=m(e,"ref",15),s=g(()=>o()===g1),l=g(()=>r(s)||i()),d=g(()=>r(s)?"btn-full-opacity":"");Do(t,{get disabled(){return r(l)},get tooltipContent(){return e.tooltipText},get disabledTooltipContent(){return e.disabledTooltipContent},width:40,get disableMouseupTooltipShow(){return e.disableMouseupTooltipShow},get ref(){return n()},set ref(a){n(a)},children:(a,p)=>{let f=g(()=>{var v;return(v=e.testId)!=null?v:e.id});Vt(a,{get className(){return r(d)},get ariaLabel(){return e.ariaLabel},get click(){return o()},get disabled(){return r(l)},get testId(){return r(f)},children:(v,u)=>{ba(v,{get icon(){return e.icon}})},$$slots:{default:!0}})},$$slots:{default:!0}}),U()}var h1=t=>!!t.buttonComponent;var bs={vkLogo:100,autoplayNext:200,volume:300,subtitles:400,settings:500,context:600,fullscreen:700,chromecast:800};var vu=(t,e,i,o)=>{if(t)for(let[n,s]of Object.entries(e))s.set(An(t,i,n,o))};var Ny=A('<div><!> <div class="controls svelte-f6e8ix" data-testid="player_controls"><div class="controls-left svelte-f6e8ix"><!> <!> <!></div> <div class="controls-right svelte-f6e8ix"></div></div></div> <!>',1),By={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 im(t,e){var Ia,Fs;F(e,!0),K(t,By);let[i,o]=He(),n=()=>C(Ci,"$disabledControls$",i),s=()=>C(hi,"$adPlaybackState",i),l=()=>C(Pt,"$playbackState$",i),d=()=>C(ht,"$currentSubtitle$",i),a=()=>C(ai,"$isEnded$",i),p=()=>C(Si,"$currentGridType$",i),f=()=>C(mi,"$isLive$",i),v=()=>C(Yi,"$chromecastState$",i),u=()=>C(ti,"$isPictureInPictureActive",i),y=()=>C(ui,"$pictureInPictureType$",i),w=()=>C(yt,"$availableSubtitlesList$",i),b=()=>C(Bt,"$contextMenuOpenedByKeyboard$",i),S=()=>C(G,"$showContextMenuBtn$",i),T=()=>C(er,"$playerSize",i),E=()=>C(Xt,"$isRewindableLive$",i),M=()=>C(at,"$isActiveLive$",i),I=()=>C(mo,"$graphIsOpened$",i),k=()=>C(Ho,"$contextMenuVisible$",i),R=()=>C(Ot,"$isFullscreen",i),Y=()=>C(Mi,"$autoplayNextEnabled",i),D=()=>C(r(sr),"$prevButton",i),H=()=>C(r(Hn),"$replayButton",i),q=()=>C(r(Fn),"$playButton",i),J=()=>C(r(Ii),"$nextButton",i),W=()=>C(r(xr),"$playPrevChapterButton",i),de=()=>C(r(qr),"$seekToInteractiveButton",i),ie=()=>C(r(xt),"$interactiveGraphButton",i),ve=()=>C(r(li),"$liveButton",i),Ie=()=>C(r(zo),"$time",i),fe=()=>C(r(So),"$episodes",i),re=()=>C(r(go),"$vkLogo",i),ke=()=>C(r(_i),"$volume",i),te=()=>C(r(ho),"$subtitles",i),N=()=>C(r(oo),"$settings",i),Oe=()=>C(r(ar),"$context",i),ye=()=>C(r(lr),"$fullscreen",i),he=()=>C(r(wr),"$chromecast",i),ce=()=>C(fo,"$additionalDesktopControlPanelRightButtons$",i),ue=()=>C(ji,"$isInteractiveTime$",i),we=()=>C(wo,"$settingsMenuVisible",i),Z=()=>C(To,"$settingButtonRef$",i),Ke=()=>C(ci,"$startedByKeyboard$",i),Xe=()=>C(Mt,"$isAudioAvailable$",i),Ae=()=>C(Nt,"$fakeIsPlaying$",i),ee=()=>C(io,"$seekToInteractiveDisabledTooltip$",i),Ce=()=>C(ut,"$adPosition",i),qe=()=>C(tt,"$position$",i),st=()=>C(rt,"$adDuration",i),ct=()=>C(Re,"$duration$",i),bt=m(e,"playerControlsWrapperRef",15,void 0),St=m(e,"playerControlsRef",15,void 0),Ge=m(e,"isAds",3,!1),Wt=m(e,"logoTargetUrl",3,""),Qt=m(e,"isOneVideoPlaylist",3,!1),qt=m(e,"customFullscreenSupported",3,!0),{fakeIsPlaying$:Nt}=uo(),oe=Ee(),At=uo(),ge=Ft(),be=oe.actions.internal.toggleMuted,le=oe.actions.internal.togglePlay,De=oe.actions.internal.pause,ze=oe.actions.internal.toggleSubtitle,Le=(Ia=oe.callbacks)==null?void 0:Ia.onAudioDoesNotExistHint,Ye=(Fs=oe.callbacks)==null?void 0:Fs.onAudioDisabledHint,Re=oe.state.duration$,tt=oe.state.positionWithScrubbing$,Pt=oe.state.playbackState$,Mt=oe.state.isAudioAvailable$,Je=oe.state.isAudioDisabled,ai=oe.state.isEnded$,mi=oe.state.isLive$,at=oe.state.isActiveLive$,Xt=oe.state.isRewindableLive$,{isActive$:ti,type$:ui}=At.pictureInPicture$,wo=oe.ui.settingsMenu.visible$,po=oe.ui.settingsMenu.openedByBtnKeyboard$,Yt=oe.ui.controls,wi=oe.actions.internal.getVideoEpisodes(),Yi=oe.state.chromecastState$,yt=oe.state.availableSubtitlesList$,ht=oe.state.currentSubtitle$,Ci=Yt.disabledControls$,Ho=oe.ui.contextMenu.visible$,G=oe.ui.contextMenu.showContextMenuBtn$,Bt=oe.ui.contextMenu.openedByBtnKeyboard$,ci=oe.ui.startedByKeyboard$,Kt=oe.ui.controlBlocks,ft=oe.ui.t,rt=oe.ads.duration,ut=oe.ads.position,hi=oe.ads.playbackState,Ot=oe.ui.isFullscreen,er=oe.ui.playerSize,Si=oe.ui.currentGridType$,fo=oe.ui.additionalDesktopControlPanelRightButtons$,Mi=oe.ui.autoplayNextEnabled$,$t=oe.actions.internal.getVideoElement,Li=oe.actions.internal.replayInteractive,Xo=oe.actions.internal.prevVideoClick,fn=oe.actions.internal.nextVideoClick,Ti=oe.state.isInteractive,ji=oe.state.isInteractiveTime$,Ei=oe.state.showInteractiveGraph,Jo=oe.state.showSeekToInteractive,Ln=oe.state.showPlayPrevChapter,Co=oe.state.showInteractiveTimeIndicator,Fo=oe.state.playPrevChapterDisabledTooltip,io=At.seekToInteractiveDisabledTooltip$,mo=At.graphIsOpened$,en=ge.features.interactiveResponsiveUi,Vn=g(()=>n().has("EPISODE_BUTTON")),tr=g(()=>n().has("GRAPH_BUTTON")),ir=g(()=>n().has("SEEK_TO_INTERACTIVE_BUTTON")),or=g(()=>n().has("PLAY_BUTTON")),Hr=g(()=>n().has("REPLAY_BUTTON")),Rn=g(()=>n().has("PLAY_PREV_CHAPTER_BUTTON")),ns=()=>oe.actions.internal.toggleChromecast(),Fr=g(()=>Ge()?s()==="playing":l()===tm.PLAYING),Vi=g(()=>d().value!=="off"),mn=g(()=>a()&&!Ge()||Ti),tn=g(()=>en?r(mn)&&Gi(p(),"m"):r(mn)),vn=g(()=>!a()||Ti||Ge()),vo=g(()=>Gi(p(),"m")),gn=g(()=>e.showNextPrevButtons&&Gi(p(),"m")&&!Ge()&&e.nextButtonActive),Nn=g(()=>e.showNextPrevButtons&&Gi(p(),"m")&&!Ge()&&e.prevButtonActive),Ur=g(()=>!Ge()&&!!f()),_r=g(()=>v()!==_1.NOT_AVAILABLE&&!(u()&&y()===1)&&Gi(p(),"m")&&!Ti),zr=g(()=>e.showAutoplayNext&&!Qt()&&Gi(p(),"s")),hn=g(()=>w().length>0&&Gi(p(),"m")),Bn=g(()=>b()||S()),it=g(()=>Gi(p(),"s")&&!Ge()),Ut=g(()=>!e.logoHidden&&!Ge()),On=g(()=>ge.features.fullscreen&&(e.logoHidden||Gi(p(),en?"xs":"s"))&&!(u()&&y()===1)&&(Ti?qt():!0)),zi=g(()=>(!f()||Ge())&&!(ge.features.interactiveHideTime&&Ti)),nr=g(()=>T().width>100),Dn=g(()=>Ei&&Gi(p(),"m")),_n=g(()=>en?Jo&&Gi(p(),"s"):Jo),Wi=g(()=>en?Ln&&Gi(p(),"s"):Ln),on=g(()=>!Ge()&&!f()&&!!(wi!=null&&wi.length)&&r(vo)&&!r(Vn)),Uo=g(()=>!E()||!!M()),bn=g(()=>I()?ft("tooltip_interactive_graph_on"):ft("tooltip_interactive_graph_off")),br=g(()=>k()?ft("tooltip_context_menu_close"):ft("tooltip_context_menu_open")),$r=(dt,_t)=>dt?_t&&_t===tm.PAUSED?ft("tooltip_play"):"":ft("tooltip_live"),$n=g(()=>$r(r(Uo),l())),Wr=g(()=>ge.logoType==="vk_video"?ft("tooltip_vk_video_logo"):ft("tooltip_vk_logo")),yn=g(()=>r(Vi)?ft("tooltip_subtitles_on"):ft("tooltip_subtitles_off")),Kr=g(()=>R()?ft("tooltip_fullscreen_on"):ft("tooltip_fullscreen_off")),rr=g(()=>v()===_1.CONNECTED?ft("tooltip_chromecast_on"):ft("tooltip_chromecast_off")),yr=g(()=>Y()?ft("tooltip_autoplay_on"):ft("tooltip_autoplay_off")),nn=j(0),ii=si({}),Ri=si({}),sr=g(()=>Yt.prevButton),Hn=g(()=>Yt.replayButton),Fn=g(()=>Yt.playButton),Ii=g(()=>Yt.nextButton),xr=g(()=>Yt.playPrevChapterButton),qr=g(()=>Yt.seekToInteractiveButton),xt=g(()=>Yt.interactiveGraphButton),li=g(()=>Yt.liveButton),zo=g(()=>Yt.time),So=g(()=>Yt.episodes),go=g(()=>Yt.vkLogo),_i=g(()=>Yt.volume),ho=g(()=>Yt.subtitles),oo=g(()=>Yt.settings),ar=g(()=>Yt.context),lr=g(()=>Yt.fullscreen),wr=g(()=>Yt.chromecast),et=g(()=>({prevButton:D()?D().right-D().left:0,replayButton:H()?H().right-H().left:0,playButton:q()?q().right-q().left:0,nextButton:J()?J().right-J().left:0,playPrevChapterButton:W()?W().right-W().left:0,seekToInteractiveButton:de()?de().right-de().left:0,interactiveGraphButton:ie()?ie().right-ie().left:0,liveButton:ve()?ve().right-ve().left:0,time:Ie()?Ie().right-Ie().left:0,episodes:fe()?fe().right-fe().left:0,vkLogo:re()?re().right-re().left:0,volume:ke()?ke().right-ke().left:0,subtitles:te()?te().right-te().left:0,settings:N()?N().right-N().left:0,context:Oe()?Oe().right-Oe().left:0,fullscreen:ye()?ye().right-ye().left:0,chromecast:he()?he().right-he().left:0,additionalButtons:ce().length?ce().reduce(dt=>[...dt,40],[]):[]})),kt=j(0);We(()=>{(!r(kt)||r(kt)<r(et).time)&&Ct(()=>B(kt,r(et).time,!0))});let bi=j(!1);We(()=>{let dt=0;r(on)&&(Gi(p(),"xl")?dt=r(et).time:dt=60);let _t=r(et).prevButton+r(et).playButton+r(et).nextButton+r(et).seekToInteractiveButton+r(et).interactiveGraphButton+r(et).liveButton+r(kt)+dt;B(bi,r(zi)&&r(nn)>=_t,!0)});let _o=g(()=>r(bi)&&Gi(p(),"m")),no=b1(ll,260),ro=b1(vu,260);We(()=>{T(),ue(),no($t(),Yt,ii,e.showControls),ro($t(),Kt,Ri,e.showControls)}),We(()=>{Ri.bottom=bt()});let To=ae();We(()=>{we(),Z()&&Ct(()=>il(Z(),we(),po))});let Wo;We(()=>{Ke(),Ct(()=>fu(ci,Ke(),Wo))});function Eo(){Ns({isAudioDisabled:Je,isAudioAvailable:Xe(),isAds:Ge(),audioIsNotExistHintCallback:Le,audioDisabledHintCallback:Ye})&&be()}let Ni=Ti?Li:le,Zi=g(()=>Ae()!==null),Io=g(()=>r(Zi)?Ae():r(Fr)),so=g(()=>r(Io)?ft("tooltip_pause"):ft("tooltip_play")),ko=ft("tooltip_episodes"),Un=g(()=>{var dt,_t,lo,Ko;return r(Nn)?{id:"prevButton",type:"desktop-control-panel-left",weight:hs.prevButton,buttonComponent:_a,buttonComponentProps:{disabled:!e.prevButtonActive,type:"prev",click:Xo.bind(null,!0)},tooltipEnabled:!((_t=(dt=oe.callbacks)==null?void 0:dt.uiInfo)!=null&&_t.onPrevButtonMouseEnter)&&!((Ko=(lo=oe.callbacks)==null?void 0:lo.uiInfo)!=null&&Ko.onPrevButtonMouseLeave),mouseEnter:()=>{var co,di,Oi;(Oi=(di=(co=oe.callbacks)==null?void 0:co.uiInfo)==null?void 0:di.onPrevButtonMouseEnter)==null||Oi.call(di,An($t(),ii,"prevButton",e.showControls))},mouseLeave:()=>{var co,di,Oi;(Oi=(di=(co=oe.callbacks)==null?void 0:co.uiInfo)==null?void 0:di.onPrevButtonMouseLeave)==null||Oi.call(di,An($t(),ii,"prevButton",e.showControls))},tooltipText:ft("tooltip_previous"),disabled:!e.prevButtonActive}:void 0}),dr=g(()=>r(tn)?{id:"replayButton",type:"desktop-control-panel-left",weight:hs.replayButton,buttonComponent:dl,buttonComponentProps:{disabled:r(Hr),click:Ni},tooltipText:ft("tooltip_restart"),disabled:r(Hr)}:void 0),rs=g(()=>r(vn)?{id:"playButton",type:"desktop-control-panel-left",weight:hs.playButton,buttonComponent:cl,buttonComponentProps:{disabled:r(or),isPlaying:r(Fr),click:le},tooltipText:r(so),disabled:r(or)}:void 0),Cr=g(()=>{var dt,_t,lo,Ko;return r(gn)?{id:"nextButton",type:"desktop-control-panel-left",weight:hs.nextButton,buttonComponent:_a,buttonComponentProps:{disabled:!e.nextButtonActive,type:"next",click:fn.bind(null,!0)},tooltipEnabled:!((_t=(dt=oe.callbacks)==null?void 0:dt.uiInfo)!=null&&_t.onNextButtonMouseEnter)&&!((Ko=(lo=oe.callbacks)==null?void 0:lo.uiInfo)!=null&&Ko.onNextButtonMouseLeave),mouseEnter:()=>{var co,di,Oi;(Oi=(di=(co=oe.callbacks)==null?void 0:co.uiInfo)==null?void 0:di.onNextButtonMouseEnter)==null||Oi.call(di,An($t(),ii,"nextButton",e.showControls))},mouseLeave:()=>{var co,di,Oi;(Oi=(di=(co=oe.callbacks)==null?void 0:co.uiInfo)==null?void 0:di.onNextButtonMouseLeave)==null||Oi.call(di,An($t(),ii,"nextButton",e.showControls))},tooltipText:ft("tooltip_next"),disabled:!e.nextButtonActive}:void 0}),Sr=g(()=>Ti&&r(Wi)?{id:"playPrevChapterButton",type:"desktop-control-panel-left",weight:hs.playPrevChapterButton,buttonComponent:Ed,buttonComponentProps:{disabled:r(Rn),click:e.playPrevChapter},tooltipText:ft("tooltip_interactive_go_back"),disabledTooltipContent:ft(Fo),disabled:r(Rn)}:void 0),cr=g(()=>Ti&&r(_n)?{id:"seekToInteractiveButton",type:"desktop-control-panel-left",weight:hs.seekToInteractiveButton,buttonComponent:kd,buttonComponentProps:{disabled:r(ir),click:e.seekToInteractive},tooltipText:ft("tooltip_interactive_seek"),disabled:r(ir),disabledTooltipContent:ft(ee())}:void 0),ur=g(()=>Ti&&r(Dn)?{id:"interactiveGraphButton",type:"desktop-control-panel-left",weight:hs.interactiveGraphButton,buttonComponent:Pd,buttonComponentProps:{disabled:r(tr),click:mo.toggle,graphIsOpened:I()},tooltipText:r(bn)}:void 0),rn=g(()=>r(Ur)?{id:"liveButton",type:"desktop-control-panel-left",weight:hs.liveButton,buttonComponent:Ad,buttonComponentProps:{isLiveActive:r(Uo),ariaLabel:r($n)},tooltipText:r($n),disabled:r(Uo)&&l()===tm.PLAYING}:void 0),ao=g(()=>[r(Un),r(dr),r(rs),r(Cr),r(Sr),r(cr),r(ur),r(rn)].filter(dt=>!!dt).sort(ca)),xn=g(()=>r(Ut)?{id:"vkLogo",type:"desktop-control-panel-right",weight:bs.vkLogo,buttonComponent:_d,buttonComponentProps:{targetUrl:Wt(),logoClickable:e.logoClickable,click:De},tooltipText:r(Wr),disabledTooltipContent:"",disabled:!e.logoClickable}:void 0),Tr=g(()=>r(zr)?{id:"autoplayNext",type:"desktop-control-panel-right",weight:bs.autoplayNext,buttonComponent:Id,tooltipText:r(yr)}:void 0),pr=g(()=>({id:"volume",type:"desktop-control-panel-right",weight:bs.volume,buttonComponent:kf,buttonComponentProps:{click:Eo,isAds:Ge()}})),Er=g(()=>r(hn)?{id:"subtitles",type:"desktop-control-panel-right",weight:bs.subtitles,buttonComponent:Cf,buttonComponentProps:{isSubtitlesEnabled:r(Vi),click:ze},tooltipText:r(yn)}:void 0),je=g(()=>r(it)?{id:"settings",type:"desktop-control-panel-right",weight:bs.settings,buttonComponent:sl,buttonComponentProps:{ref$:To},tooltipText:we()?void 0:ft("tooltip_settings_off")}:void 0),Jt=g(()=>ge.features.contextMenuButton?{id:"context",type:"desktop-control-panel-right",weight:bs.context,buttonComponent:Qf,buttonComponentProps:{ariaLabel:ft("aria_label_context_menu")},className:r(Bn)?"":"out-of-view",tooltipText:r(br)}:void 0),pe=g(()=>r(On)?{id:"fullscreen",type:"desktop-control-panel-right",weight:bs.fullscreen,buttonComponent:hd,buttonComponentProps:{isFullscreen:R(),click:e.toggleFullscreen},tooltipText:r(Kr)}:void 0),wt=g(()=>r(_r)?{id:"chromecast",type:"desktop-control-panel-right",weight:bs.chromecast,buttonComponent:bd,buttonComponentProps:{state:v(),click:ns},tooltipText:r(rr)}:void 0),oi=g(()=>[r(xn),r(Tr),r(pr),r(Er),r(je),r(Jt),r(pe),r(wt),...ce()].filter(dt=>!!dt).sort(ca));var pi=Ny(),Ne=me(pi);let mt;var ni=_(Ne);let Po=g(()=>!r(nr));ga(ni,{get isHidden(){return r(Po)},get isAds(){return Ge()},get canRewindLive(){return e.canRewindLive},get isRewindableLive(){return E()},get ref(){return ii.timeline},set ref(dt){ii.timeline=dt}});var Bi=P(ni,2),sn=_(Bi),Ir=_(sn);$i(Ir,17,()=>r(ao),dt=>dt.id,(dt,_t)=>{mu(dt,{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 ii[r(_t).id]},set ref(lo){ii[r(_t).id]=lo}})});var Ao=P(Ir,2);{var Xi=dt=>{let _t=g(()=>Ge()?Ce():qe()),lo=g(()=>Ge()?st():ct());vd(dt,{isMobile:!1,get showDuration(){return r(_o)},get position(){return r(_t)},get duration(){return r(lo)},get ref(){return ii.time},set ref(Ko){ii.time=Ko}})};L(Ao,dt=>{r(zi)&&dt(Xi)})}var ki=P(Ao,2);let wn=g(()=>!r(on));Do(ki,{className:"w-max",get disabled(){return r(wn)},get tooltipContent(){return ko},get ref(){return ii.episodes},set ref(dt){ii.episodes=dt},children:(dt,_t)=>{var lo=Ue(),Ko=me(lo);{var co=di=>{yd(di,{get position(){return qe()},get duration(){return ct()},get timeCodes(){return wi}})};L(Ko,di=>{r(on)&&di(co)})}$(dt,lo)},$$slots:{default:!0}}),h(sn);var zn=P(sn,2);$i(zn,21,()=>r(oi),dt=>dt.id,(dt,_t)=>{var lo=Ue(),Ko=me(lo);{var co=Oi=>{mu(Oi,{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 ii[r(_t).id]},set ref($s){ii[r(_t).id]=$s}})},di=Oi=>{let $s=g(()=>!!r(_t).disabled);em(Oi,{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($s)},get onClick(){return r(_t).onClick},get disableMouseupTooltipShow(){return r(_t).disableMouseupTooltipShow},get ref(){return ii[r(_t).id]},set ref(ml){ii[r(_t).id]=ml}})};L(Ko,Oi=>{h1(r(_t))?Oi(co):Oi(di,!1)})}$(dt,lo)}),h(zn),h(Bi),ot(Bi,dt=>St(dt),()=>St()),h(Ne),ot(Ne,dt=>bt(dt),()=>bt());var kr=P(Ne,2);{var bo=dt=>{Sd(dt,{get ref(){return ii.interactiveTimeIndicator},set ref(_t){ii.interactiveTimeIndicator=_t}})};L(kr,dt=>{Co&&dt(bo)})}O(dt=>mt=X(Ne,1,"wrapper-bottom svelte-f6e8ix",null,mt,dt),[()=>({hidden:e.bottomHidden,"controls-hidden":!e.showControls,"no-smooth":e.bottomNoSmooth})]),Xn(sn,"clientWidth",dt=>B(nn,dt)),$(t,pi),U(),o()}import{ChromecastState as y1,PlaybackState as x1}from"@vkontakte/videoplayer-core/es2018";import{noop as $1}from"@vkontakte/videoplayer-shared/es2018";var Oy=A('<div class="icon icon-error-stub svelte-167ouw6"><div class="inner svelte-167ouw6"></div></div>'),Dy=A('<img class="icon svelte-167ouw6" aria-hidden="true"/>'),Hy={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 om(t,e){K(t,Hy);let i=m(e,"disabled",3,!1),o=m(e,"onClick",3,$1),n=g(()=>o()===$1),s=g(()=>r(n)||i()),l=j(!1),d=()=>{B(l,!0)},a=g(()=>r(n)?"btn-full-opacity":"");Vt(t,{get className(){return r(a)},get ariaLabel(){return e.ariaLabel},get click(){return o()},get disabled(){return r(s)},get testId(){return e.testId},children:(p,f)=>{var v=Ue(),u=me(v);{var y=b=>{var S=Oy();$(b,S)},w=b=>{var S=Dy();O(()=>Be(S,"src",e.iconUrl)),Tt("error",S,d),Js(S),$(b,S)};L(u,b=>{r(l)?b(y):b(w,!1)})}$(p,v)},$$slots:{default:!0}})}var Fy=Te('<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 nm(t,e){let i=Ve(e,["$$slots","$$events","$$legacy","children"]);var o=Fy();Pe(o,()=>({xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24","aria-hidden":"true","data-testid":"muted-icon",role:"img",...i}));var n=_(o);xe(n,()=>{var s;return(s=e.children)!=null?s:se}),Se(),h(o),$(t,o)}import{noop as Uy}from"@vkontakte/videoplayer-shared/es2018";var zy=A('<span class="text svelte-6gmlbk"> </span>'),Wy=A('<div aria-hidden="true"><!> <!></div>'),Ky={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 gu(t,e){F(e,!0),K(t,Ky);let i=m(e,"muted",3,!1),o=m(e,"expanded",3,!1),n=m(e,"click",3,Uy),s=m(e,"ref",15,void 0),d=Ee().ui.t,a=g(()=>i()?d("tooltip_volume"):d("tooltip_volume_muted")),p=g(()=>o()?Bs:nm),f=g(()=>o()?"btn-mobile-unmuted":"btn-mobile-muted");Vt(t,{get testId(){return r(f)},get click(){return n()},get ariaLabel(){return r(a)},role:"button",get ref(){return s()},set ref(v){s(v)},children:(v,u)=>{var y=Wy();let w=g(()=>r(p)),b;var S=_(y);yi(S,()=>r(w),(M,I)=>{I(M,{})});var T=P(S,2);{var E=M=>{var I=zy(),k=_(I,!0);h(I),O(R=>_e(k,R),[()=>d("mobile_unmute")]),$(M,I)};L(T,M=>{o()&&M(E)})}h(y),O(M=>b=X(y,1,"container svelte-6gmlbk",null,b,M),[()=>({expanded:o()})]),$(v,y)},$$slots:{default:!0}}),U()}var qy=Te('<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 rm(t,e){let i=Ve(e,["$$slots","$$events","$$legacy","children"]);var o=qy();Pe(o,()=>({xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none",role:"img",...i}));var n=_(o);xe(n,()=>{var s;return(s=e.children)!=null?s:se}),Se(3),h(o),$(t,o)}var Gy={hash:"svelte-tmam00",code:`svg[data-testid="pip-icon--active"] .hidden-active,
252
+ svg[data-testid="pip-icon"] .hidden-not-active {visibility:hidden;opacity:0;}`};function sm(t,e){K(t,Gy);let i=m(e,"isActive",3,!1),o=g(()=>i()?"color: #2688EB;":"color: #fff;"),n=g(()=>i()?"pip-icon--active":"pip-icon");rm(t,{get style(){return r(o)},get"data-testid"(){return r(n)}})}import{noop as Qy}from"@vkontakte/videoplayer-shared/es2018";function am(t,e){F(e,!0);let i=m(e,"ref",15,void 0),o=m(e,"isPictureInPictureActive",3,!1),n=m(e,"click",3,Qy),s=z("menu_pip");Vt(t,{testId:"btn-pip",get ariaLabel(){return s},get click(){return n()},get ref(){return i()},set ref(l){i(l)},children:(l,d)=>{sm(l,{get isActive(){return o()}})},$$slots:{default:!0}}),U()}import{debounceFn as w1}from"@vkontakte/videoplayer-shared/es2018";var Yy=(t,e,i,o)=>{r(e)&&i.onDisabledPlayPrevChapterClick(r(o))},jy=(t,e,i,o)=>{r(e)&&i.onDisabledSeekToInteractiveClick(r(o))},Zy=A("<div><!></div>"),Xy=A("<div><!></div>"),Jy=A("<div><!></div>"),e4=A("<!> <!> <!>",1),t4=A("<div></div> <div><!></div> <div><!> <!> <!> <!> <!> <!></div> <div><!> <!> <!> <!></div> <!>",1),i4=A("<div><!></div>"),o4=A('<div class="wrapper-middle svelte-9xcbwc"><!></div>'),n4=A("<!> <!> <div><!></div>",1),r4=A('<div aria-hidden="true">\xB7</div> <!>',1),s4=A('<!> <!> <div><div><div><div class="controls-group contain svelte-9xcbwc"><!> <!> <!> <!></div> <div class="controls-group svelte-9xcbwc"><!> <!></div></div> <!></div></div> <!>',1),a4={hash:"svelte-9xcbwc",code:`.wrapper-bottom.svelte-9xcbwc {pointer-events:none;position:absolute;z-index:var(--controls-container-z-index);width:100%;bottom:0;left:0;height:var(--controls-gradient-height);background:var(--controls-gradient);transition:transform var(--controls-transition-duration) var(--controls-transition-fn);display:flex;flex-direction:column;justify-content:flex-end;box-sizing:border-box;padding:0 4px 8px;}.wrapper-bottom.svelte-9xcbwc > :where(.svelte-9xcbwc) {pointer-events:auto;}.wrapper-bottom.ads-timeline-mobile.svelte-9xcbwc {height:9px;padding:0 4px 4px;}.wrapper-middle.svelte-9xcbwc {position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);transition:opacity var(--controls-transition-duration);display:flex;align-items:center;z-index:var(--controls-container-z-index);}.wrapper-top-right.svelte-9xcbwc {position:absolute;top:4px;right:8px;transition:opacity var(--controls-transition-duration);display:flex;z-index:var(--controls-container-z-index);}.wrapper-top-left.svelte-9xcbwc {position:absolute;top:4px;left:8px;z-index:var(--controls-container-z-index);}.wrapper-middle-left.svelte-9xcbwc,
253
253
  .wrapper-middle-left-second.svelte-9xcbwc,
254
254
  .wrapper-middle-right.svelte-9xcbwc {position:absolute;top:50%;transform:translateY(-50%);height:44px;width:44px;border-radius:12px;background-color:rgba(0, 0, 0, 0.56);transition:opacity var(--controls-transition-duration);display:flex;align-items:center;justify-content:center;}.wrapper-middle-left.svelte-9xcbwc {left:12px;}.wrapper-middle-left-second.svelte-9xcbwc {left:64px;}.wrapper-middle-right.svelte-9xcbwc {right:12px;}.controls.svelte-9xcbwc {width:100%;display:flex;align-items:center;height:var(--controls-height);white-space:nowrap;font-size:13px;transition:transform var(--controls-transition-duration) var(--controls-transition-fn);will-change:transform;padding:0 4px;box-sizing:border-box;justify-content:space-between;}.controls-group.svelte-9xcbwc {display:flex;}.controls-group.contain.svelte-9xcbwc {min-width:0;}.controls-group.svelte-9xcbwc > *:not(:first-child) {margin-left:8px;}.hidden.svelte-9xcbwc {visibility:hidden;opacity:0;}.controls-hidden.svelte-9xcbwc {visibility:visible; /* if hidden then slider will lose focus (if was focused) */transform:translateY(100%);}.wrapper-bottom.no-smooth.svelte-9xcbwc {transition:none;}.overlay-mobile.svelte-9xcbwc {position:absolute;top:0;left:0;width:100%;height:100%;background-color:rgba(0, 0, 0, 0.3);pointer-events:none;transition:opacity var(--controls-transition-duration);}
255
255
 
@@ -258,7 +258,7 @@ Try switching the\xA0quality to\xA0Auto.`},Ih=w_;var fs=new Map;fs.set(Ph.EN,Ih)
258
258
  }
259
259
 
260
260
  @media screen and (orientation: landscape) {.wrapper-top-left.fullscreen.svelte-9xcbwc {top:12px;left:44px;}.wrapper-top-right.fullscreen.svelte-9xcbwc {top:12px;right:44px;}.wrapper-middle-left.fullscreen.svelte-9xcbwc {left:44px;}.wrapper-middle-left-second.fullscreen.svelte-9xcbwc {left:96px;}.wrapper-middle-right.fullscreen.svelte-9xcbwc {right:44px;}.controls-wrapper.fullscreen.svelte-9xcbwc {position:absolute;left:36px;right:36px;bottom:32px;width:calc(100% - 72px);}
261
- }`};function am(t,e){var xr,Wr;D(e,!0),z(t,a4);let[i,o]=De(),n=()=>C(un,"$seekToInteractiveDisabledTooltip$",i),r=()=>C(Vo,"$disabledControls$",i),l=()=>C(At,"$playbackState$",i),d=()=>C(ft,"$adPlaybackState",i),a=()=>C(se,"$isEnded$",i),p=()=>C(ut,"$playerSize",i),f=()=>C(Re,"$scrubbingInProgress",i),v=()=>C(gt,"$chromecastState$",i),u=()=>C(kt,"$isPictureInPictureActive",i),$=()=>C(Mt,"$pictureInPictureType$",i),w=()=>C(tt,"$mobileNotReportControlHidden$",i),y=()=>C(wi,"$chromecastHidden",i),S=()=>C(Qt,"$playerPhase",i),T=()=>C(uo,"$pipHidden",i),k=()=>C(Bt,"$currentGridType$",i),A=()=>C(ci,"$vkLogoHidden",i),I=()=>C(Oe,"$isLive$",i),E=()=>C(pi,"$settingsMenuVisible",i),V=()=>C(Ye,"$isRewindableLive$",i),K=()=>C(Ae,"$isActiveLive$",i),W=()=>C(po,"$isInteractiveTime$",i),U=()=>C(me,"$isAudioAvailable$",i),Y=()=>C(No,"$settingButtonRef$",i),ne=()=>C(q,"$startedByKeyboard$",i),G=()=>C(nt,"$isFullscreen",i),ce=()=>C(ni,"$mobileUnmuteButtonVisible",i),le=()=>C(ii,"$volumeHidden",i),we=()=>C(ze,"$muted$",i),Ve=()=>C(Je,"$mobileUnmuteButtonExpanded",i),ve=()=>C(vi,"$additionalButtons$",i),ae=()=>C(xo,"$autoplayNextToggleHidden",i),Le=()=>C(Ci,"$crashed$",i),te=()=>C(jt,"$settingsHidden",i),N=()=>C(Ti,"$graphIsOpened$",i),Be=()=>C(Kt,"$adPosition",i),ye=()=>C(di,"$adDuration",i),ge=()=>C(ee,"$position$",i),de=()=>C(Nt,"$duration$",i),ue=m(e,"playerControlsWrapperRef",15,void 0),xe=m(e,"playerControlsRef",15,void 0),Z=m(e,"isAds",3,!1),qe=m(e,"logoTargetUrl",3,""),Xe=m(e,"isOneVideoPlaylist",3,!1),ke=m(e,"customFullscreenSupported",3,!0),X=Ee(),Te=co(),Ke=Ft(),rt=X.actions.internal.toggleMuted,ct=X.actions.internal.togglePlay,ht=X.actions.internal.pause,xt=X.actions.internal.prevVideoClick,Qe=X.actions.internal.nextVideoClick,qt=(xr=X.callbacks)==null?void 0:xr.onAudioDoesNotExistHint,Yt=(Wr=X.callbacks)==null?void 0:Wr.onAudioDisabledHint,Qt=X.playerPhase,Nt=X.state.duration$,ee=X.state.positionWithScrubbing$,At=X.state.playbackState$,me=X.state.isAudioAvailable$,_e=X.state.isAudioDisabled,se=X.state.isEnded$,Oe=X.state.isLive$,ze=X.state.muted$,Ae=X.state.isActiveLive$,Ye=X.state.isRewindableLive$,Re=X.ui.scrubbingInProgress,tt=X.ui.mobileNotReportControlHidden$,{isActive$:kt,type$:Mt}=Te.pictureInPicture$,Je=X.ui.mobileUnmuteButtonExpanded,ni=X.ui.mobileUnmuteButtonVisible,pi=X.ui.settingsMenu.visible$,at=X.ui.settingsMenu.openedByBtnKeyboard$,ei=X.ui.controls,{volume:ii,vkLogo:ci,autoplayNextToggle:xo,pip:uo,settings:jt,chromecast:wi}=X.ui.hiddenControls,Zi=X.actions.internal.getVideoEpisodes(),$t=X.webApi.pictureInPictureApi,gt=X.state.chromecastState$,Ci=X.state.crashed$,Vo=ei.disabledControls$,q=X.ui.startedByKeyboard$,Bt=X.ui.currentGridType$,di=X.ads.duration,Kt=X.ads.position,ft=X.ads.playbackState,nt=X.ui.isFullscreen,ut=X.ui.playerSize,vi=X.ui.additionalButtonsDeprecated$,Ot=X.actions.internal.getVideoElement,Xn=X.actions.internal.replayInteractive,Si=X.state.isInteractive,po=X.state.isInteractiveTime$,Ai=X.state.showInteractiveGraph,bt=X.state.showSeekToInteractive,Mi=X.state.showPlayPrevChapter,Go=X.state.showInteractiveTimeIndicator,un=Te.seekToInteractiveDisabledTooltip$,Ti=Te.graphIsOpened$,Xi=X.ui.controlBlocks,Ei=h(()=>F(X.state.playPrevChapterDisabledTooltip)),Yo=h(()=>F(n())),Mn=h(()=>r().has("EPISODE_BUTTON")),wo=h(()=>r().has("GRAPH_BUTTON")),Ro=h(()=>r().has("SEEK_TO_INTERACTIVE_BUTTON")),fo=h(()=>r().has("PLAY_BUTTON")),mo=h(()=>r().has("REPLAY_BUTTON")),jo=h(()=>r().has("PLAY_PREV_CHAPTER_BUTTON")),Ln=h(()=>l()===x1.PLAYING),Jn=h(()=>d()==="paused"),er=h(()=>a()&&!Z()&&!Si),tr=h(()=>!a()||Z()),Or=h(()=>e.showNextPrevButtons&&!Z()&&e.prevButtonActive),Vn=h(()=>e.showNextPrevButtons&&!Z()&&e.nextButtonActive),rs=h(()=>p().width>300),Dr=h(()=>p().width>400),Hi=h(f),pn=h(()=>v()!==y1.NOT_AVAILABLE&&!(u()&&$()===1)&&!w()&&!Si&&!y()),Zo=h(()=>S()==="LiveWaitingStart"),fn=h(()=>!!$t&&v()!==y1.CONNECTED&&!w()&&($()===1&&s(Zo)||!s(Zo))&&!s(Hi)&&!Si&&!T()),vo=h(()=>!s(Hi)&&Yi(k(),"s")),mn=h(()=>!e.logoHidden&&p().width>350&&!A()),Rn=h(()=>Ke.features.fullscreen&&!(u()&&$()===1)&&(Si?ke():!0)&&!s(Hi)),Hr=h(()=>(!I()||Z())&&p().width>260&&!s(Hi)&&!(Ke.features.interactiveHideTime&&Si)),gr=h(()=>E()||e.showControls),Fr=h(()=>!Z()&&!I()&&!!(Zi!=null&&Zi.length)&&s(rs)&&!s(Mn)&&!s(Hi)),vn=h(()=>!V()||!!K()),Nn=h(()=>Ai&&Yi(k(),"m")),it=oi({}),Ut=oi({}),Bn=w1(cl,260),Fi=w1(fu,260);We(()=>{p(),W(),Bn(Ot(),ei,it,e.showControls),Fi(Ot(),Xi,Ut,e.showControls)});let ir=()=>X.actions.internal.toggleChromecast();async function On(){$t!=null&&$t.isActive()?await($t==null?void 0:$t.exit()):await($t==null?void 0:$t.request())}function gn(){(!_e&&U()||Z())&&ni.set(!1),Vs({isAudioDisabled:_e,audioDisabledHintCallback:Yt,isAudioAvailable:U(),audioIsNotExistHintCallback:qt,isAds:Z()})&&rt()}let Ui=j(""),Xo=(et,Pt)=>{if(!et){B(Ui,F("tooltip_live"),!0);return}Pt&&Pt===x1.PAUSED&&B(Ui,F("tooltip_play"),!0)};We(()=>{Xo(s(vn),l())});let No=re();We(()=>{Y()&&nl(Y(),E(),at)}),We(()=>{uu(q,ne(),it.playButton)});var hn=s4(),hr=fe(hn);{var _r=et=>{var Pt=t4(),gi=fe(Pt);let So;var eo=P(gi,2);let go;var ho=_(eo);{var on=Fe=>{let Tt=h(()=>U()&&!_e&&Ve());mu(Fe,{get muted(){return we()},get expanded(){return s(Tt)},click:gn,get ref(){return it.volume},set ref(hi){it.volume=hi}})};L(ho,Fe=>{(!U()||ce())&&!le()&&Fe(on)})}g(eo),ot(eo,Fe=>Ut.topLeft=Fe,()=>Ut==null?void 0:Ut.topLeft);var _o=P(eo,2);let zi;var Wi=_(_o);$i(Wi,1,ve,({iconUrl:Fe,ariaLabel:Tt,testId:hi,onClick:Ho,tooltip:Vi})=>Fe,(Fe,Tt)=>{let hi=()=>s(Tt).iconUrl,Ho=()=>s(Tt).ariaLabel,Vi=()=>s(Tt).testId,Un=()=>s(Tt).onClick,Tr=()=>s(Tt).tooltip,Fo=h(()=>{var Ki;return(Ki=Ho())!=null?Ki:Tr()});im(Fe,{get iconUrl(){return hi()},get ariaLabel(){return s(Fo)},get testId(){return Vi()},get onClick(){return Un()}})});var Oo=P(Wi,2);{var to=Fe=>{Sd(Fe,{get ref(){return it.autoplayNextToggle},set ref(Tt){it.autoplayNextToggle=Tt}})};L(Oo,Fe=>{e.showAutoplayNext&&!Xe()&&!ae()&&Fe(to)})}var Do=P(Oo,2);{var yn=Fe=>{gd(Fe,{isMobile:!0,click:ir,get state(){return v()},get ref(){return it.chromecast},set ref(Tt){it.chromecast=Tt}})};L(Do,Fe=>{s(pn)&&Fe(yn)})}var wr=P(Do,2);{var qr=Fe=>{sm(Fe,{click:On,get isPictureInPictureActive(){return u()},get ref(){return it.pip},set ref(Tt){it.pip=Tt}})};L(wr,Fe=>{s(fn)&&Fe(qr)})}var Kr=P(wr,2);{var sr=Fe=>{ll(Fe,{get ref$(){return No}})};L(Kr,Fe=>{Le()&&!te()&&Fe(sr)})}var Cr=P(Kr,2);{var xn=Fe=>{vd(Fe,{get click(){return ht},get targetUrl(){return qe()},get logoClickable(){return e.logoClickable},get ref(){return it.vkLogo},set ref(Tt){it.vkLogo=Tt}})};L(Cr,Fe=>{s(mn)&&Fe(xn)})}g(_o),ot(_o,Fe=>Ut.topRight=Fe,()=>Ut==null?void 0:Ut.topRight);var qi=P(_o,2);let Fn;var ar=_(qi);{var Sr=Fe=>{let Tt=h(()=>xt.bind(null,!0));ba(Fe,{get click(){return s(Tt)},type:"prev",isMobile:!0,get ref(){return it.prevButton},set ref(hi){it.prevButton=hi}})};L(ar,Fe=>{s(Or)&&Fe(Sr)})}var lr=P(ar,2);{var je=Fe=>{pl(Fe,{get disabled(){return s(fo)},get click(){return ct},isMobile:!0,get isPlaying(){return s(Ln)},get ref(){return it.playButton},set ref(Tt){it.playButton=Tt}})};L(lr,Fe=>{s(tr)&&Fe(je)})}var Zt=P(lr,2);{var pe=Fe=>{ul(Fe,{get disabled(){return s(mo)},get click(){return ct},isMobile:!0,get ref(){return it.replayButton},set ref(Tt){it.replayButton=Tt}})};L(Zt,Fe=>{s(er)&&Fe(pe)})}var yt=P(Zt,2);{var ri=Fe=>{let Tt=h(()=>Qe.bind(null,!0));ba(Fe,{get click(){return s(Tt)},type:"next",isMobile:!0,get ref(){return it.nextButton},set ref(hi){it.nextButton=hi}})};L(yt,Fe=>{s(Vn)&&Fe(ri)})}g(qi),ot(qi,Fe=>Ut.middle=Fe,()=>Ut==null?void 0:Ut.middle);var Li=P(qi,2);{var bi=Fe=>{var Tt=e4(),hi=fe(Tt);{var Ho=Ki=>{var Ri=Zy();let nn;Ri.__click=[Yy,jo,e,Ei];var dr=_(Ri);let cr=h(()=>!e.showControls);Cd(dr,{get hidden(){return s(cr)},get disabled(){return s(jo)},get click(){return e.playPrevChapter},get ref(){return it.playPrevChapterButton},set ref(To){it.playPrevChapterButton=To}}),g(Ri),O(To=>nn=J(Ri,1,"wrapper-middle-left svelte-9xcbwc",null,nn,To),[()=>({fullscreen:G(),hidden:!e.showControls})]),b(Ki,Ri)};L(hi,Ki=>{Mi&&Ki(Ho)})}var Vi=P(hi,2);{var Un=Ki=>{var Ri=Xy();let nn;var dr=_(Ri);let cr=h(()=>!e.showControls&&!N());Ed(dr,{get hidden(){return s(cr)},get disabled(){return s(wo)},get click(){return Ti.toggle},get graphIsOpened(){return N()},get ref(){return it.interactiveGraphButton},set ref(To){it.interactiveGraphButton=To}}),g(Ri),O(To=>nn=J(Ri,1,Hl(Mi?"wrapper-middle-left-second":"wrapper-middle-left"),"svelte-9xcbwc",nn,To),[()=>({fullscreen:G(),hidden:!e.showControls&&!N()})]),b(Ki,Ri)};L(Vi,Ki=>{s(Nn)&&Ki(Un)})}var Tr=P(Vi,2);{var Fo=Ki=>{var Ri=Jy();let nn;Ri.__click=[jy,Ro,e,Yo];var dr=_(Ri);let cr=h(()=>!e.showControls);Td(dr,{get hidden(){return s(cr)},get disabled(){return s(Ro)},get click(){return e.seekToInteractive},get ref(){return it.seekToInteractiveButton},set ref(To){it.seekToInteractiveButton=To}}),g(Ri),O(To=>nn=J(Ri,1,"wrapper-middle-right svelte-9xcbwc",null,nn,To),[()=>({fullscreen:G(),hidden:!e.showControls})]),b(Ki,Ri)};L(Tr,Ki=>{bt&&Ki(Fo)})}b(Fe,Tt)};L(Li,Fe=>{Si&&!f()&&Fe(bi)})}O((Fe,Tt,hi,Ho)=>{So=J(gi,1,"overlay-mobile svelte-9xcbwc",null,So,Fe),go=J(eo,1,"wrapper-top-left svelte-9xcbwc",null,go,Tt),zi=J(_o,1,"wrapper-top-right svelte-9xcbwc",null,zi,hi),Fn=J(qi,1,"wrapper-middle svelte-9xcbwc",null,Fn,Ho)},[()=>({hidden:!s(gr)}),()=>({hidden:!e.showControls,fullscreen:G()}),()=>({hidden:!e.showControls&&!w(),fullscreen:G()}),()=>({hidden:!e.showControls||f()||e.endScreenShown&&e.showNextPrevButtons})]),b(et,Pt)};L(hr,et=>{Z()||et(_r)})}var _n=P(hr,2);{var Ur=et=>{var Pt=n4(),gi=fe(Pt);{var So=zi=>{var Wi=i4();let Oo;var to=_(Wi);mu(to,{get muted(){return we()},expanded:!1,click:gn,get ref(){return it.volume},set ref(Do){it.volume=Do}}),g(Wi),O(Do=>Oo=J(Wi,1,"wrapper-top-right svelte-9xcbwc",null,Oo,Do),[()=>({fullscreen:G()})]),b(zi,Wi)};L(gi,zi=>{ce()&&zi(So)})}var eo=P(gi,2);{var go=zi=>{var Wi=o4(),Oo=_(Wi);let to=h(()=>!s(Jn));pl(Oo,{get disabled(){return s(fo)},get click(){return ct},isMobile:!0,get isPlaying(){return s(to)},get ref(){return it.playButton},set ref(Do){it.playButton=Do}}),g(Wi),b(zi,Wi)};L(eo,zi=>{s(Jn)&&zi(go)})}var ho=P(eo,2);let on;var _o=_(ho);hd(_o,{get position(){return Be()},get duration(){return ye()}}),g(ho),O(zi=>on=J(ho,1,"wrapper-bottom ads-timeline-mobile svelte-9xcbwc",null,on,zi),[()=>({fullscreen:G()})]),b(et,Pt)};L(_n,et=>{Z()&&d()!=="inactive"&&et(Ur)})}var bn=P(_n,2);let zr;var or=_(bn);let br;var Jo=_(or);J(Jo,1,"controls svelte-9xcbwc",null,{},{mobile:!0});var zt=_(Jo),Co=_(zt);{var nr=et=>{Lo(et,{get disabled(){return s(mo)},get ref(){return it.replayButton},set ref(Pt){it.replayButton=Pt},children:(Pt,gi)=>{ul(Pt,{get disabled(){return s(mo)},get click(){return Xn}})},$$slots:{default:!0}})};L(Co,et=>{Si&&et(nr)})}var Dn=P(Co,2);{var rr=et=>{Lo(et,{get ref(){return it.liveButton},set ref(Pt){it.liveButton=Pt},children:(Pt,gi)=>{Id(Pt,{get isLiveActive(){return s(vn)},isMobile:!0,get ariaLabel(){return s(Ui)}})},$$slots:{default:!0}})};L(Dn,et=>{!Z()&&I()&&et(rr)})}var _i=P(Dn,2);{var $r=et=>{let Pt=h(()=>Z()?Be():ge()),gi=h(()=>Z()?ye():de());pd(et,{get showDuration(){return s(Dr)},get position(){return s(Pt)},get duration(){return s(gi)},isMobile:!0,get ref(){return it.time},set ref(So){it.time=So}})};L(_i,et=>{s(Hr)&&et($r)})}var St=P(_i,2);let ai=h(()=>!s(Fr));Lo(St,{className:"w-max",get disabled(){return s(ai)},get ref(){return it.episodes},set ref(et){it.episodes=et},children:(et,Pt)=>{var gi=Ue(),So=fe(gi);{var eo=go=>{var ho=r4(),on=P(fe(ho),2);_d(on,{get position(){return ge()},get duration(){return de()},get timeCodes(){return Zi}}),b(go,ho)};L(So,go=>{s(Fr)&&go(eo)})}b(et,gi)},$$slots:{default:!0}}),g(zt),ot(zt,et=>Ut.bottomRight=et,()=>Ut==null?void 0:Ut.bottomRight);var en=P(zt,2),tn=_(en);{var $n=et=>{Lo(et,{get ref(){return it.settings},set ref(Pt){it.settings=Pt},children:(Pt,gi)=>{ll(Pt,{get ref$(){return No}})},$$slots:{default:!0}})};L(tn,et=>{s(vo)&&et($n)})}var Bo=P(tn,2);{var lo=et=>{Lo(et,{get ref(){return it.fullscreen},set ref(Pt){it.fullscreen=Pt},children:(Pt,gi)=>{md(Pt,{get click(){return e.toggleFullscreen},get isFullscreen(){return G()}})},$$slots:{default:!0}})};L(Bo,et=>{s(Rn)&&et(lo)})}g(en),ot(en,et=>Ut.bottomRight=et,()=>Ut==null?void 0:Ut.bottomRight),g(Jo),ot(Jo,et=>xe(et),()=>xe());var Ji=P(Jo,2);ha(Ji,{get isAds(){return Z()},get canRewindLive(){return e.canRewindLive},get isRewindableLive(){return V()},get ref(){return it.timeline},set ref(et){it.timeline=et}}),g(or),g(bn),ot(bn,et=>ue(et),()=>ue());var Hn=P(bn,2);{var yr=et=>{xd(et,{get ref(){return it.interactiveTimeIndicator},set ref(Pt){it.interactiveTimeIndicator=Pt}})};L(Hn,et=>{Go&&et(yr)})}O((et,Pt)=>{zr=J(bn,1,"wrapper-bottom svelte-9xcbwc",null,zr,et),br=J(or,1,"controls-wrapper svelte-9xcbwc",null,br,Pt)},[()=>({hidden:e.bottomHidden,"controls-hidden":!e.showControls,"no-smooth":e.bottomNoSmooth,mobile:!0}),()=>({fullscreen:G()})]),b(t,hn),H(),o()}lt(["click"]);function kd(t,e){D(e,!0);let[i,o]=De(),n=()=>C(T,"$isMobile",i),r=m(e,"bottomNoSmooth",3,!1),l=m(e,"playerControlsWrapperRef",15,void 0),d=m(e,"playerControlsRef",15,void 0),a=m(e,"isAds",3,!1),p=m(e,"logoTargetUrl",3,""),f=m(e,"showAutoplayNext",3,!1),v=m(e,"isOneVideoPlaylist",3,!1),u=m(e,"customFullscreenSupported",3,!0),$=m(e,"endScreenShown",3,!1),w=m(e,"onDisabledPlayPrevChapterClick",3,C1),y=m(e,"onDisabledSeekToInteractiveClick",3,C1),T=Ee().ui.isMobile,k=j(!1);Rt(()=>{let V=setTimeout(()=>B(k,!0),0);return()=>clearTimeout(V)});var A=Ue(),I=fe(A);{var E=V=>{var K=Ue(),W=fe(K);{var U=ne=>{am(ne,{get bottomHidden(){return e.bottomHidden},get bottomNoSmooth(){return r()},get showControls(){return e.showControls},get isAds(){return a()},get canRewindLive(){return e.canRewindLive},get logoClickable(){return e.logoClickable},get logoHidden(){return e.logoHidden},get logoTargetUrl(){return p()},get showAutoplayNext(){return f()},get showNextPrevButtons(){return e.showNextPrevButtons},get nextButtonActive(){return e.nextButtonActive},get prevButtonActive(){return e.prevButtonActive},get isOneVideoPlaylist(){return v()},get customFullscreenSupported(){return u()},get endScreenShown(){return $()},get toggleFullscreen(){return e.toggleFullscreen},get seekToInteractive(){return e.seekToInteractive},get playPrevChapter(){return e.playPrevChapter},get onDisabledPlayPrevChapterClick(){return w()},get onDisabledSeekToInteractiveClick(){return y()},get playerControlsWrapperRef(){return l()},set playerControlsWrapperRef(G){l(G)},get playerControlsRef(){return d()},set playerControlsRef(G){d(G)}})},Y=ne=>{tm(ne,{get bottomHidden(){return e.bottomHidden},get bottomNoSmooth(){return r()},get showControls(){return e.showControls},get isAds(){return a()},get canRewindLive(){return e.canRewindLive},get logoClickable(){return e.logoClickable},get logoHidden(){return e.logoHidden},get logoTargetUrl(){return p()},get isOneVideoPlaylist(){return v()},get showAutoplayNext(){return f()},get showNextPrevButtons(){return e.showNextPrevButtons},get nextButtonActive(){return e.nextButtonActive},get prevButtonActive(){return e.prevButtonActive},get customFullscreenSupported(){return u()},get toggleFullscreen(){return e.toggleFullscreen},get seekToInteractive(){return e.seekToInteractive},get playPrevChapter(){return e.playPrevChapter},get playerControlsWrapperRef(){return l()},set playerControlsWrapperRef(G){l(G)},get playerControlsRef(){return d()},set playerControlsRef(G){d(G)}})};L(W,ne=>{n()?ne(U):ne(Y,!1)})}b(V,K)};L(I,V=>{s(k)&&V(E)})}b(t,A),H(),o()}var l4=Se('<svg><!><g filter="url(#a)"><path fill="var(--btn-color, #fff)" d="M15.537 10.534a1.157 1.157 0 0 0 .003 1.96l7.658 4.823c.78.491 1.798-.065 1.798-.981v-3.3c7.265.512 13 6.568 13 13.964 0 7.732-6.268 14-14 14-5.98 0-11.088-3.75-13.093-9.032a1.5 1.5 0 0 0-2.805 1.064C10.531 39.441 16.73 44 23.996 44c9.39 0 17-7.611 17-17 0-9.053-7.076-16.453-16-16.971V6.664c0-.918-1.021-1.473-1.8-.98z"></path><path stroke="#000" stroke-opacity=".12" stroke-width=".5" d="M15.404 10.322a1.407 1.407 0 0 0 .003 2.384l7.657 4.823c.944.594 2.182-.076 2.182-1.193v-3.03c7.008.631 12.5 6.522 12.5 13.694 0 7.594-6.156 13.75-13.75 13.75-5.873 0-10.89-3.683-12.86-8.871a1.75 1.75 0 1 0-3.272 1.242c2.469 6.503 8.758 11.129 16.132 11.129 9.527 0 17.25-7.723 17.25-17.25 0-9.107-7.056-16.565-16-17.205V6.664c0-1.118-1.241-1.788-2.184-1.19z"></path></g><defs><filter id="a" width="43.996" height="49.5" x="2.5" y="0" color-interpolation-filters="sRGB" filterUnits="userSpaceOnUse"><feFlood flood-opacity="0" result="BackgroundImageFix"></feFlood><feColorMatrix in="SourceAlpha" result="hardAlpha" values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0"></feColorMatrix><feOffset></feOffset><feGaussianBlur stdDeviation="2.5"></feGaussianBlur><feColorMatrix values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.16 0"></feColorMatrix><feBlend in2="BackgroundImageFix" result="effect1_dropShadow_2260_100684"></feBlend><feBlend in="SourceGraphic" in2="effect1_dropShadow_2260_100684" result="shape"></feBlend></filter></defs></svg>');function lm(t,e){let i=Me(e,["$$slots","$$events","$$legacy","children"]);var o=l4();Ie(o,()=>({xmlns:"http://www.w3.org/2000/svg",width:"48",height:"51",fill:"none","aria-hidden":"true","data-testid":"seek-icon",role:"img",...i}));var n=_(o);be(n,()=>{var r;return(r=e.children)!=null?r:oe}),Ce(2),g(o),b(t,o)}function dm(t,e){let i=m(e,"reversed",3,!1),o=h(()=>i()?"transform: scaleX(-1);":void 0);lm(t,{get style(){return s(o)}})}var d4=Se('<svg><!><g clip-path="url(#c)" filter="url(#a)"><path fill="var(--btn-color, #fff)" fill-rule="evenodd" d="M28.167 7h-8.334c-2.463 0-4.404 0-5.966.128-1.594.13-2.925.4-4.134 1.016a10.5 10.5 0 0 0-4.589 4.59c-.616 1.208-.886 2.54-1.016 4.133C4 18.429 4 20.37 4 22.833v2.334c0 2.463 0 4.404.128 5.966.13 1.594.4 2.925 1.016 4.134a10.5 10.5 0 0 0 4.59 4.589c1.208.616 2.54.886 4.133 1.016 1.562.128 3.502.128 5.966.128h8.334c2.463 0 4.404 0 5.966-.128 1.594-.13 2.925-.4 4.134-1.016a10.5 10.5 0 0 0 4.589-4.59c.616-1.208.886-2.54 1.016-4.133.128-1.562.128-3.502.128-5.966v-2.334c0-2.463 0-4.404-.128-5.966-.13-1.594-.4-2.925-1.016-4.134a10.5 10.5 0 0 0-4.59-4.589c-1.208-.616-2.54-.886-4.133-1.016C32.571 7 30.63 7 28.167 7M13.5 28a1.5 1.5 0 0 0 0 3h11a1.5 1.5 0 0 0 0-3zM12 22a1.5 1.5 0 0 1 1.5-1.5h4a1.5 1.5 0 0 1 0 3h-4A1.5 1.5 0 0 1 12 22m18.5 6a1.5 1.5 0 0 0 0 3h4a1.5 1.5 0 0 0 0-3zM22 22a1.5 1.5 0 0 1 1.5-1.5h11a1.5 1.5 0 0 1 0 3h-11A1.5 1.5 0 0 1 22 22" clip-rule="evenodd"></path><path stroke="#000" stroke-opacity=".12" stroke-width=".5" d="M28.167 6.75h-8.344c-2.455 0-4.405 0-5.977.128-1.609.132-2.976.407-4.226 1.044a10.75 10.75 0 0 0-4.698 4.698c-.637 1.25-.912 2.617-1.044 4.226-.128 1.572-.128 3.522-.128 5.977v2.354c0 2.455 0 4.405.128 5.977.132 1.609.407 2.976 1.044 4.226a10.75 10.75 0 0 0 4.698 4.698c1.25.637 2.617.912 4.226 1.044 1.572.128 3.522.128 5.977.128h8.354c2.455 0 4.404 0 5.977-.128 1.609-.132 2.976-.407 4.226-1.044a10.75 10.75 0 0 0 4.698-4.698c.637-1.25.912-2.617 1.044-4.226.128-1.573.128-3.522.128-5.977v-2.354c0-2.455 0-4.405-.128-5.977-.132-1.609-.407-2.976-1.044-4.226a10.75 10.75 0 0 0-4.698-4.698c-1.25-.637-2.617-.912-4.226-1.044-1.572-.128-3.522-.128-5.977-.128zM12.25 29.5c0-.69.56-1.25 1.25-1.25h11a1.25 1.25 0 1 1 0 2.5h-11c-.69 0-1.25-.56-1.25-1.25Zm0-7.5c0-.69.56-1.25 1.25-1.25h4a1.25 1.25 0 1 1 0 2.5h-4c-.69 0-1.25-.56-1.25-1.25Zm17 7.5c0-.69.56-1.25 1.25-1.25h4a1.25 1.25 0 1 1 0 2.5h-4c-.69 0-1.25-.56-1.25-1.25Zm-7-7.5c0-.69.56-1.25 1.25-1.25h11a1.25 1.25 0 1 1 0 2.5h-11c-.69 0-1.25-.56-1.25-1.25Z"></path></g><defs><clipPath id="c"><path fill="var(--btn-color, #fff)" d="M0 0h48v48H0z"></path></clipPath><filter id="a" width="51" height="45" x="-1.5" y="1.5" color-interpolation-filters="sRGB" filterUnits="userSpaceOnUse"><feFlood flood-opacity="0" result="BackgroundImageFix"></feFlood><feColorMatrix in="SourceAlpha" result="hardAlpha" values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0"></feColorMatrix><feOffset></feOffset><feGaussianBlur stdDeviation="2.5"></feGaussianBlur><feColorMatrix values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.16 0"></feColorMatrix><feBlend in2="BackgroundImageFix" result="effect1_dropShadow_2260_104204"></feBlend><feBlend in="SourceGraphic" in2="effect1_dropShadow_2260_104204" result="shape"></feBlend></filter></defs></svg>');function cm(t,e){let i=Me(e,["$$slots","$$events","$$legacy","children"]);var o=d4();Ie(o,()=>({xmlns:"http://www.w3.org/2000/svg",width:"48",height:"48",fill:"none","aria-hidden":"true","data-testid":"subtitles-on-icon",role:"img",...i}));var n=_(o);be(n,()=>{var r;return(r=e.children)!=null?r:oe}),Ce(2),g(o),b(t,o)}var c4=Se('<svg><!><g clip-path="url(#c)" filter="url(#a)"><path fill="var(--btn-color, #fff)" fill-rule="evenodd" d="M6.56 4.44a1.5 1.5 0 1 0-2.12 2.12l3.088 3.09a10.5 10.5 0 0 0-2.384 3.083c-.616 1.21-.886 2.54-1.016 4.134C4 18.429 4 20.369 4 22.833v2.334c0 2.463 0 4.404.128 5.966.13 1.594.4 2.925 1.016 4.134a10.5 10.5 0 0 0 4.59 4.589c1.208.616 2.54.886 4.133 1.016 1.562.128 3.502.128 5.966.128h8.334c2.463 0 4.404 0 5.966-.128 1.437-.117 2.66-.348 3.773-.844l3.533 3.533a1.5 1.5 0 0 0 2.122-2.122l-37-37ZM13.5 28a1.5 1.5 0 0 0 0 3h11a1.5 1.5 0 0 0 0-3zM12 22a1.5 1.5 0 0 1 1.5-1.5h4a1.5 1.5 0 0 1 0 3h-4A1.5 1.5 0 0 1 12 22" clip-rule="evenodd"></path><path fill="var(--btn-color, #fff)" d="M34.5 23.5h-4.639l12.552 12.551q.237-.381.443-.784c.616-1.21.886-2.54 1.016-4.134.128-1.562.128-3.502.128-5.966v-2.334c0-2.463 0-4.404-.128-5.966-.13-1.594-.4-2.925-1.016-4.134a10.5 10.5 0 0 0-4.59-4.589c-1.208-.616-2.54-.886-4.133-1.016C32.571 7 30.63 7 28.167 7h-8.334c-2.463 0-4.404 0-5.966.128l-.347.03L26.86 20.5h7.64a1.5 1.5 0 0 1 0 3"></path><path stroke="#000" stroke-opacity=".12" stroke-width=".5" d="M29.861 23.25h-.603l.427.427 12.55 12.551.223.223.167-.268q.243-.39.453-.803c.637-1.25.912-2.617 1.044-4.226.128-1.573.128-3.522.128-5.977v-2.354c0-2.455 0-4.405-.128-5.977-.132-1.609-.407-2.976-1.044-4.226a10.75 10.75 0 0 0-4.698-4.698c-1.25-.637-2.617-.912-4.226-1.044-1.572-.128-3.522-.128-5.977-.128h-8.354c-2.455 0-4.405 0-5.977.128q-.177.014-.35.032l-.527.051.374.374 13.341 13.342.074.073H34.5a1.25 1.25 0 1 1 0 2.5zM6.737 4.263a1.75 1.75 0 0 0-2.474 2.474l2.903 2.904a10.8 10.8 0 0 0-2.244 2.979c-.637 1.25-.912 2.617-1.044 4.226-.128 1.572-.128 3.522-.128 5.977v2.354c0 2.455 0 4.405.128 5.977.132 1.609.407 2.976 1.044 4.226a10.75 10.75 0 0 0 4.698 4.698c1.25.637 2.617.912 4.226 1.044 1.572.128 3.522.128 5.977.128h8.354c2.455 0 4.404 0 5.977-.128 1.384-.114 2.59-.333 3.696-.797l3.413 3.412a1.75 1.75 0 1 0 2.474-2.474zM12.25 29.5c0-.69.56-1.25 1.25-1.25h11a1.25 1.25 0 1 1 0 2.5h-11c-.69 0-1.25-.56-1.25-1.25Zm0-7.5c0-.69.56-1.25 1.25-1.25h4a1.25 1.25 0 1 1 0 2.5h-4c-.69 0-1.25-.56-1.25-1.25Z"></path></g><defs><clipPath id="c"><path fill="var(--btn-color, #fff)" d="M0 0h48v48H0z"></path></clipPath><filter id="a" width="51" height="51" x="-1.5" y="-1.5" color-interpolation-filters="sRGB" filterUnits="userSpaceOnUse"><feFlood flood-opacity="0" result="BackgroundImageFix"></feFlood><feColorMatrix in="SourceAlpha" result="hardAlpha" values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0"></feColorMatrix><feOffset></feOffset><feGaussianBlur stdDeviation="2.5"></feGaussianBlur><feColorMatrix values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.16 0"></feColorMatrix><feBlend in2="BackgroundImageFix" result="effect1_dropShadow_2260_104293"></feBlend><feBlend in="SourceGraphic" in2="effect1_dropShadow_2260_104293" result="shape"></feBlend></filter></defs></svg>');function um(t,e){let i=Me(e,["$$slots","$$events","$$legacy","children"]);var o=c4();Ie(o,()=>({xmlns:"http://www.w3.org/2000/svg",width:"48",height:"48",fill:"none","aria-hidden":"true","data-testid":"subtitles-off-icon",role:"img",...i}));var n=_(o);be(n,()=>{var r;return(r=e.children)!=null?r:oe}),Ce(2),g(o),b(t,o)}function vu(t,e){let i=m(e,"isOff",3,!1);var o=Ue(),n=fe(o);{var r=d=>{um(d,{})},l=d=>{cm(d,{})};L(n,d=>{i()?d(r):d(l,!1)})}b(t,o)}var u4=Se('<svg><!><g filter="url(#a)"><path fill="var(--btn-color, #fff)" d="M24 22.677v-5.87a1.2 1.2 0 0 0-1.792-1.045L9.51 22.955a1.2 1.2 0 0 0 0 2.088l12.697 7.192a1.2 1.2 0 0 0 1.791-1.044v-5.873l12.21 6.916A1.2 1.2 0 0 0 38 31.19V16.805a1.2 1.2 0 0 0-1.791-1.044z"></path><path stroke="#000" stroke-opacity=".12" stroke-width=".5" d="M24.25 16.806v5.442l11.835-6.704a1.45 1.45 0 0 1 2.165 1.261V31.19a1.45 1.45 0 0 1-2.165 1.262L24.25 25.747v5.444a1.45 1.45 0 0 1-2.164 1.262L9.388 25.26a1.45 1.45 0 0 1 0-2.523l12.697-7.192a1.45 1.45 0 0 1 2.164 1.261Z"></path></g><defs><filter id="a" width="40.098" height="27.785" x="3.402" y="10.105" color-interpolation-filters="sRGB" filterUnits="userSpaceOnUse"><feFlood flood-opacity="0" result="BackgroundImageFix"></feFlood><feColorMatrix in="SourceAlpha" result="hardAlpha" values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0"></feColorMatrix><feOffset></feOffset><feGaussianBlur stdDeviation="2.5"></feGaussianBlur><feColorMatrix values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.16 0"></feColorMatrix><feBlend in2="BackgroundImageFix" result="effect1_dropShadow_2260_106627"></feBlend><feBlend in="SourceGraphic" in2="effect1_dropShadow_2260_106627" result="shape"></feBlend></filter></defs></svg>');function pm(t,e){let i=Me(e,["$$slots","$$events","$$legacy","children"]);var o=u4();Ie(o,()=>({xmlns:"http://www.w3.org/2000/svg",width:"48",height:"48",fill:"none","aria-hidden":"true","data-testid":"rate-change-icon",role:"img",...i}));var n=_(o);be(n,()=>{var r;return(r=e.children)!=null?r:oe}),Ce(2),g(o),b(t,o)}function fm(t,e){let i=m(e,"reversed",3,!1),o=h(()=>i()?"transform: scaleX(-1);":void 0);pm(t,{get style(){return s(o)}})}var p4=Se('<svg><!><g filter="url(#a)"><path fill="var(--btn-color, #fff)" d="M14 21.817c.631-.505 1.627-1.054 3.084-1.857l13.009-7.172c2.268-1.25 3.402-1.875 4.332-1.778a2.9 2.9 0 0 1 2.026 1.134c.549.73.549 1.991.549 4.511v14.69c0 2.52 0 3.78-.549 4.51a2.9 2.9 0 0 1-2.026 1.135c-.93.097-2.064-.528-4.332-1.778L17.084 28.04c-1.457-.803-2.453-1.352-3.084-1.857V34.5a1.5 1.5 0 0 1-3 0v-21a1.5 1.5 0 0 1 3 0z"></path><path stroke="#000" stroke-opacity=".12" stroke-width=".5" d="m16.964 19.74-.029.016c-1.162.641-2.046 1.129-2.685 1.567V13.5a1.75 1.75 0 1 0-3.5 0v21a1.75 1.75 0 1 0 3.5 0v-7.823c.639.438 1.523.926 2.685 1.567l.029.015 13.008 7.172.012.006c1.124.62 1.983 1.093 2.676 1.398.695.306 1.26.46 1.791.404a3.16 3.16 0 0 0 2.2-1.233c.317-.421.46-.976.53-1.711.069-.733.069-1.688.069-2.936V16.641c0-1.248 0-2.203-.07-2.936-.07-.735-.212-1.29-.529-1.711a3.16 3.16 0 0 0-2.2-1.233c-.53-.055-1.096.098-1.79.404-.694.305-1.553.778-2.677 1.398l-.012.006z"></path></g><defs><filter id="a" width="37" height="37" x="5.5" y="5.5" color-interpolation-filters="sRGB" filterUnits="userSpaceOnUse"><feFlood flood-opacity="0" result="BackgroundImageFix"></feFlood><feColorMatrix in="SourceAlpha" result="hardAlpha" values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0"></feColorMatrix><feOffset></feOffset><feGaussianBlur stdDeviation="2.5"></feGaussianBlur><feColorMatrix values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.16 0"></feColorMatrix><feBlend in2="BackgroundImageFix" result="effect1_dropShadow_2340_106922"></feBlend><feBlend in="SourceGraphic" in2="effect1_dropShadow_2340_106922" result="shape"></feBlend></filter></defs></svg>');function mm(t,e){let i=Me(e,["$$slots","$$events","$$legacy","children"]);var o=p4();Ie(o,()=>({xmlns:"http://www.w3.org/2000/svg",width:"48",height:"48",fill:"none","aria-hidden":"true","data-testid":"episodes-seek-icon",role:"img",...i}));var n=_(o);be(n,()=>{var r;return(r=e.children)!=null?r:oe}),Ce(2),g(o),b(t,o)}function vm(t,e){let i=m(e,"reversed",3,!1),o=h(()=>i()?"transform: scaleX(-1);":void 0);mm(t,{get style(){return s(o)}})}var f4=M('<span class="hot-key-helpers-text svelte-1ad3n06"> </span>'),m4=M('<div class="svelte-1ad3n06"><!> <!> <!> <!> <!> <!> <!> <!> <!> <!></div> <!>',1),v4=M("<div><!></div>"),g4={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;
261
+ }`};function lm(t,e){var lr,wr;F(e,!0),K(t,a4);let[i,o]=He(),n=()=>C(fn,"$seekToInteractiveDisabledTooltip$",i),s=()=>C(Ho,"$disabledControls$",i),l=()=>C(At,"$playbackState$",i),d=()=>C(ft,"$adPlaybackState",i),a=()=>C(le,"$isEnded$",i),p=()=>C(ut,"$playerSize",i),f=()=>C(Re,"$scrubbingInProgress",i),v=()=>C(ht,"$chromecastState$",i),u=()=>C(Pt,"$isPictureInPictureActive",i),y=()=>C(Mt,"$pictureInPictureType$",i),w=()=>C(tt,"$mobileNotReportControlHidden$",i),b=()=>C(wi,"$chromecastHidden",i),S=()=>C(qt,"$playerPhase",i),T=()=>C(po,"$pipHidden",i),E=()=>C(Bt,"$currentGridType$",i),M=()=>C(ui,"$vkLogoHidden",i),I=()=>C(De,"$isLive$",i),k=()=>C(mi,"$settingsMenuVisible",i),R=()=>C(Ye,"$isRewindableLive$",i),Y=()=>C(Le,"$isActiveLive$",i),D=()=>C(fo,"$isInteractiveTime$",i),H=()=>C(ge,"$isAudioAvailable$",i),q=()=>C(Uo,"$settingButtonRef$",i),J=()=>C(G,"$startedByKeyboard$",i),W=()=>C(rt,"$isFullscreen",i),de=()=>C(ai,"$mobileUnmuteButtonVisible",i),ie=()=>C(ti,"$volumeHidden",i),ve=()=>C(ze,"$muted$",i),Ie=()=>C(Je,"$mobileUnmuteButtonExpanded",i),fe=()=>C(hi,"$additionalButtons$",i),re=()=>C(wo,"$autoplayNextToggleHidden",i),ke=()=>C(Ci,"$crashed$",i),te=()=>C(Yt,"$settingsHidden",i),N=()=>C(Ti,"$graphIsOpened$",i),Oe=()=>C(Kt,"$adPosition",i),ye=()=>C(ci,"$adDuration",i),he=()=>C(oe,"$position$",i),ce=()=>C(Nt,"$duration$",i),ue=m(e,"playerControlsWrapperRef",15,void 0),we=m(e,"playerControlsRef",15,void 0),Z=m(e,"isAds",3,!1),Ke=m(e,"logoTargetUrl",3,""),Xe=m(e,"isOneVideoPlaylist",3,!1),Ae=m(e,"customFullscreenSupported",3,!0),ee=Ee(),Ce=uo(),qe=Ft(),st=ee.actions.internal.toggleMuted,ct=ee.actions.internal.togglePlay,bt=ee.actions.internal.pause,St=ee.actions.internal.prevVideoClick,Ge=ee.actions.internal.nextVideoClick,Wt=(lr=ee.callbacks)==null?void 0:lr.onAudioDoesNotExistHint,Qt=(wr=ee.callbacks)==null?void 0:wr.onAudioDisabledHint,qt=ee.playerPhase,Nt=ee.state.duration$,oe=ee.state.positionWithScrubbing$,At=ee.state.playbackState$,ge=ee.state.isAudioAvailable$,be=ee.state.isAudioDisabled,le=ee.state.isEnded$,De=ee.state.isLive$,ze=ee.state.muted$,Le=ee.state.isActiveLive$,Ye=ee.state.isRewindableLive$,Re=ee.ui.scrubbingInProgress,tt=ee.ui.mobileNotReportControlHidden$,{isActive$:Pt,type$:Mt}=Ce.pictureInPicture$,Je=ee.ui.mobileUnmuteButtonExpanded,ai=ee.ui.mobileUnmuteButtonVisible,mi=ee.ui.settingsMenu.visible$,at=ee.ui.settingsMenu.openedByBtnKeyboard$,Xt=ee.ui.controls,{volume:ti,vkLogo:ui,autoplayNextToggle:wo,pip:po,settings:Yt,chromecast:wi}=ee.ui.hiddenControls,Yi=ee.actions.internal.getVideoEpisodes(),yt=ee.webApi.pictureInPictureApi,ht=ee.state.chromecastState$,Ci=ee.state.crashed$,Ho=Xt.disabledControls$,G=ee.ui.startedByKeyboard$,Bt=ee.ui.currentGridType$,ci=ee.ads.duration,Kt=ee.ads.position,ft=ee.ads.playbackState,rt=ee.ui.isFullscreen,ut=ee.ui.playerSize,hi=ee.ui.additionalButtonsDeprecated$,Ot=ee.actions.internal.getVideoElement,er=ee.actions.internal.replayInteractive,Si=ee.state.isInteractive,fo=ee.state.isInteractiveTime$,Mi=ee.state.showInteractiveGraph,$t=ee.state.showSeekToInteractive,Li=ee.state.showPlayPrevChapter,Xo=ee.state.showInteractiveTimeIndicator,fn=Ce.seekToInteractiveDisabledTooltip$,Ti=Ce.graphIsOpened$,ji=ee.ui.controlBlocks,Ei=g(()=>z(ee.state.playPrevChapterDisabledTooltip)),Jo=g(()=>z(n())),Ln=g(()=>s().has("EPISODE_BUTTON")),Co=g(()=>s().has("GRAPH_BUTTON")),Fo=g(()=>s().has("SEEK_TO_INTERACTIVE_BUTTON")),io=g(()=>s().has("PLAY_BUTTON")),mo=g(()=>s().has("REPLAY_BUTTON")),en=g(()=>s().has("PLAY_PREV_CHAPTER_BUTTON")),Vn=g(()=>l()===x1.PLAYING),tr=g(()=>d()==="paused"),ir=g(()=>a()&&!Z()&&!Si),or=g(()=>!a()||Z()),Hr=g(()=>e.showNextPrevButtons&&!Z()&&e.prevButtonActive),Rn=g(()=>e.showNextPrevButtons&&!Z()&&e.nextButtonActive),ns=g(()=>p().width>300),Fr=g(()=>p().width>400),Vi=g(f),mn=g(()=>v()!==y1.NOT_AVAILABLE&&!(u()&&y()===1)&&!w()&&!Si&&!b()),tn=g(()=>S()==="LiveWaitingStart"),vn=g(()=>!!yt&&v()!==y1.CONNECTED&&!w()&&(y()===1&&r(tn)||!r(tn))&&!r(Vi)&&!Si&&!T()),vo=g(()=>!r(Vi)&&Gi(E(),"s")),gn=g(()=>!e.logoHidden&&p().width>350&&!M()),Nn=g(()=>qe.features.fullscreen&&!(u()&&y()===1)&&(Si?Ae():!0)&&!r(Vi)),Ur=g(()=>(!I()||Z())&&p().width>260&&!r(Vi)&&!(qe.features.interactiveHideTime&&Si)),_r=g(()=>k()||e.showControls),zr=g(()=>!Z()&&!I()&&!!(Yi!=null&&Yi.length)&&r(ns)&&!r(Ln)&&!r(Vi)),hn=g(()=>!R()||!!Y()),Bn=g(()=>Mi&&Gi(E(),"m")),it=si({}),Ut=si({}),On=w1(ll,260),zi=w1(vu,260);We(()=>{p(),D(),On(Ot(),Xt,it,e.showControls),zi(Ot(),ji,Ut,e.showControls)});let nr=()=>ee.actions.internal.toggleChromecast();async function Dn(){yt!=null&&yt.isActive()?await(yt==null?void 0:yt.exit()):await(yt==null?void 0:yt.request())}function _n(){(!be&&H()||Z())&&ai.set(!1),Ns({isAudioDisabled:be,audioDisabledHintCallback:Qt,isAudioAvailable:H(),audioIsNotExistHintCallback:Wt,isAds:Z()})&&st()}let Wi=j(""),on=(et,kt)=>{if(!et){B(Wi,z("tooltip_live"),!0);return}kt&&kt===x1.PAUSED&&B(Wi,z("tooltip_play"),!0)};We(()=>{on(r(hn),l())});let Uo=ae();We(()=>{q()&&il(q(),k(),at)}),We(()=>{fu(G,J(),it.playButton)});var bn=s4(),br=me(bn);{var $r=et=>{var kt=t4(),bi=me(kt);let _o;var no=P(bi,2);let ro;var To=_(no);{var Wo=Ne=>{let mt=g(()=>H()&&!be&&Ie());gu(Ne,{get muted(){return ve()},get expanded(){return r(mt)},click:_n,get ref(){return it.volume},set ref(ni){it.volume=ni}})};L(To,Ne=>{(!H()||de())&&!ie()&&Ne(Wo)})}h(no),ot(no,Ne=>Ut.topLeft=Ne,()=>Ut==null?void 0:Ut.topLeft);var Eo=P(no,2);let Ni;var Zi=_(Eo);$i(Zi,1,fe,({iconUrl:Ne,ariaLabel:mt,testId:ni,onClick:Po,tooltip:Bi})=>Ne,(Ne,mt)=>{let ni=()=>r(mt).iconUrl,Po=()=>r(mt).ariaLabel,Bi=()=>r(mt).testId,sn=()=>r(mt).onClick,Ir=()=>r(mt).tooltip,Ao=g(()=>{var Xi;return(Xi=Po())!=null?Xi:Ir()});om(Ne,{get iconUrl(){return ni()},get ariaLabel(){return r(Ao)},get testId(){return Bi()},get onClick(){return sn()}})});var Io=P(Zi,2);{var so=Ne=>{Id(Ne,{get ref(){return it.autoplayNextToggle},set ref(mt){it.autoplayNextToggle=mt}})};L(Io,Ne=>{e.showAutoplayNext&&!Xe()&&!re()&&Ne(so)})}var ko=P(Io,2);{var Un=Ne=>{bd(Ne,{isMobile:!0,click:nr,get state(){return v()},get ref(){return it.chromecast},set ref(mt){it.chromecast=mt}})};L(ko,Ne=>{r(mn)&&Ne(Un)})}var dr=P(ko,2);{var rs=Ne=>{am(Ne,{click:Dn,get isPictureInPictureActive(){return u()},get ref(){return it.pip},set ref(mt){it.pip=mt}})};L(dr,Ne=>{r(vn)&&Ne(rs)})}var Cr=P(dr,2);{var Sr=Ne=>{sl(Ne,{get ref$(){return Uo}})};L(Cr,Ne=>{ke()&&!te()&&Ne(Sr)})}var cr=P(Cr,2);{var ur=Ne=>{_d(Ne,{get click(){return bt},get targetUrl(){return Ke()},get logoClickable(){return e.logoClickable},get ref(){return it.vkLogo},set ref(mt){it.vkLogo=mt}})};L(cr,Ne=>{r(gn)&&Ne(ur)})}h(Eo),ot(Eo,Ne=>Ut.topRight=Ne,()=>Ut==null?void 0:Ut.topRight);var rn=P(Eo,2);let ao;var xn=_(rn);{var Tr=Ne=>{let mt=g(()=>St.bind(null,!0));_a(Ne,{get click(){return r(mt)},type:"prev",isMobile:!0,get ref(){return it.prevButton},set ref(ni){it.prevButton=ni}})};L(xn,Ne=>{r(Hr)&&Ne(Tr)})}var pr=P(xn,2);{var Er=Ne=>{cl(Ne,{get disabled(){return r(io)},get click(){return ct},isMobile:!0,get isPlaying(){return r(Vn)},get ref(){return it.playButton},set ref(mt){it.playButton=mt}})};L(pr,Ne=>{r(or)&&Ne(Er)})}var je=P(pr,2);{var Jt=Ne=>{dl(Ne,{get disabled(){return r(mo)},get click(){return ct},isMobile:!0,get ref(){return it.replayButton},set ref(mt){it.replayButton=mt}})};L(je,Ne=>{r(ir)&&Ne(Jt)})}var pe=P(je,2);{var wt=Ne=>{let mt=g(()=>Ge.bind(null,!0));_a(Ne,{get click(){return r(mt)},type:"next",isMobile:!0,get ref(){return it.nextButton},set ref(ni){it.nextButton=ni}})};L(pe,Ne=>{r(Rn)&&Ne(wt)})}h(rn),ot(rn,Ne=>Ut.middle=Ne,()=>Ut==null?void 0:Ut.middle);var oi=P(rn,2);{var pi=Ne=>{var mt=e4(),ni=me(mt);{var Po=Xi=>{var ki=Zy();let wn;ki.__click=[Yy,en,e,Ei];var zn=_(ki);let kr=g(()=>!e.showControls);Ed(zn,{get hidden(){return r(kr)},get disabled(){return r(en)},get click(){return e.playPrevChapter},get ref(){return it.playPrevChapterButton},set ref(bo){it.playPrevChapterButton=bo}}),h(ki),O(bo=>wn=X(ki,1,"wrapper-middle-left svelte-9xcbwc",null,wn,bo),[()=>({fullscreen:W(),hidden:!e.showControls})]),$(Xi,ki)};L(ni,Xi=>{Li&&Xi(Po)})}var Bi=P(ni,2);{var sn=Xi=>{var ki=Xy();let wn;var zn=_(ki);let kr=g(()=>!e.showControls&&!N());Pd(zn,{get hidden(){return r(kr)},get disabled(){return r(Co)},get click(){return Ti.toggle},get graphIsOpened(){return N()},get ref(){return it.interactiveGraphButton},set ref(bo){it.interactiveGraphButton=bo}}),h(ki),O(bo=>wn=X(ki,1,Ul(Li?"wrapper-middle-left-second":"wrapper-middle-left"),"svelte-9xcbwc",wn,bo),[()=>({fullscreen:W(),hidden:!e.showControls&&!N()})]),$(Xi,ki)};L(Bi,Xi=>{r(Bn)&&Xi(sn)})}var Ir=P(Bi,2);{var Ao=Xi=>{var ki=Jy();let wn;ki.__click=[jy,Fo,e,Jo];var zn=_(ki);let kr=g(()=>!e.showControls);kd(zn,{get hidden(){return r(kr)},get disabled(){return r(Fo)},get click(){return e.seekToInteractive},get ref(){return it.seekToInteractiveButton},set ref(bo){it.seekToInteractiveButton=bo}}),h(ki),O(bo=>wn=X(ki,1,"wrapper-middle-right svelte-9xcbwc",null,wn,bo),[()=>({fullscreen:W(),hidden:!e.showControls})]),$(Xi,ki)};L(Ir,Xi=>{$t&&Xi(Ao)})}$(Ne,mt)};L(oi,Ne=>{Si&&!f()&&Ne(pi)})}O((Ne,mt,ni,Po)=>{_o=X(bi,1,"overlay-mobile svelte-9xcbwc",null,_o,Ne),ro=X(no,1,"wrapper-top-left svelte-9xcbwc",null,ro,mt),Ni=X(Eo,1,"wrapper-top-right svelte-9xcbwc",null,Ni,ni),ao=X(rn,1,"wrapper-middle svelte-9xcbwc",null,ao,Po)},[()=>({hidden:!r(_r)}),()=>({hidden:!e.showControls,fullscreen:W()}),()=>({hidden:!e.showControls&&!w(),fullscreen:W()}),()=>({hidden:!e.showControls||f()||e.endScreenShown&&e.showNextPrevButtons})]),$(et,kt)};L(br,et=>{Z()||et($r)})}var $n=P(br,2);{var Wr=et=>{var kt=n4(),bi=me(kt);{var _o=Ni=>{var Zi=i4();let Io;var so=_(Zi);gu(so,{get muted(){return ve()},expanded:!1,click:_n,get ref(){return it.volume},set ref(ko){it.volume=ko}}),h(Zi),O(ko=>Io=X(Zi,1,"wrapper-top-right svelte-9xcbwc",null,Io,ko),[()=>({fullscreen:W()})]),$(Ni,Zi)};L(bi,Ni=>{de()&&Ni(_o)})}var no=P(bi,2);{var ro=Ni=>{var Zi=o4(),Io=_(Zi);let so=g(()=>!r(tr));cl(Io,{get disabled(){return r(io)},get click(){return ct},isMobile:!0,get isPlaying(){return r(so)},get ref(){return it.playButton},set ref(ko){it.playButton=ko}}),h(Zi),$(Ni,Zi)};L(no,Ni=>{r(tr)&&Ni(ro)})}var To=P(no,2);let Wo;var Eo=_(To);$d(Eo,{get position(){return Oe()},get duration(){return ye()}}),h(To),O(Ni=>Wo=X(To,1,"wrapper-bottom ads-timeline-mobile svelte-9xcbwc",null,Wo,Ni),[()=>({fullscreen:W()})]),$(et,kt)};L($n,et=>{Z()&&d()!=="inactive"&&et(Wr)})}var yn=P($n,2);let Kr;var rr=_(yn);let yr;var nn=_(rr);X(nn,1,"controls svelte-9xcbwc",null,{},{mobile:!0});var ii=_(nn),Ri=_(ii);{var sr=et=>{Do(et,{get disabled(){return r(mo)},get ref(){return it.replayButton},set ref(kt){it.replayButton=kt},children:(kt,bi)=>{dl(kt,{get disabled(){return r(mo)},get click(){return er}})},$$slots:{default:!0}})};L(Ri,et=>{Si&&et(sr)})}var Hn=P(Ri,2);{var Fn=et=>{Do(et,{get ref(){return it.liveButton},set ref(kt){it.liveButton=kt},children:(kt,bi)=>{Ad(kt,{get isLiveActive(){return r(hn)},isMobile:!0,get ariaLabel(){return r(Wi)}})},$$slots:{default:!0}})};L(Hn,et=>{!Z()&&I()&&et(Fn)})}var Ii=P(Hn,2);{var xr=et=>{let kt=g(()=>Z()?Oe():he()),bi=g(()=>Z()?ye():ce());vd(et,{get showDuration(){return r(Fr)},get position(){return r(kt)},get duration(){return r(bi)},isMobile:!0,get ref(){return it.time},set ref(_o){it.time=_o}})};L(Ii,et=>{r(Ur)&&et(xr)})}var qr=P(Ii,2);let xt=g(()=>!r(zr));Do(qr,{className:"w-max",get disabled(){return r(xt)},get ref(){return it.episodes},set ref(et){it.episodes=et},children:(et,kt)=>{var bi=Ue(),_o=me(bi);{var no=ro=>{var To=r4(),Wo=P(me(To),2);yd(Wo,{get position(){return he()},get duration(){return ce()},get timeCodes(){return Yi}}),$(ro,To)};L(_o,ro=>{r(zr)&&ro(no)})}$(et,bi)},$$slots:{default:!0}}),h(ii),ot(ii,et=>Ut.bottomRight=et,()=>Ut==null?void 0:Ut.bottomRight);var li=P(ii,2),zo=_(li);{var So=et=>{Do(et,{get ref(){return it.settings},set ref(kt){it.settings=kt},children:(kt,bi)=>{sl(kt,{get ref$(){return Uo}})},$$slots:{default:!0}})};L(zo,et=>{r(vo)&&et(So)})}var go=P(zo,2);{var _i=et=>{Do(et,{get ref(){return it.fullscreen},set ref(kt){it.fullscreen=kt},children:(kt,bi)=>{hd(kt,{get click(){return e.toggleFullscreen},get isFullscreen(){return W()}})},$$slots:{default:!0}})};L(go,et=>{r(Nn)&&et(_i)})}h(li),ot(li,et=>Ut.bottomRight=et,()=>Ut==null?void 0:Ut.bottomRight),h(nn),ot(nn,et=>we(et),()=>we());var ho=P(nn,2);ga(ho,{get isAds(){return Z()},get canRewindLive(){return e.canRewindLive},get isRewindableLive(){return R()},get ref(){return it.timeline},set ref(et){it.timeline=et}}),h(rr),h(yn),ot(yn,et=>ue(et),()=>ue());var oo=P(yn,2);{var ar=et=>{Sd(et,{get ref(){return it.interactiveTimeIndicator},set ref(kt){it.interactiveTimeIndicator=kt}})};L(oo,et=>{Xo&&et(ar)})}O((et,kt)=>{Kr=X(yn,1,"wrapper-bottom svelte-9xcbwc",null,Kr,et),yr=X(rr,1,"controls-wrapper svelte-9xcbwc",null,yr,kt)},[()=>({hidden:e.bottomHidden,"controls-hidden":!e.showControls,"no-smooth":e.bottomNoSmooth,mobile:!0}),()=>({fullscreen:W()})]),$(t,bn),U(),o()}lt(["click"]);function Md(t,e){F(e,!0);let[i,o]=He(),n=()=>C(T,"$isMobile",i),s=m(e,"bottomNoSmooth",3,!1),l=m(e,"playerControlsWrapperRef",15,void 0),d=m(e,"playerControlsRef",15,void 0),a=m(e,"isAds",3,!1),p=m(e,"logoTargetUrl",3,""),f=m(e,"showAutoplayNext",3,!1),v=m(e,"isOneVideoPlaylist",3,!1),u=m(e,"customFullscreenSupported",3,!0),y=m(e,"endScreenShown",3,!1),w=m(e,"onDisabledPlayPrevChapterClick",3,C1),b=m(e,"onDisabledSeekToInteractiveClick",3,C1),T=Ee().ui.isMobile,E=j(!1);Rt(()=>{let R=setTimeout(()=>B(E,!0),0);return()=>clearTimeout(R)});var M=Ue(),I=me(M);{var k=R=>{var Y=Ue(),D=me(Y);{var H=J=>{lm(J,{get bottomHidden(){return e.bottomHidden},get bottomNoSmooth(){return s()},get showControls(){return e.showControls},get isAds(){return a()},get canRewindLive(){return e.canRewindLive},get logoClickable(){return e.logoClickable},get logoHidden(){return e.logoHidden},get logoTargetUrl(){return p()},get showAutoplayNext(){return f()},get showNextPrevButtons(){return e.showNextPrevButtons},get nextButtonActive(){return e.nextButtonActive},get prevButtonActive(){return e.prevButtonActive},get isOneVideoPlaylist(){return v()},get customFullscreenSupported(){return u()},get endScreenShown(){return y()},get toggleFullscreen(){return e.toggleFullscreen},get seekToInteractive(){return e.seekToInteractive},get playPrevChapter(){return e.playPrevChapter},get onDisabledPlayPrevChapterClick(){return w()},get onDisabledSeekToInteractiveClick(){return b()},get playerControlsWrapperRef(){return l()},set playerControlsWrapperRef(W){l(W)},get playerControlsRef(){return d()},set playerControlsRef(W){d(W)}})},q=J=>{im(J,{get bottomHidden(){return e.bottomHidden},get bottomNoSmooth(){return s()},get showControls(){return e.showControls},get isAds(){return a()},get canRewindLive(){return e.canRewindLive},get logoClickable(){return e.logoClickable},get logoHidden(){return e.logoHidden},get logoTargetUrl(){return p()},get isOneVideoPlaylist(){return v()},get showAutoplayNext(){return f()},get showNextPrevButtons(){return e.showNextPrevButtons},get nextButtonActive(){return e.nextButtonActive},get prevButtonActive(){return e.prevButtonActive},get customFullscreenSupported(){return u()},get toggleFullscreen(){return e.toggleFullscreen},get seekToInteractive(){return e.seekToInteractive},get playPrevChapter(){return e.playPrevChapter},get playerControlsWrapperRef(){return l()},set playerControlsWrapperRef(W){l(W)},get playerControlsRef(){return d()},set playerControlsRef(W){d(W)}})};L(D,J=>{n()?J(H):J(q,!1)})}$(R,Y)};L(I,R=>{r(E)&&R(k)})}$(t,M),U(),o()}var l4=Te('<svg><!><g filter="url(#a)"><path fill="var(--btn-color, #fff)" d="M15.537 10.534a1.157 1.157 0 0 0 .003 1.96l7.658 4.823c.78.491 1.798-.065 1.798-.981v-3.3c7.265.512 13 6.568 13 13.964 0 7.732-6.268 14-14 14-5.98 0-11.088-3.75-13.093-9.032a1.5 1.5 0 0 0-2.805 1.064C10.531 39.441 16.73 44 23.996 44c9.39 0 17-7.611 17-17 0-9.053-7.076-16.453-16-16.971V6.664c0-.918-1.021-1.473-1.8-.98z"></path><path stroke="#000" stroke-opacity=".12" stroke-width=".5" d="M15.404 10.322a1.407 1.407 0 0 0 .003 2.384l7.657 4.823c.944.594 2.182-.076 2.182-1.193v-3.03c7.008.631 12.5 6.522 12.5 13.694 0 7.594-6.156 13.75-13.75 13.75-5.873 0-10.89-3.683-12.86-8.871a1.75 1.75 0 1 0-3.272 1.242c2.469 6.503 8.758 11.129 16.132 11.129 9.527 0 17.25-7.723 17.25-17.25 0-9.107-7.056-16.565-16-17.205V6.664c0-1.118-1.241-1.788-2.184-1.19z"></path></g><defs><filter id="a" width="43.996" height="49.5" x="2.5" y="0" color-interpolation-filters="sRGB" filterUnits="userSpaceOnUse"><feFlood flood-opacity="0" result="BackgroundImageFix"></feFlood><feColorMatrix in="SourceAlpha" result="hardAlpha" values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0"></feColorMatrix><feOffset></feOffset><feGaussianBlur stdDeviation="2.5"></feGaussianBlur><feColorMatrix values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.16 0"></feColorMatrix><feBlend in2="BackgroundImageFix" result="effect1_dropShadow_2260_100684"></feBlend><feBlend in="SourceGraphic" in2="effect1_dropShadow_2260_100684" result="shape"></feBlend></filter></defs></svg>');function dm(t,e){let i=Ve(e,["$$slots","$$events","$$legacy","children"]);var o=l4();Pe(o,()=>({xmlns:"http://www.w3.org/2000/svg",width:"48",height:"51",fill:"none","aria-hidden":"true","data-testid":"seek-icon",role:"img",...i}));var n=_(o);xe(n,()=>{var s;return(s=e.children)!=null?s:se}),Se(2),h(o),$(t,o)}function cm(t,e){let i=m(e,"reversed",3,!1),o=g(()=>i()?"transform: scaleX(-1);":void 0);dm(t,{get style(){return r(o)}})}var d4=Te('<svg><!><g clip-path="url(#c)" filter="url(#a)"><path fill="var(--btn-color, #fff)" fill-rule="evenodd" d="M28.167 7h-8.334c-2.463 0-4.404 0-5.966.128-1.594.13-2.925.4-4.134 1.016a10.5 10.5 0 0 0-4.589 4.59c-.616 1.208-.886 2.54-1.016 4.133C4 18.429 4 20.37 4 22.833v2.334c0 2.463 0 4.404.128 5.966.13 1.594.4 2.925 1.016 4.134a10.5 10.5 0 0 0 4.59 4.589c1.208.616 2.54.886 4.133 1.016 1.562.128 3.502.128 5.966.128h8.334c2.463 0 4.404 0 5.966-.128 1.594-.13 2.925-.4 4.134-1.016a10.5 10.5 0 0 0 4.589-4.59c.616-1.208.886-2.54 1.016-4.133.128-1.562.128-3.502.128-5.966v-2.334c0-2.463 0-4.404-.128-5.966-.13-1.594-.4-2.925-1.016-4.134a10.5 10.5 0 0 0-4.59-4.589c-1.208-.616-2.54-.886-4.133-1.016C32.571 7 30.63 7 28.167 7M13.5 28a1.5 1.5 0 0 0 0 3h11a1.5 1.5 0 0 0 0-3zM12 22a1.5 1.5 0 0 1 1.5-1.5h4a1.5 1.5 0 0 1 0 3h-4A1.5 1.5 0 0 1 12 22m18.5 6a1.5 1.5 0 0 0 0 3h4a1.5 1.5 0 0 0 0-3zM22 22a1.5 1.5 0 0 1 1.5-1.5h11a1.5 1.5 0 0 1 0 3h-11A1.5 1.5 0 0 1 22 22" clip-rule="evenodd"></path><path stroke="#000" stroke-opacity=".12" stroke-width=".5" d="M28.167 6.75h-8.344c-2.455 0-4.405 0-5.977.128-1.609.132-2.976.407-4.226 1.044a10.75 10.75 0 0 0-4.698 4.698c-.637 1.25-.912 2.617-1.044 4.226-.128 1.572-.128 3.522-.128 5.977v2.354c0 2.455 0 4.405.128 5.977.132 1.609.407 2.976 1.044 4.226a10.75 10.75 0 0 0 4.698 4.698c1.25.637 2.617.912 4.226 1.044 1.572.128 3.522.128 5.977.128h8.354c2.455 0 4.404 0 5.977-.128 1.609-.132 2.976-.407 4.226-1.044a10.75 10.75 0 0 0 4.698-4.698c.637-1.25.912-2.617 1.044-4.226.128-1.573.128-3.522.128-5.977v-2.354c0-2.455 0-4.405-.128-5.977-.132-1.609-.407-2.976-1.044-4.226a10.75 10.75 0 0 0-4.698-4.698c-1.25-.637-2.617-.912-4.226-1.044-1.572-.128-3.522-.128-5.977-.128zM12.25 29.5c0-.69.56-1.25 1.25-1.25h11a1.25 1.25 0 1 1 0 2.5h-11c-.69 0-1.25-.56-1.25-1.25Zm0-7.5c0-.69.56-1.25 1.25-1.25h4a1.25 1.25 0 1 1 0 2.5h-4c-.69 0-1.25-.56-1.25-1.25Zm17 7.5c0-.69.56-1.25 1.25-1.25h4a1.25 1.25 0 1 1 0 2.5h-4c-.69 0-1.25-.56-1.25-1.25Zm-7-7.5c0-.69.56-1.25 1.25-1.25h11a1.25 1.25 0 1 1 0 2.5h-11c-.69 0-1.25-.56-1.25-1.25Z"></path></g><defs><clipPath id="c"><path fill="var(--btn-color, #fff)" d="M0 0h48v48H0z"></path></clipPath><filter id="a" width="51" height="45" x="-1.5" y="1.5" color-interpolation-filters="sRGB" filterUnits="userSpaceOnUse"><feFlood flood-opacity="0" result="BackgroundImageFix"></feFlood><feColorMatrix in="SourceAlpha" result="hardAlpha" values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0"></feColorMatrix><feOffset></feOffset><feGaussianBlur stdDeviation="2.5"></feGaussianBlur><feColorMatrix values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.16 0"></feColorMatrix><feBlend in2="BackgroundImageFix" result="effect1_dropShadow_2260_104204"></feBlend><feBlend in="SourceGraphic" in2="effect1_dropShadow_2260_104204" result="shape"></feBlend></filter></defs></svg>');function um(t,e){let i=Ve(e,["$$slots","$$events","$$legacy","children"]);var o=d4();Pe(o,()=>({xmlns:"http://www.w3.org/2000/svg",width:"48",height:"48",fill:"none","aria-hidden":"true","data-testid":"subtitles-on-icon",role:"img",...i}));var n=_(o);xe(n,()=>{var s;return(s=e.children)!=null?s:se}),Se(2),h(o),$(t,o)}var c4=Te('<svg><!><g clip-path="url(#c)" filter="url(#a)"><path fill="var(--btn-color, #fff)" fill-rule="evenodd" d="M6.56 4.44a1.5 1.5 0 1 0-2.12 2.12l3.088 3.09a10.5 10.5 0 0 0-2.384 3.083c-.616 1.21-.886 2.54-1.016 4.134C4 18.429 4 20.369 4 22.833v2.334c0 2.463 0 4.404.128 5.966.13 1.594.4 2.925 1.016 4.134a10.5 10.5 0 0 0 4.59 4.589c1.208.616 2.54.886 4.133 1.016 1.562.128 3.502.128 5.966.128h8.334c2.463 0 4.404 0 5.966-.128 1.437-.117 2.66-.348 3.773-.844l3.533 3.533a1.5 1.5 0 0 0 2.122-2.122l-37-37ZM13.5 28a1.5 1.5 0 0 0 0 3h11a1.5 1.5 0 0 0 0-3zM12 22a1.5 1.5 0 0 1 1.5-1.5h4a1.5 1.5 0 0 1 0 3h-4A1.5 1.5 0 0 1 12 22" clip-rule="evenodd"></path><path fill="var(--btn-color, #fff)" d="M34.5 23.5h-4.639l12.552 12.551q.237-.381.443-.784c.616-1.21.886-2.54 1.016-4.134.128-1.562.128-3.502.128-5.966v-2.334c0-2.463 0-4.404-.128-5.966-.13-1.594-.4-2.925-1.016-4.134a10.5 10.5 0 0 0-4.59-4.589c-1.208-.616-2.54-.886-4.133-1.016C32.571 7 30.63 7 28.167 7h-8.334c-2.463 0-4.404 0-5.966.128l-.347.03L26.86 20.5h7.64a1.5 1.5 0 0 1 0 3"></path><path stroke="#000" stroke-opacity=".12" stroke-width=".5" d="M29.861 23.25h-.603l.427.427 12.55 12.551.223.223.167-.268q.243-.39.453-.803c.637-1.25.912-2.617 1.044-4.226.128-1.573.128-3.522.128-5.977v-2.354c0-2.455 0-4.405-.128-5.977-.132-1.609-.407-2.976-1.044-4.226a10.75 10.75 0 0 0-4.698-4.698c-1.25-.637-2.617-.912-4.226-1.044-1.572-.128-3.522-.128-5.977-.128h-8.354c-2.455 0-4.405 0-5.977.128q-.177.014-.35.032l-.527.051.374.374 13.341 13.342.074.073H34.5a1.25 1.25 0 1 1 0 2.5zM6.737 4.263a1.75 1.75 0 0 0-2.474 2.474l2.903 2.904a10.8 10.8 0 0 0-2.244 2.979c-.637 1.25-.912 2.617-1.044 4.226-.128 1.572-.128 3.522-.128 5.977v2.354c0 2.455 0 4.405.128 5.977.132 1.609.407 2.976 1.044 4.226a10.75 10.75 0 0 0 4.698 4.698c1.25.637 2.617.912 4.226 1.044 1.572.128 3.522.128 5.977.128h8.354c2.455 0 4.404 0 5.977-.128 1.384-.114 2.59-.333 3.696-.797l3.413 3.412a1.75 1.75 0 1 0 2.474-2.474zM12.25 29.5c0-.69.56-1.25 1.25-1.25h11a1.25 1.25 0 1 1 0 2.5h-11c-.69 0-1.25-.56-1.25-1.25Zm0-7.5c0-.69.56-1.25 1.25-1.25h4a1.25 1.25 0 1 1 0 2.5h-4c-.69 0-1.25-.56-1.25-1.25Z"></path></g><defs><clipPath id="c"><path fill="var(--btn-color, #fff)" d="M0 0h48v48H0z"></path></clipPath><filter id="a" width="51" height="51" x="-1.5" y="-1.5" color-interpolation-filters="sRGB" filterUnits="userSpaceOnUse"><feFlood flood-opacity="0" result="BackgroundImageFix"></feFlood><feColorMatrix in="SourceAlpha" result="hardAlpha" values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0"></feColorMatrix><feOffset></feOffset><feGaussianBlur stdDeviation="2.5"></feGaussianBlur><feColorMatrix values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.16 0"></feColorMatrix><feBlend in2="BackgroundImageFix" result="effect1_dropShadow_2260_104293"></feBlend><feBlend in="SourceGraphic" in2="effect1_dropShadow_2260_104293" result="shape"></feBlend></filter></defs></svg>');function pm(t,e){let i=Ve(e,["$$slots","$$events","$$legacy","children"]);var o=c4();Pe(o,()=>({xmlns:"http://www.w3.org/2000/svg",width:"48",height:"48",fill:"none","aria-hidden":"true","data-testid":"subtitles-off-icon",role:"img",...i}));var n=_(o);xe(n,()=>{var s;return(s=e.children)!=null?s:se}),Se(2),h(o),$(t,o)}function hu(t,e){let i=m(e,"isOff",3,!1);var o=Ue(),n=me(o);{var s=d=>{pm(d,{})},l=d=>{um(d,{})};L(n,d=>{i()?d(s):d(l,!1)})}$(t,o)}var u4=Te('<svg><!><g filter="url(#a)"><path fill="var(--btn-color, #fff)" d="M24 22.677v-5.87a1.2 1.2 0 0 0-1.792-1.045L9.51 22.955a1.2 1.2 0 0 0 0 2.088l12.697 7.192a1.2 1.2 0 0 0 1.791-1.044v-5.873l12.21 6.916A1.2 1.2 0 0 0 38 31.19V16.805a1.2 1.2 0 0 0-1.791-1.044z"></path><path stroke="#000" stroke-opacity=".12" stroke-width=".5" d="M24.25 16.806v5.442l11.835-6.704a1.45 1.45 0 0 1 2.165 1.261V31.19a1.45 1.45 0 0 1-2.165 1.262L24.25 25.747v5.444a1.45 1.45 0 0 1-2.164 1.262L9.388 25.26a1.45 1.45 0 0 1 0-2.523l12.697-7.192a1.45 1.45 0 0 1 2.164 1.261Z"></path></g><defs><filter id="a" width="40.098" height="27.785" x="3.402" y="10.105" color-interpolation-filters="sRGB" filterUnits="userSpaceOnUse"><feFlood flood-opacity="0" result="BackgroundImageFix"></feFlood><feColorMatrix in="SourceAlpha" result="hardAlpha" values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0"></feColorMatrix><feOffset></feOffset><feGaussianBlur stdDeviation="2.5"></feGaussianBlur><feColorMatrix values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.16 0"></feColorMatrix><feBlend in2="BackgroundImageFix" result="effect1_dropShadow_2260_106627"></feBlend><feBlend in="SourceGraphic" in2="effect1_dropShadow_2260_106627" result="shape"></feBlend></filter></defs></svg>');function fm(t,e){let i=Ve(e,["$$slots","$$events","$$legacy","children"]);var o=u4();Pe(o,()=>({xmlns:"http://www.w3.org/2000/svg",width:"48",height:"48",fill:"none","aria-hidden":"true","data-testid":"rate-change-icon",role:"img",...i}));var n=_(o);xe(n,()=>{var s;return(s=e.children)!=null?s:se}),Se(2),h(o),$(t,o)}function mm(t,e){let i=m(e,"reversed",3,!1),o=g(()=>i()?"transform: scaleX(-1);":void 0);fm(t,{get style(){return r(o)}})}var p4=Te('<svg><!><g filter="url(#a)"><path fill="var(--btn-color, #fff)" d="M14 21.817c.631-.505 1.627-1.054 3.084-1.857l13.009-7.172c2.268-1.25 3.402-1.875 4.332-1.778a2.9 2.9 0 0 1 2.026 1.134c.549.73.549 1.991.549 4.511v14.69c0 2.52 0 3.78-.549 4.51a2.9 2.9 0 0 1-2.026 1.135c-.93.097-2.064-.528-4.332-1.778L17.084 28.04c-1.457-.803-2.453-1.352-3.084-1.857V34.5a1.5 1.5 0 0 1-3 0v-21a1.5 1.5 0 0 1 3 0z"></path><path stroke="#000" stroke-opacity=".12" stroke-width=".5" d="m16.964 19.74-.029.016c-1.162.641-2.046 1.129-2.685 1.567V13.5a1.75 1.75 0 1 0-3.5 0v21a1.75 1.75 0 1 0 3.5 0v-7.823c.639.438 1.523.926 2.685 1.567l.029.015 13.008 7.172.012.006c1.124.62 1.983 1.093 2.676 1.398.695.306 1.26.46 1.791.404a3.16 3.16 0 0 0 2.2-1.233c.317-.421.46-.976.53-1.711.069-.733.069-1.688.069-2.936V16.641c0-1.248 0-2.203-.07-2.936-.07-.735-.212-1.29-.529-1.711a3.16 3.16 0 0 0-2.2-1.233c-.53-.055-1.096.098-1.79.404-.694.305-1.553.778-2.677 1.398l-.012.006z"></path></g><defs><filter id="a" width="37" height="37" x="5.5" y="5.5" color-interpolation-filters="sRGB" filterUnits="userSpaceOnUse"><feFlood flood-opacity="0" result="BackgroundImageFix"></feFlood><feColorMatrix in="SourceAlpha" result="hardAlpha" values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0"></feColorMatrix><feOffset></feOffset><feGaussianBlur stdDeviation="2.5"></feGaussianBlur><feColorMatrix values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.16 0"></feColorMatrix><feBlend in2="BackgroundImageFix" result="effect1_dropShadow_2340_106922"></feBlend><feBlend in="SourceGraphic" in2="effect1_dropShadow_2340_106922" result="shape"></feBlend></filter></defs></svg>');function vm(t,e){let i=Ve(e,["$$slots","$$events","$$legacy","children"]);var o=p4();Pe(o,()=>({xmlns:"http://www.w3.org/2000/svg",width:"48",height:"48",fill:"none","aria-hidden":"true","data-testid":"episodes-seek-icon",role:"img",...i}));var n=_(o);xe(n,()=>{var s;return(s=e.children)!=null?s:se}),Se(2),h(o),$(t,o)}function gm(t,e){let i=m(e,"reversed",3,!1),o=g(()=>i()?"transform: scaleX(-1);":void 0);vm(t,{get style(){return r(o)}})}var f4=A('<span class="hot-key-helpers-text svelte-1ad3n06"> </span>'),m4=A('<div class="svelte-1ad3n06"><!> <!> <!> <!> <!> <!> <!> <!> <!> <!></div> <!>',1),v4=A("<div><!></div>"),g4={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;
262
262
  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"],
263
263
  .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"],
264
264
  .hot-key-helpers-container.svelte-1ad3n06 svg[data-testid="play-icon"],
@@ -273,23 +273,23 @@ Try switching the\xA0quality to\xA0Auto.`},Ih=w_;var fs=new Map;fs.set(Ph.EN,Ih)
273
273
  @keyframes svelte-1ad3n06-fadeOut {
274
274
  0% {opacity:1;}
275
275
  100% {opacity:0;}
276
- }`};function gm(t,e){D(e,!0),z(t,g4);let[i,o]=De(),n=()=>C(e.data,"$data",i),l=Ee().ui.t,d=h(()=>!n()),a=h(()=>{var S;return((S=n())==null?void 0:S.type)==="BACKWARD_SEEK"}),p=h(()=>{var S;return((S=n())==null?void 0:S.type)==="FORWARD_SEEK"}),f=h(()=>{var S;return(S=n())==null?void 0:S.type}),v=h(()=>{var S,T;return(S=n())!=null&&S.t?l(n().t.key,{value:n().t.value||""}):(T=n())==null?void 0:T.text});var u=v4();let $;var w=_(u);{var y=S=>{var T=m4(),k=fe(T),A=_(k);{var I=de=>{let ue=h(()=>s(f)==="FORWARD_SEEK");dm(de,{get reversed(){return s(ue)}})};L(A,de=>{["BACKWARD_SEEK","FORWARD_SEEK"].includes(s(f))&&de(I)})}var E=P(A,2);{var V=de=>{_s(de,{})};L(E,de=>{s(f)==="PAUSE"&&de(V)})}var K=P(E,2);{var W=de=>{Nr(de,{})};L(K,de=>{s(f)==="PLAY"&&de(W)})}var U=P(K,2);{var Y=de=>{wd(de,{})};L(U,de=>{s(f)==="REPLAY"&&de(Y)})}var ne=P(U,2);{var G=de=>{vu(de,{isOff:!0})};L(ne,de=>{s(f)==="SUBTITLES_OFF"&&de(G)})}var ce=P(ne,2);{var le=de=>{vu(de,{})};L(ce,de=>{s(f)==="SUBTITLES_ON"&&de(le)})}var we=P(ce,2);{var Ve=de=>{let ue=h(()=>s(f)==="RATE_UP");fm(de,{get reversed(){return s(ue)}})};L(we,de=>{["RATE_DOWN","RATE_UP"].includes(s(f))&&de(Ve)})}var ve=P(we,2);{var ae=de=>{let ue=h(()=>s(f)==="EPISODE_NEXT");vm(de,{get reversed(){return s(ue)}})};L(ve,de=>{["EPISODE_PREV","EPISODE_NEXT"].includes(s(f))&&de(ae)})}var Le=P(ve,2);{var te=de=>{Rs(de,{volume:0})};L(Le,de=>{s(f)==="MUTE"&&de(te)})}var N=P(Le,2);{var Be=de=>{Rs(de,{volume:1})};L(N,de=>{s(f)==="VOLUME"&&de(Be)})}g(k);var ye=P(k,2);{var ge=de=>{var ue=f4(),xe=_(ue,!0);g(ue),O(()=>he(xe,s(v))),b(de,ue)};L(ye,de=>{s(v)&&de(ge)})}b(S,T)};L(w,S=>{!s(d)&&s(f)&&S(y)})}g(u),O(S=>$=J(u,1,"hot-key-helpers-container svelte-1ad3n06",null,$,S),[()=>({hidden:s(d),"hot-key-helpers-container--left":s(a),"hot-key-helpers-container--right":s(p)})]),b(t,u),H(),o()}var h4=Se('<svg><!><path fill="currentColor" fill-opacity=".72" fill-rule="evenodd" d="M11.736 6.736a.9.9 0 0 1-1.272 0L6 2.273 1.536 6.736A.9.9 0 1 1 .264 5.464l5.1-5.1a.9.9 0 0 1 1.272 0l5.1 5.1a.9.9 0 0 1 0 1.272" clip-rule="evenodd"></path></svg>');function hm(t,e){let i=Me(e,["$$slots","$$events","$$legacy","children"]);var o=h4();Ie(o,()=>({xmlns:"http://www.w3.org/2000/svg",width:"12",height:"7",fill:"none","aria-hidden":"true",color:"#fff",role:"img",...i}));var n=_(o);be(n,()=>{var r;return(r=e.children)!=null?r:oe}),Ce(),g(o),b(t,o)}var _4=Se('<svg><!><path fill="currentColor" d="m5.773 8 3.363 3.364a.9.9 0 1 1-1.272 1.272l-4-4a.9.9 0 0 1 0-1.272l4-4a.9.9 0 0 1 1.272 1.272z"></path></svg>');function _m(t,e){let i=Me(e,["$$slots","$$events","$$legacy","children"]);var o=_4();Ie(o,()=>({xmlns:"http://www.w3.org/2000/svg",width:"12",height:"16",fill:"none","aria-hidden":"true",color:"#fff",role:"img",...i}));var n=_(o);be(n,()=>{var r;return(r=e.children)!=null?r:oe}),Ce(),g(o),b(t,o)}function Os(t,e){D(e,!0);let i=m(e,"direction",3,"left"),o=m(e,"useBtnColor",3,!1),n=h(()=>["up","down"].includes(i())),r=h(()=>["right","down"].includes(i())),l=h(()=>(()=>{let v="";return s(r)&&(v+="transform: rotate(180deg);"),o()&&(v+="color: var(--btn-color, #fff);"),v.length?v:void 0})());var d=Ue(),a=fe(d);{var p=v=>{let u=h(()=>s(r)?"chevron-icon--down":"chevron-icon--up");hm(v,{get style(){return s(l)},get"data-testid"(){return s(u)}})},f=v=>{let u=h(()=>s(r)?"chevron-icon--right":"chevron-icon--left");_m(v,{get style(){return s(l)},get"data-testid"(){return s(u)}})};L(a,v=>{s(n)?v(p):v(f,!1)})}b(t,d),H()}var b4=(t,e,i,o,n,r)=>{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":r();break}},$4=(t,e,i)=>{e.has(t.code)&&(t.preventDefault(),t.stopPropagation(),i())},y4=M('<div tabindex="0" role="button"><div class="button-block svelte-1yzc86r" aria-hidden="true"><div class="button-row svelte-1yzc86r"><div class="button button-up svelte-1yzc86r"><!></div> <div class="button button-right svelte-1yzc86r"><!></div></div> <div class="button-row svelte-1yzc86r"><div class="button button-left svelte-1yzc86r"><!></div> <div class="button button-down svelte-1yzc86r"><!></div></div></div></div>'),x4={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 Pd(t,e){D(e,!0),z(t,x4);let i=m(e,"isShifted",3,!1),o=Ee(),n=new Set(["ArrowUp","ArrowDown","ArrowLeft","ArrowRight"]),r=()=>{o.actions.internal.startCameraManualRotation(0,1)},l=()=>{o.actions.internal.startCameraManualRotation(0,-1)},d=()=>{o.actions.internal.startCameraManualRotation(1,0)},a=()=>{o.actions.internal.startCameraManualRotation(-1,0)},p=()=>(o.actions.internal.stopCameraManualRotation(),null),f=F("aria_label_spherical_control");var v=y4();let u;v.__keydown=[b4,n,r,l,a,d],v.__keyup=[$4,n,p];var $=_(v),w=_($),y=_(w);y.__mousedown=r,y.__mouseup=p;var S=_(y);Os(S,{direction:"up",useBtnColor:!0}),g(y);var T=P(y,2);T.__mousedown=d,T.__mouseup=p;var k=_(T);Os(k,{direction:"up",useBtnColor:!0}),g(T),g(w);var A=P(w,2),I=_(A);I.__mousedown=a,I.__mouseup=p;var E=_(I);Os(E,{direction:"up",useBtnColor:!0}),g(I);var V=P(I,2);V.__mousedown=l,V.__mouseup=p;var K=_(V);Os(K,{direction:"up",useBtnColor:!0}),g(V),g(A),g($),g(v),O(W=>{u=J(v,1,"immersive-controls svelte-1yzc86r",null,u,W),Ne(v,"aria-label",f)},[()=>({"m-shifted":i()})]),wt("mouseleave",y,p),wt("mouseleave",T,p),wt("mouseleave",I,p),wt("mouseleave",V,p),b(t,v),H()}lt(["keydown","keyup","mousedown","mouseup"]);import{ValueSubject as T1,Subscription as w4,filterChanged as C4,filter as S4}from"@vkontakte/videoplayer-shared/es2018";var S1=(t=1e3)=>{let e=null,i=()=>{e&&(clearTimeout(e),e=null)};return{add:o=>{i(),e=setTimeout(o,t)},clear:i}};var gu=class{constructor(){this.flickeringTimeout=S1(1e3);this.subscriptions=new w4;this.isAuto=!1;this.isLive=!1;this.captions$=new T1([]);this.captionsPrepared$=new T1([])}subscribe(){return this.subscriptions.add(this.captions$.pipe(S4(()=>this.isEnabled()),C4()).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:r,value:l},d)=>(o&&!d||(r==="timestamp"?n.push({timeAppeared:Number(l),value:""}):n.length===0?n.push({value:String(l)}):n[n.length-1].value=String(l)),n),[])),this.captionsPrepared$.next(i)}};var T4=M('<span class="caption-line svelte-c2x749"><span class="caption-segment svelte-c2x749"> </span></span>'),E4=M('<span class="caption-line svelte-c2x749"><span class="caption-segment svelte-c2x749"></span></span>'),I4=M('<span class="caption-line svelte-c2x749"><span class="caption-segment svelte-c2x749"> </span></span>'),k4=M('<div><span class="caption svelte-c2x749"><!></span></div>'),P4=M("<div><!></div>"),A4={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;
277
- /*font-weight: 500;*/color:var(--white);white-space:pre-wrap;}`};function xa(t,e){D(e,!0),z(t,A4);let[i,o]=De(),n=()=>C(v,"$currentSubtitle$",i),r=()=>C($,"$isLive$",i),l=()=>C(w,"$isFullscreen",i),d=()=>C(u,"$isAutoSubtitleCaptionVisible$",i),a=m(e,"isMobile",3,!1),p=Ee(),f=Ft(),v=p.state.currentSubtitle$,u=p.state.isAutoSubtitleCaptionVisible$,$=p.state.isLive$,w=p.ui.isFullscreen,y=h(()=>!!n().isAuto),S=h(()=>!!r()),T=h(()=>e.playerSize.width*.02),k=h(()=>a()&&!l()||s(T)<=f.minSubtitlesFontSize?f.minSubtitlesFontSize:s(T)),A=j(null);We(()=>{var Y,ne,G;(Y=s(A))==null||Y.setIsAuto(s(y)),(ne=s(A))==null||ne.setIsLive(s(S)),(G=s(A))==null||G.setCaptions(e.captions)});let I=j(oi([[]]));Rt(()=>{B(A,new gu().subscribe(),!0);let Y=s(A).captionsPrepared$.subscribe(ne=>{B(I,ne,!0)});return()=>{var ne;(ne=s(A))==null||ne.destroy(),Y.unsubscribe()}}),Rt(()=>{if(s(y)){let Y=window.setTimeout(()=>{u.set(!1)},f.autoSubtitlesTimeout);return()=>{window.clearTimeout(Y)}}else u.set(!1)});let E=h(()=>e.playerSize.width<400?10:e.playerSize.width<550?14:24);var V=P4();let K;var W=_(V);{var U=Y=>{var ne=k4();let G;var ce=_(ne),le=_(ce);{var we=ve=>{var ae=T4(),Le=_(ae),te=_(Le,!0);g(Le),g(ae),O(N=>{var Be;st(Le,`font-size: ${(Be=s(k))!=null?Be:""}px`),he(te,N)},[()=>F("subtitles_auto_caption")]),b(ve,ae)},Ve=(ve,ae)=>{{var Le=N=>{var Be=Ue(),ye=fe(Be);$i(ye,17,()=>s(I),Ol,(ge,de)=>{var ue=E4(),xe=_(ue);$i(xe,21,()=>s(de),({value:Z,timeAppeared:qe})=>qe,(Z,qe)=>{let Xe=()=>s(qe).value,ke=()=>s(qe).timeAppeared;var X=Ue(),Te=fe(X);{var Ke=rt=>{var ct=Xr();O(()=>he(ct,Xe())),b(rt,ct)};L(Te,rt=>{(!ke()||ke()<=e.position)&&rt(Ke)})}b(Z,X)}),g(xe),g(ue),O(()=>{var Z;return st(xe,`font-size: ${(Z=s(k))!=null?Z:""}px`)}),b(ge,ue)}),b(N,Be)},te=N=>{var Be=Ue(),ye=fe(Be);$i(ye,17,()=>e.captions,({value:ge})=>ge,(ge,de)=>{let ue=()=>s(de).value;var xe=I4(),Z=_(xe),qe=_(Z,!0);g(Z),g(xe),O(()=>{var Xe;st(Z,`font-size: ${(Xe=s(k))!=null?Xe:""}px`),he(qe,ue())}),b(ge,xe)}),b(N,Be)};L(ve,N=>{var Be;s(y)&&((Be=s(I))!=null&&Be.length)?N(Le):N(te,!1)},ae)}};L(le,ve=>{s(y)&&d()?ve(we):ve(Ve,!1)})}g(ce),g(ne),O(ve=>{var ae;G=J(ne,1,"subtitles-caption svelte-c2x749",null,G,ve),st(ne,`--subtitles-caption-margin: ${(ae=s(E))!=null?ae:""}%`)},[()=>({mobile:a()})]),b(Y,ne)};L(W,Y=>{var ne;(e.captions.length||(ne=s(I))!=null&&ne.length)&&Y(U)})}g(V),O(Y=>K=J(V,1,"subtitles-container svelte-c2x749",null,K,Y),[()=>({shifted:e.shifted,auto:s(y)&&!s(S)&&!d()})]),b(t,V),H(),o()}var M4=M('<div class="text svelte-raurnb"> </div>'),L4=M('<div><div class="icon_wrapper svelte-raurnb"><svg class="icon svelte-raurnb" width="22" height="22" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><g fill="none" fill-rule="evenodd"><path d="M1 18v3h3c0-1.66-1.34-3-3-3zm0-4v2c2.76 0 5 2.24 5 5h2c0-3.87-3.13-7-7-7zm0-4v2a9 9 0 0 1 9 9h2c0-6.08-4.93-11-11-11zm20-7H3c-1.1 0-2 .9-2 2v3h2V5h18v14h-7v2h7c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2z" fill="var(--btn-color, #fff)"></path><path d="M0 0h24v24H0z"></path></g></svg></div> <!></div>'),V4={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 Ad(t,e){D(e,!0),z(t,V4);let i=Ft();var o=L4();let n;var r=P(_(o),2);{var l=d=>{var a=M4(),p=_(a);g(a),O(()=>{var f;return he(p,`\u0412\u0438\u0434\u0435\u043E \u0432\u043E\u0441\u043F\u0440\u043E\u0438\u0437\u0432\u043E\u0434\u0438\u0442\u0441\u044F \u043D\u0430 ${(f=e.chromecastDeviceName)!=null?f:""}`)}),b(d,a)};L(r,d=>{e.chromecastDeviceName&&d(l)})}g(o),O(d=>{n=J(o,1,"wrapper svelte-raurnb",null,n,d),st(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),H()}var R4=Se('<svg><!><path fill="var(--btn-color, #fff)" fill-rule="evenodd" d="M460 193.998a3.997 3.997 0 0 1 3.997-3.998h122.006a4.003 4.003 0 0 1 3.997 3.998v82.004a3.997 3.997 0 0 1-3.997 3.998H463.997a4.003 4.003 0 0 1-3.997-3.998zm6 2.993c0-.546.45-.99.99-.99h4.02c.546 0 .99.45.99.99v4.02c0 .546-.45.99-.99.99h-4.02a.995.995 0 0 1-.99-.99zm0 12c0-.546.45-.99.99-.99h4.02c.546 0 .99.45.99.99v4.02c0 .546-.45.99-.99.99h-4.02a.995.995 0 0 1-.99-.99zm0 12c0-.546.45-.99.99-.99h4.02c.546 0 .99.45.99.99v4.02c0 .546-.45.99-.99.99h-4.02a.995.995 0 0 1-.99-.99zm0 12c0-.546.45-.99.99-.99h4.02c.546 0 .99.45.99.99v4.02c0 .546-.45.99-.99.99h-4.02a.995.995 0 0 1-.99-.99zm0 12c0-.546.45-.99.99-.99h4.02c.546 0 .99.45.99.99v4.02c0 .546-.45.99-.99.99h-4.02a.995.995 0 0 1-.99-.99zm0 12c0-.546.45-.99.99-.99h4.02c.546 0 .99.45.99.99v4.02c0 .546-.45.99-.99.99h-4.02a.995.995 0 0 1-.99-.99zm0 12c0-.546.45-.99.99-.99h4.02c.546 0 .99.45.99.99v4.02c0 .546-.45.99-.99.99h-4.02a.995.995 0 0 1-.99-.99zm112-72c0-.546.45-.99.99-.99h4.02c.546 0 .99.45.99.99v4.02c0 .546-.45.99-.99.99h-4.02a.995.995 0 0 1-.99-.99zm0 12c0-.546.45-.99.99-.99h4.02c.546 0 .99.45.99.99v4.02c0 .546-.45.99-.99.99h-4.02a.995.995 0 0 1-.99-.99zm0 12c0-.546.45-.99.99-.99h4.02c.546 0 .99.45.99.99v4.02c0 .546-.45.99-.99.99h-4.02a.995.995 0 0 1-.99-.99zm0 12c0-.546.45-.99.99-.99h4.02c.546 0 .99.45.99.99v4.02c0 .546-.45.99-.99.99h-4.02a.995.995 0 0 1-.99-.99zm0 12c0-.546.45-.99.99-.99h4.02c.546 0 .99.45.99.99v4.02c0 .546-.45.99-.99.99h-4.02a.995.995 0 0 1-.99-.99zm0 12c0-.546.45-.99.99-.99h4.02c.546 0 .99.45.99.99v4.02c0 .546-.45.99-.99.99h-4.02a.995.995 0 0 1-.99-.99zm0 12c0-.546.45-.99.99-.99h4.02c.546 0 .99.45.99.99v4.02c0 .546-.45.99-.99.99h-4.02a.995.995 0 0 1-.99-.99zM507 232a6 6 0 1 0 0-12 6 6 0 0 0 0 12m36 0a6 6 0 1 0 0-12 6 6 0 0 0 0 12m-18.05 15c6.05 0 11.624 4.446 11.944 4.65 2.106 1.35 3.252.772 3.957.156s1.15-2.806-1.044-4.657c-1.735-1.48-5.806-5.16-14.856-5.15s-12.95 3.5-14.792 5.185c-1.84 1.685-2.288 3.498-.973 4.657s2.315 1.158 4.357-.327c-.007.007 5.357-4.515 11.408-4.515z"></path></svg>');function bm(t,e){let i=Me(e,["$$slots","$$events","$$legacy","children"]);var o=R4();Ie(o,()=>({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}));var n=_(o);be(n,()=>{var r;return(r=e.children)!=null?r:oe}),Ce(),g(o),b(t,o)}var N4=M('<div class="container svelte-13zpvm8"><!></div>'),B4={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 wa(t){z(t,B4);var e=N4(),i=_(e);bm(i,{}),g(e),b(t,e)}var O4=M('<div class="playButton svelte-1ciju45" tabindex="0" role="button"><div class="playButtonBackground svelte-1ciju45"></div> <!></div>'),D4=M("<div><!></div>"),H4={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,
276
+ }`};function hm(t,e){F(e,!0),K(t,g4);let[i,o]=He(),n=()=>C(e.data,"$data",i),l=Ee().ui.t,d=g(()=>!n()),a=g(()=>{var S;return((S=n())==null?void 0:S.type)==="BACKWARD_SEEK"}),p=g(()=>{var S;return((S=n())==null?void 0:S.type)==="FORWARD_SEEK"}),f=g(()=>{var S;return(S=n())==null?void 0:S.type}),v=g(()=>{var S,T;return(S=n())!=null&&S.t?l(n().t.key,{value:n().t.value||""}):(T=n())==null?void 0:T.text});var u=v4();let y;var w=_(u);{var b=S=>{var T=m4(),E=me(T),M=_(E);{var I=ce=>{let ue=g(()=>r(f)==="FORWARD_SEEK");cm(ce,{get reversed(){return r(ue)}})};L(M,ce=>{["BACKWARD_SEEK","FORWARD_SEEK"].includes(r(f))&&ce(I)})}var k=P(M,2);{var R=ce=>{_s(ce,{})};L(k,ce=>{r(f)==="PAUSE"&&ce(R)})}var Y=P(k,2);{var D=ce=>{Or(ce,{})};L(Y,ce=>{r(f)==="PLAY"&&ce(D)})}var H=P(Y,2);{var q=ce=>{Td(ce,{})};L(H,ce=>{r(f)==="REPLAY"&&ce(q)})}var J=P(H,2);{var W=ce=>{hu(ce,{isOff:!0})};L(J,ce=>{r(f)==="SUBTITLES_OFF"&&ce(W)})}var de=P(J,2);{var ie=ce=>{hu(ce,{})};L(de,ce=>{r(f)==="SUBTITLES_ON"&&ce(ie)})}var ve=P(de,2);{var Ie=ce=>{let ue=g(()=>r(f)==="RATE_UP");mm(ce,{get reversed(){return r(ue)}})};L(ve,ce=>{["RATE_DOWN","RATE_UP"].includes(r(f))&&ce(Ie)})}var fe=P(ve,2);{var re=ce=>{let ue=g(()=>r(f)==="EPISODE_NEXT");gm(ce,{get reversed(){return r(ue)}})};L(fe,ce=>{["EPISODE_PREV","EPISODE_NEXT"].includes(r(f))&&ce(re)})}var ke=P(fe,2);{var te=ce=>{Bs(ce,{volume:0})};L(ke,ce=>{r(f)==="MUTE"&&ce(te)})}var N=P(ke,2);{var Oe=ce=>{Bs(ce,{volume:1})};L(N,ce=>{r(f)==="VOLUME"&&ce(Oe)})}h(E);var ye=P(E,2);{var he=ce=>{var ue=f4(),we=_(ue,!0);h(ue),O(()=>_e(we,r(v))),$(ce,ue)};L(ye,ce=>{r(v)&&ce(he)})}$(S,T)};L(w,S=>{!r(d)&&r(f)&&S(b)})}h(u),O(S=>y=X(u,1,"hot-key-helpers-container svelte-1ad3n06",null,y,S),[()=>({hidden:r(d),"hot-key-helpers-container--left":r(a),"hot-key-helpers-container--right":r(p)})]),$(t,u),U(),o()}var h4=Te('<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 _m(t,e){let i=Ve(e,["$$slots","$$events","$$legacy","children"]);var o=h4();Pe(o,()=>({xmlns:"http://www.w3.org/2000/svg",width:"12",height:"7",fill:"none","aria-hidden":"true",color:"#fff",role:"img",...i}));var n=_(o);xe(n,()=>{var s;return(s=e.children)!=null?s:se}),Se(),h(o),$(t,o)}var _4=Te('<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 bm(t,e){let i=Ve(e,["$$slots","$$events","$$legacy","children"]);var o=_4();Pe(o,()=>({xmlns:"http://www.w3.org/2000/svg",width:"12",height:"16",fill:"none","aria-hidden":"true",color:"#fff",role:"img",...i}));var n=_(o);xe(n,()=>{var s;return(s=e.children)!=null?s:se}),Se(),h(o),$(t,o)}function Hs(t,e){F(e,!0);let i=m(e,"direction",3,"left"),o=m(e,"useBtnColor",3,!1),n=g(()=>["up","down"].includes(i())),s=g(()=>["right","down"].includes(i())),l=g(()=>(()=>{let v="";return r(s)&&(v+="transform: rotate(180deg);"),o()&&(v+="color: var(--btn-color, #fff);"),v.length?v:void 0})());var d=Ue(),a=me(d);{var p=v=>{let u=g(()=>r(s)?"chevron-icon--down":"chevron-icon--up");_m(v,{get style(){return r(l)},get"data-testid"(){return r(u)}})},f=v=>{let u=g(()=>r(s)?"chevron-icon--right":"chevron-icon--left");bm(v,{get style(){return r(l)},get"data-testid"(){return r(u)}})};L(a,v=>{r(n)?v(p):v(f,!1)})}$(t,d),U()}var b4=(t,e,i,o,n,s)=>{if(e.has(t.code))switch(t.preventDefault(),t.stopPropagation(),t.code){case"ArrowUp":i();break;case"ArrowDown":o();break;case"ArrowLeft":n();break;case"ArrowRight":s();break}},$4=(t,e,i)=>{e.has(t.code)&&(t.preventDefault(),t.stopPropagation(),i())},y4=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>'),x4={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 Ld(t,e){F(e,!0),K(t,x4);let i=m(e,"isShifted",3,!1),o=Ee(),n=new Set(["ArrowUp","ArrowDown","ArrowLeft","ArrowRight"]),s=()=>{o.actions.internal.startCameraManualRotation(0,1)},l=()=>{o.actions.internal.startCameraManualRotation(0,-1)},d=()=>{o.actions.internal.startCameraManualRotation(1,0)},a=()=>{o.actions.internal.startCameraManualRotation(-1,0)},p=()=>(o.actions.internal.stopCameraManualRotation(),null),f=z("aria_label_spherical_control");var v=y4();let u;v.__keydown=[b4,n,s,l,a,d],v.__keyup=[$4,n,p];var y=_(v),w=_(y),b=_(w);b.__mousedown=s,b.__mouseup=p;var S=_(b);Hs(S,{direction:"up",useBtnColor:!0}),h(b);var T=P(b,2);T.__mousedown=d,T.__mouseup=p;var E=_(T);Hs(E,{direction:"up",useBtnColor:!0}),h(T),h(w);var M=P(w,2),I=_(M);I.__mousedown=a,I.__mouseup=p;var k=_(I);Hs(k,{direction:"up",useBtnColor:!0}),h(I);var R=P(I,2);R.__mousedown=l,R.__mouseup=p;var Y=_(R);Hs(Y,{direction:"up",useBtnColor:!0}),h(R),h(M),h(y),h(v),O(D=>{u=X(v,1,"immersive-controls svelte-1yzc86r",null,u,D),Be(v,"aria-label",f)},[()=>({"m-shifted":i()})]),Tt("mouseleave",b,p),Tt("mouseleave",T,p),Tt("mouseleave",I,p),Tt("mouseleave",R,p),$(t,v),U()}lt(["keydown","keyup","mousedown","mouseup"]);import{ValueSubject as T1,Subscription as w4,filterChanged as C4,filter as S4}from"@vkontakte/videoplayer-shared/es2018";var S1=(t=1e3)=>{let e=null,i=()=>{e&&(clearTimeout(e),e=null)};return{add:o=>{i(),e=setTimeout(o,t)},clear:i}};var _u=class{constructor(){this.flickeringTimeout=S1(1e3);this.subscriptions=new w4;this.isAuto=!1;this.isLive=!1;this.captions$=new T1([]);this.captionsPrepared$=new T1([])}subscribe(){return this.subscriptions.add(this.captions$.pipe(S4(()=>this.isEnabled()),C4()).subscribe(e=>{this.processCaptions(e)})),this}setIsAuto(e){this.isAuto=e}setIsLive(e){this.isLive=e}setCaptions(e){this.captions$.next(e)}destroy(){this.subscriptions.unsubscribe(),this.flickeringTimeout.clear()}isEnabled(){return this.isAuto&&!this.isLive}processCaptions(e){if(!e.length){this.flickeringTimeout.add(()=>{this.captionsPrepared$.next([])});return}this.flickeringTimeout.clear();let i=[],o=e.length>1&&e[0].type!=="timestamp"&&e[1].type!=="timestamp";o&&i.push([{value:String(e[0].value),timeAppeared:null}]),i.push(e.reduce((n,{type:s,value:l},d)=>(o&&!d||(s==="timestamp"?n.push({timeAppeared:Number(l),value:""}):n.length===0?n.push({value:String(l)}):n[n.length-1].value=String(l)),n),[])),this.captionsPrepared$.next(i)}};var T4=A('<span class="caption-line svelte-c2x749"><span class="caption-segment svelte-c2x749"> </span></span>'),E4=A('<span class="caption-line svelte-c2x749"><span class="caption-segment svelte-c2x749"></span></span>'),I4=A('<span class="caption-line svelte-c2x749"><span class="caption-segment svelte-c2x749"> </span></span>'),k4=A('<div><span class="caption svelte-c2x749"><!></span></div>'),P4=A("<div><!></div>"),A4={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;
277
+ /*font-weight: 500;*/color:var(--white);white-space:pre-wrap;}`};function ya(t,e){F(e,!0),K(t,A4);let[i,o]=He(),n=()=>C(v,"$currentSubtitle$",i),s=()=>C(y,"$isLive$",i),l=()=>C(w,"$isFullscreen",i),d=()=>C(u,"$isAutoSubtitleCaptionVisible$",i),a=m(e,"isMobile",3,!1),p=Ee(),f=Ft(),v=p.state.currentSubtitle$,u=p.state.isAutoSubtitleCaptionVisible$,y=p.state.isLive$,w=p.ui.isFullscreen,b=g(()=>!!n().isAuto),S=g(()=>!!s()),T=g(()=>e.playerSize.width*.02),E=g(()=>a()&&!l()||r(T)<=f.minSubtitlesFontSize?f.minSubtitlesFontSize:r(T)),M=j(null);We(()=>{var q,J,W;(q=r(M))==null||q.setIsAuto(r(b)),(J=r(M))==null||J.setIsLive(r(S)),(W=r(M))==null||W.setCaptions(e.captions)});let I=j(si([[]]));Rt(()=>{B(M,new _u().subscribe(),!0);let q=r(M).captionsPrepared$.subscribe(J=>{B(I,J,!0)});return()=>{var J;(J=r(M))==null||J.destroy(),q.unsubscribe()}}),Rt(()=>{if(r(b)){let q=window.setTimeout(()=>{u.set(!1)},f.autoSubtitlesTimeout);return()=>{window.clearTimeout(q)}}else u.set(!1)});let k=g(()=>e.playerSize.width<400?10:e.playerSize.width<550?14:24);var R=P4();let Y;var D=_(R);{var H=q=>{var J=k4();let W;var de=_(J),ie=_(de);{var ve=fe=>{var re=T4(),ke=_(re),te=_(ke,!0);h(ke),h(re),O(N=>{var Oe;nt(ke,`font-size: ${(Oe=r(E))!=null?Oe:""}px`),_e(te,N)},[()=>z("subtitles_auto_caption")]),$(fe,re)},Ie=(fe,re)=>{{var ke=N=>{var Oe=Ue(),ye=me(Oe);$i(ye,17,()=>r(I),Hl,(he,ce)=>{var ue=E4(),we=_(ue);$i(we,21,()=>r(ce),({value:Z,timeAppeared:Ke})=>Ke,(Z,Ke)=>{let Xe=()=>r(Ke).value,Ae=()=>r(Ke).timeAppeared;var ee=Ue(),Ce=me(ee);{var qe=st=>{var ct=Xr();O(()=>_e(ct,Xe())),$(st,ct)};L(Ce,st=>{(!Ae()||Ae()<=e.position)&&st(qe)})}$(Z,ee)}),h(we),h(ue),O(()=>{var Z;return nt(we,`font-size: ${(Z=r(E))!=null?Z:""}px`)}),$(he,ue)}),$(N,Oe)},te=N=>{var Oe=Ue(),ye=me(Oe);$i(ye,17,()=>e.captions,({value:he})=>he,(he,ce)=>{let ue=()=>r(ce).value;var we=I4(),Z=_(we),Ke=_(Z,!0);h(Z),h(we),O(()=>{var Xe;nt(Z,`font-size: ${(Xe=r(E))!=null?Xe:""}px`),_e(Ke,ue())}),$(he,we)}),$(N,Oe)};L(fe,N=>{var Oe;r(b)&&((Oe=r(I))!=null&&Oe.length)?N(ke):N(te,!1)},re)}};L(ie,fe=>{r(b)&&d()?fe(ve):fe(Ie,!1)})}h(de),h(J),O(fe=>{var re;W=X(J,1,"subtitles-caption svelte-c2x749",null,W,fe),nt(J,`--subtitles-caption-margin: ${(re=r(k))!=null?re:""}%`)},[()=>({mobile:a()})]),$(q,J)};L(D,q=>{var J;(e.captions.length||(J=r(I))!=null&&J.length)&&q(H)})}h(R),O(q=>Y=X(R,1,"subtitles-container svelte-c2x749",null,Y,q),[()=>({shifted:e.shifted,auto:r(b)&&!r(S)&&!d()})]),$(t,R),U(),o()}var M4=A('<div class="text svelte-raurnb"> </div>'),L4=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>'),V4={hash:"svelte-raurnb",code:".wrapper.svelte-raurnb {height:100%;background-position:center;background-size:contain;background-repeat:no-repeat;display:flex;align-items:center;justify-content:center;font-size:16px;flex-direction:column;}.wrapper.bgCover.svelte-raurnb {background-size:cover;}.icon_wrapper.svelte-raurnb {display:flex;flex-direction:column;align-items:center;width:400px;}.icon.svelte-raurnb {width:50px;height:50px;}.text.svelte-raurnb {margin-top:20px;}"};function Vd(t,e){F(e,!0),K(t,V4);let i=Ft();var o=L4();let n;var s=P(_(o),2);{var l=d=>{var a=M4(),p=_(a);h(a),O(()=>{var f;return _e(p,`\u0412\u0438\u0434\u0435\u043E \u0432\u043E\u0441\u043F\u0440\u043E\u0438\u0437\u0432\u043E\u0434\u0438\u0442\u0441\u044F \u043D\u0430 ${(f=e.chromecastDeviceName)!=null?f:""}`)}),$(d,a)};L(s,d=>{e.chromecastDeviceName&&d(l)})}h(o),O(d=>{n=X(o,1,"wrapper svelte-raurnb",null,n,d),nt(o,`background-image: linear-gradient(0deg, rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)), url('${e.thumbUrl||""}')`)},[()=>({bgCover:i.features.previewNoEmptySpace})]),$(t,o),U()}var R4=Te('<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 $m(t,e){let i=Ve(e,["$$slots","$$events","$$legacy","children"]);var o=R4();Pe(o,()=>({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}));var n=_(o);xe(n,()=>{var s;return(s=e.children)!=null?s:se}),Se(),h(o),$(t,o)}var N4=A('<div class="container svelte-13zpvm8"><!></div>'),B4={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 xa(t){K(t,B4);var e=N4(),i=_(e);$m(i,{}),h(e),$(t,e)}var O4=A('<div class="playButton svelte-1ciju45" tabindex="0" role="button"><div class="playButtonBackground svelte-1ciju45"></div> <!></div>'),D4=A("<div><!></div>"),H4={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,
278
278
  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,
279
- 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 Ca(t,e){D(e,!0),z(t,H4);let i=m(e,"iconVisible",3,!0),o=Ee(),n=Ft(),r=o.ui.startedByKeyboard$,l=F("tooltip_play"),d=$=>{var y;let w=$.code;["Enter","Space"].includes(w)&&($.stopPropagation(),$.preventDefault(),r.set(!0),(y=e.startVideo)==null||y.call(e))},a=$=>{var w;$.stopPropagation(),(w=e.startVideo)==null||w.call(e)};var p=D4();let f;p.__click=a;var v=_(p);{var u=$=>{var w=O4();w.__keydown=d;var y=P(_(w),2);Nr(y,{}),g(w),O(()=>Ne(w,"aria-label",l)),b($,w)};L(v,$=>{i()&&$(u)})}return g(p),O($=>{f=J(p,1,"container svelte-1ciju45",null,f,$),st(p,`background-color: #222; background-image: url('${e.thumbUrl||""}')`)},[()=>({hidden:e.hidden,bgCover:n.features.previewNoEmptySpace})]),b(t,p),H({handlePressKey:d,handleClick:a})}lt(["click","keydown"]);var F4=M('<div data-testid="video_title"><span> </span></div>'),U4={hash:"svelte-14hk510",code:`.title.svelte-14hk510 {position:absolute;pointer-events:none;left:0;top:0;width:100%;height:var(--controls-gradient-height);font-size:15px;color:var(--white);box-sizing:border-box;padding:18px 20px 10px;overflow:hidden;white-space:nowrap;text-overflow:ellipsis;transition-property:visibility, transform, opacity;transition-duration:var(--controls-transition-duration);transition-timing-function:var(--controls-transition-fn);will-change:transform, opacity;background:linear-gradient(
279
+ transform 0.2s;transition-timing-function:ease-out;will-change:background, transform;}.container.svelte-1ciju45:hover .playButtonBackground:where(.svelte-1ciju45) {background-color:var(--big-play-hover-bg-color);transform:scale(1.15);}.playButton.svelte-1ciju45 svg {transform:scale(2);}`};function wa(t,e){F(e,!0),K(t,H4);let i=m(e,"iconVisible",3,!0),o=Ee(),n=Ft(),s=o.ui.startedByKeyboard$,l=z("tooltip_play"),d=y=>{var b;let w=y.code;["Enter","Space"].includes(w)&&(y.stopPropagation(),y.preventDefault(),s.set(!0),(b=e.startVideo)==null||b.call(e))},a=y=>{var w;y.stopPropagation(),(w=e.startVideo)==null||w.call(e)};var p=D4();let f;p.__click=a;var v=_(p);{var u=y=>{var w=O4();w.__keydown=d;var b=P(_(w),2);Or(b,{}),h(w),O(()=>Be(w,"aria-label",l)),$(y,w)};L(v,y=>{i()&&y(u)})}return h(p),O(y=>{f=X(p,1,"container svelte-1ciju45",null,f,y),nt(p,`background-color: #222; background-image: url('${e.thumbUrl||""}')`)},[()=>({hidden:e.hidden,bgCover:n.features.previewNoEmptySpace})]),$(t,p),U({handlePressKey:d,handleClick:a})}lt(["click","keydown"]);var F4=A('<div data-testid="video_title"><span> </span></div>'),U4={hash:"svelte-14hk510",code:`.title.svelte-14hk510 {position:absolute;pointer-events:none;left:0;top:0;width:100%;height:var(--controls-gradient-height);font-size:15px;color:var(--white);box-sizing:border-box;padding:18px 20px 10px;overflow:hidden;white-space:nowrap;text-overflow:ellipsis;transition-property:visibility, transform, opacity;transition-duration:var(--controls-transition-duration);transition-timing-function:var(--controls-transition-fn);will-change:transform, opacity;background:linear-gradient(
280
280
  0deg,
281
281
  rgba(0, 0, 0, 0) 0%,
282
282
  rgba(0, 0, 0, 0.02) 19%,
283
283
  rgba(0, 0, 0, 0.1) 34%,
284
284
  rgba(0, 0, 0, 0.4) 60%,
285
285
  rgba(0, 0, 0, 0.6) 100%
286
- );}.hidden.svelte-14hk510 {visibility:hidden;transform:translateY(calc(var(--controls-gradient-height) * -1));opacity:0;}`};function $m(t,e){D(e,!0),z(t,U4);let i=m(e,"title",3,""),o=m(e,"isHidden",3,!1),n=m(e,"ref",15),r=j(void 0);Rt(()=>{var v;requestAnimationFrame(()=>{var u;(u=e.onVisibilityChanged)==null||u.call(e,!0)});function f(u){var $;u.propertyName==="transform"&&(($=e.onVisibilityChanged)==null||$.call(e,!o()))}return(v=s(r))==null||v.addEventListener("transitionend",f),()=>{var u;return(u=s(r))==null?void 0:u.removeEventListener("transitionend",f)}});var l=F4();let d;var a=_(l),p=_(a,!0);g(a),ot(a,f=>n(f),()=>n()),g(l),ot(l,f=>B(r,f),()=>s(r)),O(f=>{d=J(l,1,"title svelte-14hk510",null,d,f),he(p,i())},[()=>({hidden:o()})]),b(t,l),H()}var z4=M('<div class="timer__cell cell svelte-1qpxtfg"><span class="cell__value svelte-1qpxtfg"> </span> <span class="cell__unit svelte-1qpxtfg"> </span></div> <span class="timer__points svelte-1qpxtfg"> </span>',1),W4=M('<div class="timer__cell cell svelte-1qpxtfg"><span class="cell__value svelte-1qpxtfg"> </span> <span class="cell__unit svelte-1qpxtfg"> </span></div> <span class="timer__points svelte-1qpxtfg"> </span>',1),q4=M('<div class="timer__cell cell svelte-1qpxtfg"><span class="cell__value svelte-1qpxtfg"> </span> <span class="cell__unit svelte-1qpxtfg"> </span></div> <span class="timer__points svelte-1qpxtfg"> </span>',1),K4=M('<div class="timer__cell cell svelte-1qpxtfg"><span class="cell__value svelte-1qpxtfg"> </span> <span class="cell__unit svelte-1qpxtfg"> </span></div>'),Q4=M('<div class="timer__container svelte-1qpxtfg"><!> <!> <!> <!></div>'),G4={hash:"svelte-1qpxtfg",code:".timer__container.svelte-1qpxtfg {display:flex;align-items:flex-start;justify-content:center;}.cell.svelte-1qpxtfg {display:flex;flex-direction:column;align-items:center;width:62px;}.cell__value.svelte-1qpxtfg {font-size:48px;line-height:1.2;font-weight:700;}.cell__unit.svelte-1qpxtfg {font-size:14px;line-height:1.2;font-weight:400;}.timer__points.svelte-1qpxtfg {display:inline-block;margin:0 8px;font-size:42px;line-height:1.2;font-weight:600;}"};function ym(t,e){D(e,!0),z(t,G4);let i=j(""),o=j(""),n=j(""),r=j(""),l,d=A=>String(A).padStart(2,"0"),a=A=>{let I=Math.floor(A/86400);I&&(A-=I*86400,B(i,d(I),!0));let E=Math.floor(A/3600);B(o,d(E),!0);let V=Math.floor(A/60)%60;B(n,d(V),!0);let K=A%60;B(r,d(K),!0)},p=()=>{let A=Math.floor(Date.now()/1e3),I=e.startTime-A;a(I),I>=1?l=requestAnimationFrame(p):e.onTimerOver()};Rt(()=>{l=requestAnimationFrame(p)}),In(()=>{cancelAnimationFrame(l)});var f=Q4(),v=_(f);{var u=A=>{var I=z4(),E=fe(I),V=_(E),K=_(V,!0);g(V);var W=P(V,2),U=_(W,!0);g(W),g(E);var Y=P(E,2),ne=_(Y,!0);g(Y),O((G,ce)=>{he(K,s(i)),he(U,G),he(ne,ce)},[()=>F("waiting_live_day_value"),()=>F("waiting_live_colon")]),b(A,I)};L(v,A=>{s(i)&&A(u)})}var $=P(v,2);{var w=A=>{var I=W4(),E=fe(I),V=_(E),K=_(V,!0);g(V);var W=P(V,2),U=_(W,!0);g(W),g(E);var Y=P(E,2),ne=_(Y,!0);g(Y),O((G,ce)=>{he(K,s(o)),he(U,G),he(ne,ce)},[()=>F("waiting_live_hour_value"),()=>F("waiting_live_colon")]),b(A,I)};L($,A=>{s(o)&&A(w)})}var y=P($,2);{var S=A=>{var I=q4(),E=fe(I),V=_(E),K=_(V,!0);g(V);var W=P(V,2),U=_(W,!0);g(W),g(E);var Y=P(E,2),ne=_(Y,!0);g(Y),O((G,ce)=>{he(K,s(n)),he(U,G),he(ne,ce)},[()=>F("waiting_live_minute_value"),()=>F("waiting_live_colon")]),b(A,I)};L(y,A=>{s(n)&&A(S)})}var T=P(y,2);{var k=A=>{var I=K4(),E=_(I),V=_(E,!0);g(E);var K=P(E,2),W=_(K,!0);g(K),g(I),O(U=>{he(V,s(r)),he(W,U)},[()=>F("waiting_live_second_value")]),b(A,I)};L(T,A=>{s(r)&&A(k)})}g(f),b(t,f),H()}var Y4=Se('<svg><!><path fill="#fefffe" d="M179.5-.5h40q127.56 18.67 171.5 140 5.724 19.896 8.5 40v40q-5.549 51.6-35.5 94-9.626-12.614-24.5-18.5-1.526-1.574-.5-3.5 39.742-61.7 23-133Q329.24 50.25 217.5 33 112.126 26.56 55 114.5q-40.395 74.102-9 152a152.3 152.3 0 0 0 14 25q1.026 1.926-.5 3.5-14.874 5.886-24.5 18.5-29.95-42.4-35.5-94v-40Q18.17 51.94 139.5 8q19.896-5.724 40-8.5" style="opacity:.965"></path><path fill="#fefffe" d="M183.5 63.5q86.294-5.475 133.5 66 32.442 60.138 8 124a186.7 186.7 0 0 1-17.5 29.5 633 633 0 0 1-38-7q54.668-57.264 19.5-128.5Q252.733 91.244 185.5 97q-74.25 14.25-88.5 88.5-5.916 53.38 32.5 90.5a1150 1150 0 0 0-36 7.5q-2.294-.044-3.5-2-43.947-63.646-16-136 32.799-70.278 109.5-82" style="opacity:.965"></path><path fill="#fefffe" d="M187.5 127.5q66.786-4.422 83.5 60 5.146 66.825-59.5 83.5-66.825 5.146-83.5-59.5-4.844-66.856 59.5-84" style="opacity:.985"></path><path fill="#fefffe" d="M219.5 399.5h-40q-67.453-7.982-117-54a31.7 31.7 0 0 1 3.5-10q8.539-9.646 20.5-14.5 54.786-19.435 113-17.5 58.214-1.935 113 17.5 11.962 4.854 20.5 14.5a31.7 31.7 0 0 1 3.5 10q-49.547 46.018-117 54" style="opacity:.986"></path></svg>');function xm(t,e){let i=Me(e,["$$slots","$$events","$$legacy","children"]);var o=Y4();Ie(o,()=>({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}));var n=_(o);be(n,()=>{var r;return(r=e.children)!=null?r:oe}),Ce(4),g(o),b(t,o)}var j4=M('<div class="upcoming svelte-15pewff"><div class="upcoming-icon svelte-15pewff"><!></div> <span class="upcoming__title svelte-15pewff"> </span></div>'),Z4=M('<div class="waiting-timer timer svelte-15pewff"><span class="timer__title svelte-15pewff"> </span> <!></div>'),X4=M('<div class="waiting-container svelte-15pewff"><!></div>'),J4={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 Md(t,e){D(e,!0),z(t,J4);let i=j(!1);We(()=>{B(i,e.startTime===void 0||e.startTime<Math.floor(Date.now()/1e3),!0)});var o=X4(),n=_(o);{var r=d=>{var a=j4(),p=_(a),f=_(p);xm(f,{}),g(p);var v=P(p,2),u=_(v,!0);g(v),g(a),O($=>he(u,$),[()=>F("waiting_live_upcoming_title")]),b(d,a)},l=d=>{var a=Z4(),p=_(a),f=_(p,!0);g(p);var v=P(p,2);let u=h(()=>e.startTime||0);ym(v,{get startTime(){return s(u)},onTimerOver:()=>B(i,!0)}),g(a),O($=>he(f,$),[()=>F("waiting_live_timer_title")]),b(d,a)};L(n,d=>{s(i)?d(r):d(l,!1)})}g(o),O(()=>st(o,`background-image: url(${s(i)?"":e.thumbUrl})`)),b(t,o),H()}var e3=M('<div class="waiting-container svelte-xvqwsa"><div class="waiting-caption svelte-xvqwsa"><!> <p class="waiting-title svelte-xvqwsa"> </p></div></div>'),t3={hash:"svelte-xvqwsa",code:".waiting-container.svelte-xvqwsa {position:absolute;top:0;left:0;width:100%;height:100%;display:flex;align-items:center;justify-content:center;background-color:var(--black);background-position:center;background-size:cover;background-repeat:no-repeat;}.waiting-container.svelte-xvqwsa::before {content:'';position:absolute;top:0;left:0;width:100%;height:100%;background-color:rgba(0, 0, 0, 0.4);backdrop-filter:blur(10px);}.waiting-caption.svelte-xvqwsa {position:relative;display:flex;flex-direction:column;align-items:center;}.waiting-title.svelte-xvqwsa {margin:0;padding:20px;text-align:center;font-size:20px;line-height:1.2;font-weight:400;}"};function Sa(t,e){D(e,!0),z(t,t3);let i=m(e,"thumbUrl",3,""),o={recover:F("waiting_live_recover_title"),record:F("waiting_record_title")},n=h(()=>o[e.kind]||"");var r=e3(),l=_(r),d=_(l);ma(d,{style:"position: static; transform: translate(0, 0)"});var a=P(d,2),p=_(a,!0);g(a),g(l),g(r),O(()=>{st(r,`background-image: url('${i()}')`),he(p,s(n))}),b(t,r),H()}var i3=Se('<svg><!><path fill="var(--btn-color, #fff)" d="M6 10.2 3.5 7.7a.99.99 0 0 0-1.4 1.4l3.2 3.2a1 1 0 0 0 1.4 0l7.6-7.6a.99.99 0 0 0-1.4-1.4z"></path></svg>');function wm(t,e){let i=Me(e,["$$slots","$$events","$$legacy","children"]);var o=i3();Ie(o,()=>({xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16","aria-hidden":"true","data-testid":"check-mark-icon",role:"img",...i}));var n=_(o);be(n,()=>{var r;return(r=e.children)!=null?r:oe}),Ce(),g(o),b(t,o)}var o3=M('<div class="select-icon svelte-124aexk"><!></div>'),n3={hash:"svelte-124aexk",code:".select-icon.svelte-124aexk {margin-right:auto;padding-right:12px;opacity:0.9;position:relative;top:3px;}"};function Ld(t){z(t,n3);var e=o3(),i=_(e);wm(i,{}),g(e),b(t,e)}var r3=(t,e)=>{t.stopPropagation(),e.item.selectItem(e.item.value)},s3=(t,e)=>{rl(t,()=>e.item.selectItem(e.item.value))},a3=M("<p> </p>"),l3=M('<p class="sublabel svelte-1t7rx2m"> </p>'),d3=M('<li role="menuitem" tabindex="0"><!> <div><!> <!></div></li>'),c3={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-14hk510 {visibility:hidden;transform:translateY(calc(var(--controls-gradient-height) * -1));opacity:0;}`};function ym(t,e){F(e,!0),K(t,U4);let i=m(e,"title",3,""),o=m(e,"isHidden",3,!1),n=m(e,"ref",15),s=j(void 0);Rt(()=>{var v;requestAnimationFrame(()=>{var u;(u=e.onVisibilityChanged)==null||u.call(e,!0)});function f(u){var y;u.propertyName==="transform"&&((y=e.onVisibilityChanged)==null||y.call(e,!o()))}return(v=r(s))==null||v.addEventListener("transitionend",f),()=>{var u;return(u=r(s))==null?void 0:u.removeEventListener("transitionend",f)}});var l=F4();let d;var a=_(l),p=_(a,!0);h(a),ot(a,f=>n(f),()=>n()),h(l),ot(l,f=>B(s,f),()=>r(s)),O(f=>{d=X(l,1,"title svelte-14hk510",null,d,f),_e(p,i())},[()=>({hidden:o()})]),$(t,l),U()}import{throttleFn as Y4}from"@vkontakte/videoplayer-shared/es2018";var z4=A('<div class="timer__cell cell svelte-gt98rn"><span class="cell__value svelte-gt98rn"> </span> <span class="cell__unit svelte-gt98rn"> </span></div> <span class="timer__points svelte-gt98rn"> </span>',1),W4=A('<div class="timer__cell cell svelte-gt98rn"><span class="cell__value svelte-gt98rn"> </span> <span class="cell__unit svelte-gt98rn"> </span></div> <span class="timer__points svelte-gt98rn"> </span>',1),K4=A('<div class="timer__cell cell svelte-gt98rn"><span class="cell__value svelte-gt98rn"> </span> <span class="cell__unit svelte-gt98rn"> </span></div> <span class="timer__points svelte-gt98rn"> </span>',1),q4=A('<div class="timer__cell cell svelte-gt98rn"><span class="cell__value svelte-gt98rn"> </span> <span class="cell__unit svelte-gt98rn"> </span></div>'),G4=A("<div><!> <!> <!> <!></div>"),Q4={hash:"svelte-gt98rn",code:".timer__container.svelte-gt98rn {display:flex;align-items:flex-start;justify-content:center;}.cell.svelte-gt98rn {display:flex;flex-direction:column;align-items:center;}.cell__value.svelte-gt98rn {font-size:48px;line-height:1.2;font-weight:600;}.small.svelte-gt98rn .cell__value:where(.svelte-gt98rn) {font-size:24px;}.cell__unit.svelte-gt98rn {font-size:14px;line-height:1.2;font-weight:400;}.small.svelte-gt98rn .cell__unit:where(.svelte-gt98rn) {font-size:12px;}.timer__points.svelte-gt98rn {display:inline-block;margin:0 8px;font-size:42px;line-height:1.2;font-weight:600;}.small.svelte-gt98rn .timer__points:where(.svelte-gt98rn) {font-size:20px;}"};function xm(t,e){F(e,!0),K(t,Q4);let i=j(""),o=j(""),n=j(""),s=j(""),l,d=32,a=d/2,p=D=>String(D).padStart(2,"0"),f=D=>Math.max(D.length,1),v=D=>`${(e.isSmallSize?a:d)*f(D)}px`,u=D=>{let H=Math.floor(D/86400);H&&(D-=H*86400,B(i,p(H),!0));let q=Math.floor(D/3600);B(o,p(q),!0);let J=Math.floor(D/60)%60;B(n,p(J),!0);let W=D%60;B(s,p(W),!0)},y=()=>{let D=Math.floor(Date.now()/1e3),H=e.startTime-D;u(H),H>=1?l=requestAnimationFrame(y):e.onTimerOver()};Rt(()=>{l=requestAnimationFrame(y)}),Yo(()=>{cancelAnimationFrame(l)});var w=G4();let b;var S=_(w);{var T=D=>{var H=z4(),q=me(H);let J;var W=_(q),de=_(W,!0);h(W);var ie=P(W,2),ve=_(ie,!0);h(ie),h(q);var Ie=P(q,2),fe=_(Ie,!0);h(Ie),O((re,ke,te)=>{J=nt(q,"",J,{width:re}),_e(de,r(i)),_e(ve,ke),_e(fe,te)},[()=>v(r(i)),()=>z("waiting_live_day_value"),()=>z("waiting_live_colon")]),$(D,H)};L(S,D=>{r(i)&&D(T)})}var E=P(S,2);{var M=D=>{var H=W4(),q=me(H);let J;var W=_(q),de=_(W,!0);h(W);var ie=P(W,2),ve=_(ie,!0);h(ie),h(q);var Ie=P(q,2),fe=_(Ie,!0);h(Ie),O((re,ke,te)=>{J=nt(q,"",J,{width:re}),_e(de,r(o)),_e(ve,ke),_e(fe,te)},[()=>v(r(o)),()=>z("waiting_live_hour_value"),()=>z("waiting_live_colon")]),$(D,H)};L(E,D=>{r(o)&&D(M)})}var I=P(E,2);{var k=D=>{var H=K4(),q=me(H);let J;var W=_(q),de=_(W,!0);h(W);var ie=P(W,2),ve=_(ie,!0);h(ie),h(q);var Ie=P(q,2),fe=_(Ie,!0);h(Ie),O((re,ke,te)=>{J=nt(q,"",J,{width:re}),_e(de,r(n)),_e(ve,ke),_e(fe,te)},[()=>v(r(n)),()=>z("waiting_live_minute_value"),()=>z("waiting_live_colon")]),$(D,H)};L(I,D=>{r(n)&&D(k)})}var R=P(I,2);{var Y=D=>{var H=q4();let q;var J=_(H),W=_(J,!0);h(J);var de=P(J,2),ie=_(de,!0);h(de),h(H),O((ve,Ie)=>{q=nt(H,"",q,{width:ve}),_e(W,r(s)),_e(ie,Ie)},[()=>v(r(s)),()=>z("waiting_live_second_value")]),$(D,H)};L(R,D=>{r(s)&&D(Y)})}h(w),O(D=>b=X(w,1,"timer__container svelte-gt98rn",null,b,D),[()=>({small:e.isSmallSize})]),$(t,w),U()}var j4=A('<div class="waiting svelte-ye9pkq"><span> </span></div>'),Z4=A('<div class="upcoming-timer timer svelte-ye9pkq"><span> </span> <!></div>'),X4=A('<div class="waiting-container svelte-ye9pkq"><!></div>'),J4={hash:"svelte-ye9pkq",code:".waiting-container.svelte-ye9pkq {position:absolute;top:0;left:0;width:100%;height:100%;background-color:var(--black);background-position:center;background-size:cover;background-repeat:no-repeat;white-space:nowrap;}.waiting-container.svelte-ye9pkq::before {content:'';position:absolute;top:0;left:0;width:100%;height:100%;background-color:rgba(0, 0, 0, 0.56);z-index:1;backdrop-filter:blur(15px);}.waiting.svelte-ye9pkq {position:absolute;top:50%;left:0;width:100%;transform:translateY(-50%);display:flex;flex-direction:column;align-items:center;justify-content:center;z-index:2;}.waiting__title.svelte-ye9pkq {font-size:20px;line-height:1.2;font-weight:600;}.upcoming-timer.svelte-ye9pkq {position:absolute;top:50%;left:50%;transform:translate(-50%, -50%);z-index:2;}.timer.svelte-ye9pkq {display:flex;flex-direction:column;align-items:center;justify-content:center;}.timer__title.svelte-ye9pkq {display:inline-block;vertical-align:middle;margin-bottom:12px;font-size:20px;line-height:1.2;font-weight:600;}.small.svelte-ye9pkq {font-size:15px;}"};function Rd(t,e){F(e,!0),K(t,J4);let i=g(()=>e.startTime===void 0||e.startTime<Math.floor(Date.now()/1e3)),o=j(void 0),n=j(void 0),s,l=j(void 0),d=j(void 0),a=g(()=>{var b,S;return((b=r(l))!=null?b:1/0)<=509||((S=r(d))!=null?S:1/0)<=320});function p(){s&&(cancelAnimationFrame(s),s=void 0)}let f=Y4(()=>{p(),s=requestAnimationFrame(()=>{var b,S,T,E;r(i)?((b=e.onUpcomingLiveViewStateChanged)==null||b.call(e,"default",!1,r(n)),(S=e.onUpcomingLiveViewStateChanged)==null||S.call(e,"expired",!0,r(o))):((T=e.onUpcomingLiveViewStateChanged)==null||T.call(e,"default",!0,r(n)),(E=e.onUpcomingLiveViewStateChanged)==null||E.call(e,"expired",!1,r(o)))})},300);We(()=>{r(d),r(l),f()}),Yo(()=>{var b,S;p(),f.cancel(),(b=e.onUpcomingLiveViewStateChanged)==null||b.call(e,"default",!1,r(n)),(S=e.onUpcomingLiveViewStateChanged)==null||S.call(e,"expired",!1,r(o))});var v=X4(),u=_(v);{var y=b=>{var S=j4(),T=_(S);let E;var M=_(T,!0);h(T),h(S),ot(S,I=>B(o,I),()=>r(o)),O((I,k)=>{E=X(T,1,"waiting__title svelte-ye9pkq",null,E,I),_e(M,k)},[()=>({small:r(a)}),()=>z("waiting_live_upcoming_title")]),$(b,S)},w=b=>{var S=Z4(),T=_(S);let E;var M=_(T,!0);h(T);var I=P(T,2);let k=g(()=>e.startTime||0);xm(I,{get isSmallSize(){return r(a)},get startTime(){return r(k)},onTimerOver:()=>B(i,!0)}),h(S),ot(S,R=>B(n,R),()=>r(n)),O((R,Y)=>{E=X(T,1,"timer__title svelte-ye9pkq",null,E,R),_e(M,Y)},[()=>({small:r(a)}),()=>z("waiting_live_timer_title")]),$(b,S)};L(u,b=>{r(i)?b(y):b(w,!1)})}h(v),O(()=>nt(v,`background-image: url(${e.thumbUrl})`)),Xn(v,"clientWidth",b=>B(l,b)),Xn(v,"clientHeight",b=>B(d,b)),$(t,v),U()}var e3=A('<div class="waiting-container svelte-xvqwsa"><div class="waiting-caption svelte-xvqwsa"><!> <p class="waiting-title svelte-xvqwsa"> </p></div></div>'),t3={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 Ca(t,e){F(e,!0),K(t,t3);let i=m(e,"thumbUrl",3,""),o={recover:z("waiting_live_recover_title"),record:z("waiting_record_title")},n=g(()=>o[e.kind]||"");var s=e3(),l=_(s),d=_(l);fa(d,{style:"position: static; transform: translate(0, 0)"});var a=P(d,2),p=_(a,!0);h(a),h(l),h(s),O(()=>{nt(s,`background-image: url('${i()}')`),_e(p,r(n))}),$(t,s),U()}var i3=Te('<svg><!><path fill="var(--btn-color, #fff)" d="M6 10.2 3.5 7.7a.99.99 0 0 0-1.4 1.4l3.2 3.2a1 1 0 0 0 1.4 0l7.6-7.6a.99.99 0 0 0-1.4-1.4z"></path></svg>');function wm(t,e){let i=Ve(e,["$$slots","$$events","$$legacy","children"]);var o=i3();Pe(o,()=>({xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16","aria-hidden":"true","data-testid":"check-mark-icon",role:"img",...i}));var n=_(o);xe(n,()=>{var s;return(s=e.children)!=null?s:se}),Se(),h(o),$(t,o)}var o3=A('<div class="select-icon svelte-124aexk"><!></div>'),n3={hash:"svelte-124aexk",code:".select-icon.svelte-124aexk {margin-right:auto;padding-right:12px;opacity:0.9;position:relative;top:3px;}"};function Nd(t){K(t,n3);var e=o3(),i=_(e);wm(i,{}),h(e),$(t,e)}var r3=(t,e)=>{t.stopPropagation(),e.item.selectItem(e.item.value)},s3=(t,e)=>{ol(t,()=>e.item.selectItem(e.item.value))},a3=A("<p> </p>"),l3=A('<p class="sublabel svelte-1t7rx2m"> </p>'),d3=A('<li role="menuitem" tabindex="0"><!> <div><!> <!></div></li>'),c3={hash:"svelte-1t7rx2m",code:`.menu-item-value.svelte-1t7rx2m {display:flex;flex-direction:column;align-items:end;min-width:0;}.menu-item-value[data-selected='false'].svelte-1t7rx2m {--select-icon-width: 16px;--icon-padding: 12px;
287
287
 
288
288
  /**
289
289
  * \u0415\u0441\u043B\u0438 \u044D\u043B\u0435\u043C\u0435\u043D\u0442 \u043D\u0435 \u0432\u044B\u0431\u0440\u0430\u043D(\u0438\u043A\u043E\u043D\u043A\u0430 \u043E\u0442\u0441\u0443\u0442\u0441\u0442\u0432\u0443\u0435\u0442), \u0442\u043E \u0434\u043E\u043B\u0436\u043D\u044B \u0437\u0430\u043F\u043E\u043B\u043D\u0438\u0442\u044C \u043F\u0443\u0441\u0442\u043E\u0435 \u043C\u0435\u0441\u0442\u043E
290
290
  * \u0447\u0442\u043E\u0431\u044B \u0432\u0441\u0435 \u043B\u0435\u0439\u0431\u043B\u044B \u043D\u0430\u0447\u0438\u043D\u0430\u043B\u0438\u0441\u044C \u0441 \u043E\u0434\u043D\u043E\u0433\u043E \u043E\u0442\u0441\u0442\u0443\u043F\u0430.
291
291
  */margin-left:calc(var(--icon-padding) + var(--select-icon-width));}.label.svelte-1t7rx2m,
292
- .sublabel.svelte-1t7rx2m {text-overflow:ellipsis;overflow:hidden;max-width:100%;}.sublabel.svelte-1t7rx2m {opacity:0.5;}`};function Cm(t,e){D(e,!0),z(t,c3);let i=m(e,"isMobile",3,!1);var o=d3();let n;o.__click=[r3,e],o.__keydown=[s3,e];var r=_(o);{var l=w=>{Ld(w,{})};L(r,w=>{e.item.selected&&w(l)})}var d=P(r,2);let a;var p=_(d);{var f=w=>{var y=Ue(),S=fe(y);yi(S,()=>e.item.valueComponent,(T,k)=>{k(T,ps(()=>{var A;return(A=e.item.valueComponentParams)!=null?A:{}}))}),b(w,y)},v=w=>{var y=a3();let S;var T=_(y,!0);g(y),O(k=>{var A;S=J(y,1,"label svelte-1t7rx2m",null,S,k),he(T,(A=e.item.label)!=null?A:e.item.value)},[()=>({mobile:i()})]),b(w,y)};L(p,w=>{e.item.valueComponent?w(f):w(v,!1)})}var u=P(p,2);{var $=w=>{var y=l3(),S=_(y,!0);g(y),O(()=>he(S,e.item.sublabel)),b(w,y)};L(u,w=>{e.item.sublabel&&w($)})}g(d),g(o),O((w,y,S)=>{n=J(o,1,"item",null,n,w),Ne(o,"data-value",e.item.value),Ne(o,"aria-label",y),Ne(o,"data-testid",e.item.dataTestid),a=J(d,1,"menu-item-value svelte-1t7rx2m",null,a,S),Ne(d,"data-selected",e.item.selected)},[()=>({mobile:i()}),()=>{var w,y;return(y=(w=e.item.ariaLabel)!=null?w:e.item.label)!=null?y:e.item.value.toString()},()=>({"submenu-value-mobile":i()})]),b(t,o),H()}lt(["click","keydown"]);var u3=M('<li role="menuitem" tabindex="0" aria-haspopup="true"><!> <div><!></div></li>');function Sm(t,e){D(e,!0);let i=m(e,"isMobile",3,!1),o=m(e,"refMenuItems",15),n=h(()=>()=>e.openSubMenuList(e.item.children)),r=h(()=>y=>Gc(y,s(n)));var l=u3();let d;l.__click=function(...y){var S;(S=s(n))==null||S.apply(this,y)},l.__keydown=function(...y){var S;(S=s(r))==null||S.apply(this,y)};var a=_(l);{var p=y=>{Ld(y,{})};L(a,y=>{e.item.selected&&y(p)})}var f=P(a,2);let v;var u=_(f);{var $=y=>{var S=Ue();let T=h(()=>e.item.valueComponent);var k=fe(S);yi(k,()=>s(T),(A,I)=>{I(A,ps(()=>{var E;return(E=e.item.valueComponentParams)!=null?E:{}}))}),b(y,S)},w=y=>{var S=Xr();O(()=>he(S,e.item.label)),b(y,S)};L(u,y=>{e.item.valueComponent?y($):y(w,!1)})}g(f),g(l),ot(l,y=>o(o()[e.item.id]=y,!0),()=>{var y;return(y=o())==null?void 0:y[e.item.id]}),O((y,S)=>{var T;d=J(l,1,"item",null,d,y),Ne(l,"aria-label",(T=e.item.ariaLabel)!=null?T:e.item.label),Ne(l,"data-testid",e.item.id),v=J(f,1,"menu-item-value",null,v,S)},[()=>({mobile:i(),bottomBordered:e.item.bottomBordered}),()=>({"submenu-value-mobile":i()})]),b(t,l),H()}lt(["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 f3=(t,e)=>{Kh(t,e.returnFromSubMenu,e.closeSettingsMenu)},m3=(t,e)=>{t.stopPropagation(),e.returnFromSubMenu()},v3=(t,e)=>{td(t)&&(vr(t),e.returnFromSubMenu())},g3=M('<div><ul role="menu"><li role="menuitem" tabindex="0" data-testid="return-to-settings-menu"><!> <p class="title svelte-7dfsuh"> </p></li> <!></ul></div>'),h3={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 Cm(t,e){F(e,!0),K(t,c3);let i=m(e,"isMobile",3,!1);var o=d3();let n;o.__click=[r3,e],o.__keydown=[s3,e];var s=_(o);{var l=w=>{Nd(w,{})};L(s,w=>{e.item.selected&&w(l)})}var d=P(s,2);let a;var p=_(d);{var f=w=>{var b=Ue(),S=me(b);yi(S,()=>e.item.valueComponent,(T,E)=>{E(T,ps(()=>{var M;return(M=e.item.valueComponentParams)!=null?M:{}}))}),$(w,b)},v=w=>{var b=a3();let S;var T=_(b,!0);h(b),O(E=>{var M;S=X(b,1,"label svelte-1t7rx2m",null,S,E),_e(T,(M=e.item.label)!=null?M:e.item.value)},[()=>({mobile:i()})]),$(w,b)};L(p,w=>{e.item.valueComponent?w(f):w(v,!1)})}var u=P(p,2);{var y=w=>{var b=l3(),S=_(b,!0);h(b),O(()=>_e(S,e.item.sublabel)),$(w,b)};L(u,w=>{e.item.sublabel&&w(y)})}h(d),h(o),O((w,b,S)=>{n=X(o,1,"item",null,n,w),Be(o,"data-value",e.item.value),Be(o,"aria-label",b),Be(o,"data-testid",e.item.dataTestid),a=X(d,1,"menu-item-value svelte-1t7rx2m",null,a,S),Be(d,"data-selected",e.item.selected)},[()=>({mobile:i()}),()=>{var w,b;return(b=(w=e.item.ariaLabel)!=null?w:e.item.label)!=null?b:e.item.value.toString()},()=>({"submenu-value-mobile":i()})]),$(t,o),U()}lt(["click","keydown"]);var u3=A('<li role="menuitem" tabindex="0" aria-haspopup="true"><!> <div><!></div></li>');function Sm(t,e){F(e,!0);let i=m(e,"isMobile",3,!1),o=m(e,"refMenuItems",15),n=g(()=>()=>e.openSubMenuList(e.item.children)),s=g(()=>b=>jc(b,r(n)));var l=u3();let d;l.__click=function(...b){var S;(S=r(n))==null||S.apply(this,b)},l.__keydown=function(...b){var S;(S=r(s))==null||S.apply(this,b)};var a=_(l);{var p=b=>{Nd(b,{})};L(a,b=>{e.item.selected&&b(p)})}var f=P(a,2);let v;var u=_(f);{var y=b=>{var S=Ue();let T=g(()=>e.item.valueComponent);var E=me(S);yi(E,()=>r(T),(M,I)=>{I(M,ps(()=>{var k;return(k=e.item.valueComponentParams)!=null?k:{}}))}),$(b,S)},w=b=>{var S=Xr();O(()=>_e(S,e.item.label)),$(b,S)};L(u,b=>{e.item.valueComponent?b(y):b(w,!1)})}h(f),h(l),ot(l,b=>o(o()[e.item.id]=b,!0),()=>{var b;return(b=o())==null?void 0:b[e.item.id]}),O((b,S)=>{var T;d=X(l,1,"item",null,d,b),Be(l,"aria-label",(T=e.item.ariaLabel)!=null?T:e.item.label),Be(l,"data-testid",e.item.id),v=X(f,1,"menu-item-value",null,v,S)},[()=>({mobile:i(),bottomBordered:e.item.bottomBordered}),()=>({"submenu-value-mobile":i()})]),$(t,l),U()}lt(["click","keydown"]);var Dr={"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 f3=(t,e)=>{qh(t,e.returnFromSubMenu,e.closeSettingsMenu)},m3=(t,e)=>{t.stopPropagation(),e.returnFromSubMenu()},v3=(t,e)=>{nd(t)&&(hr(t),e.returnFromSubMenu())},g3=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>'),h3={hash:"svelte-7dfsuh",code:`.sub-menu.svelte-7dfsuh {--item-padding-vertical-mobile: 16px;--item-padding-vertical: 7px;--item-label-line-height: 18px;
293
293
  /*\u0414\u043B\u044F \u043F\u0435\u0440\u0432\u043E\u0433\u043E \u0438 \u043F\u043E\u0441\u043B\u0435\u0434\u043D\u0435\u0433\u043E \u044D\u043B\u0435\u043C\u0435\u043D\u0442\u0430 \u0441\u043F\u0438\u0441\u043A\u0430*/--edge-item-padding-vertical-mobile: calc(6px + var(--item-padding-vertical-mobile));--edge-item-padding-vertical: calc(8px + var(--item-padding-vertical));}.sub-menu.svelte-7dfsuh .item.mobile {padding:var(--item-padding-vertical-mobile) 17px;line-height:var(--item-label-line-height);font-size:14px;}.sub-menu.svelte-7dfsuh {
294
294
  /**
295
295
  * \u0422\u0430\u043A \u043A\u0430\u043A \u0443 \u043D\u0430\u0441 \u0437\u0430\u0433\u043E\u043B\u043E\u0432\u043E\u043A \u0434\u043E\u043B\u0436\u0435\u043D \u0431\u044B\u0442\u044C \u0441\u0442\u0438\u043A\u0438, \u043D\u0443\u0436\u043D\u043E \u0434\u043E\u0431\u0430\u0432\u0438\u0442\u044C \u043F\u0430\u0434\u0434\u0438\u043D\u0433 \u0441 \u0432\u044B\u0441\u043E\u0442\u0443 \u0437\u0430\u0433\u043E\u043B\u043E\u0432\u043A\u0430.
@@ -299,14 +299,14 @@ Try switching the\xA0quality to\xA0Auto.`},Ih=w_;var fs=new Map;fs.set(Ph.EN,Ih)
299
299
  var(--edge-item-padding-vertical-mobile) + var(--item-padding-vertical-mobile) + var(--item-label-line-height) +
300
300
  1px
301
301
  );}.sub-menu.svelte-7dfsuh .items:where(.svelte-7dfsuh) .item.header:where(.svelte-7dfsuh) {position:absolute;top:0;left:0;right:0;min-width:max-content;display:flex;justify-content:space-between;border-bottom:var(--divider-border);}.header.svelte-7dfsuh .title:where(.svelte-7dfsuh) {margin-left:8px;}.sub-menu.svelte-7dfsuh .item {padding:var(--item-padding-vertical) 12px;padding-right:22px;}.items.svelte-7dfsuh .item:first-child:not(.mobile) {padding-top:var(--edge-item-padding-vertical);}.items.svelte-7dfsuh .item:last-child:not(.mobile) {padding-bottom:var(--edge-item-padding-vertical);}.items.svelte-7dfsuh .item.mobile:first-child {padding-top:var(--edge-item-padding-vertical-mobile);}.items.svelte-7dfsuh .item.mobile:last-child {padding-bottom:var(--edge-item-padding-vertical-mobile);}.sub-menu.svelte-7dfsuh .item.bottomBordered {border-bottom:var(--divider-border);}.sub-menu.svelte-7dfsuh .item .sublabel {line-height:14px;font-size:12px;}.sub-menu.svelte-7dfsuh .item:not(.mobile) .label,
302
- .item.svelte-7dfsuh:not(.mobile) p:where(.svelte-7dfsuh) {line-height:var(--item-label-line-height);font-size:13px;}`};function Em(t,e){D(e,!0),z(t,h3);let[i,o]=De(),n=()=>C(v,"$isFullscreen",i),r=()=>C(u,"$playerSize",i),l=m(e,"isMobile",3,!1),d=m(e,"playerControlsHeight",3,0),a=m(e,"ariaLabelReturnFromSubMenu",19,()=>F("aria_label_submenu_back")),p=m(e,"listRef",15);Rt(()=>{let G=e.items.findIndex(ce=>ce.selected);p().children[G+1].focus()});let f=Ee(),v=f.ui.isFullscreen,u=f.ui.playerSize,$=j(void 0),w=j(0),y=j(0),S=h(()=>l()&&n()?`max-height: ${Math.round(r().height*.6)}px`:l()?"":`max-height: ${r().height-32-s(y)-d()}px; overflow: auto;`),T=h(()=>Math.max(e.minWidth,s(w)));var k=g3();let A;var I=_(k);let E;I.__keydown=[f3,e];var V=_(I);let K;V.__click=[m3,e],V.__keydown=[v3,e];var W=_(V);Os(W,{direction:"left"});var U=P(W,2),Y=_(U,!0);g(U),g(V),ot(V,G=>B($,G),()=>s($));var ne=P(V,2);$i(ne,17,()=>e.items,Ol,(G,ce)=>{var le=Ue(),we=fe(le);{var Ve=ae=>{Cm(ae,{get item(){return s(ce)},get isMobile(){return l()}})},ve=(ae,Le)=>{{var te=N=>{Sm(N,{get isMobile(){return l()},get item(){return s(ce)},get openSubMenuList(){return e.openSubMenuList},get refMenuItems(){return e.refMenuItems}})};L(ae,N=>{s(ce).type==="OPEN_SUB_MENU"&&N(te)},Le)}};L(we,ae=>{s(ce).type==="SELECT_VALUE"?ae(Ve):ae(ve,!1)})}b(G,le)}),g(I),ot(I,G=>p(G),()=>p()),g(k),O((G,ce,le)=>{A=J(k,1,"sub-menu menu svelte-7dfsuh",null,A,G),Ne(k,"data-testid",`sub-menu-${e.id}`),st(k,`min-width: ${s(T)}px`),E=J(I,1,"items svelte-7dfsuh",null,E,ce),st(I,s(S)),K=J(V,1,"item header back svelte-7dfsuh",null,K,le),Ne(V,"aria-label",a()),he(Y,e.title)},[()=>({desktop:!l(),mobile:l()}),()=>({mobile:l()}),()=>({mobile:l()})]),es(V,"clientWidth",G=>B(w,G)),es(V,"clientHeight",G=>B(y,G)),b(t,k),H(),o()}lt(["keydown","click"]);import{noop as _3}from"@vkontakte/videoplayer-shared/es2018";var b3=(t,e)=>Gc(t,e()),$3=(t,e)=>{t.stopPropagation(),e()()},y3=M('<div class="value svelte-1ikfjte"> </div>'),x3=M('<li role="menuitem" tabindex="0" aria-haspopup="true"><div class="icon-wrapper"><!></div> <div class="label"> </div> <!></li>'),w3={hash:"svelte-1ikfjte",code:".value.svelte-1ikfjte {position:relative;opacity:0.7;overflow:hidden;text-overflow:ellipsis;}"};function Im(t,e){D(e,!0),z(t,w3);let i=m(e,"isMobile",3,!1),o=m(e,"onClick",3,_3),n=m(e,"valueComponent",3,void 0),r=m(e,"ref",15);var l=x3();let d;l.__click=[$3,o],l.__keydown=[b3,o];var a=_(l),p=_(a);{var f=T=>{$a(T,{get icon(){return e.icon}})},v=T=>{var k=Ue();let A=h(()=>e.icon);var I=fe(k);yi(I,()=>s(A),(E,V)=>{V(E,{})}),b(T,k)};L(p,T=>{typeof e.icon=="string"?T(f):T(v,!1)})}g(a);var u=P(a,2),$=_(u,!0);g(u);var w=P(u,2);{var y=T=>{var k=Ue();let A=h(n);var I=fe(k);yi(I,()=>s(A),(E,V)=>{V(E,{})}),b(T,k)},S=T=>{var k=y3(),A=_(k,!0);g(k),O(()=>he(A,e.value)),b(T,k)};L(w,T=>{n()?T(y):T(S,!1)})}g(l),ot(l,T=>r(T),()=>r()),O(T=>{d=J(l,1,"item",null,d,T),Ne(l,"aria-label",e.ariaLabel),Ne(l,"data-testid",e.id),he($,e.label)},[()=>({mobile:i()})]),b(t,l),H()}lt(["click","keydown"]);import{noop as I1}from"@vkontakte/videoplayer-shared/es2018";var C3=(t,e)=>{rl(t,()=>e())},S3=M('<div class="icon icon-error-stub"><div class="inner"></div></div>'),T3=M('<img class="icon" aria-hidden="true"/>'),E3=M('<li role="menuitem" tabindex="0"><div class="icon-wrapper"><!></div> <div class="label svelte-15ifkac"> </div></li>'),I3={hash:"svelte-15ifkac",code:".label.svelte-15ifkac {overflow:hidden;text-overflow:ellipsis;}"};function km(t,e){D(e,!0),z(t,I3);let i=m(e,"isMobile",3,!1),o=m(e,"onClick",3,I1),n=m(e,"closeSettings",3,I1),r=j(!1),l=()=>{B(r,!0)},d=S=>{S==null||S.stopPropagation(),o()(),n()()};var a=E3();let p;a.__click=d,a.__keydown=[C3,d];var f=_(a),v=_(f);{var u=S=>{var T=Ue(),k=fe(T);{var A=E=>{var V=S3();b(E,V)},I=E=>{var V=T3();O(()=>Ne(V,"src",e.icon)),wt("error",V,l),ea(V),b(E,V)};L(k,E=>{s(r)?E(A):E(I,!1)})}b(S,T)},$=S=>{var T=Ue();let k=h(()=>e.icon);var A=fe(T);yi(A,()=>s(k),(I,E)=>{E(I,{})}),b(S,T)};L(v,S=>{typeof e.icon=="string"?S(u):S($,!1)})}g(f);var w=P(f,2),y=_(w,!0);g(w),g(a),O(S=>{var T;p=J(a,1,"item",null,p,S),Ne(a,"aria-label",(T=e.ariaLabel)!=null?T:e.label),Ne(a,"data-testid",e.id),he(y,e.label)},[()=>({mobile:i()})]),b(t,a),H()}lt(["click","keydown"]);import{noop as A3}from"@vkontakte/videoplayer-shared/es2018";var k3=M('<div class="toggle_wrap svelte-17wbjko"><div></div> <div class="toggle-label svelte-17wbjko"></div></div>'),P3={hash:"svelte-17wbjko",code:'.toggle_wrap.svelte-17wbjko {min-height:15px;padding:0;font-size:12px;line-height:15px;cursor:pointer;user-select:none;}.toggle.svelte-17wbjko {float:right;margin-top:3px;width:28px;height:9px;border-radius:45px;background-color:var(--toggle-color-separator);cursor:pointer;}.toggle.svelte-17wbjko::after {content:"";float:left;position:relative;width:15px;height:15px;border-radius:50%;background-color:var(--toggle-color-off);top:-3px;left:0;transition:left .1s ease;}.toggle.on.svelte-17wbjko::after {background-color:var(--toggle-color-on);left:13px;}.toggle-label.svelte-17wbjko {overflow:hidden;}'};function Pm(t,e){z(t,P3);let i=m(e,"enabled",3,!1);var o=k3(),n=_(o);let r;Ce(2),g(o),O(l=>r=J(n,1,"toggle svelte-17wbjko",null,r,l),[()=>({on:i()})]),b(t,o)}var M3=(t,e,i)=>{Qh(t,e(),o=>i()(o))},L3=(t,e,i)=>{t.stopPropagation(),e()(!i())},V3=M('<div><div class="icon-wrapper"><!></div> <div class="label"> </div> <!></div>'),R3=M('<li role="menuitem" tabindex="0"><!></li>');function Am(t,e){D(e,!0);let i=m(e,"isMobile",3,!1),o=m(e,"onClick",3,A3),n=m(e,"enabled",3,!1),r=m(e,"tooltipText",3,void 0),l=m(e,"maxTooltipWidth",3,void 0);var d=R3();let a;d.__click=[L3,o,n],d.__keydown=[M3,n,o];var p=_(d);va(p,{get content(){return r()},get isMobile(){return i()},placement:"left",translateX:10,isFullWidthWrapper:!0,get maxTooltipWidth(){return l()},children:(f,v)=>{var u=V3();let $;var w=_(u),y=_(w);{var S=E=>{$a(E,{get icon(){return e.icon}})},T=E=>{var V=Ue();let K=h(()=>e.icon);var W=fe(V);yi(W,()=>s(K),(U,Y)=>{Y(U,{})}),b(E,V)};L(y,E=>{typeof e.icon=="string"?E(S):E(T,!1)})}g(w);var k=P(w,2),A=_(k,!0);g(k);var I=P(k,2);Pm(I,{get enabled(){return n()}}),g(u),O(E=>{$=J(u,1,"switch-wrapper",null,$,E),he(A,e.label)},[()=>({mobile:i()})]),b(f,u)},$$slots:{default:!0}}),g(d),O(f=>{var v;a=J(d,1,"item switch-item",null,a,f),Ne(d,"aria-label",(v=e.ariaLabel)!=null?v:e.label),Ne(d,"data-testid",e.id)},[()=>({mobile:i()})]),b(t,d),H()}lt(["click","keydown"]);import{isValidURL as rx,VideoQuality as D1}from"@vkontakte/videoplayer-shared/es2018";var k1=()=>{let t=j(oi([])),e=h(()=>(s(t).length?s(t).at(-1):null)||null);return{get current(){return s(e)},pushSubMenu:i=>{s(t).push(i)},popSubMenu:()=>{B(t,s(t).slice(0,-1),!0)},popAllSubMenus:()=>{B(t,[],!0)}}};var N3=M('<div class="quality-icon svelte-t2qk8t"><!></div>'),B3=M('<div class="quality-label svelte-t2qk8t"><span> </span> <!></div>'),O3={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 Ta(t,e){D(e,!0),z(t,O3);let i=m(e,"isSubCase",3,!1),o=h(()=>Jc(e.quality));var n=B3(),r=_(n);let l;var d=_(r,!0);g(r);var a=P(r,2);{var p=f=>{var v=N3();let u=h(()=>s(o));var $=_(v);yi($,()=>s(u),(w,y)=>{y(w,{})}),g(v),b(f,v)};L(a,f=>{s(o)&&!e.isMobile&&f(p)})}g(n),O(f=>{l=J(r,1,"svelte-t2qk8t",null,l,f),he(d,e.label)},[()=>({sub:!i(),quality:!e.isMobile})]),b(t,n),H()}import{VideoQuality as D3}from"@vkontakte/videoplayer-shared/es2018";import{VideoQuality as P1}from"@vkontakte/videoplayer-core/es2018";var A1=({quality:t,availableQualities:e})=>{let i=e.find(o=>o.value===t);return i?i.displayValue:t},M1=({quality:t,availableQualities:e,isAutoQualityEnabled:i})=>{if(!t)return"...";let o=A1({quality:t,availableQualities:e});return i?t===P1.INVARIANT?F("auto_quality_invariant"):F("auto_quality",{actual:o}):o},L1=({quality:t,availableQualities:e,prefix:i,onlyPrefix:o})=>t?o||t===P1.INVARIANT?i:`${i}${A1({quality:t,availableQualities:e})}`:"...";var H3=M('<div class="menu-item-value-wrapper svelte-1j7b2kc"><!></div>'),F3={hash:"svelte-1j7b2kc",code:".menu-item-value-wrapper.svelte-1j7b2kc {line-height:normal;}"};function fl(t,e){D(e,!0),z(t,F3);let[i,o]=De(),n=()=>C(a,"$currentQuality$",i),r=()=>C(p,"$availableQualities$",i),l=()=>C(f,"$isMobile$",i),d=Ee(),a=d.state.currentQuality$,p=d.state.availableQualities$,f=d.ui.isMobile,v=" \xB7 ",u=h(()=>e.prefix+(e.selected&&n()!==D3.INVARIANT?v:"")),$=h(()=>L1({prefix:s(u),quality:n(),availableQualities:r(),onlyPrefix:!e.selected}));var w=H3(),y=_(w);let S=h(()=>e.selected?n():void 0);Ta(y,{get quality(){return s(S)},get label(){return s($)},get isMobile(){return l()},isSubCase:!0}),g(w),b(t,w),H(),o()}var U3=t=>{let e=t.join("|"),i="<(?<keyhtml>.*?)(?<propshtml> .*?)?>(?<childrenhtml>.*?)</\\k<keyhtml>>",o=`{(?<keyi18n>${e})}(?<childreni18n>.*?){/\\k<keyi18n>}`,n="<(?<keyhtmlself>.*?)(?<propshtmlself> .*?)?/?>",r=`{(?<keyi18nself>${e})}`;return new RegExp(`${i}|${o}|${n}|${r}`,"g")},z3={br:!0,span:!0},Mm=(t,e={})=>{var d,a,p,f,v,u,$;if(!t)return t;let i={...z3,...e},o=Object.keys(i);if(!o.length)return t;let n=U3(o),r=[],l=0;for(let w of t.matchAll(n)){let y=w[0],S=((d=w.groups)==null?void 0:d.keyhtml)||((a=w.groups)==null?void 0:a.keyi18n)||((p=w.groups)==null?void 0:p.keyhtmlself)||((f=w.groups)==null?void 0:f.keyi18nself)||"",{index:T}=w;if(!i[S]){r.push(t.slice(l,T)),l=T+y.length;continue}let k=(v=w.groups)!=null&&v.childrenhtml?Mm(w.groups.childrenhtml,i):"",A=(u=w.groups)!=null&&u.childrenhtml?y.replace(new RegExp(($=w.groups)==null?void 0:$.childrenhtml),()=>k||""):y;r.push(t.slice(l,T),A),l=T+y.length}return l===0?t:(r.push(t.slice(l)),r.join(""))};function Vd(t,e){D(e,!1);let i=m(e,"message",8),o=Mm(i());Lr();var n=Ue(),r=fe(n);{var l=d=>{var a=Ue(),p=fe(a);Dl(p,()=>o),b(d,a)};L(r,d=>{o&&d(l)})}b(t,n),H()}var W3=M('<p class="quality-applies sublabel svelte-1qk3zto"><!></p>'),q3={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 Lm(t,e){D(e,!1),z(t,q3),Lr();var i=W3(),o=_(i);let n=kr(()=>F("quality_applience",{action:`<span>${F("quality_applience_action")}</span>`}));Vd(o,{get message(){return s(n)}}),g(i),b(t,i),H()}var R1=({isAutoQualityEnabled:t,trafficSavingEnabled:e,highQualityEnabled:i})=>{let o=!t&&!e&&!i;return{id:"QUALITY_OTHER",type:"OPEN_SUB_MENU",selected:o,valueComponent:fl,valueComponentParams:{prefix:F("other_quality"),selected:o},children:"QUALITY"}},Vm=({appliesTo:t,labelWithQuality:e,selected:i},{selectQuality:o})=>({id:"QUALITY_AUTO",type:"SELECT_VALUE",value:"auto",label:F("auto_quality_limit"),valueComponent:e?fl:void 0,valueComponentParams:{prefix:F("auto_quality_limit"),selected:i},selectItem:()=>o("auto",t),selected:i}),N1=()=>({id:"QUALITY_APPLIENCE",type:"OPEN_SUB_MENU",valueComponent:Lm,bottomBordered:!0,children:"QUALITY_APPLIENCE"}),Rm=({labelWithQuality:t,appliesTo:e,selected:i},{toggleHighQuality:o})=>({id:"QUALITY_HIGH",type:"SELECT_VALUE",value:"high_quality",selectItem:()=>o(!0,e),selected:i,label:F("high_quality"),valueComponent:t?fl:void 0,valueComponentParams:{prefix:F("high_quality"),selected:i},sublabel:F("high_quality_description")}),Nm=({labelWithQuality:t,appliesTo:e,selected:i},{toggleTrafficSaving:o})=>({id:"QUALITY_TRAFFIC_SAVING",type:"SELECT_VALUE",value:"save_traffic",selectItem:()=>o(!0,e),selected:i,label:F("traffic_saving_quality"),valueComponent:t?fl:void 0,valueComponentParams:{prefix:F("traffic_saving_quality"),selected:i},sublabel:F("traffic_saving_quality_description")});var hu=(t,e)=>String(e.findIndex(i=>i.id===t.id)+1),_u=(t,e)=>{var l;if(!t)return"";let{language:i,label:o}=t,n;if(i==="und"?n=void 0:i&&(n=(l=su(i))!=null?l:i),o&&i&&n){let d=e.filter(a=>a.label===o&&a.language===i);if(d.length===1)return F("audio_stream_display_language_label",{language:n,label:o});{let a=hu(t,d);return F("audio_stream_display_language_label_index",{language:n,label:o,index:a})}}if(o){let d=e.filter(a=>a.label===o);if(d.length===1)return o;{let a=hu(t,d);return F("audio_stream_display_label_index",{label:o,index:a})}}if(i&&n){let d=e.filter(a=>a.language===i);if(d.length===1)return n;{let a=hu(t,d);return F("audio_stream_display_language_index",{language:n,index:a})}}let r=hu(t,e);return F("audio_stream_display_unknown",{index:r})};var K3={QUALITY_DETAILS:t=>{let{isAutoQualityEnabled:e,isAutoQualityAvailable:i,trafficSavingEnabled:o,highQualityEnabled:n}=t,r=[];return i&&r.push({handler:Vm,selected:e&&!o&&!n||!1}),r.push({handler:Nm,selected:o},{handler:Rm,selected:n}),{title:F("submenu_quality"),id:"QUALITY_DETAILS",items:[N1(t),...r.map(({handler:l,selected:d})=>l({labelWithQuality:!0,appliesTo:"to-video",selected:d},t)),R1(t)]}},QUALITY:({closeSettingsMenu:t,selectQuality:e,availableQualities:i,isMobile:o})=>({id:"QUALITY",title:F("submenu_quality"),closeSettingsMenu:t,items:i.map(n=>({type:"SELECT_VALUE",value:n.value,valueComponent:Ta,valueComponentParams:{quality:n.value,label:n.displayValue,isMobile:o,isSubCase:!0},selectItem:r=>e(r,"to-video"),selected:n.selected,label:n.displayValue}))}),QUALITY_APPLIENCE:t=>{var i,o,n;let{closeSettingsMenu:e}=t;return{id:"QUALITY_APPLIENCE",title:F("default_quality_for_any_video"),closeSettingsMenu:e,items:[{handler:Vm,selected:((i=Bc())==null?void 0:i.type)==="auto_quality"},{handler:Nm,selected:((o=Bc())==null?void 0:o.type)==="traffic_saving"},{handler:Rm,selected:((n=Bc())==null?void 0:n.type)==="high_quality"}].map(({handler:r,selected:l})=>r({labelWithQuality:!1,appliesTo:"as-default",selected:l},t))}},AUDIO_LANGUAGES:({closeSettingsMenu:t,availableAudioStreams:e,currentAudioStream:i,selectAudioLanguage:o})=>({id:"AUDIO_LANGUAGES",title:F("submenu_audio_languages"),closeSettingsMenu:t,items:e.map(n=>({type:"SELECT_VALUE",value:n,dataValue:n.id,selectItem:o,selected:n.id===(i==null?void 0:i.id),label:_u(n,e)}))}),PLAYBACK_RATE_SUB_MENU:({closeSettingsMenu:t,availablePlaybackRates:e,selectPlaybackRate:i})=>({id:"PLAYBACK_RATE_SUB_MENU",title:F("submenu_playback_rate"),closeSettingsMenu:t,items:e.map(o=>({type:"SELECT_VALUE",value:o.value,selectItem:i,selected:o.selected,label:o.displayValue}))}),SUBTITLES:({availableSubtitlesList:t,selectSubtitle:e})=>({id:"SUBTITLES",minWidth:164,title:F("subtitles_caption"),items:t.map(i=>({type:"SELECT_VALUE",value:i.value,selectItem:()=>e(i),selected:i.selected,label:i.displayValue,dataTestid:i.value===du?"sub_off":void 0}))})},B1=({subMenuId:t,context:e})=>t?[K3[t](e)]:[];var Q3=Se('<svg><!><path fill="var(--btn-color, #fff)" fill-rule="evenodd" d="M.1 6.5c0-2.24 0-3.36.436-4.216A4 4 0 0 1 2.284.536C3.139.1 4.259.1 6.5.1h5c2.24 0 3.36 0 4.216.436a4 4 0 0 1 1.748 1.748c.436.856.436 1.976.436 4.216s0 3.36-.436 4.216a4 4 0 0 1-1.748 1.748c-.836.426-1.925.436-4.064.436l.55 2.2H14.1a.9.9 0 0 1 0 1.8H3.9a.9.9 0 1 1 0-1.8h1.897l.55-2.2c-2.139 0-3.227-.01-4.063-.436a4 4 0 0 1-1.748-1.748C.1 9.86.1 8.74.1 6.5m11.4-4.6h-5c-1.15 0-1.904.002-2.481.049-.556.045-.786.124-.918.19a2.2 2.2 0 0 0-.962.962c-.067.132-.145.363-.19.918-.048.577-.05 1.331-.05 2.481s.002 1.904.05 2.48c.045.556.123.787.19.919a2.2 2.2 0 0 0 .962.961c.132.068.362.146.918.192.577.047 1.33.048 2.48.048h5c1.15 0 1.904-.001 2.481-.048.556-.046.787-.124.918-.192a2.2 2.2 0 0 0 .962-.961c.067-.132.146-.363.191-.918.047-.577.049-1.331.049-2.48s-.002-1.905-.049-2.482c-.045-.555-.124-.786-.191-.918a2.2 2.2 0 0 0-.962-.961c-.131-.067-.362-.146-.918-.191-.577-.048-1.33-.049-2.48-.049m-3.298 11-.55 2.2h2.695l-.55-2.2z" clip-rule="evenodd"></path></svg>');function Bm(t,e){let i=Me(e,["$$slots","$$events","$$legacy","children"]);var o=Q3();Ie(o,()=>({xmlns:"http://www.w3.org/2000/svg",width:"18",height:"17",fill:"none","aria-hidden":"true","data-testid":"traffic-saving-icon",role:"img",...i}));var n=_(o);be(n,()=>{var r;return(r=e.children)!=null?r:oe}),Ce(),g(o),b(t,o)}var G3=Se('<svg><!><path fill="var(--btn-color, #fff)" d="M8.295 14.247c1.87 1.896 5.505.02 5.505-3.548V5.645l2.399-.697A2.74 2.74 0 0 0 18 2.364l-.01-1.72a.75.75 0 0 0-.906-.623l-.267.061c-.941.215-1.886.431-2.807.721-1.332.45-2.03 1.614-2.01 3.077V9c-3.887.196-5.639 3.286-3.705 5.247M.9.1a.9.9 0 0 0 0 1.8h8.197a.9.9 0 0 0 0-1.8zM.9 5.1a.9.9 0 1 0 0 1.8h7.196a.9.9 0 0 0 0-1.8zM0 11a.9.9 0 0 1 .9-.9h4.183a.9.9 0 1 1 0 1.8H.9A.9.9 0 0 1 0 11"></path></svg>');function Om(t,e){let i=Me(e,["$$slots","$$events","$$legacy","children"]);var o=G3();Ie(o,()=>({xmlns:"http://www.w3.org/2000/svg",width:"18",height:"15",fill:"none","aria-hidden":"true","data-testid":"audio-languages-icon",viewBox:"0 0 18 15",role:"img",...i}));var n=_(o);be(n,()=>{var r;return(r=e.children)!=null?r:oe}),Ce(),g(o),b(t,o)}var Y3=Se('<svg><!><g fill="none" fill-rule="evenodd"><path d="M0 0h24v24H0z"></path><path fill="var(--btn-color, #fff)" fill-rule="nonzero" d="M11 4.07V2.05c-2.01.2-3.84 1-5.32 2.21L7.1 5.69A7.94 7.94 0 0 1 11 4.07M5.69 7.1 4.26 5.68A9.95 9.95 0 0 0 2.05 11h2.02c.18-1.46.76-2.79 1.62-3.9M2.05 13c.2 2.01 1 3.84 2.21 5.32l1.43-1.43A7.87 7.87 0 0 1 4.07 13zM11 21.95v-2.02a7.94 7.94 0 0 1-3.9-1.62l-1.42 1.43A10 10 0 0 0 11 21.95M22 12c0 5.16-3.92 9.42-8.95 9.95v-2.02C16.97 19.41 20 16.05 20 12s-3.03-7.41-6.95-7.93V2.05C18.08 2.58 22 6.84 22 12M10.688 8.576l4.746 2.736a.792.792 0 0 1 0 1.372l-4.746 2.737a.792.792 0 0 1-1.188-.686V9.262a.792.792 0 0 1 1.188-.686"></path></g></svg>');function Dm(t,e){let i=Me(e,["$$slots","$$events","$$legacy","children"]);var o=Y3();Ie(o,()=>({xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24","aria-hidden":"true","data-testid":"play-speed-icon",role:"img",...i}));var n=_(o);be(n,()=>{var r;return(r=e.children)!=null?r:oe}),Ce(),g(o),b(t,o)}var j3=Se('<svg><!><path fill="var(--btn-color, #fff)" fill-rule="evenodd" d="M8 0a.9.9 0 0 1 .9.9v10.927l4.564-4.563a.9.9 0 0 1 1.272 1.272l-6.1 6.1a.9.9 0 0 1-1.272 0l-6.1-6.1a.9.9 0 1 1 1.272-1.272L7.1 11.827V.9A.9.9 0 0 1 8 0M0 18a.9.9 0 0 1 .9-.9h14.2a.9.9 0 1 1 0 1.8H.9A.9.9 0 0 1 0 18" clip-rule="evenodd"></path></svg>');function Hm(t,e){let i=Me(e,["$$slots","$$events","$$legacy","children"]);var o=j3();Ie(o,()=>({xmlns:"http://www.w3.org/2000/svg",width:"16",height:"19",fill:"none","aria-hidden":"true","data-testid":"download-icon",role:"img",...i}));var n=_(o);be(n,()=>{var r;return(r=e.children)!=null?r:oe}),Ce(),g(o),b(t,o)}var Z3=Se('<svg><!><path fill="var(--btn-color, #fff)" fill-rule="evenodd" d="M8.863 2.1h6.274c.674-.002 1.2.211 1.683.697l4.383 4.383c.478.476.699.998.697 1.683v6.274c.002.685-.22 1.207-.697 1.683l-4.383 4.383c-.476.478-.998.699-1.683.697H8.863c-.685.002-1.207-.22-1.683-.697L2.797 16.82c-.478-.476-.699-.998-.697-1.683V8.863c-.002-.685.22-1.207.697-1.683L7.18 2.797c.484-.486 1.009-.699 1.683-.697m-.445 2.005L4.105 8.418c-.18.18-.205.242-.205.495v6.174c0 .25.025.316.205.495l4.313 4.313c.179.179.24.205.495.205h6.174c.253 0 .316-.026.495-.205l4.313-4.313c.18-.18.205-.245.205-.495V8.913c0-.254-.026-.316-.205-.495l-4.313-4.313c-.18-.18-.242-.205-.495-.205H8.913c-.254 0-.319.029-.495.205M13 16a1 1 0 1 1-2 0 1 1 0 0 1 2 0m-.1-8.1a.9.9 0 0 0-1.8 0v5.2a.9.9 0 1 0 1.8 0z" clip-rule="evenodd"></path></svg>');function Fm(t,e){let i=Me(e,["$$slots","$$events","$$legacy","children"]);var o=Z3();Ie(o,()=>({xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none","aria-hidden":"true","data-testid":"report-icon",role:"img",...i}));var n=_(o);be(n,()=>{var r;return(r=e.children)!=null?r:oe}),Ce(),g(o),b(t,o)}var X3=Se('<svg><!><path fill="var(--btn-color, #fff)" fill-rule="evenodd" d="M4 12.3V12c0-1.47.005-2.547.075-3.403.074-.904.216-1.482.454-1.949a4.85 4.85 0 0 1 2.12-2.12c.466-.237 1.044-.379 1.948-.453C9.51 4.001 10.675 4 12.3 4h4.512a2 2 0 0 0-.174-.49 2.4 2.4 0 0 0-1.048-1.048 2.4 2.4 0 0 0-.931-.239 14 14 0 0 0-1.026-.023H12.26c-1.576 0-2.814 0-3.81.081-1.014.083-1.856.255-2.62.644A6.65 6.65 0 0 0 2.926 5.83c-.389.763-.56 1.605-.644 2.62-.081.995-.081 2.233-.081 3.809v1.373c0 .392 0 .738.023 1.025.025.306.081.623.239.931a2.4 2.4 0 0 0 1.048 1.05c.162.082.326.136.49.173V12.3zM10.08 6h-.035c-.52 0-.964 0-1.329.03-.383.03-.755.097-1.112.276a2.9 2.9 0 0 0-1.298 1.298c-.179.357-.246.73-.277 1.112C6 9.081 6 9.524 6 10.046v7.909c0 .52 0 .964.03 1.329.03.382.097.755.276 1.112a2.9 2.9 0 0 0 1.298 1.298c.357.179.73.246 1.112.277.365.029.808.029 1.329.029h6.91c.52 0 .964 0 1.329-.03.382-.03.755-.097 1.112-.276a2.9 2.9 0 0 0 1.298-1.298c.179-.357.246-.73.277-1.112.029-.365.029-.808.029-1.33v-7.909c0-.52 0-.964-.03-1.329-.03-.382-.097-.755-.276-1.112a2.9 2.9 0 0 0-1.298-1.298c-.357-.179-.73-.246-1.112-.277C17.919 6 17.476 6 16.954 6zM8.408 7.916c.065-.032.179-.07.452-.093a18 18 0 0 1 1.22-.023h6.84c.565 0 .936 0 1.22.023.273.022.387.06.452.093a1.1 1.1 0 0 1 .492.492c.032.065.07.179.093.452.022.284.023.655.023 1.22v7.84c0 .565 0 .936-.023 1.22-.023.273-.06.387-.093.452a1.1 1.1 0 0 1-.492.492c-.065.032-.18.07-.452.093a18 18 0 0 1-1.22.023h-6.84c-.565 0-.936 0-1.22-.023-.273-.023-.387-.06-.452-.093a1.1 1.1 0 0 1-.492-.492c-.032-.065-.07-.18-.093-.452a17 17 0 0 1-.023-1.22v-7.84c0-.565 0-.936.023-1.22.022-.273.06-.387.093-.452a1.1 1.1 0 0 1 .492-.492" clip-rule="evenodd"></path></svg>');function bu(t,e){let i=Me(e,["$$slots","$$events","$$legacy","children"]);var o=X3();Ie(o,()=>({xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none","aria-hidden":"true","data-testid":"copy-icon",role:"img",...i}));var n=_(o);be(n,()=>{var r;return(r=e.children)!=null?r:oe}),Ce(),g(o),b(t,o)}var J3=Se('<svg><!><path fill="var(--btn-color, #fff)" d="M12 20.105a8.105 8.105 0 1 0 0-16.21 8.105 8.105 0 0 0 0 16.21M12 22C6.477 22 2 17.523 2 12S6.477 2 12 2s10 4.477 10 10-4.477 10-10 10m0-12.372a1.316 1.316 0 1 1 0-2.632 1.316 1.316 0 0 1 0 2.632m-.947 2.822c0-.541.424-.98.947-.98s.947.439.947.98v3.83c0 .54-.424.98-.947.98s-.947-.44-.947-.98z"></path></svg>');function Um(t,e){let i=Me(e,["$$slots","$$events","$$legacy","children"]);var o=J3();Ie(o,()=>({xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none","aria-hidden":"true","data-testid":"info-icon",role:"img",...i}));var n=_(o);be(n,()=>{var r;return(r=e.children)!=null?r:oe}),Ce(),g(o),b(t,o)}var ex=M('<div class="menu-item-value-wrapper svelte-1j7b2kc"><!></div>'),tx={hash:"svelte-1j7b2kc",code:".menu-item-value-wrapper.svelte-1j7b2kc {line-height:normal;}"};function zm(t,e){D(e,!0),z(t,tx);let[i,o]=De(),n=()=>C(p,"$currentQuality$",i),r=()=>C(f,"$availableQualities$",i),l=()=>C(v,"$isAutoQualityEnabled$",i),d=()=>C(u,"$isMobile$",i),a=Ee(),p=a.state.currentQuality$,f=a.state.availableQualities$,v=a.state.isAutoQualityEnabled$,u=a.ui.isMobile,$=h(()=>M1({quality:n(),availableQualities:r(),isAutoQualityEnabled:l()}));var w=ex(),y=_(w);Ta(y,{get quality(){return n()},get label(){return s($)},get isMobile(){return d()}}),g(w),b(t,w),H(),o()}var ox={QUALITY_SETTINGS:({isAutoQualityEnabled:t,currentQuality:e,qualityDetailsSubMenuEnabled:i})=>{let o=(t?F("auto_quality_option"):e)||"";return{id:"QUALITY_SETTINGS",type:"OPEN_SUB_MENU",ariaLabel:F("aria_label_menu_quality",{actual:o}),icon:cd,label:F("menu_quality"),value:e,valueComponent:zm,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:F("aria_label_submenu_traffic_saving"),icon:Bm,label:F("menu_traffic_saving"),enabled:t,tooltipText:F("traffic_saving_helper_text"),maxTooltipWidth:175}),AUDIO_LANGUAGES:({currentAudioStream:t,availableAudioStreams:e})=>{let i=_u(t,e);return{id:"AUDIO_LANGUAGES",weight:Br["audio-language-settings"],type:"OPEN_SUB_MENU",ariaLabel:F("aria_label_menu_audio_languages",{actual:i}),icon:Om,label:F("menu_audio_languages"),value:i,children:"AUDIO_LANGUAGES"}},PLAYBACK_RATE:({availablePlaybackRates:t,currentPlaybackRate:e})=>{var o;let i=((o=t.find(n=>n.value===e))==null?void 0:o.displayValue)||"";return{id:"PLAYBACK_RATE",weight:Br["playback-rate-settings"],type:"OPEN_SUB_MENU",ariaLabel:F("aria_label_menu_rate",{actual:i}),icon:Dm,label:F("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:F("aria_label_menu_subtitle",{actual:t.displayValue}),icon:ud,label:F("subtitles_caption"),value:t.displayValue,children:"SUBTITLES"}),DOWNLOAD:({onDownloadClick:t})=>({id:"DOWNLOAD",weight:Br.download,type:"CLICK",onClick:t,label:F("download_video_caption"),ariaLabel:F("aria_label_menu_download"),icon:Hm}),SHOW_SUPPORT:({onReportProblemClick:t})=>({id:"SHOW_SUPPORT",weight:Br.report,type:"CLICK",onClick:t,label:F("menu_report"),ariaLabel:`${F("menu_report")}. ${F("aria_label_new_tab_alert")}`,icon:Fm,isHiddenFor:["desktop"]}),COPY_DATA:({onCopyDataClick:t})=>({id:"COPY_DATA",weight:Br["copy-data"],type:"CLICK",onClick:t,label:F("menu_copy_debug"),ariaLabel:F("menu_copy_debug"),icon:bu,isHiddenFor:["desktop"]}),SAVE_TRACE_INFO:({onSaveTraceDataClick:t})=>({id:"SAVE_TRACE_INFO",weight:Br["save-trace-info"],type:"CLICK",onClick:t,label:F("menu_save_debug"),ariaLabel:F("menu_save_debug"),icon:bu,isHiddenFor:["desktop"]}),DEBUG_INFO:({toggleShowDebugInfo:t})=>({id:"DEBUG_INFO",weight:Br["debug-info"],type:"CLICK",onClick:t,ariaLabel:F("aria_label_menu_debug_overlay"),label:F("menu_debug_overlay"),icon:Um,isHiddenFor:["desktop"]})},O1=({items:t,context:e,additionalSettingsMenuItems:i})=>{let{isMobile:o}=e;return[...t.map(n=>ox[n](e)),...i.map(n=>({...n,isAdditional:!0}))].filter(n=>{var r,l,d;return!((r=n==null?void 0:n.isHiddenFor)!=null&&r.length)||!((l=n==null?void 0:n.isHiddenFor)!=null&&l.includes("desktop"))&&!o||!((d=n==null?void 0:n.isHiddenFor)!=null&&d.includes("mobile"))&&o}).sort(ua)};var sx=(t,e)=>{Qc(t,e)},ax=M('<div><div> </div> <div class="close svelte-17or3al"></div></div>'),lx=M('<div data-testid="settings-menu" role="presentation"><!> <ul role="menu"></ul></div>'),dx=M("<div><!> <!></div>"),cx={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 Em(t,e){F(e,!0),K(t,h3);let[i,o]=He(),n=()=>C(v,"$isFullscreen",i),s=()=>C(u,"$playerSize",i),l=m(e,"isMobile",3,!1),d=m(e,"playerControlsHeight",3,0),a=m(e,"ariaLabelReturnFromSubMenu",19,()=>z("aria_label_submenu_back")),p=m(e,"listRef",15);Rt(()=>{let W=e.items.findIndex(de=>de.selected);p().children[W+1].focus()});let f=Ee(),v=f.ui.isFullscreen,u=f.ui.playerSize,y=j(void 0),w=j(0),b=j(0),S=g(()=>l()&&n()?`max-height: ${Math.round(s().height*.6)}px`:l()?"":`max-height: ${s().height-32-r(b)-d()}px; overflow: auto;`),T=g(()=>Math.max(e.minWidth,r(w)));var E=g3();let M;var I=_(E);let k;I.__keydown=[f3,e];var R=_(I);let Y;R.__click=[m3,e],R.__keydown=[v3,e];var D=_(R);Hs(D,{direction:"left"});var H=P(D,2),q=_(H,!0);h(H),h(R),ot(R,W=>B(y,W),()=>r(y));var J=P(R,2);$i(J,17,()=>e.items,Hl,(W,de)=>{var ie=Ue(),ve=me(ie);{var Ie=re=>{Cm(re,{get item(){return r(de)},get isMobile(){return l()}})},fe=(re,ke)=>{{var te=N=>{Sm(N,{get isMobile(){return l()},get item(){return r(de)},get openSubMenuList(){return e.openSubMenuList},get refMenuItems(){return e.refMenuItems}})};L(re,N=>{r(de).type==="OPEN_SUB_MENU"&&N(te)},ke)}};L(ve,re=>{r(de).type==="SELECT_VALUE"?re(Ie):re(fe,!1)})}$(W,ie)}),h(I),ot(I,W=>p(W),()=>p()),h(E),O((W,de,ie)=>{M=X(E,1,"sub-menu menu svelte-7dfsuh",null,M,W),Be(E,"data-testid",`sub-menu-${e.id}`),nt(E,`min-width: ${r(T)}px`),k=X(I,1,"items svelte-7dfsuh",null,k,de),nt(I,r(S)),Y=X(R,1,"item header back svelte-7dfsuh",null,Y,ie),Be(R,"aria-label",a()),_e(q,e.title)},[()=>({desktop:!l(),mobile:l()}),()=>({mobile:l()}),()=>({mobile:l()})]),Xn(R,"clientWidth",W=>B(w,W)),Xn(R,"clientHeight",W=>B(b,W)),$(t,E),U(),o()}lt(["keydown","click"]);import{noop as _3}from"@vkontakte/videoplayer-shared/es2018";var b3=(t,e)=>jc(t,e()),$3=(t,e)=>{t.stopPropagation(),e()()},y3=A('<div class="value svelte-1ikfjte"> </div>'),x3=A('<li role="menuitem" tabindex="0" aria-haspopup="true"><div class="icon-wrapper"><!></div> <div class="label"> </div> <!></li>'),w3={hash:"svelte-1ikfjte",code:".value.svelte-1ikfjte {position:relative;opacity:0.7;overflow:hidden;text-overflow:ellipsis;}"};function Im(t,e){F(e,!0),K(t,w3);let i=m(e,"isMobile",3,!1),o=m(e,"onClick",3,_3),n=m(e,"valueComponent",3,void 0),s=m(e,"ref",15);var l=x3();let d;l.__click=[$3,o],l.__keydown=[b3,o];var a=_(l),p=_(a);{var f=T=>{ba(T,{get icon(){return e.icon}})},v=T=>{var E=Ue();let M=g(()=>e.icon);var I=me(E);yi(I,()=>r(M),(k,R)=>{R(k,{})}),$(T,E)};L(p,T=>{typeof e.icon=="string"?T(f):T(v,!1)})}h(a);var u=P(a,2),y=_(u,!0);h(u);var w=P(u,2);{var b=T=>{var E=Ue();let M=g(n);var I=me(E);yi(I,()=>r(M),(k,R)=>{R(k,{})}),$(T,E)},S=T=>{var E=y3(),M=_(E,!0);h(E),O(()=>_e(M,e.value)),$(T,E)};L(w,T=>{n()?T(b):T(S,!1)})}h(l),ot(l,T=>s(T),()=>s()),O(T=>{d=X(l,1,"item",null,d,T),Be(l,"aria-label",e.ariaLabel),Be(l,"data-testid",e.id),_e(y,e.label)},[()=>({mobile:i()})]),$(t,l),U()}lt(["click","keydown"]);import{noop as I1}from"@vkontakte/videoplayer-shared/es2018";var C3=(t,e)=>{ol(t,()=>e())},S3=A('<div class="icon icon-error-stub"><div class="inner"></div></div>'),T3=A('<img class="icon" aria-hidden="true"/>'),E3=A('<li role="menuitem" tabindex="0"><div class="icon-wrapper"><!></div> <div class="label svelte-15ifkac"> </div></li>'),I3={hash:"svelte-15ifkac",code:".label.svelte-15ifkac {overflow:hidden;text-overflow:ellipsis;}"};function km(t,e){F(e,!0),K(t,I3);let i=m(e,"isMobile",3,!1),o=m(e,"onClick",3,I1),n=m(e,"closeSettings",3,I1),s=j(!1),l=()=>{B(s,!0)},d=S=>{S==null||S.stopPropagation(),o()(),n()()};var a=E3();let p;a.__click=d,a.__keydown=[C3,d];var f=_(a),v=_(f);{var u=S=>{var T=Ue(),E=me(T);{var M=k=>{var R=S3();$(k,R)},I=k=>{var R=T3();O(()=>Be(R,"src",e.icon)),Tt("error",R,l),Js(R),$(k,R)};L(E,k=>{r(s)?k(M):k(I,!1)})}$(S,T)},y=S=>{var T=Ue();let E=g(()=>e.icon);var M=me(T);yi(M,()=>r(E),(I,k)=>{k(I,{})}),$(S,T)};L(v,S=>{typeof e.icon=="string"?S(u):S(y,!1)})}h(f);var w=P(f,2),b=_(w,!0);h(w),h(a),O(S=>{var T;p=X(a,1,"item",null,p,S),Be(a,"aria-label",(T=e.ariaLabel)!=null?T:e.label),Be(a,"data-testid",e.id),_e(b,e.label)},[()=>({mobile:i()})]),$(t,a),U()}lt(["click","keydown"]);import{noop as A3}from"@vkontakte/videoplayer-shared/es2018";var k3=A('<div class="toggle_wrap svelte-17wbjko"><div></div> <div class="toggle-label svelte-17wbjko"></div></div>'),P3={hash:"svelte-17wbjko",code:'.toggle_wrap.svelte-17wbjko {min-height:15px;padding:0;font-size:12px;line-height:15px;cursor:pointer;user-select:none;}.toggle.svelte-17wbjko {float:right;margin-top:3px;width:28px;height:9px;border-radius:45px;background-color:var(--toggle-color-separator);cursor:pointer;}.toggle.svelte-17wbjko::after {content:"";float:left;position:relative;width:15px;height:15px;border-radius:50%;background-color:var(--toggle-color-off);top:-3px;left:0;transition:left .1s ease;}.toggle.on.svelte-17wbjko::after {background-color:var(--toggle-color-on);left:13px;}.toggle-label.svelte-17wbjko {overflow:hidden;}'};function Pm(t,e){K(t,P3);let i=m(e,"enabled",3,!1);var o=k3(),n=_(o);let s;Se(2),h(o),O(l=>s=X(n,1,"toggle svelte-17wbjko",null,s,l),[()=>({on:i()})]),$(t,o)}var M3=(t,e,i)=>{Gh(t,e(),o=>i()(o))},L3=(t,e,i)=>{t.stopPropagation(),e()(!i())},V3=A('<div><div class="icon-wrapper"><!></div> <div class="label"> </div> <!></div>'),R3=A('<li role="menuitem" tabindex="0"><!></li>');function Am(t,e){F(e,!0);let i=m(e,"isMobile",3,!1),o=m(e,"onClick",3,A3),n=m(e,"enabled",3,!1),s=m(e,"tooltipText",3,void 0),l=m(e,"maxTooltipWidth",3,void 0);var d=R3();let a;d.__click=[L3,o,n],d.__keydown=[M3,n,o];var p=_(d);ma(p,{get content(){return s()},get isMobile(){return i()},placement:"left",translateX:10,isFullWidthWrapper:!0,get maxTooltipWidth(){return l()},children:(f,v)=>{var u=V3();let y;var w=_(u),b=_(w);{var S=k=>{ba(k,{get icon(){return e.icon}})},T=k=>{var R=Ue();let Y=g(()=>e.icon);var D=me(R);yi(D,()=>r(Y),(H,q)=>{q(H,{})}),$(k,R)};L(b,k=>{typeof e.icon=="string"?k(S):k(T,!1)})}h(w);var E=P(w,2),M=_(E,!0);h(E);var I=P(E,2);Pm(I,{get enabled(){return n()}}),h(u),O(k=>{y=X(u,1,"switch-wrapper",null,y,k),_e(M,e.label)},[()=>({mobile:i()})]),$(f,u)},$$slots:{default:!0}}),h(d),O(f=>{var v;a=X(d,1,"item switch-item",null,a,f),Be(d,"aria-label",(v=e.ariaLabel)!=null?v:e.label),Be(d,"data-testid",e.id)},[()=>({mobile:i()})]),$(t,d),U()}lt(["click","keydown"]);import{isValidURL as rx,VideoQuality as D1}from"@vkontakte/videoplayer-shared/es2018";var k1=()=>{let t=j(si([])),e=g(()=>(r(t).length?r(t).at(-1):null)||null);return{get current(){return r(e)},pushSubMenu:i=>{r(t).push(i)},popSubMenu:()=>{B(t,r(t).slice(0,-1),!0)},popAllSubMenus:()=>{B(t,[],!0)}}};var N3=A('<div class="quality-icon svelte-t2qk8t"><!></div>'),B3=A('<div class="quality-label svelte-t2qk8t"><span> </span> <!></div>'),O3={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 Sa(t,e){F(e,!0),K(t,O3);let i=m(e,"isSubCase",3,!1),o=g(()=>tu(e.quality));var n=B3(),s=_(n);let l;var d=_(s,!0);h(s);var a=P(s,2);{var p=f=>{var v=N3();let u=g(()=>r(o));var y=_(v);yi(y,()=>r(u),(w,b)=>{b(w,{})}),h(v),$(f,v)};L(a,f=>{r(o)&&!e.isMobile&&f(p)})}h(n),O(f=>{l=X(s,1,"svelte-t2qk8t",null,l,f),_e(d,e.label)},[()=>({sub:!i(),quality:!e.isMobile})]),$(t,n),U()}import{VideoQuality as D3}from"@vkontakte/videoplayer-shared/es2018";import{VideoQuality as P1}from"@vkontakte/videoplayer-core/es2018";var A1=({quality:t,availableQualities:e})=>{let i=e.find(o=>o.value===t);return i?i.displayValue:t},M1=({quality:t,availableQualities:e,isAutoQualityEnabled:i})=>{if(!t)return"...";let o=A1({quality:t,availableQualities:e});return i?t===P1.INVARIANT?z("auto_quality_invariant"):z("auto_quality",{actual:o}):o},L1=({quality:t,availableQualities:e,prefix:i,onlyPrefix:o})=>t?o||t===P1.INVARIANT?i:`${i}${A1({quality:t,availableQualities:e})}`:"...";var H3=A('<div class="menu-item-value-wrapper svelte-1j7b2kc"><!></div>'),F3={hash:"svelte-1j7b2kc",code:".menu-item-value-wrapper.svelte-1j7b2kc {line-height:normal;}"};function ul(t,e){F(e,!0),K(t,F3);let[i,o]=He(),n=()=>C(a,"$currentQuality$",i),s=()=>C(p,"$availableQualities$",i),l=()=>C(f,"$isMobile$",i),d=Ee(),a=d.state.currentQuality$,p=d.state.availableQualities$,f=d.ui.isMobile,v=" \xB7 ",u=g(()=>e.prefix+(e.selected&&n()!==D3.INVARIANT?v:"")),y=g(()=>L1({prefix:r(u),quality:n(),availableQualities:s(),onlyPrefix:!e.selected}));var w=H3(),b=_(w);let S=g(()=>e.selected?n():void 0);Sa(b,{get quality(){return r(S)},get label(){return r(y)},get isMobile(){return l()},isSubCase:!0}),h(w),$(t,w),U(),o()}var U3=t=>{let e=t.join("|"),i="<(?<keyhtml>.*?)(?<propshtml> .*?)?>(?<childrenhtml>.*?)</\\k<keyhtml>>",o=`{(?<keyi18n>${e})}(?<childreni18n>.*?){/\\k<keyi18n>}`,n="<(?<keyhtmlself>.*?)(?<propshtmlself> .*?)?/?>",s=`{(?<keyi18nself>${e})}`;return new RegExp(`${i}|${o}|${n}|${s}`,"g")},z3={br:!0,span:!0},Mm=(t,e={})=>{var d,a,p,f,v,u,y;if(!t)return t;let i={...z3,...e},o=Object.keys(i);if(!o.length)return t;let n=U3(o),s=[],l=0;for(let w of t.matchAll(n)){let b=w[0],S=((d=w.groups)==null?void 0:d.keyhtml)||((a=w.groups)==null?void 0:a.keyi18n)||((p=w.groups)==null?void 0:p.keyhtmlself)||((f=w.groups)==null?void 0:f.keyi18nself)||"",{index:T}=w;if(!i[S]){s.push(t.slice(l,T)),l=T+b.length;continue}let E=(v=w.groups)!=null&&v.childrenhtml?Mm(w.groups.childrenhtml,i):"",M=(u=w.groups)!=null&&u.childrenhtml?b.replace(new RegExp((y=w.groups)==null?void 0:y.childrenhtml),()=>E||""):b;s.push(t.slice(l,T),M),l=T+b.length}return l===0?t:(s.push(t.slice(l)),s.join(""))};function Bd(t,e){F(e,!1);let i=m(e,"message",8),o=Mm(i());Nr();var n=Ue(),s=me(n);{var l=d=>{var a=Ue(),p=me(a);Fl(p,()=>o),$(d,a)};L(s,d=>{o&&d(l)})}$(t,n),U()}var W3=A('<p class="quality-applies sublabel svelte-1qk3zto"><!></p>'),K3={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 Lm(t,e){F(e,!1),K(t,K3),Nr();var i=W3(),o=_(i);let n=Mr(()=>z("quality_applience",{action:`<span>${z("quality_applience_action")}</span>`}));Bd(o,{get message(){return r(n)}}),h(i),$(t,i),U()}var R1=({isAutoQualityEnabled:t,trafficSavingEnabled:e,highQualityEnabled:i})=>{let o=!t&&!e&&!i;return{id:"QUALITY_OTHER",type:"OPEN_SUB_MENU",selected:o,valueComponent:ul,valueComponentParams:{prefix:z("other_quality"),selected:o},children:"QUALITY"}},Vm=({appliesTo:t,labelWithQuality:e,selected:i},{selectQuality:o})=>({id:"QUALITY_AUTO",type:"SELECT_VALUE",value:"auto",label:z("auto_quality_limit"),valueComponent:e?ul:void 0,valueComponentParams:{prefix:z("auto_quality_limit"),selected:i},selectItem:()=>o("auto",t),selected:i}),N1=()=>({id:"QUALITY_APPLIENCE",type:"OPEN_SUB_MENU",valueComponent:Lm,bottomBordered:!0,children:"QUALITY_APPLIENCE"}),Rm=({labelWithQuality:t,appliesTo:e,selected:i},{toggleHighQuality:o})=>({id:"QUALITY_HIGH",type:"SELECT_VALUE",value:"high_quality",selectItem:()=>o(!0,e),selected:i,label:z("high_quality"),valueComponent:t?ul:void 0,valueComponentParams:{prefix:z("high_quality"),selected:i},sublabel:z("high_quality_description")}),Nm=({labelWithQuality:t,appliesTo:e,selected:i},{toggleTrafficSaving:o})=>({id:"QUALITY_TRAFFIC_SAVING",type:"SELECT_VALUE",value:"save_traffic",selectItem:()=>o(!0,e),selected:i,label:z("traffic_saving_quality"),valueComponent:t?ul:void 0,valueComponentParams:{prefix:z("traffic_saving_quality"),selected:i},sublabel:z("traffic_saving_quality_description")});var bu=(t,e)=>String(e.findIndex(i=>i.id===t.id)+1),$u=(t,e)=>{var l;if(!t)return"";let{language:i,label:o}=t,n;if(i==="und"?n=void 0:i&&(n=(l=lu(i))!=null?l:i),o&&i&&n){let d=e.filter(a=>a.label===o&&a.language===i);if(d.length===1)return z("audio_stream_display_language_label",{language:n,label:o});{let a=bu(t,d);return z("audio_stream_display_language_label_index",{language:n,label:o,index:a})}}if(o){let d=e.filter(a=>a.label===o);if(d.length===1)return o;{let a=bu(t,d);return z("audio_stream_display_label_index",{label:o,index:a})}}if(i&&n){let d=e.filter(a=>a.language===i);if(d.length===1)return n;{let a=bu(t,d);return z("audio_stream_display_language_index",{language:n,index:a})}}let s=bu(t,e);return z("audio_stream_display_unknown",{index:s})};var q3={QUALITY_DETAILS:t=>{let{isAutoQualityEnabled:e,isAutoQualityAvailable:i,trafficSavingEnabled:o,highQualityEnabled:n}=t,s=[];return i&&s.push({handler:Vm,selected:e&&!o&&!n||!1}),s.push({handler:Nm,selected:o},{handler:Rm,selected:n}),{title:z("submenu_quality"),id:"QUALITY_DETAILS",items:[N1(t),...s.map(({handler:l,selected:d})=>l({labelWithQuality:!0,appliesTo:"to-video",selected:d},t)),R1(t)]}},QUALITY:({closeSettingsMenu:t,selectQuality:e,availableQualities:i,isMobile:o})=>({id:"QUALITY",title:z("submenu_quality"),closeSettingsMenu:t,items:i.map(n=>({type:"SELECT_VALUE",value:n.value,valueComponent:Sa,valueComponentParams:{quality:n.value,label:n.displayValue,isMobile:o,isSubCase:!0},selectItem:s=>e(s,"to-video"),selected:n.selected,label:n.displayValue}))}),QUALITY_APPLIENCE:t=>{var i,o,n;let{closeSettingsMenu:e}=t;return{id:"QUALITY_APPLIENCE",title:z("default_quality_for_any_video"),closeSettingsMenu:e,items:[{handler:Vm,selected:((i=Dc())==null?void 0:i.type)==="auto_quality"},{handler:Nm,selected:((o=Dc())==null?void 0:o.type)==="traffic_saving"},{handler:Rm,selected:((n=Dc())==null?void 0:n.type)==="high_quality"}].map(({handler:s,selected:l})=>s({labelWithQuality:!1,appliesTo:"as-default",selected:l},t))}},AUDIO_LANGUAGES:({closeSettingsMenu:t,availableAudioStreams:e,currentAudioStream:i,selectAudioLanguage:o})=>({id:"AUDIO_LANGUAGES",title:z("submenu_audio_languages"),closeSettingsMenu:t,items:e.map(n=>({type:"SELECT_VALUE",value:n,dataValue:n.id,selectItem:o,selected:n.id===(i==null?void 0:i.id),label:$u(n,e)}))}),PLAYBACK_RATE_SUB_MENU:({closeSettingsMenu:t,availablePlaybackRates:e,selectPlaybackRate:i})=>({id:"PLAYBACK_RATE_SUB_MENU",title:z("submenu_playback_rate"),closeSettingsMenu:t,items:e.map(o=>({type:"SELECT_VALUE",value:o.value,selectItem:i,selected:o.selected,label:o.displayValue}))}),SUBTITLES:({availableSubtitlesList:t,selectSubtitle:e})=>({id:"SUBTITLES",minWidth:164,title:z("subtitles_caption"),items:t.map(i=>({type:"SELECT_VALUE",value:i.value,selectItem:()=>e(i),selected:i.selected,label:i.displayValue,dataTestid:i.value===uu?"sub_off":void 0}))})},B1=({subMenuId:t,context:e})=>t?[q3[t](e)]:[];var G3=Te('<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 Bm(t,e){let i=Ve(e,["$$slots","$$events","$$legacy","children"]);var o=G3();Pe(o,()=>({xmlns:"http://www.w3.org/2000/svg",width:"18",height:"17",fill:"none","aria-hidden":"true","data-testid":"traffic-saving-icon",role:"img",...i}));var n=_(o);xe(n,()=>{var s;return(s=e.children)!=null?s:se}),Se(),h(o),$(t,o)}var Q3=Te('<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 Om(t,e){let i=Ve(e,["$$slots","$$events","$$legacy","children"]);var o=Q3();Pe(o,()=>({xmlns:"http://www.w3.org/2000/svg",width:"18",height:"15",fill:"none","aria-hidden":"true","data-testid":"audio-languages-icon",viewBox:"0 0 18 15",role:"img",...i}));var n=_(o);xe(n,()=>{var s;return(s=e.children)!=null?s:se}),Se(),h(o),$(t,o)}var Y3=Te('<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 Dm(t,e){let i=Ve(e,["$$slots","$$events","$$legacy","children"]);var o=Y3();Pe(o,()=>({xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24","aria-hidden":"true","data-testid":"play-speed-icon",role:"img",...i}));var n=_(o);xe(n,()=>{var s;return(s=e.children)!=null?s:se}),Se(),h(o),$(t,o)}var j3=Te('<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 Hm(t,e){let i=Ve(e,["$$slots","$$events","$$legacy","children"]);var o=j3();Pe(o,()=>({xmlns:"http://www.w3.org/2000/svg",width:"16",height:"19",fill:"none","aria-hidden":"true","data-testid":"download-icon",role:"img",...i}));var n=_(o);xe(n,()=>{var s;return(s=e.children)!=null?s:se}),Se(),h(o),$(t,o)}var Z3=Te('<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 Fm(t,e){let i=Ve(e,["$$slots","$$events","$$legacy","children"]);var o=Z3();Pe(o,()=>({xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none","aria-hidden":"true","data-testid":"report-icon",role:"img",...i}));var n=_(o);xe(n,()=>{var s;return(s=e.children)!=null?s:se}),Se(),h(o),$(t,o)}var X3=Te('<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 yu(t,e){let i=Ve(e,["$$slots","$$events","$$legacy","children"]);var o=X3();Pe(o,()=>({xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none","aria-hidden":"true","data-testid":"copy-icon",role:"img",...i}));var n=_(o);xe(n,()=>{var s;return(s=e.children)!=null?s:se}),Se(),h(o),$(t,o)}var J3=Te('<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 Um(t,e){let i=Ve(e,["$$slots","$$events","$$legacy","children"]);var o=J3();Pe(o,()=>({xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none","aria-hidden":"true","data-testid":"info-icon",role:"img",...i}));var n=_(o);xe(n,()=>{var s;return(s=e.children)!=null?s:se}),Se(),h(o),$(t,o)}var ex=A('<div class="menu-item-value-wrapper svelte-1j7b2kc"><!></div>'),tx={hash:"svelte-1j7b2kc",code:".menu-item-value-wrapper.svelte-1j7b2kc {line-height:normal;}"};function zm(t,e){F(e,!0),K(t,tx);let[i,o]=He(),n=()=>C(p,"$currentQuality$",i),s=()=>C(f,"$availableQualities$",i),l=()=>C(v,"$isAutoQualityEnabled$",i),d=()=>C(u,"$isMobile$",i),a=Ee(),p=a.state.currentQuality$,f=a.state.availableQualities$,v=a.state.isAutoQualityEnabled$,u=a.ui.isMobile,y=g(()=>M1({quality:n(),availableQualities:s(),isAutoQualityEnabled:l()}));var w=ex(),b=_(w);Sa(b,{get quality(){return n()},get label(){return r(y)},get isMobile(){return d()}}),h(w),$(t,w),U(),o()}var ox={QUALITY_SETTINGS:({isAutoQualityEnabled:t,currentQuality:e,qualityDetailsSubMenuEnabled:i})=>{let o=(t?z("auto_quality_option"):e)||"";return{id:"QUALITY_SETTINGS",type:"OPEN_SUB_MENU",ariaLabel:z("aria_label_menu_quality",{actual:o}),icon:fd,label:z("menu_quality"),value:e,valueComponent:zm,weight:Dr["quality-settings"],children:i?"QUALITY_DETAILS":"QUALITY"}},TRAFFIC_SAVING_SWITCH:({trafficSavingEnabled:t,toggleTrafficSaving:e})=>({id:"TRAFFIC_SAVING_SWITCH",weight:Dr["traffic-saving-settings"],type:"SWITCH",onClick:i=>e(i,"to-video"),ariaLabel:z("aria_label_submenu_traffic_saving"),icon:Bm,label:z("menu_traffic_saving"),enabled:t,tooltipText:z("traffic_saving_helper_text"),maxTooltipWidth:175}),AUDIO_LANGUAGES:({currentAudioStream:t,availableAudioStreams:e})=>{let i=$u(t,e);return{id:"AUDIO_LANGUAGES",weight:Dr["audio-language-settings"],type:"OPEN_SUB_MENU",ariaLabel:z("aria_label_menu_audio_languages",{actual:i}),icon:Om,label:z("menu_audio_languages"),value:i,children:"AUDIO_LANGUAGES"}},PLAYBACK_RATE:({availablePlaybackRates:t,currentPlaybackRate:e})=>{var o;let i=((o=t.find(n=>n.value===e))==null?void 0:o.displayValue)||"";return{id:"PLAYBACK_RATE",weight:Dr["playback-rate-settings"],type:"OPEN_SUB_MENU",ariaLabel:z("aria_label_menu_rate",{actual:i}),icon:Dm,label:z("menu_playback_rate"),value:`${e}x`,children:"PLAYBACK_RATE_SUB_MENU"}},SUBTITLES:({currentSubtitle:t})=>({id:"SUBTITLES",weight:Dr["subtitles-settings"],type:"OPEN_SUB_MENU",ariaLabel:z("aria_label_menu_subtitle",{actual:t.displayValue}),icon:md,label:z("subtitles_caption"),value:t.displayValue,children:"SUBTITLES"}),DOWNLOAD:({onDownloadClick:t})=>({id:"DOWNLOAD",weight:Dr.download,type:"CLICK",onClick:t,label:z("download_video_caption"),ariaLabel:z("aria_label_menu_download"),icon:Hm}),SHOW_SUPPORT:({onReportProblemClick:t})=>({id:"SHOW_SUPPORT",weight:Dr.report,type:"CLICK",onClick:t,label:z("menu_report"),ariaLabel:`${z("menu_report")}. ${z("aria_label_new_tab_alert")}`,icon:Fm,isHiddenFor:["desktop"]}),COPY_DATA:({onCopyDataClick:t})=>({id:"COPY_DATA",weight:Dr["copy-data"],type:"CLICK",onClick:t,label:z("menu_copy_debug"),ariaLabel:z("menu_copy_debug"),icon:yu,isHiddenFor:["desktop"]}),SAVE_TRACE_INFO:({onSaveTraceDataClick:t})=>({id:"SAVE_TRACE_INFO",weight:Dr["save-trace-info"],type:"CLICK",onClick:t,label:z("menu_save_debug"),ariaLabel:z("menu_save_debug"),icon:yu,isHiddenFor:["desktop"]}),DEBUG_INFO:({toggleShowDebugInfo:t})=>({id:"DEBUG_INFO",weight:Dr["debug-info"],type:"CLICK",onClick:t,ariaLabel:z("aria_label_menu_debug_overlay"),label:z("menu_debug_overlay"),icon:Um,isHiddenFor:["desktop"]})},O1=({items:t,context:e,additionalSettingsMenuItems:i})=>{let{isMobile:o}=e;return[...t.map(n=>ox[n](e)),...i.map(n=>({...n,isAdditional:!0}))].filter(n=>{var s,l,d;return!((s=n==null?void 0:n.isHiddenFor)!=null&&s.length)||!((l=n==null?void 0:n.isHiddenFor)!=null&&l.includes("desktop"))&&!o||!((d=n==null?void 0:n.isHiddenFor)!=null&&d.includes("mobile"))&&o}).sort(ca)};var sx=(t,e)=>{Yc(t,e)},ax=A('<div><div> </div> <div class="close svelte-17or3al"></div></div>'),lx=A('<div data-testid="settings-menu" role="presentation"><!> <ul role="menu"></ul></div>'),dx=A("<div><!> <!></div>"),cx={hash:"svelte-17or3al",code:`.settings-menu-container.mobile.svelte-17or3al {width:100%;}.settings-menu-container.svelte-17or3al ul {margin:0;padding:0;list-style-type:none;}.settings-menu-container.svelte-17or3al .menu {background-color:var(--settings-bg);border-radius:var(--settings-radius);transition:opacity 0.2s, visibility 0.2s;overflow:hidden;}.settings-menu-container.svelte-17or3al .menu .item:first-child:not(.mobile) {border-top-right-radius:var(--settings-radius);border-top-left-radius:var(--settings-radius);}.settings-menu-container.svelte-17or3al .menu .item:last-child {border-bottom-right-radius:var(--settings-radius);border-bottom-left-radius:var(--settings-radius);}.settings-menu-container.svelte-17or3al .settings-menu .item:first-child:not(.mobile) {padding-top:6px;}.settings-menu-container.svelte-17or3al .settings-menu .item:last-child:not(.mobile) {padding-bottom:6px;}.settings-menu-container.svelte-17or3al .menu.desktop {position:absolute;right:0;bottom:0;max-width:100%;}.settings-menu.svelte-17or3al {line-height:40px;}.settings-menu.desktop.svelte-17or3al {
303
303
  /* \u043D\u0443\u0436\u043D\u043E \u0447\u0442\u043E\u0431 \u043C\u0435\u043D\u044E \u043D\u0435 \u0441\u043A\u0430\u043A\u0430\u043B\u043E \u0432 \u0448\u0438\u0440\u0438\u043D\u0435 \u043F\u0440\u0438 \u0441\u043C\u0435\u043D\u0435 \u0440\u0430\u0437\u0440\u0435\u0448\u0435\u043D\u0438\u044F, \u043E\u0441\u043E\u0431\u043E \u0430\u043A\u0442\u0443\u0430\u043B\u044C\u043D\u043E \u043F\u0440\u0438 \u0430\u0432\u0442\u043E \u0440\u0435\u0436\u0438\u043C\u0435 */min-width:300px;}.settings-menu-container.svelte-17or3al .menu.mobile {width:100%;background:var(--mobile-settings-bg);font-size:15px;line-height:50px;}.settings-menu-container.svelte-17or3al .menu.mobile.hidden {display:none;}.settings-menu-container.svelte-17or3al .menu .item:not(.switch-item),
304
304
  .settings-menu-container.svelte-17or3al .menu .switch-wrapper {align-items:center;color:var(--white);cursor:pointer;display:flex;justify-content:flex-end;white-space:nowrap;position:relative;}.settings-menu-container.svelte-17or3al .menu .item:hover {background-color:var(--settings-item-bg-hover);}.settings-menu-container.svelte-17or3al .menu .item.mobile:hover {background:var(--mobile-settings-bg);}.settings-menu.svelte-17or3al .item:not(.switch-item),
305
305
  .settings-menu.svelte-17or3al .switch-wrapper {padding:0 32px 0 18px;}.settings-menu.svelte-17or3al .item.mobile:not(.switch-item),
306
- .settings-menu.svelte-17or3al .switch-wrapper.mobile {padding:0 14px;}.settings-menu.svelte-17or3al .icon-wrapper {width:24px;min-width:24px;height:24px;display:flex;align-items:center;justify-content:center;margin-right:16px;}.settings-menu.svelte-17or3al .label {flex-grow:1;margin-right:24px;overflow:hidden;text-overflow:ellipsis;}.settings-menu.svelte-17or3al .item.header.mobile:where(.svelte-17or3al) {color:var(--white);cursor:pointer;justify-content:space-between;column-gap:12px;display:flex;border-bottom:var(--divider-border);margin-bottom:4px;}.settings-menu-container.svelte-17or3al .items::-webkit-scrollbar {width:8px;}.settings-menu-container.svelte-17or3al .items::-webkit-scrollbar-track {box-shadow:none;background-color:#3a3a3a;border-radius:4px;}.settings-menu-container.svelte-17or3al .items::-webkit-scrollbar-thumb {min-height:40px;border-radius:5px;background-color:#666;border:1px solid transparent;background-clip:padding-box;}.settings-menu-container.svelte-17or3al .items::-webkit-scrollbar-thumb:hover {background-color:#777;}.settings-menu-container.svelte-17or3al .items.mobile {overflow-y:auto;overflow-x:hidden;max-height:160px;text-align:left;}.close.svelte-17or3al {position:relative;width:12px;height:12px;padding:12px;margin-right:-12px;}.close.svelte-17or3al:before, .close.svelte-17or3al:after {position:absolute;left:18px;content:' ';height:12px;width:2px;background-color:var(--white);}.close.svelte-17or3al:before {transform:rotate(45deg);}.close.svelte-17or3al:after {transform:rotate(-45deg);}`};function Rd(t,e){D(e,!0),z(t,cx);let[i,o]=De(),n=()=>C(qe,"$settingsMenuVisible",i),r=()=>C(Xe,"$settingsMenuOpenedByKeyboard",i),l=()=>C(xt,"$debugPanelVisible",i),d=()=>C(X,"$isMobile",i),a=()=>C(ht,"$playerSize",i),p=()=>C(Z,"$hasMpegSources$",i),f=()=>C(Te,"$mobileNotReportControlHidden$",i),v=()=>C(te,"$autoQualityLimitingAvailable$",i),u=()=>C(ue,"$availableSubtitlesList$",i),$=()=>C(Ke,"$isLiveWithPlaybackSpeed",i),w=()=>C(ve,"$availableAudioStreams$",i),y=()=>C(ge,"$availablePlaybackRates$",i),S=()=>C(Ve,"$currentAudioStream$",i),T=()=>C(ye,"$currentPlaybackRate$",i),k=()=>C(rt,"$trafficSavingEnabled",i),A=()=>C(ae,"$currentQuality$",i),I=()=>C(N,"$isAutoQualityEnabled$",i),E=()=>C(de,"$currentSubtitle$",i),V=()=>C(qt,"$additionalSettingsMenuItems$",i),K=()=>C(Be,"$isAutoQualityAvailable$",i),W=()=>C(Le,"$availableQualities$",i),U=()=>C(ct,"$highQualityEnabled",i),Y=m(e,"ref",15,void 0),ne=m(e,"playerControlsHeight",3,0),G=oi({}),ce=oi({}),le=Ee(),we=Ft(),Ve=le.state.audioStream$,ve=le.state.availableAudioStreams$,ae=le.state.currentQuality$,Le=le.state.availableQualities$,te=le.state.autoQualityLimitingAvailable$,N=le.state.isAutoQualityEnabled$,Be=le.state.isAutoQualityAvailable$,ye=le.state.currentPlaybackRate$,ge=le.state.availablePlaybackRates$,de=le.state.currentSubtitle$,ue=le.state.availableSubtitlesList$,xe=le.state.canDownload,Z=le.state.hasMpegSources$,qe=le.ui.settingsMenu.visible$,Xe=le.ui.settingsMenu.openedByBtnKeyboard$,ke=le.ui.settingsMenu.ref$,X=le.ui.isMobile,Te=le.ui.mobileNotReportControlHidden$,Ke=le.state.canChangePlaybackSpeed$,rt=le.state.trafficSavingEnabled$,ct=le.state.highQualityEnabled$,ht=le.ui.playerSize,xt=le.ui.debugPanelVisible,Qe=le.state.isInteractiveTime$,qt=le.ui.additionalSettingsMenuItems$,Yt=le.ui.t,Qt=le.actions.internal.downloadVideo,Nt=le.actions.internal.closeSettingsMenu,ee=le.actions.internal.openSettingsSubMenu,At=le.actions.internal.closeSettingsSubMenu,me=j(!1),_e=j(void 0),se=k1();We(()=>{!n()&&se.current&&(At(ce[se.current]),se.popAllSubMenus())}),We(()=>{n()||B(_e,void 0)}),We(()=>{!se.current&&s(_e)&&qh(G,s(_e))}),We(()=>{Y()&&ke.set(Y())});async function Oe(nt){var vi;se.pushSubMenu(nt),await $o(),ee(nt,ce[nt]);let ut=(vi=Y())==null?void 0:vi.firstElementChild;ut&&sf(ut)}function ze(nt){var ut;nt==null||nt.stopPropagation(),r()||(ut=e.returnFocus)==null||ut.call(e),Nt(),B(me,!1)}function Ae(nt,ut){le.actions.internal.setQuality(nt,{appliesTo:ut}),ze()}function Ye(nt){le.actions.internal.setAudioStream(nt),ze()}function Re(nt,ut){le.actions.internal.setTrafficSavingEnabled(nt,ut),we.features.qualityDetailsSubMenuEnabled&&ze()}function tt(nt,ut){le.actions.internal.setHighQualityEnabled(nt,ut),ze()}function kt(nt){le.actions.internal.setPlaybackRate(nt),ze()}function Mt(nt){le.actions.internal.setSubtitle(nt),ze()}function Je(){Qt()}function ni(){rx(e.supportLink)&&window.open(e.supportLink,"_blank"),le.actions.internal.reportProblem(),le.actions.internal.pause()}function pi(){ol(le.actions.internal.getDebugTextData())}let at=()=>{let nt=le.actions.internal.getTraceTextData(),ut=new Blob([...nt],{type:"application/json"}),vi=window.URL.createObjectURL(ut);sa(vi,"vk_player_trace_info","json")};function ei(){xt.set(!l())}function ii(){B(me,!0)}function ci(){B(me,!1)}function xo(){return d()?`max-height: ${Math.round(a().height*.6)}px`:`max-height: ${a().height-32-ne()}px; overflow: auto;`}let uo=h(()=>xe&&p()&&!f()),jt=h(()=>we.features.trafficSaving&&!f()&&v()&&!we.features.qualityDetailsSubMenuEnabled),wi=h(()=>u().length>0&&!f()),Zi=h(()=>!!$()&&!f()),$t=h(()=>we.features.audioLanguages&&w().length>=2&&!f()),gt=h(()=>!f());Rt(()=>Qe.subscribe(nt=>{nt&&!d()&&!s(me)&&!r()&&ze()}));let Ci=h(()=>{let nt=[s(gt)&&"QUALITY_SETTINGS",s($t)&&"AUDIO_LANGUAGES",s(Zi)&&"PLAYBACK_RATE",s(wi)&&"SUBTITLES",s(jt)&&"TRAFFIC_SAVING_SWITCH",s(uo)&&"DOWNLOAD",we.showSupport&&"SHOW_SUPPORT","COPY_DATA",we.features.saveTraceInfoToFile&&"SAVE_TRACE_INFO","DEBUG_INFO"].filter(ut=>!!ut);return O1({items:nt,context:{qualityDetailsSubMenuEnabled:we.features.qualityDetailsSubMenuEnabled,availablePlaybackRates:y(),currentAudioStream:S(),availableAudioStreams:w(),currentPlaybackRate:T(),selectPlaybackRate:kt,trafficSavingEnabled:k(),toggleTrafficSaving:Re,currentQuality:A()||D1.INVARIANT,isAutoQualityEnabled:I()||!1,currentSubtitle:E(),isMobile:d(),onDownloadClick:Je,onCopyDataClick:pi,onReportProblemClick:ni,onSaveTraceDataClick:at,toggleShowDebugInfo:ei},additionalSettingsMenuItems:V()})}),Vo=h(()=>B1({subMenuId:se.current,context:{availablePlaybackRates:y(),selectPlaybackRate:kt,trafficSavingEnabled:k(),toggleTrafficSaving:Re,currentQuality:A()||D1.INVARIANT,isAutoQualityEnabled:I()||!1,isAutoQualityAvailable:K()||!1,availableQualities:W(),highQualityEnabled:U(),toggleHighQuality:tt,availableAudioStreams:w(),availableSubtitlesList:u(),closeSettingsMenu:Nt,currentAudioStream:S(),isMobile:d(),selectAudioLanguage:Ye,selectQuality:Ae,selectSubtitle:Mt}}));var q=dx();let Bt;var di=_(q);{var Kt=nt=>{var ut=lx();let vi;ut.__keydown=[sx,Nt];var Ot=_(ut);{var Xn=Ai=>{var bt=ax();let Mi;var Go=_(bt),un=_(Go,!0);g(Go);var Ti=P(Go,2);Ti.__click=ze,g(bt),O((Xi,Ei)=>{Mi=J(bt,1,"item header svelte-17or3al",null,Mi,Xi),he(un,Ei)},[()=>({mobile:d()}),()=>Yt("submenu_settings")]),b(Ai,bt)};L(Ot,Ai=>{d()&&Ai(Xn)})}var Si=P(Ot,2);let po;$i(Si,21,()=>s(Ci),Ai=>Ai.id,(Ai,bt)=>{var Mi=Ue(),Go=fe(Mi);{var un=Xi=>{Im(Xi,{get isMobile(){return d()},get id(){return s(bt).id},get icon(){return s(bt).icon},get label(){return s(bt).label},get ariaLabel(){return s(bt).ariaLabel},get value(){return s(bt).value},get valueComponent(){return s(bt).valueComponent},onClick:()=>{Oe(s(bt).children),B(_e,s(bt).id,!0)},get ref(){return G[s(bt).id]},set ref(Ei){G[s(bt).id]=Ei}})},Ti=(Xi,Ei)=>{{var Yo=wo=>{km(wo,{get isMobile(){return d()},get id(){return s(bt).id},get onClick(){return s(bt).onClick},get icon(){return s(bt).icon},get label(){return s(bt).label},get ariaLabel(){return s(bt).ariaLabel},closeSettings:ze})},Mn=(wo,Ro)=>{{var fo=mo=>{Am(mo,{get isMobile(){return d()},get id(){return s(bt).id},get onClick(){return s(bt).onClick},get icon(){return s(bt).icon},get label(){return s(bt).label},get ariaLabel(){return s(bt).ariaLabel},get enabled(){return s(bt).enabled},get tooltipText(){return s(bt).tooltipText},get maxTooltipWidth(){return s(bt).maxTooltipWidth}})};L(wo,mo=>{s(bt).type==="SWITCH"&&mo(fo)},Ro)}};L(Xi,wo=>{s(bt).type==="CLICK"?wo(Yo):wo(Mn,!1)},Ei)}};L(Go,Xi=>{s(bt).type==="OPEN_SUB_MENU"?Xi(un):Xi(Ti,!1)})}b(Ai,Mi)}),g(Si),ot(Si,Ai=>Y(Ai),()=>Y()),g(ut),O((Ai,bt,Mi)=>{vi=J(ut,1,"settings-menu menu svelte-17or3al",null,vi,Ai),po=J(Si,1,"items",null,po,bt),st(Si,Mi)},[()=>({desktop:!d(),mobile:d(),hidden:!!se.current}),()=>({mobile:d()}),xo]),wt("mouseenter",ut,ii),wt("mouseleave",ut,ci),b(nt,ut)};L(di,nt=>{n()&&nt(Kt)})}var ft=P(di,2);$i(ft,17,()=>s(Vo),nt=>nt.id,(nt,ut)=>{let vi=h(()=>{var Ot;return(Ot=s(ut).minWidth)!=null?Ot:137});Em(nt,{get isMobile(){return d()},get playerControlsHeight(){return ne()},get returnFromSubMenu(){return se.popSubMenu},get id(){return s(ut).id},get title(){return s(ut).title},get closeSettingsMenu(){return Nt},openSubMenuList:Oe,get items(){return s(ut).items},get minWidth(){return s(vi)},get refMenuItems(){return G},get listRef(){return ce[s(ut).id]},set listRef(Ot){ce[s(ut).id]=Ot}})}),g(q),O(nt=>Bt=J(q,1,"settings-menu-container svelte-17or3al",null,Bt,nt),[()=>({mobile:d(),hidden:!n()})]),b(t,q),H(),o()}lt(["keydown","click"]);var ux=t=>t;function H1(t,{delay:e=0,duration:i=400,easing:o=ux}={}){let n=+getComputedStyle(t).opacity;return{delay:e,duration:i,easing:o,css:r=>`opacity: ${r*n}`}}var px=M('<button class="button svelte-1sbbskl"> </button>'),fx={hash:"svelte-1sbbskl",code:".button.svelte-1sbbskl {margin-top:12px;font-size:14px;line-height:18px;background:rgba(255, 255, 255, 0.1);padding:6px 12px 7px;border-radius:8px;}"};function Wm(t,e){z(t,fx);var i=px();i.__click=function(...n){var r;(r=e.onClick)==null||r.apply(this,n)};var o=_(i,!0);g(i),O(()=>he(o,e.label)),b(t,i)}lt(["click"]);var mx=M('<div class="container svelte-1es7arp"><div class="notification svelte-1es7arp"><div><p class="description svelte-1es7arp"><!></p> <!></div> <!></div></div>'),vx={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 Od(t,e){F(e,!0),K(t,cx);let[i,o]=He(),n=()=>C(Ke,"$settingsMenuVisible",i),s=()=>C(Xe,"$settingsMenuOpenedByKeyboard",i),l=()=>C(St,"$debugPanelVisible",i),d=()=>C(ee,"$isMobile",i),a=()=>C(bt,"$playerSize",i),p=()=>C(Z,"$hasMpegSources$",i),f=()=>C(Ce,"$mobileNotReportControlHidden$",i),v=()=>C(te,"$autoQualityLimitingAvailable$",i),u=()=>C(ue,"$availableSubtitlesList$",i),y=()=>C(qe,"$isLiveWithPlaybackSpeed",i),w=()=>C(fe,"$availableAudioStreams$",i),b=()=>C(he,"$availablePlaybackRates$",i),S=()=>C(Ie,"$currentAudioStream$",i),T=()=>C(ye,"$currentPlaybackRate$",i),E=()=>C(st,"$trafficSavingEnabled",i),M=()=>C(re,"$currentQuality$",i),I=()=>C(N,"$isAutoQualityEnabled$",i),k=()=>C(ce,"$currentSubtitle$",i),R=()=>C(Wt,"$additionalSettingsMenuItems$",i),Y=()=>C(Oe,"$isAutoQualityAvailable$",i),D=()=>C(ke,"$availableQualities$",i),H=()=>C(ct,"$highQualityEnabled",i),q=m(e,"ref",15,void 0),J=m(e,"playerControlsHeight",3,0),W=si({}),de=si({}),ie=Ee(),ve=Ft(),Ie=ie.state.audioStream$,fe=ie.state.availableAudioStreams$,re=ie.state.currentQuality$,ke=ie.state.availableQualities$,te=ie.state.autoQualityLimitingAvailable$,N=ie.state.isAutoQualityEnabled$,Oe=ie.state.isAutoQualityAvailable$,ye=ie.state.currentPlaybackRate$,he=ie.state.availablePlaybackRates$,ce=ie.state.currentSubtitle$,ue=ie.state.availableSubtitlesList$,we=ie.state.canDownload,Z=ie.state.hasMpegSources$,Ke=ie.ui.settingsMenu.visible$,Xe=ie.ui.settingsMenu.openedByBtnKeyboard$,Ae=ie.ui.settingsMenu.ref$,ee=ie.ui.isMobile,Ce=ie.ui.mobileNotReportControlHidden$,qe=ie.state.canChangePlaybackSpeed$,st=ie.state.trafficSavingEnabled$,ct=ie.state.highQualityEnabled$,bt=ie.ui.playerSize,St=ie.ui.debugPanelVisible,Ge=ie.state.isInteractiveTime$,Wt=ie.ui.additionalSettingsMenuItems$,Qt=ie.ui.t,qt=ie.actions.internal.downloadVideo,Nt=ie.actions.internal.closeSettingsMenu,oe=ie.actions.internal.openSettingsSubMenu,At=ie.actions.internal.closeSettingsSubMenu,ge=j(!1),be=j(void 0),le=k1();We(()=>{!n()&&le.current&&(At(de[le.current]),le.popAllSubMenus())}),We(()=>{n()||B(be,void 0)}),We(()=>{!le.current&&r(be)&&Kh(W,r(be))}),We(()=>{q()&&Ae.set(q())});async function De(rt){var hi;le.pushSubMenu(rt),await yo(),oe(rt,de[rt]);let ut=(hi=q())==null?void 0:hi.firstElementChild;ut&&af(ut)}function ze(rt){var ut;rt==null||rt.stopPropagation(),s()||(ut=e.returnFocus)==null||ut.call(e),Nt(),B(ge,!1)}function Le(rt,ut){ie.actions.internal.setQuality(rt,{appliesTo:ut}),ze()}function Ye(rt){ie.actions.internal.setAudioStream(rt),ze()}function Re(rt,ut){ie.actions.internal.setTrafficSavingEnabled(rt,ut),ve.features.qualityDetailsSubMenuEnabled&&ze()}function tt(rt,ut){ie.actions.internal.setHighQualityEnabled(rt,ut),ze()}function Pt(rt){ie.actions.internal.setPlaybackRate(rt),ze()}function Mt(rt){ie.actions.internal.setSubtitle(rt),ze()}function Je(){qt()}function ai(){rx(e.supportLink)&&window.open(e.supportLink,"_blank"),ie.actions.internal.reportProblem(),ie.actions.internal.pause()}function mi(){tl(ie.actions.internal.getDebugTextData())}let at=()=>{let rt=ie.actions.internal.getTraceTextData(),ut=new Blob([...rt],{type:"application/json"}),hi=window.URL.createObjectURL(ut);ra(hi,"vk_player_trace_info","json")};function Xt(){St.set(!l())}function ti(){B(ge,!0)}function ui(){B(ge,!1)}function wo(){return d()?`max-height: ${Math.round(a().height*.6)}px`:`max-height: ${a().height-32-J()}px; overflow: auto;`}let po=g(()=>we&&p()&&!f()),Yt=g(()=>ve.features.trafficSaving&&!f()&&v()&&!ve.features.qualityDetailsSubMenuEnabled),wi=g(()=>u().length>0&&!f()),Yi=g(()=>!!y()&&!f()),yt=g(()=>ve.features.audioLanguages&&w().length>=2&&!f()),ht=g(()=>!f());Rt(()=>Ge.subscribe(rt=>{rt&&!d()&&!r(ge)&&!s()&&ze()}));let Ci=g(()=>{let rt=[r(ht)&&"QUALITY_SETTINGS",r(yt)&&"AUDIO_LANGUAGES",r(Yi)&&"PLAYBACK_RATE",r(wi)&&"SUBTITLES",r(Yt)&&"TRAFFIC_SAVING_SWITCH",r(po)&&"DOWNLOAD",ve.showSupport&&"SHOW_SUPPORT","COPY_DATA",ve.features.saveTraceInfoToFile&&"SAVE_TRACE_INFO","DEBUG_INFO"].filter(ut=>!!ut);return O1({items:rt,context:{qualityDetailsSubMenuEnabled:ve.features.qualityDetailsSubMenuEnabled,availablePlaybackRates:b(),currentAudioStream:S(),availableAudioStreams:w(),currentPlaybackRate:T(),selectPlaybackRate:Pt,trafficSavingEnabled:E(),toggleTrafficSaving:Re,currentQuality:M()||D1.INVARIANT,isAutoQualityEnabled:I()||!1,currentSubtitle:k(),isMobile:d(),onDownloadClick:Je,onCopyDataClick:mi,onReportProblemClick:ai,onSaveTraceDataClick:at,toggleShowDebugInfo:Xt},additionalSettingsMenuItems:R()})}),Ho=g(()=>B1({subMenuId:le.current,context:{availablePlaybackRates:b(),selectPlaybackRate:Pt,trafficSavingEnabled:E(),toggleTrafficSaving:Re,currentQuality:M()||D1.INVARIANT,isAutoQualityEnabled:I()||!1,isAutoQualityAvailable:Y()||!1,availableQualities:D(),highQualityEnabled:H(),toggleHighQuality:tt,availableAudioStreams:w(),availableSubtitlesList:u(),closeSettingsMenu:Nt,currentAudioStream:S(),isMobile:d(),selectAudioLanguage:Ye,selectQuality:Le,selectSubtitle:Mt}}));var G=dx();let Bt;var ci=_(G);{var Kt=rt=>{var ut=lx();let hi;ut.__keydown=[sx,Nt];var Ot=_(ut);{var er=Mi=>{var $t=ax();let Li;var Xo=_($t),fn=_(Xo,!0);h(Xo);var Ti=P(Xo,2);Ti.__click=ze,h($t),O((ji,Ei)=>{Li=X($t,1,"item header svelte-17or3al",null,Li,ji),_e(fn,Ei)},[()=>({mobile:d()}),()=>Qt("submenu_settings")]),$(Mi,$t)};L(Ot,Mi=>{d()&&Mi(er)})}var Si=P(Ot,2);let fo;$i(Si,21,()=>r(Ci),Mi=>Mi.id,(Mi,$t)=>{var Li=Ue(),Xo=me(Li);{var fn=ji=>{Im(ji,{get isMobile(){return d()},get id(){return r($t).id},get icon(){return r($t).icon},get label(){return r($t).label},get ariaLabel(){return r($t).ariaLabel},get value(){return r($t).value},get valueComponent(){return r($t).valueComponent},onClick:()=>{De(r($t).children),B(be,r($t).id,!0)},get ref(){return W[r($t).id]},set ref(Ei){W[r($t).id]=Ei}})},Ti=(ji,Ei)=>{{var Jo=Co=>{km(Co,{get isMobile(){return d()},get id(){return r($t).id},get onClick(){return r($t).onClick},get icon(){return r($t).icon},get label(){return r($t).label},get ariaLabel(){return r($t).ariaLabel},closeSettings:ze})},Ln=(Co,Fo)=>{{var io=mo=>{Am(mo,{get isMobile(){return d()},get id(){return r($t).id},get onClick(){return r($t).onClick},get icon(){return r($t).icon},get label(){return r($t).label},get ariaLabel(){return r($t).ariaLabel},get enabled(){return r($t).enabled},get tooltipText(){return r($t).tooltipText},get maxTooltipWidth(){return r($t).maxTooltipWidth}})};L(Co,mo=>{r($t).type==="SWITCH"&&mo(io)},Fo)}};L(ji,Co=>{r($t).type==="CLICK"?Co(Jo):Co(Ln,!1)},Ei)}};L(Xo,ji=>{r($t).type==="OPEN_SUB_MENU"?ji(fn):ji(Ti,!1)})}$(Mi,Li)}),h(Si),ot(Si,Mi=>q(Mi),()=>q()),h(ut),O((Mi,$t,Li)=>{hi=X(ut,1,"settings-menu menu svelte-17or3al",null,hi,Mi),fo=X(Si,1,"items",null,fo,$t),nt(Si,Li)},[()=>({desktop:!d(),mobile:d(),hidden:!!le.current}),()=>({mobile:d()}),wo]),Tt("mouseenter",ut,ti),Tt("mouseleave",ut,ui),$(rt,ut)};L(ci,rt=>{n()&&rt(Kt)})}var ft=P(ci,2);$i(ft,17,()=>r(Ho),rt=>rt.id,(rt,ut)=>{let hi=g(()=>{var Ot;return(Ot=r(ut).minWidth)!=null?Ot:137});Em(rt,{get isMobile(){return d()},get playerControlsHeight(){return J()},get returnFromSubMenu(){return le.popSubMenu},get id(){return r(ut).id},get title(){return r(ut).title},get closeSettingsMenu(){return Nt},openSubMenuList:De,get items(){return r(ut).items},get minWidth(){return r(hi)},get refMenuItems(){return W},get listRef(){return de[r(ut).id]},set listRef(Ot){de[r(ut).id]=Ot}})}),h(G),O(rt=>Bt=X(G,1,"settings-menu-container svelte-17or3al",null,Bt,rt),[()=>({mobile:d(),hidden:!n()})]),$(t,G),U(),o()}lt(["keydown","click"]);var ux=t=>t;function H1(t,{delay:e=0,duration:i=400,easing:o=ux}={}){let n=+getComputedStyle(t).opacity;return{delay:e,duration:i,easing:o,css:s=>`opacity: ${s*n}`}}var px=A('<button class="button svelte-1sbbskl"> </button>'),fx={hash:"svelte-1sbbskl",code:".button.svelte-1sbbskl {margin-top:12px;font-size:14px;line-height:18px;background:rgba(255, 255, 255, 0.1);padding:6px 12px 7px;border-radius:8px;}"};function Wm(t,e){K(t,fx);var i=px();i.__click=function(...n){var s;(s=e.onClick)==null||s.apply(this,n)};var o=_(i,!0);h(i),O(()=>_e(o,e.label)),$(t,i)}lt(["click"]);var mx=A('<div class="container svelte-1es7arp"><div class="notification svelte-1es7arp"><div><p class="description svelte-1es7arp"><!></p> <!></div> <!></div></div>'),vx={hash:"svelte-1es7arp",code:`.container.svelte-1es7arp {position:absolute;left:0;right:0;top:20px;display:flex;justify-content:center;
307
307
  /**
308
308
  * \u0415\u0441\u043B\u0438 \u043D\u0435 \u043E\u0442\u043A\u043B\u044E\u0447\u0438\u043C \u0443 \u043A\u043E\u043D\u0442\u0435\u0439\u043D\u0435\u0440\u0430 \u0441\u043E\u0431\u044B\u0442\u0438\u044F, \u0442\u043E \u043D\u0435 \u0441\u043C\u043E\u0436\u0435\u043C \u043F\u043E \u044D\u0442\u043E\u0439 \u043E\u0431\u043B\u0430\u0441\u0442\u0438 \u0432\u044B\u0437\u0432\u0430\u0442\u044C \u043A\u043E\u043D\u0442\u0435\u043A\u0441\u0442\u043D\u043E\u0435 \u043C\u0435\u043D\u044E.
309
- */pointer-events:none;}.notification.svelte-1es7arp {padding:9px 14px 10px 12px;background:var(--notification-bg);display:inline-flex;border-radius:var(--notification-radius);gap:10px;pointer-events:auto;}.description.svelte-1es7arp {line-height:16px;font-size:13px;margin:0;white-space:pre;}`};function Nd(t,e){D(e,!0),z(t,vx);let i=340,{features:{forceAutoQualityWhenSevereStallHappens:o}}=Ft(),{ui:{t:n}}=Ee(),r=n(o?"slow_video_notification_force_description":"slow_video_notification_suggest_description");var l=mx(),d=_(l),a=_(d),p=_(a),f=_(p);Vd(f,{get message(){return r}}),g(p);var v=P(p,2);{var u=w=>{let y=h(()=>n("slow_video_notification_button"));Wm(w,{get label(){return s(y)},get onClick(){return e.onSelectAutoQuality}})};L(v,w=>{o||w(u)})}g(a);var $=P(a,2);pa($,{get onClick(){return e.onClose}}),g(d),g(l),Tp(3,d,()=>H1,()=>({duration:i})),b(t,l),H()}import{isIntersecting as F1,Subscription as gx}from"@vkontakte/videoplayer-shared/es2018";var Ea="annotation",$u=class{constructor(){this.slots=new Map}init(e,i){this.shadowRootContainer=e,this.store=i}add(e,i){var d;let{overlay:o,id:n,controlsBehaviour:r,hideAllControls:l}=i;e.setAttribute("slot",Ea),this.setupSlotStyles(e,o),this.shadowRootContainer.append(e),this.slots.set(n,{rootElement:e,options:i}),r&&this.runHidingControlsWhenIntersected(n,r),l&&((d=this.store)==null||d.ui.isControlsAvailable.set(!1))}setupSlotStyles(e,i){switch(e.style.position="absolute",i){case"over_video":e.style.zIndex="calc(var(--video-container-z-index) + 1)";break;case"over_controls":e.style.zIndex="calc(var(--controls-container-z-index) + 1)";break;default:e.style.zIndex="0"}}async runHidingControlsWhenIntersected(e,{observedSlotElementId:i,controlsToObserve:o}){var f;let n=this.slots.get(e);if(!n)return;let r=await this.findSlotElement(n.rootElement,i,e),{controls:l,hiddenControls:d}=((f=this.store)==null?void 0:f.ui)||{},a=new MutationObserver(v=>v.forEach(()=>{let u=vs(r,this.shadowRootContainer);o.forEach($=>{let w=l==null?void 0:l[$],y=w?$e(w):null,S=d==null?void 0:d[$];y&&(S==null||S.set(F1(y,u)))})}));a.observe(r,{childList:!0,subtree:!0}),n.observer=a;let p=new gx;o.forEach(v=>{l&&p.add(l[v].subscribe(u=>{let $=d==null?void 0:d[v];u&&u.isDisplayed?$==null||$.set(F1(u,vs(r,this.shadowRootContainer))):$==null||$.set(!1)}))}),n.subs=p}async findSlotElement(e,i,o){return new Promise(n=>{let r=null,l=new MutationObserver(()=>{if(r=e.querySelector(`#${i}`),r){l.disconnect();let a=this.slots.get(o);a&&(a.observerForFindingSlotElement=void 0),n(r)}});l.observe(e,{childList:!0,subtree:!0});let d=this.slots.get(o);d&&(d.observerForFindingSlotElement=l)})}remove(e){var p,f;let i=this.slots.get(e);if(!i)return;let{rootElement:o,observer:n,observerForFindingSlotElement:r,subs:l,options:{controlsBehaviour:d,hideAllControls:a}}=i;o&&o.remove(),[n,r].forEach(v=>v==null?void 0:v.disconnect()),l==null||l.unsubscribe(),this.slots.delete(e),a&&((p=this.store)==null||p.ui.isControlsAvailable.set(!0)),(f=d==null?void 0:d.controlsToObserve)==null||f.forEach(v=>{var u,$;($=(u=this.store)==null?void 0:u.ui.hiddenControls[v])==null||$.set(!1)})}destroy(){for(let e in this.slots.keys())this.remove(e);this.slots.clear()}haveSlots(){return this.slots.size>0}};var hx=M('<div class="container svelte-f47ws8"><div class="playback_state_icon svelte-f47ws8"><!></div></div>'),_x={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 Dd(t,e){F(e,!0),K(t,vx);let i=340,{features:{forceAutoQualityWhenSevereStallHappens:o}}=Ft(),{ui:{t:n}}=Ee(),s=n(o?"slow_video_notification_force_description":"slow_video_notification_suggest_description");var l=mx(),d=_(l),a=_(d),p=_(a),f=_(p);Bd(f,{get message(){return s}}),h(p);var v=P(p,2);{var u=w=>{let b=g(()=>n("slow_video_notification_button"));Wm(w,{get label(){return r(b)},get onClick(){return e.onSelectAutoQuality}})};L(v,w=>{o||w(u)})}h(a);var y=P(a,2);ua(y,{get onClick(){return e.onClose}}),h(d),h(l),Ip(3,d,()=>H1,()=>({duration:i})),$(t,l),U()}import{isIntersecting as F1,Subscription as gx}from"@vkontakte/videoplayer-shared/es2018";var Ta="annotation",xu=class{constructor(){this.slots=new Map}init(e,i){this.shadowRootContainer=e,this.store=i}add(e,i){var d;let{overlay:o,id:n,controlsBehaviour:s,hideAllControls:l}=i;e.setAttribute("slot",Ta),this.setupSlotStyles(e,o),this.shadowRootContainer.append(e),this.slots.set(n,{rootElement:e,options:i}),s&&this.runHidingControlsWhenIntersected(n,s),l&&((d=this.store)==null||d.ui.isControlsAvailable.set(!1))}setupSlotStyles(e,i){switch(e.style.position="absolute",i){case"over_video":e.style.zIndex="calc(var(--video-container-z-index) + 1)";break;case"over_controls":e.style.zIndex="calc(var(--controls-container-z-index) + 1)";break;default:e.style.zIndex="0"}}async runHidingControlsWhenIntersected(e,{observedSlotElementId:i,controlsToObserve:o}){var f;let n=this.slots.get(e);if(!n)return;let s=await this.findSlotElement(n.rootElement,i,e),{controls:l,hiddenControls:d}=((f=this.store)==null?void 0:f.ui)||{},a=new MutationObserver(v=>v.forEach(()=>{let u=vs(s,this.shadowRootContainer);o.forEach(y=>{let w=l==null?void 0:l[y],b=w?$e(w):null,S=d==null?void 0:d[y];b&&(S==null||S.set(F1(b,u)))})}));a.observe(s,{childList:!0,subtree:!0}),n.observer=a;let p=new gx;o.forEach(v=>{l&&p.add(l[v].subscribe(u=>{let y=d==null?void 0:d[v];u&&u.isDisplayed?y==null||y.set(F1(u,vs(s,this.shadowRootContainer))):y==null||y.set(!1)}))}),n.subs=p}async findSlotElement(e,i,o){return new Promise(n=>{let s=null,l=new MutationObserver(()=>{if(s=e.querySelector(`#${i}`),s){l.disconnect();let a=this.slots.get(o);a&&(a.observerForFindingSlotElement=void 0),n(s)}});l.observe(e,{childList:!0,subtree:!0});let d=this.slots.get(o);d&&(d.observerForFindingSlotElement=l)})}remove(e){var p,f;let i=this.slots.get(e);if(!i)return;let{rootElement:o,observer:n,observerForFindingSlotElement:s,subs:l,options:{controlsBehaviour:d,hideAllControls:a}}=i;o&&o.remove(),[n,s].forEach(v=>v==null?void 0:v.disconnect()),l==null||l.unsubscribe(),this.slots.delete(e),a&&((p=this.store)==null||p.ui.isControlsAvailable.set(!0)),(f=d==null?void 0:d.controlsToObserve)==null||f.forEach(v=>{var u,y;(y=(u=this.store)==null?void 0:u.ui.hiddenControls[v])==null||y.set(!1)})}destroy(){for(let e in this.slots.keys())this.remove(e);this.slots.clear()}haveSlots(){return this.slots.size>0}};var hx=A('<div class="container svelte-f47ws8"><div class="playback_state_icon svelte-f47ws8"><!></div></div>'),_x={hash:"svelte-f47ws8",code:`.container.svelte-f47ws8 {position:absolute;display:flex;width:100%;height:100%;align-items:center;justify-content:center;pointer-events:none;}.playback_state_icon.svelte-f47ws8 {display:flex;align-items:center;justify-content:center;width:64px;height:64px;border-radius:100%;background-color:#00000073;will-change:opacity, scale;
310
310
 
311
311
  animation-name: svelte-f47ws8-videoPlayerStatusIconPopup;animation-fill-mode:forwards;}
312
312
 
@@ -337,8 +337,8 @@ Try switching the\xA0quality to\xA0Auto.`},Ih=w_;var fs=new Map;fs.set(Ph.EN,Ih)
337
337
  opacity: 0;
338
338
  scale: 0;
339
339
  }
340
- }`};function qm(t,e){D(e,!0),z(t,_x);let[i,o]=De(),n=()=>C(l,"$isPlaying$",i),r=()=>C(d,"$aboutToGoNextVideo",i),{state:{isPlaying$:l},ui:{aboutToGoNextVideo:d},actions:a}=Ee(),{features:{playbackStatusShow:p,playbackStatusAnimationDuration:f,playbackStatusNextVideoAnimationDuration:v}}=Ft(),u=0,$=j(null),w=j(!1);We(()=>{B($,n()?Nr:_s,!0)}),We(()=>{B($,r()?Bs:null,!0)}),We(()=>{if(p)return u=window.setTimeout(()=>{u=0,r()&&s($)===Bs&&(r()==="next"?a.internal.nextVideoClick(!1):a.internal.prevVideoClick(!1)),B($,null)},s($)!==Bs?f:v),()=>{u&&(window.clearTimeout(u),u=0)}}),We(()=>{n()&&!s(w)&&(B(w,!0),B($,null))});var y=Ue(),S=fe(y);{var T=k=>{var A=Ue(),I=fe(A);ia(I,()=>s($),E=>{var V=hx(),K=_(V),W=_(K);let U=h(()=>r()==="prev");yi(W,()=>s($),(Y,ne)=>{ne(Y,{width:"40",height:"40",viewBox:"0 0 24 24",get isPrev(){return s(U)}})}),g(K),g(V),O(()=>st(K,`animation-duration: ${s($)!==Bs?f:v}ms`)),b(E,V)}),b(k,A)};L(S,k=>{s($)&&p&&k(T)})}b(t,y),H(),o()}var bx=M('<div><div data-testid="video-container"></div></div>'),$x={hash:"svelte-1czns9r",code:`.video-wrapper.svelte-1czns9r,
341
- .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 Ia(t,e){D(e,!0),z(t,$x);let[i,o]=De(),n=()=>C(f,"$rotateAlpha",i),r=()=>C(v,"$playerSize",i),l=()=>C(p,"$playerPhase",i),d=()=>C(u,"$isPlaying$",i),a=m(e,"videoContainer",15),{playerPhase:p,ui:{rotateAlpha:f,playerSize:v},state:{isPlaying$:u}}=Ee(),{isSmoothVideoRotate:$}=Ft(),w=h(()=>a()&&n()%180?r().height/r().width:1);var y=bx();let S;y.__contextmenu=function(...A){var I;(I=e.onContextMenu)==null||I.apply(this,A)},y.__mousedown=function(...A){var I;(I=e.onMouseDown)==null||I.apply(this,A)},y.__mouseup=function(...A){var I;(I=e.onMouseUp)==null||I.apply(this,A)},y.__click=function(...A){var I;(I=e.onClick)==null||I.apply(this,A)},y.__dblclick=function(...A){var I;(I=e.onDblClick)==null||I.apply(this,A)};var T=_(y);let k;ot(T,A=>a(A),()=>a()),g(y),O((A,I)=>{S=J(y,1,"video-wrapper svelte-1czns9r",null,S,A),k=J(T,1,"video-container svelte-1czns9r",null,k,I),st(T,`transform: rotate(${n()}deg) scale(${s(w)})`),Ne(T,"data-is-playing",d())},[()=>({hidden:l()!=="video",nocursor:e.hideCursor}),()=>({"fast-rotate":!$})]),b(t,y),H(),o()}lt(["contextmenu","mousedown","mouseup","click","dblclick"]);var yx=(t,e,i,o,n,r)=>{if(t.stopPropagation(),e()||o()){r();return}},xx=M("<div><!></div>"),wx=M('<div class="spherical-video-icon svelte-jtgjmv"><!></div>'),Cx=M("<div><!></div>"),Sx=M('<div class="settings-menu svelte-jtgjmv"><!></div>'),Tx=M("<!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!>",1),Ex=M("<!> <!> <!>",1),Ix=M('<div class="blocked svelte-jtgjmv"></div>'),kx=M('<div class="player-wrapper svelte-jtgjmv"><!> <div class="overlay-container"></div></div> <!>',1),Px={hash:"svelte-jtgjmv",code:".player-wrapper.svelte-jtgjmv {position:absolute;width:100%;height:100%;}.blocked.svelte-jtgjmv {position:absolute;width:100%;height:100%;z-index:var(--overlay-container-z-index);}.player-wrapper.svelte-jtgjmv .player-media {position:absolute;left:0;top:0;width:100%;height:100%;background:var(--black);transition:transform 0.2s ease-in-out;}.spherical-video-icon.svelte-jtgjmv {display:inline-block;position:absolute;top:calc(50% - 23px);left:calc(50% - 38px);}.ads-container.svelte-jtgjmv {position:absolute;width:100%;height:100%;left:0;top:0;}.ads-container.svelte-jtgjmv {z-index:var(--ads-container-z-index);background:var(--black);}.settings-menu.svelte-jtgjmv {position:absolute;z-index:var(--settings-menu-z-index);bottom:57px;right:18px;left:0;transition:opacity 0.2s, visibility 0.2s;}"};function Km(t,e){D(e,!0),z(t,Px);let[i,o]=De(),n=()=>C(gr,"$notificationsToShow$",i),r=()=>C(ii,"$playerPhase",i),l=()=>C(Vo,"$isLoaderVisible",i),d=()=>C(pi,"$adPlaybackState",i),a=()=>C(ut,"$crashed",i),p=()=>C(Go,"$isInteractiveTime$",i),f=()=>C(jt,"$settingsMenuVisible",i),v=()=>C(un,"$isInteractiveExpectation$",i),u=()=>C(uo,"$controlsVisible",i),$=()=>C(Xi,"$touched",i),w=()=>C(Dr,"$graphIsOpened$",i),y=()=>C(ci,"$isFullscreen",i),S=()=>C(Ln,"$autoplayNextEnabled$",i),T=()=>C(Kt,"$postrollPassed",i),k=()=>C(q,"$isEnded$",i),A=()=>C(On,"$cursorInside",i),I=()=>C(er,"$isControlsAvailable",i),E=()=>C(Vn,"$fakeIsPlaying$",i),V=()=>C(Ut,"$bottomNoSmooth",i),K=()=>C(wo,"$interactiveTimeIndicator",i),W=()=>C(po,"$playerSize",i),U=()=>C(Ai,"$is3DVideo",i),Y=()=>C(gt,"$contextMenuVisible$",i),ne=()=>C(ni,"$playbackState$",i),G=()=>C(Ei,"$hotKeyMapData",i),ce=()=>C(Zi,"$scrubbingInProgress",i),le=()=>C($t,"$volumeChangingInProgress",i),we=()=>C(Bt,"$chromecastConnected$",i),Ve=()=>C(Fi,"$controlsTimeoutActive",i),ve=()=>C(wi,"$settingsMenuOpenedByKeyboard",i),ae=()=>C(to,"$contextMenuOpenedByKeyboard$",i),Le=()=>C(wr,"$contextMenuOpenedByHotKey$",i),te=()=>C(Do,"$contextMenuButtonRef$",i),N=()=>C(qr,"$contextMenuLastActiveElem$",i),Be=()=>C(xo,"$isFullscreenOpenedByKeyboard",i),ye=()=>C(Je,"$language$",i),ge=()=>C(bt,"$icon3DVideoVisible",i),de=()=>C(di,"$chromecastDeviceName$",i),ue=()=>C(Xn,"$currentSubtitle$",i),xe=()=>C(Si,"$currentSubtitleCaptions$",i),Z=()=>C(at,"$position$",i),qe=()=>C(ei,"$duration$",i),Xe=()=>C(ft,"$isLive$",i),ke=()=>C(nt,"$isPlaying$",i),X=()=>C(fo,"$contextMenuPosition$",i),Te=()=>C(Yo,"$showHotKeyMap",i),Ke=()=>C(Ci,"$debugPanelVisible",i),rt=()=>C(Jn,"$userActionsDisabled$",i),ct=m(e,"videoContainer",15),ht=m(e,"adsSlotId",3,void 0),xt=m(e,"adsParams",3,void 0),Qe=m(e,"adsPreviewParam",3,void 0),qt=m(e,"adsAutoplayParam",3,void 0),Yt=m(e,"duration",3,void 0),Qt=m(e,"logoTargetUrl",3,""),Nt=m(e,"showNextPrevButtons",3,!1),ee=m(e,"nextButtonActive",3,!1),At=m(e,"prevButtonActive",3,!1),me=m(e,"endScreenVideoTitle",3,void 0),_e=m(e,"endScreenVideoThumb",3,void 0),se=m(e,"isOneVideoPlaylist",3,!1),Oe=m(e,"shadowRootContainer",3,void 0),ze=m(e,"outerContainerRef",3,void 0),Ae=m(e,"playerStarted",3,!1),Ye=m(e,"fullScreenTarget",3,void 0),Re=m(e,"showMiniTimer",3,!1),tt=m(e,"showEndScreen",3,!0),kt=m(e,"keyboardControls",15),Mt=e.store.getLogger().createComponentLog("Root component"),Je=e.store.interfaceLanguage$,ni=e.store.state.playbackState$,pi=e.store.ads.playbackState,at=e.store.state.positionWithScrubbing$,ei=e.store.state.duration$,ii=e.store.playerPhase,ci=e.store.ui.isFullscreen,xo=e.store.ui.isFullscreenOpenedByKeyboard,uo=e.store.ui.controlsVisible,jt=e.store.ui.settingsMenu.visible$,wi=e.store.ui.settingsMenu.openedByBtnKeyboard$,Zi=e.store.ui.scrubbingInProgress,$t=e.store.ui.volumeChangingInProgress,gt=e.store.ui.contextMenu.visible$,Ci=e.store.ui.debugPanelVisible,Vo=e.store.state.isLoaderVisible,q=e.store.state.isEnded$,Bt=e.store.state.chromecastConnected$,di=e.store.state.chromecastDeviceName$,Kt=e.store.ads.postrollPassed,ft=e.store.state.isLive$,nt=e.store.state.isPlaying$,ut=e.store.state.crashed$,vi=e.store.webApi.annotationsApi,Ot=e.store.webApi.pictureInPictureApi,Xn=e.store.state.currentSubtitle$,Si=e.store.state.currentSubtitleCaptions$,po=e.store.ui.playerSize,Ai=e.store.ui.is3DVideo,bt=e.store.ui.icon3DVideoVisible,Mi=e.store.state.isInteractive,Go=e.store.state.isInteractiveTime$,un=e.store.state.isInteractiveExpectation$,Ti=e.store.state.hasInteractiveBranches,Xi=e.store.ui.touched,Ei=e.store.ui.modals.hotKeyMap.data,Yo=e.store.ui.modals.hotKeyMap.show,Mn=e.store.ui.overlayContainer$,wo=e.store.ui.controls.interactiveTimeIndicator,Ro=e.store.state.showInteractiveTimeIndicator,fo=e.store.ui.contextMenu.position$,mo=e.store.actions.internal.setQuality,jo=e.store.actions.internal.closeSettingsMenu,Ln=e.store.ui.autoplayNextEnabled$,Jn=e.store.ui.userActionsDisabled,er=e.store.ui.isControlsAvailable,tr=e.store.ui.videoTitleInfo,Or=e.store.actions.internal.getVideoElement,{fakeIsPlaying$:Vn,notifications$:rs,graphIsOpened$:Dr}=co(),Hi=j(void 0),pn=j(void 0),Zo=j(void 0),fn=j(void 0),vo,mn,Rn;Ei.set(Bh());let{closeNotification:Hr,notificationsToShow$:gr}=rs,Fr=h(()=>!!n().slow_video),vn=()=>Hr("slow_video"),Nn=h(()=>(r()==="video"&&l()||r()==="ads"&&d()==="inactive")&&!a()),it=j(void 0),Ut=re(!1),Bn,Fi=re(!1),ir=re(),On=re(!1),gn=j(!1),Ui=j(!1),Xo=j(!1),No=j(!(e.autoplay&&!e.uiConfig.controls.showOnStartupAtAutoplay)),hn=h(()=>p()&&!f()&&!(s(gn)||s(Ui))&&!(s(Xo)&&!v())),hr=!0,_r=h(()=>e.uiConfig.features.thumbTimer&&Re()&&r()==="video"&&!u()&&!a()&&!Mi&&(e.uiConfig.hideThumbTimerAfterTouch&&!$()||!e.uiConfig.hideThumbTimerAfterTouch)),_n=h(()=>r()==="video"&&!w()&&y()),Ur=j(!1),bn=h(()=>(tt()||e.showAutoplayNext&&S())&&!!me()&&!!_e()&&(e.showAds&&T()||!e.showAds)&&k()&&!a()&&!s(Ur)),zr=h(()=>A()&&!(u()||s(bn))&&!p()&&I()),or=j(!1),br=h(()=>E()!==null),{toggle:Jo}=Vn,zt=!1,Co=null;Ot==null||Ot.setContext(xl());let nr=()=>{e.autoplay&&!Mi&&e.uiConfig.controls.showOnStartupAtAutoplay&&_i(e.uiConfig.controls.hideTimeout)};e.store.setUiCallbacks({onStarted:nr});let Dn=()=>{window.clearTimeout(vo),Fi.set(!1)},rr=()=>{window.clearTimeout(mn),ir.set(null)},_i=pe=>{Dn(),Fi.set(!0),vo=window.setTimeout(()=>Fi.set(!1),pe);let yt=pe-100;Bn=window.setTimeout(()=>{V()&&Ut.set(!1)},yt>0?yt:pe)},$r=(pe,yt)=>{rr(),ir.set(yt),mn=window.setTimeout(()=>ir.set(null),pe)},St=Ai.subscribe(pe=>{bt.set(pe),pe&&(window.clearTimeout(Rn),Rn=window.setTimeout(()=>bt.set(!1),e.uiConfig.controls.hide360IconTimeout))}),ai=async()=>{var yt,ri,Li,bi;let pe=Ps();if(pe){let Fe=jl(),Tt=$n();pe=Fe===Tt||Fe===Oe()}if(pe){_i(e.uiConfig.controls.hideTimeoutFullscreen);try{await(Ot==null?void 0:Ot.exit())}catch(Fe){Mt({message:String(Fe)})}}ci.set(pe),e.store.getAdmanWrapper().setFullscreen(pe),y()?(ri=(yt=e.store.callbacks)==null?void 0:yt.onFullscreenEnter)==null||ri.call(yt):(bi=(Li=e.store.callbacks)==null?void 0:Li.onFullscreenExit)==null||bi.call(Li)},en=pe=>{let{width:yt,height:ri}=pe.target;po.set({width:yt,height:ri})},tn=()=>{let{width:pe,height:yt}=s(Hi).getBoundingClientRect();po.set({width:pe,height:yt})};Rt(()=>{var yt;return qc(ai),e.uiConfig.features.annotationsInside&&(vi==null||vi.init(s(Hi))),da(Ot)&&(Ot==null||Ot.assignPlayerContainer(s(Hi)),Ot==null||Ot.setExternalEventHandlers({resize:en,leavepictureinpicture:tn})),e.interactiveContainer&&((yt=ct().parentElement)==null||yt.insertBefore(e.interactiveContainer,ct().nextSibling)),()=>{window.clearTimeout(vo),window.clearTimeout(Bn),window.clearTimeout(mn),window.clearTimeout(Rn),St(),Ot==null||Ot.dispose().catch(ri=>{Mt({message:String(ri)})}),Kc(ai)}});let $n=()=>{let pe=e.uiConfig.features.fullscreenInternalTargetPlayerContainer||!ze()?s(Hi):ze(),yt=pe.getRootNode(),ri=yt instanceof ShadowRoot?yt.host:yt,Li=Ye()instanceof HTMLElement&&Ye().contains(ri);return e.uiConfig.allowChangingFullscreenTarget&&Ye()&&Li?Ye():pe},Bo=()=>{gt.set(!1)},lo=()=>{jo(),Bo()},Ji=async()=>{Bo(),Ps()?(await Wc(document),Mt({message:"exit fullscreen"})):(Mt({message:"request fullscreen"}),await zc($n()))},Hn=pe=>{w()||(pe.preventDefault(),gt.set(!0),fo.set({left:pe.clientX,top:pe.clientY}))};function yr(){On.set(!0),Mi||_i(e.uiConfig.controls.hideTimeoutCursor)}function xr(){Mi||(Ut.set(!0),_i(e.uiConfig.controls.hideTimeoutCursor))}function Wr(){On.set(!1),B(Ui,!1),B(gn,!1),zt=!1,e.store.actions.internal.releaseCamera(),_i(e.uiConfig.controls.hideTimeout)}function et(pe){return pe?pe.offsetTop+et(pe.offsetParent):0}function Pt(pe){return pe?pe.offsetLeft+Pt(pe.offsetParent):0}function gi(pe){if(K()&&Ro){let yt=pe.currentTarget,ri=et(yt),Li=Pt(yt),bi=pe.pageX-Li,Fe=pe.pageY-ri,{left:Tt,bottom:hi,right:Ho}=K(),Vi=Ho-Tt;return bi>=Tt-Vi&&Fe<=hi+Vi}}function So(pe){if(s(Hi)){let yt=et(pe.currentTarget),ri=W().height,Li=pe.pageY-yt;if(gi(pe)){B(Ui,!1);return}Li<40?B(Ui,!0):Li>ri-40?B(gn,!0):(B(Ui,!1),f()||B(gn,!1))}}function eo(pe){So(pe),s(hn)||_i(e.uiConfig.controls.hideTimeoutCursor),U()&&zt&&Co&&e.store.actions.internal.moveCameraFocusPX(Co.clientX-pe.clientX,Co.clientY-pe.clientY,pe.timeStamp-Co.timeStamp),Co=pe}let go=pe=>{pe.preventDefault(),pe.button===0&&(zt=!0,e.store.actions.internal.holdCamera()),_i(e.uiConfig.controls.hideTimeoutCursor)},ho=pe=>{pe.preventDefault(),pe.button===0&&(Co=pe,zt=!1,e.store.actions.internal.releaseCamera()),_i(e.uiConfig.controls.hideTimeoutCursor)},on=pe=>{pe.preventDefault(),hr&&(Mt({message:"double click on video"}),Ji(),_i(e.uiConfig.controls.hideTimeoutCursor))},_o=pe=>{var yt;if(pe.preventDefault(),Y()||f()){lo();return}if(!(k()&&!Ti)){if(s(br))return Jo();if((yt=kt())==null||yt.focus(),!Ae()){e.firstStart(),_i(e.uiConfig.controls.hideTimeoutCursor);return}(!e.uiConfig.preventPauseOnVideoClick||ne()!==z1.PLAYING)&&e.store.actions.internal.togglePlay(),_i(e.uiConfig.controls.hideTimeoutCursor)}},zi=pe=>{lo(),Xi.set(!0),_i(e.uiConfig.controls.hideTimeout),pe&&$r(e.uiConfig.controls.hideHotKeyHelpers,pe)},Wi=()=>{var pe,yt;lo(),(pe=e.store.callbacks)!=null&&pe.onOpenHotKeyMap?(yt=e.store.callbacks)==null||yt.onOpenHotKeyMap(G()):Yo.update(ri=>!ri)},Oo=()=>{Xi.set(!0)},to=e.store.ui.contextMenu.openedByBtnKeyboard$,Do=e.store.ui.contextMenu.btnRef$,yn=j(void 0),wr=e.store.ui.contextMenu.openedByHotKey$,qr=e.store.ui.contextMenu.lastActiveElem$;We(()=>{Mn.set(s(it))}),We(()=>{B(Xo,s(No)&&ne()!==z1.PLAYING,!0),s(No)||Ct(()=>B(No,!0))}),We(()=>{uo.set((s(Xo)||k()||f()||ce()||le()||we()||Ve())&&!s(hn)&&(r()==="video"||r()==="ads")&&!a()&&I())}),We(()=>{!ce()&&s(or)&&!p()&&_i(e.uiConfig.controls.hideTimeoutCursor),Ct(()=>B(or,ce(),!0))}),We(()=>{s(fn),f(),ve(),Ct(()=>id(s(fn),f(),ve()))}),We(()=>{s(yn),Y(),ae(),Le(),Ct(()=>{let pe=ae()||Le();id(s(yn),Y(),pe)})}),We(()=>{let pe=te();pe&&(Y(),Ct(()=>nl(pe,Y(),to)))}),We(()=>{let pe=N();pe&&(Y(),Ct(()=>Wh(pe,Y(),wr)))}),We(()=>{var pe;!Be()&&y()&&(Ct(()=>xo.set(!1)),(pe=kt())==null||pe.focus())}),We(()=>{w()&&lo()});let Kr=F("video360"),sr=j(void 0),Cr=pe=>{tr.set(Rr(Or(),{title:s(sr)},"title",pe))};var xn=kx();wt("blur",js,lo);var qi=fe(xn);qi.__mousemove=eo;var Fn=_(qi);let ar=h(()=>r()==="ads"),Sr=h(()=>s(br)?Jo:void 0);ot(pf(Fn,{toggleFullscreen:Ji,hideContextMenu:lo,showHotKeyHelpers:zi,showKeyMap:Wi,get isAds(){return s(ar)},get fakePlayButtonHandler(){return s(Sr)},get nextButtonActive(){return ee()},get prevButtonActive(){return At()},children:(pe,yt)=>{var ri=Ex(),Li=fe(ri);Ia(Li,{get hideCursor(){return s(zr)},onClick:_o,onContextMenu:Hn,onMouseDown:go,onMouseUp:ho,onDblClick:on,get videoContainer(){return ct()},set videoContainer(Tt){ct(Tt)}});var bi=P(Li,2);oa(bi,()=>"slot",!1,(Tt,hi)=>{Ie(Tt,()=>({name:Ea}))});var Fe=P(bi,2);ia(Fe,ye,Tt=>{var hi=Tx(),Ho=fe(hi);let Vi=h(()=>r()!=="thumb"||a()||Mi&&e.autoplay);Ca(Ho,{get hidden(){return s(Vi)},get thumbUrl(){return e.thumbUrl},get startVideo(){return e.firstStart}});var Un=P(Ho,2);qm(Un,{});var Tr=P(Un,2);{var Fo=Ge=>{let si=h(()=>{var no;return(no=e.live)==null?void 0:no.startTime});Md(Ge,{get thumbUrl(){return e.thumbUrl},get startTime(){return s(si)}})};L(Tr,Ge=>{r()==="LiveWaitingStart"&&Ge(Fo)})}var Ki=P(Tr,2);{var Ri=Ge=>{Sa(Ge,{kind:"recover",get thumbUrl(){return e.thumbUrl}})};L(Ki,Ge=>{r()==="LiveWaitingRecover"&&Ge(Ri)})}var nn=P(Ki,2);{var dr=Ge=>{Sa(Ge,{kind:"record",get thumbUrl(){return e.thumbUrl}})};L(nn,Ge=>{r()==="LiveWaitingRecord"&&Ge(dr)})}var cr=P(nn,2);{var To=Ge=>{var si=xx();let no;var Us=_(si);Zl(Us,{get adsSlotId(){return ht()},get adsParams(){return xt()},get adsPreviewParam(){return Qe()},get adsAutoplayParam(){return qt()},get duration(){return Yt()}}),g(si),O(Uo=>no=J(si,1,"ads-container svelte-jtgjmv",null,no,Uo),[()=>({hidden:r()!=="ads"})]),b(Ge,si)};L(cr,Ge=>{e.showAds&&Ae()&&Ge(To)})}var Ds=P(cr,2);{var ka=Ge=>{let si=h(()=>!tt()&&e.showAutoplayNext&&S());df(Ge,{get title(){return me()},get thumb(){return _e()},get isHide(){return s(si)},clickCloseIcon:()=>B(Ur,!0)})};L(Ds,Ge=>{s(bn)&&me()&&_e()&&Ge(ka)})}var dt=P(Ds,2);{var _t=Ge=>{let si=h(()=>!u());$m(Ge,{get title(){return e.title},get isHidden(){return s(si)},onVisibilityChanged:Cr,get ref(){return s(sr)},set ref(no){B(sr,no,!0)}})};L(dt,Ge=>{s(_n)&&Ge(_t)})}var io=P(dt,2);{var rn=Ge=>{let si=h(()=>r()==="video"&&u());Pd(Ge,{get isShifted(){return s(si)}})};L(io,Ge=>{U()&&Ge(rn)})}var oo=P(io,2);{var li=Ge=>{var si=wx(),no=_(si);Yl(no,{get"aria-label"(){return Kr}}),g(si),b(Ge,si)};L(oo,Ge=>{ge()&&Ge(li)})}var Ii=P(oo,2);{var Hs=Ge=>{Ad(Ge,{get thumbUrl(){return e.thumbUrl},get chromecastDeviceName(){return de()}})};L(Ii,Ge=>{we()&&Ge(Hs)})}var Pa=P(Ii,2);{var Au=Ge=>{xa(Ge,{get shifted(){return u()},get captions(){return xe()},get position(){return Z()},get playerSize(){return W()}})};L(Pa,Ge=>{ue().value!=="off"&&Ge(Au)})}var Gd=P(Pa,2);{var Mu=Ge=>{var si=Cx();si.__contextmenu=Hn,si.__click=[yx,Y,gt,f,jt,lo];var no=_(si);wa(no,{}),g(si),b(Ge,si)};L(Gd,Ge=>{a()&&Ge(Mu)})}var Yd=P(Gd,2);{var Lu=Ge=>{let si=h(()=>r()==="thumb"||r()==="LiveWaitingStart"||r()==="LiveWaitingRecover"||r()==="LiveWaitingRecord"),no=h(()=>r()==="ads"),Us=h(()=>e.canRewindLive&&qe()!==0);kd(Ge,{get bottomHidden(){return s(si)},get bottomNoSmooth(){return V()},get showControls(){return u()},get isAds(){return s(no)},get canRewindLive(){return s(Us)},get logoClickable(){return e.logoClickable},get logoHidden(){return e.logoHidden},get logoTargetUrl(){return Qt()},get showAutoplayNext(){return e.showAutoplayNext},get showNextPrevButtons(){return Nt()},get nextButtonActive(){return ee()},get prevButtonActive(){return At()},get isOneVideoPlaylist(){return se()},customFullscreenSupported:hr,toggleFullscreen:Ji,get seekToInteractive(){return e.seekToInteractive},get playPrevChapter(){return e.playPrevChapter},get playerControlsWrapperRef(){return s(pn)},set playerControlsWrapperRef(Uo){B(pn,Uo,!0)},get playerControlsRef(){return s(Zo)},set playerControlsRef(Uo){B(Zo,Uo,!0)}})};L(Yd,Ge=>{Ae()&&Ge(Lu)})}var jd=P(Yd,2);{var Vu=Ge=>{var si=Sx(),no=_(si);let Us=h(()=>{var Uo;return(Uo=s(Zo))==null?void 0:Uo.clientHeight});Rd(no,{get supportLink(){return e.supportLink},get playerControlsHeight(){return s(Us)},returnFocus:()=>{var Uo;return(Uo=kt())==null?void 0:Uo.focus()},get ref(){return s(fn)},set ref(Uo){B(fn,Uo,!0)}}),g(si),b(Ge,si)};L(jd,Ge=>{!we()&&r()!=="ads"&&Ge(Vu)})}var Fs=P(jd,2);let Ru=h(()=>!s(_r));ed(Fs,{get isLive(){return Xe()},get isHidden(){return s(Ru)},get isPlaying(){return ke()},get position(){return Z()},get duration(){return qe()}});var gl=P(Fs,2);gm(gl,{get data(){return ir}});var hl=P(gl,2);lf(hl,{get supportLink(){return e.supportLink},returnFocus:()=>{var Ge;return(Ge=kt())==null?void 0:Ge.focus()},get visible(){return Y()},get playerContainerRef(){return s(Hi)},get controlsContainerRef(){return s(pn)},get position(){return X()},get menuElementRef(){return s(yn)},set menuElementRef(Ge){B(yn,Ge,!0)}});var Zd=P(hl,2);{var Xd=Ge=>{Nd(Ge,{onClose:vn,onSelectAutoQuality:()=>{mo("auto"),vn()}})};L(Zd,Ge=>{s(Fr)&&Ge(Xd)})}var Aa=P(Zd,2);{var Jd=Ge=>{ma(Ge,{})};L(Aa,Ge=>{s(Nn)&&Ge(Jd)})}var ec=P(Aa,2);{var tc=Ge=>{vf(Ge,{})};L(ec,Ge=>{Te()&&Ge(tc)})}var Nu=P(ec,2);{var Bu=Ge=>{rd(Ge,{})};L(Nu,Ge=>{Ke()&&Ge(Bu)})}b(Tt,hi)}),b(pe,ri)},$$slots:{default:!0}}),pe=>kt(pe),()=>kt());var lr=P(Fn,2);ot(lr,pe=>B(it,pe),()=>s(it)),g(qi),ot(qi,pe=>B(Hi,pe),()=>s(Hi));var je=P(qi,2);{var Zt=pe=>{var yt=Ix();b(pe,yt)};L(je,pe=>{rt()&&pe(Zt)})}wt("mouseenter",qi,yr),wt("mouseleave",qi,Wr),wt("click",qi,Oo,!0),wt("focusin",qi,xr,!0),b(t,xn),H(),o()}lt(["mousemove","contextmenu","click"]);import{clientChecker as Bd,PlaybackState as Hx}from"@vkontakte/videoplayer-core/es2018";import{noop as Fx}from"@vkontakte/videoplayer-shared/es2018";var Ax=M('<div></div> <div class="info svelte-nhq2ld"><div class="triangles-wrapper svelte-nhq2ld"><div></div> <div></div> <div></div></div> <p class="step-caption svelte-nhq2ld"> </p></div>',1),Mx=M("<div><!></div>"),Lx={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 Km(t,e){F(e,!0),K(t,_x);let[i,o]=He(),n=()=>C(l,"$isPlaying$",i),s=()=>C(d,"$aboutToGoNextVideo",i),{state:{isPlaying$:l},ui:{aboutToGoNextVideo:d},actions:a}=Ee(),{features:{playbackStatusShow:p,playbackStatusAnimationDuration:f,playbackStatusNextVideoAnimationDuration:v}}=Ft(),u=0,y=j(null),w=j(!1);We(()=>{B(y,n()?Or:_s,!0)}),We(()=>{B(y,s()?Ds:null,!0)}),We(()=>{if(p)return u=window.setTimeout(()=>{u=0,s()&&r(y)===Ds&&(s()==="next"?a.internal.nextVideoClick(!1):a.internal.prevVideoClick(!1)),B(y,null)},r(y)!==Ds?f:v),()=>{u&&(window.clearTimeout(u),u=0)}}),We(()=>{n()&&!r(w)&&(B(w,!0),B(y,null))});var b=Ue(),S=me(b);{var T=E=>{var M=Ue(),I=me(M);ta(I,()=>r(y),k=>{var R=hx(),Y=_(R),D=_(Y);let H=g(()=>s()==="prev");yi(D,()=>r(y),(q,J)=>{J(q,{width:"40",height:"40",viewBox:"0 0 24 24",get isPrev(){return r(H)}})}),h(Y),h(R),O(()=>nt(Y,`animation-duration: ${r(y)!==Ds?f:v}ms`)),$(k,R)}),$(E,M)};L(S,E=>{r(y)&&p&&E(T)})}$(t,b),U(),o()}var bx=A('<div><div data-testid="video-container"></div></div>'),$x={hash:"svelte-1czns9r",code:`.video-wrapper.svelte-1czns9r,
341
+ .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 Ea(t,e){F(e,!0),K(t,$x);let[i,o]=He(),n=()=>C(f,"$rotateAlpha",i),s=()=>C(v,"$playerSize",i),l=()=>C(p,"$playerPhase",i),d=()=>C(u,"$isPlaying$",i),a=m(e,"videoContainer",15),{playerPhase:p,ui:{rotateAlpha:f,playerSize:v},state:{isPlaying$:u}}=Ee(),{isSmoothVideoRotate:y}=Ft(),w=g(()=>a()&&n()%180?s().height/s().width:1);var b=bx();let S;b.__contextmenu=function(...M){var I;(I=e.onContextMenu)==null||I.apply(this,M)},b.__mousedown=function(...M){var I;(I=e.onMouseDown)==null||I.apply(this,M)},b.__mouseup=function(...M){var I;(I=e.onMouseUp)==null||I.apply(this,M)},b.__click=function(...M){var I;(I=e.onClick)==null||I.apply(this,M)},b.__dblclick=function(...M){var I;(I=e.onDblClick)==null||I.apply(this,M)};var T=_(b);let E;ot(T,M=>a(M),()=>a()),h(b),O((M,I)=>{S=X(b,1,"video-wrapper svelte-1czns9r",null,S,M),E=X(T,1,"video-container svelte-1czns9r",null,E,I),nt(T,`transform: rotate(${n()}deg) scale(${r(w)})`),Be(T,"data-is-playing",d())},[()=>({hidden:l()!=="video",nocursor:e.hideCursor}),()=>({"fast-rotate":!y})]),$(t,b),U(),o()}lt(["contextmenu","mousedown","mouseup","click","dblclick"]);var yx=(t,e,i,o,n,s)=>{if(t.stopPropagation(),e()||o()){s();return}},xx=A("<div><!></div>"),wx=A('<div class="spherical-video-icon svelte-jtgjmv"><!></div>'),Cx=A("<div><!></div>"),Sx=A('<div class="settings-menu svelte-jtgjmv"><!></div>'),Tx=A("<!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!>",1),Ex=A("<!> <!> <!>",1),Ix=A('<div class="blocked svelte-jtgjmv"></div>'),kx=A('<div class="player-wrapper svelte-jtgjmv"><!> <div class="overlay-container"></div></div> <!>',1),Px={hash:"svelte-jtgjmv",code:".player-wrapper.svelte-jtgjmv {position:absolute;width:100%;height:100%;}.blocked.svelte-jtgjmv {position:absolute;width:100%;height:100%;z-index:var(--overlay-container-z-index);}.player-wrapper.svelte-jtgjmv .player-media {position:absolute;left:0;top:0;width:100%;height:100%;background:var(--black);transition:transform 0.2s ease-in-out;}.spherical-video-icon.svelte-jtgjmv {display:inline-block;position:absolute;top:calc(50% - 23px);left:calc(50% - 38px);}.ads-container.svelte-jtgjmv {position:absolute;width:100%;height:100%;left:0;top:0;}.ads-container.svelte-jtgjmv {z-index:var(--ads-container-z-index);background:var(--black);}.settings-menu.svelte-jtgjmv {position:absolute;z-index:var(--settings-menu-z-index);bottom:57px;right:18px;left:0;transition:opacity 0.2s, visibility 0.2s;}"};function qm(t,e){F(e,!0),K(t,Px);let[i,o]=He(),n=()=>C(_r,"$notificationsToShow$",i),s=()=>C(ti,"$playerPhase",i),l=()=>C(Ho,"$isLoaderVisible",i),d=()=>C(mi,"$adPlaybackState",i),a=()=>C(ut,"$crashed",i),p=()=>C(Xo,"$isInteractiveTime$",i),f=()=>C(Yt,"$settingsMenuVisible",i),v=()=>C(fn,"$isInteractiveExpectation$",i),u=()=>C(po,"$controlsVisible",i),y=()=>C(ji,"$touched",i),w=()=>C(Fr,"$graphIsOpened$",i),b=()=>C(ui,"$isFullscreen",i),S=()=>C(Vn,"$autoplayNextEnabled$",i),T=()=>C(Kt,"$postrollPassed",i),E=()=>C(G,"$isEnded$",i),M=()=>C(Dn,"$cursorInside",i),I=()=>C(ir,"$isControlsAvailable",i),k=()=>C(Rn,"$fakeIsPlaying$",i),R=()=>C(Ut,"$bottomNoSmooth",i),Y=()=>C(Co,"$interactiveTimeIndicator",i),D=()=>C(fo,"$playerSize",i),H=()=>C(Mi,"$is3DVideo",i),q=()=>C(ht,"$contextMenuVisible$",i),J=()=>C(ai,"$playbackState$",i),W=()=>C(Ei,"$hotKeyMapData",i),de=()=>C(Yi,"$scrubbingInProgress",i),ie=()=>C(yt,"$volumeChangingInProgress",i),ve=()=>C(Bt,"$chromecastConnected$",i),Ie=()=>C(zi,"$controlsTimeoutActive",i),fe=()=>C(wi,"$settingsMenuOpenedByKeyboard",i),re=()=>C(so,"$contextMenuOpenedByKeyboard$",i),ke=()=>C(dr,"$contextMenuOpenedByHotKey$",i),te=()=>C(ko,"$contextMenuButtonRef$",i),N=()=>C(rs,"$contextMenuLastActiveElem$",i),Oe=()=>C(wo,"$isFullscreenOpenedByKeyboard",i),ye=()=>C(Je,"$language$",i),he=()=>C($t,"$icon3DVideoVisible",i),ce=()=>C(ci,"$chromecastDeviceName$",i),ue=()=>C(er,"$currentSubtitle$",i),we=()=>C(Si,"$currentSubtitleCaptions$",i),Z=()=>C(at,"$position$",i),Ke=()=>C(Xt,"$duration$",i),Xe=()=>C(ft,"$isLive$",i),Ae=()=>C(rt,"$isPlaying$",i),ee=()=>C(io,"$contextMenuPosition$",i),Ce=()=>C(Jo,"$showHotKeyMap",i),qe=()=>C(Ci,"$debugPanelVisible",i),st=()=>C(tr,"$userActionsDisabled$",i),ct=m(e,"videoContainer",15),bt=m(e,"adsSlotId",3,void 0),St=m(e,"adsParams",3,void 0),Ge=m(e,"adsPreviewParam",3,void 0),Wt=m(e,"adsAutoplayParam",3,void 0),Qt=m(e,"duration",3,void 0),qt=m(e,"logoTargetUrl",3,""),Nt=m(e,"showNextPrevButtons",3,!1),oe=m(e,"nextButtonActive",3,!1),At=m(e,"prevButtonActive",3,!1),ge=m(e,"endScreenVideoTitle",3,void 0),be=m(e,"endScreenVideoThumb",3,void 0),le=m(e,"isOneVideoPlaylist",3,!1),De=m(e,"shadowRootContainer",3,void 0),ze=m(e,"outerContainerRef",3,void 0),Le=m(e,"playerStarted",3,!1),Ye=m(e,"fullScreenTarget",3,void 0),Re=m(e,"showMiniTimer",3,!1),tt=m(e,"showEndScreen",3,!0),Pt=m(e,"keyboardControls",15),Mt=e.store.getLogger().createComponentLog("Root component"),Je=e.store.interfaceLanguage$,ai=e.store.state.playbackState$,mi=e.store.ads.playbackState,at=e.store.state.positionWithScrubbing$,Xt=e.store.state.duration$,ti=e.store.playerPhase,ui=e.store.ui.isFullscreen,wo=e.store.ui.isFullscreenOpenedByKeyboard,po=e.store.ui.controlsVisible,Yt=e.store.ui.settingsMenu.visible$,wi=e.store.ui.settingsMenu.openedByBtnKeyboard$,Yi=e.store.ui.scrubbingInProgress,yt=e.store.ui.volumeChangingInProgress,ht=e.store.ui.contextMenu.visible$,Ci=e.store.ui.debugPanelVisible,Ho=e.store.state.isLoaderVisible,G=e.store.state.isEnded$,Bt=e.store.state.chromecastConnected$,ci=e.store.state.chromecastDeviceName$,Kt=e.store.ads.postrollPassed,ft=e.store.state.isLive$,rt=e.store.state.isPlaying$,ut=e.store.state.crashed$,hi=e.store.webApi.annotationsApi,Ot=e.store.webApi.pictureInPictureApi,er=e.store.state.currentSubtitle$,Si=e.store.state.currentSubtitleCaptions$,fo=e.store.ui.playerSize,Mi=e.store.ui.is3DVideo,$t=e.store.ui.icon3DVideoVisible,Li=e.store.state.isInteractive,Xo=e.store.state.isInteractiveTime$,fn=e.store.state.isInteractiveExpectation$,Ti=e.store.state.hasInteractiveBranches,ji=e.store.ui.touched,Ei=e.store.ui.modals.hotKeyMap.data,Jo=e.store.ui.modals.hotKeyMap.show,Ln=e.store.ui.overlayContainer$,Co=e.store.ui.controls.interactiveTimeIndicator,Fo=e.store.state.showInteractiveTimeIndicator,io=e.store.ui.contextMenu.position$,mo=e.store.actions.internal.setQuality,en=e.store.actions.internal.closeSettingsMenu,Vn=e.store.ui.autoplayNextEnabled$,tr=e.store.ui.userActionsDisabled,ir=e.store.ui.isControlsAvailable,or=e.store.ui.videoTitleInfo,Hr=e.store.actions.internal.getVideoElement,{fakeIsPlaying$:Rn,notifications$:ns,graphIsOpened$:Fr}=uo(),Vi=j(void 0),mn=j(void 0),tn=j(void 0),vn=j(void 0),vo,gn,Nn;Ei.set(Bh());let{closeNotification:Ur,notificationsToShow$:_r}=ns,zr=g(()=>!!n().slow_video),hn=()=>Ur("slow_video"),Bn=g(()=>(s()==="video"&&l()||s()==="ads"&&d()==="inactive")&&!a()),it=j(void 0),Ut=ae(!1),On,zi=ae(!1),nr=ae(),Dn=ae(!1),_n=j(!1),Wi=j(!1),on=j(!1),Uo=j(!(e.autoplay&&!e.uiConfig.controls.showOnStartupAtAutoplay)),bn=g(()=>p()&&!f()&&!(r(_n)||r(Wi))&&!(r(on)&&!v())),br=!0,$r=g(()=>e.uiConfig.features.thumbTimer&&Re()&&s()==="video"&&!u()&&!a()&&!Li&&(e.uiConfig.hideThumbTimerAfterTouch&&!y()||!e.uiConfig.hideThumbTimerAfterTouch)),$n=g(()=>s()==="video"&&!w()&&b()),Wr=j(!1),yn=g(()=>(tt()||e.showAutoplayNext&&S())&&!!ge()&&!!be()&&(e.showAds&&T()||!e.showAds)&&E()&&!a()&&!r(Wr)),Kr=g(()=>M()&&!(u()||r(yn))&&!p()&&I()),rr=j(!1),yr=g(()=>k()!==null),{toggle:nn}=Rn,ii=!1,Ri=null;Ot==null||Ot.setContext(Cl());let sr=()=>{e.autoplay&&!Li&&e.uiConfig.controls.showOnStartupAtAutoplay&&Ii(e.uiConfig.controls.hideTimeout)};e.store.setUiCallbacks({onStarted:sr});let Hn=()=>{window.clearTimeout(vo),zi.set(!1)},Fn=()=>{window.clearTimeout(gn),nr.set(null)},Ii=pe=>{Hn(),zi.set(!0),vo=window.setTimeout(()=>zi.set(!1),pe);let wt=pe-100;On=window.setTimeout(()=>{R()&&Ut.set(!1)},wt>0?wt:pe)},xr=(pe,wt)=>{Fn(),nr.set(wt),gn=window.setTimeout(()=>nr.set(null),pe)},qr=Mi.subscribe(pe=>{$t.set(pe),pe&&(window.clearTimeout(Nn),Nn=window.setTimeout(()=>$t.set(!1),e.uiConfig.controls.hide360IconTimeout))}),xt=async()=>{var wt,oi,pi,Ne;let pe=Ms();if(pe){let mt=Xl(),ni=So();pe=mt===ni||mt===De()}if(pe){Ii(e.uiConfig.controls.hideTimeoutFullscreen);try{await(Ot==null?void 0:Ot.exit())}catch(mt){Mt({message:String(mt)})}}ui.set(pe),e.store.getAdmanWrapper().setFullscreen(pe),b()?(oi=(wt=e.store.callbacks)==null?void 0:wt.onFullscreenEnter)==null||oi.call(wt):(Ne=(pi=e.store.callbacks)==null?void 0:pi.onFullscreenExit)==null||Ne.call(pi)},li=pe=>{let{width:wt,height:oi}=pe.target;fo.set({width:wt,height:oi})},zo=()=>{let{width:pe,height:wt}=r(Vi).getBoundingClientRect();fo.set({width:pe,height:wt})};Rt(()=>{var wt;return Gc(xt),e.uiConfig.features.annotationsInside&&(hi==null||hi.init(r(Vi))),la(Ot)&&(Ot==null||Ot.assignPlayerContainer(r(Vi)),Ot==null||Ot.setExternalEventHandlers({resize:li,leavepictureinpicture:zo})),e.interactiveContainer&&((wt=ct().parentElement)==null||wt.insertBefore(e.interactiveContainer,ct().nextSibling)),()=>{window.clearTimeout(vo),window.clearTimeout(On),window.clearTimeout(gn),window.clearTimeout(Nn),qr(),Ot==null||Ot.dispose().catch(oi=>{Mt({message:String(oi)})}),Qc(xt)}});let So=()=>{let pe=e.uiConfig.features.fullscreenInternalTargetPlayerContainer||!ze()?r(Vi):ze(),wt=pe.getRootNode(),oi=wt instanceof ShadowRoot?wt.host:wt,pi=Ye()instanceof HTMLElement&&Ye().contains(oi);return e.uiConfig.allowChangingFullscreenTarget&&Ye()&&pi?Ye():pe},go=()=>{ht.set(!1)},_i=()=>{en(),go()},ho=async()=>{go(),Ms()?(await qc(document),Mt({message:"exit fullscreen"})):(Mt({message:"request fullscreen"}),await Kc(So()))},oo=pe=>{w()||(pe.preventDefault(),ht.set(!0),io.set({left:pe.clientX,top:pe.clientY}))};function ar(){Dn.set(!0),Li||Ii(e.uiConfig.controls.hideTimeoutCursor)}function lr(){Li||(Ut.set(!0),Ii(e.uiConfig.controls.hideTimeoutCursor))}function wr(){Dn.set(!1),B(Wi,!1),B(_n,!1),ii=!1,e.store.actions.internal.releaseCamera(),Ii(e.uiConfig.controls.hideTimeout)}function et(pe){return pe?pe.offsetTop+et(pe.offsetParent):0}function kt(pe){return pe?pe.offsetLeft+kt(pe.offsetParent):0}function bi(pe){if(Y()&&Fo){let wt=pe.currentTarget,oi=et(wt),pi=kt(wt),Ne=pe.pageX-pi,mt=pe.pageY-oi,{left:ni,bottom:Po,right:Bi}=Y(),sn=Bi-ni;return Ne>=ni-sn&&mt<=Po+sn}}function _o(pe){if(r(Vi)){let wt=et(pe.currentTarget),oi=D().height,pi=pe.pageY-wt;if(bi(pe)){B(Wi,!1);return}pi<40?B(Wi,!0):pi>oi-40?B(_n,!0):(B(Wi,!1),f()||B(_n,!1))}}function no(pe){_o(pe),r(bn)||Ii(e.uiConfig.controls.hideTimeoutCursor),H()&&ii&&Ri&&e.store.actions.internal.moveCameraFocusPX(Ri.clientX-pe.clientX,Ri.clientY-pe.clientY,pe.timeStamp-Ri.timeStamp),Ri=pe}let ro=pe=>{pe.preventDefault(),pe.button===0&&(ii=!0,e.store.actions.internal.holdCamera()),Ii(e.uiConfig.controls.hideTimeoutCursor)},To=pe=>{pe.preventDefault(),pe.button===0&&(Ri=pe,ii=!1,e.store.actions.internal.releaseCamera()),Ii(e.uiConfig.controls.hideTimeoutCursor)},Wo=pe=>{pe.preventDefault(),br&&(Mt({message:"double click on video"}),ho(),Ii(e.uiConfig.controls.hideTimeoutCursor))},Eo=pe=>{var wt;if(pe.preventDefault(),q()||f()){_i();return}if(!(E()&&!Ti)){if(r(yr))return nn();if((wt=Pt())==null||wt.focus(),!Le()){e.firstStart(),Ii(e.uiConfig.controls.hideTimeoutCursor);return}(!e.uiConfig.preventPauseOnVideoClick||J()!==z1.PLAYING)&&e.store.actions.internal.togglePlay(),Ii(e.uiConfig.controls.hideTimeoutCursor)}},Ni=pe=>{_i(),ji.set(!0),Ii(e.uiConfig.controls.hideTimeout),pe&&xr(e.uiConfig.controls.hideHotKeyHelpers,pe)},Zi=()=>{var pe,wt;_i(),(pe=e.store.callbacks)!=null&&pe.onOpenHotKeyMap?(wt=e.store.callbacks)==null||wt.onOpenHotKeyMap(W()):Jo.update(oi=>!oi)},Io=()=>{ji.set(!0)},so=e.store.ui.contextMenu.openedByBtnKeyboard$,ko=e.store.ui.contextMenu.btnRef$,Un=j(void 0),dr=e.store.ui.contextMenu.openedByHotKey$,rs=e.store.ui.contextMenu.lastActiveElem$;We(()=>{Ln.set(r(it))}),We(()=>{B(on,r(Uo)&&J()!==z1.PLAYING,!0),r(Uo)||Ct(()=>B(Uo,!0))}),We(()=>{po.set((r(on)||E()||f()||de()||ie()||ve()||Ie())&&!r(bn)&&(s()==="video"||s()==="ads")&&!a()&&I())}),We(()=>{!de()&&r(rr)&&!p()&&Ii(e.uiConfig.controls.hideTimeoutCursor),Ct(()=>B(rr,de(),!0))}),We(()=>{r(vn),f(),fe(),Ct(()=>rd(r(vn),f(),fe()))}),We(()=>{r(Un),q(),re(),ke(),Ct(()=>{let pe=re()||ke();rd(r(Un),q(),pe)})}),We(()=>{let pe=te();pe&&(q(),Ct(()=>il(pe,q(),so)))}),We(()=>{let pe=N();pe&&(q(),Ct(()=>Wh(pe,q(),dr)))}),We(()=>{var pe;!Oe()&&b()&&(Ct(()=>wo.set(!1)),(pe=Pt())==null||pe.focus())}),We(()=>{w()&&_i()});let Cr=z("video360"),Sr=j(void 0),cr=pe=>{or.set(An(Hr(),{title:r(Sr)},"title",pe))},ur=(pe,wt,oi)=>{var Ne,mt,ni;let pi={...An(r(Vi),{upcomingLiveScreen:oi},"upcomingLiveScreen",wt),view:pe};(ni=(mt=(Ne=e.store.callbacks)==null?void 0:Ne.uiInfo)==null?void 0:mt.onUpcomingLiveViewStateChanged)==null||ni.call(mt,pi)};var rn=kx();Tt("blur",Ys,_i);var ao=me(rn);ao.__mousemove=no;var xn=_(ao);let Tr=g(()=>s()==="ads"),pr=g(()=>r(yr)?nn:void 0);ot(ff(xn,{toggleFullscreen:ho,hideContextMenu:_i,showHotKeyHelpers:Ni,showKeyMap:Zi,get isAds(){return r(Tr)},get fakePlayButtonHandler(){return r(pr)},get nextButtonActive(){return oe()},get prevButtonActive(){return At()},children:(pe,wt)=>{var oi=Ex(),pi=me(oi);Ea(pi,{get hideCursor(){return r(Kr)},onClick:Eo,onContextMenu:oo,onMouseDown:ro,onMouseUp:To,onDblClick:Wo,get videoContainer(){return ct()},set videoContainer(ni){ct(ni)}});var Ne=P(pi,2);ia(Ne,()=>"slot",!1,(ni,Po)=>{Pe(ni,()=>({name:Ta}))});var mt=P(Ne,2);ta(mt,ye,ni=>{var Po=Tx(),Bi=me(Po);let sn=g(()=>s()!=="thumb"||a()||Li&&e.autoplay);wa(Bi,{get hidden(){return r(sn)},get thumbUrl(){return e.thumbUrl},get startVideo(){return e.firstStart}});var Ir=P(Bi,2);Km(Ir,{});var Ao=P(Ir,2);{var Xi=Qe=>{let ri=g(()=>{var Mo;return(Mo=e.live)==null?void 0:Mo.startTime});Rd(Qe,{get thumbUrl(){return e.thumbUrl},get startTime(){return r(ri)},onUpcomingLiveViewStateChanged:ur})};L(Ao,Qe=>{s()==="LiveWaitingStart"&&Qe(Xi)})}var ki=P(Ao,2);{var wn=Qe=>{Ca(Qe,{kind:"recover",get thumbUrl(){return e.thumbUrl}})};L(ki,Qe=>{s()==="LiveWaitingRecover"&&Qe(wn)})}var zn=P(ki,2);{var kr=Qe=>{Ca(Qe,{kind:"record",get thumbUrl(){return e.thumbUrl}})};L(zn,Qe=>{s()==="LiveWaitingRecord"&&Qe(kr)})}var bo=P(zn,2);{var Ia=Qe=>{var ri=xx();let Mo;var ys=_(ri);ed(ys,{get adsSlotId(){return bt()},get adsParams(){return St()},get adsPreviewParam(){return Ge()},get adsAutoplayParam(){return Wt()},get duration(){return Qt()}}),h(ri),O(an=>Mo=X(ri,1,"ads-container svelte-jtgjmv",null,Mo,an),[()=>({hidden:s()!=="ads"})]),$(Qe,ri)};L(bo,Qe=>{e.showAds&&Le()&&Qe(Ia)})}var Fs=P(bo,2);{var dt=Qe=>{let ri=g(()=>!tt()&&e.showAutoplayNext&&S());cf(Qe,{get title(){return ge()},get thumb(){return be()},get isHide(){return r(ri)},clickCloseIcon:()=>B(Wr,!0)})};L(Fs,Qe=>{r(yn)&&ge()&&be()&&Qe(dt)})}var _t=P(Fs,2);{var lo=Qe=>{let ri=g(()=>!u());ym(Qe,{get title(){return e.title},get isHidden(){return r(ri)},onVisibilityChanged:cr,get ref(){return r(Sr)},set ref(Mo){B(Sr,Mo,!0)}})};L(_t,Qe=>{r($n)&&Qe(lo)})}var Ko=P(_t,2);{var co=Qe=>{let ri=g(()=>s()==="video"&&u());Ld(Qe,{get isShifted(){return r(ri)}})};L(Ko,Qe=>{H()&&Qe(co)})}var di=P(Ko,2);{var Oi=Qe=>{var ri=wx(),Mo=_(ri);Zl(Mo,{get"aria-label"(){return Cr}}),h(ri),$(Qe,ri)};L(di,Qe=>{he()&&Qe(Oi)})}var $s=P(di,2);{var ml=Qe=>{Vd(Qe,{get thumbUrl(){return e.thumbUrl},get chromecastDeviceName(){return ce()}})};L($s,Qe=>{ve()&&Qe(ml)})}var Zd=P($s,2);{var Lu=Qe=>{ya(Qe,{get shifted(){return u()},get captions(){return we()},get position(){return Z()},get playerSize(){return D()}})};L(Zd,Qe=>{ue().value!=="off"&&Qe(Lu)})}var Xd=P(Zd,2);{var Vu=Qe=>{var ri=Cx();ri.__contextmenu=oo,ri.__click=[yx,q,ht,f,Yt,_i];var Mo=_(ri);xa(Mo,{}),h(ri),$(Qe,ri)};L(Xd,Qe=>{a()&&Qe(Vu)})}var Jd=P(Xd,2);{var Ru=Qe=>{let ri=g(()=>s()==="thumb"||s()==="LiveWaitingStart"||s()==="LiveWaitingRecover"||s()==="LiveWaitingRecord"),Mo=g(()=>s()==="ads"),ys=g(()=>e.canRewindLive&&Ke()!==0);Md(Qe,{get bottomHidden(){return r(ri)},get bottomNoSmooth(){return R()},get showControls(){return u()},get isAds(){return r(Mo)},get canRewindLive(){return r(ys)},get logoClickable(){return e.logoClickable},get logoHidden(){return e.logoHidden},get logoTargetUrl(){return qt()},get showAutoplayNext(){return e.showAutoplayNext},get showNextPrevButtons(){return Nt()},get nextButtonActive(){return oe()},get prevButtonActive(){return At()},get isOneVideoPlaylist(){return le()},customFullscreenSupported:br,toggleFullscreen:ho,get seekToInteractive(){return e.seekToInteractive},get playPrevChapter(){return e.playPrevChapter},get playerControlsWrapperRef(){return r(mn)},set playerControlsWrapperRef(an){B(mn,an,!0)},get playerControlsRef(){return r(tn)},set playerControlsRef(an){B(tn,an,!0)}})};L(Jd,Qe=>{Le()&&Qe(Ru)})}var ec=P(Jd,2);{var ka=Qe=>{var ri=Sx(),Mo=_(ri);let ys=g(()=>{var an;return(an=r(tn))==null?void 0:an.clientHeight});Od(Mo,{get supportLink(){return e.supportLink},get playerControlsHeight(){return r(ys)},returnFocus:()=>{var an;return(an=Pt())==null?void 0:an.focus()},get ref(){return r(vn)},set ref(an){B(vn,an,!0)}}),h(ri),$(Qe,ri)};L(ec,Qe=>{!ve()&&s()!=="ads"&&Qe(ka)})}var tc=P(ec,2);let ic=g(()=>!r($r));od(tc,{get isLive(){return Xe()},get isHidden(){return r(ic)},get isPlaying(){return Ae()},get position(){return Z()},get duration(){return Ke()}});var vl=P(tc,2);hm(vl,{get data(){return nr}});var oc=P(vl,2);df(oc,{get supportLink(){return e.supportLink},returnFocus:()=>{var Qe;return(Qe=Pt())==null?void 0:Qe.focus()},get visible(){return q()},get playerContainerRef(){return r(Vi)},get controlsContainerRef(){return r(mn)},get position(){return ee()},get menuElementRef(){return r(Un)},set menuElementRef(Qe){B(Un,Qe,!0)}});var gl=P(oc,2);{var hl=Qe=>{Dd(Qe,{onClose:hn,onSelectAutoQuality:()=>{mo("auto"),hn()}})};L(gl,Qe=>{r(zr)&&Qe(hl)})}var _l=P(gl,2);{var Nu=Qe=>{fa(Qe,{})};L(_l,Qe=>{r(Bn)&&Qe(Nu)})}var bl=P(_l,2);{var Bu=Qe=>{gf(Qe,{})};L(bl,Qe=>{Ce()&&Qe(Bu)})}var Ou=P(bl,2);{var Du=Qe=>{ld(Qe,{})};L(Ou,Qe=>{qe()&&Qe(Du)})}$(ni,Po)}),$(pe,oi)},$$slots:{default:!0}}),pe=>Pt(pe),()=>Pt());var Er=P(xn,2);ot(Er,pe=>B(it,pe),()=>r(it)),h(ao),ot(ao,pe=>B(Vi,pe),()=>r(Vi));var je=P(ao,2);{var Jt=pe=>{var wt=Ix();$(pe,wt)};L(je,pe=>{st()&&pe(Jt)})}Tt("mouseenter",ao,ar),Tt("mouseleave",ao,wr),Tt("click",ao,Io,!0),Tt("focusin",ao,lr,!0),$(t,rn),U(),o()}lt(["mousemove","contextmenu","click"]);import{clientChecker as Hd,PlaybackState as Hx}from"@vkontakte/videoplayer-core/es2018";import{noop as Fx}from"@vkontakte/videoplayer-shared/es2018";var Ax=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),Mx=A("<div><!></div>"),Lx={hash:"svelte-nhq2ld",code:`.double-click-area.svelte-nhq2ld {position:absolute;top:0;height:100%;width:25%;overflow:hidden;}.double-click-area.left.svelte-nhq2ld {left:0;}.double-click-area.right.svelte-nhq2ld {right:0;}.semicircle.svelte-nhq2ld {position:absolute;top:0;width:100%;height:100%;background-color:rgba(0, 0, 0, 0.5);}.semicircle.left.svelte-nhq2ld {left:0;border-top-right-radius:50%;border-bottom-right-radius:50%;}.semicircle.right.svelte-nhq2ld {right:0;border-top-left-radius:50%;border-bottom-left-radius:50%;}.info.svelte-nhq2ld {position:absolute;top:50%;left:50%;transform:translate(-50%, -50%);display:flex;flex-direction:column;align-items:center;justify-content:center;}.triangles-wrapper.svelte-nhq2ld {position:relative;display:flex;margin-bottom:10px;justify-content:center;}.triangle.svelte-nhq2ld {width:0;height:0;border-top:6px solid transparent;border-bottom:6px solid transparent;
342
342
  animation: svelte-nhq2ld-blink 500ms infinite;opacity:0;}.triangle.right.svelte-nhq2ld:nth-child(1),
343
343
  .triangle.left.svelte-nhq2ld:nth-child(3) {animation-delay:0ms;}.triangle.right.svelte-nhq2ld:nth-child(2),
344
344
  .triangle.left.svelte-nhq2ld:nth-child(2) {animation-delay:100ms;}.triangle.right.svelte-nhq2ld:nth-child(3),
@@ -354,7 +354,7 @@ Try switching the\xA0quality to\xA0Auto.`},Ih=w_;var fs=new Map;fs.set(Ph.EN,Ih)
354
354
  100% {
355
355
  opacity: 0;
356
356
  }
357
- }.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 yu(t,e){D(e,!0),z(t,Lx);let i=m(e,"seekStep",3,0),o=j(!1),n=0,r=0,l=j(oi(i())),d=v=>{v.stopPropagation(),r+=1,B(l,i()*(r-1)),r===1?e.handleSingleFirstClick(v):(B(o,!0),e.handleSecondClick()),window.clearTimeout(n),n=window.setTimeout(()=>{r=0,B(o,!1)},300)};In(()=>{window.clearTimeout(n)});var a=Mx();a.__click=d;var p=_(a);{var f=v=>{var u=Ax(),$=fe(u),w=P($,2),y=_(w),S=_(y),T=P(S,2),k=P(T,2);g(y);var A=P(y,2),I=_(A,!0);g(A),g(w),O(E=>{var V,K,W,U;J($,1,`semicircle ${(V=e.side)!=null?V:""}`,"svelte-nhq2ld"),J(S,1,`triangle ${(K=e.side)!=null?K:""}`,"svelte-nhq2ld"),J(T,1,`triangle ${(W=e.side)!=null?W:""}`,"svelte-nhq2ld"),J(k,1,`triangle ${(U=e.side)!=null?U:""}`,"svelte-nhq2ld"),he(I,E)},[()=>F("doubletap_seek_step",{seconds:s(l).toFixed(0)})]),b(v,u)};L(p,v=>{s(o)&&v(f)})}g(a),O(()=>{var v;return J(a,1,`double-click-area ${(v=e.side)!=null?v:""}`,"svelte-nhq2ld")}),b(t,a),H()}lt(["click"]);var Vx=(t,e,i)=>{e(!1),i()},Rx=M('<div class="overlay svelte-1qdxi6t"></div> <div class="next-video svelte-1qdxi6t"><div class="top svelte-1qdxi6t"><div class="caption svelte-1qdxi6t"> </div> <!></div> <div class="row svelte-1qdxi6t"><div class="column svelte-1qdxi6t"><div class="thumb svelte-1qdxi6t"><div></div> <!></div></div> <div class="column svelte-1qdxi6t"><div class="title svelte-1qdxi6t"> </div></div></div></div>',1),Nx={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 Qm(t,e){D(e,!0),z(t,Nx);let[i,o]=De(),n=()=>C(d,"$autoplayNextEnabled$",i),r=()=>C(a,"$timerNextVideoRunning$",i),l=Ee(),d=l.ui.autoplayNextEnabled$,a=l.ui.timerNextVideoRunning$,p=l.actions.internal.nextVideoClick,f=l.actions.internal.nextVideoAnnouncementShow,v=l.actions.internal.nextVideoAnnouncementClick,u=l.actions.internal.nextVideoAnnouncementAuto,$=l.actions.internal.nextVideoAnnouncementCancel,w=()=>{p(!1),u()},y=()=>{e.clickCloseIcon(),$()};Rt(()=>{e.isHide||f(),e.isHide&&n()&&(p(!1),u())});var S=Ue(),T=fe(S);{var k=A=>{var I=Rx(),E=P(fe(I),2),V=_(E),K=_(V),W=_(K,!0);g(K);var U=P(K,2);pa(U,{onClick:y}),g(V);var Y=P(V,2);Y.__click=[Vx,p,v];var ne=_(Y),G=_(ne),ce=_(G);let le;var we=P(ce,2);{var Ve=te=>{sd(te,{get isRunning(){return r()},onTimerEnded:w})};L(we,te=>{n()&&te(Ve)})}g(G),g(ne);var ve=P(ne,2),ae=_(ve),Le=_(ae,!0);g(ae),g(ve),g(Y),g(E),O((te,N)=>{he(W,te),st(G,`background-image: url('${e.thumb}')`),le=J(ce,1,"thumb-overlay svelte-1qdxi6t",null,le,N),he(Le,e.title)},[()=>n()?F("end_screen_next_video"):F("end_screen_recommended_video"),()=>({withOpacity:n()})]),b(A,I)};L(T,A=>{e.isHide||A(k)})}b(t,S),H(),o()}lt(["click"]);import{clientChecker as Bx}from"@vkontakte/videoplayer-core/es2018";var W1=({getFullscreenTarget:t,fullScreenChangeHandler:e})=>{let i=null,o;Rt(()=>{Bx.device.isIOS&&(o=setTimeout(()=>{let r=t().querySelector("video");if(!r)return;let l=()=>e(!0),d=()=>e(!1);r.addEventListener("webkitbeginfullscreen",l),r.addEventListener("webkitendfullscreen",d),i=()=>{r.removeEventListener("webkitbeginfullscreen",l),r.removeEventListener("webkitendfullscreen",d)}},0))}),In(()=>{i==null||i(),clearTimeout(o)})};import{VideoFormat as Ox}from"@vkontakte/videoplayer-core/es2018";var xu=class{constructor(e){this.video=e}getTracksArray(){return Array.from(this.video.getElementsByTagName("track"))}attach(e,i=!1){let o=document.createElement("track");o.setAttribute("src",e.url),o.setAttribute("id",e.id),e.label&&o.setAttribute("label",e.label),e.language&&o.setAttribute("srclang",e.language),i&&(o.track.mode="showing"),this.video.appendChild(o)}detachAll(){for(let e of this.getTracksArray())this.video.removeChild(e)}updateSrc(e){let i=this.getTracksArray().find(o=>o.id===e.id);i&&(i.src=e.url)}getCurrentShowingId(){var e,i;return(i=(e=this.getTracksArray().find(o=>o.track.mode==="showing"))==null?void 0:e.id)!=null?i:null}};import{clientChecker as Dx}from"@vkontakte/videoplayer-core/es2018";var q1=({store:t,getFullscreenTarget:e})=>{let{isFullscreen:i}=t.ui,{setSubtitle:o}=t.actions.internal,{currentSubtitle$:n,availableSubtitlesList$:r,currentFormat$:l,availableTextTracks$:d}=t.state,a=null,p=()=>e().querySelector("video"),f=()=>Dx.device.isIOS&&$e(l)===Ox.DASH_LIVE_CMAF,v=()=>{a==null||a(),a=null},u=$=>{if(v(),!f()||!$)return;let w=p();if(!w)return;let y=new xu(w),S=$e(d),T=$e(r),k=$e(n);for(let E of S)T.some(K=>K.value===E.id)&&y.attach(E,k.value===E.id);let A=d.subscribe(E=>{for(let V of E)y.updateSrc(V)}),I=()=>{let E=y.getCurrentShowingId();o($e(r).find(V=>V.value===E))};w.textTracks.addEventListener("change",I),a=()=>{A(),y.detachAll(),w.textTracks.removeEventListener("change",I)}};Rt(()=>i.subscribe(u)),In(v)};var Ux=(t,e,i,o)=>{if(t.stopPropagation(),e()){o();return}},zx=M("<!> <!>",1),Wx=M("<div><!></div>"),qx=M('<div class="spherical-video-icon svelte-7yl31d"><!></div>'),Kx=M("<div><!></div>"),Qx=M('<div class="settings-mobile svelte-7yl31d"><!></div>'),Gx=M("<!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!>",1),Yx=M('<div class="player-wrapper svelte-7yl31d" role="region" tabindex="-1"><!> <!> <!> <div class="overlay-container"></div></div>'),jx={hash:"svelte-7yl31d",code:".player-wrapper.svelte-7yl31d {position:absolute;width:100%;height:100%;}.player-wrapper.svelte-7yl31d .player-media {position:absolute;left:0;top:0;width:100%;height:100%;background:var(--black);transition:transform 0.2s ease-in-out;}.spherical-video-icon.svelte-7yl31d {display:inline-block;position:absolute;top:calc(50% - 23px);left:calc(50% - 38px);}.ads-container.svelte-7yl31d {position:absolute;width:100%;height:100%;left:0;top:0;}.ads-container.svelte-7yl31d {z-index:var(--ads-container-z-index);background:var(--black);}.settings-mobile.svelte-7yl31d {position:absolute;z-index:var(--settings-menu-z-index);top:50%;left:50%;transform:translate(-50%,-50%);transition:opacity var(--controls-transition-duration);display:flex;align-items:center;max-width:320px;width:90%;}"};function Gm(t,e){var _i,$r;D(e,!0),z(t,jx);let[i,o]=De(),n=()=>C(Re,"$playerPhase",i),r=()=>C(ci,"$isLoaderVisible",i),l=()=>C(ze,"$adPlaybackState",i),d=()=>C(Bt,"$crashed",i),a=()=>C(Dr,"$notificationsToShow$",i),p=()=>C(Oe,"$playbackState$",i),f=()=>C(me,"$graphIsOpened$",i),v=()=>C(Je,"$interactiveHideMobileControls",i),u=()=>C(xo,"$isEnded$",i),$=()=>C(bt,"$isInteractiveExpectation$",i),w=()=>C(kt,"$controlsVisible",i),y=()=>C(un,"$touched",i),S=()=>C(Xi,"$autoplayNextEnabled$",i),T=()=>C(wi,"$postrollPassed",i),k=()=>C(Zo,"$bottomNoSmooth",i),A=()=>C(ft,"$videoSize",i),I=()=>C(Ot,"$playerSize",i),E=()=>C(tt,"$isFullscreen",i),V=()=>C(Ae,"$position$",i),K=()=>C(Ye,"$duration$",i),W=()=>C(Ei,"$loadedMetadata",i),U=()=>C(ni,"$settingsMenuVisible",i),Y=()=>C(at,"$scrubbingInProgress",i),ne=()=>C(ei,"$volumeChangingInProgress",i),G=()=>C(uo,"$chromecastConnected$",i),ce=()=>C(Mt,"$isControlsAvailable",i),le=()=>C(Ai,"$isInteractiveTime$",i),we=()=>C(Vo,"$isActiveLive",i),Ve=()=>C(pi,"$settingsMenuOpenedByKeyboard",i),ve=()=>C(se,"$language$",i),ae=()=>C(Go,"$disabledControls$",i),Le=()=>C(Xn,"$is3DVideo",i),te=()=>C(Si,"$icon3DVideoVisible",i),N=()=>C(jt,"$chromecastDeviceName$",i),Be=()=>C(nt,"$currentSubtitle$",i),ye=()=>C(ut,"$currentSubtitleCaptions$",i),ge=()=>C(vi,"$realDuration$",i),de=()=>C(gt,"$isLive$",i),ue=()=>C(Ci,"$isPlaying$",i),xe=()=>C(ii,"$debugPanelVisible",i),Z=m(e,"videoContainer",15),qe=m(e,"adsSlotId",3,void 0),Xe=m(e,"adsParams",3,void 0),ke=m(e,"adsPreviewParam",3,void 0),X=m(e,"adsAutoplayParam",3,void 0),Te=m(e,"duration",3,void 0),Ke=m(e,"logoTargetUrl",3,""),rt=m(e,"showNextPrevButtons",3,!1),ct=m(e,"nextButtonActive",3,!1),ht=m(e,"prevButtonActive",3,!1),xt=m(e,"endScreenVideoTitle",3,void 0),Qe=m(e,"endScreenVideoThumb",3,void 0),qt=m(e,"isOneVideoPlaylist",3,!1),Yt=m(e,"showMiniTimer",3,!1),Qt=m(e,"fullScreenTarget",3,void 0),Nt=m(e,"playerStarted",3,!1),ee=m(e,"showEndScreen",3,!0),{notifications$:At,graphIsOpened$:me}=co(),_e=e.store.getLogger().createComponentLog("Root component"),se=e.store.interfaceLanguage$,Oe=e.store.state.playbackState$,ze=e.store.ads.playbackState,Ae=e.store.state.positionWithScrubbing$,Ye=e.store.state.duration$,Re=e.store.playerPhase,tt=e.store.ui.isFullscreen,kt=e.store.ui.controlsVisible,Mt=e.store.ui.isControlsAvailable,Je=e.store.ui.interactiveHideMobileControls,ni=e.store.ui.settingsMenu.visible$,pi=e.store.ui.settingsMenu.openedByBtnKeyboard$,at=e.store.ui.scrubbingInProgress,ei=e.store.ui.volumeChangingInProgress,ii=e.store.ui.debugPanelVisible,ci=e.store.state.isLoaderVisible,xo=e.store.state.isEnded$,uo=e.store.state.chromecastConnected$,jt=e.store.state.chromecastDeviceName$,wi=e.store.ads.postrollPassed,Zi=e.store.ui.mobileUnmuteButtonExpanded,$t=e.store.ui.mobileUnmuteButtonVisible,gt=e.store.state.isLive$,Ci=e.store.state.isPlaying$,Vo=e.store.state.isActiveLive$,q=e.store.state.isRewindableLive$,Bt=e.store.state.crashed$,di=e.store.webApi.annotationsApi,Kt=e.store.webApi.pictureInPictureApi,ft=e.store.state.videoSize$,nt=e.store.state.currentSubtitle$,ut=e.store.state.currentSubtitleCaptions$,vi=e.store.state.duration$,Ot=e.store.ui.playerSize,Xn=e.store.ui.is3DVideo,Si=e.store.ui.icon3DVideoVisible,po=e.store.state.isInteractive,Ai=e.store.state.isInteractiveTime$,bt=e.store.state.isInteractiveExpectation$,Mi=e.store.state.hasInteractiveBranches,Go=e.store.ui.controls.disabledControls$,un=e.store.ui.touched,Ti=e.store.ui.overlayContainer$,Xi=e.store.ui.autoplayNextEnabled$,Ei=e.store.state.loadedMetadata$,Yo=e.store.actions.internal.closeSettingsMenu,Mn=(_i=e.store.callbacks)==null?void 0:_i.onDisabledPlayPrevChapterClick,wo=($r=e.store.callbacks)==null?void 0:$r.onDisabledSeekToInteractiveClick,Ro=e.store.actions.internal.setQuality,fo=j(void 0),mo=j(void 0),jo=j(void 0),Ln=j(void 0),Jn,er,tr,Or=h(()=>(n()==="video"&&r()||n()==="ads"&&l()==="inactive")&&!d()),Vn=j(void 0),{closeNotification:rs,notificationsToShow$:Dr}=At,Hi=h(()=>!!a().slow_video),pn=()=>rs("slow_video"),Zo=re(!1),fn,vo=j(!1),mn=h(()=>p()!==Hx.PLAYING),Rn=j(!1),Hr=h(()=>f()||v()||!s(vo)&&(u()&&!!Mi||s(mn)&&$())),gr=j(!0),Fr=h(()=>e.uiConfig.features.thumbTimer&&Yt()&&n()==="video"&&!w()&&!d()&&!po&&(e.uiConfig.hideThumbTimerAfterTouch&&!y()||!e.uiConfig.hideThumbTimerAfterTouch)),vn=j(!1),Nn=h(()=>(ee()||e.showAutoplayNext&&S())&&!!xt()&&!!Qe()&&(e.showAds&&T()||!e.showAds)&&u()&&!d()&&!s(vn)),it=j(!1);Kt==null||Kt.setContext(xl());let Ut=St=>{clearTimeout(er),St&&($t.set(!0),Zi.set(!0),er=setTimeout(()=>{Zi.set(!1)},e.uiConfig.controls.collapseMobileUnmute),po||Fi(e.uiConfig.controls.hideTimeoutMobile))};e.store.setUiCallbacks({onStarted:Ut});let Bn=()=>{clearTimeout(Jn),B(vo,!1),v()&&Je.set(!1)},Fi=St=>{Bn(),B(vo,!0),Jn=setTimeout(()=>B(vo,!1),St);let ai=St-100;fn=setTimeout(()=>{k()&&Zo.set(!1)},ai>0?ai:St)},ir=Xn.subscribe(St=>{Si.set(St),St&&(clearTimeout(tr),tr=setTimeout(()=>Si.set(!1),e.uiConfig.controls.hide360IconTimeout))}),On=async(St=Ps())=>{var ai,en,tn,$n,Bo,lo;if(St&&!Bd.device.isIOS){let Ji=jl(),Hn=hn(),yr=Bd.browser.isSamsungBrowser&&Ji===e.shadowRootContainer;St=Ji===Hn||yr}if(St){Fi(e.uiConfig.controls.hideTimeoutFullscreen);try{await(Kt==null?void 0:Kt.exit())}catch(Ji){_e({message:String(Ji)})}try{let Ji=(ai=A())!=null&&ai.width&&((en=A())!=null&&en.height)?A():I();await Rh(Ji)}catch(Ji){_e({message:String(Ji)})}}tt.set(St),e.store.getAdmanWrapper().setFullscreen(St),E()?($n=(tn=e.store.callbacks)==null?void 0:tn.onFullscreenEnter)==null||$n.call(tn):(lo=(Bo=e.store.callbacks)==null?void 0:Bo.onFullscreenExit)==null||lo.call(Bo)},gn=St=>{let ai=St;Ot.set({width:ai.target.width,height:ai.target.height})};Rt(()=>{var St;return qc(On),e.uiConfig.features.annotationsInside&&(di==null||di.init(s(fo))),da(Kt)&&(Kt==null||Kt.assignPlayerContainer(s(fo)),Kt==null||Kt.setExternalEventHandlers({resize:gn})),B(gr,!Bd.device.isIphoneOrOldIpad),e.interactiveContainer&&((St=Z().parentElement)==null||St.insertBefore(e.interactiveContainer,Z().nextSibling)),()=>{clearTimeout(Jn),clearTimeout(fn),clearTimeout(er),clearTimeout(tr),ir(),Kt==null||Kt.dispose().catch(ai=>{_e({message:String(ai)})}),Kc(On)}});let Ui=j(!0),Xo=j(!0),No=St=>{let ai=V()+(St==="forward"?1:-1)*e.uiConfig.controls.seekStepMobile/1e3;ai<0?(B(Ui,!1),ai=0):ai>=K()&&(B(Xo,!1),ai=K()),B(Rn,!0),e.seekTime(ai)},hn=()=>Bd.device.isIOS?s(fo):!e.uiConfig.allowChangingFullscreenTarget||!Qt()?e.outerContainerRef:Qt().contains(e.outerContainerRef)?Qt():e.outerContainerRef,hr=async()=>{try{if(Ps())await Wc(document),_e({message:"exit fullscreen"});else{if(_e({message:"request fullscreen"}),Bd.device.isIOS&&!W())return;await zc(hn())}}catch(St){_e({message:String(St)})}},_r=()=>{Yo()},_n=St=>{if(St.preventDefault(),U()){_r();return}if(!Nt()){e.firstStart(),Fi(e.uiConfig.controls.hideTimeoutCursor);return}B(Rn,!1),w()?Bn():Fi(e.uiConfig.controls.hideTimeoutMobile)},Ur=()=>{un.set(!0)},bn=()=>{po||(Zo.set(!0),Fi(e.uiConfig.controls.hideTimeoutCursor))},zr=St=>{Mn&&(Mn(St),Fi(e.uiConfig.controls.hideTimeoutMobile))},or=St=>{wo&&(wo(St),Fi(e.uiConfig.controls.hideTimeoutMobile))};We(()=>{Ti.set(s(Vn))}),We(()=>{kt.set((s(mn)||U()||Y()||ne()||G()||!s(Nn)&&(u()||s(vo)&&!s(Rn)))&&!s(Hr)&&n()==="video"&&!d()&&ce())}),We(()=>{!Y()&&s(it)&&!le()&&Fi(e.uiConfig.controls.hideTimeoutMobile),B(it,Y(),!0)}),We(()=>{B(Ui,V()>0),B(Xo,!we()&&V()<K(),!0)}),We(()=>{id(s(Ln),U(),Ve(),!0)});let br=F("aria_label_video_player"),Jo=F("video360");W1({fullScreenChangeHandler:On,getFullscreenTarget:hn}),q1({store:e.store,getFullscreenTarget:hn});var zt=Yx();wt("blur",js,_r);var Co=_(zt);Ia(Co,{onClick:_n,get videoContainer(){return Z()},set videoContainer(St){Z(St)}});var nr=P(Co,2);oa(nr,()=>"slot",!1,(St,ai)=>{Ie(St,()=>({name:Ea}))});var Dn=P(nr,2);ia(Dn,ve,St=>{var ai=Gx(),en=fe(ai);let tn=h(()=>n()!=="thumb"||d()||po&&e.autoplay);Ca(en,{get hidden(){return s(tn)},get thumbUrl(){return e.thumbUrl},get startVideo(){return e.firstStart}});var $n=P(en,2);{var Bo=je=>{var Zt=zx(),pe=fe(Zt);{var yt=bi=>{let Fe=h(()=>e.uiConfig.controls.seekStepMobile/1e3);yu(bi,{side:"left",get seekStep(){return s(Fe)},handleSingleFirstClick:_n,handleSecondClick:()=>No("backward")})};L(pe,bi=>{s(Ui)&&bi(yt)})}var ri=P(pe,2);{var Li=bi=>{let Fe=h(()=>e.uiConfig.controls.seekStepMobile/1e3);yu(bi,{side:"right",get seekStep(){return s(Fe)},handleSingleFirstClick:_n,handleSecondClick:()=>No("forward")})};L(ri,bi=>{s(Xo)&&bi(Li)})}b(je,Zt)};L($n,je=>{e.canRewindLive&&q&&!ae().has("TIMELINE")&&je(Bo)})}var lo=P($n,2);{var Ji=je=>{let Zt=h(()=>{var pe;return(pe=e.live)==null?void 0:pe.startTime});Md(je,{get thumbUrl(){return e.thumbUrl},get startTime(){return s(Zt)}})};L(lo,je=>{n()==="LiveWaitingStart"&&je(Ji)})}var Hn=P(lo,2);{var yr=je=>{Sa(je,{kind:"recover",get thumbUrl(){return e.thumbUrl}})};L(Hn,je=>{n()==="LiveWaitingRecover"&&je(yr)})}var xr=P(Hn,2);{var Wr=je=>{Sa(je,{kind:"record",get thumbUrl(){return e.thumbUrl}})};L(xr,je=>{n()==="LiveWaitingRecord"&&je(Wr)})}var et=P(xr,2);{var Pt=je=>{var Zt=Wx();let pe;var yt=_(Zt);Zl(yt,{get adsSlotId(){return qe()},get adsParams(){return Xe()},get adsPreviewParam(){return ke()},get adsAutoplayParam(){return X()},get duration(){return Te()}}),g(Zt),O(ri=>pe=J(Zt,1,"ads-container svelte-7yl31d",null,pe,ri),[()=>({hidden:n()!=="ads"})]),b(je,Zt)};L(et,je=>{e.showAds&&Nt()&&je(Pt)})}var gi=P(et,2);{var So=je=>{let Zt=h(()=>!ee()&&e.showAutoplayNext&&S());Qm(je,{get title(){return xt()},get thumb(){return Qe()},get isHide(){return s(Zt)},clickCloseIcon:()=>B(vn,!0)})};L(gi,je=>{s(Nn)&&xt()&&Qe()&&je(So)})}var eo=P(gi,2);{var go=je=>{Pd(je,{})};L(eo,je=>{Le()&&je(go)})}var ho=P(eo,2);{var on=je=>{var Zt=qx(),pe=_(Zt);Yl(pe,{get"aria-label"(){return Jo}}),g(Zt),b(je,Zt)};L(ho,je=>{te()&&je(on)})}var _o=P(ho,2);{var zi=je=>{Ad(je,{get thumbUrl(){return e.thumbUrl},get chromecastDeviceName(){return N()}})};L(_o,je=>{G()&&je(zi)})}var Wi=P(_o,2);{var Oo=je=>{xa(je,{get shifted(){return w()},get captions(){return ye()},get position(){return V()},get playerSize(){return I()},isMobile:!0})};L(Wi,je=>{Be().value!=="off"&&je(Oo)})}var to=P(Wi,2);{var Do=je=>{var Zt=Kx();Zt.__click=[Ux,U,ni,_r];var pe=_(Zt);wa(pe,{}),g(Zt),b(je,Zt)};L(to,je=>{d()&&je(Do)})}var yn=P(to,2);{var wr=je=>{let Zt=h(()=>n()==="thumb"||n()==="LiveWaitingStart"||n()==="LiveWaitingRecover"||n()==="LiveWaitingRecord"||n()==="ads"),pe=h(()=>n()==="ads"),yt=h(()=>e.canRewindLive&&ge()!==0);kd(je,{get bottomHidden(){return s(Zt)},get showControls(){return w()},get bottomNoSmooth(){return k()},get isAds(){return s(pe)},get canRewindLive(){return s(yt)},get logoClickable(){return e.logoClickable},get logoHidden(){return e.logoHidden},get logoTargetUrl(){return Ke()},get showAutoplayNext(){return e.showAutoplayNext},get showNextPrevButtons(){return rt()},get nextButtonActive(){return ct()},get prevButtonActive(){return ht()},get isOneVideoPlaylist(){return qt()},get customFullscreenSupported(){return s(gr)},get endScreenShown(){return s(Nn)},toggleFullscreen:hr,get seekToInteractive(){return e.seekToInteractive},get playPrevChapter(){return e.playPrevChapter},onDisabledPlayPrevChapterClick:zr,onDisabledSeekToInteractiveClick:or,get playerControlsWrapperRef(){return s(mo)},set playerControlsWrapperRef(ri){B(mo,ri,!0)},get playerControlsRef(){return s(jo)},set playerControlsRef(ri){B(jo,ri,!0)}})};L(yn,je=>{Nt()&&je(wr)})}var qr=P(yn,2);{var Kr=je=>{var Zt=Qx(),pe=_(Zt);Rd(pe,{get supportLink(){return e.supportLink},get returnFocus(){return Fx},get ref(){return s(Ln)},set ref(yt){B(Ln,yt,!0)}}),g(Zt),b(je,Zt)};L(qr,je=>{U()&&je(Kr)})}var sr=P(qr,2);let Cr=h(()=>!s(Fr));ed(sr,{get isLive(){return de()},get isHidden(){return s(Cr)},get isPlaying(){return ue()},get position(){return V()},get duration(){return K()}});var xn=P(sr,2);{var qi=je=>{ma(je,{})};L(xn,je=>{s(Or)&&je(qi)})}var Fn=P(xn,2);{var ar=je=>{rd(je,{})};L(Fn,je=>{xe()&&je(ar)})}var Sr=P(Fn,2);{var lr=je=>{Nd(je,{onClose:pn,onSelectAutoQuality:()=>{Ro("auto"),pn()}})};L(Sr,je=>{s(Hi)&&je(lr)})}b(St,ai)});var rr=P(Dn,2);ot(rr,St=>B(Vn,St),()=>s(Vn)),g(zt),ot(zt,St=>B(fo,St),()=>s(fo)),O(()=>Ne(zt,"aria-label",br)),wt("click",zt,Ur,!0),wt("focusin",zt,bn,!0),b(t,zt),H(),o()}lt(["click"]);function wu(t){let e="";return ji(t.timelineSliderFilledColor)&&(e+=`--timeline-slider-filled-bg:${t.timelineSliderFilledColor};`),ji(t.timelineSliderHandleColor)&&(e+=`--timeline-slider-handle-bg:${t.timelineSliderHandleColor};`),ji(t.timelineSliderLoadedColor)&&(e+=`--timeline-slider-loaded-bg:${t.timelineSliderLoadedColor};`),ji(t.timelineSliderColor)&&(e+=`--timeline-slider-bg:${t.timelineSliderColor};`),ji(t.volumeSliderColor)&&(e+=`--volume-slider-bg:${t.volumeSliderColor};`),ji(t.volumeSliderHandleColor)&&(e+=`--volume-slider-handle-bg:${t.volumeSliderHandleColor};`),ji(t.volumeSliderFilledColor)&&(e+=`--volume-slider-filled-bg:${t.volumeSliderFilledColor};`),ji(t.controlsTimeColor)&&(e+=`--controls-time:${t.controlsTimeColor};`),ji(t.timelineSliderFilledActiveLiveColor)&&(e+=`--timeline-slider-filled-active-live-bg:${t.timelineSliderFilledActiveLiveColor};`),ji(t.timelineSliderHandleActiveLiveColor)&&(e+=`--timeline-slider-handle-active-live-bg:${t.timelineSliderHandleActiveLiveColor};`),ji(t.buttonColor)&&(e+=`--btn-color:${t.buttonColor};`),ji(t.buttonToggleOnColor)&&(e+=`--toggle-color-on:${t.buttonToggleOnColor};`,e+=`--toggle-color-autoplay-on:${t.buttonToggleOnColor};`),ji(t.focusedColor)&&(e+=`--focused:${t.focusedColor};`),ji(t.focusedOutlineWidth)&&(e+=`--focused-outline-width:${t.focusedOutlineWidth};`),ji(t.focusedOutlineRadius)&&(e+=`--focused-outline-radius:${t.focusedOutlineRadius};`),ji(t.controlsDesktopPaddingHorizontal)&&(e+=`--controls-desktop-padding-horizontal:${t.controlsDesktopPaddingHorizontal};`),ji(t.timelinePaddingHorizontal)&&(e+=`--timeline-padding-horizontal:${t.timelinePaddingHorizontal};`),ji(t.settingsBackgroundColor)&&(e+=`--settings-bg:${t.settingsBackgroundColor};`),ji(t.font)&&(e+=`--font:${t.font};`),ji(t.controlsGradientHeight)&&(e+=`--controls-gradient-height:${t.controlsGradientHeight};`),ji(t.controlsGradient)&&(e+=`--controls-gradient:${t.controlsGradient};`),e.length&&e||void 0}function ji(t){return typeof t=="string"&&!t.includes(";")}import{debounceFn as Zx}from"@vkontakte/videoplayer-shared/es2018";var Xx=M('<div class="player-wrapper svelte-1qfjf44" role="region"><!> <!> <!> <!> <div class="time-container svelte-1qfjf44"><!></div> <div><!></div></div>'),Jx={hash:"svelte-1qfjf44",code:".player-wrapper.svelte-1qfjf44 {position:absolute;width:100%;height:100%;}.player-wrapper.svelte-1qfjf44 .player-media {position:absolute;left:0;top:0;width:100%;height:100%;background:var(--black);transition:transform 0.2s ease-in-out;}.timeline.svelte-1qfjf44 {opacity:0;opacity:1;position:absolute;z-index:var(--controls-container-z-index);width:100%;bottom:0;left:0;transition:opacity var(--controls-transition-duration) var(--controls-transition-fn);}.visible.svelte-1qfjf44 {opacity:1;}.time-container.svelte-1qfjf44 {position:absolute;bottom:8px;right:8px;z-index:var(--thumb-timer-z-index);}"};function Ym(t,e){D(e,!0),z(t,Jx);let[i,o]=De(),n=()=>C(ne,"$playerSize",i),r=()=>C(E,"$isPlaying$",i),l=()=>C(A,"$duration$",i),d=()=>C(W,"$positionWithScrubbing$",i),a=()=>C(T,"$playerPhase",i),p=()=>C(k,"$crashed$",i),f=()=>C(V,"$currentSubtitle$",i),v=()=>C(K,"$currentSubtitleCaptions$",i),u=()=>C(I,"$positionExact$",i),$=()=>C(U,"$isLive$",i),w=()=>C(Y,"$isRewindableLive$",i),y=m(e,"outsideDuration",3,0),S=m(e,"videoContainer",15),{playerPhase:T,state:{crashed$:k,duration$:A,positionExact$:I,isPlaying$:E,currentSubtitle$:V,currentSubtitleCaptions$:K,positionWithScrubbing$:W,isLive$:U,isRewindableLive$:Y},ui:{playerSize:ne,controls:G},actions:{internal:{getVideoElement:ce}}}=Ee(),le=8,we=j(!1),Ve=oi({}),ve=()=>{B(we,!0)},ae=()=>{B(we,!1)},Le=Zx(cl,260);We(()=>{n(),Le(ce(),G,Ve,s(we))});let te=h(()=>r()?cn(l()-d()):cn(isFinite(l())?l():y()));var N=Xx(),Be=_(N);Ia(Be,{hideCursor:!1,get videoContainer(){return S()},set videoContainer(Te){S(Te)}});var ye=P(Be,2);oa(ye,()=>"slot",!1,(Te,Ke)=>{Ie(Te,()=>({name:Ea}))});var ge=P(ye,2);let de=h(()=>a()!=="thumb"||p());Ca(ge,{get hidden(){return s(de)},get thumbUrl(){return e.thumbUrl},iconVisible:!1});var ue=P(ge,2);{var xe=Te=>{xa(Te,{shifted:!1,get captions(){return v()},get position(){return u()},get playerSize(){return n()}})};L(ue,Te=>{f().value!=="off"&&Te(xe)})}var Z=P(ue,2),qe=_(Z);Jl(qe,{get isLive(){return $()},get isPlaying(){return r()},get time(){return s(te)}}),g(Z);var Xe=P(Z,2);let ke;var X=_(Xe);ha(X,{get canRewindLive(){return e.canRewindLive},get isRewindableLive(){return w()},isAds:!1,needPadding:!1,isHidden:!1,withEpisodes:!1,tooltipLeftOffset:le,tooltipRightOffset:le,get ref(){return Ve.timeline},set ref(Te){Ve.timeline=Te}}),g(Xe),g(N),O(Te=>ke=J(Xe,1,"timeline svelte-1qfjf44",null,ke,Te),[()=>({visible:s(we)})]),wt("mouseenter",N,ve),wt("mouseleave",N,ae),b(t,N),H(),o()}var n5=M("<div><!></div>"),r5={hash:"svelte-oba660",code:`.root.svelte-oba660 {--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;
357
+ }.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 wu(t,e){F(e,!0),K(t,Lx);let i=m(e,"seekStep",3,0),o=j(!1),n=0,s=0,l=j(si(i())),d=v=>{v.stopPropagation(),s+=1,B(l,i()*(s-1)),s===1?e.handleSingleFirstClick(v):(B(o,!0),e.handleSecondClick()),window.clearTimeout(n),n=window.setTimeout(()=>{s=0,B(o,!1)},300)};Yo(()=>{window.clearTimeout(n)});var a=Mx();a.__click=d;var p=_(a);{var f=v=>{var u=Ax(),y=me(u),w=P(y,2),b=_(w),S=_(b),T=P(S,2),E=P(T,2);h(b);var M=P(b,2),I=_(M,!0);h(M),h(w),O(k=>{var R,Y,D,H;X(y,1,`semicircle ${(R=e.side)!=null?R:""}`,"svelte-nhq2ld"),X(S,1,`triangle ${(Y=e.side)!=null?Y:""}`,"svelte-nhq2ld"),X(T,1,`triangle ${(D=e.side)!=null?D:""}`,"svelte-nhq2ld"),X(E,1,`triangle ${(H=e.side)!=null?H:""}`,"svelte-nhq2ld"),_e(I,k)},[()=>z("doubletap_seek_step",{seconds:r(l).toFixed(0)})]),$(v,u)};L(p,v=>{r(o)&&v(f)})}h(a),O(()=>{var v;return X(a,1,`double-click-area ${(v=e.side)!=null?v:""}`,"svelte-nhq2ld")}),$(t,a),U()}lt(["click"]);var Vx=(t,e,i)=>{e(!1),i()},Rx=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),Nx={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 Gm(t,e){F(e,!0),K(t,Nx);let[i,o]=He(),n=()=>C(d,"$autoplayNextEnabled$",i),s=()=>C(a,"$timerNextVideoRunning$",i),l=Ee(),d=l.ui.autoplayNextEnabled$,a=l.ui.timerNextVideoRunning$,p=l.actions.internal.nextVideoClick,f=l.actions.internal.nextVideoAnnouncementShow,v=l.actions.internal.nextVideoAnnouncementClick,u=l.actions.internal.nextVideoAnnouncementAuto,y=l.actions.internal.nextVideoAnnouncementCancel,w=()=>{p(!1),u()},b=()=>{e.clickCloseIcon(),y()};Rt(()=>{e.isHide||f(),e.isHide&&n()&&(p(!1),u())});var S=Ue(),T=me(S);{var E=M=>{var I=Rx(),k=P(me(I),2),R=_(k),Y=_(R),D=_(Y,!0);h(Y);var H=P(Y,2);ua(H,{onClick:b}),h(R);var q=P(R,2);q.__click=[Vx,p,v];var J=_(q),W=_(J),de=_(W);let ie;var ve=P(de,2);{var Ie=te=>{dd(te,{get isRunning(){return s()},onTimerEnded:w})};L(ve,te=>{n()&&te(Ie)})}h(W),h(J);var fe=P(J,2),re=_(fe),ke=_(re,!0);h(re),h(fe),h(q),h(k),O((te,N)=>{_e(D,te),nt(W,`background-image: url('${e.thumb}')`),ie=X(de,1,"thumb-overlay svelte-1qdxi6t",null,ie,N),_e(ke,e.title)},[()=>n()?z("end_screen_next_video"):z("end_screen_recommended_video"),()=>({withOpacity:n()})]),$(M,I)};L(T,M=>{e.isHide||M(E)})}$(t,S),U(),o()}lt(["click"]);import{clientChecker as Bx}from"@vkontakte/videoplayer-core/es2018";var W1=({getFullscreenTarget:t,fullScreenChangeHandler:e})=>{let i=null,o;Rt(()=>{Bx.device.isIOS&&(o=setTimeout(()=>{let s=t().querySelector("video");if(!s)return;let l=()=>e(!0),d=()=>e(!1);s.addEventListener("webkitbeginfullscreen",l),s.addEventListener("webkitendfullscreen",d),i=()=>{s.removeEventListener("webkitbeginfullscreen",l),s.removeEventListener("webkitendfullscreen",d)}},0))}),Yo(()=>{i==null||i(),clearTimeout(o)})};import{VideoFormat as Ox}from"@vkontakte/videoplayer-core/es2018";var Cu=class{constructor(e){this.video=e}getTracksArray(){return Array.from(this.video.getElementsByTagName("track"))}attach(e,i=!1){let o=document.createElement("track");o.setAttribute("src",e.url),o.setAttribute("id",e.id),e.label&&o.setAttribute("label",e.label),e.language&&o.setAttribute("srclang",e.language),i&&(o.track.mode="showing"),this.video.appendChild(o)}detachAll(){for(let e of this.getTracksArray())this.video.removeChild(e)}updateSrc(e){let i=this.getTracksArray().find(o=>o.id===e.id);i&&(i.src=e.url)}getCurrentShowingId(){var e,i;return(i=(e=this.getTracksArray().find(o=>o.track.mode==="showing"))==null?void 0:e.id)!=null?i:null}};import{clientChecker as Dx}from"@vkontakte/videoplayer-core/es2018";var K1=({store:t,getFullscreenTarget:e})=>{let{isFullscreen:i}=t.ui,{setSubtitle:o}=t.actions.internal,{currentSubtitle$:n,availableSubtitlesList$:s,currentFormat$:l,availableTextTracks$:d}=t.state,a=null,p=()=>e().querySelector("video"),f=()=>Dx.device.isIOS&&$e(l)===Ox.DASH_LIVE_CMAF,v=()=>{a==null||a(),a=null},u=y=>{if(v(),!f()||!y)return;let w=p();if(!w)return;let b=new Cu(w),S=$e(d),T=$e(s),E=$e(n);for(let k of S)T.some(Y=>Y.value===k.id)&&b.attach(k,E.value===k.id);let M=d.subscribe(k=>{for(let R of k)b.updateSrc(R)}),I=()=>{let k=b.getCurrentShowingId();o($e(s).find(R=>R.value===k))};w.textTracks.addEventListener("change",I),a=()=>{M(),b.detachAll(),w.textTracks.removeEventListener("change",I)}};Rt(()=>i.subscribe(u)),Yo(v)};var Ux=(t,e,i,o)=>{if(t.stopPropagation(),e()){o();return}},zx=A("<!> <!>",1),Wx=A("<div><!></div>"),Kx=A('<div class="spherical-video-icon svelte-7yl31d"><!></div>'),qx=A("<div><!></div>"),Gx=A('<div class="settings-mobile svelte-7yl31d"><!></div>'),Qx=A("<!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!>",1),Yx=A('<div class="player-wrapper svelte-7yl31d" role="region" tabindex="-1"><!> <!> <!> <div class="overlay-container"></div></div>'),jx={hash:"svelte-7yl31d",code:".player-wrapper.svelte-7yl31d {position:absolute;width:100%;height:100%;}.player-wrapper.svelte-7yl31d .player-media {position:absolute;left:0;top:0;width:100%;height:100%;background:var(--black);transition:transform 0.2s ease-in-out;}.spherical-video-icon.svelte-7yl31d {display:inline-block;position:absolute;top:calc(50% - 23px);left:calc(50% - 38px);}.ads-container.svelte-7yl31d {position:absolute;width:100%;height:100%;left:0;top:0;}.ads-container.svelte-7yl31d {z-index:var(--ads-container-z-index);background:var(--black);}.settings-mobile.svelte-7yl31d {position:absolute;z-index:var(--settings-menu-z-index);top:50%;left:50%;transform:translate(-50%,-50%);transition:opacity var(--controls-transition-duration);display:flex;align-items:center;max-width:320px;width:90%;}"};function Qm(t,e){var xr,qr;F(e,!0),K(t,jx);let[i,o]=He(),n=()=>C(Re,"$playerPhase",i),s=()=>C(ui,"$isLoaderVisible",i),l=()=>C(ze,"$adPlaybackState",i),d=()=>C(Bt,"$crashed",i),a=()=>C(Fr,"$notificationsToShow$",i),p=()=>C(De,"$playbackState$",i),f=()=>C(ge,"$graphIsOpened$",i),v=()=>C(Je,"$interactiveHideMobileControls",i),u=()=>C(wo,"$isEnded$",i),y=()=>C($t,"$isInteractiveExpectation$",i),w=()=>C(Pt,"$controlsVisible",i),b=()=>C(fn,"$touched",i),S=()=>C(ji,"$autoplayNextEnabled$",i),T=()=>C(wi,"$postrollPassed",i),E=()=>C(tn,"$bottomNoSmooth",i),M=()=>C(ft,"$videoSize",i),I=()=>C(Ot,"$playerSize",i),k=()=>C(tt,"$isFullscreen",i),R=()=>C(Le,"$position$",i),Y=()=>C(Ye,"$duration$",i),D=()=>C(Ei,"$loadedMetadata",i),H=()=>C(ai,"$settingsMenuVisible",i),q=()=>C(at,"$scrubbingInProgress",i),J=()=>C(Xt,"$volumeChangingInProgress",i),W=()=>C(po,"$chromecastConnected$",i),de=()=>C(Mt,"$isControlsAvailable",i),ie=()=>C(Mi,"$isInteractiveTime$",i),ve=()=>C(Ho,"$isActiveLive",i),Ie=()=>C(mi,"$settingsMenuOpenedByKeyboard",i),fe=()=>C(le,"$language$",i),re=()=>C(Xo,"$disabledControls$",i),ke=()=>C(er,"$is3DVideo",i),te=()=>C(Si,"$icon3DVideoVisible",i),N=()=>C(Yt,"$chromecastDeviceName$",i),Oe=()=>C(rt,"$currentSubtitle$",i),ye=()=>C(ut,"$currentSubtitleCaptions$",i),he=()=>C(hi,"$realDuration$",i),ce=()=>C(ht,"$isLive$",i),ue=()=>C(Ci,"$isPlaying$",i),we=()=>C(ti,"$debugPanelVisible",i),Z=m(e,"videoContainer",15),Ke=m(e,"adsSlotId",3,void 0),Xe=m(e,"adsParams",3,void 0),Ae=m(e,"adsPreviewParam",3,void 0),ee=m(e,"adsAutoplayParam",3,void 0),Ce=m(e,"duration",3,void 0),qe=m(e,"logoTargetUrl",3,""),st=m(e,"showNextPrevButtons",3,!1),ct=m(e,"nextButtonActive",3,!1),bt=m(e,"prevButtonActive",3,!1),St=m(e,"endScreenVideoTitle",3,void 0),Ge=m(e,"endScreenVideoThumb",3,void 0),Wt=m(e,"isOneVideoPlaylist",3,!1),Qt=m(e,"showMiniTimer",3,!1),qt=m(e,"fullScreenTarget",3,void 0),Nt=m(e,"playerStarted",3,!1),oe=m(e,"showEndScreen",3,!0),{notifications$:At,graphIsOpened$:ge}=uo(),be=e.store.getLogger().createComponentLog("Root component"),le=e.store.interfaceLanguage$,De=e.store.state.playbackState$,ze=e.store.ads.playbackState,Le=e.store.state.positionWithScrubbing$,Ye=e.store.state.duration$,Re=e.store.playerPhase,tt=e.store.ui.isFullscreen,Pt=e.store.ui.controlsVisible,Mt=e.store.ui.isControlsAvailable,Je=e.store.ui.interactiveHideMobileControls,ai=e.store.ui.settingsMenu.visible$,mi=e.store.ui.settingsMenu.openedByBtnKeyboard$,at=e.store.ui.scrubbingInProgress,Xt=e.store.ui.volumeChangingInProgress,ti=e.store.ui.debugPanelVisible,ui=e.store.state.isLoaderVisible,wo=e.store.state.isEnded$,po=e.store.state.chromecastConnected$,Yt=e.store.state.chromecastDeviceName$,wi=e.store.ads.postrollPassed,Yi=e.store.ui.mobileUnmuteButtonExpanded,yt=e.store.ui.mobileUnmuteButtonVisible,ht=e.store.state.isLive$,Ci=e.store.state.isPlaying$,Ho=e.store.state.isActiveLive$,G=e.store.state.isRewindableLive$,Bt=e.store.state.crashed$,ci=e.store.webApi.annotationsApi,Kt=e.store.webApi.pictureInPictureApi,ft=e.store.state.videoSize$,rt=e.store.state.currentSubtitle$,ut=e.store.state.currentSubtitleCaptions$,hi=e.store.state.duration$,Ot=e.store.ui.playerSize,er=e.store.ui.is3DVideo,Si=e.store.ui.icon3DVideoVisible,fo=e.store.state.isInteractive,Mi=e.store.state.isInteractiveTime$,$t=e.store.state.isInteractiveExpectation$,Li=e.store.state.hasInteractiveBranches,Xo=e.store.ui.controls.disabledControls$,fn=e.store.ui.touched,Ti=e.store.ui.overlayContainer$,ji=e.store.ui.autoplayNextEnabled$,Ei=e.store.state.loadedMetadata$,Jo=e.store.actions.internal.closeSettingsMenu,Ln=(xr=e.store.callbacks)==null?void 0:xr.onDisabledPlayPrevChapterClick,Co=(qr=e.store.callbacks)==null?void 0:qr.onDisabledSeekToInteractiveClick,Fo=e.store.actions.internal.setQuality,io=j(void 0),mo=j(void 0),en=j(void 0),Vn=j(void 0),tr,ir,or,Hr=g(()=>(n()==="video"&&s()||n()==="ads"&&l()==="inactive")&&!d()),Rn=j(void 0),{closeNotification:ns,notificationsToShow$:Fr}=At,Vi=g(()=>!!a().slow_video),mn=()=>ns("slow_video"),tn=ae(!1),vn,vo=j(!1),gn=g(()=>p()!==Hx.PLAYING),Nn=j(!1),Ur=g(()=>f()||v()||!r(vo)&&(u()&&!!Li||r(gn)&&y())),_r=j(!0),zr=g(()=>e.uiConfig.features.thumbTimer&&Qt()&&n()==="video"&&!w()&&!d()&&!fo&&(e.uiConfig.hideThumbTimerAfterTouch&&!b()||!e.uiConfig.hideThumbTimerAfterTouch)),hn=j(!1),Bn=g(()=>(oe()||e.showAutoplayNext&&S())&&!!St()&&!!Ge()&&(e.showAds&&T()||!e.showAds)&&u()&&!d()&&!r(hn)),it=j(!1);Kt==null||Kt.setContext(Cl());let Ut=xt=>{clearTimeout(ir),xt&&(yt.set(!0),Yi.set(!0),ir=setTimeout(()=>{Yi.set(!1)},e.uiConfig.controls.collapseMobileUnmute),fo||zi(e.uiConfig.controls.hideTimeoutMobile))};e.store.setUiCallbacks({onStarted:Ut});let On=()=>{clearTimeout(tr),B(vo,!1),v()&&Je.set(!1)},zi=xt=>{On(),B(vo,!0),tr=setTimeout(()=>B(vo,!1),xt);let li=xt-100;vn=setTimeout(()=>{E()&&tn.set(!1)},li>0?li:xt)},nr=er.subscribe(xt=>{Si.set(xt),xt&&(clearTimeout(or),or=setTimeout(()=>Si.set(!1),e.uiConfig.controls.hide360IconTimeout))}),Dn=async(xt=Ms())=>{var li,zo,So,go,_i,ho;if(xt&&!Hd.device.isIOS){let oo=Xl(),ar=bn(),lr=Hd.browser.isSamsungBrowser&&oo===e.shadowRootContainer;xt=oo===ar||lr}if(xt){zi(e.uiConfig.controls.hideTimeoutFullscreen);try{await(Kt==null?void 0:Kt.exit())}catch(oo){be({message:String(oo)})}try{let oo=(li=M())!=null&&li.width&&((zo=M())!=null&&zo.height)?M():I();await Rh(oo)}catch(oo){be({message:String(oo)})}}tt.set(xt),e.store.getAdmanWrapper().setFullscreen(xt),k()?(go=(So=e.store.callbacks)==null?void 0:So.onFullscreenEnter)==null||go.call(So):(ho=(_i=e.store.callbacks)==null?void 0:_i.onFullscreenExit)==null||ho.call(_i)},_n=xt=>{let li=xt;Ot.set({width:li.target.width,height:li.target.height})};Rt(()=>{var xt;return Gc(Dn),e.uiConfig.features.annotationsInside&&(ci==null||ci.init(r(io))),la(Kt)&&(Kt==null||Kt.assignPlayerContainer(r(io)),Kt==null||Kt.setExternalEventHandlers({resize:_n})),B(_r,!Hd.device.isIphoneOrOldIpad),e.interactiveContainer&&((xt=Z().parentElement)==null||xt.insertBefore(e.interactiveContainer,Z().nextSibling)),()=>{clearTimeout(tr),clearTimeout(vn),clearTimeout(ir),clearTimeout(or),nr(),Kt==null||Kt.dispose().catch(li=>{be({message:String(li)})}),Qc(Dn)}});let Wi=j(!0),on=j(!0),Uo=xt=>{let li=R()+(xt==="forward"?1:-1)*e.uiConfig.controls.seekStepMobile/1e3;li<0?(B(Wi,!1),li=0):li>=Y()&&(B(on,!1),li=Y()),B(Nn,!0),e.seekTime(li)},bn=()=>Hd.device.isIOS?r(io):!e.uiConfig.allowChangingFullscreenTarget||!qt()?e.outerContainerRef:qt().contains(e.outerContainerRef)?qt():e.outerContainerRef,br=async()=>{try{if(Ms())await qc(document),be({message:"exit fullscreen"});else{if(be({message:"request fullscreen"}),Hd.device.isIOS&&!D())return;await Kc(bn())}}catch(xt){be({message:String(xt)})}},$r=()=>{Jo()},$n=xt=>{if(xt.preventDefault(),H()){$r();return}if(!Nt()){e.firstStart(),zi(e.uiConfig.controls.hideTimeoutCursor);return}B(Nn,!1),w()?On():zi(e.uiConfig.controls.hideTimeoutMobile)},Wr=()=>{fn.set(!0)},yn=()=>{fo||(tn.set(!0),zi(e.uiConfig.controls.hideTimeoutCursor))},Kr=xt=>{Ln&&(Ln(xt),zi(e.uiConfig.controls.hideTimeoutMobile))},rr=xt=>{Co&&(Co(xt),zi(e.uiConfig.controls.hideTimeoutMobile))};We(()=>{Ti.set(r(Rn))}),We(()=>{Pt.set((r(gn)||H()||q()||J()||W()||!r(Bn)&&(u()||r(vo)&&!r(Nn)))&&!r(Ur)&&n()==="video"&&!d()&&de())}),We(()=>{!q()&&r(it)&&!ie()&&zi(e.uiConfig.controls.hideTimeoutMobile),B(it,q(),!0)}),We(()=>{B(Wi,R()>0),B(on,!ve()&&R()<Y(),!0)}),We(()=>{rd(r(Vn),H(),Ie(),!0)});let yr=z("aria_label_video_player"),nn=z("video360");W1({fullScreenChangeHandler:Dn,getFullscreenTarget:bn}),K1({store:e.store,getFullscreenTarget:bn});let ii=(xt,li,zo)=>{var go,_i,ho;let So={...An(r(io),{upcomingLiveScreen:zo},"upcomingLiveScreen",li),view:xt};(ho=(_i=(go=e.store.callbacks)==null?void 0:go.uiInfo)==null?void 0:_i.onUpcomingLiveViewStateChanged)==null||ho.call(_i,So)};var Ri=Yx();Tt("blur",Ys,$r);var sr=_(Ri);Ea(sr,{onClick:$n,get videoContainer(){return Z()},set videoContainer(xt){Z(xt)}});var Hn=P(sr,2);ia(Hn,()=>"slot",!1,(xt,li)=>{Pe(xt,()=>({name:Ta}))});var Fn=P(Hn,2);ta(Fn,fe,xt=>{var li=Qx(),zo=me(li);let So=g(()=>n()!=="thumb"||d()||fo&&e.autoplay);wa(zo,{get hidden(){return r(So)},get thumbUrl(){return e.thumbUrl},get startVideo(){return e.firstStart}});var go=P(zo,2);{var _i=je=>{var Jt=zx(),pe=me(Jt);{var wt=Ne=>{let mt=g(()=>e.uiConfig.controls.seekStepMobile/1e3);wu(Ne,{side:"left",get seekStep(){return r(mt)},handleSingleFirstClick:$n,handleSecondClick:()=>Uo("backward")})};L(pe,Ne=>{r(Wi)&&Ne(wt)})}var oi=P(pe,2);{var pi=Ne=>{let mt=g(()=>e.uiConfig.controls.seekStepMobile/1e3);wu(Ne,{side:"right",get seekStep(){return r(mt)},handleSingleFirstClick:$n,handleSecondClick:()=>Uo("forward")})};L(oi,Ne=>{r(on)&&Ne(pi)})}$(je,Jt)};L(go,je=>{e.canRewindLive&&G&&!re().has("TIMELINE")&&je(_i)})}var ho=P(go,2);{var oo=je=>{let Jt=g(()=>{var pe;return(pe=e.live)==null?void 0:pe.startTime});Rd(je,{get thumbUrl(){return e.thumbUrl},get startTime(){return r(Jt)},onUpcomingLiveViewStateChanged:ii})};L(ho,je=>{n()==="LiveWaitingStart"&&je(oo)})}var ar=P(ho,2);{var lr=je=>{Ca(je,{kind:"recover",get thumbUrl(){return e.thumbUrl}})};L(ar,je=>{n()==="LiveWaitingRecover"&&je(lr)})}var wr=P(ar,2);{var et=je=>{Ca(je,{kind:"record",get thumbUrl(){return e.thumbUrl}})};L(wr,je=>{n()==="LiveWaitingRecord"&&je(et)})}var kt=P(wr,2);{var bi=je=>{var Jt=Wx();let pe;var wt=_(Jt);ed(wt,{get adsSlotId(){return Ke()},get adsParams(){return Xe()},get adsPreviewParam(){return Ae()},get adsAutoplayParam(){return ee()},get duration(){return Ce()}}),h(Jt),O(oi=>pe=X(Jt,1,"ads-container svelte-7yl31d",null,pe,oi),[()=>({hidden:n()!=="ads"})]),$(je,Jt)};L(kt,je=>{e.showAds&&Nt()&&je(bi)})}var _o=P(kt,2);{var no=je=>{let Jt=g(()=>!oe()&&e.showAutoplayNext&&S());Gm(je,{get title(){return St()},get thumb(){return Ge()},get isHide(){return r(Jt)},clickCloseIcon:()=>B(hn,!0)})};L(_o,je=>{r(Bn)&&St()&&Ge()&&je(no)})}var ro=P(_o,2);{var To=je=>{Ld(je,{})};L(ro,je=>{ke()&&je(To)})}var Wo=P(ro,2);{var Eo=je=>{var Jt=Kx(),pe=_(Jt);Zl(pe,{get"aria-label"(){return nn}}),h(Jt),$(je,Jt)};L(Wo,je=>{te()&&je(Eo)})}var Ni=P(Wo,2);{var Zi=je=>{Vd(je,{get thumbUrl(){return e.thumbUrl},get chromecastDeviceName(){return N()}})};L(Ni,je=>{W()&&je(Zi)})}var Io=P(Ni,2);{var so=je=>{ya(je,{get shifted(){return w()},get captions(){return ye()},get position(){return R()},get playerSize(){return I()},isMobile:!0})};L(Io,je=>{Oe().value!=="off"&&je(so)})}var ko=P(Io,2);{var Un=je=>{var Jt=qx();Jt.__click=[Ux,H,ai,$r];var pe=_(Jt);xa(pe,{}),h(Jt),$(je,Jt)};L(ko,je=>{d()&&je(Un)})}var dr=P(ko,2);{var rs=je=>{let Jt=g(()=>n()==="thumb"||n()==="LiveWaitingStart"||n()==="LiveWaitingRecover"||n()==="LiveWaitingRecord"||n()==="ads"),pe=g(()=>n()==="ads"),wt=g(()=>e.canRewindLive&&he()!==0);Md(je,{get bottomHidden(){return r(Jt)},get showControls(){return w()},get bottomNoSmooth(){return E()},get isAds(){return r(pe)},get canRewindLive(){return r(wt)},get logoClickable(){return e.logoClickable},get logoHidden(){return e.logoHidden},get logoTargetUrl(){return qe()},get showAutoplayNext(){return e.showAutoplayNext},get showNextPrevButtons(){return st()},get nextButtonActive(){return ct()},get prevButtonActive(){return bt()},get isOneVideoPlaylist(){return Wt()},get customFullscreenSupported(){return r(_r)},get endScreenShown(){return r(Bn)},toggleFullscreen:br,get seekToInteractive(){return e.seekToInteractive},get playPrevChapter(){return e.playPrevChapter},onDisabledPlayPrevChapterClick:Kr,onDisabledSeekToInteractiveClick:rr,get playerControlsWrapperRef(){return r(mo)},set playerControlsWrapperRef(oi){B(mo,oi,!0)},get playerControlsRef(){return r(en)},set playerControlsRef(oi){B(en,oi,!0)}})};L(dr,je=>{Nt()&&je(rs)})}var Cr=P(dr,2);{var Sr=je=>{var Jt=Gx(),pe=_(Jt);Od(pe,{get supportLink(){return e.supportLink},get returnFocus(){return Fx},get ref(){return r(Vn)},set ref(wt){B(Vn,wt,!0)}}),h(Jt),$(je,Jt)};L(Cr,je=>{H()&&je(Sr)})}var cr=P(Cr,2);let ur=g(()=>!r(zr));od(cr,{get isLive(){return ce()},get isHidden(){return r(ur)},get isPlaying(){return ue()},get position(){return R()},get duration(){return Y()}});var rn=P(cr,2);{var ao=je=>{fa(je,{})};L(rn,je=>{r(Hr)&&je(ao)})}var xn=P(rn,2);{var Tr=je=>{ld(je,{})};L(xn,je=>{we()&&je(Tr)})}var pr=P(xn,2);{var Er=je=>{Dd(je,{onClose:mn,onSelectAutoQuality:()=>{Fo("auto"),mn()}})};L(pr,je=>{r(Vi)&&je(Er)})}$(xt,li)});var Ii=P(Fn,2);ot(Ii,xt=>B(Rn,xt),()=>r(Rn)),h(Ri),ot(Ri,xt=>B(io,xt),()=>r(io)),O(()=>Be(Ri,"aria-label",yr)),Tt("click",Ri,Wr,!0),Tt("focusin",Ri,yn,!0),$(t,Ri),U(),o()}lt(["click"]);function Su(t){let e="";return Qi(t.timelineSliderFilledColor)&&(e+=`--timeline-slider-filled-bg:${t.timelineSliderFilledColor};`),Qi(t.timelineSliderHandleColor)&&(e+=`--timeline-slider-handle-bg:${t.timelineSliderHandleColor};`),Qi(t.timelineSliderLoadedColor)&&(e+=`--timeline-slider-loaded-bg:${t.timelineSliderLoadedColor};`),Qi(t.timelineSliderColor)&&(e+=`--timeline-slider-bg:${t.timelineSliderColor};`),Qi(t.volumeSliderColor)&&(e+=`--volume-slider-bg:${t.volumeSliderColor};`),Qi(t.volumeSliderHandleColor)&&(e+=`--volume-slider-handle-bg:${t.volumeSliderHandleColor};`),Qi(t.volumeSliderFilledColor)&&(e+=`--volume-slider-filled-bg:${t.volumeSliderFilledColor};`),Qi(t.controlsTimeColor)&&(e+=`--controls-time:${t.controlsTimeColor};`),Qi(t.timelineSliderFilledActiveLiveColor)&&(e+=`--timeline-slider-filled-active-live-bg:${t.timelineSliderFilledActiveLiveColor};`),Qi(t.timelineSliderHandleActiveLiveColor)&&(e+=`--timeline-slider-handle-active-live-bg:${t.timelineSliderHandleActiveLiveColor};`),Qi(t.buttonColor)&&(e+=`--btn-color:${t.buttonColor};`),Qi(t.buttonToggleOnColor)&&(e+=`--toggle-color-on:${t.buttonToggleOnColor};`,e+=`--toggle-color-autoplay-on:${t.buttonToggleOnColor};`),Qi(t.focusedColor)&&(e+=`--focused:${t.focusedColor};`),Qi(t.focusedOutlineWidth)&&(e+=`--focused-outline-width:${t.focusedOutlineWidth};`),Qi(t.focusedOutlineRadius)&&(e+=`--focused-outline-radius:${t.focusedOutlineRadius};`),Qi(t.controlsDesktopPaddingHorizontal)&&(e+=`--controls-desktop-padding-horizontal:${t.controlsDesktopPaddingHorizontal};`),Qi(t.timelinePaddingHorizontal)&&(e+=`--timeline-padding-horizontal:${t.timelinePaddingHorizontal};`),Qi(t.settingsBackgroundColor)&&(e+=`--settings-bg:${t.settingsBackgroundColor};`),Qi(t.font)&&(e+=`--font:${t.font};`),Qi(t.controlsGradientHeight)&&(e+=`--controls-gradient-height:${t.controlsGradientHeight};`),Qi(t.controlsGradient)&&(e+=`--controls-gradient:${t.controlsGradient};`),e.length&&e||void 0}function Qi(t){return typeof t=="string"&&!t.includes(";")}import{debounceFn as Zx}from"@vkontakte/videoplayer-shared/es2018";var Xx=A('<div class="player-wrapper svelte-1qfjf44" role="region"><!> <!> <!> <!> <div class="time-container svelte-1qfjf44"><!></div> <div><!></div></div>'),Jx={hash:"svelte-1qfjf44",code:".player-wrapper.svelte-1qfjf44 {position:absolute;width:100%;height:100%;}.player-wrapper.svelte-1qfjf44 .player-media {position:absolute;left:0;top:0;width:100%;height:100%;background:var(--black);transition:transform 0.2s ease-in-out;}.timeline.svelte-1qfjf44 {opacity:0;opacity:1;position:absolute;z-index:var(--controls-container-z-index);width:100%;bottom:0;left:0;transition:opacity var(--controls-transition-duration) var(--controls-transition-fn);}.visible.svelte-1qfjf44 {opacity:1;}.time-container.svelte-1qfjf44 {position:absolute;bottom:8px;right:8px;z-index:var(--thumb-timer-z-index);}"};function Ym(t,e){F(e,!0),K(t,Jx);let[i,o]=He(),n=()=>C(J,"$playerSize",i),s=()=>C(k,"$isPlaying$",i),l=()=>C(M,"$duration$",i),d=()=>C(D,"$positionWithScrubbing$",i),a=()=>C(T,"$playerPhase",i),p=()=>C(E,"$crashed$",i),f=()=>C(R,"$currentSubtitle$",i),v=()=>C(Y,"$currentSubtitleCaptions$",i),u=()=>C(I,"$positionExact$",i),y=()=>C(H,"$isLive$",i),w=()=>C(q,"$isRewindableLive$",i),b=m(e,"outsideDuration",3,0),S=m(e,"videoContainer",15),{playerPhase:T,state:{crashed$:E,duration$:M,positionExact$:I,isPlaying$:k,currentSubtitle$:R,currentSubtitleCaptions$:Y,positionWithScrubbing$:D,isLive$:H,isRewindableLive$:q},ui:{playerSize:J,controls:W},actions:{internal:{getVideoElement:de}}}=Ee(),ie=8,ve=j(!1),Ie=si({}),fe=()=>{B(ve,!0)},re=()=>{B(ve,!1)},ke=Zx(ll,260);We(()=>{n(),ke(de(),W,Ie,r(ve))});let te=g(()=>s()?pn(l()-d()):pn(isFinite(l())?l():b()));var N=Xx(),Oe=_(N);Ea(Oe,{hideCursor:!1,get videoContainer(){return S()},set videoContainer(Ce){S(Ce)}});var ye=P(Oe,2);ia(ye,()=>"slot",!1,(Ce,qe)=>{Pe(Ce,()=>({name:Ta}))});var he=P(ye,2);let ce=g(()=>a()!=="thumb"||p());wa(he,{get hidden(){return r(ce)},get thumbUrl(){return e.thumbUrl},iconVisible:!1});var ue=P(he,2);{var we=Ce=>{ya(Ce,{shifted:!1,get captions(){return v()},get position(){return u()},get playerSize(){return n()}})};L(ue,Ce=>{f().value!=="off"&&Ce(we)})}var Z=P(ue,2),Ke=_(Z);id(Ke,{get isLive(){return y()},get isPlaying(){return s()},get time(){return r(te)}}),h(Z);var Xe=P(Z,2);let Ae;var ee=_(Xe);ga(ee,{get canRewindLive(){return e.canRewindLive},get isRewindableLive(){return w()},isAds:!1,needPadding:!1,isHidden:!1,withEpisodes:!1,tooltipLeftOffset:ie,tooltipRightOffset:ie,get ref(){return Ie.timeline},set ref(Ce){Ie.timeline=Ce}}),h(Xe),h(N),O(Ce=>Ae=X(Xe,1,"timeline svelte-1qfjf44",null,Ae,Ce),[()=>({visible:r(ve)})]),Tt("mouseenter",N,fe),Tt("mouseleave",N,re),$(t,N),U(),o()}var n5=A("<div><!></div>"),r5={hash:"svelte-oba660",code:`.root.svelte-oba660 {--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;
358
358
 
359
359
  /* USER DEFINED COLORS */
360
360
 
@@ -387,5 +387,5 @@ Try switching the\xA0quality to\xA0Auto.`},Ih=w_;var fs=new Map;fs.set(Ph.EN,Ih)
387
387
  /* --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);}*.focus-hidden:focus-visible {box-shadow:none;}
388
388
  /* 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);}
389
389
 
390
- /* \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 Zm(t,e){D(e,!0),z(t,r5);let[i,o]=De(),n=()=>C(Yt,"$isLive$",i),r=()=>C(jt,"$availableSubtitlesList$",i),l=m(e,"sources",7),d=m(e,"store",7),a=m(e,"microStoresRoot",7),p=m(e,"videoConfig",7),f=m(e,"uiConfig",7),v=m(e,"title",7),u=m(e,"thumbUrl",7),$=m(e,"interactiveContainer",7),w=m(e,"interactiveController",7),y=m(e,"subtitles",7),S=m(e,"live",7),T=m(e,"preload",7),k=m(e,"autoplay",7),A=m(e,"volume",7,void 0),I=m(e,"muted",7,void 0),E=m(e,"fromTime",7),V=m(e,"canRewindLive",7),K=m(e,"showAds",7),W=m(e,"adsSlotId",7,void 0),U=m(e,"adsParams",7,void 0),Y=m(e,"adsPreviewParam",7,void 0),ne=m(e,"adsAutoplayParam",7,void 0),G=m(e,"duration",7,void 0),ce=m(e,"logoClickable",7),le=m(e,"logoHidden",7),we=m(e,"isMobile",7),Ve=m(e,"showNextPrevButtons",7,!1),ve=m(e,"nextButtonActive",7,!1),ae=m(e,"prevButtonActive",7,!1),Le=m(e,"endScreenVideoTitle",7,void 0),te=m(e,"endScreenVideoThumb",7,void 0),N=m(e,"isOneVideoPlaylist",7,!1),Be=m(e,"supportLink",7),ye=m(e,"shadowRootContainer",7),ge=m(e,"outerContainerRef",7),de=m(e,"fullScreenTarget",7,void 0),ue=m(e,"failoverHosts",7,void 0),xe=m(e,"showMiniTimer",7,!1),Z=m(e,"saveRate",7),qe=m(e,"seekToInteractive",7,K1),Xe=m(e,"playPrevChapter",7,K1),ke=m(e,"volumeMultiplier",7),X=m(e,"showAutoplayNext",7),Te=m(e,"showEndScreen",7,!0),Ke=m(e,"keyboardControls",15,void 0),{subscribers:rt,stores:ct}=a();Yg(f());let ht=Ft(),xt=f().logoLink,Qe=d().ui.debugPanelVisible,qt=d().ui.playerSize,Yt=d().state.isLive$,Nt=d().state.isInteractive&&jm.device.isAndroid,ee=j(void 0),At=null,me=j(!1);d().getAdmanWrapper().init({switchFromAdsToVideo:d().actions.internal.switchFromAdsToVideo,switchFromVideoToAds:d().actions.internal.switchFromVideoToAds,setMuted:d().actions.external.setMuted},d().ads,{isMobile:d().ui.isMobile,mobileUnmuteButtonVisible:d().ui.mobileUnmuteButtonVisible,vsid:d().vsid}),rh(d(),ct),We(()=>{var q,Bt;d().ui.isMobile.set(we()),(Bt=(q=p().callbacks)==null?void 0:q.onDomReady)==null||Bt.call(q)});let _e=(q=!1)=>{B(me,!0),q?d().actions.external.firstStart(K()):d().actions.internal.firstStart(K())},se=()=>{if(ht.features.qualityDetailsSubMenuEnabled){let q=Sh(d().videoId);if(q)switch(q.type){case"high_quality":d().actions.internal.setHighQualityEnabled(!0,q.appliesTo);break;case"traffic_saving":d().actions.internal.setTrafficSavingEnabled(!0,q.appliesTo);break;case"exact_quality":d().actions.internal.setQuality(q.quality);break}}else{Th(d().videoId),zp()&&d().actions.internal.setTrafficSavingEnabled(!0);let Bt=Dp(d().videoId);Bt&&d().actions.internal.setQuality(Bt)}};function Oe(q){var nt,ut,vi;let Bt=l()||q;Bt&&d().initVideo({container:s(ee),sources:Bt,failoverHosts:ue(),subtitles:y(),volumeMultiplier:ke()});let di=t5.get(Wl)==="true";Qe.set(di),E()>0&&d().actions.external.seekTime(E());let Kt=we()?ht.volumeDefault:(ut=(nt=A())!=null?nt:Rc())!=null?ut:ht.volumeDefault,ft=(vi=I())!=null?vi:bh();if(d().actions.external.setVolume(Kt),d().actions.external.setMuted(ft),d().getAdmanWrapper().setInitialVolume(ft?0:Kt),se(),ht.features.saveRate&&Z()){let Ot=xh();Ot&&!n()&&d().actions.internal.setPlaybackRate(Ot)}if(X()){let Ot=Ch();Ot&&d().actions.internal.setAutoplayNextEnabled(Ot)}d().ui.isAutoplay.set(k()),k()?_e():T()&&ht.features.preload&&d().actions.internal.preload()}let ze=q=>{if(window.ResizeObserver){let Bt,di;At=new ResizeObserver(i5(Kt=>{let ft=Kt[0];if(ft.contentBoxSize){let nt=Array.isArray(ft.contentBoxSize)?ft.contentBoxSize[0]:ft.contentBoxSize;Bt=nt.inlineSize,di=nt.blockSize}else ft.contentRect&&(Bt=ft.contentRect.width,di=ft.contentRect.height);qt.set({width:Bt,height:di})},300)),At.observe(q)}qt.set({width:q.clientWidth,height:q.clientHeight})},Ae=()=>{document.hidden&&d().actions.external.stop()};Rt(()=>{var di,Kt,ft,nt;Nt&&document.addEventListener("visibilitychange",Ae),ht.debugLog&&d().actions.internal.startLogging(),ze(s(ee));let q=rt.map(ut=>ut.init({store:d(),microStores:ct,config:p(),interactiveController:w(),uiConfig:f()})),Bt=()=>{Nt&&document.removeEventListener("visibilitychange",Ae),At==null||At.disconnect(),q.forEach(ut=>ut.unsubscribe()),d().destroy()};return((di=S())==null?void 0:di.status)==="upcoming"?(d().actions.internal.setLiveWaitingStart(!0),Bt):((Kt=S())==null?void 0:Kt.status)==="waiting"?(d().actions.internal.setLiveWaitingRecover(!0),Bt):(((ft=S())==null?void 0:ft.status)==="finished"||((nt=S())==null?void 0:nt.status)==="postlive")&&!(l()&&e5(l()))?(d().actions.internal.setLiveWaitingRecord(!0),Bt):(Oe(),Bt)});function Ye(){s(me)?d().actions.external.play():_e(!0)}function Re(){d().actions.external.pause()}function tt(q){d().actions.external.setMuted(q)}function kt(){d().actions.external.toggleSubtitle()}function Mt(){var q;(q=d().webApi.slotsApi)!=null&&q.haveSlots()&&d().actions.external.hideControls()}function Je(){var q;(q=d().webApi.slotsApi)!=null&&q.haveSlots()&&d().actions.external.showControls()}function ni(q){we()||q>=0&&q<=1&&d().actions.external.setVolume(q)}function pi(q){d().actions.internal.seekTime(q,o5.UNKNOWN)}function at(q){d().actions.external.seekEpisodeStartTime(q)}function ei(){d().actions.external.returnFocusToEpisodes()}function ii(q){d().actions.external.setPlaybackRate(q)}function ci(q){d().actions.external.setAutoQualityLimits(q)}let xo=wu(ht.view),uo=p().playerView==="preview",jt=d().state.availableSubtitlesList$;if(ht.features.initSubtitles){let q=!1;We(()=>{if(!q&&r().length){q=!0;let Bt=qp();if(Bt){let di=r().find(Kt=>Kt.language===Bt);d().actions.internal.setSubtitle(di)}}})}var wi=n5();let Zi;var $t=_(wi);{var gt=q=>{Gm(q,{get store(){return d()},get uiConfig(){return ht},get thumbUrl(){return u()},get interactiveContainer(){return $()},get live(){return S()},get autoplay(){return k()},get canRewindLive(){return V()},get showAds(){return K()},get adsSlotId(){return W()},get adsParams(){return U()},get adsPreviewParam(){return Y()},get adsAutoplayParam(){return ne()},get duration(){return G()},get logoClickable(){return ce()},get logoHidden(){return le()},get logoTargetUrl(){return xt},get nextButtonActive(){return ve()},get prevButtonActive(){return ae()},get endScreenVideoTitle(){return Le()},get endScreenVideoThumb(){return te()},get isOneVideoPlaylist(){return N()},get supportLink(){return Be()},get shadowRootContainer(){return ye()},get outerContainerRef(){return ge()},get fullScreenTarget(){return de()},get showMiniTimer(){return xe()},get playerStarted(){return s(me)},get seekToInteractive(){return qe()},get playPrevChapter(){return Xe()},firstStart:_e,seekTime:pi,get showEndScreen(){return Te()},get showAutoplayNext(){return X()},get showNextPrevButtons(){return Ve()},get videoContainer(){return s(ee)},set videoContainer(Bt){B(ee,Bt,!0)}})},Ci=q=>{var Bt=Ue(),di=fe(Bt);{var Kt=nt=>{Ym(nt,{get thumbUrl(){return u()},get outsideDuration(){return G()},get canRewindLive(){return V()},get videoContainer(){return s(ee)},set videoContainer(ut){B(ee,ut,!0)}})},ft=nt=>{Km(nt,{get store(){return d()},get uiConfig(){return ht},get title(){return v()},get thumbUrl(){return u()},get interactiveContainer(){return $()},get live(){return S()},get autoplay(){return k()},get canRewindLive(){return V()},get showAds(){return K()},get adsSlotId(){return W()},get adsParams(){return U()},get adsPreviewParam(){return Y()},get adsAutoplayParam(){return ne()},get duration(){return G()},get logoClickable(){return ce()},get logoHidden(){return le()},get logoTargetUrl(){return xt},get nextButtonActive(){return ve()},get prevButtonActive(){return ae()},get endScreenVideoTitle(){return Le()},get endScreenVideoThumb(){return te()},get isOneVideoPlaylist(){return N()},get supportLink(){return Be()},get shadowRootContainer(){return ye()},get outerContainerRef(){return ge()},get fullScreenTarget(){return de()},get showMiniTimer(){return xe()},get playerStarted(){return s(me)},get seekToInteractive(){return qe()},get playPrevChapter(){return Xe()},firstStart:_e,get showEndScreen(){return Te()},get showAutoplayNext(){return X()},get showNextPrevButtons(){return Ve()},get videoContainer(){return s(ee)},set videoContainer(ut){B(ee,ut,!0)},get keyboardControls(){return Ke()},set keyboardControls(ut){Ke(ut)}})};L(di,nt=>{uo?nt(Kt):nt(ft,!1)})}b(q,Bt)};L($t,q=>{we()?q(gt):q(Ci,!1)})}g(wi),O(q=>{Zi=J(wi,1,"root svelte-oba660",null,Zi,q),st(wi,xo)},[()=>({"root--miui-browser":jm.device.isMobile&&jm.browser.isMiuiBrowser,"visible-outside":uo})]),b(t,wi);var Vo=H({initVideo:Oe,play:Ye,pause:Re,setMuted:tt,toggleSubtitle:kt,hideControls:Mt,showControls:Je,setVolume:ni,seekTime:pi,seekEpisodeStartTime:at,returnFocusToEpisodes:ei,setPlaybackRate:ii,setAutoQualityLimits:ci,get sources(){return l()},set sources(q){l(q)},get store(){return d()},set store(q){d(q)},get microStoresRoot(){return a()},set microStoresRoot(q){a(q)},get videoConfig(){return p()},set videoConfig(q){p(q)},get uiConfig(){return f()},set uiConfig(q){f(q)},get title(){return v()},set title(q){v(q)},get thumbUrl(){return u()},set thumbUrl(q){u(q)},get interactiveContainer(){return $()},set interactiveContainer(q){$(q)},get interactiveController(){return w()},set interactiveController(q){w(q)},get subtitles(){return y()},set subtitles(q){y(q)},get live(){return S()},set live(q){S(q)},get preload(){return T()},set preload(q){T(q)},get autoplay(){return k()},set autoplay(q){k(q)},get volume(){return A()},set volume(q){A(q)},get muted(){return I()},set muted(q){I(q)},get fromTime(){return E()},set fromTime(q){E(q)},get canRewindLive(){return V()},set canRewindLive(q){V(q)},get showAds(){return K()},set showAds(q){K(q)},get adsSlotId(){return W()},set adsSlotId(q){W(q)},get adsParams(){return U()},set adsParams(q){U(q)},get adsPreviewParam(){return Y()},set adsPreviewParam(q){Y(q)},get adsAutoplayParam(){return ne()},set adsAutoplayParam(q){ne(q)},get duration(){return G()},set duration(q){G(q)},get logoClickable(){return ce()},set logoClickable(q){ce(q)},get logoHidden(){return le()},set logoHidden(q){le(q)},get isMobile(){return we()},set isMobile(q){we(q)},get showNextPrevButtons(){return Ve()},set showNextPrevButtons(q){Ve(q)},get nextButtonActive(){return ve()},set nextButtonActive(q){ve(q)},get prevButtonActive(){return ae()},set prevButtonActive(q){ae(q)},get endScreenVideoTitle(){return Le()},set endScreenVideoTitle(q){Le(q)},get endScreenVideoThumb(){return te()},set endScreenVideoThumb(q){te(q)},get isOneVideoPlaylist(){return N()},set isOneVideoPlaylist(q){N(q)},get supportLink(){return Be()},set supportLink(q){Be(q)},get shadowRootContainer(){return ye()},set shadowRootContainer(q){ye(q)},get outerContainerRef(){return ge()},set outerContainerRef(q){ge(q)},get fullScreenTarget(){return de()},set fullScreenTarget(q){de(q)},get failoverHosts(){return ue()},set failoverHosts(q){ue(q)},get showMiniTimer(){return xe()},set showMiniTimer(q){xe(q)},get saveRate(){return Z()},set saveRate(q){Z(q)},get showAutoplayNext(){return X()},set showAutoplayNext(q){X(q)},get seekToInteractive(){return qe()},set seekToInteractive(q){qe(q)},get playPrevChapter(){return Xe()},set playPrevChapter(q){Xe(q)},get volumeMultiplier(){return ke()},set volumeMultiplier(q){ke(q)},get showEndScreen(){return Te()},set showEndScreen(q){Te(q)},get keyboardControls(){return Ke()},set keyboardControls(q){Ke(q)}});return o(),Vo}var s5=Se('<svg><!><path fill="currentColor" d="M38.245 6c3.566 0 4.859.371 6.162 1.069a7.27 7.27 0 0 1 3.025 3.024c.697 1.303 1.068 2.597 1.068 6.163v23.489c0 3.566-.371 4.859-1.069 6.162a7.27 7.27 0 0 1-3.024 3.025C43.104 49.629 41.811 50 38.245 50h-19.49c-3.565 0-4.859-.371-6.162-1.069a7.27 7.27 0 0 1-3.024-3.024C8.87 44.604 8.5 43.311 8.5 39.745v-23.49c0-3.565.371-4.859 1.069-6.162a7.27 7.27 0 0 1 3.024-3.024C13.896 6.37 15.19 6 18.756 6zm.314 3H18.756c-2.799 0-3.761.186-4.749.714a4.27 4.27 0 0 0-1.793 1.793c-.508.95-.7 1.876-.713 4.434L11.5 39.744c0 2.799.186 3.761.714 4.749a4.27 4.27 0 0 0 1.793 1.793c.988.528 1.95.714 4.749.714h19.489c2.798 0 3.76-.186 4.748-.714a4.27 4.27 0 0 0 1.793-1.793c.528-.988.714-1.95.714-4.748v-23.49c0-2.798-.186-3.76-.714-4.748a4.27 4.27 0 0 0-1.793-1.793c-.95-.508-1.876-.7-4.434-.713zM19.22 38c.445 0 .607.046.77.134a.9.9 0 0 1 .377.378c.088.163.134.324.134.77v1.436c0 .446-.046.607-.134.77a.9.9 0 0 1-.378.378c-.162.088-.324.134-.77.134h-1.436c-.446 0-.608-.046-.77-.134a.9.9 0 0 1-.378-.378c-.088-.163-.134-.324-.134-.77v-1.436c0-.446.046-.607.134-.77a.9.9 0 0 1 .378-.378c.162-.088.324-.134.77-.134h1.436zm20 0c.445 0 .606.046.77.134a.9.9 0 0 1 .377.378c.088.163.134.324.134.77v1.436c0 .446-.046.607-.134.77a.9.9 0 0 1-.378.378c-.163.088-.324.134-.77.134h-1.436c-.446 0-.607-.046-.77-.134a.9.9 0 0 1-.378-.378c-.088-.163-.134-.324-.134-.77v-1.436c0-.446.046-.607.134-.77a.9.9 0 0 1 .378-.378c.163-.088.324-.134.77-.134zm-20-8c.445 0 .607.046.77.134a.9.9 0 0 1 .377.378c.088.162.134.324.134.77v1.436c0 .446-.046.607-.134.77a.9.9 0 0 1-.378.378c-.162.088-.324.134-.77.134h-1.436c-.446 0-.608-.046-.77-.134a.9.9 0 0 1-.378-.378c-.088-.163-.134-.324-.134-.77v-1.436c0-.446.046-.608.134-.77a.9.9 0 0 1 .378-.378c.162-.088.324-.134.77-.134h1.436zm20 0c.445 0 .606.046.77.134a.9.9 0 0 1 .377.378c.088.162.134.324.134.77v1.436c0 .446-.046.607-.134.77a.9.9 0 0 1-.378.378c-.163.088-.324.134-.77.134h-1.436c-.446 0-.607-.046-.77-.134a.9.9 0 0 1-.378-.378c-.088-.163-.134-.324-.134-.77v-1.436c0-.446.046-.608.134-.77a.9.9 0 0 1 .378-.378c.163-.088.324-.134.77-.134zm-20-8c.445 0 .607.046.77.134a.9.9 0 0 1 .377.378c.088.162.134.324.134.77v1.436c0 .446-.046.608-.134.77a.9.9 0 0 1-.378.378c-.162.088-.324.134-.77.134h-1.436c-.446 0-.608-.046-.77-.134a.9.9 0 0 1-.378-.378c-.088-.162-.134-.324-.134-.77v-1.436c0-.446.046-.608.134-.77a.9.9 0 0 1 .378-.378c.162-.088.324-.134.77-.134h1.436zm20 0c.445 0 .606.046.77.134a.9.9 0 0 1 .377.378c.088.162.134.324.134.77v1.436c0 .446-.046.608-.134.77a.9.9 0 0 1-.378.378c-.163.088-.324.134-.77.134h-1.436c-.446 0-.607-.046-.77-.134a.9.9 0 0 1-.378-.378c-.088-.162-.134-.324-.134-.77v-1.436c0-.446.046-.608.134-.77a.9.9 0 0 1 .378-.378c.163-.088.324-.134.77-.134zm-20-8c.445 0 .607.046.77.134a.9.9 0 0 1 .377.378c.088.162.134.324.134.77v1.436c0 .446-.046.608-.134.77a.9.9 0 0 1-.378.378c-.162.088-.324.134-.77.134h-1.436c-.446 0-.608-.046-.77-.134a.9.9 0 0 1-.378-.378c-.088-.162-.134-.324-.134-.77v-1.436c0-.446.046-.607.134-.77a.9.9 0 0 1 .378-.378c.162-.088.324-.134.77-.134h1.436zm20 0c.445 0 .606.046.77.134a.9.9 0 0 1 .377.378c.088.162.134.324.134.77v1.436c0 .446-.046.608-.134.77a.9.9 0 0 1-.378.378c-.163.088-.324.134-.77.134h-1.436c-.446 0-.607-.046-.77-.134a.9.9 0 0 1-.378-.378c-.088-.162-.134-.324-.134-.77v-1.436c0-.446.046-.607.134-.77a.9.9 0 0 1 .378-.378c.163-.088.324-.134.77-.134z"></path></svg>');function Xm(t,e){let i=Me(e,["$$slots","$$events","$$legacy","children"]);var o=s5();Ie(o,()=>({xmlns:"http://www.w3.org/2000/svg",width:"57",height:"60",fill:"none","aria-hidden":"true","data-testid":"stub-icon",role:"img",...i}));var n=_(o);be(n,()=>{var r;return(r=e.children)!=null?r:oe}),Ce(),g(o),b(t,o)}function Jm(t,e){let i=m(e,"isWhite",3,!1),o=h(()=>i()?"color: #fff;":"color: #909499;");Xm(t,{get style(){return s(o)}})}var a5=M('<div class="title svelte-1y9fytq"> </div>'),l5=M('<div class="playerStub svelte-1y9fytq"><!> <!></div>'),d5={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 ev(t,e){z(t,d5);var i=l5(),o=_(i);{var n=d=>{var a=a5(),p=_(a,!0);g(a),O(()=>he(p,e.title)),b(d,a)};L(o,d=>{e.title&&d(n)})}var r=P(o,2);{var l=d=>{let a=h(()=>!!e.thumbUrl);Jm(d,{get isWhite(){return s(a)}})};L(r,d=>{(!e.title||!e.thumbUrl)&&d(l)})}g(i),O(()=>st(i,e.thumbUrl?`background-image: url('${e.thumbUrl}')`:"")),b(t,i)}var c5=M('<div class="playerError svelte-m5iv29"><!></div>'),u5={hash:"svelte-m5iv29",code:".playerError.svelte-m5iv29 {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;}"};function tv(t){z(t,u5);var e=c5(),i=_(e);wa(i,{}),g(e),b(t,e)}import{now as B5,ValueSubject as O5}from"@vkontakte/videoplayer-shared/es2018";import{cloneDeepWith as D5,InterfaceLanguage as H5,isNonNullable as av,Logger as F5,Observable as U5,Subscription as e0,once as z5,InternalsExposure as W5,skip as q5}from"@vkontakte/videoplayer-shared/es2018";import{clientChecker as t0,isMobile as K5}from"@vkontakte/videoplayer-core/es2018";import{OneStat as Q5,ThinOneStat as G5,MediascopePixel as Y5}from"@vkontakte/videoplayer-statistics/es2018";import{Logger as p5,Subscription as f5}from"@vkontakte/videoplayer-shared/es2018";var Cu=class{constructor(){this.subscription=new f5,this.logger=new p5,this.log=this.logger.createComponentLog("MediaSessionApi")}isSupported(){return"mediaSession"in navigator}setMetaData({title:e,artist:i="",thumbUrl:o=""}){this.isSupported()&&(navigator.mediaSession.metadata=new MediaMetadata({title:e,artist:i,artwork:[{src:o,sizes:"96x96",type:"image/png"},{src:o,sizes:"128x128",type:"image/png"},{src:o,sizes:"192x192",type:"image/png"},{src:o,sizes:"256x256",type:"image/png"},{src:o,sizes:"384x384",type:"image/png"},{src:o,sizes:"512x512",type:"image/png"}]}))}updateActionHandlers(e){this.resetActionHandlers(),this.setActionHandlers(e)}resetActionHandlers(){let e=[["play",null],["pause",null],["stop",null],["nexttrack",null],["previoustrack",null],["seekto",null],["seekbackward",null],["seekforward",null]];this.setActionHandlers(e)}setActionHandlers(e){var i,o;if(this.isSupported())for(let[n,r]of e)try{(o=(i=navigator.mediaSession).setActionHandler)==null||o.call(i,n,r)}catch(l){throw new Error(`The media session action "${n}" is not supported yet.`)}}attachToStore(e){!this.isSupported()||!e||(this.clearSubscriptions(),this.subscription.add(e.state.positionExact$.subscribe(i=>{var r,l;let o=$e(e.state.currentPlaybackRate$),n=$e(e.state.duration$);if(!(!isFinite(i)||!isFinite(n)))try{(l=(r=navigator.mediaSession).setPositionState)==null||l.call(r,{position:i,playbackRate:o,duration:n})}catch(d){this.log({message:`MediaSession setPositionState can't call with position: ${i} and duration: ${n}`})}})))}clearSubscriptions(){this.subscription.unsubscribe()}destroy(){this.resetActionHandlers(),this.clearSubscriptions()}};import{ValueSubject as nv,detectEmbed as b5}from"@vkontakte/videoplayer-shared/es2018";var m5=Se('<svg><!><g fill="var(--btn-color, #fff)"><path d="m30.744 4 .744.005c2.981.046 4.526.385 6.127 1.24a8.77 8.77 0 0 1 3.475 3.347l.174.312.15.292c.772 1.553 1.066 3.18 1.085 6.251v9.045a1.5 1.5 0 0 1-3 .016l-.008-9.651c-.04-2.032-.228-3.12-.627-4.035l-.126-.27-.13-.252A5.77 5.77 0 0 0 36.2 7.891c-1.187-.635-2.339-.873-5.115-.89L22.255 7c-2.737 0-4.003.2-5.071.698l-.133.064-.251.13a5.77 5.77 0 0 0-2.409 2.408c-.635 1.187-.873 2.339-.89 5.114l-.001 20.83c0 2.738.2 4.004.698 5.072l.064.133.13.251a5.77 5.77 0 0 0 2.408 2.409c1.1.588 2.134.825 4.438.88l.323.006 3.695.005H26a1.5 1.5 0 0 1 0 3h-.756l-3.718-.005c-2.989-.047-4.526-.377-6.14-1.24a8.77 8.77 0 0 1-3.476-3.347l-.174-.312-.15-.292c-.731-1.472-1.036-3.016-1.08-5.803l-.006-.756v-20.49l.005-.743c.046-2.981.385-4.526 1.24-6.127a8.77 8.77 0 0 1 3.347-3.475l.312-.174.292-.15c1.472-.731 3.016-1.036 5.803-1.08L22.256 4z"></path><path d="M30.5 33.8c0-1.68 0-2.52.327-3.162a3 3 0 0 1 1.311-1.311C32.78 29 33.62 29 35.3 29h6.4c1.68 0 2.52 0 3.162.327a3 3 0 0 1 1.311 1.311c.327.642.327 1.482.327 3.162v13.4c0 1.68 0 2.52-.327 3.162a3 3 0 0 1-1.311 1.311C44.22 52 43.38 52 41.7 52h-6.4c-1.68 0-2.52 0-3.162-.327a3 3 0 0 1-1.311-1.311C30.5 49.72 30.5 48.88 30.5 47.2z"></path></g></svg>');function iv(t,e){let i=Me(e,["$$slots","$$events","$$legacy","children"]);var o=m5();Ie(o,()=>({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}));var n=_(o);be(n,()=>{var r;return(r=e.children)!=null?r:oe}),Ce(),g(o),b(t,o)}var v5=M('<div><div><!></div> <span class="title svelte-1pbsod4"> </span></div>'),g5={hash:"svelte-1pbsod4",code:".player-pip-dummy.svelte-1pbsod4 {width:100%;height:100%;background-color:#19191A;display:flex;flex-direction:column;justify-content:center;align-items:center;font-family:-apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;}.player-pip-dummy.is-pip-api.svelte-1pbsod4 {position:relative;}.dummy-image.svelte-1pbsod4 svg {transform:scale(1.07143);}.dummy-image.desktop.svelte-1pbsod4 {transform:scale(1.07143) rotate(-90deg) rotateY(180deg);}.title.svelte-1pbsod4 {font-size:16px;color:#fff;padding:18px 20px 10px;text-align:center;}"};function ov(t,e){D(e,!0),z(t,g5);let[i,o]=De(),n=()=>C(p,"$interfaceLanguage$",i),r=()=>C(f,"$isMobile$",i),l=Ee(),d=Ft(),a=!!l.webApi.pictureInPictureApi,p=l.interfaceLanguage$,f=l.ui.isMobile,v=l.ui.t,u=h(()=>n()&&v("pip_dummy_title")),$=wu(d.view);var w=v5();let y;var S=_(w);let T;var k=_(S);iv(k,{}),g(S);var A=P(S,2),I=_(A,!0);g(A),g(w),O((E,V)=>{y=J(w,1,"player-pip-dummy svelte-1pbsod4",null,y,E),st(w,$),T=J(S,1,"dummy-image svelte-1pbsod4",null,T,V),he(I,s(u))},[()=>({"is-pip-api":a}),()=>({desktop:!r()})]),b(t,w),H(),o()}var h5=Object.defineProperty,_5=(t,e,i)=>e in t?h5(t,e,{enumerable:!0,configurable:!0,writable:!0,value:i}):t[e]=i,ml=(t,e,i)=>_5(t,typeof e!="symbol"?e+"":e,i),$5=460,y5=280,Od=class{constructor({enabled:e=!0}={enabled:!0}){ml(this,"playerDomElement"),ml(this,"playerParentShadowRoot"),ml(this,"playerDummyElement"),ml(this,"svelteContext"),ml(this,"pipWindow"),ml(this,"info",{isActive$:new nv(!1),isEnabled$:new nv(!1),type:1}),this.info.isEnabled$=new nv(e)}isSupported(){let{isEmbed:e}=b5();return"documentPictureInPicture"in window&&!e}isActive(){return this.info.isActive$.getValue()}setPlayerDomElement(e,i){this.playerDomElement=e,this.playerParentShadowRoot=i}setContext(e){this.svelteContext=e}async request(){var e,i;if(!this.isSupported()||!this.playerDomElement||!this.playerParentShadowRoot)return;this.pipWindow=await documentPictureInPicture.requestWindow({width:$5,height:y5,copyStyleSheets:!0}),this.pipWindow.document.body.style.margin="0";let o=[...this.playerParentShadowRoot.styleSheets].map(a=>[...a.cssRules].map(p=>p.cssText).join(" ")).filter(Boolean).join(`
391
- `),n=document.createElement("style");n.textContent=o;let r=this.createStretchedContainer(),l=r.attachShadow({mode:"open"});l.append(n),l.append(this.playerDomElement);let d={target:this.playerParentShadowRoot,context:this.svelteContext};this.playerDummyElement=Jr(ov,d),(e=this.pipWindow)==null||e.document.body.append(r),this.info.isActive$.next(!0),(i=this.pipWindow)==null||i.addEventListener("unload",a=>{!this.playerDomElement||!this.playerParentShadowRoot||!this.playerDummyElement||(ta(this.playerDummyElement),this.playerParentShadowRoot.append(this.playerDomElement),this.info.isActive$.next(!1),this.pipWindow=void 0)})}async exit(){return new Promise(e=>{var i;this.pipWindow&&((i=documentPictureInPicture.window)==null||i.close()),e()})}async dispose(){await this.exit()}setEnabled(e){this.info.isEnabled$.next(e)}createStretchedContainer(){let e=document.createElement("div");return e.style.position="absolute",e.style.top="0",e.style.left="0",e.style.width="100%",e.style.height="100%",e}};function Q1(t){return t instanceof Od}var Su=class{static getLatestSupportedVersion(e){let i=new la(e),o=new Od(e);if(o.isSupported())return o;if(i.isSupported())return i}};function Dd(t,e){var n,r;let i=new Set([...Object.keys(t),...Object.keys(e)]),o={};for(let l of i)o[l]=(r=(n=e[l])!=null?n:t[l])!=null?r:void 0;return o}var G1="Inner error. Unexpectedly root annotation container null reference exception",Y1="Annotation with such name already exists",j1="Annotation with such name does not exist";var vl=class extends Error{constructor(e){super(e),this.name="AnnotationError"}};import{observeElementSize as x5,Subscription as w5,throttleFn as C5}from"@vkontakte/videoplayer-shared/es2018";var S5="1",T5=100,Tu=class{constructor(e){this.annotationsInside=e;this.annotations=new Map;this.subscriptions=new w5}init(e){if(this.rootAnnotationsContainer=e,this.annotationsInside)return;let i=C5(()=>{for(let o of this.annotations.values())this.isElementExceedsBoundaries(o,this.playerSize.width,this.playerSize.height)?o.style.visibility="hidden":o.style.visibility="visible"},T5);this.subscriptions.add(x5(this.rootAnnotationsContainer).subscribe(({width:o,height:n})=>{this.playerSize={width:o,height:n},i()})),this.mutationObserver=new MutationObserver(i),this.mutationObserver.observe(this.rootAnnotationsContainer,{attributes:!0,childList:!0,subtree:!0,characterData:!0})}add(e,i){var o;if(!this.rootAnnotationsContainer)throw new vl(G1);if(this.annotations.has(e))throw new vl(Y1);i.style.zIndex=(o=i.style.zIndex)!=null?o:S5,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 vl(j1);return i}remove(e){let i=this.get(e);this.annotations.delete(e)&&i.remove()}clear(){for(let e in this.annotations.keys())this.remove(e)}destroy(){var e;this.annotations.clear(),this.subscriptions.unsubscribe(),(e=this.mutationObserver)==null||e.disconnect(),this.rootAnnotationsContainer=null}isElementExceedsBoundaries(e,i,o){let n=e.offsetTop,r=e.offsetLeft,l=e.offsetWidth,d=e.offsetHeight;return n<0||r<0||r+l>i||n+d>o}registryRootContainer(e){}addLayer(e){return document.createElement("div")}getLayer(e){}removeLayer(e){}clearLayer(e){}detach(){}reattach(){}};import{assertNonNullable as Eu,Subscription as E5}from"@vkontakte/videoplayer-shared/es2018";var Qo=class{init({store:e,microStores:i,interactiveController:o,config:n}){return Eu(e),Eu(i),Eu(n),n.interactiveData&&Eu(o),this.subscription=new E5,this.subscription}};var Hd=class extends Qo{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(r=>{this.state$.set(r?!0:null)})),o}};var Fd=class extends Qo{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:r}=i,{fakeIsPlaying$:l}=n,{isInteractiveExpectation$:d,isPlaying$:a}=r.state,{controlsVisible:p,isMobile:f}=r.ui,v=$e(f),u=()=>v&&$e(p);return o.add(p.subscribe($=>{if(!v)return;let w=$e(l);$e(a)?this.state$.set($):w!==null&&this.state$.set(!w||$)})),o.add(a.subscribe($=>{this.state$.set(!$||u())})),o.add(l.subscribe($=>{if($===null)return;let w=$e(d);if(u()){this.state$.set(!0);return}w&&this.state$.set(!$)})),o}};var Ud=class extends Qo{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(r=>{r.length&&(r.every(l=>l.completed)?this.state$.set("tooltip_interactive_of_chapter_completed"):this.state$.set("tooltip_disabled_when_interactive"))})),o}};import{combine as I5}from"@vkontakte/videoplayer-shared/es2018";var rv=re(!1),Iu=null,zd=class extends Qo{constructor(){super(...arguments);this.stateName="showInteractiveTimeIndicatorTooltip$";this.state$={...rv,set:(i,o=!1)=>{i!==$e(rv)&&(this.clearTimeout(),rv.set(i),!i&&Iu&&(Iu=!1),i&&o&&(this.timeout=setTimeout(()=>{this.state$.set(!1)},3e3)))},clearTimeout:()=>this.clearTimeout()}}init(i){let o=super.init(i),{store:n,config:r}=i,{isInteractiveTime$:l,isPlaying$:d}=n.state,a=n.ui.controlsVisible,{interactiveTimeIndicator:p}=n.ui.controls;o.add(a.subscribe(v=>{$e(l)&&v&&this.state$.set(!1)}));let f=(r==null?void 0:r.interactiveData)||{tooltipHelpHintActive:!1};return o.add(I5({isPlaying$:d,isInteractiveTime$:l,interactiveTimeIndicator:p}).subscribe(({isPlaying$:v,isInteractiveTime$:u,interactiveTimeIndicator:$})=>{var w,y;if(!(!v||!($!=null&&$.isDisplayed))){if(!u)return this.state$.set(!1);f.tooltipHelpHintActive&&Iu===null&&(Iu=!0,f.tooltipHelpHintActive=!1,this.state$.set(!0),(y=(w=n.callbacks)==null?void 0:w.onInteractiveTimeIndicatorHintDeactivated)==null||y.call(w))}})),o}clearTimeout(){window.clearTimeout(this.timeout)}};import{combine as k5,noop as P5}from"@vkontakte/videoplayer-shared/es2018";var Wd=class extends Qo{constructor(){super(...arguments);this.stateName="graphIsOpened$";this.graphMadePause=!1;this.state$={...re(null),toggle:P5};this.checkIfShouldHide=i=>Ns(i,"s")}init(i){let o=super.init(i),{store:n,interactiveController:r}=i,l=n.ui.currentGridType$,d=n.getLogger().createComponentLog("GraphIsOpened microStore");return this.state$.toggle=async()=>{if(this.checkIfShouldHide($e(l)))return;let a=$e(this.state$),{isEnded$:p,playbackState$:f}=n.state,{disabledControls$:v}=n.ui.controls,u=$e(p),$=$e(f);if(a)try{await(r==null?void 0:r.toggleGraphView(!1)),this.state$.set(!1),v.remove(Ap),!u&&this.graphMadePause&&n.actions.internal.play()}catch(w){d({message:"Cant hide graph"})}else{this.graphMadePause=$==="playing";try{await(r==null?void 0:r.toggleGraphView(!0)),this.state$.set(!0),v.add(Ap),!u&&this.graphMadePause&&n.actions.internal.pause()}catch(w){d({message:"Cant show graph"})}}},o.add(k5({graphIsOpened:this.state$,currentGridType:l}).subscribe(async({graphIsOpened:a,currentGridType:p})=>{if(this.checkIfShouldHide(p)&&a)try{await(r==null?void 0:r.toggleGraphView(!1)),this.state$.set(!1)}catch(v){d({message:"Cant hide graph"})}})),o}};import{ValueSubject as Z1}from"@vkontakte/videoplayer-shared/es2018";var qd=class extends Qo{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$:r,isEnabled$:l,type:d}}=n.webApi.pictureInPictureApi||{info:{isActive$:new Z1(!1),isEnabled$:new Z1(!1)}};return o.add(r.subscribe(a=>{this.state$.isActive$.set(a)})),o.add(l.subscribe(a=>{this.state$.isEnabled$.set(a)})),this.state$.type$.set(d),o}};import{filter as L5,filterChanged as V5}from"@vkontakte/videoplayer-shared/es2018";import{safeStorage as sv}from"@vkontakte/videoplayer-shared/es2018";var X1=({maxShowCount:t,timeout:e})=>{let i=[t!==0?A5({maxCount:t}):void 0,e!==0?M5({timeout:e}):void 0].filter(o=>!!o);return{notificationShowed:o=>i.forEach(n=>n.notificationShowed(o)),canShowNotification:o=>i.every(n=>n.canShowNotification(o))}},A5=({maxCount:t})=>{let e={};return{notificationShowed:i=>{var o,n;e[i]=((o=e[i])!=null?o:0)+1,sv.set("videoplayer_notifications_manager_count",JSON.stringify((n=e[i])!=null?n:0))},canShowNotification:i=>{var o;return((o=e[i])!=null?o:0)<t}}},M5=({timeout:t})=>{let e="videoplayer_notifications_manager",i=()=>{try{return JSON.parse(sv.get(e)||"{}")}catch(r){return{}}},o=r=>sv.set(e,JSON.stringify(r)),n=r=>{let l=i();delete l[r],o(l)};return{notificationShowed:r=>{o({...i(),[r]:{timeout:t,launchTime:Date.now()}})},canShowNotification:r=>{let l=i()[r];if(l){let d=Date.now()-l.launchTime>t;return d&&n(r),d}else return!0}}};var Kd=class extends Qo{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:r,timeoutShowSlowVideoNotification:l,showSlowVideoNotification:d,forceAutoQualityWhenSevereStallHappens:a}}}=i;this.notificationManager=X1({maxShowCount:r,timeout:l});let p=n.getPlayer();return o.add(p.events.severeStallOccured$.pipe(V5(),L5(f=>f)).subscribe(()=>{d&&!p.info.isAutoQualityEnabled$.getValue()&&this.notificationManager.canShowNotification("slow_video")&&(a&&n.actions.internal.setQuality("auto"),this.state$.showNotification("slow_video"))})),o}};var J1=()=>[Hd,Fd,Ud,zd,Wd,qd,Kd].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 Qd}from"@vkontakte/videoplayer-shared/es2018";var ku=class{constructor(e){this.shadowRoot=e;this.lastFocusedNode=null;this.init=()=>{this.shadowRoot.addEventListener("focusin",this.handleFocusChange)};this.handleFocusChange=()=>{this.lastFocusedNode=this.shadowRoot.activeElement};this.restoreFocus=()=>{var e;(e=this.lastFocusedNode)==null||e.focus()};this.init()}destroy(){this.shadowRoot.removeEventListener("focusin",this.handleFocusChange)}};var R5=Object.defineProperty,N5=(t,e,i)=>e in t?R5(t,e,{enumerable:!0,configurable:!0,writable:!0,value:i}):t[e]=i,Gt=(t,e,i)=>N5(t,typeof e!="symbol"?e+"":e,i),j5={preload:!0,autoplay:!1,repeat:!1,fromTime:0,canRewindLive:!0,showAds:!1,interfaceLanguage:H5.RU,isCyrillicRelatedInterface:!0,logoClickable:!1,logoHidden:!1,isTouch:K5(),isMediaSessionEnabled:!0,isPictureInPictureEnabled:!0,isAudioDisabled:!1,callbacks:{uiInfo:{}},tuningConfig:{configName:[]},saveRate:!0,volumeMultiplier:1,showEndScreen:!0,showAutoplayNext:!0,showNextPrevButtons:!0},An=j(void 0),Pu=class extends HTMLElement{constructor(){super(),Gt(this,"svelteStubComponent"),Gt(this,"svelteRootComponent"),Gt(this,"svelteErrorComponent"),Gt(this,"store"),Gt(this,"microStoresRoot"),Gt(this,"statistics"),Gt(this,"sentry"),Gt(this,"_shadowRoot"),Gt(this,"playerContainer"),Gt(this,"rootContainer"),Gt(this,"shadowRootContainer"),Gt(this,"uiConfig"),Gt(this,"coreConfig"),Gt(this,"statisticsConfig"),Gt(this,"interactiveController"),Gt(this,"interactiveContainer"),Gt(this,"graphMadePause"),Gt(this,"currentPlayingVideoIndex",0),Gt(this,"needToRepeatPlaylist",!1),Gt(this,"videoConfig"),Gt(this,"pictureInPictureApi"),Gt(this,"mediaSessionApi"),Gt(this,"unsubscribePlayerPhaseSubscription"),Gt(this,"logger"),Gt(this,"log"),Gt(this,"subscription"),Gt(this,"interactiveSubscription"),Gt(this,"annotationsApi"),Gt(this,"slotsApi"),Gt(this,"focusManager"),Gt(this,"prevIsid"),Gt(this,"isInited",!1),Gt(this,"internalsExposure",null),Gt(this,"shadowDOMCallbacksDisabled",!1),Gt(this,"fatalError$",new O5(null)),Gt(this,"createOneStat",(e,i={})=>{var o,n,r,l;if(!this.videoConfig)return;let{albumId:d,statPlace:a,statUserSalt:p,statTrackCode:f,statVKAppId:v,refreshStatAuthToken:u,autoplay:$,isMobile:w,isTouch:y,refDomain:S,deviceId:T,interactiveData:k}=Dd(this.videoConfig,i),A=(o=k==null?void 0:k.projectInfo)==null?void 0:o.pid,I=(r=(n=this.interactiveController)==null?void 0:n.state.isReplay$.getValue())!=null?r:!1;I&&(this.prevIsid=void 0);let{unitedVideoId:E,isClip:V=!1}=e;if(this.uiConfig.features.statistics&&E)try{return new Q5({movieId:E,albumId:d,place:a,trackCode:f,vkAppId:v,autoplay:(l=$&&!this.interactiveController)!=null?l:!1,mobile:y!=null?y:w,clip:V,refDomain:S,deviceId:T,...A&&(!this.isInited||I)&&{projectId:Number(A)}},{refreshAuthToken:u,userSalt:p,config:this.statisticsConfig,...this.interactiveController&&{useIsid:!0,isid:this.prevIsid}})}catch(W){console.error(W),this.log({message:W.message})}}),Qd.create("ui"),this.logger=new F5,this.log=this.logger.createComponentLog("VKVideoPlayer"),this.subscription=new e0,this.interactiveSubscription=new e0,this.graphMadePause=!1,this.fatalError$.subscribe(e=>{this.unmountComponent(this.svelteErrorComponent),e&&(this.unmountComponent(this.svelteStubComponent),this.unmountComponent(this.svelteRootComponent),this.svelteErrorComponent=Jr(tv,{target:this.playerContainer}))})}connectedCallback(){var e,i;if(this.rootContainer)return;this.initPlayerRootContainers();let o=(e=this.getAttribute("stub-title"))!=null?e:void 0,n=(i=this.getAttribute("stub-thumb-url"))!=null?i:void 0,r=oi({title:o,thumbUrl:n}),l={target:this.playerContainer,props:r};this.svelteStubComponent=Jr(ev,l)}disconnectedCallback(){var e,i,o,n,r,l,d;this.shadowDOMCallbacksDisabled||((e=this.annotationsApi)==null||e.destroy(),(i=this.slotsApi)==null||i.destroy(),(o=this.focusManager)==null||o.destroy(),(n=this.mediaSessionApi)==null||n.destroy(),this.unmountComponent(this.svelteRootComponent),this.unmountComponent(this.svelteStubComponent),this.unmountComponent(this.svelteErrorComponent),this.subscription.unsubscribe(),(r=this.unsubscribePlayerPhaseSubscription)==null||r.call(this),(l=this.interactiveController)==null||l.destroy(),this.interactiveSubscription.unsubscribe(),(d=this.internalsExposure)==null||d.destroy(),Qd.destroy("ui"))}initPlayerRootContainers(){this.rootContainer=document.createElement("div"),this.rootContainer.style.position="relative",this.rootContainer.className="root-container",this.rootContainer.style.width="100%",this.rootContainer.style.height="100%",this.rootContainer.style.minHeight="206px",this.shadowRootContainer=document.createElement("div"),this.shadowRootContainer.style.position="absolute",this.shadowRootContainer.className="shadow-root-container",this.shadowRootContainer.style.width="100%",this.shadowRootContainer.style.height="100%",this._shadowRoot=this.shadowRootContainer.attachShadow({mode:"open"}),this.playerContainer=document.createElement("div"),this.playerContainer.style.all="initial",this.playerContainer.style.display="block",this.playerContainer.style.contain="strict",this.playerContainer.style.width="100%",this.playerContainer.style.height="100%",this._shadowRoot.append(this.playerContainer),this.rootContainer.append(this.shadowRootContainer),this.append(this.rootContainer)}needToShowNextPrevButtons(){return this.videoConfig?this.videoConfig.videos.length>1&&this.videoConfig.showNextPrevButtons:!1}isNextButtonActive(){return this.videoConfig?this.needToShowNextPrevButtons()&&(this.currentPlayingVideoIndex<this.videoConfig.videos.length-1||this.needToRepeatPlaylist):!1}isPrevButtonActive(){return this.videoConfig?this.needToShowNextPrevButtons()&&(this.currentPlayingVideoIndex>0||this.needToRepeatPlaylist):!1}isControlDisabled(e){var i;let o=(i=this.store)==null?void 0:i.ui.controls.disabledControls$;return(o==null?void 0:o.includes(e))||!1}getNextVideoInfo(){if(!this.videoConfig)return{nextVideoTitle:void 0,nextVideoThumb:void 0};let e=this.videoConfig.videos[this.currentPlayingVideoIndex+1]||{};return{nextVideoTitle:e.title,nextVideoThumb:e.thumbUrl}}createThinOneStat(e,i={}){if(!this.videoConfig)return;let{deviceId:o,preload:n,refreshStatAuthToken:r}=Dd(this.videoConfig,i),{unitedVideoId:l}=e;if(this.uiConfig.features.thinStatistics&&l)return new G5.ThinOneStat({deviceId:o,movieId:l,preload:n},{config:this.statisticsConfig,refreshAuthToken:r})}createPlayer(e,i={},o){var n,r,l,d,a,p,f,v,u,$;if(!this.videoConfig)return;let{albumId:w,statPlace:y,statAuthToken:S,preload:T,autoplay:k,volume:A,muted:I,fromTime:E,canRewindLive:V,supportLink:K,showAds:W,adsSlotId:U,adsParams:Y={},adsPreviewParam:ne,adsAutoplayParam:G,interfaceLanguage:ce,isCyrillicRelatedInterface:le,logoClickable:we,logoHidden:Ve,isMobile:ve,isTouch:ae,isAudioDisabled:Le,isLiveCatchUpMode:te,fullScreenTarget:N,failoverHosts:Be,canDownload:ye,callbacks:ge,interactiveData:de,showThumbTimer:ue,additionalButtons:xe=[],additionalSettingsMenuItems:Z=[],additionalContextMenuItems:qe=[],repeat:Xe,saveRate:ke,volumeMultiplier:X,showEndScreen:Te,showAutoplayNext:Ke,mediascopePixels:rt}=Dd(this.videoConfig,i),{sources:ct,title:ht,thumbUrl:xt,unitedVideoId:Qe,isClip:qt=!1,duration:Yt,adsParams:Qt={},videoEpisodes:Nt,previewThumbsData:ee,subtitles:At,live:me}=e;if(!ct&&!me){let ii=new Error("empty sources and live");this.fatalError$.next(ii),(n=ge.onCrashed)==null||n.call(ge,ii.message);return}let _e={...Y,...Qt},se=this.getNextVideoInfo(),Oe={sources:ct,title:ht,thumbUrl:xt,subtitles:At,unitedVideoId:Qe,isClip:qt,live:me,albumId:w,statPlace:y,autoplay:k,muted:I,volume:A,fromTime:E,canRewindLive:V,showAds:W,adsSlotId:U,adsParams:_e,adsPreviewParam:ne,adsAutoplayParam:G,duration:Yt,logoClickable:we,logoHidden:Ve,isTouch:ae!=null?ae:ve,repeat:Xe,showNextPrevButtons:this.needToShowNextPrevButtons(),nextButtonActive:this.isNextButtonActive(),prevButtonActive:this.isPrevButtonActive(),endScreenVideoTitle:se.nextVideoTitle,endScreenVideoThumb:se.nextVideoThumb,isOneVideoPlaylist:this.isOneVideoPlaylist()},ze={pictureInPictureApi:this.pictureInPictureApi,annotationsApi:this.annotationsApi,slotsApi:this.slotsApi};this.log({message:`create player, props: ${JSON.stringify(Oe)}`});let Ae=(r=this.interactiveController)==null?void 0:r.state.statistics$.getValue(),Ye=(Ae==null?void 0:Ae.oneStat)||this.createOneStat(e,i),Re=this.createThinOneStat(e,i),tt;rt&&(tt=new Y5({pixels:rt})),(Ye||Re)&&(this.statistics=new au(Ye,Re,tt,Ae==null?void 0:Ae.statSubscription)),this.uiConfig.features.sentry&&this.uiConfig.sentry.dsn&&new aa(this.uiConfig.sentry,{version:tl,env:Mc},{movieId:Qe,albumId:w,place:y,autoplay:(l=k&&!this.interactiveController)!=null?l:!1,mobile:ae!=null?ae:ve,clip:qt}),this.interactiveController&&((p=this.prevIsid)!=null||(this.prevIsid=(a=(d=this.statistics)==null?void 0:d.oneStat)==null?void 0:a.isid$.getValue())),this.sentry={...this.sentry,...aa.getInstance()};let Mt=!!de,Je=[],ni="tooltip_interactive_go_back_disabled_first";if(Mt&&this.interactiveController){let ii=this.interactiveController.state.isInitialChapter$.getValue(),ci=this.interactiveController.getHistoryState();ii&&Je.push("REPLAY_BUTTON"),this.interactiveController.getIsSeekable().getValue()||Je.push("SEEK_TO_INTERACTIVE_BUTTON"),ci.hasPrevChapter$.getValue()||(Je.push("PLAY_PREV_CHAPTER_BUTTON"),ii||(ci.isGoBackLimited$.getValue()?ni="tooltip_interactive_go_back_disabled_limit":ni="tooltip_interactive_go_back_disabled"))}let pi=()=>{var ii;this.isInited=!1,this.prevIsid=void 0;let ci=(o==null?void 0:o.info.isEnded$.getValue())&&((ii=this.interactiveController)==null?void 0:ii.state.isEndChapter$.getValue());ge.onReplayInteractiveVideo&&!ci?ge.onReplayInteractiveVideo():this.replayInteractiveVideo()};this.store=m1({player:o,interfaceLanguage:ce,isCyrillicRelatedInterface:le,videoId:Qe,isClip:qt,isLiveCatchUpMode:te,isAudioDisabled:Le,statAuthToken:S,callbacks:ge,webApi:ze,videoEpisodes:Nt,previewThumbsData:ee,canDownload:ye,uiConfig:this.uiConfig,coreConfig:this.coreConfig,disabledControls:Je,isInteractive:Mt,saveRate:ke,interactiveRanges$:(f=this.interactiveController)==null?void 0:f.state.interactiveRanges$,isInteractiveTime$:(v=this.interactiveController)==null?void 0:v.state.isInteractiveTime$,stopPlayer:()=>this.stop(),replayInteractive:pi,playPrevChapterDisabledTooltip:ni,hasInteractiveBranches:!!(($=(u=this.interactiveController)==null?void 0:u.getChapterBranches())!=null&&$.length),additionalButtons:this.uiConfig.features.additionalButtons?xe:[],additionalSettingsMenuItems:Z!=null?Z:[],additionalContextMenuItems:qe!=null?qe:[],playPrevVideo:()=>this.playPrevVideo(),playNextVideo:()=>this.playNextVideo(),looped:Xe&&this.videoConfig.videos.length===1,statistics:this.statistics,internalsExposure:this.internalsExposure,playerView:this.videoConfig.playerView});let{stores:at}=this.microStoresRoot=J1(),ei=()=>{var ii,ci,xo,uo,jt,wi;if(!this.store||!this.microStoresRoot||!this.videoConfig)return;this.subscription.add(this.store.state.currentFormat$.subscribe($t=>{var gt;return(gt=ge==null?void 0:ge.onCurrentFormatChanged)==null?void 0:gt.call(ge,$t)})),this.subscription.add(at.interactiveControlsOpacity$.subscribe($t=>{var gt;$t!==null&&((gt=this==null?void 0:this.interactiveController)==null||gt.setDisabledControls($t))})),this.subscription.add(this.store.state.throughputEstimation$.subscribe($t=>{var gt;return(gt=ge==null?void 0:ge.onThroughputEstimationChanged)==null?void 0:gt.call(ge,$t)})),this.subscription.add(this.store.state.trafficSavingEnabled$.subscribe($t=>{var gt;return(gt=ge==null?void 0:ge.onTrafficSavingEnabledChanged)==null?void 0:gt.call(ge,$t)})),this.subscription.add(new U5($t=>{this.store&&this.subscription.add(this.store.state.currentPlaybackRate$.subscribe(gt=>$t.next(gt)))}).pipe(this.uiConfig.features.skipInitialPlaybackRateValue?q5(1):$t=>$t).subscribe($t=>{var gt;return(gt=ge==null?void 0:ge.onCurrentPlaybackRateChanged)==null?void 0:gt.call(ge,$t)})),this.subscription.add(this.store.state.volume$.subscribe($t=>{var gt;return(gt=ge==null?void 0:ge.onVolumeChange)==null?void 0:gt.call(ge,$t)})),this.subscription.add(this.store.state.muted$.subscribe($t=>{var gt,Ci,Vo,q;if($t)(gt=ge==null?void 0:ge.onMute)==null||gt.call(ge);else{let Bt=(Vo=((Ci=this.store)==null?void 0:Ci.state.volume$)&&$e(this.store.state.volume$))!=null?Vo:0;(q=ge==null?void 0:ge.onUnmute)==null||q.call(ge,Bt)}})),this.subscription.add(this.store.state.videoBitrate$.subscribe($t=>{var gt;return(gt=ge==null?void 0:ge.onVideoBitrateChanged)==null?void 0:gt.call(ge,$t)})),this.subscription.add(this.store.state.isInteractiveTime$.subscribe($t=>{var gt;let Ci=(gt=this.store)==null?void 0:gt.ui.controls.disabledControls$;Ci&&($t&&!Ci.includes(ql)&&Ci.add(ql),$t||Ci.remove(ql))})),this.subscription.add(this.store.ui.isFullscreen.subscribe(async $t=>{var gt;if(!t0.browser.isSamsungBrowser||!$t||!this.interactiveController)return;document.fullscreenElement===this.shadowRootContainer&&await this.replayInteractiveChapter((gt=this.videoConfig)==null?void 0:gt.callbacks.onExternalFullscreenExit)})),this.statistics&&this.statistics.oneStat&&this.subscription.add(this.statistics.oneStat.vsid$.subscribe($t=>{var gt;return(gt=ge==null?void 0:ge.onVSIDChanged)==null?void 0:gt.call(ge,$t)})),this.initMediaSession(),B(An,{interactiveController:this.interactiveController,interactiveContainer:this.interactiveContainer,sources:ct,store:this.store,microStoresRoot:this.microStoresRoot,videoConfig:this.videoConfig,uiConfig:this.uiConfig,title:ht,thumbUrl:xt,subtitles:At,live:me,preload:T,autoplay:k,muted:I,volume:A,fromTime:E,canRewindLive:V,supportLink:K,showAds:W,adsSlotId:U,adsParams:_e,adsPreviewParam:ne,adsAutoplayParam:G,duration:Yt,logoClickable:we,logoHidden:Ve,isMobile:ae!=null?ae:ve,failoverHosts:Be,fullScreenTarget:N,saveRate:ke,shadowRootContainer:this.shadowRootContainer,showMiniTimer:ue,outerContainerRef:this.rootContainer,showNextPrevButtons:this.needToShowNextPrevButtons(),nextButtonActive:this.isNextButtonActive(),prevButtonActive:this.isPrevButtonActive(),endScreenVideoTitle:se.nextVideoTitle,endScreenVideoThumb:se.nextVideoThumb,isOneVideoPlaylist:this.isOneVideoPlaylist(),playPrevChapter:()=>this.playPrevChapter(),seekToInteractive:()=>this.seekToInteractive(),volumeMultiplier:X,showEndScreen:Te,showAutoplayNext:Ke},!0);let Zi={target:this.playerContainer,props:s(An)};this.svelteRootComponent=Jr(Zm,Zi),this.addPlayerInfoSubscriptions(),this.isInited||(this.isInited=!0,(xo=(ci=(ii=this.videoConfig)==null?void 0:ii.callbacks)==null?void 0:ci.onInited)==null||xo.call(ci)),(uo=this.internalsExposure)==null||uo.expose({player:this,videoConfig:this.videoConfig,coreConfig:this.coreConfig,uiConfig:this.uiConfig,statisticsConfig:this.statisticsConfig,logger:this.logger,log:this.log}),this.uiConfig.devNullLog&&((wi=(jt=this.videoConfig)==null?void 0:jt.callbacks)!=null&&wi.onDevNullLog)?Qd.subscribe("ui",this.videoConfig.callbacks.onDevNullLog):Qd.destroy("ui")};this.coreConfig.asyncResolveClientChecker?t0.isInited$.subscribe(ii=>{ii&&(console.log("UI SDK async start"),ei())}):ei()}addPlayerInfoSubscriptions(){var e,i;let o=this.store,n=(e=this.microStoresRoot)==null?void 0:e.stores;if(!o||!n)return;let r=(i=this.videoConfig)==null?void 0:i.callbacks;r&&this.subscription.add(o.playerPhase.subscribe(d=>{var a;return(a=r.onPlayerPhaseChanged)==null?void 0:a.call(r,d)})).add(o.state.playbackState$.subscribe(d=>{var a;return d&&((a=r.onPlaybackStateChanged)==null?void 0:a.call(r,d))})).add(o.state.isLive$.subscribe(d=>{var a;return(a=r.onIsLiveChanged)==null?void 0:a.call(r,d)})).add(o.state.isActiveLive$.subscribe(d=>{var a;return(a=r.onIsActiveLiveChanged)==null?void 0:a.call(r,d)})).add(o.state.isAudioAvailable$.subscribe(d=>{var a;return(a=r.onIsAudioAvailableChanged)==null?void 0:a.call(r,d)})).add(o.state.currentQuality$.subscribe(d=>{var a;return(a=r.onCurrentQualityChanged)==null?void 0:a.call(r,d)})).add(o.state.availableQualities$.subscribe(d=>{var a;return(a=r.onAvailableQualitiesChanged)==null?void 0:a.call(r,d.map(({value:p})=>p).filter(p=>p!=="auto"))})).add(o.state.availableAudioStreams$.subscribe(d=>{d.length>1&&r.onAudioLanguagesAvailable&&r.onAudioLanguagesAvailable()})).add(n.pictureInPicture$.isActive$.subscribe(d=>{var a,p;return d?(a=r.onPiPEnter)==null?void 0:a.call(r):(p=r.onPiPExit)==null?void 0:p.call(r)}));let l=r==null?void 0:r.uiInfo;l&&this.subscription.add(o.ui.controlsVisible.subscribe(d=>{var a;return(a=l.onControlsVisibleChanged)==null?void 0:a.call(l,d)})).add(o.ui.isMobile.subscribe(d=>{var a;return(a=l.onIsMobileChanged)==null?void 0:a.call(l,d)})).add(o.ui.playerSize.subscribe(d=>{var a;return(a=l.onPlayerSizeChanged)==null?void 0:a.call(l,d)})).add(o.ui.controls.prevButton.subscribe(d=>{var a;return(a=l.onPrevButtonChanged)==null?void 0:a.call(l,d)})).add(o.ui.controls.playButton.subscribe(d=>{var a;return(a=l.onPlayButtonChanged)==null?void 0:a.call(l,d)})).add(o.ui.controls.replayButton.subscribe(d=>{var a;return(a=l.onReplayButtonChanged)==null?void 0:a.call(l,d)})).add(o.ui.controls.nextButton.subscribe(d=>{var a;return(a=l.onNextButtonChanged)==null?void 0:a.call(l,d)})).add(o.ui.controls.playPrevChapterButton.subscribe(d=>{var a;return(a=l.onPlayPrevChapterChanged)==null?void 0:a.call(l,d)})).add(o.ui.controls.seekToInteractiveButton.subscribe(d=>{var a;return(a=l.onSeekToInteractiveButtonChanged)==null?void 0:a.call(l,d)})).add(o.ui.controls.interactiveGraphButton.subscribe(d=>{var a;return(a=l.onGraphButtonChanged)==null?void 0:a.call(l,d)})).add(o.ui.controls.liveButton.subscribe(d=>{var a;return(a=l.onLiveButtonChanged)==null?void 0:a.call(l,d)})).add(o.ui.controls.time.subscribe(d=>{var a;return(a=l.onTimeUpdateChanged)==null?void 0:a.call(l,d)})).add(o.ui.controls.episodes.subscribe(d=>{var a;return(a=l.onEpisodesChanged)==null?void 0:a.call(l,d)})).add(o.ui.controls.subtitles.subscribe(d=>{var a;return(a=l.onSubtitlesChanged)==null?void 0:a.call(l,d)})).add(o.ui.controlBlocks.topLeft.subscribe(d=>{var a;return(a=l.onTopLeftControlBlockChanged)==null?void 0:a.call(l,d)})).add(o.ui.controlBlocks.topRight.subscribe(d=>{var a;return(a=l.onTopRightControlBlockChanged)==null?void 0:a.call(l,d)})).add(o.ui.controlBlocks.bottomLeft.subscribe(d=>{var a;return(a=l.onBottomLeftControlBlockChanged)==null?void 0:a.call(l,d)})).add(o.ui.controlBlocks.bottomRight.subscribe(d=>{var a;return(a=l.onBottomRightControlBlockChanged)==null?void 0:a.call(l,d)})).add(o.ui.controlBlocks.middle.subscribe(d=>{var a;return(a=l.onMiddleControlBlockChanged)==null?void 0:a.call(l,d)})).add(o.ui.controlBlocks.bottom.subscribe(d=>{var a;return(a=l.onBottomControlBlockChanged)==null?void 0:a.call(l,d)})).add(o.ui.videoTitleInfo.subscribe(d=>{var a;return(a=l.onTitleChanged)==null?void 0:a.call(l,d)})).add(o.ui.controls.settings.subscribe(d=>{var a;return(a=l.onSettingsChanged)==null?void 0:a.call(l,d)})).add(o.ui.controls.fullscreen.subscribe(d=>{var a;return(a=l.onFullscreenChanged)==null?void 0:a.call(l,d)})).add(o.ui.controls.chromecast.subscribe(d=>{var a;return(a=l.onChromecastChanged)==null?void 0:a.call(l,d)})).add(o.ui.controls.pip.subscribe(d=>{var a;return(a=l.onPipChanged)==null?void 0:a.call(l,d)})).add(o.ui.controls.vkLogo.subscribe(d=>{var a;return(a=l.onVkLogoChanged)==null?void 0:a.call(l,d)})).add(o.ui.controls.interactiveTimeIndicator.subscribe(d=>{var a;return(a=l.onInteractiveTimeIndicatorChanged)==null?void 0:a.call(l,d)})).add(o.ui.controls.timeline.subscribe(d=>{var a;return(a=l.onTimelineChanged)==null?void 0:a.call(l,d)}))}playNextVideo(){this.videoConfig&&(this.currentPlayingVideoIndex++,this.currentPlayingVideoIndex>=this.videoConfig.videos.length&&(this.currentPlayingVideoIndex=0),this.log({message:`play next video, index: ${this.currentPlayingVideoIndex}`}),this.createPlayerWithCurrentVideo())}playPrevVideo(){this.videoConfig&&(this.currentPlayingVideoIndex--,this.currentPlayingVideoIndex<0&&(this.currentPlayingVideoIndex=this.videoConfig.videos.length-1),this.log({message:`play prev video, index: ${this.currentPlayingVideoIndex}`}),this.createPlayerWithCurrentVideo())}createPlayerWithCurrentVideo(e,i=!0){var o;if(!this.videoConfig)return;let n=this.videoConfig.videos[this.currentPlayingVideoIndex];if(!n){this.log({message:"no next video"});return}this.isInited&&av(n.unitedVideoId)&&((o=this.store)==null||o.actions.internal.nextMovie(n.unitedVideoId)),this.unmountComponent(this.svelteRootComponent),this.createPlayer(n,{autoplay:i,fromTime:0},e)}playPrevChapter(){var e;(e=this.interactiveController)==null||e.playPrevChapter()}seekToInteractive(){var e;let i=(e=this.interactiveController)==null?void 0:e.getNextInteractiveStartTime();typeof i=="number"&&this.seekTime(i/1e3)}async initInteractives(){var e,i,o,n,r,l;if((e=this.videoConfig)!=null&&e.interactiveData)try{let{Interactives:d}=await import("@vkontakte/videoplayer-interactive/es2018");this.interactiveContainer=document.createElement("div"),this.interactiveContainer.classList.add("interactive-root");let a=(i=this.store)==null?void 0:i.interfaceLanguage$,p=a?$e(a):this.videoConfig.interfaceLanguage,{projectInfo:f,initChapterId:v,historyApi:u,videoLoader:$}=this.videoConfig.interactiveData;this.interactiveController=new d({parentElement:this.interactiveContainer,fullscreenTargetElement:this.playerContainer,lang:p,graph:this.uiConfig.features.interactiveGraph,projectInfo:f,initChapterId:v,historyApi:u,vkVideoLoader:$,lastFrame:this.uiConfig.features.interactiveLastFrame,permanentTextControls:this.uiConfig.features.interactiveTextPermanent,interactiveTimeOpenUri:this.uiConfig.features.interactiveTimeOpenUri,initSeamless:!0,config:this.uiConfig.interactive,coreConfig:this.coreConfig,createOneStat:this.createOneStat,isTouch:this.videoConfig.isTouch,animationsFeatureToggles:{areaControlShadow:this.uiConfig.features.interactiveAreaControlShadow,controlsExpectTimeBlinkAnimation:this.uiConfig.features.interactiveControlsExpectTimeBlinkAnimation,controlsTapPlace:this.uiConfig.features.interactiveControlsTapPlace,controlsFillAnimation:this.uiConfig.features.interactiveControlsFillAnimation,controlsHideAnimation:this.uiConfig.features.interactiveControlsHideAnimation},endChapterHistoryFix:this.uiConfig.features.interactiveHistoryEndChapterFix});let{isInteractiveExpectation$:w,isSeekable$:y}=this.interactiveController.state;this.uiConfig.features.seekToInteractive&&this.subscription.add(y.subscribe(T=>{if(!this.isInited)return;let k=this.store;T?k.ui.controls.disabledControls$.remove("SEEK_TO_INTERACTIVE_BUTTON"):k.ui.controls.disabledControls$.add("SEEK_TO_INTERACTIVE_BUTTON")})),this.subscription.add(w.subscribe(T=>{this.store&&this.store.state.isInteractiveExpectation$.set(T)}));let S=!0;if(this.subscription.add(this.interactiveController.events.playerChanged$.subscribe(T=>{if(!this.videoConfig)return;this.videoConfig.videos[this.currentPlayingVideoIndex]={...T.config,title:(f==null?void 0:f.title)||T.config.title};let k=S?this.videoConfig.autoplay:!0;this.createPlayerWithCurrentVideo(T.player,k),S&&(S=!1)})),this.interactiveSubscription.add(this.interactiveController.events.interactiveActionChoice$.subscribe(({type:T,actionType:k})=>{var A,I,E,V,K,W;if(!this.store||!this.microStoresRoot)return;let U=w.getValue();if(T==="action-choice"&&k==="setRandomBranch"&&(this.microStoresRoot.stores.graphIsOpened$.set(!1),this.store.ui.controls.disabledControls$.remove(Kl)),T==="action-choice-canceled"){let Y=$e(this.store.state.isPlaying$)||U;if(((E=(A=this.videoConfig)==null?void 0:A.isTouch)!=null?E:(I=this.videoConfig)!=null&&I.isMobile)&&Y){this.store.ui.interactiveHideMobileControls.set(!0);return}(W=(V=this.videoConfig)==null?void 0:(K=V.callbacks).onDisabledInteractiveClick)==null||W.call(K)}})),this.interactiveSubscription.add(this.interactiveController.events.interactiveContainerFakeRemoved$.subscribe(({type:T,removeAllOpenURI:k})=>{this.store&&T==="container-fake-removed"&&k&&this.store.ui.controls.disabledControls$.remove(Kl)})),await this.interactiveController.setManifest(this.videoConfig.interactiveData.manifest),(n=(o=this.videoConfig)==null?void 0:o.callbacks)!=null&&n.onInteractiveHistoryChanged){let T=this.interactiveController.getHistoryState();this.subscription.add(T.history$.subscribe(k=>{var A,I,E;k.length&&((E=(I=(A=this.videoConfig)==null?void 0:A.callbacks)==null?void 0:I.onInteractiveHistoryChanged)==null||E.call(I,k))}))}(l=(r=this.videoConfig)==null?void 0:r.callbacks)!=null&&l.onInteractiveChapterChanged&&this.subscription.add(this.interactiveController.events.chapterChanged$.subscribe(T=>{var k,A,I;(I=(k=this.videoConfig)==null?void 0:(A=k.callbacks).onInteractiveChapterChanged)==null||I.call(A,T.chapter,T.manifestVideo)})),this.uiConfig.features.interactiveTimeIndicator&&this.subscription.add(this.interactiveController.events.noInteraction$.subscribe(()=>{var T,k,A,I;(T=this.microStoresRoot)==null||T.stores.showInteractiveTimeIndicatorTooltip$.set(!0,!0),(I=(k=this.videoConfig)==null?void 0:(A=k.callbacks).onInteractiveTimeIndicatorClick)==null||I.call(A)})),this.interactiveSubscription.add(this.interactiveController.events.error$.subscribe(T=>{this.log({message:T.toString()})}))}catch(d){this.log({message:d.message})}}initPlayer(e,i={}){var o,n,r,l,d,a,p,f,v,u,$,w,y,S,T,k,A,I,E,V,K,W,U,Y,ne,G,ce,le;if(!Array.isArray(e.videos)||e.videos.length===0&&!e.interactiveData){let we=new Error("empty videos");this.fatalError$.next(we),(n=(o=e.callbacks)==null?void 0:o.onCrashed)==null||n.call(o,we.message);return}else this.fatalError$.next(null);if(this.videoConfig=Dd(j5,D5(e,we=>we instanceof HTMLElement?we:void 0)),this.uiConfig=Gg((r=i.ui)!=null?r:{}),this.coreConfig=(l=i.core)!=null?l:{configName:[]},this.statisticsConfig=(d=i.statistics)!=null?d:{},this.uiConfig.features.forcePlayerDisplayBlock&&(this.rootContainer&&(this.rootContainer.style.minHeight="unset"),this.style.display="block",this.style.width="100%",this.style.height="100%"),this.videoConfig.playerView==="preview"&&(this.playerContainer.style.contain="none"),this.sentry={config:(a=this.uiConfig.sentry)!=null?a:{}},this.uiConfig.features.exposeInternalsToGlobal&&((p=this.internalsExposure)!=null||(this.internalsExposure=new W5("UI"))),Qd.push("ui",{key:"videoplayer_embed",strings:["new","player_init_player","ads.enable: "+this.uiConfig.ads.enable,"showAds: "+((f=this.videoConfig)==null?void 0:f.showAds)],numbers:[B5()]}),av(this.videoConfig.isMediaSessionEnabled)&&(this.uiConfig.features.mediaSession=(u=(v=this.uiConfig.features.mediaSession)!=null?v:this.videoConfig.isMediaSessionEnabled)!=null?u:!0),av(this.videoConfig.isPictureInPictureEnabled)&&(this.uiConfig.features.pip=(w=($=this.uiConfig.features.pip)!=null?$:this.videoConfig.isPictureInPictureEnabled)!=null?w:!0,this.uiConfig.features.dpip=(S=(y=this.uiConfig.features.dpip)!=null?y:this.videoConfig.isPictureInPictureEnabled)!=null?S:!0),this.videoConfig.isTouch=(k=(T=this.uiConfig.isMobile)!=null?T:this.videoConfig.isTouch)!=null?k:this.videoConfig.isMobile,(A=this.videoConfig).autoplay&&(A.autoplay=this.uiConfig.features.autoplay),this.videoConfig.showAds=(I=this.uiConfig.ads.enable)!=null?I:this.videoConfig.showAds,this.videoConfig.adsSlotId=(E=this.uiConfig.ads.slot)!=null?E:this.videoConfig.adsSlotId,this.videoConfig.adsPreviewParam=(V=this.uiConfig.ads.preview)!=null?V:this.videoConfig.adsPreviewParam,this.videoConfig.logoHidden=!((K=this.uiConfig.showLogo)!=null?K:!this.videoConfig.logoHidden),(W=this.videoConfig).canRewindLive&&(W.canRewindLive=this.uiConfig.features.liveRewind),this.videoConfig.supportLink=(U=this.videoConfig.supportLink)!=null?U:this.uiConfig.supportLink,this.videoConfig.showEndScreen=(Y=this.uiConfig.features.endScreen)!=null?Y:this.videoConfig.showEndScreen,this.videoConfig.showAutoplayNext=(ne=this.uiConfig.features.autoplayNext)!=null?ne:this.videoConfig.showAutoplayNext,this.videoConfig.showNextPrevButtons=(G=this.uiConfig.features.nextPrevButtons)!=null?G:this.videoConfig.showNextPrevButtons,this.currentPlayingVideoIndex=this.videoConfig.videoIndex&&((ce=this.videoConfig.videos)!=null&&ce[this.videoConfig.videoIndex])?this.videoConfig.videoIndex:0,this.needToRepeatPlaylist=this.videoConfig.repeat,this.uiConfig.features.pip){let we={enabled:this.videoConfig.pipEnabled};this.uiConfig.features.dpip?this.pictureInPictureApi=Su.getLatestSupportedVersion(we):this.pictureInPictureApi=new la(we)}this.mediaSessionApi=this.uiConfig.features.mediaSession?new Cu:void 0,this.slotsApi=this.uiConfig.features.slots?new $u:void 0,this.annotationsApi=this.uiConfig.features.annotations?new Tu(this.uiConfig.features.annotationsInside):void 0,this.annotationsApi&&!this.uiConfig.features.annotationsInside&&this.annotationsApi.init(this.rootContainer),this.unmountComponent(this.svelteStubComponent),this.unmountComponent(this.svelteRootComponent),this.unmountComponent(this.svelteErrorComponent),this.isInited=!1,this.prevIsid=void 0,this.interactiveController&&(this.interactiveController.destroy(),this.interactiveController=void 0,this.interactiveSubscription.unsubscribe()),this.videoConfig.interactiveData?this.initInteractives():this.createPlayer(this.videoConfig.videos[this.currentPlayingVideoIndex]),Q1(this.pictureInPictureApi)&&this.pictureInPictureApi.setPlayerDomElement(this.playerContainer,this._shadowRoot),(le=this.slotsApi)==null||le.init(this.shadowRootContainer,this.store),this.focusManager=this._shadowRoot?new ku(this._shadowRoot):void 0}isOneVideoPlaylist(){return this.videoConfig?this.videoConfig.videos.length===1:!1}updateVideos(e,i){if(!this.videoConfig)return;this.log({message:`update ${i} videos, videos: ${JSON.stringify(e)}`}),i==="prev"?(this.videoConfig.videos.splice(0,this.currentPlayingVideoIndex),this.videoConfig.videos.unshift(...e),this.currentPlayingVideoIndex=e.length):i==="next"&&(this.videoConfig.videos.splice(this.currentPlayingVideoIndex+1),this.videoConfig.videos.push(...e));let o=this.getNextVideoInfo();s(An)&&(s(An).showNextPrevButtons=this.needToShowNextPrevButtons(),s(An).nextButtonActive=this.isNextButtonActive(),s(An).prevButtonActive=this.isPrevButtonActive(),s(An).endScreenVideoTitle=o.nextVideoTitle,s(An).endScreenVideoThumb=o.nextVideoThumb,s(An).isOneVideoPlaylist=this.isOneVideoPlaylist())}updatePrevVideos(e){this.updateVideos(e,"prev")}updateNextVideos(e){this.updateVideos(e,"next")}initMediaSession(){var e,i;this.mediaSessionApi&&((e=this.unsubscribePlayerPhaseSubscription)==null||e.call(this),this.mediaSessionApi.clearSubscriptions(),this.unsubscribePlayerPhaseSubscription=(i=this.store)==null?void 0:i.playerPhase.subscribe(o=>{o==="video"?this.setupMediaSessionForVideo():o==="ads"&&this.setupMediaSessionForAds()}))}setupMediaSessionForVideo(){if(!(!this.videoConfig||!this.mediaSessionApi))try{let{title:e,thumbUrl:i}={...this.videoConfig.videos[this.currentPlayingVideoIndex]},o=[["play",()=>this.play()],["pause",()=>this.pause()],["seekto",n=>this.seekTime(n.seekTime)]];this.videoConfig.videos.length>1&&(this.currentPlayingVideoIndex<this.videoConfig.videos.length-1&&o.push(["nexttrack",()=>{var n,r,l;if(this.uiConfig.features.useCallbackForMediaSessionNextPrevClick)try{(l=(r=(n=this.videoConfig)==null?void 0:n.callbacks)==null?void 0:r.onNextVideoClick)==null||l.call(r)}catch(d){this.log({message:"onNextVideoClick callback failed to execute"})}else this.playNextVideo()}]),this.currentPlayingVideoIndex>0&&o.push(["previoustrack",()=>{var n,r,l;if(this.uiConfig.features.useCallbackForMediaSessionNextPrevClick)try{(l=(r=(n=this.videoConfig)==null?void 0:n.callbacks)==null?void 0:r.onPrevVideoClick)==null||l.call(r)}catch(d){this.log({message:"onPrevVideoClick callback failed to execute"})}else this.playPrevVideo()}])),this.mediaSessionApi.setMetaData({title:e,thumbUrl:i}),this.mediaSessionApi.updateActionHandlers(o),this.mediaSessionApi.attachToStore(this.store)}catch(e){this.log({message:e.message})}}setupMediaSessionForAds(){if(!(!this.videoConfig||!this.mediaSessionApi))try{let e="\u0420\u0435\u043A\u043B\u0430\u043C\u0430",i=[["play",()=>this.play()],["pause",()=>this.pause()]];this.mediaSessionApi.setMetaData({title:e}),this.mediaSessionApi.updateActionHandlers(i),this.mediaSessionApi.attachToStore(this.store)}catch(e){this.log({message:e.message})}}moveTo(e){this.shadowDOMCallbacksDisabled=!0,e.append(this),this.shadowDOMCallbacksDisabled=!1}play(){var e,i,o,n;this.isControlDisabled("PLAY_BUTTON")||(e=this.store)!=null&&e.playerPhase.is("LiveWaitingStart")||(i=this.store)!=null&&i.playerPhase.is("LiveWaitingRecover")||(o=this.store)!=null&&o.playerPhase.is("LiveWaitingRecord")||(this.log({message:"play"}),(n=this.svelteRootComponent)==null||n.play())}pause(){var e;this.log({message:"pause"}),(e=this.svelteRootComponent)==null||e.pause()}stop(){var e;if(!this.videoConfig)return;this.log({message:"stop"});let i=!!this.interactiveController;i&&(this.interactiveController.destroy(),this.interactiveController=void 0,this.interactiveContainer=void 0,this.interactiveSubscription.unsubscribe()),this.unmountComponent(this.svelteStubComponent),(e=this.mediaSessionApi)==null||e.destroy();let o=this.videoConfig.videos[0];o&&(this.unmountComponent(this.svelteRootComponent),i?(this.videoConfig.autoplay=!1,this.initInteractives()):this.createPlayer(o))}setMuted(e){var i;this.log({message:`set muted, muted: ${e}`}),(i=this.svelteRootComponent)==null||i.setMuted(e)}toggleSubtitle(){var e;this.log({message:"toggle subtitle"}),(e=this.svelteRootComponent)==null||e.toggleSubtitle()}hideControls(){var e;this.log({message:"hide controls"}),(e=this.svelteRootComponent)==null||e.hideControls()}showControls(){var e;this.log({message:"show controls"}),(e=this.svelteRootComponent)==null||e.showControls()}setPiPEnabled(e){var i,o;(o=(i=this.store)==null?void 0:i.webApi.pictureInPictureApi)==null||o.setEnabled(e)}setVolume(e){var i;this.log({message:`set volume, volume: ${e}`}),(i=this.svelteRootComponent)==null||i.setVolume(e)}setRepeat(e){this.log({message:`set repeat, repeat: ${e}`}),this.needToRepeatPlaylist=e,s(An)&&(s(An).needToRepeatPlaylist=this.needToRepeatPlaylist,s(An).showNextPrevButtons=this.needToShowNextPrevButtons(),s(An).nextButtonActive=this.isNextButtonActive(),s(An).prevButtonActive=this.isPrevButtonActive())}seekTime(e){var i;this.isControlDisabled("TIMELINE")||(this.log({message:`seek time, time: ${e}`}),(i=this.svelteRootComponent)==null||i.seekTime(e))}seekEpisodeStartTime(e){var i;this.log({message:`seek episode start time, time: ${e}`}),(i=this.svelteRootComponent)==null||i.seekEpisodeStartTime(e)}returnFocusToEpisodes(){var e;this.log({message:"return focus to episodes button"}),(e=this.svelteRootComponent)==null||e.returnFocusToEpisodes()}setPlaybackRate(e){var i;this.log({message:`set playback rate to: ${e}`}),(i=this.svelteRootComponent)==null||i.setPlaybackRate(e)}setAutoQualityLimits(e){var i,o,n;this.log({message:`set auto quality limitation. Max: ${(i=e.max)!=null?i:"none"}. Min: ${(o=e.min)!=null?o:"none"}`}),(n=this.svelteRootComponent)==null||n.setAutoQualityLimits(e)}addLanguage(e){var i;(i=this.store)==null||i.actions.internal.addLanguage(e)}async setLanguage(e){var i;await((i=this.store)==null?void 0:i.actions.internal.setLanguage(e))}setLiveStart(e){var i,o;this.log({message:"live started"}),(i=this.store)==null||i.actions.internal.setLiveWaitingRecover(!1),(o=this.store)==null||o.actions.internal.setLiveWaitingStart(!1),this.unmountComponent(this.svelteRootComponent),this.createPlayer(e,{autoplay:!0})}setLiveWaitingStart(){var e;this.log({message:"live waiting"}),(e=this.store)==null||e.actions.internal.setLiveWaitingStart(!0)}isLiveTailPlaying(){var e;let i=(e=this.store)==null?void 0:e.getPlayer();if(!i)return!1;let{info:o}=i;return o.canPlayLiveTailBuffer$.getValue()&&!o.atLiveEdge$.getValue()}setLiveWaitingRecover(e=!1){var i;let o=this.isLiveTailPlaying(),n=e||!o;this.log({message:`live waiting recover: forceImmediate = ${e}, liveTailPlaying = ${o}`});let r=()=>{var l;(l=this.store)==null||l.actions.internal.setLiveWaitingRecover(!0)};n&&r(),(i=this.store)!=null&&i.callbacks&&(this.store.callbacks.onLiveEnded=()=>{var l;n||r(),(l=this.store)==null||l.destroy()})}setLiveWaitingRecord(){var e;let i=this.isLiveTailPlaying(),o=!i;this.log({message:`live waiting record: liveTailPlaying = ${i}`});let n=()=>{var r;(r=this.store)==null||r.actions.internal.setLiveWaitingRecord(!0)};o&&n(),(e=this.store)!=null&&e.callbacks&&(this.store.callbacks.onLiveEnded=()=>{var r;o||n(),(r=this.store)==null||r.destroy()})}setLiveEnd(e){var i;let o=this.isLiveTailPlaying(),n=!o;this.log({message:`live ended: liveTailPlaying = ${o}`});let r=()=>{var l,d;(l=this.store)==null||l.actions.internal.setLiveWaitingRecover(!1),(d=this.store)==null||d.actions.internal.setLiveWaitingRecord(!1),this.unmountComponent(this.svelteRootComponent),this.createPlayer(e,{autoplay:!1})};if(n){r();return}(i=this.store)!=null&&i.callbacks&&(this.store.callbacks.onLiveEnded=r)}setLiveLowLatency(e){var i;this.log({message:"live switch to low latency "+e}),(i=this.store)==null||i.actions.external.setLiveLowLatency(e)}setLooped(e){var i;(i=this.store)==null||i.actions.internal.setLooped(e)}getDebugData(){var e,i;return(i=(e=this.store)==null?void 0:e.actions.internal.getDebugTextData())!=null?i:""}getDeviceId(){var e,i,o;return(o=(i=(e=this.statistics)==null?void 0:e.oneStat)==null?void 0:i.getDeviceId())!=null?o:void 0}replayInteractiveVideo(){this.interactiveController&&this.interactiveController.setChapter()}async replayInteractiveChapter(e){var i,o;if(this.interactiveController&&((i=this.store)!=null&&i.state.positionExact$)){let n=$e(this.store.state.positionExact$),l=$e(this.store.state.interactiveEpisodes$).find(a=>!a.completed);this.interactiveController.events.playerChanged$.pipe(z5()).subscribe(()=>{l&&n>=l.time?this.seekTime(l.time):this.seekTime(n),e==null||e()});let d=this.interactiveController.getCurrentChapter();await this.interactiveController.setChapter({chapterId:(o=d==null?void 0:d.chapter)==null?void 0:o.id,pushToHistory:!1})}}showInteractiveIndicatorTooltip(e,i=!1){var o;(o=this.microStoresRoot)==null||o.stores.showInteractiveTimeIndicatorTooltip$.set(e,i)}switchToActiveLive(){var e;(e=this.store)==null||e.actions.internal.switchToActiveLive()}updateAdditionalSettingsItem(e,i){var o;(o=this.store)==null||o.actions.external.updateAdditionalSettingsItem(e,i)}addAdditionalSettingsItem(e){var i;(i=this.store)==null||i.actions.external.addAdditionalSettingsItem(e)}removeAdditionalSettingsItem(e){var i;(i=this.store)==null||i.actions.external.removeAdditionalSettingsItem(e)}updateAdditionalContextItem(e,i){var o;(o=this.store)==null||o.actions.external.updateAdditionalContextItem(e,i)}addAdditionalContextItem(e){var i;(i=this.store)==null||i.actions.external.addAdditionalContextItem(e)}removeAdditionalContextItem(e){var i;(i=this.store)==null||i.actions.external.removeAdditionalContextItem(e)}updateAdditionalButton(e,i){var o;(o=this.store)==null||o.actions.external.updateAdditionalButton(e,i)}addAdditionalButton(e){var i;(i=this.store)==null||i.actions.external.addAdditionalButton(e)}removeAdditionalButton(e){var i;(i=this.store)==null||i.actions.external.removeAdditionalButton(e)}updateStatContext(e){this.statistics&&(this.statistics.oneStat&&this.statistics.oneStat.updateContext(e),this.statistics.thinOneStat&&this.statistics.thinOneStat.updateContext(e))}handleTimerNextVideo(e){var i;(i=this.store)==null||i.actions.internal.setTimerNextVideoRunning(e)}togglePictureInPicture(){var e;(e=this.store)==null||e.actions.internal.togglePictureInPicture()}focus(){var e,i,o;(o=(i=(e=this.svelteRootComponent)==null?void 0:e.keyboardControls)==null?void 0:i.focus)==null||o.call(i)}restoreFocus(){var e;(e=this.focusManager)==null||e.restoreFocus()}handleExternalKeyboardEvent(e){var i,o;return!!((o=(i=this.svelteRootComponent)==null?void 0:i.keyboardControls)!=null&&o.handleExternalKeyboardEvent(e))}setAutoplayNext(e){var i;(i=this.store)==null||i.actions.internal.setAutoplayNextEnabled(e)}unmountComponent(e){e&&ta(e)}};import{InterfaceLanguage as OJ,VKNumericLanguage as DJ,loadVKLangPack as HJ}from"@vkontakte/videoplayer-shared/es2018";import{VideoQuality as UJ,VideoFormat as zJ}from"@vkontakte/videoplayer-core/es2018";var PJ=()=>{window.customElements.define("vk-video-player",Pu)};export{lu as ControlButtonType,is as GridTypes,OJ as InterfaceLanguage,od as MenuItemType,ms as PlayerPhase,tl as VERSION,DJ as VKNumericLanguage,zJ as VideoFormat,UJ as VideoQuality,HJ as loadVKLangPack,PJ as registerPlayerWebComponent};
390
+ /* \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 Zm(t,e){F(e,!0),K(t,r5);let[i,o]=He(),n=()=>C(Qt,"$isLive$",i),s=()=>C(Yt,"$availableSubtitlesList$",i),l=m(e,"sources",7),d=m(e,"store",7),a=m(e,"microStoresRoot",7),p=m(e,"videoConfig",7),f=m(e,"uiConfig",7),v=m(e,"title",7),u=m(e,"thumbUrl",7),y=m(e,"interactiveContainer",7),w=m(e,"interactiveController",7),b=m(e,"subtitles",7),S=m(e,"live",7),T=m(e,"preload",7),E=m(e,"autoplay",7),M=m(e,"volume",7,void 0),I=m(e,"muted",7,void 0),k=m(e,"fromTime",7),R=m(e,"canRewindLive",7),Y=m(e,"showAds",7),D=m(e,"adsSlotId",7,void 0),H=m(e,"adsParams",7,void 0),q=m(e,"adsPreviewParam",7,void 0),J=m(e,"adsAutoplayParam",7,void 0),W=m(e,"duration",7,void 0),de=m(e,"logoClickable",7),ie=m(e,"logoHidden",7),ve=m(e,"isMobile",7),Ie=m(e,"showNextPrevButtons",7,!1),fe=m(e,"nextButtonActive",7,!1),re=m(e,"prevButtonActive",7,!1),ke=m(e,"endScreenVideoTitle",7,void 0),te=m(e,"endScreenVideoThumb",7,void 0),N=m(e,"isOneVideoPlaylist",7,!1),Oe=m(e,"supportLink",7),ye=m(e,"shadowRootContainer",7),he=m(e,"outerContainerRef",7),ce=m(e,"fullScreenTarget",7,void 0),ue=m(e,"failoverHosts",7,void 0),we=m(e,"showMiniTimer",7,!1),Z=m(e,"saveRate",7),Ke=m(e,"seekToInteractive",7,q1),Xe=m(e,"playPrevChapter",7,q1),Ae=m(e,"volumeMultiplier",7),ee=m(e,"showAutoplayNext",7),Ce=m(e,"showEndScreen",7,!0),qe=m(e,"keyboardControls",15,void 0),{subscribers:st,stores:ct}=a();Yg(f());let bt=Ft(),St=f().logoLink,Ge=d().ui.debugPanelVisible,Wt=d().ui.playerSize,Qt=d().state.isLive$,Nt=d().state.isInteractive&&jm.device.isAndroid,oe=j(void 0),At=null,ge=j(!1);d().getAdmanWrapper().init({switchFromAdsToVideo:d().actions.internal.switchFromAdsToVideo,switchFromVideoToAds:d().actions.internal.switchFromVideoToAds,setMuted:d().actions.external.setMuted},d().ads,{isMobile:d().ui.isMobile,mobileUnmuteButtonVisible:d().ui.mobileUnmuteButtonVisible,vsid:d().vsid}),rh(d(),ct),We(()=>{var G,Bt;d().ui.isMobile.set(ve()),(Bt=(G=p().callbacks)==null?void 0:G.onDomReady)==null||Bt.call(G)});let be=(G=!1)=>{B(ge,!0),G?d().actions.external.firstStart(Y()):d().actions.internal.firstStart(Y())},le=()=>{if(bt.features.qualityDetailsSubMenuEnabled){let G=Sh(d().videoId);if(G)switch(G.type){case"high_quality":d().actions.internal.setHighQualityEnabled(!0,G.appliesTo);break;case"traffic_saving":d().actions.internal.setTrafficSavingEnabled(!0,G.appliesTo);break;case"exact_quality":d().actions.internal.setQuality(G.quality);break}}else{Th(d().videoId),Kp()&&d().actions.internal.setTrafficSavingEnabled(!0);let Bt=Fp(d().videoId);Bt&&d().actions.internal.setQuality(Bt)}};function De(G){var rt,ut,hi;let Bt=l()||G;Bt&&d().initVideo({container:r(oe),sources:Bt,failoverHosts:ue(),subtitles:b(),volumeMultiplier:Ae()});let ci=t5.get(ql)==="true";Ge.set(ci),k()>0&&d().actions.external.seekTime(k());let Kt=ve()?bt.volumeDefault:(ut=(rt=M())!=null?rt:Bc())!=null?ut:bt.volumeDefault,ft=(hi=I())!=null?hi:bh();if(d().actions.external.setVolume(Kt),d().actions.external.setMuted(ft),d().getAdmanWrapper().setInitialVolume(ft?0:Kt),le(),bt.features.saveRate&&Z()){let Ot=xh();Ot&&!n()&&d().actions.internal.setPlaybackRate(Ot)}if(ee()){let Ot=Ch();Ot&&d().actions.internal.setAutoplayNextEnabled(Ot)}d().ui.isAutoplay.set(E()),E()?be():T()&&bt.features.preload&&d().actions.internal.preload()}let ze=G=>{if(window.ResizeObserver){let Bt,ci;At=new ResizeObserver(i5(Kt=>{let ft=Kt[0];if(ft.contentBoxSize){let rt=Array.isArray(ft.contentBoxSize)?ft.contentBoxSize[0]:ft.contentBoxSize;Bt=rt.inlineSize,ci=rt.blockSize}else ft.contentRect&&(Bt=ft.contentRect.width,ci=ft.contentRect.height);Wt.set({width:Bt,height:ci})},300)),At.observe(G)}Wt.set({width:G.clientWidth,height:G.clientHeight})},Le=()=>{document.hidden&&d().actions.external.stop()};Rt(()=>{var ci,Kt,ft,rt;Nt&&document.addEventListener("visibilitychange",Le),bt.debugLog&&d().actions.internal.startLogging(),ze(r(oe));let G=st.map(ut=>ut.init({store:d(),microStores:ct,config:p(),interactiveController:w(),uiConfig:f()})),Bt=()=>{Nt&&document.removeEventListener("visibilitychange",Le),At==null||At.disconnect(),G.forEach(ut=>ut.unsubscribe()),d().destroy()};return((ci=S())==null?void 0:ci.status)==="upcoming"?(d().actions.internal.setLiveWaitingStart(!0),Bt):((Kt=S())==null?void 0:Kt.status)==="waiting"?(d().actions.internal.setLiveWaitingRecover(!0),Bt):(((ft=S())==null?void 0:ft.status)==="finished"||((rt=S())==null?void 0:rt.status)==="postlive")&&!(l()&&e5(l()))?(d().actions.internal.setLiveWaitingRecord(!0),Bt):(De(),Bt)});function Ye(){r(ge)?d().actions.external.play():be(!0)}function Re(){d().actions.external.pause()}function tt(G){d().actions.external.setMuted(G)}function Pt(){d().actions.external.toggleSubtitle()}function Mt(){var G;(G=d().webApi.slotsApi)!=null&&G.haveSlots()&&d().actions.external.hideControls()}function Je(){var G;(G=d().webApi.slotsApi)!=null&&G.haveSlots()&&d().actions.external.showControls()}function ai(G){ve()||G>=0&&G<=1&&d().actions.external.setVolume(G)}function mi(G){d().actions.internal.seekTime(G,o5.UNKNOWN)}function at(G){d().actions.external.seekEpisodeStartTime(G)}function Xt(){d().actions.external.returnFocusToEpisodes()}function ti(G){d().actions.external.setPlaybackRate(G)}function ui(G){d().actions.external.setAutoQualityLimits(G)}let wo=Su(bt.view),po=p().playerView==="preview",Yt=d().state.availableSubtitlesList$;if(bt.features.initSubtitles){let G=!1;We(()=>{if(!G&&s().length){G=!0;let Bt=Gp();if(Bt){let ci=s().find(Kt=>Kt.language===Bt);d().actions.internal.setSubtitle(ci)}}})}var wi=n5();let Yi;var yt=_(wi);{var ht=G=>{Qm(G,{get store(){return d()},get uiConfig(){return bt},get thumbUrl(){return u()},get interactiveContainer(){return y()},get live(){return S()},get autoplay(){return E()},get canRewindLive(){return R()},get showAds(){return Y()},get adsSlotId(){return D()},get adsParams(){return H()},get adsPreviewParam(){return q()},get adsAutoplayParam(){return J()},get duration(){return W()},get logoClickable(){return de()},get logoHidden(){return ie()},get logoTargetUrl(){return St},get nextButtonActive(){return fe()},get prevButtonActive(){return re()},get endScreenVideoTitle(){return ke()},get endScreenVideoThumb(){return te()},get isOneVideoPlaylist(){return N()},get supportLink(){return Oe()},get shadowRootContainer(){return ye()},get outerContainerRef(){return he()},get fullScreenTarget(){return ce()},get showMiniTimer(){return we()},get playerStarted(){return r(ge)},get seekToInteractive(){return Ke()},get playPrevChapter(){return Xe()},firstStart:be,seekTime:mi,get showEndScreen(){return Ce()},get showAutoplayNext(){return ee()},get showNextPrevButtons(){return Ie()},get videoContainer(){return r(oe)},set videoContainer(Bt){B(oe,Bt,!0)}})},Ci=G=>{var Bt=Ue(),ci=me(Bt);{var Kt=rt=>{Ym(rt,{get thumbUrl(){return u()},get outsideDuration(){return W()},get canRewindLive(){return R()},get videoContainer(){return r(oe)},set videoContainer(ut){B(oe,ut,!0)}})},ft=rt=>{qm(rt,{get store(){return d()},get uiConfig(){return bt},get title(){return v()},get thumbUrl(){return u()},get interactiveContainer(){return y()},get live(){return S()},get autoplay(){return E()},get canRewindLive(){return R()},get showAds(){return Y()},get adsSlotId(){return D()},get adsParams(){return H()},get adsPreviewParam(){return q()},get adsAutoplayParam(){return J()},get duration(){return W()},get logoClickable(){return de()},get logoHidden(){return ie()},get logoTargetUrl(){return St},get nextButtonActive(){return fe()},get prevButtonActive(){return re()},get endScreenVideoTitle(){return ke()},get endScreenVideoThumb(){return te()},get isOneVideoPlaylist(){return N()},get supportLink(){return Oe()},get shadowRootContainer(){return ye()},get outerContainerRef(){return he()},get fullScreenTarget(){return ce()},get showMiniTimer(){return we()},get playerStarted(){return r(ge)},get seekToInteractive(){return Ke()},get playPrevChapter(){return Xe()},firstStart:be,get showEndScreen(){return Ce()},get showAutoplayNext(){return ee()},get showNextPrevButtons(){return Ie()},get videoContainer(){return r(oe)},set videoContainer(ut){B(oe,ut,!0)},get keyboardControls(){return qe()},set keyboardControls(ut){qe(ut)}})};L(ci,rt=>{po?rt(Kt):rt(ft,!1)})}$(G,Bt)};L(yt,G=>{ve()?G(ht):G(Ci,!1)})}h(wi),O(G=>{Yi=X(wi,1,"root svelte-oba660",null,Yi,G),nt(wi,wo)},[()=>({"root--miui-browser":jm.device.isMobile&&jm.browser.isMiuiBrowser,"visible-outside":po})]),$(t,wi);var Ho=U({initVideo:De,play:Ye,pause:Re,setMuted:tt,toggleSubtitle:Pt,hideControls:Mt,showControls:Je,setVolume:ai,seekTime:mi,seekEpisodeStartTime:at,returnFocusToEpisodes:Xt,setPlaybackRate:ti,setAutoQualityLimits:ui,get sources(){return l()},set sources(G){l(G)},get store(){return d()},set store(G){d(G)},get microStoresRoot(){return a()},set microStoresRoot(G){a(G)},get videoConfig(){return p()},set videoConfig(G){p(G)},get uiConfig(){return f()},set uiConfig(G){f(G)},get title(){return v()},set title(G){v(G)},get thumbUrl(){return u()},set thumbUrl(G){u(G)},get interactiveContainer(){return y()},set interactiveContainer(G){y(G)},get interactiveController(){return w()},set interactiveController(G){w(G)},get subtitles(){return b()},set subtitles(G){b(G)},get live(){return S()},set live(G){S(G)},get preload(){return T()},set preload(G){T(G)},get autoplay(){return E()},set autoplay(G){E(G)},get volume(){return M()},set volume(G){M(G)},get muted(){return I()},set muted(G){I(G)},get fromTime(){return k()},set fromTime(G){k(G)},get canRewindLive(){return R()},set canRewindLive(G){R(G)},get showAds(){return Y()},set showAds(G){Y(G)},get adsSlotId(){return D()},set adsSlotId(G){D(G)},get adsParams(){return H()},set adsParams(G){H(G)},get adsPreviewParam(){return q()},set adsPreviewParam(G){q(G)},get adsAutoplayParam(){return J()},set adsAutoplayParam(G){J(G)},get duration(){return W()},set duration(G){W(G)},get logoClickable(){return de()},set logoClickable(G){de(G)},get logoHidden(){return ie()},set logoHidden(G){ie(G)},get isMobile(){return ve()},set isMobile(G){ve(G)},get showNextPrevButtons(){return Ie()},set showNextPrevButtons(G){Ie(G)},get nextButtonActive(){return fe()},set nextButtonActive(G){fe(G)},get prevButtonActive(){return re()},set prevButtonActive(G){re(G)},get endScreenVideoTitle(){return ke()},set endScreenVideoTitle(G){ke(G)},get endScreenVideoThumb(){return te()},set endScreenVideoThumb(G){te(G)},get isOneVideoPlaylist(){return N()},set isOneVideoPlaylist(G){N(G)},get supportLink(){return Oe()},set supportLink(G){Oe(G)},get shadowRootContainer(){return ye()},set shadowRootContainer(G){ye(G)},get outerContainerRef(){return he()},set outerContainerRef(G){he(G)},get fullScreenTarget(){return ce()},set fullScreenTarget(G){ce(G)},get failoverHosts(){return ue()},set failoverHosts(G){ue(G)},get showMiniTimer(){return we()},set showMiniTimer(G){we(G)},get saveRate(){return Z()},set saveRate(G){Z(G)},get showAutoplayNext(){return ee()},set showAutoplayNext(G){ee(G)},get seekToInteractive(){return Ke()},set seekToInteractive(G){Ke(G)},get playPrevChapter(){return Xe()},set playPrevChapter(G){Xe(G)},get volumeMultiplier(){return Ae()},set volumeMultiplier(G){Ae(G)},get showEndScreen(){return Ce()},set showEndScreen(G){Ce(G)},get keyboardControls(){return qe()},set keyboardControls(G){qe(G)}});return o(),Ho}var s5=Te('<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 Xm(t,e){let i=Ve(e,["$$slots","$$events","$$legacy","children"]);var o=s5();Pe(o,()=>({xmlns:"http://www.w3.org/2000/svg",width:"57",height:"60",fill:"none","aria-hidden":"true","data-testid":"stub-icon",role:"img",...i}));var n=_(o);xe(n,()=>{var s;return(s=e.children)!=null?s:se}),Se(),h(o),$(t,o)}function Jm(t,e){let i=m(e,"isWhite",3,!1),o=g(()=>i()?"color: #fff;":"color: #909499;");Xm(t,{get style(){return r(o)}})}var a5=A('<div class="title svelte-1y9fytq"> </div>'),l5=A('<div class="playerStub svelte-1y9fytq"><!> <!></div>'),d5={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 ev(t,e){K(t,d5);var i=l5(),o=_(i);{var n=d=>{var a=a5(),p=_(a,!0);h(a),O(()=>_e(p,e.title)),$(d,a)};L(o,d=>{e.title&&d(n)})}var s=P(o,2);{var l=d=>{let a=g(()=>!!e.thumbUrl);Jm(d,{get isWhite(){return r(a)}})};L(s,d=>{(!e.title||!e.thumbUrl)&&d(l)})}h(i),O(()=>nt(i,e.thumbUrl?`background-image: url('${e.thumbUrl}')`:"")),$(t,i)}var c5=A('<div class="playerError svelte-m5iv29"><!></div>'),u5={hash:"svelte-m5iv29",code:".playerError.svelte-m5iv29 {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;}"};function tv(t){K(t,u5);var e=c5(),i=_(e);xa(i,{}),h(e),$(t,e)}import{now as B5,ValueSubject as O5}from"@vkontakte/videoplayer-shared/es2018";import{cloneDeepWith as D5,InterfaceLanguage as H5,isNonNullable as av,Logger as F5,Observable as U5,Subscription as e0,once as z5,InternalsExposure as W5,skip as K5}from"@vkontakte/videoplayer-shared/es2018";import{clientChecker as t0,isMobile as q5}from"@vkontakte/videoplayer-core/es2018";import{OneStat as G5,ThinOneStat as Q5,MediascopePixel as Y5}from"@vkontakte/videoplayer-statistics/es2018";import{Logger as p5,Subscription as f5}from"@vkontakte/videoplayer-shared/es2018";var Tu=class{constructor(){this.subscription=new f5,this.logger=new p5,this.log=this.logger.createComponentLog("MediaSessionApi")}isSupported(){return"mediaSession"in navigator}setMetaData({title:e,artist:i="",thumbUrl:o=""}){this.isSupported()&&(navigator.mediaSession.metadata=new MediaMetadata({title:e,artist:i,artwork:[{src:o,sizes:"96x96",type:"image/png"},{src:o,sizes:"128x128",type:"image/png"},{src:o,sizes:"192x192",type:"image/png"},{src:o,sizes:"256x256",type:"image/png"},{src:o,sizes:"384x384",type:"image/png"},{src:o,sizes:"512x512",type:"image/png"}]}))}updateActionHandlers(e){this.resetActionHandlers(),this.setActionHandlers(e)}resetActionHandlers(){let e=[["play",null],["pause",null],["stop",null],["nexttrack",null],["previoustrack",null],["seekto",null],["seekbackward",null],["seekforward",null]];this.setActionHandlers(e)}setActionHandlers(e){var i,o;if(this.isSupported())for(let[n,s]of e)try{(o=(i=navigator.mediaSession).setActionHandler)==null||o.call(i,n,s)}catch(l){throw new Error(`The media session action "${n}" is not supported yet.`)}}attachToStore(e){!this.isSupported()||!e||(this.clearSubscriptions(),this.subscription.add(e.state.positionExact$.subscribe(i=>{var s,l;let o=$e(e.state.currentPlaybackRate$),n=$e(e.state.duration$);if(!(!isFinite(i)||!isFinite(n)))try{(l=(s=navigator.mediaSession).setPositionState)==null||l.call(s,{position:i,playbackRate:o,duration:n})}catch(d){this.log({message:`MediaSession setPositionState can't call with position: ${i} and duration: ${n}`})}})))}clearSubscriptions(){this.subscription.unsubscribe()}destroy(){this.resetActionHandlers(),this.clearSubscriptions()}};import{ValueSubject as nv,detectEmbed as b5}from"@vkontakte/videoplayer-shared/es2018";var m5=Te('<svg><!><g fill="var(--btn-color, #fff)"><path d="m30.744 4 .744.005c2.981.046 4.526.385 6.127 1.24a8.77 8.77 0 0 1 3.475 3.347l.174.312.15.292c.772 1.553 1.066 3.18 1.085 6.251v9.045a1.5 1.5 0 0 1-3 .016l-.008-9.651c-.04-2.032-.228-3.12-.627-4.035l-.126-.27-.13-.252A5.77 5.77 0 0 0 36.2 7.891c-1.187-.635-2.339-.873-5.115-.89L22.255 7c-2.737 0-4.003.2-5.071.698l-.133.064-.251.13a5.77 5.77 0 0 0-2.409 2.408c-.635 1.187-.873 2.339-.89 5.114l-.001 20.83c0 2.738.2 4.004.698 5.072l.064.133.13.251a5.77 5.77 0 0 0 2.408 2.409c1.1.588 2.134.825 4.438.88l.323.006 3.695.005H26a1.5 1.5 0 0 1 0 3h-.756l-3.718-.005c-2.989-.047-4.526-.377-6.14-1.24a8.77 8.77 0 0 1-3.476-3.347l-.174-.312-.15-.292c-.731-1.472-1.036-3.016-1.08-5.803l-.006-.756v-20.49l.005-.743c.046-2.981.385-4.526 1.24-6.127a8.77 8.77 0 0 1 3.347-3.475l.312-.174.292-.15c1.472-.731 3.016-1.036 5.803-1.08L22.256 4z"></path><path d="M30.5 33.8c0-1.68 0-2.52.327-3.162a3 3 0 0 1 1.311-1.311C32.78 29 33.62 29 35.3 29h6.4c1.68 0 2.52 0 3.162.327a3 3 0 0 1 1.311 1.311c.327.642.327 1.482.327 3.162v13.4c0 1.68 0 2.52-.327 3.162a3 3 0 0 1-1.311 1.311C44.22 52 43.38 52 41.7 52h-6.4c-1.68 0-2.52 0-3.162-.327a3 3 0 0 1-1.311-1.311C30.5 49.72 30.5 48.88 30.5 47.2z"></path></g></svg>');function iv(t,e){let i=Ve(e,["$$slots","$$events","$$legacy","children"]);var o=m5();Pe(o,()=>({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}));var n=_(o);xe(n,()=>{var s;return(s=e.children)!=null?s:se}),Se(),h(o),$(t,o)}var v5=A('<div><div><!></div> <span class="title svelte-1pbsod4"> </span></div>'),g5={hash:"svelte-1pbsod4",code:".player-pip-dummy.svelte-1pbsod4 {width:100%;height:100%;background-color:#19191A;display:flex;flex-direction:column;justify-content:center;align-items:center;font-family:-apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;}.player-pip-dummy.is-pip-api.svelte-1pbsod4 {position:relative;}.dummy-image.svelte-1pbsod4 svg {transform:scale(1.07143);}.dummy-image.desktop.svelte-1pbsod4 {transform:scale(1.07143) rotate(-90deg) rotateY(180deg);}.title.svelte-1pbsod4 {font-size:16px;color:#fff;padding:18px 20px 10px;text-align:center;}"};function ov(t,e){F(e,!0),K(t,g5);let[i,o]=He(),n=()=>C(p,"$interfaceLanguage$",i),s=()=>C(f,"$isMobile$",i),l=Ee(),d=Ft(),a=!!l.webApi.pictureInPictureApi,p=l.interfaceLanguage$,f=l.ui.isMobile,v=l.ui.t,u=g(()=>n()&&v("pip_dummy_title")),y=Su(d.view);var w=v5();let b;var S=_(w);let T;var E=_(S);iv(E,{}),h(S);var M=P(S,2),I=_(M,!0);h(M),h(w),O((k,R)=>{b=X(w,1,"player-pip-dummy svelte-1pbsod4",null,b,k),nt(w,y),T=X(S,1,"dummy-image svelte-1pbsod4",null,T,R),_e(I,r(u))},[()=>({"is-pip-api":a}),()=>({desktop:!s()})]),$(t,w),U(),o()}var h5=Object.defineProperty,_5=(t,e,i)=>e in t?h5(t,e,{enumerable:!0,configurable:!0,writable:!0,value:i}):t[e]=i,pl=(t,e,i)=>_5(t,typeof e!="symbol"?e+"":e,i),$5=460,y5=280,Fd=class{constructor({enabled:e=!0}={enabled:!0}){pl(this,"playerDomElement"),pl(this,"playerParentShadowRoot"),pl(this,"playerDummyElement"),pl(this,"svelteContext"),pl(this,"pipWindow"),pl(this,"info",{isActive$:new nv(!1),isEnabled$:new nv(!1),type:1}),this.info.isEnabled$=new nv(e)}isSupported(){let{isEmbed:e}=b5();return"documentPictureInPicture"in window&&!e}isActive(){return this.info.isActive$.getValue()}setPlayerDomElement(e,i){this.playerDomElement=e,this.playerParentShadowRoot=i}setContext(e){this.svelteContext=e}async request(){var e,i;if(!this.isSupported()||!this.playerDomElement||!this.playerParentShadowRoot)return;this.pipWindow=await documentPictureInPicture.requestWindow({width:$5,height:y5,copyStyleSheets:!0}),this.pipWindow.document.body.style.margin="0";let o=[...this.playerParentShadowRoot.styleSheets].map(a=>[...a.cssRules].map(p=>p.cssText).join(" ")).filter(Boolean).join(`
391
+ `),n=document.createElement("style");n.textContent=o;let s=this.createStretchedContainer(),l=s.attachShadow({mode:"open"});l.append(n),l.append(this.playerDomElement);let d={target:this.playerParentShadowRoot,context:this.svelteContext};this.playerDummyElement=Jr(ov,d),(e=this.pipWindow)==null||e.document.body.append(s),this.info.isActive$.next(!0),(i=this.pipWindow)==null||i.addEventListener("unload",a=>{!this.playerDomElement||!this.playerParentShadowRoot||!this.playerDummyElement||(ea(this.playerDummyElement),this.playerParentShadowRoot.append(this.playerDomElement),this.info.isActive$.next(!1),this.pipWindow=void 0)})}async exit(){return new Promise(e=>{var i;this.pipWindow&&((i=documentPictureInPicture.window)==null||i.close()),e()})}async dispose(){await this.exit()}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 G1(t){return t instanceof Fd}var Eu=class{static getLatestSupportedVersion(e){let i=new aa(e),o=new Fd(e);if(o.isSupported())return o;if(i.isSupported())return i}};function Ud(t,e){var n,s;let i=new Set([...Object.keys(t),...Object.keys(e)]),o={};for(let l of i)o[l]=(s=(n=e[l])!=null?n:t[l])!=null?s:void 0;return o}var Q1="Inner error. Unexpectedly root annotation container null reference exception",Y1="Annotation with such name already exists",j1="Annotation with such name does not exist";var fl=class extends Error{constructor(e){super(e),this.name="AnnotationError"}};import{observeElementSize as x5,Subscription as w5,throttleFn as C5}from"@vkontakte/videoplayer-shared/es2018";var S5="1",T5=100,Iu=class{constructor(e){this.annotationsInside=e;this.annotations=new Map;this.subscriptions=new w5}init(e){if(this.rootAnnotationsContainer=e,this.annotationsInside)return;let i=C5(()=>{for(let o of this.annotations.values())this.isElementExceedsBoundaries(o,this.playerSize.width,this.playerSize.height)?o.style.visibility="hidden":o.style.visibility="visible"},T5);this.subscriptions.add(x5(this.rootAnnotationsContainer).subscribe(({width:o,height:n})=>{this.playerSize={width:o,height:n},i()})),this.mutationObserver=new MutationObserver(i),this.mutationObserver.observe(this.rootAnnotationsContainer,{attributes:!0,childList:!0,subtree:!0,characterData:!0})}add(e,i){var o;if(!this.rootAnnotationsContainer)throw new fl(Q1);if(this.annotations.has(e))throw new fl(Y1);i.style.zIndex=(o=i.style.zIndex)!=null?o:S5,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 fl(j1);return i}remove(e){let i=this.get(e);this.annotations.delete(e)&&i.remove()}clear(){for(let e in this.annotations.keys())this.remove(e)}destroy(){var e;this.annotations.clear(),this.subscriptions.unsubscribe(),(e=this.mutationObserver)==null||e.disconnect(),this.rootAnnotationsContainer=null}isElementExceedsBoundaries(e,i,o){let n=e.offsetTop,s=e.offsetLeft,l=e.offsetWidth,d=e.offsetHeight;return n<0||s<0||s+l>i||n+d>o}registryRootContainer(e){}addLayer(e){return document.createElement("div")}getLayer(e){}removeLayer(e){}clearLayer(e){}detach(){}reattach(){}};import{assertNonNullable as ku,Subscription as E5}from"@vkontakte/videoplayer-shared/es2018";var Zo=class{init({store:e,microStores:i,interactiveController:o,config:n}){return ku(e),ku(i),ku(n),n.interactiveData&&ku(o),this.subscription=new E5,this.subscription}};var zd=class extends Zo{constructor(){super(...arguments);this.stateName="fakeIsPlaying$";this.state$={...ae(null),toggle:()=>this.state$.update(i=>!i)}}init(i){let o=super.init(i),{isInteractiveExpectation$:n}=i.store.state;return o.add(n.subscribe(s=>{this.state$.set(s?!0:null)})),o}};var Wd=class extends Zo{constructor(){super(...arguments);this.stateName="interactiveControlsOpacity$";this.state$={...ae(null),toggle:()=>this.state$.update(i=>!i)}}init(i){let o=super.init(i),{microStores:n,store:s}=i,{fakeIsPlaying$:l}=n,{isInteractiveExpectation$:d,isPlaying$:a}=s.state,{controlsVisible:p,isMobile:f}=s.ui,v=$e(f),u=()=>v&&$e(p);return o.add(p.subscribe(y=>{if(!v)return;let w=$e(l);$e(a)?this.state$.set(y):w!==null&&this.state$.set(!w||y)})),o.add(a.subscribe(y=>{this.state$.set(!y||u())})),o.add(l.subscribe(y=>{if(y===null)return;let w=$e(d);if(u()){this.state$.set(!0);return}w&&this.state$.set(!y)})),o}};var Kd=class extends Zo{constructor(){super(...arguments);this.stateName="seekToInteractiveDisabledTooltip$";this.state$=ae("tooltip_chapter_without_interactive")}init(i){let o=super.init(i),{store:n}=i;return o.add(n.state.interactiveEpisodes$.subscribe(s=>{s.length&&(s.every(l=>l.completed)?this.state$.set("tooltip_interactive_of_chapter_completed"):this.state$.set("tooltip_disabled_when_interactive"))})),o}};import{combine as I5}from"@vkontakte/videoplayer-shared/es2018";var rv=ae(!1),Pu=null,qd=class extends Zo{constructor(){super(...arguments);this.stateName="showInteractiveTimeIndicatorTooltip$";this.state$={...rv,set:(i,o=!1)=>{i!==$e(rv)&&(this.clearTimeout(),rv.set(i),!i&&Pu&&(Pu=!1),i&&o&&(this.timeout=setTimeout(()=>{this.state$.set(!1)},3e3)))},clearTimeout:()=>this.clearTimeout()}}init(i){let o=super.init(i),{store:n,config:s}=i,{isInteractiveTime$:l,isPlaying$:d}=n.state,a=n.ui.controlsVisible,{interactiveTimeIndicator:p}=n.ui.controls;o.add(a.subscribe(v=>{$e(l)&&v&&this.state$.set(!1)}));let f=(s==null?void 0:s.interactiveData)||{tooltipHelpHintActive:!1};return o.add(I5({isPlaying$:d,isInteractiveTime$:l,interactiveTimeIndicator:p}).subscribe(({isPlaying$:v,isInteractiveTime$:u,interactiveTimeIndicator:y})=>{var w,b;if(!(!v||!(y!=null&&y.isDisplayed))){if(!u)return this.state$.set(!1);f.tooltipHelpHintActive&&Pu===null&&(Pu=!0,f.tooltipHelpHintActive=!1,this.state$.set(!0),(b=(w=n.callbacks)==null?void 0:w.onInteractiveTimeIndicatorHintDeactivated)==null||b.call(w))}})),o}clearTimeout(){window.clearTimeout(this.timeout)}};import{combine as k5,noop as P5}from"@vkontakte/videoplayer-shared/es2018";var Gd=class extends Zo{constructor(){super(...arguments);this.stateName="graphIsOpened$";this.graphMadePause=!1;this.state$={...ae(null),toggle:P5};this.checkIfShouldHide=i=>Os(i,"s")}init(i){let o=super.init(i),{store:n,interactiveController:s}=i,l=n.ui.currentGridType$,d=n.getLogger().createComponentLog("GraphIsOpened microStore");return this.state$.toggle=async()=>{if(this.checkIfShouldHide($e(l)))return;let a=$e(this.state$),{isEnded$:p,playbackState$:f}=n.state,{disabledControls$:v}=n.ui.controls,u=$e(p),y=$e(f);if(a)try{await(s==null?void 0:s.toggleGraphView(!1)),this.state$.set(!1),v.remove(Lp),!u&&this.graphMadePause&&n.actions.internal.play()}catch(w){d({message:"Cant hide graph"})}else{this.graphMadePause=y==="playing";try{await(s==null?void 0:s.toggleGraphView(!0)),this.state$.set(!0),v.add(Lp),!u&&this.graphMadePause&&n.actions.internal.pause()}catch(w){d({message:"Cant show graph"})}}},o.add(k5({graphIsOpened:this.state$,currentGridType:l}).subscribe(async({graphIsOpened:a,currentGridType:p})=>{if(this.checkIfShouldHide(p)&&a)try{await(s==null?void 0:s.toggleGraphView(!1)),this.state$.set(!1)}catch(v){d({message:"Cant hide graph"})}})),o}};import{ValueSubject as Z1}from"@vkontakte/videoplayer-shared/es2018";var Qd=class extends Zo{constructor(){super(...arguments);this.stateName="pictureInPicture$";this.state$={isActive$:ae(!1),isEnabled$:ae(!1),type$:ae(void 0)}}init(i){let o=super.init(i),{store:n}=i,{info:{isActive$:s,isEnabled$:l,type:d}}=n.webApi.pictureInPictureApi||{info:{isActive$:new Z1(!1),isEnabled$:new Z1(!1)}};return o.add(s.subscribe(a=>{this.state$.isActive$.set(a)})),o.add(l.subscribe(a=>{this.state$.isEnabled$.set(a)})),this.state$.type$.set(d),o}};import{filter as L5,filterChanged as V5}from"@vkontakte/videoplayer-shared/es2018";import{safeStorage as sv}from"@vkontakte/videoplayer-shared/es2018";var X1=({maxShowCount:t,timeout:e})=>{let i=[t!==0?A5({maxCount:t}):void 0,e!==0?M5({timeout:e}):void 0].filter(o=>!!o);return{notificationShowed:o=>i.forEach(n=>n.notificationShowed(o)),canShowNotification:o=>i.every(n=>n.canShowNotification(o))}},A5=({maxCount:t})=>{let e={};return{notificationShowed:i=>{var o,n;e[i]=((o=e[i])!=null?o:0)+1,sv.set("videoplayer_notifications_manager_count",JSON.stringify((n=e[i])!=null?n:0))},canShowNotification:i=>{var o;return((o=e[i])!=null?o:0)<t}}},M5=({timeout:t})=>{let e="videoplayer_notifications_manager",i=()=>{try{return JSON.parse(sv.get(e)||"{}")}catch(s){return{}}},o=s=>sv.set(e,JSON.stringify(s)),n=s=>{let l=i();delete l[s],o(l)};return{notificationShowed:s=>{o({...i(),[s]:{timeout:t,launchTime:Date.now()}})},canShowNotification:s=>{let l=i()[s];if(l){let d=Date.now()-l.launchTime>t;return d&&n(s),d}else return!0}}};var Yd=class extends Zo{constructor(){super(...arguments);this.stateName="notifications$";this.state$={notificationsToShow$:ae({}),showNotification:i=>{this.state$.notificationsToShow$.update(o=>(o[i]=!0,o)),this.notificationManager.notificationShowed(i)},closeNotification:i=>{this.state$.notificationsToShow$.update(o=>(delete o[i],o))}}}init(i){let o=super.init(i),{store:n,uiConfig:{features:{maxCountShowSlowVideoNotification:s,timeoutShowSlowVideoNotification:l,showSlowVideoNotification:d,forceAutoQualityWhenSevereStallHappens:a}}}=i;this.notificationManager=X1({maxShowCount:s,timeout:l});let p=n.getPlayer();return o.add(p.events.severeStallOccured$.pipe(V5(),L5(f=>f)).subscribe(()=>{d&&!p.info.isAutoQualityEnabled$.getValue()&&this.notificationManager.canShowNotification("slow_video")&&(a&&n.actions.internal.setQuality("auto"),this.state$.showNotification("slow_video"))})),o}};var J1=()=>[zd,Wd,Kd,qd,Gd,Qd,Yd].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 jd}from"@vkontakte/videoplayer-shared/es2018";var Au=class{constructor(e){this.shadowRoot=e;this.lastFocusedNode=null;this.init=()=>{this.shadowRoot.addEventListener("focusin",this.handleFocusChange)};this.handleFocusChange=()=>{this.lastFocusedNode=this.shadowRoot.activeElement};this.restoreFocus=()=>{var e;(e=this.lastFocusedNode)==null||e.focus()};this.init()}destroy(){this.shadowRoot.removeEventListener("focusin",this.handleFocusChange)}};var R5=Object.defineProperty,N5=(t,e,i)=>e in t?R5(t,e,{enumerable:!0,configurable:!0,writable:!0,value:i}):t[e]=i,Gt=(t,e,i)=>N5(t,typeof e!="symbol"?e+"":e,i),j5={preload:!0,autoplay:!1,repeat:!1,fromTime:0,canRewindLive:!0,showAds:!1,interfaceLanguage:H5.RU,isCyrillicRelatedInterface:!0,logoClickable:!1,logoHidden:!1,isTouch:q5(),isMediaSessionEnabled:!0,isPictureInPictureEnabled:!0,isAudioDisabled:!1,callbacks:{uiInfo:{}},tuningConfig:{configName:[]},saveRate:!0,volumeMultiplier:1,showEndScreen:!0,showAutoplayNext:!0,showNextPrevButtons:!0},Mn=j(void 0),Mu=class extends HTMLElement{constructor(){super(),Gt(this,"svelteStubComponent"),Gt(this,"svelteRootComponent"),Gt(this,"svelteErrorComponent"),Gt(this,"store"),Gt(this,"microStoresRoot"),Gt(this,"statistics"),Gt(this,"sentry"),Gt(this,"_shadowRoot"),Gt(this,"playerContainer"),Gt(this,"rootContainer"),Gt(this,"shadowRootContainer"),Gt(this,"uiConfig"),Gt(this,"coreConfig"),Gt(this,"statisticsConfig"),Gt(this,"interactiveController"),Gt(this,"interactiveContainer"),Gt(this,"graphMadePause"),Gt(this,"currentPlayingVideoIndex",0),Gt(this,"needToRepeatPlaylist",!1),Gt(this,"videoConfig"),Gt(this,"pictureInPictureApi"),Gt(this,"mediaSessionApi"),Gt(this,"unsubscribePlayerPhaseSubscription"),Gt(this,"logger"),Gt(this,"log"),Gt(this,"subscription"),Gt(this,"interactiveSubscription"),Gt(this,"annotationsApi"),Gt(this,"slotsApi"),Gt(this,"focusManager"),Gt(this,"prevIsid"),Gt(this,"isInited",!1),Gt(this,"internalsExposure",null),Gt(this,"shadowDOMCallbacksDisabled",!1),Gt(this,"fatalError$",new O5(null)),Gt(this,"createOneStat",(e,i={})=>{var o,n,s,l;if(!this.videoConfig)return;let{albumId:d,statPlace:a,statUserSalt:p,statTrackCode:f,statVKAppId:v,refreshStatAuthToken:u,autoplay:y,isMobile:w,isTouch:b,refDomain:S,deviceId:T,interactiveData:E}=Ud(this.videoConfig,i),M=(o=E==null?void 0:E.projectInfo)==null?void 0:o.pid,I=(s=(n=this.interactiveController)==null?void 0:n.state.isReplay$.getValue())!=null?s:!1;I&&(this.prevIsid=void 0);let{unitedVideoId:k,isClip:R=!1}=e;if(this.uiConfig.features.statistics&&k)try{return new G5({movieId:k,albumId:d,place:a,trackCode:f,vkAppId:v,autoplay:(l=y&&!this.interactiveController)!=null?l:!1,mobile:b!=null?b:w,clip:R,refDomain:S,deviceId:T,...M&&(!this.isInited||I)&&{projectId:Number(M)}},{refreshAuthToken:u,userSalt:p,config:this.statisticsConfig,...this.interactiveController&&{useIsid:!0,isid:this.prevIsid}})}catch(D){console.error(D),this.log({message:D.message})}}),jd.create("ui"),this.logger=new F5,this.log=this.logger.createComponentLog("VKVideoPlayer"),this.subscription=new e0,this.interactiveSubscription=new e0,this.graphMadePause=!1,this.fatalError$.subscribe(e=>{this.unmountComponent(this.svelteErrorComponent),e&&(this.unmountComponent(this.svelteStubComponent),this.unmountComponent(this.svelteRootComponent),this.svelteErrorComponent=Jr(tv,{target:this.playerContainer}))})}connectedCallback(){var e,i;if(this.rootContainer)return;this.initPlayerRootContainers();let o=(e=this.getAttribute("stub-title"))!=null?e:void 0,n=(i=this.getAttribute("stub-thumb-url"))!=null?i:void 0,s=si({title:o,thumbUrl:n}),l={target:this.playerContainer,props:s};this.svelteStubComponent=Jr(ev,l)}disconnectedCallback(){var e,i,o,n,s,l,d;this.shadowDOMCallbacksDisabled||((e=this.annotationsApi)==null||e.destroy(),(i=this.slotsApi)==null||i.destroy(),(o=this.focusManager)==null||o.destroy(),(n=this.mediaSessionApi)==null||n.destroy(),this.unmountComponent(this.svelteRootComponent),this.unmountComponent(this.svelteStubComponent),this.unmountComponent(this.svelteErrorComponent),this.subscription.unsubscribe(),(s=this.unsubscribePlayerPhaseSubscription)==null||s.call(this),(l=this.interactiveController)==null||l.destroy(),this.interactiveSubscription.unsubscribe(),(d=this.internalsExposure)==null||d.destroy(),jd.destroy("ui"))}initPlayerRootContainers(){this.rootContainer=document.createElement("div"),this.rootContainer.style.position="relative",this.rootContainer.className="root-container",this.rootContainer.style.width="100%",this.rootContainer.style.height="100%",this.rootContainer.style.minHeight="206px",this.shadowRootContainer=document.createElement("div"),this.shadowRootContainer.style.position="absolute",this.shadowRootContainer.className="shadow-root-container",this.shadowRootContainer.style.width="100%",this.shadowRootContainer.style.height="100%",this._shadowRoot=this.shadowRootContainer.attachShadow({mode:"open"}),this.playerContainer=document.createElement("div"),this.playerContainer.style.all="initial",this.playerContainer.style.display="block",this.playerContainer.style.contain="strict",this.playerContainer.style.width="100%",this.playerContainer.style.height="100%",this._shadowRoot.append(this.playerContainer),this.rootContainer.append(this.shadowRootContainer),this.append(this.rootContainer)}needToShowNextPrevButtons(){return this.videoConfig?this.videoConfig.videos.length>1&&this.videoConfig.showNextPrevButtons:!1}isNextButtonActive(){return this.videoConfig?this.needToShowNextPrevButtons()&&(this.currentPlayingVideoIndex<this.videoConfig.videos.length-1||this.needToRepeatPlaylist):!1}isPrevButtonActive(){return this.videoConfig?this.needToShowNextPrevButtons()&&(this.currentPlayingVideoIndex>0||this.needToRepeatPlaylist):!1}isControlDisabled(e){var i;let o=(i=this.store)==null?void 0:i.ui.controls.disabledControls$;return(o==null?void 0:o.includes(e))||!1}getNextVideoInfo(){if(!this.videoConfig)return{nextVideoTitle:void 0,nextVideoThumb:void 0};let e=this.videoConfig.videos[this.currentPlayingVideoIndex+1]||{};return{nextVideoTitle:e.title,nextVideoThumb:e.thumbUrl}}createThinOneStat(e,i={}){if(!this.videoConfig)return;let{deviceId:o,preload:n,refreshStatAuthToken:s}=Ud(this.videoConfig,i),{unitedVideoId:l}=e;if(this.uiConfig.features.thinStatistics&&l)return new Q5.ThinOneStat({deviceId:o,movieId:l,preload:n},{config:this.statisticsConfig,refreshAuthToken:s})}createPlayer(e,i={},o){var n,s,l,d,a,p,f,v,u,y;if(!this.videoConfig)return;let{albumId:w,statPlace:b,statAuthToken:S,preload:T,autoplay:E,volume:M,muted:I,fromTime:k,canRewindLive:R,supportLink:Y,showAds:D,adsSlotId:H,adsParams:q={},adsPreviewParam:J,adsAutoplayParam:W,interfaceLanguage:de,isCyrillicRelatedInterface:ie,logoClickable:ve,logoHidden:Ie,isMobile:fe,isTouch:re,isAudioDisabled:ke,isLiveCatchUpMode:te,fullScreenTarget:N,failoverHosts:Oe,canDownload:ye,callbacks:he,interactiveData:ce,showThumbTimer:ue,additionalButtons:we=[],additionalSettingsMenuItems:Z=[],additionalContextMenuItems:Ke=[],repeat:Xe,saveRate:Ae,volumeMultiplier:ee,showEndScreen:Ce,showAutoplayNext:qe,mediascopePixels:st}=Ud(this.videoConfig,i),{sources:ct,title:bt,thumbUrl:St,unitedVideoId:Ge,isClip:Wt=!1,duration:Qt,adsParams:qt={},videoEpisodes:Nt,previewThumbsData:oe,subtitles:At,live:ge}=e;if(!ct&&!ge){let ti=new Error("empty sources and live");this.fatalError$.next(ti),(n=he.onCrashed)==null||n.call(he,ti.message);return}let be={...q,...qt},le=this.getNextVideoInfo(),De={sources:ct,title:bt,thumbUrl:St,subtitles:At,unitedVideoId:Ge,isClip:Wt,live:ge,albumId:w,statPlace:b,autoplay:E,muted:I,volume:M,fromTime:k,canRewindLive:R,showAds:D,adsSlotId:H,adsParams:be,adsPreviewParam:J,adsAutoplayParam:W,duration:Qt,logoClickable:ve,logoHidden:Ie,isTouch:re!=null?re:fe,repeat:Xe,showNextPrevButtons:this.needToShowNextPrevButtons(),nextButtonActive:this.isNextButtonActive(),prevButtonActive:this.isPrevButtonActive(),endScreenVideoTitle:le.nextVideoTitle,endScreenVideoThumb:le.nextVideoThumb,isOneVideoPlaylist:this.isOneVideoPlaylist()},ze={pictureInPictureApi:this.pictureInPictureApi,annotationsApi:this.annotationsApi,slotsApi:this.slotsApi};this.log({message:`create player, props: ${JSON.stringify(De)}`});let Le=(s=this.interactiveController)==null?void 0:s.state.statistics$.getValue(),Ye=(Le==null?void 0:Le.oneStat)||this.createOneStat(e,i),Re=this.createThinOneStat(e,i),tt;st&&(tt=new Y5({pixels:st})),(Ye||Re)&&(this.statistics=new du(Ye,Re,tt,Le==null?void 0:Le.statSubscription)),this.uiConfig.features.sentry&&this.uiConfig.sentry.dsn&&new sa(this.uiConfig.sentry,{version:Ja,env:Vc},{movieId:Ge,albumId:w,place:b,autoplay:(l=E&&!this.interactiveController)!=null?l:!1,mobile:re!=null?re:fe,clip:Wt}),this.interactiveController&&((p=this.prevIsid)!=null||(this.prevIsid=(a=(d=this.statistics)==null?void 0:d.oneStat)==null?void 0:a.isid$.getValue())),this.sentry={...this.sentry,...sa.getInstance()};let Mt=!!ce,Je=[],ai="tooltip_interactive_go_back_disabled_first";if(Mt&&this.interactiveController){let ti=this.interactiveController.state.isInitialChapter$.getValue(),ui=this.interactiveController.getHistoryState();ti&&Je.push("REPLAY_BUTTON"),this.interactiveController.getIsSeekable().getValue()||Je.push("SEEK_TO_INTERACTIVE_BUTTON"),ui.hasPrevChapter$.getValue()||(Je.push("PLAY_PREV_CHAPTER_BUTTON"),ti||(ui.isGoBackLimited$.getValue()?ai="tooltip_interactive_go_back_disabled_limit":ai="tooltip_interactive_go_back_disabled"))}let mi=()=>{var ti;this.isInited=!1,this.prevIsid=void 0;let ui=(o==null?void 0:o.info.isEnded$.getValue())&&((ti=this.interactiveController)==null?void 0:ti.state.isEndChapter$.getValue());he.onReplayInteractiveVideo&&!ui?he.onReplayInteractiveVideo():this.replayInteractiveVideo()};this.store=m1({player:o,interfaceLanguage:de,isCyrillicRelatedInterface:ie,videoId:Ge,isClip:Wt,isLiveCatchUpMode:te,isAudioDisabled:ke,statAuthToken:S,callbacks:he,webApi:ze,videoEpisodes:Nt,previewThumbsData:oe,canDownload:ye,uiConfig:this.uiConfig,coreConfig:this.coreConfig,disabledControls:Je,isInteractive:Mt,saveRate:Ae,interactiveRanges$:(f=this.interactiveController)==null?void 0:f.state.interactiveRanges$,isInteractiveTime$:(v=this.interactiveController)==null?void 0:v.state.isInteractiveTime$,stopPlayer:()=>this.stop(),replayInteractive:mi,playPrevChapterDisabledTooltip:ai,hasInteractiveBranches:!!((y=(u=this.interactiveController)==null?void 0:u.getChapterBranches())!=null&&y.length),additionalButtons:this.uiConfig.features.additionalButtons?we:[],additionalSettingsMenuItems:Z!=null?Z:[],additionalContextMenuItems:Ke!=null?Ke:[],playPrevVideo:()=>this.playPrevVideo(),playNextVideo:()=>this.playNextVideo(),looped:Xe&&this.videoConfig.videos.length===1,statistics:this.statistics,internalsExposure:this.internalsExposure,playerView:this.videoConfig.playerView});let{stores:at}=this.microStoresRoot=J1(),Xt=()=>{var ti,ui,wo,po,Yt,wi;if(!this.store||!this.microStoresRoot||!this.videoConfig)return;this.subscription.add(this.store.state.currentFormat$.subscribe(yt=>{var ht;return(ht=he==null?void 0:he.onCurrentFormatChanged)==null?void 0:ht.call(he,yt)})),this.subscription.add(at.interactiveControlsOpacity$.subscribe(yt=>{var ht;yt!==null&&((ht=this==null?void 0:this.interactiveController)==null||ht.setDisabledControls(yt))})),this.subscription.add(this.store.state.throughputEstimation$.subscribe(yt=>{var ht;return(ht=he==null?void 0:he.onThroughputEstimationChanged)==null?void 0:ht.call(he,yt)})),this.subscription.add(this.store.state.trafficSavingEnabled$.subscribe(yt=>{var ht;return(ht=he==null?void 0:he.onTrafficSavingEnabledChanged)==null?void 0:ht.call(he,yt)})),this.subscription.add(new U5(yt=>{this.store&&this.subscription.add(this.store.state.currentPlaybackRate$.subscribe(ht=>yt.next(ht)))}).pipe(this.uiConfig.features.skipInitialPlaybackRateValue?K5(1):yt=>yt).subscribe(yt=>{var ht;return(ht=he==null?void 0:he.onCurrentPlaybackRateChanged)==null?void 0:ht.call(he,yt)})),this.subscription.add(this.store.state.volume$.subscribe(yt=>{var ht;return(ht=he==null?void 0:he.onVolumeChange)==null?void 0:ht.call(he,yt)})),this.subscription.add(this.store.state.muted$.subscribe(yt=>{var ht,Ci,Ho,G;if(yt)(ht=he==null?void 0:he.onMute)==null||ht.call(he);else{let Bt=(Ho=((Ci=this.store)==null?void 0:Ci.state.volume$)&&$e(this.store.state.volume$))!=null?Ho:0;(G=he==null?void 0:he.onUnmute)==null||G.call(he,Bt)}})),this.subscription.add(this.store.state.videoBitrate$.subscribe(yt=>{var ht;return(ht=he==null?void 0:he.onVideoBitrateChanged)==null?void 0:ht.call(he,yt)})),this.subscription.add(this.store.state.isInteractiveTime$.subscribe(yt=>{var ht;let Ci=(ht=this.store)==null?void 0:ht.ui.controls.disabledControls$;Ci&&(yt&&!Ci.includes(Gl)&&Ci.add(Gl),yt||Ci.remove(Gl))})),this.subscription.add(this.store.ui.isFullscreen.subscribe(async yt=>{var ht;if(!t0.browser.isSamsungBrowser||!yt||!this.interactiveController)return;document.fullscreenElement===this.shadowRootContainer&&await this.replayInteractiveChapter((ht=this.videoConfig)==null?void 0:ht.callbacks.onExternalFullscreenExit)})),this.statistics&&this.statistics.oneStat&&this.subscription.add(this.statistics.oneStat.vsid$.subscribe(yt=>{var ht;return(ht=he==null?void 0:he.onVSIDChanged)==null?void 0:ht.call(he,yt)})),this.initMediaSession(),B(Mn,{interactiveController:this.interactiveController,interactiveContainer:this.interactiveContainer,sources:ct,store:this.store,microStoresRoot:this.microStoresRoot,videoConfig:this.videoConfig,uiConfig:this.uiConfig,title:bt,thumbUrl:St,subtitles:At,live:ge,preload:T,autoplay:E,muted:I,volume:M,fromTime:k,canRewindLive:R,supportLink:Y,showAds:D,adsSlotId:H,adsParams:be,adsPreviewParam:J,adsAutoplayParam:W,duration:Qt,logoClickable:ve,logoHidden:Ie,isMobile:re!=null?re:fe,failoverHosts:Oe,fullScreenTarget:N,saveRate:Ae,shadowRootContainer:this.shadowRootContainer,showMiniTimer:ue,outerContainerRef:this.rootContainer,showNextPrevButtons:this.needToShowNextPrevButtons(),nextButtonActive:this.isNextButtonActive(),prevButtonActive:this.isPrevButtonActive(),endScreenVideoTitle:le.nextVideoTitle,endScreenVideoThumb:le.nextVideoThumb,isOneVideoPlaylist:this.isOneVideoPlaylist(),playPrevChapter:()=>this.playPrevChapter(),seekToInteractive:()=>this.seekToInteractive(),volumeMultiplier:ee,showEndScreen:Ce,showAutoplayNext:qe},!0);let Yi={target:this.playerContainer,props:r(Mn)};this.svelteRootComponent=Jr(Zm,Yi),this.addPlayerInfoSubscriptions(),this.isInited||(this.isInited=!0,(wo=(ui=(ti=this.videoConfig)==null?void 0:ti.callbacks)==null?void 0:ui.onInited)==null||wo.call(ui)),(po=this.internalsExposure)==null||po.expose({player:this,videoConfig:this.videoConfig,coreConfig:this.coreConfig,uiConfig:this.uiConfig,statisticsConfig:this.statisticsConfig,logger:this.logger,log:this.log}),this.uiConfig.devNullLog&&((wi=(Yt=this.videoConfig)==null?void 0:Yt.callbacks)!=null&&wi.onDevNullLog)?jd.subscribe("ui",this.videoConfig.callbacks.onDevNullLog):jd.destroy("ui")};this.coreConfig.asyncResolveClientChecker?t0.isInited$.subscribe(ti=>{ti&&(console.log("UI SDK async start"),Xt())}):Xt()}addPlayerInfoSubscriptions(){var e,i;let o=this.store,n=(e=this.microStoresRoot)==null?void 0:e.stores;if(!o||!n)return;let s=(i=this.videoConfig)==null?void 0:i.callbacks;s&&this.subscription.add(o.playerPhase.subscribe(d=>{var a;return(a=s.onPlayerPhaseChanged)==null?void 0:a.call(s,d)})).add(o.state.playbackState$.subscribe(d=>{var a;return d&&((a=s.onPlaybackStateChanged)==null?void 0:a.call(s,d))})).add(o.state.isLive$.subscribe(d=>{var a;return(a=s.onIsLiveChanged)==null?void 0:a.call(s,d)})).add(o.state.isActiveLive$.subscribe(d=>{var a;return(a=s.onIsActiveLiveChanged)==null?void 0:a.call(s,d)})).add(o.state.isAudioAvailable$.subscribe(d=>{var a;return(a=s.onIsAudioAvailableChanged)==null?void 0:a.call(s,d)})).add(o.state.currentQuality$.subscribe(d=>{var a;return(a=s.onCurrentQualityChanged)==null?void 0:a.call(s,d)})).add(o.state.availableQualities$.subscribe(d=>{var a;return(a=s.onAvailableQualitiesChanged)==null?void 0:a.call(s,d.map(({value:p})=>p).filter(p=>p!=="auto"))})).add(o.state.availableAudioStreams$.subscribe(d=>{d.length>1&&s.onAudioLanguagesAvailable&&s.onAudioLanguagesAvailable()})).add(n.pictureInPicture$.isActive$.subscribe(d=>{var a,p;return d?(a=s.onPiPEnter)==null?void 0:a.call(s):(p=s.onPiPExit)==null?void 0:p.call(s)}));let l=s==null?void 0:s.uiInfo;l&&this.subscription.add(o.ui.controlsVisible.subscribe(d=>{var a;return(a=l.onControlsVisibleChanged)==null?void 0:a.call(l,d)})).add(o.ui.isMobile.subscribe(d=>{var a;return(a=l.onIsMobileChanged)==null?void 0:a.call(l,d)})).add(o.ui.playerSize.subscribe(d=>{var a;return(a=l.onPlayerSizeChanged)==null?void 0:a.call(l,d)})).add(o.ui.controls.prevButton.subscribe(d=>{var a;return(a=l.onPrevButtonChanged)==null?void 0:a.call(l,d)})).add(o.ui.controls.playButton.subscribe(d=>{var a;return(a=l.onPlayButtonChanged)==null?void 0:a.call(l,d)})).add(o.ui.controls.replayButton.subscribe(d=>{var a;return(a=l.onReplayButtonChanged)==null?void 0:a.call(l,d)})).add(o.ui.controls.nextButton.subscribe(d=>{var a;return(a=l.onNextButtonChanged)==null?void 0:a.call(l,d)})).add(o.ui.controls.playPrevChapterButton.subscribe(d=>{var a;return(a=l.onPlayPrevChapterChanged)==null?void 0:a.call(l,d)})).add(o.ui.controls.seekToInteractiveButton.subscribe(d=>{var a;return(a=l.onSeekToInteractiveButtonChanged)==null?void 0:a.call(l,d)})).add(o.ui.controls.interactiveGraphButton.subscribe(d=>{var a;return(a=l.onGraphButtonChanged)==null?void 0:a.call(l,d)})).add(o.ui.controls.liveButton.subscribe(d=>{var a;return(a=l.onLiveButtonChanged)==null?void 0:a.call(l,d)})).add(o.ui.controls.time.subscribe(d=>{var a;return(a=l.onTimeUpdateChanged)==null?void 0:a.call(l,d)})).add(o.ui.controls.episodes.subscribe(d=>{var a;return(a=l.onEpisodesChanged)==null?void 0:a.call(l,d)})).add(o.ui.controls.subtitles.subscribe(d=>{var a;return(a=l.onSubtitlesChanged)==null?void 0:a.call(l,d)})).add(o.ui.controlBlocks.topLeft.subscribe(d=>{var a;return(a=l.onTopLeftControlBlockChanged)==null?void 0:a.call(l,d)})).add(o.ui.controlBlocks.topRight.subscribe(d=>{var a;return(a=l.onTopRightControlBlockChanged)==null?void 0:a.call(l,d)})).add(o.ui.controlBlocks.bottomLeft.subscribe(d=>{var a;return(a=l.onBottomLeftControlBlockChanged)==null?void 0:a.call(l,d)})).add(o.ui.controlBlocks.bottomRight.subscribe(d=>{var a;return(a=l.onBottomRightControlBlockChanged)==null?void 0:a.call(l,d)})).add(o.ui.controlBlocks.middle.subscribe(d=>{var a;return(a=l.onMiddleControlBlockChanged)==null?void 0:a.call(l,d)})).add(o.ui.controlBlocks.bottom.subscribe(d=>{var a;return(a=l.onBottomControlBlockChanged)==null?void 0:a.call(l,d)})).add(o.ui.videoTitleInfo.subscribe(d=>{var a;return(a=l.onTitleChanged)==null?void 0:a.call(l,d)})).add(o.ui.controls.settings.subscribe(d=>{var a;return(a=l.onSettingsChanged)==null?void 0:a.call(l,d)})).add(o.ui.controls.fullscreen.subscribe(d=>{var a;return(a=l.onFullscreenChanged)==null?void 0:a.call(l,d)})).add(o.ui.controls.chromecast.subscribe(d=>{var a;return(a=l.onChromecastChanged)==null?void 0:a.call(l,d)})).add(o.ui.controls.pip.subscribe(d=>{var a;return(a=l.onPipChanged)==null?void 0:a.call(l,d)})).add(o.ui.controls.vkLogo.subscribe(d=>{var a;return(a=l.onVkLogoChanged)==null?void 0:a.call(l,d)})).add(o.ui.controls.interactiveTimeIndicator.subscribe(d=>{var a;return(a=l.onInteractiveTimeIndicatorChanged)==null?void 0:a.call(l,d)})).add(o.ui.controls.timeline.subscribe(d=>{var a;return(a=l.onTimelineChanged)==null?void 0:a.call(l,d)}))}playNextVideo(){this.videoConfig&&(this.currentPlayingVideoIndex++,this.currentPlayingVideoIndex>=this.videoConfig.videos.length&&(this.currentPlayingVideoIndex=0),this.log({message:`play next video, index: ${this.currentPlayingVideoIndex}`}),this.createPlayerWithCurrentVideo())}playPrevVideo(){this.videoConfig&&(this.currentPlayingVideoIndex--,this.currentPlayingVideoIndex<0&&(this.currentPlayingVideoIndex=this.videoConfig.videos.length-1),this.log({message:`play prev video, index: ${this.currentPlayingVideoIndex}`}),this.createPlayerWithCurrentVideo())}createPlayerWithCurrentVideo(e,i=!0){var o;if(!this.videoConfig)return;let n=this.videoConfig.videos[this.currentPlayingVideoIndex];if(!n){this.log({message:"no next video"});return}this.isInited&&av(n.unitedVideoId)&&((o=this.store)==null||o.actions.internal.nextMovie(n.unitedVideoId)),this.unmountComponent(this.svelteRootComponent),this.createPlayer(n,{autoplay:i,fromTime:0},e)}playPrevChapter(){var e;(e=this.interactiveController)==null||e.playPrevChapter()}seekToInteractive(){var e;let i=(e=this.interactiveController)==null?void 0:e.getNextInteractiveStartTime();typeof i=="number"&&this.seekTime(i/1e3)}async initInteractives(){var e,i,o,n,s,l;if((e=this.videoConfig)!=null&&e.interactiveData)try{let{Interactives:d}=await import("@vkontakte/videoplayer-interactive/es2018");this.interactiveContainer=document.createElement("div"),this.interactiveContainer.classList.add("interactive-root");let a=(i=this.store)==null?void 0:i.interfaceLanguage$,p=a?$e(a):this.videoConfig.interfaceLanguage,{projectInfo:f,initChapterId:v,historyApi:u,videoLoader:y}=this.videoConfig.interactiveData;this.interactiveController=new d({parentElement:this.interactiveContainer,fullscreenTargetElement:this.playerContainer,lang:p,graph:this.uiConfig.features.interactiveGraph,projectInfo:f,initChapterId:v,historyApi:u,vkVideoLoader:y,lastFrame:this.uiConfig.features.interactiveLastFrame,permanentTextControls:this.uiConfig.features.interactiveTextPermanent,interactiveTimeOpenUri:this.uiConfig.features.interactiveTimeOpenUri,initSeamless:!0,config:this.uiConfig.interactive,coreConfig:this.coreConfig,createOneStat:this.createOneStat,isTouch:this.videoConfig.isTouch,animationsFeatureToggles:{areaControlShadow:this.uiConfig.features.interactiveAreaControlShadow,controlsExpectTimeBlinkAnimation:this.uiConfig.features.interactiveControlsExpectTimeBlinkAnimation,controlsTapPlace:this.uiConfig.features.interactiveControlsTapPlace,controlsFillAnimation:this.uiConfig.features.interactiveControlsFillAnimation,controlsHideAnimation:this.uiConfig.features.interactiveControlsHideAnimation},endChapterHistoryFix:this.uiConfig.features.interactiveHistoryEndChapterFix});let{isInteractiveExpectation$:w,isSeekable$:b}=this.interactiveController.state;this.uiConfig.features.seekToInteractive&&this.subscription.add(b.subscribe(T=>{if(!this.isInited)return;let E=this.store;T?E.ui.controls.disabledControls$.remove("SEEK_TO_INTERACTIVE_BUTTON"):E.ui.controls.disabledControls$.add("SEEK_TO_INTERACTIVE_BUTTON")})),this.subscription.add(w.subscribe(T=>{this.store&&this.store.state.isInteractiveExpectation$.set(T)}));let S=!0;if(this.subscription.add(this.interactiveController.events.playerChanged$.subscribe(T=>{if(!this.videoConfig)return;this.videoConfig.videos[this.currentPlayingVideoIndex]={...T.config,title:(f==null?void 0:f.title)||T.config.title};let E=S?this.videoConfig.autoplay:!0;this.createPlayerWithCurrentVideo(T.player,E),S&&(S=!1)})),this.interactiveSubscription.add(this.interactiveController.events.interactiveActionChoice$.subscribe(({type:T,actionType:E})=>{var M,I,k,R,Y,D;if(!this.store||!this.microStoresRoot)return;let H=w.getValue();if(T==="action-choice"&&E==="setRandomBranch"&&(this.microStoresRoot.stores.graphIsOpened$.set(!1),this.store.ui.controls.disabledControls$.remove(Ql)),T==="action-choice-canceled"){let q=$e(this.store.state.isPlaying$)||H;if(((k=(M=this.videoConfig)==null?void 0:M.isTouch)!=null?k:(I=this.videoConfig)!=null&&I.isMobile)&&q){this.store.ui.interactiveHideMobileControls.set(!0);return}(D=(R=this.videoConfig)==null?void 0:(Y=R.callbacks).onDisabledInteractiveClick)==null||D.call(Y)}})),this.interactiveSubscription.add(this.interactiveController.events.interactiveContainerFakeRemoved$.subscribe(({type:T,removeAllOpenURI:E})=>{this.store&&T==="container-fake-removed"&&E&&this.store.ui.controls.disabledControls$.remove(Ql)})),await this.interactiveController.setManifest(this.videoConfig.interactiveData.manifest),(n=(o=this.videoConfig)==null?void 0:o.callbacks)!=null&&n.onInteractiveHistoryChanged){let T=this.interactiveController.getHistoryState();this.subscription.add(T.history$.subscribe(E=>{var M,I,k;E.length&&((k=(I=(M=this.videoConfig)==null?void 0:M.callbacks)==null?void 0:I.onInteractiveHistoryChanged)==null||k.call(I,E))}))}(l=(s=this.videoConfig)==null?void 0:s.callbacks)!=null&&l.onInteractiveChapterChanged&&this.subscription.add(this.interactiveController.events.chapterChanged$.subscribe(T=>{var E,M,I;(I=(E=this.videoConfig)==null?void 0:(M=E.callbacks).onInteractiveChapterChanged)==null||I.call(M,T.chapter,T.manifestVideo)})),this.uiConfig.features.interactiveTimeIndicator&&this.subscription.add(this.interactiveController.events.noInteraction$.subscribe(()=>{var T,E,M,I;(T=this.microStoresRoot)==null||T.stores.showInteractiveTimeIndicatorTooltip$.set(!0,!0),(I=(E=this.videoConfig)==null?void 0:(M=E.callbacks).onInteractiveTimeIndicatorClick)==null||I.call(M)})),this.interactiveSubscription.add(this.interactiveController.events.error$.subscribe(T=>{this.log({message:T.toString()})}))}catch(d){this.log({message:d.message})}}initPlayer(e,i={}){var o,n,s,l,d,a,p,f,v,u,y,w,b,S,T,E,M,I,k,R,Y,D,H,q,J,W,de,ie;if(!Array.isArray(e.videos)||e.videos.length===0&&!e.interactiveData){let ve=new Error("empty videos");this.fatalError$.next(ve),(n=(o=e.callbacks)==null?void 0:o.onCrashed)==null||n.call(o,ve.message);return}else this.fatalError$.next(null);if(this.videoConfig=Ud(j5,D5(e,ve=>ve instanceof HTMLElement?ve:void 0)),this.uiConfig=Qg((s=i.ui)!=null?s:{}),this.coreConfig=(l=i.core)!=null?l:{configName:[]},this.statisticsConfig=(d=i.statistics)!=null?d:{},this.uiConfig.features.forcePlayerDisplayBlock&&(this.rootContainer&&(this.rootContainer.style.minHeight="unset"),this.style.display="block",this.style.width="100%",this.style.height="100%"),this.videoConfig.playerView==="preview"&&(this.playerContainer.style.contain="none"),this.sentry={config:(a=this.uiConfig.sentry)!=null?a:{}},this.uiConfig.features.exposeInternalsToGlobal&&((p=this.internalsExposure)!=null||(this.internalsExposure=new W5("UI"))),jd.push("ui",{key:"videoplayer_embed",strings:["new","player_init_player","ads.enable: "+this.uiConfig.ads.enable,"showAds: "+((f=this.videoConfig)==null?void 0:f.showAds)],numbers:[B5()]}),av(this.videoConfig.isMediaSessionEnabled)&&(this.uiConfig.features.mediaSession=(u=(v=this.uiConfig.features.mediaSession)!=null?v:this.videoConfig.isMediaSessionEnabled)!=null?u:!0),av(this.videoConfig.isPictureInPictureEnabled)&&(this.uiConfig.features.pip=(w=(y=this.uiConfig.features.pip)!=null?y:this.videoConfig.isPictureInPictureEnabled)!=null?w:!0,this.uiConfig.features.dpip=(S=(b=this.uiConfig.features.dpip)!=null?b:this.videoConfig.isPictureInPictureEnabled)!=null?S:!0),this.videoConfig.isTouch=(E=(T=this.uiConfig.isMobile)!=null?T:this.videoConfig.isTouch)!=null?E:this.videoConfig.isMobile,(M=this.videoConfig).autoplay&&(M.autoplay=this.uiConfig.features.autoplay),this.videoConfig.showAds=(I=this.uiConfig.ads.enable)!=null?I:this.videoConfig.showAds,this.videoConfig.adsSlotId=(k=this.uiConfig.ads.slot)!=null?k:this.videoConfig.adsSlotId,this.videoConfig.adsPreviewParam=(R=this.uiConfig.ads.preview)!=null?R:this.videoConfig.adsPreviewParam,this.videoConfig.logoHidden=!((Y=this.uiConfig.showLogo)!=null?Y:!this.videoConfig.logoHidden),(D=this.videoConfig).canRewindLive&&(D.canRewindLive=this.uiConfig.features.liveRewind),this.videoConfig.supportLink=(H=this.videoConfig.supportLink)!=null?H:this.uiConfig.supportLink,this.videoConfig.showEndScreen=(q=this.uiConfig.features.endScreen)!=null?q:this.videoConfig.showEndScreen,this.videoConfig.showAutoplayNext=(J=this.uiConfig.features.autoplayNext)!=null?J:this.videoConfig.showAutoplayNext,this.videoConfig.showNextPrevButtons=(W=this.uiConfig.features.nextPrevButtons)!=null?W:this.videoConfig.showNextPrevButtons,this.currentPlayingVideoIndex=this.videoConfig.videoIndex&&((de=this.videoConfig.videos)!=null&&de[this.videoConfig.videoIndex])?this.videoConfig.videoIndex:0,this.needToRepeatPlaylist=this.videoConfig.repeat,this.uiConfig.features.pip){let ve={enabled:this.videoConfig.pipEnabled};this.uiConfig.features.dpip?this.pictureInPictureApi=Eu.getLatestSupportedVersion(ve):this.pictureInPictureApi=new aa(ve)}this.mediaSessionApi=this.uiConfig.features.mediaSession?new Tu:void 0,this.slotsApi=this.uiConfig.features.slots?new xu:void 0,this.annotationsApi=this.uiConfig.features.annotations?new Iu(this.uiConfig.features.annotationsInside):void 0,this.annotationsApi&&!this.uiConfig.features.annotationsInside&&this.annotationsApi.init(this.rootContainer),this.unmountComponent(this.svelteStubComponent),this.unmountComponent(this.svelteRootComponent),this.unmountComponent(this.svelteErrorComponent),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]),G1(this.pictureInPictureApi)&&this.pictureInPictureApi.setPlayerDomElement(this.playerContainer,this._shadowRoot),(ie=this.slotsApi)==null||ie.init(this.shadowRootContainer,this.store),this.focusManager=this._shadowRoot?new Au(this._shadowRoot):void 0}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(Mn)&&(r(Mn).showNextPrevButtons=this.needToShowNextPrevButtons(),r(Mn).nextButtonActive=this.isNextButtonActive(),r(Mn).prevButtonActive=this.isPrevButtonActive(),r(Mn).endScreenVideoTitle=o.nextVideoTitle,r(Mn).endScreenVideoThumb=o.nextVideoThumb,r(Mn).isOneVideoPlaylist=this.isOneVideoPlaylist())}updatePrevVideos(e){this.updateVideos(e,"prev")}updateNextVideos(e){this.updateVideos(e,"next")}initMediaSession(){var e,i;this.mediaSessionApi&&((e=this.unsubscribePlayerPhaseSubscription)==null||e.call(this),this.mediaSessionApi.clearSubscriptions(),this.unsubscribePlayerPhaseSubscription=(i=this.store)==null?void 0:i.playerPhase.subscribe(o=>{o==="video"?this.setupMediaSessionForVideo():o==="ads"&&this.setupMediaSessionForAds()}))}setupMediaSessionForVideo(){if(!(!this.videoConfig||!this.mediaSessionApi))try{let{title:e,thumbUrl:i}={...this.videoConfig.videos[this.currentPlayingVideoIndex]},o=[["play",()=>this.play()],["pause",()=>this.pause()],["seekto",n=>this.seekTime(n.seekTime)]];this.videoConfig.videos.length>1&&(this.currentPlayingVideoIndex<this.videoConfig.videos.length-1&&o.push(["nexttrack",()=>{var n,s,l;if(this.uiConfig.features.useCallbackForMediaSessionNextPrevClick)try{(l=(s=(n=this.videoConfig)==null?void 0:n.callbacks)==null?void 0:s.onNextVideoClick)==null||l.call(s)}catch(d){this.log({message:"onNextVideoClick callback failed to execute"})}else this.playNextVideo()}]),this.currentPlayingVideoIndex>0&&o.push(["previoustrack",()=>{var n,s,l;if(this.uiConfig.features.useCallbackForMediaSessionNextPrevClick)try{(l=(s=(n=this.videoConfig)==null?void 0:n.callbacks)==null?void 0:s.onPrevVideoClick)==null||l.call(s)}catch(d){this.log({message:"onPrevVideoClick callback failed to execute"})}else this.playPrevVideo()}])),this.mediaSessionApi.setMetaData({title:e,thumbUrl:i}),this.mediaSessionApi.updateActionHandlers(o),this.mediaSessionApi.attachToStore(this.store)}catch(e){this.log({message:e.message})}}setupMediaSessionForAds(){if(!(!this.videoConfig||!this.mediaSessionApi))try{let e="\u0420\u0435\u043A\u043B\u0430\u043C\u0430",i=[["play",()=>this.play()],["pause",()=>this.pause()]];this.mediaSessionApi.setMetaData({title:e}),this.mediaSessionApi.updateActionHandlers(i),this.mediaSessionApi.attachToStore(this.store)}catch(e){this.log({message:e.message})}}moveTo(e){this.shadowDOMCallbacksDisabled=!0,e.append(this),this.shadowDOMCallbacksDisabled=!1}play(){var e,i,o,n;this.isControlDisabled("PLAY_BUTTON")||(e=this.store)!=null&&e.playerPhase.is("LiveWaitingStart")||(i=this.store)!=null&&i.playerPhase.is("LiveWaitingRecover")||(o=this.store)!=null&&o.playerPhase.is("LiveWaitingRecord")||(this.log({message:"play"}),(n=this.svelteRootComponent)==null||n.play())}pause(){var e;this.log({message:"pause"}),(e=this.svelteRootComponent)==null||e.pause()}stop(){var e;if(!this.videoConfig)return;this.log({message:"stop"});let i=!!this.interactiveController;i&&(this.interactiveController.destroy(),this.interactiveController=void 0,this.interactiveContainer=void 0,this.interactiveSubscription.unsubscribe()),this.unmountComponent(this.svelteStubComponent),(e=this.mediaSessionApi)==null||e.destroy();let o=this.videoConfig.videos[0];o&&(this.unmountComponent(this.svelteRootComponent),i?(this.videoConfig.autoplay=!1,this.initInteractives()):this.createPlayer(o))}setMuted(e){var i;this.log({message:`set muted, muted: ${e}`}),(i=this.svelteRootComponent)==null||i.setMuted(e)}toggleSubtitle(){var e;this.log({message:"toggle subtitle"}),(e=this.svelteRootComponent)==null||e.toggleSubtitle()}hideControls(){var e;this.log({message:"hide controls"}),(e=this.svelteRootComponent)==null||e.hideControls()}showControls(){var e;this.log({message:"show controls"}),(e=this.svelteRootComponent)==null||e.showControls()}setPiPEnabled(e){var i,o;(o=(i=this.store)==null?void 0:i.webApi.pictureInPictureApi)==null||o.setEnabled(e)}setVolume(e){var i;this.log({message:`set volume, volume: ${e}`}),(i=this.svelteRootComponent)==null||i.setVolume(e)}setRepeat(e){this.log({message:`set repeat, repeat: ${e}`}),this.needToRepeatPlaylist=e,r(Mn)&&(r(Mn).needToRepeatPlaylist=this.needToRepeatPlaylist,r(Mn).showNextPrevButtons=this.needToShowNextPrevButtons(),r(Mn).nextButtonActive=this.isNextButtonActive(),r(Mn).prevButtonActive=this.isPrevButtonActive())}seekTime(e){var i;this.isControlDisabled("TIMELINE")||(this.log({message:`seek time, time: ${e}`}),(i=this.svelteRootComponent)==null||i.seekTime(e))}seekEpisodeStartTime(e){var i;this.log({message:`seek episode start time, time: ${e}`}),(i=this.svelteRootComponent)==null||i.seekEpisodeStartTime(e)}returnFocusToEpisodes(){var e;this.log({message:"return focus to episodes button"}),(e=this.svelteRootComponent)==null||e.returnFocusToEpisodes()}setPlaybackRate(e){var i;this.log({message:`set playback rate to: ${e}`}),(i=this.svelteRootComponent)==null||i.setPlaybackRate(e)}setAutoQualityLimits(e){var i,o,n;this.log({message:`set auto quality limitation. Max: ${(i=e.max)!=null?i:"none"}. Min: ${(o=e.min)!=null?o:"none"}`}),(n=this.svelteRootComponent)==null||n.setAutoQualityLimits(e)}addLanguage(e){var i;(i=this.store)==null||i.actions.internal.addLanguage(e)}async setLanguage(e){var i;await((i=this.store)==null?void 0:i.actions.internal.setLanguage(e))}setLiveStart(e){var i,o;this.log({message:"live started"}),(i=this.store)==null||i.actions.internal.setLiveWaitingRecover(!1),(o=this.store)==null||o.actions.internal.setLiveWaitingStart(!1),this.unmountComponent(this.svelteRootComponent),this.createPlayer(e,{autoplay:!0})}setLiveWaitingStart(){var e;this.log({message:"live waiting"}),(e=this.store)==null||e.actions.internal.setLiveWaitingStart(!0)}isLiveTailPlaying(){var e;let i=(e=this.store)==null?void 0:e.getPlayer();if(!i)return!1;let{info:o}=i;return o.canPlayLiveTailBuffer$.getValue()&&!o.atLiveEdge$.getValue()}setLiveWaitingRecover(e=!1){var i;let o=this.isLiveTailPlaying(),n=e||!o;this.log({message:`live waiting recover: forceImmediate = ${e}, liveTailPlaying = ${o}`});let s=()=>{var l;(l=this.store)==null||l.actions.internal.setLiveWaitingRecover(!0)};n&&s(),(i=this.store)!=null&&i.callbacks&&(this.store.callbacks.onLiveEnded=()=>{var l;n||s(),(l=this.store)==null||l.destroy()})}setLiveWaitingRecord(){var e;let i=this.isLiveTailPlaying(),o=!i;this.log({message:`live waiting record: liveTailPlaying = ${i}`});let n=()=>{var s;(s=this.store)==null||s.actions.internal.setLiveWaitingRecord(!0)};o&&n(),(e=this.store)!=null&&e.callbacks&&(this.store.callbacks.onLiveEnded=()=>{var s;o||n(),(s=this.store)==null||s.destroy()})}setLiveEnd(e){var i;let o=this.isLiveTailPlaying(),n=!o;this.log({message:`live ended: liveTailPlaying = ${o}`});let s=()=>{var l,d;(l=this.store)==null||l.actions.internal.setLiveWaitingRecover(!1),(d=this.store)==null||d.actions.internal.setLiveWaitingRecord(!1),this.unmountComponent(this.svelteRootComponent),this.createPlayer(e,{autoplay:!1})};if(n){s();return}(i=this.store)!=null&&i.callbacks&&(this.store.callbacks.onLiveEnded=s)}setLiveLowLatency(e){var i;this.log({message:"live switch to low latency "+e}),(i=this.store)==null||i.actions.external.setLiveLowLatency(e)}setLooped(e){var i;(i=this.store)==null||i.actions.internal.setLooped(e)}getDebugData(){var e,i;return(i=(e=this.store)==null?void 0:e.actions.internal.getDebugTextData())!=null?i:""}getDeviceId(){var e,i,o;return(o=(i=(e=this.statistics)==null?void 0:e.oneStat)==null?void 0:i.getDeviceId())!=null?o:void 0}replayInteractiveVideo(){this.interactiveController&&this.interactiveController.setChapter()}async replayInteractiveChapter(e){var i,o;if(this.interactiveController&&((i=this.store)!=null&&i.state.positionExact$)){let n=$e(this.store.state.positionExact$),l=$e(this.store.state.interactiveEpisodes$).find(a=>!a.completed);this.interactiveController.events.playerChanged$.pipe(z5()).subscribe(()=>{l&&n>=l.time?this.seekTime(l.time):this.seekTime(n),e==null||e()});let d=this.interactiveController.getCurrentChapter();await this.interactiveController.setChapter({chapterId:(o=d==null?void 0:d.chapter)==null?void 0:o.id,pushToHistory:!1})}}showInteractiveIndicatorTooltip(e,i=!1){var o;(o=this.microStoresRoot)==null||o.stores.showInteractiveTimeIndicatorTooltip$.set(e,i)}switchToActiveLive(){var e;(e=this.store)==null||e.actions.internal.switchToActiveLive()}updateAdditionalSettingsItem(e,i){var o;(o=this.store)==null||o.actions.external.updateAdditionalSettingsItem(e,i)}addAdditionalSettingsItem(e){var i;(i=this.store)==null||i.actions.external.addAdditionalSettingsItem(e)}removeAdditionalSettingsItem(e){var i;(i=this.store)==null||i.actions.external.removeAdditionalSettingsItem(e)}updateAdditionalContextItem(e,i){var o;(o=this.store)==null||o.actions.external.updateAdditionalContextItem(e,i)}addAdditionalContextItem(e){var i;(i=this.store)==null||i.actions.external.addAdditionalContextItem(e)}removeAdditionalContextItem(e){var i;(i=this.store)==null||i.actions.external.removeAdditionalContextItem(e)}updateAdditionalButton(e,i){var o;(o=this.store)==null||o.actions.external.updateAdditionalButton(e,i)}addAdditionalButton(e){var i;(i=this.store)==null||i.actions.external.addAdditionalButton(e)}removeAdditionalButton(e){var i;(i=this.store)==null||i.actions.external.removeAdditionalButton(e)}updateStatContext(e){this.statistics&&(this.statistics.oneStat&&this.statistics.oneStat.updateContext(e),this.statistics.thinOneStat&&this.statistics.thinOneStat.updateContext(e))}handleTimerNextVideo(e){var i;(i=this.store)==null||i.actions.internal.setTimerNextVideoRunning(e)}togglePictureInPicture(){var e;(e=this.store)==null||e.actions.internal.togglePictureInPicture()}focus(){var e,i,o;(o=(i=(e=this.svelteRootComponent)==null?void 0:e.keyboardControls)==null?void 0:i.focus)==null||o.call(i)}restoreFocus(){var e;(e=this.focusManager)==null||e.restoreFocus()}handleExternalKeyboardEvent(e){var i,o;return!!((o=(i=this.svelteRootComponent)==null?void 0:i.keyboardControls)!=null&&o.handleExternalKeyboardEvent(e))}setAutoplayNext(e){var i;(i=this.store)==null||i.actions.internal.setAutoplayNextEnabled(e)}unmountComponent(e){e&&ea(e)}};import{InterfaceLanguage as OJ,VKNumericLanguage as DJ,loadVKLangPack as HJ}from"@vkontakte/videoplayer-shared/es2018";import{VideoQuality as UJ,VideoFormat as zJ}from"@vkontakte/videoplayer-core/es2018";var PJ=()=>{window.customElements.define("vk-video-player",Mu)};export{cu as ControlButtonType,ts as GridTypes,OJ as InterfaceLanguage,sd as MenuItemType,ms as PlayerPhase,Ja as VERSION,DJ as VKNumericLanguage,zJ as VideoFormat,UJ as VideoQuality,HJ as loadVKLangPack,PJ as registerPlayerWebComponent};