@vkontakte/videoplayer 1.1.41-dev.e79d1c66.0 → 1.1.41-dev.f5be3e7e.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/es2015.cjs.js +17 -17
- package/es2015.esm.js +17 -17
- package/es2018.cjs.js +17 -17
- package/es2018.esm.js +17 -17
- package/esnext.cjs.js +16 -16
- package/esnext.esm.js +16 -16
- package/evergreen.esm.js +16 -16
- package/package.json +5 -5
- package/types/VKVideoPlayer/index.d.ts +2 -2
- package/types/components/Ads/admanWrapper.d.ts +5 -0
- package/types/config.d.ts +3 -0
- package/types/services/statistics.d.ts +2 -2
- package/types/store/index.d.ts +1 -1
- package/types/types/index.d.ts +2 -0
- package/types/utils/findCurrentSubtltlePhrase.d.ts +1 -1
- package/types/utils/webAPI/annotationsApi/annotationsApi.d.ts +1 -1
package/es2015.esm.js
CHANGED
|
@@ -1,17 +1,17 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @vkontakte/videoplayer v1.1.41-dev.
|
|
3
|
-
*
|
|
2
|
+
* @vkontakte/videoplayer v1.1.41-dev.f5be3e7e.0
|
|
3
|
+
* Thu, 12 Sep 2024 12:49:23 GMT
|
|
4
4
|
* https://st.mycdn.me/static/vkontakte-videoplayer/1-1-41/doc/
|
|
5
5
|
*/
|
|
6
|
-
var w_=Object.defineProperty,k_=Object.defineProperties;var C_=Object.getOwnPropertyDescriptors;var Bf=Object.getOwnPropertySymbols;var S_=Object.prototype.hasOwnProperty,T_=Object.prototype.propertyIsEnumerable;var hs=(i,e,t)=>e in i?w_(i,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):i[e]=t,rt=(i,e)=>{for(var t in e||(e={}))S_.call(e,t)&&hs(i,t,e[t]);if(Bf)for(var t of Bf(e))T_.call(e,t)&&hs(i,t,e[t]);return i},Vt=(i,e)=>k_(i,C_(e));var Wi=(i,e,t)=>hs(i,typeof e!="symbol"?e+"":e,t);var ct=(i,e,t)=>new Promise((n,o)=>{var r=s=>{try{a(t.next(s))}catch(u){o(u)}},l=s=>{try{a(t.throw(s))}catch(u){o(u)}},a=s=>s.done?n(s.value):Promise.resolve(s.value).then(r,l);a((t=t.apply(i,e)).next())});function Se(){}function ue(i,e){for(let t in e)i[t]=e[t];return i}function gs(i){return i()}function Zl(){return Object.create(null)}function lt(i){i.forEach(gs)}function Vi(i){return typeof i=="function"}function K(i,e){return i!=i?e==e:i!==e||i&&typeof i=="object"||typeof i=="function"}var Yl;function bs(i,e){return i===e?!0:(Yl||(Yl=document.createElement("a")),Yl.href=e,i===Yl.href)}function Df(i){return Object.keys(i).length===0}function Xt(i,...e){if(i==null){for(let n of e)n(void 0);return Se}let t=i.subscribe(...e);return t.unsubscribe?()=>t.unsubscribe():t}function et(i){let e;return Xt(i,t=>e=t)(),e}function z(i,e,t){i.$$.on_destroy.push(Xt(e,t))}function Le(i,e,t,n){if(i){let o=Nf(i,e,t,n);return i[0](o)}}function Nf(i,e,t,n){return i[1]&&n?ue(t.ctx.slice(),i[1](n(e))):t.ctx}function Me(i,e,t,n){if(i[2]&&n){let o=i[2](n(t));if(e.dirty===void 0)return o;if(typeof o=="object"){let r=[],l=Math.max(e.dirty.length,o.length);for(let a=0;a<l;a+=1)r[a]=e.dirty[a]|o[a];return r}return e.dirty|o}return e.dirty}function Ve(i,e,t,n,o,r){if(o){let l=Nf(e,t,n,r);i.p(l,o)}}function Re(i){if(i.ctx.length>32){let e=[],t=i.ctx.length/32;for(let n=0;n<t;n++)e[n]=-1;return e}return-1}function ye(i){let e={};for(let t in i)t[0]!=="$"&&(e[t]=i[t]);return e}function qf(i){return i==null?"":i}var Ao=typeof window!="undefined"?window:typeof globalThis!="undefined"?globalThis:global;var Xl=class i{constructor(e){Wi(this,"_listeners","WeakMap"in Ao?new WeakMap:void 0);Wi(this,"_observer");Wi(this,"options");this.options=e}observe(e,t){return this._listeners.set(e,t),this._getObserver().observe(e,this.options),()=>{this._listeners.delete(e),this._observer.unobserve(e)}}_getObserver(){var e;return(e=this._observer)!=null?e:this._observer=new ResizeObserver(t=>{var n;for(let o of t)i.entries.set(o.target,o),(n=this._listeners.get(o.target))==null||n(o)})}};Xl.entries="WeakMap"in Ao?new WeakMap:void 0;var Of=!1;function Ff(){Of=!0}function Hf(){Of=!1}function p(i,e){i.appendChild(e)}function Ie(i,e,t){let n=zf(i);if(!n.getElementById(e)){let o=T("style");o.id=e,o.textContent=t,E_(n,o)}}function zf(i){if(!i)return document;let e=i.getRootNode?i.getRootNode():i.ownerDocument;return e&&e.host?e:i.ownerDocument}function E_(i,e){return p(i.head||i,e),e.sheet}function S(i,e,t){i.insertBefore(e,t||null)}function k(i){i.parentNode&&i.parentNode.removeChild(i)}function Ri(i,e){for(let t=0;t<i.length;t+=1)i[t]&&i[t].d(e)}function T(i){return document.createElement(i)}function D(i){return document.createElementNS("http://www.w3.org/2000/svg",i)}function qe(i){return document.createTextNode(i)}function R(){return qe(" ")}function dt(){return qe("")}function he(i,e,t,n){return i.addEventListener(e,t,n),()=>i.removeEventListener(e,t,n)}function qt(i){return function(e){return e.preventDefault(),i.call(this,e)}}function at(i){return function(e){return e.stopPropagation(),i.call(this,e)}}function f(i,e,t){t==null?i.removeAttribute(e):i.getAttribute(e)!==t&&i.setAttribute(e,t)}function we(i,e){for(let t in e)f(i,t,e[t])}function Uf(i){return Array.from(i.childNodes)}function Ye(i,e){e=""+e,i.data!==e&&(i.data=e)}function ki(i,e,t,n){t==null?i.style.removeProperty(e):i.style.setProperty(e,t,n?"important":"")}var Jl;function A_(){if(Jl===void 0){Jl=!1;try{typeof window!="undefined"&&window.parent&&window.parent.document}catch(i){Jl=!0}}return Jl}function $o(i,e){getComputedStyle(i).position==="static"&&(i.style.position="relative");let n=T("iframe");n.setAttribute("style","display: block; position: absolute; top: 0; left: 0; width: 100%; height: 100%; overflow: hidden; border: 0; opacity: 0; pointer-events: none; z-index: -1;"),n.setAttribute("aria-hidden","true"),n.tabIndex=-1;let o=A_(),r;return o?(n.src="data:text/html,<script>onresize=function(){parent.postMessage(0,'*')}<\/script>",r=he(window,"message",l=>{l.source===n.contentWindow&&e()})):(n.src="about:blank",n.onload=()=>{r=he(n.contentWindow,"resize",e),e()}),p(i,n),()=>{(o||r&&n.contentWindow)&&r(),k(n)}}function N(i,e,t){i.classList.toggle(e,!!t)}function Kf(i){let e={};return i.childNodes.forEach(t=>{e[t.slot||"default"]=!0}),e}function In(i,e){return new i(e)}var mo;function lo(i){mo=i}function el(){if(!mo)throw new Error("Function called outside component initialization");return mo}function Ot(i){el().$$.on_mount.push(i)}function jn(i){el().$$.on_destroy.push(i)}function tl(i,e){return el().$$.context.set(i,e),e}function il(i){return el().$$.context.get(i)}function Il(){return el().$$.context}function Vn(i,e){let t=i.$$.callbacks[e.type];t&&t.slice().forEach(n=>n.call(this,e))}var Lo=[];var ge=[],ol=[],ys=[],Wf=Promise.resolve(),ws=!1;function ks(){ws||(ws=!0,Wf.then(xl))}function Wn(){return ks(),Wf}function Gn(i){ol.push(i)}function He(i){ys.push(i)}var vs=new Set,nl=0;function xl(){if(nl!==0)return;let i=mo;do{try{for(;nl<Lo.length;){let e=Lo[nl];nl++,lo(e),D_(e.$$)}}catch(e){throw Lo.length=0,nl=0,e}for(lo(null),Lo.length=0,nl=0;ge.length;)ge.pop()();for(let e=0;e<ol.length;e+=1){let t=ol[e];vs.has(t)||(vs.add(t),t())}ol.length=0}while(Lo.length);for(;ys.length;)ys.pop()();ws=!1,vs.clear(),lo(i)}function D_(i){if(i.fragment!==null){i.update(),lt(i.before_update);let e=i.dirty;i.dirty=[-1],i.fragment&&i.fragment.p(i.ctx,e),i.after_update.forEach(Gn)}}function Gf(i){let e=[],t=[];ol.forEach(n=>i.indexOf(n)===-1?e.push(n):t.push(n)),t.forEach(n=>n()),ol=e}var $l=new Set,Mo;function ce(){Mo={r:0,c:[],p:Mo}}function de(){Mo.r||lt(Mo.c),Mo=Mo.p}function d(i,e){i&&i.i&&($l.delete(i),i.i(e))}function _(i,e,t,n){if(i&&i.o){if($l.has(i))return;$l.add(i),Mo.c.push(()=>{$l.delete(i),n&&(t&&i.d(1),n())}),i.o(e)}else n&&n()}function It(i){return(i==null?void 0:i.length)!==void 0?i:Array.from(i)}function Oe(i,e){let t={},n={},o={$$scope:1},r=i.length;for(;r--;){let l=i[r],a=e[r];if(a){for(let s in l)s in a||(n[s]=1);for(let s in a)o[s]||(t[s]=a[s],o[s]=1);i[r]=a}else for(let s in l)o[s]=1}for(let l in n)l in t||(t[l]=void 0);return t}function Qf(i){return typeof i=="object"&&i!==null?i:{}}var N_=["allowfullscreen","allowpaymentrequest","async","autofocus","autoplay","checked","controls","default","defer","disabled","formnovalidate","hidden","inert","ismap","loop","multiple","muted","nomodule","novalidate","open","playsinline","readonly","required","reversed","selected"],q_=new Set([...N_]);function ze(i,e,t){let n=i.$$.props[e];n!==void 0&&(i.$$.bound[n]=t,t(i.$$.ctx[n]))}function V(i){i&&i.c()}function A(i,e,t){let{fragment:n,after_update:o}=i.$$;n&&n.m(e,t),Gn(()=>{let r=i.$$.on_mount.map(gs).filter(Vi);i.$$.on_destroy?i.$$.on_destroy.push(...r):lt(r),i.$$.on_mount=[]}),o.forEach(Gn)}function L(i,e){let t=i.$$;t.fragment!==null&&(Gf(t.after_update),lt(t.on_destroy),t.fragment&&t.fragment.d(e),t.on_destroy=t.fragment=null,t.ctx=[])}function F_(i,e){i.$$.dirty[0]===-1&&(Lo.push(i),ks(),i.$$.dirty.fill(0)),i.$$.dirty[e/31|0]|=1<<e%31}function G(i,e,t,n,o,r,l=null,a=[-1]){let s=mo;lo(i);let u=i.$$={fragment:null,ctx:[],props:r,update:Se,not_equal:o,bound:Zl(),on_mount:[],on_destroy:[],on_disconnect:[],before_update:[],after_update:[],context:new Map(e.context||(s?s.$$.context:[])),callbacks:Zl(),dirty:a,skip_bound:!1,root:e.target||s.$$.root};l&&l(u.root);let c=!1;if(u.ctx=t?t(i,e.props||{},(m,h,...w)=>{let b=w.length?w[0]:h;return u.ctx&&o(u.ctx[m],u.ctx[m]=b)&&(!u.skip_bound&&u.bound[m]&&u.bound[m](b),c&&F_(i,m)),h}):[],u.update(),c=!0,lt(u.before_update),u.fragment=n?n(u.ctx):!1,e.target){if(e.hydrate){Ff();let m=Uf(e.target);u.fragment&&u.fragment.l(m),m.forEach(k)}else u.fragment&&u.fragment.c();e.intro&&d(i.$$.fragment),A(i,e.target,e.anchor),Hf(),xl()}lo(s)}var H_;typeof HTMLElement=="function"&&(H_=class extends HTMLElement{constructor(e,t,n){super();Wi(this,"$$ctor");Wi(this,"$$s");Wi(this,"$$c");Wi(this,"$$cn",!1);Wi(this,"$$d",{});Wi(this,"$$r",!1);Wi(this,"$$p_d",{});Wi(this,"$$l",{});Wi(this,"$$l_u",new Map);this.$$ctor=e,this.$$s=t,n&&this.attachShadow({mode:"open"})}addEventListener(e,t,n){if(this.$$l[e]=this.$$l[e]||[],this.$$l[e].push(t),this.$$c){let o=this.$$c.$on(e,t);this.$$l_u.set(t,o)}super.addEventListener(e,t,n)}removeEventListener(e,t,n){if(super.removeEventListener(e,t,n),this.$$c){let o=this.$$l_u.get(t);o&&(o(),this.$$l_u.delete(t))}}connectedCallback(){return ct(this,null,function*(){if(this.$$cn=!0,!this.$$c){let t=function(l){return()=>{let a;return{c:function(){a=T("slot"),l!=="default"&&f(a,"name",l)},m:function(c,m){S(c,a,m)},d:function(c){c&&k(a)}}}};var e=t;if(yield Promise.resolve(),!this.$$cn||this.$$c)return;let n={},o=Kf(this);for(let l of this.$$s)l in o&&(n[l]=[t(l)]);for(let l of this.attributes){let a=this.$$g_p(l.name);a in this.$$d||(this.$$d[a]=Cs(a,l.value,this.$$p_d,"toProp"))}for(let l in this.$$p_d)!(l in this.$$d)&&this[l]!==void 0&&(this.$$d[l]=this[l],delete this[l]);this.$$c=new this.$$ctor({target:this.shadowRoot||this,props:Vt(rt({},this.$$d),{$$slots:n,$$scope:{ctx:[]}})});let r=()=>{this.$$r=!0;for(let l in this.$$p_d)if(this.$$d[l]=this.$$c.$$.ctx[this.$$c.$$.props[l]],this.$$p_d[l].reflect){let a=Cs(l,this.$$d[l],this.$$p_d,"toAttribute");a==null?this.removeAttribute(this.$$p_d[l].attribute||l):this.setAttribute(this.$$p_d[l].attribute||l,a)}this.$$r=!1};this.$$c.$$.after_update.push(r),r();for(let l in this.$$l)for(let a of this.$$l[l]){let s=this.$$c.$on(l,a);this.$$l_u.set(a,s)}this.$$l={}}})}attributeChangedCallback(e,t,n){var o;this.$$r||(e=this.$$g_p(e),this.$$d[e]=Cs(e,n,this.$$p_d,"toProp"),(o=this.$$c)==null||o.$set({[e]:this.$$d[e]}))}disconnectedCallback(){this.$$cn=!1,Promise.resolve().then(()=>{!this.$$cn&&this.$$c&&(this.$$c.$destroy(),this.$$c=void 0)})}$$g_p(e){return Object.keys(this.$$p_d).find(t=>this.$$p_d[t].attribute===e||!this.$$p_d[t].attribute&&t.toLowerCase()===e)||e}});function Cs(i,e,t,n){var r;let o=(r=t[i])==null?void 0:r.type;if(e=o==="Boolean"&&typeof e!="boolean"?e!=null:e,!n||!t[i])return e;if(n==="toAttribute")switch(o){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(o){case"Object":case"Array":return e&&JSON.parse(e);case"Boolean":return e;case"Number":return e!=null?+e:e;default:return e}}var W=class{constructor(){Wi(this,"$$");Wi(this,"$$set")}$destroy(){L(this,1),this.$destroy=Se}$on(e,t){if(!Vi(t))return Se;let n=this.$$.callbacks[e]||(this.$$.callbacks[e]=[]);return n.push(t),()=>{let o=n.indexOf(t);o!==-1&&n.splice(o,1)}}$set(e){this.$$set&&!Df(e)&&(this.$$.skip_bound=!0,this.$$set(e),this.$$.skip_bound=!1)}};var Yf="4";typeof window!="undefined"&&(window.__svelte||(window.__svelte={v:new Set})).v.add(Yf);import"@vkontakte/videoplayer-core";import{noop as kl,safeStorage as Z6,throttleFn as X6}from"@vkontakte/videoplayer-shared";import{SeekAction as J6}from"@vkontakte/videoplayer-statistics";import{InterfaceLanguage as z_,fillWithDefault as U_,VideoQuality as K_}from"@vkontakte/videoplayer-shared";var j_={isMobile:void 0,defaultLanguage:z_.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:K_.Q_480P,episodeMinWidthPc:8,hideThumbTimerAfterTouch:!0,sentry:{dsn:"https://e349fd23c68f405388980d0868d0ff27@sentry.mvk.com/126",sampleRate:.01,whiteErrorCategoryList:[],blackErrorCategoryList:[],whiteErrorIdList:[],blackErrorIdList:[]},features:{autoplay:!0,statistics:!0,sentry:!0,preload:!0,subtitles:!0,episodes:!0,fullscreen:!0,timelinePreview:!0,mediaSession:!0,annotations:!0,pip:!0,dpip:!0,download:!0,liveRewind:!0,playbackRate:!0,trafficSaving:!0,episodesClustering:!0,copyVideoLink:!0,videoRotate:!0,interactiveGraph:!1,seekToInteractive:!0,interactiveLastFrame:!1,interactiveTextPermanent:!0,interactiveHideTime:!0,interactivePlayPrevChapter:!0,interactiveTimeIndicator:!0,thumbTimer:!0,hotKeyMapModal:!0,hotKeyHelpers:!0,saveDebugInfoToFile:!1,saveTraceInfoToFile:!1,additionalButtons:!0,contextMenuButton:!0,audioLanguages:!1,saveRate:!1,fullscreenInternalTargetPlayerContainer:!1},controls:{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,slot:void 0,preview:void 0},interactive:{historyMaxLength:100,noInteractionEventTimeout:3e4}},Zf=i=>U_(i,j_),Xf=i=>tl("ui-config",i),Gt=()=>il("ui-config");var El="vk_player_debug_panel_opened";var Jf="videoplayer",xf="videoplayer";var Jn={KeyF:"f",KeyK:"k",KeyC:"c",KeyM:"m"},$f=new Set(["ArrowLeft","ArrowRight","KeyL","KeyJ"]),ec=new Set(["Tab","Space","ArrowLeft","ArrowRight","ArrowUp","ArrowDown"]),tc=new Set(["ShiftRight","ShiftLeft"]);var ic=["TIMELINE"],Al=[...ic,"GRAPH_BUTTON"],Ss=[...ic,"PLAY_BUTTON"],er=[...Al,"PLAY_BUTTON"];var Ro=(r=>(r.XS="xs",r.S="s",r.M="m",r.L="l",r.XL="xl",r))(Ro||{}),Bo={xs:0,s:1,m:2,l:3,xl:4};var ll=[];function Hn(i,e){return{subscribe:Fe(i,e).subscribe}}function Fe(i,e=Se){let t,n=new Set;function o(a){if(K(i,a)&&(i=a,t)){let s=!ll.length;for(let u of n)u[1](),ll.push(u,i);if(s){for(let u=0;u<ll.length;u+=2)ll[u][0](ll[u+1]);ll.length=0}}}function r(a){o(a(i))}function l(a,s=Se){let u=[a,s];return n.add(u),n.size===1&&(t=e(o,r)||Se),a(i),()=>{n.delete(u),n.size===0&&t&&(t(),t=null)}}return{set:o,update:r,subscribe:l}}function Bi(i,e,t){let n=!Array.isArray(i),o=n?[i]:i;if(!o.every(Boolean))throw new Error("derived() expects stores as input, got a falsy value");let r=e.length<2;return Hn(t,(l,a)=>{let s=!1,u=[],c=0,m=Se,h=()=>{if(c)return;m();let b=e(n?u[0]:u,l,a);r?l(b):m=Vi(b)?b:Se},w=o.map((b,C)=>Xt(b,v=>{u[C]=v,c&=~(1<<C),s&&h()},()=>{c|=1<<C}));return s=!0,h(),function(){lt(w),m(),s=!1}})}import{assertNonNullable as nc,VERSION as W_}from"@vkontakte/videoplayer-shared";import{VERSION as G_}from"@vkontakte/videoplayer-core";import{VERSION as Q_}from"@vkontakte/videoplayer-statistics";var tr="prod",rl="1.1.41-dev.e79d1c66.0";var Ll=(i,e,t)=>{let n=document.createElement("a");n.href=i,n.download=`${e}.${t}`,n.style.display="none",n.click()};var oc=Symbol("storeContext"),lc=Symbol("microStoresContext"),rc=(i,e)=>{tl(oc,i),tl(lc,e),tr==="dev"&&(window.app={store:i,microStores:e})},st=()=>{let i=il(oc);return nc(i,"Store context is empty!"),i},zn=()=>{let i=il(lc);return nc(i,"MicroStores context is empty!"),i},St=(i,e)=>Ts(i,i.getValue(),e),Ts=(i,e,t)=>Hn(e,n=>{let o=i.subscribe(r=>{n(r),t==null||t(r)});return()=>o.unsubscribe()}),sc=(i,e,t)=>{var I,y,g,P,B,M;let n=i.info,{width:o,height:r}=et(t.ui.playerSize),l=(y=(I=n.throughputEstimation$.getValue())==null?void 0:I.toFixed(0))!=null?y:0,a=(P=(g=n.rttEstimation$.getValue())==null?void 0:g.toFixed(0))!=null?P:0,s=n.isAutoQualityEnabled$.getValue()?"auto":"manual",u=`${rl} (core: ${G_}, stat: ${Q_}, shared: ${W_})`,c=et(t.state.errorLog$),m=c.length?`
|
|
7
|
-
`+c.map((
|
|
8
|
-
`,
|
|
9
|
-
|
|
10
|
-
`;return
|
|
11
|
-
`):void 0,h=t.state.isAudioDisabled?"disabled"
|
|
12
|
-
`)},ac=(i,e,t)=>{var M,q,te,pe;let n=i.info,{width:o,height:r}=et(t.ui.playerSize),l={version:rl,viewport:`${o}x${r}`,volume:Math.round(et(t.state.volume$)*100)};l.id=t.videoId,n.currentFormat$.getValue()&&(l.provider=n.currentFormat$.getValue()),n.hostname$.getValue()&&(l.cdn=n.hostname$.getValue());let u=n.intrinsicVideoSize$.getValue();u&&(l.videoSize=`${u.width}x${u.height}`);let c=n.currentBuffer$.getValue(),m=n.isLive$.getValue(),h=n.liveBufferTime$.getValue();c&&(m&&h?l.buffer=c.end-h:l.buffer=Math.max(c.end-et(t.state.positionExact$),0));let w=n.throughputEstimation$.getValue();w&&(l.speed=w);let b=n.videoBitrate$.getValue();b&&(l.bitrate=b);let C=n.currentVideoSegmentLength$.getValue();C&&(l.currentVideoSegmentLength=C);let v=n.currentAudioSegmentLength$.getValue();v&&(l.currentAudioSegmentLength=v);let I=et(t.vsid);typeof I=="string"&&(l.vsid=I);let y=(M=i.info.currentVideoStream$.getValue())==null?void 0:M.codec;y&&(l.videoCodec=y);let g=(q=i.info.currentAudioStream$.getValue())==null?void 0:q.codec;g&&(l.audioCodec=g),((te=i.info.currentVideoStream$.getValue())==null?void 0:te.hdr)&&(l.hdr=!0);let B=(pe=i.info.currentAudioStream$.getValue())==null?void 0:pe.language;return B&&(l.audioLanguage=B),l},uc=(i,e)=>Ll(i,e,"mp4");import{isNullable as Ps,safeStorage as Un}from"@vkontakte/videoplayer-shared";import"@vkontakte/videoplayer-core";var fc="vk_player_prefer_traffic_saving_enabled",cc="vk_player_preferred_volume",dc="vk_player_prefer_volume_mute",Is="vk_player_preferred_quality",mc="vk_player_preferred_stream_language",pc="vk_player_preferred_rate",_c=i=>i>1?1:i<0?0:i,Es=i=>Un.set(cc,_c(i).toString(10)),ir=()=>{let i=Un.get(cc);return Ps(i)?void 0:_c(parseFloat(i))},hc=(i,e)=>Un.set(Is,JSON.stringify({videoId:i,value:e})),As=()=>Un.remove(Is),gc=i=>{let e=Un.get(Is);if(Ps(e))return;let{videoId:t,value:n}=JSON.parse(e);if(i!==t){As();return}return n},bc=(i,e)=>{e?Un.set(i,"true"):Un.remove(i)},vc=i=>Un.get(i)==="true",nr=i=>bc(dc,i),yc=()=>vc(dc),wc=i=>bc(fc,i),kc=()=>vc(fc),Cc=()=>Un.get(mc),Ls=i=>Un.set(mc,i),Sc=i=>Un.set(pc,JSON.stringify({rate:i})),Tc=()=>{let i=Un.get(pc);if(Ps(i))return;let{rate:e}=JSON.parse(i);return e};import{PlaybackState as D6}from"@vkontakte/videoplayer-core";import{noop as pf}from"@vkontakte/videoplayer-shared";function Y_(i){let e,t,n,o,r,l,a,s,u,c,m,h,w,b,C,v,I,y=i[2].default,g=Le(y,i,i[1],null),P=[{xmlns:"http://www.w3.org/2000/svg"},{width:"76"},{height:"45"},{fill:"none"},{"data-testid":"video-360-icon"},{role:"img"},i[0]],B={};for(let M=0;M<P.length;M+=1)B=ue(B,P[M]);return{c(){e=D("svg"),g&&g.c(),t=D("g"),n=D("path"),o=D("path"),r=D("path"),l=D("path"),a=D("path"),s=D("defs"),u=D("filter"),c=D("feFlood"),m=D("feColorMatrix"),h=D("feOffset"),w=D("feGaussianBlur"),b=D("feColorMatrix"),C=D("feBlend"),v=D("feBlend"),f(n,"fill","#fff"),f(n,"fill-rule","evenodd"),f(n,"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"),f(n,"clip-rule","evenodd"),f(o,"fill","#fff"),f(o,"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"),f(r,"fill","#fff"),f(r,"fill-rule","evenodd"),f(r,"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"),f(r,"clip-rule","evenodd"),f(l,"fill","#fff"),f(l,"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"),f(a,"stroke","#000"),f(a,"stroke-linecap","round"),f(a,"stroke-linejoin","round"),f(a,"stroke-opacity",".12"),f(a,"stroke-width",".5"),f(a,"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"),f(t,"filter","url(#a)"),f(c,"flood-opacity","0"),f(c,"result","BackgroundImageFix"),f(m,"in","SourceAlpha"),f(m,"result","hardAlpha"),f(m,"values","0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0"),f(w,"stdDeviation","2.5"),f(b,"values","0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.16 0"),f(C,"in2","BackgroundImageFix"),f(C,"result","effect1_dropShadow_618_12297"),f(v,"in","SourceGraphic"),f(v,"in2","effect1_dropShadow_618_12297"),f(v,"result","shape"),f(u,"id","a"),f(u,"width","75"),f(u,"height","44"),f(u,"x",".5"),f(u,"y",".5"),f(u,"color-interpolation-filters","sRGB"),f(u,"filterUnits","userSpaceOnUse"),we(e,B)},m(M,q){S(M,e,q),g&&g.m(e,null),p(e,t),p(t,n),p(t,o),p(t,r),p(t,l),p(t,a),p(e,s),p(s,u),p(u,c),p(u,m),p(u,h),p(u,w),p(u,b),p(u,C),p(u,v),I=!0},p(M,[q]){g&&g.p&&(!I||q&2)&&Ve(g,y,M,M[1],I?Me(y,M[1],q,null):Re(M[1]),null),we(e,B=Oe(P,[{xmlns:"http://www.w3.org/2000/svg"},{width:"76"},{height:"45"},{fill:"none"},{"data-testid":"video-360-icon"},{role:"img"},q&1&&M[0]]))},i(M){I||(d(g,M),I=!0)},o(M){_(g,M),I=!1},d(M){M&&k(e),g&&g.d(M)}}}function Z_(i,e,t){let{$$slots:n={},$$scope:o}=e;return i.$$set=r=>{t(0,e=ue(ue({},e),ye(r))),"$$scope"in r&&t(1,o=r.$$scope)},e=ye(e),[e,o,n]}var Ms=class extends W{constructor(e){super(),G(this,e,Z_,Y_,K,{})}},or=Ms;import{isNullable as Ec,InterfaceLanguage as Ac}from"@vkontakte/videoplayer-shared";var X_={auto_quality_invariant:"\u0410\u0432\u0442\u043E",auto_quality:"\u0410\u0432\u0442\u043E ({actual})",auto_quality_option:"\u0410\u0432\u0442\u043E",menu_quality:"\u041A\u0430\u0447\u0435\u0441\u0442\u0432\u043E",menu_traffic_saving:"\u042D\u043A\u043E\u043D\u043E\u043C\u0438\u044F \u0434\u0430\u043D\u043D\u044B\u0445",menu_playback_rate:"\u0421\u043A\u043E\u0440\u043E\u0441\u0442\u044C",menu_report:"\u0421\u043E\u043E\u0431\u0449\u0438\u0442\u044C \u043E \u043F\u0440\u043E\u0431\u043B\u0435\u043C\u0435",menu_pip:"\u041A\u0430\u0440\u0442\u0438\u043D\u043A\u0430 \u0432 \u043A\u0430\u0440\u0442\u0438\u043D\u043A\u0435",menu_copy_video_link:"\u0421\u043A\u043E\u043F\u0438\u0440\u043E\u0432\u0430\u0442\u044C \u0441\u0441\u044B\u043B\u043A\u0443 \u043D\u0430 \u0432\u0438\u0434\u0435\u043E",menu_copy_video_link_with_timestamp:"\u0421\u043A\u043E\u043F\u0438\u0440\u043E\u0432\u0430\u0442\u044C \u0441\u0441\u044B\u043B\u043A\u0443 \u043D\u0430 \u043A\u0430\u0434\u0440",menu_video_rotate:"\u041F\u043E\u0432\u0435\u0440\u043D\u0443\u0442\u044C",menu_video_loop_on:"\u0412\u043A\u043B\u044E\u0447\u0438\u0442\u044C \u043F\u043E\u0432\u0442\u043E\u0440\u0435\u043D\u0438\u0435",menu_video_loop_off:"\u041E\u0442\u043A\u043B\u044E\u0447\u0438\u0442\u044C \u043F\u043E\u0432\u0442\u043E\u0440\u0435\u043D\u0438\u0435",menu_chromecast:"Chromecast \u0442\u0440\u0430\u043D\u0441\u043B\u044F\u0446\u0438\u044F",menu_copy_debug:"\u041A\u043E\u043F\u0438\u0440\u043E\u0432\u0430\u0442\u044C \u0434\u0430\u043D\u043D\u044B\u0435 \u0434\u043B\u044F \u0434\u0438\u0430\u0433\u043D\u043E\u0441\u0442\u0438\u043A\u0438",menu_save_debug:"\u0421\u043E\u0445\u0440\u0430\u043D\u0438\u0442\u044C \u0434\u0430\u043D\u043D\u044B\u0435 \u0434\u043B\u044F \u0434\u0438\u0430\u0433\u043D\u043E\u0441\u0442\u0438\u043A\u0438",menu_debug_overlay:"\u0422\u0435\u0445\u043D\u0438\u0447\u0435\u0441\u043A\u0430\u044F \u0438\u043D\u0444\u043E\u0440\u043C\u0430\u0446\u0438\u044F",menu_copy_embed_code:"\u041A\u043E\u043F\u0438\u0440\u043E\u0432\u0430\u0442\u044C \u043A\u043E\u0434 \u0434\u043B\u044F \u0432\u0441\u0442\u0440\u0430\u0438\u0432\u0430\u043D\u0438\u044F",menu_audio_languages:"\u0417\u0432\u0443\u043A\u043E\u0432\u0430\u044F \u0434\u043E\u0440\u043E\u0436\u043A\u0430",audio_stream_display_language_label:"{label} ({language})",audio_stream_display_language_label_index:"{label} {index} ({language})",audio_stream_display_label_index:"{label} {index}",audio_stream_display_language_index:"{language} {index}",audio_stream_display_unknown:"\u0414\u043E\u0440\u043E\u0436\u043A\u0430 {index}",pip_dummy_title:"\u0412\u0438\u0434\u0435\u043E \u0432\u043E\u0441\u043F\u0440\u043E\u0438\u0437\u0432\u043E\u0434\u0438\u0442\u0441\u044F \u0432 \u0440\u0435\u0436\u0438\u043C\u0435 \u043A\u0430\u0440\u0442\u0438\u043D\u043A\u0430 \u0432 \u043A\u0430\u0440\u0442\u0438\u043D\u043A\u0435",submenu_quality:"\u041A\u0430\u0447\u0435\u0441\u0442\u0432\u043E",submenu_playback_rate:"\u0421\u043A\u043E\u0440\u043E\u0441\u0442\u044C",submenu_settings:"\u041D\u0430\u0441\u0442\u0440\u043E\u0439\u043A\u0438",submenu_traffic_saving:"\u042D\u043A\u043E\u043D\u043E\u043C\u0438\u044F \u0434\u0430\u043D\u043D\u044B\u0445",submenu_audio_languages:"\u0417\u0432\u0443\u043A\u043E\u0432\u0430\u044F \u0434\u043E\u0440\u043E\u0436\u043A\u0430",mobile_unmute:"\u0412\u043A\u043B\u044E\u0447\u0438\u0442\u044C \u0437\u0432\u0443\u043A",playing_ads:"\u0420\u0435\u043A\u043B\u0430\u043C\u0430 {timeleft}",skip_ads_now:"\u041F\u0440\u043E\u043F\u0443\u0441\u0442\u0438\u0442\u044C \u0440\u0435\u043A\u043B\u0430\u043C\u0443",skip_ads_after:"\u041F\u0440\u043E\u043F\u0443\u0441\u0442\u0438\u0442\u044C \u0440\u0435\u043A\u043B\u0430\u043C\u0443 \u0447\u0435\u0440\u0435\u0437 {time}\u0441",visit_advertiser:"\u041F\u0435\u0440\u0435\u0439\u0442\u0438 \u043D\u0430 \u0441\u0430\u0439\u0442",aria_timeline:"\u041F\u043E\u043B\u0437\u0443\u043D\u043E\u043A \u0432\u0440\u0435\u043C\u0435\u043D\u043D\u043E\u0439 \u0448\u043A\u0430\u043B\u044B",aria_timeline_value:"{position} (\u043E\u0431\u0449\u0430\u044F \u0434\u043B\u0438\u0442\u0435\u043B\u044C\u043D\u043E\u0441\u0442\u044C {duration}",aria_open_settings:"\u041E\u0442\u043A\u0440\u044B\u0442\u044C \u043D\u0430\u0441\u0442\u0440\u043E\u0439\u043A\u0438 \u0432\u0438\u0434\u0435\u043E\u043F\u043B\u0435\u0435\u0440\u0430",doubletap_seek_step:"{seconds} \u0441\u0435\u043A\u0443\u043D\u0434",playback_rate_1:"\u041E\u0431\u044B\u0447\u043D\u0430\u044F",playback_rate:"{multiplier}x",video360:"\u043F\u0430\u043D\u043E\u0440\u0430\u043C\u043D\u043E\u0435 \u0432\u0438\u0434\u0435\u043E",subtitles_caption:"\u0421\u0443\u0431\u0442\u0438\u0442\u0440\u044B",subtitles_auto:"{language} (\u0410\u0432\u0442\u043E\u043C\u0430\u0442\u0438\u0447\u0435\u0441\u043A\u0438\u0435)",subtitles_off:"\u0412\u044B\u043A\u043B.",subtitles_auto_caption:"\u0410\u0432\u0442\u043E\u043C\u0430\u0442\u0438\u0447\u0435\u0441\u043A\u0438\u0435 \u0441\u0443\u0431\u0442\u0438\u0442\u0440\u044B",subtitles_turn_on:"\u0412\u043A\u043B\u044E\u0447\u0438\u0442\u044C \u0441\u0443\u0431\u0442\u0438\u0442\u0440\u044B",subtitles_turn_off:"\u0412\u044B\u043A\u043B\u044E\u0447\u0438\u0442\u044C \u0441\u0443\u0431\u0442\u0438\u0442\u0440\u044B",traffic_saving_off:"\u041E\u0442\u043A\u043B.",traffic_saving_on:"\u0412\u043A\u043B.",traffic_saving_disable:"\u041E\u0442\u043A\u043B\u044E\u0447\u0435\u043D\u0430",traffic_saving_enable:"\u0412\u043A\u043B\u044E\u0447\u0435\u043D\u0430",traffic_saving_helper_text:"\u041F\u0440\u0438 \u0432\u043A\u043B\u044E\u0447\u0435\u043D\u0438\u0438 \u043A\u0430\u0447\u0435\u0441\u0442\u0432\u043E \u0432\u0438\u0434\u0435\u043E \u0431\u0443\u0434\u0435\u0442 \u0441\u043D\u0438\u0436\u0435\u043D\u043E \u0434\u043B\u044F \u044D\u043A\u043E\u043D\u043E\u043C\u0438\u0438 \u0442\u0440\u0430\u0444\u0438\u043A\u0430",tooltip_button_disabled:"\u041A\u043D\u043E\u043F\u043A\u0430 \u043D\u0435\u0434\u043E\u0441\u0442\u0443\u043F\u043D\u0430",tooltip_previous:"\u041F\u0440\u0435\u0434\u044B\u0434\u0443\u0449\u0435\u0435 \u0432\u0438\u0434\u0435\u043E",tooltip_restart:"\u041D\u0430\u0447\u0430\u0442\u044C \u0437\u0430\u043D\u043E\u0432\u043E",tooltip_play:"\u0421\u043C\u043E\u0442\u0440\u0435\u0442\u044C",tooltip_pause:"\u041F\u0430\u0443\u0437\u0430",tooltip_next:"\u0421\u043B\u0435\u0434\u0443\u044E\u0449\u0435\u0435 \u0432\u0438\u0434\u0435\u043E",tooltip_interactive_go_back:"\u0412\u0435\u0440\u043D\u0443\u0442\u044C\u0441\u044F \u043A \u043F\u0440\u0435\u0434\u044B\u0434\u0443\u0449\u0435\u0439 \u0433\u043B\u0430\u0432\u0435",tooltip_interactive_go_back_disabled:"\u0418\u0441\u0442\u043E\u0440\u0438\u044F \u043F\u0440\u043E\u0445\u043E\u0436\u0434\u0435\u043D\u0438\u044F \u043D\u0435\u0434\u043E\u0441\u0442\u0443\u043F\u043D\u0430",tooltip_interactive_go_back_disabled_first:"\u0412\u044B \u0441\u043C\u043E\u0442\u0440\u0438\u0442\u0435 \u043F\u0435\u0440\u0432\u0443\u044E \u0433\u043B\u0430\u0432\u0443",tooltip_interactive_go_back_disabled_limit:"\u041B\u0438\u043C\u0438\u0442 \u0432\u043E\u0437\u0432\u0440\u0430\u0442\u043E\u0432 \u0438\u0441\u0447\u0435\u0440\u043F\u0430\u043D",tooltip_chapter_without_interactive:"\u0412 \u044D\u0442\u043E\u0439 \u0433\u043B\u0430\u0432\u0435 \u043D\u0435\u0442 \u0438\u043D\u0442\u0435\u0440\u0430\u043A\u0442\u0438\u0432\u0430",tooltip_interactive_of_chapter_completed:"\u0418\u043D\u0442\u0435\u0440\u0430\u043A\u0442\u0438\u0432\u044B \u044D\u0442\u043E\u0439 \u0433\u043B\u0430\u0432\u044B \u0443\u0436\u0435 \u043F\u0440\u043E\u0439\u0434\u0435\u043D\u044B",tooltip_interactive_seek:"\u041F\u0435\u0440\u0435\u0439\u0442\u0438 \u043A \u0438\u043D\u0442\u0435\u0440\u0430\u043A\u0442\u0438\u0432\u0443",tooltip_interactive_graph_off:"\u041F\u043E\u043A\u0430\u0437\u0430\u0442\u044C \u043A\u0430\u0440\u0442\u0443 \u0441\u044E\u0436\u0435\u0442\u0430",tooltip_interactive_graph_on:"\u0421\u043A\u0440\u044B\u0442\u044C \u043A\u0430\u0440\u0442\u0443 \u0441\u044E\u0436\u0435\u0442\u0430",tooltip_live:"\u041F\u0435\u0440\u0435\u043C\u043E\u0442\u0430\u0442\u044C \u043D\u0430 \u0430\u043A\u0442\u0443\u0430\u043B\u044C\u043D\u044B\u0439 \u043B\u0430\u0439\u0432",tooltip_episodes:"\u042D\u043F\u0438\u0437\u043E\u0434\u044B",tooltip_volume:"\u0412\u043A\u043B\u044E\u0447\u0438\u0442\u044C \u0437\u0432\u0443\u043A",tooltip_volume_muted:"\u0412\u044B\u043A\u043B\u044E\u0447\u0438\u0442\u044C \u0437\u0432\u0443\u043A",tooltip_subtitles_off:"\u0412\u043A\u043B\u044E\u0447\u0438\u0442\u044C \u0441\u0443\u0431\u0442\u0438\u0442\u0440\u044B",tooltip_subtitles_on:"\u0412\u044B\u043A\u043B\u044E\u0447\u0438\u0442\u044C \u0441\u0443\u0431\u0442\u0438\u0442\u0440\u044B",tooltip_settings_off:"\u041E\u0442\u043A\u0440\u044B\u0442\u044C \u043D\u0430\u0441\u0442\u0440\u043E\u0439\u043A\u0438",tooltip_settings_on:"\u0417\u0430\u043A\u0440\u044B\u0442\u044C \u043D\u0430\u0441\u0442\u0440\u043E\u0439\u043A\u0438",tooltip_fullscreen_off:"\u041D\u0430 \u0432\u0435\u0441\u044C \u044D\u043A\u0440\u0430\u043D",tooltip_fullscreen_on:"\u0412\u044B\u0439\u0442\u0438 \u0438\u0437 \u043F\u043E\u043B\u043D\u043E\u044D\u043A\u0440\u0430\u043D\u043D\u043E\u0433\u043E \u0440\u0435\u0436\u0438\u043C\u0430",tooltip_chromecast_off:"\u0412\u043A\u043B\u044E\u0447\u0438\u0442\u044C Chromecast",tooltip_chromecast_on:"\u0412\u044B\u043A\u043B\u044E\u0447\u0438\u0442\u044C Chromecast",tooltip_episode_finished:"\u0412\u044B \u0443\u0436\u0435 \u0441\u0434\u0435\u043B\u0430\u043B\u0438 \u0441\u0432\u043E\u0439 \u0432\u044B\u0431\u043E\u0440",tooltip_episode_unfinished:"\u041D\u0435 \u043F\u0440\u043E\u0439\u0434\u0435\u043D\u043E",tooltip_disabled_when_interactive:"\u0418\u043D\u0442\u0435\u0440\u0430\u043A\u0442\u0438\u0432 \u0443\u0436\u0435 \u0438\u0434\u0451\u0442",tooltip_disabled_when_graph_on:"\u041A\u043D\u043E\u043F\u043A\u0430 \u043D\u0435\u0434\u043E\u0441\u0442\u0443\u043F\u043D\u0430 \u0432\u043E \u0432\u0440\u0435\u043C\u044F \u043F\u0440\u043E\u0441\u043C\u043E\u0442\u0440\u0430 \u043A\u0430\u0440\u0442\u044B",tooltip_interactive_interaction_time_indicator:"\u041D\u0430\u0436\u043C\u0438\u0442\u0435 \u043D\u0430 \u044D\u043B\u0435\u043C\u0435\u043D\u0442 \u0438\u043D\u0442\u0435\u0440\u0430\u043A\u0442\u0438\u0432\u0430",tooltip_vk_logo:"\u041E\u0442\u043A\u0440\u044B\u0442\u044C \u0432 VK \u0412\u0438\u0434\u0435\u043E",tooltip_vk_video_logo:"\u041F\u0435\u0440\u0435\u0439\u0442\u0438 \u0432 VK \u0412\u0438\u0434\u0435\u043E",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",waiting_live_day_value:"\u0434\u043D",waiting_live_hour_value:"\u0447",waiting_live_minute_value:"\u043C\u0438\u043D",waiting_live_second_value:"\u0441\u0435\u043A",waiting_live_colon:":",waiting_live_upcoming_title:"\u0422\u0440\u0430\u043D\u0441\u043B\u044F\u0446\u0438\u044F \u0435\u0449\u0435 \u043D\u0435 \u043D\u0430\u0447\u0430\u043B\u0430\u0441\u044C",waiting_live_timer_title:"\u0414\u043E \u043D\u0430\u0447\u0430\u043B\u0430 \u0442\u0440\u0430\u043D\u0441\u043B\u044F\u0446\u0438\u0438 \u043E\u0441\u0442\u0430\u043B\u043E\u0441\u044C",waiting_live_recover_title:"\u0422\u0440\u0430\u043D\u0441\u043B\u044F\u0446\u0438\u044F \u043F\u0440\u0438\u043E\u0441\u0442\u0430\u043D\u043E\u0432\u043B\u0435\u043D\u0430 - \u043E\u043D\u0430 \u043F\u0440\u043E\u0434\u043E\u043B\u0436\u0438\u0442\u0441\u044F, \u043A\u043E\u0433\u0434\u0430 \u0430\u0432\u0442\u043E\u0440 \u0432\u0435\u0440\u043D\u0451\u0442\u0441\u044F",waiting_record_title:"\u0422\u0440\u0430\u043D\u0441\u043B\u044F\u0446\u0438\u044F \u0437\u0430\u0432\u0435\u0440\u0448\u0435\u043D\u0430 - \u0437\u0430\u043F\u0438\u0441\u044C \u043F\u043E\u044F\u0432\u0438\u0442\u0441\u044F \u043F\u043E\u0437\u0436\u0435",aria_label_video_player:"\u0412\u0438\u0434\u0435\u043E \u043F\u043B\u0435\u0435\u0440",aria_label_spherical_control:"\u041A\u043E\u043D\u0442\u0440\u043E\u043B\u043B\u0435\u0440 \u0434\u043B\u044F \u0441\u0444\u0435\u0440\u0438\u0447\u0435\u0441\u043A\u043E\u0433\u043E \u0432\u0438\u0434\u0435\u043E. \u0418\u0441\u043F\u043E\u043B\u044C\u0437\u0443\u0439\u0442\u0435 \u043A\u043B\u0430\u0432\u0438\u0448\u0438 \u0441\u043E \u0441\u0442\u0440\u0435\u043B\u043A\u0430\u043C\u0438 \u0434\u043B\u044F \u043F\u0430\u043D\u043E\u0440\u0430\u043C\u0438\u0440\u043E\u0432\u0430\u043D\u0438\u044F \u0432\u0438\u0434\u0435\u043E.",aria_label_debug_panel:"\u041E\u0431\u043B\u0430\u0441\u0442\u044C \u0441 \u0442\u0435\u0445\u043D\u0438\u0447\u0435\u0441\u043A\u043E\u0439 \u0438\u043D\u0444\u043E\u0440\u043C\u0430\u0446\u0438\u0435\u0439, \u0441\u0434\u0435\u043B\u0430\u0439\u0442\u0435 \u0441\u043A\u0440\u0438\u043D\u0448\u043E\u0442 \u0434\u043B\u044F \u0442\u0435\u0445\u043F\u043E\u0434\u0434\u0435\u0440\u0436\u043A\u0438",aria_label_new_tab_alert:"\u041E\u0442\u043A\u0440\u043E\u0435\u0442\u0441\u044F \u0432 \u043D\u043E\u0432\u043E\u0439 \u0432\u043A\u043B\u0430\u0434\u043A\u0435.",aria_label_context_menu_open:"\u041E\u0442\u043A\u0440\u044B\u0442\u044C \u043A\u043E\u043D\u0442\u0435\u043A\u0441\u0442\u043D\u043E\u0435 \u043C\u0435\u043D\u044E",aria_label_context_menu_close:"\u0417\u0430\u043A\u0440\u044B\u0442\u044C \u043A\u043E\u043D\u0442\u0435\u043A\u0441\u0442\u043D\u043E\u0435 \u043C\u0435\u043D\u044E",aria_label_menu_quality:"\u041A\u0430\u0447\u0435\u0441\u0442\u0432\u043E: {actual}",aria_label_menu_audio_languages:"\u042F\u0437\u044B\u043A \u0430\u0443\u0434\u0438\u043E: {actual}",aria_label_menu_rate:"\u0421\u043A\u043E\u0440\u043E\u0441\u0442\u044C: {actual}",aria_label_menu_traffic_saving:"\u042D\u043A\u043E\u043D\u043E\u043C\u0438\u044F \u0434\u0430\u043D\u043D\u044B\u0445: {actual}",aria_label_menu_subtitle:"\u0421\u0443\u0431\u0442\u0438\u0442\u0440\u044B: {actual}",aria_label_menu_download:"\u0421\u043A\u0430\u0447\u0430\u0442\u044C \u0432\u0438\u0434\u0435\u043E",aria_label_menu_debug_overlay_enable:"\u0412\u043A\u043B\u044E\u0447\u0438\u0442\u044C \u043E\u0442\u043E\u0431\u0440\u0430\u0436\u0435\u043D\u0438\u0435 \u0442\u0435\u0445\u043D\u0438\u0447\u0435\u0441\u043A\u043E\u0439 \u0438\u043D\u0444\u043E\u0440\u043C\u0430\u0446\u0438\u0438",aria_label_menu_debug_overlay_disable:"\u0412\u044B\u043A\u043B\u044E\u0447\u0438\u0442\u044C \u043E\u0442\u043E\u0431\u0440\u0430\u0436\u0435\u043D\u0438\u0435 \u0442\u0435\u0445\u043D\u0438\u0447\u0435\u0441\u043A\u043E\u0439 \u0438\u043D\u0444\u043E\u0440\u043C\u0430\u0446\u0438\u0438",aria_label_menu_rotate:"\u041F\u043E\u0432\u0435\u0440\u043D\u0443\u0442\u044C \u0432\u0438\u0434\u0435\u043E \u043D\u0430 90 \u0433\u0440\u0430\u0434\u0443\u0441\u043E\u0432",aria_label_menu_loop:"\u041F\u0435\u0440\u0435\u043A\u043B\u044E\u0447\u0435\u043D\u0438\u0435 \u0440\u0435\u0436\u0438\u043C\u0430 \u043F\u043E\u0432\u0442\u043E\u0440\u0435\u043D\u0438\u044F",aria_label_submenu_back:"\u0412\u0435\u0440\u043D\u0443\u0442\u044C\u0441\u044F \u0432 \u043C\u0435\u043D\u044E \u043D\u0430\u0441\u0442\u0440\u043E\u0435\u043A",aria_label_submenu_traffic_saving_off:"\u0412\u044B\u043A\u043B\u044E\u0447\u0438\u0442\u044C \u0440\u0435\u0436\u0438\u043C \u044D\u043A\u043E\u043D\u043E\u043C\u0438\u0438 \u0434\u0430\u043D\u043D\u044B\u0445",aria_label_submenu_traffic_saving_on:"\u0412\u043A\u043B\u044E\u0447\u0438\u0442\u044C \u0440\u0435\u0436\u0438\u043C \u044D\u043A\u043E\u043D\u043E\u043C\u0438\u0438 \u0434\u0430\u043D\u043D\u044B\u0445"},Pc=X_;var J_={mobile_unmute:"Unmute",auto_quality_invariant:"Auto",auto_quality:"Auto ({actual})",auto_quality_option:"Auto",menu_quality:"Quality",menu_playback_rate:"Playback rate",menu_traffic_saving:"Data saving",menu_report:"Report a problem",menu_pip:"Picture in picture",menu_copy_video_link:"Copy video link",menu_copy_video_link_with_timestamp:"Copy link with timestamp",menu_video_rotate:"Rotate",menu_video_loop_on:"Enable loop",menu_video_loop_off:"Disable loop",menu_chromecast:"Chromecast stream",menu_copy_debug:"Copy debug info",menu_save_debug:"Save debug info",menu_debug_overlay:"Tech stats",menu_copy_embed_code:"Copy embed code",menu_audio_languages:"Audio track",audio_stream_display_language_label:"{label} ({language})",audio_stream_display_language_label_index:"{label} {index} ({language})",audio_stream_display_label_index:"{label} {index}",audio_stream_display_language_index:"{language} {index}",audio_stream_display_unknown:"Audio track {index}",pip_dummy_title:"Video plays in picture-in-picture mode",submenu_quality:"Quality",submenu_playback_rate:"Playback rate",submenu_traffic_saving:"Data saving",submenu_settings:"Settings",submenu_audio_languages:"Audio track",playing_ads:"Ads {timeleft}",skip_ads_after:"Skip ads",skip_ads_now:"Ads can be skipped in {time}s",visit_advertiser:"Visit site",aria_timeline:"Time scale slider",aria_timeline_value:"{position} out of {duration}",aria_open_settings:"Open video player settings",doubletap_seek_step:"{seconds} seconds",playback_rate_1:"Normal",playback_rate:"{multiplier}x",video360:"spherical video",subtitles_caption:"Subtitles",subtitles_auto:"{language} (Auto-generated)",subtitles_off:"Off",subtitles_auto_caption:"Auto subtitles",subtitles_turn_on:"Turn on subtitles",subtitles_turn_off:"Turn off subtitles",traffic_saving_off:"Off",traffic_saving_on:"On",traffic_saving_disable:"Disabled",traffic_saving_enable:"Enabled",traffic_saving_helper_text:"When turned on the video quality will be reduced to save data",tooltip_button_disabled:"Button disabled",tooltip_previous:"Previous video",tooltip_restart:"Watch again",tooltip_play:"Play",tooltip_pause:"Pause",tooltip_next:"Next video",tooltip_interactive_go_back:"Back to previous chapter",tooltip_interactive_go_back_disabled:"Interactive history unavailable",tooltip_interactive_go_back_disabled_first:"You're watching the first chapter",tooltip_interactive_go_back_disabled_limit:"Go-back limit exceeded",tooltip_chapter_without_interactive:"This chapter has no interactive segment",tooltip_interactive_of_chapter_completed:"Chapter's interactive segments already watched",tooltip_interactive_seek:"Go to interactive",tooltip_interactive_graph_off:"Show interactive graph",tooltip_interactive_graph_on:"Hide interactive graph",tooltip_live:"Go to the live edge",tooltip_episodes:"Episodes",tooltip_volume:"Turn volume off",tooltip_volume_muted:"Turn volume on",tooltip_subtitles_off:"Turn subtitles on",tooltip_subtitles_on:"Turn subtitles off",tooltip_settings_off:"Open settings",tooltip_settings_on:"Close settings",tooltip_fullscreen_off:"Enter fullscreen mode",tooltip_fullscreen_on:"Exit fullscreen mode",tooltip_chromecast_off:"Turn Chromecast on",tooltip_chromecast_on:"Turn Chromecast off",tooltip_episode_finished:"You have already viewed interactive episode",tooltip_episode_unfinished:"Interactive episode not finished",tooltip_disabled_when_interactive:"Interactive video in progress",tooltip_disabled_when_graph_on:"Button is disabled when graph is opened",tooltip_interactive_interaction_time_indicator:"Press the interactive element",tooltip_vk_logo:"Open in VK Video",tooltip_vk_video_logo:"Go to VK Video",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",waiting_live_day_value:"d",waiting_live_hour_value:"h",waiting_live_minute_value:"min",waiting_live_second_value:"sec",waiting_live_colon:":",waiting_live_upcoming_title:"The broadcast hasn't started yet",waiting_live_timer_title:"Before the start of the broadcast left",waiting_live_recover_title:"The broadcast has been paused - it will resume when the author returns",waiting_record_title:"The broadcast completed - recording will appear later",aria_label_video_player:"Video player",aria_label_spherical_control:"Spherical video control. Use the arrow keys to pan the video.",aria_label_debug_panel:"Technical information area, take a screenshot for technical support",aria_label_new_tab_alert:"Opens in a new tab.",aria_label_context_menu_open:"Open context menu",aria_label_context_menu_close:"Close context menu",aria_label_menu_quality:"Quality: {actual}",aria_label_menu_audio_languages:"Audio language: {actual}",aria_label_menu_rate:"Rate: {actual}",aria_label_menu_traffic_saving:"Data saving: {actual}",aria_label_menu_subtitle:"Subtitles: {actual}",aria_label_menu_download:"Download video",aria_label_menu_debug_overlay_enable:"Enable display of technical information",aria_label_menu_debug_overlay_disable:"Disable display of technical information",aria_label_menu_rotate:"Rotate video 90 degrees",aria_label_menu_loop:"Toggle loop",aria_label_submenu_back:"Return to settings menu",aria_label_submenu_traffic_saving_off:"Disable data saving mode",aria_label_submenu_traffic_saving_on:"Enable data saving mode"},Ic=J_;var ro=new Map;ro.set(Ac.EN,Ic);ro.set(Ac.RU,Pc);var Lc=new Map,Vs=({language:i,pack:e,fallback:t})=>{if(ro.has(i)){let n=ro.get(i);ro.set(i,rt(rt({},n),e))}else ro.set(i,e);Lc.set(i,t)},Rs=i=>ro.has(i),Bs=(i,e,t,n)=>{var l;let o=ro.get(i),r=o==null?void 0:o[e];if(Ec(r)){let a=(l=Lc.get(i))!=null?l:n,s=a?ro.get(a):void 0;r=s==null?void 0:s[e]}return Ec(r)?e+Object.values(t!=null?t:{}).join(" "):t?r.replaceAll(/{(\w+?)}/g,(a,s)=>{var u;return(u=t[s])!=null?u:""}):r},U=(i,e)=>{let{interfaceLanguage$:t}=st(),n=et(t),o=Gt();return Bs(n,i,e,o.defaultLanguage)};import"@vkontakte/videoplayer-core";var sl;(function(i){i.fatal="fatal",i.error="error",i.warning="warning",i.log="log",i.info="info",i.debug="debug",i.critical="critical"})(sl||(sl={}));var x_=/^\s*at (?:(.*?) ?\()?((?:file|https?|blob|chrome-extension|address|native|eval|webpack|<anonymous>|[-a-z]+:|.*bundle|\/).*?)(?::(\d+))?(?::(\d+))?\)?\s*$/i,$_=/^\s*(.*?)(?:\((.*?)\))?(?:^|@)?((?:file|https?|blob|chrome|webpack|resource|moz-extension).*?:\/.*?|\[native code\]|[^@]*(?:bundle|\d+\.js))(?::(\d+))?(?::(\d+))?\s*$/i,eh=/^\s*at (?:((?:\[object object\])?.+) )?\(?((?:file|ms-appx|https?|webpack|blob):.*?):(\d+)(?::(\d+))?\)?\s*$/i,lr="?",th="X-Sentry-Auth",ih=/^(?:(\w+):)\/\/(?:([\w-]+)(?::(\w+))?@)([\w.-]+)(?::(\d+))?\/(.+)/;function nh(i){if(!i.stack)return null;let e=[],t=i.stack.split(`
|
|
13
|
-
`),n,o;for(let r=0;r<t.length;++r){if(n
|
|
14
|
-
`).filter(t=>!!t)[0]}function oh(i){try{let e=nh(i);if(e)return e}catch(e){}return{value:Mc(i),type:i&&i.name,stacktrace:{frames:[]}}}function lh(){return"xxxxxxxxxxxx4xxxyxxxxxxxxxxxxxxx".replace(/[xy]/g,i=>{let e=Math.random()*16|0;return(i==="x"?e:e&3|8).toString(16)})}var rr=class{constructor(e){if(e&&e.dsn){let t=ih.exec(e.dsn),n=t?t.slice(1):[],o=n[5].split("/"),r=o.slice(0,-1).join("/");this.apiUrl=n[0]+"://"+n[3]+(n[4]?":"+n[4]:"")+(r?"/"+r:"")+"/api/"+o.pop()+"/store/",this.authHeader="Sentry sentry_version=7,sentry_key="+n[1]+(n[2]?",sentry_secret="+n[2]:"")}this.environment=e&&e.environment}prepare(e){return Vt(rt({},this.getRequestBlank()),{exception:{values:[oh(e)]}})}report(e){this.send(this.prepare(e))}send(e){!this.apiUrl||!e||this.createRequest(e)}createRequest(e){let t=new XMLHttpRequest;t.open("POST",this.apiUrl,!0),t.setRequestHeader("Content-type","application/json"),t.setRequestHeader(th,this.authHeader||""),t.send(JSON.stringify(e))}getRequestBlank(){return{platform:"javascript",event_id:lh(),sdk:{name:"micro-sentry.javascript.core",version:"0.0.0"},timestamp:Date.now()/1e3,environment:this.environment}}};function Vc(i,e){return Object.prototype.toString.call(e)==="[object RegExp]"?e.test(i):typeof e=="string"?i.indexOf(e)!==-1:!1}function rh(){return window}var sr=class i extends rr{constructor(e,t=rh()){super(e),this.options=e,this.window=t,this.destroyed=!1,this._state={};let{plugins:n=[],beforeSend:o=u=>u,beforeBreadcrumb:r=u=>u,blacklistUrls:l=[],ignoreErrors:a=[],release:s=void 0}=this.options||{};this.plugins=n.map(u=>new u(this)),this.beforeSend=o,this.beforeBreadcrumb=r,this.blacklistUrls=l,this.ignoreErrors=a,this.release=s}get state(){return this._state}clearState(){this._state={}}setTags(e){return this.setKeyState("tags",rt({},e)),this}setTag(e,t){return this.extendState({tags:{[e]:t}}),this}setExtra(e,t){return this.extendState({extra:{[e]:t}}),this}setExtras(e){return this.setKeyState("extra",rt({},e)),this}setUser(e){return this.setKeyState("user",rt({},e)),this}clone(){let e=new i(Vt(rt({},this.options),{plugins:[]}));return e.extendState(this.state),e}withScope(e){let t=this.clone();e(t),t.destroy(),this.setBreadcrumbs(void 0)}addBreadcrumb(e){this.extendState({breadcrumbs:[rt({timestamp:Date.now()/1e3},this.beforeBreadcrumb(e))]})}setBreadcrumbs(e){this.setKeyState("breadcrumbs",e)}captureMessage(e,t){this.send(Vt(rt({},this.getRequestBlank()),{message:e,level:t}))}destroy(){this.destroyed=!0,this.plugins.forEach(e=>{e.destroy&&e.destroy()})}isIgnoredError(e){return this.ignoreErrors.length?this.getPossibleEventMessages(e).some(t=>this.ignoreErrors.some(n=>Vc(t,n))):!1}getRequestBlank(){return rt(Vt(rt({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(rt({release:this.release},e))),this.setBreadcrumbs(void 0))}getPossibleEventMessages(e){if(e.message)return[e.message];if(e.exception)try{let{type:t="",value:n=""}=e.exception.values&&e.exception.values[0]||{};return[`${n}`,`${t}: ${n}`]}catch(t){return[]}return[]}isDeniedUrl(e){if(!this.blacklistUrls.length)return!1;let t=this.getEventFilterUrl(e);return t?this.blacklistUrls.some(n=>Vc(t,n)):!1}getEventFilterUrl(e){try{if(e.exception){let t=e.exception.values&&e.exception.values[0].stacktrace&&e.exception.values[0].stacktrace.frames;return t&&t[t.length-1].filename||null}return null}catch(t){return null}}extendState(e){this._state=Object.keys(e).reduce((t,n)=>{let o=this._state[n],r=Array.isArray(o)?o:null,l=e[n],a=Array.isArray(l)?l:null;return Vt(rt({},t),{[n]:r||a?[...r||[],...a||[]]:rt(rt({},typeof o!="string"?o:{}),typeof l!="string"?l:{})})},this._state)}setKeyState(e,t){this._state[e]=t}};import{isNonNullable as ar,Subscription as sh}from"@vkontakte/videoplayer-shared";var ur=null,Do=class{constructor(e,t,n={}){!ur&&e.dsn&&(this.sentryClient=new sr({dsn:e.dsn,environment:t.env}),this.version=t.version,this.sentrySubscription=new sh,this.options=e,this.context=n,ur=this)}destroy(){var e,t;(e=this.sentryClient)==null||e.destroy(),(t=this.sentrySubscription)==null||t.unsubscribe(),ur=null}logIError(e,t=!1){e.thrown&&this.report(e.thrown,{fatal:t,errorType:e.id,category:e.category},{message:e.message,errorData:e.data})}report(e,t={},n={}){let{sentryClient:o,context:r,options:l}=this,{sampleRate:a=0,whiteErrorIdList:s,whiteErrorCategoryList:u=[],blackErrorIdList:c,blackErrorCategoryList:m}=l,{errorType:h,category:w}=t;if(ar(w)&&m.includes(w)||ar(h)&&c.includes(h))return;if(Math.random()<=a||ar(w)&&u.includes(w)||ar(h)&&s.includes(h)){Object.keys(t).length&&o.setTags(rt({version:this.version},t)),(Object.keys(r).length||Object.keys(n).length)&&o.setExtras(rt(rt({},r),n));try{h&&o.captureMessage(h,t.fatal?sl.fatal:sl.error),o.report(e)}catch(C){console.error(C)}}}static getInstance(){return ur}};var fr=i=>{if(i.requestFullscreen)return i.requestFullscreen();if(i.msRequestFullscreen)return i.msRequestFullscreen();if(i.webkitRequestFullscreen)return i.webkitRequestFullscreen();if(i.mozRequestFullScreen)return i.mozRequestFullScreen();let e=i.querySelector("video");return e!=null&&e.webkitEnterFullscreen?e.webkitEnterFullscreen():Promise.reject()},cr=i=>i.exitFullscreen?i.exitFullscreen():i.msExitFullscreen?i.msExitFullscreen():i.webkitExitFullscreen?i.webkitExitFullscreen():i.mozCancelFullScreen?i.mozCancelFullScreen():Promise.reject(),Rc=i=>{let e=i;return e!=null&&e.webkitExitFullscreen?e==null?void 0:e.webkitExitFullscreen():Promise.reject()},Ml=()=>{let i=document;return i.fullscreenElement||i.mozFullScreenElement||i.webkitFullscreenElement||i.msFullscreenElement},po=()=>!!Ml(),dr=i=>{document.addEventListener("fullscreenchange",i),document.addEventListener("webkitfullscreenchange",i),document.addEventListener("mozfullscreenchange",i),document.addEventListener("MSFullscreenChange",i)},mr=i=>{document.removeEventListener("fullscreenchange",i),document.removeEventListener("webkitfullscreenchange",i),document.removeEventListener("mozfullscreenchange",i),document.removeEventListener("MSFullscreenChange",i)},Bc=i=>{let e=window.screen;return(o=>ct(void 0,null,function*(){return e.orientation?e.orientation.lock(o):e.mozLockOrientation?e.mozLockOrientation(o):e.msLockOrientation?e.msLockOrientation(o):Promise.reject()}))(((o={width:0,height:0})=>o.width<=o.height?"portrait":"landscape")(i))};import{clientChecker as Dc}from"@vkontakte/videoplayer-shared";var Nc=()=>({title:U("hotkey_map_modal_title"),closeBtnText:U("hotkey_map_modal_close_btn_text"),groups:[{title:U("hotkey_map_group_title_common"),items:[{description:U("hotkey_map_item_mute_description"),value:U("hotkey_map_item_mute_value")},{description:U("hotkey_map_item_volume_up_description"),value:U("hotkey_map_item_volume_up_value")},{description:U("hotkey_map_item_volume_down_description"),value:U("hotkey_map_item_volume_down_value")},{description:U("hotkey_map_item_pip_description"),value:U("hotkey_map_item_pip_value")},{description:U("hotkey_map_item_full_screen_description"),value:U("hotkey_map_item_full_screen_value")},{description:U("hotkey_map_item_show_context_menu_description"),value:U("hotkey_map_item_show_context_menu_value")},{description:U("hotkey_map_item_show_hotkey_map_description"),value:U("hotkey_map_item_show_hotkey_map_value")}]},{title:U("hotkey_map_group_title_playback"),items:[{description:U("hotkey_map_item_play_toggle_description"),value:U("hotkey_map_item_play_toggle_value")},{description:U("hotkey_map_item_seek_backward_description"),value:U("hotkey_map_item_seek_backward_value")},{description:U("hotkey_map_item_seek_forward_description"),value:U("hotkey_map_item_seek_forward_value")},{description:U("hotkey_map_item_fast_seek_backward_description"),value:U("hotkey_map_item_fast_seek_backward_value")},{description:U("hotkey_map_item_fast_seek_forward_description"),value:U("hotkey_map_item_fast_seek_forward_value")},{description:U("hotkey_map_item_rate_down_description"),value:U("hotkey_map_item_rate_down_value")},{description:U("hotkey_map_item_rate_up_description"),value:U("hotkey_map_item_rate_up_value")},{description:U("hotkey_map_item_prev_frame_description"),value:U("hotkey_map_item_prev_frame_value")},{description:U("hotkey_map_item_next_frame_description"),value:U("hotkey_map_item_next_frame_value")},{description:U("hotkey_map_item_jump_seek_description"),value:U("hotkey_map_item_jump_seek_value")}]},{title:U("hotkey_map_group_title_subtitles"),items:[{description:U("hotkey_map_item_subtitles_toggle_description"),value:U("hotkey_map_item_subtitles_toggle_value")}]},{title:U("hotkey_map_group_title_episodes"),items:[{description:U("hotkey_map_item_prev_episode_description"),value:Dc.isApple?U("hotkey_map_item_prev_episode_mac_value"):U("hotkey_map_item_prev_episode_pc_value")},{description:U("hotkey_map_item_next_episode_description"),value:Dc.isApple?U("hotkey_map_item_next_episode_mac_value"):U("hotkey_map_item_next_episode_pc_value")}]}]});import{debounceFn as ah,clientChecker as uh,ValueSubject as fh}from"@vkontakte/videoplayer-shared";var No=class{constructor(){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:ah(this.onResize.bind(this),300)};this.info={isActive$:new fh(this.isActive()),type:0}}isSupported(){return document.pictureInPictureEnabled&&!uh.isYandex}isActive(){return this.isSupported()&&!!document.pictureInPictureElement}setContext(e){this.svelteContext=e}revealPictureInPicture(){return ct(this,null,function*(){this.isRequested&&(this.unregistryEventHandlers(),yield this.request(),this.registryEventHandlers())})}request(){return ct(this,null,function*(){var e;if(!(!this.isSupported()||this.isActive()))try{yield(e=this.videoElement)==null?void 0:e.requestPictureInPicture()}catch(t){this.isRequested=!1}})}remove(){return ct(this,null,function*(){!this.isSupported()||!this.isActive()||(yield document.exitPictureInPicture())})}assignPlayerContainer(e){this.isSupported()&&(this.playerContainer=e)}updateVideoElement(){var e;this.isSupported()&&(this.videoElement=(e=this.playerContainer)==null?void 0:e.querySelector("video"))}registryEventHandlers(){var e,t;(e=this.videoElement)==null||e.addEventListener("enterpictureinpicture",this.eventHandlers.enterpictureinpicture),(t=this.videoElement)==null||t.addEventListener("leavepictureinpicture",this.eventHandlers.leavepictureinpicture)}registryExternalEventHandlers(e){this.externalEventHandlers=rt({},e)}unregistryEventHandlers(){var e,t;(e=this.videoElement)==null||e.removeEventListener("enterpictureinpicture",this.eventHandlers.enterpictureinpicture),(t=this.videoElement)==null||t.removeEventListener("leavepictureinpicture",this.eventHandlers.leavepictureinpicture)}dispose(){return ct(this,null,function*(){this.unregistryEventHandlers(),yield this.remove()})}onEnterPictureInPicture(e){var o,r;let n=e.pictureInPictureWindow;n&&(this.info.isActive$.next(!0),this.isRequested=!0,n.addEventListener("resize",this.eventHandlers.resize),(r=(o=this.externalEventHandlers).enterpictureinpicture)==null||r.call(o,e))}onLeavePictureInPicture(e){var o,r,l;let n=e.pictureInPictureWindow;this.info.isActive$.next(!1),this.isRequested=!1,n==null||n.removeEventListener("resize",this.eventHandlers.resize),(r=(o=this.externalEventHandlers).leavepictureinpicture)==null||r.call(o,e),(l=this.playerDummyElement)==null||l.$destroy()}onResize(e){var t,n;(n=(t=this.externalEventHandlers).resize)==null||n.call(t,e)}};function qo(i){return i instanceof No}function ch(i){let e=st();return Ot(()=>{e.getAdmanWrapper().startPostroll()}),[]}var qs=class extends W{constructor(e){super(),G(this,e,ch,null,K,{})}},qc=qs;import{noop as dh}from"@vkontakte/videoplayer-shared";function mh(i){Ie(i,"svelte-1k4i25s",".container.svelte-1k4i25s.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.svelte-1k4i25s{bottom:14px;top:unset;font-size:15px;max-width:142px}.icon.svelte-1k4i25s.svelte-1k4i25s{margin-left:4px;position:relative;top:2px;fill:var(--white);transition:fill .2s}.skip.svelte-1k4i25s.svelte-1k4i25s{width:86px}.skippable.svelte-1k4i25s.svelte-1k4i25s{cursor:pointer;color:var(--white)}.skippable.svelte-1k4i25s.svelte-1k4i25s:hover{color:rgba(255, 255, 255, .75)}.skippable.svelte-1k4i25s:hover .icon.svelte-1k4i25s{fill:rgba(255, 255, 255, .75)}")}function ph(i){let e=U("skip_ads_after",{time:Math.ceil(i[1]-i[0]).toFixed(0)})+"",t;return{c(){t=qe(e)},m(n,o){S(n,t,o)},p(n,o){o&3&&e!==(e=U("skip_ads_after",{time:Math.ceil(n[1]-n[0]).toFixed(0)})+"")&&Ye(t,e)},d(n){n&&k(t)}}}function _h(i){let e,t=U("skip_ads_now")+"",n,o,r,l,a,s;return{c(){e=T("div"),n=qe(t),o=R(),r=D("svg"),l=D("path"),f(l,"fill-rule","evenodd"),f(l,"clip-rule","evenodd"),f(l,"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"),f(r,"class","icon svelte-1k4i25s"),f(r,"width","7"),f(r,"height","12"),f(r,"viewBox","0 0 7 12"),f(r,"fill","none"),f(r,"xmlns","http://www.w3.org/2000/svg"),f(e,"class","skip svelte-1k4i25s")},m(u,c){S(u,e,c),p(e,n),p(e,o),p(e,r),p(r,l),a||(s=he(e,"click",at(function(){Vi(i[2])&&i[2].apply(this,arguments)})),a=!0)},p(u,c){i=u},d(u){u&&k(e),a=!1,s()}}}function hh(i){let e;function t(r,l){return r[3]?_h:ph}let n=t(i,-1),o=n(i);return{c(){e=T("div"),o.c(),f(e,"class","container svelte-1k4i25s"),N(e,"container-mobile",i[4]),N(e,"skippable",i[3])},m(r,l){S(r,e,l),o.m(e,null)},p(r,[l]){n===(n=t(r,l))&&o?o.p(r,l):(o.d(1),o=n(r),o&&(o.c(),o.m(e,null))),l&16&&N(e,"container-mobile",r[4]),l&8&&N(e,"skippable",r[3])},i:Se,o:Se,d(r){r&&k(e),o.d()}}}function gh(i,e,t){let n,{position:o=0}=e,{secondsToWatchBeforeSkip:r=0}=e,{skipAd:l=dh}=e,s=st().ui.isMobile;z(i,s,c=>t(4,n=c));let u;return i.$$set=c=>{"position"in c&&t(0,o=c.position),"secondsToWatchBeforeSkip"in c&&t(1,r=c.secondsToWatchBeforeSkip),"skipAd"in c&&t(2,l=c.skipAd)},i.$$.update=()=>{i.$$.dirty&3&&t(3,u=o>0&&o>=r)},[o,r,l,u,n,s]}var Os=class extends W{constructor(e){super(),G(this,e,gh,hh,K,{position:0,secondsToWatchBeforeSkip:1,skipAd:2},mh)}},Oc=Os;function bh(i){Ie(i,"svelte-1wy3dql","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 vh(i){let e;return{c(){e=T("button"),e.textContent=`${U("visit_advertiser")}`,f(e,"class","svelte-1wy3dql")},m(t,n){S(t,e,n)},p:Se,i:Se,o:Se,d(t){t&&k(e)}}}var Fs=class extends W{constructor(e){super(),G(this,e,null,vh,K,{},bh)}},Fc=Fs;function yh(i){Ie(i,"svelte-354ajf",`.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(
|
|
6
|
+
var k_=Object.defineProperty,C_=Object.defineProperties;var S_=Object.getOwnPropertyDescriptors;var zf=Object.getOwnPropertySymbols;var T_=Object.prototype.hasOwnProperty,P_=Object.prototype.propertyIsEnumerable;var ks=(i,e,t)=>e in i?k_(i,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):i[e]=t,nt=(i,e)=>{for(var t in e||(e={}))T_.call(e,t)&&ks(i,t,e[t]);if(zf)for(var t of zf(e))P_.call(e,t)&&ks(i,t,e[t]);return i},Bt=(i,e)=>C_(i,S_(e));var Gi=(i,e,t)=>ks(i,typeof e!="symbol"?e+"":e,t);var pt=(i,e,t)=>new Promise((n,o)=>{var r=s=>{try{a(t.next(s))}catch(u){o(u)}},l=s=>{try{a(t.throw(s))}catch(u){o(u)}},a=s=>s.done?n(s.value):Promise.resolve(s.value).then(r,l);a((t=t.apply(i,e)).next())});function Ce(){}function ue(i,e){for(let t in e)i[t]=e[t];return i}function Cs(i){return i()}function xl(){return Object.create(null)}function ot(i){i.forEach(Cs)}function Bi(i){return typeof i=="function"}function W(i,e){return i!=i?e==e:i!==e||i&&typeof i=="object"||typeof i=="function"}var Jl;function Ss(i,e){return i===e?!0:(Jl||(Jl=document.createElement("a")),Jl.href=e,i===Jl.href)}function Hf(i){return Object.keys(i).length===0}function Zt(i,...e){if(i==null){for(let n of e)n(void 0);return Ce}let t=i.subscribe(...e);return t.unsubscribe?()=>t.unsubscribe():t}function $e(i){let e;return Zt(i,t=>e=t)(),e}function H(i,e,t){i.$$.on_destroy.push(Zt(e,t))}function Le(i,e,t,n){if(i){let o=Uf(i,e,t,n);return i[0](o)}}function Uf(i,e,t,n){return i[1]&&n?ue(t.ctx.slice(),i[1](n(e))):t.ctx}function Ae(i,e,t,n){if(i[2]&&n){let o=i[2](n(t));if(e.dirty===void 0)return o;if(typeof o=="object"){let r=[],l=Math.max(e.dirty.length,o.length);for(let a=0;a<l;a+=1)r[a]=e.dirty[a]|o[a];return r}return e.dirty|o}return e.dirty}function Me(i,e,t,n,o,r){if(o){let l=Uf(e,t,n,r);i.p(l,o)}}function Ve(i){if(i.ctx.length>32){let e=[],t=i.ctx.length/32;for(let n=0;n<t;n++)e[n]=-1;return e}return-1}function ye(i){let e={};for(let t in i)t[0]!=="$"&&(e[t]=i[t]);return e}function Kf(i){return i==null?"":i}var Mo=typeof window!="undefined"?window:typeof globalThis!="undefined"?globalThis:global;var $l=class i{constructor(e){Gi(this,"_listeners","WeakMap"in Mo?new WeakMap:void 0);Gi(this,"_observer");Gi(this,"options");this.options=e}observe(e,t){return this._listeners.set(e,t),this._getObserver().observe(e,this.options),()=>{this._listeners.delete(e),this._observer.unobserve(e)}}_getObserver(){var e;return(e=this._observer)!=null?e:this._observer=new ResizeObserver(t=>{var n;for(let o of t)i.entries.set(o.target,o),(n=this._listeners.get(o.target))==null||n(o)})}};$l.entries="WeakMap"in Mo?new WeakMap:void 0;var Wf=!1;function jf(){Wf=!0}function Gf(){Wf=!1}function p(i,e){i.appendChild(e)}function Pe(i,e,t){let n=Qf(i);if(!n.getElementById(e)){let o=T("style");o.id=e,o.textContent=t,L_(n,o)}}function Qf(i){if(!i)return document;let e=i.getRootNode?i.getRootNode():i.ownerDocument;return e&&e.host?e:i.ownerDocument}function L_(i,e){return p(i.head||i,e),e.sheet}function S(i,e,t){i.insertBefore(e,t||null)}function k(i){i.parentNode&&i.parentNode.removeChild(i)}function qi(i,e){for(let t=0;t<i.length;t+=1)i[t]&&i[t].d(e)}function T(i){return document.createElement(i)}function D(i){return document.createElementNS("http://www.w3.org/2000/svg",i)}function De(i){return document.createTextNode(i)}function B(){return De(" ")}function mt(){return De("")}function pe(i,e,t,n){return i.addEventListener(e,t,n),()=>i.removeEventListener(e,t,n)}function Xt(i){return function(e){return e.preventDefault(),i.call(this,e)}}function at(i){return function(e){return e.stopPropagation(),i.call(this,e)}}function f(i,e,t){t==null?i.removeAttribute(e):i.getAttribute(e)!==t&&i.setAttribute(e,t)}function we(i,e){for(let t in e)f(i,t,e[t])}function Yf(i){return Array.from(i.childNodes)}function Qe(i,e){e=""+e,i.data!==e&&(i.data=e)}function Ci(i,e,t,n){t==null?i.style.removeProperty(e):i.style.setProperty(e,t,n?"important":"")}var er;function A_(){if(er===void 0){er=!1;try{typeof window!="undefined"&&window.parent&&window.parent.document}catch(i){er=!0}}return er}function tl(i,e){getComputedStyle(i).position==="static"&&(i.style.position="relative");let n=T("iframe");n.setAttribute("style","display: block; position: absolute; top: 0; left: 0; width: 100%; height: 100%; overflow: hidden; border: 0; opacity: 0; pointer-events: none; z-index: -1;"),n.setAttribute("aria-hidden","true"),n.tabIndex=-1;let o=A_(),r;return o?(n.src="data:text/html,<script>onresize=function(){parent.postMessage(0,'*')}<\/script>",r=pe(window,"message",l=>{l.source===n.contentWindow&&e()})):(n.src="about:blank",n.onload=()=>{r=pe(n.contentWindow,"resize",e),e()}),p(i,n),()=>{(o||r&&n.contentWindow)&&r(),k(n)}}function O(i,e,t){i.classList.toggle(e,!!t)}function Zf(i){let e={};return i.childNodes.forEach(t=>{e[t.slot||"default"]=!0}),e}function En(i,e){return new i(e)}var go;function so(i){go=i}function il(){if(!go)throw new Error("Function called outside component initialization");return go}function Nt(i){il().$$.on_mount.push(i)}function Zn(i){il().$$.on_destroy.push(i)}function nl(i,e){return il().$$.context.set(i,e),e}function ol(i){return il().$$.context.get(i)}function Bl(){return il().$$.context}function Rn(i,e){let t=i.$$.callbacks[e.type];t&&t.slice().forEach(n=>n.call(this,e))}var Vo=[];var ge=[],rl=[],Ps=[],Jf=Promise.resolve(),Is=!1;function Es(){Is||(Is=!0,Jf.then(tr))}function Xn(){return Es(),Jf}function Jn(i){rl.push(i)}function ze(i){Ps.push(i)}var Ts=new Set,ll=0;function tr(){if(ll!==0)return;let i=go;do{try{for(;ll<Vo.length;){let e=Vo[ll];ll++,so(e),D_(e.$$)}}catch(e){throw Vo.length=0,ll=0,e}for(so(null),Vo.length=0,ll=0;ge.length;)ge.pop()();for(let e=0;e<rl.length;e+=1){let t=rl[e];Ts.has(t)||(Ts.add(t),t())}rl.length=0}while(Vo.length);for(;Ps.length;)Ps.pop()();Is=!1,Ts.clear(),so(i)}function D_(i){if(i.fragment!==null){i.update(),ot(i.before_update);let e=i.dirty;i.dirty=[-1],i.fragment&&i.fragment.p(i.ctx,e),i.after_update.forEach(Jn)}}function xf(i){let e=[],t=[];rl.forEach(n=>i.indexOf(n)===-1?e.push(n):t.push(n)),t.forEach(n=>n()),rl=e}var ir=new Set,Ro;function ce(){Ro={r:0,c:[],p:Ro}}function de(){Ro.r||ot(Ro.c),Ro=Ro.p}function d(i,e){i&&i.i&&(ir.delete(i),i.i(e))}function _(i,e,t,n){if(i&&i.o){if(ir.has(i))return;ir.add(i),Ro.c.push(()=>{ir.delete(i),n&&(t&&i.d(1),n())}),i.o(e)}else n&&n()}function Vt(i){return(i==null?void 0:i.length)!==void 0?i:Array.from(i)}function Ne(i,e){let t={},n={},o={$$scope:1},r=i.length;for(;r--;){let l=i[r],a=e[r];if(a){for(let s in l)s in a||(n[s]=1);for(let s in a)o[s]||(t[s]=a[s],o[s]=1);i[r]=a}else for(let s in l)o[s]=1}for(let l in n)l in t||(t[l]=void 0);return t}function $f(i){return typeof i=="object"&&i!==null?i:{}}var N_=["allowfullscreen","allowpaymentrequest","async","autofocus","autoplay","checked","controls","default","defer","disabled","formnovalidate","hidden","inert","ismap","loop","multiple","muted","nomodule","novalidate","open","playsinline","readonly","required","reversed","selected"],O_=new Set([...N_]);function He(i,e,t){let n=i.$$.props[e];n!==void 0&&(i.$$.bound[n]=t,t(i.$$.ctx[n]))}function q(i){i&&i.c()}function V(i,e,t){let{fragment:n,after_update:o}=i.$$;n&&n.m(e,t),Jn(()=>{let r=i.$$.on_mount.map(Cs).filter(Bi);i.$$.on_destroy?i.$$.on_destroy.push(...r):ot(r),i.$$.on_mount=[]}),o.forEach(Jn)}function R(i,e){let t=i.$$;t.fragment!==null&&(xf(t.after_update),ot(t.on_destroy),t.fragment&&t.fragment.d(e),t.on_destroy=t.fragment=null,t.ctx=[])}function z_(i,e){i.$$.dirty[0]===-1&&(Vo.push(i),Es(),i.$$.dirty.fill(0)),i.$$.dirty[e/31|0]|=1<<e%31}function G(i,e,t,n,o,r,l=null,a=[-1]){let s=go;so(i);let u=i.$$={fragment:null,ctx:[],props:r,update:Ce,not_equal:o,bound:xl(),on_mount:[],on_destroy:[],on_disconnect:[],before_update:[],after_update:[],context:new Map(e.context||(s?s.$$.context:[])),callbacks:xl(),dirty:a,skip_bound:!1,root:e.target||s.$$.root};l&&l(u.root);let c=!1;if(u.ctx=t?t(i,e.props||{},(m,h,...w)=>{let g=w.length?w[0]:h;return u.ctx&&o(u.ctx[m],u.ctx[m]=g)&&(!u.skip_bound&&u.bound[m]&&u.bound[m](g),c&&z_(i,m)),h}):[],u.update(),c=!0,ot(u.before_update),u.fragment=n?n(u.ctx):!1,e.target){if(e.hydrate){jf();let m=Yf(e.target);u.fragment&&u.fragment.l(m),m.forEach(k)}else u.fragment&&u.fragment.c();e.intro&&d(i.$$.fragment),V(i,e.target,e.anchor),Gf(),tr()}so(s)}var H_;typeof HTMLElement=="function"&&(H_=class extends HTMLElement{constructor(e,t,n){super();Gi(this,"$$ctor");Gi(this,"$$s");Gi(this,"$$c");Gi(this,"$$cn",!1);Gi(this,"$$d",{});Gi(this,"$$r",!1);Gi(this,"$$p_d",{});Gi(this,"$$l",{});Gi(this,"$$l_u",new Map);this.$$ctor=e,this.$$s=t,n&&this.attachShadow({mode:"open"})}addEventListener(e,t,n){if(this.$$l[e]=this.$$l[e]||[],this.$$l[e].push(t),this.$$c){let o=this.$$c.$on(e,t);this.$$l_u.set(t,o)}super.addEventListener(e,t,n)}removeEventListener(e,t,n){if(super.removeEventListener(e,t,n),this.$$c){let o=this.$$l_u.get(t);o&&(o(),this.$$l_u.delete(t))}}connectedCallback(){return pt(this,null,function*(){if(this.$$cn=!0,!this.$$c){let t=function(l){return()=>{let a;return{c:function(){a=T("slot"),l!=="default"&&f(a,"name",l)},m:function(c,m){S(c,a,m)},d:function(c){c&&k(a)}}}};var e=t;if(yield Promise.resolve(),!this.$$cn||this.$$c)return;let n={},o=Zf(this);for(let l of this.$$s)l in o&&(n[l]=[t(l)]);for(let l of this.attributes){let a=this.$$g_p(l.name);a in this.$$d||(this.$$d[a]=Ls(a,l.value,this.$$p_d,"toProp"))}for(let l in this.$$p_d)!(l in this.$$d)&&this[l]!==void 0&&(this.$$d[l]=this[l],delete this[l]);this.$$c=new this.$$ctor({target:this.shadowRoot||this,props:Bt(nt({},this.$$d),{$$slots:n,$$scope:{ctx:[]}})});let r=()=>{this.$$r=!0;for(let l in this.$$p_d)if(this.$$d[l]=this.$$c.$$.ctx[this.$$c.$$.props[l]],this.$$p_d[l].reflect){let a=Ls(l,this.$$d[l],this.$$p_d,"toAttribute");a==null?this.removeAttribute(this.$$p_d[l].attribute||l):this.setAttribute(this.$$p_d[l].attribute||l,a)}this.$$r=!1};this.$$c.$$.after_update.push(r),r();for(let l in this.$$l)for(let a of this.$$l[l]){let s=this.$$c.$on(l,a);this.$$l_u.set(a,s)}this.$$l={}}})}attributeChangedCallback(e,t,n){var o;this.$$r||(e=this.$$g_p(e),this.$$d[e]=Ls(e,n,this.$$p_d,"toProp"),(o=this.$$c)==null||o.$set({[e]:this.$$d[e]}))}disconnectedCallback(){this.$$cn=!1,Promise.resolve().then(()=>{!this.$$cn&&this.$$c&&(this.$$c.$destroy(),this.$$c=void 0)})}$$g_p(e){return Object.keys(this.$$p_d).find(t=>this.$$p_d[t].attribute===e||!this.$$p_d[t].attribute&&t.toLowerCase()===e)||e}});function Ls(i,e,t,n){var r;let o=(r=t[i])==null?void 0:r.type;if(e=o==="Boolean"&&typeof e!="boolean"?e!=null:e,!n||!t[i])return e;if(n==="toAttribute")switch(o){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(o){case"Object":case"Array":return e&&JSON.parse(e);case"Boolean":return e;case"Number":return e!=null?+e:e;default:return e}}var j=class{constructor(){Gi(this,"$$");Gi(this,"$$set")}$destroy(){R(this,1),this.$destroy=Ce}$on(e,t){if(!Bi(t))return Ce;let n=this.$$.callbacks[e]||(this.$$.callbacks[e]=[]);return n.push(t),()=>{let o=n.indexOf(t);o!==-1&&n.splice(o,1)}}$set(e){this.$$set&&!Hf(e)&&(this.$$.skip_bound=!0,this.$$set(e),this.$$.skip_bound=!1)}};var ec="4";typeof window!="undefined"&&(window.__svelte||(window.__svelte={v:new Set})).v.add(ec);import"@vkontakte/videoplayer-core";import{noop as Sl,safeStorage as J6,throttleFn as x6}from"@vkontakte/videoplayer-shared";import{SeekAction as $6}from"@vkontakte/videoplayer-statistics";import{InterfaceLanguage as U_,fillWithDefault as K_,VideoQuality as W_}from"@vkontakte/videoplayer-shared";var j_={isMobile:void 0,defaultLanguage:U_.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:W_.Q_480P,episodeMinWidthPc:8,hideThumbTimerAfterTouch:!0,sentry:{dsn:"https://e349fd23c68f405388980d0868d0ff27@sentry.mvk.com/126",sampleRate:.01,whiteErrorCategoryList:[],blackErrorCategoryList:[],whiteErrorIdList:[],blackErrorIdList:[]},features:{autoplay:!0,statistics:!0,sentry:!0,preload:!0,subtitles:!0,episodes:!0,fullscreen:!0,timelinePreview:!0,mediaSession:!0,annotations:!0,annotationsInside:!1,pip:!0,dpip:!0,download:!0,liveRewind:!0,playbackRate:!0,trafficSaving:!0,episodesClustering:!0,copyVideoLink:!0,videoRotate:!0,interactiveGraph:!1,seekToInteractive:!0,interactiveLastFrame:!1,interactiveTextPermanent:!0,interactiveHideTime:!0,interactivePlayPrevChapter:!0,interactiveTimeIndicator:!0,thumbTimer:!0,hotKeyMapModal:!0,hotKeyHelpers:!0,saveDebugInfoToFile:!1,saveTraceInfoToFile:!1,additionalButtons:!0,contextMenuButton:!0,audioLanguages:!1,saveRate:!1,fullscreenInternalTargetPlayerContainer:!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},interactive:{historyMaxLength:100,noInteractionEventTimeout:3e4}},tc=i=>K_(i,j_),ic=i=>nl("ui-config",i),Wt=()=>ol("ui-config");var ql="vk_player_debug_panel_opened";var nc="videoplayer",oc="videoplayer";var io={KeyF:"f",KeyK:"k",KeyC:"c",KeyM:"m"},lc=new Set(["ArrowLeft","ArrowRight","KeyL","KeyJ"]),rc=new Set(["Tab","Space","ArrowLeft","ArrowRight","ArrowUp","ArrowDown"]),sc=new Set(["ShiftRight","ShiftLeft"]);var ac=["TIMELINE"],Dl=[...ac,"GRAPH_BUTTON"],As=[...ac,"PLAY_BUTTON"],nr=[...Dl,"PLAY_BUTTON"];var qo=(r=>(r.XS="xs",r.S="s",r.M="m",r.L="l",r.XL="xl",r))(qo||{}),Do={xs:0,s:1,m:2,l:3,xl:4};var sl=[];function Un(i,e){return{subscribe:Oe(i,e).subscribe}}function Oe(i,e=Ce){let t,n=new Set;function o(a){if(W(i,a)&&(i=a,t)){let s=!sl.length;for(let u of n)u[1](),sl.push(u,i);if(s){for(let u=0;u<sl.length;u+=2)sl[u][0](sl[u+1]);sl.length=0}}}function r(a){o(a(i))}function l(a,s=Ce){let u=[a,s];return n.add(u),n.size===1&&(t=e(o,r)||Ce),a(i),()=>{n.delete(u),n.size===0&&t&&(t(),t=null)}}return{set:o,update:r,subscribe:l}}function Si(i,e,t){let n=!Array.isArray(i),o=n?[i]:i;if(!o.every(Boolean))throw new Error("derived() expects stores as input, got a falsy value");let r=e.length<2;return Un(t,(l,a)=>{let s=!1,u=[],c=0,m=Ce,h=()=>{if(c)return;m();let g=e(n?u[0]:u,l,a);r?l(g):m=Bi(g)?g:Ce},w=o.map((g,C)=>Zt(g,v=>{u[C]=v,c&=~(1<<C),s&&h()},()=>{c|=1<<C}));return s=!0,h(),function(){ot(w),m(),s=!1}})}import{assertNonNullable as uc,VERSION as G_}from"@vkontakte/videoplayer-shared";import{VERSION as Q_}from"@vkontakte/videoplayer-core";import{VERSION as Y_}from"@vkontakte/videoplayer-statistics";var or="prod",al="1.1.41-dev.f5be3e7e.0";var No=(i,e,t)=>{let n=document.createElement("a");n.href=i,n.download=`${e}.${t}`,n.style.display="none",n.click()};var fc=Symbol("storeContext"),cc=Symbol("microStoresContext"),dc=(i,e)=>{nl(fc,i),nl(cc,e),or==="dev"&&(window.app={store:i,microStores:e})},rt=()=>{let i=ol(fc);return uc(i,"Store context is empty!"),i},Kn=()=>{let i=ol(cc);return uc(i,"MicroStores context is empty!"),i},Lt=(i,e)=>Ms(i,i.getValue(),e),Ms=(i,e,t)=>Un(e,n=>{let o=i.subscribe(r=>{n(r),t==null||t(r)});return()=>o.unsubscribe()}),mc=(i,e,t)=>{var E,y,b,P,A,M;let n=i.info,{width:o,height:r}=$e(t.ui.playerSize),l=(y=(E=n.throughputEstimation$.getValue())==null?void 0:E.toFixed(0))!=null?y:0,a=(P=(b=n.rttEstimation$.getValue())==null?void 0:b.toFixed(0))!=null?P:0,s=n.isAutoQualityEnabled$.getValue()?"auto":"manual",u=`${al} (core: ${Q_}, stat: ${Y_}, shared: ${G_})`,c=$e(t.state.errorLog$),m=c.length?`
|
|
7
|
+
`+c.map((N,te)=>{var se;let _e=`${te}) Type: ${N.id}
|
|
8
|
+
`,X=`Message: ${N.message} (${N.thrown})
|
|
9
|
+
`,$=`Trace: ${(se=N.thrown)==null?void 0:se.stack}
|
|
10
|
+
`;return _e+X+$}).join(`
|
|
11
|
+
`):void 0,h=t.state.isAudioDisabled?"disabled":$e(t.state.isAudioAvailable$)?void 0:"unavailable",w=i.info.currentVideoStream$.getValue(),g=i.info.currentAudioStream$.getValue(),C=[];w&&C.push(`Video: ${(A=w==null?void 0:w.codec)!=null?A:""}`+(w!=null&&w.hdr?" (HDR)":"")),g&&C.push(`Audio: ${(M=g==null?void 0:g.codec)!=null?M:""}`+(g!=null&&g.language?` (${g.language})`:""));let v={Version:u,Browser:navigator.userAgent,Config:i.experimental.tuningConfigName$.getValue().join(", "),"United video id":String(t.videoId),VSID:$e(t.vsid),"Content host":n.hostname$.getValue(),"Connection type":n.httpConnectionType$.getValue()+(n.httpConnectionReused$.getValue()?" (reused)":""),Throughput:`${l}Kbps @ ${a}ms RTT`,Format:n.currentFormat$.getValue(),"Available Formats":Object.keys(e.sources).join(", "),Streams:C.join(", "),Quality:`${s} ${n.currentQuality$.getValue()}`,"Available qualities":n.availableQualities$.getValue().join(", "),Audio:h,Position:`${$e(t.state.positionExact$)}s`,State:`${$e(t.playerPhase)} ${n.playbackState$.getValue()}`,"Player size":`${o}x${r}`,URL:window.location.href,Errors:m};return Object.entries(v).filter(([N,te])=>te!==void 0).map(([N,te])=>`${N}: ${te}`).join(`
|
|
12
|
+
`)},pc=(i,e,t)=>{var M,N,te,_e;let n=i.info,{width:o,height:r}=$e(t.ui.playerSize),l={version:al,viewport:`${o}x${r}`,volume:Math.round($e(t.state.volume$)*100)};l.id=t.videoId,n.currentFormat$.getValue()&&(l.provider=n.currentFormat$.getValue()),n.hostname$.getValue()&&(l.cdn=n.hostname$.getValue());let u=n.intrinsicVideoSize$.getValue();u&&(l.videoSize=`${u.width}x${u.height}`);let c=n.currentBuffer$.getValue(),m=n.isLive$.getValue(),h=n.liveBufferTime$.getValue();c&&(m&&h?l.buffer=c.end-h:l.buffer=Math.max(c.end-$e(t.state.positionExact$),0));let w=n.throughputEstimation$.getValue();w&&(l.speed=w);let g=n.videoBitrate$.getValue();g&&(l.bitrate=g);let C=n.currentVideoSegmentLength$.getValue();C&&(l.currentVideoSegmentLength=C);let v=n.currentAudioSegmentLength$.getValue();v&&(l.currentAudioSegmentLength=v);let E=$e(t.vsid);typeof E=="string"&&(l.vsid=E);let y=(M=i.info.currentVideoStream$.getValue())==null?void 0:M.codec;y&&(l.videoCodec=y);let b=(N=i.info.currentAudioStream$.getValue())==null?void 0:N.codec;b&&(l.audioCodec=b),((te=i.info.currentVideoStream$.getValue())==null?void 0:te.hdr)&&(l.hdr=!0);let A=(_e=i.info.currentAudioStream$.getValue())==null?void 0:_e.language;return A&&(l.audioLanguage=A),l},_c=(i,e)=>No(i,e,"mp4");import{isNullable as Vs,safeStorage as Wn}from"@vkontakte/videoplayer-shared";import"@vkontakte/videoplayer-core";var hc="vk_player_prefer_traffic_saving_enabled",gc="vk_player_preferred_volume",bc="vk_player_prefer_volume_mute",Rs="vk_player_preferred_quality",vc="vk_player_preferred_stream_language",yc="vk_player_preferred_rate",wc=i=>i>1?1:i<0?0:i,Bs=i=>Wn.set(gc,wc(i).toString(10)),lr=()=>{let i=Wn.get(gc);return Vs(i)?void 0:wc(parseFloat(i))},kc=(i,e)=>Wn.set(Rs,JSON.stringify({videoId:i,value:e})),qs=()=>Wn.remove(Rs),Cc=i=>{let e=Wn.get(Rs);if(Vs(e))return;let{videoId:t,value:n}=JSON.parse(e);if(i!==t){qs();return}return n},Sc=(i,e)=>{e?Wn.set(i,"true"):Wn.remove(i)},Tc=i=>Wn.get(i)==="true",rr=i=>Sc(bc,i),Pc=()=>Tc(bc),Ic=i=>Sc(hc,i),Ec=()=>Tc(hc),Lc=()=>Wn.get(vc),Ds=i=>Wn.set(vc,i),Ac=i=>Wn.set(yc,JSON.stringify({rate:i})),Mc=()=>{let i=Wn.get(yc);if(Vs(i))return;let{rate:e}=JSON.parse(i);return e};import{PlaybackState as N6}from"@vkontakte/videoplayer-core";import{noop as wf}from"@vkontakte/videoplayer-shared";function Z_(i){let e,t,n,o,r,l,a,s,u,c,m,h,w,g,C,v,E,y=i[2].default,b=Le(y,i,i[1],null),P=[{xmlns:"http://www.w3.org/2000/svg"},{width:"76"},{height:"45"},{fill:"none"},{"data-testid":"video-360-icon"},{role:"img"},i[0]],A={};for(let M=0;M<P.length;M+=1)A=ue(A,P[M]);return{c(){e=D("svg"),b&&b.c(),t=D("g"),n=D("path"),o=D("path"),r=D("path"),l=D("path"),a=D("path"),s=D("defs"),u=D("filter"),c=D("feFlood"),m=D("feColorMatrix"),h=D("feOffset"),w=D("feGaussianBlur"),g=D("feColorMatrix"),C=D("feBlend"),v=D("feBlend"),f(n,"fill","#fff"),f(n,"fill-rule","evenodd"),f(n,"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"),f(n,"clip-rule","evenodd"),f(o,"fill","#fff"),f(o,"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"),f(r,"fill","#fff"),f(r,"fill-rule","evenodd"),f(r,"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"),f(r,"clip-rule","evenodd"),f(l,"fill","#fff"),f(l,"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"),f(a,"stroke","#000"),f(a,"stroke-linecap","round"),f(a,"stroke-linejoin","round"),f(a,"stroke-opacity",".12"),f(a,"stroke-width",".5"),f(a,"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"),f(t,"filter","url(#a)"),f(c,"flood-opacity","0"),f(c,"result","BackgroundImageFix"),f(m,"in","SourceAlpha"),f(m,"result","hardAlpha"),f(m,"values","0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0"),f(w,"stdDeviation","2.5"),f(g,"values","0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.16 0"),f(C,"in2","BackgroundImageFix"),f(C,"result","effect1_dropShadow_618_12297"),f(v,"in","SourceGraphic"),f(v,"in2","effect1_dropShadow_618_12297"),f(v,"result","shape"),f(u,"id","a"),f(u,"width","75"),f(u,"height","44"),f(u,"x",".5"),f(u,"y",".5"),f(u,"color-interpolation-filters","sRGB"),f(u,"filterUnits","userSpaceOnUse"),we(e,A)},m(M,N){S(M,e,N),b&&b.m(e,null),p(e,t),p(t,n),p(t,o),p(t,r),p(t,l),p(t,a),p(e,s),p(s,u),p(u,c),p(u,m),p(u,h),p(u,w),p(u,g),p(u,C),p(u,v),E=!0},p(M,[N]){b&&b.p&&(!E||N&2)&&Me(b,y,M,M[1],E?Ae(y,M[1],N,null):Ve(M[1]),null),we(e,A=Ne(P,[{xmlns:"http://www.w3.org/2000/svg"},{width:"76"},{height:"45"},{fill:"none"},{"data-testid":"video-360-icon"},{role:"img"},N&1&&M[0]]))},i(M){E||(d(b,M),E=!0)},o(M){_(b,M),E=!1},d(M){M&&k(e),b&&b.d(M)}}}function X_(i,e,t){let{$$slots:n={},$$scope:o}=e;return i.$$set=r=>{t(0,e=ue(ue({},e),ye(r))),"$$scope"in r&&t(1,o=r.$$scope)},e=ye(e),[e,o,n]}var Ns=class extends j{constructor(e){super(),G(this,e,X_,Z_,W,{})}},sr=Ns;import{isNullable as Bc,InterfaceLanguage as qc}from"@vkontakte/videoplayer-shared";var J_={auto_quality_invariant:"\u0410\u0432\u0442\u043E",auto_quality:"\u0410\u0432\u0442\u043E ({actual})",auto_quality_option:"\u0410\u0432\u0442\u043E",menu_quality:"\u041A\u0430\u0447\u0435\u0441\u0442\u0432\u043E",menu_traffic_saving:"\u042D\u043A\u043E\u043D\u043E\u043C\u0438\u044F \u0434\u0430\u043D\u043D\u044B\u0445",menu_playback_rate:"\u0421\u043A\u043E\u0440\u043E\u0441\u0442\u044C",menu_report:"\u0421\u043E\u043E\u0431\u0449\u0438\u0442\u044C \u043E \u043F\u0440\u043E\u0431\u043B\u0435\u043C\u0435",menu_pip:"\u041A\u0430\u0440\u0442\u0438\u043D\u043A\u0430 \u0432 \u043A\u0430\u0440\u0442\u0438\u043D\u043A\u0435",menu_copy_video_link:"\u0421\u043A\u043E\u043F\u0438\u0440\u043E\u0432\u0430\u0442\u044C \u0441\u0441\u044B\u043B\u043A\u0443 \u043D\u0430 \u0432\u0438\u0434\u0435\u043E",menu_copy_video_link_with_timestamp:"\u0421\u043A\u043E\u043F\u0438\u0440\u043E\u0432\u0430\u0442\u044C \u0441\u0441\u044B\u043B\u043A\u0443 \u043D\u0430 \u043A\u0430\u0434\u0440",menu_video_rotate:"\u041F\u043E\u0432\u0435\u0440\u043D\u0443\u0442\u044C",menu_video_loop_on:"\u0412\u043A\u043B\u044E\u0447\u0438\u0442\u044C \u043F\u043E\u0432\u0442\u043E\u0440\u0435\u043D\u0438\u0435",menu_video_loop_off:"\u041E\u0442\u043A\u043B\u044E\u0447\u0438\u0442\u044C \u043F\u043E\u0432\u0442\u043E\u0440\u0435\u043D\u0438\u0435",menu_chromecast:"Chromecast \u0442\u0440\u0430\u043D\u0441\u043B\u044F\u0446\u0438\u044F",menu_copy_debug:"\u041A\u043E\u043F\u0438\u0440\u043E\u0432\u0430\u0442\u044C \u0434\u0430\u043D\u043D\u044B\u0435 \u0434\u043B\u044F \u0434\u0438\u0430\u0433\u043D\u043E\u0441\u0442\u0438\u043A\u0438",menu_save_debug:"\u0421\u043E\u0445\u0440\u0430\u043D\u0438\u0442\u044C \u0434\u0430\u043D\u043D\u044B\u0435 \u0434\u043B\u044F \u0434\u0438\u0430\u0433\u043D\u043E\u0441\u0442\u0438\u043A\u0438",menu_debug_overlay:"\u0422\u0435\u0445\u043D\u0438\u0447\u0435\u0441\u043A\u0430\u044F \u0438\u043D\u0444\u043E\u0440\u043C\u0430\u0446\u0438\u044F",menu_copy_embed_code:"\u041A\u043E\u043F\u0438\u0440\u043E\u0432\u0430\u0442\u044C \u043A\u043E\u0434 \u0434\u043B\u044F \u0432\u0441\u0442\u0440\u0430\u0438\u0432\u0430\u043D\u0438\u044F",menu_audio_languages:"\u0417\u0432\u0443\u043A\u043E\u0432\u0430\u044F \u0434\u043E\u0440\u043E\u0436\u043A\u0430",audio_stream_display_language_label:"{label} ({language})",audio_stream_display_language_label_index:"{label} {index} ({language})",audio_stream_display_label_index:"{label} {index}",audio_stream_display_language_index:"{language} {index}",audio_stream_display_unknown:"\u0414\u043E\u0440\u043E\u0436\u043A\u0430 {index}",pip_dummy_title:"\u0412\u0438\u0434\u0435\u043E \u0432\u043E\u0441\u043F\u0440\u043E\u0438\u0437\u0432\u043E\u0434\u0438\u0442\u0441\u044F \u0432 \u0440\u0435\u0436\u0438\u043C\u0435 \u043A\u0430\u0440\u0442\u0438\u043D\u043A\u0430 \u0432 \u043A\u0430\u0440\u0442\u0438\u043D\u043A\u0435",submenu_quality:"\u041A\u0430\u0447\u0435\u0441\u0442\u0432\u043E",submenu_playback_rate:"\u0421\u043A\u043E\u0440\u043E\u0441\u0442\u044C",submenu_settings:"\u041D\u0430\u0441\u0442\u0440\u043E\u0439\u043A\u0438",submenu_traffic_saving:"\u042D\u043A\u043E\u043D\u043E\u043C\u0438\u044F \u0434\u0430\u043D\u043D\u044B\u0445",submenu_audio_languages:"\u0417\u0432\u0443\u043A\u043E\u0432\u0430\u044F \u0434\u043E\u0440\u043E\u0436\u043A\u0430",mobile_unmute:"\u0412\u043A\u043B\u044E\u0447\u0438\u0442\u044C \u0437\u0432\u0443\u043A",playing_ads:"\u0420\u0435\u043A\u043B\u0430\u043C\u0430 {timeleft}",skip_ads_now:"\u041F\u0440\u043E\u043F\u0443\u0441\u0442\u0438\u0442\u044C \u0440\u0435\u043A\u043B\u0430\u043C\u0443",skip_ads_after:"\u041F\u0440\u043E\u043F\u0443\u0441\u0442\u0438\u0442\u044C \u0440\u0435\u043A\u043B\u0430\u043C\u0443 \u0447\u0435\u0440\u0435\u0437 {time}\u0441",visit_advertiser:"\u041F\u0435\u0440\u0435\u0439\u0442\u0438 \u043D\u0430 \u0441\u0430\u0439\u0442",aria_timeline:"\u041F\u043E\u043B\u0437\u0443\u043D\u043E\u043A \u0432\u0440\u0435\u043C\u0435\u043D\u043D\u043E\u0439 \u0448\u043A\u0430\u043B\u044B",aria_timeline_value:"{position} (\u043E\u0431\u0449\u0430\u044F \u0434\u043B\u0438\u0442\u0435\u043B\u044C\u043D\u043E\u0441\u0442\u044C {duration}",aria_open_settings:"\u041E\u0442\u043A\u0440\u044B\u0442\u044C \u043D\u0430\u0441\u0442\u0440\u043E\u0439\u043A\u0438 \u0432\u0438\u0434\u0435\u043E\u043F\u043B\u0435\u0435\u0440\u0430",doubletap_seek_step:"{seconds} \u0441\u0435\u043A\u0443\u043D\u0434",playback_rate_1:"\u041E\u0431\u044B\u0447\u043D\u0430\u044F",playback_rate:"{multiplier}x",video360:"\u043F\u0430\u043D\u043E\u0440\u0430\u043C\u043D\u043E\u0435 \u0432\u0438\u0434\u0435\u043E",subtitles_caption:"\u0421\u0443\u0431\u0442\u0438\u0442\u0440\u044B",subtitles_auto:"{language} (\u0410\u0432\u0442\u043E\u043C\u0430\u0442\u0438\u0447\u0435\u0441\u043A\u0438\u0435)",subtitles_off:"\u0412\u044B\u043A\u043B.",subtitles_auto_caption:"\u0410\u0432\u0442\u043E\u043C\u0430\u0442\u0438\u0447\u0435\u0441\u043A\u0438\u0435 \u0441\u0443\u0431\u0442\u0438\u0442\u0440\u044B",subtitles_turn_on:"\u0412\u043A\u043B\u044E\u0447\u0438\u0442\u044C \u0441\u0443\u0431\u0442\u0438\u0442\u0440\u044B",subtitles_turn_off:"\u0412\u044B\u043A\u043B\u044E\u0447\u0438\u0442\u044C \u0441\u0443\u0431\u0442\u0438\u0442\u0440\u044B",traffic_saving_off:"\u041E\u0442\u043A\u043B.",traffic_saving_on:"\u0412\u043A\u043B.",traffic_saving_disable:"\u041E\u0442\u043A\u043B\u044E\u0447\u0435\u043D\u0430",traffic_saving_enable:"\u0412\u043A\u043B\u044E\u0447\u0435\u043D\u0430",traffic_saving_helper_text:"\u041F\u0440\u0438 \u0432\u043A\u043B\u044E\u0447\u0435\u043D\u0438\u0438 \u043A\u0430\u0447\u0435\u0441\u0442\u0432\u043E \u0432\u0438\u0434\u0435\u043E \u0431\u0443\u0434\u0435\u0442 \u0441\u043D\u0438\u0436\u0435\u043D\u043E \u0434\u043B\u044F \u044D\u043A\u043E\u043D\u043E\u043C\u0438\u0438 \u0442\u0440\u0430\u0444\u0438\u043A\u0430",tooltip_button_disabled:"\u041A\u043D\u043E\u043F\u043A\u0430 \u043D\u0435\u0434\u043E\u0441\u0442\u0443\u043F\u043D\u0430",tooltip_previous:"\u041F\u0440\u0435\u0434\u044B\u0434\u0443\u0449\u0435\u0435 \u0432\u0438\u0434\u0435\u043E",tooltip_restart:"\u041D\u0430\u0447\u0430\u0442\u044C \u0437\u0430\u043D\u043E\u0432\u043E",tooltip_play:"\u0421\u043C\u043E\u0442\u0440\u0435\u0442\u044C",tooltip_pause:"\u041F\u0430\u0443\u0437\u0430",tooltip_next:"\u0421\u043B\u0435\u0434\u0443\u044E\u0449\u0435\u0435 \u0432\u0438\u0434\u0435\u043E",tooltip_interactive_go_back:"\u0412\u0435\u0440\u043D\u0443\u0442\u044C\u0441\u044F \u043A \u043F\u0440\u0435\u0434\u044B\u0434\u0443\u0449\u0435\u0439 \u0433\u043B\u0430\u0432\u0435",tooltip_interactive_go_back_disabled:"\u0418\u0441\u0442\u043E\u0440\u0438\u044F \u043F\u0440\u043E\u0445\u043E\u0436\u0434\u0435\u043D\u0438\u044F \u043D\u0435\u0434\u043E\u0441\u0442\u0443\u043F\u043D\u0430",tooltip_interactive_go_back_disabled_first:"\u0412\u044B \u0441\u043C\u043E\u0442\u0440\u0438\u0442\u0435 \u043F\u0435\u0440\u0432\u0443\u044E \u0433\u043B\u0430\u0432\u0443",tooltip_interactive_go_back_disabled_limit:"\u041B\u0438\u043C\u0438\u0442 \u0432\u043E\u0437\u0432\u0440\u0430\u0442\u043E\u0432 \u0438\u0441\u0447\u0435\u0440\u043F\u0430\u043D",tooltip_chapter_without_interactive:"\u0412 \u044D\u0442\u043E\u0439 \u0433\u043B\u0430\u0432\u0435 \u043D\u0435\u0442 \u0438\u043D\u0442\u0435\u0440\u0430\u043A\u0442\u0438\u0432\u0430",tooltip_interactive_of_chapter_completed:"\u0418\u043D\u0442\u0435\u0440\u0430\u043A\u0442\u0438\u0432\u044B \u044D\u0442\u043E\u0439 \u0433\u043B\u0430\u0432\u044B \u0443\u0436\u0435 \u043F\u0440\u043E\u0439\u0434\u0435\u043D\u044B",tooltip_interactive_seek:"\u041F\u0435\u0440\u0435\u0439\u0442\u0438 \u043A \u0438\u043D\u0442\u0435\u0440\u0430\u043A\u0442\u0438\u0432\u0443",tooltip_interactive_graph_off:"\u041F\u043E\u043A\u0430\u0437\u0430\u0442\u044C \u043A\u0430\u0440\u0442\u0443 \u0441\u044E\u0436\u0435\u0442\u0430",tooltip_interactive_graph_on:"\u0421\u043A\u0440\u044B\u0442\u044C \u043A\u0430\u0440\u0442\u0443 \u0441\u044E\u0436\u0435\u0442\u0430",tooltip_live:"\u041F\u0435\u0440\u0435\u043C\u043E\u0442\u0430\u0442\u044C \u043D\u0430 \u0430\u043A\u0442\u0443\u0430\u043B\u044C\u043D\u044B\u0439 \u043B\u0430\u0439\u0432",tooltip_episodes:"\u042D\u043F\u0438\u0437\u043E\u0434\u044B",tooltip_volume:"\u0412\u043A\u043B\u044E\u0447\u0438\u0442\u044C \u0437\u0432\u0443\u043A",tooltip_volume_muted:"\u0412\u044B\u043A\u043B\u044E\u0447\u0438\u0442\u044C \u0437\u0432\u0443\u043A",tooltip_subtitles_off:"\u0412\u043A\u043B\u044E\u0447\u0438\u0442\u044C \u0441\u0443\u0431\u0442\u0438\u0442\u0440\u044B",tooltip_subtitles_on:"\u0412\u044B\u043A\u043B\u044E\u0447\u0438\u0442\u044C \u0441\u0443\u0431\u0442\u0438\u0442\u0440\u044B",tooltip_settings_off:"\u041E\u0442\u043A\u0440\u044B\u0442\u044C \u043D\u0430\u0441\u0442\u0440\u043E\u0439\u043A\u0438",tooltip_settings_on:"\u0417\u0430\u043A\u0440\u044B\u0442\u044C \u043D\u0430\u0441\u0442\u0440\u043E\u0439\u043A\u0438",tooltip_fullscreen_off:"\u041D\u0430 \u0432\u0435\u0441\u044C \u044D\u043A\u0440\u0430\u043D",tooltip_fullscreen_on:"\u0412\u044B\u0439\u0442\u0438 \u0438\u0437 \u043F\u043E\u043B\u043D\u043E\u044D\u043A\u0440\u0430\u043D\u043D\u043E\u0433\u043E \u0440\u0435\u0436\u0438\u043C\u0430",tooltip_chromecast_off:"\u0412\u043A\u043B\u044E\u0447\u0438\u0442\u044C Chromecast",tooltip_chromecast_on:"\u0412\u044B\u043A\u043B\u044E\u0447\u0438\u0442\u044C Chromecast",tooltip_episode_finished:"\u0412\u044B \u0443\u0436\u0435 \u0441\u0434\u0435\u043B\u0430\u043B\u0438 \u0441\u0432\u043E\u0439 \u0432\u044B\u0431\u043E\u0440",tooltip_episode_unfinished:"\u041D\u0435 \u043F\u0440\u043E\u0439\u0434\u0435\u043D\u043E",tooltip_disabled_when_interactive:"\u0418\u043D\u0442\u0435\u0440\u0430\u043A\u0442\u0438\u0432 \u0443\u0436\u0435 \u0438\u0434\u0451\u0442",tooltip_disabled_when_graph_on:"\u041A\u043D\u043E\u043F\u043A\u0430 \u043D\u0435\u0434\u043E\u0441\u0442\u0443\u043F\u043D\u0430 \u0432\u043E \u0432\u0440\u0435\u043C\u044F \u043F\u0440\u043E\u0441\u043C\u043E\u0442\u0440\u0430 \u043A\u0430\u0440\u0442\u044B",tooltip_interactive_interaction_time_indicator:"\u041D\u0430\u0436\u043C\u0438\u0442\u0435 \u043D\u0430 \u044D\u043B\u0435\u043C\u0435\u043D\u0442 \u0438\u043D\u0442\u0435\u0440\u0430\u043A\u0442\u0438\u0432\u0430",tooltip_vk_logo:"\u041E\u0442\u043A\u0440\u044B\u0442\u044C \u0432 VK \u0412\u0438\u0434\u0435\u043E",tooltip_vk_video_logo:"\u041F\u0435\u0440\u0435\u0439\u0442\u0438 \u0432 VK \u0412\u0438\u0434\u0435\u043E",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",waiting_live_day_value:"\u0434\u043D",waiting_live_hour_value:"\u0447",waiting_live_minute_value:"\u043C\u0438\u043D",waiting_live_second_value:"\u0441\u0435\u043A",waiting_live_colon:":",waiting_live_upcoming_title:"\u0422\u0440\u0430\u043D\u0441\u043B\u044F\u0446\u0438\u044F \u0435\u0449\u0435 \u043D\u0435 \u043D\u0430\u0447\u0430\u043B\u0430\u0441\u044C",waiting_live_timer_title:"\u0414\u043E \u043D\u0430\u0447\u0430\u043B\u0430 \u0442\u0440\u0430\u043D\u0441\u043B\u044F\u0446\u0438\u0438 \u043E\u0441\u0442\u0430\u043B\u043E\u0441\u044C",waiting_live_recover_title:"\u0422\u0440\u0430\u043D\u0441\u043B\u044F\u0446\u0438\u044F \u043F\u0440\u0438\u043E\u0441\u0442\u0430\u043D\u043E\u0432\u043B\u0435\u043D\u0430 - \u043E\u043D\u0430 \u043F\u0440\u043E\u0434\u043E\u043B\u0436\u0438\u0442\u0441\u044F, \u043A\u043E\u0433\u0434\u0430 \u0430\u0432\u0442\u043E\u0440 \u0432\u0435\u0440\u043D\u0451\u0442\u0441\u044F",waiting_record_title:"\u0422\u0440\u0430\u043D\u0441\u043B\u044F\u0446\u0438\u044F \u0437\u0430\u0432\u0435\u0440\u0448\u0435\u043D\u0430 - \u0437\u0430\u043F\u0438\u0441\u044C \u043F\u043E\u044F\u0432\u0438\u0442\u0441\u044F \u043F\u043E\u0437\u0436\u0435",aria_label_video_player:"\u0412\u0438\u0434\u0435\u043E \u043F\u043B\u0435\u0435\u0440",aria_label_spherical_control:"\u041A\u043E\u043D\u0442\u0440\u043E\u043B\u043B\u0435\u0440 \u0434\u043B\u044F \u0441\u0444\u0435\u0440\u0438\u0447\u0435\u0441\u043A\u043E\u0433\u043E \u0432\u0438\u0434\u0435\u043E. \u0418\u0441\u043F\u043E\u043B\u044C\u0437\u0443\u0439\u0442\u0435 \u043A\u043B\u0430\u0432\u0438\u0448\u0438 \u0441\u043E \u0441\u0442\u0440\u0435\u043B\u043A\u0430\u043C\u0438 \u0434\u043B\u044F \u043F\u0430\u043D\u043E\u0440\u0430\u043C\u0438\u0440\u043E\u0432\u0430\u043D\u0438\u044F \u0432\u0438\u0434\u0435\u043E.",aria_label_debug_panel:"\u041E\u0431\u043B\u0430\u0441\u0442\u044C \u0441 \u0442\u0435\u0445\u043D\u0438\u0447\u0435\u0441\u043A\u043E\u0439 \u0438\u043D\u0444\u043E\u0440\u043C\u0430\u0446\u0438\u0435\u0439, \u0441\u0434\u0435\u043B\u0430\u0439\u0442\u0435 \u0441\u043A\u0440\u0438\u043D\u0448\u043E\u0442 \u0434\u043B\u044F \u0442\u0435\u0445\u043F\u043E\u0434\u0434\u0435\u0440\u0436\u043A\u0438",aria_label_new_tab_alert:"\u041E\u0442\u043A\u0440\u043E\u0435\u0442\u0441\u044F \u0432 \u043D\u043E\u0432\u043E\u0439 \u0432\u043A\u043B\u0430\u0434\u043A\u0435.",aria_label_context_menu_open:"\u041E\u0442\u043A\u0440\u044B\u0442\u044C \u043A\u043E\u043D\u0442\u0435\u043A\u0441\u0442\u043D\u043E\u0435 \u043C\u0435\u043D\u044E",aria_label_context_menu_close:"\u0417\u0430\u043A\u0440\u044B\u0442\u044C \u043A\u043E\u043D\u0442\u0435\u043A\u0441\u0442\u043D\u043E\u0435 \u043C\u0435\u043D\u044E",aria_label_menu_quality:"\u041A\u0430\u0447\u0435\u0441\u0442\u0432\u043E: {actual}",aria_label_menu_audio_languages:"\u042F\u0437\u044B\u043A \u0430\u0443\u0434\u0438\u043E: {actual}",aria_label_menu_rate:"\u0421\u043A\u043E\u0440\u043E\u0441\u0442\u044C: {actual}",aria_label_menu_traffic_saving:"\u042D\u043A\u043E\u043D\u043E\u043C\u0438\u044F \u0434\u0430\u043D\u043D\u044B\u0445: {actual}",aria_label_menu_subtitle:"\u0421\u0443\u0431\u0442\u0438\u0442\u0440\u044B: {actual}",aria_label_menu_download:"\u0421\u043A\u0430\u0447\u0430\u0442\u044C \u0432\u0438\u0434\u0435\u043E",aria_label_menu_debug_overlay_enable:"\u0412\u043A\u043B\u044E\u0447\u0438\u0442\u044C \u043E\u0442\u043E\u0431\u0440\u0430\u0436\u0435\u043D\u0438\u0435 \u0442\u0435\u0445\u043D\u0438\u0447\u0435\u0441\u043A\u043E\u0439 \u0438\u043D\u0444\u043E\u0440\u043C\u0430\u0446\u0438\u0438",aria_label_menu_debug_overlay_disable:"\u0412\u044B\u043A\u043B\u044E\u0447\u0438\u0442\u044C \u043E\u0442\u043E\u0431\u0440\u0430\u0436\u0435\u043D\u0438\u0435 \u0442\u0435\u0445\u043D\u0438\u0447\u0435\u0441\u043A\u043E\u0439 \u0438\u043D\u0444\u043E\u0440\u043C\u0430\u0446\u0438\u0438",aria_label_menu_rotate:"\u041F\u043E\u0432\u0435\u0440\u043D\u0443\u0442\u044C \u0432\u0438\u0434\u0435\u043E \u043D\u0430 90 \u0433\u0440\u0430\u0434\u0443\u0441\u043E\u0432",aria_label_menu_loop:"\u041F\u0435\u0440\u0435\u043A\u043B\u044E\u0447\u0435\u043D\u0438\u0435 \u0440\u0435\u0436\u0438\u043C\u0430 \u043F\u043E\u0432\u0442\u043E\u0440\u0435\u043D\u0438\u044F",aria_label_submenu_back:"\u0412\u0435\u0440\u043D\u0443\u0442\u044C\u0441\u044F \u0432 \u043C\u0435\u043D\u044E \u043D\u0430\u0441\u0442\u0440\u043E\u0435\u043A",aria_label_submenu_traffic_saving_off:"\u0412\u044B\u043A\u043B\u044E\u0447\u0438\u0442\u044C \u0440\u0435\u0436\u0438\u043C \u044D\u043A\u043E\u043D\u043E\u043C\u0438\u0438 \u0434\u0430\u043D\u043D\u044B\u0445",aria_label_submenu_traffic_saving_on:"\u0412\u043A\u043B\u044E\u0447\u0438\u0442\u044C \u0440\u0435\u0436\u0438\u043C \u044D\u043A\u043E\u043D\u043E\u043C\u0438\u0438 \u0434\u0430\u043D\u043D\u044B\u0445"},Vc=J_;var x_={mobile_unmute:"Unmute",auto_quality_invariant:"Auto",auto_quality:"Auto ({actual})",auto_quality_option:"Auto",menu_quality:"Quality",menu_playback_rate:"Playback rate",menu_traffic_saving:"Data saving",menu_report:"Report a problem",menu_pip:"Picture in picture",menu_copy_video_link:"Copy video link",menu_copy_video_link_with_timestamp:"Copy link with timestamp",menu_video_rotate:"Rotate",menu_video_loop_on:"Enable loop",menu_video_loop_off:"Disable loop",menu_chromecast:"Chromecast stream",menu_copy_debug:"Copy debug info",menu_save_debug:"Save debug info",menu_debug_overlay:"Tech stats",menu_copy_embed_code:"Copy embed code",menu_audio_languages:"Audio track",audio_stream_display_language_label:"{label} ({language})",audio_stream_display_language_label_index:"{label} {index} ({language})",audio_stream_display_label_index:"{label} {index}",audio_stream_display_language_index:"{language} {index}",audio_stream_display_unknown:"Audio track {index}",pip_dummy_title:"Video plays in picture-in-picture mode",submenu_quality:"Quality",submenu_playback_rate:"Playback rate",submenu_traffic_saving:"Data saving",submenu_settings:"Settings",submenu_audio_languages:"Audio track",playing_ads:"Ads {timeleft}",skip_ads_after:"Skip ads",skip_ads_now:"Ads can be skipped in {time}s",visit_advertiser:"Visit site",aria_timeline:"Time scale slider",aria_timeline_value:"{position} out of {duration}",aria_open_settings:"Open video player settings",doubletap_seek_step:"{seconds} seconds",playback_rate_1:"Normal",playback_rate:"{multiplier}x",video360:"spherical video",subtitles_caption:"Subtitles",subtitles_auto:"{language} (Auto-generated)",subtitles_off:"Off",subtitles_auto_caption:"Auto subtitles",subtitles_turn_on:"Turn on subtitles",subtitles_turn_off:"Turn off subtitles",traffic_saving_off:"Off",traffic_saving_on:"On",traffic_saving_disable:"Disabled",traffic_saving_enable:"Enabled",traffic_saving_helper_text:"When turned on the video quality will be reduced to save data",tooltip_button_disabled:"Button disabled",tooltip_previous:"Previous video",tooltip_restart:"Watch again",tooltip_play:"Play",tooltip_pause:"Pause",tooltip_next:"Next video",tooltip_interactive_go_back:"Back to previous chapter",tooltip_interactive_go_back_disabled:"Interactive history unavailable",tooltip_interactive_go_back_disabled_first:"You're watching the first chapter",tooltip_interactive_go_back_disabled_limit:"Go-back limit exceeded",tooltip_chapter_without_interactive:"This chapter has no interactive segment",tooltip_interactive_of_chapter_completed:"Chapter's interactive segments already watched",tooltip_interactive_seek:"Go to interactive",tooltip_interactive_graph_off:"Show interactive graph",tooltip_interactive_graph_on:"Hide interactive graph",tooltip_live:"Go to the live edge",tooltip_episodes:"Episodes",tooltip_volume:"Turn volume off",tooltip_volume_muted:"Turn volume on",tooltip_subtitles_off:"Turn subtitles on",tooltip_subtitles_on:"Turn subtitles off",tooltip_settings_off:"Open settings",tooltip_settings_on:"Close settings",tooltip_fullscreen_off:"Enter fullscreen mode",tooltip_fullscreen_on:"Exit fullscreen mode",tooltip_chromecast_off:"Turn Chromecast on",tooltip_chromecast_on:"Turn Chromecast off",tooltip_episode_finished:"You have already viewed interactive episode",tooltip_episode_unfinished:"Interactive episode not finished",tooltip_disabled_when_interactive:"Interactive video in progress",tooltip_disabled_when_graph_on:"Button is disabled when graph is opened",tooltip_interactive_interaction_time_indicator:"Press the interactive element",tooltip_vk_logo:"Open in VK Video",tooltip_vk_video_logo:"Go to VK Video",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",waiting_live_day_value:"d",waiting_live_hour_value:"h",waiting_live_minute_value:"min",waiting_live_second_value:"sec",waiting_live_colon:":",waiting_live_upcoming_title:"The broadcast hasn't started yet",waiting_live_timer_title:"Before the start of the broadcast left",waiting_live_recover_title:"The broadcast has been paused - it will resume when the author returns",waiting_record_title:"The broadcast completed - recording will appear later",aria_label_video_player:"Video player",aria_label_spherical_control:"Spherical video control. Use the arrow keys to pan the video.",aria_label_debug_panel:"Technical information area, take a screenshot for technical support",aria_label_new_tab_alert:"Opens in a new tab.",aria_label_context_menu_open:"Open context menu",aria_label_context_menu_close:"Close context menu",aria_label_menu_quality:"Quality: {actual}",aria_label_menu_audio_languages:"Audio language: {actual}",aria_label_menu_rate:"Rate: {actual}",aria_label_menu_traffic_saving:"Data saving: {actual}",aria_label_menu_subtitle:"Subtitles: {actual}",aria_label_menu_download:"Download video",aria_label_menu_debug_overlay_enable:"Enable display of technical information",aria_label_menu_debug_overlay_disable:"Disable display of technical information",aria_label_menu_rotate:"Rotate video 90 degrees",aria_label_menu_loop:"Toggle loop",aria_label_submenu_back:"Return to settings menu",aria_label_submenu_traffic_saving_off:"Disable data saving mode",aria_label_submenu_traffic_saving_on:"Enable data saving mode"},Rc=x_;var ao=new Map;ao.set(qc.EN,Rc);ao.set(qc.RU,Vc);var Dc=new Map,Os=({language:i,pack:e,fallback:t})=>{if(ao.has(i)){let n=ao.get(i);ao.set(i,nt(nt({},n),e))}else ao.set(i,e);Dc.set(i,t)},Fs=i=>ao.has(i),zs=(i,e,t,n)=>{var l;let o=ao.get(i),r=o==null?void 0:o[e];if(Bc(r)){let a=(l=Dc.get(i))!=null?l:n,s=a?ao.get(a):void 0;r=s==null?void 0:s[e]}return Bc(r)?e+Object.values(t!=null?t:{}).join(" "):t?r.replaceAll(/{(\w+?)}/g,(a,s)=>{var u;return(u=t[s])!=null?u:""}):r},U=(i,e)=>{let{interfaceLanguage$:t}=rt(),n=$e(t),o=Wt();return zs(n,i,e,o.defaultLanguage)};import"@vkontakte/videoplayer-core";var ul;(function(i){i.fatal="fatal",i.error="error",i.warning="warning",i.log="log",i.info="info",i.debug="debug",i.critical="critical"})(ul||(ul={}));var $_=/^\s*at (?:(.*?) ?\()?((?:file|https?|blob|chrome-extension|address|native|eval|webpack|<anonymous>|[-a-z]+:|.*bundle|\/).*?)(?::(\d+))?(?::(\d+))?\)?\s*$/i,eh=/^\s*(.*?)(?:\((.*?)\))?(?:^|@)?((?:file|https?|blob|chrome|webpack|resource|moz-extension).*?:\/.*?|\[native code\]|[^@]*(?:bundle|\d+\.js))(?::(\d+))?(?::(\d+))?\s*$/i,th=/^\s*at (?:((?:\[object object\])?.+) )?\(?((?:file|ms-appx|https?|webpack|blob):.*?):(\d+)(?::(\d+))?\)?\s*$/i,ar="?",ih="X-Sentry-Auth",nh=/^(?:(\w+):)\/\/(?:([\w-]+)(?::(\w+))?@)([\w.-]+)(?::(\d+))?\/(.+)/;function oh(i){if(!i.stack)return null;let e=[],t=i.stack.split(`
|
|
13
|
+
`),n,o;for(let r=0;r<t.length;++r){if(n=$_.exec(t[r]))o={filename:n[2]&&n[2].indexOf("address at ")===0?n[2].substr(11):n[2],function:n[1]||ar,lineno:n[3]?+n[3]:null,colno:n[4]?+n[4]:null};else if(n=th.exec(t[r]))o={filename:n[2],function:n[1]||ar,lineno:+n[3],colno:n[4]?+n[4]:null};else if(n=eh.exec(t[r]))r===0&&!n[5]&&i.columnNumber!==void 0&&(e[0].column=i.columnNumber+1),o={filename:n[3],function:n[1]||ar,lineno:n[4]?+n[4]:null,colno:n[5]?+n[5]:null};else continue;!o.function&&o.lineno&&(o.function=ar),e.push(o)}return e.length?{value:Nc(i),type:i.name,stacktrace:{frames:e.reverse()}}:null}function Nc(i){return(i&&i.message||"No error message").split(`
|
|
14
|
+
`).filter(t=>!!t)[0]}function lh(i){try{let e=oh(i);if(e)return e}catch(e){}return{value:Nc(i),type:i&&i.name,stacktrace:{frames:[]}}}function rh(){return"xxxxxxxxxxxx4xxxyxxxxxxxxxxxxxxx".replace(/[xy]/g,i=>{let e=Math.random()*16|0;return(i==="x"?e:e&3|8).toString(16)})}var ur=class{constructor(e){if(e&&e.dsn){let t=nh.exec(e.dsn),n=t?t.slice(1):[],o=n[5].split("/"),r=o.slice(0,-1).join("/");this.apiUrl=n[0]+"://"+n[3]+(n[4]?":"+n[4]:"")+(r?"/"+r:"")+"/api/"+o.pop()+"/store/",this.authHeader="Sentry sentry_version=7,sentry_key="+n[1]+(n[2]?",sentry_secret="+n[2]:"")}this.environment=e&&e.environment}prepare(e){return Bt(nt({},this.getRequestBlank()),{exception:{values:[lh(e)]}})}report(e){this.send(this.prepare(e))}send(e){!this.apiUrl||!e||this.createRequest(e)}createRequest(e){let t=new XMLHttpRequest;t.open("POST",this.apiUrl,!0),t.setRequestHeader("Content-type","application/json"),t.setRequestHeader(ih,this.authHeader||""),t.send(JSON.stringify(e))}getRequestBlank(){return{platform:"javascript",event_id:rh(),sdk:{name:"micro-sentry.javascript.core",version:"0.0.0"},timestamp:Date.now()/1e3,environment:this.environment}}};function Oc(i,e){return Object.prototype.toString.call(e)==="[object RegExp]"?e.test(i):typeof e=="string"?i.indexOf(e)!==-1:!1}function sh(){return window}var fr=class i extends ur{constructor(e,t=sh()){super(e),this.options=e,this.window=t,this.destroyed=!1,this._state={};let{plugins:n=[],beforeSend:o=u=>u,beforeBreadcrumb:r=u=>u,blacklistUrls:l=[],ignoreErrors:a=[],release:s=void 0}=this.options||{};this.plugins=n.map(u=>new u(this)),this.beforeSend=o,this.beforeBreadcrumb=r,this.blacklistUrls=l,this.ignoreErrors=a,this.release=s}get state(){return this._state}clearState(){this._state={}}setTags(e){return this.setKeyState("tags",nt({},e)),this}setTag(e,t){return this.extendState({tags:{[e]:t}}),this}setExtra(e,t){return this.extendState({extra:{[e]:t}}),this}setExtras(e){return this.setKeyState("extra",nt({},e)),this}setUser(e){return this.setKeyState("user",nt({},e)),this}clone(){let e=new i(Bt(nt({},this.options),{plugins:[]}));return e.extendState(this.state),e}withScope(e){let t=this.clone();e(t),t.destroy(),this.setBreadcrumbs(void 0)}addBreadcrumb(e){this.extendState({breadcrumbs:[nt({timestamp:Date.now()/1e3},this.beforeBreadcrumb(e))]})}setBreadcrumbs(e){this.setKeyState("breadcrumbs",e)}captureMessage(e,t){this.send(Bt(nt({},this.getRequestBlank()),{message:e,level:t}))}destroy(){this.destroyed=!0,this.plugins.forEach(e=>{e.destroy&&e.destroy()})}isIgnoredError(e){return this.ignoreErrors.length?this.getPossibleEventMessages(e).some(t=>this.ignoreErrors.some(n=>Oc(t,n))):!1}getRequestBlank(){return nt(Bt(nt({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(nt({release:this.release},e))),this.setBreadcrumbs(void 0))}getPossibleEventMessages(e){if(e.message)return[e.message];if(e.exception)try{let{type:t="",value:n=""}=e.exception.values&&e.exception.values[0]||{};return[`${n}`,`${t}: ${n}`]}catch(t){return[]}return[]}isDeniedUrl(e){if(!this.blacklistUrls.length)return!1;let t=this.getEventFilterUrl(e);return t?this.blacklistUrls.some(n=>Oc(t,n)):!1}getEventFilterUrl(e){try{if(e.exception){let t=e.exception.values&&e.exception.values[0].stacktrace&&e.exception.values[0].stacktrace.frames;return t&&t[t.length-1].filename||null}return null}catch(t){return null}}extendState(e){this._state=Object.keys(e).reduce((t,n)=>{let o=this._state[n],r=Array.isArray(o)?o:null,l=e[n],a=Array.isArray(l)?l:null;return Bt(nt({},t),{[n]:r||a?[...r||[],...a||[]]:nt(nt({},typeof o!="string"?o:{}),typeof l!="string"?l:{})})},this._state)}setKeyState(e,t){this._state[e]=t}};import{isNonNullable as cr,Subscription as ah}from"@vkontakte/videoplayer-shared";var dr=null,Oo=class{constructor(e,t,n={}){!dr&&e.dsn&&(this.sentryClient=new fr({dsn:e.dsn,environment:t.env}),this.version=t.version,this.sentrySubscription=new ah,this.options=e,this.context=n,dr=this)}destroy(){var e,t;(e=this.sentryClient)==null||e.destroy(),(t=this.sentrySubscription)==null||t.unsubscribe(),dr=null}logIError(e,t=!1){e.thrown&&this.report(e.thrown,{fatal:t,errorType:e.id,category:e.category},{message:e.message,errorData:e.data})}report(e,t={},n={}){let{sentryClient:o,context:r,options:l}=this,{sampleRate:a=0,whiteErrorIdList:s,whiteErrorCategoryList:u=[],blackErrorIdList:c,blackErrorCategoryList:m}=l,{errorType:h,category:w}=t;if(cr(w)&&m.includes(w)||cr(h)&&c.includes(h))return;if(Math.random()<=a||cr(w)&&u.includes(w)||cr(h)&&s.includes(h)){Object.keys(t).length&&o.setTags(nt({version:this.version},t)),(Object.keys(r).length||Object.keys(n).length)&&o.setExtras(nt(nt({},r),n));try{h&&o.captureMessage(h,t.fatal?ul.fatal:ul.error),o.report(e)}catch(C){console.error(C)}}}static getInstance(){return dr}};var mr=i=>{if(i.requestFullscreen)return i.requestFullscreen();if(i.msRequestFullscreen)return i.msRequestFullscreen();if(i.webkitRequestFullscreen)return i.webkitRequestFullscreen();if(i.mozRequestFullScreen)return i.mozRequestFullScreen();let e=i.querySelector("video");return e!=null&&e.webkitEnterFullscreen?e.webkitEnterFullscreen():Promise.reject()},pr=i=>i.exitFullscreen?i.exitFullscreen():i.msExitFullscreen?i.msExitFullscreen():i.webkitExitFullscreen?i.webkitExitFullscreen():i.mozCancelFullScreen?i.mozCancelFullScreen():Promise.reject(),Fc=i=>{let e=i;return e!=null&&e.webkitExitFullscreen?e==null?void 0:e.webkitExitFullscreen():Promise.reject()},Nl=()=>{let i=document;return i.fullscreenElement||i.mozFullScreenElement||i.webkitFullscreenElement||i.msFullscreenElement},bo=()=>!!Nl(),_r=i=>{document.addEventListener("fullscreenchange",i),document.addEventListener("webkitfullscreenchange",i),document.addEventListener("mozfullscreenchange",i),document.addEventListener("MSFullscreenChange",i)},hr=i=>{document.removeEventListener("fullscreenchange",i),document.removeEventListener("webkitfullscreenchange",i),document.removeEventListener("mozfullscreenchange",i),document.removeEventListener("MSFullscreenChange",i)},zc=i=>{let e=window.screen;return(o=>pt(void 0,null,function*(){return e.orientation?e.orientation.lock(o):e.mozLockOrientation?e.mozLockOrientation(o):e.msLockOrientation?e.msLockOrientation(o):Promise.reject()}))(((o={width:0,height:0})=>o.width<=o.height?"portrait":"landscape")(i))};import{clientChecker as Hc}from"@vkontakte/videoplayer-shared";var Uc=()=>({title:U("hotkey_map_modal_title"),closeBtnText:U("hotkey_map_modal_close_btn_text"),groups:[{title:U("hotkey_map_group_title_common"),items:[{description:U("hotkey_map_item_mute_description"),value:U("hotkey_map_item_mute_value")},{description:U("hotkey_map_item_volume_up_description"),value:U("hotkey_map_item_volume_up_value")},{description:U("hotkey_map_item_volume_down_description"),value:U("hotkey_map_item_volume_down_value")},{description:U("hotkey_map_item_pip_description"),value:U("hotkey_map_item_pip_value")},{description:U("hotkey_map_item_full_screen_description"),value:U("hotkey_map_item_full_screen_value")},{description:U("hotkey_map_item_show_context_menu_description"),value:U("hotkey_map_item_show_context_menu_value")},{description:U("hotkey_map_item_show_hotkey_map_description"),value:U("hotkey_map_item_show_hotkey_map_value")}]},{title:U("hotkey_map_group_title_playback"),items:[{description:U("hotkey_map_item_play_toggle_description"),value:U("hotkey_map_item_play_toggle_value")},{description:U("hotkey_map_item_seek_backward_description"),value:U("hotkey_map_item_seek_backward_value")},{description:U("hotkey_map_item_seek_forward_description"),value:U("hotkey_map_item_seek_forward_value")},{description:U("hotkey_map_item_fast_seek_backward_description"),value:U("hotkey_map_item_fast_seek_backward_value")},{description:U("hotkey_map_item_fast_seek_forward_description"),value:U("hotkey_map_item_fast_seek_forward_value")},{description:U("hotkey_map_item_rate_down_description"),value:U("hotkey_map_item_rate_down_value")},{description:U("hotkey_map_item_rate_up_description"),value:U("hotkey_map_item_rate_up_value")},{description:U("hotkey_map_item_prev_frame_description"),value:U("hotkey_map_item_prev_frame_value")},{description:U("hotkey_map_item_next_frame_description"),value:U("hotkey_map_item_next_frame_value")},{description:U("hotkey_map_item_jump_seek_description"),value:U("hotkey_map_item_jump_seek_value")}]},{title:U("hotkey_map_group_title_subtitles"),items:[{description:U("hotkey_map_item_subtitles_toggle_description"),value:U("hotkey_map_item_subtitles_toggle_value")}]},{title:U("hotkey_map_group_title_episodes"),items:[{description:U("hotkey_map_item_prev_episode_description"),value:Hc.isApple?U("hotkey_map_item_prev_episode_mac_value"):U("hotkey_map_item_prev_episode_pc_value")},{description:U("hotkey_map_item_next_episode_description"),value:Hc.isApple?U("hotkey_map_item_next_episode_mac_value"):U("hotkey_map_item_next_episode_pc_value")}]}]});import{debounceFn as uh,clientChecker as fh,ValueSubject as ch}from"@vkontakte/videoplayer-shared";var Fo=class{constructor(){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:uh(this.onResize.bind(this),300)};this.info={isActive$:new ch(this.isActive()),type:0}}isSupported(){return document.pictureInPictureEnabled&&!fh.isYandex}isActive(){return this.isSupported()&&!!document.pictureInPictureElement}setContext(e){this.svelteContext=e}revealPictureInPicture(){return pt(this,null,function*(){this.isRequested&&(this.unregistryEventHandlers(),yield this.request(),this.registryEventHandlers())})}request(){return pt(this,null,function*(){var e;if(!(!this.isSupported()||this.isActive()))try{yield(e=this.videoElement)==null?void 0:e.requestPictureInPicture()}catch(t){this.isRequested=!1}})}remove(){return pt(this,null,function*(){!this.isSupported()||!this.isActive()||(yield document.exitPictureInPicture())})}assignPlayerContainer(e){this.isSupported()&&(this.playerContainer=e)}updateVideoElement(){var e;this.isSupported()&&(this.videoElement=(e=this.playerContainer)==null?void 0:e.querySelector("video"))}registryEventHandlers(){var e,t;(e=this.videoElement)==null||e.addEventListener("enterpictureinpicture",this.eventHandlers.enterpictureinpicture),(t=this.videoElement)==null||t.addEventListener("leavepictureinpicture",this.eventHandlers.leavepictureinpicture)}registryExternalEventHandlers(e){this.externalEventHandlers=nt({},e)}unregistryEventHandlers(){var e,t;(e=this.videoElement)==null||e.removeEventListener("enterpictureinpicture",this.eventHandlers.enterpictureinpicture),(t=this.videoElement)==null||t.removeEventListener("leavepictureinpicture",this.eventHandlers.leavepictureinpicture)}dispose(){return pt(this,null,function*(){this.unregistryEventHandlers(),yield this.remove()})}onEnterPictureInPicture(e){var o,r;let n=e.pictureInPictureWindow;n&&(this.info.isActive$.next(!0),this.isRequested=!0,n.addEventListener("resize",this.eventHandlers.resize),(r=(o=this.externalEventHandlers).enterpictureinpicture)==null||r.call(o,e))}onLeavePictureInPicture(e){var o,r,l;let n=e.pictureInPictureWindow;this.info.isActive$.next(!1),this.isRequested=!1,n==null||n.removeEventListener("resize",this.eventHandlers.resize),(r=(o=this.externalEventHandlers).leavepictureinpicture)==null||r.call(o,e),(l=this.playerDummyElement)==null||l.$destroy()}onResize(e){var t,n;(n=(t=this.externalEventHandlers).resize)==null||n.call(t,e)}};function zo(i){return i instanceof Fo}function dh(i){let e=rt();return Nt(()=>{e.getAdmanWrapper().startPostroll()}),[]}var Ks=class extends j{constructor(e){super(),G(this,e,dh,null,W,{})}},Kc=Ks;import{noop as mh}from"@vkontakte/videoplayer-shared";function ph(i){Pe(i,"svelte-1k4i25s",".container.svelte-1k4i25s.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.svelte-1k4i25s{bottom:14px;top:unset;font-size:15px;max-width:142px}.icon.svelte-1k4i25s.svelte-1k4i25s{margin-left:4px;position:relative;top:2px;fill:var(--white);transition:fill .2s}.skip.svelte-1k4i25s.svelte-1k4i25s{width:86px}.skippable.svelte-1k4i25s.svelte-1k4i25s{cursor:pointer;color:var(--white)}.skippable.svelte-1k4i25s.svelte-1k4i25s:hover{color:rgba(255, 255, 255, .75)}.skippable.svelte-1k4i25s:hover .icon.svelte-1k4i25s{fill:rgba(255, 255, 255, .75)}")}function _h(i){let e=U("skip_ads_after",{time:Math.ceil(i[1]-i[0]).toFixed(0)})+"",t;return{c(){t=De(e)},m(n,o){S(n,t,o)},p(n,o){o&3&&e!==(e=U("skip_ads_after",{time:Math.ceil(n[1]-n[0]).toFixed(0)})+"")&&Qe(t,e)},d(n){n&&k(t)}}}function hh(i){let e,t=U("skip_ads_now")+"",n,o,r,l,a,s;return{c(){e=T("div"),n=De(t),o=B(),r=D("svg"),l=D("path"),f(l,"fill-rule","evenodd"),f(l,"clip-rule","evenodd"),f(l,"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"),f(r,"class","icon svelte-1k4i25s"),f(r,"width","7"),f(r,"height","12"),f(r,"viewBox","0 0 7 12"),f(r,"fill","none"),f(r,"xmlns","http://www.w3.org/2000/svg"),f(e,"class","skip svelte-1k4i25s")},m(u,c){S(u,e,c),p(e,n),p(e,o),p(e,r),p(r,l),a||(s=pe(e,"click",at(function(){Bi(i[2])&&i[2].apply(this,arguments)})),a=!0)},p(u,c){i=u},d(u){u&&k(e),a=!1,s()}}}function gh(i){let e;function t(r,l){return r[3]?hh:_h}let n=t(i,-1),o=n(i);return{c(){e=T("div"),o.c(),f(e,"class","container svelte-1k4i25s"),O(e,"container-mobile",i[4]),O(e,"skippable",i[3])},m(r,l){S(r,e,l),o.m(e,null)},p(r,[l]){n===(n=t(r,l))&&o?o.p(r,l):(o.d(1),o=n(r),o&&(o.c(),o.m(e,null))),l&16&&O(e,"container-mobile",r[4]),l&8&&O(e,"skippable",r[3])},i:Ce,o:Ce,d(r){r&&k(e),o.d()}}}function bh(i,e,t){let n,{position:o=0}=e,{secondsToWatchBeforeSkip:r=0}=e,{skipAd:l=mh}=e,s=rt().ui.isMobile;H(i,s,c=>t(4,n=c));let u;return i.$$set=c=>{"position"in c&&t(0,o=c.position),"secondsToWatchBeforeSkip"in c&&t(1,r=c.secondsToWatchBeforeSkip),"skipAd"in c&&t(2,l=c.skipAd)},i.$$.update=()=>{i.$$.dirty&3&&t(3,u=o>0&&o>=r)},[o,r,l,u,n,s]}var Ws=class extends j{constructor(e){super(),G(this,e,bh,gh,W,{position:0,secondsToWatchBeforeSkip:1,skipAd:2},ph)}},Wc=Ws;function vh(i){Pe(i,"svelte-1wy3dql","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 yh(i){let e;return{c(){e=T("button"),e.textContent=`${U("visit_advertiser")}`,f(e,"class","svelte-1wy3dql")},m(t,n){S(t,e,n)},p:Ce,i:Ce,o:Ce,d(t){t&&k(e)}}}var js=class extends j{constructor(e){super(),G(this,e,null,yh,W,{},vh)}},jc=js;function wh(i){Pe(i,"svelte-354ajf",`.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(
|
|
15
15
|
360deg,
|
|
16
16
|
rgba(0, 0, 0, 0) 0%,
|
|
17
17
|
rgba(0, 0, 0, 0.05) 12%,
|
|
@@ -21,17 +21,17 @@ var w_=Object.defineProperty,k_=Object.defineProperties;var C_=Object.getOwnProp
|
|
|
21
21
|
rgba(0, 0, 0, 0.5) 77%,
|
|
22
22
|
rgba(0, 0, 0, 0.55) 88%,
|
|
23
23
|
rgba(0, 0, 0, 0.65) 100%
|
|
24
|
-
)}`)}function Hc(i){let e;return{c(){e=T("div"),f(e,"class","top-gradient-mobile svelte-354ajf")},m(t,n){S(t,e,n)},d(t){t&&k(e)}}}function zc(i){let e,t;return e=new Oc({props:{position:i[5],secondsToWatchBeforeSkip:i[6],skipAd:i[8].actions.internal.skipAd}}),{c(){V(e.$$.fragment)},m(n,o){A(e,n,o),t=!0},p(n,o){let r={};o&32&&(r.position=n[5]),o&64&&(r.secondsToWatchBeforeSkip=n[6]),e.$set(r)},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){_(e.$$.fragment,n),t=!1},d(n){L(e,n)}}}function Uc(i){let e,t;return e=new qc({}),{c(){V(e.$$.fragment)},m(n,o){A(e,n,o),t=!0},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){_(e.$$.fragment,n),t=!1},d(n){L(e,n)}}}function Kc(i){let e,t;return e=new Fc({}),{c(){V(e.$$.fragment)},m(n,o){A(e,n,o),t=!0},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){_(e.$$.fragment,n),t=!1},d(n){L(e,n)}}}function wh(i){let e,t,n,o,r,l,a,s=i[0]&&Hc(i),u=i[3]&&zc(i),c=i[7]&&Uc(i),m=i[4]&&Kc(i);return{c(){e=T("div"),s&&s.c(),t=R(),n=T("video"),o=R(),u&&u.c(),r=R(),c&&c.c(),l=R(),m&&m.c(),ki(n,"width","100%"),ki(n,"height","100%"),n.playsInline=!0,f(e,"class","container svelte-354ajf")},m(h,w){S(h,e,w),s&&s.m(e,null),p(e,t),p(e,n),i[19](n),p(e,o),u&&u.m(e,null),p(e,r),c&&c.m(e,null),p(e,l),m&&m.m(e,null),i[20](e),a=!0},p(h,[w]){h[0]?s||(s=Hc(h),s.c(),s.m(e,t)):s&&(s.d(1),s=null),h[3]?u?(u.p(h,w),w&8&&d(u,1)):(u=zc(h),u.c(),d(u,1),u.m(e,r)):u&&(ce(),_(u,1,1,()=>{u=null}),de()),h[7]?c?w&128&&d(c,1):(c=Uc(h),c.c(),d(c,1),c.m(e,l)):c&&(ce(),_(c,1,1,()=>{c=null}),de()),h[4]?m?w&16&&d(m,1):(m=Kc(h),m.c(),d(m,1),m.m(e,null)):m&&(ce(),_(m,1,1,()=>{m=null}),de())},i(h){a||(d(u),d(c),d(m),a=!0)},o(h){_(u),_(c),_(m),a=!1},d(h){h&&k(e),s&&s.d(),i[19](null),u&&u.d(),c&&c.d(),m&&m.d(),i[20](null)}}}function kh(i,e,t){let n,o,r,l,a,{adsSlotId:s=void 0}=e,{adsParams:u=void 0}=e,{adsPreviewParam:c=void 0}=e,{duration:m=0}=e,h=st(),w=h.state.isEnded$;z(i,w,Z=>t(7,a=Z));let b=h.ui.isMobile;z(i,b,Z=>t(0,o=Z));let C,v,I=!1,y=h.ads.playbackState;z(i,y,Z=>t(18,n=Z));let g=h.ads.canSkip,P=h.ads.position;z(i,P,Z=>t(5,r=Z));let B=h.ads.secondsToWatchBeforeSkip;z(i,B,Z=>t(6,l=Z));let M,q;Ot(()=>{let Z=new AbortController,x=()=>{Z.abort()},oe=h.getAdmanWrapper();if(!s){oe.onAdmanLoadingError();return}let{width:H,height:j}=et(h.ui.playerSize),J=et(h.ui.isFullscreen),F=et(h.ui.isAutoplay),O={width:H,height:j,isFullscreen:J,isAutoplay:F,adsContainer:C,adsVideoElement:v,slotId:s,params:u,previewParam:c,duration:m};return window.AdmanHTML?(oe.initAdman(O),I=!0):oe.loadAdman(Z.signal).then(()=>{oe.initAdman(O),I=!0}).catch(()=>{oe.onAdmanLoadingError()}),()=>{!I&&x()}});function te(Z){ge[Z?"unshift":"push"](()=>{v=Z,t(2,v)})}function pe(Z){ge[Z?"unshift":"push"](()=>{C=Z,t(1,C)})}return i.$$set=Z=>{"adsSlotId"in Z&&t(14,s=Z.adsSlotId),"adsParams"in Z&&t(15,u=Z.adsParams),"adsPreviewParam"in Z&&t(16,c=Z.adsPreviewParam),"duration"in Z&&t(17,m=Z.duration)},i.$$.update=()=>{i.$$.dirty&262144&&t(3,M=g&&n!=="inactive"),i.$$.dirty&262145&&t(4,q=o&&n!=="inactive")},[o,C,v,M,q,r,l,a,h,w,b,y,P,B,s,u,c,m,n,te,pe]}var Hs=class extends W{constructor(e){super(),G(this,e,kh,wh,K,{adsSlotId:14,adsParams:15,adsPreviewParam:16,duration:17},yh)}},pr=Hs;var Rn=i=>{if(!isFinite(i))return"00:00";let e=Math.round(i),t=Math.floor(e/(60*60));e-=t*3600;let n=Math.floor(e/60);return e-=n*60,(t>0?[t,n,e]:[n,e]).map(r=>r>9?String(r):`0${r}`).join(":")};function Ch(i){let e,t,n,o,r=i[2].default,l=Le(r,i,i[1],null),a=[{xmlns:"http://www.w3.org/2000/svg"},{width:"42"},{height:"20"},{"aria-hidden":"true"},{"data-testid":"live-icon"},{role:"img"},i[0]],s={};for(let u=0;u<a.length;u+=1)s=ue(s,a[u]);return{c(){e=D("svg"),l&&l.c(),t=D("path"),n=D("path"),f(t,"fill","none"),f(t,"stroke","#fff"),f(t,"stroke-width","2"),f(t,"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"),f(n,"fill","#f0f2f5"),f(n,"fill-rule","evenodd"),f(n,"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"),we(e,s)},m(u,c){S(u,e,c),l&&l.m(e,null),p(e,t),p(e,n),o=!0},p(u,[c]){l&&l.p&&(!o||c&2)&&Ve(l,r,u,u[1],o?Me(r,u[1],c,null):Re(u[1]),null),we(e,s=Oe(a,[{xmlns:"http://www.w3.org/2000/svg"},{width:"42"},{height:"20"},{"aria-hidden":"true"},{"data-testid":"live-icon"},{role:"img"},c&1&&u[0]]))},i(u){o||(d(l,u),o=!0)},o(u){_(l,u),o=!1},d(u){u&&k(e),l&&l.d(u)}}}function Sh(i,e,t){let{$$slots:n={},$$scope:o}=e;return i.$$set=r=>{t(0,e=ue(ue({},e),ye(r))),"$$scope"in r&&t(1,o=r.$$scope)},e=ye(e),[e,o,n]}var zs=class extends W{constructor(e){super(),G(this,e,Sh,Ch,K,{})}},jc=zs;function Th(i){let e,t,n,o,r=i[2].default,l=Le(r,i,i[1],null),a=[{xmlns:"http://www.w3.org/2000/svg"},{width:"42"},{height:"20"},{fill:"none"},{"aria-hidden":"true"},{"data-testid":"live-active-icon"},{role:"img"},i[0]],s={};for(let u=0;u<a.length;u+=1)s=ue(s,a[u]);return{c(){e=D("svg"),l&&l.c(),t=D("rect"),n=D("path"),f(t,"width","42"),f(t,"height","20"),f(t,"fill","#FF3347"),f(t,"rx","5"),f(n,"fill","#F2F3F5"),f(n,"fill-rule","evenodd"),f(n,"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"),f(n,"clip-rule","evenodd"),we(e,s)},m(u,c){S(u,e,c),l&&l.m(e,null),p(e,t),p(e,n),o=!0},p(u,[c]){l&&l.p&&(!o||c&2)&&Ve(l,r,u,u[1],o?Me(r,u[1],c,null):Re(u[1]),null),we(e,s=Oe(a,[{xmlns:"http://www.w3.org/2000/svg"},{width:"42"},{height:"20"},{fill:"none"},{"aria-hidden":"true"},{"data-testid":"live-active-icon"},{role:"img"},c&1&&u[0]]))},i(u){o||(d(l,u),o=!0)},o(u){_(l,u),o=!1},d(u){u&&k(e),l&&l.d(u)}}}function Ph(i,e,t){let{$$slots:n={},$$scope:o}=e;return i.$$set=r=>{t(0,e=ue(ue({},e),ye(r))),"$$scope"in r&&t(1,o=r.$$scope)},e=ye(e),[e,o,n]}var Us=class extends W{constructor(e){super(),G(this,e,Ph,Th,K,{})}},Wc=Us;function Ih(i){let e,t;return e=new jc({}),{c(){V(e.$$.fragment)},m(n,o){A(e,n,o),t=!0},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){_(e.$$.fragment,n),t=!1},d(n){L(e,n)}}}function Eh(i){let e,t;return e=new Wc({}),{c(){V(e.$$.fragment)},m(n,o){A(e,n,o),t=!0},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){_(e.$$.fragment,n),t=!1},d(n){L(e,n)}}}function Ah(i){let e,t,n,o,r=[Eh,Ih],l=[];function a(s,u){return s[0]?0:1}return e=a(i,-1),t=l[e]=r[e](i),{c(){t.c(),n=dt()},m(s,u){l[e].m(s,u),S(s,n,u),o=!0},p(s,[u]){let c=e;e=a(s,u),e!==c&&(ce(),_(l[c],1,1,()=>{l[c]=null}),de(),t=l[e],t||(t=l[e]=r[e](s),t.c()),d(t,1),t.m(n.parentNode,n))},i(s){o||(d(t),o=!0)},o(s){_(t),o=!1},d(s){s&&k(n),l[e].d(s)}}}function Lh(i,e,t){let{isActive:n=!1}=e;return i.$$set=o=>{"isActive"in o&&t(0,n=o.isActive)},[n]}var Ks=class extends W{constructor(e){super(),G(this,e,Lh,Ah,K,{isActive:0})}},_r=Ks;function Mh(i){Ie(i,"svelte-7pnl2h",".thumb-timer.svelte-7pnl2h.svelte-7pnl2h{position:absolute;z-index:2;bottom:0;right:0;margin:8px;padding:0 7px;border-radius:3px;background:var(--black-alpha-40);color:var(--white);font-size:12.5px;line-height:23px;height:23px;white-space:nowrap;transition:visibility var(--controls-transition-duration), opacity var(--controls-transition-duration)}.thumb-timer.live.svelte-7pnl2h.svelte-7pnl2h{font-size:0;line-height:20px;height:20px;border-radius:2px;background:var(--red)}.thumb-timer.hidden.svelte-7pnl2h.svelte-7pnl2h{visibility:hidden;opacity:0}.thumb-timer.svelte-7pnl2h.svelte-7pnl2h:after{content:'';display:inline-block;vertical-align:middle;height:100%}.thumb-timer-live-icon.svelte-7pnl2h.svelte-7pnl2h{display:inline-block;vertical-align:middle;width:42px;height:20px;margin:0 -7px}.thumb-timer-equalizer.svelte-7pnl2h.svelte-7pnl2h{display:inline-block;vertical-align:middle;position:relative;width:10px;height:10px;margin-top:-4px;margin-right:4px}.live.svelte-7pnl2h .thumb-timer-equalizer.svelte-7pnl2h{margin-top:-2px}.thumb-timer-equalizer.svelte-7pnl2h .col.svelte-7pnl2h{width:2px;height:10px;margin-right:2px;background:var(--white);position:absolute;bottom:0;transform-origin:50% 100%;animation:1.5s infinite linear alternate;animation-play-state:paused}.thumb-timer.playing.svelte-7pnl2h .thumb-timer-equalizer .col.svelte-7pnl2h{animation-play-state:running}.thumb-timer-equalizer.svelte-7pnl2h .col.svelte-7pnl2h:nth-child(1){left:0;animation-name:svelte-7pnl2h-thumb-timer-equalizer-col1}.thumb-timer-equalizer.svelte-7pnl2h .col.svelte-7pnl2h:nth-child(2){left:3px;animation-name:svelte-7pnl2h-thumb-timer-equalizer-col2}.thumb-timer-equalizer.svelte-7pnl2h .col.svelte-7pnl2h:nth-child(3){left:6px;animation-name:svelte-7pnl2h-thumb-timer-equalizer-col3}@keyframes svelte-7pnl2h-thumb-timer-equalizer-col1{0%{transform:scaleY(0.1)}25%{transform:scaleY(0.8)}50%{transform:scaleY(0.4)}75%{transform:scaleY(0.6)}100%{transform:scaleY(0.1)}}@keyframes svelte-7pnl2h-thumb-timer-equalizer-col2{0%{transform:scaleY(1)}25%{transform:scaleY(0.3)}50%{transform:scaleY(0.9)}75%{transform:scaleY(0.6)}100%{transform:scaleY(1)}}@keyframes svelte-7pnl2h-thumb-timer-equalizer-col3{0%{transform:scaleY(0.6)}25%{transform:scaleY(0.9)}50%{transform:scaleY(0.1)}75%{transform:scaleY(0.9)}100%{transform:scaleY(0.6)}}.thumb-timer-text.svelte-7pnl2h.svelte-7pnl2h{display:inline-block;text-align:right}")}function Vh(i){let e=Rn(i[4]-i[3])+"",t;return{c(){t=qe(e)},m(n,o){S(n,t,o)},p(n,o){o&24&&e!==(e=Rn(n[4]-n[3])+"")&&Ye(t,e)},i:Se,o:Se,d(n){n&&k(t)}}}function Rh(i){let e,t,n;return t=new _r({props:{isActive:!0}}),{c(){e=T("div"),V(t.$$.fragment),f(e,"class","thumb-timer-live-icon svelte-7pnl2h")},m(o,r){S(o,e,r),A(t,e,null),n=!0},p:Se,i(o){n||(d(t.$$.fragment,o),n=!0)},o(o){_(t.$$.fragment,o),n=!1},d(o){o&&k(e),L(t)}}}function Bh(i){let e,t,n,o,r,l,a,s=[Rh,Vh],u=[];function c(m,h){return m[1]?0:1}return r=c(i,-1),l=u[r]=s[r](i),{c(){e=T("div"),t=T("div"),t.innerHTML='<div class="col svelte-7pnl2h"></div> <div class="col svelte-7pnl2h"></div> <div class="col svelte-7pnl2h"></div>',n=R(),o=T("span"),l.c(),f(t,"class","thumb-timer-equalizer svelte-7pnl2h"),f(o,"class","thumb-timer-text svelte-7pnl2h"),f(e,"role","timer"),f(e,"class","thumb-timer svelte-7pnl2h"),f(e,"data-testid","thumb-timer"),N(e,"live",i[1]),N(e,"hidden",i[0]),N(e,"playing",i[2])},m(m,h){S(m,e,h),p(e,t),p(e,n),p(e,o),u[r].m(o,null),a=!0},p(m,[h]){let w=r;r=c(m,h),r===w?u[r].p(m,h):(ce(),_(u[w],1,1,()=>{u[w]=null}),de(),l=u[r],l?l.p(m,h):(l=u[r]=s[r](m),l.c()),d(l,1),l.m(o,null)),(!a||h&2)&&N(e,"live",m[1]),(!a||h&1)&&N(e,"hidden",m[0]),(!a||h&4)&&N(e,"playing",m[2])},i(m){a||(d(l),a=!0)},o(m){_(l),a=!1},d(m){m&&k(e),u[r].d()}}}function Dh(i,e,t){let{isHidden:n=!1}=e,{isLive:o=!1}=e,{isPlaying:r=!1}=e,{position:l}=e,{duration:a}=e;return i.$$set=s=>{"isHidden"in s&&t(0,n=s.isHidden),"isLive"in s&&t(1,o=s.isLive),"isPlaying"in s&&t(2,r=s.isPlaying),"position"in s&&t(3,l=s.position),"duration"in s&&t(4,a=s.duration)},[n,o,r,l,a]}var js=class extends W{constructor(e){super(),G(this,e,Dh,Bh,K,{isHidden:0,isLive:1,isPlaying:2,position:3,duration:4},Mh)}},hr=js;var al=i=>{if(document.queryCommandSupported&&document.queryCommandSupported("copy")){let e=document.createElement("textarea");e.textContent=i,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 $c}from"@vkontakte/videoplayer-core";import{clientChecker as Gc}from"@vkontakte/videoplayer-shared";var Fo=i=>{i.stopPropagation(),i.preventDefault()},qh=i=>{var t;let e=i.previousElementSibling;e||(e=(t=i.parentNode)==null?void 0:t.lastElementChild),e==null||e.focus()},Oh=i=>{var t;let e=i.nextElementSibling;e||(e=(t=i.parentNode)==null?void 0:t.firstElementChild),e==null||e.focus()},Fh=i=>{let e=i.code;return e==="Tab"&&!i.shiftKey||e==="ArrowDown"},Hh=i=>{let e=i.code;return e==="Tab"||e==="ArrowUp"},Qc=i=>i.code==="Escape",zh=i=>i.code==="ArrowLeft",Yc=(i,e=!0)=>{let t=i.code;return["Enter","Space"].includes(t)||!e&&t==="ArrowRight"},Zc=i=>{if(Fh(i)){Fo(i),Oh(i.target);return}Hh(i)&&(Fo(i),qh(i.target))},fl=i=>!Gc.isAndroid&&(i==null?void 0:i.detail)===0||Gc.isAndroid&&(i==null?void 0:i.pointerType)==="",cl=(i,e,t)=>ct(void 0,null,function*(){yield Wn(),i&&!i.classList.contains("opened")&&!e&&et(t)&&(yield Wn(),t.set(!1),i.focus())}),Xc=(i,e,t)=>ct(void 0,null,function*(){yield Wn(),i&&!e&&et(t)&&(t.set(!1),i.focus())}),Ho=(i,e,t)=>ct(void 0,null,function*(){var o;yield Wn(),!!i&&e&&t&&((o=i.children[0])==null||o.focus())}),dl=(i,e,t)=>ct(void 0,null,function*(){!!i&&t&&(e.set(!1),setTimeout(()=>{i.focus()},100))}),gr=(i,e)=>{Zc(i),Qc(i)&&(Fo(i),e())},ml=(i,e,t)=>ct(void 0,null,function*(){if(Yc(i,!1)){Fo(i),e(),yield Wn();let n=t();n==null||n.focus()}}),pl=(i,e,t,n)=>ct(void 0,null,function*(){if(Zc(i),zh(i)){Fo(i),e(),t.set(!0);return}Qc(i)&&(Fo(i),n())}),ci=(i,e)=>{Yc(i)&&(Fo(i),e())},Jc=i=>{let e=i.getBoundingClientRect(),t=-14,n=e.left+e.width,o=e.top+t;return{right:n,bottom:o}},xc=i=>{if(!i)return{top:0,left:0};let e=i.getBoundingClientRect(),t=-58,n=8,o=e.left+n;return{bottom:e.bottom+t,left:o}};import{isNullable as br}from"@vkontakte/videoplayer-shared";function Uh(i){Ie(i,"svelte-1vzqlps","ul.svelte-1vzqlps{position:absolute;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}li.svelte-1vzqlps{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}li.svelte-1vzqlps:hover{background:rgba(66, 66, 66, .5);color:var(--white)}")}function ed(i){var J;let e,t,n,o,r,l,a,s,u,c,m=(i[10].features.saveDebugInfoToFile?U("menu_save_debug"):U("menu_copy_debug"))+"",h,w,b,C,v,I=U("menu_debug_overlay")+"",y,g,P,B,M=i[10].features.copyVideoLink&&((J=i[9].callbacks)==null?void 0:J.onCopyVideoLink)&&Kh(i),q=i[19]&&jh(i),te=i[12]&&i[6]!==$c.CONNECTED&&!i[17]&&id(i);function pe(F,O){return F[4]?Gh:Wh}let Z=pe(i,[-1,-1]),x=Z(i),oe=i[10].features.videoRotate&&!i[17]&&Qh(i),H=i[10].showSupport&&!i[7]&&nd(i),j=i[10].features.saveTraceInfoToFile&&Yh(i);return{c(){e=T("ul"),M&&M.c(),t=R(),q&&q.c(),n=R(),te&&te.c(),o=R(),r=T("li"),x.c(),a=R(),oe&&oe.c(),s=R(),H&&H.c(),u=R(),c=T("li"),h=qe(m),b=R(),j&&j.c(),C=R(),v=T("li"),y=qe(I),f(r,"tabindex","0"),f(r,"role","menuitem"),f(r,"aria-label",l=U("aria_label_menu_loop")),f(r,"class","svelte-1vzqlps"),f(c,"tabindex","0"),f(c,"role","menuitem"),f(c,"aria-label",w=i[10].features.saveDebugInfoToFile?U("menu_save_debug"):U("menu_copy_debug")),f(c,"class","svelte-1vzqlps"),f(v,"tabindex","0"),f(v,"role","menuitem"),f(v,"aria-label",g=i[8]?U("aria_label_menu_debug_overlay_disable"):U("aria_label_menu_debug_overlay_enable")),f(v,"class","svelte-1vzqlps"),f(e,"role","menu"),ki(e,"top",i[3]+"px"),ki(e,"left",i[2]+"px"),f(e,"class","svelte-1vzqlps")},m(F,O){S(F,e,O),M&&M.m(e,null),p(e,t),q&&q.m(e,null),p(e,n),te&&te.m(e,null),p(e,o),p(e,r),x.m(r,null),p(e,a),oe&&oe.m(e,null),p(e,s),H&&H.m(e,null),p(e,u),p(e,c),p(c,h),p(e,b),j&&j.m(e,null),p(e,C),p(e,v),p(v,y),i[48](e),P||(B=[he(r,"click",at(i[26])),he(r,"keydown",i[39]),he(c,"click",at(i[22])),he(c,"keydown",i[35]),he(v,"click",at(i[24])),he(v,"keydown",i[37]),he(e,"contextmenu",qt(i[45])),he(e,"keydown",i[29])],P=!0)},p(F,O){var Q;F[10].features.copyVideoLink&&((Q=F[9].callbacks)!=null&&Q.onCopyVideoLink)&&M.p(F,O),F[19]&&q.p(F,O),F[12]&&F[6]!==$c.CONNECTED&&!F[17]?te?te.p(F,O):(te=id(F),te.c(),te.m(e,o)):te&&(te.d(1),te=null),Z!==(Z=pe(F,O))&&(x.d(1),x=Z(F),x&&(x.c(),x.m(r,null))),F[10].features.videoRotate&&!F[17]&&oe.p(F,O),F[10].showSupport&&!F[7]?H?H.p(F,O):(H=nd(F),H.c(),H.m(e,u)):H&&(H.d(1),H=null),F[10].features.saveTraceInfoToFile&&j.p(F,O),O[0]&256&&g!==(g=F[8]?U("aria_label_menu_debug_overlay_disable"):U("aria_label_menu_debug_overlay_enable"))&&f(v,"aria-label",g),O[0]&8&&ki(e,"top",F[3]+"px"),O[0]&4&&ki(e,"left",F[2]+"px")},d(F){F&&k(e),M&&M.d(),q&&q.d(),te&&te.d(),x.d(),oe&&oe.d(),H&&H.d(),j&&j.d(),i[48](null),P=!1,lt(B)}}}function Kh(i){let e,t,n,o,r,l,a=!i[5]&&!i[17]&&td(i);return{c(){e=T("li"),e.textContent=`${U("menu_copy_video_link")}`,n=R(),a&&a.c(),o=dt(),f(e,"tabindex","0"),f(e,"role","menuitem"),f(e,"aria-label",t=U("menu_copy_video_link")),f(e,"class","svelte-1vzqlps")},m(s,u){S(s,e,u),S(s,n,u),a&&a.m(s,u),S(s,o,u),r||(l=[he(e,"click",at(i[46])),he(e,"keydown",i[30])],r=!0)},p(s,u){!s[5]&&!s[17]?a?a.p(s,u):(a=td(s),a.c(),a.m(o.parentNode,o)):a&&(a.d(1),a=null)},d(s){s&&(k(e),k(n),k(o)),a&&a.d(s),r=!1,lt(l)}}}function td(i){let e,t,n,o;return{c(){e=T("li"),e.textContent=`${U("menu_copy_video_link_with_timestamp")}`,f(e,"tabindex","0"),f(e,"role","menuitem"),f(e,"aria-label",t=U("menu_copy_video_link_with_timestamp")),f(e,"class","svelte-1vzqlps")},m(r,l){S(r,e,l),n||(o=[he(e,"click",at(i[47])),he(e,"keydown",i[31])],n=!0)},p:Se,d(r){r&&k(e),n=!1,lt(o)}}}function jh(i){let e,t,n,o;return{c(){e=T("li"),e.textContent=`${U("menu_copy_embed_code")}`,f(e,"tabindex","0"),f(e,"role","menuitem"),f(e,"aria-label",t=U("menu_copy_embed_code")),f(e,"class","svelte-1vzqlps")},m(r,l){S(r,e,l),n||(o=[he(e,"click",at(i[27])),he(e,"keydown",i[38])],n=!0)},p:Se,d(r){r&&k(e),n=!1,lt(o)}}}function id(i){let e,t,n,o;return{c(){e=T("li"),e.textContent=`${U("menu_pip")}`,f(e,"tabindex","0"),f(e,"role","menuitem"),f(e,"aria-label",t=U("menu_pip")),f(e,"class","svelte-1vzqlps")},m(r,l){S(r,e,l),n||(o=[he(e,"click",at(i[25])),he(e,"keydown",i[32])],n=!0)},p:Se,d(r){r&&k(e),n=!1,lt(o)}}}function Wh(i){let e=U("menu_video_loop_on")+"",t;return{c(){t=qe(e)},m(n,o){S(n,t,o)},d(n){n&&k(t)}}}function Gh(i){let e=U("menu_video_loop_off")+"",t;return{c(){t=qe(e)},m(n,o){S(n,t,o)},d(n){n&&k(t)}}}function Qh(i){let e,t,n,o;return{c(){e=T("li"),e.textContent=`${U("menu_video_rotate")}`,f(e,"tabindex","0"),f(e,"role","menuitem"),f(e,"aria-label",t=U("aria_label_menu_rotate")),f(e,"class","svelte-1vzqlps")},m(r,l){S(r,e,l),n||(o=[he(e,"click",at(i[20])),he(e,"keydown",i[33])],n=!0)},p:Se,d(r){r&&k(e),n=!1,lt(o)}}}function nd(i){let e,t,n,o;return{c(){e=T("li"),e.textContent=`${U("menu_report")}`,f(e,"tabindex","0"),f(e,"role","menuitem"),f(e,"aria-label",t=`${U("menu_report")}. ${U("aria_label_new_tab_alert")}`),f(e,"class","svelte-1vzqlps")},m(r,l){S(r,e,l),n||(o=[he(e,"click",at(i[21])),he(e,"keydown",i[34])],n=!0)},p:Se,d(r){r&&k(e),n=!1,lt(o)}}}function Yh(i){let e,t,n,o;return{c(){e=T("li"),e.textContent=`${U("menu_save_debug")}`,f(e,"tabindex","0"),f(e,"role","menuitem"),f(e,"aria-label",t=U("menu_save_debug")),f(e,"class","svelte-1vzqlps")},m(r,l){S(r,e,l),n||(o=[he(e,"click",at(i[23])),he(e,"keydown",i[36])],n=!0)},p:Se,d(r){r&&k(e),n=!1,lt(o)}}}function Zh(i){let e,t=i[1]&&ed(i);return{c(){t&&t.c(),e=dt()},m(n,o){t&&t.m(n,o),S(n,e,o)},p(n,o){n[1]?t?t.p(n,o):(t=ed(n),t.c(),t.m(e.parentNode,e)):t&&(t.d(1),t=null)},i:Se,o:Se,d(n){n&&k(e),t&&t.d(n)}}}function Xh(i,e,t){var Te,pt;let n,o,r,l,a,s,{visible:u=!1}=e,{supportLink:c}=e,{position:m={top:0,left:0}}=e,{playerContainerRef:h=void 0}=e,{controlsContainerRef:w=void 0}=e,{menuElementRef:b=void 0}=e,{returnFocus:C}=e,v=0,I=0,y=st(),g=Gt(),P=y.ui.contextMenu.visible$,B=y.ui.debugPanelVisible;z(i,B,Ae=>t(8,s=Ae));let M=y.webApi.pictureInPictureApi,q=(Te=y.webApi.pictureInPictureApi)==null?void 0:Te.info.isActive$;z(i,q,Ae=>t(7,a=Ae));let te=y.actions.internal.togglePictureInPicture,pe=y.state.chromecastState$;z(i,pe,Ae=>t(6,l=Ae));let Z=y.state.isLive$;z(i,Z,Ae=>t(5,r=Ae));let x=y.state.positionExact$;z(i,x,Ae=>t(49,n=Ae));let oe=y.state.isInteractive,H=y.state.looped$;z(i,H,Ae=>t(4,o=Ae));let j=!!((pt=y.callbacks)!=null&&pt.onCopyEmbedCodeClicked),J=()=>{P.set(!1)},F=(Ae,mt)=>{if(!b||!h||!w)return;let me=b.getBoundingClientRect(),it=h.getBoundingClientRect();t(2,v=Ae-it.left),t(3,I=mt-it.top),v+me.width>it.width&&t(2,v=it.width-me.width),I+me.height>it.height&&t(3,I=it.height-me.height),t(2,v=Math.max(v,0)),t(3,I=Math.max(I,0))},O=()=>{J(),y.actions.internal.videoRotate()},Q=()=>{window.open(c,"_blank"),J(),y.actions.internal.pause()},X=()=>{let Ae=y.actions.internal.getDebugTextData();if(g.features.saveDebugInfoToFile){let mt=new Blob([...Ae],{type:"plain/text"}),me=window.URL.createObjectURL(mt);Ll(me,"vk_player_debug_info","txt")}else al(y.actions.internal.getDebugTextData());J(),C==null||C()},le=()=>{let Ae=y.actions.internal.getTraceTextData(),mt=new Blob([...Ae],{type:"application/json"}),me=window.URL.createObjectURL(mt);Ll(me,"vk_player_trace_info","json"),J(),C==null||C()},De=()=>{B.set(!0),J(),C==null||C()},$e=()=>ct(this,null,function*(){try{te()}finally{J(),C==null||C()}}),Ee=()=>{y.actions.internal.setLooped(!o),J()},Be=()=>{var Ae,mt;if(j){let me=(mt=(Ae=y.callbacks)==null?void 0:Ae.onCopyEmbedCodeClicked)==null?void 0:mt.call(Ae);me&&al(me)}J()},Ne=(Ae=!1)=>{var mt,me;if((mt=y.callbacks)!=null&&mt.onCopyVideoLink){let it=(me=y.callbacks)==null?void 0:me.onCopyVideoLink(Ae,n);it&&al(it)}J()},Je=Ae=>{gr(Ae,J)},se=Ae=>{ci(Ae,()=>Ne())},_e=Ae=>{ci(Ae,()=>Ne(!0))},ut=Ae=>{ci(Ae,()=>$e())},Ce=Ae=>{ci(Ae,()=>O())},Ke=Ae=>{ci(Ae,()=>Q())},ht=Ae=>{ci(Ae,()=>X())},Ze=Ae=>{ci(Ae,()=>le())},Ge=Ae=>{ci(Ae,()=>De())},xe=Ae=>{ci(Ae,()=>Be())},tt=Ae=>{ci(Ae,()=>Ee())};function fe(Ae){Vn.call(this,i,Ae)}let Pe=()=>Ne(),je=()=>Ne(!0);function ae(Ae){ge[Ae?"unshift":"push"](()=>{b=Ae,t(0,b)})}return i.$$set=Ae=>{"visible"in Ae&&t(1,u=Ae.visible),"supportLink"in Ae&&t(40,c=Ae.supportLink),"position"in Ae&&t(41,m=Ae.position),"playerContainerRef"in Ae&&t(42,h=Ae.playerContainerRef),"controlsContainerRef"in Ae&&t(43,w=Ae.controlsContainerRef),"menuElementRef"in Ae&&t(0,b=Ae.menuElementRef),"returnFocus"in Ae&&t(44,C=Ae.returnFocus)},i.$$.update=()=>{if(i.$$.dirty[0]&1|i.$$.dirty[1]&7168&&b&&h&&w){let{top:Ae,left:mt,bottom:me,right:it}=m,kt=mt!=null?mt:0,vt=Ae!=null?Ae:0,Ue=b.getBoundingClientRect();br(mt)&&!br(it)&&(kt=it-Ue.width),br(Ae)&&!br(me)&&(vt=me-Ue.height),kt=Math.max(kt,0),vt=Math.max(vt,0),F(kt,vt)}},[b,u,v,I,o,r,l,a,s,y,g,B,M,q,pe,Z,x,oe,H,j,O,Q,X,le,De,$e,Ee,Be,Ne,Je,se,_e,ut,Ce,Ke,ht,Ze,Ge,xe,tt,c,m,h,w,C,fe,Pe,je,ae]}var Ws=class extends W{constructor(e){super(),G(this,e,Xh,Zh,K,{visible:1,supportLink:40,position:41,playerContainerRef:42,controlsContainerRef:43,menuElementRef:0,returnFocus:44},Uh,[-1,-1])}},od=Ws;var vr=class{constructor(e){this.value=e,this.next=null}};var _l=class{constructor(e){this.top=null,this.bottom=null,this.size=0,this.maxSize=e}push(e){let t=new vr(e);this.top?(this.top.next=t,this.top=t):(this.top=t,this.bottom=t),this.size++,this.size>this.maxSize&&this.bottom&&(this.bottom=this.bottom.next)}getValuesFromBottom(){let e=[],t=this.bottom;for(;t;)e.push(t.value),t=t.next;return e}};function Jh(i){Ie(i,"svelte-1ssl9eb",".container.svelte-1ssl9eb{display:inline-block;width:120px;height:16px}canvas.svelte-1ssl9eb{transform:scale(1, -1);margin-top:2px}")}function xh(i){let e,t;return{c(){e=T("div"),t=T("canvas"),f(t,"class","svelte-1ssl9eb"),f(e,"class","container svelte-1ssl9eb")},m(n,o){S(n,e,o),p(e,t),i[3](t)},p:Se,i:Se,o:Se,d(n){n&&k(e),i[3](null)}}}var Gs=16,Qs=120,ld=60;function $h(i,e,t,n,o){o===0&&(o=1),i.fillStyle="#fff",i.fillRect(e,t,n,o)}function e2(i,e,t){let{values:n=[]}=e,o,r,l=Qs/ld;Ot(()=>{t(0,o.width=Qs,o),t(0,o.height=Gs,o),t(2,r=o.getContext("2d"))});function a(s){ge[s?"unshift":"push"](()=>{o=s,t(0,o)})}return i.$$set=s=>{"values"in s&&t(1,n=s.values)},i.$$.update=()=>{if(i.$$.dirty&6){let s="";if(r){let u=n[0];for(let m=1;m<n.length;m++)n[m]>u&&(u=n[m]);r.clearRect(0,0,Qs,Gs);let c=ld-1;for(let m=n.length-1;m>=0;m--){let h=c*l,w=u>0?Gs*(n[m]/u):0;$h(r,h,0,l,w),s=w+" "+s,c--}}}},[o,n,r,a]}var Ys=class extends W{constructor(e){super(),G(this,e,e2,xh,K,{values:1},Jh)}},yr=Ys;import{safeStorage as rd}from"@vkontakte/videoplayer-shared";function t2(i){Ie(i,"svelte-1fypj5i",".container.svelte-1fypj5i.svelte-1fypj5i.svelte-1fypj5i{background:rgba(28, 28, 28, 0.8);border-radius:4px;color:#fff;left:20px;position:absolute;top:45px;min-width:160px;font-size:10px;text-align:left}.container-mobile.svelte-1fypj5i.svelte-1fypj5i.svelte-1fypj5i{top:16px;left:16px}button.svelte-1fypj5i.svelte-1fypj5i.svelte-1fypj5i{position:absolute;right:5px;top:3px;cursor:pointer;outline:0;border:none;background-color:transparent;padding:0;color:#fff}.content.svelte-1fypj5i.svelte-1fypj5i.svelte-1fypj5i{padding:5px}.content.svelte-1fypj5i>div.svelte-1fypj5i>div.svelte-1fypj5i{display:inline-block;text-align:right;width:50px;padding:0 5px}")}function sd(i){let e,t,n,o,r=i[0].id+"",l;return{c(){e=T("div"),t=T("div"),t.textContent="Video id",n=R(),o=T("span"),l=qe(r),f(t,"class","svelte-1fypj5i"),f(e,"class","svelte-1fypj5i")},m(a,s){S(a,e,s),p(e,t),p(e,n),p(e,o),p(o,l)},p(a,s){s&1&&r!==(r=a[0].id+"")&&Ye(l,r)},d(a){a&&k(e)}}}function ad(i){let e,t,n,o,r=i[0].vsid+"",l;return{c(){e=T("div"),t=T("div"),t.textContent="VSID",n=R(),o=T("span"),l=qe(r),f(t,"class","svelte-1fypj5i"),f(e,"class","svelte-1fypj5i")},m(a,s){S(a,e,s),p(e,t),p(e,n),p(e,o),p(o,l)},p(a,s){s&1&&r!==(r=a[0].vsid+"")&&Ye(l,r)},d(a){a&&k(e)}}}function ud(i){let e,t,n,o,r=i[0].provider+"",l;return{c(){e=T("div"),t=T("div"),t.textContent="Provider",n=R(),o=T("span"),l=qe(r),f(t,"class","svelte-1fypj5i"),f(e,"class","svelte-1fypj5i")},m(a,s){S(a,e,s),p(e,t),p(e,n),p(e,o),p(o,l)},p(a,s){s&1&&r!==(r=a[0].provider+"")&&Ye(l,r)},d(a){a&&k(e)}}}function fd(i){let e,t,n,o,r,l=(i[0].videoCodec||"")+"",a,s,u=i[0].hdr?"(HDR)":"",c,m,h=(i[0].audioCodec||"")+"",w,b,C=i[0].audioLanguage?`(${i[0].audioLanguage})`:"",v;return{c(){e=T("div"),t=T("div"),t.textContent="Streams",n=R(),o=T("span"),r=qe("Video: "),a=qe(l),s=R(),c=qe(u),m=qe(`
|
|
24
|
+
)}`)}function Gc(i){let e;return{c(){e=T("div"),f(e,"class","top-gradient-mobile svelte-354ajf")},m(t,n){S(t,e,n)},d(t){t&&k(e)}}}function Qc(i){let e,t;return e=new Wc({props:{position:i[5],secondsToWatchBeforeSkip:i[6],skipAd:i[8].actions.internal.skipAd}}),{c(){q(e.$$.fragment)},m(n,o){V(e,n,o),t=!0},p(n,o){let r={};o&32&&(r.position=n[5]),o&64&&(r.secondsToWatchBeforeSkip=n[6]),e.$set(r)},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){_(e.$$.fragment,n),t=!1},d(n){R(e,n)}}}function Yc(i){let e,t;return e=new Kc({}),{c(){q(e.$$.fragment)},m(n,o){V(e,n,o),t=!0},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){_(e.$$.fragment,n),t=!1},d(n){R(e,n)}}}function Zc(i){let e,t;return e=new jc({}),{c(){q(e.$$.fragment)},m(n,o){V(e,n,o),t=!0},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){_(e.$$.fragment,n),t=!1},d(n){R(e,n)}}}function kh(i){let e,t,n,o,r,l,a,s=i[0]&&Gc(i),u=i[3]&&Qc(i),c=i[7]&&Yc(i),m=i[4]&&Zc(i);return{c(){e=T("div"),s&&s.c(),t=B(),n=T("video"),o=B(),u&&u.c(),r=B(),c&&c.c(),l=B(),m&&m.c(),Ci(n,"width","100%"),Ci(n,"height","100%"),n.playsInline=!0,f(e,"class","container svelte-354ajf")},m(h,w){S(h,e,w),s&&s.m(e,null),p(e,t),p(e,n),i[19](n),p(e,o),u&&u.m(e,null),p(e,r),c&&c.m(e,null),p(e,l),m&&m.m(e,null),i[20](e),a=!0},p(h,[w]){h[0]?s||(s=Gc(h),s.c(),s.m(e,t)):s&&(s.d(1),s=null),h[3]?u?(u.p(h,w),w&8&&d(u,1)):(u=Qc(h),u.c(),d(u,1),u.m(e,r)):u&&(ce(),_(u,1,1,()=>{u=null}),de()),h[7]?c?w&128&&d(c,1):(c=Yc(h),c.c(),d(c,1),c.m(e,l)):c&&(ce(),_(c,1,1,()=>{c=null}),de()),h[4]?m?w&16&&d(m,1):(m=Zc(h),m.c(),d(m,1),m.m(e,null)):m&&(ce(),_(m,1,1,()=>{m=null}),de())},i(h){a||(d(u),d(c),d(m),a=!0)},o(h){_(u),_(c),_(m),a=!1},d(h){h&&k(e),s&&s.d(),i[19](null),u&&u.d(),c&&c.d(),m&&m.d(),i[20](null)}}}function Ch(i,e,t){let n,o,r,l,a,{adsSlotId:s=void 0}=e,{adsParams:u=void 0}=e,{adsPreviewParam:c=void 0}=e,{duration:m=0}=e,h=rt(),w=h.state.isEnded$;H(i,w,X=>t(7,a=X));let g=h.ui.isMobile;H(i,g,X=>t(0,o=X));let C,v,E=!1,y=h.ads.playbackState;H(i,y,X=>t(18,n=X));let b=h.ads.canSkip,P=h.ads.position;H(i,P,X=>t(5,r=X));let A=h.ads.secondsToWatchBeforeSkip;H(i,A,X=>t(6,l=X));let M,N;Nt(()=>{let X=h.getAdmanWrapper();if(!s){X.onAdmanLoadingError();return}let $=new AbortController,se=()=>{$.abort()},{width:L,height:K}=$e(h.ui.playerSize),x=$e(h.ui.isFullscreen),Z=$e(h.ui.isAutoplay),F={width:L,height:K,isFullscreen:x,isAutoplay:Z,adsContainer:C,adsVideoElement:v,slotId:s,params:u,previewParam:c,duration:m};return window.AdmanHTML?(X.initAdman(F),E=!0):X.loadAdman($.signal).then(()=>{X.initAdman(F),E=!0}).catch(()=>{X.onAdmanLoadingError()}),()=>{!E&&se()}});function te(X){ge[X?"unshift":"push"](()=>{v=X,t(2,v)})}function _e(X){ge[X?"unshift":"push"](()=>{C=X,t(1,C)})}return i.$$set=X=>{"adsSlotId"in X&&t(14,s=X.adsSlotId),"adsParams"in X&&t(15,u=X.adsParams),"adsPreviewParam"in X&&t(16,c=X.adsPreviewParam),"duration"in X&&t(17,m=X.duration)},i.$$.update=()=>{i.$$.dirty&262144&&t(3,M=b&&n!=="inactive"),i.$$.dirty&262145&&t(4,N=o&&n!=="inactive")},[o,C,v,M,N,r,l,a,h,w,g,y,P,A,s,u,c,m,n,te,_e]}var Gs=class extends j{constructor(e){super(),G(this,e,Ch,kh,W,{adsSlotId:14,adsParams:15,adsPreviewParam:16,duration:17},wh)}},gr=Gs;var Bn=i=>{if(!isFinite(i))return"00:00";let e=Math.round(i),t=Math.floor(e/(60*60));e-=t*3600;let n=Math.floor(e/60);return e-=n*60,(t>0?[t,n,e]:[n,e]).map(r=>r>9?String(r):`0${r}`).join(":")};function Sh(i){let e,t,n,o,r=i[2].default,l=Le(r,i,i[1],null),a=[{xmlns:"http://www.w3.org/2000/svg"},{width:"42"},{height:"20"},{"aria-hidden":"true"},{"data-testid":"live-icon"},{role:"img"},i[0]],s={};for(let u=0;u<a.length;u+=1)s=ue(s,a[u]);return{c(){e=D("svg"),l&&l.c(),t=D("path"),n=D("path"),f(t,"fill","none"),f(t,"stroke","#fff"),f(t,"stroke-width","2"),f(t,"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"),f(n,"fill","#f0f2f5"),f(n,"fill-rule","evenodd"),f(n,"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"),we(e,s)},m(u,c){S(u,e,c),l&&l.m(e,null),p(e,t),p(e,n),o=!0},p(u,[c]){l&&l.p&&(!o||c&2)&&Me(l,r,u,u[1],o?Ae(r,u[1],c,null):Ve(u[1]),null),we(e,s=Ne(a,[{xmlns:"http://www.w3.org/2000/svg"},{width:"42"},{height:"20"},{"aria-hidden":"true"},{"data-testid":"live-icon"},{role:"img"},c&1&&u[0]]))},i(u){o||(d(l,u),o=!0)},o(u){_(l,u),o=!1},d(u){u&&k(e),l&&l.d(u)}}}function Th(i,e,t){let{$$slots:n={},$$scope:o}=e;return i.$$set=r=>{t(0,e=ue(ue({},e),ye(r))),"$$scope"in r&&t(1,o=r.$$scope)},e=ye(e),[e,o,n]}var Qs=class extends j{constructor(e){super(),G(this,e,Th,Sh,W,{})}},Xc=Qs;function Ph(i){let e,t,n,o,r=i[2].default,l=Le(r,i,i[1],null),a=[{xmlns:"http://www.w3.org/2000/svg"},{width:"42"},{height:"20"},{fill:"none"},{"aria-hidden":"true"},{"data-testid":"live-active-icon"},{role:"img"},i[0]],s={};for(let u=0;u<a.length;u+=1)s=ue(s,a[u]);return{c(){e=D("svg"),l&&l.c(),t=D("rect"),n=D("path"),f(t,"width","42"),f(t,"height","20"),f(t,"fill","#FF3347"),f(t,"rx","5"),f(n,"fill","#F2F3F5"),f(n,"fill-rule","evenodd"),f(n,"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"),f(n,"clip-rule","evenodd"),we(e,s)},m(u,c){S(u,e,c),l&&l.m(e,null),p(e,t),p(e,n),o=!0},p(u,[c]){l&&l.p&&(!o||c&2)&&Me(l,r,u,u[1],o?Ae(r,u[1],c,null):Ve(u[1]),null),we(e,s=Ne(a,[{xmlns:"http://www.w3.org/2000/svg"},{width:"42"},{height:"20"},{fill:"none"},{"aria-hidden":"true"},{"data-testid":"live-active-icon"},{role:"img"},c&1&&u[0]]))},i(u){o||(d(l,u),o=!0)},o(u){_(l,u),o=!1},d(u){u&&k(e),l&&l.d(u)}}}function Ih(i,e,t){let{$$slots:n={},$$scope:o}=e;return i.$$set=r=>{t(0,e=ue(ue({},e),ye(r))),"$$scope"in r&&t(1,o=r.$$scope)},e=ye(e),[e,o,n]}var Ys=class extends j{constructor(e){super(),G(this,e,Ih,Ph,W,{})}},Jc=Ys;function Eh(i){let e,t;return e=new Xc({}),{c(){q(e.$$.fragment)},m(n,o){V(e,n,o),t=!0},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){_(e.$$.fragment,n),t=!1},d(n){R(e,n)}}}function Lh(i){let e,t;return e=new Jc({}),{c(){q(e.$$.fragment)},m(n,o){V(e,n,o),t=!0},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){_(e.$$.fragment,n),t=!1},d(n){R(e,n)}}}function Ah(i){let e,t,n,o,r=[Lh,Eh],l=[];function a(s,u){return s[0]?0:1}return e=a(i,-1),t=l[e]=r[e](i),{c(){t.c(),n=mt()},m(s,u){l[e].m(s,u),S(s,n,u),o=!0},p(s,[u]){let c=e;e=a(s,u),e!==c&&(ce(),_(l[c],1,1,()=>{l[c]=null}),de(),t=l[e],t||(t=l[e]=r[e](s),t.c()),d(t,1),t.m(n.parentNode,n))},i(s){o||(d(t),o=!0)},o(s){_(t),o=!1},d(s){s&&k(n),l[e].d(s)}}}function Mh(i,e,t){let{isActive:n=!1}=e;return i.$$set=o=>{"isActive"in o&&t(0,n=o.isActive)},[n]}var Zs=class extends j{constructor(e){super(),G(this,e,Mh,Ah,W,{isActive:0})}},br=Zs;function Vh(i){Pe(i,"svelte-i7xnqb",".thumb-timer.svelte-i7xnqb.svelte-i7xnqb{position:absolute;z-index:var(--thumb-timer-z-index);bottom:0;right:0;margin:8px;padding:0 7px;border-radius:3px;background:var(--black-alpha-40);color:var(--white);font-size:12.5px;line-height:23px;height:23px;white-space:nowrap;transition:visibility var(--controls-transition-duration), opacity var(--controls-transition-duration)}.thumb-timer.live.svelte-i7xnqb.svelte-i7xnqb{font-size:0;line-height:20px;height:20px;border-radius:2px;background:var(--red)}.thumb-timer.hidden.svelte-i7xnqb.svelte-i7xnqb{visibility:hidden;opacity:0}.thumb-timer.svelte-i7xnqb.svelte-i7xnqb:after{content:'';display:inline-block;vertical-align:middle;height:100%}.thumb-timer-live-icon.svelte-i7xnqb.svelte-i7xnqb{display:inline-block;vertical-align:middle;width:42px;height:20px;margin:0 -7px}.thumb-timer-equalizer.svelte-i7xnqb.svelte-i7xnqb{display:inline-block;vertical-align:middle;position:relative;width:10px;height:10px;margin-top:-4px;margin-right:4px}.live.svelte-i7xnqb .thumb-timer-equalizer.svelte-i7xnqb{margin-top:-2px}.thumb-timer-equalizer.svelte-i7xnqb .col.svelte-i7xnqb{width:2px;height:10px;margin-right:2px;background:var(--white);position:absolute;bottom:0;transform-origin:50% 100%;animation:1.5s infinite linear alternate;animation-play-state:paused}.thumb-timer.playing.svelte-i7xnqb .thumb-timer-equalizer .col.svelte-i7xnqb{animation-play-state:running}.thumb-timer-equalizer.svelte-i7xnqb .col.svelte-i7xnqb:nth-child(1){left:0;animation-name:svelte-i7xnqb-thumb-timer-equalizer-col1}.thumb-timer-equalizer.svelte-i7xnqb .col.svelte-i7xnqb:nth-child(2){left:3px;animation-name:svelte-i7xnqb-thumb-timer-equalizer-col2}.thumb-timer-equalizer.svelte-i7xnqb .col.svelte-i7xnqb:nth-child(3){left:6px;animation-name:svelte-i7xnqb-thumb-timer-equalizer-col3}@keyframes svelte-i7xnqb-thumb-timer-equalizer-col1{0%{transform:scaleY(0.1)}25%{transform:scaleY(0.8)}50%{transform:scaleY(0.4)}75%{transform:scaleY(0.6)}100%{transform:scaleY(0.1)}}@keyframes svelte-i7xnqb-thumb-timer-equalizer-col2{0%{transform:scaleY(1)}25%{transform:scaleY(0.3)}50%{transform:scaleY(0.9)}75%{transform:scaleY(0.6)}100%{transform:scaleY(1)}}@keyframes svelte-i7xnqb-thumb-timer-equalizer-col3{0%{transform:scaleY(0.6)}25%{transform:scaleY(0.9)}50%{transform:scaleY(0.1)}75%{transform:scaleY(0.9)}100%{transform:scaleY(0.6)}}.thumb-timer-text.svelte-i7xnqb.svelte-i7xnqb{display:inline-block;text-align:right}")}function Rh(i){let e=Bn(i[4]-i[3])+"",t;return{c(){t=De(e)},m(n,o){S(n,t,o)},p(n,o){o&24&&e!==(e=Bn(n[4]-n[3])+"")&&Qe(t,e)},i:Ce,o:Ce,d(n){n&&k(t)}}}function Bh(i){let e,t,n;return t=new br({props:{isActive:!0}}),{c(){e=T("div"),q(t.$$.fragment),f(e,"class","thumb-timer-live-icon svelte-i7xnqb")},m(o,r){S(o,e,r),V(t,e,null),n=!0},p:Ce,i(o){n||(d(t.$$.fragment,o),n=!0)},o(o){_(t.$$.fragment,o),n=!1},d(o){o&&k(e),R(t)}}}function qh(i){let e,t,n,o,r,l,a,s=[Bh,Rh],u=[];function c(m,h){return m[1]?0:1}return r=c(i,-1),l=u[r]=s[r](i),{c(){e=T("div"),t=T("div"),t.innerHTML='<div class="col svelte-i7xnqb"></div> <div class="col svelte-i7xnqb"></div> <div class="col svelte-i7xnqb"></div>',n=B(),o=T("span"),l.c(),f(t,"class","thumb-timer-equalizer svelte-i7xnqb"),f(o,"class","thumb-timer-text svelte-i7xnqb"),f(e,"role","timer"),f(e,"class","thumb-timer svelte-i7xnqb"),f(e,"data-testid","thumb-timer"),O(e,"live",i[1]),O(e,"hidden",i[0]),O(e,"playing",i[2])},m(m,h){S(m,e,h),p(e,t),p(e,n),p(e,o),u[r].m(o,null),a=!0},p(m,[h]){let w=r;r=c(m,h),r===w?u[r].p(m,h):(ce(),_(u[w],1,1,()=>{u[w]=null}),de(),l=u[r],l?l.p(m,h):(l=u[r]=s[r](m),l.c()),d(l,1),l.m(o,null)),(!a||h&2)&&O(e,"live",m[1]),(!a||h&1)&&O(e,"hidden",m[0]),(!a||h&4)&&O(e,"playing",m[2])},i(m){a||(d(l),a=!0)},o(m){_(l),a=!1},d(m){m&&k(e),u[r].d()}}}function Dh(i,e,t){let{isHidden:n=!1}=e,{isLive:o=!1}=e,{isPlaying:r=!1}=e,{position:l}=e,{duration:a}=e;return i.$$set=s=>{"isHidden"in s&&t(0,n=s.isHidden),"isLive"in s&&t(1,o=s.isLive),"isPlaying"in s&&t(2,r=s.isPlaying),"position"in s&&t(3,l=s.position),"duration"in s&&t(4,a=s.duration)},[n,o,r,l,a]}var Xs=class extends j{constructor(e){super(),G(this,e,Dh,qh,W,{isHidden:0,isLive:1,isPlaying:2,position:3,duration:4},Vh)}},vr=Xs;var fl=i=>{if(document.queryCommandSupported&&document.queryCommandSupported("copy")){let e=document.createElement("textarea");e.textContent=i,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 ld}from"@vkontakte/videoplayer-core";import{clientChecker as xc}from"@vkontakte/videoplayer-shared";var Uo=i=>{i.stopPropagation(),i.preventDefault()},Oh=i=>{var t;let e=i.previousElementSibling;e||(e=(t=i.parentNode)==null?void 0:t.lastElementChild),e==null||e.focus()},Fh=i=>{var t;let e=i.nextElementSibling;e||(e=(t=i.parentNode)==null?void 0:t.firstElementChild),e==null||e.focus()},zh=i=>{let e=i.code;return e==="Tab"&&!i.shiftKey||e==="ArrowDown"},Hh=i=>{let e=i.code;return e==="Tab"||e==="ArrowUp"},$c=i=>i.code==="Escape",Uh=i=>i.code==="ArrowLeft",ed=(i,e=!0)=>{let t=i.code;return["Enter","Space"].includes(t)||!e&&t==="ArrowRight"},td=i=>{if(zh(i)){Uo(i),Fh(i.target);return}Hh(i)&&(Uo(i),Oh(i.target))},dl=i=>!xc.isAndroid&&(i==null?void 0:i.detail)===0||xc.isAndroid&&(i==null?void 0:i.pointerType)==="",ml=(i,e,t)=>pt(void 0,null,function*(){yield Xn(),i&&!i.classList.contains("opened")&&!e&&$e(t)&&(yield Xn(),t.set(!1),i.focus())}),id=(i,e,t)=>pt(void 0,null,function*(){yield Xn(),i&&!e&&$e(t)&&(t.set(!1),i.focus())}),Ko=(i,e,t)=>pt(void 0,null,function*(){var o;yield Xn(),!!i&&e&&t&&((o=i.children[0])==null||o.focus())}),pl=(i,e,t)=>pt(void 0,null,function*(){!!i&&t&&(e.set(!1),setTimeout(()=>{i.focus()},100))}),yr=(i,e)=>{td(i),$c(i)&&(Uo(i),e())},_l=(i,e,t)=>pt(void 0,null,function*(){if(ed(i,!1)){Uo(i),e(),yield Xn();let n=t();n==null||n.focus()}}),hl=(i,e,t,n)=>pt(void 0,null,function*(){if(td(i),Uh(i)){Uo(i),e(),t.set(!0);return}$c(i)&&(Uo(i),n())}),di=(i,e)=>{ed(i)&&(Uo(i),e())},nd=i=>{let e=i.getBoundingClientRect(),t=-14,n=e.left+e.width,o=e.top+t;return{right:n,bottom:o}},od=i=>{if(!i)return{top:0,left:0};let e=i.getBoundingClientRect(),t=-58,n=8,o=e.left+n;return{bottom:e.bottom+t,left:o}};import{isNullable as wr}from"@vkontakte/videoplayer-shared";function Kh(i){Pe(i,"svelte-1vzqlps","ul.svelte-1vzqlps{position:absolute;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}li.svelte-1vzqlps{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}li.svelte-1vzqlps:hover{background:rgba(66, 66, 66, .5);color:var(--white)}")}function rd(i){var x;let e,t,n,o,r,l,a,s,u,c,m=(i[10].features.saveDebugInfoToFile?U("menu_save_debug"):U("menu_copy_debug"))+"",h,w,g,C,v,E=U("menu_debug_overlay")+"",y,b,P,A,M=i[10].features.copyVideoLink&&((x=i[9].callbacks)==null?void 0:x.onCopyVideoLink)&&Wh(i),N=i[19]&&jh(i),te=i[12]&&i[6]!==ld.CONNECTED&&!i[17]&&ad(i);function _e(Z,F){return Z[4]?Qh:Gh}let X=_e(i,[-1,-1]),$=X(i),se=i[10].features.videoRotate&&!i[17]&&Yh(i),L=i[10].showSupport&&!i[7]&&ud(i),K=i[10].features.saveTraceInfoToFile&&Zh(i);return{c(){e=T("ul"),M&&M.c(),t=B(),N&&N.c(),n=B(),te&&te.c(),o=B(),r=T("li"),$.c(),a=B(),se&&se.c(),s=B(),L&&L.c(),u=B(),c=T("li"),h=De(m),g=B(),K&&K.c(),C=B(),v=T("li"),y=De(E),f(r,"tabindex","0"),f(r,"role","menuitem"),f(r,"aria-label",l=U("aria_label_menu_loop")),f(r,"class","svelte-1vzqlps"),f(c,"tabindex","0"),f(c,"role","menuitem"),f(c,"aria-label",w=i[10].features.saveDebugInfoToFile?U("menu_save_debug"):U("menu_copy_debug")),f(c,"class","svelte-1vzqlps"),f(v,"tabindex","0"),f(v,"role","menuitem"),f(v,"aria-label",b=i[8]?U("aria_label_menu_debug_overlay_disable"):U("aria_label_menu_debug_overlay_enable")),f(v,"class","svelte-1vzqlps"),f(e,"role","menu"),Ci(e,"top",i[3]+"px"),Ci(e,"left",i[2]+"px"),f(e,"class","svelte-1vzqlps")},m(Z,F){S(Z,e,F),M&&M.m(e,null),p(e,t),N&&N.m(e,null),p(e,n),te&&te.m(e,null),p(e,o),p(e,r),$.m(r,null),p(e,a),se&&se.m(e,null),p(e,s),L&&L.m(e,null),p(e,u),p(e,c),p(c,h),p(e,g),K&&K.m(e,null),p(e,C),p(e,v),p(v,y),i[48](e),P||(A=[pe(r,"click",at(i[26])),pe(r,"keydown",i[39]),pe(c,"click",at(i[22])),pe(c,"keydown",i[35]),pe(v,"click",at(i[24])),pe(v,"keydown",i[37]),pe(e,"contextmenu",Xt(i[45])),pe(e,"keydown",i[29])],P=!0)},p(Z,F){var Q;Z[10].features.copyVideoLink&&((Q=Z[9].callbacks)!=null&&Q.onCopyVideoLink)&&M.p(Z,F),Z[19]&&N.p(Z,F),Z[12]&&Z[6]!==ld.CONNECTED&&!Z[17]?te?te.p(Z,F):(te=ad(Z),te.c(),te.m(e,o)):te&&(te.d(1),te=null),X!==(X=_e(Z,F))&&($.d(1),$=X(Z),$&&($.c(),$.m(r,null))),Z[10].features.videoRotate&&!Z[17]&&se.p(Z,F),Z[10].showSupport&&!Z[7]?L?L.p(Z,F):(L=ud(Z),L.c(),L.m(e,u)):L&&(L.d(1),L=null),Z[10].features.saveTraceInfoToFile&&K.p(Z,F),F[0]&256&&b!==(b=Z[8]?U("aria_label_menu_debug_overlay_disable"):U("aria_label_menu_debug_overlay_enable"))&&f(v,"aria-label",b),F[0]&8&&Ci(e,"top",Z[3]+"px"),F[0]&4&&Ci(e,"left",Z[2]+"px")},d(Z){Z&&k(e),M&&M.d(),N&&N.d(),te&&te.d(),$.d(),se&&se.d(),L&&L.d(),K&&K.d(),i[48](null),P=!1,ot(A)}}}function Wh(i){let e,t,n,o,r,l,a=!i[5]&&!i[17]&&sd(i);return{c(){e=T("li"),e.textContent=`${U("menu_copy_video_link")}`,n=B(),a&&a.c(),o=mt(),f(e,"tabindex","0"),f(e,"role","menuitem"),f(e,"aria-label",t=U("menu_copy_video_link")),f(e,"class","svelte-1vzqlps")},m(s,u){S(s,e,u),S(s,n,u),a&&a.m(s,u),S(s,o,u),r||(l=[pe(e,"click",at(i[46])),pe(e,"keydown",i[30])],r=!0)},p(s,u){!s[5]&&!s[17]?a?a.p(s,u):(a=sd(s),a.c(),a.m(o.parentNode,o)):a&&(a.d(1),a=null)},d(s){s&&(k(e),k(n),k(o)),a&&a.d(s),r=!1,ot(l)}}}function sd(i){let e,t,n,o;return{c(){e=T("li"),e.textContent=`${U("menu_copy_video_link_with_timestamp")}`,f(e,"tabindex","0"),f(e,"role","menuitem"),f(e,"aria-label",t=U("menu_copy_video_link_with_timestamp")),f(e,"class","svelte-1vzqlps")},m(r,l){S(r,e,l),n||(o=[pe(e,"click",at(i[47])),pe(e,"keydown",i[31])],n=!0)},p:Ce,d(r){r&&k(e),n=!1,ot(o)}}}function jh(i){let e,t,n,o;return{c(){e=T("li"),e.textContent=`${U("menu_copy_embed_code")}`,f(e,"tabindex","0"),f(e,"role","menuitem"),f(e,"aria-label",t=U("menu_copy_embed_code")),f(e,"class","svelte-1vzqlps")},m(r,l){S(r,e,l),n||(o=[pe(e,"click",at(i[27])),pe(e,"keydown",i[38])],n=!0)},p:Ce,d(r){r&&k(e),n=!1,ot(o)}}}function ad(i){let e,t,n,o;return{c(){e=T("li"),e.textContent=`${U("menu_pip")}`,f(e,"tabindex","0"),f(e,"role","menuitem"),f(e,"aria-label",t=U("menu_pip")),f(e,"class","svelte-1vzqlps")},m(r,l){S(r,e,l),n||(o=[pe(e,"click",at(i[25])),pe(e,"keydown",i[32])],n=!0)},p:Ce,d(r){r&&k(e),n=!1,ot(o)}}}function Gh(i){let e=U("menu_video_loop_on")+"",t;return{c(){t=De(e)},m(n,o){S(n,t,o)},d(n){n&&k(t)}}}function Qh(i){let e=U("menu_video_loop_off")+"",t;return{c(){t=De(e)},m(n,o){S(n,t,o)},d(n){n&&k(t)}}}function Yh(i){let e,t,n,o;return{c(){e=T("li"),e.textContent=`${U("menu_video_rotate")}`,f(e,"tabindex","0"),f(e,"role","menuitem"),f(e,"aria-label",t=U("aria_label_menu_rotate")),f(e,"class","svelte-1vzqlps")},m(r,l){S(r,e,l),n||(o=[pe(e,"click",at(i[20])),pe(e,"keydown",i[33])],n=!0)},p:Ce,d(r){r&&k(e),n=!1,ot(o)}}}function ud(i){let e,t,n,o;return{c(){e=T("li"),e.textContent=`${U("menu_report")}`,f(e,"tabindex","0"),f(e,"role","menuitem"),f(e,"aria-label",t=`${U("menu_report")}. ${U("aria_label_new_tab_alert")}`),f(e,"class","svelte-1vzqlps")},m(r,l){S(r,e,l),n||(o=[pe(e,"click",at(i[21])),pe(e,"keydown",i[34])],n=!0)},p:Ce,d(r){r&&k(e),n=!1,ot(o)}}}function Zh(i){let e,t,n,o;return{c(){e=T("li"),e.textContent=`${U("menu_save_debug")}`,f(e,"tabindex","0"),f(e,"role","menuitem"),f(e,"aria-label",t=U("menu_save_debug")),f(e,"class","svelte-1vzqlps")},m(r,l){S(r,e,l),n||(o=[pe(e,"click",at(i[23])),pe(e,"keydown",i[36])],n=!0)},p:Ce,d(r){r&&k(e),n=!1,ot(o)}}}function Xh(i){let e,t=i[1]&&rd(i);return{c(){t&&t.c(),e=mt()},m(n,o){t&&t.m(n,o),S(n,e,o)},p(n,o){n[1]?t?t.p(n,o):(t=rd(n),t.c(),t.m(e.parentNode,e)):t&&(t.d(1),t=null)},i:Ce,o:Ce,d(n){n&&k(e),t&&t.d(n)}}}function Jh(i,e,t){var Se,ht;let n,o,r,l,a,s,{visible:u=!1}=e,{supportLink:c}=e,{position:m={top:0,left:0}}=e,{playerContainerRef:h=void 0}=e,{controlsContainerRef:w=void 0}=e,{menuElementRef:g=void 0}=e,{returnFocus:C}=e,v=0,E=0,y=rt(),b=Wt(),P=y.ui.contextMenu.visible$,A=y.ui.debugPanelVisible;H(i,A,Ee=>t(8,s=Ee));let M=y.webApi.pictureInPictureApi,N=(Se=y.webApi.pictureInPictureApi)==null?void 0:Se.info.isActive$;H(i,N,Ee=>t(7,a=Ee));let te=y.actions.internal.togglePictureInPicture,_e=y.state.chromecastState$;H(i,_e,Ee=>t(6,l=Ee));let X=y.state.isLive$;H(i,X,Ee=>t(5,r=Ee));let $=y.state.positionExact$;H(i,$,Ee=>t(49,n=Ee));let se=y.state.isInteractive,L=y.state.looped$;H(i,L,Ee=>t(4,o=Ee));let K=!!((ht=y.callbacks)!=null&&ht.onCopyEmbedCodeClicked),x=()=>{P.set(!1)},Z=(Ee,ct)=>{if(!g||!h||!w)return;let me=g.getBoundingClientRect(),tt=h.getBoundingClientRect();t(2,v=Ee-tt.left),t(3,E=ct-tt.top),v+me.width>tt.width&&t(2,v=tt.width-me.width),E+me.height>tt.height&&t(3,E=tt.height-me.height),t(2,v=Math.max(v,0)),t(3,E=Math.max(E,0))},F=()=>{x(),y.actions.internal.videoRotate()},Q=()=>{window.open(c,"_blank"),x(),y.actions.internal.pause()},J=()=>{let Ee=y.actions.internal.getDebugTextData();if(b.features.saveDebugInfoToFile){let ct=new Blob([...Ee],{type:"plain/text"}),me=window.URL.createObjectURL(ct);No(me,"vk_player_debug_info","txt")}else fl(y.actions.internal.getDebugTextData());x(),C==null||C()},oe=()=>{let Ee=y.actions.internal.getTraceTextData(),ct=new Blob([...Ee],{type:"application/json"}),me=window.URL.createObjectURL(ct);No(me,"vk_player_trace_info","json"),x(),C==null||C()},Be=()=>{A.set(!0),x(),C==null||C()},Ye=()=>pt(this,null,function*(){try{te()}finally{x(),C==null||C()}}),Ie=()=>{y.actions.internal.setLooped(!o),x()},Re=()=>{var Ee,ct;if(K){let me=(ct=(Ee=y.callbacks)==null?void 0:Ee.onCopyEmbedCodeClicked)==null?void 0:ct.call(Ee);me&&fl(me)}x()},qe=(Ee=!1)=>{var ct,me;if((ct=y.callbacks)!=null&&ct.onCopyVideoLink){let tt=(me=y.callbacks)==null?void 0:me.onCopyVideoLink(Ee,n);tt&&fl(tt)}x()},xe=Ee=>{yr(Ee,x)},ae=Ee=>{di(Ee,()=>qe())},he=Ee=>{di(Ee,()=>qe(!0))},ft=Ee=>{di(Ee,()=>Ye())},ke=Ee=>{di(Ee,()=>F())},Ke=Ee=>{di(Ee,()=>Q())},_t=Ee=>{di(Ee,()=>J())},Ze=Ee=>{di(Ee,()=>oe())},Ge=Ee=>{di(Ee,()=>Be())},Xe=Ee=>{di(Ee,()=>Re())},et=Ee=>{di(Ee,()=>Ie())};function fe(Ee){Rn.call(this,i,Ee)}let Te=()=>qe(),We=()=>qe(!0);function le(Ee){ge[Ee?"unshift":"push"](()=>{g=Ee,t(0,g)})}return i.$$set=Ee=>{"visible"in Ee&&t(1,u=Ee.visible),"supportLink"in Ee&&t(40,c=Ee.supportLink),"position"in Ee&&t(41,m=Ee.position),"playerContainerRef"in Ee&&t(42,h=Ee.playerContainerRef),"controlsContainerRef"in Ee&&t(43,w=Ee.controlsContainerRef),"menuElementRef"in Ee&&t(0,g=Ee.menuElementRef),"returnFocus"in Ee&&t(44,C=Ee.returnFocus)},i.$$.update=()=>{if(i.$$.dirty[0]&1|i.$$.dirty[1]&7168&&g&&h&&w){let{top:Ee,left:ct,bottom:me,right:tt}=m,Tt=ct!=null?ct:0,vt=Ee!=null?Ee:0,Ue=g.getBoundingClientRect();wr(ct)&&!wr(tt)&&(Tt=tt-Ue.width),wr(Ee)&&!wr(me)&&(vt=me-Ue.height),Tt=Math.max(Tt,0),vt=Math.max(vt,0),Z(Tt,vt)}},[g,u,v,E,o,r,l,a,s,y,b,A,M,N,_e,X,$,se,L,K,F,Q,J,oe,Be,Ye,Ie,Re,qe,xe,ae,he,ft,ke,Ke,_t,Ze,Ge,Xe,et,c,m,h,w,C,fe,Te,We,le]}var Js=class extends j{constructor(e){super(),G(this,e,Jh,Xh,W,{visible:1,supportLink:40,position:41,playerContainerRef:42,controlsContainerRef:43,menuElementRef:0,returnFocus:44},Kh,[-1,-1])}},fd=Js;var kr=class{constructor(e){this.value=e,this.next=null}};var gl=class{constructor(e){this.top=null,this.bottom=null,this.size=0,this.maxSize=e}push(e){let t=new kr(e);this.top?(this.top.next=t,this.top=t):(this.top=t,this.bottom=t),this.size++,this.size>this.maxSize&&this.bottom&&(this.bottom=this.bottom.next)}getValuesFromBottom(){let e=[],t=this.bottom;for(;t;)e.push(t.value),t=t.next;return e}};function xh(i){Pe(i,"svelte-1ssl9eb",".container.svelte-1ssl9eb{display:inline-block;width:120px;height:16px}canvas.svelte-1ssl9eb{transform:scale(1, -1);margin-top:2px}")}function $h(i){let e,t;return{c(){e=T("div"),t=T("canvas"),f(t,"class","svelte-1ssl9eb"),f(e,"class","container svelte-1ssl9eb")},m(n,o){S(n,e,o),p(e,t),i[3](t)},p:Ce,i:Ce,o:Ce,d(n){n&&k(e),i[3](null)}}}var xs=16,$s=120,cd=60;function e2(i,e,t,n,o){o===0&&(o=1),i.fillStyle="#fff",i.fillRect(e,t,n,o)}function t2(i,e,t){let{values:n=[]}=e,o,r,l=$s/cd;Nt(()=>{t(0,o.width=$s,o),t(0,o.height=xs,o),t(2,r=o.getContext("2d"))});function a(s){ge[s?"unshift":"push"](()=>{o=s,t(0,o)})}return i.$$set=s=>{"values"in s&&t(1,n=s.values)},i.$$.update=()=>{if(i.$$.dirty&6){let s="";if(r){let u=n[0];for(let m=1;m<n.length;m++)n[m]>u&&(u=n[m]);r.clearRect(0,0,$s,xs);let c=cd-1;for(let m=n.length-1;m>=0;m--){let h=c*l,w=u>0?xs*(n[m]/u):0;e2(r,h,0,l,w),s=w+" "+s,c--}}}},[o,n,r,a]}var ea=class extends j{constructor(e){super(),G(this,e,t2,$h,W,{values:1},xh)}},Cr=ea;import{safeStorage as dd}from"@vkontakte/videoplayer-shared";function i2(i){Pe(i,"svelte-1fypj5i",".container.svelte-1fypj5i.svelte-1fypj5i.svelte-1fypj5i{background:rgba(28, 28, 28, 0.8);border-radius:4px;color:#fff;left:20px;position:absolute;top:45px;min-width:160px;font-size:10px;text-align:left}.container-mobile.svelte-1fypj5i.svelte-1fypj5i.svelte-1fypj5i{top:16px;left:16px}button.svelte-1fypj5i.svelte-1fypj5i.svelte-1fypj5i{position:absolute;right:5px;top:3px;cursor:pointer;outline:0;border:none;background-color:transparent;padding:0;color:#fff}.content.svelte-1fypj5i.svelte-1fypj5i.svelte-1fypj5i{padding:5px}.content.svelte-1fypj5i>div.svelte-1fypj5i>div.svelte-1fypj5i{display:inline-block;text-align:right;width:50px;padding:0 5px}")}function md(i){let e,t,n,o,r=i[0].id+"",l;return{c(){e=T("div"),t=T("div"),t.textContent="Video id",n=B(),o=T("span"),l=De(r),f(t,"class","svelte-1fypj5i"),f(e,"class","svelte-1fypj5i")},m(a,s){S(a,e,s),p(e,t),p(e,n),p(e,o),p(o,l)},p(a,s){s&1&&r!==(r=a[0].id+"")&&Qe(l,r)},d(a){a&&k(e)}}}function pd(i){let e,t,n,o,r=i[0].vsid+"",l;return{c(){e=T("div"),t=T("div"),t.textContent="VSID",n=B(),o=T("span"),l=De(r),f(t,"class","svelte-1fypj5i"),f(e,"class","svelte-1fypj5i")},m(a,s){S(a,e,s),p(e,t),p(e,n),p(e,o),p(o,l)},p(a,s){s&1&&r!==(r=a[0].vsid+"")&&Qe(l,r)},d(a){a&&k(e)}}}function _d(i){let e,t,n,o,r=i[0].provider+"",l;return{c(){e=T("div"),t=T("div"),t.textContent="Provider",n=B(),o=T("span"),l=De(r),f(t,"class","svelte-1fypj5i"),f(e,"class","svelte-1fypj5i")},m(a,s){S(a,e,s),p(e,t),p(e,n),p(e,o),p(o,l)},p(a,s){s&1&&r!==(r=a[0].provider+"")&&Qe(l,r)},d(a){a&&k(e)}}}function hd(i){let e,t,n,o,r,l=(i[0].videoCodec||"")+"",a,s,u=i[0].hdr?"(HDR)":"",c,m,h=(i[0].audioCodec||"")+"",w,g,C=i[0].audioLanguage?`(${i[0].audioLanguage})`:"",v;return{c(){e=T("div"),t=T("div"),t.textContent="Streams",n=B(),o=T("span"),r=De("Video: "),a=De(l),s=B(),c=De(u),m=De(`
|
|
25
25
|
&
|
|
26
|
-
Audio: `),w=
|
|
27
|
-
}.timer-canvas.svelte-8jhsry{width:50px;height:50px;position:absolute}.timer-play-icon.svelte-8jhsry{width:22px;height:26px}`)}function u2(i){let e,t,n,o,r,l,a;return{c(){e=T("div"),t=T("canvas"),n=R(),o=D("svg"),r=D("g"),l=D("g"),a=D("path"),f(t,"class","timer-canvas svelte-8jhsry"),f(t,"width","100"),f(t,"height","100"),f(a,"class","_play"),f(a,"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"),f(a,"fill","#fff"),f(l,"fill-rule","nonzero"),f(r,"fill","none"),f(r,"fill-rule","evenodd"),f(o,"class","timer-play-icon svelte-8jhsry"),f(o,"viewBox","0 0 24 24"),f(o,"xmlns","http://www.w3.org/2000/svg"),f(e,"class","timer svelte-8jhsry")},m(s,u){S(s,e,u),p(e,t),i[2](t),p(e,n),p(e,o),p(o,r),p(r,l),p(l,a)},p:Se,i:Se,o:Se,d(s){s&&k(e),i[2](null)}}}var f2=5e3;function c2(i,e,t){let{onTimerEnded:n=s2}=e,o;Ot(()=>{let l,a=o.getContext("2d");if(!a)return;a.lineWidth=6,a.lineCap="round",a.strokeStyle="#fff";let s=Date.now(),u=()=>{let c=(Date.now()-s)/f2;c<1?(a.clearRect(0,0,100,100),a.beginPath(),a.arc(50,50,47,-Math.PI/2,-Math.PI/2+Math.PI*2*c),a.stroke(),l=requestAnimationFrame(u)):n()};return l=requestAnimationFrame(u),()=>{cancelAnimationFrame(l)}});function r(l){ge[l?"unshift":"push"](()=>{o=l,t(0,o)})}return i.$$set=l=>{"onTimerEnded"in l&&t(1,n=l.onTimerEnded)},[o,n,r]}var Js=class extends W{constructor(e){super(),G(this,e,c2,u2,K,{onTimerEnded:1},a2)}},kd=Js;function d2(i){Ie(i,"svelte-kisfwc",".overlay.svelte-kisfwc{width:100%;height:100%;background:rgba(0, 0, 0, 0.72);position:absolute}.next-video.svelte-kisfwc{position:absolute;top:50%;left:50%;transform:translate(-50%, -50%);display:flex;width:362px;flex-direction:column}.top.svelte-kisfwc{display:flex;justify-content:space-between}.caption.svelte-kisfwc{font-size:11px;font-weight:bold;color:var(--white);text-transform:uppercase;opacity:0.8}.row.svelte-kisfwc{height:102px;background:rgba(48, 48, 48, .8);cursor:pointer;margin-top:6px;display:flex;flex-direction:row;flex-wrap:wrap;width:100%}.column.svelte-kisfwc{display:flex;flex-direction:column;flex-basis:50%}.thumb.svelte-kisfwc{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-kisfwc{width:100%;height:100%;background:var(--black);opacity:0.3;position:absolute}.title.svelte-kisfwc{padding:10px 16px;font-size:12px;font-weight:bold;color:var(--white);line-height:1.6;max-height:52px;overflow:hidden}")}function Cd(i){let e,t;return e=new kd({props:{onTimerEnded:i[2]}}),{c(){V(e.$$.fragment)},m(n,o){A(e,n,o),t=!0},p(n,o){let r={};o&4&&(r.onTimerEnded=n[2]),e.$set(r)},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){_(e.$$.fragment,n),t=!1},d(n){L(e,n)}}}function m2(i){let e,t,n,o,r,l,a,s,u,c,m,h,w,b,C,v,I,y,g,P,B;a=new wd({}),a.$on("click",i[4]);let M=i[3]&&Cd(i);return{c(){e=T("div"),t=R(),n=T("div"),o=T("div"),r=T("div"),r.textContent="\u0441\u043B\u0435\u0434\u0443\u044E\u0449\u0435\u0435 \u0432\u0438\u0434\u0435\u043E",l=R(),V(a.$$.fragment),s=R(),u=T("div"),c=T("div"),m=T("div"),h=T("div"),w=R(),M&&M.c(),C=R(),v=T("div"),I=T("div"),y=qe(i[0]),f(e,"class","overlay svelte-kisfwc"),f(r,"class","caption svelte-kisfwc"),f(o,"class","top svelte-kisfwc"),f(h,"class","thumb-overlay svelte-kisfwc"),f(m,"class","thumb svelte-kisfwc"),f(m,"style",b=`background-image: url('${i[1]}')`),f(c,"class","column svelte-kisfwc"),f(I,"class","title svelte-kisfwc"),f(v,"class","column svelte-kisfwc"),f(u,"class","row svelte-kisfwc"),f(n,"class","next-video svelte-kisfwc")},m(q,te){S(q,e,te),S(q,t,te),S(q,n,te),p(n,o),p(o,r),p(o,l),A(a,o,null),p(n,s),p(n,u),p(u,c),p(c,m),p(m,h),p(m,w),M&&M.m(m,null),p(u,C),p(u,v),p(v,I),p(I,y),g=!0,P||(B=he(u,"click",function(){Vi(i[2])&&i[2].apply(this,arguments)}),P=!0)},p(q,[te]){i=q,i[3]?M?(M.p(i,te),te&8&&d(M,1)):(M=Cd(i),M.c(),d(M,1),M.m(m,null)):M&&(ce(),_(M,1,1,()=>{M=null}),de()),(!g||te&2&&b!==(b=`background-image: url('${i[1]}')`))&&f(m,"style",b),(!g||te&1)&&Ye(y,i[0])},i(q){g||(d(a.$$.fragment,q),d(M),g=!0)},o(q){_(a.$$.fragment,q),_(M),g=!1},d(q){q&&(k(e),k(t),k(n)),L(a),M&&M.d(),P=!1,B()}}}function p2(i,e,t){let{title:n}=e,{thumb:o}=e,{playNextVideo:r}=e,l=!0,a=()=>t(3,l=!1);return i.$$set=s=>{"title"in s&&t(0,n=s.title),"thumb"in s&&t(1,o=s.thumb),"playNextVideo"in s&&t(2,r=s.playNextVideo)},[n,o,r,l,a]}var xs=class extends W{constructor(e){super(),G(this,e,p2,m2,K,{title:0,thumb:1,playNextVideo:2},d2)}},Sd=xs;import{PlaybackState as zo}from"@vkontakte/videoplayer-core";import{checkNever as h2}from"@vkontakte/videoplayer-shared";import{SeekAction as En}from"@vkontakte/videoplayer-statistics";var $s=(i,e)=>Math.min(+(i+e).toFixed(2),1),ea=(i,e)=>Math.max(+(i-e).toFixed(2),0),kr=(i,e,t)=>{let n=$s(e,t);e<1&&i.actions.internal.setVolume(n)},Cr=(i,e,t)=>{let n=ea(e,t);e>0&&i.actions.internal.setVolume(n)};var ho=({isAudioDisabled:i,audioDisabledHintCallback:e,isAudioAvailable:t,audioIsNotExistHintCallback:n})=>i?(e==null||e(),!1):t?!0:(n==null||n(),!1);function g2(i){Ie(i,"svelte-10kkmxz",".keyboard-controls.svelte-10kkmxz{position:absolute;left:0;right:0;top:0;bottom:0}")}function b2(i){let e,t,n,o,r,l=i[26].default,a=Le(l,i,i[25],null);return{c(){e=T("div"),a&&a.c(),f(e,"class","keyboard-controls svelte-10kkmxz"),f(e,"tabindex","-1"),f(e,"role","region"),f(e,"aria-label",t=U("aria_label_video_player"))},m(s,u){S(s,e,u),a&&a.m(e,null),i[27](e),n=!0,o||(r=[he(e,"keyup",i[17]),he(e,"keydown",i[16])],o=!0)},p(s,u){a&&a.p&&(!n||u[0]&33554432)&&Ve(a,l,s,s[25],n?Me(l,s[25],u,null):Re(s[25]),null)},i(s){n||(d(a,s),n=!0)},o(s){_(a,s),n=!1},d(s){s&&k(e),a&&a.d(s),i[27](null),o=!1,lt(r)}}}function v2(i,e,t){var Ae,mt;let n,o,r,l,a,s,u,c,m,h,w,b,C,v,I,{$$slots:y={},$$scope:g}=e,{isAds:P}=e,{hideContextMenu:B}=e,{toggleFullscreen:M}=e,{showHotKeyHelpers:q}=e,{showKeyMap:te}=e,{fakePlayButtonHandler:pe}=e,Z=st(),x=Gt(),oe=Z.getLogger().createComponentLog("KeyboardControls component"),H=Z.state.playbackState$;z(i,H,me=>t(31,o=me));let j=Z.ads.playbackState;z(i,j,me=>t(30,n=me));let J=Z.state.positionExact$;z(i,J,me=>t(41,b=me));let F=Z.state.duration$;z(i,F,me=>t(40,w=me));let O=Z.state.volume$;z(i,O,me=>t(44,I=me));let Q=Z.ui.controls.disabledControls$;z(i,Q,me=>t(39,h=me));let X=Z.state.muted$;z(i,X,me=>t(34,a=me));let le=Z.state.currentSubtitle$;z(i,le,me=>t(33,l=me));let De=Z.state.currentPlaybackRate$;z(i,De,me=>t(42,C=me));let $e=Z.state.availablePlaybackRates$;z(i,$e,me=>t(43,v=me));let Ee=Z.ui.contextMenu.openedByHotKey$,Be=Z.ui.contextMenu.lastActiveElem$,Ne=Z.ui.contextMenu.visible$,Je=Z.ui.contextMenu.position$,se=Z.state.isEnded$;z(i,se,me=>t(36,u=me));let _e=Z.ui.overlayContainer$;z(i,_e,me=>t(32,r=me));let ut=(Ae=Z.callbacks)==null?void 0:Ae.onAudioDoesNotExistHint,Ce=(mt=Z.callbacks)==null?void 0:mt.onAudioDisabledHint,Ke=Z.state.isAudioAvailable$;z(i,Ke,me=>t(35,s=me));let ht=Z.state.isAudioDisabled,Ze=Z.state.isInteractiveTime$;z(i,Ze,me=>t(38,m=me));let{showInteractiveTimeIndicatorTooltip$:Ge}=zn();z(i,Ge,me=>t(37,c=me));let xe=0,tt=!0,fe,Pe=()=>fe==null?void 0:fe.focus(),je=me=>(me!==tt&&(tt=me,xe=0),xe+=1,(x.controls.seekStepKeyboard+x.controls.seekStepKeyboard*xe)/1e3),ae=me=>{var ve;let it=me.target,kt=(ve=it==null?void 0:it.getAttribute("role"))==null?void 0:ve.includes("menuitem"),vt=it.classList.contains("btn"),Ue=me.code;if(vt&&Ue==="Space")return;let Ut=ec.has(Ue);if(kt&&Ut)return;let Rt=!$f.has(Ue);if(me.ctrlKey&&Rt||me.altKey&&Rt||me.metaKey)return;let Et=kt&&Ue==="Escape";tc.has(Ue)||Et||B();let ei=o===zo.PLAYING||o===zo.PAUSED,Bt=P&&(n==="paused"||n==="playing"),Kt=!Bt&&!h.has("TIMELINE");if(ei||Bt)switch(oe({message:`key down, code: ${Ue}`}),Ue){case"KeyJ":case"ArrowLeft":{if(!Kt)break;if(me.ctrlKey||me.altKey){let Qe=Z.actions.internal.getPrevEpisode();Z.actions.internal.seekToPrevEpisode(Qe),Qe&&q({type:"EPISODE_PREV",text:Qe.text}),me.preventDefault()}else{let Qe=me.shiftKey?je(!1):x.controls.seekStepKeyboard/1e3,_t=Math.max(b-Qe,0);b>0&&(Z.actions.internal.seekTime(_t,En.DOUBLE_TAP),q({type:"BACKWARD_SEEK",text:Qe.toString()}),me.preventDefault())}break}case"KeyL":case"ArrowRight":{if(!Kt)break;if(me.ctrlKey||me.altKey){let Qe=Z.actions.internal.getNextEpisode();Z.actions.internal.seekToNextEpisode(Qe),Qe&&q({type:"EPISODE_NEXT",text:Qe.text}),me.preventDefault()}else{let Qe=me.shiftKey?je(!0):x.controls.seekStepKeyboard/1e3,_t=Math.min(b+Qe,w);Math.round(b)<Math.round(w)&&(Z.actions.internal.seekTime(_t,En.DOUBLE_TAP),q({type:"FORWARD_SEEK",text:Qe.toString()}),me.preventDefault())}break}case"ArrowUp":{if(ho({isAudioDisabled:ht,audioDisabledHintCallback:Ce,isAudioAvailable:s,audioIsNotExistHintCallback:ut})){let Qe=I,_t=x.controls.volumeStepKeyboard,ft=Qe<=1;if(kr(Z,Qe,_t),ft){let Xe=Math.round($s(Qe,_t)*100).toString();q({type:"VOLUME",t:{key:"hotkey_helper_current_volume",value:Xe}})}}me.preventDefault();break}case"ArrowDown":{if(ho({isAudioDisabled:ht,audioDisabledHintCallback:Ce,isAudioAvailable:s,audioIsNotExistHintCallback:ut})){let Qe=I,_t=x.controls.volumeStepKeyboard,ft=Qe>=0;if(Cr(Z,Qe,_t),ft){let Xe=Math.round(ea(Qe,_t)*100).toString();q({type:"VOLUME",t:{key:"hotkey_helper_current_volume",value:Xe}})}}me.preventDefault();break}case"Comma":{if(me.shiftKey){Z.actions.internal.decrementPlaybackRate();let Qe=v.find(_t=>_t.value===C);q({type:"RATE_DOWN",text:Qe==null?void 0:Qe.displayValue}),me.preventDefault()}else{if(Bt||o!==zo.PAUSED)break;let Qe=Math.max(b-x.controls.seekStepFrame/1e3,0);b>0&&(q({type:"BACKWARD_SEEK"}),Z.actions.internal.clearDelayedBufferingCheckTimeout(),Z.actions.internal.seekTime(Qe,En.DOUBLE_TAP),me.preventDefault())}break}case"Period":{if(me.shiftKey){Z.actions.internal.incrementPlaybackRate();let Qe=v.find(_t=>_t.value===C);q({type:"RATE_UP",text:Qe==null?void 0:Qe.displayValue}),me.preventDefault()}else{if(Bt||o!==zo.PAUSED)break;let Qe=Math.min(b+x.controls.seekStepFrame/1e3,w);b<w&&(q({type:"FORWARD_SEEK"}),Z.actions.internal.clearDelayedBufferingCheckTimeout(),Z.actions.internal.seekTime(Qe,En.DOUBLE_TAP),me.preventDefault())}break}case"KeyK":case"Space":if(!h.has("PLAY_BUTTON"))if(m&&c&&Ge.set(!1),pe)pe();else{Z.actions.internal.togglePlay();let Qe="PLAY";o===zo.PAUSED?Qe="PAUSE":u&&(Qe="REPLAY"),q({type:Qe})}me.preventDefault();break;case"KeyM":{ho({isAudioDisabled:ht,audioDisabledHintCallback:Ce,isAudioAvailable:s,audioIsNotExistHintCallback:ut})&&(q({type:a?"VOLUME":"MUTE"}),Z.actions.internal.toggleMuted()),me.preventDefault();break}case"KeyF":M(),me.preventDefault();break;case"KeyC":Z.actions.internal.toggleSubtitle(),l.value!=="off"?q({type:"SUBTITLES_ON",text:l==null?void 0:l.displayValue}):q({type:"SUBTITLES_OFF"}),me.preventDefault();break;case"KeyI":Z.actions.internal.togglePictureInPicture(),me.preventDefault();break;case"Digit1":case"Numpad1":if(me.shiftKey){let Qe=xc(r);Je.set(Qe),Be.set(it),Ee.set(!0),Ne.set(!0),me.preventDefault();break}q(),Z.actions.internal.seekToPercent(.1,En.DOUBLE_TAP),me.preventDefault();break;case"Digit2":case"Numpad2":q(),Z.actions.internal.seekToPercent(.2,En.DOUBLE_TAP),me.preventDefault();break;case"Digit3":case"Numpad3":q(),Z.actions.internal.seekToPercent(.3,En.DOUBLE_TAP),me.preventDefault();break;case"Digit4":case"Numpad4":q(),Z.actions.internal.seekToPercent(.4,En.DOUBLE_TAP),me.preventDefault();break;case"Digit5":case"Numpad5":q(),Z.actions.internal.seekToPercent(.5,En.DOUBLE_TAP),me.preventDefault();break;case"Digit6":case"Numpad6":q(),Z.actions.internal.seekToPercent(.6,En.DOUBLE_TAP),me.preventDefault();break;case"Digit7":case"Numpad7":q(),Z.actions.internal.seekToPercent(.7,En.DOUBLE_TAP),me.preventDefault();break;case"Digit8":case"Numpad8":q(),Z.actions.internal.seekToPercent(.8,En.DOUBLE_TAP),me.preventDefault();break;case"Digit9":case"Numpad9":q(),Z.actions.internal.seekToPercent(.9,En.DOUBLE_TAP),me.preventDefault();break;case"Digit0":case"Numpad0":q(),Z.actions.internal.seekToPercent(0,En.DOUBLE_TAP),me.preventDefault();break;case"Slash":{me.shiftKey&&x.features.hotKeyMapModal&&(te(),me.preventDefault());break}case"ShiftLeft":case"ShiftRight":me.preventDefault();break;case"Tab":case"Escape":case"Enter":break;default:h2(Ue);break}},Te=me=>{let it=me.code;if(me.ctrlKey||me.altKey||me.metaKey)return;let kt=o===zo.PLAYING||o===zo.PAUSED,vt=P&&(n==="paused"||n==="playing");if(kt||vt)switch(it){case"ShiftLeft":case"ShiftRight":xe=0;break}};function pt(me){ge[me?"unshift":"push"](()=>{fe=me,t(0,fe)})}return i.$$set=me=>{"isAds"in me&&t(18,P=me.isAds),"hideContextMenu"in me&&t(19,B=me.hideContextMenu),"toggleFullscreen"in me&&t(20,M=me.toggleFullscreen),"showHotKeyHelpers"in me&&t(21,q=me.showHotKeyHelpers),"showKeyMap"in me&&t(22,te=me.showKeyMap),"fakePlayButtonHandler"in me&&t(23,pe=me.fakePlayButtonHandler),"$$scope"in me&&t(25,g=me.$$scope)},[fe,H,j,J,F,O,Q,X,le,De,$e,se,_e,Ke,Ze,Ge,ae,Te,P,B,M,q,te,pe,Pe,g,y,pt]}var ta=class extends W{constructor(e){super(),G(this,e,v2,b2,K,{isAds:18,hideContextMenu:19,toggleFullscreen:20,showHotKeyHelpers:21,showKeyMap:22,fakePlayButtonHandler:23,focus:24},g2,[-1,-1])}get focus(){return this.$$.ctx[24]}},Td=ta;function y2(i){Ie(i,"svelte-8nkw5s",".container.svelte-8nkw5s.svelte-8nkw5s{position:absolute;top:50%;left:50%;transform:translate(-50%, -50%);pointer-events:none;display:flex}.dot.svelte-8nkw5s.svelte-8nkw5s:nth-child(1){animation-delay:calc(0 * 180ms)}.dot.svelte-8nkw5s.svelte-8nkw5s:nth-child(2){animation-delay:calc(1 * 180ms)}.dot.svelte-8nkw5s.svelte-8nkw5s:nth-child(3){animation-delay:calc(2 * 180ms)}@keyframes svelte-8nkw5s-dot_animation{0%{opacity:0.2}30%{opacity:1}100%{opacity:0.2}}.dot.svelte-8nkw5s.svelte-8nkw5s{border-radius:4px;width:8px;height:8px;background:var(--white);animation-duration:750ms;animation-name:svelte-8nkw5s-dot_animation;animation-iteration-count:infinite}.dot.svelte-8nkw5s+.dot.svelte-8nkw5s{margin-left:4px}")}function w2(i){let e,t,n,o,r,l;return{c(){e=T("div"),t=T("div"),n=R(),o=T("div"),r=R(),l=T("div"),f(t,"class","dot svelte-8nkw5s"),f(o,"class","dot svelte-8nkw5s"),f(l,"class","dot svelte-8nkw5s"),f(e,"class","container svelte-8nkw5s"),f(e,"style",i[0])},m(a,s){S(a,e,s),p(e,t),p(e,n),p(e,o),p(e,r),p(e,l)},p(a,[s]){s&1&&f(e,"style",a[0])},i:Se,o:Se,d(a){a&&k(e)}}}function k2(i,e,t){let{style:n=""}=e;return i.$$set=o=>{"style"in o&&t(0,n=o.style)},[n]}var ia=class extends W{constructor(e){super(),G(this,e,k2,w2,K,{style:0},y2)}},hl=ia;function C2(i){let e,t,n,o,r,l,a,s,u,c,m,h,w,b,C=i[2].default,v=Le(C,i,i[1],null),I=[{xmlns:"http://www.w3.org/2000/svg"},{width:"24"},{height:"24"},{fill:"none"},{"aria-hidden":"true"},{"data-testid":"cross-icon"},{role:"img"},i[0]],y={};for(let g=0;g<I.length;g+=1)y=ue(y,I[g]);return{c(){e=D("svg"),v&&v.c(),t=D("g"),n=D("path"),o=D("path"),r=D("defs"),l=D("filter"),a=D("feFlood"),s=D("feColorMatrix"),u=D("feOffset"),c=D("feGaussianBlur"),m=D("feColorMatrix"),h=D("feBlend"),w=D("feBlend"),f(n,"fill","#fff"),f(n,"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"),f(o,"stroke","#000"),f(o,"stroke-opacity",".12"),f(o,"stroke-width",".5"),f(o,"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"),f(t,"filter","url(#a)"),f(a,"flood-opacity","0"),f(a,"result","BackgroundImageFix"),f(s,"in","SourceAlpha"),f(s,"result","hardAlpha"),f(s,"values","0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0"),f(c,"stdDeviation","2.5"),f(m,"values","0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.16 0"),f(h,"in2","BackgroundImageFix"),f(h,"result","effect1_dropShadow_2422_111980"),f(w,"in","SourceGraphic"),f(w,"in2","effect1_dropShadow_2422_111980"),f(w,"result","shape"),f(l,"id","a"),f(l,"width","23"),f(l,"height","23"),f(l,"x",".5"),f(l,"y",".5"),f(l,"color-interpolation-filters","sRGB"),f(l,"filterUnits","userSpaceOnUse"),we(e,y)},m(g,P){S(g,e,P),v&&v.m(e,null),p(e,t),p(t,n),p(t,o),p(e,r),p(r,l),p(l,a),p(l,s),p(l,u),p(l,c),p(l,m),p(l,h),p(l,w),b=!0},p(g,[P]){v&&v.p&&(!b||P&2)&&Ve(v,C,g,g[1],b?Me(C,g[1],P,null):Re(g[1]),null),we(e,y=Oe(I,[{xmlns:"http://www.w3.org/2000/svg"},{width:"24"},{height:"24"},{fill:"none"},{"aria-hidden":"true"},{"data-testid":"cross-icon"},{role:"img"},P&1&&g[0]]))},i(g){b||(d(v,g),b=!0)},o(g){_(v,g),b=!1},d(g){g&&k(e),v&&v.d(g)}}}function S2(i,e,t){let{$$slots:n={},$$scope:o}=e;return i.$$set=r=>{t(0,e=ue(ue({},e),ye(r))),"$$scope"in r&&t(1,o=r.$$scope)},e=ye(e),[e,o,n]}var na=class extends W{constructor(e){super(),G(this,e,S2,C2,K,{})}},Pd=na;import{noop as so}from"@vkontakte/videoplayer-shared";function T2(i){Ie(i,"svelte-1anemql",".btn.svelte-1anemql{padding:8px;margin:0;height:var(--controls-height);display:flex;flex-direction:row;align-items:center}.w-max.svelte-1anemql{width:100%}.btn--live.svelte-1anemql{padding:10px 4px}.btn-m.svelte-1anemql{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-1anemql{width:var(--big-play-size);height:var(--big-play-size);display:flex;align-items:center;justify-content:center;position:relative;padding:16px}.btn.svelte-1anemql:disabled{cursor:default;pointer-events:none}.btn.svelte-1anemql:not(.btn-full-opacity):disabled{opacity:0.4}.btn.svelte-1anemql:not(:disabled):hover{opacity:0.8}.pr-0.svelte-1anemql{padding-right:0}.pl-0.svelte-1anemql{padding-left:0}")}function P2(i){let e,t,n,o,r,l,a,s,u,c,m,h,w=i[14].default,b=Le(w,i,i[13],null);return{c(){var C,v,I,y,g,P;e=T("button"),b&&b.c(),f(e,"class",t="btn "+i[1]+" svelte-1anemql"),f(e,"style",n=i[2]||null),e.disabled=o=(C=i[3])!=null?C:null,f(e,"aria-hidden",r=(v=i[5])!=null?v:null),f(e,"aria-label",l=(I=i[6])!=null?I:null),f(e,"aria-keyshortcuts",a=(y=i[7])!=null?y:null),f(e,"aria-expanded",s=(g=i[8])!=null?g:null),f(e,"data-testid",u=(P=i[4])!=null?P:null),f(e,"tabindex",i[9])},m(C,v){S(C,e,v),b&&b.m(e,null),i[16](e),c=!0,m||(h=[he(e,"pointerdown",at(qt(i[15]))),he(e,"click",at(qt(function(){Vi(i[10]===so?null:i[10])&&(i[10]===so?null:i[10]).apply(this,arguments)}))),he(e,"focus",qt(function(){Vi(i[11]===so?null:i[11])&&(i[11]===so?null:i[11]).apply(this,arguments)})),he(e,"blur",qt(function(){Vi(i[12]===so?null:i[12])&&(i[12]===so?null:i[12]).apply(this,arguments)}))],m=!0)},p(C,[v]){var I,y,g,P,B,M;i=C,b&&b.p&&(!c||v&8192)&&Ve(b,w,i,i[13],c?Me(w,i[13],v,null):Re(i[13]),null),(!c||v&2&&t!==(t="btn "+i[1]+" svelte-1anemql"))&&f(e,"class",t),(!c||v&4&&n!==(n=i[2]||null))&&f(e,"style",n),(!c||v&8&&o!==(o=(I=i[3])!=null?I:null))&&(e.disabled=o),(!c||v&32&&r!==(r=(y=i[5])!=null?y:null))&&f(e,"aria-hidden",r),(!c||v&64&&l!==(l=(g=i[6])!=null?g:null))&&f(e,"aria-label",l),(!c||v&128&&a!==(a=(P=i[7])!=null?P:null))&&f(e,"aria-keyshortcuts",a),(!c||v&256&&s!==(s=(B=i[8])!=null?B:null))&&f(e,"aria-expanded",s),(!c||v&16&&u!==(u=(M=i[4])!=null?M:null))&&f(e,"data-testid",u),(!c||v&512)&&f(e,"tabindex",i[9])},i(C){c||(d(b,C),c=!0)},o(C){_(b,C),c=!1},d(C){C&&k(e),b&&b.d(C),i[16](null),m=!1,lt(h)}}}function I2(i,e,t){let{$$slots:n={},$$scope:o}=e,{className:r=""}=e,{style:l=""}=e,{disabled:a=void 0}=e,{testId:s=void 0}=e,{ariaHidden:u=void 0}=e,{ariaLabel:c=void 0}=e,{ref:m=void 0}=e,{ariaKeyShortCut:h=void 0}=e,{ariaExpanded:w=void 0}=e,{tabIndex:b=0}=e,{click:C=so}=e,{focus:v=so}=e,{blur:I=so}=e;function y(P){Vn.call(this,i,P)}function g(P){ge[P?"unshift":"push"](()=>{m=P,t(0,m)})}return i.$$set=P=>{"className"in P&&t(1,r=P.className),"style"in P&&t(2,l=P.style),"disabled"in P&&t(3,a=P.disabled),"testId"in P&&t(4,s=P.testId),"ariaHidden"in P&&t(5,u=P.ariaHidden),"ariaLabel"in P&&t(6,c=P.ariaLabel),"ref"in P&&t(0,m=P.ref),"ariaKeyShortCut"in P&&t(7,h=P.ariaKeyShortCut),"ariaExpanded"in P&&t(8,w=P.ariaExpanded),"tabIndex"in P&&t(9,b=P.tabIndex),"click"in P&&t(10,C=P.click),"focus"in P&&t(11,v=P.focus),"blur"in P&&t(12,I=P.blur),"$$scope"in P&&t(13,o=P.$$scope)},[m,r,l,a,s,u,c,h,w,b,C,v,I,o,n,y,g]}var oa=class extends W{constructor(e){super(),G(this,e,I2,P2,K,{className:1,style:2,disabled:3,testId:4,ariaHidden:5,ariaLabel:6,ref:0,ariaKeyShortCut:7,ariaExpanded:8,tabIndex:9,click:10,focus:11,blur:12},T2)}},yt=oa;function E2(i){Ie(i,"svelte-1witlsj",".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 Id(i){let e,t,n,o,r,l=i[2]&&Ed(i);return{c(){e=T("div"),t=T("h3"),n=qe(i[3]),o=R(),l&&l.c(),f(t,"class","modal-title svelte-1witlsj"),f(e,"class","modal-header svelte-1witlsj")},m(a,s){S(a,e,s),p(e,t),p(t,n),p(e,o),l&&l.m(e,null),r=!0},p(a,s){(!r||s&8)&&Ye(n,a[3]),a[2]?l?(l.p(a,s),s&4&&d(l,1)):(l=Ed(a),l.c(),d(l,1),l.m(e,null)):l&&(ce(),_(l,1,1,()=>{l=null}),de())},i(a){r||(d(l),r=!0)},o(a){_(l),r=!1},d(a){a&&k(e),l&&l.d()}}}function Ed(i){let e,t;return e=new yt({props:{click:i[0],testId:"close-modal",style:"padding: 0; height: 24px; width: 24px",ariaLabel:U("hotkey_map_modal_close_btn_text"),$$slots:{default:[A2]},$$scope:{ctx:i}}}),{c(){V(e.$$.fragment)},m(n,o){A(e,n,o),t=!0},p(n,o){let r={};o&1&&(r.click=n[0]),o&32&&(r.$$scope={dirty:o,ctx:n}),e.$set(r)},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){_(e.$$.fragment,n),t=!1},d(n){L(e,n)}}}function A2(i){let e,t;return e=new Pd({}),{c(){V(e.$$.fragment)},m(n,o){A(e,n,o),t=!0},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){_(e.$$.fragment,n),t=!1},d(n){L(e,n)}}}function L2(i){let e,t,n,o,r,l,a=i[1]&&Id(i),s=i[4].default,u=Le(s,i,i[5],null);return{c(){e=T("div"),t=T("div"),a&&a.c(),n=R(),o=T("div"),r=T("div"),u&&u.c(),f(r,"class","modal-main svelte-1witlsj"),f(o,"class","modal-scroll svelte-1witlsj"),f(t,"class","modal-container svelte-1witlsj"),f(e,"class","modal-overlay svelte-1witlsj")},m(c,m){S(c,e,m),p(e,t),a&&a.m(t,null),p(t,n),p(t,o),p(o,r),u&&u.m(r,null),l=!0},p(c,[m]){c[1]?a?(a.p(c,m),m&2&&d(a,1)):(a=Id(c),a.c(),d(a,1),a.m(t,n)):a&&(ce(),_(a,1,1,()=>{a=null}),de()),u&&u.p&&(!l||m&32)&&Ve(u,s,c,c[5],l?Me(s,c[5],m,null):Re(c[5]),null)},i(c){l||(d(a),d(u,c),l=!0)},o(c){_(a),_(u,c),l=!1},d(c){c&&k(e),a&&a.d(),u&&u.d(c)}}}function M2(i,e,t){let{$$slots:n={},$$scope:o}=e,{onClose:r}=e,{showHeader:l=!0}=e,{showCloseCross:a=!0}=e,{title:s}=e;return i.$$set=u=>{"onClose"in u&&t(0,r=u.onClose),"showHeader"in u&&t(1,l=u.showHeader),"showCloseCross"in u&&t(2,a=u.showCloseCross),"title"in u&&t(3,s=u.title),"$$scope"in u&&t(5,o=u.$$scope)},[r,l,a,s,n,o]}var la=class extends W{constructor(e){super(),G(this,e,M2,L2,K,{onClose:0,showHeader:1,showCloseCross:2,title:3},E2)}},Ad=la;var V2=new Set(["BR"]),ra=i=>{var o;let e=document.createElement("DIV");e.innerHTML=i;let t=e.querySelectorAll("*"),n=t.length;for(;n--;){let r=t[n],l=r.tagName;V2.has(l)||(o=r.parentElement)==null||o.removeChild(r)}return e.innerHTML};function R2(i){Ie(i,"svelte-quklnq",".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,.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,.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 Ld(i,e,t){let n=i.slice();return n[5]=e[t].title,n[6]=e[t].items,n}function Md(i,e,t){let n=i.slice();return n[9]=e[t].description,n[10]=e[t].value,n}function Vd(i){let e,t,n=ra(i[9])+"",o,r,l=i[10]+"",a,s;return{c(){e=T("li"),t=T("span"),o=R(),r=T("span"),a=qe(l),s=R(),f(t,"class","hot-key-map-item-description svelte-quklnq"),f(r,"class","hot-key-map-item-value svelte-quklnq"),f(e,"class","hot-key-map-item svelte-quklnq")},m(u,c){S(u,e,c),p(e,t),t.innerHTML=n,p(e,o),p(e,r),p(r,a),p(e,s)},p(u,c){c&1&&n!==(n=ra(u[9])+"")&&(t.innerHTML=n),c&1&&l!==(l=u[10]+"")&&Ye(a,l)},d(u){u&&k(e)}}}function Rd(i){let e,t,n=i[5]+"",o,r,l,a,s=It(i[6]),u=[];for(let c=0;c<s.length;c+=1)u[c]=Vd(Md(i,s,c));return{c(){e=T("div"),t=T("h5"),o=qe(n),r=R(),l=T("ul");for(let c=0;c<u.length;c+=1)u[c].c();a=R(),f(t,"class","hot-key-map-group-title svelte-quklnq"),f(l,"class","hot-key-map-group-items svelte-quklnq"),f(e,"class","hot-key-map-group svelte-quklnq")},m(c,m){S(c,e,m),p(e,t),p(t,o),p(e,r),p(e,l);for(let h=0;h<u.length;h+=1)u[h]&&u[h].m(l,null);p(e,a)},p(c,m){if(m&1&&n!==(n=c[5]+"")&&Ye(o,n),m&1){s=It(c[6]);let h;for(h=0;h<s.length;h+=1){let w=Md(c,s,h);u[h]?u[h].p(w,m):(u[h]=Vd(w),u[h].c(),u[h].m(l,null))}for(;h<u.length;h+=1)u[h].d(1);u.length=s.length}},d(c){c&&k(e),Ri(u,c)}}}function B2(i){let e,t=It(i[0].groups),n=[];for(let o=0;o<t.length;o+=1)n[o]=Rd(Ld(i,t,o));return{c(){e=T("div");for(let o=0;o<n.length;o+=1)n[o].c();f(e,"class","hot-key-map svelte-quklnq")},m(o,r){S(o,e,r);for(let l=0;l<n.length;l+=1)n[l]&&n[l].m(e,null)},p(o,r){if(r&1){t=It(o[0].groups);let l;for(l=0;l<t.length;l+=1){let a=Ld(o,t,l);n[l]?n[l].p(a,r):(n[l]=Rd(a),n[l].c(),n[l].m(e,null))}for(;l<n.length;l+=1)n[l].d(1);n.length=t.length}},d(o){o&&k(e),Ri(n,o)}}}function D2(i){let e,t;return e=new Ad({props:{title:i[0].title,onClose:i[2],$$slots:{default:[B2]},$$scope:{ctx:i}}}),{c(){V(e.$$.fragment)},m(n,o){A(e,n,o),t=!0},p(n,[o]){let r={};o&1&&(r.title=n[0].title),o&8193&&(r.$$scope={dirty:o,ctx:n}),e.$set(r)},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){_(e.$$.fragment,n),t=!1},d(n){L(e,n)}}}function N2(i,e,t){let n,o=st(),{data:r,show:l}=o.ui.modals.hotKeyMap;return z(i,r,s=>t(0,n=s)),[n,r,()=>{l.set(!1)}]}var sa=class extends W{constructor(e){super(),G(this,e,N2,D2,K,{},R2)}},Bd=sa;import{noop as Ku}from"@vkontakte/videoplayer-shared";import{ChromecastState as wm,PlaybackState as Ru}from"@vkontakte/videoplayer-core";import{VideoQuality as Rg}from"@vkontakte/videoplayer-core";var Uo={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"},Dd={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"};var q2=i=>{var e,t;return(t=(e=Uo[i])!=null?e:Uo[Dd[i]])!=null?t:void 0},Sr=(i,e)=>String(e.findIndex(t=>t.id===i.id)+1),ao=(i,e)=>{var l;if(!i)return"";let{language:t,label:n}=i,o;if(t==="und"?o=void 0:t&&(o=(l=q2(t))!=null?l:t),n&&t&&o){let a=e.filter(s=>s.label===n&&s.language===t);if(a.length===1)return U("audio_stream_display_language_label",{language:o,label:n});{let s=Sr(i,a);return U("audio_stream_display_language_label_index",{language:o,label:n,index:s})}}if(n){let a=e.filter(s=>s.label===n);if(a.length===1)return n;{let s=Sr(i,a);return U("audio_stream_display_label_index",{label:n,index:s})}}if(t&&o){let a=e.filter(s=>s.language===t);if(a.length===1)return o;{let s=Sr(i,a);return U("audio_stream_display_language_index",{language:o,index:s})}}let r=Sr(i,e);return U("audio_stream_display_unknown",{index:r})};import"@vkontakte/videoplayer-shared";function O2(i){Ie(i,"svelte-1oe0j8n",".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 F2(i){let e,t,n=i[1].default,o=Le(n,i,i[0],null);return{c(){e=T("div"),o&&o.c(),f(e,"class","pillow svelte-1oe0j8n")},m(r,l){S(r,e,l),o&&o.m(e,null),t=!0},p(r,[l]){o&&o.p&&(!t||l&1)&&Ve(o,n,r,r[0],t?Me(n,r[0],l,null):Re(r[0]),null)},i(r){t||(d(o,r),t=!0)},o(r){_(o,r),t=!1},d(r){r&&k(e),o&&o.d(r)}}}function H2(i,e,t){let{$$slots:n={},$$scope:o}=e;return i.$$set=r=>{"$$scope"in r&&t(0,o=r.$$scope)},[o,n]}var aa=class extends W{constructor(e){super(),G(this,e,H2,F2,K,{},O2)}},Nd=aa;import{VideoQuality as Vl}from"@vkontakte/videoplayer-core";function z2(i){let e,t,n,o,r=i[2].default,l=Le(r,i,i[1],null),a=[{xmlns:"http://www.w3.org/2000/svg"},{width:"9"},{height:"5"},{fill:"none"},{role:"img"},i[0]],s={};for(let u=0;u<a.length;u+=1)s=ue(s,a[u]);return{c(){e=D("svg"),l&&l.c(),t=D("path"),n=D("path"),f(t,"fill","currentColor"),f(t,"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"),f(n,"fill","currentColor"),f(n,"fill-rule","evenodd"),f(n,"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"),f(n,"clip-rule","evenodd"),we(e,s)},m(u,c){S(u,e,c),l&&l.m(e,null),p(e,t),p(e,n),o=!0},p(u,[c]){l&&l.p&&(!o||c&2)&&Ve(l,r,u,u[1],o?Me(r,u[1],c,null):Re(u[1]),null),we(e,s=Oe(a,[{xmlns:"http://www.w3.org/2000/svg"},{width:"9"},{height:"5"},{fill:"none"},{role:"img"},c&1&&u[0]]))},i(u){o||(d(l,u),o=!0)},o(u){_(l,u),o=!1},d(u){u&&k(e),l&&l.d(u)}}}function U2(i,e,t){let{$$slots:n={},$$scope:o}=e;return i.$$set=r=>{t(0,e=ue(ue({},e),ye(r))),"$$scope"in r&&t(1,o=r.$$scope)},e=ye(e),[e,o,n]}var ua=class extends W{constructor(e){super(),G(this,e,U2,z2,K,{})}},qd=ua;function K2(i){let e,t,n,o,r=i[2].default,l=Le(r,i,i[1],null),a=[{xmlns:"http://www.w3.org/2000/svg"},{width:"9"},{height:"5"},{fill:"none"},{role:"img"},i[0]],s={};for(let u=0;u<a.length;u+=1)s=ue(s,a[u]);return{c(){e=D("svg"),l&&l.c(),t=D("path"),n=D("path"),f(t,"fill","currentColor"),f(t,"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"),f(n,"fill","currentColor"),f(n,"fill-rule","evenodd"),f(n,"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"),f(n,"clip-rule","evenodd"),we(e,s)},m(u,c){S(u,e,c),l&&l.m(e,null),p(e,t),p(e,n),o=!0},p(u,[c]){l&&l.p&&(!o||c&2)&&Ve(l,r,u,u[1],o?Me(r,u[1],c,null):Re(u[1]),null),we(e,s=Oe(a,[{xmlns:"http://www.w3.org/2000/svg"},{width:"9"},{height:"5"},{fill:"none"},{role:"img"},c&1&&u[0]]))},i(u){o||(d(l,u),o=!0)},o(u){_(l,u),o=!1},d(u){u&&k(e),l&&l.d(u)}}}function j2(i,e,t){let{$$slots:n={},$$scope:o}=e;return i.$$set=r=>{t(0,e=ue(ue({},e),ye(r))),"$$scope"in r&&t(1,o=r.$$scope)},e=ye(e),[e,o,n]}var fa=class extends W{constructor(e){super(),G(this,e,j2,K2,K,{})}},Od=fa;function W2(i){let e,t,n,o=i[2].default,r=Le(o,i,i[1],null),l=[{xmlns:"http://www.w3.org/2000/svg"},{width:"9"},{height:"5"},{fill:"none"},{role:"img"},i[0]],a={};for(let s=0;s<l.length;s+=1)a=ue(a,l[s]);return{c(){e=D("svg"),r&&r.c(),t=D("path"),f(t,"fill","currentColor"),f(t,"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"),we(e,a)},m(s,u){S(s,e,u),r&&r.m(e,null),p(e,t),n=!0},p(s,[u]){r&&r.p&&(!n||u&2)&&Ve(r,o,s,s[1],n?Me(o,s[1],u,null):Re(s[1]),null),we(e,a=Oe(l,[{xmlns:"http://www.w3.org/2000/svg"},{width:"9"},{height:"5"},{fill:"none"},{role:"img"},u&1&&s[0]]))},i(s){n||(d(r,s),n=!0)},o(s){_(r,s),n=!1},d(s){s&&k(e),r&&r.d(s)}}}function G2(i,e,t){let{$$slots:n={},$$scope:o}=e;return i.$$set=r=>{t(0,e=ue(ue({},e),ye(r))),"$$scope"in r&&t(1,o=r.$$scope)},e=ye(e),[e,o,n]}var ca=class extends W{constructor(e){super(),G(this,e,G2,W2,K,{})}},Fd=ca;function Q2(i){let e,t,n,o=i[2].default,r=Le(o,i,i[1],null),l=[{xmlns:"http://www.w3.org/2000/svg"},{width:"13"},{height:"5"},{fill:"none"},{role:"img"},i[0]],a={};for(let s=0;s<l.length;s+=1)a=ue(a,l[s]);return{c(){e=D("svg"),r&&r.c(),t=D("path"),f(t,"fill","currentColor"),f(t,"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"),we(e,a)},m(s,u){S(s,e,u),r&&r.m(e,null),p(e,t),n=!0},p(s,[u]){r&&r.p&&(!n||u&2)&&Ve(r,o,s,s[1],n?Me(o,s[1],u,null):Re(s[1]),null),we(e,a=Oe(l,[{xmlns:"http://www.w3.org/2000/svg"},{width:"13"},{height:"5"},{fill:"none"},{role:"img"},u&1&&s[0]]))},i(s){n||(d(r,s),n=!0)},o(s){_(r,s),n=!1},d(s){s&&k(e),r&&r.d(s)}}}function Y2(i,e,t){let{$$slots:n={},$$scope:o}=e;return i.$$set=r=>{t(0,e=ue(ue({},e),ye(r))),"$$scope"in r&&t(1,o=r.$$scope)},e=ye(e),[e,o,n]}var da=class extends W{constructor(e){super(),G(this,e,Y2,Q2,K,{})}},Tr=da;function Z2(i){let e,t,n,o,r=i[2].default,l=Le(r,i,i[1],null),a=[{xmlns:"http://www.w3.org/2000/svg"},{width:"15"},{height:"7"},{fill:"none"},{role:"img"},i[0]],s={};for(let u=0;u<a.length;u+=1)s=ue(s,a[u]);return{c(){e=D("svg"),l&&l.c(),t=D("path"),n=D("path"),f(t,"fill","currentColor"),f(t,"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"),f(n,"fill","currentColor"),f(n,"fill-rule","evenodd"),f(n,"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"),f(n,"clip-rule","evenodd"),we(e,s)},m(u,c){S(u,e,c),l&&l.m(e,null),p(e,t),p(e,n),o=!0},p(u,[c]){l&&l.p&&(!o||c&2)&&Ve(l,r,u,u[1],o?Me(r,u[1],c,null):Re(u[1]),null),we(e,s=Oe(a,[{xmlns:"http://www.w3.org/2000/svg"},{width:"15"},{height:"7"},{fill:"none"},{role:"img"},c&1&&u[0]]))},i(u){o||(d(l,u),o=!0)},o(u){_(l,u),o=!1},d(u){u&&k(e),l&&l.d(u)}}}function X2(i,e,t){let{$$slots:n={},$$scope:o}=e;return i.$$set=r=>{t(0,e=ue(ue({},e),ye(r))),"$$scope"in r&&t(1,o=r.$$scope)},e=ye(e),[e,o,n]}var ma=class extends W{constructor(e){super(),G(this,e,X2,Z2,K,{})}},Pr=ma;var go=i=>{switch(i){case Vl.Q_720P:return Fd;case Vl.Q_1080P:return Tr;case Vl.Q_1440P:return Pr;case Vl.Q_2160P:return qd;case Vl.Q_4320P:return Od}};function J2(i){let e,t,n,o=i[2].default,r=Le(o,i,i[1],null),l=[{xmlns:"http://www.w3.org/2000/svg"},{width:"24"},{height:"24"},{fill:"none"},{"aria-hidden":"true"},{"data-testid":"settings-mobile-icon"},{role:"img"},i[0]],a={};for(let s=0;s<l.length;s+=1)a=ue(a,l[s]);return{c(){e=D("svg"),r&&r.c(),t=D("path"),f(t,"fill","#fff"),f(t,"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"),we(e,a)},m(s,u){S(s,e,u),r&&r.m(e,null),p(e,t),n=!0},p(s,[u]){r&&r.p&&(!n||u&2)&&Ve(r,o,s,s[1],n?Me(o,s[1],u,null):Re(s[1]),null),we(e,a=Oe(l,[{xmlns:"http://www.w3.org/2000/svg"},{width:"24"},{height:"24"},{fill:"none"},{"aria-hidden":"true"},{"data-testid":"settings-mobile-icon"},{role:"img"},u&1&&s[0]]))},i(s){n||(d(r,s),n=!0)},o(s){_(r,s),n=!1},d(s){s&&k(e),r&&r.d(s)}}}function x2(i,e,t){let{$$slots:n={},$$scope:o}=e;return i.$$set=r=>{t(0,e=ue(ue({},e),ye(r))),"$$scope"in r&&t(1,o=r.$$scope)},e=ye(e),[e,o,n]}var pa=class extends W{constructor(e){super(),G(this,e,x2,J2,K,{})}},Hd=pa;function $2(i){let e,t,n,o,r=i[2].default,l=Le(r,i,i[1],null),a=[{xmlns:"http://www.w3.org/2000/svg"},{width:"24"},{height:"24"},{fill:"none"},{"data-testid":"settings-icon"},{role:"img"},i[0]],s={};for(let u=0;u<a.length;u+=1)s=ue(s,a[u]);return{c(){e=D("svg"),l&&l.c(),t=D("path"),n=D("path"),f(t,"fill","#fff"),f(t,"fill-rule","evenodd"),f(t,"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"),f(t,"clip-rule","evenodd"),f(n,"fill","#fff"),f(n,"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"),f(n,"class","_full"),we(e,s)},m(u,c){S(u,e,c),l&&l.m(e,null),p(e,t),p(e,n),o=!0},p(u,[c]){l&&l.p&&(!o||c&2)&&Ve(l,r,u,u[1],o?Me(r,u[1],c,null):Re(u[1]),null),we(e,s=Oe(a,[{xmlns:"http://www.w3.org/2000/svg"},{width:"24"},{height:"24"},{fill:"none"},{"data-testid":"settings-icon"},{role:"img"},c&1&&u[0]]))},i(u){o||(d(l,u),o=!0)},o(u){_(l,u),o=!1},d(u){u&&k(e),l&&l.d(u)}}}function eg(i,e,t){let{$$slots:n={},$$scope:o}=e;return i.$$set=r=>{t(0,e=ue(ue({},e),ye(r))),"$$scope"in r&&t(1,o=r.$$scope)},e=ye(e),[e,o,n]}var _a=class extends W{constructor(e){super(),G(this,e,eg,$2,K,{})}},zd=_a;function tg(i){Ie(i,"svelte-8t5w85",'.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 ig(i){let e,t,n,o,r=i[1]&&Ud(i);return n=new zd({props:{"data-testid":i[1]?"settings-icon--labeled":"settings-icon"}}),{c(){e=T("div"),r&&r.c(),t=R(),V(n.$$.fragment),f(e,"class","icon svelte-8t5w85"),f(e,"aria-hidden","true"),N(e,"triple",i[2])},m(l,a){S(l,e,a),r&&r.m(e,null),p(e,t),A(n,e,null),o=!0},p(l,a){l[1]?r?(r.p(l,a),a&2&&d(r,1)):(r=Ud(l),r.c(),d(r,1),r.m(e,t)):r&&(ce(),_(r,1,1,()=>{r=null}),de());let s={};a&2&&(s["data-testid"]=l[1]?"settings-icon--labeled":"settings-icon"),n.$set(s),(!o||a&4)&&N(e,"triple",l[2])},i(l){o||(d(r),d(n.$$.fragment,l),o=!0)},o(l){_(r),_(n.$$.fragment,l),o=!1},d(l){l&&k(e),r&&r.d(),L(n)}}}function ng(i){let e,t;return e=new Hd({}),{c(){V(e.$$.fragment)},m(n,o){A(e,n,o),t=!0},p:Se,i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){_(e.$$.fragment,n),t=!1},d(n){L(e,n)}}}function Ud(i){let e,t;return e=new Nd({props:{$$slots:{default:[og]},$$scope:{ctx:i}}}),{c(){V(e.$$.fragment)},m(n,o){A(e,n,o),t=!0},p(n,o){let r={};o&18&&(r.$$scope={dirty:o,ctx:n}),e.$set(r)},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){_(e.$$.fragment,n),t=!1},d(n){L(e,n)}}}function og(i){let e,t,n;var o=i[1];function r(l,a){return{}}return o&&(e=In(o,r(i))),{c(){e&&V(e.$$.fragment),t=dt()},m(l,a){e&&A(e,l,a),S(l,t,a),n=!0},p(l,a){if(a&2&&o!==(o=l[1])){if(e){ce();let s=e;_(s.$$.fragment,1,0,()=>{L(s,1)}),de()}o?(e=In(o,r(l,a)),V(e.$$.fragment),d(e.$$.fragment,1),A(e,t.parentNode,t)):e=null}},i(l){n||(e&&d(e.$$.fragment,l),n=!0)},o(l){e&&_(e.$$.fragment,l),n=!1},d(l){l&&k(t),e&&L(e,l)}}}function lg(i){let e,t,n,o,r=[ng,ig],l=[];function a(s,u){return s[0]?0:1}return e=a(i,-1),t=l[e]=r[e](i),{c(){t.c(),n=dt()},m(s,u){l[e].m(s,u),S(s,n,u),o=!0},p(s,[u]){let c=e;e=a(s,u),e===c?l[e].p(s,u):(ce(),_(l[c],1,1,()=>{l[c]=null}),de(),t=l[e],t?t.p(s,u):(t=l[e]=r[e](s),t.c()),d(t,1),t.m(n.parentNode,n))},i(s){o||(d(t),o=!0)},o(s){_(t),o=!1},d(s){s&&k(n),l[e].d(s)}}}function rg(i,e,t){let n,{isMobile:o=!1}=e,{currentQuality:r=void 0}=e,l;return i.$$set=a=>{"isMobile"in a&&t(0,o=a.isMobile),"currentQuality"in a&&t(3,r=a.currentQuality)},i.$$.update=()=>{i.$$.dirty&8&&t(1,n=go(r)),i.$$.dirty&2&&t(2,l=!!n&&[Tr,Pr].includes(n))},[o,n,l,r]}var ha=class extends W{constructor(e){super(),G(this,e,rg,lg,K,{isMobile:0,currentQuality:3},tg)}},Ir=ha;function sg(i){let e,t,n,o=i[2].default,r=Le(o,i,i[1],null),l=[{xmlns:"http://www.w3.org/2000/svg"},{width:"22"},{height:"18"},{fill:"none"},{"aria-hidden":"true"},{"data-testid":"subtitle-empty-icon"},{role:"img"},i[0]],a={};for(let s=0;s<l.length;s+=1)a=ue(a,l[s]);return{c(){e=D("svg"),r&&r.c(),t=D("path"),f(t,"fill","#fff"),f(t,"d","M14.692.428c2.293 0 3.124.24 3.962.687a4.67 4.67 0 0 1 1.944 1.944c.449.839.687 1.67.687 3.962v3.958c0 2.292-.238 3.123-.687 3.961a4.67 4.67 0 0 1-1.944 1.944c-.838.449-1.67.687-3.962.687H7.307c-2.293 0-3.124-.238-3.962-.687A4.67 4.67 0 0 1 1.4 14.94c-.448-.838-.687-1.669-.687-3.961V7.02c0-2.292.239-3.123.687-3.962a4.67 4.67 0 0 1 1.944-1.944C4.183.667 5.015.428 7.307.428zm.243 1.716-7.628-.001c-1.832 0-2.484.126-3.154.484a2.96 2.96 0 0 0-1.24 1.24c-.343.64-.473 1.264-.484 2.912v4.2c0 1.83.125 2.483.483 3.153q.433.809 1.241 1.24c.67.36 1.322.485 3.154.485h7.385c1.832 0 2.484-.126 3.154-.484a2.96 2.96 0 0 0 1.24-1.241c.36-.67.485-1.322.485-3.153V7.02c0-1.831-.126-2.483-.484-3.153a2.96 2.96 0 0 0-1.241-1.24c-.64-.343-1.263-.473-2.911-.484ZM11 10.714a.857.857 0 1 1 0 1.714H5.857a.857.857 0 0 1 0-1.714zm5.142 0a.857.857 0 1 1 0 1.714h-1.714a.857.857 0 0 1 0-1.714zm0-3.428a.857.857 0 1 1 0 1.714H11a.857.857 0 1 1 0-1.714zm-8.571 0a.857.857 0 0 1 0 1.714H5.857a.857.857 0 0 1 0-1.714z"),we(e,a)},m(s,u){S(s,e,u),r&&r.m(e,null),p(e,t),n=!0},p(s,[u]){r&&r.p&&(!n||u&2)&&Ve(r,o,s,s[1],n?Me(o,s[1],u,null):Re(s[1]),null),we(e,a=Oe(l,[{xmlns:"http://www.w3.org/2000/svg"},{width:"22"},{height:"18"},{fill:"none"},{"aria-hidden":"true"},{"data-testid":"subtitle-empty-icon"},{role:"img"},u&1&&s[0]]))},i(s){n||(d(r,s),n=!0)},o(s){_(r,s),n=!1},d(s){s&&k(e),r&&r.d(s)}}}function ag(i,e,t){let{$$slots:n={},$$scope:o}=e;return i.$$set=r=>{t(0,e=ue(ue({},e),ye(r))),"$$scope"in r&&t(1,o=r.$$scope)},e=ye(e),[e,o,n]}var ga=class extends W{constructor(e){super(),G(this,e,ag,sg,K,{})}},Er=ga;function ug(i){let e,t,n,o=i[2].default,r=Le(o,i,i[1],null),l=[{xmlns:"http://www.w3.org/2000/svg"},{width:"16"},{height:"19"},{fill:"none"},{"aria-hidden":"true"},{"data-testid":"download-icon"},{role:"img"},i[0]],a={};for(let s=0;s<l.length;s+=1)a=ue(a,l[s]);return{c(){e=D("svg"),r&&r.c(),t=D("path"),f(t,"fill","#fff"),f(t,"fill-rule","evenodd"),f(t,"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"),f(t,"clip-rule","evenodd"),we(e,a)},m(s,u){S(s,e,u),r&&r.m(e,null),p(e,t),n=!0},p(s,[u]){r&&r.p&&(!n||u&2)&&Ve(r,o,s,s[1],n?Me(o,s[1],u,null):Re(s[1]),null),we(e,a=Oe(l,[{xmlns:"http://www.w3.org/2000/svg"},{width:"16"},{height:"19"},{fill:"none"},{"aria-hidden":"true"},{"data-testid":"download-icon"},{role:"img"},u&1&&s[0]]))},i(s){n||(d(r,s),n=!0)},o(s){_(r,s),n=!1},d(s){s&&k(e),r&&r.d(s)}}}function fg(i,e,t){let{$$slots:n={},$$scope:o}=e;return i.$$set=r=>{t(0,e=ue(ue({},e),ye(r))),"$$scope"in r&&t(1,o=r.$$scope)},e=ye(e),[e,o,n]}var ba=class extends W{constructor(e){super(),G(this,e,fg,ug,K,{})}},Kd=ba;function cg(i){let e,t,n,o=i[2].default,r=Le(o,i,i[1],null),l=[{xmlns:"http://www.w3.org/2000/svg"},{width:"18"},{height:"17"},{fill:"none"},{"aria-hidden":"true"},{"data-testid":"traffic-saving-icon"},{role:"img"},i[0]],a={};for(let s=0;s<l.length;s+=1)a=ue(a,l[s]);return{c(){e=D("svg"),r&&r.c(),t=D("path"),f(t,"fill","#fff"),f(t,"fill-rule","evenodd"),f(t,"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"),f(t,"clip-rule","evenodd"),we(e,a)},m(s,u){S(s,e,u),r&&r.m(e,null),p(e,t),n=!0},p(s,[u]){r&&r.p&&(!n||u&2)&&Ve(r,o,s,s[1],n?Me(o,s[1],u,null):Re(s[1]),null),we(e,a=Oe(l,[{xmlns:"http://www.w3.org/2000/svg"},{width:"18"},{height:"17"},{fill:"none"},{"aria-hidden":"true"},{"data-testid":"traffic-saving-icon"},{role:"img"},u&1&&s[0]]))},i(s){n||(d(r,s),n=!0)},o(s){_(r,s),n=!1},d(s){s&&k(e),r&&r.d(s)}}}function dg(i,e,t){let{$$slots:n={},$$scope:o}=e;return i.$$set=r=>{t(0,e=ue(ue({},e),ye(r))),"$$scope"in r&&t(1,o=r.$$scope)},e=ye(e),[e,o,n]}var va=class extends W{constructor(e){super(),G(this,e,dg,cg,K,{})}},jd=va;function mg(i){let e,t,n,o,r,l=i[2].default,a=Le(l,i,i[1],null),s=[{xmlns:"http://www.w3.org/2000/svg"},{width:"24"},{height:"24"},{"aria-hidden":"true"},{"data-testid":"play-speed-icon"},{role:"img"},i[0]],u={};for(let c=0;c<s.length;c+=1)u=ue(u,s[c]);return{c(){e=D("svg"),a&&a.c(),t=D("g"),n=D("path"),o=D("path"),f(n,"d","M0 0h24v24H0z"),f(o,"fill","#fff"),f(o,"fill-rule","nonzero"),f(o,"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"),f(t,"fill","none"),f(t,"fill-rule","evenodd"),we(e,u)},m(c,m){S(c,e,m),a&&a.m(e,null),p(e,t),p(t,n),p(t,o),r=!0},p(c,[m]){a&&a.p&&(!r||m&2)&&Ve(a,l,c,c[1],r?Me(l,c[1],m,null):Re(c[1]),null),we(e,u=Oe(s,[{xmlns:"http://www.w3.org/2000/svg"},{width:"24"},{height:"24"},{"aria-hidden":"true"},{"data-testid":"play-speed-icon"},{role:"img"},m&1&&c[0]]))},i(c){r||(d(a,c),r=!0)},o(c){_(a,c),r=!1},d(c){c&&k(e),a&&a.d(c)}}}function pg(i,e,t){let{$$slots:n={},$$scope:o}=e;return i.$$set=r=>{t(0,e=ue(ue({},e),ye(r))),"$$scope"in r&&t(1,o=r.$$scope)},e=ye(e),[e,o,n]}var ya=class extends W{constructor(e){super(),G(this,e,pg,mg,K,{})}},Wd=ya;function _g(i){let e,t,n,o=i[2].default,r=Le(o,i,i[1],null),l=[{xmlns:"http://www.w3.org/2000/svg"},{width:"18"},{height:"15"},{fill:"none"},{"aria-hidden":"true"},{"data-testid":"audio-languages-icon"},{role:"img"},i[0]],a={};for(let s=0;s<l.length;s+=1)a=ue(a,l[s]);return{c(){e=D("svg"),r&&r.c(),t=D("path"),f(t,"fill","#fff"),f(t,"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"),we(e,a)},m(s,u){S(s,e,u),r&&r.m(e,null),p(e,t),n=!0},p(s,[u]){r&&r.p&&(!n||u&2)&&Ve(r,o,s,s[1],n?Me(o,s[1],u,null):Re(s[1]),null),we(e,a=Oe(l,[{xmlns:"http://www.w3.org/2000/svg"},{width:"18"},{height:"15"},{fill:"none"},{"aria-hidden":"true"},{"data-testid":"audio-languages-icon"},{role:"img"},u&1&&s[0]]))},i(s){n||(d(r,s),n=!0)},o(s){_(r,s),n=!1},d(s){s&&k(e),r&&r.d(s)}}}function hg(i,e,t){let{$$slots:n={},$$scope:o}=e;return i.$$set=r=>{t(0,e=ue(ue({},e),ye(r))),"$$scope"in r&&t(1,o=r.$$scope)},e=ye(e),[e,o,n]}var wa=class extends W{constructor(e){super(),G(this,e,hg,_g,K,{})}},Gd=wa;function gg(i){let e,t,n,o=i[2].default,r=Le(o,i,i[1],null),l=[{xmlns:"http://www.w3.org/2000/svg"},{width:"12"},{height:"7"},{fill:"none"},{"aria-hidden":"true"},{role:"img"},i[0]],a={};for(let s=0;s<l.length;s+=1)a=ue(a,l[s]);return{c(){e=D("svg"),r&&r.c(),t=D("path"),f(t,"fill","#fff"),f(t,"fill-opacity",".72"),f(t,"fill-rule","evenodd"),f(t,"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"),f(t,"clip-rule","evenodd"),we(e,a)},m(s,u){S(s,e,u),r&&r.m(e,null),p(e,t),n=!0},p(s,[u]){r&&r.p&&(!n||u&2)&&Ve(r,o,s,s[1],n?Me(o,s[1],u,null):Re(s[1]),null),we(e,a=Oe(l,[{xmlns:"http://www.w3.org/2000/svg"},{width:"12"},{height:"7"},{fill:"none"},{"aria-hidden":"true"},{role:"img"},u&1&&s[0]]))},i(s){n||(d(r,s),n=!0)},o(s){_(r,s),n=!1},d(s){s&&k(e),r&&r.d(s)}}}function bg(i,e,t){let{$$slots:n={},$$scope:o}=e;return i.$$set=r=>{t(0,e=ue(ue({},e),ye(r))),"$$scope"in r&&t(1,o=r.$$scope)},e=ye(e),[e,o,n]}var ka=class extends W{constructor(e){super(),G(this,e,bg,gg,K,{})}},Qd=ka;function vg(i){let e,t,n,o=i[2].default,r=Le(o,i,i[1],null),l=[{xmlns:"http://www.w3.org/2000/svg"},{width:"12"},{height:"16"},{fill:"none"},{"aria-hidden":"true"},{role:"img"},i[0]],a={};for(let s=0;s<l.length;s+=1)a=ue(a,l[s]);return{c(){e=D("svg"),r&&r.c(),t=D("path"),f(t,"fill","#fff"),f(t,"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"),we(e,a)},m(s,u){S(s,e,u),r&&r.m(e,null),p(e,t),n=!0},p(s,[u]){r&&r.p&&(!n||u&2)&&Ve(r,o,s,s[1],n?Me(o,s[1],u,null):Re(s[1]),null),we(e,a=Oe(l,[{xmlns:"http://www.w3.org/2000/svg"},{width:"12"},{height:"16"},{fill:"none"},{"aria-hidden":"true"},{role:"img"},u&1&&s[0]]))},i(s){n||(d(r,s),n=!0)},o(s){_(r,s),n=!1},d(s){s&&k(e),r&&r.d(s)}}}function yg(i,e,t){let{$$slots:n={},$$scope:o}=e;return i.$$set=r=>{t(0,e=ue(ue({},e),ye(r))),"$$scope"in r&&t(1,o=r.$$scope)},e=ye(e),[e,o,n]}var Ca=class extends W{constructor(e){super(),G(this,e,yg,vg,K,{})}},Yd=Ca;function wg(i){let e,t;return e=new Yd({props:{style:i[2],"data-testid":i[0]?"chevron-icon--right":"chevron-icon--left"}}),{c(){V(e.$$.fragment)},m(n,o){A(e,n,o),t=!0},p(n,o){let r={};o&4&&(r.style=n[2]),o&1&&(r["data-testid"]=n[0]?"chevron-icon--right":"chevron-icon--left"),e.$set(r)},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){_(e.$$.fragment,n),t=!1},d(n){L(e,n)}}}function kg(i){let e,t;return e=new Qd({props:{style:i[2],"data-testid":i[0]?"chevron-icon--down":"chevron-icon--up"}}),{c(){V(e.$$.fragment)},m(n,o){A(e,n,o),t=!0},p(n,o){let r={};o&4&&(r.style=n[2]),o&1&&(r["data-testid"]=n[0]?"chevron-icon--down":"chevron-icon--up"),e.$set(r)},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){_(e.$$.fragment,n),t=!1},d(n){L(e,n)}}}function Cg(i){let e,t,n,o,r=[kg,wg],l=[];function a(s,u){return s[1]?0:1}return e=a(i,-1),t=l[e]=r[e](i),{c(){t.c(),n=dt()},m(s,u){l[e].m(s,u),S(s,n,u),o=!0},p(s,[u]){let c=e;e=a(s,u),e===c?l[e].p(s,u):(ce(),_(l[c],1,1,()=>{l[c]=null}),de(),t=l[e],t?t.p(s,u):(t=l[e]=r[e](s),t.c()),d(t,1),t.m(n.parentNode,n))},i(s){o||(d(t),o=!0)},o(s){_(t),o=!1},d(s){s&&k(n),l[e].d(s)}}}function Sg(i,e,t){let n,{direction:o="left"}=e,r,l;return i.$$set=a=>{"direction"in a&&t(3,o=a.direction)},i.$$.update=()=>{i.$$.dirty&8&&(t(1,r=["up","down"].includes(o)),t(0,l=["right","down"].includes(o))),i.$$.dirty&1&&t(2,n=l?"transform: rotate(180deg);":void 0)},[l,r,n,o]}var Sa=class extends W{constructor(e){super(),G(this,e,Sg,Cg,K,{direction:3})}},Qn=Sa;function Tg(i){let e,t,n,o=i[2].default,r=Le(o,i,i[1],null),l=[{xmlns:"http://www.w3.org/2000/svg"},{width:"24"},{height:"24"},{fill:"none"},{"aria-hidden":"true"},{"data-testid":"report-icon"},{role:"img"},i[0]],a={};for(let s=0;s<l.length;s+=1)a=ue(a,l[s]);return{c(){e=D("svg"),r&&r.c(),t=D("path"),f(t,"fill","#fff"),f(t,"fill-rule","evenodd"),f(t,"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"),f(t,"clip-rule","evenodd"),we(e,a)},m(s,u){S(s,e,u),r&&r.m(e,null),p(e,t),n=!0},p(s,[u]){r&&r.p&&(!n||u&2)&&Ve(r,o,s,s[1],n?Me(o,s[1],u,null):Re(s[1]),null),we(e,a=Oe(l,[{xmlns:"http://www.w3.org/2000/svg"},{width:"24"},{height:"24"},{fill:"none"},{"aria-hidden":"true"},{"data-testid":"report-icon"},{role:"img"},u&1&&s[0]]))},i(s){n||(d(r,s),n=!0)},o(s){_(r,s),n=!1},d(s){s&&k(e),r&&r.d(s)}}}function Pg(i,e,t){let{$$slots:n={},$$scope:o}=e;return i.$$set=r=>{t(0,e=ue(ue({},e),ye(r))),"$$scope"in r&&t(1,o=r.$$scope)},e=ye(e),[e,o,n]}var Ta=class extends W{constructor(e){super(),G(this,e,Pg,Tg,K,{})}},Zd=Ta;function Ig(i){let e,t,n,o=i[2].default,r=Le(o,i,i[1],null),l=[{xmlns:"http://www.w3.org/2000/svg"},{width:"16"},{height:"16"},{"aria-hidden":"true"},{"data-testid":"check-mark-icon"},{role:"img"},i[0]],a={};for(let s=0;s<l.length;s+=1)a=ue(a,l[s]);return{c(){e=D("svg"),r&&r.c(),t=D("path"),f(t,"fill","#fff"),f(t,"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"),we(e,a)},m(s,u){S(s,e,u),r&&r.m(e,null),p(e,t),n=!0},p(s,[u]){r&&r.p&&(!n||u&2)&&Ve(r,o,s,s[1],n?Me(o,s[1],u,null):Re(s[1]),null),we(e,a=Oe(l,[{xmlns:"http://www.w3.org/2000/svg"},{width:"16"},{height:"16"},{"aria-hidden":"true"},{"data-testid":"check-mark-icon"},{role:"img"},u&1&&s[0]]))},i(s){n||(d(r,s),n=!0)},o(s){_(r,s),n=!1},d(s){s&&k(e),r&&r.d(s)}}}function Eg(i,e,t){let{$$slots:n={},$$scope:o}=e;return i.$$set=r=>{t(0,e=ue(ue({},e),ye(r))),"$$scope"in r&&t(1,o=r.$$scope)},e=ye(e),[e,o,n]}var Pa=class extends W{constructor(e){super(),G(this,e,Eg,Ig,K,{})}},Ko=Pa;function Ag(i){let e,t,n,o=i[2].default,r=Le(o,i,i[1],null),l=[{xmlns:"http://www.w3.org/2000/svg"},{width:"24"},{height:"24"},{fill:"none"},{"aria-hidden":"true"},{"data-testid":"copy-icon"},{role:"img"},i[0]],a={};for(let s=0;s<l.length;s+=1)a=ue(a,l[s]);return{c(){e=D("svg"),r&&r.c(),t=D("path"),f(t,"fill","#fff"),f(t,"fill-rule","evenodd"),f(t,"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"),f(t,"clip-rule","evenodd"),we(e,a)},m(s,u){S(s,e,u),r&&r.m(e,null),p(e,t),n=!0},p(s,[u]){r&&r.p&&(!n||u&2)&&Ve(r,o,s,s[1],n?Me(o,s[1],u,null):Re(s[1]),null),we(e,a=Oe(l,[{xmlns:"http://www.w3.org/2000/svg"},{width:"24"},{height:"24"},{fill:"none"},{"aria-hidden":"true"},{"data-testid":"copy-icon"},{role:"img"},u&1&&s[0]]))},i(s){n||(d(r,s),n=!0)},o(s){_(r,s),n=!1},d(s){s&&k(e),r&&r.d(s)}}}function Lg(i,e,t){let{$$slots:n={},$$scope:o}=e;return i.$$set=r=>{t(0,e=ue(ue({},e),ye(r))),"$$scope"in r&&t(1,o=r.$$scope)},e=ye(e),[e,o,n]}var Ia=class extends W{constructor(e){super(),G(this,e,Lg,Ag,K,{})}},Xd=Ia;function Mg(i){let e,t,n,o=i[2].default,r=Le(o,i,i[1],null),l=[{xmlns:"http://www.w3.org/2000/svg"},{width:"24"},{height:"24"},{fill:"none"},{"aria-hidden":"true"},{"data-testid":"info-icon"},{role:"img"},i[0]],a={};for(let s=0;s<l.length;s+=1)a=ue(a,l[s]);return{c(){e=D("svg"),r&&r.c(),t=D("path"),f(t,"fill","#fff"),f(t,"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"),we(e,a)},m(s,u){S(s,e,u),r&&r.m(e,null),p(e,t),n=!0},p(s,[u]){r&&r.p&&(!n||u&2)&&Ve(r,o,s,s[1],n?Me(o,s[1],u,null):Re(s[1]),null),we(e,a=Oe(l,[{xmlns:"http://www.w3.org/2000/svg"},{width:"24"},{height:"24"},{fill:"none"},{"aria-hidden":"true"},{"data-testid":"info-icon"},{role:"img"},u&1&&s[0]]))},i(s){n||(d(r,s),n=!0)},o(s){_(r,s),n=!1},d(s){s&&k(e),r&&r.d(s)}}}function Vg(i,e,t){let{$$slots:n={},$$scope:o}=e;return i.$$set=r=>{t(0,e=ue(ue({},e),ye(r))),"$$scope"in r&&t(1,o=r.$$scope)},e=ye(e),[e,o,n]}var Ea=class extends W{constructor(e){super(),G(this,e,Vg,Mg,K,{})}},Jd=Ea;function Bg(i){Ie(i,"svelte-1h807jq","ul.svelte-1h807jq.svelte-1h807jq{margin:0;padding:0}.menu.svelte-1h807jq.svelte-1h807jq{background-color:rgba(17, 17, 17, 0.8);border-radius:8px;line-height:40px;transition:opacity 0.2s, visibility 0.2s}.container-mobile.svelte-1h807jq.svelte-1h807jq{width:100%}.menu-desktop.svelte-1h807jq.svelte-1h807jq{position:absolute;right:0;bottom:0}.menu-mobile.svelte-1h807jq.svelte-1h807jq{width:100%;background:var(--mobile-settings-bg);font-size:15px;line-height:50px}.menu-mobile.hidden.svelte-1h807jq.svelte-1h807jq{display:none}.menu-subList.svelte-1h807jq.svelte-1h807jq{min-width:134px;padding-bottom:0}.menu-subList-subtitles.svelte-1h807jq.svelte-1h807jq{min-width:164px}.menu-subList-traffic-saving.svelte-1h807jq.svelte-1h807jq{min-width:286px}.item.svelte-1h807jq.svelte-1h807jq{align-items:center;color:var(--white);cursor:pointer;display:flex;justify-content:flex-end;padding:0 24px 0 18px;white-space:nowrap;position:relative}.item-mobile.svelte-1h807jq.svelte-1h807jq{padding:0 14px}.item-quality.item-mobile.svelte-1h807jq.svelte-1h807jq,.item-traffic-saving.item-mobile.svelte-1h807jq.svelte-1h807jq,.item-helper-text.item-mobile.svelte-1h807jq.svelte-1h807jq{flex-direction:row-reverse}.item-helper-text.svelte-1h807jq.svelte-1h807jq{cursor:auto;pointer-events:none;white-space:normal;padding:7px 24px 7px 18px}.item-helper-text.svelte-1h807jq span.svelte-1h807jq{color:rgba(255, 255, 255, 0.48);line-height:18px;text-align:end}.item-helper-text.item-mobile.svelte-1h807jq.svelte-1h807jq{padding:7px 14px}.item-helper-text.item-mobile.svelte-1h807jq span.svelte-1h807jq{text-align:start}.submenu-value.svelte-1h807jq.svelte-1h807jq{overflow:hidden;;;text-overflow:ellipsis}.submenu-value-mobile.svelte-1h807jq.svelte-1h807jq{flex-grow:1}.item.svelte-1h807jq.svelte-1h807jq:hover{background-color:rgba(255, 255, 255, 0.08)}.item.svelte-1h807jq.svelte-1h807jq:first-child{border-top-left-radius:8px;border-top-right-radius:8px}.item.svelte-1h807jq.svelte-1h807jq:last-child{border-bottom-left-radius:8px;border-bottom-right-radius:8px}.item-mobile.svelte-1h807jq.svelte-1h807jq:hover{background:var(--mobile-settings-bg)}.menu-subList.svelte-1h807jq .item.svelte-1h807jq{color:rgba(255, 255, 255, 0.9)}.menu-subList.svelte-1h807jq .item.svelte-1h807jq:last-child{margin-bottom:4px}.menu-icon-wrapper.svelte-1h807jq.svelte-1h807jq{width:24px;min-width:24px;height:24px;display:flex;align-items:center;justify-content:center;margin-right:16px}.menu-title.svelte-1h807jq.svelte-1h807jq{flex-grow:1;margin-right:24px;overflow:hidden;text-overflow:ellipsis}.menu-value.svelte-1h807jq.svelte-1h807jq{position:relative;opacity:0.7;overflow:hidden;text-overflow:ellipsis}.menu-valueIcon.svelte-1h807jq.svelte-1h807jq{position:absolute;top:-10px;right:-18px;width:15px}.menu-valueIcon-list.svelte-1h807jq.svelte-1h807jq{position:absolute;top:-7px;width:15px;right:6px}.menu-valueIcon.svelte-1h807jq svg,.menu-valueIcon-list.svelte-1h807jq svg{color:var(--blue-light)}.menu-divider.svelte-1h807jq.svelte-1h807jq{background-color:rgba(255, 255, 255, 0.3);height:1px;margin-bottom:4px}.menu-header.svelte-1h807jq.svelte-1h807jq{color:var(--white);cursor:pointer;justify-content:space-between;column-gap:12px;display:flex}.itemIcon.svelte-1h807jq.svelte-1h807jq{margin-right:auto;padding-right:12px;opacity:0.9;position:relative;top:3px}.items.svelte-1h807jq.svelte-1h807jq::-webkit-scrollbar{width:8px}.items.svelte-1h807jq.svelte-1h807jq::-webkit-scrollbar-track{box-shadow:none;background-color:#3a3a3a;border-radius:4px}.items.svelte-1h807jq.svelte-1h807jq::-webkit-scrollbar-thumb{min-height:40px;border-radius:5px;background-color:#666;border:1px solid transparent;background-clip:padding-box}.items.svelte-1h807jq.svelte-1h807jq::-webkit-scrollbar-thumb:hover{background-color:#777}.items-mobile.svelte-1h807jq.svelte-1h807jq{overflow-y:auto;max-height:160px;text-align:left}.close.svelte-1h807jq.svelte-1h807jq{position:relative;width:12px;height:12px;padding:12px;margin-right:-12px}.close.svelte-1h807jq.svelte-1h807jq:before,.close.svelte-1h807jq.svelte-1h807jq:after{position:absolute;left:18px;content:' ';height:12px;width:2px;background-color:var(--white)}.close.svelte-1h807jq.svelte-1h807jq:before{transform:rotate(45deg)}.close.svelte-1h807jq.svelte-1h807jq:after{transform:rotate(-45deg)}")}function xd(i,e,t){let n=i.slice();return n[163]=e[t],n}function $d(i,e,t){let n=i.slice();return n[166]=e[t],n}function e1(i,e,t){let n=i.slice();return n[169]=e[t],n}function t1(i,e,t){let n=i.slice();return n[172]=e[t],n}function i1(i){let e,t,n,o,r,l,a,s,u,c,m,h,w,b=i[40]&&n1(i),C=i[30]&&o1(i),v=i[29]&&r1(i),I=i[28]&&s1(i),y=i[27]&&a1(i),g=i[26]&&u1(i),P=i[25]&&f1(i),B=i[40]&&c1(i);return{c(){e=T("div"),b&&b.c(),t=R(),n=T("ul"),C&&C.c(),o=R(),v&&v.c(),r=R(),I&&I.c(),l=R(),y&&y.c(),a=R(),g&&g.c(),s=R(),P&&P.c(),u=R(),B&&B.c(),f(n,"class","items svelte-1h807jq"),f(n,"role","menu"),f(n,"style",c=i[84]()),N(n,"items-mobile",i[40]),f(e,"class","menu svelte-1h807jq"),N(e,"menu-desktop",!i[40]),N(e,"menu-mobile",i[40]),N(e,"hidden",!i[13])},m(M,q){S(M,e,q),b&&b.m(e,null),p(e,t),p(e,n),C&&C.m(n,null),p(n,o),v&&v.m(n,null),p(n,r),I&&I.m(n,null),p(n,l),y&&y.m(n,null),p(n,a),g&&g.m(n,null),p(n,s),P&&P.m(n,null),p(n,u),B&&B.m(n,null),i[129](n),m=!0,h||(w=[he(e,"keydown",i[90]),he(e,"mouseenter",i[82]),he(e,"mouseleave",i[83])],h=!0)},p(M,q){M[40]?b?b.p(M,q):(b=n1(M),b.c(),b.m(e,t)):b&&(b.d(1),b=null),M[30]?C?(C.p(M,q),q[0]&1073741824&&d(C,1)):(C=o1(M),C.c(),d(C,1),C.m(n,o)):C&&(ce(),_(C,1,1,()=>{C=null}),de()),M[29]?v?(v.p(M,q),q[0]&536870912&&d(v,1)):(v=r1(M),v.c(),d(v,1),v.m(n,r)):v&&(ce(),_(v,1,1,()=>{v=null}),de()),M[28]?I?(I.p(M,q),q[0]&268435456&&d(I,1)):(I=s1(M),I.c(),d(I,1),I.m(n,l)):I&&(ce(),_(I,1,1,()=>{I=null}),de()),M[27]?y?(y.p(M,q),q[0]&134217728&&d(y,1)):(y=a1(M),y.c(),d(y,1),y.m(n,a)):y&&(ce(),_(y,1,1,()=>{y=null}),de()),M[26]?g?(g.p(M,q),q[0]&67108864&&d(g,1)):(g=u1(M),g.c(),d(g,1),g.m(n,s)):g&&(ce(),_(g,1,1,()=>{g=null}),de()),M[25]?P?(P.p(M,q),q[0]&33554432&&d(P,1)):(P=f1(M),P.c(),d(P,1),P.m(n,u)):P&&(ce(),_(P,1,1,()=>{P=null}),de()),M[40]?B?(B.p(M,q),q[1]&512&&d(B,1)):(B=c1(M),B.c(),d(B,1),B.m(n,null)):B&&(ce(),_(B,1,1,()=>{B=null}),de()),(!m||q[1]&512)&&N(n,"items-mobile",M[40]),(!m||q[1]&512)&&N(e,"menu-desktop",!M[40]),(!m||q[1]&512)&&N(e,"menu-mobile",M[40]),(!m||q[0]&8192)&&N(e,"hidden",!M[13])},i(M){m||(d(C),d(v),d(I),d(y),d(g),d(P),d(B),m=!0)},o(M){_(C),_(v),_(I),_(y),_(g),_(P),_(B),m=!1},d(M){M&&k(e),b&&b.d(),C&&C.d(),v&&v.d(),I&&I.d(),y&&y.d(),g&&g.d(),P&&P.d(),B&&B.d(),i[129](null),h=!1,lt(w)}}}function n1(i){let e,t,n,o,r,l,a,s;return{c(){e=T("div"),t=T("div"),t.textContent=`${U("submenu_settings")}`,n=R(),o=T("div"),r=R(),l=T("div"),f(o,"class","close svelte-1h807jq"),f(e,"class","item menu-header svelte-1h807jq"),N(e,"item-mobile",i[40]),f(l,"class","menu-divider svelte-1h807jq")},m(u,c){S(u,e,c),p(e,t),p(e,n),p(e,o),S(u,r,c),S(u,l,c),a||(s=he(o,"click",at(i[66])),a=!0)},p(u,c){c[1]&512&&N(e,"item-mobile",u[40])},d(u){u&&(k(e),k(r),k(l)),a=!1,s()}}}function o1(i){let e,t,n,o,r,l,a,s,u,c,m,h,w;n=new Ir({});let b=i[39]&&!i[40]&&l1(i);return{c(){e=T("li"),t=T("div"),V(n.$$.fragment),o=R(),r=T("div"),r.textContent=`${U("menu_quality")}`,l=R(),a=T("div"),s=qe(i[19]),u=R(),b&&b.c(),f(t,"class","menu-icon-wrapper svelte-1h807jq"),f(r,"class","menu-title svelte-1h807jq"),f(a,"class","menu-value svelte-1h807jq"),f(e,"class","item svelte-1h807jq"),f(e,"role","menuitem"),f(e,"tabindex","0"),f(e,"aria-label",c=U("aria_label_menu_quality",{actual:i[32]})),f(e,"aria-haspopup","true"),N(e,"item-mobile",i[40])},m(C,v){S(C,e,v),p(e,t),A(n,t,null),p(e,o),p(e,r),p(e,l),p(e,a),p(a,s),p(a,u),b&&b.m(a,null),i[124](e),m=!0,h||(w=[he(e,"click",at(i[67])),he(e,"keydown",i[91])],h=!0)},p(C,v){(!m||v[0]&524288)&&Ye(s,C[19]),C[39]&&!C[40]?b?(b.p(C,v),v[1]&768&&d(b,1)):(b=l1(C),b.c(),d(b,1),b.m(a,null)):b&&(ce(),_(b,1,1,()=>{b=null}),de()),(!m||v[1]&2&&c!==(c=U("aria_label_menu_quality",{actual:C[32]})))&&f(e,"aria-label",c),(!m||v[1]&512)&&N(e,"item-mobile",C[40])},i(C){m||(d(n.$$.fragment,C),d(b),m=!0)},o(C){_(n.$$.fragment,C),_(b),m=!1},d(C){C&&k(e),L(n),b&&b.d(),i[124](null),h=!1,lt(w)}}}function l1(i){let e,t,n;var o=i[39];function r(l,a){return{}}return o&&(t=In(o,r(i))),{c(){e=T("div"),t&&V(t.$$.fragment),f(e,"class","menu-valueIcon svelte-1h807jq")},m(l,a){S(l,e,a),t&&A(t,e,null),n=!0},p(l,a){if(a[1]&256&&o!==(o=l[39])){if(t){ce();let s=t;_(s.$$.fragment,1,0,()=>{L(s,1)}),de()}o?(t=In(o,r(l,a)),V(t.$$.fragment),d(t.$$.fragment,1),A(t,e,null)):t=null}},i(l){n||(t&&d(t.$$.fragment,l),n=!0)},o(l){t&&_(t.$$.fragment,l),n=!1},d(l){l&&k(e),t&&L(t)}}}function r1(i){let e,t,n,o,r,l,a,s=ao(i[41],i[9])+"",u,c,m,h,w;return n=new Gd({}),{c(){e=T("li"),t=T("div"),V(n.$$.fragment),o=R(),r=T("div"),r.textContent=`${U("menu_audio_languages")}`,l=R(),a=T("div"),u=qe(s),f(t,"class","menu-icon-wrapper svelte-1h807jq"),f(r,"class","menu-title svelte-1h807jq"),f(a,"class","menu-value svelte-1h807jq"),f(e,"class","item svelte-1h807jq"),f(e,"role","menuitem"),f(e,"tabindex","0"),f(e,"aria-label",c=U("aria_label_menu_audio_languages",{actual:ao(i[41],i[9])})),f(e,"aria-haspopup","true"),N(e,"item-mobile",i[40])},m(b,C){S(b,e,C),p(e,t),A(n,t,null),p(e,o),p(e,r),p(e,l),p(e,a),p(a,u),i[125](e),m=!0,h||(w=[he(e,"click",at(i[68])),he(e,"keydown",i[92])],h=!0)},p(b,C){(!m||C[0]&512|C[1]&1024)&&s!==(s=ao(b[41],b[9])+"")&&Ye(u,s),(!m||C[0]&512|C[1]&1024&&c!==(c=U("aria_label_menu_audio_languages",{actual:ao(b[41],b[9])})))&&f(e,"aria-label",c),(!m||C[1]&512)&&N(e,"item-mobile",b[40])},i(b){m||(d(n.$$.fragment,b),m=!0)},o(b){_(n.$$.fragment,b),m=!1},d(b){b&&k(e),L(n),i[125](null),h=!1,lt(w)}}}function s1(i){let e,t,n,o,r,l,a,s,u,c,m,h,w;return n=new Wd({}),{c(){e=T("li"),t=T("div"),V(n.$$.fragment),o=R(),r=T("div"),r.textContent=`${U("menu_playback_rate")}`,l=R(),a=T("div"),s=qe(i[11]),u=qe("x"),f(t,"class","menu-icon-wrapper svelte-1h807jq"),f(r,"class","menu-title svelte-1h807jq"),f(a,"class","menu-value svelte-1h807jq"),f(e,"class","item svelte-1h807jq"),f(e,"role","menuitem"),f(e,"tabindex","0"),f(e,"aria-label",c=U("aria_label_menu_rate",{actual:i[33]})),f(e,"aria-haspopup","true"),N(e,"item-mobile",i[40])},m(b,C){S(b,e,C),p(e,t),A(n,t,null),p(e,o),p(e,r),p(e,l),p(e,a),p(a,s),p(a,u),i[126](e),m=!0,h||(w=[he(e,"click",at(qt(i[73]))),he(e,"keydown",i[97])],h=!0)},p(b,C){(!m||C[0]&2048)&&Ye(s,b[11]),(!m||C[1]&4&&c!==(c=U("aria_label_menu_rate",{actual:b[33]})))&&f(e,"aria-label",c),(!m||C[1]&512)&&N(e,"item-mobile",b[40])},i(b){m||(d(n.$$.fragment,b),m=!0)},o(b){_(n.$$.fragment,b),m=!1},d(b){b&&k(e),L(n),i[126](null),h=!1,lt(w)}}}function a1(i){let e,t,n,o,r,l,a,s=i[42].displayValue+"",u,c,m,h,w;return n=new Er({}),{c(){e=T("li"),t=T("div"),V(n.$$.fragment),o=R(),r=T("div"),r.textContent=`${U("subtitles_caption")}`,l=R(),a=T("div"),u=qe(s),f(t,"class","menu-icon-wrapper svelte-1h807jq"),f(r,"class","menu-title svelte-1h807jq"),f(a,"class","menu-value svelte-1h807jq"),f(e,"class","item svelte-1h807jq"),f(e,"role","menuitem"),f(e,"tabindex","0"),f(e,"aria-label",c=U("aria_label_menu_subtitle",{actual:i[42].displayValue})),f(e,"aria-haspopup","true"),N(e,"item-mobile",i[40])},m(b,C){S(b,e,C),p(e,t),A(n,t,null),p(e,o),p(e,r),p(e,l),p(e,a),p(a,u),i[127](e),m=!0,h||(w=[he(e,"click",at(i[75])),he(e,"keydown",i[100])],h=!0)},p(b,C){(!m||C[1]&2048)&&s!==(s=b[42].displayValue+"")&&Ye(u,s),(!m||C[1]&2048&&c!==(c=U("aria_label_menu_subtitle",{actual:b[42].displayValue})))&&f(e,"aria-label",c),(!m||C[1]&512)&&N(e,"item-mobile",b[40])},i(b){m||(d(n.$$.fragment,b),m=!0)},o(b){_(n.$$.fragment,b),m=!1},d(b){b&&k(e),L(n),i[127](null),h=!1,lt(w)}}}function u1(i){let e,t,n,o,r,l,a,s,u,c,m,h;return n=new jd({}),{c(){e=T("li"),t=T("div"),V(n.$$.fragment),o=R(),r=T("div"),r.textContent=`${U("menu_traffic_saving")}`,l=R(),a=T("div"),s=qe(i[31]),f(t,"class","menu-icon-wrapper svelte-1h807jq"),f(r,"class","menu-title svelte-1h807jq"),f(a,"class","menu-value svelte-1h807jq"),f(e,"class","item svelte-1h807jq"),f(e,"role","menuitem"),f(e,"tabindex","0"),f(e,"aria-label",u=U("aria_label_menu_traffic_saving",{actual:i[31]})),f(e,"aria-haspopup","true"),N(e,"item-mobile",i[40])},m(w,b){S(w,e,b),p(e,t),A(n,t,null),p(e,o),p(e,r),p(e,l),p(e,a),p(a,s),i[128](e),c=!0,m||(h=[he(e,"click",at(i[69])),he(e,"keydown",i[103])],m=!0)},p(w,b){(!c||b[1]&1)&&Ye(s,w[31]),(!c||b[1]&1&&u!==(u=U("aria_label_menu_traffic_saving",{actual:w[31]})))&&f(e,"aria-label",u),(!c||b[1]&512)&&N(e,"item-mobile",w[40])},i(w){c||(d(n.$$.fragment,w),c=!0)},o(w){_(n.$$.fragment,w),c=!1},d(w){w&&k(e),L(n),i[128](null),m=!1,lt(h)}}}function f1(i){let e,t,n,o,r,l,a,s,u;return n=new Kd({}),{c(){e=T("li"),t=T("div"),V(n.$$.fragment),o=R(),r=T("div"),r.textContent=`${U("download_video_caption")}`,f(t,"class","menu-icon-wrapper svelte-1h807jq"),f(r,"class","menu-title svelte-1h807jq"),f(e,"class","item svelte-1h807jq"),f(e,"role","menuitem"),f(e,"tabindex","0"),f(e,"aria-label",l=U("aria_label_menu_download")),N(e,"item-mobile",i[40])},m(c,m){S(c,e,m),p(e,t),A(n,t,null),p(e,o),p(e,r),a=!0,s||(u=[he(e,"click",at(i[78])),he(e,"keydown",i[106])],s=!0)},p(c,m){(!a||m[1]&512)&&N(e,"item-mobile",c[40])},i(c){a||(d(n.$$.fragment,c),a=!0)},o(c){_(n.$$.fragment,c),a=!1},d(c){c&&k(e),L(n),s=!1,lt(u)}}}function c1(i){let e,t,n,o,r,l,a,s,u,c,m,h,w,b,C,v,I,y=i[44].showSupport&&Dg(i);return o=new Xd({}),m=new Jd({}),{c(){y&&y.c(),e=R(),t=T("li"),n=T("div"),V(o.$$.fragment),r=R(),l=T("div"),l.textContent=`${U("menu_copy_debug")}`,s=R(),u=T("li"),c=T("div"),V(m.$$.fragment),h=R(),w=T("div"),w.textContent=`${U("menu_debug_overlay")}`,f(n,"class","menu-icon-wrapper svelte-1h807jq"),f(l,"class","menu-title svelte-1h807jq"),f(t,"class","item item-mobile svelte-1h807jq"),f(t,"role","menuitem"),f(t,"tabindex","0"),f(t,"aria-label",a=U("menu_copy_debug")),f(c,"class","menu-icon-wrapper svelte-1h807jq"),f(w,"class","menu-title svelte-1h807jq"),f(u,"class","item item-mobile svelte-1h807jq"),f(u,"role","menuitem"),f(u,"tabindex","0"),f(u,"aria-label",b=i[43]?U("aria_label_menu_debug_overlay_disable"):U("aria_label_menu_debug_overlay_enable"))},m(g,P){y&&y.m(g,P),S(g,e,P),S(g,t,P),p(t,n),A(o,n,null),p(t,r),p(t,l),S(g,s,P),S(g,u,P),p(u,c),A(m,c,null),p(u,h),p(u,w),C=!0,v||(I=[he(t,"click",at(i[80])),he(t,"keydown",i[108]),he(u,"click",at(i[81])),he(u,"keydown",i[109])],v=!0)},p(g,P){g[44].showSupport&&y.p(g,P),(!C||P[1]&4096&&b!==(b=g[43]?U("aria_label_menu_debug_overlay_disable"):U("aria_label_menu_debug_overlay_enable")))&&f(u,"aria-label",b)},i(g){C||(d(y),d(o.$$.fragment,g),d(m.$$.fragment,g),C=!0)},o(g){_(y),_(o.$$.fragment,g),_(m.$$.fragment,g),C=!1},d(g){g&&(k(e),k(t),k(s),k(u)),y&&y.d(g),L(o),L(m),v=!1,lt(I)}}}function Dg(i){let e,t,n,o,r,l,a,s,u;return n=new Zd({}),{c(){e=T("li"),t=T("div"),V(n.$$.fragment),o=R(),r=T("div"),r.textContent=`${U("menu_report")}`,f(t,"class","menu-icon-wrapper svelte-1h807jq"),f(r,"class","menu-title svelte-1h807jq"),f(e,"class","item item-mobile svelte-1h807jq"),f(e,"role","menuitem"),f(e,"tabindex","0"),f(e,"aria-label",l=`${U("menu_report")}. ${U("aria_label_new_tab_alert")}`)},m(c,m){S(c,e,m),p(e,t),A(n,t,null),p(e,o),p(e,r),a=!0,s||(u=[he(e,"click",at(i[79])),he(e,"keydown",i[107])],s=!0)},p:Se,i(c){a||(d(n.$$.fragment,c),a=!0)},o(c){_(n.$$.fragment,c),a=!1},d(c){c&&k(e),L(n),s=!1,lt(u)}}}function d1(i){let e,t,n,o,r,l,a,s,u,c,m,h,w,b;n=new Qn({props:{direction:"left"}});let C=It(i[10]),v=[];for(let y=0;y<C.length;y+=1)v[y]=_1(t1(i,C,y));let I=y=>_(v[y],1,1,()=>{v[y]=null});return{c(){var y;e=T("div"),t=T("div"),V(n.$$.fragment),o=R(),r=T("div"),r.textContent=`${U("submenu_quality")}`,a=R(),s=T("div"),u=R(),c=T("ul");for(let g=0;g<v.length;g+=1)v[g].c();f(t,"class","item menu-header svelte-1h807jq"),f(t,"aria-label",l=U("aria_label_submenu_back")),N(t,"item-mobile",i[40]),f(s,"class","menu-divider svelte-1h807jq"),f(c,"class","items svelte-1h807jq"),f(c,"role","menu"),f(c,"style",m=i[84]((y=i[20])==null?void 0:y.clientHeight,!0)),N(c,"items-mobile",i[40]),f(e,"class","menu menu-subList svelte-1h807jq"),N(e,"menu-desktop",!i[40]),N(e,"menu-mobile",i[40])},m(y,g){S(y,e,g),p(e,t),A(n,t,null),p(t,o),p(t,r),i[130](t),p(e,a),p(e,s),p(e,u),p(e,c);for(let P=0;P<v.length;P+=1)v[P]&&v[P].m(c,null);i[133](c),h=!0,w||(b=[he(t,"click",at(i[77])),he(c,"keydown",i[93])],w=!0)},p(y,g){var P;if((!h||g[1]&512)&&N(t,"item-mobile",y[40]),g[0]&1024|g[1]&512|g[2]&256|g[3]&2){C=It(y[10]);let B;for(B=0;B<C.length;B+=1){let M=t1(y,C,B);v[B]?(v[B].p(M,g),d(v[B],1)):(v[B]=_1(M),v[B].c(),d(v[B],1),v[B].m(c,null))}for(ce(),B=C.length;B<v.length;B+=1)I(B);de()}(!h||g[0]&1048576&&m!==(m=y[84]((P=y[20])==null?void 0:P.clientHeight,!0)))&&f(c,"style",m),(!h||g[1]&512)&&N(c,"items-mobile",y[40]),(!h||g[1]&512)&&N(e,"menu-desktop",!y[40]),(!h||g[1]&512)&&N(e,"menu-mobile",y[40])},i(y){if(!h){d(n.$$.fragment,y);for(let g=0;g<C.length;g+=1)d(v[g]);h=!0}},o(y){_(n.$$.fragment,y),v=v.filter(Boolean);for(let g=0;g<v.length;g+=1)_(v[g]);h=!1},d(y){y&&k(e),L(n),i[130](null),Ri(v,y),i[133](null),w=!1,lt(b)}}}function m1(i){let e,t,n;return t=new Ko({}),{c(){e=T("div"),V(t.$$.fragment),f(e,"class","itemIcon svelte-1h807jq")},m(o,r){S(o,e,r),A(t,e,null),n=!0},i(o){n||(d(t.$$.fragment,o),n=!0)},o(o){_(t.$$.fragment,o),n=!1},d(o){o&&k(e),L(t)}}}function p1(i){let e,t,n;var o=go(i[172].value);function r(l,a){return{}}return o&&(t=In(o,r(i))),{c(){e=T("div"),t&&V(t.$$.fragment),f(e,"class","menu-valueIcon-list svelte-1h807jq")},m(l,a){S(l,e,a),t&&A(t,e,null),n=!0},p(l,a){if(a[0]&1024&&o!==(o=go(l[172].value))){if(t){ce();let s=t;_(s.$$.fragment,1,0,()=>{L(s,1)}),de()}o?(t=In(o,r(l,a)),V(t.$$.fragment),d(t.$$.fragment,1),A(t,e,null)):t=null}},i(l){n||(t&&d(t.$$.fragment,l),n=!0)},o(l){t&&_(t.$$.fragment,l),n=!1},d(l){l&&k(e),t&&L(t)}}}function _1(i){let e,t,n,o=i[172].displayValue+"",r,l,a=!i[40]&&go(i[172].value),s,u,c,m,h,w,b=i[172].selected&&m1(i),C=a&&p1(i);function v(){return i[131](i[172])}function I(...y){return i[132](i[172],...y)}return{c(){e=T("li"),b&&b.c(),t=R(),n=T("div"),r=qe(o),l=R(),C&&C.c(),s=R(),f(n,"class","submenu-value svelte-1h807jq"),N(n,"submenu-value-mobile",i[40]),f(e,"class","item item-quality svelte-1h807jq"),f(e,"data-value",u=i[172].value),f(e,"role","menuitem"),f(e,"tabindex","0"),f(e,"aria-label",c=i[172].displayValue),N(e,"item-mobile",i[40])},m(y,g){S(y,e,g),b&&b.m(e,null),p(e,t),p(e,n),p(n,r),p(e,l),C&&C.m(e,null),p(e,s),m=!0,h||(w=[he(e,"click",at(v)),he(e,"keydown",I)],h=!0)},p(y,g){i=y,i[172].selected?b?g[0]&1024&&d(b,1):(b=m1(i),b.c(),d(b,1),b.m(e,t)):b&&(ce(),_(b,1,1,()=>{b=null}),de()),(!m||g[0]&1024)&&o!==(o=i[172].displayValue+"")&&Ye(r,o),(!m||g[1]&512)&&N(n,"submenu-value-mobile",i[40]),g[0]&1024|g[1]&512&&(a=!i[40]&&go(i[172].value)),a?C?(C.p(i,g),g[0]&1024|g[1]&512&&d(C,1)):(C=p1(i),C.c(),d(C,1),C.m(e,s)):C&&(ce(),_(C,1,1,()=>{C=null}),de()),(!m||g[0]&1024&&u!==(u=i[172].value))&&f(e,"data-value",u),(!m||g[0]&1024&&c!==(c=i[172].displayValue))&&f(e,"aria-label",c),(!m||g[1]&512)&&N(e,"item-mobile",i[40])},i(y){m||(d(b),d(C),m=!0)},o(y){_(b),_(C),m=!1},d(y){y&&k(e),b&&b.d(),C&&C.d(),h=!1,lt(w)}}}function h1(i){let e,t,n,o,r,l,a,s,u,c,m,h,w,b;n=new Qn({props:{direction:"left"}});let C=It(i[9]),v=[];for(let y=0;y<C.length;y+=1)v[y]=b1(e1(i,C,y));let I=y=>_(v[y],1,1,()=>{v[y]=null});return{c(){var y;e=T("div"),t=T("div"),V(n.$$.fragment),o=R(),r=T("div"),r.textContent=`${U("submenu_audio_languages")}`,a=R(),s=T("div"),u=R(),c=T("ul");for(let g=0;g<v.length;g+=1)v[g].c();f(t,"class","item menu-header svelte-1h807jq"),f(t,"aria-label",l=U("aria_label_submenu_back")),N(t,"item-mobile",i[40]),f(s,"class","menu-divider svelte-1h807jq"),f(c,"class","items svelte-1h807jq"),f(c,"role","menu"),f(c,"style",m=i[84]((y=i[21])==null?void 0:y.clientHeight,!0)),N(c,"items-mobile",i[40]),f(e,"class","menu menu-subList svelte-1h807jq"),N(e,"menu-desktop",!i[40]),N(e,"menu-mobile",i[40])},m(y,g){S(y,e,g),p(e,t),A(n,t,null),p(t,o),p(t,r),i[134](t),p(e,a),p(e,s),p(e,u),p(e,c);for(let P=0;P<v.length;P+=1)v[P]&&v[P].m(c,null);i[137](c),h=!0,w||(b=[he(t,"click",at(i[77])),he(c,"keydown",i[95])],w=!0)},p(y,g){var P;if((!h||g[1]&512)&&N(t,"item-mobile",y[40]),g[0]&512|g[1]&1536|g[2]&512|g[3]&8){C=It(y[9]);let B;for(B=0;B<C.length;B+=1){let M=e1(y,C,B);v[B]?(v[B].p(M,g),d(v[B],1)):(v[B]=b1(M),v[B].c(),d(v[B],1),v[B].m(c,null))}for(ce(),B=C.length;B<v.length;B+=1)I(B);de()}(!h||g[0]&2097152&&m!==(m=y[84]((P=y[21])==null?void 0:P.clientHeight,!0)))&&f(c,"style",m),(!h||g[1]&512)&&N(c,"items-mobile",y[40]),(!h||g[1]&512)&&N(e,"menu-desktop",!y[40]),(!h||g[1]&512)&&N(e,"menu-mobile",y[40])},i(y){if(!h){d(n.$$.fragment,y);for(let g=0;g<C.length;g+=1)d(v[g]);h=!0}},o(y){_(n.$$.fragment,y),v=v.filter(Boolean);for(let g=0;g<v.length;g+=1)_(v[g]);h=!1},d(y){y&&k(e),L(n),i[134](null),Ri(v,y),i[137](null),w=!1,lt(b)}}}function g1(i){let e,t,n;return t=new Ko({}),{c(){e=T("div"),V(t.$$.fragment),f(e,"class","itemIcon svelte-1h807jq")},m(o,r){S(o,e,r),A(t,e,null),n=!0},i(o){n||(d(t.$$.fragment,o),n=!0)},o(o){_(t.$$.fragment,o),n=!1},d(o){o&&k(e),L(t)}}}function b1(i){var C;let e,t,n,o=ao(i[169],i[9])+"",r,l,a,s,u,c,m,h=i[169].id===((C=i[41])==null?void 0:C.id)&&g1(i);function w(){return i[135](i[169])}function b(...v){return i[136](i[169],...v)}return{c(){e=T("li"),h&&h.c(),t=R(),n=T("div"),r=qe(o),l=R(),f(n,"class","submenu-value svelte-1h807jq"),N(n,"submenu-value-mobile",i[40]),f(e,"class","item item-quality svelte-1h807jq"),f(e,"data-value",a=i[169].id),f(e,"role","menuitem"),f(e,"tabindex","0"),f(e,"aria-label",s=ao(i[169],i[9])),N(e,"item-mobile",i[40])},m(v,I){S(v,e,I),h&&h.m(e,null),p(e,t),p(e,n),p(n,r),p(e,l),u=!0,c||(m=[he(e,"click",at(w)),he(e,"keydown",b)],c=!0)},p(v,I){var y;i=v,i[169].id===((y=i[41])==null?void 0:y.id)?h?I[0]&512|I[1]&1024&&d(h,1):(h=g1(i),h.c(),d(h,1),h.m(e,t)):h&&(ce(),_(h,1,1,()=>{h=null}),de()),(!u||I[0]&512)&&o!==(o=ao(i[169],i[9])+"")&&Ye(r,o),(!u||I[1]&512)&&N(n,"submenu-value-mobile",i[40]),(!u||I[0]&512&&a!==(a=i[169].id))&&f(e,"data-value",a),(!u||I[0]&512&&s!==(s=ao(i[169],i[9])))&&f(e,"aria-label",s),(!u||I[1]&512)&&N(e,"item-mobile",i[40])},i(v){u||(d(h),u=!0)},o(v){_(h),u=!1},d(v){v&&k(e),h&&h.d(),c=!1,lt(m)}}}function v1(i){let e,t,n,o,r,l,a,s,u,c,m,h,w,b;n=new Qn({props:{direction:"left"}});let C=It(i[8]),v=[];for(let y=0;y<C.length;y+=1)v[y]=w1($d(i,C,y));let I=y=>_(v[y],1,1,()=>{v[y]=null});return{c(){var y;e=T("div"),t=T("div"),V(n.$$.fragment),o=R(),r=T("div"),r.textContent=`${U("submenu_playback_rate")}`,a=R(),s=T("div"),u=R(),c=T("ul");for(let g=0;g<v.length;g+=1)v[g].c();f(t,"class","item menu-header svelte-1h807jq"),f(t,"aria-label",l=U("aria_label_submenu_back")),N(t,"item-mobile",i[40]),f(s,"class","menu-divider svelte-1h807jq"),f(c,"class","items svelte-1h807jq"),f(c,"role","menu"),f(c,"style",m=i[84]((y=i[22])==null?void 0:y.clientHeight,!0)),N(c,"items-mobile",i[40]),f(e,"class","menu menu-subList svelte-1h807jq"),N(e,"menu-desktop",!i[40]),N(e,"menu-mobile",i[40])},m(y,g){S(y,e,g),p(e,t),A(n,t,null),p(t,o),p(t,r),i[138](t),p(e,a),p(e,s),p(e,u),p(e,c);for(let P=0;P<v.length;P+=1)v[P]&&v[P].m(c,null);i[141](c),h=!0,w||(b=[he(t,"click",at(i[77])),he(c,"keydown",i[98])],w=!0)},p(y,g){var P;if((!h||g[1]&512)&&N(t,"item-mobile",y[40]),g[0]&256|g[1]&512|g[2]&4096|g[3]&64){C=It(y[8]);let B;for(B=0;B<C.length;B+=1){let M=$d(y,C,B);v[B]?(v[B].p(M,g),d(v[B],1)):(v[B]=w1(M),v[B].c(),d(v[B],1),v[B].m(c,null))}for(ce(),B=C.length;B<v.length;B+=1)I(B);de()}(!h||g[0]&4194304&&m!==(m=y[84]((P=y[22])==null?void 0:P.clientHeight,!0)))&&f(c,"style",m),(!h||g[1]&512)&&N(c,"items-mobile",y[40]),(!h||g[1]&512)&&N(e,"menu-desktop",!y[40]),(!h||g[1]&512)&&N(e,"menu-mobile",y[40])},i(y){if(!h){d(n.$$.fragment,y);for(let g=0;g<C.length;g+=1)d(v[g]);h=!0}},o(y){_(n.$$.fragment,y),v=v.filter(Boolean);for(let g=0;g<v.length;g+=1)_(v[g]);h=!1},d(y){y&&k(e),L(n),i[138](null),Ri(v,y),i[141](null),w=!1,lt(b)}}}function y1(i){let e,t,n;return t=new Ko({}),{c(){e=T("div"),V(t.$$.fragment),f(e,"class","itemIcon svelte-1h807jq")},m(o,r){S(o,e,r),A(t,e,null),n=!0},i(o){n||(d(t.$$.fragment,o),n=!0)},o(o){_(t.$$.fragment,o),n=!1},d(o){o&&k(e),L(t)}}}function w1(i){let e,t,n,o=i[166].displayValue+"",r,l,a,s,u,c,m,h=i[166].selected&&y1(i);function w(){return i[139](i[166])}function b(...C){return i[140](i[166],...C)}return{c(){e=T("li"),h&&h.c(),t=R(),n=T("div"),r=qe(o),l=R(),f(n,"class","submenu-value svelte-1h807jq"),N(n,"submenu-value-mobile",i[40]),f(e,"class","item item-quality svelte-1h807jq"),f(e,"data-value",a=i[166].value),f(e,"role","menuitem"),f(e,"tabindex","0"),f(e,"aria-label",s=i[166].displayValue),N(e,"item-mobile",i[40])},m(C,v){S(C,e,v),h&&h.m(e,null),p(e,t),p(e,n),p(n,r),p(e,l),u=!0,c||(m=[he(e,"click",at(w)),he(e,"keydown",b)],c=!0)},p(C,v){i=C,i[166].selected?h?v[0]&256&&d(h,1):(h=y1(i),h.c(),d(h,1),h.m(e,t)):h&&(ce(),_(h,1,1,()=>{h=null}),de()),(!u||v[0]&256)&&o!==(o=i[166].displayValue+"")&&Ye(r,o),(!u||v[1]&512)&&N(n,"submenu-value-mobile",i[40]),(!u||v[0]&256&&a!==(a=i[166].value))&&f(e,"data-value",a),(!u||v[0]&256&&s!==(s=i[166].displayValue))&&f(e,"aria-label",s),(!u||v[1]&512)&&N(e,"item-mobile",i[40])},i(C){u||(d(h),u=!0)},o(C){_(h),u=!1},d(C){C&&k(e),h&&h.d(),c=!1,lt(m)}}}function k1(i){let e,t,n,o,r,l,a,s,u,c,m,h,w,b,C,v,I,y,g,P,B,M,q,te,pe,Z,x,oe,H;n=new Qn({props:{direction:"left"}});let j=!i[6]&&C1(i),J=i[6]&&S1(i);return{c(){var F;e=T("div"),t=T("div"),V(n.$$.fragment),o=R(),r=T("div"),r.textContent=`${U("submenu_traffic_saving")}`,a=R(),s=T("div"),u=R(),c=T("div"),m=T("ul"),h=T("li"),j&&j.c(),w=R(),b=T("div"),b.textContent=`${U("traffic_saving_disable")}`,v=R(),I=T("li"),J&&J.c(),y=R(),g=T("div"),g.textContent=`${U("traffic_saving_enable")}`,B=R(),M=T("div"),q=R(),te=T("div"),pe=T("span"),pe.textContent=`${U("traffic_saving_helper_text")}`,f(t,"class","item menu-header svelte-1h807jq"),f(t,"aria-label",l=U("aria_label_submenu_back")),N(t,"item-mobile",i[40]),f(s,"class","menu-divider svelte-1h807jq"),f(b,"class","submenu-value svelte-1h807jq"),N(b,"submenu-value-mobile",i[40]),f(h,"class","item item-traffic-saving svelte-1h807jq"),f(h,"role","menuitem"),f(h,"tabindex","0"),f(h,"aria-label",C=U("aria_label_submenu_traffic_saving_off")),N(h,"item-mobile",i[40]),f(g,"class","submenu-value svelte-1h807jq"),N(g,"submenu-value-mobile",i[40]),f(I,"class","item item-traffic-saving svelte-1h807jq"),f(I,"role","menuitem"),f(I,"tabindex","0"),f(I,"aria-label",P=`${U("aria_label_submenu_traffic_saving_on")}. ${U("traffic_saving_helper_text")}`),N(I,"item-mobile",i[40]),f(m,"class","items svelte-1h807jq"),f(m,"role","menu"),N(m,"items-mobile",i[40]),f(M,"class","menu-divider svelte-1h807jq"),f(pe,"class","svelte-1h807jq"),f(te,"class","item item-helper-text svelte-1h807jq"),N(te,"item-mobile",i[40]),f(c,"style",Z=i[84]((F=i[23])==null?void 0:F.clientHeight,!0)),f(e,"class","menu menu-subList menu-subList-traffic-saving svelte-1h807jq"),N(e,"menu-desktop",!i[40]),N(e,"menu-mobile",i[40])},m(F,O){S(F,e,O),p(e,t),A(n,t,null),p(t,o),p(t,r),i[142](t),p(e,a),p(e,s),p(e,u),p(e,c),p(c,m),p(m,h),j&&j.m(h,null),p(h,w),p(h,b),p(m,v),p(m,I),J&&J.m(I,null),p(I,y),p(I,g),i[147](m),p(c,B),p(c,M),p(c,q),p(c,te),p(te,pe),x=!0,oe||(H=[he(t,"click",at(i[77])),he(h,"click",at(i[143])),he(h,"keydown",i[144]),he(I,"click",at(i[145])),he(I,"keydown",i[146]),he(m,"keydown",i[104])],oe=!0)},p(F,O){var Q;(!x||O[1]&512)&&N(t,"item-mobile",F[40]),F[6]?j&&(ce(),_(j,1,1,()=>{j=null}),de()):j?O[0]&64&&d(j,1):(j=C1(F),j.c(),d(j,1),j.m(h,w)),(!x||O[1]&512)&&N(b,"submenu-value-mobile",F[40]),(!x||O[1]&512)&&N(h,"item-mobile",F[40]),F[6]?J?O[0]&64&&d(J,1):(J=S1(F),J.c(),d(J,1),J.m(I,y)):J&&(ce(),_(J,1,1,()=>{J=null}),de()),(!x||O[1]&512)&&N(g,"submenu-value-mobile",F[40]),(!x||O[1]&512)&&N(I,"item-mobile",F[40]),(!x||O[1]&512)&&N(m,"items-mobile",F[40]),(!x||O[1]&512)&&N(te,"item-mobile",F[40]),(!x||O[0]&8388608&&Z!==(Z=F[84]((Q=F[23])==null?void 0:Q.clientHeight,!0)))&&f(c,"style",Z),(!x||O[1]&512)&&N(e,"menu-desktop",!F[40]),(!x||O[1]&512)&&N(e,"menu-mobile",F[40])},i(F){x||(d(n.$$.fragment,F),d(j),d(J),x=!0)},o(F){_(n.$$.fragment,F),_(j),_(J),x=!1},d(F){F&&k(e),L(n),i[142](null),j&&j.d(),J&&J.d(),i[147](null),oe=!1,lt(H)}}}function C1(i){let e,t,n;return t=new Ko({}),{c(){e=T("div"),V(t.$$.fragment),f(e,"class","itemIcon svelte-1h807jq")},m(o,r){S(o,e,r),A(t,e,null),n=!0},i(o){n||(d(t.$$.fragment,o),n=!0)},o(o){_(t.$$.fragment,o),n=!1},d(o){o&&k(e),L(t)}}}function S1(i){let e,t,n;return t=new Ko({}),{c(){e=T("div"),V(t.$$.fragment),f(e,"class","itemIcon svelte-1h807jq")},m(o,r){S(o,e,r),A(t,e,null),n=!0},i(o){n||(d(t.$$.fragment,o),n=!0)},o(o){_(t.$$.fragment,o),n=!1},d(o){o&&k(e),L(t)}}}function T1(i){let e,t,n,o,r,l,a,s,u,c,m,h;n=new Qn({props:{direction:"left"}});let w=It(i[7]),b=[];for(let v=0;v<w.length;v+=1)b[v]=I1(xd(i,w,v));let C=v=>_(b[v],1,1,()=>{b[v]=null});return{c(){var v;e=T("div"),t=T("div"),V(n.$$.fragment),o=R(),r=T("div"),r.textContent=`${U("subtitles_caption")}`,a=R(),s=T("ul");for(let I=0;I<b.length;I+=1)b[I].c();f(t,"class","item menu-header svelte-1h807jq"),f(t,"aria-label",l=U("aria_label_submenu_back")),N(t,"item-mobile",i[40]),f(s,"class","items svelte-1h807jq"),f(s,"role","menu"),f(s,"style",u=i[84]((v=i[24])==null?void 0:v.clientHeight,!0)),N(s,"items-mobile",i[40]),f(e,"class","menu menu-subList menu-subList-subtitles svelte-1h807jq"),N(e,"menu-desktop",!i[40]),N(e,"menu-mobile",i[40])},m(v,I){S(v,e,I),p(e,t),A(n,t,null),p(t,o),p(t,r),i[148](t),p(e,a),p(e,s);for(let y=0;y<b.length;y+=1)b[y]&&b[y].m(s,null);i[151](s),c=!0,m||(h=[he(t,"click",at(i[77])),he(s,"keydown",i[101])],m=!0)},p(v,I){var y;if((!c||I[1]&512)&&N(t,"item-mobile",v[40]),I[0]&128|I[1]&512|I[2]&16384|I[3]&512){w=It(v[7]);let g;for(g=0;g<w.length;g+=1){let P=xd(v,w,g);b[g]?(b[g].p(P,I),d(b[g],1)):(b[g]=I1(P),b[g].c(),d(b[g],1),b[g].m(s,null))}for(ce(),g=w.length;g<b.length;g+=1)C(g);de()}(!c||I[0]&16777216&&u!==(u=v[84]((y=v[24])==null?void 0:y.clientHeight,!0)))&&f(s,"style",u),(!c||I[1]&512)&&N(s,"items-mobile",v[40]),(!c||I[1]&512)&&N(e,"menu-desktop",!v[40]),(!c||I[1]&512)&&N(e,"menu-mobile",v[40])},i(v){if(!c){d(n.$$.fragment,v);for(let I=0;I<w.length;I+=1)d(b[I]);c=!0}},o(v){_(n.$$.fragment,v),b=b.filter(Boolean);for(let I=0;I<b.length;I+=1)_(b[I]);c=!1},d(v){v&&k(e),L(n),i[148](null),Ri(b,v),i[151](null),m=!1,lt(h)}}}function P1(i){let e,t,n;return t=new Ko({}),{c(){e=T("div"),V(t.$$.fragment),f(e,"class","itemIcon svelte-1h807jq")},m(o,r){S(o,e,r),A(t,e,null),n=!0},i(o){n||(d(t.$$.fragment,o),n=!0)},o(o){_(t.$$.fragment,o),n=!1},d(o){o&&k(e),L(t)}}}function I1(i){let e,t,n,o=i[163].displayValue+"",r,l,a,s,u,c,m,h=i[163].selected&&P1(i);function w(){return i[149](i[163])}function b(...C){return i[150](i[163],...C)}return{c(){e=T("li"),h&&h.c(),t=R(),n=T("div"),r=qe(o),l=R(),f(n,"class","submenu-value svelte-1h807jq"),N(n,"submenu-value-mobile",i[40]),f(e,"class","item item-quality svelte-1h807jq"),f(e,"data-value",a=i[163].value),f(e,"role","menuitem"),f(e,"tabindex","0"),f(e,"aria-label",s=i[163].displayValue),N(e,"item-mobile",i[40])},m(C,v){S(C,e,v),h&&h.m(e,null),p(e,t),p(e,n),p(n,r),p(e,l),u=!0,c||(m=[he(e,"click",at(w)),he(e,"keydown",b)],c=!0)},p(C,v){i=C,i[163].selected?h?v[0]&128&&d(h,1):(h=P1(i),h.c(),d(h,1),h.m(e,t)):h&&(ce(),_(h,1,1,()=>{h=null}),de()),(!u||v[0]&128)&&o!==(o=i[163].displayValue+"")&&Ye(r,o),(!u||v[1]&512)&&N(n,"submenu-value-mobile",i[40]),(!u||v[0]&128&&a!==(a=i[163].value))&&f(e,"data-value",a),(!u||v[0]&128&&s!==(s=i[163].displayValue))&&f(e,"aria-label",s),(!u||v[1]&512)&&N(e,"item-mobile",i[40])},i(C){u||(d(h),u=!0)},o(C){_(h),u=!1},d(C){C&&k(e),h&&h.d(),c=!1,lt(m)}}}function Ng(i){let e,t,n,o,r,l,a,s=i[12]&&i1(i),u=i[14]&&d1(i),c=i[15]&&h1(i),m=i[16]&&v1(i),h=i[18]&&k1(i),w=i[17]&&T1(i);return{c(){e=T("div"),s&&s.c(),t=R(),u&&u.c(),n=R(),c&&c.c(),o=R(),m&&m.c(),r=R(),h&&h.c(),l=R(),w&&w.c(),f(e,"class","svelte-1h807jq"),N(e,"hidden",!i[12]),N(e,"container-mobile",i[40])},m(b,C){S(b,e,C),s&&s.m(e,null),p(e,t),u&&u.m(e,null),p(e,n),c&&c.m(e,null),p(e,o),m&&m.m(e,null),p(e,r),h&&h.m(e,null),p(e,l),w&&w.m(e,null),a=!0},p(b,C){b[12]?s?(s.p(b,C),C[0]&4096&&d(s,1)):(s=i1(b),s.c(),d(s,1),s.m(e,t)):s&&(ce(),_(s,1,1,()=>{s=null}),de()),b[14]?u?(u.p(b,C),C[0]&16384&&d(u,1)):(u=d1(b),u.c(),d(u,1),u.m(e,n)):u&&(ce(),_(u,1,1,()=>{u=null}),de()),b[15]?c?(c.p(b,C),C[0]&32768&&d(c,1)):(c=h1(b),c.c(),d(c,1),c.m(e,o)):c&&(ce(),_(c,1,1,()=>{c=null}),de()),b[16]?m?(m.p(b,C),C[0]&65536&&d(m,1)):(m=v1(b),m.c(),d(m,1),m.m(e,r)):m&&(ce(),_(m,1,1,()=>{m=null}),de()),b[18]?h?(h.p(b,C),C[0]&262144&&d(h,1)):(h=k1(b),h.c(),d(h,1),h.m(e,l)):h&&(ce(),_(h,1,1,()=>{h=null}),de()),b[17]?w?(w.p(b,C),C[0]&131072&&d(w,1)):(w=T1(b),w.c(),d(w,1),w.m(e,null)):w&&(ce(),_(w,1,1,()=>{w=null}),de()),(!a||C[0]&4096)&&N(e,"hidden",!b[12]),(!a||C[1]&512)&&N(e,"container-mobile",b[40])},i(b){a||(d(s),d(u),d(c),d(m),d(h),d(w),a=!0)},o(b){_(s),_(u),_(c),_(m),_(h),_(w),a=!1},d(b){b&&k(e),s&&s.d(),u&&u.d(),c&&c.d(),m&&m.d(),h&&h.d(),w&&w.d()}}}var qg=18;function Og(i,e,t){let n,o,r,l,a,s,u,c,m,h,w,b,C,v,I,y,g,P,B,M,q,te,pe,Z,x,oe,H,{ref:j=void 0}=e,{supportLink:J}=e,{playerControlsHeight:F=0}=e,{returnFocus:O}=e,Q=st(),X=Gt(),le=Q.state.audioStream$;z(i,le,ie=>t(41,b=ie));let De=Q.state.availableAudioStreams$;z(i,De,ie=>t(9,C=ie));let $e=Q.state.currentQuality$;z(i,$e,ie=>t(118,y=ie));let Ee=Q.state.availableQualities$;z(i,Ee,ie=>t(10,v=ie));let Be=Q.state.autoQualityLimitingAvailable$;z(i,Be,ie=>t(122,M=ie));let Ne=Q.state.isAutoQualityEnabled$;z(i,Ne,ie=>t(119,g=ie));let Je=Q.state.currentPlaybackRate$;z(i,Je,ie=>t(11,I=ie));let se=Q.state.availablePlaybackRates$;z(i,se,ie=>t(8,m=ie));let _e=Q.state.currentSubtitle$;z(i,_e,ie=>t(42,oe=ie));let ut=Q.state.availableSubtitlesList$;z(i,ut,ie=>t(7,u=ie));let Ce=Q.state.canDownload,Ke=Q.state.hasMpegSources$;z(i,Ke,ie=>t(123,q=ie));let ht=Q.ui.settingsMenuVisible;z(i,ht,ie=>t(12,x=ie));let Ze=Q.ui.settingsMenuOpenedByKeyboard;z(i,Ze,ie=>t(153,o=ie));let Ge=Q.ui.isMobile;z(i,Ge,ie=>t(40,r=ie));let xe=Q.ui.mobileNotReportControlHidden$;z(i,xe,ie=>t(120,P=ie));let tt=Q.state.canChangePlaybackSpeed$;z(i,tt,ie=>t(121,B=ie));let fe=Q.ui.isFullscreen;z(i,fe,ie=>t(156,Z=ie));let Pe=Q.state.trafficSavingEnabled$;z(i,Pe,ie=>t(6,a=ie));let je=Q.ui.playerSize;z(i,je,ie=>t(155,pe=ie));let ae=Q.ui.debugPanelVisible;z(i,ae,ie=>t(43,H=ie));let Te=Q.ui.playerSize;z(i,Te,ie=>t(154,te=ie));let pt=Q.state.isInteractiveTime$,Ae=Q.actions.internal.downloadVideo,mt=Q.actions.internal.closeSettingsMenu,me=!0,it=!1,kt=!1,vt=!1,Ue=!1,Ut=!1,Rt=!1;function Et(){o||O==null||O(),mt(),Rt=!1}function ei(){t(13,me=!1),t(14,it=!0)}function Bt(){t(13,me=!1),t(15,kt=!0)}function Kt(){t(13,me=!1),t(18,Ut=!0)}function ve(ie){Q.actions.internal.setQuality(ie),Et()}function Qe(ie){Q.actions.internal.setAudioStream(ie),Et()}function _t(ie){Q.actions.internal.setTrafficSavingEnabled(ie),Et()}function ft(){t(13,me=!1),t(16,vt=!0)}function Xe(ie){Q.actions.internal.setPlaybackRate(ie),Et()}function At(){t(13,me=!1),t(17,Ue=!0)}function di(ie){Q.actions.internal.setSubtitle(ie),Et()}function Mt(){t(13,me=!0),t(14,it=!1),t(15,kt=!1),t(16,vt=!1),t(17,Ue=!1),t(18,Ut=!1)}function Qi(){Ae(),Et()}function sn(){window.open(J,"_blank"),Et(),Q.actions.internal.pause()}function ti(){al(Q.actions.internal.getDebugTextData()),Et()}function Di(){ae.set(!0),Et()}function hn(){Rt=!0}function Yi(){Rt=!1}function an(ie,gt,Ft){if(!ie)return"...";let Mn=gt.find(Zn=>Zn.value===ie),Tn=Mn?Mn.displayValue:ie;return Ft?ie===Rg.INVARIANT?U("auto_quality_invariant"):U("auto_quality",{actual:Tn}):Tn}let Ci,Si,mi,pi,Ti,Pi;function ri(ie=0,gt=!1){return r&&Z&>?`max-height: ${Math.round(pe.height*.6)}px`:r?"":`max-height: ${te.height-qg-ie-F}px; overflow: auto;`}let jt,Zi,Zt,Ii,Ni,Xi,Ct,ii,Ji,Pt,_i,xi,qi,xt=Fe(!1);z(i,xt,ie=>t(117,w=ie));let si=Fe(!1);z(i,si,ie=>t(116,h=ie));let Oi,ni,Ei=Fe(!1);z(i,Ei,ie=>t(115,c=ie));let zt,Fi,Ai=Fe(!1);z(i,Ai,ie=>t(114,s=ie));let ai,oi,li=Fe(!1);z(i,li,ie=>t(113,l=ie));let un=ie=>{gr(ie,mt)},fn=ie=>ct(this,null,function*(){ml(ie,ei,()=>{let gt=v.findIndex(Ft=>Ft.selected);return xi.childNodes[gt]})}),cn=ie=>ct(this,null,function*(){ml(ie,Bt,()=>{let gt=C.findIndex(Ft=>Ft.id===(b==null?void 0:b.id));return qi.childNodes[gt]})}),Li=ie=>ct(this,null,function*(){pl(ie,Mt,xt,mt)}),ui=(ie,gt)=>{ci(ie,()=>ve(gt))},hi=ie=>ct(this,null,function*(){pl(ie,Mt,si,mt)}),gi=(ie,gt)=>{ci(ie,()=>Qe(gt))},Dt=ie=>ct(this,null,function*(){ml(ie,ft,()=>{let gt=m.findIndex(Ft=>Ft.selected);return ni.childNodes[gt]})}),bi=ie=>ct(this,null,function*(){pl(ie,Mt,Ei,mt)}),vi=(ie,gt)=>{ci(ie,()=>Xe(gt))},Hi=ie=>ct(this,null,function*(){ml(ie,At,()=>{let gt=u.findIndex(Ft=>Ft.selected);return Fi.childNodes[gt]})}),dn=ie=>ct(this,null,function*(){pl(ie,Mt,Ai,mt)}),yi=(ie,gt)=>{ci(ie,()=>di(gt))},nt=ie=>ct(this,null,function*(){ml(ie,Kt,()=>{let gt=a?2:0;return oi.childNodes[gt]})}),wi=ie=>ct(this,null,function*(){pl(ie,Mt,li,mt)}),fi=(ie,gt)=>{ci(ie,()=>_t(gt))},We=ie=>{ci(ie,()=>Qi())},mn=ie=>{ci(ie,()=>sn())},gn=ie=>{ci(ie,()=>ti())},zi=ie=>{ci(ie,()=>Di())};Ot(()=>{let ie=pt.subscribe(gt=>{gt&&!r&&!Rt&&!o&&Et()});return()=>{ie()}});function Ui(ie){ge[ie?"unshift":"push"](()=>{Pt=ie,t(1,Pt)})}function wn(ie){ge[ie?"unshift":"push"](()=>{_i=ie,t(2,_i)})}function $i(ie){ge[ie?"unshift":"push"](()=>{Oi=ie,t(3,Oi)})}function $t(ie){ge[ie?"unshift":"push"](()=>{zt=ie,t(4,zt)})}function kn(ie){ge[ie?"unshift":"push"](()=>{ai=ie,t(5,ai)})}function Mi(ie){ge[ie?"unshift":"push"](()=>{j=ie,t(0,j)})}function Ki(ie){ge[ie?"unshift":"push"](()=>{Si=ie,t(20,Si)})}let bn=ie=>ve(ie.value),Cn=(ie,gt)=>ui(gt,ie.value);function Sn(ie){ge[ie?"unshift":"push"](()=>{xi=ie,t(34,xi)})}function en(ie){ge[ie?"unshift":"push"](()=>{mi=ie,t(21,mi)})}let vn=ie=>Qe(ie),tn=(ie,gt)=>gi(gt,ie);function Qt(ie){ge[ie?"unshift":"push"](()=>{qi=ie,t(35,qi)})}function Dn(ie){ge[ie?"unshift":"push"](()=>{pi=ie,t(22,pi)})}let ji=ie=>Xe(ie.value),An=(ie,gt)=>vi(gt,ie.value);function Wt(ie){ge[ie?"unshift":"push"](()=>{ni=ie,t(36,ni)})}function Nn(ie){ge[ie?"unshift":"push"](()=>{Ti=ie,t(23,Ti)})}let qn=()=>_t(!1),Ln=ie=>fi(ie,!1),On=()=>_t(!0),yn=ie=>fi(ie,!0);function nn(ie){ge[ie?"unshift":"push"](()=>{oi=ie,t(38,oi)})}function on(ie){ge[ie?"unshift":"push"](()=>{Pi=ie,t(24,Pi)})}let re=ie=>di(ie),wt=(ie,gt)=>yi(gt,ie);function ln(ie){ge[ie?"unshift":"push"](()=>{Fi=ie,t(37,Fi)})}return i.$$set=ie=>{"ref"in ie&&t(0,j=ie.ref),"supportLink"in ie&&t(110,J=ie.supportLink),"playerControlsHeight"in ie&&t(111,F=ie.playerControlsHeight),"returnFocus"in ie&&t(112,O=ie.returnFocus)},i.$$.update=()=>{var ie;i.$$.dirty[0]&4096&&x&&(t(13,me=!0),t(14,it=!1),t(15,kt=!1),t(16,vt=!1),t(17,Ue=!1),t(18,Ut=!1)),i.$$.dirty[3]&33554432&&t(39,n=go(y)),i.$$.dirty[0]&1024|i.$$.dirty[3]&100663296&&t(19,Ci=an(y,v,g)),i.$$.dirty[3]&1207959552&&t(25,jt=Ce&&q&&!P),i.$$.dirty[3]&671088640&&t(26,Zi=X.features.trafficSaving&&!P&&M),i.$$.dirty[0]&128|i.$$.dirty[3]&134217728&&t(27,Zt=u.length>0&&!P),i.$$.dirty[3]&402653184&&t(28,Ii=!!B&&!P),i.$$.dirty[0]&512|i.$$.dirty[3]&134217728&&t(29,Ni=X.features.audioLanguages&&C.length>=2&&!P),i.$$.dirty[3]&134217728&&t(30,Xi=!P),i.$$.dirty[0]&64&&t(31,Ct=a?U("traffic_saving_on"):U("traffic_saving_off")),i.$$.dirty[3]&100663296&&t(32,ii=g?U("auto_quality_option"):y),i.$$.dirty[0]&2304&&t(33,Ji=(ie=m.find(gt=>gt.value===I))==null?void 0:ie.displayValue),i.$$.dirty[0]&2|i.$$.dirty[3]&16777216&&dl(Pt,xt,w),i.$$.dirty[0]&4|i.$$.dirty[3]&8388608&&dl(_i,si,h),i.$$.dirty[0]&8|i.$$.dirty[3]&4194304&&dl(Oi,Ei,c),i.$$.dirty[0]&16|i.$$.dirty[3]&2097152&&dl(zt,Ai,s),i.$$.dirty[0]&32|i.$$.dirty[3]&1048576&&dl(ai,li,l)},[j,Pt,_i,Oi,zt,ai,a,u,m,C,v,I,x,me,it,kt,vt,Ue,Ut,Ci,Si,mi,pi,Ti,Pi,jt,Zi,Zt,Ii,Ni,Xi,Ct,ii,Ji,xi,qi,ni,Fi,oi,n,r,b,oe,H,X,le,De,$e,Ee,Be,Ne,Je,se,_e,ut,Ke,ht,Ze,Ge,xe,tt,fe,Pe,je,ae,Te,Et,ei,Bt,Kt,ve,Qe,_t,ft,Xe,At,di,Mt,Qi,sn,ti,Di,hn,Yi,ri,xt,si,Ei,Ai,li,un,fn,cn,Li,ui,hi,gi,Dt,bi,vi,Hi,dn,yi,nt,wi,fi,We,mn,gn,zi,J,F,O,l,s,c,h,w,y,g,P,B,M,q,Ui,wn,$i,$t,kn,Mi,Ki,bn,Cn,Sn,en,vn,tn,Qt,Dn,ji,An,Wt,Nn,qn,Ln,On,yn,nn,on,re,wt,ln]}var Aa=class extends W{constructor(e){super(),G(this,e,Og,Ng,K,{ref:0,supportLink:110,playerControlsHeight:111,returnFocus:112},Bg,[-1,-1,-1,-1,-1,-1])}},Ar=Aa;function Fg(i){Ie(i,"svelte-d9t49t",".settings-icon-wrapper.svelte-d9t49t{position:relative;width:24px}")}function Hg(i){let e,t,n;return t=new Ir({props:{isMobile:i[3],currentQuality:i[4]}}),{c(){e=T("span"),V(t.$$.fragment),f(e,"class","settings-icon-wrapper svelte-d9t49t")},m(o,r){S(o,e,r),A(t,e,null),n=!0},p(o,r){let l={};r&8&&(l.isMobile=o[3]),r&16&&(l.currentQuality=o[4]),t.$set(l)},i(o){n||(d(t.$$.fragment,o),n=!0)},o(o){_(t.$$.fragment,o),n=!1},d(o){o&&k(e),L(t)}}}function zg(i){let e,t,n;function o(l){i[9](l)}let r={className:i[1]?"opened":"",testId:"btn-settings",click:i[8],ariaLabel:i[2],ariaExpanded:i[1],$$slots:{default:[Hg]},$$scope:{ctx:i}};return i[0]!==void 0&&(r.ref=i[0]),e=new yt({props:r}),ge.push(()=>ze(e,"ref",o)),{c(){V(e.$$.fragment)},m(l,a){A(e,l,a),n=!0},p(l,[a]){let s={};a&2&&(s.className=l[1]?"opened":""),a&4&&(s.ariaLabel=l[2]),a&2&&(s.ariaExpanded=l[1]),a&4120&&(s.$$scope={dirty:a,ctx:l}),!t&&a&1&&(t=!0,s.ref=l[0],He(()=>t=!1)),e.$set(s)},i(l){n||(d(e.$$.fragment,l),n=!0)},o(l){_(e.$$.fragment,l),n=!1},d(l){L(e,l)}}}function Ug(i,e,t){let n,o,r,{ref:l=void 0}=e,a=st(),s=a.state.currentQuality$;z(i,s,C=>t(4,r=C));let u=a.ui.settingsMenuVisible;z(i,u,C=>t(1,n=C));let c=a.actions.internal.toggleSettingsMenu,m=a.ui.isMobile;z(i,m,C=>t(3,o=C));let h;function w(C){let v=fl(C);c(v)}function b(C){l=C,t(0,l)}return i.$$set=C=>{"ref"in C&&t(0,l=C.ref)},i.$$.update=()=>{i.$$.dirty&2&&t(2,h=n?U("tooltip_settings_on"):U("tooltip_settings_off"))},[l,n,h,o,r,s,u,m,w,b]}var La=class extends W{constructor(e){super(),G(this,e,Ug,zg,K,{ref:0},Fg)}},Rl=La;function Kg(i){let e,t,n,o=i[2].default,r=Le(o,i,i[1],null),l=[{xmlns:"http://www.w3.org/2000/svg"},{width:"22"},{height:"16"},{fill:"none"},{"aria-hidden":"true"},{"data-testid":"subtitle-pained-icon"},{role:"img"},i[0]],a={};for(let s=0;s<l.length;s+=1)a=ue(a,l[s]);return{c(){e=D("svg"),r&&r.c(),t=D("path"),f(t,"fill","#fff"),f(t,"d","M3 0h14a3 3 0 0 1 3 3v10a3 3 0 0 1-3 3H3a3 3 0 0 1-3-3V3a3 3 0 0 1 3-3m1 9h2a1 1 0 0 0 0-2H4a1 1 0 0 0 0 2m5 0h7a1 1 0 1 0 0-2H9a1 1 0 0 0 0 2m-5 4h7a1 1 0 1 0 0-2H4a1 1 0 1 0 0 2m10 0h2a1 1 0 1 0 0-2h-2a1 1 0 1 0 0 2"),we(e,a)},m(s,u){S(s,e,u),r&&r.m(e,null),p(e,t),n=!0},p(s,[u]){r&&r.p&&(!n||u&2)&&Ve(r,o,s,s[1],n?Me(o,s[1],u,null):Re(s[1]),null),we(e,a=Oe(l,[{xmlns:"http://www.w3.org/2000/svg"},{width:"22"},{height:"16"},{fill:"none"},{"aria-hidden":"true"},{"data-testid":"subtitle-pained-icon"},{role:"img"},u&1&&s[0]]))},i(s){n||(d(r,s),n=!0)},o(s){_(r,s),n=!1},d(s){s&&k(e),r&&r.d(s)}}}function jg(i,e,t){let{$$slots:n={},$$scope:o}=e;return i.$$set=r=>{t(0,e=ue(ue({},e),ye(r))),"$$scope"in r&&t(1,o=r.$$scope)},e=ye(e),[e,o,n]}var Ma=class extends W{constructor(e){super(),G(this,e,jg,Kg,K,{})}},E1=Ma;function Wg(i){let e,t;return e=new Er({}),{c(){V(e.$$.fragment)},m(n,o){A(e,n,o),t=!0},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){_(e.$$.fragment,n),t=!1},d(n){L(e,n)}}}function Gg(i){let e,t;return e=new E1({}),{c(){V(e.$$.fragment)},m(n,o){A(e,n,o),t=!0},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){_(e.$$.fragment,n),t=!1},d(n){L(e,n)}}}function Qg(i){let e,t,n,o,r=[Gg,Wg],l=[];function a(s,u){return s[0]?0:1}return e=a(i,-1),t=l[e]=r[e](i),{c(){t.c(),n=dt()},m(s,u){l[e].m(s,u),S(s,n,u),o=!0},p(s,u){let c=e;e=a(s,u),e!==c&&(ce(),_(l[c],1,1,()=>{l[c]=null}),de(),t=l[e],t||(t=l[e]=r[e](s),t.c()),d(t,1),t.m(n.parentNode,n))},i(s){o||(d(t),o=!0)},o(s){_(t),o=!1},d(s){s&&k(n),l[e].d(s)}}}function Yg(i){let e,t;return e=new yt({props:{testId:"btn-Subtitles",ariaLabel:i[2],click:i[1],ariaKeyShortCut:Jn.KeyC,$$slots:{default:[Qg]},$$scope:{ctx:i}}}),{c(){V(e.$$.fragment)},m(n,o){A(e,n,o),t=!0},p(n,[o]){let r={};o&4&&(r.ariaLabel=n[2]),o&2&&(r.click=n[1]),o&9&&(r.$$scope={dirty:o,ctx:n}),e.$set(r)},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){_(e.$$.fragment,n),t=!1},d(n){L(e,n)}}}function Zg(i,e,t){let{isSubtitlesEnabled:n=!1}=e,{click:o}=e,r;return i.$$set=l=>{"isSubtitlesEnabled"in l&&t(0,n=l.isSubtitlesEnabled),"click"in l&&t(1,o=l.click)},i.$$.update=()=>{i.$$.dirty&1&&t(2,r=n?U("tooltip_subtitles_on"):U("tooltip_subtitles_off"))},[n,o,r]}var Va=class extends W{constructor(e){super(),G(this,e,Zg,Yg,K,{isSubtitlesEnabled:0,click:1})}},A1=Va;function Xg(i){Ie(i,"svelte-19o2urr",".time.svelte-19o2urr{display:flex;align-items:center;font-weight:500;font-variant-numeric:tabular-nums;padding:12px 6px}.time.mobile.svelte-19o2urr{padding:0 0 0 8px}.current.svelte-19o2urr{position:relative}.duration.svelte-19o2urr{opacity:0.7}.duration.svelte-19o2urr:before{content:' / ';white-space:pre}")}function L1(i){let e,t;return{c(){e=T("span"),t=qe(i[3]),f(e,"class","duration svelte-19o2urr")},m(n,o){S(n,e,o),p(e,t)},p(n,o){o&8&&Ye(t,n[3])},d(n){n&&k(e)}}}function Jg(i){let e,t,n,o,r=i[2]&&L1(i);return{c(){e=T("div"),t=T("span"),n=qe(i[4]),o=R(),r&&r.c(),f(t,"class","current svelte-19o2urr"),f(e,"class","time svelte-19o2urr"),N(e,"mobile",i[1])},m(l,a){S(l,e,a),p(e,t),p(t,n),p(e,o),r&&r.m(e,null),i[7](e)},p(l,[a]){a&16&&Ye(n,l[4]),l[2]?r?r.p(l,a):(r=L1(l),r.c(),r.m(e,null)):r&&(r.d(1),r=null),a&2&&N(e,"mobile",l[1])},i:Se,o:Se,d(l){l&&k(e),r&&r.d(),i[7](null)}}}function xg(i,e,t){let{isMobile:n=!1}=e,{duration:o}=e,{position:r}=e,{showDuration:l=!0}=e,{ref:a}=e,s,u;function c(m){ge[m?"unshift":"push"](()=>{a=m,t(0,a)})}return i.$$set=m=>{"isMobile"in m&&t(1,n=m.isMobile),"duration"in m&&t(5,o=m.duration),"position"in m&&t(6,r=m.position),"showDuration"in m&&t(2,l=m.showDuration),"ref"in m&&t(0,a=m.ref)},i.$$.update=()=>{i.$$.dirty&32&&t(3,s=Rn(o)),i.$$.dirty&64&&t(4,u=Rn(r))},[a,n,l,s,u,o,r,c]}var Ra=class extends W{constructor(e){super(),G(this,e,xg,Jg,K,{isMobile:1,duration:5,position:6,showDuration:2,ref:0},Xg)}},Lr=Ra;import{noop as bo}from"@vkontakte/videoplayer-shared";function $g(i){Ie(i,"svelte-1n5yyua",".icon.svelte-1n5yyua.svelte-1n5yyua{display:block;width:24px;height:24px}.icon.svelte-1n5yyua .cross.svelte-1n5yyua{visibility:hidden}.icon[data-value='off'].svelte-1n5yyua .wave1.svelte-1n5yyua,.icon[data-value='off'].svelte-1n5yyua .wave2.svelte-1n5yyua{visibility:hidden}.icon[data-value='off'].svelte-1n5yyua .cross.svelte-1n5yyua{visibility:visible}.icon[data-value='mid'].svelte-1n5yyua .wave2.svelte-1n5yyua,.icon[data-value='min'].svelte-1n5yyua .wave2.svelte-1n5yyua{visibility:hidden}")}function eb(i){let e,t,n,o,r,l;return{c(){e=D("svg"),t=D("g"),n=D("path"),o=D("path"),r=D("path"),f(n,"class","wave2 svelte-1n5yyua"),f(n,"d","M12.98 18.823c-.031 1.207-.67 1.609-1.828.62-1.719-1.469-3.609-3.194-4.242-3.721-.632-.529-1.645-.62-3.073-.62-1.427 0-1.815-.621-1.815-1.241s-.014-1.83-.014-2.001c0-.055.005-.086.014-.13.02-.095-.058-.973 0-1.59.085-.906.388-1.241 1.815-1.241 1.428 0 2.44-.092 3.073-.62.633-.529 2.523-2.253 4.242-3.722 1.158-.989 1.797-.587 1.829.62.043 1.607 0 3.85 0 6.683 0 2.83.043 5.356 0 6.963zm2.901-8.704A.875.875 0 1 1 17.12 8.88c.176.177.41.47.64.872.384.671.616 1.425.616 2.247s-.232 1.576-.615 2.247a4.23 4.23 0 0 1-.641.872.875.875 0 1 1-1.238-1.238c.074-.073.214-.249.36-.503.241-.423.384-.887.384-1.378s-.143-.955-.385-1.378a2.597 2.597 0 0 0-.359-.503zm3-2A.875.875 0 1 1 20.12 6.88c.263.264.62.74.966 1.432.517 1.033.843 2.255.89 3.716-.047 1.403-.373 2.625-.89 3.658-.346.692-.703 1.168-.966 1.432a.875.875 0 1 1-1.238-1.238c.138-.137.383-.464.639-.976.407-.814.667-1.79.705-2.876-.038-1.144-.298-2.12-.705-2.934-.256-.512-.501-.839-.639-.976z"),f(o,"class","wave1 svelte-1n5yyua"),f(o,"d","M12.98 18.823c-.031 1.207-.67 1.609-1.828.62-1.719-1.469-3.609-3.194-4.242-3.721-.632-.529-1.645-.62-3.073-.62-1.427 0-1.815-.621-1.815-1.241s-.014-1.83-.014-2.001c0-.055.005-.086.014-.13.02-.095-.058-.973 0-1.59.085-.906.388-1.241 1.815-1.241 1.428 0 2.44-.092 3.073-.62.633-.529 2.523-2.253 4.242-3.722 1.158-.989 1.797-.587 1.829.62.043 1.607 0 3.85 0 6.683 0 2.83.043 5.356 0 6.963zm2.901-8.704A.875.875 0 1 1 17.12 8.88c.176.177.41.47.64.872.384.671.616 1.425.616 2.247s-.232 1.576-.615 2.247a4.23 4.23 0 0 1-.641.872.875.875 0 1 1-1.238-1.238c.074-.073.214-.249.36-.503.241-.423.384-.887.384-1.378s-.143-.955-.385-1.378a2.597 2.597 0 0 0-.359-.503z"),f(r,"class","cross svelte-1n5yyua"),f(r,"d","m20 10.763 2.381-2.382A.875.875 0 1 1 23.62 9.62L21.237 12l2.382 2.381a.875.875 0 1 1-1.238 1.238L20 13.237l-2.381 2.382a.875.875 0 1 1-1.238-1.238L18.763 12 16.38 9.619A.875.875 0 1 1 17.62 8.38zm-7.02 8.06c-.031 1.207-.67 1.609-1.828.62-1.719-1.469-3.609-3.194-4.242-3.721-.632-.529-1.645-.62-3.073-.62-1.427 0-1.815-.621-1.815-1.241s-.014-1.83-.014-2.001c0-.055.005-.086.014-.13.02-.095-.058-.973 0-1.59.085-.906.388-1.241 1.815-1.241 1.428 0 2.44-.092 3.073-.62.633-.529 2.523-2.253 4.242-3.722 1.158-.989 1.797-.587 1.829.62.043 1.607 0 3.85 0 6.683 0 2.83.043 5.356 0 6.963z"),f(t,"fill","#fff"),f(t,"fill-rule","evenodd"),f(e,"data-value",i[0]),f(e,"data-testid",l="volume-"+i[0]+"-icon"),f(e,"xmlns","http://www.w3.org/2000/svg"),f(e,"class","icon svelte-1n5yyua"),f(e,"aria-hidden","true")},m(a,s){S(a,e,s),p(e,t),p(t,n),p(t,o),p(t,r)},p(a,[s]){s&1&&f(e,"data-value",a[0]),s&1&&l!==(l="volume-"+a[0]+"-icon")&&f(e,"data-testid",l)},i:Se,o:Se,d(a){a&&k(e)}}}function tb(i,e,t){let{volume:n=1}=e,{muted:o=!1}=e,r=(a,s)=>s?"off":a>.5?"max":a>.2?"mid":a>0?"min":"off",l;return i.$$set=a=>{"volume"in a&&t(1,n=a.volume),"muted"in a&&t(2,o=a.muted)},i.$$.update=()=>{i.$$.dirty&6&&t(0,l=r(n,o))},[l,n,o]}var Ba=class extends W{constructor(e){super(),G(this,e,tb,eb,K,{volume:1,muted:2},$g)}},jo=Ba;import{noop as Yn}from"@vkontakte/videoplayer-shared";import{noop as ub}from"@vkontakte/videoplayer-shared";import{noop as ob}from"@vkontakte/videoplayer-shared";function ib(i){let e,t,n=i[4].default,o=Le(n,i,i[3],null);return{c(){e=T("div"),o&&o.c(),f(e,"class","overlay")},m(r,l){S(r,e,l),o&&o.m(e,null),i[5](e),t=!0},p(r,[l]){o&&o.p&&(!t||l&8)&&Ve(o,n,r,r[3],t?Me(n,r[3],l,null):Re(r[3]),null)},i(r){t||(d(o,r),t=!0)},o(r){_(o,r),t=!1},d(r){r&&k(e),o&&o.d(r),i[5](null)}}}function nb(i,e,t){let n,{$$slots:o={},$$scope:r}=e,a=st().ui.overlayContainer$;z(i,a,h=>t(2,n=h));let s,u=h=>{!h||!s||!h.contains(s)||h.removeChild(s)},c=h=>{!h||!s||h.contains(s)||h.appendChild(s)};Ot(()=>(c(n),()=>u(n)));function m(h){ge[h?"unshift":"push"](()=>{s=h,t(0,s)})}return i.$$set=h=>{"$$scope"in h&&t(3,r=h.$$scope)},i.$$.update=()=>{i.$$.dirty&4&&c(n)},[s,a,n,r,o,m]}var Da=class extends W{constructor(e){super(),G(this,e,nb,ib,K,{})}},M1=Da;function lb(i){Ie(i,"svelte-tny135",'.tooltip-wrapper.svelte-tny135{display:flex;flex-direction:column;min-width:0}.full-width.svelte-tny135{width:100%}.tooltip.svelte-tny135{position:absolute;opacity:0;visibility:hidden;transition:opacity 200ms, visibility 200ms;bottom:100%;left:0}.content.svelte-tny135{display:inline-block;padding:6px 10px;border-radius:3px;color:var(--white);background-color:rgba(41, 41, 41, .8)}.tooltip.active.svelte-tny135{opacity:1;visibility:visible}.tooltip-pointer.svelte-tny135{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}.bottom-placement-pointer.svelte-tny135{top:0;bottom:auto}')}function V1(i){let e,t;return e=new M1({props:{$$slots:{default:[rb]},$$scope:{ctx:i}}}),{c(){V(e.$$.fragment)},m(n,o){A(e,n,o),t=!0},p(n,o){let r={};o&2097395&&(r.$$scope={dirty:o,ctx:n}),e.$set(r)},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){_(e.$$.fragment,n),t=!1},d(n){L(e,n)}}}function rb(i){let e,t,n,o,r,l,a;return{c(){e=T("div"),t=T("div"),n=qe(i[1]),o=R(),r=T("div"),f(t,"class","content svelte-tny135"),f(r,"class","tooltip-pointer svelte-tny135"),f(r,"style",l=`transform: translate(${i[5]}px, ${i[9]}px) rotate(${i[8]?0:"180deg"});`),N(r,"bottom-placement-pointer",!i[8]),f(e,"class","tooltip svelte-tny135"),f(e,"style",a=`transform: translate(${i[6]}px, ${i[7]}px);`),N(e,"active",i[0])},m(s,u){S(s,e,u),p(e,t),p(t,n),p(e,o),p(e,r),i[20](e)},p(s,u){u&2&&Ye(n,s[1]),u&32&&l!==(l=`transform: translate(${s[5]}px, ${s[9]}px) rotate(${s[8]?0:"180deg"});`)&&f(r,"style",l),u&192&&a!==(a=`transform: translate(${s[6]}px, ${s[7]}px);`)&&f(e,"style",a),u&1&&N(e,"active",s[0])},d(s){s&&k(e),i[20](null)}}}function sb(i){let e,t,n,o,r,l,a=i[18].default,s=Le(a,i,i[21],null),u=i[1]&&V1(i);return{c(){e=T("div"),s&&s.c(),t=R(),u&&u.c(),n=dt(),f(e,"class","tooltip-wrapper svelte-tny135"),N(e,"full-width",i[2])},m(c,m){S(c,e,m),s&&s.m(e,null),i[19](e),S(c,t,m),u&&u.m(c,m),S(c,n,m),o=!0,r||(l=[he(e,"mouseenter",i[12]),he(e,"mousemove",i[12]),he(e,"mouseleave",i[13]),he(e,"mousedown",i[13]),he(e,"mouseup",i[12])],r=!0)},p(c,[m]){s&&s.p&&(!o||m&2097152)&&Ve(s,a,c,c[21],o?Me(a,c[21],m,null):Re(c[21]),null),(!o||m&4)&&N(e,"full-width",c[2]),c[1]?u?(u.p(c,m),m&2&&d(u,1)):(u=V1(c),u.c(),d(u,1),u.m(n.parentNode,n)):u&&(ce(),_(u,1,1,()=>{u=null}),de())},i(c){o||(d(s,c),d(u),o=!0)},o(c){_(s,c),_(u),o=!1},d(c){c&&(k(e),k(t),k(n)),s&&s.d(c),i[19](null),u&&u.d(c),r=!1,lt(l)}}}var Bl=5;function ab(i,e,t){let n,o,{$$slots:r={},$$scope:l}=e,{content:a=""}=e,{active:s=!1}=e,{translateX:u=0}=e,{translateY:c=0}=e,{isFullWidthWrapper:m=!1}=e,{placement:h="top"}=e,{onVisibilityChange:w=ob}=e,b=h==="top",C,v,I,y=0,g=b?Bl:-Bl,P=0,B=0,M=Gt(),q=st(),te=q.ui.playerSize;z(i,te,Q=>t(24,o=Q));let pe=q.ui.overlayContainer$;z(i,pe,Q=>t(23,n=Q));let Z=q.getLogger().createComponentLog("Tooltip component"),x=()=>{if(!n||!v||!C)return;let Q=n.getBoundingClientRect(),X=C.getBoundingClientRect(),le=X.width,De=v.clientWidth,$e=o.width,Ee=(le-De)/2,Be=X.left+u-Q.left,Ne=Be+Ee,Je=X.top+c-Q.top,se=De/2-Bl,_e=Ne<8,ut=Ne+De>$e-8;_e&&(Ne=8,se=Be+X.width/2-2.5*Bl),ut&&(Ne=$e-8-De,se=X.left-Q.left+X.width/2-Ne-Bl),t(6,P=Ne),t(7,B=Je),t(5,y=se)},oe=()=>{try{if(!n||!C)return;x(),t(0,s=!0)}catch(Q){Z({message:String(Q)})}},H=()=>{t(0,s=!1)},j=()=>{v&&(I||(I=window.setTimeout(oe,M.controls.hideTimeoutTooltips)),s&&oe())},J=()=>{H(),window.clearTimeout(I),I=void 0};Ot(x),jn(()=>window.clearTimeout(I));function F(Q){ge[Q?"unshift":"push"](()=>{C=Q,t(3,C)})}function O(Q){ge[Q?"unshift":"push"](()=>{v=Q,t(4,v)})}return i.$$set=Q=>{"content"in Q&&t(1,a=Q.content),"active"in Q&&t(0,s=Q.active),"translateX"in Q&&t(14,u=Q.translateX),"translateY"in Q&&t(15,c=Q.translateY),"isFullWidthWrapper"in Q&&t(2,m=Q.isFullWidthWrapper),"placement"in Q&&t(16,h=Q.placement),"onVisibilityChange"in Q&&t(17,w=Q.onVisibilityChange),"$$scope"in Q&&t(21,l=Q.$$scope)},i.$$.update=()=>{i.$$.dirty&131073&&w(s)},[s,a,m,C,v,y,P,B,b,g,te,pe,j,J,u,c,h,w,r,F,O,l]}var Na=class extends W{constructor(e){super(),G(this,e,ab,sb,K,{content:1,active:0,translateX:14,translateY:15,isFullWidthWrapper:2,placement:16,onVisibilityChange:17},lb)}},Mr=Na;function fb(i){Ie(i,"svelte-p9r045",".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 cb(i){let e,t=i[19].default,n=Le(t,i,i[24],null);return{c(){n&&n.c()},m(o,r){n&&n.m(o,r),e=!0},p(o,r){n&&n.p&&(!e||r&16777216)&&Ve(n,t,o,o[24],e?Me(t,o[24],r,null):Re(o[24]),null)},i(o){e||(d(n,o),e=!0)},o(o){_(n,o),e=!1},d(o){n&&n.d(o)}}}function db(i){let e,t;return e=new Mr({props:{content:i[11],translateX:i[9],translateY:i[10],isFullWidthWrapper:i[4],active:i[5],placement:i[6],onVisibilityChange:i[8],$$slots:{default:[mb]},$$scope:{ctx:i}}}),{c(){V(e.$$.fragment)},m(n,o){A(e,n,o),t=!0},p(n,o){let r={};o&2048&&(r.content=n[11]),o&512&&(r.translateX=n[9]),o&1024&&(r.translateY=n[10]),o&16&&(r.isFullWidthWrapper=n[4]),o&32&&(r.active=n[5]),o&64&&(r.placement=n[6]),o&256&&(r.onVisibilityChange=n[8]),o&16777216&&(r.$$scope={dirty:o,ctx:n}),e.$set(r)},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){_(e.$$.fragment,n),t=!1},d(n){L(e,n)}}}function mb(i){let e,t=i[19].default,n=Le(t,i,i[24],null);return{c(){n&&n.c()},m(o,r){n&&n.m(o,r),e=!0},p(o,r){n&&n.p&&(!e||r&16777216)&&Ve(n,t,o,o[24],e?Me(t,o[24],r,null):Re(o[24]),null)},i(o){e||(d(n,o),e=!0)},o(o){_(n,o),e=!1},d(o){n&&n.d(o)}}}function pb(i){let e,t,n,o,r,l,a,s,u,c=[db,cb],m=[];function h(w,b){return w[3]&&w[11]&&!w[12]?0:1}return t=h(i,-1),n=m[t]=c[t](i),{c(){e=T("div"),n.c(),f(e,"class",o="btn-container "+i[2]+" svelte-p9r045"),f(e,"aria-hidden",r=i[7]||null),Gn(()=>i[23].call(e))},m(w,b){S(w,e,b),m[t].m(e,null),i[22](e),l=$o(e,i[23].bind(e)),a=!0,s||(u=[he(e,"pointerdown",at(qt(i[20]))),he(e,"click",at(qt(i[21])))],s=!0)},p(w,[b]){let C=t;t=h(w,b),t===C?m[t].p(w,b):(ce(),_(m[C],1,1,()=>{m[C]=null}),de(),n=m[t],n?n.p(w,b):(n=m[t]=c[t](w),n.c()),d(n,1),n.m(e,null)),(!a||b&4&&o!==(o="btn-container "+w[2]+" svelte-p9r045"))&&f(e,"class",o),(!a||b&128&&r!==(r=w[7]||null))&&f(e,"aria-hidden",r)},i(w){a||(d(n),a=!0)},o(w){_(n),a=!1},d(w){w&&k(e),m[t].d(),i[22](null),l(),s=!1,lt(u)}}}function _b(i,e,t){let n,o,{$$slots:r={},$$scope:l}=e,{className:a=""}=e,{disabled:s=!1}=e,{hasTooltip:u=!0}=e,{ref:c=void 0}=e,{width:m=void 0}=e,{isFullWidthTooltip:h=!0}=e,{tooltipContent:w=""}=e,{tooltipActive:b=!1}=e,{tooltipPlacement:C="top"}=e,{disabledTooltipContent:v=U("tooltip_button_disabled")}=e,{isAriaHidden:I=!1}=e,{onTooltipVisibilityChange:y=ub}=e,{initialTranslateXPx:g=0}=e,{initialTranslateYPx:P=-18}=e,B=st(),M=B.ui.isMobile;z(i,M,H=>t(12,o=H));let q=B.state.graphIsOpened$;z(i,q,H=>t(18,n=H));let te;function pe(H){Vn.call(this,i,H)}function Z(H){Vn.call(this,i,H)}function x(H){ge[H?"unshift":"push"](()=>{c=H,t(0,c)})}function oe(){m=this.clientWidth,t(1,m)}return i.$$set=H=>{"className"in H&&t(2,a=H.className),"disabled"in H&&t(15,s=H.disabled),"hasTooltip"in H&&t(3,u=H.hasTooltip),"ref"in H&&t(0,c=H.ref),"width"in H&&t(1,m=H.width),"isFullWidthTooltip"in H&&t(4,h=H.isFullWidthTooltip),"tooltipContent"in H&&t(16,w=H.tooltipContent),"tooltipActive"in H&&t(5,b=H.tooltipActive),"tooltipPlacement"in H&&t(6,C=H.tooltipPlacement),"disabledTooltipContent"in H&&t(17,v=H.disabledTooltipContent),"isAriaHidden"in H&&t(7,I=H.isAriaHidden),"onTooltipVisibilityChange"in H&&t(8,y=H.onTooltipVisibilityChange),"initialTranslateXPx"in H&&t(9,g=H.initialTranslateXPx),"initialTranslateYPx"in H&&t(10,P=H.initialTranslateYPx),"$$scope"in H&&t(24,l=H.$$scope)},i.$$.update=()=>{i.$$.dirty&491520&&(s?t(11,te=n?U("tooltip_disabled_when_graph_on"):v):t(11,te=w))},[c,m,a,u,h,b,C,I,y,g,P,te,o,M,q,s,w,v,n,r,pe,Z,x,oe,l]}var qa=class extends W{constructor(e){super(),G(this,e,_b,pb,K,{className:2,disabled:15,hasTooltip:3,ref:0,width:1,isFullWidthTooltip:4,tooltipContent:16,tooltipActive:5,tooltipPlacement:6,disabledTooltipContent:17,isAriaHidden:7,onTooltipVisibilityChange:8,initialTranslateXPx:9,initialTranslateYPx:10},fb)}},Ht=qa;function hb(i){let e,t,n,o,r,l;return{c(){e=D("svg"),t=D("rect"),o=D("path"),f(t,"width","20"),f(t,"height","20"),f(t,"rx","10"),f(t,"fill","white"),f(t,"fill-opacity",n=i[0]?1:.24),f(o,"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"),f(o,"fill",r=i[0]?"var(--interactive-episode-complete)":"white"),f(e,"width","20"),f(e,"height","20"),f(e,"viewBox","0 0 20 20"),f(e,"fill","none"),f(e,"xmlns","http://www.w3.org/2000/svg"),f(e,"aria-hidden","true"),f(e,"data-testid",l=(i[0],"interactive-episode-completed-icon"))},m(a,s){S(a,e,s),p(e,t),p(e,o)},p(a,[s]){s&1&&n!==(n=a[0]?1:.24)&&f(t,"fill-opacity",n),s&1&&r!==(r=a[0]?"var(--interactive-episode-complete)":"white")&&f(o,"fill",r),s&1&&l!==(l=(a[0],"interactive-episode-completed-icon"))&&f(e,"data-testid",l)},i:Se,o:Se,d(a){a&&k(e)}}}function gb(i,e,t){let{completed:n}=e;return i.$$set=o=>{"completed"in o&&t(0,n=o.completed)},[n]}var Oa=class extends W{constructor(e){super(),G(this,e,gb,hb,K,{completed:0})}},Vr=Oa;function bb(i){Ie(i,"svelte-bklhpe",".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 vb(i){let e,t,n,o,r;return t=new Vr({props:{completed:!!i[0].completed}}),{c(){e=T("div"),V(t.$$.fragment),f(e,"class","interactive-episode-icon svelte-bklhpe"),f(e,"style",n=`left: ${i[0].from+i[0].width/2}%`),Gn(()=>i[3].call(e)),N(e,"disabled",i[1])},m(l,a){S(l,e,a),A(t,e,null),o=$o(e,i[3].bind(e)),r=!0},p(l,a){let s={};a&1&&(s.completed=!!l[0].completed),t.$set(s),(!r||a&1&&n!==(n=`left: ${l[0].from+l[0].width/2}%`))&&f(e,"style",n),(!r||a&2)&&N(e,"disabled",l[1])},i(l){r||(d(t.$$.fragment,l),r=!0)},o(l){_(t.$$.fragment,l),r=!1},d(l){l&&k(e),L(t),o()}}}function yb(i){let e,t;return e=new Ht({props:{tooltipContent:U(i[0].completed?"tooltip_episode_finished":"tooltip_episode_unfinished"),initialTranslateXPx:-10,initialTranslateYPx:-10,disabled:i[1],width:i[2]||0,isAriaHidden:!0,isFullWidthTooltip:!1,$$slots:{default:[vb]},$$scope:{ctx:i}}}),{c(){V(e.$$.fragment)},m(n,o){A(e,n,o),t=!0},p(n,[o]){let r={};o&1&&(r.tooltipContent=U(n[0].completed?"tooltip_episode_finished":"tooltip_episode_unfinished")),o&2&&(r.disabled=n[1]),o&4&&(r.width=n[2]||0),o&23&&(r.$$scope={dirty:o,ctx:n}),e.$set(r)},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){_(e.$$.fragment,n),t=!1},d(n){L(e,n)}}}function wb(i,e,t){let{videoEpisode:n}=e,{disabled:o}=e,r;function l(){r=this.clientWidth,t(2,r)}return i.$$set=a=>{"videoEpisode"in a&&t(0,n=a.videoEpisode),"disabled"in a&&t(1,o=a.disabled)},[n,o,r,l]}var Fa=class extends W{constructor(e){super(),G(this,e,wb,yb,K,{videoEpisode:0,disabled:1},bb)}},R1=Fa;function kb(i){Ie(i,"svelte-1rzxunm",".video-episodes-wrap.svelte-1rzxunm{position:absolute;width:100%;height:100%}.video-episode.svelte-1rzxunm{position:absolute;height:calc(3 * var(--slider-height));box-sizing:border-box;margin-top:-5px;padding:var(--slider-height) var(--slider-video-episode-gap);transition:transform 0.2s}.video-episode.svelte-1rzxunm:not(.disabled):where(:hover, :active){transform:scaleY(1.5)}.video-episode-inner.svelte-1rzxunm,.video-episode-loaded.svelte-1rzxunm,.video-episode-filled.svelte-1rzxunm{position:absolute;height:var(--slider-height);border-radius:var(--slider-radius)}.video-episode-inner.svelte-1rzxunm{position:absolute;overflow:hidden;width:calc(100% - 2 * var(--slider-video-episode-gap));background:var(--slider-bg)}.video-episode-loaded.svelte-1rzxunm{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-1rzxunm{position:absolute;left:-100%;width:100%;height:100%;border-radius:var(--slider-radius);background-color:var(--slider-filled-bg)}")}function B1(i,e,t){let n=i.slice();return n[3]=e[t],n}function D1(i){let e,t,n,o,r,l,a,s,u;return{c(){e=T("div"),t=T("div"),n=T("div"),r=R(),l=T("div"),s=R(),f(n,"class","video-episode-loaded svelte-1rzxunm"),f(n,"style",o=`transform: translateX(${i[3].loadedWidth/i[3].width*100}%)`),f(l,"class","video-episode-filled svelte-1rzxunm"),f(l,"style",a=`transform: translateX(${i[3].filledWidth/i[3].width*100}%)`),N(l,"mobile",i[1]),f(t,"class","video-episode-inner svelte-1rzxunm"),f(e,"class","video-episode svelte-1rzxunm"),f(e,"style",u=`left: ${i[3].from}%; width: ${i[3].width}%`),N(e,"disabled",i[2]),N(e,"mobile",i[1])},m(c,m){S(c,e,m),p(e,t),p(t,n),p(t,r),p(t,l),p(e,s)},p(c,m){m&1&&o!==(o=`transform: translateX(${c[3].loadedWidth/c[3].width*100}%)`)&&f(n,"style",o),m&1&&a!==(a=`transform: translateX(${c[3].filledWidth/c[3].width*100}%)`)&&f(l,"style",a),m&2&&N(l,"mobile",c[1]),m&1&&u!==(u=`left: ${c[3].from}%; width: ${c[3].width}%`)&&f(e,"style",u),m&4&&N(e,"disabled",c[2]),m&2&&N(e,"mobile",c[1])},d(c){c&&k(e)}}}function Cb(i){let e,t=It(i[0]),n=[];for(let o=0;o<t.length;o+=1)n[o]=D1(B1(i,t,o));return{c(){e=T("div");for(let o=0;o<n.length;o+=1)n[o].c();f(e,"class","video-episodes-wrap svelte-1rzxunm")},m(o,r){S(o,e,r);for(let l=0;l<n.length;l+=1)n[l]&&n[l].m(e,null)},p(o,[r]){if(r&7){t=It(o[0]);let l;for(l=0;l<t.length;l+=1){let a=B1(o,t,l);n[l]?n[l].p(a,r):(n[l]=D1(a),n[l].c(),n[l].m(e,null))}for(;l<n.length;l+=1)n[l].d(1);n.length=t.length}},i:Se,o:Se,d(o){o&&k(e),Ri(n,o)}}}function Sb(i,e,t){let{videoEpisodes:n=[]}=e,{isMobile:o}=e,{disabled:r}=e;return i.$$set=l=>{"videoEpisodes"in l&&t(0,n=l.videoEpisodes),"isMobile"in l&&t(1,o=l.isMobile),"disabled"in l&&t(2,r=l.disabled)},[n,o,r]}var Ha=class extends W{constructor(e){super(),G(this,e,Sb,Cb,K,{videoEpisodes:0,isMobile:1,disabled:2},kb)}},N1=Ha;function Tb(i){Ie(i,"svelte-v8ydei",".interactive-icons.svelte-v8ydei.svelte-v8ydei{position:absolute;width:calc(100% - 20px);top:-28px}.interactive-icons.mobile.svelte-v8ydei.svelte-v8ydei{top:-10px}.slider.svelte-v8ydei.svelte-v8ydei{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-v8ydei.svelte-v8ydei{cursor:default}.slider.svelte-v8ydei.svelte-v8ydei:before{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-v8ydei.svelte-v8ydei{position:absolute;width:100%;height:100%;border-radius:var(--slider-radius);overflow:hidden;background:var(--slider-bg)}.loaded.svelte-v8ydei.svelte-v8ydei{position:absolute;left:-100%;width:100%;height:100%;border-radius:var(--slider-radius);background:var(--slider-loaded-bg);transition:transform 0.2s}.filled.svelte-v8ydei.svelte-v8ydei{position:absolute;left:-100%;width:100%;height:100%;border-radius:var(--slider-radius);background-color:var(--slider-filled-bg)}.slider.square.svelte-v8ydei.svelte-v8ydei,.slider.square.svelte-v8ydei>.bars.svelte-v8ydei,.slider.square.svelte-v8ydei .loaded.svelte-v8ydei,.slider.square.svelte-v8ydei .filled.svelte-v8ydei{border-radius:unset}.filled.active-live.svelte-v8ydei.svelte-v8ydei{background-color:var(--slider-filled-active-live-bg)}.filled.ads.svelte-v8ydei.svelte-v8ydei{background-color:var(--slider-filled-ads)}.handleWrap.svelte-v8ydei.svelte-v8ydei{position:absolute;left:-100%;width:100%}.handle.svelte-v8ydei.svelte-v8ydei{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-filled-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-v8ydei.svelte-v8ydei{background-color:var(--slider-filled-active-live-bg)}.slider.svelte-v8ydei:hover .handle.svelte-v8ydei,.slider-dragging.svelte-v8ydei .handle.svelte-v8ydei{visibility:visible;opacity:1;transform:scale(1)}.slider-dragging.svelte-v8ydei .handle.svelte-v8ydei{transform:scale(1.3)}.slider-vertical.svelte-v8ydei.svelte-v8ydei{position:absolute;left:-8px;top:-18px;transform-origin:0 0;transform:rotate(-90deg)}.slider.disabled.svelte-v8ydei.svelte-v8ydei{cursor:default;opacity:0.4}")}function q1(i,e,t){let n=i.slice();return n[50]=e[t],n}function O1(i){let e,t,n=It(i[21]),o=[];for(let l=0;l<n.length;l+=1)o[l]=H1(q1(i,n,l));let r=l=>_(o[l],1,1,()=>{o[l]=null});return{c(){e=T("div");for(let l=0;l<o.length;l+=1)o[l].c();f(e,"class","interactive-icons svelte-v8ydei"),N(e,"mobile",i[6]),N(e,"hidden",i[6]&&!i[20])},m(l,a){S(l,e,a);for(let s=0;s<o.length;s+=1)o[s]&&o[s].m(e,null);t=!0},p(l,a){if(a[0]&2098176){n=It(l[21]);let s;for(s=0;s<n.length;s+=1){let u=q1(l,n,s);o[s]?(o[s].p(u,a),d(o[s],1)):(o[s]=H1(u),o[s].c(),d(o[s],1),o[s].m(e,null))}for(ce(),s=n.length;s<o.length;s+=1)r(s);de()}(!t||a[0]&64)&&N(e,"mobile",l[6]),(!t||a[0]&1048640)&&N(e,"hidden",l[6]&&!l[20])},i(l){if(!t){for(let a=0;a<n.length;a+=1)d(o[a]);t=!0}},o(l){o=o.filter(Boolean);for(let a=0;a<o.length;a+=1)_(o[a]);t=!1},d(l){l&&k(e),Ri(o,l)}}}function F1(i){let e,t;return e=new R1({props:{videoEpisode:i[50],disabled:i[10]}}),{c(){V(e.$$.fragment)},m(n,o){A(e,n,o),t=!0},p(n,o){let r={};o[0]&2097152&&(r.videoEpisode=n[50]),o[0]&1024&&(r.disabled=n[10]),e.$set(r)},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){_(e.$$.fragment,n),t=!1},d(n){L(e,n)}}}function H1(i){let e,t,n=i[50].interactive&&F1(i);return{c(){n&&n.c(),e=dt()},m(o,r){n&&n.m(o,r),S(o,e,r),t=!0},p(o,r){o[50].interactive?n?(n.p(o,r),r[0]&2097152&&d(n,1)):(n=F1(o),n.c(),d(n,1),n.m(e.parentNode,e)):n&&(ce(),_(n,1,1,()=>{n=null}),de())},i(o){t||(d(n),t=!0)},o(o){_(n),t=!1},d(o){o&&k(e),n&&n.d(o)}}}function Pb(i){let e,t,n,o,r,l;return{c(){e=T("div"),t=T("div"),o=R(),r=T("div"),f(t,"class","loaded svelte-v8ydei"),f(t,"style",n=`transform: translateX(${i[12]*100}%);`),f(r,"class","filled svelte-v8ydei"),f(r,"style",l=`transform: translateX(${i[13]*100}%);`),N(r,"active-live",i[5]),N(r,"ads",i[7]),f(e,"class","bars svelte-v8ydei")},m(a,s){S(a,e,s),p(e,t),p(e,o),p(e,r)},p(a,s){s[0]&4096&&n!==(n=`transform: translateX(${a[12]*100}%);`)&&f(t,"style",n),s[0]&8192&&l!==(l=`transform: translateX(${a[13]*100}%);`)&&f(r,"style",l),s[0]&32&&N(r,"active-live",a[5]),s[0]&128&&N(r,"ads",a[7])},i:Se,o:Se,d(a){a&&k(e)}}}function Ib(i){let e,t;return e=new N1({props:{videoEpisodes:i[21],disabled:i[10],isMobile:i[6]}}),{c(){V(e.$$.fragment)},m(n,o){A(e,n,o),t=!0},p(n,o){let r={};o[0]&2097152&&(r.videoEpisodes=n[21]),o[0]&1024&&(r.disabled=n[10]),o[0]&64&&(r.isMobile=n[6]),e.$set(r)},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){_(e.$$.fragment,n),t=!1},d(n){L(e,n)}}}function Eb(i){let e,t,n,o,r,l,a,s,u,c,m,h,w,b=i[9]&&O1(i),C=[Ib,Pb],v=[];function I(y,g){return y[21].length?0:1}return n=I(i,[-1,-1]),o=v[n]=C[n](i),{c(){var y;b&&b.c(),e=R(),t=T("div"),o.c(),r=R(),l=T("div"),a=T("div"),f(a,"class","handle svelte-v8ydei"),N(a,"active-live",i[5]),f(l,"class","handleWrap svelte-v8ydei"),f(l,"style",s=`transform: translateX(${i[14]*100}%);`),N(l,"hidden",i[11]),f(t,"class",u="slider "+i[1]+" svelte-v8ydei"),f(t,"aria-label",i[15]),f(t,"aria-valuemin",i[16]),f(t,"aria-valuemax",i[17]),f(t,"aria-valuenow",i[18]),f(t,"aria-valuetext",i[19]),f(t,"role","slider"),f(t,"tabindex","0"),f(t,"data-testid",c=(y=i[2])!=null?y:null),N(t,"disabled",i[10]),N(t,"slider-dragging",i[20]),N(t,"hidden",i[3]),N(t,"slider-vertical",i[4]),N(t,"no-handle",i[11]),N(t,"square",i[8])},m(y,g){b&&b.m(y,g),S(y,e,g),S(y,t,g),v[n].m(t,null),p(t,r),p(t,l),p(l,a),i[44](t),m=!0,h||(w=[he(t,"pointerdown",qt(i[22])),he(t,"pointermove",qt(i[23])),he(t,"pointerup",qt(i[24])),he(t,"pointerenter",qt(i[25])),he(t,"pointerleave",qt(i[26])),he(t,"click",at(i[28])),he(t,"wheel",i[27])],h=!0)},p(y,g){var B;y[9]?b?(b.p(y,g),g[0]&512&&d(b,1)):(b=O1(y),b.c(),d(b,1),b.m(e.parentNode,e)):b&&(ce(),_(b,1,1,()=>{b=null}),de());let P=n;n=I(y,g),n===P?v[n].p(y,g):(ce(),_(v[P],1,1,()=>{v[P]=null}),de(),o=v[n],o?o.p(y,g):(o=v[n]=C[n](y),o.c()),d(o,1),o.m(t,r)),(!m||g[0]&32)&&N(a,"active-live",y[5]),(!m||g[0]&16384&&s!==(s=`transform: translateX(${y[14]*100}%);`))&&f(l,"style",s),(!m||g[0]&2048)&&N(l,"hidden",y[11]),(!m||g[0]&2&&u!==(u="slider "+y[1]+" svelte-v8ydei"))&&f(t,"class",u),(!m||g[0]&32768)&&f(t,"aria-label",y[15]),(!m||g[0]&65536)&&f(t,"aria-valuemin",y[16]),(!m||g[0]&131072)&&f(t,"aria-valuemax",y[17]),(!m||g[0]&262144)&&f(t,"aria-valuenow",y[18]),(!m||g[0]&524288)&&f(t,"aria-valuetext",y[19]),(!m||g[0]&4&&c!==(c=(B=y[2])!=null?B:null))&&f(t,"data-testid",c),(!m||g[0]&1026)&&N(t,"disabled",y[10]),(!m||g[0]&1048578)&&N(t,"slider-dragging",y[20]),(!m||g[0]&10)&&N(t,"hidden",y[3]),(!m||g[0]&18)&&N(t,"slider-vertical",y[4]),(!m||g[0]&2050)&&N(t,"no-handle",y[11]),(!m||g[0]&258)&&N(t,"square",y[8])},i(y){m||(d(b),d(o),m=!0)},o(y){_(b),_(o),m=!1},d(y){y&&(k(e),k(t)),b&&b.d(y),v[n].d(),i[44](null),h=!1,lt(w)}}}function Ab(i,e,t){let n,o,{ref:r=void 0}=e,{className:l=""}=e,{testId:a=void 0}=e,{isHidden:s=!1}=e,{isVertical:u=!1}=e,{isActiveLive:c=!1}=e,{isMobile:m=!1}=e,{isAds:h=!1}=e,{squareBorders:w=!1}=e,{videoEpisodes:b=[]}=e,{withWheelHandler:C=!1}=e,{isInteractive:v=!1}=e,{disabled:I=!1}=e,{hideHandel:y=!1}=e,g,{onPointerDown:P=Yn}=e,{onHandleMove:B=Yn}=e,{onPointerUp:M=Yn}=e,{onPointerEnter:q=Yn}=e,{onPointerMove:te=Yn}=e,{onPointerLeave:pe=Yn}=e,{onWheelUp:Z=Yn}=e,{onWheelDown:x=Yn}=e,{onWheelLeft:oe=Yn}=e,{onWheelRight:H=Yn}=e,{onDisabledClick:j=Yn}=e,{loadedProgress:J=0}=e,{filledProgress:F=0}=e,{handleProgress:O=0}=e,{ariaLabel:Q=""}=e,{ariaValueMin:X=void 0}=e,{ariaValueMax:le=void 0}=e,{ariaValueNow:De=void 0}=e,{ariaValueText:$e=""}=e,Ee=Gt(),Be=!1,Ne;function Je(fe){if(r&&(g=r.getBoundingClientRect()),I||Be||!r)return;t(20,Be=!0);let Pe=Ze(fe.clientX,fe.clientY);P(Pe),r.setPointerCapture(fe.pointerId)}function se(fe){if(I)return;let Pe=Ze(fe.clientX,fe.clientY),je=Ge(fe.clientX);te(Pe,je,g.width),Be&&B(Pe)}function _e(fe){if(I||!Be)return;t(20,Be=!1);let Pe=Ze(fe.clientX,fe.clientY);M(Pe)}function ut(fe){if(r&&(g=r.getBoundingClientRect()),I)return;let Pe=Ze(fe.clientX,fe.clientY),je=Ge(fe.clientX);q(Pe,je,g.width)}function Ce(){I||pe()}function Ke(fe){I||C&&(fe.preventDefault(),fe.deltaY<0?Z():fe.deltaY>0?x():fe.deltaX>0?H():oe())}function ht(fe){I&&j(Ze(fe.clientX,fe.clientY))}function Ze(fe,Pe){return u?Math.max(0,Math.min(1,(g.height-(Pe-g.top))/g.height)):Math.min(Math.max(fe-g.x,0),g.width)/g.width}function Ge(fe){return Math.min(Math.max(fe-g.x,0),g.width)}function xe(fe,Pe){let je=Ee.features.episodesClustering&&!v?Ee.episodeMinWidthPc:0,ae=[],Te=0,pt=0,Ae=0;for(let it=1;it<b.length;it++)pt=b[it].time/Ne*100,pt-Te>je&&(ae.push({from:Te,width:Math.max(0,pt-Te),loadedWidth:Math.max(0,Math.min(pt,fe)-Te),filledWidth:Math.max(0,Math.min(pt,Pe)-Te),interactive:b[it-1].interactive,completed:b[it-1].completed}),Te=b[it].time/Ne*100,Ae++);let mt={from:Te,width:Math.max(0,100-Te),loadedWidth:Math.max(0,Math.min(fe,100)-Te),filledWidth:Math.max(0,Math.min(Pe,100)-Te),interactive:b[Ae].interactive,completed:b[Ae].completed};100-Te<je?(Ae-=1,ae[Ae].width+=100-Te,ae[Ae].loadedWidth+=Math.max(0,Math.min(fe,100)-Te),ae[Ae].filledWidth+=Math.max(0,Math.min(Pe,100)-Te)):ae[Ae]=mt;let me=b[0].time;if(me!==0){let it=me/Ne*100;ae.unshift({from:0,width:it,loadedWidth:Math.min(it,fe),filledWidth:Math.min(it,Pe)})}return ae}function tt(fe){ge[fe?"unshift":"push"](()=>{r=fe,t(0,r)})}return i.$$set=fe=>{"ref"in fe&&t(0,r=fe.ref),"className"in fe&&t(1,l=fe.className),"testId"in fe&&t(2,a=fe.testId),"isHidden"in fe&&t(3,s=fe.isHidden),"isVertical"in fe&&t(4,u=fe.isVertical),"isActiveLive"in fe&&t(5,c=fe.isActiveLive),"isMobile"in fe&&t(6,m=fe.isMobile),"isAds"in fe&&t(7,h=fe.isAds),"squareBorders"in fe&&t(8,w=fe.squareBorders),"videoEpisodes"in fe&&t(29,b=fe.videoEpisodes),"withWheelHandler"in fe&&t(30,C=fe.withWheelHandler),"isInteractive"in fe&&t(9,v=fe.isInteractive),"disabled"in fe&&t(10,I=fe.disabled),"hideHandel"in fe&&t(11,y=fe.hideHandel),"onPointerDown"in fe&&t(31,P=fe.onPointerDown),"onHandleMove"in fe&&t(32,B=fe.onHandleMove),"onPointerUp"in fe&&t(33,M=fe.onPointerUp),"onPointerEnter"in fe&&t(34,q=fe.onPointerEnter),"onPointerMove"in fe&&t(35,te=fe.onPointerMove),"onPointerLeave"in fe&&t(36,pe=fe.onPointerLeave),"onWheelUp"in fe&&t(37,Z=fe.onWheelUp),"onWheelDown"in fe&&t(38,x=fe.onWheelDown),"onWheelLeft"in fe&&t(39,oe=fe.onWheelLeft),"onWheelRight"in fe&&t(40,H=fe.onWheelRight),"onDisabledClick"in fe&&t(41,j=fe.onDisabledClick),"loadedProgress"in fe&&t(12,J=fe.loadedProgress),"filledProgress"in fe&&t(13,F=fe.filledProgress),"handleProgress"in fe&&t(14,O=fe.handleProgress),"ariaLabel"in fe&&t(15,Q=fe.ariaLabel),"ariaValueMin"in fe&&t(16,X=fe.ariaValueMin),"ariaValueMax"in fe&&t(17,le=fe.ariaValueMax),"ariaValueNow"in fe&&t(18,De=fe.ariaValueNow),"ariaValueText"in fe&&t(19,$e=fe.ariaValueText)},i.$$.update=()=>{var fe;i.$$.dirty[0]&131072&&t(42,Ne=le!=null?le:0),i.$$.dirty[0]&536870912|i.$$.dirty[1]&2048&&t(43,n=((fe=b[b.length-1])==null?void 0:fe.time)<Ne),i.$$.dirty[0]&536883200|i.$$.dirty[1]&6144&&t(21,o=b.length&&n&&Ne?xe(J*100,F*100):[])},[r,l,a,s,u,c,m,h,w,v,I,y,J,F,O,Q,X,le,De,$e,Be,o,Je,se,_e,ut,Ce,Ke,ht,b,C,P,B,M,q,te,pe,Z,x,oe,H,j,Ne,n,tt]}var za=class extends W{constructor(e){super(),G(this,e,Ab,Eb,K,{ref:0,className:1,testId:2,isHidden:3,isVertical:4,isActiveLive:5,isMobile:6,isAds:7,squareBorders:8,videoEpisodes:29,withWheelHandler:30,isInteractive:9,disabled:10,hideHandel:11,onPointerDown:31,onHandleMove:32,onPointerUp:33,onPointerEnter:34,onPointerMove:35,onPointerLeave:36,onWheelUp:37,onWheelDown:38,onWheelLeft:39,onWheelRight:40,onDisabledClick:41,loadedProgress:12,filledProgress:13,handleProgress:14,ariaLabel:15,ariaValueMin:16,ariaValueMax:17,ariaValueNow:18,ariaValueText:19},Tb,[-1,-1])}},gl=za;var Bn=(i,e)=>Bo[i]>=Bo[e],z1=(i,e)=>Bo[i]<Bo[e],Rr=(i,e)=>Bo[i]<=Bo[e],U1=i=>i>699?"xl":i>599?"l":i>509?"m":i>320?"s":"xs";function Lb(i){Ie(i,"svelte-1l78lz9",".volumeBar-container.svelte-1l78lz9{display:flex;align-items:center}.volumeBar-container.vertical.svelte-1l78lz9,.vertical.svelte-1l78lz9 .tooltip-wrapper,.vertical.svelte-1l78lz9 .btn{width:40px}.volumeBar.svelte-1l78lz9{display:flex;align-items:center;margin:0 8px;position:relative;width:70px}.volumeBar-slider-vertical{width:50px !important}.volumeBar-vertical.svelte-1l78lz9{padding:0 8px 0 0;width:0}")}function Mb(i){let e,t;return e=new jo({props:{volume:i[3],muted:i[1]}}),{c(){V(e.$$.fragment)},m(n,o){A(e,n,o),t=!0},p(n,o){let r={};o[0]&8&&(r.volume=n[3]),o[0]&2&&(r.muted=n[1]),e.$set(r)},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){_(e.$$.fragment,n),t=!1},d(n){L(e,n)}}}function Vb(i){let e,t;return e=new yt({props:{className:"btn-full-opacity",disabled:i[9],testId:i[2]?"btn-volume-vertical":"btn-volume-horizontal",ariaLabel:i[7],click:i[0],ariaKeyShortCut:Jn.KeyM,$$slots:{default:[Mb]},$$scope:{ctx:i}}}),{c(){V(e.$$.fragment)},m(n,o){A(e,n,o),t=!0},p(n,o){let r={};o[0]&512&&(r.disabled=n[9]),o[0]&4&&(r.testId=n[2]?"btn-volume-vertical":"btn-volume-horizontal"),o[0]&128&&(r.ariaLabel=n[7]),o[0]&1&&(r.click=n[0]),o[0]&10|o[1]&32&&(r.$$scope={dirty:o,ctx:n}),e.$set(r)},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){_(e.$$.fragment,n),t=!1},d(n){L(e,n)}}}function K1(i){let e,t,n;return t=new gl({props:{className:i[2]?"volumeBar-slider-vertical":"",isHidden:i[2]&&!i[5],isVertical:i[2],withWheelHandler:!0,onWheelUp:i[15],onWheelDown:i[16],onPointerDown:i[14],onHandleMove:i[17],onPointerUp:i[18],onPointerEnter:i[2]?i[19]:bo,onPointerLeave:i[2]?i[20]:bo,ariaLabel:"\u041F\u043E\u043B\u0437\u0443\u043D\u043E\u043A \u0433\u0440\u043E\u043C\u043A\u043E\u0441\u0442\u0438",ariaValueMin:0,ariaValueMax:100,ariaValueNow:Math.round(i[8]*100),ariaValueText:`${Math.round(i[8]*100)}%`,filledProgress:i[8],handleProgress:i[8],testId:i[2]?"volume-slider-vertical":"volume-slider"}}),{c(){e=T("div"),V(t.$$.fragment),f(e,"class","volumeBar svelte-1l78lz9"),N(e,"volumeBar-vertical",i[2])},m(o,r){S(o,e,r),A(t,e,null),n=!0},p(o,r){let l={};r[0]&4&&(l.className=o[2]?"volumeBar-slider-vertical":""),r[0]&36&&(l.isHidden=o[2]&&!o[5]),r[0]&4&&(l.isVertical=o[2]),r[0]&4&&(l.onPointerEnter=o[2]?o[19]:bo),r[0]&4&&(l.onPointerLeave=o[2]?o[20]:bo),r[0]&256&&(l.ariaValueNow=Math.round(o[8]*100)),r[0]&256&&(l.ariaValueText=`${Math.round(o[8]*100)}%`),r[0]&256&&(l.filledProgress=o[8]),r[0]&256&&(l.handleProgress=o[8]),r[0]&4&&(l.testId=o[2]?"volume-slider-vertical":"volume-slider"),t.$set(l),(!n||r[0]&4)&&N(e,"volumeBar-vertical",o[2])},i(o){n||(d(t.$$.fragment,o),n=!0)},o(o){_(t.$$.fragment,o),n=!1},d(o){o&&k(e),L(t)}}}function Rb(i){let e,t,n,o,r,l;t=new Mr({props:{content:i[6],translateY:-18,$$slots:{default:[Vb]},$$scope:{ctx:i}}});let a=i[4]&&K1(i);return{c(){e=T("div"),V(t.$$.fragment),n=R(),a&&a.c(),f(e,"class","volumeBar-container svelte-1l78lz9"),N(e,"vertical",i[2])},m(s,u){S(s,e,u),A(t,e,null),p(e,n),a&&a.m(e,null),o=!0,r||(l=[he(e,"mouseenter",function(){Vi(i[2]?i[21]:bo)&&(i[2]?i[21]:bo).apply(this,arguments)}),he(e,"mouseleave",function(){Vi(i[2]?i[22]:bo)&&(i[2]?i[22]:bo).apply(this,arguments)}),he(e,"wheel",qt(i[23]))],r=!0)},p(s,u){i=s;let c={};u[0]&64&&(c.content=i[6]),u[0]&655|u[1]&32&&(c.$$scope={dirty:u,ctx:i}),t.$set(c),i[4]?a?(a.p(i,u),u[0]&16&&d(a,1)):(a=K1(i),a.c(),d(a,1),a.m(e,null)):a&&(ce(),_(a,1,1,()=>{a=null}),de()),(!o||u[0]&4)&&N(e,"vertical",i[2])},i(s){o||(d(t.$$.fragment,s),d(a),o=!0)},o(s){_(t.$$.fragment,s),_(a),o=!1},d(s){s&&k(e),L(t),a&&a.d(),r=!1,lt(l)}}}function Bb(i,e,t){var Ee,Be;let n,o,r,l,{click:a}=e,s=st(),u=Gt(),c=s.state.volume$;z(i,c,Ne=>t(3,n=Ne));let m=s.state.muted$;z(i,m,Ne=>t(25,l=Ne));let h=s.actions.internal.setVolume,w=s.ui.currentGridType$;z(i,w,Ne=>t(24,r=Ne));let b=(Ee=s.callbacks)==null?void 0:Ee.onAudioDoesNotExistHint,C=(Be=s.callbacks)==null?void 0:Be.onAudioDisabledHint,v=s.state.isAudioAvailable$;z(i,v,Ne=>t(4,o=Ne));let I=s.state.isAudioDisabled,y=!1,g,P,B,M,q,te,pe=1,Z=!1,x=!1;function oe(Ne){pe=n,h(Ne)}function H(){kr(s,n,u.controls.volumeStepWheel)}function j(){Cr(s,n,u.controls.volumeStepWheel)}function J(Ne){h(Ne)}function F(Ne){let Je=Ne;h(Je,Je===0?pe:Je)}function O(){Z=!0}function Q(){Z=!1,De()}function X(){clearTimeout(g),t(5,y=!0)}function le(){De()}function De(){g=window.setTimeout(()=>{Z||t(5,y=!1)},u.controls.volumeBarTimeout)}function $e(Ne){Ne.deltaY<0?H():Ne.deltaY>0&&j()}return i.$$set=Ne=>{"click"in Ne&&t(0,a=Ne.click)},i.$$.update=()=>{i.$$.dirty[0]&33554448&&t(1,M=!o||l),i.$$.dirty[0]&16777216&&t(2,q=Rr(r,"s")),i.$$.dirty[0]&6&&(q?t(6,P=""):t(6,P=M?U("tooltip_volume"):U("tooltip_volume_muted")),t(7,B=M?U("tooltip_volume"):U("tooltip_volume_muted"))),i.$$.dirty[0]&10&&t(8,te=M?0:n),i.$$.dirty[0]&16&&(o?t(9,x=I&&!C):t(9,x=!b))},[a,M,q,n,o,y,P,B,te,x,c,m,w,v,oe,H,j,J,F,O,Q,X,le,$e,r,l]}var Ua=class extends W{constructor(e){super(),G(this,e,Bb,Rb,K,{click:0},Lb,[-1,-1])}},j1=Ua;import{noop as Hb}from"@vkontakte/videoplayer-shared";function Db(i){let e,t,n,o,r,l=i[2].default,a=Le(l,i,i[1],null),s=[{xmlns:"http://www.w3.org/2000/svg"},{width:"24"},{height:"24"},{"aria-hidden":"true"},{role:"img"},i[0]],u={};for(let c=0;c<s.length;c+=1)u=ue(u,s[c]);return{c(){e=D("svg"),a&&a.c(),t=D("g"),n=D("path"),o=D("path"),f(n,"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"),f(n,"class","_exit"),f(o,"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"),f(o,"class","_enter"),f(t,"fill","#fff"),f(t,"fill-rule","evenodd"),we(e,u)},m(c,m){S(c,e,m),a&&a.m(e,null),p(e,t),p(t,n),p(t,o),r=!0},p(c,[m]){a&&a.p&&(!r||m&2)&&Ve(a,l,c,c[1],r?Me(l,c[1],m,null):Re(c[1]),null),we(e,u=Oe(s,[{xmlns:"http://www.w3.org/2000/svg"},{width:"24"},{height:"24"},{"aria-hidden":"true"},{role:"img"},m&1&&c[0]]))},i(c){r||(d(a,c),r=!0)},o(c){_(a,c),r=!1},d(c){c&&k(e),a&&a.d(c)}}}function Nb(i,e,t){let{$$slots:n={},$$scope:o}=e;return i.$$set=r=>{t(0,e=ue(ue({},e),ye(r))),"$$scope"in r&&t(1,o=r.$$scope)},e=ye(e),[e,o,n]}var Ka=class extends W{constructor(e){super(),G(this,e,Nb,Db,K,{})}},W1=Ka;function qb(i){Ie(i,"svelte-17t966y",'svg[data-testid="close-fullscreen-icon"] ._enter,svg[data-testid="open-fullscreen-icon"] ._exit{visibility:hidden;opacity:0}')}function Ob(i){let e,t;return e=new W1({props:{"data-testid":i[0]?"close-fullscreen-icon":"open-fullscreen-icon"}}),{c(){V(e.$$.fragment)},m(n,o){A(e,n,o),t=!0},p(n,[o]){let r={};o&1&&(r["data-testid"]=n[0]?"close-fullscreen-icon":"open-fullscreen-icon"),e.$set(r)},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){_(e.$$.fragment,n),t=!1},d(n){L(e,n)}}}function Fb(i,e,t){let{isFullscreen:n=!1}=e;return i.$$set=o=>{"isFullscreen"in o&&t(0,n=o.isFullscreen)},[n]}var ja=class extends W{constructor(e){super(),G(this,e,Fb,Ob,K,{isFullscreen:0},qb)}},G1=ja;function zb(i){let e,t;return e=new G1({props:{isFullscreen:i[0]}}),{c(){V(e.$$.fragment)},m(n,o){A(e,n,o),t=!0},p(n,o){let r={};o&1&&(r.isFullscreen=n[0]),e.$set(r)},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){_(e.$$.fragment,n),t=!1},d(n){L(e,n)}}}function Ub(i){let e,t;return e=new yt({props:{testId:"btn-fullscreen",ariaLabel:i[2],click:i[1],ariaKeyShortCut:Jn.KeyF,$$slots:{default:[zb]},$$scope:{ctx:i}}}),{c(){V(e.$$.fragment)},m(n,o){A(e,n,o),t=!0},p(n,[o]){let r={};o&4&&(r.ariaLabel=n[2]),o&2&&(r.click=n[1]),o&9&&(r.$$scope={dirty:o,ctx:n}),e.$set(r)},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){_(e.$$.fragment,n),t=!1},d(n){L(e,n)}}}function Kb(i,e,t){let{isFullscreen:n=!1}=e,{click:o=Hb}=e,r;return i.$$set=l=>{"isFullscreen"in l&&t(0,n=l.isFullscreen),"click"in l&&t(1,o=l.click)},i.$$.update=()=>{i.$$.dirty&1&&t(2,r=n?U("tooltip_fullscreen_on"):U("tooltip_fullscreen_off"))},[n,o,r]}var Wa=class extends W{constructor(e){super(),G(this,e,Kb,Ub,K,{isFullscreen:0,click:1})}},Br=Wa;function jb(i){let e,t,n,o=i[2].default,r=Le(o,i,i[1],null),l=[{xmlns:"http://www.w3.org/2000/svg"},{width:"24"},{height:"24"},{fill:"none"},{"aria-hidden":"true"},{"data-testid":"play-icon"},{role:"img"},i[0]],a={};for(let s=0;s<l.length;s+=1)a=ue(a,l[s]);return{c(){e=D("svg"),r&&r.c(),t=D("path"),f(t,"fill","#fff"),f(t,"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.078z"),we(e,a)},m(s,u){S(s,e,u),r&&r.m(e,null),p(e,t),n=!0},p(s,[u]){r&&r.p&&(!n||u&2)&&Ve(r,o,s,s[1],n?Me(o,s[1],u,null):Re(s[1]),null),we(e,a=Oe(l,[{xmlns:"http://www.w3.org/2000/svg"},{width:"24"},{height:"24"},{fill:"none"},{"aria-hidden":"true"},{"data-testid":"play-icon"},{role:"img"},u&1&&s[0]]))},i(s){n||(d(r,s),n=!0)},o(s){_(r,s),n=!1},d(s){s&&k(e),r&&r.d(s)}}}function Wb(i,e,t){let{$$slots:n={},$$scope:o}=e;return i.$$set=r=>{t(0,e=ue(ue({},e),ye(r))),"$$scope"in r&&t(1,o=r.$$scope)},e=ye(e),[e,o,n]}var Ga=class extends W{constructor(e){super(),G(this,e,Wb,jb,K,{})}},bl=Ga;function Gb(i){let e,t,n,o=i[2].default,r=Le(o,i,i[1],null),l=[{xmlns:"http://www.w3.org/2000/svg"},{width:"24"},{height:"24"},{fill:"none"},{"aria-hidden":"true"},{"data-testid":"pause-icon"},{role:"img"},i[0]],a={};for(let s=0;s<l.length;s+=1)a=ue(a,l[s]);return{c(){e=D("svg"),r&&r.c(),t=D("path"),f(t,"fill","#fff"),f(t,"d","M8.712 5c.448 0 .61.047.774.134a.9.9 0 0 1 .38.38c.087.164.134.326.134.774v11.424c0 .448-.047.61-.134.774a.9.9 0 0 1-.38.38c-.164.087-.326.134-.774.134H6.788c-.448 0-.61-.047-.774-.134a.9.9 0 0 1-.38-.38c-.087-.164-.134-.326-.134-.774V6.288c0-.448.047-.61.134-.774a.9.9 0 0 1 .38-.38C6.178 5.047 6.34 5 6.788 5zm8 0c.448 0 .61.047.774.134a.9.9 0 0 1 .38.38c.087.164.134.326.134.774v11.424c0 .448-.047.61-.134.774a.9.9 0 0 1-.38.38c-.164.087-.326.134-.774.134h-1.924c-.448 0-.61-.047-.774-.134a.9.9 0 0 1-.38-.38c-.087-.164-.134-.326-.134-.774V6.288c0-.448.047-.61.134-.774a.9.9 0 0 1 .38-.38c.164-.087.326-.134.774-.134z"),we(e,a)},m(s,u){S(s,e,u),r&&r.m(e,null),p(e,t),n=!0},p(s,[u]){r&&r.p&&(!n||u&2)&&Ve(r,o,s,s[1],n?Me(o,s[1],u,null):Re(s[1]),null),we(e,a=Oe(l,[{xmlns:"http://www.w3.org/2000/svg"},{width:"24"},{height:"24"},{fill:"none"},{"aria-hidden":"true"},{"data-testid":"pause-icon"},{role:"img"},u&1&&s[0]]))},i(s){n||(d(r,s),n=!0)},o(s){_(r,s),n=!1},d(s){s&&k(e),r&&r.d(s)}}}function Qb(i,e,t){let{$$slots:n={},$$scope:o}=e;return i.$$set=r=>{t(0,e=ue(ue({},e),ye(r))),"$$scope"in r&&t(1,o=r.$$scope)},e=ye(e),[e,o,n]}var Qa=class extends W{constructor(e){super(),G(this,e,Qb,Gb,K,{})}},Dr=Qa;import{noop as Yb}from"@vkontakte/videoplayer-shared";function Zb(i){Ie(i,"svelte-1ot3duq",".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 Q1(i){let e;return{c(){e=T("div"),f(e,"class","icon-background-mobile svelte-1ot3duq")},m(t,n){S(t,e,n)},d(t){t&&k(e)}}}function Xb(i){let e,t,n,o,r=i[1]&&Q1(i);var l=i[8];function a(s,u){return{}}return l&&(n=In(l,a(i))),{c(){r&&r.c(),e=R(),t=T("div"),n&&V(n.$$.fragment),f(t,"class","svelte-1ot3duq"),N(t,"mobile",i[1])},m(s,u){r&&r.m(s,u),S(s,e,u),S(s,t,u),n&&A(n,t,null),o=!0},p(s,u){if(s[1]?r||(r=Q1(s),r.c(),r.m(e.parentNode,e)):r&&(r.d(1),r=null),u&256&&l!==(l=s[8])){if(n){ce();let c=n;_(c.$$.fragment,1,0,()=>{L(c,1)}),de()}l?(n=In(l,a(s,u)),V(n.$$.fragment),d(n.$$.fragment,1),A(n,t,null)):n=null}(!o||u&2)&&N(t,"mobile",s[1])},i(s){o||(n&&d(n.$$.fragment,s),o=!0)},o(s){n&&_(n.$$.fragment,s),o=!1},d(s){s&&(k(e),k(t)),r&&r.d(s),n&&L(n)}}}function Jb(i){let e,t,n;function o(l){i[13](l)}let r={className:(i[1]?"btn-m--play":"")+" "+i[3],testId:"btn-play",click:i[5]?i[6]:i[4],disabled:i[2],ariaLabel:i[7],ariaKeyShortCut:Jn.KeyK,$$slots:{default:[Xb]},$$scope:{ctx:i}};return i[0]!==void 0&&(r.ref=i[0]),e=new yt({props:r}),ge.push(()=>ze(e,"ref",o)),{c(){V(e.$$.fragment)},m(l,a){A(e,l,a),n=!0},p(l,[a]){let s={};a&10&&(s.className=(l[1]?"btn-m--play":"")+" "+l[3]),a&112&&(s.click=l[5]?l[6]:l[4]),a&4&&(s.disabled=l[2]),a&128&&(s.ariaLabel=l[7]),a&33026&&(s.$$scope={dirty:a,ctx:l}),!t&&a&1&&(t=!0,s.ref=l[0],He(()=>t=!1)),e.$set(s)},i(l){n||(d(e.$$.fragment,l),n=!0)},o(l){_(e.$$.fragment,l),n=!1},d(l){L(e,l)}}}function xb(i,e,t){let n,o,{fakeIsPlaying$:r}=zn();z(i,r,y=>t(12,o=y));let{ref:l=void 0}=e,{isMobile:a=!1}=e,{isPlaying:s=!1}=e,{disabled:u=!1}=e,{className:c=""}=e,{click:m=Yb}=e,{toggle:h}=r,w,b,C,v;function I(y){l=y,t(0,l)}return i.$$set=y=>{"ref"in y&&t(0,l=y.ref),"isMobile"in y&&t(1,a=y.isMobile),"isPlaying"in y&&t(10,s=y.isPlaying),"disabled"in y&&t(2,u=y.disabled),"className"in y&&t(3,c=y.className),"click"in y&&t(4,m=y.click)},i.$$.update=()=>{i.$$.dirty&4096&&t(5,b=o!==null),i.$$.dirty&5152&&t(11,C=b?o:s),i.$$.dirty&2048&&t(7,v=C?U("tooltip_pause"):U("tooltip_play")),i.$$.dirty&2048&&t(8,n=C?Dr:bl)},t(6,w=h),[l,a,u,c,m,b,w,v,n,r,s,C,o,I]}var Ya=class extends W{constructor(e){super(),G(this,e,xb,Jb,K,{ref:0,isMobile:1,isPlaying:10,disabled:2,className:3,click:4},Zb)}},Dl=Ya;function $b(i){let e,t,n,o=i[2].default,r=Le(o,i,i[1],null),l=[{xmlns:"http://www.w3.org/2000/svg"},{width:"26"},{height:"24"},{fill:"none"},{"aria-hidden":"true"},{role:"img"},i[0]],a={};for(let s=0;s<l.length;s+=1)a=ue(a,l[s]);return{c(){e=D("svg"),r&&r.c(),t=D("path"),f(t,"fill","#fff"),f(t,"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"),we(e,a)},m(s,u){S(s,e,u),r&&r.m(e,null),p(e,t),n=!0},p(s,[u]){r&&r.p&&(!n||u&2)&&Ve(r,o,s,s[1],n?Me(o,s[1],u,null):Re(s[1]),null),we(e,a=Oe(l,[{xmlns:"http://www.w3.org/2000/svg"},{width:"26"},{height:"24"},{fill:"none"},{"aria-hidden":"true"},{role:"img"},u&1&&s[0]]))},i(s){n||(d(r,s),n=!0)},o(s){_(r,s),n=!1},d(s){s&&k(e),r&&r.d(s)}}}function ev(i,e,t){let{$$slots:n={},$$scope:o}=e;return i.$$set=r=>{t(0,e=ue(ue({},e),ye(r))),"$$scope"in r&&t(1,o=r.$$scope)},e=ye(e),[e,o,n]}var Za=class extends W{constructor(e){super(),G(this,e,ev,$b,K,{})}},Y1=Za;function tv(i){let e,t;return e=new Y1({props:{style:i[1],"data-testid":i[0]?"prev-icon":"next-icon"}}),{c(){V(e.$$.fragment)},m(n,o){A(e,n,o),t=!0},p(n,[o]){let r={};o&2&&(r.style=n[1]),o&1&&(r["data-testid"]=n[0]?"prev-icon":"next-icon"),e.$set(r)},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){_(e.$$.fragment,n),t=!1},d(n){L(e,n)}}}function iv(i,e,t){let{isPrev:n=!1}=e,{isMobile:o=!1}=e,r;return i.$$set=l=>{"isPrev"in l&&t(0,n=l.isPrev),"isMobile"in l&&t(2,o=l.isMobile)},i.$$.update=()=>{i.$$.dirty&5&&(n&&o?t(1,r="transform: scaleX(-1) scale(1.3333);"):n?t(1,r="transform: scaleX(-1);"):o?t(1,r="transform: scale(1.3333);"):t(1,r=void 0))},[n,r,o]}var Xa=class extends W{constructor(e){super(),G(this,e,iv,tv,K,{isPrev:0,isMobile:2})}},Z1=Xa;function nv(i){let e,t;return e=new Z1({props:{isMobile:i[1],isPrev:i[3]==="prev"}}),{c(){V(e.$$.fragment)},m(n,o){A(e,n,o),t=!0},p(n,o){let r={};o&2&&(r.isMobile=n[1]),o&8&&(r.isPrev=n[3]==="prev"),e.$set(r)},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){_(e.$$.fragment,n),t=!1},d(n){L(e,n)}}}function ov(i){let e,t,n;function o(l){i[6](l)}let r={testId:"btn-"+i[3],disabled:i[2],ariaLabel:i[5],click:i[4],$$slots:{default:[nv]},$$scope:{ctx:i}};return i[0]!==void 0&&(r.ref=i[0]),e=new yt({props:r}),ge.push(()=>ze(e,"ref",o)),{c(){V(e.$$.fragment)},m(l,a){A(e,l,a),n=!0},p(l,[a]){let s={};a&8&&(s.testId="btn-"+l[3]),a&4&&(s.disabled=l[2]),a&32&&(s.ariaLabel=l[5]),a&16&&(s.click=l[4]),a&138&&(s.$$scope={dirty:a,ctx:l}),!t&&a&1&&(t=!0,s.ref=l[0],He(()=>t=!1)),e.$set(s)},i(l){n||(d(e.$$.fragment,l),n=!0)},o(l){_(e.$$.fragment,l),n=!1},d(l){L(e,l)}}}function lv(i,e,t){let{ref:n=void 0}=e,{isMobile:o=!1}=e,{disabled:r=!1}=e,{type:l}=e,{click:a}=e,s;function u(c){n=c,t(0,n)}return i.$$set=c=>{"ref"in c&&t(0,n=c.ref),"isMobile"in c&&t(1,o=c.isMobile),"disabled"in c&&t(2,r=c.disabled),"type"in c&&t(3,l=c.type),"click"in c&&t(4,a=c.click)},i.$$.update=()=>{i.$$.dirty&8&&t(5,s=l==="prev"?U("tooltip_previous"):U("tooltip_next"))},[n,o,r,l,a,s,u]}var Ja=class extends W{constructor(e){super(),G(this,e,lv,ov,K,{ref:0,isMobile:1,disabled:2,type:3,click:4})}},vl=Ja;function rv(i){let e,t,n,o=i[2].default,r=Le(o,i,i[1],null),l=[{xmlns:"http://www.w3.org/2000/svg"},{width:"24"},{height:"24"},{fill:"none"},{"aria-hidden":"true"},{"data-testid":"vk-logo-icon"},{role:"img"},i[0]],a={};for(let s=0;s<l.length;s+=1)a=ue(a,l[s]);return{c(){e=D("svg"),r&&r.c(),t=D("path"),f(t,"fill","#fff"),f(t,"fill-rule","evenodd"),f(t,"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"),f(t,"clip-rule","evenodd"),we(e,a)},m(s,u){S(s,e,u),r&&r.m(e,null),p(e,t),n=!0},p(s,[u]){r&&r.p&&(!n||u&2)&&Ve(r,o,s,s[1],n?Me(o,s[1],u,null):Re(s[1]),null),we(e,a=Oe(l,[{xmlns:"http://www.w3.org/2000/svg"},{width:"24"},{height:"24"},{fill:"none"},{"aria-hidden":"true"},{"data-testid":"vk-logo-icon"},{role:"img"},u&1&&s[0]]))},i(s){n||(d(r,s),n=!0)},o(s){_(r,s),n=!1},d(s){s&&k(e),r&&r.d(s)}}}function sv(i,e,t){let{$$slots:n={},$$scope:o}=e;return i.$$set=r=>{t(0,e=ue(ue({},e),ye(r))),"$$scope"in r&&t(1,o=r.$$scope)},e=ye(e),[e,o,n]}var xa=class extends W{constructor(e){super(),G(this,e,sv,rv,K,{})}},X1=xa;function av(i){let e,t,n,o,r,l,a=i[2].default,s=Le(a,i,i[1],null),u=[{xmlns:"http://www.w3.org/2000/svg"},{width:"95"},{height:"24"},{fill:"none"},{"aria-hidden":"true"},{role:"img"},i[0]],c={};for(let m=0;m<u.length;m+=1)c=ue(c,u[m]);return{c(){e=D("svg"),s&&s.c(),t=D("path"),n=D("path"),o=D("path"),r=D("path"),f(t,"fill","#fff"),f(t,"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"),f(n,"fill","#fff"),f(n,"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"),f(n,"class","_ru"),f(o,"fill","#fff"),f(o,"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"),f(o,"class","_en"),f(r,"fill","#fff"),f(r,"fill-rule","evenodd"),f(r,"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"),f(r,"clip-rule","evenodd"),we(e,c)},m(m,h){S(m,e,h),s&&s.m(e,null),p(e,t),p(e,n),p(e,o),p(e,r),l=!0},p(m,[h]){s&&s.p&&(!l||h&2)&&Ve(s,a,m,m[1],l?Me(a,m[1],h,null):Re(m[1]),null),we(e,c=Oe(u,[{xmlns:"http://www.w3.org/2000/svg"},{width:"95"},{height:"24"},{fill:"none"},{"aria-hidden":"true"},{role:"img"},h&1&&m[0]]))},i(m){l||(d(s,m),l=!0)},o(m){_(s,m),l=!1},d(m){m&&k(e),s&&s.d(m)}}}function uv(i,e,t){let{$$slots:n={},$$scope:o}=e;return i.$$set=r=>{t(0,e=ue(ue({},e),ye(r))),"$$scope"in r&&t(1,o=r.$$scope)},e=ye(e),[e,o,n]}var $a=class extends W{constructor(e){super(),G(this,e,uv,av,K,{})}},J1=$a;function fv(i){Ie(i,"svelte-1nhjml",'svg[data-testid="vk-video-logo-icon--short"] ._ru,svg[data-testid="vk-video-logo-icon--short"] ._en,svg[data-testid="vk-video-logo-icon"] ._en,svg[data-testid="vk-video-logo-icon--en"] ._ru{visibility:hidden;opacity:0}')}function cv(i){let e,t;return e=new J1({props:{width:i[0],height:"24",viewBox:"0 0 "+(i[0]+1)+" 24","data-testid":i[1]}}),{c(){V(e.$$.fragment)},m(n,o){A(e,n,o),t=!0},p(n,[o]){let r={};o&1&&(r.width=n[0]),o&1&&(r.viewBox="0 0 "+(n[0]+1)+" 24"),o&2&&(r["data-testid"]=n[1]),e.$set(r)},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){_(e.$$.fragment,n),t=!1},d(n){L(e,n)}}}var dv="vk-video-logo-icon--short";function mv(i,e,t){let{short:n=!1}=e,{isCyrillic:o=!0}=e,r,l;return i.$$set=a=>{"short"in a&&t(2,n=a.short),"isCyrillic"in a&&t(3,o=a.isCyrillic)},i.$$.update=()=>{i.$$.dirty&12&&(t(0,r=n?21:95),t(1,l=n?dv:"vk-video-logo-icon"),!o&&!n&&(t(0,r=91),t(1,l="vk-video-logo-icon--en")))},[r,l,n,o]}var eu=class extends W{constructor(e){super(),G(this,e,mv,cv,K,{short:2,isCyrillic:3},fv)}},x1=eu;function _v(i){let e,t;return e=new X1({}),{c(){V(e.$$.fragment)},m(n,o){A(e,n,o),t=!0},p:Se,i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){_(e.$$.fragment,n),t=!1},d(n){L(e,n)}}}function hv(i){let e,t;return e=new x1({props:{short:i[4],isCyrillic:i[5]}}),{c(){V(e.$$.fragment)},m(n,o){A(e,n,o),t=!0},p(n,o){let r={};o&16&&(r.short=n[4]),o&32&&(r.isCyrillic=n[5]),e.$set(r)},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){_(e.$$.fragment,n),t=!1},d(n){L(e,n)}}}function gv(i){let e,t,n,o,r=[hv,_v],l=[];function a(s,u){return s[2]?0:1}return e=a(i,-1),t=l[e]=r[e](i),{c(){t.c(),n=dt()},m(s,u){l[e].m(s,u),S(s,n,u),o=!0},p(s,u){let c=e;e=a(s,u),e===c?l[e].p(s,u):(ce(),_(l[c],1,1,()=>{l[c]=null}),de(),t=l[e],t?t.p(s,u):(t=l[e]=r[e](s),t.c()),d(t,1),t.m(n.parentNode,n))},i(s){o||(d(t),o=!0)},o(s){_(t),o=!1},d(s){s&&k(n),l[e].d(s)}}}function bv(i){let e,t,n;function o(l){i[14](l)}let r={className:"btn-full-opacity",disabled:!i[1],click:i[9],testId:i[2]?"btn-vk-video-logo":"btn-vk-logo",ariaLabel:i[3],$$slots:{default:[gv]},$$scope:{ctx:i}};return i[0]!==void 0&&(r.ref=i[0]),e=new yt({props:r}),ge.push(()=>ze(e,"ref",o)),{c(){V(e.$$.fragment)},m(l,a){A(e,l,a),n=!0},p(l,[a]){let s={};a&2&&(s.disabled=!l[1]),a&4&&(s.testId=l[2]?"btn-vk-video-logo":"btn-vk-logo"),a&8&&(s.ariaLabel=l[3]),a&131124&&(s.$$scope={dirty:a,ctx:l}),!t&&a&1&&(t=!0,s.ref=l[0],He(()=>t=!1)),e.$set(s)},i(l){n||(d(e.$$.fragment,l),n=!0)},o(l){_(e.$$.fragment,l),n=!1},d(l){L(e,l)}}}function vv(i,e,t){let n,o,r,{ref:l=void 0}=e,{logoClickable:a=!1}=e,{targetUrl:s=""}=e,{click:u}=e,c=Gt(),m=st(),h=m.ui.currentGridType$;z(i,h,P=>t(12,n=P));let w=m.ui.isMobile;z(i,w,P=>t(13,o=P));let b=m.isCyrillicRelatedInterface$;z(i,b,P=>t(5,r=P));let C,v,I,y=()=>{var P,B;u(),(B=(P=m.callbacks)==null?void 0:P.onLogoClicked)==null||B.call(P),s&&window.open(s,"_blank")};function g(P){l=P,t(0,l)}return i.$$set=P=>{"ref"in P&&t(0,l=P.ref),"logoClickable"in P&&t(1,a=P.logoClickable),"targetUrl"in P&&t(10,s=P.targetUrl),"click"in P&&t(11,u=P.click)},i.$$.update=()=>{i.$$.dirty&12292&&t(4,I=(o||Rr(n,"l"))&&v)},t(3,C=c.logoType==="vk_video"?U("tooltip_vk_video_logo"):U("tooltip_vk_logo")),t(2,v=c.logoType==="vk_video"||c.logoType==="vk_video_mobile"),[l,a,v,C,I,r,h,w,b,y,s,u,n,o,g]}var tu=class extends W{constructor(e){super(),G(this,e,vv,bv,K,{ref:0,logoClickable:1,targetUrl:10,click:11})}},Nr=tu;import{ChromecastState as Tv}from"@vkontakte/videoplayer-core";import{ChromecastState as $1}from"@vkontakte/videoplayer-core";function yv(i){Ie(i,"svelte-8z1bf5",".connecting.svelte-8z1bf5 .wave.svelte-8z1bf5{animation-duration:1s;animation-iteration-count:infinite}.connecting.svelte-8z1bf5 .wave1.svelte-8z1bf5{animation-name:svelte-8z1bf5-wave1}.connecting.svelte-8z1bf5 .wave2.svelte-8z1bf5{animation-name:svelte-8z1bf5-wave2}.connecting.svelte-8z1bf5 .wave3.svelte-8z1bf5{animation-name:svelte-8z1bf5-wave3}@keyframes svelte-8z1bf5-wave1{0%{opacity:0.3}33%{opacity:1}66%{opacity:1}100%{opacity:1}}@keyframes svelte-8z1bf5-wave2{0%{opacity:0.3}33%{opacity:0.3}66%{opacity:1}100%{opacity:1}}@keyframes svelte-8z1bf5-wave3{0%{opacity:0.3}33%{opacity:0.3}66%{opacity:0.3}100%{opacity:1}}")}function wv(i){let e,t,n,o,r,l,a,s;return{c(){e=D("svg"),t=D("g"),n=D("path"),o=D("path"),r=D("path"),l=D("path"),a=D("path"),s=D("path"),f(n,"class","wave wave1 svelte-8z1bf5"),f(n,"d","M1 18v3h3c0-1.66-1.34-3-3-3z"),f(n,"fill","#fff"),f(o,"class","wave wave2 svelte-8z1bf5"),f(o,"d","M1 14v2c2.76 0 5 2.24 5 5h2c0-3.87-3.13-7-7-7z"),f(o,"fill","#fff"),f(r,"class","wave wave3 svelte-8z1bf5"),f(r,"d","M1 10v2a9 9 0 0 1 9 9h2c0-6.08-4.93-11-11-11z"),f(r,"fill","#fff"),f(l,"d","M21 3H3c-1.1 0-2 .9-2 2v3h2V5h18v14h-7v2h7c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2z"),f(l,"fill","#fff"),f(a,"d","M0 0h24v24H0z"),f(s,"d","M5.667 7.44H18.5v9.167h-5.161a11.947 11.947 0 0 0-7.673-7.672V7.44Z"),f(s,"fill","#fff"),N(s,"hidden",!i[1]),f(t,"fill","none"),f(t,"fill-rule","evenodd"),f(e,"width","24"),f(e,"height","24"),f(e,"xmlns","http://www.w3.org/2000/svg"),f(e,"aria-hidden","true"),f(e,"data-testid","chromecast-icon"),f(e,"class","svelte-8z1bf5"),N(e,"connecting",i[2])},m(u,c){S(u,e,c),p(e,t),p(t,n),p(t,o),p(t,r),p(t,l),p(t,a),p(t,s)},p(u,c){c&2&&N(s,"hidden",!u[1]),c&4&&N(e,"connecting",u[2])},d(u){u&&k(e)}}}function kv(i){let e,t,n,o,r,l,a,s,u,c,m,h,w,b,C,v,I,y,g,P,B;return{c(){e=D("svg"),t=D("g"),n=D("mask"),o=D("path"),l=D("path"),a=D("path"),u=D("path"),c=D("defs"),m=D("clipPath"),h=D("path"),b=D("filter"),C=D("feFlood"),v=D("feColorMatrix"),I=D("feOffset"),y=D("feGaussianBlur"),g=D("feColorMatrix"),P=D("feBlend"),B=D("feBlend"),f(o,"fill",r=i[1]?"#2688EB":"#fff"),f(o,"d","M1.1 3.1h22v18h-22z"),f(l,"fill-rule","evenodd"),f(l,"clip-rule","evenodd"),f(l,"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"),f(n,"id","c"),f(n,"maskUnits","userSpaceOnUse"),f(n,"x","1.1"),f(n,"y","3.1"),f(n,"width","22"),f(n,"height","18"),f(n,"fill","#000"),f(a,"fill-rule","evenodd"),f(a,"clip-rule","evenodd"),f(a,"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"),f(a,"fill",s=i[1]?"#2688EB":"#fff"),f(u,"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"),f(u,"fill","#000"),f(u,"fill-opacity",".12"),f(u,"mask","url(#c)"),f(t,"filter","url(#b)"),f(t,"clip-path","url(#a)"),f(h,"fill",w=i[1]?"#2688EB":"#fff"),f(h,"d","M0 0h24v24H0z"),f(m,"id","a"),f(C,"flood-opacity","0"),f(C,"result","BackgroundImageFix"),f(v,"in","SourceAlpha"),f(v,"values","0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0"),f(v,"result","hardAlpha"),f(y,"stdDeviation","2.5"),f(g,"values","0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.16 0"),f(P,"in2","BackgroundImageFix"),f(P,"result","effect1_dropShadow_4085_178456"),f(B,"in","SourceGraphic"),f(B,"in2","effect1_dropShadow_4085_178456"),f(B,"result","shape"),f(b,"id","b"),f(b,"x","-3.4"),f(b,"y","-1.4"),f(b,"width","30.8"),f(b,"height","26.802"),f(b,"filterUnits","userSpaceOnUse"),f(b,"color-interpolation-filters","sRGB"),f(e,"width","24"),f(e,"height","24"),f(e,"fill","none"),f(e,"xmlns","http://www.w3.org/2000/svg"),f(e,"aria-hidden","true"),f(e,"data-testid","chromecast-mobile-icon")},m(M,q){S(M,e,q),p(e,t),p(t,n),p(n,o),p(n,l),p(t,a),p(t,u),p(e,c),p(c,m),p(m,h),p(c,b),p(b,C),p(b,v),p(b,I),p(b,y),p(b,g),p(b,P),p(b,B)},p(M,q){q&2&&r!==(r=M[1]?"#2688EB":"#fff")&&f(o,"fill",r),q&2&&s!==(s=M[1]?"#2688EB":"#fff")&&f(a,"fill",s),q&2&&w!==(w=M[1]?"#2688EB":"#fff")&&f(h,"fill",w)},d(M){M&&k(e)}}}function Cv(i){let e;function t(r,l){return r[0]?kv:wv}let n=t(i,-1),o=n(i);return{c(){o.c(),e=dt()},m(r,l){o.m(r,l),S(r,e,l)},p(r,[l]){n===(n=t(r,l))&&o?o.p(r,l):(o.d(1),o=n(r),o&&(o.c(),o.m(e.parentNode,e)))},i:Se,o:Se,d(r){r&&k(e),o.d(r)}}}function Sv(i,e,t){let{isMobile:n=!1}=e,{state:o}=e,r,l;return i.$$set=a=>{"isMobile"in a&&t(0,n=a.isMobile),"state"in a&&t(3,o=a.state)},i.$$.update=()=>{i.$$.dirty&8&&(t(2,l=o===$1.CONNECTING),t(1,r=o===$1.CONNECTED))},[n,r,l,o]}var iu=class extends W{constructor(e){super(),G(this,e,Sv,Cv,K,{isMobile:0,state:3},yv)}},em=iu;import{noop as Pv}from"@vkontakte/videoplayer-shared";function Iv(i){let e,t;return e=new em({props:{isMobile:i[1],state:i[2]}}),{c(){V(e.$$.fragment)},m(n,o){A(e,n,o),t=!0},p(n,o){let r={};o&2&&(r.isMobile=n[1]),o&4&&(r.state=n[2]),e.$set(r)},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){_(e.$$.fragment,n),t=!1},d(n){L(e,n)}}}function Ev(i){let e,t,n;function o(l){i[5](l)}let r={ariaLabel:i[4],click:i[3],testId:"btn-chromecast",$$slots:{default:[Iv]},$$scope:{ctx:i}};return i[0]!==void 0&&(r.ref=i[0]),e=new yt({props:r}),ge.push(()=>ze(e,"ref",o)),{c(){V(e.$$.fragment)},m(l,a){A(e,l,a),n=!0},p(l,[a]){let s={};a&16&&(s.ariaLabel=l[4]),a&8&&(s.click=l[3]),a&70&&(s.$$scope={dirty:a,ctx:l}),!t&&a&1&&(t=!0,s.ref=l[0],He(()=>t=!1)),e.$set(s)},i(l){n||(d(e.$$.fragment,l),n=!0)},o(l){_(e.$$.fragment,l),n=!1},d(l){L(e,l)}}}function Av(i,e,t){let{ref:n=void 0}=e,{isMobile:o=!1}=e,{state:r}=e,{click:l=Pv}=e,a;function s(u){n=u,t(0,n)}return i.$$set=u=>{"ref"in u&&t(0,n=u.ref),"isMobile"in u&&t(1,o=u.isMobile),"state"in u&&t(2,r=u.state),"click"in u&&t(3,l=u.click)},i.$$.update=()=>{i.$$.dirty&4&&t(4,a=r===Tv.CONNECTED?U("tooltip_chromecast_on"):U("tooltip_chromecast_off"))},[n,o,r,l,a,s]}var nu=class extends W{constructor(e){super(),G(this,e,Av,Ev,K,{ref:0,isMobile:1,state:2,click:3})}},qr=nu;import{PlaybackState as ou}from"@vkontakte/videoplayer-core";function Lv(i){let e,t;return e=new _r({props:{isActive:i[1]}}),{c(){V(e.$$.fragment)},m(n,o){A(e,n,o),t=!0},p(n,o){let r={};o&2&&(r.isActive=n[1]),e.$set(r)},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){_(e.$$.fragment,n),t=!1},d(n){L(e,n)}}}function Mv(i){let e,t;return e=new yt({props:{className:i[0]?"":"btn--live btn-full-opacity",testId:i[1]?"btn-live":"btn-live-offset",disabled:i[1]&&i[3]===ou.PLAYING,ariaLabel:i[2],click:i[4],$$slots:{default:[Lv]},$$scope:{ctx:i}}}),{c(){V(e.$$.fragment)},m(n,o){A(e,n,o),t=!0},p(n,[o]){let r={};o&1&&(r.className=n[0]?"":"btn--live btn-full-opacity"),o&2&&(r.testId=n[1]?"btn-live":"btn-live-offset"),o&10&&(r.disabled=n[1]&&n[3]===ou.PLAYING),o&4&&(r.ariaLabel=n[2]),o&16&&(r.click=n[4]),o&514&&(r.$$scope={dirty:o,ctx:n}),e.$set(r)},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){_(e.$$.fragment,n),t=!1},d(n){L(e,n)}}}function Vv(i,e,t){let n,{isMobile:o=!1}=e,{isActiveLive:r=!1}=e,{ariaLabel:l=""}=e,a=st(),s=a.state.playbackState$;z(i,s,h=>t(3,n=h));let u=a.actions.internal.switchToActiveLive,c=a.actions.internal.togglePlay,m;return i.$$set=h=>{"isMobile"in h&&t(0,o=h.isMobile),"isActiveLive"in h&&t(1,r=h.isActiveLive),"ariaLabel"in h&&t(2,l=h.ariaLabel)},i.$$.update=()=>{i.$$.dirty&10&&t(4,m=()=>{if(!r){u();return}n===ou.PAUSED&&c()})},[o,r,l,n,m,s]}var lu=class extends W{constructor(e){super(),G(this,e,Vv,Mv,K,{isMobile:0,isActiveLive:1,ariaLabel:2})}},Or=lu;function Rv(i){Ie(i,"svelte-5ygsa2",'.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 Bv(i){let e,t,n,o,r=i[9].default,l=Le(r,i,i[8],null);return{c(){e=T("div"),t=T("div"),l&&l.c(),f(t,"class","tooltip svelte-5ygsa2"),N(t,"active",i[0]),N(t,"pointer",i[1]),f(e,"class","tooltip-wrapper svelte-5ygsa2"),f(e,"style",n=`transform: translate(${i[5]}px, ${i[2]}px);`)},m(a,s){S(a,e,s),p(e,t),l&&l.m(t,null),i[10](t),i[11](e),o=!0},p(a,[s]){l&&l.p&&(!o||s&256)&&Ve(l,r,a,a[8],o?Me(r,a[8],s,null):Re(a[8]),null),(!o||s&1)&&N(t,"active",a[0]),(!o||s&2)&&N(t,"pointer",a[1]),(!o||s&36&&n!==(n=`transform: translate(${a[5]}px, ${a[2]}px);`))&&f(e,"style",n)},i(a){o||(d(l,a),o=!0)},o(a){_(l,a),o=!1},d(a){a&&k(e),l&&l.d(a),i[10](null),i[11](null)}}}function Dv(i,e,t){let n,{$$slots:o={},$$scope:r}=e,{active:l=!1}=e,{pointer:a=!1}=e,{translateXPx:s=0}=e,{translateYPx:u=0}=e,{containerWidth:c}=e,m,h;function w(v){if(!h)return 0;let{width:I}=h.getBoundingClientRect(),y=I/2;return v<y?y:v>c-y?c-y:v}function b(v){ge[v?"unshift":"push"](()=>{h=v,t(4,h)})}function C(v){ge[v?"unshift":"push"](()=>{m=v,t(3,m)})}return i.$$set=v=>{"active"in v&&t(0,l=v.active),"pointer"in v&&t(1,a=v.pointer),"translateXPx"in v&&t(6,s=v.translateXPx),"translateYPx"in v&&t(2,u=v.translateYPx),"containerWidth"in v&&t(7,c=v.containerWidth),"$$scope"in v&&t(8,r=v.$$scope)},i.$$.update=()=>{i.$$.dirty&64&&t(5,n=w(s))},[l,a,u,m,h,n,s,c,r,o,b,C]}var ru=class extends W{constructor(e){super(),G(this,e,Dv,Bv,K,{active:0,pointer:1,translateXPx:6,translateYPx:2,containerWidth:7},Rv)}},tm=ru;var Fr=(i,e,t)=>t.filter(n=>n.time<i*e).pop();function Nv(i){Ie(i,"svelte-l51fc1",".timeline-preview.svelte-l51fc1{bottom:18px;border-radius:2px;pointer-events:none}.timeline-preview.mobile.svelte-l51fc1{bottom:72px}.preview.svelte-l51fc1{margin-bottom:10px;background-color:var(--timeline-preview-bg);box-shadow:0 0 2px var(--timeline-preview-shadow), 0 8px 24px var(--timeline-preview-shadow);border-radius:8px;border:1px solid var(--white)}.episode.svelte-l51fc1{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);max-width:150px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;text-align:center;font-weight:500}.time.svelte-l51fc1{font-size:13px;line-height:16px;text-align:center;color:var(--slider-filled-bg);text-shadow:0 8px 24px var(--timeline-preview-shadow), 0 0 2px var(--timeline-preview-shadow);font-weight:500}")}function im(i){let e;function t(r,l){return r[2]&&r[10].completed===!1?Ov:qv}let n=t(i,-1),o=n(i);return{c(){o.c(),e=dt()},m(r,l){o.m(r,l),S(r,e,l)},p(r,l){n===(n=t(r,l))&&o?o.p(r,l):(o.d(1),o=n(r),o&&(o.c(),o.m(e.parentNode,e)))},d(r){r&&k(e),o.d(r)}}}function qv(i){let e=(i[10].text||"")+"",t;return{c(){t=qe(e)},m(n,o){S(n,t,o)},p(n,o){o&1024&&e!==(e=(n[10].text||"")+"")&&Ye(t,e)},d(n){n&&k(t)}}}function Ov(i){let e=U("tooltip_episode_unfinished")+"",t;return{c(){t=qe(e)},m(n,o){S(n,t,o)},p:Se,d(n){n&&k(t)}}}function nm(i){let e,t;return{c(){e=T("div"),t=qe(i[0]),f(e,"class","time svelte-l51fc1")},m(n,o){S(n,e,o),p(e,t)},p(n,o){o&1&&Ye(t,n[0])},d(n){n&&k(e)}}}function Fv(i){let e,t,n,o,r,l,a=i[10]&&im(i),s=!i[2]&&nm(i);return{c(){e=T("div"),t=T("div"),o=R(),r=T("div"),a&&a.c(),l=R(),s&&s.c(),f(t,"class","preview svelte-l51fc1"),f(t,"style",n=`width: ${i[3]}px; height: ${i[4]}px; background-image: url(${i[5]}); background-size: ${i[6]}px ${i[7]}px; background-position: ${i[8]}px ${i[9]}px; transform: translateY(${i[11]%180?-35:0}px) rotate(${i[11]}deg);`),f(r,"class","episode svelte-l51fc1"),f(e,"class","timeline-preview svelte-l51fc1"),N(e,"mobile",i[1])},m(u,c){S(u,e,c),p(e,t),p(e,o),p(e,r),a&&a.m(r,null),p(e,l),s&&s.m(e,null)},p(u,[c]){c&3064&&n!==(n=`width: ${u[3]}px; height: ${u[4]}px; background-image: url(${u[5]}); background-size: ${u[6]}px ${u[7]}px; background-position: ${u[8]}px ${u[9]}px; transform: translateY(${u[11]%180?-35:0}px) rotate(${u[11]}deg);`)&&f(t,"style",n),u[10]?a?a.p(u,c):(a=im(u),a.c(),a.m(r,null)):a&&(a.d(1),a=null),u[2]?s&&(s.d(1),s=null):s?s.p(u,c):(s=nm(u),s.c(),s.m(e,null)),c&2&&N(e,"mobile",u[1])},i:Se,o:Se,d(u){u&&k(e),a&&a.d(),s&&s.d()}}}var yl=150;function Hv(i,e,t){let n,{time:o=""}=e,{isMobile:r=!1}=e,{videoEpisodes:l=[]}=e,{previewThumbsData:a}=e,{progress:s=0}=e,{duration:u=0}=e,{isInteractive:c=!1}=e,h=st().ui.rotateAlpha;z(i,h,q=>t(11,n=q));let w,b,C,v,I,y,g,P;function B(){let q=a.frameWidth,te=a.frameHeight;return q>yl?(te=te/q*yl,q=yl):te>yl&&(q=q/te*yl,te=yl),{width:q,height:te}}function M(q){let te;a.isUV?te=Math.floor(u*q/a.frequency):te=Math.min(a.countTotal,Math.max(0,Math.floor(a.countTotal*q)));let pe=Math.floor(te/a.countPerImage),Z=Math.floor(te%a.countPerImage/a.countPerRow),x=te%a.countPerRow,oe=Math.floor(a.countPerImage/a.countPerRow);!a.isUV&&pe===Math.floor(a.countTotal/a.countPerImage)&&(oe=Math.floor(a.countTotal%a.countPerImage/a.countPerRow),a.countTotal%a.countPerImage%a.countPerRow>0&&oe++);let H=a.countPerRow;!a.isUV&&pe===Math.floor(a.countTotal/a.countPerImage)&&a.countTotal%a.countPerImage>0&&(H=Math.min(a.countPerRow,a.countTotal%a.countPerImage));let j=w*H,J=b*oe,F=-x*w,O=-Z*b;return{imgSrc:a.links[pe],imgWidth:j,imgHeight:J,imgOffsetX:F,imgOffsetY:O}}return i.$$set=q=>{"time"in q&&t(0,o=q.time),"isMobile"in q&&t(1,r=q.isMobile),"videoEpisodes"in q&&t(13,l=q.videoEpisodes),"previewThumbsData"in q&&t(14,a=q.previewThumbsData),"progress"in q&&t(15,s=q.progress),"duration"in q&&t(16,u=q.duration),"isInteractive"in q&&t(2,c=q.isInteractive)},i.$$.update=()=>{i.$$.dirty&32768&&t(5,{imgSrc:C,imgWidth:v,imgHeight:I,imgOffsetX:y,imgOffsetY:g}=M(s),C,(t(6,v),t(15,s)),(t(7,I),t(15,s)),(t(8,y),t(15,s)),(t(9,g),t(15,s))),i.$$.dirty&106496&&t(10,P=Fr(s,u,l))},t(3,{width:w,height:b}=B(),w,t(4,b)),[o,r,c,w,b,C,v,I,y,g,P,n,h,l,a,s,u]}var su=class extends W{constructor(e){super(),G(this,e,Hv,Fv,K,{time:0,isMobile:1,videoEpisodes:13,previewThumbsData:14,progress:15,duration:16,isInteractive:2},Nv)}},om=su;function zv(i){Ie(i,"svelte-5lzly8",".time.svelte-5lzly8{display:inline-block;padding:6px 10px;border-radius:3px;color:var(--white);background-color:rgba(41, 41, 41, .8)}")}function Uv(i){let e,t;return{c(){e=T("span"),t=qe(i[8]),f(e,"class","time svelte-5lzly8")},m(n,o){S(n,e,o),p(e,t)},p(n,o){o[0]&256&&Ye(t,n[8])},i:Se,o:Se,d(n){n&&k(e)}}}function Kv(i){let e,t;return e=new om({props:{time:i[8],isMobile:i[11],videoEpisodes:i[4],previewThumbsData:i[22],progress:i[9],duration:i[2],isInteractive:i[24]}}),{c(){V(e.$$.fragment)},m(n,o){A(e,n,o),t=!0},p(n,o){let r={};o[0]&256&&(r.time=n[8]),o[0]&2048&&(r.isMobile=n[11]),o[0]&16&&(r.videoEpisodes=n[4]),o[0]&512&&(r.progress=n[9]),o[0]&4&&(r.duration=n[2]),e.$set(r)},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){_(e.$$.fragment,n),t=!1},d(n){L(e,n)}}}function jv(i){let e,t,n,o,r=[Kv,Uv],l=[];function a(s,u){return s[15].features.timelinePreview&&s[22]&&!s[1]?0:1}return e=a(i,[-1,-1]),t=l[e]=r[e](i),{c(){t.c(),n=dt()},m(s,u){l[e].m(s,u),S(s,n,u),o=!0},p(s,u){let c=e;e=a(s,u),e===c?l[e].p(s,u):(ce(),_(l[c],1,1,()=>{l[c]=null}),de(),t=l[e],t?t.p(s,u):(t=l[e]=r[e](s),t.c()),d(t,1),t.m(n.parentNode,n))},i(s){o||(d(t),o=!0)},o(s){_(t),o=!1},d(s){s&&k(n),l[e].d(s)}}}function Wv(i){let e,t,n,o,r,l=[i[10]],a={$$slots:{default:[jv]},$$scope:{ctx:i}};for(let c=0;c<l.length;c+=1)a=ue(a,l[c]);e=new tm({props:a});function s(c){i[43](c)}let u={isActiveLive:i[12],isMobile:i[11],ariaLabel:U("aria_timeline"),ariaValueMin:0,ariaValueMax:i[2],ariaValueNow:Math.round(i[7]*100),ariaValueText:U("aria_timeline_value",{position:i[6],duration:i[5]}),loadedProgress:i[13],filledProgress:i[7],handleProgress:i[7],videoEpisodes:i[4],onPointerDown:i[29],onHandleMove:i[30],onPointerMove:i[33],onPointerUp:i[31],onPointerEnter:i[32],onPointerLeave:i[34],onDisabledClick:i[27],isInteractive:i[24],disabled:i[14].has("TIMELINE"),hideHandel:i[3]};return i[0]!==void 0&&(u.ref=i[0]),n=new gl({props:u}),ge.push(()=>ze(n,"ref",s)),{c(){V(e.$$.fragment),t=R(),V(n.$$.fragment)},m(c,m){A(e,c,m),S(c,t,m),A(n,c,m),r=!0},p(c,m){let h=m[0]&1024?Oe(l,[Qf(c[10])]):{};m[0]&2838|m[1]&524288&&(h.$$scope={dirty:m,ctx:c}),e.$set(h);let w={};m[0]&4096&&(w.isActiveLive=c[12]),m[0]&2048&&(w.isMobile=c[11]),m[0]&4&&(w.ariaValueMax=c[2]),m[0]&128&&(w.ariaValueNow=Math.round(c[7]*100)),m[0]&96&&(w.ariaValueText=U("aria_timeline_value",{position:c[6],duration:c[5]})),m[0]&8192&&(w.loadedProgress=c[13]),m[0]&128&&(w.filledProgress=c[7]),m[0]&128&&(w.handleProgress=c[7]),m[0]&16&&(w.videoEpisodes=c[4]),m[0]&16384&&(w.disabled=c[14].has("TIMELINE")),m[0]&8&&(w.hideHandel=c[3]),!o&&m[0]&1&&(o=!0,w.ref=c[0],He(()=>o=!1)),n.$set(w)},i(c){r||(d(e.$$.fragment,c),d(n.$$.fragment,c),r=!0)},o(c){_(e.$$.fragment,c),_(n.$$.fragment,c),r=!1},d(c){c&&k(t),L(e,c),L(n,c)}}}function Gv(i,e,t){var fe;let n,o,r,l,a,s,u,c,m,h,w,{showTimeline:b=!1}=e,{ref:C=void 0}=e,v=st(),I=Gt(),y=v.state.bufferedProgress$;z(i,y,Pe=>t(13,h=Pe));let g=v.state.positionWithScrubbing$;z(i,g,Pe=>t(41,s=Pe));let P=v.state.duration$;z(i,P,Pe=>t(2,r=Pe));let B=v.state.isLive$;z(i,B,Pe=>t(1,o=Pe));let M=v.state.isActiveLive$;z(i,M,Pe=>t(12,m=Pe));let q=v.ui.isMobile;z(i,q,Pe=>t(11,c=Pe));let te=I.features.episodes?v.actions.internal.getVideoEpisodes():void 0,pe=v.actions.internal.getPreviewThumbsData(),Z=v.state.interactiveEpisodes$;z(i,Z,Pe=>t(42,u=Pe));let x=v.state.isInteractive,oe=v.state.isInteractiveTime$;z(i,oe,Pe=>t(3,l=Pe));let H=v.state.isInteractiveExpectation$;z(i,H,Pe=>t(40,a=Pe));let j=v.actions.internal.correctSeekTimeToInteractive,J=(fe=v.callbacks)==null?void 0:fe.onDisabledTimelineClick,F=v.ui.controls.disabledControls$;z(i,F,Pe=>t(14,w=Pe));let O,Q,X,le,De=!1,$e="",Ee=0,Be=0,Ne=0,Je;function se(Pe){return!j||!x?Pe:j(Pe*r)/r}function _e(Pe){v.actions.internal.startScrubbing(se(Pe))}function ut(Pe){l||v.actions.internal.progressScrubbing(se(Pe))}function Ce(Pe){v.actions.internal.completeScrubbing(se(Pe)),t(36,De=!1)}function Ke(Pe,je,ae){Ge(Pe,je,ae),t(36,De=!0)}function ht(Pe,je,ae){Ge(Pe,je,ae),t(36,De=!0)}function Ze(){t(36,De=!1)}function Ge(Pe,je,ae){t(9,Ne=se(Pe)),t(37,Ee=je),ae&&t(38,Be=ae),t(8,$e=xe(Pe))}function xe(Pe){let je=Rn((o?1-Pe:Pe)*r);return o?`-${je}`:je}function tt(Pe){C=Pe,t(0,C)}return i.$$set=Pe=>{"showTimeline"in Pe&&t(35,b=Pe.showTimeline),"ref"in Pe&&t(0,C=Pe.ref)},i.$$.update=()=>{i.$$.dirty[1]&2048&&t(4,O=x?u:te),i.$$.dirty[0]&4&&t(5,Q=Rn(r)),i.$$.dirty[1]&1024&&t(6,X=Rn(s)),i.$$.dirty[0]&4|i.$$.dirty[1]&1024&&t(7,le=s/r),i.$$.dirty[0]&8|i.$$.dirty[1]&512&&t(39,Je=a||l),i.$$.dirty[0]&2|i.$$.dirty[1]&496&&t(10,n={containerWidth:Be,translateXPx:Ee,translateYPx:x&&pe?-36:-16,active:De&&b&&!Je,pointer:!I.features.timelinePreview||!pe||o})},[C,o,r,l,O,Q,X,le,$e,Ne,n,c,m,h,w,I,y,g,P,B,M,q,pe,Z,x,oe,H,J,F,_e,ut,Ce,Ke,ht,Ze,b,De,Ee,Be,Je,a,s,u,tt]}var au=class extends W{constructor(e){super(),G(this,e,Gv,Wv,K,{showTimeline:35,ref:0},zv,[-1,-1])}},lm=au;function Qv(i){let e,t;return e=new gl({props:{ariaValueMin:0,ariaValueMax:i[0],ariaValueNow:Math.round(i[3]*100),ariaValueText:U("aria_timeline_value",{position:i[2],duration:i[1]}),filledProgress:i[3],isAds:!0,hideHandel:!0,squareBorders:i[4]}}),{c(){V(e.$$.fragment)},m(n,o){A(e,n,o),t=!0},p(n,[o]){let r={};o&1&&(r.ariaValueMax=n[0]),o&8&&(r.ariaValueNow=Math.round(n[3]*100)),o&6&&(r.ariaValueText=U("aria_timeline_value",{position:n[2],duration:n[1]})),o&8&&(r.filledProgress=n[3]),o&16&&(r.squareBorders=n[4]),e.$set(r)},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){_(e.$$.fragment,n),t=!1},d(n){L(e,n)}}}function Yv(i,e,t){let n,{position:o=0}=e,{duration:r=0}=e,a=st().ui.isMobile;z(i,a,m=>t(4,n=m));let s,u,c;return i.$$set=m=>{"position"in m&&t(6,o=m.position),"duration"in m&&t(0,r=m.duration)},i.$$.update=()=>{i.$$.dirty&1&&t(1,s=Rn(r)),i.$$.dirty&64&&t(2,u=Rn(o)),i.$$.dirty&65&&t(3,c=o/r)},[r,s,u,c,n,a,o]}var uu=class extends W{constructor(e){super(),G(this,e,Yv,Qv,K,{position:6,duration:0})}},Hr=uu;function Zv(i){Ie(i,"svelte-1gqonyf",".timeline.svelte-1gqonyf{position:relative;pointer-events:all;display:flex;align-items:center;bottom:0;width:100%;min-width:86px;padding:3px 10px 4px;box-sizing:border-box}.timeline.mobile.svelte-1gqonyf{height:16px;padding:6px 12px 7px;margin-top:6px}.timeline-stub.svelte-1gqonyf{width:100%;min-width:20px}.timeline-stub.mobile.svelte-1gqonyf{height:8px}")}function Xv(i){let e;return{c(){e=T("div"),f(e,"class","timeline-stub svelte-1gqonyf"),N(e,"mobile",i[3])},m(t,n){S(t,e,n)},p(t,n){n&8&&N(e,"mobile",t[3])},i:Se,o:Se,d(t){t&&k(e)}}}function Jv(i){let e,t,n,o,r=[$v,xv],l=[];function a(s,u){return s[1]?0:1}return t=a(i,-1),n=l[t]=r[t](i),{c(){e=T("div"),n.c(),f(e,"class","timeline svelte-1gqonyf"),N(e,"mobile",i[3])},m(s,u){S(s,e,u),l[t].m(e,null),o=!0},p(s,u){let c=t;t=a(s,u),t===c?l[t].p(s,u):(ce(),_(l[c],1,1,()=>{l[c]=null}),de(),n=l[t],n?n.p(s,u):(n=l[t]=r[t](s),n.c()),d(n,1),n.m(e,null)),(!o||u&8)&&N(e,"mobile",s[3])},i(s){o||(d(n),o=!0)},o(s){_(n),o=!1},d(s){s&&k(e),l[t].d()}}}function xv(i){let e,t,n;function o(l){i[14](l)}let r={showTimeline:i[2]};return i[0]!==void 0&&(r.ref=i[0]),e=new lm({props:r}),ge.push(()=>ze(e,"ref",o)),{c(){V(e.$$.fragment)},m(l,a){A(e,l,a),n=!0},p(l,a){let s={};a&4&&(s.showTimeline=l[2]),!t&&a&1&&(t=!0,s.ref=l[0],He(()=>t=!1)),e.$set(s)},i(l){n||(d(e.$$.fragment,l),n=!0)},o(l){_(e.$$.fragment,l),n=!1},d(l){L(e,l)}}}function $v(i){let e,t;return e=new Hr({props:{position:i[4],duration:i[5]}}),{c(){V(e.$$.fragment)},m(n,o){A(e,n,o),t=!0},p(n,o){let r={};o&16&&(r.position=n[4]),o&32&&(r.duration=n[5]),e.$set(r)},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){_(e.$$.fragment,n),t=!1},d(n){L(e,n)}}}function e4(i){let e,t,n,o,r=[Jv,Xv],l=[];function a(s,u){return s[2]?0:1}return e=a(i,-1),t=l[e]=r[e](i),{c(){t.c(),n=dt()},m(s,u){l[e].m(s,u),S(s,n,u),o=!0},p(s,[u]){let c=e;e=a(s,u),e===c?l[e].p(s,u):(ce(),_(l[c],1,1,()=>{l[c]=null}),de(),t=l[e],t?t.p(s,u):(t=l[e]=r[e](s),t.c()),d(t,1),t.m(n.parentNode,n))},i(s){o||(d(t),o=!0)},o(s){_(t),o=!1},d(s){s&&k(n),l[e].d(s)}}}function t4(i,e,t){let n,o,r,l,{isAds:a=!1}=e,{canRewindLive:s}=e,{isRewindableLive:u}=e,{isHidden:c=!1}=e,{ref:m=void 0}=e,h=st(),w=h.state.isLive$;z(i,w,g=>t(13,n=g));let b=h.ads.duration;z(i,b,g=>t(5,l=g));let C=h.ads.position;z(i,C,g=>t(4,r=g));let v=h.ui.isMobile;z(i,v,g=>t(3,o=g));let I;function y(g){m=g,t(0,m)}return i.$$set=g=>{"isAds"in g&&t(1,a=g.isAds),"canRewindLive"in g&&t(10,s=g.canRewindLive),"isRewindableLive"in g&&t(11,u=g.isRewindableLive),"isHidden"in g&&t(12,c=g.isHidden),"ref"in g&&t(0,m=g.ref)},i.$$.update=()=>{i.$$.dirty&15362&&t(2,I=!c&&(!n||n&&s&&u||a))},[m,a,I,o,r,l,w,b,C,v,s,u,c,n,y]}var fu=class extends W{constructor(e){super(),G(this,e,t4,e4,K,{isAds:1,canRewindLive:10,isRewindableLive:11,isHidden:12,ref:0},Zv)}},zr=fu;import{noop as r4}from"@vkontakte/videoplayer-shared";function i4(i){let e,t,n,o,r,l=i[2].default,a=Le(l,i,i[1],null),s=[{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[0]],u={};for(let c=0;c<s.length;c+=1)u=ue(u,s[c]);return{c(){e=D("svg"),a&&a.c(),t=D("path"),n=D("path"),o=D("path"),f(t,"fill","#fff"),f(t,"fill-rule","evenodd"),f(t,"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"),f(t,"clip-rule","evenodd"),f(n,"fill","#fff"),f(n,"fill-rule","evenodd"),f(n,"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"),f(n,"clip-rule","evenodd"),f(o,"fill","#fff"),f(o,"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"),we(e,u)},m(c,m){S(c,e,m),a&&a.m(e,null),p(e,t),p(e,n),p(e,o),r=!0},p(c,[m]){a&&a.p&&(!r||m&2)&&Ve(a,l,c,c[1],r?Me(l,c[1],m,null):Re(c[1]),null),we(e,u=Oe(s,[{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"},m&1&&c[0]]))},i(c){r||(d(a,c),r=!0)},o(c){_(a,c),r=!1},d(c){c&&k(e),a&&a.d(c)}}}function n4(i,e,t){let{$$slots:n={},$$scope:o}=e;return i.$$set=r=>{t(0,e=ue(ue({},e),ye(r))),"$$scope"in r&&t(1,o=r.$$scope)},e=ye(e),[e,o,n]}var cu=class extends W{constructor(e){super(),G(this,e,n4,i4,K,{})}},rm=cu;function o4(i){let e,t,n,o=i[2].default,r=Le(o,i,i[1],null),l=[{xmlns:"http://www.w3.org/2000/svg"},{width:"12"},{height:"13"},{fill:"none"},{"aria-hidden":"true"},{"data-testid":"chevron-light-icon"},{role:"img"},i[0]],a={};for(let s=0;s<l.length;s+=1)a=ue(a,l[s]);return{c(){e=D("svg"),r&&r.c(),t=D("path"),f(t,"fill","#fff"),f(t,"fill-rule","evenodd"),f(t,"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"),f(t,"clip-rule","evenodd"),f(t,"opacity",".7"),we(e,a)},m(s,u){S(s,e,u),r&&r.m(e,null),p(e,t),n=!0},p(s,[u]){r&&r.p&&(!n||u&2)&&Ve(r,o,s,s[1],n?Me(o,s[1],u,null):Re(s[1]),null),we(e,a=Oe(l,[{xmlns:"http://www.w3.org/2000/svg"},{width:"12"},{height:"13"},{fill:"none"},{"aria-hidden":"true"},{"data-testid":"chevron-light-icon"},{role:"img"},u&1&&s[0]]))},i(s){n||(d(r,s),n=!0)},o(s){_(r,s),n=!1},d(s){s&&k(e),r&&r.d(s)}}}function l4(i,e,t){let{$$slots:n={},$$scope:o}=e;return i.$$set=r=>{t(0,e=ue(ue({},e),ye(r))),"$$scope"in r&&t(1,o=r.$$scope)},e=ye(e),[e,o,n]}var du=class extends W{constructor(e){super(),G(this,e,l4,o4,K,{})}},sm=du;function s4(i){Ie(i,"svelte-1yhs2ga",".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 a4(i){let e,t,n,o;e=new rm({});function r(s,u){if(s[4]==="FULL")return c4;if(s[4]==="COUNT")return f4}let l=r(i,-1),a=l&&l(i);return{c(){V(e.$$.fragment),t=R(),a&&a.c(),n=dt()},m(s,u){A(e,s,u),S(s,t,u),a&&a.m(s,u),S(s,n,u),o=!0},p(s,u){l===(l=r(s,u))&&a?a.p(s,u):(a&&a.d(1),a=l&&l(s),a&&(a.c(),a.m(n.parentNode,n)))},i(s){o||(d(e.$$.fragment,s),o=!0)},o(s){_(e.$$.fragment,s),o=!1},d(s){s&&(k(t),k(n)),L(e,s),a&&a.d(s)}}}function u4(i){let e,t,n,o,r,l;return r=new sm({}),{c(){e=T("span"),t=qe(i[2]),n=R(),o=T("div"),V(r.$$.fragment),f(e,"class","text mobile svelte-1yhs2ga"),f(o,"class","chevron-episodes svelte-1yhs2ga")},m(a,s){S(a,e,s),p(e,t),S(a,n,s),S(a,o,s),A(r,o,null),l=!0},p(a,s){(!l||s&4)&&Ye(t,a[2])},i(a){l||(d(r.$$.fragment,a),l=!0)},o(a){_(r.$$.fragment,a),l=!1},d(a){a&&(k(e),k(n),k(o)),L(r)}}}function f4(i){let e,t=i[0].length+"",n;return{c(){e=T("span"),n=qe(t),f(e,"class","text count svelte-1yhs2ga")},m(o,r){S(o,e,r),p(e,n)},p(o,r){r&1&&t!==(t=o[0].length+"")&&Ye(n,t)},d(o){o&&k(e)}}}function c4(i){let e,t;return{c(){e=T("span"),t=qe(i[2]),f(e,"class","text svelte-1yhs2ga")},m(n,o){S(n,e,o),p(e,t)},p(n,o){o&4&&Ye(t,n[2])},d(n){n&&k(e)}}}function d4(i){let e,t,n,o,r=[u4,a4],l=[];function a(s,u){return s[6]?0:1}return e=a(i,-1),t=l[e]=r[e](i),{c(){t.c(),n=dt()},m(s,u){l[e].m(s,u),S(s,n,u),o=!0},p(s,u){let c=e;e=a(s,u),e===c?l[e].p(s,u):(ce(),_(l[c],1,1,()=>{l[c]=null}),de(),t=l[e],t?t.p(s,u):(t=l[e]=r[e](s),t.c()),d(t,1),t.m(n.parentNode,n))},i(s){o||(d(t),o=!0)},o(s){_(t),o=!1},d(s){s&&k(n),l[e].d(s)}}}function m4(i){let e,t,n;function o(l){i[19](l)}let r={className:"w-max btn-full-opacity "+(i[6]?"px-0":""),testId:"btn-episodes",click:i[12],disabled:!i[7],ariaExpanded:i[3],ariaLabel:i[5],$$slots:{default:[d4]},$$scope:{ctx:i}};return i[1]!==void 0&&(r.ref=i[1]),e=new yt({props:r}),ge.push(()=>ze(e,"ref",o)),{c(){V(e.$$.fragment)},m(l,a){A(e,l,a),n=!0},p(l,[a]){let s={};a&64&&(s.className="w-max btn-full-opacity "+(l[6]?"px-0":"")),a&8&&(s.ariaExpanded=l[3]),a&32&&(s.ariaLabel=l[5]),a&8388693&&(s.$$scope={dirty:a,ctx:l}),!t&&a&2&&(t=!0,s.ref=l[1],He(()=>t=!1)),e.$set(s)},i(l){n||(d(e.$$.fragment,l),n=!0)},o(l){_(e.$$.fragment,l),n=!1},d(l){L(e,l)}}}function p4(i,e,t){var Z,x,oe;let n,o,r,l,a,s,{position:u=0}=e,{duration:c=0}=e,{timeCodes:m=[]}=e,h=st(),w=(x=(Z=h.callbacks)==null?void 0:Z.onEpisodeChanged)!=null?x:r4,b=!!((oe=h.callbacks)!=null&&oe.onEpisodeClicked),C=h.ui.currentGridType$;z(i,C,H=>t(18,a=H));let v=h.ui.episodes.openedByKeyboard$;z(i,v,H=>t(17,l=H));let I=h.ui.episodes.panelOpened$;z(i,I,H=>t(3,r=H));let y=h.ui.isMobile;z(i,y,H=>t(6,s=H));let g,P=H=>{var J,F,O;if(!!((J=h.callbacks)!=null&&J.onEpisodeClicked)){let Q=fl(H);v.set(Q),I.set(!0),(O=(F=h.callbacks)==null?void 0:F.onEpisodeClicked)==null||O.call(F,Q)}},B,M,q,te=(H,j,J)=>ct(this,null,function*(){yield Wn(),(H==null?void 0:H.getAttribute("aria-expanded"))==="false"&&j&&!J&&(v.set(!1),H.focus())});function pe(H){g=H,t(1,g)}return i.$$set=H=>{"position"in H&&t(13,u=H.position),"duration"in H&&t(14,c=H.duration),"timeCodes"in H&&t(0,m=H.timeCodes)},i.$$.update=()=>{if(i.$$.dirty&24576&&t(16,n=u/c),i.$$.dirty&114689){let H=Fr(n,c,m);H&&(B==null?void 0:B.text)!==H.text&&(w(H),t(15,B=H))}i.$$.dirty&32768&&t(2,o=(B==null?void 0:B.text)||""),i.$$.dirty&262144&&(Bn(a,"xl")?t(4,M="FULL"):Bn(a,"m")&&z1(a,"xl")?t(4,M="COUNT"):t(4,M="SHORT")),i.$$.dirty&4&&t(5,q=`${U("tooltip_episodes")}: ${o}`),i.$$.dirty&131082&&te(g,l,r)},[m,g,o,r,M,q,s,b,C,v,I,y,P,u,c,B,n,l,a,pe]}var mu=class extends W{constructor(e){super(),G(this,e,p4,m4,K,{position:13,duration:14,timeCodes:0},s4)}},Ur=mu;function _4(i){let e,t,n,o,r=i[2].default,l=Le(r,i,i[1],null),a=[{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[0]],s={};for(let u=0;u<a.length;u+=1)s=ue(s,a[u]);return{c(){e=D("svg"),l&&l.c(),t=D("path"),n=D("path"),f(t,"fill","#fff"),f(t,"fill-rule","evenodd"),f(t,"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"),f(t,"clip-rule","evenodd"),f(n,"fill","#fff"),f(n,"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"),we(e,s)},m(u,c){S(u,e,c),l&&l.m(e,null),p(e,t),p(e,n),o=!0},p(u,[c]){l&&l.p&&(!o||c&2)&&Ve(l,r,u,u[1],o?Me(r,u[1],c,null):Re(u[1]),null),we(e,s=Oe(a,[{xmlns:"http://www.w3.org/2000/svg"},{width:"24"},{height:"24"},{fill:"none"},{"aria-hidden":"true"},{"data-testid":"seek-to-interactive-icon"},{role:"img"},c&1&&u[0]]))},i(u){o||(d(l,u),o=!0)},o(u){_(l,u),o=!1},d(u){u&&k(e),l&&l.d(u)}}}function h4(i,e,t){let{$$slots:n={},$$scope:o}=e;return i.$$set=r=>{t(0,e=ue(ue({},e),ye(r))),"$$scope"in r&&t(1,o=r.$$scope)},e=ye(e),[e,o,n]}var pu=class extends W{constructor(e){super(),G(this,e,h4,_4,K,{})}},am=pu;function g4(i){let e,t;return e=new am({}),{c(){V(e.$$.fragment)},m(n,o){A(e,n,o),t=!0},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){_(e.$$.fragment,n),t=!1},d(n){L(e,n)}}}function b4(i){let e,t,n;function o(l){i[4](l)}let r={className:i[1]?"hidden":"",testId:"btn-seek-to-interactive",ariaLabel:U("tooltip_interactive_seek"),disabled:i[2],click:i[3],$$slots:{default:[g4]},$$scope:{ctx:i}};return i[0]!==void 0&&(r.ref=i[0]),e=new yt({props:r}),ge.push(()=>ze(e,"ref",o)),{c(){V(e.$$.fragment)},m(l,a){A(e,l,a),n=!0},p(l,[a]){let s={};a&2&&(s.className=l[1]?"hidden":""),a&4&&(s.disabled=l[2]),a&8&&(s.click=l[3]),a&32&&(s.$$scope={dirty:a,ctx:l}),!t&&a&1&&(t=!0,s.ref=l[0],He(()=>t=!1)),e.$set(s)},i(l){n||(d(e.$$.fragment,l),n=!0)},o(l){_(e.$$.fragment,l),n=!1},d(l){L(e,l)}}}function v4(i,e,t){let{ref:n=void 0}=e,{hidden:o=!1}=e,{disabled:r=!1}=e,{click:l}=e;function a(s){n=s,t(0,n)}return i.$$set=s=>{"ref"in s&&t(0,n=s.ref),"hidden"in s&&t(1,o=s.hidden),"disabled"in s&&t(2,r=s.disabled),"click"in s&&t(3,l=s.click)},[n,o,r,l,a]}var _u=class extends W{constructor(e){super(),G(this,e,v4,b4,K,{ref:0,hidden:1,disabled:2,click:3})}},Kr=_u;function y4(i){let e,t,n,o,r=i[2].default,l=Le(r,i,i[1],null),a=[{xmlns:"http://www.w3.org/2000/svg"},{width:"24"},{height:"24"},{fill:"none"},{"aria-hidden":"true"},{role:"img"},i[0]],s={};for(let u=0;u<a.length;u+=1)s=ue(s,a[u]);return{c(){e=D("svg"),l&&l.c(),t=D("path"),n=D("path"),f(t,"fill","#fff"),f(t,"fill-rule","evenodd"),f(t,"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"),f(t,"clip-rule","evenodd"),f(n,"fill","#fff"),f(n,"fill-rule","evenodd"),f(n,"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"),f(n,"class","_closed"),f(n,"clip-rule","evenodd"),we(e,s)},m(u,c){S(u,e,c),l&&l.m(e,null),p(e,t),p(e,n),o=!0},p(u,[c]){l&&l.p&&(!o||c&2)&&Ve(l,r,u,u[1],o?Me(r,u[1],c,null):Re(u[1]),null),we(e,s=Oe(a,[{xmlns:"http://www.w3.org/2000/svg"},{width:"24"},{height:"24"},{fill:"none"},{"aria-hidden":"true"},{role:"img"},c&1&&u[0]]))},i(u){o||(d(l,u),o=!0)},o(u){_(l,u),o=!1},d(u){u&&k(e),l&&l.d(u)}}}function w4(i,e,t){let{$$slots:n={},$$scope:o}=e;return i.$$set=r=>{t(0,e=ue(ue({},e),ye(r))),"$$scope"in r&&t(1,o=r.$$scope)},e=ye(e),[e,o,n]}var hu=class extends W{constructor(e){super(),G(this,e,w4,y4,K,{})}},um=hu;function k4(i){Ie(i,"svelte-17ceof5",'svg[data-testid="graph-open-icon"] ._closed{visibility:hidden;opacity:0}')}function C4(i){let e,t;return e=new um({props:{"data-testid":i[0]?"graph-close-icon":"graph-open-icon"}}),{c(){V(e.$$.fragment)},m(n,o){A(e,n,o),t=!0},p(n,[o]){let r={};o&1&&(r["data-testid"]=n[0]?"graph-close-icon":"graph-open-icon"),e.$set(r)},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){_(e.$$.fragment,n),t=!1},d(n){L(e,n)}}}function S4(i,e,t){let{isOpened:n=!1}=e;return i.$$set=o=>{"isOpened"in o&&t(0,n=o.isOpened)},[n]}var gu=class extends W{constructor(e){super(),G(this,e,S4,C4,K,{isOpened:0},k4)}},fm=gu;function T4(i){let e,t;return e=new fm({props:{isOpened:i[3]}}),{c(){V(e.$$.fragment)},m(n,o){A(e,n,o),t=!0},p(n,o){let r={};o&8&&(r.isOpened=n[3]),e.$set(r)},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){_(e.$$.fragment,n),t=!1},d(n){L(e,n)}}}function P4(i){let e,t,n;function o(l){i[6](l)}let r={className:i[1]?"hidden":"",testId:"btn-graph",disabled:i[2],ariaLabel:i[5],click:i[4],$$slots:{default:[T4]},$$scope:{ctx:i}};return i[0]!==void 0&&(r.ref=i[0]),e=new yt({props:r}),ge.push(()=>ze(e,"ref",o)),{c(){V(e.$$.fragment)},m(l,a){A(e,l,a),n=!0},p(l,[a]){let s={};a&2&&(s.className=l[1]?"hidden":""),a&4&&(s.disabled=l[2]),a&32&&(s.ariaLabel=l[5]),a&16&&(s.click=l[4]),a&136&&(s.$$scope={dirty:a,ctx:l}),!t&&a&1&&(t=!0,s.ref=l[0],He(()=>t=!1)),e.$set(s)},i(l){n||(d(e.$$.fragment,l),n=!0)},o(l){_(e.$$.fragment,l),n=!1},d(l){L(e,l)}}}function I4(i,e,t){let{ref:n=void 0}=e,{hidden:o=!1}=e,{disabled:r=!1}=e,{graphIsOpened:l=!1}=e,{click:a}=e,s;function u(c){n=c,t(0,n)}return i.$$set=c=>{"ref"in c&&t(0,n=c.ref),"hidden"in c&&t(1,o=c.hidden),"disabled"in c&&t(2,r=c.disabled),"graphIsOpened"in c&&t(3,l=c.graphIsOpened),"click"in c&&t(4,a=c.click)},i.$$.update=()=>{i.$$.dirty&8&&t(5,s=l?U("tooltip_interactive_graph_on"):U("tooltip_interactive_graph_off"))},[n,o,r,l,a,s,u]}var bu=class extends W{constructor(e){super(),G(this,e,I4,P4,K,{ref:0,hidden:1,disabled:2,graphIsOpened:3,click:4})}},jr=bu;function E4(i){let e,t,n,o=i[2].default,r=Le(o,i,i[1],null),l=[{xmlns:"http://www.w3.org/2000/svg"},{width:"24"},{height:"24"},{fill:"none"},{"aria-hidden":"true"},{"data-testid":"replay-icon"},{role:"img"},i[0]],a={};for(let s=0;s<l.length;s+=1)a=ue(a,l[s]);return{c(){e=D("svg"),r&&r.c(),t=D("path"),f(t,"fill","#fff"),f(t,"d","M12 9.096a.4.4 0 0 1-.67.296L7.044 5.493a.67.67 0 0 1 0-.986L11.33.608a.4.4 0 0 1 .67.296V4a8 8 0 1 1-8 8 1 1 0 1 1 2 0 6 6 0 1 0 6-6z"),we(e,a)},m(s,u){S(s,e,u),r&&r.m(e,null),p(e,t),n=!0},p(s,[u]){r&&r.p&&(!n||u&2)&&Ve(r,o,s,s[1],n?Me(o,s[1],u,null):Re(s[1]),null),we(e,a=Oe(l,[{xmlns:"http://www.w3.org/2000/svg"},{width:"24"},{height:"24"},{fill:"none"},{"aria-hidden":"true"},{"data-testid":"replay-icon"},{role:"img"},u&1&&s[0]]))},i(s){n||(d(r,s),n=!0)},o(s){_(r,s),n=!1},d(s){s&&k(e),r&&r.d(s)}}}function A4(i,e,t){let{$$slots:n={},$$scope:o}=e;return i.$$set=r=>{t(0,e=ue(ue({},e),ye(r))),"$$scope"in r&&t(1,o=r.$$scope)},e=ye(e),[e,o,n]}var vu=class extends W{constructor(e){super(),G(this,e,A4,E4,K,{})}},Wr=vu;import{noop as L4}from"@vkontakte/videoplayer-shared";function M4(i){Ie(i,"svelte-1ot3duq",".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 cm(i){let e;return{c(){e=T("div"),f(e,"class","icon-background-mobile svelte-1ot3duq")},m(t,n){S(t,e,n)},d(t){t&&k(e)}}}function V4(i){let e,t,n,o,r=i[1]&&cm(i);return n=new Wr({}),{c(){r&&r.c(),e=R(),t=T("div"),V(n.$$.fragment),f(t,"class","svelte-1ot3duq"),N(t,"mobile",i[1])},m(l,a){r&&r.m(l,a),S(l,e,a),S(l,t,a),A(n,t,null),o=!0},p(l,a){l[1]?r||(r=cm(l),r.c(),r.m(e.parentNode,e)):r&&(r.d(1),r=null),(!o||a&2)&&N(t,"mobile",l[1])},i(l){o||(d(n.$$.fragment,l),o=!0)},o(l){_(n.$$.fragment,l),o=!1},d(l){l&&(k(e),k(t)),r&&r.d(l),L(n)}}}function R4(i){let e,t,n;function o(l){i[5](l)}let r={className:(i[1]?"btn-m--play":"")+" "+i[3],testId:"btn-replay",ariaLabel:U("tooltip_restart"),disabled:i[2],click:i[4],ariaKeyShortCut:Jn.KeyK,$$slots:{default:[V4]},$$scope:{ctx:i}};return i[0]!==void 0&&(r.ref=i[0]),e=new yt({props:r}),ge.push(()=>ze(e,"ref",o)),{c(){V(e.$$.fragment)},m(l,a){A(e,l,a),n=!0},p(l,[a]){let s={};a&10&&(s.className=(l[1]?"btn-m--play":"")+" "+l[3]),a&4&&(s.disabled=l[2]),a&16&&(s.click=l[4]),a&66&&(s.$$scope={dirty:a,ctx:l}),!t&&a&1&&(t=!0,s.ref=l[0],He(()=>t=!1)),e.$set(s)},i(l){n||(d(e.$$.fragment,l),n=!0)},o(l){_(e.$$.fragment,l),n=!1},d(l){L(e,l)}}}function B4(i,e,t){let{ref:n=void 0}=e,{isMobile:o=!1}=e,{disabled:r=!1}=e,{className:l=""}=e,{click:a=L4}=e;function s(u){n=u,t(0,n)}return i.$$set=u=>{"ref"in u&&t(0,n=u.ref),"isMobile"in u&&t(1,o=u.isMobile),"disabled"in u&&t(2,r=u.disabled),"className"in u&&t(3,l=u.className),"click"in u&&t(4,a=u.click)},[n,o,r,l,a,s]}var yu=class extends W{constructor(e){super(),G(this,e,B4,R4,K,{ref:0,isMobile:1,disabled:2,className:3,click:4},M4)}},Nl=yu;function D4(i){let e,t,n,o=i[2].default,r=Le(o,i,i[1],null),l=[{xmlns:"http://www.w3.org/2000/svg"},{width:"24"},{height:"24"},{fill:"none"},{"data-testid":"play-prev-chapter-icon"},{role:"img"},i[0]],a={};for(let s=0;s<l.length;s+=1)a=ue(a,l[s]);return{c(){e=D("svg"),r&&r.c(),t=D("path"),f(t,"fill","#fff"),f(t,"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"),we(e,a)},m(s,u){S(s,e,u),r&&r.m(e,null),p(e,t),n=!0},p(s,[u]){r&&r.p&&(!n||u&2)&&Ve(r,o,s,s[1],n?Me(o,s[1],u,null):Re(s[1]),null),we(e,a=Oe(l,[{xmlns:"http://www.w3.org/2000/svg"},{width:"24"},{height:"24"},{fill:"none"},{"data-testid":"play-prev-chapter-icon"},{role:"img"},u&1&&s[0]]))},i(s){n||(d(r,s),n=!0)},o(s){_(r,s),n=!1},d(s){s&&k(e),r&&r.d(s)}}}function N4(i,e,t){let{$$slots:n={},$$scope:o}=e;return i.$$set=r=>{t(0,e=ue(ue({},e),ye(r))),"$$scope"in r&&t(1,o=r.$$scope)},e=ye(e),[e,o,n]}var wu=class extends W{constructor(e){super(),G(this,e,N4,D4,K,{})}},dm=wu;function q4(i){let e,t;return e=new dm({}),{c(){V(e.$$.fragment)},m(n,o){A(e,n,o),t=!0},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){_(e.$$.fragment,n),t=!1},d(n){L(e,n)}}}function O4(i){let e,t,n;function o(l){i[4](l)}let r={className:i[1]?"hidden":"",testId:"btn-play-prev-chapter",ariaLabel:U("tooltip_interactive_go_back"),disabled:i[2],click:i[3],$$slots:{default:[q4]},$$scope:{ctx:i}};return i[0]!==void 0&&(r.ref=i[0]),e=new yt({props:r}),ge.push(()=>ze(e,"ref",o)),{c(){V(e.$$.fragment)},m(l,a){A(e,l,a),n=!0},p(l,[a]){let s={};a&2&&(s.className=l[1]?"hidden":""),a&4&&(s.disabled=l[2]),a&8&&(s.click=l[3]),a&32&&(s.$$scope={dirty:a,ctx:l}),!t&&a&1&&(t=!0,s.ref=l[0],He(()=>t=!1)),e.$set(s)},i(l){n||(d(e.$$.fragment,l),n=!0)},o(l){_(e.$$.fragment,l),n=!1},d(l){L(e,l)}}}function F4(i,e,t){let{ref:n=void 0}=e,{hidden:o=!1}=e,{disabled:r=!1}=e,{click:l}=e;function a(s){n=s,t(0,n)}return i.$$set=s=>{"ref"in s&&t(0,n=s.ref),"hidden"in s&&t(1,o=s.hidden),"disabled"in s&&t(2,r=s.disabled),"click"in s&&t(3,l=s.click)},[n,o,r,l,a]}var ku=class extends W{constructor(e){super(),G(this,e,F4,O4,K,{ref:0,hidden:1,disabled:2,click:3})}},Gr=ku;import{noop as mm}from"@vkontakte/videoplayer-shared";function H4(i){Ie(i,"svelte-1x1zctw",".icon.svelte-1x1zctw{width:24px !important;height:24px !important;;}.error-stub.svelte-1x1zctw{display:flex;justify-content:center;align-items:center}.inner.svelte-1x1zctw{width:16px;height:16px;background-color:var(--white)}")}function z4(i){let e,t,n,o;return{c(){e=T("img"),f(e,"class","icon svelte-1x1zctw"),bs(e.src,t=i[0])||f(e,"src",t),f(e,"aria-hidden","true")},m(r,l){S(r,e,l),n||(o=he(e,"error",i[7]),n=!0)},p(r,l){l&1&&!bs(e.src,t=r[0])&&f(e,"src",t)},d(r){r&&k(e),n=!1,o()}}}function U4(i){let e;return{c(){e=T("div"),e.innerHTML='<div class="inner svelte-1x1zctw"></div>',f(e,"class","icon error-stub svelte-1x1zctw")},m(t,n){S(t,e,n)},p:Se,d(t){t&&k(e)}}}function K4(i){let e;function t(r,l){return r[5]?U4:z4}let n=t(i,-1),o=n(i);return{c(){o.c(),e=dt()},m(r,l){o.m(r,l),S(r,e,l)},p(r,l){n===(n=t(r,l))&&o?o.p(r,l):(o.d(1),o=n(r),o&&(o.c(),o.m(e.parentNode,e)))},d(r){r&&k(e),o.d(r)}}}function j4(i){let e,t;return e=new yt({props:{className:i[4]?"btn-full-opacity":"",ariaLabel:i[1],click:i[3],disabled:i[6],testId:i[2],$$slots:{default:[K4]},$$scope:{ctx:i}}}),{c(){V(e.$$.fragment)},m(n,o){A(e,n,o),t=!0},p(n,[o]){let r={};o&16&&(r.className=n[4]?"btn-full-opacity":""),o&2&&(r.ariaLabel=n[1]),o&8&&(r.click=n[3]),o&64&&(r.disabled=n[6]),o&4&&(r.testId=n[2]),o&545&&(r.$$scope={dirty:o,ctx:n}),e.$set(r)},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){_(e.$$.fragment,n),t=!1},d(n){L(e,n)}}}function W4(i,e,t){let n,o,r,{iconUrl:l}=e,{ariaLabel:a}=e,{disabled:s=!1}=e,{testId:u}=e,{onClick:c=mm}=e,m=()=>{t(5,r=!0)};return i.$$set=h=>{"iconUrl"in h&&t(0,l=h.iconUrl),"ariaLabel"in h&&t(1,a=h.ariaLabel),"disabled"in h&&t(8,s=h.disabled),"testId"in h&&t(2,u=h.testId),"onClick"in h&&t(3,c=h.onClick)},i.$$.update=()=>{i.$$.dirty&8&&t(4,n=c===mm),i.$$.dirty&272&&t(6,o=n||s)},t(5,r=!1),[l,a,u,c,n,r,o,m,s]}var Cu=class extends W{constructor(e){super(),G(this,e,W4,j4,K,{iconUrl:0,ariaLabel:1,disabled:8,testId:2,onClick:3},H4)}},Qr=Cu;import{throttleFn as C3}from"@vkontakte/videoplayer-shared";import{ChromecastState as x4,PlaybackState as ql,Player as $4,VideoFormat as Ol}from"@vkontakte/videoplayer-core";import{Tracer as e3,isInvariantQuality as t3}from"@vkontakte/videoplayer-shared";import{assertNonNullable as Kn,getHighestQuality as i3,InterfaceLanguage as n3,clientChecker as o3,isNonNullable as l3,loadVKLangPack as r3,Logger as s3,map as a3,merge as u3,Observable as f3,Subject as Jr,Subscription as Au,ValueSubject as c3,VideoQuality as d3}from"@vkontakte/videoplayer-shared";import{SeekAction as yo}from"@vkontakte/videoplayer-statistics";import"@vkontakte/videoplayer-interactive";import{addScript as G4,assertNonNullable as Gi,Subject as Wo,clearVideoElement as Q4}from"@vkontakte/videoplayer-shared";var pm=(i,e)=>i<400||e<225?5:i<640||e<360?0:i<960||e<540?1:i<1280||e<720?2:3;var Y4="//ad.mail.ru/static/admanhtml/rbadman-html5.min.js",Yr=class{constructor(e,t){this.adman=null;this.initialVolume=1;this.videoElement=null;this.currentAdSection=null;this.actions=null;this.adsState=null;this.playerState=null;this.events={slotRequested$:new Wo,started$:new Wo,paused$:new Wo,resumed$:new Wo,ended$:new Wo,skipped$:new Wo,clicked$:new Wo};this.loadAdman=e=>new Promise((t,n)=>{let o,r=()=>{clearTimeout(o),delete window.admanAsyncInit,window.AdmanHTML?t():n()};G4(Y4,e,this.loadTimeout).then(()=>{window.AdmanHTML?t():(window.admanAsyncInit=r,o=window.setTimeout(r,this.initTimeout))}).catch(()=>{n()})});this.onAdsReady=()=>{this.log({message:"ads ready"}),this.startPreroll()};this.onAdStarted=(e,t)=>{Gi(this.adsState),Gi(this.playerState),Gi(this.actions),this.log({message:`ad started, section: ${e}, banner: ${JSON.stringify(t)}`}),this.events.started$.next(e),t.muted&&(this.setVolume(0),this.actions.setMuted(!0),this.log({message:"ad muted start"}),et(this.playerState.isMobile)&&this.playerState.mobileUnmuteButtonVisible.set(!0)),this.adsState.duration.set(t.duration),this.adsState.playbackState.set("playing"),this.adsState.canSkip.set(t.allowClose),this.adsState.secondsToWatchBeforeSkip.set(t.allowCloseDelay)};this.onAdTimeRemained=({currentTime:e})=>{Gi(this.adsState),this.adsState.position.set(e)};this.onAdPaused=()=>{Gi(this.adsState),this.log({message:"ad paused"}),this.adsState.playbackState.set("paused")};this.onAdPlayed=()=>{Gi(this.adsState),this.log({message:"ad played"}),this.adsState.playbackState.set("playing")};this.onAdMidrollPoint=()=>{Gi(this.adman),Gi(this.actions),this.log({message:"midroll point"}),this.actions.switchFromVideoToAds(),this.currentAdSection="midroll",this.adman.start("midroll")};this.onAdSkipped=()=>{this.log({message:"ad skipped"})};this.onAdClosed=()=>{this.log({message:"ad closed"}),this.switchToVideo()};this.onAdCompleted=()=>{this.log({message:"ad completed"}),this.events.ended$.next(),this.switchToVideo()};this.onAdClicked=()=>{var e;this.log({message:"ad clicked"}),(e=this.videoElement)==null||e.pause(),this.events.clicked$.next()};this.onAdError=()=>{this.log({message:"ad error"}),this.switchToVideo(!0)};this.log=e.createComponentLog("AdmanWrapper"),this.loadTimeout=t.loadTimeout,this.initTimeout=t.initTimeout}init(e,t,n){this.actions=e,this.adsState=t,this.playerState=n}onAdmanLoadingError(){this.log({message:"adman loading error"}),this.switchToVideo(!0)}initAdman(e){if(this.adman)return;let{width:t,height:n,isFullscreen:o,isAutoplay:r,adsContainer:l,adsVideoElement:a,slotId:s,params:u={},duration:c,previewParam:m}=e,h,w=this.playerState&&et(this.playerState.vsid);w&&(h=parseInt(w,36));let b=rt(Vt(rt({dl:encodeURIComponent(window.location.href),autoplay:r,player_width:t,player_height:n,puid10:pm(t,n),puid11:o?0:1,preview:m},h?{request_id:h}:{}),{duration:c}),u),C={slot:s,wrapper:l,videoEl:a,videoQuality:n,params:b,browser:{mobile:!1}},v=new window.AdmanHTML;v.setDebug(!1),v.onReady(this.onAdsReady),v.onStarted(this.onAdStarted),v.onPlayed(this.onAdPlayed),v.onPaused(this.onAdPaused),v.adMidrollPoint(this.onAdMidrollPoint),v.onClosed(this.onAdClosed),v.onSkipped(this.onAdSkipped),v.onClicked(this.onAdClicked),v.onTimeRemained(this.onAdTimeRemained),v.onCompleted(this.onAdCompleted),v.onError(this.onAdError),v.init(C),this.adman=v,this.videoElement=a,this.events.slotRequested$.next(),this.log({message:`adman init, config: ${JSON.stringify(C)}`})}switchToVideo(e=!1){if(this.currentAdSection===null&&!e){this.log({message:"switch to video, no currentAdSection. can't switch"});return}Gi(this.actions),Gi(this.adsState),Gi(this.playerState);let t=this.currentAdSection==="postroll";this.adsState.playbackState.set("inactive"),this.currentAdSection=null,this.playerState.mobileUnmuteButtonVisible.set(!1),this.log({message:`switch to video, isPostroll: ${t}`}),t&&(this.adsState.postrollPassed.set(!0),this.log({message:"postroll passed"})),this.actions.switchFromAdsToVideo(!t)}togglePlay(){Gi(this.adsState),this.log({message:"toggle play"});let e=et(this.adsState.playbackState);e==="playing"?this.pause():e==="paused"&&this.play()}setInitialVolume(e){this.log({message:`set initial volume ${e}`}),this.initialVolume=e}setVolume(e){var t;this.log({message:`set volume ${e}`}),(t=this.adman)==null||t.setVolume(e),this.videoElement&&(this.videoElement.volume=e)}setFullscreen(e){var t;this.log({message:`set fullscreen ${e}`}),(t=this.adman)==null||t.setFullscreen(e)}startPreroll(){Gi(this.adman),this.isDestroyed||(this.log({message:"start preroll"}),this.setVolume(this.initialVolume),this.currentAdSection="preroll",this.adman.start("preroll"))}startPostroll(){Gi(this.adman),Gi(this.actions),this.log({message:"start postroll"}),this.actions.switchFromVideoToAds(),this.currentAdSection="postroll",this.adman.start("postroll")}play(){Gi(this.adman),this.log({message:"ad play"}),this.adman.resume(),this.events.resumed$.next()}pause(){Gi(this.adman),this.log({message:"ad pause"}),this.adman.pause(),this.events.paused$.next()}skip(){Gi(this.adman),this.log({message:"ad skip"}),this.adman.skip(),this.events.skipped$.next()}setPosition(e,t){var n;(n=this.adman)==null||n.setPosition(Math.floor(e),Math.floor(t))}destroy(){var e;this.log({message:"destroy"}),(e=this.adman)==null||e.destroy(),this.videoElement&&Q4(this.videoElement),this.isDestroyed=!0}};var _m=i=>{let e=Math.round(i);return isNaN(e)||e<40?"":e>=40&&e<55?50:e>=55&&e<90?60:e>=90&&e<180?120:e>=180?240:""};var Su=class{constructor(){this.oneLineRegExp=/\r\n|\n|\r/;this.twoLinesRegExp=/\r\n\r\n|\n\n|\r\r/}parse(e){let t=[],n=e.split(this.twoLinesRegExp);for(let o of n){let r={startTime:0,endTime:0,texts:[],lang:""},l=o.split(this.oneLineRegExp);for(let a of l)if(!r.startTime&&!r.endTime){let s=new Zr,{startTime:u,endTime:c}=s.parse(a);r.startTime=u,r.endTime=c}else if(a.trim()!==""){let s=new Tu,{texts:u}=s.parse(a);r.texts=[...r.texts,...u]}(r.startTime||r.endTime)&&r.texts.length>0&&t.push(r)}return t}},Zr=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 t={startTime:0,endTime:0},n=this.timingRegExp.exec(e);return n&&(t.startTime=this.calcTime(n[1],n[2],n[3],n[4]),t.endTime=this.calcTime(n[6],n[7],n[8],n[9])),t}parseTime(e){let t=this.timeRegExp.exec(e);return t?this.calcTime(t[1],t[2],t[3],t[4]):0}isTime(e){return this.timeRegExp.test(e)}calcTime(e="0",t="0",n="0",o="0"){let r=Number(e)*60*60,l=Number(t)*60,a=Number(n),s=+`0.${o}`;return r+l+a+s}},Tu=class{constructor(){this.letterTagRegExp=/<[a-z]*>|<\/[a-z]*>/}parse(e){let t={texts:[]},o=e.replace(new RegExp(this.letterTagRegExp,"g"),"").split({[Symbol.split](l){let a=0,s=[];for(;a<l.length;){let u=["<",">"].reduce((c,m)=>{let h=l.indexOf(m,a);return c===-1||c>h?h:c},-1);if(u===-1){s.push(l.substring(a));break}s.push(l.substring(a,u)),a=u+1}return s}}),r=new Zr;for(let l of o)r.isTime(l)?t.texts.push({type:"timestamp",value:r.parseTime(l)}):t.texts.push({type:"text",value:l});return t}},hm=Su;import{isNonNullable as Pu}from"@vkontakte/videoplayer-shared";var vo,Jt,Iu=0,Eu=!1,gm=(i,e,t)=>{var u;let n=i>=Iu,o=i<Iu,r=(c,m=0,h=0)=>c<m&&c<h,l=(c,m=0,h=0)=>c>=m&&c<=h,a=(c,m=0,h=0)=>c>m&&c>h,s=(u=t.find(({lang:c})=>c===e.value))==null?void 0:u.subtitles;if(Iu=i,o&&(Eu=!1),Pu(vo)&&l(i,vo.startTime,vo.endTime)&&vo.lang===e.value)return vo;if(!Pu(Jt)&&(s!=null&&s.length)&&!Eu){let c=s.find(({startTime:m,endTime:h})=>l(i,m,h)||n&&r(i,m,h));Jt=c&&Vt(rt({},c),{lang:e.value}),vo=void 0,!Pu(Jt)&&s[s.length-1].endTime<i&&(Eu=!0);return}else{if(l(i,Jt==null?void 0:Jt.startTime,Jt==null?void 0:Jt.endTime))return vo=Jt,Jt=void 0,vo;(n&&a(i,Jt==null?void 0:Jt.startTime,Jt==null?void 0:Jt.endTime)||o&&r(i,Jt==null?void 0:Jt.startTime,Jt==null?void 0:Jt.endTime))&&(Jt=void 0)}};import{Subscription as Z4}from"@vkontakte/videoplayer-shared";import{OneStat as X4}from"@vkontakte/videoplayer-statistics";var Xr=class{constructor(e,t){this.oneStat=new X4(e,t),this.statSubscription=new Z4}destroy(){this.oneStat.destroy(),this.statSubscription.unsubscribe()}};var bm=({interfaceLanguage:i,isCyrillicRelatedInterface:e,videoId:t,isClip:n,isLiveCatchUpMode:o,statAuthToken:r,isAudioDisabled:l,canDownload:a,callbacks:s,webApi:u,videoEpisodes:c,previewThumbsData:m,uiConfig:h,coreConfig:w,player:b,disabledControls:C,isInteractive:v,interactiveRanges$:I,isInteractiveTime$:y,replayInteractive:g,hasInteractiveBranches:P,playPrevChapterDisabledTooltip:B,additionalButtons:M,looped:q=!1,statistics:te,saveRate:pe})=>{var Jo,Ql,Tl,Pl;let Z=Vt(rt({},w),{configName:[...(Jo=w.configName)!=null?Jo:[],"ui"],isAudioDisabled:l,live:Vt(rt({},(Ql=w.live)!=null?Ql:{}),{isLiveCatchUpMode:!!o})}),x=h,oe=e3.createRootTracer(x.features.saveTraceInfoToFile),H=oe.createComponentTracer("Store"),j=b||new $4(Z,oe),J=new s3,F=new Yr(J,{loadTimeout:x.ads.loadTimeout,initTimeout:x.ads.initTimeout}),O=Do.getInstance(),Q=u==null?void 0:u.pictureInPictureApi,X=u==null?void 0:u.annotationsApi,le=J.createComponentLog("Store"),De,$e,Ee={},Be=te?St(te.oneStat.vsid$):Hn(void 0),Ne=Fe(po()),Je=(Tl=Q==null?void 0:Q.info.isActive$)!=null?Tl:new c3(!1),se=Q==null?void 0:Q.info.type,_e=Fe(0),ut=Fe([]),Ce=u3(j.events.fatalError$,j.events.managedError$).subscribe(E=>ut.update(ee=>[...ee,E])),Ke=Hn(!1,E=>{let ee=j.events.fatalError$.subscribe(()=>E(!0));return()=>ee.unsubscribe()}),ht=E=>ct(void 0,null,function*(){var be;let ee=Object.values(n3).includes(E);if(x.downloadVKLanguages&&(ee&&x.updateBuiltinLanguages||!Rs(E))){let ot;try{ot=yield r3(E,Jf,xf)}catch(bt){(be=te==null?void 0:te.oneStat)==null||be.logError({errorType:"VKLangPack",fatal:!1}),O==null||O.report(bt,{errorType:"VKLangPack",fatal:!1})}ot&&(Vs({language:E,pack:ot,fallback:x.defaultLanguage}),Ze.set(E))}Rs(E)&&Ze.set(E)}),Ze=Fe(i),Ge=Fe(e);ht(i);let xe=(E,ee)=>{let ke=et(Ze);return Bs(ke,E,ee,x.defaultLanguage)},tt=Fe("thumb"),fe=(()=>{let E=Bi([Ke,tt],([ee,ke])=>ee?"crashed":ke);return Vt(rt({},E),{is:ee=>et(E)===ee})})(),Pe=(()=>{let E=Fe(new Set(C));return Vt(rt({},E),{add:ee=>{E.update(ke=>new Set([...ke].concat(ee)))},remove:ee=>{E.update(ke=>{let be=[...ke];return new Set(Array.isArray(ee)?be.filter(ot=>!ee.includes(ot)):be.filter(ot=>ot!==ee))})},includes:ee=>{let ke=et(E);return Array.isArray(ee)?ee.every(be=>ke.has(be)):ke.has(ee)}})})();H.log("create store"),le({message:"create store"});let je=E=>{let ee=E.container;ee.append(j.experimental.element$.getValue()),it=new MutationObserver(ke=>{let{removedNodes:be}=ke[0];be.length&&ee.append(j.experimental.element$.getValue())}),it.observe(ee,{childList:!0})},ae=E=>{le({message:`init video, config: ${JSON.stringify(E)}`}),v?je(E):j.initVideo(E),H.log("init video",{isInteractive:v}),E.subtitles&&j.setExternalTextTracks(E.subtitles),De=E},Te=new Jr,pt=E=>Te.next(E),Ae=new Jr,mt=new Jr,me=new Jr,it=null,kt={actionRewind$:Ae,actionSeek$:mt,inPiP$:Je,inFullscreen$:new f3(E=>Ne.subscribe(ee=>E.next(ee))),actionSetSubtitle$:me,nextMovie$:Te};if(te){let{oneStat:E,statSubscription:ee}=te;ee.add(E.attachTo(j)),ee.add(E.attachToUi(kt)),ee.add(E.attachToAds(F.events)),E.authorize(r).catch(ke=>{le({message:`onestat auth error ${String(ke)}`})})}if(O){let E=new Au,ee=(ke,be)=>E.add(ke.subscribe(be));if(ee(j.events.managedError$,ke=>{O.logIError(ke)}),ee(j.events.fatalError$,ke=>{O.logIError(ke,!0)}),te){let{oneStat:ke}=te;ee(ke.experimental.error$,be=>{O.logIError(be)})}O.sentrySubscription.add(E)}let vt=()=>{o3.isIOS&&$e&&Rc($e)},Ue=new Au().add(j.experimental.element$.subscribe(E=>{E&&($e=E,E.classList.add("player-media"),qo(Q)&&(Q.updateVideoElement(),Q.registryEventHandlers()),v&&E.setAttribute("pip","false"))})).add(j.events.ended$.subscribe(()=>{var E;vt(),(E=s==null?void 0:s.onEnded)==null||E.call(s)})).add(j.events.started$.subscribe(()=>ct(void 0,null,function*(){var ee,ke;qo(Q)&&(yield Q==null?void 0:Q.revealPictureInPicture());let E=j.info.muted$.getValue();(ee=s==null?void 0:s.onStarted)==null||ee.call(s),(ke=Ee.onStarted)==null||ke.call(Ee,E)}))).add(j.events.willSeek$.subscribe(({from:E,to:ee})=>{var ke;(ke=s==null?void 0:s.onSeek)==null||ke.call(s,E,ee)})).add(j.info.position$.subscribe(E=>{var ke;let ee=j.info.duration$.getValue();isFinite(ee)&&ee>0&&((ke=s==null?void 0:s.onTimeupdate)==null||ke.call(s,ee,E),F.setPosition(E,ee))})).add(j.events.fatalError$.subscribe(()=>{var E;(E=s==null?void 0:s.onCrashed)==null||E.call(s)})).add(j.events.loadedMetadata$.subscribe(()=>{Tt.state.loadedMetadata$.set(!0)})).add(j.info.is3DVideo$.subscribe(E=>{Tt.ui.is3DVideo.set(E)})).add(j.info.isEnded$.subscribe(E=>{v&&(E?(y!=null&&y.getValue()&&Pe.add(er),Pe.add("PLAY_BUTTON")):Pe.remove("PLAY_BUTTON"))})).add(j.info.liveTime$.subscribe(E=>{var ee;(ee=s==null?void 0:s.onLiveTime)==null||ee.call(s,E)})).add(j.info.isStalled$.subscribe(E=>{var ee;(ee=s==null?void 0:s.onStalledChanged)==null||ee.call(s,E)})).add(F.events.started$.subscribe(()=>{var E,ee;(ee=(E=s==null?void 0:s.adsInfo)==null?void 0:E.onStarted)==null||ee.call(E)})).add(F.events.ended$.subscribe(()=>{var E,ee;(ee=(E=s==null?void 0:s.adsInfo)==null?void 0:E.onCompleted)==null||ee.call(E)})),Ut=new Au,Rt=()=>{Ut.add(j.events.log$.subscribe(E=>{console.debug("%c sdk ","background:#9ddcf7;",`sdk component: ${E.component}`,E.message)})).add(J.log$.subscribe(E=>{console.debug("%c ui ","background:#f3da0b;",`ui component: ${E.component}.`,E.message)}))},Et=()=>{Ut.unsubscribe()},ei=(E,ee)=>{H.log("start camera manual rotation",{mx:E,my:ee}),j.startCameraManualRotation(E,ee)},Bt=(E=!1)=>{H.log("stop camera manual rotation",{immediate:E}),j.stopCameraManualRotation(E)},Kt=(E,ee,ke)=>{H.log("move camera focus px",{xpx:E,ypx:ee,dt:ke}),j.moveCameraFocusPX(E,ee,ke)},ve=()=>{j.holdCamera()},Qe=()=>{j.releaseCamera()},_t=Hn(j.info.position$.getValue(),E=>{let ee,ke,be=()=>{let ot=j.info.playbackState$.getValue(),bt=j.info.isLive$.getValue(),Yt=j.info.duration$.getValue(),Nt=j.info.position$.getValue();if([ql.PLAYING,ql.PAUSED].includes(ot)){let rn=bt?Nt-Yt:j.getExactTime();rn!==ke&&E(rn),ke=rn}ee=requestAnimationFrame(be)};return be(),()=>cancelAnimationFrame(ee)}),ft=St(Je),Xe=St(j.info.playbackState$),At=St(j.info.currentBuffer$),di=St(j.info.isEnded$),Mt=St(j.info.isLive$),Qi=x.features.playbackRate?St(j.info.canChangePlaybackSpeed$):Hn(!1),sn=St(j.info.liveBufferTime$),ti=St(j.info.volume$),Di=St(j.info.muted$),hn=Ts(j.info.autoQualityLimits$.pipe(a3(({max:E})=>E!==void 0)),((Pl=j.info.autoQualityLimits$.getValue())==null?void 0:Pl.max)!==void 0),Yi=St(j.info.autoQualityLimitingAvailable$),an=St(j.info.availableQualities$),Ci=St(j.info.availableQualitiesFps$),Si=St(j.info.chromecastState$),mi=St(j.info.chromecastDeviceName$),pi=St(j.info.currentFormat$),Ti=St(j.info.throughputEstimation$),Pi=St(j.info.videoBitrate$),ri=St(j.info.intrinsicVideoSize$),jt=St(j.info.duration$),Zi=St(j.info.isAudioAvailable$),Zt=null,Ii=j.info.isBuffering$,Ni=Hn(Ii.getValue(),E=>{let ee=Ii.subscribe(ke=>{ke&&Zt===null?Zt=window.setTimeout(()=>{E(Ii.getValue()),Zt=null},x.loaderDelay):E(ke)});return()=>{ee.unsubscribe(),Zt&&clearTimeout(Zt)}}),Xi=()=>{Zt&&clearTimeout(Zt),Zt=null},Ct=Bi([jt,Mt],([E,ee])=>ee?-E:E),ii=Bi([Xe],([E])=>E===ql.PLAYING),Ji=St(j.info.atLiveEdge$),Pt=St(j.info.atLiveDurationEdge$),_i=St(j.info.position$),xi=Bi([_i,jt],([E,ee])=>isFinite(E)&&isFinite(ee)&&!!ee),qi=Bi([Si],([E])=>E===x4.CONNECTED),xt=St(j.info.availableVideoStreams$),si=x.features.audioLanguages?St(j.info.availableAudioStreams$):Hn([]),Oi=St(j.info.currentVideoStream$),ni=St(j.info.currentAudioStream$),Ei=E=>{E.language&&Ls(E.language),j.setVideoStream(E)},zt=E=>{E.language&&Ls(E.language),j.setAudioStream(E)},Fi=E=>{let ee;if(E.length===1&&(ee=E.at(0)),ee!=null||(ee=E.find(be=>"isDefault"in be&&be.isDefault)),ee)return ee;let ke=Cc();return ke&&(ee=E.find(({language:be})=>ke===be)),ee!=null||(ee=E.at(0)),ee},Ai=!1;Ue.add(j.info.availableAudioStreams$.subscribe(E=>{if(!Ai&&E.length){let ee=Fi(E);ee&&(j.setAudioStream(ee),Ai=!0)}}));let ai=!1;Ue.add(j.info.availableVideoStreams$.subscribe(E=>{if(!ai&&E.length){let ee=Fi(E);ee&&(j.setVideoStream(ee),ai=!0)}}));let oi=Fe(void 0),li=St(j.info.isAutoQualityEnabled$,E=>E&&oi.set(void 0)),un=St(j.info.currentQuality$,()=>oi.set(void 0)),fn=Bi([oi,un],([E,ee])=>E!=null?E:ee),cn=Bi([an,Ci,li,fn,pi],([E,ee,ke,be,ot])=>{let bt=[];ot!==Ol.MPEG&&bt.push({value:"auto",displayValue:xe("auto_quality_option"),selected:ke});let Yt=E.filter(Nt=>!t3(Nt));for(let Nt of Yt){let rn=ee[Nt];bt.push({value:Nt,displayValue:`${Nt}${rn?_m(rn):""}`,selected:ke?!1:Nt===be})}return bt}),Li=St(j.info.currentPlaybackRate$),ui=Bi([Li,Ji,Pt],([E,ee,ke])=>{let be=ke||v?1:x.controls.playbackRateMin,ot=ee?1:x.controls.playbackRateMax,bt=x.controls.playbackRateStep,Yt=[];for(let Nt=be;Nt<=ot;Nt+=bt)Yt.push({value:Nt,displayValue:Nt===1?xe("playback_rate_1"):xe("playback_rate",{multiplier:Nt.toString(10)}),selected:E===Nt});return Yt}),hi=x.features.subtitles?St(j.info.availableTextTracks$):Hn([]),gi=Bi([hi],([E],ee)=>{let ke=[],be=[];for(let ot of E)ot.url&&ke.push(fetch(ot.url));Promise.allSettled(ke).then(ot=>{for(let[bt,Yt]of ot.entries())Yt.status==="fulfilled"&&Yt.value.text().then(Nt=>{let rn=new hm,Io=E[bt].language,xo=!!E[bt].isAuto,Eo=rn.parse(Nt);Io&&Eo&&be.push({lang:Io,subtitles:Eo,isAuto:xo}),bt===ot.length-1&&ee(be)})})}),Dt={displayValue:xe("subtitles_off"),value:"off"},bi=Fe(rt({},Dt)),vi=Bi([gi,bi,gi],([E,ee])=>{if((E==null?void 0:E.length)>0){let ke=[Vt(rt({},Dt),{selected:(ee==null?void 0:ee.value)===Dt.value})];for(let{lang:be,isAuto:ot}of E)Uo[be]&&ke.push({displayValue:ot?xe("subtitles_auto",{language:Uo[be]}):Uo[be],value:be,selected:(ee==null?void 0:ee.value)===be,isAuto:ot});return ke}else return[]}),Hi=Bi([_t,bi,gi],([E,ee,ke])=>{if(ee&&ee.value!==Dt.value)return gm(E,ee,ke)}),dn=Bi([Hi],([E])=>E!=null&&E.texts?E.texts:[]),yi=Fe(!0),nt=Bi([At,Ct,_i,sn],([E,ee,ke,be])=>{var Nt;let ot=(Nt=E==null?void 0:E.end)!=null?Nt:0;if(!be)return ot/ee;let Yt=-ke+be-ee;return(ot-Yt)/ee}),wi=St(j.info.availableSources$),fi=Bi([wi],([E])=>Object.keys((E==null?void 0:E[Ol.MPEG])||{}).length>0),We=()=>{var ke,be,ot;let E=Object.keys(((be=(ke=j.info.availableSources$)==null?void 0:ke.getValue())==null?void 0:be[Ol.MPEG])||{}),ee=i3(E)||d3.Q_144P;return(ot=De.sources[Ol.MPEG])==null?void 0:ot[ee]},mn=()=>{var ee;let E=We();if(E)H.log("download video",{url:E}),uc(E,((ee=De==null?void 0:De.meta)==null?void 0:ee.title)||"video");else{let ke="There is no URL for download video";H.log("download video",{message:ke}),le({message:ke})}},gn=()=>{le({message:"toggle muted"});let E=j.info.muted$.getValue(),ee=j.info.volume$.getValue(),ke=ee===0||E,be=!ke;H.log("toggle muted",{muted:E,volume:ee,soundIsOff:ke,nextValue:be}),$t(be)},zi=()=>{H.log("close settings menu"),Tt.ui.settingsMenuVisible.set(!1)},Ui=E=>{H.log("open settings menu",{wasOpenedByKeyboard:E}),Tt.ui.settingsMenuOpenedByKeyboard.set(!!E),Tt.ui.settingsMenuVisible.set(!0)},wn=E=>{et(Tt.ui.settingsMenuVisible)?zi():Ui(E)},$i=(E,ee=E,ke=!1)=>{var bt,Yt,Nt;let be=!ke,ot=j.info.muted$.getValue();le({message:`set volume, volume: ${E}, preferredVolume: ${ee}, internalCall: ${be}`}),H.log("set volume",{volume:E,preferredVolume:ee,internalCall:be}),j.setVolume(E),F.setVolume(E),be&&((bt=s==null?void 0:s.onVolumeChange)==null||bt.call(s,E)),Es(ee),ot?(j.setMuted(!1),be&&((Yt=s==null?void 0:s.onUnmute)==null||Yt.call(s)),nr(!1)):!ot&&E===0&&(j.setMuted(!0),be&&((Nt=s==null?void 0:s.onMute)==null||Nt.call(s)),nr(!0))},$t=(E,ee=!1)=>{var ot,bt,Yt,Nt;let ke=!ee,be=j.info.volume$.getValue();if(le({message:`set muted, currentVolume: ${be}, mute: ${E}, internalCall: ${ke}`}),H.log("set muted",{mute:E,currentVolume:be,internalCall:ke}),j.setMuted(E),F.setVolume(E?0:be),nr(E),ke&&(E?(ot=s==null?void 0:s.onMute)==null||ot.call(s):(bt=s==null?void 0:s.onUnmute)==null||bt.call(s)),be===0){let rn=(Yt=ir())!=null?Yt:x.volumeDefault;rn===0&&(rn=x.volumeMinRestore,Es(rn)),j.setVolume(rn),F.setVolume(rn),ke&&((Nt=s==null?void 0:s.onVolumeChange)==null||Nt.call(s,rn))}},kn=Fe(!1),Mi=E=>{H.log("set looped",{isLooped:E}),kn.set(E),j.setLooped(E)};Mi(q);let Ki=()=>{j.prepare()},bn=()=>{Kn(Tt);let E=et(Tt.ui.controls.disabledControls$),ee=et(Tt.playerPhase),ke={playerPhase:ee,isInteractive:v,isVideoEnded:!1,action:"none"};if(E.has("PLAY_BUTTON"))return;if(le({message:"toggle play"}),ee==="ads"){ke.action="play",H.log("toggle adman play",ke),F.togglePlay();return}let be=()=>{var bt;le({message:"toggle play, call player.play"}),ke.action="play",j.play(),(bt=s==null?void 0:s.onPlay)==null||bt.call(s)},ot=()=>{var bt;le({message:"toggle play, call player.pause"}),ke.action="pause",j.pause(),(bt=s==null?void 0:s.onPause)==null||bt.call(s)};if(j.info.isEnded$.getValue()){if(le({message:"toggle play, video ended, seek to 0"}),Ae.next(),mt.next(yo.REWIND),v){g==null||g();return}j.seekTime(0),be()}else j.info.playbackState$.getValue()!==ql.PLAYING?be():ot();H.log("toggle play",ke)},Cn=E=>{le({message:`set quality, quality: ${E}`}),H.log("set quality",{quality:E}),j.setAutoQuality(E==="auto"),E!=="auto"?(hc(t,E),oi.set(E),j.setQuality(E)):As()},Sn=E=>{le({message:`set trafficSavingEnabled, value: ${E}`}),H.log("set traffic saving enabled",{trafficSavingEnabled:E}),j.setAutoQualityLimits({max:E?x.trafficSavingLimit:void 0}),wc(E)},en=E=>{H.log("set playback rate",{playbackRate:E}),j.setPlaybackRate(E),x.features.saveRate&&pe&&!j.info.isLive$.getValue()&&Sc(E)},vn=()=>{let E=et(ui),ee=E.findIndex(({selected:be})=>be);if(ee===E.length-1)return;let ke=E[ee+1];en(ke.value)},tn=()=>{let E=et(ui),ee=E.findIndex(({selected:be})=>be);if(ee===0)return;let ke=E[ee-1];en(ke.value)},Qt=E=>{H.log("set subtitles",rt({},E)),E&&E.value!==Dt.value&&me.next(E.isAuto?E.value+"_auto":E.value),bi.set(E)},Dn=()=>{H.log("toggle subtitles");let E=et(vi),ee=et(bi),ke=et(Ze);if((ee==null?void 0:ee.value)===Dt.value){let be=E.filter(ot=>ot.value!==Dt.value).find(ot=>ot.value===ke)||E[1];Qt(be!=null?be:rt({},Dt))}else Qt(Vt(rt({},Dt),{selected:!1}))},ji=(E,ee,ke=!0)=>{if(le({message:`seek to time, time: ${E}`}),H.log("seek to time",{time:E,action:ee,forcePrecise:ke}),mt.next(ee),j.info.isLive$.getValue()){let be=j.info.duration$.getValue(),ot=Math.min(0,be+E);j.seekTime(ot,ke)}else{if(y!=null&&y.getValue())return;j.seekTime(oo(E),ke)}},An=E=>{le({message:`seek to episode start time: ${E}`}),H.log("seek to episode start time",{time:E}),ji(E,yo.EPISODE,!0)},Wt=(E,ee)=>{le({message:`seek to percent, percent: ${E}`}),H.log("seek to percent",{percent:E,action:ee});let ke=Math.round(et(Ct)*E);ji(ke,ee,!1)},Nn=E=>{le({message:`seek external, time: ${E}`}),H.log("seek external",{time:E}),mt.next(yo.UNKNOWN),j.seekTime(j.info.isLive$.getValue()?-E:E)},qn=E=>{var be,ot;let ee=(be=E.max)!=null?be:"none",ke=(ot=E.min)!=null?ot:"none";le({message:`set auto quality limitation. Max: ${ee}. Min: ${ke}`}),H.log("set auto quality limits",{max:ee,min:ke}),j.setAutoQualityLimits(E)},Ln=E=>{le({message:`seek external to episode start time: ${E}`}),H.log("seek external to episode start time",{time:E}),ji(E,yo.EPISODE,!0)},On=E=>{le({message:`set playback rate to: ${E}`}),H.log("set playback rate external",{playbackRate:E}),j.setPlaybackRate(E)},yn=Fe(void 0),nn=Fe(!1),on=E=>{le({message:`start scrubbing, progress: ${E}`}),H.log("start scrubbing",{progress:E}),nn.set(!0),re(E)},re=E=>{yn.set(E)},wt,ln,ie=()=>{yn.set(void 0),nn.set(!1)},gt=()=>{clearTimeout(ln),clearTimeout(wt),wt=window.setTimeout(()=>{ie()},500),$e==null||$e.removeEventListener("seeked",gt)},Ft=E=>{le({message:`complete scrubbing, progress: ${E}`}),H.log("complete scrubbing",{progress:E}),Wt(E,yo.SLIDER),et(Tt.ui.isMobile)&&et(Tt.state.currentFormat$)===Ol.HLS?($e==null||$e.addEventListener("seeked",gt),ln=window.setTimeout(()=>{gt()},300)):ie()},Mn=Bi([_t,Ct,yn],([E,ee,ke],be)=>{be(l3(ke)?ke*ee:E)}),Tn=Fe({width:0,height:0}),Zn=Bi([Tn],([{width:E}],ee)=>{let ke=U1(E);ee(ke)}),$n=Fe(!1),Pn=Bi([Zn,$n],([E,ee])=>ee?M.filter(ke=>!ke.hideOnMobile):M.filter(ke=>{var be;return!((be=ke.hideOnDesktopGridTypes)!=null&&be.includes(E))})),eo=Bi([$n,Ke],([E,ee],ke)=>{ke(E&&ee)}),ne=()=>{mt.next(yo.LIVE),le({message:"switch to active live"}),H.log("switch to active live"),j.seekTime(0),j.info.playbackState$.getValue()!==ql.PLAYING&&Tt.actions.internal.togglePlay()},wo=()=>{H.log("skip adman"),F.skip()},Sl=(E=!0)=>{Kn(Tt),le({message:`switch from ads to video, callPlay: ${E}`}),H.log("switch from ads to video",{callPlay:E}),tt.set("video"),E&&j.play()},ko=()=>{Kn(Tt),le({message:"switch from video to ads"}),H.log("switch from video to ads"),Tt.actions.internal.pause(),vt(),tt.set("ads")},Co=E=>{Kn(Tt);let ee=E?"LiveWaitingStart":"thumb";H.log("set live waiting start",{state:E,playerPhase:ee}),tt.set(ee)},to=E=>{Kn(Tt);let ee=E?"LiveWaitingRecover":"thumb";H.log("set live waiting recover",{state:E,playerPhase:ee}),tt.set(ee)},uo=E=>{Kn(Tt);let ee=E?"LiveWaitingRecord":"thumb";H.log("set live waiting record",{state:E,playerPhase:ee}),tt.set(ee)},Go=()=>(Kn(Tt),H.log("get debug text data"),sc(j,De,Tt)),Qo=()=>(Kn(Tt),JSON.stringify(oe.getFinishedSpans())),So=()=>(Kn(Tt),ac(j,De,Tt)),Yo=()=>$e,Zo=()=>{le({message:"toggle chromecast"}),H.log("toggle chromecast"),j.toggleChromecast()},fo=E=>{var ke;if(Kn(Tt),j.info.isEnded$.getValue())return;let ee=!E;if(et(Tt.playerPhase)==="ads"){le({message:`pause ads, internalCall: ${ee}`}),H.log("pause ads",{internalCall:ee}),F.pause();return}le({message:`pause video, internalCall: ${ee}`}),H.log("pause video",{internalCall:ee}),ee&&((ke=s==null?void 0:s.onPause)==null||ke.call(s)),j.pause()},Xo=E=>{var ke;Kn(Tt);let ee=!E;if(et(Tt.playerPhase)==="ads"){le({message:`play ads, internalCall: ${ee}`}),H.log("play ads",{internalCall:ee}),F.play();return}le({message:`play video, internalCall: ${ee}`}),H.log("play video",{internalCall:ee}),ee&&((ke=s==null?void 0:s.onPlay)==null||ke.call(s)),j.play()},To=(E,ee)=>{Kn(Tt),le({message:`first start, show ads: ${E}, internalCall: ${!ee}`}),H.log("first start",{showAds:E,external:ee}),E?tt.set("ads"):(tt.set("video"),ee?j.play():Tt.actions.internal.togglePlay())},co=()=>(le({message:"getting time codes"}),c),Y=()=>{let E=co();if(!E||[0,1].includes(E.length))return;let ee=j.info.position$.getValue();return E.find(ke=>ke.time>ee)},Lt=E=>{let ee=E;ee||(ee=Y());let ke=j.info.position$.getValue();H.log("seek to next episode",rt({currentTime:ke},ee)),ee&&(le({message:"seek to next episode"}),ji(ee.time,yo.EPISODE,!0))},pn=()=>{let E=co();if(!E||[0,1].includes(E.length))return;let ee=j.info.position$.getValue(),ke=E.findIndex(ot=>ot.time>ee),be=ke===-1?E.length-2:ke-2;if(!(be<0))return E[be]},_n=E=>{let ee=E;ee||(ee=pn());let ke=j.info.position$.getValue();H.log("seek to prev episode",rt({currentTime:ke},ee)),ee&&(le({message:"seek to prev episode"}),ji(ee.time,yo.EPISODE,!0))},io=()=>(le({message:"getting preview thumbs data"}),H.log("get preview thumbs data",rt({},m)),m),Fn=()=>ct(void 0,null,function*(){let E=Q==null?void 0:Q.isActive(),ee="none";Q!=null&&Q.isActive()?(ee="remove",yield Q==null?void 0:Q.remove()):(ee="request",yield Q==null?void 0:Q.request()),H.log("toggle picture in picture",{isActive:E,action:ee})}),no=(E=-90)=>{H.log("rotate video",{alphaDiff:E}),_e.update(ee=>ee+E)},Xn=Fe([]);I==null||I.subscribe(E=>{let ee=[];for(let ke=0;ke<E.length;ke++){let{range:[be,ot],subjects:bt}=E[ke];ke===0&&be!==0&&ee.push({time:0,text:"",interactive:!1,completed:!0}),ee.push({time:be/1e3,text:"",interactive:!0,completed:!bt.length}),ot!==1/0&&ee.push({time:ot/1e3,text:"",interactive:!1,completed:!0})}Xn.set(ee)});let Po=Fe(!1);y==null||y.subscribe(E=>{E&&et(nn)&&ie()});let oo=E=>{if(!v)return E;let ee=et(Xn),ke=et(Ct),ot=et(_i)/ke,bt=ee.find(Yt=>Yt.interactive&&!Yt.completed&&Yt.time>ot);return typeof(bt==null?void 0:bt.time)=="number"?Math.min(E,bt.time-.05):E},Wl=()=>{Tt.ui.episodes.panelOpened$.set(!1)},Gl=()=>{H.log("destroy store"),clearTimeout(ln),clearTimeout(wt),Ue.unsubscribe(),Ut.unsubscribe(),j.destroy(),F.destroy(),te==null||te.destroy(),O==null||O.destroy(),Ce.unsubscribe(),it==null||it.disconnect(),it=null},Tt={interfaceLanguage$:Ze,isCyrillicRelatedInterface$:Ge,initVideo:ae,videoId:t,isClip:n,playerPhase:fe,vsid:Be,state:{positionExact$:_t,positionWithScrubbing$:Mn,duration$:Ct,playbackState$:Xe,isPlaying$:ii,isLoaderVisible:Ni,bufferedProgress$:nt,isLive$:Mt,canChangePlaybackSpeed$:Qi,isActiveLive$:Ji,isOldestAvailableLive$:Pt,isRewindableLive$:xi,isEnded$:di,muted$:Di,volume$:ti,trafficSavingEnabled$:hn,autoQualityLimitingAvailable$:Yi,availableVideoStreams$:xt,availableAudioStreams$:si,videoStream$:Oi,audioStream$:ni,currentQuality$:fn,isAutoQualityEnabled$:li,availableQualities$:cn,currentPlaybackRate$:Li,availablePlaybackRates$:ui,currentSubtitle$:bi,availableSubtitlesList$:vi,currentSubtitleCaptions$:dn,isAutoSubtitleCaptionVisible$:yi,chromecastState$:Si,chromecastDeviceName$:mi,chromecastConnected$:qi,currentFormat$:pi,throughputEstimation$:Ti,videoBitrate$:Pi,videoSize$:ri,errorLog$:ut,crashed$:Ke,isAudioAvailable$:Zi,isAudioDisabled:!!l,canDownload:x.features.download&&!!a,availableSources$:wi,hasMpegSources$:fi,isInteractive:v,showInteractiveGraph:x.features.interactiveGraph,showSeekToInteractive:x.features.seekToInteractive,showPlayPrevChapter:x.features.interactivePlayPrevChapter,showInteractiveTimeIndicator:x.features.interactiveTimeIndicator&&!!et(Xn).length,interactiveEpisodes$:Xn,isInteractiveTime$:y?St(y):Fe(!1),graphIsOpened$:Fe(!1),isInteractiveExpectation$:Po,hasInteractiveBranches:P,playPrevChapterDisabledTooltip:B,looped$:kn,loadedMetadata$:Fe(!1)},ui:{controlsVisible:Fe(!1),touched:Fe(!1),controls:{prevButton:Fe(void 0),playButton:Fe(void 0),replayButton:Fe(void 0),nextButton:Fe(void 0),playPrevChapterButton:Fe(void 0),seekToInteractiveButton:Fe(void 0),interactiveGraphButton:Fe(void 0),liveButton:Fe(void 0),time:Fe(void 0),episodes:Fe(void 0),volume:Fe(void 0),subtitles:Fe(void 0),settings:Fe(void 0),context:Fe(void 0),chromecast:Fe(void 0),pip:Fe(void 0),fullscreen:Fe(void 0),vkLogo:Fe(void 0),interactiveTimeIndicator:Fe(void 0),timeline:Fe(void 0),additionalButtons:M.length?M.reduce(E=>[...E,Fe(void 0)],[]):[],disabledControls$:Pe},modals:{hotKeyMap:{show:Fe(!1),data:Fe({title:"",closeBtnText:"",groups:[]})}},isFullscreen:Ne,rotateAlpha:_e,isAutoplay:Fe(!1),debugPanelVisible:Fe(!1),episodes:{panelOpened$:Fe(!1),openedByKeyboard$:Fe(!1)},contextMenu:{visible$:Fe(!1),btnRef$:Fe(void 0),openedByBtnKeyboard$:Fe(!1),openedByHotKey$:Fe(!1),lastActiveElem$:Fe(void 0),showContextMenuBtn$:Fe(!1),position$:Fe({top:0,left:0})},playerSize:Tn,isMobile:$n,mobileNotReportControlHidden$:eo,mobileUnmuteButtonExpanded:Fe(!1),mobileUnmuteButtonVisible:Fe(!1),icon3DVideoVisible:Fe(!1),settingsMenuVisible:Fe(!1),settingsMenuOpenedByKeyboard:Fe(!1),scrubbingInProgress:nn,is3DVideo:Fe(!1),isPictureInPictureActive$:ft,pictureInPictureType$:Hn(se),currentGridType$:Zn,additionalButtons$:Pn,interactiveHideMobileControls:Fe(!1),overlayContainer$:Fe(void 0),startedByKeyboard$:Fe(!1)},ads:{position:Fe(0),duration:Fe(0),playbackState:Fe("inactive"),canSkip:Fe(!1),secondsToWatchBeforeSkip:Fe(0),postrollPassed:Fe(!1)},webApi:{pictureInPictureApi:Q,annotationsApi:X},actions:{internal:{preload:Ki,firstStart:E=>To(E,!1),pause:()=>fo(!1),togglePlay:bn,toggleMuted:gn,toggleSettingsMenu:wn,openSettingsMenu:Ui,closeSettingsMenu:zi,setVolume:$i,setVideoStream:Ei,setAudioStream:zt,setQuality:Cn,setTrafficSavingEnabled:E=>Sn(E),setPlaybackRate:en,incrementPlaybackRate:vn,decrementPlaybackRate:tn,setSubtitle:Qt,toggleSubtitle:Dn,togglePictureInPicture:Fn,startScrubbing:on,progressScrubbing:re,completeScrubbing:Ft,toggleChromecast:Zo,switchToActiveLive:ne,switchFromAdsToVideo:Sl,switchFromVideoToAds:ko,skipAd:wo,setLiveWaitingStart:Co,setLiveWaitingRecover:to,setLiveWaitingRecord:uo,getDebugTextData:Go,getTraceTextData:Qo,getDebugPanelData:So,getVideoElement:Yo,seekTime:(E,ee,ke)=>ji(E,ee,ke),clearDelayedBufferingCheckTimeout:Xi,seekEpisodeStartTime:An,seekToPercent:Wt,getNextEpisode:Y,seekToNextEpisode:Lt,getPrevEpisode:pn,seekToPrevEpisode:_n,startLogging:Rt,stopLogging:Et,startCameraManualRotation:ei,stopCameraManualRotation:Bt,moveCameraFocusPX:Kt,holdCamera:ve,releaseCamera:Qe,getVideoEpisodes:co,getPreviewThumbsData:io,downloadVideo:mn,addLanguage:Vs,setLanguage:ht,nextMovie:pt,videoRotate:no,correctSeekTimeToInteractive:oo,replayInteractive:g,setLooped:Mi},external:{firstStart:E=>To(E,!0),play:()=>Xo(!0),pause:()=>fo(!0),seekTime:E=>Nn(E),seekEpisodeStartTime:E=>Ln(E),setPlaybackRate:E=>On(E),setAutoQualityLimits:E=>qn(E),setMuted:E=>$t(E,!0),setVolume:E=>$i(E,E,!0),returnFocusToEpisodes:Wl}},callbacks:s,setUiCallbacks:E=>{Ee=rt({},E)},getAdmanWrapper:()=>F,getLogger:()=>J,destroy:Gl};return Tt};var $r=(i,e,t,n)=>{var a;if(!i)return;let o=["tooltipPointerOffsetX","disabledControls$","additionalButtons"],r=["interactiveTimeIndicator"],l=i.getBoundingClientRect();for(let[s,u]of Object.entries(e))if(!["tooltipPointerOffsetX","disabledControls$","additionalButtons"].includes(s)){let c=(a=t[s])==null?void 0:a.getBoundingClientRect(),m=(n||r.includes(s))&&!!c&&!!(c.right-c.left);u.set({positionStartX:0,positionEndX:0,left:m?Math.round(c.left-l.left):0,right:m?Math.round(c.right-l.left):0,top:m?Math.round(c.top-l.top):0,bottom:m?Math.round(c.bottom-l.top):0,isDisplayed:m})}};var es=(i,e,t)=>ct(void 0,null,function*(){yield Wn(),e&&t&&(t.focus(),i.set(!1))});function m3(i){let e,t,n,o=i[2].default,r=Le(o,i,i[1],null),l=[{xmlns:"http://www.w3.org/2000/svg"},{width:"24"},{height:"24"},{fill:"none"},{"aria-hidden":"true"},{"data-testid":"dots-icon"},{role:"img"},i[0]],a={};for(let s=0;s<l.length;s+=1)a=ue(a,l[s]);return{c(){e=D("svg"),r&&r.c(),t=D("path"),f(t,"fill","#fff"),f(t,"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"),we(e,a)},m(s,u){S(s,e,u),r&&r.m(e,null),p(e,t),n=!0},p(s,[u]){r&&r.p&&(!n||u&2)&&Ve(r,o,s,s[1],n?Me(o,s[1],u,null):Re(s[1]),null),we(e,a=Oe(l,[{xmlns:"http://www.w3.org/2000/svg"},{width:"24"},{height:"24"},{fill:"none"},{"aria-hidden":"true"},{"data-testid":"dots-icon"},{role:"img"},u&1&&s[0]]))},i(s){n||(d(r,s),n=!0)},o(s){_(r,s),n=!1},d(s){s&&k(e),r&&r.d(s)}}}function p3(i,e,t){let{$$slots:n={},$$scope:o}=e;return i.$$set=r=>{t(0,e=ue(ue({},e),ye(r))),"$$scope"in r&&t(1,o=r.$$scope)},e=ye(e),[e,o,n]}var Lu=class extends W{constructor(e){super(),G(this,e,p3,m3,K,{})}},vm=Lu;function _3(i){let e,t;return e=new vm({}),{c(){V(e.$$.fragment)},m(n,o){A(e,n,o),t=!0},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){_(e.$$.fragment,n),t=!1},d(n){L(e,n)}}}function h3(i){let e,t,n;function o(l){i[8](l)}let r={className:i[3]?"opened":"",testId:"btn-context-menu",disabled:i[0],ariaLabel:i[1],click:i[5],focus:i[6],blur:i[7],ariaExpanded:i[3],$$slots:{default:[_3]},$$scope:{ctx:i}};return i[2]!==void 0&&(r.ref=i[2]),e=new yt({props:r}),ge.push(()=>ze(e,"ref",o)),{c(){V(e.$$.fragment)},m(l,a){A(e,l,a),n=!0},p(l,[a]){let s={};a&8&&(s.className=l[3]?"opened":""),a&1&&(s.disabled=l[0]),a&2&&(s.ariaLabel=l[1]),a&8&&(s.ariaExpanded=l[3]),a&16384&&(s.$$scope={dirty:a,ctx:l}),!t&&a&4&&(t=!0,s.ref=l[2],He(()=>t=!1)),e.$set(s)},i(l){n||(d(e.$$.fragment,l),n=!0)},o(l){_(e.$$.fragment,l),n=!1},d(l){L(e,l)}}}function g3(i,e,t){let n,{disabled:o=!1}=e,{ariaLabel:r=""}=e,l=st(),a=l.ui.contextMenu.visible$;z(i,a,I=>t(3,n=I));let s=l.ui.contextMenu.openedByBtnKeyboard$,u=l.ui.contextMenu.showContextMenuBtn$,c=l.ui.contextMenu.position$,m=l.ui.contextMenu.btnRef$,h,w=I=>{let y=fl(I),g=Jc(h);c.set(g),s.set(y),a.set(!n)},b=()=>{u.set(!0)},C=()=>{u.set(!1)};function v(I){h=I,t(2,h)}return i.$$set=I=>{"disabled"in I&&t(0,o=I.disabled),"ariaLabel"in I&&t(1,r=I.ariaLabel)},i.$$.update=()=>{i.$$.dirty&4&&h&&m.set(h)},[o,r,h,n,a,w,b,C,v]}var Mu=class extends W{constructor(e){super(),G(this,e,g3,h3,K,{disabled:0,ariaLabel:1})}},ym=Mu;function b3(i){Ie(i,"svelte-17imlp9",".interactive-episode-icon-animated.svelte-17imlp9{position:absolute;top:16px;right:16px;width:32px;height:32px;transition:0.3s;opacity:1}.invisible.svelte-17imlp9{opacity:0;visibility:hidden}.fullscreen.svelte-17imlp9:not(.mobile){width:40px;top:19px;right:23px;height:40px}.mobile.svelte-17imlp9{width:28px;height:28px;top:12px;right:14px}.fullscreen.mobile.svelte-17imlp9{width:32px;height:32px}@media screen and (orientation: portrait){.interactive-episode-icon-animated.mobile.fullscreen.svelte-17imlp9{top:40px;right:16px}}@keyframes svelte-17imlp9-pulse{0%{transform:scale(1);border-width:1px;opacity:0}10%{opacity:1}50%{transform:scale(1.5);border-width:1px;opacity:0.5}100%{transform:scale(1.5);border-width:0.5px;opacity:0}}.pulse.svelte-17imlp9{display:block;content:'';border:1px solid #fff;position:absolute;top:0;left:0;right:0;bottom:0;border-radius:100%;transform:scale(1.8);animation:1s svelte-17imlp9-pulse infinite;transition:0.3s;pointer-events:none}.pulse.paused.svelte-17imlp9{animation-play-state:paused}.interactive-episode-icon-animated svg{width:100%;height:100%}.ref-block.svelte-17imlp9{position:absolute;top:0;width:100%;height:100%;visibility:hidden}.hidden.svelte-17imlp9{display:none}")}function v3(i){let e,t;return e=new Vr({props:{completed:!0}}),{c(){V(e.$$.fragment)},m(n,o){A(e,n,o),t=!0},p:Se,i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){_(e.$$.fragment,n),t=!1},d(n){L(e,n)}}}function y3(i){let e,t,n,o,r,l,a,s,u,c;function m(w){i[22](w)}let h={tooltipContent:U("tooltip_interactive_interaction_time_indicator"),tooltipActive:i[5],initialTranslateYPx:72,tooltipPlacement:"bottom",onTooltipVisibilityChange:i[13],$$slots:{default:[v3]},$$scope:{ctx:i}};return i[0]!==void 0&&(h.ref=i[0]),t=new Ht({props:h}),ge.push(()=>ze(t,"ref",m)),t.$on("click",i[14]),{c(){e=T("div"),V(t.$$.fragment),o=R(),r=T("div"),l=R(),a=T("div"),f(r,"class","ref-block svelte-17imlp9"),N(r,"hidden",i[1]),f(a,"class","pulse svelte-17imlp9"),N(a,"paused",i[4]),f(e,"class","interactive-episode-icon-animated svelte-17imlp9"),N(e,"mobile",i[2]),N(e,"fullscreen",i[6]),N(e,"invisible",i[1])},m(w,b){S(w,e,b),A(t,e,null),p(e,o),p(e,r),i[23](r),p(e,l),p(e,a),i[24](a),s=!0,u||(c=[he(e,"mousemove",at(i[21])),he(e,"mouseleave",i[15])],u=!0)},p(w,b){let C={};b[0]&32&&(C.tooltipActive=w[5]),b[1]&1&&(C.$$scope={dirty:b,ctx:w}),!n&&b[0]&1&&(n=!0,C.ref=w[0],He(()=>n=!1)),t.$set(C),(!s||b[0]&2)&&N(r,"hidden",w[1]),(!s||b[0]&16)&&N(a,"paused",w[4]),(!s||b[0]&4)&&N(e,"mobile",w[2]),(!s||b[0]&64)&&N(e,"fullscreen",w[6]),(!s||b[0]&2)&&N(e,"invisible",w[1])},i(w){s||(d(t.$$.fragment,w),s=!0)},o(w){_(t.$$.fragment,w),s=!1},d(w){w&&k(e),L(t),i[23](null),i[24](null),u=!1,lt(c)}}}function w3(i,e,t){var Q;let n,o,r,l,a,s,{ref:u=void 0}=e,c,m=st(),h=zn(),{interactiveControlsOpacity$:w}=h;z(i,w,X=>t(18,o=X));let b=m.ui.isMobile;z(i,b,X=>t(2,a=X));let C=m.ui.isFullscreen;z(i,C,X=>t(6,s=X));let v=m.state.isInteractiveTime$;z(i,v,X=>t(19,r=X));let I=h.showInteractiveTimeIndicatorTooltip$;z(i,I,X=>t(17,n=X));let y=m.ui.controlsVisible;z(i,y,X=>t(20,l=X));let g=(Q=m.callbacks)==null?void 0:Q.onInteractiveTimeIndicatorClick,P,B,M,q=()=>{t(4,M=!0)},te=()=>{pe(),c==null||c.addEventListener("animationiteration",q,{once:!0})},pe=()=>{t(4,M=!1),c==null||c.removeEventListener("animationiteration",q)},Z=X=>{I.set(X)},x,oe=()=>{B||(I.set(!0),g==null||g())};jn(()=>{I.clearTimeout(),pe()});let H=()=>{I.set(!1)};function j(X){Vn.call(this,i,X)}function J(X){u=X,t(0,u)}function F(X){ge[X?"unshift":"push"](()=>{u=X,t(0,u)})}function O(X){ge[X?"unshift":"push"](()=>{c=X,t(3,c)})}return i.$$set=X=>{"ref"in X&&t(0,u=X.ref)},i.$$.update=()=>{i.$$.dirty[0]&1048580&&t(16,P=!a&&l),i.$$.dirty[0]&851968&&t(1,B=!r||!!o||P),i.$$.dirty[0]&2&&t(4,M=B),i.$$.dirty[0]&131074&&t(5,x=n&&!B),i.$$.dirty[0]&131072&&(n?te():pe())},[u,B,a,c,M,x,s,w,b,C,v,I,y,Z,oe,H,P,n,o,r,l,j,J,F,O]}var Vu=class extends W{constructor(e){super(),G(this,e,w3,y3,K,{ref:0},b3,[-1,-1])}},ts=Vu;function S3(i){Ie(i,"svelte-st0uzk",".wrapper-bottom.svelte-st0uzk.svelte-st0uzk{pointer-events:none;position:absolute;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-st0uzk>.svelte-st0uzk{pointer-events:auto}.controls.svelte-st0uzk.svelte-st0uzk{width:100%;display:flex;align-items:center;justify-content:space-between;height:var(--controls-height);white-space:nowrap;font-size:13px;transition:transform var(--controls-transition-duration) var(--controls-transition-fn);will-change:transform;padding:0 8px 4px;box-sizing:border-box}.controls-left.svelte-st0uzk.svelte-st0uzk,.controls-right.svelte-st0uzk.svelte-st0uzk{display:flex;align-content:center}.controls-left.svelte-st0uzk.svelte-st0uzk{flex-grow:1;min-width:0;overflow:hidden}.controls-left.svelte-st0uzk > *:not(:first-child),.controls-right.svelte-st0uzk > *{margin-left:var(--controls-desktop-item-margin-left)}.controls-hidden.svelte-st0uzk.svelte-st0uzk{visibility:visible;transform:translateY(100%)}.wrapper-bottom.no-smooth.svelte-st0uzk.svelte-st0uzk{transition:none}.settings-menu.svelte-st0uzk.svelte-st0uzk{bottom:57px;right:18px;position:absolute;transition:opacity 0.2s, visibility 0.2s}")}function km(i,e,t){let n=i.slice();return n[210]=e[t].iconUrl,n[211]=e[t].ariaLabel,n[212]=e[t].testId,n[213]=e[t].onClick,n[214]=e[t].tooltip,n}function Cm(i){let e,t,n;function o(l){i[174](l)}let r={disabled:!i[9],tooltipContent:U("tooltip_previous"),$$slots:{default:[T3]},$$scope:{ctx:i}};return i[23].prevButton!==void 0&&(r.ref=i[23].prevButton),e=new Ht({props:r}),ge.push(()=>ze(e,"ref",o)),{c(){V(e.$$.fragment)},m(l,a){A(e,l,a),n=!0},p(l,a){let s={};a[0]&512&&(s.disabled=!l[9]),a[0]&4608|a[7]&1&&(s.$$scope={dirty:a,ctx:l}),!t&&a[0]&8388608&&(t=!0,s.ref=l[23].prevButton,He(()=>t=!1)),e.$set(s)},i(l){n||(d(e.$$.fragment,l),n=!0)},o(l){_(e.$$.fragment,l),n=!1},d(l){L(e,l)}}}function T3(i){let e,t;return e=new vl({props:{click:i[12],type:"prev",disabled:!i[9],isMobile:!1}}),{c(){V(e.$$.fragment)},m(n,o){A(e,n,o),t=!0},p(n,o){let r={};o[0]&4096&&(r.click=n[12]),o[0]&512&&(r.disabled=!n[9]),e.$set(r)},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){_(e.$$.fragment,n),t=!1},d(n){L(e,n)}}}function Sm(i){let e,t,n;function o(l){i[175](l)}let r={disabled:i[74],tooltipContent:U("tooltip_restart"),$$slots:{default:[P3]},$$scope:{ctx:i}};return i[23].replayButton!==void 0&&(r.ref=i[23].replayButton),e=new Ht({props:r}),ge.push(()=>ze(e,"ref",o)),{c(){V(e.$$.fragment)},m(l,a){A(e,l,a),n=!0},p(l,a){let s={};a[2]&4096&&(s.disabled=l[74]),a[2]&4096|a[7]&1&&(s.$$scope={dirty:a,ctx:l}),!t&&a[0]&8388608&&(t=!0,s.ref=l[23].replayButton,He(()=>t=!1)),e.$set(s)},i(l){n||(d(e.$$.fragment,l),n=!0)},o(l){_(e.$$.fragment,l),n=!1},d(l){L(e,l)}}}function P3(i){let e,t;return e=new Nl({props:{click:i[128],disabled:i[74]}}),{c(){V(e.$$.fragment)},m(n,o){A(e,n,o),t=!0},p(n,o){let r={};o[2]&4096&&(r.disabled=n[74]),e.$set(r)},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){_(e.$$.fragment,n),t=!1},d(n){L(e,n)}}}function Tm(i){let e,t,n;function o(l){i[177](l)}let r={tooltipContent:i[47],disabled:i[75],$$slots:{default:[I3]},$$scope:{ctx:i}};return i[23].playButton!==void 0&&(r.ref=i[23].playButton),e=new Ht({props:r}),ge.push(()=>ze(e,"ref",o)),{c(){V(e.$$.fragment)},m(l,a){A(e,l,a),n=!0},p(l,a){let s={};a[1]&65536&&(s.tooltipContent=l[47]),a[2]&8192&&(s.disabled=l[75]),a[0]&67108864|a[1]&8|a[2]&8192|a[7]&1&&(s.$$scope={dirty:a,ctx:l}),!t&&a[0]&8388608&&(t=!0,s.ref=l[23].playButton,He(()=>t=!1)),e.$set(s)},i(l){n||(d(e.$$.fragment,l),n=!0)},o(l){_(e.$$.fragment,l),n=!1},d(l){L(e,l)}}}function I3(i){let e,t,n;function o(l){i[176](l)}let r={isMobile:!1,isPlaying:i[34],click:i[85],disabled:i[75]};return i[26]!==void 0&&(r.ref=i[26]),e=new Dl({props:r}),ge.push(()=>ze(e,"ref",o)),{c(){V(e.$$.fragment)},m(l,a){A(e,l,a),n=!0},p(l,a){let s={};a[1]&8&&(s.isPlaying=l[34]),a[2]&8192&&(s.disabled=l[75]),!t&&a[0]&67108864&&(t=!0,s.ref=l[26],He(()=>t=!1)),e.$set(s)},i(l){n||(d(e.$$.fragment,l),n=!0)},o(l){_(e.$$.fragment,l),n=!1},d(l){L(e,l)}}}function Pm(i){let e,t,n;function o(l){i[178](l)}let r={disabled:!i[8],tooltipContent:U("tooltip_next"),$$slots:{default:[E3]},$$scope:{ctx:i}};return i[23].nextButton!==void 0&&(r.ref=i[23].nextButton),e=new Ht({props:r}),ge.push(()=>ze(e,"ref",o)),{c(){V(e.$$.fragment)},m(l,a){A(e,l,a),n=!0},p(l,a){let s={};a[0]&256&&(s.disabled=!l[8]),a[0]&2304|a[7]&1&&(s.$$scope={dirty:a,ctx:l}),!t&&a[0]&8388608&&(t=!0,s.ref=l[23].nextButton,He(()=>t=!1)),e.$set(s)},i(l){n||(d(e.$$.fragment,l),n=!0)},o(l){_(e.$$.fragment,l),n=!1},d(l){L(e,l)}}}function E3(i){let e,t;return e=new vl({props:{click:i[11],type:"next",disabled:!i[8],isMobile:!1}}),{c(){V(e.$$.fragment)},m(n,o){A(e,n,o),t=!0},p(n,o){let r={};o[0]&2048&&(r.click=n[11]),o[0]&256&&(r.disabled=!n[8]),e.$set(r)},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){_(e.$$.fragment,n),t=!1},d(n){L(e,n)}}}function A3(i){let e,t,n,o,r=i[121]&&L3(i),l=i[120]&&V3(i),a=i[119]&&B3(i);return{c(){r&&r.c(),e=R(),l&&l.c(),t=R(),a&&a.c(),n=dt()},m(s,u){r&&r.m(s,u),S(s,e,u),l&&l.m(s,u),S(s,t,u),a&&a.m(s,u),S(s,n,u),o=!0},p(s,u){s[121]&&r.p(s,u),s[120]&&l.p(s,u),s[119]&&a.p(s,u)},i(s){o||(d(r),d(l),d(a),o=!0)},o(s){_(r),_(l),_(a),o=!1},d(s){s&&(k(e),k(t),k(n)),r&&r.d(s),l&&l.d(s),a&&a.d(s)}}}function L3(i){let e,t,n;function o(l){i[179](l)}let r={disabled:i[73],tooltipContent:U("tooltip_interactive_go_back"),disabledTooltipContent:U(i[124]),$$slots:{default:[M3]},$$scope:{ctx:i}};return i[23].playPrevChapterButton!==void 0&&(r.ref=i[23].playPrevChapterButton),e=new Ht({props:r}),ge.push(()=>ze(e,"ref",o)),{c(){V(e.$$.fragment)},m(l,a){A(e,l,a),n=!0},p(l,a){let s={};a[2]&2048&&(s.disabled=l[73]),a[0]&131072|a[2]&2048|a[7]&1&&(s.$$scope={dirty:a,ctx:l}),!t&&a[0]&8388608&&(t=!0,s.ref=l[23].playPrevChapterButton,He(()=>t=!1)),e.$set(s)},i(l){n||(d(e.$$.fragment,l),n=!0)},o(l){_(e.$$.fragment,l),n=!1},d(l){L(e,l)}}}function M3(i){let e,t;return e=new Gr({props:{disabled:i[73],click:i[17]}}),{c(){V(e.$$.fragment)},m(n,o){A(e,n,o),t=!0},p(n,o){let r={};o[2]&2048&&(r.disabled=n[73]),o[0]&131072&&(r.click=n[17]),e.$set(r)},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){_(e.$$.fragment,n),t=!1},d(n){L(e,n)}}}function V3(i){let e,t,n;function o(l){i[180](l)}let r={disabled:i[76],tooltipContent:U("tooltip_interactive_seek"),disabledTooltipContent:U(i[78]),$$slots:{default:[R3]},$$scope:{ctx:i}};return i[23].seekToInteractiveButton!==void 0&&(r.ref=i[23].seekToInteractiveButton),e=new Ht({props:r}),ge.push(()=>ze(e,"ref",o)),{c(){V(e.$$.fragment)},m(l,a){A(e,l,a),n=!0},p(l,a){let s={};a[2]&16384&&(s.disabled=l[76]),a[2]&65536&&(s.disabledTooltipContent=U(l[78])),a[0]&32768|a[2]&16384|a[7]&1&&(s.$$scope={dirty:a,ctx:l}),!t&&a[0]&8388608&&(t=!0,s.ref=l[23].seekToInteractiveButton,He(()=>t=!1)),e.$set(s)},i(l){n||(d(e.$$.fragment,l),n=!0)},o(l){_(e.$$.fragment,l),n=!1},d(l){L(e,l)}}}function R3(i){let e,t;return e=new Kr({props:{disabled:i[76],click:i[15]}}),{c(){V(e.$$.fragment)},m(n,o){A(e,n,o),t=!0},p(n,o){let r={};o[2]&16384&&(r.disabled=n[76]),o[0]&32768&&(r.click=n[15]),e.$set(r)},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){_(e.$$.fragment,n),t=!1},d(n){L(e,n)}}}function B3(i){let e,t,n;function o(l){i[181](l)}let r={tooltipContent:i[48],disabled:i[77],$$slots:{default:[D3]},$$scope:{ctx:i}};return i[23].interactiveGraphButton!==void 0&&(r.ref=i[23].interactiveGraphButton),e=new Ht({props:r}),ge.push(()=>ze(e,"ref",o)),{c(){V(e.$$.fragment)},m(l,a){A(e,l,a),n=!0},p(l,a){let s={};a[1]&131072&&(s.tooltipContent=l[48]),a[2]&32768&&(s.disabled=l[77]),a[0]&65536|a[1]&1|a[2]&32768|a[7]&1&&(s.$$scope={dirty:a,ctx:l}),!t&&a[0]&8388608&&(t=!0,s.ref=l[23].interactiveGraphButton,He(()=>t=!1)),e.$set(s)},i(l){n||(d(e.$$.fragment,l),n=!0)},o(l){_(e.$$.fragment,l),n=!1},d(l){L(e,l)}}}function D3(i){let e,t;return e=new jr({props:{click:i[16],graphIsOpened:i[31],disabled:i[77]}}),{c(){V(e.$$.fragment)},m(n,o){A(e,n,o),t=!0},p(n,o){let r={};o[0]&65536&&(r.click=n[16]),o[1]&1&&(r.graphIsOpened=n[31]),o[2]&32768&&(r.disabled=n[77]),e.$set(r)},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){_(e.$$.fragment,n),t=!1},d(n){L(e,n)}}}function Im(i){let e,t,n;function o(l){i[182](l)}let r={tooltipContent:i[50],$$slots:{default:[N3]},$$scope:{ctx:i}};return i[23].liveButton!==void 0&&(r.ref=i[23].liveButton),e=new Ht({props:r}),ge.push(()=>ze(e,"ref",o)),{c(){V(e.$$.fragment)},m(l,a){A(e,l,a),n=!0},p(l,a){let s={};a[1]&524288&&(s.tooltipContent=l[50]),a[0]&2097152|a[1]&524288|a[7]&1&&(s.$$scope={dirty:a,ctx:l}),!t&&a[0]&8388608&&(t=!0,s.ref=l[23].liveButton,He(()=>t=!1)),e.$set(s)},i(l){n||(d(e.$$.fragment,l),n=!0)},o(l){_(e.$$.fragment,l),n=!1},d(l){L(e,l)}}}function N3(i){let e,t;return e=new Or({props:{isActiveLive:i[21],isMobile:!1,ariaLabel:i[50]}}),{c(){V(e.$$.fragment)},m(n,o){A(e,n,o),t=!0},p(n,o){let r={};o[0]&2097152&&(r.isActiveLive=n[21]),o[1]&524288&&(r.ariaLabel=n[50]),e.$set(r)},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){_(e.$$.fragment,n),t=!1},d(n){L(e,n)}}}function Em(i){let e,t,n;function o(l){i[183](l)}let r={isMobile:!1,showDuration:i[55],position:i[4]?i[79]:i[80],duration:i[4]?i[81]:i[82]};return i[23].time!==void 0&&(r.ref=i[23].time),e=new Lr({props:r}),ge.push(()=>ze(e,"ref",o)),{c(){V(e.$$.fragment)},m(l,a){A(e,l,a),n=!0},p(l,a){let s={};a[1]&16777216&&(s.showDuration=l[55]),a[0]&16|a[2]&393216&&(s.position=l[4]?l[79]:l[80]),a[0]&16|a[2]&1572864&&(s.duration=l[4]?l[81]:l[82]),!t&&a[0]&8388608&&(t=!0,s.ref=l[23].time,He(()=>t=!1)),e.$set(s)},i(l){n||(d(e.$$.fragment,l),n=!0)},o(l){_(e.$$.fragment,l),n=!1},d(l){L(e,l)}}}function Am(i){let e,t;return e=new Ur({props:{position:i[80],duration:i[82],timeCodes:i[101]}}),{c(){V(e.$$.fragment)},m(n,o){A(e,n,o),t=!0},p(n,o){let r={};o[2]&262144&&(r.position=n[80]),o[2]&1048576&&(r.duration=n[82]),e.$set(r)},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){_(e.$$.fragment,n),t=!1},d(n){L(e,n)}}}function q3(i){let e,t,n=i[20]&&Am(i);return{c(){n&&n.c(),e=dt()},m(o,r){n&&n.m(o,r),S(o,e,r),t=!0},p(o,r){o[20]?n?(n.p(o,r),r[0]&1048576&&d(n,1)):(n=Am(o),n.c(),d(n,1),n.m(e.parentNode,e)):n&&(ce(),_(n,1,1,()=>{n=null}),de())},i(o){t||(d(n),t=!0)},o(o){_(n),t=!1},d(o){o&&k(e),n&&n.d(o)}}}function O3(i){var n;let e,t;return e=new Qr({props:{iconUrl:i[210],ariaLabel:(n=i[211])!=null?n:i[214],testId:i[212],onClick:i[213]}}),{c(){V(e.$$.fragment)},m(o,r){A(e,o,r),t=!0},p(o,r){var a;let l={};r[0]&268435456&&(l.iconUrl=o[210]),r[0]&268435456&&(l.ariaLabel=(a=o[211])!=null?a:o[214]),r[0]&268435456&&(l.testId=o[212]),r[0]&268435456&&(l.onClick=o[213]),e.$set(l)},i(o){t||(d(e.$$.fragment,o),t=!0)},o(o){_(e.$$.fragment,o),t=!1},d(o){L(e,o)}}}function Lm(i){let e,t;return e=new Ht({props:{tooltipContent:i[214],width:40,$$slots:{default:[O3]},$$scope:{ctx:i}}}),{c(){V(e.$$.fragment)},m(n,o){A(e,n,o),t=!0},p(n,o){let r={};o[0]&268435456&&(r.tooltipContent=n[214]),o[0]&268435456|o[7]&1&&(r.$$scope={dirty:o,ctx:n}),e.$set(r)},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){_(e.$$.fragment,n),t=!1},d(n){L(e,n)}}}function Mm(i){let e,t,n;function o(l){i[186](l)}let r={disabled:!i[6],tooltipContent:i[51],disabledTooltipContent:"",$$slots:{default:[F3]},$$scope:{ctx:i}};return i[23].vkLogo!==void 0&&(r.ref=i[23].vkLogo),e=new Ht({props:r}),ge.push(()=>ze(e,"ref",o)),{c(){V(e.$$.fragment)},m(l,a){A(e,l,a),n=!0},p(l,a){let s={};a[0]&64&&(s.disabled=!l[6]),a[1]&1048576&&(s.tooltipContent=l[51]),a[0]&192|a[7]&1&&(s.$$scope={dirty:a,ctx:l}),!t&&a[0]&8388608&&(t=!0,s.ref=l[23].vkLogo,He(()=>t=!1)),e.$set(s)},i(l){n||(d(e.$$.fragment,l),n=!0)},o(l){_(e.$$.fragment,l),n=!1},d(l){L(e,l)}}}function F3(i){let e,t;return e=new Nr({props:{click:i[86],targetUrl:i[7],logoClickable:i[6]}}),{c(){V(e.$$.fragment)},m(n,o){A(e,n,o),t=!0},p(n,o){let r={};o[0]&128&&(r.targetUrl=n[7]),o[0]&64&&(r.logoClickable=n[6]),e.$set(r)},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){_(e.$$.fragment,n),t=!1},d(n){L(e,n)}}}function H3(i){let e,t;return e=new j1({props:{click:i[127]}}),{c(){V(e.$$.fragment)},m(n,o){A(e,n,o),t=!0},p:Se,i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){_(e.$$.fragment,n),t=!1},d(n){L(e,n)}}}function Vm(i){let e,t,n;function o(l){i[188](l)}let r={tooltipContent:i[52],$$slots:{default:[z3]},$$scope:{ctx:i}};return i[23].subtitles!==void 0&&(r.ref=i[23].subtitles),e=new Ht({props:r}),ge.push(()=>ze(e,"ref",o)),{c(){V(e.$$.fragment)},m(l,a){A(e,l,a),n=!0},p(l,a){let s={};a[1]&2097152&&(s.tooltipContent=l[52]),a[0]&262144|a[7]&1&&(s.$$scope={dirty:a,ctx:l}),!t&&a[0]&8388608&&(t=!0,s.ref=l[23].subtitles,He(()=>t=!1)),e.$set(s)},i(l){n||(d(e.$$.fragment,l),n=!0)},o(l){_(e.$$.fragment,l),n=!1},d(l){L(e,l)}}}function z3(i){let e,t;return e=new A1({props:{isSubtitlesEnabled:i[18],click:i[87]}}),{c(){V(e.$$.fragment)},m(n,o){A(e,n,o),t=!0},p(n,o){let r={};o[0]&262144&&(r.isSubtitlesEnabled=n[18]),e.$set(r)},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){_(e.$$.fragment,n),t=!1},d(n){L(e,n)}}}function Rm(i){var a;let e,t,n,o;function r(s){i[189](s)}let l={supportLink:i[10],playerControlsHeight:(a=i[46])==null?void 0:a.clientHeight,returnFocus:i[14]};return i[24]!==void 0&&(l.ref=i[24]),t=new Ar({props:l}),ge.push(()=>ze(t,"ref",r)),{c(){e=T("div"),V(t.$$.fragment),f(e,"class","settings-menu svelte-st0uzk")},m(s,u){S(s,e,u),A(t,e,null),o=!0},p(s,u){var m;let c={};u[0]&1024&&(c.supportLink=s[10]),u[1]&32768&&(c.playerControlsHeight=(m=s[46])==null?void 0:m.clientHeight),u[0]&16384&&(c.returnFocus=s[14]),!n&&u[0]&16777216&&(n=!0,c.ref=s[24],He(()=>n=!1)),t.$set(c)},i(s){o||(d(t.$$.fragment,s),o=!0)},o(s){_(t.$$.fragment,s),o=!1},d(s){s&&k(e),L(t)}}}function Bm(i){let e,t,n;function o(l){i[191](l)}let r={tooltipContent:i[27]?void 0:U("tooltip_settings_off"),$$slots:{default:[U3]},$$scope:{ctx:i}};return i[23].settings!==void 0&&(r.ref=i[23].settings),e=new Ht({props:r}),ge.push(()=>ze(e,"ref",o)),{c(){V(e.$$.fragment)},m(l,a){A(e,l,a),n=!0},p(l,a){let s={};a[0]&134217728&&(s.tooltipContent=l[27]?void 0:U("tooltip_settings_off")),a[0]&33554432|a[7]&1&&(s.$$scope={dirty:a,ctx:l}),!t&&a[0]&8388608&&(t=!0,s.ref=l[23].settings,He(()=>t=!1)),e.$set(s)},i(l){n||(d(e.$$.fragment,l),n=!0)},o(l){_(e.$$.fragment,l),n=!1},d(l){L(e,l)}}}function U3(i){let e,t,n;function o(l){i[190](l)}let r={};return i[25]!==void 0&&(r.ref=i[25]),e=new Rl({props:r}),ge.push(()=>ze(e,"ref",o)),{c(){V(e.$$.fragment)},m(l,a){A(e,l,a),n=!0},p(l,a){let s={};!t&&a[0]&33554432&&(t=!0,s.ref=l[25],He(()=>t=!1)),e.$set(s)},i(l){n||(d(e.$$.fragment,l),n=!0)},o(l){_(e.$$.fragment,l),n=!1},d(l){L(e,l)}}}function K3(i){let e,t,n;function o(l){i[192](l)}let r={className:i[41]?"":"out-of-view",tooltipContent:i[49],$$slots:{default:[j3]},$$scope:{ctx:i}};return i[23].context!==void 0&&(r.ref=i[23].context),e=new Ht({props:r}),ge.push(()=>ze(e,"ref",o)),{c(){V(e.$$.fragment)},m(l,a){A(e,l,a),n=!0},p(l,a){let s={};a[1]&1024&&(s.className=l[41]?"":"out-of-view"),a[1]&262144&&(s.tooltipContent=l[49]),a[1]&262144|a[7]&1&&(s.$$scope={dirty:a,ctx:l}),!t&&a[0]&8388608&&(t=!0,s.ref=l[23].context,He(()=>t=!1)),e.$set(s)},i(l){n||(d(e.$$.fragment,l),n=!0)},o(l){_(e.$$.fragment,l),n=!1},d(l){L(e,l)}}}function j3(i){let e,t;return e=new ym({props:{ariaLabel:i[49]}}),{c(){V(e.$$.fragment)},m(n,o){A(e,n,o),t=!0},p(n,o){let r={};o[1]&262144&&(r.ariaLabel=n[49]),e.$set(r)},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){_(e.$$.fragment,n),t=!1},d(n){L(e,n)}}}function Dm(i){let e,t,n;function o(l){i[193](l)}let r={tooltipContent:i[53],$$slots:{default:[W3]},$$scope:{ctx:i}};return i[23].fullscreen!==void 0&&(r.ref=i[23].fullscreen),e=new Ht({props:r}),ge.push(()=>ze(e,"ref",o)),{c(){V(e.$$.fragment)},m(l,a){A(e,l,a),n=!0},p(l,a){let s={};a[1]&4194304&&(s.tooltipContent=l[53]),a[0]&1073750016|a[7]&1&&(s.$$scope={dirty:a,ctx:l}),!t&&a[0]&8388608&&(t=!0,s.ref=l[23].fullscreen,He(()=>t=!1)),e.$set(s)},i(l){n||(d(e.$$.fragment,l),n=!0)},o(l){_(e.$$.fragment,l),n=!1},d(l){L(e,l)}}}function W3(i){let e,t;return e=new Br({props:{click:i[13],isFullscreen:i[30]}}),{c(){V(e.$$.fragment)},m(n,o){A(e,n,o),t=!0},p(n,o){let r={};o[0]&8192&&(r.click=n[13]),o[0]&1073741824&&(r.isFullscreen=n[30]),e.$set(r)},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){_(e.$$.fragment,n),t=!1},d(n){L(e,n)}}}function Nm(i){let e,t,n;function o(l){i[194](l)}let r={tooltipContent:i[54],$$slots:{default:[G3]},$$scope:{ctx:i}};return i[23].chromecast!==void 0&&(r.ref=i[23].chromecast),e=new Ht({props:r}),ge.push(()=>ze(e,"ref",o)),{c(){V(e.$$.fragment)},m(l,a){A(e,l,a),n=!0},p(l,a){let s={};a[1]&8388608&&(s.tooltipContent=l[54]),a[0]&536870912|a[7]&1&&(s.$$scope={dirty:a,ctx:l}),!t&&a[0]&8388608&&(t=!0,s.ref=l[23].chromecast,He(()=>t=!1)),e.$set(s)},i(l){n||(d(e.$$.fragment,l),n=!0)},o(l){_(e.$$.fragment,l),n=!1},d(l){L(e,l)}}}function G3(i){let e,t;return e=new qr({props:{isMobile:!1,state:i[29],click:i[126]}}),{c(){V(e.$$.fragment)},m(n,o){A(e,n,o),t=!0},p(n,o){let r={};o[0]&536870912&&(r.state=n[29]),e.$set(r)},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){_(e.$$.fragment,n),t=!1},d(n){L(e,n)}}}function Q3(i){let e,t,n;function o(l){i[197](l)}let r={};return i[23].interactiveTimeIndicator!==void 0&&(r.ref=i[23].interactiveTimeIndicator),e=new ts({props:r}),ge.push(()=>ze(e,"ref",o)),{c(){V(e.$$.fragment)},m(l,a){A(e,l,a),n=!0},p(l,a){let s={};!t&&a[0]&8388608&&(t=!0,s.ref=l[23].interactiveTimeIndicator,He(()=>t=!1)),e.$set(s)},i(l){n||(d(e.$$.fragment,l),n=!0)},o(l){_(e.$$.fragment,l),n=!1},d(l){L(e,l)}}}function Y3(i){let e,t,n,o,r,l,a,s,u,c,m,h,w,b,C,v,I,y,g,P,B,M,q,te,pe,Z,x,oe,H,j,J;function F(ae){i[173](ae)}let O={isHidden:!i[45],isAds:i[4],canRewindLive:i[5],isRewindableLive:i[32]};i[23].timeline!==void 0&&(O.ref=i[23].timeline),t=new zr({props:O}),ge.push(()=>ze(t,"ref",F));let Q=i[38]&&Cm(i),X=i[35]&&Sm(i),le=i[36]&&Tm(i),De=i[37]&&Pm(i),$e=i[117]&&A3(i),Ee=!i[4]&&i[33]&&Im(i),Be=i[19]&&Em(i);function Ne(ae){i[184](ae)}let Je={className:"w-max",disabled:!i[20],tooltipContent:U("tooltip_episodes"),$$slots:{default:[q3]},$$scope:{ctx:i}};i[23].episodes!==void 0&&(Je.ref=i[23].episodes),b=new Ht({props:Je}),ge.push(()=>ze(b,"ref",Ne));let se=It(i[28]),_e=[];for(let ae=0;ae<se.length;ae+=1)_e[ae]=Lm(km(i,se,ae));let ut=ae=>_(_e[ae],1,1,()=>{_e[ae]=null}),Ce=i[43]&&!i[4]&&Mm(i);function Ke(ae){i[187](ae)}let ht={$$slots:{default:[H3]},$$scope:{ctx:i}};i[23].volume!==void 0&&(ht.ref=i[23].volume),B=new Ht({props:ht}),ge.push(()=>ze(B,"ref",Ke));let Ze=i[40]&&Vm(i),Ge=!i[83]&&!i[4]&&Rm(i),xe=i[42]&&!i[4]&&Bm(i),tt=i[84].features.contextMenuButton&&K3(i),fe=i[44]&&Dm(i),Pe=i[39]&&Nm(i),je=i[122]&&Q3(i);return{c(){e=T("div"),V(t.$$.fragment),o=R(),r=T("div"),l=T("div"),Q&&Q.c(),a=R(),X&&X.c(),s=R(),le&&le.c(),u=R(),De&&De.c(),c=R(),$e&&$e.c(),m=R(),Ee&&Ee.c(),h=R(),Be&&Be.c(),w=R(),V(b.$$.fragment),I=R(),y=T("div");for(let ae=0;ae<_e.length;ae+=1)_e[ae].c();g=R(),Ce&&Ce.c(),P=R(),V(B.$$.fragment),q=R(),Ze&&Ze.c(),te=R(),Ge&&Ge.c(),pe=R(),xe&&xe.c(),Z=R(),tt&&tt.c(),x=R(),fe&&fe.c(),oe=R(),Pe&&Pe.c(),H=R(),je&&je.c(),j=dt(),f(l,"class","controls-left svelte-st0uzk"),Gn(()=>i[185].call(l)),f(y,"class","controls-right svelte-st0uzk"),f(r,"class","controls svelte-st0uzk"),f(e,"class","wrapper-bottom svelte-st0uzk"),N(e,"hidden",i[1]),N(e,"controls-hidden",!i[3]),N(e,"no-smooth",i[2])},m(ae,Te){S(ae,e,Te),A(t,e,null),p(e,o),p(e,r),p(r,l),Q&&Q.m(l,null),p(l,a),X&&X.m(l,null),p(l,s),le&&le.m(l,null),p(l,u),De&&De.m(l,null),p(l,c),$e&&$e.m(l,null),p(l,m),Ee&&Ee.m(l,null),p(l,h),Be&&Be.m(l,null),p(l,w),A(b,l,null),v=$o(l,i[185].bind(l)),p(r,I),p(r,y);for(let pt=0;pt<_e.length;pt+=1)_e[pt]&&_e[pt].m(y,null);p(y,g),Ce&&Ce.m(y,null),p(y,P),A(B,y,null),p(y,q),Ze&&Ze.m(y,null),p(y,te),Ge&&Ge.m(y,null),p(y,pe),xe&&xe.m(y,null),p(y,Z),tt&&tt.m(y,null),p(y,x),fe&&fe.m(y,null),p(y,oe),Pe&&Pe.m(y,null),i[195](r),i[196](e),S(ae,H,Te),je&&je.m(ae,Te),S(ae,j,Te),J=!0},p(ae,Te){let pt={};Te[1]&16384&&(pt.isHidden=!ae[45]),Te[0]&16&&(pt.isAds=ae[4]),Te[0]&32&&(pt.canRewindLive=ae[5]),Te[1]&2&&(pt.isRewindableLive=ae[32]),!n&&Te[0]&8388608&&(n=!0,pt.ref=ae[23].timeline,He(()=>n=!1)),t.$set(pt),ae[38]?Q?(Q.p(ae,Te),Te[1]&128&&d(Q,1)):(Q=Cm(ae),Q.c(),d(Q,1),Q.m(l,a)):Q&&(ce(),_(Q,1,1,()=>{Q=null}),de()),ae[35]?X?(X.p(ae,Te),Te[1]&16&&d(X,1)):(X=Sm(ae),X.c(),d(X,1),X.m(l,s)):X&&(ce(),_(X,1,1,()=>{X=null}),de()),ae[36]?le?(le.p(ae,Te),Te[1]&32&&d(le,1)):(le=Tm(ae),le.c(),d(le,1),le.m(l,u)):le&&(ce(),_(le,1,1,()=>{le=null}),de()),ae[37]?De?(De.p(ae,Te),Te[1]&64&&d(De,1)):(De=Pm(ae),De.c(),d(De,1),De.m(l,c)):De&&(ce(),_(De,1,1,()=>{De=null}),de()),ae[117]&&$e.p(ae,Te),!ae[4]&&ae[33]?Ee?(Ee.p(ae,Te),Te[0]&16|Te[1]&4&&d(Ee,1)):(Ee=Im(ae),Ee.c(),d(Ee,1),Ee.m(l,h)):Ee&&(ce(),_(Ee,1,1,()=>{Ee=null}),de()),ae[19]?Be?(Be.p(ae,Te),Te[0]&524288&&d(Be,1)):(Be=Em(ae),Be.c(),d(Be,1),Be.m(l,w)):Be&&(ce(),_(Be,1,1,()=>{Be=null}),de());let Ae={};if(Te[0]&1048576&&(Ae.disabled=!ae[20]),Te[0]&1048576|Te[2]&1310720|Te[7]&1&&(Ae.$$scope={dirty:Te,ctx:ae}),!C&&Te[0]&8388608&&(C=!0,Ae.ref=ae[23].episodes,He(()=>C=!1)),b.$set(Ae),Te[0]&268435456){se=It(ae[28]);let me;for(me=0;me<se.length;me+=1){let it=km(ae,se,me);_e[me]?(_e[me].p(it,Te),d(_e[me],1)):(_e[me]=Lm(it),_e[me].c(),d(_e[me],1),_e[me].m(y,g))}for(ce(),me=se.length;me<_e.length;me+=1)ut(me);de()}ae[43]&&!ae[4]?Ce?(Ce.p(ae,Te),Te[0]&16|Te[1]&4096&&d(Ce,1)):(Ce=Mm(ae),Ce.c(),d(Ce,1),Ce.m(y,P)):Ce&&(ce(),_(Ce,1,1,()=>{Ce=null}),de());let mt={};Te[7]&1&&(mt.$$scope={dirty:Te,ctx:ae}),!M&&Te[0]&8388608&&(M=!0,mt.ref=ae[23].volume,He(()=>M=!1)),B.$set(mt),ae[40]?Ze?(Ze.p(ae,Te),Te[1]&512&&d(Ze,1)):(Ze=Vm(ae),Ze.c(),d(Ze,1),Ze.m(y,te)):Ze&&(ce(),_(Ze,1,1,()=>{Ze=null}),de()),!ae[83]&&!ae[4]?Ge?(Ge.p(ae,Te),Te[0]&16|Te[2]&2097152&&d(Ge,1)):(Ge=Rm(ae),Ge.c(),d(Ge,1),Ge.m(y,pe)):Ge&&(ce(),_(Ge,1,1,()=>{Ge=null}),de()),ae[42]&&!ae[4]?xe?(xe.p(ae,Te),Te[0]&16|Te[1]&2048&&d(xe,1)):(xe=Bm(ae),xe.c(),d(xe,1),xe.m(y,Z)):xe&&(ce(),_(xe,1,1,()=>{xe=null}),de()),ae[84].features.contextMenuButton&&tt.p(ae,Te),ae[44]?fe?(fe.p(ae,Te),Te[1]&8192&&d(fe,1)):(fe=Dm(ae),fe.c(),d(fe,1),fe.m(y,oe)):fe&&(ce(),_(fe,1,1,()=>{fe=null}),de()),ae[39]?Pe?(Pe.p(ae,Te),Te[1]&256&&d(Pe,1)):(Pe=Nm(ae),Pe.c(),d(Pe,1),Pe.m(y,null)):Pe&&(ce(),_(Pe,1,1,()=>{Pe=null}),de()),(!J||Te[0]&2)&&N(e,"hidden",ae[1]),(!J||Te[0]&8)&&N(e,"controls-hidden",!ae[3]),(!J||Te[0]&4)&&N(e,"no-smooth",ae[2]),ae[122]&&je.p(ae,Te)},i(ae){if(!J){d(t.$$.fragment,ae),d(Q),d(X),d(le),d(De),d($e),d(Ee),d(Be),d(b.$$.fragment,ae);for(let Te=0;Te<se.length;Te+=1)d(_e[Te]);d(Ce),d(B.$$.fragment,ae),d(Ze),d(Ge),d(xe),d(tt),d(fe),d(Pe),d(je),J=!0}},o(ae){_(t.$$.fragment,ae),_(Q),_(X),_(le),_(De),_($e),_(Ee),_(Be),_(b.$$.fragment,ae),_e=_e.filter(Boolean);for(let Te=0;Te<_e.length;Te+=1)_(_e[Te]);_(Ce),_(B.$$.fragment,ae),_(Ze),_(Ge),_(xe),_(tt),_(fe),_(Pe),_(je),J=!1},d(ae){ae&&(k(e),k(H),k(j)),L(t),Q&&Q.d(),X&&X.d(),le&&le.d(),De&&De.d(),$e&&$e.d(),Ee&&Ee.d(),Be&&Be.d(),L(b),v(),Ri(_e,ae),Ce&&Ce.d(),L(B),Ze&&Ze.d(),Ge&&Ge.d(),xe&&xe.d(),tt&&tt.d(),fe&&fe.d(),Pe&&Pe.d(),i[195](null),i[196](null),je&&je.d(ae)}}}function Z3(i,e,t){var Vf,Rf;let n,o,r,l,a,s,u,c,m,h,w,b,C,v,I,y,g,P,B,M,q,te,pe,Z,x,oe,H,j,J,F,O,Q,X=Se,le=()=>(X(),X=Xt(pe,$=>t(144,Q=$)),pe),De,$e=Se,Ee=()=>($e(),$e=Xt(te,$=>t(145,De=$)),te),Be,Ne=Se,Je=()=>(Ne(),Ne=Xt(q,$=>t(146,Be=$)),q),se,_e=Se,ut=()=>(_e(),_e=Xt(M,$=>t(147,se=$)),M),Ce,Ke=Se,ht=()=>(Ke(),Ke=Xt(B,$=>t(148,Ce=$)),B),Ze,Ge=Se,xe=()=>(Ge(),Ge=Xt(P,$=>t(149,Ze=$)),P),tt,fe=Se,Pe=()=>(fe(),fe=Xt(g,$=>t(150,tt=$)),g),je,ae=Se,Te=()=>(ae(),ae=Xt(y,$=>t(151,je=$)),y),pt,Ae=Se,mt=()=>(Ae(),Ae=Xt(I,$=>t(152,pt=$)),I),me,it=Se,kt=()=>(it(),it=Xt(v,$=>t(153,me=$)),v),vt,Ue=Se,Ut=()=>(Ue(),Ue=Xt(C,$=>t(154,vt=$)),C),Rt,Et=Se,ei=()=>(Et(),Et=Xt(b,$=>t(155,Rt=$)),b),Bt,Kt=Se,ve=()=>(Kt(),Kt=Xt(w,$=>t(156,Bt=$)),w),Qe,_t=Se,ft=()=>(_t(),_t=Xt(h,$=>t(157,Qe=$)),h),Xe,At=Se,di=()=>(At(),At=Xt(m,$=>t(158,Xe=$)),m),Mt,Qi=Se,sn=()=>(Qi(),Qi=Xt(c,$=>t(159,Mt=$)),c),ti,Di=Se,hn=()=>(Di(),Di=Xt(u,$=>t(160,ti=$)),u),Yi,an,Ci,Si,mi,pi,Ti,Pi,ri,jt,Zi,Zt,Ii,Ni,Xi,Ct,ii,Ji,Pt,_i,xi,qi,xt;i.$$.on_destroy.push(()=>X()),i.$$.on_destroy.push(()=>$e()),i.$$.on_destroy.push(()=>Ne()),i.$$.on_destroy.push(()=>_e()),i.$$.on_destroy.push(()=>Ke()),i.$$.on_destroy.push(()=>Ge()),i.$$.on_destroy.push(()=>fe()),i.$$.on_destroy.push(()=>ae()),i.$$.on_destroy.push(()=>Ae()),i.$$.on_destroy.push(()=>it()),i.$$.on_destroy.push(()=>Ue()),i.$$.on_destroy.push(()=>Et()),i.$$.on_destroy.push(()=>Kt()),i.$$.on_destroy.push(()=>_t()),i.$$.on_destroy.push(()=>At()),i.$$.on_destroy.push(()=>Qi()),i.$$.on_destroy.push(()=>Di());let{bottomHidden:si}=e,{bottomNoSmooth:Oi}=e,{showControls:ni}=e,{controlsElementRef:Ei=void 0}=e,{isAds:zt=!1}=e,{canRewindLive:Fi}=e,{logoClickable:Ai}=e,{logoHidden:ai}=e,{logoTargetUrl:oi=""}=e,{showNextPrevButtons:li}=e,{nextButtonActive:un}=e,{prevButtonActive:fn}=e,{isOneVideoPlaylist:cn=!1}=e,{supportLink:Li}=e,{customFullscreenSupported:ui=!0}=e,{playNextVideo:hi}=e,{playPrevVideo:gi}=e,{repeatPlaylist:Dt}=e,{toggleFullscreen:bi}=e,{returnFocus:vi}=e,{seekToInteractive:Hi}=e,{toggleGraph:dn}=e,{playPrevChapter:yi}=e,nt=st(),wi=zn(),fi=Gt(),We=nt.actions.internal.toggleMuted,mn=nt.actions.internal.togglePlay,gn=nt.actions.internal.pause,zi=nt.actions.internal.toggleSubtitle,Ui=(Vf=nt.callbacks)==null?void 0:Vf.onAudioDoesNotExistHint,wn=(Rf=nt.callbacks)==null?void 0:Rf.onAudioDisabledHint,$i=nt.state.duration$;z(i,$i,$=>t(82,qi=$));let $t=nt.state.positionWithScrubbing$;z(i,$t,$=>t(80,_i=$));let kn=nt.state.playbackState$;z(i,kn,$=>t(161,Ci=$));let Mi=nt.state.chromecastConnected$;z(i,Mi,$=>t(83,xt=$));let Ki=nt.state.isAudioAvailable$;z(i,Ki,$=>t(198,Z=$));let bn=nt.state.isAudioDisabled,Cn=nt.state.isEnded$;z(i,Cn,$=>t(169,Ni=$));let Sn=nt.state.isLive$;z(i,Sn,$=>t(33,Pi=$));let en=nt.state.isActiveLive$;z(i,en,$=>t(163,pi=$));let vn=nt.state.isRewindableLive$;z(i,vn,$=>t(32,Ti=$));let tn=nt.ui.isPictureInPictureActive$;z(i,tn,$=>t(165,jt=$));let Qt=nt.ui.pictureInPictureType$;z(i,Qt,$=>t(164,ri=$));let Dn=nt.ui.settingsMenuVisible;z(i,Dn,$=>t(27,H=$));let ji=nt.ui.settingsMenuOpenedByKeyboard;z(i,ji,$=>t(140,oe=$));let An=nt.ui.controls,Wt=nt.actions.internal.getVideoEpisodes(),Nn=nt.state.chromecastState$;z(i,Nn,$=>t(29,Yi=$));let qn=nt.state.availableSubtitlesList$;z(i,qn,$=>t(168,Ii=$));let Ln=nt.state.currentSubtitle$;z(i,Ln,$=>t(170,Xi=$));let On=An.disabledControls$;z(i,On,$=>t(172,ii=$));let yn=nt.ui.contextMenu.visible$;z(i,yn,$=>t(162,Si=$));let nn=nt.ui.contextMenu.showContextMenuBtn$;z(i,nn,$=>t(166,Zi=$));let on=nt.ui.contextMenu.openedByBtnKeyboard$;z(i,on,$=>t(167,Zt=$));let re=nt.ui.startedByKeyboard$;z(i,re,$=>t(139,x=$));let wt=nt.ads.duration;z(i,wt,$=>t(81,xi=$));let ln=nt.ads.position;z(i,ln,$=>t(79,Pt=$));let ie=nt.ads.playbackState;z(i,ie,$=>t(171,Ct=$));let gt=nt.ui.isFullscreen;z(i,gt,$=>t(30,an=$));let Ft=nt.ui.playerSize;z(i,Ft,$=>t(142,J=$));let Mn=nt.ui.currentGridType$;z(i,Mn,$=>t(143,F=$));let Tn=nt.ui.additionalButtons$;z(i,Tn,$=>t(28,O=$));let Zn=nt.actions.internal.getVideoElement,$n=nt.actions.internal.replayInteractive,Pn=nt.state.isInteractive,eo=nt.state.isInteractiveTime$;z(i,eo,$=>t(141,j=$));let ne=nt.state.showInteractiveGraph,wo=nt.state.showSeekToInteractive,Sl=nt.state.showPlayPrevChapter,ko=nt.state.showInteractiveTimeIndicator,Co=nt.state.graphIsOpened$;z(i,Co,$=>t(31,mi=$));let to=nt.state.playPrevChapterDisabledTooltip,uo=wi.seekToInteractiveDisabledTooltip$;z(i,uo,$=>t(78,Ji=$));let Go=()=>nt.actions.internal.toggleChromecast(),Qo,So,Yo,Zo,fo,Xo,To,co,Y,Lt,pn,_n,io,Fn,no,Xn,Po,oo,Wl,Gl,Tt,Jo="",Ql=($,_s)=>{if(!$){t(50,Jo=U("tooltip_live"));return}_s===Ru.PAUSED&&t(50,Jo=U("tooltip_play"))},Tl,Pl,E,ee,ke,be={},ot,bt,Yt,Nt,rn=C3($r,260,{leading:!1}),Io,xo,Eo;function Yp(){ho({isAudioDisabled:bn,audioDisabledHintCallback:wn,isAudioAvailable:Z,audioIsNotExistHintCallback:Ui})&&We()}let Zp=Pn?$n:cn?mn:Dt;function Xp($){i.$$.not_equal(be.timeline,$)&&(be.timeline=$,t(23,be))}function Jp($){i.$$.not_equal(be.prevButton,$)&&(be.prevButton=$,t(23,be))}function xp($){i.$$.not_equal(be.replayButton,$)&&(be.replayButton=$,t(23,be))}function $p($){Eo=$,t(26,Eo)}function e_($){i.$$.not_equal(be.playButton,$)&&(be.playButton=$,t(23,be))}function t_($){i.$$.not_equal(be.nextButton,$)&&(be.nextButton=$,t(23,be))}function i_($){i.$$.not_equal(be.playPrevChapterButton,$)&&(be.playPrevChapterButton=$,t(23,be))}function n_($){i.$$.not_equal(be.seekToInteractiveButton,$)&&(be.seekToInteractiveButton=$,t(23,be))}function o_($){i.$$.not_equal(be.interactiveGraphButton,$)&&(be.interactiveGraphButton=$,t(23,be))}function l_($){i.$$.not_equal(be.liveButton,$)&&(be.liveButton=$,t(23,be))}function r_($){i.$$.not_equal(be.time,$)&&(be.time=$,t(23,be))}function s_($){i.$$.not_equal(be.episodes,$)&&(be.episodes=$,t(23,be))}function a_(){ke=this.clientWidth,t(22,ke)}function u_($){i.$$.not_equal(be.vkLogo,$)&&(be.vkLogo=$,t(23,be))}function f_($){i.$$.not_equal(be.volume,$)&&(be.volume=$,t(23,be))}function c_($){i.$$.not_equal(be.subtitles,$)&&(be.subtitles=$,t(23,be))}function d_($){Io=$,t(24,Io)}function m_($){xo=$,t(25,xo)}function p_($){i.$$.not_equal(be.settings,$)&&(be.settings=$,t(23,be))}function __($){i.$$.not_equal(be.context,$)&&(be.context=$,t(23,be))}function h_($){i.$$.not_equal(be.fullscreen,$)&&(be.fullscreen=$,t(23,be))}function g_($){i.$$.not_equal(be.chromecast,$)&&(be.chromecast=$,t(23,be))}function b_($){ge[$?"unshift":"push"](()=>{Po=$,t(46,Po)})}function v_($){ge[$?"unshift":"push"](()=>{Ei=$,t(0,Ei)})}function y_($){i.$$.not_equal(be.interactiveTimeIndicator,$)&&(be.interactiveTimeIndicator=$,t(23,be))}return i.$$set=$=>{"bottomHidden"in $&&t(1,si=$.bottomHidden),"bottomNoSmooth"in $&&t(2,Oi=$.bottomNoSmooth),"showControls"in $&&t(3,ni=$.showControls),"controlsElementRef"in $&&t(0,Ei=$.controlsElementRef),"isAds"in $&&t(4,zt=$.isAds),"canRewindLive"in $&&t(5,Fi=$.canRewindLive),"logoClickable"in $&&t(6,Ai=$.logoClickable),"logoHidden"in $&&t(129,ai=$.logoHidden),"logoTargetUrl"in $&&t(7,oi=$.logoTargetUrl),"showNextPrevButtons"in $&&t(130,li=$.showNextPrevButtons),"nextButtonActive"in $&&t(8,un=$.nextButtonActive),"prevButtonActive"in $&&t(9,fn=$.prevButtonActive),"isOneVideoPlaylist"in $&&t(131,cn=$.isOneVideoPlaylist),"supportLink"in $&&t(10,Li=$.supportLink),"customFullscreenSupported"in $&&t(132,ui=$.customFullscreenSupported),"playNextVideo"in $&&t(11,hi=$.playNextVideo),"playPrevVideo"in $&&t(12,gi=$.playPrevVideo),"repeatPlaylist"in $&&t(133,Dt=$.repeatPlaylist),"toggleFullscreen"in $&&t(13,bi=$.toggleFullscreen),"returnFocus"in $&&t(14,vi=$.returnFocus),"seekToInteractive"in $&&t(15,Hi=$.seekToInteractive),"toggleGraph"in $&&t(16,dn=$.toggleGraph),"playPrevChapter"in $&&t(17,yi=$.playPrevChapter)},i.$$.update=()=>{if(i.$$.dirty[5]&131072&&t(138,n=ii.has("EPISODE_BUTTON")),i.$$.dirty[5]&131072&&t(77,o=ii.has("GRAPH_BUTTON")),i.$$.dirty[5]&131072&&t(76,r=ii.has("SEEK_TO_INTERACTIVE_BUTTON")),i.$$.dirty[5]&131072&&t(75,l=ii.has("PLAY_BUTTON")),i.$$.dirty[5]&131072&&t(74,a=ii.has("REPLAY_BUTTON")),i.$$.dirty[5]&131072&&t(73,s=ii.has("PLAY_PREV_CHAPTER_BUTTON")),i.$$.dirty[0]&16|i.$$.dirty[5]&65600&&t(34,Qo=zt?Ct==="playing":Ci===Ru.PLAYING),i.$$.dirty[5]&32768&&t(18,So=Xi.value!=="off"),i.$$.dirty[0]&16|i.$$.dirty[5]&16384&&t(35,Yo=Ni&&!zt||Pn),i.$$.dirty[0]&16|i.$$.dirty[5]&16384&&t(36,Zo=!Ni||Pn||zt),i.$$.dirty[4]&524288&&t(134,fo=Bn(F,"m")),i.$$.dirty[0]&272|i.$$.dirty[4]&524352&&t(37,Xo=li&&Bn(F,"m")&&!zt&&un),i.$$.dirty[0]&528|i.$$.dirty[4]&524352&&t(38,To=li&&Bn(F,"m")&&!zt&&fn),i.$$.dirty[0]&536870912|i.$$.dirty[4]&524288|i.$$.dirty[5]&1536&&t(39,co=Yi!==wm.NOT_AVAILABLE&&!(jt&&ri===1)&&Bn(F,"m")&&!Pn),i.$$.dirty[4]&524288|i.$$.dirty[5]&8192&&t(40,Y=Ii.length>0&&Bn(F,"m")),i.$$.dirty[5]&6144&&t(41,Lt=Zt||Zi),i.$$.dirty[4]&524288&&t(42,pn=Bn(F,"s")),i.$$.dirty[4]&32&&t(43,_n=!ai),i.$$.dirty[4]&524576|i.$$.dirty[5]&1536&&t(44,io=fi.features.fullscreen&&(ai||Bn(F,"s"))&&!(jt&&ri===1)&&(Pn?ui:!0)),i.$$.dirty[0]&16|i.$$.dirty[1]&4&&t(19,Fn=(!Pi||zt)&&!(fi.features.interactiveHideTime&&Pn)),i.$$.dirty[4]&262144&&t(45,no=J.width>100),i.$$.dirty[0]&16|i.$$.dirty[1]&4|i.$$.dirty[4]&17408&&t(20,Xn=!zt&&!Pi&&!!(Wt!=null&&Wt.length)&&fo&&!n),i.$$.dirty[1]&2|i.$$.dirty[5]&256&&t(21,oo=!Ti||pi),i.$$.dirty[5]&64&&t(47,Wl=Ci===Ru.PLAYING?U("tooltip_pause"):U("tooltip_play")),i.$$.dirty[1]&1&&t(48,Gl=mi?U("tooltip_interactive_graph_on"):U("tooltip_interactive_graph_off")),i.$$.dirty[5]&128&&t(49,Tt=Si?U("aria_label_context_menu_close"):U("aria_label_context_menu_open")),i.$$.dirty[0]&2097152|i.$$.dirty[5]&64&&Ql(oo,Ci),i.$$.dirty[0]&262144&&t(52,Pl=So?U("tooltip_subtitles_on"):U("tooltip_subtitles_off")),i.$$.dirty[0]&1073741824&&t(53,E=an?U("tooltip_fullscreen_on"):U("tooltip_fullscreen_off")),i.$$.dirty[0]&536870912&&t(54,ee=Yi===wm.CONNECTED?U("tooltip_chromecast_on"):U("tooltip_chromecast_off")),i.$$.dirty[0]&268435456|i.$$.dirty[4]&2146435072|i.$$.dirty[5]&63&&t(135,ot={prevButton:ti?ti.right-ti.left:0,replayButton:Mt?Mt.right-Mt.left:0,playButton:Xe?Xe.right-Xe.left:0,nextButton:Qe?Qe.right-Qe.left:0,playPrevChapterButton:Bt?Bt.right-Bt.left:0,seekToInteractiveButton:Rt?Rt.right-Rt.left:0,interactiveGraphButton:vt?vt.right-vt.left:0,liveButton:me?me.right-me.left:0,time:pt?pt.right-pt.left:0,episodes:je?je.right-je.left:0,vkLogo:tt?tt.right-tt.left:0,volume:Ze?Ze.right-Ze.left:0,subtitles:Ce?Ce.right-Ce.left:0,settings:se?se.right-se.left:0,context:Be?Be.right-Be.left:0,fullscreen:De?De.right-De.left:0,chromecast:Q?Q.right-Q.left:0,additionalButtons:O.length?O.reduce($=>[...$,40],[]):[]}),i.$$.dirty[4]&6144&&(!bt||bt<ot.time)&&t(136,bt=ot.time),i.$$.dirty[0]&5767168|i.$$.dirty[4]&530432){let $=0;Xn&&(Bn(F,"xl")?$=ot.time:$=60);let _s=ot.prevButton+ot.playButton+ot.nextButton+ot.seekToInteractiveButton+ot.interactiveGraphButton+ot.liveButton+bt+$;t(137,Yt=Fn&&ke>=_s)}i.$$.dirty[4]&532480&&t(55,Nt=Yt&&Bn(F,"m")),i.$$.dirty[0]&8388616|i.$$.dirty[4]&393216&&rn(Zn(),An,be,ni),i.$$.dirty[0]&167772160&&cl(xo,H,ji),i.$$.dirty[0]&150994944|i.$$.dirty[4]&65536&&Ho(Io,H,oe),i.$$.dirty[0]&67108864|i.$$.dirty[4]&32768&&es(re,x,Eo)},t(51,Tl=fi.logoType==="vk_video"?U("tooltip_vk_video_logo"):U("tooltip_vk_logo")),hn(t(72,{prevButton:u,replayButton:c,playButton:m,nextButton:h,playPrevChapterButton:w,seekToInteractiveButton:b,interactiveGraphButton:C,liveButton:v,time:I,episodes:y,vkLogo:g,volume:P,subtitles:B,settings:M,context:q,fullscreen:te,chromecast:pe}=An,u,sn(t(71,c)),di(t(70,m)),ft(t(69,h)),ve(t(68,w)),ei(t(67,b)),Ut(t(66,C)),kt(t(65,v)),mt(t(64,I)),Te(t(63,y)),Pe(t(62,g)),xe(t(61,P)),ht(t(60,B)),ut(t(59,M)),Je(t(58,q)),Ee(t(57,te)),le(t(56,pe)))),[Ei,si,Oi,ni,zt,Fi,Ai,oi,un,fn,Li,hi,gi,bi,vi,Hi,dn,yi,So,Fn,Xn,oo,ke,be,Io,xo,Eo,H,O,Yi,an,mi,Ti,Pi,Qo,Yo,Zo,Xo,To,co,Y,Lt,pn,_n,io,no,Po,Wl,Gl,Tt,Jo,Tl,Pl,E,ee,Nt,pe,te,q,M,B,P,g,y,I,v,C,b,w,h,m,c,u,s,a,l,r,o,Ji,Pt,_i,xi,qi,xt,fi,mn,gn,zi,$i,$t,kn,Mi,Ki,Cn,Sn,en,vn,tn,Qt,Dn,ji,Wt,Nn,qn,Ln,On,yn,nn,on,re,wt,ln,ie,gt,Ft,Mn,Tn,Pn,eo,ne,wo,Sl,ko,Co,to,uo,Go,Yp,Zp,ai,li,cn,ui,Dt,fo,ot,bt,Yt,n,x,oe,j,J,F,Q,De,Be,se,Ce,Ze,tt,je,pt,me,vt,Rt,Bt,Qe,Xe,Mt,ti,Ci,Si,pi,ri,jt,Zi,Zt,Ii,Ni,Xi,Ct,ii,Xp,Jp,xp,$p,e_,t_,i_,n_,o_,l_,r_,s_,a_,u_,f_,c_,d_,m_,p_,__,h_,g_,b_,v_,y_]}var Bu=class extends W{constructor(e){super(),G(this,e,Z3,Y3,K,{bottomHidden:1,bottomNoSmooth:2,showControls:3,controlsElementRef:0,isAds:4,canRewindLive:5,logoClickable:6,logoHidden:129,logoTargetUrl:7,showNextPrevButtons:130,nextButtonActive:8,prevButtonActive:9,isOneVideoPlaylist:131,supportLink:10,customFullscreenSupported:132,playNextVideo:11,playPrevVideo:12,repeatPlaylist:133,toggleFullscreen:13,returnFocus:14,seekToInteractive:15,toggleGraph:16,playPrevChapter:17},S3,[-1,-1,-1,-1,-1,-1,-1,-1])}},qm=Bu;import{ChromecastState as Km,PlaybackState as jm}from"@vkontakte/videoplayer-core";function X3(i){let e,t,n,o,r,l=i[2].default,a=Le(l,i,i[1],null),s=[{xmlns:"http://www.w3.org/2000/svg"},{width:"24"},{height:"24"},{"aria-hidden":"true"},{"data-testid":"muted-icon"},{role:"img"},i[0]],u={};for(let c=0;c<s.length;c+=1)u=ue(u,s[c]);return{c(){e=D("svg"),a&&a.c(),t=D("g"),n=D("path"),o=D("path"),f(n,"d","M0 0h24v24H0z"),f(o,"fill","#fff"),f(o,"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"),f(t,"fill","none"),f(t,"fill-rule","evenodd"),we(e,u)},m(c,m){S(c,e,m),a&&a.m(e,null),p(e,t),p(t,n),p(t,o),r=!0},p(c,[m]){a&&a.p&&(!r||m&2)&&Ve(a,l,c,c[1],r?Me(l,c[1],m,null):Re(c[1]),null),we(e,u=Oe(s,[{xmlns:"http://www.w3.org/2000/svg"},{width:"24"},{height:"24"},{"aria-hidden":"true"},{"data-testid":"muted-icon"},{role:"img"},m&1&&c[0]]))},i(c){r||(d(a,c),r=!0)},o(c){_(a,c),r=!1},d(c){c&&k(e),a&&a.d(c)}}}function J3(i,e,t){let{$$slots:n={},$$scope:o}=e;return i.$$set=r=>{t(0,e=ue(ue({},e),ye(r))),"$$scope"in r&&t(1,o=r.$$scope)},e=ye(e),[e,o,n]}var Nu=class extends W{constructor(e){super(),G(this,e,J3,X3,K,{})}},Om=Nu;import{noop as x3}from"@vkontakte/videoplayer-shared";function $3(i){Ie(i,"svelte-6gmlbk",".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 Fm(i){let e;return{c(){e=T("span"),e.textContent=`${U("mobile_unmute")}`,f(e,"class","text svelte-6gmlbk")},m(t,n){S(t,e,n)},d(t){t&&k(e)}}}function e5(i){let e,t,n,o;var r=i[4];function l(s,u){return{}}r&&(t=In(r,l(i)));let a=i[1]&&Fm(i);return{c(){e=T("div"),t&&V(t.$$.fragment),n=R(),a&&a.c(),f(e,"class","container svelte-6gmlbk"),f(e,"aria-hidden","true"),N(e,"expanded",i[1])},m(s,u){S(s,e,u),t&&A(t,e,null),p(e,n),a&&a.m(e,null),o=!0},p(s,u){if(u&16&&r!==(r=s[4])){if(t){ce();let c=t;_(c.$$.fragment,1,0,()=>{L(c,1)}),de()}r?(t=In(r,l(s,u)),V(t.$$.fragment),d(t.$$.fragment,1),A(t,e,n)):t=null}s[1]?a||(a=Fm(s),a.c(),a.m(e,null)):a&&(a.d(1),a=null),(!o||u&2)&&N(e,"expanded",s[1])},i(s){o||(t&&d(t.$$.fragment,s),o=!0)},o(s){t&&_(t.$$.fragment,s),o=!1},d(s){s&&k(e),t&&L(t),a&&a.d()}}}function t5(i){let e,t,n;function o(l){i[6](l)}let r={testId:i[1]?"btn-mobile-unmuted":"btn-mobile-muted",click:i[2],ariaLabel:i[3],$$slots:{default:[e5]},$$scope:{ctx:i}};return i[0]!==void 0&&(r.ref=i[0]),e=new yt({props:r}),ge.push(()=>ze(e,"ref",o)),{c(){V(e.$$.fragment)},m(l,a){A(e,l,a),n=!0},p(l,[a]){let s={};a&2&&(s.testId=l[1]?"btn-mobile-unmuted":"btn-mobile-muted"),a&4&&(s.click=l[2]),a&8&&(s.ariaLabel=l[3]),a&146&&(s.$$scope={dirty:a,ctx:l}),!t&&a&1&&(t=!0,s.ref=l[0],He(()=>t=!1)),e.$set(s)},i(l){n||(d(e.$$.fragment,l),n=!0)},o(l){_(e.$$.fragment,l),n=!1},d(l){L(e,l)}}}function i5(i,e,t){let{muted:n=!1}=e,{expanded:o=!1}=e,{click:r=x3}=e,{ref:l=void 0}=e,a,s;function u(c){l=c,t(0,l)}return i.$$set=c=>{"muted"in c&&t(5,n=c.muted),"expanded"in c&&t(1,o=c.expanded),"click"in c&&t(2,r=c.click),"ref"in c&&t(0,l=c.ref)},i.$$.update=()=>{i.$$.dirty&32&&t(3,a=n?U("tooltip_volume"):U("tooltip_volume_muted")),i.$$.dirty&2&&t(4,s=o?jo:Om)},[l,o,r,a,s,n,u]}var qu=class extends W{constructor(e){super(),G(this,e,i5,t5,K,{muted:5,expanded:1,click:2,ref:0},$3)}},Ou=qu;function n5(i){let e,t,n,o,r,l=i[2].default,a=Le(l,i,i[1],null),s=[{xmlns:"http://www.w3.org/2000/svg"},{width:"24"},{height:"24"},{fill:"none"},{role:"img"},i[0]],u={};for(let c=0;c<s.length;c+=1)u=ue(u,s[c]);return{c(){e=D("svg"),a&&a.c(),t=D("path"),n=D("path"),o=D("path"),f(t,"fill","currentColor"),f(t,"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"),f(t,"clip-rule","evenodd"),f(n,"fill","currentColor"),f(n,"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"),f(n,"class","hidden-not-active"),f(o,"fill","currentColor"),f(o,"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"),f(o,"class","hidden-active"),we(e,u)},m(c,m){S(c,e,m),a&&a.m(e,null),p(e,t),p(e,n),p(e,o),r=!0},p(c,[m]){a&&a.p&&(!r||m&2)&&Ve(a,l,c,c[1],r?Me(l,c[1],m,null):Re(c[1]),null),we(e,u=Oe(s,[{xmlns:"http://www.w3.org/2000/svg"},{width:"24"},{height:"24"},{fill:"none"},{role:"img"},m&1&&c[0]]))},i(c){r||(d(a,c),r=!0)},o(c){_(a,c),r=!1},d(c){c&&k(e),a&&a.d(c)}}}function o5(i,e,t){let{$$slots:n={},$$scope:o}=e;return i.$$set=r=>{t(0,e=ue(ue({},e),ye(r))),"$$scope"in r&&t(1,o=r.$$scope)},e=ye(e),[e,o,n]}var Fu=class extends W{constructor(e){super(),G(this,e,o5,n5,K,{})}},Hm=Fu;function l5(i){Ie(i,"svelte-tmam00",'svg[data-testid="pip-icon--active"] .hidden-active,svg[data-testid="pip-icon"] .hidden-not-active{visibility:hidden;opacity:0}')}function r5(i){let e,t;return e=new Hm({props:{style:i[1],"data-testid":i[0]?"pip-icon--active":"pip-icon"}}),{c(){V(e.$$.fragment)},m(n,o){A(e,n,o),t=!0},p(n,[o]){let r={};o&2&&(r.style=n[1]),o&1&&(r["data-testid"]=n[0]?"pip-icon--active":"pip-icon"),e.$set(r)},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){_(e.$$.fragment,n),t=!1},d(n){L(e,n)}}}function s5(i,e,t){let n,{isActive:o=!1}=e;return i.$$set=r=>{"isActive"in r&&t(0,o=r.isActive)},i.$$.update=()=>{i.$$.dirty&1&&t(1,n=o?"color: #2688EB;":"color: #fff;")},[o,n]}var Hu=class extends W{constructor(e){super(),G(this,e,s5,r5,K,{isActive:0},l5)}},zm=Hu;import{noop as a5}from"@vkontakte/videoplayer-shared";function u5(i){let e,t;return e=new zm({props:{isActive:i[1]}}),{c(){V(e.$$.fragment)},m(n,o){A(e,n,o),t=!0},p(n,o){let r={};o&2&&(r.isActive=n[1]),e.$set(r)},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){_(e.$$.fragment,n),t=!1},d(n){L(e,n)}}}function f5(i){let e,t,n;function o(l){i[3](l)}let r={testId:"btn-pip",ariaLabel:U("menu_pip"),click:i[2],$$slots:{default:[u5]},$$scope:{ctx:i}};return i[0]!==void 0&&(r.ref=i[0]),e=new yt({props:r}),ge.push(()=>ze(e,"ref",o)),{c(){V(e.$$.fragment)},m(l,a){A(e,l,a),n=!0},p(l,[a]){let s={};a&4&&(s.click=l[2]),a&18&&(s.$$scope={dirty:a,ctx:l}),!t&&a&1&&(t=!0,s.ref=l[0],He(()=>t=!1)),e.$set(s)},i(l){n||(d(e.$$.fragment,l),n=!0)},o(l){_(e.$$.fragment,l),n=!1},d(l){L(e,l)}}}function c5(i,e,t){let{ref:n=void 0}=e,{isPictureInPictureActive:o=!1}=e,{click:r=a5}=e;function l(a){n=a,t(0,n)}return i.$$set=a=>{"ref"in a&&t(0,n=a.ref),"isPictureInPictureActive"in a&&t(1,o=a.isPictureInPictureActive),"click"in a&&t(2,r=a.click)},[n,o,r,l]}var zu=class extends W{constructor(e){super(),G(this,e,c5,f5,K,{ref:0,isPictureInPictureActive:1,click:2})}},Um=zu;import{throttleFn as d5}from"@vkontakte/videoplayer-shared";function m5(i){Ie(i,"svelte-1tcstu3",".wrapper-bottom.svelte-1tcstu3.svelte-1tcstu3{pointer-events:none;position:absolute;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-1tcstu3>.svelte-1tcstu3{pointer-events:auto}.wrapper-bottom.ads-timeline-mobile.svelte-1tcstu3.svelte-1tcstu3{height:9px;padding:0 4px 4px}.wrapper-middle.svelte-1tcstu3.svelte-1tcstu3{position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);transition:opacity var(--controls-transition-duration);display:flex;align-items:center}.wrapper-top-right.svelte-1tcstu3.svelte-1tcstu3{position:absolute;top:4px;right:8px;transition:opacity var(--controls-transition-duration);display:flex}.wrapper-top-left.svelte-1tcstu3.svelte-1tcstu3{position:absolute;top:4px;left:8px}.wrapper-middle-left.svelte-1tcstu3.svelte-1tcstu3,.wrapper-middle-left-second.svelte-1tcstu3.svelte-1tcstu3,.wrapper-middle-right.svelte-1tcstu3.svelte-1tcstu3{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-1tcstu3.svelte-1tcstu3{left:12px}.wrapper-middle-left-second.svelte-1tcstu3.svelte-1tcstu3{left:64px}.wrapper-middle-right.svelte-1tcstu3.svelte-1tcstu3{right:12px}.controls.svelte-1tcstu3.svelte-1tcstu3{width:100%;display:flex;align-items:center;height:var(--controls-height);white-space:nowrap;font-size:13px;transition:transform var(--controls-transition-duration) var(--controls-transition-fn);will-change:transform;padding:0 4px;box-sizing:border-box}.controls.svelte-1tcstu3 > *:not(:first-child){margin-left:8px}.hidden.svelte-1tcstu3.svelte-1tcstu3{visibility:hidden;opacity:0}.controls-hidden.svelte-1tcstu3.svelte-1tcstu3{visibility:visible;transform:translateY(100%)}.wrapper-bottom.no-smooth.svelte-1tcstu3.svelte-1tcstu3{transition:none}.settings-mobile.svelte-1tcstu3.svelte-1tcstu3{position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);transition:opacity var(--controls-transition-duration);display:flex;align-items:center;max-width:320px;width:90%}.overlay-mobile.svelte-1tcstu3.svelte-1tcstu3{position:absolute;top:0;left:0;width:100%;height:100%;background-color:rgba(0, 0, 0, .3);pointer-events:none;transition:opacity var(--controls-transition-duration)}@media screen and (orientation: portrait){.wrapper-top-right.fullscreen.svelte-1tcstu3.svelte-1tcstu3{top:16px}.wrapper-top-left.fullscreen.svelte-1tcstu3.svelte-1tcstu3{top:16px}.controls-wrapper.fullscreen.svelte-1tcstu3.svelte-1tcstu3{position:absolute;bottom:30px;width:calc(100% - 8px)}}@media screen and (orientation: landscape){.wrapper-top-left.fullscreen.svelte-1tcstu3.svelte-1tcstu3{top:12px;left:44px}.wrapper-top-right.fullscreen.svelte-1tcstu3.svelte-1tcstu3{top:12px;right:44px}.wrapper-middle-left.fullscreen.svelte-1tcstu3.svelte-1tcstu3{left:44px}.wrapper-middle-left-second.fullscreen.svelte-1tcstu3.svelte-1tcstu3{left:96px}.wrapper-middle-right.fullscreen.svelte-1tcstu3.svelte-1tcstu3{right:44px}.controls-wrapper.fullscreen.svelte-1tcstu3.svelte-1tcstu3{position:absolute;left:36px;right:36px;bottom:32px;width:calc(100% - 72px)}}")}function Wm(i,e,t){let n=i.slice();return n[170]=e[t].iconUrl,n[171]=e[t].ariaLabel,n[172]=e[t].testId,n[173]=e[t].onClick,n[174]=e[t].tooltip,n}function Gm(i){let e,t,n,o,r,l,a,s,u,c,m,h,w,b,C,v,I,y=(!i[51]||i[53])&&Qm(i),g=It(i[56]),P=[];for(let J=0;J<g.length;J+=1)P[J]=Ym(Wm(i,g,J));let B=J=>_(P[J],1,1,()=>{P[J]=null}),M=i[36]&&Zm(i),q=i[37]&&Xm(i),te=i[57]&&Jm(i),pe=i[39]&&xm(i),Z=i[8]&&$m(i),x=i[34]&&e0(i),oe=i[33]&&t0(i),H=i[8]&&i0(i),j=i[96]&&!i[29]&&n0(i);return{c(){e=T("div"),t=R(),n=T("div"),y&&y.c(),o=R(),r=T("div");for(let J=0;J<P.length;J+=1)P[J].c();l=R(),M&&M.c(),a=R(),q&&q.c(),s=R(),te&&te.c(),u=R(),pe&&pe.c(),c=R(),m=T("div"),Z&&Z.c(),h=R(),x&&x.c(),w=R(),oe&&oe.c(),b=R(),H&&H.c(),C=R(),j&&j.c(),v=dt(),f(e,"class","overlay-mobile svelte-1tcstu3"),N(e,"hidden",!i[42]),f(n,"class","wrapper-top-left svelte-1tcstu3"),N(n,"hidden",!i[3]),N(n,"fullscreen",i[52]),f(r,"class","wrapper-top-right svelte-1tcstu3"),N(r,"hidden",!i[3]&&!i[27]),N(r,"fullscreen",i[52]),f(m,"class","wrapper-middle svelte-1tcstu3"),N(m,"hidden",!i[3]||i[29])},m(J,F){S(J,e,F),S(J,t,F),S(J,n,F),y&&y.m(n,null),S(J,o,F),S(J,r,F);for(let O=0;O<P.length;O+=1)P[O]&&P[O].m(r,null);p(r,l),M&&M.m(r,null),p(r,a),q&&q.m(r,null),p(r,s),te&&te.m(r,null),p(r,u),pe&&pe.m(r,null),S(J,c,F),S(J,m,F),Z&&Z.m(m,null),p(m,h),x&&x.m(m,null),p(m,w),oe&&oe.m(m,null),p(m,b),H&&H.m(m,null),S(J,C,F),j&&j.m(J,F),S(J,v,F),I=!0},p(J,F){if((!I||F[1]&2048)&&N(e,"hidden",!J[42]),!J[51]||J[53]?y?(y.p(J,F),F[1]&5242880&&d(y,1)):(y=Qm(J),y.c(),d(y,1),y.m(n,null)):y&&(ce(),_(y,1,1,()=>{y=null}),de()),(!I||F[0]&8)&&N(n,"hidden",!J[3]),(!I||F[1]&2097152)&&N(n,"fullscreen",J[52]),F[1]&33554432){g=It(J[56]);let O;for(O=0;O<g.length;O+=1){let Q=Wm(J,g,O);P[O]?(P[O].p(Q,F),d(P[O],1)):(P[O]=Ym(Q),P[O].c(),d(P[O],1),P[O].m(r,l))}for(ce(),O=g.length;O<P.length;O+=1)B(O);de()}J[36]?M?(M.p(J,F),F[1]&32&&d(M,1)):(M=Zm(J),M.c(),d(M,1),M.m(r,a)):M&&(ce(),_(M,1,1,()=>{M=null}),de()),J[37]?q?(q.p(J,F),F[1]&64&&d(q,1)):(q=Xm(J),q.c(),d(q,1),q.m(r,s)):q&&(ce(),_(q,1,1,()=>{q=null}),de()),J[57]?te?(te.p(J,F),F[1]&67108864&&d(te,1)):(te=Jm(J),te.c(),d(te,1),te.m(r,u)):te&&(ce(),_(te,1,1,()=>{te=null}),de()),J[39]?pe?(pe.p(J,F),F[1]&256&&d(pe,1)):(pe=xm(J),pe.c(),d(pe,1),pe.m(r,null)):pe&&(ce(),_(pe,1,1,()=>{pe=null}),de()),(!I||F[0]&134217736)&&N(r,"hidden",!J[3]&&!J[27]),(!I||F[1]&2097152)&&N(r,"fullscreen",J[52]),J[8]?Z?(Z.p(J,F),F[0]&256&&d(Z,1)):(Z=$m(J),Z.c(),d(Z,1),Z.m(m,h)):Z&&(ce(),_(Z,1,1,()=>{Z=null}),de()),J[34]?x?(x.p(J,F),F[1]&8&&d(x,1)):(x=e0(J),x.c(),d(x,1),x.m(m,w)):x&&(ce(),_(x,1,1,()=>{x=null}),de()),J[33]?oe?(oe.p(J,F),F[1]&4&&d(oe,1)):(oe=t0(J),oe.c(),d(oe,1),oe.m(m,b)):oe&&(ce(),_(oe,1,1,()=>{oe=null}),de()),J[8]?H?(H.p(J,F),F[0]&256&&d(H,1)):(H=i0(J),H.c(),d(H,1),H.m(m,null)):H&&(ce(),_(H,1,1,()=>{H=null}),de()),(!I||F[0]&536870920)&&N(m,"hidden",!J[3]||J[29]),J[96]&&!J[29]?j?(j.p(J,F),F[0]&536870912&&d(j,1)):(j=n0(J),j.c(),d(j,1),j.m(v.parentNode,v)):j&&(ce(),_(j,1,1,()=>{j=null}),de())},i(J){if(!I){d(y);for(let F=0;F<g.length;F+=1)d(P[F]);d(M),d(q),d(te),d(pe),d(Z),d(x),d(oe),d(H),d(j),I=!0}},o(J){_(y),P=P.filter(Boolean);for(let F=0;F<P.length;F+=1)_(P[F]);_(M),_(q),_(te),_(pe),_(Z),_(x),_(oe),_(H),_(j),I=!1},d(J){J&&(k(e),k(t),k(n),k(o),k(r),k(c),k(m),k(C),k(v)),y&&y.d(),Ri(P,J),M&&M.d(),q&&q.d(),te&&te.d(),pe&&pe.d(),Z&&Z.d(),x&&x.d(),oe&&oe.d(),H&&H.d(),j&&j.d(J)}}}function Qm(i){let e,t,n;function o(l){i[130](l)}let r={muted:i[54],expanded:i[51]&&!i[70]&&i[55],click:i[106]};return i[20].volume!==void 0&&(r.ref=i[20].volume),e=new Ou({props:r}),ge.push(()=>ze(e,"ref",o)),{c(){V(e.$$.fragment)},m(l,a){A(e,l,a),n=!0},p(l,a){let s={};a[1]&8388608&&(s.muted=l[54]),a[1]&17825792&&(s.expanded=l[51]&&!l[70]&&l[55]),!t&&a[0]&1048576&&(t=!0,s.ref=l[20].volume,He(()=>t=!1)),e.$set(s)},i(l){n||(d(e.$$.fragment,l),n=!0)},o(l){_(e.$$.fragment,l),n=!1},d(l){L(e,l)}}}function Ym(i){var n;let e,t;return e=new Qr({props:{iconUrl:i[170],ariaLabel:(n=i[171])!=null?n:i[174],testId:i[172],onClick:i[173]}}),{c(){V(e.$$.fragment)},m(o,r){A(e,o,r),t=!0},p(o,r){var a;let l={};r[1]&33554432&&(l.iconUrl=o[170]),r[1]&33554432&&(l.ariaLabel=(a=o[171])!=null?a:o[174]),r[1]&33554432&&(l.testId=o[172]),r[1]&33554432&&(l.onClick=o[173]),e.$set(l)},i(o){t||(d(e.$$.fragment,o),t=!0)},o(o){_(e.$$.fragment,o),t=!1},d(o){L(e,o)}}}function Zm(i){let e,t,n;function o(l){i[131](l)}let r={isMobile:!0,click:i[104],state:i[28]};return i[20].chromecast!==void 0&&(r.ref=i[20].chromecast),e=new qr({props:r}),ge.push(()=>ze(e,"ref",o)),{c(){V(e.$$.fragment)},m(l,a){A(e,l,a),n=!0},p(l,a){let s={};a[0]&268435456&&(s.state=l[28]),!t&&a[0]&1048576&&(t=!0,s.ref=l[20].chromecast,He(()=>t=!1)),e.$set(s)},i(l){n||(d(e.$$.fragment,l),n=!0)},o(l){_(e.$$.fragment,l),n=!1},d(l){L(e,l)}}}function Xm(i){let e,t,n;function o(l){i[132](l)}let r={click:i[105],isPictureInPictureActive:i[26]};return i[20].pip!==void 0&&(r.ref=i[20].pip),e=new Um({props:r}),ge.push(()=>ze(e,"ref",o)),{c(){V(e.$$.fragment)},m(l,a){A(e,l,a),n=!0},p(l,a){let s={};a[0]&67108864&&(s.isPictureInPictureActive=l[26]),!t&&a[0]&1048576&&(t=!0,s.ref=l[20].pip,He(()=>t=!1)),e.$set(s)},i(l){n||(d(e.$$.fragment,l),n=!0)},o(l){_(e.$$.fragment,l),n=!1},d(l){L(e,l)}}}function Jm(i){let e,t,n;function o(l){i[133](l)}let r={};return i[22]!==void 0&&(r.ref=i[22]),e=new Rl({props:r}),ge.push(()=>ze(e,"ref",o)),{c(){V(e.$$.fragment)},m(l,a){A(e,l,a),n=!0},p(l,a){let s={};!t&&a[0]&4194304&&(t=!0,s.ref=l[22],He(()=>t=!1)),e.$set(s)},i(l){n||(d(e.$$.fragment,l),n=!0)},o(l){_(e.$$.fragment,l),n=!1},d(l){L(e,l)}}}function xm(i){let e,t,n;function o(l){i[134](l)}let r={click:i[64],targetUrl:i[7],logoClickable:i[6]};return i[20].vkLogo!==void 0&&(r.ref=i[20].vkLogo),e=new Nr({props:r}),ge.push(()=>ze(e,"ref",o)),{c(){V(e.$$.fragment)},m(l,a){A(e,l,a),n=!0},p(l,a){let s={};a[0]&128&&(s.targetUrl=l[7]),a[0]&64&&(s.logoClickable=l[6]),!t&&a[0]&1048576&&(t=!0,s.ref=l[20].vkLogo,He(()=>t=!1)),e.$set(s)},i(l){n||(d(e.$$.fragment,l),n=!0)},o(l){_(e.$$.fragment,l),n=!1},d(l){L(e,l)}}}function $m(i){let e,t,n;function o(l){i[135](l)}let r={click:i[13],type:"prev",disabled:!i[10],isMobile:!0};return i[20].prevButton!==void 0&&(r.ref=i[20].prevButton),e=new vl({props:r}),ge.push(()=>ze(e,"ref",o)),{c(){V(e.$$.fragment)},m(l,a){A(e,l,a),n=!0},p(l,a){let s={};a[0]&8192&&(s.click=l[13]),a[0]&1024&&(s.disabled=!l[10]),!t&&a[0]&1048576&&(t=!0,s.ref=l[20].prevButton,He(()=>t=!1)),e.$set(s)},i(l){n||(d(e.$$.fragment,l),n=!0)},o(l){_(e.$$.fragment,l),n=!1},d(l){L(e,l)}}}function e0(i){let e,t,n;function o(l){i[136](l)}let r={disabled:i[49],click:i[63],isMobile:!0,isPlaying:i[31]};return i[20].playButton!==void 0&&(r.ref=i[20].playButton),e=new Dl({props:r}),ge.push(()=>ze(e,"ref",o)),{c(){V(e.$$.fragment)},m(l,a){A(e,l,a),n=!0},p(l,a){let s={};a[1]&262144&&(s.disabled=l[49]),a[1]&1&&(s.isPlaying=l[31]),!t&&a[0]&1048576&&(t=!0,s.ref=l[20].playButton,He(()=>t=!1)),e.$set(s)},i(l){n||(d(e.$$.fragment,l),n=!0)},o(l){_(e.$$.fragment,l),n=!1},d(l){L(e,l)}}}function t0(i){let e,t,n;function o(l){i[137](l)}let r={disabled:i[48],click:i[107],isMobile:!0};return i[20].replayButton!==void 0&&(r.ref=i[20].replayButton),e=new Nl({props:r}),ge.push(()=>ze(e,"ref",o)),{c(){V(e.$$.fragment)},m(l,a){A(e,l,a),n=!0},p(l,a){let s={};a[1]&131072&&(s.disabled=l[48]),!t&&a[0]&1048576&&(t=!0,s.ref=l[20].replayButton,He(()=>t=!1)),e.$set(s)},i(l){n||(d(e.$$.fragment,l),n=!0)},o(l){_(e.$$.fragment,l),n=!1},d(l){L(e,l)}}}function i0(i){let e,t,n;function o(l){i[138](l)}let r={click:i[12],type:"next",disabled:!i[9],isMobile:!0};return i[20].nextButton!==void 0&&(r.ref=i[20].nextButton),e=new vl({props:r}),ge.push(()=>ze(e,"ref",o)),{c(){V(e.$$.fragment)},m(l,a){A(e,l,a),n=!0},p(l,a){let s={};a[0]&4096&&(s.click=l[12]),a[0]&512&&(s.disabled=!l[9]),!t&&a[0]&1048576&&(t=!0,s.ref=l[20].nextButton,He(()=>t=!1)),e.$set(s)},i(l){n||(d(e.$$.fragment,l),n=!0)},o(l){_(e.$$.fragment,l),n=!1},d(l){L(e,l)}}}function n0(i){let e,t,n,o,r=i[100]&&p5(i),l=i[98]&&_5(i),a=i[99]&&h5(i);return{c(){r&&r.c(),e=R(),l&&l.c(),t=R(),a&&a.c(),n=dt()},m(s,u){r&&r.m(s,u),S(s,e,u),l&&l.m(s,u),S(s,t,u),a&&a.m(s,u),S(s,n,u),o=!0},p(s,u){s[100]&&r.p(s,u),s[98]&&l.p(s,u),s[99]&&a.p(s,u)},i(s){o||(d(r),d(l),d(a),o=!0)},o(s){_(r),_(l),_(a),o=!1},d(s){s&&(k(e),k(t),k(n)),r&&r.d(s),l&&l.d(s),a&&a.d(s)}}}function p5(i){let e,t,n,o,r,l;function a(u){i[139](u)}let s={hidden:!i[3],disabled:i[47],click:i[18]};return i[20].playPrevChapterButton!==void 0&&(s.ref=i[20].playPrevChapterButton),t=new Gr({props:s}),ge.push(()=>ze(t,"ref",a)),{c(){e=T("div"),V(t.$$.fragment),f(e,"class","wrapper-middle-left svelte-1tcstu3"),N(e,"fullscreen",i[52]),N(e,"hidden",!i[3])},m(u,c){S(u,e,c),A(t,e,null),o=!0,r||(l=he(e,"click",i[108]),r=!0)},p(u,c){let m={};c[0]&8&&(m.hidden=!u[3]),c[1]&65536&&(m.disabled=u[47]),c[0]&262144&&(m.click=u[18]),!n&&c[0]&1048576&&(n=!0,m.ref=u[20].playPrevChapterButton,He(()=>n=!1)),t.$set(m),(!o||c[1]&2097152)&&N(e,"fullscreen",u[52]),(!o||c[0]&8)&&N(e,"hidden",!u[3])},i(u){o||(d(t.$$.fragment,u),o=!0)},o(u){_(t.$$.fragment,u),o=!1},d(u){u&&k(e),L(t),r=!1,l()}}}function _5(i){let e,t,n,o,r;function l(s){i[140](s)}let a={hidden:!i[3]&&!i[58],disabled:i[50],click:i[17],graphIsOpened:i[58]};return i[20].interactiveGraphButton!==void 0&&(a.ref=i[20].interactiveGraphButton),t=new jr({props:a}),ge.push(()=>ze(t,"ref",l)),{c(){e=T("div"),V(t.$$.fragment),f(e,"class",o=qf(i[100]?"wrapper-middle-left-second":"wrapper-middle-left")+" svelte-1tcstu3"),N(e,"fullscreen",i[52]),N(e,"hidden",!i[3]&&!i[58])},m(s,u){S(s,e,u),A(t,e,null),r=!0},p(s,u){let c={};u[0]&8|u[1]&134217728&&(c.hidden=!s[3]&&!s[58]),u[1]&524288&&(c.disabled=s[50]),u[0]&131072&&(c.click=s[17]),u[1]&134217728&&(c.graphIsOpened=s[58]),!n&&u[0]&1048576&&(n=!0,c.ref=s[20].interactiveGraphButton,He(()=>n=!1)),t.$set(c),(!r||u[1]&2097152)&&N(e,"fullscreen",s[52]),(!r||u[0]&8|u[1]&134217728)&&N(e,"hidden",!s[3]&&!s[58])},i(s){r||(d(t.$$.fragment,s),r=!0)},o(s){_(t.$$.fragment,s),r=!1},d(s){s&&k(e),L(t)}}}function h5(i){let e,t,n,o,r,l;function a(u){i[141](u)}let s={hidden:!i[3],disabled:i[46],click:i[16]};return i[20].seekToInteractiveButton!==void 0&&(s.ref=i[20].seekToInteractiveButton),t=new Kr({props:s}),ge.push(()=>ze(t,"ref",a)),{c(){e=T("div"),V(t.$$.fragment),f(e,"class","wrapper-middle-right svelte-1tcstu3"),N(e,"fullscreen",i[52]),N(e,"hidden",!i[3])},m(u,c){S(u,e,c),A(t,e,null),o=!0,r||(l=he(e,"click",i[109]),r=!0)},p(u,c){let m={};c[0]&8&&(m.hidden=!u[3]),c[1]&32768&&(m.disabled=u[46]),c[0]&65536&&(m.click=u[16]),!n&&c[0]&1048576&&(n=!0,m.ref=u[20].seekToInteractiveButton,He(()=>n=!1)),t.$set(m),(!o||c[1]&2097152)&&N(e,"fullscreen",u[52]),(!o||c[0]&8)&&N(e,"hidden",!u[3])},i(u){o||(d(t.$$.fragment,u),o=!0)},o(u){_(t.$$.fragment,u),o=!1},d(u){u&&k(e),L(t),r=!1,l()}}}function o0(i){let e,t,n,o,r,l=i[53]&&l0(i),a=i[32]&&r0(i);return o=new Hr({props:{position:i[59],duration:i[60]}}),{c(){l&&l.c(),e=R(),a&&a.c(),t=R(),n=T("div"),V(o.$$.fragment),f(n,"class","wrapper-bottom ads-timeline-mobile svelte-1tcstu3"),N(n,"fullscreen",i[52])},m(s,u){l&&l.m(s,u),S(s,e,u),a&&a.m(s,u),S(s,t,u),S(s,n,u),A(o,n,null),r=!0},p(s,u){s[53]?l?(l.p(s,u),u[1]&4194304&&d(l,1)):(l=l0(s),l.c(),d(l,1),l.m(e.parentNode,e)):l&&(ce(),_(l,1,1,()=>{l=null}),de()),s[32]?a?(a.p(s,u),u[1]&2&&d(a,1)):(a=r0(s),a.c(),d(a,1),a.m(t.parentNode,t)):a&&(ce(),_(a,1,1,()=>{a=null}),de());let c={};u[1]&268435456&&(c.position=s[59]),u[1]&536870912&&(c.duration=s[60]),o.$set(c),(!r||u[1]&2097152)&&N(n,"fullscreen",s[52])},i(s){r||(d(l),d(a),d(o.$$.fragment,s),r=!0)},o(s){_(l),_(a),_(o.$$.fragment,s),r=!1},d(s){s&&(k(e),k(t),k(n)),l&&l.d(s),a&&a.d(s),L(o)}}}function l0(i){let e,t,n,o;function r(a){i[142](a)}let l={muted:i[54],expanded:!1,click:i[106]};return i[20].volume!==void 0&&(l.ref=i[20].volume),t=new Ou({props:l}),ge.push(()=>ze(t,"ref",r)),{c(){e=T("div"),V(t.$$.fragment),f(e,"class","wrapper-top-right svelte-1tcstu3"),N(e,"fullscreen",i[52])},m(a,s){S(a,e,s),A(t,e,null),o=!0},p(a,s){let u={};s[1]&8388608&&(u.muted=a[54]),!n&&s[0]&1048576&&(n=!0,u.ref=a[20].volume,He(()=>n=!1)),t.$set(u),(!o||s[1]&2097152)&&N(e,"fullscreen",a[52])},i(a){o||(d(t.$$.fragment,a),o=!0)},o(a){_(t.$$.fragment,a),o=!1},d(a){a&&k(e),L(t)}}}function r0(i){let e,t,n,o;function r(a){i[143](a)}let l={disabled:i[49],click:i[63],isMobile:!0,isPlaying:!i[32]};return i[20].playButton!==void 0&&(l.ref=i[20].playButton),t=new Dl({props:l}),ge.push(()=>ze(t,"ref",r)),{c(){e=T("div"),V(t.$$.fragment),f(e,"class","wrapper-middle svelte-1tcstu3")},m(a,s){S(a,e,s),A(t,e,null),o=!0},p(a,s){let u={};s[1]&262144&&(u.disabled=a[49]),s[1]&2&&(u.isPlaying=!a[32]),!n&&s[0]&1048576&&(n=!0,u.ref=a[20].playButton,He(()=>n=!1)),t.$set(u)},i(a){o||(d(t.$$.fragment,a),o=!0)},o(a){_(t.$$.fragment,a),o=!1},d(a){a&&k(e),L(t)}}}function g5(i){let e,t,n;function o(l){i[144](l)}let r={disabled:i[48],$$slots:{default:[b5]},$$scope:{ctx:i}};return i[20].replayButton!==void 0&&(r.ref=i[20].replayButton),e=new Ht({props:r}),ge.push(()=>ze(e,"ref",o)),{c(){V(e.$$.fragment)},m(l,a){A(e,l,a),n=!0},p(l,a){let s={};a[1]&131072&&(s.disabled=l[48]),a[1]&131072|a[5]&4194304&&(s.$$scope={dirty:a,ctx:l}),!t&&a[0]&1048576&&(t=!0,s.ref=l[20].replayButton,He(()=>t=!1)),e.$set(s)},i(l){n||(d(e.$$.fragment,l),n=!0)},o(l){_(e.$$.fragment,l),n=!1},d(l){L(e,l)}}}function b5(i){let e,t;return e=new Nl({props:{disabled:i[48],click:i[95]}}),{c(){V(e.$$.fragment)},m(n,o){A(e,n,o),t=!0},p(n,o){let r={};o[1]&131072&&(r.disabled=n[48]),e.$set(r)},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){_(e.$$.fragment,n),t=!1},d(n){L(e,n)}}}function s0(i){let e,t,n;function o(l){i[145](l)}let r={$$slots:{default:[v5]},$$scope:{ctx:i}};return i[20].liveButton!==void 0&&(r.ref=i[20].liveButton),e=new Ht({props:r}),ge.push(()=>ze(e,"ref",o)),{c(){V(e.$$.fragment)},m(l,a){A(e,l,a),n=!0},p(l,a){let s={};a[0]&524288|a[1]&16384|a[5]&4194304&&(s.$$scope={dirty:a,ctx:l}),!t&&a[0]&1048576&&(t=!0,s.ref=l[20].liveButton,He(()=>t=!1)),e.$set(s)},i(l){n||(d(e.$$.fragment,l),n=!0)},o(l){_(e.$$.fragment,l),n=!1},d(l){L(e,l)}}}function v5(i){let e,t;return e=new Or({props:{isActiveLive:i[19],isMobile:!0,ariaLabel:i[45]}}),{c(){V(e.$$.fragment)},m(n,o){A(e,n,o),t=!0},p(n,o){let r={};o[0]&524288&&(r.isActiveLive=n[19]),o[1]&16384&&(r.ariaLabel=n[45]),e.$set(r)},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){_(e.$$.fragment,n),t=!1},d(n){L(e,n)}}}function a0(i){let e,t,n;function o(l){i[146](l)}let r={showDuration:i[35],position:i[4]?i[59]:i[61],duration:i[4]?i[60]:i[62],isMobile:!0};return i[20].time!==void 0&&(r.ref=i[20].time),e=new Lr({props:r}),ge.push(()=>ze(e,"ref",o)),{c(){V(e.$$.fragment)},m(l,a){A(e,l,a),n=!0},p(l,a){let s={};a[1]&16&&(s.showDuration=l[35]),a[0]&16|a[1]&1342177280&&(s.position=l[4]?l[59]:l[61]),a[0]&16|a[1]&536870912|a[2]&1&&(s.duration=l[4]?l[60]:l[62]),!t&&a[0]&1048576&&(t=!0,s.ref=l[20].time,He(()=>t=!1)),e.$set(s)},i(l){n||(d(e.$$.fragment,l),n=!0)},o(l){_(e.$$.fragment,l),n=!1},d(l){L(e,l)}}}function u0(i){let e,t,n,o;return n=new Ur({props:{position:i[61],duration:i[62],timeCodes:i[84]}}),{c(){e=T("div"),e.textContent="\xB7",t=R(),V(n.$$.fragment),f(e,"aria-hidden","true")},m(r,l){S(r,e,l),S(r,t,l),A(n,r,l),o=!0},p(r,l){let a={};l[1]&1073741824&&(a.position=r[61]),l[2]&1&&(a.duration=r[62]),n.$set(a)},i(r){o||(d(n.$$.fragment,r),o=!0)},o(r){_(n.$$.fragment,r),o=!1},d(r){r&&(k(e),k(t)),L(n,r)}}}function y5(i){let e,t,n=i[43]&&u0(i);return{c(){n&&n.c(),e=dt()},m(o,r){n&&n.m(o,r),S(o,e,r),t=!0},p(o,r){o[43]?n?(n.p(o,r),r[1]&4096&&d(n,1)):(n=u0(o),n.c(),d(n,1),n.m(e.parentNode,e)):n&&(ce(),_(n,1,1,()=>{n=null}),de())},i(o){t||(d(n),t=!0)},o(o){_(n),t=!1},d(o){o&&k(e),n&&n.d(o)}}}function f0(i){let e,t,n;function o(l){i[149](l)}let r={$$slots:{default:[w5]},$$scope:{ctx:i}};return i[20].settings!==void 0&&(r.ref=i[20].settings),e=new Ht({props:r}),ge.push(()=>ze(e,"ref",o)),{c(){V(e.$$.fragment)},m(l,a){A(e,l,a),n=!0},p(l,a){let s={};a[0]&4194304|a[5]&4194304&&(s.$$scope={dirty:a,ctx:l}),!t&&a[0]&1048576&&(t=!0,s.ref=l[20].settings,He(()=>t=!1)),e.$set(s)},i(l){n||(d(e.$$.fragment,l),n=!0)},o(l){_(e.$$.fragment,l),n=!1},d(l){L(e,l)}}}function w5(i){let e,t,n;function o(l){i[148](l)}let r={};return i[22]!==void 0&&(r.ref=i[22]),e=new Rl({props:r}),ge.push(()=>ze(e,"ref",o)),{c(){V(e.$$.fragment)},m(l,a){A(e,l,a),n=!0},p(l,a){let s={};!t&&a[0]&4194304&&(t=!0,s.ref=l[22],He(()=>t=!1)),e.$set(s)},i(l){n||(d(e.$$.fragment,l),n=!0)},o(l){_(e.$$.fragment,l),n=!1},d(l){L(e,l)}}}function c0(i){let e,t,n;function o(l){i[150](l)}let r={$$slots:{default:[k5]},$$scope:{ctx:i}};return i[20].fullscreen!==void 0&&(r.ref=i[20].fullscreen),e=new Ht({props:r}),ge.push(()=>ze(e,"ref",o)),{c(){V(e.$$.fragment)},m(l,a){A(e,l,a),n=!0},p(l,a){let s={};a[0]&16384|a[1]&2097152|a[5]&4194304&&(s.$$scope={dirty:a,ctx:l}),!t&&a[0]&1048576&&(t=!0,s.ref=l[20].fullscreen,He(()=>t=!1)),e.$set(s)},i(l){n||(d(e.$$.fragment,l),n=!0)},o(l){_(e.$$.fragment,l),n=!1},d(l){L(e,l)}}}function k5(i){let e,t;return e=new Br({props:{click:i[14],isFullscreen:i[52]}}),{c(){V(e.$$.fragment)},m(n,o){A(e,n,o),t=!0},p(n,o){let r={};o[0]&16384&&(r.click=n[14]),o[1]&2097152&&(r.isFullscreen=n[52]),e.$set(r)},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){_(e.$$.fragment,n),t=!1},d(n){L(e,n)}}}function d0(i){let e,t,n,o;function r(a){i[154](a)}let l={supportLink:i[11],returnFocus:i[15]};return i[21]!==void 0&&(l.ref=i[21]),t=new Ar({props:l}),ge.push(()=>ze(t,"ref",r)),{c(){e=T("div"),V(t.$$.fragment),f(e,"class","settings-mobile svelte-1tcstu3")},m(a,s){S(a,e,s),A(t,e,null),o=!0},p(a,s){let u={};s[0]&2048&&(u.supportLink=a[11]),s[0]&32768&&(u.returnFocus=a[15]),!n&&s[0]&2097152&&(n=!0,u.ref=a[21],He(()=>n=!1)),t.$set(u)},i(a){o||(d(t.$$.fragment,a),o=!0)},o(a){_(t.$$.fragment,a),o=!1},d(a){a&&k(e),L(t)}}}function C5(i){let e,t,n;function o(l){i[155](l)}let r={};return i[20].interactiveTimeIndicator!==void 0&&(r.ref=i[20].interactiveTimeIndicator),e=new ts({props:r}),ge.push(()=>ze(e,"ref",o)),{c(){V(e.$$.fragment)},m(l,a){A(e,l,a),n=!0},p(l,a){let s={};!t&&a[0]&1048576&&(t=!0,s.ref=l[20].interactiveTimeIndicator,He(()=>t=!1)),e.$set(s)},i(l){n||(d(e.$$.fragment,l),n=!0)},o(l){_(e.$$.fragment,l),n=!1},d(l){L(e,l)}}}function S5(i){let e,t,n,o,r,l,a,s,u,c,m,h,w,b,C,v,I,y,g,P=!i[4]&&Gm(i),B=i[4]&&i[30]!=="inactive"&&o0(i),M=i[96]&&g5(i),q=!i[4]&&i[25]&&s0(i),te=i[41]&&a0(i);function pe(O){i[147](O)}let Z={className:"w-max",disabled:!i[43],$$slots:{default:[y5]},$$scope:{ctx:i}};i[20].episodes!==void 0&&(Z.ref=i[20].episodes),u=new Ht({props:Z}),ge.push(()=>ze(u,"ref",pe));let x=i[38]&&f0(i),oe=i[40]&&c0(i);function H(O){i[152](O)}let j={isAds:i[4],canRewindLive:i[5],isRewindableLive:i[24]};i[20].timeline!==void 0&&(j.ref=i[20].timeline),b=new zr({props:j}),ge.push(()=>ze(b,"ref",H));let J=i[23]&&d0(i),F=i[101]&&C5(i);return{c(){P&&P.c(),e=R(),B&&B.c(),t=R(),n=T("div"),o=T("div"),r=T("div"),M&&M.c(),l=R(),q&&q.c(),a=R(),te&&te.c(),s=R(),V(u.$$.fragment),m=R(),x&&x.c(),h=R(),oe&&oe.c(),w=R(),V(b.$$.fragment),v=R(),J&&J.c(),I=R(),F&&F.c(),y=dt(),f(r,"class","controls svelte-1tcstu3"),N(r,"mobile",!0),f(o,"class","controls-wrapper svelte-1tcstu3"),N(o,"fullscreen",i[52]),f(n,"class","wrapper-bottom svelte-1tcstu3"),N(n,"hidden",i[1]),N(n,"controls-hidden",!i[3]),N(n,"no-smooth",i[2]),N(n,"mobile",!0)},m(O,Q){P&&P.m(O,Q),S(O,e,Q),B&&B.m(O,Q),S(O,t,Q),S(O,n,Q),p(n,o),p(o,r),M&&M.m(r,null),p(r,l),q&&q.m(r,null),p(r,a),te&&te.m(r,null),p(r,s),A(u,r,null),p(r,m),x&&x.m(r,null),p(r,h),oe&&oe.m(r,null),i[151](r),p(o,w),A(b,o,null),i[153](n),S(O,v,Q),J&&J.m(O,Q),S(O,I,Q),F&&F.m(O,Q),S(O,y,Q),g=!0},p(O,Q){O[4]?P&&(ce(),_(P,1,1,()=>{P=null}),de()):P?(P.p(O,Q),Q[0]&16&&d(P,1)):(P=Gm(O),P.c(),d(P,1),P.m(e.parentNode,e)),O[4]&&O[30]!=="inactive"?B?(B.p(O,Q),Q[0]&1073741840&&d(B,1)):(B=o0(O),B.c(),d(B,1),B.m(t.parentNode,t)):B&&(ce(),_(B,1,1,()=>{B=null}),de()),O[96]&&M.p(O,Q),!O[4]&&O[25]?q?(q.p(O,Q),Q[0]&33554448&&d(q,1)):(q=s0(O),q.c(),d(q,1),q.m(r,a)):q&&(ce(),_(q,1,1,()=>{q=null}),de()),O[41]?te?(te.p(O,Q),Q[1]&1024&&d(te,1)):(te=a0(O),te.c(),d(te,1),te.m(r,s)):te&&(ce(),_(te,1,1,()=>{te=null}),de());let X={};Q[1]&4096&&(X.disabled=!O[43]),Q[1]&1073745920|Q[2]&1|Q[5]&4194304&&(X.$$scope={dirty:Q,ctx:O}),!c&&Q[0]&1048576&&(c=!0,X.ref=O[20].episodes,He(()=>c=!1)),u.$set(X),O[38]?x?(x.p(O,Q),Q[1]&128&&d(x,1)):(x=f0(O),x.c(),d(x,1),x.m(r,h)):x&&(ce(),_(x,1,1,()=>{x=null}),de()),O[40]?oe?(oe.p(O,Q),Q[1]&512&&d(oe,1)):(oe=c0(O),oe.c(),d(oe,1),oe.m(r,null)):oe&&(ce(),_(oe,1,1,()=>{oe=null}),de());let le={};Q[0]&16&&(le.isAds=O[4]),Q[0]&32&&(le.canRewindLive=O[5]),Q[0]&16777216&&(le.isRewindableLive=O[24]),!C&&Q[0]&1048576&&(C=!0,le.ref=O[20].timeline,He(()=>C=!1)),b.$set(le),(!g||Q[1]&2097152)&&N(o,"fullscreen",O[52]),(!g||Q[0]&2)&&N(n,"hidden",O[1]),(!g||Q[0]&8)&&N(n,"controls-hidden",!O[3]),(!g||Q[0]&4)&&N(n,"no-smooth",O[2]),O[23]?J?(J.p(O,Q),Q[0]&8388608&&d(J,1)):(J=d0(O),J.c(),d(J,1),J.m(I.parentNode,I)):J&&(ce(),_(J,1,1,()=>{J=null}),de()),O[101]&&F.p(O,Q)},i(O){g||(d(P),d(B),d(M),d(q),d(te),d(u.$$.fragment,O),d(x),d(oe),d(b.$$.fragment,O),d(J),d(F),g=!0)},o(O){_(P),_(B),_(M),_(q),_(te),_(u.$$.fragment,O),_(x),_(oe),_(b.$$.fragment,O),_(J),_(F),g=!1},d(O){O&&(k(e),k(t),k(n),k(v),k(I),k(y)),P&&P.d(O),B&&B.d(O),M&&M.d(),q&&q.d(),te&&te.d(),L(u),x&&x.d(),oe&&oe.d(),i[151](null),L(b),i[153](null),J&&J.d(O),F&&F.d(O)}}}function T5(i,e,t){var Pn,eo;let n,o,r,l,a,s,u,c,m,h,w,b,C,v,I,y,g,P,B,M,q,te,pe,Z,x,oe,H,j,J,F,O,Q,X,le,De,$e,Ee,{bottomHidden:Be}=e,{bottomNoSmooth:Ne}=e,{showControls:Je}=e,{controlsElementRef:se=void 0}=e,{isAds:_e=!1}=e,{canRewindLive:ut}=e,{logoClickable:Ce}=e,{logoHidden:Ke}=e,{logoTargetUrl:ht=""}=e,{showNextPrevButtons:Ze}=e,{nextButtonActive:Ge}=e,{prevButtonActive:xe}=e,{isOneVideoPlaylist:tt=!1}=e,{supportLink:fe}=e,{customFullscreenSupported:Pe=!0}=e,{playNextVideo:je}=e,{playPrevVideo:ae}=e,{repeatPlaylist:Te}=e,{toggleFullscreen:pt}=e,{returnFocus:Ae}=e,{seekToInteractive:mt}=e,{toggleGraph:me}=e,{playPrevChapter:it}=e,{onDisabledPlayPrevChapterClick:kt}=e,{onDisabledSeekToInteractiveClick:vt}=e,Ue=st(),Ut=zn(),Rt=Gt(),Et=Ue.actions.internal.toggleMuted,ei=Ue.actions.internal.togglePlay,Bt=Ue.actions.internal.pause,Kt=(Pn=Ue.callbacks)==null?void 0:Pn.onAudioDoesNotExistHint,ve=(eo=Ue.callbacks)==null?void 0:eo.onAudioDisabledHint,Qe=Ue.playerPhase;z(i,Qe,ne=>t(126,q=ne));let _t=Ue.state.duration$;z(i,_t,ne=>t(62,Ee=ne));let ft=Ue.state.positionWithScrubbing$;z(i,ft,ne=>t(61,$e=ne));let Xe=Ue.state.playbackState$;z(i,Xe,ne=>t(121,h=ne));let At=Ue.state.isAudioAvailable$;z(i,At,ne=>t(51,w=ne));let di=Ue.state.isAudioDisabled,Mt=Ue.state.isEnded$;z(i,Mt,ne=>t(127,pe=ne));let Qi=Ue.state.isLive$;z(i,Qi,ne=>t(25,y=ne));let sn=Ue.state.muted$;z(i,sn,ne=>t(54,J=ne));let ti=Ue.state.isActiveLive$;z(i,ti,ne=>t(124,v=ne));let Di=Ue.state.isRewindableLive$;z(i,Di,ne=>t(24,I=ne));let hn=Ue.ui.scrubbingInProgress;z(i,hn,ne=>t(29,te=ne));let Yi=Ue.ui.mobileNotReportControlHidden$;z(i,Yi,ne=>t(27,B=ne));let an=Ue.ui.isPictureInPictureActive$;z(i,an,ne=>t(26,P=ne));let Ci=Ue.ui.pictureInPictureType$;z(i,Ci,ne=>t(125,g=ne));let Si=Ue.ui.mobileUnmuteButtonExpanded;z(i,Si,ne=>t(55,F=ne));let mi=Ue.ui.mobileUnmuteButtonVisible;z(i,mi,ne=>t(53,j=ne));let pi=Ue.ui.settingsMenuVisible;z(i,pi,ne=>t(23,m=ne));let Ti=Ue.ui.settingsMenuOpenedByKeyboard;z(i,Ti,ne=>t(120,c=ne));let Pi=Ue.ui.controls,ri=Ue.actions.internal.getVideoEpisodes(),jt=Ue.webApi.pictureInPictureApi,Zi=Ue.state.chromecastState$;z(i,Zi,ne=>t(28,M=ne));let Zt=Ue.state.crashed$;z(i,Zt,ne=>t(57,Q=ne));let Ii=Pi.disabledControls$;z(i,Ii,ne=>t(128,x=ne));let Ni=Ue.ui.startedByKeyboard$;z(i,Ni,ne=>t(119,u=ne));let Xi=Ue.ads.duration;z(i,Xi,ne=>t(60,De=ne));let Ct=Ue.ads.position;z(i,Ct,ne=>t(59,le=ne));let ii=Ue.ads.playbackState;z(i,ii,ne=>t(30,Z=ne));let Ji=Ue.ui.isFullscreen;z(i,Ji,ne=>t(52,H=ne));let Pt=Ue.ui.playerSize;z(i,Pt,ne=>t(123,C=ne));let _i=Ue.ui.additionalButtons$;z(i,_i,ne=>t(56,O=ne));let xi=Ue.actions.internal.getVideoElement,qi=Ue.actions.internal.replayInteractive,xt=Ue.state.isInteractive,si=Ue.state.isInteractiveTime$;z(i,si,ne=>t(122,b=ne));let Oi=Ue.state.showInteractiveGraph,ni=Ue.state.showSeekToInteractive,Ei=Ue.state.showPlayPrevChapter,zt=Ue.state.showInteractiveTimeIndicator,Fi=Ue.state.graphIsOpened$;z(i,Fi,ne=>t(58,X=ne));let Ai=Ut.seekToInteractiveDisabledTooltip$;z(i,Ai,ne=>t(129,oe=ne));let ai,oi,li,un,fn,cn,Li,ui,hi,gi,Dt,bi,vi,Hi,dn,yi,nt,wi,fi,We={},mn=d5($r,260,{leading:!1}),gn=()=>Ue.actions.internal.toggleChromecast();function zi(){ho({isAudioDisabled:di,audioDisabledHintCallback:ve,isAudioAvailable:w,audioIsNotExistHintCallback:Kt})&&Et()}function Ui(){return ct(this,null,function*(){jt!=null&&jt.isActive()?yield jt==null?void 0:jt.remove():yield jt==null?void 0:jt.request()})}function wn(){!di&&w&&mi.set(!1),zi()}let $i=tt?ei:Te,$t="",kn=(ne,wo)=>{if(!ne){t(45,$t=U("tooltip_live"));return}wo===jm.PAUSED&&t(45,$t=U("tooltip_play"))},Mi,Ki,bn=()=>{s&&kt(ai)},Cn=()=>{r&&vt(oi)};function Sn(ne){i.$$.not_equal(We.volume,ne)&&(We.volume=ne,t(20,We))}function en(ne){i.$$.not_equal(We.chromecast,ne)&&(We.chromecast=ne,t(20,We))}function vn(ne){i.$$.not_equal(We.pip,ne)&&(We.pip=ne,t(20,We))}function tn(ne){Ki=ne,t(22,Ki)}function Qt(ne){i.$$.not_equal(We.vkLogo,ne)&&(We.vkLogo=ne,t(20,We))}function Dn(ne){i.$$.not_equal(We.prevButton,ne)&&(We.prevButton=ne,t(20,We))}function ji(ne){i.$$.not_equal(We.playButton,ne)&&(We.playButton=ne,t(20,We))}function An(ne){i.$$.not_equal(We.replayButton,ne)&&(We.replayButton=ne,t(20,We))}function Wt(ne){i.$$.not_equal(We.nextButton,ne)&&(We.nextButton=ne,t(20,We))}function Nn(ne){i.$$.not_equal(We.playPrevChapterButton,ne)&&(We.playPrevChapterButton=ne,t(20,We))}function qn(ne){i.$$.not_equal(We.interactiveGraphButton,ne)&&(We.interactiveGraphButton=ne,t(20,We))}function Ln(ne){i.$$.not_equal(We.seekToInteractiveButton,ne)&&(We.seekToInteractiveButton=ne,t(20,We))}function On(ne){i.$$.not_equal(We.volume,ne)&&(We.volume=ne,t(20,We))}function yn(ne){i.$$.not_equal(We.playButton,ne)&&(We.playButton=ne,t(20,We))}function nn(ne){i.$$.not_equal(We.replayButton,ne)&&(We.replayButton=ne,t(20,We))}function on(ne){i.$$.not_equal(We.liveButton,ne)&&(We.liveButton=ne,t(20,We))}function re(ne){i.$$.not_equal(We.time,ne)&&(We.time=ne,t(20,We))}function wt(ne){i.$$.not_equal(We.episodes,ne)&&(We.episodes=ne,t(20,We))}function ln(ne){Ki=ne,t(22,Ki)}function ie(ne){i.$$.not_equal(We.settings,ne)&&(We.settings=ne,t(20,We))}function gt(ne){i.$$.not_equal(We.fullscreen,ne)&&(We.fullscreen=ne,t(20,We))}function Ft(ne){ge[ne?"unshift":"push"](()=>{wi=ne,t(44,wi)})}function Mn(ne){i.$$.not_equal(We.timeline,ne)&&(We.timeline=ne,t(20,We))}function Tn(ne){ge[ne?"unshift":"push"](()=>{se=ne,t(0,se)})}function Zn(ne){Mi=ne,t(21,Mi)}function $n(ne){i.$$.not_equal(We.interactiveTimeIndicator,ne)&&(We.interactiveTimeIndicator=ne,t(20,We))}return i.$$set=ne=>{"bottomHidden"in ne&&t(1,Be=ne.bottomHidden),"bottomNoSmooth"in ne&&t(2,Ne=ne.bottomNoSmooth),"showControls"in ne&&t(3,Je=ne.showControls),"controlsElementRef"in ne&&t(0,se=ne.controlsElementRef),"isAds"in ne&&t(4,_e=ne.isAds),"canRewindLive"in ne&&t(5,ut=ne.canRewindLive),"logoClickable"in ne&&t(6,Ce=ne.logoClickable),"logoHidden"in ne&&t(110,Ke=ne.logoHidden),"logoTargetUrl"in ne&&t(7,ht=ne.logoTargetUrl),"showNextPrevButtons"in ne&&t(8,Ze=ne.showNextPrevButtons),"nextButtonActive"in ne&&t(9,Ge=ne.nextButtonActive),"prevButtonActive"in ne&&t(10,xe=ne.prevButtonActive),"isOneVideoPlaylist"in ne&&t(111,tt=ne.isOneVideoPlaylist),"supportLink"in ne&&t(11,fe=ne.supportLink),"customFullscreenSupported"in ne&&t(112,Pe=ne.customFullscreenSupported),"playNextVideo"in ne&&t(12,je=ne.playNextVideo),"playPrevVideo"in ne&&t(13,ae=ne.playPrevVideo),"repeatPlaylist"in ne&&t(113,Te=ne.repeatPlaylist),"toggleFullscreen"in ne&&t(14,pt=ne.toggleFullscreen),"returnFocus"in ne&&t(15,Ae=ne.returnFocus),"seekToInteractive"in ne&&t(16,mt=ne.seekToInteractive),"toggleGraph"in ne&&t(17,me=ne.toggleGraph),"playPrevChapter"in ne&&t(18,it=ne.playPrevChapter),"onDisabledPlayPrevChapterClick"in ne&&t(114,kt=ne.onDisabledPlayPrevChapterClick),"onDisabledSeekToInteractiveClick"in ne&&t(115,vt=ne.onDisabledSeekToInteractiveClick)},i.$$.update=()=>{if(i.$$.dirty[4]&32&&(oi=U(oe)),i.$$.dirty[4]&16&&t(118,n=x.has("EPISODE_BUTTON")),i.$$.dirty[4]&16&&t(50,o=x.has("GRAPH_BUTTON")),i.$$.dirty[4]&16&&t(46,r=x.has("SEEK_TO_INTERACTIVE_BUTTON")),i.$$.dirty[4]&16&&t(49,l=x.has("PLAY_BUTTON")),i.$$.dirty[4]&16&&t(48,a=x.has("REPLAY_BUTTON")),i.$$.dirty[4]&16&&t(47,s=x.has("PLAY_PREV_CHAPTER_BUTTON")),i.$$.dirty[3]&268435456&&t(31,li=h===jm.PLAYING),i.$$.dirty[0]&1073741824&&t(32,un=Z==="paused"),i.$$.dirty[0]&16|i.$$.dirty[4]&8&&t(33,fn=pe&&!_e&&!xt),i.$$.dirty[0]&16|i.$$.dirty[4]&8&&t(34,cn=!pe||_e),i.$$.dirty[3]&1073741824&&t(116,Li=C.width>300),i.$$.dirty[3]&1073741824&&t(35,ui=C.width>400),i.$$.dirty[0]&536870912&&t(117,hi=te),i.$$.dirty[0]&469762048|i.$$.dirty[4]&2&&t(36,gi=M!==Km.NOT_AVAILABLE&&!(P&&g===1)&&!B&&!xt),i.$$.dirty[0]&402653184|i.$$.dirty[3]&16777216|i.$$.dirty[4]&6){let ne=q==="LiveWaitingStart";t(37,Dt=!!jt&&M!==Km.CONNECTED&&!B&&(g===1&&ne||!ne)&&!hi&&!xt)}i.$$.dirty[3]&16777216&&t(38,bi=!hi),i.$$.dirty[3]&1073872896&&t(39,vi=!Ke&&C.width>350),i.$$.dirty[0]&67108864|i.$$.dirty[3]&17301504|i.$$.dirty[4]&2&&t(40,Hi=Rt.features.fullscreen&&!(P&&g===1)&&(xt?Pe:!0)&&!hi),i.$$.dirty[0]&33554448|i.$$.dirty[3]&1090519040&&t(41,dn=(!y||_e)&&C.width>260&&!hi&&!(Rt.features.interactiveHideTime&&xt)),i.$$.dirty[0]&8388616&&t(42,yi=m||Je),i.$$.dirty[0]&33554448|i.$$.dirty[3]&58720256&&t(43,nt=!_e&&!y&&!!(ri!=null&&ri.length)&&Li&&!n&&!hi),i.$$.dirty[0]&16777216|i.$$.dirty[4]&1&&t(19,fi=!I||v),i.$$.dirty[0]&1048584|i.$$.dirty[3]&1610612736&&mn(xi(),Pi,We,Je),i.$$.dirty[0]&524288|i.$$.dirty[3]&268435456&&kn(fi,h),i.$$.dirty[0]&12582912&&cl(Ki,m,Ti),i.$$.dirty[0]&10485760|i.$$.dirty[3]&134217728&&Ho(Mi,m,c),i.$$.dirty[0]&1048576|i.$$.dirty[3]&67108864&&es(Ni,u,We.playButton)},ai=U(Ue.state.playPrevChapterDisabledTooltip),[se,Be,Ne,Je,_e,ut,Ce,ht,Ze,Ge,xe,fe,je,ae,pt,Ae,mt,me,it,fi,We,Mi,Ki,m,I,y,P,B,M,te,Z,li,un,fn,cn,ui,gi,Dt,bi,vi,Hi,dn,yi,nt,wi,$t,r,s,a,l,o,w,H,j,J,F,O,Q,X,le,De,$e,Ee,ei,Bt,Qe,_t,ft,Xe,At,di,Mt,Qi,sn,ti,Di,hn,Yi,an,Ci,Si,mi,pi,Ti,ri,Zi,Zt,Ii,Ni,Xi,Ct,ii,Ji,Pt,_i,qi,xt,si,Oi,ni,Ei,zt,Fi,Ai,gn,Ui,wn,$i,bn,Cn,Ke,tt,Pe,Te,kt,vt,Li,hi,n,u,c,h,b,C,v,g,q,pe,x,oe,Sn,en,vn,tn,Qt,Dn,ji,An,Wt,Nn,qn,Ln,On,yn,nn,on,re,wt,ln,ie,gt,Ft,Mn,Tn,Zn,$n]}var Uu=class extends W{constructor(e){super(),G(this,e,T5,S5,K,{bottomHidden:1,bottomNoSmooth:2,showControls:3,controlsElementRef:0,isAds:4,canRewindLive:5,logoClickable:6,logoHidden:110,logoTargetUrl:7,showNextPrevButtons:8,nextButtonActive:9,prevButtonActive:10,isOneVideoPlaylist:111,supportLink:11,customFullscreenSupported:112,playNextVideo:12,playPrevVideo:13,repeatPlaylist:113,toggleFullscreen:14,returnFocus:15,seekToInteractive:16,toggleGraph:17,playPrevChapter:18,onDisabledPlayPrevChapterClick:114,onDisabledSeekToInteractiveClick:115},m5,[-1,-1,-1,-1,-1,-1])}},m0=Uu;function P5(i){let e,t,n;function o(l){i[28](l)}let r={bottomHidden:i[1],bottomNoSmooth:i[2],showControls:i[3],isAds:i[4],canRewindLive:i[5],logoClickable:i[6],logoHidden:i[7],logoTargetUrl:i[8],showNextPrevButtons:i[9],nextButtonActive:i[10],prevButtonActive:i[11],isOneVideoPlaylist:i[12],supportLink:i[13],customFullscreenSupported:i[14],playNextVideo:i[15],playPrevVideo:i[16],repeatPlaylist:i[17],toggleFullscreen:i[18],returnFocus:i[19],seekToInteractive:i[20],toggleGraph:i[21],playPrevChapter:i[22]};return i[0]!==void 0&&(r.controlsElementRef=i[0]),e=new qm({props:r}),ge.push(()=>ze(e,"controlsElementRef",o)),{c(){V(e.$$.fragment)},m(l,a){A(e,l,a),n=!0},p(l,a){let s={};a&2&&(s.bottomHidden=l[1]),a&4&&(s.bottomNoSmooth=l[2]),a&8&&(s.showControls=l[3]),a&16&&(s.isAds=l[4]),a&32&&(s.canRewindLive=l[5]),a&64&&(s.logoClickable=l[6]),a&128&&(s.logoHidden=l[7]),a&256&&(s.logoTargetUrl=l[8]),a&512&&(s.showNextPrevButtons=l[9]),a&1024&&(s.nextButtonActive=l[10]),a&2048&&(s.prevButtonActive=l[11]),a&4096&&(s.isOneVideoPlaylist=l[12]),a&8192&&(s.supportLink=l[13]),a&16384&&(s.customFullscreenSupported=l[14]),a&32768&&(s.playNextVideo=l[15]),a&65536&&(s.playPrevVideo=l[16]),a&131072&&(s.repeatPlaylist=l[17]),a&262144&&(s.toggleFullscreen=l[18]),a&524288&&(s.returnFocus=l[19]),a&1048576&&(s.seekToInteractive=l[20]),a&2097152&&(s.toggleGraph=l[21]),a&4194304&&(s.playPrevChapter=l[22]),!t&&a&1&&(t=!0,s.controlsElementRef=l[0],He(()=>t=!1)),e.$set(s)},i(l){n||(d(e.$$.fragment,l),n=!0)},o(l){_(e.$$.fragment,l),n=!1},d(l){L(e,l)}}}function I5(i){let e,t,n;function o(l){i[27](l)}let r={bottomHidden:i[1],bottomNoSmooth:i[2],showControls:i[3],isAds:i[4],canRewindLive:i[5],logoClickable:i[6],logoHidden:i[7],logoTargetUrl:i[8],showNextPrevButtons:i[9],nextButtonActive:i[10],prevButtonActive:i[11],isOneVideoPlaylist:i[12],supportLink:i[13],customFullscreenSupported:i[14],playNextVideo:i[15],playPrevVideo:i[16],repeatPlaylist:i[17],toggleFullscreen:i[18],returnFocus:i[19],seekToInteractive:i[20],toggleGraph:i[21],playPrevChapter:i[22],onDisabledPlayPrevChapterClick:i[23],onDisabledSeekToInteractiveClick:i[24]};return i[0]!==void 0&&(r.controlsElementRef=i[0]),e=new m0({props:r}),ge.push(()=>ze(e,"controlsElementRef",o)),{c(){V(e.$$.fragment)},m(l,a){A(e,l,a),n=!0},p(l,a){let s={};a&2&&(s.bottomHidden=l[1]),a&4&&(s.bottomNoSmooth=l[2]),a&8&&(s.showControls=l[3]),a&16&&(s.isAds=l[4]),a&32&&(s.canRewindLive=l[5]),a&64&&(s.logoClickable=l[6]),a&128&&(s.logoHidden=l[7]),a&256&&(s.logoTargetUrl=l[8]),a&512&&(s.showNextPrevButtons=l[9]),a&1024&&(s.nextButtonActive=l[10]),a&2048&&(s.prevButtonActive=l[11]),a&4096&&(s.isOneVideoPlaylist=l[12]),a&8192&&(s.supportLink=l[13]),a&16384&&(s.customFullscreenSupported=l[14]),a&32768&&(s.playNextVideo=l[15]),a&65536&&(s.playPrevVideo=l[16]),a&131072&&(s.repeatPlaylist=l[17]),a&262144&&(s.toggleFullscreen=l[18]),a&524288&&(s.returnFocus=l[19]),a&1048576&&(s.seekToInteractive=l[20]),a&2097152&&(s.toggleGraph=l[21]),a&4194304&&(s.playPrevChapter=l[22]),a&8388608&&(s.onDisabledPlayPrevChapterClick=l[23]),a&16777216&&(s.onDisabledSeekToInteractiveClick=l[24]),!t&&a&1&&(t=!0,s.controlsElementRef=l[0],He(()=>t=!1)),e.$set(s)},i(l){n||(d(e.$$.fragment,l),n=!0)},o(l){_(e.$$.fragment,l),n=!1},d(l){L(e,l)}}}function E5(i){let e,t,n,o,r=[I5,P5],l=[];function a(s,u){return s[25]?0:1}return e=a(i,-1),t=l[e]=r[e](i),{c(){t.c(),n=dt()},m(s,u){l[e].m(s,u),S(s,n,u),o=!0},p(s,[u]){let c=e;e=a(s,u),e===c?l[e].p(s,u):(ce(),_(l[c],1,1,()=>{l[c]=null}),de(),t=l[e],t?t.p(s,u):(t=l[e]=r[e](s),t.c()),d(t,1),t.m(n.parentNode,n))},i(s){o||(d(t),o=!0)},o(s){_(t),o=!1},d(s){s&&k(n),l[e].d(s)}}}function A5(i,e,t){let n,{bottomHidden:o}=e,{bottomNoSmooth:r=!1}=e,{showControls:l}=e,{controlsElementRef:a=void 0}=e,{isAds:s=!1}=e,{canRewindLive:u}=e,{logoClickable:c}=e,{logoHidden:m}=e,{logoTargetUrl:h=""}=e,{showNextPrevButtons:w}=e,{nextButtonActive:b}=e,{prevButtonActive:C}=e,{isOneVideoPlaylist:v=!1}=e,{supportLink:I}=e,{customFullscreenSupported:y=!0}=e,{playNextVideo:g}=e,{playPrevVideo:P}=e,{repeatPlaylist:B}=e,{toggleFullscreen:M}=e,{returnFocus:q=Ku}=e,{seekToInteractive:te}=e,{toggleGraph:pe}=e,{playPrevChapter:Z}=e,{onDisabledPlayPrevChapterClick:x=Ku}=e,{onDisabledSeekToInteractiveClick:oe=Ku}=e,j=st().ui.isMobile;z(i,j,O=>t(25,n=O));function J(O){a=O,t(0,a)}function F(O){a=O,t(0,a)}return i.$$set=O=>{"bottomHidden"in O&&t(1,o=O.bottomHidden),"bottomNoSmooth"in O&&t(2,r=O.bottomNoSmooth),"showControls"in O&&t(3,l=O.showControls),"controlsElementRef"in O&&t(0,a=O.controlsElementRef),"isAds"in O&&t(4,s=O.isAds),"canRewindLive"in O&&t(5,u=O.canRewindLive),"logoClickable"in O&&t(6,c=O.logoClickable),"logoHidden"in O&&t(7,m=O.logoHidden),"logoTargetUrl"in O&&t(8,h=O.logoTargetUrl),"showNextPrevButtons"in O&&t(9,w=O.showNextPrevButtons),"nextButtonActive"in O&&t(10,b=O.nextButtonActive),"prevButtonActive"in O&&t(11,C=O.prevButtonActive),"isOneVideoPlaylist"in O&&t(12,v=O.isOneVideoPlaylist),"supportLink"in O&&t(13,I=O.supportLink),"customFullscreenSupported"in O&&t(14,y=O.customFullscreenSupported),"playNextVideo"in O&&t(15,g=O.playNextVideo),"playPrevVideo"in O&&t(16,P=O.playPrevVideo),"repeatPlaylist"in O&&t(17,B=O.repeatPlaylist),"toggleFullscreen"in O&&t(18,M=O.toggleFullscreen),"returnFocus"in O&&t(19,q=O.returnFocus),"seekToInteractive"in O&&t(20,te=O.seekToInteractive),"toggleGraph"in O&&t(21,pe=O.toggleGraph),"playPrevChapter"in O&&t(22,Z=O.playPrevChapter),"onDisabledPlayPrevChapterClick"in O&&t(23,x=O.onDisabledPlayPrevChapterClick),"onDisabledSeekToInteractiveClick"in O&&t(24,oe=O.onDisabledSeekToInteractiveClick)},[a,o,r,l,s,u,c,m,h,w,b,C,v,I,y,g,P,B,M,q,te,pe,Z,x,oe,n,j,J,F]}var ju=class extends W{constructor(e){super(),G(this,e,A5,E5,K,{bottomHidden:1,bottomNoSmooth:2,showControls:3,controlsElementRef:0,isAds:4,canRewindLive:5,logoClickable:6,logoHidden:7,logoTargetUrl:8,showNextPrevButtons:9,nextButtonActive:10,prevButtonActive:11,isOneVideoPlaylist:12,supportLink:13,customFullscreenSupported:14,playNextVideo:15,playPrevVideo:16,repeatPlaylist:17,toggleFullscreen:18,returnFocus:19,seekToInteractive:20,toggleGraph:21,playPrevChapter:22,onDisabledPlayPrevChapterClick:23,onDisabledSeekToInteractiveClick:24})}},is=ju;function L5(i){let e,t,n,o,r,l,a,s,u,c,m,h,w,b,C=i[2].default,v=Le(C,i,i[1],null),I=[{xmlns:"http://www.w3.org/2000/svg"},{width:"48"},{height:"51"},{fill:"none"},{"aria-hidden":"true"},{"data-testid":"seek-icon"},{role:"img"},i[0]],y={};for(let g=0;g<I.length;g+=1)y=ue(y,I[g]);return{c(){e=D("svg"),v&&v.c(),t=D("g"),n=D("path"),o=D("path"),r=D("defs"),l=D("filter"),a=D("feFlood"),s=D("feColorMatrix"),u=D("feOffset"),c=D("feGaussianBlur"),m=D("feColorMatrix"),h=D("feBlend"),w=D("feBlend"),f(n,"fill","#fff"),f(n,"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"),f(o,"stroke","#000"),f(o,"stroke-opacity",".12"),f(o,"stroke-width",".5"),f(o,"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"),f(t,"filter","url(#a)"),f(a,"flood-opacity","0"),f(a,"result","BackgroundImageFix"),f(s,"in","SourceAlpha"),f(s,"result","hardAlpha"),f(s,"values","0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0"),f(c,"stdDeviation","2.5"),f(m,"values","0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.16 0"),f(h,"in2","BackgroundImageFix"),f(h,"result","effect1_dropShadow_2260_100684"),f(w,"in","SourceGraphic"),f(w,"in2","effect1_dropShadow_2260_100684"),f(w,"result","shape"),f(l,"id","a"),f(l,"width","43.996"),f(l,"height","49.5"),f(l,"x","2.5"),f(l,"y","0"),f(l,"color-interpolation-filters","sRGB"),f(l,"filterUnits","userSpaceOnUse"),we(e,y)},m(g,P){S(g,e,P),v&&v.m(e,null),p(e,t),p(t,n),p(t,o),p(e,r),p(r,l),p(l,a),p(l,s),p(l,u),p(l,c),p(l,m),p(l,h),p(l,w),b=!0},p(g,[P]){v&&v.p&&(!b||P&2)&&Ve(v,C,g,g[1],b?Me(C,g[1],P,null):Re(g[1]),null),we(e,y=Oe(I,[{xmlns:"http://www.w3.org/2000/svg"},{width:"48"},{height:"51"},{fill:"none"},{"aria-hidden":"true"},{"data-testid":"seek-icon"},{role:"img"},P&1&&g[0]]))},i(g){b||(d(v,g),b=!0)},o(g){_(v,g),b=!1},d(g){g&&k(e),v&&v.d(g)}}}function M5(i,e,t){let{$$slots:n={},$$scope:o}=e;return i.$$set=r=>{t(0,e=ue(ue({},e),ye(r))),"$$scope"in r&&t(1,o=r.$$scope)},e=ye(e),[e,o,n]}var Wu=class extends W{constructor(e){super(),G(this,e,M5,L5,K,{})}},p0=Wu;function V5(i){let e,t;return e=new p0({props:{style:i[0]}}),{c(){V(e.$$.fragment)},m(n,o){A(e,n,o),t=!0},p(n,[o]){let r={};o&1&&(r.style=n[0]),e.$set(r)},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){_(e.$$.fragment,n),t=!1},d(n){L(e,n)}}}function R5(i,e,t){let n,{reversed:o=!1}=e;return i.$$set=r=>{"reversed"in r&&t(1,o=r.reversed)},i.$$.update=()=>{i.$$.dirty&2&&t(0,n=o?"transform: scaleX(-1);":void 0)},[n,o]}var Gu=class extends W{constructor(e){super(),G(this,e,R5,V5,K,{reversed:1})}},_0=Gu;function B5(i){let e,t,n,o,r,l,a,s,u,c,m,h,w,b,C,v,I=i[2].default,y=Le(I,i,i[1],null),g=[{xmlns:"http://www.w3.org/2000/svg"},{width:"48"},{height:"48"},{fill:"none"},{"aria-hidden":"true"},{"data-testid":"subtitles-on-icon"},{role:"img"},i[0]],P={};for(let B=0;B<g.length;B+=1)P=ue(P,g[B]);return{c(){e=D("svg"),y&&y.c(),t=D("g"),n=D("path"),o=D("path"),r=D("defs"),l=D("clipPath"),a=D("path"),s=D("filter"),u=D("feFlood"),c=D("feColorMatrix"),m=D("feOffset"),h=D("feGaussianBlur"),w=D("feColorMatrix"),b=D("feBlend"),C=D("feBlend"),f(n,"fill","#fff"),f(n,"fill-rule","evenodd"),f(n,"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"),f(n,"clip-rule","evenodd"),f(o,"stroke","#000"),f(o,"stroke-opacity",".12"),f(o,"stroke-width",".5"),f(o,"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"),f(t,"clip-path","url(#c)"),f(t,"filter","url(#a)"),f(a,"fill","#fff"),f(a,"d","M0 0h48v48H0z"),f(l,"id","c"),f(u,"flood-opacity","0"),f(u,"result","BackgroundImageFix"),f(c,"in","SourceAlpha"),f(c,"result","hardAlpha"),f(c,"values","0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0"),f(h,"stdDeviation","2.5"),f(w,"values","0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.16 0"),f(b,"in2","BackgroundImageFix"),f(b,"result","effect1_dropShadow_2260_104204"),f(C,"in","SourceGraphic"),f(C,"in2","effect1_dropShadow_2260_104204"),f(C,"result","shape"),f(s,"id","a"),f(s,"width","51"),f(s,"height","45"),f(s,"x","-1.5"),f(s,"y","1.5"),f(s,"color-interpolation-filters","sRGB"),f(s,"filterUnits","userSpaceOnUse"),we(e,P)},m(B,M){S(B,e,M),y&&y.m(e,null),p(e,t),p(t,n),p(t,o),p(e,r),p(r,l),p(l,a),p(r,s),p(s,u),p(s,c),p(s,m),p(s,h),p(s,w),p(s,b),p(s,C),v=!0},p(B,[M]){y&&y.p&&(!v||M&2)&&Ve(y,I,B,B[1],v?Me(I,B[1],M,null):Re(B[1]),null),we(e,P=Oe(g,[{xmlns:"http://www.w3.org/2000/svg"},{width:"48"},{height:"48"},{fill:"none"},{"aria-hidden":"true"},{"data-testid":"subtitles-on-icon"},{role:"img"},M&1&&B[0]]))},i(B){v||(d(y,B),v=!0)},o(B){_(y,B),v=!1},d(B){B&&k(e),y&&y.d(B)}}}function D5(i,e,t){let{$$slots:n={},$$scope:o}=e;return i.$$set=r=>{t(0,e=ue(ue({},e),ye(r))),"$$scope"in r&&t(1,o=r.$$scope)},e=ye(e),[e,o,n]}var Qu=class extends W{constructor(e){super(),G(this,e,D5,B5,K,{})}},h0=Qu;function N5(i){let e,t,n,o,r,l,a,s,u,c,m,h,w,b,C,v,I,y=i[2].default,g=Le(y,i,i[1],null),P=[{xmlns:"http://www.w3.org/2000/svg"},{width:"48"},{height:"48"},{fill:"none"},{"aria-hidden":"true"},{"data-testid":"subtitles-off-icon"},{role:"img"},i[0]],B={};for(let M=0;M<P.length;M+=1)B=ue(B,P[M]);return{c(){e=D("svg"),g&&g.c(),t=D("g"),n=D("path"),o=D("path"),r=D("path"),l=D("defs"),a=D("clipPath"),s=D("path"),u=D("filter"),c=D("feFlood"),m=D("feColorMatrix"),h=D("feOffset"),w=D("feGaussianBlur"),b=D("feColorMatrix"),C=D("feBlend"),v=D("feBlend"),f(n,"fill","#fff"),f(n,"fill-rule","evenodd"),f(n,"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"),f(n,"clip-rule","evenodd"),f(o,"fill","#fff"),f(o,"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"),f(r,"stroke","#000"),f(r,"stroke-opacity",".12"),f(r,"stroke-width",".5"),f(r,"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"),f(t,"clip-path","url(#c)"),f(t,"filter","url(#a)"),f(s,"fill","#fff"),f(s,"d","M0 0h48v48H0z"),f(a,"id","c"),f(c,"flood-opacity","0"),f(c,"result","BackgroundImageFix"),f(m,"in","SourceAlpha"),f(m,"result","hardAlpha"),f(m,"values","0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0"),f(w,"stdDeviation","2.5"),f(b,"values","0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.16 0"),f(C,"in2","BackgroundImageFix"),f(C,"result","effect1_dropShadow_2260_104293"),f(v,"in","SourceGraphic"),f(v,"in2","effect1_dropShadow_2260_104293"),f(v,"result","shape"),f(u,"id","a"),f(u,"width","51"),f(u,"height","51"),f(u,"x","-1.5"),f(u,"y","-1.5"),f(u,"color-interpolation-filters","sRGB"),f(u,"filterUnits","userSpaceOnUse"),we(e,B)},m(M,q){S(M,e,q),g&&g.m(e,null),p(e,t),p(t,n),p(t,o),p(t,r),p(e,l),p(l,a),p(a,s),p(l,u),p(u,c),p(u,m),p(u,h),p(u,w),p(u,b),p(u,C),p(u,v),I=!0},p(M,[q]){g&&g.p&&(!I||q&2)&&Ve(g,y,M,M[1],I?Me(y,M[1],q,null):Re(M[1]),null),we(e,B=Oe(P,[{xmlns:"http://www.w3.org/2000/svg"},{width:"48"},{height:"48"},{fill:"none"},{"aria-hidden":"true"},{"data-testid":"subtitles-off-icon"},{role:"img"},q&1&&M[0]]))},i(M){I||(d(g,M),I=!0)},o(M){_(g,M),I=!1},d(M){M&&k(e),g&&g.d(M)}}}function q5(i,e,t){let{$$slots:n={},$$scope:o}=e;return i.$$set=r=>{t(0,e=ue(ue({},e),ye(r))),"$$scope"in r&&t(1,o=r.$$scope)},e=ye(e),[e,o,n]}var Yu=class extends W{constructor(e){super(),G(this,e,q5,N5,K,{})}},g0=Yu;function O5(i){let e,t;return e=new h0({}),{c(){V(e.$$.fragment)},m(n,o){A(e,n,o),t=!0},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){_(e.$$.fragment,n),t=!1},d(n){L(e,n)}}}function F5(i){let e,t;return e=new g0({}),{c(){V(e.$$.fragment)},m(n,o){A(e,n,o),t=!0},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){_(e.$$.fragment,n),t=!1},d(n){L(e,n)}}}function H5(i){let e,t,n,o,r=[F5,O5],l=[];function a(s,u){return s[0]?0:1}return e=a(i,-1),t=l[e]=r[e](i),{c(){t.c(),n=dt()},m(s,u){l[e].m(s,u),S(s,n,u),o=!0},p(s,[u]){let c=e;e=a(s,u),e!==c&&(ce(),_(l[c],1,1,()=>{l[c]=null}),de(),t=l[e],t||(t=l[e]=r[e](s),t.c()),d(t,1),t.m(n.parentNode,n))},i(s){o||(d(t),o=!0)},o(s){_(t),o=!1},d(s){s&&k(n),l[e].d(s)}}}function z5(i,e,t){let{isOff:n=!1}=e;return i.$$set=o=>{"isOff"in o&&t(0,n=o.isOff)},[n]}var Zu=class extends W{constructor(e){super(),G(this,e,z5,H5,K,{isOff:0})}},Xu=Zu;function U5(i){let e,t,n,o,r,l,a,s,u,c,m,h,w,b,C=i[2].default,v=Le(C,i,i[1],null),I=[{xmlns:"http://www.w3.org/2000/svg"},{width:"48"},{height:"48"},{fill:"none"},{"aria-hidden":"true"},{"data-testid":"rate-change-icon"},{role:"img"},i[0]],y={};for(let g=0;g<I.length;g+=1)y=ue(y,I[g]);return{c(){e=D("svg"),v&&v.c(),t=D("g"),n=D("path"),o=D("path"),r=D("defs"),l=D("filter"),a=D("feFlood"),s=D("feColorMatrix"),u=D("feOffset"),c=D("feGaussianBlur"),m=D("feColorMatrix"),h=D("feBlend"),w=D("feBlend"),f(n,"fill","#fff"),f(n,"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"),f(o,"stroke","#000"),f(o,"stroke-opacity",".12"),f(o,"stroke-width",".5"),f(o,"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"),f(t,"filter","url(#a)"),f(a,"flood-opacity","0"),f(a,"result","BackgroundImageFix"),f(s,"in","SourceAlpha"),f(s,"result","hardAlpha"),f(s,"values","0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0"),f(c,"stdDeviation","2.5"),f(m,"values","0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.16 0"),f(h,"in2","BackgroundImageFix"),f(h,"result","effect1_dropShadow_2260_106627"),f(w,"in","SourceGraphic"),f(w,"in2","effect1_dropShadow_2260_106627"),f(w,"result","shape"),f(l,"id","a"),f(l,"width","40.098"),f(l,"height","27.785"),f(l,"x","3.402"),f(l,"y","10.105"),f(l,"color-interpolation-filters","sRGB"),f(l,"filterUnits","userSpaceOnUse"),we(e,y)},m(g,P){S(g,e,P),v&&v.m(e,null),p(e,t),p(t,n),p(t,o),p(e,r),p(r,l),p(l,a),p(l,s),p(l,u),p(l,c),p(l,m),p(l,h),p(l,w),b=!0},p(g,[P]){v&&v.p&&(!b||P&2)&&Ve(v,C,g,g[1],b?Me(C,g[1],P,null):Re(g[1]),null),we(e,y=Oe(I,[{xmlns:"http://www.w3.org/2000/svg"},{width:"48"},{height:"48"},{fill:"none"},{"aria-hidden":"true"},{"data-testid":"rate-change-icon"},{role:"img"},P&1&&g[0]]))},i(g){b||(d(v,g),b=!0)},o(g){_(v,g),b=!1},d(g){g&&k(e),v&&v.d(g)}}}function K5(i,e,t){let{$$slots:n={},$$scope:o}=e;return i.$$set=r=>{t(0,e=ue(ue({},e),ye(r))),"$$scope"in r&&t(1,o=r.$$scope)},e=ye(e),[e,o,n]}var Ju=class extends W{constructor(e){super(),G(this,e,K5,U5,K,{})}},b0=Ju;function j5(i){let e,t;return e=new b0({props:{style:i[0]}}),{c(){V(e.$$.fragment)},m(n,o){A(e,n,o),t=!0},p(n,[o]){let r={};o&1&&(r.style=n[0]),e.$set(r)},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){_(e.$$.fragment,n),t=!1},d(n){L(e,n)}}}function W5(i,e,t){let n,{reversed:o=!1}=e;return i.$$set=r=>{"reversed"in r&&t(1,o=r.reversed)},i.$$.update=()=>{i.$$.dirty&2&&t(0,n=o?"transform: scaleX(-1);":void 0)},[n,o]}var xu=class extends W{constructor(e){super(),G(this,e,W5,j5,K,{reversed:1})}},v0=xu;function G5(i){let e,t,n,o,r,l,a,s,u,c,m,h,w,b,C=i[2].default,v=Le(C,i,i[1],null),I=[{xmlns:"http://www.w3.org/2000/svg"},{width:"48"},{height:"48"},{fill:"none"},{"aria-hidden":"true"},{"data-testid":"episodes-seek-icon"},{role:"img"},i[0]],y={};for(let g=0;g<I.length;g+=1)y=ue(y,I[g]);return{c(){e=D("svg"),v&&v.c(),t=D("g"),n=D("path"),o=D("path"),r=D("defs"),l=D("filter"),a=D("feFlood"),s=D("feColorMatrix"),u=D("feOffset"),c=D("feGaussianBlur"),m=D("feColorMatrix"),h=D("feBlend"),w=D("feBlend"),f(n,"fill","#fff"),f(n,"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"),f(o,"stroke","#000"),f(o,"stroke-opacity",".12"),f(o,"stroke-width",".5"),f(o,"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"),f(t,"filter","url(#a)"),f(a,"flood-opacity","0"),f(a,"result","BackgroundImageFix"),f(s,"in","SourceAlpha"),f(s,"result","hardAlpha"),f(s,"values","0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0"),f(c,"stdDeviation","2.5"),f(m,"values","0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.16 0"),f(h,"in2","BackgroundImageFix"),f(h,"result","effect1_dropShadow_2340_106922"),f(w,"in","SourceGraphic"),f(w,"in2","effect1_dropShadow_2340_106922"),f(w,"result","shape"),f(l,"id","a"),f(l,"width","37"),f(l,"height","37"),f(l,"x","5.5"),f(l,"y","5.5"),f(l,"color-interpolation-filters","sRGB"),f(l,"filterUnits","userSpaceOnUse"),we(e,y)},m(g,P){S(g,e,P),v&&v.m(e,null),p(e,t),p(t,n),p(t,o),p(e,r),p(r,l),p(l,a),p(l,s),p(l,u),p(l,c),p(l,m),p(l,h),p(l,w),b=!0},p(g,[P]){v&&v.p&&(!b||P&2)&&Ve(v,C,g,g[1],b?Me(C,g[1],P,null):Re(g[1]),null),we(e,y=Oe(I,[{xmlns:"http://www.w3.org/2000/svg"},{width:"48"},{height:"48"},{fill:"none"},{"aria-hidden":"true"},{"data-testid":"episodes-seek-icon"},{role:"img"},P&1&&g[0]]))},i(g){b||(d(v,g),b=!0)},o(g){_(v,g),b=!1},d(g){g&&k(e),v&&v.d(g)}}}function Q5(i,e,t){let{$$slots:n={},$$scope:o}=e;return i.$$set=r=>{t(0,e=ue(ue({},e),ye(r))),"$$scope"in r&&t(1,o=r.$$scope)},e=ye(e),[e,o,n]}var $u=class extends W{constructor(e){super(),G(this,e,Q5,G5,K,{})}},y0=$u;function Y5(i){let e,t;return e=new y0({props:{style:i[0]}}),{c(){V(e.$$.fragment)},m(n,o){A(e,n,o),t=!0},p(n,[o]){let r={};o&1&&(r.style=n[0]),e.$set(r)},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){_(e.$$.fragment,n),t=!1},d(n){L(e,n)}}}function Z5(i,e,t){let n,{reversed:o=!1}=e;return i.$$set=r=>{"reversed"in r&&t(1,o=r.reversed)},i.$$.update=()=>{i.$$.dirty&2&&t(0,n=o?"transform: scaleX(-1);":void 0)},[n,o]}var ef=class extends W{constructor(e){super(),G(this,e,Z5,Y5,K,{reversed:1})}},w0=ef;function X5(i){Ie(i,"svelte-4ftgwp",`.hot-key-helpers-container.svelte-4ftgwp.svelte-4ftgwp{position:absolute;top:calc(50% - 40px);left:calc(50% - 100px);width:200px;height:120px;display:flex;align-items:center;flex-direction:column;animation:svelte-4ftgwp-fadeIn ease var(--controls-transition-duration);padding-top:14px;box-sizing:border-box}.hot-key-helpers-container.svelte-4ftgwp>div.svelte-4ftgwp{width:48px;height:48px;display:flex;justify-content:center;align-items:center}.hot-key-helpers-container.svelte-4ftgwp svg[data-testid="volume-off-icon"],.hot-key-helpers-container.svelte-4ftgwp svg[data-testid="volume-max-icon"]{transform:scale(2)}.hot-key-helpers-container.svelte-4ftgwp svg[data-testid="replay-icon"],.hot-key-helpers-container.svelte-4ftgwp svg[data-testid="play-icon"],.hot-key-helpers-container.svelte-4ftgwp svg[data-testid="pause-icon"]{transform:scale(2.5)}.hot-key-helpers-container--left.svelte-4ftgwp.svelte-4ftgwp{left:calc(25% - 100px)}.hot-key-helpers-container--right.svelte-4ftgwp.svelte-4ftgwp{left:calc(75% - 100px)}.hot-key-helpers-text.svelte-4ftgwp.svelte-4ftgwp{text-align:center;font-feature-settings:'clig' off, 'liga' off;text-shadow:0px 0px 5px rgba(0, 0, 0, 0.16);font-size:15px;font-style:normal;font-weight:600;line-height:20px;letter-spacing:-0.105px;width:100%;max-height:40px;margin-top:4px;display:-webkit-box;text-overflow:ellipsis;white-space:pre-wrap;overflow:hidden;-webkit-line-clamp:2;-webkit-box-orient:vertical}.hidden.svelte-4ftgwp.svelte-4ftgwp{visibility:hidden;animation:svelte-4ftgwp-fadeOut ease var(--controls-transition-duration);width:0;height:0}@keyframes svelte-4ftgwp-fadeIn{0%{opacity:0}100%{opacity:1}}@keyframes svelte-4ftgwp-fadeOut{0%{opacity:1}100%{opacity:0}}`)}function k0(i){let e,t=["BACKWARD_SEEK","FORWARD_SEEK"].includes(i[4]),n,o,r,l,a,s,u=["RATE_DOWN","RATE_UP"].includes(i[4]),c,m=["EPISODE_PREV","EPISODE_NEXT"].includes(i[4]),h,w,b,C,v,I=t&&C0(i),y=i[4]==="PAUSE"&&S0(i),g=i[4]==="PLAY"&&T0(i),P=i[4]==="REPLAY"&&P0(i),B=i[4]==="SUBTITLES_OFF"&&I0(i),M=i[4]==="SUBTITLES_ON"&&E0(i),q=u&&A0(i),te=m&&L0(i),pe=i[4]==="MUTE"&&M0(i),Z=i[4]==="VOLUME"&&V0(i),x=i[5]&&R0(i);return{c(){e=T("div"),I&&I.c(),n=R(),y&&y.c(),o=R(),g&&g.c(),r=R(),P&&P.c(),l=R(),B&&B.c(),a=R(),M&&M.c(),s=R(),q&&q.c(),c=R(),te&&te.c(),h=R(),pe&&pe.c(),w=R(),Z&&Z.c(),b=R(),x&&x.c(),C=dt(),f(e,"class","svelte-4ftgwp")},m(oe,H){S(oe,e,H),I&&I.m(e,null),p(e,n),y&&y.m(e,null),p(e,o),g&&g.m(e,null),p(e,r),P&&P.m(e,null),p(e,l),B&&B.m(e,null),p(e,a),M&&M.m(e,null),p(e,s),q&&q.m(e,null),p(e,c),te&&te.m(e,null),p(e,h),pe&&pe.m(e,null),p(e,w),Z&&Z.m(e,null),S(oe,b,H),x&&x.m(oe,H),S(oe,C,H),v=!0},p(oe,H){H&16&&(t=["BACKWARD_SEEK","FORWARD_SEEK"].includes(oe[4])),t?I?(I.p(oe,H),H&16&&d(I,1)):(I=C0(oe),I.c(),d(I,1),I.m(e,n)):I&&(ce(),_(I,1,1,()=>{I=null}),de()),oe[4]==="PAUSE"?y?H&16&&d(y,1):(y=S0(oe),y.c(),d(y,1),y.m(e,o)):y&&(ce(),_(y,1,1,()=>{y=null}),de()),oe[4]==="PLAY"?g?H&16&&d(g,1):(g=T0(oe),g.c(),d(g,1),g.m(e,r)):g&&(ce(),_(g,1,1,()=>{g=null}),de()),oe[4]==="REPLAY"?P?H&16&&d(P,1):(P=P0(oe),P.c(),d(P,1),P.m(e,l)):P&&(ce(),_(P,1,1,()=>{P=null}),de()),oe[4]==="SUBTITLES_OFF"?B?H&16&&d(B,1):(B=I0(oe),B.c(),d(B,1),B.m(e,a)):B&&(ce(),_(B,1,1,()=>{B=null}),de()),oe[4]==="SUBTITLES_ON"?M?H&16&&d(M,1):(M=E0(oe),M.c(),d(M,1),M.m(e,s)):M&&(ce(),_(M,1,1,()=>{M=null}),de()),H&16&&(u=["RATE_DOWN","RATE_UP"].includes(oe[4])),u?q?(q.p(oe,H),H&16&&d(q,1)):(q=A0(oe),q.c(),d(q,1),q.m(e,c)):q&&(ce(),_(q,1,1,()=>{q=null}),de()),H&16&&(m=["EPISODE_PREV","EPISODE_NEXT"].includes(oe[4])),m?te?(te.p(oe,H),H&16&&d(te,1)):(te=L0(oe),te.c(),d(te,1),te.m(e,h)):te&&(ce(),_(te,1,1,()=>{te=null}),de()),oe[4]==="MUTE"?pe?H&16&&d(pe,1):(pe=M0(oe),pe.c(),d(pe,1),pe.m(e,w)):pe&&(ce(),_(pe,1,1,()=>{pe=null}),de()),oe[4]==="VOLUME"?Z?H&16&&d(Z,1):(Z=V0(oe),Z.c(),d(Z,1),Z.m(e,null)):Z&&(ce(),_(Z,1,1,()=>{Z=null}),de()),oe[5]?x?x.p(oe,H):(x=R0(oe),x.c(),x.m(C.parentNode,C)):x&&(x.d(1),x=null)},i(oe){v||(d(I),d(y),d(g),d(P),d(B),d(M),d(q),d(te),d(pe),d(Z),v=!0)},o(oe){_(I),_(y),_(g),_(P),_(B),_(M),_(q),_(te),_(pe),_(Z),v=!1},d(oe){oe&&(k(e),k(b),k(C)),I&&I.d(),y&&y.d(),g&&g.d(),P&&P.d(),B&&B.d(),M&&M.d(),q&&q.d(),te&&te.d(),pe&&pe.d(),Z&&Z.d(),x&&x.d(oe)}}}function C0(i){let e,t;return e=new _0({props:{reversed:i[4]==="FORWARD_SEEK"}}),{c(){V(e.$$.fragment)},m(n,o){A(e,n,o),t=!0},p(n,o){let r={};o&16&&(r.reversed=n[4]==="FORWARD_SEEK"),e.$set(r)},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){_(e.$$.fragment,n),t=!1},d(n){L(e,n)}}}function S0(i){let e,t;return e=new Dr({}),{c(){V(e.$$.fragment)},m(n,o){A(e,n,o),t=!0},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){_(e.$$.fragment,n),t=!1},d(n){L(e,n)}}}function T0(i){let e,t;return e=new bl({}),{c(){V(e.$$.fragment)},m(n,o){A(e,n,o),t=!0},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){_(e.$$.fragment,n),t=!1},d(n){L(e,n)}}}function P0(i){let e,t;return e=new Wr({}),{c(){V(e.$$.fragment)},m(n,o){A(e,n,o),t=!0},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){_(e.$$.fragment,n),t=!1},d(n){L(e,n)}}}function I0(i){let e,t;return e=new Xu({props:{isOff:!0}}),{c(){V(e.$$.fragment)},m(n,o){A(e,n,o),t=!0},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){_(e.$$.fragment,n),t=!1},d(n){L(e,n)}}}function E0(i){let e,t;return e=new Xu({}),{c(){V(e.$$.fragment)},m(n,o){A(e,n,o),t=!0},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){_(e.$$.fragment,n),t=!1},d(n){L(e,n)}}}function A0(i){let e,t;return e=new v0({props:{reversed:i[4]==="RATE_UP"}}),{c(){V(e.$$.fragment)},m(n,o){A(e,n,o),t=!0},p(n,o){let r={};o&16&&(r.reversed=n[4]==="RATE_UP"),e.$set(r)},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){_(e.$$.fragment,n),t=!1},d(n){L(e,n)}}}function L0(i){let e,t;return e=new w0({props:{reversed:i[4]==="EPISODE_NEXT"}}),{c(){V(e.$$.fragment)},m(n,o){A(e,n,o),t=!0},p(n,o){let r={};o&16&&(r.reversed=n[4]==="EPISODE_NEXT"),e.$set(r)},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){_(e.$$.fragment,n),t=!1},d(n){L(e,n)}}}function M0(i){let e,t;return e=new jo({props:{volume:0}}),{c(){V(e.$$.fragment)},m(n,o){A(e,n,o),t=!0},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){_(e.$$.fragment,n),t=!1},d(n){L(e,n)}}}function V0(i){let e,t;return e=new jo({props:{volume:1}}),{c(){V(e.$$.fragment)},m(n,o){A(e,n,o),t=!0},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){_(e.$$.fragment,n),t=!1},d(n){L(e,n)}}}function R0(i){let e,t;return{c(){e=T("span"),t=qe(i[5]),f(e,"class","hot-key-helpers-text svelte-4ftgwp")},m(n,o){S(n,e,o),p(e,t)},p(n,o){o&32&&Ye(t,n[5])},d(n){n&&k(e)}}}function J5(i){let e,t,n=!i[1]&&i[4]&&k0(i);return{c(){e=T("div"),n&&n.c(),f(e,"class","hot-key-helpers-container svelte-4ftgwp"),N(e,"hidden",i[1]),N(e,"hot-key-helpers-container--left",i[2]),N(e,"hot-key-helpers-container--right",i[3])},m(o,r){S(o,e,r),n&&n.m(e,null),t=!0},p(o,[r]){!o[1]&&o[4]?n?(n.p(o,r),r&18&&d(n,1)):(n=k0(o),n.c(),d(n,1),n.m(e,null)):n&&(ce(),_(n,1,1,()=>{n=null}),de()),(!t||r&2)&&N(e,"hidden",o[1]),(!t||r&4)&&N(e,"hot-key-helpers-container--left",o[2]),(!t||r&8)&&N(e,"hot-key-helpers-container--right",o[3])},i(o){t||(d(n),t=!0)},o(o){_(n),t=!1},d(o){o&&k(e),n&&n.d()}}}function x5(i,e,t){let n,o=Se,r=()=>(o(),o=Xt(l,h=>t(6,n=h)),l);i.$$.on_destroy.push(()=>o());let{data:l}=e;r();let a,s,u,c,m;return i.$$set=h=>{"data"in h&&r(t(0,l=h.data))},i.$$.update=()=>{i.$$.dirty&64&&(t(1,a=!n),t(2,s=(n==null?void 0:n.type)==="BACKWARD_SEEK"),t(3,u=(n==null?void 0:n.type)==="FORWARD_SEEK"),t(4,c=n==null?void 0:n.type),n!=null&&n.t?t(5,m=U(n.t.key,{value:n.t.value||""})):t(5,m=n==null?void 0:n.text))},[l,a,s,u,c,m,n]}var tf=class extends W{constructor(e){super(),G(this,e,x5,J5,K,{data:0},X5)}},B0=tf;function $5(i){Ie(i,"svelte-1yzc86r",".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 e6(i){let e,t,n,o,r,l,a,s,u,c,m,h,w,b,C,v,I,y,g;return r=new Qn({props:{direction:"up"}}),s=new Qn({props:{direction:"up"}}),h=new Qn({props:{direction:"up"}}),C=new Qn({props:{direction:"up"}}),{c(){e=T("div"),t=T("div"),n=T("div"),o=T("div"),V(r.$$.fragment),l=R(),a=T("div"),V(s.$$.fragment),u=R(),c=T("div"),m=T("div"),V(h.$$.fragment),w=R(),b=T("div"),V(C.$$.fragment),f(o,"class","button button-up svelte-1yzc86r"),f(a,"class","button button-right svelte-1yzc86r"),f(n,"class","button-row svelte-1yzc86r"),f(m,"class","button button-left svelte-1yzc86r"),f(b,"class","button button-down svelte-1yzc86r"),f(c,"class","button-row svelte-1yzc86r"),f(t,"class","button-block svelte-1yzc86r"),f(t,"aria-hidden","true"),f(e,"class","immersive-controls svelte-1yzc86r"),f(e,"tabindex","0"),f(e,"role","button"),f(e,"aria-label",v=U("aria_label_spherical_control")),N(e,"m-shifted",i[0])},m(P,B){S(P,e,B),p(e,t),p(t,n),p(n,o),A(r,o,null),p(n,l),p(n,a),A(s,a,null),p(t,u),p(t,c),p(c,m),A(h,m,null),p(c,w),p(c,b),A(C,b,null),I=!0,y||(g=[he(o,"mousedown",i[1]),he(o,"mouseup",i[5]),he(o,"mouseleave",i[5]),he(a,"mousedown",i[3]),he(a,"mouseup",i[5]),he(a,"mouseleave",i[5]),he(m,"mousedown",i[4]),he(m,"mouseup",i[5]),he(m,"mouseleave",i[5]),he(b,"mousedown",i[2]),he(b,"mouseup",i[5]),he(b,"mouseleave",i[5]),he(e,"keydown",i[6]),he(e,"keyup",i[7])],y=!0)},p(P,[B]){(!I||B&1)&&N(e,"m-shifted",P[0])},i(P){I||(d(r.$$.fragment,P),d(s.$$.fragment,P),d(h.$$.fragment,P),d(C.$$.fragment,P),I=!0)},o(P){_(r.$$.fragment,P),_(s.$$.fragment,P),_(h.$$.fragment,P),_(C.$$.fragment,P),I=!1},d(P){P&&k(e),L(r),L(s),L(h),L(C),y=!1,lt(g)}}}function t6(i,e,t){let{isShifted:n=!1}=e,o=st(),r=new Set(["ArrowUp","ArrowDown","ArrowLeft","ArrowRight"]),l=()=>{o.actions.internal.startCameraManualRotation(0,1)},a=()=>{o.actions.internal.startCameraManualRotation(0,-1)},s=()=>{o.actions.internal.startCameraManualRotation(1,0)},u=()=>{o.actions.internal.startCameraManualRotation(-1,0)},c=()=>(o.actions.internal.stopCameraManualRotation(),null),m=w=>{if(r.has(w.code))switch(w.preventDefault(),w.stopPropagation(),w.code){case"ArrowUp":l();break;case"ArrowDown":a();break;case"ArrowLeft":u();break;case"ArrowRight":s();break}},h=w=>{r.has(w.code)&&(w.preventDefault(),w.stopPropagation(),c())};return i.$$set=w=>{"isShifted"in w&&t(0,n=w.isShifted)},[n,l,a,s,u,c,m,h]}var nf=class extends W{constructor(e){super(),G(this,e,t6,e6,K,{isShifted:0},$5)}},ns=nf;function i6(i){Ie(i,"svelte-ovfyp5",".subtitles-container.svelte-ovfyp5.svelte-ovfyp5{position:absolute;top:0;left:0;width:100%;height:100%;pointer-events:none;transition:transform var(--controls-transition-duration)}.subtitles-container.shifted.svelte-ovfyp5.svelte-ovfyp5{transform:translateY(calc(var(--controls-height) * -1))}.subtitles-caption.svelte-ovfyp5.svelte-ovfyp5{position:absolute;left:4%;right:4%;bottom:4%;display:flex;justify-content:center}.subtitles-caption.mobile.svelte-ovfyp5.svelte-ovfyp5{bottom:8%}.subtitles-container.auto.svelte-ovfyp5 .subtitles-caption.svelte-ovfyp5{left:24%;right:24%}.caption.svelte-ovfyp5.svelte-ovfyp5{display:block;overflow-wrap:normal;padding:4px 8px;border-radius:4px;background:rgba(0, 0, 0, 0.4)}.subtitles-container.auto.svelte-ovfyp5 .caption.svelte-ovfyp5{width:100%}.caption-line.svelte-ovfyp5.svelte-ovfyp5{display:block;text-align:center}.subtitles-container.auto.svelte-ovfyp5 .caption-line.svelte-ovfyp5{text-align:left}.caption-segment.svelte-ovfyp5.svelte-ovfyp5{display:inline-block;line-height:1.2;font-size:13px;color:var(--white);white-space:pre-wrap}")}function D0(i,e,t){let n=i.slice();return n[16]=e[t].value,n}function N0(i,e,t){let n=i.slice();return n[16]=e[t].value,n[17]=e[t].timeAppeared,n}function q0(i){let e,t;function n(l,a){return l[7]&&l[8]?l6:l[5]?o6:n6}let o=n(i,-1),r=o(i);return{c(){e=T("div"),t=T("span"),r.c(),f(t,"class","caption svelte-ovfyp5"),f(e,"class","subtitles-caption svelte-ovfyp5"),N(e,"mobile",i[3])},m(l,a){S(l,e,a),p(e,t),r.m(t,null)},p(l,a){o===(o=n(l,a))&&r?r.p(l,a):(r.d(1),r=o(l),r&&(r.c(),r.m(t,null))),a&8&&N(e,"mobile",l[3])},d(l){l&&k(e),r.d()}}}function n6(i){let e,t=It(i[1]),n=[];for(let o=0;o<t.length;o+=1)n[o]=O0(D0(i,t,o));return{c(){for(let o=0;o<n.length;o+=1)n[o].c();e=dt()},m(o,r){for(let l=0;l<n.length;l+=1)n[l]&&n[l].m(o,r);S(o,e,r)},p(o,r){if(r&18){t=It(o[1]);let l;for(l=0;l<t.length;l+=1){let a=D0(o,t,l);n[l]?n[l].p(a,r):(n[l]=O0(a),n[l].c(),n[l].m(e.parentNode,e))}for(;l<n.length;l+=1)n[l].d(1);n.length=t.length}},d(o){o&&k(e),Ri(n,o)}}}function o6(i){let e,t,n=It(i[6]),o=[];for(let r=0;r<n.length;r+=1)o[r]=H0(N0(i,n,r));return{c(){e=T("span"),t=T("span");for(let r=0;r<o.length;r+=1)o[r].c();f(t,"class","caption-segment svelte-ovfyp5"),ki(t,"font-size",i[4]+"px"),f(e,"class","caption-line svelte-ovfyp5")},m(r,l){S(r,e,l),p(e,t);for(let a=0;a<o.length;a+=1)o[a]&&o[a].m(t,null)},p(r,l){if(l&68){n=It(r[6]);let a;for(a=0;a<n.length;a+=1){let s=N0(r,n,a);o[a]?o[a].p(s,l):(o[a]=H0(s),o[a].c(),o[a].m(t,null))}for(;a<o.length;a+=1)o[a].d(1);o.length=n.length}l&16&&ki(t,"font-size",r[4]+"px")},d(r){r&&k(e),Ri(o,r)}}}function l6(i){let e,t,n=U("subtitles_auto_caption")+"",o;return{c(){e=T("span"),t=T("span"),o=qe(n),f(t,"class","caption-segment svelte-ovfyp5"),ki(t,"font-size",i[4]+"px"),f(e,"class","caption-line svelte-ovfyp5")},m(r,l){S(r,e,l),p(e,t),p(t,o)},p(r,l){l&16&&ki(t,"font-size",r[4]+"px")},d(r){r&&k(e)}}}function O0(i){let e,t,n=i[16]+"",o,r;return{c(){e=T("span"),t=T("span"),o=qe(n),r=R(),f(t,"class","caption-segment svelte-ovfyp5"),ki(t,"font-size",i[4]+"px"),f(e,"class","caption-line svelte-ovfyp5")},m(l,a){S(l,e,a),p(e,t),p(t,o),p(e,r)},p(l,a){a&2&&n!==(n=l[16]+"")&&Ye(o,n),a&16&&ki(t,"font-size",l[4]+"px")},d(l){l&&k(e)}}}function F0(i){let e=i[16]+"",t;return{c(){t=qe(e)},m(n,o){S(n,t,o)},p(n,o){o&64&&e!==(e=n[16]+"")&&Ye(t,e)},d(n){n&&k(t)}}}function H0(i){let e,t=(!i[17]||i[17]<=i[2])&&F0(i);return{c(){t&&t.c(),e=dt()},m(n,o){t&&t.m(n,o),S(n,e,o)},p(n,o){!n[17]||n[17]<=n[2]?t?t.p(n,o):(t=F0(n),t.c(),t.m(e.parentNode,e)):t&&(t.d(1),t=null)},d(n){n&&k(e),t&&t.d(n)}}}function r6(i){let e,t=i[1].length>0&&q0(i);return{c(){e=T("div"),t&&t.c(),f(e,"class","subtitles-container svelte-ovfyp5"),N(e,"shifted",i[0]),N(e,"auto",i[5]&&!i[8])},m(n,o){S(n,e,o),t&&t.m(e,null)},p(n,[o]){n[1].length>0?t?t.p(n,o):(t=q0(n),t.c(),t.m(e,null)):t&&(t.d(1),t=null),o&1&&N(e,"shifted",n[0]),o&288&&N(e,"auto",n[5]&&!n[8])},i:Se,o:Se,d(n){n&&k(e),t&&t.d()}}}function s6(i,e,t){let n,o,{shifted:r}=e,{captions:l}=e,{position:a}=e,{playerSize:s}=e,{isMobile:u=!1}=e,c=st(),m=Gt(),h=c.state.currentSubtitle$;z(i,h,g=>t(12,n=g));let w=c.state.isAutoSubtitleCaptionVisible$;z(i,w,g=>t(8,o=g));let b,C,v,I,y;return Ot(()=>{y=window.setTimeout(()=>{w.set(!1)},m.autoSubtitlesTimeout)}),jn(()=>{window.clearTimeout(y)}),i.$$set=g=>{"shifted"in g&&t(0,r=g.shifted),"captions"in g&&t(1,l=g.captions),"position"in g&&t(2,a=g.position),"playerSize"in g&&t(11,s=g.playerSize),"isMobile"in g&&t(3,u=g.isMobile)},i.$$.update=()=>{if(i.$$.dirty&2048){let g=s.width*.02;t(4,b=g<=m.minSubtitlesFontSize?m.minSubtitlesFontSize:g)}i.$$.dirty&2&&t(5,C=l.some(g=>g.type==="timestamp")),i.$$.dirty&2&&t(6,v=l.reduce((g,{type:P,value:B})=>(P==="timestamp"?g.push({timeAppeared:Number(B),value:""}):g.length===0?g.push({value:String(B)}):g[g.length-1].value=String(B),g),[])),i.$$.dirty&4096&&t(7,I=!!n.isAuto)},[r,l,a,u,b,C,v,I,o,h,w,s,n]}var of=class extends W{constructor(e){super(),G(this,e,s6,r6,K,{shifted:0,captions:1,position:2,playerSize:11,isMobile:3},i6)}},os=of;function a6(i){Ie(i,"svelte-1o62kpz",".wrapper.svelte-1o62kpz{height:100%;background-position:center;background-size:cover;display:flex;align-items:center;justify-content:center;font-size:16px;flex-direction:column}.icon_wrapper.svelte-1o62kpz{display:flex;flex-direction:column;align-items:center;width:400px}.icon.svelte-1o62kpz{width:50px;height:50px}.text.svelte-1o62kpz{margin-top:20px}")}function z0(i){let e,t,n;return{c(){e=T("div"),t=qe("\u0412\u0438\u0434\u0435\u043E \u0432\u043E\u0441\u043F\u0440\u043E\u0438\u0437\u0432\u043E\u0434\u0438\u0442\u0441\u044F \u043D\u0430 "),n=qe(i[1]),f(e,"class","text svelte-1o62kpz")},m(o,r){S(o,e,r),p(e,t),p(e,n)},p(o,r){r&2&&Ye(n,o[1])},d(o){o&&k(e)}}}function u6(i){let e,t,n,o,r,l,a=i[1]&&z0(i);return{c(){e=T("div"),t=T("div"),t.innerHTML='<svg class="icon svelte-1o62kpz" 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="#fff"></path><path d="M0 0h24v24H0z"></path></g></svg>',n=R(),a&&a.c(),f(t,"class","icon_wrapper svelte-1o62kpz"),f(e,"class","wrapper svelte-1o62kpz"),f(e,"style",o=`background-image: linear-gradient(0deg, rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)), url('${i[0]||""}')`)},m(s,u){S(s,e,u),p(e,t),p(e,n),a&&a.m(e,null),r||(l=he(e,"click",i[2]),r=!0)},p(s,[u]){s[1]?a?a.p(s,u):(a=z0(s),a.c(),a.m(e,null)):a&&(a.d(1),a=null),u&1&&o!==(o=`background-image: linear-gradient(0deg, rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)), url('${s[0]||""}')`)&&f(e,"style",o)},i:Se,o:Se,d(s){s&&k(e),a&&a.d(),r=!1,l()}}}function f6(i,e,t){let{thumbUrl:n}=e,{chromecastDeviceName:o}=e;function r(l){Vn.call(this,i,l)}return i.$$set=l=>{"thumbUrl"in l&&t(0,n=l.thumbUrl),"chromecastDeviceName"in l&&t(1,o=l.chromecastDeviceName)},[n,o,r]}var lf=class extends W{constructor(e){super(),G(this,e,f6,u6,K,{thumbUrl:0,chromecastDeviceName:1},a6)}},ls=lf;function c6(i){let e,t,n,o=i[2].default,r=Le(o,i,i[1],null),l=[{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[0]],a={};for(let s=0;s<l.length;s+=1)a=ue(a,l[s]);return{c(){e=D("svg"),r&&r.c(),t=D("path"),f(t,"fill","#fff"),f(t,"fill-rule","evenodd"),f(t,"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"),we(e,a)},m(s,u){S(s,e,u),r&&r.m(e,null),p(e,t),n=!0},p(s,[u]){r&&r.p&&(!n||u&2)&&Ve(r,o,s,s[1],n?Me(o,s[1],u,null):Re(s[1]),null),we(e,a=Oe(l,[{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"},u&1&&s[0]]))},i(s){n||(d(r,s),n=!0)},o(s){_(r,s),n=!1},d(s){s&&k(e),r&&r.d(s)}}}function d6(i,e,t){let{$$slots:n={},$$scope:o}=e;return i.$$set=r=>{t(0,e=ue(ue({},e),ye(r))),"$$scope"in r&&t(1,o=r.$$scope)},e=ye(e),[e,o,n]}var rf=class extends W{constructor(e){super(),G(this,e,d6,c6,K,{})}},U0=rf;function m6(i){Ie(i,"svelte-13zpvm8",".container.svelte-13zpvm8{position:absolute;top:0;bottom:0;left:0;right:0;background:#000;display:flex;align-items:center;justify-content:center}")}function p6(i){let e,t,n;return t=new U0({}),{c(){e=T("div"),V(t.$$.fragment),f(e,"class","container svelte-13zpvm8")},m(o,r){S(o,e,r),A(t,e,null),n=!0},p:Se,i(o){n||(d(t.$$.fragment,o),n=!0)},o(o){_(t.$$.fragment,o),n=!1},d(o){o&&k(e),L(t)}}}var sf=class extends W{constructor(e){super(),G(this,e,null,p6,K,{},m6)}},rs=sf;function _6(i){Ie(i,"svelte-17wno3",".container.svelte-17wno3.svelte-17wno3{position:absolute;top:0;bottom:0;left:0;right:0;background-position:center;background-size:cover;cursor:pointer;transition:opacity 0.2s, visibility 0.2s;will-change:opacity}.container.hidden.svelte-17wno3.svelte-17wno3{opacity:0;visibility:hidden}.playButton.svelte-17wno3.svelte-17wno3{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-17wno3.svelte-17wno3{position:absolute;top:0;bottom:0;left:0;right:0;border-radius:var(--big-play-radius);background-color:var(--big-play-bg-color);transition:background 0.2s, transform 0.2s;transition-timing-function:ease-out;will-change:background, transform}.container.svelte-17wno3:hover .playButtonBackground.svelte-17wno3{background-color:var(--big-play-hover-bg-color);transform:scale(1.15)}.playButton.svelte-17wno3 svg{transform:scale(2)}")}function h6(i){let e,t,n,o,r,l,a,s,u,c;return r=new bl({}),{c(){e=T("div"),t=T("div"),n=T("div"),o=R(),V(r.$$.fragment),f(n,"class","playButtonBackground svelte-17wno3"),f(t,"class","playButton svelte-17wno3"),f(t,"tabindex","0"),f(t,"role","button"),f(t,"aria-label",l=U("tooltip_play")),f(e,"class","container svelte-17wno3"),f(e,"style",a=`background-color: #222; background-image: url('${i[0]||""}')`),N(e,"hidden",i[1])},m(m,h){S(m,e,h),p(e,t),p(t,n),p(t,o),A(r,t,null),s=!0,u||(c=[he(t,"keydown",i[3]),he(e,"click",at(function(){Vi(i[2])&&i[2].apply(this,arguments)}))],u=!0)},p(m,[h]){i=m,(!s||h&1&&a!==(a=`background-color: #222; background-image: url('${i[0]||""}')`))&&f(e,"style",a),(!s||h&2)&&N(e,"hidden",i[1])},i(m){s||(d(r.$$.fragment,m),s=!0)},o(m){_(r.$$.fragment,m),s=!1},d(m){m&&k(e),L(r),u=!1,lt(c)}}}function g6(i,e,t){let{thumbUrl:n}=e,{hidden:o}=e,{startVideo:r}=e,a=st().ui.startedByKeyboard$,s=u=>{let c=u.code;["Enter","Space"].includes(c)&&(u.stopPropagation(),u.preventDefault(),a.set(!0),r())};return i.$$set=u=>{"thumbUrl"in u&&t(0,n=u.thumbUrl),"hidden"in u&&t(1,o=u.hidden),"startVideo"in u&&t(2,r=u.startVideo)},[n,o,r,s]}var af=class extends W{constructor(e){super(),G(this,e,g6,h6,K,{thumbUrl:0,hidden:1,startVideo:2,handlePressKey:3},_6)}get handlePressKey(){return this.$$.ctx[3]}},ss=af;function b6(i){Ie(i,"svelte-1bcvcf2",`.title.svelte-1bcvcf2{position:absolute;pointer-events:none;left:0;top:0;width:100%;height:var(--controls-gradient-height);font-size:15px;color:var(--white);box-sizing:border-box;padding:18px 20px 10px;overflow:hidden;white-space:nowrap;text-overflow:ellipsis;transition-property:visibility, transform, opacity;transition-duration:var(--controls-transition-duration);transition-timing-function:var(--controls-transition-fn);will-change:transform, opacity;background:linear-gradient(
|
|
26
|
+
Audio: `),w=De(h),g=B(),v=De(C),f(t,"class","svelte-1fypj5i"),f(e,"class","svelte-1fypj5i")},m(E,y){S(E,e,y),p(e,t),p(e,n),p(e,o),p(o,r),p(o,a),p(o,s),p(o,c),p(o,m),p(o,w),p(o,g),p(o,v)},p(E,y){y&1&&l!==(l=(E[0].videoCodec||"")+"")&&Qe(a,l),y&1&&u!==(u=E[0].hdr?"(HDR)":"")&&Qe(c,u),y&1&&h!==(h=(E[0].audioCodec||"")+"")&&Qe(w,h),y&1&&C!==(C=E[0].audioLanguage?`(${E[0].audioLanguage})`:"")&&Qe(v,C)},d(E){E&&k(e)}}}function gd(i){let e,t,n,o,r=i[0].viewport+"",l;return{c(){e=T("div"),t=T("div"),t.textContent="Viewport",n=B(),o=T("span"),l=De(r),f(t,"class","svelte-1fypj5i"),f(e,"class","svelte-1fypj5i")},m(a,s){S(a,e,s),p(e,t),p(e,n),p(e,o),p(o,l)},p(a,s){s&1&&r!==(r=a[0].viewport+"")&&Qe(l,r)},d(a){a&&k(e)}}}function bd(i){let e,t,n,o,r=i[0].videoSize+"",l;return{c(){e=T("div"),t=T("div"),t.textContent="Video size",n=B(),o=T("span"),l=De(r),f(t,"class","svelte-1fypj5i"),f(e,"class","svelte-1fypj5i")},m(a,s){S(a,e,s),p(e,t),p(e,n),p(e,o),p(o,l)},p(a,s){s&1&&r!==(r=a[0].videoSize+"")&&Qe(l,r)},d(a){a&&k(e)}}}function vd(i){let e,t,n,o,r=i[0].cdn+"",l;return{c(){e=T("div"),t=T("div"),t.textContent="CDN host",n=B(),o=T("span"),l=De(r),f(t,"class","svelte-1fypj5i"),f(e,"class","svelte-1fypj5i")},m(a,s){S(a,e,s),p(e,t),p(e,n),p(e,o),p(o,l)},p(a,s){s&1&&r!==(r=a[0].cdn+"")&&Qe(l,r)},d(a){a&&k(e)}}}function yd(i){let e,t,n,o,r=i[0].volume+"",l,a;return{c(){e=T("div"),t=T("div"),t.textContent="Volume",n=B(),o=T("span"),l=De(r),a=De(" %"),f(t,"class","svelte-1fypj5i"),f(e,"class","svelte-1fypj5i")},m(s,u){S(s,e,u),p(e,t),p(e,n),p(e,o),p(o,l),p(o,a)},p(s,u){u&1&&r!==(r=s[0].volume+"")&&Qe(l,r)},d(s){s&&k(e)}}}function wd(i){let e,t,n,o,r=i[0].buffer.toFixed(2)+"",l,a;return{c(){e=T("div"),t=T("div"),t.textContent="Buffer",n=B(),o=T("span"),l=De(r),a=De(" s"),f(t,"class","svelte-1fypj5i"),f(e,"class","svelte-1fypj5i")},m(s,u){S(s,e,u),p(e,t),p(e,n),p(e,o),p(o,l),p(o,a)},p(s,u){u&1&&r!==(r=s[0].buffer.toFixed(2)+"")&&Qe(l,r)},d(s){s&&k(e)}}}function kd(i){let e,t,n,o,r=[{value:i[0].currentVideoSegmentLength,title:"Video:"},{value:i[0].currentAudioSegmentLength,title:"Audio:"}].filter(Td).map(Pd).join(" & ")+"",l;return{c(){e=T("div"),t=T("div"),t.textContent="Segment",n=B(),o=T("span"),l=De(r),f(t,"class","svelte-1fypj5i"),f(e,"class","svelte-1fypj5i")},m(a,s){S(a,e,s),p(e,t),p(e,n),p(e,o),p(o,l)},p(a,s){s&1&&r!==(r=[{value:a[0].currentVideoSegmentLength,title:"Video:"},{value:a[0].currentAudioSegmentLength,title:"Audio:"}].filter(Td).map(Pd).join(" & ")+"")&&Qe(l,r)},d(a){a&&k(e)}}}function Cd(i){let e,t,n,o,r,l,a=i[0].speed.toFixed(2)+"",s,u,c;return o=new Cr({props:{values:i[5]}}),{c(){e=T("div"),t=T("div"),t.textContent="Network",n=B(),q(o.$$.fragment),r=B(),l=T("span"),s=De(a),u=De(" Kbps"),f(t,"class","svelte-1fypj5i"),f(e,"class","svelte-1fypj5i")},m(m,h){S(m,e,h),p(e,t),p(e,n),V(o,e,null),p(e,r),p(e,l),p(l,s),p(l,u),c=!0},p(m,h){let w={};h&32&&(w.values=m[5]),o.$set(w),(!c||h&1)&&a!==(a=m[0].speed.toFixed(2)+"")&&Qe(s,a)},i(m){c||(d(o.$$.fragment,m),c=!0)},o(m){_(o.$$.fragment,m),c=!1},d(m){m&&k(e),R(o)}}}function Sd(i){let e,t,n,o,r,l,a=i[0].bitrate.toFixed(2)+"",s,u,c;return o=new Cr({props:{values:i[6]}}),{c(){e=T("div"),t=T("div"),t.textContent="V bitrate",n=B(),q(o.$$.fragment),r=B(),l=T("span"),s=De(a),u=De(" Kbps"),f(t,"class","svelte-1fypj5i"),f(e,"class","svelte-1fypj5i")},m(m,h){S(m,e,h),p(e,t),p(e,n),V(o,e,null),p(e,r),p(e,l),p(l,s),p(l,u),c=!0},p(m,h){let w={};h&64&&(w.values=m[6]),o.$set(w),(!c||h&1)&&a!==(a=m[0].bitrate.toFixed(2)+"")&&Qe(s,a)},i(m){c||(d(o.$$.fragment,m),c=!0)},o(m){_(o.$$.fragment,m),c=!1},d(m){m&&k(e),R(o)}}}function n2(i){let e,t,n,o,r,l,a,s,u=i[0].version+"",c,m,h,w,g,C,v,E,y,b,P,A,M,N,te,_e,X,$,se,L,K,x,Z,F,Q,J,oe,Be,Ye,Ie,Re,qe,xe,ae,he=i[0].id&&md(i),ft=i[0].vsid&&pd(i),ke=i[0].provider&&_d(i),Ke=(i[0].videoCodec||i[0].audioCodec)&&hd(i),_t=i[0].viewport&&gd(i),Ze=i[0].videoSize&&bd(i),Ge=i[0].cdn&&vd(i),Xe=i[0].volume&&yd(i),et=i[0].buffer&&wd(i),fe=(i[0].currentVideoSegmentLength||i[0].currentAudioSegmentLength)&&kd(i),Te=i[0].speed&&Cd(i),We=i[0].bitrate&&Sd(i);return oe=new Cr({props:{values:i[4]}}),{c(){e=T("div"),t=T("button"),t.textContent="[x]",n=B(),o=T("div"),r=T("div"),l=T("div"),l.textContent="Version",a=B(),s=T("span"),c=De(u),m=B(),he&&he.c(),h=B(),ft&&ft.c(),w=B(),ke&&ke.c(),g=B(),Ke&&Ke.c(),C=B(),_t&&_t.c(),v=B(),Ze&&Ze.c(),E=B(),Ge&&Ge.c(),y=B(),Xe&&Xe.c(),b=B(),et&&et.c(),P=B(),fe&&fe.c(),A=B(),M=T("div"),N=T("div"),N.textContent="Dropped",te=B(),_e=T("span"),X=De(i[2]),$=De(" / "),se=De(i[1]),L=De(" frames"),K=B(),Te&&Te.c(),x=B(),We&&We.c(),Z=B(),F=T("div"),Q=T("div"),Q.textContent="FPS",J=B(),q(oe.$$.fragment),Be=B(),Ye=T("span"),Ie=De(i[3]),f(t,"class","close svelte-1fypj5i"),f(t,"title","\u0437\u0430\u043A\u0440\u044B\u0442\u044C"),f(l,"class","svelte-1fypj5i"),f(r,"class","svelte-1fypj5i"),f(N,"class","svelte-1fypj5i"),f(M,"class","svelte-1fypj5i"),f(Q,"class","svelte-1fypj5i"),f(F,"class","svelte-1fypj5i"),f(o,"class","content svelte-1fypj5i"),f(e,"class","container svelte-1fypj5i"),f(e,"role","region"),f(e,"aria-label",Re=U("aria_label_debug_panel")),O(e,"container-mobile",i[7])},m(le,Se){S(le,e,Se),p(e,t),p(e,n),p(e,o),p(o,r),p(r,l),p(r,a),p(r,s),p(s,c),p(o,m),he&&he.m(o,null),p(o,h),ft&&ft.m(o,null),p(o,w),ke&&ke.m(o,null),p(o,g),Ke&&Ke.m(o,null),p(o,C),_t&&_t.m(o,null),p(o,v),Ze&&Ze.m(o,null),p(o,E),Ge&&Ge.m(o,null),p(o,y),Xe&&Xe.m(o,null),p(o,b),et&&et.m(o,null),p(o,P),fe&&fe.m(o,null),p(o,A),p(o,M),p(M,N),p(M,te),p(M,_e),p(_e,X),p(_e,$),p(_e,se),p(_e,L),p(o,K),Te&&Te.m(o,null),p(o,x),We&&We.m(o,null),p(o,Z),p(o,F),p(F,Q),p(F,J),V(oe,F,null),p(F,Be),p(F,Ye),p(Ye,Ie),qe=!0,xe||(ae=pe(t,"click",at(i[9])),xe=!0)},p(le,[Se]){(!qe||Se&1)&&u!==(u=le[0].version+"")&&Qe(c,u),le[0].id?he?he.p(le,Se):(he=md(le),he.c(),he.m(o,h)):he&&(he.d(1),he=null),le[0].vsid?ft?ft.p(le,Se):(ft=pd(le),ft.c(),ft.m(o,w)):ft&&(ft.d(1),ft=null),le[0].provider?ke?ke.p(le,Se):(ke=_d(le),ke.c(),ke.m(o,g)):ke&&(ke.d(1),ke=null),le[0].videoCodec||le[0].audioCodec?Ke?Ke.p(le,Se):(Ke=hd(le),Ke.c(),Ke.m(o,C)):Ke&&(Ke.d(1),Ke=null),le[0].viewport?_t?_t.p(le,Se):(_t=gd(le),_t.c(),_t.m(o,v)):_t&&(_t.d(1),_t=null),le[0].videoSize?Ze?Ze.p(le,Se):(Ze=bd(le),Ze.c(),Ze.m(o,E)):Ze&&(Ze.d(1),Ze=null),le[0].cdn?Ge?Ge.p(le,Se):(Ge=vd(le),Ge.c(),Ge.m(o,y)):Ge&&(Ge.d(1),Ge=null),le[0].volume?Xe?Xe.p(le,Se):(Xe=yd(le),Xe.c(),Xe.m(o,b)):Xe&&(Xe.d(1),Xe=null),le[0].buffer?et?et.p(le,Se):(et=wd(le),et.c(),et.m(o,P)):et&&(et.d(1),et=null),le[0].currentVideoSegmentLength||le[0].currentAudioSegmentLength?fe?fe.p(le,Se):(fe=kd(le),fe.c(),fe.m(o,A)):fe&&(fe.d(1),fe=null),(!qe||Se&4)&&Qe(X,le[2]),(!qe||Se&2)&&Qe(se,le[1]),le[0].speed?Te?(Te.p(le,Se),Se&1&&d(Te,1)):(Te=Cd(le),Te.c(),d(Te,1),Te.m(o,x)):Te&&(ce(),_(Te,1,1,()=>{Te=null}),de()),le[0].bitrate?We?(We.p(le,Se),Se&1&&d(We,1)):(We=Sd(le),We.c(),d(We,1),We.m(o,Z)):We&&(ce(),_(We,1,1,()=>{We=null}),de());let ht={};Se&16&&(ht.values=le[4]),oe.$set(ht),(!qe||Se&8)&&Qe(Ie,le[3]),(!qe||Se&128)&&O(e,"container-mobile",le[7])},i(le){qe||(d(Te),d(We),d(oe.$$.fragment,le),qe=!0)},o(le){_(Te),_(We),_(oe.$$.fragment,le),qe=!1},d(le){le&&k(e),he&&he.d(),ft&&ft.d(),ke&&ke.d(),Ke&&Ke.d(),_t&&_t.d(),Ze&&Ze.d(),Ge&&Ge.d(),Xe&&Xe.d(),et&&et.d(),fe&&fe.d(),Te&&Te.d(),We&&We.d(),R(oe),xe=!1,ae()}}}var Td=({value:i})=>i,Pd=({value:i,title:e})=>`${e} ${((i!=null?i:0)/1e3).toFixed(2)} s`;function o2(i,e,t){let n,o=rt(),r=o.ui.debugPanelVisible,l=o.ui.isMobile;H(i,l,b=>t(7,n=b));let a=()=>{dd.remove(ql),r.set(!1)},s=o.actions.internal.getDebugPanelData(),u=o.actions.internal.getVideoElement(),c=0,m=0,h=0,w=new gl(60),g=new gl(60),C=new gl(60),v=[],E=[],y=[];return Nt(()=>{dd.set(ql,"true"),o.actions.internal.startLogging(),u&&(t(2,m=u.getVideoPlaybackQuality().droppedVideoFrames),t(1,c=u.getVideoPlaybackQuality().totalVideoFrames));let b=window.setInterval(()=>{t(0,s=o.actions.internal.getDebugPanelData())},500),P;return u&&(P=window.setInterval(()=>{if(u){t(2,m=u.getVideoPlaybackQuality().droppedVideoFrames);let A=u.getVideoPlaybackQuality().totalVideoFrames;t(3,h=A-c),t(1,c=A),w.push(h),s.speed&&g.push(s.speed),s.bitrate&&C.push(s.bitrate),t(4,v=w.getValuesFromBottom()),t(5,E=g.getValuesFromBottom()),t(6,y=C.getValuesFromBottom())}},1e3)),()=>{o.actions.internal.stopLogging(),clearInterval(b),P&&clearInterval(P)}}),[s,c,m,h,v,E,y,n,l,a]}var ta=class extends j{constructor(e){super(),G(this,e,o2,n2,W,{},i2)}},Sr=ta;function l2(i){Pe(i,"svelte-1ome55p",".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 r2(i){let e,t,n;return{c(){e=T("div"),f(e,"class","close svelte-1ome55p")},m(o,r){S(o,e,r),t||(n=pe(e,"click",at(i[0])),t=!0)},p:Ce,i:Ce,o:Ce,d(o){o&&k(e),t=!1,n()}}}function s2(i){function e(t){Rn.call(this,i,t)}return[e]}var ia=class extends j{constructor(e){super(),G(this,e,s2,r2,W,{},l2)}},Id=ia;import{noop as a2}from"@vkontakte/videoplayer-shared";function u2(i){Pe(i,"svelte-8jhsry",`.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)
|
|
27
|
+
}.timer-canvas.svelte-8jhsry{width:50px;height:50px;position:absolute}.timer-play-icon.svelte-8jhsry{width:22px;height:26px}`)}function f2(i){let e,t,n,o,r,l,a;return{c(){e=T("div"),t=T("canvas"),n=B(),o=D("svg"),r=D("g"),l=D("g"),a=D("path"),f(t,"class","timer-canvas svelte-8jhsry"),f(t,"width","100"),f(t,"height","100"),f(a,"class","_play"),f(a,"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"),f(a,"fill","#fff"),f(l,"fill-rule","nonzero"),f(r,"fill","none"),f(r,"fill-rule","evenodd"),f(o,"class","timer-play-icon svelte-8jhsry"),f(o,"viewBox","0 0 24 24"),f(o,"xmlns","http://www.w3.org/2000/svg"),f(e,"class","timer svelte-8jhsry")},m(s,u){S(s,e,u),p(e,t),i[2](t),p(e,n),p(e,o),p(o,r),p(r,l),p(l,a)},p:Ce,i:Ce,o:Ce,d(s){s&&k(e),i[2](null)}}}var c2=5e3;function d2(i,e,t){let{onTimerEnded:n=a2}=e,o;Nt(()=>{let l,a=o.getContext("2d");if(!a)return;a.lineWidth=6,a.lineCap="round",a.strokeStyle="#fff";let s=Date.now(),u=()=>{let c=(Date.now()-s)/c2;c<1?(a.clearRect(0,0,100,100),a.beginPath(),a.arc(50,50,47,-Math.PI/2,-Math.PI/2+Math.PI*2*c),a.stroke(),l=requestAnimationFrame(u)):n()};return l=requestAnimationFrame(u),()=>{cancelAnimationFrame(l)}});function r(l){ge[l?"unshift":"push"](()=>{o=l,t(0,o)})}return i.$$set=l=>{"onTimerEnded"in l&&t(1,n=l.onTimerEnded)},[o,n,r]}var na=class extends j{constructor(e){super(),G(this,e,d2,f2,W,{onTimerEnded:1},u2)}},Ed=na;function m2(i){Pe(i,"svelte-kisfwc",".overlay.svelte-kisfwc{width:100%;height:100%;background:rgba(0, 0, 0, 0.72);position:absolute}.next-video.svelte-kisfwc{position:absolute;top:50%;left:50%;transform:translate(-50%, -50%);display:flex;width:362px;flex-direction:column}.top.svelte-kisfwc{display:flex;justify-content:space-between}.caption.svelte-kisfwc{font-size:11px;font-weight:bold;color:var(--white);text-transform:uppercase;opacity:0.8}.row.svelte-kisfwc{height:102px;background:rgba(48, 48, 48, .8);cursor:pointer;margin-top:6px;display:flex;flex-direction:row;flex-wrap:wrap;width:100%}.column.svelte-kisfwc{display:flex;flex-direction:column;flex-basis:50%}.thumb.svelte-kisfwc{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-kisfwc{width:100%;height:100%;background:var(--black);opacity:0.3;position:absolute}.title.svelte-kisfwc{padding:10px 16px;font-size:12px;font-weight:bold;color:var(--white);line-height:1.6;max-height:52px;overflow:hidden}")}function Ld(i){let e,t;return e=new Ed({props:{onTimerEnded:i[2]}}),{c(){q(e.$$.fragment)},m(n,o){V(e,n,o),t=!0},p(n,o){let r={};o&4&&(r.onTimerEnded=n[2]),e.$set(r)},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){_(e.$$.fragment,n),t=!1},d(n){R(e,n)}}}function p2(i){let e,t,n,o,r,l,a,s,u,c,m,h,w,g,C,v,E,y,b,P,A;a=new Id({}),a.$on("click",i[4]);let M=i[3]&&Ld(i);return{c(){e=T("div"),t=B(),n=T("div"),o=T("div"),r=T("div"),r.textContent="\u0441\u043B\u0435\u0434\u0443\u044E\u0449\u0435\u0435 \u0432\u0438\u0434\u0435\u043E",l=B(),q(a.$$.fragment),s=B(),u=T("div"),c=T("div"),m=T("div"),h=T("div"),w=B(),M&&M.c(),C=B(),v=T("div"),E=T("div"),y=De(i[0]),f(e,"class","overlay svelte-kisfwc"),f(r,"class","caption svelte-kisfwc"),f(o,"class","top svelte-kisfwc"),f(h,"class","thumb-overlay svelte-kisfwc"),f(m,"class","thumb svelte-kisfwc"),f(m,"style",g=`background-image: url('${i[1]}')`),f(c,"class","column svelte-kisfwc"),f(E,"class","title svelte-kisfwc"),f(v,"class","column svelte-kisfwc"),f(u,"class","row svelte-kisfwc"),f(n,"class","next-video svelte-kisfwc")},m(N,te){S(N,e,te),S(N,t,te),S(N,n,te),p(n,o),p(o,r),p(o,l),V(a,o,null),p(n,s),p(n,u),p(u,c),p(c,m),p(m,h),p(m,w),M&&M.m(m,null),p(u,C),p(u,v),p(v,E),p(E,y),b=!0,P||(A=pe(u,"click",function(){Bi(i[2])&&i[2].apply(this,arguments)}),P=!0)},p(N,[te]){i=N,i[3]?M?(M.p(i,te),te&8&&d(M,1)):(M=Ld(i),M.c(),d(M,1),M.m(m,null)):M&&(ce(),_(M,1,1,()=>{M=null}),de()),(!b||te&2&&g!==(g=`background-image: url('${i[1]}')`))&&f(m,"style",g),(!b||te&1)&&Qe(y,i[0])},i(N){b||(d(a.$$.fragment,N),d(M),b=!0)},o(N){_(a.$$.fragment,N),_(M),b=!1},d(N){N&&(k(e),k(t),k(n)),R(a),M&&M.d(),P=!1,A()}}}function _2(i,e,t){let{title:n}=e,{thumb:o}=e,{playNextVideo:r}=e,l=!0,a=()=>t(3,l=!1);return i.$$set=s=>{"title"in s&&t(0,n=s.title),"thumb"in s&&t(1,o=s.thumb),"playNextVideo"in s&&t(2,r=s.playNextVideo)},[n,o,r,l,a]}var oa=class extends j{constructor(e){super(),G(this,e,_2,p2,W,{title:0,thumb:1,playNextVideo:2},m2)}},Ad=oa;import{PlaybackState as Wo}from"@vkontakte/videoplayer-core";import{checkNever as g2}from"@vkontakte/videoplayer-shared";import{SeekAction as Ln}from"@vkontakte/videoplayer-statistics";var la=(i,e)=>Math.min(+(i+e).toFixed(2),1),ra=(i,e)=>Math.max(+(i-e).toFixed(2),0),Tr=(i,e,t)=>{let n=la(e,t);e<1&&i.actions.internal.setVolume(n)},Pr=(i,e,t)=>{let n=ra(e,t);e>0&&i.actions.internal.setVolume(n)};var yo=({isAudioDisabled:i,audioDisabledHintCallback:e,isAudioAvailable:t,audioIsNotExistHintCallback:n})=>i?(e==null||e(),!1):t?!0:(n==null||n(),!1);function b2(i){Pe(i,"svelte-10kkmxz",".keyboard-controls.svelte-10kkmxz{position:absolute;left:0;right:0;top:0;bottom:0}")}function v2(i){let e,t,n,o,r,l=i[26].default,a=Le(l,i,i[25],null);return{c(){e=T("div"),a&&a.c(),f(e,"class","keyboard-controls svelte-10kkmxz"),f(e,"tabindex","-1"),f(e,"role","region"),f(e,"aria-label",t=U("aria_label_video_player"))},m(s,u){S(s,e,u),a&&a.m(e,null),i[27](e),n=!0,o||(r=[pe(e,"keyup",i[17]),pe(e,"keydown",i[16])],o=!0)},p(s,u){a&&a.p&&(!n||u[0]&33554432)&&Me(a,l,s,s[25],n?Ae(l,s[25],u,null):Ve(s[25]),null)},i(s){n||(d(a,s),n=!0)},o(s){_(a,s),n=!1},d(s){s&&k(e),a&&a.d(s),i[27](null),o=!1,ot(r)}}}function y2(i,e,t){var Ee,ct;let n,o,r,l,a,s,u,c,m,h,w,g,C,v,E,{$$slots:y={},$$scope:b}=e,{isAds:P}=e,{hideContextMenu:A}=e,{toggleFullscreen:M}=e,{showHotKeyHelpers:N}=e,{showKeyMap:te}=e,{fakePlayButtonHandler:_e}=e,X=rt(),$=Wt(),se=X.getLogger().createComponentLog("KeyboardControls component"),L=X.state.playbackState$;H(i,L,me=>t(31,o=me));let K=X.ads.playbackState;H(i,K,me=>t(30,n=me));let x=X.state.positionExact$;H(i,x,me=>t(41,g=me));let Z=X.state.duration$;H(i,Z,me=>t(40,w=me));let F=X.state.volume$;H(i,F,me=>t(44,E=me));let Q=X.ui.controls.disabledControls$;H(i,Q,me=>t(39,h=me));let J=X.state.muted$;H(i,J,me=>t(34,a=me));let oe=X.state.currentSubtitle$;H(i,oe,me=>t(33,l=me));let Be=X.state.currentPlaybackRate$;H(i,Be,me=>t(42,C=me));let Ye=X.state.availablePlaybackRates$;H(i,Ye,me=>t(43,v=me));let Ie=X.ui.contextMenu.openedByHotKey$,Re=X.ui.contextMenu.lastActiveElem$,qe=X.ui.contextMenu.visible$,xe=X.ui.contextMenu.position$,ae=X.state.isEnded$;H(i,ae,me=>t(36,u=me));let he=X.ui.overlayContainer$;H(i,he,me=>t(32,r=me));let ft=(Ee=X.callbacks)==null?void 0:Ee.onAudioDoesNotExistHint,ke=(ct=X.callbacks)==null?void 0:ct.onAudioDisabledHint,Ke=X.state.isAudioAvailable$;H(i,Ke,me=>t(35,s=me));let _t=X.state.isAudioDisabled,Ze=X.state.isInteractiveTime$;H(i,Ze,me=>t(38,m=me));let{showInteractiveTimeIndicatorTooltip$:Ge}=Kn();H(i,Ge,me=>t(37,c=me));let Xe=0,et=!0,fe,Te=()=>fe==null?void 0:fe.focus(),We=me=>(me!==et&&(et=me,Xe=0),Xe+=1,($.controls.seekStepKeyboard+$.controls.seekStepKeyboard*Xe)/1e3),le=me=>{var ve;let tt=me.target,Tt=(ve=tt==null?void 0:tt.getAttribute("role"))==null?void 0:ve.includes("menuitem"),vt=tt.classList.contains("btn"),Ue=me.code;if(vt&&Ue==="Space")return;let zt=rc.has(Ue);if(Tt&&zt)return;let Dt=!lc.has(Ue);if(me.ctrlKey&&Dt||me.altKey&&Dt||me.metaKey)return;let Pt=Tt&&Ue==="Escape";sc.has(Ue)||Pt||A();let li=o===Wo.PLAYING||o===Wo.PAUSED,dt=P&&(n==="paused"||n==="playing"),lt=!dt&&!h.has("TIMELINE");if(li||dt)switch(se({message:`key down, code: ${Ue}`}),Ue){case"KeyJ":case"ArrowLeft":{if(!lt)break;if(me.ctrlKey||me.altKey){let Je=X.actions.internal.getPrevEpisode();X.actions.internal.seekToPrevEpisode(Je),Je&&N({type:"EPISODE_PREV",text:Je.text}),me.preventDefault()}else{let Je=me.shiftKey?We(!1):$.controls.seekStepKeyboard/1e3,gt=Math.max(g-Je,0);g>0&&(X.actions.internal.seekTime(gt,Ln.DOUBLE_TAP),N({type:"BACKWARD_SEEK",text:Je.toString()}),me.preventDefault())}break}case"KeyL":case"ArrowRight":{if(!lt)break;if(me.ctrlKey||me.altKey){let Je=X.actions.internal.getNextEpisode();X.actions.internal.seekToNextEpisode(Je),Je&&N({type:"EPISODE_NEXT",text:Je.text}),me.preventDefault()}else{let Je=me.shiftKey?We(!0):$.controls.seekStepKeyboard/1e3,gt=Math.min(g+Je,w);Math.round(g)<Math.round(w)&&(X.actions.internal.seekTime(gt,Ln.DOUBLE_TAP),N({type:"FORWARD_SEEK",text:Je.toString()}),me.preventDefault())}break}case"ArrowUp":{if(yo({isAudioDisabled:_t,audioDisabledHintCallback:ke,isAudioAvailable:s,audioIsNotExistHintCallback:ft})){let Je=E,gt=$.controls.volumeStepKeyboard,Ht=Je<=1;if(Tr(X,Je,gt),Ht){let kt=Math.round(la(Je,gt)*100).toString();N({type:"VOLUME",t:{key:"hotkey_helper_current_volume",value:kt}})}}me.preventDefault();break}case"ArrowDown":{if(yo({isAudioDisabled:_t,audioDisabledHintCallback:ke,isAudioAvailable:s,audioIsNotExistHintCallback:ft})){let Je=E,gt=$.controls.volumeStepKeyboard,Ht=Je>=0;if(Pr(X,Je,gt),Ht){let kt=Math.round(ra(Je,gt)*100).toString();N({type:"VOLUME",t:{key:"hotkey_helper_current_volume",value:kt}})}}me.preventDefault();break}case"Comma":{if(me.shiftKey){X.actions.internal.decrementPlaybackRate();let Je=v.find(gt=>gt.value===C);N({type:"RATE_DOWN",text:Je==null?void 0:Je.displayValue}),me.preventDefault()}else{if(dt||o!==Wo.PAUSED)break;let Je=Math.max(g-$.controls.seekStepFrame/1e3,0);g>0&&(N({type:"BACKWARD_SEEK"}),X.actions.internal.clearDelayedBufferingCheckTimeout(),X.actions.internal.seekTime(Je,Ln.DOUBLE_TAP),me.preventDefault())}break}case"Period":{if(me.shiftKey){X.actions.internal.incrementPlaybackRate();let Je=v.find(gt=>gt.value===C);N({type:"RATE_UP",text:Je==null?void 0:Je.displayValue}),me.preventDefault()}else{if(dt||o!==Wo.PAUSED)break;let Je=Math.min(g+$.controls.seekStepFrame/1e3,w);g<w&&(N({type:"FORWARD_SEEK"}),X.actions.internal.clearDelayedBufferingCheckTimeout(),X.actions.internal.seekTime(Je,Ln.DOUBLE_TAP),me.preventDefault())}break}case"KeyK":case"Space":if(!h.has("PLAY_BUTTON"))if(m&&c&&Ge.set(!1),_e)_e();else{X.actions.internal.togglePlay();let Je="PLAY";o===Wo.PAUSED?Je="PAUSE":u&&(Je="REPLAY"),N({type:Je})}me.preventDefault();break;case"KeyM":{yo({isAudioDisabled:_t,audioDisabledHintCallback:ke,isAudioAvailable:s,audioIsNotExistHintCallback:ft})&&(N({type:a?"VOLUME":"MUTE"}),X.actions.internal.toggleMuted()),me.preventDefault();break}case"KeyF":M(),me.preventDefault();break;case"KeyC":X.actions.internal.toggleSubtitle(),l.value!=="off"?N({type:"SUBTITLES_ON",text:l==null?void 0:l.displayValue}):N({type:"SUBTITLES_OFF"}),me.preventDefault();break;case"KeyI":X.actions.internal.togglePictureInPicture(),me.preventDefault();break;case"Digit1":case"Numpad1":if(me.shiftKey){let Je=od(r);xe.set(Je),Re.set(tt),Ie.set(!0),qe.set(!0),me.preventDefault();break}N(),X.actions.internal.seekToPercent(.1,Ln.DOUBLE_TAP),me.preventDefault();break;case"Digit2":case"Numpad2":N(),X.actions.internal.seekToPercent(.2,Ln.DOUBLE_TAP),me.preventDefault();break;case"Digit3":case"Numpad3":N(),X.actions.internal.seekToPercent(.3,Ln.DOUBLE_TAP),me.preventDefault();break;case"Digit4":case"Numpad4":N(),X.actions.internal.seekToPercent(.4,Ln.DOUBLE_TAP),me.preventDefault();break;case"Digit5":case"Numpad5":N(),X.actions.internal.seekToPercent(.5,Ln.DOUBLE_TAP),me.preventDefault();break;case"Digit6":case"Numpad6":N(),X.actions.internal.seekToPercent(.6,Ln.DOUBLE_TAP),me.preventDefault();break;case"Digit7":case"Numpad7":N(),X.actions.internal.seekToPercent(.7,Ln.DOUBLE_TAP),me.preventDefault();break;case"Digit8":case"Numpad8":N(),X.actions.internal.seekToPercent(.8,Ln.DOUBLE_TAP),me.preventDefault();break;case"Digit9":case"Numpad9":N(),X.actions.internal.seekToPercent(.9,Ln.DOUBLE_TAP),me.preventDefault();break;case"Digit0":case"Numpad0":N(),X.actions.internal.seekToPercent(0,Ln.DOUBLE_TAP),me.preventDefault();break;case"Slash":{me.shiftKey&&$.features.hotKeyMapModal&&(te(),me.preventDefault());break}case"ShiftLeft":case"ShiftRight":me.preventDefault();break;case"Tab":case"Escape":case"Enter":break;default:g2(Ue);break}},Se=me=>{let tt=me.code;if(me.ctrlKey||me.altKey||me.metaKey)return;let Tt=o===Wo.PLAYING||o===Wo.PAUSED,vt=P&&(n==="paused"||n==="playing");if(Tt||vt)switch(tt){case"ShiftLeft":case"ShiftRight":Xe=0;break}};function ht(me){ge[me?"unshift":"push"](()=>{fe=me,t(0,fe)})}return i.$$set=me=>{"isAds"in me&&t(18,P=me.isAds),"hideContextMenu"in me&&t(19,A=me.hideContextMenu),"toggleFullscreen"in me&&t(20,M=me.toggleFullscreen),"showHotKeyHelpers"in me&&t(21,N=me.showHotKeyHelpers),"showKeyMap"in me&&t(22,te=me.showKeyMap),"fakePlayButtonHandler"in me&&t(23,_e=me.fakePlayButtonHandler),"$$scope"in me&&t(25,b=me.$$scope)},[fe,L,K,x,Z,F,Q,J,oe,Be,Ye,ae,he,Ke,Ze,Ge,le,Se,P,A,M,N,te,_e,Te,b,y,ht]}var sa=class extends j{constructor(e){super(),G(this,e,y2,v2,W,{isAds:18,hideContextMenu:19,toggleFullscreen:20,showHotKeyHelpers:21,showKeyMap:22,fakePlayButtonHandler:23,focus:24},b2,[-1,-1])}get focus(){return this.$$.ctx[24]}},Md=sa;function w2(i){Pe(i,"svelte-8nkw5s",".container.svelte-8nkw5s.svelte-8nkw5s{position:absolute;top:50%;left:50%;transform:translate(-50%, -50%);pointer-events:none;display:flex}.dot.svelte-8nkw5s.svelte-8nkw5s:nth-child(1){animation-delay:calc(0 * 180ms)}.dot.svelte-8nkw5s.svelte-8nkw5s:nth-child(2){animation-delay:calc(1 * 180ms)}.dot.svelte-8nkw5s.svelte-8nkw5s:nth-child(3){animation-delay:calc(2 * 180ms)}@keyframes svelte-8nkw5s-dot_animation{0%{opacity:0.2}30%{opacity:1}100%{opacity:0.2}}.dot.svelte-8nkw5s.svelte-8nkw5s{border-radius:4px;width:8px;height:8px;background:var(--white);animation-duration:750ms;animation-name:svelte-8nkw5s-dot_animation;animation-iteration-count:infinite}.dot.svelte-8nkw5s+.dot.svelte-8nkw5s{margin-left:4px}")}function k2(i){let e,t,n,o,r,l;return{c(){e=T("div"),t=T("div"),n=B(),o=T("div"),r=B(),l=T("div"),f(t,"class","dot svelte-8nkw5s"),f(o,"class","dot svelte-8nkw5s"),f(l,"class","dot svelte-8nkw5s"),f(e,"class","container svelte-8nkw5s"),f(e,"style",i[0])},m(a,s){S(a,e,s),p(e,t),p(e,n),p(e,o),p(e,r),p(e,l)},p(a,[s]){s&1&&f(e,"style",a[0])},i:Ce,o:Ce,d(a){a&&k(e)}}}function C2(i,e,t){let{style:n=""}=e;return i.$$set=o=>{"style"in o&&t(0,n=o.style)},[n]}var aa=class extends j{constructor(e){super(),G(this,e,C2,k2,W,{style:0},w2)}},bl=aa;function S2(i){let e,t,n,o,r,l,a,s,u,c,m,h,w,g,C=i[2].default,v=Le(C,i,i[1],null),E=[{xmlns:"http://www.w3.org/2000/svg"},{width:"24"},{height:"24"},{fill:"none"},{"aria-hidden":"true"},{"data-testid":"cross-icon"},{role:"img"},i[0]],y={};for(let b=0;b<E.length;b+=1)y=ue(y,E[b]);return{c(){e=D("svg"),v&&v.c(),t=D("g"),n=D("path"),o=D("path"),r=D("defs"),l=D("filter"),a=D("feFlood"),s=D("feColorMatrix"),u=D("feOffset"),c=D("feGaussianBlur"),m=D("feColorMatrix"),h=D("feBlend"),w=D("feBlend"),f(n,"fill","#fff"),f(n,"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"),f(o,"stroke","#000"),f(o,"stroke-opacity",".12"),f(o,"stroke-width",".5"),f(o,"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"),f(t,"filter","url(#a)"),f(a,"flood-opacity","0"),f(a,"result","BackgroundImageFix"),f(s,"in","SourceAlpha"),f(s,"result","hardAlpha"),f(s,"values","0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0"),f(c,"stdDeviation","2.5"),f(m,"values","0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.16 0"),f(h,"in2","BackgroundImageFix"),f(h,"result","effect1_dropShadow_2422_111980"),f(w,"in","SourceGraphic"),f(w,"in2","effect1_dropShadow_2422_111980"),f(w,"result","shape"),f(l,"id","a"),f(l,"width","23"),f(l,"height","23"),f(l,"x",".5"),f(l,"y",".5"),f(l,"color-interpolation-filters","sRGB"),f(l,"filterUnits","userSpaceOnUse"),we(e,y)},m(b,P){S(b,e,P),v&&v.m(e,null),p(e,t),p(t,n),p(t,o),p(e,r),p(r,l),p(l,a),p(l,s),p(l,u),p(l,c),p(l,m),p(l,h),p(l,w),g=!0},p(b,[P]){v&&v.p&&(!g||P&2)&&Me(v,C,b,b[1],g?Ae(C,b[1],P,null):Ve(b[1]),null),we(e,y=Ne(E,[{xmlns:"http://www.w3.org/2000/svg"},{width:"24"},{height:"24"},{fill:"none"},{"aria-hidden":"true"},{"data-testid":"cross-icon"},{role:"img"},P&1&&b[0]]))},i(b){g||(d(v,b),g=!0)},o(b){_(v,b),g=!1},d(b){b&&k(e),v&&v.d(b)}}}function T2(i,e,t){let{$$slots:n={},$$scope:o}=e;return i.$$set=r=>{t(0,e=ue(ue({},e),ye(r))),"$$scope"in r&&t(1,o=r.$$scope)},e=ye(e),[e,o,n]}var ua=class extends j{constructor(e){super(),G(this,e,T2,S2,W,{})}},Vd=ua;import{noop as uo}from"@vkontakte/videoplayer-shared";function P2(i){Pe(i,"svelte-1anemql",".btn.svelte-1anemql{padding:8px;margin:0;height:var(--controls-height);display:flex;flex-direction:row;align-items:center}.w-max.svelte-1anemql{width:100%}.btn--live.svelte-1anemql{padding:10px 4px}.btn-m.svelte-1anemql{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-1anemql{width:var(--big-play-size);height:var(--big-play-size);display:flex;align-items:center;justify-content:center;position:relative;padding:16px}.btn.svelte-1anemql:disabled{cursor:default;pointer-events:none}.btn.svelte-1anemql:not(.btn-full-opacity):disabled{opacity:0.4}.btn.svelte-1anemql:not(:disabled):hover{opacity:0.8}.pr-0.svelte-1anemql{padding-right:0}.pl-0.svelte-1anemql{padding-left:0}")}function I2(i){let e,t,n,o,r,l,a,s,u,c,m,h,w=i[14].default,g=Le(w,i,i[13],null);return{c(){var C,v,E,y,b,P;e=T("button"),g&&g.c(),f(e,"class",t="btn "+i[1]+" svelte-1anemql"),f(e,"style",n=i[2]||null),e.disabled=o=(C=i[3])!=null?C:null,f(e,"aria-hidden",r=(v=i[5])!=null?v:null),f(e,"aria-label",l=(E=i[6])!=null?E:null),f(e,"aria-keyshortcuts",a=(y=i[7])!=null?y:null),f(e,"aria-expanded",s=(b=i[8])!=null?b:null),f(e,"data-testid",u=(P=i[4])!=null?P:null),f(e,"tabindex",i[9])},m(C,v){S(C,e,v),g&&g.m(e,null),i[16](e),c=!0,m||(h=[pe(e,"pointerdown",at(i[15])),pe(e,"click",at(function(){Bi(i[10]===uo?null:i[10])&&(i[10]===uo?null:i[10]).apply(this,arguments)})),pe(e,"focus",Xt(function(){Bi(i[11]===uo?null:i[11])&&(i[11]===uo?null:i[11]).apply(this,arguments)})),pe(e,"blur",Xt(function(){Bi(i[12]===uo?null:i[12])&&(i[12]===uo?null:i[12]).apply(this,arguments)}))],m=!0)},p(C,[v]){var E,y,b,P,A,M;i=C,g&&g.p&&(!c||v&8192)&&Me(g,w,i,i[13],c?Ae(w,i[13],v,null):Ve(i[13]),null),(!c||v&2&&t!==(t="btn "+i[1]+" svelte-1anemql"))&&f(e,"class",t),(!c||v&4&&n!==(n=i[2]||null))&&f(e,"style",n),(!c||v&8&&o!==(o=(E=i[3])!=null?E:null))&&(e.disabled=o),(!c||v&32&&r!==(r=(y=i[5])!=null?y:null))&&f(e,"aria-hidden",r),(!c||v&64&&l!==(l=(b=i[6])!=null?b:null))&&f(e,"aria-label",l),(!c||v&128&&a!==(a=(P=i[7])!=null?P:null))&&f(e,"aria-keyshortcuts",a),(!c||v&256&&s!==(s=(A=i[8])!=null?A:null))&&f(e,"aria-expanded",s),(!c||v&16&&u!==(u=(M=i[4])!=null?M:null))&&f(e,"data-testid",u),(!c||v&512)&&f(e,"tabindex",i[9])},i(C){c||(d(g,C),c=!0)},o(C){_(g,C),c=!1},d(C){C&&k(e),g&&g.d(C),i[16](null),m=!1,ot(h)}}}function E2(i,e,t){let{$$slots:n={},$$scope:o}=e,{className:r=""}=e,{style:l=""}=e,{disabled:a=void 0}=e,{testId:s=void 0}=e,{ariaHidden:u=void 0}=e,{ariaLabel:c=void 0}=e,{ref:m=void 0}=e,{ariaKeyShortCut:h=void 0}=e,{ariaExpanded:w=void 0}=e,{tabIndex:g=0}=e,{click:C=uo}=e,{focus:v=uo}=e,{blur:E=uo}=e;function y(P){Rn.call(this,i,P)}function b(P){ge[P?"unshift":"push"](()=>{m=P,t(0,m)})}return i.$$set=P=>{"className"in P&&t(1,r=P.className),"style"in P&&t(2,l=P.style),"disabled"in P&&t(3,a=P.disabled),"testId"in P&&t(4,s=P.testId),"ariaHidden"in P&&t(5,u=P.ariaHidden),"ariaLabel"in P&&t(6,c=P.ariaLabel),"ref"in P&&t(0,m=P.ref),"ariaKeyShortCut"in P&&t(7,h=P.ariaKeyShortCut),"ariaExpanded"in P&&t(8,w=P.ariaExpanded),"tabIndex"in P&&t(9,g=P.tabIndex),"click"in P&&t(10,C=P.click),"focus"in P&&t(11,v=P.focus),"blur"in P&&t(12,E=P.blur),"$$scope"in P&&t(13,o=P.$$scope)},[m,r,l,a,s,u,c,h,w,g,C,v,E,o,n,y,b]}var fa=class extends j{constructor(e){super(),G(this,e,E2,I2,W,{className:1,style:2,disabled:3,testId:4,ariaHidden:5,ariaLabel:6,ref:0,ariaKeyShortCut:7,ariaExpanded:8,tabIndex:9,click:10,focus:11,blur:12},P2)}},wt=fa;function L2(i){Pe(i,"svelte-1witlsj",".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 Rd(i){let e,t,n,o,r,l=i[2]&&Bd(i);return{c(){e=T("div"),t=T("h3"),n=De(i[3]),o=B(),l&&l.c(),f(t,"class","modal-title svelte-1witlsj"),f(e,"class","modal-header svelte-1witlsj")},m(a,s){S(a,e,s),p(e,t),p(t,n),p(e,o),l&&l.m(e,null),r=!0},p(a,s){(!r||s&8)&&Qe(n,a[3]),a[2]?l?(l.p(a,s),s&4&&d(l,1)):(l=Bd(a),l.c(),d(l,1),l.m(e,null)):l&&(ce(),_(l,1,1,()=>{l=null}),de())},i(a){r||(d(l),r=!0)},o(a){_(l),r=!1},d(a){a&&k(e),l&&l.d()}}}function Bd(i){let e,t;return e=new wt({props:{click:i[0],testId:"close-modal",style:"padding: 0; height: 24px; width: 24px",ariaLabel:U("hotkey_map_modal_close_btn_text"),$$slots:{default:[A2]},$$scope:{ctx:i}}}),{c(){q(e.$$.fragment)},m(n,o){V(e,n,o),t=!0},p(n,o){let r={};o&1&&(r.click=n[0]),o&32&&(r.$$scope={dirty:o,ctx:n}),e.$set(r)},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){_(e.$$.fragment,n),t=!1},d(n){R(e,n)}}}function A2(i){let e,t;return e=new Vd({}),{c(){q(e.$$.fragment)},m(n,o){V(e,n,o),t=!0},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){_(e.$$.fragment,n),t=!1},d(n){R(e,n)}}}function M2(i){let e,t,n,o,r,l,a=i[1]&&Rd(i),s=i[4].default,u=Le(s,i,i[5],null);return{c(){e=T("div"),t=T("div"),a&&a.c(),n=B(),o=T("div"),r=T("div"),u&&u.c(),f(r,"class","modal-main svelte-1witlsj"),f(o,"class","modal-scroll svelte-1witlsj"),f(t,"class","modal-container svelte-1witlsj"),f(e,"class","modal-overlay svelte-1witlsj")},m(c,m){S(c,e,m),p(e,t),a&&a.m(t,null),p(t,n),p(t,o),p(o,r),u&&u.m(r,null),l=!0},p(c,[m]){c[1]?a?(a.p(c,m),m&2&&d(a,1)):(a=Rd(c),a.c(),d(a,1),a.m(t,n)):a&&(ce(),_(a,1,1,()=>{a=null}),de()),u&&u.p&&(!l||m&32)&&Me(u,s,c,c[5],l?Ae(s,c[5],m,null):Ve(c[5]),null)},i(c){l||(d(a),d(u,c),l=!0)},o(c){_(a),_(u,c),l=!1},d(c){c&&k(e),a&&a.d(),u&&u.d(c)}}}function V2(i,e,t){let{$$slots:n={},$$scope:o}=e,{onClose:r}=e,{showHeader:l=!0}=e,{showCloseCross:a=!0}=e,{title:s}=e;return i.$$set=u=>{"onClose"in u&&t(0,r=u.onClose),"showHeader"in u&&t(1,l=u.showHeader),"showCloseCross"in u&&t(2,a=u.showCloseCross),"title"in u&&t(3,s=u.title),"$$scope"in u&&t(5,o=u.$$scope)},[r,l,a,s,n,o]}var ca=class extends j{constructor(e){super(),G(this,e,V2,M2,W,{onClose:0,showHeader:1,showCloseCross:2,title:3},L2)}},qd=ca;var R2=new Set(["BR"]),da=i=>{var o;let e=document.createElement("DIV");e.innerHTML=i;let t=e.querySelectorAll("*"),n=t.length;for(;n--;){let r=t[n],l=r.tagName;R2.has(l)||(o=r.parentElement)==null||o.removeChild(r)}return e.innerHTML};function B2(i){Pe(i,"svelte-quklnq",".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,.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,.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 Dd(i,e,t){let n=i.slice();return n[5]=e[t].title,n[6]=e[t].items,n}function Nd(i,e,t){let n=i.slice();return n[9]=e[t].description,n[10]=e[t].value,n}function Od(i){let e,t,n=da(i[9])+"",o,r,l=i[10]+"",a,s;return{c(){e=T("li"),t=T("span"),o=B(),r=T("span"),a=De(l),s=B(),f(t,"class","hot-key-map-item-description svelte-quklnq"),f(r,"class","hot-key-map-item-value svelte-quklnq"),f(e,"class","hot-key-map-item svelte-quklnq")},m(u,c){S(u,e,c),p(e,t),t.innerHTML=n,p(e,o),p(e,r),p(r,a),p(e,s)},p(u,c){c&1&&n!==(n=da(u[9])+"")&&(t.innerHTML=n),c&1&&l!==(l=u[10]+"")&&Qe(a,l)},d(u){u&&k(e)}}}function Fd(i){let e,t,n=i[5]+"",o,r,l,a,s=Vt(i[6]),u=[];for(let c=0;c<s.length;c+=1)u[c]=Od(Nd(i,s,c));return{c(){e=T("div"),t=T("h5"),o=De(n),r=B(),l=T("ul");for(let c=0;c<u.length;c+=1)u[c].c();a=B(),f(t,"class","hot-key-map-group-title svelte-quklnq"),f(l,"class","hot-key-map-group-items svelte-quklnq"),f(e,"class","hot-key-map-group svelte-quklnq")},m(c,m){S(c,e,m),p(e,t),p(t,o),p(e,r),p(e,l);for(let h=0;h<u.length;h+=1)u[h]&&u[h].m(l,null);p(e,a)},p(c,m){if(m&1&&n!==(n=c[5]+"")&&Qe(o,n),m&1){s=Vt(c[6]);let h;for(h=0;h<s.length;h+=1){let w=Nd(c,s,h);u[h]?u[h].p(w,m):(u[h]=Od(w),u[h].c(),u[h].m(l,null))}for(;h<u.length;h+=1)u[h].d(1);u.length=s.length}},d(c){c&&k(e),qi(u,c)}}}function q2(i){let e,t=Vt(i[0].groups),n=[];for(let o=0;o<t.length;o+=1)n[o]=Fd(Dd(i,t,o));return{c(){e=T("div");for(let o=0;o<n.length;o+=1)n[o].c();f(e,"class","hot-key-map svelte-quklnq")},m(o,r){S(o,e,r);for(let l=0;l<n.length;l+=1)n[l]&&n[l].m(e,null)},p(o,r){if(r&1){t=Vt(o[0].groups);let l;for(l=0;l<t.length;l+=1){let a=Dd(o,t,l);n[l]?n[l].p(a,r):(n[l]=Fd(a),n[l].c(),n[l].m(e,null))}for(;l<n.length;l+=1)n[l].d(1);n.length=t.length}},d(o){o&&k(e),qi(n,o)}}}function D2(i){let e,t;return e=new qd({props:{title:i[0].title,onClose:i[2],$$slots:{default:[q2]},$$scope:{ctx:i}}}),{c(){q(e.$$.fragment)},m(n,o){V(e,n,o),t=!0},p(n,[o]){let r={};o&1&&(r.title=n[0].title),o&8193&&(r.$$scope={dirty:o,ctx:n}),e.$set(r)},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){_(e.$$.fragment,n),t=!1},d(n){R(e,n)}}}function N2(i,e,t){let n,o=rt(),{data:r,show:l}=o.ui.modals.hotKeyMap;return H(i,r,s=>t(0,n=s)),[n,r,()=>{l.set(!1)}]}var ma=class extends j{constructor(e){super(),G(this,e,N2,D2,W,{},B2)}},zd=ma;import{noop as Xu}from"@vkontakte/videoplayer-shared";import{ChromecastState as Im,PlaybackState as zu}from"@vkontakte/videoplayer-core";import{VideoQuality as Bg}from"@vkontakte/videoplayer-core";var jo={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"},Hd={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"};var O2=i=>{var e,t;return(t=(e=jo[i])!=null?e:jo[Hd[i]])!=null?t:void 0},Ir=(i,e)=>String(e.findIndex(t=>t.id===i.id)+1),fo=(i,e)=>{var l;if(!i)return"";let{language:t,label:n}=i,o;if(t==="und"?o=void 0:t&&(o=(l=O2(t))!=null?l:t),n&&t&&o){let a=e.filter(s=>s.label===n&&s.language===t);if(a.length===1)return U("audio_stream_display_language_label",{language:o,label:n});{let s=Ir(i,a);return U("audio_stream_display_language_label_index",{language:o,label:n,index:s})}}if(n){let a=e.filter(s=>s.label===n);if(a.length===1)return n;{let s=Ir(i,a);return U("audio_stream_display_label_index",{label:n,index:s})}}if(t&&o){let a=e.filter(s=>s.language===t);if(a.length===1)return o;{let s=Ir(i,a);return U("audio_stream_display_language_index",{language:o,index:s})}}let r=Ir(i,e);return U("audio_stream_display_unknown",{index:r})};import"@vkontakte/videoplayer-shared";function F2(i){Pe(i,"svelte-1oe0j8n",".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 z2(i){let e,t,n=i[1].default,o=Le(n,i,i[0],null);return{c(){e=T("div"),o&&o.c(),f(e,"class","pillow svelte-1oe0j8n")},m(r,l){S(r,e,l),o&&o.m(e,null),t=!0},p(r,[l]){o&&o.p&&(!t||l&1)&&Me(o,n,r,r[0],t?Ae(n,r[0],l,null):Ve(r[0]),null)},i(r){t||(d(o,r),t=!0)},o(r){_(o,r),t=!1},d(r){r&&k(e),o&&o.d(r)}}}function H2(i,e,t){let{$$slots:n={},$$scope:o}=e;return i.$$set=r=>{"$$scope"in r&&t(0,o=r.$$scope)},[o,n]}var pa=class extends j{constructor(e){super(),G(this,e,H2,z2,W,{},F2)}},Ud=pa;import{VideoQuality as Ol}from"@vkontakte/videoplayer-core";function U2(i){let e,t,n,o,r=i[2].default,l=Le(r,i,i[1],null),a=[{xmlns:"http://www.w3.org/2000/svg"},{width:"9"},{height:"5"},{fill:"none"},{role:"img"},i[0]],s={};for(let u=0;u<a.length;u+=1)s=ue(s,a[u]);return{c(){e=D("svg"),l&&l.c(),t=D("path"),n=D("path"),f(t,"fill","currentColor"),f(t,"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"),f(n,"fill","currentColor"),f(n,"fill-rule","evenodd"),f(n,"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"),f(n,"clip-rule","evenodd"),we(e,s)},m(u,c){S(u,e,c),l&&l.m(e,null),p(e,t),p(e,n),o=!0},p(u,[c]){l&&l.p&&(!o||c&2)&&Me(l,r,u,u[1],o?Ae(r,u[1],c,null):Ve(u[1]),null),we(e,s=Ne(a,[{xmlns:"http://www.w3.org/2000/svg"},{width:"9"},{height:"5"},{fill:"none"},{role:"img"},c&1&&u[0]]))},i(u){o||(d(l,u),o=!0)},o(u){_(l,u),o=!1},d(u){u&&k(e),l&&l.d(u)}}}function K2(i,e,t){let{$$slots:n={},$$scope:o}=e;return i.$$set=r=>{t(0,e=ue(ue({},e),ye(r))),"$$scope"in r&&t(1,o=r.$$scope)},e=ye(e),[e,o,n]}var _a=class extends j{constructor(e){super(),G(this,e,K2,U2,W,{})}},Kd=_a;function W2(i){let e,t,n,o,r=i[2].default,l=Le(r,i,i[1],null),a=[{xmlns:"http://www.w3.org/2000/svg"},{width:"9"},{height:"5"},{fill:"none"},{role:"img"},i[0]],s={};for(let u=0;u<a.length;u+=1)s=ue(s,a[u]);return{c(){e=D("svg"),l&&l.c(),t=D("path"),n=D("path"),f(t,"fill","currentColor"),f(t,"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"),f(n,"fill","currentColor"),f(n,"fill-rule","evenodd"),f(n,"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"),f(n,"clip-rule","evenodd"),we(e,s)},m(u,c){S(u,e,c),l&&l.m(e,null),p(e,t),p(e,n),o=!0},p(u,[c]){l&&l.p&&(!o||c&2)&&Me(l,r,u,u[1],o?Ae(r,u[1],c,null):Ve(u[1]),null),we(e,s=Ne(a,[{xmlns:"http://www.w3.org/2000/svg"},{width:"9"},{height:"5"},{fill:"none"},{role:"img"},c&1&&u[0]]))},i(u){o||(d(l,u),o=!0)},o(u){_(l,u),o=!1},d(u){u&&k(e),l&&l.d(u)}}}function j2(i,e,t){let{$$slots:n={},$$scope:o}=e;return i.$$set=r=>{t(0,e=ue(ue({},e),ye(r))),"$$scope"in r&&t(1,o=r.$$scope)},e=ye(e),[e,o,n]}var ha=class extends j{constructor(e){super(),G(this,e,j2,W2,W,{})}},Wd=ha;function G2(i){let e,t,n,o=i[2].default,r=Le(o,i,i[1],null),l=[{xmlns:"http://www.w3.org/2000/svg"},{width:"9"},{height:"5"},{fill:"none"},{role:"img"},i[0]],a={};for(let s=0;s<l.length;s+=1)a=ue(a,l[s]);return{c(){e=D("svg"),r&&r.c(),t=D("path"),f(t,"fill","currentColor"),f(t,"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"),we(e,a)},m(s,u){S(s,e,u),r&&r.m(e,null),p(e,t),n=!0},p(s,[u]){r&&r.p&&(!n||u&2)&&Me(r,o,s,s[1],n?Ae(o,s[1],u,null):Ve(s[1]),null),we(e,a=Ne(l,[{xmlns:"http://www.w3.org/2000/svg"},{width:"9"},{height:"5"},{fill:"none"},{role:"img"},u&1&&s[0]]))},i(s){n||(d(r,s),n=!0)},o(s){_(r,s),n=!1},d(s){s&&k(e),r&&r.d(s)}}}function Q2(i,e,t){let{$$slots:n={},$$scope:o}=e;return i.$$set=r=>{t(0,e=ue(ue({},e),ye(r))),"$$scope"in r&&t(1,o=r.$$scope)},e=ye(e),[e,o,n]}var ga=class extends j{constructor(e){super(),G(this,e,Q2,G2,W,{})}},jd=ga;function Y2(i){let e,t,n,o=i[2].default,r=Le(o,i,i[1],null),l=[{xmlns:"http://www.w3.org/2000/svg"},{width:"13"},{height:"5"},{fill:"none"},{role:"img"},i[0]],a={};for(let s=0;s<l.length;s+=1)a=ue(a,l[s]);return{c(){e=D("svg"),r&&r.c(),t=D("path"),f(t,"fill","currentColor"),f(t,"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"),we(e,a)},m(s,u){S(s,e,u),r&&r.m(e,null),p(e,t),n=!0},p(s,[u]){r&&r.p&&(!n||u&2)&&Me(r,o,s,s[1],n?Ae(o,s[1],u,null):Ve(s[1]),null),we(e,a=Ne(l,[{xmlns:"http://www.w3.org/2000/svg"},{width:"13"},{height:"5"},{fill:"none"},{role:"img"},u&1&&s[0]]))},i(s){n||(d(r,s),n=!0)},o(s){_(r,s),n=!1},d(s){s&&k(e),r&&r.d(s)}}}function Z2(i,e,t){let{$$slots:n={},$$scope:o}=e;return i.$$set=r=>{t(0,e=ue(ue({},e),ye(r))),"$$scope"in r&&t(1,o=r.$$scope)},e=ye(e),[e,o,n]}var ba=class extends j{constructor(e){super(),G(this,e,Z2,Y2,W,{})}},Er=ba;function X2(i){let e,t,n,o,r=i[2].default,l=Le(r,i,i[1],null),a=[{xmlns:"http://www.w3.org/2000/svg"},{width:"15"},{height:"7"},{fill:"none"},{role:"img"},i[0]],s={};for(let u=0;u<a.length;u+=1)s=ue(s,a[u]);return{c(){e=D("svg"),l&&l.c(),t=D("path"),n=D("path"),f(t,"fill","currentColor"),f(t,"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"),f(n,"fill","currentColor"),f(n,"fill-rule","evenodd"),f(n,"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"),f(n,"clip-rule","evenodd"),we(e,s)},m(u,c){S(u,e,c),l&&l.m(e,null),p(e,t),p(e,n),o=!0},p(u,[c]){l&&l.p&&(!o||c&2)&&Me(l,r,u,u[1],o?Ae(r,u[1],c,null):Ve(u[1]),null),we(e,s=Ne(a,[{xmlns:"http://www.w3.org/2000/svg"},{width:"15"},{height:"7"},{fill:"none"},{role:"img"},c&1&&u[0]]))},i(u){o||(d(l,u),o=!0)},o(u){_(l,u),o=!1},d(u){u&&k(e),l&&l.d(u)}}}function J2(i,e,t){let{$$slots:n={},$$scope:o}=e;return i.$$set=r=>{t(0,e=ue(ue({},e),ye(r))),"$$scope"in r&&t(1,o=r.$$scope)},e=ye(e),[e,o,n]}var va=class extends j{constructor(e){super(),G(this,e,J2,X2,W,{})}},Lr=va;var wo=i=>{switch(i){case Ol.Q_720P:return jd;case Ol.Q_1080P:return Er;case Ol.Q_1440P:return Lr;case Ol.Q_2160P:return Kd;case Ol.Q_4320P:return Wd}};function x2(i){let e,t,n,o=i[2].default,r=Le(o,i,i[1],null),l=[{xmlns:"http://www.w3.org/2000/svg"},{width:"24"},{height:"24"},{fill:"none"},{"aria-hidden":"true"},{"data-testid":"settings-mobile-icon"},{role:"img"},i[0]],a={};for(let s=0;s<l.length;s+=1)a=ue(a,l[s]);return{c(){e=D("svg"),r&&r.c(),t=D("path"),f(t,"fill","#fff"),f(t,"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"),we(e,a)},m(s,u){S(s,e,u),r&&r.m(e,null),p(e,t),n=!0},p(s,[u]){r&&r.p&&(!n||u&2)&&Me(r,o,s,s[1],n?Ae(o,s[1],u,null):Ve(s[1]),null),we(e,a=Ne(l,[{xmlns:"http://www.w3.org/2000/svg"},{width:"24"},{height:"24"},{fill:"none"},{"aria-hidden":"true"},{"data-testid":"settings-mobile-icon"},{role:"img"},u&1&&s[0]]))},i(s){n||(d(r,s),n=!0)},o(s){_(r,s),n=!1},d(s){s&&k(e),r&&r.d(s)}}}function $2(i,e,t){let{$$slots:n={},$$scope:o}=e;return i.$$set=r=>{t(0,e=ue(ue({},e),ye(r))),"$$scope"in r&&t(1,o=r.$$scope)},e=ye(e),[e,o,n]}var ya=class extends j{constructor(e){super(),G(this,e,$2,x2,W,{})}},Gd=ya;function eg(i){let e,t,n,o,r=i[2].default,l=Le(r,i,i[1],null),a=[{xmlns:"http://www.w3.org/2000/svg"},{width:"24"},{height:"24"},{fill:"none"},{"data-testid":"settings-icon"},{role:"img"},i[0]],s={};for(let u=0;u<a.length;u+=1)s=ue(s,a[u]);return{c(){e=D("svg"),l&&l.c(),t=D("path"),n=D("path"),f(t,"fill","#fff"),f(t,"fill-rule","evenodd"),f(t,"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"),f(t,"clip-rule","evenodd"),f(n,"fill","#fff"),f(n,"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"),f(n,"class","_full"),we(e,s)},m(u,c){S(u,e,c),l&&l.m(e,null),p(e,t),p(e,n),o=!0},p(u,[c]){l&&l.p&&(!o||c&2)&&Me(l,r,u,u[1],o?Ae(r,u[1],c,null):Ve(u[1]),null),we(e,s=Ne(a,[{xmlns:"http://www.w3.org/2000/svg"},{width:"24"},{height:"24"},{fill:"none"},{"data-testid":"settings-icon"},{role:"img"},c&1&&u[0]]))},i(u){o||(d(l,u),o=!0)},o(u){_(l,u),o=!1},d(u){u&&k(e),l&&l.d(u)}}}function tg(i,e,t){let{$$slots:n={},$$scope:o}=e;return i.$$set=r=>{t(0,e=ue(ue({},e),ye(r))),"$$scope"in r&&t(1,o=r.$$scope)},e=ye(e),[e,o,n]}var wa=class extends j{constructor(e){super(),G(this,e,tg,eg,W,{})}},Qd=wa;function ig(i){Pe(i,"svelte-8t5w85",'.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 ng(i){let e,t,n,o,r=i[1]&&Yd(i);return n=new Qd({props:{"data-testid":i[1]?"settings-icon--labeled":"settings-icon"}}),{c(){e=T("div"),r&&r.c(),t=B(),q(n.$$.fragment),f(e,"class","icon svelte-8t5w85"),f(e,"aria-hidden","true"),O(e,"triple",i[2])},m(l,a){S(l,e,a),r&&r.m(e,null),p(e,t),V(n,e,null),o=!0},p(l,a){l[1]?r?(r.p(l,a),a&2&&d(r,1)):(r=Yd(l),r.c(),d(r,1),r.m(e,t)):r&&(ce(),_(r,1,1,()=>{r=null}),de());let s={};a&2&&(s["data-testid"]=l[1]?"settings-icon--labeled":"settings-icon"),n.$set(s),(!o||a&4)&&O(e,"triple",l[2])},i(l){o||(d(r),d(n.$$.fragment,l),o=!0)},o(l){_(r),_(n.$$.fragment,l),o=!1},d(l){l&&k(e),r&&r.d(),R(n)}}}function og(i){let e,t;return e=new Gd({}),{c(){q(e.$$.fragment)},m(n,o){V(e,n,o),t=!0},p:Ce,i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){_(e.$$.fragment,n),t=!1},d(n){R(e,n)}}}function Yd(i){let e,t;return e=new Ud({props:{$$slots:{default:[lg]},$$scope:{ctx:i}}}),{c(){q(e.$$.fragment)},m(n,o){V(e,n,o),t=!0},p(n,o){let r={};o&18&&(r.$$scope={dirty:o,ctx:n}),e.$set(r)},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){_(e.$$.fragment,n),t=!1},d(n){R(e,n)}}}function lg(i){let e,t,n;var o=i[1];function r(l,a){return{}}return o&&(e=En(o,r(i))),{c(){e&&q(e.$$.fragment),t=mt()},m(l,a){e&&V(e,l,a),S(l,t,a),n=!0},p(l,a){if(a&2&&o!==(o=l[1])){if(e){ce();let s=e;_(s.$$.fragment,1,0,()=>{R(s,1)}),de()}o?(e=En(o,r(l,a)),q(e.$$.fragment),d(e.$$.fragment,1),V(e,t.parentNode,t)):e=null}},i(l){n||(e&&d(e.$$.fragment,l),n=!0)},o(l){e&&_(e.$$.fragment,l),n=!1},d(l){l&&k(t),e&&R(e,l)}}}function rg(i){let e,t,n,o,r=[og,ng],l=[];function a(s,u){return s[0]?0:1}return e=a(i,-1),t=l[e]=r[e](i),{c(){t.c(),n=mt()},m(s,u){l[e].m(s,u),S(s,n,u),o=!0},p(s,[u]){let c=e;e=a(s,u),e===c?l[e].p(s,u):(ce(),_(l[c],1,1,()=>{l[c]=null}),de(),t=l[e],t?t.p(s,u):(t=l[e]=r[e](s),t.c()),d(t,1),t.m(n.parentNode,n))},i(s){o||(d(t),o=!0)},o(s){_(t),o=!1},d(s){s&&k(n),l[e].d(s)}}}function sg(i,e,t){let n,{isMobile:o=!1}=e,{currentQuality:r=void 0}=e,l;return i.$$set=a=>{"isMobile"in a&&t(0,o=a.isMobile),"currentQuality"in a&&t(3,r=a.currentQuality)},i.$$.update=()=>{i.$$.dirty&8&&t(1,n=wo(r)),i.$$.dirty&2&&t(2,l=!!n&&[Er,Lr].includes(n))},[o,n,l,r]}var ka=class extends j{constructor(e){super(),G(this,e,sg,rg,W,{isMobile:0,currentQuality:3},ig)}},Ar=ka;function ag(i){let e,t,n,o=i[2].default,r=Le(o,i,i[1],null),l=[{xmlns:"http://www.w3.org/2000/svg"},{width:"22"},{height:"18"},{fill:"none"},{"aria-hidden":"true"},{"data-testid":"subtitle-empty-icon"},{role:"img"},i[0]],a={};for(let s=0;s<l.length;s+=1)a=ue(a,l[s]);return{c(){e=D("svg"),r&&r.c(),t=D("path"),f(t,"fill","#fff"),f(t,"d","M14.692.428c2.293 0 3.124.24 3.962.687a4.67 4.67 0 0 1 1.944 1.944c.449.839.687 1.67.687 3.962v3.958c0 2.292-.238 3.123-.687 3.961a4.67 4.67 0 0 1-1.944 1.944c-.838.449-1.67.687-3.962.687H7.307c-2.293 0-3.124-.238-3.962-.687A4.67 4.67 0 0 1 1.4 14.94c-.448-.838-.687-1.669-.687-3.961V7.02c0-2.292.239-3.123.687-3.962a4.67 4.67 0 0 1 1.944-1.944C4.183.667 5.015.428 7.307.428zm.243 1.716-7.628-.001c-1.832 0-2.484.126-3.154.484a2.96 2.96 0 0 0-1.24 1.24c-.343.64-.473 1.264-.484 2.912v4.2c0 1.83.125 2.483.483 3.153q.433.809 1.241 1.24c.67.36 1.322.485 3.154.485h7.385c1.832 0 2.484-.126 3.154-.484a2.96 2.96 0 0 0 1.24-1.241c.36-.67.485-1.322.485-3.153V7.02c0-1.831-.126-2.483-.484-3.153a2.96 2.96 0 0 0-1.241-1.24c-.64-.343-1.263-.473-2.911-.484ZM11 10.714a.857.857 0 1 1 0 1.714H5.857a.857.857 0 0 1 0-1.714zm5.142 0a.857.857 0 1 1 0 1.714h-1.714a.857.857 0 0 1 0-1.714zm0-3.428a.857.857 0 1 1 0 1.714H11a.857.857 0 1 1 0-1.714zm-8.571 0a.857.857 0 0 1 0 1.714H5.857a.857.857 0 0 1 0-1.714z"),we(e,a)},m(s,u){S(s,e,u),r&&r.m(e,null),p(e,t),n=!0},p(s,[u]){r&&r.p&&(!n||u&2)&&Me(r,o,s,s[1],n?Ae(o,s[1],u,null):Ve(s[1]),null),we(e,a=Ne(l,[{xmlns:"http://www.w3.org/2000/svg"},{width:"22"},{height:"18"},{fill:"none"},{"aria-hidden":"true"},{"data-testid":"subtitle-empty-icon"},{role:"img"},u&1&&s[0]]))},i(s){n||(d(r,s),n=!0)},o(s){_(r,s),n=!1},d(s){s&&k(e),r&&r.d(s)}}}function ug(i,e,t){let{$$slots:n={},$$scope:o}=e;return i.$$set=r=>{t(0,e=ue(ue({},e),ye(r))),"$$scope"in r&&t(1,o=r.$$scope)},e=ye(e),[e,o,n]}var Ca=class extends j{constructor(e){super(),G(this,e,ug,ag,W,{})}},Mr=Ca;function fg(i){let e,t,n,o=i[2].default,r=Le(o,i,i[1],null),l=[{xmlns:"http://www.w3.org/2000/svg"},{width:"16"},{height:"19"},{fill:"none"},{"aria-hidden":"true"},{"data-testid":"download-icon"},{role:"img"},i[0]],a={};for(let s=0;s<l.length;s+=1)a=ue(a,l[s]);return{c(){e=D("svg"),r&&r.c(),t=D("path"),f(t,"fill","#fff"),f(t,"fill-rule","evenodd"),f(t,"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"),f(t,"clip-rule","evenodd"),we(e,a)},m(s,u){S(s,e,u),r&&r.m(e,null),p(e,t),n=!0},p(s,[u]){r&&r.p&&(!n||u&2)&&Me(r,o,s,s[1],n?Ae(o,s[1],u,null):Ve(s[1]),null),we(e,a=Ne(l,[{xmlns:"http://www.w3.org/2000/svg"},{width:"16"},{height:"19"},{fill:"none"},{"aria-hidden":"true"},{"data-testid":"download-icon"},{role:"img"},u&1&&s[0]]))},i(s){n||(d(r,s),n=!0)},o(s){_(r,s),n=!1},d(s){s&&k(e),r&&r.d(s)}}}function cg(i,e,t){let{$$slots:n={},$$scope:o}=e;return i.$$set=r=>{t(0,e=ue(ue({},e),ye(r))),"$$scope"in r&&t(1,o=r.$$scope)},e=ye(e),[e,o,n]}var Sa=class extends j{constructor(e){super(),G(this,e,cg,fg,W,{})}},Zd=Sa;function dg(i){let e,t,n,o=i[2].default,r=Le(o,i,i[1],null),l=[{xmlns:"http://www.w3.org/2000/svg"},{width:"18"},{height:"17"},{fill:"none"},{"aria-hidden":"true"},{"data-testid":"traffic-saving-icon"},{role:"img"},i[0]],a={};for(let s=0;s<l.length;s+=1)a=ue(a,l[s]);return{c(){e=D("svg"),r&&r.c(),t=D("path"),f(t,"fill","#fff"),f(t,"fill-rule","evenodd"),f(t,"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"),f(t,"clip-rule","evenodd"),we(e,a)},m(s,u){S(s,e,u),r&&r.m(e,null),p(e,t),n=!0},p(s,[u]){r&&r.p&&(!n||u&2)&&Me(r,o,s,s[1],n?Ae(o,s[1],u,null):Ve(s[1]),null),we(e,a=Ne(l,[{xmlns:"http://www.w3.org/2000/svg"},{width:"18"},{height:"17"},{fill:"none"},{"aria-hidden":"true"},{"data-testid":"traffic-saving-icon"},{role:"img"},u&1&&s[0]]))},i(s){n||(d(r,s),n=!0)},o(s){_(r,s),n=!1},d(s){s&&k(e),r&&r.d(s)}}}function mg(i,e,t){let{$$slots:n={},$$scope:o}=e;return i.$$set=r=>{t(0,e=ue(ue({},e),ye(r))),"$$scope"in r&&t(1,o=r.$$scope)},e=ye(e),[e,o,n]}var Ta=class extends j{constructor(e){super(),G(this,e,mg,dg,W,{})}},Xd=Ta;function pg(i){let e,t,n,o,r,l=i[2].default,a=Le(l,i,i[1],null),s=[{xmlns:"http://www.w3.org/2000/svg"},{width:"24"},{height:"24"},{"aria-hidden":"true"},{"data-testid":"play-speed-icon"},{role:"img"},i[0]],u={};for(let c=0;c<s.length;c+=1)u=ue(u,s[c]);return{c(){e=D("svg"),a&&a.c(),t=D("g"),n=D("path"),o=D("path"),f(n,"d","M0 0h24v24H0z"),f(o,"fill","#fff"),f(o,"fill-rule","nonzero"),f(o,"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"),f(t,"fill","none"),f(t,"fill-rule","evenodd"),we(e,u)},m(c,m){S(c,e,m),a&&a.m(e,null),p(e,t),p(t,n),p(t,o),r=!0},p(c,[m]){a&&a.p&&(!r||m&2)&&Me(a,l,c,c[1],r?Ae(l,c[1],m,null):Ve(c[1]),null),we(e,u=Ne(s,[{xmlns:"http://www.w3.org/2000/svg"},{width:"24"},{height:"24"},{"aria-hidden":"true"},{"data-testid":"play-speed-icon"},{role:"img"},m&1&&c[0]]))},i(c){r||(d(a,c),r=!0)},o(c){_(a,c),r=!1},d(c){c&&k(e),a&&a.d(c)}}}function _g(i,e,t){let{$$slots:n={},$$scope:o}=e;return i.$$set=r=>{t(0,e=ue(ue({},e),ye(r))),"$$scope"in r&&t(1,o=r.$$scope)},e=ye(e),[e,o,n]}var Pa=class extends j{constructor(e){super(),G(this,e,_g,pg,W,{})}},Jd=Pa;function hg(i){let e,t,n,o=i[2].default,r=Le(o,i,i[1],null),l=[{xmlns:"http://www.w3.org/2000/svg"},{width:"18"},{height:"15"},{fill:"none"},{"aria-hidden":"true"},{"data-testid":"audio-languages-icon"},{role:"img"},i[0]],a={};for(let s=0;s<l.length;s+=1)a=ue(a,l[s]);return{c(){e=D("svg"),r&&r.c(),t=D("path"),f(t,"fill","#fff"),f(t,"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"),we(e,a)},m(s,u){S(s,e,u),r&&r.m(e,null),p(e,t),n=!0},p(s,[u]){r&&r.p&&(!n||u&2)&&Me(r,o,s,s[1],n?Ae(o,s[1],u,null):Ve(s[1]),null),we(e,a=Ne(l,[{xmlns:"http://www.w3.org/2000/svg"},{width:"18"},{height:"15"},{fill:"none"},{"aria-hidden":"true"},{"data-testid":"audio-languages-icon"},{role:"img"},u&1&&s[0]]))},i(s){n||(d(r,s),n=!0)},o(s){_(r,s),n=!1},d(s){s&&k(e),r&&r.d(s)}}}function gg(i,e,t){let{$$slots:n={},$$scope:o}=e;return i.$$set=r=>{t(0,e=ue(ue({},e),ye(r))),"$$scope"in r&&t(1,o=r.$$scope)},e=ye(e),[e,o,n]}var Ia=class extends j{constructor(e){super(),G(this,e,gg,hg,W,{})}},xd=Ia;function bg(i){let e,t,n,o=i[2].default,r=Le(o,i,i[1],null),l=[{xmlns:"http://www.w3.org/2000/svg"},{width:"12"},{height:"7"},{fill:"none"},{"aria-hidden":"true"},{role:"img"},i[0]],a={};for(let s=0;s<l.length;s+=1)a=ue(a,l[s]);return{c(){e=D("svg"),r&&r.c(),t=D("path"),f(t,"fill","#fff"),f(t,"fill-opacity",".72"),f(t,"fill-rule","evenodd"),f(t,"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"),f(t,"clip-rule","evenodd"),we(e,a)},m(s,u){S(s,e,u),r&&r.m(e,null),p(e,t),n=!0},p(s,[u]){r&&r.p&&(!n||u&2)&&Me(r,o,s,s[1],n?Ae(o,s[1],u,null):Ve(s[1]),null),we(e,a=Ne(l,[{xmlns:"http://www.w3.org/2000/svg"},{width:"12"},{height:"7"},{fill:"none"},{"aria-hidden":"true"},{role:"img"},u&1&&s[0]]))},i(s){n||(d(r,s),n=!0)},o(s){_(r,s),n=!1},d(s){s&&k(e),r&&r.d(s)}}}function vg(i,e,t){let{$$slots:n={},$$scope:o}=e;return i.$$set=r=>{t(0,e=ue(ue({},e),ye(r))),"$$scope"in r&&t(1,o=r.$$scope)},e=ye(e),[e,o,n]}var Ea=class extends j{constructor(e){super(),G(this,e,vg,bg,W,{})}},$d=Ea;function yg(i){let e,t,n,o=i[2].default,r=Le(o,i,i[1],null),l=[{xmlns:"http://www.w3.org/2000/svg"},{width:"12"},{height:"16"},{fill:"none"},{"aria-hidden":"true"},{role:"img"},i[0]],a={};for(let s=0;s<l.length;s+=1)a=ue(a,l[s]);return{c(){e=D("svg"),r&&r.c(),t=D("path"),f(t,"fill","#fff"),f(t,"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"),we(e,a)},m(s,u){S(s,e,u),r&&r.m(e,null),p(e,t),n=!0},p(s,[u]){r&&r.p&&(!n||u&2)&&Me(r,o,s,s[1],n?Ae(o,s[1],u,null):Ve(s[1]),null),we(e,a=Ne(l,[{xmlns:"http://www.w3.org/2000/svg"},{width:"12"},{height:"16"},{fill:"none"},{"aria-hidden":"true"},{role:"img"},u&1&&s[0]]))},i(s){n||(d(r,s),n=!0)},o(s){_(r,s),n=!1},d(s){s&&k(e),r&&r.d(s)}}}function wg(i,e,t){let{$$slots:n={},$$scope:o}=e;return i.$$set=r=>{t(0,e=ue(ue({},e),ye(r))),"$$scope"in r&&t(1,o=r.$$scope)},e=ye(e),[e,o,n]}var La=class extends j{constructor(e){super(),G(this,e,wg,yg,W,{})}},e1=La;function kg(i){let e,t;return e=new e1({props:{style:i[2],"data-testid":i[0]?"chevron-icon--right":"chevron-icon--left"}}),{c(){q(e.$$.fragment)},m(n,o){V(e,n,o),t=!0},p(n,o){let r={};o&4&&(r.style=n[2]),o&1&&(r["data-testid"]=n[0]?"chevron-icon--right":"chevron-icon--left"),e.$set(r)},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){_(e.$$.fragment,n),t=!1},d(n){R(e,n)}}}function Cg(i){let e,t;return e=new $d({props:{style:i[2],"data-testid":i[0]?"chevron-icon--down":"chevron-icon--up"}}),{c(){q(e.$$.fragment)},m(n,o){V(e,n,o),t=!0},p(n,o){let r={};o&4&&(r.style=n[2]),o&1&&(r["data-testid"]=n[0]?"chevron-icon--down":"chevron-icon--up"),e.$set(r)},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){_(e.$$.fragment,n),t=!1},d(n){R(e,n)}}}function Sg(i){let e,t,n,o,r=[Cg,kg],l=[];function a(s,u){return s[1]?0:1}return e=a(i,-1),t=l[e]=r[e](i),{c(){t.c(),n=mt()},m(s,u){l[e].m(s,u),S(s,n,u),o=!0},p(s,[u]){let c=e;e=a(s,u),e===c?l[e].p(s,u):(ce(),_(l[c],1,1,()=>{l[c]=null}),de(),t=l[e],t?t.p(s,u):(t=l[e]=r[e](s),t.c()),d(t,1),t.m(n.parentNode,n))},i(s){o||(d(t),o=!0)},o(s){_(t),o=!1},d(s){s&&k(n),l[e].d(s)}}}function Tg(i,e,t){let n,{direction:o="left"}=e,r,l;return i.$$set=a=>{"direction"in a&&t(3,o=a.direction)},i.$$.update=()=>{i.$$.dirty&8&&(t(1,r=["up","down"].includes(o)),t(0,l=["right","down"].includes(o))),i.$$.dirty&1&&t(2,n=l?"transform: rotate(180deg);":void 0)},[l,r,n,o]}var Aa=class extends j{constructor(e){super(),G(this,e,Tg,Sg,W,{direction:3})}},xn=Aa;function Pg(i){let e,t,n,o=i[2].default,r=Le(o,i,i[1],null),l=[{xmlns:"http://www.w3.org/2000/svg"},{width:"24"},{height:"24"},{fill:"none"},{"aria-hidden":"true"},{"data-testid":"report-icon"},{role:"img"},i[0]],a={};for(let s=0;s<l.length;s+=1)a=ue(a,l[s]);return{c(){e=D("svg"),r&&r.c(),t=D("path"),f(t,"fill","#fff"),f(t,"fill-rule","evenodd"),f(t,"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"),f(t,"clip-rule","evenodd"),we(e,a)},m(s,u){S(s,e,u),r&&r.m(e,null),p(e,t),n=!0},p(s,[u]){r&&r.p&&(!n||u&2)&&Me(r,o,s,s[1],n?Ae(o,s[1],u,null):Ve(s[1]),null),we(e,a=Ne(l,[{xmlns:"http://www.w3.org/2000/svg"},{width:"24"},{height:"24"},{fill:"none"},{"aria-hidden":"true"},{"data-testid":"report-icon"},{role:"img"},u&1&&s[0]]))},i(s){n||(d(r,s),n=!0)},o(s){_(r,s),n=!1},d(s){s&&k(e),r&&r.d(s)}}}function Ig(i,e,t){let{$$slots:n={},$$scope:o}=e;return i.$$set=r=>{t(0,e=ue(ue({},e),ye(r))),"$$scope"in r&&t(1,o=r.$$scope)},e=ye(e),[e,o,n]}var Ma=class extends j{constructor(e){super(),G(this,e,Ig,Pg,W,{})}},t1=Ma;function Eg(i){let e,t,n,o=i[2].default,r=Le(o,i,i[1],null),l=[{xmlns:"http://www.w3.org/2000/svg"},{width:"16"},{height:"16"},{"aria-hidden":"true"},{"data-testid":"check-mark-icon"},{role:"img"},i[0]],a={};for(let s=0;s<l.length;s+=1)a=ue(a,l[s]);return{c(){e=D("svg"),r&&r.c(),t=D("path"),f(t,"fill","#fff"),f(t,"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"),we(e,a)},m(s,u){S(s,e,u),r&&r.m(e,null),p(e,t),n=!0},p(s,[u]){r&&r.p&&(!n||u&2)&&Me(r,o,s,s[1],n?Ae(o,s[1],u,null):Ve(s[1]),null),we(e,a=Ne(l,[{xmlns:"http://www.w3.org/2000/svg"},{width:"16"},{height:"16"},{"aria-hidden":"true"},{"data-testid":"check-mark-icon"},{role:"img"},u&1&&s[0]]))},i(s){n||(d(r,s),n=!0)},o(s){_(r,s),n=!1},d(s){s&&k(e),r&&r.d(s)}}}function Lg(i,e,t){let{$$slots:n={},$$scope:o}=e;return i.$$set=r=>{t(0,e=ue(ue({},e),ye(r))),"$$scope"in r&&t(1,o=r.$$scope)},e=ye(e),[e,o,n]}var Va=class extends j{constructor(e){super(),G(this,e,Lg,Eg,W,{})}},Go=Va;function Ag(i){let e,t,n,o=i[2].default,r=Le(o,i,i[1],null),l=[{xmlns:"http://www.w3.org/2000/svg"},{width:"24"},{height:"24"},{fill:"none"},{"aria-hidden":"true"},{"data-testid":"copy-icon"},{role:"img"},i[0]],a={};for(let s=0;s<l.length;s+=1)a=ue(a,l[s]);return{c(){e=D("svg"),r&&r.c(),t=D("path"),f(t,"fill","#fff"),f(t,"fill-rule","evenodd"),f(t,"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"),f(t,"clip-rule","evenodd"),we(e,a)},m(s,u){S(s,e,u),r&&r.m(e,null),p(e,t),n=!0},p(s,[u]){r&&r.p&&(!n||u&2)&&Me(r,o,s,s[1],n?Ae(o,s[1],u,null):Ve(s[1]),null),we(e,a=Ne(l,[{xmlns:"http://www.w3.org/2000/svg"},{width:"24"},{height:"24"},{fill:"none"},{"aria-hidden":"true"},{"data-testid":"copy-icon"},{role:"img"},u&1&&s[0]]))},i(s){n||(d(r,s),n=!0)},o(s){_(r,s),n=!1},d(s){s&&k(e),r&&r.d(s)}}}function Mg(i,e,t){let{$$slots:n={},$$scope:o}=e;return i.$$set=r=>{t(0,e=ue(ue({},e),ye(r))),"$$scope"in r&&t(1,o=r.$$scope)},e=ye(e),[e,o,n]}var Ra=class extends j{constructor(e){super(),G(this,e,Mg,Ag,W,{})}},Ba=Ra;function Vg(i){let e,t,n,o=i[2].default,r=Le(o,i,i[1],null),l=[{xmlns:"http://www.w3.org/2000/svg"},{width:"24"},{height:"24"},{fill:"none"},{"aria-hidden":"true"},{"data-testid":"info-icon"},{role:"img"},i[0]],a={};for(let s=0;s<l.length;s+=1)a=ue(a,l[s]);return{c(){e=D("svg"),r&&r.c(),t=D("path"),f(t,"fill","#fff"),f(t,"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"),we(e,a)},m(s,u){S(s,e,u),r&&r.m(e,null),p(e,t),n=!0},p(s,[u]){r&&r.p&&(!n||u&2)&&Me(r,o,s,s[1],n?Ae(o,s[1],u,null):Ve(s[1]),null),we(e,a=Ne(l,[{xmlns:"http://www.w3.org/2000/svg"},{width:"24"},{height:"24"},{fill:"none"},{"aria-hidden":"true"},{"data-testid":"info-icon"},{role:"img"},u&1&&s[0]]))},i(s){n||(d(r,s),n=!0)},o(s){_(r,s),n=!1},d(s){s&&k(e),r&&r.d(s)}}}function Rg(i,e,t){let{$$slots:n={},$$scope:o}=e;return i.$$set=r=>{t(0,e=ue(ue({},e),ye(r))),"$$scope"in r&&t(1,o=r.$$scope)},e=ye(e),[e,o,n]}var qa=class extends j{constructor(e){super(),G(this,e,Rg,Vg,W,{})}},i1=qa;function qg(i){Pe(i,"svelte-1h807jq","ul.svelte-1h807jq.svelte-1h807jq{margin:0;padding:0}.menu.svelte-1h807jq.svelte-1h807jq{background-color:rgba(17, 17, 17, 0.8);border-radius:8px;line-height:40px;transition:opacity 0.2s, visibility 0.2s}.container-mobile.svelte-1h807jq.svelte-1h807jq{width:100%}.menu-desktop.svelte-1h807jq.svelte-1h807jq{position:absolute;right:0;bottom:0}.menu-mobile.svelte-1h807jq.svelte-1h807jq{width:100%;background:var(--mobile-settings-bg);font-size:15px;line-height:50px}.menu-mobile.hidden.svelte-1h807jq.svelte-1h807jq{display:none}.menu-subList.svelte-1h807jq.svelte-1h807jq{min-width:134px;padding-bottom:0}.menu-subList-subtitles.svelte-1h807jq.svelte-1h807jq{min-width:164px}.menu-subList-traffic-saving.svelte-1h807jq.svelte-1h807jq{min-width:286px}.item.svelte-1h807jq.svelte-1h807jq{align-items:center;color:var(--white);cursor:pointer;display:flex;justify-content:flex-end;padding:0 24px 0 18px;white-space:nowrap;position:relative}.item-mobile.svelte-1h807jq.svelte-1h807jq{padding:0 14px}.item-quality.item-mobile.svelte-1h807jq.svelte-1h807jq,.item-traffic-saving.item-mobile.svelte-1h807jq.svelte-1h807jq,.item-helper-text.item-mobile.svelte-1h807jq.svelte-1h807jq{flex-direction:row-reverse}.item-helper-text.svelte-1h807jq.svelte-1h807jq{cursor:auto;pointer-events:none;white-space:normal;padding:7px 24px 7px 18px}.item-helper-text.svelte-1h807jq span.svelte-1h807jq{color:rgba(255, 255, 255, 0.48);line-height:18px;text-align:end}.item-helper-text.item-mobile.svelte-1h807jq.svelte-1h807jq{padding:7px 14px}.item-helper-text.item-mobile.svelte-1h807jq span.svelte-1h807jq{text-align:start}.submenu-value.svelte-1h807jq.svelte-1h807jq{overflow:hidden;;;text-overflow:ellipsis}.submenu-value-mobile.svelte-1h807jq.svelte-1h807jq{flex-grow:1}.item.svelte-1h807jq.svelte-1h807jq:hover{background-color:rgba(255, 255, 255, 0.08)}.item.svelte-1h807jq.svelte-1h807jq:first-child{border-top-left-radius:8px;border-top-right-radius:8px}.item.svelte-1h807jq.svelte-1h807jq:last-child{border-bottom-left-radius:8px;border-bottom-right-radius:8px}.item-mobile.svelte-1h807jq.svelte-1h807jq:hover{background:var(--mobile-settings-bg)}.menu-subList.svelte-1h807jq .item.svelte-1h807jq{color:rgba(255, 255, 255, 0.9)}.menu-subList.svelte-1h807jq .item.svelte-1h807jq:last-child{margin-bottom:4px}.menu-icon-wrapper.svelte-1h807jq.svelte-1h807jq{width:24px;min-width:24px;height:24px;display:flex;align-items:center;justify-content:center;margin-right:16px}.menu-title.svelte-1h807jq.svelte-1h807jq{flex-grow:1;margin-right:24px;overflow:hidden;text-overflow:ellipsis}.menu-value.svelte-1h807jq.svelte-1h807jq{position:relative;opacity:0.7;overflow:hidden;text-overflow:ellipsis}.menu-valueIcon.svelte-1h807jq.svelte-1h807jq{position:absolute;top:-10px;right:-18px;width:15px}.menu-valueIcon-list.svelte-1h807jq.svelte-1h807jq{position:absolute;top:-7px;width:15px;right:6px}.menu-valueIcon.svelte-1h807jq svg,.menu-valueIcon-list.svelte-1h807jq svg{color:var(--blue-light)}.menu-divider.svelte-1h807jq.svelte-1h807jq{background-color:rgba(255, 255, 255, 0.3);height:1px;margin-bottom:4px}.menu-header.svelte-1h807jq.svelte-1h807jq{color:var(--white);cursor:pointer;justify-content:space-between;column-gap:12px;display:flex}.itemIcon.svelte-1h807jq.svelte-1h807jq{margin-right:auto;padding-right:12px;opacity:0.9;position:relative;top:3px}.items.svelte-1h807jq.svelte-1h807jq::-webkit-scrollbar{width:8px}.items.svelte-1h807jq.svelte-1h807jq::-webkit-scrollbar-track{box-shadow:none;background-color:#3a3a3a;border-radius:4px}.items.svelte-1h807jq.svelte-1h807jq::-webkit-scrollbar-thumb{min-height:40px;border-radius:5px;background-color:#666;border:1px solid transparent;background-clip:padding-box}.items.svelte-1h807jq.svelte-1h807jq::-webkit-scrollbar-thumb:hover{background-color:#777}.items-mobile.svelte-1h807jq.svelte-1h807jq{overflow-y:auto;max-height:160px;text-align:left}.close.svelte-1h807jq.svelte-1h807jq{position:relative;width:12px;height:12px;padding:12px;margin-right:-12px}.close.svelte-1h807jq.svelte-1h807jq:before,.close.svelte-1h807jq.svelte-1h807jq:after{position:absolute;left:18px;content:' ';height:12px;width:2px;background-color:var(--white)}.close.svelte-1h807jq.svelte-1h807jq:before{transform:rotate(45deg)}.close.svelte-1h807jq.svelte-1h807jq:after{transform:rotate(-45deg)}")}function n1(i,e,t){let n=i.slice();return n[165]=e[t],n}function o1(i,e,t){let n=i.slice();return n[168]=e[t],n}function l1(i,e,t){let n=i.slice();return n[171]=e[t],n}function r1(i,e,t){let n=i.slice();return n[174]=e[t],n}function s1(i){let e,t,n,o,r,l,a,s,u,c,m,h,w,g=i[40]&&a1(i),C=i[30]&&u1(i),v=i[29]&&c1(i),E=i[28]&&d1(i),y=i[27]&&m1(i),b=i[26]&&p1(i),P=i[25]&&_1(i),A=i[40]&&h1(i);return{c(){e=T("div"),g&&g.c(),t=B(),n=T("ul"),C&&C.c(),o=B(),v&&v.c(),r=B(),E&&E.c(),l=B(),y&&y.c(),a=B(),b&&b.c(),s=B(),P&&P.c(),u=B(),A&&A.c(),f(n,"class","items svelte-1h807jq"),f(n,"role","menu"),f(n,"style",c=i[85]()),O(n,"items-mobile",i[40]),f(e,"class","menu svelte-1h807jq"),O(e,"menu-desktop",!i[40]),O(e,"menu-mobile",i[40]),O(e,"hidden",!i[13])},m(M,N){S(M,e,N),g&&g.m(e,null),p(e,t),p(e,n),C&&C.m(n,null),p(n,o),v&&v.m(n,null),p(n,r),E&&E.m(n,null),p(n,l),y&&y.m(n,null),p(n,a),b&&b.m(n,null),p(n,s),P&&P.m(n,null),p(n,u),A&&A.m(n,null),i[131](n),m=!0,h||(w=[pe(e,"keydown",i[91]),pe(e,"mouseenter",i[83]),pe(e,"mouseleave",i[84])],h=!0)},p(M,N){M[40]?g?g.p(M,N):(g=a1(M),g.c(),g.m(e,t)):g&&(g.d(1),g=null),M[30]?C?(C.p(M,N),N[0]&1073741824&&d(C,1)):(C=u1(M),C.c(),d(C,1),C.m(n,o)):C&&(ce(),_(C,1,1,()=>{C=null}),de()),M[29]?v?(v.p(M,N),N[0]&536870912&&d(v,1)):(v=c1(M),v.c(),d(v,1),v.m(n,r)):v&&(ce(),_(v,1,1,()=>{v=null}),de()),M[28]?E?(E.p(M,N),N[0]&268435456&&d(E,1)):(E=d1(M),E.c(),d(E,1),E.m(n,l)):E&&(ce(),_(E,1,1,()=>{E=null}),de()),M[27]?y?(y.p(M,N),N[0]&134217728&&d(y,1)):(y=m1(M),y.c(),d(y,1),y.m(n,a)):y&&(ce(),_(y,1,1,()=>{y=null}),de()),M[26]?b?(b.p(M,N),N[0]&67108864&&d(b,1)):(b=p1(M),b.c(),d(b,1),b.m(n,s)):b&&(ce(),_(b,1,1,()=>{b=null}),de()),M[25]?P?(P.p(M,N),N[0]&33554432&&d(P,1)):(P=_1(M),P.c(),d(P,1),P.m(n,u)):P&&(ce(),_(P,1,1,()=>{P=null}),de()),M[40]?A?(A.p(M,N),N[1]&512&&d(A,1)):(A=h1(M),A.c(),d(A,1),A.m(n,null)):A&&(ce(),_(A,1,1,()=>{A=null}),de()),(!m||N[1]&512)&&O(n,"items-mobile",M[40]),(!m||N[1]&512)&&O(e,"menu-desktop",!M[40]),(!m||N[1]&512)&&O(e,"menu-mobile",M[40]),(!m||N[0]&8192)&&O(e,"hidden",!M[13])},i(M){m||(d(C),d(v),d(E),d(y),d(b),d(P),d(A),m=!0)},o(M){_(C),_(v),_(E),_(y),_(b),_(P),_(A),m=!1},d(M){M&&k(e),g&&g.d(),C&&C.d(),v&&v.d(),E&&E.d(),y&&y.d(),b&&b.d(),P&&P.d(),A&&A.d(),i[131](null),h=!1,ot(w)}}}function a1(i){let e,t,n,o,r,l,a,s;return{c(){e=T("div"),t=T("div"),t.textContent=`${U("submenu_settings")}`,n=B(),o=T("div"),r=B(),l=T("div"),f(o,"class","close svelte-1h807jq"),f(e,"class","item menu-header svelte-1h807jq"),O(e,"item-mobile",i[40]),f(l,"class","menu-divider svelte-1h807jq")},m(u,c){S(u,e,c),p(e,t),p(e,n),p(e,o),S(u,r,c),S(u,l,c),a||(s=pe(o,"click",at(i[66])),a=!0)},p(u,c){c[1]&512&&O(e,"item-mobile",u[40])},d(u){u&&(k(e),k(r),k(l)),a=!1,s()}}}function u1(i){let e,t,n,o,r,l,a,s,u,c,m,h,w;n=new Ar({});let g=i[39]&&!i[40]&&f1(i);return{c(){e=T("li"),t=T("div"),q(n.$$.fragment),o=B(),r=T("div"),r.textContent=`${U("menu_quality")}`,l=B(),a=T("div"),s=De(i[19]),u=B(),g&&g.c(),f(t,"class","menu-icon-wrapper svelte-1h807jq"),f(r,"class","menu-title svelte-1h807jq"),f(a,"class","menu-value svelte-1h807jq"),f(e,"class","item svelte-1h807jq"),f(e,"role","menuitem"),f(e,"tabindex","0"),f(e,"aria-label",c=U("aria_label_menu_quality",{actual:i[32]})),f(e,"aria-haspopup","true"),O(e,"item-mobile",i[40])},m(C,v){S(C,e,v),p(e,t),V(n,t,null),p(e,o),p(e,r),p(e,l),p(e,a),p(a,s),p(a,u),g&&g.m(a,null),i[126](e),m=!0,h||(w=[pe(e,"click",at(i[67])),pe(e,"keydown",i[92])],h=!0)},p(C,v){(!m||v[0]&524288)&&Qe(s,C[19]),C[39]&&!C[40]?g?(g.p(C,v),v[1]&768&&d(g,1)):(g=f1(C),g.c(),d(g,1),g.m(a,null)):g&&(ce(),_(g,1,1,()=>{g=null}),de()),(!m||v[1]&2&&c!==(c=U("aria_label_menu_quality",{actual:C[32]})))&&f(e,"aria-label",c),(!m||v[1]&512)&&O(e,"item-mobile",C[40])},i(C){m||(d(n.$$.fragment,C),d(g),m=!0)},o(C){_(n.$$.fragment,C),_(g),m=!1},d(C){C&&k(e),R(n),g&&g.d(),i[126](null),h=!1,ot(w)}}}function f1(i){let e,t,n;var o=i[39];function r(l,a){return{}}return o&&(t=En(o,r(i))),{c(){e=T("div"),t&&q(t.$$.fragment),f(e,"class","menu-valueIcon svelte-1h807jq")},m(l,a){S(l,e,a),t&&V(t,e,null),n=!0},p(l,a){if(a[1]&256&&o!==(o=l[39])){if(t){ce();let s=t;_(s.$$.fragment,1,0,()=>{R(s,1)}),de()}o?(t=En(o,r(l,a)),q(t.$$.fragment),d(t.$$.fragment,1),V(t,e,null)):t=null}},i(l){n||(t&&d(t.$$.fragment,l),n=!0)},o(l){t&&_(t.$$.fragment,l),n=!1},d(l){l&&k(e),t&&R(t)}}}function c1(i){let e,t,n,o,r,l,a,s=fo(i[41],i[9])+"",u,c,m,h,w;return n=new xd({}),{c(){e=T("li"),t=T("div"),q(n.$$.fragment),o=B(),r=T("div"),r.textContent=`${U("menu_audio_languages")}`,l=B(),a=T("div"),u=De(s),f(t,"class","menu-icon-wrapper svelte-1h807jq"),f(r,"class","menu-title svelte-1h807jq"),f(a,"class","menu-value svelte-1h807jq"),f(e,"class","item svelte-1h807jq"),f(e,"role","menuitem"),f(e,"tabindex","0"),f(e,"aria-label",c=U("aria_label_menu_audio_languages",{actual:fo(i[41],i[9])})),f(e,"aria-haspopup","true"),O(e,"item-mobile",i[40])},m(g,C){S(g,e,C),p(e,t),V(n,t,null),p(e,o),p(e,r),p(e,l),p(e,a),p(a,u),i[127](e),m=!0,h||(w=[pe(e,"click",at(i[68])),pe(e,"keydown",i[93])],h=!0)},p(g,C){(!m||C[0]&512|C[1]&1024)&&s!==(s=fo(g[41],g[9])+"")&&Qe(u,s),(!m||C[0]&512|C[1]&1024&&c!==(c=U("aria_label_menu_audio_languages",{actual:fo(g[41],g[9])})))&&f(e,"aria-label",c),(!m||C[1]&512)&&O(e,"item-mobile",g[40])},i(g){m||(d(n.$$.fragment,g),m=!0)},o(g){_(n.$$.fragment,g),m=!1},d(g){g&&k(e),R(n),i[127](null),h=!1,ot(w)}}}function d1(i){let e,t,n,o,r,l,a,s,u,c,m,h,w;return n=new Jd({}),{c(){e=T("li"),t=T("div"),q(n.$$.fragment),o=B(),r=T("div"),r.textContent=`${U("menu_playback_rate")}`,l=B(),a=T("div"),s=De(i[11]),u=De("x"),f(t,"class","menu-icon-wrapper svelte-1h807jq"),f(r,"class","menu-title svelte-1h807jq"),f(a,"class","menu-value svelte-1h807jq"),f(e,"class","item svelte-1h807jq"),f(e,"role","menuitem"),f(e,"tabindex","0"),f(e,"aria-label",c=U("aria_label_menu_rate",{actual:i[33]})),f(e,"aria-haspopup","true"),O(e,"item-mobile",i[40])},m(g,C){S(g,e,C),p(e,t),V(n,t,null),p(e,o),p(e,r),p(e,l),p(e,a),p(a,s),p(a,u),i[128](e),m=!0,h||(w=[pe(e,"click",at(Xt(i[73]))),pe(e,"keydown",i[98])],h=!0)},p(g,C){(!m||C[0]&2048)&&Qe(s,g[11]),(!m||C[1]&4&&c!==(c=U("aria_label_menu_rate",{actual:g[33]})))&&f(e,"aria-label",c),(!m||C[1]&512)&&O(e,"item-mobile",g[40])},i(g){m||(d(n.$$.fragment,g),m=!0)},o(g){_(n.$$.fragment,g),m=!1},d(g){g&&k(e),R(n),i[128](null),h=!1,ot(w)}}}function m1(i){let e,t,n,o,r,l,a,s=i[42].displayValue+"",u,c,m,h,w;return n=new Mr({}),{c(){e=T("li"),t=T("div"),q(n.$$.fragment),o=B(),r=T("div"),r.textContent=`${U("subtitles_caption")}`,l=B(),a=T("div"),u=De(s),f(t,"class","menu-icon-wrapper svelte-1h807jq"),f(r,"class","menu-title svelte-1h807jq"),f(a,"class","menu-value svelte-1h807jq"),f(e,"class","item svelte-1h807jq"),f(e,"role","menuitem"),f(e,"tabindex","0"),f(e,"aria-label",c=U("aria_label_menu_subtitle",{actual:i[42].displayValue})),f(e,"aria-haspopup","true"),O(e,"item-mobile",i[40])},m(g,C){S(g,e,C),p(e,t),V(n,t,null),p(e,o),p(e,r),p(e,l),p(e,a),p(a,u),i[129](e),m=!0,h||(w=[pe(e,"click",at(i[75])),pe(e,"keydown",i[101])],h=!0)},p(g,C){(!m||C[1]&2048)&&s!==(s=g[42].displayValue+"")&&Qe(u,s),(!m||C[1]&2048&&c!==(c=U("aria_label_menu_subtitle",{actual:g[42].displayValue})))&&f(e,"aria-label",c),(!m||C[1]&512)&&O(e,"item-mobile",g[40])},i(g){m||(d(n.$$.fragment,g),m=!0)},o(g){_(n.$$.fragment,g),m=!1},d(g){g&&k(e),R(n),i[129](null),h=!1,ot(w)}}}function p1(i){let e,t,n,o,r,l,a,s,u,c,m,h;return n=new Xd({}),{c(){e=T("li"),t=T("div"),q(n.$$.fragment),o=B(),r=T("div"),r.textContent=`${U("menu_traffic_saving")}`,l=B(),a=T("div"),s=De(i[31]),f(t,"class","menu-icon-wrapper svelte-1h807jq"),f(r,"class","menu-title svelte-1h807jq"),f(a,"class","menu-value svelte-1h807jq"),f(e,"class","item svelte-1h807jq"),f(e,"role","menuitem"),f(e,"tabindex","0"),f(e,"aria-label",u=U("aria_label_menu_traffic_saving",{actual:i[31]})),f(e,"aria-haspopup","true"),O(e,"item-mobile",i[40])},m(w,g){S(w,e,g),p(e,t),V(n,t,null),p(e,o),p(e,r),p(e,l),p(e,a),p(a,s),i[130](e),c=!0,m||(h=[pe(e,"click",at(i[69])),pe(e,"keydown",i[104])],m=!0)},p(w,g){(!c||g[1]&1)&&Qe(s,w[31]),(!c||g[1]&1&&u!==(u=U("aria_label_menu_traffic_saving",{actual:w[31]})))&&f(e,"aria-label",u),(!c||g[1]&512)&&O(e,"item-mobile",w[40])},i(w){c||(d(n.$$.fragment,w),c=!0)},o(w){_(n.$$.fragment,w),c=!1},d(w){w&&k(e),R(n),i[130](null),m=!1,ot(h)}}}function _1(i){let e,t,n,o,r,l,a,s,u;return n=new Zd({}),{c(){e=T("li"),t=T("div"),q(n.$$.fragment),o=B(),r=T("div"),r.textContent=`${U("download_video_caption")}`,f(t,"class","menu-icon-wrapper svelte-1h807jq"),f(r,"class","menu-title svelte-1h807jq"),f(e,"class","item svelte-1h807jq"),f(e,"role","menuitem"),f(e,"tabindex","0"),f(e,"aria-label",l=U("aria_label_menu_download")),O(e,"item-mobile",i[40])},m(c,m){S(c,e,m),p(e,t),V(n,t,null),p(e,o),p(e,r),a=!0,s||(u=[pe(e,"click",at(i[78])),pe(e,"keydown",i[107])],s=!0)},p(c,m){(!a||m[1]&512)&&O(e,"item-mobile",c[40])},i(c){a||(d(n.$$.fragment,c),a=!0)},o(c){_(n.$$.fragment,c),a=!1},d(c){c&&k(e),R(n),s=!1,ot(u)}}}function h1(i){let e,t,n,o,r,l,a,s,u,c,m,h,w,g,C,v,E,y,b=i[44].showSupport&&Dg(i);o=new Ba({});let P=i[44].features.saveTraceInfoToFile&&Ng(i);return h=new i1({}),{c(){b&&b.c(),e=B(),t=T("li"),n=T("div"),q(o.$$.fragment),r=B(),l=T("div"),l.textContent=`${U("menu_copy_debug")}`,s=B(),P&&P.c(),u=B(),c=T("li"),m=T("div"),q(h.$$.fragment),w=B(),g=T("div"),g.textContent=`${U("menu_debug_overlay")}`,f(n,"class","menu-icon-wrapper svelte-1h807jq"),f(l,"class","menu-title svelte-1h807jq"),f(t,"class","item item-mobile svelte-1h807jq"),f(t,"role","menuitem"),f(t,"tabindex","0"),f(t,"aria-label",a=U("menu_copy_debug")),f(m,"class","menu-icon-wrapper svelte-1h807jq"),f(g,"class","menu-title svelte-1h807jq"),f(c,"class","item item-mobile svelte-1h807jq"),f(c,"role","menuitem"),f(c,"tabindex","0"),f(c,"aria-label",C=i[43]?U("aria_label_menu_debug_overlay_disable"):U("aria_label_menu_debug_overlay_enable"))},m(A,M){b&&b.m(A,M),S(A,e,M),S(A,t,M),p(t,n),V(o,n,null),p(t,r),p(t,l),S(A,s,M),P&&P.m(A,M),S(A,u,M),S(A,c,M),p(c,m),V(h,m,null),p(c,w),p(c,g),v=!0,E||(y=[pe(t,"click",at(i[80])),pe(t,"keydown",i[109]),pe(c,"click",at(i[81])),pe(c,"keydown",i[110])],E=!0)},p(A,M){A[44].showSupport&&b.p(A,M),A[44].features.saveTraceInfoToFile&&P.p(A,M),(!v||M[1]&4096&&C!==(C=A[43]?U("aria_label_menu_debug_overlay_disable"):U("aria_label_menu_debug_overlay_enable")))&&f(c,"aria-label",C)},i(A){v||(d(b),d(o.$$.fragment,A),d(P),d(h.$$.fragment,A),v=!0)},o(A){_(b),_(o.$$.fragment,A),_(P),_(h.$$.fragment,A),v=!1},d(A){A&&(k(e),k(t),k(s),k(u),k(c)),b&&b.d(A),R(o),P&&P.d(A),R(h),E=!1,ot(y)}}}function Dg(i){let e,t,n,o,r,l,a,s,u;return n=new t1({}),{c(){e=T("li"),t=T("div"),q(n.$$.fragment),o=B(),r=T("div"),r.textContent=`${U("menu_report")}`,f(t,"class","menu-icon-wrapper svelte-1h807jq"),f(r,"class","menu-title svelte-1h807jq"),f(e,"class","item item-mobile svelte-1h807jq"),f(e,"role","menuitem"),f(e,"tabindex","0"),f(e,"aria-label",l=`${U("menu_report")}. ${U("aria_label_new_tab_alert")}`)},m(c,m){S(c,e,m),p(e,t),V(n,t,null),p(e,o),p(e,r),a=!0,s||(u=[pe(e,"click",at(i[79])),pe(e,"keydown",i[108])],s=!0)},p:Ce,i(c){a||(d(n.$$.fragment,c),a=!0)},o(c){_(n.$$.fragment,c),a=!1},d(c){c&&k(e),R(n),s=!1,ot(u)}}}function Ng(i){let e,t,n,o,r,l,a,s,u;return n=new Ba({}),{c(){e=T("li"),t=T("div"),q(n.$$.fragment),o=B(),r=T("div"),r.textContent=`${U("menu_save_debug")}`,f(t,"class","menu-icon-wrapper svelte-1h807jq"),f(r,"class","menu-title svelte-1h807jq"),f(e,"class","item item-mobile svelte-1h807jq"),f(e,"role","menuitem"),f(e,"tabindex","0"),f(e,"aria-label",l=U("menu_save_debug"))},m(c,m){S(c,e,m),p(e,t),V(n,t,null),p(e,o),p(e,r),a=!0,s||(u=[pe(e,"click",at(i[82])),pe(e,"keydown",i[111])],s=!0)},p:Ce,i(c){a||(d(n.$$.fragment,c),a=!0)},o(c){_(n.$$.fragment,c),a=!1},d(c){c&&k(e),R(n),s=!1,ot(u)}}}function g1(i){let e,t,n,o,r,l,a,s,u,c,m,h,w,g;n=new xn({props:{direction:"left"}});let C=Vt(i[10]),v=[];for(let y=0;y<C.length;y+=1)v[y]=y1(r1(i,C,y));let E=y=>_(v[y],1,1,()=>{v[y]=null});return{c(){var y;e=T("div"),t=T("div"),q(n.$$.fragment),o=B(),r=T("div"),r.textContent=`${U("submenu_quality")}`,a=B(),s=T("div"),u=B(),c=T("ul");for(let b=0;b<v.length;b+=1)v[b].c();f(t,"class","item menu-header svelte-1h807jq"),f(t,"aria-label",l=U("aria_label_submenu_back")),O(t,"item-mobile",i[40]),f(s,"class","menu-divider svelte-1h807jq"),f(c,"class","items svelte-1h807jq"),f(c,"role","menu"),f(c,"style",m=i[85]((y=i[20])==null?void 0:y.clientHeight,!0)),O(c,"items-mobile",i[40]),f(e,"class","menu menu-subList svelte-1h807jq"),O(e,"menu-desktop",!i[40]),O(e,"menu-mobile",i[40])},m(y,b){S(y,e,b),p(e,t),V(n,t,null),p(t,o),p(t,r),i[132](t),p(e,a),p(e,s),p(e,u),p(e,c);for(let P=0;P<v.length;P+=1)v[P]&&v[P].m(c,null);i[135](c),h=!0,w||(g=[pe(t,"click",at(i[77])),pe(c,"keydown",i[94])],w=!0)},p(y,b){var P;if((!h||b[1]&512)&&O(t,"item-mobile",y[40]),b[0]&1024|b[1]&512|b[2]&256|b[3]&4){C=Vt(y[10]);let A;for(A=0;A<C.length;A+=1){let M=r1(y,C,A);v[A]?(v[A].p(M,b),d(v[A],1)):(v[A]=y1(M),v[A].c(),d(v[A],1),v[A].m(c,null))}for(ce(),A=C.length;A<v.length;A+=1)E(A);de()}(!h||b[0]&1048576&&m!==(m=y[85]((P=y[20])==null?void 0:P.clientHeight,!0)))&&f(c,"style",m),(!h||b[1]&512)&&O(c,"items-mobile",y[40]),(!h||b[1]&512)&&O(e,"menu-desktop",!y[40]),(!h||b[1]&512)&&O(e,"menu-mobile",y[40])},i(y){if(!h){d(n.$$.fragment,y);for(let b=0;b<C.length;b+=1)d(v[b]);h=!0}},o(y){_(n.$$.fragment,y),v=v.filter(Boolean);for(let b=0;b<v.length;b+=1)_(v[b]);h=!1},d(y){y&&k(e),R(n),i[132](null),qi(v,y),i[135](null),w=!1,ot(g)}}}function b1(i){let e,t,n;return t=new Go({}),{c(){e=T("div"),q(t.$$.fragment),f(e,"class","itemIcon svelte-1h807jq")},m(o,r){S(o,e,r),V(t,e,null),n=!0},i(o){n||(d(t.$$.fragment,o),n=!0)},o(o){_(t.$$.fragment,o),n=!1},d(o){o&&k(e),R(t)}}}function v1(i){let e,t,n;var o=wo(i[174].value);function r(l,a){return{}}return o&&(t=En(o,r(i))),{c(){e=T("div"),t&&q(t.$$.fragment),f(e,"class","menu-valueIcon-list svelte-1h807jq")},m(l,a){S(l,e,a),t&&V(t,e,null),n=!0},p(l,a){if(a[0]&1024&&o!==(o=wo(l[174].value))){if(t){ce();let s=t;_(s.$$.fragment,1,0,()=>{R(s,1)}),de()}o?(t=En(o,r(l,a)),q(t.$$.fragment),d(t.$$.fragment,1),V(t,e,null)):t=null}},i(l){n||(t&&d(t.$$.fragment,l),n=!0)},o(l){t&&_(t.$$.fragment,l),n=!1},d(l){l&&k(e),t&&R(t)}}}function y1(i){let e,t,n,o=i[174].displayValue+"",r,l,a=!i[40]&&wo(i[174].value),s,u,c,m,h,w,g=i[174].selected&&b1(i),C=a&&v1(i);function v(){return i[133](i[174])}function E(...y){return i[134](i[174],...y)}return{c(){e=T("li"),g&&g.c(),t=B(),n=T("div"),r=De(o),l=B(),C&&C.c(),s=B(),f(n,"class","submenu-value svelte-1h807jq"),O(n,"submenu-value-mobile",i[40]),f(e,"class","item item-quality svelte-1h807jq"),f(e,"data-value",u=i[174].value),f(e,"role","menuitem"),f(e,"tabindex","0"),f(e,"aria-label",c=i[174].displayValue),O(e,"item-mobile",i[40])},m(y,b){S(y,e,b),g&&g.m(e,null),p(e,t),p(e,n),p(n,r),p(e,l),C&&C.m(e,null),p(e,s),m=!0,h||(w=[pe(e,"click",at(v)),pe(e,"keydown",E)],h=!0)},p(y,b){i=y,i[174].selected?g?b[0]&1024&&d(g,1):(g=b1(i),g.c(),d(g,1),g.m(e,t)):g&&(ce(),_(g,1,1,()=>{g=null}),de()),(!m||b[0]&1024)&&o!==(o=i[174].displayValue+"")&&Qe(r,o),(!m||b[1]&512)&&O(n,"submenu-value-mobile",i[40]),b[0]&1024|b[1]&512&&(a=!i[40]&&wo(i[174].value)),a?C?(C.p(i,b),b[0]&1024|b[1]&512&&d(C,1)):(C=v1(i),C.c(),d(C,1),C.m(e,s)):C&&(ce(),_(C,1,1,()=>{C=null}),de()),(!m||b[0]&1024&&u!==(u=i[174].value))&&f(e,"data-value",u),(!m||b[0]&1024&&c!==(c=i[174].displayValue))&&f(e,"aria-label",c),(!m||b[1]&512)&&O(e,"item-mobile",i[40])},i(y){m||(d(g),d(C),m=!0)},o(y){_(g),_(C),m=!1},d(y){y&&k(e),g&&g.d(),C&&C.d(),h=!1,ot(w)}}}function w1(i){let e,t,n,o,r,l,a,s,u,c,m,h,w,g;n=new xn({props:{direction:"left"}});let C=Vt(i[9]),v=[];for(let y=0;y<C.length;y+=1)v[y]=C1(l1(i,C,y));let E=y=>_(v[y],1,1,()=>{v[y]=null});return{c(){var y;e=T("div"),t=T("div"),q(n.$$.fragment),o=B(),r=T("div"),r.textContent=`${U("submenu_audio_languages")}`,a=B(),s=T("div"),u=B(),c=T("ul");for(let b=0;b<v.length;b+=1)v[b].c();f(t,"class","item menu-header svelte-1h807jq"),f(t,"aria-label",l=U("aria_label_submenu_back")),O(t,"item-mobile",i[40]),f(s,"class","menu-divider svelte-1h807jq"),f(c,"class","items svelte-1h807jq"),f(c,"role","menu"),f(c,"style",m=i[85]((y=i[21])==null?void 0:y.clientHeight,!0)),O(c,"items-mobile",i[40]),f(e,"class","menu menu-subList svelte-1h807jq"),O(e,"menu-desktop",!i[40]),O(e,"menu-mobile",i[40])},m(y,b){S(y,e,b),p(e,t),V(n,t,null),p(t,o),p(t,r),i[136](t),p(e,a),p(e,s),p(e,u),p(e,c);for(let P=0;P<v.length;P+=1)v[P]&&v[P].m(c,null);i[139](c),h=!0,w||(g=[pe(t,"click",at(i[77])),pe(c,"keydown",i[96])],w=!0)},p(y,b){var P;if((!h||b[1]&512)&&O(t,"item-mobile",y[40]),b[0]&512|b[1]&1536|b[2]&512|b[3]&16){C=Vt(y[9]);let A;for(A=0;A<C.length;A+=1){let M=l1(y,C,A);v[A]?(v[A].p(M,b),d(v[A],1)):(v[A]=C1(M),v[A].c(),d(v[A],1),v[A].m(c,null))}for(ce(),A=C.length;A<v.length;A+=1)E(A);de()}(!h||b[0]&2097152&&m!==(m=y[85]((P=y[21])==null?void 0:P.clientHeight,!0)))&&f(c,"style",m),(!h||b[1]&512)&&O(c,"items-mobile",y[40]),(!h||b[1]&512)&&O(e,"menu-desktop",!y[40]),(!h||b[1]&512)&&O(e,"menu-mobile",y[40])},i(y){if(!h){d(n.$$.fragment,y);for(let b=0;b<C.length;b+=1)d(v[b]);h=!0}},o(y){_(n.$$.fragment,y),v=v.filter(Boolean);for(let b=0;b<v.length;b+=1)_(v[b]);h=!1},d(y){y&&k(e),R(n),i[136](null),qi(v,y),i[139](null),w=!1,ot(g)}}}function k1(i){let e,t,n;return t=new Go({}),{c(){e=T("div"),q(t.$$.fragment),f(e,"class","itemIcon svelte-1h807jq")},m(o,r){S(o,e,r),V(t,e,null),n=!0},i(o){n||(d(t.$$.fragment,o),n=!0)},o(o){_(t.$$.fragment,o),n=!1},d(o){o&&k(e),R(t)}}}function C1(i){var C;let e,t,n,o=fo(i[171],i[9])+"",r,l,a,s,u,c,m,h=i[171].id===((C=i[41])==null?void 0:C.id)&&k1(i);function w(){return i[137](i[171])}function g(...v){return i[138](i[171],...v)}return{c(){e=T("li"),h&&h.c(),t=B(),n=T("div"),r=De(o),l=B(),f(n,"class","submenu-value svelte-1h807jq"),O(n,"submenu-value-mobile",i[40]),f(e,"class","item item-quality svelte-1h807jq"),f(e,"data-value",a=i[171].id),f(e,"role","menuitem"),f(e,"tabindex","0"),f(e,"aria-label",s=fo(i[171],i[9])),O(e,"item-mobile",i[40])},m(v,E){S(v,e,E),h&&h.m(e,null),p(e,t),p(e,n),p(n,r),p(e,l),u=!0,c||(m=[pe(e,"click",at(w)),pe(e,"keydown",g)],c=!0)},p(v,E){var y;i=v,i[171].id===((y=i[41])==null?void 0:y.id)?h?E[0]&512|E[1]&1024&&d(h,1):(h=k1(i),h.c(),d(h,1),h.m(e,t)):h&&(ce(),_(h,1,1,()=>{h=null}),de()),(!u||E[0]&512)&&o!==(o=fo(i[171],i[9])+"")&&Qe(r,o),(!u||E[1]&512)&&O(n,"submenu-value-mobile",i[40]),(!u||E[0]&512&&a!==(a=i[171].id))&&f(e,"data-value",a),(!u||E[0]&512&&s!==(s=fo(i[171],i[9])))&&f(e,"aria-label",s),(!u||E[1]&512)&&O(e,"item-mobile",i[40])},i(v){u||(d(h),u=!0)},o(v){_(h),u=!1},d(v){v&&k(e),h&&h.d(),c=!1,ot(m)}}}function S1(i){let e,t,n,o,r,l,a,s,u,c,m,h,w,g;n=new xn({props:{direction:"left"}});let C=Vt(i[8]),v=[];for(let y=0;y<C.length;y+=1)v[y]=P1(o1(i,C,y));let E=y=>_(v[y],1,1,()=>{v[y]=null});return{c(){var y;e=T("div"),t=T("div"),q(n.$$.fragment),o=B(),r=T("div"),r.textContent=`${U("submenu_playback_rate")}`,a=B(),s=T("div"),u=B(),c=T("ul");for(let b=0;b<v.length;b+=1)v[b].c();f(t,"class","item menu-header svelte-1h807jq"),f(t,"aria-label",l=U("aria_label_submenu_back")),O(t,"item-mobile",i[40]),f(s,"class","menu-divider svelte-1h807jq"),f(c,"class","items svelte-1h807jq"),f(c,"role","menu"),f(c,"style",m=i[85]((y=i[22])==null?void 0:y.clientHeight,!0)),O(c,"items-mobile",i[40]),f(e,"class","menu menu-subList svelte-1h807jq"),O(e,"menu-desktop",!i[40]),O(e,"menu-mobile",i[40])},m(y,b){S(y,e,b),p(e,t),V(n,t,null),p(t,o),p(t,r),i[140](t),p(e,a),p(e,s),p(e,u),p(e,c);for(let P=0;P<v.length;P+=1)v[P]&&v[P].m(c,null);i[143](c),h=!0,w||(g=[pe(t,"click",at(i[77])),pe(c,"keydown",i[99])],w=!0)},p(y,b){var P;if((!h||b[1]&512)&&O(t,"item-mobile",y[40]),b[0]&256|b[1]&512|b[2]&4096|b[3]&128){C=Vt(y[8]);let A;for(A=0;A<C.length;A+=1){let M=o1(y,C,A);v[A]?(v[A].p(M,b),d(v[A],1)):(v[A]=P1(M),v[A].c(),d(v[A],1),v[A].m(c,null))}for(ce(),A=C.length;A<v.length;A+=1)E(A);de()}(!h||b[0]&4194304&&m!==(m=y[85]((P=y[22])==null?void 0:P.clientHeight,!0)))&&f(c,"style",m),(!h||b[1]&512)&&O(c,"items-mobile",y[40]),(!h||b[1]&512)&&O(e,"menu-desktop",!y[40]),(!h||b[1]&512)&&O(e,"menu-mobile",y[40])},i(y){if(!h){d(n.$$.fragment,y);for(let b=0;b<C.length;b+=1)d(v[b]);h=!0}},o(y){_(n.$$.fragment,y),v=v.filter(Boolean);for(let b=0;b<v.length;b+=1)_(v[b]);h=!1},d(y){y&&k(e),R(n),i[140](null),qi(v,y),i[143](null),w=!1,ot(g)}}}function T1(i){let e,t,n;return t=new Go({}),{c(){e=T("div"),q(t.$$.fragment),f(e,"class","itemIcon svelte-1h807jq")},m(o,r){S(o,e,r),V(t,e,null),n=!0},i(o){n||(d(t.$$.fragment,o),n=!0)},o(o){_(t.$$.fragment,o),n=!1},d(o){o&&k(e),R(t)}}}function P1(i){let e,t,n,o=i[168].displayValue+"",r,l,a,s,u,c,m,h=i[168].selected&&T1(i);function w(){return i[141](i[168])}function g(...C){return i[142](i[168],...C)}return{c(){e=T("li"),h&&h.c(),t=B(),n=T("div"),r=De(o),l=B(),f(n,"class","submenu-value svelte-1h807jq"),O(n,"submenu-value-mobile",i[40]),f(e,"class","item item-quality svelte-1h807jq"),f(e,"data-value",a=i[168].value),f(e,"role","menuitem"),f(e,"tabindex","0"),f(e,"aria-label",s=i[168].displayValue),O(e,"item-mobile",i[40])},m(C,v){S(C,e,v),h&&h.m(e,null),p(e,t),p(e,n),p(n,r),p(e,l),u=!0,c||(m=[pe(e,"click",at(w)),pe(e,"keydown",g)],c=!0)},p(C,v){i=C,i[168].selected?h?v[0]&256&&d(h,1):(h=T1(i),h.c(),d(h,1),h.m(e,t)):h&&(ce(),_(h,1,1,()=>{h=null}),de()),(!u||v[0]&256)&&o!==(o=i[168].displayValue+"")&&Qe(r,o),(!u||v[1]&512)&&O(n,"submenu-value-mobile",i[40]),(!u||v[0]&256&&a!==(a=i[168].value))&&f(e,"data-value",a),(!u||v[0]&256&&s!==(s=i[168].displayValue))&&f(e,"aria-label",s),(!u||v[1]&512)&&O(e,"item-mobile",i[40])},i(C){u||(d(h),u=!0)},o(C){_(h),u=!1},d(C){C&&k(e),h&&h.d(),c=!1,ot(m)}}}function I1(i){let e,t,n,o,r,l,a,s,u,c,m,h,w,g,C,v,E,y,b,P,A,M,N,te,_e,X,$,se,L;n=new xn({props:{direction:"left"}});let K=!i[6]&&E1(i),x=i[6]&&L1(i);return{c(){var Z;e=T("div"),t=T("div"),q(n.$$.fragment),o=B(),r=T("div"),r.textContent=`${U("submenu_traffic_saving")}`,a=B(),s=T("div"),u=B(),c=T("div"),m=T("ul"),h=T("li"),K&&K.c(),w=B(),g=T("div"),g.textContent=`${U("traffic_saving_disable")}`,v=B(),E=T("li"),x&&x.c(),y=B(),b=T("div"),b.textContent=`${U("traffic_saving_enable")}`,A=B(),M=T("div"),N=B(),te=T("div"),_e=T("span"),_e.textContent=`${U("traffic_saving_helper_text")}`,f(t,"class","item menu-header svelte-1h807jq"),f(t,"aria-label",l=U("aria_label_submenu_back")),O(t,"item-mobile",i[40]),f(s,"class","menu-divider svelte-1h807jq"),f(g,"class","submenu-value svelte-1h807jq"),O(g,"submenu-value-mobile",i[40]),f(h,"class","item item-traffic-saving svelte-1h807jq"),f(h,"role","menuitem"),f(h,"tabindex","0"),f(h,"aria-label",C=U("aria_label_submenu_traffic_saving_off")),O(h,"item-mobile",i[40]),f(b,"class","submenu-value svelte-1h807jq"),O(b,"submenu-value-mobile",i[40]),f(E,"class","item item-traffic-saving svelte-1h807jq"),f(E,"role","menuitem"),f(E,"tabindex","0"),f(E,"aria-label",P=`${U("aria_label_submenu_traffic_saving_on")}. ${U("traffic_saving_helper_text")}`),O(E,"item-mobile",i[40]),f(m,"class","items svelte-1h807jq"),f(m,"role","menu"),O(m,"items-mobile",i[40]),f(M,"class","menu-divider svelte-1h807jq"),f(_e,"class","svelte-1h807jq"),f(te,"class","item item-helper-text svelte-1h807jq"),O(te,"item-mobile",i[40]),f(c,"style",X=i[85]((Z=i[23])==null?void 0:Z.clientHeight,!0)),f(e,"class","menu menu-subList menu-subList-traffic-saving svelte-1h807jq"),O(e,"menu-desktop",!i[40]),O(e,"menu-mobile",i[40])},m(Z,F){S(Z,e,F),p(e,t),V(n,t,null),p(t,o),p(t,r),i[144](t),p(e,a),p(e,s),p(e,u),p(e,c),p(c,m),p(m,h),K&&K.m(h,null),p(h,w),p(h,g),p(m,v),p(m,E),x&&x.m(E,null),p(E,y),p(E,b),i[149](m),p(c,A),p(c,M),p(c,N),p(c,te),p(te,_e),$=!0,se||(L=[pe(t,"click",at(i[77])),pe(h,"click",at(i[145])),pe(h,"keydown",i[146]),pe(E,"click",at(i[147])),pe(E,"keydown",i[148]),pe(m,"keydown",i[105])],se=!0)},p(Z,F){var Q;(!$||F[1]&512)&&O(t,"item-mobile",Z[40]),Z[6]?K&&(ce(),_(K,1,1,()=>{K=null}),de()):K?F[0]&64&&d(K,1):(K=E1(Z),K.c(),d(K,1),K.m(h,w)),(!$||F[1]&512)&&O(g,"submenu-value-mobile",Z[40]),(!$||F[1]&512)&&O(h,"item-mobile",Z[40]),Z[6]?x?F[0]&64&&d(x,1):(x=L1(Z),x.c(),d(x,1),x.m(E,y)):x&&(ce(),_(x,1,1,()=>{x=null}),de()),(!$||F[1]&512)&&O(b,"submenu-value-mobile",Z[40]),(!$||F[1]&512)&&O(E,"item-mobile",Z[40]),(!$||F[1]&512)&&O(m,"items-mobile",Z[40]),(!$||F[1]&512)&&O(te,"item-mobile",Z[40]),(!$||F[0]&8388608&&X!==(X=Z[85]((Q=Z[23])==null?void 0:Q.clientHeight,!0)))&&f(c,"style",X),(!$||F[1]&512)&&O(e,"menu-desktop",!Z[40]),(!$||F[1]&512)&&O(e,"menu-mobile",Z[40])},i(Z){$||(d(n.$$.fragment,Z),d(K),d(x),$=!0)},o(Z){_(n.$$.fragment,Z),_(K),_(x),$=!1},d(Z){Z&&k(e),R(n),i[144](null),K&&K.d(),x&&x.d(),i[149](null),se=!1,ot(L)}}}function E1(i){let e,t,n;return t=new Go({}),{c(){e=T("div"),q(t.$$.fragment),f(e,"class","itemIcon svelte-1h807jq")},m(o,r){S(o,e,r),V(t,e,null),n=!0},i(o){n||(d(t.$$.fragment,o),n=!0)},o(o){_(t.$$.fragment,o),n=!1},d(o){o&&k(e),R(t)}}}function L1(i){let e,t,n;return t=new Go({}),{c(){e=T("div"),q(t.$$.fragment),f(e,"class","itemIcon svelte-1h807jq")},m(o,r){S(o,e,r),V(t,e,null),n=!0},i(o){n||(d(t.$$.fragment,o),n=!0)},o(o){_(t.$$.fragment,o),n=!1},d(o){o&&k(e),R(t)}}}function A1(i){let e,t,n,o,r,l,a,s,u,c,m,h;n=new xn({props:{direction:"left"}});let w=Vt(i[7]),g=[];for(let v=0;v<w.length;v+=1)g[v]=V1(n1(i,w,v));let C=v=>_(g[v],1,1,()=>{g[v]=null});return{c(){var v;e=T("div"),t=T("div"),q(n.$$.fragment),o=B(),r=T("div"),r.textContent=`${U("subtitles_caption")}`,a=B(),s=T("ul");for(let E=0;E<g.length;E+=1)g[E].c();f(t,"class","item menu-header svelte-1h807jq"),f(t,"aria-label",l=U("aria_label_submenu_back")),O(t,"item-mobile",i[40]),f(s,"class","items svelte-1h807jq"),f(s,"role","menu"),f(s,"style",u=i[85]((v=i[24])==null?void 0:v.clientHeight,!0)),O(s,"items-mobile",i[40]),f(e,"class","menu menu-subList menu-subList-subtitles svelte-1h807jq"),O(e,"menu-desktop",!i[40]),O(e,"menu-mobile",i[40])},m(v,E){S(v,e,E),p(e,t),V(n,t,null),p(t,o),p(t,r),i[150](t),p(e,a),p(e,s);for(let y=0;y<g.length;y+=1)g[y]&&g[y].m(s,null);i[153](s),c=!0,m||(h=[pe(t,"click",at(i[77])),pe(s,"keydown",i[102])],m=!0)},p(v,E){var y;if((!c||E[1]&512)&&O(t,"item-mobile",v[40]),E[0]&128|E[1]&512|E[2]&16384|E[3]&1024){w=Vt(v[7]);let b;for(b=0;b<w.length;b+=1){let P=n1(v,w,b);g[b]?(g[b].p(P,E),d(g[b],1)):(g[b]=V1(P),g[b].c(),d(g[b],1),g[b].m(s,null))}for(ce(),b=w.length;b<g.length;b+=1)C(b);de()}(!c||E[0]&16777216&&u!==(u=v[85]((y=v[24])==null?void 0:y.clientHeight,!0)))&&f(s,"style",u),(!c||E[1]&512)&&O(s,"items-mobile",v[40]),(!c||E[1]&512)&&O(e,"menu-desktop",!v[40]),(!c||E[1]&512)&&O(e,"menu-mobile",v[40])},i(v){if(!c){d(n.$$.fragment,v);for(let E=0;E<w.length;E+=1)d(g[E]);c=!0}},o(v){_(n.$$.fragment,v),g=g.filter(Boolean);for(let E=0;E<g.length;E+=1)_(g[E]);c=!1},d(v){v&&k(e),R(n),i[150](null),qi(g,v),i[153](null),m=!1,ot(h)}}}function M1(i){let e,t,n;return t=new Go({}),{c(){e=T("div"),q(t.$$.fragment),f(e,"class","itemIcon svelte-1h807jq")},m(o,r){S(o,e,r),V(t,e,null),n=!0},i(o){n||(d(t.$$.fragment,o),n=!0)},o(o){_(t.$$.fragment,o),n=!1},d(o){o&&k(e),R(t)}}}function V1(i){let e,t,n,o=i[165].displayValue+"",r,l,a,s,u,c,m,h=i[165].selected&&M1(i);function w(){return i[151](i[165])}function g(...C){return i[152](i[165],...C)}return{c(){e=T("li"),h&&h.c(),t=B(),n=T("div"),r=De(o),l=B(),f(n,"class","submenu-value svelte-1h807jq"),O(n,"submenu-value-mobile",i[40]),f(e,"class","item item-quality svelte-1h807jq"),f(e,"data-value",a=i[165].value),f(e,"role","menuitem"),f(e,"tabindex","0"),f(e,"aria-label",s=i[165].displayValue),O(e,"item-mobile",i[40])},m(C,v){S(C,e,v),h&&h.m(e,null),p(e,t),p(e,n),p(n,r),p(e,l),u=!0,c||(m=[pe(e,"click",at(w)),pe(e,"keydown",g)],c=!0)},p(C,v){i=C,i[165].selected?h?v[0]&128&&d(h,1):(h=M1(i),h.c(),d(h,1),h.m(e,t)):h&&(ce(),_(h,1,1,()=>{h=null}),de()),(!u||v[0]&128)&&o!==(o=i[165].displayValue+"")&&Qe(r,o),(!u||v[1]&512)&&O(n,"submenu-value-mobile",i[40]),(!u||v[0]&128&&a!==(a=i[165].value))&&f(e,"data-value",a),(!u||v[0]&128&&s!==(s=i[165].displayValue))&&f(e,"aria-label",s),(!u||v[1]&512)&&O(e,"item-mobile",i[40])},i(C){u||(d(h),u=!0)},o(C){_(h),u=!1},d(C){C&&k(e),h&&h.d(),c=!1,ot(m)}}}function Og(i){let e,t,n,o,r,l,a,s=i[12]&&s1(i),u=i[14]&&g1(i),c=i[15]&&w1(i),m=i[16]&&S1(i),h=i[18]&&I1(i),w=i[17]&&A1(i);return{c(){e=T("div"),s&&s.c(),t=B(),u&&u.c(),n=B(),c&&c.c(),o=B(),m&&m.c(),r=B(),h&&h.c(),l=B(),w&&w.c(),f(e,"class","svelte-1h807jq"),O(e,"hidden",!i[12]),O(e,"container-mobile",i[40])},m(g,C){S(g,e,C),s&&s.m(e,null),p(e,t),u&&u.m(e,null),p(e,n),c&&c.m(e,null),p(e,o),m&&m.m(e,null),p(e,r),h&&h.m(e,null),p(e,l),w&&w.m(e,null),a=!0},p(g,C){g[12]?s?(s.p(g,C),C[0]&4096&&d(s,1)):(s=s1(g),s.c(),d(s,1),s.m(e,t)):s&&(ce(),_(s,1,1,()=>{s=null}),de()),g[14]?u?(u.p(g,C),C[0]&16384&&d(u,1)):(u=g1(g),u.c(),d(u,1),u.m(e,n)):u&&(ce(),_(u,1,1,()=>{u=null}),de()),g[15]?c?(c.p(g,C),C[0]&32768&&d(c,1)):(c=w1(g),c.c(),d(c,1),c.m(e,o)):c&&(ce(),_(c,1,1,()=>{c=null}),de()),g[16]?m?(m.p(g,C),C[0]&65536&&d(m,1)):(m=S1(g),m.c(),d(m,1),m.m(e,r)):m&&(ce(),_(m,1,1,()=>{m=null}),de()),g[18]?h?(h.p(g,C),C[0]&262144&&d(h,1)):(h=I1(g),h.c(),d(h,1),h.m(e,l)):h&&(ce(),_(h,1,1,()=>{h=null}),de()),g[17]?w?(w.p(g,C),C[0]&131072&&d(w,1)):(w=A1(g),w.c(),d(w,1),w.m(e,null)):w&&(ce(),_(w,1,1,()=>{w=null}),de()),(!a||C[0]&4096)&&O(e,"hidden",!g[12]),(!a||C[1]&512)&&O(e,"container-mobile",g[40])},i(g){a||(d(s),d(u),d(c),d(m),d(h),d(w),a=!0)},o(g){_(s),_(u),_(c),_(m),_(h),_(w),a=!1},d(g){g&&k(e),s&&s.d(),u&&u.d(),c&&c.d(),m&&m.d(),h&&h.d(),w&&w.d()}}}var Fg=18;function zg(i,e,t){let n,o,r,l,a,s,u,c,m,h,w,g,C,v,E,y,b,P,A,M,N,te,_e,X,$,se,L,{ref:K=void 0}=e,{supportLink:x}=e,{playerControlsHeight:Z=0}=e,{returnFocus:F}=e,Q=rt(),J=Wt(),oe=Q.state.audioStream$;H(i,oe,ie=>t(41,g=ie));let Be=Q.state.availableAudioStreams$;H(i,Be,ie=>t(9,C=ie));let Ye=Q.state.currentQuality$;H(i,Ye,ie=>t(120,y=ie));let Ie=Q.state.availableQualities$;H(i,Ie,ie=>t(10,v=ie));let Re=Q.state.autoQualityLimitingAvailable$;H(i,Re,ie=>t(124,M=ie));let qe=Q.state.isAutoQualityEnabled$;H(i,qe,ie=>t(121,b=ie));let xe=Q.state.currentPlaybackRate$;H(i,xe,ie=>t(11,E=ie));let ae=Q.state.availablePlaybackRates$;H(i,ae,ie=>t(8,m=ie));let he=Q.state.currentSubtitle$;H(i,he,ie=>t(42,se=ie));let ft=Q.state.availableSubtitlesList$;H(i,ft,ie=>t(7,u=ie));let ke=Q.state.canDownload,Ke=Q.state.hasMpegSources$;H(i,Ke,ie=>t(125,N=ie));let _t=Q.ui.settingsMenuVisible;H(i,_t,ie=>t(12,$=ie));let Ze=Q.ui.settingsMenuOpenedByKeyboard;H(i,Ze,ie=>t(155,o=ie));let Ge=Q.ui.isMobile;H(i,Ge,ie=>t(40,r=ie));let Xe=Q.ui.mobileNotReportControlHidden$;H(i,Xe,ie=>t(122,P=ie));let et=Q.state.canChangePlaybackSpeed$;H(i,et,ie=>t(123,A=ie));let fe=Q.ui.isFullscreen;H(i,fe,ie=>t(158,X=ie));let Te=Q.state.trafficSavingEnabled$;H(i,Te,ie=>t(6,a=ie));let We=Q.ui.playerSize;H(i,We,ie=>t(157,_e=ie));let le=Q.ui.debugPanelVisible;H(i,le,ie=>t(43,L=ie));let Se=Q.ui.playerSize;H(i,Se,ie=>t(156,te=ie));let ht=Q.state.isInteractiveTime$,Ee=Q.actions.internal.downloadVideo,ct=Q.actions.internal.closeSettingsMenu,me=!0,tt=!1,Tt=!1,vt=!1,Ue=!1,zt=!1,Dt=!1;function Pt(){o||F==null||F(),ct(),Dt=!1}function li(){t(13,me=!1),t(14,tt=!0)}function dt(){t(13,me=!1),t(15,Tt=!0)}function lt(){t(13,me=!1),t(18,zt=!0)}function ve(ie){Q.actions.internal.setQuality(ie),Pt()}function Je(ie){Q.actions.internal.setAudioStream(ie),Pt()}function gt(ie){Q.actions.internal.setTrafficSavingEnabled(ie),Pt()}function Ht(){t(13,me=!1),t(16,vt=!0)}function kt(ie){Q.actions.internal.setPlaybackRate(ie),Pt()}function xt(){t(13,me=!1),t(17,Ue=!0)}function hi(ie){Q.actions.internal.setSubtitle(ie),Pt()}function qt(){t(13,me=!0),t(14,tt=!1),t(15,Tt=!1),t(16,vt=!1),t(17,Ue=!1),t(18,zt=!1)}function Yi(){Ee(),Pt()}function fn(){window.open(x,"_blank"),Pt(),Q.actions.internal.pause()}function ri(){fl(Q.actions.internal.getDebugTextData()),Pt()}function Di(){le.set(!0),Pt()}let cn=()=>{let ie=Q.actions.internal.getTraceTextData(),ut=new Blob([...ie],{type:"application/json"}),oi=window.URL.createObjectURL(ut);No(oi,"vk_player_trace_info","json"),Pt()};function Zi(){Dt=!0}function dn(){Dt=!1}function Ni(ie,ut,oi){if(!ie)return"...";let zn=ut.find(an=>an.value===ie),Gn=zn?zn.displayValue:ie;return oi?ie===Bg.INVARIANT?U("auto_quality_invariant"):U("auto_quality",{actual:Gn}):Gn}let Oi,gi,bi,Ti,Pi,$t;function jt(ie=0,ut=!1){return r&&X&&ut?`max-height: ${Math.round(_e.height*.6)}px`:r?"":`max-height: ${te.height-Fg-ie-Z}px; overflow: auto;`}let Xi,Gt,Ii,Fi,Ji,si,Ct,xi,zi,At,$i,en,ei,Ei=Oe(!1);H(i,Ei,ie=>t(119,w=ie));let vi=Oe(!1);H(i,vi,ie=>t(118,h=ie));let Li,ti,Qt=Oe(!1);H(i,Qt,ie=>t(117,c=ie));let ai,Hi,mi=Oe(!1);H(i,mi,ie=>t(116,s=ie));let pi,ui,yi=Oe(!1);H(i,yi,ie=>t(115,l=ie));let tn=ie=>{yr(ie,ct)},yn=ie=>pt(this,null,function*(){_l(ie,li,()=>{let ut=v.findIndex(oi=>oi.selected);return en.childNodes[ut]})}),Ui=ie=>pt(this,null,function*(){_l(ie,dt,()=>{let ut=C.findIndex(oi=>oi.id===(g==null?void 0:g.id));return ei.childNodes[ut]})}),_i=ie=>pt(this,null,function*(){hl(ie,qt,Ei,ct)}),ii=(ie,ut)=>{di(ie,()=>ve(ut))},mn=ie=>pt(this,null,function*(){hl(ie,qt,vi,ct)}),Ot=(ie,ut)=>{di(ie,()=>Je(ut))},Ut=ie=>pt(this,null,function*(){_l(ie,Ht,()=>{let ut=m.findIndex(oi=>oi.selected);return ti.childNodes[ut]})}),pn=ie=>pt(this,null,function*(){hl(ie,qt,Qt,ct)}),wi=(ie,ut)=>{di(ie,()=>kt(ut))},fi=ie=>pt(this,null,function*(){_l(ie,xt,()=>{let ut=u.findIndex(oi=>oi.selected);return Hi.childNodes[ut]})}),_n=ie=>pt(this,null,function*(){hl(ie,qt,mi,ct)}),it=(ie,ut)=>{di(ie,()=>hi(ut))},Ai=ie=>pt(this,null,function*(){_l(ie,lt,()=>{let ut=a?2:0;return ui.childNodes[ut]})}),ci=ie=>pt(this,null,function*(){hl(ie,qt,yi,ct)}),je=(ie,ut)=>{di(ie,()=>gt(ut))},nn=ie=>{di(ie,()=>Yi())},wn=ie=>{di(ie,()=>fn())},kn=ie=>{di(ie,()=>ri())},on=ie=>{di(ie,()=>Di())},Ki=ie=>{di(ie,()=>cn())};Nt(()=>{let ie=ht.subscribe(ut=>{ut&&!r&&!Dt&&!o&&Pt()});return()=>{ie()}});function hn(ie){ge[ie?"unshift":"push"](()=>{At=ie,t(1,At)})}function Wi(ie){ge[ie?"unshift":"push"](()=>{$i=ie,t(2,$i)})}function ni(ie){ge[ie?"unshift":"push"](()=>{Li=ie,t(3,Li)})}function ln(ie){ge[ie?"unshift":"push"](()=>{ai=ie,t(4,ai)})}function ki(ie){ge[ie?"unshift":"push"](()=>{pi=ie,t(5,pi)})}function In(ie){ge[ie?"unshift":"push"](()=>{K=ie,t(0,K)})}function Cn(ie){ge[ie?"unshift":"push"](()=>{gi=ie,t(20,gi)})}let Sn=ie=>ve(ie.value),An=(ie,ut)=>ii(ut,ie.value);function gn(ie){ge[ie?"unshift":"push"](()=>{en=ie,t(34,en)})}function Tn(ie){ge[ie?"unshift":"push"](()=>{bi=ie,t(21,bi)})}let Pn=ie=>Je(ie),rn=(ie,ut)=>Ot(ut,ie);function Kt(ie){ge[ie?"unshift":"push"](()=>{ei=ie,t(35,ei)})}function Mn(ie){ge[ie?"unshift":"push"](()=>{Ti=ie,t(22,Ti)})}let Mi=ie=>kt(ie.value),Dn=(ie,ut)=>wi(ut,ie.value);function Yt(ie){ge[ie?"unshift":"push"](()=>{ti=ie,t(36,ti)})}function Nn(ie){ge[ie?"unshift":"push"](()=>{Pi=ie,t(23,Pi)})}let On=()=>gt(!1),Vn=ie=>je(ie,!1),Fn=()=>gt(!0),bn=ie=>je(ie,!0);function ji(ie){ge[ie?"unshift":"push"](()=>{ui=ie,t(38,ui)})}function re(ie){ge[ie?"unshift":"push"](()=>{$t=ie,t(24,$t)})}let It=ie=>hi(ie),sn=(ie,ut)=>it(ut,ie);function Vi(ie){ge[ie?"unshift":"push"](()=>{Hi=ie,t(37,Hi)})}return i.$$set=ie=>{"ref"in ie&&t(0,K=ie.ref),"supportLink"in ie&&t(112,x=ie.supportLink),"playerControlsHeight"in ie&&t(113,Z=ie.playerControlsHeight),"returnFocus"in ie&&t(114,F=ie.returnFocus)},i.$$.update=()=>{var ie;i.$$.dirty[0]&4096&&$&&(t(13,me=!0),t(14,tt=!1),t(15,Tt=!1),t(16,vt=!1),t(17,Ue=!1),t(18,zt=!1)),i.$$.dirty[3]&134217728&&t(39,n=wo(y)),i.$$.dirty[0]&1024|i.$$.dirty[3]&402653184&&t(19,Oi=Ni(y,v,b)),i.$$.dirty[3]&536870912|i.$$.dirty[4]&2&&t(25,Xi=ke&&N&&!P),i.$$.dirty[3]&536870912|i.$$.dirty[4]&1&&t(26,Gt=J.features.trafficSaving&&!P&&M),i.$$.dirty[0]&128|i.$$.dirty[3]&536870912&&t(27,Ii=u.length>0&&!P),i.$$.dirty[3]&1610612736&&t(28,Fi=!!A&&!P),i.$$.dirty[0]&512|i.$$.dirty[3]&536870912&&t(29,Ji=J.features.audioLanguages&&C.length>=2&&!P),i.$$.dirty[3]&536870912&&t(30,si=!P),i.$$.dirty[0]&64&&t(31,Ct=a?U("traffic_saving_on"):U("traffic_saving_off")),i.$$.dirty[3]&402653184&&t(32,xi=b?U("auto_quality_option"):y),i.$$.dirty[0]&2304&&t(33,zi=(ie=m.find(ut=>ut.value===E))==null?void 0:ie.displayValue),i.$$.dirty[0]&2|i.$$.dirty[3]&67108864&&pl(At,Ei,w),i.$$.dirty[0]&4|i.$$.dirty[3]&33554432&&pl($i,vi,h),i.$$.dirty[0]&8|i.$$.dirty[3]&16777216&&pl(Li,Qt,c),i.$$.dirty[0]&16|i.$$.dirty[3]&8388608&&pl(ai,mi,s),i.$$.dirty[0]&32|i.$$.dirty[3]&4194304&&pl(pi,yi,l)},[K,At,$i,Li,ai,pi,a,u,m,C,v,E,$,me,tt,Tt,vt,Ue,zt,Oi,gi,bi,Ti,Pi,$t,Xi,Gt,Ii,Fi,Ji,si,Ct,xi,zi,en,ei,ti,Hi,ui,n,r,g,se,L,J,oe,Be,Ye,Ie,Re,qe,xe,ae,he,ft,Ke,_t,Ze,Ge,Xe,et,fe,Te,We,le,Se,Pt,li,dt,lt,ve,Je,gt,Ht,kt,xt,hi,qt,Yi,fn,ri,Di,cn,Zi,dn,jt,Ei,vi,Qt,mi,yi,tn,yn,Ui,_i,ii,mn,Ot,Ut,pn,wi,fi,_n,it,Ai,ci,je,nn,wn,kn,on,Ki,x,Z,F,l,s,c,h,w,y,b,P,A,M,N,hn,Wi,ni,ln,ki,In,Cn,Sn,An,gn,Tn,Pn,rn,Kt,Mn,Mi,Dn,Yt,Nn,On,Vn,Fn,bn,ji,re,It,sn,Vi]}var Da=class extends j{constructor(e){super(),G(this,e,zg,Og,W,{ref:0,supportLink:112,playerControlsHeight:113,returnFocus:114},qg,[-1,-1,-1,-1,-1,-1])}},Vr=Da;function Hg(i){Pe(i,"svelte-d9t49t",".settings-icon-wrapper.svelte-d9t49t{position:relative;width:24px}")}function Ug(i){let e,t,n;return t=new Ar({props:{isMobile:i[3],currentQuality:i[4]}}),{c(){e=T("span"),q(t.$$.fragment),f(e,"class","settings-icon-wrapper svelte-d9t49t")},m(o,r){S(o,e,r),V(t,e,null),n=!0},p(o,r){let l={};r&8&&(l.isMobile=o[3]),r&16&&(l.currentQuality=o[4]),t.$set(l)},i(o){n||(d(t.$$.fragment,o),n=!0)},o(o){_(t.$$.fragment,o),n=!1},d(o){o&&k(e),R(t)}}}function Kg(i){let e,t,n;function o(l){i[9](l)}let r={className:i[1]?"opened":"",testId:"btn-settings",click:i[8],ariaLabel:i[2],ariaExpanded:i[1],$$slots:{default:[Ug]},$$scope:{ctx:i}};return i[0]!==void 0&&(r.ref=i[0]),e=new wt({props:r}),ge.push(()=>He(e,"ref",o)),{c(){q(e.$$.fragment)},m(l,a){V(e,l,a),n=!0},p(l,[a]){let s={};a&2&&(s.className=l[1]?"opened":""),a&4&&(s.ariaLabel=l[2]),a&2&&(s.ariaExpanded=l[1]),a&4120&&(s.$$scope={dirty:a,ctx:l}),!t&&a&1&&(t=!0,s.ref=l[0],ze(()=>t=!1)),e.$set(s)},i(l){n||(d(e.$$.fragment,l),n=!0)},o(l){_(e.$$.fragment,l),n=!1},d(l){R(e,l)}}}function Wg(i,e,t){let n,o,r,{ref:l=void 0}=e,a=rt(),s=a.state.currentQuality$;H(i,s,C=>t(4,r=C));let u=a.ui.settingsMenuVisible;H(i,u,C=>t(1,n=C));let c=a.actions.internal.toggleSettingsMenu,m=a.ui.isMobile;H(i,m,C=>t(3,o=C));let h;function w(C){let v=dl(C);c(v)}function g(C){l=C,t(0,l)}return i.$$set=C=>{"ref"in C&&t(0,l=C.ref)},i.$$.update=()=>{i.$$.dirty&2&&t(2,h=n?U("tooltip_settings_on"):U("tooltip_settings_off"))},[l,n,h,o,r,s,u,m,w,g]}var Na=class extends j{constructor(e){super(),G(this,e,Wg,Kg,W,{ref:0},Hg)}},Fl=Na;function jg(i){let e,t,n,o=i[2].default,r=Le(o,i,i[1],null),l=[{xmlns:"http://www.w3.org/2000/svg"},{width:"22"},{height:"16"},{fill:"none"},{"aria-hidden":"true"},{"data-testid":"subtitle-pained-icon"},{role:"img"},i[0]],a={};for(let s=0;s<l.length;s+=1)a=ue(a,l[s]);return{c(){e=D("svg"),r&&r.c(),t=D("path"),f(t,"fill","#fff"),f(t,"d","M3 0h14a3 3 0 0 1 3 3v10a3 3 0 0 1-3 3H3a3 3 0 0 1-3-3V3a3 3 0 0 1 3-3m1 9h2a1 1 0 0 0 0-2H4a1 1 0 0 0 0 2m5 0h7a1 1 0 1 0 0-2H9a1 1 0 0 0 0 2m-5 4h7a1 1 0 1 0 0-2H4a1 1 0 1 0 0 2m10 0h2a1 1 0 1 0 0-2h-2a1 1 0 1 0 0 2"),we(e,a)},m(s,u){S(s,e,u),r&&r.m(e,null),p(e,t),n=!0},p(s,[u]){r&&r.p&&(!n||u&2)&&Me(r,o,s,s[1],n?Ae(o,s[1],u,null):Ve(s[1]),null),we(e,a=Ne(l,[{xmlns:"http://www.w3.org/2000/svg"},{width:"22"},{height:"16"},{fill:"none"},{"aria-hidden":"true"},{"data-testid":"subtitle-pained-icon"},{role:"img"},u&1&&s[0]]))},i(s){n||(d(r,s),n=!0)},o(s){_(r,s),n=!1},d(s){s&&k(e),r&&r.d(s)}}}function Gg(i,e,t){let{$$slots:n={},$$scope:o}=e;return i.$$set=r=>{t(0,e=ue(ue({},e),ye(r))),"$$scope"in r&&t(1,o=r.$$scope)},e=ye(e),[e,o,n]}var Oa=class extends j{constructor(e){super(),G(this,e,Gg,jg,W,{})}},R1=Oa;function Qg(i){let e,t;return e=new Mr({}),{c(){q(e.$$.fragment)},m(n,o){V(e,n,o),t=!0},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){_(e.$$.fragment,n),t=!1},d(n){R(e,n)}}}function Yg(i){let e,t;return e=new R1({}),{c(){q(e.$$.fragment)},m(n,o){V(e,n,o),t=!0},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){_(e.$$.fragment,n),t=!1},d(n){R(e,n)}}}function Zg(i){let e,t,n,o,r=[Yg,Qg],l=[];function a(s,u){return s[0]?0:1}return e=a(i,-1),t=l[e]=r[e](i),{c(){t.c(),n=mt()},m(s,u){l[e].m(s,u),S(s,n,u),o=!0},p(s,u){let c=e;e=a(s,u),e!==c&&(ce(),_(l[c],1,1,()=>{l[c]=null}),de(),t=l[e],t||(t=l[e]=r[e](s),t.c()),d(t,1),t.m(n.parentNode,n))},i(s){o||(d(t),o=!0)},o(s){_(t),o=!1},d(s){s&&k(n),l[e].d(s)}}}function Xg(i){let e,t;return e=new wt({props:{testId:"btn-Subtitles",ariaLabel:i[2],click:i[1],ariaKeyShortCut:io.KeyC,$$slots:{default:[Zg]},$$scope:{ctx:i}}}),{c(){q(e.$$.fragment)},m(n,o){V(e,n,o),t=!0},p(n,[o]){let r={};o&4&&(r.ariaLabel=n[2]),o&2&&(r.click=n[1]),o&9&&(r.$$scope={dirty:o,ctx:n}),e.$set(r)},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){_(e.$$.fragment,n),t=!1},d(n){R(e,n)}}}function Jg(i,e,t){let{isSubtitlesEnabled:n=!1}=e,{click:o}=e,r;return i.$$set=l=>{"isSubtitlesEnabled"in l&&t(0,n=l.isSubtitlesEnabled),"click"in l&&t(1,o=l.click)},i.$$.update=()=>{i.$$.dirty&1&&t(2,r=n?U("tooltip_subtitles_on"):U("tooltip_subtitles_off"))},[n,o,r]}var Fa=class extends j{constructor(e){super(),G(this,e,Jg,Xg,W,{isSubtitlesEnabled:0,click:1})}},B1=Fa;function xg(i){Pe(i,"svelte-19o2urr",".time.svelte-19o2urr{display:flex;align-items:center;font-weight:500;font-variant-numeric:tabular-nums;padding:12px 6px}.time.mobile.svelte-19o2urr{padding:0 0 0 8px}.current.svelte-19o2urr{position:relative}.duration.svelte-19o2urr{opacity:0.7}.duration.svelte-19o2urr:before{content:' / ';white-space:pre}")}function q1(i){let e,t;return{c(){e=T("span"),t=De(i[3]),f(e,"class","duration svelte-19o2urr")},m(n,o){S(n,e,o),p(e,t)},p(n,o){o&8&&Qe(t,n[3])},d(n){n&&k(e)}}}function $g(i){let e,t,n,o,r=i[2]&&q1(i);return{c(){e=T("div"),t=T("span"),n=De(i[4]),o=B(),r&&r.c(),f(t,"class","current svelte-19o2urr"),f(e,"class","time svelte-19o2urr"),O(e,"mobile",i[1])},m(l,a){S(l,e,a),p(e,t),p(t,n),p(e,o),r&&r.m(e,null),i[7](e)},p(l,[a]){a&16&&Qe(n,l[4]),l[2]?r?r.p(l,a):(r=q1(l),r.c(),r.m(e,null)):r&&(r.d(1),r=null),a&2&&O(e,"mobile",l[1])},i:Ce,o:Ce,d(l){l&&k(e),r&&r.d(),i[7](null)}}}function eb(i,e,t){let{isMobile:n=!1}=e,{duration:o}=e,{position:r}=e,{showDuration:l=!0}=e,{ref:a}=e,s,u;function c(m){ge[m?"unshift":"push"](()=>{a=m,t(0,a)})}return i.$$set=m=>{"isMobile"in m&&t(1,n=m.isMobile),"duration"in m&&t(5,o=m.duration),"position"in m&&t(6,r=m.position),"showDuration"in m&&t(2,l=m.showDuration),"ref"in m&&t(0,a=m.ref)},i.$$.update=()=>{i.$$.dirty&32&&t(3,s=Bn(o)),i.$$.dirty&64&&t(4,u=Bn(r))},[a,n,l,s,u,o,r,c]}var za=class extends j{constructor(e){super(),G(this,e,eb,$g,W,{isMobile:1,duration:5,position:6,showDuration:2,ref:0},xg)}},Rr=za;import{noop as ko}from"@vkontakte/videoplayer-shared";function tb(i){Pe(i,"svelte-1n5yyua",".icon.svelte-1n5yyua.svelte-1n5yyua{display:block;width:24px;height:24px}.icon.svelte-1n5yyua .cross.svelte-1n5yyua{visibility:hidden}.icon[data-value='off'].svelte-1n5yyua .wave1.svelte-1n5yyua,.icon[data-value='off'].svelte-1n5yyua .wave2.svelte-1n5yyua{visibility:hidden}.icon[data-value='off'].svelte-1n5yyua .cross.svelte-1n5yyua{visibility:visible}.icon[data-value='mid'].svelte-1n5yyua .wave2.svelte-1n5yyua,.icon[data-value='min'].svelte-1n5yyua .wave2.svelte-1n5yyua{visibility:hidden}")}function ib(i){let e,t,n,o,r,l;return{c(){e=D("svg"),t=D("g"),n=D("path"),o=D("path"),r=D("path"),f(n,"class","wave2 svelte-1n5yyua"),f(n,"d","M12.98 18.823c-.031 1.207-.67 1.609-1.828.62-1.719-1.469-3.609-3.194-4.242-3.721-.632-.529-1.645-.62-3.073-.62-1.427 0-1.815-.621-1.815-1.241s-.014-1.83-.014-2.001c0-.055.005-.086.014-.13.02-.095-.058-.973 0-1.59.085-.906.388-1.241 1.815-1.241 1.428 0 2.44-.092 3.073-.62.633-.529 2.523-2.253 4.242-3.722 1.158-.989 1.797-.587 1.829.62.043 1.607 0 3.85 0 6.683 0 2.83.043 5.356 0 6.963zm2.901-8.704A.875.875 0 1 1 17.12 8.88c.176.177.41.47.64.872.384.671.616 1.425.616 2.247s-.232 1.576-.615 2.247a4.23 4.23 0 0 1-.641.872.875.875 0 1 1-1.238-1.238c.074-.073.214-.249.36-.503.241-.423.384-.887.384-1.378s-.143-.955-.385-1.378a2.597 2.597 0 0 0-.359-.503zm3-2A.875.875 0 1 1 20.12 6.88c.263.264.62.74.966 1.432.517 1.033.843 2.255.89 3.716-.047 1.403-.373 2.625-.89 3.658-.346.692-.703 1.168-.966 1.432a.875.875 0 1 1-1.238-1.238c.138-.137.383-.464.639-.976.407-.814.667-1.79.705-2.876-.038-1.144-.298-2.12-.705-2.934-.256-.512-.501-.839-.639-.976z"),f(o,"class","wave1 svelte-1n5yyua"),f(o,"d","M12.98 18.823c-.031 1.207-.67 1.609-1.828.62-1.719-1.469-3.609-3.194-4.242-3.721-.632-.529-1.645-.62-3.073-.62-1.427 0-1.815-.621-1.815-1.241s-.014-1.83-.014-2.001c0-.055.005-.086.014-.13.02-.095-.058-.973 0-1.59.085-.906.388-1.241 1.815-1.241 1.428 0 2.44-.092 3.073-.62.633-.529 2.523-2.253 4.242-3.722 1.158-.989 1.797-.587 1.829.62.043 1.607 0 3.85 0 6.683 0 2.83.043 5.356 0 6.963zm2.901-8.704A.875.875 0 1 1 17.12 8.88c.176.177.41.47.64.872.384.671.616 1.425.616 2.247s-.232 1.576-.615 2.247a4.23 4.23 0 0 1-.641.872.875.875 0 1 1-1.238-1.238c.074-.073.214-.249.36-.503.241-.423.384-.887.384-1.378s-.143-.955-.385-1.378a2.597 2.597 0 0 0-.359-.503z"),f(r,"class","cross svelte-1n5yyua"),f(r,"d","m20 10.763 2.381-2.382A.875.875 0 1 1 23.62 9.62L21.237 12l2.382 2.381a.875.875 0 1 1-1.238 1.238L20 13.237l-2.381 2.382a.875.875 0 1 1-1.238-1.238L18.763 12 16.38 9.619A.875.875 0 1 1 17.62 8.38zm-7.02 8.06c-.031 1.207-.67 1.609-1.828.62-1.719-1.469-3.609-3.194-4.242-3.721-.632-.529-1.645-.62-3.073-.62-1.427 0-1.815-.621-1.815-1.241s-.014-1.83-.014-2.001c0-.055.005-.086.014-.13.02-.095-.058-.973 0-1.59.085-.906.388-1.241 1.815-1.241 1.428 0 2.44-.092 3.073-.62.633-.529 2.523-2.253 4.242-3.722 1.158-.989 1.797-.587 1.829.62.043 1.607 0 3.85 0 6.683 0 2.83.043 5.356 0 6.963z"),f(t,"fill","#fff"),f(t,"fill-rule","evenodd"),f(e,"data-value",i[0]),f(e,"data-testid",l="volume-"+i[0]+"-icon"),f(e,"xmlns","http://www.w3.org/2000/svg"),f(e,"class","icon svelte-1n5yyua"),f(e,"aria-hidden","true")},m(a,s){S(a,e,s),p(e,t),p(t,n),p(t,o),p(t,r)},p(a,[s]){s&1&&f(e,"data-value",a[0]),s&1&&l!==(l="volume-"+a[0]+"-icon")&&f(e,"data-testid",l)},i:Ce,o:Ce,d(a){a&&k(e)}}}function nb(i,e,t){let{volume:n=1}=e,{muted:o=!1}=e,r=(a,s)=>s?"off":a>.5?"max":a>.2?"mid":a>0?"min":"off",l;return i.$$set=a=>{"volume"in a&&t(1,n=a.volume),"muted"in a&&t(2,o=a.muted)},i.$$.update=()=>{i.$$.dirty&6&&t(0,l=r(n,o))},[l,n,o]}var Ha=class extends j{constructor(e){super(),G(this,e,nb,ib,W,{volume:1,muted:2},tb)}},Qo=Ha;import{noop as $n}from"@vkontakte/videoplayer-shared";import{noop as cb}from"@vkontakte/videoplayer-shared";import{noop as rb}from"@vkontakte/videoplayer-shared";function ob(i){let e,t,n=i[4].default,o=Le(n,i,i[3],null);return{c(){e=T("div"),o&&o.c(),f(e,"class","overlay")},m(r,l){S(r,e,l),o&&o.m(e,null),i[5](e),t=!0},p(r,[l]){o&&o.p&&(!t||l&8)&&Me(o,n,r,r[3],t?Ae(n,r[3],l,null):Ve(r[3]),null)},i(r){t||(d(o,r),t=!0)},o(r){_(o,r),t=!1},d(r){r&&k(e),o&&o.d(r),i[5](null)}}}function lb(i,e,t){let n,{$$slots:o={},$$scope:r}=e,a=rt().ui.overlayContainer$;H(i,a,h=>t(2,n=h));let s,u=h=>{!h||!s||!h.contains(s)||h.removeChild(s)},c=h=>{!h||!s||h.contains(s)||h.appendChild(s)};Nt(()=>(c(n),()=>u(n)));function m(h){ge[h?"unshift":"push"](()=>{s=h,t(0,s)})}return i.$$set=h=>{"$$scope"in h&&t(3,r=h.$$scope)},i.$$.update=()=>{i.$$.dirty&4&&c(n)},[s,a,n,r,o,m]}var Ua=class extends j{constructor(e){super(),G(this,e,lb,ob,W,{})}},D1=Ua;function sb(i){Pe(i,"svelte-tny135",'.tooltip-wrapper.svelte-tny135{display:flex;flex-direction:column;min-width:0}.full-width.svelte-tny135{width:100%}.tooltip.svelte-tny135{position:absolute;opacity:0;visibility:hidden;transition:opacity 200ms, visibility 200ms;bottom:100%;left:0}.content.svelte-tny135{display:inline-block;padding:6px 10px;border-radius:3px;color:var(--white);background-color:rgba(41, 41, 41, .8)}.tooltip.active.svelte-tny135{opacity:1;visibility:visible}.tooltip-pointer.svelte-tny135{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}.bottom-placement-pointer.svelte-tny135{top:0;bottom:auto}')}function N1(i){let e,t;return e=new D1({props:{$$slots:{default:[ab]},$$scope:{ctx:i}}}),{c(){q(e.$$.fragment)},m(n,o){V(e,n,o),t=!0},p(n,o){let r={};o&2097395&&(r.$$scope={dirty:o,ctx:n}),e.$set(r)},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){_(e.$$.fragment,n),t=!1},d(n){R(e,n)}}}function ab(i){let e,t,n,o,r,l,a;return{c(){e=T("div"),t=T("div"),n=De(i[1]),o=B(),r=T("div"),f(t,"class","content svelte-tny135"),f(r,"class","tooltip-pointer svelte-tny135"),f(r,"style",l=`transform: translate(${i[5]}px, ${i[9]}px) rotate(${i[8]?0:"180deg"});`),O(r,"bottom-placement-pointer",!i[8]),f(e,"class","tooltip svelte-tny135"),f(e,"style",a=`transform: translate(${i[6]}px, ${i[7]}px);`),O(e,"active",i[0])},m(s,u){S(s,e,u),p(e,t),p(t,n),p(e,o),p(e,r),i[20](e)},p(s,u){u&2&&Qe(n,s[1]),u&32&&l!==(l=`transform: translate(${s[5]}px, ${s[9]}px) rotate(${s[8]?0:"180deg"});`)&&f(r,"style",l),u&192&&a!==(a=`transform: translate(${s[6]}px, ${s[7]}px);`)&&f(e,"style",a),u&1&&O(e,"active",s[0])},d(s){s&&k(e),i[20](null)}}}function ub(i){let e,t,n,o,r,l,a=i[18].default,s=Le(a,i,i[21],null),u=i[1]&&N1(i);return{c(){e=T("div"),s&&s.c(),t=B(),u&&u.c(),n=mt(),f(e,"class","tooltip-wrapper svelte-tny135"),O(e,"full-width",i[2])},m(c,m){S(c,e,m),s&&s.m(e,null),i[19](e),S(c,t,m),u&&u.m(c,m),S(c,n,m),o=!0,r||(l=[pe(e,"mouseenter",i[12]),pe(e,"mousemove",i[12]),pe(e,"mouseleave",i[13]),pe(e,"mousedown",i[13]),pe(e,"mouseup",i[12])],r=!0)},p(c,[m]){s&&s.p&&(!o||m&2097152)&&Me(s,a,c,c[21],o?Ae(a,c[21],m,null):Ve(c[21]),null),(!o||m&4)&&O(e,"full-width",c[2]),c[1]?u?(u.p(c,m),m&2&&d(u,1)):(u=N1(c),u.c(),d(u,1),u.m(n.parentNode,n)):u&&(ce(),_(u,1,1,()=>{u=null}),de())},i(c){o||(d(s,c),d(u),o=!0)},o(c){_(s,c),_(u),o=!1},d(c){c&&(k(e),k(t),k(n)),s&&s.d(c),i[19](null),u&&u.d(c),r=!1,ot(l)}}}var zl=5;function fb(i,e,t){let n,o,{$$slots:r={},$$scope:l}=e,{content:a=""}=e,{active:s=!1}=e,{translateX:u=0}=e,{translateY:c=0}=e,{isFullWidthWrapper:m=!1}=e,{placement:h="top"}=e,{onVisibilityChange:w=rb}=e,g=h==="top",C,v,E,y=0,b=g?zl:-zl,P=0,A=0,M=Wt(),N=rt(),te=N.ui.playerSize;H(i,te,Q=>t(24,o=Q));let _e=N.ui.overlayContainer$;H(i,_e,Q=>t(23,n=Q));let X=N.getLogger().createComponentLog("Tooltip component"),$=()=>{if(!n||!v||!C)return;let Q=n.getBoundingClientRect(),J=C.getBoundingClientRect(),oe=J.width,Be=v.clientWidth,Ye=o.width,Ie=(oe-Be)/2,Re=J.left+u-Q.left,qe=Re+Ie,xe=J.top+c-Q.top,ae=Be/2-zl,he=qe<8,ft=qe+Be>Ye-8;he&&(qe=8,ae=Re+J.width/2-2.5*zl),ft&&(qe=Ye-8-Be,ae=J.left-Q.left+J.width/2-qe-zl),t(6,P=qe),t(7,A=xe),t(5,y=ae)},se=()=>{try{if(!n||!C)return;$(),t(0,s=!0)}catch(Q){X({message:String(Q)})}},L=()=>{t(0,s=!1)},K=()=>{v&&(E||(E=window.setTimeout(se,M.controls.hideTimeoutTooltips)),s&&se())},x=()=>{L(),window.clearTimeout(E),E=void 0};Nt($),Zn(()=>window.clearTimeout(E));function Z(Q){ge[Q?"unshift":"push"](()=>{C=Q,t(3,C)})}function F(Q){ge[Q?"unshift":"push"](()=>{v=Q,t(4,v)})}return i.$$set=Q=>{"content"in Q&&t(1,a=Q.content),"active"in Q&&t(0,s=Q.active),"translateX"in Q&&t(14,u=Q.translateX),"translateY"in Q&&t(15,c=Q.translateY),"isFullWidthWrapper"in Q&&t(2,m=Q.isFullWidthWrapper),"placement"in Q&&t(16,h=Q.placement),"onVisibilityChange"in Q&&t(17,w=Q.onVisibilityChange),"$$scope"in Q&&t(21,l=Q.$$scope)},i.$$.update=()=>{i.$$.dirty&131073&&w(s)},[s,a,m,C,v,y,P,A,g,b,te,_e,K,x,u,c,h,w,r,Z,F,l]}var Ka=class extends j{constructor(e){super(),G(this,e,fb,ub,W,{content:1,active:0,translateX:14,translateY:15,isFullWidthWrapper:2,placement:16,onVisibilityChange:17},sb)}},Br=Ka;function db(i){Pe(i,"svelte-p9r045",".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 mb(i){let e,t=i[19].default,n=Le(t,i,i[24],null);return{c(){n&&n.c()},m(o,r){n&&n.m(o,r),e=!0},p(o,r){n&&n.p&&(!e||r&16777216)&&Me(n,t,o,o[24],e?Ae(t,o[24],r,null):Ve(o[24]),null)},i(o){e||(d(n,o),e=!0)},o(o){_(n,o),e=!1},d(o){n&&n.d(o)}}}function pb(i){let e,t;return e=new Br({props:{content:i[11],translateX:i[9],translateY:i[10],isFullWidthWrapper:i[4],active:i[5],placement:i[6],onVisibilityChange:i[8],$$slots:{default:[_b]},$$scope:{ctx:i}}}),{c(){q(e.$$.fragment)},m(n,o){V(e,n,o),t=!0},p(n,o){let r={};o&2048&&(r.content=n[11]),o&512&&(r.translateX=n[9]),o&1024&&(r.translateY=n[10]),o&16&&(r.isFullWidthWrapper=n[4]),o&32&&(r.active=n[5]),o&64&&(r.placement=n[6]),o&256&&(r.onVisibilityChange=n[8]),o&16777216&&(r.$$scope={dirty:o,ctx:n}),e.$set(r)},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){_(e.$$.fragment,n),t=!1},d(n){R(e,n)}}}function _b(i){let e,t=i[19].default,n=Le(t,i,i[24],null);return{c(){n&&n.c()},m(o,r){n&&n.m(o,r),e=!0},p(o,r){n&&n.p&&(!e||r&16777216)&&Me(n,t,o,o[24],e?Ae(t,o[24],r,null):Ve(o[24]),null)},i(o){e||(d(n,o),e=!0)},o(o){_(n,o),e=!1},d(o){n&&n.d(o)}}}function hb(i){let e,t,n,o,r,l,a,s,u,c=[pb,mb],m=[];function h(w,g){return w[3]&&w[11]&&!w[12]?0:1}return t=h(i,-1),n=m[t]=c[t](i),{c(){e=T("div"),n.c(),f(e,"class",o="btn-container "+i[2]+" svelte-p9r045"),f(e,"aria-hidden",r=i[7]||null),Jn(()=>i[23].call(e))},m(w,g){S(w,e,g),m[t].m(e,null),i[22](e),l=tl(e,i[23].bind(e)),a=!0,s||(u=[pe(e,"pointerdown",at(i[20])),pe(e,"click",at(i[21]))],s=!0)},p(w,[g]){let C=t;t=h(w,g),t===C?m[t].p(w,g):(ce(),_(m[C],1,1,()=>{m[C]=null}),de(),n=m[t],n?n.p(w,g):(n=m[t]=c[t](w),n.c()),d(n,1),n.m(e,null)),(!a||g&4&&o!==(o="btn-container "+w[2]+" svelte-p9r045"))&&f(e,"class",o),(!a||g&128&&r!==(r=w[7]||null))&&f(e,"aria-hidden",r)},i(w){a||(d(n),a=!0)},o(w){_(n),a=!1},d(w){w&&k(e),m[t].d(),i[22](null),l(),s=!1,ot(u)}}}function gb(i,e,t){let n,o,{$$slots:r={},$$scope:l}=e,{className:a=""}=e,{disabled:s=!1}=e,{hasTooltip:u=!0}=e,{ref:c=void 0}=e,{width:m=void 0}=e,{isFullWidthTooltip:h=!0}=e,{tooltipContent:w=""}=e,{tooltipActive:g=!1}=e,{tooltipPlacement:C="top"}=e,{disabledTooltipContent:v=U("tooltip_button_disabled")}=e,{isAriaHidden:E=!1}=e,{onTooltipVisibilityChange:y=cb}=e,{initialTranslateXPx:b=0}=e,{initialTranslateYPx:P=-18}=e,A=rt(),M=A.ui.isMobile;H(i,M,L=>t(12,o=L));let N=A.state.graphIsOpened$;H(i,N,L=>t(18,n=L));let te;function _e(L){Rn.call(this,i,L)}function X(L){Rn.call(this,i,L)}function $(L){ge[L?"unshift":"push"](()=>{c=L,t(0,c)})}function se(){m=this.clientWidth,t(1,m)}return i.$$set=L=>{"className"in L&&t(2,a=L.className),"disabled"in L&&t(15,s=L.disabled),"hasTooltip"in L&&t(3,u=L.hasTooltip),"ref"in L&&t(0,c=L.ref),"width"in L&&t(1,m=L.width),"isFullWidthTooltip"in L&&t(4,h=L.isFullWidthTooltip),"tooltipContent"in L&&t(16,w=L.tooltipContent),"tooltipActive"in L&&t(5,g=L.tooltipActive),"tooltipPlacement"in L&&t(6,C=L.tooltipPlacement),"disabledTooltipContent"in L&&t(17,v=L.disabledTooltipContent),"isAriaHidden"in L&&t(7,E=L.isAriaHidden),"onTooltipVisibilityChange"in L&&t(8,y=L.onTooltipVisibilityChange),"initialTranslateXPx"in L&&t(9,b=L.initialTranslateXPx),"initialTranslateYPx"in L&&t(10,P=L.initialTranslateYPx),"$$scope"in L&&t(24,l=L.$$scope)},i.$$.update=()=>{i.$$.dirty&491520&&(s?t(11,te=n?U("tooltip_disabled_when_graph_on"):v):t(11,te=w))},[c,m,a,u,h,g,C,E,y,b,P,te,o,M,N,s,w,v,n,r,_e,X,$,se,l]}var Wa=class extends j{constructor(e){super(),G(this,e,gb,hb,W,{className:2,disabled:15,hasTooltip:3,ref:0,width:1,isFullWidthTooltip:4,tooltipContent:16,tooltipActive:5,tooltipPlacement:6,disabledTooltipContent:17,isAriaHidden:7,onTooltipVisibilityChange:8,initialTranslateXPx:9,initialTranslateYPx:10},db)}},Ft=Wa;function bb(i){let e,t,n,o,r,l;return{c(){e=D("svg"),t=D("rect"),o=D("path"),f(t,"width","20"),f(t,"height","20"),f(t,"rx","10"),f(t,"fill","white"),f(t,"fill-opacity",n=i[0]?1:.24),f(o,"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"),f(o,"fill",r=i[0]?"var(--interactive-episode-complete)":"white"),f(e,"width","20"),f(e,"height","20"),f(e,"viewBox","0 0 20 20"),f(e,"fill","none"),f(e,"xmlns","http://www.w3.org/2000/svg"),f(e,"aria-hidden","true"),f(e,"data-testid",l=(i[0],"interactive-episode-completed-icon"))},m(a,s){S(a,e,s),p(e,t),p(e,o)},p(a,[s]){s&1&&n!==(n=a[0]?1:.24)&&f(t,"fill-opacity",n),s&1&&r!==(r=a[0]?"var(--interactive-episode-complete)":"white")&&f(o,"fill",r),s&1&&l!==(l=(a[0],"interactive-episode-completed-icon"))&&f(e,"data-testid",l)},i:Ce,o:Ce,d(a){a&&k(e)}}}function vb(i,e,t){let{completed:n}=e;return i.$$set=o=>{"completed"in o&&t(0,n=o.completed)},[n]}var ja=class extends j{constructor(e){super(),G(this,e,vb,bb,W,{completed:0})}},qr=ja;function yb(i){Pe(i,"svelte-bklhpe",".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 wb(i){let e,t,n,o,r;return t=new qr({props:{completed:!!i[0].completed}}),{c(){e=T("div"),q(t.$$.fragment),f(e,"class","interactive-episode-icon svelte-bklhpe"),f(e,"style",n=`left: ${i[0].from+i[0].width/2}%`),Jn(()=>i[3].call(e)),O(e,"disabled",i[1])},m(l,a){S(l,e,a),V(t,e,null),o=tl(e,i[3].bind(e)),r=!0},p(l,a){let s={};a&1&&(s.completed=!!l[0].completed),t.$set(s),(!r||a&1&&n!==(n=`left: ${l[0].from+l[0].width/2}%`))&&f(e,"style",n),(!r||a&2)&&O(e,"disabled",l[1])},i(l){r||(d(t.$$.fragment,l),r=!0)},o(l){_(t.$$.fragment,l),r=!1},d(l){l&&k(e),R(t),o()}}}function kb(i){let e,t;return e=new Ft({props:{tooltipContent:U(i[0].completed?"tooltip_episode_finished":"tooltip_episode_unfinished"),initialTranslateXPx:-10,initialTranslateYPx:-10,disabled:i[1],width:i[2]||0,isAriaHidden:!0,isFullWidthTooltip:!1,$$slots:{default:[wb]},$$scope:{ctx:i}}}),{c(){q(e.$$.fragment)},m(n,o){V(e,n,o),t=!0},p(n,[o]){let r={};o&1&&(r.tooltipContent=U(n[0].completed?"tooltip_episode_finished":"tooltip_episode_unfinished")),o&2&&(r.disabled=n[1]),o&4&&(r.width=n[2]||0),o&23&&(r.$$scope={dirty:o,ctx:n}),e.$set(r)},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){_(e.$$.fragment,n),t=!1},d(n){R(e,n)}}}function Cb(i,e,t){let{videoEpisode:n}=e,{disabled:o}=e,r;function l(){r=this.clientWidth,t(2,r)}return i.$$set=a=>{"videoEpisode"in a&&t(0,n=a.videoEpisode),"disabled"in a&&t(1,o=a.disabled)},[n,o,r,l]}var Ga=class extends j{constructor(e){super(),G(this,e,Cb,kb,W,{videoEpisode:0,disabled:1},yb)}},O1=Ga;function Sb(i){Pe(i,"svelte-1rzxunm",".video-episodes-wrap.svelte-1rzxunm{position:absolute;width:100%;height:100%}.video-episode.svelte-1rzxunm{position:absolute;height:calc(3 * var(--slider-height));box-sizing:border-box;margin-top:-5px;padding:var(--slider-height) var(--slider-video-episode-gap);transition:transform 0.2s}.video-episode.svelte-1rzxunm:not(.disabled):where(:hover, :active){transform:scaleY(1.5)}.video-episode-inner.svelte-1rzxunm,.video-episode-loaded.svelte-1rzxunm,.video-episode-filled.svelte-1rzxunm{position:absolute;height:var(--slider-height);border-radius:var(--slider-radius)}.video-episode-inner.svelte-1rzxunm{position:absolute;overflow:hidden;width:calc(100% - 2 * var(--slider-video-episode-gap));background:var(--slider-bg)}.video-episode-loaded.svelte-1rzxunm{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-1rzxunm{position:absolute;left:-100%;width:100%;height:100%;border-radius:var(--slider-radius);background-color:var(--slider-filled-bg)}")}function F1(i,e,t){let n=i.slice();return n[3]=e[t],n}function z1(i){let e,t,n,o,r,l,a,s,u;return{c(){e=T("div"),t=T("div"),n=T("div"),r=B(),l=T("div"),s=B(),f(n,"class","video-episode-loaded svelte-1rzxunm"),f(n,"style",o=`transform: translateX(${i[3].loadedWidth/i[3].width*100}%)`),f(l,"class","video-episode-filled svelte-1rzxunm"),f(l,"style",a=`transform: translateX(${i[3].filledWidth/i[3].width*100}%)`),O(l,"mobile",i[1]),f(t,"class","video-episode-inner svelte-1rzxunm"),f(e,"class","video-episode svelte-1rzxunm"),f(e,"style",u=`left: ${i[3].from}%; width: ${i[3].width}%`),O(e,"disabled",i[2]),O(e,"mobile",i[1])},m(c,m){S(c,e,m),p(e,t),p(t,n),p(t,r),p(t,l),p(e,s)},p(c,m){m&1&&o!==(o=`transform: translateX(${c[3].loadedWidth/c[3].width*100}%)`)&&f(n,"style",o),m&1&&a!==(a=`transform: translateX(${c[3].filledWidth/c[3].width*100}%)`)&&f(l,"style",a),m&2&&O(l,"mobile",c[1]),m&1&&u!==(u=`left: ${c[3].from}%; width: ${c[3].width}%`)&&f(e,"style",u),m&4&&O(e,"disabled",c[2]),m&2&&O(e,"mobile",c[1])},d(c){c&&k(e)}}}function Tb(i){let e,t=Vt(i[0]),n=[];for(let o=0;o<t.length;o+=1)n[o]=z1(F1(i,t,o));return{c(){e=T("div");for(let o=0;o<n.length;o+=1)n[o].c();f(e,"class","video-episodes-wrap svelte-1rzxunm")},m(o,r){S(o,e,r);for(let l=0;l<n.length;l+=1)n[l]&&n[l].m(e,null)},p(o,[r]){if(r&7){t=Vt(o[0]);let l;for(l=0;l<t.length;l+=1){let a=F1(o,t,l);n[l]?n[l].p(a,r):(n[l]=z1(a),n[l].c(),n[l].m(e,null))}for(;l<n.length;l+=1)n[l].d(1);n.length=t.length}},i:Ce,o:Ce,d(o){o&&k(e),qi(n,o)}}}function Pb(i,e,t){let{videoEpisodes:n=[]}=e,{isMobile:o}=e,{disabled:r}=e;return i.$$set=l=>{"videoEpisodes"in l&&t(0,n=l.videoEpisodes),"isMobile"in l&&t(1,o=l.isMobile),"disabled"in l&&t(2,r=l.disabled)},[n,o,r]}var Qa=class extends j{constructor(e){super(),G(this,e,Pb,Tb,W,{videoEpisodes:0,isMobile:1,disabled:2},Sb)}},H1=Qa;function Ib(i){Pe(i,"svelte-v8ydei",".interactive-icons.svelte-v8ydei.svelte-v8ydei{position:absolute;width:calc(100% - 20px);top:-28px}.interactive-icons.mobile.svelte-v8ydei.svelte-v8ydei{top:-10px}.slider.svelte-v8ydei.svelte-v8ydei{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-v8ydei.svelte-v8ydei{cursor:default}.slider.svelte-v8ydei.svelte-v8ydei:before{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-v8ydei.svelte-v8ydei{position:absolute;width:100%;height:100%;border-radius:var(--slider-radius);overflow:hidden;background:var(--slider-bg)}.loaded.svelte-v8ydei.svelte-v8ydei{position:absolute;left:-100%;width:100%;height:100%;border-radius:var(--slider-radius);background:var(--slider-loaded-bg);transition:transform 0.2s}.filled.svelte-v8ydei.svelte-v8ydei{position:absolute;left:-100%;width:100%;height:100%;border-radius:var(--slider-radius);background-color:var(--slider-filled-bg)}.slider.square.svelte-v8ydei.svelte-v8ydei,.slider.square.svelte-v8ydei>.bars.svelte-v8ydei,.slider.square.svelte-v8ydei .loaded.svelte-v8ydei,.slider.square.svelte-v8ydei .filled.svelte-v8ydei{border-radius:unset}.filled.active-live.svelte-v8ydei.svelte-v8ydei{background-color:var(--slider-filled-active-live-bg)}.filled.ads.svelte-v8ydei.svelte-v8ydei{background-color:var(--slider-filled-ads)}.handleWrap.svelte-v8ydei.svelte-v8ydei{position:absolute;left:-100%;width:100%}.handle.svelte-v8ydei.svelte-v8ydei{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-filled-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-v8ydei.svelte-v8ydei{background-color:var(--slider-filled-active-live-bg)}.slider.svelte-v8ydei:hover .handle.svelte-v8ydei,.slider-dragging.svelte-v8ydei .handle.svelte-v8ydei{visibility:visible;opacity:1;transform:scale(1)}.slider-dragging.svelte-v8ydei .handle.svelte-v8ydei{transform:scale(1.3)}.slider-vertical.svelte-v8ydei.svelte-v8ydei{position:absolute;left:-8px;top:-18px;transform-origin:0 0;transform:rotate(-90deg)}.slider.disabled.svelte-v8ydei.svelte-v8ydei{cursor:default;opacity:0.4}")}function U1(i,e,t){let n=i.slice();return n[50]=e[t],n}function K1(i){let e,t,n=Vt(i[21]),o=[];for(let l=0;l<n.length;l+=1)o[l]=j1(U1(i,n,l));let r=l=>_(o[l],1,1,()=>{o[l]=null});return{c(){e=T("div");for(let l=0;l<o.length;l+=1)o[l].c();f(e,"class","interactive-icons svelte-v8ydei"),O(e,"mobile",i[6]),O(e,"hidden",i[6]&&!i[20])},m(l,a){S(l,e,a);for(let s=0;s<o.length;s+=1)o[s]&&o[s].m(e,null);t=!0},p(l,a){if(a[0]&2098176){n=Vt(l[21]);let s;for(s=0;s<n.length;s+=1){let u=U1(l,n,s);o[s]?(o[s].p(u,a),d(o[s],1)):(o[s]=j1(u),o[s].c(),d(o[s],1),o[s].m(e,null))}for(ce(),s=n.length;s<o.length;s+=1)r(s);de()}(!t||a[0]&64)&&O(e,"mobile",l[6]),(!t||a[0]&1048640)&&O(e,"hidden",l[6]&&!l[20])},i(l){if(!t){for(let a=0;a<n.length;a+=1)d(o[a]);t=!0}},o(l){o=o.filter(Boolean);for(let a=0;a<o.length;a+=1)_(o[a]);t=!1},d(l){l&&k(e),qi(o,l)}}}function W1(i){let e,t;return e=new O1({props:{videoEpisode:i[50],disabled:i[10]}}),{c(){q(e.$$.fragment)},m(n,o){V(e,n,o),t=!0},p(n,o){let r={};o[0]&2097152&&(r.videoEpisode=n[50]),o[0]&1024&&(r.disabled=n[10]),e.$set(r)},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){_(e.$$.fragment,n),t=!1},d(n){R(e,n)}}}function j1(i){let e,t,n=i[50].interactive&&W1(i);return{c(){n&&n.c(),e=mt()},m(o,r){n&&n.m(o,r),S(o,e,r),t=!0},p(o,r){o[50].interactive?n?(n.p(o,r),r[0]&2097152&&d(n,1)):(n=W1(o),n.c(),d(n,1),n.m(e.parentNode,e)):n&&(ce(),_(n,1,1,()=>{n=null}),de())},i(o){t||(d(n),t=!0)},o(o){_(n),t=!1},d(o){o&&k(e),n&&n.d(o)}}}function Eb(i){let e,t,n,o,r,l;return{c(){e=T("div"),t=T("div"),o=B(),r=T("div"),f(t,"class","loaded svelte-v8ydei"),f(t,"style",n=`transform: translateX(${i[12]*100}%);`),f(r,"class","filled svelte-v8ydei"),f(r,"style",l=`transform: translateX(${i[13]*100}%);`),O(r,"active-live",i[5]),O(r,"ads",i[7]),f(e,"class","bars svelte-v8ydei")},m(a,s){S(a,e,s),p(e,t),p(e,o),p(e,r)},p(a,s){s[0]&4096&&n!==(n=`transform: translateX(${a[12]*100}%);`)&&f(t,"style",n),s[0]&8192&&l!==(l=`transform: translateX(${a[13]*100}%);`)&&f(r,"style",l),s[0]&32&&O(r,"active-live",a[5]),s[0]&128&&O(r,"ads",a[7])},i:Ce,o:Ce,d(a){a&&k(e)}}}function Lb(i){let e,t;return e=new H1({props:{videoEpisodes:i[21],disabled:i[10],isMobile:i[6]}}),{c(){q(e.$$.fragment)},m(n,o){V(e,n,o),t=!0},p(n,o){let r={};o[0]&2097152&&(r.videoEpisodes=n[21]),o[0]&1024&&(r.disabled=n[10]),o[0]&64&&(r.isMobile=n[6]),e.$set(r)},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){_(e.$$.fragment,n),t=!1},d(n){R(e,n)}}}function Ab(i){let e,t,n,o,r,l,a,s,u,c,m,h,w,g=i[9]&&K1(i),C=[Lb,Eb],v=[];function E(y,b){return y[21].length?0:1}return n=E(i,[-1,-1]),o=v[n]=C[n](i),{c(){var y;g&&g.c(),e=B(),t=T("div"),o.c(),r=B(),l=T("div"),a=T("div"),f(a,"class","handle svelte-v8ydei"),O(a,"active-live",i[5]),f(l,"class","handleWrap svelte-v8ydei"),f(l,"style",s=`transform: translateX(${i[14]*100}%);`),O(l,"hidden",i[11]),f(t,"class",u="slider "+i[1]+" svelte-v8ydei"),f(t,"aria-label",i[15]),f(t,"aria-valuemin",i[16]),f(t,"aria-valuemax",i[17]),f(t,"aria-valuenow",i[18]),f(t,"aria-valuetext",i[19]),f(t,"role","slider"),f(t,"tabindex","0"),f(t,"data-testid",c=(y=i[2])!=null?y:null),O(t,"disabled",i[10]),O(t,"slider-dragging",i[20]),O(t,"hidden",i[3]),O(t,"slider-vertical",i[4]),O(t,"no-handle",i[11]),O(t,"square",i[8])},m(y,b){g&&g.m(y,b),S(y,e,b),S(y,t,b),v[n].m(t,null),p(t,r),p(t,l),p(l,a),i[44](t),m=!0,h||(w=[pe(t,"pointerdown",Xt(i[22])),pe(t,"pointermove",Xt(i[23])),pe(t,"pointerup",Xt(i[24])),pe(t,"pointerenter",Xt(i[25])),pe(t,"pointerleave",Xt(i[26])),pe(t,"click",at(i[28])),pe(t,"wheel",i[27])],h=!0)},p(y,b){var A;y[9]?g?(g.p(y,b),b[0]&512&&d(g,1)):(g=K1(y),g.c(),d(g,1),g.m(e.parentNode,e)):g&&(ce(),_(g,1,1,()=>{g=null}),de());let P=n;n=E(y,b),n===P?v[n].p(y,b):(ce(),_(v[P],1,1,()=>{v[P]=null}),de(),o=v[n],o?o.p(y,b):(o=v[n]=C[n](y),o.c()),d(o,1),o.m(t,r)),(!m||b[0]&32)&&O(a,"active-live",y[5]),(!m||b[0]&16384&&s!==(s=`transform: translateX(${y[14]*100}%);`))&&f(l,"style",s),(!m||b[0]&2048)&&O(l,"hidden",y[11]),(!m||b[0]&2&&u!==(u="slider "+y[1]+" svelte-v8ydei"))&&f(t,"class",u),(!m||b[0]&32768)&&f(t,"aria-label",y[15]),(!m||b[0]&65536)&&f(t,"aria-valuemin",y[16]),(!m||b[0]&131072)&&f(t,"aria-valuemax",y[17]),(!m||b[0]&262144)&&f(t,"aria-valuenow",y[18]),(!m||b[0]&524288)&&f(t,"aria-valuetext",y[19]),(!m||b[0]&4&&c!==(c=(A=y[2])!=null?A:null))&&f(t,"data-testid",c),(!m||b[0]&1026)&&O(t,"disabled",y[10]),(!m||b[0]&1048578)&&O(t,"slider-dragging",y[20]),(!m||b[0]&10)&&O(t,"hidden",y[3]),(!m||b[0]&18)&&O(t,"slider-vertical",y[4]),(!m||b[0]&2050)&&O(t,"no-handle",y[11]),(!m||b[0]&258)&&O(t,"square",y[8])},i(y){m||(d(g),d(o),m=!0)},o(y){_(g),_(o),m=!1},d(y){y&&(k(e),k(t)),g&&g.d(y),v[n].d(),i[44](null),h=!1,ot(w)}}}function Mb(i,e,t){let n,o,{ref:r=void 0}=e,{className:l=""}=e,{testId:a=void 0}=e,{isHidden:s=!1}=e,{isVertical:u=!1}=e,{isActiveLive:c=!1}=e,{isMobile:m=!1}=e,{isAds:h=!1}=e,{squareBorders:w=!1}=e,{videoEpisodes:g=[]}=e,{withWheelHandler:C=!1}=e,{isInteractive:v=!1}=e,{disabled:E=!1}=e,{hideHandel:y=!1}=e,b,{onPointerDown:P=$n}=e,{onHandleMove:A=$n}=e,{onPointerUp:M=$n}=e,{onPointerEnter:N=$n}=e,{onPointerMove:te=$n}=e,{onPointerLeave:_e=$n}=e,{onWheelUp:X=$n}=e,{onWheelDown:$=$n}=e,{onWheelLeft:se=$n}=e,{onWheelRight:L=$n}=e,{onDisabledClick:K=$n}=e,{loadedProgress:x=0}=e,{filledProgress:Z=0}=e,{handleProgress:F=0}=e,{ariaLabel:Q=""}=e,{ariaValueMin:J=void 0}=e,{ariaValueMax:oe=void 0}=e,{ariaValueNow:Be=void 0}=e,{ariaValueText:Ye=""}=e,Ie=Wt(),Re=!1,qe;function xe(fe){if(r&&(b=r.getBoundingClientRect()),E||Re||!r)return;t(20,Re=!0);let Te=Ze(fe.clientX,fe.clientY);P(Te),r.setPointerCapture(fe.pointerId)}function ae(fe){if(E)return;let Te=Ze(fe.clientX,fe.clientY),We=Ge(fe.clientX);te(Te,We,b.width),Re&&A(Te)}function he(fe){if(E||!Re)return;t(20,Re=!1);let Te=Ze(fe.clientX,fe.clientY);M(Te)}function ft(fe){if(r&&(b=r.getBoundingClientRect()),E)return;let Te=Ze(fe.clientX,fe.clientY),We=Ge(fe.clientX);N(Te,We,b.width)}function ke(){E||_e()}function Ke(fe){E||C&&(fe.preventDefault(),fe.deltaY<0?X():fe.deltaY>0?$():fe.deltaX>0?L():se())}function _t(fe){E&&K(Ze(fe.clientX,fe.clientY))}function Ze(fe,Te){return u?Math.max(0,Math.min(1,(b.height-(Te-b.top))/b.height)):Math.min(Math.max(fe-b.x,0),b.width)/b.width}function Ge(fe){return Math.min(Math.max(fe-b.x,0),b.width)}function Xe(fe,Te){let We=Ie.features.episodesClustering&&!v?Ie.episodeMinWidthPc:0,le=[],Se=0,ht=0,Ee=0;for(let tt=1;tt<g.length;tt++)ht=g[tt].time/qe*100,ht-Se>We&&(le.push({from:Se,width:Math.max(0,ht-Se),loadedWidth:Math.max(0,Math.min(ht,fe)-Se),filledWidth:Math.max(0,Math.min(ht,Te)-Se),interactive:g[tt-1].interactive,completed:g[tt-1].completed}),Se=g[tt].time/qe*100,Ee++);let ct={from:Se,width:Math.max(0,100-Se),loadedWidth:Math.max(0,Math.min(fe,100)-Se),filledWidth:Math.max(0,Math.min(Te,100)-Se),interactive:g[Ee].interactive,completed:g[Ee].completed};100-Se<We?(Ee-=1,le[Ee].width+=100-Se,le[Ee].loadedWidth+=Math.max(0,Math.min(fe,100)-Se),le[Ee].filledWidth+=Math.max(0,Math.min(Te,100)-Se)):le[Ee]=ct;let me=g[0].time;if(me!==0){let tt=me/qe*100;le.unshift({from:0,width:tt,loadedWidth:Math.min(tt,fe),filledWidth:Math.min(tt,Te)})}return le}function et(fe){ge[fe?"unshift":"push"](()=>{r=fe,t(0,r)})}return i.$$set=fe=>{"ref"in fe&&t(0,r=fe.ref),"className"in fe&&t(1,l=fe.className),"testId"in fe&&t(2,a=fe.testId),"isHidden"in fe&&t(3,s=fe.isHidden),"isVertical"in fe&&t(4,u=fe.isVertical),"isActiveLive"in fe&&t(5,c=fe.isActiveLive),"isMobile"in fe&&t(6,m=fe.isMobile),"isAds"in fe&&t(7,h=fe.isAds),"squareBorders"in fe&&t(8,w=fe.squareBorders),"videoEpisodes"in fe&&t(29,g=fe.videoEpisodes),"withWheelHandler"in fe&&t(30,C=fe.withWheelHandler),"isInteractive"in fe&&t(9,v=fe.isInteractive),"disabled"in fe&&t(10,E=fe.disabled),"hideHandel"in fe&&t(11,y=fe.hideHandel),"onPointerDown"in fe&&t(31,P=fe.onPointerDown),"onHandleMove"in fe&&t(32,A=fe.onHandleMove),"onPointerUp"in fe&&t(33,M=fe.onPointerUp),"onPointerEnter"in fe&&t(34,N=fe.onPointerEnter),"onPointerMove"in fe&&t(35,te=fe.onPointerMove),"onPointerLeave"in fe&&t(36,_e=fe.onPointerLeave),"onWheelUp"in fe&&t(37,X=fe.onWheelUp),"onWheelDown"in fe&&t(38,$=fe.onWheelDown),"onWheelLeft"in fe&&t(39,se=fe.onWheelLeft),"onWheelRight"in fe&&t(40,L=fe.onWheelRight),"onDisabledClick"in fe&&t(41,K=fe.onDisabledClick),"loadedProgress"in fe&&t(12,x=fe.loadedProgress),"filledProgress"in fe&&t(13,Z=fe.filledProgress),"handleProgress"in fe&&t(14,F=fe.handleProgress),"ariaLabel"in fe&&t(15,Q=fe.ariaLabel),"ariaValueMin"in fe&&t(16,J=fe.ariaValueMin),"ariaValueMax"in fe&&t(17,oe=fe.ariaValueMax),"ariaValueNow"in fe&&t(18,Be=fe.ariaValueNow),"ariaValueText"in fe&&t(19,Ye=fe.ariaValueText)},i.$$.update=()=>{var fe;i.$$.dirty[0]&131072&&t(42,qe=oe!=null?oe:0),i.$$.dirty[0]&536870912|i.$$.dirty[1]&2048&&t(43,n=((fe=g[g.length-1])==null?void 0:fe.time)<qe),i.$$.dirty[0]&536883200|i.$$.dirty[1]&6144&&t(21,o=g.length&&n&&qe?Xe(x*100,Z*100):[])},[r,l,a,s,u,c,m,h,w,v,E,y,x,Z,F,Q,J,oe,Be,Ye,Re,o,xe,ae,he,ft,ke,Ke,_t,g,C,P,A,M,N,te,_e,X,$,se,L,K,qe,n,et]}var Ya=class extends j{constructor(e){super(),G(this,e,Mb,Ab,W,{ref:0,className:1,testId:2,isHidden:3,isVertical:4,isActiveLive:5,isMobile:6,isAds:7,squareBorders:8,videoEpisodes:29,withWheelHandler:30,isInteractive:9,disabled:10,hideHandel:11,onPointerDown:31,onHandleMove:32,onPointerUp:33,onPointerEnter:34,onPointerMove:35,onPointerLeave:36,onWheelUp:37,onWheelDown:38,onWheelLeft:39,onWheelRight:40,onDisabledClick:41,loadedProgress:12,filledProgress:13,handleProgress:14,ariaLabel:15,ariaValueMin:16,ariaValueMax:17,ariaValueNow:18,ariaValueText:19},Ib,[-1,-1])}},vl=Ya;var qn=(i,e)=>Do[i]>=Do[e],G1=(i,e)=>Do[i]<Do[e],Dr=(i,e)=>Do[i]<=Do[e],Q1=i=>i>699?"xl":i>599?"l":i>509?"m":i>320?"s":"xs";function Vb(i){Pe(i,"svelte-1l78lz9",".volumeBar-container.svelte-1l78lz9{display:flex;align-items:center}.volumeBar-container.vertical.svelte-1l78lz9,.vertical.svelte-1l78lz9 .tooltip-wrapper,.vertical.svelte-1l78lz9 .btn{width:40px}.volumeBar.svelte-1l78lz9{display:flex;align-items:center;margin:0 8px;position:relative;width:70px}.volumeBar-slider-vertical{width:50px !important}.volumeBar-vertical.svelte-1l78lz9{padding:0 8px 0 0;width:0}")}function Rb(i){let e,t;return e=new Qo({props:{volume:i[3],muted:i[1]}}),{c(){q(e.$$.fragment)},m(n,o){V(e,n,o),t=!0},p(n,o){let r={};o[0]&8&&(r.volume=n[3]),o[0]&2&&(r.muted=n[1]),e.$set(r)},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){_(e.$$.fragment,n),t=!1},d(n){R(e,n)}}}function Bb(i){let e,t;return e=new wt({props:{className:"btn-full-opacity",disabled:i[9],testId:i[2]?"btn-volume-vertical":"btn-volume-horizontal",ariaLabel:i[7],click:i[0],ariaKeyShortCut:io.KeyM,$$slots:{default:[Rb]},$$scope:{ctx:i}}}),{c(){q(e.$$.fragment)},m(n,o){V(e,n,o),t=!0},p(n,o){let r={};o[0]&512&&(r.disabled=n[9]),o[0]&4&&(r.testId=n[2]?"btn-volume-vertical":"btn-volume-horizontal"),o[0]&128&&(r.ariaLabel=n[7]),o[0]&1&&(r.click=n[0]),o[0]&10|o[1]&32&&(r.$$scope={dirty:o,ctx:n}),e.$set(r)},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){_(e.$$.fragment,n),t=!1},d(n){R(e,n)}}}function Y1(i){let e,t,n;return t=new vl({props:{className:i[2]?"volumeBar-slider-vertical":"",isHidden:i[2]&&!i[5],isVertical:i[2],withWheelHandler:!0,onWheelUp:i[15],onWheelDown:i[16],onPointerDown:i[14],onHandleMove:i[17],onPointerUp:i[18],onPointerEnter:i[2]?i[19]:ko,onPointerLeave:i[2]?i[20]:ko,ariaLabel:"\u041F\u043E\u043B\u0437\u0443\u043D\u043E\u043A \u0433\u0440\u043E\u043C\u043A\u043E\u0441\u0442\u0438",ariaValueMin:0,ariaValueMax:100,ariaValueNow:Math.round(i[8]*100),ariaValueText:`${Math.round(i[8]*100)}%`,filledProgress:i[8],handleProgress:i[8],testId:i[2]?"volume-slider-vertical":"volume-slider"}}),{c(){e=T("div"),q(t.$$.fragment),f(e,"class","volumeBar svelte-1l78lz9"),O(e,"volumeBar-vertical",i[2])},m(o,r){S(o,e,r),V(t,e,null),n=!0},p(o,r){let l={};r[0]&4&&(l.className=o[2]?"volumeBar-slider-vertical":""),r[0]&36&&(l.isHidden=o[2]&&!o[5]),r[0]&4&&(l.isVertical=o[2]),r[0]&4&&(l.onPointerEnter=o[2]?o[19]:ko),r[0]&4&&(l.onPointerLeave=o[2]?o[20]:ko),r[0]&256&&(l.ariaValueNow=Math.round(o[8]*100)),r[0]&256&&(l.ariaValueText=`${Math.round(o[8]*100)}%`),r[0]&256&&(l.filledProgress=o[8]),r[0]&256&&(l.handleProgress=o[8]),r[0]&4&&(l.testId=o[2]?"volume-slider-vertical":"volume-slider"),t.$set(l),(!n||r[0]&4)&&O(e,"volumeBar-vertical",o[2])},i(o){n||(d(t.$$.fragment,o),n=!0)},o(o){_(t.$$.fragment,o),n=!1},d(o){o&&k(e),R(t)}}}function qb(i){let e,t,n,o,r,l;t=new Br({props:{content:i[6],translateY:-18,$$slots:{default:[Bb]},$$scope:{ctx:i}}});let a=i[4]&&Y1(i);return{c(){e=T("div"),q(t.$$.fragment),n=B(),a&&a.c(),f(e,"class","volumeBar-container svelte-1l78lz9"),O(e,"vertical",i[2])},m(s,u){S(s,e,u),V(t,e,null),p(e,n),a&&a.m(e,null),o=!0,r||(l=[pe(e,"mouseenter",function(){Bi(i[2]?i[21]:ko)&&(i[2]?i[21]:ko).apply(this,arguments)}),pe(e,"mouseleave",function(){Bi(i[2]?i[22]:ko)&&(i[2]?i[22]:ko).apply(this,arguments)}),pe(e,"wheel",Xt(i[23]))],r=!0)},p(s,u){i=s;let c={};u[0]&64&&(c.content=i[6]),u[0]&655|u[1]&32&&(c.$$scope={dirty:u,ctx:i}),t.$set(c),i[4]?a?(a.p(i,u),u[0]&16&&d(a,1)):(a=Y1(i),a.c(),d(a,1),a.m(e,null)):a&&(ce(),_(a,1,1,()=>{a=null}),de()),(!o||u[0]&4)&&O(e,"vertical",i[2])},i(s){o||(d(t.$$.fragment,s),d(a),o=!0)},o(s){_(t.$$.fragment,s),_(a),o=!1},d(s){s&&k(e),R(t),a&&a.d(),r=!1,ot(l)}}}function Db(i,e,t){var Ie,Re;let n,o,r,l,{click:a}=e,s=rt(),u=Wt(),c=s.state.volume$;H(i,c,qe=>t(3,n=qe));let m=s.state.muted$;H(i,m,qe=>t(25,l=qe));let h=s.actions.internal.setVolume,w=s.ui.currentGridType$;H(i,w,qe=>t(24,r=qe));let g=(Ie=s.callbacks)==null?void 0:Ie.onAudioDoesNotExistHint,C=(Re=s.callbacks)==null?void 0:Re.onAudioDisabledHint,v=s.state.isAudioAvailable$;H(i,v,qe=>t(4,o=qe));let E=s.state.isAudioDisabled,y=!1,b,P,A,M,N,te,_e=1,X=!1,$=!1;function se(qe){_e=n,h(qe)}function L(){Tr(s,n,u.controls.volumeStepWheel)}function K(){Pr(s,n,u.controls.volumeStepWheel)}function x(qe){h(qe)}function Z(qe){let xe=qe;h(xe,xe===0?_e:xe)}function F(){X=!0}function Q(){X=!1,Be()}function J(){clearTimeout(b),t(5,y=!0)}function oe(){Be()}function Be(){b=window.setTimeout(()=>{X||t(5,y=!1)},u.controls.volumeBarTimeout)}function Ye(qe){qe.deltaY<0?L():qe.deltaY>0&&K()}return i.$$set=qe=>{"click"in qe&&t(0,a=qe.click)},i.$$.update=()=>{i.$$.dirty[0]&33554448&&t(1,M=!o||l),i.$$.dirty[0]&16777216&&t(2,N=Dr(r,"s")),i.$$.dirty[0]&6&&(N?t(6,P=""):t(6,P=M?U("tooltip_volume"):U("tooltip_volume_muted")),t(7,A=M?U("tooltip_volume"):U("tooltip_volume_muted"))),i.$$.dirty[0]&10&&t(8,te=M?0:n),i.$$.dirty[0]&16&&(o?t(9,$=E&&!C):t(9,$=!g))},[a,M,N,n,o,y,P,A,te,$,c,m,w,v,se,L,K,x,Z,F,Q,J,oe,Ye,r,l]}var Za=class extends j{constructor(e){super(),G(this,e,Db,qb,W,{click:0},Vb,[-1,-1])}},Z1=Za;import{noop as Ub}from"@vkontakte/videoplayer-shared";function Nb(i){let e,t,n,o,r,l=i[2].default,a=Le(l,i,i[1],null),s=[{xmlns:"http://www.w3.org/2000/svg"},{width:"24"},{height:"24"},{"aria-hidden":"true"},{role:"img"},i[0]],u={};for(let c=0;c<s.length;c+=1)u=ue(u,s[c]);return{c(){e=D("svg"),a&&a.c(),t=D("g"),n=D("path"),o=D("path"),f(n,"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"),f(n,"class","_exit"),f(o,"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"),f(o,"class","_enter"),f(t,"fill","#fff"),f(t,"fill-rule","evenodd"),we(e,u)},m(c,m){S(c,e,m),a&&a.m(e,null),p(e,t),p(t,n),p(t,o),r=!0},p(c,[m]){a&&a.p&&(!r||m&2)&&Me(a,l,c,c[1],r?Ae(l,c[1],m,null):Ve(c[1]),null),we(e,u=Ne(s,[{xmlns:"http://www.w3.org/2000/svg"},{width:"24"},{height:"24"},{"aria-hidden":"true"},{role:"img"},m&1&&c[0]]))},i(c){r||(d(a,c),r=!0)},o(c){_(a,c),r=!1},d(c){c&&k(e),a&&a.d(c)}}}function Ob(i,e,t){let{$$slots:n={},$$scope:o}=e;return i.$$set=r=>{t(0,e=ue(ue({},e),ye(r))),"$$scope"in r&&t(1,o=r.$$scope)},e=ye(e),[e,o,n]}var Xa=class extends j{constructor(e){super(),G(this,e,Ob,Nb,W,{})}},X1=Xa;function Fb(i){Pe(i,"svelte-17t966y",'svg[data-testid="close-fullscreen-icon"] ._enter,svg[data-testid="open-fullscreen-icon"] ._exit{visibility:hidden;opacity:0}')}function zb(i){let e,t;return e=new X1({props:{"data-testid":i[0]?"close-fullscreen-icon":"open-fullscreen-icon"}}),{c(){q(e.$$.fragment)},m(n,o){V(e,n,o),t=!0},p(n,[o]){let r={};o&1&&(r["data-testid"]=n[0]?"close-fullscreen-icon":"open-fullscreen-icon"),e.$set(r)},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){_(e.$$.fragment,n),t=!1},d(n){R(e,n)}}}function Hb(i,e,t){let{isFullscreen:n=!1}=e;return i.$$set=o=>{"isFullscreen"in o&&t(0,n=o.isFullscreen)},[n]}var Ja=class extends j{constructor(e){super(),G(this,e,Hb,zb,W,{isFullscreen:0},Fb)}},J1=Ja;function Kb(i){let e,t;return e=new J1({props:{isFullscreen:i[0]}}),{c(){q(e.$$.fragment)},m(n,o){V(e,n,o),t=!0},p(n,o){let r={};o&1&&(r.isFullscreen=n[0]),e.$set(r)},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){_(e.$$.fragment,n),t=!1},d(n){R(e,n)}}}function Wb(i){let e,t;return e=new wt({props:{testId:"btn-fullscreen",ariaLabel:i[2],click:i[1],ariaKeyShortCut:io.KeyF,$$slots:{default:[Kb]},$$scope:{ctx:i}}}),{c(){q(e.$$.fragment)},m(n,o){V(e,n,o),t=!0},p(n,[o]){let r={};o&4&&(r.ariaLabel=n[2]),o&2&&(r.click=n[1]),o&9&&(r.$$scope={dirty:o,ctx:n}),e.$set(r)},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){_(e.$$.fragment,n),t=!1},d(n){R(e,n)}}}function jb(i,e,t){let{isFullscreen:n=!1}=e,{click:o=Ub}=e,r;return i.$$set=l=>{"isFullscreen"in l&&t(0,n=l.isFullscreen),"click"in l&&t(1,o=l.click)},i.$$.update=()=>{i.$$.dirty&1&&t(2,r=n?U("tooltip_fullscreen_on"):U("tooltip_fullscreen_off"))},[n,o,r]}var xa=class extends j{constructor(e){super(),G(this,e,jb,Wb,W,{isFullscreen:0,click:1})}},Nr=xa;function Gb(i){let e,t,n,o=i[2].default,r=Le(o,i,i[1],null),l=[{xmlns:"http://www.w3.org/2000/svg"},{width:"24"},{height:"24"},{fill:"none"},{"aria-hidden":"true"},{"data-testid":"play-icon"},{role:"img"},i[0]],a={};for(let s=0;s<l.length;s+=1)a=ue(a,l[s]);return{c(){e=D("svg"),r&&r.c(),t=D("path"),f(t,"fill","#fff"),f(t,"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.078z"),we(e,a)},m(s,u){S(s,e,u),r&&r.m(e,null),p(e,t),n=!0},p(s,[u]){r&&r.p&&(!n||u&2)&&Me(r,o,s,s[1],n?Ae(o,s[1],u,null):Ve(s[1]),null),we(e,a=Ne(l,[{xmlns:"http://www.w3.org/2000/svg"},{width:"24"},{height:"24"},{fill:"none"},{"aria-hidden":"true"},{"data-testid":"play-icon"},{role:"img"},u&1&&s[0]]))},i(s){n||(d(r,s),n=!0)},o(s){_(r,s),n=!1},d(s){s&&k(e),r&&r.d(s)}}}function Qb(i,e,t){let{$$slots:n={},$$scope:o}=e;return i.$$set=r=>{t(0,e=ue(ue({},e),ye(r))),"$$scope"in r&&t(1,o=r.$$scope)},e=ye(e),[e,o,n]}var $a=class extends j{constructor(e){super(),G(this,e,Qb,Gb,W,{})}},yl=$a;function Yb(i){let e,t,n,o=i[2].default,r=Le(o,i,i[1],null),l=[{xmlns:"http://www.w3.org/2000/svg"},{width:"24"},{height:"24"},{fill:"none"},{"aria-hidden":"true"},{"data-testid":"pause-icon"},{role:"img"},i[0]],a={};for(let s=0;s<l.length;s+=1)a=ue(a,l[s]);return{c(){e=D("svg"),r&&r.c(),t=D("path"),f(t,"fill","#fff"),f(t,"d","M8.712 5c.448 0 .61.047.774.134a.9.9 0 0 1 .38.38c.087.164.134.326.134.774v11.424c0 .448-.047.61-.134.774a.9.9 0 0 1-.38.38c-.164.087-.326.134-.774.134H6.788c-.448 0-.61-.047-.774-.134a.9.9 0 0 1-.38-.38c-.087-.164-.134-.326-.134-.774V6.288c0-.448.047-.61.134-.774a.9.9 0 0 1 .38-.38C6.178 5.047 6.34 5 6.788 5zm8 0c.448 0 .61.047.774.134a.9.9 0 0 1 .38.38c.087.164.134.326.134.774v11.424c0 .448-.047.61-.134.774a.9.9 0 0 1-.38.38c-.164.087-.326.134-.774.134h-1.924c-.448 0-.61-.047-.774-.134a.9.9 0 0 1-.38-.38c-.087-.164-.134-.326-.134-.774V6.288c0-.448.047-.61.134-.774a.9.9 0 0 1 .38-.38c.164-.087.326-.134.774-.134z"),we(e,a)},m(s,u){S(s,e,u),r&&r.m(e,null),p(e,t),n=!0},p(s,[u]){r&&r.p&&(!n||u&2)&&Me(r,o,s,s[1],n?Ae(o,s[1],u,null):Ve(s[1]),null),we(e,a=Ne(l,[{xmlns:"http://www.w3.org/2000/svg"},{width:"24"},{height:"24"},{fill:"none"},{"aria-hidden":"true"},{"data-testid":"pause-icon"},{role:"img"},u&1&&s[0]]))},i(s){n||(d(r,s),n=!0)},o(s){_(r,s),n=!1},d(s){s&&k(e),r&&r.d(s)}}}function Zb(i,e,t){let{$$slots:n={},$$scope:o}=e;return i.$$set=r=>{t(0,e=ue(ue({},e),ye(r))),"$$scope"in r&&t(1,o=r.$$scope)},e=ye(e),[e,o,n]}var eu=class extends j{constructor(e){super(),G(this,e,Zb,Yb,W,{})}},Or=eu;import{noop as Xb}from"@vkontakte/videoplayer-shared";function Jb(i){Pe(i,"svelte-1ot3duq",".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 x1(i){let e;return{c(){e=T("div"),f(e,"class","icon-background-mobile svelte-1ot3duq")},m(t,n){S(t,e,n)},d(t){t&&k(e)}}}function xb(i){let e,t,n,o,r=i[1]&&x1(i);var l=i[8];function a(s,u){return{}}return l&&(n=En(l,a(i))),{c(){r&&r.c(),e=B(),t=T("div"),n&&q(n.$$.fragment),f(t,"class","svelte-1ot3duq"),O(t,"mobile",i[1])},m(s,u){r&&r.m(s,u),S(s,e,u),S(s,t,u),n&&V(n,t,null),o=!0},p(s,u){if(s[1]?r||(r=x1(s),r.c(),r.m(e.parentNode,e)):r&&(r.d(1),r=null),u&256&&l!==(l=s[8])){if(n){ce();let c=n;_(c.$$.fragment,1,0,()=>{R(c,1)}),de()}l?(n=En(l,a(s,u)),q(n.$$.fragment),d(n.$$.fragment,1),V(n,t,null)):n=null}(!o||u&2)&&O(t,"mobile",s[1])},i(s){o||(n&&d(n.$$.fragment,s),o=!0)},o(s){n&&_(n.$$.fragment,s),o=!1},d(s){s&&(k(e),k(t)),r&&r.d(s),n&&R(n)}}}function $b(i){let e,t,n;function o(l){i[13](l)}let r={className:(i[1]?"btn-m--play":"")+" "+i[3],testId:"btn-play",click:i[5]?i[6]:i[4],disabled:i[2],ariaLabel:i[7],ariaKeyShortCut:io.KeyK,$$slots:{default:[xb]},$$scope:{ctx:i}};return i[0]!==void 0&&(r.ref=i[0]),e=new wt({props:r}),ge.push(()=>He(e,"ref",o)),{c(){q(e.$$.fragment)},m(l,a){V(e,l,a),n=!0},p(l,[a]){let s={};a&10&&(s.className=(l[1]?"btn-m--play":"")+" "+l[3]),a&112&&(s.click=l[5]?l[6]:l[4]),a&4&&(s.disabled=l[2]),a&128&&(s.ariaLabel=l[7]),a&33026&&(s.$$scope={dirty:a,ctx:l}),!t&&a&1&&(t=!0,s.ref=l[0],ze(()=>t=!1)),e.$set(s)},i(l){n||(d(e.$$.fragment,l),n=!0)},o(l){_(e.$$.fragment,l),n=!1},d(l){R(e,l)}}}function ev(i,e,t){let n,o,{fakeIsPlaying$:r}=Kn();H(i,r,y=>t(12,o=y));let{ref:l=void 0}=e,{isMobile:a=!1}=e,{isPlaying:s=!1}=e,{disabled:u=!1}=e,{className:c=""}=e,{click:m=Xb}=e,{toggle:h}=r,w,g,C,v;function E(y){l=y,t(0,l)}return i.$$set=y=>{"ref"in y&&t(0,l=y.ref),"isMobile"in y&&t(1,a=y.isMobile),"isPlaying"in y&&t(10,s=y.isPlaying),"disabled"in y&&t(2,u=y.disabled),"className"in y&&t(3,c=y.className),"click"in y&&t(4,m=y.click)},i.$$.update=()=>{i.$$.dirty&4096&&t(5,g=o!==null),i.$$.dirty&5152&&t(11,C=g?o:s),i.$$.dirty&2048&&t(7,v=C?U("tooltip_pause"):U("tooltip_play")),i.$$.dirty&2048&&t(8,n=C?Or:yl)},t(6,w=h),[l,a,u,c,m,g,w,v,n,r,s,C,o,E]}var tu=class extends j{constructor(e){super(),G(this,e,ev,$b,W,{ref:0,isMobile:1,isPlaying:10,disabled:2,className:3,click:4},Jb)}},Hl=tu;function tv(i){let e,t,n,o=i[2].default,r=Le(o,i,i[1],null),l=[{xmlns:"http://www.w3.org/2000/svg"},{width:"26"},{height:"24"},{fill:"none"},{"aria-hidden":"true"},{role:"img"},i[0]],a={};for(let s=0;s<l.length;s+=1)a=ue(a,l[s]);return{c(){e=D("svg"),r&&r.c(),t=D("path"),f(t,"fill","#fff"),f(t,"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"),we(e,a)},m(s,u){S(s,e,u),r&&r.m(e,null),p(e,t),n=!0},p(s,[u]){r&&r.p&&(!n||u&2)&&Me(r,o,s,s[1],n?Ae(o,s[1],u,null):Ve(s[1]),null),we(e,a=Ne(l,[{xmlns:"http://www.w3.org/2000/svg"},{width:"26"},{height:"24"},{fill:"none"},{"aria-hidden":"true"},{role:"img"},u&1&&s[0]]))},i(s){n||(d(r,s),n=!0)},o(s){_(r,s),n=!1},d(s){s&&k(e),r&&r.d(s)}}}function iv(i,e,t){let{$$slots:n={},$$scope:o}=e;return i.$$set=r=>{t(0,e=ue(ue({},e),ye(r))),"$$scope"in r&&t(1,o=r.$$scope)},e=ye(e),[e,o,n]}var iu=class extends j{constructor(e){super(),G(this,e,iv,tv,W,{})}},$1=iu;function nv(i){let e,t;return e=new $1({props:{style:i[1],"data-testid":i[0]?"prev-icon":"next-icon"}}),{c(){q(e.$$.fragment)},m(n,o){V(e,n,o),t=!0},p(n,[o]){let r={};o&2&&(r.style=n[1]),o&1&&(r["data-testid"]=n[0]?"prev-icon":"next-icon"),e.$set(r)},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){_(e.$$.fragment,n),t=!1},d(n){R(e,n)}}}function ov(i,e,t){let{isPrev:n=!1}=e,{isMobile:o=!1}=e,r;return i.$$set=l=>{"isPrev"in l&&t(0,n=l.isPrev),"isMobile"in l&&t(2,o=l.isMobile)},i.$$.update=()=>{i.$$.dirty&5&&(n&&o?t(1,r="transform: scaleX(-1) scale(1.3333);"):n?t(1,r="transform: scaleX(-1);"):o?t(1,r="transform: scale(1.3333);"):t(1,r=void 0))},[n,r,o]}var nu=class extends j{constructor(e){super(),G(this,e,ov,nv,W,{isPrev:0,isMobile:2})}},em=nu;function lv(i){let e,t;return e=new em({props:{isMobile:i[1],isPrev:i[3]==="prev"}}),{c(){q(e.$$.fragment)},m(n,o){V(e,n,o),t=!0},p(n,o){let r={};o&2&&(r.isMobile=n[1]),o&8&&(r.isPrev=n[3]==="prev"),e.$set(r)},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){_(e.$$.fragment,n),t=!1},d(n){R(e,n)}}}function rv(i){let e,t,n;function o(l){i[6](l)}let r={testId:"btn-"+i[3],disabled:i[2],ariaLabel:i[5],click:i[4],$$slots:{default:[lv]},$$scope:{ctx:i}};return i[0]!==void 0&&(r.ref=i[0]),e=new wt({props:r}),ge.push(()=>He(e,"ref",o)),{c(){q(e.$$.fragment)},m(l,a){V(e,l,a),n=!0},p(l,[a]){let s={};a&8&&(s.testId="btn-"+l[3]),a&4&&(s.disabled=l[2]),a&32&&(s.ariaLabel=l[5]),a&16&&(s.click=l[4]),a&138&&(s.$$scope={dirty:a,ctx:l}),!t&&a&1&&(t=!0,s.ref=l[0],ze(()=>t=!1)),e.$set(s)},i(l){n||(d(e.$$.fragment,l),n=!0)},o(l){_(e.$$.fragment,l),n=!1},d(l){R(e,l)}}}function sv(i,e,t){let{ref:n=void 0}=e,{isMobile:o=!1}=e,{disabled:r=!1}=e,{type:l}=e,{click:a}=e,s;function u(c){n=c,t(0,n)}return i.$$set=c=>{"ref"in c&&t(0,n=c.ref),"isMobile"in c&&t(1,o=c.isMobile),"disabled"in c&&t(2,r=c.disabled),"type"in c&&t(3,l=c.type),"click"in c&&t(4,a=c.click)},i.$$.update=()=>{i.$$.dirty&8&&t(5,s=l==="prev"?U("tooltip_previous"):U("tooltip_next"))},[n,o,r,l,a,s,u]}var ou=class extends j{constructor(e){super(),G(this,e,sv,rv,W,{ref:0,isMobile:1,disabled:2,type:3,click:4})}},wl=ou;function av(i){let e,t,n,o=i[2].default,r=Le(o,i,i[1],null),l=[{xmlns:"http://www.w3.org/2000/svg"},{width:"24"},{height:"24"},{fill:"none"},{"aria-hidden":"true"},{"data-testid":"vk-logo-icon"},{role:"img"},i[0]],a={};for(let s=0;s<l.length;s+=1)a=ue(a,l[s]);return{c(){e=D("svg"),r&&r.c(),t=D("path"),f(t,"fill","#fff"),f(t,"fill-rule","evenodd"),f(t,"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"),f(t,"clip-rule","evenodd"),we(e,a)},m(s,u){S(s,e,u),r&&r.m(e,null),p(e,t),n=!0},p(s,[u]){r&&r.p&&(!n||u&2)&&Me(r,o,s,s[1],n?Ae(o,s[1],u,null):Ve(s[1]),null),we(e,a=Ne(l,[{xmlns:"http://www.w3.org/2000/svg"},{width:"24"},{height:"24"},{fill:"none"},{"aria-hidden":"true"},{"data-testid":"vk-logo-icon"},{role:"img"},u&1&&s[0]]))},i(s){n||(d(r,s),n=!0)},o(s){_(r,s),n=!1},d(s){s&&k(e),r&&r.d(s)}}}function uv(i,e,t){let{$$slots:n={},$$scope:o}=e;return i.$$set=r=>{t(0,e=ue(ue({},e),ye(r))),"$$scope"in r&&t(1,o=r.$$scope)},e=ye(e),[e,o,n]}var lu=class extends j{constructor(e){super(),G(this,e,uv,av,W,{})}},tm=lu;function fv(i){let e,t,n,o,r,l,a=i[2].default,s=Le(a,i,i[1],null),u=[{xmlns:"http://www.w3.org/2000/svg"},{width:"95"},{height:"24"},{fill:"none"},{"aria-hidden":"true"},{role:"img"},i[0]],c={};for(let m=0;m<u.length;m+=1)c=ue(c,u[m]);return{c(){e=D("svg"),s&&s.c(),t=D("path"),n=D("path"),o=D("path"),r=D("path"),f(t,"fill","#fff"),f(t,"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"),f(n,"fill","#fff"),f(n,"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"),f(n,"class","_ru"),f(o,"fill","#fff"),f(o,"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"),f(o,"class","_en"),f(r,"fill","#fff"),f(r,"fill-rule","evenodd"),f(r,"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"),f(r,"clip-rule","evenodd"),we(e,c)},m(m,h){S(m,e,h),s&&s.m(e,null),p(e,t),p(e,n),p(e,o),p(e,r),l=!0},p(m,[h]){s&&s.p&&(!l||h&2)&&Me(s,a,m,m[1],l?Ae(a,m[1],h,null):Ve(m[1]),null),we(e,c=Ne(u,[{xmlns:"http://www.w3.org/2000/svg"},{width:"95"},{height:"24"},{fill:"none"},{"aria-hidden":"true"},{role:"img"},h&1&&m[0]]))},i(m){l||(d(s,m),l=!0)},o(m){_(s,m),l=!1},d(m){m&&k(e),s&&s.d(m)}}}function cv(i,e,t){let{$$slots:n={},$$scope:o}=e;return i.$$set=r=>{t(0,e=ue(ue({},e),ye(r))),"$$scope"in r&&t(1,o=r.$$scope)},e=ye(e),[e,o,n]}var ru=class extends j{constructor(e){super(),G(this,e,cv,fv,W,{})}},im=ru;function dv(i){Pe(i,"svelte-1nhjml",'svg[data-testid="vk-video-logo-icon--short"] ._ru,svg[data-testid="vk-video-logo-icon--short"] ._en,svg[data-testid="vk-video-logo-icon"] ._en,svg[data-testid="vk-video-logo-icon--en"] ._ru{visibility:hidden;opacity:0}')}function mv(i){let e,t;return e=new im({props:{width:i[0],height:"24",viewBox:"0 0 "+(i[0]+1)+" 24","data-testid":i[1]}}),{c(){q(e.$$.fragment)},m(n,o){V(e,n,o),t=!0},p(n,[o]){let r={};o&1&&(r.width=n[0]),o&1&&(r.viewBox="0 0 "+(n[0]+1)+" 24"),o&2&&(r["data-testid"]=n[1]),e.$set(r)},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){_(e.$$.fragment,n),t=!1},d(n){R(e,n)}}}var pv="vk-video-logo-icon--short";function _v(i,e,t){let{short:n=!1}=e,{isCyrillic:o=!0}=e,r,l;return i.$$set=a=>{"short"in a&&t(2,n=a.short),"isCyrillic"in a&&t(3,o=a.isCyrillic)},i.$$.update=()=>{i.$$.dirty&12&&(t(0,r=n?21:95),t(1,l=n?pv:"vk-video-logo-icon"),!o&&!n&&(t(0,r=91),t(1,l="vk-video-logo-icon--en")))},[r,l,n,o]}var su=class extends j{constructor(e){super(),G(this,e,_v,mv,W,{short:2,isCyrillic:3},dv)}},nm=su;function gv(i){let e,t;return e=new tm({}),{c(){q(e.$$.fragment)},m(n,o){V(e,n,o),t=!0},p:Ce,i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){_(e.$$.fragment,n),t=!1},d(n){R(e,n)}}}function bv(i){let e,t;return e=new nm({props:{short:i[4],isCyrillic:i[5]}}),{c(){q(e.$$.fragment)},m(n,o){V(e,n,o),t=!0},p(n,o){let r={};o&16&&(r.short=n[4]),o&32&&(r.isCyrillic=n[5]),e.$set(r)},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){_(e.$$.fragment,n),t=!1},d(n){R(e,n)}}}function vv(i){let e,t,n,o,r=[bv,gv],l=[];function a(s,u){return s[2]?0:1}return e=a(i,-1),t=l[e]=r[e](i),{c(){t.c(),n=mt()},m(s,u){l[e].m(s,u),S(s,n,u),o=!0},p(s,u){let c=e;e=a(s,u),e===c?l[e].p(s,u):(ce(),_(l[c],1,1,()=>{l[c]=null}),de(),t=l[e],t?t.p(s,u):(t=l[e]=r[e](s),t.c()),d(t,1),t.m(n.parentNode,n))},i(s){o||(d(t),o=!0)},o(s){_(t),o=!1},d(s){s&&k(n),l[e].d(s)}}}function yv(i){let e,t,n;function o(l){i[14](l)}let r={className:"btn-full-opacity",disabled:!i[1],click:i[9],testId:i[2]?"btn-vk-video-logo":"btn-vk-logo",ariaLabel:i[3],$$slots:{default:[vv]},$$scope:{ctx:i}};return i[0]!==void 0&&(r.ref=i[0]),e=new wt({props:r}),ge.push(()=>He(e,"ref",o)),{c(){q(e.$$.fragment)},m(l,a){V(e,l,a),n=!0},p(l,[a]){let s={};a&2&&(s.disabled=!l[1]),a&4&&(s.testId=l[2]?"btn-vk-video-logo":"btn-vk-logo"),a&8&&(s.ariaLabel=l[3]),a&131124&&(s.$$scope={dirty:a,ctx:l}),!t&&a&1&&(t=!0,s.ref=l[0],ze(()=>t=!1)),e.$set(s)},i(l){n||(d(e.$$.fragment,l),n=!0)},o(l){_(e.$$.fragment,l),n=!1},d(l){R(e,l)}}}function wv(i,e,t){let n,o,r,{ref:l=void 0}=e,{logoClickable:a=!1}=e,{targetUrl:s=""}=e,{click:u}=e,c=Wt(),m=rt(),h=m.ui.currentGridType$;H(i,h,P=>t(12,n=P));let w=m.ui.isMobile;H(i,w,P=>t(13,o=P));let g=m.isCyrillicRelatedInterface$;H(i,g,P=>t(5,r=P));let C,v,E,y=()=>{var P,A;u(),(P=m.callbacks)!=null&&P.onLogoClicked?(A=m.callbacks)==null||A.onLogoClicked():s&&window.open(s,"_blank")};function b(P){l=P,t(0,l)}return i.$$set=P=>{"ref"in P&&t(0,l=P.ref),"logoClickable"in P&&t(1,a=P.logoClickable),"targetUrl"in P&&t(10,s=P.targetUrl),"click"in P&&t(11,u=P.click)},i.$$.update=()=>{i.$$.dirty&12292&&t(4,E=(o||Dr(n,"l"))&&v)},t(3,C=c.logoType==="vk_video"?U("tooltip_vk_video_logo"):U("tooltip_vk_logo")),t(2,v=c.logoType==="vk_video"||c.logoType==="vk_video_mobile"),[l,a,v,C,E,r,h,w,g,y,s,u,n,o,b]}var au=class extends j{constructor(e){super(),G(this,e,wv,yv,W,{ref:0,logoClickable:1,targetUrl:10,click:11})}},Fr=au;import{ChromecastState as Iv}from"@vkontakte/videoplayer-core";import{ChromecastState as om}from"@vkontakte/videoplayer-core";function kv(i){Pe(i,"svelte-8z1bf5",".connecting.svelte-8z1bf5 .wave.svelte-8z1bf5{animation-duration:1s;animation-iteration-count:infinite}.connecting.svelte-8z1bf5 .wave1.svelte-8z1bf5{animation-name:svelte-8z1bf5-wave1}.connecting.svelte-8z1bf5 .wave2.svelte-8z1bf5{animation-name:svelte-8z1bf5-wave2}.connecting.svelte-8z1bf5 .wave3.svelte-8z1bf5{animation-name:svelte-8z1bf5-wave3}@keyframes svelte-8z1bf5-wave1{0%{opacity:0.3}33%{opacity:1}66%{opacity:1}100%{opacity:1}}@keyframes svelte-8z1bf5-wave2{0%{opacity:0.3}33%{opacity:0.3}66%{opacity:1}100%{opacity:1}}@keyframes svelte-8z1bf5-wave3{0%{opacity:0.3}33%{opacity:0.3}66%{opacity:0.3}100%{opacity:1}}")}function Cv(i){let e,t,n,o,r,l,a,s;return{c(){e=D("svg"),t=D("g"),n=D("path"),o=D("path"),r=D("path"),l=D("path"),a=D("path"),s=D("path"),f(n,"class","wave wave1 svelte-8z1bf5"),f(n,"d","M1 18v3h3c0-1.66-1.34-3-3-3z"),f(n,"fill","#fff"),f(o,"class","wave wave2 svelte-8z1bf5"),f(o,"d","M1 14v2c2.76 0 5 2.24 5 5h2c0-3.87-3.13-7-7-7z"),f(o,"fill","#fff"),f(r,"class","wave wave3 svelte-8z1bf5"),f(r,"d","M1 10v2a9 9 0 0 1 9 9h2c0-6.08-4.93-11-11-11z"),f(r,"fill","#fff"),f(l,"d","M21 3H3c-1.1 0-2 .9-2 2v3h2V5h18v14h-7v2h7c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2z"),f(l,"fill","#fff"),f(a,"d","M0 0h24v24H0z"),f(s,"d","M5.667 7.44H18.5v9.167h-5.161a11.947 11.947 0 0 0-7.673-7.672V7.44Z"),f(s,"fill","#fff"),O(s,"hidden",!i[1]),f(t,"fill","none"),f(t,"fill-rule","evenodd"),f(e,"width","24"),f(e,"height","24"),f(e,"xmlns","http://www.w3.org/2000/svg"),f(e,"aria-hidden","true"),f(e,"data-testid","chromecast-icon"),f(e,"class","svelte-8z1bf5"),O(e,"connecting",i[2])},m(u,c){S(u,e,c),p(e,t),p(t,n),p(t,o),p(t,r),p(t,l),p(t,a),p(t,s)},p(u,c){c&2&&O(s,"hidden",!u[1]),c&4&&O(e,"connecting",u[2])},d(u){u&&k(e)}}}function Sv(i){let e,t,n,o,r,l,a,s,u,c,m,h,w,g,C,v,E,y,b,P,A;return{c(){e=D("svg"),t=D("g"),n=D("mask"),o=D("path"),l=D("path"),a=D("path"),u=D("path"),c=D("defs"),m=D("clipPath"),h=D("path"),g=D("filter"),C=D("feFlood"),v=D("feColorMatrix"),E=D("feOffset"),y=D("feGaussianBlur"),b=D("feColorMatrix"),P=D("feBlend"),A=D("feBlend"),f(o,"fill",r=i[1]?"#2688EB":"#fff"),f(o,"d","M1.1 3.1h22v18h-22z"),f(l,"fill-rule","evenodd"),f(l,"clip-rule","evenodd"),f(l,"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"),f(n,"id","c"),f(n,"maskUnits","userSpaceOnUse"),f(n,"x","1.1"),f(n,"y","3.1"),f(n,"width","22"),f(n,"height","18"),f(n,"fill","#000"),f(a,"fill-rule","evenodd"),f(a,"clip-rule","evenodd"),f(a,"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"),f(a,"fill",s=i[1]?"#2688EB":"#fff"),f(u,"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"),f(u,"fill","#000"),f(u,"fill-opacity",".12"),f(u,"mask","url(#c)"),f(t,"filter","url(#b)"),f(t,"clip-path","url(#a)"),f(h,"fill",w=i[1]?"#2688EB":"#fff"),f(h,"d","M0 0h24v24H0z"),f(m,"id","a"),f(C,"flood-opacity","0"),f(C,"result","BackgroundImageFix"),f(v,"in","SourceAlpha"),f(v,"values","0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0"),f(v,"result","hardAlpha"),f(y,"stdDeviation","2.5"),f(b,"values","0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.16 0"),f(P,"in2","BackgroundImageFix"),f(P,"result","effect1_dropShadow_4085_178456"),f(A,"in","SourceGraphic"),f(A,"in2","effect1_dropShadow_4085_178456"),f(A,"result","shape"),f(g,"id","b"),f(g,"x","-3.4"),f(g,"y","-1.4"),f(g,"width","30.8"),f(g,"height","26.802"),f(g,"filterUnits","userSpaceOnUse"),f(g,"color-interpolation-filters","sRGB"),f(e,"width","24"),f(e,"height","24"),f(e,"fill","none"),f(e,"xmlns","http://www.w3.org/2000/svg"),f(e,"aria-hidden","true"),f(e,"data-testid","chromecast-mobile-icon")},m(M,N){S(M,e,N),p(e,t),p(t,n),p(n,o),p(n,l),p(t,a),p(t,u),p(e,c),p(c,m),p(m,h),p(c,g),p(g,C),p(g,v),p(g,E),p(g,y),p(g,b),p(g,P),p(g,A)},p(M,N){N&2&&r!==(r=M[1]?"#2688EB":"#fff")&&f(o,"fill",r),N&2&&s!==(s=M[1]?"#2688EB":"#fff")&&f(a,"fill",s),N&2&&w!==(w=M[1]?"#2688EB":"#fff")&&f(h,"fill",w)},d(M){M&&k(e)}}}function Tv(i){let e;function t(r,l){return r[0]?Sv:Cv}let n=t(i,-1),o=n(i);return{c(){o.c(),e=mt()},m(r,l){o.m(r,l),S(r,e,l)},p(r,[l]){n===(n=t(r,l))&&o?o.p(r,l):(o.d(1),o=n(r),o&&(o.c(),o.m(e.parentNode,e)))},i:Ce,o:Ce,d(r){r&&k(e),o.d(r)}}}function Pv(i,e,t){let{isMobile:n=!1}=e,{state:o}=e,r,l;return i.$$set=a=>{"isMobile"in a&&t(0,n=a.isMobile),"state"in a&&t(3,o=a.state)},i.$$.update=()=>{i.$$.dirty&8&&(t(2,l=o===om.CONNECTING),t(1,r=o===om.CONNECTED))},[n,r,l,o]}var uu=class extends j{constructor(e){super(),G(this,e,Pv,Tv,W,{isMobile:0,state:3},kv)}},lm=uu;import{noop as Ev}from"@vkontakte/videoplayer-shared";function Lv(i){let e,t;return e=new lm({props:{isMobile:i[1],state:i[2]}}),{c(){q(e.$$.fragment)},m(n,o){V(e,n,o),t=!0},p(n,o){let r={};o&2&&(r.isMobile=n[1]),o&4&&(r.state=n[2]),e.$set(r)},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){_(e.$$.fragment,n),t=!1},d(n){R(e,n)}}}function Av(i){let e,t,n;function o(l){i[5](l)}let r={ariaLabel:i[4],click:i[3],testId:"btn-chromecast",$$slots:{default:[Lv]},$$scope:{ctx:i}};return i[0]!==void 0&&(r.ref=i[0]),e=new wt({props:r}),ge.push(()=>He(e,"ref",o)),{c(){q(e.$$.fragment)},m(l,a){V(e,l,a),n=!0},p(l,[a]){let s={};a&16&&(s.ariaLabel=l[4]),a&8&&(s.click=l[3]),a&70&&(s.$$scope={dirty:a,ctx:l}),!t&&a&1&&(t=!0,s.ref=l[0],ze(()=>t=!1)),e.$set(s)},i(l){n||(d(e.$$.fragment,l),n=!0)},o(l){_(e.$$.fragment,l),n=!1},d(l){R(e,l)}}}function Mv(i,e,t){let{ref:n=void 0}=e,{isMobile:o=!1}=e,{state:r}=e,{click:l=Ev}=e,a;function s(u){n=u,t(0,n)}return i.$$set=u=>{"ref"in u&&t(0,n=u.ref),"isMobile"in u&&t(1,o=u.isMobile),"state"in u&&t(2,r=u.state),"click"in u&&t(3,l=u.click)},i.$$.update=()=>{i.$$.dirty&4&&t(4,a=r===Iv.CONNECTED?U("tooltip_chromecast_on"):U("tooltip_chromecast_off"))},[n,o,r,l,a,s]}var fu=class extends j{constructor(e){super(),G(this,e,Mv,Av,W,{ref:0,isMobile:1,state:2,click:3})}},zr=fu;import{PlaybackState as cu}from"@vkontakte/videoplayer-core";function Vv(i){let e,t;return e=new br({props:{isActive:i[1]}}),{c(){q(e.$$.fragment)},m(n,o){V(e,n,o),t=!0},p(n,o){let r={};o&2&&(r.isActive=n[1]),e.$set(r)},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){_(e.$$.fragment,n),t=!1},d(n){R(e,n)}}}function Rv(i){let e,t;return e=new wt({props:{className:i[0]?"":"btn--live btn-full-opacity",testId:i[1]?"btn-live":"btn-live-offset",disabled:i[1]&&i[3]===cu.PLAYING,ariaLabel:i[2],click:i[4],$$slots:{default:[Vv]},$$scope:{ctx:i}}}),{c(){q(e.$$.fragment)},m(n,o){V(e,n,o),t=!0},p(n,[o]){let r={};o&1&&(r.className=n[0]?"":"btn--live btn-full-opacity"),o&2&&(r.testId=n[1]?"btn-live":"btn-live-offset"),o&10&&(r.disabled=n[1]&&n[3]===cu.PLAYING),o&4&&(r.ariaLabel=n[2]),o&16&&(r.click=n[4]),o&514&&(r.$$scope={dirty:o,ctx:n}),e.$set(r)},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){_(e.$$.fragment,n),t=!1},d(n){R(e,n)}}}function Bv(i,e,t){let n,{isMobile:o=!1}=e,{isActiveLive:r=!1}=e,{ariaLabel:l=""}=e,a=rt(),s=a.state.playbackState$;H(i,s,h=>t(3,n=h));let u=a.actions.internal.switchToActiveLive,c=a.actions.internal.togglePlay,m;return i.$$set=h=>{"isMobile"in h&&t(0,o=h.isMobile),"isActiveLive"in h&&t(1,r=h.isActiveLive),"ariaLabel"in h&&t(2,l=h.ariaLabel)},i.$$.update=()=>{i.$$.dirty&10&&t(4,m=()=>{if(!r){u();return}n===cu.PAUSED&&c()})},[o,r,l,n,m,s]}var du=class extends j{constructor(e){super(),G(this,e,Bv,Rv,W,{isMobile:0,isActiveLive:1,ariaLabel:2})}},Hr=du;function qv(i){Pe(i,"svelte-5ygsa2",'.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 Dv(i){let e,t,n,o,r=i[9].default,l=Le(r,i,i[8],null);return{c(){e=T("div"),t=T("div"),l&&l.c(),f(t,"class","tooltip svelte-5ygsa2"),O(t,"active",i[0]),O(t,"pointer",i[1]),f(e,"class","tooltip-wrapper svelte-5ygsa2"),f(e,"style",n=`transform: translate(${i[5]}px, ${i[2]}px);`)},m(a,s){S(a,e,s),p(e,t),l&&l.m(t,null),i[10](t),i[11](e),o=!0},p(a,[s]){l&&l.p&&(!o||s&256)&&Me(l,r,a,a[8],o?Ae(r,a[8],s,null):Ve(a[8]),null),(!o||s&1)&&O(t,"active",a[0]),(!o||s&2)&&O(t,"pointer",a[1]),(!o||s&36&&n!==(n=`transform: translate(${a[5]}px, ${a[2]}px);`))&&f(e,"style",n)},i(a){o||(d(l,a),o=!0)},o(a){_(l,a),o=!1},d(a){a&&k(e),l&&l.d(a),i[10](null),i[11](null)}}}function Nv(i,e,t){let n,{$$slots:o={},$$scope:r}=e,{active:l=!1}=e,{pointer:a=!1}=e,{translateXPx:s=0}=e,{translateYPx:u=0}=e,{containerWidth:c}=e,m,h;function w(v){if(!h)return 0;let{width:E}=h.getBoundingClientRect(),y=E/2;return v<y?y:v>c-y?c-y:v}function g(v){ge[v?"unshift":"push"](()=>{h=v,t(4,h)})}function C(v){ge[v?"unshift":"push"](()=>{m=v,t(3,m)})}return i.$$set=v=>{"active"in v&&t(0,l=v.active),"pointer"in v&&t(1,a=v.pointer),"translateXPx"in v&&t(6,s=v.translateXPx),"translateYPx"in v&&t(2,u=v.translateYPx),"containerWidth"in v&&t(7,c=v.containerWidth),"$$scope"in v&&t(8,r=v.$$scope)},i.$$.update=()=>{i.$$.dirty&64&&t(5,n=w(s))},[l,a,u,m,h,n,s,c,r,o,g,C]}var mu=class extends j{constructor(e){super(),G(this,e,Nv,Dv,W,{active:0,pointer:1,translateXPx:6,translateYPx:2,containerWidth:7},qv)}},rm=mu;var Ur=(i,e,t)=>t.filter(n=>n.time<i*e).pop();function Ov(i){Pe(i,"svelte-l51fc1",".timeline-preview.svelte-l51fc1{bottom:18px;border-radius:2px;pointer-events:none}.timeline-preview.mobile.svelte-l51fc1{bottom:72px}.preview.svelte-l51fc1{margin-bottom:10px;background-color:var(--timeline-preview-bg);box-shadow:0 0 2px var(--timeline-preview-shadow), 0 8px 24px var(--timeline-preview-shadow);border-radius:8px;border:1px solid var(--white)}.episode.svelte-l51fc1{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);max-width:150px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;text-align:center;font-weight:500}.time.svelte-l51fc1{font-size:13px;line-height:16px;text-align:center;color:var(--slider-filled-bg);text-shadow:0 8px 24px var(--timeline-preview-shadow), 0 0 2px var(--timeline-preview-shadow);font-weight:500}")}function sm(i){let e;function t(r,l){return r[2]&&r[10].completed===!1?zv:Fv}let n=t(i,-1),o=n(i);return{c(){o.c(),e=mt()},m(r,l){o.m(r,l),S(r,e,l)},p(r,l){n===(n=t(r,l))&&o?o.p(r,l):(o.d(1),o=n(r),o&&(o.c(),o.m(e.parentNode,e)))},d(r){r&&k(e),o.d(r)}}}function Fv(i){let e=(i[10].text||"")+"",t;return{c(){t=De(e)},m(n,o){S(n,t,o)},p(n,o){o&1024&&e!==(e=(n[10].text||"")+"")&&Qe(t,e)},d(n){n&&k(t)}}}function zv(i){let e=U("tooltip_episode_unfinished")+"",t;return{c(){t=De(e)},m(n,o){S(n,t,o)},p:Ce,d(n){n&&k(t)}}}function am(i){let e,t;return{c(){e=T("div"),t=De(i[0]),f(e,"class","time svelte-l51fc1")},m(n,o){S(n,e,o),p(e,t)},p(n,o){o&1&&Qe(t,n[0])},d(n){n&&k(e)}}}function Hv(i){let e,t,n,o,r,l,a=i[10]&&sm(i),s=!i[2]&&am(i);return{c(){e=T("div"),t=T("div"),o=B(),r=T("div"),a&&a.c(),l=B(),s&&s.c(),f(t,"class","preview svelte-l51fc1"),f(t,"style",n=`width: ${i[3]}px; height: ${i[4]}px; background-image: url(${i[5]}); background-size: ${i[6]}px ${i[7]}px; background-position: ${i[8]}px ${i[9]}px; transform: translateY(${i[11]%180?-35:0}px) rotate(${i[11]}deg);`),f(r,"class","episode svelte-l51fc1"),f(e,"class","timeline-preview svelte-l51fc1"),O(e,"mobile",i[1])},m(u,c){S(u,e,c),p(e,t),p(e,o),p(e,r),a&&a.m(r,null),p(e,l),s&&s.m(e,null)},p(u,[c]){c&3064&&n!==(n=`width: ${u[3]}px; height: ${u[4]}px; background-image: url(${u[5]}); background-size: ${u[6]}px ${u[7]}px; background-position: ${u[8]}px ${u[9]}px; transform: translateY(${u[11]%180?-35:0}px) rotate(${u[11]}deg);`)&&f(t,"style",n),u[10]?a?a.p(u,c):(a=sm(u),a.c(),a.m(r,null)):a&&(a.d(1),a=null),u[2]?s&&(s.d(1),s=null):s?s.p(u,c):(s=am(u),s.c(),s.m(e,null)),c&2&&O(e,"mobile",u[1])},i:Ce,o:Ce,d(u){u&&k(e),a&&a.d(),s&&s.d()}}}var kl=150;function Uv(i,e,t){let n,{time:o=""}=e,{isMobile:r=!1}=e,{videoEpisodes:l=[]}=e,{previewThumbsData:a}=e,{progress:s=0}=e,{duration:u=0}=e,{isInteractive:c=!1}=e,h=rt().ui.rotateAlpha;H(i,h,N=>t(11,n=N));let w,g,C,v,E,y,b,P;function A(){let N=a.frameWidth,te=a.frameHeight;return N>kl?(te=te/N*kl,N=kl):te>kl&&(N=N/te*kl,te=kl),{width:N,height:te}}function M(N){let te;a.isUV?te=Math.floor(u*N/a.frequency):te=Math.min(a.countTotal,Math.max(0,Math.floor(a.countTotal*N)));let _e=Math.floor(te/a.countPerImage),X=Math.floor(te%a.countPerImage/a.countPerRow),$=te%a.countPerRow,se=Math.floor(a.countPerImage/a.countPerRow);!a.isUV&&_e===Math.floor(a.countTotal/a.countPerImage)&&(se=Math.floor(a.countTotal%a.countPerImage/a.countPerRow),a.countTotal%a.countPerImage%a.countPerRow>0&&se++);let L=a.countPerRow;!a.isUV&&_e===Math.floor(a.countTotal/a.countPerImage)&&a.countTotal%a.countPerImage>0&&(L=Math.min(a.countPerRow,a.countTotal%a.countPerImage));let K=w*L,x=g*se,Z=-$*w,F=-X*g;return{imgSrc:a.links[_e],imgWidth:K,imgHeight:x,imgOffsetX:Z,imgOffsetY:F}}return i.$$set=N=>{"time"in N&&t(0,o=N.time),"isMobile"in N&&t(1,r=N.isMobile),"videoEpisodes"in N&&t(13,l=N.videoEpisodes),"previewThumbsData"in N&&t(14,a=N.previewThumbsData),"progress"in N&&t(15,s=N.progress),"duration"in N&&t(16,u=N.duration),"isInteractive"in N&&t(2,c=N.isInteractive)},i.$$.update=()=>{i.$$.dirty&32768&&t(5,{imgSrc:C,imgWidth:v,imgHeight:E,imgOffsetX:y,imgOffsetY:b}=M(s),C,(t(6,v),t(15,s)),(t(7,E),t(15,s)),(t(8,y),t(15,s)),(t(9,b),t(15,s))),i.$$.dirty&106496&&t(10,P=Ur(s,u,l))},t(3,{width:w,height:g}=A(),w,t(4,g)),[o,r,c,w,g,C,v,E,y,b,P,n,h,l,a,s,u]}var pu=class extends j{constructor(e){super(),G(this,e,Uv,Hv,W,{time:0,isMobile:1,videoEpisodes:13,previewThumbsData:14,progress:15,duration:16,isInteractive:2},Ov)}},um=pu;function Kv(i){Pe(i,"svelte-5lzly8",".time.svelte-5lzly8{display:inline-block;padding:6px 10px;border-radius:3px;color:var(--white);background-color:rgba(41, 41, 41, .8)}")}function Wv(i){let e,t;return{c(){e=T("span"),t=De(i[8]),f(e,"class","time svelte-5lzly8")},m(n,o){S(n,e,o),p(e,t)},p(n,o){o[0]&256&&Qe(t,n[8])},i:Ce,o:Ce,d(n){n&&k(e)}}}function jv(i){let e,t;return e=new um({props:{time:i[8],isMobile:i[11],videoEpisodes:i[4],previewThumbsData:i[22],progress:i[9],duration:i[2],isInteractive:i[24]}}),{c(){q(e.$$.fragment)},m(n,o){V(e,n,o),t=!0},p(n,o){let r={};o[0]&256&&(r.time=n[8]),o[0]&2048&&(r.isMobile=n[11]),o[0]&16&&(r.videoEpisodes=n[4]),o[0]&512&&(r.progress=n[9]),o[0]&4&&(r.duration=n[2]),e.$set(r)},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){_(e.$$.fragment,n),t=!1},d(n){R(e,n)}}}function Gv(i){let e,t,n,o,r=[jv,Wv],l=[];function a(s,u){return s[15].features.timelinePreview&&s[22]&&!s[1]?0:1}return e=a(i,[-1,-1]),t=l[e]=r[e](i),{c(){t.c(),n=mt()},m(s,u){l[e].m(s,u),S(s,n,u),o=!0},p(s,u){let c=e;e=a(s,u),e===c?l[e].p(s,u):(ce(),_(l[c],1,1,()=>{l[c]=null}),de(),t=l[e],t?t.p(s,u):(t=l[e]=r[e](s),t.c()),d(t,1),t.m(n.parentNode,n))},i(s){o||(d(t),o=!0)},o(s){_(t),o=!1},d(s){s&&k(n),l[e].d(s)}}}function Qv(i){let e,t,n,o,r,l=[i[10]],a={$$slots:{default:[Gv]},$$scope:{ctx:i}};for(let c=0;c<l.length;c+=1)a=ue(a,l[c]);e=new rm({props:a});function s(c){i[43](c)}let u={isActiveLive:i[12],isMobile:i[11],ariaLabel:U("aria_timeline"),ariaValueMin:0,ariaValueMax:i[2],ariaValueNow:Math.round(i[7]*100),ariaValueText:U("aria_timeline_value",{position:i[6],duration:i[5]}),loadedProgress:i[13],filledProgress:i[7],handleProgress:i[7],videoEpisodes:i[4],onPointerDown:i[29],onHandleMove:i[30],onPointerMove:i[33],onPointerUp:i[31],onPointerEnter:i[32],onPointerLeave:i[34],onDisabledClick:i[27],isInteractive:i[24],disabled:i[14].has("TIMELINE"),hideHandel:i[3]};return i[0]!==void 0&&(u.ref=i[0]),n=new vl({props:u}),ge.push(()=>He(n,"ref",s)),{c(){q(e.$$.fragment),t=B(),q(n.$$.fragment)},m(c,m){V(e,c,m),S(c,t,m),V(n,c,m),r=!0},p(c,m){let h=m[0]&1024?Ne(l,[$f(c[10])]):{};m[0]&2838|m[1]&524288&&(h.$$scope={dirty:m,ctx:c}),e.$set(h);let w={};m[0]&4096&&(w.isActiveLive=c[12]),m[0]&2048&&(w.isMobile=c[11]),m[0]&4&&(w.ariaValueMax=c[2]),m[0]&128&&(w.ariaValueNow=Math.round(c[7]*100)),m[0]&96&&(w.ariaValueText=U("aria_timeline_value",{position:c[6],duration:c[5]})),m[0]&8192&&(w.loadedProgress=c[13]),m[0]&128&&(w.filledProgress=c[7]),m[0]&128&&(w.handleProgress=c[7]),m[0]&16&&(w.videoEpisodes=c[4]),m[0]&16384&&(w.disabled=c[14].has("TIMELINE")),m[0]&8&&(w.hideHandel=c[3]),!o&&m[0]&1&&(o=!0,w.ref=c[0],ze(()=>o=!1)),n.$set(w)},i(c){r||(d(e.$$.fragment,c),d(n.$$.fragment,c),r=!0)},o(c){_(e.$$.fragment,c),_(n.$$.fragment,c),r=!1},d(c){c&&k(t),R(e,c),R(n,c)}}}function Yv(i,e,t){var fe;let n,o,r,l,a,s,u,c,m,h,w,{showTimeline:g=!1}=e,{ref:C=void 0}=e,v=rt(),E=Wt(),y=v.state.bufferedProgress$;H(i,y,Te=>t(13,h=Te));let b=v.state.positionWithScrubbing$;H(i,b,Te=>t(41,s=Te));let P=v.state.duration$;H(i,P,Te=>t(2,r=Te));let A=v.state.isLive$;H(i,A,Te=>t(1,o=Te));let M=v.state.isActiveLive$;H(i,M,Te=>t(12,m=Te));let N=v.ui.isMobile;H(i,N,Te=>t(11,c=Te));let te=E.features.episodes?v.actions.internal.getVideoEpisodes():void 0,_e=v.actions.internal.getPreviewThumbsData(),X=v.state.interactiveEpisodes$;H(i,X,Te=>t(42,u=Te));let $=v.state.isInteractive,se=v.state.isInteractiveTime$;H(i,se,Te=>t(3,l=Te));let L=v.state.isInteractiveExpectation$;H(i,L,Te=>t(40,a=Te));let K=v.actions.internal.correctSeekTimeToInteractive,x=(fe=v.callbacks)==null?void 0:fe.onDisabledTimelineClick,Z=v.ui.controls.disabledControls$;H(i,Z,Te=>t(14,w=Te));let F,Q,J,oe,Be=!1,Ye="",Ie=0,Re=0,qe=0,xe;function ae(Te){return!K||!$?Te:K(Te*r)/r}function he(Te){v.actions.internal.startScrubbing(ae(Te))}function ft(Te){l||v.actions.internal.progressScrubbing(ae(Te))}function ke(Te){v.actions.internal.completeScrubbing(ae(Te)),t(36,Be=!1)}function Ke(Te,We,le){Ge(Te,We,le),t(36,Be=!0)}function _t(Te,We,le){Ge(Te,We,le),t(36,Be=!0)}function Ze(){t(36,Be=!1)}function Ge(Te,We,le){t(9,qe=ae(Te)),t(37,Ie=We),le&&t(38,Re=le),t(8,Ye=Xe(Te))}function Xe(Te){let We=Bn((o?1-Te:Te)*r);return o?`-${We}`:We}function et(Te){C=Te,t(0,C)}return i.$$set=Te=>{"showTimeline"in Te&&t(35,g=Te.showTimeline),"ref"in Te&&t(0,C=Te.ref)},i.$$.update=()=>{i.$$.dirty[1]&2048&&t(4,F=$?u:te),i.$$.dirty[0]&4&&t(5,Q=Bn(r)),i.$$.dirty[1]&1024&&t(6,J=Bn(s)),i.$$.dirty[0]&4|i.$$.dirty[1]&1024&&t(7,oe=s/r),i.$$.dirty[0]&8|i.$$.dirty[1]&512&&t(39,xe=a||l),i.$$.dirty[0]&2|i.$$.dirty[1]&496&&t(10,n={containerWidth:Re,translateXPx:Ie,translateYPx:$&&_e?-36:-16,active:Be&&g&&!xe,pointer:!E.features.timelinePreview||!_e||o})},[C,o,r,l,F,Q,J,oe,Ye,qe,n,c,m,h,w,E,y,b,P,A,M,N,_e,X,$,se,L,x,Z,he,ft,ke,Ke,_t,Ze,g,Be,Ie,Re,xe,a,s,u,et]}var _u=class extends j{constructor(e){super(),G(this,e,Yv,Qv,W,{showTimeline:35,ref:0},Kv,[-1,-1])}},fm=_u;function Zv(i){let e,t;return e=new vl({props:{ariaValueMin:0,ariaValueMax:i[0],ariaValueNow:Math.round(i[3]*100),ariaValueText:U("aria_timeline_value",{position:i[2],duration:i[1]}),filledProgress:i[3],isAds:!0,hideHandel:!0,squareBorders:i[4]}}),{c(){q(e.$$.fragment)},m(n,o){V(e,n,o),t=!0},p(n,[o]){let r={};o&1&&(r.ariaValueMax=n[0]),o&8&&(r.ariaValueNow=Math.round(n[3]*100)),o&6&&(r.ariaValueText=U("aria_timeline_value",{position:n[2],duration:n[1]})),o&8&&(r.filledProgress=n[3]),o&16&&(r.squareBorders=n[4]),e.$set(r)},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){_(e.$$.fragment,n),t=!1},d(n){R(e,n)}}}function Xv(i,e,t){let n,{position:o=0}=e,{duration:r=0}=e,a=rt().ui.isMobile;H(i,a,m=>t(4,n=m));let s,u,c;return i.$$set=m=>{"position"in m&&t(6,o=m.position),"duration"in m&&t(0,r=m.duration)},i.$$.update=()=>{i.$$.dirty&1&&t(1,s=Bn(r)),i.$$.dirty&64&&t(2,u=Bn(o)),i.$$.dirty&65&&t(3,c=o/r)},[r,s,u,c,n,a,o]}var hu=class extends j{constructor(e){super(),G(this,e,Xv,Zv,W,{position:6,duration:0})}},Kr=hu;function Jv(i){Pe(i,"svelte-1gqonyf",".timeline.svelte-1gqonyf{position:relative;pointer-events:all;display:flex;align-items:center;bottom:0;width:100%;min-width:86px;padding:3px 10px 4px;box-sizing:border-box}.timeline.mobile.svelte-1gqonyf{height:16px;padding:6px 12px 7px;margin-top:6px}.timeline-stub.svelte-1gqonyf{width:100%;min-width:20px}.timeline-stub.mobile.svelte-1gqonyf{height:8px}")}function xv(i){let e;return{c(){e=T("div"),f(e,"class","timeline-stub svelte-1gqonyf"),O(e,"mobile",i[3])},m(t,n){S(t,e,n)},p(t,n){n&8&&O(e,"mobile",t[3])},i:Ce,o:Ce,d(t){t&&k(e)}}}function $v(i){let e,t,n,o,r=[t4,e4],l=[];function a(s,u){return s[1]?0:1}return t=a(i,-1),n=l[t]=r[t](i),{c(){e=T("div"),n.c(),f(e,"class","timeline svelte-1gqonyf"),O(e,"mobile",i[3])},m(s,u){S(s,e,u),l[t].m(e,null),o=!0},p(s,u){let c=t;t=a(s,u),t===c?l[t].p(s,u):(ce(),_(l[c],1,1,()=>{l[c]=null}),de(),n=l[t],n?n.p(s,u):(n=l[t]=r[t](s),n.c()),d(n,1),n.m(e,null)),(!o||u&8)&&O(e,"mobile",s[3])},i(s){o||(d(n),o=!0)},o(s){_(n),o=!1},d(s){s&&k(e),l[t].d()}}}function e4(i){let e,t,n;function o(l){i[14](l)}let r={showTimeline:i[2]};return i[0]!==void 0&&(r.ref=i[0]),e=new fm({props:r}),ge.push(()=>He(e,"ref",o)),{c(){q(e.$$.fragment)},m(l,a){V(e,l,a),n=!0},p(l,a){let s={};a&4&&(s.showTimeline=l[2]),!t&&a&1&&(t=!0,s.ref=l[0],ze(()=>t=!1)),e.$set(s)},i(l){n||(d(e.$$.fragment,l),n=!0)},o(l){_(e.$$.fragment,l),n=!1},d(l){R(e,l)}}}function t4(i){let e,t;return e=new Kr({props:{position:i[4],duration:i[5]}}),{c(){q(e.$$.fragment)},m(n,o){V(e,n,o),t=!0},p(n,o){let r={};o&16&&(r.position=n[4]),o&32&&(r.duration=n[5]),e.$set(r)},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){_(e.$$.fragment,n),t=!1},d(n){R(e,n)}}}function i4(i){let e,t,n,o,r=[$v,xv],l=[];function a(s,u){return s[2]?0:1}return e=a(i,-1),t=l[e]=r[e](i),{c(){t.c(),n=mt()},m(s,u){l[e].m(s,u),S(s,n,u),o=!0},p(s,[u]){let c=e;e=a(s,u),e===c?l[e].p(s,u):(ce(),_(l[c],1,1,()=>{l[c]=null}),de(),t=l[e],t?t.p(s,u):(t=l[e]=r[e](s),t.c()),d(t,1),t.m(n.parentNode,n))},i(s){o||(d(t),o=!0)},o(s){_(t),o=!1},d(s){s&&k(n),l[e].d(s)}}}function n4(i,e,t){let n,o,r,l,{isAds:a=!1}=e,{canRewindLive:s}=e,{isRewindableLive:u}=e,{isHidden:c=!1}=e,{ref:m=void 0}=e,h=rt(),w=h.state.isLive$;H(i,w,b=>t(13,n=b));let g=h.ads.duration;H(i,g,b=>t(5,l=b));let C=h.ads.position;H(i,C,b=>t(4,r=b));let v=h.ui.isMobile;H(i,v,b=>t(3,o=b));let E;function y(b){m=b,t(0,m)}return i.$$set=b=>{"isAds"in b&&t(1,a=b.isAds),"canRewindLive"in b&&t(10,s=b.canRewindLive),"isRewindableLive"in b&&t(11,u=b.isRewindableLive),"isHidden"in b&&t(12,c=b.isHidden),"ref"in b&&t(0,m=b.ref)},i.$$.update=()=>{i.$$.dirty&15362&&t(2,E=!c&&(!n||n&&s&&u||a))},[m,a,E,o,r,l,w,g,C,v,s,u,c,n,y]}var gu=class extends j{constructor(e){super(),G(this,e,n4,i4,W,{isAds:1,canRewindLive:10,isRewindableLive:11,isHidden:12,ref:0},Jv)}},Wr=gu;import{noop as a4}from"@vkontakte/videoplayer-shared";function o4(i){let e,t,n,o,r,l=i[2].default,a=Le(l,i,i[1],null),s=[{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[0]],u={};for(let c=0;c<s.length;c+=1)u=ue(u,s[c]);return{c(){e=D("svg"),a&&a.c(),t=D("path"),n=D("path"),o=D("path"),f(t,"fill","#fff"),f(t,"fill-rule","evenodd"),f(t,"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"),f(t,"clip-rule","evenodd"),f(n,"fill","#fff"),f(n,"fill-rule","evenodd"),f(n,"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"),f(n,"clip-rule","evenodd"),f(o,"fill","#fff"),f(o,"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"),we(e,u)},m(c,m){S(c,e,m),a&&a.m(e,null),p(e,t),p(e,n),p(e,o),r=!0},p(c,[m]){a&&a.p&&(!r||m&2)&&Me(a,l,c,c[1],r?Ae(l,c[1],m,null):Ve(c[1]),null),we(e,u=Ne(s,[{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"},m&1&&c[0]]))},i(c){r||(d(a,c),r=!0)},o(c){_(a,c),r=!1},d(c){c&&k(e),a&&a.d(c)}}}function l4(i,e,t){let{$$slots:n={},$$scope:o}=e;return i.$$set=r=>{t(0,e=ue(ue({},e),ye(r))),"$$scope"in r&&t(1,o=r.$$scope)},e=ye(e),[e,o,n]}var bu=class extends j{constructor(e){super(),G(this,e,l4,o4,W,{})}},cm=bu;function r4(i){let e,t,n,o=i[2].default,r=Le(o,i,i[1],null),l=[{xmlns:"http://www.w3.org/2000/svg"},{width:"12"},{height:"13"},{fill:"none"},{"aria-hidden":"true"},{"data-testid":"chevron-light-icon"},{role:"img"},i[0]],a={};for(let s=0;s<l.length;s+=1)a=ue(a,l[s]);return{c(){e=D("svg"),r&&r.c(),t=D("path"),f(t,"fill","#fff"),f(t,"fill-rule","evenodd"),f(t,"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"),f(t,"clip-rule","evenodd"),f(t,"opacity",".7"),we(e,a)},m(s,u){S(s,e,u),r&&r.m(e,null),p(e,t),n=!0},p(s,[u]){r&&r.p&&(!n||u&2)&&Me(r,o,s,s[1],n?Ae(o,s[1],u,null):Ve(s[1]),null),we(e,a=Ne(l,[{xmlns:"http://www.w3.org/2000/svg"},{width:"12"},{height:"13"},{fill:"none"},{"aria-hidden":"true"},{"data-testid":"chevron-light-icon"},{role:"img"},u&1&&s[0]]))},i(s){n||(d(r,s),n=!0)},o(s){_(r,s),n=!1},d(s){s&&k(e),r&&r.d(s)}}}function s4(i,e,t){let{$$slots:n={},$$scope:o}=e;return i.$$set=r=>{t(0,e=ue(ue({},e),ye(r))),"$$scope"in r&&t(1,o=r.$$scope)},e=ye(e),[e,o,n]}var vu=class extends j{constructor(e){super(),G(this,e,s4,r4,W,{})}},dm=vu;function u4(i){Pe(i,"svelte-1yhs2ga",".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 f4(i){let e,t,n,o;e=new cm({});function r(s,u){if(s[4]==="FULL")return m4;if(s[4]==="COUNT")return d4}let l=r(i,-1),a=l&&l(i);return{c(){q(e.$$.fragment),t=B(),a&&a.c(),n=mt()},m(s,u){V(e,s,u),S(s,t,u),a&&a.m(s,u),S(s,n,u),o=!0},p(s,u){l===(l=r(s,u))&&a?a.p(s,u):(a&&a.d(1),a=l&&l(s),a&&(a.c(),a.m(n.parentNode,n)))},i(s){o||(d(e.$$.fragment,s),o=!0)},o(s){_(e.$$.fragment,s),o=!1},d(s){s&&(k(t),k(n)),R(e,s),a&&a.d(s)}}}function c4(i){let e,t,n,o,r,l;return r=new dm({}),{c(){e=T("span"),t=De(i[2]),n=B(),o=T("div"),q(r.$$.fragment),f(e,"class","text mobile svelte-1yhs2ga"),f(o,"class","chevron-episodes svelte-1yhs2ga")},m(a,s){S(a,e,s),p(e,t),S(a,n,s),S(a,o,s),V(r,o,null),l=!0},p(a,s){(!l||s&4)&&Qe(t,a[2])},i(a){l||(d(r.$$.fragment,a),l=!0)},o(a){_(r.$$.fragment,a),l=!1},d(a){a&&(k(e),k(n),k(o)),R(r)}}}function d4(i){let e,t=i[0].length+"",n;return{c(){e=T("span"),n=De(t),f(e,"class","text count svelte-1yhs2ga")},m(o,r){S(o,e,r),p(e,n)},p(o,r){r&1&&t!==(t=o[0].length+"")&&Qe(n,t)},d(o){o&&k(e)}}}function m4(i){let e,t;return{c(){e=T("span"),t=De(i[2]),f(e,"class","text svelte-1yhs2ga")},m(n,o){S(n,e,o),p(e,t)},p(n,o){o&4&&Qe(t,n[2])},d(n){n&&k(e)}}}function p4(i){let e,t,n,o,r=[c4,f4],l=[];function a(s,u){return s[6]?0:1}return e=a(i,-1),t=l[e]=r[e](i),{c(){t.c(),n=mt()},m(s,u){l[e].m(s,u),S(s,n,u),o=!0},p(s,u){let c=e;e=a(s,u),e===c?l[e].p(s,u):(ce(),_(l[c],1,1,()=>{l[c]=null}),de(),t=l[e],t?t.p(s,u):(t=l[e]=r[e](s),t.c()),d(t,1),t.m(n.parentNode,n))},i(s){o||(d(t),o=!0)},o(s){_(t),o=!1},d(s){s&&k(n),l[e].d(s)}}}function _4(i){let e,t,n;function o(l){i[19](l)}let r={className:"w-max btn-full-opacity "+(i[6]?"px-0":""),testId:"btn-episodes",click:i[12],disabled:!i[7],ariaExpanded:i[3],ariaLabel:i[5],$$slots:{default:[p4]},$$scope:{ctx:i}};return i[1]!==void 0&&(r.ref=i[1]),e=new wt({props:r}),ge.push(()=>He(e,"ref",o)),{c(){q(e.$$.fragment)},m(l,a){V(e,l,a),n=!0},p(l,[a]){let s={};a&64&&(s.className="w-max btn-full-opacity "+(l[6]?"px-0":"")),a&8&&(s.ariaExpanded=l[3]),a&32&&(s.ariaLabel=l[5]),a&8388693&&(s.$$scope={dirty:a,ctx:l}),!t&&a&2&&(t=!0,s.ref=l[1],ze(()=>t=!1)),e.$set(s)},i(l){n||(d(e.$$.fragment,l),n=!0)},o(l){_(e.$$.fragment,l),n=!1},d(l){R(e,l)}}}function h4(i,e,t){var X,$,se;let n,o,r,l,a,s,{position:u=0}=e,{duration:c=0}=e,{timeCodes:m=[]}=e,h=rt(),w=($=(X=h.callbacks)==null?void 0:X.onEpisodeChanged)!=null?$:a4,g=!!((se=h.callbacks)!=null&&se.onEpisodeClicked),C=h.ui.currentGridType$;H(i,C,L=>t(18,a=L));let v=h.ui.episodes.openedByKeyboard$;H(i,v,L=>t(17,l=L));let E=h.ui.episodes.panelOpened$;H(i,E,L=>t(3,r=L));let y=h.ui.isMobile;H(i,y,L=>t(6,s=L));let b,P=L=>{var x,Z,F;if(!!((x=h.callbacks)!=null&&x.onEpisodeClicked)){let Q=dl(L);v.set(Q),E.set(!0),(F=(Z=h.callbacks)==null?void 0:Z.onEpisodeClicked)==null||F.call(Z,Q)}},A,M,N,te=(L,K,x)=>pt(this,null,function*(){yield Xn(),(L==null?void 0:L.getAttribute("aria-expanded"))==="false"&&K&&!x&&(v.set(!1),L.focus())});function _e(L){b=L,t(1,b)}return i.$$set=L=>{"position"in L&&t(13,u=L.position),"duration"in L&&t(14,c=L.duration),"timeCodes"in L&&t(0,m=L.timeCodes)},i.$$.update=()=>{if(i.$$.dirty&24576&&t(16,n=u/c),i.$$.dirty&114689){let L=Ur(n,c,m);L&&(A==null?void 0:A.text)!==L.text&&(w(L),t(15,A=L))}i.$$.dirty&32768&&t(2,o=(A==null?void 0:A.text)||""),i.$$.dirty&262144&&(qn(a,"xl")?t(4,M="FULL"):qn(a,"m")&&G1(a,"xl")?t(4,M="COUNT"):t(4,M="SHORT")),i.$$.dirty&4&&t(5,N=`${U("tooltip_episodes")}: ${o}`),i.$$.dirty&131082&&te(b,l,r)},[m,b,o,r,M,N,s,g,C,v,E,y,P,u,c,A,n,l,a,_e]}var yu=class extends j{constructor(e){super(),G(this,e,h4,_4,W,{position:13,duration:14,timeCodes:0},u4)}},jr=yu;function g4(i){let e,t,n,o,r=i[2].default,l=Le(r,i,i[1],null),a=[{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[0]],s={};for(let u=0;u<a.length;u+=1)s=ue(s,a[u]);return{c(){e=D("svg"),l&&l.c(),t=D("path"),n=D("path"),f(t,"fill","#fff"),f(t,"fill-rule","evenodd"),f(t,"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"),f(t,"clip-rule","evenodd"),f(n,"fill","#fff"),f(n,"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"),we(e,s)},m(u,c){S(u,e,c),l&&l.m(e,null),p(e,t),p(e,n),o=!0},p(u,[c]){l&&l.p&&(!o||c&2)&&Me(l,r,u,u[1],o?Ae(r,u[1],c,null):Ve(u[1]),null),we(e,s=Ne(a,[{xmlns:"http://www.w3.org/2000/svg"},{width:"24"},{height:"24"},{fill:"none"},{"aria-hidden":"true"},{"data-testid":"seek-to-interactive-icon"},{role:"img"},c&1&&u[0]]))},i(u){o||(d(l,u),o=!0)},o(u){_(l,u),o=!1},d(u){u&&k(e),l&&l.d(u)}}}function b4(i,e,t){let{$$slots:n={},$$scope:o}=e;return i.$$set=r=>{t(0,e=ue(ue({},e),ye(r))),"$$scope"in r&&t(1,o=r.$$scope)},e=ye(e),[e,o,n]}var wu=class extends j{constructor(e){super(),G(this,e,b4,g4,W,{})}},mm=wu;function v4(i){let e,t;return e=new mm({}),{c(){q(e.$$.fragment)},m(n,o){V(e,n,o),t=!0},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){_(e.$$.fragment,n),t=!1},d(n){R(e,n)}}}function y4(i){let e,t,n;function o(l){i[4](l)}let r={className:i[1]?"hidden":"",testId:"btn-seek-to-interactive",ariaLabel:U("tooltip_interactive_seek"),disabled:i[2],click:i[3],$$slots:{default:[v4]},$$scope:{ctx:i}};return i[0]!==void 0&&(r.ref=i[0]),e=new wt({props:r}),ge.push(()=>He(e,"ref",o)),{c(){q(e.$$.fragment)},m(l,a){V(e,l,a),n=!0},p(l,[a]){let s={};a&2&&(s.className=l[1]?"hidden":""),a&4&&(s.disabled=l[2]),a&8&&(s.click=l[3]),a&32&&(s.$$scope={dirty:a,ctx:l}),!t&&a&1&&(t=!0,s.ref=l[0],ze(()=>t=!1)),e.$set(s)},i(l){n||(d(e.$$.fragment,l),n=!0)},o(l){_(e.$$.fragment,l),n=!1},d(l){R(e,l)}}}function w4(i,e,t){let{ref:n=void 0}=e,{hidden:o=!1}=e,{disabled:r=!1}=e,{click:l}=e;function a(s){n=s,t(0,n)}return i.$$set=s=>{"ref"in s&&t(0,n=s.ref),"hidden"in s&&t(1,o=s.hidden),"disabled"in s&&t(2,r=s.disabled),"click"in s&&t(3,l=s.click)},[n,o,r,l,a]}var ku=class extends j{constructor(e){super(),G(this,e,w4,y4,W,{ref:0,hidden:1,disabled:2,click:3})}},Gr=ku;function k4(i){let e,t,n,o,r=i[2].default,l=Le(r,i,i[1],null),a=[{xmlns:"http://www.w3.org/2000/svg"},{width:"24"},{height:"24"},{fill:"none"},{"aria-hidden":"true"},{role:"img"},i[0]],s={};for(let u=0;u<a.length;u+=1)s=ue(s,a[u]);return{c(){e=D("svg"),l&&l.c(),t=D("path"),n=D("path"),f(t,"fill","#fff"),f(t,"fill-rule","evenodd"),f(t,"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"),f(t,"clip-rule","evenodd"),f(n,"fill","#fff"),f(n,"fill-rule","evenodd"),f(n,"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"),f(n,"class","_closed"),f(n,"clip-rule","evenodd"),we(e,s)},m(u,c){S(u,e,c),l&&l.m(e,null),p(e,t),p(e,n),o=!0},p(u,[c]){l&&l.p&&(!o||c&2)&&Me(l,r,u,u[1],o?Ae(r,u[1],c,null):Ve(u[1]),null),we(e,s=Ne(a,[{xmlns:"http://www.w3.org/2000/svg"},{width:"24"},{height:"24"},{fill:"none"},{"aria-hidden":"true"},{role:"img"},c&1&&u[0]]))},i(u){o||(d(l,u),o=!0)},o(u){_(l,u),o=!1},d(u){u&&k(e),l&&l.d(u)}}}function C4(i,e,t){let{$$slots:n={},$$scope:o}=e;return i.$$set=r=>{t(0,e=ue(ue({},e),ye(r))),"$$scope"in r&&t(1,o=r.$$scope)},e=ye(e),[e,o,n]}var Cu=class extends j{constructor(e){super(),G(this,e,C4,k4,W,{})}},pm=Cu;function S4(i){Pe(i,"svelte-17ceof5",'svg[data-testid="graph-open-icon"] ._closed{visibility:hidden;opacity:0}')}function T4(i){let e,t;return e=new pm({props:{"data-testid":i[0]?"graph-close-icon":"graph-open-icon"}}),{c(){q(e.$$.fragment)},m(n,o){V(e,n,o),t=!0},p(n,[o]){let r={};o&1&&(r["data-testid"]=n[0]?"graph-close-icon":"graph-open-icon"),e.$set(r)},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){_(e.$$.fragment,n),t=!1},d(n){R(e,n)}}}function P4(i,e,t){let{isOpened:n=!1}=e;return i.$$set=o=>{"isOpened"in o&&t(0,n=o.isOpened)},[n]}var Su=class extends j{constructor(e){super(),G(this,e,P4,T4,W,{isOpened:0},S4)}},_m=Su;function I4(i){let e,t;return e=new _m({props:{isOpened:i[3]}}),{c(){q(e.$$.fragment)},m(n,o){V(e,n,o),t=!0},p(n,o){let r={};o&8&&(r.isOpened=n[3]),e.$set(r)},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){_(e.$$.fragment,n),t=!1},d(n){R(e,n)}}}function E4(i){let e,t,n;function o(l){i[6](l)}let r={className:i[1]?"hidden":"",testId:"btn-graph",disabled:i[2],ariaLabel:i[5],click:i[4],$$slots:{default:[I4]},$$scope:{ctx:i}};return i[0]!==void 0&&(r.ref=i[0]),e=new wt({props:r}),ge.push(()=>He(e,"ref",o)),{c(){q(e.$$.fragment)},m(l,a){V(e,l,a),n=!0},p(l,[a]){let s={};a&2&&(s.className=l[1]?"hidden":""),a&4&&(s.disabled=l[2]),a&32&&(s.ariaLabel=l[5]),a&16&&(s.click=l[4]),a&136&&(s.$$scope={dirty:a,ctx:l}),!t&&a&1&&(t=!0,s.ref=l[0],ze(()=>t=!1)),e.$set(s)},i(l){n||(d(e.$$.fragment,l),n=!0)},o(l){_(e.$$.fragment,l),n=!1},d(l){R(e,l)}}}function L4(i,e,t){let{ref:n=void 0}=e,{hidden:o=!1}=e,{disabled:r=!1}=e,{graphIsOpened:l=!1}=e,{click:a}=e,s;function u(c){n=c,t(0,n)}return i.$$set=c=>{"ref"in c&&t(0,n=c.ref),"hidden"in c&&t(1,o=c.hidden),"disabled"in c&&t(2,r=c.disabled),"graphIsOpened"in c&&t(3,l=c.graphIsOpened),"click"in c&&t(4,a=c.click)},i.$$.update=()=>{i.$$.dirty&8&&t(5,s=l?U("tooltip_interactive_graph_on"):U("tooltip_interactive_graph_off"))},[n,o,r,l,a,s,u]}var Tu=class extends j{constructor(e){super(),G(this,e,L4,E4,W,{ref:0,hidden:1,disabled:2,graphIsOpened:3,click:4})}},Qr=Tu;function A4(i){let e,t,n,o=i[2].default,r=Le(o,i,i[1],null),l=[{xmlns:"http://www.w3.org/2000/svg"},{width:"24"},{height:"24"},{fill:"none"},{"aria-hidden":"true"},{"data-testid":"replay-icon"},{role:"img"},i[0]],a={};for(let s=0;s<l.length;s+=1)a=ue(a,l[s]);return{c(){e=D("svg"),r&&r.c(),t=D("path"),f(t,"fill","#fff"),f(t,"d","M12 9.096a.4.4 0 0 1-.67.296L7.044 5.493a.67.67 0 0 1 0-.986L11.33.608a.4.4 0 0 1 .67.296V4a8 8 0 1 1-8 8 1 1 0 1 1 2 0 6 6 0 1 0 6-6z"),we(e,a)},m(s,u){S(s,e,u),r&&r.m(e,null),p(e,t),n=!0},p(s,[u]){r&&r.p&&(!n||u&2)&&Me(r,o,s,s[1],n?Ae(o,s[1],u,null):Ve(s[1]),null),we(e,a=Ne(l,[{xmlns:"http://www.w3.org/2000/svg"},{width:"24"},{height:"24"},{fill:"none"},{"aria-hidden":"true"},{"data-testid":"replay-icon"},{role:"img"},u&1&&s[0]]))},i(s){n||(d(r,s),n=!0)},o(s){_(r,s),n=!1},d(s){s&&k(e),r&&r.d(s)}}}function M4(i,e,t){let{$$slots:n={},$$scope:o}=e;return i.$$set=r=>{t(0,e=ue(ue({},e),ye(r))),"$$scope"in r&&t(1,o=r.$$scope)},e=ye(e),[e,o,n]}var Pu=class extends j{constructor(e){super(),G(this,e,M4,A4,W,{})}},Yr=Pu;import{noop as V4}from"@vkontakte/videoplayer-shared";function R4(i){Pe(i,"svelte-1ot3duq",".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 hm(i){let e;return{c(){e=T("div"),f(e,"class","icon-background-mobile svelte-1ot3duq")},m(t,n){S(t,e,n)},d(t){t&&k(e)}}}function B4(i){let e,t,n,o,r=i[1]&&hm(i);return n=new Yr({}),{c(){r&&r.c(),e=B(),t=T("div"),q(n.$$.fragment),f(t,"class","svelte-1ot3duq"),O(t,"mobile",i[1])},m(l,a){r&&r.m(l,a),S(l,e,a),S(l,t,a),V(n,t,null),o=!0},p(l,a){l[1]?r||(r=hm(l),r.c(),r.m(e.parentNode,e)):r&&(r.d(1),r=null),(!o||a&2)&&O(t,"mobile",l[1])},i(l){o||(d(n.$$.fragment,l),o=!0)},o(l){_(n.$$.fragment,l),o=!1},d(l){l&&(k(e),k(t)),r&&r.d(l),R(n)}}}function q4(i){let e,t,n;function o(l){i[5](l)}let r={className:(i[1]?"btn-m--play":"")+" "+i[3],testId:"btn-replay",ariaLabel:U("tooltip_restart"),disabled:i[2],click:i[4],ariaKeyShortCut:io.KeyK,$$slots:{default:[B4]},$$scope:{ctx:i}};return i[0]!==void 0&&(r.ref=i[0]),e=new wt({props:r}),ge.push(()=>He(e,"ref",o)),{c(){q(e.$$.fragment)},m(l,a){V(e,l,a),n=!0},p(l,[a]){let s={};a&10&&(s.className=(l[1]?"btn-m--play":"")+" "+l[3]),a&4&&(s.disabled=l[2]),a&16&&(s.click=l[4]),a&66&&(s.$$scope={dirty:a,ctx:l}),!t&&a&1&&(t=!0,s.ref=l[0],ze(()=>t=!1)),e.$set(s)},i(l){n||(d(e.$$.fragment,l),n=!0)},o(l){_(e.$$.fragment,l),n=!1},d(l){R(e,l)}}}function D4(i,e,t){let{ref:n=void 0}=e,{isMobile:o=!1}=e,{disabled:r=!1}=e,{className:l=""}=e,{click:a=V4}=e;function s(u){n=u,t(0,n)}return i.$$set=u=>{"ref"in u&&t(0,n=u.ref),"isMobile"in u&&t(1,o=u.isMobile),"disabled"in u&&t(2,r=u.disabled),"className"in u&&t(3,l=u.className),"click"in u&&t(4,a=u.click)},[n,o,r,l,a,s]}var Iu=class extends j{constructor(e){super(),G(this,e,D4,q4,W,{ref:0,isMobile:1,disabled:2,className:3,click:4},R4)}},Ul=Iu;function N4(i){let e,t,n,o=i[2].default,r=Le(o,i,i[1],null),l=[{xmlns:"http://www.w3.org/2000/svg"},{width:"24"},{height:"24"},{fill:"none"},{"data-testid":"play-prev-chapter-icon"},{role:"img"},i[0]],a={};for(let s=0;s<l.length;s+=1)a=ue(a,l[s]);return{c(){e=D("svg"),r&&r.c(),t=D("path"),f(t,"fill","#fff"),f(t,"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"),we(e,a)},m(s,u){S(s,e,u),r&&r.m(e,null),p(e,t),n=!0},p(s,[u]){r&&r.p&&(!n||u&2)&&Me(r,o,s,s[1],n?Ae(o,s[1],u,null):Ve(s[1]),null),we(e,a=Ne(l,[{xmlns:"http://www.w3.org/2000/svg"},{width:"24"},{height:"24"},{fill:"none"},{"data-testid":"play-prev-chapter-icon"},{role:"img"},u&1&&s[0]]))},i(s){n||(d(r,s),n=!0)},o(s){_(r,s),n=!1},d(s){s&&k(e),r&&r.d(s)}}}function O4(i,e,t){let{$$slots:n={},$$scope:o}=e;return i.$$set=r=>{t(0,e=ue(ue({},e),ye(r))),"$$scope"in r&&t(1,o=r.$$scope)},e=ye(e),[e,o,n]}var Eu=class extends j{constructor(e){super(),G(this,e,O4,N4,W,{})}},gm=Eu;function F4(i){let e,t;return e=new gm({}),{c(){q(e.$$.fragment)},m(n,o){V(e,n,o),t=!0},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){_(e.$$.fragment,n),t=!1},d(n){R(e,n)}}}function z4(i){let e,t,n;function o(l){i[4](l)}let r={className:i[1]?"hidden":"",testId:"btn-play-prev-chapter",ariaLabel:U("tooltip_interactive_go_back"),disabled:i[2],click:i[3],$$slots:{default:[F4]},$$scope:{ctx:i}};return i[0]!==void 0&&(r.ref=i[0]),e=new wt({props:r}),ge.push(()=>He(e,"ref",o)),{c(){q(e.$$.fragment)},m(l,a){V(e,l,a),n=!0},p(l,[a]){let s={};a&2&&(s.className=l[1]?"hidden":""),a&4&&(s.disabled=l[2]),a&8&&(s.click=l[3]),a&32&&(s.$$scope={dirty:a,ctx:l}),!t&&a&1&&(t=!0,s.ref=l[0],ze(()=>t=!1)),e.$set(s)},i(l){n||(d(e.$$.fragment,l),n=!0)},o(l){_(e.$$.fragment,l),n=!1},d(l){R(e,l)}}}function H4(i,e,t){let{ref:n=void 0}=e,{hidden:o=!1}=e,{disabled:r=!1}=e,{click:l}=e;function a(s){n=s,t(0,n)}return i.$$set=s=>{"ref"in s&&t(0,n=s.ref),"hidden"in s&&t(1,o=s.hidden),"disabled"in s&&t(2,r=s.disabled),"click"in s&&t(3,l=s.click)},[n,o,r,l,a]}var Lu=class extends j{constructor(e){super(),G(this,e,H4,z4,W,{ref:0,hidden:1,disabled:2,click:3})}},Zr=Lu;import{noop as bm}from"@vkontakte/videoplayer-shared";function U4(i){Pe(i,"svelte-1x1zctw",".icon.svelte-1x1zctw{width:24px !important;height:24px !important;;}.error-stub.svelte-1x1zctw{display:flex;justify-content:center;align-items:center}.inner.svelte-1x1zctw{width:16px;height:16px;background-color:var(--white)}")}function K4(i){let e,t,n,o;return{c(){e=T("img"),f(e,"class","icon svelte-1x1zctw"),Ss(e.src,t=i[0])||f(e,"src",t),f(e,"aria-hidden","true")},m(r,l){S(r,e,l),n||(o=pe(e,"error",i[7]),n=!0)},p(r,l){l&1&&!Ss(e.src,t=r[0])&&f(e,"src",t)},d(r){r&&k(e),n=!1,o()}}}function W4(i){let e;return{c(){e=T("div"),e.innerHTML='<div class="inner svelte-1x1zctw"></div>',f(e,"class","icon error-stub svelte-1x1zctw")},m(t,n){S(t,e,n)},p:Ce,d(t){t&&k(e)}}}function j4(i){let e;function t(r,l){return r[5]?W4:K4}let n=t(i,-1),o=n(i);return{c(){o.c(),e=mt()},m(r,l){o.m(r,l),S(r,e,l)},p(r,l){n===(n=t(r,l))&&o?o.p(r,l):(o.d(1),o=n(r),o&&(o.c(),o.m(e.parentNode,e)))},d(r){r&&k(e),o.d(r)}}}function G4(i){let e,t;return e=new wt({props:{className:i[4]?"btn-full-opacity":"",ariaLabel:i[1],click:i[3],disabled:i[6],testId:i[2],$$slots:{default:[j4]},$$scope:{ctx:i}}}),{c(){q(e.$$.fragment)},m(n,o){V(e,n,o),t=!0},p(n,[o]){let r={};o&16&&(r.className=n[4]?"btn-full-opacity":""),o&2&&(r.ariaLabel=n[1]),o&8&&(r.click=n[3]),o&64&&(r.disabled=n[6]),o&4&&(r.testId=n[2]),o&545&&(r.$$scope={dirty:o,ctx:n}),e.$set(r)},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){_(e.$$.fragment,n),t=!1},d(n){R(e,n)}}}function Q4(i,e,t){let n,o,r,{iconUrl:l}=e,{ariaLabel:a}=e,{disabled:s=!1}=e,{testId:u}=e,{onClick:c=bm}=e,m=()=>{t(5,r=!0)};return i.$$set=h=>{"iconUrl"in h&&t(0,l=h.iconUrl),"ariaLabel"in h&&t(1,a=h.ariaLabel),"disabled"in h&&t(8,s=h.disabled),"testId"in h&&t(2,u=h.testId),"onClick"in h&&t(3,c=h.onClick)},i.$$.update=()=>{i.$$.dirty&8&&t(4,n=c===bm),i.$$.dirty&272&&t(6,o=n||s)},t(5,r=!1),[l,a,u,c,n,r,o,m,s]}var Au=class extends j{constructor(e){super(),G(this,e,Q4,G4,W,{iconUrl:0,ariaLabel:1,disabled:8,testId:2,onClick:3},U4)}},Xr=Au;import{throttleFn as T3}from"@vkontakte/videoplayer-shared";import{ChromecastState as e3,PlaybackState as Kl,Player as t3,VideoFormat as Wl}from"@vkontakte/videoplayer-core";import{Tracer as i3,isInvariantQuality as n3}from"@vkontakte/videoplayer-shared";import{assertNonNullable as jn,getHighestQuality as o3,InterfaceLanguage as l3,clientChecker as r3,isNonNullable as s3,loadVKLangPack as a3,Logger as u3,map as f3,merge as c3,Observable as d3,Subject as ts,Subscription as Du,ValueSubject as m3,VideoQuality as p3}from"@vkontakte/videoplayer-shared";import{SeekAction as So}from"@vkontakte/videoplayer-statistics";import"@vkontakte/videoplayer-interactive";import{addScript as Y4,assertNonNullable as Qi,Subject as Yo,clearVideoElement as Z4}from"@vkontakte/videoplayer-shared";var vm=(i,e)=>i<400||e<225?5:i<640||e<360?0:i<960||e<540?1:i<1280||e<720?2:3;var X4="//ad.mail.ru/static/admanhtml/rbadman-html5.min.js",Jr=class{constructor(e,t){this.adman=null;this.initialVolume=1;this.videoElement=null;this.currentAdSection=null;this.actions=null;this.adsState=null;this.playerState=null;this.events={slotRequested$:new Yo,started$:new Yo,paused$:new Yo,resumed$:new Yo,ended$:new Yo,skipped$:new Yo,clicked$:new Yo};this.loadAdman=e=>new Promise((t,n)=>{let o,r=()=>{clearTimeout(o),delete window.admanAsyncInit,window.AdmanHTML?t():n()};Y4(X4,e,this.loadTimeout).then(()=>{window.AdmanHTML?t():(window.admanAsyncInit=r,o=window.setTimeout(r,this.initTimeout))}).catch(()=>{n()})});this.onAdsReady=()=>{this.log({message:"ads ready"}),this.startPreroll()};this.onAdStarted=(e,t)=>{Qi(this.adsState),Qi(this.playerState),Qi(this.actions),this.log({message:`ad started, section: ${e}, banner: ${JSON.stringify(t)}`}),this.events.started$.next(e),t.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(t.duration),this.adsState.playbackState.set("playing"),this.adsState.canSkip.set(t.allowClose),this.adsState.secondsToWatchBeforeSkip.set(t.allowCloseDelay),this.startWatchDog()};this.onAdTimeRemained=({currentTime:e})=>{Qi(this.adsState),this.adsState.position.set(e),this.startWatchDog()};this.onAdPaused=()=>{this.stopWatchDog(),Qi(this.adsState),this.log({message:"ad paused"}),this.adsState.playbackState.set("paused")};this.onAdPlayed=()=>{Qi(this.adsState),this.log({message:"ad played"}),this.adsState.playbackState.set("playing"),this.startWatchDog()};this.onAdMidrollPoint=()=>{Qi(this.adman),Qi(this.actions),this.log({message:"midroll point"}),this.actions.switchFromVideoToAds(),this.currentAdSection="midroll",this.startWatchDog();try{this.adman.start("midroll")}catch(e){this.log({message:"could not start midroll"}),this.onAdError()}};this.onAdSkipped=()=>{this.log({message:"ad skipped"}),this.stopWatchDog()};this.onAdClosed=()=>{this.log({message:"ad closed"}),this.stopWatchDog(),this.switchToVideo()};this.onAdCompleted=()=>{this.log({message:"ad completed"}),this.events.ended$.next(),this.switchToVideo(),this.stopWatchDog()};this.onAdClicked=()=>{var e;this.log({message:"ad clicked"}),(e=this.videoElement)==null||e.pause(),this.events.clicked$.next(),this.stopWatchDog()};this.onAdError=()=>{this.log({message:"ad error"}),this.switchToVideo(!0),this.stopWatchDog()};this.log=e.createComponentLog("AdmanWrapper"),this.loadTimeout=t.loadTimeout,this.initTimeout=t.initTimeout,this.runtimeTimeout=t.runtimeTimeout}init(e,t,n){this.actions=e,this.adsState=t,this.playerState=n}onAdmanLoadingError(){this.log({message:"adman loading error"}),this.switchToVideo(!0)}initAdman(e){if(this.adman)return;this.startWatchDog();let{width:t,height:n,isFullscreen:o,isAutoplay:r,adsContainer:l,adsVideoElement:a,slotId:s,params:u={},duration:c,previewParam:m}=e,h,w=this.playerState&&$e(this.playerState.vsid);w&&(h=parseInt(w,36));let g=nt(Bt(nt({dl:encodeURIComponent(window.location.href),autoplay:r,player_width:t,player_height:n,puid10:vm(t,n),puid11:o?0:1,preview:m},h?{request_id:h}:{}),{duration:c}),u);m||delete g.preview;let C={slot:s,wrapper:l,videoEl:a,videoQuality:n,params:g,browser:{mobile:!1}};try{let v=new window.AdmanHTML;v.setDebug(!1),v.onReady(this.onAdsReady),v.onStarted(this.onAdStarted),v.onPlayed(this.onAdPlayed),v.onPaused(this.onAdPaused),v.adMidrollPoint(this.onAdMidrollPoint),v.onClosed(this.onAdClosed),v.onSkipped(this.onAdSkipped),v.onClicked(this.onAdClicked),v.onTimeRemained(this.onAdTimeRemained),v.onCompleted(this.onAdCompleted),v.onError(this.onAdError),v.init(C),this.adman=v,this.videoElement=a,this.events.slotRequested$.next(),this.log({message:`adman init, config: ${JSON.stringify(C)}`})}catch(v){this.log({message:"could not init adman"}),this.onAdError()}}switchToVideo(e=!1){if(this.currentAdSection===null&&!e){this.log({message:"switch to video, no currentAdSection. can't switch"});return}Qi(this.actions),Qi(this.adsState),Qi(this.playerState);let t=this.currentAdSection==="postroll";this.adsState.playbackState.set("inactive"),this.currentAdSection=null,this.playerState.mobileUnmuteButtonVisible.set(!1),this.log({message:`switch to video, isPostroll: ${t}`}),t&&(this.adsState.postrollPassed.set(!0),this.log({message:"postroll passed"})),this.actions.switchFromAdsToVideo(!t)}togglePlay(){Qi(this.adsState),this.log({message:"toggle play"});let e=$e(this.adsState.playbackState);e==="playing"?this.pause():e==="paused"&&this.play()}setInitialVolume(e){this.log({message:`set initial volume ${e}`}),this.initialVolume=e}setVolume(e){if(this.log({message:`set volume ${e}`}),this.adman)try{this.adman.setVolume(e)}catch(t){this.log({message:"could not set ad volume"}),this.onAdError()}this.videoElement&&(this.videoElement.volume=e)}setFullscreen(e){if(this.log({message:`set fullscreen ${e}`}),this.adman)try{this.adman.setFullscreen(e)}catch(t){this.log({message:"could not set ad fullscreen"}),this.onAdError()}}startPreroll(){if(Qi(this.adman),!this.isDestroyed){this.log({message:"start preroll"}),this.setVolume(this.initialVolume),this.currentAdSection="preroll",this.startWatchDog();try{this.adman.start("preroll")}catch(e){this.log({message:"could not start preroll"}),this.onAdError()}}}startPostroll(){Qi(this.adman),Qi(this.actions),this.log({message:"start postroll"}),this.actions.switchFromVideoToAds(),this.currentAdSection="postroll",this.startWatchDog();try{this.adman.start("postroll")}catch(e){this.log({message:"could not start postroll"}),this.onAdError()}}startWatchDog(){this.watchDogTimeout&&clearTimeout(this.watchDogTimeout),this.watchDogTimeout=window.setTimeout(()=>this.onAdError(),this.runtimeTimeout)}stopWatchDog(){clearTimeout(this.watchDogTimeout)}play(){Qi(this.adman),this.log({message:"ad play"}),this.startWatchDog();try{this.adman.resume(),this.events.resumed$.next()}catch(e){this.onAdError(),this.log({message:"could not resume ad"})}}pause(){Qi(this.adman),this.stopWatchDog(),this.log({message:"ad pause"});try{this.adman.pause(),this.events.paused$.next()}catch(e){this.onAdError(),this.log({message:"could not pause ad"})}}skip(){Qi(this.adman),this.stopWatchDog(),this.log({message:"ad skip"});try{this.adman.skip(),this.events.skipped$.next()}catch(e){this.log({message:"could not skip ad"}),this.onAdError()}}setPosition(e,t){var n;(n=this.adman)==null||n.setPosition(Math.floor(e),Math.floor(t))}destroy(){var e;this.log({message:"destroy"}),this.stopWatchDog(),(e=this.adman)==null||e.destroy(),this.videoElement&&Z4(this.videoElement),this.isDestroyed=!0}};var ym=i=>{let e=Math.round(i);return isNaN(e)||e<40?"":e>=40&&e<55?50:e>=55&&e<90?60:e>=90&&e<180?120:e>=180?240:""};var Mu=class{constructor(){this.oneLineRegExp=/\r\n|\n|\r/;this.twoLinesRegExp=/\r\n\r\n|\n\n|\r\r/}parse(e){let t=[],n=e.split(this.twoLinesRegExp);for(let o of n){let r={startTime:0,endTime:0,texts:[],lang:""},l=o.split(this.oneLineRegExp);for(let a of l)if(!r.startTime&&!r.endTime){let s=new xr,{startTime:u,endTime:c}=s.parse(a);r.startTime=u,r.endTime=c}else if(a.trim()!==""){let s=new Vu,{texts:u}=s.parse(a);r.texts=[...r.texts,...u]}(r.startTime||r.endTime)&&r.texts.length>0&&t.push(r)}return t}},xr=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 t={startTime:0,endTime:0},n=this.timingRegExp.exec(e);return n&&(t.startTime=this.calcTime(n[1],n[2],n[3],n[4]),t.endTime=this.calcTime(n[6],n[7],n[8],n[9])),t}parseTime(e){let t=this.timeRegExp.exec(e);return t?this.calcTime(t[1],t[2],t[3],t[4]):0}isTime(e){return this.timeRegExp.test(e)}calcTime(e="0",t="0",n="0",o="0"){let r=Number(e)*60*60,l=Number(t)*60,a=Number(n),s=+`0.${o}`;return r+l+a+s}},Vu=class{constructor(){this.letterTagRegExp=/<[a-z]*>|<\/[a-z]*>/}parse(e){let t={texts:[]},o=e.replace(new RegExp(this.letterTagRegExp,"g"),"").split({[Symbol.split](l){let a=0,s=[];for(;a<l.length;){let u=["<",">"].reduce((c,m)=>{let h=l.indexOf(m,a);return c===-1||c>h?h:c},-1);if(u===-1){s.push(l.substring(a));break}s.push(l.substring(a,u)),a=u+1}return s}}),r=new xr;for(let l of o)r.isTime(l)?t.texts.push({type:"timestamp",value:r.parseTime(l)}):t.texts.push({type:"text",value:l});return t}},wm=Mu;import{isNonNullable as Ru}from"@vkontakte/videoplayer-shared";var Co,Jt,Bu=0,qu=!1,km=(i,e=0,t=0)=>i<e&&i<t,$r=(i,e=0,t=0)=>i>=e&&i<=t,J4=(i,e=0,t=0)=>i>e&&i>t,Cm=(i,e,t,n=!1)=>{var a;let o=(a=t.find(({lang:s})=>s===e.value))==null?void 0:a.subtitles;if(n){let s=o==null?void 0:o.find(({startTime:u,endTime:c})=>$r(i,u,c));return s?Bt(nt({},s),{lang:e.value}):void 0}let r=i>=Bu,l=i<Bu;if(Bu=i,l&&(qu=!1),Ru(Co)&&$r(i,Co.startTime,Co.endTime)&&Co.lang===e.value)return Co;if(!Ru(Jt)&&(o!=null&&o.length)&&!qu){let s=o.find(({startTime:u,endTime:c})=>$r(i,u,c)||r&&km(i,u,c));Jt=s&&Bt(nt({},s),{lang:e.value}),Co=void 0,!Ru(Jt)&&o[o.length-1].endTime<i&&(qu=!0);return}else{if($r(i,Jt==null?void 0:Jt.startTime,Jt==null?void 0:Jt.endTime))return Co=Jt,Jt=void 0,Co;(r&&J4(i,Jt==null?void 0:Jt.startTime,Jt==null?void 0:Jt.endTime)||l&&km(i,Jt==null?void 0:Jt.startTime,Jt==null?void 0:Jt.endTime))&&(Jt=void 0)}};import{Subscription as x4}from"@vkontakte/videoplayer-shared";import"@vkontakte/videoplayer-statistics";var es=class{constructor(e,t=new x4){this.oneStat=e;this.statSubscription=t}destroy(){this.oneStat.destroy(),this.statSubscription.unsubscribe()}};var Sm=({interfaceLanguage:i,isCyrillicRelatedInterface:e,videoId:t,isClip:n,isLiveCatchUpMode:o,statAuthToken:r,isAudioDisabled:l,canDownload:a,callbacks:s,webApi:u,videoEpisodes:c,previewThumbsData:m,uiConfig:h,coreConfig:w,player:g,disabledControls:C,isInteractive:v,interactiveRanges$:E,isInteractiveTime$:y,replayInteractive:b,hasInteractiveBranches:P,playPrevChapterDisabledTooltip:A,additionalButtons:M,looped:N=!1,statistics:te,saveRate:_e})=>{var Ll,Al,Ml,Vl;let X=Bt(nt({},w),{configName:[...(Ll=w.configName)!=null?Ll:[],"ui"],isAudioDisabled:l,live:Bt(nt({},(Al=w.live)!=null?Al:{}),{isLiveCatchUpMode:!!o})}),$=h,se=i3.createRootTracer($.features.saveTraceInfoToFile),L=se.createComponentTracer("Store"),K=g||new t3(X,se),x=new u3,Z=new Jr(x,{loadTimeout:$.ads.loadTimeout,initTimeout:$.ads.initTimeout,runtimeTimeout:$.ads.runtimeTimeout}),F=Oo.getInstance(),Q=u==null?void 0:u.pictureInPictureApi,J=u==null?void 0:u.annotationsApi,oe=x.createComponentLog("Store"),Be,Ye,Ie={},Re=te?Lt(te.oneStat.vsid$):Un(void 0),qe=Oe(bo()),xe=(Ml=Q==null?void 0:Q.info.isActive$)!=null?Ml:new m3(!1),ae=Q==null?void 0:Q.info.type,he=Oe(0),ft=Oe([]),ke=c3(K.events.fatalError$,K.events.managedError$).subscribe(I=>ft.update(z=>[...z,I])),Ke=Un(!1,I=>{let z=K.events.fatalError$.subscribe(()=>I(!0));return()=>z.unsubscribe()}),_t=I=>pt(void 0,null,function*(){var Fe;let z=Object.values(l3).includes(I);if($.downloadVKLanguages&&(z&&$.updateBuiltinLanguages||!Fs(I))){let st;try{st=yield a3(I,nc,oc)}catch(yt){(Fe=te==null?void 0:te.oneStat)==null||Fe.logError({errorType:"VKLangPack",fatal:!1}),F==null||F.report(yt,{errorType:"VKLangPack",fatal:!1})}st&&(Os({language:I,pack:st,fallback:$.defaultLanguage}),Ze.set(I))}Fs(I)&&Ze.set(I)}),Ze=Oe(i),Ge=Oe(e);_t(i);let Xe=(I,z)=>{let be=$e(Ze);return zs(be,I,z,$.defaultLanguage)},et=Oe("thumb"),fe=(()=>{let I=Si([Ke,et],([z,be])=>z?"crashed":be);return Bt(nt({},I),{is:z=>$e(I)===z})})(),Te=(()=>{let I=Oe(new Set(C));return Bt(nt({},I),{add:z=>{I.update(be=>new Set([...be].concat(z)))},remove:z=>{I.update(be=>{let Fe=[...be];return new Set(Array.isArray(z)?Fe.filter(st=>!z.includes(st)):Fe.filter(st=>st!==z))})},includes:z=>{let be=$e(I);return Array.isArray(z)?z.every(Fe=>be.has(Fe)):be.has(z)}})})();L.log("create store"),oe({message:"create store"});let We=I=>{let z=I.container;z.append(K.experimental.element$.getValue()),tt=new MutationObserver(be=>{let{removedNodes:Fe}=be[0];Fe.length&&z.append(K.experimental.element$.getValue())}),tt.observe(z,{childList:!0})},le=I=>{oe({message:`init video, config: ${JSON.stringify(I)}`}),v?We(I):K.initVideo(I),L.log("init video",{isInteractive:v}),I.subtitles&&K.setExternalTextTracks(I.subtitles),Be=I},Se=new ts,ht=I=>Se.next(I),Ee=new ts,ct=new ts,me=new ts,tt=null,Tt={actionRewind$:Ee,actionSeek$:ct,inPiP$:xe,inFullscreen$:new d3(I=>qe.subscribe(z=>I.next(z))),actionSetSubtitle$:me,nextMovie$:Se};if(te){let{oneStat:I,statSubscription:z}=te;v||z.add(I.attachTo(K)),z.add(I.attachToUi(Tt)),z.add(I.attachToAds(Z.events)),I.authorize(r).catch(be=>{oe({message:`onestat auth error ${String(be)}`})})}if(F){let I=new Du,z=(be,Fe)=>I.add(be.subscribe(Fe));if(z(K.events.managedError$,be=>{F.logIError(be)}),z(K.events.fatalError$,be=>{F.logIError(be,!0)}),te){let{oneStat:be}=te;z(be.experimental.error$,Fe=>{F.logIError(Fe)})}F.sentrySubscription.add(I)}let vt=()=>{r3.isIOS&&Ye&&Fc(Ye)},Ue=new Du().add(K.experimental.element$.subscribe(I=>{I&&(Ye=I,I.classList.add("player-media"),zo(Q)&&(Q.updateVideoElement(),Q.registryEventHandlers()),v&&I.setAttribute("pip","false"))})).add(K.events.ended$.subscribe(()=>{var I;vt(),(I=s==null?void 0:s.onEnded)==null||I.call(s)})).add(K.events.started$.subscribe(()=>pt(void 0,null,function*(){var z,be;zo(Q)&&(yield Q==null?void 0:Q.revealPictureInPicture());let I=K.info.muted$.getValue();(z=s==null?void 0:s.onStarted)==null||z.call(s),(be=Ie.onStarted)==null||be.call(Ie,I)}))).add(K.events.willSeek$.subscribe(({from:I,to:z})=>{var be;(be=s==null?void 0:s.onSeek)==null||be.call(s,I,z)})).add(K.info.position$.subscribe(I=>{var be;let z=K.info.duration$.getValue();isFinite(z)&&z>0&&((be=s==null?void 0:s.onTimeupdate)==null||be.call(s,z,I),Z.setPosition(I,z))})).add(K.events.fatalError$.subscribe(()=>{var I;(I=s==null?void 0:s.onCrashed)==null||I.call(s)})).add(K.events.loadedMetadata$.subscribe(()=>{Mt.state.loadedMetadata$.set(!0)})).add(K.info.is3DVideo$.subscribe(I=>{Mt.ui.is3DVideo.set(I)})).add(K.info.isEnded$.subscribe(I=>{v&&(I?(y!=null&&y.getValue()&&Te.add(nr),Te.add("PLAY_BUTTON")):Te.remove("PLAY_BUTTON"))})).add(K.info.liveTime$.subscribe(I=>{var z;(z=s==null?void 0:s.onLiveTime)==null||z.call(s,I)})).add(K.info.isStalled$.subscribe(I=>{var z;(z=s==null?void 0:s.onStalledChanged)==null||z.call(s,I)})).add(Z.events.started$.subscribe(()=>{var I,z;(z=(I=s==null?void 0:s.adsInfo)==null?void 0:I.onStarted)==null||z.call(I)})).add(Z.events.ended$.subscribe(()=>{var I,z;(z=(I=s==null?void 0:s.adsInfo)==null?void 0:I.onCompleted)==null||z.call(I)})),zt=new Du,Dt=()=>{zt.add(K.events.log$.subscribe(I=>{console.debug("%c sdk ","background:#9ddcf7;",`sdk component: ${I.component}`,I.message)})).add(x.log$.subscribe(I=>{console.debug("%c ui ","background:#f3da0b;",`ui component: ${I.component}.`,I.message)}))},Pt=()=>{zt.unsubscribe()},li=(I,z)=>{L.log("start camera manual rotation",{mx:I,my:z}),K.startCameraManualRotation(I,z)},dt=(I=!1)=>{L.log("stop camera manual rotation",{immediate:I}),K.stopCameraManualRotation(I)},lt=(I,z,be)=>{L.log("move camera focus px",{xpx:I,ypx:z,dt:be}),K.moveCameraFocusPX(I,z,be)},ve=()=>{K.holdCamera()},Je=()=>{K.releaseCamera()},gt=Un(K.info.position$.getValue(),I=>{let z,be,Fe=()=>{let st=K.info.playbackState$.getValue(),yt=K.info.isLive$.getValue(),St=K.info.duration$.getValue(),bt=K.info.position$.getValue();if([Kl.PLAYING,Kl.PAUSED].includes(st)){let Et=yt?bt-St:K.getExactTime();Et!==be&&I(Et),be=Et}z=requestAnimationFrame(Fe)};return Fe(),()=>cancelAnimationFrame(z)}),Ht=Lt(xe),kt=Lt(K.info.playbackState$),xt=Lt(K.info.currentBuffer$),hi=Lt(K.info.isEnded$),qt=Lt(K.info.isLive$),Yi=$.features.playbackRate?Lt(K.info.canChangePlaybackSpeed$):Un(!1),fn=Lt(K.info.liveBufferTime$),ri=Lt(K.info.volume$),Di=Lt(K.info.muted$),cn=Ms(K.info.autoQualityLimits$.pipe(f3(({max:I})=>I!==void 0)),((Vl=K.info.autoQualityLimits$.getValue())==null?void 0:Vl.max)!==void 0),Zi=Lt(K.info.autoQualityLimitingAvailable$),dn=Lt(K.info.availableQualities$),Ni=Lt(K.info.availableQualitiesFps$),Oi=Lt(K.info.chromecastState$),gi=Lt(K.info.chromecastDeviceName$),bi=Lt(K.info.currentFormat$),Ti=Lt(K.info.throughputEstimation$),Pi=Lt(K.info.videoBitrate$),$t=Lt(K.info.intrinsicVideoSize$),jt=Lt(K.info.duration$),Xi=Lt(K.info.isAudioAvailable$),Gt=null,Ii=K.info.isBuffering$,Fi=Un(Ii.getValue(),I=>{let z=Ii.subscribe(be=>{be&&Gt===null?Gt=window.setTimeout(()=>{I(Ii.getValue()),Gt=null},$.loaderDelay):I(be)});return()=>{z.unsubscribe(),Gt&&clearTimeout(Gt)}}),Ji=()=>{Gt&&clearTimeout(Gt),Gt=null},si=Si([jt,qt],([I,z])=>z?-I:I),Ct=Si([kt],([I])=>I===Kl.PLAYING),xi=Lt(K.info.atLiveEdge$),zi=Lt(K.info.atLiveDurationEdge$),At=Lt(K.info.position$),$i=Si([At,jt],([I,z])=>isFinite(I)&&isFinite(z)&&!!z),en=Si([Oi],([I])=>I===e3.CONNECTED),ei=Lt(K.info.availableVideoStreams$),Ei=$.features.audioLanguages?Lt(K.info.availableAudioStreams$):Un([]),vi=Lt(K.info.currentVideoStream$),Li=Lt(K.info.currentAudioStream$),ti=I=>{I.language&&Ds(I.language),K.setVideoStream(I)},Qt=I=>{I.language&&Ds(I.language),K.setAudioStream(I)},ai=I=>{let z;if(I.length===1&&(z=I.at(0)),z!=null||(z=I.find(Fe=>"isDefault"in Fe&&Fe.isDefault)),z)return z;let be=Lc();return be&&(z=I.find(({language:Fe})=>be===Fe)),z!=null||(z=I.at(0)),z},Hi=!1;Ue.add(K.info.availableAudioStreams$.subscribe(I=>{if(!Hi&&I.length){let z=ai(I);z&&(K.setAudioStream(z),Hi=!0)}}));let mi=!1;Ue.add(K.info.availableVideoStreams$.subscribe(I=>{if(!mi&&I.length){let z=ai(I);z&&(K.setVideoStream(z),mi=!0)}}));let pi=Oe(void 0),ui=Lt(K.info.isAutoQualityEnabled$,I=>I&&pi.set(void 0)),yi=Lt(K.info.currentQuality$,()=>pi.set(void 0)),tn=Si([pi,yi],([I,z])=>I!=null?I:z),yn=Si([dn,Ni,ui,tn,bi],([I,z,be,Fe,st])=>{let yt=[];st!==Wl.MPEG&&yt.push({value:"auto",displayValue:Xe("auto_quality_option"),selected:be});let St=I.filter(bt=>!n3(bt));for(let bt of St){let Et=z[bt];yt.push({value:bt,displayValue:`${bt}${Et?ym(Et):""}`,selected:be?!1:bt===Fe})}return yt}),Ui=Lt(K.info.currentPlaybackRate$),_i=Si([Ui,xi,zi],([I,z,be])=>{let Fe=be||v?1:$.controls.playbackRateMin,st=z?1:$.controls.playbackRateMax,yt=$.controls.playbackRateStep,St=[];for(let bt=Fe;bt<=st;bt+=yt)St.push({value:bt,displayValue:bt===1?Xe("playback_rate_1"):Xe("playback_rate",{multiplier:bt.toString(10)}),selected:I===bt});return St}),ii=$.features.subtitles?Lt(K.info.availableTextTracks$):Un([]),mn=Si([ii],([I],z)=>{if(!I.length){z([]);return}let be=K.info.isLive$.getValue(),Fe=[],st=[];for(let St of I)St.url&&Fe.push(fetch(St.url));let yt=St=>{let bt=[];if(St.length){let{startTime:Et,endTime:Ri,texts:ro,lang:ho}=St[0];for(let Yn of St)ro[0].value===Yn.texts[0].value&&ro[1].value===Yn.texts[1].value?Ri=Yn.endTime:(bt.push({startTime:Et,endTime:Ri,texts:ro,lang:ho}),Et=Yn.startTime,Ri=Yn.endTime,ro=Yn.texts,ho=Yn.lang);bt.push({startTime:Et,endTime:Ri,texts:ro,lang:ho})}return bt};Promise.allSettled(Fe).then(St=>{for(let[bt,Et]of St.entries())Et.status==="fulfilled"&&Et.value.ok&&Et.value.text().then(Ri=>{let ro=new wm,ho=I[bt].language,Yn=!!I[bt].isAuto,Rl=ro.parse(Ri),ys=be?yt(Rl):Rl;ho&&Rl&&st.push({lang:ho,subtitles:ys,isAuto:Yn}),bt===St.length-1&&z(st)})})}),Ot={displayValue:Xe("subtitles_off"),value:"off"},Ut=Oe(nt({},Ot)),pn=Si([Ui,Ct,Ut],([I,z,be],Fe)=>{let St;if(K.info.isLive$.getValue()&&z&&be.value!==Ot.value){let Et=()=>{let Ri=1e3/(3*I);St=setTimeout(Et,Ri),Fe(Date.now())};return Et(),()=>clearTimeout(St)}}),wi=Si([mn,Ut],([I,z])=>{if((I==null?void 0:I.length)>0){let be=[Bt(nt({},Ot),{selected:(z==null?void 0:z.value)===Ot.value})];for(let{lang:Fe,isAuto:st}of I)jo[Fe]&&be.push({displayValue:st?Xe("subtitles_auto",{language:jo[Fe]}):jo[Fe],value:Fe,selected:(z==null?void 0:z.value)===Fe,isAuto:st});return be}else return[]}),fi={available:[],prev:[]},_n=Si([gt,Ut,mn,pn],([I,z,be,Fe])=>{var yt,St;let st=K.info.isLive$.getValue();if(st&&be&&fi.prev!==be){let bt=be.find(({lang:Ri})=>Ri===z.value),Et=fi.prev.find(({lang:Ri})=>Ri===z.value);if(bt){let Ri=Bt(nt({},bt),{subtitles:[...(yt=Et==null?void 0:Et.subtitles)!=null?yt:[],...bt.subtitles]});fi.available=[Ri],fi.prev=be}}if(z&&z.value!==Ot.value){let bt=st?(St=Ye==null?void 0:Ye.currentTime)!=null?St:0:I,Et=st?fi.available:be;return Cm(bt,z,Et,st)}}),it=Si([_n],([I])=>I!=null&&I.texts?I.texts:[]),Ai=Oe(!0),ci=Si([xt,si,At,fn],([I,z,be,Fe])=>{var bt;let st=(bt=I==null?void 0:I.end)!=null?bt:0;if(!Fe)return st/z;let St=-be+Fe-z;return(st-St)/z}),je=Lt(K.info.availableSources$),nn=Si([je],([I])=>Object.keys((I==null?void 0:I[Wl.MPEG])||{}).length>0),wn=()=>{var be,Fe,st;let I=Object.keys(((Fe=(be=K.info.availableSources$)==null?void 0:be.getValue())==null?void 0:Fe[Wl.MPEG])||{}),z=o3(I)||p3.Q_144P;return(st=Be.sources[Wl.MPEG])==null?void 0:st[z]},kn=()=>{var z;let I=wn();if(I)L.log("download video",{url:I}),_c(I,((z=Be==null?void 0:Be.meta)==null?void 0:z.title)||"video");else{let be="There is no URL for download video";L.log("download video",{message:be}),oe({message:be})}},on=()=>{oe({message:"toggle muted"});let I=K.info.muted$.getValue(),z=K.info.volume$.getValue(),be=z===0||I,Fe=!be;L.log("toggle muted",{muted:I,volume:z,soundIsOff:be,nextValue:Fe}),ln(Fe)},Ki=()=>{L.log("close settings menu"),Mt.ui.settingsMenuVisible.set(!1)},hn=I=>{L.log("open settings menu",{wasOpenedByKeyboard:I}),Mt.ui.settingsMenuOpenedByKeyboard.set(!!I),Mt.ui.settingsMenuVisible.set(!0)},Wi=I=>{$e(Mt.ui.settingsMenuVisible)?Ki():hn(I)},ni=(I,z=I,be=!1)=>{var yt,St,bt;let Fe=!be,st=K.info.muted$.getValue();oe({message:`set volume, volume: ${I}, preferredVolume: ${z}, internalCall: ${Fe}`}),L.log("set volume",{volume:I,preferredVolume:z,internalCall:Fe}),K.setVolume(I),Z.setVolume(I),Fe&&((yt=s==null?void 0:s.onVolumeChange)==null||yt.call(s,I)),Bs(z),st?(K.setMuted(!1),Fe&&((St=s==null?void 0:s.onUnmute)==null||St.call(s)),rr(!1)):!st&&I===0&&(K.setMuted(!0),Fe&&((bt=s==null?void 0:s.onMute)==null||bt.call(s)),rr(!0))},ln=(I,z=!1)=>{var st,yt,St,bt;let be=!z,Fe=K.info.volume$.getValue();if(oe({message:`set muted, currentVolume: ${Fe}, mute: ${I}, internalCall: ${be}`}),L.log("set muted",{mute:I,currentVolume:Fe,internalCall:be}),K.setMuted(I),Z.setVolume(I?0:Fe),rr(I),be&&(I?(st=s==null?void 0:s.onMute)==null||st.call(s):(yt=s==null?void 0:s.onUnmute)==null||yt.call(s)),Fe===0){let Et=(St=lr())!=null?St:$.volumeDefault;Et===0&&(Et=$.volumeMinRestore,Bs(Et)),K.setVolume(Et),Z.setVolume(Et),be&&((bt=s==null?void 0:s.onVolumeChange)==null||bt.call(s,Et))}},ki=Oe(!1),In=I=>{L.log("set looped",{isLooped:I}),ki.set(I),K.setLooped(I)};In(N);let Cn=()=>{K.prepare()},Sn=()=>{jn(Mt);let I=$e(Mt.ui.controls.disabledControls$),z=$e(Mt.playerPhase),be={playerPhase:z,isInteractive:v,isVideoEnded:!1,action:"none"};if(I.has("PLAY_BUTTON"))return;if(oe({message:"toggle play"}),z==="ads"){be.action="play",L.log("toggle adman play",be),Z.togglePlay();return}let Fe=()=>{var yt;oe({message:"toggle play, call player.play"}),be.action="play",K.play(),(yt=s==null?void 0:s.onPlay)==null||yt.call(s)},st=()=>{var yt;oe({message:"toggle play, call player.pause"}),be.action="pause",K.pause(),(yt=s==null?void 0:s.onPause)==null||yt.call(s)};if(K.info.isEnded$.getValue()){if(oe({message:"toggle play, video ended, seek to 0"}),Ee.next(),ct.next(So.REWIND),v){b==null||b();return}K.seekTime(0),Fe()}else K.info.playbackState$.getValue()!==Kl.PLAYING?Fe():st();L.log("toggle play",be)},An=I=>{oe({message:`set quality, quality: ${I}`}),L.log("set quality",{quality:I}),K.setAutoQuality(I==="auto"),I!=="auto"?(kc(t,I),pi.set(I),K.setQuality(I)):qs()},gn=I=>{oe({message:`set trafficSavingEnabled, value: ${I}`}),L.log("set traffic saving enabled",{trafficSavingEnabled:I}),K.setAutoQualityLimits({max:I?$.trafficSavingLimit:void 0}),Ic(I)},Tn=I=>{L.log("set playback rate",{playbackRate:I}),K.setPlaybackRate(I),$.features.saveRate&&_e&&!K.info.isLive$.getValue()&&Ac(I)},Pn=()=>{let I=$e(_i),z=I.findIndex(({selected:Fe})=>Fe);if(z===I.length-1)return;let be=I[z+1];Tn(be.value)},rn=()=>{let I=$e(_i),z=I.findIndex(({selected:Fe})=>Fe);if(z===0)return;let be=I[z-1];Tn(be.value)},Kt=I=>{L.log("set subtitles",nt({},I)),I&&I.value!==Ot.value&&me.next(I.isAuto?I.value+"_auto":I.value),Ut.set(I)},Mn=()=>{L.log("toggle subtitles");let I=$e(wi),z=$e(Ut),be=$e(Ze);if((z==null?void 0:z.value)===Ot.value){let Fe=I.filter(st=>st.value!==Ot.value).find(st=>st.value===be)||I[1];Kt(Fe!=null?Fe:nt({},Ot))}else Kt(Bt(nt({},Ot),{selected:!1}))},Mi=(I,z,be=!0)=>{if(oe({message:`seek to time, time: ${I}`}),L.log("seek to time",{time:I,action:z,forcePrecise:be}),ct.next(z),K.info.isLive$.getValue()){let Fe=K.info.duration$.getValue(),st=Math.min(0,Fe+I);K.seekTime(st,be)}else{if(y!=null&&y.getValue())return;K.seekTime(_o(I),be)}},Dn=I=>{oe({message:`seek to episode start time: ${I}`}),L.log("seek to episode start time",{time:I}),Mi(I,So.EPISODE,!0)},Yt=(I,z)=>{oe({message:`seek to percent, percent: ${I}`}),L.log("seek to percent",{percent:I,action:z});let be=Math.round($e(si)*I);Mi(be,z,!1)},Nn=I=>{oe({message:`seek external, time: ${I}`}),L.log("seek external",{time:I}),ct.next(So.UNKNOWN),K.seekTime(K.info.isLive$.getValue()?-I:I)},On=I=>{var Fe,st;let z=(Fe=I.max)!=null?Fe:"none",be=(st=I.min)!=null?st:"none";oe({message:`set auto quality limitation. Max: ${z}. Min: ${be}`}),L.log("set auto quality limits",{max:z,min:be}),K.setAutoQualityLimits(I)},Vn=I=>{oe({message:`seek external to episode start time: ${I}`}),L.log("seek external to episode start time",{time:I}),Mi(I,So.EPISODE,!0)},Fn=I=>{oe({message:`set playback rate to: ${I}`}),L.log("set playback rate external",{playbackRate:I}),K.setPlaybackRate(I)},bn=Oe(void 0),ji=Oe(!1),re=I=>{oe({message:`start scrubbing, progress: ${I}`}),L.log("start scrubbing",{progress:I}),ji.set(!0),It(I)},It=I=>{bn.set(I)},sn,Vi,ie=()=>{bn.set(void 0),ji.set(!1)},ut=()=>{clearTimeout(Vi),clearTimeout(sn),sn=window.setTimeout(()=>{ie()},500),Ye==null||Ye.removeEventListener("seeked",ut)},oi=I=>{oe({message:`complete scrubbing, progress: ${I}`}),L.log("complete scrubbing",{progress:I}),Yt(I,So.SLIDER),$e(Mt.ui.isMobile)&&$e(Mt.state.currentFormat$)===Wl.HLS?(Ye==null||Ye.addEventListener("seeked",ut),Vi=window.setTimeout(()=>{ut()},300)):ie()},zn=Si([gt,si,bn],([I,z,be],Fe)=>{Fe(s3(be)?be*z:I)}),Gn=Oe({width:0,height:0}),an=Si([Gn],([{width:I}],z)=>{let be=Q1(I);z(be)}),Qn=Oe(!1),ne=Si([an,Qn],([I,z])=>z?M.filter(be=>!be.hideOnMobile):M.filter(be=>{var Fe;return!((Fe=be.hideOnDesktopGridTypes)!=null&&Fe.includes(I))})),To=Si([Qn,Ke],([I,z],be)=>{be(I&&z)}),Pl=()=>{ct.next(So.LIVE),oe({message:"switch to active live"}),L.log("switch to active live"),K.seekTime(0),K.info.playbackState$.getValue()!==Kl.PLAYING&&Mt.actions.internal.togglePlay()},Il=()=>{L.log("skip adman"),Z.skip()},Zo=(I=!0)=>{jn(Mt),oe({message:`switch from ads to video, callPlay: ${I}`}),L.log("switch from ads to video",{callPlay:I}),et.set("video"),I&&K.play()},Po=()=>{jn(Mt),oe({message:"switch from video to ads"}),L.log("switch from video to ads"),Mt.actions.internal.pause(),vt(),et.set("ads")},Io=I=>{jn(Mt);let z=I?"LiveWaitingStart":"thumb";L.log("set live waiting start",{state:I,playerPhase:z}),et.set(z)},oo=I=>{jn(Mt);let z=I?"LiveWaitingRecover":"thumb";L.log("set live waiting recover",{state:I,playerPhase:z}),et.set(z)},co=I=>{jn(Mt);let z=I?"LiveWaitingRecord":"thumb";L.log("set live waiting record",{state:I,playerPhase:z}),et.set(z)},mo=()=>(jn(Mt),L.log("get debug text data"),mc(K,Be,Mt)),Xo=()=>(jn(Mt),JSON.stringify(se.getFinishedSpans())),Jo=()=>(jn(Mt),pc(K,Be,Mt)),Eo=()=>Ye,xo=()=>{oe({message:"toggle chromecast"}),L.log("toggle chromecast"),K.toggleChromecast()},Lo=I=>{var be;if(jn(Mt),K.info.isEnded$.getValue())return;let z=!I;if($e(Mt.playerPhase)==="ads"){oe({message:`pause ads, internalCall: ${z}`}),L.log("pause ads",{internalCall:z}),Z.pause();return}oe({message:`pause video, internalCall: ${z}`}),L.log("pause video",{internalCall:z}),z&&((be=s==null?void 0:s.onPause)==null||be.call(s)),K.pause()},$o=I=>{var be;jn(Mt);let z=!I;if($e(Mt.playerPhase)==="ads"){oe({message:`play ads, internalCall: ${z}`}),L.log("play ads",{internalCall:z}),Z.play();return}oe({message:`play video, internalCall: ${z}`}),L.log("play video",{internalCall:z}),z&&((be=s==null?void 0:s.onPlay)==null||be.call(s)),K.play()},Ao=(I,z)=>{jn(Mt),oe({message:`first start, show ads: ${I}, internalCall: ${!z}`}),L.log("first start",{showAds:I,external:z}),I?et.set("ads"):(et.set("video"),z?K.play():Mt.actions.internal.togglePlay())},po=()=>(oe({message:"getting time codes"}),c),Y=()=>{let I=po();if(!I||[0,1].includes(I.length))return;let z=K.info.position$.getValue();return I.find(be=>be.time>z)},Rt=I=>{let z=I;z||(z=Y());let be=K.info.position$.getValue();L.log("seek to next episode",nt({currentTime:be},z)),z&&(oe({message:"seek to next episode"}),Mi(z.time,So.EPISODE,!0))},vn=()=>{let I=po();if(!I||[0,1].includes(I.length))return;let z=K.info.position$.getValue(),be=I.findIndex(st=>st.time>z),Fe=be===-1?I.length-2:be-2;if(!(Fe<0))return I[Fe]},un=I=>{let z=I;z||(z=vn());let be=K.info.position$.getValue();L.log("seek to prev episode",nt({currentTime:be},z)),z&&(oe({message:"seek to prev episode"}),Mi(z.time,So.EPISODE,!0))},lo=()=>(oe({message:"getting preview thumbs data"}),L.log("get preview thumbs data",nt({},m)),m),Hn=()=>pt(void 0,null,function*(){let I=Q==null?void 0:Q.isActive(),z="none";Q!=null&&Q.isActive()?(z="remove",yield Q==null?void 0:Q.remove()):(z="request",yield Q==null?void 0:Q.request()),L.log("toggle picture in picture",{isActive:I,action:z})}),eo=(I=-90)=>{L.log("rotate video",{alphaDiff:I}),he.update(z=>z+I)},to=Oe([]);E==null||E.subscribe(I=>{let z=[];for(let be=0;be<I.length;be++){let{range:[Fe,st],subjects:yt}=I[be];be===0&&Fe!==0&&z.push({time:0,text:"",interactive:!1,completed:!0}),z.push({time:Fe/1e3,text:"",interactive:!0,completed:!yt.length}),st!==1/0&&z.push({time:st/1e3,text:"",interactive:!1,completed:!0})}to.set(z)});let el=Oe(!1);y==null||y.subscribe(I=>{I&&$e(ji)&&ie()});let _o=I=>{if(!v)return I;let z=$e(to),be=$e(si),st=$e(At)/be,yt=z.find(St=>St.interactive&&!St.completed&&St.time>st);return typeof(yt==null?void 0:yt.time)=="number"?Math.min(I,yt.time-.05):I},Xl=()=>{Mt.ui.episodes.panelOpened$.set(!1)},El=()=>{L.log("destroy store"),clearTimeout(Vi),clearTimeout(sn),Ue.unsubscribe(),zt.unsubscribe(),K.destroy(),Z.destroy(),te==null||te.destroy(),F==null||F.destroy(),ke.unsubscribe(),tt==null||tt.disconnect(),tt=null},Mt={interfaceLanguage$:Ze,isCyrillicRelatedInterface$:Ge,initVideo:le,videoId:t,isClip:n,playerPhase:fe,vsid:Re,state:{positionExact$:gt,positionWithScrubbing$:zn,duration$:si,playbackState$:kt,isPlaying$:Ct,isLoaderVisible:Fi,bufferedProgress$:ci,isLive$:qt,canChangePlaybackSpeed$:Yi,isActiveLive$:xi,isOldestAvailableLive$:zi,isRewindableLive$:$i,isEnded$:hi,muted$:Di,volume$:ri,trafficSavingEnabled$:cn,autoQualityLimitingAvailable$:Zi,availableVideoStreams$:ei,availableAudioStreams$:Ei,videoStream$:vi,audioStream$:Li,currentQuality$:tn,isAutoQualityEnabled$:ui,availableQualities$:yn,currentPlaybackRate$:Ui,availablePlaybackRates$:_i,currentSubtitle$:Ut,availableSubtitlesList$:wi,currentSubtitleCaptions$:it,isAutoSubtitleCaptionVisible$:Ai,chromecastState$:Oi,chromecastDeviceName$:gi,chromecastConnected$:en,currentFormat$:bi,throughputEstimation$:Ti,videoBitrate$:Pi,videoSize$:$t,errorLog$:ft,crashed$:Ke,isAudioAvailable$:Xi,isAudioDisabled:!!l,canDownload:$.features.download&&!!a,availableSources$:je,hasMpegSources$:nn,isInteractive:v,showInteractiveGraph:$.features.interactiveGraph,showSeekToInteractive:$.features.seekToInteractive,showPlayPrevChapter:$.features.interactivePlayPrevChapter,showInteractiveTimeIndicator:$.features.interactiveTimeIndicator&&!!$e(to).length,interactiveEpisodes$:to,isInteractiveTime$:y?Lt(y):Oe(!1),graphIsOpened$:Oe(!1),isInteractiveExpectation$:el,hasInteractiveBranches:P,playPrevChapterDisabledTooltip:A,looped$:ki,loadedMetadata$:Oe(!1)},ui:{controlsVisible:Oe(!1),touched:Oe(!1),controls:{prevButton:Oe(void 0),playButton:Oe(void 0),replayButton:Oe(void 0),nextButton:Oe(void 0),playPrevChapterButton:Oe(void 0),seekToInteractiveButton:Oe(void 0),interactiveGraphButton:Oe(void 0),liveButton:Oe(void 0),time:Oe(void 0),episodes:Oe(void 0),volume:Oe(void 0),subtitles:Oe(void 0),settings:Oe(void 0),context:Oe(void 0),chromecast:Oe(void 0),pip:Oe(void 0),fullscreen:Oe(void 0),vkLogo:Oe(void 0),interactiveTimeIndicator:Oe(void 0),timeline:Oe(void 0),additionalButtons:M.length?M.reduce(I=>[...I,Oe(void 0)],[]):[],disabledControls$:Te},modals:{hotKeyMap:{show:Oe(!1),data:Oe({title:"",closeBtnText:"",groups:[]})}},isFullscreen:qe,rotateAlpha:he,isAutoplay:Oe(!1),debugPanelVisible:Oe(!1),episodes:{panelOpened$:Oe(!1),openedByKeyboard$:Oe(!1)},contextMenu:{visible$:Oe(!1),btnRef$:Oe(void 0),openedByBtnKeyboard$:Oe(!1),openedByHotKey$:Oe(!1),lastActiveElem$:Oe(void 0),showContextMenuBtn$:Oe(!1),position$:Oe({top:0,left:0})},playerSize:Gn,isMobile:Qn,mobileNotReportControlHidden$:To,mobileUnmuteButtonExpanded:Oe(!1),mobileUnmuteButtonVisible:Oe(!1),icon3DVideoVisible:Oe(!1),settingsMenuVisible:Oe(!1),settingsMenuOpenedByKeyboard:Oe(!1),scrubbingInProgress:ji,is3DVideo:Oe(!1),isPictureInPictureActive$:Ht,pictureInPictureType$:Un(ae),currentGridType$:an,additionalButtons$:ne,interactiveHideMobileControls:Oe(!1),overlayContainer$:Oe(void 0),startedByKeyboard$:Oe(!1)},ads:{position:Oe(0),duration:Oe(0),playbackState:Oe("inactive"),canSkip:Oe(!1),secondsToWatchBeforeSkip:Oe(0),postrollPassed:Oe(!1)},webApi:{pictureInPictureApi:Q,annotationsApi:J},actions:{internal:{preload:Cn,firstStart:I=>Ao(I,!1),pause:()=>Lo(!1),togglePlay:Sn,toggleMuted:on,toggleSettingsMenu:Wi,openSettingsMenu:hn,closeSettingsMenu:Ki,setVolume:ni,setVideoStream:ti,setAudioStream:Qt,setQuality:An,setTrafficSavingEnabled:I=>gn(I),setPlaybackRate:Tn,incrementPlaybackRate:Pn,decrementPlaybackRate:rn,setSubtitle:Kt,toggleSubtitle:Mn,togglePictureInPicture:Hn,startScrubbing:re,progressScrubbing:It,completeScrubbing:oi,toggleChromecast:xo,switchToActiveLive:Pl,switchFromAdsToVideo:Zo,switchFromVideoToAds:Po,skipAd:Il,setLiveWaitingStart:Io,setLiveWaitingRecover:oo,setLiveWaitingRecord:co,getDebugTextData:mo,getTraceTextData:Xo,getDebugPanelData:Jo,getVideoElement:Eo,seekTime:(I,z,be)=>Mi(I,z,be),clearDelayedBufferingCheckTimeout:Ji,seekEpisodeStartTime:Dn,seekToPercent:Yt,getNextEpisode:Y,seekToNextEpisode:Rt,getPrevEpisode:vn,seekToPrevEpisode:un,startLogging:Dt,stopLogging:Pt,startCameraManualRotation:li,stopCameraManualRotation:dt,moveCameraFocusPX:lt,holdCamera:ve,releaseCamera:Je,getVideoEpisodes:po,getPreviewThumbsData:lo,downloadVideo:kn,addLanguage:Os,setLanguage:_t,nextMovie:ht,videoRotate:eo,correctSeekTimeToInteractive:_o,replayInteractive:b,setLooped:In},external:{firstStart:I=>Ao(I,!0),play:()=>$o(!0),pause:()=>Lo(!0),seekTime:I=>Nn(I),seekEpisodeStartTime:I=>Vn(I),setPlaybackRate:I=>Fn(I),setAutoQualityLimits:I=>On(I),setMuted:I=>ln(I,!0),setVolume:I=>ni(I,I,!0),returnFocusToEpisodes:Xl}},callbacks:s,setUiCallbacks:I=>{Ie=nt({},I)},getAdmanWrapper:()=>Z,getLogger:()=>x,destroy:El};return Mt};var ns=(i,e,t,n)=>{var a;if(!i)return;let o=["tooltipPointerOffsetX","disabledControls$","additionalButtons"],r=["interactiveTimeIndicator"],l=i.getBoundingClientRect();for(let[s,u]of Object.entries(e))if(!["tooltipPointerOffsetX","disabledControls$","additionalButtons"].includes(s)){let c=(a=t[s])==null?void 0:a.getBoundingClientRect(),m=(n||r.includes(s))&&!!c&&!!(c.right-c.left);u.set({positionStartX:0,positionEndX:0,left:m?Math.round(c.left-l.left):0,right:m?Math.round(c.right-l.left):0,top:m?Math.round(c.top-l.top):0,bottom:m?Math.round(c.bottom-l.top):0,isDisplayed:m})}};var os=(i,e,t)=>pt(void 0,null,function*(){yield Xn(),e&&t&&(t.focus(),i.set(!1))});function _3(i){let e,t,n,o=i[2].default,r=Le(o,i,i[1],null),l=[{xmlns:"http://www.w3.org/2000/svg"},{width:"24"},{height:"24"},{fill:"none"},{"aria-hidden":"true"},{"data-testid":"dots-icon"},{role:"img"},i[0]],a={};for(let s=0;s<l.length;s+=1)a=ue(a,l[s]);return{c(){e=D("svg"),r&&r.c(),t=D("path"),f(t,"fill","#fff"),f(t,"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"),we(e,a)},m(s,u){S(s,e,u),r&&r.m(e,null),p(e,t),n=!0},p(s,[u]){r&&r.p&&(!n||u&2)&&Me(r,o,s,s[1],n?Ae(o,s[1],u,null):Ve(s[1]),null),we(e,a=Ne(l,[{xmlns:"http://www.w3.org/2000/svg"},{width:"24"},{height:"24"},{fill:"none"},{"aria-hidden":"true"},{"data-testid":"dots-icon"},{role:"img"},u&1&&s[0]]))},i(s){n||(d(r,s),n=!0)},o(s){_(r,s),n=!1},d(s){s&&k(e),r&&r.d(s)}}}function h3(i,e,t){let{$$slots:n={},$$scope:o}=e;return i.$$set=r=>{t(0,e=ue(ue({},e),ye(r))),"$$scope"in r&&t(1,o=r.$$scope)},e=ye(e),[e,o,n]}var Nu=class extends j{constructor(e){super(),G(this,e,h3,_3,W,{})}},Tm=Nu;function g3(i){let e,t;return e=new Tm({}),{c(){q(e.$$.fragment)},m(n,o){V(e,n,o),t=!0},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){_(e.$$.fragment,n),t=!1},d(n){R(e,n)}}}function b3(i){let e,t,n;function o(l){i[8](l)}let r={className:i[3]?"opened":"",testId:"btn-context-menu",disabled:i[0],ariaLabel:i[1],click:i[5],focus:i[6],blur:i[7],ariaExpanded:i[3],$$slots:{default:[g3]},$$scope:{ctx:i}};return i[2]!==void 0&&(r.ref=i[2]),e=new wt({props:r}),ge.push(()=>He(e,"ref",o)),{c(){q(e.$$.fragment)},m(l,a){V(e,l,a),n=!0},p(l,[a]){let s={};a&8&&(s.className=l[3]?"opened":""),a&1&&(s.disabled=l[0]),a&2&&(s.ariaLabel=l[1]),a&8&&(s.ariaExpanded=l[3]),a&16384&&(s.$$scope={dirty:a,ctx:l}),!t&&a&4&&(t=!0,s.ref=l[2],ze(()=>t=!1)),e.$set(s)},i(l){n||(d(e.$$.fragment,l),n=!0)},o(l){_(e.$$.fragment,l),n=!1},d(l){R(e,l)}}}function v3(i,e,t){let n,{disabled:o=!1}=e,{ariaLabel:r=""}=e,l=rt(),a=l.ui.contextMenu.visible$;H(i,a,E=>t(3,n=E));let s=l.ui.contextMenu.openedByBtnKeyboard$,u=l.ui.contextMenu.showContextMenuBtn$,c=l.ui.contextMenu.position$,m=l.ui.contextMenu.btnRef$,h,w=E=>{let y=dl(E),b=nd(h);c.set(b),s.set(y),a.set(!n)},g=()=>{u.set(!0)},C=()=>{u.set(!1)};function v(E){h=E,t(2,h)}return i.$$set=E=>{"disabled"in E&&t(0,o=E.disabled),"ariaLabel"in E&&t(1,r=E.ariaLabel)},i.$$.update=()=>{i.$$.dirty&4&&h&&m.set(h)},[o,r,h,n,a,w,g,C,v]}var Ou=class extends j{constructor(e){super(),G(this,e,v3,b3,W,{disabled:0,ariaLabel:1})}},Pm=Ou;function y3(i){Pe(i,"svelte-17imlp9",".interactive-episode-icon-animated.svelte-17imlp9{position:absolute;top:16px;right:16px;width:32px;height:32px;transition:0.3s;opacity:1}.invisible.svelte-17imlp9{opacity:0;visibility:hidden}.fullscreen.svelte-17imlp9:not(.mobile){width:40px;top:19px;right:23px;height:40px}.mobile.svelte-17imlp9{width:28px;height:28px;top:12px;right:14px}.fullscreen.mobile.svelte-17imlp9{width:32px;height:32px}@media screen and (orientation: portrait){.interactive-episode-icon-animated.mobile.fullscreen.svelte-17imlp9{top:40px;right:16px}}@keyframes svelte-17imlp9-pulse{0%{transform:scale(1);border-width:1px;opacity:0}10%{opacity:1}50%{transform:scale(1.5);border-width:1px;opacity:0.5}100%{transform:scale(1.5);border-width:0.5px;opacity:0}}.pulse.svelte-17imlp9{display:block;content:'';border:1px solid #fff;position:absolute;top:0;left:0;right:0;bottom:0;border-radius:100%;transform:scale(1.8);animation:1s svelte-17imlp9-pulse infinite;transition:0.3s;pointer-events:none}.pulse.paused.svelte-17imlp9{animation-play-state:paused}.interactive-episode-icon-animated svg{width:100%;height:100%}.ref-block.svelte-17imlp9{position:absolute;top:0;width:100%;height:100%;visibility:hidden}.hidden.svelte-17imlp9{display:none}")}function w3(i){let e,t;return e=new qr({props:{completed:!0}}),{c(){q(e.$$.fragment)},m(n,o){V(e,n,o),t=!0},p:Ce,i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){_(e.$$.fragment,n),t=!1},d(n){R(e,n)}}}function k3(i){let e,t,n,o,r,l,a,s,u,c;function m(w){i[22](w)}let h={tooltipContent:U("tooltip_interactive_interaction_time_indicator"),tooltipActive:i[5],initialTranslateYPx:72,tooltipPlacement:"bottom",onTooltipVisibilityChange:i[13],$$slots:{default:[w3]},$$scope:{ctx:i}};return i[0]!==void 0&&(h.ref=i[0]),t=new Ft({props:h}),ge.push(()=>He(t,"ref",m)),t.$on("click",i[14]),{c(){e=T("div"),q(t.$$.fragment),o=B(),r=T("div"),l=B(),a=T("div"),f(r,"class","ref-block svelte-17imlp9"),O(r,"hidden",i[1]),f(a,"class","pulse svelte-17imlp9"),O(a,"paused",i[4]),f(e,"class","interactive-episode-icon-animated svelte-17imlp9"),O(e,"mobile",i[2]),O(e,"fullscreen",i[6]),O(e,"invisible",i[1])},m(w,g){S(w,e,g),V(t,e,null),p(e,o),p(e,r),i[23](r),p(e,l),p(e,a),i[24](a),s=!0,u||(c=[pe(e,"mousemove",at(i[21])),pe(e,"mouseleave",i[15])],u=!0)},p(w,g){let C={};g[0]&32&&(C.tooltipActive=w[5]),g[1]&1&&(C.$$scope={dirty:g,ctx:w}),!n&&g[0]&1&&(n=!0,C.ref=w[0],ze(()=>n=!1)),t.$set(C),(!s||g[0]&2)&&O(r,"hidden",w[1]),(!s||g[0]&16)&&O(a,"paused",w[4]),(!s||g[0]&4)&&O(e,"mobile",w[2]),(!s||g[0]&64)&&O(e,"fullscreen",w[6]),(!s||g[0]&2)&&O(e,"invisible",w[1])},i(w){s||(d(t.$$.fragment,w),s=!0)},o(w){_(t.$$.fragment,w),s=!1},d(w){w&&k(e),R(t),i[23](null),i[24](null),u=!1,ot(c)}}}function C3(i,e,t){var Q;let n,o,r,l,a,s,{ref:u=void 0}=e,c,m=rt(),h=Kn(),{interactiveControlsOpacity$:w}=h;H(i,w,J=>t(18,o=J));let g=m.ui.isMobile;H(i,g,J=>t(2,a=J));let C=m.ui.isFullscreen;H(i,C,J=>t(6,s=J));let v=m.state.isInteractiveTime$;H(i,v,J=>t(19,r=J));let E=h.showInteractiveTimeIndicatorTooltip$;H(i,E,J=>t(17,n=J));let y=m.ui.controlsVisible;H(i,y,J=>t(20,l=J));let b=(Q=m.callbacks)==null?void 0:Q.onInteractiveTimeIndicatorClick,P,A,M,N=()=>{t(4,M=!0)},te=()=>{_e(),c==null||c.addEventListener("animationiteration",N,{once:!0})},_e=()=>{t(4,M=!1),c==null||c.removeEventListener("animationiteration",N)},X=J=>{E.set(J)},$,se=()=>{A||(E.set(!0),b==null||b())};Zn(()=>{E.clearTimeout(),_e()});let L=()=>{E.set(!1)};function K(J){Rn.call(this,i,J)}function x(J){u=J,t(0,u)}function Z(J){ge[J?"unshift":"push"](()=>{u=J,t(0,u)})}function F(J){ge[J?"unshift":"push"](()=>{c=J,t(3,c)})}return i.$$set=J=>{"ref"in J&&t(0,u=J.ref)},i.$$.update=()=>{i.$$.dirty[0]&1048580&&t(16,P=!a&&l),i.$$.dirty[0]&851968&&t(1,A=!r||!!o||P),i.$$.dirty[0]&2&&t(4,M=A),i.$$.dirty[0]&131074&&t(5,$=n&&!A),i.$$.dirty[0]&131072&&(n?te():_e())},[u,A,a,c,M,$,s,w,g,C,v,E,y,X,se,L,P,n,o,r,l,K,x,Z,F]}var Fu=class extends j{constructor(e){super(),G(this,e,C3,k3,W,{ref:0},y3,[-1,-1])}},ls=Fu;function P3(i){Pe(i,"svelte-ips4nw",".wrapper-bottom.svelte-ips4nw.svelte-ips4nw{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-ips4nw>.svelte-ips4nw{pointer-events:auto}.controls.svelte-ips4nw.svelte-ips4nw{width:100%;display:flex;align-items:center;justify-content:space-between;height:var(--controls-height);white-space:nowrap;font-size:13px;transition:transform var(--controls-transition-duration) var(--controls-transition-fn);will-change:transform;padding:0 8px 4px;box-sizing:border-box}.controls-left.svelte-ips4nw.svelte-ips4nw,.controls-right.svelte-ips4nw.svelte-ips4nw{display:flex;align-content:center}.controls-left.svelte-ips4nw.svelte-ips4nw{flex-grow:1;min-width:0;overflow:hidden}.controls-left.svelte-ips4nw > *:not(:first-child),.controls-right.svelte-ips4nw > *{margin-left:var(--controls-desktop-item-margin-left)}.controls-hidden.svelte-ips4nw.svelte-ips4nw{visibility:visible;transform:translateY(100%)}.wrapper-bottom.no-smooth.svelte-ips4nw.svelte-ips4nw{transition:none}.settings-menu.svelte-ips4nw.svelte-ips4nw{bottom:57px;right:18px;position:absolute;transition:opacity 0.2s, visibility 0.2s}")}function Em(i,e,t){let n=i.slice();return n[210]=e[t].iconUrl,n[211]=e[t].ariaLabel,n[212]=e[t].testId,n[213]=e[t].onClick,n[214]=e[t].tooltip,n}function Lm(i){let e,t,n;function o(l){i[174](l)}let r={disabled:!i[9],tooltipContent:U("tooltip_previous"),$$slots:{default:[I3]},$$scope:{ctx:i}};return i[23].prevButton!==void 0&&(r.ref=i[23].prevButton),e=new Ft({props:r}),ge.push(()=>He(e,"ref",o)),{c(){q(e.$$.fragment)},m(l,a){V(e,l,a),n=!0},p(l,a){let s={};a[0]&512&&(s.disabled=!l[9]),a[0]&4608|a[7]&1&&(s.$$scope={dirty:a,ctx:l}),!t&&a[0]&8388608&&(t=!0,s.ref=l[23].prevButton,ze(()=>t=!1)),e.$set(s)},i(l){n||(d(e.$$.fragment,l),n=!0)},o(l){_(e.$$.fragment,l),n=!1},d(l){R(e,l)}}}function I3(i){let e,t;return e=new wl({props:{click:i[12],type:"prev",disabled:!i[9],isMobile:!1}}),{c(){q(e.$$.fragment)},m(n,o){V(e,n,o),t=!0},p(n,o){let r={};o[0]&4096&&(r.click=n[12]),o[0]&512&&(r.disabled=!n[9]),e.$set(r)},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){_(e.$$.fragment,n),t=!1},d(n){R(e,n)}}}function Am(i){let e,t,n;function o(l){i[175](l)}let r={disabled:i[74],tooltipContent:U("tooltip_restart"),$$slots:{default:[E3]},$$scope:{ctx:i}};return i[23].replayButton!==void 0&&(r.ref=i[23].replayButton),e=new Ft({props:r}),ge.push(()=>He(e,"ref",o)),{c(){q(e.$$.fragment)},m(l,a){V(e,l,a),n=!0},p(l,a){let s={};a[2]&4096&&(s.disabled=l[74]),a[2]&4096|a[7]&1&&(s.$$scope={dirty:a,ctx:l}),!t&&a[0]&8388608&&(t=!0,s.ref=l[23].replayButton,ze(()=>t=!1)),e.$set(s)},i(l){n||(d(e.$$.fragment,l),n=!0)},o(l){_(e.$$.fragment,l),n=!1},d(l){R(e,l)}}}function E3(i){let e,t;return e=new Ul({props:{click:i[128],disabled:i[74]}}),{c(){q(e.$$.fragment)},m(n,o){V(e,n,o),t=!0},p(n,o){let r={};o[2]&4096&&(r.disabled=n[74]),e.$set(r)},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){_(e.$$.fragment,n),t=!1},d(n){R(e,n)}}}function Mm(i){let e,t,n;function o(l){i[177](l)}let r={tooltipContent:i[47],disabled:i[75],$$slots:{default:[L3]},$$scope:{ctx:i}};return i[23].playButton!==void 0&&(r.ref=i[23].playButton),e=new Ft({props:r}),ge.push(()=>He(e,"ref",o)),{c(){q(e.$$.fragment)},m(l,a){V(e,l,a),n=!0},p(l,a){let s={};a[1]&65536&&(s.tooltipContent=l[47]),a[2]&8192&&(s.disabled=l[75]),a[0]&67108864|a[1]&8|a[2]&8192|a[7]&1&&(s.$$scope={dirty:a,ctx:l}),!t&&a[0]&8388608&&(t=!0,s.ref=l[23].playButton,ze(()=>t=!1)),e.$set(s)},i(l){n||(d(e.$$.fragment,l),n=!0)},o(l){_(e.$$.fragment,l),n=!1},d(l){R(e,l)}}}function L3(i){let e,t,n;function o(l){i[176](l)}let r={isMobile:!1,isPlaying:i[34],click:i[85],disabled:i[75]};return i[26]!==void 0&&(r.ref=i[26]),e=new Hl({props:r}),ge.push(()=>He(e,"ref",o)),{c(){q(e.$$.fragment)},m(l,a){V(e,l,a),n=!0},p(l,a){let s={};a[1]&8&&(s.isPlaying=l[34]),a[2]&8192&&(s.disabled=l[75]),!t&&a[0]&67108864&&(t=!0,s.ref=l[26],ze(()=>t=!1)),e.$set(s)},i(l){n||(d(e.$$.fragment,l),n=!0)},o(l){_(e.$$.fragment,l),n=!1},d(l){R(e,l)}}}function Vm(i){let e,t,n;function o(l){i[178](l)}let r={disabled:!i[8],tooltipContent:U("tooltip_next"),$$slots:{default:[A3]},$$scope:{ctx:i}};return i[23].nextButton!==void 0&&(r.ref=i[23].nextButton),e=new Ft({props:r}),ge.push(()=>He(e,"ref",o)),{c(){q(e.$$.fragment)},m(l,a){V(e,l,a),n=!0},p(l,a){let s={};a[0]&256&&(s.disabled=!l[8]),a[0]&2304|a[7]&1&&(s.$$scope={dirty:a,ctx:l}),!t&&a[0]&8388608&&(t=!0,s.ref=l[23].nextButton,ze(()=>t=!1)),e.$set(s)},i(l){n||(d(e.$$.fragment,l),n=!0)},o(l){_(e.$$.fragment,l),n=!1},d(l){R(e,l)}}}function A3(i){let e,t;return e=new wl({props:{click:i[11],type:"next",disabled:!i[8],isMobile:!1}}),{c(){q(e.$$.fragment)},m(n,o){V(e,n,o),t=!0},p(n,o){let r={};o[0]&2048&&(r.click=n[11]),o[0]&256&&(r.disabled=!n[8]),e.$set(r)},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){_(e.$$.fragment,n),t=!1},d(n){R(e,n)}}}function M3(i){let e,t,n,o,r=i[121]&&V3(i),l=i[120]&&B3(i),a=i[119]&&D3(i);return{c(){r&&r.c(),e=B(),l&&l.c(),t=B(),a&&a.c(),n=mt()},m(s,u){r&&r.m(s,u),S(s,e,u),l&&l.m(s,u),S(s,t,u),a&&a.m(s,u),S(s,n,u),o=!0},p(s,u){s[121]&&r.p(s,u),s[120]&&l.p(s,u),s[119]&&a.p(s,u)},i(s){o||(d(r),d(l),d(a),o=!0)},o(s){_(r),_(l),_(a),o=!1},d(s){s&&(k(e),k(t),k(n)),r&&r.d(s),l&&l.d(s),a&&a.d(s)}}}function V3(i){let e,t,n;function o(l){i[179](l)}let r={disabled:i[73],tooltipContent:U("tooltip_interactive_go_back"),disabledTooltipContent:U(i[124]),$$slots:{default:[R3]},$$scope:{ctx:i}};return i[23].playPrevChapterButton!==void 0&&(r.ref=i[23].playPrevChapterButton),e=new Ft({props:r}),ge.push(()=>He(e,"ref",o)),{c(){q(e.$$.fragment)},m(l,a){V(e,l,a),n=!0},p(l,a){let s={};a[2]&2048&&(s.disabled=l[73]),a[0]&131072|a[2]&2048|a[7]&1&&(s.$$scope={dirty:a,ctx:l}),!t&&a[0]&8388608&&(t=!0,s.ref=l[23].playPrevChapterButton,ze(()=>t=!1)),e.$set(s)},i(l){n||(d(e.$$.fragment,l),n=!0)},o(l){_(e.$$.fragment,l),n=!1},d(l){R(e,l)}}}function R3(i){let e,t;return e=new Zr({props:{disabled:i[73],click:i[17]}}),{c(){q(e.$$.fragment)},m(n,o){V(e,n,o),t=!0},p(n,o){let r={};o[2]&2048&&(r.disabled=n[73]),o[0]&131072&&(r.click=n[17]),e.$set(r)},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){_(e.$$.fragment,n),t=!1},d(n){R(e,n)}}}function B3(i){let e,t,n;function o(l){i[180](l)}let r={disabled:i[76],tooltipContent:U("tooltip_interactive_seek"),disabledTooltipContent:U(i[78]),$$slots:{default:[q3]},$$scope:{ctx:i}};return i[23].seekToInteractiveButton!==void 0&&(r.ref=i[23].seekToInteractiveButton),e=new Ft({props:r}),ge.push(()=>He(e,"ref",o)),{c(){q(e.$$.fragment)},m(l,a){V(e,l,a),n=!0},p(l,a){let s={};a[2]&16384&&(s.disabled=l[76]),a[2]&65536&&(s.disabledTooltipContent=U(l[78])),a[0]&32768|a[2]&16384|a[7]&1&&(s.$$scope={dirty:a,ctx:l}),!t&&a[0]&8388608&&(t=!0,s.ref=l[23].seekToInteractiveButton,ze(()=>t=!1)),e.$set(s)},i(l){n||(d(e.$$.fragment,l),n=!0)},o(l){_(e.$$.fragment,l),n=!1},d(l){R(e,l)}}}function q3(i){let e,t;return e=new Gr({props:{disabled:i[76],click:i[15]}}),{c(){q(e.$$.fragment)},m(n,o){V(e,n,o),t=!0},p(n,o){let r={};o[2]&16384&&(r.disabled=n[76]),o[0]&32768&&(r.click=n[15]),e.$set(r)},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){_(e.$$.fragment,n),t=!1},d(n){R(e,n)}}}function D3(i){let e,t,n;function o(l){i[181](l)}let r={tooltipContent:i[48],disabled:i[77],$$slots:{default:[N3]},$$scope:{ctx:i}};return i[23].interactiveGraphButton!==void 0&&(r.ref=i[23].interactiveGraphButton),e=new Ft({props:r}),ge.push(()=>He(e,"ref",o)),{c(){q(e.$$.fragment)},m(l,a){V(e,l,a),n=!0},p(l,a){let s={};a[1]&131072&&(s.tooltipContent=l[48]),a[2]&32768&&(s.disabled=l[77]),a[0]&65536|a[1]&1|a[2]&32768|a[7]&1&&(s.$$scope={dirty:a,ctx:l}),!t&&a[0]&8388608&&(t=!0,s.ref=l[23].interactiveGraphButton,ze(()=>t=!1)),e.$set(s)},i(l){n||(d(e.$$.fragment,l),n=!0)},o(l){_(e.$$.fragment,l),n=!1},d(l){R(e,l)}}}function N3(i){let e,t;return e=new Qr({props:{click:i[16],graphIsOpened:i[31],disabled:i[77]}}),{c(){q(e.$$.fragment)},m(n,o){V(e,n,o),t=!0},p(n,o){let r={};o[0]&65536&&(r.click=n[16]),o[1]&1&&(r.graphIsOpened=n[31]),o[2]&32768&&(r.disabled=n[77]),e.$set(r)},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){_(e.$$.fragment,n),t=!1},d(n){R(e,n)}}}function Rm(i){let e,t,n;function o(l){i[182](l)}let r={tooltipContent:i[50],$$slots:{default:[O3]},$$scope:{ctx:i}};return i[23].liveButton!==void 0&&(r.ref=i[23].liveButton),e=new Ft({props:r}),ge.push(()=>He(e,"ref",o)),{c(){q(e.$$.fragment)},m(l,a){V(e,l,a),n=!0},p(l,a){let s={};a[1]&524288&&(s.tooltipContent=l[50]),a[0]&2097152|a[1]&524288|a[7]&1&&(s.$$scope={dirty:a,ctx:l}),!t&&a[0]&8388608&&(t=!0,s.ref=l[23].liveButton,ze(()=>t=!1)),e.$set(s)},i(l){n||(d(e.$$.fragment,l),n=!0)},o(l){_(e.$$.fragment,l),n=!1},d(l){R(e,l)}}}function O3(i){let e,t;return e=new Hr({props:{isActiveLive:i[21],isMobile:!1,ariaLabel:i[50]}}),{c(){q(e.$$.fragment)},m(n,o){V(e,n,o),t=!0},p(n,o){let r={};o[0]&2097152&&(r.isActiveLive=n[21]),o[1]&524288&&(r.ariaLabel=n[50]),e.$set(r)},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){_(e.$$.fragment,n),t=!1},d(n){R(e,n)}}}function Bm(i){let e,t,n;function o(l){i[183](l)}let r={isMobile:!1,showDuration:i[55],position:i[4]?i[79]:i[80],duration:i[4]?i[81]:i[82]};return i[23].time!==void 0&&(r.ref=i[23].time),e=new Rr({props:r}),ge.push(()=>He(e,"ref",o)),{c(){q(e.$$.fragment)},m(l,a){V(e,l,a),n=!0},p(l,a){let s={};a[1]&16777216&&(s.showDuration=l[55]),a[0]&16|a[2]&393216&&(s.position=l[4]?l[79]:l[80]),a[0]&16|a[2]&1572864&&(s.duration=l[4]?l[81]:l[82]),!t&&a[0]&8388608&&(t=!0,s.ref=l[23].time,ze(()=>t=!1)),e.$set(s)},i(l){n||(d(e.$$.fragment,l),n=!0)},o(l){_(e.$$.fragment,l),n=!1},d(l){R(e,l)}}}function qm(i){let e,t;return e=new jr({props:{position:i[80],duration:i[82],timeCodes:i[101]}}),{c(){q(e.$$.fragment)},m(n,o){V(e,n,o),t=!0},p(n,o){let r={};o[2]&262144&&(r.position=n[80]),o[2]&1048576&&(r.duration=n[82]),e.$set(r)},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){_(e.$$.fragment,n),t=!1},d(n){R(e,n)}}}function F3(i){let e,t,n=i[20]&&qm(i);return{c(){n&&n.c(),e=mt()},m(o,r){n&&n.m(o,r),S(o,e,r),t=!0},p(o,r){o[20]?n?(n.p(o,r),r[0]&1048576&&d(n,1)):(n=qm(o),n.c(),d(n,1),n.m(e.parentNode,e)):n&&(ce(),_(n,1,1,()=>{n=null}),de())},i(o){t||(d(n),t=!0)},o(o){_(n),t=!1},d(o){o&&k(e),n&&n.d(o)}}}function z3(i){var n;let e,t;return e=new Xr({props:{iconUrl:i[210],ariaLabel:(n=i[211])!=null?n:i[214],testId:i[212],onClick:i[213]}}),{c(){q(e.$$.fragment)},m(o,r){V(e,o,r),t=!0},p(o,r){var a;let l={};r[0]&268435456&&(l.iconUrl=o[210]),r[0]&268435456&&(l.ariaLabel=(a=o[211])!=null?a:o[214]),r[0]&268435456&&(l.testId=o[212]),r[0]&268435456&&(l.onClick=o[213]),e.$set(l)},i(o){t||(d(e.$$.fragment,o),t=!0)},o(o){_(e.$$.fragment,o),t=!1},d(o){R(e,o)}}}function Dm(i){let e,t;return e=new Ft({props:{tooltipContent:i[214],width:40,$$slots:{default:[z3]},$$scope:{ctx:i}}}),{c(){q(e.$$.fragment)},m(n,o){V(e,n,o),t=!0},p(n,o){let r={};o[0]&268435456&&(r.tooltipContent=n[214]),o[0]&268435456|o[7]&1&&(r.$$scope={dirty:o,ctx:n}),e.$set(r)},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){_(e.$$.fragment,n),t=!1},d(n){R(e,n)}}}function Nm(i){let e,t,n;function o(l){i[186](l)}let r={disabled:!i[6],tooltipContent:i[51],disabledTooltipContent:"",$$slots:{default:[H3]},$$scope:{ctx:i}};return i[23].vkLogo!==void 0&&(r.ref=i[23].vkLogo),e=new Ft({props:r}),ge.push(()=>He(e,"ref",o)),{c(){q(e.$$.fragment)},m(l,a){V(e,l,a),n=!0},p(l,a){let s={};a[0]&64&&(s.disabled=!l[6]),a[1]&1048576&&(s.tooltipContent=l[51]),a[0]&192|a[7]&1&&(s.$$scope={dirty:a,ctx:l}),!t&&a[0]&8388608&&(t=!0,s.ref=l[23].vkLogo,ze(()=>t=!1)),e.$set(s)},i(l){n||(d(e.$$.fragment,l),n=!0)},o(l){_(e.$$.fragment,l),n=!1},d(l){R(e,l)}}}function H3(i){let e,t;return e=new Fr({props:{click:i[86],targetUrl:i[7],logoClickable:i[6]}}),{c(){q(e.$$.fragment)},m(n,o){V(e,n,o),t=!0},p(n,o){let r={};o[0]&128&&(r.targetUrl=n[7]),o[0]&64&&(r.logoClickable=n[6]),e.$set(r)},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){_(e.$$.fragment,n),t=!1},d(n){R(e,n)}}}function U3(i){let e,t;return e=new Z1({props:{click:i[127]}}),{c(){q(e.$$.fragment)},m(n,o){V(e,n,o),t=!0},p:Ce,i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){_(e.$$.fragment,n),t=!1},d(n){R(e,n)}}}function Om(i){let e,t,n;function o(l){i[188](l)}let r={tooltipContent:i[52],$$slots:{default:[K3]},$$scope:{ctx:i}};return i[23].subtitles!==void 0&&(r.ref=i[23].subtitles),e=new Ft({props:r}),ge.push(()=>He(e,"ref",o)),{c(){q(e.$$.fragment)},m(l,a){V(e,l,a),n=!0},p(l,a){let s={};a[1]&2097152&&(s.tooltipContent=l[52]),a[0]&262144|a[7]&1&&(s.$$scope={dirty:a,ctx:l}),!t&&a[0]&8388608&&(t=!0,s.ref=l[23].subtitles,ze(()=>t=!1)),e.$set(s)},i(l){n||(d(e.$$.fragment,l),n=!0)},o(l){_(e.$$.fragment,l),n=!1},d(l){R(e,l)}}}function K3(i){let e,t;return e=new B1({props:{isSubtitlesEnabled:i[18],click:i[87]}}),{c(){q(e.$$.fragment)},m(n,o){V(e,n,o),t=!0},p(n,o){let r={};o[0]&262144&&(r.isSubtitlesEnabled=n[18]),e.$set(r)},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){_(e.$$.fragment,n),t=!1},d(n){R(e,n)}}}function Fm(i){var a;let e,t,n,o;function r(s){i[189](s)}let l={supportLink:i[10],playerControlsHeight:(a=i[46])==null?void 0:a.clientHeight,returnFocus:i[14]};return i[24]!==void 0&&(l.ref=i[24]),t=new Vr({props:l}),ge.push(()=>He(t,"ref",r)),{c(){e=T("div"),q(t.$$.fragment),f(e,"class","settings-menu svelte-ips4nw")},m(s,u){S(s,e,u),V(t,e,null),o=!0},p(s,u){var m;let c={};u[0]&1024&&(c.supportLink=s[10]),u[1]&32768&&(c.playerControlsHeight=(m=s[46])==null?void 0:m.clientHeight),u[0]&16384&&(c.returnFocus=s[14]),!n&&u[0]&16777216&&(n=!0,c.ref=s[24],ze(()=>n=!1)),t.$set(c)},i(s){o||(d(t.$$.fragment,s),o=!0)},o(s){_(t.$$.fragment,s),o=!1},d(s){s&&k(e),R(t)}}}function zm(i){let e,t,n;function o(l){i[191](l)}let r={tooltipContent:i[27]?void 0:U("tooltip_settings_off"),$$slots:{default:[W3]},$$scope:{ctx:i}};return i[23].settings!==void 0&&(r.ref=i[23].settings),e=new Ft({props:r}),ge.push(()=>He(e,"ref",o)),{c(){q(e.$$.fragment)},m(l,a){V(e,l,a),n=!0},p(l,a){let s={};a[0]&134217728&&(s.tooltipContent=l[27]?void 0:U("tooltip_settings_off")),a[0]&33554432|a[7]&1&&(s.$$scope={dirty:a,ctx:l}),!t&&a[0]&8388608&&(t=!0,s.ref=l[23].settings,ze(()=>t=!1)),e.$set(s)},i(l){n||(d(e.$$.fragment,l),n=!0)},o(l){_(e.$$.fragment,l),n=!1},d(l){R(e,l)}}}function W3(i){let e,t,n;function o(l){i[190](l)}let r={};return i[25]!==void 0&&(r.ref=i[25]),e=new Fl({props:r}),ge.push(()=>He(e,"ref",o)),{c(){q(e.$$.fragment)},m(l,a){V(e,l,a),n=!0},p(l,a){let s={};!t&&a[0]&33554432&&(t=!0,s.ref=l[25],ze(()=>t=!1)),e.$set(s)},i(l){n||(d(e.$$.fragment,l),n=!0)},o(l){_(e.$$.fragment,l),n=!1},d(l){R(e,l)}}}function j3(i){let e,t,n;function o(l){i[192](l)}let r={className:i[41]?"":"out-of-view",tooltipContent:i[49],$$slots:{default:[G3]},$$scope:{ctx:i}};return i[23].context!==void 0&&(r.ref=i[23].context),e=new Ft({props:r}),ge.push(()=>He(e,"ref",o)),{c(){q(e.$$.fragment)},m(l,a){V(e,l,a),n=!0},p(l,a){let s={};a[1]&1024&&(s.className=l[41]?"":"out-of-view"),a[1]&262144&&(s.tooltipContent=l[49]),a[1]&262144|a[7]&1&&(s.$$scope={dirty:a,ctx:l}),!t&&a[0]&8388608&&(t=!0,s.ref=l[23].context,ze(()=>t=!1)),e.$set(s)},i(l){n||(d(e.$$.fragment,l),n=!0)},o(l){_(e.$$.fragment,l),n=!1},d(l){R(e,l)}}}function G3(i){let e,t;return e=new Pm({props:{ariaLabel:i[49]}}),{c(){q(e.$$.fragment)},m(n,o){V(e,n,o),t=!0},p(n,o){let r={};o[1]&262144&&(r.ariaLabel=n[49]),e.$set(r)},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){_(e.$$.fragment,n),t=!1},d(n){R(e,n)}}}function Hm(i){let e,t,n;function o(l){i[193](l)}let r={tooltipContent:i[53],$$slots:{default:[Q3]},$$scope:{ctx:i}};return i[23].fullscreen!==void 0&&(r.ref=i[23].fullscreen),e=new Ft({props:r}),ge.push(()=>He(e,"ref",o)),{c(){q(e.$$.fragment)},m(l,a){V(e,l,a),n=!0},p(l,a){let s={};a[1]&4194304&&(s.tooltipContent=l[53]),a[0]&1073750016|a[7]&1&&(s.$$scope={dirty:a,ctx:l}),!t&&a[0]&8388608&&(t=!0,s.ref=l[23].fullscreen,ze(()=>t=!1)),e.$set(s)},i(l){n||(d(e.$$.fragment,l),n=!0)},o(l){_(e.$$.fragment,l),n=!1},d(l){R(e,l)}}}function Q3(i){let e,t;return e=new Nr({props:{click:i[13],isFullscreen:i[30]}}),{c(){q(e.$$.fragment)},m(n,o){V(e,n,o),t=!0},p(n,o){let r={};o[0]&8192&&(r.click=n[13]),o[0]&1073741824&&(r.isFullscreen=n[30]),e.$set(r)},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){_(e.$$.fragment,n),t=!1},d(n){R(e,n)}}}function Um(i){let e,t,n;function o(l){i[194](l)}let r={tooltipContent:i[54],$$slots:{default:[Y3]},$$scope:{ctx:i}};return i[23].chromecast!==void 0&&(r.ref=i[23].chromecast),e=new Ft({props:r}),ge.push(()=>He(e,"ref",o)),{c(){q(e.$$.fragment)},m(l,a){V(e,l,a),n=!0},p(l,a){let s={};a[1]&8388608&&(s.tooltipContent=l[54]),a[0]&536870912|a[7]&1&&(s.$$scope={dirty:a,ctx:l}),!t&&a[0]&8388608&&(t=!0,s.ref=l[23].chromecast,ze(()=>t=!1)),e.$set(s)},i(l){n||(d(e.$$.fragment,l),n=!0)},o(l){_(e.$$.fragment,l),n=!1},d(l){R(e,l)}}}function Y3(i){let e,t;return e=new zr({props:{isMobile:!1,state:i[29],click:i[126]}}),{c(){q(e.$$.fragment)},m(n,o){V(e,n,o),t=!0},p(n,o){let r={};o[0]&536870912&&(r.state=n[29]),e.$set(r)},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){_(e.$$.fragment,n),t=!1},d(n){R(e,n)}}}function Z3(i){let e,t,n;function o(l){i[197](l)}let r={};return i[23].interactiveTimeIndicator!==void 0&&(r.ref=i[23].interactiveTimeIndicator),e=new ls({props:r}),ge.push(()=>He(e,"ref",o)),{c(){q(e.$$.fragment)},m(l,a){V(e,l,a),n=!0},p(l,a){let s={};!t&&a[0]&8388608&&(t=!0,s.ref=l[23].interactiveTimeIndicator,ze(()=>t=!1)),e.$set(s)},i(l){n||(d(e.$$.fragment,l),n=!0)},o(l){_(e.$$.fragment,l),n=!1},d(l){R(e,l)}}}function X3(i){let e,t,n,o,r,l,a,s,u,c,m,h,w,g,C,v,E,y,b,P,A,M,N,te,_e,X,$,se,L,K,x;function Z(le){i[173](le)}let F={isHidden:!i[45],isAds:i[4],canRewindLive:i[5],isRewindableLive:i[32]};i[23].timeline!==void 0&&(F.ref=i[23].timeline),t=new Wr({props:F}),ge.push(()=>He(t,"ref",Z));let Q=i[38]&&Lm(i),J=i[35]&&Am(i),oe=i[36]&&Mm(i),Be=i[37]&&Vm(i),Ye=i[117]&&M3(i),Ie=!i[4]&&i[33]&&Rm(i),Re=i[19]&&Bm(i);function qe(le){i[184](le)}let xe={className:"w-max",disabled:!i[20],tooltipContent:U("tooltip_episodes"),$$slots:{default:[F3]},$$scope:{ctx:i}};i[23].episodes!==void 0&&(xe.ref=i[23].episodes),g=new Ft({props:xe}),ge.push(()=>He(g,"ref",qe));let ae=Vt(i[28]),he=[];for(let le=0;le<ae.length;le+=1)he[le]=Dm(Em(i,ae,le));let ft=le=>_(he[le],1,1,()=>{he[le]=null}),ke=i[43]&&!i[4]&&Nm(i);function Ke(le){i[187](le)}let _t={$$slots:{default:[U3]},$$scope:{ctx:i}};i[23].volume!==void 0&&(_t.ref=i[23].volume),A=new Ft({props:_t}),ge.push(()=>He(A,"ref",Ke));let Ze=i[40]&&Om(i),Ge=!i[83]&&!i[4]&&Fm(i),Xe=i[42]&&!i[4]&&zm(i),et=i[84].features.contextMenuButton&&j3(i),fe=i[44]&&Hm(i),Te=i[39]&&Um(i),We=i[122]&&Z3(i);return{c(){e=T("div"),q(t.$$.fragment),o=B(),r=T("div"),l=T("div"),Q&&Q.c(),a=B(),J&&J.c(),s=B(),oe&&oe.c(),u=B(),Be&&Be.c(),c=B(),Ye&&Ye.c(),m=B(),Ie&&Ie.c(),h=B(),Re&&Re.c(),w=B(),q(g.$$.fragment),E=B(),y=T("div");for(let le=0;le<he.length;le+=1)he[le].c();b=B(),ke&&ke.c(),P=B(),q(A.$$.fragment),N=B(),Ze&&Ze.c(),te=B(),Ge&&Ge.c(),_e=B(),Xe&&Xe.c(),X=B(),et&&et.c(),$=B(),fe&&fe.c(),se=B(),Te&&Te.c(),L=B(),We&&We.c(),K=mt(),f(l,"class","controls-left svelte-ips4nw"),Jn(()=>i[185].call(l)),f(y,"class","controls-right svelte-ips4nw"),f(r,"class","controls svelte-ips4nw"),f(e,"class","wrapper-bottom svelte-ips4nw"),O(e,"hidden",i[1]),O(e,"controls-hidden",!i[3]),O(e,"no-smooth",i[2])},m(le,Se){S(le,e,Se),V(t,e,null),p(e,o),p(e,r),p(r,l),Q&&Q.m(l,null),p(l,a),J&&J.m(l,null),p(l,s),oe&&oe.m(l,null),p(l,u),Be&&Be.m(l,null),p(l,c),Ye&&Ye.m(l,null),p(l,m),Ie&&Ie.m(l,null),p(l,h),Re&&Re.m(l,null),p(l,w),V(g,l,null),v=tl(l,i[185].bind(l)),p(r,E),p(r,y);for(let ht=0;ht<he.length;ht+=1)he[ht]&&he[ht].m(y,null);p(y,b),ke&&ke.m(y,null),p(y,P),V(A,y,null),p(y,N),Ze&&Ze.m(y,null),p(y,te),Ge&&Ge.m(y,null),p(y,_e),Xe&&Xe.m(y,null),p(y,X),et&&et.m(y,null),p(y,$),fe&&fe.m(y,null),p(y,se),Te&&Te.m(y,null),i[195](r),i[196](e),S(le,L,Se),We&&We.m(le,Se),S(le,K,Se),x=!0},p(le,Se){let ht={};Se[1]&16384&&(ht.isHidden=!le[45]),Se[0]&16&&(ht.isAds=le[4]),Se[0]&32&&(ht.canRewindLive=le[5]),Se[1]&2&&(ht.isRewindableLive=le[32]),!n&&Se[0]&8388608&&(n=!0,ht.ref=le[23].timeline,ze(()=>n=!1)),t.$set(ht),le[38]?Q?(Q.p(le,Se),Se[1]&128&&d(Q,1)):(Q=Lm(le),Q.c(),d(Q,1),Q.m(l,a)):Q&&(ce(),_(Q,1,1,()=>{Q=null}),de()),le[35]?J?(J.p(le,Se),Se[1]&16&&d(J,1)):(J=Am(le),J.c(),d(J,1),J.m(l,s)):J&&(ce(),_(J,1,1,()=>{J=null}),de()),le[36]?oe?(oe.p(le,Se),Se[1]&32&&d(oe,1)):(oe=Mm(le),oe.c(),d(oe,1),oe.m(l,u)):oe&&(ce(),_(oe,1,1,()=>{oe=null}),de()),le[37]?Be?(Be.p(le,Se),Se[1]&64&&d(Be,1)):(Be=Vm(le),Be.c(),d(Be,1),Be.m(l,c)):Be&&(ce(),_(Be,1,1,()=>{Be=null}),de()),le[117]&&Ye.p(le,Se),!le[4]&&le[33]?Ie?(Ie.p(le,Se),Se[0]&16|Se[1]&4&&d(Ie,1)):(Ie=Rm(le),Ie.c(),d(Ie,1),Ie.m(l,h)):Ie&&(ce(),_(Ie,1,1,()=>{Ie=null}),de()),le[19]?Re?(Re.p(le,Se),Se[0]&524288&&d(Re,1)):(Re=Bm(le),Re.c(),d(Re,1),Re.m(l,w)):Re&&(ce(),_(Re,1,1,()=>{Re=null}),de());let Ee={};if(Se[0]&1048576&&(Ee.disabled=!le[20]),Se[0]&1048576|Se[2]&1310720|Se[7]&1&&(Ee.$$scope={dirty:Se,ctx:le}),!C&&Se[0]&8388608&&(C=!0,Ee.ref=le[23].episodes,ze(()=>C=!1)),g.$set(Ee),Se[0]&268435456){ae=Vt(le[28]);let me;for(me=0;me<ae.length;me+=1){let tt=Em(le,ae,me);he[me]?(he[me].p(tt,Se),d(he[me],1)):(he[me]=Dm(tt),he[me].c(),d(he[me],1),he[me].m(y,b))}for(ce(),me=ae.length;me<he.length;me+=1)ft(me);de()}le[43]&&!le[4]?ke?(ke.p(le,Se),Se[0]&16|Se[1]&4096&&d(ke,1)):(ke=Nm(le),ke.c(),d(ke,1),ke.m(y,P)):ke&&(ce(),_(ke,1,1,()=>{ke=null}),de());let ct={};Se[7]&1&&(ct.$$scope={dirty:Se,ctx:le}),!M&&Se[0]&8388608&&(M=!0,ct.ref=le[23].volume,ze(()=>M=!1)),A.$set(ct),le[40]?Ze?(Ze.p(le,Se),Se[1]&512&&d(Ze,1)):(Ze=Om(le),Ze.c(),d(Ze,1),Ze.m(y,te)):Ze&&(ce(),_(Ze,1,1,()=>{Ze=null}),de()),!le[83]&&!le[4]?Ge?(Ge.p(le,Se),Se[0]&16|Se[2]&2097152&&d(Ge,1)):(Ge=Fm(le),Ge.c(),d(Ge,1),Ge.m(y,_e)):Ge&&(ce(),_(Ge,1,1,()=>{Ge=null}),de()),le[42]&&!le[4]?Xe?(Xe.p(le,Se),Se[0]&16|Se[1]&2048&&d(Xe,1)):(Xe=zm(le),Xe.c(),d(Xe,1),Xe.m(y,X)):Xe&&(ce(),_(Xe,1,1,()=>{Xe=null}),de()),le[84].features.contextMenuButton&&et.p(le,Se),le[44]?fe?(fe.p(le,Se),Se[1]&8192&&d(fe,1)):(fe=Hm(le),fe.c(),d(fe,1),fe.m(y,se)):fe&&(ce(),_(fe,1,1,()=>{fe=null}),de()),le[39]?Te?(Te.p(le,Se),Se[1]&256&&d(Te,1)):(Te=Um(le),Te.c(),d(Te,1),Te.m(y,null)):Te&&(ce(),_(Te,1,1,()=>{Te=null}),de()),(!x||Se[0]&2)&&O(e,"hidden",le[1]),(!x||Se[0]&8)&&O(e,"controls-hidden",!le[3]),(!x||Se[0]&4)&&O(e,"no-smooth",le[2]),le[122]&&We.p(le,Se)},i(le){if(!x){d(t.$$.fragment,le),d(Q),d(J),d(oe),d(Be),d(Ye),d(Ie),d(Re),d(g.$$.fragment,le);for(let Se=0;Se<ae.length;Se+=1)d(he[Se]);d(ke),d(A.$$.fragment,le),d(Ze),d(Ge),d(Xe),d(et),d(fe),d(Te),d(We),x=!0}},o(le){_(t.$$.fragment,le),_(Q),_(J),_(oe),_(Be),_(Ye),_(Ie),_(Re),_(g.$$.fragment,le),he=he.filter(Boolean);for(let Se=0;Se<he.length;Se+=1)_(he[Se]);_(ke),_(A.$$.fragment,le),_(Ze),_(Ge),_(Xe),_(et),_(fe),_(Te),_(We),x=!1},d(le){le&&(k(e),k(L),k(K)),R(t),Q&&Q.d(),J&&J.d(),oe&&oe.d(),Be&&Be.d(),Ye&&Ye.d(),Ie&&Ie.d(),Re&&Re.d(),R(g),v(),qi(he,le),ke&&ke.d(),R(A),Ze&&Ze.d(),Ge&&Ge.d(),Xe&&Xe.d(),et&&et.d(),fe&&fe.d(),Te&&Te.d(),i[195](null),i[196](null),We&&We.d(le)}}}function J3(i,e,t){var Of,Ff;let n,o,r,l,a,s,u,c,m,h,w,g,C,v,E,y,b,P,A,M,N,te,_e,X,$,se,L,K,x,Z,F,Q,J=Ce,oe=()=>(J(),J=Zt(_e,ee=>t(144,Q=ee)),_e),Be,Ye=Ce,Ie=()=>(Ye(),Ye=Zt(te,ee=>t(145,Be=ee)),te),Re,qe=Ce,xe=()=>(qe(),qe=Zt(N,ee=>t(146,Re=ee)),N),ae,he=Ce,ft=()=>(he(),he=Zt(M,ee=>t(147,ae=ee)),M),ke,Ke=Ce,_t=()=>(Ke(),Ke=Zt(A,ee=>t(148,ke=ee)),A),Ze,Ge=Ce,Xe=()=>(Ge(),Ge=Zt(P,ee=>t(149,Ze=ee)),P),et,fe=Ce,Te=()=>(fe(),fe=Zt(b,ee=>t(150,et=ee)),b),We,le=Ce,Se=()=>(le(),le=Zt(y,ee=>t(151,We=ee)),y),ht,Ee=Ce,ct=()=>(Ee(),Ee=Zt(E,ee=>t(152,ht=ee)),E),me,tt=Ce,Tt=()=>(tt(),tt=Zt(v,ee=>t(153,me=ee)),v),vt,Ue=Ce,zt=()=>(Ue(),Ue=Zt(C,ee=>t(154,vt=ee)),C),Dt,Pt=Ce,li=()=>(Pt(),Pt=Zt(g,ee=>t(155,Dt=ee)),g),dt,lt=Ce,ve=()=>(lt(),lt=Zt(w,ee=>t(156,dt=ee)),w),Je,gt=Ce,Ht=()=>(gt(),gt=Zt(h,ee=>t(157,Je=ee)),h),kt,xt=Ce,hi=()=>(xt(),xt=Zt(m,ee=>t(158,kt=ee)),m),qt,Yi=Ce,fn=()=>(Yi(),Yi=Zt(c,ee=>t(159,qt=ee)),c),ri,Di=Ce,cn=()=>(Di(),Di=Zt(u,ee=>t(160,ri=ee)),u),Zi,dn,Ni,Oi,gi,bi,Ti,Pi,$t,jt,Xi,Gt,Ii,Fi,Ji,si,Ct,xi,zi,At,$i,en,ei;i.$$.on_destroy.push(()=>J()),i.$$.on_destroy.push(()=>Ye()),i.$$.on_destroy.push(()=>qe()),i.$$.on_destroy.push(()=>he()),i.$$.on_destroy.push(()=>Ke()),i.$$.on_destroy.push(()=>Ge()),i.$$.on_destroy.push(()=>fe()),i.$$.on_destroy.push(()=>le()),i.$$.on_destroy.push(()=>Ee()),i.$$.on_destroy.push(()=>tt()),i.$$.on_destroy.push(()=>Ue()),i.$$.on_destroy.push(()=>Pt()),i.$$.on_destroy.push(()=>lt()),i.$$.on_destroy.push(()=>gt()),i.$$.on_destroy.push(()=>xt()),i.$$.on_destroy.push(()=>Yi()),i.$$.on_destroy.push(()=>Di());let{bottomHidden:Ei}=e,{bottomNoSmooth:vi}=e,{showControls:Li}=e,{controlsElementRef:ti=void 0}=e,{isAds:Qt=!1}=e,{canRewindLive:ai}=e,{logoClickable:Hi}=e,{logoHidden:mi}=e,{logoTargetUrl:pi=""}=e,{showNextPrevButtons:ui}=e,{nextButtonActive:yi}=e,{prevButtonActive:tn}=e,{isOneVideoPlaylist:yn=!1}=e,{supportLink:Ui}=e,{customFullscreenSupported:_i=!0}=e,{playNextVideo:ii}=e,{playPrevVideo:mn}=e,{repeatPlaylist:Ot}=e,{toggleFullscreen:Ut}=e,{returnFocus:pn}=e,{seekToInteractive:wi}=e,{toggleGraph:fi}=e,{playPrevChapter:_n}=e,it=rt(),Ai=Kn(),ci=Wt(),je=it.actions.internal.toggleMuted,nn=it.actions.internal.togglePlay,wn=it.actions.internal.pause,kn=it.actions.internal.toggleSubtitle,on=(Of=it.callbacks)==null?void 0:Of.onAudioDoesNotExistHint,Ki=(Ff=it.callbacks)==null?void 0:Ff.onAudioDisabledHint,hn=it.state.duration$;H(i,hn,ee=>t(82,en=ee));let Wi=it.state.positionWithScrubbing$;H(i,Wi,ee=>t(80,At=ee));let ni=it.state.playbackState$;H(i,ni,ee=>t(161,Ni=ee));let ln=it.state.chromecastConnected$;H(i,ln,ee=>t(83,ei=ee));let ki=it.state.isAudioAvailable$;H(i,ki,ee=>t(198,X=ee));let In=it.state.isAudioDisabled,Cn=it.state.isEnded$;H(i,Cn,ee=>t(169,Fi=ee));let Sn=it.state.isLive$;H(i,Sn,ee=>t(33,Pi=ee));let An=it.state.isActiveLive$;H(i,An,ee=>t(163,bi=ee));let gn=it.state.isRewindableLive$;H(i,gn,ee=>t(32,Ti=ee));let Tn=it.ui.isPictureInPictureActive$;H(i,Tn,ee=>t(165,jt=ee));let Pn=it.ui.pictureInPictureType$;H(i,Pn,ee=>t(164,$t=ee));let rn=it.ui.settingsMenuVisible;H(i,rn,ee=>t(27,L=ee));let Kt=it.ui.settingsMenuOpenedByKeyboard;H(i,Kt,ee=>t(140,se=ee));let Mn=it.ui.controls,Mi=it.actions.internal.getVideoEpisodes(),Dn=it.state.chromecastState$;H(i,Dn,ee=>t(29,Zi=ee));let Yt=it.state.availableSubtitlesList$;H(i,Yt,ee=>t(168,Ii=ee));let Nn=it.state.currentSubtitle$;H(i,Nn,ee=>t(170,Ji=ee));let On=Mn.disabledControls$;H(i,On,ee=>t(172,Ct=ee));let Vn=it.ui.contextMenu.visible$;H(i,Vn,ee=>t(162,Oi=ee));let Fn=it.ui.contextMenu.showContextMenuBtn$;H(i,Fn,ee=>t(166,Xi=ee));let bn=it.ui.contextMenu.openedByBtnKeyboard$;H(i,bn,ee=>t(167,Gt=ee));let ji=it.ui.startedByKeyboard$;H(i,ji,ee=>t(139,$=ee));let re=it.ads.duration;H(i,re,ee=>t(81,$i=ee));let It=it.ads.position;H(i,It,ee=>t(79,zi=ee));let sn=it.ads.playbackState;H(i,sn,ee=>t(171,si=ee));let Vi=it.ui.isFullscreen;H(i,Vi,ee=>t(30,dn=ee));let ie=it.ui.playerSize;H(i,ie,ee=>t(142,x=ee));let ut=it.ui.currentGridType$;H(i,ut,ee=>t(143,Z=ee));let oi=it.ui.additionalButtons$;H(i,oi,ee=>t(28,F=ee));let zn=it.actions.internal.getVideoElement,Gn=it.actions.internal.replayInteractive,an=it.state.isInteractive,Qn=it.state.isInteractiveTime$;H(i,Qn,ee=>t(141,K=ee));let ne=it.state.showInteractiveGraph,To=it.state.showSeekToInteractive,Pl=it.state.showPlayPrevChapter,Il=it.state.showInteractiveTimeIndicator,Zo=it.state.graphIsOpened$;H(i,Zo,ee=>t(31,gi=ee));let Po=it.state.playPrevChapterDisabledTooltip,Io=Ai.seekToInteractiveDisabledTooltip$;H(i,Io,ee=>t(78,xi=ee));let oo=()=>it.actions.internal.toggleChromecast(),co,mo,Xo,Jo,Eo,xo,Lo,$o,Ao,po,Y,Rt,vn,un,lo,Hn,eo,to,el,_o,Xl,El="",Mt=(ee,ws)=>{if(!ee){t(50,El=U("tooltip_live"));return}ws===zu.PAUSED&&t(50,El=U("tooltip_play"))},Ll,Al,Ml,Vl,I,z={},be,Fe,st,yt,St=T3(ns,260,{leading:!1}),bt,Et,Ri;function ro(){yo({isAudioDisabled:In,audioDisabledHintCallback:Ki,isAudioAvailable:X,audioIsNotExistHintCallback:on})&&je()}let ho=an?Gn:yn?nn:Ot;function Yn(ee){i.$$.not_equal(z.timeline,ee)&&(z.timeline=ee,t(23,z))}function Rl(ee){i.$$.not_equal(z.prevButton,ee)&&(z.prevButton=ee,t(23,z))}function ys(ee){i.$$.not_equal(z.replayButton,ee)&&(z.replayButton=ee,t(23,z))}function e_(ee){Ri=ee,t(26,Ri)}function t_(ee){i.$$.not_equal(z.playButton,ee)&&(z.playButton=ee,t(23,z))}function i_(ee){i.$$.not_equal(z.nextButton,ee)&&(z.nextButton=ee,t(23,z))}function n_(ee){i.$$.not_equal(z.playPrevChapterButton,ee)&&(z.playPrevChapterButton=ee,t(23,z))}function o_(ee){i.$$.not_equal(z.seekToInteractiveButton,ee)&&(z.seekToInteractiveButton=ee,t(23,z))}function l_(ee){i.$$.not_equal(z.interactiveGraphButton,ee)&&(z.interactiveGraphButton=ee,t(23,z))}function r_(ee){i.$$.not_equal(z.liveButton,ee)&&(z.liveButton=ee,t(23,z))}function s_(ee){i.$$.not_equal(z.time,ee)&&(z.time=ee,t(23,z))}function a_(ee){i.$$.not_equal(z.episodes,ee)&&(z.episodes=ee,t(23,z))}function u_(){I=this.clientWidth,t(22,I)}function f_(ee){i.$$.not_equal(z.vkLogo,ee)&&(z.vkLogo=ee,t(23,z))}function c_(ee){i.$$.not_equal(z.volume,ee)&&(z.volume=ee,t(23,z))}function d_(ee){i.$$.not_equal(z.subtitles,ee)&&(z.subtitles=ee,t(23,z))}function m_(ee){bt=ee,t(24,bt)}function p_(ee){Et=ee,t(25,Et)}function __(ee){i.$$.not_equal(z.settings,ee)&&(z.settings=ee,t(23,z))}function h_(ee){i.$$.not_equal(z.context,ee)&&(z.context=ee,t(23,z))}function g_(ee){i.$$.not_equal(z.fullscreen,ee)&&(z.fullscreen=ee,t(23,z))}function b_(ee){i.$$.not_equal(z.chromecast,ee)&&(z.chromecast=ee,t(23,z))}function v_(ee){ge[ee?"unshift":"push"](()=>{eo=ee,t(46,eo)})}function y_(ee){ge[ee?"unshift":"push"](()=>{ti=ee,t(0,ti)})}function w_(ee){i.$$.not_equal(z.interactiveTimeIndicator,ee)&&(z.interactiveTimeIndicator=ee,t(23,z))}return i.$$set=ee=>{"bottomHidden"in ee&&t(1,Ei=ee.bottomHidden),"bottomNoSmooth"in ee&&t(2,vi=ee.bottomNoSmooth),"showControls"in ee&&t(3,Li=ee.showControls),"controlsElementRef"in ee&&t(0,ti=ee.controlsElementRef),"isAds"in ee&&t(4,Qt=ee.isAds),"canRewindLive"in ee&&t(5,ai=ee.canRewindLive),"logoClickable"in ee&&t(6,Hi=ee.logoClickable),"logoHidden"in ee&&t(129,mi=ee.logoHidden),"logoTargetUrl"in ee&&t(7,pi=ee.logoTargetUrl),"showNextPrevButtons"in ee&&t(130,ui=ee.showNextPrevButtons),"nextButtonActive"in ee&&t(8,yi=ee.nextButtonActive),"prevButtonActive"in ee&&t(9,tn=ee.prevButtonActive),"isOneVideoPlaylist"in ee&&t(131,yn=ee.isOneVideoPlaylist),"supportLink"in ee&&t(10,Ui=ee.supportLink),"customFullscreenSupported"in ee&&t(132,_i=ee.customFullscreenSupported),"playNextVideo"in ee&&t(11,ii=ee.playNextVideo),"playPrevVideo"in ee&&t(12,mn=ee.playPrevVideo),"repeatPlaylist"in ee&&t(133,Ot=ee.repeatPlaylist),"toggleFullscreen"in ee&&t(13,Ut=ee.toggleFullscreen),"returnFocus"in ee&&t(14,pn=ee.returnFocus),"seekToInteractive"in ee&&t(15,wi=ee.seekToInteractive),"toggleGraph"in ee&&t(16,fi=ee.toggleGraph),"playPrevChapter"in ee&&t(17,_n=ee.playPrevChapter)},i.$$.update=()=>{if(i.$$.dirty[5]&131072&&t(138,n=Ct.has("EPISODE_BUTTON")),i.$$.dirty[5]&131072&&t(77,o=Ct.has("GRAPH_BUTTON")),i.$$.dirty[5]&131072&&t(76,r=Ct.has("SEEK_TO_INTERACTIVE_BUTTON")),i.$$.dirty[5]&131072&&t(75,l=Ct.has("PLAY_BUTTON")),i.$$.dirty[5]&131072&&t(74,a=Ct.has("REPLAY_BUTTON")),i.$$.dirty[5]&131072&&t(73,s=Ct.has("PLAY_PREV_CHAPTER_BUTTON")),i.$$.dirty[0]&16|i.$$.dirty[5]&65600&&t(34,co=Qt?si==="playing":Ni===zu.PLAYING),i.$$.dirty[5]&32768&&t(18,mo=Ji.value!=="off"),i.$$.dirty[0]&16|i.$$.dirty[5]&16384&&t(35,Xo=Fi&&!Qt||an),i.$$.dirty[0]&16|i.$$.dirty[5]&16384&&t(36,Jo=!Fi||an||Qt),i.$$.dirty[4]&524288&&t(134,Eo=qn(Z,"m")),i.$$.dirty[0]&272|i.$$.dirty[4]&524352&&t(37,xo=ui&&qn(Z,"m")&&!Qt&&yi),i.$$.dirty[0]&528|i.$$.dirty[4]&524352&&t(38,Lo=ui&&qn(Z,"m")&&!Qt&&tn),i.$$.dirty[0]&536870912|i.$$.dirty[4]&524288|i.$$.dirty[5]&1536&&t(39,$o=Zi!==Im.NOT_AVAILABLE&&!(jt&&$t===1)&&qn(Z,"m")&&!an),i.$$.dirty[4]&524288|i.$$.dirty[5]&8192&&t(40,Ao=Ii.length>0&&qn(Z,"m")),i.$$.dirty[5]&6144&&t(41,po=Gt||Xi),i.$$.dirty[4]&524288&&t(42,Y=qn(Z,"s")),i.$$.dirty[4]&32&&t(43,Rt=!mi),i.$$.dirty[4]&524576|i.$$.dirty[5]&1536&&t(44,vn=ci.features.fullscreen&&(mi||qn(Z,"s"))&&!(jt&&$t===1)&&(an?_i:!0)),i.$$.dirty[0]&16|i.$$.dirty[1]&4&&t(19,un=(!Pi||Qt)&&!(ci.features.interactiveHideTime&&an)),i.$$.dirty[4]&262144&&t(45,lo=x.width>100),i.$$.dirty[0]&16|i.$$.dirty[1]&4|i.$$.dirty[4]&17408&&t(20,Hn=!Qt&&!Pi&&!!(Mi!=null&&Mi.length)&&Eo&&!n),i.$$.dirty[1]&2|i.$$.dirty[5]&256&&t(21,to=!Ti||bi),i.$$.dirty[5]&64&&t(47,el=Ni===zu.PLAYING?U("tooltip_pause"):U("tooltip_play")),i.$$.dirty[1]&1&&t(48,_o=gi?U("tooltip_interactive_graph_on"):U("tooltip_interactive_graph_off")),i.$$.dirty[5]&128&&t(49,Xl=Oi?U("aria_label_context_menu_close"):U("aria_label_context_menu_open")),i.$$.dirty[0]&2097152|i.$$.dirty[5]&64&&Mt(to,Ni),i.$$.dirty[0]&262144&&t(52,Al=mo?U("tooltip_subtitles_on"):U("tooltip_subtitles_off")),i.$$.dirty[0]&1073741824&&t(53,Ml=dn?U("tooltip_fullscreen_on"):U("tooltip_fullscreen_off")),i.$$.dirty[0]&536870912&&t(54,Vl=Zi===Im.CONNECTED?U("tooltip_chromecast_on"):U("tooltip_chromecast_off")),i.$$.dirty[0]&268435456|i.$$.dirty[4]&2146435072|i.$$.dirty[5]&63&&t(135,be={prevButton:ri?ri.right-ri.left:0,replayButton:qt?qt.right-qt.left:0,playButton:kt?kt.right-kt.left:0,nextButton:Je?Je.right-Je.left:0,playPrevChapterButton:dt?dt.right-dt.left:0,seekToInteractiveButton:Dt?Dt.right-Dt.left:0,interactiveGraphButton:vt?vt.right-vt.left:0,liveButton:me?me.right-me.left:0,time:ht?ht.right-ht.left:0,episodes:We?We.right-We.left:0,vkLogo:et?et.right-et.left:0,volume:Ze?Ze.right-Ze.left:0,subtitles:ke?ke.right-ke.left:0,settings:ae?ae.right-ae.left:0,context:Re?Re.right-Re.left:0,fullscreen:Be?Be.right-Be.left:0,chromecast:Q?Q.right-Q.left:0,additionalButtons:F.length?F.reduce(ee=>[...ee,40],[]):[]}),i.$$.dirty[4]&6144&&(!Fe||Fe<be.time)&&t(136,Fe=be.time),i.$$.dirty[0]&5767168|i.$$.dirty[4]&530432){let ee=0;Hn&&(qn(Z,"xl")?ee=be.time:ee=60);let ws=be.prevButton+be.playButton+be.nextButton+be.seekToInteractiveButton+be.interactiveGraphButton+be.liveButton+Fe+ee;t(137,st=un&&I>=ws)}i.$$.dirty[4]&532480&&t(55,yt=st&&qn(Z,"m")),i.$$.dirty[0]&8388616|i.$$.dirty[4]&393216&&St(zn(),Mn,z,Li),i.$$.dirty[0]&167772160&&ml(Et,L,Kt),i.$$.dirty[0]&150994944|i.$$.dirty[4]&65536&&Ko(bt,L,se),i.$$.dirty[0]&67108864|i.$$.dirty[4]&32768&&os(ji,$,Ri)},t(51,Ll=ci.logoType==="vk_video"?U("tooltip_vk_video_logo"):U("tooltip_vk_logo")),cn(t(72,{prevButton:u,replayButton:c,playButton:m,nextButton:h,playPrevChapterButton:w,seekToInteractiveButton:g,interactiveGraphButton:C,liveButton:v,time:E,episodes:y,vkLogo:b,volume:P,subtitles:A,settings:M,context:N,fullscreen:te,chromecast:_e}=Mn,u,fn(t(71,c)),hi(t(70,m)),Ht(t(69,h)),ve(t(68,w)),li(t(67,g)),zt(t(66,C)),Tt(t(65,v)),ct(t(64,E)),Se(t(63,y)),Te(t(62,b)),Xe(t(61,P)),_t(t(60,A)),ft(t(59,M)),xe(t(58,N)),Ie(t(57,te)),oe(t(56,_e)))),[ti,Ei,vi,Li,Qt,ai,Hi,pi,yi,tn,Ui,ii,mn,Ut,pn,wi,fi,_n,mo,un,Hn,to,I,z,bt,Et,Ri,L,F,Zi,dn,gi,Ti,Pi,co,Xo,Jo,xo,Lo,$o,Ao,po,Y,Rt,vn,lo,eo,el,_o,Xl,El,Ll,Al,Ml,Vl,yt,_e,te,N,M,A,P,b,y,E,v,C,g,w,h,m,c,u,s,a,l,r,o,xi,zi,At,$i,en,ei,ci,nn,wn,kn,hn,Wi,ni,ln,ki,Cn,Sn,An,gn,Tn,Pn,rn,Kt,Mi,Dn,Yt,Nn,On,Vn,Fn,bn,ji,re,It,sn,Vi,ie,ut,oi,an,Qn,ne,To,Pl,Il,Zo,Po,Io,oo,ro,ho,mi,ui,yn,_i,Ot,Eo,be,Fe,st,n,$,se,K,x,Z,Q,Be,Re,ae,ke,Ze,et,We,ht,me,vt,Dt,dt,Je,kt,qt,ri,Ni,Oi,bi,$t,jt,Xi,Gt,Ii,Fi,Ji,si,Ct,Yn,Rl,ys,e_,t_,i_,n_,o_,l_,r_,s_,a_,u_,f_,c_,d_,m_,p_,__,h_,g_,b_,v_,y_,w_]}var Hu=class extends j{constructor(e){super(),G(this,e,J3,X3,W,{bottomHidden:1,bottomNoSmooth:2,showControls:3,controlsElementRef:0,isAds:4,canRewindLive:5,logoClickable:6,logoHidden:129,logoTargetUrl:7,showNextPrevButtons:130,nextButtonActive:8,prevButtonActive:9,isOneVideoPlaylist:131,supportLink:10,customFullscreenSupported:132,playNextVideo:11,playPrevVideo:12,repeatPlaylist:133,toggleFullscreen:13,returnFocus:14,seekToInteractive:15,toggleGraph:16,playPrevChapter:17},P3,[-1,-1,-1,-1,-1,-1,-1,-1])}},Km=Hu;import{ChromecastState as Zm,PlaybackState as Xm}from"@vkontakte/videoplayer-core";function x3(i){let e,t,n,o,r,l=i[2].default,a=Le(l,i,i[1],null),s=[{xmlns:"http://www.w3.org/2000/svg"},{width:"24"},{height:"24"},{"aria-hidden":"true"},{"data-testid":"muted-icon"},{role:"img"},i[0]],u={};for(let c=0;c<s.length;c+=1)u=ue(u,s[c]);return{c(){e=D("svg"),a&&a.c(),t=D("g"),n=D("path"),o=D("path"),f(n,"d","M0 0h24v24H0z"),f(o,"fill","#fff"),f(o,"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"),f(t,"fill","none"),f(t,"fill-rule","evenodd"),we(e,u)},m(c,m){S(c,e,m),a&&a.m(e,null),p(e,t),p(t,n),p(t,o),r=!0},p(c,[m]){a&&a.p&&(!r||m&2)&&Me(a,l,c,c[1],r?Ae(l,c[1],m,null):Ve(c[1]),null),we(e,u=Ne(s,[{xmlns:"http://www.w3.org/2000/svg"},{width:"24"},{height:"24"},{"aria-hidden":"true"},{"data-testid":"muted-icon"},{role:"img"},m&1&&c[0]]))},i(c){r||(d(a,c),r=!0)},o(c){_(a,c),r=!1},d(c){c&&k(e),a&&a.d(c)}}}function $3(i,e,t){let{$$slots:n={},$$scope:o}=e;return i.$$set=r=>{t(0,e=ue(ue({},e),ye(r))),"$$scope"in r&&t(1,o=r.$$scope)},e=ye(e),[e,o,n]}var Ku=class extends j{constructor(e){super(),G(this,e,$3,x3,W,{})}},Wm=Ku;import{noop as e5}from"@vkontakte/videoplayer-shared";function t5(i){Pe(i,"svelte-6gmlbk",".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 jm(i){let e;return{c(){e=T("span"),e.textContent=`${U("mobile_unmute")}`,f(e,"class","text svelte-6gmlbk")},m(t,n){S(t,e,n)},d(t){t&&k(e)}}}function i5(i){let e,t,n,o;var r=i[4];function l(s,u){return{}}r&&(t=En(r,l(i)));let a=i[1]&&jm(i);return{c(){e=T("div"),t&&q(t.$$.fragment),n=B(),a&&a.c(),f(e,"class","container svelte-6gmlbk"),f(e,"aria-hidden","true"),O(e,"expanded",i[1])},m(s,u){S(s,e,u),t&&V(t,e,null),p(e,n),a&&a.m(e,null),o=!0},p(s,u){if(u&16&&r!==(r=s[4])){if(t){ce();let c=t;_(c.$$.fragment,1,0,()=>{R(c,1)}),de()}r?(t=En(r,l(s,u)),q(t.$$.fragment),d(t.$$.fragment,1),V(t,e,n)):t=null}s[1]?a||(a=jm(s),a.c(),a.m(e,null)):a&&(a.d(1),a=null),(!o||u&2)&&O(e,"expanded",s[1])},i(s){o||(t&&d(t.$$.fragment,s),o=!0)},o(s){t&&_(t.$$.fragment,s),o=!1},d(s){s&&k(e),t&&R(t),a&&a.d()}}}function n5(i){let e,t,n;function o(l){i[6](l)}let r={testId:i[1]?"btn-mobile-unmuted":"btn-mobile-muted",click:i[2],ariaLabel:i[3],$$slots:{default:[i5]},$$scope:{ctx:i}};return i[0]!==void 0&&(r.ref=i[0]),e=new wt({props:r}),ge.push(()=>He(e,"ref",o)),{c(){q(e.$$.fragment)},m(l,a){V(e,l,a),n=!0},p(l,[a]){let s={};a&2&&(s.testId=l[1]?"btn-mobile-unmuted":"btn-mobile-muted"),a&4&&(s.click=l[2]),a&8&&(s.ariaLabel=l[3]),a&146&&(s.$$scope={dirty:a,ctx:l}),!t&&a&1&&(t=!0,s.ref=l[0],ze(()=>t=!1)),e.$set(s)},i(l){n||(d(e.$$.fragment,l),n=!0)},o(l){_(e.$$.fragment,l),n=!1},d(l){R(e,l)}}}function o5(i,e,t){let{muted:n=!1}=e,{expanded:o=!1}=e,{click:r=e5}=e,{ref:l=void 0}=e,a,s;function u(c){l=c,t(0,l)}return i.$$set=c=>{"muted"in c&&t(5,n=c.muted),"expanded"in c&&t(1,o=c.expanded),"click"in c&&t(2,r=c.click),"ref"in c&&t(0,l=c.ref)},i.$$.update=()=>{i.$$.dirty&32&&t(3,a=n?U("tooltip_volume"):U("tooltip_volume_muted")),i.$$.dirty&2&&t(4,s=o?Qo:Wm)},[l,o,r,a,s,n,u]}var Wu=class extends j{constructor(e){super(),G(this,e,o5,n5,W,{muted:5,expanded:1,click:2,ref:0},t5)}},ju=Wu;function l5(i){let e,t,n,o,r,l=i[2].default,a=Le(l,i,i[1],null),s=[{xmlns:"http://www.w3.org/2000/svg"},{width:"24"},{height:"24"},{fill:"none"},{role:"img"},i[0]],u={};for(let c=0;c<s.length;c+=1)u=ue(u,s[c]);return{c(){e=D("svg"),a&&a.c(),t=D("path"),n=D("path"),o=D("path"),f(t,"fill","currentColor"),f(t,"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"),f(t,"clip-rule","evenodd"),f(n,"fill","currentColor"),f(n,"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"),f(n,"class","hidden-not-active"),f(o,"fill","currentColor"),f(o,"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"),f(o,"class","hidden-active"),we(e,u)},m(c,m){S(c,e,m),a&&a.m(e,null),p(e,t),p(e,n),p(e,o),r=!0},p(c,[m]){a&&a.p&&(!r||m&2)&&Me(a,l,c,c[1],r?Ae(l,c[1],m,null):Ve(c[1]),null),we(e,u=Ne(s,[{xmlns:"http://www.w3.org/2000/svg"},{width:"24"},{height:"24"},{fill:"none"},{role:"img"},m&1&&c[0]]))},i(c){r||(d(a,c),r=!0)},o(c){_(a,c),r=!1},d(c){c&&k(e),a&&a.d(c)}}}function r5(i,e,t){let{$$slots:n={},$$scope:o}=e;return i.$$set=r=>{t(0,e=ue(ue({},e),ye(r))),"$$scope"in r&&t(1,o=r.$$scope)},e=ye(e),[e,o,n]}var Gu=class extends j{constructor(e){super(),G(this,e,r5,l5,W,{})}},Gm=Gu;function s5(i){Pe(i,"svelte-tmam00",'svg[data-testid="pip-icon--active"] .hidden-active,svg[data-testid="pip-icon"] .hidden-not-active{visibility:hidden;opacity:0}')}function a5(i){let e,t;return e=new Gm({props:{style:i[1],"data-testid":i[0]?"pip-icon--active":"pip-icon"}}),{c(){q(e.$$.fragment)},m(n,o){V(e,n,o),t=!0},p(n,[o]){let r={};o&2&&(r.style=n[1]),o&1&&(r["data-testid"]=n[0]?"pip-icon--active":"pip-icon"),e.$set(r)},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){_(e.$$.fragment,n),t=!1},d(n){R(e,n)}}}function u5(i,e,t){let n,{isActive:o=!1}=e;return i.$$set=r=>{"isActive"in r&&t(0,o=r.isActive)},i.$$.update=()=>{i.$$.dirty&1&&t(1,n=o?"color: #2688EB;":"color: #fff;")},[o,n]}var Qu=class extends j{constructor(e){super(),G(this,e,u5,a5,W,{isActive:0},s5)}},Qm=Qu;import{noop as f5}from"@vkontakte/videoplayer-shared";function c5(i){let e,t;return e=new Qm({props:{isActive:i[1]}}),{c(){q(e.$$.fragment)},m(n,o){V(e,n,o),t=!0},p(n,o){let r={};o&2&&(r.isActive=n[1]),e.$set(r)},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){_(e.$$.fragment,n),t=!1},d(n){R(e,n)}}}function d5(i){let e,t,n;function o(l){i[3](l)}let r={testId:"btn-pip",ariaLabel:U("menu_pip"),click:i[2],$$slots:{default:[c5]},$$scope:{ctx:i}};return i[0]!==void 0&&(r.ref=i[0]),e=new wt({props:r}),ge.push(()=>He(e,"ref",o)),{c(){q(e.$$.fragment)},m(l,a){V(e,l,a),n=!0},p(l,[a]){let s={};a&4&&(s.click=l[2]),a&18&&(s.$$scope={dirty:a,ctx:l}),!t&&a&1&&(t=!0,s.ref=l[0],ze(()=>t=!1)),e.$set(s)},i(l){n||(d(e.$$.fragment,l),n=!0)},o(l){_(e.$$.fragment,l),n=!1},d(l){R(e,l)}}}function m5(i,e,t){let{ref:n=void 0}=e,{isPictureInPictureActive:o=!1}=e,{click:r=f5}=e;function l(a){n=a,t(0,n)}return i.$$set=a=>{"ref"in a&&t(0,n=a.ref),"isPictureInPictureActive"in a&&t(1,o=a.isPictureInPictureActive),"click"in a&&t(2,r=a.click)},[n,o,r,l]}var Yu=class extends j{constructor(e){super(),G(this,e,m5,d5,W,{ref:0,isPictureInPictureActive:1,click:2})}},Ym=Yu;import{throttleFn as p5}from"@vkontakte/videoplayer-shared";function _5(i){Pe(i,"svelte-rwqnhz",".wrapper-bottom.svelte-rwqnhz.svelte-rwqnhz{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-rwqnhz>.svelte-rwqnhz{pointer-events:auto}.wrapper-bottom.ads-timeline-mobile.svelte-rwqnhz.svelte-rwqnhz{height:9px;padding:0 4px 4px}.wrapper-middle.svelte-rwqnhz.svelte-rwqnhz{position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);transition:opacity var(--controls-transition-duration);display:flex;align-items:center}.wrapper-top-right.svelte-rwqnhz.svelte-rwqnhz{position:absolute;top:4px;right:8px;transition:opacity var(--controls-transition-duration);display:flex}.wrapper-top-left.svelte-rwqnhz.svelte-rwqnhz{position:absolute;top:4px;left:8px}.wrapper-middle-left.svelte-rwqnhz.svelte-rwqnhz,.wrapper-middle-left-second.svelte-rwqnhz.svelte-rwqnhz,.wrapper-middle-right.svelte-rwqnhz.svelte-rwqnhz{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-rwqnhz.svelte-rwqnhz{left:12px}.wrapper-middle-left-second.svelte-rwqnhz.svelte-rwqnhz{left:64px}.wrapper-middle-right.svelte-rwqnhz.svelte-rwqnhz{right:12px}.controls.svelte-rwqnhz.svelte-rwqnhz{width:100%;display:flex;align-items:center;height:var(--controls-height);white-space:nowrap;font-size:13px;transition:transform var(--controls-transition-duration) var(--controls-transition-fn);will-change:transform;padding:0 4px;box-sizing:border-box}.controls.svelte-rwqnhz > *:not(:first-child){margin-left:8px}.hidden.svelte-rwqnhz.svelte-rwqnhz{visibility:hidden;opacity:0}.controls-hidden.svelte-rwqnhz.svelte-rwqnhz{visibility:visible;transform:translateY(100%)}.wrapper-bottom.no-smooth.svelte-rwqnhz.svelte-rwqnhz{transition:none}.settings-mobile.svelte-rwqnhz.svelte-rwqnhz{position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);transition:opacity var(--controls-transition-duration);display:flex;align-items:center;max-width:320px;width:90%}.overlay-mobile.svelte-rwqnhz.svelte-rwqnhz{position:absolute;top:0;left:0;width:100%;height:100%;background-color:rgba(0, 0, 0, .3);pointer-events:none;transition:opacity var(--controls-transition-duration)}@media screen and (orientation: portrait){.wrapper-top-right.fullscreen.svelte-rwqnhz.svelte-rwqnhz{top:16px}.wrapper-top-left.fullscreen.svelte-rwqnhz.svelte-rwqnhz{top:16px}.controls-wrapper.fullscreen.svelte-rwqnhz.svelte-rwqnhz{position:absolute;bottom:30px;width:calc(100% - 8px)}}@media screen and (orientation: landscape){.wrapper-top-left.fullscreen.svelte-rwqnhz.svelte-rwqnhz{top:12px;left:44px}.wrapper-top-right.fullscreen.svelte-rwqnhz.svelte-rwqnhz{top:12px;right:44px}.wrapper-middle-left.fullscreen.svelte-rwqnhz.svelte-rwqnhz{left:44px}.wrapper-middle-left-second.fullscreen.svelte-rwqnhz.svelte-rwqnhz{left:96px}.wrapper-middle-right.fullscreen.svelte-rwqnhz.svelte-rwqnhz{right:44px}.controls-wrapper.fullscreen.svelte-rwqnhz.svelte-rwqnhz{position:absolute;left:36px;right:36px;bottom:32px;width:calc(100% - 72px)}}")}function Jm(i,e,t){let n=i.slice();return n[170]=e[t].iconUrl,n[171]=e[t].ariaLabel,n[172]=e[t].testId,n[173]=e[t].onClick,n[174]=e[t].tooltip,n}function xm(i){let e,t,n,o,r,l,a,s,u,c,m,h,w,g,C,v,E,y=(!i[51]||i[53])&&$m(i),b=Vt(i[56]),P=[];for(let x=0;x<b.length;x+=1)P[x]=e0(Jm(i,b,x));let A=x=>_(P[x],1,1,()=>{P[x]=null}),M=i[36]&&t0(i),N=i[37]&&i0(i),te=i[57]&&n0(i),_e=i[39]&&o0(i),X=i[8]&&l0(i),$=i[34]&&r0(i),se=i[33]&&s0(i),L=i[8]&&a0(i),K=i[96]&&!i[29]&&u0(i);return{c(){e=T("div"),t=B(),n=T("div"),y&&y.c(),o=B(),r=T("div");for(let x=0;x<P.length;x+=1)P[x].c();l=B(),M&&M.c(),a=B(),N&&N.c(),s=B(),te&&te.c(),u=B(),_e&&_e.c(),c=B(),m=T("div"),X&&X.c(),h=B(),$&&$.c(),w=B(),se&&se.c(),g=B(),L&&L.c(),C=B(),K&&K.c(),v=mt(),f(e,"class","overlay-mobile svelte-rwqnhz"),O(e,"hidden",!i[42]),f(n,"class","wrapper-top-left svelte-rwqnhz"),O(n,"hidden",!i[3]),O(n,"fullscreen",i[52]),f(r,"class","wrapper-top-right svelte-rwqnhz"),O(r,"hidden",!i[3]&&!i[27]),O(r,"fullscreen",i[52]),f(m,"class","wrapper-middle svelte-rwqnhz"),O(m,"hidden",!i[3]||i[29])},m(x,Z){S(x,e,Z),S(x,t,Z),S(x,n,Z),y&&y.m(n,null),S(x,o,Z),S(x,r,Z);for(let F=0;F<P.length;F+=1)P[F]&&P[F].m(r,null);p(r,l),M&&M.m(r,null),p(r,a),N&&N.m(r,null),p(r,s),te&&te.m(r,null),p(r,u),_e&&_e.m(r,null),S(x,c,Z),S(x,m,Z),X&&X.m(m,null),p(m,h),$&&$.m(m,null),p(m,w),se&&se.m(m,null),p(m,g),L&&L.m(m,null),S(x,C,Z),K&&K.m(x,Z),S(x,v,Z),E=!0},p(x,Z){if((!E||Z[1]&2048)&&O(e,"hidden",!x[42]),!x[51]||x[53]?y?(y.p(x,Z),Z[1]&5242880&&d(y,1)):(y=$m(x),y.c(),d(y,1),y.m(n,null)):y&&(ce(),_(y,1,1,()=>{y=null}),de()),(!E||Z[0]&8)&&O(n,"hidden",!x[3]),(!E||Z[1]&2097152)&&O(n,"fullscreen",x[52]),Z[1]&33554432){b=Vt(x[56]);let F;for(F=0;F<b.length;F+=1){let Q=Jm(x,b,F);P[F]?(P[F].p(Q,Z),d(P[F],1)):(P[F]=e0(Q),P[F].c(),d(P[F],1),P[F].m(r,l))}for(ce(),F=b.length;F<P.length;F+=1)A(F);de()}x[36]?M?(M.p(x,Z),Z[1]&32&&d(M,1)):(M=t0(x),M.c(),d(M,1),M.m(r,a)):M&&(ce(),_(M,1,1,()=>{M=null}),de()),x[37]?N?(N.p(x,Z),Z[1]&64&&d(N,1)):(N=i0(x),N.c(),d(N,1),N.m(r,s)):N&&(ce(),_(N,1,1,()=>{N=null}),de()),x[57]?te?(te.p(x,Z),Z[1]&67108864&&d(te,1)):(te=n0(x),te.c(),d(te,1),te.m(r,u)):te&&(ce(),_(te,1,1,()=>{te=null}),de()),x[39]?_e?(_e.p(x,Z),Z[1]&256&&d(_e,1)):(_e=o0(x),_e.c(),d(_e,1),_e.m(r,null)):_e&&(ce(),_(_e,1,1,()=>{_e=null}),de()),(!E||Z[0]&134217736)&&O(r,"hidden",!x[3]&&!x[27]),(!E||Z[1]&2097152)&&O(r,"fullscreen",x[52]),x[8]?X?(X.p(x,Z),Z[0]&256&&d(X,1)):(X=l0(x),X.c(),d(X,1),X.m(m,h)):X&&(ce(),_(X,1,1,()=>{X=null}),de()),x[34]?$?($.p(x,Z),Z[1]&8&&d($,1)):($=r0(x),$.c(),d($,1),$.m(m,w)):$&&(ce(),_($,1,1,()=>{$=null}),de()),x[33]?se?(se.p(x,Z),Z[1]&4&&d(se,1)):(se=s0(x),se.c(),d(se,1),se.m(m,g)):se&&(ce(),_(se,1,1,()=>{se=null}),de()),x[8]?L?(L.p(x,Z),Z[0]&256&&d(L,1)):(L=a0(x),L.c(),d(L,1),L.m(m,null)):L&&(ce(),_(L,1,1,()=>{L=null}),de()),(!E||Z[0]&536870920)&&O(m,"hidden",!x[3]||x[29]),x[96]&&!x[29]?K?(K.p(x,Z),Z[0]&536870912&&d(K,1)):(K=u0(x),K.c(),d(K,1),K.m(v.parentNode,v)):K&&(ce(),_(K,1,1,()=>{K=null}),de())},i(x){if(!E){d(y);for(let Z=0;Z<b.length;Z+=1)d(P[Z]);d(M),d(N),d(te),d(_e),d(X),d($),d(se),d(L),d(K),E=!0}},o(x){_(y),P=P.filter(Boolean);for(let Z=0;Z<P.length;Z+=1)_(P[Z]);_(M),_(N),_(te),_(_e),_(X),_($),_(se),_(L),_(K),E=!1},d(x){x&&(k(e),k(t),k(n),k(o),k(r),k(c),k(m),k(C),k(v)),y&&y.d(),qi(P,x),M&&M.d(),N&&N.d(),te&&te.d(),_e&&_e.d(),X&&X.d(),$&&$.d(),se&&se.d(),L&&L.d(),K&&K.d(x)}}}function $m(i){let e,t,n;function o(l){i[130](l)}let r={muted:i[54],expanded:i[51]&&!i[70]&&i[55],click:i[106]};return i[20].volume!==void 0&&(r.ref=i[20].volume),e=new ju({props:r}),ge.push(()=>He(e,"ref",o)),{c(){q(e.$$.fragment)},m(l,a){V(e,l,a),n=!0},p(l,a){let s={};a[1]&8388608&&(s.muted=l[54]),a[1]&17825792&&(s.expanded=l[51]&&!l[70]&&l[55]),!t&&a[0]&1048576&&(t=!0,s.ref=l[20].volume,ze(()=>t=!1)),e.$set(s)},i(l){n||(d(e.$$.fragment,l),n=!0)},o(l){_(e.$$.fragment,l),n=!1},d(l){R(e,l)}}}function e0(i){var n;let e,t;return e=new Xr({props:{iconUrl:i[170],ariaLabel:(n=i[171])!=null?n:i[174],testId:i[172],onClick:i[173]}}),{c(){q(e.$$.fragment)},m(o,r){V(e,o,r),t=!0},p(o,r){var a;let l={};r[1]&33554432&&(l.iconUrl=o[170]),r[1]&33554432&&(l.ariaLabel=(a=o[171])!=null?a:o[174]),r[1]&33554432&&(l.testId=o[172]),r[1]&33554432&&(l.onClick=o[173]),e.$set(l)},i(o){t||(d(e.$$.fragment,o),t=!0)},o(o){_(e.$$.fragment,o),t=!1},d(o){R(e,o)}}}function t0(i){let e,t,n;function o(l){i[131](l)}let r={isMobile:!0,click:i[104],state:i[28]};return i[20].chromecast!==void 0&&(r.ref=i[20].chromecast),e=new zr({props:r}),ge.push(()=>He(e,"ref",o)),{c(){q(e.$$.fragment)},m(l,a){V(e,l,a),n=!0},p(l,a){let s={};a[0]&268435456&&(s.state=l[28]),!t&&a[0]&1048576&&(t=!0,s.ref=l[20].chromecast,ze(()=>t=!1)),e.$set(s)},i(l){n||(d(e.$$.fragment,l),n=!0)},o(l){_(e.$$.fragment,l),n=!1},d(l){R(e,l)}}}function i0(i){let e,t,n;function o(l){i[132](l)}let r={click:i[105],isPictureInPictureActive:i[26]};return i[20].pip!==void 0&&(r.ref=i[20].pip),e=new Ym({props:r}),ge.push(()=>He(e,"ref",o)),{c(){q(e.$$.fragment)},m(l,a){V(e,l,a),n=!0},p(l,a){let s={};a[0]&67108864&&(s.isPictureInPictureActive=l[26]),!t&&a[0]&1048576&&(t=!0,s.ref=l[20].pip,ze(()=>t=!1)),e.$set(s)},i(l){n||(d(e.$$.fragment,l),n=!0)},o(l){_(e.$$.fragment,l),n=!1},d(l){R(e,l)}}}function n0(i){let e,t,n;function o(l){i[133](l)}let r={};return i[22]!==void 0&&(r.ref=i[22]),e=new Fl({props:r}),ge.push(()=>He(e,"ref",o)),{c(){q(e.$$.fragment)},m(l,a){V(e,l,a),n=!0},p(l,a){let s={};!t&&a[0]&4194304&&(t=!0,s.ref=l[22],ze(()=>t=!1)),e.$set(s)},i(l){n||(d(e.$$.fragment,l),n=!0)},o(l){_(e.$$.fragment,l),n=!1},d(l){R(e,l)}}}function o0(i){let e,t,n;function o(l){i[134](l)}let r={click:i[64],targetUrl:i[7],logoClickable:i[6]};return i[20].vkLogo!==void 0&&(r.ref=i[20].vkLogo),e=new Fr({props:r}),ge.push(()=>He(e,"ref",o)),{c(){q(e.$$.fragment)},m(l,a){V(e,l,a),n=!0},p(l,a){let s={};a[0]&128&&(s.targetUrl=l[7]),a[0]&64&&(s.logoClickable=l[6]),!t&&a[0]&1048576&&(t=!0,s.ref=l[20].vkLogo,ze(()=>t=!1)),e.$set(s)},i(l){n||(d(e.$$.fragment,l),n=!0)},o(l){_(e.$$.fragment,l),n=!1},d(l){R(e,l)}}}function l0(i){let e,t,n;function o(l){i[135](l)}let r={click:i[13],type:"prev",disabled:!i[10],isMobile:!0};return i[20].prevButton!==void 0&&(r.ref=i[20].prevButton),e=new wl({props:r}),ge.push(()=>He(e,"ref",o)),{c(){q(e.$$.fragment)},m(l,a){V(e,l,a),n=!0},p(l,a){let s={};a[0]&8192&&(s.click=l[13]),a[0]&1024&&(s.disabled=!l[10]),!t&&a[0]&1048576&&(t=!0,s.ref=l[20].prevButton,ze(()=>t=!1)),e.$set(s)},i(l){n||(d(e.$$.fragment,l),n=!0)},o(l){_(e.$$.fragment,l),n=!1},d(l){R(e,l)}}}function r0(i){let e,t,n;function o(l){i[136](l)}let r={disabled:i[49],click:i[63],isMobile:!0,isPlaying:i[31]};return i[20].playButton!==void 0&&(r.ref=i[20].playButton),e=new Hl({props:r}),ge.push(()=>He(e,"ref",o)),{c(){q(e.$$.fragment)},m(l,a){V(e,l,a),n=!0},p(l,a){let s={};a[1]&262144&&(s.disabled=l[49]),a[1]&1&&(s.isPlaying=l[31]),!t&&a[0]&1048576&&(t=!0,s.ref=l[20].playButton,ze(()=>t=!1)),e.$set(s)},i(l){n||(d(e.$$.fragment,l),n=!0)},o(l){_(e.$$.fragment,l),n=!1},d(l){R(e,l)}}}function s0(i){let e,t,n;function o(l){i[137](l)}let r={disabled:i[48],click:i[107],isMobile:!0};return i[20].replayButton!==void 0&&(r.ref=i[20].replayButton),e=new Ul({props:r}),ge.push(()=>He(e,"ref",o)),{c(){q(e.$$.fragment)},m(l,a){V(e,l,a),n=!0},p(l,a){let s={};a[1]&131072&&(s.disabled=l[48]),!t&&a[0]&1048576&&(t=!0,s.ref=l[20].replayButton,ze(()=>t=!1)),e.$set(s)},i(l){n||(d(e.$$.fragment,l),n=!0)},o(l){_(e.$$.fragment,l),n=!1},d(l){R(e,l)}}}function a0(i){let e,t,n;function o(l){i[138](l)}let r={click:i[12],type:"next",disabled:!i[9],isMobile:!0};return i[20].nextButton!==void 0&&(r.ref=i[20].nextButton),e=new wl({props:r}),ge.push(()=>He(e,"ref",o)),{c(){q(e.$$.fragment)},m(l,a){V(e,l,a),n=!0},p(l,a){let s={};a[0]&4096&&(s.click=l[12]),a[0]&512&&(s.disabled=!l[9]),!t&&a[0]&1048576&&(t=!0,s.ref=l[20].nextButton,ze(()=>t=!1)),e.$set(s)},i(l){n||(d(e.$$.fragment,l),n=!0)},o(l){_(e.$$.fragment,l),n=!1},d(l){R(e,l)}}}function u0(i){let e,t,n,o,r=i[100]&&h5(i),l=i[98]&&g5(i),a=i[99]&&b5(i);return{c(){r&&r.c(),e=B(),l&&l.c(),t=B(),a&&a.c(),n=mt()},m(s,u){r&&r.m(s,u),S(s,e,u),l&&l.m(s,u),S(s,t,u),a&&a.m(s,u),S(s,n,u),o=!0},p(s,u){s[100]&&r.p(s,u),s[98]&&l.p(s,u),s[99]&&a.p(s,u)},i(s){o||(d(r),d(l),d(a),o=!0)},o(s){_(r),_(l),_(a),o=!1},d(s){s&&(k(e),k(t),k(n)),r&&r.d(s),l&&l.d(s),a&&a.d(s)}}}function h5(i){let e,t,n,o,r,l;function a(u){i[139](u)}let s={hidden:!i[3],disabled:i[47],click:i[18]};return i[20].playPrevChapterButton!==void 0&&(s.ref=i[20].playPrevChapterButton),t=new Zr({props:s}),ge.push(()=>He(t,"ref",a)),{c(){e=T("div"),q(t.$$.fragment),f(e,"class","wrapper-middle-left svelte-rwqnhz"),O(e,"fullscreen",i[52]),O(e,"hidden",!i[3])},m(u,c){S(u,e,c),V(t,e,null),o=!0,r||(l=pe(e,"click",i[108]),r=!0)},p(u,c){let m={};c[0]&8&&(m.hidden=!u[3]),c[1]&65536&&(m.disabled=u[47]),c[0]&262144&&(m.click=u[18]),!n&&c[0]&1048576&&(n=!0,m.ref=u[20].playPrevChapterButton,ze(()=>n=!1)),t.$set(m),(!o||c[1]&2097152)&&O(e,"fullscreen",u[52]),(!o||c[0]&8)&&O(e,"hidden",!u[3])},i(u){o||(d(t.$$.fragment,u),o=!0)},o(u){_(t.$$.fragment,u),o=!1},d(u){u&&k(e),R(t),r=!1,l()}}}function g5(i){let e,t,n,o,r;function l(s){i[140](s)}let a={hidden:!i[3]&&!i[58],disabled:i[50],click:i[17],graphIsOpened:i[58]};return i[20].interactiveGraphButton!==void 0&&(a.ref=i[20].interactiveGraphButton),t=new Qr({props:a}),ge.push(()=>He(t,"ref",l)),{c(){e=T("div"),q(t.$$.fragment),f(e,"class",o=Kf(i[100]?"wrapper-middle-left-second":"wrapper-middle-left")+" svelte-rwqnhz"),O(e,"fullscreen",i[52]),O(e,"hidden",!i[3]&&!i[58])},m(s,u){S(s,e,u),V(t,e,null),r=!0},p(s,u){let c={};u[0]&8|u[1]&134217728&&(c.hidden=!s[3]&&!s[58]),u[1]&524288&&(c.disabled=s[50]),u[0]&131072&&(c.click=s[17]),u[1]&134217728&&(c.graphIsOpened=s[58]),!n&&u[0]&1048576&&(n=!0,c.ref=s[20].interactiveGraphButton,ze(()=>n=!1)),t.$set(c),(!r||u[1]&2097152)&&O(e,"fullscreen",s[52]),(!r||u[0]&8|u[1]&134217728)&&O(e,"hidden",!s[3]&&!s[58])},i(s){r||(d(t.$$.fragment,s),r=!0)},o(s){_(t.$$.fragment,s),r=!1},d(s){s&&k(e),R(t)}}}function b5(i){let e,t,n,o,r,l;function a(u){i[141](u)}let s={hidden:!i[3],disabled:i[46],click:i[16]};return i[20].seekToInteractiveButton!==void 0&&(s.ref=i[20].seekToInteractiveButton),t=new Gr({props:s}),ge.push(()=>He(t,"ref",a)),{c(){e=T("div"),q(t.$$.fragment),f(e,"class","wrapper-middle-right svelte-rwqnhz"),O(e,"fullscreen",i[52]),O(e,"hidden",!i[3])},m(u,c){S(u,e,c),V(t,e,null),o=!0,r||(l=pe(e,"click",i[109]),r=!0)},p(u,c){let m={};c[0]&8&&(m.hidden=!u[3]),c[1]&32768&&(m.disabled=u[46]),c[0]&65536&&(m.click=u[16]),!n&&c[0]&1048576&&(n=!0,m.ref=u[20].seekToInteractiveButton,ze(()=>n=!1)),t.$set(m),(!o||c[1]&2097152)&&O(e,"fullscreen",u[52]),(!o||c[0]&8)&&O(e,"hidden",!u[3])},i(u){o||(d(t.$$.fragment,u),o=!0)},o(u){_(t.$$.fragment,u),o=!1},d(u){u&&k(e),R(t),r=!1,l()}}}function f0(i){let e,t,n,o,r,l=i[53]&&c0(i),a=i[32]&&d0(i);return o=new Kr({props:{position:i[59],duration:i[60]}}),{c(){l&&l.c(),e=B(),a&&a.c(),t=B(),n=T("div"),q(o.$$.fragment),f(n,"class","wrapper-bottom ads-timeline-mobile svelte-rwqnhz"),O(n,"fullscreen",i[52])},m(s,u){l&&l.m(s,u),S(s,e,u),a&&a.m(s,u),S(s,t,u),S(s,n,u),V(o,n,null),r=!0},p(s,u){s[53]?l?(l.p(s,u),u[1]&4194304&&d(l,1)):(l=c0(s),l.c(),d(l,1),l.m(e.parentNode,e)):l&&(ce(),_(l,1,1,()=>{l=null}),de()),s[32]?a?(a.p(s,u),u[1]&2&&d(a,1)):(a=d0(s),a.c(),d(a,1),a.m(t.parentNode,t)):a&&(ce(),_(a,1,1,()=>{a=null}),de());let c={};u[1]&268435456&&(c.position=s[59]),u[1]&536870912&&(c.duration=s[60]),o.$set(c),(!r||u[1]&2097152)&&O(n,"fullscreen",s[52])},i(s){r||(d(l),d(a),d(o.$$.fragment,s),r=!0)},o(s){_(l),_(a),_(o.$$.fragment,s),r=!1},d(s){s&&(k(e),k(t),k(n)),l&&l.d(s),a&&a.d(s),R(o)}}}function c0(i){let e,t,n,o;function r(a){i[142](a)}let l={muted:i[54],expanded:!1,click:i[106]};return i[20].volume!==void 0&&(l.ref=i[20].volume),t=new ju({props:l}),ge.push(()=>He(t,"ref",r)),{c(){e=T("div"),q(t.$$.fragment),f(e,"class","wrapper-top-right svelte-rwqnhz"),O(e,"fullscreen",i[52])},m(a,s){S(a,e,s),V(t,e,null),o=!0},p(a,s){let u={};s[1]&8388608&&(u.muted=a[54]),!n&&s[0]&1048576&&(n=!0,u.ref=a[20].volume,ze(()=>n=!1)),t.$set(u),(!o||s[1]&2097152)&&O(e,"fullscreen",a[52])},i(a){o||(d(t.$$.fragment,a),o=!0)},o(a){_(t.$$.fragment,a),o=!1},d(a){a&&k(e),R(t)}}}function d0(i){let e,t,n,o;function r(a){i[143](a)}let l={disabled:i[49],click:i[63],isMobile:!0,isPlaying:!i[32]};return i[20].playButton!==void 0&&(l.ref=i[20].playButton),t=new Hl({props:l}),ge.push(()=>He(t,"ref",r)),{c(){e=T("div"),q(t.$$.fragment),f(e,"class","wrapper-middle svelte-rwqnhz")},m(a,s){S(a,e,s),V(t,e,null),o=!0},p(a,s){let u={};s[1]&262144&&(u.disabled=a[49]),s[1]&2&&(u.isPlaying=!a[32]),!n&&s[0]&1048576&&(n=!0,u.ref=a[20].playButton,ze(()=>n=!1)),t.$set(u)},i(a){o||(d(t.$$.fragment,a),o=!0)},o(a){_(t.$$.fragment,a),o=!1},d(a){a&&k(e),R(t)}}}function v5(i){let e,t,n;function o(l){i[144](l)}let r={disabled:i[48],$$slots:{default:[y5]},$$scope:{ctx:i}};return i[20].replayButton!==void 0&&(r.ref=i[20].replayButton),e=new Ft({props:r}),ge.push(()=>He(e,"ref",o)),{c(){q(e.$$.fragment)},m(l,a){V(e,l,a),n=!0},p(l,a){let s={};a[1]&131072&&(s.disabled=l[48]),a[1]&131072|a[5]&4194304&&(s.$$scope={dirty:a,ctx:l}),!t&&a[0]&1048576&&(t=!0,s.ref=l[20].replayButton,ze(()=>t=!1)),e.$set(s)},i(l){n||(d(e.$$.fragment,l),n=!0)},o(l){_(e.$$.fragment,l),n=!1},d(l){R(e,l)}}}function y5(i){let e,t;return e=new Ul({props:{disabled:i[48],click:i[95]}}),{c(){q(e.$$.fragment)},m(n,o){V(e,n,o),t=!0},p(n,o){let r={};o[1]&131072&&(r.disabled=n[48]),e.$set(r)},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){_(e.$$.fragment,n),t=!1},d(n){R(e,n)}}}function m0(i){let e,t,n;function o(l){i[145](l)}let r={$$slots:{default:[w5]},$$scope:{ctx:i}};return i[20].liveButton!==void 0&&(r.ref=i[20].liveButton),e=new Ft({props:r}),ge.push(()=>He(e,"ref",o)),{c(){q(e.$$.fragment)},m(l,a){V(e,l,a),n=!0},p(l,a){let s={};a[0]&524288|a[1]&16384|a[5]&4194304&&(s.$$scope={dirty:a,ctx:l}),!t&&a[0]&1048576&&(t=!0,s.ref=l[20].liveButton,ze(()=>t=!1)),e.$set(s)},i(l){n||(d(e.$$.fragment,l),n=!0)},o(l){_(e.$$.fragment,l),n=!1},d(l){R(e,l)}}}function w5(i){let e,t;return e=new Hr({props:{isActiveLive:i[19],isMobile:!0,ariaLabel:i[45]}}),{c(){q(e.$$.fragment)},m(n,o){V(e,n,o),t=!0},p(n,o){let r={};o[0]&524288&&(r.isActiveLive=n[19]),o[1]&16384&&(r.ariaLabel=n[45]),e.$set(r)},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){_(e.$$.fragment,n),t=!1},d(n){R(e,n)}}}function p0(i){let e,t,n;function o(l){i[146](l)}let r={showDuration:i[35],position:i[4]?i[59]:i[61],duration:i[4]?i[60]:i[62],isMobile:!0};return i[20].time!==void 0&&(r.ref=i[20].time),e=new Rr({props:r}),ge.push(()=>He(e,"ref",o)),{c(){q(e.$$.fragment)},m(l,a){V(e,l,a),n=!0},p(l,a){let s={};a[1]&16&&(s.showDuration=l[35]),a[0]&16|a[1]&1342177280&&(s.position=l[4]?l[59]:l[61]),a[0]&16|a[1]&536870912|a[2]&1&&(s.duration=l[4]?l[60]:l[62]),!t&&a[0]&1048576&&(t=!0,s.ref=l[20].time,ze(()=>t=!1)),e.$set(s)},i(l){n||(d(e.$$.fragment,l),n=!0)},o(l){_(e.$$.fragment,l),n=!1},d(l){R(e,l)}}}function _0(i){let e,t,n,o;return n=new jr({props:{position:i[61],duration:i[62],timeCodes:i[84]}}),{c(){e=T("div"),e.textContent="\xB7",t=B(),q(n.$$.fragment),f(e,"aria-hidden","true")},m(r,l){S(r,e,l),S(r,t,l),V(n,r,l),o=!0},p(r,l){let a={};l[1]&1073741824&&(a.position=r[61]),l[2]&1&&(a.duration=r[62]),n.$set(a)},i(r){o||(d(n.$$.fragment,r),o=!0)},o(r){_(n.$$.fragment,r),o=!1},d(r){r&&(k(e),k(t)),R(n,r)}}}function k5(i){let e,t,n=i[43]&&_0(i);return{c(){n&&n.c(),e=mt()},m(o,r){n&&n.m(o,r),S(o,e,r),t=!0},p(o,r){o[43]?n?(n.p(o,r),r[1]&4096&&d(n,1)):(n=_0(o),n.c(),d(n,1),n.m(e.parentNode,e)):n&&(ce(),_(n,1,1,()=>{n=null}),de())},i(o){t||(d(n),t=!0)},o(o){_(n),t=!1},d(o){o&&k(e),n&&n.d(o)}}}function h0(i){let e,t,n;function o(l){i[149](l)}let r={$$slots:{default:[C5]},$$scope:{ctx:i}};return i[20].settings!==void 0&&(r.ref=i[20].settings),e=new Ft({props:r}),ge.push(()=>He(e,"ref",o)),{c(){q(e.$$.fragment)},m(l,a){V(e,l,a),n=!0},p(l,a){let s={};a[0]&4194304|a[5]&4194304&&(s.$$scope={dirty:a,ctx:l}),!t&&a[0]&1048576&&(t=!0,s.ref=l[20].settings,ze(()=>t=!1)),e.$set(s)},i(l){n||(d(e.$$.fragment,l),n=!0)},o(l){_(e.$$.fragment,l),n=!1},d(l){R(e,l)}}}function C5(i){let e,t,n;function o(l){i[148](l)}let r={};return i[22]!==void 0&&(r.ref=i[22]),e=new Fl({props:r}),ge.push(()=>He(e,"ref",o)),{c(){q(e.$$.fragment)},m(l,a){V(e,l,a),n=!0},p(l,a){let s={};!t&&a[0]&4194304&&(t=!0,s.ref=l[22],ze(()=>t=!1)),e.$set(s)},i(l){n||(d(e.$$.fragment,l),n=!0)},o(l){_(e.$$.fragment,l),n=!1},d(l){R(e,l)}}}function g0(i){let e,t,n;function o(l){i[150](l)}let r={$$slots:{default:[S5]},$$scope:{ctx:i}};return i[20].fullscreen!==void 0&&(r.ref=i[20].fullscreen),e=new Ft({props:r}),ge.push(()=>He(e,"ref",o)),{c(){q(e.$$.fragment)},m(l,a){V(e,l,a),n=!0},p(l,a){let s={};a[0]&16384|a[1]&2097152|a[5]&4194304&&(s.$$scope={dirty:a,ctx:l}),!t&&a[0]&1048576&&(t=!0,s.ref=l[20].fullscreen,ze(()=>t=!1)),e.$set(s)},i(l){n||(d(e.$$.fragment,l),n=!0)},o(l){_(e.$$.fragment,l),n=!1},d(l){R(e,l)}}}function S5(i){let e,t;return e=new Nr({props:{click:i[14],isFullscreen:i[52]}}),{c(){q(e.$$.fragment)},m(n,o){V(e,n,o),t=!0},p(n,o){let r={};o[0]&16384&&(r.click=n[14]),o[1]&2097152&&(r.isFullscreen=n[52]),e.$set(r)},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){_(e.$$.fragment,n),t=!1},d(n){R(e,n)}}}function b0(i){let e,t,n,o;function r(a){i[154](a)}let l={supportLink:i[11],returnFocus:i[15]};return i[21]!==void 0&&(l.ref=i[21]),t=new Vr({props:l}),ge.push(()=>He(t,"ref",r)),{c(){e=T("div"),q(t.$$.fragment),f(e,"class","settings-mobile svelte-rwqnhz")},m(a,s){S(a,e,s),V(t,e,null),o=!0},p(a,s){let u={};s[0]&2048&&(u.supportLink=a[11]),s[0]&32768&&(u.returnFocus=a[15]),!n&&s[0]&2097152&&(n=!0,u.ref=a[21],ze(()=>n=!1)),t.$set(u)},i(a){o||(d(t.$$.fragment,a),o=!0)},o(a){_(t.$$.fragment,a),o=!1},d(a){a&&k(e),R(t)}}}function T5(i){let e,t,n;function o(l){i[155](l)}let r={};return i[20].interactiveTimeIndicator!==void 0&&(r.ref=i[20].interactiveTimeIndicator),e=new ls({props:r}),ge.push(()=>He(e,"ref",o)),{c(){q(e.$$.fragment)},m(l,a){V(e,l,a),n=!0},p(l,a){let s={};!t&&a[0]&1048576&&(t=!0,s.ref=l[20].interactiveTimeIndicator,ze(()=>t=!1)),e.$set(s)},i(l){n||(d(e.$$.fragment,l),n=!0)},o(l){_(e.$$.fragment,l),n=!1},d(l){R(e,l)}}}function P5(i){let e,t,n,o,r,l,a,s,u,c,m,h,w,g,C,v,E,y,b,P=!i[4]&&xm(i),A=i[4]&&i[30]!=="inactive"&&f0(i),M=i[96]&&v5(i),N=!i[4]&&i[25]&&m0(i),te=i[41]&&p0(i);function _e(F){i[147](F)}let X={className:"w-max",disabled:!i[43],$$slots:{default:[k5]},$$scope:{ctx:i}};i[20].episodes!==void 0&&(X.ref=i[20].episodes),u=new Ft({props:X}),ge.push(()=>He(u,"ref",_e));let $=i[38]&&h0(i),se=i[40]&&g0(i);function L(F){i[152](F)}let K={isAds:i[4],canRewindLive:i[5],isRewindableLive:i[24]};i[20].timeline!==void 0&&(K.ref=i[20].timeline),g=new Wr({props:K}),ge.push(()=>He(g,"ref",L));let x=i[23]&&b0(i),Z=i[101]&&T5(i);return{c(){P&&P.c(),e=B(),A&&A.c(),t=B(),n=T("div"),o=T("div"),r=T("div"),M&&M.c(),l=B(),N&&N.c(),a=B(),te&&te.c(),s=B(),q(u.$$.fragment),m=B(),$&&$.c(),h=B(),se&&se.c(),w=B(),q(g.$$.fragment),v=B(),x&&x.c(),E=B(),Z&&Z.c(),y=mt(),f(r,"class","controls svelte-rwqnhz"),O(r,"mobile",!0),f(o,"class","controls-wrapper svelte-rwqnhz"),O(o,"fullscreen",i[52]),f(n,"class","wrapper-bottom svelte-rwqnhz"),O(n,"hidden",i[1]),O(n,"controls-hidden",!i[3]),O(n,"no-smooth",i[2]),O(n,"mobile",!0)},m(F,Q){P&&P.m(F,Q),S(F,e,Q),A&&A.m(F,Q),S(F,t,Q),S(F,n,Q),p(n,o),p(o,r),M&&M.m(r,null),p(r,l),N&&N.m(r,null),p(r,a),te&&te.m(r,null),p(r,s),V(u,r,null),p(r,m),$&&$.m(r,null),p(r,h),se&&se.m(r,null),i[151](r),p(o,w),V(g,o,null),i[153](n),S(F,v,Q),x&&x.m(F,Q),S(F,E,Q),Z&&Z.m(F,Q),S(F,y,Q),b=!0},p(F,Q){F[4]?P&&(ce(),_(P,1,1,()=>{P=null}),de()):P?(P.p(F,Q),Q[0]&16&&d(P,1)):(P=xm(F),P.c(),d(P,1),P.m(e.parentNode,e)),F[4]&&F[30]!=="inactive"?A?(A.p(F,Q),Q[0]&1073741840&&d(A,1)):(A=f0(F),A.c(),d(A,1),A.m(t.parentNode,t)):A&&(ce(),_(A,1,1,()=>{A=null}),de()),F[96]&&M.p(F,Q),!F[4]&&F[25]?N?(N.p(F,Q),Q[0]&33554448&&d(N,1)):(N=m0(F),N.c(),d(N,1),N.m(r,a)):N&&(ce(),_(N,1,1,()=>{N=null}),de()),F[41]?te?(te.p(F,Q),Q[1]&1024&&d(te,1)):(te=p0(F),te.c(),d(te,1),te.m(r,s)):te&&(ce(),_(te,1,1,()=>{te=null}),de());let J={};Q[1]&4096&&(J.disabled=!F[43]),Q[1]&1073745920|Q[2]&1|Q[5]&4194304&&(J.$$scope={dirty:Q,ctx:F}),!c&&Q[0]&1048576&&(c=!0,J.ref=F[20].episodes,ze(()=>c=!1)),u.$set(J),F[38]?$?($.p(F,Q),Q[1]&128&&d($,1)):($=h0(F),$.c(),d($,1),$.m(r,h)):$&&(ce(),_($,1,1,()=>{$=null}),de()),F[40]?se?(se.p(F,Q),Q[1]&512&&d(se,1)):(se=g0(F),se.c(),d(se,1),se.m(r,null)):se&&(ce(),_(se,1,1,()=>{se=null}),de());let oe={};Q[0]&16&&(oe.isAds=F[4]),Q[0]&32&&(oe.canRewindLive=F[5]),Q[0]&16777216&&(oe.isRewindableLive=F[24]),!C&&Q[0]&1048576&&(C=!0,oe.ref=F[20].timeline,ze(()=>C=!1)),g.$set(oe),(!b||Q[1]&2097152)&&O(o,"fullscreen",F[52]),(!b||Q[0]&2)&&O(n,"hidden",F[1]),(!b||Q[0]&8)&&O(n,"controls-hidden",!F[3]),(!b||Q[0]&4)&&O(n,"no-smooth",F[2]),F[23]?x?(x.p(F,Q),Q[0]&8388608&&d(x,1)):(x=b0(F),x.c(),d(x,1),x.m(E.parentNode,E)):x&&(ce(),_(x,1,1,()=>{x=null}),de()),F[101]&&Z.p(F,Q)},i(F){b||(d(P),d(A),d(M),d(N),d(te),d(u.$$.fragment,F),d($),d(se),d(g.$$.fragment,F),d(x),d(Z),b=!0)},o(F){_(P),_(A),_(M),_(N),_(te),_(u.$$.fragment,F),_($),_(se),_(g.$$.fragment,F),_(x),_(Z),b=!1},d(F){F&&(k(e),k(t),k(n),k(v),k(E),k(y)),P&&P.d(F),A&&A.d(F),M&&M.d(),N&&N.d(),te&&te.d(),R(u),$&&$.d(),se&&se.d(),i[151](null),R(g),i[153](null),x&&x.d(F),Z&&Z.d(F)}}}function I5(i,e,t){var an,Qn;let n,o,r,l,a,s,u,c,m,h,w,g,C,v,E,y,b,P,A,M,N,te,_e,X,$,se,L,K,x,Z,F,Q,J,oe,Be,Ye,Ie,{bottomHidden:Re}=e,{bottomNoSmooth:qe}=e,{showControls:xe}=e,{controlsElementRef:ae=void 0}=e,{isAds:he=!1}=e,{canRewindLive:ft}=e,{logoClickable:ke}=e,{logoHidden:Ke}=e,{logoTargetUrl:_t=""}=e,{showNextPrevButtons:Ze}=e,{nextButtonActive:Ge}=e,{prevButtonActive:Xe}=e,{isOneVideoPlaylist:et=!1}=e,{supportLink:fe}=e,{customFullscreenSupported:Te=!0}=e,{playNextVideo:We}=e,{playPrevVideo:le}=e,{repeatPlaylist:Se}=e,{toggleFullscreen:ht}=e,{returnFocus:Ee}=e,{seekToInteractive:ct}=e,{toggleGraph:me}=e,{playPrevChapter:tt}=e,{onDisabledPlayPrevChapterClick:Tt}=e,{onDisabledSeekToInteractiveClick:vt}=e,Ue=rt(),zt=Kn(),Dt=Wt(),Pt=Ue.actions.internal.toggleMuted,li=Ue.actions.internal.togglePlay,dt=Ue.actions.internal.pause,lt=(an=Ue.callbacks)==null?void 0:an.onAudioDoesNotExistHint,ve=(Qn=Ue.callbacks)==null?void 0:Qn.onAudioDisabledHint,Je=Ue.playerPhase;H(i,Je,ne=>t(126,N=ne));let gt=Ue.state.duration$;H(i,gt,ne=>t(62,Ie=ne));let Ht=Ue.state.positionWithScrubbing$;H(i,Ht,ne=>t(61,Ye=ne));let kt=Ue.state.playbackState$;H(i,kt,ne=>t(121,h=ne));let xt=Ue.state.isAudioAvailable$;H(i,xt,ne=>t(51,w=ne));let hi=Ue.state.isAudioDisabled,qt=Ue.state.isEnded$;H(i,qt,ne=>t(127,_e=ne));let Yi=Ue.state.isLive$;H(i,Yi,ne=>t(25,y=ne));let fn=Ue.state.muted$;H(i,fn,ne=>t(54,x=ne));let ri=Ue.state.isActiveLive$;H(i,ri,ne=>t(124,v=ne));let Di=Ue.state.isRewindableLive$;H(i,Di,ne=>t(24,E=ne));let cn=Ue.ui.scrubbingInProgress;H(i,cn,ne=>t(29,te=ne));let Zi=Ue.ui.mobileNotReportControlHidden$;H(i,Zi,ne=>t(27,A=ne));let dn=Ue.ui.isPictureInPictureActive$;H(i,dn,ne=>t(26,P=ne));let Ni=Ue.ui.pictureInPictureType$;H(i,Ni,ne=>t(125,b=ne));let Oi=Ue.ui.mobileUnmuteButtonExpanded;H(i,Oi,ne=>t(55,Z=ne));let gi=Ue.ui.mobileUnmuteButtonVisible;H(i,gi,ne=>t(53,K=ne));let bi=Ue.ui.settingsMenuVisible;H(i,bi,ne=>t(23,m=ne));let Ti=Ue.ui.settingsMenuOpenedByKeyboard;H(i,Ti,ne=>t(120,c=ne));let Pi=Ue.ui.controls,$t=Ue.actions.internal.getVideoEpisodes(),jt=Ue.webApi.pictureInPictureApi,Xi=Ue.state.chromecastState$;H(i,Xi,ne=>t(28,M=ne));let Gt=Ue.state.crashed$;H(i,Gt,ne=>t(57,Q=ne));let Ii=Pi.disabledControls$;H(i,Ii,ne=>t(128,$=ne));let Fi=Ue.ui.startedByKeyboard$;H(i,Fi,ne=>t(119,u=ne));let Ji=Ue.ads.duration;H(i,Ji,ne=>t(60,Be=ne));let si=Ue.ads.position;H(i,si,ne=>t(59,oe=ne));let Ct=Ue.ads.playbackState;H(i,Ct,ne=>t(30,X=ne));let xi=Ue.ui.isFullscreen;H(i,xi,ne=>t(52,L=ne));let zi=Ue.ui.playerSize;H(i,zi,ne=>t(123,C=ne));let At=Ue.ui.additionalButtons$;H(i,At,ne=>t(56,F=ne));let $i=Ue.actions.internal.getVideoElement,en=Ue.actions.internal.replayInteractive,ei=Ue.state.isInteractive,Ei=Ue.state.isInteractiveTime$;H(i,Ei,ne=>t(122,g=ne));let vi=Ue.state.showInteractiveGraph,Li=Ue.state.showSeekToInteractive,ti=Ue.state.showPlayPrevChapter,Qt=Ue.state.showInteractiveTimeIndicator,ai=Ue.state.graphIsOpened$;H(i,ai,ne=>t(58,J=ne));let Hi=zt.seekToInteractiveDisabledTooltip$;H(i,Hi,ne=>t(129,se=ne));let mi,pi,ui,yi,tn,yn,Ui,_i,ii,mn,Ot,Ut,pn,wi,fi,_n,it,Ai,ci,je={},nn=p5(ns,260,{leading:!1}),wn=()=>Ue.actions.internal.toggleChromecast();function kn(){yo({isAudioDisabled:hi,audioDisabledHintCallback:ve,isAudioAvailable:w,audioIsNotExistHintCallback:lt})&&Pt()}function on(){return pt(this,null,function*(){jt!=null&&jt.isActive()?yield jt==null?void 0:jt.remove():yield jt==null?void 0:jt.request()})}function Ki(){!hi&&w&&gi.set(!1),kn()}let hn=et?li:Se,Wi="",ni=(ne,To)=>{if(!ne){t(45,Wi=U("tooltip_live"));return}To===Xm.PAUSED&&t(45,Wi=U("tooltip_play"))},ln,ki,In=()=>{s&&Tt(mi)},Cn=()=>{r&&vt(pi)};function Sn(ne){i.$$.not_equal(je.volume,ne)&&(je.volume=ne,t(20,je))}function An(ne){i.$$.not_equal(je.chromecast,ne)&&(je.chromecast=ne,t(20,je))}function gn(ne){i.$$.not_equal(je.pip,ne)&&(je.pip=ne,t(20,je))}function Tn(ne){ki=ne,t(22,ki)}function Pn(ne){i.$$.not_equal(je.vkLogo,ne)&&(je.vkLogo=ne,t(20,je))}function rn(ne){i.$$.not_equal(je.prevButton,ne)&&(je.prevButton=ne,t(20,je))}function Kt(ne){i.$$.not_equal(je.playButton,ne)&&(je.playButton=ne,t(20,je))}function Mn(ne){i.$$.not_equal(je.replayButton,ne)&&(je.replayButton=ne,t(20,je))}function Mi(ne){i.$$.not_equal(je.nextButton,ne)&&(je.nextButton=ne,t(20,je))}function Dn(ne){i.$$.not_equal(je.playPrevChapterButton,ne)&&(je.playPrevChapterButton=ne,t(20,je))}function Yt(ne){i.$$.not_equal(je.interactiveGraphButton,ne)&&(je.interactiveGraphButton=ne,t(20,je))}function Nn(ne){i.$$.not_equal(je.seekToInteractiveButton,ne)&&(je.seekToInteractiveButton=ne,t(20,je))}function On(ne){i.$$.not_equal(je.volume,ne)&&(je.volume=ne,t(20,je))}function Vn(ne){i.$$.not_equal(je.playButton,ne)&&(je.playButton=ne,t(20,je))}function Fn(ne){i.$$.not_equal(je.replayButton,ne)&&(je.replayButton=ne,t(20,je))}function bn(ne){i.$$.not_equal(je.liveButton,ne)&&(je.liveButton=ne,t(20,je))}function ji(ne){i.$$.not_equal(je.time,ne)&&(je.time=ne,t(20,je))}function re(ne){i.$$.not_equal(je.episodes,ne)&&(je.episodes=ne,t(20,je))}function It(ne){ki=ne,t(22,ki)}function sn(ne){i.$$.not_equal(je.settings,ne)&&(je.settings=ne,t(20,je))}function Vi(ne){i.$$.not_equal(je.fullscreen,ne)&&(je.fullscreen=ne,t(20,je))}function ie(ne){ge[ne?"unshift":"push"](()=>{Ai=ne,t(44,Ai)})}function ut(ne){i.$$.not_equal(je.timeline,ne)&&(je.timeline=ne,t(20,je))}function oi(ne){ge[ne?"unshift":"push"](()=>{ae=ne,t(0,ae)})}function zn(ne){ln=ne,t(21,ln)}function Gn(ne){i.$$.not_equal(je.interactiveTimeIndicator,ne)&&(je.interactiveTimeIndicator=ne,t(20,je))}return i.$$set=ne=>{"bottomHidden"in ne&&t(1,Re=ne.bottomHidden),"bottomNoSmooth"in ne&&t(2,qe=ne.bottomNoSmooth),"showControls"in ne&&t(3,xe=ne.showControls),"controlsElementRef"in ne&&t(0,ae=ne.controlsElementRef),"isAds"in ne&&t(4,he=ne.isAds),"canRewindLive"in ne&&t(5,ft=ne.canRewindLive),"logoClickable"in ne&&t(6,ke=ne.logoClickable),"logoHidden"in ne&&t(110,Ke=ne.logoHidden),"logoTargetUrl"in ne&&t(7,_t=ne.logoTargetUrl),"showNextPrevButtons"in ne&&t(8,Ze=ne.showNextPrevButtons),"nextButtonActive"in ne&&t(9,Ge=ne.nextButtonActive),"prevButtonActive"in ne&&t(10,Xe=ne.prevButtonActive),"isOneVideoPlaylist"in ne&&t(111,et=ne.isOneVideoPlaylist),"supportLink"in ne&&t(11,fe=ne.supportLink),"customFullscreenSupported"in ne&&t(112,Te=ne.customFullscreenSupported),"playNextVideo"in ne&&t(12,We=ne.playNextVideo),"playPrevVideo"in ne&&t(13,le=ne.playPrevVideo),"repeatPlaylist"in ne&&t(113,Se=ne.repeatPlaylist),"toggleFullscreen"in ne&&t(14,ht=ne.toggleFullscreen),"returnFocus"in ne&&t(15,Ee=ne.returnFocus),"seekToInteractive"in ne&&t(16,ct=ne.seekToInteractive),"toggleGraph"in ne&&t(17,me=ne.toggleGraph),"playPrevChapter"in ne&&t(18,tt=ne.playPrevChapter),"onDisabledPlayPrevChapterClick"in ne&&t(114,Tt=ne.onDisabledPlayPrevChapterClick),"onDisabledSeekToInteractiveClick"in ne&&t(115,vt=ne.onDisabledSeekToInteractiveClick)},i.$$.update=()=>{if(i.$$.dirty[4]&32&&(pi=U(se)),i.$$.dirty[4]&16&&t(118,n=$.has("EPISODE_BUTTON")),i.$$.dirty[4]&16&&t(50,o=$.has("GRAPH_BUTTON")),i.$$.dirty[4]&16&&t(46,r=$.has("SEEK_TO_INTERACTIVE_BUTTON")),i.$$.dirty[4]&16&&t(49,l=$.has("PLAY_BUTTON")),i.$$.dirty[4]&16&&t(48,a=$.has("REPLAY_BUTTON")),i.$$.dirty[4]&16&&t(47,s=$.has("PLAY_PREV_CHAPTER_BUTTON")),i.$$.dirty[3]&268435456&&t(31,ui=h===Xm.PLAYING),i.$$.dirty[0]&1073741824&&t(32,yi=X==="paused"),i.$$.dirty[0]&16|i.$$.dirty[4]&8&&t(33,tn=_e&&!he&&!ei),i.$$.dirty[0]&16|i.$$.dirty[4]&8&&t(34,yn=!_e||he),i.$$.dirty[3]&1073741824&&t(116,Ui=C.width>300),i.$$.dirty[3]&1073741824&&t(35,_i=C.width>400),i.$$.dirty[0]&536870912&&t(117,ii=te),i.$$.dirty[0]&469762048|i.$$.dirty[4]&2&&t(36,mn=M!==Zm.NOT_AVAILABLE&&!(P&&b===1)&&!A&&!ei),i.$$.dirty[0]&402653184|i.$$.dirty[3]&16777216|i.$$.dirty[4]&6){let ne=N==="LiveWaitingStart";t(37,Ot=!!jt&&M!==Zm.CONNECTED&&!A&&(b===1&&ne||!ne)&&!ii&&!ei)}i.$$.dirty[3]&16777216&&t(38,Ut=!ii),i.$$.dirty[3]&1073872896&&t(39,pn=!Ke&&C.width>350),i.$$.dirty[0]&67108864|i.$$.dirty[3]&17301504|i.$$.dirty[4]&2&&t(40,wi=Dt.features.fullscreen&&!(P&&b===1)&&(ei?Te:!0)&&!ii),i.$$.dirty[0]&33554448|i.$$.dirty[3]&1090519040&&t(41,fi=(!y||he)&&C.width>260&&!ii&&!(Dt.features.interactiveHideTime&&ei)),i.$$.dirty[0]&8388616&&t(42,_n=m||xe),i.$$.dirty[0]&33554448|i.$$.dirty[3]&58720256&&t(43,it=!he&&!y&&!!($t!=null&&$t.length)&&Ui&&!n&&!ii),i.$$.dirty[0]&16777216|i.$$.dirty[4]&1&&t(19,ci=!E||v),i.$$.dirty[0]&1048584|i.$$.dirty[3]&1610612736&&nn($i(),Pi,je,xe),i.$$.dirty[0]&524288|i.$$.dirty[3]&268435456&&ni(ci,h),i.$$.dirty[0]&12582912&&ml(ki,m,Ti),i.$$.dirty[0]&10485760|i.$$.dirty[3]&134217728&&Ko(ln,m,c),i.$$.dirty[0]&1048576|i.$$.dirty[3]&67108864&&os(Fi,u,je.playButton)},mi=U(Ue.state.playPrevChapterDisabledTooltip),[ae,Re,qe,xe,he,ft,ke,_t,Ze,Ge,Xe,fe,We,le,ht,Ee,ct,me,tt,ci,je,ln,ki,m,E,y,P,A,M,te,X,ui,yi,tn,yn,_i,mn,Ot,Ut,pn,wi,fi,_n,it,Ai,Wi,r,s,a,l,o,w,L,K,x,Z,F,Q,J,oe,Be,Ye,Ie,li,dt,Je,gt,Ht,kt,xt,hi,qt,Yi,fn,ri,Di,cn,Zi,dn,Ni,Oi,gi,bi,Ti,$t,Xi,Gt,Ii,Fi,Ji,si,Ct,xi,zi,At,en,ei,Ei,vi,Li,ti,Qt,ai,Hi,wn,on,Ki,hn,In,Cn,Ke,et,Te,Se,Tt,vt,Ui,ii,n,u,c,h,g,C,v,b,N,_e,$,se,Sn,An,gn,Tn,Pn,rn,Kt,Mn,Mi,Dn,Yt,Nn,On,Vn,Fn,bn,ji,re,It,sn,Vi,ie,ut,oi,zn,Gn]}var Zu=class extends j{constructor(e){super(),G(this,e,I5,P5,W,{bottomHidden:1,bottomNoSmooth:2,showControls:3,controlsElementRef:0,isAds:4,canRewindLive:5,logoClickable:6,logoHidden:110,logoTargetUrl:7,showNextPrevButtons:8,nextButtonActive:9,prevButtonActive:10,isOneVideoPlaylist:111,supportLink:11,customFullscreenSupported:112,playNextVideo:12,playPrevVideo:13,repeatPlaylist:113,toggleFullscreen:14,returnFocus:15,seekToInteractive:16,toggleGraph:17,playPrevChapter:18,onDisabledPlayPrevChapterClick:114,onDisabledSeekToInteractiveClick:115},_5,[-1,-1,-1,-1,-1,-1])}},v0=Zu;function E5(i){let e,t,n;function o(l){i[28](l)}let r={bottomHidden:i[1],bottomNoSmooth:i[2],showControls:i[3],isAds:i[4],canRewindLive:i[5],logoClickable:i[6],logoHidden:i[7],logoTargetUrl:i[8],showNextPrevButtons:i[9],nextButtonActive:i[10],prevButtonActive:i[11],isOneVideoPlaylist:i[12],supportLink:i[13],customFullscreenSupported:i[14],playNextVideo:i[15],playPrevVideo:i[16],repeatPlaylist:i[17],toggleFullscreen:i[18],returnFocus:i[19],seekToInteractive:i[20],toggleGraph:i[21],playPrevChapter:i[22]};return i[0]!==void 0&&(r.controlsElementRef=i[0]),e=new Km({props:r}),ge.push(()=>He(e,"controlsElementRef",o)),{c(){q(e.$$.fragment)},m(l,a){V(e,l,a),n=!0},p(l,a){let s={};a&2&&(s.bottomHidden=l[1]),a&4&&(s.bottomNoSmooth=l[2]),a&8&&(s.showControls=l[3]),a&16&&(s.isAds=l[4]),a&32&&(s.canRewindLive=l[5]),a&64&&(s.logoClickable=l[6]),a&128&&(s.logoHidden=l[7]),a&256&&(s.logoTargetUrl=l[8]),a&512&&(s.showNextPrevButtons=l[9]),a&1024&&(s.nextButtonActive=l[10]),a&2048&&(s.prevButtonActive=l[11]),a&4096&&(s.isOneVideoPlaylist=l[12]),a&8192&&(s.supportLink=l[13]),a&16384&&(s.customFullscreenSupported=l[14]),a&32768&&(s.playNextVideo=l[15]),a&65536&&(s.playPrevVideo=l[16]),a&131072&&(s.repeatPlaylist=l[17]),a&262144&&(s.toggleFullscreen=l[18]),a&524288&&(s.returnFocus=l[19]),a&1048576&&(s.seekToInteractive=l[20]),a&2097152&&(s.toggleGraph=l[21]),a&4194304&&(s.playPrevChapter=l[22]),!t&&a&1&&(t=!0,s.controlsElementRef=l[0],ze(()=>t=!1)),e.$set(s)},i(l){n||(d(e.$$.fragment,l),n=!0)},o(l){_(e.$$.fragment,l),n=!1},d(l){R(e,l)}}}function L5(i){let e,t,n;function o(l){i[27](l)}let r={bottomHidden:i[1],bottomNoSmooth:i[2],showControls:i[3],isAds:i[4],canRewindLive:i[5],logoClickable:i[6],logoHidden:i[7],logoTargetUrl:i[8],showNextPrevButtons:i[9],nextButtonActive:i[10],prevButtonActive:i[11],isOneVideoPlaylist:i[12],supportLink:i[13],customFullscreenSupported:i[14],playNextVideo:i[15],playPrevVideo:i[16],repeatPlaylist:i[17],toggleFullscreen:i[18],returnFocus:i[19],seekToInteractive:i[20],toggleGraph:i[21],playPrevChapter:i[22],onDisabledPlayPrevChapterClick:i[23],onDisabledSeekToInteractiveClick:i[24]};return i[0]!==void 0&&(r.controlsElementRef=i[0]),e=new v0({props:r}),ge.push(()=>He(e,"controlsElementRef",o)),{c(){q(e.$$.fragment)},m(l,a){V(e,l,a),n=!0},p(l,a){let s={};a&2&&(s.bottomHidden=l[1]),a&4&&(s.bottomNoSmooth=l[2]),a&8&&(s.showControls=l[3]),a&16&&(s.isAds=l[4]),a&32&&(s.canRewindLive=l[5]),a&64&&(s.logoClickable=l[6]),a&128&&(s.logoHidden=l[7]),a&256&&(s.logoTargetUrl=l[8]),a&512&&(s.showNextPrevButtons=l[9]),a&1024&&(s.nextButtonActive=l[10]),a&2048&&(s.prevButtonActive=l[11]),a&4096&&(s.isOneVideoPlaylist=l[12]),a&8192&&(s.supportLink=l[13]),a&16384&&(s.customFullscreenSupported=l[14]),a&32768&&(s.playNextVideo=l[15]),a&65536&&(s.playPrevVideo=l[16]),a&131072&&(s.repeatPlaylist=l[17]),a&262144&&(s.toggleFullscreen=l[18]),a&524288&&(s.returnFocus=l[19]),a&1048576&&(s.seekToInteractive=l[20]),a&2097152&&(s.toggleGraph=l[21]),a&4194304&&(s.playPrevChapter=l[22]),a&8388608&&(s.onDisabledPlayPrevChapterClick=l[23]),a&16777216&&(s.onDisabledSeekToInteractiveClick=l[24]),!t&&a&1&&(t=!0,s.controlsElementRef=l[0],ze(()=>t=!1)),e.$set(s)},i(l){n||(d(e.$$.fragment,l),n=!0)},o(l){_(e.$$.fragment,l),n=!1},d(l){R(e,l)}}}function A5(i){let e,t,n,o,r=[L5,E5],l=[];function a(s,u){return s[25]?0:1}return e=a(i,-1),t=l[e]=r[e](i),{c(){t.c(),n=mt()},m(s,u){l[e].m(s,u),S(s,n,u),o=!0},p(s,[u]){let c=e;e=a(s,u),e===c?l[e].p(s,u):(ce(),_(l[c],1,1,()=>{l[c]=null}),de(),t=l[e],t?t.p(s,u):(t=l[e]=r[e](s),t.c()),d(t,1),t.m(n.parentNode,n))},i(s){o||(d(t),o=!0)},o(s){_(t),o=!1},d(s){s&&k(n),l[e].d(s)}}}function M5(i,e,t){let n,{bottomHidden:o}=e,{bottomNoSmooth:r=!1}=e,{showControls:l}=e,{controlsElementRef:a=void 0}=e,{isAds:s=!1}=e,{canRewindLive:u}=e,{logoClickable:c}=e,{logoHidden:m}=e,{logoTargetUrl:h=""}=e,{showNextPrevButtons:w}=e,{nextButtonActive:g}=e,{prevButtonActive:C}=e,{isOneVideoPlaylist:v=!1}=e,{supportLink:E}=e,{customFullscreenSupported:y=!0}=e,{playNextVideo:b}=e,{playPrevVideo:P}=e,{repeatPlaylist:A}=e,{toggleFullscreen:M}=e,{returnFocus:N=Xu}=e,{seekToInteractive:te}=e,{toggleGraph:_e}=e,{playPrevChapter:X}=e,{onDisabledPlayPrevChapterClick:$=Xu}=e,{onDisabledSeekToInteractiveClick:se=Xu}=e,K=rt().ui.isMobile;H(i,K,F=>t(25,n=F));function x(F){a=F,t(0,a)}function Z(F){a=F,t(0,a)}return i.$$set=F=>{"bottomHidden"in F&&t(1,o=F.bottomHidden),"bottomNoSmooth"in F&&t(2,r=F.bottomNoSmooth),"showControls"in F&&t(3,l=F.showControls),"controlsElementRef"in F&&t(0,a=F.controlsElementRef),"isAds"in F&&t(4,s=F.isAds),"canRewindLive"in F&&t(5,u=F.canRewindLive),"logoClickable"in F&&t(6,c=F.logoClickable),"logoHidden"in F&&t(7,m=F.logoHidden),"logoTargetUrl"in F&&t(8,h=F.logoTargetUrl),"showNextPrevButtons"in F&&t(9,w=F.showNextPrevButtons),"nextButtonActive"in F&&t(10,g=F.nextButtonActive),"prevButtonActive"in F&&t(11,C=F.prevButtonActive),"isOneVideoPlaylist"in F&&t(12,v=F.isOneVideoPlaylist),"supportLink"in F&&t(13,E=F.supportLink),"customFullscreenSupported"in F&&t(14,y=F.customFullscreenSupported),"playNextVideo"in F&&t(15,b=F.playNextVideo),"playPrevVideo"in F&&t(16,P=F.playPrevVideo),"repeatPlaylist"in F&&t(17,A=F.repeatPlaylist),"toggleFullscreen"in F&&t(18,M=F.toggleFullscreen),"returnFocus"in F&&t(19,N=F.returnFocus),"seekToInteractive"in F&&t(20,te=F.seekToInteractive),"toggleGraph"in F&&t(21,_e=F.toggleGraph),"playPrevChapter"in F&&t(22,X=F.playPrevChapter),"onDisabledPlayPrevChapterClick"in F&&t(23,$=F.onDisabledPlayPrevChapterClick),"onDisabledSeekToInteractiveClick"in F&&t(24,se=F.onDisabledSeekToInteractiveClick)},[a,o,r,l,s,u,c,m,h,w,g,C,v,E,y,b,P,A,M,N,te,_e,X,$,se,n,K,x,Z]}var Ju=class extends j{constructor(e){super(),G(this,e,M5,A5,W,{bottomHidden:1,bottomNoSmooth:2,showControls:3,controlsElementRef:0,isAds:4,canRewindLive:5,logoClickable:6,logoHidden:7,logoTargetUrl:8,showNextPrevButtons:9,nextButtonActive:10,prevButtonActive:11,isOneVideoPlaylist:12,supportLink:13,customFullscreenSupported:14,playNextVideo:15,playPrevVideo:16,repeatPlaylist:17,toggleFullscreen:18,returnFocus:19,seekToInteractive:20,toggleGraph:21,playPrevChapter:22,onDisabledPlayPrevChapterClick:23,onDisabledSeekToInteractiveClick:24})}},rs=Ju;function V5(i){let e,t,n,o,r,l,a,s,u,c,m,h,w,g,C=i[2].default,v=Le(C,i,i[1],null),E=[{xmlns:"http://www.w3.org/2000/svg"},{width:"48"},{height:"51"},{fill:"none"},{"aria-hidden":"true"},{"data-testid":"seek-icon"},{role:"img"},i[0]],y={};for(let b=0;b<E.length;b+=1)y=ue(y,E[b]);return{c(){e=D("svg"),v&&v.c(),t=D("g"),n=D("path"),o=D("path"),r=D("defs"),l=D("filter"),a=D("feFlood"),s=D("feColorMatrix"),u=D("feOffset"),c=D("feGaussianBlur"),m=D("feColorMatrix"),h=D("feBlend"),w=D("feBlend"),f(n,"fill","#fff"),f(n,"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"),f(o,"stroke","#000"),f(o,"stroke-opacity",".12"),f(o,"stroke-width",".5"),f(o,"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"),f(t,"filter","url(#a)"),f(a,"flood-opacity","0"),f(a,"result","BackgroundImageFix"),f(s,"in","SourceAlpha"),f(s,"result","hardAlpha"),f(s,"values","0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0"),f(c,"stdDeviation","2.5"),f(m,"values","0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.16 0"),f(h,"in2","BackgroundImageFix"),f(h,"result","effect1_dropShadow_2260_100684"),f(w,"in","SourceGraphic"),f(w,"in2","effect1_dropShadow_2260_100684"),f(w,"result","shape"),f(l,"id","a"),f(l,"width","43.996"),f(l,"height","49.5"),f(l,"x","2.5"),f(l,"y","0"),f(l,"color-interpolation-filters","sRGB"),f(l,"filterUnits","userSpaceOnUse"),we(e,y)},m(b,P){S(b,e,P),v&&v.m(e,null),p(e,t),p(t,n),p(t,o),p(e,r),p(r,l),p(l,a),p(l,s),p(l,u),p(l,c),p(l,m),p(l,h),p(l,w),g=!0},p(b,[P]){v&&v.p&&(!g||P&2)&&Me(v,C,b,b[1],g?Ae(C,b[1],P,null):Ve(b[1]),null),we(e,y=Ne(E,[{xmlns:"http://www.w3.org/2000/svg"},{width:"48"},{height:"51"},{fill:"none"},{"aria-hidden":"true"},{"data-testid":"seek-icon"},{role:"img"},P&1&&b[0]]))},i(b){g||(d(v,b),g=!0)},o(b){_(v,b),g=!1},d(b){b&&k(e),v&&v.d(b)}}}function R5(i,e,t){let{$$slots:n={},$$scope:o}=e;return i.$$set=r=>{t(0,e=ue(ue({},e),ye(r))),"$$scope"in r&&t(1,o=r.$$scope)},e=ye(e),[e,o,n]}var xu=class extends j{constructor(e){super(),G(this,e,R5,V5,W,{})}},y0=xu;function B5(i){let e,t;return e=new y0({props:{style:i[0]}}),{c(){q(e.$$.fragment)},m(n,o){V(e,n,o),t=!0},p(n,[o]){let r={};o&1&&(r.style=n[0]),e.$set(r)},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){_(e.$$.fragment,n),t=!1},d(n){R(e,n)}}}function q5(i,e,t){let n,{reversed:o=!1}=e;return i.$$set=r=>{"reversed"in r&&t(1,o=r.reversed)},i.$$.update=()=>{i.$$.dirty&2&&t(0,n=o?"transform: scaleX(-1);":void 0)},[n,o]}var $u=class extends j{constructor(e){super(),G(this,e,q5,B5,W,{reversed:1})}},w0=$u;function D5(i){let e,t,n,o,r,l,a,s,u,c,m,h,w,g,C,v,E=i[2].default,y=Le(E,i,i[1],null),b=[{xmlns:"http://www.w3.org/2000/svg"},{width:"48"},{height:"48"},{fill:"none"},{"aria-hidden":"true"},{"data-testid":"subtitles-on-icon"},{role:"img"},i[0]],P={};for(let A=0;A<b.length;A+=1)P=ue(P,b[A]);return{c(){e=D("svg"),y&&y.c(),t=D("g"),n=D("path"),o=D("path"),r=D("defs"),l=D("clipPath"),a=D("path"),s=D("filter"),u=D("feFlood"),c=D("feColorMatrix"),m=D("feOffset"),h=D("feGaussianBlur"),w=D("feColorMatrix"),g=D("feBlend"),C=D("feBlend"),f(n,"fill","#fff"),f(n,"fill-rule","evenodd"),f(n,"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"),f(n,"clip-rule","evenodd"),f(o,"stroke","#000"),f(o,"stroke-opacity",".12"),f(o,"stroke-width",".5"),f(o,"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"),f(t,"clip-path","url(#c)"),f(t,"filter","url(#a)"),f(a,"fill","#fff"),f(a,"d","M0 0h48v48H0z"),f(l,"id","c"),f(u,"flood-opacity","0"),f(u,"result","BackgroundImageFix"),f(c,"in","SourceAlpha"),f(c,"result","hardAlpha"),f(c,"values","0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0"),f(h,"stdDeviation","2.5"),f(w,"values","0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.16 0"),f(g,"in2","BackgroundImageFix"),f(g,"result","effect1_dropShadow_2260_104204"),f(C,"in","SourceGraphic"),f(C,"in2","effect1_dropShadow_2260_104204"),f(C,"result","shape"),f(s,"id","a"),f(s,"width","51"),f(s,"height","45"),f(s,"x","-1.5"),f(s,"y","1.5"),f(s,"color-interpolation-filters","sRGB"),f(s,"filterUnits","userSpaceOnUse"),we(e,P)},m(A,M){S(A,e,M),y&&y.m(e,null),p(e,t),p(t,n),p(t,o),p(e,r),p(r,l),p(l,a),p(r,s),p(s,u),p(s,c),p(s,m),p(s,h),p(s,w),p(s,g),p(s,C),v=!0},p(A,[M]){y&&y.p&&(!v||M&2)&&Me(y,E,A,A[1],v?Ae(E,A[1],M,null):Ve(A[1]),null),we(e,P=Ne(b,[{xmlns:"http://www.w3.org/2000/svg"},{width:"48"},{height:"48"},{fill:"none"},{"aria-hidden":"true"},{"data-testid":"subtitles-on-icon"},{role:"img"},M&1&&A[0]]))},i(A){v||(d(y,A),v=!0)},o(A){_(y,A),v=!1},d(A){A&&k(e),y&&y.d(A)}}}function N5(i,e,t){let{$$slots:n={},$$scope:o}=e;return i.$$set=r=>{t(0,e=ue(ue({},e),ye(r))),"$$scope"in r&&t(1,o=r.$$scope)},e=ye(e),[e,o,n]}var ef=class extends j{constructor(e){super(),G(this,e,N5,D5,W,{})}},k0=ef;function O5(i){let e,t,n,o,r,l,a,s,u,c,m,h,w,g,C,v,E,y=i[2].default,b=Le(y,i,i[1],null),P=[{xmlns:"http://www.w3.org/2000/svg"},{width:"48"},{height:"48"},{fill:"none"},{"aria-hidden":"true"},{"data-testid":"subtitles-off-icon"},{role:"img"},i[0]],A={};for(let M=0;M<P.length;M+=1)A=ue(A,P[M]);return{c(){e=D("svg"),b&&b.c(),t=D("g"),n=D("path"),o=D("path"),r=D("path"),l=D("defs"),a=D("clipPath"),s=D("path"),u=D("filter"),c=D("feFlood"),m=D("feColorMatrix"),h=D("feOffset"),w=D("feGaussianBlur"),g=D("feColorMatrix"),C=D("feBlend"),v=D("feBlend"),f(n,"fill","#fff"),f(n,"fill-rule","evenodd"),f(n,"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"),f(n,"clip-rule","evenodd"),f(o,"fill","#fff"),f(o,"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"),f(r,"stroke","#000"),f(r,"stroke-opacity",".12"),f(r,"stroke-width",".5"),f(r,"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"),f(t,"clip-path","url(#c)"),f(t,"filter","url(#a)"),f(s,"fill","#fff"),f(s,"d","M0 0h48v48H0z"),f(a,"id","c"),f(c,"flood-opacity","0"),f(c,"result","BackgroundImageFix"),f(m,"in","SourceAlpha"),f(m,"result","hardAlpha"),f(m,"values","0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0"),f(w,"stdDeviation","2.5"),f(g,"values","0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.16 0"),f(C,"in2","BackgroundImageFix"),f(C,"result","effect1_dropShadow_2260_104293"),f(v,"in","SourceGraphic"),f(v,"in2","effect1_dropShadow_2260_104293"),f(v,"result","shape"),f(u,"id","a"),f(u,"width","51"),f(u,"height","51"),f(u,"x","-1.5"),f(u,"y","-1.5"),f(u,"color-interpolation-filters","sRGB"),f(u,"filterUnits","userSpaceOnUse"),we(e,A)},m(M,N){S(M,e,N),b&&b.m(e,null),p(e,t),p(t,n),p(t,o),p(t,r),p(e,l),p(l,a),p(a,s),p(l,u),p(u,c),p(u,m),p(u,h),p(u,w),p(u,g),p(u,C),p(u,v),E=!0},p(M,[N]){b&&b.p&&(!E||N&2)&&Me(b,y,M,M[1],E?Ae(y,M[1],N,null):Ve(M[1]),null),we(e,A=Ne(P,[{xmlns:"http://www.w3.org/2000/svg"},{width:"48"},{height:"48"},{fill:"none"},{"aria-hidden":"true"},{"data-testid":"subtitles-off-icon"},{role:"img"},N&1&&M[0]]))},i(M){E||(d(b,M),E=!0)},o(M){_(b,M),E=!1},d(M){M&&k(e),b&&b.d(M)}}}function F5(i,e,t){let{$$slots:n={},$$scope:o}=e;return i.$$set=r=>{t(0,e=ue(ue({},e),ye(r))),"$$scope"in r&&t(1,o=r.$$scope)},e=ye(e),[e,o,n]}var tf=class extends j{constructor(e){super(),G(this,e,F5,O5,W,{})}},C0=tf;function z5(i){let e,t;return e=new k0({}),{c(){q(e.$$.fragment)},m(n,o){V(e,n,o),t=!0},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){_(e.$$.fragment,n),t=!1},d(n){R(e,n)}}}function H5(i){let e,t;return e=new C0({}),{c(){q(e.$$.fragment)},m(n,o){V(e,n,o),t=!0},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){_(e.$$.fragment,n),t=!1},d(n){R(e,n)}}}function U5(i){let e,t,n,o,r=[H5,z5],l=[];function a(s,u){return s[0]?0:1}return e=a(i,-1),t=l[e]=r[e](i),{c(){t.c(),n=mt()},m(s,u){l[e].m(s,u),S(s,n,u),o=!0},p(s,[u]){let c=e;e=a(s,u),e!==c&&(ce(),_(l[c],1,1,()=>{l[c]=null}),de(),t=l[e],t||(t=l[e]=r[e](s),t.c()),d(t,1),t.m(n.parentNode,n))},i(s){o||(d(t),o=!0)},o(s){_(t),o=!1},d(s){s&&k(n),l[e].d(s)}}}function K5(i,e,t){let{isOff:n=!1}=e;return i.$$set=o=>{"isOff"in o&&t(0,n=o.isOff)},[n]}var nf=class extends j{constructor(e){super(),G(this,e,K5,U5,W,{isOff:0})}},of=nf;function W5(i){let e,t,n,o,r,l,a,s,u,c,m,h,w,g,C=i[2].default,v=Le(C,i,i[1],null),E=[{xmlns:"http://www.w3.org/2000/svg"},{width:"48"},{height:"48"},{fill:"none"},{"aria-hidden":"true"},{"data-testid":"rate-change-icon"},{role:"img"},i[0]],y={};for(let b=0;b<E.length;b+=1)y=ue(y,E[b]);return{c(){e=D("svg"),v&&v.c(),t=D("g"),n=D("path"),o=D("path"),r=D("defs"),l=D("filter"),a=D("feFlood"),s=D("feColorMatrix"),u=D("feOffset"),c=D("feGaussianBlur"),m=D("feColorMatrix"),h=D("feBlend"),w=D("feBlend"),f(n,"fill","#fff"),f(n,"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"),f(o,"stroke","#000"),f(o,"stroke-opacity",".12"),f(o,"stroke-width",".5"),f(o,"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"),f(t,"filter","url(#a)"),f(a,"flood-opacity","0"),f(a,"result","BackgroundImageFix"),f(s,"in","SourceAlpha"),f(s,"result","hardAlpha"),f(s,"values","0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0"),f(c,"stdDeviation","2.5"),f(m,"values","0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.16 0"),f(h,"in2","BackgroundImageFix"),f(h,"result","effect1_dropShadow_2260_106627"),f(w,"in","SourceGraphic"),f(w,"in2","effect1_dropShadow_2260_106627"),f(w,"result","shape"),f(l,"id","a"),f(l,"width","40.098"),f(l,"height","27.785"),f(l,"x","3.402"),f(l,"y","10.105"),f(l,"color-interpolation-filters","sRGB"),f(l,"filterUnits","userSpaceOnUse"),we(e,y)},m(b,P){S(b,e,P),v&&v.m(e,null),p(e,t),p(t,n),p(t,o),p(e,r),p(r,l),p(l,a),p(l,s),p(l,u),p(l,c),p(l,m),p(l,h),p(l,w),g=!0},p(b,[P]){v&&v.p&&(!g||P&2)&&Me(v,C,b,b[1],g?Ae(C,b[1],P,null):Ve(b[1]),null),we(e,y=Ne(E,[{xmlns:"http://www.w3.org/2000/svg"},{width:"48"},{height:"48"},{fill:"none"},{"aria-hidden":"true"},{"data-testid":"rate-change-icon"},{role:"img"},P&1&&b[0]]))},i(b){g||(d(v,b),g=!0)},o(b){_(v,b),g=!1},d(b){b&&k(e),v&&v.d(b)}}}function j5(i,e,t){let{$$slots:n={},$$scope:o}=e;return i.$$set=r=>{t(0,e=ue(ue({},e),ye(r))),"$$scope"in r&&t(1,o=r.$$scope)},e=ye(e),[e,o,n]}var lf=class extends j{constructor(e){super(),G(this,e,j5,W5,W,{})}},S0=lf;function G5(i){let e,t;return e=new S0({props:{style:i[0]}}),{c(){q(e.$$.fragment)},m(n,o){V(e,n,o),t=!0},p(n,[o]){let r={};o&1&&(r.style=n[0]),e.$set(r)},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){_(e.$$.fragment,n),t=!1},d(n){R(e,n)}}}function Q5(i,e,t){let n,{reversed:o=!1}=e;return i.$$set=r=>{"reversed"in r&&t(1,o=r.reversed)},i.$$.update=()=>{i.$$.dirty&2&&t(0,n=o?"transform: scaleX(-1);":void 0)},[n,o]}var rf=class extends j{constructor(e){super(),G(this,e,Q5,G5,W,{reversed:1})}},T0=rf;function Y5(i){let e,t,n,o,r,l,a,s,u,c,m,h,w,g,C=i[2].default,v=Le(C,i,i[1],null),E=[{xmlns:"http://www.w3.org/2000/svg"},{width:"48"},{height:"48"},{fill:"none"},{"aria-hidden":"true"},{"data-testid":"episodes-seek-icon"},{role:"img"},i[0]],y={};for(let b=0;b<E.length;b+=1)y=ue(y,E[b]);return{c(){e=D("svg"),v&&v.c(),t=D("g"),n=D("path"),o=D("path"),r=D("defs"),l=D("filter"),a=D("feFlood"),s=D("feColorMatrix"),u=D("feOffset"),c=D("feGaussianBlur"),m=D("feColorMatrix"),h=D("feBlend"),w=D("feBlend"),f(n,"fill","#fff"),f(n,"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"),f(o,"stroke","#000"),f(o,"stroke-opacity",".12"),f(o,"stroke-width",".5"),f(o,"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"),f(t,"filter","url(#a)"),f(a,"flood-opacity","0"),f(a,"result","BackgroundImageFix"),f(s,"in","SourceAlpha"),f(s,"result","hardAlpha"),f(s,"values","0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0"),f(c,"stdDeviation","2.5"),f(m,"values","0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.16 0"),f(h,"in2","BackgroundImageFix"),f(h,"result","effect1_dropShadow_2340_106922"),f(w,"in","SourceGraphic"),f(w,"in2","effect1_dropShadow_2340_106922"),f(w,"result","shape"),f(l,"id","a"),f(l,"width","37"),f(l,"height","37"),f(l,"x","5.5"),f(l,"y","5.5"),f(l,"color-interpolation-filters","sRGB"),f(l,"filterUnits","userSpaceOnUse"),we(e,y)},m(b,P){S(b,e,P),v&&v.m(e,null),p(e,t),p(t,n),p(t,o),p(e,r),p(r,l),p(l,a),p(l,s),p(l,u),p(l,c),p(l,m),p(l,h),p(l,w),g=!0},p(b,[P]){v&&v.p&&(!g||P&2)&&Me(v,C,b,b[1],g?Ae(C,b[1],P,null):Ve(b[1]),null),we(e,y=Ne(E,[{xmlns:"http://www.w3.org/2000/svg"},{width:"48"},{height:"48"},{fill:"none"},{"aria-hidden":"true"},{"data-testid":"episodes-seek-icon"},{role:"img"},P&1&&b[0]]))},i(b){g||(d(v,b),g=!0)},o(b){_(v,b),g=!1},d(b){b&&k(e),v&&v.d(b)}}}function Z5(i,e,t){let{$$slots:n={},$$scope:o}=e;return i.$$set=r=>{t(0,e=ue(ue({},e),ye(r))),"$$scope"in r&&t(1,o=r.$$scope)},e=ye(e),[e,o,n]}var sf=class extends j{constructor(e){super(),G(this,e,Z5,Y5,W,{})}},P0=sf;function X5(i){let e,t;return e=new P0({props:{style:i[0]}}),{c(){q(e.$$.fragment)},m(n,o){V(e,n,o),t=!0},p(n,[o]){let r={};o&1&&(r.style=n[0]),e.$set(r)},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){_(e.$$.fragment,n),t=!1},d(n){R(e,n)}}}function J5(i,e,t){let n,{reversed:o=!1}=e;return i.$$set=r=>{"reversed"in r&&t(1,o=r.reversed)},i.$$.update=()=>{i.$$.dirty&2&&t(0,n=o?"transform: scaleX(-1);":void 0)},[n,o]}var af=class extends j{constructor(e){super(),G(this,e,J5,X5,W,{reversed:1})}},I0=af;function x5(i){Pe(i,"svelte-1ad3n06",`.hot-key-helpers-container.svelte-1ad3n06.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;animation:svelte-1ad3n06-fadeIn ease var(--controls-transition-duration);padding-top:14px;box-sizing:border-box}.hot-key-helpers-container.svelte-1ad3n06>div.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"],.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"],.hot-key-helpers-container.svelte-1ad3n06 svg[data-testid="play-icon"],.hot-key-helpers-container.svelte-1ad3n06 svg[data-testid="pause-icon"]{transform:scale(2.5)}.hot-key-helpers-container--left.svelte-1ad3n06.svelte-1ad3n06{left:calc(25% - 100px)}.hot-key-helpers-container--right.svelte-1ad3n06.svelte-1ad3n06{left:calc(75% - 100px)}.hot-key-helpers-text.svelte-1ad3n06.svelte-1ad3n06{text-align:center;font-feature-settings:'clig' off, 'liga' off;text-shadow:0px 0px 5px rgba(0, 0, 0, 0.16);font-size:15px;font-style:normal;font-weight:600;line-height:20px;letter-spacing:-0.105px;width:100%;max-height:40px;margin-top:4px;display:-webkit-box;text-overflow:ellipsis;white-space:pre-wrap;overflow:hidden;-webkit-line-clamp:2;-webkit-box-orient:vertical}.hidden.svelte-1ad3n06.svelte-1ad3n06{visibility:hidden;animation:svelte-1ad3n06-fadeOut ease var(--controls-transition-duration);width:0;height:0}@keyframes svelte-1ad3n06-fadeIn{0%{opacity:0}100%{opacity:1}}@keyframes svelte-1ad3n06-fadeOut{0%{opacity:1}100%{opacity:0}}`)}function E0(i){let e,t=["BACKWARD_SEEK","FORWARD_SEEK"].includes(i[4]),n,o,r,l,a,s,u=["RATE_DOWN","RATE_UP"].includes(i[4]),c,m=["EPISODE_PREV","EPISODE_NEXT"].includes(i[4]),h,w,g,C,v,E=t&&L0(i),y=i[4]==="PAUSE"&&A0(i),b=i[4]==="PLAY"&&M0(i),P=i[4]==="REPLAY"&&V0(i),A=i[4]==="SUBTITLES_OFF"&&R0(i),M=i[4]==="SUBTITLES_ON"&&B0(i),N=u&&q0(i),te=m&&D0(i),_e=i[4]==="MUTE"&&N0(i),X=i[4]==="VOLUME"&&O0(i),$=i[5]&&F0(i);return{c(){e=T("div"),E&&E.c(),n=B(),y&&y.c(),o=B(),b&&b.c(),r=B(),P&&P.c(),l=B(),A&&A.c(),a=B(),M&&M.c(),s=B(),N&&N.c(),c=B(),te&&te.c(),h=B(),_e&&_e.c(),w=B(),X&&X.c(),g=B(),$&&$.c(),C=mt(),f(e,"class","svelte-1ad3n06")},m(se,L){S(se,e,L),E&&E.m(e,null),p(e,n),y&&y.m(e,null),p(e,o),b&&b.m(e,null),p(e,r),P&&P.m(e,null),p(e,l),A&&A.m(e,null),p(e,a),M&&M.m(e,null),p(e,s),N&&N.m(e,null),p(e,c),te&&te.m(e,null),p(e,h),_e&&_e.m(e,null),p(e,w),X&&X.m(e,null),S(se,g,L),$&&$.m(se,L),S(se,C,L),v=!0},p(se,L){L&16&&(t=["BACKWARD_SEEK","FORWARD_SEEK"].includes(se[4])),t?E?(E.p(se,L),L&16&&d(E,1)):(E=L0(se),E.c(),d(E,1),E.m(e,n)):E&&(ce(),_(E,1,1,()=>{E=null}),de()),se[4]==="PAUSE"?y?L&16&&d(y,1):(y=A0(se),y.c(),d(y,1),y.m(e,o)):y&&(ce(),_(y,1,1,()=>{y=null}),de()),se[4]==="PLAY"?b?L&16&&d(b,1):(b=M0(se),b.c(),d(b,1),b.m(e,r)):b&&(ce(),_(b,1,1,()=>{b=null}),de()),se[4]==="REPLAY"?P?L&16&&d(P,1):(P=V0(se),P.c(),d(P,1),P.m(e,l)):P&&(ce(),_(P,1,1,()=>{P=null}),de()),se[4]==="SUBTITLES_OFF"?A?L&16&&d(A,1):(A=R0(se),A.c(),d(A,1),A.m(e,a)):A&&(ce(),_(A,1,1,()=>{A=null}),de()),se[4]==="SUBTITLES_ON"?M?L&16&&d(M,1):(M=B0(se),M.c(),d(M,1),M.m(e,s)):M&&(ce(),_(M,1,1,()=>{M=null}),de()),L&16&&(u=["RATE_DOWN","RATE_UP"].includes(se[4])),u?N?(N.p(se,L),L&16&&d(N,1)):(N=q0(se),N.c(),d(N,1),N.m(e,c)):N&&(ce(),_(N,1,1,()=>{N=null}),de()),L&16&&(m=["EPISODE_PREV","EPISODE_NEXT"].includes(se[4])),m?te?(te.p(se,L),L&16&&d(te,1)):(te=D0(se),te.c(),d(te,1),te.m(e,h)):te&&(ce(),_(te,1,1,()=>{te=null}),de()),se[4]==="MUTE"?_e?L&16&&d(_e,1):(_e=N0(se),_e.c(),d(_e,1),_e.m(e,w)):_e&&(ce(),_(_e,1,1,()=>{_e=null}),de()),se[4]==="VOLUME"?X?L&16&&d(X,1):(X=O0(se),X.c(),d(X,1),X.m(e,null)):X&&(ce(),_(X,1,1,()=>{X=null}),de()),se[5]?$?$.p(se,L):($=F0(se),$.c(),$.m(C.parentNode,C)):$&&($.d(1),$=null)},i(se){v||(d(E),d(y),d(b),d(P),d(A),d(M),d(N),d(te),d(_e),d(X),v=!0)},o(se){_(E),_(y),_(b),_(P),_(A),_(M),_(N),_(te),_(_e),_(X),v=!1},d(se){se&&(k(e),k(g),k(C)),E&&E.d(),y&&y.d(),b&&b.d(),P&&P.d(),A&&A.d(),M&&M.d(),N&&N.d(),te&&te.d(),_e&&_e.d(),X&&X.d(),$&&$.d(se)}}}function L0(i){let e,t;return e=new w0({props:{reversed:i[4]==="FORWARD_SEEK"}}),{c(){q(e.$$.fragment)},m(n,o){V(e,n,o),t=!0},p(n,o){let r={};o&16&&(r.reversed=n[4]==="FORWARD_SEEK"),e.$set(r)},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){_(e.$$.fragment,n),t=!1},d(n){R(e,n)}}}function A0(i){let e,t;return e=new Or({}),{c(){q(e.$$.fragment)},m(n,o){V(e,n,o),t=!0},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){_(e.$$.fragment,n),t=!1},d(n){R(e,n)}}}function M0(i){let e,t;return e=new yl({}),{c(){q(e.$$.fragment)},m(n,o){V(e,n,o),t=!0},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){_(e.$$.fragment,n),t=!1},d(n){R(e,n)}}}function V0(i){let e,t;return e=new Yr({}),{c(){q(e.$$.fragment)},m(n,o){V(e,n,o),t=!0},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){_(e.$$.fragment,n),t=!1},d(n){R(e,n)}}}function R0(i){let e,t;return e=new of({props:{isOff:!0}}),{c(){q(e.$$.fragment)},m(n,o){V(e,n,o),t=!0},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){_(e.$$.fragment,n),t=!1},d(n){R(e,n)}}}function B0(i){let e,t;return e=new of({}),{c(){q(e.$$.fragment)},m(n,o){V(e,n,o),t=!0},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){_(e.$$.fragment,n),t=!1},d(n){R(e,n)}}}function q0(i){let e,t;return e=new T0({props:{reversed:i[4]==="RATE_UP"}}),{c(){q(e.$$.fragment)},m(n,o){V(e,n,o),t=!0},p(n,o){let r={};o&16&&(r.reversed=n[4]==="RATE_UP"),e.$set(r)},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){_(e.$$.fragment,n),t=!1},d(n){R(e,n)}}}function D0(i){let e,t;return e=new I0({props:{reversed:i[4]==="EPISODE_NEXT"}}),{c(){q(e.$$.fragment)},m(n,o){V(e,n,o),t=!0},p(n,o){let r={};o&16&&(r.reversed=n[4]==="EPISODE_NEXT"),e.$set(r)},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){_(e.$$.fragment,n),t=!1},d(n){R(e,n)}}}function N0(i){let e,t;return e=new Qo({props:{volume:0}}),{c(){q(e.$$.fragment)},m(n,o){V(e,n,o),t=!0},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){_(e.$$.fragment,n),t=!1},d(n){R(e,n)}}}function O0(i){let e,t;return e=new Qo({props:{volume:1}}),{c(){q(e.$$.fragment)},m(n,o){V(e,n,o),t=!0},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){_(e.$$.fragment,n),t=!1},d(n){R(e,n)}}}function F0(i){let e,t;return{c(){e=T("span"),t=De(i[5]),f(e,"class","hot-key-helpers-text svelte-1ad3n06")},m(n,o){S(n,e,o),p(e,t)},p(n,o){o&32&&Qe(t,n[5])},d(n){n&&k(e)}}}function $5(i){let e,t,n=!i[1]&&i[4]&&E0(i);return{c(){e=T("div"),n&&n.c(),f(e,"class","hot-key-helpers-container svelte-1ad3n06"),O(e,"hidden",i[1]),O(e,"hot-key-helpers-container--left",i[2]),O(e,"hot-key-helpers-container--right",i[3])},m(o,r){S(o,e,r),n&&n.m(e,null),t=!0},p(o,[r]){!o[1]&&o[4]?n?(n.p(o,r),r&18&&d(n,1)):(n=E0(o),n.c(),d(n,1),n.m(e,null)):n&&(ce(),_(n,1,1,()=>{n=null}),de()),(!t||r&2)&&O(e,"hidden",o[1]),(!t||r&4)&&O(e,"hot-key-helpers-container--left",o[2]),(!t||r&8)&&O(e,"hot-key-helpers-container--right",o[3])},i(o){t||(d(n),t=!0)},o(o){_(n),t=!1},d(o){o&&k(e),n&&n.d()}}}function e6(i,e,t){let n,o=Ce,r=()=>(o(),o=Zt(l,h=>t(6,n=h)),l);i.$$.on_destroy.push(()=>o());let{data:l}=e;r();let a,s,u,c,m;return i.$$set=h=>{"data"in h&&r(t(0,l=h.data))},i.$$.update=()=>{i.$$.dirty&64&&(t(1,a=!n),t(2,s=(n==null?void 0:n.type)==="BACKWARD_SEEK"),t(3,u=(n==null?void 0:n.type)==="FORWARD_SEEK"),t(4,c=n==null?void 0:n.type),n!=null&&n.t?t(5,m=U(n.t.key,{value:n.t.value||""})):t(5,m=n==null?void 0:n.text))},[l,a,s,u,c,m,n]}var uf=class extends j{constructor(e){super(),G(this,e,e6,$5,W,{data:0},x5)}},z0=uf;function t6(i){Pe(i,"svelte-1yzc86r",".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 i6(i){let e,t,n,o,r,l,a,s,u,c,m,h,w,g,C,v,E,y,b;return r=new xn({props:{direction:"up"}}),s=new xn({props:{direction:"up"}}),h=new xn({props:{direction:"up"}}),C=new xn({props:{direction:"up"}}),{c(){e=T("div"),t=T("div"),n=T("div"),o=T("div"),q(r.$$.fragment),l=B(),a=T("div"),q(s.$$.fragment),u=B(),c=T("div"),m=T("div"),q(h.$$.fragment),w=B(),g=T("div"),q(C.$$.fragment),f(o,"class","button button-up svelte-1yzc86r"),f(a,"class","button button-right svelte-1yzc86r"),f(n,"class","button-row svelte-1yzc86r"),f(m,"class","button button-left svelte-1yzc86r"),f(g,"class","button button-down svelte-1yzc86r"),f(c,"class","button-row svelte-1yzc86r"),f(t,"class","button-block svelte-1yzc86r"),f(t,"aria-hidden","true"),f(e,"class","immersive-controls svelte-1yzc86r"),f(e,"tabindex","0"),f(e,"role","button"),f(e,"aria-label",v=U("aria_label_spherical_control")),O(e,"m-shifted",i[0])},m(P,A){S(P,e,A),p(e,t),p(t,n),p(n,o),V(r,o,null),p(n,l),p(n,a),V(s,a,null),p(t,u),p(t,c),p(c,m),V(h,m,null),p(c,w),p(c,g),V(C,g,null),E=!0,y||(b=[pe(o,"mousedown",i[1]),pe(o,"mouseup",i[5]),pe(o,"mouseleave",i[5]),pe(a,"mousedown",i[3]),pe(a,"mouseup",i[5]),pe(a,"mouseleave",i[5]),pe(m,"mousedown",i[4]),pe(m,"mouseup",i[5]),pe(m,"mouseleave",i[5]),pe(g,"mousedown",i[2]),pe(g,"mouseup",i[5]),pe(g,"mouseleave",i[5]),pe(e,"keydown",i[6]),pe(e,"keyup",i[7])],y=!0)},p(P,[A]){(!E||A&1)&&O(e,"m-shifted",P[0])},i(P){E||(d(r.$$.fragment,P),d(s.$$.fragment,P),d(h.$$.fragment,P),d(C.$$.fragment,P),E=!0)},o(P){_(r.$$.fragment,P),_(s.$$.fragment,P),_(h.$$.fragment,P),_(C.$$.fragment,P),E=!1},d(P){P&&k(e),R(r),R(s),R(h),R(C),y=!1,ot(b)}}}function n6(i,e,t){let{isShifted:n=!1}=e,o=rt(),r=new Set(["ArrowUp","ArrowDown","ArrowLeft","ArrowRight"]),l=()=>{o.actions.internal.startCameraManualRotation(0,1)},a=()=>{o.actions.internal.startCameraManualRotation(0,-1)},s=()=>{o.actions.internal.startCameraManualRotation(1,0)},u=()=>{o.actions.internal.startCameraManualRotation(-1,0)},c=()=>(o.actions.internal.stopCameraManualRotation(),null),m=w=>{if(r.has(w.code))switch(w.preventDefault(),w.stopPropagation(),w.code){case"ArrowUp":l();break;case"ArrowDown":a();break;case"ArrowLeft":u();break;case"ArrowRight":s();break}},h=w=>{r.has(w.code)&&(w.preventDefault(),w.stopPropagation(),c())};return i.$$set=w=>{"isShifted"in w&&t(0,n=w.isShifted)},[n,l,a,s,u,c,m,h]}var ff=class extends j{constructor(e){super(),G(this,e,n6,i6,W,{isShifted:0},t6)}},ss=ff;function o6(i){Pe(i,"svelte-ovfyp5",".subtitles-container.svelte-ovfyp5.svelte-ovfyp5{position:absolute;top:0;left:0;width:100%;height:100%;pointer-events:none;transition:transform var(--controls-transition-duration)}.subtitles-container.shifted.svelte-ovfyp5.svelte-ovfyp5{transform:translateY(calc(var(--controls-height) * -1))}.subtitles-caption.svelte-ovfyp5.svelte-ovfyp5{position:absolute;left:4%;right:4%;bottom:4%;display:flex;justify-content:center}.subtitles-caption.mobile.svelte-ovfyp5.svelte-ovfyp5{bottom:8%}.subtitles-container.auto.svelte-ovfyp5 .subtitles-caption.svelte-ovfyp5{left:24%;right:24%}.caption.svelte-ovfyp5.svelte-ovfyp5{display:block;overflow-wrap:normal;padding:4px 8px;border-radius:4px;background:rgba(0, 0, 0, 0.4)}.subtitles-container.auto.svelte-ovfyp5 .caption.svelte-ovfyp5{width:100%}.caption-line.svelte-ovfyp5.svelte-ovfyp5{display:block;text-align:center}.subtitles-container.auto.svelte-ovfyp5 .caption-line.svelte-ovfyp5{text-align:left}.caption-segment.svelte-ovfyp5.svelte-ovfyp5{display:inline-block;line-height:1.2;font-size:13px;color:var(--white);white-space:pre-wrap}")}function H0(i,e,t){let n=i.slice();return n[16]=e[t].value,n}function U0(i,e,t){let n=i.slice();return n[16]=e[t].value,n[17]=e[t].timeAppeared,n}function K0(i){let e,t;function n(l,a){return l[7]&&l[8]?s6:l[5]?r6:l6}let o=n(i,-1),r=o(i);return{c(){e=T("div"),t=T("span"),r.c(),f(t,"class","caption svelte-ovfyp5"),f(e,"class","subtitles-caption svelte-ovfyp5"),O(e,"mobile",i[3])},m(l,a){S(l,e,a),p(e,t),r.m(t,null)},p(l,a){o===(o=n(l,a))&&r?r.p(l,a):(r.d(1),r=o(l),r&&(r.c(),r.m(t,null))),a&8&&O(e,"mobile",l[3])},d(l){l&&k(e),r.d()}}}function l6(i){let e,t=Vt(i[1]),n=[];for(let o=0;o<t.length;o+=1)n[o]=W0(H0(i,t,o));return{c(){for(let o=0;o<n.length;o+=1)n[o].c();e=mt()},m(o,r){for(let l=0;l<n.length;l+=1)n[l]&&n[l].m(o,r);S(o,e,r)},p(o,r){if(r&18){t=Vt(o[1]);let l;for(l=0;l<t.length;l+=1){let a=H0(o,t,l);n[l]?n[l].p(a,r):(n[l]=W0(a),n[l].c(),n[l].m(e.parentNode,e))}for(;l<n.length;l+=1)n[l].d(1);n.length=t.length}},d(o){o&&k(e),qi(n,o)}}}function r6(i){let e,t,n=Vt(i[6]),o=[];for(let r=0;r<n.length;r+=1)o[r]=G0(U0(i,n,r));return{c(){e=T("span"),t=T("span");for(let r=0;r<o.length;r+=1)o[r].c();f(t,"class","caption-segment svelte-ovfyp5"),Ci(t,"font-size",i[4]+"px"),f(e,"class","caption-line svelte-ovfyp5")},m(r,l){S(r,e,l),p(e,t);for(let a=0;a<o.length;a+=1)o[a]&&o[a].m(t,null)},p(r,l){if(l&68){n=Vt(r[6]);let a;for(a=0;a<n.length;a+=1){let s=U0(r,n,a);o[a]?o[a].p(s,l):(o[a]=G0(s),o[a].c(),o[a].m(t,null))}for(;a<o.length;a+=1)o[a].d(1);o.length=n.length}l&16&&Ci(t,"font-size",r[4]+"px")},d(r){r&&k(e),qi(o,r)}}}function s6(i){let e,t,n=U("subtitles_auto_caption")+"",o;return{c(){e=T("span"),t=T("span"),o=De(n),f(t,"class","caption-segment svelte-ovfyp5"),Ci(t,"font-size",i[4]+"px"),f(e,"class","caption-line svelte-ovfyp5")},m(r,l){S(r,e,l),p(e,t),p(t,o)},p(r,l){l&16&&Ci(t,"font-size",r[4]+"px")},d(r){r&&k(e)}}}function W0(i){let e,t,n=i[16]+"",o,r;return{c(){e=T("span"),t=T("span"),o=De(n),r=B(),f(t,"class","caption-segment svelte-ovfyp5"),Ci(t,"font-size",i[4]+"px"),f(e,"class","caption-line svelte-ovfyp5")},m(l,a){S(l,e,a),p(e,t),p(t,o),p(e,r)},p(l,a){a&2&&n!==(n=l[16]+"")&&Qe(o,n),a&16&&Ci(t,"font-size",l[4]+"px")},d(l){l&&k(e)}}}function j0(i){let e=i[16]+"",t;return{c(){t=De(e)},m(n,o){S(n,t,o)},p(n,o){o&64&&e!==(e=n[16]+"")&&Qe(t,e)},d(n){n&&k(t)}}}function G0(i){let e,t=(!i[17]||i[17]<=i[2])&&j0(i);return{c(){t&&t.c(),e=mt()},m(n,o){t&&t.m(n,o),S(n,e,o)},p(n,o){!n[17]||n[17]<=n[2]?t?t.p(n,o):(t=j0(n),t.c(),t.m(e.parentNode,e)):t&&(t.d(1),t=null)},d(n){n&&k(e),t&&t.d(n)}}}function a6(i){let e,t=i[1].length>0&&K0(i);return{c(){e=T("div"),t&&t.c(),f(e,"class","subtitles-container svelte-ovfyp5"),O(e,"shifted",i[0]),O(e,"auto",i[5]&&!i[8])},m(n,o){S(n,e,o),t&&t.m(e,null)},p(n,[o]){n[1].length>0?t?t.p(n,o):(t=K0(n),t.c(),t.m(e,null)):t&&(t.d(1),t=null),o&1&&O(e,"shifted",n[0]),o&288&&O(e,"auto",n[5]&&!n[8])},i:Ce,o:Ce,d(n){n&&k(e),t&&t.d()}}}function u6(i,e,t){let n,o,{shifted:r}=e,{captions:l}=e,{position:a}=e,{playerSize:s}=e,{isMobile:u=!1}=e,c=rt(),m=Wt(),h=c.state.currentSubtitle$;H(i,h,b=>t(12,n=b));let w=c.state.isAutoSubtitleCaptionVisible$;H(i,w,b=>t(8,o=b));let g,C,v,E,y;return Nt(()=>{y=window.setTimeout(()=>{w.set(!1)},m.autoSubtitlesTimeout)}),Zn(()=>{window.clearTimeout(y)}),i.$$set=b=>{"shifted"in b&&t(0,r=b.shifted),"captions"in b&&t(1,l=b.captions),"position"in b&&t(2,a=b.position),"playerSize"in b&&t(11,s=b.playerSize),"isMobile"in b&&t(3,u=b.isMobile)},i.$$.update=()=>{if(i.$$.dirty&2048){let b=s.width*.02;t(4,g=b<=m.minSubtitlesFontSize?m.minSubtitlesFontSize:b)}i.$$.dirty&2&&t(5,C=l.some(b=>b.type==="timestamp")),i.$$.dirty&2&&t(6,v=l.reduce((b,{type:P,value:A})=>(P==="timestamp"?b.push({timeAppeared:Number(A),value:""}):b.length===0?b.push({value:String(A)}):b[b.length-1].value=String(A),b),[])),i.$$.dirty&4096&&t(7,E=!!n.isAuto)},[r,l,a,u,g,C,v,E,o,h,w,s,n]}var cf=class extends j{constructor(e){super(),G(this,e,u6,a6,W,{shifted:0,captions:1,position:2,playerSize:11,isMobile:3},o6)}},as=cf;function f6(i){Pe(i,"svelte-1o62kpz",".wrapper.svelte-1o62kpz{height:100%;background-position:center;background-size:cover;display:flex;align-items:center;justify-content:center;font-size:16px;flex-direction:column}.icon_wrapper.svelte-1o62kpz{display:flex;flex-direction:column;align-items:center;width:400px}.icon.svelte-1o62kpz{width:50px;height:50px}.text.svelte-1o62kpz{margin-top:20px}")}function Q0(i){let e,t,n;return{c(){e=T("div"),t=De("\u0412\u0438\u0434\u0435\u043E \u0432\u043E\u0441\u043F\u0440\u043E\u0438\u0437\u0432\u043E\u0434\u0438\u0442\u0441\u044F \u043D\u0430 "),n=De(i[1]),f(e,"class","text svelte-1o62kpz")},m(o,r){S(o,e,r),p(e,t),p(e,n)},p(o,r){r&2&&Qe(n,o[1])},d(o){o&&k(e)}}}function c6(i){let e,t,n,o,r,l,a=i[1]&&Q0(i);return{c(){e=T("div"),t=T("div"),t.innerHTML='<svg class="icon svelte-1o62kpz" 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="#fff"></path><path d="M0 0h24v24H0z"></path></g></svg>',n=B(),a&&a.c(),f(t,"class","icon_wrapper svelte-1o62kpz"),f(e,"class","wrapper svelte-1o62kpz"),f(e,"style",o=`background-image: linear-gradient(0deg, rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)), url('${i[0]||""}')`)},m(s,u){S(s,e,u),p(e,t),p(e,n),a&&a.m(e,null),r||(l=pe(e,"click",i[2]),r=!0)},p(s,[u]){s[1]?a?a.p(s,u):(a=Q0(s),a.c(),a.m(e,null)):a&&(a.d(1),a=null),u&1&&o!==(o=`background-image: linear-gradient(0deg, rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)), url('${s[0]||""}')`)&&f(e,"style",o)},i:Ce,o:Ce,d(s){s&&k(e),a&&a.d(),r=!1,l()}}}function d6(i,e,t){let{thumbUrl:n}=e,{chromecastDeviceName:o}=e;function r(l){Rn.call(this,i,l)}return i.$$set=l=>{"thumbUrl"in l&&t(0,n=l.thumbUrl),"chromecastDeviceName"in l&&t(1,o=l.chromecastDeviceName)},[n,o,r]}var df=class extends j{constructor(e){super(),G(this,e,d6,c6,W,{thumbUrl:0,chromecastDeviceName:1},f6)}},us=df;function m6(i){let e,t,n,o=i[2].default,r=Le(o,i,i[1],null),l=[{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[0]],a={};for(let s=0;s<l.length;s+=1)a=ue(a,l[s]);return{c(){e=D("svg"),r&&r.c(),t=D("path"),f(t,"fill","#fff"),f(t,"fill-rule","evenodd"),f(t,"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"),we(e,a)},m(s,u){S(s,e,u),r&&r.m(e,null),p(e,t),n=!0},p(s,[u]){r&&r.p&&(!n||u&2)&&Me(r,o,s,s[1],n?Ae(o,s[1],u,null):Ve(s[1]),null),we(e,a=Ne(l,[{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"},u&1&&s[0]]))},i(s){n||(d(r,s),n=!0)},o(s){_(r,s),n=!1},d(s){s&&k(e),r&&r.d(s)}}}function p6(i,e,t){let{$$slots:n={},$$scope:o}=e;return i.$$set=r=>{t(0,e=ue(ue({},e),ye(r))),"$$scope"in r&&t(1,o=r.$$scope)},e=ye(e),[e,o,n]}var mf=class extends j{constructor(e){super(),G(this,e,p6,m6,W,{})}},Y0=mf;function _6(i){Pe(i,"svelte-13zpvm8",".container.svelte-13zpvm8{position:absolute;top:0;bottom:0;left:0;right:0;background:#000;display:flex;align-items:center;justify-content:center}")}function h6(i){let e,t,n;return t=new Y0({}),{c(){e=T("div"),q(t.$$.fragment),f(e,"class","container svelte-13zpvm8")},m(o,r){S(o,e,r),V(t,e,null),n=!0},p:Ce,i(o){n||(d(t.$$.fragment,o),n=!0)},o(o){_(t.$$.fragment,o),n=!1},d(o){o&&k(e),R(t)}}}var pf=class extends j{constructor(e){super(),G(this,e,null,h6,W,{},_6)}},fs=pf;function g6(i){Pe(i,"svelte-17wno3",".container.svelte-17wno3.svelte-17wno3{position:absolute;top:0;bottom:0;left:0;right:0;background-position:center;background-size:cover;cursor:pointer;transition:opacity 0.2s, visibility 0.2s;will-change:opacity}.container.hidden.svelte-17wno3.svelte-17wno3{opacity:0;visibility:hidden}.playButton.svelte-17wno3.svelte-17wno3{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-17wno3.svelte-17wno3{position:absolute;top:0;bottom:0;left:0;right:0;border-radius:var(--big-play-radius);background-color:var(--big-play-bg-color);transition:background 0.2s, transform 0.2s;transition-timing-function:ease-out;will-change:background, transform}.container.svelte-17wno3:hover .playButtonBackground.svelte-17wno3{background-color:var(--big-play-hover-bg-color);transform:scale(1.15)}.playButton.svelte-17wno3 svg{transform:scale(2)}")}function b6(i){let e,t,n,o,r,l,a,s,u,c;return r=new yl({}),{c(){e=T("div"),t=T("div"),n=T("div"),o=B(),q(r.$$.fragment),f(n,"class","playButtonBackground svelte-17wno3"),f(t,"class","playButton svelte-17wno3"),f(t,"tabindex","0"),f(t,"role","button"),f(t,"aria-label",l=U("tooltip_play")),f(e,"class","container svelte-17wno3"),f(e,"style",a=`background-color: #222; background-image: url('${i[0]||""}')`),O(e,"hidden",i[1])},m(m,h){S(m,e,h),p(e,t),p(t,n),p(t,o),V(r,t,null),s=!0,u||(c=[pe(t,"keydown",i[3]),pe(e,"click",at(function(){Bi(i[2])&&i[2].apply(this,arguments)}))],u=!0)},p(m,[h]){i=m,(!s||h&1&&a!==(a=`background-color: #222; background-image: url('${i[0]||""}')`))&&f(e,"style",a),(!s||h&2)&&O(e,"hidden",i[1])},i(m){s||(d(r.$$.fragment,m),s=!0)},o(m){_(r.$$.fragment,m),s=!1},d(m){m&&k(e),R(r),u=!1,ot(c)}}}function v6(i,e,t){let{thumbUrl:n}=e,{hidden:o}=e,{startVideo:r}=e,a=rt().ui.startedByKeyboard$,s=u=>{let c=u.code;["Enter","Space"].includes(c)&&(u.stopPropagation(),u.preventDefault(),a.set(!0),r())};return i.$$set=u=>{"thumbUrl"in u&&t(0,n=u.thumbUrl),"hidden"in u&&t(1,o=u.hidden),"startVideo"in u&&t(2,r=u.startVideo)},[n,o,r,s]}var _f=class extends j{constructor(e){super(),G(this,e,v6,b6,W,{thumbUrl:0,hidden:1,startVideo:2,handlePressKey:3},g6)}get handlePressKey(){return this.$$.ctx[3]}},cs=_f;function y6(i){Pe(i,"svelte-1bcvcf2",`.title.svelte-1bcvcf2{position:absolute;pointer-events:none;left:0;top:0;width:100%;height:var(--controls-gradient-height);font-size:15px;color:var(--white);box-sizing:border-box;padding:18px 20px 10px;overflow:hidden;white-space:nowrap;text-overflow:ellipsis;transition-property:visibility, transform, opacity;transition-duration:var(--controls-transition-duration);transition-timing-function:var(--controls-transition-fn);will-change:transform, opacity;background:linear-gradient(
|
|
28
28
|
0deg,
|
|
29
29
|
rgba(0, 0, 0, 0) 0%,
|
|
30
30
|
rgba(0, 0, 0, 0.02) 19%,
|
|
31
31
|
rgba(0, 0, 0, 0.10) 34%,
|
|
32
32
|
rgba(0, 0, 0, 0.40) 60%,
|
|
33
33
|
rgba(0, 0, 0, 0.60) 100%
|
|
34
|
-
)}.hidden.svelte-1bcvcf2{visibility:hidden;transform:translateY(calc(var(--controls-gradient-height) * -1));opacity:0}`)}function v6(i){let e,t;return{c(){e=T("div"),t=qe(i[0]),f(e,"class","title svelte-1bcvcf2"),N(e,"hidden",i[1])},m(n,o){S(n,e,o),p(e,t)},p(n,[o]){o&1&&Ye(t,n[0]),o&2&&N(e,"hidden",n[1])},i:Se,o:Se,d(n){n&&k(e)}}}function y6(i,e,t){let{title:n=""}=e,{isHidden:o=!1}=e;return i.$$set=r=>{"title"in r&&t(0,n=r.title),"isHidden"in r&&t(1,o=r.isHidden)},[n,o]}var uf=class extends W{constructor(e){super(),G(this,e,y6,v6,K,{title:0,isHidden:1},b6)}},K0=uf;function w6(i){Ie(i,"svelte-1qpxtfg",".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 j0(i){let e,t,n,o,r,l,a;return{c(){e=T("div"),t=T("span"),n=qe(i[0]),o=R(),r=T("span"),r.textContent=`${U("waiting_live_day_value")}`,l=R(),a=T("span"),a.textContent=`${U("waiting_live_colon")}`,f(t,"class","cell__value svelte-1qpxtfg"),f(r,"class","cell__unit svelte-1qpxtfg"),f(e,"class","timer__cell cell svelte-1qpxtfg"),f(a,"class","timer__points svelte-1qpxtfg")},m(s,u){S(s,e,u),p(e,t),p(t,n),p(e,o),p(e,r),S(s,l,u),S(s,a,u)},p(s,u){u&1&&Ye(n,s[0])},d(s){s&&(k(e),k(l),k(a))}}}function W0(i){let e,t,n,o,r,l,a;return{c(){e=T("div"),t=T("span"),n=qe(i[1]),o=R(),r=T("span"),r.textContent=`${U("waiting_live_hour_value")}`,l=R(),a=T("span"),a.textContent=`${U("waiting_live_colon")}`,f(t,"class","cell__value svelte-1qpxtfg"),f(r,"class","cell__unit svelte-1qpxtfg"),f(e,"class","timer__cell cell svelte-1qpxtfg"),f(a,"class","timer__points svelte-1qpxtfg")},m(s,u){S(s,e,u),p(e,t),p(t,n),p(e,o),p(e,r),S(s,l,u),S(s,a,u)},p(s,u){u&2&&Ye(n,s[1])},d(s){s&&(k(e),k(l),k(a))}}}function G0(i){let e,t,n,o,r,l,a;return{c(){e=T("div"),t=T("span"),n=qe(i[2]),o=R(),r=T("span"),r.textContent=`${U("waiting_live_minute_value")}`,l=R(),a=T("span"),a.textContent=`${U("waiting_live_colon")}`,f(t,"class","cell__value svelte-1qpxtfg"),f(r,"class","cell__unit svelte-1qpxtfg"),f(e,"class","timer__cell cell svelte-1qpxtfg"),f(a,"class","timer__points svelte-1qpxtfg")},m(s,u){S(s,e,u),p(e,t),p(t,n),p(e,o),p(e,r),S(s,l,u),S(s,a,u)},p(s,u){u&4&&Ye(n,s[2])},d(s){s&&(k(e),k(l),k(a))}}}function Q0(i){let e,t,n,o,r;return{c(){e=T("div"),t=T("span"),n=qe(i[3]),o=R(),r=T("span"),r.textContent=`${U("waiting_live_second_value")}`,f(t,"class","cell__value svelte-1qpxtfg"),f(r,"class","cell__unit svelte-1qpxtfg"),f(e,"class","timer__cell cell svelte-1qpxtfg")},m(l,a){S(l,e,a),p(e,t),p(t,n),p(e,o),p(e,r)},p(l,a){a&8&&Ye(n,l[3])},d(l){l&&k(e)}}}function k6(i){let e,t,n,o,r=i[0]&&j0(i),l=i[1]&&W0(i),a=i[2]&&G0(i),s=i[3]&&Q0(i);return{c(){e=T("div"),r&&r.c(),t=R(),l&&l.c(),n=R(),a&&a.c(),o=R(),s&&s.c(),f(e,"class","timer__container svelte-1qpxtfg")},m(u,c){S(u,e,c),r&&r.m(e,null),p(e,t),l&&l.m(e,null),p(e,n),a&&a.m(e,null),p(e,o),s&&s.m(e,null)},p(u,[c]){u[0]?r?r.p(u,c):(r=j0(u),r.c(),r.m(e,t)):r&&(r.d(1),r=null),u[1]?l?l.p(u,c):(l=W0(u),l.c(),l.m(e,n)):l&&(l.d(1),l=null),u[2]?a?a.p(u,c):(a=G0(u),a.c(),a.m(e,o)):a&&(a.d(1),a=null),u[3]?s?s.p(u,c):(s=Q0(u),s.c(),s.m(e,null)):s&&(s.d(1),s=null)},i:Se,o:Se,d(u){u&&k(e),r&&r.d(),l&&l.d(),a&&a.d(),s&&s.d()}}}function C6(i,e,t){let{startTime:n}=e,{onTimerOver:o}=e,r,l,a,s,u,c=w=>String(w).padStart(2,"0"),m=w=>{let b=Math.floor(w/86400);b&&(w-=b*86400,t(0,r=c(b)));let C=Math.floor(w/3600);t(1,l=c(C));let v=Math.floor(w/60)%60;t(2,a=c(v));let I=w%60;t(3,s=c(I))},h=()=>{let w=Math.floor(Date.now()/1e3),b=n-w;m(b),b>=1?u=requestAnimationFrame(h):o()};return Ot(()=>{u=requestAnimationFrame(h)}),jn(()=>{cancelAnimationFrame(u)}),i.$$set=w=>{"startTime"in w&&t(4,n=w.startTime),"onTimerOver"in w&&t(5,o=w.onTimerOver)},[r,l,a,s,n,o]}var ff=class extends W{constructor(e){super(),G(this,e,C6,k6,K,{startTime:4,onTimerOver:5},w6)}},Y0=ff;function S6(i){let e,t,n,o,r,l,a=i[2].default,s=Le(a,i,i[1],null),u=[{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[0]],c={};for(let m=0;m<u.length;m+=1)c=ue(c,u[m]);return{c(){e=D("svg"),s&&s.c(),t=D("path"),n=D("path"),o=D("path"),r=D("path"),f(t,"fill","#fefffe"),f(t,"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"),ki(t,"opacity",".965"),f(n,"fill","#fefffe"),f(n,"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"),ki(n,"opacity",".965"),f(o,"fill","#fefffe"),f(o,"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"),ki(o,"opacity",".985"),f(r,"fill","#fefffe"),f(r,"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"),ki(r,"opacity",".986"),we(e,c)},m(m,h){S(m,e,h),s&&s.m(e,null),p(e,t),p(e,n),p(e,o),p(e,r),l=!0},p(m,[h]){s&&s.p&&(!l||h&2)&&Ve(s,a,m,m[1],l?Me(a,m[1],h,null):Re(m[1]),null),we(e,c=Oe(u,[{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"},h&1&&m[0]]))},i(m){l||(d(s,m),l=!0)},o(m){_(s,m),l=!1},d(m){m&&k(e),s&&s.d(m)}}}function T6(i,e,t){let{$$slots:n={},$$scope:o}=e;return i.$$set=r=>{t(0,e=ue(ue({},e),ye(r))),"$$scope"in r&&t(1,o=r.$$scope)},e=ye(e),[e,o,n]}var cf=class extends W{constructor(e){super(),G(this,e,T6,S6,K,{})}},Z0=cf;function P6(i){Ie(i,"svelte-15pewff",".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 I6(i){let e,t,n,o,r;return o=new Y0({props:{startTime:i[1]||0,onTimerOver:i[3]}}),{c(){e=T("div"),t=T("span"),t.textContent=`${U("waiting_live_timer_title")}`,n=R(),V(o.$$.fragment),f(t,"class","timer__title svelte-15pewff"),f(e,"class","waiting-timer timer svelte-15pewff")},m(l,a){S(l,e,a),p(e,t),p(e,n),A(o,e,null),r=!0},p(l,a){let s={};a&2&&(s.startTime=l[1]||0),a&4&&(s.onTimerOver=l[3]),o.$set(s)},i(l){r||(d(o.$$.fragment,l),r=!0)},o(l){_(o.$$.fragment,l),r=!1},d(l){l&&k(e),L(o)}}}function E6(i){let e,t,n,o,r,l;return n=new Z0({}),{c(){e=T("div"),t=T("div"),V(n.$$.fragment),o=R(),r=T("span"),r.textContent=`${U("waiting_live_upcoming_title")}`,f(t,"class","upcoming-icon svelte-15pewff"),f(r,"class","upcoming__title svelte-15pewff"),f(e,"class","upcoming svelte-15pewff")},m(a,s){S(a,e,s),p(e,t),A(n,t,null),p(e,o),p(e,r),l=!0},p:Se,i(a){l||(d(n.$$.fragment,a),l=!0)},o(a){_(n.$$.fragment,a),l=!1},d(a){a&&k(e),L(n)}}}function A6(i){let e,t,n,o,r,l=[E6,I6],a=[];function s(u,c){return u[2]?0:1}return t=s(i,-1),n=a[t]=l[t](i),{c(){e=T("div"),n.c(),f(e,"class","waiting-container svelte-15pewff"),f(e,"style",o=`background-image: url(${i[2]?"":i[0]})`)},m(u,c){S(u,e,c),a[t].m(e,null),r=!0},p(u,[c]){let m=t;t=s(u,c),t===m?a[t].p(u,c):(ce(),_(a[m],1,1,()=>{a[m]=null}),de(),n=a[t],n?n.p(u,c):(n=a[t]=l[t](u),n.c()),d(n,1),n.m(e,null)),(!r||c&5&&o!==(o=`background-image: url(${u[2]?"":u[0]})`))&&f(e,"style",o)},i(u){r||(d(n),r=!0)},o(u){_(n),r=!1},d(u){u&&k(e),a[t].d()}}}function L6(i,e,t){let n,{thumbUrl:o}=e,{startTime:r}=e,l=()=>t(2,n=!0);return i.$$set=a=>{"thumbUrl"in a&&t(0,o=a.thumbUrl),"startTime"in a&&t(1,r=a.startTime)},i.$$.update=()=>{i.$$.dirty&2&&t(2,n=r===void 0||r<Math.floor(Date.now()/1e3))},[o,r,n,l]}var df=class extends W{constructor(e){super(),G(this,e,L6,A6,K,{thumbUrl:0,startTime:1},P6)}},as=df;function M6(i){Ie(i,"svelte-xvqwsa",".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 V6(i){let e,t,n,o,r,l,a,s;return n=new hl({props:{style:"position: static; transform: translate(0, 0)"}}),{c(){e=T("div"),t=T("div"),V(n.$$.fragment),o=R(),r=T("p"),l=qe(i[1]),f(r,"class","waiting-title svelte-xvqwsa"),f(t,"class","waiting-caption svelte-xvqwsa"),f(e,"class","waiting-container svelte-xvqwsa"),f(e,"style",a=`background-image: url('${i[0]}')`)},m(u,c){S(u,e,c),p(e,t),A(n,t,null),p(t,o),p(t,r),p(r,l),s=!0},p(u,[c]){(!s||c&2)&&Ye(l,u[1]),(!s||c&1&&a!==(a=`background-image: url('${u[0]}')`))&&f(e,"style",a)},i(u){s||(d(n.$$.fragment,u),s=!0)},o(u){_(n.$$.fragment,u),s=!1},d(u){u&&k(e),L(n)}}}function R6(i,e,t){let{thumbUrl:n=""}=e,{kind:o}=e,r;return i.$$set=l=>{"thumbUrl"in l&&t(0,n=l.thumbUrl),"kind"in l&&t(2,o=l.kind)},i.$$.update=()=>{if(i.$$.dirty&4){let l={recover:U("waiting_live_recover_title"),record:U("waiting_record_title")};t(1,r=l[o]||"")}},[n,r,o]}var mf=class extends W{constructor(e){super(),G(this,e,R6,V6,K,{thumbUrl:0,kind:2},M6)}},wl=mf;var{window:B6}=Ao;function N6(i){Ie(i,"svelte-1o4wf3x",".player-wrapper.svelte-1o4wf3x{position:absolute;width:100%;height:100%}.player-wrapper.svelte-1o4wf3x .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-1o4wf3x{display:inline-block;position:absolute;top:calc(50% - 23px);left:calc(50% - 38px)}.video-wrapper.svelte-1o4wf3x,.video-container.svelte-1o4wf3x,.ads-container.svelte-1o4wf3x{position:absolute;width:100%;height:100%;left:0;top:0}.video-wrapper.svelte-1o4wf3x{z-index:var(--video-container-z-index);background:var(--black)}.video-container.svelte-1o4wf3x{z-index:var(--video-container-z-index);transition:var(--rotate-transition-duration) ease all}.video-container.fast-rotate.svelte-1o4wf3x{transition:none}.nocursor.svelte-1o4wf3x{cursor:none}.ads-container.svelte-1o4wf3x{background:var(--black)}")}function J0(i){var n;let e,t;return e=new as({props:{thumbUrl:i[3],startTime:(n=i[4])==null?void 0:n.startTime}}),{c(){V(e.$$.fragment)},m(o,r){A(e,o,r),t=!0},p(o,r){var a;let l={};r[0]&8&&(l.thumbUrl=o[3]),r[0]&16&&(l.startTime=(a=o[4])==null?void 0:a.startTime),e.$set(l)},i(o){t||(d(e.$$.fragment,o),t=!0)},o(o){_(e.$$.fragment,o),t=!1},d(o){L(e,o)}}}function x0(i){let e,t;return e=new wl({props:{kind:"recover",thumbUrl:i[3]}}),{c(){V(e.$$.fragment)},m(n,o){A(e,n,o),t=!0},p(n,o){let r={};o[0]&8&&(r.thumbUrl=n[3]),e.$set(r)},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){_(e.$$.fragment,n),t=!1},d(n){L(e,n)}}}function $0(i){let e,t;return e=new wl({props:{kind:"record",thumbUrl:i[3]}}),{c(){V(e.$$.fragment)},m(n,o){A(e,n,o),t=!0},p(n,o){let r={};o[0]&8&&(r.thumbUrl=n[3]),e.$set(r)},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){_(e.$$.fragment,n),t=!1},d(n){L(e,n)}}}function ep(i){let e,t,n;return t=new pr({props:{adsSlotId:i[8],adsParams:i[9],adsPreviewParam:i[10],duration:i[11]}}),{c(){e=T("div"),V(t.$$.fragment),f(e,"class","ads-container svelte-1o4wf3x"),N(e,"hidden",i[38]!=="ads")},m(o,r){S(o,e,r),A(t,e,null),n=!0},p(o,r){let l={};r[0]&256&&(l.adsSlotId=o[8]),r[0]&512&&(l.adsParams=o[9]),r[0]&1024&&(l.adsPreviewParam=o[10]),r[0]&2048&&(l.duration=o[11]),t.$set(l),(!n||r[1]&128)&&N(e,"hidden",o[38]!=="ads")},i(o){n||(d(t.$$.fragment,o),n=!0)},o(o){_(t.$$.fragment,o),n=!1},d(o){o&&k(e),L(t)}}}function tp(i){let e,t;return e=new Sd({props:{title:i[18],thumb:i[19],playNextVideo:i[23]}}),{c(){V(e.$$.fragment)},m(n,o){A(e,n,o),t=!0},p(n,o){let r={};o[0]&262144&&(r.title=n[18]),o[0]&524288&&(r.thumb=n[19]),o[0]&8388608&&(r.playNextVideo=n[23]),e.$set(r)},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){_(e.$$.fragment,n),t=!1},d(n){L(e,n)}}}function ip(i){let e,t;return e=new K0({props:{title:i[2],isHidden:!i[36]}}),{c(){V(e.$$.fragment)},m(n,o){A(e,n,o),t=!0},p(n,o){let r={};o[0]&4&&(r.title=n[2]),o[1]&32&&(r.isHidden=!n[36]),e.$set(r)},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){_(e.$$.fragment,n),t=!1},d(n){L(e,n)}}}function np(i){let e,t;return e=new ns({props:{isShifted:i[38]==="video"&&i[36]}}),{c(){V(e.$$.fragment)},m(n,o){A(e,n,o),t=!0},p(n,o){let r={};o[1]&160&&(r.isShifted=n[38]==="video"&&n[36]),e.$set(r)},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){_(e.$$.fragment,n),t=!1},d(n){L(e,n)}}}function op(i){let e,t,n;return t=new or({props:{"aria-label":U("video360")}}),{c(){e=T("div"),V(t.$$.fragment),f(e,"class","spherical-video-icon svelte-1o4wf3x")},m(o,r){S(o,e,r),A(t,e,null),n=!0},i(o){n||(d(t.$$.fragment,o),n=!0)},o(o){_(t.$$.fragment,o),n=!1},d(o){o&&k(e),L(t)}}}function lp(i){let e,t;return e=new ls({props:{thumbUrl:i[3],chromecastDeviceName:i[54]}}),{c(){V(e.$$.fragment)},m(n,o){A(e,n,o),t=!0},p(n,o){let r={};o[0]&8&&(r.thumbUrl=n[3]),o[1]&8388608&&(r.chromecastDeviceName=n[54]),e.$set(r)},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){_(e.$$.fragment,n),t=!1},d(n){L(e,n)}}}function rp(i){let e,t;return e=new os({props:{shifted:i[36],captions:i[56],position:i[57],playerSize:i[34]}}),{c(){V(e.$$.fragment)},m(n,o){A(e,n,o),t=!0},p(n,o){let r={};o[1]&32&&(r.shifted=n[36]),o[1]&33554432&&(r.captions=n[56]),o[1]&67108864&&(r.position=n[57]),o[1]&8&&(r.playerSize=n[34]),e.$set(r)},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){_(e.$$.fragment,n),t=!1},d(n){L(e,n)}}}function sp(i){let e,t,n,o,r;return t=new rs({}),{c(){e=T("div"),V(t.$$.fragment)},m(l,a){S(l,e,a),A(t,e,null),n=!0,o||(r=[he(e,"contextmenu",qt(i[108])),he(e,"click",at(i[119]))],o=!0)},p:Se,i(l){n||(d(t.$$.fragment,l),n=!0)},o(l){_(t.$$.fragment,l),n=!1},d(l){l&&k(e),L(t),o=!1,lt(r)}}}function ap(i){let e,t,n;function o(l){i[157](l)}let r={bottomHidden:i[38]==="thumb"||i[38]==="LiveWaitingStart"||i[38]==="LiveWaitingRecover"||i[38]==="LiveWaitingRecord",bottomNoSmooth:i[50],showControls:i[36],isAds:i[38]==="ads",canRewindLive:i[6]&&i[58]!==0,logoClickable:i[12],logoHidden:i[13],logoTargetUrl:i[14],showNextPrevButtons:i[15],nextButtonActive:i[16],prevButtonActive:i[17],isOneVideoPlaylist:i[20],supportLink:i[21],customFullscreenSupported:mp,playNextVideo:i[23],playPrevVideo:i[24],repeatPlaylist:i[25],toggleFullscreen:i[106],returnFocus:i[156],seekToInteractive:i[26],toggleGraph:i[27],playPrevChapter:i[28]};return i[41]!==void 0&&(r.controlsElementRef=i[41]),e=new is({props:r}),ge.push(()=>ze(e,"controlsElementRef",o)),{c(){V(e.$$.fragment)},m(l,a){A(e,l,a),n=!0},p(l,a){let s={};a[1]&128&&(s.bottomHidden=l[38]==="thumb"||l[38]==="LiveWaitingStart"||l[38]==="LiveWaitingRecover"||l[38]==="LiveWaitingRecord"),a[1]&524288&&(s.bottomNoSmooth=l[50]),a[1]&32&&(s.showControls=l[36]),a[1]&128&&(s.isAds=l[38]==="ads"),a[0]&64|a[1]&134217728&&(s.canRewindLive=l[6]&&l[58]!==0),a[0]&4096&&(s.logoClickable=l[12]),a[0]&8192&&(s.logoHidden=l[13]),a[0]&16384&&(s.logoTargetUrl=l[14]),a[0]&32768&&(s.showNextPrevButtons=l[15]),a[0]&65536&&(s.nextButtonActive=l[16]),a[0]&131072&&(s.prevButtonActive=l[17]),a[0]&1048576&&(s.isOneVideoPlaylist=l[20]),a[0]&2097152&&(s.supportLink=l[21]),a[0]&8388608&&(s.playNextVideo=l[23]),a[0]&16777216&&(s.playPrevVideo=l[24]),a[0]&33554432&&(s.repeatPlaylist=l[25]),a[1]&131072&&(s.returnFocus=l[156]),a[0]&67108864&&(s.seekToInteractive=l[26]),a[0]&134217728&&(s.toggleGraph=l[27]),a[0]&268435456&&(s.playPrevChapter=l[28]),!t&&a[1]&1024&&(t=!0,s.controlsElementRef=l[41],He(()=>t=!1)),e.$set(s)},i(l){n||(d(e.$$.fragment,l),n=!0)},o(l){_(e.$$.fragment,l),n=!1},d(l){L(e,l)}}}function up(i){let e,t;return e=new hl({}),{c(){V(e.$$.fragment)},m(n,o){A(e,n,o),t=!0},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){_(e.$$.fragment,n),t=!1},d(n){L(e,n)}}}function fp(i){let e,t;return e=new Bd({}),{c(){V(e.$$.fragment)},m(n,o){A(e,n,o),t=!0},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){_(e.$$.fragment,n),t=!1},d(n){L(e,n)}}}function cp(i){let e,t;return e=new wr({}),{c(){V(e.$$.fragment)},m(n,o){A(e,n,o),t=!0},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){_(e.$$.fragment,n),t=!1},d(n){L(e,n)}}}function dp(i){let e,t,n,o,r,l,a,s,u,c,m,h,w,b,C,v,I,y,g,P,B,M,q,te,pe;e=new ss({props:{hidden:i[38]!=="thumb"||i[37]||i[92]&&i[5],thumbUrl:i[3],startVideo:i[29]}});let Z=i[38]==="LiveWaitingStart"&&J0(i),x=i[38]==="LiveWaitingRecover"&&x0(i),oe=i[38]==="LiveWaitingRecord"&&$0(i),H=i[7]&&i[22]&&ep(i),j=i[31]&&i[18]&&i[19]&&tp(i),J=i[44]&&ip(i),F=i[49]&&np(i),O=i[53]&&op(i),Q=i[39]&&lp(i),X=i[55].value!=="off"&&rp(i),le=i[37]&&sp(i),De=i[22]&&ap(i);C=new hr({props:{isLive:i[59],isHidden:!i[43],isPlaying:i[51],position:i[57],duration:i[60]}}),I=new B0({props:{data:i[103]}});function $e(se){i[159](se)}let Ee={supportLink:i[21],returnFocus:i[158],visible:i[33],playerContainerRef:i[40],controlsContainerRef:i[41],position:i[61]};i[32]!==void 0&&(Ee.menuElementRef=i[32]),g=new od({props:Ee}),ge.push(()=>ze(g,"menuElementRef",$e));let Be=i[42]&&up(i),Ne=i[62]&&fp(i),Je=i[63]&&cp(i);return{c(){V(e.$$.fragment),t=R(),Z&&Z.c(),n=R(),x&&x.c(),o=R(),oe&&oe.c(),r=R(),H&&H.c(),l=R(),j&&j.c(),a=R(),J&&J.c(),s=R(),F&&F.c(),u=R(),O&&O.c(),c=R(),Q&&Q.c(),m=R(),X&&X.c(),h=R(),le&&le.c(),w=R(),De&&De.c(),b=R(),V(C.$$.fragment),v=R(),V(I.$$.fragment),y=R(),V(g.$$.fragment),B=R(),Be&&Be.c(),M=R(),Ne&&Ne.c(),q=R(),Je&&Je.c(),te=dt()},m(se,_e){A(e,se,_e),S(se,t,_e),Z&&Z.m(se,_e),S(se,n,_e),x&&x.m(se,_e),S(se,o,_e),oe&&oe.m(se,_e),S(se,r,_e),H&&H.m(se,_e),S(se,l,_e),j&&j.m(se,_e),S(se,a,_e),J&&J.m(se,_e),S(se,s,_e),F&&F.m(se,_e),S(se,u,_e),O&&O.m(se,_e),S(se,c,_e),Q&&Q.m(se,_e),S(se,m,_e),X&&X.m(se,_e),S(se,h,_e),le&&le.m(se,_e),S(se,w,_e),De&&De.m(se,_e),S(se,b,_e),A(C,se,_e),S(se,v,_e),A(I,se,_e),S(se,y,_e),A(g,se,_e),S(se,B,_e),Be&&Be.m(se,_e),S(se,M,_e),Ne&&Ne.m(se,_e),S(se,q,_e),Je&&Je.m(se,_e),S(se,te,_e),pe=!0},p(se,_e){let ut={};_e[0]&32|_e[1]&192&&(ut.hidden=se[38]!=="thumb"||se[37]||se[92]&&se[5]),_e[0]&8&&(ut.thumbUrl=se[3]),_e[0]&536870912&&(ut.startVideo=se[29]),e.$set(ut),se[38]==="LiveWaitingStart"?Z?(Z.p(se,_e),_e[1]&128&&d(Z,1)):(Z=J0(se),Z.c(),d(Z,1),Z.m(n.parentNode,n)):Z&&(ce(),_(Z,1,1,()=>{Z=null}),de()),se[38]==="LiveWaitingRecover"?x?(x.p(se,_e),_e[1]&128&&d(x,1)):(x=x0(se),x.c(),d(x,1),x.m(o.parentNode,o)):x&&(ce(),_(x,1,1,()=>{x=null}),de()),se[38]==="LiveWaitingRecord"?oe?(oe.p(se,_e),_e[1]&128&&d(oe,1)):(oe=$0(se),oe.c(),d(oe,1),oe.m(r.parentNode,r)):oe&&(ce(),_(oe,1,1,()=>{oe=null}),de()),se[7]&&se[22]?H?(H.p(se,_e),_e[0]&4194432&&d(H,1)):(H=ep(se),H.c(),d(H,1),H.m(l.parentNode,l)):H&&(ce(),_(H,1,1,()=>{H=null}),de()),se[31]&&se[18]&&se[19]?j?(j.p(se,_e),_e[0]&786432|_e[1]&1&&d(j,1)):(j=tp(se),j.c(),d(j,1),j.m(a.parentNode,a)):j&&(ce(),_(j,1,1,()=>{j=null}),de()),se[44]?J?(J.p(se,_e),_e[1]&8192&&d(J,1)):(J=ip(se),J.c(),d(J,1),J.m(s.parentNode,s)):J&&(ce(),_(J,1,1,()=>{J=null}),de()),se[49]?F?(F.p(se,_e),_e[1]&262144&&d(F,1)):(F=np(se),F.c(),d(F,1),F.m(u.parentNode,u)):F&&(ce(),_(F,1,1,()=>{F=null}),de()),se[53]?O?_e[1]&4194304&&d(O,1):(O=op(se),O.c(),d(O,1),O.m(c.parentNode,c)):O&&(ce(),_(O,1,1,()=>{O=null}),de()),se[39]?Q?(Q.p(se,_e),_e[1]&256&&d(Q,1)):(Q=lp(se),Q.c(),d(Q,1),Q.m(m.parentNode,m)):Q&&(ce(),_(Q,1,1,()=>{Q=null}),de()),se[55].value!=="off"?X?(X.p(se,_e),_e[1]&16777216&&d(X,1)):(X=rp(se),X.c(),d(X,1),X.m(h.parentNode,h)):X&&(ce(),_(X,1,1,()=>{X=null}),de()),se[37]?le?(le.p(se,_e),_e[1]&64&&d(le,1)):(le=sp(se),le.c(),d(le,1),le.m(w.parentNode,w)):le&&(ce(),_(le,1,1,()=>{le=null}),de()),se[22]?De?(De.p(se,_e),_e[0]&4194304&&d(De,1)):(De=ap(se),De.c(),d(De,1),De.m(b.parentNode,b)):De&&(ce(),_(De,1,1,()=>{De=null}),de());let Ce={};_e[1]&268435456&&(Ce.isLive=se[59]),_e[1]&4096&&(Ce.isHidden=!se[43]),_e[1]&1048576&&(Ce.isPlaying=se[51]),_e[1]&67108864&&(Ce.position=se[57]),_e[1]&536870912&&(Ce.duration=se[60]),C.$set(Ce);let Ke={};_e[0]&2097152&&(Ke.supportLink=se[21]),_e[1]&131072&&(Ke.returnFocus=se[158]),_e[1]&4&&(Ke.visible=se[33]),_e[1]&512&&(Ke.playerContainerRef=se[40]),_e[1]&1024&&(Ke.controlsContainerRef=se[41]),_e[1]&1073741824&&(Ke.position=se[61]),!P&&_e[1]&2&&(P=!0,Ke.menuElementRef=se[32],He(()=>P=!1)),g.$set(Ke),se[42]?Be?_e[1]&2048&&d(Be,1):(Be=up(se),Be.c(),d(Be,1),Be.m(M.parentNode,M)):Be&&(ce(),_(Be,1,1,()=>{Be=null}),de()),se[62]?Ne?_e[2]&1&&d(Ne,1):(Ne=fp(se),Ne.c(),d(Ne,1),Ne.m(q.parentNode,q)):Ne&&(ce(),_(Ne,1,1,()=>{Ne=null}),de()),se[63]?Je?_e[2]&2&&d(Je,1):(Je=cp(se),Je.c(),d(Je,1),Je.m(te.parentNode,te)):Je&&(ce(),_(Je,1,1,()=>{Je=null}),de())},i(se){pe||(d(e.$$.fragment,se),d(Z),d(x),d(oe),d(H),d(j),d(J),d(F),d(O),d(Q),d(X),d(le),d(De),d(C.$$.fragment,se),d(I.$$.fragment,se),d(g.$$.fragment,se),d(Be),d(Ne),d(Je),pe=!0)},o(se){_(e.$$.fragment,se),_(Z),_(x),_(oe),_(H),_(j),_(J),_(F),_(O),_(Q),_(X),_(le),_(De),_(C.$$.fragment,se),_(I.$$.fragment,se),_(g.$$.fragment,se),_(Be),_(Ne),_(Je),pe=!1},d(se){se&&(k(t),k(n),k(o),k(r),k(l),k(a),k(s),k(u),k(c),k(m),k(h),k(w),k(b),k(v),k(y),k(B),k(M),k(q),k(te)),L(e,se),Z&&Z.d(se),x&&x.d(se),oe&&oe.d(se),H&&H.d(se),j&&j.d(se),J&&J.d(se),F&&F.d(se),O&&O.d(se),Q&&Q.d(se),X&&X.d(se),le&&le.d(se),De&&De.d(se),L(C,se),L(I,se),L(g,se),Be&&Be.d(se),Ne&&Ne.d(se),Je&&Je.d(se)}}}function q6(i){let e,t,n,o,r=i[52],l,a,s,u,c=dp(i);return{c(){e=T("div"),t=T("div"),o=R(),c.c(),l=dt(),f(t,"class","video-container svelte-1o4wf3x"),f(t,"style",n=`transform: rotate(${i[35]}deg) scale(${i[46]})`),f(t,"data-testid","video-container"),f(t,"data-is-playing",i[51]),N(t,"fast-rotate",!i[1].isSmoothVideoRotate),f(e,"class","video-wrapper svelte-1o4wf3x"),N(e,"hidden",i[38]!=="video"),N(e,"nocursor",i[45])},m(m,h){S(m,e,h),p(e,t),i[155](t),S(m,o,h),c.m(m,h),S(m,l,h),a=!0,s||(u=[he(e,"contextmenu",qt(i[108])),he(e,"mousedown",qt(i[113])),he(e,"mouseup",qt(i[114])),he(e,"click",qt(i[116])),he(e,"dblclick",qt(i[115]))],s=!0)},p(m,h){(!a||h[1]&32784&&n!==(n=`transform: rotate(${m[35]}deg) scale(${m[46]})`))&&f(t,"style",n),(!a||h[1]&1048576)&&f(t,"data-is-playing",m[51]),(!a||h[0]&2)&&N(t,"fast-rotate",!m[1].isSmoothVideoRotate),(!a||h[1]&128)&&N(e,"hidden",m[38]!=="video"),(!a||h[1]&16384)&&N(e,"nocursor",m[45]),h[1]&2097152&&K(r,r=m[52])?(ce(),_(c,1,1,Se),de(),c=dp(m),c.c(),d(c,1),c.m(l.parentNode,l)):c.p(m,h)},i(m){a||(d(c),a=!0)},o(m){_(c),a=!1},d(m){m&&(k(e),k(o),k(l)),i[155](null),c.d(m),s=!1,lt(u)}}}function O6(i){let e,t,n,o,r,l,a,s={toggleFullscreen:i[106],hideContextMenu:i[107],showHotKeyHelpers:i[117],showKeyMap:i[118],isAds:i[38]==="ads",fakePlayButtonHandler:i[47]?i[105]:void 0,$$slots:{default:[q6]},$$scope:{ctx:i}};return t=new Td({props:s}),i[160](t),{c(){e=T("div"),V(t.$$.fragment),n=R(),o=T("div"),f(o,"class","overlay-container"),f(e,"class","player-wrapper svelte-1o4wf3x")},m(u,c){S(u,e,c),A(t,e,null),p(e,n),p(e,o),i[161](o),i[162](e),r=!0,l||(a=[he(B6,"blur",i[107]),he(e,"mouseenter",i[109]),he(e,"mouseleave",i[111]),he(e,"mousemove",i[112]),he(e,"click",i[120],!0),he(e,"focusin",i[110],!0)],l=!0)},p(u,c){let m={};c[1]&128&&(m.isAds=u[38]==="ads"),c[1]&65536&&(m.fakePlayButtonHandler=u[47]?u[105]:void 0),c[0]&1073741823|c[1]&2147418111|c[2]&3|c[6]&4&&(m.$$scope={dirty:c,ctx:u}),t.$set(m)},i(u){r||(d(t.$$.fragment,u),r=!0)},o(u){_(t.$$.fragment,u),r=!1},d(u){u&&k(e),i[160](null),L(t),i[161](null),i[162](null),l=!1,lt(a)}}}var mp=!0;function _f(i){return i?i.offsetTop+_f(i.offsetParent):0}function pp(i){return i?i.offsetLeft+pp(i.offsetParent):0}function F6(i,e,t){let n,o,r,l,a,s,u,c,m,h,w,b,C,v,I,y,g,P,B,M,q,te,pe,Z,x,oe,H,j,J,F,O,Q,X,le,De,$e,Ee,Be,Ne,Je,se,_e,ut,{store:Ce}=e,{uiConfig:Ke}=e,{title:ht}=e,{thumbUrl:Ze}=e,{videoContainer:Ge}=e,{interactiveContainer:xe}=e,{live:tt}=e,{autoplay:fe}=e,{canRewindLive:Pe}=e,{showAds:je}=e,{adsSlotId:ae=void 0}=e,{adsParams:Te=void 0}=e,{adsPreviewParam:pt=void 0}=e,{duration:Ae=void 0}=e,{logoClickable:mt}=e,{logoHidden:me}=e,{logoTargetUrl:it=""}=e,{showNextPrevButtons:kt=!1}=e,{nextButtonActive:vt=!1}=e,{prevButtonActive:Ue=!1}=e,{endScreenVideoTitle:Ut=void 0}=e,{endScreenVideoThumb:Rt=void 0}=e,{isOneVideoPlaylist:Et=!1}=e,{supportLink:ei}=e,{shadowRootContainer:Bt=void 0}=e,{outerContainerRef:Kt=void 0}=e,{playerStarted:ve=!1}=e,{fullScreenTarget:Qe=void 0}=e,{showMiniTimer:_t=!1}=e,{playNextVideo:ft=pf}=e,{playPrevVideo:Xe=pf}=e,{repeatPlaylist:At=pf}=e,{seekToInteractive:di}=e,{toggleGraph:Mt}=e,{playPrevChapter:Qi}=e,{firstStart:sn}=e,ti=Ce.getLogger().createComponentLog("Root component"),Di=Ce.interfaceLanguage$;z(i,Di,Y=>t(52,Q=Y));let hn=Ce.state.playbackState$;z(i,hn,Y=>t(152,j=Y));let Yi=Ce.ads.playbackState;z(i,Yi,Y=>t(153,J=Y));let an=Ce.state.positionWithScrubbing$;z(i,an,Y=>t(57,Ee=Y));let Ci=Ce.state.duration$;z(i,Ci,Y=>t(60,Je=Y));let Si=Ce.playerPhase;z(i,Si,Y=>t(38,pe=Y));let mi=Ce.ui.isFullscreen;z(i,mi,Y=>t(142,b=Y));let pi=Ce.ui.controlsVisible;z(i,pi,Y=>t(36,P=Y));let Ti=Ce.ui.settingsMenuVisible;z(i,Ti,Y=>t(140,s=Y));let Pi=Ce.ui.scrubbingInProgress;z(i,Pi,Y=>t(144,y=Y));let ri=Ce.ui.contextMenu.visible$;z(i,ri,Y=>t(33,n=Y));let jt=Ce.ui.debugPanelVisible;z(i,jt,Y=>t(63,ut=Y));let Zi=Ce.state.isLoaderVisible;z(i,Zi,Y=>t(154,F=Y));let Zt=Ce.state.isEnded$;z(i,Zt,Y=>t(141,c=Y));let Ii=Ce.state.chromecastConnected$;z(i,Ii,Y=>t(39,oe=Y));let Ni=Ce.state.chromecastDeviceName$;z(i,Ni,Y=>t(54,le=Y));let Xi=Ce.ads.postrollPassed;z(i,Xi,Y=>t(147,q=Y));let Ct=Ce.state.isLive$;z(i,Ct,Y=>t(59,Ne=Y));let ii=Ce.state.isPlaying$;z(i,ii,Y=>t(51,O=Y));let Ji=Ce.state.crashed$;z(i,Ji,Y=>t(37,M=Y));let Pt=Ce.webApi.pictureInPictureApi,_i=Ce.state.currentSubtitle$;z(i,_i,Y=>t(55,De=Y));let xi=Ce.state.currentSubtitleCaptions$;z(i,xi,Y=>t(56,$e=Y));let qi=Ce.state.duration$;z(i,qi,Y=>t(58,Be=Y));let xt=Ce.state.graphIsOpened$;z(i,xt,Y=>t(148,te=Y));let si=Ce.ui.playerSize;z(i,si,Y=>t(34,h=Y));let Oi=Ce.ui.is3DVideo;z(i,Oi,Y=>t(49,m=Y));let ni=Ce.ui.icon3DVideoVisible;z(i,ni,Y=>t(53,X=Y));let Ei=Ce.ui.rotateAlpha;z(i,Ei,Y=>t(35,I=Y));let zt=Ce.state.isInteractive,Fi=Ce.state.isInteractiveTime$;z(i,Fi,Y=>t(145,g=Y));let Ai=Ce.state.isInteractiveExpectation$;z(i,Ai,Y=>t(151,H=Y));let ai=Ce.state.hasInteractiveBranches,oi=Ce.ui.touched;z(i,oi,Y=>t(149,Z=Y));let li=Ce.ui.modals.hotKeyMap.data;z(i,li,Y=>t(169,u=Y));let un=Ce.ui.modals.hotKeyMap.show;z(i,un,Y=>t(62,_e=Y));let fn=Ce.ui.overlayContainer$,cn=Ce.ui.controls.interactiveTimeIndicator;z(i,cn,Y=>t(170,w=Y));let Li=Ce.state.showInteractiveTimeIndicator,ui=Ce.ui.contextMenu.position$;z(i,ui,Y=>t(61,se=Y));let hi=Ce.actions.internal.closeSettingsMenu,{fakeIsPlaying$:gi}=zn();z(i,gi,Y=>t(143,v=Y));let Dt,bi,vi,Hi,dn;li.set(Nc());let yi,nt,wi=Fe(!1);z(i,wi,Y=>t(50,C=Y));let fi,We=Fe(!1);z(i,We,Y=>t(150,x=Y));let mn=Fe(),gn=Fe(!1);z(i,gn,Y=>t(146,B=Y));let zi=!1,Ui=!1,wn,$i,$t,kn,Mi,Ki,bn=!1,Cn,Sn=!1,{toggle:en}=gi,vn=!1,tn=null,Qt;Pt==null||Pt.setContext(Il());let Dn=()=>{fe&&!zt&&Wt(Ke.controls.hideTimeout)};Ce.setUiCallbacks({onStarted:Dn});let ji=()=>{window.clearTimeout(vi),We.set(!1)},An=()=>{window.clearTimeout(Hi),mn.set(null)},Wt=Y=>{ji(),We.set(!0),vi=window.setTimeout(()=>We.set(!1),Y);let Lt=Y-100;fi=window.setTimeout(()=>{C&&wi.set(!1)},Lt>0?Lt:Y)},Nn=(Y,Lt)=>{An(),mn.set(Lt),Hi=window.setTimeout(()=>mn.set(null),Y)},qn=Oi.subscribe(Y=>{ni.set(Y),Y&&(window.clearTimeout(dn),dn=window.setTimeout(()=>ni.set(!1),Ke.controls.hide360IconTimeout))}),Ln=()=>ct(this,null,function*(){var Lt,pn,_n,io;let Y=po();if(Y){let Fn=Ml(),no=yn();Y=Fn===no||Fn===Bt}if(Y){Wt(Ke.controls.hideTimeoutFullscreen);try{yield Pt==null?void 0:Pt.remove()}catch(Fn){ti({message:String(Fn)})}}mi.set(Y),Ce.getAdmanWrapper().setFullscreen(Y),b?(pn=(Lt=Ce.callbacks)==null?void 0:Lt.onFullscreenEnter)==null||pn.call(Lt):(io=(_n=Ce.callbacks)==null?void 0:_n.onFullscreenExit)==null||io.call(_n)}),On=Y=>{let Lt=Y;si.set({width:Lt.target.width,height:Lt.target.height})};Ot(()=>{var Lt;return dr(Ln),qo(Pt)&&(Pt==null||Pt.assignPlayerContainer(Dt),Pt==null||Pt.registryExternalEventHandlers({resize:On})),xe&&((Lt=Ge.parentElement)==null||Lt.insertBefore(xe,Ge.nextSibling)),()=>{window.clearTimeout(vi),window.clearTimeout(fi),window.clearTimeout(Hi),window.clearTimeout(dn),qn(),Pt==null||Pt.dispose(),mr(Ln)}});let yn=()=>{let Y=Ke.features.fullscreenInternalTargetPlayerContainer||!Kt?Dt:Kt,Lt=Y.getRootNode(),pn=Lt instanceof ShadowRoot?Lt.host:Lt,_n=Qe instanceof HTMLElement&&Qe.contains(pn);return Ke.allowChangingFullscreenTarget&&Qe&&_n?Qe:Y},nn=()=>ct(this,null,function*(){po()?(yield cr(document),ti({message:"exit fullscreen"})):(ti({message:"request fullscreen"}),yield fr(yn()))}),on=()=>{hi(),ri.set(!1)},re=Y=>{ri.set(!0),ui.set({left:Y.clientX,top:Y.clientY})};function wt(){gn.set(!0),zt||Wt(Ke.controls.hideTimeoutCursor)}function ln(){zt||(wi.set(!0),Wt(Ke.controls.hideTimeoutCursor))}function ie(){gn.set(!1),t(132,Ui=!1),t(131,zi=!1),vn=!1,Ce.actions.internal.releaseCamera()}function gt(Y){if(w&&Li){let Lt=Y.currentTarget,pn=_f(Lt),_n=pp(Lt),io=Y.pageX-_n,Fn=Y.pageY-pn,{left:no,bottom:Xn,right:Po}=w,oo=Po-no;return io>=no-oo&&Fn<=Xn+oo}}function Ft(Y){if(Dt){let Lt=_f(Y.currentTarget),pn=h.height,_n=Y.pageY-Lt;if(gt(Y)){t(132,Ui=!1);return}_n<40?t(132,Ui=!0):_n>pn-40?t(131,zi=!0):(t(132,Ui=!1),s||t(131,zi=!1))}}function Mn(Y){Ft(Y),$i||Wt(Ke.controls.hideTimeoutCursor),m&&vn&&tn&&Ce.actions.internal.moveCameraFocusPX(tn.clientX-Y.clientX,tn.clientY-Y.clientY,Y.timeStamp-tn.timeStamp),tn=Y}let Tn=Y=>{Y.button===0&&(vn=!0,Ce.actions.internal.holdCamera()),Wt(Ke.controls.hideTimeoutCursor)},Zn=Y=>{Y.button===0&&(tn=Y,vn=!1,Ce.actions.internal.releaseCamera()),Wt(Ke.controls.hideTimeoutCursor)},$n=()=>{mp&&(ti({message:"double click on video"}),nn(),Wt(Ke.controls.hideTimeoutCursor))},Pn=()=>{if(n||s){on();return}if(!(c&&!ai)){if(Sn)return en();if(Qt==null||Qt.focus(),!ve){sn(),Wt(Ke.controls.hideTimeoutCursor);return}Ce.actions.internal.togglePlay(),Wt(Ke.controls.hideTimeoutCursor)}},eo=Y=>{on(),oi.set(!0),Wt(Ke.controls.hideTimeout),Y&&Nn(Ke.controls.hideHotKeyHelpers,Y)},ne=()=>{var Y,Lt;on(),(Y=Ce.callbacks)!=null&&Y.onOpenHotKeyMap?(Lt=Ce.callbacks)==null||Lt.onOpenHotKeyMap(u):un.update(pn=>!pn)},wo=()=>{if(n||s){on();return}},Sl=()=>{oi.set(!0)},ko=Ce.ui.contextMenu.openedByBtnKeyboard$;z(i,ko,Y=>t(139,a=Y));let Co=Ce.ui.contextMenu.btnRef$;z(i,Co,Y=>t(138,l=Y));let to,uo=Ce.ui.contextMenu.openedByHotKey$;z(i,uo,Y=>t(137,r=Y));let Go=Ce.ui.contextMenu.lastActiveElem$;z(i,Go,Y=>t(136,o=Y));function Qo(Y){ge[Y?"unshift":"push"](()=>{Ge=Y,t(0,Ge)})}let So=()=>Qt==null?void 0:Qt.focus();function Yo(Y){bi=Y,t(41,bi)}let Zo=()=>Qt==null?void 0:Qt.focus();function fo(Y){to=Y,t(32,to)}function Xo(Y){ge[Y?"unshift":"push"](()=>{Qt=Y,t(48,Qt)})}function To(Y){ge[Y?"unshift":"push"](()=>{nt=Y,t(30,nt)})}function co(Y){ge[Y?"unshift":"push"](()=>{Dt=Y,t(40,Dt)})}return i.$$set=Y=>{"store"in Y&&t(125,Ce=Y.store),"uiConfig"in Y&&t(1,Ke=Y.uiConfig),"title"in Y&&t(2,ht=Y.title),"thumbUrl"in Y&&t(3,Ze=Y.thumbUrl),"videoContainer"in Y&&t(0,Ge=Y.videoContainer),"interactiveContainer"in Y&&t(126,xe=Y.interactiveContainer),"live"in Y&&t(4,tt=Y.live),"autoplay"in Y&&t(5,fe=Y.autoplay),"canRewindLive"in Y&&t(6,Pe=Y.canRewindLive),"showAds"in Y&&t(7,je=Y.showAds),"adsSlotId"in Y&&t(8,ae=Y.adsSlotId),"adsParams"in Y&&t(9,Te=Y.adsParams),"adsPreviewParam"in Y&&t(10,pt=Y.adsPreviewParam),"duration"in Y&&t(11,Ae=Y.duration),"logoClickable"in Y&&t(12,mt=Y.logoClickable),"logoHidden"in Y&&t(13,me=Y.logoHidden),"logoTargetUrl"in Y&&t(14,it=Y.logoTargetUrl),"showNextPrevButtons"in Y&&t(15,kt=Y.showNextPrevButtons),"nextButtonActive"in Y&&t(16,vt=Y.nextButtonActive),"prevButtonActive"in Y&&t(17,Ue=Y.prevButtonActive),"endScreenVideoTitle"in Y&&t(18,Ut=Y.endScreenVideoTitle),"endScreenVideoThumb"in Y&&t(19,Rt=Y.endScreenVideoThumb),"isOneVideoPlaylist"in Y&&t(20,Et=Y.isOneVideoPlaylist),"supportLink"in Y&&t(21,ei=Y.supportLink),"shadowRootContainer"in Y&&t(127,Bt=Y.shadowRootContainer),"outerContainerRef"in Y&&t(128,Kt=Y.outerContainerRef),"playerStarted"in Y&&t(22,ve=Y.playerStarted),"fullScreenTarget"in Y&&t(129,Qe=Y.fullScreenTarget),"showMiniTimer"in Y&&t(130,_t=Y.showMiniTimer),"playNextVideo"in Y&&t(23,ft=Y.playNextVideo),"playPrevVideo"in Y&&t(24,Xe=Y.playPrevVideo),"repeatPlaylist"in Y&&t(25,At=Y.repeatPlaylist),"seekToInteractive"in Y&&t(26,di=Y.seekToInteractive),"toggleGraph"in Y&&t(27,Mt=Y.toggleGraph),"playPrevChapter"in Y&&t(28,Qi=Y.playPrevChapter),"firstStart"in Y&&t(29,sn=Y.firstStart)},i.$$.update=()=>{if(i.$$.dirty[1]&192|i.$$.dirty[4]&1610612736&&t(42,yi=(pe==="video"&&F||pe==="ads"&&J==="inactive")&&!M),i.$$.dirty[0]&1073741824&&fn.set(nt),i.$$.dirty[4]&268435456&&t(133,wn=j!==D6.PLAYING),i.$$.dirty[4]&136381312&&t(134,$i=g&&!s&&!(zi||Ui)&&!(wn&&!H)),i.$$.dirty[1]&448|i.$$.dirty[4]&68224512&&pi.set((wn||s||y||oe||x)&&!$i&&(pe==="video"||pe==="ads")&&!M),i.$$.dirty[0]&2|i.$$.dirty[1]&224|i.$$.dirty[4]&33554496&&t(43,$t=Ke.features.thumbTimer&&_t&&pe==="video"&&!P&&!M&&!zt&&(Ke.hideThumbTimerAfterTouch&&!Z||!Ke.hideThumbTimerAfterTouch)),i.$$.dirty[1]&128|i.$$.dirty[4]&17039360&&t(44,kn=pe==="video"&&!te&&b),i.$$.dirty[0]&128|i.$$.dirty[1]&64|i.$$.dirty[4]&8519680&&t(31,Mi=(je&&q||!je)&&c&&!M),i.$$.dirty[1]&33|i.$$.dirty[4]&6291456&&t(45,Ki=B&&!(P||Mi)&&!g),i.$$.dirty[0]&2|i.$$.dirty[4]&3147776&&(!y&&bn&&!g&&Wt(Ke.controls.hideTimeoutCursor),t(135,bn=y)),i.$$.dirty[0]&1|i.$$.dirty[1]&24&&t(46,Cn=Ge&&I%180?h.height/h.width:1),i.$$.dirty[4]&524288&&t(47,Sn=v!==null),i.$$.dirty[1]&6|i.$$.dirty[4]&32768&&Ho(to,n,a),i.$$.dirty[1]&4|i.$$.dirty[4]&16384){let Y=l;Y&&cl(Y,n,ko)}if(i.$$.dirty[1]&6|i.$$.dirty[4]&8192&&Ho(to,n,r),i.$$.dirty[1]&4|i.$$.dirty[4]&4096){let Y=o;Y&&Xc(Y,n,uo)}},[Ge,Ke,ht,Ze,tt,fe,Pe,je,ae,Te,pt,Ae,mt,me,it,kt,vt,Ue,Ut,Rt,Et,ei,ve,ft,Xe,At,di,Mt,Qi,sn,nt,Mi,to,n,h,I,P,M,pe,oe,Dt,bi,yi,$t,kn,Ki,Cn,Sn,Qt,m,C,O,Q,X,le,De,$e,Ee,Be,Ne,Je,se,_e,ut,Di,hn,Yi,an,Ci,Si,mi,pi,Ti,Pi,ri,jt,Zi,Zt,Ii,Ni,Xi,Ct,ii,Ji,_i,xi,qi,xt,si,Oi,ni,Ei,zt,Fi,Ai,oi,li,un,cn,ui,gi,wi,We,mn,gn,en,nn,on,re,wt,ln,ie,Mn,Tn,Zn,$n,Pn,eo,ne,wo,Sl,ko,Co,uo,Go,Ce,xe,Bt,Kt,Qe,_t,zi,Ui,wn,$i,bn,o,r,l,a,s,c,b,v,y,g,B,q,te,Z,x,H,j,J,F,Qo,So,Yo,Zo,fo,Xo,To,co]}var hf=class extends W{constructor(e){super(),G(this,e,F6,O6,K,{store:125,uiConfig:1,title:2,thumbUrl:3,videoContainer:0,interactiveContainer:126,live:4,autoplay:5,canRewindLive:6,showAds:7,adsSlotId:8,adsParams:9,adsPreviewParam:10,duration:11,logoClickable:12,logoHidden:13,logoTargetUrl:14,showNextPrevButtons:15,nextButtonActive:16,prevButtonActive:17,endScreenVideoTitle:18,endScreenVideoThumb:19,isOneVideoPlaylist:20,supportLink:21,shadowRootContainer:127,outerContainerRef:128,playerStarted:22,fullScreenTarget:129,showMiniTimer:130,playNextVideo:23,playPrevVideo:24,repeatPlaylist:25,seekToInteractive:26,toggleGraph:27,playPrevChapter:28,firstStart:29},N6,[-1,-1,-1,-1,-1,-1,-1])}},_p=hf;import{PlaybackState as W6}from"@vkontakte/videoplayer-core";import{clientChecker as us,noop as yf}from"@vkontakte/videoplayer-shared";function H6(i){Ie(i,"svelte-nhq2ld",".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;animation:svelte-nhq2ld-blink 500ms infinite;opacity:0}.triangle.right.svelte-nhq2ld:nth-child(1),.triangle.left.svelte-nhq2ld:nth-child(3){animation-delay:0ms}.triangle.right.svelte-nhq2ld:nth-child(2),.triangle.left.svelte-nhq2ld:nth-child(2){animation-delay:100ms}.triangle.right.svelte-nhq2ld:nth-child(3),.triangle.left.svelte-nhq2ld:nth-child(1){animation-delay:200ms}@keyframes svelte-nhq2ld-blink{0%{opacity:0}50%{opacity:1}100%{opacity:0}}.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 hp(i){let e,t,n,o,r,l,a,s,u,c,m,h,w,b,C,v=U("doubletap_seek_step",{seconds:i[1].toFixed(0)})+"",I;return{c(){e=T("div"),n=R(),o=T("div"),r=T("div"),l=T("div"),s=R(),u=T("div"),m=R(),h=T("div"),b=R(),C=T("p"),I=qe(v),f(e,"class",t="semicircle "+i[0]+" svelte-nhq2ld"),f(l,"class",a="triangle "+i[0]+" svelte-nhq2ld"),f(u,"class",c="triangle "+i[0]+" svelte-nhq2ld"),f(h,"class",w="triangle "+i[0]+" svelte-nhq2ld"),f(r,"class","triangles-wrapper svelte-nhq2ld"),f(C,"class","step-caption svelte-nhq2ld"),f(o,"class","info svelte-nhq2ld")},m(y,g){S(y,e,g),S(y,n,g),S(y,o,g),p(o,r),p(r,l),p(r,s),p(r,u),p(r,m),p(r,h),p(o,b),p(o,C),p(C,I)},p(y,g){g&1&&t!==(t="semicircle "+y[0]+" svelte-nhq2ld")&&f(e,"class",t),g&1&&a!==(a="triangle "+y[0]+" svelte-nhq2ld")&&f(l,"class",a),g&1&&c!==(c="triangle "+y[0]+" svelte-nhq2ld")&&f(u,"class",c),g&1&&w!==(w="triangle "+y[0]+" svelte-nhq2ld")&&f(h,"class",w),g&2&&v!==(v=U("doubletap_seek_step",{seconds:y[1].toFixed(0)})+"")&&Ye(I,v)},d(y){y&&(k(e),k(n),k(o))}}}function z6(i){let e,t,n,o,r=i[2]&&hp(i);return{c(){e=T("div"),r&&r.c(),f(e,"class",t="double-click-area "+i[0]+" svelte-nhq2ld")},m(l,a){S(l,e,a),r&&r.m(e,null),n||(o=he(e,"click",at(i[3]())),n=!0)},p(l,[a]){l[2]?r?r.p(l,a):(r=hp(l),r.c(),r.m(e,null)):r&&(r.d(1),r=null),a&1&&t!==(t="double-click-area "+l[0]+" svelte-nhq2ld")&&f(e,"class",t)},i:Se,o:Se,d(l){l&&k(e),r&&r.d(),n=!1,o()}}}function U6(i,e,t){let{side:n}=e,{seekStep:o}=e,{handleSingleFirstClick:r}=e,{handleSecondClick:l}=e,a=!1,s=0,u=0,c=()=>{let h=0;return()=>{h+=1,h===1?s=window.setTimeout(()=>{r(),h=0},300):(window.clearTimeout(s),h=0,l(),t(2,a=!0),u=window.setTimeout(()=>{t(2,a=!1)},500))}};return jn(()=>{window.clearTimeout(s),window.clearTimeout(u)}),i.$$set=m=>{"side"in m&&t(0,n=m.side),"seekStep"in m&&t(1,o=m.seekStep),"handleSingleFirstClick"in m&&t(4,r=m.handleSingleFirstClick),"handleSecondClick"in m&&t(5,l=m.handleSecondClick)},[n,o,a,c,r,l]}var gf=class extends W{constructor(e){super(),G(this,e,U6,z6,K,{side:0,seekStep:1,handleSingleFirstClick:4,handleSecondClick:5},H6)}},bf=gf;function K6(i,e,t){let{playNextVideo:n}=e;return Ot(()=>{n()}),i.$$set=o=>{"playNextVideo"in o&&t(0,n=o.playNextVideo)},[n]}var vf=class extends W{constructor(e){super(),G(this,e,K6,null,K,{playNextVideo:0})}},gp=vf;var{window:j6}=Ao;function G6(i){Ie(i,"svelte-1jy89ut",".player-wrapper.svelte-1jy89ut{position:absolute;width:100%;height:100%}.player-wrapper.svelte-1jy89ut .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-1jy89ut{display:inline-block;position:absolute;top:calc(50% - 23px);left:calc(50% - 38px)}.video-wrapper.svelte-1jy89ut,.video-container.svelte-1jy89ut,.ads-container.svelte-1jy89ut{position:absolute;width:100%;height:100%;left:0;top:0}.video-wrapper.svelte-1jy89ut{z-index:var(--video-container-z-index);background:var(--black)}.video-container.svelte-1jy89ut{z-index:var(--video-container-z-index);transition:var(--rotate-transition-duration) ease all}.video-container.fast-rotate.svelte-1jy89ut{transition:none}.ads-container.svelte-1jy89ut{background:var(--black)}")}function bp(i){let e,t,n,o;e=new bf({props:{side:"left",seekStep:i[1].controls.seekStepMobile/1e3,handleSingleFirstClick:i[99],handleSecondClick:i[130]}});let r=!i[49]&&vp(i);return{c(){V(e.$$.fragment),t=R(),r&&r.c(),n=dt()},m(l,a){A(e,l,a),S(l,t,a),r&&r.m(l,a),S(l,n,a),o=!0},p(l,a){let s={};a[0]&2&&(s.seekStep=l[1].controls.seekStepMobile/1e3),e.$set(s),l[49]?r&&(ce(),_(r,1,1,()=>{r=null}),de()):r?(r.p(l,a),a[1]&262144&&d(r,1)):(r=vp(l),r.c(),d(r,1),r.m(n.parentNode,n))},i(l){o||(d(e.$$.fragment,l),d(r),o=!0)},o(l){_(e.$$.fragment,l),_(r),o=!1},d(l){l&&(k(t),k(n)),L(e,l),r&&r.d(l)}}}function vp(i){let e,t;return e=new bf({props:{side:"right",seekStep:i[1].controls.seekStepMobile/1e3,handleSingleFirstClick:i[99],handleSecondClick:i[131]}}),{c(){V(e.$$.fragment)},m(n,o){A(e,n,o),t=!0},p(n,o){let r={};o[0]&2&&(r.seekStep=n[1].controls.seekStepMobile/1e3),e.$set(r)},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){_(e.$$.fragment,n),t=!1},d(n){L(e,n)}}}function yp(i){var n;let e,t;return e=new as({props:{thumbUrl:i[2],startTime:(n=i[3])==null?void 0:n.startTime}}),{c(){V(e.$$.fragment)},m(o,r){A(e,o,r),t=!0},p(o,r){var a;let l={};r[0]&4&&(l.thumbUrl=o[2]),r[0]&8&&(l.startTime=(a=o[3])==null?void 0:a.startTime),e.$set(l)},i(o){t||(d(e.$$.fragment,o),t=!0)},o(o){_(e.$$.fragment,o),t=!1},d(o){L(e,o)}}}function wp(i){let e,t;return e=new wl({props:{kind:"recover",thumbUrl:i[2]}}),{c(){V(e.$$.fragment)},m(n,o){A(e,n,o),t=!0},p(n,o){let r={};o[0]&4&&(r.thumbUrl=n[2]),e.$set(r)},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){_(e.$$.fragment,n),t=!1},d(n){L(e,n)}}}function kp(i){let e,t;return e=new wl({props:{kind:"record",thumbUrl:i[2]}}),{c(){V(e.$$.fragment)},m(n,o){A(e,n,o),t=!0},p(n,o){let r={};o[0]&4&&(r.thumbUrl=n[2]),e.$set(r)},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){_(e.$$.fragment,n),t=!1},d(n){L(e,n)}}}function Cp(i){let e,t,n;return t=new pr({props:{adsSlotId:i[7],adsParams:i[8],adsPreviewParam:i[9],duration:i[10]}}),{c(){e=T("div"),V(t.$$.fragment),f(e,"class","ads-container svelte-1jy89ut"),N(e,"hidden",i[34]!=="ads")},m(o,r){S(o,e,r),A(t,e,null),n=!0},p(o,r){let l={};r[0]&128&&(l.adsSlotId=o[7]),r[0]&256&&(l.adsParams=o[8]),r[0]&512&&(l.adsPreviewParam=o[9]),r[0]&1024&&(l.duration=o[10]),t.$set(l),(!n||r[1]&8)&&N(e,"hidden",o[34]!=="ads")},i(o){n||(d(t.$$.fragment,o),n=!0)},o(o){_(t.$$.fragment,o),n=!1},d(o){o&&k(e),L(t)}}}function Sp(i){let e,t;return e=new gp({props:{playNextVideo:i[22]}}),{c(){V(e.$$.fragment)},m(n,o){A(e,n,o),t=!0},p(n,o){let r={};o[0]&4194304&&(r.playNextVideo=n[22]),e.$set(r)},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){_(e.$$.fragment,n),t=!1},d(n){L(e,n)}}}function Tp(i){let e,t;return e=new ns({}),{c(){V(e.$$.fragment)},m(n,o){A(e,n,o),t=!0},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){_(e.$$.fragment,n),t=!1},d(n){L(e,n)}}}function Pp(i){let e,t,n;return t=new or({props:{"aria-label":U("video360")}}),{c(){e=T("div"),V(t.$$.fragment),f(e,"class","spherical-video-icon svelte-1jy89ut")},m(o,r){S(o,e,r),A(t,e,null),n=!0},i(o){n||(d(t.$$.fragment,o),n=!0)},o(o){_(t.$$.fragment,o),n=!1},d(o){o&&k(e),L(t)}}}function Ip(i){let e,t;return e=new ls({props:{thumbUrl:i[2],chromecastDeviceName:i[52]}}),{c(){V(e.$$.fragment)},m(n,o){A(e,n,o),t=!0},p(n,o){let r={};o[0]&4&&(r.thumbUrl=n[2]),o[1]&2097152&&(r.chromecastDeviceName=n[52]),e.$set(r)},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){_(e.$$.fragment,n),t=!1},d(n){L(e,n)}}}function Ep(i){let e,t;return e=new os({props:{shifted:i[30],captions:i[54],position:i[44],playerSize:i[31],isMobile:!0}}),{c(){V(e.$$.fragment)},m(n,o){A(e,n,o),t=!0},p(n,o){let r={};o[0]&1073741824&&(r.shifted=n[30]),o[1]&8388608&&(r.captions=n[54]),o[1]&8192&&(r.position=n[44]),o[1]&1&&(r.playerSize=n[31]),e.$set(r)},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){_(e.$$.fragment,n),t=!1},d(n){L(e,n)}}}function Ap(i){let e,t,n,o,r;return t=new rs({}),{c(){e=T("div"),V(t.$$.fragment)},m(l,a){S(l,e,a),A(t,e,null),n=!0,o||(r=he(e,"click",at(i[100])),o=!0)},p:Se,i(l){n||(d(t.$$.fragment,l),n=!0)},o(l){_(t.$$.fragment,l),n=!1},d(l){l&&k(e),L(t),o=!1,r()}}}function Lp(i){let e,t,n;function o(l){i[132](l)}let r={bottomHidden:i[34]==="thumb"||i[34]==="LiveWaitingStart"||i[34]==="LiveWaitingRecover"||i[34]==="LiveWaitingRecord"||i[34]==="ads",showControls:i[30],bottomNoSmooth:i[45],isAds:i[34]==="ads",canRewindLive:i[5]&&i[55]!==0,logoClickable:i[11],logoHidden:i[12],logoTargetUrl:i[13],showNextPrevButtons:i[14],nextButtonActive:i[15],prevButtonActive:i[16],isOneVideoPlaylist:i[19],supportLink:i[20],customFullscreenSupported:i[39],playNextVideo:i[22],playPrevVideo:i[23],repeatPlaylist:i[24],toggleFullscreen:i[97],seekToInteractive:i[25],toggleGraph:i[26],playPrevChapter:i[27],onDisabledPlayPrevChapterClick:i[103],onDisabledSeekToInteractiveClick:i[104]};return i[37]!==void 0&&(r.controlsElementRef=i[37]),e=new is({props:r}),ge.push(()=>ze(e,"controlsElementRef",o)),{c(){V(e.$$.fragment)},m(l,a){A(e,l,a),n=!0},p(l,a){let s={};a[1]&8&&(s.bottomHidden=l[34]==="thumb"||l[34]==="LiveWaitingStart"||l[34]==="LiveWaitingRecover"||l[34]==="LiveWaitingRecord"||l[34]==="ads"),a[0]&1073741824&&(s.showControls=l[30]),a[1]&16384&&(s.bottomNoSmooth=l[45]),a[1]&8&&(s.isAds=l[34]==="ads"),a[0]&32|a[1]&16777216&&(s.canRewindLive=l[5]&&l[55]!==0),a[0]&2048&&(s.logoClickable=l[11]),a[0]&4096&&(s.logoHidden=l[12]),a[0]&8192&&(s.logoTargetUrl=l[13]),a[0]&16384&&(s.showNextPrevButtons=l[14]),a[0]&32768&&(s.nextButtonActive=l[15]),a[0]&65536&&(s.prevButtonActive=l[16]),a[0]&524288&&(s.isOneVideoPlaylist=l[19]),a[0]&1048576&&(s.supportLink=l[20]),a[1]&256&&(s.customFullscreenSupported=l[39]),a[0]&4194304&&(s.playNextVideo=l[22]),a[0]&8388608&&(s.playPrevVideo=l[23]),a[0]&16777216&&(s.repeatPlaylist=l[24]),a[0]&33554432&&(s.seekToInteractive=l[25]),a[0]&67108864&&(s.toggleGraph=l[26]),a[0]&134217728&&(s.playPrevChapter=l[27]),!t&&a[1]&64&&(t=!0,s.controlsElementRef=l[37],He(()=>t=!1)),e.$set(s)},i(l){n||(d(e.$$.fragment,l),n=!0)},o(l){_(e.$$.fragment,l),n=!1},d(l){L(e,l)}}}function Mp(i){let e,t;return e=new hl({}),{c(){V(e.$$.fragment)},m(n,o){A(e,n,o),t=!0},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){_(e.$$.fragment,n),t=!1},d(n){L(e,n)}}}function Vp(i){let e,t;return e=new wr({}),{c(){V(e.$$.fragment)},m(n,o){A(e,n,o),t=!0},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){_(e.$$.fragment,n),t=!1},d(n){L(e,n)}}}function Rp(i){let e,t,n=i[5]&&i[78]&&!i[48].has("TIMELINE"),o,r,l,a,s,u,c,m,h,w,b,C,v,I,y,g,P;e=new ss({props:{hidden:i[34]!=="thumb"||i[33]||i[89]&&i[4],thumbUrl:i[2],startVideo:i[28]}});let B=n&&bp(i),M=i[34]==="LiveWaitingStart"&&yp(i),q=i[34]==="LiveWaitingRecover"&&wp(i),te=i[34]==="LiveWaitingRecord"&&kp(i),pe=i[6]&&i[21]&&Cp(i),Z=i[41]&&i[17]&&i[18]&&Sp(i),x=i[50]&&Tp(i),oe=i[51]&&Pp(i),H=i[35]&&Ip(i),j=i[53].value!=="off"&&Ep(i),J=i[33]&&Ap(i),F=i[21]&&Lp(i);v=new hr({props:{isLive:i[56],isHidden:!i[40],isPlaying:i[46],position:i[44],duration:i[43]}});let O=i[38]&&Mp(i),Q=i[57]&&Vp(i);return{c(){V(e.$$.fragment),t=R(),B&&B.c(),o=R(),M&&M.c(),r=R(),q&&q.c(),l=R(),te&&te.c(),a=R(),pe&&pe.c(),s=R(),Z&&Z.c(),u=R(),x&&x.c(),c=R(),oe&&oe.c(),m=R(),H&&H.c(),h=R(),j&&j.c(),w=R(),J&&J.c(),b=R(),F&&F.c(),C=R(),V(v.$$.fragment),I=R(),O&&O.c(),y=R(),Q&&Q.c(),g=dt()},m(X,le){A(e,X,le),S(X,t,le),B&&B.m(X,le),S(X,o,le),M&&M.m(X,le),S(X,r,le),q&&q.m(X,le),S(X,l,le),te&&te.m(X,le),S(X,a,le),pe&&pe.m(X,le),S(X,s,le),Z&&Z.m(X,le),S(X,u,le),x&&x.m(X,le),S(X,c,le),oe&&oe.m(X,le),S(X,m,le),H&&H.m(X,le),S(X,h,le),j&&j.m(X,le),S(X,w,le),J&&J.m(X,le),S(X,b,le),F&&F.m(X,le),S(X,C,le),A(v,X,le),S(X,I,le),O&&O.m(X,le),S(X,y,le),Q&&Q.m(X,le),S(X,g,le),P=!0},p(X,le){let De={};le[0]&16|le[1]&12&&(De.hidden=X[34]!=="thumb"||X[33]||X[89]&&X[4]),le[0]&4&&(De.thumbUrl=X[2]),le[0]&268435456&&(De.startVideo=X[28]),e.$set(De),le[0]&32|le[1]&131072&&(n=X[5]&&X[78]&&!X[48].has("TIMELINE")),n?B?(B.p(X,le),le[0]&32|le[1]&131072&&d(B,1)):(B=bp(X),B.c(),d(B,1),B.m(o.parentNode,o)):B&&(ce(),_(B,1,1,()=>{B=null}),de()),X[34]==="LiveWaitingStart"?M?(M.p(X,le),le[1]&8&&d(M,1)):(M=yp(X),M.c(),d(M,1),M.m(r.parentNode,r)):M&&(ce(),_(M,1,1,()=>{M=null}),de()),X[34]==="LiveWaitingRecover"?q?(q.p(X,le),le[1]&8&&d(q,1)):(q=wp(X),q.c(),d(q,1),q.m(l.parentNode,l)):q&&(ce(),_(q,1,1,()=>{q=null}),de()),X[34]==="LiveWaitingRecord"?te?(te.p(X,le),le[1]&8&&d(te,1)):(te=kp(X),te.c(),d(te,1),te.m(a.parentNode,a)):te&&(ce(),_(te,1,1,()=>{te=null}),de()),X[6]&&X[21]?pe?(pe.p(X,le),le[0]&2097216&&d(pe,1)):(pe=Cp(X),pe.c(),d(pe,1),pe.m(s.parentNode,s)):pe&&(ce(),_(pe,1,1,()=>{pe=null}),de()),X[41]&&X[17]&&X[18]?Z?(Z.p(X,le),le[0]&393216|le[1]&1024&&d(Z,1)):(Z=Sp(X),Z.c(),d(Z,1),Z.m(u.parentNode,u)):Z&&(ce(),_(Z,1,1,()=>{Z=null}),de()),X[50]?x?le[1]&524288&&d(x,1):(x=Tp(X),x.c(),d(x,1),x.m(c.parentNode,c)):x&&(ce(),_(x,1,1,()=>{x=null}),de()),X[51]?oe?le[1]&1048576&&d(oe,1):(oe=Pp(X),oe.c(),d(oe,1),oe.m(m.parentNode,m)):oe&&(ce(),_(oe,1,1,()=>{oe=null}),de()),X[35]?H?(H.p(X,le),le[1]&16&&d(H,1)):(H=Ip(X),H.c(),d(H,1),H.m(h.parentNode,h)):H&&(ce(),_(H,1,1,()=>{H=null}),de()),X[53].value!=="off"?j?(j.p(X,le),le[1]&4194304&&d(j,1)):(j=Ep(X),j.c(),d(j,1),j.m(w.parentNode,w)):j&&(ce(),_(j,1,1,()=>{j=null}),de()),X[33]?J?(J.p(X,le),le[1]&4&&d(J,1)):(J=Ap(X),J.c(),d(J,1),J.m(b.parentNode,b)):J&&(ce(),_(J,1,1,()=>{J=null}),de()),X[21]?F?(F.p(X,le),le[0]&2097152&&d(F,1)):(F=Lp(X),F.c(),d(F,1),F.m(C.parentNode,C)):F&&(ce(),_(F,1,1,()=>{F=null}),de());let $e={};le[1]&33554432&&($e.isLive=X[56]),le[1]&512&&($e.isHidden=!X[40]),le[1]&32768&&($e.isPlaying=X[46]),le[1]&8192&&($e.position=X[44]),le[1]&4096&&($e.duration=X[43]),v.$set($e),X[38]?O?le[1]&128&&d(O,1):(O=Mp(X),O.c(),d(O,1),O.m(y.parentNode,y)):O&&(ce(),_(O,1,1,()=>{O=null}),de()),X[57]?Q?le[1]&67108864&&d(Q,1):(Q=Vp(X),Q.c(),d(Q,1),Q.m(g.parentNode,g)):Q&&(ce(),_(Q,1,1,()=>{Q=null}),de())},i(X){P||(d(e.$$.fragment,X),d(B),d(M),d(q),d(te),d(pe),d(Z),d(x),d(oe),d(H),d(j),d(J),d(F),d(v.$$.fragment,X),d(O),d(Q),P=!0)},o(X){_(e.$$.fragment,X),_(B),_(M),_(q),_(te),_(pe),_(Z),_(x),_(oe),_(H),_(j),_(J),_(F),_(v.$$.fragment,X),_(O),_(Q),P=!1},d(X){X&&(k(t),k(o),k(r),k(l),k(a),k(s),k(u),k(c),k(m),k(h),k(w),k(b),k(C),k(I),k(y),k(g)),L(e,X),B&&B.d(X),M&&M.d(X),q&&q.d(X),te&&te.d(X),pe&&pe.d(X),Z&&Z.d(X),x&&x.d(X),oe&&oe.d(X),H&&H.d(X),j&&j.d(X),J&&J.d(X),F&&F.d(X),L(v,X),O&&O.d(X),Q&&Q.d(X)}}}function Q6(i){let e,t,n,o,r,l=i[47],a,s,u,c,m,h,w=Rp(i);return{c(){e=T("div"),t=T("div"),n=T("div"),r=R(),w.c(),a=R(),s=T("div"),f(n,"class","video-container svelte-1jy89ut"),f(n,"style",o=`transform: rotate(${i[32]}deg) scale(${i[42]})`),f(n,"data-testid","video-container"),f(n,"data-is-playing",i[46]),N(n,"fast-rotate",!i[1].isSmoothVideoRotate),f(t,"class","video-wrapper svelte-1jy89ut"),N(t,"hidden",i[34]!=="video"),f(s,"class","overlay-container"),f(e,"class","player-wrapper svelte-1jy89ut"),f(e,"role","region"),f(e,"aria-label",u=U("aria_label_video_player")),f(e,"tabindex","-1")},m(b,C){S(b,e,C),p(e,t),p(t,n),i[129](n),p(e,r),w.m(e,null),p(e,a),p(e,s),i[133](s),i[134](e),c=!0,m||(h=[he(j6,"blur",i[98]),he(t,"click",qt(i[99])),he(e,"click",i[101],!0),he(e,"focusin",i[102],!0)],m=!0)},p(b,C){(!c||C[1]&2050&&o!==(o=`transform: rotate(${b[32]}deg) scale(${b[42]})`))&&f(n,"style",o),(!c||C[1]&32768)&&f(n,"data-is-playing",b[46]),(!c||C[0]&2)&&N(n,"fast-rotate",!b[1].isSmoothVideoRotate),(!c||C[1]&8)&&N(t,"hidden",b[34]!=="video"),C[1]&65536&&K(l,l=b[47])?(ce(),_(w,1,1,Se),de(),w=Rp(b),w.c(),d(w,1),w.m(e,a)):w.p(b,C)},i(b){c||(d(w),c=!0)},o(b){_(w),c=!1},d(b){b&&k(e),i[129](null),w.d(b),i[133](null),i[134](null),m=!1,lt(h)}}}function Y6(i,e,t){var nn,on;let n,o,r,l,a,s,u,c,m,h,w,b,C,v,I,y,g,P,B,M,q,te,pe,Z,x,oe,H,j,J,F,O,Q,X,le,De,$e,{store:Ee}=e,{uiConfig:Be}=e,{thumbUrl:Ne}=e,{videoContainer:Je}=e,{interactiveContainer:se}=e,{live:_e}=e,{autoplay:ut}=e,{canRewindLive:Ce}=e,{showAds:Ke}=e,{adsSlotId:ht=void 0}=e,{adsParams:Ze=void 0}=e,{adsPreviewParam:Ge=void 0}=e,{duration:xe=void 0}=e,{logoClickable:tt}=e,{logoHidden:fe}=e,{logoTargetUrl:Pe=""}=e,{showNextPrevButtons:je=!1}=e,{nextButtonActive:ae=!1}=e,{prevButtonActive:Te=!1}=e,{endScreenVideoTitle:pt=void 0}=e,{endScreenVideoThumb:Ae=void 0}=e,{isOneVideoPlaylist:mt=!1}=e,{supportLink:me}=e,{shadowRootContainer:it=void 0}=e,{outerContainerRef:kt=void 0}=e,{showMiniTimer:vt=!1}=e,{fullScreenTarget:Ue=void 0}=e,{playerStarted:Ut=!1}=e,{playNextVideo:Rt=yf}=e,{playPrevVideo:Et=yf}=e,{repeatPlaylist:ei=yf}=e,{seekToInteractive:Bt}=e,{toggleGraph:Kt}=e,{playPrevChapter:ve}=e,{firstStart:Qe}=e,{seekTime:_t}=e,ft=Ee.getLogger().createComponentLog("Root component"),Xe=Ee.interfaceLanguage$;z(i,Xe,re=>t(47,oe=re));let At=Ee.state.playbackState$;z(i,At,re=>t(126,te=re));let di=Ee.ads.playbackState;z(i,di,re=>t(127,pe=re));let Mt=Ee.state.positionWithScrubbing$;z(i,Mt,re=>t(44,a=re));let Qi=Ee.state.duration$;z(i,Qi,re=>t(43,l=re));let sn=Ee.playerPhase;z(i,sn,re=>t(34,P=re));let ti=Ee.ui.isFullscreen;z(i,ti,re=>t(140,s=re));let Di=Ee.ui.controlsVisible;z(i,Di,re=>t(30,o=re));let hn=Ee.ui.interactiveHideMobileControls;z(i,hn,re=>t(118,h=re));let Yi=Ee.ui.settingsMenuVisible;z(i,Yi,re=>t(117,n=re));let an=Ee.ui.scrubbingInProgress;z(i,an,re=>t(119,b=re));let Ci=Ee.ui.debugPanelVisible;z(i,Ci,re=>t(57,$e=re));let Si=Ee.state.isLoaderVisible;z(i,Si,re=>t(128,Z=re));let mi=Ee.state.isEnded$;z(i,mi,re=>t(121,I=re));let pi=Ee.state.chromecastConnected$;z(i,pi,re=>t(35,B=re));let Ti=Ee.state.chromecastDeviceName$;z(i,Ti,re=>t(52,O=re));let Pi=Ee.ads.postrollPassed;z(i,Pi,re=>t(122,y=re));let ri=Ee.ui.mobileUnmuteButtonExpanded,jt=Ee.ui.mobileUnmuteButtonVisible,Zi=Ee.state.isLive$;z(i,Zi,re=>t(56,De=re));let Zt=Ee.state.isPlaying$;z(i,Zt,re=>t(46,x=re));let Ii=Ee.state.isActiveLive$;z(i,Ii,re=>t(49,j=re));let Ni=Ee.state.isRewindableLive$,Xi=Ee.state.crashed$;z(i,Xi,re=>t(33,v=re));let Ct=Ee.webApi.pictureInPictureApi,ii=Ee.state.videoSize$;z(i,ii,re=>t(141,c=re));let Ji=Ee.state.currentSubtitle$;z(i,Ji,re=>t(53,Q=re));let Pt=Ee.state.currentSubtitleCaptions$;z(i,Pt,re=>t(54,X=re));let _i=Ee.state.duration$;z(i,_i,re=>t(55,le=re));let xi=Ee.state.graphIsOpened$;z(i,xi,re=>t(125,q=re));let qi=Ee.ui.playerSize;z(i,qi,re=>t(31,u=re));let xt=Ee.ui.is3DVideo;z(i,xt,re=>t(50,J=re));let si=Ee.ui.icon3DVideoVisible;z(i,si,re=>t(51,F=re));let Oi=Ee.ui.rotateAlpha;z(i,Oi,re=>t(32,w=re));let ni=Ee.state.isInteractive,Ei=Ee.state.isInteractiveTime$;z(i,Ei,re=>t(120,C=re));let zt=Ee.state.isInteractiveExpectation$;z(i,zt,re=>t(124,M=re));let Fi=Ee.state.hasInteractiveBranches,Ai=Ee.ui.controls.disabledControls$;z(i,Ai,re=>t(48,H=re));let ai=Ee.ui.touched;z(i,ai,re=>t(123,g=re));let oi=Ee.ui.overlayContainer$,li=Ee.state.loadedMetadata$;z(i,li,re=>t(139,r=re));let un=Ee.actions.internal.closeSettingsMenu,fn=(nn=Ee.callbacks)==null?void 0:nn.onDisabledPlayPrevChapterClick,cn=(on=Ee.callbacks)==null?void 0:on.onDisabledSeekToInteractiveClick,Li,ui,hi,gi,Dt,bi,vi,Hi=Fe(!1);z(i,Hi,re=>t(45,m=re));let dn,yi=!1,nt,wi=!1,fi,We=!0,mn,gn,zi=!1,Ui;Ct==null||Ct.setContext(Il());let wn=re=>{clearTimeout(gi),re&&(jt.set(!0),ri.set(!0),gi=window.setTimeout(()=>{ri.set(!1)},Be.controls.collapseMobileUnmute),ni||$t(Be.controls.hideTimeoutMobile))};Ee.setUiCallbacks({onStarted:wn});let $i=()=>{window.clearTimeout(hi),t(112,yi=!1),h&&hn.set(!1)},$t=re=>{$i(),t(112,yi=!0),hi=window.setTimeout(()=>t(112,yi=!1),re);let wt=re-100;dn=window.setTimeout(()=>{m&&Hi.set(!1)},wt>0?wt:re)},kn=xt.subscribe(re=>{si.set(re),re&&(window.clearTimeout(Dt),Dt=window.setTimeout(()=>si.set(!1),Be.controls.hide360IconTimeout))}),Mi=()=>ct(this,null,function*(){var wt,ln,ie,gt;let re=po();if(re){let Ft=Ml(),Mn=Cn(),Tn=us.isSamsungBrowser&&Ft===it;re=Ft===Mn||Tn}if(re){$t(Be.controls.hideTimeoutFullscreen);try{yield Ct==null?void 0:Ct.remove()}catch(Ft){ft({message:String(Ft)})}try{let Ft=c!=null&&c.width&&(c!=null&&c.height)?c:u;yield Bc(Ft)}catch(Ft){ft({message:String(Ft)})}}ti.set(re),Ee.getAdmanWrapper().setFullscreen(re),s?(ln=(wt=Ee.callbacks)==null?void 0:wt.onFullscreenEnter)==null||ln.call(wt):(gt=(ie=Ee.callbacks)==null?void 0:ie.onFullscreenExit)==null||gt.call(ie)}),Ki=re=>{let wt=re;qi.set({width:wt.target.width,height:wt.target.height})};Ot(()=>{var wt;return dr(Mi),qo(Ct)&&(Ct==null||Ct.assignPlayerContainer(Li),Ct==null||Ct.registryExternalEventHandlers({resize:Ki})),t(39,We=!us.isIphoneOrOldIpad),se&&((wt=Je.parentElement)==null||wt.insertBefore(se,Je.nextSibling)),()=>{window.clearTimeout(hi),window.clearTimeout(dn),window.clearTimeout(gi),window.clearTimeout(Dt),kn(),Ct==null||Ct.dispose(),mr(Mi)}});let bn=re=>{let wt=a+(re==="forward"?1:-1)*Be.controls.seekStepMobile/1e3;wt<0?wt=0:wt>l&&(wt=l-1),t(114,wi=!0),_t(wt)},Cn=()=>{let re=us.isIOS||Be.features.fullscreenInternalTargetPlayerContainer||!kt?Li:kt,wt=re.getRootNode(),ln=wt instanceof ShadowRoot?wt.host:wt,ie=Ue instanceof HTMLElement&&Ue.contains(ln);return Be.allowChangingFullscreenTarget&&Ue&&ie?Ue:re},Sn=()=>ct(this,null,function*(){if(po())yield cr(document),ft({message:"exit fullscreen"});else{if(ft({message:"request fullscreen"}),us.isIOS&&!r)return;yield fr(Cn())}}),en=()=>{un()},vn=()=>{if(n){en();return}if(!Ut){Qe(),$t(Be.controls.hideTimeoutCursor);return}t(114,wi=!1),o?$i():$t(Be.controls.hideTimeoutMobile)},tn=()=>{if(n){en();return}},Qt=()=>{ai.set(!0)},Dn=()=>{ni||(Hi.set(!0),$t(Be.controls.hideTimeoutCursor))},ji=re=>{fn&&(fn(re),$t(Be.controls.hideTimeoutMobile))},An=re=>{cn&&(cn(re),$t(Be.controls.hideTimeoutMobile))};function Wt(re){ge[re?"unshift":"push"](()=>{Je=re,t(0,Je)})}let Nn=()=>bn("backward"),qn=()=>bn("forward");function Ln(re){ui=re,t(37,ui)}function On(re){ge[re?"unshift":"push"](()=>{vi=re,t(29,vi)})}function yn(re){ge[re?"unshift":"push"](()=>{Li=re,t(36,Li)})}return i.$$set=re=>{"store"in re&&t(105,Ee=re.store),"uiConfig"in re&&t(1,Be=re.uiConfig),"thumbUrl"in re&&t(2,Ne=re.thumbUrl),"videoContainer"in re&&t(0,Je=re.videoContainer),"interactiveContainer"in re&&t(106,se=re.interactiveContainer),"live"in re&&t(3,_e=re.live),"autoplay"in re&&t(4,ut=re.autoplay),"canRewindLive"in re&&t(5,Ce=re.canRewindLive),"showAds"in re&&t(6,Ke=re.showAds),"adsSlotId"in re&&t(7,ht=re.adsSlotId),"adsParams"in re&&t(8,Ze=re.adsParams),"adsPreviewParam"in re&&t(9,Ge=re.adsPreviewParam),"duration"in re&&t(10,xe=re.duration),"logoClickable"in re&&t(11,tt=re.logoClickable),"logoHidden"in re&&t(12,fe=re.logoHidden),"logoTargetUrl"in re&&t(13,Pe=re.logoTargetUrl),"showNextPrevButtons"in re&&t(14,je=re.showNextPrevButtons),"nextButtonActive"in re&&t(15,ae=re.nextButtonActive),"prevButtonActive"in re&&t(16,Te=re.prevButtonActive),"endScreenVideoTitle"in re&&t(17,pt=re.endScreenVideoTitle),"endScreenVideoThumb"in re&&t(18,Ae=re.endScreenVideoThumb),"isOneVideoPlaylist"in re&&t(19,mt=re.isOneVideoPlaylist),"supportLink"in re&&t(20,me=re.supportLink),"shadowRootContainer"in re&&t(107,it=re.shadowRootContainer),"outerContainerRef"in re&&t(108,kt=re.outerContainerRef),"showMiniTimer"in re&&t(109,vt=re.showMiniTimer),"fullScreenTarget"in re&&t(110,Ue=re.fullScreenTarget),"playerStarted"in re&&t(21,Ut=re.playerStarted),"playNextVideo"in re&&t(22,Rt=re.playNextVideo),"playPrevVideo"in re&&t(23,Et=re.playPrevVideo),"repeatPlaylist"in re&&t(24,ei=re.repeatPlaylist),"seekToInteractive"in re&&t(25,Bt=re.seekToInteractive),"toggleGraph"in re&&t(26,Kt=re.toggleGraph),"playPrevChapter"in re&&t(27,ve=re.playPrevChapter),"firstStart"in re&&t(28,Qe=re.firstStart),"seekTime"in re&&t(111,_t=re.seekTime)},i.$$.update=()=>{i.$$.dirty[1]&12|i.$$.dirty[4]&24&&t(38,bi=(P==="video"&&Z||P==="ads"&&pe==="inactive")&&!v),i.$$.dirty[0]&536870912&&oi.set(vi),i.$$.dirty[4]&4&&t(113,nt=te!==W6.PLAYING),i.$$.dirty[3]&303562752|i.$$.dirty[4]&3&&t(115,fi=q||h||!yi&&(I&&!!Fi||nt&&M)),i.$$.dirty[1]&28|i.$$.dirty[3]&91750400&&Di.set((nt||n||b||B||yi&&!wi)&&!fi&&P==="video"&&!v),i.$$.dirty[0]&1073741826|i.$$.dirty[1]&12|i.$$.dirty[3]&1073807360&&t(40,mn=Be.features.thumbTimer&&vt&&P==="video"&&!o&&!v&&!ni&&(Be.hideThumbTimerAfterTouch&&!g||!Be.hideThumbTimerAfterTouch)),i.$$.dirty[0]&64|i.$$.dirty[1]&4|i.$$.dirty[3]&805306368&&t(41,gn=(Ke&&y||!Ke)&&I&&!v),i.$$.dirty[0]&2|i.$$.dirty[3]&209715200&&(!b&&zi&&!C&&$t(Be.controls.hideTimeoutMobile),t(116,zi=b)),i.$$.dirty[0]&1|i.$$.dirty[1]&3&&t(42,Ui=Je&&w%180?u.height/u.width:1)},[Je,Be,Ne,_e,ut,Ce,Ke,ht,Ze,Ge,xe,tt,fe,Pe,je,ae,Te,pt,Ae,mt,me,Ut,Rt,Et,ei,Bt,Kt,ve,Qe,vi,o,u,w,v,P,B,Li,ui,bi,We,mn,gn,Ui,l,a,m,x,oe,H,j,J,F,O,Q,X,le,De,$e,Xe,At,di,Mt,Qi,sn,ti,Di,hn,Yi,an,Ci,Si,mi,pi,Ti,Pi,Zi,Zt,Ii,Ni,Xi,ii,Ji,Pt,_i,xi,qi,xt,si,Oi,ni,Ei,zt,Ai,ai,li,Hi,bn,Sn,en,vn,tn,Qt,Dn,ji,An,Ee,se,it,kt,vt,Ue,_t,yi,nt,wi,fi,zi,n,h,b,C,I,y,g,M,q,te,pe,Z,Wt,Nn,qn,Ln,On,yn]}var wf=class extends W{constructor(e){super(),G(this,e,Y6,Q6,K,{store:105,uiConfig:1,thumbUrl:2,videoContainer:0,interactiveContainer:106,live:3,autoplay:4,canRewindLive:5,showAds:6,adsSlotId:7,adsParams:8,adsPreviewParam:9,duration:10,logoClickable:11,logoHidden:12,logoTargetUrl:13,showNextPrevButtons:14,nextButtonActive:15,prevButtonActive:16,endScreenVideoTitle:17,endScreenVideoThumb:18,isOneVideoPlaylist:19,supportLink:20,shadowRootContainer:107,outerContainerRef:108,showMiniTimer:109,fullScreenTarget:110,playerStarted:21,playNextVideo:22,playPrevVideo:23,repeatPlaylist:24,seekToInteractive:25,toggleGraph:26,playPrevChapter:27,firstStart:28,seekTime:111},G6,[-1,-1,-1,-1,-1,-1])}},Bp=wf;function x6(i){Ie(i,"svelte-xfba9d",`.root.svelte-xfba9d{--white:#fff;--black:#000;--red:#ff3347;--blue-light:#70c1ff;--black-alpha-40:rgba(0, 0, 0, 0.40);--white-alpha-24:rgba(255, 255, 255, 0.24);--white-alpha-72:rgba(255, 255, 255, 0.72);--devider-gray:#dce1e6;--text-gray:#626d7a;--controls-height:40px;--controls-gradient-height:100px;--controls-transition-duration:0.25s;--controls-transition-fn:cubic-bezier(0.455, 0.03, 0.515, 0.955);--controls-desktop-item-margin-left:4px;--focused:var(--white);--focused-element-shadow:inset 0 0 0 2px var(--focused);--focused-slider-shadow:0 0 0 2px var(--focused);--big-play-size:96px;--big-play-radius:50%;--big-play-bg-color:rgba(0, 0, 0, 0.5);--big-play-hover-bg-color:rgba(0, 0, 0, 0.6);--big-play-icon-width:38px;--big-play-icon-height:33px;--interactive-episode-complete:rgba(92, 156, 230, 1);--slider-height:5px;--slider-video-episode-gap:1.5px;--slider-radius:calc(var(--slider-height) / 2);--slider-handle-size:13px;--slider-bg:rgba(255, 255, 255, 0.4);--slider-loaded-bg:rgba(255, 255, 255, 0.4);--slider-filled-bg:var(--white);--slider-filled-active-live-bg:var(--red);--slider-filled-ads:rgba(103, 165, 235, 1);--slider-disabled-color:rgba(248, 248, 248, 0.31);--controls-gradient:linear-gradient(
|
|
34
|
+
)}.hidden.svelte-1bcvcf2{visibility:hidden;transform:translateY(calc(var(--controls-gradient-height) * -1));opacity:0}`)}function w6(i){let e,t;return{c(){e=T("div"),t=De(i[0]),f(e,"class","title svelte-1bcvcf2"),O(e,"hidden",i[1])},m(n,o){S(n,e,o),p(e,t)},p(n,[o]){o&1&&Qe(t,n[0]),o&2&&O(e,"hidden",n[1])},i:Ce,o:Ce,d(n){n&&k(e)}}}function k6(i,e,t){let{title:n=""}=e,{isHidden:o=!1}=e;return i.$$set=r=>{"title"in r&&t(0,n=r.title),"isHidden"in r&&t(1,o=r.isHidden)},[n,o]}var hf=class extends j{constructor(e){super(),G(this,e,k6,w6,W,{title:0,isHidden:1},y6)}},Z0=hf;function C6(i){Pe(i,"svelte-1qpxtfg",".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 X0(i){let e,t,n,o,r,l,a;return{c(){e=T("div"),t=T("span"),n=De(i[0]),o=B(),r=T("span"),r.textContent=`${U("waiting_live_day_value")}`,l=B(),a=T("span"),a.textContent=`${U("waiting_live_colon")}`,f(t,"class","cell__value svelte-1qpxtfg"),f(r,"class","cell__unit svelte-1qpxtfg"),f(e,"class","timer__cell cell svelte-1qpxtfg"),f(a,"class","timer__points svelte-1qpxtfg")},m(s,u){S(s,e,u),p(e,t),p(t,n),p(e,o),p(e,r),S(s,l,u),S(s,a,u)},p(s,u){u&1&&Qe(n,s[0])},d(s){s&&(k(e),k(l),k(a))}}}function J0(i){let e,t,n,o,r,l,a;return{c(){e=T("div"),t=T("span"),n=De(i[1]),o=B(),r=T("span"),r.textContent=`${U("waiting_live_hour_value")}`,l=B(),a=T("span"),a.textContent=`${U("waiting_live_colon")}`,f(t,"class","cell__value svelte-1qpxtfg"),f(r,"class","cell__unit svelte-1qpxtfg"),f(e,"class","timer__cell cell svelte-1qpxtfg"),f(a,"class","timer__points svelte-1qpxtfg")},m(s,u){S(s,e,u),p(e,t),p(t,n),p(e,o),p(e,r),S(s,l,u),S(s,a,u)},p(s,u){u&2&&Qe(n,s[1])},d(s){s&&(k(e),k(l),k(a))}}}function x0(i){let e,t,n,o,r,l,a;return{c(){e=T("div"),t=T("span"),n=De(i[2]),o=B(),r=T("span"),r.textContent=`${U("waiting_live_minute_value")}`,l=B(),a=T("span"),a.textContent=`${U("waiting_live_colon")}`,f(t,"class","cell__value svelte-1qpxtfg"),f(r,"class","cell__unit svelte-1qpxtfg"),f(e,"class","timer__cell cell svelte-1qpxtfg"),f(a,"class","timer__points svelte-1qpxtfg")},m(s,u){S(s,e,u),p(e,t),p(t,n),p(e,o),p(e,r),S(s,l,u),S(s,a,u)},p(s,u){u&4&&Qe(n,s[2])},d(s){s&&(k(e),k(l),k(a))}}}function $0(i){let e,t,n,o,r;return{c(){e=T("div"),t=T("span"),n=De(i[3]),o=B(),r=T("span"),r.textContent=`${U("waiting_live_second_value")}`,f(t,"class","cell__value svelte-1qpxtfg"),f(r,"class","cell__unit svelte-1qpxtfg"),f(e,"class","timer__cell cell svelte-1qpxtfg")},m(l,a){S(l,e,a),p(e,t),p(t,n),p(e,o),p(e,r)},p(l,a){a&8&&Qe(n,l[3])},d(l){l&&k(e)}}}function S6(i){let e,t,n,o,r=i[0]&&X0(i),l=i[1]&&J0(i),a=i[2]&&x0(i),s=i[3]&&$0(i);return{c(){e=T("div"),r&&r.c(),t=B(),l&&l.c(),n=B(),a&&a.c(),o=B(),s&&s.c(),f(e,"class","timer__container svelte-1qpxtfg")},m(u,c){S(u,e,c),r&&r.m(e,null),p(e,t),l&&l.m(e,null),p(e,n),a&&a.m(e,null),p(e,o),s&&s.m(e,null)},p(u,[c]){u[0]?r?r.p(u,c):(r=X0(u),r.c(),r.m(e,t)):r&&(r.d(1),r=null),u[1]?l?l.p(u,c):(l=J0(u),l.c(),l.m(e,n)):l&&(l.d(1),l=null),u[2]?a?a.p(u,c):(a=x0(u),a.c(),a.m(e,o)):a&&(a.d(1),a=null),u[3]?s?s.p(u,c):(s=$0(u),s.c(),s.m(e,null)):s&&(s.d(1),s=null)},i:Ce,o:Ce,d(u){u&&k(e),r&&r.d(),l&&l.d(),a&&a.d(),s&&s.d()}}}function T6(i,e,t){let{startTime:n}=e,{onTimerOver:o}=e,r,l,a,s,u,c=w=>String(w).padStart(2,"0"),m=w=>{let g=Math.floor(w/86400);g&&(w-=g*86400,t(0,r=c(g)));let C=Math.floor(w/3600);t(1,l=c(C));let v=Math.floor(w/60)%60;t(2,a=c(v));let E=w%60;t(3,s=c(E))},h=()=>{let w=Math.floor(Date.now()/1e3),g=n-w;m(g),g>=1?u=requestAnimationFrame(h):o()};return Nt(()=>{u=requestAnimationFrame(h)}),Zn(()=>{cancelAnimationFrame(u)}),i.$$set=w=>{"startTime"in w&&t(4,n=w.startTime),"onTimerOver"in w&&t(5,o=w.onTimerOver)},[r,l,a,s,n,o]}var gf=class extends j{constructor(e){super(),G(this,e,T6,S6,W,{startTime:4,onTimerOver:5},C6)}},ep=gf;function P6(i){let e,t,n,o,r,l,a=i[2].default,s=Le(a,i,i[1],null),u=[{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[0]],c={};for(let m=0;m<u.length;m+=1)c=ue(c,u[m]);return{c(){e=D("svg"),s&&s.c(),t=D("path"),n=D("path"),o=D("path"),r=D("path"),f(t,"fill","#fefffe"),f(t,"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"),Ci(t,"opacity",".965"),f(n,"fill","#fefffe"),f(n,"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"),Ci(n,"opacity",".965"),f(o,"fill","#fefffe"),f(o,"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"),Ci(o,"opacity",".985"),f(r,"fill","#fefffe"),f(r,"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"),Ci(r,"opacity",".986"),we(e,c)},m(m,h){S(m,e,h),s&&s.m(e,null),p(e,t),p(e,n),p(e,o),p(e,r),l=!0},p(m,[h]){s&&s.p&&(!l||h&2)&&Me(s,a,m,m[1],l?Ae(a,m[1],h,null):Ve(m[1]),null),we(e,c=Ne(u,[{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"},h&1&&m[0]]))},i(m){l||(d(s,m),l=!0)},o(m){_(s,m),l=!1},d(m){m&&k(e),s&&s.d(m)}}}function I6(i,e,t){let{$$slots:n={},$$scope:o}=e;return i.$$set=r=>{t(0,e=ue(ue({},e),ye(r))),"$$scope"in r&&t(1,o=r.$$scope)},e=ye(e),[e,o,n]}var bf=class extends j{constructor(e){super(),G(this,e,I6,P6,W,{})}},tp=bf;function E6(i){Pe(i,"svelte-15pewff",".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 L6(i){let e,t,n,o,r;return o=new ep({props:{startTime:i[1]||0,onTimerOver:i[3]}}),{c(){e=T("div"),t=T("span"),t.textContent=`${U("waiting_live_timer_title")}`,n=B(),q(o.$$.fragment),f(t,"class","timer__title svelte-15pewff"),f(e,"class","waiting-timer timer svelte-15pewff")},m(l,a){S(l,e,a),p(e,t),p(e,n),V(o,e,null),r=!0},p(l,a){let s={};a&2&&(s.startTime=l[1]||0),a&4&&(s.onTimerOver=l[3]),o.$set(s)},i(l){r||(d(o.$$.fragment,l),r=!0)},o(l){_(o.$$.fragment,l),r=!1},d(l){l&&k(e),R(o)}}}function A6(i){let e,t,n,o,r,l;return n=new tp({}),{c(){e=T("div"),t=T("div"),q(n.$$.fragment),o=B(),r=T("span"),r.textContent=`${U("waiting_live_upcoming_title")}`,f(t,"class","upcoming-icon svelte-15pewff"),f(r,"class","upcoming__title svelte-15pewff"),f(e,"class","upcoming svelte-15pewff")},m(a,s){S(a,e,s),p(e,t),V(n,t,null),p(e,o),p(e,r),l=!0},p:Ce,i(a){l||(d(n.$$.fragment,a),l=!0)},o(a){_(n.$$.fragment,a),l=!1},d(a){a&&k(e),R(n)}}}function M6(i){let e,t,n,o,r,l=[A6,L6],a=[];function s(u,c){return u[2]?0:1}return t=s(i,-1),n=a[t]=l[t](i),{c(){e=T("div"),n.c(),f(e,"class","waiting-container svelte-15pewff"),f(e,"style",o=`background-image: url(${i[2]?"":i[0]})`)},m(u,c){S(u,e,c),a[t].m(e,null),r=!0},p(u,[c]){let m=t;t=s(u,c),t===m?a[t].p(u,c):(ce(),_(a[m],1,1,()=>{a[m]=null}),de(),n=a[t],n?n.p(u,c):(n=a[t]=l[t](u),n.c()),d(n,1),n.m(e,null)),(!r||c&5&&o!==(o=`background-image: url(${u[2]?"":u[0]})`))&&f(e,"style",o)},i(u){r||(d(n),r=!0)},o(u){_(n),r=!1},d(u){u&&k(e),a[t].d()}}}function V6(i,e,t){let n,{thumbUrl:o}=e,{startTime:r}=e,l=()=>t(2,n=!0);return i.$$set=a=>{"thumbUrl"in a&&t(0,o=a.thumbUrl),"startTime"in a&&t(1,r=a.startTime)},i.$$.update=()=>{i.$$.dirty&2&&t(2,n=r===void 0||r<Math.floor(Date.now()/1e3))},[o,r,n,l]}var vf=class extends j{constructor(e){super(),G(this,e,V6,M6,W,{thumbUrl:0,startTime:1},E6)}},ds=vf;function R6(i){Pe(i,"svelte-xvqwsa",".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 B6(i){let e,t,n,o,r,l,a,s;return n=new bl({props:{style:"position: static; transform: translate(0, 0)"}}),{c(){e=T("div"),t=T("div"),q(n.$$.fragment),o=B(),r=T("p"),l=De(i[1]),f(r,"class","waiting-title svelte-xvqwsa"),f(t,"class","waiting-caption svelte-xvqwsa"),f(e,"class","waiting-container svelte-xvqwsa"),f(e,"style",a=`background-image: url('${i[0]}')`)},m(u,c){S(u,e,c),p(e,t),V(n,t,null),p(t,o),p(t,r),p(r,l),s=!0},p(u,[c]){(!s||c&2)&&Qe(l,u[1]),(!s||c&1&&a!==(a=`background-image: url('${u[0]}')`))&&f(e,"style",a)},i(u){s||(d(n.$$.fragment,u),s=!0)},o(u){_(n.$$.fragment,u),s=!1},d(u){u&&k(e),R(n)}}}function q6(i,e,t){let{thumbUrl:n=""}=e,{kind:o}=e,r;return i.$$set=l=>{"thumbUrl"in l&&t(0,n=l.thumbUrl),"kind"in l&&t(2,o=l.kind)},i.$$.update=()=>{if(i.$$.dirty&4){let l={recover:U("waiting_live_recover_title"),record:U("waiting_record_title")};t(1,r=l[o]||"")}},[n,r,o]}var yf=class extends j{constructor(e){super(),G(this,e,q6,B6,W,{thumbUrl:0,kind:2},R6)}},Cl=yf;var{window:D6}=Mo;function O6(i){Pe(i,"svelte-12e19rp",".player-wrapper.svelte-12e19rp{position:absolute;width:100%;height:100%}.player-wrapper.svelte-12e19rp .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-12e19rp{display:inline-block;position:absolute;top:calc(50% - 23px);left:calc(50% - 38px)}.video-wrapper.svelte-12e19rp,.video-container.svelte-12e19rp,.ads-container.svelte-12e19rp{position:absolute;width:100%;height:100%;left:0;top:0}.video-wrapper.svelte-12e19rp{z-index:var(--video-container-z-index);background:var(--black)}.video-container.svelte-12e19rp{z-index:var(--video-container-z-index);transition:var(--rotate-transition-duration) ease all}.video-container.fast-rotate.svelte-12e19rp{transition:none}.nocursor.svelte-12e19rp{cursor:none}.ads-container.svelte-12e19rp{z-index:var(--ads-container-z-index);background:var(--black)}")}function np(i){var n;let e,t;return e=new ds({props:{thumbUrl:i[3],startTime:(n=i[4])==null?void 0:n.startTime}}),{c(){q(e.$$.fragment)},m(o,r){V(e,o,r),t=!0},p(o,r){var a;let l={};r[0]&8&&(l.thumbUrl=o[3]),r[0]&16&&(l.startTime=(a=o[4])==null?void 0:a.startTime),e.$set(l)},i(o){t||(d(e.$$.fragment,o),t=!0)},o(o){_(e.$$.fragment,o),t=!1},d(o){R(e,o)}}}function op(i){let e,t;return e=new Cl({props:{kind:"recover",thumbUrl:i[3]}}),{c(){q(e.$$.fragment)},m(n,o){V(e,n,o),t=!0},p(n,o){let r={};o[0]&8&&(r.thumbUrl=n[3]),e.$set(r)},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){_(e.$$.fragment,n),t=!1},d(n){R(e,n)}}}function lp(i){let e,t;return e=new Cl({props:{kind:"record",thumbUrl:i[3]}}),{c(){q(e.$$.fragment)},m(n,o){V(e,n,o),t=!0},p(n,o){let r={};o[0]&8&&(r.thumbUrl=n[3]),e.$set(r)},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){_(e.$$.fragment,n),t=!1},d(n){R(e,n)}}}function rp(i){let e,t,n;return t=new gr({props:{adsSlotId:i[8],adsParams:i[9],adsPreviewParam:i[10],duration:i[11]}}),{c(){e=T("div"),q(t.$$.fragment),f(e,"class","ads-container svelte-12e19rp"),O(e,"hidden",i[38]!=="ads")},m(o,r){S(o,e,r),V(t,e,null),n=!0},p(o,r){let l={};r[0]&256&&(l.adsSlotId=o[8]),r[0]&512&&(l.adsParams=o[9]),r[0]&1024&&(l.adsPreviewParam=o[10]),r[0]&2048&&(l.duration=o[11]),t.$set(l),(!n||r[1]&128)&&O(e,"hidden",o[38]!=="ads")},i(o){n||(d(t.$$.fragment,o),n=!0)},o(o){_(t.$$.fragment,o),n=!1},d(o){o&&k(e),R(t)}}}function sp(i){let e,t;return e=new Ad({props:{title:i[18],thumb:i[19],playNextVideo:i[23]}}),{c(){q(e.$$.fragment)},m(n,o){V(e,n,o),t=!0},p(n,o){let r={};o[0]&262144&&(r.title=n[18]),o[0]&524288&&(r.thumb=n[19]),o[0]&8388608&&(r.playNextVideo=n[23]),e.$set(r)},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){_(e.$$.fragment,n),t=!1},d(n){R(e,n)}}}function ap(i){let e,t;return e=new Z0({props:{title:i[2],isHidden:!i[36]}}),{c(){q(e.$$.fragment)},m(n,o){V(e,n,o),t=!0},p(n,o){let r={};o[0]&4&&(r.title=n[2]),o[1]&32&&(r.isHidden=!n[36]),e.$set(r)},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){_(e.$$.fragment,n),t=!1},d(n){R(e,n)}}}function up(i){let e,t;return e=new ss({props:{isShifted:i[38]==="video"&&i[36]}}),{c(){q(e.$$.fragment)},m(n,o){V(e,n,o),t=!0},p(n,o){let r={};o[1]&160&&(r.isShifted=n[38]==="video"&&n[36]),e.$set(r)},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){_(e.$$.fragment,n),t=!1},d(n){R(e,n)}}}function fp(i){let e,t,n;return t=new sr({props:{"aria-label":U("video360")}}),{c(){e=T("div"),q(t.$$.fragment),f(e,"class","spherical-video-icon svelte-12e19rp")},m(o,r){S(o,e,r),V(t,e,null),n=!0},i(o){n||(d(t.$$.fragment,o),n=!0)},o(o){_(t.$$.fragment,o),n=!1},d(o){o&&k(e),R(t)}}}function cp(i){let e,t;return e=new us({props:{thumbUrl:i[3],chromecastDeviceName:i[54]}}),{c(){q(e.$$.fragment)},m(n,o){V(e,n,o),t=!0},p(n,o){let r={};o[0]&8&&(r.thumbUrl=n[3]),o[1]&8388608&&(r.chromecastDeviceName=n[54]),e.$set(r)},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){_(e.$$.fragment,n),t=!1},d(n){R(e,n)}}}function dp(i){let e,t;return e=new as({props:{shifted:i[36],captions:i[56],position:i[57],playerSize:i[34]}}),{c(){q(e.$$.fragment)},m(n,o){V(e,n,o),t=!0},p(n,o){let r={};o[1]&32&&(r.shifted=n[36]),o[1]&33554432&&(r.captions=n[56]),o[1]&67108864&&(r.position=n[57]),o[1]&8&&(r.playerSize=n[34]),e.$set(r)},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){_(e.$$.fragment,n),t=!1},d(n){R(e,n)}}}function mp(i){let e,t,n,o,r;return t=new fs({}),{c(){e=T("div"),q(t.$$.fragment)},m(l,a){S(l,e,a),V(t,e,null),n=!0,o||(r=[pe(e,"contextmenu",Xt(i[108])),pe(e,"click",at(i[119]))],o=!0)},p:Ce,i(l){n||(d(t.$$.fragment,l),n=!0)},o(l){_(t.$$.fragment,l),n=!1},d(l){l&&k(e),R(t),o=!1,ot(r)}}}function pp(i){let e,t,n;function o(l){i[158](l)}let r={bottomHidden:i[38]==="thumb"||i[38]==="LiveWaitingStart"||i[38]==="LiveWaitingRecover"||i[38]==="LiveWaitingRecord",bottomNoSmooth:i[50],showControls:i[36],isAds:i[38]==="ads",canRewindLive:i[6]&&i[58]!==0,logoClickable:i[12],logoHidden:i[13],logoTargetUrl:i[14],showNextPrevButtons:i[15],nextButtonActive:i[16],prevButtonActive:i[17],isOneVideoPlaylist:i[20],supportLink:i[21],customFullscreenSupported:vp,playNextVideo:i[23],playPrevVideo:i[24],repeatPlaylist:i[25],toggleFullscreen:i[106],returnFocus:i[157],seekToInteractive:i[26],toggleGraph:i[27],playPrevChapter:i[28]};return i[41]!==void 0&&(r.controlsElementRef=i[41]),e=new rs({props:r}),ge.push(()=>He(e,"controlsElementRef",o)),{c(){q(e.$$.fragment)},m(l,a){V(e,l,a),n=!0},p(l,a){let s={};a[1]&128&&(s.bottomHidden=l[38]==="thumb"||l[38]==="LiveWaitingStart"||l[38]==="LiveWaitingRecover"||l[38]==="LiveWaitingRecord"),a[1]&524288&&(s.bottomNoSmooth=l[50]),a[1]&32&&(s.showControls=l[36]),a[1]&128&&(s.isAds=l[38]==="ads"),a[0]&64|a[1]&134217728&&(s.canRewindLive=l[6]&&l[58]!==0),a[0]&4096&&(s.logoClickable=l[12]),a[0]&8192&&(s.logoHidden=l[13]),a[0]&16384&&(s.logoTargetUrl=l[14]),a[0]&32768&&(s.showNextPrevButtons=l[15]),a[0]&65536&&(s.nextButtonActive=l[16]),a[0]&131072&&(s.prevButtonActive=l[17]),a[0]&1048576&&(s.isOneVideoPlaylist=l[20]),a[0]&2097152&&(s.supportLink=l[21]),a[0]&8388608&&(s.playNextVideo=l[23]),a[0]&16777216&&(s.playPrevVideo=l[24]),a[0]&33554432&&(s.repeatPlaylist=l[25]),a[1]&131072&&(s.returnFocus=l[157]),a[0]&67108864&&(s.seekToInteractive=l[26]),a[0]&134217728&&(s.toggleGraph=l[27]),a[0]&268435456&&(s.playPrevChapter=l[28]),!t&&a[1]&1024&&(t=!0,s.controlsElementRef=l[41],ze(()=>t=!1)),e.$set(s)},i(l){n||(d(e.$$.fragment,l),n=!0)},o(l){_(e.$$.fragment,l),n=!1},d(l){R(e,l)}}}function _p(i){let e,t;return e=new bl({}),{c(){q(e.$$.fragment)},m(n,o){V(e,n,o),t=!0},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){_(e.$$.fragment,n),t=!1},d(n){R(e,n)}}}function hp(i){let e,t;return e=new zd({}),{c(){q(e.$$.fragment)},m(n,o){V(e,n,o),t=!0},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){_(e.$$.fragment,n),t=!1},d(n){R(e,n)}}}function gp(i){let e,t;return e=new Sr({}),{c(){q(e.$$.fragment)},m(n,o){V(e,n,o),t=!0},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){_(e.$$.fragment,n),t=!1},d(n){R(e,n)}}}function bp(i){let e,t,n,o,r,l,a,s,u,c,m,h,w,g,C,v,E,y,b,P,A,M,N,te,_e;e=new cs({props:{hidden:i[38]!=="thumb"||i[37]||i[92]&&i[5],thumbUrl:i[3],startVideo:i[29]}});let X=i[38]==="LiveWaitingStart"&&np(i),$=i[38]==="LiveWaitingRecover"&&op(i),se=i[38]==="LiveWaitingRecord"&&lp(i),L=i[7]&&i[22]&&rp(i),K=i[31]&&i[18]&&i[19]&&sp(i),x=i[44]&&ap(i),Z=i[49]&&up(i),F=i[53]&&fp(i),Q=i[39]&&cp(i),J=i[55].value!=="off"&&dp(i),oe=i[37]&&mp(i),Be=i[22]&&pp(i);C=new vr({props:{isLive:i[59],isHidden:!i[43],isPlaying:i[51],position:i[57],duration:i[60]}}),E=new z0({props:{data:i[103]}});function Ye(ae){i[160](ae)}let Ie={supportLink:i[21],returnFocus:i[159],visible:i[33],playerContainerRef:i[40],controlsContainerRef:i[41],position:i[61]};i[32]!==void 0&&(Ie.menuElementRef=i[32]),b=new fd({props:Ie}),ge.push(()=>He(b,"menuElementRef",Ye));let Re=i[42]&&_p(i),qe=i[62]&&hp(i),xe=i[63]&&gp(i);return{c(){q(e.$$.fragment),t=B(),X&&X.c(),n=B(),$&&$.c(),o=B(),se&&se.c(),r=B(),L&&L.c(),l=B(),K&&K.c(),a=B(),x&&x.c(),s=B(),Z&&Z.c(),u=B(),F&&F.c(),c=B(),Q&&Q.c(),m=B(),J&&J.c(),h=B(),oe&&oe.c(),w=B(),Be&&Be.c(),g=B(),q(C.$$.fragment),v=B(),q(E.$$.fragment),y=B(),q(b.$$.fragment),A=B(),Re&&Re.c(),M=B(),qe&&qe.c(),N=B(),xe&&xe.c(),te=mt()},m(ae,he){V(e,ae,he),S(ae,t,he),X&&X.m(ae,he),S(ae,n,he),$&&$.m(ae,he),S(ae,o,he),se&&se.m(ae,he),S(ae,r,he),L&&L.m(ae,he),S(ae,l,he),K&&K.m(ae,he),S(ae,a,he),x&&x.m(ae,he),S(ae,s,he),Z&&Z.m(ae,he),S(ae,u,he),F&&F.m(ae,he),S(ae,c,he),Q&&Q.m(ae,he),S(ae,m,he),J&&J.m(ae,he),S(ae,h,he),oe&&oe.m(ae,he),S(ae,w,he),Be&&Be.m(ae,he),S(ae,g,he),V(C,ae,he),S(ae,v,he),V(E,ae,he),S(ae,y,he),V(b,ae,he),S(ae,A,he),Re&&Re.m(ae,he),S(ae,M,he),qe&&qe.m(ae,he),S(ae,N,he),xe&&xe.m(ae,he),S(ae,te,he),_e=!0},p(ae,he){let ft={};he[0]&32|he[1]&192&&(ft.hidden=ae[38]!=="thumb"||ae[37]||ae[92]&&ae[5]),he[0]&8&&(ft.thumbUrl=ae[3]),he[0]&536870912&&(ft.startVideo=ae[29]),e.$set(ft),ae[38]==="LiveWaitingStart"?X?(X.p(ae,he),he[1]&128&&d(X,1)):(X=np(ae),X.c(),d(X,1),X.m(n.parentNode,n)):X&&(ce(),_(X,1,1,()=>{X=null}),de()),ae[38]==="LiveWaitingRecover"?$?($.p(ae,he),he[1]&128&&d($,1)):($=op(ae),$.c(),d($,1),$.m(o.parentNode,o)):$&&(ce(),_($,1,1,()=>{$=null}),de()),ae[38]==="LiveWaitingRecord"?se?(se.p(ae,he),he[1]&128&&d(se,1)):(se=lp(ae),se.c(),d(se,1),se.m(r.parentNode,r)):se&&(ce(),_(se,1,1,()=>{se=null}),de()),ae[7]&&ae[22]?L?(L.p(ae,he),he[0]&4194432&&d(L,1)):(L=rp(ae),L.c(),d(L,1),L.m(l.parentNode,l)):L&&(ce(),_(L,1,1,()=>{L=null}),de()),ae[31]&&ae[18]&&ae[19]?K?(K.p(ae,he),he[0]&786432|he[1]&1&&d(K,1)):(K=sp(ae),K.c(),d(K,1),K.m(a.parentNode,a)):K&&(ce(),_(K,1,1,()=>{K=null}),de()),ae[44]?x?(x.p(ae,he),he[1]&8192&&d(x,1)):(x=ap(ae),x.c(),d(x,1),x.m(s.parentNode,s)):x&&(ce(),_(x,1,1,()=>{x=null}),de()),ae[49]?Z?(Z.p(ae,he),he[1]&262144&&d(Z,1)):(Z=up(ae),Z.c(),d(Z,1),Z.m(u.parentNode,u)):Z&&(ce(),_(Z,1,1,()=>{Z=null}),de()),ae[53]?F?he[1]&4194304&&d(F,1):(F=fp(ae),F.c(),d(F,1),F.m(c.parentNode,c)):F&&(ce(),_(F,1,1,()=>{F=null}),de()),ae[39]?Q?(Q.p(ae,he),he[1]&256&&d(Q,1)):(Q=cp(ae),Q.c(),d(Q,1),Q.m(m.parentNode,m)):Q&&(ce(),_(Q,1,1,()=>{Q=null}),de()),ae[55].value!=="off"?J?(J.p(ae,he),he[1]&16777216&&d(J,1)):(J=dp(ae),J.c(),d(J,1),J.m(h.parentNode,h)):J&&(ce(),_(J,1,1,()=>{J=null}),de()),ae[37]?oe?(oe.p(ae,he),he[1]&64&&d(oe,1)):(oe=mp(ae),oe.c(),d(oe,1),oe.m(w.parentNode,w)):oe&&(ce(),_(oe,1,1,()=>{oe=null}),de()),ae[22]?Be?(Be.p(ae,he),he[0]&4194304&&d(Be,1)):(Be=pp(ae),Be.c(),d(Be,1),Be.m(g.parentNode,g)):Be&&(ce(),_(Be,1,1,()=>{Be=null}),de());let ke={};he[1]&268435456&&(ke.isLive=ae[59]),he[1]&4096&&(ke.isHidden=!ae[43]),he[1]&1048576&&(ke.isPlaying=ae[51]),he[1]&67108864&&(ke.position=ae[57]),he[1]&536870912&&(ke.duration=ae[60]),C.$set(ke);let Ke={};he[0]&2097152&&(Ke.supportLink=ae[21]),he[1]&131072&&(Ke.returnFocus=ae[159]),he[1]&4&&(Ke.visible=ae[33]),he[1]&512&&(Ke.playerContainerRef=ae[40]),he[1]&1024&&(Ke.controlsContainerRef=ae[41]),he[1]&1073741824&&(Ke.position=ae[61]),!P&&he[1]&2&&(P=!0,Ke.menuElementRef=ae[32],ze(()=>P=!1)),b.$set(Ke),ae[42]?Re?he[1]&2048&&d(Re,1):(Re=_p(ae),Re.c(),d(Re,1),Re.m(M.parentNode,M)):Re&&(ce(),_(Re,1,1,()=>{Re=null}),de()),ae[62]?qe?he[2]&1&&d(qe,1):(qe=hp(ae),qe.c(),d(qe,1),qe.m(N.parentNode,N)):qe&&(ce(),_(qe,1,1,()=>{qe=null}),de()),ae[63]?xe?he[2]&2&&d(xe,1):(xe=gp(ae),xe.c(),d(xe,1),xe.m(te.parentNode,te)):xe&&(ce(),_(xe,1,1,()=>{xe=null}),de())},i(ae){_e||(d(e.$$.fragment,ae),d(X),d($),d(se),d(L),d(K),d(x),d(Z),d(F),d(Q),d(J),d(oe),d(Be),d(C.$$.fragment,ae),d(E.$$.fragment,ae),d(b.$$.fragment,ae),d(Re),d(qe),d(xe),_e=!0)},o(ae){_(e.$$.fragment,ae),_(X),_($),_(se),_(L),_(K),_(x),_(Z),_(F),_(Q),_(J),_(oe),_(Be),_(C.$$.fragment,ae),_(E.$$.fragment,ae),_(b.$$.fragment,ae),_(Re),_(qe),_(xe),_e=!1},d(ae){ae&&(k(t),k(n),k(o),k(r),k(l),k(a),k(s),k(u),k(c),k(m),k(h),k(w),k(g),k(v),k(y),k(A),k(M),k(N),k(te)),R(e,ae),X&&X.d(ae),$&&$.d(ae),se&&se.d(ae),L&&L.d(ae),K&&K.d(ae),x&&x.d(ae),Z&&Z.d(ae),F&&F.d(ae),Q&&Q.d(ae),J&&J.d(ae),oe&&oe.d(ae),Be&&Be.d(ae),R(C,ae),R(E,ae),R(b,ae),Re&&Re.d(ae),qe&&qe.d(ae),xe&&xe.d(ae)}}}function F6(i){let e,t,n,o,r=i[52],l,a,s,u,c=bp(i);return{c(){e=T("div"),t=T("div"),o=B(),c.c(),l=mt(),f(t,"class","video-container svelte-12e19rp"),f(t,"style",n=`transform: rotate(${i[35]}deg) scale(${i[46]})`),f(t,"data-testid","video-container"),f(t,"data-is-playing",i[51]),O(t,"fast-rotate",!i[1].isSmoothVideoRotate),f(e,"class","video-wrapper svelte-12e19rp"),O(e,"hidden",i[38]!=="video"),O(e,"nocursor",i[45])},m(m,h){S(m,e,h),p(e,t),i[156](t),S(m,o,h),c.m(m,h),S(m,l,h),a=!0,s||(u=[pe(e,"contextmenu",Xt(i[108])),pe(e,"mousedown",Xt(i[113])),pe(e,"mouseup",Xt(i[114])),pe(e,"click",Xt(i[116])),pe(e,"dblclick",Xt(i[115]))],s=!0)},p(m,h){(!a||h[1]&32784&&n!==(n=`transform: rotate(${m[35]}deg) scale(${m[46]})`))&&f(t,"style",n),(!a||h[1]&1048576)&&f(t,"data-is-playing",m[51]),(!a||h[0]&2)&&O(t,"fast-rotate",!m[1].isSmoothVideoRotate),(!a||h[1]&128)&&O(e,"hidden",m[38]!=="video"),(!a||h[1]&16384)&&O(e,"nocursor",m[45]),h[1]&2097152&&W(r,r=m[52])?(ce(),_(c,1,1,Ce),de(),c=bp(m),c.c(),d(c,1),c.m(l.parentNode,l)):c.p(m,h)},i(m){a||(d(c),a=!0)},o(m){_(c),a=!1},d(m){m&&(k(e),k(o),k(l)),i[156](null),c.d(m),s=!1,ot(u)}}}function z6(i){let e,t,n,o,r,l,a,s={toggleFullscreen:i[106],hideContextMenu:i[107],showHotKeyHelpers:i[117],showKeyMap:i[118],isAds:i[38]==="ads",fakePlayButtonHandler:i[47]?i[105]:void 0,$$slots:{default:[F6]},$$scope:{ctx:i}};return t=new Md({props:s}),i[161](t),{c(){e=T("div"),q(t.$$.fragment),n=B(),o=T("div"),f(o,"class","overlay-container"),f(e,"class","player-wrapper svelte-12e19rp")},m(u,c){S(u,e,c),V(t,e,null),p(e,n),p(e,o),i[162](o),i[163](e),r=!0,l||(a=[pe(D6,"blur",i[107]),pe(e,"mouseenter",i[109]),pe(e,"mouseleave",i[111]),pe(e,"mousemove",i[112]),pe(e,"click",i[120],!0),pe(e,"focusin",i[110],!0)],l=!0)},p(u,c){let m={};c[1]&128&&(m.isAds=u[38]==="ads"),c[1]&65536&&(m.fakePlayButtonHandler=u[47]?u[105]:void 0),c[0]&1073741823|c[1]&2147418111|c[2]&3|c[6]&16&&(m.$$scope={dirty:c,ctx:u}),t.$set(m)},i(u){r||(d(t.$$.fragment,u),r=!0)},o(u){_(t.$$.fragment,u),r=!1},d(u){u&&k(e),i[161](null),R(t),i[162](null),i[163](null),l=!1,ot(a)}}}var vp=!0;function kf(i){return i?i.offsetTop+kf(i.offsetParent):0}function yp(i){return i?i.offsetLeft+yp(i.offsetParent):0}function H6(i,e,t){let n,o,r,l,a,s,u,c,m,h,w,g,C,v,E,y,b,P,A,M,N,te,_e,X,$,se,L,K,x,Z,F,Q,J,oe,Be,Ye,Ie,Re,qe,xe,ae,he,ft,{store:ke}=e,{uiConfig:Ke}=e,{title:_t}=e,{thumbUrl:Ze}=e,{videoContainer:Ge}=e,{interactiveContainer:Xe}=e,{live:et}=e,{autoplay:fe}=e,{canRewindLive:Te}=e,{showAds:We}=e,{adsSlotId:le=void 0}=e,{adsParams:Se=void 0}=e,{adsPreviewParam:ht=void 0}=e,{duration:Ee=void 0}=e,{logoClickable:ct}=e,{logoHidden:me}=e,{logoTargetUrl:tt=""}=e,{showNextPrevButtons:Tt=!1}=e,{nextButtonActive:vt=!1}=e,{prevButtonActive:Ue=!1}=e,{endScreenVideoTitle:zt=void 0}=e,{endScreenVideoThumb:Dt=void 0}=e,{isOneVideoPlaylist:Pt=!1}=e,{supportLink:li}=e,{shadowRootContainer:dt=void 0}=e,{outerContainerRef:lt=void 0}=e,{playerStarted:ve=!1}=e,{fullScreenTarget:Je=void 0}=e,{showMiniTimer:gt=!1}=e,{playNextVideo:Ht=wf}=e,{playPrevVideo:kt=wf}=e,{repeatPlaylist:xt=wf}=e,{seekToInteractive:hi}=e,{toggleGraph:qt}=e,{playPrevChapter:Yi}=e,{firstStart:fn}=e,ri=ke.getLogger().createComponentLog("Root component"),Di=ke.interfaceLanguage$;H(i,Di,Y=>t(52,Q=Y));let cn=ke.state.playbackState$;H(i,cn,Y=>t(153,K=Y));let Zi=ke.ads.playbackState;H(i,Zi,Y=>t(154,x=Y));let dn=ke.state.positionWithScrubbing$;H(i,dn,Y=>t(57,Ie=Y));let Ni=ke.state.duration$;H(i,Ni,Y=>t(60,xe=Y));let Oi=ke.playerPhase;H(i,Oi,Y=>t(38,_e=Y));let gi=ke.ui.isFullscreen;H(i,gi,Y=>t(143,g=Y));let bi=ke.ui.controlsVisible;H(i,bi,Y=>t(36,P=Y));let Ti=ke.ui.settingsMenuVisible;H(i,Ti,Y=>t(141,s=Y));let Pi=ke.ui.scrubbingInProgress;H(i,Pi,Y=>t(145,y=Y));let $t=ke.ui.contextMenu.visible$;H(i,$t,Y=>t(33,n=Y));let jt=ke.ui.debugPanelVisible;H(i,jt,Y=>t(63,ft=Y));let Xi=ke.state.isLoaderVisible;H(i,Xi,Y=>t(155,Z=Y));let Gt=ke.state.isEnded$;H(i,Gt,Y=>t(142,c=Y));let Ii=ke.state.chromecastConnected$;H(i,Ii,Y=>t(39,se=Y));let Fi=ke.state.chromecastDeviceName$;H(i,Fi,Y=>t(54,oe=Y));let Ji=ke.ads.postrollPassed;H(i,Ji,Y=>t(148,N=Y));let si=ke.state.isLive$;H(i,si,Y=>t(59,qe=Y));let Ct=ke.state.isPlaying$;H(i,Ct,Y=>t(51,F=Y));let xi=ke.state.crashed$;H(i,xi,Y=>t(37,M=Y));let zi=ke.webApi.annotationsApi,At=ke.webApi.pictureInPictureApi,$i=ke.state.currentSubtitle$;H(i,$i,Y=>t(55,Be=Y));let en=ke.state.currentSubtitleCaptions$;H(i,en,Y=>t(56,Ye=Y));let ei=ke.state.duration$;H(i,ei,Y=>t(58,Re=Y));let Ei=ke.state.graphIsOpened$;H(i,Ei,Y=>t(149,te=Y));let vi=ke.ui.playerSize;H(i,vi,Y=>t(34,h=Y));let Li=ke.ui.is3DVideo;H(i,Li,Y=>t(49,m=Y));let ti=ke.ui.icon3DVideoVisible;H(i,ti,Y=>t(53,J=Y));let Qt=ke.ui.rotateAlpha;H(i,Qt,Y=>t(35,E=Y));let ai=ke.state.isInteractive,Hi=ke.state.isInteractiveTime$;H(i,Hi,Y=>t(146,b=Y));let mi=ke.state.isInteractiveExpectation$;H(i,mi,Y=>t(152,L=Y));let pi=ke.state.hasInteractiveBranches,ui=ke.ui.touched;H(i,ui,Y=>t(150,X=Y));let yi=ke.ui.modals.hotKeyMap.data;H(i,yi,Y=>t(170,u=Y));let tn=ke.ui.modals.hotKeyMap.show;H(i,tn,Y=>t(62,he=Y));let yn=ke.ui.overlayContainer$,Ui=ke.ui.controls.interactiveTimeIndicator;H(i,Ui,Y=>t(171,w=Y));let _i=ke.state.showInteractiveTimeIndicator,ii=ke.ui.contextMenu.position$;H(i,ii,Y=>t(61,ae=Y));let mn=ke.actions.internal.closeSettingsMenu,{fakeIsPlaying$:Ot}=Kn();H(i,Ot,Y=>t(144,v=Y));let Ut,pn,wi,fi,_n;yi.set(Uc());let it,Ai,ci=Oe(!1);H(i,ci,Y=>t(50,C=Y));let je,nn=Oe(!1);H(i,nn,Y=>t(151,$=Y));let wn=Oe(),kn=Oe(!1);H(i,kn,Y=>t(147,A=Y));let on=!1,Ki=!1,hn=!1,Wi=!(fe&&!Ke.controls.showOnStartupAtAutoplay),ni,ln,ki,In,Cn,Sn=!1,An,gn=!1,{toggle:Tn}=Ot,Pn=!1,rn=null,Kt;At==null||At.setContext(Bl());let Mn=()=>{fe&&!ai&&Ke.controls.showOnStartupAtAutoplay&&Yt(Ke.controls.hideTimeout)};ke.setUiCallbacks({onStarted:Mn});let Mi=()=>{window.clearTimeout(wi),nn.set(!1)},Dn=()=>{window.clearTimeout(fi),wn.set(null)},Yt=Y=>{Mi(),nn.set(!0),wi=window.setTimeout(()=>nn.set(!1),Y);let Rt=Y-100;je=window.setTimeout(()=>{C&&ci.set(!1)},Rt>0?Rt:Y)},Nn=(Y,Rt)=>{Dn(),wn.set(Rt),fi=window.setTimeout(()=>wn.set(null),Y)},On=Li.subscribe(Y=>{ti.set(Y),Y&&(window.clearTimeout(_n),_n=window.setTimeout(()=>ti.set(!1),Ke.controls.hide360IconTimeout))}),Vn=()=>pt(this,null,function*(){var Rt,vn,un,lo;let Y=bo();if(Y){let Hn=Nl(),eo=bn();Y=Hn===eo||Hn===dt}if(Y){Yt(Ke.controls.hideTimeoutFullscreen);try{yield At==null?void 0:At.remove()}catch(Hn){ri({message:String(Hn)})}}gi.set(Y),ke.getAdmanWrapper().setFullscreen(Y),g?(vn=(Rt=ke.callbacks)==null?void 0:Rt.onFullscreenEnter)==null||vn.call(Rt):(lo=(un=ke.callbacks)==null?void 0:un.onFullscreenExit)==null||lo.call(un)}),Fn=Y=>{let Rt=Y;vi.set({width:Rt.target.width,height:Rt.target.height})};Nt(()=>{var Rt;return _r(Vn),Ke.features.annotationsInside&&(zi==null||zi.init(Ut)),zo(At)&&(At==null||At.assignPlayerContainer(Ut),At==null||At.registryExternalEventHandlers({resize:Fn})),Xe&&((Rt=Ge.parentElement)==null||Rt.insertBefore(Xe,Ge.nextSibling)),()=>{window.clearTimeout(wi),window.clearTimeout(je),window.clearTimeout(fi),window.clearTimeout(_n),On(),At==null||At.dispose(),hr(Vn)}});let bn=()=>{let Y=Ke.features.fullscreenInternalTargetPlayerContainer||!lt?Ut:lt,Rt=Y.getRootNode(),vn=Rt instanceof ShadowRoot?Rt.host:Rt,un=Je instanceof HTMLElement&&Je.contains(vn);return Ke.allowChangingFullscreenTarget&&Je&&un?Je:Y},ji=()=>pt(this,null,function*(){bo()?(yield pr(document),ri({message:"exit fullscreen"})):(ri({message:"request fullscreen"}),yield mr(bn()))}),re=()=>{mn(),$t.set(!1)},It=Y=>{$t.set(!0),ii.set({left:Y.clientX,top:Y.clientY})};function sn(){kn.set(!0),ai||Yt(Ke.controls.hideTimeoutCursor)}function Vi(){ai||(ci.set(!0),Yt(Ke.controls.hideTimeoutCursor))}function ie(){kn.set(!1),t(132,Ki=!1),t(131,on=!1),Pn=!1,ke.actions.internal.releaseCamera()}function ut(Y){if(w&&_i){let Rt=Y.currentTarget,vn=kf(Rt),un=yp(Rt),lo=Y.pageX-un,Hn=Y.pageY-vn,{left:eo,bottom:to,right:el}=w,_o=el-eo;return lo>=eo-_o&&Hn<=to+_o}}function oi(Y){if(Ut){let Rt=kf(Y.currentTarget),vn=h.height,un=Y.pageY-Rt;if(ut(Y)){t(132,Ki=!1);return}un<40?t(132,Ki=!0):un>vn-40?t(131,on=!0):(t(132,Ki=!1),s||t(131,on=!1))}}function zn(Y){oi(Y),ni||Yt(Ke.controls.hideTimeoutCursor),m&&Pn&&rn&&ke.actions.internal.moveCameraFocusPX(rn.clientX-Y.clientX,rn.clientY-Y.clientY,Y.timeStamp-rn.timeStamp),rn=Y}let Gn=Y=>{Y.button===0&&(Pn=!0,ke.actions.internal.holdCamera()),Yt(Ke.controls.hideTimeoutCursor)},an=Y=>{Y.button===0&&(rn=Y,Pn=!1,ke.actions.internal.releaseCamera()),Yt(Ke.controls.hideTimeoutCursor)},Qn=()=>{vp&&(ri({message:"double click on video"}),ji(),Yt(Ke.controls.hideTimeoutCursor))},ne=()=>{if(n||s){re();return}if(!(c&&!pi)){if(gn)return Tn();if(Kt==null||Kt.focus(),!ve){fn(),Yt(Ke.controls.hideTimeoutCursor);return}ke.actions.internal.togglePlay(),Yt(Ke.controls.hideTimeoutCursor)}},To=Y=>{re(),ui.set(!0),Yt(Ke.controls.hideTimeout),Y&&Nn(Ke.controls.hideHotKeyHelpers,Y)},Pl=()=>{var Y,Rt;re(),(Y=ke.callbacks)!=null&&Y.onOpenHotKeyMap?(Rt=ke.callbacks)==null||Rt.onOpenHotKeyMap(u):tn.update(vn=>!vn)},Il=()=>{if(n||s){re();return}},Zo=()=>{ui.set(!0)},Po=ke.ui.contextMenu.openedByBtnKeyboard$;H(i,Po,Y=>t(140,a=Y));let Io=ke.ui.contextMenu.btnRef$;H(i,Io,Y=>t(139,l=Y));let oo,co=ke.ui.contextMenu.openedByHotKey$;H(i,co,Y=>t(138,r=Y));let mo=ke.ui.contextMenu.lastActiveElem$;H(i,mo,Y=>t(137,o=Y));function Xo(Y){ge[Y?"unshift":"push"](()=>{Ge=Y,t(0,Ge)})}let Jo=()=>Kt==null?void 0:Kt.focus();function Eo(Y){pn=Y,t(41,pn)}let xo=()=>Kt==null?void 0:Kt.focus();function Lo(Y){oo=Y,t(32,oo)}function $o(Y){ge[Y?"unshift":"push"](()=>{Kt=Y,t(48,Kt)})}function Ao(Y){ge[Y?"unshift":"push"](()=>{Ai=Y,t(30,Ai)})}function po(Y){ge[Y?"unshift":"push"](()=>{Ut=Y,t(40,Ut)})}return i.$$set=Y=>{"store"in Y&&t(125,ke=Y.store),"uiConfig"in Y&&t(1,Ke=Y.uiConfig),"title"in Y&&t(2,_t=Y.title),"thumbUrl"in Y&&t(3,Ze=Y.thumbUrl),"videoContainer"in Y&&t(0,Ge=Y.videoContainer),"interactiveContainer"in Y&&t(126,Xe=Y.interactiveContainer),"live"in Y&&t(4,et=Y.live),"autoplay"in Y&&t(5,fe=Y.autoplay),"canRewindLive"in Y&&t(6,Te=Y.canRewindLive),"showAds"in Y&&t(7,We=Y.showAds),"adsSlotId"in Y&&t(8,le=Y.adsSlotId),"adsParams"in Y&&t(9,Se=Y.adsParams),"adsPreviewParam"in Y&&t(10,ht=Y.adsPreviewParam),"duration"in Y&&t(11,Ee=Y.duration),"logoClickable"in Y&&t(12,ct=Y.logoClickable),"logoHidden"in Y&&t(13,me=Y.logoHidden),"logoTargetUrl"in Y&&t(14,tt=Y.logoTargetUrl),"showNextPrevButtons"in Y&&t(15,Tt=Y.showNextPrevButtons),"nextButtonActive"in Y&&t(16,vt=Y.nextButtonActive),"prevButtonActive"in Y&&t(17,Ue=Y.prevButtonActive),"endScreenVideoTitle"in Y&&t(18,zt=Y.endScreenVideoTitle),"endScreenVideoThumb"in Y&&t(19,Dt=Y.endScreenVideoThumb),"isOneVideoPlaylist"in Y&&t(20,Pt=Y.isOneVideoPlaylist),"supportLink"in Y&&t(21,li=Y.supportLink),"shadowRootContainer"in Y&&t(127,dt=Y.shadowRootContainer),"outerContainerRef"in Y&&t(128,lt=Y.outerContainerRef),"playerStarted"in Y&&t(22,ve=Y.playerStarted),"fullScreenTarget"in Y&&t(129,Je=Y.fullScreenTarget),"showMiniTimer"in Y&&t(130,gt=Y.showMiniTimer),"playNextVideo"in Y&&t(23,Ht=Y.playNextVideo),"playPrevVideo"in Y&&t(24,kt=Y.playPrevVideo),"repeatPlaylist"in Y&&t(25,xt=Y.repeatPlaylist),"seekToInteractive"in Y&&t(26,hi=Y.seekToInteractive),"toggleGraph"in Y&&t(27,qt=Y.toggleGraph),"playPrevChapter"in Y&&t(28,Yi=Y.playPrevChapter),"firstStart"in Y&&t(29,fn=Y.firstStart)},i.$$.update=()=>{if(i.$$.dirty[1]&192|i.$$.dirty[4]&1073741824|i.$$.dirty[5]&1&&t(42,it=(_e==="video"&&Z||_e==="ads"&&x==="inactive")&&!M),i.$$.dirty[0]&1073741824&&yn.set(Ai),i.$$.dirty[4]&536871936&&(t(133,hn=Wi&&K!==N6.PLAYING),Wi||t(134,Wi=!0)),i.$$.dirty[4]&272761728&&t(135,ni=b&&!s&&!(on||Ki)&&!(hn&&!L)),i.$$.dirty[1]&448|i.$$.dirty[4]&136448512&&bi.set((hn||s||y||se||$)&&!ni&&(_e==="video"||_e==="ads")&&!M),i.$$.dirty[0]&2|i.$$.dirty[1]&224|i.$$.dirty[4]&67108928&&t(43,ln=Ke.features.thumbTimer&>&&_e==="video"&&!P&&!M&&!ai&&(Ke.hideThumbTimerAfterTouch&&!X||!Ke.hideThumbTimerAfterTouch)),i.$$.dirty[1]&128|i.$$.dirty[4]&34078720&&t(44,ki=_e==="video"&&!te&&g),i.$$.dirty[0]&128|i.$$.dirty[1]&64|i.$$.dirty[4]&17039360&&t(31,In=(We&&N||!We)&&c&&!M),i.$$.dirty[1]&33|i.$$.dirty[4]&12582912&&t(45,Cn=A&&!(P||In)&&!b),i.$$.dirty[0]&2|i.$$.dirty[4]&6295552&&(!y&&Sn&&!b&&Yt(Ke.controls.hideTimeoutCursor),t(136,Sn=y)),i.$$.dirty[0]&1|i.$$.dirty[1]&24&&t(46,An=Ge&&E%180?h.height/h.width:1),i.$$.dirty[4]&1048576&&t(47,gn=v!==null),i.$$.dirty[1]&6|i.$$.dirty[4]&65536&&Ko(oo,n,a),i.$$.dirty[1]&4|i.$$.dirty[4]&32768){let Y=l;Y&&ml(Y,n,Po)}if(i.$$.dirty[1]&6|i.$$.dirty[4]&16384&&Ko(oo,n,r),i.$$.dirty[1]&4|i.$$.dirty[4]&8192){let Y=o;Y&&id(Y,n,co)}},[Ge,Ke,_t,Ze,et,fe,Te,We,le,Se,ht,Ee,ct,me,tt,Tt,vt,Ue,zt,Dt,Pt,li,ve,Ht,kt,xt,hi,qt,Yi,fn,Ai,In,oo,n,h,E,P,M,_e,se,Ut,pn,it,ln,ki,Cn,An,gn,Kt,m,C,F,Q,J,oe,Be,Ye,Ie,Re,qe,xe,ae,he,ft,Di,cn,Zi,dn,Ni,Oi,gi,bi,Ti,Pi,$t,jt,Xi,Gt,Ii,Fi,Ji,si,Ct,xi,$i,en,ei,Ei,vi,Li,ti,Qt,ai,Hi,mi,ui,yi,tn,Ui,ii,Ot,ci,nn,wn,kn,Tn,ji,re,It,sn,Vi,ie,zn,Gn,an,Qn,ne,To,Pl,Il,Zo,Po,Io,co,mo,ke,Xe,dt,lt,Je,gt,on,Ki,hn,Wi,ni,Sn,o,r,l,a,s,c,g,v,y,b,A,N,te,X,$,L,K,x,Z,Xo,Jo,Eo,xo,Lo,$o,Ao,po]}var Cf=class extends j{constructor(e){super(),G(this,e,H6,z6,W,{store:125,uiConfig:1,title:2,thumbUrl:3,videoContainer:0,interactiveContainer:126,live:4,autoplay:5,canRewindLive:6,showAds:7,adsSlotId:8,adsParams:9,adsPreviewParam:10,duration:11,logoClickable:12,logoHidden:13,logoTargetUrl:14,showNextPrevButtons:15,nextButtonActive:16,prevButtonActive:17,endScreenVideoTitle:18,endScreenVideoThumb:19,isOneVideoPlaylist:20,supportLink:21,shadowRootContainer:127,outerContainerRef:128,playerStarted:22,fullScreenTarget:129,showMiniTimer:130,playNextVideo:23,playPrevVideo:24,repeatPlaylist:25,seekToInteractive:26,toggleGraph:27,playPrevChapter:28,firstStart:29},O6,[-1,-1,-1,-1,-1,-1,-1])}},wp=Cf;import{PlaybackState as Q6}from"@vkontakte/videoplayer-core";import{clientChecker as ms,noop as If}from"@vkontakte/videoplayer-shared";function U6(i){Pe(i,"svelte-nhq2ld",".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;animation:svelte-nhq2ld-blink 500ms infinite;opacity:0}.triangle.right.svelte-nhq2ld:nth-child(1),.triangle.left.svelte-nhq2ld:nth-child(3){animation-delay:0ms}.triangle.right.svelte-nhq2ld:nth-child(2),.triangle.left.svelte-nhq2ld:nth-child(2){animation-delay:100ms}.triangle.right.svelte-nhq2ld:nth-child(3),.triangle.left.svelte-nhq2ld:nth-child(1){animation-delay:200ms}@keyframes svelte-nhq2ld-blink{0%{opacity:0}50%{opacity:1}100%{opacity:0}}.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 kp(i){let e,t,n,o,r,l,a,s,u,c,m,h,w,g,C,v=U("doubletap_seek_step",{seconds:i[1].toFixed(0)})+"",E;return{c(){e=T("div"),n=B(),o=T("div"),r=T("div"),l=T("div"),s=B(),u=T("div"),m=B(),h=T("div"),g=B(),C=T("p"),E=De(v),f(e,"class",t="semicircle "+i[0]+" svelte-nhq2ld"),f(l,"class",a="triangle "+i[0]+" svelte-nhq2ld"),f(u,"class",c="triangle "+i[0]+" svelte-nhq2ld"),f(h,"class",w="triangle "+i[0]+" svelte-nhq2ld"),f(r,"class","triangles-wrapper svelte-nhq2ld"),f(C,"class","step-caption svelte-nhq2ld"),f(o,"class","info svelte-nhq2ld")},m(y,b){S(y,e,b),S(y,n,b),S(y,o,b),p(o,r),p(r,l),p(r,s),p(r,u),p(r,m),p(r,h),p(o,g),p(o,C),p(C,E)},p(y,b){b&1&&t!==(t="semicircle "+y[0]+" svelte-nhq2ld")&&f(e,"class",t),b&1&&a!==(a="triangle "+y[0]+" svelte-nhq2ld")&&f(l,"class",a),b&1&&c!==(c="triangle "+y[0]+" svelte-nhq2ld")&&f(u,"class",c),b&1&&w!==(w="triangle "+y[0]+" svelte-nhq2ld")&&f(h,"class",w),b&2&&v!==(v=U("doubletap_seek_step",{seconds:y[1].toFixed(0)})+"")&&Qe(E,v)},d(y){y&&(k(e),k(n),k(o))}}}function K6(i){let e,t,n,o,r=i[2]&&kp(i);return{c(){e=T("div"),r&&r.c(),f(e,"class",t="double-click-area "+i[0]+" svelte-nhq2ld")},m(l,a){S(l,e,a),r&&r.m(e,null),n||(o=pe(e,"click",at(i[3]())),n=!0)},p(l,[a]){l[2]?r?r.p(l,a):(r=kp(l),r.c(),r.m(e,null)):r&&(r.d(1),r=null),a&1&&t!==(t="double-click-area "+l[0]+" svelte-nhq2ld")&&f(e,"class",t)},i:Ce,o:Ce,d(l){l&&k(e),r&&r.d(),n=!1,o()}}}function W6(i,e,t){let{side:n}=e,{seekStep:o}=e,{handleSingleFirstClick:r}=e,{handleSecondClick:l}=e,a=!1,s=0,u=0,c=()=>{let h=0;return()=>{h+=1,h===1?s=window.setTimeout(()=>{r(),h=0},300):(window.clearTimeout(s),h=0,l(),t(2,a=!0),u=window.setTimeout(()=>{t(2,a=!1)},500))}};return Zn(()=>{window.clearTimeout(s),window.clearTimeout(u)}),i.$$set=m=>{"side"in m&&t(0,n=m.side),"seekStep"in m&&t(1,o=m.seekStep),"handleSingleFirstClick"in m&&t(4,r=m.handleSingleFirstClick),"handleSecondClick"in m&&t(5,l=m.handleSecondClick)},[n,o,a,c,r,l]}var Sf=class extends j{constructor(e){super(),G(this,e,W6,K6,W,{side:0,seekStep:1,handleSingleFirstClick:4,handleSecondClick:5},U6)}},Tf=Sf;function j6(i,e,t){let{playNextVideo:n}=e;return Nt(()=>{n()}),i.$$set=o=>{"playNextVideo"in o&&t(0,n=o.playNextVideo)},[n]}var Pf=class extends j{constructor(e){super(),G(this,e,j6,null,W,{playNextVideo:0})}},Cp=Pf;var{window:G6}=Mo;function Y6(i){Pe(i,"svelte-6x5lql",".player-wrapper.svelte-6x5lql{position:absolute;width:100%;height:100%}.player-wrapper.svelte-6x5lql .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-6x5lql{display:inline-block;position:absolute;top:calc(50% - 23px);left:calc(50% - 38px)}.video-wrapper.svelte-6x5lql,.video-container.svelte-6x5lql,.ads-container.svelte-6x5lql{position:absolute;width:100%;height:100%;left:0;top:0}.video-wrapper.svelte-6x5lql{z-index:var(--video-container-z-index);background:var(--black)}.video-container.svelte-6x5lql{z-index:var(--video-container-z-index);transition:var(--rotate-transition-duration) ease all}.video-container.fast-rotate.svelte-6x5lql{transition:none}.ads-container.svelte-6x5lql{z-index:var(--ads-container-z-index);background:var(--black)}")}function Sp(i){let e,t,n,o;e=new Tf({props:{side:"left",seekStep:i[1].controls.seekStepMobile/1e3,handleSingleFirstClick:i[99],handleSecondClick:i[130]}});let r=!i[49]&&Tp(i);return{c(){q(e.$$.fragment),t=B(),r&&r.c(),n=mt()},m(l,a){V(e,l,a),S(l,t,a),r&&r.m(l,a),S(l,n,a),o=!0},p(l,a){let s={};a[0]&2&&(s.seekStep=l[1].controls.seekStepMobile/1e3),e.$set(s),l[49]?r&&(ce(),_(r,1,1,()=>{r=null}),de()):r?(r.p(l,a),a[1]&262144&&d(r,1)):(r=Tp(l),r.c(),d(r,1),r.m(n.parentNode,n))},i(l){o||(d(e.$$.fragment,l),d(r),o=!0)},o(l){_(e.$$.fragment,l),_(r),o=!1},d(l){l&&(k(t),k(n)),R(e,l),r&&r.d(l)}}}function Tp(i){let e,t;return e=new Tf({props:{side:"right",seekStep:i[1].controls.seekStepMobile/1e3,handleSingleFirstClick:i[99],handleSecondClick:i[131]}}),{c(){q(e.$$.fragment)},m(n,o){V(e,n,o),t=!0},p(n,o){let r={};o[0]&2&&(r.seekStep=n[1].controls.seekStepMobile/1e3),e.$set(r)},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){_(e.$$.fragment,n),t=!1},d(n){R(e,n)}}}function Pp(i){var n;let e,t;return e=new ds({props:{thumbUrl:i[2],startTime:(n=i[3])==null?void 0:n.startTime}}),{c(){q(e.$$.fragment)},m(o,r){V(e,o,r),t=!0},p(o,r){var a;let l={};r[0]&4&&(l.thumbUrl=o[2]),r[0]&8&&(l.startTime=(a=o[3])==null?void 0:a.startTime),e.$set(l)},i(o){t||(d(e.$$.fragment,o),t=!0)},o(o){_(e.$$.fragment,o),t=!1},d(o){R(e,o)}}}function Ip(i){let e,t;return e=new Cl({props:{kind:"recover",thumbUrl:i[2]}}),{c(){q(e.$$.fragment)},m(n,o){V(e,n,o),t=!0},p(n,o){let r={};o[0]&4&&(r.thumbUrl=n[2]),e.$set(r)},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){_(e.$$.fragment,n),t=!1},d(n){R(e,n)}}}function Ep(i){let e,t;return e=new Cl({props:{kind:"record",thumbUrl:i[2]}}),{c(){q(e.$$.fragment)},m(n,o){V(e,n,o),t=!0},p(n,o){let r={};o[0]&4&&(r.thumbUrl=n[2]),e.$set(r)},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){_(e.$$.fragment,n),t=!1},d(n){R(e,n)}}}function Lp(i){let e,t,n;return t=new gr({props:{adsSlotId:i[7],adsParams:i[8],adsPreviewParam:i[9],duration:i[10]}}),{c(){e=T("div"),q(t.$$.fragment),f(e,"class","ads-container svelte-6x5lql"),O(e,"hidden",i[34]!=="ads")},m(o,r){S(o,e,r),V(t,e,null),n=!0},p(o,r){let l={};r[0]&128&&(l.adsSlotId=o[7]),r[0]&256&&(l.adsParams=o[8]),r[0]&512&&(l.adsPreviewParam=o[9]),r[0]&1024&&(l.duration=o[10]),t.$set(l),(!n||r[1]&8)&&O(e,"hidden",o[34]!=="ads")},i(o){n||(d(t.$$.fragment,o),n=!0)},o(o){_(t.$$.fragment,o),n=!1},d(o){o&&k(e),R(t)}}}function Ap(i){let e,t;return e=new Cp({props:{playNextVideo:i[22]}}),{c(){q(e.$$.fragment)},m(n,o){V(e,n,o),t=!0},p(n,o){let r={};o[0]&4194304&&(r.playNextVideo=n[22]),e.$set(r)},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){_(e.$$.fragment,n),t=!1},d(n){R(e,n)}}}function Mp(i){let e,t;return e=new ss({}),{c(){q(e.$$.fragment)},m(n,o){V(e,n,o),t=!0},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){_(e.$$.fragment,n),t=!1},d(n){R(e,n)}}}function Vp(i){let e,t,n;return t=new sr({props:{"aria-label":U("video360")}}),{c(){e=T("div"),q(t.$$.fragment),f(e,"class","spherical-video-icon svelte-6x5lql")},m(o,r){S(o,e,r),V(t,e,null),n=!0},i(o){n||(d(t.$$.fragment,o),n=!0)},o(o){_(t.$$.fragment,o),n=!1},d(o){o&&k(e),R(t)}}}function Rp(i){let e,t;return e=new us({props:{thumbUrl:i[2],chromecastDeviceName:i[52]}}),{c(){q(e.$$.fragment)},m(n,o){V(e,n,o),t=!0},p(n,o){let r={};o[0]&4&&(r.thumbUrl=n[2]),o[1]&2097152&&(r.chromecastDeviceName=n[52]),e.$set(r)},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){_(e.$$.fragment,n),t=!1},d(n){R(e,n)}}}function Bp(i){let e,t;return e=new as({props:{shifted:i[30],captions:i[54],position:i[44],playerSize:i[31],isMobile:!0}}),{c(){q(e.$$.fragment)},m(n,o){V(e,n,o),t=!0},p(n,o){let r={};o[0]&1073741824&&(r.shifted=n[30]),o[1]&8388608&&(r.captions=n[54]),o[1]&8192&&(r.position=n[44]),o[1]&1&&(r.playerSize=n[31]),e.$set(r)},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){_(e.$$.fragment,n),t=!1},d(n){R(e,n)}}}function qp(i){let e,t,n,o,r;return t=new fs({}),{c(){e=T("div"),q(t.$$.fragment)},m(l,a){S(l,e,a),V(t,e,null),n=!0,o||(r=pe(e,"click",at(i[100])),o=!0)},p:Ce,i(l){n||(d(t.$$.fragment,l),n=!0)},o(l){_(t.$$.fragment,l),n=!1},d(l){l&&k(e),R(t),o=!1,r()}}}function Dp(i){let e,t,n;function o(l){i[132](l)}let r={bottomHidden:i[34]==="thumb"||i[34]==="LiveWaitingStart"||i[34]==="LiveWaitingRecover"||i[34]==="LiveWaitingRecord"||i[34]==="ads",showControls:i[30],bottomNoSmooth:i[45],isAds:i[34]==="ads",canRewindLive:i[5]&&i[55]!==0,logoClickable:i[11],logoHidden:i[12],logoTargetUrl:i[13],showNextPrevButtons:i[14],nextButtonActive:i[15],prevButtonActive:i[16],isOneVideoPlaylist:i[19],supportLink:i[20],customFullscreenSupported:i[39],playNextVideo:i[22],playPrevVideo:i[23],repeatPlaylist:i[24],toggleFullscreen:i[97],seekToInteractive:i[25],toggleGraph:i[26],playPrevChapter:i[27],onDisabledPlayPrevChapterClick:i[103],onDisabledSeekToInteractiveClick:i[104]};return i[37]!==void 0&&(r.controlsElementRef=i[37]),e=new rs({props:r}),ge.push(()=>He(e,"controlsElementRef",o)),{c(){q(e.$$.fragment)},m(l,a){V(e,l,a),n=!0},p(l,a){let s={};a[1]&8&&(s.bottomHidden=l[34]==="thumb"||l[34]==="LiveWaitingStart"||l[34]==="LiveWaitingRecover"||l[34]==="LiveWaitingRecord"||l[34]==="ads"),a[0]&1073741824&&(s.showControls=l[30]),a[1]&16384&&(s.bottomNoSmooth=l[45]),a[1]&8&&(s.isAds=l[34]==="ads"),a[0]&32|a[1]&16777216&&(s.canRewindLive=l[5]&&l[55]!==0),a[0]&2048&&(s.logoClickable=l[11]),a[0]&4096&&(s.logoHidden=l[12]),a[0]&8192&&(s.logoTargetUrl=l[13]),a[0]&16384&&(s.showNextPrevButtons=l[14]),a[0]&32768&&(s.nextButtonActive=l[15]),a[0]&65536&&(s.prevButtonActive=l[16]),a[0]&524288&&(s.isOneVideoPlaylist=l[19]),a[0]&1048576&&(s.supportLink=l[20]),a[1]&256&&(s.customFullscreenSupported=l[39]),a[0]&4194304&&(s.playNextVideo=l[22]),a[0]&8388608&&(s.playPrevVideo=l[23]),a[0]&16777216&&(s.repeatPlaylist=l[24]),a[0]&33554432&&(s.seekToInteractive=l[25]),a[0]&67108864&&(s.toggleGraph=l[26]),a[0]&134217728&&(s.playPrevChapter=l[27]),!t&&a[1]&64&&(t=!0,s.controlsElementRef=l[37],ze(()=>t=!1)),e.$set(s)},i(l){n||(d(e.$$.fragment,l),n=!0)},o(l){_(e.$$.fragment,l),n=!1},d(l){R(e,l)}}}function Np(i){let e,t;return e=new bl({}),{c(){q(e.$$.fragment)},m(n,o){V(e,n,o),t=!0},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){_(e.$$.fragment,n),t=!1},d(n){R(e,n)}}}function Op(i){let e,t;return e=new Sr({}),{c(){q(e.$$.fragment)},m(n,o){V(e,n,o),t=!0},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){_(e.$$.fragment,n),t=!1},d(n){R(e,n)}}}function Fp(i){let e,t,n=i[5]&&i[78]&&!i[48].has("TIMELINE"),o,r,l,a,s,u,c,m,h,w,g,C,v,E,y,b,P;e=new cs({props:{hidden:i[34]!=="thumb"||i[33]||i[89]&&i[4],thumbUrl:i[2],startVideo:i[28]}});let A=n&&Sp(i),M=i[34]==="LiveWaitingStart"&&Pp(i),N=i[34]==="LiveWaitingRecover"&&Ip(i),te=i[34]==="LiveWaitingRecord"&&Ep(i),_e=i[6]&&i[21]&&Lp(i),X=i[41]&&i[17]&&i[18]&&Ap(i),$=i[50]&&Mp(i),se=i[51]&&Vp(i),L=i[35]&&Rp(i),K=i[53].value!=="off"&&Bp(i),x=i[33]&&qp(i),Z=i[21]&&Dp(i);v=new vr({props:{isLive:i[56],isHidden:!i[40],isPlaying:i[46],position:i[44],duration:i[43]}});let F=i[38]&&Np(i),Q=i[57]&&Op(i);return{c(){q(e.$$.fragment),t=B(),A&&A.c(),o=B(),M&&M.c(),r=B(),N&&N.c(),l=B(),te&&te.c(),a=B(),_e&&_e.c(),s=B(),X&&X.c(),u=B(),$&&$.c(),c=B(),se&&se.c(),m=B(),L&&L.c(),h=B(),K&&K.c(),w=B(),x&&x.c(),g=B(),Z&&Z.c(),C=B(),q(v.$$.fragment),E=B(),F&&F.c(),y=B(),Q&&Q.c(),b=mt()},m(J,oe){V(e,J,oe),S(J,t,oe),A&&A.m(J,oe),S(J,o,oe),M&&M.m(J,oe),S(J,r,oe),N&&N.m(J,oe),S(J,l,oe),te&&te.m(J,oe),S(J,a,oe),_e&&_e.m(J,oe),S(J,s,oe),X&&X.m(J,oe),S(J,u,oe),$&&$.m(J,oe),S(J,c,oe),se&&se.m(J,oe),S(J,m,oe),L&&L.m(J,oe),S(J,h,oe),K&&K.m(J,oe),S(J,w,oe),x&&x.m(J,oe),S(J,g,oe),Z&&Z.m(J,oe),S(J,C,oe),V(v,J,oe),S(J,E,oe),F&&F.m(J,oe),S(J,y,oe),Q&&Q.m(J,oe),S(J,b,oe),P=!0},p(J,oe){let Be={};oe[0]&16|oe[1]&12&&(Be.hidden=J[34]!=="thumb"||J[33]||J[89]&&J[4]),oe[0]&4&&(Be.thumbUrl=J[2]),oe[0]&268435456&&(Be.startVideo=J[28]),e.$set(Be),oe[0]&32|oe[1]&131072&&(n=J[5]&&J[78]&&!J[48].has("TIMELINE")),n?A?(A.p(J,oe),oe[0]&32|oe[1]&131072&&d(A,1)):(A=Sp(J),A.c(),d(A,1),A.m(o.parentNode,o)):A&&(ce(),_(A,1,1,()=>{A=null}),de()),J[34]==="LiveWaitingStart"?M?(M.p(J,oe),oe[1]&8&&d(M,1)):(M=Pp(J),M.c(),d(M,1),M.m(r.parentNode,r)):M&&(ce(),_(M,1,1,()=>{M=null}),de()),J[34]==="LiveWaitingRecover"?N?(N.p(J,oe),oe[1]&8&&d(N,1)):(N=Ip(J),N.c(),d(N,1),N.m(l.parentNode,l)):N&&(ce(),_(N,1,1,()=>{N=null}),de()),J[34]==="LiveWaitingRecord"?te?(te.p(J,oe),oe[1]&8&&d(te,1)):(te=Ep(J),te.c(),d(te,1),te.m(a.parentNode,a)):te&&(ce(),_(te,1,1,()=>{te=null}),de()),J[6]&&J[21]?_e?(_e.p(J,oe),oe[0]&2097216&&d(_e,1)):(_e=Lp(J),_e.c(),d(_e,1),_e.m(s.parentNode,s)):_e&&(ce(),_(_e,1,1,()=>{_e=null}),de()),J[41]&&J[17]&&J[18]?X?(X.p(J,oe),oe[0]&393216|oe[1]&1024&&d(X,1)):(X=Ap(J),X.c(),d(X,1),X.m(u.parentNode,u)):X&&(ce(),_(X,1,1,()=>{X=null}),de()),J[50]?$?oe[1]&524288&&d($,1):($=Mp(J),$.c(),d($,1),$.m(c.parentNode,c)):$&&(ce(),_($,1,1,()=>{$=null}),de()),J[51]?se?oe[1]&1048576&&d(se,1):(se=Vp(J),se.c(),d(se,1),se.m(m.parentNode,m)):se&&(ce(),_(se,1,1,()=>{se=null}),de()),J[35]?L?(L.p(J,oe),oe[1]&16&&d(L,1)):(L=Rp(J),L.c(),d(L,1),L.m(h.parentNode,h)):L&&(ce(),_(L,1,1,()=>{L=null}),de()),J[53].value!=="off"?K?(K.p(J,oe),oe[1]&4194304&&d(K,1)):(K=Bp(J),K.c(),d(K,1),K.m(w.parentNode,w)):K&&(ce(),_(K,1,1,()=>{K=null}),de()),J[33]?x?(x.p(J,oe),oe[1]&4&&d(x,1)):(x=qp(J),x.c(),d(x,1),x.m(g.parentNode,g)):x&&(ce(),_(x,1,1,()=>{x=null}),de()),J[21]?Z?(Z.p(J,oe),oe[0]&2097152&&d(Z,1)):(Z=Dp(J),Z.c(),d(Z,1),Z.m(C.parentNode,C)):Z&&(ce(),_(Z,1,1,()=>{Z=null}),de());let Ye={};oe[1]&33554432&&(Ye.isLive=J[56]),oe[1]&512&&(Ye.isHidden=!J[40]),oe[1]&32768&&(Ye.isPlaying=J[46]),oe[1]&8192&&(Ye.position=J[44]),oe[1]&4096&&(Ye.duration=J[43]),v.$set(Ye),J[38]?F?oe[1]&128&&d(F,1):(F=Np(J),F.c(),d(F,1),F.m(y.parentNode,y)):F&&(ce(),_(F,1,1,()=>{F=null}),de()),J[57]?Q?oe[1]&67108864&&d(Q,1):(Q=Op(J),Q.c(),d(Q,1),Q.m(b.parentNode,b)):Q&&(ce(),_(Q,1,1,()=>{Q=null}),de())},i(J){P||(d(e.$$.fragment,J),d(A),d(M),d(N),d(te),d(_e),d(X),d($),d(se),d(L),d(K),d(x),d(Z),d(v.$$.fragment,J),d(F),d(Q),P=!0)},o(J){_(e.$$.fragment,J),_(A),_(M),_(N),_(te),_(_e),_(X),_($),_(se),_(L),_(K),_(x),_(Z),_(v.$$.fragment,J),_(F),_(Q),P=!1},d(J){J&&(k(t),k(o),k(r),k(l),k(a),k(s),k(u),k(c),k(m),k(h),k(w),k(g),k(C),k(E),k(y),k(b)),R(e,J),A&&A.d(J),M&&M.d(J),N&&N.d(J),te&&te.d(J),_e&&_e.d(J),X&&X.d(J),$&&$.d(J),se&&se.d(J),L&&L.d(J),K&&K.d(J),x&&x.d(J),Z&&Z.d(J),R(v,J),F&&F.d(J),Q&&Q.d(J)}}}function Z6(i){let e,t,n,o,r,l=i[47],a,s,u,c,m,h,w=Fp(i);return{c(){e=T("div"),t=T("div"),n=T("div"),r=B(),w.c(),a=B(),s=T("div"),f(n,"class","video-container svelte-6x5lql"),f(n,"style",o=`transform: rotate(${i[32]}deg) scale(${i[42]})`),f(n,"data-testid","video-container"),f(n,"data-is-playing",i[46]),O(n,"fast-rotate",!i[1].isSmoothVideoRotate),f(t,"class","video-wrapper svelte-6x5lql"),O(t,"hidden",i[34]!=="video"),f(s,"class","overlay-container"),f(e,"class","player-wrapper svelte-6x5lql"),f(e,"role","region"),f(e,"aria-label",u=U("aria_label_video_player")),f(e,"tabindex","-1")},m(g,C){S(g,e,C),p(e,t),p(t,n),i[129](n),p(e,r),w.m(e,null),p(e,a),p(e,s),i[133](s),i[134](e),c=!0,m||(h=[pe(G6,"blur",i[98]),pe(t,"click",Xt(i[99])),pe(e,"click",i[101],!0),pe(e,"focusin",i[102],!0)],m=!0)},p(g,C){(!c||C[1]&2050&&o!==(o=`transform: rotate(${g[32]}deg) scale(${g[42]})`))&&f(n,"style",o),(!c||C[1]&32768)&&f(n,"data-is-playing",g[46]),(!c||C[0]&2)&&O(n,"fast-rotate",!g[1].isSmoothVideoRotate),(!c||C[1]&8)&&O(t,"hidden",g[34]!=="video"),C[1]&65536&&W(l,l=g[47])?(ce(),_(w,1,1,Ce),de(),w=Fp(g),w.c(),d(w,1),w.m(e,a)):w.p(g,C)},i(g){c||(d(w),c=!0)},o(g){_(w),c=!1},d(g){g&&k(e),i[129](null),w.d(g),i[133](null),i[134](null),m=!1,ot(h)}}}function X6(i,e,t){var bn,ji;let n,o,r,l,a,s,u,c,m,h,w,g,C,v,E,y,b,P,A,M,N,te,_e,X,$,se,L,K,x,Z,F,Q,J,oe,Be,Ye,{store:Ie}=e,{uiConfig:Re}=e,{thumbUrl:qe}=e,{videoContainer:xe}=e,{interactiveContainer:ae}=e,{live:he}=e,{autoplay:ft}=e,{canRewindLive:ke}=e,{showAds:Ke}=e,{adsSlotId:_t=void 0}=e,{adsParams:Ze=void 0}=e,{adsPreviewParam:Ge=void 0}=e,{duration:Xe=void 0}=e,{logoClickable:et}=e,{logoHidden:fe}=e,{logoTargetUrl:Te=""}=e,{showNextPrevButtons:We=!1}=e,{nextButtonActive:le=!1}=e,{prevButtonActive:Se=!1}=e,{endScreenVideoTitle:ht=void 0}=e,{endScreenVideoThumb:Ee=void 0}=e,{isOneVideoPlaylist:ct=!1}=e,{supportLink:me}=e,{shadowRootContainer:tt=void 0}=e,{outerContainerRef:Tt=void 0}=e,{showMiniTimer:vt=!1}=e,{fullScreenTarget:Ue=void 0}=e,{playerStarted:zt=!1}=e,{playNextVideo:Dt=If}=e,{playPrevVideo:Pt=If}=e,{repeatPlaylist:li=If}=e,{seekToInteractive:dt}=e,{toggleGraph:lt}=e,{playPrevChapter:ve}=e,{firstStart:Je}=e,{seekTime:gt}=e,Ht=Ie.getLogger().createComponentLog("Root component"),kt=Ie.interfaceLanguage$;H(i,kt,re=>t(47,se=re));let xt=Ie.state.playbackState$;H(i,xt,re=>t(126,te=re));let hi=Ie.ads.playbackState;H(i,hi,re=>t(127,_e=re));let qt=Ie.state.positionWithScrubbing$;H(i,qt,re=>t(44,a=re));let Yi=Ie.state.duration$;H(i,Yi,re=>t(43,l=re));let fn=Ie.playerPhase;H(i,fn,re=>t(34,P=re));let ri=Ie.ui.isFullscreen;H(i,ri,re=>t(140,s=re));let Di=Ie.ui.controlsVisible;H(i,Di,re=>t(30,o=re));let cn=Ie.ui.interactiveHideMobileControls;H(i,cn,re=>t(118,h=re));let Zi=Ie.ui.settingsMenuVisible;H(i,Zi,re=>t(117,n=re));let dn=Ie.ui.scrubbingInProgress;H(i,dn,re=>t(119,g=re));let Ni=Ie.ui.debugPanelVisible;H(i,Ni,re=>t(57,Ye=re));let Oi=Ie.state.isLoaderVisible;H(i,Oi,re=>t(128,X=re));let gi=Ie.state.isEnded$;H(i,gi,re=>t(121,E=re));let bi=Ie.state.chromecastConnected$;H(i,bi,re=>t(35,A=re));let Ti=Ie.state.chromecastDeviceName$;H(i,Ti,re=>t(52,F=re));let Pi=Ie.ads.postrollPassed;H(i,Pi,re=>t(122,y=re));let $t=Ie.ui.mobileUnmuteButtonExpanded,jt=Ie.ui.mobileUnmuteButtonVisible,Xi=Ie.state.isLive$;H(i,Xi,re=>t(56,Be=re));let Gt=Ie.state.isPlaying$;H(i,Gt,re=>t(46,$=re));let Ii=Ie.state.isActiveLive$;H(i,Ii,re=>t(49,K=re));let Fi=Ie.state.isRewindableLive$,Ji=Ie.state.crashed$;H(i,Ji,re=>t(33,v=re));let si=Ie.webApi.annotationsApi,Ct=Ie.webApi.pictureInPictureApi,xi=Ie.state.videoSize$;H(i,xi,re=>t(141,c=re));let zi=Ie.state.currentSubtitle$;H(i,zi,re=>t(53,Q=re));let At=Ie.state.currentSubtitleCaptions$;H(i,At,re=>t(54,J=re));let $i=Ie.state.duration$;H(i,$i,re=>t(55,oe=re));let en=Ie.state.graphIsOpened$;H(i,en,re=>t(125,N=re));let ei=Ie.ui.playerSize;H(i,ei,re=>t(31,u=re));let Ei=Ie.ui.is3DVideo;H(i,Ei,re=>t(50,x=re));let vi=Ie.ui.icon3DVideoVisible;H(i,vi,re=>t(51,Z=re));let Li=Ie.ui.rotateAlpha;H(i,Li,re=>t(32,w=re));let ti=Ie.state.isInteractive,Qt=Ie.state.isInteractiveTime$;H(i,Qt,re=>t(120,C=re));let ai=Ie.state.isInteractiveExpectation$;H(i,ai,re=>t(124,M=re));let Hi=Ie.state.hasInteractiveBranches,mi=Ie.ui.controls.disabledControls$;H(i,mi,re=>t(48,L=re));let pi=Ie.ui.touched;H(i,pi,re=>t(123,b=re));let ui=Ie.ui.overlayContainer$,yi=Ie.state.loadedMetadata$;H(i,yi,re=>t(139,r=re));let tn=Ie.actions.internal.closeSettingsMenu,yn=(bn=Ie.callbacks)==null?void 0:bn.onDisabledPlayPrevChapterClick,Ui=(ji=Ie.callbacks)==null?void 0:ji.onDisabledSeekToInteractiveClick,_i,ii,mn,Ot,Ut,pn,wi,fi=Oe(!1);H(i,fi,re=>t(45,m=re));let _n,it=!1,Ai,ci=!1,je,nn=!0,wn,kn,on=!1,Ki;Ct==null||Ct.setContext(Bl());let hn=re=>{clearTimeout(Ot),re&&(jt.set(!0),$t.set(!0),Ot=window.setTimeout(()=>{$t.set(!1)},Re.controls.collapseMobileUnmute),ti||ni(Re.controls.hideTimeoutMobile))};Ie.setUiCallbacks({onStarted:hn});let Wi=()=>{window.clearTimeout(mn),t(112,it=!1),h&&cn.set(!1)},ni=re=>{Wi(),t(112,it=!0),mn=window.setTimeout(()=>t(112,it=!1),re);let It=re-100;_n=window.setTimeout(()=>{m&&fi.set(!1)},It>0?It:re)},ln=Ei.subscribe(re=>{vi.set(re),re&&(window.clearTimeout(Ut),Ut=window.setTimeout(()=>vi.set(!1),Re.controls.hide360IconTimeout))}),ki=()=>pt(this,null,function*(){var It,sn,Vi,ie;let re=bo();if(re){let ut=Nl(),oi=Sn(),zn=ms.isSamsungBrowser&&ut===tt;re=ut===oi||zn}if(re){ni(Re.controls.hideTimeoutFullscreen);try{yield Ct==null?void 0:Ct.remove()}catch(ut){Ht({message:String(ut)})}try{let ut=c!=null&&c.width&&(c!=null&&c.height)?c:u;yield zc(ut)}catch(ut){Ht({message:String(ut)})}}ri.set(re),Ie.getAdmanWrapper().setFullscreen(re),s?(sn=(It=Ie.callbacks)==null?void 0:It.onFullscreenEnter)==null||sn.call(It):(ie=(Vi=Ie.callbacks)==null?void 0:Vi.onFullscreenExit)==null||ie.call(Vi)}),In=re=>{let It=re;ei.set({width:It.target.width,height:It.target.height})};Nt(()=>{var It;return _r(ki),Re.features.annotationsInside&&(si==null||si.init(_i)),zo(Ct)&&(Ct==null||Ct.assignPlayerContainer(_i),Ct==null||Ct.registryExternalEventHandlers({resize:In})),t(39,nn=!ms.isIphoneOrOldIpad),ae&&((It=xe.parentElement)==null||It.insertBefore(ae,xe.nextSibling)),()=>{window.clearTimeout(mn),window.clearTimeout(_n),window.clearTimeout(Ot),window.clearTimeout(Ut),ln(),Ct==null||Ct.dispose(),hr(ki)}});let Cn=re=>{let It=a+(re==="forward"?1:-1)*Re.controls.seekStepMobile/1e3;It<0?It=0:It>l&&(It=l-1),t(114,ci=!0),gt(It)},Sn=()=>{let re=ms.isIOS||Re.features.fullscreenInternalTargetPlayerContainer||!Tt?_i:Tt,It=re.getRootNode(),sn=It instanceof ShadowRoot?It.host:It,Vi=Ue instanceof HTMLElement&&Ue.contains(sn);return Re.allowChangingFullscreenTarget&&Ue&&Vi?Ue:re},An=()=>pt(this,null,function*(){if(bo())yield pr(document),Ht({message:"exit fullscreen"});else{if(Ht({message:"request fullscreen"}),ms.isIOS&&!r)return;yield mr(Sn())}}),gn=()=>{tn()},Tn=()=>{if(n){gn();return}if(!zt){Je(),ni(Re.controls.hideTimeoutCursor);return}t(114,ci=!1),o?Wi():ni(Re.controls.hideTimeoutMobile)},Pn=()=>{if(n){gn();return}},rn=()=>{pi.set(!0)},Kt=()=>{ti||(fi.set(!0),ni(Re.controls.hideTimeoutCursor))},Mn=re=>{yn&&(yn(re),ni(Re.controls.hideTimeoutMobile))},Mi=re=>{Ui&&(Ui(re),ni(Re.controls.hideTimeoutMobile))};function Dn(re){ge[re?"unshift":"push"](()=>{xe=re,t(0,xe)})}let Yt=()=>Cn("backward"),Nn=()=>Cn("forward");function On(re){ii=re,t(37,ii)}function Vn(re){ge[re?"unshift":"push"](()=>{wi=re,t(29,wi)})}function Fn(re){ge[re?"unshift":"push"](()=>{_i=re,t(36,_i)})}return i.$$set=re=>{"store"in re&&t(105,Ie=re.store),"uiConfig"in re&&t(1,Re=re.uiConfig),"thumbUrl"in re&&t(2,qe=re.thumbUrl),"videoContainer"in re&&t(0,xe=re.videoContainer),"interactiveContainer"in re&&t(106,ae=re.interactiveContainer),"live"in re&&t(3,he=re.live),"autoplay"in re&&t(4,ft=re.autoplay),"canRewindLive"in re&&t(5,ke=re.canRewindLive),"showAds"in re&&t(6,Ke=re.showAds),"adsSlotId"in re&&t(7,_t=re.adsSlotId),"adsParams"in re&&t(8,Ze=re.adsParams),"adsPreviewParam"in re&&t(9,Ge=re.adsPreviewParam),"duration"in re&&t(10,Xe=re.duration),"logoClickable"in re&&t(11,et=re.logoClickable),"logoHidden"in re&&t(12,fe=re.logoHidden),"logoTargetUrl"in re&&t(13,Te=re.logoTargetUrl),"showNextPrevButtons"in re&&t(14,We=re.showNextPrevButtons),"nextButtonActive"in re&&t(15,le=re.nextButtonActive),"prevButtonActive"in re&&t(16,Se=re.prevButtonActive),"endScreenVideoTitle"in re&&t(17,ht=re.endScreenVideoTitle),"endScreenVideoThumb"in re&&t(18,Ee=re.endScreenVideoThumb),"isOneVideoPlaylist"in re&&t(19,ct=re.isOneVideoPlaylist),"supportLink"in re&&t(20,me=re.supportLink),"shadowRootContainer"in re&&t(107,tt=re.shadowRootContainer),"outerContainerRef"in re&&t(108,Tt=re.outerContainerRef),"showMiniTimer"in re&&t(109,vt=re.showMiniTimer),"fullScreenTarget"in re&&t(110,Ue=re.fullScreenTarget),"playerStarted"in re&&t(21,zt=re.playerStarted),"playNextVideo"in re&&t(22,Dt=re.playNextVideo),"playPrevVideo"in re&&t(23,Pt=re.playPrevVideo),"repeatPlaylist"in re&&t(24,li=re.repeatPlaylist),"seekToInteractive"in re&&t(25,dt=re.seekToInteractive),"toggleGraph"in re&&t(26,lt=re.toggleGraph),"playPrevChapter"in re&&t(27,ve=re.playPrevChapter),"firstStart"in re&&t(28,Je=re.firstStart),"seekTime"in re&&t(111,gt=re.seekTime)},i.$$.update=()=>{i.$$.dirty[1]&12|i.$$.dirty[4]&24&&t(38,pn=(P==="video"&&X||P==="ads"&&_e==="inactive")&&!v),i.$$.dirty[0]&536870912&&ui.set(wi),i.$$.dirty[4]&4&&t(113,Ai=te!==Q6.PLAYING),i.$$.dirty[3]&303562752|i.$$.dirty[4]&3&&t(115,je=N||h||!it&&(E&&!!Hi||Ai&&M)),i.$$.dirty[1]&28|i.$$.dirty[3]&91750400&&Di.set((Ai||n||g||A||it&&!ci)&&!je&&P==="video"&&!v),i.$$.dirty[0]&1073741826|i.$$.dirty[1]&12|i.$$.dirty[3]&1073807360&&t(40,wn=Re.features.thumbTimer&&vt&&P==="video"&&!o&&!v&&!ti&&(Re.hideThumbTimerAfterTouch&&!b||!Re.hideThumbTimerAfterTouch)),i.$$.dirty[0]&64|i.$$.dirty[1]&4|i.$$.dirty[3]&805306368&&t(41,kn=(Ke&&y||!Ke)&&E&&!v),i.$$.dirty[0]&2|i.$$.dirty[3]&209715200&&(!g&&on&&!C&&ni(Re.controls.hideTimeoutMobile),t(116,on=g)),i.$$.dirty[0]&1|i.$$.dirty[1]&3&&t(42,Ki=xe&&w%180?u.height/u.width:1)},[xe,Re,qe,he,ft,ke,Ke,_t,Ze,Ge,Xe,et,fe,Te,We,le,Se,ht,Ee,ct,me,zt,Dt,Pt,li,dt,lt,ve,Je,wi,o,u,w,v,P,A,_i,ii,pn,nn,wn,kn,Ki,l,a,m,$,se,L,K,x,Z,F,Q,J,oe,Be,Ye,kt,xt,hi,qt,Yi,fn,ri,Di,cn,Zi,dn,Ni,Oi,gi,bi,Ti,Pi,Xi,Gt,Ii,Fi,Ji,xi,zi,At,$i,en,ei,Ei,vi,Li,ti,Qt,ai,mi,pi,yi,fi,Cn,An,gn,Tn,Pn,rn,Kt,Mn,Mi,Ie,ae,tt,Tt,vt,Ue,gt,it,Ai,ci,je,on,n,h,g,C,E,y,b,M,N,te,_e,X,Dn,Yt,Nn,On,Vn,Fn]}var Ef=class extends j{constructor(e){super(),G(this,e,X6,Z6,W,{store:105,uiConfig:1,thumbUrl:2,videoContainer:0,interactiveContainer:106,live:3,autoplay:4,canRewindLive:5,showAds:6,adsSlotId:7,adsParams:8,adsPreviewParam:9,duration:10,logoClickable:11,logoHidden:12,logoTargetUrl:13,showNextPrevButtons:14,nextButtonActive:15,prevButtonActive:16,endScreenVideoTitle:17,endScreenVideoThumb:18,isOneVideoPlaylist:19,supportLink:20,shadowRootContainer:107,outerContainerRef:108,showMiniTimer:109,fullScreenTarget:110,playerStarted:21,playNextVideo:22,playPrevVideo:23,repeatPlaylist:24,seekToInteractive:25,toggleGraph:26,playPrevChapter:27,firstStart:28,seekTime:111},Y6,[-1,-1,-1,-1,-1,-1])}},zp=Ef;function e8(i){Pe(i,"svelte-167r2e3",`.root.svelte-167r2e3{--white:#fff;--black:#000;--red:#ff3347;--blue-light:#70c1ff;--black-alpha-40:rgba(0, 0, 0, 0.40);--white-alpha-24:rgba(255, 255, 255, 0.24);--white-alpha-72:rgba(255, 255, 255, 0.72);--devider-gray:#dce1e6;--text-gray:#626d7a;--controls-height:40px;--controls-gradient-height:100px;--controls-transition-duration:0.25s;--controls-transition-fn:cubic-bezier(0.455, 0.03, 0.515, 0.955);--controls-desktop-item-margin-left:4px;--focused:var(--white);--focused-element-shadow:inset 0 0 0 2px var(--focused);--focused-slider-shadow:0 0 0 2px var(--focused);--big-play-size:96px;--big-play-radius:50%;--big-play-bg-color:rgba(0, 0, 0, 0.5);--big-play-hover-bg-color:rgba(0, 0, 0, 0.6);--big-play-icon-width:38px;--big-play-icon-height:33px;--interactive-episode-complete:rgba(92, 156, 230, 1);--slider-height:5px;--slider-video-episode-gap:1.5px;--slider-radius:calc(var(--slider-height) / 2);--slider-handle-size:13px;--slider-bg:rgba(255, 255, 255, 0.4);--slider-loaded-bg:rgba(255, 255, 255, 0.4);--slider-filled-bg:var(--white);--slider-filled-active-live-bg:var(--red);--slider-filled-ads:rgba(103, 165, 235, 1);--slider-disabled-color:rgba(248, 248, 248, 0.31);--controls-gradient:linear-gradient(
|
|
35
35
|
180deg,
|
|
36
36
|
rgba(0, 0, 0, 0.00) 0%,
|
|
37
37
|
rgba(0, 0, 0, 0.01) 6.67%,
|
|
@@ -49,5 +49,5 @@ var w_=Object.defineProperty,k_=Object.defineProperties;var C_=Object.getOwnProp
|
|
|
49
49
|
rgba(0, 0, 0, 0.96) 86.67%,
|
|
50
50
|
rgba(0, 0, 0, 0.99) 93.33%,
|
|
51
51
|
#000 100%
|
|
52
|
-
);--timeline-preview-shadow:rgba(0, 0, 0, 0.08);--timeline-preview-bg:rgba(34, 34, 34, 1);--mobile-settings-bg:#2C2D2E;--button-hover-transition:opacity 0.2s;--video-container-z-index:0;--rotate-transition-duration:0.25s;position:relative;width:100%;height:100%;color:var(--white);font-size:12px;line-height:normal;overflow:hidden;outline:0;user-select:none;font-family:-apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;background:var(--black)}*{-webkit-tap-highlight-color:transparent}button{border:none;margin:0;padding:0;width:auto;overflow:visible;background:transparent;color:inherit;font:inherit;line-height:normal;-webkit-font-smoothing:inherit;-moz-osx-font-smoothing:inherit;-webkit-appearance:none;cursor:pointer}svg:not(.interactiveContainer svg){pointer-events:none}*:focus, *:focus-visible{outline:none}*:focus-visible{box-shadow:var(--focused-element-shadow)}.hidden{visibility:hidden;opacity:0}.overlay-container{pointer-events:none;top:0;left:0;height:100%;width:100%;position:fixed;z-index:10000}.out-of-view{position:absolute !important;left:-1000vh !important}`)}function $6(i){let e,t,n;function o(l){i[61](l)}let r={store:i[0],uiConfig:i[35],title:i[1],thumbUrl:i[2],interactiveContainer:i[3],live:i[4],autoplay:i[5],canRewindLive:i[6],showAds:i[7],adsSlotId:i[8],adsParams:i[9],adsPreviewParam:i[10],duration:i[11],logoClickable:i[12],logoHidden:i[13],logoTargetUrl:i[36],showNextPrevButtons:i[15],nextButtonActive:i[16],prevButtonActive:i[17],endScreenVideoTitle:i[18],endScreenVideoThumb:i[19],isOneVideoPlaylist:i[20],supportLink:i[21],shadowRootContainer:i[22],outerContainerRef:i[23],fullScreenTarget:i[24],showMiniTimer:i[25],playerStarted:i[34],playNextVideo:i[26],playPrevVideo:i[27],repeatPlaylist:i[28],seekToInteractive:i[29],toggleGraph:i[30],playPrevChapter:i[31],firstStart:i[38]};return i[33]!==void 0&&(r.videoContainer=i[33]),e=new _p({props:r}),ge.push(()=>ze(e,"videoContainer",o)),{c(){V(e.$$.fragment)},m(l,a){A(e,l,a),n=!0},p(l,a){let s={};a[0]&1&&(s.store=l[0]),a[0]&2&&(s.title=l[1]),a[0]&4&&(s.thumbUrl=l[2]),a[0]&8&&(s.interactiveContainer=l[3]),a[0]&16&&(s.live=l[4]),a[0]&32&&(s.autoplay=l[5]),a[0]&64&&(s.canRewindLive=l[6]),a[0]&128&&(s.showAds=l[7]),a[0]&256&&(s.adsSlotId=l[8]),a[0]&512&&(s.adsParams=l[9]),a[0]&1024&&(s.adsPreviewParam=l[10]),a[0]&2048&&(s.duration=l[11]),a[0]&4096&&(s.logoClickable=l[12]),a[0]&8192&&(s.logoHidden=l[13]),a[0]&32768&&(s.showNextPrevButtons=l[15]),a[0]&65536&&(s.nextButtonActive=l[16]),a[0]&131072&&(s.prevButtonActive=l[17]),a[0]&262144&&(s.endScreenVideoTitle=l[18]),a[0]&524288&&(s.endScreenVideoThumb=l[19]),a[0]&1048576&&(s.isOneVideoPlaylist=l[20]),a[0]&2097152&&(s.supportLink=l[21]),a[0]&4194304&&(s.shadowRootContainer=l[22]),a[0]&8388608&&(s.outerContainerRef=l[23]),a[0]&16777216&&(s.fullScreenTarget=l[24]),a[0]&33554432&&(s.showMiniTimer=l[25]),a[1]&8&&(s.playerStarted=l[34]),a[0]&67108864&&(s.playNextVideo=l[26]),a[0]&134217728&&(s.playPrevVideo=l[27]),a[0]&268435456&&(s.repeatPlaylist=l[28]),a[0]&536870912&&(s.seekToInteractive=l[29]),a[0]&1073741824&&(s.toggleGraph=l[30]),a[1]&1&&(s.playPrevChapter=l[31]),!t&&a[1]&4&&(t=!0,s.videoContainer=l[33],He(()=>t=!1)),e.$set(s)},i(l){n||(d(e.$$.fragment,l),n=!0)},o(l){_(e.$$.fragment,l),n=!1},d(l){L(e,l)}}}function e8(i){let e,t,n;function o(l){i[60](l)}let r={store:i[0],uiConfig:i[35],thumbUrl:i[2],interactiveContainer:i[3],live:i[4],autoplay:i[5],canRewindLive:i[6],showAds:i[7],adsSlotId:i[8],adsParams:i[9],adsPreviewParam:i[10],duration:i[11],logoClickable:i[12],logoHidden:i[13],logoTargetUrl:i[36],showNextPrevButtons:i[15],nextButtonActive:i[16],prevButtonActive:i[17],endScreenVideoTitle:i[18],endScreenVideoThumb:i[19],isOneVideoPlaylist:i[20],supportLink:i[21],shadowRootContainer:i[22],outerContainerRef:i[23],fullScreenTarget:i[24],showMiniTimer:i[25],playerStarted:i[34],playNextVideo:i[26],playPrevVideo:i[27],repeatPlaylist:i[28],seekToInteractive:i[29],toggleGraph:i[30],playPrevChapter:i[31],firstStart:i[38],seekTime:i[32]};return i[33]!==void 0&&(r.videoContainer=i[33]),e=new Bp({props:r}),ge.push(()=>ze(e,"videoContainer",o)),{c(){V(e.$$.fragment)},m(l,a){A(e,l,a),n=!0},p(l,a){let s={};a[0]&1&&(s.store=l[0]),a[0]&4&&(s.thumbUrl=l[2]),a[0]&8&&(s.interactiveContainer=l[3]),a[0]&16&&(s.live=l[4]),a[0]&32&&(s.autoplay=l[5]),a[0]&64&&(s.canRewindLive=l[6]),a[0]&128&&(s.showAds=l[7]),a[0]&256&&(s.adsSlotId=l[8]),a[0]&512&&(s.adsParams=l[9]),a[0]&1024&&(s.adsPreviewParam=l[10]),a[0]&2048&&(s.duration=l[11]),a[0]&4096&&(s.logoClickable=l[12]),a[0]&8192&&(s.logoHidden=l[13]),a[0]&32768&&(s.showNextPrevButtons=l[15]),a[0]&65536&&(s.nextButtonActive=l[16]),a[0]&131072&&(s.prevButtonActive=l[17]),a[0]&262144&&(s.endScreenVideoTitle=l[18]),a[0]&524288&&(s.endScreenVideoThumb=l[19]),a[0]&1048576&&(s.isOneVideoPlaylist=l[20]),a[0]&2097152&&(s.supportLink=l[21]),a[0]&4194304&&(s.shadowRootContainer=l[22]),a[0]&8388608&&(s.outerContainerRef=l[23]),a[0]&16777216&&(s.fullScreenTarget=l[24]),a[0]&33554432&&(s.showMiniTimer=l[25]),a[1]&8&&(s.playerStarted=l[34]),a[0]&67108864&&(s.playNextVideo=l[26]),a[0]&134217728&&(s.playPrevVideo=l[27]),a[0]&268435456&&(s.repeatPlaylist=l[28]),a[0]&536870912&&(s.seekToInteractive=l[29]),a[0]&1073741824&&(s.toggleGraph=l[30]),a[1]&1&&(s.playPrevChapter=l[31]),!t&&a[1]&4&&(t=!0,s.videoContainer=l[33],He(()=>t=!1)),e.$set(s)},i(l){n||(d(e.$$.fragment,l),n=!0)},o(l){_(e.$$.fragment,l),n=!1},d(l){L(e,l)}}}function t8(i){let e,t,n,o,r=[e8,$6],l=[];function a(s,u){return s[14]?0:1}return t=a(i,[-1,-1,-1]),n=l[t]=r[t](i),{c(){e=T("div"),n.c(),f(e,"class","root svelte-xfba9d")},m(s,u){S(s,e,u),l[t].m(e,null),o=!0},p(s,u){let c=t;t=a(s,u),t===c?l[t].p(s,u):(ce(),_(l[c],1,1,()=>{l[c]=null}),de(),n=l[t],n?n.p(s,u):(n=l[t]=r[t](s),n.c()),d(n,1),n.m(e,null))},i(s){o||(d(n),o=!0)},o(s){_(n),o=!1},d(s){s&&k(e),l[t].d()}}}function i8(i,e,t){let n,{sources:o}=e,{store:r}=e,{microStoresRoot:l}=e,{videoConfig:a}=e,{uiConfig:s}=e,{title:u}=e,{thumbUrl:c}=e,{interactiveContainer:m}=e,{subtitles:h}=e,{live:w}=e,{preload:b}=e,{autoplay:C}=e,{volume:v=void 0}=e,{muted:I=void 0}=e,{fromTime:y}=e,{canRewindLive:g}=e,{showAds:P}=e,{adsSlotId:B=void 0}=e,{adsParams:M=void 0}=e,{adsPreviewParam:q=void 0}=e,{duration:te=void 0}=e,{logoClickable:pe}=e,{logoHidden:Z}=e,{isMobile:x}=e,{showNextPrevButtons:oe=!1}=e,{nextButtonActive:H=!1}=e,{prevButtonActive:j=!1}=e,{endScreenVideoTitle:J=void 0}=e,{endScreenVideoThumb:F=void 0}=e,{isOneVideoPlaylist:O=!1}=e,{supportLink:Q}=e,{shadowRootContainer:X=void 0}=e,{outerContainerRef:le=void 0}=e,{fullScreenTarget:De=void 0}=e,{failoverHosts:$e=void 0}=e,{showMiniTimer:Ee=!1}=e,{saveRate:Be}=e,{playNextVideo:Ne=kl}=e,{playPrevVideo:Je=kl}=e,{repeatPlaylist:se=kl}=e,{seekToInteractive:_e=kl}=e,{toggleGraph:ut=kl}=e,{playPrevChapter:Ce=kl}=e,{volumeMultiplier:Ke}=e,{subscribers:ht,stores:Ze}=l;Xf(s);let Ge=Gt(),xe=s.logoLink,tt=r.ui.debugPanelVisible,fe=r.ui.playerSize,Pe=r.state.isLive$;z(i,Pe,ve=>t(63,n=ve));let je,ae=null,Te=!1;r.getAdmanWrapper().init({switchFromAdsToVideo:r.actions.internal.switchFromAdsToVideo,switchFromVideoToAds:r.actions.internal.switchFromVideoToAds,setMuted:r.actions.external.setMuted},r.ads,{isMobile:r.ui.isMobile,mobileUnmuteButtonVisible:r.ui.mobileUnmuteButtonVisible,vsid:r.vsid}),rc(r,Ze);let pt=(ve=!1)=>{t(34,Te=!0),ve?r.actions.external.firstStart(P):r.actions.internal.firstStart(P)};function Ae(ve){var di;let Qe=o||ve;Qe&&r.initVideo({container:je,sources:Qe,failoverHosts:$e,subtitles:h,volumeMultiplier:Ke});let _t=Z6.get(El)==="true";tt.set(_t),y>0&&r.actions.external.seekTime(y);let ft=x?Ge.volumeDefault:(di=v!=null?v:ir())!=null?di:Ge.volumeDefault,Xe=I!=null?I:yc();if(r.actions.external.setVolume(ft),r.actions.external.setMuted(Xe),r.getAdmanWrapper().setInitialVolume(Xe?0:ft),Ge.features.trafficSaving){let Mt=kc();Mt&&r.actions.internal.setTrafficSavingEnabled(Mt)}if(Ge.features.saveRate&&Be){let Mt=Tc();Mt&&!n&&r.actions.internal.setPlaybackRate(Mt)}let At=gc(r.videoId);At&&r.actions.internal.setQuality(At),r.ui.isAutoplay.set(C),C?pt():b&&Ge.features.preload&&r.actions.internal.preload()}let mt=ve=>{if(window.ResizeObserver){let Qe,_t;ae=new ResizeObserver(X6(ft=>{let Xe=ft[0];if(Xe){if(Xe.contentBoxSize){let At=Array.isArray(Xe.contentBoxSize)?Xe.contentBoxSize[0]:Xe.contentBoxSize;Qe=At.inlineSize,_t=At.blockSize}else Xe.contentRect&&(Qe=Xe.contentRect.width,_t=Xe.contentRect.height);fe.set({width:Qe,height:_t})}},300)),ae.observe(ve)}fe.set({width:ve.clientWidth,height:ve.clientHeight})};Ot(()=>{mt(je);let ve=ht.map(_t=>_t.init({store:r,microStores:Ze,config:a}));if((w==null?void 0:w.status)==="upcoming"){r.actions.internal.setLiveWaitingStart(!0);return}if((w==null?void 0:w.status)==="waiting"){r.actions.internal.setLiveWaitingRecover(!0);return}if(((w==null?void 0:w.status)==="finished"||(w==null?void 0:w.status)==="postlive")&&!Object.keys(o||[]).length){r.actions.internal.setLiveWaitingRecord(!0);return}return Ae(),()=>{ae==null||ae.disconnect(),ve.forEach(_t=>_t.unsubscribe()),r.destroy()}});function me(){Te?r.actions.external.play():pt(!0)}function it(){r.actions.external.pause()}function kt(ve){x||r.actions.external.setMuted(ve)}function vt(ve){x||ve>=0&&ve<=1&&r.actions.external.setVolume(ve)}function Ue(ve){r.actions.internal.seekTime(ve,J6.UNKNOWN)}function Ut(ve){r.actions.external.seekEpisodeStartTime(ve)}function Rt(){r.actions.external.returnFocusToEpisodes()}function Et(ve){r.actions.external.setPlaybackRate(ve)}function ei(ve){r.actions.external.setAutoQualityLimits(ve)}function Bt(ve){je=ve,t(33,je)}function Kt(ve){je=ve,t(33,je)}return i.$$set=ve=>{"sources"in ve&&t(39,o=ve.sources),"store"in ve&&t(0,r=ve.store),"microStoresRoot"in ve&&t(40,l=ve.microStoresRoot),"videoConfig"in ve&&t(41,a=ve.videoConfig),"uiConfig"in ve&&t(42,s=ve.uiConfig),"title"in ve&&t(1,u=ve.title),"thumbUrl"in ve&&t(2,c=ve.thumbUrl),"interactiveContainer"in ve&&t(3,m=ve.interactiveContainer),"subtitles"in ve&&t(43,h=ve.subtitles),"live"in ve&&t(4,w=ve.live),"preload"in ve&&t(44,b=ve.preload),"autoplay"in ve&&t(5,C=ve.autoplay),"volume"in ve&&t(45,v=ve.volume),"muted"in ve&&t(46,I=ve.muted),"fromTime"in ve&&t(47,y=ve.fromTime),"canRewindLive"in ve&&t(6,g=ve.canRewindLive),"showAds"in ve&&t(7,P=ve.showAds),"adsSlotId"in ve&&t(8,B=ve.adsSlotId),"adsParams"in ve&&t(9,M=ve.adsParams),"adsPreviewParam"in ve&&t(10,q=ve.adsPreviewParam),"duration"in ve&&t(11,te=ve.duration),"logoClickable"in ve&&t(12,pe=ve.logoClickable),"logoHidden"in ve&&t(13,Z=ve.logoHidden),"isMobile"in ve&&t(14,x=ve.isMobile),"showNextPrevButtons"in ve&&t(15,oe=ve.showNextPrevButtons),"nextButtonActive"in ve&&t(16,H=ve.nextButtonActive),"prevButtonActive"in ve&&t(17,j=ve.prevButtonActive),"endScreenVideoTitle"in ve&&t(18,J=ve.endScreenVideoTitle),"endScreenVideoThumb"in ve&&t(19,F=ve.endScreenVideoThumb),"isOneVideoPlaylist"in ve&&t(20,O=ve.isOneVideoPlaylist),"supportLink"in ve&&t(21,Q=ve.supportLink),"shadowRootContainer"in ve&&t(22,X=ve.shadowRootContainer),"outerContainerRef"in ve&&t(23,le=ve.outerContainerRef),"fullScreenTarget"in ve&&t(24,De=ve.fullScreenTarget),"failoverHosts"in ve&&t(48,$e=ve.failoverHosts),"showMiniTimer"in ve&&t(25,Ee=ve.showMiniTimer),"saveRate"in ve&&t(49,Be=ve.saveRate),"playNextVideo"in ve&&t(26,Ne=ve.playNextVideo),"playPrevVideo"in ve&&t(27,Je=ve.playPrevVideo),"repeatPlaylist"in ve&&t(28,se=ve.repeatPlaylist),"seekToInteractive"in ve&&t(29,_e=ve.seekToInteractive),"toggleGraph"in ve&&t(30,ut=ve.toggleGraph),"playPrevChapter"in ve&&t(31,Ce=ve.playPrevChapter),"volumeMultiplier"in ve&&t(50,Ke=ve.volumeMultiplier)},i.$$.update=()=>{i.$$.dirty[0]&16385&&r.ui.isMobile.set(x)},[r,u,c,m,w,C,g,P,B,M,q,te,pe,Z,x,oe,H,j,J,F,O,Q,X,le,De,Ee,Ne,Je,se,_e,ut,Ce,Ue,je,Te,Ge,xe,Pe,pt,o,l,a,s,h,b,v,I,y,$e,Be,Ke,Ae,me,it,kt,vt,Ut,Rt,Et,ei,Bt,Kt]}var kf=class extends W{constructor(e){super(),G(this,e,i8,t8,K,{sources:39,store:0,microStoresRoot:40,videoConfig:41,uiConfig:42,title:1,thumbUrl:2,interactiveContainer:3,subtitles:43,live:4,preload:44,autoplay:5,volume:45,muted:46,fromTime:47,canRewindLive:6,showAds:7,adsSlotId:8,adsParams:9,adsPreviewParam:10,duration:11,logoClickable:12,logoHidden:13,isMobile:14,showNextPrevButtons:15,nextButtonActive:16,prevButtonActive:17,endScreenVideoTitle:18,endScreenVideoThumb:19,isOneVideoPlaylist:20,supportLink:21,shadowRootContainer:22,outerContainerRef:23,fullScreenTarget:24,failoverHosts:48,showMiniTimer:25,saveRate:49,playNextVideo:26,playPrevVideo:27,repeatPlaylist:28,seekToInteractive:29,toggleGraph:30,playPrevChapter:31,volumeMultiplier:50,initVideo:51,play:52,pause:53,setMuted:54,setVolume:55,seekTime:32,seekEpisodeStartTime:56,returnFocusToEpisodes:57,setPlaybackRate:58,setAutoQualityLimits:59},x6,[-1,-1,-1])}get initVideo(){return this.$$.ctx[51]}get play(){return this.$$.ctx[52]}get pause(){return this.$$.ctx[53]}get setMuted(){return this.$$.ctx[54]}get setVolume(){return this.$$.ctx[55]}get seekTime(){return this.$$.ctx[32]}get seekEpisodeStartTime(){return this.$$.ctx[56]}get returnFocusToEpisodes(){return this.$$.ctx[57]}get setPlaybackRate(){return this.$$.ctx[58]}get setAutoQualityLimits(){return this.$$.ctx[59]}},Dp=kf;function n8(i){let e,t,n,o=i[2].default,r=Le(o,i,i[1],null),l=[{xmlns:"http://www.w3.org/2000/svg"},{width:"57"},{height:"60"},{fill:"none"},{"aria-hidden":"true"},{"data-testid":"stub-icon"},{role:"img"},i[0]],a={};for(let s=0;s<l.length;s+=1)a=ue(a,l[s]);return{c(){e=D("svg"),r&&r.c(),t=D("path"),f(t,"fill","currentColor"),f(t,"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"),we(e,a)},m(s,u){S(s,e,u),r&&r.m(e,null),p(e,t),n=!0},p(s,[u]){r&&r.p&&(!n||u&2)&&Ve(r,o,s,s[1],n?Me(o,s[1],u,null):Re(s[1]),null),we(e,a=Oe(l,[{xmlns:"http://www.w3.org/2000/svg"},{width:"57"},{height:"60"},{fill:"none"},{"aria-hidden":"true"},{"data-testid":"stub-icon"},{role:"img"},u&1&&s[0]]))},i(s){n||(d(r,s),n=!0)},o(s){_(r,s),n=!1},d(s){s&&k(e),r&&r.d(s)}}}function o8(i,e,t){let{$$slots:n={},$$scope:o}=e;return i.$$set=r=>{t(0,e=ue(ue({},e),ye(r))),"$$scope"in r&&t(1,o=r.$$scope)},e=ye(e),[e,o,n]}var Cf=class extends W{constructor(e){super(),G(this,e,o8,n8,K,{})}},Np=Cf;function l8(i){let e,t;return e=new Np({props:{style:i[0]}}),{c(){V(e.$$.fragment)},m(n,o){A(e,n,o),t=!0},p(n,[o]){let r={};o&1&&(r.style=n[0]),e.$set(r)},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){_(e.$$.fragment,n),t=!1},d(n){L(e,n)}}}function r8(i,e,t){let n,{isWhite:o=!1}=e;return i.$$set=r=>{"isWhite"in r&&t(1,o=r.isWhite)},i.$$.update=()=>{i.$$.dirty&2&&t(0,n=o?"color: #fff;":"color: #909499;")},[n,o]}var Sf=class extends W{constructor(e){super(),G(this,e,r8,l8,K,{isWhite:1})}},qp=Sf;function s8(i){Ie(i,"svelte-1y9fytq",".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 Op(i){let e,t;return{c(){e=T("div"),t=qe(i[0]),f(e,"class","title svelte-1y9fytq")},m(n,o){S(n,e,o),p(e,t)},p(n,o){o&1&&Ye(t,n[0])},d(n){n&&k(e)}}}function Fp(i){let e,t;return e=new qp({props:{isWhite:!!i[1]}}),{c(){V(e.$$.fragment)},m(n,o){A(e,n,o),t=!0},p(n,o){let r={};o&2&&(r.isWhite=!!n[1]),e.$set(r)},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){_(e.$$.fragment,n),t=!1},d(n){L(e,n)}}}function a8(i){let e,t,n,o,r=i[0]&&Op(i),l=(!i[0]||!i[1])&&Fp(i);return{c(){e=T("div"),r&&r.c(),t=R(),l&&l.c(),f(e,"class","playerStub svelte-1y9fytq"),f(e,"style",n=i[1]?`background-image: url('${i[1]}')`:"")},m(a,s){S(a,e,s),r&&r.m(e,null),p(e,t),l&&l.m(e,null),o=!0},p(a,[s]){a[0]?r?r.p(a,s):(r=Op(a),r.c(),r.m(e,t)):r&&(r.d(1),r=null),!a[0]||!a[1]?l?(l.p(a,s),s&3&&d(l,1)):(l=Fp(a),l.c(),d(l,1),l.m(e,null)):l&&(ce(),_(l,1,1,()=>{l=null}),de()),(!o||s&2&&n!==(n=a[1]?`background-image: url('${a[1]}')`:""))&&f(e,"style",n)},i(a){o||(d(l),o=!0)},o(a){_(l),o=!1},d(a){a&&k(e),r&&r.d(),l&&l.d()}}}function u8(i,e,t){let{title:n}=e,{thumbUrl:o}=e;return i.$$set=r=>{"title"in r&&t(0,n=r.title),"thumbUrl"in r&&t(1,o=r.thumbUrl)},[n,o]}var Tf=class extends W{constructor(e){super(),G(this,e,u8,a8,K,{title:0,thumbUrl:1},s8)}},Hp=Tf;import{cloneDeepWith as E8,InterfaceLanguage as A8,clientChecker as L8,isMobile as M8,isNonNullable as Mf,Logger as V8,Subject as R8,Subscription as B8}from"@vkontakte/videoplayer-shared";import"@vkontakte/videoplayer-core";import{InteractiveInterfaceClick as jl}from"@vkontakte/videoplayer-statistics";import{Subscription as f8}from"@vkontakte/videoplayer-shared";var fs=class{constructor(){this.subscription=new f8}isSupported(){return"mediaSession"in navigator}setMetaData({title:e,artist:t="",thumbUrl:n=""}){this.isSupported()&&(navigator.mediaSession.metadata=new MediaMetadata({title:e,artist:t,artwork:[{src:n,sizes:"96x96",type:"image/png"},{src:n,sizes:"128x128",type:"image/png"},{src:n,sizes:"192x192",type:"image/png"},{src:n,sizes:"256x256",type:"image/png"},{src:n,sizes:"384x384",type:"image/png"},{src:n,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",t=>null],["seekbackward",t=>null],["seekforward",t=>null]];this.setActionHandlers(e)}setActionHandlers(e){if(this.isSupported())for(let[t,n]of e)try{navigator.mediaSession.setActionHandler(t,n)}catch(o){throw new Error(`The media session action "${t}" is not supported yet.`)}}attachToStore(e){!this.isSupported()||!e||this.subscription.add(e.state.positionExact$.subscribe(t=>{let n=et(e.state.currentPlaybackRate$),o=et(e.state.duration$);!isFinite(t)||!isFinite(o)||navigator.mediaSession.setPositionState({position:t,playbackRate:n,duration:o})}))}clearSubscriptions(){this.subscription.unsubscribe()}destroy(){this.resetActionHandlers(),this.clearSubscriptions()}};import{ValueSubject as h8,clientChecker as g8,detectEmbed as b8}from"@vkontakte/videoplayer-shared";function c8(i){let e,t,n,o,r,l=i[2].default,a=Le(l,i,i[1],null),s=[{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[0]],u={};for(let c=0;c<s.length;c+=1)u=ue(u,s[c]);return{c(){e=D("svg"),a&&a.c(),t=D("g"),n=D("path"),o=D("path"),f(n,"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"),f(o,"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"),f(t,"fill","#fff"),we(e,u)},m(c,m){S(c,e,m),a&&a.m(e,null),p(e,t),p(t,n),p(t,o),r=!0},p(c,[m]){a&&a.p&&(!r||m&2)&&Ve(a,l,c,c[1],r?Me(l,c[1],m,null):Re(c[1]),null),we(e,u=Oe(s,[{xmlns:"http://www.w3.org/2000/svg"},{width:"57"},{height:"56"},{fill:"none"},{"aria-label":"dummy-image"},{"data-testid":"pip-dummy-icon"},{role:"img"},m&1&&c[0]]))},i(c){r||(d(a,c),r=!0)},o(c){_(a,c),r=!1},d(c){c&&k(e),a&&a.d(c)}}}function d8(i,e,t){let{$$slots:n={},$$scope:o}=e;return i.$$set=r=>{t(0,e=ue(ue({},e),ye(r))),"$$scope"in r&&t(1,o=r.$$scope)},e=ye(e),[e,o,n]}var Pf=class extends W{constructor(e){super(),G(this,e,d8,c8,K,{})}},zp=Pf;function m8(i){Ie(i,"svelte-1pbsod4",".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 p8(i){let e,t,n,o,r,l,a;return n=new zp({}),{c(){e=T("div"),t=T("div"),V(n.$$.fragment),o=R(),r=T("span"),l=qe(i[0]),f(t,"class","dummy-image svelte-1pbsod4"),N(t,"desktop",!i[1]),f(r,"class","title svelte-1pbsod4"),f(e,"class","player-pip-dummy svelte-1pbsod4"),N(e,"is-pip-api",i[2])},m(s,u){S(s,e,u),p(e,t),A(n,t,null),p(e,o),p(e,r),p(r,l),a=!0},p(s,[u]){(!a||u&2)&&N(t,"desktop",!s[1]),(!a||u&1)&&Ye(l,s[0])},i(s){a||(d(n.$$.fragment,s),a=!0)},o(s){_(n.$$.fragment,s),a=!1},d(s){s&&k(e),L(n)}}}function _8(i,e,t){let n,o,r=st(),l=!!r.webApi.pictureInPictureApi,a=r.interfaceLanguage$;z(i,a,c=>t(5,n=c));let s=r.ui.isMobile;z(i,s,c=>t(1,o=c));let u;return i.$$.update=()=>{i.$$.dirty&32&&t(0,u=n&&U("pip_dummy_title"))},[u,o,l,a,s,n]}var If=class extends W{constructor(e){super(),G(this,e,_8,p8,K,{},m8)}},Up=If;var v8=460,y8=280,Fl=class{constructor(){this.info={isActive$:new h8(!1),type:1}}isSupported(){let{isEmbed:e}=b8();return"documentPictureInPicture"in window&&!g8.isYandex&&!e}isActive(){return this.isSupported()&&!!documentPictureInPicture.window}setPlayerDomElement(e,t){this.playerDomElement=e,this.playerParentShadowRoot=t}setContext(e){this.svelteContext=e}request(){return ct(this,null,function*(){var r,l;if(!this.isSupported()||!this.playerDomElement||!this.playerParentShadowRoot)return;this.pipWindow=yield documentPictureInPicture.requestWindow({width:v8,height:y8,copyStyleSheets:!0}),this.pipWindow.document.body.style.margin="0";let e=[...this.playerParentShadowRoot.styleSheets].map(a=>[...a.cssRules].map(s=>s.cssText).join(" ")).filter(Boolean).join(`
|
|
53
|
-
`),t=document.createElement("style");t.textContent=e;let n=this.createStretchedContainer(),o=n.attachShadow({mode:"open"});o.append(t),o.append(this.playerDomElement),this.playerDummyElement=new Up({target:this.playerParentShadowRoot,context:this.svelteContext}),(r=this.pipWindow)==null||r.document.body.append(n),this.info.isActive$.next(!0),(l=this.pipWindow)==null||l.addEventListener("unload",a=>{!this.playerDomElement||!this.playerParentShadowRoot||!this.playerDummyElement||(this.playerDummyElement.$destroy(),this.playerParentShadowRoot.append(this.playerDomElement),this.info.isActive$.next(!1))})})}remove(){return ct(this,null,function*(){return new Promise(e=>{var t;(t=documentPictureInPicture.window)==null||t.close(),e()})})}dispose(){return ct(this,null,function*(){yield this.remove()})}createStretchedContainer(){let e=document.createElement("div");return e.style.width="100%",e.style.height="100%",e}};function Kp(i){return i instanceof Fl}var cs=class{static getLatestSupportedVersion(){let e=new No,t=new Fl;if(t.isSupported())return t;if(e.isSupported())return e}};function Ef(i,e){var o,r;let t=new Set([...Object.keys(i),...Object.keys(e)]),n={};for(let l of t)n[l]=(r=(o=e[l])!=null?o:i[l])!=null?r:void 0;return n}var jp="Inner error. Unexpectedly root annotation container null reference exception",Wp="Annotation with such name already exists",Gp="Annotation with such name does not exist";var Cl=class extends Error{constructor(e){super(e),this.name="AnnotationError"}};import{observeElementSize as w8,Subscription as k8,throttleFn as C8}from"@vkontakte/videoplayer-shared";var S8="1",T8=100,ds=class{constructor(e){this.annotations=new Map;this.subscriptions=new k8;this.rootAnnotationsContainer=e;let t=C8(()=>{for(let n of this.annotations.values())this.isElementExceedsBoundaries(n,this.playerSize.width,this.playerSize.height)?n.style.visibility="hidden":n.style.visibility="visible"},T8);this.subscriptions.add(w8(this.rootAnnotationsContainer).subscribe(({width:n,height:o})=>{this.playerSize={width:n,height:o},t()})),this.mutationObserver=new MutationObserver(t),this.mutationObserver.observe(this.rootAnnotationsContainer,{attributes:!0,childList:!0,subtree:!0,characterData:!0})}add(e,t){var n;if(!this.rootAnnotationsContainer)throw new Cl(jp);if(this.annotations.has(e))throw new Cl(Wp);t.style.zIndex=(n=t.style.zIndex)!=null?n:S8,t.style.position="absolute",this.rootAnnotationsContainer.append(t),this.annotations.set(e,t)}get(e){let t=this.annotations.get(e);if(!t)throw new Cl(Gp);return t}remove(e){let t=this.get(e);this.annotations.delete(e)&&t.remove()}clear(){for(let e in this.annotations.keys())this.remove(e)}destroy(){this.annotations.clear(),this.subscriptions.unsubscribe(),this.mutationObserver.disconnect(),this.rootAnnotationsContainer=null}isElementExceedsBoundaries(e,t,n){let o=e.offsetTop,r=e.offsetLeft,l=e.offsetWidth,a=e.offsetHeight;return o<0||r<0||r+l>t||o+a>n}registryRootContainer(e){}addLayer(e){return document.createElement("div")}getLayer(e){}removeLayer(e){}clearLayer(e){}detach(){}reattach(){}};import{assertNonNullable as Af,Subscription as P8}from"@vkontakte/videoplayer-shared";var xn=class{init({store:e,microStores:t,config:n}){return Af(e),Af(t),Af(n),this.subscription=new P8,this.subscription}};var Hl=class extends xn{constructor(){super(...arguments);this.stateName="fakeIsPlaying$";this.state$=Vt(rt({},Fe(null)),{toggle:()=>this.state$.update(t=>!t)})}init(t){let n=super.init(t),{isInteractiveExpectation$:o}=t.store.state;return n.add(o.subscribe(r=>{this.state$.set(r?!0:null)})),n}};var zl=class extends xn{constructor(){super(...arguments);this.stateName="interactiveControlsOpacity$";this.state$=Vt(rt({},Fe(null)),{toggle:()=>this.state$.update(t=>!t)})}init(t){let n=super.init(t),{microStores:o,store:r}=t,{fakeIsPlaying$:l}=o,{isInteractiveExpectation$:a,isPlaying$:s}=r.state,{controlsVisible:u,isMobile:c}=r.ui,m=et(c),h=()=>m&&et(u);return n.add(u.subscribe(w=>{if(!m)return;let b=et(l);et(s)?this.state$.set(w):b!==null&&this.state$.set(!b||w)})),n.add(s.subscribe(w=>{this.state$.set(!w||h())})),n.add(l.subscribe(w=>{if(w===null)return;let b=et(a);if(h()){this.state$.set(!0);return}b&&this.state$.set(!w)})),n}};var Ul=class extends xn{constructor(){super(...arguments);this.stateName="seekToInteractiveDisabledTooltip$";this.state$=Fe("tooltip_chapter_without_interactive")}init(t){let n=super.init(t),{store:o}=t;return n.add(o.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"))})),n}};import{combine as I8}from"@vkontakte/videoplayer-shared";var Lf=Fe(!1),ms=null,Kl=class extends xn{constructor(){super(...arguments);this.stateName="showInteractiveTimeIndicatorTooltip$";this.state$=Vt(rt({},Lf),{set:(t,n=!1)=>{t!==et(Lf)&&(this.clearTimeout(),Lf.set(t),!t&&ms&&(ms=!1),t&&n&&(this.timeout=setTimeout(()=>{this.state$.set(!1)},3e3)))},clearTimeout:()=>this.clearTimeout()})}init(t){let n=super.init(t),{store:o,config:r}=t,{isInteractiveTime$:l,isPlaying$:a}=o.state,s=o.ui.controlsVisible,{interactiveTimeIndicator:u}=o.ui.controls;n.add(s.subscribe(m=>{et(l)&&m&&this.state$.set(!1)}));let c=(r==null?void 0:r.interactiveData)||{tooltipHelpHintActive:!1};return n.add(I8({isPlaying$:a,isInteractiveTime$:l,interactiveTimeIndicator:u}).subscribe(({isPlaying$:m,isInteractiveTime$:h,interactiveTimeIndicator:w})=>{var b,C;if(!(!m||!(w!=null&&w.isDisplayed))){if(!h)return this.state$.set(!1);c.tooltipHelpHintActive&&ms===null&&(ms=!0,c.tooltipHelpHintActive=!1,this.state$.set(!0),(C=(b=o.callbacks)==null?void 0:b.onInteractiveTimeIndicatorHintDeactivated)==null||C.call(b))}})),n}clearTimeout(){window.clearTimeout(this.timeout)}};var Qp=()=>[Hl,zl,Ul,Kl].reduce(({subscribers:i,stores:e},t)=>{let n=new t;return{subscribers:[...i,n],stores:Vt(rt({},e),{[n.stateName]:n.state$})}},{subscribers:[],stores:{}});var D8={preload:!0,autoplay:!1,repeat:!1,fromTime:0,canRewindLive:!0,showAds:!1,interfaceLanguage:A8.RU,isCyrillicRelatedInterface:!0,logoClickable:!1,logoHidden:!1,isMobile:M8(),isMediaSessionEnabled:!0,isPictureInPictureEnabled:!0,isAudioDisabled:!1,callbacks:{uiInfo:{}},tuningConfig:{configName:[]},saveRate:!0,volumeMultiplier:1},ps=class extends HTMLElement{constructor(){var t;super();this.currentPlayingVideoIndex=0;this.needToRepeatPlaylist=!1;this.videoConfig=void 0;this.pictureInPictureApi=void 0;this.mediaSessionApi=void 0;this.unsubscribePlayerPhaseSubscription=void 0;this.annotationsApi=void 0;this.prevIsid=void 0;this.isInited=!1;this.logger=new V8,this.log=this.logger.createComponentLog("VKVideoPlayer"),this.subscription=new B8,this.graphMadePause=!1,(t=window==null?void 0:window.videoPlayerConfig)!=null&&t.debugLogs&&this.subscription.add(this.logger.log$.subscribe(n=>{console.log("%c player web component ","background:#77dd77;",`${n.component}`,n.message)}))}connectedCallback(){var o,r;if(this.isInited)return;this.initPlayerRootContainers();let t=(o=this.getAttribute("stub-title"))!=null?o:void 0,n=(r=this.getAttribute("stub-thumb-url"))!=null?r:void 0;this.svelteStubComponent=new Hp({target:this.playerContainer,props:{title:t,thumbUrl:n}})}disconnectedCallback(){var t,n,o,r,l,a;(t=this.annotationsApi)==null||t.destroy(),(n=this.mediaSessionApi)==null||n.destroy(),(o=this.svelteRootComponent)==null||o.$destroy(),(r=this.svelteStubComponent)==null||r.$destroy(),this.subscription.unsubscribe(),(l=this.unsubscribePlayerPhaseSubscription)==null||l.call(this),(a=this.interactiveController)==null||a.destroy()}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.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:!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(t){var o;let n=(o=this.store)==null?void 0:o.ui.controls.disabledControls$;return(n==null?void 0:n.includes(t))||!1}getNextVideoInfo(){if(!this.videoConfig)return{nextVideoTitle:void 0,nextVideoThumb:void 0};let t=this.videoConfig.videos[this.currentPlayingVideoIndex+1]||{};return{nextVideoTitle:t.title,nextVideoThumb:t.thumbUrl}}createPlayer(t,n={},o){var it,kt,vt,Ue,Ut,Rt,Et,ei,Bt,Kt,ve,Qe,_t;if(!this.videoConfig)return;let{albumId:r,statPlace:l,statUserSalt:a,statAuthToken:s,statTrackCode:u,refreshStatAuthToken:c,preload:m,autoplay:h,volume:w,muted:b,fromTime:C,canRewindLive:v,supportLink:I,showAds:y,adsSlotId:g,adsParams:P={},adsPreviewParam:B,interfaceLanguage:M,isCyrillicRelatedInterface:q,logoClickable:te,logoHidden:pe,isMobile:Z,isAudioDisabled:x,isLiveCatchUpMode:oe,fullScreenTarget:H,failoverHosts:j,canDownload:J,callbacks:F,interactiveData:O,showThumbTimer:Q,additionalButtons:X=[],repeat:le,saveRate:De,volumeMultiplier:$e}=Ef(this.videoConfig,n),{sources:Ee,title:Be,thumbUrl:Ne,unitedVideoId:Je,isClip:se=!1,duration:_e,adsParams:ut={},videoEpisodes:Ce,previewThumbsData:Ke,subtitles:ht,live:Ze}=t,Ge=rt(rt({},P),ut),xe=this.getNextVideoInfo(),tt={sources:Ee,title:Be,thumbUrl:Ne,subtitles:ht,unitedVideoId:Je,isClip:se,live:Ze,albumId:r,statPlace:l,autoplay:h,muted:b,volume:w,fromTime:C,canRewindLive:v,showAds:y,adsSlotId:g,adsParams:Ge,adsPreviewParam:B,duration:_e,logoClickable:te,logoHidden:pe,isMobile:Z,repeat:le,showNextPrevButtons:this.needToShowNextPrevButtons(),nextButtonActive:this.isNextButtonActive(),prevButtonActive:this.isPrevButtonActive(),endScreenVideoTitle:xe.nextVideoTitle,endScreenVideoThumb:xe.nextVideoThumb,isOneVideoPlaylist:this.isOneVideoPlaylist()},fe={pictureInPictureApi:this.pictureInPictureApi,annotationsApi:this.annotationsApi};this.log({message:`create player, props: ${JSON.stringify(tt)}`});let Pe=this.uiConfig.features.statistics&&!!Je,{pid:je}=((kt=(it=this.videoConfig)==null?void 0:it.interactiveData)==null?void 0:kt.projectInfo)||{};Pe&&(this.statistics=new Xr(rt({movieId:Je,albumId:r,place:l,trackCode:u,autoplay:(vt=h&&!this.interactiveController)!=null?vt:!1,mobile:Z,clip:se,refDomain:this.videoConfig.refDomain,deviceId:this.videoConfig.deviceId},je&&!this.isInited&&{projectId:Number(je)}),rt({refreshAuthToken:c,userSalt:a,config:this.statisticsConfig},this.interactiveController&&{useIsid:!0,isid:this.prevIsid}))),this.uiConfig.features.sentry&&this.uiConfig.sentry.dsn&&new Do(this.uiConfig.sentry,{version:rl,env:tr},{movieId:Je,albumId:r,place:l,autoplay:(Ue=h&&!this.interactiveController)!=null?Ue:!1,mobile:Z,clip:se}),this.interactiveController&&((Rt=this.prevIsid)!=null||(this.prevIsid=(Ut=this.statistics)==null?void 0:Ut.oneStat.isid$.getValue())),this.sentry=rt(rt({},this.sentry),Do.getInstance());let Te=!!O,pt=[],Ae="tooltip_interactive_go_back_disabled_first";if(Te&&this.interactiveController){let ft=this.interactiveController.state.isInitialChapter$.getValue(),Xe=this.interactiveController.getHistoryState();ft&&pt.push("REPLAY_BUTTON"),this.interactiveController.getIsSeekable().getValue()||pt.push("SEEK_TO_INTERACTIVE_BUTTON"),Xe.hasPrevChapter$.getValue()||(pt.push("PLAY_PREV_CHAPTER_BUTTON"),ft||(Xe.isGoBackLimited$.getValue()?Ae="tooltip_interactive_go_back_disabled_limit":Ae="tooltip_interactive_go_back_disabled"))}let mt=()=>{var Xe;this.isInited=!1,this.prevIsid=void 0;let ft=(o==null?void 0:o.info.isEnded$.getValue())&&((Xe=this.interactiveController)==null?void 0:Xe.state.isEndChapter$.getValue());F.onReplayInteractiveVideo&&!ft?F.onReplayInteractiveVideo():this.replayInteractiveVideo()};this.store=bm({player:o,interfaceLanguage:M,isCyrillicRelatedInterface:q,videoId:Je,isClip:se,isLiveCatchUpMode:oe,isAudioDisabled:x,statAuthToken:s,callbacks:F,webApi:fe,videoEpisodes:Ce,previewThumbsData:Ke,canDownload:J,uiConfig:this.uiConfig,coreConfig:this.coreConfig,disabledControls:pt,isInteractive:Te,saveRate:De,interactiveRanges$:(Et=this.interactiveController)==null?void 0:Et.state.interactiveRanges$,isInteractiveTime$:(ei=this.interactiveController)==null?void 0:ei.state.isInteractiveTime$,replayInteractive:mt,playPrevChapterDisabledTooltip:Ae,hasInteractiveBranches:!!((Kt=(Bt=this.interactiveController)==null?void 0:Bt.getChapterBranches())!=null&&Kt.length),additionalButtons:this.uiConfig.features.additionalButtons?X:[],looped:le&&this.videoConfig.videos.length===1,statistics:this.statistics});let{stores:me}=this.microStoresRoot=Qp();this.subscription.add(this.store.state.currentFormat$.subscribe(ft=>{var Xe;return(Xe=F==null?void 0:F.onCurrentFormatChanged)==null?void 0:Xe.call(F,ft)})),this.subscription.add(me.interactiveControlsOpacity$.subscribe(ft=>{var Xe;ft!==null&&((Xe=this==null?void 0:this.interactiveController)==null||Xe.setDisabledControls(ft))})),this.subscription.add(this.store.state.throughputEstimation$.subscribe(ft=>{var Xe;return(Xe=F==null?void 0:F.onThroughputEstimationChanged)==null?void 0:Xe.call(F,ft)})),this.subscription.add(this.store.state.trafficSavingEnabled$.subscribe(ft=>{var Xe;return(Xe=F==null?void 0:F.onTrafficSavingEnabledChanged)==null?void 0:Xe.call(F,ft)})),this.subscription.add(this.store.state.currentPlaybackRate$.subscribe(ft=>{var Xe;return(Xe=F==null?void 0:F.onCurrentPlaybackRateChanged)==null?void 0:Xe.call(F,ft)})),this.subscription.add(this.store.state.volume$.subscribe(ft=>{var Xe;return(Xe=F==null?void 0:F.onVolumeChange)==null?void 0:Xe.call(F,ft)})),this.subscription.add(this.store.state.muted$.subscribe(ft=>{var Xe,At;return ft?(Xe=F==null?void 0:F.onMute)==null?void 0:Xe.call(F):(At=F==null?void 0:F.onUnmute)==null?void 0:At.call(F)})),this.subscription.add(this.store.state.videoBitrate$.subscribe(ft=>{var Xe;return(Xe=F==null?void 0:F.onVideoBitrateChanged)==null?void 0:Xe.call(F,ft)})),this.subscription.add(this.store.state.isInteractiveTime$.subscribe(ft=>{var At;let Xe=(At=this.store)==null?void 0:At.ui.controls.disabledControls$;Xe&&(ft&&!Xe.includes(Al)&&Xe.add(Al),ft||Xe.remove(Al))})),this.subscription.add(this.store.ui.isFullscreen.subscribe(ft=>ct(this,null,function*(){var At;if(!L8.isSamsungBrowser||!ft||!this.interactiveController)return;document.fullscreenElement===this.shadowRootContainer&&(yield this.replayInteractiveChapter((At=this.videoConfig)==null?void 0:At.callbacks.onExternalFullscreenExit))}))),this.subscription.add(this.statistics.oneStat.vsid$.subscribe(ft=>{var Xe;return(Xe=F==null?void 0:F.onVSIDChanged)==null?void 0:Xe.call(F,ft)})),this.initMediaSession(),this.interactiveController&&Pe&&this.initInteractivesStatistics(),this.svelteRootComponent=new Dp({target:this.playerContainer,props:{interactiveContainer:this.interactiveContainer,sources:Ee,store:this.store,microStoresRoot:this.microStoresRoot,videoConfig:this.videoConfig,uiConfig:this.uiConfig,title:Be,thumbUrl:Ne,subtitles:ht,live:Ze,preload:m,autoplay:h,muted:b,volume:w,fromTime:C,canRewindLive:v,supportLink:I,showAds:y,adsSlotId:g,adsParams:Ge,adsPreviewParam:B,duration:_e,logoClickable:te,logoHidden:pe,isMobile:Z,failoverHosts:j,fullScreenTarget:H,saveRate:De,shadowRootContainer:this.shadowRootContainer,showMiniTimer:Q,outerContainerRef:this.rootContainer,showNextPrevButtons:this.needToShowNextPrevButtons(),nextButtonActive:this.isNextButtonActive(),prevButtonActive:this.isPrevButtonActive(),endScreenVideoTitle:xe.nextVideoTitle,endScreenVideoThumb:xe.nextVideoThumb,isOneVideoPlaylist:this.isOneVideoPlaylist(),playNextVideo:()=>this.playNextVideo(),playPrevVideo:()=>this.playPrevVideo(),repeatPlaylist:()=>this.repeatPlaylist(),playPrevChapter:()=>this.playPrevChapter(),seekToInteractive:()=>this.seekToInteractive(),toggleGraph:()=>this.toggleGraph(),volumeMultiplier:$e}}),this.addPlayerInfoSubscriptions(),this.isInited||(this.isInited=!0,(_t=(Qe=(ve=this.videoConfig)==null?void 0:ve.callbacks)==null?void 0:Qe.onInited)==null||_t.call(Qe))}addPlayerInfoSubscriptions(){var r;let t=this.store;if(!t)return;let n=(r=this.videoConfig)==null?void 0:r.callbacks;n&&this.subscription.add(t.playerPhase.subscribe(l=>{var a;return(a=n.onPlayerPhaseChanged)==null?void 0:a.call(n,l)})).add(t.state.playbackState$.subscribe(l=>{var a;return(a=n.onPlaybackStateChanged)==null?void 0:a.call(n,l)})).add(t.state.isLive$.subscribe(l=>{var a;return(a=n.onIsLiveChanged)==null?void 0:a.call(n,l)})).add(t.state.isActiveLive$.subscribe(l=>{var a;return(a=n.onIsActiveLiveChanged)==null?void 0:a.call(n,l)})).add(t.state.isAudioAvailable$.subscribe(l=>{var a;return(a=n.onIsAudioAvailableChanged)==null?void 0:a.call(n,l)})).add(t.state.currentQuality$.subscribe(l=>{var a;return(a=n.onCurrentQualityChanged)==null?void 0:a.call(n,l)})).add(t.state.availableQualities$.subscribe(l=>{var a;return(a=n.onAvailableQualitiesChanged)==null?void 0:a.call(n,l.map(({value:s})=>s).filter(s=>s!=="auto"))})).add(t.state.availableAudioStreams$.subscribe(l=>{l.length>1&&n.onAudioLanguagesAvailable&&n.onAudioLanguagesAvailable()})).add(t.ui.isPictureInPictureActive$.subscribe(l=>{var a,s;return l?(a=n.onPiPEnter)==null?void 0:a.call(n):(s=n.onPiPExit)==null?void 0:s.call(n)}));let o=n==null?void 0:n.uiInfo;o&&this.subscription.add(t.ui.controlsVisible.subscribe(l=>{var a;return(a=o.onControlsVisibleChanged)==null?void 0:a.call(o,l)})).add(t.ui.isMobile.subscribe(l=>{var a;return(a=o.onIsMobileChanged)==null?void 0:a.call(o,l)})).add(t.ui.playerSize.subscribe(l=>{var a;return(a=o.onPlayerSizeChanged)==null?void 0:a.call(o,l)})).add(t.ui.controls.prevButton.subscribe(l=>{var a;return(a=o.onPrevButtonChanged)==null?void 0:a.call(o,l)})).add(t.ui.controls.playButton.subscribe(l=>{var a;return(a=o.onPlayButtonChanged)==null?void 0:a.call(o,l)})).add(t.ui.controls.replayButton.subscribe(l=>{var a;return(a=o.onReplayButtonChanged)==null?void 0:a.call(o,l)})).add(t.ui.controls.nextButton.subscribe(l=>{var a;return(a=o.onNextButtonChanged)==null?void 0:a.call(o,l)})).add(t.ui.controls.playPrevChapterButton.subscribe(l=>{var a;return(a=o.onPlayPrevChapterChanged)==null?void 0:a.call(o,l)})).add(t.ui.controls.seekToInteractiveButton.subscribe(l=>{var a;return(a=o.onSeekToInteractiveButtonChanged)==null?void 0:a.call(o,l)})).add(t.ui.controls.interactiveGraphButton.subscribe(l=>{var a;return(a=o.onGraphButtonChanged)==null?void 0:a.call(o,l)})).add(t.ui.controls.liveButton.subscribe(l=>{var a;return(a=o.onLiveButtonChanged)==null?void 0:a.call(o,l)})).add(t.ui.controls.time.subscribe(l=>{var a;return(a=o.onTimeUpdateChanged)==null?void 0:a.call(o,l)})).add(t.ui.controls.episodes.subscribe(l=>{var a;return(a=o.onEpisodesChanged)==null?void 0:a.call(o,l)})).add(t.ui.controls.subtitles.subscribe(l=>{var a;return(a=o.onSubtitlesChanged)==null?void 0:a.call(o,l)})).add(t.ui.controls.settings.subscribe(l=>{var a;return(a=o.onSettingsChanged)==null?void 0:a.call(o,l)})).add(t.ui.controls.fullscreen.subscribe(l=>{var a;return(a=o.onFullscreenChanged)==null?void 0:a.call(o,l)})).add(t.ui.controls.chromecast.subscribe(l=>{var a;return(a=o.onChromecastChanged)==null?void 0:a.call(o,l)})).add(t.ui.controls.pip.subscribe(l=>{var a;return(a=o.onPipChanged)==null?void 0:a.call(o,l)})).add(t.ui.controls.vkLogo.subscribe(l=>{var a;return(a=o.onVkLogoChanged)==null?void 0:a.call(o,l)})).add(t.ui.controls.interactiveTimeIndicator.subscribe(l=>{var a;return(a=o.onInteractiveTimeIndicatorChanged)==null?void 0:a.call(o,l)})).add(t.ui.controls.timeline.subscribe(l=>{var a;return(a=o.onTimelineChanged)==null?void 0:a.call(o,l)}))}playNextVideo(){var n;if(!this.videoConfig)return;let t=!0;if((n=this.videoConfig.callbacks)!=null&&n.onNextVideoClick)try{t=this.videoConfig.callbacks.onNextVideoClick()}catch(o){this.log({message:"onNextVideoClick callback failed to execute"})}t&&(this.currentPlayingVideoIndex++,this.currentPlayingVideoIndex>=this.videoConfig.videos.length&&(this.currentPlayingVideoIndex=0),this.log({message:`play next video, index: ${this.currentPlayingVideoIndex}`}),this.createPlayerWithCurrentVideo())}playPrevVideo(){var n;if(!this.videoConfig)return;let t=!0;if((n=this.videoConfig.callbacks)!=null&&n.onPrevVideoClick)try{t=this.videoConfig.callbacks.onPrevVideoClick()}catch(o){this.log({message:"onPrevVideoClick callback failed to execute"})}t&&(this.currentPlayingVideoIndex--,this.currentPlayingVideoIndex<0&&(this.currentPlayingVideoIndex=this.videoConfig.videos.length-1),this.log({message:`play prev video, index: ${this.currentPlayingVideoIndex}`}),this.createPlayerWithCurrentVideo())}repeatPlaylist(){this.currentPlayingVideoIndex=0,this.log({message:"repeat playlist"}),this.createPlayerWithCurrentVideo()}createPlayerWithCurrentVideo(t,n=!0){var r;if(!this.videoConfig)return;let o=this.videoConfig.videos[this.currentPlayingVideoIndex];if(!o){this.log({message:"no next video"});return}this.isInited&&Mf(o.unitedVideoId)&&this.store.actions.internal.nextMovie(o.unitedVideoId),(r=this.svelteRootComponent)==null||r.$destroy(),this.createPlayer(o,{autoplay:n,fromTime:0},t)}playPrevChapter(){var t;(t=this.interactiveController)==null||t.playPrevChapter()}seekToInteractive(){var n;let t=(n=this.interactiveController)==null?void 0:n.getNextInteractiveStartTime();typeof t=="number"&&this.seekTime(t/1e3)}toggleGraph(){var c,m;if(!this.isInited)return;let t=this.store,{isEnded$:n,playbackState$:o,graphIsOpened$:r}=t.state,{disabledControls$:l}=t.ui.controls,a=et(n),s=et(o);et(r)?(r.set(!1),(c=this.interactiveController)==null||c.toggleGraphView(!1),l.remove(Ss),!a&&this.graphMadePause&&this.play()):(this.graphMadePause=s==="playing",r.set(!0),(m=this.interactiveController)==null||m.toggleGraphView(!0),l.add(Ss),!a&&this.graphMadePause&&this.pause())}initInteractives(){return ct(this,null,function*(){var t,n,o,r;if((t=this.videoConfig)!=null&&t.interactiveData)try{let{Interactives:l,EVENT_NAMES:a,CustomError:s}=yield import("@vkontakte/videoplayer-interactive");this.interactiveContainer=document.createElement("div"),this.interactiveContainer.classList.add("interactiveContainer");let u=(n=this.store)==null?void 0:n.interfaceLanguage$,c=u?et(u):this.videoConfig.interfaceLanguage,{projectInfo:m,initChapterId:h,historyApi:w,videoLoader:b}=this.videoConfig.interactiveData;this.interactiveController=new l({parentElement:this.interactiveContainer,fullscreenTargetElement:this.playerContainer,lang:c,graph:this.uiConfig.features.interactiveGraph,projectInfo:m,initChapterId:h,historyApi:w,vkVideoLoader:b,lastFrame:this.uiConfig.features.interactiveLastFrame,permanentTextControls:this.uiConfig.features.interactiveTextPermanent,initSeamless:!0,config:this.uiConfig.interactive,coreConfig:this.coreConfig});let{isInteractiveExpectation$:C}=this.interactiveController.state;this.uiConfig.features.seekToInteractive&&this.subscription.add(this.interactiveController.getIsSeekable().subscribe(I=>{if(!this.isInited)return;let y=this.store;I?y.ui.controls.disabledControls$.remove("SEEK_TO_INTERACTIVE_BUTTON"):y.ui.controls.disabledControls$.add("SEEK_TO_INTERACTIVE_BUTTON")})),this.subscription.add(C.subscribe(I=>{this.store&&this.store.state.isInteractiveExpectation$.set(I)}));let v=!0;if(this.interactiveController.on(a.playerChanged,I=>{if(!this.videoConfig)return;this.videoConfig.videos[this.currentPlayingVideoIndex]=Vt(rt({},I.config),{title:(m==null?void 0:m.title)||I.config.title});let y=v?this.videoConfig.autoplay:!0;this.createPlayerWithCurrentVideo(I.player,y),v&&(v=!1)}),this.interactiveController.on(a.interactives,({type:I,actionType:y})=>{var P,B,M,q;if(!this.store)return;let g=C.getValue();if(I==="action-choice"&&y==="setRandomBranch"&&(this.store.state.graphIsOpened$.set(!1),this.store.ui.controls.disabledControls$.remove(er)),I==="action-choice-canceled"){let te=et(this.store.state.isPlaying$)||g;if((P=this.videoConfig)!=null&&P.isMobile&&te){this.store.ui.interactiveHideMobileControls.set(!0);return}(q=(B=this.videoConfig)==null?void 0:(M=B.callbacks).onDisabledInteractiveClick)==null||q.call(M)}}),yield this.interactiveController.setManifest(this.videoConfig.interactiveData.manifest),(r=(o=this.videoConfig)==null?void 0:o.callbacks)!=null&&r.onInteractiveHistoryChanged){let I=this.interactiveController.getHistoryState();this.subscription.add(I.history$.subscribe(y=>{var g,P,B;y.length&&((B=(P=(g=this.videoConfig)==null?void 0:g.callbacks)==null?void 0:P.onInteractiveHistoryChanged)==null||B.call(P,y))}))}this.uiConfig.features.interactiveTimeIndicator&&this.subscription.add(this.interactiveController.events.noInteraction$.subscribe(()=>{var I,y,g,P;(I=this.microStoresRoot)==null||I.stores.showInteractiveTimeIndicatorTooltip$.set(!0,!0),(P=(y=this.videoConfig)==null?void 0:(g=y.callbacks).onInteractiveTimeIndicatorClick)==null||P.call(g)})),this.interactiveController.on(a.errors,I=>{this.log({message:I.toString()})})}catch(l){this.log({message:l.message})}})}initInteractivesStatistics(){return ct(this,null,function*(){var o,r;let{statSubscription:t,oneStat:n}=this.statistics;if(!(!t||!n||!this.interactiveController))try{let{INTERACTIVE_CLICK_ACTIONS:l}=yield import("@vkontakte/videoplayer-interactive"),a={[l.GO_NEXT_BUTTON]:jl.NEXT_BUTTON,[l.GO_NEXT_AREA]:jl.NEXT_AREA,[l.WATCH_AGAIN]:jl.WATCH_AGAIN,[l.OPEN_GRAPH]:jl.GRAPH_SHOW,[l.CLOSE_GRAPH]:jl.GRAPH_HIDE},{click$:s,nextMovie$:u}=this.interactiveController.getStatEvents(),c=new R8;s.subscribe(m=>{var h,w;m in a?c.next(a[m]):(n==null||n.logError({errorType:"InteractiveVideosAction",fatal:!1}),(w=(h=this.sentry).report)==null||w.call(h,new Error("InteractiveVideosAction"),{errorType:"InteractiveVideosAction",fatal:!1}))}),t.add(n.attachToInteractive({click$:c,nextMovie$:u}))}catch(l){n==null||n.logError({errorType:"InteractiveVideos",fatal:!1}),(r=(o=this.sentry).report)==null||r.call(o,l,{errorType:"InteractiveVideosAction",fatal:!1})}})}initPlayer(t,n={}){var o,r,l,a,s,u,c,m,h,w,b,C,v,I,y,g,P,B,M;if(!Array.isArray(t.videos)||t.videos.length===0&&!t.interactiveData)throw new Error("empty videos");this.videoConfig=Ef(D8,E8(t,q=>q instanceof HTMLElement?q:void 0)),this.uiConfig=Zf((o=n.ui)!=null?o:{}),this.coreConfig=(r=n.core)!=null?r:{configName:[]},this.statisticsConfig=(l=n.statistics)!=null?l:{},this.sentry={config:(a=this.uiConfig.sentry)!=null?a:{}},Mf(this.videoConfig.isMediaSessionEnabled)&&(this.uiConfig.features.mediaSession=(s=this.videoConfig.isMediaSessionEnabled)!=null?s:!0),Mf(this.videoConfig.isPictureInPictureEnabled)&&(this.uiConfig.features.pip=(c=(u=this.uiConfig.features.pip)!=null?u:this.videoConfig.isPictureInPictureEnabled)!=null?c:!0,this.uiConfig.features.dpip=(h=(m=this.uiConfig.features.dpip)!=null?m:this.videoConfig.isPictureInPictureEnabled)!=null?h:!0),this.videoConfig.isMobile=(w=this.uiConfig.isMobile)!=null?w:this.videoConfig.isMobile,(b=this.videoConfig).autoplay&&(b.autoplay=this.uiConfig.features.autoplay),this.videoConfig.showAds=(C=this.uiConfig.ads.enable)!=null?C:this.videoConfig.showAds,this.videoConfig.adsSlotId=(v=this.uiConfig.ads.slot)!=null?v:this.videoConfig.adsSlotId,this.videoConfig.adsPreviewParam=(I=this.uiConfig.ads.preview)!=null?I:this.videoConfig.adsPreviewParam,this.videoConfig.logoHidden=!((y=this.uiConfig.showLogo)!=null?y:!this.videoConfig.logoHidden),(g=this.videoConfig).canRewindLive&&(g.canRewindLive=this.uiConfig.features.liveRewind),this.videoConfig.supportLink=(P=this.videoConfig.supportLink)!=null?P:this.uiConfig.supportLink,this.currentPlayingVideoIndex=0,this.needToRepeatPlaylist=this.videoConfig.repeat,this.uiConfig.features.pip&&(this.uiConfig.features.dpip?this.pictureInPictureApi=cs.getLatestSupportedVersion():this.pictureInPictureApi=new No),this.mediaSessionApi=this.uiConfig.features.mediaSession?new fs:void 0,this.annotationsApi=this.uiConfig.features.annotations?new ds(this.rootContainer):void 0,(B=this.svelteStubComponent)==null||B.$destroy(),(M=this.svelteRootComponent)==null||M.$destroy(),this.isInited=!1,this.prevIsid=void 0,this.interactiveController&&(this.interactiveController.destroy(),this.interactiveController=void 0),t.interactiveData?this.initInteractives():this.createPlayer(t.videos[0]),Kp(this.pictureInPictureApi)&&this.pictureInPictureApi.setPlayerDomElement(this.playerContainer,this._shadowRoot)}isOneVideoPlaylist(){return this.videoConfig?this.videoConfig.videos.length===1:!1}updateNextVideos(t){var o;if(!this.videoConfig)return;this.log({message:`update next videos, videos: ${JSON.stringify(t)}`}),this.videoConfig.videos.splice(this.currentPlayingVideoIndex+1),this.videoConfig.videos.push(...t);let n=this.getNextVideoInfo();(o=this.svelteRootComponent)==null||o.$set({showNextPrevButtons:this.needToShowNextPrevButtons(),nextButtonActive:this.isNextButtonActive(),prevButtonActive:this.isPrevButtonActive(),endScreenVideoTitle:n.nextVideoTitle,endScreenVideoThumb:n.nextVideoThumb,isOneVideoPlaylist:this.isOneVideoPlaylist()})}initMediaSession(){var t,n;this.mediaSessionApi&&((t=this.unsubscribePlayerPhaseSubscription)==null||t.call(this),this.mediaSessionApi.clearSubscriptions(),this.unsubscribePlayerPhaseSubscription=(n=this.store)==null?void 0:n.playerPhase.subscribe(o=>{o==="video"?this.setupMediaSessionForVideo():o==="ads"&&this.setupMediaSessionForAds()}))}setupMediaSessionForVideo(){if(!(!this.videoConfig||!this.mediaSessionApi))try{let{title:t,thumbUrl:n}=rt({},this.videoConfig.videos[this.currentPlayingVideoIndex]),o=[["play",()=>this.play()],["pause",()=>this.pause()],["seekto",r=>this.seekTime(r.seekTime)]];this.videoConfig.videos.length>1&&(this.currentPlayingVideoIndex<this.videoConfig.videos.length-1&&o.push(["nexttrack",()=>this.playNextVideo()]),this.currentPlayingVideoIndex>0&&o.push(["previoustrack",()=>this.playPrevVideo()])),this.mediaSessionApi.setMetaData({title:t,thumbUrl:n}),this.mediaSessionApi.updateActionHandlers(o),this.mediaSessionApi.attachToStore(this.store)}catch(t){this.log({message:t.message})}}setupMediaSessionForAds(){if(!(!this.videoConfig||!this.mediaSessionApi))try{let t="\u0420\u0435\u043A\u043B\u0430\u043C\u0430",n=[["play",()=>this.play()],["pause",()=>this.pause()]];this.mediaSessionApi.setMetaData({title:t}),this.mediaSessionApi.updateActionHandlers(n),this.mediaSessionApi.attachToStore(this.store)}catch(t){this.log({message:t.message})}}play(){var t,n,o,r;this.isControlDisabled("PLAY_BUTTON")||(t=this.store)!=null&&t.playerPhase.is("LiveWaitingStart")||(n=this.store)!=null&&n.playerPhase.is("LiveWaitingRecover")||(o=this.store)!=null&&o.playerPhase.is("LiveWaitingRecord")||(this.log({message:"play"}),(r=this.svelteRootComponent)==null||r.play())}pause(){var t;this.log({message:"pause"}),(t=this.svelteRootComponent)==null||t.pause()}stop(){var n,o,r;if(!this.videoConfig)return;this.log({message:"stop"}),(n=this.svelteStubComponent)==null||n.$destroy(),(o=this.mediaSessionApi)==null||o.destroy();let t=this.videoConfig.videos[0];t&&((r=this.svelteRootComponent)==null||r.$destroy(),this.createPlayer(t))}setMuted(t){var n;this.log({message:`set muted, muted: ${t}`}),(n=this.svelteRootComponent)==null||n.setMuted(t)}setVolume(t){var n;this.log({message:`set volume, volume: ${t}`}),(n=this.svelteRootComponent)==null||n.setVolume(t)}setRepeat(t){var n;this.log({message:`set repeat, repeat: ${t}`}),this.needToRepeatPlaylist=t,(n=this.svelteRootComponent)==null||n.$set({needToRepeatPlaylist:this.needToRepeatPlaylist,showNextPrevButtons:this.needToShowNextPrevButtons(),nextButtonActive:this.isNextButtonActive(),prevButtonActive:this.isPrevButtonActive()})}seekTime(t){var n;this.isControlDisabled("TIMELINE")||(this.log({message:`seek time, time: ${t}`}),(n=this.svelteRootComponent)==null||n.seekTime(t))}seekEpisodeStartTime(t){var n;this.log({message:`seek episode start time, time: ${t}`}),(n=this.svelteRootComponent)==null||n.seekEpisodeStartTime(t)}returnFocusToEpisodes(){var t;this.log({message:"return focus to episodes button"}),(t=this.svelteRootComponent)==null||t.returnFocusToEpisodes()}setPlaybackRate(t){var n;this.log({message:`set playback rate to: ${t}`}),(n=this.svelteRootComponent)==null||n.setPlaybackRate(t)}setAutoQualityLimits(t){var n,o,r;this.log({message:`set auto quality limitation. Max: ${(n=t.max)!=null?n:"none"}. Min: ${(o=t.min)!=null?o:"none"}`}),(r=this.svelteRootComponent)==null||r.setAutoQualityLimits(t)}addLanguage(t){var n;(n=this.store)==null||n.actions.internal.addLanguage(t)}setLanguage(t){return ct(this,null,function*(){var n;yield(n=this.store)==null?void 0:n.actions.internal.setLanguage(t)})}setLiveStart(t){var n,o,r;this.log({message:"live started"}),(n=this.store)==null||n.actions.internal.setLiveWaitingRecover(!1),(o=this.store)==null||o.actions.internal.setLiveWaitingStart(!1),(r=this.svelteRootComponent)==null||r.$destroy(),this.createPlayer(t,{autoplay:!0})}setLiveWaitingRecover(){var t,n;this.log({message:"live waiting"}),(t=this.store)==null||t.actions.internal.setLiveWaitingRecover(!0),(n=this.store)==null||n.destroy()}setLiveWaitingRecord(){var t,n;this.log({message:"post live"}),(t=this.store)==null||t.actions.internal.setLiveWaitingRecord(!0),(n=this.store)==null||n.destroy()}setLiveEnd(t){var n,o,r;this.log({message:"live ended"}),(n=this.store)==null||n.actions.internal.setLiveWaitingRecover(!1),(o=this.store)==null||o.actions.internal.setLiveWaitingRecord(!1),(r=this.svelteRootComponent)==null||r.$destroy(),this.createPlayer(t,{autoplay:!1})}getDeviceId(){var t,n;return(n=(t=this.statistics)==null?void 0:t.oneStat.getDeviceId())!=null?n:void 0}replayInteractiveVideo(){this.interactiveController&&this.interactiveController.setChapter()}replayInteractiveChapter(t){return ct(this,null,function*(){var n;if(this.interactiveController&&((n=this.store)!=null&&n.state.positionExact$)){let{EVENT_NAMES:o}=yield import("@vkontakte/videoplayer-interactive"),r=et(this.store.state.positionExact$),a=et(this.store.state.interactiveEpisodes$).find(u=>!u.completed);this.interactiveController.once(o.playerChanged,()=>{a&&r>=a.time?this.seekTime(a.time):this.seekTime(r),t==null||t()});let s=this.interactiveController.getCurrentChapter();yield this.interactiveController.setChapter({chapterId:s.chapter.id,pushToHistory:!1})}})}showInteractiveIndicatorTooltip(t,n=!1){var o;(o=this.microStoresRoot)==null||o.stores.showInteractiveTimeIndicatorTooltip$.set(t,n)}switchToActiveLive(){var t;(t=this.store)==null||t.actions.internal.switchToActiveLive()}updateStatContext(t){this.statistics.oneStat.updateContext(t)}};import{InterfaceLanguage as HO,VKNumericLanguage as zO,loadVKLangPack as UO}from"@vkontakte/videoplayer-shared";import{VideoQuality as jO,VideoFormat as WO}from"@vkontakte/videoplayer-core";var NO=()=>{window.customElements.define("vk-video-player",ps)};export{Ro as GridTypes,HO as InterfaceLanguage,rl as VERSION,zO as VKNumericLanguage,WO as VideoFormat,jO as VideoQuality,UO as loadVKLangPack,NO as registerPlayerWebComponent};
|
|
52
|
+
);--timeline-preview-shadow:rgba(0, 0, 0, 0.08);--timeline-preview-bg:rgba(34, 34, 34, 1);--mobile-settings-bg:#2C2D2E;--button-hover-transition:opacity 0.2s;--video-container-z-index:0;--controls-container-z-index:1;--ads-container-z-index:1;--thumb-timer-z-index:2;--hot-key-helpers-container-z-index:3;--overlay-container-z-index:4;--rotate-transition-duration:0.25s;position:relative;width:100%;height:100%;color:var(--white);font-size:12px;line-height:normal;overflow:hidden;outline:0;user-select:none;font-family:-apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;background:var(--black)}*{-webkit-tap-highlight-color:transparent}button{border:none;margin:0;padding:0;width:auto;overflow:visible;background:transparent;color:inherit;font:inherit;line-height:normal;-webkit-font-smoothing:inherit;-moz-osx-font-smoothing:inherit;-webkit-appearance:none;cursor:pointer}svg:not(.interactiveContainer svg){pointer-events:none}*:focus, *:focus-visible{outline:none}*:focus-visible{box-shadow:var(--focused-element-shadow)}.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)}.out-of-view{position:absolute !important;left:-1000vh !important}`)}function t8(i){let e,t,n;function o(l){i[61](l)}let r={store:i[0],uiConfig:i[35],title:i[1],thumbUrl:i[2],interactiveContainer:i[3],live:i[4],autoplay:i[5],canRewindLive:i[6],showAds:i[7],adsSlotId:i[8],adsParams:i[9],adsPreviewParam:i[10],duration:i[11],logoClickable:i[12],logoHidden:i[13],logoTargetUrl:i[36],showNextPrevButtons:i[15],nextButtonActive:i[16],prevButtonActive:i[17],endScreenVideoTitle:i[18],endScreenVideoThumb:i[19],isOneVideoPlaylist:i[20],supportLink:i[21],shadowRootContainer:i[22],outerContainerRef:i[23],fullScreenTarget:i[24],showMiniTimer:i[25],playerStarted:i[34],playNextVideo:i[26],playPrevVideo:i[27],repeatPlaylist:i[28],seekToInteractive:i[29],toggleGraph:i[30],playPrevChapter:i[31],firstStart:i[38]};return i[33]!==void 0&&(r.videoContainer=i[33]),e=new wp({props:r}),ge.push(()=>He(e,"videoContainer",o)),{c(){q(e.$$.fragment)},m(l,a){V(e,l,a),n=!0},p(l,a){let s={};a[0]&1&&(s.store=l[0]),a[0]&2&&(s.title=l[1]),a[0]&4&&(s.thumbUrl=l[2]),a[0]&8&&(s.interactiveContainer=l[3]),a[0]&16&&(s.live=l[4]),a[0]&32&&(s.autoplay=l[5]),a[0]&64&&(s.canRewindLive=l[6]),a[0]&128&&(s.showAds=l[7]),a[0]&256&&(s.adsSlotId=l[8]),a[0]&512&&(s.adsParams=l[9]),a[0]&1024&&(s.adsPreviewParam=l[10]),a[0]&2048&&(s.duration=l[11]),a[0]&4096&&(s.logoClickable=l[12]),a[0]&8192&&(s.logoHidden=l[13]),a[0]&32768&&(s.showNextPrevButtons=l[15]),a[0]&65536&&(s.nextButtonActive=l[16]),a[0]&131072&&(s.prevButtonActive=l[17]),a[0]&262144&&(s.endScreenVideoTitle=l[18]),a[0]&524288&&(s.endScreenVideoThumb=l[19]),a[0]&1048576&&(s.isOneVideoPlaylist=l[20]),a[0]&2097152&&(s.supportLink=l[21]),a[0]&4194304&&(s.shadowRootContainer=l[22]),a[0]&8388608&&(s.outerContainerRef=l[23]),a[0]&16777216&&(s.fullScreenTarget=l[24]),a[0]&33554432&&(s.showMiniTimer=l[25]),a[1]&8&&(s.playerStarted=l[34]),a[0]&67108864&&(s.playNextVideo=l[26]),a[0]&134217728&&(s.playPrevVideo=l[27]),a[0]&268435456&&(s.repeatPlaylist=l[28]),a[0]&536870912&&(s.seekToInteractive=l[29]),a[0]&1073741824&&(s.toggleGraph=l[30]),a[1]&1&&(s.playPrevChapter=l[31]),!t&&a[1]&4&&(t=!0,s.videoContainer=l[33],ze(()=>t=!1)),e.$set(s)},i(l){n||(d(e.$$.fragment,l),n=!0)},o(l){_(e.$$.fragment,l),n=!1},d(l){R(e,l)}}}function i8(i){let e,t,n;function o(l){i[60](l)}let r={store:i[0],uiConfig:i[35],thumbUrl:i[2],interactiveContainer:i[3],live:i[4],autoplay:i[5],canRewindLive:i[6],showAds:i[7],adsSlotId:i[8],adsParams:i[9],adsPreviewParam:i[10],duration:i[11],logoClickable:i[12],logoHidden:i[13],logoTargetUrl:i[36],showNextPrevButtons:i[15],nextButtonActive:i[16],prevButtonActive:i[17],endScreenVideoTitle:i[18],endScreenVideoThumb:i[19],isOneVideoPlaylist:i[20],supportLink:i[21],shadowRootContainer:i[22],outerContainerRef:i[23],fullScreenTarget:i[24],showMiniTimer:i[25],playerStarted:i[34],playNextVideo:i[26],playPrevVideo:i[27],repeatPlaylist:i[28],seekToInteractive:i[29],toggleGraph:i[30],playPrevChapter:i[31],firstStart:i[38],seekTime:i[32]};return i[33]!==void 0&&(r.videoContainer=i[33]),e=new zp({props:r}),ge.push(()=>He(e,"videoContainer",o)),{c(){q(e.$$.fragment)},m(l,a){V(e,l,a),n=!0},p(l,a){let s={};a[0]&1&&(s.store=l[0]),a[0]&4&&(s.thumbUrl=l[2]),a[0]&8&&(s.interactiveContainer=l[3]),a[0]&16&&(s.live=l[4]),a[0]&32&&(s.autoplay=l[5]),a[0]&64&&(s.canRewindLive=l[6]),a[0]&128&&(s.showAds=l[7]),a[0]&256&&(s.adsSlotId=l[8]),a[0]&512&&(s.adsParams=l[9]),a[0]&1024&&(s.adsPreviewParam=l[10]),a[0]&2048&&(s.duration=l[11]),a[0]&4096&&(s.logoClickable=l[12]),a[0]&8192&&(s.logoHidden=l[13]),a[0]&32768&&(s.showNextPrevButtons=l[15]),a[0]&65536&&(s.nextButtonActive=l[16]),a[0]&131072&&(s.prevButtonActive=l[17]),a[0]&262144&&(s.endScreenVideoTitle=l[18]),a[0]&524288&&(s.endScreenVideoThumb=l[19]),a[0]&1048576&&(s.isOneVideoPlaylist=l[20]),a[0]&2097152&&(s.supportLink=l[21]),a[0]&4194304&&(s.shadowRootContainer=l[22]),a[0]&8388608&&(s.outerContainerRef=l[23]),a[0]&16777216&&(s.fullScreenTarget=l[24]),a[0]&33554432&&(s.showMiniTimer=l[25]),a[1]&8&&(s.playerStarted=l[34]),a[0]&67108864&&(s.playNextVideo=l[26]),a[0]&134217728&&(s.playPrevVideo=l[27]),a[0]&268435456&&(s.repeatPlaylist=l[28]),a[0]&536870912&&(s.seekToInteractive=l[29]),a[0]&1073741824&&(s.toggleGraph=l[30]),a[1]&1&&(s.playPrevChapter=l[31]),!t&&a[1]&4&&(t=!0,s.videoContainer=l[33],ze(()=>t=!1)),e.$set(s)},i(l){n||(d(e.$$.fragment,l),n=!0)},o(l){_(e.$$.fragment,l),n=!1},d(l){R(e,l)}}}function n8(i){let e,t,n,o,r=[i8,t8],l=[];function a(s,u){return s[14]?0:1}return t=a(i,[-1,-1,-1]),n=l[t]=r[t](i),{c(){e=T("div"),n.c(),f(e,"class","root svelte-167r2e3")},m(s,u){S(s,e,u),l[t].m(e,null),o=!0},p(s,u){let c=t;t=a(s,u),t===c?l[t].p(s,u):(ce(),_(l[c],1,1,()=>{l[c]=null}),de(),n=l[t],n?n.p(s,u):(n=l[t]=r[t](s),n.c()),d(n,1),n.m(e,null))},i(s){o||(d(n),o=!0)},o(s){_(n),o=!1},d(s){s&&k(e),l[t].d()}}}function o8(i,e,t){let n,{sources:o}=e,{store:r}=e,{microStoresRoot:l}=e,{videoConfig:a}=e,{uiConfig:s}=e,{title:u}=e,{thumbUrl:c}=e,{interactiveContainer:m}=e,{subtitles:h}=e,{live:w}=e,{preload:g}=e,{autoplay:C}=e,{volume:v=void 0}=e,{muted:E=void 0}=e,{fromTime:y}=e,{canRewindLive:b}=e,{showAds:P}=e,{adsSlotId:A=void 0}=e,{adsParams:M=void 0}=e,{adsPreviewParam:N=void 0}=e,{duration:te=void 0}=e,{logoClickable:_e}=e,{logoHidden:X}=e,{isMobile:$}=e,{showNextPrevButtons:se=!1}=e,{nextButtonActive:L=!1}=e,{prevButtonActive:K=!1}=e,{endScreenVideoTitle:x=void 0}=e,{endScreenVideoThumb:Z=void 0}=e,{isOneVideoPlaylist:F=!1}=e,{supportLink:Q}=e,{shadowRootContainer:J=void 0}=e,{outerContainerRef:oe=void 0}=e,{fullScreenTarget:Be=void 0}=e,{failoverHosts:Ye=void 0}=e,{showMiniTimer:Ie=!1}=e,{saveRate:Re}=e,{playNextVideo:qe=Sl}=e,{playPrevVideo:xe=Sl}=e,{repeatPlaylist:ae=Sl}=e,{seekToInteractive:he=Sl}=e,{toggleGraph:ft=Sl}=e,{playPrevChapter:ke=Sl}=e,{volumeMultiplier:Ke}=e,{subscribers:_t,stores:Ze}=l;ic(s);let Ge=Wt(),Xe=s.logoLink,et=r.ui.debugPanelVisible,fe=r.ui.playerSize,Te=r.state.isLive$;H(i,Te,ve=>t(63,n=ve));let We,le=null,Se=!1;r.getAdmanWrapper().init({switchFromAdsToVideo:r.actions.internal.switchFromAdsToVideo,switchFromVideoToAds:r.actions.internal.switchFromVideoToAds,setMuted:r.actions.external.setMuted},r.ads,{isMobile:r.ui.isMobile,mobileUnmuteButtonVisible:r.ui.mobileUnmuteButtonVisible,vsid:r.vsid}),dc(r,Ze);let ht=(ve=!1)=>{t(34,Se=!0),ve?r.actions.external.firstStart(P):r.actions.internal.firstStart(P)};function Ee(ve){var hi;let Je=o||ve;Je&&r.initVideo({container:We,sources:Je,failoverHosts:Ye,subtitles:h,volumeMultiplier:Ke});let gt=J6.get(ql)==="true";et.set(gt),y>0&&r.actions.external.seekTime(y);let Ht=$?Ge.volumeDefault:(hi=v!=null?v:lr())!=null?hi:Ge.volumeDefault,kt=E!=null?E:Pc();if(r.actions.external.setVolume(Ht),r.actions.external.setMuted(kt),r.getAdmanWrapper().setInitialVolume(kt?0:Ht),Ge.features.trafficSaving){let qt=Ec();qt&&r.actions.internal.setTrafficSavingEnabled(qt)}if(Ge.features.saveRate&&Re){let qt=Mc();qt&&!n&&r.actions.internal.setPlaybackRate(qt)}let xt=Cc(r.videoId);xt&&r.actions.internal.setQuality(xt),r.ui.isAutoplay.set(C),C?ht():g&&Ge.features.preload&&r.actions.internal.preload()}let ct=ve=>{if(window.ResizeObserver){let Je,gt;le=new ResizeObserver(x6(Ht=>{let kt=Ht[0];if(kt){if(kt.contentBoxSize){let xt=Array.isArray(kt.contentBoxSize)?kt.contentBoxSize[0]:kt.contentBoxSize;Je=xt.inlineSize,gt=xt.blockSize}else kt.contentRect&&(Je=kt.contentRect.width,gt=kt.contentRect.height);fe.set({width:Je,height:gt})}},300)),le.observe(ve)}fe.set({width:ve.clientWidth,height:ve.clientHeight})};Nt(()=>{ct(We);let ve=_t.map(gt=>gt.init({store:r,microStores:Ze,config:a}));if((w==null?void 0:w.status)==="upcoming"){r.actions.internal.setLiveWaitingStart(!0);return}if((w==null?void 0:w.status)==="waiting"){r.actions.internal.setLiveWaitingRecover(!0);return}if(((w==null?void 0:w.status)==="finished"||(w==null?void 0:w.status)==="postlive")&&!Object.keys(o||[]).length){r.actions.internal.setLiveWaitingRecord(!0);return}return Ee(),()=>{le==null||le.disconnect(),ve.forEach(gt=>gt.unsubscribe()),r.destroy()}});function me(){Se?r.actions.external.play():ht(!0)}function tt(){r.actions.external.pause()}function Tt(ve){$||r.actions.external.setMuted(ve)}function vt(ve){$||ve>=0&&ve<=1&&r.actions.external.setVolume(ve)}function Ue(ve){r.actions.internal.seekTime(ve,$6.UNKNOWN)}function zt(ve){r.actions.external.seekEpisodeStartTime(ve)}function Dt(){r.actions.external.returnFocusToEpisodes()}function Pt(ve){r.actions.external.setPlaybackRate(ve)}function li(ve){r.actions.external.setAutoQualityLimits(ve)}function dt(ve){We=ve,t(33,We)}function lt(ve){We=ve,t(33,We)}return i.$$set=ve=>{"sources"in ve&&t(39,o=ve.sources),"store"in ve&&t(0,r=ve.store),"microStoresRoot"in ve&&t(40,l=ve.microStoresRoot),"videoConfig"in ve&&t(41,a=ve.videoConfig),"uiConfig"in ve&&t(42,s=ve.uiConfig),"title"in ve&&t(1,u=ve.title),"thumbUrl"in ve&&t(2,c=ve.thumbUrl),"interactiveContainer"in ve&&t(3,m=ve.interactiveContainer),"subtitles"in ve&&t(43,h=ve.subtitles),"live"in ve&&t(4,w=ve.live),"preload"in ve&&t(44,g=ve.preload),"autoplay"in ve&&t(5,C=ve.autoplay),"volume"in ve&&t(45,v=ve.volume),"muted"in ve&&t(46,E=ve.muted),"fromTime"in ve&&t(47,y=ve.fromTime),"canRewindLive"in ve&&t(6,b=ve.canRewindLive),"showAds"in ve&&t(7,P=ve.showAds),"adsSlotId"in ve&&t(8,A=ve.adsSlotId),"adsParams"in ve&&t(9,M=ve.adsParams),"adsPreviewParam"in ve&&t(10,N=ve.adsPreviewParam),"duration"in ve&&t(11,te=ve.duration),"logoClickable"in ve&&t(12,_e=ve.logoClickable),"logoHidden"in ve&&t(13,X=ve.logoHidden),"isMobile"in ve&&t(14,$=ve.isMobile),"showNextPrevButtons"in ve&&t(15,se=ve.showNextPrevButtons),"nextButtonActive"in ve&&t(16,L=ve.nextButtonActive),"prevButtonActive"in ve&&t(17,K=ve.prevButtonActive),"endScreenVideoTitle"in ve&&t(18,x=ve.endScreenVideoTitle),"endScreenVideoThumb"in ve&&t(19,Z=ve.endScreenVideoThumb),"isOneVideoPlaylist"in ve&&t(20,F=ve.isOneVideoPlaylist),"supportLink"in ve&&t(21,Q=ve.supportLink),"shadowRootContainer"in ve&&t(22,J=ve.shadowRootContainer),"outerContainerRef"in ve&&t(23,oe=ve.outerContainerRef),"fullScreenTarget"in ve&&t(24,Be=ve.fullScreenTarget),"failoverHosts"in ve&&t(48,Ye=ve.failoverHosts),"showMiniTimer"in ve&&t(25,Ie=ve.showMiniTimer),"saveRate"in ve&&t(49,Re=ve.saveRate),"playNextVideo"in ve&&t(26,qe=ve.playNextVideo),"playPrevVideo"in ve&&t(27,xe=ve.playPrevVideo),"repeatPlaylist"in ve&&t(28,ae=ve.repeatPlaylist),"seekToInteractive"in ve&&t(29,he=ve.seekToInteractive),"toggleGraph"in ve&&t(30,ft=ve.toggleGraph),"playPrevChapter"in ve&&t(31,ke=ve.playPrevChapter),"volumeMultiplier"in ve&&t(50,Ke=ve.volumeMultiplier)},i.$$.update=()=>{i.$$.dirty[0]&16385&&r.ui.isMobile.set($)},[r,u,c,m,w,C,b,P,A,M,N,te,_e,X,$,se,L,K,x,Z,F,Q,J,oe,Be,Ie,qe,xe,ae,he,ft,ke,Ue,We,Se,Ge,Xe,Te,ht,o,l,a,s,h,g,v,E,y,Ye,Re,Ke,Ee,me,tt,Tt,vt,zt,Dt,Pt,li,dt,lt]}var Lf=class extends j{constructor(e){super(),G(this,e,o8,n8,W,{sources:39,store:0,microStoresRoot:40,videoConfig:41,uiConfig:42,title:1,thumbUrl:2,interactiveContainer:3,subtitles:43,live:4,preload:44,autoplay:5,volume:45,muted:46,fromTime:47,canRewindLive:6,showAds:7,adsSlotId:8,adsParams:9,adsPreviewParam:10,duration:11,logoClickable:12,logoHidden:13,isMobile:14,showNextPrevButtons:15,nextButtonActive:16,prevButtonActive:17,endScreenVideoTitle:18,endScreenVideoThumb:19,isOneVideoPlaylist:20,supportLink:21,shadowRootContainer:22,outerContainerRef:23,fullScreenTarget:24,failoverHosts:48,showMiniTimer:25,saveRate:49,playNextVideo:26,playPrevVideo:27,repeatPlaylist:28,seekToInteractive:29,toggleGraph:30,playPrevChapter:31,volumeMultiplier:50,initVideo:51,play:52,pause:53,setMuted:54,setVolume:55,seekTime:32,seekEpisodeStartTime:56,returnFocusToEpisodes:57,setPlaybackRate:58,setAutoQualityLimits:59},e8,[-1,-1,-1])}get initVideo(){return this.$$.ctx[51]}get play(){return this.$$.ctx[52]}get pause(){return this.$$.ctx[53]}get setMuted(){return this.$$.ctx[54]}get setVolume(){return this.$$.ctx[55]}get seekTime(){return this.$$.ctx[32]}get seekEpisodeStartTime(){return this.$$.ctx[56]}get returnFocusToEpisodes(){return this.$$.ctx[57]}get setPlaybackRate(){return this.$$.ctx[58]}get setAutoQualityLimits(){return this.$$.ctx[59]}},Hp=Lf;function l8(i){let e,t,n,o=i[2].default,r=Le(o,i,i[1],null),l=[{xmlns:"http://www.w3.org/2000/svg"},{width:"57"},{height:"60"},{fill:"none"},{"aria-hidden":"true"},{"data-testid":"stub-icon"},{role:"img"},i[0]],a={};for(let s=0;s<l.length;s+=1)a=ue(a,l[s]);return{c(){e=D("svg"),r&&r.c(),t=D("path"),f(t,"fill","currentColor"),f(t,"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"),we(e,a)},m(s,u){S(s,e,u),r&&r.m(e,null),p(e,t),n=!0},p(s,[u]){r&&r.p&&(!n||u&2)&&Me(r,o,s,s[1],n?Ae(o,s[1],u,null):Ve(s[1]),null),we(e,a=Ne(l,[{xmlns:"http://www.w3.org/2000/svg"},{width:"57"},{height:"60"},{fill:"none"},{"aria-hidden":"true"},{"data-testid":"stub-icon"},{role:"img"},u&1&&s[0]]))},i(s){n||(d(r,s),n=!0)},o(s){_(r,s),n=!1},d(s){s&&k(e),r&&r.d(s)}}}function r8(i,e,t){let{$$slots:n={},$$scope:o}=e;return i.$$set=r=>{t(0,e=ue(ue({},e),ye(r))),"$$scope"in r&&t(1,o=r.$$scope)},e=ye(e),[e,o,n]}var Af=class extends j{constructor(e){super(),G(this,e,r8,l8,W,{})}},Up=Af;function s8(i){let e,t;return e=new Up({props:{style:i[0]}}),{c(){q(e.$$.fragment)},m(n,o){V(e,n,o),t=!0},p(n,[o]){let r={};o&1&&(r.style=n[0]),e.$set(r)},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){_(e.$$.fragment,n),t=!1},d(n){R(e,n)}}}function a8(i,e,t){let n,{isWhite:o=!1}=e;return i.$$set=r=>{"isWhite"in r&&t(1,o=r.isWhite)},i.$$.update=()=>{i.$$.dirty&2&&t(0,n=o?"color: #fff;":"color: #909499;")},[n,o]}var Mf=class extends j{constructor(e){super(),G(this,e,a8,s8,W,{isWhite:1})}},Kp=Mf;function u8(i){Pe(i,"svelte-1y9fytq",".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 Wp(i){let e,t;return{c(){e=T("div"),t=De(i[0]),f(e,"class","title svelte-1y9fytq")},m(n,o){S(n,e,o),p(e,t)},p(n,o){o&1&&Qe(t,n[0])},d(n){n&&k(e)}}}function jp(i){let e,t;return e=new Kp({props:{isWhite:!!i[1]}}),{c(){q(e.$$.fragment)},m(n,o){V(e,n,o),t=!0},p(n,o){let r={};o&2&&(r.isWhite=!!n[1]),e.$set(r)},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){_(e.$$.fragment,n),t=!1},d(n){R(e,n)}}}function f8(i){let e,t,n,o,r=i[0]&&Wp(i),l=(!i[0]||!i[1])&&jp(i);return{c(){e=T("div"),r&&r.c(),t=B(),l&&l.c(),f(e,"class","playerStub svelte-1y9fytq"),f(e,"style",n=i[1]?`background-image: url('${i[1]}')`:"")},m(a,s){S(a,e,s),r&&r.m(e,null),p(e,t),l&&l.m(e,null),o=!0},p(a,[s]){a[0]?r?r.p(a,s):(r=Wp(a),r.c(),r.m(e,t)):r&&(r.d(1),r=null),!a[0]||!a[1]?l?(l.p(a,s),s&3&&d(l,1)):(l=jp(a),l.c(),d(l,1),l.m(e,null)):l&&(ce(),_(l,1,1,()=>{l=null}),de()),(!o||s&2&&n!==(n=a[1]?`background-image: url('${a[1]}')`:""))&&f(e,"style",n)},i(a){o||(d(l),o=!0)},o(a){_(l),o=!1},d(a){a&&k(e),r&&r.d(),l&&l.d()}}}function c8(i,e,t){let{title:n}=e,{thumbUrl:o}=e;return i.$$set=r=>{"title"in r&&t(0,n=r.title),"thumbUrl"in r&&t(1,o=r.thumbUrl)},[n,o]}var Vf=class extends j{constructor(e){super(),G(this,e,c8,f8,W,{title:0,thumbUrl:1},u8)}},Gp=Vf;import{cloneDeepWith as A8,InterfaceLanguage as M8,clientChecker as V8,isMobile as R8,isNonNullable as Nf,Logger as B8,Subscription as q8}from"@vkontakte/videoplayer-shared";import"@vkontakte/videoplayer-core";import{OneStat as D8}from"@vkontakte/videoplayer-statistics";import{Subscription as d8}from"@vkontakte/videoplayer-shared";var ps=class{constructor(){this.subscription=new d8}isSupported(){return"mediaSession"in navigator}setMetaData({title:e,artist:t="",thumbUrl:n=""}){this.isSupported()&&(navigator.mediaSession.metadata=new MediaMetadata({title:e,artist:t,artwork:[{src:n,sizes:"96x96",type:"image/png"},{src:n,sizes:"128x128",type:"image/png"},{src:n,sizes:"192x192",type:"image/png"},{src:n,sizes:"256x256",type:"image/png"},{src:n,sizes:"384x384",type:"image/png"},{src:n,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",t=>null],["seekbackward",t=>null],["seekforward",t=>null]];this.setActionHandlers(e)}setActionHandlers(e){if(this.isSupported())for(let[t,n]of e)try{navigator.mediaSession.setActionHandler(t,n)}catch(o){throw new Error(`The media session action "${t}" is not supported yet.`)}}attachToStore(e){!this.isSupported()||!e||this.subscription.add(e.state.positionExact$.subscribe(t=>{let n=$e(e.state.currentPlaybackRate$),o=$e(e.state.duration$);!isFinite(t)||!isFinite(o)||navigator.mediaSession.setPositionState({position:t,playbackRate:n,duration:o})}))}clearSubscriptions(){this.subscription.unsubscribe()}destroy(){this.resetActionHandlers(),this.clearSubscriptions()}};import{ValueSubject as b8,clientChecker as v8,detectEmbed as y8}from"@vkontakte/videoplayer-shared";function m8(i){let e,t,n,o,r,l=i[2].default,a=Le(l,i,i[1],null),s=[{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[0]],u={};for(let c=0;c<s.length;c+=1)u=ue(u,s[c]);return{c(){e=D("svg"),a&&a.c(),t=D("g"),n=D("path"),o=D("path"),f(n,"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"),f(o,"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"),f(t,"fill","#fff"),we(e,u)},m(c,m){S(c,e,m),a&&a.m(e,null),p(e,t),p(t,n),p(t,o),r=!0},p(c,[m]){a&&a.p&&(!r||m&2)&&Me(a,l,c,c[1],r?Ae(l,c[1],m,null):Ve(c[1]),null),we(e,u=Ne(s,[{xmlns:"http://www.w3.org/2000/svg"},{width:"57"},{height:"56"},{fill:"none"},{"aria-label":"dummy-image"},{"data-testid":"pip-dummy-icon"},{role:"img"},m&1&&c[0]]))},i(c){r||(d(a,c),r=!0)},o(c){_(a,c),r=!1},d(c){c&&k(e),a&&a.d(c)}}}function p8(i,e,t){let{$$slots:n={},$$scope:o}=e;return i.$$set=r=>{t(0,e=ue(ue({},e),ye(r))),"$$scope"in r&&t(1,o=r.$$scope)},e=ye(e),[e,o,n]}var Rf=class extends j{constructor(e){super(),G(this,e,p8,m8,W,{})}},Qp=Rf;function _8(i){Pe(i,"svelte-1pbsod4",".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 h8(i){let e,t,n,o,r,l,a;return n=new Qp({}),{c(){e=T("div"),t=T("div"),q(n.$$.fragment),o=B(),r=T("span"),l=De(i[0]),f(t,"class","dummy-image svelte-1pbsod4"),O(t,"desktop",!i[1]),f(r,"class","title svelte-1pbsod4"),f(e,"class","player-pip-dummy svelte-1pbsod4"),O(e,"is-pip-api",i[2])},m(s,u){S(s,e,u),p(e,t),V(n,t,null),p(e,o),p(e,r),p(r,l),a=!0},p(s,[u]){(!a||u&2)&&O(t,"desktop",!s[1]),(!a||u&1)&&Qe(l,s[0])},i(s){a||(d(n.$$.fragment,s),a=!0)},o(s){_(n.$$.fragment,s),a=!1},d(s){s&&k(e),R(n)}}}function g8(i,e,t){let n,o,r=rt(),l=!!r.webApi.pictureInPictureApi,a=r.interfaceLanguage$;H(i,a,c=>t(5,n=c));let s=r.ui.isMobile;H(i,s,c=>t(1,o=c));let u;return i.$$.update=()=>{i.$$.dirty&32&&t(0,u=n&&U("pip_dummy_title"))},[u,o,l,a,s,n]}var Bf=class extends j{constructor(e){super(),G(this,e,g8,h8,W,{},_8)}},Yp=Bf;var w8=460,k8=280,jl=class{constructor(){this.info={isActive$:new b8(!1),type:1}}isSupported(){let{isEmbed:e}=y8();return"documentPictureInPicture"in window&&!v8.isYandex&&!e}isActive(){return this.isSupported()&&!!documentPictureInPicture.window}setPlayerDomElement(e,t){this.playerDomElement=e,this.playerParentShadowRoot=t}setContext(e){this.svelteContext=e}request(){return pt(this,null,function*(){var r,l;if(!this.isSupported()||!this.playerDomElement||!this.playerParentShadowRoot)return;this.pipWindow=yield documentPictureInPicture.requestWindow({width:w8,height:k8,copyStyleSheets:!0}),this.pipWindow.document.body.style.margin="0";let e=[...this.playerParentShadowRoot.styleSheets].map(a=>[...a.cssRules].map(s=>s.cssText).join(" ")).filter(Boolean).join(`
|
|
53
|
+
`),t=document.createElement("style");t.textContent=e;let n=this.createStretchedContainer(),o=n.attachShadow({mode:"open"});o.append(t),o.append(this.playerDomElement),this.playerDummyElement=new Yp({target:this.playerParentShadowRoot,context:this.svelteContext}),(r=this.pipWindow)==null||r.document.body.append(n),this.info.isActive$.next(!0),(l=this.pipWindow)==null||l.addEventListener("unload",a=>{!this.playerDomElement||!this.playerParentShadowRoot||!this.playerDummyElement||(this.playerDummyElement.$destroy(),this.playerParentShadowRoot.append(this.playerDomElement),this.info.isActive$.next(!1))})})}remove(){return pt(this,null,function*(){return new Promise(e=>{var t;(t=documentPictureInPicture.window)==null||t.close(),e()})})}dispose(){return pt(this,null,function*(){yield this.remove()})}createStretchedContainer(){let e=document.createElement("div");return e.style.width="100%",e.style.height="100%",e}};function Zp(i){return i instanceof jl}var _s=class{static getLatestSupportedVersion(){let e=new Fo,t=new jl;if(t.isSupported())return t;if(e.isSupported())return e}};function hs(i,e){var o,r;let t=new Set([...Object.keys(i),...Object.keys(e)]),n={};for(let l of t)n[l]=(r=(o=e[l])!=null?o:i[l])!=null?r:void 0;return n}var Xp="Inner error. Unexpectedly root annotation container null reference exception",Jp="Annotation with such name already exists",xp="Annotation with such name does not exist";var Tl=class extends Error{constructor(e){super(e),this.name="AnnotationError"}};import{observeElementSize as C8,Subscription as S8,throttleFn as T8}from"@vkontakte/videoplayer-shared";var P8="1",I8=100,gs=class{constructor(){this.annotations=new Map;this.subscriptions=new S8}init(e){this.rootAnnotationsContainer=e;let t=T8(()=>{for(let n of this.annotations.values())this.isElementExceedsBoundaries(n,this.playerSize.width,this.playerSize.height)?n.style.visibility="hidden":n.style.visibility="visible"},I8);this.subscriptions.add(C8(this.rootAnnotationsContainer).subscribe(({width:n,height:o})=>{this.playerSize={width:n,height:o},t()})),this.mutationObserver=new MutationObserver(t),this.mutationObserver.observe(this.rootAnnotationsContainer,{attributes:!0,childList:!0,subtree:!0,characterData:!0})}add(e,t){var n;if(!this.rootAnnotationsContainer)throw new Tl(Xp);if(this.annotations.has(e))throw new Tl(Jp);t.style.zIndex=(n=t.style.zIndex)!=null?n:P8,t.style.position="absolute",this.rootAnnotationsContainer.append(t),this.annotations.set(e,t)}get(e){let t=this.annotations.get(e);if(!t)throw new Tl(xp);return t}remove(e){let t=this.get(e);this.annotations.delete(e)&&t.remove()}clear(){for(let e in this.annotations.keys())this.remove(e)}destroy(){this.annotations.clear(),this.subscriptions.unsubscribe(),this.mutationObserver.disconnect(),this.rootAnnotationsContainer=null}isElementExceedsBoundaries(e,t,n){let o=e.offsetTop,r=e.offsetLeft,l=e.offsetWidth,a=e.offsetHeight;return o<0||r<0||r+l>t||o+a>n}registryRootContainer(e){}addLayer(e){return document.createElement("div")}getLayer(e){}removeLayer(e){}clearLayer(e){}detach(){}reattach(){}};import{assertNonNullable as qf,Subscription as E8}from"@vkontakte/videoplayer-shared";var no=class{init({store:e,microStores:t,config:n}){return qf(e),qf(t),qf(n),this.subscription=new E8,this.subscription}};var Gl=class extends no{constructor(){super(...arguments);this.stateName="fakeIsPlaying$";this.state$=Bt(nt({},Oe(null)),{toggle:()=>this.state$.update(t=>!t)})}init(t){let n=super.init(t),{isInteractiveExpectation$:o}=t.store.state;return n.add(o.subscribe(r=>{this.state$.set(r?!0:null)})),n}};var Ql=class extends no{constructor(){super(...arguments);this.stateName="interactiveControlsOpacity$";this.state$=Bt(nt({},Oe(null)),{toggle:()=>this.state$.update(t=>!t)})}init(t){let n=super.init(t),{microStores:o,store:r}=t,{fakeIsPlaying$:l}=o,{isInteractiveExpectation$:a,isPlaying$:s}=r.state,{controlsVisible:u,isMobile:c}=r.ui,m=$e(c),h=()=>m&&$e(u);return n.add(u.subscribe(w=>{if(!m)return;let g=$e(l);$e(s)?this.state$.set(w):g!==null&&this.state$.set(!g||w)})),n.add(s.subscribe(w=>{this.state$.set(!w||h())})),n.add(l.subscribe(w=>{if(w===null)return;let g=$e(a);if(h()){this.state$.set(!0);return}g&&this.state$.set(!w)})),n}};var Yl=class extends no{constructor(){super(...arguments);this.stateName="seekToInteractiveDisabledTooltip$";this.state$=Oe("tooltip_chapter_without_interactive")}init(t){let n=super.init(t),{store:o}=t;return n.add(o.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"))})),n}};import{combine as L8}from"@vkontakte/videoplayer-shared";var Df=Oe(!1),bs=null,Zl=class extends no{constructor(){super(...arguments);this.stateName="showInteractiveTimeIndicatorTooltip$";this.state$=Bt(nt({},Df),{set:(t,n=!1)=>{t!==$e(Df)&&(this.clearTimeout(),Df.set(t),!t&&bs&&(bs=!1),t&&n&&(this.timeout=setTimeout(()=>{this.state$.set(!1)},3e3)))},clearTimeout:()=>this.clearTimeout()})}init(t){let n=super.init(t),{store:o,config:r}=t,{isInteractiveTime$:l,isPlaying$:a}=o.state,s=o.ui.controlsVisible,{interactiveTimeIndicator:u}=o.ui.controls;n.add(s.subscribe(m=>{$e(l)&&m&&this.state$.set(!1)}));let c=(r==null?void 0:r.interactiveData)||{tooltipHelpHintActive:!1};return n.add(L8({isPlaying$:a,isInteractiveTime$:l,interactiveTimeIndicator:u}).subscribe(({isPlaying$:m,isInteractiveTime$:h,interactiveTimeIndicator:w})=>{var g,C;if(!(!m||!(w!=null&&w.isDisplayed))){if(!h)return this.state$.set(!1);c.tooltipHelpHintActive&&bs===null&&(bs=!0,c.tooltipHelpHintActive=!1,this.state$.set(!0),(C=(g=o.callbacks)==null?void 0:g.onInteractiveTimeIndicatorHintDeactivated)==null||C.call(g))}})),n}clearTimeout(){window.clearTimeout(this.timeout)}};var $p=()=>[Gl,Ql,Yl,Zl].reduce(({subscribers:i,stores:e},t)=>{let n=new t;return{subscribers:[...i,n],stores:Bt(nt({},e),{[n.stateName]:n.state$})}},{subscribers:[],stores:{}});var N8={preload:!0,autoplay:!1,repeat:!1,fromTime:0,canRewindLive:!0,showAds:!1,interfaceLanguage:M8.RU,isCyrillicRelatedInterface:!0,logoClickable:!1,logoHidden:!1,isMobile:R8(),isMediaSessionEnabled:!0,isPictureInPictureEnabled:!0,isAudioDisabled:!1,callbacks:{uiInfo:{}},tuningConfig:{configName:[]},saveRate:!0,volumeMultiplier:1},vs=class extends HTMLElement{constructor(){var t;super();this.currentPlayingVideoIndex=0;this.needToRepeatPlaylist=!1;this.videoConfig=void 0;this.pictureInPictureApi=void 0;this.mediaSessionApi=void 0;this.unsubscribePlayerPhaseSubscription=void 0;this.annotationsApi=void 0;this.prevIsid=void 0;this.isInited=!1;this.createOneStat=(t,n={})=>{var y,b;let{albumId:o,statPlace:r,statUserSalt:l,statTrackCode:a,refreshStatAuthToken:s,autoplay:u,isMobile:c,refDomain:m,deviceId:h,interactiveData:w}=hs(this.videoConfig,n),g=(y=w==null?void 0:w.projectInfo)==null?void 0:y.pid,{unitedVideoId:C,isClip:v=!1}=t;if(this.uiConfig.features.statistics&&C)return new D8(nt({movieId:C,albumId:o,place:r,trackCode:a,autoplay:(b=u&&!this.interactiveController)!=null?b:!1,mobile:c,clip:v,refDomain:m,deviceId:h},g&&!this.isInited&&{projectId:Number(g)}),nt({refreshAuthToken:s,userSalt:l,config:this.statisticsConfig},this.interactiveController&&{useIsid:!0,isid:this.prevIsid}))};this.logger=new B8,this.log=this.logger.createComponentLog("VKVideoPlayer"),this.subscription=new q8,this.graphMadePause=!1,(t=window==null?void 0:window.videoPlayerConfig)!=null&&t.debugLogs&&this.subscription.add(this.logger.log$.subscribe(n=>{console.log("%c player web component ","background:#77dd77;",`${n.component}`,n.message)}))}connectedCallback(){var o,r;if(this.isInited)return;this.initPlayerRootContainers();let t=(o=this.getAttribute("stub-title"))!=null?o:void 0,n=(r=this.getAttribute("stub-thumb-url"))!=null?r:void 0;this.svelteStubComponent=new Gp({target:this.playerContainer,props:{title:t,thumbUrl:n}})}disconnectedCallback(){var t,n,o,r,l,a;(t=this.annotationsApi)==null||t.destroy(),(n=this.mediaSessionApi)==null||n.destroy(),(o=this.svelteRootComponent)==null||o.$destroy(),(r=this.svelteStubComponent)==null||r.$destroy(),this.subscription.unsubscribe(),(l=this.unsubscribePlayerPhaseSubscription)==null||l.call(this),(a=this.interactiveController)==null||a.destroy()}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.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:!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(t){var o;let n=(o=this.store)==null?void 0:o.ui.controls.disabledControls$;return(n==null?void 0:n.includes(t))||!1}getNextVideoInfo(){if(!this.videoConfig)return{nextVideoTitle:void 0,nextVideoThumb:void 0};let t=this.videoConfig.videos[this.currentPlayingVideoIndex+1]||{};return{nextVideoTitle:t.title,nextVideoThumb:t.thumbUrl}}createPlayer(t,n={},o){var Ee,ct,me,tt,Tt,vt,Ue,zt,Dt,Pt,li;if(!this.videoConfig)return;let{albumId:r,statPlace:l,statAuthToken:a,preload:s,autoplay:u,volume:c,muted:m,fromTime:h,canRewindLive:w,supportLink:g,showAds:C,adsSlotId:v,adsParams:E={},adsPreviewParam:y,interfaceLanguage:b,isCyrillicRelatedInterface:P,logoClickable:A,logoHidden:M,isMobile:N,isAudioDisabled:te,isLiveCatchUpMode:_e,fullScreenTarget:X,failoverHosts:$,canDownload:se,callbacks:L,interactiveData:K,showThumbTimer:x,additionalButtons:Z=[],repeat:F,saveRate:Q,volumeMultiplier:J}=hs(this.videoConfig,n),{sources:oe,title:Be,thumbUrl:Ye,unitedVideoId:Ie,isClip:Re=!1,duration:qe,adsParams:xe={},videoEpisodes:ae,previewThumbsData:he,subtitles:ft,live:ke}=t,Ke=nt(nt({},E),xe),_t=this.getNextVideoInfo(),Ze={sources:oe,title:Be,thumbUrl:Ye,subtitles:ft,unitedVideoId:Ie,isClip:Re,live:ke,albumId:r,statPlace:l,autoplay:u,muted:m,volume:c,fromTime:h,canRewindLive:w,showAds:C,adsSlotId:v,adsParams:Ke,adsPreviewParam:y,duration:qe,logoClickable:A,logoHidden:M,isMobile:N,repeat:F,showNextPrevButtons:this.needToShowNextPrevButtons(),nextButtonActive:this.isNextButtonActive(),prevButtonActive:this.isPrevButtonActive(),endScreenVideoTitle:_t.nextVideoTitle,endScreenVideoThumb:_t.nextVideoThumb,isOneVideoPlaylist:this.isOneVideoPlaylist()},Ge={pictureInPictureApi:this.pictureInPictureApi,annotationsApi:this.annotationsApi};this.log({message:`create player, props: ${JSON.stringify(Ze)}`});let Xe=(Ee=this.interactiveController)==null?void 0:Ee.state.statistics$.getValue(),et=(Xe==null?void 0:Xe.oneStat)||this.createOneStat(t,n);et&&(this.statistics=new es(et,Xe==null?void 0:Xe.statSubscription)),this.uiConfig.features.sentry&&this.uiConfig.sentry.dsn&&new Oo(this.uiConfig.sentry,{version:al,env:or},{movieId:Ie,albumId:r,place:l,autoplay:(ct=u&&!this.interactiveController)!=null?ct:!1,mobile:N,clip:Re}),this.interactiveController&&((tt=this.prevIsid)!=null||(this.prevIsid=(me=this.statistics)==null?void 0:me.oneStat.isid$.getValue())),this.sentry=nt(nt({},this.sentry),Oo.getInstance());let Te=!!K,We=[],le="tooltip_interactive_go_back_disabled_first";if(Te&&this.interactiveController){let dt=this.interactiveController.state.isInitialChapter$.getValue(),lt=this.interactiveController.getHistoryState();dt&&We.push("REPLAY_BUTTON"),this.interactiveController.getIsSeekable().getValue()||We.push("SEEK_TO_INTERACTIVE_BUTTON"),lt.hasPrevChapter$.getValue()||(We.push("PLAY_PREV_CHAPTER_BUTTON"),dt||(lt.isGoBackLimited$.getValue()?le="tooltip_interactive_go_back_disabled_limit":le="tooltip_interactive_go_back_disabled"))}let Se=()=>{var lt;this.isInited=!1,this.prevIsid=void 0;let dt=(o==null?void 0:o.info.isEnded$.getValue())&&((lt=this.interactiveController)==null?void 0:lt.state.isEndChapter$.getValue());L.onReplayInteractiveVideo&&!dt?L.onReplayInteractiveVideo():this.replayInteractiveVideo()};this.store=Sm({player:o,interfaceLanguage:b,isCyrillicRelatedInterface:P,videoId:Ie,isClip:Re,isLiveCatchUpMode:_e,isAudioDisabled:te,statAuthToken:a,callbacks:L,webApi:Ge,videoEpisodes:ae,previewThumbsData:he,canDownload:se,uiConfig:this.uiConfig,coreConfig:this.coreConfig,disabledControls:We,isInteractive:Te,saveRate:Q,interactiveRanges$:(Tt=this.interactiveController)==null?void 0:Tt.state.interactiveRanges$,isInteractiveTime$:(vt=this.interactiveController)==null?void 0:vt.state.isInteractiveTime$,replayInteractive:Se,playPrevChapterDisabledTooltip:le,hasInteractiveBranches:!!((zt=(Ue=this.interactiveController)==null?void 0:Ue.getChapterBranches())!=null&&zt.length),additionalButtons:this.uiConfig.features.additionalButtons?Z:[],looped:F&&this.videoConfig.videos.length===1,statistics:this.statistics});let{stores:ht}=this.microStoresRoot=$p();this.subscription.add(this.store.state.currentFormat$.subscribe(dt=>{var lt;return(lt=L==null?void 0:L.onCurrentFormatChanged)==null?void 0:lt.call(L,dt)})),this.subscription.add(ht.interactiveControlsOpacity$.subscribe(dt=>{var lt;dt!==null&&((lt=this==null?void 0:this.interactiveController)==null||lt.setDisabledControls(dt))})),this.subscription.add(this.store.state.throughputEstimation$.subscribe(dt=>{var lt;return(lt=L==null?void 0:L.onThroughputEstimationChanged)==null?void 0:lt.call(L,dt)})),this.subscription.add(this.store.state.trafficSavingEnabled$.subscribe(dt=>{var lt;return(lt=L==null?void 0:L.onTrafficSavingEnabledChanged)==null?void 0:lt.call(L,dt)})),this.subscription.add(this.store.state.currentPlaybackRate$.subscribe(dt=>{var lt;return(lt=L==null?void 0:L.onCurrentPlaybackRateChanged)==null?void 0:lt.call(L,dt)})),this.subscription.add(this.store.state.volume$.subscribe(dt=>{var lt;return(lt=L==null?void 0:L.onVolumeChange)==null?void 0:lt.call(L,dt)})),this.subscription.add(this.store.state.muted$.subscribe(dt=>{var lt,ve;return dt?(lt=L==null?void 0:L.onMute)==null?void 0:lt.call(L):(ve=L==null?void 0:L.onUnmute)==null?void 0:ve.call(L)})),this.subscription.add(this.store.state.videoBitrate$.subscribe(dt=>{var lt;return(lt=L==null?void 0:L.onVideoBitrateChanged)==null?void 0:lt.call(L,dt)})),this.subscription.add(this.store.state.isInteractiveTime$.subscribe(dt=>{var ve;let lt=(ve=this.store)==null?void 0:ve.ui.controls.disabledControls$;lt&&(dt&&!lt.includes(Dl)&<.add(Dl),dt||lt.remove(Dl))})),this.subscription.add(this.store.ui.isFullscreen.subscribe(dt=>pt(this,null,function*(){var ve;if(!V8.isSamsungBrowser||!dt||!this.interactiveController)return;document.fullscreenElement===this.shadowRootContainer&&(yield this.replayInteractiveChapter((ve=this.videoConfig)==null?void 0:ve.callbacks.onExternalFullscreenExit))}))),this.statistics&&this.subscription.add(this.statistics.oneStat.vsid$.subscribe(dt=>{var lt;return(lt=L==null?void 0:L.onVSIDChanged)==null?void 0:lt.call(L,dt)})),this.initMediaSession(),this.svelteRootComponent=new Hp({target:this.playerContainer,props:{interactiveContainer:this.interactiveContainer,sources:oe,store:this.store,microStoresRoot:this.microStoresRoot,videoConfig:this.videoConfig,uiConfig:this.uiConfig,title:Be,thumbUrl:Ye,subtitles:ft,live:ke,preload:s,autoplay:u,muted:m,volume:c,fromTime:h,canRewindLive:w,supportLink:g,showAds:C,adsSlotId:v,adsParams:Ke,adsPreviewParam:y,duration:qe,logoClickable:A,logoHidden:M,isMobile:N,failoverHosts:$,fullScreenTarget:X,saveRate:Q,shadowRootContainer:this.shadowRootContainer,showMiniTimer:x,outerContainerRef:this.rootContainer,showNextPrevButtons:this.needToShowNextPrevButtons(),nextButtonActive:this.isNextButtonActive(),prevButtonActive:this.isPrevButtonActive(),endScreenVideoTitle:_t.nextVideoTitle,endScreenVideoThumb:_t.nextVideoThumb,isOneVideoPlaylist:this.isOneVideoPlaylist(),playNextVideo:()=>this.playNextVideo(),playPrevVideo:()=>this.playPrevVideo(),repeatPlaylist:()=>this.repeatPlaylist(),playPrevChapter:()=>this.playPrevChapter(),seekToInteractive:()=>this.seekToInteractive(),toggleGraph:()=>this.toggleGraph(),volumeMultiplier:J}}),this.addPlayerInfoSubscriptions(),this.isInited||(this.isInited=!0,(li=(Pt=(Dt=this.videoConfig)==null?void 0:Dt.callbacks)==null?void 0:Pt.onInited)==null||li.call(Pt))}addPlayerInfoSubscriptions(){var r;let t=this.store;if(!t)return;let n=(r=this.videoConfig)==null?void 0:r.callbacks;n&&this.subscription.add(t.playerPhase.subscribe(l=>{var a;return(a=n.onPlayerPhaseChanged)==null?void 0:a.call(n,l)})).add(t.state.playbackState$.subscribe(l=>{var a;return(a=n.onPlaybackStateChanged)==null?void 0:a.call(n,l)})).add(t.state.isLive$.subscribe(l=>{var a;return(a=n.onIsLiveChanged)==null?void 0:a.call(n,l)})).add(t.state.isActiveLive$.subscribe(l=>{var a;return(a=n.onIsActiveLiveChanged)==null?void 0:a.call(n,l)})).add(t.state.isAudioAvailable$.subscribe(l=>{var a;return(a=n.onIsAudioAvailableChanged)==null?void 0:a.call(n,l)})).add(t.state.currentQuality$.subscribe(l=>{var a;return(a=n.onCurrentQualityChanged)==null?void 0:a.call(n,l)})).add(t.state.availableQualities$.subscribe(l=>{var a;return(a=n.onAvailableQualitiesChanged)==null?void 0:a.call(n,l.map(({value:s})=>s).filter(s=>s!=="auto"))})).add(t.state.availableAudioStreams$.subscribe(l=>{l.length>1&&n.onAudioLanguagesAvailable&&n.onAudioLanguagesAvailable()})).add(t.ui.isPictureInPictureActive$.subscribe(l=>{var a,s;return l?(a=n.onPiPEnter)==null?void 0:a.call(n):(s=n.onPiPExit)==null?void 0:s.call(n)}));let o=n==null?void 0:n.uiInfo;o&&this.subscription.add(t.ui.controlsVisible.subscribe(l=>{var a;return(a=o.onControlsVisibleChanged)==null?void 0:a.call(o,l)})).add(t.ui.isMobile.subscribe(l=>{var a;return(a=o.onIsMobileChanged)==null?void 0:a.call(o,l)})).add(t.ui.playerSize.subscribe(l=>{var a;return(a=o.onPlayerSizeChanged)==null?void 0:a.call(o,l)})).add(t.ui.controls.prevButton.subscribe(l=>{var a;return(a=o.onPrevButtonChanged)==null?void 0:a.call(o,l)})).add(t.ui.controls.playButton.subscribe(l=>{var a;return(a=o.onPlayButtonChanged)==null?void 0:a.call(o,l)})).add(t.ui.controls.replayButton.subscribe(l=>{var a;return(a=o.onReplayButtonChanged)==null?void 0:a.call(o,l)})).add(t.ui.controls.nextButton.subscribe(l=>{var a;return(a=o.onNextButtonChanged)==null?void 0:a.call(o,l)})).add(t.ui.controls.playPrevChapterButton.subscribe(l=>{var a;return(a=o.onPlayPrevChapterChanged)==null?void 0:a.call(o,l)})).add(t.ui.controls.seekToInteractiveButton.subscribe(l=>{var a;return(a=o.onSeekToInteractiveButtonChanged)==null?void 0:a.call(o,l)})).add(t.ui.controls.interactiveGraphButton.subscribe(l=>{var a;return(a=o.onGraphButtonChanged)==null?void 0:a.call(o,l)})).add(t.ui.controls.liveButton.subscribe(l=>{var a;return(a=o.onLiveButtonChanged)==null?void 0:a.call(o,l)})).add(t.ui.controls.time.subscribe(l=>{var a;return(a=o.onTimeUpdateChanged)==null?void 0:a.call(o,l)})).add(t.ui.controls.episodes.subscribe(l=>{var a;return(a=o.onEpisodesChanged)==null?void 0:a.call(o,l)})).add(t.ui.controls.subtitles.subscribe(l=>{var a;return(a=o.onSubtitlesChanged)==null?void 0:a.call(o,l)})).add(t.ui.controls.settings.subscribe(l=>{var a;return(a=o.onSettingsChanged)==null?void 0:a.call(o,l)})).add(t.ui.controls.fullscreen.subscribe(l=>{var a;return(a=o.onFullscreenChanged)==null?void 0:a.call(o,l)})).add(t.ui.controls.chromecast.subscribe(l=>{var a;return(a=o.onChromecastChanged)==null?void 0:a.call(o,l)})).add(t.ui.controls.pip.subscribe(l=>{var a;return(a=o.onPipChanged)==null?void 0:a.call(o,l)})).add(t.ui.controls.vkLogo.subscribe(l=>{var a;return(a=o.onVkLogoChanged)==null?void 0:a.call(o,l)})).add(t.ui.controls.interactiveTimeIndicator.subscribe(l=>{var a;return(a=o.onInteractiveTimeIndicatorChanged)==null?void 0:a.call(o,l)})).add(t.ui.controls.timeline.subscribe(l=>{var a;return(a=o.onTimelineChanged)==null?void 0:a.call(o,l)}))}playNextVideo(){var n;if(!this.videoConfig)return;let t=!0;if((n=this.videoConfig.callbacks)!=null&&n.onNextVideoClick)try{t=this.videoConfig.callbacks.onNextVideoClick()}catch(o){this.log({message:"onNextVideoClick callback failed to execute"})}t&&(this.currentPlayingVideoIndex++,this.currentPlayingVideoIndex>=this.videoConfig.videos.length&&(this.currentPlayingVideoIndex=0),this.log({message:`play next video, index: ${this.currentPlayingVideoIndex}`}),this.createPlayerWithCurrentVideo())}playPrevVideo(){var n;if(!this.videoConfig)return;let t=!0;if((n=this.videoConfig.callbacks)!=null&&n.onPrevVideoClick)try{t=this.videoConfig.callbacks.onPrevVideoClick()}catch(o){this.log({message:"onPrevVideoClick callback failed to execute"})}t&&(this.currentPlayingVideoIndex--,this.currentPlayingVideoIndex<0&&(this.currentPlayingVideoIndex=this.videoConfig.videos.length-1),this.log({message:`play prev video, index: ${this.currentPlayingVideoIndex}`}),this.createPlayerWithCurrentVideo())}repeatPlaylist(){this.currentPlayingVideoIndex=0,this.log({message:"repeat playlist"}),this.createPlayerWithCurrentVideo()}createPlayerWithCurrentVideo(t,n=!0){var r;if(!this.videoConfig)return;let o=this.videoConfig.videos[this.currentPlayingVideoIndex];if(!o){this.log({message:"no next video"});return}this.isInited&&Nf(o.unitedVideoId)&&this.store.actions.internal.nextMovie(o.unitedVideoId),(r=this.svelteRootComponent)==null||r.$destroy(),this.createPlayer(o,{autoplay:n,fromTime:0},t)}playPrevChapter(){var t;(t=this.interactiveController)==null||t.playPrevChapter()}seekToInteractive(){var n;let t=(n=this.interactiveController)==null?void 0:n.getNextInteractiveStartTime();typeof t=="number"&&this.seekTime(t/1e3)}toggleGraph(){var c,m;if(!this.isInited)return;let t=this.store,{isEnded$:n,playbackState$:o,graphIsOpened$:r}=t.state,{disabledControls$:l}=t.ui.controls,a=$e(n),s=$e(o);$e(r)?(r.set(!1),(c=this.interactiveController)==null||c.toggleGraphView(!1),l.remove(As),!a&&this.graphMadePause&&this.play()):(this.graphMadePause=s==="playing",r.set(!0),(m=this.interactiveController)==null||m.toggleGraphView(!0),l.add(As),!a&&this.graphMadePause&&this.pause())}initInteractives(){return pt(this,null,function*(){var t,n,o,r;if((t=this.videoConfig)!=null&&t.interactiveData)try{let{Interactives:l,EVENT_NAMES:a,CustomError:s}=yield import("@vkontakte/videoplayer-interactive");this.interactiveContainer=document.createElement("div"),this.interactiveContainer.classList.add("interactiveContainer");let u=(n=this.store)==null?void 0:n.interfaceLanguage$,c=u?$e(u):this.videoConfig.interfaceLanguage,{projectInfo:m,initChapterId:h,historyApi:w,videoLoader:g}=this.videoConfig.interactiveData;this.interactiveController=new l({parentElement:this.interactiveContainer,fullscreenTargetElement:this.playerContainer,lang:c,graph:this.uiConfig.features.interactiveGraph,projectInfo:m,initChapterId:h,historyApi:w,vkVideoLoader:g,lastFrame:this.uiConfig.features.interactiveLastFrame,permanentTextControls:this.uiConfig.features.interactiveTextPermanent,initSeamless:!0,config:this.uiConfig.interactive,coreConfig:this.coreConfig,createOneStat:this.createOneStat});let{isInteractiveExpectation$:C}=this.interactiveController.state;this.uiConfig.features.seekToInteractive&&this.subscription.add(this.interactiveController.getIsSeekable().subscribe(E=>{if(!this.isInited)return;let y=this.store;E?y.ui.controls.disabledControls$.remove("SEEK_TO_INTERACTIVE_BUTTON"):y.ui.controls.disabledControls$.add("SEEK_TO_INTERACTIVE_BUTTON")})),this.subscription.add(C.subscribe(E=>{this.store&&this.store.state.isInteractiveExpectation$.set(E)}));let v=!0;if(this.interactiveController.on(a.playerChanged,E=>{if(!this.videoConfig)return;this.videoConfig.videos[this.currentPlayingVideoIndex]=Bt(nt({},E.config),{title:(m==null?void 0:m.title)||E.config.title});let y=v?this.videoConfig.autoplay:!0;this.createPlayerWithCurrentVideo(E.player,y),v&&(v=!1)}),this.interactiveController.on(a.interactives,({type:E,actionType:y})=>{var P,A,M,N;if(!this.store)return;let b=C.getValue();if(E==="action-choice"&&y==="setRandomBranch"&&(this.store.state.graphIsOpened$.set(!1),this.store.ui.controls.disabledControls$.remove(nr)),E==="action-choice-canceled"){let te=$e(this.store.state.isPlaying$)||b;if((P=this.videoConfig)!=null&&P.isMobile&&te){this.store.ui.interactiveHideMobileControls.set(!0);return}(N=(A=this.videoConfig)==null?void 0:(M=A.callbacks).onDisabledInteractiveClick)==null||N.call(M)}}),yield this.interactiveController.setManifest(this.videoConfig.interactiveData.manifest),(r=(o=this.videoConfig)==null?void 0:o.callbacks)!=null&&r.onInteractiveHistoryChanged){let E=this.interactiveController.getHistoryState();this.subscription.add(E.history$.subscribe(y=>{var b,P,A;y.length&&((A=(P=(b=this.videoConfig)==null?void 0:b.callbacks)==null?void 0:P.onInteractiveHistoryChanged)==null||A.call(P,y))}))}this.uiConfig.features.interactiveTimeIndicator&&this.subscription.add(this.interactiveController.events.noInteraction$.subscribe(()=>{var E,y,b,P;(E=this.microStoresRoot)==null||E.stores.showInteractiveTimeIndicatorTooltip$.set(!0,!0),(P=(y=this.videoConfig)==null?void 0:(b=y.callbacks).onInteractiveTimeIndicatorClick)==null||P.call(b)})),this.interactiveController.on(a.errors,E=>{this.log({message:E.toString()})})}catch(l){this.log({message:l.message})}})}initPlayer(t,n={}){var o,r,l,a,s,u,c,m,h,w,g,C,v,E,y,b,P,A,M;if(!Array.isArray(t.videos)||t.videos.length===0&&!t.interactiveData)throw new Error("empty videos");this.videoConfig=hs(N8,A8(t,N=>N instanceof HTMLElement?N:void 0)),this.uiConfig=tc((o=n.ui)!=null?o:{}),this.coreConfig=(r=n.core)!=null?r:{configName:[]},this.statisticsConfig=(l=n.statistics)!=null?l:{},this.sentry={config:(a=this.uiConfig.sentry)!=null?a:{}},Nf(this.videoConfig.isMediaSessionEnabled)&&(this.uiConfig.features.mediaSession=(s=this.videoConfig.isMediaSessionEnabled)!=null?s:!0),Nf(this.videoConfig.isPictureInPictureEnabled)&&(this.uiConfig.features.pip=(c=(u=this.uiConfig.features.pip)!=null?u:this.videoConfig.isPictureInPictureEnabled)!=null?c:!0,this.uiConfig.features.dpip=(h=(m=this.uiConfig.features.dpip)!=null?m:this.videoConfig.isPictureInPictureEnabled)!=null?h:!0),this.videoConfig.isMobile=(w=this.uiConfig.isMobile)!=null?w:this.videoConfig.isMobile,(g=this.videoConfig).autoplay&&(g.autoplay=this.uiConfig.features.autoplay),this.videoConfig.showAds=(C=this.uiConfig.ads.enable)!=null?C:this.videoConfig.showAds,this.videoConfig.adsSlotId=(v=this.uiConfig.ads.slot)!=null?v:this.videoConfig.adsSlotId,this.videoConfig.adsPreviewParam=(E=this.uiConfig.ads.preview)!=null?E:this.videoConfig.adsPreviewParam,this.videoConfig.logoHidden=!((y=this.uiConfig.showLogo)!=null?y:!this.videoConfig.logoHidden),(b=this.videoConfig).canRewindLive&&(b.canRewindLive=this.uiConfig.features.liveRewind),this.videoConfig.supportLink=(P=this.videoConfig.supportLink)!=null?P:this.uiConfig.supportLink,this.currentPlayingVideoIndex=0,this.needToRepeatPlaylist=this.videoConfig.repeat,this.uiConfig.features.pip&&(this.uiConfig.features.dpip?this.pictureInPictureApi=_s.getLatestSupportedVersion():this.pictureInPictureApi=new Fo),this.mediaSessionApi=this.uiConfig.features.mediaSession?new ps:void 0,this.annotationsApi=this.uiConfig.features.annotations?new gs:void 0,this.annotationsApi&&!this.uiConfig.features.annotationsInside&&this.annotationsApi.init(this.rootContainer),(A=this.svelteStubComponent)==null||A.$destroy(),(M=this.svelteRootComponent)==null||M.$destroy(),this.isInited=!1,this.prevIsid=void 0,this.interactiveController&&(this.interactiveController.destroy(),this.interactiveController=void 0),t.interactiveData?this.initInteractives():this.createPlayer(t.videos[0]),Zp(this.pictureInPictureApi)&&this.pictureInPictureApi.setPlayerDomElement(this.playerContainer,this._shadowRoot)}isOneVideoPlaylist(){return this.videoConfig?this.videoConfig.videos.length===1:!1}updateNextVideos(t){var o;if(!this.videoConfig)return;this.log({message:`update next videos, videos: ${JSON.stringify(t)}`}),this.videoConfig.videos.splice(this.currentPlayingVideoIndex+1),this.videoConfig.videos.push(...t);let n=this.getNextVideoInfo();(o=this.svelteRootComponent)==null||o.$set({showNextPrevButtons:this.needToShowNextPrevButtons(),nextButtonActive:this.isNextButtonActive(),prevButtonActive:this.isPrevButtonActive(),endScreenVideoTitle:n.nextVideoTitle,endScreenVideoThumb:n.nextVideoThumb,isOneVideoPlaylist:this.isOneVideoPlaylist()})}initMediaSession(){var t,n;this.mediaSessionApi&&((t=this.unsubscribePlayerPhaseSubscription)==null||t.call(this),this.mediaSessionApi.clearSubscriptions(),this.unsubscribePlayerPhaseSubscription=(n=this.store)==null?void 0:n.playerPhase.subscribe(o=>{o==="video"?this.setupMediaSessionForVideo():o==="ads"&&this.setupMediaSessionForAds()}))}setupMediaSessionForVideo(){if(!(!this.videoConfig||!this.mediaSessionApi))try{let{title:t,thumbUrl:n}=nt({},this.videoConfig.videos[this.currentPlayingVideoIndex]),o=[["play",()=>this.play()],["pause",()=>this.pause()],["seekto",r=>this.seekTime(r.seekTime)]];this.videoConfig.videos.length>1&&(this.currentPlayingVideoIndex<this.videoConfig.videos.length-1&&o.push(["nexttrack",()=>this.playNextVideo()]),this.currentPlayingVideoIndex>0&&o.push(["previoustrack",()=>this.playPrevVideo()])),this.mediaSessionApi.setMetaData({title:t,thumbUrl:n}),this.mediaSessionApi.updateActionHandlers(o),this.mediaSessionApi.attachToStore(this.store)}catch(t){this.log({message:t.message})}}setupMediaSessionForAds(){if(!(!this.videoConfig||!this.mediaSessionApi))try{let t="\u0420\u0435\u043A\u043B\u0430\u043C\u0430",n=[["play",()=>this.play()],["pause",()=>this.pause()]];this.mediaSessionApi.setMetaData({title:t}),this.mediaSessionApi.updateActionHandlers(n),this.mediaSessionApi.attachToStore(this.store)}catch(t){this.log({message:t.message})}}play(){var t,n,o,r;this.isControlDisabled("PLAY_BUTTON")||(t=this.store)!=null&&t.playerPhase.is("LiveWaitingStart")||(n=this.store)!=null&&n.playerPhase.is("LiveWaitingRecover")||(o=this.store)!=null&&o.playerPhase.is("LiveWaitingRecord")||(this.log({message:"play"}),(r=this.svelteRootComponent)==null||r.play())}pause(){var t;this.log({message:"pause"}),(t=this.svelteRootComponent)==null||t.pause()}stop(){var n,o,r;if(!this.videoConfig)return;this.log({message:"stop"}),(n=this.svelteStubComponent)==null||n.$destroy(),(o=this.mediaSessionApi)==null||o.destroy();let t=this.videoConfig.videos[0];t&&((r=this.svelteRootComponent)==null||r.$destroy(),this.createPlayer(t))}setMuted(t){var n;this.log({message:`set muted, muted: ${t}`}),(n=this.svelteRootComponent)==null||n.setMuted(t)}setVolume(t){var n;this.log({message:`set volume, volume: ${t}`}),(n=this.svelteRootComponent)==null||n.setVolume(t)}setRepeat(t){var n;this.log({message:`set repeat, repeat: ${t}`}),this.needToRepeatPlaylist=t,(n=this.svelteRootComponent)==null||n.$set({needToRepeatPlaylist:this.needToRepeatPlaylist,showNextPrevButtons:this.needToShowNextPrevButtons(),nextButtonActive:this.isNextButtonActive(),prevButtonActive:this.isPrevButtonActive()})}seekTime(t){var n;this.isControlDisabled("TIMELINE")||(this.log({message:`seek time, time: ${t}`}),(n=this.svelteRootComponent)==null||n.seekTime(t))}seekEpisodeStartTime(t){var n;this.log({message:`seek episode start time, time: ${t}`}),(n=this.svelteRootComponent)==null||n.seekEpisodeStartTime(t)}returnFocusToEpisodes(){var t;this.log({message:"return focus to episodes button"}),(t=this.svelteRootComponent)==null||t.returnFocusToEpisodes()}setPlaybackRate(t){var n;this.log({message:`set playback rate to: ${t}`}),(n=this.svelteRootComponent)==null||n.setPlaybackRate(t)}setAutoQualityLimits(t){var n,o,r;this.log({message:`set auto quality limitation. Max: ${(n=t.max)!=null?n:"none"}. Min: ${(o=t.min)!=null?o:"none"}`}),(r=this.svelteRootComponent)==null||r.setAutoQualityLimits(t)}addLanguage(t){var n;(n=this.store)==null||n.actions.internal.addLanguage(t)}setLanguage(t){return pt(this,null,function*(){var n;yield(n=this.store)==null?void 0:n.actions.internal.setLanguage(t)})}setLiveStart(t){var n,o,r;this.log({message:"live started"}),(n=this.store)==null||n.actions.internal.setLiveWaitingRecover(!1),(o=this.store)==null||o.actions.internal.setLiveWaitingStart(!1),(r=this.svelteRootComponent)==null||r.$destroy(),this.createPlayer(t,{autoplay:!0})}setLiveWaitingRecover(){var t,n;this.log({message:"live waiting"}),(t=this.store)==null||t.actions.internal.setLiveWaitingRecover(!0),(n=this.store)==null||n.destroy()}setLiveWaitingRecord(){var t,n;this.log({message:"post live"}),(t=this.store)==null||t.actions.internal.setLiveWaitingRecord(!0),(n=this.store)==null||n.destroy()}setLiveEnd(t){var n,o,r;this.log({message:"live ended"}),(n=this.store)==null||n.actions.internal.setLiveWaitingRecover(!1),(o=this.store)==null||o.actions.internal.setLiveWaitingRecord(!1),(r=this.svelteRootComponent)==null||r.$destroy(),this.createPlayer(t,{autoplay:!1})}getDeviceId(){var t,n;return(n=(t=this.statistics)==null?void 0:t.oneStat.getDeviceId())!=null?n:void 0}replayInteractiveVideo(){this.interactiveController&&this.interactiveController.setChapter()}replayInteractiveChapter(t){return pt(this,null,function*(){var n;if(this.interactiveController&&((n=this.store)!=null&&n.state.positionExact$)){let{EVENT_NAMES:o}=yield import("@vkontakte/videoplayer-interactive"),r=$e(this.store.state.positionExact$),a=$e(this.store.state.interactiveEpisodes$).find(u=>!u.completed);this.interactiveController.once(o.playerChanged,()=>{a&&r>=a.time?this.seekTime(a.time):this.seekTime(r),t==null||t()});let s=this.interactiveController.getCurrentChapter();yield this.interactiveController.setChapter({chapterId:s.chapter.id,pushToHistory:!1})}})}showInteractiveIndicatorTooltip(t,n=!1){var o;(o=this.microStoresRoot)==null||o.stores.showInteractiveTimeIndicatorTooltip$.set(t,n)}switchToActiveLive(){var t;(t=this.store)==null||t.actions.internal.switchToActiveLive()}updateStatContext(t){this.statistics&&this.statistics.oneStat.updateContext(t)}};import{InterfaceLanguage as KO,VKNumericLanguage as WO,loadVKLangPack as jO}from"@vkontakte/videoplayer-shared";import{VideoQuality as QO,VideoFormat as YO}from"@vkontakte/videoplayer-core";var FO=()=>{window.customElements.define("vk-video-player",vs)};export{qo as GridTypes,KO as InterfaceLanguage,al as VERSION,WO as VKNumericLanguage,YO as VideoFormat,QO as VideoQuality,jO as loadVKLangPack,FO as registerPlayerWebComponent};
|