@vkontakte/videoplayer 1.1.41-dev.bcbe4f18.0 → 1.1.41-dev.dd436b0c.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/evergreen.esm.js CHANGED
@@ -1,17 +1,17 @@
1
1
  /**
2
- * @vkontakte/videoplayer v1.1.41-dev.bcbe4f18.0
3
- * Fri, 06 Sep 2024 07:25:34 GMT
2
+ * @vkontakte/videoplayer v1.1.41-dev.dd436b0c.0
3
+ * Mon, 09 Sep 2024 08:54:55 GMT
4
4
  * https://st.mycdn.me/static/vkontakte-videoplayer/1-1-41/doc/
5
5
  */
6
- function Ce(){}function ue(t,e){for(let i in e)t[i]=e[i];return t}function ps(t){return t()}function Kl(){return Object.create(null)}function tt(t){t.forEach(ps)}function Ei(t){return typeof t=="function"}function F(t,e){return t!=t?e==e:t!==e||t&&typeof t=="object"||typeof t=="function"}var Wl;function _s(t,e){return t===e?!0:(Wl||(Wl=document.createElement("a")),Wl.href=e,t===Wl.href)}function Ic(t){return Object.keys(t).length===0}function Ut(t,...e){if(t==null){for(let n of e)n(void 0);return Ce}let i=t.subscribe(...e);return i.unsubscribe?()=>i.unsubscribe():i}function Je(t){let e;return Ut(t,i=>e=i)(),e}function D(t,e,i){t.$$.on_destroy.push(Ut(e,i))}function Ie(t,e,i,n){if(t){let o=Ec(t,e,i,n);return t[0](o)}}function Ec(t,e,i,n){return t[1]&&n?ue(i.ctx.slice(),t[1](n(e))):i.ctx}function Ee(t,e,i,n){if(t[2]&&n){let o=t[2](n(i));if(e.dirty===void 0)return o;if(typeof o=="object"){let l=[],r=Math.max(e.dirty.length,o.length);for(let a=0;a<r;a+=1)l[a]=e.dirty[a]|o[a];return l}return e.dirty|o}return e.dirty}function Ae(t,e,i,n,o,l){if(o){let r=Ec(e,i,n,l);t.p(r,o)}}function Le(t){if(t.ctx.length>32){let e=[],i=t.ctx.length/32;for(let n=0;n<i;n++)e[n]=-1;return e}return-1}function ve(t){let e={};for(let i in t)i[0]!=="$"&&(e[i]=t[i]);return e}function Ac(t){return t??""}var Po=typeof window<"u"?window:typeof globalThis<"u"?globalThis:global;var jl=class t{_listeners="WeakMap"in Po?new WeakMap:void 0;_observer=void 0;options;constructor(e){this.options=e}observe(e,i){return this._listeners.set(e,i),this._getObserver().observe(e,this.options),()=>{this._listeners.delete(e),this._observer.unobserve(e)}}_getObserver(){return this._observer??(this._observer=new ResizeObserver(e=>{for(let i of e)t.entries.set(i.target,i),this._listeners.get(i.target)?.(i)}))}};jl.entries="WeakMap"in Po?new WeakMap:void 0;var Lc=!1;function Mc(){Lc=!0}function Vc(){Lc=!1}function m(t,e){t.appendChild(e)}function Pe(t,e,i){let n=Rc(t);if(!n.getElementById(e)){let o=P("style");o.id=e,o.textContent=i,h_(n,o)}}function Rc(t){if(!t)return document;let e=t.getRootNode?t.getRootNode():t.ownerDocument;return e&&e.host?e:t.ownerDocument}function h_(t,e){return m(t.head||t,e),e.sheet}function S(t,e,i){t.insertBefore(e,i||null)}function k(t){t.parentNode&&t.parentNode.removeChild(t)}function Ai(t,e){for(let i=0;i<t.length;i+=1)t[i]&&t[i].d(e)}function P(t){return document.createElement(t)}function R(t){return document.createElementNS("http://www.w3.org/2000/svg",t)}function Re(t){return document.createTextNode(t)}function V(){return Re(" ")}function ct(){return Re("")}function he(t,e,i,n){return t.addEventListener(e,i,n),()=>t.removeEventListener(e,i,n)}function Wt(t){return function(e){return e.preventDefault(),t.call(this,e)}}function st(t){return function(e){return e.stopPropagation(),t.call(this,e)}}function c(t,e,i){i==null?t.removeAttribute(e):t.getAttribute(e)!==i&&t.setAttribute(e,i)}function ye(t,e){for(let i in e)c(t,i,e[i])}function Bc(t){return Array.from(t.childNodes)}function Ge(t,e){e=""+e,t.data!==e&&(t.data=e)}function hi(t,e,i,n){i==null?t.style.removeProperty(e):t.style.setProperty(e,i,n?"important":"")}var Gl;function g_(){if(Gl===void 0){Gl=!1;try{typeof window<"u"&&window.parent&&window.parent.document}catch{Gl=!0}}return Gl}function Zo(t,e){getComputedStyle(t).position==="static"&&(t.style.position="relative");let n=P("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=g_(),l;return o?(n.src="data:text/html,<script>onresize=function(){parent.postMessage(0,'*')}<\/script>",l=he(window,"message",r=>{r.source===n.contentWindow&&e()})):(n.src="about:blank",n.onload=()=>{l=he(n.contentWindow,"resize",e),e()}),m(t,n),()=>{(o||l&&n.contentWindow)&&l(),k(n)}}function B(t,e,i){t.classList.toggle(e,!!i)}function qc(t){let e={};return t.childNodes.forEach(i=>{e[i.slot||"default"]=!0}),e}function bn(t,e){return new t(e)}var co;function $n(t){co=t}function Xo(){if(!co)throw new Error("Function called outside component initialization");return co}function It(t){Xo().$$.on_mount.push(t)}function Hn(t){Xo().$$.on_destroy.push(t)}function Jo(t,e){return Xo().$$.context.set(t,e),e}function xo(t){return Xo().$$.context.get(t)}function Pl(){return Xo().$$.context}function Pn(t,e){let i=t.$$.callbacks[e.type];i&&i.slice().forEach(n=>n.call(this,e))}var To=[];var be=[],el=[],gs=[],Nc=Promise.resolve(),bs=!1;function vs(){bs||(bs=!0,Nc.then(Ql))}function Un(){return vs(),Nc}function Wn(t){el.push(t)}function Ne(t){gs.push(t)}var hs=new Set,$o=0;function Ql(){if($o!==0)return;let t=co;do{try{for(;$o<To.length;){let e=To[$o];$o++,$n(e),S_(e.$$)}}catch(e){throw To.length=0,$o=0,e}for($n(null),To.length=0,$o=0;be.length;)be.pop()();for(let e=0;e<el.length;e+=1){let i=el[e];hs.has(i)||(hs.add(i),i())}el.length=0}while(To.length);for(;gs.length;)gs.pop()();bs=!1,hs.clear(),$n(t)}function S_(t){if(t.fragment!==null){t.update(),tt(t.before_update);let e=t.dirty;t.dirty=[-1],t.fragment&&t.fragment.p(t.ctx,e),t.after_update.forEach(Wn)}}function Oc(t){let e=[],i=[];el.forEach(n=>t.indexOf(n)===-1?e.push(n):i.push(n)),i.forEach(n=>n()),el=e}var Yl=new Set,Io;function me(){Io={r:0,c:[],p:Io}}function pe(){Io.r||tt(Io.c),Io=Io.p}function d(t,e){t&&t.i&&(Yl.delete(t),t.i(e))}function _(t,e,i,n){if(t&&t.o){if(Yl.has(t))return;Yl.add(t),Io.c.push(()=>{Yl.delete(t),n&&(i&&t.d(1),n())}),t.o(e)}else n&&n()}function Pt(t){return t?.length!==void 0?t:Array.from(t)}function Be(t,e){let i={},n={},o={$$scope:1},l=t.length;for(;l--;){let r=t[l],a=e[l];if(a){for(let s in r)s in a||(n[s]=1);for(let s in a)o[s]||(i[s]=a[s],o[s]=1);t[l]=a}else for(let s in r)o[s]=1}for(let r in n)r in i||(i[r]=void 0);return i}function Fc(t){return typeof t=="object"&&t!==null?t:{}}var C_=["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"],P_=new Set([...C_]);function Oe(t,e,i){let n=t.$$.props[e];n!==void 0&&(t.$$.bound[n]=i,i(t.$$.ctx[n]))}function M(t){t&&t.c()}function A(t,e,i){let{fragment:n,after_update:o}=t.$$;n&&n.m(e,i),Wn(()=>{let l=t.$$.on_mount.map(ps).filter(Ei);t.$$.on_destroy?t.$$.on_destroy.push(...l):tt(l),t.$$.on_mount=[]}),o.forEach(Wn)}function L(t,e){let i=t.$$;i.fragment!==null&&(Oc(i.after_update),tt(i.on_destroy),i.fragment&&i.fragment.d(e),i.on_destroy=i.fragment=null,i.ctx=[])}function I_(t,e){t.$$.dirty[0]===-1&&(To.push(t),vs(),t.$$.dirty.fill(0)),t.$$.dirty[e/31|0]|=1<<e%31}function U(t,e,i,n,o,l,r=null,a=[-1]){let s=co;$n(t);let u=t.$$={fragment:null,ctx:[],props:l,update:Ce,not_equal:o,bound:Kl(),on_mount:[],on_destroy:[],on_disconnect:[],before_update:[],after_update:[],context:new Map(e.context||(s?s.$$.context:[])),callbacks:Kl(),dirty:a,skip_bound:!1,root:e.target||s.$$.root};r&&r(u.root);let f=!1;if(u.ctx=i?i(t,e.props||{},(p,h,...w)=>{let g=w.length?w[0]:h;return u.ctx&&o(u.ctx[p],u.ctx[p]=g)&&(!u.skip_bound&&u.bound[p]&&u.bound[p](g),f&&I_(t,p)),h}):[],u.update(),f=!0,tt(u.before_update),u.fragment=n?n(u.ctx):!1,e.target){if(e.hydrate){Mc();let p=Bc(e.target);u.fragment&&u.fragment.l(p),p.forEach(k)}else u.fragment&&u.fragment.c();e.intro&&d(t.$$.fragment),A(t,e.target,e.anchor),Vc(),Ql()}$n(s)}var E_;typeof HTMLElement=="function"&&(E_=class extends HTMLElement{$$ctor;$$s;$$c;$$cn=!1;$$d={};$$r=!1;$$p_d={};$$l={};$$l_u=new Map;constructor(t,e,i){super(),this.$$ctor=t,this.$$s=e,i&&this.attachShadow({mode:"open"})}addEventListener(t,e,i){if(this.$$l[t]=this.$$l[t]||[],this.$$l[t].push(e),this.$$c){let n=this.$$c.$on(t,e);this.$$l_u.set(e,n)}super.addEventListener(t,e,i)}removeEventListener(t,e,i){if(super.removeEventListener(t,e,i),this.$$c){let n=this.$$l_u.get(e);n&&(n(),this.$$l_u.delete(e))}}async connectedCallback(){if(this.$$cn=!0,!this.$$c){let e=function(l){return()=>{let r;return{c:function(){r=P("slot"),l!=="default"&&c(r,"name",l)},m:function(u,f){S(u,r,f)},d:function(u){u&&k(r)}}}};var t=e;if(await Promise.resolve(),!this.$$cn||this.$$c)return;let i={},n=qc(this);for(let l of this.$$s)l in n&&(i[l]=[e(l)]);for(let l of this.attributes){let r=this.$$g_p(l.name);r in this.$$d||(this.$$d[r]=ys(r,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:{...this.$$d,$$slots:i,$$scope:{ctx:[]}}});let o=()=>{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 r=ys(l,this.$$d[l],this.$$p_d,"toAttribute");r==null?this.removeAttribute(this.$$p_d[l].attribute||l):this.setAttribute(this.$$p_d[l].attribute||l,r)}this.$$r=!1};this.$$c.$$.after_update.push(o),o();for(let l in this.$$l)for(let r of this.$$l[l]){let a=this.$$c.$on(l,r);this.$$l_u.set(r,a)}this.$$l={}}}attributeChangedCallback(t,e,i){this.$$r||(t=this.$$g_p(t),this.$$d[t]=ys(t,i,this.$$p_d,"toProp"),this.$$c?.$set({[t]:this.$$d[t]}))}disconnectedCallback(){this.$$cn=!1,Promise.resolve().then(()=>{!this.$$cn&&this.$$c&&(this.$$c.$destroy(),this.$$c=void 0)})}$$g_p(t){return Object.keys(this.$$p_d).find(e=>this.$$p_d[e].attribute===t||!this.$$p_d[e].attribute&&e.toLowerCase()===t)||t}});function ys(t,e,i,n){let o=i[t]?.type;if(e=o==="Boolean"&&typeof e!="boolean"?e!=null:e,!n||!i[t])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;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 H=class{$$=void 0;$$set=void 0;$destroy(){L(this,1),this.$destroy=Ce}$on(e,i){if(!Ei(i))return Ce;let n=this.$$.callbacks[e]||(this.$$.callbacks[e]=[]);return n.push(i),()=>{let o=n.indexOf(i);o!==-1&&n.splice(o,1)}}$set(e){this.$$set&&!Ic(e)&&(this.$$.skip_bound=!0,this.$$set(e),this.$$.skip_bound=!1)}};var zc="4";typeof window<"u"&&(window.__svelte||(window.__svelte={v:new Set})).v.add(zc);import"@vkontakte/videoplayer-core";import{noop as bl,safeStorage as N6,throttleFn as O6}from"@vkontakte/videoplayer-shared";import{SeekAction as F6}from"@vkontakte/videoplayer-statistics";import{InterfaceLanguage as A_,fillWithDefault as L_,VideoQuality as M_}from"@vkontakte/videoplayer-shared";var V_={isMobile:void 0,defaultLanguage:A_.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:M_.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}},Hc=t=>L_(t,V_),Uc=t=>Jo("ui-config",t),Bt=()=>xo("ui-config");var Tl="vk_player_debug_panel_opened";var Wc="videoplayer",Kc="videoplayer";var Yn={KeyF:"f",KeyK:"k",KeyC:"c",KeyM:"m"},jc=new Set(["ArrowLeft","ArrowRight","KeyL","KeyJ"]),Gc=new Set(["Tab","Space","ArrowLeft","ArrowRight","ArrowUp","ArrowDown"]),Qc=new Set(["ShiftRight","ShiftLeft"]);var Yc=["TIMELINE"],Il=[...Yc,"GRAPH_BUTTON"],ws=[...Yc,"PLAY_BUTTON"],Zl=[...Il,"PLAY_BUTTON"];var Ao=(l=>(l.XS="xs",l.S="s",l.M="m",l.L="l",l.XL="xl",l))(Ao||{}),Lo={xs:0,s:1,m:2,l:3,xl:4};var tl=[];function Rn(t,e){return{subscribe:qe(t,e).subscribe}}function qe(t,e=Ce){let i,n=new Set;function o(a){if(F(t,a)&&(t=a,i)){let s=!tl.length;for(let u of n)u[1](),tl.push(u,t);if(s){for(let u=0;u<tl.length;u+=2)tl[u][0](tl[u+1]);tl.length=0}}}function l(a){o(a(t))}function r(a,s=Ce){let u=[a,s];return n.add(u),n.size===1&&(i=e(o,l)||Ce),a(t),()=>{n.delete(u),n.size===0&&i&&(i(),i=null)}}return{set:o,update:l,subscribe:r}}function gi(t,e,i){let n=!Array.isArray(t),o=n?[t]:t;if(!o.every(Boolean))throw new Error("derived() expects stores as input, got a falsy value");let l=e.length<2;return Rn(i,(r,a)=>{let s=!1,u=[],f=0,p=Ce,h=()=>{if(f)return;p();let g=e(n?u[0]:u,r,a);l?r(g):p=Ei(g)?g:Ce},w=o.map((g,C)=>Ut(g,b=>{u[C]=b,f&=~(1<<C),s&&h()},()=>{f|=1<<C}));return s=!0,h(),function(){tt(w),p(),s=!1}})}import{assertNonNullable as Zc,VERSION as R_}from"@vkontakte/videoplayer-shared";import{VERSION as B_}from"@vkontakte/videoplayer-core";import{VERSION as q_}from"@vkontakte/videoplayer-statistics";var Xl="prod",il="1.1.41-dev.bcbe4f18.0";var El=(t,e,i)=>{let n=document.createElement("a");n.href=t,n.download=`${e}.${i}`,n.style.display="none",n.click()};var Xc=Symbol("storeContext"),Jc=Symbol("microStoresContext"),xc=(t,e)=>{Jo(Xc,t),Jo(Jc,e),Xl==="dev"&&(window.app={store:t,microStores:e})},it=()=>{let t=xo(Xc);return Zc(t,"Store context is empty!"),t},Bn=()=>{let t=xo(Jc);return Zc(t,"MicroStores context is empty!"),t},vt=(t,e)=>ks(t,t.getValue(),e),ks=(t,e,i)=>Rn(e,n=>{let o=t.subscribe(l=>{n(l),i?.(l)});return()=>o.unsubscribe()}),$c=(t,e,i)=>{let n=t.info,{width:o,height:l}=Je(i.ui.playerSize),r=n.throughputEstimation$.getValue()?.toFixed(0)??0,a=n.rttEstimation$.getValue()?.toFixed(0)??0,s=n.isAutoQualityEnabled$.getValue()?"auto":"manual",u=`${il} (core: ${B_}, stat: ${q_}, shared: ${R_})`,f=Je(i.state.errorLog$),p=f.length?`
6
+ function Ce(){}function ue(t,e){for(let i in e)t[i]=e[i];return t}function ps(t){return t()}function Wl(){return Object.create(null)}function tt(t){t.forEach(ps)}function Ii(t){return typeof t=="function"}function F(t,e){return t!=t?e==e:t!==e||t&&typeof t=="object"||typeof t=="function"}var Kl;function _s(t,e){return t===e?!0:(Kl||(Kl=document.createElement("a")),Kl.href=e,t===Kl.href)}function Ec(t){return Object.keys(t).length===0}function Ht(t,...e){if(t==null){for(let n of e)n(void 0);return Ce}let i=t.subscribe(...e);return i.unsubscribe?()=>i.unsubscribe():i}function Je(t){let e;return Ht(t,i=>e=i)(),e}function D(t,e,i){t.$$.on_destroy.push(Ht(e,i))}function Ie(t,e,i,n){if(t){let o=Ac(t,e,i,n);return t[0](o)}}function Ac(t,e,i,n){return t[1]&&n?ue(i.ctx.slice(),t[1](n(e))):i.ctx}function Ee(t,e,i,n){if(t[2]&&n){let o=t[2](n(i));if(e.dirty===void 0)return o;if(typeof o=="object"){let l=[],r=Math.max(e.dirty.length,o.length);for(let a=0;a<r;a+=1)l[a]=e.dirty[a]|o[a];return l}return e.dirty|o}return e.dirty}function Ae(t,e,i,n,o,l){if(o){let r=Ac(e,i,n,l);t.p(r,o)}}function Le(t){if(t.ctx.length>32){let e=[],i=t.ctx.length/32;for(let n=0;n<i;n++)e[n]=-1;return e}return-1}function ve(t){let e={};for(let i in t)i[0]!=="$"&&(e[i]=t[i]);return e}function Lc(t){return t??""}var To=typeof window<"u"?window:typeof globalThis<"u"?globalThis:global;var jl=class t{_listeners="WeakMap"in To?new WeakMap:void 0;_observer=void 0;options;constructor(e){this.options=e}observe(e,i){return this._listeners.set(e,i),this._getObserver().observe(e,this.options),()=>{this._listeners.delete(e),this._observer.unobserve(e)}}_getObserver(){return this._observer??(this._observer=new ResizeObserver(e=>{for(let i of e)t.entries.set(i.target,i),this._listeners.get(i.target)?.(i)}))}};jl.entries="WeakMap"in To?new WeakMap:void 0;var Mc=!1;function Vc(){Mc=!0}function Rc(){Mc=!1}function m(t,e){t.appendChild(e)}function Te(t,e,i){let n=Bc(t);if(!n.getElementById(e)){let o=T("style");o.id=e,o.textContent=i,h_(n,o)}}function Bc(t){if(!t)return document;let e=t.getRootNode?t.getRootNode():t.ownerDocument;return e&&e.host?e:t.ownerDocument}function h_(t,e){return m(t.head||t,e),e.sheet}function S(t,e,i){t.insertBefore(e,i||null)}function k(t){t.parentNode&&t.parentNode.removeChild(t)}function Ei(t,e){for(let i=0;i<t.length;i+=1)t[i]&&t[i].d(e)}function T(t){return document.createElement(t)}function R(t){return document.createElementNS("http://www.w3.org/2000/svg",t)}function Re(t){return document.createTextNode(t)}function M(){return Re(" ")}function ct(){return Re("")}function _e(t,e,i,n){return t.addEventListener(e,i,n),()=>t.removeEventListener(e,i,n)}function Ut(t){return function(e){return e.preventDefault(),t.call(this,e)}}function ot(t){return function(e){return e.stopPropagation(),t.call(this,e)}}function c(t,e,i){i==null?t.removeAttribute(e):t.getAttribute(e)!==i&&t.setAttribute(e,i)}function ye(t,e){for(let i in e)c(t,i,e[i])}function qc(t){return Array.from(t.childNodes)}function Ge(t,e){e=""+e,t.data!==e&&(t.data=e)}function bi(t,e,i,n){i==null?t.style.removeProperty(e):t.style.setProperty(e,i,n?"important":"")}var Gl;function g_(){if(Gl===void 0){Gl=!1;try{typeof window<"u"&&window.parent&&window.parent.document}catch{Gl=!0}}return Gl}function Xo(t,e){getComputedStyle(t).position==="static"&&(t.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=g_(),l;return o?(n.src="data:text/html,<script>onresize=function(){parent.postMessage(0,'*')}<\/script>",l=_e(window,"message",r=>{r.source===n.contentWindow&&e()})):(n.src="about:blank",n.onload=()=>{l=_e(n.contentWindow,"resize",e),e()}),m(t,n),()=>{(o||l&&n.contentWindow)&&l(),k(n)}}function q(t,e,i){t.classList.toggle(e,!!i)}function Dc(t){let e={};return t.childNodes.forEach(i=>{e[i.slot||"default"]=!0}),e}function bn(t,e){return new t(e)}var co;function eo(t){co=t}function Jo(){if(!co)throw new Error("Function called outside component initialization");return co}function It(t){Jo().$$.on_mount.push(t)}function Un(t){Jo().$$.on_destroy.push(t)}function xo(t,e){return Jo().$$.context.set(t,e),e}function $o(t){return Jo().$$.context.get(t)}function Pl(){return Jo().$$.context}function Cn(t,e){let i=t.$$.callbacks[e.type];i&&i.slice().forEach(n=>n.call(this,e))}var Po=[];var be=[],tl=[],gs=[],Oc=Promise.resolve(),bs=!1;function vs(){bs||(bs=!0,Oc.then(Ql))}function Kn(){return vs(),Oc}function Wn(t){tl.push(t)}function Ne(t){gs.push(t)}var hs=new Set,el=0;function Ql(){if(el!==0)return;let t=co;do{try{for(;el<Po.length;){let e=Po[el];el++,eo(e),S_(e.$$)}}catch(e){throw Po.length=0,el=0,e}for(eo(null),Po.length=0,el=0;be.length;)be.pop()();for(let e=0;e<tl.length;e+=1){let i=tl[e];hs.has(i)||(hs.add(i),i())}tl.length=0}while(Po.length);for(;gs.length;)gs.pop()();bs=!1,hs.clear(),eo(t)}function S_(t){if(t.fragment!==null){t.update(),tt(t.before_update);let e=t.dirty;t.dirty=[-1],t.fragment&&t.fragment.p(t.ctx,e),t.after_update.forEach(Wn)}}function Fc(t){let e=[],i=[];tl.forEach(n=>t.indexOf(n)===-1?e.push(n):i.push(n)),i.forEach(n=>n()),tl=e}var Yl=new Set,Io;function me(){Io={r:0,c:[],p:Io}}function pe(){Io.r||tt(Io.c),Io=Io.p}function d(t,e){t&&t.i&&(Yl.delete(t),t.i(e))}function _(t,e,i,n){if(t&&t.o){if(Yl.has(t))return;Yl.add(t),Io.c.push(()=>{Yl.delete(t),n&&(i&&t.d(1),n())}),t.o(e)}else n&&n()}function Pt(t){return t?.length!==void 0?t:Array.from(t)}function Be(t,e){let i={},n={},o={$$scope:1},l=t.length;for(;l--;){let r=t[l],a=e[l];if(a){for(let s in r)s in a||(n[s]=1);for(let s in a)o[s]||(i[s]=a[s],o[s]=1);t[l]=a}else for(let s in r)o[s]=1}for(let r in n)r in i||(i[r]=void 0);return i}function zc(t){return typeof t=="object"&&t!==null?t:{}}var C_=["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"],T_=new Set([...C_]);function Oe(t,e,i){let n=t.$$.props[e];n!==void 0&&(t.$$.bound[n]=i,i(t.$$.ctx[n]))}function V(t){t&&t.c()}function A(t,e,i){let{fragment:n,after_update:o}=t.$$;n&&n.m(e,i),Wn(()=>{let l=t.$$.on_mount.map(ps).filter(Ii);t.$$.on_destroy?t.$$.on_destroy.push(...l):tt(l),t.$$.on_mount=[]}),o.forEach(Wn)}function L(t,e){let i=t.$$;i.fragment!==null&&(Fc(i.after_update),tt(i.on_destroy),i.fragment&&i.fragment.d(e),i.on_destroy=i.fragment=null,i.ctx=[])}function I_(t,e){t.$$.dirty[0]===-1&&(Po.push(t),vs(),t.$$.dirty.fill(0)),t.$$.dirty[e/31|0]|=1<<e%31}function U(t,e,i,n,o,l,r=null,a=[-1]){let s=co;eo(t);let u=t.$$={fragment:null,ctx:[],props:l,update:Ce,not_equal:o,bound:Wl(),on_mount:[],on_destroy:[],on_disconnect:[],before_update:[],after_update:[],context:new Map(e.context||(s?s.$$.context:[])),callbacks:Wl(),dirty:a,skip_bound:!1,root:e.target||s.$$.root};r&&r(u.root);let f=!1;if(u.ctx=i?i(t,e.props||{},(p,h,...w)=>{let g=w.length?w[0]:h;return u.ctx&&o(u.ctx[p],u.ctx[p]=g)&&(!u.skip_bound&&u.bound[p]&&u.bound[p](g),f&&I_(t,p)),h}):[],u.update(),f=!0,tt(u.before_update),u.fragment=n?n(u.ctx):!1,e.target){if(e.hydrate){Vc();let p=qc(e.target);u.fragment&&u.fragment.l(p),p.forEach(k)}else u.fragment&&u.fragment.c();e.intro&&d(t.$$.fragment),A(t,e.target,e.anchor),Rc(),Ql()}eo(s)}var E_;typeof HTMLElement=="function"&&(E_=class extends HTMLElement{$$ctor;$$s;$$c;$$cn=!1;$$d={};$$r=!1;$$p_d={};$$l={};$$l_u=new Map;constructor(t,e,i){super(),this.$$ctor=t,this.$$s=e,i&&this.attachShadow({mode:"open"})}addEventListener(t,e,i){if(this.$$l[t]=this.$$l[t]||[],this.$$l[t].push(e),this.$$c){let n=this.$$c.$on(t,e);this.$$l_u.set(e,n)}super.addEventListener(t,e,i)}removeEventListener(t,e,i){if(super.removeEventListener(t,e,i),this.$$c){let n=this.$$l_u.get(e);n&&(n(),this.$$l_u.delete(e))}}async connectedCallback(){if(this.$$cn=!0,!this.$$c){let e=function(l){return()=>{let r;return{c:function(){r=T("slot"),l!=="default"&&c(r,"name",l)},m:function(u,f){S(u,r,f)},d:function(u){u&&k(r)}}}};var t=e;if(await Promise.resolve(),!this.$$cn||this.$$c)return;let i={},n=Dc(this);for(let l of this.$$s)l in n&&(i[l]=[e(l)]);for(let l of this.attributes){let r=this.$$g_p(l.name);r in this.$$d||(this.$$d[r]=ys(r,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:{...this.$$d,$$slots:i,$$scope:{ctx:[]}}});let o=()=>{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 r=ys(l,this.$$d[l],this.$$p_d,"toAttribute");r==null?this.removeAttribute(this.$$p_d[l].attribute||l):this.setAttribute(this.$$p_d[l].attribute||l,r)}this.$$r=!1};this.$$c.$$.after_update.push(o),o();for(let l in this.$$l)for(let r of this.$$l[l]){let a=this.$$c.$on(l,r);this.$$l_u.set(r,a)}this.$$l={}}}attributeChangedCallback(t,e,i){this.$$r||(t=this.$$g_p(t),this.$$d[t]=ys(t,i,this.$$p_d,"toProp"),this.$$c?.$set({[t]:this.$$d[t]}))}disconnectedCallback(){this.$$cn=!1,Promise.resolve().then(()=>{!this.$$cn&&this.$$c&&(this.$$c.$destroy(),this.$$c=void 0)})}$$g_p(t){return Object.keys(this.$$p_d).find(e=>this.$$p_d[e].attribute===t||!this.$$p_d[e].attribute&&e.toLowerCase()===t)||t}});function ys(t,e,i,n){let o=i[t]?.type;if(e=o==="Boolean"&&typeof e!="boolean"?e!=null:e,!n||!i[t])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;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 H=class{$$=void 0;$$set=void 0;$destroy(){L(this,1),this.$destroy=Ce}$on(e,i){if(!Ii(i))return Ce;let n=this.$$.callbacks[e]||(this.$$.callbacks[e]=[]);return n.push(i),()=>{let o=n.indexOf(i);o!==-1&&n.splice(o,1)}}$set(e){this.$$set&&!Ec(e)&&(this.$$.skip_bound=!0,this.$$set(e),this.$$.skip_bound=!1)}};var Hc="4";typeof window<"u"&&(window.__svelte||(window.__svelte={v:new Set})).v.add(Hc);import"@vkontakte/videoplayer-core";import{noop as vl,safeStorage as O6,throttleFn as F6}from"@vkontakte/videoplayer-shared";import{SeekAction as z6}from"@vkontakte/videoplayer-statistics";import{InterfaceLanguage as A_,fillWithDefault as L_,VideoQuality as M_}from"@vkontakte/videoplayer-shared";var V_={isMobile:void 0,defaultLanguage:A_.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:M_.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}},Uc=t=>L_(t,V_),Kc=t=>xo("ui-config",t),Bt=()=>$o("ui-config");var Il="vk_player_debug_panel_opened";var Wc="videoplayer",jc="videoplayer";var Xn={KeyF:"f",KeyK:"k",KeyC:"c",KeyM:"m"},Gc=new Set(["ArrowLeft","ArrowRight","KeyL","KeyJ"]),Qc=new Set(["Tab","Space","ArrowLeft","ArrowRight","ArrowUp","ArrowDown"]),Yc=new Set(["ShiftRight","ShiftLeft"]);var Zc=["TIMELINE"],El=[...Zc,"GRAPH_BUTTON"],ws=[...Zc,"PLAY_BUTTON"],Zl=[...El,"PLAY_BUTTON"];var Ao=(l=>(l.XS="xs",l.S="s",l.M="m",l.L="l",l.XL="xl",l))(Ao||{}),Lo={xs:0,s:1,m:2,l:3,xl:4};var il=[];function Bn(t,e){return{subscribe:qe(t,e).subscribe}}function qe(t,e=Ce){let i,n=new Set;function o(a){if(F(t,a)&&(t=a,i)){let s=!il.length;for(let u of n)u[1](),il.push(u,t);if(s){for(let u=0;u<il.length;u+=2)il[u][0](il[u+1]);il.length=0}}}function l(a){o(a(t))}function r(a,s=Ce){let u=[a,s];return n.add(u),n.size===1&&(i=e(o,l)||Ce),a(t),()=>{n.delete(u),n.size===0&&i&&(i(),i=null)}}return{set:o,update:l,subscribe:r}}function vi(t,e,i){let n=!Array.isArray(t),o=n?[t]:t;if(!o.every(Boolean))throw new Error("derived() expects stores as input, got a falsy value");let l=e.length<2;return Bn(i,(r,a)=>{let s=!1,u=[],f=0,p=Ce,h=()=>{if(f)return;p();let g=e(n?u[0]:u,r,a);l?r(g):p=Ii(g)?g:Ce},w=o.map((g,C)=>Ht(g,b=>{u[C]=b,f&=~(1<<C),s&&h()},()=>{f|=1<<C}));return s=!0,h(),function(){tt(w),p(),s=!1}})}import{assertNonNullable as Xc,VERSION as R_}from"@vkontakte/videoplayer-shared";import{VERSION as B_}from"@vkontakte/videoplayer-core";import{VERSION as q_}from"@vkontakte/videoplayer-statistics";var Xl="prod",nl="1.1.41-dev.dd436b0c.0";var Mo=(t,e,i)=>{let n=document.createElement("a");n.href=t,n.download=`${e}.${i}`,n.style.display="none",n.click()};var Jc=Symbol("storeContext"),xc=Symbol("microStoresContext"),$c=(t,e)=>{xo(Jc,t),xo(xc,e),Xl==="dev"&&(window.app={store:t,microStores:e})},it=()=>{let t=$o(Jc);return Xc(t,"Store context is empty!"),t},qn=()=>{let t=$o(xc);return Xc(t,"MicroStores context is empty!"),t},vt=(t,e)=>ks(t,t.getValue(),e),ks=(t,e,i)=>Bn(e,n=>{let o=t.subscribe(l=>{n(l),i?.(l)});return()=>o.unsubscribe()}),ef=(t,e,i)=>{let n=t.info,{width:o,height:l}=Je(i.ui.playerSize),r=n.throughputEstimation$.getValue()?.toFixed(0)??0,a=n.rttEstimation$.getValue()?.toFixed(0)??0,s=n.isAutoQualityEnabled$.getValue()?"auto":"manual",u=`${nl} (core: ${B_}, stat: ${q_}, shared: ${R_})`,f=Je(i.state.errorLog$),p=f.length?`
7
7
  `+f.map((E,v)=>{let y=`${v}) Type: ${E.id}
8
- `,T=`Message: ${E.message} (${E.thrown})
9
- `,Y=`Trace: ${E.thrown?.stack}
10
- `;return y+T+Y}).join(`
8
+ `,P=`Message: ${E.message} (${E.thrown})
9
+ `,W=`Trace: ${E.thrown?.stack}
10
+ `;return y+P+W}).join(`
11
11
  `):void 0,h=i.state.isAudioDisabled?"disabled":Je(i.state.isAudioAvailable$)?void 0:"unavailable",w=t.info.currentVideoStream$.getValue(),g=t.info.currentAudioStream$.getValue(),C=[];w&&C.push(`Video: ${w?.codec??""}`+(w?.hdr?" (HDR)":"")),g&&C.push(`Audio: ${g?.codec??""}`+(g?.language?` (${g.language})`:""));let b={Version:u,Browser:navigator.userAgent,Config:t.experimental.tuningConfigName$.getValue().join(", "),"United video id":String(i.videoId),VSID:Je(i.vsid),"Content host":n.hostname$.getValue(),"Connection type":n.httpConnectionType$.getValue()+(n.httpConnectionReused$.getValue()?" (reused)":""),Throughput:`${r}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:`${Je(i.state.positionExact$)}s`,State:`${Je(i.playerPhase)} ${n.playbackState$.getValue()}`,"Player size":`${o}x${l}`,URL:window.location.href,Errors:p};return Object.entries(b).filter(([E,v])=>v!==void 0).map(([E,v])=>`${E}: ${v}`).join(`
12
- `)},ef=(t,e,i)=>{let n=t.info,{width:o,height:l}=Je(i.ui.playerSize),r={version:il,viewport:`${o}x${l}`,volume:Math.round(Je(i.state.volume$)*100)};r.id=i.videoId,n.currentFormat$.getValue()&&(r.provider=n.currentFormat$.getValue()),n.hostname$.getValue()&&(r.cdn=n.hostname$.getValue());let u=n.intrinsicVideoSize$.getValue();u&&(r.videoSize=`${u.width}x${u.height}`);let f=n.currentBuffer$.getValue(),p=n.isLive$.getValue(),h=n.liveBufferTime$.getValue();f&&(p&&h?r.buffer=f.end-h:r.buffer=Math.max(f.end-Je(i.state.positionExact$),0));let w=n.throughputEstimation$.getValue();w&&(r.speed=w);let g=n.videoBitrate$.getValue();g&&(r.bitrate=g);let C=n.currentVideoSegmentLength$.getValue();C&&(r.currentVideoSegmentLength=C);let b=n.currentAudioSegmentLength$.getValue();b&&(r.currentAudioSegmentLength=b);let E=Je(i.vsid);typeof E=="string"&&(r.vsid=E);let v=t.info.currentVideoStream$.getValue()?.codec;v&&(r.videoCodec=v);let y=t.info.currentAudioStream$.getValue()?.codec;y&&(r.audioCodec=y),t.info.currentVideoStream$.getValue()?.hdr&&(r.hdr=!0);let Y=t.info.currentAudioStream$.getValue()?.language;return Y&&(r.audioLanguage=Y),r},tf=(t,e)=>El(t,e,"mp4");import{isNullable as Ss,safeStorage as qn}from"@vkontakte/videoplayer-shared";import"@vkontakte/videoplayer-core";var nf="vk_player_prefer_traffic_saving_enabled",of="vk_player_preferred_volume",lf="vk_player_prefer_volume_mute",Cs="vk_player_preferred_quality",rf="vk_player_preferred_stream_language",sf="vk_player_preferred_rate",af=t=>t>1?1:t<0?0:t,Ps=t=>qn.set(of,af(t).toString(10)),Jl=()=>{let t=qn.get(of);return Ss(t)?void 0:af(parseFloat(t))},uf=(t,e)=>qn.set(Cs,JSON.stringify({videoId:t,value:e})),Ts=()=>qn.remove(Cs),cf=t=>{let e=qn.get(Cs);if(Ss(e))return;let{videoId:i,value:n}=JSON.parse(e);if(t!==i){Ts();return}return n},ff=(t,e)=>{e?qn.set(t,"true"):qn.remove(t)},df=t=>qn.get(t)==="true",xl=t=>ff(lf,t),mf=()=>df(lf),pf=t=>ff(nf,t),_f=()=>df(nf),hf=()=>qn.get(rf),Is=t=>qn.set(rf,t),gf=t=>qn.set(sf,JSON.stringify({rate:t})),bf=()=>{let t=qn.get(sf);if(Ss(t))return;let{rate:e}=JSON.parse(t);return e};import{PlaybackState as S6}from"@vkontakte/videoplayer-core";import{noop as cc}from"@vkontakte/videoplayer-shared";function D_(t){let e,i,n,o,l,r,a,s,u,f,p,h,w,g,C,b,E,v=t[2].default,y=Ie(v,t,t[1],null),T=[{xmlns:"http://www.w3.org/2000/svg"},{width:"76"},{height:"45"},{fill:"none"},{"data-testid":"video-360-icon"},{role:"img"},t[0]],Y={};for(let q=0;q<T.length;q+=1)Y=ue(Y,T[q]);return{c(){e=R("svg"),y&&y.c(),i=R("g"),n=R("path"),o=R("path"),l=R("path"),r=R("path"),a=R("path"),s=R("defs"),u=R("filter"),f=R("feFlood"),p=R("feColorMatrix"),h=R("feOffset"),w=R("feGaussianBlur"),g=R("feColorMatrix"),C=R("feBlend"),b=R("feBlend"),c(n,"fill","#fff"),c(n,"fill-rule","evenodd"),c(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"),c(n,"clip-rule","evenodd"),c(o,"fill","#fff"),c(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"),c(l,"fill","#fff"),c(l,"fill-rule","evenodd"),c(l,"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"),c(l,"clip-rule","evenodd"),c(r,"fill","#fff"),c(r,"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"),c(a,"stroke","#000"),c(a,"stroke-linecap","round"),c(a,"stroke-linejoin","round"),c(a,"stroke-opacity",".12"),c(a,"stroke-width",".5"),c(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"),c(i,"filter","url(#a)"),c(f,"flood-opacity","0"),c(f,"result","BackgroundImageFix"),c(p,"in","SourceAlpha"),c(p,"result","hardAlpha"),c(p,"values","0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0"),c(w,"stdDeviation","2.5"),c(g,"values","0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.16 0"),c(C,"in2","BackgroundImageFix"),c(C,"result","effect1_dropShadow_618_12297"),c(b,"in","SourceGraphic"),c(b,"in2","effect1_dropShadow_618_12297"),c(b,"result","shape"),c(u,"id","a"),c(u,"width","75"),c(u,"height","44"),c(u,"x",".5"),c(u,"y",".5"),c(u,"color-interpolation-filters","sRGB"),c(u,"filterUnits","userSpaceOnUse"),ye(e,Y)},m(q,N){S(q,e,N),y&&y.m(e,null),m(e,i),m(i,n),m(i,o),m(i,l),m(i,r),m(i,a),m(e,s),m(s,u),m(u,f),m(u,p),m(u,h),m(u,w),m(u,g),m(u,C),m(u,b),E=!0},p(q,[N]){y&&y.p&&(!E||N&2)&&Ae(y,v,q,q[1],E?Ee(v,q[1],N,null):Le(q[1]),null),ye(e,Y=Be(T,[{xmlns:"http://www.w3.org/2000/svg"},{width:"76"},{height:"45"},{fill:"none"},{"data-testid":"video-360-icon"},{role:"img"},N&1&&q[0]]))},i(q){E||(d(y,q),E=!0)},o(q){_(y,q),E=!1},d(q){q&&k(e),y&&y.d(q)}}}function N_(t,e,i){let{$$slots:n={},$$scope:o}=e;return t.$$set=l=>{i(0,e=ue(ue({},e),ve(l))),"$$scope"in l&&i(1,o=l.$$scope)},e=ve(e),[e,o,n]}var Es=class extends H{constructor(e){super(),U(this,e,N_,D_,F,{})}},$l=Es;import{isNullable as wf,InterfaceLanguage as kf}from"@vkontakte/videoplayer-shared";var O_={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"},vf=O_;var F_={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"},yf=F_;var eo=new Map;eo.set(kf.EN,yf);eo.set(kf.RU,vf);var Sf=new Map,As=({language:t,pack:e,fallback:i})=>{if(eo.has(t)){let n=eo.get(t);eo.set(t,{...n,...e})}else eo.set(t,e);Sf.set(t,i)},Ls=t=>eo.has(t),Ms=(t,e,i,n)=>{let l=eo.get(t)?.[e];if(wf(l)){let r=Sf.get(t)??n;l=(r?eo.get(r):void 0)?.[e]}return wf(l)?e+Object.values(i??{}).join(" "):i?l.replaceAll(/{(\w+?)}/g,(r,a)=>i[a]??""):l},O=(t,e)=>{let{interfaceLanguage$:i}=it(),n=Je(i),o=Bt();return Ms(n,t,e,o.defaultLanguage)};import"@vkontakte/videoplayer-core";var nl;(function(t){t.fatal="fatal",t.error="error",t.warning="warning",t.log="log",t.info="info",t.debug="debug",t.critical="critical"})(nl||(nl={}));var z_=/^\s*at (?:(.*?) ?\()?((?:file|https?|blob|chrome-extension|address|native|eval|webpack|<anonymous>|[-a-z]+:|.*bundle|\/).*?)(?::(\d+))?(?::(\d+))?\)?\s*$/i,H_=/^\s*(.*?)(?:\((.*?)\))?(?:^|@)?((?:file|https?|blob|chrome|webpack|resource|moz-extension).*?:\/.*?|\[native code\]|[^@]*(?:bundle|\d+\.js))(?::(\d+))?(?::(\d+))?\s*$/i,U_=/^\s*at (?:((?:\[object object\])?.+) )?\(?((?:file|ms-appx|https?|webpack|blob):.*?):(\d+)(?::(\d+))?\)?\s*$/i,er="?",W_="X-Sentry-Auth",K_=/^(?:(\w+):)\/\/(?:([\w-]+)(?::(\w+))?@)([\w.-]+)(?::(\d+))?\/(.+)/;function j_(t){if(!t.stack)return null;let e=[],i=t.stack.split(`
13
- `),n,o;for(let l=0;l<i.length;++l){if(n=z_.exec(i[l]))o={filename:n[2]&&n[2].indexOf("address at ")===0?n[2].substr(11):n[2],function:n[1]||er,lineno:n[3]?+n[3]:null,colno:n[4]?+n[4]:null};else if(n=U_.exec(i[l]))o={filename:n[2],function:n[1]||er,lineno:+n[3],colno:n[4]?+n[4]:null};else if(n=H_.exec(i[l]))l===0&&!n[5]&&t.columnNumber!==void 0&&(e[0].column=t.columnNumber+1),o={filename:n[3],function:n[1]||er,lineno:n[4]?+n[4]:null,colno:n[5]?+n[5]:null};else continue;!o.function&&o.lineno&&(o.function=er),e.push(o)}return e.length?{value:Cf(t),type:t.name,stacktrace:{frames:e.reverse()}}:null}function Cf(t){return(t&&t.message||"No error message").split(`
14
- `).filter(i=>!!i)[0]}function G_(t){try{let e=j_(t);if(e)return e}catch{}return{value:Cf(t),type:t&&t.name,stacktrace:{frames:[]}}}function Q_(){return"xxxxxxxxxxxx4xxxyxxxxxxxxxxxxxxx".replace(/[xy]/g,t=>{let e=Math.random()*16|0;return(t==="x"?e:e&3|8).toString(16)})}var tr=class{constructor(e){if(e&&e.dsn){let i=K_.exec(e.dsn),n=i?i.slice(1):[],o=n[5].split("/"),l=o.slice(0,-1).join("/");this.apiUrl=n[0]+"://"+n[3]+(n[4]?":"+n[4]:"")+(l?"/"+l:"")+"/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{...this.getRequestBlank(),exception:{values:[G_(e)]}}}report(e){this.send(this.prepare(e))}send(e){!this.apiUrl||!e||this.createRequest(e)}createRequest(e){let i=new XMLHttpRequest;i.open("POST",this.apiUrl,!0),i.setRequestHeader("Content-type","application/json"),i.setRequestHeader(W_,this.authHeader||""),i.send(JSON.stringify(e))}getRequestBlank(){return{platform:"javascript",event_id:Q_(),sdk:{name:"micro-sentry.javascript.core",version:"0.0.0"},timestamp:Date.now()/1e3,environment:this.environment}}};function Pf(t,e){return Object.prototype.toString.call(e)==="[object RegExp]"?e.test(t):typeof e=="string"?t.indexOf(e)!==-1:!1}function Y_(){return window}var ir=class t extends tr{constructor(e,i=Y_()){super(e),this.options=e,this.window=i,this.destroyed=!1,this._state={};let{plugins:n=[],beforeSend:o=u=>u,beforeBreadcrumb:l=u=>u,blacklistUrls:r=[],ignoreErrors:a=[],release:s=void 0}=this.options||{};this.plugins=n.map(u=>new u(this)),this.beforeSend=o,this.beforeBreadcrumb=l,this.blacklistUrls=r,this.ignoreErrors=a,this.release=s}get state(){return this._state}clearState(){this._state={}}setTags(e){return this.setKeyState("tags",{...e}),this}setTag(e,i){return this.extendState({tags:{[e]:i}}),this}setExtra(e,i){return this.extendState({extra:{[e]:i}}),this}setExtras(e){return this.setKeyState("extra",{...e}),this}setUser(e){return this.setKeyState("user",{...e}),this}clone(){let e=new t({...this.options,plugins:[]});return e.extendState(this.state),e}withScope(e){let i=this.clone();e(i),i.destroy(),this.setBreadcrumbs(void 0)}addBreadcrumb(e){this.extendState({breadcrumbs:[{timestamp:Date.now()/1e3,...this.beforeBreadcrumb(e)}]})}setBreadcrumbs(e){this.setKeyState("breadcrumbs",e)}captureMessage(e,i){this.send({...this.getRequestBlank(),message:e,level:i})}destroy(){this.destroyed=!0,this.plugins.forEach(e=>{e.destroy&&e.destroy()})}isIgnoredError(e){return this.ignoreErrors.length?this.getPossibleEventMessages(e).some(i=>this.ignoreErrors.some(n=>Pf(i,n))):!1}getRequestBlank(){return{request:{url:this.window.location.toString(),headers:{"User-Agent":this.window.navigator.userAgent}},...super.getRequestBlank(),sdk:{name:"micro-sentry.javascript.browser",version:"0.0.0"},...this.state}}send(e){this.destroyed||this.isDeniedUrl(e)||this.isIgnoredError(e)||(super.send(this.beforeSend({release:this.release,...e})),this.setBreadcrumbs(void 0))}getPossibleEventMessages(e){if(e.message)return[e.message];if(e.exception)try{let{type:i="",value:n=""}=e.exception.values&&e.exception.values[0]||{};return[`${n}`,`${i}: ${n}`]}catch{return[]}return[]}isDeniedUrl(e){if(!this.blacklistUrls.length)return!1;let i=this.getEventFilterUrl(e);return i?this.blacklistUrls.some(n=>Pf(i,n)):!1}getEventFilterUrl(e){try{if(e.exception){let i=e.exception.values&&e.exception.values[0].stacktrace&&e.exception.values[0].stacktrace.frames;return i&&i[i.length-1].filename||null}return null}catch{return null}}extendState(e){this._state=Object.keys(e).reduce((i,n)=>{let o=this._state[n],l=Array.isArray(o)?o:null,r=e[n],a=Array.isArray(r)?r:null;return{...i,[n]:l||a?[...l||[],...a||[]]:{...typeof o!="string"?o:{},...typeof r!="string"?r:{}}}},this._state)}setKeyState(e,i){this._state[e]=i}};import{isNonNullable as nr,Subscription as Z_}from"@vkontakte/videoplayer-shared";var or=null,Mo=class{constructor(e,i,n={}){!or&&e.dsn&&(this.sentryClient=new ir({dsn:e.dsn,environment:i.env}),this.version=i.version,this.sentrySubscription=new Z_,this.options=e,this.context=n,or=this)}destroy(){this.sentryClient?.destroy(),this.sentrySubscription?.unsubscribe(),or=null}logIError(e,i=!1){e.thrown&&this.report(e.thrown,{fatal:i,errorType:e.id,category:e.category},{message:e.message,errorData:e.data})}report(e,i={},n={}){let{sentryClient:o,context:l,options:r}=this,{sampleRate:a=0,whiteErrorIdList:s,whiteErrorCategoryList:u=[],blackErrorIdList:f,blackErrorCategoryList:p}=r,{errorType:h,category:w}=i;if(nr(w)&&p.includes(w)||nr(h)&&f.includes(h))return;if(Math.random()<=a||nr(w)&&u.includes(w)||nr(h)&&s.includes(h)){Object.keys(i).length&&o.setTags({version:this.version,...i}),(Object.keys(l).length||Object.keys(n).length)&&o.setExtras({...l,...n});try{h&&o.captureMessage(h,i.fatal?nl.fatal:nl.error),o.report(e)}catch(C){console.error(C)}}}static getInstance(){return or}};var lr=t=>{if(t.requestFullscreen)return t.requestFullscreen();if(t.msRequestFullscreen)return t.msRequestFullscreen();if(t.webkitRequestFullscreen)return t.webkitRequestFullscreen();if(t.mozRequestFullScreen)return t.mozRequestFullScreen();let e=t.querySelector("video");return e?.webkitEnterFullscreen?e.webkitEnterFullscreen():Promise.reject()},rr=t=>t.exitFullscreen?t.exitFullscreen():t.msExitFullscreen?t.msExitFullscreen():t.webkitExitFullscreen?t.webkitExitFullscreen():t.mozCancelFullScreen?t.mozCancelFullScreen():Promise.reject(),Tf=t=>{let e=t;return e?.webkitExitFullscreen?e?.webkitExitFullscreen():Promise.reject()},Al=()=>{let t=document;return t.fullscreenElement||t.mozFullScreenElement||t.webkitFullscreenElement||t.msFullscreenElement},fo=()=>!!Al(),sr=t=>{document.addEventListener("fullscreenchange",t),document.addEventListener("webkitfullscreenchange",t),document.addEventListener("mozfullscreenchange",t),document.addEventListener("MSFullscreenChange",t)},ar=t=>{document.removeEventListener("fullscreenchange",t),document.removeEventListener("webkitfullscreenchange",t),document.removeEventListener("mozfullscreenchange",t),document.removeEventListener("MSFullscreenChange",t)},If=t=>{let e=window.screen;return(async o=>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")(t))};import{clientChecker as Ef}from"@vkontakte/videoplayer-shared";var Af=()=>({title:O("hotkey_map_modal_title"),closeBtnText:O("hotkey_map_modal_close_btn_text"),groups:[{title:O("hotkey_map_group_title_common"),items:[{description:O("hotkey_map_item_mute_description"),value:O("hotkey_map_item_mute_value")},{description:O("hotkey_map_item_volume_up_description"),value:O("hotkey_map_item_volume_up_value")},{description:O("hotkey_map_item_volume_down_description"),value:O("hotkey_map_item_volume_down_value")},{description:O("hotkey_map_item_pip_description"),value:O("hotkey_map_item_pip_value")},{description:O("hotkey_map_item_full_screen_description"),value:O("hotkey_map_item_full_screen_value")},{description:O("hotkey_map_item_show_context_menu_description"),value:O("hotkey_map_item_show_context_menu_value")},{description:O("hotkey_map_item_show_hotkey_map_description"),value:O("hotkey_map_item_show_hotkey_map_value")}]},{title:O("hotkey_map_group_title_playback"),items:[{description:O("hotkey_map_item_play_toggle_description"),value:O("hotkey_map_item_play_toggle_value")},{description:O("hotkey_map_item_seek_backward_description"),value:O("hotkey_map_item_seek_backward_value")},{description:O("hotkey_map_item_seek_forward_description"),value:O("hotkey_map_item_seek_forward_value")},{description:O("hotkey_map_item_fast_seek_backward_description"),value:O("hotkey_map_item_fast_seek_backward_value")},{description:O("hotkey_map_item_fast_seek_forward_description"),value:O("hotkey_map_item_fast_seek_forward_value")},{description:O("hotkey_map_item_rate_down_description"),value:O("hotkey_map_item_rate_down_value")},{description:O("hotkey_map_item_rate_up_description"),value:O("hotkey_map_item_rate_up_value")},{description:O("hotkey_map_item_prev_frame_description"),value:O("hotkey_map_item_prev_frame_value")},{description:O("hotkey_map_item_next_frame_description"),value:O("hotkey_map_item_next_frame_value")},{description:O("hotkey_map_item_jump_seek_description"),value:O("hotkey_map_item_jump_seek_value")}]},{title:O("hotkey_map_group_title_subtitles"),items:[{description:O("hotkey_map_item_subtitles_toggle_description"),value:O("hotkey_map_item_subtitles_toggle_value")}]},{title:O("hotkey_map_group_title_episodes"),items:[{description:O("hotkey_map_item_prev_episode_description"),value:Ef.isApple?O("hotkey_map_item_prev_episode_mac_value"):O("hotkey_map_item_prev_episode_pc_value")},{description:O("hotkey_map_item_next_episode_description"),value:Ef.isApple?O("hotkey_map_item_next_episode_mac_value"):O("hotkey_map_item_next_episode_pc_value")}]}]});import{debounceFn as X_,clientChecker as J_,ValueSubject as x_}from"@vkontakte/videoplayer-shared";var Vo=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:X_(this.onResize.bind(this),300)};this.info={isActive$:new x_(this.isActive()),type:0}}isSupported(){return document.pictureInPictureEnabled&&!J_.isYandex}isActive(){return this.isSupported()&&!!document.pictureInPictureElement}setContext(e){this.svelteContext=e}async revealPictureInPicture(){this.isRequested&&(this.unregistryEventHandlers(),await this.request(),this.registryEventHandlers())}async request(){if(!(!this.isSupported()||this.isActive()))try{await this.videoElement?.requestPictureInPicture()}catch{this.isRequested=!1}}async remove(){!this.isSupported()||!this.isActive()||await document.exitPictureInPicture()}assignPlayerContainer(e){this.isSupported()&&(this.playerContainer=e)}updateVideoElement(){this.isSupported()&&(this.videoElement=this.playerContainer?.querySelector("video"))}registryEventHandlers(){this.videoElement?.addEventListener("enterpictureinpicture",this.eventHandlers.enterpictureinpicture),this.videoElement?.addEventListener("leavepictureinpicture",this.eventHandlers.leavepictureinpicture)}registryExternalEventHandlers(e){this.externalEventHandlers={...e}}unregistryEventHandlers(){this.videoElement?.removeEventListener("enterpictureinpicture",this.eventHandlers.enterpictureinpicture),this.videoElement?.removeEventListener("leavepictureinpicture",this.eventHandlers.leavepictureinpicture)}async dispose(){this.unregistryEventHandlers(),await this.remove()}onEnterPictureInPicture(e){let n=e.pictureInPictureWindow;n&&(this.info.isActive$.next(!0),this.isRequested=!0,n.addEventListener("resize",this.eventHandlers.resize),this.externalEventHandlers.enterpictureinpicture?.(e))}onLeavePictureInPicture(e){let n=e.pictureInPictureWindow;this.info.isActive$.next(!1),this.isRequested=!1,n?.removeEventListener("resize",this.eventHandlers.resize),this.externalEventHandlers.leavepictureinpicture?.(e),this.playerDummyElement?.$destroy()}onResize(e){this.externalEventHandlers.resize?.(e)}};function Ro(t){return t instanceof Vo}function $_(t){let e=it();return It(()=>{e.getAdmanWrapper().startPostroll()}),[]}var Bs=class extends H{constructor(e){super(),U(this,e,$_,null,F,{})}},Lf=Bs;import{noop as eh}from"@vkontakte/videoplayer-shared";function th(t){Pe(t,"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 ih(t){let e=O("skip_ads_after",{time:Math.ceil(t[1]-t[0]).toFixed(0)})+"",i;return{c(){i=Re(e)},m(n,o){S(n,i,o)},p(n,o){o&3&&e!==(e=O("skip_ads_after",{time:Math.ceil(n[1]-n[0]).toFixed(0)})+"")&&Ge(i,e)},d(n){n&&k(i)}}}function nh(t){let e,i=O("skip_ads_now")+"",n,o,l,r,a,s;return{c(){e=P("div"),n=Re(i),o=V(),l=R("svg"),r=R("path"),c(r,"fill-rule","evenodd"),c(r,"clip-rule","evenodd"),c(r,"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"),c(l,"class","icon svelte-1k4i25s"),c(l,"width","7"),c(l,"height","12"),c(l,"viewBox","0 0 7 12"),c(l,"fill","none"),c(l,"xmlns","http://www.w3.org/2000/svg"),c(e,"class","skip svelte-1k4i25s")},m(u,f){S(u,e,f),m(e,n),m(e,o),m(e,l),m(l,r),a||(s=he(e,"click",st(function(){Ei(t[2])&&t[2].apply(this,arguments)})),a=!0)},p(u,f){t=u},d(u){u&&k(e),a=!1,s()}}}function oh(t){let e;function i(l,r){return l[3]?nh:ih}let n=i(t,-1),o=n(t);return{c(){e=P("div"),o.c(),c(e,"class","container svelte-1k4i25s"),B(e,"container-mobile",t[4]),B(e,"skippable",t[3])},m(l,r){S(l,e,r),o.m(e,null)},p(l,[r]){n===(n=i(l,r))&&o?o.p(l,r):(o.d(1),o=n(l),o&&(o.c(),o.m(e,null))),r&16&&B(e,"container-mobile",l[4]),r&8&&B(e,"skippable",l[3])},i:Ce,o:Ce,d(l){l&&k(e),o.d()}}}function lh(t,e,i){let n,{position:o=0}=e,{secondsToWatchBeforeSkip:l=0}=e,{skipAd:r=eh}=e,s=it().ui.isMobile;D(t,s,f=>i(4,n=f));let u;return t.$$set=f=>{"position"in f&&i(0,o=f.position),"secondsToWatchBeforeSkip"in f&&i(1,l=f.secondsToWatchBeforeSkip),"skipAd"in f&&i(2,r=f.skipAd)},t.$$.update=()=>{t.$$.dirty&3&&i(3,u=o>0&&o>=l)},[o,l,r,u,n,s]}var qs=class extends H{constructor(e){super(),U(this,e,lh,oh,F,{position:0,secondsToWatchBeforeSkip:1,skipAd:2},th)}},Mf=qs;function rh(t){Pe(t,"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 sh(t){let e;return{c(){e=P("button"),e.textContent=`${O("visit_advertiser")}`,c(e,"class","svelte-1wy3dql")},m(i,n){S(i,e,n)},p:Ce,i:Ce,o:Ce,d(i){i&&k(e)}}}var Ds=class extends H{constructor(e){super(),U(this,e,null,sh,F,{},rh)}},Vf=Ds;function ah(t){Pe(t,"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(
12
+ `)},tf=(t,e,i)=>{let n=t.info,{width:o,height:l}=Je(i.ui.playerSize),r={version:nl,viewport:`${o}x${l}`,volume:Math.round(Je(i.state.volume$)*100)};r.id=i.videoId,n.currentFormat$.getValue()&&(r.provider=n.currentFormat$.getValue()),n.hostname$.getValue()&&(r.cdn=n.hostname$.getValue());let u=n.intrinsicVideoSize$.getValue();u&&(r.videoSize=`${u.width}x${u.height}`);let f=n.currentBuffer$.getValue(),p=n.isLive$.getValue(),h=n.liveBufferTime$.getValue();f&&(p&&h?r.buffer=f.end-h:r.buffer=Math.max(f.end-Je(i.state.positionExact$),0));let w=n.throughputEstimation$.getValue();w&&(r.speed=w);let g=n.videoBitrate$.getValue();g&&(r.bitrate=g);let C=n.currentVideoSegmentLength$.getValue();C&&(r.currentVideoSegmentLength=C);let b=n.currentAudioSegmentLength$.getValue();b&&(r.currentAudioSegmentLength=b);let E=Je(i.vsid);typeof E=="string"&&(r.vsid=E);let v=t.info.currentVideoStream$.getValue()?.codec;v&&(r.videoCodec=v);let y=t.info.currentAudioStream$.getValue()?.codec;y&&(r.audioCodec=y),t.info.currentVideoStream$.getValue()?.hdr&&(r.hdr=!0);let W=t.info.currentAudioStream$.getValue()?.language;return W&&(r.audioLanguage=W),r},nf=(t,e)=>Mo(t,e,"mp4");import{isNullable as Ss,safeStorage as Dn}from"@vkontakte/videoplayer-shared";import"@vkontakte/videoplayer-core";var of="vk_player_prefer_traffic_saving_enabled",lf="vk_player_preferred_volume",rf="vk_player_prefer_volume_mute",Cs="vk_player_preferred_quality",sf="vk_player_preferred_stream_language",af="vk_player_preferred_rate",uf=t=>t>1?1:t<0?0:t,Ts=t=>Dn.set(lf,uf(t).toString(10)),Jl=()=>{let t=Dn.get(lf);return Ss(t)?void 0:uf(parseFloat(t))},cf=(t,e)=>Dn.set(Cs,JSON.stringify({videoId:t,value:e})),Ps=()=>Dn.remove(Cs),ff=t=>{let e=Dn.get(Cs);if(Ss(e))return;let{videoId:i,value:n}=JSON.parse(e);if(t!==i){Ps();return}return n},df=(t,e)=>{e?Dn.set(t,"true"):Dn.remove(t)},mf=t=>Dn.get(t)==="true",xl=t=>df(rf,t),pf=()=>mf(rf),_f=t=>df(of,t),hf=()=>mf(of),gf=()=>Dn.get(sf),Is=t=>Dn.set(sf,t),bf=t=>Dn.set(af,JSON.stringify({rate:t})),vf=()=>{let t=Dn.get(af);if(Ss(t))return;let{rate:e}=JSON.parse(t);return e};import{PlaybackState as C6}from"@vkontakte/videoplayer-core";import{noop as fc}from"@vkontakte/videoplayer-shared";function D_(t){let e,i,n,o,l,r,a,s,u,f,p,h,w,g,C,b,E,v=t[2].default,y=Ie(v,t,t[1],null),P=[{xmlns:"http://www.w3.org/2000/svg"},{width:"76"},{height:"45"},{fill:"none"},{"data-testid":"video-360-icon"},{role:"img"},t[0]],W={};for(let B=0;B<P.length;B+=1)W=ue(W,P[B]);return{c(){e=R("svg"),y&&y.c(),i=R("g"),n=R("path"),o=R("path"),l=R("path"),r=R("path"),a=R("path"),s=R("defs"),u=R("filter"),f=R("feFlood"),p=R("feColorMatrix"),h=R("feOffset"),w=R("feGaussianBlur"),g=R("feColorMatrix"),C=R("feBlend"),b=R("feBlend"),c(n,"fill","#fff"),c(n,"fill-rule","evenodd"),c(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"),c(n,"clip-rule","evenodd"),c(o,"fill","#fff"),c(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"),c(l,"fill","#fff"),c(l,"fill-rule","evenodd"),c(l,"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"),c(l,"clip-rule","evenodd"),c(r,"fill","#fff"),c(r,"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"),c(a,"stroke","#000"),c(a,"stroke-linecap","round"),c(a,"stroke-linejoin","round"),c(a,"stroke-opacity",".12"),c(a,"stroke-width",".5"),c(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"),c(i,"filter","url(#a)"),c(f,"flood-opacity","0"),c(f,"result","BackgroundImageFix"),c(p,"in","SourceAlpha"),c(p,"result","hardAlpha"),c(p,"values","0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0"),c(w,"stdDeviation","2.5"),c(g,"values","0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.16 0"),c(C,"in2","BackgroundImageFix"),c(C,"result","effect1_dropShadow_618_12297"),c(b,"in","SourceGraphic"),c(b,"in2","effect1_dropShadow_618_12297"),c(b,"result","shape"),c(u,"id","a"),c(u,"width","75"),c(u,"height","44"),c(u,"x",".5"),c(u,"y",".5"),c(u,"color-interpolation-filters","sRGB"),c(u,"filterUnits","userSpaceOnUse"),ye(e,W)},m(B,O){S(B,e,O),y&&y.m(e,null),m(e,i),m(i,n),m(i,o),m(i,l),m(i,r),m(i,a),m(e,s),m(s,u),m(u,f),m(u,p),m(u,h),m(u,w),m(u,g),m(u,C),m(u,b),E=!0},p(B,[O]){y&&y.p&&(!E||O&2)&&Ae(y,v,B,B[1],E?Ee(v,B[1],O,null):Le(B[1]),null),ye(e,W=Be(P,[{xmlns:"http://www.w3.org/2000/svg"},{width:"76"},{height:"45"},{fill:"none"},{"data-testid":"video-360-icon"},{role:"img"},O&1&&B[0]]))},i(B){E||(d(y,B),E=!0)},o(B){_(y,B),E=!1},d(B){B&&k(e),y&&y.d(B)}}}function N_(t,e,i){let{$$slots:n={},$$scope:o}=e;return t.$$set=l=>{i(0,e=ue(ue({},e),ve(l))),"$$scope"in l&&i(1,o=l.$$scope)},e=ve(e),[e,o,n]}var Es=class extends H{constructor(e){super(),U(this,e,N_,D_,F,{})}},$l=Es;import{isNullable as kf,InterfaceLanguage as Sf}from"@vkontakte/videoplayer-shared";var O_={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"},yf=O_;var F_={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"},wf=F_;var to=new Map;to.set(Sf.EN,wf);to.set(Sf.RU,yf);var Cf=new Map,As=({language:t,pack:e,fallback:i})=>{if(to.has(t)){let n=to.get(t);to.set(t,{...n,...e})}else to.set(t,e);Cf.set(t,i)},Ls=t=>to.has(t),Ms=(t,e,i,n)=>{let l=to.get(t)?.[e];if(kf(l)){let r=Cf.get(t)??n;l=(r?to.get(r):void 0)?.[e]}return kf(l)?e+Object.values(i??{}).join(" "):i?l.replaceAll(/{(\w+?)}/g,(r,a)=>i[a]??""):l},N=(t,e)=>{let{interfaceLanguage$:i}=it(),n=Je(i),o=Bt();return Ms(n,t,e,o.defaultLanguage)};import"@vkontakte/videoplayer-core";var ol;(function(t){t.fatal="fatal",t.error="error",t.warning="warning",t.log="log",t.info="info",t.debug="debug",t.critical="critical"})(ol||(ol={}));var z_=/^\s*at (?:(.*?) ?\()?((?:file|https?|blob|chrome-extension|address|native|eval|webpack|<anonymous>|[-a-z]+:|.*bundle|\/).*?)(?::(\d+))?(?::(\d+))?\)?\s*$/i,H_=/^\s*(.*?)(?:\((.*?)\))?(?:^|@)?((?:file|https?|blob|chrome|webpack|resource|moz-extension).*?:\/.*?|\[native code\]|[^@]*(?:bundle|\d+\.js))(?::(\d+))?(?::(\d+))?\s*$/i,U_=/^\s*at (?:((?:\[object object\])?.+) )?\(?((?:file|ms-appx|https?|webpack|blob):.*?):(\d+)(?::(\d+))?\)?\s*$/i,er="?",K_="X-Sentry-Auth",W_=/^(?:(\w+):)\/\/(?:([\w-]+)(?::(\w+))?@)([\w.-]+)(?::(\d+))?\/(.+)/;function j_(t){if(!t.stack)return null;let e=[],i=t.stack.split(`
13
+ `),n,o;for(let l=0;l<i.length;++l){if(n=z_.exec(i[l]))o={filename:n[2]&&n[2].indexOf("address at ")===0?n[2].substr(11):n[2],function:n[1]||er,lineno:n[3]?+n[3]:null,colno:n[4]?+n[4]:null};else if(n=U_.exec(i[l]))o={filename:n[2],function:n[1]||er,lineno:+n[3],colno:n[4]?+n[4]:null};else if(n=H_.exec(i[l]))l===0&&!n[5]&&t.columnNumber!==void 0&&(e[0].column=t.columnNumber+1),o={filename:n[3],function:n[1]||er,lineno:n[4]?+n[4]:null,colno:n[5]?+n[5]:null};else continue;!o.function&&o.lineno&&(o.function=er),e.push(o)}return e.length?{value:Tf(t),type:t.name,stacktrace:{frames:e.reverse()}}:null}function Tf(t){return(t&&t.message||"No error message").split(`
14
+ `).filter(i=>!!i)[0]}function G_(t){try{let e=j_(t);if(e)return e}catch{}return{value:Tf(t),type:t&&t.name,stacktrace:{frames:[]}}}function Q_(){return"xxxxxxxxxxxx4xxxyxxxxxxxxxxxxxxx".replace(/[xy]/g,t=>{let e=Math.random()*16|0;return(t==="x"?e:e&3|8).toString(16)})}var tr=class{constructor(e){if(e&&e.dsn){let i=W_.exec(e.dsn),n=i?i.slice(1):[],o=n[5].split("/"),l=o.slice(0,-1).join("/");this.apiUrl=n[0]+"://"+n[3]+(n[4]?":"+n[4]:"")+(l?"/"+l:"")+"/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{...this.getRequestBlank(),exception:{values:[G_(e)]}}}report(e){this.send(this.prepare(e))}send(e){!this.apiUrl||!e||this.createRequest(e)}createRequest(e){let i=new XMLHttpRequest;i.open("POST",this.apiUrl,!0),i.setRequestHeader("Content-type","application/json"),i.setRequestHeader(K_,this.authHeader||""),i.send(JSON.stringify(e))}getRequestBlank(){return{platform:"javascript",event_id:Q_(),sdk:{name:"micro-sentry.javascript.core",version:"0.0.0"},timestamp:Date.now()/1e3,environment:this.environment}}};function Pf(t,e){return Object.prototype.toString.call(e)==="[object RegExp]"?e.test(t):typeof e=="string"?t.indexOf(e)!==-1:!1}function Y_(){return window}var ir=class t extends tr{constructor(e,i=Y_()){super(e),this.options=e,this.window=i,this.destroyed=!1,this._state={};let{plugins:n=[],beforeSend:o=u=>u,beforeBreadcrumb:l=u=>u,blacklistUrls:r=[],ignoreErrors:a=[],release:s=void 0}=this.options||{};this.plugins=n.map(u=>new u(this)),this.beforeSend=o,this.beforeBreadcrumb=l,this.blacklistUrls=r,this.ignoreErrors=a,this.release=s}get state(){return this._state}clearState(){this._state={}}setTags(e){return this.setKeyState("tags",{...e}),this}setTag(e,i){return this.extendState({tags:{[e]:i}}),this}setExtra(e,i){return this.extendState({extra:{[e]:i}}),this}setExtras(e){return this.setKeyState("extra",{...e}),this}setUser(e){return this.setKeyState("user",{...e}),this}clone(){let e=new t({...this.options,plugins:[]});return e.extendState(this.state),e}withScope(e){let i=this.clone();e(i),i.destroy(),this.setBreadcrumbs(void 0)}addBreadcrumb(e){this.extendState({breadcrumbs:[{timestamp:Date.now()/1e3,...this.beforeBreadcrumb(e)}]})}setBreadcrumbs(e){this.setKeyState("breadcrumbs",e)}captureMessage(e,i){this.send({...this.getRequestBlank(),message:e,level:i})}destroy(){this.destroyed=!0,this.plugins.forEach(e=>{e.destroy&&e.destroy()})}isIgnoredError(e){return this.ignoreErrors.length?this.getPossibleEventMessages(e).some(i=>this.ignoreErrors.some(n=>Pf(i,n))):!1}getRequestBlank(){return{request:{url:this.window.location.toString(),headers:{"User-Agent":this.window.navigator.userAgent}},...super.getRequestBlank(),sdk:{name:"micro-sentry.javascript.browser",version:"0.0.0"},...this.state}}send(e){this.destroyed||this.isDeniedUrl(e)||this.isIgnoredError(e)||(super.send(this.beforeSend({release:this.release,...e})),this.setBreadcrumbs(void 0))}getPossibleEventMessages(e){if(e.message)return[e.message];if(e.exception)try{let{type:i="",value:n=""}=e.exception.values&&e.exception.values[0]||{};return[`${n}`,`${i}: ${n}`]}catch{return[]}return[]}isDeniedUrl(e){if(!this.blacklistUrls.length)return!1;let i=this.getEventFilterUrl(e);return i?this.blacklistUrls.some(n=>Pf(i,n)):!1}getEventFilterUrl(e){try{if(e.exception){let i=e.exception.values&&e.exception.values[0].stacktrace&&e.exception.values[0].stacktrace.frames;return i&&i[i.length-1].filename||null}return null}catch{return null}}extendState(e){this._state=Object.keys(e).reduce((i,n)=>{let o=this._state[n],l=Array.isArray(o)?o:null,r=e[n],a=Array.isArray(r)?r:null;return{...i,[n]:l||a?[...l||[],...a||[]]:{...typeof o!="string"?o:{},...typeof r!="string"?r:{}}}},this._state)}setKeyState(e,i){this._state[e]=i}};import{isNonNullable as nr,Subscription as Z_}from"@vkontakte/videoplayer-shared";var or=null,Vo=class{constructor(e,i,n={}){!or&&e.dsn&&(this.sentryClient=new ir({dsn:e.dsn,environment:i.env}),this.version=i.version,this.sentrySubscription=new Z_,this.options=e,this.context=n,or=this)}destroy(){this.sentryClient?.destroy(),this.sentrySubscription?.unsubscribe(),or=null}logIError(e,i=!1){e.thrown&&this.report(e.thrown,{fatal:i,errorType:e.id,category:e.category},{message:e.message,errorData:e.data})}report(e,i={},n={}){let{sentryClient:o,context:l,options:r}=this,{sampleRate:a=0,whiteErrorIdList:s,whiteErrorCategoryList:u=[],blackErrorIdList:f,blackErrorCategoryList:p}=r,{errorType:h,category:w}=i;if(nr(w)&&p.includes(w)||nr(h)&&f.includes(h))return;if(Math.random()<=a||nr(w)&&u.includes(w)||nr(h)&&s.includes(h)){Object.keys(i).length&&o.setTags({version:this.version,...i}),(Object.keys(l).length||Object.keys(n).length)&&o.setExtras({...l,...n});try{h&&o.captureMessage(h,i.fatal?ol.fatal:ol.error),o.report(e)}catch(C){console.error(C)}}}static getInstance(){return or}};var lr=t=>{if(t.requestFullscreen)return t.requestFullscreen();if(t.msRequestFullscreen)return t.msRequestFullscreen();if(t.webkitRequestFullscreen)return t.webkitRequestFullscreen();if(t.mozRequestFullScreen)return t.mozRequestFullScreen();let e=t.querySelector("video");return e?.webkitEnterFullscreen?e.webkitEnterFullscreen():Promise.reject()},rr=t=>t.exitFullscreen?t.exitFullscreen():t.msExitFullscreen?t.msExitFullscreen():t.webkitExitFullscreen?t.webkitExitFullscreen():t.mozCancelFullScreen?t.mozCancelFullScreen():Promise.reject(),If=t=>{let e=t;return e?.webkitExitFullscreen?e?.webkitExitFullscreen():Promise.reject()},Al=()=>{let t=document;return t.fullscreenElement||t.mozFullScreenElement||t.webkitFullscreenElement||t.msFullscreenElement},fo=()=>!!Al(),sr=t=>{document.addEventListener("fullscreenchange",t),document.addEventListener("webkitfullscreenchange",t),document.addEventListener("mozfullscreenchange",t),document.addEventListener("MSFullscreenChange",t)},ar=t=>{document.removeEventListener("fullscreenchange",t),document.removeEventListener("webkitfullscreenchange",t),document.removeEventListener("mozfullscreenchange",t),document.removeEventListener("MSFullscreenChange",t)},Ef=t=>{let e=window.screen;return(async o=>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")(t))};import{clientChecker as Af}from"@vkontakte/videoplayer-shared";var Lf=()=>({title:N("hotkey_map_modal_title"),closeBtnText:N("hotkey_map_modal_close_btn_text"),groups:[{title:N("hotkey_map_group_title_common"),items:[{description:N("hotkey_map_item_mute_description"),value:N("hotkey_map_item_mute_value")},{description:N("hotkey_map_item_volume_up_description"),value:N("hotkey_map_item_volume_up_value")},{description:N("hotkey_map_item_volume_down_description"),value:N("hotkey_map_item_volume_down_value")},{description:N("hotkey_map_item_pip_description"),value:N("hotkey_map_item_pip_value")},{description:N("hotkey_map_item_full_screen_description"),value:N("hotkey_map_item_full_screen_value")},{description:N("hotkey_map_item_show_context_menu_description"),value:N("hotkey_map_item_show_context_menu_value")},{description:N("hotkey_map_item_show_hotkey_map_description"),value:N("hotkey_map_item_show_hotkey_map_value")}]},{title:N("hotkey_map_group_title_playback"),items:[{description:N("hotkey_map_item_play_toggle_description"),value:N("hotkey_map_item_play_toggle_value")},{description:N("hotkey_map_item_seek_backward_description"),value:N("hotkey_map_item_seek_backward_value")},{description:N("hotkey_map_item_seek_forward_description"),value:N("hotkey_map_item_seek_forward_value")},{description:N("hotkey_map_item_fast_seek_backward_description"),value:N("hotkey_map_item_fast_seek_backward_value")},{description:N("hotkey_map_item_fast_seek_forward_description"),value:N("hotkey_map_item_fast_seek_forward_value")},{description:N("hotkey_map_item_rate_down_description"),value:N("hotkey_map_item_rate_down_value")},{description:N("hotkey_map_item_rate_up_description"),value:N("hotkey_map_item_rate_up_value")},{description:N("hotkey_map_item_prev_frame_description"),value:N("hotkey_map_item_prev_frame_value")},{description:N("hotkey_map_item_next_frame_description"),value:N("hotkey_map_item_next_frame_value")},{description:N("hotkey_map_item_jump_seek_description"),value:N("hotkey_map_item_jump_seek_value")}]},{title:N("hotkey_map_group_title_subtitles"),items:[{description:N("hotkey_map_item_subtitles_toggle_description"),value:N("hotkey_map_item_subtitles_toggle_value")}]},{title:N("hotkey_map_group_title_episodes"),items:[{description:N("hotkey_map_item_prev_episode_description"),value:Af.isApple?N("hotkey_map_item_prev_episode_mac_value"):N("hotkey_map_item_prev_episode_pc_value")},{description:N("hotkey_map_item_next_episode_description"),value:Af.isApple?N("hotkey_map_item_next_episode_mac_value"):N("hotkey_map_item_next_episode_pc_value")}]}]});import{debounceFn as X_,clientChecker as J_,ValueSubject as x_}from"@vkontakte/videoplayer-shared";var Ro=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:X_(this.onResize.bind(this),300)};this.info={isActive$:new x_(this.isActive()),type:0}}isSupported(){return document.pictureInPictureEnabled&&!J_.isYandex}isActive(){return this.isSupported()&&!!document.pictureInPictureElement}setContext(e){this.svelteContext=e}async revealPictureInPicture(){this.isRequested&&(this.unregistryEventHandlers(),await this.request(),this.registryEventHandlers())}async request(){if(!(!this.isSupported()||this.isActive()))try{await this.videoElement?.requestPictureInPicture()}catch{this.isRequested=!1}}async remove(){!this.isSupported()||!this.isActive()||await document.exitPictureInPicture()}assignPlayerContainer(e){this.isSupported()&&(this.playerContainer=e)}updateVideoElement(){this.isSupported()&&(this.videoElement=this.playerContainer?.querySelector("video"))}registryEventHandlers(){this.videoElement?.addEventListener("enterpictureinpicture",this.eventHandlers.enterpictureinpicture),this.videoElement?.addEventListener("leavepictureinpicture",this.eventHandlers.leavepictureinpicture)}registryExternalEventHandlers(e){this.externalEventHandlers={...e}}unregistryEventHandlers(){this.videoElement?.removeEventListener("enterpictureinpicture",this.eventHandlers.enterpictureinpicture),this.videoElement?.removeEventListener("leavepictureinpicture",this.eventHandlers.leavepictureinpicture)}async dispose(){this.unregistryEventHandlers(),await this.remove()}onEnterPictureInPicture(e){let n=e.pictureInPictureWindow;n&&(this.info.isActive$.next(!0),this.isRequested=!0,n.addEventListener("resize",this.eventHandlers.resize),this.externalEventHandlers.enterpictureinpicture?.(e))}onLeavePictureInPicture(e){let n=e.pictureInPictureWindow;this.info.isActive$.next(!1),this.isRequested=!1,n?.removeEventListener("resize",this.eventHandlers.resize),this.externalEventHandlers.leavepictureinpicture?.(e),this.playerDummyElement?.$destroy()}onResize(e){this.externalEventHandlers.resize?.(e)}};function Bo(t){return t instanceof Ro}function $_(t){let e=it();return It(()=>{e.getAdmanWrapper().startPostroll()}),[]}var Bs=class extends H{constructor(e){super(),U(this,e,$_,null,F,{})}},Mf=Bs;import{noop as eh}from"@vkontakte/videoplayer-shared";function th(t){Te(t,"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 ih(t){let e=N("skip_ads_after",{time:Math.ceil(t[1]-t[0]).toFixed(0)})+"",i;return{c(){i=Re(e)},m(n,o){S(n,i,o)},p(n,o){o&3&&e!==(e=N("skip_ads_after",{time:Math.ceil(n[1]-n[0]).toFixed(0)})+"")&&Ge(i,e)},d(n){n&&k(i)}}}function nh(t){let e,i=N("skip_ads_now")+"",n,o,l,r,a,s;return{c(){e=T("div"),n=Re(i),o=M(),l=R("svg"),r=R("path"),c(r,"fill-rule","evenodd"),c(r,"clip-rule","evenodd"),c(r,"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"),c(l,"class","icon svelte-1k4i25s"),c(l,"width","7"),c(l,"height","12"),c(l,"viewBox","0 0 7 12"),c(l,"fill","none"),c(l,"xmlns","http://www.w3.org/2000/svg"),c(e,"class","skip svelte-1k4i25s")},m(u,f){S(u,e,f),m(e,n),m(e,o),m(e,l),m(l,r),a||(s=_e(e,"click",ot(function(){Ii(t[2])&&t[2].apply(this,arguments)})),a=!0)},p(u,f){t=u},d(u){u&&k(e),a=!1,s()}}}function oh(t){let e;function i(l,r){return l[3]?nh:ih}let n=i(t,-1),o=n(t);return{c(){e=T("div"),o.c(),c(e,"class","container svelte-1k4i25s"),q(e,"container-mobile",t[4]),q(e,"skippable",t[3])},m(l,r){S(l,e,r),o.m(e,null)},p(l,[r]){n===(n=i(l,r))&&o?o.p(l,r):(o.d(1),o=n(l),o&&(o.c(),o.m(e,null))),r&16&&q(e,"container-mobile",l[4]),r&8&&q(e,"skippable",l[3])},i:Ce,o:Ce,d(l){l&&k(e),o.d()}}}function lh(t,e,i){let n,{position:o=0}=e,{secondsToWatchBeforeSkip:l=0}=e,{skipAd:r=eh}=e,s=it().ui.isMobile;D(t,s,f=>i(4,n=f));let u;return t.$$set=f=>{"position"in f&&i(0,o=f.position),"secondsToWatchBeforeSkip"in f&&i(1,l=f.secondsToWatchBeforeSkip),"skipAd"in f&&i(2,r=f.skipAd)},t.$$.update=()=>{t.$$.dirty&3&&i(3,u=o>0&&o>=l)},[o,l,r,u,n,s]}var qs=class extends H{constructor(e){super(),U(this,e,lh,oh,F,{position:0,secondsToWatchBeforeSkip:1,skipAd:2},th)}},Vf=qs;function rh(t){Te(t,"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 sh(t){let e;return{c(){e=T("button"),e.textContent=`${N("visit_advertiser")}`,c(e,"class","svelte-1wy3dql")},m(i,n){S(i,e,n)},p:Ce,i:Ce,o:Ce,d(i){i&&k(e)}}}var Ds=class extends H{constructor(e){super(),U(this,e,null,sh,F,{},rh)}},Rf=Ds;function ah(t){Te(t,"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 @@ function Ce(){}function ue(t,e){for(let i in e)t[i]=e[i];return t}function ps(t)
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 Rf(t){let e;return{c(){e=P("div"),c(e,"class","top-gradient-mobile svelte-354ajf")},m(i,n){S(i,e,n)},d(i){i&&k(e)}}}function Bf(t){let e,i;return e=new Mf({props:{position:t[5],secondsToWatchBeforeSkip:t[6],skipAd:t[8].actions.internal.skipAd}}),{c(){M(e.$$.fragment)},m(n,o){A(e,n,o),i=!0},p(n,o){let l={};o&32&&(l.position=n[5]),o&64&&(l.secondsToWatchBeforeSkip=n[6]),e.$set(l)},i(n){i||(d(e.$$.fragment,n),i=!0)},o(n){_(e.$$.fragment,n),i=!1},d(n){L(e,n)}}}function qf(t){let e,i;return e=new Lf({}),{c(){M(e.$$.fragment)},m(n,o){A(e,n,o),i=!0},i(n){i||(d(e.$$.fragment,n),i=!0)},o(n){_(e.$$.fragment,n),i=!1},d(n){L(e,n)}}}function Df(t){let e,i;return e=new Vf({}),{c(){M(e.$$.fragment)},m(n,o){A(e,n,o),i=!0},i(n){i||(d(e.$$.fragment,n),i=!0)},o(n){_(e.$$.fragment,n),i=!1},d(n){L(e,n)}}}function uh(t){let e,i,n,o,l,r,a,s=t[0]&&Rf(t),u=t[3]&&Bf(t),f=t[7]&&qf(t),p=t[4]&&Df(t);return{c(){e=P("div"),s&&s.c(),i=V(),n=P("video"),o=V(),u&&u.c(),l=V(),f&&f.c(),r=V(),p&&p.c(),hi(n,"width","100%"),hi(n,"height","100%"),n.playsInline=!0,c(e,"class","container svelte-354ajf")},m(h,w){S(h,e,w),s&&s.m(e,null),m(e,i),m(e,n),t[19](n),m(e,o),u&&u.m(e,null),m(e,l),f&&f.m(e,null),m(e,r),p&&p.m(e,null),t[20](e),a=!0},p(h,[w]){h[0]?s||(s=Rf(h),s.c(),s.m(e,i)):s&&(s.d(1),s=null),h[3]?u?(u.p(h,w),w&8&&d(u,1)):(u=Bf(h),u.c(),d(u,1),u.m(e,l)):u&&(me(),_(u,1,1,()=>{u=null}),pe()),h[7]?f?w&128&&d(f,1):(f=qf(h),f.c(),d(f,1),f.m(e,r)):f&&(me(),_(f,1,1,()=>{f=null}),pe()),h[4]?p?w&16&&d(p,1):(p=Df(h),p.c(),d(p,1),p.m(e,null)):p&&(me(),_(p,1,1,()=>{p=null}),pe())},i(h){a||(d(u),d(f),d(p),a=!0)},o(h){_(u),_(f),_(p),a=!1},d(h){h&&k(e),s&&s.d(),t[19](null),u&&u.d(),f&&f.d(),p&&p.d(),t[20](null)}}}function ch(t,e,i){let n,o,l,r,a,{adsSlotId:s=void 0}=e,{adsParams:u=void 0}=e,{adsPreviewParam:f=void 0}=e,{duration:p=0}=e,h=it(),w=h.state.isEnded$;D(t,w,j=>i(7,a=j));let g=h.ui.isMobile;D(t,g,j=>i(0,o=j));let C,b,E=!1,v=h.ads.playbackState;D(t,v,j=>i(18,n=j));let y=h.ads.canSkip,T=h.ads.position;D(t,T,j=>i(5,l=j));let Y=h.ads.secondsToWatchBeforeSkip;D(t,Y,j=>i(6,r=j));let q,N;It(()=>{let j=h.getAdmanWrapper();if(!s){j.onAdmanLoadingError();return}let X=new AbortController,ae=()=>{X.abort()},{width:K,height:z}=Je(h.ui.playerSize),G=Je(h.ui.isFullscreen),$=Je(h.ui.isAutoplay),W={width:K,height:z,isFullscreen:G,isAutoplay:$,adsContainer:C,adsVideoElement:b,slotId:s,params:u,previewParam:f,duration:p};return window.AdmanHTML?(j.initAdman(W),E=!0):j.loadAdman(X.signal).then(()=>{j.initAdman(W),E=!0}).catch(()=>{j.onAdmanLoadingError()}),()=>{!E&&ae()}});function ne(j){be[j?"unshift":"push"](()=>{b=j,i(2,b)})}function ge(j){be[j?"unshift":"push"](()=>{C=j,i(1,C)})}return t.$$set=j=>{"adsSlotId"in j&&i(14,s=j.adsSlotId),"adsParams"in j&&i(15,u=j.adsParams),"adsPreviewParam"in j&&i(16,f=j.adsPreviewParam),"duration"in j&&i(17,p=j.duration)},t.$$.update=()=>{t.$$.dirty&262144&&i(3,q=y&&n!=="inactive"),t.$$.dirty&262145&&i(4,N=o&&n!=="inactive")},[o,C,b,q,N,l,r,a,h,w,g,v,T,Y,s,u,f,p,n,ne,ge]}var Ns=class extends H{constructor(e){super(),U(this,e,ch,uh,F,{adsSlotId:14,adsParams:15,adsPreviewParam:16,duration:17},ah)}},ur=Ns;var Tn=t=>{if(!isFinite(t))return"00:00";let e=Math.round(t),i=Math.floor(e/(60*60));e-=i*3600;let n=Math.floor(e/60);return e-=n*60,(i>0?[i,n,e]:[n,e]).map(l=>l>9?String(l):`0${l}`).join(":")};function fh(t){let e,i,n,o,l=t[2].default,r=Ie(l,t,t[1],null),a=[{xmlns:"http://www.w3.org/2000/svg"},{width:"42"},{height:"20"},{"aria-hidden":"true"},{"data-testid":"live-icon"},{role:"img"},t[0]],s={};for(let u=0;u<a.length;u+=1)s=ue(s,a[u]);return{c(){e=R("svg"),r&&r.c(),i=R("path"),n=R("path"),c(i,"fill","none"),c(i,"stroke","#fff"),c(i,"stroke-width","2"),c(i,"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"),c(n,"fill","#f0f2f5"),c(n,"fill-rule","evenodd"),c(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"),ye(e,s)},m(u,f){S(u,e,f),r&&r.m(e,null),m(e,i),m(e,n),o=!0},p(u,[f]){r&&r.p&&(!o||f&2)&&Ae(r,l,u,u[1],o?Ee(l,u[1],f,null):Le(u[1]),null),ye(e,s=Be(a,[{xmlns:"http://www.w3.org/2000/svg"},{width:"42"},{height:"20"},{"aria-hidden":"true"},{"data-testid":"live-icon"},{role:"img"},f&1&&u[0]]))},i(u){o||(d(r,u),o=!0)},o(u){_(r,u),o=!1},d(u){u&&k(e),r&&r.d(u)}}}function dh(t,e,i){let{$$slots:n={},$$scope:o}=e;return t.$$set=l=>{i(0,e=ue(ue({},e),ve(l))),"$$scope"in l&&i(1,o=l.$$scope)},e=ve(e),[e,o,n]}var Os=class extends H{constructor(e){super(),U(this,e,dh,fh,F,{})}},Nf=Os;function mh(t){let e,i,n,o,l=t[2].default,r=Ie(l,t,t[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"},t[0]],s={};for(let u=0;u<a.length;u+=1)s=ue(s,a[u]);return{c(){e=R("svg"),r&&r.c(),i=R("rect"),n=R("path"),c(i,"width","42"),c(i,"height","20"),c(i,"fill","#FF3347"),c(i,"rx","5"),c(n,"fill","#F2F3F5"),c(n,"fill-rule","evenodd"),c(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"),c(n,"clip-rule","evenodd"),ye(e,s)},m(u,f){S(u,e,f),r&&r.m(e,null),m(e,i),m(e,n),o=!0},p(u,[f]){r&&r.p&&(!o||f&2)&&Ae(r,l,u,u[1],o?Ee(l,u[1],f,null):Le(u[1]),null),ye(e,s=Be(a,[{xmlns:"http://www.w3.org/2000/svg"},{width:"42"},{height:"20"},{fill:"none"},{"aria-hidden":"true"},{"data-testid":"live-active-icon"},{role:"img"},f&1&&u[0]]))},i(u){o||(d(r,u),o=!0)},o(u){_(r,u),o=!1},d(u){u&&k(e),r&&r.d(u)}}}function ph(t,e,i){let{$$slots:n={},$$scope:o}=e;return t.$$set=l=>{i(0,e=ue(ue({},e),ve(l))),"$$scope"in l&&i(1,o=l.$$scope)},e=ve(e),[e,o,n]}var Fs=class extends H{constructor(e){super(),U(this,e,ph,mh,F,{})}},Of=Fs;function _h(t){let e,i;return e=new Nf({}),{c(){M(e.$$.fragment)},m(n,o){A(e,n,o),i=!0},i(n){i||(d(e.$$.fragment,n),i=!0)},o(n){_(e.$$.fragment,n),i=!1},d(n){L(e,n)}}}function hh(t){let e,i;return e=new Of({}),{c(){M(e.$$.fragment)},m(n,o){A(e,n,o),i=!0},i(n){i||(d(e.$$.fragment,n),i=!0)},o(n){_(e.$$.fragment,n),i=!1},d(n){L(e,n)}}}function gh(t){let e,i,n,o,l=[hh,_h],r=[];function a(s,u){return s[0]?0:1}return e=a(t,-1),i=r[e]=l[e](t),{c(){i.c(),n=ct()},m(s,u){r[e].m(s,u),S(s,n,u),o=!0},p(s,[u]){let f=e;e=a(s,u),e!==f&&(me(),_(r[f],1,1,()=>{r[f]=null}),pe(),i=r[e],i||(i=r[e]=l[e](s),i.c()),d(i,1),i.m(n.parentNode,n))},i(s){o||(d(i),o=!0)},o(s){_(i),o=!1},d(s){s&&k(n),r[e].d(s)}}}function bh(t,e,i){let{isActive:n=!1}=e;return t.$$set=o=>{"isActive"in o&&i(0,n=o.isActive)},[n]}var zs=class extends H{constructor(e){super(),U(this,e,bh,gh,F,{isActive:0})}},cr=zs;function vh(t){Pe(t,"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 yh(t){let e=Tn(t[4]-t[3])+"",i;return{c(){i=Re(e)},m(n,o){S(n,i,o)},p(n,o){o&24&&e!==(e=Tn(n[4]-n[3])+"")&&Ge(i,e)},i:Ce,o:Ce,d(n){n&&k(i)}}}function wh(t){let e,i,n;return i=new cr({props:{isActive:!0}}),{c(){e=P("div"),M(i.$$.fragment),c(e,"class","thumb-timer-live-icon svelte-i7xnqb")},m(o,l){S(o,e,l),A(i,e,null),n=!0},p:Ce,i(o){n||(d(i.$$.fragment,o),n=!0)},o(o){_(i.$$.fragment,o),n=!1},d(o){o&&k(e),L(i)}}}function kh(t){let e,i,n,o,l,r,a,s=[wh,yh],u=[];function f(p,h){return p[1]?0:1}return l=f(t,-1),r=u[l]=s[l](t),{c(){e=P("div"),i=P("div"),i.innerHTML='<div class="col svelte-i7xnqb"></div> <div class="col svelte-i7xnqb"></div> <div class="col svelte-i7xnqb"></div>',n=V(),o=P("span"),r.c(),c(i,"class","thumb-timer-equalizer svelte-i7xnqb"),c(o,"class","thumb-timer-text svelte-i7xnqb"),c(e,"role","timer"),c(e,"class","thumb-timer svelte-i7xnqb"),c(e,"data-testid","thumb-timer"),B(e,"live",t[1]),B(e,"hidden",t[0]),B(e,"playing",t[2])},m(p,h){S(p,e,h),m(e,i),m(e,n),m(e,o),u[l].m(o,null),a=!0},p(p,[h]){let w=l;l=f(p,h),l===w?u[l].p(p,h):(me(),_(u[w],1,1,()=>{u[w]=null}),pe(),r=u[l],r?r.p(p,h):(r=u[l]=s[l](p),r.c()),d(r,1),r.m(o,null)),(!a||h&2)&&B(e,"live",p[1]),(!a||h&1)&&B(e,"hidden",p[0]),(!a||h&4)&&B(e,"playing",p[2])},i(p){a||(d(r),a=!0)},o(p){_(r),a=!1},d(p){p&&k(e),u[l].d()}}}function Sh(t,e,i){let{isHidden:n=!1}=e,{isLive:o=!1}=e,{isPlaying:l=!1}=e,{position:r}=e,{duration:a}=e;return t.$$set=s=>{"isHidden"in s&&i(0,n=s.isHidden),"isLive"in s&&i(1,o=s.isLive),"isPlaying"in s&&i(2,l=s.isPlaying),"position"in s&&i(3,r=s.position),"duration"in s&&i(4,a=s.duration)},[n,o,l,r,a]}var Hs=class extends H{constructor(e){super(),U(this,e,Sh,kh,F,{isHidden:0,isLive:1,isPlaying:2,position:3,duration:4},vh)}},fr=Hs;var ol=t=>{if(document.queryCommandSupported&&document.queryCommandSupported("copy")){let e=document.createElement("textarea");e.textContent=t,e.style.position="absolute",e.style.top="-9999px",document.body.appendChild(e),e.select();try{document.execCommand("copy")}finally{document.body.removeChild(e)}}};import{ChromecastState as Gf}from"@vkontakte/videoplayer-core";import{clientChecker as Ff}from"@vkontakte/videoplayer-shared";var qo=t=>{t.stopPropagation(),t.preventDefault()},Ph=t=>{let e=t.previousElementSibling;e||(e=t.parentNode?.lastElementChild),e?.focus()},Th=t=>{let e=t.nextElementSibling;e||(e=t.parentNode?.firstElementChild),e?.focus()},Ih=t=>{let e=t.code;return e==="Tab"&&!t.shiftKey||e==="ArrowDown"},Eh=t=>{let e=t.code;return e==="Tab"||e==="ArrowUp"},zf=t=>t.code==="Escape",Ah=t=>t.code==="ArrowLeft",Hf=(t,e=!0)=>{let i=t.code;return["Enter","Space"].includes(i)||!e&&i==="ArrowRight"},Uf=t=>{if(Ih(t)){qo(t),Th(t.target);return}Eh(t)&&(qo(t),Ph(t.target))},rl=t=>!Ff.isAndroid&&t?.detail===0||Ff.isAndroid&&t?.pointerType==="",sl=async(t,e,i)=>{await Un(),t&&!t.classList.contains("opened")&&!e&&Je(i)&&(await Un(),i.set(!1),t.focus())},Wf=async(t,e,i)=>{await Un(),t&&!e&&Je(i)&&(i.set(!1),t.focus())},Do=async(t,e,i)=>{await Un(),!!t&&e&&i&&t.children[0]?.focus()},al=async(t,e,i)=>{!!t&&i&&(e.set(!1),setTimeout(()=>{t.focus()},100))},dr=(t,e)=>{Uf(t),zf(t)&&(qo(t),e())},ul=async(t,e,i)=>{Hf(t,!1)&&(qo(t),e(),await Un(),i()?.focus())},cl=async(t,e,i,n)=>{if(Uf(t),Ah(t)){qo(t),e(),i.set(!0);return}zf(t)&&(qo(t),n())},si=(t,e)=>{Hf(t)&&(qo(t),e())},Kf=t=>{let e=t.getBoundingClientRect(),i=-14,n=e.left+e.width,o=e.top+i;return{right:n,bottom:o}},jf=t=>{if(!t)return{top:0,left:0};let e=t.getBoundingClientRect(),i=-58,n=8,o=e.left+n;return{bottom:e.bottom+i,left:o}};import{isNullable as mr}from"@vkontakte/videoplayer-shared";function Lh(t){Pe(t,"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 Qf(t){let e,i,n,o,l,r,a,s,u,f,p=(t[10].features.saveDebugInfoToFile?O("menu_save_debug"):O("menu_copy_debug"))+"",h,w,g,C,b,E=O("menu_debug_overlay")+"",v,y,T,Y,q=t[10].features.copyVideoLink&&t[9].callbacks?.onCopyVideoLink&&Mh(t),N=t[19]&&Vh(t),ne=t[12]&&t[6]!==Gf.CONNECTED&&!t[17]&&Zf(t);function ge(G,$){return G[4]?Bh:Rh}let j=ge(t,[-1,-1]),X=j(t),ae=t[10].features.videoRotate&&!t[17]&&qh(t),K=t[10].showSupport&&!t[7]&&Xf(t),z=t[10].features.saveTraceInfoToFile&&Dh(t);return{c(){e=P("ul"),q&&q.c(),i=V(),N&&N.c(),n=V(),ne&&ne.c(),o=V(),l=P("li"),X.c(),a=V(),ae&&ae.c(),s=V(),K&&K.c(),u=V(),f=P("li"),h=Re(p),g=V(),z&&z.c(),C=V(),b=P("li"),v=Re(E),c(l,"tabindex","0"),c(l,"role","menuitem"),c(l,"aria-label",r=O("aria_label_menu_loop")),c(l,"class","svelte-1vzqlps"),c(f,"tabindex","0"),c(f,"role","menuitem"),c(f,"aria-label",w=t[10].features.saveDebugInfoToFile?O("menu_save_debug"):O("menu_copy_debug")),c(f,"class","svelte-1vzqlps"),c(b,"tabindex","0"),c(b,"role","menuitem"),c(b,"aria-label",y=t[8]?O("aria_label_menu_debug_overlay_disable"):O("aria_label_menu_debug_overlay_enable")),c(b,"class","svelte-1vzqlps"),c(e,"role","menu"),hi(e,"top",t[3]+"px"),hi(e,"left",t[2]+"px"),c(e,"class","svelte-1vzqlps")},m(G,$){S(G,e,$),q&&q.m(e,null),m(e,i),N&&N.m(e,null),m(e,n),ne&&ne.m(e,null),m(e,o),m(e,l),X.m(l,null),m(e,a),ae&&ae.m(e,null),m(e,s),K&&K.m(e,null),m(e,u),m(e,f),m(f,h),m(e,g),z&&z.m(e,null),m(e,C),m(e,b),m(b,v),t[48](e),T||(Y=[he(l,"click",st(t[26])),he(l,"keydown",t[39]),he(f,"click",st(t[22])),he(f,"keydown",t[35]),he(b,"click",st(t[24])),he(b,"keydown",t[37]),he(e,"contextmenu",Wt(t[45])),he(e,"keydown",t[29])],T=!0)},p(G,$){G[10].features.copyVideoLink&&G[9].callbacks?.onCopyVideoLink&&q.p(G,$),G[19]&&N.p(G,$),G[12]&&G[6]!==Gf.CONNECTED&&!G[17]?ne?ne.p(G,$):(ne=Zf(G),ne.c(),ne.m(e,o)):ne&&(ne.d(1),ne=null),j!==(j=ge(G,$))&&(X.d(1),X=j(G),X&&(X.c(),X.m(l,null))),G[10].features.videoRotate&&!G[17]&&ae.p(G,$),G[10].showSupport&&!G[7]?K?K.p(G,$):(K=Xf(G),K.c(),K.m(e,u)):K&&(K.d(1),K=null),G[10].features.saveTraceInfoToFile&&z.p(G,$),$[0]&256&&y!==(y=G[8]?O("aria_label_menu_debug_overlay_disable"):O("aria_label_menu_debug_overlay_enable"))&&c(b,"aria-label",y),$[0]&8&&hi(e,"top",G[3]+"px"),$[0]&4&&hi(e,"left",G[2]+"px")},d(G){G&&k(e),q&&q.d(),N&&N.d(),ne&&ne.d(),X.d(),ae&&ae.d(),K&&K.d(),z&&z.d(),t[48](null),T=!1,tt(Y)}}}function Mh(t){let e,i,n,o,l,r,a=!t[5]&&!t[17]&&Yf(t);return{c(){e=P("li"),e.textContent=`${O("menu_copy_video_link")}`,n=V(),a&&a.c(),o=ct(),c(e,"tabindex","0"),c(e,"role","menuitem"),c(e,"aria-label",i=O("menu_copy_video_link")),c(e,"class","svelte-1vzqlps")},m(s,u){S(s,e,u),S(s,n,u),a&&a.m(s,u),S(s,o,u),l||(r=[he(e,"click",st(t[46])),he(e,"keydown",t[30])],l=!0)},p(s,u){!s[5]&&!s[17]?a?a.p(s,u):(a=Yf(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),l=!1,tt(r)}}}function Yf(t){let e,i,n,o;return{c(){e=P("li"),e.textContent=`${O("menu_copy_video_link_with_timestamp")}`,c(e,"tabindex","0"),c(e,"role","menuitem"),c(e,"aria-label",i=O("menu_copy_video_link_with_timestamp")),c(e,"class","svelte-1vzqlps")},m(l,r){S(l,e,r),n||(o=[he(e,"click",st(t[47])),he(e,"keydown",t[31])],n=!0)},p:Ce,d(l){l&&k(e),n=!1,tt(o)}}}function Vh(t){let e,i,n,o;return{c(){e=P("li"),e.textContent=`${O("menu_copy_embed_code")}`,c(e,"tabindex","0"),c(e,"role","menuitem"),c(e,"aria-label",i=O("menu_copy_embed_code")),c(e,"class","svelte-1vzqlps")},m(l,r){S(l,e,r),n||(o=[he(e,"click",st(t[27])),he(e,"keydown",t[38])],n=!0)},p:Ce,d(l){l&&k(e),n=!1,tt(o)}}}function Zf(t){let e,i,n,o;return{c(){e=P("li"),e.textContent=`${O("menu_pip")}`,c(e,"tabindex","0"),c(e,"role","menuitem"),c(e,"aria-label",i=O("menu_pip")),c(e,"class","svelte-1vzqlps")},m(l,r){S(l,e,r),n||(o=[he(e,"click",st(t[25])),he(e,"keydown",t[32])],n=!0)},p:Ce,d(l){l&&k(e),n=!1,tt(o)}}}function Rh(t){let e=O("menu_video_loop_on")+"",i;return{c(){i=Re(e)},m(n,o){S(n,i,o)},d(n){n&&k(i)}}}function Bh(t){let e=O("menu_video_loop_off")+"",i;return{c(){i=Re(e)},m(n,o){S(n,i,o)},d(n){n&&k(i)}}}function qh(t){let e,i,n,o;return{c(){e=P("li"),e.textContent=`${O("menu_video_rotate")}`,c(e,"tabindex","0"),c(e,"role","menuitem"),c(e,"aria-label",i=O("aria_label_menu_rotate")),c(e,"class","svelte-1vzqlps")},m(l,r){S(l,e,r),n||(o=[he(e,"click",st(t[20])),he(e,"keydown",t[33])],n=!0)},p:Ce,d(l){l&&k(e),n=!1,tt(o)}}}function Xf(t){let e,i,n,o;return{c(){e=P("li"),e.textContent=`${O("menu_report")}`,c(e,"tabindex","0"),c(e,"role","menuitem"),c(e,"aria-label",i=`${O("menu_report")}. ${O("aria_label_new_tab_alert")}`),c(e,"class","svelte-1vzqlps")},m(l,r){S(l,e,r),n||(o=[he(e,"click",st(t[21])),he(e,"keydown",t[34])],n=!0)},p:Ce,d(l){l&&k(e),n=!1,tt(o)}}}function Dh(t){let e,i,n,o;return{c(){e=P("li"),e.textContent=`${O("menu_save_debug")}`,c(e,"tabindex","0"),c(e,"role","menuitem"),c(e,"aria-label",i=O("menu_save_debug")),c(e,"class","svelte-1vzqlps")},m(l,r){S(l,e,r),n||(o=[he(e,"click",st(t[23])),he(e,"keydown",t[36])],n=!0)},p:Ce,d(l){l&&k(e),n=!1,tt(o)}}}function Nh(t){let e,i=t[1]&&Qf(t);return{c(){i&&i.c(),e=ct()},m(n,o){i&&i.m(n,o),S(n,e,o)},p(n,o){n[1]?i?i.p(n,o):(i=Qf(n),i.c(),i.m(e.parentNode,e)):i&&(i.d(1),i=null)},i:Ce,o:Ce,d(n){n&&k(e),i&&i.d(n)}}}function Oh(t,e,i){let n,o,l,r,a,s,{visible:u=!1}=e,{supportLink:f}=e,{position:p={top:0,left:0}}=e,{playerContainerRef:h=void 0}=e,{controlsContainerRef:w=void 0}=e,{menuElementRef:g=void 0}=e,{returnFocus:C}=e,b=0,E=0,v=it(),y=Bt(),T=v.ui.contextMenu.visible$,Y=v.ui.debugPanelVisible;D(t,Y,se=>i(8,s=se));let q=v.webApi.pictureInPictureApi,N=v.webApi.pictureInPictureApi?.info.isActive$;D(t,N,se=>i(7,a=se));let ne=v.actions.internal.togglePictureInPicture,ge=v.state.chromecastState$;D(t,ge,se=>i(6,r=se));let j=v.state.isLive$;D(t,j,se=>i(5,l=se));let X=v.state.positionExact$;D(t,X,se=>i(49,n=se));let ae=v.state.isInteractive,K=v.state.looped$;D(t,K,se=>i(4,o=se));let z=!!v.callbacks?.onCopyEmbedCodeClicked,G=()=>{T.set(!1)},$=(se,nt)=>{if(!g||!h||!w)return;let de=g.getBoundingClientRect(),ot=h.getBoundingClientRect();i(2,b=se-ot.left),i(3,E=nt-ot.top),b+de.width>ot.width&&i(2,b=ot.width-de.width),E+de.height>ot.height&&i(3,E=ot.height-de.height),i(2,b=Math.max(b,0)),i(3,E=Math.max(E,0))},W=()=>{G(),v.actions.internal.videoRotate()},Q=()=>{window.open(f,"_blank"),G(),v.actions.internal.pause()},te=()=>{let se=v.actions.internal.getDebugTextData();if(y.features.saveDebugInfoToFile){let nt=new Blob([...se],{type:"plain/text"}),de=window.URL.createObjectURL(nt);El(de,"vk_player_debug_info","txt")}else ol(v.actions.internal.getDebugTextData());G(),C?.()},re=()=>{let se=v.actions.internal.getTraceTextData(),nt=new Blob([...se],{type:"application/json"}),de=window.URL.createObjectURL(nt);El(de,"vk_player_trace_info","json"),G(),C?.()},Ve=()=>{Y.set(!0),G(),C?.()},Xe=async()=>{try{ne()}finally{G(),C?.()}},Se=()=>{v.actions.internal.setLooped(!o),G()},Me=()=>{if(z){let se=v.callbacks?.onCopyEmbedCodeClicked?.();se&&ol(se)}G()},Ue=(se=!1)=>{if(v.callbacks?.onCopyVideoLink){let nt=v.callbacks?.onCopyVideoLink(se,n);nt&&ol(nt)}G()},$e=se=>{dr(se,G)},ce=se=>{si(se,()=>Ue())},_e=se=>{si(se,()=>Ue(!0))},at=se=>{si(se,()=>Xe())},ke=se=>{si(se,()=>W())},Fe=se=>{si(se,()=>Q())},ft=se=>{si(se,()=>te())},Qe=se=>{si(se,()=>re())},je=se=>{si(se,()=>Ve())},Ze=se=>{si(se,()=>Me())},xe=se=>{si(se,()=>Se())};function x(se){Pn.call(this,t,se)}let De=()=>Ue(),ze=()=>Ue(!0);function fe(se){be[se?"unshift":"push"](()=>{g=se,i(0,g)})}return t.$$set=se=>{"visible"in se&&i(1,u=se.visible),"supportLink"in se&&i(40,f=se.supportLink),"position"in se&&i(41,p=se.position),"playerContainerRef"in se&&i(42,h=se.playerContainerRef),"controlsContainerRef"in se&&i(43,w=se.controlsContainerRef),"menuElementRef"in se&&i(0,g=se.menuElementRef),"returnFocus"in se&&i(44,C=se.returnFocus)},t.$$.update=()=>{if(t.$$.dirty[0]&1|t.$$.dirty[1]&7168&&g&&h&&w){let{top:se,left:nt,bottom:de,right:ot}=p,lt=nt??0,dt=se??0,yt=g.getBoundingClientRect();mr(nt)&&!mr(ot)&&(lt=ot-yt.width),mr(se)&&!mr(de)&&(dt=de-yt.height),lt=Math.max(lt,0),dt=Math.max(dt,0),$(lt,dt)}},[g,u,b,E,o,l,r,a,s,v,y,Y,q,N,ge,j,X,ae,K,z,W,Q,te,re,Ve,Xe,Se,Me,Ue,$e,ce,_e,at,ke,Fe,ft,Qe,je,Ze,xe,f,p,h,w,C,x,De,ze,fe]}var Us=class extends H{constructor(e){super(),U(this,e,Oh,Nh,F,{visible:1,supportLink:40,position:41,playerContainerRef:42,controlsContainerRef:43,menuElementRef:0,returnFocus:44},Lh,[-1,-1])}},Jf=Us;var pr=class{constructor(e){this.value=e,this.next=null}};var fl=class{constructor(e){this.top=null,this.bottom=null,this.size=0,this.maxSize=e}push(e){let i=new pr(e);this.top?(this.top.next=i,this.top=i):(this.top=i,this.bottom=i),this.size++,this.size>this.maxSize&&this.bottom&&(this.bottom=this.bottom.next)}getValuesFromBottom(){let e=[],i=this.bottom;for(;i;)e.push(i.value),i=i.next;return e}};function Fh(t){Pe(t,"svelte-1ssl9eb",".container.svelte-1ssl9eb{display:inline-block;width:120px;height:16px}canvas.svelte-1ssl9eb{transform:scale(1, -1);margin-top:2px}")}function zh(t){let e,i;return{c(){e=P("div"),i=P("canvas"),c(i,"class","svelte-1ssl9eb"),c(e,"class","container svelte-1ssl9eb")},m(n,o){S(n,e,o),m(e,i),t[3](i)},p:Ce,i:Ce,o:Ce,d(n){n&&k(e),t[3](null)}}}var Ws=16,Ks=120,xf=60;function Hh(t,e,i,n,o){o===0&&(o=1),t.fillStyle="#fff",t.fillRect(e,i,n,o)}function Uh(t,e,i){let{values:n=[]}=e,o,l,r=Ks/xf;It(()=>{i(0,o.width=Ks,o),i(0,o.height=Ws,o),i(2,l=o.getContext("2d"))});function a(s){be[s?"unshift":"push"](()=>{o=s,i(0,o)})}return t.$$set=s=>{"values"in s&&i(1,n=s.values)},t.$$.update=()=>{if(t.$$.dirty&6){let s="";if(l){let u=n[0];for(let p=1;p<n.length;p++)n[p]>u&&(u=n[p]);l.clearRect(0,0,Ks,Ws);let f=xf-1;for(let p=n.length-1;p>=0;p--){let h=f*r,w=u>0?Ws*(n[p]/u):0;Hh(l,h,0,r,w),s=w+" "+s,f--}}}},[o,n,l,a]}var js=class extends H{constructor(e){super(),U(this,e,Uh,zh,F,{values:1},Fh)}},_r=js;import{safeStorage as $f}from"@vkontakte/videoplayer-shared";function Wh(t){Pe(t,"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 ed(t){let e,i,n,o,l=t[0].id+"",r;return{c(){e=P("div"),i=P("div"),i.textContent="Video id",n=V(),o=P("span"),r=Re(l),c(i,"class","svelte-1fypj5i"),c(e,"class","svelte-1fypj5i")},m(a,s){S(a,e,s),m(e,i),m(e,n),m(e,o),m(o,r)},p(a,s){s&1&&l!==(l=a[0].id+"")&&Ge(r,l)},d(a){a&&k(e)}}}function td(t){let e,i,n,o,l=t[0].vsid+"",r;return{c(){e=P("div"),i=P("div"),i.textContent="VSID",n=V(),o=P("span"),r=Re(l),c(i,"class","svelte-1fypj5i"),c(e,"class","svelte-1fypj5i")},m(a,s){S(a,e,s),m(e,i),m(e,n),m(e,o),m(o,r)},p(a,s){s&1&&l!==(l=a[0].vsid+"")&&Ge(r,l)},d(a){a&&k(e)}}}function id(t){let e,i,n,o,l=t[0].provider+"",r;return{c(){e=P("div"),i=P("div"),i.textContent="Provider",n=V(),o=P("span"),r=Re(l),c(i,"class","svelte-1fypj5i"),c(e,"class","svelte-1fypj5i")},m(a,s){S(a,e,s),m(e,i),m(e,n),m(e,o),m(o,r)},p(a,s){s&1&&l!==(l=a[0].provider+"")&&Ge(r,l)},d(a){a&&k(e)}}}function nd(t){let e,i,n,o,l,r=(t[0].videoCodec||"")+"",a,s,u=t[0].hdr?"(HDR)":"",f,p,h=(t[0].audioCodec||"")+"",w,g,C=t[0].audioLanguage?`(${t[0].audioLanguage})`:"",b;return{c(){e=P("div"),i=P("div"),i.textContent="Streams",n=V(),o=P("span"),l=Re("Video: "),a=Re(r),s=V(),f=Re(u),p=Re(`
24
+ )}`)}function Bf(t){let e;return{c(){e=T("div"),c(e,"class","top-gradient-mobile svelte-354ajf")},m(i,n){S(i,e,n)},d(i){i&&k(e)}}}function qf(t){let e,i;return e=new Vf({props:{position:t[5],secondsToWatchBeforeSkip:t[6],skipAd:t[8].actions.internal.skipAd}}),{c(){V(e.$$.fragment)},m(n,o){A(e,n,o),i=!0},p(n,o){let l={};o&32&&(l.position=n[5]),o&64&&(l.secondsToWatchBeforeSkip=n[6]),e.$set(l)},i(n){i||(d(e.$$.fragment,n),i=!0)},o(n){_(e.$$.fragment,n),i=!1},d(n){L(e,n)}}}function Df(t){let e,i;return e=new Mf({}),{c(){V(e.$$.fragment)},m(n,o){A(e,n,o),i=!0},i(n){i||(d(e.$$.fragment,n),i=!0)},o(n){_(e.$$.fragment,n),i=!1},d(n){L(e,n)}}}function Nf(t){let e,i;return e=new Rf({}),{c(){V(e.$$.fragment)},m(n,o){A(e,n,o),i=!0},i(n){i||(d(e.$$.fragment,n),i=!0)},o(n){_(e.$$.fragment,n),i=!1},d(n){L(e,n)}}}function uh(t){let e,i,n,o,l,r,a,s=t[0]&&Bf(t),u=t[3]&&qf(t),f=t[7]&&Df(t),p=t[4]&&Nf(t);return{c(){e=T("div"),s&&s.c(),i=M(),n=T("video"),o=M(),u&&u.c(),l=M(),f&&f.c(),r=M(),p&&p.c(),bi(n,"width","100%"),bi(n,"height","100%"),n.playsInline=!0,c(e,"class","container svelte-354ajf")},m(h,w){S(h,e,w),s&&s.m(e,null),m(e,i),m(e,n),t[19](n),m(e,o),u&&u.m(e,null),m(e,l),f&&f.m(e,null),m(e,r),p&&p.m(e,null),t[20](e),a=!0},p(h,[w]){h[0]?s||(s=Bf(h),s.c(),s.m(e,i)):s&&(s.d(1),s=null),h[3]?u?(u.p(h,w),w&8&&d(u,1)):(u=qf(h),u.c(),d(u,1),u.m(e,l)):u&&(me(),_(u,1,1,()=>{u=null}),pe()),h[7]?f?w&128&&d(f,1):(f=Df(h),f.c(),d(f,1),f.m(e,r)):f&&(me(),_(f,1,1,()=>{f=null}),pe()),h[4]?p?w&16&&d(p,1):(p=Nf(h),p.c(),d(p,1),p.m(e,null)):p&&(me(),_(p,1,1,()=>{p=null}),pe())},i(h){a||(d(u),d(f),d(p),a=!0)},o(h){_(u),_(f),_(p),a=!1},d(h){h&&k(e),s&&s.d(),t[19](null),u&&u.d(),f&&f.d(),p&&p.d(),t[20](null)}}}function ch(t,e,i){let n,o,l,r,a,{adsSlotId:s=void 0}=e,{adsParams:u=void 0}=e,{adsPreviewParam:f=void 0}=e,{duration:p=0}=e,h=it(),w=h.state.isEnded$;D(t,w,G=>i(7,a=G));let g=h.ui.isMobile;D(t,g,G=>i(0,o=G));let C,b,E=!1,v=h.ads.playbackState;D(t,v,G=>i(18,n=G));let y=h.ads.canSkip,P=h.ads.position;D(t,P,G=>i(5,l=G));let W=h.ads.secondsToWatchBeforeSkip;D(t,W,G=>i(6,r=G));let B,O;It(()=>{let G=h.getAdmanWrapper();if(!s){G.onAdmanLoadingError();return}let X=new AbortController,ae=()=>{X.abort()},{width:j,height:z}=Je(h.ui.playerSize),Q=Je(h.ui.isFullscreen),$=Je(h.ui.isAutoplay),K={width:j,height:z,isFullscreen:Q,isAutoplay:$,adsContainer:C,adsVideoElement:b,slotId:s,params:u,previewParam:f,duration:p};return window.AdmanHTML?(G.initAdman(K),E=!0):G.loadAdman(X.signal).then(()=>{G.initAdman(K),E=!0}).catch(()=>{G.onAdmanLoadingError()}),()=>{!E&&ae()}});function ne(G){be[G?"unshift":"push"](()=>{b=G,i(2,b)})}function ge(G){be[G?"unshift":"push"](()=>{C=G,i(1,C)})}return t.$$set=G=>{"adsSlotId"in G&&i(14,s=G.adsSlotId),"adsParams"in G&&i(15,u=G.adsParams),"adsPreviewParam"in G&&i(16,f=G.adsPreviewParam),"duration"in G&&i(17,p=G.duration)},t.$$.update=()=>{t.$$.dirty&262144&&i(3,B=y&&n!=="inactive"),t.$$.dirty&262145&&i(4,O=o&&n!=="inactive")},[o,C,b,B,O,l,r,a,h,w,g,v,P,W,s,u,f,p,n,ne,ge]}var Ns=class extends H{constructor(e){super(),U(this,e,ch,uh,F,{adsSlotId:14,adsParams:15,adsPreviewParam:16,duration:17},ah)}},ur=Ns;var Tn=t=>{if(!isFinite(t))return"00:00";let e=Math.round(t),i=Math.floor(e/(60*60));e-=i*3600;let n=Math.floor(e/60);return e-=n*60,(i>0?[i,n,e]:[n,e]).map(l=>l>9?String(l):`0${l}`).join(":")};function fh(t){let e,i,n,o,l=t[2].default,r=Ie(l,t,t[1],null),a=[{xmlns:"http://www.w3.org/2000/svg"},{width:"42"},{height:"20"},{"aria-hidden":"true"},{"data-testid":"live-icon"},{role:"img"},t[0]],s={};for(let u=0;u<a.length;u+=1)s=ue(s,a[u]);return{c(){e=R("svg"),r&&r.c(),i=R("path"),n=R("path"),c(i,"fill","none"),c(i,"stroke","#fff"),c(i,"stroke-width","2"),c(i,"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"),c(n,"fill","#f0f2f5"),c(n,"fill-rule","evenodd"),c(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"),ye(e,s)},m(u,f){S(u,e,f),r&&r.m(e,null),m(e,i),m(e,n),o=!0},p(u,[f]){r&&r.p&&(!o||f&2)&&Ae(r,l,u,u[1],o?Ee(l,u[1],f,null):Le(u[1]),null),ye(e,s=Be(a,[{xmlns:"http://www.w3.org/2000/svg"},{width:"42"},{height:"20"},{"aria-hidden":"true"},{"data-testid":"live-icon"},{role:"img"},f&1&&u[0]]))},i(u){o||(d(r,u),o=!0)},o(u){_(r,u),o=!1},d(u){u&&k(e),r&&r.d(u)}}}function dh(t,e,i){let{$$slots:n={},$$scope:o}=e;return t.$$set=l=>{i(0,e=ue(ue({},e),ve(l))),"$$scope"in l&&i(1,o=l.$$scope)},e=ve(e),[e,o,n]}var Os=class extends H{constructor(e){super(),U(this,e,dh,fh,F,{})}},Of=Os;function mh(t){let e,i,n,o,l=t[2].default,r=Ie(l,t,t[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"},t[0]],s={};for(let u=0;u<a.length;u+=1)s=ue(s,a[u]);return{c(){e=R("svg"),r&&r.c(),i=R("rect"),n=R("path"),c(i,"width","42"),c(i,"height","20"),c(i,"fill","#FF3347"),c(i,"rx","5"),c(n,"fill","#F2F3F5"),c(n,"fill-rule","evenodd"),c(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"),c(n,"clip-rule","evenodd"),ye(e,s)},m(u,f){S(u,e,f),r&&r.m(e,null),m(e,i),m(e,n),o=!0},p(u,[f]){r&&r.p&&(!o||f&2)&&Ae(r,l,u,u[1],o?Ee(l,u[1],f,null):Le(u[1]),null),ye(e,s=Be(a,[{xmlns:"http://www.w3.org/2000/svg"},{width:"42"},{height:"20"},{fill:"none"},{"aria-hidden":"true"},{"data-testid":"live-active-icon"},{role:"img"},f&1&&u[0]]))},i(u){o||(d(r,u),o=!0)},o(u){_(r,u),o=!1},d(u){u&&k(e),r&&r.d(u)}}}function ph(t,e,i){let{$$slots:n={},$$scope:o}=e;return t.$$set=l=>{i(0,e=ue(ue({},e),ve(l))),"$$scope"in l&&i(1,o=l.$$scope)},e=ve(e),[e,o,n]}var Fs=class extends H{constructor(e){super(),U(this,e,ph,mh,F,{})}},Ff=Fs;function _h(t){let e,i;return e=new Of({}),{c(){V(e.$$.fragment)},m(n,o){A(e,n,o),i=!0},i(n){i||(d(e.$$.fragment,n),i=!0)},o(n){_(e.$$.fragment,n),i=!1},d(n){L(e,n)}}}function hh(t){let e,i;return e=new Ff({}),{c(){V(e.$$.fragment)},m(n,o){A(e,n,o),i=!0},i(n){i||(d(e.$$.fragment,n),i=!0)},o(n){_(e.$$.fragment,n),i=!1},d(n){L(e,n)}}}function gh(t){let e,i,n,o,l=[hh,_h],r=[];function a(s,u){return s[0]?0:1}return e=a(t,-1),i=r[e]=l[e](t),{c(){i.c(),n=ct()},m(s,u){r[e].m(s,u),S(s,n,u),o=!0},p(s,[u]){let f=e;e=a(s,u),e!==f&&(me(),_(r[f],1,1,()=>{r[f]=null}),pe(),i=r[e],i||(i=r[e]=l[e](s),i.c()),d(i,1),i.m(n.parentNode,n))},i(s){o||(d(i),o=!0)},o(s){_(i),o=!1},d(s){s&&k(n),r[e].d(s)}}}function bh(t,e,i){let{isActive:n=!1}=e;return t.$$set=o=>{"isActive"in o&&i(0,n=o.isActive)},[n]}var zs=class extends H{constructor(e){super(),U(this,e,bh,gh,F,{isActive:0})}},cr=zs;function vh(t){Te(t,"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 yh(t){let e=Tn(t[4]-t[3])+"",i;return{c(){i=Re(e)},m(n,o){S(n,i,o)},p(n,o){o&24&&e!==(e=Tn(n[4]-n[3])+"")&&Ge(i,e)},i:Ce,o:Ce,d(n){n&&k(i)}}}function wh(t){let e,i,n;return i=new cr({props:{isActive:!0}}),{c(){e=T("div"),V(i.$$.fragment),c(e,"class","thumb-timer-live-icon svelte-i7xnqb")},m(o,l){S(o,e,l),A(i,e,null),n=!0},p:Ce,i(o){n||(d(i.$$.fragment,o),n=!0)},o(o){_(i.$$.fragment,o),n=!1},d(o){o&&k(e),L(i)}}}function kh(t){let e,i,n,o,l,r,a,s=[wh,yh],u=[];function f(p,h){return p[1]?0:1}return l=f(t,-1),r=u[l]=s[l](t),{c(){e=T("div"),i=T("div"),i.innerHTML='<div class="col svelte-i7xnqb"></div> <div class="col svelte-i7xnqb"></div> <div class="col svelte-i7xnqb"></div>',n=M(),o=T("span"),r.c(),c(i,"class","thumb-timer-equalizer svelte-i7xnqb"),c(o,"class","thumb-timer-text svelte-i7xnqb"),c(e,"role","timer"),c(e,"class","thumb-timer svelte-i7xnqb"),c(e,"data-testid","thumb-timer"),q(e,"live",t[1]),q(e,"hidden",t[0]),q(e,"playing",t[2])},m(p,h){S(p,e,h),m(e,i),m(e,n),m(e,o),u[l].m(o,null),a=!0},p(p,[h]){let w=l;l=f(p,h),l===w?u[l].p(p,h):(me(),_(u[w],1,1,()=>{u[w]=null}),pe(),r=u[l],r?r.p(p,h):(r=u[l]=s[l](p),r.c()),d(r,1),r.m(o,null)),(!a||h&2)&&q(e,"live",p[1]),(!a||h&1)&&q(e,"hidden",p[0]),(!a||h&4)&&q(e,"playing",p[2])},i(p){a||(d(r),a=!0)},o(p){_(r),a=!1},d(p){p&&k(e),u[l].d()}}}function Sh(t,e,i){let{isHidden:n=!1}=e,{isLive:o=!1}=e,{isPlaying:l=!1}=e,{position:r}=e,{duration:a}=e;return t.$$set=s=>{"isHidden"in s&&i(0,n=s.isHidden),"isLive"in s&&i(1,o=s.isLive),"isPlaying"in s&&i(2,l=s.isPlaying),"position"in s&&i(3,r=s.position),"duration"in s&&i(4,a=s.duration)},[n,o,l,r,a]}var Hs=class extends H{constructor(e){super(),U(this,e,Sh,kh,F,{isHidden:0,isLive:1,isPlaying:2,position:3,duration:4},vh)}},fr=Hs;var ll=t=>{if(document.queryCommandSupported&&document.queryCommandSupported("copy")){let e=document.createElement("textarea");e.textContent=t,e.style.position="absolute",e.style.top="-9999px",document.body.appendChild(e),e.select();try{document.execCommand("copy")}finally{document.body.removeChild(e)}}};import{ChromecastState as Qf}from"@vkontakte/videoplayer-core";import{clientChecker as zf}from"@vkontakte/videoplayer-shared";var Do=t=>{t.stopPropagation(),t.preventDefault()},Th=t=>{let e=t.previousElementSibling;e||(e=t.parentNode?.lastElementChild),e?.focus()},Ph=t=>{let e=t.nextElementSibling;e||(e=t.parentNode?.firstElementChild),e?.focus()},Ih=t=>{let e=t.code;return e==="Tab"&&!t.shiftKey||e==="ArrowDown"},Eh=t=>{let e=t.code;return e==="Tab"||e==="ArrowUp"},Hf=t=>t.code==="Escape",Ah=t=>t.code==="ArrowLeft",Uf=(t,e=!0)=>{let i=t.code;return["Enter","Space"].includes(i)||!e&&i==="ArrowRight"},Kf=t=>{if(Ih(t)){Do(t),Ph(t.target);return}Eh(t)&&(Do(t),Th(t.target))},sl=t=>!zf.isAndroid&&t?.detail===0||zf.isAndroid&&t?.pointerType==="",al=async(t,e,i)=>{await Kn(),t&&!t.classList.contains("opened")&&!e&&Je(i)&&(await Kn(),i.set(!1),t.focus())},Wf=async(t,e,i)=>{await Kn(),t&&!e&&Je(i)&&(i.set(!1),t.focus())},No=async(t,e,i)=>{await Kn(),!!t&&e&&i&&t.children[0]?.focus()},ul=async(t,e,i)=>{!!t&&i&&(e.set(!1),setTimeout(()=>{t.focus()},100))},dr=(t,e)=>{Kf(t),Hf(t)&&(Do(t),e())},cl=async(t,e,i)=>{Uf(t,!1)&&(Do(t),e(),await Kn(),i()?.focus())},fl=async(t,e,i,n)=>{if(Kf(t),Ah(t)){Do(t),e(),i.set(!0);return}Hf(t)&&(Do(t),n())},ii=(t,e)=>{Uf(t)&&(Do(t),e())},jf=t=>{let e=t.getBoundingClientRect(),i=-14,n=e.left+e.width,o=e.top+i;return{right:n,bottom:o}},Gf=t=>{if(!t)return{top:0,left:0};let e=t.getBoundingClientRect(),i=-58,n=8,o=e.left+n;return{bottom:e.bottom+i,left:o}};import{isNullable as mr}from"@vkontakte/videoplayer-shared";function Lh(t){Te(t,"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 Yf(t){let e,i,n,o,l,r,a,s,u,f,p=(t[10].features.saveDebugInfoToFile?N("menu_save_debug"):N("menu_copy_debug"))+"",h,w,g,C,b,E=N("menu_debug_overlay")+"",v,y,P,W,B=t[10].features.copyVideoLink&&t[9].callbacks?.onCopyVideoLink&&Mh(t),O=t[19]&&Vh(t),ne=t[12]&&t[6]!==Qf.CONNECTED&&!t[17]&&Xf(t);function ge(Q,$){return Q[4]?Bh:Rh}let G=ge(t,[-1,-1]),X=G(t),ae=t[10].features.videoRotate&&!t[17]&&qh(t),j=t[10].showSupport&&!t[7]&&Jf(t),z=t[10].features.saveTraceInfoToFile&&Dh(t);return{c(){e=T("ul"),B&&B.c(),i=M(),O&&O.c(),n=M(),ne&&ne.c(),o=M(),l=T("li"),X.c(),a=M(),ae&&ae.c(),s=M(),j&&j.c(),u=M(),f=T("li"),h=Re(p),g=M(),z&&z.c(),C=M(),b=T("li"),v=Re(E),c(l,"tabindex","0"),c(l,"role","menuitem"),c(l,"aria-label",r=N("aria_label_menu_loop")),c(l,"class","svelte-1vzqlps"),c(f,"tabindex","0"),c(f,"role","menuitem"),c(f,"aria-label",w=t[10].features.saveDebugInfoToFile?N("menu_save_debug"):N("menu_copy_debug")),c(f,"class","svelte-1vzqlps"),c(b,"tabindex","0"),c(b,"role","menuitem"),c(b,"aria-label",y=t[8]?N("aria_label_menu_debug_overlay_disable"):N("aria_label_menu_debug_overlay_enable")),c(b,"class","svelte-1vzqlps"),c(e,"role","menu"),bi(e,"top",t[3]+"px"),bi(e,"left",t[2]+"px"),c(e,"class","svelte-1vzqlps")},m(Q,$){S(Q,e,$),B&&B.m(e,null),m(e,i),O&&O.m(e,null),m(e,n),ne&&ne.m(e,null),m(e,o),m(e,l),X.m(l,null),m(e,a),ae&&ae.m(e,null),m(e,s),j&&j.m(e,null),m(e,u),m(e,f),m(f,h),m(e,g),z&&z.m(e,null),m(e,C),m(e,b),m(b,v),t[48](e),P||(W=[_e(l,"click",ot(t[26])),_e(l,"keydown",t[39]),_e(f,"click",ot(t[22])),_e(f,"keydown",t[35]),_e(b,"click",ot(t[24])),_e(b,"keydown",t[37]),_e(e,"contextmenu",Ut(t[45])),_e(e,"keydown",t[29])],P=!0)},p(Q,$){Q[10].features.copyVideoLink&&Q[9].callbacks?.onCopyVideoLink&&B.p(Q,$),Q[19]&&O.p(Q,$),Q[12]&&Q[6]!==Qf.CONNECTED&&!Q[17]?ne?ne.p(Q,$):(ne=Xf(Q),ne.c(),ne.m(e,o)):ne&&(ne.d(1),ne=null),G!==(G=ge(Q,$))&&(X.d(1),X=G(Q),X&&(X.c(),X.m(l,null))),Q[10].features.videoRotate&&!Q[17]&&ae.p(Q,$),Q[10].showSupport&&!Q[7]?j?j.p(Q,$):(j=Jf(Q),j.c(),j.m(e,u)):j&&(j.d(1),j=null),Q[10].features.saveTraceInfoToFile&&z.p(Q,$),$[0]&256&&y!==(y=Q[8]?N("aria_label_menu_debug_overlay_disable"):N("aria_label_menu_debug_overlay_enable"))&&c(b,"aria-label",y),$[0]&8&&bi(e,"top",Q[3]+"px"),$[0]&4&&bi(e,"left",Q[2]+"px")},d(Q){Q&&k(e),B&&B.d(),O&&O.d(),ne&&ne.d(),X.d(),ae&&ae.d(),j&&j.d(),z&&z.d(),t[48](null),P=!1,tt(W)}}}function Mh(t){let e,i,n,o,l,r,a=!t[5]&&!t[17]&&Zf(t);return{c(){e=T("li"),e.textContent=`${N("menu_copy_video_link")}`,n=M(),a&&a.c(),o=ct(),c(e,"tabindex","0"),c(e,"role","menuitem"),c(e,"aria-label",i=N("menu_copy_video_link")),c(e,"class","svelte-1vzqlps")},m(s,u){S(s,e,u),S(s,n,u),a&&a.m(s,u),S(s,o,u),l||(r=[_e(e,"click",ot(t[46])),_e(e,"keydown",t[30])],l=!0)},p(s,u){!s[5]&&!s[17]?a?a.p(s,u):(a=Zf(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),l=!1,tt(r)}}}function Zf(t){let e,i,n,o;return{c(){e=T("li"),e.textContent=`${N("menu_copy_video_link_with_timestamp")}`,c(e,"tabindex","0"),c(e,"role","menuitem"),c(e,"aria-label",i=N("menu_copy_video_link_with_timestamp")),c(e,"class","svelte-1vzqlps")},m(l,r){S(l,e,r),n||(o=[_e(e,"click",ot(t[47])),_e(e,"keydown",t[31])],n=!0)},p:Ce,d(l){l&&k(e),n=!1,tt(o)}}}function Vh(t){let e,i,n,o;return{c(){e=T("li"),e.textContent=`${N("menu_copy_embed_code")}`,c(e,"tabindex","0"),c(e,"role","menuitem"),c(e,"aria-label",i=N("menu_copy_embed_code")),c(e,"class","svelte-1vzqlps")},m(l,r){S(l,e,r),n||(o=[_e(e,"click",ot(t[27])),_e(e,"keydown",t[38])],n=!0)},p:Ce,d(l){l&&k(e),n=!1,tt(o)}}}function Xf(t){let e,i,n,o;return{c(){e=T("li"),e.textContent=`${N("menu_pip")}`,c(e,"tabindex","0"),c(e,"role","menuitem"),c(e,"aria-label",i=N("menu_pip")),c(e,"class","svelte-1vzqlps")},m(l,r){S(l,e,r),n||(o=[_e(e,"click",ot(t[25])),_e(e,"keydown",t[32])],n=!0)},p:Ce,d(l){l&&k(e),n=!1,tt(o)}}}function Rh(t){let e=N("menu_video_loop_on")+"",i;return{c(){i=Re(e)},m(n,o){S(n,i,o)},d(n){n&&k(i)}}}function Bh(t){let e=N("menu_video_loop_off")+"",i;return{c(){i=Re(e)},m(n,o){S(n,i,o)},d(n){n&&k(i)}}}function qh(t){let e,i,n,o;return{c(){e=T("li"),e.textContent=`${N("menu_video_rotate")}`,c(e,"tabindex","0"),c(e,"role","menuitem"),c(e,"aria-label",i=N("aria_label_menu_rotate")),c(e,"class","svelte-1vzqlps")},m(l,r){S(l,e,r),n||(o=[_e(e,"click",ot(t[20])),_e(e,"keydown",t[33])],n=!0)},p:Ce,d(l){l&&k(e),n=!1,tt(o)}}}function Jf(t){let e,i,n,o;return{c(){e=T("li"),e.textContent=`${N("menu_report")}`,c(e,"tabindex","0"),c(e,"role","menuitem"),c(e,"aria-label",i=`${N("menu_report")}. ${N("aria_label_new_tab_alert")}`),c(e,"class","svelte-1vzqlps")},m(l,r){S(l,e,r),n||(o=[_e(e,"click",ot(t[21])),_e(e,"keydown",t[34])],n=!0)},p:Ce,d(l){l&&k(e),n=!1,tt(o)}}}function Dh(t){let e,i,n,o;return{c(){e=T("li"),e.textContent=`${N("menu_save_debug")}`,c(e,"tabindex","0"),c(e,"role","menuitem"),c(e,"aria-label",i=N("menu_save_debug")),c(e,"class","svelte-1vzqlps")},m(l,r){S(l,e,r),n||(o=[_e(e,"click",ot(t[23])),_e(e,"keydown",t[36])],n=!0)},p:Ce,d(l){l&&k(e),n=!1,tt(o)}}}function Nh(t){let e,i=t[1]&&Yf(t);return{c(){i&&i.c(),e=ct()},m(n,o){i&&i.m(n,o),S(n,e,o)},p(n,o){n[1]?i?i.p(n,o):(i=Yf(n),i.c(),i.m(e.parentNode,e)):i&&(i.d(1),i=null)},i:Ce,o:Ce,d(n){n&&k(e),i&&i.d(n)}}}function Oh(t,e,i){let n,o,l,r,a,s,{visible:u=!1}=e,{supportLink:f}=e,{position:p={top:0,left:0}}=e,{playerContainerRef:h=void 0}=e,{controlsContainerRef:w=void 0}=e,{menuElementRef:g=void 0}=e,{returnFocus:C}=e,b=0,E=0,v=it(),y=Bt(),P=v.ui.contextMenu.visible$,W=v.ui.debugPanelVisible;D(t,W,se=>i(8,s=se));let B=v.webApi.pictureInPictureApi,O=v.webApi.pictureInPictureApi?.info.isActive$;D(t,O,se=>i(7,a=se));let ne=v.actions.internal.togglePictureInPicture,ge=v.state.chromecastState$;D(t,ge,se=>i(6,r=se));let G=v.state.isLive$;D(t,G,se=>i(5,l=se));let X=v.state.positionExact$;D(t,X,se=>i(49,n=se));let ae=v.state.isInteractive,j=v.state.looped$;D(t,j,se=>i(4,o=se));let z=!!v.callbacks?.onCopyEmbedCodeClicked,Q=()=>{P.set(!1)},$=(se,nt)=>{if(!g||!h||!w)return;let de=g.getBoundingClientRect(),lt=h.getBoundingClientRect();i(2,b=se-lt.left),i(3,E=nt-lt.top),b+de.width>lt.width&&i(2,b=lt.width-de.width),E+de.height>lt.height&&i(3,E=lt.height-de.height),i(2,b=Math.max(b,0)),i(3,E=Math.max(E,0))},K=()=>{Q(),v.actions.internal.videoRotate()},Y=()=>{window.open(f,"_blank"),Q(),v.actions.internal.pause()},ie=()=>{let se=v.actions.internal.getDebugTextData();if(y.features.saveDebugInfoToFile){let nt=new Blob([...se],{type:"plain/text"}),de=window.URL.createObjectURL(nt);Mo(de,"vk_player_debug_info","txt")}else ll(v.actions.internal.getDebugTextData());Q(),C?.()},re=()=>{let se=v.actions.internal.getTraceTextData(),nt=new Blob([...se],{type:"application/json"}),de=window.URL.createObjectURL(nt);Mo(de,"vk_player_trace_info","json"),Q(),C?.()},Ve=()=>{W.set(!0),Q(),C?.()},Xe=async()=>{try{ne()}finally{Q(),C?.()}},Se=()=>{v.actions.internal.setLooped(!o),Q()},Me=()=>{if(z){let se=v.callbacks?.onCopyEmbedCodeClicked?.();se&&ll(se)}Q()},Ke=(se=!1)=>{if(v.callbacks?.onCopyVideoLink){let nt=v.callbacks?.onCopyVideoLink(se,n);nt&&ll(nt)}Q()},$e=se=>{dr(se,Q)},ce=se=>{ii(se,()=>Ke())},he=se=>{ii(se,()=>Ke(!0))},at=se=>{ii(se,()=>Xe())},ke=se=>{ii(se,()=>K())},Fe=se=>{ii(se,()=>Y())},ft=se=>{ii(se,()=>ie())},Qe=se=>{ii(se,()=>re())},je=se=>{ii(se,()=>Ve())},Ze=se=>{ii(se,()=>Me())},xe=se=>{ii(se,()=>Se())};function x(se){Cn.call(this,t,se)}let De=()=>Ke(),ze=()=>Ke(!0);function fe(se){be[se?"unshift":"push"](()=>{g=se,i(0,g)})}return t.$$set=se=>{"visible"in se&&i(1,u=se.visible),"supportLink"in se&&i(40,f=se.supportLink),"position"in se&&i(41,p=se.position),"playerContainerRef"in se&&i(42,h=se.playerContainerRef),"controlsContainerRef"in se&&i(43,w=se.controlsContainerRef),"menuElementRef"in se&&i(0,g=se.menuElementRef),"returnFocus"in se&&i(44,C=se.returnFocus)},t.$$.update=()=>{if(t.$$.dirty[0]&1|t.$$.dirty[1]&7168&&g&&h&&w){let{top:se,left:nt,bottom:de,right:lt}=p,rt=nt??0,dt=se??0,yt=g.getBoundingClientRect();mr(nt)&&!mr(lt)&&(rt=lt-yt.width),mr(se)&&!mr(de)&&(dt=de-yt.height),rt=Math.max(rt,0),dt=Math.max(dt,0),$(rt,dt)}},[g,u,b,E,o,l,r,a,s,v,y,W,B,O,ge,G,X,ae,j,z,K,Y,ie,re,Ve,Xe,Se,Me,Ke,$e,ce,he,at,ke,Fe,ft,Qe,je,Ze,xe,f,p,h,w,C,x,De,ze,fe]}var Us=class extends H{constructor(e){super(),U(this,e,Oh,Nh,F,{visible:1,supportLink:40,position:41,playerContainerRef:42,controlsContainerRef:43,menuElementRef:0,returnFocus:44},Lh,[-1,-1])}},xf=Us;var pr=class{constructor(e){this.value=e,this.next=null}};var dl=class{constructor(e){this.top=null,this.bottom=null,this.size=0,this.maxSize=e}push(e){let i=new pr(e);this.top?(this.top.next=i,this.top=i):(this.top=i,this.bottom=i),this.size++,this.size>this.maxSize&&this.bottom&&(this.bottom=this.bottom.next)}getValuesFromBottom(){let e=[],i=this.bottom;for(;i;)e.push(i.value),i=i.next;return e}};function Fh(t){Te(t,"svelte-1ssl9eb",".container.svelte-1ssl9eb{display:inline-block;width:120px;height:16px}canvas.svelte-1ssl9eb{transform:scale(1, -1);margin-top:2px}")}function zh(t){let e,i;return{c(){e=T("div"),i=T("canvas"),c(i,"class","svelte-1ssl9eb"),c(e,"class","container svelte-1ssl9eb")},m(n,o){S(n,e,o),m(e,i),t[3](i)},p:Ce,i:Ce,o:Ce,d(n){n&&k(e),t[3](null)}}}var Ks=16,Ws=120,$f=60;function Hh(t,e,i,n,o){o===0&&(o=1),t.fillStyle="#fff",t.fillRect(e,i,n,o)}function Uh(t,e,i){let{values:n=[]}=e,o,l,r=Ws/$f;It(()=>{i(0,o.width=Ws,o),i(0,o.height=Ks,o),i(2,l=o.getContext("2d"))});function a(s){be[s?"unshift":"push"](()=>{o=s,i(0,o)})}return t.$$set=s=>{"values"in s&&i(1,n=s.values)},t.$$.update=()=>{if(t.$$.dirty&6){let s="";if(l){let u=n[0];for(let p=1;p<n.length;p++)n[p]>u&&(u=n[p]);l.clearRect(0,0,Ws,Ks);let f=$f-1;for(let p=n.length-1;p>=0;p--){let h=f*r,w=u>0?Ks*(n[p]/u):0;Hh(l,h,0,r,w),s=w+" "+s,f--}}}},[o,n,l,a]}var js=class extends H{constructor(e){super(),U(this,e,Uh,zh,F,{values:1},Fh)}},_r=js;import{safeStorage as ed}from"@vkontakte/videoplayer-shared";function Kh(t){Te(t,"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 td(t){let e,i,n,o,l=t[0].id+"",r;return{c(){e=T("div"),i=T("div"),i.textContent="Video id",n=M(),o=T("span"),r=Re(l),c(i,"class","svelte-1fypj5i"),c(e,"class","svelte-1fypj5i")},m(a,s){S(a,e,s),m(e,i),m(e,n),m(e,o),m(o,r)},p(a,s){s&1&&l!==(l=a[0].id+"")&&Ge(r,l)},d(a){a&&k(e)}}}function id(t){let e,i,n,o,l=t[0].vsid+"",r;return{c(){e=T("div"),i=T("div"),i.textContent="VSID",n=M(),o=T("span"),r=Re(l),c(i,"class","svelte-1fypj5i"),c(e,"class","svelte-1fypj5i")},m(a,s){S(a,e,s),m(e,i),m(e,n),m(e,o),m(o,r)},p(a,s){s&1&&l!==(l=a[0].vsid+"")&&Ge(r,l)},d(a){a&&k(e)}}}function nd(t){let e,i,n,o,l=t[0].provider+"",r;return{c(){e=T("div"),i=T("div"),i.textContent="Provider",n=M(),o=T("span"),r=Re(l),c(i,"class","svelte-1fypj5i"),c(e,"class","svelte-1fypj5i")},m(a,s){S(a,e,s),m(e,i),m(e,n),m(e,o),m(o,r)},p(a,s){s&1&&l!==(l=a[0].provider+"")&&Ge(r,l)},d(a){a&&k(e)}}}function od(t){let e,i,n,o,l,r=(t[0].videoCodec||"")+"",a,s,u=t[0].hdr?"(HDR)":"",f,p,h=(t[0].audioCodec||"")+"",w,g,C=t[0].audioLanguage?`(${t[0].audioLanguage})`:"",b;return{c(){e=T("div"),i=T("div"),i.textContent="Streams",n=M(),o=T("span"),l=Re("Video: "),a=Re(r),s=M(),f=Re(u),p=Re(`
25
25
  &
26
- Audio: `),w=Re(h),g=V(),b=Re(C),c(i,"class","svelte-1fypj5i"),c(e,"class","svelte-1fypj5i")},m(E,v){S(E,e,v),m(e,i),m(e,n),m(e,o),m(o,l),m(o,a),m(o,s),m(o,f),m(o,p),m(o,w),m(o,g),m(o,b)},p(E,v){v&1&&r!==(r=(E[0].videoCodec||"")+"")&&Ge(a,r),v&1&&u!==(u=E[0].hdr?"(HDR)":"")&&Ge(f,u),v&1&&h!==(h=(E[0].audioCodec||"")+"")&&Ge(w,h),v&1&&C!==(C=E[0].audioLanguage?`(${E[0].audioLanguage})`:"")&&Ge(b,C)},d(E){E&&k(e)}}}function od(t){let e,i,n,o,l=t[0].viewport+"",r;return{c(){e=P("div"),i=P("div"),i.textContent="Viewport",n=V(),o=P("span"),r=Re(l),c(i,"class","svelte-1fypj5i"),c(e,"class","svelte-1fypj5i")},m(a,s){S(a,e,s),m(e,i),m(e,n),m(e,o),m(o,r)},p(a,s){s&1&&l!==(l=a[0].viewport+"")&&Ge(r,l)},d(a){a&&k(e)}}}function ld(t){let e,i,n,o,l=t[0].videoSize+"",r;return{c(){e=P("div"),i=P("div"),i.textContent="Video size",n=V(),o=P("span"),r=Re(l),c(i,"class","svelte-1fypj5i"),c(e,"class","svelte-1fypj5i")},m(a,s){S(a,e,s),m(e,i),m(e,n),m(e,o),m(o,r)},p(a,s){s&1&&l!==(l=a[0].videoSize+"")&&Ge(r,l)},d(a){a&&k(e)}}}function rd(t){let e,i,n,o,l=t[0].cdn+"",r;return{c(){e=P("div"),i=P("div"),i.textContent="CDN host",n=V(),o=P("span"),r=Re(l),c(i,"class","svelte-1fypj5i"),c(e,"class","svelte-1fypj5i")},m(a,s){S(a,e,s),m(e,i),m(e,n),m(e,o),m(o,r)},p(a,s){s&1&&l!==(l=a[0].cdn+"")&&Ge(r,l)},d(a){a&&k(e)}}}function sd(t){let e,i,n,o,l=t[0].volume+"",r,a;return{c(){e=P("div"),i=P("div"),i.textContent="Volume",n=V(),o=P("span"),r=Re(l),a=Re(" %"),c(i,"class","svelte-1fypj5i"),c(e,"class","svelte-1fypj5i")},m(s,u){S(s,e,u),m(e,i),m(e,n),m(e,o),m(o,r),m(o,a)},p(s,u){u&1&&l!==(l=s[0].volume+"")&&Ge(r,l)},d(s){s&&k(e)}}}function ad(t){let e,i,n,o,l=t[0].buffer.toFixed(2)+"",r,a;return{c(){e=P("div"),i=P("div"),i.textContent="Buffer",n=V(),o=P("span"),r=Re(l),a=Re(" s"),c(i,"class","svelte-1fypj5i"),c(e,"class","svelte-1fypj5i")},m(s,u){S(s,e,u),m(e,i),m(e,n),m(e,o),m(o,r),m(o,a)},p(s,u){u&1&&l!==(l=s[0].buffer.toFixed(2)+"")&&Ge(r,l)},d(s){s&&k(e)}}}function ud(t){let e,i,n,o,l=[{value:t[0].currentVideoSegmentLength,title:"Video:"},{value:t[0].currentAudioSegmentLength,title:"Audio:"}].filter(dd).map(md).join(" & ")+"",r;return{c(){e=P("div"),i=P("div"),i.textContent="Segment",n=V(),o=P("span"),r=Re(l),c(i,"class","svelte-1fypj5i"),c(e,"class","svelte-1fypj5i")},m(a,s){S(a,e,s),m(e,i),m(e,n),m(e,o),m(o,r)},p(a,s){s&1&&l!==(l=[{value:a[0].currentVideoSegmentLength,title:"Video:"},{value:a[0].currentAudioSegmentLength,title:"Audio:"}].filter(dd).map(md).join(" & ")+"")&&Ge(r,l)},d(a){a&&k(e)}}}function cd(t){let e,i,n,o,l,r,a=t[0].speed.toFixed(2)+"",s,u,f;return o=new _r({props:{values:t[5]}}),{c(){e=P("div"),i=P("div"),i.textContent="Network",n=V(),M(o.$$.fragment),l=V(),r=P("span"),s=Re(a),u=Re(" Kbps"),c(i,"class","svelte-1fypj5i"),c(e,"class","svelte-1fypj5i")},m(p,h){S(p,e,h),m(e,i),m(e,n),A(o,e,null),m(e,l),m(e,r),m(r,s),m(r,u),f=!0},p(p,h){let w={};h&32&&(w.values=p[5]),o.$set(w),(!f||h&1)&&a!==(a=p[0].speed.toFixed(2)+"")&&Ge(s,a)},i(p){f||(d(o.$$.fragment,p),f=!0)},o(p){_(o.$$.fragment,p),f=!1},d(p){p&&k(e),L(o)}}}function fd(t){let e,i,n,o,l,r,a=t[0].bitrate.toFixed(2)+"",s,u,f;return o=new _r({props:{values:t[6]}}),{c(){e=P("div"),i=P("div"),i.textContent="V bitrate",n=V(),M(o.$$.fragment),l=V(),r=P("span"),s=Re(a),u=Re(" Kbps"),c(i,"class","svelte-1fypj5i"),c(e,"class","svelte-1fypj5i")},m(p,h){S(p,e,h),m(e,i),m(e,n),A(o,e,null),m(e,l),m(e,r),m(r,s),m(r,u),f=!0},p(p,h){let w={};h&64&&(w.values=p[6]),o.$set(w),(!f||h&1)&&a!==(a=p[0].bitrate.toFixed(2)+"")&&Ge(s,a)},i(p){f||(d(o.$$.fragment,p),f=!0)},o(p){_(o.$$.fragment,p),f=!1},d(p){p&&k(e),L(o)}}}function Kh(t){let e,i,n,o,l,r,a,s,u=t[0].version+"",f,p,h,w,g,C,b,E,v,y,T,Y,q,N,ne,ge,j,X,ae,K,z,G,$,W,Q,te,re,Ve,Xe,Se,Me,Ue,$e,ce,_e=t[0].id&&ed(t),at=t[0].vsid&&td(t),ke=t[0].provider&&id(t),Fe=(t[0].videoCodec||t[0].audioCodec)&&nd(t),ft=t[0].viewport&&od(t),Qe=t[0].videoSize&&ld(t),je=t[0].cdn&&rd(t),Ze=t[0].volume&&sd(t),xe=t[0].buffer&&ad(t),x=(t[0].currentVideoSegmentLength||t[0].currentAudioSegmentLength)&&ud(t),De=t[0].speed&&cd(t),ze=t[0].bitrate&&fd(t);return re=new _r({props:{values:t[4]}}),{c(){e=P("div"),i=P("button"),i.textContent="[x]",n=V(),o=P("div"),l=P("div"),r=P("div"),r.textContent="Version",a=V(),s=P("span"),f=Re(u),p=V(),_e&&_e.c(),h=V(),at&&at.c(),w=V(),ke&&ke.c(),g=V(),Fe&&Fe.c(),C=V(),ft&&ft.c(),b=V(),Qe&&Qe.c(),E=V(),je&&je.c(),v=V(),Ze&&Ze.c(),y=V(),xe&&xe.c(),T=V(),x&&x.c(),Y=V(),q=P("div"),N=P("div"),N.textContent="Dropped",ne=V(),ge=P("span"),j=Re(t[2]),X=Re(" / "),ae=Re(t[1]),K=Re(" frames"),z=V(),De&&De.c(),G=V(),ze&&ze.c(),$=V(),W=P("div"),Q=P("div"),Q.textContent="FPS",te=V(),M(re.$$.fragment),Ve=V(),Xe=P("span"),Se=Re(t[3]),c(i,"class","close svelte-1fypj5i"),c(i,"title","\u0437\u0430\u043A\u0440\u044B\u0442\u044C"),c(r,"class","svelte-1fypj5i"),c(l,"class","svelte-1fypj5i"),c(N,"class","svelte-1fypj5i"),c(q,"class","svelte-1fypj5i"),c(Q,"class","svelte-1fypj5i"),c(W,"class","svelte-1fypj5i"),c(o,"class","content svelte-1fypj5i"),c(e,"class","container svelte-1fypj5i"),c(e,"role","region"),c(e,"aria-label",Me=O("aria_label_debug_panel")),B(e,"container-mobile",t[7])},m(fe,se){S(fe,e,se),m(e,i),m(e,n),m(e,o),m(o,l),m(l,r),m(l,a),m(l,s),m(s,f),m(o,p),_e&&_e.m(o,null),m(o,h),at&&at.m(o,null),m(o,w),ke&&ke.m(o,null),m(o,g),Fe&&Fe.m(o,null),m(o,C),ft&&ft.m(o,null),m(o,b),Qe&&Qe.m(o,null),m(o,E),je&&je.m(o,null),m(o,v),Ze&&Ze.m(o,null),m(o,y),xe&&xe.m(o,null),m(o,T),x&&x.m(o,null),m(o,Y),m(o,q),m(q,N),m(q,ne),m(q,ge),m(ge,j),m(ge,X),m(ge,ae),m(ge,K),m(o,z),De&&De.m(o,null),m(o,G),ze&&ze.m(o,null),m(o,$),m(o,W),m(W,Q),m(W,te),A(re,W,null),m(W,Ve),m(W,Xe),m(Xe,Se),Ue=!0,$e||(ce=he(i,"click",st(t[9])),$e=!0)},p(fe,[se]){(!Ue||se&1)&&u!==(u=fe[0].version+"")&&Ge(f,u),fe[0].id?_e?_e.p(fe,se):(_e=ed(fe),_e.c(),_e.m(o,h)):_e&&(_e.d(1),_e=null),fe[0].vsid?at?at.p(fe,se):(at=td(fe),at.c(),at.m(o,w)):at&&(at.d(1),at=null),fe[0].provider?ke?ke.p(fe,se):(ke=id(fe),ke.c(),ke.m(o,g)):ke&&(ke.d(1),ke=null),fe[0].videoCodec||fe[0].audioCodec?Fe?Fe.p(fe,se):(Fe=nd(fe),Fe.c(),Fe.m(o,C)):Fe&&(Fe.d(1),Fe=null),fe[0].viewport?ft?ft.p(fe,se):(ft=od(fe),ft.c(),ft.m(o,b)):ft&&(ft.d(1),ft=null),fe[0].videoSize?Qe?Qe.p(fe,se):(Qe=ld(fe),Qe.c(),Qe.m(o,E)):Qe&&(Qe.d(1),Qe=null),fe[0].cdn?je?je.p(fe,se):(je=rd(fe),je.c(),je.m(o,v)):je&&(je.d(1),je=null),fe[0].volume?Ze?Ze.p(fe,se):(Ze=sd(fe),Ze.c(),Ze.m(o,y)):Ze&&(Ze.d(1),Ze=null),fe[0].buffer?xe?xe.p(fe,se):(xe=ad(fe),xe.c(),xe.m(o,T)):xe&&(xe.d(1),xe=null),fe[0].currentVideoSegmentLength||fe[0].currentAudioSegmentLength?x?x.p(fe,se):(x=ud(fe),x.c(),x.m(o,Y)):x&&(x.d(1),x=null),(!Ue||se&4)&&Ge(j,fe[2]),(!Ue||se&2)&&Ge(ae,fe[1]),fe[0].speed?De?(De.p(fe,se),se&1&&d(De,1)):(De=cd(fe),De.c(),d(De,1),De.m(o,G)):De&&(me(),_(De,1,1,()=>{De=null}),pe()),fe[0].bitrate?ze?(ze.p(fe,se),se&1&&d(ze,1)):(ze=fd(fe),ze.c(),d(ze,1),ze.m(o,$)):ze&&(me(),_(ze,1,1,()=>{ze=null}),pe());let nt={};se&16&&(nt.values=fe[4]),re.$set(nt),(!Ue||se&8)&&Ge(Se,fe[3]),(!Ue||se&128)&&B(e,"container-mobile",fe[7])},i(fe){Ue||(d(De),d(ze),d(re.$$.fragment,fe),Ue=!0)},o(fe){_(De),_(ze),_(re.$$.fragment,fe),Ue=!1},d(fe){fe&&k(e),_e&&_e.d(),at&&at.d(),ke&&ke.d(),Fe&&Fe.d(),ft&&ft.d(),Qe&&Qe.d(),je&&je.d(),Ze&&Ze.d(),xe&&xe.d(),x&&x.d(),De&&De.d(),ze&&ze.d(),L(re),$e=!1,ce()}}}var dd=({value:t})=>t,md=({value:t,title:e})=>`${e} ${((t??0)/1e3).toFixed(2)} s`;function jh(t,e,i){let n,o=it(),l=o.ui.debugPanelVisible,r=o.ui.isMobile;D(t,r,y=>i(7,n=y));let a=()=>{$f.remove(Tl),l.set(!1)},s=o.actions.internal.getDebugPanelData(),u=o.actions.internal.getVideoElement(),f=0,p=0,h=0,w=new fl(60),g=new fl(60),C=new fl(60),b=[],E=[],v=[];return It(()=>{$f.set(Tl,"true"),o.actions.internal.startLogging(),u&&(i(2,p=u.getVideoPlaybackQuality().droppedVideoFrames),i(1,f=u.getVideoPlaybackQuality().totalVideoFrames));let y=window.setInterval(()=>{i(0,s=o.actions.internal.getDebugPanelData())},500),T;return u&&(T=window.setInterval(()=>{if(u){i(2,p=u.getVideoPlaybackQuality().droppedVideoFrames);let Y=u.getVideoPlaybackQuality().totalVideoFrames;i(3,h=Y-f),i(1,f=Y),w.push(h),s.speed&&g.push(s.speed),s.bitrate&&C.push(s.bitrate),i(4,b=w.getValuesFromBottom()),i(5,E=g.getValuesFromBottom()),i(6,v=C.getValuesFromBottom())}},1e3)),()=>{o.actions.internal.stopLogging(),clearInterval(y),T&&clearInterval(T)}}),[s,f,p,h,b,E,v,n,r,a]}var Gs=class extends H{constructor(e){super(),U(this,e,jh,Kh,F,{},Wh)}},hr=Gs;function Gh(t){Pe(t,"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 Qh(t){let e,i,n;return{c(){e=P("div"),c(e,"class","close svelte-1ome55p")},m(o,l){S(o,e,l),i||(n=he(e,"click",st(t[0])),i=!0)},p:Ce,i:Ce,o:Ce,d(o){o&&k(e),i=!1,n()}}}function Yh(t){function e(i){Pn.call(this,t,i)}return[e]}var Qs=class extends H{constructor(e){super(),U(this,e,Yh,Qh,F,{},Gh)}},pd=Qs;import{noop as Zh}from"@vkontakte/videoplayer-shared";function Xh(t){Pe(t,"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 Jh(t){let e,i,n,o,l,r,a;return{c(){e=P("div"),i=P("canvas"),n=V(),o=R("svg"),l=R("g"),r=R("g"),a=R("path"),c(i,"class","timer-canvas svelte-8jhsry"),c(i,"width","100"),c(i,"height","100"),c(a,"class","_play"),c(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"),c(a,"fill","#fff"),c(r,"fill-rule","nonzero"),c(l,"fill","none"),c(l,"fill-rule","evenodd"),c(o,"class","timer-play-icon svelte-8jhsry"),c(o,"viewBox","0 0 24 24"),c(o,"xmlns","http://www.w3.org/2000/svg"),c(e,"class","timer svelte-8jhsry")},m(s,u){S(s,e,u),m(e,i),t[2](i),m(e,n),m(e,o),m(o,l),m(l,r),m(r,a)},p:Ce,i:Ce,o:Ce,d(s){s&&k(e),t[2](null)}}}var xh=5e3;function $h(t,e,i){let{onTimerEnded:n=Zh}=e,o;It(()=>{let r,a=o.getContext("2d");if(!a)return;a.lineWidth=6,a.lineCap="round",a.strokeStyle="#fff";let s=Date.now(),u=()=>{let f=(Date.now()-s)/xh;f<1?(a.clearRect(0,0,100,100),a.beginPath(),a.arc(50,50,47,-Math.PI/2,-Math.PI/2+Math.PI*2*f),a.stroke(),r=requestAnimationFrame(u)):n()};return r=requestAnimationFrame(u),()=>{cancelAnimationFrame(r)}});function l(r){be[r?"unshift":"push"](()=>{o=r,i(0,o)})}return t.$$set=r=>{"onTimerEnded"in r&&i(1,n=r.onTimerEnded)},[o,n,l]}var Ys=class extends H{constructor(e){super(),U(this,e,$h,Jh,F,{onTimerEnded:1},Xh)}},_d=Ys;function e2(t){Pe(t,"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 hd(t){let e,i;return e=new _d({props:{onTimerEnded:t[2]}}),{c(){M(e.$$.fragment)},m(n,o){A(e,n,o),i=!0},p(n,o){let l={};o&4&&(l.onTimerEnded=n[2]),e.$set(l)},i(n){i||(d(e.$$.fragment,n),i=!0)},o(n){_(e.$$.fragment,n),i=!1},d(n){L(e,n)}}}function t2(t){let e,i,n,o,l,r,a,s,u,f,p,h,w,g,C,b,E,v,y,T,Y;a=new pd({}),a.$on("click",t[4]);let q=t[3]&&hd(t);return{c(){e=P("div"),i=V(),n=P("div"),o=P("div"),l=P("div"),l.textContent="\u0441\u043B\u0435\u0434\u0443\u044E\u0449\u0435\u0435 \u0432\u0438\u0434\u0435\u043E",r=V(),M(a.$$.fragment),s=V(),u=P("div"),f=P("div"),p=P("div"),h=P("div"),w=V(),q&&q.c(),C=V(),b=P("div"),E=P("div"),v=Re(t[0]),c(e,"class","overlay svelte-kisfwc"),c(l,"class","caption svelte-kisfwc"),c(o,"class","top svelte-kisfwc"),c(h,"class","thumb-overlay svelte-kisfwc"),c(p,"class","thumb svelte-kisfwc"),c(p,"style",g=`background-image: url('${t[1]}')`),c(f,"class","column svelte-kisfwc"),c(E,"class","title svelte-kisfwc"),c(b,"class","column svelte-kisfwc"),c(u,"class","row svelte-kisfwc"),c(n,"class","next-video svelte-kisfwc")},m(N,ne){S(N,e,ne),S(N,i,ne),S(N,n,ne),m(n,o),m(o,l),m(o,r),A(a,o,null),m(n,s),m(n,u),m(u,f),m(f,p),m(p,h),m(p,w),q&&q.m(p,null),m(u,C),m(u,b),m(b,E),m(E,v),y=!0,T||(Y=he(u,"click",function(){Ei(t[2])&&t[2].apply(this,arguments)}),T=!0)},p(N,[ne]){t=N,t[3]?q?(q.p(t,ne),ne&8&&d(q,1)):(q=hd(t),q.c(),d(q,1),q.m(p,null)):q&&(me(),_(q,1,1,()=>{q=null}),pe()),(!y||ne&2&&g!==(g=`background-image: url('${t[1]}')`))&&c(p,"style",g),(!y||ne&1)&&Ge(v,t[0])},i(N){y||(d(a.$$.fragment,N),d(q),y=!0)},o(N){_(a.$$.fragment,N),_(q),y=!1},d(N){N&&(k(e),k(i),k(n)),L(a),q&&q.d(),T=!1,Y()}}}function i2(t,e,i){let{title:n}=e,{thumb:o}=e,{playNextVideo:l}=e,r=!0,a=()=>i(3,r=!1);return t.$$set=s=>{"title"in s&&i(0,n=s.title),"thumb"in s&&i(1,o=s.thumb),"playNextVideo"in s&&i(2,l=s.playNextVideo)},[n,o,l,r,a]}var Zs=class extends H{constructor(e){super(),U(this,e,i2,t2,F,{title:0,thumb:1,playNextVideo:2},e2)}},gd=Zs;import{PlaybackState as No}from"@vkontakte/videoplayer-core";import{checkNever as o2}from"@vkontakte/videoplayer-shared";import{SeekAction as vn}from"@vkontakte/videoplayer-statistics";var Xs=(t,e)=>Math.min(+(t+e).toFixed(2),1),Js=(t,e)=>Math.max(+(t-e).toFixed(2),0),gr=(t,e,i)=>{let n=Xs(e,i);e<1&&t.actions.internal.setVolume(n)},br=(t,e,i)=>{let n=Js(e,i);e>0&&t.actions.internal.setVolume(n)};var po=({isAudioDisabled:t,audioDisabledHintCallback:e,isAudioAvailable:i,audioIsNotExistHintCallback:n})=>t?(e?.(),!1):i?!0:(n?.(),!1);function l2(t){Pe(t,"svelte-10kkmxz",".keyboard-controls.svelte-10kkmxz{position:absolute;left:0;right:0;top:0;bottom:0}")}function r2(t){let e,i,n,o,l,r=t[26].default,a=Ie(r,t,t[25],null);return{c(){e=P("div"),a&&a.c(),c(e,"class","keyboard-controls svelte-10kkmxz"),c(e,"tabindex","-1"),c(e,"role","region"),c(e,"aria-label",i=O("aria_label_video_player"))},m(s,u){S(s,e,u),a&&a.m(e,null),t[27](e),n=!0,o||(l=[he(e,"keyup",t[17]),he(e,"keydown",t[16])],o=!0)},p(s,u){a&&a.p&&(!n||u[0]&33554432)&&Ae(a,r,s,s[25],n?Ee(r,s[25],u,null):Le(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),t[27](null),o=!1,tt(l)}}}function s2(t,e,i){let n,o,l,r,a,s,u,f,p,h,w,g,C,b,E,{$$slots:v={},$$scope:y}=e,{isAds:T}=e,{hideContextMenu:Y}=e,{toggleFullscreen:q}=e,{showHotKeyHelpers:N}=e,{showKeyMap:ne}=e,{fakePlayButtonHandler:ge}=e,j=it(),X=Bt(),ae=j.getLogger().createComponentLog("KeyboardControls component"),K=j.state.playbackState$;D(t,K,de=>i(31,o=de));let z=j.ads.playbackState;D(t,z,de=>i(30,n=de));let G=j.state.positionExact$;D(t,G,de=>i(41,g=de));let $=j.state.duration$;D(t,$,de=>i(40,w=de));let W=j.state.volume$;D(t,W,de=>i(44,E=de));let Q=j.ui.controls.disabledControls$;D(t,Q,de=>i(39,h=de));let te=j.state.muted$;D(t,te,de=>i(34,a=de));let re=j.state.currentSubtitle$;D(t,re,de=>i(33,r=de));let Ve=j.state.currentPlaybackRate$;D(t,Ve,de=>i(42,C=de));let Xe=j.state.availablePlaybackRates$;D(t,Xe,de=>i(43,b=de));let Se=j.ui.contextMenu.openedByHotKey$,Me=j.ui.contextMenu.lastActiveElem$,Ue=j.ui.contextMenu.visible$,$e=j.ui.contextMenu.position$,ce=j.state.isEnded$;D(t,ce,de=>i(36,u=de));let _e=j.ui.overlayContainer$;D(t,_e,de=>i(32,l=de));let at=j.callbacks?.onAudioDoesNotExistHint,ke=j.callbacks?.onAudioDisabledHint,Fe=j.state.isAudioAvailable$;D(t,Fe,de=>i(35,s=de));let ft=j.state.isAudioDisabled,Qe=j.state.isInteractiveTime$;D(t,Qe,de=>i(38,p=de));let{showInteractiveTimeIndicatorTooltip$:je}=Bn();D(t,je,de=>i(37,f=de));let Ze=0,xe=!0,x,De=()=>x?.focus(),ze=de=>(de!==xe&&(xe=de,Ze=0),Ze+=1,(X.controls.seekStepKeyboard+X.controls.seekStepKeyboard*Ze)/1e3),fe=de=>{let ot=de.target,lt=ot?.getAttribute("role")?.includes("menuitem"),dt=ot.classList.contains("btn"),yt=de.code;if(dt&&yt==="Space")return;let Et=Gc.has(yt);if(lt&&Et)return;let Ye=!jc.has(yt);if(de.ctrlKey&&Ye||de.altKey&&Ye||de.metaKey)return;let Kt=lt&&yt==="Escape";Qc.has(yt)||Kt||Y();let qt=o===No.PLAYING||o===No.PAUSED,Tt=T&&(n==="paused"||n==="playing"),ai=!Tt&&!h.has("TIMELINE");if(qt||Tt)switch(ae({message:`key down, code: ${yt}`}),yt){case"KeyJ":case"ArrowLeft":{if(!ai)break;if(de.ctrlKey||de.altKey){let rt=j.actions.internal.getPrevEpisode();j.actions.internal.seekToPrevEpisode(rt),rt&&N({type:"EPISODE_PREV",text:rt.text}),de.preventDefault()}else{let rt=de.shiftKey?ze(!1):X.controls.seekStepKeyboard/1e3,wt=Math.max(g-rt,0);g>0&&(j.actions.internal.seekTime(wt,vn.DOUBLE_TAP),N({type:"BACKWARD_SEEK",text:rt.toString()}),de.preventDefault())}break}case"KeyL":case"ArrowRight":{if(!ai)break;if(de.ctrlKey||de.altKey){let rt=j.actions.internal.getNextEpisode();j.actions.internal.seekToNextEpisode(rt),rt&&N({type:"EPISODE_NEXT",text:rt.text}),de.preventDefault()}else{let rt=de.shiftKey?ze(!0):X.controls.seekStepKeyboard/1e3,wt=Math.min(g+rt,w);Math.round(g)<Math.round(w)&&(j.actions.internal.seekTime(wt,vn.DOUBLE_TAP),N({type:"FORWARD_SEEK",text:rt.toString()}),de.preventDefault())}break}case"ArrowUp":{if(po({isAudioDisabled:ft,audioDisabledHintCallback:ke,isAudioAvailable:s,audioIsNotExistHintCallback:at})){let rt=E,wt=X.controls.volumeStepKeyboard,we=rt<=1;if(gr(j,rt,wt),we){let gt=Math.round(Xs(rt,wt)*100).toString();N({type:"VOLUME",t:{key:"hotkey_helper_current_volume",value:gt}})}}de.preventDefault();break}case"ArrowDown":{if(po({isAudioDisabled:ft,audioDisabledHintCallback:ke,isAudioAvailable:s,audioIsNotExistHintCallback:at})){let rt=E,wt=X.controls.volumeStepKeyboard,we=rt>=0;if(br(j,rt,wt),we){let gt=Math.round(Js(rt,wt)*100).toString();N({type:"VOLUME",t:{key:"hotkey_helper_current_volume",value:gt}})}}de.preventDefault();break}case"Comma":{if(de.shiftKey){j.actions.internal.decrementPlaybackRate();let rt=b.find(wt=>wt.value===C);N({type:"RATE_DOWN",text:rt?.displayValue}),de.preventDefault()}else{if(Tt||o!==No.PAUSED)break;let rt=Math.max(g-X.controls.seekStepFrame/1e3,0);g>0&&(N({type:"BACKWARD_SEEK"}),j.actions.internal.clearDelayedBufferingCheckTimeout(),j.actions.internal.seekTime(rt,vn.DOUBLE_TAP),de.preventDefault())}break}case"Period":{if(de.shiftKey){j.actions.internal.incrementPlaybackRate();let rt=b.find(wt=>wt.value===C);N({type:"RATE_UP",text:rt?.displayValue}),de.preventDefault()}else{if(Tt||o!==No.PAUSED)break;let rt=Math.min(g+X.controls.seekStepFrame/1e3,w);g<w&&(N({type:"FORWARD_SEEK"}),j.actions.internal.clearDelayedBufferingCheckTimeout(),j.actions.internal.seekTime(rt,vn.DOUBLE_TAP),de.preventDefault())}break}case"KeyK":case"Space":if(!h.has("PLAY_BUTTON"))if(p&&f&&je.set(!1),ge)ge();else{j.actions.internal.togglePlay();let rt="PLAY";o===No.PAUSED?rt="PAUSE":u&&(rt="REPLAY"),N({type:rt})}de.preventDefault();break;case"KeyM":{po({isAudioDisabled:ft,audioDisabledHintCallback:ke,isAudioAvailable:s,audioIsNotExistHintCallback:at})&&(N({type:a?"VOLUME":"MUTE"}),j.actions.internal.toggleMuted()),de.preventDefault();break}case"KeyF":q(),de.preventDefault();break;case"KeyC":j.actions.internal.toggleSubtitle(),r.value!=="off"?N({type:"SUBTITLES_ON",text:r?.displayValue}):N({type:"SUBTITLES_OFF"}),de.preventDefault();break;case"KeyI":j.actions.internal.togglePictureInPicture(),de.preventDefault();break;case"Digit1":case"Numpad1":if(de.shiftKey){let rt=jf(l);$e.set(rt),Me.set(ot),Se.set(!0),Ue.set(!0),de.preventDefault();break}N(),j.actions.internal.seekToPercent(.1,vn.DOUBLE_TAP),de.preventDefault();break;case"Digit2":case"Numpad2":N(),j.actions.internal.seekToPercent(.2,vn.DOUBLE_TAP),de.preventDefault();break;case"Digit3":case"Numpad3":N(),j.actions.internal.seekToPercent(.3,vn.DOUBLE_TAP),de.preventDefault();break;case"Digit4":case"Numpad4":N(),j.actions.internal.seekToPercent(.4,vn.DOUBLE_TAP),de.preventDefault();break;case"Digit5":case"Numpad5":N(),j.actions.internal.seekToPercent(.5,vn.DOUBLE_TAP),de.preventDefault();break;case"Digit6":case"Numpad6":N(),j.actions.internal.seekToPercent(.6,vn.DOUBLE_TAP),de.preventDefault();break;case"Digit7":case"Numpad7":N(),j.actions.internal.seekToPercent(.7,vn.DOUBLE_TAP),de.preventDefault();break;case"Digit8":case"Numpad8":N(),j.actions.internal.seekToPercent(.8,vn.DOUBLE_TAP),de.preventDefault();break;case"Digit9":case"Numpad9":N(),j.actions.internal.seekToPercent(.9,vn.DOUBLE_TAP),de.preventDefault();break;case"Digit0":case"Numpad0":N(),j.actions.internal.seekToPercent(0,vn.DOUBLE_TAP),de.preventDefault();break;case"Slash":{de.shiftKey&&X.features.hotKeyMapModal&&(ne(),de.preventDefault());break}case"ShiftLeft":case"ShiftRight":de.preventDefault();break;case"Tab":case"Escape":case"Enter":break;default:o2(yt);break}},se=de=>{let ot=de.code;if(de.ctrlKey||de.altKey||de.metaKey)return;let lt=o===No.PLAYING||o===No.PAUSED,dt=T&&(n==="paused"||n==="playing");if(lt||dt)switch(ot){case"ShiftLeft":case"ShiftRight":Ze=0;break}};function nt(de){be[de?"unshift":"push"](()=>{x=de,i(0,x)})}return t.$$set=de=>{"isAds"in de&&i(18,T=de.isAds),"hideContextMenu"in de&&i(19,Y=de.hideContextMenu),"toggleFullscreen"in de&&i(20,q=de.toggleFullscreen),"showHotKeyHelpers"in de&&i(21,N=de.showHotKeyHelpers),"showKeyMap"in de&&i(22,ne=de.showKeyMap),"fakePlayButtonHandler"in de&&i(23,ge=de.fakePlayButtonHandler),"$$scope"in de&&i(25,y=de.$$scope)},[x,K,z,G,$,W,Q,te,re,Ve,Xe,ce,_e,Fe,Qe,je,fe,se,T,Y,q,N,ne,ge,De,y,v,nt]}var xs=class extends H{constructor(e){super(),U(this,e,s2,r2,F,{isAds:18,hideContextMenu:19,toggleFullscreen:20,showHotKeyHelpers:21,showKeyMap:22,fakePlayButtonHandler:23,focus:24},l2,[-1,-1])}get focus(){return this.$$.ctx[24]}},bd=xs;function a2(t){Pe(t,"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 u2(t){let e,i,n,o,l,r;return{c(){e=P("div"),i=P("div"),n=V(),o=P("div"),l=V(),r=P("div"),c(i,"class","dot svelte-8nkw5s"),c(o,"class","dot svelte-8nkw5s"),c(r,"class","dot svelte-8nkw5s"),c(e,"class","container svelte-8nkw5s"),c(e,"style",t[0])},m(a,s){S(a,e,s),m(e,i),m(e,n),m(e,o),m(e,l),m(e,r)},p(a,[s]){s&1&&c(e,"style",a[0])},i:Ce,o:Ce,d(a){a&&k(e)}}}function c2(t,e,i){let{style:n=""}=e;return t.$$set=o=>{"style"in o&&i(0,n=o.style)},[n]}var $s=class extends H{constructor(e){super(),U(this,e,c2,u2,F,{style:0},a2)}},dl=$s;function f2(t){let e,i,n,o,l,r,a,s,u,f,p,h,w,g,C=t[2].default,b=Ie(C,t,t[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"},t[0]],v={};for(let y=0;y<E.length;y+=1)v=ue(v,E[y]);return{c(){e=R("svg"),b&&b.c(),i=R("g"),n=R("path"),o=R("path"),l=R("defs"),r=R("filter"),a=R("feFlood"),s=R("feColorMatrix"),u=R("feOffset"),f=R("feGaussianBlur"),p=R("feColorMatrix"),h=R("feBlend"),w=R("feBlend"),c(n,"fill","#fff"),c(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"),c(o,"stroke","#000"),c(o,"stroke-opacity",".12"),c(o,"stroke-width",".5"),c(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"),c(i,"filter","url(#a)"),c(a,"flood-opacity","0"),c(a,"result","BackgroundImageFix"),c(s,"in","SourceAlpha"),c(s,"result","hardAlpha"),c(s,"values","0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0"),c(f,"stdDeviation","2.5"),c(p,"values","0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.16 0"),c(h,"in2","BackgroundImageFix"),c(h,"result","effect1_dropShadow_2422_111980"),c(w,"in","SourceGraphic"),c(w,"in2","effect1_dropShadow_2422_111980"),c(w,"result","shape"),c(r,"id","a"),c(r,"width","23"),c(r,"height","23"),c(r,"x",".5"),c(r,"y",".5"),c(r,"color-interpolation-filters","sRGB"),c(r,"filterUnits","userSpaceOnUse"),ye(e,v)},m(y,T){S(y,e,T),b&&b.m(e,null),m(e,i),m(i,n),m(i,o),m(e,l),m(l,r),m(r,a),m(r,s),m(r,u),m(r,f),m(r,p),m(r,h),m(r,w),g=!0},p(y,[T]){b&&b.p&&(!g||T&2)&&Ae(b,C,y,y[1],g?Ee(C,y[1],T,null):Le(y[1]),null),ye(e,v=Be(E,[{xmlns:"http://www.w3.org/2000/svg"},{width:"24"},{height:"24"},{fill:"none"},{"aria-hidden":"true"},{"data-testid":"cross-icon"},{role:"img"},T&1&&y[0]]))},i(y){g||(d(b,y),g=!0)},o(y){_(b,y),g=!1},d(y){y&&k(e),b&&b.d(y)}}}function d2(t,e,i){let{$$slots:n={},$$scope:o}=e;return t.$$set=l=>{i(0,e=ue(ue({},e),ve(l))),"$$scope"in l&&i(1,o=l.$$scope)},e=ve(e),[e,o,n]}var ea=class extends H{constructor(e){super(),U(this,e,d2,f2,F,{})}},vd=ea;import{noop as to}from"@vkontakte/videoplayer-shared";function m2(t){Pe(t,"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(t){let e,i,n,o,l,r,a,s,u,f,p,h,w=t[14].default,g=Ie(w,t,t[13],null);return{c(){e=P("button"),g&&g.c(),c(e,"class",i="btn "+t[1]+" svelte-1anemql"),c(e,"style",n=t[2]||null),e.disabled=o=t[3]??null,c(e,"aria-hidden",l=t[5]??null),c(e,"aria-label",r=t[6]??null),c(e,"aria-keyshortcuts",a=t[7]??null),c(e,"aria-expanded",s=t[8]??null),c(e,"data-testid",u=t[4]??null),c(e,"tabindex",t[9])},m(C,b){S(C,e,b),g&&g.m(e,null),t[16](e),f=!0,p||(h=[he(e,"pointerdown",st(t[15])),he(e,"click",st(function(){Ei(t[10]===to?null:t[10])&&(t[10]===to?null:t[10]).apply(this,arguments)})),he(e,"focus",Wt(function(){Ei(t[11]===to?null:t[11])&&(t[11]===to?null:t[11]).apply(this,arguments)})),he(e,"blur",Wt(function(){Ei(t[12]===to?null:t[12])&&(t[12]===to?null:t[12]).apply(this,arguments)}))],p=!0)},p(C,[b]){t=C,g&&g.p&&(!f||b&8192)&&Ae(g,w,t,t[13],f?Ee(w,t[13],b,null):Le(t[13]),null),(!f||b&2&&i!==(i="btn "+t[1]+" svelte-1anemql"))&&c(e,"class",i),(!f||b&4&&n!==(n=t[2]||null))&&c(e,"style",n),(!f||b&8&&o!==(o=t[3]??null))&&(e.disabled=o),(!f||b&32&&l!==(l=t[5]??null))&&c(e,"aria-hidden",l),(!f||b&64&&r!==(r=t[6]??null))&&c(e,"aria-label",r),(!f||b&128&&a!==(a=t[7]??null))&&c(e,"aria-keyshortcuts",a),(!f||b&256&&s!==(s=t[8]??null))&&c(e,"aria-expanded",s),(!f||b&16&&u!==(u=t[4]??null))&&c(e,"data-testid",u),(!f||b&512)&&c(e,"tabindex",t[9])},i(C){f||(d(g,C),f=!0)},o(C){_(g,C),f=!1},d(C){C&&k(e),g&&g.d(C),t[16](null),p=!1,tt(h)}}}function _2(t,e,i){let{$$slots:n={},$$scope:o}=e,{className:l=""}=e,{style:r=""}=e,{disabled:a=void 0}=e,{testId:s=void 0}=e,{ariaHidden:u=void 0}=e,{ariaLabel:f=void 0}=e,{ref:p=void 0}=e,{ariaKeyShortCut:h=void 0}=e,{ariaExpanded:w=void 0}=e,{tabIndex:g=0}=e,{click:C=to}=e,{focus:b=to}=e,{blur:E=to}=e;function v(T){Pn.call(this,t,T)}function y(T){be[T?"unshift":"push"](()=>{p=T,i(0,p)})}return t.$$set=T=>{"className"in T&&i(1,l=T.className),"style"in T&&i(2,r=T.style),"disabled"in T&&i(3,a=T.disabled),"testId"in T&&i(4,s=T.testId),"ariaHidden"in T&&i(5,u=T.ariaHidden),"ariaLabel"in T&&i(6,f=T.ariaLabel),"ref"in T&&i(0,p=T.ref),"ariaKeyShortCut"in T&&i(7,h=T.ariaKeyShortCut),"ariaExpanded"in T&&i(8,w=T.ariaExpanded),"tabIndex"in T&&i(9,g=T.tabIndex),"click"in T&&i(10,C=T.click),"focus"in T&&i(11,b=T.focus),"blur"in T&&i(12,E=T.blur),"$$scope"in T&&i(13,o=T.$$scope)},[p,l,r,a,s,u,f,h,w,g,C,b,E,o,n,v,y]}var ta=class extends H{constructor(e){super(),U(this,e,_2,p2,F,{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},m2)}},ht=ta;function h2(t){Pe(t,"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 yd(t){let e,i,n,o,l,r=t[2]&&wd(t);return{c(){e=P("div"),i=P("h3"),n=Re(t[3]),o=V(),r&&r.c(),c(i,"class","modal-title svelte-1witlsj"),c(e,"class","modal-header svelte-1witlsj")},m(a,s){S(a,e,s),m(e,i),m(i,n),m(e,o),r&&r.m(e,null),l=!0},p(a,s){(!l||s&8)&&Ge(n,a[3]),a[2]?r?(r.p(a,s),s&4&&d(r,1)):(r=wd(a),r.c(),d(r,1),r.m(e,null)):r&&(me(),_(r,1,1,()=>{r=null}),pe())},i(a){l||(d(r),l=!0)},o(a){_(r),l=!1},d(a){a&&k(e),r&&r.d()}}}function wd(t){let e,i;return e=new ht({props:{click:t[0],testId:"close-modal",style:"padding: 0; height: 24px; width: 24px",ariaLabel:O("hotkey_map_modal_close_btn_text"),$$slots:{default:[g2]},$$scope:{ctx:t}}}),{c(){M(e.$$.fragment)},m(n,o){A(e,n,o),i=!0},p(n,o){let l={};o&1&&(l.click=n[0]),o&32&&(l.$$scope={dirty:o,ctx:n}),e.$set(l)},i(n){i||(d(e.$$.fragment,n),i=!0)},o(n){_(e.$$.fragment,n),i=!1},d(n){L(e,n)}}}function g2(t){let e,i;return e=new vd({}),{c(){M(e.$$.fragment)},m(n,o){A(e,n,o),i=!0},i(n){i||(d(e.$$.fragment,n),i=!0)},o(n){_(e.$$.fragment,n),i=!1},d(n){L(e,n)}}}function b2(t){let e,i,n,o,l,r,a=t[1]&&yd(t),s=t[4].default,u=Ie(s,t,t[5],null);return{c(){e=P("div"),i=P("div"),a&&a.c(),n=V(),o=P("div"),l=P("div"),u&&u.c(),c(l,"class","modal-main svelte-1witlsj"),c(o,"class","modal-scroll svelte-1witlsj"),c(i,"class","modal-container svelte-1witlsj"),c(e,"class","modal-overlay svelte-1witlsj")},m(f,p){S(f,e,p),m(e,i),a&&a.m(i,null),m(i,n),m(i,o),m(o,l),u&&u.m(l,null),r=!0},p(f,[p]){f[1]?a?(a.p(f,p),p&2&&d(a,1)):(a=yd(f),a.c(),d(a,1),a.m(i,n)):a&&(me(),_(a,1,1,()=>{a=null}),pe()),u&&u.p&&(!r||p&32)&&Ae(u,s,f,f[5],r?Ee(s,f[5],p,null):Le(f[5]),null)},i(f){r||(d(a),d(u,f),r=!0)},o(f){_(a),_(u,f),r=!1},d(f){f&&k(e),a&&a.d(),u&&u.d(f)}}}function v2(t,e,i){let{$$slots:n={},$$scope:o}=e,{onClose:l}=e,{showHeader:r=!0}=e,{showCloseCross:a=!0}=e,{title:s}=e;return t.$$set=u=>{"onClose"in u&&i(0,l=u.onClose),"showHeader"in u&&i(1,r=u.showHeader),"showCloseCross"in u&&i(2,a=u.showCloseCross),"title"in u&&i(3,s=u.title),"$$scope"in u&&i(5,o=u.$$scope)},[l,r,a,s,n,o]}var ia=class extends H{constructor(e){super(),U(this,e,v2,b2,F,{onClose:0,showHeader:1,showCloseCross:2,title:3},h2)}},kd=ia;var y2=new Set(["BR"]),na=t=>{let e=document.createElement("DIV");e.innerHTML=t;let i=e.querySelectorAll("*"),n=i.length;for(;n--;){let o=i[n],l=o.tagName;y2.has(l)||o.parentElement?.removeChild(o)}return e.innerHTML};function w2(t){Pe(t,"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 Sd(t,e,i){let n=t.slice();return n[5]=e[i].title,n[6]=e[i].items,n}function Cd(t,e,i){let n=t.slice();return n[9]=e[i].description,n[10]=e[i].value,n}function Pd(t){let e,i,n=na(t[9])+"",o,l,r=t[10]+"",a,s;return{c(){e=P("li"),i=P("span"),o=V(),l=P("span"),a=Re(r),s=V(),c(i,"class","hot-key-map-item-description svelte-quklnq"),c(l,"class","hot-key-map-item-value svelte-quklnq"),c(e,"class","hot-key-map-item svelte-quklnq")},m(u,f){S(u,e,f),m(e,i),i.innerHTML=n,m(e,o),m(e,l),m(l,a),m(e,s)},p(u,f){f&1&&n!==(n=na(u[9])+"")&&(i.innerHTML=n),f&1&&r!==(r=u[10]+"")&&Ge(a,r)},d(u){u&&k(e)}}}function Td(t){let e,i,n=t[5]+"",o,l,r,a,s=Pt(t[6]),u=[];for(let f=0;f<s.length;f+=1)u[f]=Pd(Cd(t,s,f));return{c(){e=P("div"),i=P("h5"),o=Re(n),l=V(),r=P("ul");for(let f=0;f<u.length;f+=1)u[f].c();a=V(),c(i,"class","hot-key-map-group-title svelte-quklnq"),c(r,"class","hot-key-map-group-items svelte-quklnq"),c(e,"class","hot-key-map-group svelte-quklnq")},m(f,p){S(f,e,p),m(e,i),m(i,o),m(e,l),m(e,r);for(let h=0;h<u.length;h+=1)u[h]&&u[h].m(r,null);m(e,a)},p(f,p){if(p&1&&n!==(n=f[5]+"")&&Ge(o,n),p&1){s=Pt(f[6]);let h;for(h=0;h<s.length;h+=1){let w=Cd(f,s,h);u[h]?u[h].p(w,p):(u[h]=Pd(w),u[h].c(),u[h].m(r,null))}for(;h<u.length;h+=1)u[h].d(1);u.length=s.length}},d(f){f&&k(e),Ai(u,f)}}}function k2(t){let e,i=Pt(t[0].groups),n=[];for(let o=0;o<i.length;o+=1)n[o]=Td(Sd(t,i,o));return{c(){e=P("div");for(let o=0;o<n.length;o+=1)n[o].c();c(e,"class","hot-key-map svelte-quklnq")},m(o,l){S(o,e,l);for(let r=0;r<n.length;r+=1)n[r]&&n[r].m(e,null)},p(o,l){if(l&1){i=Pt(o[0].groups);let r;for(r=0;r<i.length;r+=1){let a=Sd(o,i,r);n[r]?n[r].p(a,l):(n[r]=Td(a),n[r].c(),n[r].m(e,null))}for(;r<n.length;r+=1)n[r].d(1);n.length=i.length}},d(o){o&&k(e),Ai(n,o)}}}function S2(t){let e,i;return e=new kd({props:{title:t[0].title,onClose:t[2],$$slots:{default:[k2]},$$scope:{ctx:t}}}),{c(){M(e.$$.fragment)},m(n,o){A(e,n,o),i=!0},p(n,[o]){let l={};o&1&&(l.title=n[0].title),o&8193&&(l.$$scope={dirty:o,ctx:n}),e.$set(l)},i(n){i||(d(e.$$.fragment,n),i=!0)},o(n){_(e.$$.fragment,n),i=!1},d(n){L(e,n)}}}function C2(t,e,i){let n,o=it(),{data:l,show:r}=o.ui.modals.hotKeyMap;return D(t,l,s=>i(0,n=s)),[n,l,()=>{r.set(!1)}]}var oa=class extends H{constructor(e){super(),U(this,e,C2,S2,F,{},w2)}},Id=oa;import{noop as zu}from"@vkontakte/videoplayer-shared";import{ChromecastState as _m,PlaybackState as Lu}from"@vkontakte/videoplayer-core";import{VideoQuality as wg}from"@vkontakte/videoplayer-core";var Oo={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"},Ed={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 P2=t=>Oo[t]??Oo[Ed[t]]??void 0,vr=(t,e)=>String(e.findIndex(i=>i.id===t.id)+1),io=(t,e)=>{if(!t)return"";let{language:i,label:n}=t,o;if(i==="und"?o=void 0:i&&(o=P2(i)??i),n&&i&&o){let r=e.filter(a=>a.label===n&&a.language===i);if(r.length===1)return O("audio_stream_display_language_label",{language:o,label:n});{let a=vr(t,r);return O("audio_stream_display_language_label_index",{language:o,label:n,index:a})}}if(n){let r=e.filter(a=>a.label===n);if(r.length===1)return n;{let a=vr(t,r);return O("audio_stream_display_label_index",{label:n,index:a})}}if(i&&o){let r=e.filter(a=>a.language===i);if(r.length===1)return o;{let a=vr(t,r);return O("audio_stream_display_language_index",{language:o,index:a})}}let l=vr(t,e);return O("audio_stream_display_unknown",{index:l})};import"@vkontakte/videoplayer-shared";function T2(t){Pe(t,"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 I2(t){let e,i,n=t[1].default,o=Ie(n,t,t[0],null);return{c(){e=P("div"),o&&o.c(),c(e,"class","pillow svelte-1oe0j8n")},m(l,r){S(l,e,r),o&&o.m(e,null),i=!0},p(l,[r]){o&&o.p&&(!i||r&1)&&Ae(o,n,l,l[0],i?Ee(n,l[0],r,null):Le(l[0]),null)},i(l){i||(d(o,l),i=!0)},o(l){_(o,l),i=!1},d(l){l&&k(e),o&&o.d(l)}}}function E2(t,e,i){let{$$slots:n={},$$scope:o}=e;return t.$$set=l=>{"$$scope"in l&&i(0,o=l.$$scope)},[o,n]}var la=class extends H{constructor(e){super(),U(this,e,E2,I2,F,{},T2)}},Ad=la;import{VideoQuality as Ll}from"@vkontakte/videoplayer-core";function A2(t){let e,i,n,o,l=t[2].default,r=Ie(l,t,t[1],null),a=[{xmlns:"http://www.w3.org/2000/svg"},{width:"9"},{height:"5"},{fill:"none"},{role:"img"},t[0]],s={};for(let u=0;u<a.length;u+=1)s=ue(s,a[u]);return{c(){e=R("svg"),r&&r.c(),i=R("path"),n=R("path"),c(i,"fill","currentColor"),c(i,"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"),c(n,"fill","currentColor"),c(n,"fill-rule","evenodd"),c(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"),c(n,"clip-rule","evenodd"),ye(e,s)},m(u,f){S(u,e,f),r&&r.m(e,null),m(e,i),m(e,n),o=!0},p(u,[f]){r&&r.p&&(!o||f&2)&&Ae(r,l,u,u[1],o?Ee(l,u[1],f,null):Le(u[1]),null),ye(e,s=Be(a,[{xmlns:"http://www.w3.org/2000/svg"},{width:"9"},{height:"5"},{fill:"none"},{role:"img"},f&1&&u[0]]))},i(u){o||(d(r,u),o=!0)},o(u){_(r,u),o=!1},d(u){u&&k(e),r&&r.d(u)}}}function L2(t,e,i){let{$$slots:n={},$$scope:o}=e;return t.$$set=l=>{i(0,e=ue(ue({},e),ve(l))),"$$scope"in l&&i(1,o=l.$$scope)},e=ve(e),[e,o,n]}var ra=class extends H{constructor(e){super(),U(this,e,L2,A2,F,{})}},Ld=ra;function M2(t){let e,i,n,o,l=t[2].default,r=Ie(l,t,t[1],null),a=[{xmlns:"http://www.w3.org/2000/svg"},{width:"9"},{height:"5"},{fill:"none"},{role:"img"},t[0]],s={};for(let u=0;u<a.length;u+=1)s=ue(s,a[u]);return{c(){e=R("svg"),r&&r.c(),i=R("path"),n=R("path"),c(i,"fill","currentColor"),c(i,"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"),c(n,"fill","currentColor"),c(n,"fill-rule","evenodd"),c(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"),c(n,"clip-rule","evenodd"),ye(e,s)},m(u,f){S(u,e,f),r&&r.m(e,null),m(e,i),m(e,n),o=!0},p(u,[f]){r&&r.p&&(!o||f&2)&&Ae(r,l,u,u[1],o?Ee(l,u[1],f,null):Le(u[1]),null),ye(e,s=Be(a,[{xmlns:"http://www.w3.org/2000/svg"},{width:"9"},{height:"5"},{fill:"none"},{role:"img"},f&1&&u[0]]))},i(u){o||(d(r,u),o=!0)},o(u){_(r,u),o=!1},d(u){u&&k(e),r&&r.d(u)}}}function V2(t,e,i){let{$$slots:n={},$$scope:o}=e;return t.$$set=l=>{i(0,e=ue(ue({},e),ve(l))),"$$scope"in l&&i(1,o=l.$$scope)},e=ve(e),[e,o,n]}var sa=class extends H{constructor(e){super(),U(this,e,V2,M2,F,{})}},Md=sa;function R2(t){let e,i,n,o=t[2].default,l=Ie(o,t,t[1],null),r=[{xmlns:"http://www.w3.org/2000/svg"},{width:"9"},{height:"5"},{fill:"none"},{role:"img"},t[0]],a={};for(let s=0;s<r.length;s+=1)a=ue(a,r[s]);return{c(){e=R("svg"),l&&l.c(),i=R("path"),c(i,"fill","currentColor"),c(i,"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"),ye(e,a)},m(s,u){S(s,e,u),l&&l.m(e,null),m(e,i),n=!0},p(s,[u]){l&&l.p&&(!n||u&2)&&Ae(l,o,s,s[1],n?Ee(o,s[1],u,null):Le(s[1]),null),ye(e,a=Be(r,[{xmlns:"http://www.w3.org/2000/svg"},{width:"9"},{height:"5"},{fill:"none"},{role:"img"},u&1&&s[0]]))},i(s){n||(d(l,s),n=!0)},o(s){_(l,s),n=!1},d(s){s&&k(e),l&&l.d(s)}}}function B2(t,e,i){let{$$slots:n={},$$scope:o}=e;return t.$$set=l=>{i(0,e=ue(ue({},e),ve(l))),"$$scope"in l&&i(1,o=l.$$scope)},e=ve(e),[e,o,n]}var aa=class extends H{constructor(e){super(),U(this,e,B2,R2,F,{})}},Vd=aa;function q2(t){let e,i,n,o=t[2].default,l=Ie(o,t,t[1],null),r=[{xmlns:"http://www.w3.org/2000/svg"},{width:"13"},{height:"5"},{fill:"none"},{role:"img"},t[0]],a={};for(let s=0;s<r.length;s+=1)a=ue(a,r[s]);return{c(){e=R("svg"),l&&l.c(),i=R("path"),c(i,"fill","currentColor"),c(i,"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"),ye(e,a)},m(s,u){S(s,e,u),l&&l.m(e,null),m(e,i),n=!0},p(s,[u]){l&&l.p&&(!n||u&2)&&Ae(l,o,s,s[1],n?Ee(o,s[1],u,null):Le(s[1]),null),ye(e,a=Be(r,[{xmlns:"http://www.w3.org/2000/svg"},{width:"13"},{height:"5"},{fill:"none"},{role:"img"},u&1&&s[0]]))},i(s){n||(d(l,s),n=!0)},o(s){_(l,s),n=!1},d(s){s&&k(e),l&&l.d(s)}}}function D2(t,e,i){let{$$slots:n={},$$scope:o}=e;return t.$$set=l=>{i(0,e=ue(ue({},e),ve(l))),"$$scope"in l&&i(1,o=l.$$scope)},e=ve(e),[e,o,n]}var ua=class extends H{constructor(e){super(),U(this,e,D2,q2,F,{})}},yr=ua;function N2(t){let e,i,n,o,l=t[2].default,r=Ie(l,t,t[1],null),a=[{xmlns:"http://www.w3.org/2000/svg"},{width:"15"},{height:"7"},{fill:"none"},{role:"img"},t[0]],s={};for(let u=0;u<a.length;u+=1)s=ue(s,a[u]);return{c(){e=R("svg"),r&&r.c(),i=R("path"),n=R("path"),c(i,"fill","currentColor"),c(i,"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"),c(n,"fill","currentColor"),c(n,"fill-rule","evenodd"),c(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"),c(n,"clip-rule","evenodd"),ye(e,s)},m(u,f){S(u,e,f),r&&r.m(e,null),m(e,i),m(e,n),o=!0},p(u,[f]){r&&r.p&&(!o||f&2)&&Ae(r,l,u,u[1],o?Ee(l,u[1],f,null):Le(u[1]),null),ye(e,s=Be(a,[{xmlns:"http://www.w3.org/2000/svg"},{width:"15"},{height:"7"},{fill:"none"},{role:"img"},f&1&&u[0]]))},i(u){o||(d(r,u),o=!0)},o(u){_(r,u),o=!1},d(u){u&&k(e),r&&r.d(u)}}}function O2(t,e,i){let{$$slots:n={},$$scope:o}=e;return t.$$set=l=>{i(0,e=ue(ue({},e),ve(l))),"$$scope"in l&&i(1,o=l.$$scope)},e=ve(e),[e,o,n]}var ca=class extends H{constructor(e){super(),U(this,e,O2,N2,F,{})}},wr=ca;var _o=t=>{switch(t){case Ll.Q_720P:return Vd;case Ll.Q_1080P:return yr;case Ll.Q_1440P:return wr;case Ll.Q_2160P:return Ld;case Ll.Q_4320P:return Md}};function F2(t){let e,i,n,o=t[2].default,l=Ie(o,t,t[1],null),r=[{xmlns:"http://www.w3.org/2000/svg"},{width:"24"},{height:"24"},{fill:"none"},{"aria-hidden":"true"},{"data-testid":"settings-mobile-icon"},{role:"img"},t[0]],a={};for(let s=0;s<r.length;s+=1)a=ue(a,r[s]);return{c(){e=R("svg"),l&&l.c(),i=R("path"),c(i,"fill","#fff"),c(i,"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"),ye(e,a)},m(s,u){S(s,e,u),l&&l.m(e,null),m(e,i),n=!0},p(s,[u]){l&&l.p&&(!n||u&2)&&Ae(l,o,s,s[1],n?Ee(o,s[1],u,null):Le(s[1]),null),ye(e,a=Be(r,[{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(l,s),n=!0)},o(s){_(l,s),n=!1},d(s){s&&k(e),l&&l.d(s)}}}function z2(t,e,i){let{$$slots:n={},$$scope:o}=e;return t.$$set=l=>{i(0,e=ue(ue({},e),ve(l))),"$$scope"in l&&i(1,o=l.$$scope)},e=ve(e),[e,o,n]}var fa=class extends H{constructor(e){super(),U(this,e,z2,F2,F,{})}},Rd=fa;function H2(t){let e,i,n,o,l=t[2].default,r=Ie(l,t,t[1],null),a=[{xmlns:"http://www.w3.org/2000/svg"},{width:"24"},{height:"24"},{fill:"none"},{"data-testid":"settings-icon"},{role:"img"},t[0]],s={};for(let u=0;u<a.length;u+=1)s=ue(s,a[u]);return{c(){e=R("svg"),r&&r.c(),i=R("path"),n=R("path"),c(i,"fill","#fff"),c(i,"fill-rule","evenodd"),c(i,"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"),c(i,"clip-rule","evenodd"),c(n,"fill","#fff"),c(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"),c(n,"class","_full"),ye(e,s)},m(u,f){S(u,e,f),r&&r.m(e,null),m(e,i),m(e,n),o=!0},p(u,[f]){r&&r.p&&(!o||f&2)&&Ae(r,l,u,u[1],o?Ee(l,u[1],f,null):Le(u[1]),null),ye(e,s=Be(a,[{xmlns:"http://www.w3.org/2000/svg"},{width:"24"},{height:"24"},{fill:"none"},{"data-testid":"settings-icon"},{role:"img"},f&1&&u[0]]))},i(u){o||(d(r,u),o=!0)},o(u){_(r,u),o=!1},d(u){u&&k(e),r&&r.d(u)}}}function U2(t,e,i){let{$$slots:n={},$$scope:o}=e;return t.$$set=l=>{i(0,e=ue(ue({},e),ve(l))),"$$scope"in l&&i(1,o=l.$$scope)},e=ve(e),[e,o,n]}var da=class extends H{constructor(e){super(),U(this,e,U2,H2,F,{})}},Bd=da;function W2(t){Pe(t,"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 K2(t){let e,i,n,o,l=t[1]&&qd(t);return n=new Bd({props:{"data-testid":t[1]?"settings-icon--labeled":"settings-icon"}}),{c(){e=P("div"),l&&l.c(),i=V(),M(n.$$.fragment),c(e,"class","icon svelte-8t5w85"),c(e,"aria-hidden","true"),B(e,"triple",t[2])},m(r,a){S(r,e,a),l&&l.m(e,null),m(e,i),A(n,e,null),o=!0},p(r,a){r[1]?l?(l.p(r,a),a&2&&d(l,1)):(l=qd(r),l.c(),d(l,1),l.m(e,i)):l&&(me(),_(l,1,1,()=>{l=null}),pe());let s={};a&2&&(s["data-testid"]=r[1]?"settings-icon--labeled":"settings-icon"),n.$set(s),(!o||a&4)&&B(e,"triple",r[2])},i(r){o||(d(l),d(n.$$.fragment,r),o=!0)},o(r){_(l),_(n.$$.fragment,r),o=!1},d(r){r&&k(e),l&&l.d(),L(n)}}}function j2(t){let e,i;return e=new Rd({}),{c(){M(e.$$.fragment)},m(n,o){A(e,n,o),i=!0},p:Ce,i(n){i||(d(e.$$.fragment,n),i=!0)},o(n){_(e.$$.fragment,n),i=!1},d(n){L(e,n)}}}function qd(t){let e,i;return e=new Ad({props:{$$slots:{default:[G2]},$$scope:{ctx:t}}}),{c(){M(e.$$.fragment)},m(n,o){A(e,n,o),i=!0},p(n,o){let l={};o&18&&(l.$$scope={dirty:o,ctx:n}),e.$set(l)},i(n){i||(d(e.$$.fragment,n),i=!0)},o(n){_(e.$$.fragment,n),i=!1},d(n){L(e,n)}}}function G2(t){let e,i,n;var o=t[1];function l(r,a){return{}}return o&&(e=bn(o,l(t))),{c(){e&&M(e.$$.fragment),i=ct()},m(r,a){e&&A(e,r,a),S(r,i,a),n=!0},p(r,a){if(a&2&&o!==(o=r[1])){if(e){me();let s=e;_(s.$$.fragment,1,0,()=>{L(s,1)}),pe()}o?(e=bn(o,l(r,a)),M(e.$$.fragment),d(e.$$.fragment,1),A(e,i.parentNode,i)):e=null}},i(r){n||(e&&d(e.$$.fragment,r),n=!0)},o(r){e&&_(e.$$.fragment,r),n=!1},d(r){r&&k(i),e&&L(e,r)}}}function Q2(t){let e,i,n,o,l=[j2,K2],r=[];function a(s,u){return s[0]?0:1}return e=a(t,-1),i=r[e]=l[e](t),{c(){i.c(),n=ct()},m(s,u){r[e].m(s,u),S(s,n,u),o=!0},p(s,[u]){let f=e;e=a(s,u),e===f?r[e].p(s,u):(me(),_(r[f],1,1,()=>{r[f]=null}),pe(),i=r[e],i?i.p(s,u):(i=r[e]=l[e](s),i.c()),d(i,1),i.m(n.parentNode,n))},i(s){o||(d(i),o=!0)},o(s){_(i),o=!1},d(s){s&&k(n),r[e].d(s)}}}function Y2(t,e,i){let n,{isMobile:o=!1}=e,{currentQuality:l=void 0}=e,r;return t.$$set=a=>{"isMobile"in a&&i(0,o=a.isMobile),"currentQuality"in a&&i(3,l=a.currentQuality)},t.$$.update=()=>{t.$$.dirty&8&&i(1,n=_o(l)),t.$$.dirty&2&&i(2,r=!!n&&[yr,wr].includes(n))},[o,n,r,l]}var ma=class extends H{constructor(e){super(),U(this,e,Y2,Q2,F,{isMobile:0,currentQuality:3},W2)}},kr=ma;function Z2(t){let e,i,n,o=t[2].default,l=Ie(o,t,t[1],null),r=[{xmlns:"http://www.w3.org/2000/svg"},{width:"22"},{height:"18"},{fill:"none"},{"aria-hidden":"true"},{"data-testid":"subtitle-empty-icon"},{role:"img"},t[0]],a={};for(let s=0;s<r.length;s+=1)a=ue(a,r[s]);return{c(){e=R("svg"),l&&l.c(),i=R("path"),c(i,"fill","#fff"),c(i,"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"),ye(e,a)},m(s,u){S(s,e,u),l&&l.m(e,null),m(e,i),n=!0},p(s,[u]){l&&l.p&&(!n||u&2)&&Ae(l,o,s,s[1],n?Ee(o,s[1],u,null):Le(s[1]),null),ye(e,a=Be(r,[{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(l,s),n=!0)},o(s){_(l,s),n=!1},d(s){s&&k(e),l&&l.d(s)}}}function X2(t,e,i){let{$$slots:n={},$$scope:o}=e;return t.$$set=l=>{i(0,e=ue(ue({},e),ve(l))),"$$scope"in l&&i(1,o=l.$$scope)},e=ve(e),[e,o,n]}var pa=class extends H{constructor(e){super(),U(this,e,X2,Z2,F,{})}},Sr=pa;function J2(t){let e,i,n,o=t[2].default,l=Ie(o,t,t[1],null),r=[{xmlns:"http://www.w3.org/2000/svg"},{width:"16"},{height:"19"},{fill:"none"},{"aria-hidden":"true"},{"data-testid":"download-icon"},{role:"img"},t[0]],a={};for(let s=0;s<r.length;s+=1)a=ue(a,r[s]);return{c(){e=R("svg"),l&&l.c(),i=R("path"),c(i,"fill","#fff"),c(i,"fill-rule","evenodd"),c(i,"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"),c(i,"clip-rule","evenodd"),ye(e,a)},m(s,u){S(s,e,u),l&&l.m(e,null),m(e,i),n=!0},p(s,[u]){l&&l.p&&(!n||u&2)&&Ae(l,o,s,s[1],n?Ee(o,s[1],u,null):Le(s[1]),null),ye(e,a=Be(r,[{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(l,s),n=!0)},o(s){_(l,s),n=!1},d(s){s&&k(e),l&&l.d(s)}}}function x2(t,e,i){let{$$slots:n={},$$scope:o}=e;return t.$$set=l=>{i(0,e=ue(ue({},e),ve(l))),"$$scope"in l&&i(1,o=l.$$scope)},e=ve(e),[e,o,n]}var _a=class extends H{constructor(e){super(),U(this,e,x2,J2,F,{})}},Dd=_a;function $2(t){let e,i,n,o=t[2].default,l=Ie(o,t,t[1],null),r=[{xmlns:"http://www.w3.org/2000/svg"},{width:"18"},{height:"17"},{fill:"none"},{"aria-hidden":"true"},{"data-testid":"traffic-saving-icon"},{role:"img"},t[0]],a={};for(let s=0;s<r.length;s+=1)a=ue(a,r[s]);return{c(){e=R("svg"),l&&l.c(),i=R("path"),c(i,"fill","#fff"),c(i,"fill-rule","evenodd"),c(i,"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"),c(i,"clip-rule","evenodd"),ye(e,a)},m(s,u){S(s,e,u),l&&l.m(e,null),m(e,i),n=!0},p(s,[u]){l&&l.p&&(!n||u&2)&&Ae(l,o,s,s[1],n?Ee(o,s[1],u,null):Le(s[1]),null),ye(e,a=Be(r,[{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(l,s),n=!0)},o(s){_(l,s),n=!1},d(s){s&&k(e),l&&l.d(s)}}}function eg(t,e,i){let{$$slots:n={},$$scope:o}=e;return t.$$set=l=>{i(0,e=ue(ue({},e),ve(l))),"$$scope"in l&&i(1,o=l.$$scope)},e=ve(e),[e,o,n]}var ha=class extends H{constructor(e){super(),U(this,e,eg,$2,F,{})}},Nd=ha;function tg(t){let e,i,n,o,l,r=t[2].default,a=Ie(r,t,t[1],null),s=[{xmlns:"http://www.w3.org/2000/svg"},{width:"24"},{height:"24"},{"aria-hidden":"true"},{"data-testid":"play-speed-icon"},{role:"img"},t[0]],u={};for(let f=0;f<s.length;f+=1)u=ue(u,s[f]);return{c(){e=R("svg"),a&&a.c(),i=R("g"),n=R("path"),o=R("path"),c(n,"d","M0 0h24v24H0z"),c(o,"fill","#fff"),c(o,"fill-rule","nonzero"),c(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"),c(i,"fill","none"),c(i,"fill-rule","evenodd"),ye(e,u)},m(f,p){S(f,e,p),a&&a.m(e,null),m(e,i),m(i,n),m(i,o),l=!0},p(f,[p]){a&&a.p&&(!l||p&2)&&Ae(a,r,f,f[1],l?Ee(r,f[1],p,null):Le(f[1]),null),ye(e,u=Be(s,[{xmlns:"http://www.w3.org/2000/svg"},{width:"24"},{height:"24"},{"aria-hidden":"true"},{"data-testid":"play-speed-icon"},{role:"img"},p&1&&f[0]]))},i(f){l||(d(a,f),l=!0)},o(f){_(a,f),l=!1},d(f){f&&k(e),a&&a.d(f)}}}function ig(t,e,i){let{$$slots:n={},$$scope:o}=e;return t.$$set=l=>{i(0,e=ue(ue({},e),ve(l))),"$$scope"in l&&i(1,o=l.$$scope)},e=ve(e),[e,o,n]}var ga=class extends H{constructor(e){super(),U(this,e,ig,tg,F,{})}},Od=ga;function ng(t){let e,i,n,o=t[2].default,l=Ie(o,t,t[1],null),r=[{xmlns:"http://www.w3.org/2000/svg"},{width:"18"},{height:"15"},{fill:"none"},{"aria-hidden":"true"},{"data-testid":"audio-languages-icon"},{role:"img"},t[0]],a={};for(let s=0;s<r.length;s+=1)a=ue(a,r[s]);return{c(){e=R("svg"),l&&l.c(),i=R("path"),c(i,"fill","#fff"),c(i,"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"),ye(e,a)},m(s,u){S(s,e,u),l&&l.m(e,null),m(e,i),n=!0},p(s,[u]){l&&l.p&&(!n||u&2)&&Ae(l,o,s,s[1],n?Ee(o,s[1],u,null):Le(s[1]),null),ye(e,a=Be(r,[{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(l,s),n=!0)},o(s){_(l,s),n=!1},d(s){s&&k(e),l&&l.d(s)}}}function og(t,e,i){let{$$slots:n={},$$scope:o}=e;return t.$$set=l=>{i(0,e=ue(ue({},e),ve(l))),"$$scope"in l&&i(1,o=l.$$scope)},e=ve(e),[e,o,n]}var ba=class extends H{constructor(e){super(),U(this,e,og,ng,F,{})}},Fd=ba;function lg(t){let e,i,n,o=t[2].default,l=Ie(o,t,t[1],null),r=[{xmlns:"http://www.w3.org/2000/svg"},{width:"12"},{height:"7"},{fill:"none"},{"aria-hidden":"true"},{role:"img"},t[0]],a={};for(let s=0;s<r.length;s+=1)a=ue(a,r[s]);return{c(){e=R("svg"),l&&l.c(),i=R("path"),c(i,"fill","#fff"),c(i,"fill-opacity",".72"),c(i,"fill-rule","evenodd"),c(i,"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"),c(i,"clip-rule","evenodd"),ye(e,a)},m(s,u){S(s,e,u),l&&l.m(e,null),m(e,i),n=!0},p(s,[u]){l&&l.p&&(!n||u&2)&&Ae(l,o,s,s[1],n?Ee(o,s[1],u,null):Le(s[1]),null),ye(e,a=Be(r,[{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(l,s),n=!0)},o(s){_(l,s),n=!1},d(s){s&&k(e),l&&l.d(s)}}}function rg(t,e,i){let{$$slots:n={},$$scope:o}=e;return t.$$set=l=>{i(0,e=ue(ue({},e),ve(l))),"$$scope"in l&&i(1,o=l.$$scope)},e=ve(e),[e,o,n]}var va=class extends H{constructor(e){super(),U(this,e,rg,lg,F,{})}},zd=va;function sg(t){let e,i,n,o=t[2].default,l=Ie(o,t,t[1],null),r=[{xmlns:"http://www.w3.org/2000/svg"},{width:"12"},{height:"16"},{fill:"none"},{"aria-hidden":"true"},{role:"img"},t[0]],a={};for(let s=0;s<r.length;s+=1)a=ue(a,r[s]);return{c(){e=R("svg"),l&&l.c(),i=R("path"),c(i,"fill","#fff"),c(i,"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"),ye(e,a)},m(s,u){S(s,e,u),l&&l.m(e,null),m(e,i),n=!0},p(s,[u]){l&&l.p&&(!n||u&2)&&Ae(l,o,s,s[1],n?Ee(o,s[1],u,null):Le(s[1]),null),ye(e,a=Be(r,[{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(l,s),n=!0)},o(s){_(l,s),n=!1},d(s){s&&k(e),l&&l.d(s)}}}function ag(t,e,i){let{$$slots:n={},$$scope:o}=e;return t.$$set=l=>{i(0,e=ue(ue({},e),ve(l))),"$$scope"in l&&i(1,o=l.$$scope)},e=ve(e),[e,o,n]}var ya=class extends H{constructor(e){super(),U(this,e,ag,sg,F,{})}},Hd=ya;function ug(t){let e,i;return e=new Hd({props:{style:t[2],"data-testid":t[0]?"chevron-icon--right":"chevron-icon--left"}}),{c(){M(e.$$.fragment)},m(n,o){A(e,n,o),i=!0},p(n,o){let l={};o&4&&(l.style=n[2]),o&1&&(l["data-testid"]=n[0]?"chevron-icon--right":"chevron-icon--left"),e.$set(l)},i(n){i||(d(e.$$.fragment,n),i=!0)},o(n){_(e.$$.fragment,n),i=!1},d(n){L(e,n)}}}function cg(t){let e,i;return e=new zd({props:{style:t[2],"data-testid":t[0]?"chevron-icon--down":"chevron-icon--up"}}),{c(){M(e.$$.fragment)},m(n,o){A(e,n,o),i=!0},p(n,o){let l={};o&4&&(l.style=n[2]),o&1&&(l["data-testid"]=n[0]?"chevron-icon--down":"chevron-icon--up"),e.$set(l)},i(n){i||(d(e.$$.fragment,n),i=!0)},o(n){_(e.$$.fragment,n),i=!1},d(n){L(e,n)}}}function fg(t){let e,i,n,o,l=[cg,ug],r=[];function a(s,u){return s[1]?0:1}return e=a(t,-1),i=r[e]=l[e](t),{c(){i.c(),n=ct()},m(s,u){r[e].m(s,u),S(s,n,u),o=!0},p(s,[u]){let f=e;e=a(s,u),e===f?r[e].p(s,u):(me(),_(r[f],1,1,()=>{r[f]=null}),pe(),i=r[e],i?i.p(s,u):(i=r[e]=l[e](s),i.c()),d(i,1),i.m(n.parentNode,n))},i(s){o||(d(i),o=!0)},o(s){_(i),o=!1},d(s){s&&k(n),r[e].d(s)}}}function dg(t,e,i){let n,{direction:o="left"}=e,l,r;return t.$$set=a=>{"direction"in a&&i(3,o=a.direction)},t.$$.update=()=>{t.$$.dirty&8&&(i(1,l=["up","down"].includes(o)),i(0,r=["right","down"].includes(o))),t.$$.dirty&1&&i(2,n=r?"transform: rotate(180deg);":void 0)},[r,l,n,o]}var wa=class extends H{constructor(e){super(),U(this,e,dg,fg,F,{direction:3})}},Kn=wa;function mg(t){let e,i,n,o=t[2].default,l=Ie(o,t,t[1],null),r=[{xmlns:"http://www.w3.org/2000/svg"},{width:"24"},{height:"24"},{fill:"none"},{"aria-hidden":"true"},{"data-testid":"report-icon"},{role:"img"},t[0]],a={};for(let s=0;s<r.length;s+=1)a=ue(a,r[s]);return{c(){e=R("svg"),l&&l.c(),i=R("path"),c(i,"fill","#fff"),c(i,"fill-rule","evenodd"),c(i,"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"),c(i,"clip-rule","evenodd"),ye(e,a)},m(s,u){S(s,e,u),l&&l.m(e,null),m(e,i),n=!0},p(s,[u]){l&&l.p&&(!n||u&2)&&Ae(l,o,s,s[1],n?Ee(o,s[1],u,null):Le(s[1]),null),ye(e,a=Be(r,[{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(l,s),n=!0)},o(s){_(l,s),n=!1},d(s){s&&k(e),l&&l.d(s)}}}function pg(t,e,i){let{$$slots:n={},$$scope:o}=e;return t.$$set=l=>{i(0,e=ue(ue({},e),ve(l))),"$$scope"in l&&i(1,o=l.$$scope)},e=ve(e),[e,o,n]}var ka=class extends H{constructor(e){super(),U(this,e,pg,mg,F,{})}},Ud=ka;function _g(t){let e,i,n,o=t[2].default,l=Ie(o,t,t[1],null),r=[{xmlns:"http://www.w3.org/2000/svg"},{width:"16"},{height:"16"},{"aria-hidden":"true"},{"data-testid":"check-mark-icon"},{role:"img"},t[0]],a={};for(let s=0;s<r.length;s+=1)a=ue(a,r[s]);return{c(){e=R("svg"),l&&l.c(),i=R("path"),c(i,"fill","#fff"),c(i,"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"),ye(e,a)},m(s,u){S(s,e,u),l&&l.m(e,null),m(e,i),n=!0},p(s,[u]){l&&l.p&&(!n||u&2)&&Ae(l,o,s,s[1],n?Ee(o,s[1],u,null):Le(s[1]),null),ye(e,a=Be(r,[{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(l,s),n=!0)},o(s){_(l,s),n=!1},d(s){s&&k(e),l&&l.d(s)}}}function hg(t,e,i){let{$$slots:n={},$$scope:o}=e;return t.$$set=l=>{i(0,e=ue(ue({},e),ve(l))),"$$scope"in l&&i(1,o=l.$$scope)},e=ve(e),[e,o,n]}var Sa=class extends H{constructor(e){super(),U(this,e,hg,_g,F,{})}},Fo=Sa;function gg(t){let e,i,n,o=t[2].default,l=Ie(o,t,t[1],null),r=[{xmlns:"http://www.w3.org/2000/svg"},{width:"24"},{height:"24"},{fill:"none"},{"aria-hidden":"true"},{"data-testid":"copy-icon"},{role:"img"},t[0]],a={};for(let s=0;s<r.length;s+=1)a=ue(a,r[s]);return{c(){e=R("svg"),l&&l.c(),i=R("path"),c(i,"fill","#fff"),c(i,"fill-rule","evenodd"),c(i,"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"),c(i,"clip-rule","evenodd"),ye(e,a)},m(s,u){S(s,e,u),l&&l.m(e,null),m(e,i),n=!0},p(s,[u]){l&&l.p&&(!n||u&2)&&Ae(l,o,s,s[1],n?Ee(o,s[1],u,null):Le(s[1]),null),ye(e,a=Be(r,[{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(l,s),n=!0)},o(s){_(l,s),n=!1},d(s){s&&k(e),l&&l.d(s)}}}function bg(t,e,i){let{$$slots:n={},$$scope:o}=e;return t.$$set=l=>{i(0,e=ue(ue({},e),ve(l))),"$$scope"in l&&i(1,o=l.$$scope)},e=ve(e),[e,o,n]}var Ca=class extends H{constructor(e){super(),U(this,e,bg,gg,F,{})}},Wd=Ca;function vg(t){let e,i,n,o=t[2].default,l=Ie(o,t,t[1],null),r=[{xmlns:"http://www.w3.org/2000/svg"},{width:"24"},{height:"24"},{fill:"none"},{"aria-hidden":"true"},{"data-testid":"info-icon"},{role:"img"},t[0]],a={};for(let s=0;s<r.length;s+=1)a=ue(a,r[s]);return{c(){e=R("svg"),l&&l.c(),i=R("path"),c(i,"fill","#fff"),c(i,"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"),ye(e,a)},m(s,u){S(s,e,u),l&&l.m(e,null),m(e,i),n=!0},p(s,[u]){l&&l.p&&(!n||u&2)&&Ae(l,o,s,s[1],n?Ee(o,s[1],u,null):Le(s[1]),null),ye(e,a=Be(r,[{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(l,s),n=!0)},o(s){_(l,s),n=!1},d(s){s&&k(e),l&&l.d(s)}}}function yg(t,e,i){let{$$slots:n={},$$scope:o}=e;return t.$$set=l=>{i(0,e=ue(ue({},e),ve(l))),"$$scope"in l&&i(1,o=l.$$scope)},e=ve(e),[e,o,n]}var Pa=class extends H{constructor(e){super(),U(this,e,yg,vg,F,{})}},Kd=Pa;function kg(t){Pe(t,"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 jd(t,e,i){let n=t.slice();return n[163]=e[i],n}function Gd(t,e,i){let n=t.slice();return n[166]=e[i],n}function Qd(t,e,i){let n=t.slice();return n[169]=e[i],n}function Yd(t,e,i){let n=t.slice();return n[172]=e[i],n}function Zd(t){let e,i,n,o,l,r,a,s,u,f,p,h,w,g=t[40]&&Xd(t),C=t[30]&&Jd(t),b=t[29]&&$d(t),E=t[28]&&e1(t),v=t[27]&&t1(t),y=t[26]&&i1(t),T=t[25]&&n1(t),Y=t[40]&&o1(t);return{c(){e=P("div"),g&&g.c(),i=V(),n=P("ul"),C&&C.c(),o=V(),b&&b.c(),l=V(),E&&E.c(),r=V(),v&&v.c(),a=V(),y&&y.c(),s=V(),T&&T.c(),u=V(),Y&&Y.c(),c(n,"class","items svelte-1h807jq"),c(n,"role","menu"),c(n,"style",f=t[84]()),B(n,"items-mobile",t[40]),c(e,"class","menu svelte-1h807jq"),B(e,"menu-desktop",!t[40]),B(e,"menu-mobile",t[40]),B(e,"hidden",!t[13])},m(q,N){S(q,e,N),g&&g.m(e,null),m(e,i),m(e,n),C&&C.m(n,null),m(n,o),b&&b.m(n,null),m(n,l),E&&E.m(n,null),m(n,r),v&&v.m(n,null),m(n,a),y&&y.m(n,null),m(n,s),T&&T.m(n,null),m(n,u),Y&&Y.m(n,null),t[129](n),p=!0,h||(w=[he(e,"keydown",t[90]),he(e,"mouseenter",t[82]),he(e,"mouseleave",t[83])],h=!0)},p(q,N){q[40]?g?g.p(q,N):(g=Xd(q),g.c(),g.m(e,i)):g&&(g.d(1),g=null),q[30]?C?(C.p(q,N),N[0]&1073741824&&d(C,1)):(C=Jd(q),C.c(),d(C,1),C.m(n,o)):C&&(me(),_(C,1,1,()=>{C=null}),pe()),q[29]?b?(b.p(q,N),N[0]&536870912&&d(b,1)):(b=$d(q),b.c(),d(b,1),b.m(n,l)):b&&(me(),_(b,1,1,()=>{b=null}),pe()),q[28]?E?(E.p(q,N),N[0]&268435456&&d(E,1)):(E=e1(q),E.c(),d(E,1),E.m(n,r)):E&&(me(),_(E,1,1,()=>{E=null}),pe()),q[27]?v?(v.p(q,N),N[0]&134217728&&d(v,1)):(v=t1(q),v.c(),d(v,1),v.m(n,a)):v&&(me(),_(v,1,1,()=>{v=null}),pe()),q[26]?y?(y.p(q,N),N[0]&67108864&&d(y,1)):(y=i1(q),y.c(),d(y,1),y.m(n,s)):y&&(me(),_(y,1,1,()=>{y=null}),pe()),q[25]?T?(T.p(q,N),N[0]&33554432&&d(T,1)):(T=n1(q),T.c(),d(T,1),T.m(n,u)):T&&(me(),_(T,1,1,()=>{T=null}),pe()),q[40]?Y?(Y.p(q,N),N[1]&512&&d(Y,1)):(Y=o1(q),Y.c(),d(Y,1),Y.m(n,null)):Y&&(me(),_(Y,1,1,()=>{Y=null}),pe()),(!p||N[1]&512)&&B(n,"items-mobile",q[40]),(!p||N[1]&512)&&B(e,"menu-desktop",!q[40]),(!p||N[1]&512)&&B(e,"menu-mobile",q[40]),(!p||N[0]&8192)&&B(e,"hidden",!q[13])},i(q){p||(d(C),d(b),d(E),d(v),d(y),d(T),d(Y),p=!0)},o(q){_(C),_(b),_(E),_(v),_(y),_(T),_(Y),p=!1},d(q){q&&k(e),g&&g.d(),C&&C.d(),b&&b.d(),E&&E.d(),v&&v.d(),y&&y.d(),T&&T.d(),Y&&Y.d(),t[129](null),h=!1,tt(w)}}}function Xd(t){let e,i,n,o,l,r,a,s;return{c(){e=P("div"),i=P("div"),i.textContent=`${O("submenu_settings")}`,n=V(),o=P("div"),l=V(),r=P("div"),c(o,"class","close svelte-1h807jq"),c(e,"class","item menu-header svelte-1h807jq"),B(e,"item-mobile",t[40]),c(r,"class","menu-divider svelte-1h807jq")},m(u,f){S(u,e,f),m(e,i),m(e,n),m(e,o),S(u,l,f),S(u,r,f),a||(s=he(o,"click",st(t[66])),a=!0)},p(u,f){f[1]&512&&B(e,"item-mobile",u[40])},d(u){u&&(k(e),k(l),k(r)),a=!1,s()}}}function Jd(t){let e,i,n,o,l,r,a,s,u,f,p,h,w;n=new kr({});let g=t[39]&&!t[40]&&xd(t);return{c(){e=P("li"),i=P("div"),M(n.$$.fragment),o=V(),l=P("div"),l.textContent=`${O("menu_quality")}`,r=V(),a=P("div"),s=Re(t[19]),u=V(),g&&g.c(),c(i,"class","menu-icon-wrapper svelte-1h807jq"),c(l,"class","menu-title svelte-1h807jq"),c(a,"class","menu-value svelte-1h807jq"),c(e,"class","item svelte-1h807jq"),c(e,"role","menuitem"),c(e,"tabindex","0"),c(e,"aria-label",f=O("aria_label_menu_quality",{actual:t[32]})),c(e,"aria-haspopup","true"),B(e,"item-mobile",t[40])},m(C,b){S(C,e,b),m(e,i),A(n,i,null),m(e,o),m(e,l),m(e,r),m(e,a),m(a,s),m(a,u),g&&g.m(a,null),t[124](e),p=!0,h||(w=[he(e,"click",st(t[67])),he(e,"keydown",t[91])],h=!0)},p(C,b){(!p||b[0]&524288)&&Ge(s,C[19]),C[39]&&!C[40]?g?(g.p(C,b),b[1]&768&&d(g,1)):(g=xd(C),g.c(),d(g,1),g.m(a,null)):g&&(me(),_(g,1,1,()=>{g=null}),pe()),(!p||b[1]&2&&f!==(f=O("aria_label_menu_quality",{actual:C[32]})))&&c(e,"aria-label",f),(!p||b[1]&512)&&B(e,"item-mobile",C[40])},i(C){p||(d(n.$$.fragment,C),d(g),p=!0)},o(C){_(n.$$.fragment,C),_(g),p=!1},d(C){C&&k(e),L(n),g&&g.d(),t[124](null),h=!1,tt(w)}}}function xd(t){let e,i,n;var o=t[39];function l(r,a){return{}}return o&&(i=bn(o,l(t))),{c(){e=P("div"),i&&M(i.$$.fragment),c(e,"class","menu-valueIcon svelte-1h807jq")},m(r,a){S(r,e,a),i&&A(i,e,null),n=!0},p(r,a){if(a[1]&256&&o!==(o=r[39])){if(i){me();let s=i;_(s.$$.fragment,1,0,()=>{L(s,1)}),pe()}o?(i=bn(o,l(r,a)),M(i.$$.fragment),d(i.$$.fragment,1),A(i,e,null)):i=null}},i(r){n||(i&&d(i.$$.fragment,r),n=!0)},o(r){i&&_(i.$$.fragment,r),n=!1},d(r){r&&k(e),i&&L(i)}}}function $d(t){let e,i,n,o,l,r,a,s=io(t[41],t[9])+"",u,f,p,h,w;return n=new Fd({}),{c(){e=P("li"),i=P("div"),M(n.$$.fragment),o=V(),l=P("div"),l.textContent=`${O("menu_audio_languages")}`,r=V(),a=P("div"),u=Re(s),c(i,"class","menu-icon-wrapper svelte-1h807jq"),c(l,"class","menu-title svelte-1h807jq"),c(a,"class","menu-value svelte-1h807jq"),c(e,"class","item svelte-1h807jq"),c(e,"role","menuitem"),c(e,"tabindex","0"),c(e,"aria-label",f=O("aria_label_menu_audio_languages",{actual:io(t[41],t[9])})),c(e,"aria-haspopup","true"),B(e,"item-mobile",t[40])},m(g,C){S(g,e,C),m(e,i),A(n,i,null),m(e,o),m(e,l),m(e,r),m(e,a),m(a,u),t[125](e),p=!0,h||(w=[he(e,"click",st(t[68])),he(e,"keydown",t[92])],h=!0)},p(g,C){(!p||C[0]&512|C[1]&1024)&&s!==(s=io(g[41],g[9])+"")&&Ge(u,s),(!p||C[0]&512|C[1]&1024&&f!==(f=O("aria_label_menu_audio_languages",{actual:io(g[41],g[9])})))&&c(e,"aria-label",f),(!p||C[1]&512)&&B(e,"item-mobile",g[40])},i(g){p||(d(n.$$.fragment,g),p=!0)},o(g){_(n.$$.fragment,g),p=!1},d(g){g&&k(e),L(n),t[125](null),h=!1,tt(w)}}}function e1(t){let e,i,n,o,l,r,a,s,u,f,p,h,w;return n=new Od({}),{c(){e=P("li"),i=P("div"),M(n.$$.fragment),o=V(),l=P("div"),l.textContent=`${O("menu_playback_rate")}`,r=V(),a=P("div"),s=Re(t[11]),u=Re("x"),c(i,"class","menu-icon-wrapper svelte-1h807jq"),c(l,"class","menu-title svelte-1h807jq"),c(a,"class","menu-value svelte-1h807jq"),c(e,"class","item svelte-1h807jq"),c(e,"role","menuitem"),c(e,"tabindex","0"),c(e,"aria-label",f=O("aria_label_menu_rate",{actual:t[33]})),c(e,"aria-haspopup","true"),B(e,"item-mobile",t[40])},m(g,C){S(g,e,C),m(e,i),A(n,i,null),m(e,o),m(e,l),m(e,r),m(e,a),m(a,s),m(a,u),t[126](e),p=!0,h||(w=[he(e,"click",st(Wt(t[73]))),he(e,"keydown",t[97])],h=!0)},p(g,C){(!p||C[0]&2048)&&Ge(s,g[11]),(!p||C[1]&4&&f!==(f=O("aria_label_menu_rate",{actual:g[33]})))&&c(e,"aria-label",f),(!p||C[1]&512)&&B(e,"item-mobile",g[40])},i(g){p||(d(n.$$.fragment,g),p=!0)},o(g){_(n.$$.fragment,g),p=!1},d(g){g&&k(e),L(n),t[126](null),h=!1,tt(w)}}}function t1(t){let e,i,n,o,l,r,a,s=t[42].displayValue+"",u,f,p,h,w;return n=new Sr({}),{c(){e=P("li"),i=P("div"),M(n.$$.fragment),o=V(),l=P("div"),l.textContent=`${O("subtitles_caption")}`,r=V(),a=P("div"),u=Re(s),c(i,"class","menu-icon-wrapper svelte-1h807jq"),c(l,"class","menu-title svelte-1h807jq"),c(a,"class","menu-value svelte-1h807jq"),c(e,"class","item svelte-1h807jq"),c(e,"role","menuitem"),c(e,"tabindex","0"),c(e,"aria-label",f=O("aria_label_menu_subtitle",{actual:t[42].displayValue})),c(e,"aria-haspopup","true"),B(e,"item-mobile",t[40])},m(g,C){S(g,e,C),m(e,i),A(n,i,null),m(e,o),m(e,l),m(e,r),m(e,a),m(a,u),t[127](e),p=!0,h||(w=[he(e,"click",st(t[75])),he(e,"keydown",t[100])],h=!0)},p(g,C){(!p||C[1]&2048)&&s!==(s=g[42].displayValue+"")&&Ge(u,s),(!p||C[1]&2048&&f!==(f=O("aria_label_menu_subtitle",{actual:g[42].displayValue})))&&c(e,"aria-label",f),(!p||C[1]&512)&&B(e,"item-mobile",g[40])},i(g){p||(d(n.$$.fragment,g),p=!0)},o(g){_(n.$$.fragment,g),p=!1},d(g){g&&k(e),L(n),t[127](null),h=!1,tt(w)}}}function i1(t){let e,i,n,o,l,r,a,s,u,f,p,h;return n=new Nd({}),{c(){e=P("li"),i=P("div"),M(n.$$.fragment),o=V(),l=P("div"),l.textContent=`${O("menu_traffic_saving")}`,r=V(),a=P("div"),s=Re(t[31]),c(i,"class","menu-icon-wrapper svelte-1h807jq"),c(l,"class","menu-title svelte-1h807jq"),c(a,"class","menu-value svelte-1h807jq"),c(e,"class","item svelte-1h807jq"),c(e,"role","menuitem"),c(e,"tabindex","0"),c(e,"aria-label",u=O("aria_label_menu_traffic_saving",{actual:t[31]})),c(e,"aria-haspopup","true"),B(e,"item-mobile",t[40])},m(w,g){S(w,e,g),m(e,i),A(n,i,null),m(e,o),m(e,l),m(e,r),m(e,a),m(a,s),t[128](e),f=!0,p||(h=[he(e,"click",st(t[69])),he(e,"keydown",t[103])],p=!0)},p(w,g){(!f||g[1]&1)&&Ge(s,w[31]),(!f||g[1]&1&&u!==(u=O("aria_label_menu_traffic_saving",{actual:w[31]})))&&c(e,"aria-label",u),(!f||g[1]&512)&&B(e,"item-mobile",w[40])},i(w){f||(d(n.$$.fragment,w),f=!0)},o(w){_(n.$$.fragment,w),f=!1},d(w){w&&k(e),L(n),t[128](null),p=!1,tt(h)}}}function n1(t){let e,i,n,o,l,r,a,s,u;return n=new Dd({}),{c(){e=P("li"),i=P("div"),M(n.$$.fragment),o=V(),l=P("div"),l.textContent=`${O("download_video_caption")}`,c(i,"class","menu-icon-wrapper svelte-1h807jq"),c(l,"class","menu-title svelte-1h807jq"),c(e,"class","item svelte-1h807jq"),c(e,"role","menuitem"),c(e,"tabindex","0"),c(e,"aria-label",r=O("aria_label_menu_download")),B(e,"item-mobile",t[40])},m(f,p){S(f,e,p),m(e,i),A(n,i,null),m(e,o),m(e,l),a=!0,s||(u=[he(e,"click",st(t[78])),he(e,"keydown",t[106])],s=!0)},p(f,p){(!a||p[1]&512)&&B(e,"item-mobile",f[40])},i(f){a||(d(n.$$.fragment,f),a=!0)},o(f){_(n.$$.fragment,f),a=!1},d(f){f&&k(e),L(n),s=!1,tt(u)}}}function o1(t){let e,i,n,o,l,r,a,s,u,f,p,h,w,g,C,b,E,v=t[44].showSupport&&Sg(t);return o=new Wd({}),p=new Kd({}),{c(){v&&v.c(),e=V(),i=P("li"),n=P("div"),M(o.$$.fragment),l=V(),r=P("div"),r.textContent=`${O("menu_copy_debug")}`,s=V(),u=P("li"),f=P("div"),M(p.$$.fragment),h=V(),w=P("div"),w.textContent=`${O("menu_debug_overlay")}`,c(n,"class","menu-icon-wrapper svelte-1h807jq"),c(r,"class","menu-title svelte-1h807jq"),c(i,"class","item item-mobile svelte-1h807jq"),c(i,"role","menuitem"),c(i,"tabindex","0"),c(i,"aria-label",a=O("menu_copy_debug")),c(f,"class","menu-icon-wrapper svelte-1h807jq"),c(w,"class","menu-title svelte-1h807jq"),c(u,"class","item item-mobile svelte-1h807jq"),c(u,"role","menuitem"),c(u,"tabindex","0"),c(u,"aria-label",g=t[43]?O("aria_label_menu_debug_overlay_disable"):O("aria_label_menu_debug_overlay_enable"))},m(y,T){v&&v.m(y,T),S(y,e,T),S(y,i,T),m(i,n),A(o,n,null),m(i,l),m(i,r),S(y,s,T),S(y,u,T),m(u,f),A(p,f,null),m(u,h),m(u,w),C=!0,b||(E=[he(i,"click",st(t[80])),he(i,"keydown",t[108]),he(u,"click",st(t[81])),he(u,"keydown",t[109])],b=!0)},p(y,T){y[44].showSupport&&v.p(y,T),(!C||T[1]&4096&&g!==(g=y[43]?O("aria_label_menu_debug_overlay_disable"):O("aria_label_menu_debug_overlay_enable")))&&c(u,"aria-label",g)},i(y){C||(d(v),d(o.$$.fragment,y),d(p.$$.fragment,y),C=!0)},o(y){_(v),_(o.$$.fragment,y),_(p.$$.fragment,y),C=!1},d(y){y&&(k(e),k(i),k(s),k(u)),v&&v.d(y),L(o),L(p),b=!1,tt(E)}}}function Sg(t){let e,i,n,o,l,r,a,s,u;return n=new Ud({}),{c(){e=P("li"),i=P("div"),M(n.$$.fragment),o=V(),l=P("div"),l.textContent=`${O("menu_report")}`,c(i,"class","menu-icon-wrapper svelte-1h807jq"),c(l,"class","menu-title svelte-1h807jq"),c(e,"class","item item-mobile svelte-1h807jq"),c(e,"role","menuitem"),c(e,"tabindex","0"),c(e,"aria-label",r=`${O("menu_report")}. ${O("aria_label_new_tab_alert")}`)},m(f,p){S(f,e,p),m(e,i),A(n,i,null),m(e,o),m(e,l),a=!0,s||(u=[he(e,"click",st(t[79])),he(e,"keydown",t[107])],s=!0)},p:Ce,i(f){a||(d(n.$$.fragment,f),a=!0)},o(f){_(n.$$.fragment,f),a=!1},d(f){f&&k(e),L(n),s=!1,tt(u)}}}function l1(t){let e,i,n,o,l,r,a,s,u,f,p,h,w,g;n=new Kn({props:{direction:"left"}});let C=Pt(t[10]),b=[];for(let v=0;v<C.length;v+=1)b[v]=a1(Yd(t,C,v));let E=v=>_(b[v],1,1,()=>{b[v]=null});return{c(){e=P("div"),i=P("div"),M(n.$$.fragment),o=V(),l=P("div"),l.textContent=`${O("submenu_quality")}`,a=V(),s=P("div"),u=V(),f=P("ul");for(let v=0;v<b.length;v+=1)b[v].c();c(i,"class","item menu-header svelte-1h807jq"),c(i,"aria-label",r=O("aria_label_submenu_back")),B(i,"item-mobile",t[40]),c(s,"class","menu-divider svelte-1h807jq"),c(f,"class","items svelte-1h807jq"),c(f,"role","menu"),c(f,"style",p=t[84](t[20]?.clientHeight,!0)),B(f,"items-mobile",t[40]),c(e,"class","menu menu-subList svelte-1h807jq"),B(e,"menu-desktop",!t[40]),B(e,"menu-mobile",t[40])},m(v,y){S(v,e,y),m(e,i),A(n,i,null),m(i,o),m(i,l),t[130](i),m(e,a),m(e,s),m(e,u),m(e,f);for(let T=0;T<b.length;T+=1)b[T]&&b[T].m(f,null);t[133](f),h=!0,w||(g=[he(i,"click",st(t[77])),he(f,"keydown",t[93])],w=!0)},p(v,y){if((!h||y[1]&512)&&B(i,"item-mobile",v[40]),y[0]&1024|y[1]&512|y[2]&256|y[3]&2){C=Pt(v[10]);let T;for(T=0;T<C.length;T+=1){let Y=Yd(v,C,T);b[T]?(b[T].p(Y,y),d(b[T],1)):(b[T]=a1(Y),b[T].c(),d(b[T],1),b[T].m(f,null))}for(me(),T=C.length;T<b.length;T+=1)E(T);pe()}(!h||y[0]&1048576&&p!==(p=v[84](v[20]?.clientHeight,!0)))&&c(f,"style",p),(!h||y[1]&512)&&B(f,"items-mobile",v[40]),(!h||y[1]&512)&&B(e,"menu-desktop",!v[40]),(!h||y[1]&512)&&B(e,"menu-mobile",v[40])},i(v){if(!h){d(n.$$.fragment,v);for(let y=0;y<C.length;y+=1)d(b[y]);h=!0}},o(v){_(n.$$.fragment,v),b=b.filter(Boolean);for(let y=0;y<b.length;y+=1)_(b[y]);h=!1},d(v){v&&k(e),L(n),t[130](null),Ai(b,v),t[133](null),w=!1,tt(g)}}}function r1(t){let e,i,n;return i=new Fo({}),{c(){e=P("div"),M(i.$$.fragment),c(e,"class","itemIcon svelte-1h807jq")},m(o,l){S(o,e,l),A(i,e,null),n=!0},i(o){n||(d(i.$$.fragment,o),n=!0)},o(o){_(i.$$.fragment,o),n=!1},d(o){o&&k(e),L(i)}}}function s1(t){let e,i,n;var o=_o(t[172].value);function l(r,a){return{}}return o&&(i=bn(o,l(t))),{c(){e=P("div"),i&&M(i.$$.fragment),c(e,"class","menu-valueIcon-list svelte-1h807jq")},m(r,a){S(r,e,a),i&&A(i,e,null),n=!0},p(r,a){if(a[0]&1024&&o!==(o=_o(r[172].value))){if(i){me();let s=i;_(s.$$.fragment,1,0,()=>{L(s,1)}),pe()}o?(i=bn(o,l(r,a)),M(i.$$.fragment),d(i.$$.fragment,1),A(i,e,null)):i=null}},i(r){n||(i&&d(i.$$.fragment,r),n=!0)},o(r){i&&_(i.$$.fragment,r),n=!1},d(r){r&&k(e),i&&L(i)}}}function a1(t){let e,i,n,o=t[172].displayValue+"",l,r,a=!t[40]&&_o(t[172].value),s,u,f,p,h,w,g=t[172].selected&&r1(t),C=a&&s1(t);function b(){return t[131](t[172])}function E(...v){return t[132](t[172],...v)}return{c(){e=P("li"),g&&g.c(),i=V(),n=P("div"),l=Re(o),r=V(),C&&C.c(),s=V(),c(n,"class","submenu-value svelte-1h807jq"),B(n,"submenu-value-mobile",t[40]),c(e,"class","item item-quality svelte-1h807jq"),c(e,"data-value",u=t[172].value),c(e,"role","menuitem"),c(e,"tabindex","0"),c(e,"aria-label",f=t[172].displayValue),B(e,"item-mobile",t[40])},m(v,y){S(v,e,y),g&&g.m(e,null),m(e,i),m(e,n),m(n,l),m(e,r),C&&C.m(e,null),m(e,s),p=!0,h||(w=[he(e,"click",st(b)),he(e,"keydown",E)],h=!0)},p(v,y){t=v,t[172].selected?g?y[0]&1024&&d(g,1):(g=r1(t),g.c(),d(g,1),g.m(e,i)):g&&(me(),_(g,1,1,()=>{g=null}),pe()),(!p||y[0]&1024)&&o!==(o=t[172].displayValue+"")&&Ge(l,o),(!p||y[1]&512)&&B(n,"submenu-value-mobile",t[40]),y[0]&1024|y[1]&512&&(a=!t[40]&&_o(t[172].value)),a?C?(C.p(t,y),y[0]&1024|y[1]&512&&d(C,1)):(C=s1(t),C.c(),d(C,1),C.m(e,s)):C&&(me(),_(C,1,1,()=>{C=null}),pe()),(!p||y[0]&1024&&u!==(u=t[172].value))&&c(e,"data-value",u),(!p||y[0]&1024&&f!==(f=t[172].displayValue))&&c(e,"aria-label",f),(!p||y[1]&512)&&B(e,"item-mobile",t[40])},i(v){p||(d(g),d(C),p=!0)},o(v){_(g),_(C),p=!1},d(v){v&&k(e),g&&g.d(),C&&C.d(),h=!1,tt(w)}}}function u1(t){let e,i,n,o,l,r,a,s,u,f,p,h,w,g;n=new Kn({props:{direction:"left"}});let C=Pt(t[9]),b=[];for(let v=0;v<C.length;v+=1)b[v]=f1(Qd(t,C,v));let E=v=>_(b[v],1,1,()=>{b[v]=null});return{c(){e=P("div"),i=P("div"),M(n.$$.fragment),o=V(),l=P("div"),l.textContent=`${O("submenu_audio_languages")}`,a=V(),s=P("div"),u=V(),f=P("ul");for(let v=0;v<b.length;v+=1)b[v].c();c(i,"class","item menu-header svelte-1h807jq"),c(i,"aria-label",r=O("aria_label_submenu_back")),B(i,"item-mobile",t[40]),c(s,"class","menu-divider svelte-1h807jq"),c(f,"class","items svelte-1h807jq"),c(f,"role","menu"),c(f,"style",p=t[84](t[21]?.clientHeight,!0)),B(f,"items-mobile",t[40]),c(e,"class","menu menu-subList svelte-1h807jq"),B(e,"menu-desktop",!t[40]),B(e,"menu-mobile",t[40])},m(v,y){S(v,e,y),m(e,i),A(n,i,null),m(i,o),m(i,l),t[134](i),m(e,a),m(e,s),m(e,u),m(e,f);for(let T=0;T<b.length;T+=1)b[T]&&b[T].m(f,null);t[137](f),h=!0,w||(g=[he(i,"click",st(t[77])),he(f,"keydown",t[95])],w=!0)},p(v,y){if((!h||y[1]&512)&&B(i,"item-mobile",v[40]),y[0]&512|y[1]&1536|y[2]&512|y[3]&8){C=Pt(v[9]);let T;for(T=0;T<C.length;T+=1){let Y=Qd(v,C,T);b[T]?(b[T].p(Y,y),d(b[T],1)):(b[T]=f1(Y),b[T].c(),d(b[T],1),b[T].m(f,null))}for(me(),T=C.length;T<b.length;T+=1)E(T);pe()}(!h||y[0]&2097152&&p!==(p=v[84](v[21]?.clientHeight,!0)))&&c(f,"style",p),(!h||y[1]&512)&&B(f,"items-mobile",v[40]),(!h||y[1]&512)&&B(e,"menu-desktop",!v[40]),(!h||y[1]&512)&&B(e,"menu-mobile",v[40])},i(v){if(!h){d(n.$$.fragment,v);for(let y=0;y<C.length;y+=1)d(b[y]);h=!0}},o(v){_(n.$$.fragment,v),b=b.filter(Boolean);for(let y=0;y<b.length;y+=1)_(b[y]);h=!1},d(v){v&&k(e),L(n),t[134](null),Ai(b,v),t[137](null),w=!1,tt(g)}}}function c1(t){let e,i,n;return i=new Fo({}),{c(){e=P("div"),M(i.$$.fragment),c(e,"class","itemIcon svelte-1h807jq")},m(o,l){S(o,e,l),A(i,e,null),n=!0},i(o){n||(d(i.$$.fragment,o),n=!0)},o(o){_(i.$$.fragment,o),n=!1},d(o){o&&k(e),L(i)}}}function f1(t){let e,i,n,o=io(t[169],t[9])+"",l,r,a,s,u,f,p,h=t[169].id===t[41]?.id&&c1(t);function w(){return t[135](t[169])}function g(...C){return t[136](t[169],...C)}return{c(){e=P("li"),h&&h.c(),i=V(),n=P("div"),l=Re(o),r=V(),c(n,"class","submenu-value svelte-1h807jq"),B(n,"submenu-value-mobile",t[40]),c(e,"class","item item-quality svelte-1h807jq"),c(e,"data-value",a=t[169].id),c(e,"role","menuitem"),c(e,"tabindex","0"),c(e,"aria-label",s=io(t[169],t[9])),B(e,"item-mobile",t[40])},m(C,b){S(C,e,b),h&&h.m(e,null),m(e,i),m(e,n),m(n,l),m(e,r),u=!0,f||(p=[he(e,"click",st(w)),he(e,"keydown",g)],f=!0)},p(C,b){t=C,t[169].id===t[41]?.id?h?b[0]&512|b[1]&1024&&d(h,1):(h=c1(t),h.c(),d(h,1),h.m(e,i)):h&&(me(),_(h,1,1,()=>{h=null}),pe()),(!u||b[0]&512)&&o!==(o=io(t[169],t[9])+"")&&Ge(l,o),(!u||b[1]&512)&&B(n,"submenu-value-mobile",t[40]),(!u||b[0]&512&&a!==(a=t[169].id))&&c(e,"data-value",a),(!u||b[0]&512&&s!==(s=io(t[169],t[9])))&&c(e,"aria-label",s),(!u||b[1]&512)&&B(e,"item-mobile",t[40])},i(C){u||(d(h),u=!0)},o(C){_(h),u=!1},d(C){C&&k(e),h&&h.d(),f=!1,tt(p)}}}function d1(t){let e,i,n,o,l,r,a,s,u,f,p,h,w,g;n=new Kn({props:{direction:"left"}});let C=Pt(t[8]),b=[];for(let v=0;v<C.length;v+=1)b[v]=p1(Gd(t,C,v));let E=v=>_(b[v],1,1,()=>{b[v]=null});return{c(){e=P("div"),i=P("div"),M(n.$$.fragment),o=V(),l=P("div"),l.textContent=`${O("submenu_playback_rate")}`,a=V(),s=P("div"),u=V(),f=P("ul");for(let v=0;v<b.length;v+=1)b[v].c();c(i,"class","item menu-header svelte-1h807jq"),c(i,"aria-label",r=O("aria_label_submenu_back")),B(i,"item-mobile",t[40]),c(s,"class","menu-divider svelte-1h807jq"),c(f,"class","items svelte-1h807jq"),c(f,"role","menu"),c(f,"style",p=t[84](t[22]?.clientHeight,!0)),B(f,"items-mobile",t[40]),c(e,"class","menu menu-subList svelte-1h807jq"),B(e,"menu-desktop",!t[40]),B(e,"menu-mobile",t[40])},m(v,y){S(v,e,y),m(e,i),A(n,i,null),m(i,o),m(i,l),t[138](i),m(e,a),m(e,s),m(e,u),m(e,f);for(let T=0;T<b.length;T+=1)b[T]&&b[T].m(f,null);t[141](f),h=!0,w||(g=[he(i,"click",st(t[77])),he(f,"keydown",t[98])],w=!0)},p(v,y){if((!h||y[1]&512)&&B(i,"item-mobile",v[40]),y[0]&256|y[1]&512|y[2]&4096|y[3]&64){C=Pt(v[8]);let T;for(T=0;T<C.length;T+=1){let Y=Gd(v,C,T);b[T]?(b[T].p(Y,y),d(b[T],1)):(b[T]=p1(Y),b[T].c(),d(b[T],1),b[T].m(f,null))}for(me(),T=C.length;T<b.length;T+=1)E(T);pe()}(!h||y[0]&4194304&&p!==(p=v[84](v[22]?.clientHeight,!0)))&&c(f,"style",p),(!h||y[1]&512)&&B(f,"items-mobile",v[40]),(!h||y[1]&512)&&B(e,"menu-desktop",!v[40]),(!h||y[1]&512)&&B(e,"menu-mobile",v[40])},i(v){if(!h){d(n.$$.fragment,v);for(let y=0;y<C.length;y+=1)d(b[y]);h=!0}},o(v){_(n.$$.fragment,v),b=b.filter(Boolean);for(let y=0;y<b.length;y+=1)_(b[y]);h=!1},d(v){v&&k(e),L(n),t[138](null),Ai(b,v),t[141](null),w=!1,tt(g)}}}function m1(t){let e,i,n;return i=new Fo({}),{c(){e=P("div"),M(i.$$.fragment),c(e,"class","itemIcon svelte-1h807jq")},m(o,l){S(o,e,l),A(i,e,null),n=!0},i(o){n||(d(i.$$.fragment,o),n=!0)},o(o){_(i.$$.fragment,o),n=!1},d(o){o&&k(e),L(i)}}}function p1(t){let e,i,n,o=t[166].displayValue+"",l,r,a,s,u,f,p,h=t[166].selected&&m1(t);function w(){return t[139](t[166])}function g(...C){return t[140](t[166],...C)}return{c(){e=P("li"),h&&h.c(),i=V(),n=P("div"),l=Re(o),r=V(),c(n,"class","submenu-value svelte-1h807jq"),B(n,"submenu-value-mobile",t[40]),c(e,"class","item item-quality svelte-1h807jq"),c(e,"data-value",a=t[166].value),c(e,"role","menuitem"),c(e,"tabindex","0"),c(e,"aria-label",s=t[166].displayValue),B(e,"item-mobile",t[40])},m(C,b){S(C,e,b),h&&h.m(e,null),m(e,i),m(e,n),m(n,l),m(e,r),u=!0,f||(p=[he(e,"click",st(w)),he(e,"keydown",g)],f=!0)},p(C,b){t=C,t[166].selected?h?b[0]&256&&d(h,1):(h=m1(t),h.c(),d(h,1),h.m(e,i)):h&&(me(),_(h,1,1,()=>{h=null}),pe()),(!u||b[0]&256)&&o!==(o=t[166].displayValue+"")&&Ge(l,o),(!u||b[1]&512)&&B(n,"submenu-value-mobile",t[40]),(!u||b[0]&256&&a!==(a=t[166].value))&&c(e,"data-value",a),(!u||b[0]&256&&s!==(s=t[166].displayValue))&&c(e,"aria-label",s),(!u||b[1]&512)&&B(e,"item-mobile",t[40])},i(C){u||(d(h),u=!0)},o(C){_(h),u=!1},d(C){C&&k(e),h&&h.d(),f=!1,tt(p)}}}function _1(t){let e,i,n,o,l,r,a,s,u,f,p,h,w,g,C,b,E,v,y,T,Y,q,N,ne,ge,j,X,ae,K;n=new Kn({props:{direction:"left"}});let z=!t[6]&&h1(t),G=t[6]&&g1(t);return{c(){e=P("div"),i=P("div"),M(n.$$.fragment),o=V(),l=P("div"),l.textContent=`${O("submenu_traffic_saving")}`,a=V(),s=P("div"),u=V(),f=P("div"),p=P("ul"),h=P("li"),z&&z.c(),w=V(),g=P("div"),g.textContent=`${O("traffic_saving_disable")}`,b=V(),E=P("li"),G&&G.c(),v=V(),y=P("div"),y.textContent=`${O("traffic_saving_enable")}`,Y=V(),q=P("div"),N=V(),ne=P("div"),ge=P("span"),ge.textContent=`${O("traffic_saving_helper_text")}`,c(i,"class","item menu-header svelte-1h807jq"),c(i,"aria-label",r=O("aria_label_submenu_back")),B(i,"item-mobile",t[40]),c(s,"class","menu-divider svelte-1h807jq"),c(g,"class","submenu-value svelte-1h807jq"),B(g,"submenu-value-mobile",t[40]),c(h,"class","item item-traffic-saving svelte-1h807jq"),c(h,"role","menuitem"),c(h,"tabindex","0"),c(h,"aria-label",C=O("aria_label_submenu_traffic_saving_off")),B(h,"item-mobile",t[40]),c(y,"class","submenu-value svelte-1h807jq"),B(y,"submenu-value-mobile",t[40]),c(E,"class","item item-traffic-saving svelte-1h807jq"),c(E,"role","menuitem"),c(E,"tabindex","0"),c(E,"aria-label",T=`${O("aria_label_submenu_traffic_saving_on")}. ${O("traffic_saving_helper_text")}`),B(E,"item-mobile",t[40]),c(p,"class","items svelte-1h807jq"),c(p,"role","menu"),B(p,"items-mobile",t[40]),c(q,"class","menu-divider svelte-1h807jq"),c(ge,"class","svelte-1h807jq"),c(ne,"class","item item-helper-text svelte-1h807jq"),B(ne,"item-mobile",t[40]),c(f,"style",j=t[84](t[23]?.clientHeight,!0)),c(e,"class","menu menu-subList menu-subList-traffic-saving svelte-1h807jq"),B(e,"menu-desktop",!t[40]),B(e,"menu-mobile",t[40])},m($,W){S($,e,W),m(e,i),A(n,i,null),m(i,o),m(i,l),t[142](i),m(e,a),m(e,s),m(e,u),m(e,f),m(f,p),m(p,h),z&&z.m(h,null),m(h,w),m(h,g),m(p,b),m(p,E),G&&G.m(E,null),m(E,v),m(E,y),t[147](p),m(f,Y),m(f,q),m(f,N),m(f,ne),m(ne,ge),X=!0,ae||(K=[he(i,"click",st(t[77])),he(h,"click",st(t[143])),he(h,"keydown",t[144]),he(E,"click",st(t[145])),he(E,"keydown",t[146]),he(p,"keydown",t[104])],ae=!0)},p($,W){(!X||W[1]&512)&&B(i,"item-mobile",$[40]),$[6]?z&&(me(),_(z,1,1,()=>{z=null}),pe()):z?W[0]&64&&d(z,1):(z=h1($),z.c(),d(z,1),z.m(h,w)),(!X||W[1]&512)&&B(g,"submenu-value-mobile",$[40]),(!X||W[1]&512)&&B(h,"item-mobile",$[40]),$[6]?G?W[0]&64&&d(G,1):(G=g1($),G.c(),d(G,1),G.m(E,v)):G&&(me(),_(G,1,1,()=>{G=null}),pe()),(!X||W[1]&512)&&B(y,"submenu-value-mobile",$[40]),(!X||W[1]&512)&&B(E,"item-mobile",$[40]),(!X||W[1]&512)&&B(p,"items-mobile",$[40]),(!X||W[1]&512)&&B(ne,"item-mobile",$[40]),(!X||W[0]&8388608&&j!==(j=$[84]($[23]?.clientHeight,!0)))&&c(f,"style",j),(!X||W[1]&512)&&B(e,"menu-desktop",!$[40]),(!X||W[1]&512)&&B(e,"menu-mobile",$[40])},i($){X||(d(n.$$.fragment,$),d(z),d(G),X=!0)},o($){_(n.$$.fragment,$),_(z),_(G),X=!1},d($){$&&k(e),L(n),t[142](null),z&&z.d(),G&&G.d(),t[147](null),ae=!1,tt(K)}}}function h1(t){let e,i,n;return i=new Fo({}),{c(){e=P("div"),M(i.$$.fragment),c(e,"class","itemIcon svelte-1h807jq")},m(o,l){S(o,e,l),A(i,e,null),n=!0},i(o){n||(d(i.$$.fragment,o),n=!0)},o(o){_(i.$$.fragment,o),n=!1},d(o){o&&k(e),L(i)}}}function g1(t){let e,i,n;return i=new Fo({}),{c(){e=P("div"),M(i.$$.fragment),c(e,"class","itemIcon svelte-1h807jq")},m(o,l){S(o,e,l),A(i,e,null),n=!0},i(o){n||(d(i.$$.fragment,o),n=!0)},o(o){_(i.$$.fragment,o),n=!1},d(o){o&&k(e),L(i)}}}function b1(t){let e,i,n,o,l,r,a,s,u,f,p,h;n=new Kn({props:{direction:"left"}});let w=Pt(t[7]),g=[];for(let b=0;b<w.length;b+=1)g[b]=y1(jd(t,w,b));let C=b=>_(g[b],1,1,()=>{g[b]=null});return{c(){e=P("div"),i=P("div"),M(n.$$.fragment),o=V(),l=P("div"),l.textContent=`${O("subtitles_caption")}`,a=V(),s=P("ul");for(let b=0;b<g.length;b+=1)g[b].c();c(i,"class","item menu-header svelte-1h807jq"),c(i,"aria-label",r=O("aria_label_submenu_back")),B(i,"item-mobile",t[40]),c(s,"class","items svelte-1h807jq"),c(s,"role","menu"),c(s,"style",u=t[84](t[24]?.clientHeight,!0)),B(s,"items-mobile",t[40]),c(e,"class","menu menu-subList menu-subList-subtitles svelte-1h807jq"),B(e,"menu-desktop",!t[40]),B(e,"menu-mobile",t[40])},m(b,E){S(b,e,E),m(e,i),A(n,i,null),m(i,o),m(i,l),t[148](i),m(e,a),m(e,s);for(let v=0;v<g.length;v+=1)g[v]&&g[v].m(s,null);t[151](s),f=!0,p||(h=[he(i,"click",st(t[77])),he(s,"keydown",t[101])],p=!0)},p(b,E){if((!f||E[1]&512)&&B(i,"item-mobile",b[40]),E[0]&128|E[1]&512|E[2]&16384|E[3]&512){w=Pt(b[7]);let v;for(v=0;v<w.length;v+=1){let y=jd(b,w,v);g[v]?(g[v].p(y,E),d(g[v],1)):(g[v]=y1(y),g[v].c(),d(g[v],1),g[v].m(s,null))}for(me(),v=w.length;v<g.length;v+=1)C(v);pe()}(!f||E[0]&16777216&&u!==(u=b[84](b[24]?.clientHeight,!0)))&&c(s,"style",u),(!f||E[1]&512)&&B(s,"items-mobile",b[40]),(!f||E[1]&512)&&B(e,"menu-desktop",!b[40]),(!f||E[1]&512)&&B(e,"menu-mobile",b[40])},i(b){if(!f){d(n.$$.fragment,b);for(let E=0;E<w.length;E+=1)d(g[E]);f=!0}},o(b){_(n.$$.fragment,b),g=g.filter(Boolean);for(let E=0;E<g.length;E+=1)_(g[E]);f=!1},d(b){b&&k(e),L(n),t[148](null),Ai(g,b),t[151](null),p=!1,tt(h)}}}function v1(t){let e,i,n;return i=new Fo({}),{c(){e=P("div"),M(i.$$.fragment),c(e,"class","itemIcon svelte-1h807jq")},m(o,l){S(o,e,l),A(i,e,null),n=!0},i(o){n||(d(i.$$.fragment,o),n=!0)},o(o){_(i.$$.fragment,o),n=!1},d(o){o&&k(e),L(i)}}}function y1(t){let e,i,n,o=t[163].displayValue+"",l,r,a,s,u,f,p,h=t[163].selected&&v1(t);function w(){return t[149](t[163])}function g(...C){return t[150](t[163],...C)}return{c(){e=P("li"),h&&h.c(),i=V(),n=P("div"),l=Re(o),r=V(),c(n,"class","submenu-value svelte-1h807jq"),B(n,"submenu-value-mobile",t[40]),c(e,"class","item item-quality svelte-1h807jq"),c(e,"data-value",a=t[163].value),c(e,"role","menuitem"),c(e,"tabindex","0"),c(e,"aria-label",s=t[163].displayValue),B(e,"item-mobile",t[40])},m(C,b){S(C,e,b),h&&h.m(e,null),m(e,i),m(e,n),m(n,l),m(e,r),u=!0,f||(p=[he(e,"click",st(w)),he(e,"keydown",g)],f=!0)},p(C,b){t=C,t[163].selected?h?b[0]&128&&d(h,1):(h=v1(t),h.c(),d(h,1),h.m(e,i)):h&&(me(),_(h,1,1,()=>{h=null}),pe()),(!u||b[0]&128)&&o!==(o=t[163].displayValue+"")&&Ge(l,o),(!u||b[1]&512)&&B(n,"submenu-value-mobile",t[40]),(!u||b[0]&128&&a!==(a=t[163].value))&&c(e,"data-value",a),(!u||b[0]&128&&s!==(s=t[163].displayValue))&&c(e,"aria-label",s),(!u||b[1]&512)&&B(e,"item-mobile",t[40])},i(C){u||(d(h),u=!0)},o(C){_(h),u=!1},d(C){C&&k(e),h&&h.d(),f=!1,tt(p)}}}function Cg(t){let e,i,n,o,l,r,a,s=t[12]&&Zd(t),u=t[14]&&l1(t),f=t[15]&&u1(t),p=t[16]&&d1(t),h=t[18]&&_1(t),w=t[17]&&b1(t);return{c(){e=P("div"),s&&s.c(),i=V(),u&&u.c(),n=V(),f&&f.c(),o=V(),p&&p.c(),l=V(),h&&h.c(),r=V(),w&&w.c(),c(e,"class","svelte-1h807jq"),B(e,"hidden",!t[12]),B(e,"container-mobile",t[40])},m(g,C){S(g,e,C),s&&s.m(e,null),m(e,i),u&&u.m(e,null),m(e,n),f&&f.m(e,null),m(e,o),p&&p.m(e,null),m(e,l),h&&h.m(e,null),m(e,r),w&&w.m(e,null),a=!0},p(g,C){g[12]?s?(s.p(g,C),C[0]&4096&&d(s,1)):(s=Zd(g),s.c(),d(s,1),s.m(e,i)):s&&(me(),_(s,1,1,()=>{s=null}),pe()),g[14]?u?(u.p(g,C),C[0]&16384&&d(u,1)):(u=l1(g),u.c(),d(u,1),u.m(e,n)):u&&(me(),_(u,1,1,()=>{u=null}),pe()),g[15]?f?(f.p(g,C),C[0]&32768&&d(f,1)):(f=u1(g),f.c(),d(f,1),f.m(e,o)):f&&(me(),_(f,1,1,()=>{f=null}),pe()),g[16]?p?(p.p(g,C),C[0]&65536&&d(p,1)):(p=d1(g),p.c(),d(p,1),p.m(e,l)):p&&(me(),_(p,1,1,()=>{p=null}),pe()),g[18]?h?(h.p(g,C),C[0]&262144&&d(h,1)):(h=_1(g),h.c(),d(h,1),h.m(e,r)):h&&(me(),_(h,1,1,()=>{h=null}),pe()),g[17]?w?(w.p(g,C),C[0]&131072&&d(w,1)):(w=b1(g),w.c(),d(w,1),w.m(e,null)):w&&(me(),_(w,1,1,()=>{w=null}),pe()),(!a||C[0]&4096)&&B(e,"hidden",!g[12]),(!a||C[1]&512)&&B(e,"container-mobile",g[40])},i(g){a||(d(s),d(u),d(f),d(p),d(h),d(w),a=!0)},o(g){_(s),_(u),_(f),_(p),_(h),_(w),a=!1},d(g){g&&k(e),s&&s.d(),u&&u.d(),f&&f.d(),p&&p.d(),h&&h.d(),w&&w.d()}}}var Pg=18;function Tg(t,e,i){let n,o,l,r,a,s,u,f,p,h,w,g,C,b,E,v,y,T,Y,q,N,ne,ge,j,X,ae,K,{ref:z=void 0}=e,{supportLink:G}=e,{playerControlsHeight:$=0}=e,{returnFocus:W}=e,Q=it(),te=Bt(),re=Q.state.audioStream$;D(t,re,ie=>i(41,g=ie));let Ve=Q.state.availableAudioStreams$;D(t,Ve,ie=>i(9,C=ie));let Xe=Q.state.currentQuality$;D(t,Xe,ie=>i(118,v=ie));let Se=Q.state.availableQualities$;D(t,Se,ie=>i(10,b=ie));let Me=Q.state.autoQualityLimitingAvailable$;D(t,Me,ie=>i(122,q=ie));let Ue=Q.state.isAutoQualityEnabled$;D(t,Ue,ie=>i(119,y=ie));let $e=Q.state.currentPlaybackRate$;D(t,$e,ie=>i(11,E=ie));let ce=Q.state.availablePlaybackRates$;D(t,ce,ie=>i(8,p=ie));let _e=Q.state.currentSubtitle$;D(t,_e,ie=>i(42,ae=ie));let at=Q.state.availableSubtitlesList$;D(t,at,ie=>i(7,u=ie));let ke=Q.state.canDownload,Fe=Q.state.hasMpegSources$;D(t,Fe,ie=>i(123,N=ie));let ft=Q.ui.settingsMenuVisible;D(t,ft,ie=>i(12,X=ie));let Qe=Q.ui.settingsMenuOpenedByKeyboard;D(t,Qe,ie=>i(153,o=ie));let je=Q.ui.isMobile;D(t,je,ie=>i(40,l=ie));let Ze=Q.ui.mobileNotReportControlHidden$;D(t,Ze,ie=>i(120,T=ie));let xe=Q.state.canChangePlaybackSpeed$;D(t,xe,ie=>i(121,Y=ie));let x=Q.ui.isFullscreen;D(t,x,ie=>i(156,j=ie));let De=Q.state.trafficSavingEnabled$;D(t,De,ie=>i(6,a=ie));let ze=Q.ui.playerSize;D(t,ze,ie=>i(155,ge=ie));let fe=Q.ui.debugPanelVisible;D(t,fe,ie=>i(43,K=ie));let se=Q.ui.playerSize;D(t,se,ie=>i(154,ne=ie));let nt=Q.state.isInteractiveTime$,de=Q.actions.internal.downloadVideo,ot=Q.actions.internal.closeSettingsMenu,lt=!0,dt=!1,yt=!1,Et=!1,Ye=!1,Kt=!1,qt=!1;function Tt(){o||W?.(),ot(),qt=!1}function ai(){i(13,lt=!1),i(14,dt=!0)}function rt(){i(13,lt=!1),i(15,yt=!0)}function wt(){i(13,lt=!1),i(18,Kt=!0)}function we(ie){Q.actions.internal.setQuality(ie),Tt()}function gt(ie){Q.actions.internal.setAudioStream(ie),Tt()}function kt(ie){Q.actions.internal.setTrafficSavingEnabled(ie),Tt()}function Xt(){i(13,lt=!1),i(16,Et=!0)}function St(ie){Q.actions.internal.setPlaybackRate(ie),Tt()}function jt(){i(13,lt=!1),i(17,Ye=!0)}function Gt(ie){Q.actions.internal.setSubtitle(ie),Tt()}function Dt(){i(13,lt=!0),i(14,dt=!1),i(15,yt=!1),i(16,Et=!1),i(17,Ye=!1),i(18,Kt=!1)}function Fi(){de(),Tt()}function nn(){window.open(G,"_blank"),Tt(),Q.actions.internal.pause()}function Jt(){ol(Q.actions.internal.getDebugTextData()),Tt()}function Li(){fe.set(!0),Tt()}function sn(){qt=!0}function zi(){qt=!1}function on(ie,mt,li){if(!ie)return"...";let Sn=mt.find(Xn=>Xn.value===ie),On=Sn?Sn.displayValue:ie;return li?ie===wg.INVARIANT?O("auto_quality_invariant"):O("auto_quality",{actual:On}):On}let bi,vi,ui,ci,yi,wi;function ki(ie=0,mt=!1){return l&&j&&mt?`max-height: ${Math.round(ge.height*.6)}px`:l?"":`max-height: ${ne.height-Pg-ie-$}px; overflow: auto;`}let fi,Hi,Nt,Si,Mi,Ui,di,Lt,Wi,Vi,Ot,Ki,ji,Qt=qe(!1);D(t,Qt,ie=>i(117,w=ie));let Ci=qe(!1);D(t,Ci,ie=>i(116,h=ie));let mi,Pi,Yt=qe(!1);D(t,Yt,ie=>i(115,f=ie));let Ft,xt,Ri=qe(!1);D(t,Ri,ie=>i(114,s=ie));let ni,oi,$t=qe(!1);D(t,$t,ie=>i(113,r=ie));let Gi=ie=>{dr(ie,ot)},Qi=async ie=>{ul(ie,ai,()=>{let mt=b.findIndex(li=>li.selected);return Ki.childNodes[mt]})},an=async ie=>{ul(ie,rt,()=>{let mt=C.findIndex(li=>li.id===g?.id);return ji.childNodes[mt]})},Bi=async ie=>{cl(ie,Dt,Qt,ot)},ei=(ie,mt)=>{si(ie,()=>we(mt))},ti=async ie=>{cl(ie,Dt,Ci,ot)},Yi=(ie,mt)=>{si(ie,()=>gt(mt))},Mt=async ie=>{ul(ie,Xt,()=>{let mt=p.findIndex(li=>li.selected);return Pi.childNodes[mt]})},Vt=async ie=>{cl(ie,Dt,Yt,ot)},Zi=(ie,mt)=>{si(ie,()=>St(mt))},Ti=async ie=>{ul(ie,jt,()=>{let mt=u.findIndex(li=>li.selected);return xt.childNodes[mt]})},ii=async ie=>{cl(ie,Dt,Ri,ot)},Xi=(ie,mt)=>{si(ie,()=>Gt(mt))},et=async ie=>{ul(ie,wt,()=>{let mt=a?2:0;return oi.childNodes[mt]})},Ii=async ie=>{cl(ie,Dt,$t,ot)},zt=(ie,mt)=>{si(ie,()=>kt(mt))},We=ie=>{si(ie,()=>Fi())},Ji=ie=>{si(ie,()=>nn())},un=ie=>{si(ie,()=>Jt())},cn=ie=>{si(ie,()=>Li())};It(()=>{let ie=nt.subscribe(mt=>{mt&&!l&&!qt&&!o&&Tt()});return()=>{ie()}});function xi(ie){be[ie?"unshift":"push"](()=>{Vi=ie,i(1,Vi)})}function qi(ie){be[ie?"unshift":"push"](()=>{Ot=ie,i(2,Ot)})}function ln(ie){be[ie?"unshift":"push"](()=>{mi=ie,i(3,mi)})}function Di(ie){be[ie?"unshift":"push"](()=>{Ft=ie,i(4,Ft)})}function Zt(ie){be[ie?"unshift":"push"](()=>{ni=ie,i(5,ni)})}function $i(ie){be[ie?"unshift":"push"](()=>{z=ie,i(0,z)})}function pi(ie){be[ie?"unshift":"push"](()=>{vi=ie,i(20,vi)})}let hn=ie=>we(ie.value),fn=(ie,mt)=>ei(mt,ie.value);function dn(ie){be[ie?"unshift":"push"](()=>{Ki=ie,i(34,Ki)})}function yn(ie){be[ie?"unshift":"push"](()=>{ui=ie,i(21,ui)})}let rn=ie=>gt(ie),mn=(ie,mt)=>Yi(mt,ie);function pn(ie){be[ie?"unshift":"push"](()=>{ji=ie,i(35,ji)})}function en(ie){be[ie?"unshift":"push"](()=>{ci=ie,i(22,ci)})}let _i=ie=>St(ie.value),wn=(ie,mt)=>Zi(mt,ie.value);function tn(ie){be[ie?"unshift":"push"](()=>{Pi=ie,i(36,Pi)})}function En(ie){be[ie?"unshift":"push"](()=>{yi=ie,i(23,yi)})}let Ht=()=>kt(!1),An=ie=>zt(ie,!1),Ln=()=>kt(!0),kn=ie=>zt(ie,!0);function Mn(ie){be[ie?"unshift":"push"](()=>{oi=ie,i(38,oi)})}function le(ie){be[ie?"unshift":"push"](()=>{wi=ie,i(24,wi)})}let _t=ie=>Gt(ie),Ni=(ie,mt)=>Xi(mt,ie);function _n(ie){be[ie?"unshift":"push"](()=>{xt=ie,i(37,xt)})}return t.$$set=ie=>{"ref"in ie&&i(0,z=ie.ref),"supportLink"in ie&&i(110,G=ie.supportLink),"playerControlsHeight"in ie&&i(111,$=ie.playerControlsHeight),"returnFocus"in ie&&i(112,W=ie.returnFocus)},t.$$.update=()=>{t.$$.dirty[0]&4096&&X&&(i(13,lt=!0),i(14,dt=!1),i(15,yt=!1),i(16,Et=!1),i(17,Ye=!1),i(18,Kt=!1)),t.$$.dirty[3]&33554432&&i(39,n=_o(v)),t.$$.dirty[0]&1024|t.$$.dirty[3]&100663296&&i(19,bi=on(v,b,y)),t.$$.dirty[3]&1207959552&&i(25,fi=ke&&N&&!T),t.$$.dirty[3]&671088640&&i(26,Hi=te.features.trafficSaving&&!T&&q),t.$$.dirty[0]&128|t.$$.dirty[3]&134217728&&i(27,Nt=u.length>0&&!T),t.$$.dirty[3]&402653184&&i(28,Si=!!Y&&!T),t.$$.dirty[0]&512|t.$$.dirty[3]&134217728&&i(29,Mi=te.features.audioLanguages&&C.length>=2&&!T),t.$$.dirty[3]&134217728&&i(30,Ui=!T),t.$$.dirty[0]&64&&i(31,di=a?O("traffic_saving_on"):O("traffic_saving_off")),t.$$.dirty[3]&100663296&&i(32,Lt=y?O("auto_quality_option"):v),t.$$.dirty[0]&2304&&i(33,Wi=p.find(ie=>ie.value===E)?.displayValue),t.$$.dirty[0]&2|t.$$.dirty[3]&16777216&&al(Vi,Qt,w),t.$$.dirty[0]&4|t.$$.dirty[3]&8388608&&al(Ot,Ci,h),t.$$.dirty[0]&8|t.$$.dirty[3]&4194304&&al(mi,Yt,f),t.$$.dirty[0]&16|t.$$.dirty[3]&2097152&&al(Ft,Ri,s),t.$$.dirty[0]&32|t.$$.dirty[3]&1048576&&al(ni,$t,r)},[z,Vi,Ot,mi,Ft,ni,a,u,p,C,b,E,X,lt,dt,yt,Et,Ye,Kt,bi,vi,ui,ci,yi,wi,fi,Hi,Nt,Si,Mi,Ui,di,Lt,Wi,Ki,ji,Pi,xt,oi,n,l,g,ae,K,te,re,Ve,Xe,Se,Me,Ue,$e,ce,_e,at,Fe,ft,Qe,je,Ze,xe,x,De,ze,fe,se,Tt,ai,rt,wt,we,gt,kt,Xt,St,jt,Gt,Dt,Fi,nn,Jt,Li,sn,zi,ki,Qt,Ci,Yt,Ri,$t,Gi,Qi,an,Bi,ei,ti,Yi,Mt,Vt,Zi,Ti,ii,Xi,et,Ii,zt,We,Ji,un,cn,G,$,W,r,s,f,h,w,v,y,T,Y,q,N,xi,qi,ln,Di,Zt,$i,pi,hn,fn,dn,yn,rn,mn,pn,en,_i,wn,tn,En,Ht,An,Ln,kn,Mn,le,_t,Ni,_n]}var Ta=class extends H{constructor(e){super(),U(this,e,Tg,Cg,F,{ref:0,supportLink:110,playerControlsHeight:111,returnFocus:112},kg,[-1,-1,-1,-1,-1,-1])}},Cr=Ta;function Ig(t){Pe(t,"svelte-d9t49t",".settings-icon-wrapper.svelte-d9t49t{position:relative;width:24px}")}function Eg(t){let e,i,n;return i=new kr({props:{isMobile:t[3],currentQuality:t[4]}}),{c(){e=P("span"),M(i.$$.fragment),c(e,"class","settings-icon-wrapper svelte-d9t49t")},m(o,l){S(o,e,l),A(i,e,null),n=!0},p(o,l){let r={};l&8&&(r.isMobile=o[3]),l&16&&(r.currentQuality=o[4]),i.$set(r)},i(o){n||(d(i.$$.fragment,o),n=!0)},o(o){_(i.$$.fragment,o),n=!1},d(o){o&&k(e),L(i)}}}function Ag(t){let e,i,n;function o(r){t[9](r)}let l={className:t[1]?"opened":"",testId:"btn-settings",click:t[8],ariaLabel:t[2],ariaExpanded:t[1],$$slots:{default:[Eg]},$$scope:{ctx:t}};return t[0]!==void 0&&(l.ref=t[0]),e=new ht({props:l}),be.push(()=>Oe(e,"ref",o)),{c(){M(e.$$.fragment)},m(r,a){A(e,r,a),n=!0},p(r,[a]){let s={};a&2&&(s.className=r[1]?"opened":""),a&4&&(s.ariaLabel=r[2]),a&2&&(s.ariaExpanded=r[1]),a&4120&&(s.$$scope={dirty:a,ctx:r}),!i&&a&1&&(i=!0,s.ref=r[0],Ne(()=>i=!1)),e.$set(s)},i(r){n||(d(e.$$.fragment,r),n=!0)},o(r){_(e.$$.fragment,r),n=!1},d(r){L(e,r)}}}function Lg(t,e,i){let n,o,l,{ref:r=void 0}=e,a=it(),s=a.state.currentQuality$;D(t,s,C=>i(4,l=C));let u=a.ui.settingsMenuVisible;D(t,u,C=>i(1,n=C));let f=a.actions.internal.toggleSettingsMenu,p=a.ui.isMobile;D(t,p,C=>i(3,o=C));let h;function w(C){let b=rl(C);f(b)}function g(C){r=C,i(0,r)}return t.$$set=C=>{"ref"in C&&i(0,r=C.ref)},t.$$.update=()=>{t.$$.dirty&2&&i(2,h=n?O("tooltip_settings_on"):O("tooltip_settings_off"))},[r,n,h,o,l,s,u,p,w,g]}var Ia=class extends H{constructor(e){super(),U(this,e,Lg,Ag,F,{ref:0},Ig)}},Ml=Ia;function Mg(t){let e,i,n,o=t[2].default,l=Ie(o,t,t[1],null),r=[{xmlns:"http://www.w3.org/2000/svg"},{width:"22"},{height:"16"},{fill:"none"},{"aria-hidden":"true"},{"data-testid":"subtitle-pained-icon"},{role:"img"},t[0]],a={};for(let s=0;s<r.length;s+=1)a=ue(a,r[s]);return{c(){e=R("svg"),l&&l.c(),i=R("path"),c(i,"fill","#fff"),c(i,"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"),ye(e,a)},m(s,u){S(s,e,u),l&&l.m(e,null),m(e,i),n=!0},p(s,[u]){l&&l.p&&(!n||u&2)&&Ae(l,o,s,s[1],n?Ee(o,s[1],u,null):Le(s[1]),null),ye(e,a=Be(r,[{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(l,s),n=!0)},o(s){_(l,s),n=!1},d(s){s&&k(e),l&&l.d(s)}}}function Vg(t,e,i){let{$$slots:n={},$$scope:o}=e;return t.$$set=l=>{i(0,e=ue(ue({},e),ve(l))),"$$scope"in l&&i(1,o=l.$$scope)},e=ve(e),[e,o,n]}var Ea=class extends H{constructor(e){super(),U(this,e,Vg,Mg,F,{})}},w1=Ea;function Rg(t){let e,i;return e=new Sr({}),{c(){M(e.$$.fragment)},m(n,o){A(e,n,o),i=!0},i(n){i||(d(e.$$.fragment,n),i=!0)},o(n){_(e.$$.fragment,n),i=!1},d(n){L(e,n)}}}function Bg(t){let e,i;return e=new w1({}),{c(){M(e.$$.fragment)},m(n,o){A(e,n,o),i=!0},i(n){i||(d(e.$$.fragment,n),i=!0)},o(n){_(e.$$.fragment,n),i=!1},d(n){L(e,n)}}}function qg(t){let e,i,n,o,l=[Bg,Rg],r=[];function a(s,u){return s[0]?0:1}return e=a(t,-1),i=r[e]=l[e](t),{c(){i.c(),n=ct()},m(s,u){r[e].m(s,u),S(s,n,u),o=!0},p(s,u){let f=e;e=a(s,u),e!==f&&(me(),_(r[f],1,1,()=>{r[f]=null}),pe(),i=r[e],i||(i=r[e]=l[e](s),i.c()),d(i,1),i.m(n.parentNode,n))},i(s){o||(d(i),o=!0)},o(s){_(i),o=!1},d(s){s&&k(n),r[e].d(s)}}}function Dg(t){let e,i;return e=new ht({props:{testId:"btn-Subtitles",ariaLabel:t[2],click:t[1],ariaKeyShortCut:Yn.KeyC,$$slots:{default:[qg]},$$scope:{ctx:t}}}),{c(){M(e.$$.fragment)},m(n,o){A(e,n,o),i=!0},p(n,[o]){let l={};o&4&&(l.ariaLabel=n[2]),o&2&&(l.click=n[1]),o&9&&(l.$$scope={dirty:o,ctx:n}),e.$set(l)},i(n){i||(d(e.$$.fragment,n),i=!0)},o(n){_(e.$$.fragment,n),i=!1},d(n){L(e,n)}}}function Ng(t,e,i){let{isSubtitlesEnabled:n=!1}=e,{click:o}=e,l;return t.$$set=r=>{"isSubtitlesEnabled"in r&&i(0,n=r.isSubtitlesEnabled),"click"in r&&i(1,o=r.click)},t.$$.update=()=>{t.$$.dirty&1&&i(2,l=n?O("tooltip_subtitles_on"):O("tooltip_subtitles_off"))},[n,o,l]}var Aa=class extends H{constructor(e){super(),U(this,e,Ng,Dg,F,{isSubtitlesEnabled:0,click:1})}},k1=Aa;function Og(t){Pe(t,"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 S1(t){let e,i;return{c(){e=P("span"),i=Re(t[3]),c(e,"class","duration svelte-19o2urr")},m(n,o){S(n,e,o),m(e,i)},p(n,o){o&8&&Ge(i,n[3])},d(n){n&&k(e)}}}function Fg(t){let e,i,n,o,l=t[2]&&S1(t);return{c(){e=P("div"),i=P("span"),n=Re(t[4]),o=V(),l&&l.c(),c(i,"class","current svelte-19o2urr"),c(e,"class","time svelte-19o2urr"),B(e,"mobile",t[1])},m(r,a){S(r,e,a),m(e,i),m(i,n),m(e,o),l&&l.m(e,null),t[7](e)},p(r,[a]){a&16&&Ge(n,r[4]),r[2]?l?l.p(r,a):(l=S1(r),l.c(),l.m(e,null)):l&&(l.d(1),l=null),a&2&&B(e,"mobile",r[1])},i:Ce,o:Ce,d(r){r&&k(e),l&&l.d(),t[7](null)}}}function zg(t,e,i){let{isMobile:n=!1}=e,{duration:o}=e,{position:l}=e,{showDuration:r=!0}=e,{ref:a}=e,s,u;function f(p){be[p?"unshift":"push"](()=>{a=p,i(0,a)})}return t.$$set=p=>{"isMobile"in p&&i(1,n=p.isMobile),"duration"in p&&i(5,o=p.duration),"position"in p&&i(6,l=p.position),"showDuration"in p&&i(2,r=p.showDuration),"ref"in p&&i(0,a=p.ref)},t.$$.update=()=>{t.$$.dirty&32&&i(3,s=Tn(o)),t.$$.dirty&64&&i(4,u=Tn(l))},[a,n,r,s,u,o,l,f]}var La=class extends H{constructor(e){super(),U(this,e,zg,Fg,F,{isMobile:1,duration:5,position:6,showDuration:2,ref:0},Og)}},Pr=La;import{noop as ho}from"@vkontakte/videoplayer-shared";function Hg(t){Pe(t,"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 Ug(t){let e,i,n,o,l,r;return{c(){e=R("svg"),i=R("g"),n=R("path"),o=R("path"),l=R("path"),c(n,"class","wave2 svelte-1n5yyua"),c(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"),c(o,"class","wave1 svelte-1n5yyua"),c(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"),c(l,"class","cross svelte-1n5yyua"),c(l,"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"),c(i,"fill","#fff"),c(i,"fill-rule","evenodd"),c(e,"data-value",t[0]),c(e,"data-testid",r="volume-"+t[0]+"-icon"),c(e,"xmlns","http://www.w3.org/2000/svg"),c(e,"class","icon svelte-1n5yyua"),c(e,"aria-hidden","true")},m(a,s){S(a,e,s),m(e,i),m(i,n),m(i,o),m(i,l)},p(a,[s]){s&1&&c(e,"data-value",a[0]),s&1&&r!==(r="volume-"+a[0]+"-icon")&&c(e,"data-testid",r)},i:Ce,o:Ce,d(a){a&&k(e)}}}function Wg(t,e,i){let{volume:n=1}=e,{muted:o=!1}=e,l=(a,s)=>s?"off":a>.5?"max":a>.2?"mid":a>0?"min":"off",r;return t.$$set=a=>{"volume"in a&&i(1,n=a.volume),"muted"in a&&i(2,o=a.muted)},t.$$.update=()=>{t.$$.dirty&6&&i(0,r=l(n,o))},[r,n,o]}var Ma=class extends H{constructor(e){super(),U(this,e,Wg,Ug,F,{volume:1,muted:2},Hg)}},zo=Ma;import{noop as jn}from"@vkontakte/videoplayer-shared";import{noop as Jg}from"@vkontakte/videoplayer-shared";import{noop as Gg}from"@vkontakte/videoplayer-shared";function Kg(t){let e,i,n=t[4].default,o=Ie(n,t,t[3],null);return{c(){e=P("div"),o&&o.c(),c(e,"class","overlay")},m(l,r){S(l,e,r),o&&o.m(e,null),t[5](e),i=!0},p(l,[r]){o&&o.p&&(!i||r&8)&&Ae(o,n,l,l[3],i?Ee(n,l[3],r,null):Le(l[3]),null)},i(l){i||(d(o,l),i=!0)},o(l){_(o,l),i=!1},d(l){l&&k(e),o&&o.d(l),t[5](null)}}}function jg(t,e,i){let n,{$$slots:o={},$$scope:l}=e,a=it().ui.overlayContainer$;D(t,a,h=>i(2,n=h));let s,u=h=>{!h||!s||!h.contains(s)||h.removeChild(s)},f=h=>{!h||!s||h.contains(s)||h.appendChild(s)};It(()=>(f(n),()=>u(n)));function p(h){be[h?"unshift":"push"](()=>{s=h,i(0,s)})}return t.$$set=h=>{"$$scope"in h&&i(3,l=h.$$scope)},t.$$.update=()=>{t.$$.dirty&4&&f(n)},[s,a,n,l,o,p]}var Va=class extends H{constructor(e){super(),U(this,e,jg,Kg,F,{})}},C1=Va;function Qg(t){Pe(t,"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 P1(t){let e,i;return e=new C1({props:{$$slots:{default:[Yg]},$$scope:{ctx:t}}}),{c(){M(e.$$.fragment)},m(n,o){A(e,n,o),i=!0},p(n,o){let l={};o&2097395&&(l.$$scope={dirty:o,ctx:n}),e.$set(l)},i(n){i||(d(e.$$.fragment,n),i=!0)},o(n){_(e.$$.fragment,n),i=!1},d(n){L(e,n)}}}function Yg(t){let e,i,n,o,l,r,a;return{c(){e=P("div"),i=P("div"),n=Re(t[1]),o=V(),l=P("div"),c(i,"class","content svelte-tny135"),c(l,"class","tooltip-pointer svelte-tny135"),c(l,"style",r=`transform: translate(${t[5]}px, ${t[9]}px) rotate(${t[8]?0:"180deg"});`),B(l,"bottom-placement-pointer",!t[8]),c(e,"class","tooltip svelte-tny135"),c(e,"style",a=`transform: translate(${t[6]}px, ${t[7]}px);`),B(e,"active",t[0])},m(s,u){S(s,e,u),m(e,i),m(i,n),m(e,o),m(e,l),t[20](e)},p(s,u){u&2&&Ge(n,s[1]),u&32&&r!==(r=`transform: translate(${s[5]}px, ${s[9]}px) rotate(${s[8]?0:"180deg"});`)&&c(l,"style",r),u&192&&a!==(a=`transform: translate(${s[6]}px, ${s[7]}px);`)&&c(e,"style",a),u&1&&B(e,"active",s[0])},d(s){s&&k(e),t[20](null)}}}function Zg(t){let e,i,n,o,l,r,a=t[18].default,s=Ie(a,t,t[21],null),u=t[1]&&P1(t);return{c(){e=P("div"),s&&s.c(),i=V(),u&&u.c(),n=ct(),c(e,"class","tooltip-wrapper svelte-tny135"),B(e,"full-width",t[2])},m(f,p){S(f,e,p),s&&s.m(e,null),t[19](e),S(f,i,p),u&&u.m(f,p),S(f,n,p),o=!0,l||(r=[he(e,"mouseenter",t[12]),he(e,"mousemove",t[12]),he(e,"mouseleave",t[13]),he(e,"mousedown",t[13]),he(e,"mouseup",t[12])],l=!0)},p(f,[p]){s&&s.p&&(!o||p&2097152)&&Ae(s,a,f,f[21],o?Ee(a,f[21],p,null):Le(f[21]),null),(!o||p&4)&&B(e,"full-width",f[2]),f[1]?u?(u.p(f,p),p&2&&d(u,1)):(u=P1(f),u.c(),d(u,1),u.m(n.parentNode,n)):u&&(me(),_(u,1,1,()=>{u=null}),pe())},i(f){o||(d(s,f),d(u),o=!0)},o(f){_(s,f),_(u),o=!1},d(f){f&&(k(e),k(i),k(n)),s&&s.d(f),t[19](null),u&&u.d(f),l=!1,tt(r)}}}var Vl=5;function Xg(t,e,i){let n,o,{$$slots:l={},$$scope:r}=e,{content:a=""}=e,{active:s=!1}=e,{translateX:u=0}=e,{translateY:f=0}=e,{isFullWidthWrapper:p=!1}=e,{placement:h="top"}=e,{onVisibilityChange:w=Gg}=e,g=h==="top",C,b,E,v=0,y=g?Vl:-Vl,T=0,Y=0,q=Bt(),N=it(),ne=N.ui.playerSize;D(t,ne,Q=>i(24,o=Q));let ge=N.ui.overlayContainer$;D(t,ge,Q=>i(23,n=Q));let j=N.getLogger().createComponentLog("Tooltip component"),X=()=>{if(!n||!b||!C)return;let Q=n.getBoundingClientRect(),te=C.getBoundingClientRect(),re=te.width,Ve=b.clientWidth,Xe=o.width,Se=(re-Ve)/2,Me=te.left+u-Q.left,Ue=Me+Se,$e=te.top+f-Q.top,ce=Ve/2-Vl,_e=Ue<8,at=Ue+Ve>Xe-8;_e&&(Ue=8,ce=Me+te.width/2-2.5*Vl),at&&(Ue=Xe-8-Ve,ce=te.left-Q.left+te.width/2-Ue-Vl),i(6,T=Ue),i(7,Y=$e),i(5,v=ce)},ae=()=>{try{if(!n||!C)return;X(),i(0,s=!0)}catch(Q){j({message:String(Q)})}},K=()=>{i(0,s=!1)},z=()=>{b&&(E||(E=window.setTimeout(ae,q.controls.hideTimeoutTooltips)),s&&ae())},G=()=>{K(),window.clearTimeout(E),E=void 0};It(X),Hn(()=>window.clearTimeout(E));function $(Q){be[Q?"unshift":"push"](()=>{C=Q,i(3,C)})}function W(Q){be[Q?"unshift":"push"](()=>{b=Q,i(4,b)})}return t.$$set=Q=>{"content"in Q&&i(1,a=Q.content),"active"in Q&&i(0,s=Q.active),"translateX"in Q&&i(14,u=Q.translateX),"translateY"in Q&&i(15,f=Q.translateY),"isFullWidthWrapper"in Q&&i(2,p=Q.isFullWidthWrapper),"placement"in Q&&i(16,h=Q.placement),"onVisibilityChange"in Q&&i(17,w=Q.onVisibilityChange),"$$scope"in Q&&i(21,r=Q.$$scope)},t.$$.update=()=>{t.$$.dirty&131073&&w(s)},[s,a,p,C,b,v,T,Y,g,y,ne,ge,z,G,u,f,h,w,l,$,W,r]}var Ra=class extends H{constructor(e){super(),U(this,e,Xg,Zg,F,{content:1,active:0,translateX:14,translateY:15,isFullWidthWrapper:2,placement:16,onVisibilityChange:17},Qg)}},Tr=Ra;function xg(t){Pe(t,"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 $g(t){let e,i=t[19].default,n=Ie(i,t,t[24],null);return{c(){n&&n.c()},m(o,l){n&&n.m(o,l),e=!0},p(o,l){n&&n.p&&(!e||l&16777216)&&Ae(n,i,o,o[24],e?Ee(i,o[24],l,null):Le(o[24]),null)},i(o){e||(d(n,o),e=!0)},o(o){_(n,o),e=!1},d(o){n&&n.d(o)}}}function eb(t){let e,i;return e=new Tr({props:{content:t[11],translateX:t[9],translateY:t[10],isFullWidthWrapper:t[4],active:t[5],placement:t[6],onVisibilityChange:t[8],$$slots:{default:[tb]},$$scope:{ctx:t}}}),{c(){M(e.$$.fragment)},m(n,o){A(e,n,o),i=!0},p(n,o){let l={};o&2048&&(l.content=n[11]),o&512&&(l.translateX=n[9]),o&1024&&(l.translateY=n[10]),o&16&&(l.isFullWidthWrapper=n[4]),o&32&&(l.active=n[5]),o&64&&(l.placement=n[6]),o&256&&(l.onVisibilityChange=n[8]),o&16777216&&(l.$$scope={dirty:o,ctx:n}),e.$set(l)},i(n){i||(d(e.$$.fragment,n),i=!0)},o(n){_(e.$$.fragment,n),i=!1},d(n){L(e,n)}}}function tb(t){let e,i=t[19].default,n=Ie(i,t,t[24],null);return{c(){n&&n.c()},m(o,l){n&&n.m(o,l),e=!0},p(o,l){n&&n.p&&(!e||l&16777216)&&Ae(n,i,o,o[24],e?Ee(i,o[24],l,null):Le(o[24]),null)},i(o){e||(d(n,o),e=!0)},o(o){_(n,o),e=!1},d(o){n&&n.d(o)}}}function ib(t){let e,i,n,o,l,r,a,s,u,f=[eb,$g],p=[];function h(w,g){return w[3]&&w[11]&&!w[12]?0:1}return i=h(t,-1),n=p[i]=f[i](t),{c(){e=P("div"),n.c(),c(e,"class",o="btn-container "+t[2]+" svelte-p9r045"),c(e,"aria-hidden",l=t[7]||null),Wn(()=>t[23].call(e))},m(w,g){S(w,e,g),p[i].m(e,null),t[22](e),r=Zo(e,t[23].bind(e)),a=!0,s||(u=[he(e,"pointerdown",st(t[20])),he(e,"click",st(t[21]))],s=!0)},p(w,[g]){let C=i;i=h(w,g),i===C?p[i].p(w,g):(me(),_(p[C],1,1,()=>{p[C]=null}),pe(),n=p[i],n?n.p(w,g):(n=p[i]=f[i](w),n.c()),d(n,1),n.m(e,null)),(!a||g&4&&o!==(o="btn-container "+w[2]+" svelte-p9r045"))&&c(e,"class",o),(!a||g&128&&l!==(l=w[7]||null))&&c(e,"aria-hidden",l)},i(w){a||(d(n),a=!0)},o(w){_(n),a=!1},d(w){w&&k(e),p[i].d(),t[22](null),r(),s=!1,tt(u)}}}function nb(t,e,i){let n,o,{$$slots:l={},$$scope:r}=e,{className:a=""}=e,{disabled:s=!1}=e,{hasTooltip:u=!0}=e,{ref:f=void 0}=e,{width:p=void 0}=e,{isFullWidthTooltip:h=!0}=e,{tooltipContent:w=""}=e,{tooltipActive:g=!1}=e,{tooltipPlacement:C="top"}=e,{disabledTooltipContent:b=O("tooltip_button_disabled")}=e,{isAriaHidden:E=!1}=e,{onTooltipVisibilityChange:v=Jg}=e,{initialTranslateXPx:y=0}=e,{initialTranslateYPx:T=-18}=e,Y=it(),q=Y.ui.isMobile;D(t,q,K=>i(12,o=K));let N=Y.state.graphIsOpened$;D(t,N,K=>i(18,n=K));let ne;function ge(K){Pn.call(this,t,K)}function j(K){Pn.call(this,t,K)}function X(K){be[K?"unshift":"push"](()=>{f=K,i(0,f)})}function ae(){p=this.clientWidth,i(1,p)}return t.$$set=K=>{"className"in K&&i(2,a=K.className),"disabled"in K&&i(15,s=K.disabled),"hasTooltip"in K&&i(3,u=K.hasTooltip),"ref"in K&&i(0,f=K.ref),"width"in K&&i(1,p=K.width),"isFullWidthTooltip"in K&&i(4,h=K.isFullWidthTooltip),"tooltipContent"in K&&i(16,w=K.tooltipContent),"tooltipActive"in K&&i(5,g=K.tooltipActive),"tooltipPlacement"in K&&i(6,C=K.tooltipPlacement),"disabledTooltipContent"in K&&i(17,b=K.disabledTooltipContent),"isAriaHidden"in K&&i(7,E=K.isAriaHidden),"onTooltipVisibilityChange"in K&&i(8,v=K.onTooltipVisibilityChange),"initialTranslateXPx"in K&&i(9,y=K.initialTranslateXPx),"initialTranslateYPx"in K&&i(10,T=K.initialTranslateYPx),"$$scope"in K&&i(24,r=K.$$scope)},t.$$.update=()=>{t.$$.dirty&491520&&(s?i(11,ne=n?O("tooltip_disabled_when_graph_on"):b):i(11,ne=w))},[f,p,a,u,h,g,C,E,v,y,T,ne,o,q,N,s,w,b,n,l,ge,j,X,ae,r]}var Ba=class extends H{constructor(e){super(),U(this,e,nb,ib,F,{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},xg)}},At=Ba;function ob(t){let e,i,n,o,l,r;return{c(){e=R("svg"),i=R("rect"),o=R("path"),c(i,"width","20"),c(i,"height","20"),c(i,"rx","10"),c(i,"fill","white"),c(i,"fill-opacity",n=t[0]?1:.24),c(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"),c(o,"fill",l=t[0]?"var(--interactive-episode-complete)":"white"),c(e,"width","20"),c(e,"height","20"),c(e,"viewBox","0 0 20 20"),c(e,"fill","none"),c(e,"xmlns","http://www.w3.org/2000/svg"),c(e,"aria-hidden","true"),c(e,"data-testid",r=(t[0],"interactive-episode-completed-icon"))},m(a,s){S(a,e,s),m(e,i),m(e,o)},p(a,[s]){s&1&&n!==(n=a[0]?1:.24)&&c(i,"fill-opacity",n),s&1&&l!==(l=a[0]?"var(--interactive-episode-complete)":"white")&&c(o,"fill",l),s&1&&r!==(r=(a[0],"interactive-episode-completed-icon"))&&c(e,"data-testid",r)},i:Ce,o:Ce,d(a){a&&k(e)}}}function lb(t,e,i){let{completed:n}=e;return t.$$set=o=>{"completed"in o&&i(0,n=o.completed)},[n]}var qa=class extends H{constructor(e){super(),U(this,e,lb,ob,F,{completed:0})}},Ir=qa;function rb(t){Pe(t,"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 sb(t){let e,i,n,o,l;return i=new Ir({props:{completed:!!t[0].completed}}),{c(){e=P("div"),M(i.$$.fragment),c(e,"class","interactive-episode-icon svelte-bklhpe"),c(e,"style",n=`left: ${t[0].from+t[0].width/2}%`),Wn(()=>t[3].call(e)),B(e,"disabled",t[1])},m(r,a){S(r,e,a),A(i,e,null),o=Zo(e,t[3].bind(e)),l=!0},p(r,a){let s={};a&1&&(s.completed=!!r[0].completed),i.$set(s),(!l||a&1&&n!==(n=`left: ${r[0].from+r[0].width/2}%`))&&c(e,"style",n),(!l||a&2)&&B(e,"disabled",r[1])},i(r){l||(d(i.$$.fragment,r),l=!0)},o(r){_(i.$$.fragment,r),l=!1},d(r){r&&k(e),L(i),o()}}}function ab(t){let e,i;return e=new At({props:{tooltipContent:O(t[0].completed?"tooltip_episode_finished":"tooltip_episode_unfinished"),initialTranslateXPx:-10,initialTranslateYPx:-10,disabled:t[1],width:t[2]||0,isAriaHidden:!0,isFullWidthTooltip:!1,$$slots:{default:[sb]},$$scope:{ctx:t}}}),{c(){M(e.$$.fragment)},m(n,o){A(e,n,o),i=!0},p(n,[o]){let l={};o&1&&(l.tooltipContent=O(n[0].completed?"tooltip_episode_finished":"tooltip_episode_unfinished")),o&2&&(l.disabled=n[1]),o&4&&(l.width=n[2]||0),o&23&&(l.$$scope={dirty:o,ctx:n}),e.$set(l)},i(n){i||(d(e.$$.fragment,n),i=!0)},o(n){_(e.$$.fragment,n),i=!1},d(n){L(e,n)}}}function ub(t,e,i){let{videoEpisode:n}=e,{disabled:o}=e,l;function r(){l=this.clientWidth,i(2,l)}return t.$$set=a=>{"videoEpisode"in a&&i(0,n=a.videoEpisode),"disabled"in a&&i(1,o=a.disabled)},[n,o,l,r]}var Da=class extends H{constructor(e){super(),U(this,e,ub,ab,F,{videoEpisode:0,disabled:1},rb)}},T1=Da;function cb(t){Pe(t,"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 I1(t,e,i){let n=t.slice();return n[3]=e[i],n}function E1(t){let e,i,n,o,l,r,a,s,u;return{c(){e=P("div"),i=P("div"),n=P("div"),l=V(),r=P("div"),s=V(),c(n,"class","video-episode-loaded svelte-1rzxunm"),c(n,"style",o=`transform: translateX(${t[3].loadedWidth/t[3].width*100}%)`),c(r,"class","video-episode-filled svelte-1rzxunm"),c(r,"style",a=`transform: translateX(${t[3].filledWidth/t[3].width*100}%)`),B(r,"mobile",t[1]),c(i,"class","video-episode-inner svelte-1rzxunm"),c(e,"class","video-episode svelte-1rzxunm"),c(e,"style",u=`left: ${t[3].from}%; width: ${t[3].width}%`),B(e,"disabled",t[2]),B(e,"mobile",t[1])},m(f,p){S(f,e,p),m(e,i),m(i,n),m(i,l),m(i,r),m(e,s)},p(f,p){p&1&&o!==(o=`transform: translateX(${f[3].loadedWidth/f[3].width*100}%)`)&&c(n,"style",o),p&1&&a!==(a=`transform: translateX(${f[3].filledWidth/f[3].width*100}%)`)&&c(r,"style",a),p&2&&B(r,"mobile",f[1]),p&1&&u!==(u=`left: ${f[3].from}%; width: ${f[3].width}%`)&&c(e,"style",u),p&4&&B(e,"disabled",f[2]),p&2&&B(e,"mobile",f[1])},d(f){f&&k(e)}}}function fb(t){let e,i=Pt(t[0]),n=[];for(let o=0;o<i.length;o+=1)n[o]=E1(I1(t,i,o));return{c(){e=P("div");for(let o=0;o<n.length;o+=1)n[o].c();c(e,"class","video-episodes-wrap svelte-1rzxunm")},m(o,l){S(o,e,l);for(let r=0;r<n.length;r+=1)n[r]&&n[r].m(e,null)},p(o,[l]){if(l&7){i=Pt(o[0]);let r;for(r=0;r<i.length;r+=1){let a=I1(o,i,r);n[r]?n[r].p(a,l):(n[r]=E1(a),n[r].c(),n[r].m(e,null))}for(;r<n.length;r+=1)n[r].d(1);n.length=i.length}},i:Ce,o:Ce,d(o){o&&k(e),Ai(n,o)}}}function db(t,e,i){let{videoEpisodes:n=[]}=e,{isMobile:o}=e,{disabled:l}=e;return t.$$set=r=>{"videoEpisodes"in r&&i(0,n=r.videoEpisodes),"isMobile"in r&&i(1,o=r.isMobile),"disabled"in r&&i(2,l=r.disabled)},[n,o,l]}var Na=class extends H{constructor(e){super(),U(this,e,db,fb,F,{videoEpisodes:0,isMobile:1,disabled:2},cb)}},A1=Na;function mb(t){Pe(t,"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 L1(t,e,i){let n=t.slice();return n[50]=e[i],n}function M1(t){let e,i,n=Pt(t[21]),o=[];for(let r=0;r<n.length;r+=1)o[r]=R1(L1(t,n,r));let l=r=>_(o[r],1,1,()=>{o[r]=null});return{c(){e=P("div");for(let r=0;r<o.length;r+=1)o[r].c();c(e,"class","interactive-icons svelte-v8ydei"),B(e,"mobile",t[6]),B(e,"hidden",t[6]&&!t[20])},m(r,a){S(r,e,a);for(let s=0;s<o.length;s+=1)o[s]&&o[s].m(e,null);i=!0},p(r,a){if(a[0]&2098176){n=Pt(r[21]);let s;for(s=0;s<n.length;s+=1){let u=L1(r,n,s);o[s]?(o[s].p(u,a),d(o[s],1)):(o[s]=R1(u),o[s].c(),d(o[s],1),o[s].m(e,null))}for(me(),s=n.length;s<o.length;s+=1)l(s);pe()}(!i||a[0]&64)&&B(e,"mobile",r[6]),(!i||a[0]&1048640)&&B(e,"hidden",r[6]&&!r[20])},i(r){if(!i){for(let a=0;a<n.length;a+=1)d(o[a]);i=!0}},o(r){o=o.filter(Boolean);for(let a=0;a<o.length;a+=1)_(o[a]);i=!1},d(r){r&&k(e),Ai(o,r)}}}function V1(t){let e,i;return e=new T1({props:{videoEpisode:t[50],disabled:t[10]}}),{c(){M(e.$$.fragment)},m(n,o){A(e,n,o),i=!0},p(n,o){let l={};o[0]&2097152&&(l.videoEpisode=n[50]),o[0]&1024&&(l.disabled=n[10]),e.$set(l)},i(n){i||(d(e.$$.fragment,n),i=!0)},o(n){_(e.$$.fragment,n),i=!1},d(n){L(e,n)}}}function R1(t){let e,i,n=t[50].interactive&&V1(t);return{c(){n&&n.c(),e=ct()},m(o,l){n&&n.m(o,l),S(o,e,l),i=!0},p(o,l){o[50].interactive?n?(n.p(o,l),l[0]&2097152&&d(n,1)):(n=V1(o),n.c(),d(n,1),n.m(e.parentNode,e)):n&&(me(),_(n,1,1,()=>{n=null}),pe())},i(o){i||(d(n),i=!0)},o(o){_(n),i=!1},d(o){o&&k(e),n&&n.d(o)}}}function pb(t){let e,i,n,o,l,r;return{c(){e=P("div"),i=P("div"),o=V(),l=P("div"),c(i,"class","loaded svelte-v8ydei"),c(i,"style",n=`transform: translateX(${t[12]*100}%);`),c(l,"class","filled svelte-v8ydei"),c(l,"style",r=`transform: translateX(${t[13]*100}%);`),B(l,"active-live",t[5]),B(l,"ads",t[7]),c(e,"class","bars svelte-v8ydei")},m(a,s){S(a,e,s),m(e,i),m(e,o),m(e,l)},p(a,s){s[0]&4096&&n!==(n=`transform: translateX(${a[12]*100}%);`)&&c(i,"style",n),s[0]&8192&&r!==(r=`transform: translateX(${a[13]*100}%);`)&&c(l,"style",r),s[0]&32&&B(l,"active-live",a[5]),s[0]&128&&B(l,"ads",a[7])},i:Ce,o:Ce,d(a){a&&k(e)}}}function _b(t){let e,i;return e=new A1({props:{videoEpisodes:t[21],disabled:t[10],isMobile:t[6]}}),{c(){M(e.$$.fragment)},m(n,o){A(e,n,o),i=!0},p(n,o){let l={};o[0]&2097152&&(l.videoEpisodes=n[21]),o[0]&1024&&(l.disabled=n[10]),o[0]&64&&(l.isMobile=n[6]),e.$set(l)},i(n){i||(d(e.$$.fragment,n),i=!0)},o(n){_(e.$$.fragment,n),i=!1},d(n){L(e,n)}}}function hb(t){let e,i,n,o,l,r,a,s,u,f,p,h,w,g=t[9]&&M1(t),C=[_b,pb],b=[];function E(v,y){return v[21].length?0:1}return n=E(t,[-1,-1]),o=b[n]=C[n](t),{c(){g&&g.c(),e=V(),i=P("div"),o.c(),l=V(),r=P("div"),a=P("div"),c(a,"class","handle svelte-v8ydei"),B(a,"active-live",t[5]),c(r,"class","handleWrap svelte-v8ydei"),c(r,"style",s=`transform: translateX(${t[14]*100}%);`),B(r,"hidden",t[11]),c(i,"class",u="slider "+t[1]+" svelte-v8ydei"),c(i,"aria-label",t[15]),c(i,"aria-valuemin",t[16]),c(i,"aria-valuemax",t[17]),c(i,"aria-valuenow",t[18]),c(i,"aria-valuetext",t[19]),c(i,"role","slider"),c(i,"tabindex","0"),c(i,"data-testid",f=t[2]??null),B(i,"disabled",t[10]),B(i,"slider-dragging",t[20]),B(i,"hidden",t[3]),B(i,"slider-vertical",t[4]),B(i,"no-handle",t[11]),B(i,"square",t[8])},m(v,y){g&&g.m(v,y),S(v,e,y),S(v,i,y),b[n].m(i,null),m(i,l),m(i,r),m(r,a),t[44](i),p=!0,h||(w=[he(i,"pointerdown",Wt(t[22])),he(i,"pointermove",Wt(t[23])),he(i,"pointerup",Wt(t[24])),he(i,"pointerenter",Wt(t[25])),he(i,"pointerleave",Wt(t[26])),he(i,"click",st(t[28])),he(i,"wheel",t[27])],h=!0)},p(v,y){v[9]?g?(g.p(v,y),y[0]&512&&d(g,1)):(g=M1(v),g.c(),d(g,1),g.m(e.parentNode,e)):g&&(me(),_(g,1,1,()=>{g=null}),pe());let T=n;n=E(v,y),n===T?b[n].p(v,y):(me(),_(b[T],1,1,()=>{b[T]=null}),pe(),o=b[n],o?o.p(v,y):(o=b[n]=C[n](v),o.c()),d(o,1),o.m(i,l)),(!p||y[0]&32)&&B(a,"active-live",v[5]),(!p||y[0]&16384&&s!==(s=`transform: translateX(${v[14]*100}%);`))&&c(r,"style",s),(!p||y[0]&2048)&&B(r,"hidden",v[11]),(!p||y[0]&2&&u!==(u="slider "+v[1]+" svelte-v8ydei"))&&c(i,"class",u),(!p||y[0]&32768)&&c(i,"aria-label",v[15]),(!p||y[0]&65536)&&c(i,"aria-valuemin",v[16]),(!p||y[0]&131072)&&c(i,"aria-valuemax",v[17]),(!p||y[0]&262144)&&c(i,"aria-valuenow",v[18]),(!p||y[0]&524288)&&c(i,"aria-valuetext",v[19]),(!p||y[0]&4&&f!==(f=v[2]??null))&&c(i,"data-testid",f),(!p||y[0]&1026)&&B(i,"disabled",v[10]),(!p||y[0]&1048578)&&B(i,"slider-dragging",v[20]),(!p||y[0]&10)&&B(i,"hidden",v[3]),(!p||y[0]&18)&&B(i,"slider-vertical",v[4]),(!p||y[0]&2050)&&B(i,"no-handle",v[11]),(!p||y[0]&258)&&B(i,"square",v[8])},i(v){p||(d(g),d(o),p=!0)},o(v){_(g),_(o),p=!1},d(v){v&&(k(e),k(i)),g&&g.d(v),b[n].d(),t[44](null),h=!1,tt(w)}}}function gb(t,e,i){let n,o,{ref:l=void 0}=e,{className:r=""}=e,{testId:a=void 0}=e,{isHidden:s=!1}=e,{isVertical:u=!1}=e,{isActiveLive:f=!1}=e,{isMobile:p=!1}=e,{isAds:h=!1}=e,{squareBorders:w=!1}=e,{videoEpisodes:g=[]}=e,{withWheelHandler:C=!1}=e,{isInteractive:b=!1}=e,{disabled:E=!1}=e,{hideHandel:v=!1}=e,y,{onPointerDown:T=jn}=e,{onHandleMove:Y=jn}=e,{onPointerUp:q=jn}=e,{onPointerEnter:N=jn}=e,{onPointerMove:ne=jn}=e,{onPointerLeave:ge=jn}=e,{onWheelUp:j=jn}=e,{onWheelDown:X=jn}=e,{onWheelLeft:ae=jn}=e,{onWheelRight:K=jn}=e,{onDisabledClick:z=jn}=e,{loadedProgress:G=0}=e,{filledProgress:$=0}=e,{handleProgress:W=0}=e,{ariaLabel:Q=""}=e,{ariaValueMin:te=void 0}=e,{ariaValueMax:re=void 0}=e,{ariaValueNow:Ve=void 0}=e,{ariaValueText:Xe=""}=e,Se=Bt(),Me=!1,Ue;function $e(x){if(l&&(y=l.getBoundingClientRect()),E||Me||!l)return;i(20,Me=!0);let De=Qe(x.clientX,x.clientY);T(De),l.setPointerCapture(x.pointerId)}function ce(x){if(E)return;let De=Qe(x.clientX,x.clientY),ze=je(x.clientX);ne(De,ze,y.width),Me&&Y(De)}function _e(x){if(E||!Me)return;i(20,Me=!1);let De=Qe(x.clientX,x.clientY);q(De)}function at(x){if(l&&(y=l.getBoundingClientRect()),E)return;let De=Qe(x.clientX,x.clientY),ze=je(x.clientX);N(De,ze,y.width)}function ke(){E||ge()}function Fe(x){E||C&&(x.preventDefault(),x.deltaY<0?j():x.deltaY>0?X():x.deltaX>0?K():ae())}function ft(x){E&&z(Qe(x.clientX,x.clientY))}function Qe(x,De){return u?Math.max(0,Math.min(1,(y.height-(De-y.top))/y.height)):Math.min(Math.max(x-y.x,0),y.width)/y.width}function je(x){return Math.min(Math.max(x-y.x,0),y.width)}function Ze(x,De){let ze=Se.features.episodesClustering&&!b?Se.episodeMinWidthPc:0,fe=[],se=0,nt=0,de=0;for(let dt=1;dt<g.length;dt++)nt=g[dt].time/Ue*100,nt-se>ze&&(fe.push({from:se,width:Math.max(0,nt-se),loadedWidth:Math.max(0,Math.min(nt,x)-se),filledWidth:Math.max(0,Math.min(nt,De)-se),interactive:g[dt-1].interactive,completed:g[dt-1].completed}),se=g[dt].time/Ue*100,de++);let ot={from:se,width:Math.max(0,100-se),loadedWidth:Math.max(0,Math.min(x,100)-se),filledWidth:Math.max(0,Math.min(De,100)-se),interactive:g[de].interactive,completed:g[de].completed};100-se<ze?(de-=1,fe[de].width+=100-se,fe[de].loadedWidth+=Math.max(0,Math.min(x,100)-se),fe[de].filledWidth+=Math.max(0,Math.min(De,100)-se)):fe[de]=ot;let lt=g[0].time;if(lt!==0){let dt=lt/Ue*100;fe.unshift({from:0,width:dt,loadedWidth:Math.min(dt,x),filledWidth:Math.min(dt,De)})}return fe}function xe(x){be[x?"unshift":"push"](()=>{l=x,i(0,l)})}return t.$$set=x=>{"ref"in x&&i(0,l=x.ref),"className"in x&&i(1,r=x.className),"testId"in x&&i(2,a=x.testId),"isHidden"in x&&i(3,s=x.isHidden),"isVertical"in x&&i(4,u=x.isVertical),"isActiveLive"in x&&i(5,f=x.isActiveLive),"isMobile"in x&&i(6,p=x.isMobile),"isAds"in x&&i(7,h=x.isAds),"squareBorders"in x&&i(8,w=x.squareBorders),"videoEpisodes"in x&&i(29,g=x.videoEpisodes),"withWheelHandler"in x&&i(30,C=x.withWheelHandler),"isInteractive"in x&&i(9,b=x.isInteractive),"disabled"in x&&i(10,E=x.disabled),"hideHandel"in x&&i(11,v=x.hideHandel),"onPointerDown"in x&&i(31,T=x.onPointerDown),"onHandleMove"in x&&i(32,Y=x.onHandleMove),"onPointerUp"in x&&i(33,q=x.onPointerUp),"onPointerEnter"in x&&i(34,N=x.onPointerEnter),"onPointerMove"in x&&i(35,ne=x.onPointerMove),"onPointerLeave"in x&&i(36,ge=x.onPointerLeave),"onWheelUp"in x&&i(37,j=x.onWheelUp),"onWheelDown"in x&&i(38,X=x.onWheelDown),"onWheelLeft"in x&&i(39,ae=x.onWheelLeft),"onWheelRight"in x&&i(40,K=x.onWheelRight),"onDisabledClick"in x&&i(41,z=x.onDisabledClick),"loadedProgress"in x&&i(12,G=x.loadedProgress),"filledProgress"in x&&i(13,$=x.filledProgress),"handleProgress"in x&&i(14,W=x.handleProgress),"ariaLabel"in x&&i(15,Q=x.ariaLabel),"ariaValueMin"in x&&i(16,te=x.ariaValueMin),"ariaValueMax"in x&&i(17,re=x.ariaValueMax),"ariaValueNow"in x&&i(18,Ve=x.ariaValueNow),"ariaValueText"in x&&i(19,Xe=x.ariaValueText)},t.$$.update=()=>{t.$$.dirty[0]&131072&&i(42,Ue=re??0),t.$$.dirty[0]&536870912|t.$$.dirty[1]&2048&&i(43,n=g[g.length-1]?.time<Ue),t.$$.dirty[0]&536883200|t.$$.dirty[1]&6144&&i(21,o=g.length&&n&&Ue?Ze(G*100,$*100):[])},[l,r,a,s,u,f,p,h,w,b,E,v,G,$,W,Q,te,re,Ve,Xe,Me,o,$e,ce,_e,at,ke,Fe,ft,g,C,T,Y,q,N,ne,ge,j,X,ae,K,z,Ue,n,xe]}var Oa=class extends H{constructor(e){super(),U(this,e,gb,hb,F,{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},mb,[-1,-1])}},ml=Oa;var In=(t,e)=>Lo[t]>=Lo[e],B1=(t,e)=>Lo[t]<Lo[e],Er=(t,e)=>Lo[t]<=Lo[e],q1=t=>t>699?"xl":t>599?"l":t>509?"m":t>320?"s":"xs";function bb(t){Pe(t,"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 vb(t){let e,i;return e=new zo({props:{volume:t[3],muted:t[1]}}),{c(){M(e.$$.fragment)},m(n,o){A(e,n,o),i=!0},p(n,o){let l={};o[0]&8&&(l.volume=n[3]),o[0]&2&&(l.muted=n[1]),e.$set(l)},i(n){i||(d(e.$$.fragment,n),i=!0)},o(n){_(e.$$.fragment,n),i=!1},d(n){L(e,n)}}}function yb(t){let e,i;return e=new ht({props:{className:"btn-full-opacity",disabled:t[9],testId:t[2]?"btn-volume-vertical":"btn-volume-horizontal",ariaLabel:t[7],click:t[0],ariaKeyShortCut:Yn.KeyM,$$slots:{default:[vb]},$$scope:{ctx:t}}}),{c(){M(e.$$.fragment)},m(n,o){A(e,n,o),i=!0},p(n,o){let l={};o[0]&512&&(l.disabled=n[9]),o[0]&4&&(l.testId=n[2]?"btn-volume-vertical":"btn-volume-horizontal"),o[0]&128&&(l.ariaLabel=n[7]),o[0]&1&&(l.click=n[0]),o[0]&10|o[1]&32&&(l.$$scope={dirty:o,ctx:n}),e.$set(l)},i(n){i||(d(e.$$.fragment,n),i=!0)},o(n){_(e.$$.fragment,n),i=!1},d(n){L(e,n)}}}function D1(t){let e,i,n;return i=new ml({props:{className:t[2]?"volumeBar-slider-vertical":"",isHidden:t[2]&&!t[5],isVertical:t[2],withWheelHandler:!0,onWheelUp:t[15],onWheelDown:t[16],onPointerDown:t[14],onHandleMove:t[17],onPointerUp:t[18],onPointerEnter:t[2]?t[19]:ho,onPointerLeave:t[2]?t[20]:ho,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(t[8]*100),ariaValueText:`${Math.round(t[8]*100)}%`,filledProgress:t[8],handleProgress:t[8],testId:t[2]?"volume-slider-vertical":"volume-slider"}}),{c(){e=P("div"),M(i.$$.fragment),c(e,"class","volumeBar svelte-1l78lz9"),B(e,"volumeBar-vertical",t[2])},m(o,l){S(o,e,l),A(i,e,null),n=!0},p(o,l){let r={};l[0]&4&&(r.className=o[2]?"volumeBar-slider-vertical":""),l[0]&36&&(r.isHidden=o[2]&&!o[5]),l[0]&4&&(r.isVertical=o[2]),l[0]&4&&(r.onPointerEnter=o[2]?o[19]:ho),l[0]&4&&(r.onPointerLeave=o[2]?o[20]:ho),l[0]&256&&(r.ariaValueNow=Math.round(o[8]*100)),l[0]&256&&(r.ariaValueText=`${Math.round(o[8]*100)}%`),l[0]&256&&(r.filledProgress=o[8]),l[0]&256&&(r.handleProgress=o[8]),l[0]&4&&(r.testId=o[2]?"volume-slider-vertical":"volume-slider"),i.$set(r),(!n||l[0]&4)&&B(e,"volumeBar-vertical",o[2])},i(o){n||(d(i.$$.fragment,o),n=!0)},o(o){_(i.$$.fragment,o),n=!1},d(o){o&&k(e),L(i)}}}function wb(t){let e,i,n,o,l,r;i=new Tr({props:{content:t[6],translateY:-18,$$slots:{default:[yb]},$$scope:{ctx:t}}});let a=t[4]&&D1(t);return{c(){e=P("div"),M(i.$$.fragment),n=V(),a&&a.c(),c(e,"class","volumeBar-container svelte-1l78lz9"),B(e,"vertical",t[2])},m(s,u){S(s,e,u),A(i,e,null),m(e,n),a&&a.m(e,null),o=!0,l||(r=[he(e,"mouseenter",function(){Ei(t[2]?t[21]:ho)&&(t[2]?t[21]:ho).apply(this,arguments)}),he(e,"mouseleave",function(){Ei(t[2]?t[22]:ho)&&(t[2]?t[22]:ho).apply(this,arguments)}),he(e,"wheel",Wt(t[23]))],l=!0)},p(s,u){t=s;let f={};u[0]&64&&(f.content=t[6]),u[0]&655|u[1]&32&&(f.$$scope={dirty:u,ctx:t}),i.$set(f),t[4]?a?(a.p(t,u),u[0]&16&&d(a,1)):(a=D1(t),a.c(),d(a,1),a.m(e,null)):a&&(me(),_(a,1,1,()=>{a=null}),pe()),(!o||u[0]&4)&&B(e,"vertical",t[2])},i(s){o||(d(i.$$.fragment,s),d(a),o=!0)},o(s){_(i.$$.fragment,s),_(a),o=!1},d(s){s&&k(e),L(i),a&&a.d(),l=!1,tt(r)}}}function kb(t,e,i){let n,o,l,r,{click:a}=e,s=it(),u=Bt(),f=s.state.volume$;D(t,f,Se=>i(3,n=Se));let p=s.state.muted$;D(t,p,Se=>i(25,r=Se));let h=s.actions.internal.setVolume,w=s.ui.currentGridType$;D(t,w,Se=>i(24,l=Se));let g=s.callbacks?.onAudioDoesNotExistHint,C=s.callbacks?.onAudioDisabledHint,b=s.state.isAudioAvailable$;D(t,b,Se=>i(4,o=Se));let E=s.state.isAudioDisabled,v=!1,y,T,Y,q,N,ne,ge=1,j=!1,X=!1;function ae(Se){ge=n,h(Se)}function K(){gr(s,n,u.controls.volumeStepWheel)}function z(){br(s,n,u.controls.volumeStepWheel)}function G(Se){h(Se)}function $(Se){let Me=Se;h(Me,Me===0?ge:Me)}function W(){j=!0}function Q(){j=!1,Ve()}function te(){clearTimeout(y),i(5,v=!0)}function re(){Ve()}function Ve(){y=window.setTimeout(()=>{j||i(5,v=!1)},u.controls.volumeBarTimeout)}function Xe(Se){Se.deltaY<0?K():Se.deltaY>0&&z()}return t.$$set=Se=>{"click"in Se&&i(0,a=Se.click)},t.$$.update=()=>{t.$$.dirty[0]&33554448&&i(1,q=!o||r),t.$$.dirty[0]&16777216&&i(2,N=Er(l,"s")),t.$$.dirty[0]&6&&(N?i(6,T=""):i(6,T=q?O("tooltip_volume"):O("tooltip_volume_muted")),i(7,Y=q?O("tooltip_volume"):O("tooltip_volume_muted"))),t.$$.dirty[0]&10&&i(8,ne=q?0:n),t.$$.dirty[0]&16&&(o?i(9,X=E&&!C):i(9,X=!g))},[a,q,N,n,o,v,T,Y,ne,X,f,p,w,b,ae,K,z,G,$,W,Q,te,re,Xe,l,r]}var Fa=class extends H{constructor(e){super(),U(this,e,kb,wb,F,{click:0},bb,[-1,-1])}},N1=Fa;import{noop as Eb}from"@vkontakte/videoplayer-shared";function Sb(t){let e,i,n,o,l,r=t[2].default,a=Ie(r,t,t[1],null),s=[{xmlns:"http://www.w3.org/2000/svg"},{width:"24"},{height:"24"},{"aria-hidden":"true"},{role:"img"},t[0]],u={};for(let f=0;f<s.length;f+=1)u=ue(u,s[f]);return{c(){e=R("svg"),a&&a.c(),i=R("g"),n=R("path"),o=R("path"),c(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"),c(n,"class","_exit"),c(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"),c(o,"class","_enter"),c(i,"fill","#fff"),c(i,"fill-rule","evenodd"),ye(e,u)},m(f,p){S(f,e,p),a&&a.m(e,null),m(e,i),m(i,n),m(i,o),l=!0},p(f,[p]){a&&a.p&&(!l||p&2)&&Ae(a,r,f,f[1],l?Ee(r,f[1],p,null):Le(f[1]),null),ye(e,u=Be(s,[{xmlns:"http://www.w3.org/2000/svg"},{width:"24"},{height:"24"},{"aria-hidden":"true"},{role:"img"},p&1&&f[0]]))},i(f){l||(d(a,f),l=!0)},o(f){_(a,f),l=!1},d(f){f&&k(e),a&&a.d(f)}}}function Cb(t,e,i){let{$$slots:n={},$$scope:o}=e;return t.$$set=l=>{i(0,e=ue(ue({},e),ve(l))),"$$scope"in l&&i(1,o=l.$$scope)},e=ve(e),[e,o,n]}var za=class extends H{constructor(e){super(),U(this,e,Cb,Sb,F,{})}},O1=za;function Pb(t){Pe(t,"svelte-17t966y",'svg[data-testid="close-fullscreen-icon"] ._enter,svg[data-testid="open-fullscreen-icon"] ._exit{visibility:hidden;opacity:0}')}function Tb(t){let e,i;return e=new O1({props:{"data-testid":t[0]?"close-fullscreen-icon":"open-fullscreen-icon"}}),{c(){M(e.$$.fragment)},m(n,o){A(e,n,o),i=!0},p(n,[o]){let l={};o&1&&(l["data-testid"]=n[0]?"close-fullscreen-icon":"open-fullscreen-icon"),e.$set(l)},i(n){i||(d(e.$$.fragment,n),i=!0)},o(n){_(e.$$.fragment,n),i=!1},d(n){L(e,n)}}}function Ib(t,e,i){let{isFullscreen:n=!1}=e;return t.$$set=o=>{"isFullscreen"in o&&i(0,n=o.isFullscreen)},[n]}var Ha=class extends H{constructor(e){super(),U(this,e,Ib,Tb,F,{isFullscreen:0},Pb)}},F1=Ha;function Ab(t){let e,i;return e=new F1({props:{isFullscreen:t[0]}}),{c(){M(e.$$.fragment)},m(n,o){A(e,n,o),i=!0},p(n,o){let l={};o&1&&(l.isFullscreen=n[0]),e.$set(l)},i(n){i||(d(e.$$.fragment,n),i=!0)},o(n){_(e.$$.fragment,n),i=!1},d(n){L(e,n)}}}function Lb(t){let e,i;return e=new ht({props:{testId:"btn-fullscreen",ariaLabel:t[2],click:t[1],ariaKeyShortCut:Yn.KeyF,$$slots:{default:[Ab]},$$scope:{ctx:t}}}),{c(){M(e.$$.fragment)},m(n,o){A(e,n,o),i=!0},p(n,[o]){let l={};o&4&&(l.ariaLabel=n[2]),o&2&&(l.click=n[1]),o&9&&(l.$$scope={dirty:o,ctx:n}),e.$set(l)},i(n){i||(d(e.$$.fragment,n),i=!0)},o(n){_(e.$$.fragment,n),i=!1},d(n){L(e,n)}}}function Mb(t,e,i){let{isFullscreen:n=!1}=e,{click:o=Eb}=e,l;return t.$$set=r=>{"isFullscreen"in r&&i(0,n=r.isFullscreen),"click"in r&&i(1,o=r.click)},t.$$.update=()=>{t.$$.dirty&1&&i(2,l=n?O("tooltip_fullscreen_on"):O("tooltip_fullscreen_off"))},[n,o,l]}var Ua=class extends H{constructor(e){super(),U(this,e,Mb,Lb,F,{isFullscreen:0,click:1})}},Ar=Ua;function Vb(t){let e,i,n,o=t[2].default,l=Ie(o,t,t[1],null),r=[{xmlns:"http://www.w3.org/2000/svg"},{width:"24"},{height:"24"},{fill:"none"},{"aria-hidden":"true"},{"data-testid":"play-icon"},{role:"img"},t[0]],a={};for(let s=0;s<r.length;s+=1)a=ue(a,r[s]);return{c(){e=R("svg"),l&&l.c(),i=R("path"),c(i,"fill","#fff"),c(i,"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"),ye(e,a)},m(s,u){S(s,e,u),l&&l.m(e,null),m(e,i),n=!0},p(s,[u]){l&&l.p&&(!n||u&2)&&Ae(l,o,s,s[1],n?Ee(o,s[1],u,null):Le(s[1]),null),ye(e,a=Be(r,[{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(l,s),n=!0)},o(s){_(l,s),n=!1},d(s){s&&k(e),l&&l.d(s)}}}function Rb(t,e,i){let{$$slots:n={},$$scope:o}=e;return t.$$set=l=>{i(0,e=ue(ue({},e),ve(l))),"$$scope"in l&&i(1,o=l.$$scope)},e=ve(e),[e,o,n]}var Wa=class extends H{constructor(e){super(),U(this,e,Rb,Vb,F,{})}},pl=Wa;function Bb(t){let e,i,n,o=t[2].default,l=Ie(o,t,t[1],null),r=[{xmlns:"http://www.w3.org/2000/svg"},{width:"24"},{height:"24"},{fill:"none"},{"aria-hidden":"true"},{"data-testid":"pause-icon"},{role:"img"},t[0]],a={};for(let s=0;s<r.length;s+=1)a=ue(a,r[s]);return{c(){e=R("svg"),l&&l.c(),i=R("path"),c(i,"fill","#fff"),c(i,"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"),ye(e,a)},m(s,u){S(s,e,u),l&&l.m(e,null),m(e,i),n=!0},p(s,[u]){l&&l.p&&(!n||u&2)&&Ae(l,o,s,s[1],n?Ee(o,s[1],u,null):Le(s[1]),null),ye(e,a=Be(r,[{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(l,s),n=!0)},o(s){_(l,s),n=!1},d(s){s&&k(e),l&&l.d(s)}}}function qb(t,e,i){let{$$slots:n={},$$scope:o}=e;return t.$$set=l=>{i(0,e=ue(ue({},e),ve(l))),"$$scope"in l&&i(1,o=l.$$scope)},e=ve(e),[e,o,n]}var Ka=class extends H{constructor(e){super(),U(this,e,qb,Bb,F,{})}},Lr=Ka;import{noop as Db}from"@vkontakte/videoplayer-shared";function Nb(t){Pe(t,"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 z1(t){let e;return{c(){e=P("div"),c(e,"class","icon-background-mobile svelte-1ot3duq")},m(i,n){S(i,e,n)},d(i){i&&k(e)}}}function Ob(t){let e,i,n,o,l=t[1]&&z1(t);var r=t[8];function a(s,u){return{}}return r&&(n=bn(r,a(t))),{c(){l&&l.c(),e=V(),i=P("div"),n&&M(n.$$.fragment),c(i,"class","svelte-1ot3duq"),B(i,"mobile",t[1])},m(s,u){l&&l.m(s,u),S(s,e,u),S(s,i,u),n&&A(n,i,null),o=!0},p(s,u){if(s[1]?l||(l=z1(s),l.c(),l.m(e.parentNode,e)):l&&(l.d(1),l=null),u&256&&r!==(r=s[8])){if(n){me();let f=n;_(f.$$.fragment,1,0,()=>{L(f,1)}),pe()}r?(n=bn(r,a(s,u)),M(n.$$.fragment),d(n.$$.fragment,1),A(n,i,null)):n=null}(!o||u&2)&&B(i,"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(i)),l&&l.d(s),n&&L(n)}}}function Fb(t){let e,i,n;function o(r){t[13](r)}let l={className:(t[1]?"btn-m--play":"")+" "+t[3],testId:"btn-play",click:t[5]?t[6]:t[4],disabled:t[2],ariaLabel:t[7],ariaKeyShortCut:Yn.KeyK,$$slots:{default:[Ob]},$$scope:{ctx:t}};return t[0]!==void 0&&(l.ref=t[0]),e=new ht({props:l}),be.push(()=>Oe(e,"ref",o)),{c(){M(e.$$.fragment)},m(r,a){A(e,r,a),n=!0},p(r,[a]){let s={};a&10&&(s.className=(r[1]?"btn-m--play":"")+" "+r[3]),a&112&&(s.click=r[5]?r[6]:r[4]),a&4&&(s.disabled=r[2]),a&128&&(s.ariaLabel=r[7]),a&33026&&(s.$$scope={dirty:a,ctx:r}),!i&&a&1&&(i=!0,s.ref=r[0],Ne(()=>i=!1)),e.$set(s)},i(r){n||(d(e.$$.fragment,r),n=!0)},o(r){_(e.$$.fragment,r),n=!1},d(r){L(e,r)}}}function zb(t,e,i){let n,o,{fakeIsPlaying$:l}=Bn();D(t,l,v=>i(12,o=v));let{ref:r=void 0}=e,{isMobile:a=!1}=e,{isPlaying:s=!1}=e,{disabled:u=!1}=e,{className:f=""}=e,{click:p=Db}=e,{toggle:h}=l,w,g,C,b;function E(v){r=v,i(0,r)}return t.$$set=v=>{"ref"in v&&i(0,r=v.ref),"isMobile"in v&&i(1,a=v.isMobile),"isPlaying"in v&&i(10,s=v.isPlaying),"disabled"in v&&i(2,u=v.disabled),"className"in v&&i(3,f=v.className),"click"in v&&i(4,p=v.click)},t.$$.update=()=>{t.$$.dirty&4096&&i(5,g=o!==null),t.$$.dirty&5152&&i(11,C=g?o:s),t.$$.dirty&2048&&i(7,b=C?O("tooltip_pause"):O("tooltip_play")),t.$$.dirty&2048&&i(8,n=C?Lr:pl)},i(6,w=h),[r,a,u,f,p,g,w,b,n,l,s,C,o,E]}var ja=class extends H{constructor(e){super(),U(this,e,zb,Fb,F,{ref:0,isMobile:1,isPlaying:10,disabled:2,className:3,click:4},Nb)}},Rl=ja;function Hb(t){let e,i,n,o=t[2].default,l=Ie(o,t,t[1],null),r=[{xmlns:"http://www.w3.org/2000/svg"},{width:"26"},{height:"24"},{fill:"none"},{"aria-hidden":"true"},{role:"img"},t[0]],a={};for(let s=0;s<r.length;s+=1)a=ue(a,r[s]);return{c(){e=R("svg"),l&&l.c(),i=R("path"),c(i,"fill","#fff"),c(i,"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"),ye(e,a)},m(s,u){S(s,e,u),l&&l.m(e,null),m(e,i),n=!0},p(s,[u]){l&&l.p&&(!n||u&2)&&Ae(l,o,s,s[1],n?Ee(o,s[1],u,null):Le(s[1]),null),ye(e,a=Be(r,[{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(l,s),n=!0)},o(s){_(l,s),n=!1},d(s){s&&k(e),l&&l.d(s)}}}function Ub(t,e,i){let{$$slots:n={},$$scope:o}=e;return t.$$set=l=>{i(0,e=ue(ue({},e),ve(l))),"$$scope"in l&&i(1,o=l.$$scope)},e=ve(e),[e,o,n]}var Ga=class extends H{constructor(e){super(),U(this,e,Ub,Hb,F,{})}},H1=Ga;function Wb(t){let e,i;return e=new H1({props:{style:t[1],"data-testid":t[0]?"prev-icon":"next-icon"}}),{c(){M(e.$$.fragment)},m(n,o){A(e,n,o),i=!0},p(n,[o]){let l={};o&2&&(l.style=n[1]),o&1&&(l["data-testid"]=n[0]?"prev-icon":"next-icon"),e.$set(l)},i(n){i||(d(e.$$.fragment,n),i=!0)},o(n){_(e.$$.fragment,n),i=!1},d(n){L(e,n)}}}function Kb(t,e,i){let{isPrev:n=!1}=e,{isMobile:o=!1}=e,l;return t.$$set=r=>{"isPrev"in r&&i(0,n=r.isPrev),"isMobile"in r&&i(2,o=r.isMobile)},t.$$.update=()=>{t.$$.dirty&5&&(n&&o?i(1,l="transform: scaleX(-1) scale(1.3333);"):n?i(1,l="transform: scaleX(-1);"):o?i(1,l="transform: scale(1.3333);"):i(1,l=void 0))},[n,l,o]}var Qa=class extends H{constructor(e){super(),U(this,e,Kb,Wb,F,{isPrev:0,isMobile:2})}},U1=Qa;function jb(t){let e,i;return e=new U1({props:{isMobile:t[1],isPrev:t[3]==="prev"}}),{c(){M(e.$$.fragment)},m(n,o){A(e,n,o),i=!0},p(n,o){let l={};o&2&&(l.isMobile=n[1]),o&8&&(l.isPrev=n[3]==="prev"),e.$set(l)},i(n){i||(d(e.$$.fragment,n),i=!0)},o(n){_(e.$$.fragment,n),i=!1},d(n){L(e,n)}}}function Gb(t){let e,i,n;function o(r){t[6](r)}let l={testId:"btn-"+t[3],disabled:t[2],ariaLabel:t[5],click:t[4],$$slots:{default:[jb]},$$scope:{ctx:t}};return t[0]!==void 0&&(l.ref=t[0]),e=new ht({props:l}),be.push(()=>Oe(e,"ref",o)),{c(){M(e.$$.fragment)},m(r,a){A(e,r,a),n=!0},p(r,[a]){let s={};a&8&&(s.testId="btn-"+r[3]),a&4&&(s.disabled=r[2]),a&32&&(s.ariaLabel=r[5]),a&16&&(s.click=r[4]),a&138&&(s.$$scope={dirty:a,ctx:r}),!i&&a&1&&(i=!0,s.ref=r[0],Ne(()=>i=!1)),e.$set(s)},i(r){n||(d(e.$$.fragment,r),n=!0)},o(r){_(e.$$.fragment,r),n=!1},d(r){L(e,r)}}}function Qb(t,e,i){let{ref:n=void 0}=e,{isMobile:o=!1}=e,{disabled:l=!1}=e,{type:r}=e,{click:a}=e,s;function u(f){n=f,i(0,n)}return t.$$set=f=>{"ref"in f&&i(0,n=f.ref),"isMobile"in f&&i(1,o=f.isMobile),"disabled"in f&&i(2,l=f.disabled),"type"in f&&i(3,r=f.type),"click"in f&&i(4,a=f.click)},t.$$.update=()=>{t.$$.dirty&8&&i(5,s=r==="prev"?O("tooltip_previous"):O("tooltip_next"))},[n,o,l,r,a,s,u]}var Ya=class extends H{constructor(e){super(),U(this,e,Qb,Gb,F,{ref:0,isMobile:1,disabled:2,type:3,click:4})}},_l=Ya;function Yb(t){let e,i,n,o=t[2].default,l=Ie(o,t,t[1],null),r=[{xmlns:"http://www.w3.org/2000/svg"},{width:"24"},{height:"24"},{fill:"none"},{"aria-hidden":"true"},{"data-testid":"vk-logo-icon"},{role:"img"},t[0]],a={};for(let s=0;s<r.length;s+=1)a=ue(a,r[s]);return{c(){e=R("svg"),l&&l.c(),i=R("path"),c(i,"fill","#fff"),c(i,"fill-rule","evenodd"),c(i,"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"),c(i,"clip-rule","evenodd"),ye(e,a)},m(s,u){S(s,e,u),l&&l.m(e,null),m(e,i),n=!0},p(s,[u]){l&&l.p&&(!n||u&2)&&Ae(l,o,s,s[1],n?Ee(o,s[1],u,null):Le(s[1]),null),ye(e,a=Be(r,[{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(l,s),n=!0)},o(s){_(l,s),n=!1},d(s){s&&k(e),l&&l.d(s)}}}function Zb(t,e,i){let{$$slots:n={},$$scope:o}=e;return t.$$set=l=>{i(0,e=ue(ue({},e),ve(l))),"$$scope"in l&&i(1,o=l.$$scope)},e=ve(e),[e,o,n]}var Za=class extends H{constructor(e){super(),U(this,e,Zb,Yb,F,{})}},W1=Za;function Xb(t){let e,i,n,o,l,r,a=t[2].default,s=Ie(a,t,t[1],null),u=[{xmlns:"http://www.w3.org/2000/svg"},{width:"95"},{height:"24"},{fill:"none"},{"aria-hidden":"true"},{role:"img"},t[0]],f={};for(let p=0;p<u.length;p+=1)f=ue(f,u[p]);return{c(){e=R("svg"),s&&s.c(),i=R("path"),n=R("path"),o=R("path"),l=R("path"),c(i,"fill","#fff"),c(i,"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"),c(n,"fill","#fff"),c(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"),c(n,"class","_ru"),c(o,"fill","#fff"),c(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"),c(o,"class","_en"),c(l,"fill","#fff"),c(l,"fill-rule","evenodd"),c(l,"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"),c(l,"clip-rule","evenodd"),ye(e,f)},m(p,h){S(p,e,h),s&&s.m(e,null),m(e,i),m(e,n),m(e,o),m(e,l),r=!0},p(p,[h]){s&&s.p&&(!r||h&2)&&Ae(s,a,p,p[1],r?Ee(a,p[1],h,null):Le(p[1]),null),ye(e,f=Be(u,[{xmlns:"http://www.w3.org/2000/svg"},{width:"95"},{height:"24"},{fill:"none"},{"aria-hidden":"true"},{role:"img"},h&1&&p[0]]))},i(p){r||(d(s,p),r=!0)},o(p){_(s,p),r=!1},d(p){p&&k(e),s&&s.d(p)}}}function Jb(t,e,i){let{$$slots:n={},$$scope:o}=e;return t.$$set=l=>{i(0,e=ue(ue({},e),ve(l))),"$$scope"in l&&i(1,o=l.$$scope)},e=ve(e),[e,o,n]}var Xa=class extends H{constructor(e){super(),U(this,e,Jb,Xb,F,{})}},K1=Xa;function xb(t){Pe(t,"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 $b(t){let e,i;return e=new K1({props:{width:t[0],height:"24",viewBox:"0 0 "+(t[0]+1)+" 24","data-testid":t[1]}}),{c(){M(e.$$.fragment)},m(n,o){A(e,n,o),i=!0},p(n,[o]){let l={};o&1&&(l.width=n[0]),o&1&&(l.viewBox="0 0 "+(n[0]+1)+" 24"),o&2&&(l["data-testid"]=n[1]),e.$set(l)},i(n){i||(d(e.$$.fragment,n),i=!0)},o(n){_(e.$$.fragment,n),i=!1},d(n){L(e,n)}}}var ev="vk-video-logo-icon--short";function tv(t,e,i){let{short:n=!1}=e,{isCyrillic:o=!0}=e,l,r;return t.$$set=a=>{"short"in a&&i(2,n=a.short),"isCyrillic"in a&&i(3,o=a.isCyrillic)},t.$$.update=()=>{t.$$.dirty&12&&(i(0,l=n?21:95),i(1,r=n?ev:"vk-video-logo-icon"),!o&&!n&&(i(0,l=91),i(1,r="vk-video-logo-icon--en")))},[l,r,n,o]}var Ja=class extends H{constructor(e){super(),U(this,e,tv,$b,F,{short:2,isCyrillic:3},xb)}},j1=Ja;function nv(t){let e,i;return e=new W1({}),{c(){M(e.$$.fragment)},m(n,o){A(e,n,o),i=!0},p:Ce,i(n){i||(d(e.$$.fragment,n),i=!0)},o(n){_(e.$$.fragment,n),i=!1},d(n){L(e,n)}}}function ov(t){let e,i;return e=new j1({props:{short:t[4],isCyrillic:t[5]}}),{c(){M(e.$$.fragment)},m(n,o){A(e,n,o),i=!0},p(n,o){let l={};o&16&&(l.short=n[4]),o&32&&(l.isCyrillic=n[5]),e.$set(l)},i(n){i||(d(e.$$.fragment,n),i=!0)},o(n){_(e.$$.fragment,n),i=!1},d(n){L(e,n)}}}function lv(t){let e,i,n,o,l=[ov,nv],r=[];function a(s,u){return s[2]?0:1}return e=a(t,-1),i=r[e]=l[e](t),{c(){i.c(),n=ct()},m(s,u){r[e].m(s,u),S(s,n,u),o=!0},p(s,u){let f=e;e=a(s,u),e===f?r[e].p(s,u):(me(),_(r[f],1,1,()=>{r[f]=null}),pe(),i=r[e],i?i.p(s,u):(i=r[e]=l[e](s),i.c()),d(i,1),i.m(n.parentNode,n))},i(s){o||(d(i),o=!0)},o(s){_(i),o=!1},d(s){s&&k(n),r[e].d(s)}}}function rv(t){let e,i,n;function o(r){t[14](r)}let l={className:"btn-full-opacity",disabled:!t[1],click:t[9],testId:t[2]?"btn-vk-video-logo":"btn-vk-logo",ariaLabel:t[3],$$slots:{default:[lv]},$$scope:{ctx:t}};return t[0]!==void 0&&(l.ref=t[0]),e=new ht({props:l}),be.push(()=>Oe(e,"ref",o)),{c(){M(e.$$.fragment)},m(r,a){A(e,r,a),n=!0},p(r,[a]){let s={};a&2&&(s.disabled=!r[1]),a&4&&(s.testId=r[2]?"btn-vk-video-logo":"btn-vk-logo"),a&8&&(s.ariaLabel=r[3]),a&131124&&(s.$$scope={dirty:a,ctx:r}),!i&&a&1&&(i=!0,s.ref=r[0],Ne(()=>i=!1)),e.$set(s)},i(r){n||(d(e.$$.fragment,r),n=!0)},o(r){_(e.$$.fragment,r),n=!1},d(r){L(e,r)}}}function sv(t,e,i){let n,o,l,{ref:r=void 0}=e,{logoClickable:a=!1}=e,{targetUrl:s=""}=e,{click:u}=e,f=Bt(),p=it(),h=p.ui.currentGridType$;D(t,h,T=>i(12,n=T));let w=p.ui.isMobile;D(t,w,T=>i(13,o=T));let g=p.isCyrillicRelatedInterface$;D(t,g,T=>i(5,l=T));let C,b,E,v=()=>{u(),p.callbacks?.onLogoClicked?p.callbacks?.onLogoClicked():s&&window.open(s,"_blank")};function y(T){r=T,i(0,r)}return t.$$set=T=>{"ref"in T&&i(0,r=T.ref),"logoClickable"in T&&i(1,a=T.logoClickable),"targetUrl"in T&&i(10,s=T.targetUrl),"click"in T&&i(11,u=T.click)},t.$$.update=()=>{t.$$.dirty&12292&&i(4,E=(o||Er(n,"l"))&&b)},i(3,C=f.logoType==="vk_video"?O("tooltip_vk_video_logo"):O("tooltip_vk_logo")),i(2,b=f.logoType==="vk_video"||f.logoType==="vk_video_mobile"),[r,a,b,C,E,l,h,w,g,v,s,u,n,o,y]}var xa=class extends H{constructor(e){super(),U(this,e,sv,rv,F,{ref:0,logoClickable:1,targetUrl:10,click:11})}},Mr=xa;import{ChromecastState as mv}from"@vkontakte/videoplayer-core";import{ChromecastState as G1}from"@vkontakte/videoplayer-core";function av(t){Pe(t,"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 uv(t){let e,i,n,o,l,r,a,s;return{c(){e=R("svg"),i=R("g"),n=R("path"),o=R("path"),l=R("path"),r=R("path"),a=R("path"),s=R("path"),c(n,"class","wave wave1 svelte-8z1bf5"),c(n,"d","M1 18v3h3c0-1.66-1.34-3-3-3z"),c(n,"fill","#fff"),c(o,"class","wave wave2 svelte-8z1bf5"),c(o,"d","M1 14v2c2.76 0 5 2.24 5 5h2c0-3.87-3.13-7-7-7z"),c(o,"fill","#fff"),c(l,"class","wave wave3 svelte-8z1bf5"),c(l,"d","M1 10v2a9 9 0 0 1 9 9h2c0-6.08-4.93-11-11-11z"),c(l,"fill","#fff"),c(r,"d","M21 3H3c-1.1 0-2 .9-2 2v3h2V5h18v14h-7v2h7c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2z"),c(r,"fill","#fff"),c(a,"d","M0 0h24v24H0z"),c(s,"d","M5.667 7.44H18.5v9.167h-5.161a11.947 11.947 0 0 0-7.673-7.672V7.44Z"),c(s,"fill","#fff"),B(s,"hidden",!t[1]),c(i,"fill","none"),c(i,"fill-rule","evenodd"),c(e,"width","24"),c(e,"height","24"),c(e,"xmlns","http://www.w3.org/2000/svg"),c(e,"aria-hidden","true"),c(e,"data-testid","chromecast-icon"),c(e,"class","svelte-8z1bf5"),B(e,"connecting",t[2])},m(u,f){S(u,e,f),m(e,i),m(i,n),m(i,o),m(i,l),m(i,r),m(i,a),m(i,s)},p(u,f){f&2&&B(s,"hidden",!u[1]),f&4&&B(e,"connecting",u[2])},d(u){u&&k(e)}}}function cv(t){let e,i,n,o,l,r,a,s,u,f,p,h,w,g,C,b,E,v,y,T,Y;return{c(){e=R("svg"),i=R("g"),n=R("mask"),o=R("path"),r=R("path"),a=R("path"),u=R("path"),f=R("defs"),p=R("clipPath"),h=R("path"),g=R("filter"),C=R("feFlood"),b=R("feColorMatrix"),E=R("feOffset"),v=R("feGaussianBlur"),y=R("feColorMatrix"),T=R("feBlend"),Y=R("feBlend"),c(o,"fill",l=t[1]?"#2688EB":"#fff"),c(o,"d","M1.1 3.1h22v18h-22z"),c(r,"fill-rule","evenodd"),c(r,"clip-rule","evenodd"),c(r,"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"),c(n,"id","c"),c(n,"maskUnits","userSpaceOnUse"),c(n,"x","1.1"),c(n,"y","3.1"),c(n,"width","22"),c(n,"height","18"),c(n,"fill","#000"),c(a,"fill-rule","evenodd"),c(a,"clip-rule","evenodd"),c(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"),c(a,"fill",s=t[1]?"#2688EB":"#fff"),c(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"),c(u,"fill","#000"),c(u,"fill-opacity",".12"),c(u,"mask","url(#c)"),c(i,"filter","url(#b)"),c(i,"clip-path","url(#a)"),c(h,"fill",w=t[1]?"#2688EB":"#fff"),c(h,"d","M0 0h24v24H0z"),c(p,"id","a"),c(C,"flood-opacity","0"),c(C,"result","BackgroundImageFix"),c(b,"in","SourceAlpha"),c(b,"values","0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0"),c(b,"result","hardAlpha"),c(v,"stdDeviation","2.5"),c(y,"values","0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.16 0"),c(T,"in2","BackgroundImageFix"),c(T,"result","effect1_dropShadow_4085_178456"),c(Y,"in","SourceGraphic"),c(Y,"in2","effect1_dropShadow_4085_178456"),c(Y,"result","shape"),c(g,"id","b"),c(g,"x","-3.4"),c(g,"y","-1.4"),c(g,"width","30.8"),c(g,"height","26.802"),c(g,"filterUnits","userSpaceOnUse"),c(g,"color-interpolation-filters","sRGB"),c(e,"width","24"),c(e,"height","24"),c(e,"fill","none"),c(e,"xmlns","http://www.w3.org/2000/svg"),c(e,"aria-hidden","true"),c(e,"data-testid","chromecast-mobile-icon")},m(q,N){S(q,e,N),m(e,i),m(i,n),m(n,o),m(n,r),m(i,a),m(i,u),m(e,f),m(f,p),m(p,h),m(f,g),m(g,C),m(g,b),m(g,E),m(g,v),m(g,y),m(g,T),m(g,Y)},p(q,N){N&2&&l!==(l=q[1]?"#2688EB":"#fff")&&c(o,"fill",l),N&2&&s!==(s=q[1]?"#2688EB":"#fff")&&c(a,"fill",s),N&2&&w!==(w=q[1]?"#2688EB":"#fff")&&c(h,"fill",w)},d(q){q&&k(e)}}}function fv(t){let e;function i(l,r){return l[0]?cv:uv}let n=i(t,-1),o=n(t);return{c(){o.c(),e=ct()},m(l,r){o.m(l,r),S(l,e,r)},p(l,[r]){n===(n=i(l,r))&&o?o.p(l,r):(o.d(1),o=n(l),o&&(o.c(),o.m(e.parentNode,e)))},i:Ce,o:Ce,d(l){l&&k(e),o.d(l)}}}function dv(t,e,i){let{isMobile:n=!1}=e,{state:o}=e,l,r;return t.$$set=a=>{"isMobile"in a&&i(0,n=a.isMobile),"state"in a&&i(3,o=a.state)},t.$$.update=()=>{t.$$.dirty&8&&(i(2,r=o===G1.CONNECTING),i(1,l=o===G1.CONNECTED))},[n,l,r,o]}var $a=class extends H{constructor(e){super(),U(this,e,dv,fv,F,{isMobile:0,state:3},av)}},Q1=$a;import{noop as pv}from"@vkontakte/videoplayer-shared";function _v(t){let e,i;return e=new Q1({props:{isMobile:t[1],state:t[2]}}),{c(){M(e.$$.fragment)},m(n,o){A(e,n,o),i=!0},p(n,o){let l={};o&2&&(l.isMobile=n[1]),o&4&&(l.state=n[2]),e.$set(l)},i(n){i||(d(e.$$.fragment,n),i=!0)},o(n){_(e.$$.fragment,n),i=!1},d(n){L(e,n)}}}function hv(t){let e,i,n;function o(r){t[5](r)}let l={ariaLabel:t[4],click:t[3],testId:"btn-chromecast",$$slots:{default:[_v]},$$scope:{ctx:t}};return t[0]!==void 0&&(l.ref=t[0]),e=new ht({props:l}),be.push(()=>Oe(e,"ref",o)),{c(){M(e.$$.fragment)},m(r,a){A(e,r,a),n=!0},p(r,[a]){let s={};a&16&&(s.ariaLabel=r[4]),a&8&&(s.click=r[3]),a&70&&(s.$$scope={dirty:a,ctx:r}),!i&&a&1&&(i=!0,s.ref=r[0],Ne(()=>i=!1)),e.$set(s)},i(r){n||(d(e.$$.fragment,r),n=!0)},o(r){_(e.$$.fragment,r),n=!1},d(r){L(e,r)}}}function gv(t,e,i){let{ref:n=void 0}=e,{isMobile:o=!1}=e,{state:l}=e,{click:r=pv}=e,a;function s(u){n=u,i(0,n)}return t.$$set=u=>{"ref"in u&&i(0,n=u.ref),"isMobile"in u&&i(1,o=u.isMobile),"state"in u&&i(2,l=u.state),"click"in u&&i(3,r=u.click)},t.$$.update=()=>{t.$$.dirty&4&&i(4,a=l===mv.CONNECTED?O("tooltip_chromecast_on"):O("tooltip_chromecast_off"))},[n,o,l,r,a,s]}var eu=class extends H{constructor(e){super(),U(this,e,gv,hv,F,{ref:0,isMobile:1,state:2,click:3})}},Vr=eu;import{PlaybackState as tu}from"@vkontakte/videoplayer-core";function bv(t){let e,i;return e=new cr({props:{isActive:t[1]}}),{c(){M(e.$$.fragment)},m(n,o){A(e,n,o),i=!0},p(n,o){let l={};o&2&&(l.isActive=n[1]),e.$set(l)},i(n){i||(d(e.$$.fragment,n),i=!0)},o(n){_(e.$$.fragment,n),i=!1},d(n){L(e,n)}}}function vv(t){let e,i;return e=new ht({props:{className:t[0]?"":"btn--live btn-full-opacity",testId:t[1]?"btn-live":"btn-live-offset",disabled:t[1]&&t[3]===tu.PLAYING,ariaLabel:t[2],click:t[4],$$slots:{default:[bv]},$$scope:{ctx:t}}}),{c(){M(e.$$.fragment)},m(n,o){A(e,n,o),i=!0},p(n,[o]){let l={};o&1&&(l.className=n[0]?"":"btn--live btn-full-opacity"),o&2&&(l.testId=n[1]?"btn-live":"btn-live-offset"),o&10&&(l.disabled=n[1]&&n[3]===tu.PLAYING),o&4&&(l.ariaLabel=n[2]),o&16&&(l.click=n[4]),o&514&&(l.$$scope={dirty:o,ctx:n}),e.$set(l)},i(n){i||(d(e.$$.fragment,n),i=!0)},o(n){_(e.$$.fragment,n),i=!1},d(n){L(e,n)}}}function yv(t,e,i){let n,{isMobile:o=!1}=e,{isActiveLive:l=!1}=e,{ariaLabel:r=""}=e,a=it(),s=a.state.playbackState$;D(t,s,h=>i(3,n=h));let u=a.actions.internal.switchToActiveLive,f=a.actions.internal.togglePlay,p;return t.$$set=h=>{"isMobile"in h&&i(0,o=h.isMobile),"isActiveLive"in h&&i(1,l=h.isActiveLive),"ariaLabel"in h&&i(2,r=h.ariaLabel)},t.$$.update=()=>{t.$$.dirty&10&&i(4,p=()=>{if(!l){u();return}n===tu.PAUSED&&f()})},[o,l,r,n,p,s]}var iu=class extends H{constructor(e){super(),U(this,e,yv,vv,F,{isMobile:0,isActiveLive:1,ariaLabel:2})}},Rr=iu;function wv(t){Pe(t,"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 kv(t){let e,i,n,o,l=t[9].default,r=Ie(l,t,t[8],null);return{c(){e=P("div"),i=P("div"),r&&r.c(),c(i,"class","tooltip svelte-5ygsa2"),B(i,"active",t[0]),B(i,"pointer",t[1]),c(e,"class","tooltip-wrapper svelte-5ygsa2"),c(e,"style",n=`transform: translate(${t[5]}px, ${t[2]}px);`)},m(a,s){S(a,e,s),m(e,i),r&&r.m(i,null),t[10](i),t[11](e),o=!0},p(a,[s]){r&&r.p&&(!o||s&256)&&Ae(r,l,a,a[8],o?Ee(l,a[8],s,null):Le(a[8]),null),(!o||s&1)&&B(i,"active",a[0]),(!o||s&2)&&B(i,"pointer",a[1]),(!o||s&36&&n!==(n=`transform: translate(${a[5]}px, ${a[2]}px);`))&&c(e,"style",n)},i(a){o||(d(r,a),o=!0)},o(a){_(r,a),o=!1},d(a){a&&k(e),r&&r.d(a),t[10](null),t[11](null)}}}function Sv(t,e,i){let n,{$$slots:o={},$$scope:l}=e,{active:r=!1}=e,{pointer:a=!1}=e,{translateXPx:s=0}=e,{translateYPx:u=0}=e,{containerWidth:f}=e,p,h;function w(b){if(!h)return 0;let{width:E}=h.getBoundingClientRect(),v=E/2;return b<v?v:b>f-v?f-v:b}function g(b){be[b?"unshift":"push"](()=>{h=b,i(4,h)})}function C(b){be[b?"unshift":"push"](()=>{p=b,i(3,p)})}return t.$$set=b=>{"active"in b&&i(0,r=b.active),"pointer"in b&&i(1,a=b.pointer),"translateXPx"in b&&i(6,s=b.translateXPx),"translateYPx"in b&&i(2,u=b.translateYPx),"containerWidth"in b&&i(7,f=b.containerWidth),"$$scope"in b&&i(8,l=b.$$scope)},t.$$.update=()=>{t.$$.dirty&64&&i(5,n=w(s))},[r,a,u,p,h,n,s,f,l,o,g,C]}var nu=class extends H{constructor(e){super(),U(this,e,Sv,kv,F,{active:0,pointer:1,translateXPx:6,translateYPx:2,containerWidth:7},wv)}},Y1=nu;var Br=(t,e,i)=>i.filter(n=>n.time<t*e).pop();function Cv(t){Pe(t,"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 Z1(t){let e;function i(l,r){return l[2]&&l[10].completed===!1?Tv:Pv}let n=i(t,-1),o=n(t);return{c(){o.c(),e=ct()},m(l,r){o.m(l,r),S(l,e,r)},p(l,r){n===(n=i(l,r))&&o?o.p(l,r):(o.d(1),o=n(l),o&&(o.c(),o.m(e.parentNode,e)))},d(l){l&&k(e),o.d(l)}}}function Pv(t){let e=(t[10].text||"")+"",i;return{c(){i=Re(e)},m(n,o){S(n,i,o)},p(n,o){o&1024&&e!==(e=(n[10].text||"")+"")&&Ge(i,e)},d(n){n&&k(i)}}}function Tv(t){let e=O("tooltip_episode_unfinished")+"",i;return{c(){i=Re(e)},m(n,o){S(n,i,o)},p:Ce,d(n){n&&k(i)}}}function X1(t){let e,i;return{c(){e=P("div"),i=Re(t[0]),c(e,"class","time svelte-l51fc1")},m(n,o){S(n,e,o),m(e,i)},p(n,o){o&1&&Ge(i,n[0])},d(n){n&&k(e)}}}function Iv(t){let e,i,n,o,l,r,a=t[10]&&Z1(t),s=!t[2]&&X1(t);return{c(){e=P("div"),i=P("div"),o=V(),l=P("div"),a&&a.c(),r=V(),s&&s.c(),c(i,"class","preview svelte-l51fc1"),c(i,"style",n=`width: ${t[3]}px; height: ${t[4]}px; background-image: url(${t[5]}); background-size: ${t[6]}px ${t[7]}px; background-position: ${t[8]}px ${t[9]}px; transform: translateY(${t[11]%180?-35:0}px) rotate(${t[11]}deg);`),c(l,"class","episode svelte-l51fc1"),c(e,"class","timeline-preview svelte-l51fc1"),B(e,"mobile",t[1])},m(u,f){S(u,e,f),m(e,i),m(e,o),m(e,l),a&&a.m(l,null),m(e,r),s&&s.m(e,null)},p(u,[f]){f&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);`)&&c(i,"style",n),u[10]?a?a.p(u,f):(a=Z1(u),a.c(),a.m(l,null)):a&&(a.d(1),a=null),u[2]?s&&(s.d(1),s=null):s?s.p(u,f):(s=X1(u),s.c(),s.m(e,null)),f&2&&B(e,"mobile",u[1])},i:Ce,o:Ce,d(u){u&&k(e),a&&a.d(),s&&s.d()}}}var hl=150;function Ev(t,e,i){let n,{time:o=""}=e,{isMobile:l=!1}=e,{videoEpisodes:r=[]}=e,{previewThumbsData:a}=e,{progress:s=0}=e,{duration:u=0}=e,{isInteractive:f=!1}=e,h=it().ui.rotateAlpha;D(t,h,N=>i(11,n=N));let w,g,C,b,E,v,y,T;function Y(){let N=a.frameWidth,ne=a.frameHeight;return N>hl?(ne=ne/N*hl,N=hl):ne>hl&&(N=N/ne*hl,ne=hl),{width:N,height:ne}}function q(N){let ne;a.isUV?ne=Math.floor(u*N/a.frequency):ne=Math.min(a.countTotal,Math.max(0,Math.floor(a.countTotal*N)));let ge=Math.floor(ne/a.countPerImage),j=Math.floor(ne%a.countPerImage/a.countPerRow),X=ne%a.countPerRow,ae=Math.floor(a.countPerImage/a.countPerRow);!a.isUV&&ge===Math.floor(a.countTotal/a.countPerImage)&&(ae=Math.floor(a.countTotal%a.countPerImage/a.countPerRow),a.countTotal%a.countPerImage%a.countPerRow>0&&ae++);let K=a.countPerRow;!a.isUV&&ge===Math.floor(a.countTotal/a.countPerImage)&&a.countTotal%a.countPerImage>0&&(K=Math.min(a.countPerRow,a.countTotal%a.countPerImage));let z=w*K,G=g*ae,$=-X*w,W=-j*g;return{imgSrc:a.links[ge],imgWidth:z,imgHeight:G,imgOffsetX:$,imgOffsetY:W}}return t.$$set=N=>{"time"in N&&i(0,o=N.time),"isMobile"in N&&i(1,l=N.isMobile),"videoEpisodes"in N&&i(13,r=N.videoEpisodes),"previewThumbsData"in N&&i(14,a=N.previewThumbsData),"progress"in N&&i(15,s=N.progress),"duration"in N&&i(16,u=N.duration),"isInteractive"in N&&i(2,f=N.isInteractive)},t.$$.update=()=>{t.$$.dirty&32768&&i(5,{imgSrc:C,imgWidth:b,imgHeight:E,imgOffsetX:v,imgOffsetY:y}=q(s),C,(i(6,b),i(15,s)),(i(7,E),i(15,s)),(i(8,v),i(15,s)),(i(9,y),i(15,s))),t.$$.dirty&106496&&i(10,T=Br(s,u,r))},i(3,{width:w,height:g}=Y(),w,i(4,g)),[o,l,f,w,g,C,b,E,v,y,T,n,h,r,a,s,u]}var ou=class extends H{constructor(e){super(),U(this,e,Ev,Iv,F,{time:0,isMobile:1,videoEpisodes:13,previewThumbsData:14,progress:15,duration:16,isInteractive:2},Cv)}},J1=ou;function Av(t){Pe(t,"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 Lv(t){let e,i;return{c(){e=P("span"),i=Re(t[8]),c(e,"class","time svelte-5lzly8")},m(n,o){S(n,e,o),m(e,i)},p(n,o){o[0]&256&&Ge(i,n[8])},i:Ce,o:Ce,d(n){n&&k(e)}}}function Mv(t){let e,i;return e=new J1({props:{time:t[8],isMobile:t[11],videoEpisodes:t[4],previewThumbsData:t[22],progress:t[9],duration:t[2],isInteractive:t[24]}}),{c(){M(e.$$.fragment)},m(n,o){A(e,n,o),i=!0},p(n,o){let l={};o[0]&256&&(l.time=n[8]),o[0]&2048&&(l.isMobile=n[11]),o[0]&16&&(l.videoEpisodes=n[4]),o[0]&512&&(l.progress=n[9]),o[0]&4&&(l.duration=n[2]),e.$set(l)},i(n){i||(d(e.$$.fragment,n),i=!0)},o(n){_(e.$$.fragment,n),i=!1},d(n){L(e,n)}}}function Vv(t){let e,i,n,o,l=[Mv,Lv],r=[];function a(s,u){return s[15].features.timelinePreview&&s[22]&&!s[1]?0:1}return e=a(t,[-1,-1]),i=r[e]=l[e](t),{c(){i.c(),n=ct()},m(s,u){r[e].m(s,u),S(s,n,u),o=!0},p(s,u){let f=e;e=a(s,u),e===f?r[e].p(s,u):(me(),_(r[f],1,1,()=>{r[f]=null}),pe(),i=r[e],i?i.p(s,u):(i=r[e]=l[e](s),i.c()),d(i,1),i.m(n.parentNode,n))},i(s){o||(d(i),o=!0)},o(s){_(i),o=!1},d(s){s&&k(n),r[e].d(s)}}}function Rv(t){let e,i,n,o,l,r=[t[10]],a={$$slots:{default:[Vv]},$$scope:{ctx:t}};for(let f=0;f<r.length;f+=1)a=ue(a,r[f]);e=new Y1({props:a});function s(f){t[43](f)}let u={isActiveLive:t[12],isMobile:t[11],ariaLabel:O("aria_timeline"),ariaValueMin:0,ariaValueMax:t[2],ariaValueNow:Math.round(t[7]*100),ariaValueText:O("aria_timeline_value",{position:t[6],duration:t[5]}),loadedProgress:t[13],filledProgress:t[7],handleProgress:t[7],videoEpisodes:t[4],onPointerDown:t[29],onHandleMove:t[30],onPointerMove:t[33],onPointerUp:t[31],onPointerEnter:t[32],onPointerLeave:t[34],onDisabledClick:t[27],isInteractive:t[24],disabled:t[14].has("TIMELINE"),hideHandel:t[3]};return t[0]!==void 0&&(u.ref=t[0]),n=new ml({props:u}),be.push(()=>Oe(n,"ref",s)),{c(){M(e.$$.fragment),i=V(),M(n.$$.fragment)},m(f,p){A(e,f,p),S(f,i,p),A(n,f,p),l=!0},p(f,p){let h=p[0]&1024?Be(r,[Fc(f[10])]):{};p[0]&2838|p[1]&524288&&(h.$$scope={dirty:p,ctx:f}),e.$set(h);let w={};p[0]&4096&&(w.isActiveLive=f[12]),p[0]&2048&&(w.isMobile=f[11]),p[0]&4&&(w.ariaValueMax=f[2]),p[0]&128&&(w.ariaValueNow=Math.round(f[7]*100)),p[0]&96&&(w.ariaValueText=O("aria_timeline_value",{position:f[6],duration:f[5]})),p[0]&8192&&(w.loadedProgress=f[13]),p[0]&128&&(w.filledProgress=f[7]),p[0]&128&&(w.handleProgress=f[7]),p[0]&16&&(w.videoEpisodes=f[4]),p[0]&16384&&(w.disabled=f[14].has("TIMELINE")),p[0]&8&&(w.hideHandel=f[3]),!o&&p[0]&1&&(o=!0,w.ref=f[0],Ne(()=>o=!1)),n.$set(w)},i(f){l||(d(e.$$.fragment,f),d(n.$$.fragment,f),l=!0)},o(f){_(e.$$.fragment,f),_(n.$$.fragment,f),l=!1},d(f){f&&k(i),L(e,f),L(n,f)}}}function Bv(t,e,i){let n,o,l,r,a,s,u,f,p,h,w,{showTimeline:g=!1}=e,{ref:C=void 0}=e,b=it(),E=Bt(),v=b.state.bufferedProgress$;D(t,v,x=>i(13,h=x));let y=b.state.positionWithScrubbing$;D(t,y,x=>i(41,s=x));let T=b.state.duration$;D(t,T,x=>i(2,l=x));let Y=b.state.isLive$;D(t,Y,x=>i(1,o=x));let q=b.state.isActiveLive$;D(t,q,x=>i(12,p=x));let N=b.ui.isMobile;D(t,N,x=>i(11,f=x));let ne=E.features.episodes?b.actions.internal.getVideoEpisodes():void 0,ge=b.actions.internal.getPreviewThumbsData(),j=b.state.interactiveEpisodes$;D(t,j,x=>i(42,u=x));let X=b.state.isInteractive,ae=b.state.isInteractiveTime$;D(t,ae,x=>i(3,r=x));let K=b.state.isInteractiveExpectation$;D(t,K,x=>i(40,a=x));let z=b.actions.internal.correctSeekTimeToInteractive,G=b.callbacks?.onDisabledTimelineClick,$=b.ui.controls.disabledControls$;D(t,$,x=>i(14,w=x));let W,Q,te,re,Ve=!1,Xe="",Se=0,Me=0,Ue=0,$e;function ce(x){return!z||!X?x:z(x*l)/l}function _e(x){b.actions.internal.startScrubbing(ce(x))}function at(x){r||b.actions.internal.progressScrubbing(ce(x))}function ke(x){b.actions.internal.completeScrubbing(ce(x)),i(36,Ve=!1)}function Fe(x,De,ze){je(x,De,ze),i(36,Ve=!0)}function ft(x,De,ze){je(x,De,ze),i(36,Ve=!0)}function Qe(){i(36,Ve=!1)}function je(x,De,ze){i(9,Ue=ce(x)),i(37,Se=De),ze&&i(38,Me=ze),i(8,Xe=Ze(x))}function Ze(x){let De=Tn((o?1-x:x)*l);return o?`-${De}`:De}function xe(x){C=x,i(0,C)}return t.$$set=x=>{"showTimeline"in x&&i(35,g=x.showTimeline),"ref"in x&&i(0,C=x.ref)},t.$$.update=()=>{t.$$.dirty[1]&2048&&i(4,W=X?u:ne),t.$$.dirty[0]&4&&i(5,Q=Tn(l)),t.$$.dirty[1]&1024&&i(6,te=Tn(s)),t.$$.dirty[0]&4|t.$$.dirty[1]&1024&&i(7,re=s/l),t.$$.dirty[0]&8|t.$$.dirty[1]&512&&i(39,$e=a||r),t.$$.dirty[0]&2|t.$$.dirty[1]&496&&i(10,n={containerWidth:Me,translateXPx:Se,translateYPx:X&&ge?-36:-16,active:Ve&&g&&!$e,pointer:!E.features.timelinePreview||!ge||o})},[C,o,l,r,W,Q,te,re,Xe,Ue,n,f,p,h,w,E,v,y,T,Y,q,N,ge,j,X,ae,K,G,$,_e,at,ke,Fe,ft,Qe,g,Ve,Se,Me,$e,a,s,u,xe]}var lu=class extends H{constructor(e){super(),U(this,e,Bv,Rv,F,{showTimeline:35,ref:0},Av,[-1,-1])}},x1=lu;function qv(t){let e,i;return e=new ml({props:{ariaValueMin:0,ariaValueMax:t[0],ariaValueNow:Math.round(t[3]*100),ariaValueText:O("aria_timeline_value",{position:t[2],duration:t[1]}),filledProgress:t[3],isAds:!0,hideHandel:!0,squareBorders:t[4]}}),{c(){M(e.$$.fragment)},m(n,o){A(e,n,o),i=!0},p(n,[o]){let l={};o&1&&(l.ariaValueMax=n[0]),o&8&&(l.ariaValueNow=Math.round(n[3]*100)),o&6&&(l.ariaValueText=O("aria_timeline_value",{position:n[2],duration:n[1]})),o&8&&(l.filledProgress=n[3]),o&16&&(l.squareBorders=n[4]),e.$set(l)},i(n){i||(d(e.$$.fragment,n),i=!0)},o(n){_(e.$$.fragment,n),i=!1},d(n){L(e,n)}}}function Dv(t,e,i){let n,{position:o=0}=e,{duration:l=0}=e,a=it().ui.isMobile;D(t,a,p=>i(4,n=p));let s,u,f;return t.$$set=p=>{"position"in p&&i(6,o=p.position),"duration"in p&&i(0,l=p.duration)},t.$$.update=()=>{t.$$.dirty&1&&i(1,s=Tn(l)),t.$$.dirty&64&&i(2,u=Tn(o)),t.$$.dirty&65&&i(3,f=o/l)},[l,s,u,f,n,a,o]}var ru=class extends H{constructor(e){super(),U(this,e,Dv,qv,F,{position:6,duration:0})}},qr=ru;function Nv(t){Pe(t,"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 Ov(t){let e;return{c(){e=P("div"),c(e,"class","timeline-stub svelte-1gqonyf"),B(e,"mobile",t[3])},m(i,n){S(i,e,n)},p(i,n){n&8&&B(e,"mobile",i[3])},i:Ce,o:Ce,d(i){i&&k(e)}}}function Fv(t){let e,i,n,o,l=[Hv,zv],r=[];function a(s,u){return s[1]?0:1}return i=a(t,-1),n=r[i]=l[i](t),{c(){e=P("div"),n.c(),c(e,"class","timeline svelte-1gqonyf"),B(e,"mobile",t[3])},m(s,u){S(s,e,u),r[i].m(e,null),o=!0},p(s,u){let f=i;i=a(s,u),i===f?r[i].p(s,u):(me(),_(r[f],1,1,()=>{r[f]=null}),pe(),n=r[i],n?n.p(s,u):(n=r[i]=l[i](s),n.c()),d(n,1),n.m(e,null)),(!o||u&8)&&B(e,"mobile",s[3])},i(s){o||(d(n),o=!0)},o(s){_(n),o=!1},d(s){s&&k(e),r[i].d()}}}function zv(t){let e,i,n;function o(r){t[14](r)}let l={showTimeline:t[2]};return t[0]!==void 0&&(l.ref=t[0]),e=new x1({props:l}),be.push(()=>Oe(e,"ref",o)),{c(){M(e.$$.fragment)},m(r,a){A(e,r,a),n=!0},p(r,a){let s={};a&4&&(s.showTimeline=r[2]),!i&&a&1&&(i=!0,s.ref=r[0],Ne(()=>i=!1)),e.$set(s)},i(r){n||(d(e.$$.fragment,r),n=!0)},o(r){_(e.$$.fragment,r),n=!1},d(r){L(e,r)}}}function Hv(t){let e,i;return e=new qr({props:{position:t[4],duration:t[5]}}),{c(){M(e.$$.fragment)},m(n,o){A(e,n,o),i=!0},p(n,o){let l={};o&16&&(l.position=n[4]),o&32&&(l.duration=n[5]),e.$set(l)},i(n){i||(d(e.$$.fragment,n),i=!0)},o(n){_(e.$$.fragment,n),i=!1},d(n){L(e,n)}}}function Uv(t){let e,i,n,o,l=[Fv,Ov],r=[];function a(s,u){return s[2]?0:1}return e=a(t,-1),i=r[e]=l[e](t),{c(){i.c(),n=ct()},m(s,u){r[e].m(s,u),S(s,n,u),o=!0},p(s,[u]){let f=e;e=a(s,u),e===f?r[e].p(s,u):(me(),_(r[f],1,1,()=>{r[f]=null}),pe(),i=r[e],i?i.p(s,u):(i=r[e]=l[e](s),i.c()),d(i,1),i.m(n.parentNode,n))},i(s){o||(d(i),o=!0)},o(s){_(i),o=!1},d(s){s&&k(n),r[e].d(s)}}}function Wv(t,e,i){let n,o,l,r,{isAds:a=!1}=e,{canRewindLive:s}=e,{isRewindableLive:u}=e,{isHidden:f=!1}=e,{ref:p=void 0}=e,h=it(),w=h.state.isLive$;D(t,w,y=>i(13,n=y));let g=h.ads.duration;D(t,g,y=>i(5,r=y));let C=h.ads.position;D(t,C,y=>i(4,l=y));let b=h.ui.isMobile;D(t,b,y=>i(3,o=y));let E;function v(y){p=y,i(0,p)}return t.$$set=y=>{"isAds"in y&&i(1,a=y.isAds),"canRewindLive"in y&&i(10,s=y.canRewindLive),"isRewindableLive"in y&&i(11,u=y.isRewindableLive),"isHidden"in y&&i(12,f=y.isHidden),"ref"in y&&i(0,p=y.ref)},t.$$.update=()=>{t.$$.dirty&15362&&i(2,E=!f&&(!n||n&&s&&u||a))},[p,a,E,o,l,r,w,g,C,b,s,u,f,n,v]}var su=class extends H{constructor(e){super(),U(this,e,Wv,Uv,F,{isAds:1,canRewindLive:10,isRewindableLive:11,isHidden:12,ref:0},Nv)}},Dr=su;import{noop as Yv}from"@vkontakte/videoplayer-shared";function Kv(t){let e,i,n,o,l,r=t[2].default,a=Ie(r,t,t[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"},t[0]],u={};for(let f=0;f<s.length;f+=1)u=ue(u,s[f]);return{c(){e=R("svg"),a&&a.c(),i=R("path"),n=R("path"),o=R("path"),c(i,"fill","#fff"),c(i,"fill-rule","evenodd"),c(i,"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"),c(i,"clip-rule","evenodd"),c(n,"fill","#fff"),c(n,"fill-rule","evenodd"),c(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"),c(n,"clip-rule","evenodd"),c(o,"fill","#fff"),c(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"),ye(e,u)},m(f,p){S(f,e,p),a&&a.m(e,null),m(e,i),m(e,n),m(e,o),l=!0},p(f,[p]){a&&a.p&&(!l||p&2)&&Ae(a,r,f,f[1],l?Ee(r,f[1],p,null):Le(f[1]),null),ye(e,u=Be(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"},p&1&&f[0]]))},i(f){l||(d(a,f),l=!0)},o(f){_(a,f),l=!1},d(f){f&&k(e),a&&a.d(f)}}}function jv(t,e,i){let{$$slots:n={},$$scope:o}=e;return t.$$set=l=>{i(0,e=ue(ue({},e),ve(l))),"$$scope"in l&&i(1,o=l.$$scope)},e=ve(e),[e,o,n]}var au=class extends H{constructor(e){super(),U(this,e,jv,Kv,F,{})}},$1=au;function Gv(t){let e,i,n,o=t[2].default,l=Ie(o,t,t[1],null),r=[{xmlns:"http://www.w3.org/2000/svg"},{width:"12"},{height:"13"},{fill:"none"},{"aria-hidden":"true"},{"data-testid":"chevron-light-icon"},{role:"img"},t[0]],a={};for(let s=0;s<r.length;s+=1)a=ue(a,r[s]);return{c(){e=R("svg"),l&&l.c(),i=R("path"),c(i,"fill","#fff"),c(i,"fill-rule","evenodd"),c(i,"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"),c(i,"clip-rule","evenodd"),c(i,"opacity",".7"),ye(e,a)},m(s,u){S(s,e,u),l&&l.m(e,null),m(e,i),n=!0},p(s,[u]){l&&l.p&&(!n||u&2)&&Ae(l,o,s,s[1],n?Ee(o,s[1],u,null):Le(s[1]),null),ye(e,a=Be(r,[{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(l,s),n=!0)},o(s){_(l,s),n=!1},d(s){s&&k(e),l&&l.d(s)}}}function Qv(t,e,i){let{$$slots:n={},$$scope:o}=e;return t.$$set=l=>{i(0,e=ue(ue({},e),ve(l))),"$$scope"in l&&i(1,o=l.$$scope)},e=ve(e),[e,o,n]}var uu=class extends H{constructor(e){super(),U(this,e,Qv,Gv,F,{})}},em=uu;function Zv(t){Pe(t,"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 Xv(t){let e,i,n,o;e=new $1({});function l(s,u){if(s[4]==="FULL")return $v;if(s[4]==="COUNT")return xv}let r=l(t,-1),a=r&&r(t);return{c(){M(e.$$.fragment),i=V(),a&&a.c(),n=ct()},m(s,u){A(e,s,u),S(s,i,u),a&&a.m(s,u),S(s,n,u),o=!0},p(s,u){r===(r=l(s,u))&&a?a.p(s,u):(a&&a.d(1),a=r&&r(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(i),k(n)),L(e,s),a&&a.d(s)}}}function Jv(t){let e,i,n,o,l,r;return l=new em({}),{c(){e=P("span"),i=Re(t[2]),n=V(),o=P("div"),M(l.$$.fragment),c(e,"class","text mobile svelte-1yhs2ga"),c(o,"class","chevron-episodes svelte-1yhs2ga")},m(a,s){S(a,e,s),m(e,i),S(a,n,s),S(a,o,s),A(l,o,null),r=!0},p(a,s){(!r||s&4)&&Ge(i,a[2])},i(a){r||(d(l.$$.fragment,a),r=!0)},o(a){_(l.$$.fragment,a),r=!1},d(a){a&&(k(e),k(n),k(o)),L(l)}}}function xv(t){let e,i=t[0].length+"",n;return{c(){e=P("span"),n=Re(i),c(e,"class","text count svelte-1yhs2ga")},m(o,l){S(o,e,l),m(e,n)},p(o,l){l&1&&i!==(i=o[0].length+"")&&Ge(n,i)},d(o){o&&k(e)}}}function $v(t){let e,i;return{c(){e=P("span"),i=Re(t[2]),c(e,"class","text svelte-1yhs2ga")},m(n,o){S(n,e,o),m(e,i)},p(n,o){o&4&&Ge(i,n[2])},d(n){n&&k(e)}}}function e4(t){let e,i,n,o,l=[Jv,Xv],r=[];function a(s,u){return s[6]?0:1}return e=a(t,-1),i=r[e]=l[e](t),{c(){i.c(),n=ct()},m(s,u){r[e].m(s,u),S(s,n,u),o=!0},p(s,u){let f=e;e=a(s,u),e===f?r[e].p(s,u):(me(),_(r[f],1,1,()=>{r[f]=null}),pe(),i=r[e],i?i.p(s,u):(i=r[e]=l[e](s),i.c()),d(i,1),i.m(n.parentNode,n))},i(s){o||(d(i),o=!0)},o(s){_(i),o=!1},d(s){s&&k(n),r[e].d(s)}}}function t4(t){let e,i,n;function o(r){t[19](r)}let l={className:"w-max btn-full-opacity "+(t[6]?"px-0":""),testId:"btn-episodes",click:t[12],disabled:!t[7],ariaExpanded:t[3],ariaLabel:t[5],$$slots:{default:[e4]},$$scope:{ctx:t}};return t[1]!==void 0&&(l.ref=t[1]),e=new ht({props:l}),be.push(()=>Oe(e,"ref",o)),{c(){M(e.$$.fragment)},m(r,a){A(e,r,a),n=!0},p(r,[a]){let s={};a&64&&(s.className="w-max btn-full-opacity "+(r[6]?"px-0":"")),a&8&&(s.ariaExpanded=r[3]),a&32&&(s.ariaLabel=r[5]),a&8388693&&(s.$$scope={dirty:a,ctx:r}),!i&&a&2&&(i=!0,s.ref=r[1],Ne(()=>i=!1)),e.$set(s)},i(r){n||(d(e.$$.fragment,r),n=!0)},o(r){_(e.$$.fragment,r),n=!1},d(r){L(e,r)}}}function i4(t,e,i){let n,o,l,r,a,s,{position:u=0}=e,{duration:f=0}=e,{timeCodes:p=[]}=e,h=it(),w=h.callbacks?.onEpisodeChanged??Yv,g=!!h.callbacks?.onEpisodeClicked,C=h.ui.currentGridType$;D(t,C,j=>i(18,a=j));let b=h.ui.episodes.openedByKeyboard$;D(t,b,j=>i(17,r=j));let E=h.ui.episodes.panelOpened$;D(t,E,j=>i(3,l=j));let v=h.ui.isMobile;D(t,v,j=>i(6,s=j));let y,T=j=>{if(!!h.callbacks?.onEpisodeClicked){let ae=rl(j);b.set(ae),E.set(!0),h.callbacks?.onEpisodeClicked?.(ae)}},Y,q,N,ne=async(j,X,ae)=>{await Un(),j?.getAttribute("aria-expanded")==="false"&&X&&!ae&&(b.set(!1),j.focus())};function ge(j){y=j,i(1,y)}return t.$$set=j=>{"position"in j&&i(13,u=j.position),"duration"in j&&i(14,f=j.duration),"timeCodes"in j&&i(0,p=j.timeCodes)},t.$$.update=()=>{if(t.$$.dirty&24576&&i(16,n=u/f),t.$$.dirty&114689){let j=Br(n,f,p);j&&Y?.text!==j.text&&(w(j),i(15,Y=j))}t.$$.dirty&32768&&i(2,o=Y?.text||""),t.$$.dirty&262144&&(In(a,"xl")?i(4,q="FULL"):In(a,"m")&&B1(a,"xl")?i(4,q="COUNT"):i(4,q="SHORT")),t.$$.dirty&4&&i(5,N=`${O("tooltip_episodes")}: ${o}`),t.$$.dirty&131082&&ne(y,r,l)},[p,y,o,l,q,N,s,g,C,b,E,v,T,u,f,Y,n,r,a,ge]}var cu=class extends H{constructor(e){super(),U(this,e,i4,t4,F,{position:13,duration:14,timeCodes:0},Zv)}},Nr=cu;function n4(t){let e,i,n,o,l=t[2].default,r=Ie(l,t,t[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"},t[0]],s={};for(let u=0;u<a.length;u+=1)s=ue(s,a[u]);return{c(){e=R("svg"),r&&r.c(),i=R("path"),n=R("path"),c(i,"fill","#fff"),c(i,"fill-rule","evenodd"),c(i,"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"),c(i,"clip-rule","evenodd"),c(n,"fill","#fff"),c(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"),ye(e,s)},m(u,f){S(u,e,f),r&&r.m(e,null),m(e,i),m(e,n),o=!0},p(u,[f]){r&&r.p&&(!o||f&2)&&Ae(r,l,u,u[1],o?Ee(l,u[1],f,null):Le(u[1]),null),ye(e,s=Be(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"},f&1&&u[0]]))},i(u){o||(d(r,u),o=!0)},o(u){_(r,u),o=!1},d(u){u&&k(e),r&&r.d(u)}}}function o4(t,e,i){let{$$slots:n={},$$scope:o}=e;return t.$$set=l=>{i(0,e=ue(ue({},e),ve(l))),"$$scope"in l&&i(1,o=l.$$scope)},e=ve(e),[e,o,n]}var fu=class extends H{constructor(e){super(),U(this,e,o4,n4,F,{})}},tm=fu;function l4(t){let e,i;return e=new tm({}),{c(){M(e.$$.fragment)},m(n,o){A(e,n,o),i=!0},i(n){i||(d(e.$$.fragment,n),i=!0)},o(n){_(e.$$.fragment,n),i=!1},d(n){L(e,n)}}}function r4(t){let e,i,n;function o(r){t[4](r)}let l={className:t[1]?"hidden":"",testId:"btn-seek-to-interactive",ariaLabel:O("tooltip_interactive_seek"),disabled:t[2],click:t[3],$$slots:{default:[l4]},$$scope:{ctx:t}};return t[0]!==void 0&&(l.ref=t[0]),e=new ht({props:l}),be.push(()=>Oe(e,"ref",o)),{c(){M(e.$$.fragment)},m(r,a){A(e,r,a),n=!0},p(r,[a]){let s={};a&2&&(s.className=r[1]?"hidden":""),a&4&&(s.disabled=r[2]),a&8&&(s.click=r[3]),a&32&&(s.$$scope={dirty:a,ctx:r}),!i&&a&1&&(i=!0,s.ref=r[0],Ne(()=>i=!1)),e.$set(s)},i(r){n||(d(e.$$.fragment,r),n=!0)},o(r){_(e.$$.fragment,r),n=!1},d(r){L(e,r)}}}function s4(t,e,i){let{ref:n=void 0}=e,{hidden:o=!1}=e,{disabled:l=!1}=e,{click:r}=e;function a(s){n=s,i(0,n)}return t.$$set=s=>{"ref"in s&&i(0,n=s.ref),"hidden"in s&&i(1,o=s.hidden),"disabled"in s&&i(2,l=s.disabled),"click"in s&&i(3,r=s.click)},[n,o,l,r,a]}var du=class extends H{constructor(e){super(),U(this,e,s4,r4,F,{ref:0,hidden:1,disabled:2,click:3})}},Or=du;function a4(t){let e,i,n,o,l=t[2].default,r=Ie(l,t,t[1],null),a=[{xmlns:"http://www.w3.org/2000/svg"},{width:"24"},{height:"24"},{fill:"none"},{"aria-hidden":"true"},{role:"img"},t[0]],s={};for(let u=0;u<a.length;u+=1)s=ue(s,a[u]);return{c(){e=R("svg"),r&&r.c(),i=R("path"),n=R("path"),c(i,"fill","#fff"),c(i,"fill-rule","evenodd"),c(i,"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"),c(i,"clip-rule","evenodd"),c(n,"fill","#fff"),c(n,"fill-rule","evenodd"),c(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"),c(n,"class","_closed"),c(n,"clip-rule","evenodd"),ye(e,s)},m(u,f){S(u,e,f),r&&r.m(e,null),m(e,i),m(e,n),o=!0},p(u,[f]){r&&r.p&&(!o||f&2)&&Ae(r,l,u,u[1],o?Ee(l,u[1],f,null):Le(u[1]),null),ye(e,s=Be(a,[{xmlns:"http://www.w3.org/2000/svg"},{width:"24"},{height:"24"},{fill:"none"},{"aria-hidden":"true"},{role:"img"},f&1&&u[0]]))},i(u){o||(d(r,u),o=!0)},o(u){_(r,u),o=!1},d(u){u&&k(e),r&&r.d(u)}}}function u4(t,e,i){let{$$slots:n={},$$scope:o}=e;return t.$$set=l=>{i(0,e=ue(ue({},e),ve(l))),"$$scope"in l&&i(1,o=l.$$scope)},e=ve(e),[e,o,n]}var mu=class extends H{constructor(e){super(),U(this,e,u4,a4,F,{})}},im=mu;function c4(t){Pe(t,"svelte-17ceof5",'svg[data-testid="graph-open-icon"] ._closed{visibility:hidden;opacity:0}')}function f4(t){let e,i;return e=new im({props:{"data-testid":t[0]?"graph-close-icon":"graph-open-icon"}}),{c(){M(e.$$.fragment)},m(n,o){A(e,n,o),i=!0},p(n,[o]){let l={};o&1&&(l["data-testid"]=n[0]?"graph-close-icon":"graph-open-icon"),e.$set(l)},i(n){i||(d(e.$$.fragment,n),i=!0)},o(n){_(e.$$.fragment,n),i=!1},d(n){L(e,n)}}}function d4(t,e,i){let{isOpened:n=!1}=e;return t.$$set=o=>{"isOpened"in o&&i(0,n=o.isOpened)},[n]}var pu=class extends H{constructor(e){super(),U(this,e,d4,f4,F,{isOpened:0},c4)}},nm=pu;function m4(t){let e,i;return e=new nm({props:{isOpened:t[3]}}),{c(){M(e.$$.fragment)},m(n,o){A(e,n,o),i=!0},p(n,o){let l={};o&8&&(l.isOpened=n[3]),e.$set(l)},i(n){i||(d(e.$$.fragment,n),i=!0)},o(n){_(e.$$.fragment,n),i=!1},d(n){L(e,n)}}}function p4(t){let e,i,n;function o(r){t[6](r)}let l={className:t[1]?"hidden":"",testId:"btn-graph",disabled:t[2],ariaLabel:t[5],click:t[4],$$slots:{default:[m4]},$$scope:{ctx:t}};return t[0]!==void 0&&(l.ref=t[0]),e=new ht({props:l}),be.push(()=>Oe(e,"ref",o)),{c(){M(e.$$.fragment)},m(r,a){A(e,r,a),n=!0},p(r,[a]){let s={};a&2&&(s.className=r[1]?"hidden":""),a&4&&(s.disabled=r[2]),a&32&&(s.ariaLabel=r[5]),a&16&&(s.click=r[4]),a&136&&(s.$$scope={dirty:a,ctx:r}),!i&&a&1&&(i=!0,s.ref=r[0],Ne(()=>i=!1)),e.$set(s)},i(r){n||(d(e.$$.fragment,r),n=!0)},o(r){_(e.$$.fragment,r),n=!1},d(r){L(e,r)}}}function _4(t,e,i){let{ref:n=void 0}=e,{hidden:o=!1}=e,{disabled:l=!1}=e,{graphIsOpened:r=!1}=e,{click:a}=e,s;function u(f){n=f,i(0,n)}return t.$$set=f=>{"ref"in f&&i(0,n=f.ref),"hidden"in f&&i(1,o=f.hidden),"disabled"in f&&i(2,l=f.disabled),"graphIsOpened"in f&&i(3,r=f.graphIsOpened),"click"in f&&i(4,a=f.click)},t.$$.update=()=>{t.$$.dirty&8&&i(5,s=r?O("tooltip_interactive_graph_on"):O("tooltip_interactive_graph_off"))},[n,o,l,r,a,s,u]}var _u=class extends H{constructor(e){super(),U(this,e,_4,p4,F,{ref:0,hidden:1,disabled:2,graphIsOpened:3,click:4})}},Fr=_u;function h4(t){let e,i,n,o=t[2].default,l=Ie(o,t,t[1],null),r=[{xmlns:"http://www.w3.org/2000/svg"},{width:"24"},{height:"24"},{fill:"none"},{"aria-hidden":"true"},{"data-testid":"replay-icon"},{role:"img"},t[0]],a={};for(let s=0;s<r.length;s+=1)a=ue(a,r[s]);return{c(){e=R("svg"),l&&l.c(),i=R("path"),c(i,"fill","#fff"),c(i,"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"),ye(e,a)},m(s,u){S(s,e,u),l&&l.m(e,null),m(e,i),n=!0},p(s,[u]){l&&l.p&&(!n||u&2)&&Ae(l,o,s,s[1],n?Ee(o,s[1],u,null):Le(s[1]),null),ye(e,a=Be(r,[{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(l,s),n=!0)},o(s){_(l,s),n=!1},d(s){s&&k(e),l&&l.d(s)}}}function g4(t,e,i){let{$$slots:n={},$$scope:o}=e;return t.$$set=l=>{i(0,e=ue(ue({},e),ve(l))),"$$scope"in l&&i(1,o=l.$$scope)},e=ve(e),[e,o,n]}var hu=class extends H{constructor(e){super(),U(this,e,g4,h4,F,{})}},zr=hu;import{noop as b4}from"@vkontakte/videoplayer-shared";function v4(t){Pe(t,"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 om(t){let e;return{c(){e=P("div"),c(e,"class","icon-background-mobile svelte-1ot3duq")},m(i,n){S(i,e,n)},d(i){i&&k(e)}}}function y4(t){let e,i,n,o,l=t[1]&&om(t);return n=new zr({}),{c(){l&&l.c(),e=V(),i=P("div"),M(n.$$.fragment),c(i,"class","svelte-1ot3duq"),B(i,"mobile",t[1])},m(r,a){l&&l.m(r,a),S(r,e,a),S(r,i,a),A(n,i,null),o=!0},p(r,a){r[1]?l||(l=om(r),l.c(),l.m(e.parentNode,e)):l&&(l.d(1),l=null),(!o||a&2)&&B(i,"mobile",r[1])},i(r){o||(d(n.$$.fragment,r),o=!0)},o(r){_(n.$$.fragment,r),o=!1},d(r){r&&(k(e),k(i)),l&&l.d(r),L(n)}}}function w4(t){let e,i,n;function o(r){t[5](r)}let l={className:(t[1]?"btn-m--play":"")+" "+t[3],testId:"btn-replay",ariaLabel:O("tooltip_restart"),disabled:t[2],click:t[4],ariaKeyShortCut:Yn.KeyK,$$slots:{default:[y4]},$$scope:{ctx:t}};return t[0]!==void 0&&(l.ref=t[0]),e=new ht({props:l}),be.push(()=>Oe(e,"ref",o)),{c(){M(e.$$.fragment)},m(r,a){A(e,r,a),n=!0},p(r,[a]){let s={};a&10&&(s.className=(r[1]?"btn-m--play":"")+" "+r[3]),a&4&&(s.disabled=r[2]),a&16&&(s.click=r[4]),a&66&&(s.$$scope={dirty:a,ctx:r}),!i&&a&1&&(i=!0,s.ref=r[0],Ne(()=>i=!1)),e.$set(s)},i(r){n||(d(e.$$.fragment,r),n=!0)},o(r){_(e.$$.fragment,r),n=!1},d(r){L(e,r)}}}function k4(t,e,i){let{ref:n=void 0}=e,{isMobile:o=!1}=e,{disabled:l=!1}=e,{className:r=""}=e,{click:a=b4}=e;function s(u){n=u,i(0,n)}return t.$$set=u=>{"ref"in u&&i(0,n=u.ref),"isMobile"in u&&i(1,o=u.isMobile),"disabled"in u&&i(2,l=u.disabled),"className"in u&&i(3,r=u.className),"click"in u&&i(4,a=u.click)},[n,o,l,r,a,s]}var gu=class extends H{constructor(e){super(),U(this,e,k4,w4,F,{ref:0,isMobile:1,disabled:2,className:3,click:4},v4)}},Bl=gu;function S4(t){let e,i,n,o=t[2].default,l=Ie(o,t,t[1],null),r=[{xmlns:"http://www.w3.org/2000/svg"},{width:"24"},{height:"24"},{fill:"none"},{"data-testid":"play-prev-chapter-icon"},{role:"img"},t[0]],a={};for(let s=0;s<r.length;s+=1)a=ue(a,r[s]);return{c(){e=R("svg"),l&&l.c(),i=R("path"),c(i,"fill","#fff"),c(i,"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"),ye(e,a)},m(s,u){S(s,e,u),l&&l.m(e,null),m(e,i),n=!0},p(s,[u]){l&&l.p&&(!n||u&2)&&Ae(l,o,s,s[1],n?Ee(o,s[1],u,null):Le(s[1]),null),ye(e,a=Be(r,[{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(l,s),n=!0)},o(s){_(l,s),n=!1},d(s){s&&k(e),l&&l.d(s)}}}function C4(t,e,i){let{$$slots:n={},$$scope:o}=e;return t.$$set=l=>{i(0,e=ue(ue({},e),ve(l))),"$$scope"in l&&i(1,o=l.$$scope)},e=ve(e),[e,o,n]}var bu=class extends H{constructor(e){super(),U(this,e,C4,S4,F,{})}},lm=bu;function P4(t){let e,i;return e=new lm({}),{c(){M(e.$$.fragment)},m(n,o){A(e,n,o),i=!0},i(n){i||(d(e.$$.fragment,n),i=!0)},o(n){_(e.$$.fragment,n),i=!1},d(n){L(e,n)}}}function T4(t){let e,i,n;function o(r){t[4](r)}let l={className:t[1]?"hidden":"",testId:"btn-play-prev-chapter",ariaLabel:O("tooltip_interactive_go_back"),disabled:t[2],click:t[3],$$slots:{default:[P4]},$$scope:{ctx:t}};return t[0]!==void 0&&(l.ref=t[0]),e=new ht({props:l}),be.push(()=>Oe(e,"ref",o)),{c(){M(e.$$.fragment)},m(r,a){A(e,r,a),n=!0},p(r,[a]){let s={};a&2&&(s.className=r[1]?"hidden":""),a&4&&(s.disabled=r[2]),a&8&&(s.click=r[3]),a&32&&(s.$$scope={dirty:a,ctx:r}),!i&&a&1&&(i=!0,s.ref=r[0],Ne(()=>i=!1)),e.$set(s)},i(r){n||(d(e.$$.fragment,r),n=!0)},o(r){_(e.$$.fragment,r),n=!1},d(r){L(e,r)}}}function I4(t,e,i){let{ref:n=void 0}=e,{hidden:o=!1}=e,{disabled:l=!1}=e,{click:r}=e;function a(s){n=s,i(0,n)}return t.$$set=s=>{"ref"in s&&i(0,n=s.ref),"hidden"in s&&i(1,o=s.hidden),"disabled"in s&&i(2,l=s.disabled),"click"in s&&i(3,r=s.click)},[n,o,l,r,a]}var vu=class extends H{constructor(e){super(),U(this,e,I4,T4,F,{ref:0,hidden:1,disabled:2,click:3})}},Hr=vu;import{noop as rm}from"@vkontakte/videoplayer-shared";function E4(t){Pe(t,"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 A4(t){let e,i,n,o;return{c(){e=P("img"),c(e,"class","icon svelte-1x1zctw"),_s(e.src,i=t[0])||c(e,"src",i),c(e,"aria-hidden","true")},m(l,r){S(l,e,r),n||(o=he(e,"error",t[7]),n=!0)},p(l,r){r&1&&!_s(e.src,i=l[0])&&c(e,"src",i)},d(l){l&&k(e),n=!1,o()}}}function L4(t){let e;return{c(){e=P("div"),e.innerHTML='<div class="inner svelte-1x1zctw"></div>',c(e,"class","icon error-stub svelte-1x1zctw")},m(i,n){S(i,e,n)},p:Ce,d(i){i&&k(e)}}}function M4(t){let e;function i(l,r){return l[5]?L4:A4}let n=i(t,-1),o=n(t);return{c(){o.c(),e=ct()},m(l,r){o.m(l,r),S(l,e,r)},p(l,r){n===(n=i(l,r))&&o?o.p(l,r):(o.d(1),o=n(l),o&&(o.c(),o.m(e.parentNode,e)))},d(l){l&&k(e),o.d(l)}}}function V4(t){let e,i;return e=new ht({props:{className:t[4]?"btn-full-opacity":"",ariaLabel:t[1],click:t[3],disabled:t[6],testId:t[2],$$slots:{default:[M4]},$$scope:{ctx:t}}}),{c(){M(e.$$.fragment)},m(n,o){A(e,n,o),i=!0},p(n,[o]){let l={};o&16&&(l.className=n[4]?"btn-full-opacity":""),o&2&&(l.ariaLabel=n[1]),o&8&&(l.click=n[3]),o&64&&(l.disabled=n[6]),o&4&&(l.testId=n[2]),o&545&&(l.$$scope={dirty:o,ctx:n}),e.$set(l)},i(n){i||(d(e.$$.fragment,n),i=!0)},o(n){_(e.$$.fragment,n),i=!1},d(n){L(e,n)}}}function R4(t,e,i){let n,o,l,{iconUrl:r}=e,{ariaLabel:a}=e,{disabled:s=!1}=e,{testId:u}=e,{onClick:f=rm}=e,p=()=>{i(5,l=!0)};return t.$$set=h=>{"iconUrl"in h&&i(0,r=h.iconUrl),"ariaLabel"in h&&i(1,a=h.ariaLabel),"disabled"in h&&i(8,s=h.disabled),"testId"in h&&i(2,u=h.testId),"onClick"in h&&i(3,f=h.onClick)},t.$$.update=()=>{t.$$.dirty&8&&i(4,n=f===rm),t.$$.dirty&272&&i(6,o=n||s)},i(5,l=!1),[r,a,u,f,n,l,o,p,s]}var yu=class extends H{constructor(e){super(),U(this,e,R4,V4,F,{iconUrl:0,ariaLabel:1,disabled:8,testId:2,onClick:3},E4)}},Ur=yu;import{throttleFn as f3}from"@vkontakte/videoplayer-shared";import{ChromecastState as z4,PlaybackState as ql,Player as H4,VideoFormat as Dl}from"@vkontakte/videoplayer-core";import{Tracer as U4,isInvariantQuality as W4}from"@vkontakte/videoplayer-shared";import{assertNonNullable as Nn,getHighestQuality as K4,InterfaceLanguage as j4,clientChecker as G4,isNonNullable as Q4,loadVKLangPack as Y4,Logger as Z4,map as X4,merge as J4,Observable as x4,Subject as Qr,Subscription as Tu,ValueSubject as $4,VideoQuality as e3}from"@vkontakte/videoplayer-shared";import{SeekAction as bo}from"@vkontakte/videoplayer-statistics";import"@vkontakte/videoplayer-interactive";import{addScript as B4,assertNonNullable as Oi,Subject as Ho,clearVideoElement as q4}from"@vkontakte/videoplayer-shared";var sm=(t,e)=>t<400||e<225?5:t<640||e<360?0:t<960||e<540?1:t<1280||e<720?2:3;var D4="//ad.mail.ru/static/admanhtml/rbadman-html5.min.js",Wr=class{constructor(e,i){this.adman=null;this.initialVolume=1;this.videoElement=null;this.currentAdSection=null;this.actions=null;this.adsState=null;this.playerState=null;this.events={slotRequested$:new Ho,started$:new Ho,paused$:new Ho,resumed$:new Ho,ended$:new Ho,skipped$:new Ho,clicked$:new Ho};this.loadAdman=e=>new Promise((i,n)=>{let o,l=()=>{clearTimeout(o),delete window.admanAsyncInit,window.AdmanHTML?i():n()};B4(D4,e,this.loadTimeout).then(()=>{window.AdmanHTML?i():(window.admanAsyncInit=l,o=window.setTimeout(l,this.initTimeout))}).catch(()=>{n()})});this.onAdsReady=()=>{this.log({message:"ads ready"}),this.startPreroll()};this.onAdStarted=(e,i)=>{Oi(this.adsState),Oi(this.playerState),Oi(this.actions),this.log({message:`ad started, section: ${e}, banner: ${JSON.stringify(i)}`}),this.events.started$.next(e),i.muted&&(this.setVolume(0),this.actions.setMuted(!0),this.log({message:"ad muted start"}),Je(this.playerState.isMobile)&&this.playerState.mobileUnmuteButtonVisible.set(!0)),this.adsState.duration.set(i.duration),this.adsState.playbackState.set("playing"),this.adsState.canSkip.set(i.allowClose),this.adsState.secondsToWatchBeforeSkip.set(i.allowCloseDelay),this.startWatchDog()};this.onAdTimeRemained=({currentTime:e})=>{Oi(this.adsState),this.adsState.position.set(e),this.startWatchDog()};this.onAdPaused=()=>{this.stopWatchDog(),Oi(this.adsState),this.log({message:"ad paused"}),this.adsState.playbackState.set("paused")};this.onAdPlayed=()=>{Oi(this.adsState),this.log({message:"ad played"}),this.adsState.playbackState.set("playing"),this.startWatchDog()};this.onAdMidrollPoint=()=>{Oi(this.adman),Oi(this.actions),this.log({message:"midroll point"}),this.actions.switchFromVideoToAds(),this.currentAdSection="midroll",this.startWatchDog();try{this.adman.start("midroll")}catch{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=()=>{this.log({message:"ad clicked"}),this.videoElement?.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=i.loadTimeout,this.initTimeout=i.initTimeout,this.runtimeTimeout=i.runtimeTimeout}init(e,i,n){this.actions=e,this.adsState=i,this.playerState=n}onAdmanLoadingError(){this.log({message:"adman loading error"}),this.switchToVideo(!0)}initAdman(e){if(this.adman)return;this.startWatchDog();let{width:i,height:n,isFullscreen:o,isAutoplay:l,adsContainer:r,adsVideoElement:a,slotId:s,params:u={},duration:f,previewParam:p}=e,h,w=this.playerState&&Je(this.playerState.vsid);w&&(h=parseInt(w,36));let g={dl:encodeURIComponent(window.location.href),autoplay:l,player_width:i,player_height:n,puid10:sm(i,n),puid11:o?0:1,preview:p,...h?{request_id:h}:{},duration:f,...u};p||delete g.preview;let C={slot:s,wrapper:r,videoEl:a,videoQuality:n,params:g,browser:{mobile:!1}};try{let b=new window.AdmanHTML;b.setDebug(!1),b.onReady(this.onAdsReady),b.onStarted(this.onAdStarted),b.onPlayed(this.onAdPlayed),b.onPaused(this.onAdPaused),b.adMidrollPoint(this.onAdMidrollPoint),b.onClosed(this.onAdClosed),b.onSkipped(this.onAdSkipped),b.onClicked(this.onAdClicked),b.onTimeRemained(this.onAdTimeRemained),b.onCompleted(this.onAdCompleted),b.onError(this.onAdError),b.init(C),this.adman=b,this.videoElement=a,this.events.slotRequested$.next(),this.log({message:`adman init, config: ${JSON.stringify(C)}`})}catch{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}Oi(this.actions),Oi(this.adsState),Oi(this.playerState);let i=this.currentAdSection==="postroll";this.adsState.playbackState.set("inactive"),this.currentAdSection=null,this.playerState.mobileUnmuteButtonVisible.set(!1),this.log({message:`switch to video, isPostroll: ${i}`}),i&&(this.adsState.postrollPassed.set(!0),this.log({message:"postroll passed"})),this.actions.switchFromAdsToVideo(!i)}togglePlay(){Oi(this.adsState),this.log({message:"toggle play"});let e=Je(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{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{this.log({message:"could not set ad fullscreen"}),this.onAdError()}}startPreroll(){if(Oi(this.adman),!this.isDestroyed){this.log({message:"start preroll"}),this.setVolume(this.initialVolume),this.currentAdSection="preroll",this.startWatchDog();try{this.adman.start("preroll")}catch{this.log({message:"could not start preroll"}),this.onAdError()}}}startPostroll(){Oi(this.adman),Oi(this.actions),this.log({message:"start postroll"}),this.actions.switchFromVideoToAds(),this.currentAdSection="postroll",this.startWatchDog();try{this.adman.start("postroll")}catch{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(){Oi(this.adman),this.log({message:"ad play"}),this.startWatchDog();try{this.adman.resume(),this.events.resumed$.next()}catch{this.onAdError(),this.log({message:"could not resume ad"})}}pause(){Oi(this.adman),this.stopWatchDog(),this.log({message:"ad pause"});try{this.adman.pause(),this.events.paused$.next()}catch{this.onAdError(),this.log({message:"could not pause ad"})}}skip(){Oi(this.adman),this.stopWatchDog(),this.log({message:"ad skip"});try{this.adman.skip(),this.events.skipped$.next()}catch{this.log({message:"could not skip ad"}),this.onAdError()}}setPosition(e,i){this.adman?.setPosition(Math.floor(e),Math.floor(i))}destroy(){this.log({message:"destroy"}),this.stopWatchDog(),this.adman?.destroy(),this.videoElement&&q4(this.videoElement),this.isDestroyed=!0}};var am=t=>{let e=Math.round(t);return isNaN(e)||e<40?"":e>=40&&e<55?50:e>=55&&e<90?60:e>=90&&e<180?120:e>=180?240:""};var wu=class{constructor(){this.oneLineRegExp=/\r\n|\n|\r/;this.twoLinesRegExp=/\r\n\r\n|\n\n|\r\r/}parse(e){let i=[],n=e.split(this.twoLinesRegExp);for(let o of n){let l={startTime:0,endTime:0,texts:[],lang:""},r=o.split(this.oneLineRegExp);for(let a of r)if(!l.startTime&&!l.endTime){let s=new Kr,{startTime:u,endTime:f}=s.parse(a);l.startTime=u,l.endTime=f}else if(a.trim()!==""){let s=new ku,{texts:u}=s.parse(a);l.texts=[...l.texts,...u]}(l.startTime||l.endTime)&&l.texts.length>0&&i.push(l)}return i}},Kr=class{constructor(){this.timeRegExp=/(\d{2,})?:?(\d{2}):(\d{2}).(\d{2,3})/;this.timingRegExp=new RegExp(`${this.timeRegExp.source}( ?--> ?)${this.timeRegExp.source}`)}parse(e){let i={startTime:0,endTime:0},n=this.timingRegExp.exec(e);return n&&(i.startTime=this.calcTime(n[1],n[2],n[3],n[4]),i.endTime=this.calcTime(n[6],n[7],n[8],n[9])),i}parseTime(e){let i=this.timeRegExp.exec(e);return i?this.calcTime(i[1],i[2],i[3],i[4]):0}isTime(e){return this.timeRegExp.test(e)}calcTime(e="0",i="0",n="0",o="0"){let l=Number(e)*60*60,r=Number(i)*60,a=Number(n),s=+`0.${o}`;return l+r+a+s}},ku=class{constructor(){this.letterTagRegExp=/<[a-z]*>|<\/[a-z]*>/}parse(e){let i={texts:[]},o=e.replace(new RegExp(this.letterTagRegExp,"g"),"").split({[Symbol.split](r){let a=0,s=[];for(;a<r.length;){let u=["<",">"].reduce((f,p)=>{let h=r.indexOf(p,a);return f===-1||f>h?h:f},-1);if(u===-1){s.push(r.substring(a));break}s.push(r.substring(a,u)),a=u+1}return s}}),l=new Kr;for(let r of o)l.isTime(r)?i.texts.push({type:"timestamp",value:l.parseTime(r)}):i.texts.push({type:"text",value:r});return i}},um=wu;import{isNonNullable as Su}from"@vkontakte/videoplayer-shared";var go,Dn,Cu=0,Pu=!1,cm=(t,e=0,i=0)=>t<e&&t<i,jr=(t,e=0,i=0)=>t>=e&&t<=i,N4=(t,e=0,i=0)=>t>e&&t>i,fm=(t,e,i,n=!1)=>{let o=i.find(({lang:a})=>a===e.value)?.subtitles;if(n){let a=o?.find(({startTime:s,endTime:u})=>jr(t,s,u));return a?{...a,lang:e.value}:void 0}let l=t>=Cu,r=t<Cu;if(Cu=t,r&&(Pu=!1),Su(go)&&jr(t,go.startTime,go.endTime)&&go.lang===e.value)return go;if(!Su(Dn)&&o?.length&&!Pu){let a=o.find(({startTime:s,endTime:u})=>jr(t,s,u)||l&&cm(t,s,u));Dn=a&&{...a,lang:e.value},go=void 0,!Su(Dn)&&o[o.length-1].endTime<t&&(Pu=!0);return}else{if(jr(t,Dn?.startTime,Dn?.endTime))return go=Dn,Dn=void 0,go;(l&&N4(t,Dn?.startTime,Dn?.endTime)||r&&cm(t,Dn?.startTime,Dn?.endTime))&&(Dn=void 0)}};import{Subscription as O4}from"@vkontakte/videoplayer-shared";import"@vkontakte/videoplayer-statistics";var Gr=class{constructor(e,i=new O4){this.oneStat=e;this.statSubscription=i}destroy(){this.oneStat.destroy(),this.statSubscription.unsubscribe()}};var dm=({interfaceLanguage:t,isCyrillicRelatedInterface:e,videoId:i,isClip:n,isLiveCatchUpMode:o,statAuthToken:l,isAudioDisabled:r,canDownload:a,callbacks:s,webApi:u,videoEpisodes:f,previewThumbsData:p,uiConfig:h,coreConfig:w,player:g,disabledControls:C,isInteractive:b,interactiveRanges$:E,isInteractiveTime$:v,replayInteractive:y,hasInteractiveBranches:T,playPrevChapterDisabledTooltip:Y,additionalButtons:q,looped:N=!1,statistics:ne,saveRate:ge})=>{let j={...w,configName:[...w.configName??[],"ui"],isAudioDisabled:r,live:{...w.live??{},isLiveCatchUpMode:!!o}},X=h,ae=U4.createRootTracer(X.features.saveTraceInfoToFile),K=ae.createComponentTracer("Store"),z=g||new H4(j,ae),G=new Z4,$=new Wr(G,{loadTimeout:X.ads.loadTimeout,initTimeout:X.ads.initTimeout,runtimeTimeout:X.ads.runtimeTimeout}),W=Mo.getInstance(),Q=u?.pictureInPictureApi,te=u?.annotationsApi,re=G.createComponentLog("Store"),Ve,Xe,Se={},Me=ne?vt(ne.oneStat.vsid$):Rn(void 0),Ue=qe(fo()),$e=Q?.info.isActive$??new $4(!1),ce=Q?.info.type,_e=qe(0),at=qe([]),ke=J4(z.events.fatalError$,z.events.managedError$).subscribe(I=>at.update(oe=>[...oe,I])),Fe=Rn(!1,I=>{let oe=z.events.fatalError$.subscribe(()=>I(!0));return()=>oe.unsubscribe()}),ft=async I=>{let oe=Object.values(j4).includes(I);if(X.downloadVKLanguages&&(oe&&X.updateBuiltinLanguages||!Ls(I))){let Ke;try{Ke=await Y4(I,Wc,Kc)}catch(ut){ne?.oneStat?.logError({errorType:"VKLangPack",fatal:!1}),W?.report(ut,{errorType:"VKLangPack",fatal:!1})}Ke&&(As({language:I,pack:Ke,fallback:X.defaultLanguage}),Qe.set(I))}Ls(I)&&Qe.set(I)},Qe=qe(t),je=qe(e);ft(t);let Ze=(I,oe)=>{let Te=Je(Qe);return Ms(Te,I,oe,X.defaultLanguage)},xe=qe("thumb"),x=(()=>{let I=gi([Fe,xe],([oe,Te])=>oe?"crashed":Te);return{...I,is:oe=>Je(I)===oe}})(),De=(()=>{let I=qe(new Set(C));return{...I,add:oe=>{I.update(Te=>new Set([...Te].concat(oe)))},remove:oe=>{I.update(Te=>{let Ke=[...Te];return new Set(Array.isArray(oe)?Ke.filter(ut=>!oe.includes(ut)):Ke.filter(ut=>ut!==oe))})},includes:oe=>{let Te=Je(I);return Array.isArray(oe)?oe.every(Ke=>Te.has(Ke)):Te.has(oe)}}})();K.log("create store"),re({message:"create store"});let ze=I=>{let oe=I.container;oe.append(z.experimental.element$.getValue()),dt=new MutationObserver(Te=>{let{removedNodes:Ke}=Te[0];Ke.length&&oe.append(z.experimental.element$.getValue())}),dt.observe(oe,{childList:!0})},fe=I=>{re({message:`init video, config: ${JSON.stringify(I)}`}),b?ze(I):z.initVideo(I),K.log("init video",{isInteractive:b}),I.subtitles&&z.setExternalTextTracks(I.subtitles),Ve=I},se=new Qr,nt=I=>se.next(I),de=new Qr,ot=new Qr,lt=new Qr,dt=null,yt={actionRewind$:de,actionSeek$:ot,inPiP$:$e,inFullscreen$:new x4(I=>Ue.subscribe(oe=>I.next(oe))),actionSetSubtitle$:lt,nextMovie$:se};if(ne){let{oneStat:I,statSubscription:oe}=ne;b||oe.add(I.attachTo(z)),oe.add(I.attachToUi(yt)),oe.add(I.attachToAds($.events)),I.authorize(l).catch(Te=>{re({message:`onestat auth error ${String(Te)}`})})}if(W){let I=new Tu,oe=(Te,Ke)=>I.add(Te.subscribe(Ke));if(oe(z.events.managedError$,Te=>{W.logIError(Te)}),oe(z.events.fatalError$,Te=>{W.logIError(Te,!0)}),ne){let{oneStat:Te}=ne;oe(Te.experimental.error$,Ke=>{W.logIError(Ke)})}W.sentrySubscription.add(I)}let Et=()=>{G4.isIOS&&Xe&&Tf(Xe)},Ye=new Tu().add(z.experimental.element$.subscribe(I=>{I&&(Xe=I,I.classList.add("player-media"),Ro(Q)&&(Q.updateVideoElement(),Q.registryEventHandlers()),b&&I.setAttribute("pip","false"))})).add(z.events.ended$.subscribe(()=>{Et(),s?.onEnded?.()})).add(z.events.started$.subscribe(async()=>{Ro(Q)&&await Q?.revealPictureInPicture();let I=z.info.muted$.getValue();s?.onStarted?.(),Se.onStarted?.(I)})).add(z.events.willSeek$.subscribe(({from:I,to:oe})=>{s?.onSeek?.(I,oe)})).add(z.info.position$.subscribe(I=>{let oe=z.info.duration$.getValue();isFinite(oe)&&oe>0&&(s?.onTimeupdate?.(oe,I),$.setPosition(I,oe))})).add(z.events.fatalError$.subscribe(()=>{s?.onCrashed?.()})).add(z.events.loadedMetadata$.subscribe(()=>{Ct.state.loadedMetadata$.set(!0)})).add(z.info.is3DVideo$.subscribe(I=>{Ct.ui.is3DVideo.set(I)})).add(z.info.isEnded$.subscribe(I=>{b&&(I?(v?.getValue()&&De.add(Zl),De.add("PLAY_BUTTON")):De.remove("PLAY_BUTTON"))})).add(z.info.liveTime$.subscribe(I=>{s?.onLiveTime?.(I)})).add(z.info.isStalled$.subscribe(I=>{s?.onStalledChanged?.(I)})).add($.events.started$.subscribe(()=>{s?.adsInfo?.onStarted?.()})).add($.events.ended$.subscribe(()=>{s?.adsInfo?.onCompleted?.()})),Kt=new Tu,qt=()=>{Kt.add(z.events.log$.subscribe(I=>{console.debug("%c sdk ","background:#9ddcf7;",`sdk component: ${I.component}`,I.message)})).add(G.log$.subscribe(I=>{console.debug("%c ui ","background:#f3da0b;",`ui component: ${I.component}.`,I.message)}))},Tt=()=>{Kt.unsubscribe()},ai=(I,oe)=>{K.log("start camera manual rotation",{mx:I,my:oe}),z.startCameraManualRotation(I,oe)},rt=(I=!1)=>{K.log("stop camera manual rotation",{immediate:I}),z.stopCameraManualRotation(I)},wt=(I,oe,Te)=>{K.log("move camera focus px",{xpx:I,ypx:oe,dt:Te}),z.moveCameraFocusPX(I,oe,Te)},we=()=>{z.holdCamera()},gt=()=>{z.releaseCamera()},kt=Rn(z.info.position$.getValue(),I=>{let oe,Te,Ke=()=>{let ut=z.info.playbackState$.getValue(),He=z.info.isLive$.getValue(),pt=z.info.duration$.getValue(),bt=z.info.position$.getValue();if([ql.PLAYING,ql.PAUSED].includes(ut)){let ri=He?bt-pt:z.getExactTime();ri!==Te&&I(ri),Te=ri}oe=requestAnimationFrame(Ke)};return Ke(),()=>cancelAnimationFrame(oe)}),Xt=vt($e),St=vt(z.info.playbackState$),jt=vt(z.info.currentBuffer$),Gt=vt(z.info.isEnded$),Dt=vt(z.info.isLive$),Fi=X.features.playbackRate?vt(z.info.canChangePlaybackSpeed$):Rn(!1),nn=vt(z.info.liveBufferTime$),Jt=vt(z.info.volume$),Li=vt(z.info.muted$),sn=ks(z.info.autoQualityLimits$.pipe(X4(({max:I})=>I!==void 0)),z.info.autoQualityLimits$.getValue()?.max!==void 0),zi=vt(z.info.autoQualityLimitingAvailable$),on=vt(z.info.availableQualities$),bi=vt(z.info.availableQualitiesFps$),vi=vt(z.info.chromecastState$),ui=vt(z.info.chromecastDeviceName$),ci=vt(z.info.currentFormat$),yi=vt(z.info.throughputEstimation$),wi=vt(z.info.videoBitrate$),ki=vt(z.info.intrinsicVideoSize$),fi=vt(z.info.duration$),Hi=vt(z.info.isAudioAvailable$),Nt=null,Si=z.info.isBuffering$,Mi=Rn(Si.getValue(),I=>{let oe=Si.subscribe(Te=>{Te&&Nt===null?Nt=window.setTimeout(()=>{I(Si.getValue()),Nt=null},X.loaderDelay):I(Te)});return()=>{oe.unsubscribe(),Nt&&clearTimeout(Nt)}}),Ui=()=>{Nt&&clearTimeout(Nt),Nt=null},di=gi([fi,Dt],([I,oe])=>oe?-I:I),Lt=gi([St],([I])=>I===ql.PLAYING),Wi=vt(z.info.atLiveEdge$),Vi=vt(z.info.atLiveDurationEdge$),Ot=vt(z.info.position$),Ki=gi([Ot,fi],([I,oe])=>isFinite(I)&&isFinite(oe)&&!!oe),ji=gi([vi],([I])=>I===z4.CONNECTED),Qt=vt(z.info.availableVideoStreams$),Ci=X.features.audioLanguages?vt(z.info.availableAudioStreams$):Rn([]),mi=vt(z.info.currentVideoStream$),Pi=vt(z.info.currentAudioStream$),Yt=I=>{I.language&&Is(I.language),z.setVideoStream(I)},Ft=I=>{I.language&&Is(I.language),z.setAudioStream(I)},xt=I=>{let oe;if(I.length===1&&(oe=I.at(0)),oe??=I.find(Ke=>"isDefault"in Ke&&Ke.isDefault),oe)return oe;let Te=hf();return Te&&(oe=I.find(({language:Ke})=>Te===Ke)),oe??=I.at(0),oe},Ri=!1;Ye.add(z.info.availableAudioStreams$.subscribe(I=>{if(!Ri&&I.length){let oe=xt(I);oe&&(z.setAudioStream(oe),Ri=!0)}}));let ni=!1;Ye.add(z.info.availableVideoStreams$.subscribe(I=>{if(!ni&&I.length){let oe=xt(I);oe&&(z.setVideoStream(oe),ni=!0)}}));let oi=qe(void 0),$t=vt(z.info.isAutoQualityEnabled$,I=>I&&oi.set(void 0)),Gi=vt(z.info.currentQuality$,()=>oi.set(void 0)),Qi=gi([oi,Gi],([I,oe])=>I??oe),an=gi([on,bi,$t,Qi,ci],([I,oe,Te,Ke,ut])=>{let He=[];ut!==Dl.MPEG&&He.push({value:"auto",displayValue:Ze("auto_quality_option"),selected:Te});let pt=I.filter(bt=>!W4(bt));for(let bt of pt){let ri=oe[bt];He.push({value:bt,displayValue:`${bt}${ri?am(ri):""}`,selected:Te?!1:bt===Ke})}return He}),Bi=vt(z.info.currentPlaybackRate$),ei=gi([Bi,Wi,Vi],([I,oe,Te])=>{let Ke=Te||b?1:X.controls.playbackRateMin,ut=oe?1:X.controls.playbackRateMax,He=X.controls.playbackRateStep,pt=[];for(let bt=Ke;bt<=ut;bt+=He)pt.push({value:bt,displayValue:bt===1?Ze("playback_rate_1"):Ze("playback_rate",{multiplier:bt.toString(10)}),selected:I===bt});return pt}),ti=X.features.subtitles?vt(z.info.availableTextTracks$):Rn([]),Yi=gi([ti],([I],oe)=>{let Te=z.info.isLive$.getValue(),Ke=[],ut=[];for(let pt of I)pt.url&&Ke.push(fetch(pt.url));let He=pt=>{let bt=[];if(pt.length){let{startTime:ri,endTime:Fn,texts:xn,lang:zn}=pt[0];for(let gn of pt)xn[0].value===gn.texts[0].value&&xn[1].value===gn.texts[1].value?Fn=gn.endTime:(bt.push({startTime:ri,endTime:Fn,texts:xn,lang:zn}),ri=gn.startTime,Fn=gn.endTime,xn=gn.texts,zn=gn.lang);bt.push({startTime:ri,endTime:Fn,texts:xn,lang:zn})}return bt};Promise.allSettled(Ke).then(pt=>{for(let[bt,ri]of pt.entries())ri.status==="fulfilled"&&ri.value.ok&&ri.value.text().then(Fn=>{let xn=new um,zn=I[bt].language,gn=!!I[bt].isAuto,uo=xn.parse(Fn),ds=Te?He(uo):uo;zn&&uo&&ut.push({lang:zn,subtitles:ds,isAuto:gn}),bt===pt.length-1&&oe(ut)})})}),Mt={displayValue:Ze("subtitles_off"),value:"off"},Vt=qe({...Mt}),Zi=gi([Bi,Lt,Vt],([I,oe,Te],Ke)=>{let pt;if(z.info.isLive$.getValue()&&oe&&Te.value!==Mt.value){let ri=()=>{let Fn=1e3/(3*I);pt=setTimeout(ri,Fn),Ke(Date.now())};return ri(),()=>clearTimeout(pt)}}),Ti=gi([Yi,Vt],([I,oe])=>{if(I?.length>0){let Te=[{...Mt,selected:oe?.value===Mt.value}];for(let{lang:Ke,isAuto:ut}of I)Oo[Ke]&&Te.push({displayValue:ut?Ze("subtitles_auto",{language:Oo[Ke]}):Oo[Ke],value:Ke,selected:oe?.value===Ke,isAuto:ut});return Te}else return[]}),ii={available:[],prev:[]},Xi=gi([kt,Vt,Yi,Zi],([I,oe,Te,Ke])=>{let ut=z.info.isLive$.getValue();if(ut&&Te&&ii.prev!==Te){let He=Te.find(({lang:bt})=>bt===oe.value),pt=ii.prev.find(({lang:bt})=>bt===oe.value);if(He){let bt={...He,subtitles:[...pt?.subtitles??[],...He.subtitles]};ii.available=[bt],ii.prev=Te}}if(oe&&oe.value!==Mt.value){let He=ut?Xe?.currentTime??0:I,pt=ut?ii.available:Te;return fm(He,oe,pt,ut)}}),et=gi([Xi],([I])=>I?.texts?I.texts:[]),Ii=qe(!0),zt=gi([jt,di,Ot,nn],([I,oe,Te,Ke])=>{let ut=I?.end??0;if(!Ke)return ut/oe;let pt=-Te+Ke-oe;return(ut-pt)/oe}),We=vt(z.info.availableSources$),Ji=gi([We],([I])=>Object.keys(I?.[Dl.MPEG]||{}).length>0),un=()=>{let I=Object.keys(z.info.availableSources$?.getValue()?.[Dl.MPEG]||{}),oe=K4(I)||e3.Q_144P;return Ve.sources[Dl.MPEG]?.[oe]},cn=()=>{let I=un();if(I)K.log("download video",{url:I}),tf(I,Ve?.meta?.title||"video");else{let oe="There is no URL for download video";K.log("download video",{message:oe}),re({message:oe})}},xi=()=>{re({message:"toggle muted"});let I=z.info.muted$.getValue(),oe=z.info.volume$.getValue(),Te=oe===0||I,Ke=!Te;K.log("toggle muted",{muted:I,volume:oe,soundIsOff:Te,nextValue:Ke}),$i(Ke)},qi=()=>{K.log("close settings menu"),Ct.ui.settingsMenuVisible.set(!1)},ln=I=>{K.log("open settings menu",{wasOpenedByKeyboard:I}),Ct.ui.settingsMenuOpenedByKeyboard.set(!!I),Ct.ui.settingsMenuVisible.set(!0)},Di=I=>{Je(Ct.ui.settingsMenuVisible)?qi():ln(I)},Zt=(I,oe=I,Te=!1)=>{let Ke=!Te,ut=z.info.muted$.getValue();re({message:`set volume, volume: ${I}, preferredVolume: ${oe}, internalCall: ${Ke}`}),K.log("set volume",{volume:I,preferredVolume:oe,internalCall:Ke}),z.setVolume(I),$.setVolume(I),Ke&&s?.onVolumeChange?.(I),Ps(oe),ut?(z.setMuted(!1),Ke&&s?.onUnmute?.(),xl(!1)):!ut&&I===0&&(z.setMuted(!0),Ke&&s?.onMute?.(),xl(!0))},$i=(I,oe=!1)=>{let Te=!oe,Ke=z.info.volume$.getValue();if(re({message:`set muted, currentVolume: ${Ke}, mute: ${I}, internalCall: ${Te}`}),K.log("set muted",{mute:I,currentVolume:Ke,internalCall:Te}),z.setMuted(I),$.setVolume(I?0:Ke),xl(I),Te&&(I?s?.onMute?.():s?.onUnmute?.()),Ke===0){let ut=Jl()??X.volumeDefault;ut===0&&(ut=X.volumeMinRestore,Ps(ut)),z.setVolume(ut),$.setVolume(ut),Te&&s?.onVolumeChange?.(ut)}},pi=qe(!1),hn=I=>{K.log("set looped",{isLooped:I}),pi.set(I),z.setLooped(I)};hn(N);let fn=()=>{z.prepare()},dn=()=>{Nn(Ct);let I=Je(Ct.ui.controls.disabledControls$),oe=Je(Ct.playerPhase),Te={playerPhase:oe,isInteractive:b,isVideoEnded:!1,action:"none"};if(I.has("PLAY_BUTTON"))return;if(re({message:"toggle play"}),oe==="ads"){Te.action="play",K.log("toggle adman play",Te),$.togglePlay();return}let Ke=()=>{re({message:"toggle play, call player.play"}),Te.action="play",z.play(),s?.onPlay?.()},ut=()=>{re({message:"toggle play, call player.pause"}),Te.action="pause",z.pause(),s?.onPause?.()};if(z.info.isEnded$.getValue()){if(re({message:"toggle play, video ended, seek to 0"}),de.next(),ot.next(bo.REWIND),b){y?.();return}z.seekTime(0),Ke()}else z.info.playbackState$.getValue()!==ql.PLAYING?Ke():ut();K.log("toggle play",Te)},yn=I=>{re({message:`set quality, quality: ${I}`}),K.log("set quality",{quality:I}),z.setAutoQuality(I==="auto"),I!=="auto"?(uf(i,I),oi.set(I),z.setQuality(I)):Ts()},rn=I=>{re({message:`set trafficSavingEnabled, value: ${I}`}),K.log("set traffic saving enabled",{trafficSavingEnabled:I}),z.setAutoQualityLimits({max:I?X.trafficSavingLimit:void 0}),pf(I)},mn=I=>{K.log("set playback rate",{playbackRate:I}),z.setPlaybackRate(I),X.features.saveRate&&ge&&!z.info.isLive$.getValue()&&gf(I)},pn=()=>{let I=Je(ei),oe=I.findIndex(({selected:Ke})=>Ke);if(oe===I.length-1)return;let Te=I[oe+1];mn(Te.value)},en=()=>{let I=Je(ei),oe=I.findIndex(({selected:Ke})=>Ke);if(oe===0)return;let Te=I[oe-1];mn(Te.value)},_i=I=>{K.log("set subtitles",{...I}),I&&I.value!==Mt.value&&lt.next(I.isAuto?I.value+"_auto":I.value),Vt.set(I)},wn=()=>{K.log("toggle subtitles");let I=Je(Ti),oe=Je(Vt),Te=Je(Qe);if(oe?.value===Mt.value){let Ke=I.filter(ut=>ut.value!==Mt.value).find(ut=>ut.value===Te)||I[1];_i(Ke??{...Mt})}else _i({...Mt,selected:!1})},tn=(I,oe,Te=!0)=>{if(re({message:`seek to time, time: ${I}`}),K.log("seek to time",{time:I,action:oe,forcePrecise:Te}),ot.next(oe),z.info.isLive$.getValue()){let Ke=z.info.duration$.getValue(),ut=Math.min(0,Ke+I);z.seekTime(ut,Te)}else{if(v?.getValue())return;z.seekTime(ao(I),Te)}},En=I=>{re({message:`seek to episode start time: ${I}`}),K.log("seek to episode start time",{time:I}),tn(I,bo.EPISODE,!0)},Ht=(I,oe)=>{re({message:`seek to percent, percent: ${I}`}),K.log("seek to percent",{percent:I,action:oe});let Te=Math.round(Je(di)*I);tn(Te,oe,!1)},An=I=>{re({message:`seek external, time: ${I}`}),K.log("seek external",{time:I}),ot.next(bo.UNKNOWN),z.seekTime(z.info.isLive$.getValue()?-I:I)},Ln=I=>{let oe=I.max??"none",Te=I.min??"none";re({message:`set auto quality limitation. Max: ${oe}. Min: ${Te}`}),K.log("set auto quality limits",{max:oe,min:Te}),z.setAutoQualityLimits(I)},kn=I=>{re({message:`seek external to episode start time: ${I}`}),K.log("seek external to episode start time",{time:I}),tn(I,bo.EPISODE,!0)},Mn=I=>{re({message:`set playback rate to: ${I}`}),K.log("set playback rate external",{playbackRate:I}),z.setPlaybackRate(I)},le=qe(void 0),_t=qe(!1),Ni=I=>{re({message:`start scrubbing, progress: ${I}`}),K.log("start scrubbing",{progress:I}),_t.set(!0),_n(I)},_n=I=>{le.set(I)},ie,mt,li=()=>{le.set(void 0),_t.set(!1)},Sn=()=>{clearTimeout(mt),clearTimeout(ie),ie=window.setTimeout(()=>{li()},500),Xe?.removeEventListener("seeked",Sn)},On=I=>{re({message:`complete scrubbing, progress: ${I}`}),K.log("complete scrubbing",{progress:I}),Ht(I,bo.SLIDER),Je(Ct.ui.isMobile)&&Je(Ct.state.currentFormat$)===Dl.HLS?(Xe?.addEventListener("seeked",Sn),mt=window.setTimeout(()=>{Sn()},300)):li()},Xn=gi([kt,di,le],([I,oe,Te],Ke)=>{Ke(Q4(Te)?Te*oe:I)}),no=qe({width:0,height:0}),ee=gi([no],([{width:I}],oe)=>{let Te=q1(I);oe(Te)}),Gn=qe(!1),yl=gi([ee,Gn],([I,oe])=>oe?q.filter(Te=>!Te.hideOnMobile):q.filter(Te=>!Te.hideOnDesktopGridTypes?.includes(I))),wl=gi([Gn,Fe],([I,oe],Te)=>{Te(I&&oe)}),kl=()=>{ot.next(bo.LIVE),re({message:"switch to active live"}),K.log("switch to active live"),z.seekTime(0),z.info.playbackState$.getValue()!==ql.PLAYING&&Ct.actions.internal.togglePlay()},Sl=()=>{K.log("skip adman"),$.skip()},Uo=(I=!0)=>{Nn(Ct),re({message:`switch from ads to video, callPlay: ${I}`}),K.log("switch from ads to video",{callPlay:I}),xe.set("video"),I&&z.play()},vo=()=>{Nn(Ct),re({message:"switch from video to ads"}),K.log("switch from video to ads"),Ct.actions.internal.pause(),Et(),xe.set("ads")},yo=I=>{Nn(Ct);let oe=I?"LiveWaitingStart":"thumb";K.log("set live waiting start",{state:I,playerPhase:oe}),xe.set(oe)},Jn=I=>{Nn(Ct);let oe=I?"LiveWaitingRecover":"thumb";K.log("set live waiting recover",{state:I,playerPhase:oe}),xe.set(oe)},oo=I=>{Nn(Ct);let oe=I?"LiveWaitingRecord":"thumb";K.log("set live waiting record",{state:I,playerPhase:oe}),xe.set(oe)},lo=()=>(Nn(Ct),K.log("get debug text data"),$c(z,Ve,Ct)),Wo=()=>(Nn(Ct),JSON.stringify(ae.getFinishedSpans())),Ko=()=>(Nn(Ct),ef(z,Ve,Ct)),wo=()=>Xe,jo=()=>{re({message:"toggle chromecast"}),K.log("toggle chromecast"),z.toggleChromecast()},ko=I=>{if(Nn(Ct),z.info.isEnded$.getValue())return;let oe=!I;if(Je(Ct.playerPhase)==="ads"){re({message:`pause ads, internalCall: ${oe}`}),K.log("pause ads",{internalCall:oe}),$.pause();return}re({message:`pause video, internalCall: ${oe}`}),K.log("pause video",{internalCall:oe}),oe&&s?.onPause?.(),z.pause()},Go=I=>{Nn(Ct);let oe=!I;if(Je(Ct.playerPhase)==="ads"){re({message:`play ads, internalCall: ${oe}`}),K.log("play ads",{internalCall:oe}),$.play();return}re({message:`play video, internalCall: ${oe}`}),K.log("play video",{internalCall:oe}),oe&&s?.onPlay?.(),z.play()},So=(I,oe)=>{Nn(Ct),re({message:`first start, show ads: ${I}, internalCall: ${!oe}`}),K.log("first start",{showAds:I,external:oe}),I?xe.set("ads"):(xe.set("video"),oe?z.play():Ct.actions.internal.togglePlay())},ro=()=>(re({message:"getting time codes"}),f),Z=()=>{let I=ro();if(!I||[0,1].includes(I.length))return;let oe=z.info.position$.getValue();return I.find(Te=>Te.time>oe)},Rt=I=>{let oe=I;oe||(oe=Z());let Te=z.info.position$.getValue();K.log("seek to next episode",{currentTime:Te,...oe}),oe&&(re({message:"seek to next episode"}),tn(oe.time,bo.EPISODE,!0))},Cn=()=>{let I=ro();if(!I||[0,1].includes(I.length))return;let oe=z.info.position$.getValue(),Te=I.findIndex(ut=>ut.time>oe),Ke=Te===-1?I.length-2:Te-2;if(!(Ke<0))return I[Ke]},Vn=I=>{let oe=I;oe||(oe=Cn());let Te=z.info.position$.getValue();K.log("seek to prev episode",{currentTime:Te,...oe}),oe&&(re({message:"seek to prev episode"}),tn(oe.time,bo.EPISODE,!0))},Qo=()=>(re({message:"getting preview thumbs data"}),K.log("get preview thumbs data",{...p}),p),Co=async()=>{let I=Q?.isActive(),oe="none";Q?.isActive()?(oe="remove",await Q?.remove()):(oe="request",await Q?.request()),K.log("toggle picture in picture",{isActive:I,action:oe})},so=(I=-90)=>{K.log("rotate video",{alphaDiff:I}),_e.update(oe=>oe+I)},Qn=qe([]);E?.subscribe(I=>{let oe=[];for(let Te=0;Te<I.length;Te++){let{range:[Ke,ut],subjects:He}=I[Te];Te===0&&Ke!==0&&oe.push({time:0,text:"",interactive:!1,completed:!0}),oe.push({time:Ke/1e3,text:"",interactive:!0,completed:!He.length}),ut!==1/0&&oe.push({time:ut/1e3,text:"",interactive:!1,completed:!0})}Qn.set(oe)});let Yo=qe(!1);v?.subscribe(I=>{I&&Je(_t)&&li()});let ao=I=>{if(!b)return I;let oe=Je(Qn),Te=Je(di),ut=Je(Ot)/Te,He=oe.find(pt=>pt.interactive&&!pt.completed&&pt.time>ut);return typeof He?.time=="number"?Math.min(I,He.time-.05):I},Ul=()=>{Ct.ui.episodes.panelOpened$.set(!1)},Cl=()=>{K.log("destroy store"),clearTimeout(mt),clearTimeout(ie),Ye.unsubscribe(),Kt.unsubscribe(),z.destroy(),$.destroy(),ne?.destroy(),W?.destroy(),ke.unsubscribe(),dt?.disconnect(),dt=null},Ct={interfaceLanguage$:Qe,isCyrillicRelatedInterface$:je,initVideo:fe,videoId:i,isClip:n,playerPhase:x,vsid:Me,state:{positionExact$:kt,positionWithScrubbing$:Xn,duration$:di,playbackState$:St,isPlaying$:Lt,isLoaderVisible:Mi,bufferedProgress$:zt,isLive$:Dt,canChangePlaybackSpeed$:Fi,isActiveLive$:Wi,isOldestAvailableLive$:Vi,isRewindableLive$:Ki,isEnded$:Gt,muted$:Li,volume$:Jt,trafficSavingEnabled$:sn,autoQualityLimitingAvailable$:zi,availableVideoStreams$:Qt,availableAudioStreams$:Ci,videoStream$:mi,audioStream$:Pi,currentQuality$:Qi,isAutoQualityEnabled$:$t,availableQualities$:an,currentPlaybackRate$:Bi,availablePlaybackRates$:ei,currentSubtitle$:Vt,availableSubtitlesList$:Ti,currentSubtitleCaptions$:et,isAutoSubtitleCaptionVisible$:Ii,chromecastState$:vi,chromecastDeviceName$:ui,chromecastConnected$:ji,currentFormat$:ci,throughputEstimation$:yi,videoBitrate$:wi,videoSize$:ki,errorLog$:at,crashed$:Fe,isAudioAvailable$:Hi,isAudioDisabled:!!r,canDownload:X.features.download&&!!a,availableSources$:We,hasMpegSources$:Ji,isInteractive:b,showInteractiveGraph:X.features.interactiveGraph,showSeekToInteractive:X.features.seekToInteractive,showPlayPrevChapter:X.features.interactivePlayPrevChapter,showInteractiveTimeIndicator:X.features.interactiveTimeIndicator&&!!Je(Qn).length,interactiveEpisodes$:Qn,isInteractiveTime$:v?vt(v):qe(!1),graphIsOpened$:qe(!1),isInteractiveExpectation$:Yo,hasInteractiveBranches:T,playPrevChapterDisabledTooltip:Y,looped$:pi,loadedMetadata$:qe(!1)},ui:{controlsVisible:qe(!1),touched:qe(!1),controls:{prevButton:qe(void 0),playButton:qe(void 0),replayButton:qe(void 0),nextButton:qe(void 0),playPrevChapterButton:qe(void 0),seekToInteractiveButton:qe(void 0),interactiveGraphButton:qe(void 0),liveButton:qe(void 0),time:qe(void 0),episodes:qe(void 0),volume:qe(void 0),subtitles:qe(void 0),settings:qe(void 0),context:qe(void 0),chromecast:qe(void 0),pip:qe(void 0),fullscreen:qe(void 0),vkLogo:qe(void 0),interactiveTimeIndicator:qe(void 0),timeline:qe(void 0),additionalButtons:q.length?q.reduce(I=>[...I,qe(void 0)],[]):[],disabledControls$:De},modals:{hotKeyMap:{show:qe(!1),data:qe({title:"",closeBtnText:"",groups:[]})}},isFullscreen:Ue,rotateAlpha:_e,isAutoplay:qe(!1),debugPanelVisible:qe(!1),episodes:{panelOpened$:qe(!1),openedByKeyboard$:qe(!1)},contextMenu:{visible$:qe(!1),btnRef$:qe(void 0),openedByBtnKeyboard$:qe(!1),openedByHotKey$:qe(!1),lastActiveElem$:qe(void 0),showContextMenuBtn$:qe(!1),position$:qe({top:0,left:0})},playerSize:no,isMobile:Gn,mobileNotReportControlHidden$:wl,mobileUnmuteButtonExpanded:qe(!1),mobileUnmuteButtonVisible:qe(!1),icon3DVideoVisible:qe(!1),settingsMenuVisible:qe(!1),settingsMenuOpenedByKeyboard:qe(!1),scrubbingInProgress:_t,is3DVideo:qe(!1),isPictureInPictureActive$:Xt,pictureInPictureType$:Rn(ce),currentGridType$:ee,additionalButtons$:yl,interactiveHideMobileControls:qe(!1),overlayContainer$:qe(void 0),startedByKeyboard$:qe(!1)},ads:{position:qe(0),duration:qe(0),playbackState:qe("inactive"),canSkip:qe(!1),secondsToWatchBeforeSkip:qe(0),postrollPassed:qe(!1)},webApi:{pictureInPictureApi:Q,annotationsApi:te},actions:{internal:{preload:fn,firstStart:I=>So(I,!1),pause:()=>ko(!1),togglePlay:dn,toggleMuted:xi,toggleSettingsMenu:Di,openSettingsMenu:ln,closeSettingsMenu:qi,setVolume:Zt,setVideoStream:Yt,setAudioStream:Ft,setQuality:yn,setTrafficSavingEnabled:I=>rn(I),setPlaybackRate:mn,incrementPlaybackRate:pn,decrementPlaybackRate:en,setSubtitle:_i,toggleSubtitle:wn,togglePictureInPicture:Co,startScrubbing:Ni,progressScrubbing:_n,completeScrubbing:On,toggleChromecast:jo,switchToActiveLive:kl,switchFromAdsToVideo:Uo,switchFromVideoToAds:vo,skipAd:Sl,setLiveWaitingStart:yo,setLiveWaitingRecover:Jn,setLiveWaitingRecord:oo,getDebugTextData:lo,getTraceTextData:Wo,getDebugPanelData:Ko,getVideoElement:wo,seekTime:(I,oe,Te)=>tn(I,oe,Te),clearDelayedBufferingCheckTimeout:Ui,seekEpisodeStartTime:En,seekToPercent:Ht,getNextEpisode:Z,seekToNextEpisode:Rt,getPrevEpisode:Cn,seekToPrevEpisode:Vn,startLogging:qt,stopLogging:Tt,startCameraManualRotation:ai,stopCameraManualRotation:rt,moveCameraFocusPX:wt,holdCamera:we,releaseCamera:gt,getVideoEpisodes:ro,getPreviewThumbsData:Qo,downloadVideo:cn,addLanguage:As,setLanguage:ft,nextMovie:nt,videoRotate:so,correctSeekTimeToInteractive:ao,replayInteractive:y,setLooped:hn},external:{firstStart:I=>So(I,!0),play:()=>Go(!0),pause:()=>ko(!0),seekTime:I=>An(I),seekEpisodeStartTime:I=>kn(I),setPlaybackRate:I=>Mn(I),setAutoQualityLimits:I=>Ln(I),setMuted:I=>$i(I,!0),setVolume:I=>Zt(I,I,!0),returnFocusToEpisodes:Ul}},callbacks:s,setUiCallbacks:I=>{Se={...I}},getAdmanWrapper:()=>$,getLogger:()=>G,destroy:Cl};return Ct};var Zr=(t,e,i,n)=>{if(!t)return;let o=["tooltipPointerOffsetX","disabledControls$","additionalButtons"],l=["interactiveTimeIndicator"],r=t.getBoundingClientRect();for(let[a,s]of Object.entries(e))if(!["tooltipPointerOffsetX","disabledControls$","additionalButtons"].includes(a)){let u=i[a]?.getBoundingClientRect(),f=(n||l.includes(a))&&!!u&&!!(u.right-u.left);s.set({positionStartX:0,positionEndX:0,left:f?Math.round(u.left-r.left):0,right:f?Math.round(u.right-r.left):0,top:f?Math.round(u.top-r.top):0,bottom:f?Math.round(u.bottom-r.top):0,isDisplayed:f})}};var Xr=async(t,e,i)=>{await Un(),e&&i&&(i.focus(),t.set(!1))};function t3(t){let e,i,n,o=t[2].default,l=Ie(o,t,t[1],null),r=[{xmlns:"http://www.w3.org/2000/svg"},{width:"24"},{height:"24"},{fill:"none"},{"aria-hidden":"true"},{"data-testid":"dots-icon"},{role:"img"},t[0]],a={};for(let s=0;s<r.length;s+=1)a=ue(a,r[s]);return{c(){e=R("svg"),l&&l.c(),i=R("path"),c(i,"fill","#fff"),c(i,"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"),ye(e,a)},m(s,u){S(s,e,u),l&&l.m(e,null),m(e,i),n=!0},p(s,[u]){l&&l.p&&(!n||u&2)&&Ae(l,o,s,s[1],n?Ee(o,s[1],u,null):Le(s[1]),null),ye(e,a=Be(r,[{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(l,s),n=!0)},o(s){_(l,s),n=!1},d(s){s&&k(e),l&&l.d(s)}}}function i3(t,e,i){let{$$slots:n={},$$scope:o}=e;return t.$$set=l=>{i(0,e=ue(ue({},e),ve(l))),"$$scope"in l&&i(1,o=l.$$scope)},e=ve(e),[e,o,n]}var Iu=class extends H{constructor(e){super(),U(this,e,i3,t3,F,{})}},mm=Iu;function n3(t){let e,i;return e=new mm({}),{c(){M(e.$$.fragment)},m(n,o){A(e,n,o),i=!0},i(n){i||(d(e.$$.fragment,n),i=!0)},o(n){_(e.$$.fragment,n),i=!1},d(n){L(e,n)}}}function o3(t){let e,i,n;function o(r){t[8](r)}let l={className:t[3]?"opened":"",testId:"btn-context-menu",disabled:t[0],ariaLabel:t[1],click:t[5],focus:t[6],blur:t[7],ariaExpanded:t[3],$$slots:{default:[n3]},$$scope:{ctx:t}};return t[2]!==void 0&&(l.ref=t[2]),e=new ht({props:l}),be.push(()=>Oe(e,"ref",o)),{c(){M(e.$$.fragment)},m(r,a){A(e,r,a),n=!0},p(r,[a]){let s={};a&8&&(s.className=r[3]?"opened":""),a&1&&(s.disabled=r[0]),a&2&&(s.ariaLabel=r[1]),a&8&&(s.ariaExpanded=r[3]),a&16384&&(s.$$scope={dirty:a,ctx:r}),!i&&a&4&&(i=!0,s.ref=r[2],Ne(()=>i=!1)),e.$set(s)},i(r){n||(d(e.$$.fragment,r),n=!0)},o(r){_(e.$$.fragment,r),n=!1},d(r){L(e,r)}}}function l3(t,e,i){let n,{disabled:o=!1}=e,{ariaLabel:l=""}=e,r=it(),a=r.ui.contextMenu.visible$;D(t,a,E=>i(3,n=E));let s=r.ui.contextMenu.openedByBtnKeyboard$,u=r.ui.contextMenu.showContextMenuBtn$,f=r.ui.contextMenu.position$,p=r.ui.contextMenu.btnRef$,h,w=E=>{let v=rl(E),y=Kf(h);f.set(y),s.set(v),a.set(!n)},g=()=>{u.set(!0)},C=()=>{u.set(!1)};function b(E){h=E,i(2,h)}return t.$$set=E=>{"disabled"in E&&i(0,o=E.disabled),"ariaLabel"in E&&i(1,l=E.ariaLabel)},t.$$.update=()=>{t.$$.dirty&4&&h&&p.set(h)},[o,l,h,n,a,w,g,C,b]}var Eu=class extends H{constructor(e){super(),U(this,e,l3,o3,F,{disabled:0,ariaLabel:1})}},pm=Eu;function r3(t){Pe(t,"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 s3(t){let e,i;return e=new Ir({props:{completed:!0}}),{c(){M(e.$$.fragment)},m(n,o){A(e,n,o),i=!0},p:Ce,i(n){i||(d(e.$$.fragment,n),i=!0)},o(n){_(e.$$.fragment,n),i=!1},d(n){L(e,n)}}}function a3(t){let e,i,n,o,l,r,a,s,u,f;function p(w){t[22](w)}let h={tooltipContent:O("tooltip_interactive_interaction_time_indicator"),tooltipActive:t[5],initialTranslateYPx:72,tooltipPlacement:"bottom",onTooltipVisibilityChange:t[13],$$slots:{default:[s3]},$$scope:{ctx:t}};return t[0]!==void 0&&(h.ref=t[0]),i=new At({props:h}),be.push(()=>Oe(i,"ref",p)),i.$on("click",t[14]),{c(){e=P("div"),M(i.$$.fragment),o=V(),l=P("div"),r=V(),a=P("div"),c(l,"class","ref-block svelte-17imlp9"),B(l,"hidden",t[1]),c(a,"class","pulse svelte-17imlp9"),B(a,"paused",t[4]),c(e,"class","interactive-episode-icon-animated svelte-17imlp9"),B(e,"mobile",t[2]),B(e,"fullscreen",t[6]),B(e,"invisible",t[1])},m(w,g){S(w,e,g),A(i,e,null),m(e,o),m(e,l),t[23](l),m(e,r),m(e,a),t[24](a),s=!0,u||(f=[he(e,"mousemove",st(t[21])),he(e,"mouseleave",t[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],Ne(()=>n=!1)),i.$set(C),(!s||g[0]&2)&&B(l,"hidden",w[1]),(!s||g[0]&16)&&B(a,"paused",w[4]),(!s||g[0]&4)&&B(e,"mobile",w[2]),(!s||g[0]&64)&&B(e,"fullscreen",w[6]),(!s||g[0]&2)&&B(e,"invisible",w[1])},i(w){s||(d(i.$$.fragment,w),s=!0)},o(w){_(i.$$.fragment,w),s=!1},d(w){w&&k(e),L(i),t[23](null),t[24](null),u=!1,tt(f)}}}function u3(t,e,i){let n,o,l,r,a,s,{ref:u=void 0}=e,f,p=it(),h=Bn(),{interactiveControlsOpacity$:w}=h;D(t,w,Q=>i(18,o=Q));let g=p.ui.isMobile;D(t,g,Q=>i(2,a=Q));let C=p.ui.isFullscreen;D(t,C,Q=>i(6,s=Q));let b=p.state.isInteractiveTime$;D(t,b,Q=>i(19,l=Q));let E=h.showInteractiveTimeIndicatorTooltip$;D(t,E,Q=>i(17,n=Q));let v=p.ui.controlsVisible;D(t,v,Q=>i(20,r=Q));let y=p.callbacks?.onInteractiveTimeIndicatorClick,T,Y,q,N=()=>{i(4,q=!0)},ne=()=>{ge(),f?.addEventListener("animationiteration",N,{once:!0})},ge=()=>{i(4,q=!1),f?.removeEventListener("animationiteration",N)},j=Q=>{E.set(Q)},X,ae=()=>{Y||(E.set(!0),y?.())};Hn(()=>{E.clearTimeout(),ge()});let K=()=>{E.set(!1)};function z(Q){Pn.call(this,t,Q)}function G(Q){u=Q,i(0,u)}function $(Q){be[Q?"unshift":"push"](()=>{u=Q,i(0,u)})}function W(Q){be[Q?"unshift":"push"](()=>{f=Q,i(3,f)})}return t.$$set=Q=>{"ref"in Q&&i(0,u=Q.ref)},t.$$.update=()=>{t.$$.dirty[0]&1048580&&i(16,T=!a&&r),t.$$.dirty[0]&851968&&i(1,Y=!l||!!o||T),t.$$.dirty[0]&2&&i(4,q=Y),t.$$.dirty[0]&131074&&i(5,X=n&&!Y),t.$$.dirty[0]&131072&&(n?ne():ge())},[u,Y,a,f,q,X,s,w,g,C,b,E,v,j,ae,K,T,n,o,l,r,z,G,$,W]}var Au=class extends H{constructor(e){super(),U(this,e,u3,a3,F,{ref:0},r3,[-1,-1])}},Jr=Au;function d3(t){Pe(t,"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 hm(t,e,i){let n=t.slice();return n[210]=e[i].iconUrl,n[211]=e[i].ariaLabel,n[212]=e[i].testId,n[213]=e[i].onClick,n[214]=e[i].tooltip,n}function gm(t){let e,i,n;function o(r){t[174](r)}let l={disabled:!t[9],tooltipContent:O("tooltip_previous"),$$slots:{default:[m3]},$$scope:{ctx:t}};return t[23].prevButton!==void 0&&(l.ref=t[23].prevButton),e=new At({props:l}),be.push(()=>Oe(e,"ref",o)),{c(){M(e.$$.fragment)},m(r,a){A(e,r,a),n=!0},p(r,a){let s={};a[0]&512&&(s.disabled=!r[9]),a[0]&4608|a[7]&1&&(s.$$scope={dirty:a,ctx:r}),!i&&a[0]&8388608&&(i=!0,s.ref=r[23].prevButton,Ne(()=>i=!1)),e.$set(s)},i(r){n||(d(e.$$.fragment,r),n=!0)},o(r){_(e.$$.fragment,r),n=!1},d(r){L(e,r)}}}function m3(t){let e,i;return e=new _l({props:{click:t[12],type:"prev",disabled:!t[9],isMobile:!1}}),{c(){M(e.$$.fragment)},m(n,o){A(e,n,o),i=!0},p(n,o){let l={};o[0]&4096&&(l.click=n[12]),o[0]&512&&(l.disabled=!n[9]),e.$set(l)},i(n){i||(d(e.$$.fragment,n),i=!0)},o(n){_(e.$$.fragment,n),i=!1},d(n){L(e,n)}}}function bm(t){let e,i,n;function o(r){t[175](r)}let l={disabled:t[74],tooltipContent:O("tooltip_restart"),$$slots:{default:[p3]},$$scope:{ctx:t}};return t[23].replayButton!==void 0&&(l.ref=t[23].replayButton),e=new At({props:l}),be.push(()=>Oe(e,"ref",o)),{c(){M(e.$$.fragment)},m(r,a){A(e,r,a),n=!0},p(r,a){let s={};a[2]&4096&&(s.disabled=r[74]),a[2]&4096|a[7]&1&&(s.$$scope={dirty:a,ctx:r}),!i&&a[0]&8388608&&(i=!0,s.ref=r[23].replayButton,Ne(()=>i=!1)),e.$set(s)},i(r){n||(d(e.$$.fragment,r),n=!0)},o(r){_(e.$$.fragment,r),n=!1},d(r){L(e,r)}}}function p3(t){let e,i;return e=new Bl({props:{click:t[128],disabled:t[74]}}),{c(){M(e.$$.fragment)},m(n,o){A(e,n,o),i=!0},p(n,o){let l={};o[2]&4096&&(l.disabled=n[74]),e.$set(l)},i(n){i||(d(e.$$.fragment,n),i=!0)},o(n){_(e.$$.fragment,n),i=!1},d(n){L(e,n)}}}function vm(t){let e,i,n;function o(r){t[177](r)}let l={tooltipContent:t[47],disabled:t[75],$$slots:{default:[_3]},$$scope:{ctx:t}};return t[23].playButton!==void 0&&(l.ref=t[23].playButton),e=new At({props:l}),be.push(()=>Oe(e,"ref",o)),{c(){M(e.$$.fragment)},m(r,a){A(e,r,a),n=!0},p(r,a){let s={};a[1]&65536&&(s.tooltipContent=r[47]),a[2]&8192&&(s.disabled=r[75]),a[0]&67108864|a[1]&8|a[2]&8192|a[7]&1&&(s.$$scope={dirty:a,ctx:r}),!i&&a[0]&8388608&&(i=!0,s.ref=r[23].playButton,Ne(()=>i=!1)),e.$set(s)},i(r){n||(d(e.$$.fragment,r),n=!0)},o(r){_(e.$$.fragment,r),n=!1},d(r){L(e,r)}}}function _3(t){let e,i,n;function o(r){t[176](r)}let l={isMobile:!1,isPlaying:t[34],click:t[85],disabled:t[75]};return t[26]!==void 0&&(l.ref=t[26]),e=new Rl({props:l}),be.push(()=>Oe(e,"ref",o)),{c(){M(e.$$.fragment)},m(r,a){A(e,r,a),n=!0},p(r,a){let s={};a[1]&8&&(s.isPlaying=r[34]),a[2]&8192&&(s.disabled=r[75]),!i&&a[0]&67108864&&(i=!0,s.ref=r[26],Ne(()=>i=!1)),e.$set(s)},i(r){n||(d(e.$$.fragment,r),n=!0)},o(r){_(e.$$.fragment,r),n=!1},d(r){L(e,r)}}}function ym(t){let e,i,n;function o(r){t[178](r)}let l={disabled:!t[8],tooltipContent:O("tooltip_next"),$$slots:{default:[h3]},$$scope:{ctx:t}};return t[23].nextButton!==void 0&&(l.ref=t[23].nextButton),e=new At({props:l}),be.push(()=>Oe(e,"ref",o)),{c(){M(e.$$.fragment)},m(r,a){A(e,r,a),n=!0},p(r,a){let s={};a[0]&256&&(s.disabled=!r[8]),a[0]&2304|a[7]&1&&(s.$$scope={dirty:a,ctx:r}),!i&&a[0]&8388608&&(i=!0,s.ref=r[23].nextButton,Ne(()=>i=!1)),e.$set(s)},i(r){n||(d(e.$$.fragment,r),n=!0)},o(r){_(e.$$.fragment,r),n=!1},d(r){L(e,r)}}}function h3(t){let e,i;return e=new _l({props:{click:t[11],type:"next",disabled:!t[8],isMobile:!1}}),{c(){M(e.$$.fragment)},m(n,o){A(e,n,o),i=!0},p(n,o){let l={};o[0]&2048&&(l.click=n[11]),o[0]&256&&(l.disabled=!n[8]),e.$set(l)},i(n){i||(d(e.$$.fragment,n),i=!0)},o(n){_(e.$$.fragment,n),i=!1},d(n){L(e,n)}}}function g3(t){let e,i,n,o,l=t[121]&&b3(t),r=t[120]&&y3(t),a=t[119]&&k3(t);return{c(){l&&l.c(),e=V(),r&&r.c(),i=V(),a&&a.c(),n=ct()},m(s,u){l&&l.m(s,u),S(s,e,u),r&&r.m(s,u),S(s,i,u),a&&a.m(s,u),S(s,n,u),o=!0},p(s,u){s[121]&&l.p(s,u),s[120]&&r.p(s,u),s[119]&&a.p(s,u)},i(s){o||(d(l),d(r),d(a),o=!0)},o(s){_(l),_(r),_(a),o=!1},d(s){s&&(k(e),k(i),k(n)),l&&l.d(s),r&&r.d(s),a&&a.d(s)}}}function b3(t){let e,i,n;function o(r){t[179](r)}let l={disabled:t[73],tooltipContent:O("tooltip_interactive_go_back"),disabledTooltipContent:O(t[124]),$$slots:{default:[v3]},$$scope:{ctx:t}};return t[23].playPrevChapterButton!==void 0&&(l.ref=t[23].playPrevChapterButton),e=new At({props:l}),be.push(()=>Oe(e,"ref",o)),{c(){M(e.$$.fragment)},m(r,a){A(e,r,a),n=!0},p(r,a){let s={};a[2]&2048&&(s.disabled=r[73]),a[0]&131072|a[2]&2048|a[7]&1&&(s.$$scope={dirty:a,ctx:r}),!i&&a[0]&8388608&&(i=!0,s.ref=r[23].playPrevChapterButton,Ne(()=>i=!1)),e.$set(s)},i(r){n||(d(e.$$.fragment,r),n=!0)},o(r){_(e.$$.fragment,r),n=!1},d(r){L(e,r)}}}function v3(t){let e,i;return e=new Hr({props:{disabled:t[73],click:t[17]}}),{c(){M(e.$$.fragment)},m(n,o){A(e,n,o),i=!0},p(n,o){let l={};o[2]&2048&&(l.disabled=n[73]),o[0]&131072&&(l.click=n[17]),e.$set(l)},i(n){i||(d(e.$$.fragment,n),i=!0)},o(n){_(e.$$.fragment,n),i=!1},d(n){L(e,n)}}}function y3(t){let e,i,n;function o(r){t[180](r)}let l={disabled:t[76],tooltipContent:O("tooltip_interactive_seek"),disabledTooltipContent:O(t[78]),$$slots:{default:[w3]},$$scope:{ctx:t}};return t[23].seekToInteractiveButton!==void 0&&(l.ref=t[23].seekToInteractiveButton),e=new At({props:l}),be.push(()=>Oe(e,"ref",o)),{c(){M(e.$$.fragment)},m(r,a){A(e,r,a),n=!0},p(r,a){let s={};a[2]&16384&&(s.disabled=r[76]),a[2]&65536&&(s.disabledTooltipContent=O(r[78])),a[0]&32768|a[2]&16384|a[7]&1&&(s.$$scope={dirty:a,ctx:r}),!i&&a[0]&8388608&&(i=!0,s.ref=r[23].seekToInteractiveButton,Ne(()=>i=!1)),e.$set(s)},i(r){n||(d(e.$$.fragment,r),n=!0)},o(r){_(e.$$.fragment,r),n=!1},d(r){L(e,r)}}}function w3(t){let e,i;return e=new Or({props:{disabled:t[76],click:t[15]}}),{c(){M(e.$$.fragment)},m(n,o){A(e,n,o),i=!0},p(n,o){let l={};o[2]&16384&&(l.disabled=n[76]),o[0]&32768&&(l.click=n[15]),e.$set(l)},i(n){i||(d(e.$$.fragment,n),i=!0)},o(n){_(e.$$.fragment,n),i=!1},d(n){L(e,n)}}}function k3(t){let e,i,n;function o(r){t[181](r)}let l={tooltipContent:t[48],disabled:t[77],$$slots:{default:[S3]},$$scope:{ctx:t}};return t[23].interactiveGraphButton!==void 0&&(l.ref=t[23].interactiveGraphButton),e=new At({props:l}),be.push(()=>Oe(e,"ref",o)),{c(){M(e.$$.fragment)},m(r,a){A(e,r,a),n=!0},p(r,a){let s={};a[1]&131072&&(s.tooltipContent=r[48]),a[2]&32768&&(s.disabled=r[77]),a[0]&65536|a[1]&1|a[2]&32768|a[7]&1&&(s.$$scope={dirty:a,ctx:r}),!i&&a[0]&8388608&&(i=!0,s.ref=r[23].interactiveGraphButton,Ne(()=>i=!1)),e.$set(s)},i(r){n||(d(e.$$.fragment,r),n=!0)},o(r){_(e.$$.fragment,r),n=!1},d(r){L(e,r)}}}function S3(t){let e,i;return e=new Fr({props:{click:t[16],graphIsOpened:t[31],disabled:t[77]}}),{c(){M(e.$$.fragment)},m(n,o){A(e,n,o),i=!0},p(n,o){let l={};o[0]&65536&&(l.click=n[16]),o[1]&1&&(l.graphIsOpened=n[31]),o[2]&32768&&(l.disabled=n[77]),e.$set(l)},i(n){i||(d(e.$$.fragment,n),i=!0)},o(n){_(e.$$.fragment,n),i=!1},d(n){L(e,n)}}}function wm(t){let e,i,n;function o(r){t[182](r)}let l={tooltipContent:t[50],$$slots:{default:[C3]},$$scope:{ctx:t}};return t[23].liveButton!==void 0&&(l.ref=t[23].liveButton),e=new At({props:l}),be.push(()=>Oe(e,"ref",o)),{c(){M(e.$$.fragment)},m(r,a){A(e,r,a),n=!0},p(r,a){let s={};a[1]&524288&&(s.tooltipContent=r[50]),a[0]&2097152|a[1]&524288|a[7]&1&&(s.$$scope={dirty:a,ctx:r}),!i&&a[0]&8388608&&(i=!0,s.ref=r[23].liveButton,Ne(()=>i=!1)),e.$set(s)},i(r){n||(d(e.$$.fragment,r),n=!0)},o(r){_(e.$$.fragment,r),n=!1},d(r){L(e,r)}}}function C3(t){let e,i;return e=new Rr({props:{isActiveLive:t[21],isMobile:!1,ariaLabel:t[50]}}),{c(){M(e.$$.fragment)},m(n,o){A(e,n,o),i=!0},p(n,o){let l={};o[0]&2097152&&(l.isActiveLive=n[21]),o[1]&524288&&(l.ariaLabel=n[50]),e.$set(l)},i(n){i||(d(e.$$.fragment,n),i=!0)},o(n){_(e.$$.fragment,n),i=!1},d(n){L(e,n)}}}function km(t){let e,i,n;function o(r){t[183](r)}let l={isMobile:!1,showDuration:t[55],position:t[4]?t[79]:t[80],duration:t[4]?t[81]:t[82]};return t[23].time!==void 0&&(l.ref=t[23].time),e=new Pr({props:l}),be.push(()=>Oe(e,"ref",o)),{c(){M(e.$$.fragment)},m(r,a){A(e,r,a),n=!0},p(r,a){let s={};a[1]&16777216&&(s.showDuration=r[55]),a[0]&16|a[2]&393216&&(s.position=r[4]?r[79]:r[80]),a[0]&16|a[2]&1572864&&(s.duration=r[4]?r[81]:r[82]),!i&&a[0]&8388608&&(i=!0,s.ref=r[23].time,Ne(()=>i=!1)),e.$set(s)},i(r){n||(d(e.$$.fragment,r),n=!0)},o(r){_(e.$$.fragment,r),n=!1},d(r){L(e,r)}}}function Sm(t){let e,i;return e=new Nr({props:{position:t[80],duration:t[82],timeCodes:t[101]}}),{c(){M(e.$$.fragment)},m(n,o){A(e,n,o),i=!0},p(n,o){let l={};o[2]&262144&&(l.position=n[80]),o[2]&1048576&&(l.duration=n[82]),e.$set(l)},i(n){i||(d(e.$$.fragment,n),i=!0)},o(n){_(e.$$.fragment,n),i=!1},d(n){L(e,n)}}}function P3(t){let e,i,n=t[20]&&Sm(t);return{c(){n&&n.c(),e=ct()},m(o,l){n&&n.m(o,l),S(o,e,l),i=!0},p(o,l){o[20]?n?(n.p(o,l),l[0]&1048576&&d(n,1)):(n=Sm(o),n.c(),d(n,1),n.m(e.parentNode,e)):n&&(me(),_(n,1,1,()=>{n=null}),pe())},i(o){i||(d(n),i=!0)},o(o){_(n),i=!1},d(o){o&&k(e),n&&n.d(o)}}}function T3(t){let e,i;return e=new Ur({props:{iconUrl:t[210],ariaLabel:t[211]??t[214],testId:t[212],onClick:t[213]}}),{c(){M(e.$$.fragment)},m(n,o){A(e,n,o),i=!0},p(n,o){let l={};o[0]&268435456&&(l.iconUrl=n[210]),o[0]&268435456&&(l.ariaLabel=n[211]??n[214]),o[0]&268435456&&(l.testId=n[212]),o[0]&268435456&&(l.onClick=n[213]),e.$set(l)},i(n){i||(d(e.$$.fragment,n),i=!0)},o(n){_(e.$$.fragment,n),i=!1},d(n){L(e,n)}}}function Cm(t){let e,i;return e=new At({props:{tooltipContent:t[214],width:40,$$slots:{default:[T3]},$$scope:{ctx:t}}}),{c(){M(e.$$.fragment)},m(n,o){A(e,n,o),i=!0},p(n,o){let l={};o[0]&268435456&&(l.tooltipContent=n[214]),o[0]&268435456|o[7]&1&&(l.$$scope={dirty:o,ctx:n}),e.$set(l)},i(n){i||(d(e.$$.fragment,n),i=!0)},o(n){_(e.$$.fragment,n),i=!1},d(n){L(e,n)}}}function Pm(t){let e,i,n;function o(r){t[186](r)}let l={disabled:!t[6],tooltipContent:t[51],disabledTooltipContent:"",$$slots:{default:[I3]},$$scope:{ctx:t}};return t[23].vkLogo!==void 0&&(l.ref=t[23].vkLogo),e=new At({props:l}),be.push(()=>Oe(e,"ref",o)),{c(){M(e.$$.fragment)},m(r,a){A(e,r,a),n=!0},p(r,a){let s={};a[0]&64&&(s.disabled=!r[6]),a[1]&1048576&&(s.tooltipContent=r[51]),a[0]&192|a[7]&1&&(s.$$scope={dirty:a,ctx:r}),!i&&a[0]&8388608&&(i=!0,s.ref=r[23].vkLogo,Ne(()=>i=!1)),e.$set(s)},i(r){n||(d(e.$$.fragment,r),n=!0)},o(r){_(e.$$.fragment,r),n=!1},d(r){L(e,r)}}}function I3(t){let e,i;return e=new Mr({props:{click:t[86],targetUrl:t[7],logoClickable:t[6]}}),{c(){M(e.$$.fragment)},m(n,o){A(e,n,o),i=!0},p(n,o){let l={};o[0]&128&&(l.targetUrl=n[7]),o[0]&64&&(l.logoClickable=n[6]),e.$set(l)},i(n){i||(d(e.$$.fragment,n),i=!0)},o(n){_(e.$$.fragment,n),i=!1},d(n){L(e,n)}}}function E3(t){let e,i;return e=new N1({props:{click:t[127]}}),{c(){M(e.$$.fragment)},m(n,o){A(e,n,o),i=!0},p:Ce,i(n){i||(d(e.$$.fragment,n),i=!0)},o(n){_(e.$$.fragment,n),i=!1},d(n){L(e,n)}}}function Tm(t){let e,i,n;function o(r){t[188](r)}let l={tooltipContent:t[52],$$slots:{default:[A3]},$$scope:{ctx:t}};return t[23].subtitles!==void 0&&(l.ref=t[23].subtitles),e=new At({props:l}),be.push(()=>Oe(e,"ref",o)),{c(){M(e.$$.fragment)},m(r,a){A(e,r,a),n=!0},p(r,a){let s={};a[1]&2097152&&(s.tooltipContent=r[52]),a[0]&262144|a[7]&1&&(s.$$scope={dirty:a,ctx:r}),!i&&a[0]&8388608&&(i=!0,s.ref=r[23].subtitles,Ne(()=>i=!1)),e.$set(s)},i(r){n||(d(e.$$.fragment,r),n=!0)},o(r){_(e.$$.fragment,r),n=!1},d(r){L(e,r)}}}function A3(t){let e,i;return e=new k1({props:{isSubtitlesEnabled:t[18],click:t[87]}}),{c(){M(e.$$.fragment)},m(n,o){A(e,n,o),i=!0},p(n,o){let l={};o[0]&262144&&(l.isSubtitlesEnabled=n[18]),e.$set(l)},i(n){i||(d(e.$$.fragment,n),i=!0)},o(n){_(e.$$.fragment,n),i=!1},d(n){L(e,n)}}}function Im(t){let e,i,n,o;function l(a){t[189](a)}let r={supportLink:t[10],playerControlsHeight:t[46]?.clientHeight,returnFocus:t[14]};return t[24]!==void 0&&(r.ref=t[24]),i=new Cr({props:r}),be.push(()=>Oe(i,"ref",l)),{c(){e=P("div"),M(i.$$.fragment),c(e,"class","settings-menu svelte-ips4nw")},m(a,s){S(a,e,s),A(i,e,null),o=!0},p(a,s){let u={};s[0]&1024&&(u.supportLink=a[10]),s[1]&32768&&(u.playerControlsHeight=a[46]?.clientHeight),s[0]&16384&&(u.returnFocus=a[14]),!n&&s[0]&16777216&&(n=!0,u.ref=a[24],Ne(()=>n=!1)),i.$set(u)},i(a){o||(d(i.$$.fragment,a),o=!0)},o(a){_(i.$$.fragment,a),o=!1},d(a){a&&k(e),L(i)}}}function Em(t){let e,i,n;function o(r){t[191](r)}let l={tooltipContent:t[27]?void 0:O("tooltip_settings_off"),$$slots:{default:[L3]},$$scope:{ctx:t}};return t[23].settings!==void 0&&(l.ref=t[23].settings),e=new At({props:l}),be.push(()=>Oe(e,"ref",o)),{c(){M(e.$$.fragment)},m(r,a){A(e,r,a),n=!0},p(r,a){let s={};a[0]&134217728&&(s.tooltipContent=r[27]?void 0:O("tooltip_settings_off")),a[0]&33554432|a[7]&1&&(s.$$scope={dirty:a,ctx:r}),!i&&a[0]&8388608&&(i=!0,s.ref=r[23].settings,Ne(()=>i=!1)),e.$set(s)},i(r){n||(d(e.$$.fragment,r),n=!0)},o(r){_(e.$$.fragment,r),n=!1},d(r){L(e,r)}}}function L3(t){let e,i,n;function o(r){t[190](r)}let l={};return t[25]!==void 0&&(l.ref=t[25]),e=new Ml({props:l}),be.push(()=>Oe(e,"ref",o)),{c(){M(e.$$.fragment)},m(r,a){A(e,r,a),n=!0},p(r,a){let s={};!i&&a[0]&33554432&&(i=!0,s.ref=r[25],Ne(()=>i=!1)),e.$set(s)},i(r){n||(d(e.$$.fragment,r),n=!0)},o(r){_(e.$$.fragment,r),n=!1},d(r){L(e,r)}}}function M3(t){let e,i,n;function o(r){t[192](r)}let l={className:t[41]?"":"out-of-view",tooltipContent:t[49],$$slots:{default:[V3]},$$scope:{ctx:t}};return t[23].context!==void 0&&(l.ref=t[23].context),e=new At({props:l}),be.push(()=>Oe(e,"ref",o)),{c(){M(e.$$.fragment)},m(r,a){A(e,r,a),n=!0},p(r,a){let s={};a[1]&1024&&(s.className=r[41]?"":"out-of-view"),a[1]&262144&&(s.tooltipContent=r[49]),a[1]&262144|a[7]&1&&(s.$$scope={dirty:a,ctx:r}),!i&&a[0]&8388608&&(i=!0,s.ref=r[23].context,Ne(()=>i=!1)),e.$set(s)},i(r){n||(d(e.$$.fragment,r),n=!0)},o(r){_(e.$$.fragment,r),n=!1},d(r){L(e,r)}}}function V3(t){let e,i;return e=new pm({props:{ariaLabel:t[49]}}),{c(){M(e.$$.fragment)},m(n,o){A(e,n,o),i=!0},p(n,o){let l={};o[1]&262144&&(l.ariaLabel=n[49]),e.$set(l)},i(n){i||(d(e.$$.fragment,n),i=!0)},o(n){_(e.$$.fragment,n),i=!1},d(n){L(e,n)}}}function Am(t){let e,i,n;function o(r){t[193](r)}let l={tooltipContent:t[53],$$slots:{default:[R3]},$$scope:{ctx:t}};return t[23].fullscreen!==void 0&&(l.ref=t[23].fullscreen),e=new At({props:l}),be.push(()=>Oe(e,"ref",o)),{c(){M(e.$$.fragment)},m(r,a){A(e,r,a),n=!0},p(r,a){let s={};a[1]&4194304&&(s.tooltipContent=r[53]),a[0]&1073750016|a[7]&1&&(s.$$scope={dirty:a,ctx:r}),!i&&a[0]&8388608&&(i=!0,s.ref=r[23].fullscreen,Ne(()=>i=!1)),e.$set(s)},i(r){n||(d(e.$$.fragment,r),n=!0)},o(r){_(e.$$.fragment,r),n=!1},d(r){L(e,r)}}}function R3(t){let e,i;return e=new Ar({props:{click:t[13],isFullscreen:t[30]}}),{c(){M(e.$$.fragment)},m(n,o){A(e,n,o),i=!0},p(n,o){let l={};o[0]&8192&&(l.click=n[13]),o[0]&1073741824&&(l.isFullscreen=n[30]),e.$set(l)},i(n){i||(d(e.$$.fragment,n),i=!0)},o(n){_(e.$$.fragment,n),i=!1},d(n){L(e,n)}}}function Lm(t){let e,i,n;function o(r){t[194](r)}let l={tooltipContent:t[54],$$slots:{default:[B3]},$$scope:{ctx:t}};return t[23].chromecast!==void 0&&(l.ref=t[23].chromecast),e=new At({props:l}),be.push(()=>Oe(e,"ref",o)),{c(){M(e.$$.fragment)},m(r,a){A(e,r,a),n=!0},p(r,a){let s={};a[1]&8388608&&(s.tooltipContent=r[54]),a[0]&536870912|a[7]&1&&(s.$$scope={dirty:a,ctx:r}),!i&&a[0]&8388608&&(i=!0,s.ref=r[23].chromecast,Ne(()=>i=!1)),e.$set(s)},i(r){n||(d(e.$$.fragment,r),n=!0)},o(r){_(e.$$.fragment,r),n=!1},d(r){L(e,r)}}}function B3(t){let e,i;return e=new Vr({props:{isMobile:!1,state:t[29],click:t[126]}}),{c(){M(e.$$.fragment)},m(n,o){A(e,n,o),i=!0},p(n,o){let l={};o[0]&536870912&&(l.state=n[29]),e.$set(l)},i(n){i||(d(e.$$.fragment,n),i=!0)},o(n){_(e.$$.fragment,n),i=!1},d(n){L(e,n)}}}function q3(t){let e,i,n;function o(r){t[197](r)}let l={};return t[23].interactiveTimeIndicator!==void 0&&(l.ref=t[23].interactiveTimeIndicator),e=new Jr({props:l}),be.push(()=>Oe(e,"ref",o)),{c(){M(e.$$.fragment)},m(r,a){A(e,r,a),n=!0},p(r,a){let s={};!i&&a[0]&8388608&&(i=!0,s.ref=r[23].interactiveTimeIndicator,Ne(()=>i=!1)),e.$set(s)},i(r){n||(d(e.$$.fragment,r),n=!0)},o(r){_(e.$$.fragment,r),n=!1},d(r){L(e,r)}}}function D3(t){let e,i,n,o,l,r,a,s,u,f,p,h,w,g,C,b,E,v,y,T,Y,q,N,ne,ge,j,X,ae,K,z,G;function $(fe){t[173](fe)}let W={isHidden:!t[45],isAds:t[4],canRewindLive:t[5],isRewindableLive:t[32]};t[23].timeline!==void 0&&(W.ref=t[23].timeline),i=new Dr({props:W}),be.push(()=>Oe(i,"ref",$));let Q=t[38]&&gm(t),te=t[35]&&bm(t),re=t[36]&&vm(t),Ve=t[37]&&ym(t),Xe=t[117]&&g3(t),Se=!t[4]&&t[33]&&wm(t),Me=t[19]&&km(t);function Ue(fe){t[184](fe)}let $e={className:"w-max",disabled:!t[20],tooltipContent:O("tooltip_episodes"),$$slots:{default:[P3]},$$scope:{ctx:t}};t[23].episodes!==void 0&&($e.ref=t[23].episodes),g=new At({props:$e}),be.push(()=>Oe(g,"ref",Ue));let ce=Pt(t[28]),_e=[];for(let fe=0;fe<ce.length;fe+=1)_e[fe]=Cm(hm(t,ce,fe));let at=fe=>_(_e[fe],1,1,()=>{_e[fe]=null}),ke=t[43]&&!t[4]&&Pm(t);function Fe(fe){t[187](fe)}let ft={$$slots:{default:[E3]},$$scope:{ctx:t}};t[23].volume!==void 0&&(ft.ref=t[23].volume),Y=new At({props:ft}),be.push(()=>Oe(Y,"ref",Fe));let Qe=t[40]&&Tm(t),je=!t[83]&&!t[4]&&Im(t),Ze=t[42]&&!t[4]&&Em(t),xe=t[84].features.contextMenuButton&&M3(t),x=t[44]&&Am(t),De=t[39]&&Lm(t),ze=t[122]&&q3(t);return{c(){e=P("div"),M(i.$$.fragment),o=V(),l=P("div"),r=P("div"),Q&&Q.c(),a=V(),te&&te.c(),s=V(),re&&re.c(),u=V(),Ve&&Ve.c(),f=V(),Xe&&Xe.c(),p=V(),Se&&Se.c(),h=V(),Me&&Me.c(),w=V(),M(g.$$.fragment),E=V(),v=P("div");for(let fe=0;fe<_e.length;fe+=1)_e[fe].c();y=V(),ke&&ke.c(),T=V(),M(Y.$$.fragment),N=V(),Qe&&Qe.c(),ne=V(),je&&je.c(),ge=V(),Ze&&Ze.c(),j=V(),xe&&xe.c(),X=V(),x&&x.c(),ae=V(),De&&De.c(),K=V(),ze&&ze.c(),z=ct(),c(r,"class","controls-left svelte-ips4nw"),Wn(()=>t[185].call(r)),c(v,"class","controls-right svelte-ips4nw"),c(l,"class","controls svelte-ips4nw"),c(e,"class","wrapper-bottom svelte-ips4nw"),B(e,"hidden",t[1]),B(e,"controls-hidden",!t[3]),B(e,"no-smooth",t[2])},m(fe,se){S(fe,e,se),A(i,e,null),m(e,o),m(e,l),m(l,r),Q&&Q.m(r,null),m(r,a),te&&te.m(r,null),m(r,s),re&&re.m(r,null),m(r,u),Ve&&Ve.m(r,null),m(r,f),Xe&&Xe.m(r,null),m(r,p),Se&&Se.m(r,null),m(r,h),Me&&Me.m(r,null),m(r,w),A(g,r,null),b=Zo(r,t[185].bind(r)),m(l,E),m(l,v);for(let nt=0;nt<_e.length;nt+=1)_e[nt]&&_e[nt].m(v,null);m(v,y),ke&&ke.m(v,null),m(v,T),A(Y,v,null),m(v,N),Qe&&Qe.m(v,null),m(v,ne),je&&je.m(v,null),m(v,ge),Ze&&Ze.m(v,null),m(v,j),xe&&xe.m(v,null),m(v,X),x&&x.m(v,null),m(v,ae),De&&De.m(v,null),t[195](l),t[196](e),S(fe,K,se),ze&&ze.m(fe,se),S(fe,z,se),G=!0},p(fe,se){let nt={};se[1]&16384&&(nt.isHidden=!fe[45]),se[0]&16&&(nt.isAds=fe[4]),se[0]&32&&(nt.canRewindLive=fe[5]),se[1]&2&&(nt.isRewindableLive=fe[32]),!n&&se[0]&8388608&&(n=!0,nt.ref=fe[23].timeline,Ne(()=>n=!1)),i.$set(nt),fe[38]?Q?(Q.p(fe,se),se[1]&128&&d(Q,1)):(Q=gm(fe),Q.c(),d(Q,1),Q.m(r,a)):Q&&(me(),_(Q,1,1,()=>{Q=null}),pe()),fe[35]?te?(te.p(fe,se),se[1]&16&&d(te,1)):(te=bm(fe),te.c(),d(te,1),te.m(r,s)):te&&(me(),_(te,1,1,()=>{te=null}),pe()),fe[36]?re?(re.p(fe,se),se[1]&32&&d(re,1)):(re=vm(fe),re.c(),d(re,1),re.m(r,u)):re&&(me(),_(re,1,1,()=>{re=null}),pe()),fe[37]?Ve?(Ve.p(fe,se),se[1]&64&&d(Ve,1)):(Ve=ym(fe),Ve.c(),d(Ve,1),Ve.m(r,f)):Ve&&(me(),_(Ve,1,1,()=>{Ve=null}),pe()),fe[117]&&Xe.p(fe,se),!fe[4]&&fe[33]?Se?(Se.p(fe,se),se[0]&16|se[1]&4&&d(Se,1)):(Se=wm(fe),Se.c(),d(Se,1),Se.m(r,h)):Se&&(me(),_(Se,1,1,()=>{Se=null}),pe()),fe[19]?Me?(Me.p(fe,se),se[0]&524288&&d(Me,1)):(Me=km(fe),Me.c(),d(Me,1),Me.m(r,w)):Me&&(me(),_(Me,1,1,()=>{Me=null}),pe());let de={};if(se[0]&1048576&&(de.disabled=!fe[20]),se[0]&1048576|se[2]&1310720|se[7]&1&&(de.$$scope={dirty:se,ctx:fe}),!C&&se[0]&8388608&&(C=!0,de.ref=fe[23].episodes,Ne(()=>C=!1)),g.$set(de),se[0]&268435456){ce=Pt(fe[28]);let lt;for(lt=0;lt<ce.length;lt+=1){let dt=hm(fe,ce,lt);_e[lt]?(_e[lt].p(dt,se),d(_e[lt],1)):(_e[lt]=Cm(dt),_e[lt].c(),d(_e[lt],1),_e[lt].m(v,y))}for(me(),lt=ce.length;lt<_e.length;lt+=1)at(lt);pe()}fe[43]&&!fe[4]?ke?(ke.p(fe,se),se[0]&16|se[1]&4096&&d(ke,1)):(ke=Pm(fe),ke.c(),d(ke,1),ke.m(v,T)):ke&&(me(),_(ke,1,1,()=>{ke=null}),pe());let ot={};se[7]&1&&(ot.$$scope={dirty:se,ctx:fe}),!q&&se[0]&8388608&&(q=!0,ot.ref=fe[23].volume,Ne(()=>q=!1)),Y.$set(ot),fe[40]?Qe?(Qe.p(fe,se),se[1]&512&&d(Qe,1)):(Qe=Tm(fe),Qe.c(),d(Qe,1),Qe.m(v,ne)):Qe&&(me(),_(Qe,1,1,()=>{Qe=null}),pe()),!fe[83]&&!fe[4]?je?(je.p(fe,se),se[0]&16|se[2]&2097152&&d(je,1)):(je=Im(fe),je.c(),d(je,1),je.m(v,ge)):je&&(me(),_(je,1,1,()=>{je=null}),pe()),fe[42]&&!fe[4]?Ze?(Ze.p(fe,se),se[0]&16|se[1]&2048&&d(Ze,1)):(Ze=Em(fe),Ze.c(),d(Ze,1),Ze.m(v,j)):Ze&&(me(),_(Ze,1,1,()=>{Ze=null}),pe()),fe[84].features.contextMenuButton&&xe.p(fe,se),fe[44]?x?(x.p(fe,se),se[1]&8192&&d(x,1)):(x=Am(fe),x.c(),d(x,1),x.m(v,ae)):x&&(me(),_(x,1,1,()=>{x=null}),pe()),fe[39]?De?(De.p(fe,se),se[1]&256&&d(De,1)):(De=Lm(fe),De.c(),d(De,1),De.m(v,null)):De&&(me(),_(De,1,1,()=>{De=null}),pe()),(!G||se[0]&2)&&B(e,"hidden",fe[1]),(!G||se[0]&8)&&B(e,"controls-hidden",!fe[3]),(!G||se[0]&4)&&B(e,"no-smooth",fe[2]),fe[122]&&ze.p(fe,se)},i(fe){if(!G){d(i.$$.fragment,fe),d(Q),d(te),d(re),d(Ve),d(Xe),d(Se),d(Me),d(g.$$.fragment,fe);for(let se=0;se<ce.length;se+=1)d(_e[se]);d(ke),d(Y.$$.fragment,fe),d(Qe),d(je),d(Ze),d(xe),d(x),d(De),d(ze),G=!0}},o(fe){_(i.$$.fragment,fe),_(Q),_(te),_(re),_(Ve),_(Xe),_(Se),_(Me),_(g.$$.fragment,fe),_e=_e.filter(Boolean);for(let se=0;se<_e.length;se+=1)_(_e[se]);_(ke),_(Y.$$.fragment,fe),_(Qe),_(je),_(Ze),_(xe),_(x),_(De),_(ze),G=!1},d(fe){fe&&(k(e),k(K),k(z)),L(i),Q&&Q.d(),te&&te.d(),re&&re.d(),Ve&&Ve.d(),Xe&&Xe.d(),Se&&Se.d(),Me&&Me.d(),L(g),b(),Ai(_e,fe),ke&&ke.d(),L(Y),Qe&&Qe.d(),je&&je.d(),Ze&&Ze.d(),xe&&xe.d(),x&&x.d(),De&&De.d(),t[195](null),t[196](null),ze&&ze.d(fe)}}}function N3(t,e,i){let n,o,l,r,a,s,u,f,p,h,w,g,C,b,E,v,y,T,Y,q,N,ne,ge,j,X,ae,K,z,G,$,W,Q,te=Ce,re=()=>(te(),te=Ut(ge,J=>i(144,Q=J)),ge),Ve,Xe=Ce,Se=()=>(Xe(),Xe=Ut(ne,J=>i(145,Ve=J)),ne),Me,Ue=Ce,$e=()=>(Ue(),Ue=Ut(N,J=>i(146,Me=J)),N),ce,_e=Ce,at=()=>(_e(),_e=Ut(q,J=>i(147,ce=J)),q),ke,Fe=Ce,ft=()=>(Fe(),Fe=Ut(Y,J=>i(148,ke=J)),Y),Qe,je=Ce,Ze=()=>(je(),je=Ut(T,J=>i(149,Qe=J)),T),xe,x=Ce,De=()=>(x(),x=Ut(y,J=>i(150,xe=J)),y),ze,fe=Ce,se=()=>(fe(),fe=Ut(v,J=>i(151,ze=J)),v),nt,de=Ce,ot=()=>(de(),de=Ut(E,J=>i(152,nt=J)),E),lt,dt=Ce,yt=()=>(dt(),dt=Ut(b,J=>i(153,lt=J)),b),Et,Ye=Ce,Kt=()=>(Ye(),Ye=Ut(C,J=>i(154,Et=J)),C),qt,Tt=Ce,ai=()=>(Tt(),Tt=Ut(g,J=>i(155,qt=J)),g),rt,wt=Ce,we=()=>(wt(),wt=Ut(w,J=>i(156,rt=J)),w),gt,kt=Ce,Xt=()=>(kt(),kt=Ut(h,J=>i(157,gt=J)),h),St,jt=Ce,Gt=()=>(jt(),jt=Ut(p,J=>i(158,St=J)),p),Dt,Fi=Ce,nn=()=>(Fi(),Fi=Ut(f,J=>i(159,Dt=J)),f),Jt,Li=Ce,sn=()=>(Li(),Li=Ut(u,J=>i(160,Jt=J)),u),zi,on,bi,vi,ui,ci,yi,wi,ki,fi,Hi,Nt,Si,Mi,Ui,di,Lt,Wi,Vi,Ot,Ki,ji,Qt;t.$$.on_destroy.push(()=>te()),t.$$.on_destroy.push(()=>Xe()),t.$$.on_destroy.push(()=>Ue()),t.$$.on_destroy.push(()=>_e()),t.$$.on_destroy.push(()=>Fe()),t.$$.on_destroy.push(()=>je()),t.$$.on_destroy.push(()=>x()),t.$$.on_destroy.push(()=>fe()),t.$$.on_destroy.push(()=>de()),t.$$.on_destroy.push(()=>dt()),t.$$.on_destroy.push(()=>Ye()),t.$$.on_destroy.push(()=>Tt()),t.$$.on_destroy.push(()=>wt()),t.$$.on_destroy.push(()=>kt()),t.$$.on_destroy.push(()=>jt()),t.$$.on_destroy.push(()=>Fi()),t.$$.on_destroy.push(()=>Li());let{bottomHidden:Ci}=e,{bottomNoSmooth:mi}=e,{showControls:Pi}=e,{controlsElementRef:Yt=void 0}=e,{isAds:Ft=!1}=e,{canRewindLive:xt}=e,{logoClickable:Ri}=e,{logoHidden:ni}=e,{logoTargetUrl:oi=""}=e,{showNextPrevButtons:$t}=e,{nextButtonActive:Gi}=e,{prevButtonActive:Qi}=e,{isOneVideoPlaylist:an=!1}=e,{supportLink:Bi}=e,{customFullscreenSupported:ei=!0}=e,{playNextVideo:ti}=e,{playPrevVideo:Yi}=e,{repeatPlaylist:Mt}=e,{toggleFullscreen:Vt}=e,{returnFocus:Zi}=e,{seekToInteractive:Ti}=e,{toggleGraph:ii}=e,{playPrevChapter:Xi}=e,et=it(),Ii=Bn(),zt=Bt(),We=et.actions.internal.toggleMuted,Ji=et.actions.internal.togglePlay,un=et.actions.internal.pause,cn=et.actions.internal.toggleSubtitle,xi=et.callbacks?.onAudioDoesNotExistHint,qi=et.callbacks?.onAudioDisabledHint,ln=et.state.duration$;D(t,ln,J=>i(82,ji=J));let Di=et.state.positionWithScrubbing$;D(t,Di,J=>i(80,Ot=J));let Zt=et.state.playbackState$;D(t,Zt,J=>i(161,bi=J));let $i=et.state.chromecastConnected$;D(t,$i,J=>i(83,Qt=J));let pi=et.state.isAudioAvailable$;D(t,pi,J=>i(198,j=J));let hn=et.state.isAudioDisabled,fn=et.state.isEnded$;D(t,fn,J=>i(169,Mi=J));let dn=et.state.isLive$;D(t,dn,J=>i(33,wi=J));let yn=et.state.isActiveLive$;D(t,yn,J=>i(163,ci=J));let rn=et.state.isRewindableLive$;D(t,rn,J=>i(32,yi=J));let mn=et.ui.isPictureInPictureActive$;D(t,mn,J=>i(165,fi=J));let pn=et.ui.pictureInPictureType$;D(t,pn,J=>i(164,ki=J));let en=et.ui.settingsMenuVisible;D(t,en,J=>i(27,K=J));let _i=et.ui.settingsMenuOpenedByKeyboard;D(t,_i,J=>i(140,ae=J));let wn=et.ui.controls,tn=et.actions.internal.getVideoEpisodes(),En=et.state.chromecastState$;D(t,En,J=>i(29,zi=J));let Ht=et.state.availableSubtitlesList$;D(t,Ht,J=>i(168,Si=J));let An=et.state.currentSubtitle$;D(t,An,J=>i(170,Ui=J));let Ln=wn.disabledControls$;D(t,Ln,J=>i(172,Lt=J));let kn=et.ui.contextMenu.visible$;D(t,kn,J=>i(162,vi=J));let Mn=et.ui.contextMenu.showContextMenuBtn$;D(t,Mn,J=>i(166,Hi=J));let le=et.ui.contextMenu.openedByBtnKeyboard$;D(t,le,J=>i(167,Nt=J));let _t=et.ui.startedByKeyboard$;D(t,_t,J=>i(139,X=J));let Ni=et.ads.duration;D(t,Ni,J=>i(81,Ki=J));let _n=et.ads.position;D(t,_n,J=>i(79,Vi=J));let ie=et.ads.playbackState;D(t,ie,J=>i(171,di=J));let mt=et.ui.isFullscreen;D(t,mt,J=>i(30,on=J));let li=et.ui.playerSize;D(t,li,J=>i(142,G=J));let Sn=et.ui.currentGridType$;D(t,Sn,J=>i(143,$=J));let On=et.ui.additionalButtons$;D(t,On,J=>i(28,W=J));let Xn=et.actions.internal.getVideoElement,no=et.actions.internal.replayInteractive,ee=et.state.isInteractive,Gn=et.state.isInteractiveTime$;D(t,Gn,J=>i(141,z=J));let yl=et.state.showInteractiveGraph,wl=et.state.showSeekToInteractive,kl=et.state.showPlayPrevChapter,Sl=et.state.showInteractiveTimeIndicator,Uo=et.state.graphIsOpened$;D(t,Uo,J=>i(31,ui=J));let vo=et.state.playPrevChapterDisabledTooltip,yo=Ii.seekToInteractiveDisabledTooltip$;D(t,yo,J=>i(78,Wi=J));let Jn=()=>et.actions.internal.toggleChromecast(),oo,lo,Wo,Ko,wo,jo,ko,Go,So,ro,Z,Rt,Cn,Vn,Qo,Co,so,Qn,Yo,ao,Ul,Cl="",Ct=(J,ms)=>{if(!J){i(50,Cl=O("tooltip_live"));return}ms===Lu.PAUSED&&i(50,Cl=O("tooltip_play"))},I,oe,Te,Ke,ut,He={},pt,bt,ri,Fn,xn=f3(Zr,260,{leading:!1}),zn,gn,uo;function ds(){po({isAudioDisabled:hn,audioDisabledHintCallback:qi,isAudioAvailable:j,audioIsNotExistHintCallback:xi})&&We()}let Up=ee?no:an?Ji:Mt;function Wp(J){t.$$.not_equal(He.timeline,J)&&(He.timeline=J,i(23,He))}function Kp(J){t.$$.not_equal(He.prevButton,J)&&(He.prevButton=J,i(23,He))}function jp(J){t.$$.not_equal(He.replayButton,J)&&(He.replayButton=J,i(23,He))}function Gp(J){uo=J,i(26,uo)}function Qp(J){t.$$.not_equal(He.playButton,J)&&(He.playButton=J,i(23,He))}function Yp(J){t.$$.not_equal(He.nextButton,J)&&(He.nextButton=J,i(23,He))}function Zp(J){t.$$.not_equal(He.playPrevChapterButton,J)&&(He.playPrevChapterButton=J,i(23,He))}function Xp(J){t.$$.not_equal(He.seekToInteractiveButton,J)&&(He.seekToInteractiveButton=J,i(23,He))}function Jp(J){t.$$.not_equal(He.interactiveGraphButton,J)&&(He.interactiveGraphButton=J,i(23,He))}function xp(J){t.$$.not_equal(He.liveButton,J)&&(He.liveButton=J,i(23,He))}function $p(J){t.$$.not_equal(He.time,J)&&(He.time=J,i(23,He))}function e_(J){t.$$.not_equal(He.episodes,J)&&(He.episodes=J,i(23,He))}function t_(){ut=this.clientWidth,i(22,ut)}function i_(J){t.$$.not_equal(He.vkLogo,J)&&(He.vkLogo=J,i(23,He))}function n_(J){t.$$.not_equal(He.volume,J)&&(He.volume=J,i(23,He))}function o_(J){t.$$.not_equal(He.subtitles,J)&&(He.subtitles=J,i(23,He))}function l_(J){zn=J,i(24,zn)}function r_(J){gn=J,i(25,gn)}function s_(J){t.$$.not_equal(He.settings,J)&&(He.settings=J,i(23,He))}function a_(J){t.$$.not_equal(He.context,J)&&(He.context=J,i(23,He))}function u_(J){t.$$.not_equal(He.fullscreen,J)&&(He.fullscreen=J,i(23,He))}function c_(J){t.$$.not_equal(He.chromecast,J)&&(He.chromecast=J,i(23,He))}function f_(J){be[J?"unshift":"push"](()=>{so=J,i(46,so)})}function d_(J){be[J?"unshift":"push"](()=>{Yt=J,i(0,Yt)})}function m_(J){t.$$.not_equal(He.interactiveTimeIndicator,J)&&(He.interactiveTimeIndicator=J,i(23,He))}return t.$$set=J=>{"bottomHidden"in J&&i(1,Ci=J.bottomHidden),"bottomNoSmooth"in J&&i(2,mi=J.bottomNoSmooth),"showControls"in J&&i(3,Pi=J.showControls),"controlsElementRef"in J&&i(0,Yt=J.controlsElementRef),"isAds"in J&&i(4,Ft=J.isAds),"canRewindLive"in J&&i(5,xt=J.canRewindLive),"logoClickable"in J&&i(6,Ri=J.logoClickable),"logoHidden"in J&&i(129,ni=J.logoHidden),"logoTargetUrl"in J&&i(7,oi=J.logoTargetUrl),"showNextPrevButtons"in J&&i(130,$t=J.showNextPrevButtons),"nextButtonActive"in J&&i(8,Gi=J.nextButtonActive),"prevButtonActive"in J&&i(9,Qi=J.prevButtonActive),"isOneVideoPlaylist"in J&&i(131,an=J.isOneVideoPlaylist),"supportLink"in J&&i(10,Bi=J.supportLink),"customFullscreenSupported"in J&&i(132,ei=J.customFullscreenSupported),"playNextVideo"in J&&i(11,ti=J.playNextVideo),"playPrevVideo"in J&&i(12,Yi=J.playPrevVideo),"repeatPlaylist"in J&&i(133,Mt=J.repeatPlaylist),"toggleFullscreen"in J&&i(13,Vt=J.toggleFullscreen),"returnFocus"in J&&i(14,Zi=J.returnFocus),"seekToInteractive"in J&&i(15,Ti=J.seekToInteractive),"toggleGraph"in J&&i(16,ii=J.toggleGraph),"playPrevChapter"in J&&i(17,Xi=J.playPrevChapter)},t.$$.update=()=>{if(t.$$.dirty[5]&131072&&i(138,n=Lt.has("EPISODE_BUTTON")),t.$$.dirty[5]&131072&&i(77,o=Lt.has("GRAPH_BUTTON")),t.$$.dirty[5]&131072&&i(76,l=Lt.has("SEEK_TO_INTERACTIVE_BUTTON")),t.$$.dirty[5]&131072&&i(75,r=Lt.has("PLAY_BUTTON")),t.$$.dirty[5]&131072&&i(74,a=Lt.has("REPLAY_BUTTON")),t.$$.dirty[5]&131072&&i(73,s=Lt.has("PLAY_PREV_CHAPTER_BUTTON")),t.$$.dirty[0]&16|t.$$.dirty[5]&65600&&i(34,oo=Ft?di==="playing":bi===Lu.PLAYING),t.$$.dirty[5]&32768&&i(18,lo=Ui.value!=="off"),t.$$.dirty[0]&16|t.$$.dirty[5]&16384&&i(35,Wo=Mi&&!Ft||ee),t.$$.dirty[0]&16|t.$$.dirty[5]&16384&&i(36,Ko=!Mi||ee||Ft),t.$$.dirty[4]&524288&&i(134,wo=In($,"m")),t.$$.dirty[0]&272|t.$$.dirty[4]&524352&&i(37,jo=$t&&In($,"m")&&!Ft&&Gi),t.$$.dirty[0]&528|t.$$.dirty[4]&524352&&i(38,ko=$t&&In($,"m")&&!Ft&&Qi),t.$$.dirty[0]&536870912|t.$$.dirty[4]&524288|t.$$.dirty[5]&1536&&i(39,Go=zi!==_m.NOT_AVAILABLE&&!(fi&&ki===1)&&In($,"m")&&!ee),t.$$.dirty[4]&524288|t.$$.dirty[5]&8192&&i(40,So=Si.length>0&&In($,"m")),t.$$.dirty[5]&6144&&i(41,ro=Nt||Hi),t.$$.dirty[4]&524288&&i(42,Z=In($,"s")),t.$$.dirty[4]&32&&i(43,Rt=!ni),t.$$.dirty[4]&524576|t.$$.dirty[5]&1536&&i(44,Cn=zt.features.fullscreen&&(ni||In($,"s"))&&!(fi&&ki===1)&&(ee?ei:!0)),t.$$.dirty[0]&16|t.$$.dirty[1]&4&&i(19,Vn=(!wi||Ft)&&!(zt.features.interactiveHideTime&&ee)),t.$$.dirty[4]&262144&&i(45,Qo=G.width>100),t.$$.dirty[0]&16|t.$$.dirty[1]&4|t.$$.dirty[4]&17408&&i(20,Co=!Ft&&!wi&&!!tn?.length&&wo&&!n),t.$$.dirty[1]&2|t.$$.dirty[5]&256&&i(21,Qn=!yi||ci),t.$$.dirty[5]&64&&i(47,Yo=bi===Lu.PLAYING?O("tooltip_pause"):O("tooltip_play")),t.$$.dirty[1]&1&&i(48,ao=ui?O("tooltip_interactive_graph_on"):O("tooltip_interactive_graph_off")),t.$$.dirty[5]&128&&i(49,Ul=vi?O("aria_label_context_menu_close"):O("aria_label_context_menu_open")),t.$$.dirty[0]&2097152|t.$$.dirty[5]&64&&Ct(Qn,bi),t.$$.dirty[0]&262144&&i(52,oe=lo?O("tooltip_subtitles_on"):O("tooltip_subtitles_off")),t.$$.dirty[0]&1073741824&&i(53,Te=on?O("tooltip_fullscreen_on"):O("tooltip_fullscreen_off")),t.$$.dirty[0]&536870912&&i(54,Ke=zi===_m.CONNECTED?O("tooltip_chromecast_on"):O("tooltip_chromecast_off")),t.$$.dirty[0]&268435456|t.$$.dirty[4]&2146435072|t.$$.dirty[5]&63&&i(135,pt={prevButton:Jt?Jt.right-Jt.left:0,replayButton:Dt?Dt.right-Dt.left:0,playButton:St?St.right-St.left:0,nextButton:gt?gt.right-gt.left:0,playPrevChapterButton:rt?rt.right-rt.left:0,seekToInteractiveButton:qt?qt.right-qt.left:0,interactiveGraphButton:Et?Et.right-Et.left:0,liveButton:lt?lt.right-lt.left:0,time:nt?nt.right-nt.left:0,episodes:ze?ze.right-ze.left:0,vkLogo:xe?xe.right-xe.left:0,volume:Qe?Qe.right-Qe.left:0,subtitles:ke?ke.right-ke.left:0,settings:ce?ce.right-ce.left:0,context:Me?Me.right-Me.left:0,fullscreen:Ve?Ve.right-Ve.left:0,chromecast:Q?Q.right-Q.left:0,additionalButtons:W.length?W.reduce(J=>[...J,40],[]):[]}),t.$$.dirty[4]&6144&&(!bt||bt<pt.time)&&i(136,bt=pt.time),t.$$.dirty[0]&5767168|t.$$.dirty[4]&530432){let J=0;Co&&(In($,"xl")?J=pt.time:J=60);let ms=pt.prevButton+pt.playButton+pt.nextButton+pt.seekToInteractiveButton+pt.interactiveGraphButton+pt.liveButton+bt+J;i(137,ri=Vn&&ut>=ms)}t.$$.dirty[4]&532480&&i(55,Fn=ri&&In($,"m")),t.$$.dirty[0]&8388616|t.$$.dirty[4]&393216&&xn(Xn(),wn,He,Pi),t.$$.dirty[0]&167772160&&sl(gn,K,_i),t.$$.dirty[0]&150994944|t.$$.dirty[4]&65536&&Do(zn,K,ae),t.$$.dirty[0]&67108864|t.$$.dirty[4]&32768&&Xr(_t,X,uo)},i(51,I=zt.logoType==="vk_video"?O("tooltip_vk_video_logo"):O("tooltip_vk_logo")),sn(i(72,{prevButton:u,replayButton:f,playButton:p,nextButton:h,playPrevChapterButton:w,seekToInteractiveButton:g,interactiveGraphButton:C,liveButton:b,time:E,episodes:v,vkLogo:y,volume:T,subtitles:Y,settings:q,context:N,fullscreen:ne,chromecast:ge}=wn,u,nn(i(71,f)),Gt(i(70,p)),Xt(i(69,h)),we(i(68,w)),ai(i(67,g)),Kt(i(66,C)),yt(i(65,b)),ot(i(64,E)),se(i(63,v)),De(i(62,y)),Ze(i(61,T)),ft(i(60,Y)),at(i(59,q)),$e(i(58,N)),Se(i(57,ne)),re(i(56,ge)))),[Yt,Ci,mi,Pi,Ft,xt,Ri,oi,Gi,Qi,Bi,ti,Yi,Vt,Zi,Ti,ii,Xi,lo,Vn,Co,Qn,ut,He,zn,gn,uo,K,W,zi,on,ui,yi,wi,oo,Wo,Ko,jo,ko,Go,So,ro,Z,Rt,Cn,Qo,so,Yo,ao,Ul,Cl,I,oe,Te,Ke,Fn,ge,ne,N,q,Y,T,y,v,E,b,C,g,w,h,p,f,u,s,a,r,l,o,Wi,Vi,Ot,Ki,ji,Qt,zt,Ji,un,cn,ln,Di,Zt,$i,pi,fn,dn,yn,rn,mn,pn,en,_i,tn,En,Ht,An,Ln,kn,Mn,le,_t,Ni,_n,ie,mt,li,Sn,On,ee,Gn,yl,wl,kl,Sl,Uo,vo,yo,Jn,ds,Up,ni,$t,an,ei,Mt,wo,pt,bt,ri,n,X,ae,z,G,$,Q,Ve,Me,ce,ke,Qe,xe,ze,nt,lt,Et,qt,rt,gt,St,Dt,Jt,bi,vi,ci,ki,fi,Hi,Nt,Si,Mi,Ui,di,Lt,Wp,Kp,jp,Gp,Qp,Yp,Zp,Xp,Jp,xp,$p,e_,t_,i_,n_,o_,l_,r_,s_,a_,u_,c_,f_,d_,m_]}var Mu=class extends H{constructor(e){super(),U(this,e,N3,D3,F,{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},d3,[-1,-1,-1,-1,-1,-1,-1,-1])}},Mm=Mu;import{ChromecastState as Nm,PlaybackState as Om}from"@vkontakte/videoplayer-core";function O3(t){let e,i,n,o,l,r=t[2].default,a=Ie(r,t,t[1],null),s=[{xmlns:"http://www.w3.org/2000/svg"},{width:"24"},{height:"24"},{"aria-hidden":"true"},{"data-testid":"muted-icon"},{role:"img"},t[0]],u={};for(let f=0;f<s.length;f+=1)u=ue(u,s[f]);return{c(){e=R("svg"),a&&a.c(),i=R("g"),n=R("path"),o=R("path"),c(n,"d","M0 0h24v24H0z"),c(o,"fill","#fff"),c(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"),c(i,"fill","none"),c(i,"fill-rule","evenodd"),ye(e,u)},m(f,p){S(f,e,p),a&&a.m(e,null),m(e,i),m(i,n),m(i,o),l=!0},p(f,[p]){a&&a.p&&(!l||p&2)&&Ae(a,r,f,f[1],l?Ee(r,f[1],p,null):Le(f[1]),null),ye(e,u=Be(s,[{xmlns:"http://www.w3.org/2000/svg"},{width:"24"},{height:"24"},{"aria-hidden":"true"},{"data-testid":"muted-icon"},{role:"img"},p&1&&f[0]]))},i(f){l||(d(a,f),l=!0)},o(f){_(a,f),l=!1},d(f){f&&k(e),a&&a.d(f)}}}function F3(t,e,i){let{$$slots:n={},$$scope:o}=e;return t.$$set=l=>{i(0,e=ue(ue({},e),ve(l))),"$$scope"in l&&i(1,o=l.$$scope)},e=ve(e),[e,o,n]}var Ru=class extends H{constructor(e){super(),U(this,e,F3,O3,F,{})}},Vm=Ru;import{noop as z3}from"@vkontakte/videoplayer-shared";function H3(t){Pe(t,"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 Rm(t){let e;return{c(){e=P("span"),e.textContent=`${O("mobile_unmute")}`,c(e,"class","text svelte-6gmlbk")},m(i,n){S(i,e,n)},d(i){i&&k(e)}}}function U3(t){let e,i,n,o;var l=t[4];function r(s,u){return{}}l&&(i=bn(l,r(t)));let a=t[1]&&Rm(t);return{c(){e=P("div"),i&&M(i.$$.fragment),n=V(),a&&a.c(),c(e,"class","container svelte-6gmlbk"),c(e,"aria-hidden","true"),B(e,"expanded",t[1])},m(s,u){S(s,e,u),i&&A(i,e,null),m(e,n),a&&a.m(e,null),o=!0},p(s,u){if(u&16&&l!==(l=s[4])){if(i){me();let f=i;_(f.$$.fragment,1,0,()=>{L(f,1)}),pe()}l?(i=bn(l,r(s,u)),M(i.$$.fragment),d(i.$$.fragment,1),A(i,e,n)):i=null}s[1]?a||(a=Rm(s),a.c(),a.m(e,null)):a&&(a.d(1),a=null),(!o||u&2)&&B(e,"expanded",s[1])},i(s){o||(i&&d(i.$$.fragment,s),o=!0)},o(s){i&&_(i.$$.fragment,s),o=!1},d(s){s&&k(e),i&&L(i),a&&a.d()}}}function W3(t){let e,i,n;function o(r){t[6](r)}let l={testId:t[1]?"btn-mobile-unmuted":"btn-mobile-muted",click:t[2],ariaLabel:t[3],$$slots:{default:[U3]},$$scope:{ctx:t}};return t[0]!==void 0&&(l.ref=t[0]),e=new ht({props:l}),be.push(()=>Oe(e,"ref",o)),{c(){M(e.$$.fragment)},m(r,a){A(e,r,a),n=!0},p(r,[a]){let s={};a&2&&(s.testId=r[1]?"btn-mobile-unmuted":"btn-mobile-muted"),a&4&&(s.click=r[2]),a&8&&(s.ariaLabel=r[3]),a&146&&(s.$$scope={dirty:a,ctx:r}),!i&&a&1&&(i=!0,s.ref=r[0],Ne(()=>i=!1)),e.$set(s)},i(r){n||(d(e.$$.fragment,r),n=!0)},o(r){_(e.$$.fragment,r),n=!1},d(r){L(e,r)}}}function K3(t,e,i){let{muted:n=!1}=e,{expanded:o=!1}=e,{click:l=z3}=e,{ref:r=void 0}=e,a,s;function u(f){r=f,i(0,r)}return t.$$set=f=>{"muted"in f&&i(5,n=f.muted),"expanded"in f&&i(1,o=f.expanded),"click"in f&&i(2,l=f.click),"ref"in f&&i(0,r=f.ref)},t.$$.update=()=>{t.$$.dirty&32&&i(3,a=n?O("tooltip_volume"):O("tooltip_volume_muted")),t.$$.dirty&2&&i(4,s=o?zo:Vm)},[r,o,l,a,s,n,u]}var Bu=class extends H{constructor(e){super(),U(this,e,K3,W3,F,{muted:5,expanded:1,click:2,ref:0},H3)}},qu=Bu;function j3(t){let e,i,n,o,l,r=t[2].default,a=Ie(r,t,t[1],null),s=[{xmlns:"http://www.w3.org/2000/svg"},{width:"24"},{height:"24"},{fill:"none"},{role:"img"},t[0]],u={};for(let f=0;f<s.length;f+=1)u=ue(u,s[f]);return{c(){e=R("svg"),a&&a.c(),i=R("path"),n=R("path"),o=R("path"),c(i,"fill","currentColor"),c(i,"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"),c(i,"clip-rule","evenodd"),c(n,"fill","currentColor"),c(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"),c(n,"class","hidden-not-active"),c(o,"fill","currentColor"),c(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"),c(o,"class","hidden-active"),ye(e,u)},m(f,p){S(f,e,p),a&&a.m(e,null),m(e,i),m(e,n),m(e,o),l=!0},p(f,[p]){a&&a.p&&(!l||p&2)&&Ae(a,r,f,f[1],l?Ee(r,f[1],p,null):Le(f[1]),null),ye(e,u=Be(s,[{xmlns:"http://www.w3.org/2000/svg"},{width:"24"},{height:"24"},{fill:"none"},{role:"img"},p&1&&f[0]]))},i(f){l||(d(a,f),l=!0)},o(f){_(a,f),l=!1},d(f){f&&k(e),a&&a.d(f)}}}function G3(t,e,i){let{$$slots:n={},$$scope:o}=e;return t.$$set=l=>{i(0,e=ue(ue({},e),ve(l))),"$$scope"in l&&i(1,o=l.$$scope)},e=ve(e),[e,o,n]}var Du=class extends H{constructor(e){super(),U(this,e,G3,j3,F,{})}},Bm=Du;function Q3(t){Pe(t,"svelte-tmam00",'svg[data-testid="pip-icon--active"] .hidden-active,svg[data-testid="pip-icon"] .hidden-not-active{visibility:hidden;opacity:0}')}function Y3(t){let e,i;return e=new Bm({props:{style:t[1],"data-testid":t[0]?"pip-icon--active":"pip-icon"}}),{c(){M(e.$$.fragment)},m(n,o){A(e,n,o),i=!0},p(n,[o]){let l={};o&2&&(l.style=n[1]),o&1&&(l["data-testid"]=n[0]?"pip-icon--active":"pip-icon"),e.$set(l)},i(n){i||(d(e.$$.fragment,n),i=!0)},o(n){_(e.$$.fragment,n),i=!1},d(n){L(e,n)}}}function Z3(t,e,i){let n,{isActive:o=!1}=e;return t.$$set=l=>{"isActive"in l&&i(0,o=l.isActive)},t.$$.update=()=>{t.$$.dirty&1&&i(1,n=o?"color: #2688EB;":"color: #fff;")},[o,n]}var Nu=class extends H{constructor(e){super(),U(this,e,Z3,Y3,F,{isActive:0},Q3)}},qm=Nu;import{noop as X3}from"@vkontakte/videoplayer-shared";function J3(t){let e,i;return e=new qm({props:{isActive:t[1]}}),{c(){M(e.$$.fragment)},m(n,o){A(e,n,o),i=!0},p(n,o){let l={};o&2&&(l.isActive=n[1]),e.$set(l)},i(n){i||(d(e.$$.fragment,n),i=!0)},o(n){_(e.$$.fragment,n),i=!1},d(n){L(e,n)}}}function x3(t){let e,i,n;function o(r){t[3](r)}let l={testId:"btn-pip",ariaLabel:O("menu_pip"),click:t[2],$$slots:{default:[J3]},$$scope:{ctx:t}};return t[0]!==void 0&&(l.ref=t[0]),e=new ht({props:l}),be.push(()=>Oe(e,"ref",o)),{c(){M(e.$$.fragment)},m(r,a){A(e,r,a),n=!0},p(r,[a]){let s={};a&4&&(s.click=r[2]),a&18&&(s.$$scope={dirty:a,ctx:r}),!i&&a&1&&(i=!0,s.ref=r[0],Ne(()=>i=!1)),e.$set(s)},i(r){n||(d(e.$$.fragment,r),n=!0)},o(r){_(e.$$.fragment,r),n=!1},d(r){L(e,r)}}}function $3(t,e,i){let{ref:n=void 0}=e,{isPictureInPictureActive:o=!1}=e,{click:l=X3}=e;function r(a){n=a,i(0,n)}return t.$$set=a=>{"ref"in a&&i(0,n=a.ref),"isPictureInPictureActive"in a&&i(1,o=a.isPictureInPictureActive),"click"in a&&i(2,l=a.click)},[n,o,l,r]}var Ou=class extends H{constructor(e){super(),U(this,e,$3,x3,F,{ref:0,isPictureInPictureActive:1,click:2})}},Dm=Ou;import{throttleFn as e5}from"@vkontakte/videoplayer-shared";function t5(t){Pe(t,"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 Fm(t,e,i){let n=t.slice();return n[170]=e[i].iconUrl,n[171]=e[i].ariaLabel,n[172]=e[i].testId,n[173]=e[i].onClick,n[174]=e[i].tooltip,n}function zm(t){let e,i,n,o,l,r,a,s,u,f,p,h,w,g,C,b,E,v=(!t[51]||t[53])&&Hm(t),y=Pt(t[56]),T=[];for(let G=0;G<y.length;G+=1)T[G]=Um(Fm(t,y,G));let Y=G=>_(T[G],1,1,()=>{T[G]=null}),q=t[36]&&Wm(t),N=t[37]&&Km(t),ne=t[57]&&jm(t),ge=t[39]&&Gm(t),j=t[8]&&Qm(t),X=t[34]&&Ym(t),ae=t[33]&&Zm(t),K=t[8]&&Xm(t),z=t[96]&&!t[29]&&Jm(t);return{c(){e=P("div"),i=V(),n=P("div"),v&&v.c(),o=V(),l=P("div");for(let G=0;G<T.length;G+=1)T[G].c();r=V(),q&&q.c(),a=V(),N&&N.c(),s=V(),ne&&ne.c(),u=V(),ge&&ge.c(),f=V(),p=P("div"),j&&j.c(),h=V(),X&&X.c(),w=V(),ae&&ae.c(),g=V(),K&&K.c(),C=V(),z&&z.c(),b=ct(),c(e,"class","overlay-mobile svelte-rwqnhz"),B(e,"hidden",!t[42]),c(n,"class","wrapper-top-left svelte-rwqnhz"),B(n,"hidden",!t[3]),B(n,"fullscreen",t[52]),c(l,"class","wrapper-top-right svelte-rwqnhz"),B(l,"hidden",!t[3]&&!t[27]),B(l,"fullscreen",t[52]),c(p,"class","wrapper-middle svelte-rwqnhz"),B(p,"hidden",!t[3]||t[29])},m(G,$){S(G,e,$),S(G,i,$),S(G,n,$),v&&v.m(n,null),S(G,o,$),S(G,l,$);for(let W=0;W<T.length;W+=1)T[W]&&T[W].m(l,null);m(l,r),q&&q.m(l,null),m(l,a),N&&N.m(l,null),m(l,s),ne&&ne.m(l,null),m(l,u),ge&&ge.m(l,null),S(G,f,$),S(G,p,$),j&&j.m(p,null),m(p,h),X&&X.m(p,null),m(p,w),ae&&ae.m(p,null),m(p,g),K&&K.m(p,null),S(G,C,$),z&&z.m(G,$),S(G,b,$),E=!0},p(G,$){if((!E||$[1]&2048)&&B(e,"hidden",!G[42]),!G[51]||G[53]?v?(v.p(G,$),$[1]&5242880&&d(v,1)):(v=Hm(G),v.c(),d(v,1),v.m(n,null)):v&&(me(),_(v,1,1,()=>{v=null}),pe()),(!E||$[0]&8)&&B(n,"hidden",!G[3]),(!E||$[1]&2097152)&&B(n,"fullscreen",G[52]),$[1]&33554432){y=Pt(G[56]);let W;for(W=0;W<y.length;W+=1){let Q=Fm(G,y,W);T[W]?(T[W].p(Q,$),d(T[W],1)):(T[W]=Um(Q),T[W].c(),d(T[W],1),T[W].m(l,r))}for(me(),W=y.length;W<T.length;W+=1)Y(W);pe()}G[36]?q?(q.p(G,$),$[1]&32&&d(q,1)):(q=Wm(G),q.c(),d(q,1),q.m(l,a)):q&&(me(),_(q,1,1,()=>{q=null}),pe()),G[37]?N?(N.p(G,$),$[1]&64&&d(N,1)):(N=Km(G),N.c(),d(N,1),N.m(l,s)):N&&(me(),_(N,1,1,()=>{N=null}),pe()),G[57]?ne?(ne.p(G,$),$[1]&67108864&&d(ne,1)):(ne=jm(G),ne.c(),d(ne,1),ne.m(l,u)):ne&&(me(),_(ne,1,1,()=>{ne=null}),pe()),G[39]?ge?(ge.p(G,$),$[1]&256&&d(ge,1)):(ge=Gm(G),ge.c(),d(ge,1),ge.m(l,null)):ge&&(me(),_(ge,1,1,()=>{ge=null}),pe()),(!E||$[0]&134217736)&&B(l,"hidden",!G[3]&&!G[27]),(!E||$[1]&2097152)&&B(l,"fullscreen",G[52]),G[8]?j?(j.p(G,$),$[0]&256&&d(j,1)):(j=Qm(G),j.c(),d(j,1),j.m(p,h)):j&&(me(),_(j,1,1,()=>{j=null}),pe()),G[34]?X?(X.p(G,$),$[1]&8&&d(X,1)):(X=Ym(G),X.c(),d(X,1),X.m(p,w)):X&&(me(),_(X,1,1,()=>{X=null}),pe()),G[33]?ae?(ae.p(G,$),$[1]&4&&d(ae,1)):(ae=Zm(G),ae.c(),d(ae,1),ae.m(p,g)):ae&&(me(),_(ae,1,1,()=>{ae=null}),pe()),G[8]?K?(K.p(G,$),$[0]&256&&d(K,1)):(K=Xm(G),K.c(),d(K,1),K.m(p,null)):K&&(me(),_(K,1,1,()=>{K=null}),pe()),(!E||$[0]&536870920)&&B(p,"hidden",!G[3]||G[29]),G[96]&&!G[29]?z?(z.p(G,$),$[0]&536870912&&d(z,1)):(z=Jm(G),z.c(),d(z,1),z.m(b.parentNode,b)):z&&(me(),_(z,1,1,()=>{z=null}),pe())},i(G){if(!E){d(v);for(let $=0;$<y.length;$+=1)d(T[$]);d(q),d(N),d(ne),d(ge),d(j),d(X),d(ae),d(K),d(z),E=!0}},o(G){_(v),T=T.filter(Boolean);for(let $=0;$<T.length;$+=1)_(T[$]);_(q),_(N),_(ne),_(ge),_(j),_(X),_(ae),_(K),_(z),E=!1},d(G){G&&(k(e),k(i),k(n),k(o),k(l),k(f),k(p),k(C),k(b)),v&&v.d(),Ai(T,G),q&&q.d(),N&&N.d(),ne&&ne.d(),ge&&ge.d(),j&&j.d(),X&&X.d(),ae&&ae.d(),K&&K.d(),z&&z.d(G)}}}function Hm(t){let e,i,n;function o(r){t[130](r)}let l={muted:t[54],expanded:t[51]&&!t[70]&&t[55],click:t[106]};return t[20].volume!==void 0&&(l.ref=t[20].volume),e=new qu({props:l}),be.push(()=>Oe(e,"ref",o)),{c(){M(e.$$.fragment)},m(r,a){A(e,r,a),n=!0},p(r,a){let s={};a[1]&8388608&&(s.muted=r[54]),a[1]&17825792&&(s.expanded=r[51]&&!r[70]&&r[55]),!i&&a[0]&1048576&&(i=!0,s.ref=r[20].volume,Ne(()=>i=!1)),e.$set(s)},i(r){n||(d(e.$$.fragment,r),n=!0)},o(r){_(e.$$.fragment,r),n=!1},d(r){L(e,r)}}}function Um(t){let e,i;return e=new Ur({props:{iconUrl:t[170],ariaLabel:t[171]??t[174],testId:t[172],onClick:t[173]}}),{c(){M(e.$$.fragment)},m(n,o){A(e,n,o),i=!0},p(n,o){let l={};o[1]&33554432&&(l.iconUrl=n[170]),o[1]&33554432&&(l.ariaLabel=n[171]??n[174]),o[1]&33554432&&(l.testId=n[172]),o[1]&33554432&&(l.onClick=n[173]),e.$set(l)},i(n){i||(d(e.$$.fragment,n),i=!0)},o(n){_(e.$$.fragment,n),i=!1},d(n){L(e,n)}}}function Wm(t){let e,i,n;function o(r){t[131](r)}let l={isMobile:!0,click:t[104],state:t[28]};return t[20].chromecast!==void 0&&(l.ref=t[20].chromecast),e=new Vr({props:l}),be.push(()=>Oe(e,"ref",o)),{c(){M(e.$$.fragment)},m(r,a){A(e,r,a),n=!0},p(r,a){let s={};a[0]&268435456&&(s.state=r[28]),!i&&a[0]&1048576&&(i=!0,s.ref=r[20].chromecast,Ne(()=>i=!1)),e.$set(s)},i(r){n||(d(e.$$.fragment,r),n=!0)},o(r){_(e.$$.fragment,r),n=!1},d(r){L(e,r)}}}function Km(t){let e,i,n;function o(r){t[132](r)}let l={click:t[105],isPictureInPictureActive:t[26]};return t[20].pip!==void 0&&(l.ref=t[20].pip),e=new Dm({props:l}),be.push(()=>Oe(e,"ref",o)),{c(){M(e.$$.fragment)},m(r,a){A(e,r,a),n=!0},p(r,a){let s={};a[0]&67108864&&(s.isPictureInPictureActive=r[26]),!i&&a[0]&1048576&&(i=!0,s.ref=r[20].pip,Ne(()=>i=!1)),e.$set(s)},i(r){n||(d(e.$$.fragment,r),n=!0)},o(r){_(e.$$.fragment,r),n=!1},d(r){L(e,r)}}}function jm(t){let e,i,n;function o(r){t[133](r)}let l={};return t[22]!==void 0&&(l.ref=t[22]),e=new Ml({props:l}),be.push(()=>Oe(e,"ref",o)),{c(){M(e.$$.fragment)},m(r,a){A(e,r,a),n=!0},p(r,a){let s={};!i&&a[0]&4194304&&(i=!0,s.ref=r[22],Ne(()=>i=!1)),e.$set(s)},i(r){n||(d(e.$$.fragment,r),n=!0)},o(r){_(e.$$.fragment,r),n=!1},d(r){L(e,r)}}}function Gm(t){let e,i,n;function o(r){t[134](r)}let l={click:t[64],targetUrl:t[7],logoClickable:t[6]};return t[20].vkLogo!==void 0&&(l.ref=t[20].vkLogo),e=new Mr({props:l}),be.push(()=>Oe(e,"ref",o)),{c(){M(e.$$.fragment)},m(r,a){A(e,r,a),n=!0},p(r,a){let s={};a[0]&128&&(s.targetUrl=r[7]),a[0]&64&&(s.logoClickable=r[6]),!i&&a[0]&1048576&&(i=!0,s.ref=r[20].vkLogo,Ne(()=>i=!1)),e.$set(s)},i(r){n||(d(e.$$.fragment,r),n=!0)},o(r){_(e.$$.fragment,r),n=!1},d(r){L(e,r)}}}function Qm(t){let e,i,n;function o(r){t[135](r)}let l={click:t[13],type:"prev",disabled:!t[10],isMobile:!0};return t[20].prevButton!==void 0&&(l.ref=t[20].prevButton),e=new _l({props:l}),be.push(()=>Oe(e,"ref",o)),{c(){M(e.$$.fragment)},m(r,a){A(e,r,a),n=!0},p(r,a){let s={};a[0]&8192&&(s.click=r[13]),a[0]&1024&&(s.disabled=!r[10]),!i&&a[0]&1048576&&(i=!0,s.ref=r[20].prevButton,Ne(()=>i=!1)),e.$set(s)},i(r){n||(d(e.$$.fragment,r),n=!0)},o(r){_(e.$$.fragment,r),n=!1},d(r){L(e,r)}}}function Ym(t){let e,i,n;function o(r){t[136](r)}let l={disabled:t[49],click:t[63],isMobile:!0,isPlaying:t[31]};return t[20].playButton!==void 0&&(l.ref=t[20].playButton),e=new Rl({props:l}),be.push(()=>Oe(e,"ref",o)),{c(){M(e.$$.fragment)},m(r,a){A(e,r,a),n=!0},p(r,a){let s={};a[1]&262144&&(s.disabled=r[49]),a[1]&1&&(s.isPlaying=r[31]),!i&&a[0]&1048576&&(i=!0,s.ref=r[20].playButton,Ne(()=>i=!1)),e.$set(s)},i(r){n||(d(e.$$.fragment,r),n=!0)},o(r){_(e.$$.fragment,r),n=!1},d(r){L(e,r)}}}function Zm(t){let e,i,n;function o(r){t[137](r)}let l={disabled:t[48],click:t[107],isMobile:!0};return t[20].replayButton!==void 0&&(l.ref=t[20].replayButton),e=new Bl({props:l}),be.push(()=>Oe(e,"ref",o)),{c(){M(e.$$.fragment)},m(r,a){A(e,r,a),n=!0},p(r,a){let s={};a[1]&131072&&(s.disabled=r[48]),!i&&a[0]&1048576&&(i=!0,s.ref=r[20].replayButton,Ne(()=>i=!1)),e.$set(s)},i(r){n||(d(e.$$.fragment,r),n=!0)},o(r){_(e.$$.fragment,r),n=!1},d(r){L(e,r)}}}function Xm(t){let e,i,n;function o(r){t[138](r)}let l={click:t[12],type:"next",disabled:!t[9],isMobile:!0};return t[20].nextButton!==void 0&&(l.ref=t[20].nextButton),e=new _l({props:l}),be.push(()=>Oe(e,"ref",o)),{c(){M(e.$$.fragment)},m(r,a){A(e,r,a),n=!0},p(r,a){let s={};a[0]&4096&&(s.click=r[12]),a[0]&512&&(s.disabled=!r[9]),!i&&a[0]&1048576&&(i=!0,s.ref=r[20].nextButton,Ne(()=>i=!1)),e.$set(s)},i(r){n||(d(e.$$.fragment,r),n=!0)},o(r){_(e.$$.fragment,r),n=!1},d(r){L(e,r)}}}function Jm(t){let e,i,n,o,l=t[100]&&i5(t),r=t[98]&&n5(t),a=t[99]&&o5(t);return{c(){l&&l.c(),e=V(),r&&r.c(),i=V(),a&&a.c(),n=ct()},m(s,u){l&&l.m(s,u),S(s,e,u),r&&r.m(s,u),S(s,i,u),a&&a.m(s,u),S(s,n,u),o=!0},p(s,u){s[100]&&l.p(s,u),s[98]&&r.p(s,u),s[99]&&a.p(s,u)},i(s){o||(d(l),d(r),d(a),o=!0)},o(s){_(l),_(r),_(a),o=!1},d(s){s&&(k(e),k(i),k(n)),l&&l.d(s),r&&r.d(s),a&&a.d(s)}}}function i5(t){let e,i,n,o,l,r;function a(u){t[139](u)}let s={hidden:!t[3],disabled:t[47],click:t[18]};return t[20].playPrevChapterButton!==void 0&&(s.ref=t[20].playPrevChapterButton),i=new Hr({props:s}),be.push(()=>Oe(i,"ref",a)),{c(){e=P("div"),M(i.$$.fragment),c(e,"class","wrapper-middle-left svelte-rwqnhz"),B(e,"fullscreen",t[52]),B(e,"hidden",!t[3])},m(u,f){S(u,e,f),A(i,e,null),o=!0,l||(r=he(e,"click",t[108]),l=!0)},p(u,f){let p={};f[0]&8&&(p.hidden=!u[3]),f[1]&65536&&(p.disabled=u[47]),f[0]&262144&&(p.click=u[18]),!n&&f[0]&1048576&&(n=!0,p.ref=u[20].playPrevChapterButton,Ne(()=>n=!1)),i.$set(p),(!o||f[1]&2097152)&&B(e,"fullscreen",u[52]),(!o||f[0]&8)&&B(e,"hidden",!u[3])},i(u){o||(d(i.$$.fragment,u),o=!0)},o(u){_(i.$$.fragment,u),o=!1},d(u){u&&k(e),L(i),l=!1,r()}}}function n5(t){let e,i,n,o,l;function r(s){t[140](s)}let a={hidden:!t[3]&&!t[58],disabled:t[50],click:t[17],graphIsOpened:t[58]};return t[20].interactiveGraphButton!==void 0&&(a.ref=t[20].interactiveGraphButton),i=new Fr({props:a}),be.push(()=>Oe(i,"ref",r)),{c(){e=P("div"),M(i.$$.fragment),c(e,"class",o=Ac(t[100]?"wrapper-middle-left-second":"wrapper-middle-left")+" svelte-rwqnhz"),B(e,"fullscreen",t[52]),B(e,"hidden",!t[3]&&!t[58])},m(s,u){S(s,e,u),A(i,e,null),l=!0},p(s,u){let f={};u[0]&8|u[1]&134217728&&(f.hidden=!s[3]&&!s[58]),u[1]&524288&&(f.disabled=s[50]),u[0]&131072&&(f.click=s[17]),u[1]&134217728&&(f.graphIsOpened=s[58]),!n&&u[0]&1048576&&(n=!0,f.ref=s[20].interactiveGraphButton,Ne(()=>n=!1)),i.$set(f),(!l||u[1]&2097152)&&B(e,"fullscreen",s[52]),(!l||u[0]&8|u[1]&134217728)&&B(e,"hidden",!s[3]&&!s[58])},i(s){l||(d(i.$$.fragment,s),l=!0)},o(s){_(i.$$.fragment,s),l=!1},d(s){s&&k(e),L(i)}}}function o5(t){let e,i,n,o,l,r;function a(u){t[141](u)}let s={hidden:!t[3],disabled:t[46],click:t[16]};return t[20].seekToInteractiveButton!==void 0&&(s.ref=t[20].seekToInteractiveButton),i=new Or({props:s}),be.push(()=>Oe(i,"ref",a)),{c(){e=P("div"),M(i.$$.fragment),c(e,"class","wrapper-middle-right svelte-rwqnhz"),B(e,"fullscreen",t[52]),B(e,"hidden",!t[3])},m(u,f){S(u,e,f),A(i,e,null),o=!0,l||(r=he(e,"click",t[109]),l=!0)},p(u,f){let p={};f[0]&8&&(p.hidden=!u[3]),f[1]&32768&&(p.disabled=u[46]),f[0]&65536&&(p.click=u[16]),!n&&f[0]&1048576&&(n=!0,p.ref=u[20].seekToInteractiveButton,Ne(()=>n=!1)),i.$set(p),(!o||f[1]&2097152)&&B(e,"fullscreen",u[52]),(!o||f[0]&8)&&B(e,"hidden",!u[3])},i(u){o||(d(i.$$.fragment,u),o=!0)},o(u){_(i.$$.fragment,u),o=!1},d(u){u&&k(e),L(i),l=!1,r()}}}function xm(t){let e,i,n,o,l,r=t[53]&&$m(t),a=t[32]&&e0(t);return o=new qr({props:{position:t[59],duration:t[60]}}),{c(){r&&r.c(),e=V(),a&&a.c(),i=V(),n=P("div"),M(o.$$.fragment),c(n,"class","wrapper-bottom ads-timeline-mobile svelte-rwqnhz"),B(n,"fullscreen",t[52])},m(s,u){r&&r.m(s,u),S(s,e,u),a&&a.m(s,u),S(s,i,u),S(s,n,u),A(o,n,null),l=!0},p(s,u){s[53]?r?(r.p(s,u),u[1]&4194304&&d(r,1)):(r=$m(s),r.c(),d(r,1),r.m(e.parentNode,e)):r&&(me(),_(r,1,1,()=>{r=null}),pe()),s[32]?a?(a.p(s,u),u[1]&2&&d(a,1)):(a=e0(s),a.c(),d(a,1),a.m(i.parentNode,i)):a&&(me(),_(a,1,1,()=>{a=null}),pe());let f={};u[1]&268435456&&(f.position=s[59]),u[1]&536870912&&(f.duration=s[60]),o.$set(f),(!l||u[1]&2097152)&&B(n,"fullscreen",s[52])},i(s){l||(d(r),d(a),d(o.$$.fragment,s),l=!0)},o(s){_(r),_(a),_(o.$$.fragment,s),l=!1},d(s){s&&(k(e),k(i),k(n)),r&&r.d(s),a&&a.d(s),L(o)}}}function $m(t){let e,i,n,o;function l(a){t[142](a)}let r={muted:t[54],expanded:!1,click:t[106]};return t[20].volume!==void 0&&(r.ref=t[20].volume),i=new qu({props:r}),be.push(()=>Oe(i,"ref",l)),{c(){e=P("div"),M(i.$$.fragment),c(e,"class","wrapper-top-right svelte-rwqnhz"),B(e,"fullscreen",t[52])},m(a,s){S(a,e,s),A(i,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,Ne(()=>n=!1)),i.$set(u),(!o||s[1]&2097152)&&B(e,"fullscreen",a[52])},i(a){o||(d(i.$$.fragment,a),o=!0)},o(a){_(i.$$.fragment,a),o=!1},d(a){a&&k(e),L(i)}}}function e0(t){let e,i,n,o;function l(a){t[143](a)}let r={disabled:t[49],click:t[63],isMobile:!0,isPlaying:!t[32]};return t[20].playButton!==void 0&&(r.ref=t[20].playButton),i=new Rl({props:r}),be.push(()=>Oe(i,"ref",l)),{c(){e=P("div"),M(i.$$.fragment),c(e,"class","wrapper-middle svelte-rwqnhz")},m(a,s){S(a,e,s),A(i,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,Ne(()=>n=!1)),i.$set(u)},i(a){o||(d(i.$$.fragment,a),o=!0)},o(a){_(i.$$.fragment,a),o=!1},d(a){a&&k(e),L(i)}}}function l5(t){let e,i,n;function o(r){t[144](r)}let l={disabled:t[48],$$slots:{default:[r5]},$$scope:{ctx:t}};return t[20].replayButton!==void 0&&(l.ref=t[20].replayButton),e=new At({props:l}),be.push(()=>Oe(e,"ref",o)),{c(){M(e.$$.fragment)},m(r,a){A(e,r,a),n=!0},p(r,a){let s={};a[1]&131072&&(s.disabled=r[48]),a[1]&131072|a[5]&4194304&&(s.$$scope={dirty:a,ctx:r}),!i&&a[0]&1048576&&(i=!0,s.ref=r[20].replayButton,Ne(()=>i=!1)),e.$set(s)},i(r){n||(d(e.$$.fragment,r),n=!0)},o(r){_(e.$$.fragment,r),n=!1},d(r){L(e,r)}}}function r5(t){let e,i;return e=new Bl({props:{disabled:t[48],click:t[95]}}),{c(){M(e.$$.fragment)},m(n,o){A(e,n,o),i=!0},p(n,o){let l={};o[1]&131072&&(l.disabled=n[48]),e.$set(l)},i(n){i||(d(e.$$.fragment,n),i=!0)},o(n){_(e.$$.fragment,n),i=!1},d(n){L(e,n)}}}function t0(t){let e,i,n;function o(r){t[145](r)}let l={$$slots:{default:[s5]},$$scope:{ctx:t}};return t[20].liveButton!==void 0&&(l.ref=t[20].liveButton),e=new At({props:l}),be.push(()=>Oe(e,"ref",o)),{c(){M(e.$$.fragment)},m(r,a){A(e,r,a),n=!0},p(r,a){let s={};a[0]&524288|a[1]&16384|a[5]&4194304&&(s.$$scope={dirty:a,ctx:r}),!i&&a[0]&1048576&&(i=!0,s.ref=r[20].liveButton,Ne(()=>i=!1)),e.$set(s)},i(r){n||(d(e.$$.fragment,r),n=!0)},o(r){_(e.$$.fragment,r),n=!1},d(r){L(e,r)}}}function s5(t){let e,i;return e=new Rr({props:{isActiveLive:t[19],isMobile:!0,ariaLabel:t[45]}}),{c(){M(e.$$.fragment)},m(n,o){A(e,n,o),i=!0},p(n,o){let l={};o[0]&524288&&(l.isActiveLive=n[19]),o[1]&16384&&(l.ariaLabel=n[45]),e.$set(l)},i(n){i||(d(e.$$.fragment,n),i=!0)},o(n){_(e.$$.fragment,n),i=!1},d(n){L(e,n)}}}function i0(t){let e,i,n;function o(r){t[146](r)}let l={showDuration:t[35],position:t[4]?t[59]:t[61],duration:t[4]?t[60]:t[62],isMobile:!0};return t[20].time!==void 0&&(l.ref=t[20].time),e=new Pr({props:l}),be.push(()=>Oe(e,"ref",o)),{c(){M(e.$$.fragment)},m(r,a){A(e,r,a),n=!0},p(r,a){let s={};a[1]&16&&(s.showDuration=r[35]),a[0]&16|a[1]&1342177280&&(s.position=r[4]?r[59]:r[61]),a[0]&16|a[1]&536870912|a[2]&1&&(s.duration=r[4]?r[60]:r[62]),!i&&a[0]&1048576&&(i=!0,s.ref=r[20].time,Ne(()=>i=!1)),e.$set(s)},i(r){n||(d(e.$$.fragment,r),n=!0)},o(r){_(e.$$.fragment,r),n=!1},d(r){L(e,r)}}}function n0(t){let e,i,n,o;return n=new Nr({props:{position:t[61],duration:t[62],timeCodes:t[84]}}),{c(){e=P("div"),e.textContent="\xB7",i=V(),M(n.$$.fragment),c(e,"aria-hidden","true")},m(l,r){S(l,e,r),S(l,i,r),A(n,l,r),o=!0},p(l,r){let a={};r[1]&1073741824&&(a.position=l[61]),r[2]&1&&(a.duration=l[62]),n.$set(a)},i(l){o||(d(n.$$.fragment,l),o=!0)},o(l){_(n.$$.fragment,l),o=!1},d(l){l&&(k(e),k(i)),L(n,l)}}}function a5(t){let e,i,n=t[43]&&n0(t);return{c(){n&&n.c(),e=ct()},m(o,l){n&&n.m(o,l),S(o,e,l),i=!0},p(o,l){o[43]?n?(n.p(o,l),l[1]&4096&&d(n,1)):(n=n0(o),n.c(),d(n,1),n.m(e.parentNode,e)):n&&(me(),_(n,1,1,()=>{n=null}),pe())},i(o){i||(d(n),i=!0)},o(o){_(n),i=!1},d(o){o&&k(e),n&&n.d(o)}}}function o0(t){let e,i,n;function o(r){t[149](r)}let l={$$slots:{default:[u5]},$$scope:{ctx:t}};return t[20].settings!==void 0&&(l.ref=t[20].settings),e=new At({props:l}),be.push(()=>Oe(e,"ref",o)),{c(){M(e.$$.fragment)},m(r,a){A(e,r,a),n=!0},p(r,a){let s={};a[0]&4194304|a[5]&4194304&&(s.$$scope={dirty:a,ctx:r}),!i&&a[0]&1048576&&(i=!0,s.ref=r[20].settings,Ne(()=>i=!1)),e.$set(s)},i(r){n||(d(e.$$.fragment,r),n=!0)},o(r){_(e.$$.fragment,r),n=!1},d(r){L(e,r)}}}function u5(t){let e,i,n;function o(r){t[148](r)}let l={};return t[22]!==void 0&&(l.ref=t[22]),e=new Ml({props:l}),be.push(()=>Oe(e,"ref",o)),{c(){M(e.$$.fragment)},m(r,a){A(e,r,a),n=!0},p(r,a){let s={};!i&&a[0]&4194304&&(i=!0,s.ref=r[22],Ne(()=>i=!1)),e.$set(s)},i(r){n||(d(e.$$.fragment,r),n=!0)},o(r){_(e.$$.fragment,r),n=!1},d(r){L(e,r)}}}function l0(t){let e,i,n;function o(r){t[150](r)}let l={$$slots:{default:[c5]},$$scope:{ctx:t}};return t[20].fullscreen!==void 0&&(l.ref=t[20].fullscreen),e=new At({props:l}),be.push(()=>Oe(e,"ref",o)),{c(){M(e.$$.fragment)},m(r,a){A(e,r,a),n=!0},p(r,a){let s={};a[0]&16384|a[1]&2097152|a[5]&4194304&&(s.$$scope={dirty:a,ctx:r}),!i&&a[0]&1048576&&(i=!0,s.ref=r[20].fullscreen,Ne(()=>i=!1)),e.$set(s)},i(r){n||(d(e.$$.fragment,r),n=!0)},o(r){_(e.$$.fragment,r),n=!1},d(r){L(e,r)}}}function c5(t){let e,i;return e=new Ar({props:{click:t[14],isFullscreen:t[52]}}),{c(){M(e.$$.fragment)},m(n,o){A(e,n,o),i=!0},p(n,o){let l={};o[0]&16384&&(l.click=n[14]),o[1]&2097152&&(l.isFullscreen=n[52]),e.$set(l)},i(n){i||(d(e.$$.fragment,n),i=!0)},o(n){_(e.$$.fragment,n),i=!1},d(n){L(e,n)}}}function r0(t){let e,i,n,o;function l(a){t[154](a)}let r={supportLink:t[11],returnFocus:t[15]};return t[21]!==void 0&&(r.ref=t[21]),i=new Cr({props:r}),be.push(()=>Oe(i,"ref",l)),{c(){e=P("div"),M(i.$$.fragment),c(e,"class","settings-mobile svelte-rwqnhz")},m(a,s){S(a,e,s),A(i,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],Ne(()=>n=!1)),i.$set(u)},i(a){o||(d(i.$$.fragment,a),o=!0)},o(a){_(i.$$.fragment,a),o=!1},d(a){a&&k(e),L(i)}}}function f5(t){let e,i,n;function o(r){t[155](r)}let l={};return t[20].interactiveTimeIndicator!==void 0&&(l.ref=t[20].interactiveTimeIndicator),e=new Jr({props:l}),be.push(()=>Oe(e,"ref",o)),{c(){M(e.$$.fragment)},m(r,a){A(e,r,a),n=!0},p(r,a){let s={};!i&&a[0]&1048576&&(i=!0,s.ref=r[20].interactiveTimeIndicator,Ne(()=>i=!1)),e.$set(s)},i(r){n||(d(e.$$.fragment,r),n=!0)},o(r){_(e.$$.fragment,r),n=!1},d(r){L(e,r)}}}function d5(t){let e,i,n,o,l,r,a,s,u,f,p,h,w,g,C,b,E,v,y,T=!t[4]&&zm(t),Y=t[4]&&t[30]!=="inactive"&&xm(t),q=t[96]&&l5(t),N=!t[4]&&t[25]&&t0(t),ne=t[41]&&i0(t);function ge(W){t[147](W)}let j={className:"w-max",disabled:!t[43],$$slots:{default:[a5]},$$scope:{ctx:t}};t[20].episodes!==void 0&&(j.ref=t[20].episodes),u=new At({props:j}),be.push(()=>Oe(u,"ref",ge));let X=t[38]&&o0(t),ae=t[40]&&l0(t);function K(W){t[152](W)}let z={isAds:t[4],canRewindLive:t[5],isRewindableLive:t[24]};t[20].timeline!==void 0&&(z.ref=t[20].timeline),g=new Dr({props:z}),be.push(()=>Oe(g,"ref",K));let G=t[23]&&r0(t),$=t[101]&&f5(t);return{c(){T&&T.c(),e=V(),Y&&Y.c(),i=V(),n=P("div"),o=P("div"),l=P("div"),q&&q.c(),r=V(),N&&N.c(),a=V(),ne&&ne.c(),s=V(),M(u.$$.fragment),p=V(),X&&X.c(),h=V(),ae&&ae.c(),w=V(),M(g.$$.fragment),b=V(),G&&G.c(),E=V(),$&&$.c(),v=ct(),c(l,"class","controls svelte-rwqnhz"),B(l,"mobile",!0),c(o,"class","controls-wrapper svelte-rwqnhz"),B(o,"fullscreen",t[52]),c(n,"class","wrapper-bottom svelte-rwqnhz"),B(n,"hidden",t[1]),B(n,"controls-hidden",!t[3]),B(n,"no-smooth",t[2]),B(n,"mobile",!0)},m(W,Q){T&&T.m(W,Q),S(W,e,Q),Y&&Y.m(W,Q),S(W,i,Q),S(W,n,Q),m(n,o),m(o,l),q&&q.m(l,null),m(l,r),N&&N.m(l,null),m(l,a),ne&&ne.m(l,null),m(l,s),A(u,l,null),m(l,p),X&&X.m(l,null),m(l,h),ae&&ae.m(l,null),t[151](l),m(o,w),A(g,o,null),t[153](n),S(W,b,Q),G&&G.m(W,Q),S(W,E,Q),$&&$.m(W,Q),S(W,v,Q),y=!0},p(W,Q){W[4]?T&&(me(),_(T,1,1,()=>{T=null}),pe()):T?(T.p(W,Q),Q[0]&16&&d(T,1)):(T=zm(W),T.c(),d(T,1),T.m(e.parentNode,e)),W[4]&&W[30]!=="inactive"?Y?(Y.p(W,Q),Q[0]&1073741840&&d(Y,1)):(Y=xm(W),Y.c(),d(Y,1),Y.m(i.parentNode,i)):Y&&(me(),_(Y,1,1,()=>{Y=null}),pe()),W[96]&&q.p(W,Q),!W[4]&&W[25]?N?(N.p(W,Q),Q[0]&33554448&&d(N,1)):(N=t0(W),N.c(),d(N,1),N.m(l,a)):N&&(me(),_(N,1,1,()=>{N=null}),pe()),W[41]?ne?(ne.p(W,Q),Q[1]&1024&&d(ne,1)):(ne=i0(W),ne.c(),d(ne,1),ne.m(l,s)):ne&&(me(),_(ne,1,1,()=>{ne=null}),pe());let te={};Q[1]&4096&&(te.disabled=!W[43]),Q[1]&1073745920|Q[2]&1|Q[5]&4194304&&(te.$$scope={dirty:Q,ctx:W}),!f&&Q[0]&1048576&&(f=!0,te.ref=W[20].episodes,Ne(()=>f=!1)),u.$set(te),W[38]?X?(X.p(W,Q),Q[1]&128&&d(X,1)):(X=o0(W),X.c(),d(X,1),X.m(l,h)):X&&(me(),_(X,1,1,()=>{X=null}),pe()),W[40]?ae?(ae.p(W,Q),Q[1]&512&&d(ae,1)):(ae=l0(W),ae.c(),d(ae,1),ae.m(l,null)):ae&&(me(),_(ae,1,1,()=>{ae=null}),pe());let re={};Q[0]&16&&(re.isAds=W[4]),Q[0]&32&&(re.canRewindLive=W[5]),Q[0]&16777216&&(re.isRewindableLive=W[24]),!C&&Q[0]&1048576&&(C=!0,re.ref=W[20].timeline,Ne(()=>C=!1)),g.$set(re),(!y||Q[1]&2097152)&&B(o,"fullscreen",W[52]),(!y||Q[0]&2)&&B(n,"hidden",W[1]),(!y||Q[0]&8)&&B(n,"controls-hidden",!W[3]),(!y||Q[0]&4)&&B(n,"no-smooth",W[2]),W[23]?G?(G.p(W,Q),Q[0]&8388608&&d(G,1)):(G=r0(W),G.c(),d(G,1),G.m(E.parentNode,E)):G&&(me(),_(G,1,1,()=>{G=null}),pe()),W[101]&&$.p(W,Q)},i(W){y||(d(T),d(Y),d(q),d(N),d(ne),d(u.$$.fragment,W),d(X),d(ae),d(g.$$.fragment,W),d(G),d($),y=!0)},o(W){_(T),_(Y),_(q),_(N),_(ne),_(u.$$.fragment,W),_(X),_(ae),_(g.$$.fragment,W),_(G),_($),y=!1},d(W){W&&(k(e),k(i),k(n),k(b),k(E),k(v)),T&&T.d(W),Y&&Y.d(W),q&&q.d(),N&&N.d(),ne&&ne.d(),L(u),X&&X.d(),ae&&ae.d(),t[151](null),L(g),t[153](null),G&&G.d(W),$&&$.d(W)}}}function m5(t,e,i){let n,o,l,r,a,s,u,f,p,h,w,g,C,b,E,v,y,T,Y,q,N,ne,ge,j,X,ae,K,z,G,$,W,Q,te,re,Ve,Xe,Se,{bottomHidden:Me}=e,{bottomNoSmooth:Ue}=e,{showControls:$e}=e,{controlsElementRef:ce=void 0}=e,{isAds:_e=!1}=e,{canRewindLive:at}=e,{logoClickable:ke}=e,{logoHidden:Fe}=e,{logoTargetUrl:ft=""}=e,{showNextPrevButtons:Qe}=e,{nextButtonActive:je}=e,{prevButtonActive:Ze}=e,{isOneVideoPlaylist:xe=!1}=e,{supportLink:x}=e,{customFullscreenSupported:De=!0}=e,{playNextVideo:ze}=e,{playPrevVideo:fe}=e,{repeatPlaylist:se}=e,{toggleFullscreen:nt}=e,{returnFocus:de}=e,{seekToInteractive:ot}=e,{toggleGraph:lt}=e,{playPrevChapter:dt}=e,{onDisabledPlayPrevChapterClick:yt}=e,{onDisabledSeekToInteractiveClick:Et}=e,Ye=it(),Kt=Bn(),qt=Bt(),Tt=Ye.actions.internal.toggleMuted,ai=Ye.actions.internal.togglePlay,rt=Ye.actions.internal.pause,wt=Ye.callbacks?.onAudioDoesNotExistHint,we=Ye.callbacks?.onAudioDisabledHint,gt=Ye.playerPhase;D(t,gt,ee=>i(126,N=ee));let kt=Ye.state.duration$;D(t,kt,ee=>i(62,Se=ee));let Xt=Ye.state.positionWithScrubbing$;D(t,Xt,ee=>i(61,Xe=ee));let St=Ye.state.playbackState$;D(t,St,ee=>i(121,h=ee));let jt=Ye.state.isAudioAvailable$;D(t,jt,ee=>i(51,w=ee));let Gt=Ye.state.isAudioDisabled,Dt=Ye.state.isEnded$;D(t,Dt,ee=>i(127,ge=ee));let Fi=Ye.state.isLive$;D(t,Fi,ee=>i(25,v=ee));let nn=Ye.state.muted$;D(t,nn,ee=>i(54,G=ee));let Jt=Ye.state.isActiveLive$;D(t,Jt,ee=>i(124,b=ee));let Li=Ye.state.isRewindableLive$;D(t,Li,ee=>i(24,E=ee));let sn=Ye.ui.scrubbingInProgress;D(t,sn,ee=>i(29,ne=ee));let zi=Ye.ui.mobileNotReportControlHidden$;D(t,zi,ee=>i(27,Y=ee));let on=Ye.ui.isPictureInPictureActive$;D(t,on,ee=>i(26,T=ee));let bi=Ye.ui.pictureInPictureType$;D(t,bi,ee=>i(125,y=ee));let vi=Ye.ui.mobileUnmuteButtonExpanded;D(t,vi,ee=>i(55,$=ee));let ui=Ye.ui.mobileUnmuteButtonVisible;D(t,ui,ee=>i(53,z=ee));let ci=Ye.ui.settingsMenuVisible;D(t,ci,ee=>i(23,p=ee));let yi=Ye.ui.settingsMenuOpenedByKeyboard;D(t,yi,ee=>i(120,f=ee));let wi=Ye.ui.controls,ki=Ye.actions.internal.getVideoEpisodes(),fi=Ye.webApi.pictureInPictureApi,Hi=Ye.state.chromecastState$;D(t,Hi,ee=>i(28,q=ee));let Nt=Ye.state.crashed$;D(t,Nt,ee=>i(57,Q=ee));let Si=wi.disabledControls$;D(t,Si,ee=>i(128,X=ee));let Mi=Ye.ui.startedByKeyboard$;D(t,Mi,ee=>i(119,u=ee));let Ui=Ye.ads.duration;D(t,Ui,ee=>i(60,Ve=ee));let di=Ye.ads.position;D(t,di,ee=>i(59,re=ee));let Lt=Ye.ads.playbackState;D(t,Lt,ee=>i(30,j=ee));let Wi=Ye.ui.isFullscreen;D(t,Wi,ee=>i(52,K=ee));let Vi=Ye.ui.playerSize;D(t,Vi,ee=>i(123,C=ee));let Ot=Ye.ui.additionalButtons$;D(t,Ot,ee=>i(56,W=ee));let Ki=Ye.actions.internal.getVideoElement,ji=Ye.actions.internal.replayInteractive,Qt=Ye.state.isInteractive,Ci=Ye.state.isInteractiveTime$;D(t,Ci,ee=>i(122,g=ee));let mi=Ye.state.showInteractiveGraph,Pi=Ye.state.showSeekToInteractive,Yt=Ye.state.showPlayPrevChapter,Ft=Ye.state.showInteractiveTimeIndicator,xt=Ye.state.graphIsOpened$;D(t,xt,ee=>i(58,te=ee));let Ri=Kt.seekToInteractiveDisabledTooltip$;D(t,Ri,ee=>i(129,ae=ee));let ni,oi,$t,Gi,Qi,an,Bi,ei,ti,Yi,Mt,Vt,Zi,Ti,ii,Xi,et,Ii,zt,We={},Ji=e5(Zr,260,{leading:!1}),un=()=>Ye.actions.internal.toggleChromecast();function cn(){po({isAudioDisabled:Gt,audioDisabledHintCallback:we,isAudioAvailable:w,audioIsNotExistHintCallback:wt})&&Tt()}async function xi(){fi?.isActive()?await fi?.remove():await fi?.request()}function qi(){!Gt&&w&&ui.set(!1),cn()}let ln=xe?ai:se,Di="",Zt=(ee,Gn)=>{if(!ee){i(45,Di=O("tooltip_live"));return}Gn===Om.PAUSED&&i(45,Di=O("tooltip_play"))},$i,pi,hn=()=>{s&&yt(ni)},fn=()=>{l&&Et(oi)};function dn(ee){t.$$.not_equal(We.volume,ee)&&(We.volume=ee,i(20,We))}function yn(ee){t.$$.not_equal(We.chromecast,ee)&&(We.chromecast=ee,i(20,We))}function rn(ee){t.$$.not_equal(We.pip,ee)&&(We.pip=ee,i(20,We))}function mn(ee){pi=ee,i(22,pi)}function pn(ee){t.$$.not_equal(We.vkLogo,ee)&&(We.vkLogo=ee,i(20,We))}function en(ee){t.$$.not_equal(We.prevButton,ee)&&(We.prevButton=ee,i(20,We))}function _i(ee){t.$$.not_equal(We.playButton,ee)&&(We.playButton=ee,i(20,We))}function wn(ee){t.$$.not_equal(We.replayButton,ee)&&(We.replayButton=ee,i(20,We))}function tn(ee){t.$$.not_equal(We.nextButton,ee)&&(We.nextButton=ee,i(20,We))}function En(ee){t.$$.not_equal(We.playPrevChapterButton,ee)&&(We.playPrevChapterButton=ee,i(20,We))}function Ht(ee){t.$$.not_equal(We.interactiveGraphButton,ee)&&(We.interactiveGraphButton=ee,i(20,We))}function An(ee){t.$$.not_equal(We.seekToInteractiveButton,ee)&&(We.seekToInteractiveButton=ee,i(20,We))}function Ln(ee){t.$$.not_equal(We.volume,ee)&&(We.volume=ee,i(20,We))}function kn(ee){t.$$.not_equal(We.playButton,ee)&&(We.playButton=ee,i(20,We))}function Mn(ee){t.$$.not_equal(We.replayButton,ee)&&(We.replayButton=ee,i(20,We))}function le(ee){t.$$.not_equal(We.liveButton,ee)&&(We.liveButton=ee,i(20,We))}function _t(ee){t.$$.not_equal(We.time,ee)&&(We.time=ee,i(20,We))}function Ni(ee){t.$$.not_equal(We.episodes,ee)&&(We.episodes=ee,i(20,We))}function _n(ee){pi=ee,i(22,pi)}function ie(ee){t.$$.not_equal(We.settings,ee)&&(We.settings=ee,i(20,We))}function mt(ee){t.$$.not_equal(We.fullscreen,ee)&&(We.fullscreen=ee,i(20,We))}function li(ee){be[ee?"unshift":"push"](()=>{Ii=ee,i(44,Ii)})}function Sn(ee){t.$$.not_equal(We.timeline,ee)&&(We.timeline=ee,i(20,We))}function On(ee){be[ee?"unshift":"push"](()=>{ce=ee,i(0,ce)})}function Xn(ee){$i=ee,i(21,$i)}function no(ee){t.$$.not_equal(We.interactiveTimeIndicator,ee)&&(We.interactiveTimeIndicator=ee,i(20,We))}return t.$$set=ee=>{"bottomHidden"in ee&&i(1,Me=ee.bottomHidden),"bottomNoSmooth"in ee&&i(2,Ue=ee.bottomNoSmooth),"showControls"in ee&&i(3,$e=ee.showControls),"controlsElementRef"in ee&&i(0,ce=ee.controlsElementRef),"isAds"in ee&&i(4,_e=ee.isAds),"canRewindLive"in ee&&i(5,at=ee.canRewindLive),"logoClickable"in ee&&i(6,ke=ee.logoClickable),"logoHidden"in ee&&i(110,Fe=ee.logoHidden),"logoTargetUrl"in ee&&i(7,ft=ee.logoTargetUrl),"showNextPrevButtons"in ee&&i(8,Qe=ee.showNextPrevButtons),"nextButtonActive"in ee&&i(9,je=ee.nextButtonActive),"prevButtonActive"in ee&&i(10,Ze=ee.prevButtonActive),"isOneVideoPlaylist"in ee&&i(111,xe=ee.isOneVideoPlaylist),"supportLink"in ee&&i(11,x=ee.supportLink),"customFullscreenSupported"in ee&&i(112,De=ee.customFullscreenSupported),"playNextVideo"in ee&&i(12,ze=ee.playNextVideo),"playPrevVideo"in ee&&i(13,fe=ee.playPrevVideo),"repeatPlaylist"in ee&&i(113,se=ee.repeatPlaylist),"toggleFullscreen"in ee&&i(14,nt=ee.toggleFullscreen),"returnFocus"in ee&&i(15,de=ee.returnFocus),"seekToInteractive"in ee&&i(16,ot=ee.seekToInteractive),"toggleGraph"in ee&&i(17,lt=ee.toggleGraph),"playPrevChapter"in ee&&i(18,dt=ee.playPrevChapter),"onDisabledPlayPrevChapterClick"in ee&&i(114,yt=ee.onDisabledPlayPrevChapterClick),"onDisabledSeekToInteractiveClick"in ee&&i(115,Et=ee.onDisabledSeekToInteractiveClick)},t.$$.update=()=>{if(t.$$.dirty[4]&32&&(oi=O(ae)),t.$$.dirty[4]&16&&i(118,n=X.has("EPISODE_BUTTON")),t.$$.dirty[4]&16&&i(50,o=X.has("GRAPH_BUTTON")),t.$$.dirty[4]&16&&i(46,l=X.has("SEEK_TO_INTERACTIVE_BUTTON")),t.$$.dirty[4]&16&&i(49,r=X.has("PLAY_BUTTON")),t.$$.dirty[4]&16&&i(48,a=X.has("REPLAY_BUTTON")),t.$$.dirty[4]&16&&i(47,s=X.has("PLAY_PREV_CHAPTER_BUTTON")),t.$$.dirty[3]&268435456&&i(31,$t=h===Om.PLAYING),t.$$.dirty[0]&1073741824&&i(32,Gi=j==="paused"),t.$$.dirty[0]&16|t.$$.dirty[4]&8&&i(33,Qi=ge&&!_e&&!Qt),t.$$.dirty[0]&16|t.$$.dirty[4]&8&&i(34,an=!ge||_e),t.$$.dirty[3]&1073741824&&i(116,Bi=C.width>300),t.$$.dirty[3]&1073741824&&i(35,ei=C.width>400),t.$$.dirty[0]&536870912&&i(117,ti=ne),t.$$.dirty[0]&469762048|t.$$.dirty[4]&2&&i(36,Yi=q!==Nm.NOT_AVAILABLE&&!(T&&y===1)&&!Y&&!Qt),t.$$.dirty[0]&402653184|t.$$.dirty[3]&16777216|t.$$.dirty[4]&6){let ee=N==="LiveWaitingStart";i(37,Mt=!!fi&&q!==Nm.CONNECTED&&!Y&&(y===1&&ee||!ee)&&!ti&&!Qt)}t.$$.dirty[3]&16777216&&i(38,Vt=!ti),t.$$.dirty[3]&1073872896&&i(39,Zi=!Fe&&C.width>350),t.$$.dirty[0]&67108864|t.$$.dirty[3]&17301504|t.$$.dirty[4]&2&&i(40,Ti=qt.features.fullscreen&&!(T&&y===1)&&(Qt?De:!0)&&!ti),t.$$.dirty[0]&33554448|t.$$.dirty[3]&1090519040&&i(41,ii=(!v||_e)&&C.width>260&&!ti&&!(qt.features.interactiveHideTime&&Qt)),t.$$.dirty[0]&8388616&&i(42,Xi=p||$e),t.$$.dirty[0]&33554448|t.$$.dirty[3]&58720256&&i(43,et=!_e&&!v&&!!ki?.length&&Bi&&!n&&!ti),t.$$.dirty[0]&16777216|t.$$.dirty[4]&1&&i(19,zt=!E||b),t.$$.dirty[0]&1048584|t.$$.dirty[3]&1610612736&&Ji(Ki(),wi,We,$e),t.$$.dirty[0]&524288|t.$$.dirty[3]&268435456&&Zt(zt,h),t.$$.dirty[0]&12582912&&sl(pi,p,yi),t.$$.dirty[0]&10485760|t.$$.dirty[3]&134217728&&Do($i,p,f),t.$$.dirty[0]&1048576|t.$$.dirty[3]&67108864&&Xr(Mi,u,We.playButton)},ni=O(Ye.state.playPrevChapterDisabledTooltip),[ce,Me,Ue,$e,_e,at,ke,ft,Qe,je,Ze,x,ze,fe,nt,de,ot,lt,dt,zt,We,$i,pi,p,E,v,T,Y,q,ne,j,$t,Gi,Qi,an,ei,Yi,Mt,Vt,Zi,Ti,ii,Xi,et,Ii,Di,l,s,a,r,o,w,K,z,G,$,W,Q,te,re,Ve,Xe,Se,ai,rt,gt,kt,Xt,St,jt,Gt,Dt,Fi,nn,Jt,Li,sn,zi,on,bi,vi,ui,ci,yi,ki,Hi,Nt,Si,Mi,Ui,di,Lt,Wi,Vi,Ot,ji,Qt,Ci,mi,Pi,Yt,Ft,xt,Ri,un,xi,qi,ln,hn,fn,Fe,xe,De,se,yt,Et,Bi,ti,n,u,f,h,g,C,b,y,N,ge,X,ae,dn,yn,rn,mn,pn,en,_i,wn,tn,En,Ht,An,Ln,kn,Mn,le,_t,Ni,_n,ie,mt,li,Sn,On,Xn,no]}var Fu=class extends H{constructor(e){super(),U(this,e,m5,d5,F,{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},t5,[-1,-1,-1,-1,-1,-1])}},s0=Fu;function p5(t){let e,i,n;function o(r){t[28](r)}let l={bottomHidden:t[1],bottomNoSmooth:t[2],showControls:t[3],isAds:t[4],canRewindLive:t[5],logoClickable:t[6],logoHidden:t[7],logoTargetUrl:t[8],showNextPrevButtons:t[9],nextButtonActive:t[10],prevButtonActive:t[11],isOneVideoPlaylist:t[12],supportLink:t[13],customFullscreenSupported:t[14],playNextVideo:t[15],playPrevVideo:t[16],repeatPlaylist:t[17],toggleFullscreen:t[18],returnFocus:t[19],seekToInteractive:t[20],toggleGraph:t[21],playPrevChapter:t[22]};return t[0]!==void 0&&(l.controlsElementRef=t[0]),e=new Mm({props:l}),be.push(()=>Oe(e,"controlsElementRef",o)),{c(){M(e.$$.fragment)},m(r,a){A(e,r,a),n=!0},p(r,a){let s={};a&2&&(s.bottomHidden=r[1]),a&4&&(s.bottomNoSmooth=r[2]),a&8&&(s.showControls=r[3]),a&16&&(s.isAds=r[4]),a&32&&(s.canRewindLive=r[5]),a&64&&(s.logoClickable=r[6]),a&128&&(s.logoHidden=r[7]),a&256&&(s.logoTargetUrl=r[8]),a&512&&(s.showNextPrevButtons=r[9]),a&1024&&(s.nextButtonActive=r[10]),a&2048&&(s.prevButtonActive=r[11]),a&4096&&(s.isOneVideoPlaylist=r[12]),a&8192&&(s.supportLink=r[13]),a&16384&&(s.customFullscreenSupported=r[14]),a&32768&&(s.playNextVideo=r[15]),a&65536&&(s.playPrevVideo=r[16]),a&131072&&(s.repeatPlaylist=r[17]),a&262144&&(s.toggleFullscreen=r[18]),a&524288&&(s.returnFocus=r[19]),a&1048576&&(s.seekToInteractive=r[20]),a&2097152&&(s.toggleGraph=r[21]),a&4194304&&(s.playPrevChapter=r[22]),!i&&a&1&&(i=!0,s.controlsElementRef=r[0],Ne(()=>i=!1)),e.$set(s)},i(r){n||(d(e.$$.fragment,r),n=!0)},o(r){_(e.$$.fragment,r),n=!1},d(r){L(e,r)}}}function _5(t){let e,i,n;function o(r){t[27](r)}let l={bottomHidden:t[1],bottomNoSmooth:t[2],showControls:t[3],isAds:t[4],canRewindLive:t[5],logoClickable:t[6],logoHidden:t[7],logoTargetUrl:t[8],showNextPrevButtons:t[9],nextButtonActive:t[10],prevButtonActive:t[11],isOneVideoPlaylist:t[12],supportLink:t[13],customFullscreenSupported:t[14],playNextVideo:t[15],playPrevVideo:t[16],repeatPlaylist:t[17],toggleFullscreen:t[18],returnFocus:t[19],seekToInteractive:t[20],toggleGraph:t[21],playPrevChapter:t[22],onDisabledPlayPrevChapterClick:t[23],onDisabledSeekToInteractiveClick:t[24]};return t[0]!==void 0&&(l.controlsElementRef=t[0]),e=new s0({props:l}),be.push(()=>Oe(e,"controlsElementRef",o)),{c(){M(e.$$.fragment)},m(r,a){A(e,r,a),n=!0},p(r,a){let s={};a&2&&(s.bottomHidden=r[1]),a&4&&(s.bottomNoSmooth=r[2]),a&8&&(s.showControls=r[3]),a&16&&(s.isAds=r[4]),a&32&&(s.canRewindLive=r[5]),a&64&&(s.logoClickable=r[6]),a&128&&(s.logoHidden=r[7]),a&256&&(s.logoTargetUrl=r[8]),a&512&&(s.showNextPrevButtons=r[9]),a&1024&&(s.nextButtonActive=r[10]),a&2048&&(s.prevButtonActive=r[11]),a&4096&&(s.isOneVideoPlaylist=r[12]),a&8192&&(s.supportLink=r[13]),a&16384&&(s.customFullscreenSupported=r[14]),a&32768&&(s.playNextVideo=r[15]),a&65536&&(s.playPrevVideo=r[16]),a&131072&&(s.repeatPlaylist=r[17]),a&262144&&(s.toggleFullscreen=r[18]),a&524288&&(s.returnFocus=r[19]),a&1048576&&(s.seekToInteractive=r[20]),a&2097152&&(s.toggleGraph=r[21]),a&4194304&&(s.playPrevChapter=r[22]),a&8388608&&(s.onDisabledPlayPrevChapterClick=r[23]),a&16777216&&(s.onDisabledSeekToInteractiveClick=r[24]),!i&&a&1&&(i=!0,s.controlsElementRef=r[0],Ne(()=>i=!1)),e.$set(s)},i(r){n||(d(e.$$.fragment,r),n=!0)},o(r){_(e.$$.fragment,r),n=!1},d(r){L(e,r)}}}function h5(t){let e,i,n,o,l=[_5,p5],r=[];function a(s,u){return s[25]?0:1}return e=a(t,-1),i=r[e]=l[e](t),{c(){i.c(),n=ct()},m(s,u){r[e].m(s,u),S(s,n,u),o=!0},p(s,[u]){let f=e;e=a(s,u),e===f?r[e].p(s,u):(me(),_(r[f],1,1,()=>{r[f]=null}),pe(),i=r[e],i?i.p(s,u):(i=r[e]=l[e](s),i.c()),d(i,1),i.m(n.parentNode,n))},i(s){o||(d(i),o=!0)},o(s){_(i),o=!1},d(s){s&&k(n),r[e].d(s)}}}function g5(t,e,i){let n,{bottomHidden:o}=e,{bottomNoSmooth:l=!1}=e,{showControls:r}=e,{controlsElementRef:a=void 0}=e,{isAds:s=!1}=e,{canRewindLive:u}=e,{logoClickable:f}=e,{logoHidden:p}=e,{logoTargetUrl:h=""}=e,{showNextPrevButtons:w}=e,{nextButtonActive:g}=e,{prevButtonActive:C}=e,{isOneVideoPlaylist:b=!1}=e,{supportLink:E}=e,{customFullscreenSupported:v=!0}=e,{playNextVideo:y}=e,{playPrevVideo:T}=e,{repeatPlaylist:Y}=e,{toggleFullscreen:q}=e,{returnFocus:N=zu}=e,{seekToInteractive:ne}=e,{toggleGraph:ge}=e,{playPrevChapter:j}=e,{onDisabledPlayPrevChapterClick:X=zu}=e,{onDisabledSeekToInteractiveClick:ae=zu}=e,z=it().ui.isMobile;D(t,z,W=>i(25,n=W));function G(W){a=W,i(0,a)}function $(W){a=W,i(0,a)}return t.$$set=W=>{"bottomHidden"in W&&i(1,o=W.bottomHidden),"bottomNoSmooth"in W&&i(2,l=W.bottomNoSmooth),"showControls"in W&&i(3,r=W.showControls),"controlsElementRef"in W&&i(0,a=W.controlsElementRef),"isAds"in W&&i(4,s=W.isAds),"canRewindLive"in W&&i(5,u=W.canRewindLive),"logoClickable"in W&&i(6,f=W.logoClickable),"logoHidden"in W&&i(7,p=W.logoHidden),"logoTargetUrl"in W&&i(8,h=W.logoTargetUrl),"showNextPrevButtons"in W&&i(9,w=W.showNextPrevButtons),"nextButtonActive"in W&&i(10,g=W.nextButtonActive),"prevButtonActive"in W&&i(11,C=W.prevButtonActive),"isOneVideoPlaylist"in W&&i(12,b=W.isOneVideoPlaylist),"supportLink"in W&&i(13,E=W.supportLink),"customFullscreenSupported"in W&&i(14,v=W.customFullscreenSupported),"playNextVideo"in W&&i(15,y=W.playNextVideo),"playPrevVideo"in W&&i(16,T=W.playPrevVideo),"repeatPlaylist"in W&&i(17,Y=W.repeatPlaylist),"toggleFullscreen"in W&&i(18,q=W.toggleFullscreen),"returnFocus"in W&&i(19,N=W.returnFocus),"seekToInteractive"in W&&i(20,ne=W.seekToInteractive),"toggleGraph"in W&&i(21,ge=W.toggleGraph),"playPrevChapter"in W&&i(22,j=W.playPrevChapter),"onDisabledPlayPrevChapterClick"in W&&i(23,X=W.onDisabledPlayPrevChapterClick),"onDisabledSeekToInteractiveClick"in W&&i(24,ae=W.onDisabledSeekToInteractiveClick)},[a,o,l,r,s,u,f,p,h,w,g,C,b,E,v,y,T,Y,q,N,ne,ge,j,X,ae,n,z,G,$]}var Hu=class extends H{constructor(e){super(),U(this,e,g5,h5,F,{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})}},xr=Hu;function b5(t){let e,i,n,o,l,r,a,s,u,f,p,h,w,g,C=t[2].default,b=Ie(C,t,t[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"},t[0]],v={};for(let y=0;y<E.length;y+=1)v=ue(v,E[y]);return{c(){e=R("svg"),b&&b.c(),i=R("g"),n=R("path"),o=R("path"),l=R("defs"),r=R("filter"),a=R("feFlood"),s=R("feColorMatrix"),u=R("feOffset"),f=R("feGaussianBlur"),p=R("feColorMatrix"),h=R("feBlend"),w=R("feBlend"),c(n,"fill","#fff"),c(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"),c(o,"stroke","#000"),c(o,"stroke-opacity",".12"),c(o,"stroke-width",".5"),c(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"),c(i,"filter","url(#a)"),c(a,"flood-opacity","0"),c(a,"result","BackgroundImageFix"),c(s,"in","SourceAlpha"),c(s,"result","hardAlpha"),c(s,"values","0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0"),c(f,"stdDeviation","2.5"),c(p,"values","0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.16 0"),c(h,"in2","BackgroundImageFix"),c(h,"result","effect1_dropShadow_2260_100684"),c(w,"in","SourceGraphic"),c(w,"in2","effect1_dropShadow_2260_100684"),c(w,"result","shape"),c(r,"id","a"),c(r,"width","43.996"),c(r,"height","49.5"),c(r,"x","2.5"),c(r,"y","0"),c(r,"color-interpolation-filters","sRGB"),c(r,"filterUnits","userSpaceOnUse"),ye(e,v)},m(y,T){S(y,e,T),b&&b.m(e,null),m(e,i),m(i,n),m(i,o),m(e,l),m(l,r),m(r,a),m(r,s),m(r,u),m(r,f),m(r,p),m(r,h),m(r,w),g=!0},p(y,[T]){b&&b.p&&(!g||T&2)&&Ae(b,C,y,y[1],g?Ee(C,y[1],T,null):Le(y[1]),null),ye(e,v=Be(E,[{xmlns:"http://www.w3.org/2000/svg"},{width:"48"},{height:"51"},{fill:"none"},{"aria-hidden":"true"},{"data-testid":"seek-icon"},{role:"img"},T&1&&y[0]]))},i(y){g||(d(b,y),g=!0)},o(y){_(b,y),g=!1},d(y){y&&k(e),b&&b.d(y)}}}function v5(t,e,i){let{$$slots:n={},$$scope:o}=e;return t.$$set=l=>{i(0,e=ue(ue({},e),ve(l))),"$$scope"in l&&i(1,o=l.$$scope)},e=ve(e),[e,o,n]}var Uu=class extends H{constructor(e){super(),U(this,e,v5,b5,F,{})}},a0=Uu;function y5(t){let e,i;return e=new a0({props:{style:t[0]}}),{c(){M(e.$$.fragment)},m(n,o){A(e,n,o),i=!0},p(n,[o]){let l={};o&1&&(l.style=n[0]),e.$set(l)},i(n){i||(d(e.$$.fragment,n),i=!0)},o(n){_(e.$$.fragment,n),i=!1},d(n){L(e,n)}}}function w5(t,e,i){let n,{reversed:o=!1}=e;return t.$$set=l=>{"reversed"in l&&i(1,o=l.reversed)},t.$$.update=()=>{t.$$.dirty&2&&i(0,n=o?"transform: scaleX(-1);":void 0)},[n,o]}var Wu=class extends H{constructor(e){super(),U(this,e,w5,y5,F,{reversed:1})}},u0=Wu;function k5(t){let e,i,n,o,l,r,a,s,u,f,p,h,w,g,C,b,E=t[2].default,v=Ie(E,t,t[1],null),y=[{xmlns:"http://www.w3.org/2000/svg"},{width:"48"},{height:"48"},{fill:"none"},{"aria-hidden":"true"},{"data-testid":"subtitles-on-icon"},{role:"img"},t[0]],T={};for(let Y=0;Y<y.length;Y+=1)T=ue(T,y[Y]);return{c(){e=R("svg"),v&&v.c(),i=R("g"),n=R("path"),o=R("path"),l=R("defs"),r=R("clipPath"),a=R("path"),s=R("filter"),u=R("feFlood"),f=R("feColorMatrix"),p=R("feOffset"),h=R("feGaussianBlur"),w=R("feColorMatrix"),g=R("feBlend"),C=R("feBlend"),c(n,"fill","#fff"),c(n,"fill-rule","evenodd"),c(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"),c(n,"clip-rule","evenodd"),c(o,"stroke","#000"),c(o,"stroke-opacity",".12"),c(o,"stroke-width",".5"),c(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"),c(i,"clip-path","url(#c)"),c(i,"filter","url(#a)"),c(a,"fill","#fff"),c(a,"d","M0 0h48v48H0z"),c(r,"id","c"),c(u,"flood-opacity","0"),c(u,"result","BackgroundImageFix"),c(f,"in","SourceAlpha"),c(f,"result","hardAlpha"),c(f,"values","0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0"),c(h,"stdDeviation","2.5"),c(w,"values","0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.16 0"),c(g,"in2","BackgroundImageFix"),c(g,"result","effect1_dropShadow_2260_104204"),c(C,"in","SourceGraphic"),c(C,"in2","effect1_dropShadow_2260_104204"),c(C,"result","shape"),c(s,"id","a"),c(s,"width","51"),c(s,"height","45"),c(s,"x","-1.5"),c(s,"y","1.5"),c(s,"color-interpolation-filters","sRGB"),c(s,"filterUnits","userSpaceOnUse"),ye(e,T)},m(Y,q){S(Y,e,q),v&&v.m(e,null),m(e,i),m(i,n),m(i,o),m(e,l),m(l,r),m(r,a),m(l,s),m(s,u),m(s,f),m(s,p),m(s,h),m(s,w),m(s,g),m(s,C),b=!0},p(Y,[q]){v&&v.p&&(!b||q&2)&&Ae(v,E,Y,Y[1],b?Ee(E,Y[1],q,null):Le(Y[1]),null),ye(e,T=Be(y,[{xmlns:"http://www.w3.org/2000/svg"},{width:"48"},{height:"48"},{fill:"none"},{"aria-hidden":"true"},{"data-testid":"subtitles-on-icon"},{role:"img"},q&1&&Y[0]]))},i(Y){b||(d(v,Y),b=!0)},o(Y){_(v,Y),b=!1},d(Y){Y&&k(e),v&&v.d(Y)}}}function S5(t,e,i){let{$$slots:n={},$$scope:o}=e;return t.$$set=l=>{i(0,e=ue(ue({},e),ve(l))),"$$scope"in l&&i(1,o=l.$$scope)},e=ve(e),[e,o,n]}var Ku=class extends H{constructor(e){super(),U(this,e,S5,k5,F,{})}},c0=Ku;function C5(t){let e,i,n,o,l,r,a,s,u,f,p,h,w,g,C,b,E,v=t[2].default,y=Ie(v,t,t[1],null),T=[{xmlns:"http://www.w3.org/2000/svg"},{width:"48"},{height:"48"},{fill:"none"},{"aria-hidden":"true"},{"data-testid":"subtitles-off-icon"},{role:"img"},t[0]],Y={};for(let q=0;q<T.length;q+=1)Y=ue(Y,T[q]);return{c(){e=R("svg"),y&&y.c(),i=R("g"),n=R("path"),o=R("path"),l=R("path"),r=R("defs"),a=R("clipPath"),s=R("path"),u=R("filter"),f=R("feFlood"),p=R("feColorMatrix"),h=R("feOffset"),w=R("feGaussianBlur"),g=R("feColorMatrix"),C=R("feBlend"),b=R("feBlend"),c(n,"fill","#fff"),c(n,"fill-rule","evenodd"),c(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"),c(n,"clip-rule","evenodd"),c(o,"fill","#fff"),c(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"),c(l,"stroke","#000"),c(l,"stroke-opacity",".12"),c(l,"stroke-width",".5"),c(l,"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"),c(i,"clip-path","url(#c)"),c(i,"filter","url(#a)"),c(s,"fill","#fff"),c(s,"d","M0 0h48v48H0z"),c(a,"id","c"),c(f,"flood-opacity","0"),c(f,"result","BackgroundImageFix"),c(p,"in","SourceAlpha"),c(p,"result","hardAlpha"),c(p,"values","0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0"),c(w,"stdDeviation","2.5"),c(g,"values","0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.16 0"),c(C,"in2","BackgroundImageFix"),c(C,"result","effect1_dropShadow_2260_104293"),c(b,"in","SourceGraphic"),c(b,"in2","effect1_dropShadow_2260_104293"),c(b,"result","shape"),c(u,"id","a"),c(u,"width","51"),c(u,"height","51"),c(u,"x","-1.5"),c(u,"y","-1.5"),c(u,"color-interpolation-filters","sRGB"),c(u,"filterUnits","userSpaceOnUse"),ye(e,Y)},m(q,N){S(q,e,N),y&&y.m(e,null),m(e,i),m(i,n),m(i,o),m(i,l),m(e,r),m(r,a),m(a,s),m(r,u),m(u,f),m(u,p),m(u,h),m(u,w),m(u,g),m(u,C),m(u,b),E=!0},p(q,[N]){y&&y.p&&(!E||N&2)&&Ae(y,v,q,q[1],E?Ee(v,q[1],N,null):Le(q[1]),null),ye(e,Y=Be(T,[{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&&q[0]]))},i(q){E||(d(y,q),E=!0)},o(q){_(y,q),E=!1},d(q){q&&k(e),y&&y.d(q)}}}function P5(t,e,i){let{$$slots:n={},$$scope:o}=e;return t.$$set=l=>{i(0,e=ue(ue({},e),ve(l))),"$$scope"in l&&i(1,o=l.$$scope)},e=ve(e),[e,o,n]}var ju=class extends H{constructor(e){super(),U(this,e,P5,C5,F,{})}},f0=ju;function T5(t){let e,i;return e=new c0({}),{c(){M(e.$$.fragment)},m(n,o){A(e,n,o),i=!0},i(n){i||(d(e.$$.fragment,n),i=!0)},o(n){_(e.$$.fragment,n),i=!1},d(n){L(e,n)}}}function I5(t){let e,i;return e=new f0({}),{c(){M(e.$$.fragment)},m(n,o){A(e,n,o),i=!0},i(n){i||(d(e.$$.fragment,n),i=!0)},o(n){_(e.$$.fragment,n),i=!1},d(n){L(e,n)}}}function E5(t){let e,i,n,o,l=[I5,T5],r=[];function a(s,u){return s[0]?0:1}return e=a(t,-1),i=r[e]=l[e](t),{c(){i.c(),n=ct()},m(s,u){r[e].m(s,u),S(s,n,u),o=!0},p(s,[u]){let f=e;e=a(s,u),e!==f&&(me(),_(r[f],1,1,()=>{r[f]=null}),pe(),i=r[e],i||(i=r[e]=l[e](s),i.c()),d(i,1),i.m(n.parentNode,n))},i(s){o||(d(i),o=!0)},o(s){_(i),o=!1},d(s){s&&k(n),r[e].d(s)}}}function A5(t,e,i){let{isOff:n=!1}=e;return t.$$set=o=>{"isOff"in o&&i(0,n=o.isOff)},[n]}var Gu=class extends H{constructor(e){super(),U(this,e,A5,E5,F,{isOff:0})}},Qu=Gu;function L5(t){let e,i,n,o,l,r,a,s,u,f,p,h,w,g,C=t[2].default,b=Ie(C,t,t[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"},t[0]],v={};for(let y=0;y<E.length;y+=1)v=ue(v,E[y]);return{c(){e=R("svg"),b&&b.c(),i=R("g"),n=R("path"),o=R("path"),l=R("defs"),r=R("filter"),a=R("feFlood"),s=R("feColorMatrix"),u=R("feOffset"),f=R("feGaussianBlur"),p=R("feColorMatrix"),h=R("feBlend"),w=R("feBlend"),c(n,"fill","#fff"),c(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"),c(o,"stroke","#000"),c(o,"stroke-opacity",".12"),c(o,"stroke-width",".5"),c(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"),c(i,"filter","url(#a)"),c(a,"flood-opacity","0"),c(a,"result","BackgroundImageFix"),c(s,"in","SourceAlpha"),c(s,"result","hardAlpha"),c(s,"values","0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0"),c(f,"stdDeviation","2.5"),c(p,"values","0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.16 0"),c(h,"in2","BackgroundImageFix"),c(h,"result","effect1_dropShadow_2260_106627"),c(w,"in","SourceGraphic"),c(w,"in2","effect1_dropShadow_2260_106627"),c(w,"result","shape"),c(r,"id","a"),c(r,"width","40.098"),c(r,"height","27.785"),c(r,"x","3.402"),c(r,"y","10.105"),c(r,"color-interpolation-filters","sRGB"),c(r,"filterUnits","userSpaceOnUse"),ye(e,v)},m(y,T){S(y,e,T),b&&b.m(e,null),m(e,i),m(i,n),m(i,o),m(e,l),m(l,r),m(r,a),m(r,s),m(r,u),m(r,f),m(r,p),m(r,h),m(r,w),g=!0},p(y,[T]){b&&b.p&&(!g||T&2)&&Ae(b,C,y,y[1],g?Ee(C,y[1],T,null):Le(y[1]),null),ye(e,v=Be(E,[{xmlns:"http://www.w3.org/2000/svg"},{width:"48"},{height:"48"},{fill:"none"},{"aria-hidden":"true"},{"data-testid":"rate-change-icon"},{role:"img"},T&1&&y[0]]))},i(y){g||(d(b,y),g=!0)},o(y){_(b,y),g=!1},d(y){y&&k(e),b&&b.d(y)}}}function M5(t,e,i){let{$$slots:n={},$$scope:o}=e;return t.$$set=l=>{i(0,e=ue(ue({},e),ve(l))),"$$scope"in l&&i(1,o=l.$$scope)},e=ve(e),[e,o,n]}var Yu=class extends H{constructor(e){super(),U(this,e,M5,L5,F,{})}},d0=Yu;function V5(t){let e,i;return e=new d0({props:{style:t[0]}}),{c(){M(e.$$.fragment)},m(n,o){A(e,n,o),i=!0},p(n,[o]){let l={};o&1&&(l.style=n[0]),e.$set(l)},i(n){i||(d(e.$$.fragment,n),i=!0)},o(n){_(e.$$.fragment,n),i=!1},d(n){L(e,n)}}}function R5(t,e,i){let n,{reversed:o=!1}=e;return t.$$set=l=>{"reversed"in l&&i(1,o=l.reversed)},t.$$.update=()=>{t.$$.dirty&2&&i(0,n=o?"transform: scaleX(-1);":void 0)},[n,o]}var Zu=class extends H{constructor(e){super(),U(this,e,R5,V5,F,{reversed:1})}},m0=Zu;function B5(t){let e,i,n,o,l,r,a,s,u,f,p,h,w,g,C=t[2].default,b=Ie(C,t,t[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"},t[0]],v={};for(let y=0;y<E.length;y+=1)v=ue(v,E[y]);return{c(){e=R("svg"),b&&b.c(),i=R("g"),n=R("path"),o=R("path"),l=R("defs"),r=R("filter"),a=R("feFlood"),s=R("feColorMatrix"),u=R("feOffset"),f=R("feGaussianBlur"),p=R("feColorMatrix"),h=R("feBlend"),w=R("feBlend"),c(n,"fill","#fff"),c(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"),c(o,"stroke","#000"),c(o,"stroke-opacity",".12"),c(o,"stroke-width",".5"),c(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"),c(i,"filter","url(#a)"),c(a,"flood-opacity","0"),c(a,"result","BackgroundImageFix"),c(s,"in","SourceAlpha"),c(s,"result","hardAlpha"),c(s,"values","0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0"),c(f,"stdDeviation","2.5"),c(p,"values","0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.16 0"),c(h,"in2","BackgroundImageFix"),c(h,"result","effect1_dropShadow_2340_106922"),c(w,"in","SourceGraphic"),c(w,"in2","effect1_dropShadow_2340_106922"),c(w,"result","shape"),c(r,"id","a"),c(r,"width","37"),c(r,"height","37"),c(r,"x","5.5"),c(r,"y","5.5"),c(r,"color-interpolation-filters","sRGB"),c(r,"filterUnits","userSpaceOnUse"),ye(e,v)},m(y,T){S(y,e,T),b&&b.m(e,null),m(e,i),m(i,n),m(i,o),m(e,l),m(l,r),m(r,a),m(r,s),m(r,u),m(r,f),m(r,p),m(r,h),m(r,w),g=!0},p(y,[T]){b&&b.p&&(!g||T&2)&&Ae(b,C,y,y[1],g?Ee(C,y[1],T,null):Le(y[1]),null),ye(e,v=Be(E,[{xmlns:"http://www.w3.org/2000/svg"},{width:"48"},{height:"48"},{fill:"none"},{"aria-hidden":"true"},{"data-testid":"episodes-seek-icon"},{role:"img"},T&1&&y[0]]))},i(y){g||(d(b,y),g=!0)},o(y){_(b,y),g=!1},d(y){y&&k(e),b&&b.d(y)}}}function q5(t,e,i){let{$$slots:n={},$$scope:o}=e;return t.$$set=l=>{i(0,e=ue(ue({},e),ve(l))),"$$scope"in l&&i(1,o=l.$$scope)},e=ve(e),[e,o,n]}var Xu=class extends H{constructor(e){super(),U(this,e,q5,B5,F,{})}},p0=Xu;function D5(t){let e,i;return e=new p0({props:{style:t[0]}}),{c(){M(e.$$.fragment)},m(n,o){A(e,n,o),i=!0},p(n,[o]){let l={};o&1&&(l.style=n[0]),e.$set(l)},i(n){i||(d(e.$$.fragment,n),i=!0)},o(n){_(e.$$.fragment,n),i=!1},d(n){L(e,n)}}}function N5(t,e,i){let n,{reversed:o=!1}=e;return t.$$set=l=>{"reversed"in l&&i(1,o=l.reversed)},t.$$.update=()=>{t.$$.dirty&2&&i(0,n=o?"transform: scaleX(-1);":void 0)},[n,o]}var Ju=class extends H{constructor(e){super(),U(this,e,N5,D5,F,{reversed:1})}},_0=Ju;function O5(t){Pe(t,"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 h0(t){let e,i=["BACKWARD_SEEK","FORWARD_SEEK"].includes(t[4]),n,o,l,r,a,s,u=["RATE_DOWN","RATE_UP"].includes(t[4]),f,p=["EPISODE_PREV","EPISODE_NEXT"].includes(t[4]),h,w,g,C,b,E=i&&g0(t),v=t[4]==="PAUSE"&&b0(t),y=t[4]==="PLAY"&&v0(t),T=t[4]==="REPLAY"&&y0(t),Y=t[4]==="SUBTITLES_OFF"&&w0(t),q=t[4]==="SUBTITLES_ON"&&k0(t),N=u&&S0(t),ne=p&&C0(t),ge=t[4]==="MUTE"&&P0(t),j=t[4]==="VOLUME"&&T0(t),X=t[5]&&I0(t);return{c(){e=P("div"),E&&E.c(),n=V(),v&&v.c(),o=V(),y&&y.c(),l=V(),T&&T.c(),r=V(),Y&&Y.c(),a=V(),q&&q.c(),s=V(),N&&N.c(),f=V(),ne&&ne.c(),h=V(),ge&&ge.c(),w=V(),j&&j.c(),g=V(),X&&X.c(),C=ct(),c(e,"class","svelte-1ad3n06")},m(ae,K){S(ae,e,K),E&&E.m(e,null),m(e,n),v&&v.m(e,null),m(e,o),y&&y.m(e,null),m(e,l),T&&T.m(e,null),m(e,r),Y&&Y.m(e,null),m(e,a),q&&q.m(e,null),m(e,s),N&&N.m(e,null),m(e,f),ne&&ne.m(e,null),m(e,h),ge&&ge.m(e,null),m(e,w),j&&j.m(e,null),S(ae,g,K),X&&X.m(ae,K),S(ae,C,K),b=!0},p(ae,K){K&16&&(i=["BACKWARD_SEEK","FORWARD_SEEK"].includes(ae[4])),i?E?(E.p(ae,K),K&16&&d(E,1)):(E=g0(ae),E.c(),d(E,1),E.m(e,n)):E&&(me(),_(E,1,1,()=>{E=null}),pe()),ae[4]==="PAUSE"?v?K&16&&d(v,1):(v=b0(ae),v.c(),d(v,1),v.m(e,o)):v&&(me(),_(v,1,1,()=>{v=null}),pe()),ae[4]==="PLAY"?y?K&16&&d(y,1):(y=v0(ae),y.c(),d(y,1),y.m(e,l)):y&&(me(),_(y,1,1,()=>{y=null}),pe()),ae[4]==="REPLAY"?T?K&16&&d(T,1):(T=y0(ae),T.c(),d(T,1),T.m(e,r)):T&&(me(),_(T,1,1,()=>{T=null}),pe()),ae[4]==="SUBTITLES_OFF"?Y?K&16&&d(Y,1):(Y=w0(ae),Y.c(),d(Y,1),Y.m(e,a)):Y&&(me(),_(Y,1,1,()=>{Y=null}),pe()),ae[4]==="SUBTITLES_ON"?q?K&16&&d(q,1):(q=k0(ae),q.c(),d(q,1),q.m(e,s)):q&&(me(),_(q,1,1,()=>{q=null}),pe()),K&16&&(u=["RATE_DOWN","RATE_UP"].includes(ae[4])),u?N?(N.p(ae,K),K&16&&d(N,1)):(N=S0(ae),N.c(),d(N,1),N.m(e,f)):N&&(me(),_(N,1,1,()=>{N=null}),pe()),K&16&&(p=["EPISODE_PREV","EPISODE_NEXT"].includes(ae[4])),p?ne?(ne.p(ae,K),K&16&&d(ne,1)):(ne=C0(ae),ne.c(),d(ne,1),ne.m(e,h)):ne&&(me(),_(ne,1,1,()=>{ne=null}),pe()),ae[4]==="MUTE"?ge?K&16&&d(ge,1):(ge=P0(ae),ge.c(),d(ge,1),ge.m(e,w)):ge&&(me(),_(ge,1,1,()=>{ge=null}),pe()),ae[4]==="VOLUME"?j?K&16&&d(j,1):(j=T0(ae),j.c(),d(j,1),j.m(e,null)):j&&(me(),_(j,1,1,()=>{j=null}),pe()),ae[5]?X?X.p(ae,K):(X=I0(ae),X.c(),X.m(C.parentNode,C)):X&&(X.d(1),X=null)},i(ae){b||(d(E),d(v),d(y),d(T),d(Y),d(q),d(N),d(ne),d(ge),d(j),b=!0)},o(ae){_(E),_(v),_(y),_(T),_(Y),_(q),_(N),_(ne),_(ge),_(j),b=!1},d(ae){ae&&(k(e),k(g),k(C)),E&&E.d(),v&&v.d(),y&&y.d(),T&&T.d(),Y&&Y.d(),q&&q.d(),N&&N.d(),ne&&ne.d(),ge&&ge.d(),j&&j.d(),X&&X.d(ae)}}}function g0(t){let e,i;return e=new u0({props:{reversed:t[4]==="FORWARD_SEEK"}}),{c(){M(e.$$.fragment)},m(n,o){A(e,n,o),i=!0},p(n,o){let l={};o&16&&(l.reversed=n[4]==="FORWARD_SEEK"),e.$set(l)},i(n){i||(d(e.$$.fragment,n),i=!0)},o(n){_(e.$$.fragment,n),i=!1},d(n){L(e,n)}}}function b0(t){let e,i;return e=new Lr({}),{c(){M(e.$$.fragment)},m(n,o){A(e,n,o),i=!0},i(n){i||(d(e.$$.fragment,n),i=!0)},o(n){_(e.$$.fragment,n),i=!1},d(n){L(e,n)}}}function v0(t){let e,i;return e=new pl({}),{c(){M(e.$$.fragment)},m(n,o){A(e,n,o),i=!0},i(n){i||(d(e.$$.fragment,n),i=!0)},o(n){_(e.$$.fragment,n),i=!1},d(n){L(e,n)}}}function y0(t){let e,i;return e=new zr({}),{c(){M(e.$$.fragment)},m(n,o){A(e,n,o),i=!0},i(n){i||(d(e.$$.fragment,n),i=!0)},o(n){_(e.$$.fragment,n),i=!1},d(n){L(e,n)}}}function w0(t){let e,i;return e=new Qu({props:{isOff:!0}}),{c(){M(e.$$.fragment)},m(n,o){A(e,n,o),i=!0},i(n){i||(d(e.$$.fragment,n),i=!0)},o(n){_(e.$$.fragment,n),i=!1},d(n){L(e,n)}}}function k0(t){let e,i;return e=new Qu({}),{c(){M(e.$$.fragment)},m(n,o){A(e,n,o),i=!0},i(n){i||(d(e.$$.fragment,n),i=!0)},o(n){_(e.$$.fragment,n),i=!1},d(n){L(e,n)}}}function S0(t){let e,i;return e=new m0({props:{reversed:t[4]==="RATE_UP"}}),{c(){M(e.$$.fragment)},m(n,o){A(e,n,o),i=!0},p(n,o){let l={};o&16&&(l.reversed=n[4]==="RATE_UP"),e.$set(l)},i(n){i||(d(e.$$.fragment,n),i=!0)},o(n){_(e.$$.fragment,n),i=!1},d(n){L(e,n)}}}function C0(t){let e,i;return e=new _0({props:{reversed:t[4]==="EPISODE_NEXT"}}),{c(){M(e.$$.fragment)},m(n,o){A(e,n,o),i=!0},p(n,o){let l={};o&16&&(l.reversed=n[4]==="EPISODE_NEXT"),e.$set(l)},i(n){i||(d(e.$$.fragment,n),i=!0)},o(n){_(e.$$.fragment,n),i=!1},d(n){L(e,n)}}}function P0(t){let e,i;return e=new zo({props:{volume:0}}),{c(){M(e.$$.fragment)},m(n,o){A(e,n,o),i=!0},i(n){i||(d(e.$$.fragment,n),i=!0)},o(n){_(e.$$.fragment,n),i=!1},d(n){L(e,n)}}}function T0(t){let e,i;return e=new zo({props:{volume:1}}),{c(){M(e.$$.fragment)},m(n,o){A(e,n,o),i=!0},i(n){i||(d(e.$$.fragment,n),i=!0)},o(n){_(e.$$.fragment,n),i=!1},d(n){L(e,n)}}}function I0(t){let e,i;return{c(){e=P("span"),i=Re(t[5]),c(e,"class","hot-key-helpers-text svelte-1ad3n06")},m(n,o){S(n,e,o),m(e,i)},p(n,o){o&32&&Ge(i,n[5])},d(n){n&&k(e)}}}function F5(t){let e,i,n=!t[1]&&t[4]&&h0(t);return{c(){e=P("div"),n&&n.c(),c(e,"class","hot-key-helpers-container svelte-1ad3n06"),B(e,"hidden",t[1]),B(e,"hot-key-helpers-container--left",t[2]),B(e,"hot-key-helpers-container--right",t[3])},m(o,l){S(o,e,l),n&&n.m(e,null),i=!0},p(o,[l]){!o[1]&&o[4]?n?(n.p(o,l),l&18&&d(n,1)):(n=h0(o),n.c(),d(n,1),n.m(e,null)):n&&(me(),_(n,1,1,()=>{n=null}),pe()),(!i||l&2)&&B(e,"hidden",o[1]),(!i||l&4)&&B(e,"hot-key-helpers-container--left",o[2]),(!i||l&8)&&B(e,"hot-key-helpers-container--right",o[3])},i(o){i||(d(n),i=!0)},o(o){_(n),i=!1},d(o){o&&k(e),n&&n.d()}}}function z5(t,e,i){let n,o=Ce,l=()=>(o(),o=Ut(r,h=>i(6,n=h)),r);t.$$.on_destroy.push(()=>o());let{data:r}=e;l();let a,s,u,f,p;return t.$$set=h=>{"data"in h&&l(i(0,r=h.data))},t.$$.update=()=>{t.$$.dirty&64&&(i(1,a=!n),i(2,s=n?.type==="BACKWARD_SEEK"),i(3,u=n?.type==="FORWARD_SEEK"),i(4,f=n?.type),n?.t?i(5,p=O(n.t.key,{value:n.t.value||""})):i(5,p=n?.text))},[r,a,s,u,f,p,n]}var xu=class extends H{constructor(e){super(),U(this,e,z5,F5,F,{data:0},O5)}},E0=xu;function H5(t){Pe(t,"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 U5(t){let e,i,n,o,l,r,a,s,u,f,p,h,w,g,C,b,E,v,y;return l=new Kn({props:{direction:"up"}}),s=new Kn({props:{direction:"up"}}),h=new Kn({props:{direction:"up"}}),C=new Kn({props:{direction:"up"}}),{c(){e=P("div"),i=P("div"),n=P("div"),o=P("div"),M(l.$$.fragment),r=V(),a=P("div"),M(s.$$.fragment),u=V(),f=P("div"),p=P("div"),M(h.$$.fragment),w=V(),g=P("div"),M(C.$$.fragment),c(o,"class","button button-up svelte-1yzc86r"),c(a,"class","button button-right svelte-1yzc86r"),c(n,"class","button-row svelte-1yzc86r"),c(p,"class","button button-left svelte-1yzc86r"),c(g,"class","button button-down svelte-1yzc86r"),c(f,"class","button-row svelte-1yzc86r"),c(i,"class","button-block svelte-1yzc86r"),c(i,"aria-hidden","true"),c(e,"class","immersive-controls svelte-1yzc86r"),c(e,"tabindex","0"),c(e,"role","button"),c(e,"aria-label",b=O("aria_label_spherical_control")),B(e,"m-shifted",t[0])},m(T,Y){S(T,e,Y),m(e,i),m(i,n),m(n,o),A(l,o,null),m(n,r),m(n,a),A(s,a,null),m(i,u),m(i,f),m(f,p),A(h,p,null),m(f,w),m(f,g),A(C,g,null),E=!0,v||(y=[he(o,"mousedown",t[1]),he(o,"mouseup",t[5]),he(o,"mouseleave",t[5]),he(a,"mousedown",t[3]),he(a,"mouseup",t[5]),he(a,"mouseleave",t[5]),he(p,"mousedown",t[4]),he(p,"mouseup",t[5]),he(p,"mouseleave",t[5]),he(g,"mousedown",t[2]),he(g,"mouseup",t[5]),he(g,"mouseleave",t[5]),he(e,"keydown",t[6]),he(e,"keyup",t[7])],v=!0)},p(T,[Y]){(!E||Y&1)&&B(e,"m-shifted",T[0])},i(T){E||(d(l.$$.fragment,T),d(s.$$.fragment,T),d(h.$$.fragment,T),d(C.$$.fragment,T),E=!0)},o(T){_(l.$$.fragment,T),_(s.$$.fragment,T),_(h.$$.fragment,T),_(C.$$.fragment,T),E=!1},d(T){T&&k(e),L(l),L(s),L(h),L(C),v=!1,tt(y)}}}function W5(t,e,i){let{isShifted:n=!1}=e,o=it(),l=new Set(["ArrowUp","ArrowDown","ArrowLeft","ArrowRight"]),r=()=>{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)},f=()=>(o.actions.internal.stopCameraManualRotation(),null),p=w=>{if(l.has(w.code))switch(w.preventDefault(),w.stopPropagation(),w.code){case"ArrowUp":r();break;case"ArrowDown":a();break;case"ArrowLeft":u();break;case"ArrowRight":s();break}},h=w=>{l.has(w.code)&&(w.preventDefault(),w.stopPropagation(),f())};return t.$$set=w=>{"isShifted"in w&&i(0,n=w.isShifted)},[n,r,a,s,u,f,p,h]}var $u=class extends H{constructor(e){super(),U(this,e,W5,U5,F,{isShifted:0},H5)}},$r=$u;function K5(t){Pe(t,"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 A0(t,e,i){let n=t.slice();return n[16]=e[i].value,n}function L0(t,e,i){let n=t.slice();return n[16]=e[i].value,n[17]=e[i].timeAppeared,n}function M0(t){let e,i;function n(r,a){return r[7]&&r[8]?Q5:r[5]?G5:j5}let o=n(t,-1),l=o(t);return{c(){e=P("div"),i=P("span"),l.c(),c(i,"class","caption svelte-ovfyp5"),c(e,"class","subtitles-caption svelte-ovfyp5"),B(e,"mobile",t[3])},m(r,a){S(r,e,a),m(e,i),l.m(i,null)},p(r,a){o===(o=n(r,a))&&l?l.p(r,a):(l.d(1),l=o(r),l&&(l.c(),l.m(i,null))),a&8&&B(e,"mobile",r[3])},d(r){r&&k(e),l.d()}}}function j5(t){let e,i=Pt(t[1]),n=[];for(let o=0;o<i.length;o+=1)n[o]=V0(A0(t,i,o));return{c(){for(let o=0;o<n.length;o+=1)n[o].c();e=ct()},m(o,l){for(let r=0;r<n.length;r+=1)n[r]&&n[r].m(o,l);S(o,e,l)},p(o,l){if(l&18){i=Pt(o[1]);let r;for(r=0;r<i.length;r+=1){let a=A0(o,i,r);n[r]?n[r].p(a,l):(n[r]=V0(a),n[r].c(),n[r].m(e.parentNode,e))}for(;r<n.length;r+=1)n[r].d(1);n.length=i.length}},d(o){o&&k(e),Ai(n,o)}}}function G5(t){let e,i,n=Pt(t[6]),o=[];for(let l=0;l<n.length;l+=1)o[l]=B0(L0(t,n,l));return{c(){e=P("span"),i=P("span");for(let l=0;l<o.length;l+=1)o[l].c();c(i,"class","caption-segment svelte-ovfyp5"),hi(i,"font-size",t[4]+"px"),c(e,"class","caption-line svelte-ovfyp5")},m(l,r){S(l,e,r),m(e,i);for(let a=0;a<o.length;a+=1)o[a]&&o[a].m(i,null)},p(l,r){if(r&68){n=Pt(l[6]);let a;for(a=0;a<n.length;a+=1){let s=L0(l,n,a);o[a]?o[a].p(s,r):(o[a]=B0(s),o[a].c(),o[a].m(i,null))}for(;a<o.length;a+=1)o[a].d(1);o.length=n.length}r&16&&hi(i,"font-size",l[4]+"px")},d(l){l&&k(e),Ai(o,l)}}}function Q5(t){let e,i,n=O("subtitles_auto_caption")+"",o;return{c(){e=P("span"),i=P("span"),o=Re(n),c(i,"class","caption-segment svelte-ovfyp5"),hi(i,"font-size",t[4]+"px"),c(e,"class","caption-line svelte-ovfyp5")},m(l,r){S(l,e,r),m(e,i),m(i,o)},p(l,r){r&16&&hi(i,"font-size",l[4]+"px")},d(l){l&&k(e)}}}function V0(t){let e,i,n=t[16]+"",o,l;return{c(){e=P("span"),i=P("span"),o=Re(n),l=V(),c(i,"class","caption-segment svelte-ovfyp5"),hi(i,"font-size",t[4]+"px"),c(e,"class","caption-line svelte-ovfyp5")},m(r,a){S(r,e,a),m(e,i),m(i,o),m(e,l)},p(r,a){a&2&&n!==(n=r[16]+"")&&Ge(o,n),a&16&&hi(i,"font-size",r[4]+"px")},d(r){r&&k(e)}}}function R0(t){let e=t[16]+"",i;return{c(){i=Re(e)},m(n,o){S(n,i,o)},p(n,o){o&64&&e!==(e=n[16]+"")&&Ge(i,e)},d(n){n&&k(i)}}}function B0(t){let e,i=(!t[17]||t[17]<=t[2])&&R0(t);return{c(){i&&i.c(),e=ct()},m(n,o){i&&i.m(n,o),S(n,e,o)},p(n,o){!n[17]||n[17]<=n[2]?i?i.p(n,o):(i=R0(n),i.c(),i.m(e.parentNode,e)):i&&(i.d(1),i=null)},d(n){n&&k(e),i&&i.d(n)}}}function Y5(t){let e,i=t[1].length>0&&M0(t);return{c(){e=P("div"),i&&i.c(),c(e,"class","subtitles-container svelte-ovfyp5"),B(e,"shifted",t[0]),B(e,"auto",t[5]&&!t[8])},m(n,o){S(n,e,o),i&&i.m(e,null)},p(n,[o]){n[1].length>0?i?i.p(n,o):(i=M0(n),i.c(),i.m(e,null)):i&&(i.d(1),i=null),o&1&&B(e,"shifted",n[0]),o&288&&B(e,"auto",n[5]&&!n[8])},i:Ce,o:Ce,d(n){n&&k(e),i&&i.d()}}}function Z5(t,e,i){let n,o,{shifted:l}=e,{captions:r}=e,{position:a}=e,{playerSize:s}=e,{isMobile:u=!1}=e,f=it(),p=Bt(),h=f.state.currentSubtitle$;D(t,h,y=>i(12,n=y));let w=f.state.isAutoSubtitleCaptionVisible$;D(t,w,y=>i(8,o=y));let g,C,b,E,v;return It(()=>{v=window.setTimeout(()=>{w.set(!1)},p.autoSubtitlesTimeout)}),Hn(()=>{window.clearTimeout(v)}),t.$$set=y=>{"shifted"in y&&i(0,l=y.shifted),"captions"in y&&i(1,r=y.captions),"position"in y&&i(2,a=y.position),"playerSize"in y&&i(11,s=y.playerSize),"isMobile"in y&&i(3,u=y.isMobile)},t.$$.update=()=>{if(t.$$.dirty&2048){let y=s.width*.02;i(4,g=y<=p.minSubtitlesFontSize?p.minSubtitlesFontSize:y)}t.$$.dirty&2&&i(5,C=r.some(y=>y.type==="timestamp")),t.$$.dirty&2&&i(6,b=r.reduce((y,{type:T,value:Y})=>(T==="timestamp"?y.push({timeAppeared:Number(Y),value:""}):y.length===0?y.push({value:String(Y)}):y[y.length-1].value=String(Y),y),[])),t.$$.dirty&4096&&i(7,E=!!n.isAuto)},[l,r,a,u,g,C,b,E,o,h,w,s,n]}var ec=class extends H{constructor(e){super(),U(this,e,Z5,Y5,F,{shifted:0,captions:1,position:2,playerSize:11,isMobile:3},K5)}},es=ec;function X5(t){Pe(t,"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(t){let e,i,n;return{c(){e=P("div"),i=Re("\u0412\u0438\u0434\u0435\u043E \u0432\u043E\u0441\u043F\u0440\u043E\u0438\u0437\u0432\u043E\u0434\u0438\u0442\u0441\u044F \u043D\u0430 "),n=Re(t[1]),c(e,"class","text svelte-1o62kpz")},m(o,l){S(o,e,l),m(e,i),m(e,n)},p(o,l){l&2&&Ge(n,o[1])},d(o){o&&k(e)}}}function J5(t){let e,i,n,o,l,r,a=t[1]&&q0(t);return{c(){e=P("div"),i=P("div"),i.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=V(),a&&a.c(),c(i,"class","icon_wrapper svelte-1o62kpz"),c(e,"class","wrapper svelte-1o62kpz"),c(e,"style",o=`background-image: linear-gradient(0deg, rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)), url('${t[0]||""}')`)},m(s,u){S(s,e,u),m(e,i),m(e,n),a&&a.m(e,null),l||(r=he(e,"click",t[2]),l=!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]||""}')`)&&c(e,"style",o)},i:Ce,o:Ce,d(s){s&&k(e),a&&a.d(),l=!1,r()}}}function x5(t,e,i){let{thumbUrl:n}=e,{chromecastDeviceName:o}=e;function l(r){Pn.call(this,t,r)}return t.$$set=r=>{"thumbUrl"in r&&i(0,n=r.thumbUrl),"chromecastDeviceName"in r&&i(1,o=r.chromecastDeviceName)},[n,o,l]}var tc=class extends H{constructor(e){super(),U(this,e,x5,J5,F,{thumbUrl:0,chromecastDeviceName:1},X5)}},ts=tc;function $5(t){let e,i,n,o=t[2].default,l=Ie(o,t,t[1],null),r=[{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"},t[0]],a={};for(let s=0;s<r.length;s+=1)a=ue(a,r[s]);return{c(){e=R("svg"),l&&l.c(),i=R("path"),c(i,"fill","#fff"),c(i,"fill-rule","evenodd"),c(i,"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"),ye(e,a)},m(s,u){S(s,e,u),l&&l.m(e,null),m(e,i),n=!0},p(s,[u]){l&&l.p&&(!n||u&2)&&Ae(l,o,s,s[1],n?Ee(o,s[1],u,null):Le(s[1]),null),ye(e,a=Be(r,[{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(l,s),n=!0)},o(s){_(l,s),n=!1},d(s){s&&k(e),l&&l.d(s)}}}function e6(t,e,i){let{$$slots:n={},$$scope:o}=e;return t.$$set=l=>{i(0,e=ue(ue({},e),ve(l))),"$$scope"in l&&i(1,o=l.$$scope)},e=ve(e),[e,o,n]}var ic=class extends H{constructor(e){super(),U(this,e,e6,$5,F,{})}},D0=ic;function t6(t){Pe(t,"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 i6(t){let e,i,n;return i=new D0({}),{c(){e=P("div"),M(i.$$.fragment),c(e,"class","container svelte-13zpvm8")},m(o,l){S(o,e,l),A(i,e,null),n=!0},p:Ce,i(o){n||(d(i.$$.fragment,o),n=!0)},o(o){_(i.$$.fragment,o),n=!1},d(o){o&&k(e),L(i)}}}var nc=class extends H{constructor(e){super(),U(this,e,null,i6,F,{},t6)}},is=nc;function n6(t){Pe(t,"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 o6(t){let e,i,n,o,l,r,a,s,u,f;return l=new pl({}),{c(){e=P("div"),i=P("div"),n=P("div"),o=V(),M(l.$$.fragment),c(n,"class","playButtonBackground svelte-17wno3"),c(i,"class","playButton svelte-17wno3"),c(i,"tabindex","0"),c(i,"role","button"),c(i,"aria-label",r=O("tooltip_play")),c(e,"class","container svelte-17wno3"),c(e,"style",a=`background-color: #222; background-image: url('${t[0]||""}')`),B(e,"hidden",t[1])},m(p,h){S(p,e,h),m(e,i),m(i,n),m(i,o),A(l,i,null),s=!0,u||(f=[he(i,"keydown",t[3]),he(e,"click",st(function(){Ei(t[2])&&t[2].apply(this,arguments)}))],u=!0)},p(p,[h]){t=p,(!s||h&1&&a!==(a=`background-color: #222; background-image: url('${t[0]||""}')`))&&c(e,"style",a),(!s||h&2)&&B(e,"hidden",t[1])},i(p){s||(d(l.$$.fragment,p),s=!0)},o(p){_(l.$$.fragment,p),s=!1},d(p){p&&k(e),L(l),u=!1,tt(f)}}}function l6(t,e,i){let{thumbUrl:n}=e,{hidden:o}=e,{startVideo:l}=e,a=it().ui.startedByKeyboard$,s=u=>{let f=u.code;["Enter","Space"].includes(f)&&(u.stopPropagation(),u.preventDefault(),a.set(!0),l())};return t.$$set=u=>{"thumbUrl"in u&&i(0,n=u.thumbUrl),"hidden"in u&&i(1,o=u.hidden),"startVideo"in u&&i(2,l=u.startVideo)},[n,o,l,s]}var oc=class extends H{constructor(e){super(),U(this,e,l6,o6,F,{thumbUrl:0,hidden:1,startVideo:2,handlePressKey:3},n6)}get handlePressKey(){return this.$$.ctx[3]}},ns=oc;function r6(t){Pe(t,"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=Re(h),g=M(),b=Re(C),c(i,"class","svelte-1fypj5i"),c(e,"class","svelte-1fypj5i")},m(E,v){S(E,e,v),m(e,i),m(e,n),m(e,o),m(o,l),m(o,a),m(o,s),m(o,f),m(o,p),m(o,w),m(o,g),m(o,b)},p(E,v){v&1&&r!==(r=(E[0].videoCodec||"")+"")&&Ge(a,r),v&1&&u!==(u=E[0].hdr?"(HDR)":"")&&Ge(f,u),v&1&&h!==(h=(E[0].audioCodec||"")+"")&&Ge(w,h),v&1&&C!==(C=E[0].audioLanguage?`(${E[0].audioLanguage})`:"")&&Ge(b,C)},d(E){E&&k(e)}}}function ld(t){let e,i,n,o,l=t[0].viewport+"",r;return{c(){e=T("div"),i=T("div"),i.textContent="Viewport",n=M(),o=T("span"),r=Re(l),c(i,"class","svelte-1fypj5i"),c(e,"class","svelte-1fypj5i")},m(a,s){S(a,e,s),m(e,i),m(e,n),m(e,o),m(o,r)},p(a,s){s&1&&l!==(l=a[0].viewport+"")&&Ge(r,l)},d(a){a&&k(e)}}}function rd(t){let e,i,n,o,l=t[0].videoSize+"",r;return{c(){e=T("div"),i=T("div"),i.textContent="Video size",n=M(),o=T("span"),r=Re(l),c(i,"class","svelte-1fypj5i"),c(e,"class","svelte-1fypj5i")},m(a,s){S(a,e,s),m(e,i),m(e,n),m(e,o),m(o,r)},p(a,s){s&1&&l!==(l=a[0].videoSize+"")&&Ge(r,l)},d(a){a&&k(e)}}}function sd(t){let e,i,n,o,l=t[0].cdn+"",r;return{c(){e=T("div"),i=T("div"),i.textContent="CDN host",n=M(),o=T("span"),r=Re(l),c(i,"class","svelte-1fypj5i"),c(e,"class","svelte-1fypj5i")},m(a,s){S(a,e,s),m(e,i),m(e,n),m(e,o),m(o,r)},p(a,s){s&1&&l!==(l=a[0].cdn+"")&&Ge(r,l)},d(a){a&&k(e)}}}function ad(t){let e,i,n,o,l=t[0].volume+"",r,a;return{c(){e=T("div"),i=T("div"),i.textContent="Volume",n=M(),o=T("span"),r=Re(l),a=Re(" %"),c(i,"class","svelte-1fypj5i"),c(e,"class","svelte-1fypj5i")},m(s,u){S(s,e,u),m(e,i),m(e,n),m(e,o),m(o,r),m(o,a)},p(s,u){u&1&&l!==(l=s[0].volume+"")&&Ge(r,l)},d(s){s&&k(e)}}}function ud(t){let e,i,n,o,l=t[0].buffer.toFixed(2)+"",r,a;return{c(){e=T("div"),i=T("div"),i.textContent="Buffer",n=M(),o=T("span"),r=Re(l),a=Re(" s"),c(i,"class","svelte-1fypj5i"),c(e,"class","svelte-1fypj5i")},m(s,u){S(s,e,u),m(e,i),m(e,n),m(e,o),m(o,r),m(o,a)},p(s,u){u&1&&l!==(l=s[0].buffer.toFixed(2)+"")&&Ge(r,l)},d(s){s&&k(e)}}}function cd(t){let e,i,n,o,l=[{value:t[0].currentVideoSegmentLength,title:"Video:"},{value:t[0].currentAudioSegmentLength,title:"Audio:"}].filter(md).map(pd).join(" & ")+"",r;return{c(){e=T("div"),i=T("div"),i.textContent="Segment",n=M(),o=T("span"),r=Re(l),c(i,"class","svelte-1fypj5i"),c(e,"class","svelte-1fypj5i")},m(a,s){S(a,e,s),m(e,i),m(e,n),m(e,o),m(o,r)},p(a,s){s&1&&l!==(l=[{value:a[0].currentVideoSegmentLength,title:"Video:"},{value:a[0].currentAudioSegmentLength,title:"Audio:"}].filter(md).map(pd).join(" & ")+"")&&Ge(r,l)},d(a){a&&k(e)}}}function fd(t){let e,i,n,o,l,r,a=t[0].speed.toFixed(2)+"",s,u,f;return o=new _r({props:{values:t[5]}}),{c(){e=T("div"),i=T("div"),i.textContent="Network",n=M(),V(o.$$.fragment),l=M(),r=T("span"),s=Re(a),u=Re(" Kbps"),c(i,"class","svelte-1fypj5i"),c(e,"class","svelte-1fypj5i")},m(p,h){S(p,e,h),m(e,i),m(e,n),A(o,e,null),m(e,l),m(e,r),m(r,s),m(r,u),f=!0},p(p,h){let w={};h&32&&(w.values=p[5]),o.$set(w),(!f||h&1)&&a!==(a=p[0].speed.toFixed(2)+"")&&Ge(s,a)},i(p){f||(d(o.$$.fragment,p),f=!0)},o(p){_(o.$$.fragment,p),f=!1},d(p){p&&k(e),L(o)}}}function dd(t){let e,i,n,o,l,r,a=t[0].bitrate.toFixed(2)+"",s,u,f;return o=new _r({props:{values:t[6]}}),{c(){e=T("div"),i=T("div"),i.textContent="V bitrate",n=M(),V(o.$$.fragment),l=M(),r=T("span"),s=Re(a),u=Re(" Kbps"),c(i,"class","svelte-1fypj5i"),c(e,"class","svelte-1fypj5i")},m(p,h){S(p,e,h),m(e,i),m(e,n),A(o,e,null),m(e,l),m(e,r),m(r,s),m(r,u),f=!0},p(p,h){let w={};h&64&&(w.values=p[6]),o.$set(w),(!f||h&1)&&a!==(a=p[0].bitrate.toFixed(2)+"")&&Ge(s,a)},i(p){f||(d(o.$$.fragment,p),f=!0)},o(p){_(o.$$.fragment,p),f=!1},d(p){p&&k(e),L(o)}}}function Wh(t){let e,i,n,o,l,r,a,s,u=t[0].version+"",f,p,h,w,g,C,b,E,v,y,P,W,B,O,ne,ge,G,X,ae,j,z,Q,$,K,Y,ie,re,Ve,Xe,Se,Me,Ke,$e,ce,he=t[0].id&&td(t),at=t[0].vsid&&id(t),ke=t[0].provider&&nd(t),Fe=(t[0].videoCodec||t[0].audioCodec)&&od(t),ft=t[0].viewport&&ld(t),Qe=t[0].videoSize&&rd(t),je=t[0].cdn&&sd(t),Ze=t[0].volume&&ad(t),xe=t[0].buffer&&ud(t),x=(t[0].currentVideoSegmentLength||t[0].currentAudioSegmentLength)&&cd(t),De=t[0].speed&&fd(t),ze=t[0].bitrate&&dd(t);return re=new _r({props:{values:t[4]}}),{c(){e=T("div"),i=T("button"),i.textContent="[x]",n=M(),o=T("div"),l=T("div"),r=T("div"),r.textContent="Version",a=M(),s=T("span"),f=Re(u),p=M(),he&&he.c(),h=M(),at&&at.c(),w=M(),ke&&ke.c(),g=M(),Fe&&Fe.c(),C=M(),ft&&ft.c(),b=M(),Qe&&Qe.c(),E=M(),je&&je.c(),v=M(),Ze&&Ze.c(),y=M(),xe&&xe.c(),P=M(),x&&x.c(),W=M(),B=T("div"),O=T("div"),O.textContent="Dropped",ne=M(),ge=T("span"),G=Re(t[2]),X=Re(" / "),ae=Re(t[1]),j=Re(" frames"),z=M(),De&&De.c(),Q=M(),ze&&ze.c(),$=M(),K=T("div"),Y=T("div"),Y.textContent="FPS",ie=M(),V(re.$$.fragment),Ve=M(),Xe=T("span"),Se=Re(t[3]),c(i,"class","close svelte-1fypj5i"),c(i,"title","\u0437\u0430\u043A\u0440\u044B\u0442\u044C"),c(r,"class","svelte-1fypj5i"),c(l,"class","svelte-1fypj5i"),c(O,"class","svelte-1fypj5i"),c(B,"class","svelte-1fypj5i"),c(Y,"class","svelte-1fypj5i"),c(K,"class","svelte-1fypj5i"),c(o,"class","content svelte-1fypj5i"),c(e,"class","container svelte-1fypj5i"),c(e,"role","region"),c(e,"aria-label",Me=N("aria_label_debug_panel")),q(e,"container-mobile",t[7])},m(fe,se){S(fe,e,se),m(e,i),m(e,n),m(e,o),m(o,l),m(l,r),m(l,a),m(l,s),m(s,f),m(o,p),he&&he.m(o,null),m(o,h),at&&at.m(o,null),m(o,w),ke&&ke.m(o,null),m(o,g),Fe&&Fe.m(o,null),m(o,C),ft&&ft.m(o,null),m(o,b),Qe&&Qe.m(o,null),m(o,E),je&&je.m(o,null),m(o,v),Ze&&Ze.m(o,null),m(o,y),xe&&xe.m(o,null),m(o,P),x&&x.m(o,null),m(o,W),m(o,B),m(B,O),m(B,ne),m(B,ge),m(ge,G),m(ge,X),m(ge,ae),m(ge,j),m(o,z),De&&De.m(o,null),m(o,Q),ze&&ze.m(o,null),m(o,$),m(o,K),m(K,Y),m(K,ie),A(re,K,null),m(K,Ve),m(K,Xe),m(Xe,Se),Ke=!0,$e||(ce=_e(i,"click",ot(t[9])),$e=!0)},p(fe,[se]){(!Ke||se&1)&&u!==(u=fe[0].version+"")&&Ge(f,u),fe[0].id?he?he.p(fe,se):(he=td(fe),he.c(),he.m(o,h)):he&&(he.d(1),he=null),fe[0].vsid?at?at.p(fe,se):(at=id(fe),at.c(),at.m(o,w)):at&&(at.d(1),at=null),fe[0].provider?ke?ke.p(fe,se):(ke=nd(fe),ke.c(),ke.m(o,g)):ke&&(ke.d(1),ke=null),fe[0].videoCodec||fe[0].audioCodec?Fe?Fe.p(fe,se):(Fe=od(fe),Fe.c(),Fe.m(o,C)):Fe&&(Fe.d(1),Fe=null),fe[0].viewport?ft?ft.p(fe,se):(ft=ld(fe),ft.c(),ft.m(o,b)):ft&&(ft.d(1),ft=null),fe[0].videoSize?Qe?Qe.p(fe,se):(Qe=rd(fe),Qe.c(),Qe.m(o,E)):Qe&&(Qe.d(1),Qe=null),fe[0].cdn?je?je.p(fe,se):(je=sd(fe),je.c(),je.m(o,v)):je&&(je.d(1),je=null),fe[0].volume?Ze?Ze.p(fe,se):(Ze=ad(fe),Ze.c(),Ze.m(o,y)):Ze&&(Ze.d(1),Ze=null),fe[0].buffer?xe?xe.p(fe,se):(xe=ud(fe),xe.c(),xe.m(o,P)):xe&&(xe.d(1),xe=null),fe[0].currentVideoSegmentLength||fe[0].currentAudioSegmentLength?x?x.p(fe,se):(x=cd(fe),x.c(),x.m(o,W)):x&&(x.d(1),x=null),(!Ke||se&4)&&Ge(G,fe[2]),(!Ke||se&2)&&Ge(ae,fe[1]),fe[0].speed?De?(De.p(fe,se),se&1&&d(De,1)):(De=fd(fe),De.c(),d(De,1),De.m(o,Q)):De&&(me(),_(De,1,1,()=>{De=null}),pe()),fe[0].bitrate?ze?(ze.p(fe,se),se&1&&d(ze,1)):(ze=dd(fe),ze.c(),d(ze,1),ze.m(o,$)):ze&&(me(),_(ze,1,1,()=>{ze=null}),pe());let nt={};se&16&&(nt.values=fe[4]),re.$set(nt),(!Ke||se&8)&&Ge(Se,fe[3]),(!Ke||se&128)&&q(e,"container-mobile",fe[7])},i(fe){Ke||(d(De),d(ze),d(re.$$.fragment,fe),Ke=!0)},o(fe){_(De),_(ze),_(re.$$.fragment,fe),Ke=!1},d(fe){fe&&k(e),he&&he.d(),at&&at.d(),ke&&ke.d(),Fe&&Fe.d(),ft&&ft.d(),Qe&&Qe.d(),je&&je.d(),Ze&&Ze.d(),xe&&xe.d(),x&&x.d(),De&&De.d(),ze&&ze.d(),L(re),$e=!1,ce()}}}var md=({value:t})=>t,pd=({value:t,title:e})=>`${e} ${((t??0)/1e3).toFixed(2)} s`;function jh(t,e,i){let n,o=it(),l=o.ui.debugPanelVisible,r=o.ui.isMobile;D(t,r,y=>i(7,n=y));let a=()=>{ed.remove(Il),l.set(!1)},s=o.actions.internal.getDebugPanelData(),u=o.actions.internal.getVideoElement(),f=0,p=0,h=0,w=new dl(60),g=new dl(60),C=new dl(60),b=[],E=[],v=[];return It(()=>{ed.set(Il,"true"),o.actions.internal.startLogging(),u&&(i(2,p=u.getVideoPlaybackQuality().droppedVideoFrames),i(1,f=u.getVideoPlaybackQuality().totalVideoFrames));let y=window.setInterval(()=>{i(0,s=o.actions.internal.getDebugPanelData())},500),P;return u&&(P=window.setInterval(()=>{if(u){i(2,p=u.getVideoPlaybackQuality().droppedVideoFrames);let W=u.getVideoPlaybackQuality().totalVideoFrames;i(3,h=W-f),i(1,f=W),w.push(h),s.speed&&g.push(s.speed),s.bitrate&&C.push(s.bitrate),i(4,b=w.getValuesFromBottom()),i(5,E=g.getValuesFromBottom()),i(6,v=C.getValuesFromBottom())}},1e3)),()=>{o.actions.internal.stopLogging(),clearInterval(y),P&&clearInterval(P)}}),[s,f,p,h,b,E,v,n,r,a]}var Gs=class extends H{constructor(e){super(),U(this,e,jh,Wh,F,{},Kh)}},hr=Gs;function Gh(t){Te(t,"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 Qh(t){let e,i,n;return{c(){e=T("div"),c(e,"class","close svelte-1ome55p")},m(o,l){S(o,e,l),i||(n=_e(e,"click",ot(t[0])),i=!0)},p:Ce,i:Ce,o:Ce,d(o){o&&k(e),i=!1,n()}}}function Yh(t){function e(i){Cn.call(this,t,i)}return[e]}var Qs=class extends H{constructor(e){super(),U(this,e,Yh,Qh,F,{},Gh)}},_d=Qs;import{noop as Zh}from"@vkontakte/videoplayer-shared";function Xh(t){Te(t,"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 Jh(t){let e,i,n,o,l,r,a;return{c(){e=T("div"),i=T("canvas"),n=M(),o=R("svg"),l=R("g"),r=R("g"),a=R("path"),c(i,"class","timer-canvas svelte-8jhsry"),c(i,"width","100"),c(i,"height","100"),c(a,"class","_play"),c(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"),c(a,"fill","#fff"),c(r,"fill-rule","nonzero"),c(l,"fill","none"),c(l,"fill-rule","evenodd"),c(o,"class","timer-play-icon svelte-8jhsry"),c(o,"viewBox","0 0 24 24"),c(o,"xmlns","http://www.w3.org/2000/svg"),c(e,"class","timer svelte-8jhsry")},m(s,u){S(s,e,u),m(e,i),t[2](i),m(e,n),m(e,o),m(o,l),m(l,r),m(r,a)},p:Ce,i:Ce,o:Ce,d(s){s&&k(e),t[2](null)}}}var xh=5e3;function $h(t,e,i){let{onTimerEnded:n=Zh}=e,o;It(()=>{let r,a=o.getContext("2d");if(!a)return;a.lineWidth=6,a.lineCap="round",a.strokeStyle="#fff";let s=Date.now(),u=()=>{let f=(Date.now()-s)/xh;f<1?(a.clearRect(0,0,100,100),a.beginPath(),a.arc(50,50,47,-Math.PI/2,-Math.PI/2+Math.PI*2*f),a.stroke(),r=requestAnimationFrame(u)):n()};return r=requestAnimationFrame(u),()=>{cancelAnimationFrame(r)}});function l(r){be[r?"unshift":"push"](()=>{o=r,i(0,o)})}return t.$$set=r=>{"onTimerEnded"in r&&i(1,n=r.onTimerEnded)},[o,n,l]}var Ys=class extends H{constructor(e){super(),U(this,e,$h,Jh,F,{onTimerEnded:1},Xh)}},hd=Ys;function e2(t){Te(t,"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 gd(t){let e,i;return e=new hd({props:{onTimerEnded:t[2]}}),{c(){V(e.$$.fragment)},m(n,o){A(e,n,o),i=!0},p(n,o){let l={};o&4&&(l.onTimerEnded=n[2]),e.$set(l)},i(n){i||(d(e.$$.fragment,n),i=!0)},o(n){_(e.$$.fragment,n),i=!1},d(n){L(e,n)}}}function t2(t){let e,i,n,o,l,r,a,s,u,f,p,h,w,g,C,b,E,v,y,P,W;a=new _d({}),a.$on("click",t[4]);let B=t[3]&&gd(t);return{c(){e=T("div"),i=M(),n=T("div"),o=T("div"),l=T("div"),l.textContent="\u0441\u043B\u0435\u0434\u0443\u044E\u0449\u0435\u0435 \u0432\u0438\u0434\u0435\u043E",r=M(),V(a.$$.fragment),s=M(),u=T("div"),f=T("div"),p=T("div"),h=T("div"),w=M(),B&&B.c(),C=M(),b=T("div"),E=T("div"),v=Re(t[0]),c(e,"class","overlay svelte-kisfwc"),c(l,"class","caption svelte-kisfwc"),c(o,"class","top svelte-kisfwc"),c(h,"class","thumb-overlay svelte-kisfwc"),c(p,"class","thumb svelte-kisfwc"),c(p,"style",g=`background-image: url('${t[1]}')`),c(f,"class","column svelte-kisfwc"),c(E,"class","title svelte-kisfwc"),c(b,"class","column svelte-kisfwc"),c(u,"class","row svelte-kisfwc"),c(n,"class","next-video svelte-kisfwc")},m(O,ne){S(O,e,ne),S(O,i,ne),S(O,n,ne),m(n,o),m(o,l),m(o,r),A(a,o,null),m(n,s),m(n,u),m(u,f),m(f,p),m(p,h),m(p,w),B&&B.m(p,null),m(u,C),m(u,b),m(b,E),m(E,v),y=!0,P||(W=_e(u,"click",function(){Ii(t[2])&&t[2].apply(this,arguments)}),P=!0)},p(O,[ne]){t=O,t[3]?B?(B.p(t,ne),ne&8&&d(B,1)):(B=gd(t),B.c(),d(B,1),B.m(p,null)):B&&(me(),_(B,1,1,()=>{B=null}),pe()),(!y||ne&2&&g!==(g=`background-image: url('${t[1]}')`))&&c(p,"style",g),(!y||ne&1)&&Ge(v,t[0])},i(O){y||(d(a.$$.fragment,O),d(B),y=!0)},o(O){_(a.$$.fragment,O),_(B),y=!1},d(O){O&&(k(e),k(i),k(n)),L(a),B&&B.d(),P=!1,W()}}}function i2(t,e,i){let{title:n}=e,{thumb:o}=e,{playNextVideo:l}=e,r=!0,a=()=>i(3,r=!1);return t.$$set=s=>{"title"in s&&i(0,n=s.title),"thumb"in s&&i(1,o=s.thumb),"playNextVideo"in s&&i(2,l=s.playNextVideo)},[n,o,l,r,a]}var Zs=class extends H{constructor(e){super(),U(this,e,i2,t2,F,{title:0,thumb:1,playNextVideo:2},e2)}},bd=Zs;import{PlaybackState as Oo}from"@vkontakte/videoplayer-core";import{checkNever as o2}from"@vkontakte/videoplayer-shared";import{SeekAction as vn}from"@vkontakte/videoplayer-statistics";var Xs=(t,e)=>Math.min(+(t+e).toFixed(2),1),Js=(t,e)=>Math.max(+(t-e).toFixed(2),0),gr=(t,e,i)=>{let n=Xs(e,i);e<1&&t.actions.internal.setVolume(n)},br=(t,e,i)=>{let n=Js(e,i);e>0&&t.actions.internal.setVolume(n)};var po=({isAudioDisabled:t,audioDisabledHintCallback:e,isAudioAvailable:i,audioIsNotExistHintCallback:n})=>t?(e?.(),!1):i?!0:(n?.(),!1);function l2(t){Te(t,"svelte-10kkmxz",".keyboard-controls.svelte-10kkmxz{position:absolute;left:0;right:0;top:0;bottom:0}")}function r2(t){let e,i,n,o,l,r=t[26].default,a=Ie(r,t,t[25],null);return{c(){e=T("div"),a&&a.c(),c(e,"class","keyboard-controls svelte-10kkmxz"),c(e,"tabindex","-1"),c(e,"role","region"),c(e,"aria-label",i=N("aria_label_video_player"))},m(s,u){S(s,e,u),a&&a.m(e,null),t[27](e),n=!0,o||(l=[_e(e,"keyup",t[17]),_e(e,"keydown",t[16])],o=!0)},p(s,u){a&&a.p&&(!n||u[0]&33554432)&&Ae(a,r,s,s[25],n?Ee(r,s[25],u,null):Le(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),t[27](null),o=!1,tt(l)}}}function s2(t,e,i){let n,o,l,r,a,s,u,f,p,h,w,g,C,b,E,{$$slots:v={},$$scope:y}=e,{isAds:P}=e,{hideContextMenu:W}=e,{toggleFullscreen:B}=e,{showHotKeyHelpers:O}=e,{showKeyMap:ne}=e,{fakePlayButtonHandler:ge}=e,G=it(),X=Bt(),ae=G.getLogger().createComponentLog("KeyboardControls component"),j=G.state.playbackState$;D(t,j,de=>i(31,o=de));let z=G.ads.playbackState;D(t,z,de=>i(30,n=de));let Q=G.state.positionExact$;D(t,Q,de=>i(41,g=de));let $=G.state.duration$;D(t,$,de=>i(40,w=de));let K=G.state.volume$;D(t,K,de=>i(44,E=de));let Y=G.ui.controls.disabledControls$;D(t,Y,de=>i(39,h=de));let ie=G.state.muted$;D(t,ie,de=>i(34,a=de));let re=G.state.currentSubtitle$;D(t,re,de=>i(33,r=de));let Ve=G.state.currentPlaybackRate$;D(t,Ve,de=>i(42,C=de));let Xe=G.state.availablePlaybackRates$;D(t,Xe,de=>i(43,b=de));let Se=G.ui.contextMenu.openedByHotKey$,Me=G.ui.contextMenu.lastActiveElem$,Ke=G.ui.contextMenu.visible$,$e=G.ui.contextMenu.position$,ce=G.state.isEnded$;D(t,ce,de=>i(36,u=de));let he=G.ui.overlayContainer$;D(t,he,de=>i(32,l=de));let at=G.callbacks?.onAudioDoesNotExistHint,ke=G.callbacks?.onAudioDisabledHint,Fe=G.state.isAudioAvailable$;D(t,Fe,de=>i(35,s=de));let ft=G.state.isAudioDisabled,Qe=G.state.isInteractiveTime$;D(t,Qe,de=>i(38,p=de));let{showInteractiveTimeIndicatorTooltip$:je}=qn();D(t,je,de=>i(37,f=de));let Ze=0,xe=!0,x,De=()=>x?.focus(),ze=de=>(de!==xe&&(xe=de,Ze=0),Ze+=1,(X.controls.seekStepKeyboard+X.controls.seekStepKeyboard*Ze)/1e3),fe=de=>{let lt=de.target,rt=lt?.getAttribute("role")?.includes("menuitem"),dt=lt.classList.contains("btn"),yt=de.code;if(dt&&yt==="Space")return;let Et=Qc.has(yt);if(rt&&Et)return;let Ye=!Gc.has(yt);if(de.ctrlKey&&Ye||de.altKey&&Ye||de.metaKey)return;let Kt=rt&&yt==="Escape";Yc.has(yt)||Kt||W();let qt=o===Oo.PLAYING||o===Oo.PAUSED,kt=P&&(n==="paused"||n==="playing"),ui=!kt&&!h.has("TIMELINE");if(qt||kt)switch(ae({message:`key down, code: ${yt}`}),yt){case"KeyJ":case"ArrowLeft":{if(!ui)break;if(de.ctrlKey||de.altKey){let st=G.actions.internal.getPrevEpisode();G.actions.internal.seekToPrevEpisode(st),st&&O({type:"EPISODE_PREV",text:st.text}),de.preventDefault()}else{let st=de.shiftKey?ze(!1):X.controls.seekStepKeyboard/1e3,wt=Math.max(g-st,0);g>0&&(G.actions.internal.seekTime(wt,vn.DOUBLE_TAP),O({type:"BACKWARD_SEEK",text:st.toString()}),de.preventDefault())}break}case"KeyL":case"ArrowRight":{if(!ui)break;if(de.ctrlKey||de.altKey){let st=G.actions.internal.getNextEpisode();G.actions.internal.seekToNextEpisode(st),st&&O({type:"EPISODE_NEXT",text:st.text}),de.preventDefault()}else{let st=de.shiftKey?ze(!0):X.controls.seekStepKeyboard/1e3,wt=Math.min(g+st,w);Math.round(g)<Math.round(w)&&(G.actions.internal.seekTime(wt,vn.DOUBLE_TAP),O({type:"FORWARD_SEEK",text:st.toString()}),de.preventDefault())}break}case"ArrowUp":{if(po({isAudioDisabled:ft,audioDisabledHintCallback:ke,isAudioAvailable:s,audioIsNotExistHintCallback:at})){let st=E,wt=X.controls.volumeStepKeyboard,we=st<=1;if(gr(G,st,wt),we){let gt=Math.round(Xs(st,wt)*100).toString();O({type:"VOLUME",t:{key:"hotkey_helper_current_volume",value:gt}})}}de.preventDefault();break}case"ArrowDown":{if(po({isAudioDisabled:ft,audioDisabledHintCallback:ke,isAudioAvailable:s,audioIsNotExistHintCallback:at})){let st=E,wt=X.controls.volumeStepKeyboard,we=st>=0;if(br(G,st,wt),we){let gt=Math.round(Js(st,wt)*100).toString();O({type:"VOLUME",t:{key:"hotkey_helper_current_volume",value:gt}})}}de.preventDefault();break}case"Comma":{if(de.shiftKey){G.actions.internal.decrementPlaybackRate();let st=b.find(wt=>wt.value===C);O({type:"RATE_DOWN",text:st?.displayValue}),de.preventDefault()}else{if(kt||o!==Oo.PAUSED)break;let st=Math.max(g-X.controls.seekStepFrame/1e3,0);g>0&&(O({type:"BACKWARD_SEEK"}),G.actions.internal.clearDelayedBufferingCheckTimeout(),G.actions.internal.seekTime(st,vn.DOUBLE_TAP),de.preventDefault())}break}case"Period":{if(de.shiftKey){G.actions.internal.incrementPlaybackRate();let st=b.find(wt=>wt.value===C);O({type:"RATE_UP",text:st?.displayValue}),de.preventDefault()}else{if(kt||o!==Oo.PAUSED)break;let st=Math.min(g+X.controls.seekStepFrame/1e3,w);g<w&&(O({type:"FORWARD_SEEK"}),G.actions.internal.clearDelayedBufferingCheckTimeout(),G.actions.internal.seekTime(st,vn.DOUBLE_TAP),de.preventDefault())}break}case"KeyK":case"Space":if(!h.has("PLAY_BUTTON"))if(p&&f&&je.set(!1),ge)ge();else{G.actions.internal.togglePlay();let st="PLAY";o===Oo.PAUSED?st="PAUSE":u&&(st="REPLAY"),O({type:st})}de.preventDefault();break;case"KeyM":{po({isAudioDisabled:ft,audioDisabledHintCallback:ke,isAudioAvailable:s,audioIsNotExistHintCallback:at})&&(O({type:a?"VOLUME":"MUTE"}),G.actions.internal.toggleMuted()),de.preventDefault();break}case"KeyF":B(),de.preventDefault();break;case"KeyC":G.actions.internal.toggleSubtitle(),r.value!=="off"?O({type:"SUBTITLES_ON",text:r?.displayValue}):O({type:"SUBTITLES_OFF"}),de.preventDefault();break;case"KeyI":G.actions.internal.togglePictureInPicture(),de.preventDefault();break;case"Digit1":case"Numpad1":if(de.shiftKey){let st=Gf(l);$e.set(st),Me.set(lt),Se.set(!0),Ke.set(!0),de.preventDefault();break}O(),G.actions.internal.seekToPercent(.1,vn.DOUBLE_TAP),de.preventDefault();break;case"Digit2":case"Numpad2":O(),G.actions.internal.seekToPercent(.2,vn.DOUBLE_TAP),de.preventDefault();break;case"Digit3":case"Numpad3":O(),G.actions.internal.seekToPercent(.3,vn.DOUBLE_TAP),de.preventDefault();break;case"Digit4":case"Numpad4":O(),G.actions.internal.seekToPercent(.4,vn.DOUBLE_TAP),de.preventDefault();break;case"Digit5":case"Numpad5":O(),G.actions.internal.seekToPercent(.5,vn.DOUBLE_TAP),de.preventDefault();break;case"Digit6":case"Numpad6":O(),G.actions.internal.seekToPercent(.6,vn.DOUBLE_TAP),de.preventDefault();break;case"Digit7":case"Numpad7":O(),G.actions.internal.seekToPercent(.7,vn.DOUBLE_TAP),de.preventDefault();break;case"Digit8":case"Numpad8":O(),G.actions.internal.seekToPercent(.8,vn.DOUBLE_TAP),de.preventDefault();break;case"Digit9":case"Numpad9":O(),G.actions.internal.seekToPercent(.9,vn.DOUBLE_TAP),de.preventDefault();break;case"Digit0":case"Numpad0":O(),G.actions.internal.seekToPercent(0,vn.DOUBLE_TAP),de.preventDefault();break;case"Slash":{de.shiftKey&&X.features.hotKeyMapModal&&(ne(),de.preventDefault());break}case"ShiftLeft":case"ShiftRight":de.preventDefault();break;case"Tab":case"Escape":case"Enter":break;default:o2(yt);break}},se=de=>{let lt=de.code;if(de.ctrlKey||de.altKey||de.metaKey)return;let rt=o===Oo.PLAYING||o===Oo.PAUSED,dt=P&&(n==="paused"||n==="playing");if(rt||dt)switch(lt){case"ShiftLeft":case"ShiftRight":Ze=0;break}};function nt(de){be[de?"unshift":"push"](()=>{x=de,i(0,x)})}return t.$$set=de=>{"isAds"in de&&i(18,P=de.isAds),"hideContextMenu"in de&&i(19,W=de.hideContextMenu),"toggleFullscreen"in de&&i(20,B=de.toggleFullscreen),"showHotKeyHelpers"in de&&i(21,O=de.showHotKeyHelpers),"showKeyMap"in de&&i(22,ne=de.showKeyMap),"fakePlayButtonHandler"in de&&i(23,ge=de.fakePlayButtonHandler),"$$scope"in de&&i(25,y=de.$$scope)},[x,j,z,Q,$,K,Y,ie,re,Ve,Xe,ce,he,Fe,Qe,je,fe,se,P,W,B,O,ne,ge,De,y,v,nt]}var xs=class extends H{constructor(e){super(),U(this,e,s2,r2,F,{isAds:18,hideContextMenu:19,toggleFullscreen:20,showHotKeyHelpers:21,showKeyMap:22,fakePlayButtonHandler:23,focus:24},l2,[-1,-1])}get focus(){return this.$$.ctx[24]}},vd=xs;function a2(t){Te(t,"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 u2(t){let e,i,n,o,l,r;return{c(){e=T("div"),i=T("div"),n=M(),o=T("div"),l=M(),r=T("div"),c(i,"class","dot svelte-8nkw5s"),c(o,"class","dot svelte-8nkw5s"),c(r,"class","dot svelte-8nkw5s"),c(e,"class","container svelte-8nkw5s"),c(e,"style",t[0])},m(a,s){S(a,e,s),m(e,i),m(e,n),m(e,o),m(e,l),m(e,r)},p(a,[s]){s&1&&c(e,"style",a[0])},i:Ce,o:Ce,d(a){a&&k(e)}}}function c2(t,e,i){let{style:n=""}=e;return t.$$set=o=>{"style"in o&&i(0,n=o.style)},[n]}var $s=class extends H{constructor(e){super(),U(this,e,c2,u2,F,{style:0},a2)}},ml=$s;function f2(t){let e,i,n,o,l,r,a,s,u,f,p,h,w,g,C=t[2].default,b=Ie(C,t,t[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"},t[0]],v={};for(let y=0;y<E.length;y+=1)v=ue(v,E[y]);return{c(){e=R("svg"),b&&b.c(),i=R("g"),n=R("path"),o=R("path"),l=R("defs"),r=R("filter"),a=R("feFlood"),s=R("feColorMatrix"),u=R("feOffset"),f=R("feGaussianBlur"),p=R("feColorMatrix"),h=R("feBlend"),w=R("feBlend"),c(n,"fill","#fff"),c(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"),c(o,"stroke","#000"),c(o,"stroke-opacity",".12"),c(o,"stroke-width",".5"),c(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"),c(i,"filter","url(#a)"),c(a,"flood-opacity","0"),c(a,"result","BackgroundImageFix"),c(s,"in","SourceAlpha"),c(s,"result","hardAlpha"),c(s,"values","0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0"),c(f,"stdDeviation","2.5"),c(p,"values","0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.16 0"),c(h,"in2","BackgroundImageFix"),c(h,"result","effect1_dropShadow_2422_111980"),c(w,"in","SourceGraphic"),c(w,"in2","effect1_dropShadow_2422_111980"),c(w,"result","shape"),c(r,"id","a"),c(r,"width","23"),c(r,"height","23"),c(r,"x",".5"),c(r,"y",".5"),c(r,"color-interpolation-filters","sRGB"),c(r,"filterUnits","userSpaceOnUse"),ye(e,v)},m(y,P){S(y,e,P),b&&b.m(e,null),m(e,i),m(i,n),m(i,o),m(e,l),m(l,r),m(r,a),m(r,s),m(r,u),m(r,f),m(r,p),m(r,h),m(r,w),g=!0},p(y,[P]){b&&b.p&&(!g||P&2)&&Ae(b,C,y,y[1],g?Ee(C,y[1],P,null):Le(y[1]),null),ye(e,v=Be(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&&y[0]]))},i(y){g||(d(b,y),g=!0)},o(y){_(b,y),g=!1},d(y){y&&k(e),b&&b.d(y)}}}function d2(t,e,i){let{$$slots:n={},$$scope:o}=e;return t.$$set=l=>{i(0,e=ue(ue({},e),ve(l))),"$$scope"in l&&i(1,o=l.$$scope)},e=ve(e),[e,o,n]}var ea=class extends H{constructor(e){super(),U(this,e,d2,f2,F,{})}},yd=ea;import{noop as io}from"@vkontakte/videoplayer-shared";function m2(t){Te(t,"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(t){let e,i,n,o,l,r,a,s,u,f,p,h,w=t[14].default,g=Ie(w,t,t[13],null);return{c(){e=T("button"),g&&g.c(),c(e,"class",i="btn "+t[1]+" svelte-1anemql"),c(e,"style",n=t[2]||null),e.disabled=o=t[3]??null,c(e,"aria-hidden",l=t[5]??null),c(e,"aria-label",r=t[6]??null),c(e,"aria-keyshortcuts",a=t[7]??null),c(e,"aria-expanded",s=t[8]??null),c(e,"data-testid",u=t[4]??null),c(e,"tabindex",t[9])},m(C,b){S(C,e,b),g&&g.m(e,null),t[16](e),f=!0,p||(h=[_e(e,"pointerdown",ot(t[15])),_e(e,"click",ot(function(){Ii(t[10]===io?null:t[10])&&(t[10]===io?null:t[10]).apply(this,arguments)})),_e(e,"focus",Ut(function(){Ii(t[11]===io?null:t[11])&&(t[11]===io?null:t[11]).apply(this,arguments)})),_e(e,"blur",Ut(function(){Ii(t[12]===io?null:t[12])&&(t[12]===io?null:t[12]).apply(this,arguments)}))],p=!0)},p(C,[b]){t=C,g&&g.p&&(!f||b&8192)&&Ae(g,w,t,t[13],f?Ee(w,t[13],b,null):Le(t[13]),null),(!f||b&2&&i!==(i="btn "+t[1]+" svelte-1anemql"))&&c(e,"class",i),(!f||b&4&&n!==(n=t[2]||null))&&c(e,"style",n),(!f||b&8&&o!==(o=t[3]??null))&&(e.disabled=o),(!f||b&32&&l!==(l=t[5]??null))&&c(e,"aria-hidden",l),(!f||b&64&&r!==(r=t[6]??null))&&c(e,"aria-label",r),(!f||b&128&&a!==(a=t[7]??null))&&c(e,"aria-keyshortcuts",a),(!f||b&256&&s!==(s=t[8]??null))&&c(e,"aria-expanded",s),(!f||b&16&&u!==(u=t[4]??null))&&c(e,"data-testid",u),(!f||b&512)&&c(e,"tabindex",t[9])},i(C){f||(d(g,C),f=!0)},o(C){_(g,C),f=!1},d(C){C&&k(e),g&&g.d(C),t[16](null),p=!1,tt(h)}}}function _2(t,e,i){let{$$slots:n={},$$scope:o}=e,{className:l=""}=e,{style:r=""}=e,{disabled:a=void 0}=e,{testId:s=void 0}=e,{ariaHidden:u=void 0}=e,{ariaLabel:f=void 0}=e,{ref:p=void 0}=e,{ariaKeyShortCut:h=void 0}=e,{ariaExpanded:w=void 0}=e,{tabIndex:g=0}=e,{click:C=io}=e,{focus:b=io}=e,{blur:E=io}=e;function v(P){Cn.call(this,t,P)}function y(P){be[P?"unshift":"push"](()=>{p=P,i(0,p)})}return t.$$set=P=>{"className"in P&&i(1,l=P.className),"style"in P&&i(2,r=P.style),"disabled"in P&&i(3,a=P.disabled),"testId"in P&&i(4,s=P.testId),"ariaHidden"in P&&i(5,u=P.ariaHidden),"ariaLabel"in P&&i(6,f=P.ariaLabel),"ref"in P&&i(0,p=P.ref),"ariaKeyShortCut"in P&&i(7,h=P.ariaKeyShortCut),"ariaExpanded"in P&&i(8,w=P.ariaExpanded),"tabIndex"in P&&i(9,g=P.tabIndex),"click"in P&&i(10,C=P.click),"focus"in P&&i(11,b=P.focus),"blur"in P&&i(12,E=P.blur),"$$scope"in P&&i(13,o=P.$$scope)},[p,l,r,a,s,u,f,h,w,g,C,b,E,o,n,v,y]}var ta=class extends H{constructor(e){super(),U(this,e,_2,p2,F,{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},m2)}},ht=ta;function h2(t){Te(t,"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 wd(t){let e,i,n,o,l,r=t[2]&&kd(t);return{c(){e=T("div"),i=T("h3"),n=Re(t[3]),o=M(),r&&r.c(),c(i,"class","modal-title svelte-1witlsj"),c(e,"class","modal-header svelte-1witlsj")},m(a,s){S(a,e,s),m(e,i),m(i,n),m(e,o),r&&r.m(e,null),l=!0},p(a,s){(!l||s&8)&&Ge(n,a[3]),a[2]?r?(r.p(a,s),s&4&&d(r,1)):(r=kd(a),r.c(),d(r,1),r.m(e,null)):r&&(me(),_(r,1,1,()=>{r=null}),pe())},i(a){l||(d(r),l=!0)},o(a){_(r),l=!1},d(a){a&&k(e),r&&r.d()}}}function kd(t){let e,i;return e=new ht({props:{click:t[0],testId:"close-modal",style:"padding: 0; height: 24px; width: 24px",ariaLabel:N("hotkey_map_modal_close_btn_text"),$$slots:{default:[g2]},$$scope:{ctx:t}}}),{c(){V(e.$$.fragment)},m(n,o){A(e,n,o),i=!0},p(n,o){let l={};o&1&&(l.click=n[0]),o&32&&(l.$$scope={dirty:o,ctx:n}),e.$set(l)},i(n){i||(d(e.$$.fragment,n),i=!0)},o(n){_(e.$$.fragment,n),i=!1},d(n){L(e,n)}}}function g2(t){let e,i;return e=new yd({}),{c(){V(e.$$.fragment)},m(n,o){A(e,n,o),i=!0},i(n){i||(d(e.$$.fragment,n),i=!0)},o(n){_(e.$$.fragment,n),i=!1},d(n){L(e,n)}}}function b2(t){let e,i,n,o,l,r,a=t[1]&&wd(t),s=t[4].default,u=Ie(s,t,t[5],null);return{c(){e=T("div"),i=T("div"),a&&a.c(),n=M(),o=T("div"),l=T("div"),u&&u.c(),c(l,"class","modal-main svelte-1witlsj"),c(o,"class","modal-scroll svelte-1witlsj"),c(i,"class","modal-container svelte-1witlsj"),c(e,"class","modal-overlay svelte-1witlsj")},m(f,p){S(f,e,p),m(e,i),a&&a.m(i,null),m(i,n),m(i,o),m(o,l),u&&u.m(l,null),r=!0},p(f,[p]){f[1]?a?(a.p(f,p),p&2&&d(a,1)):(a=wd(f),a.c(),d(a,1),a.m(i,n)):a&&(me(),_(a,1,1,()=>{a=null}),pe()),u&&u.p&&(!r||p&32)&&Ae(u,s,f,f[5],r?Ee(s,f[5],p,null):Le(f[5]),null)},i(f){r||(d(a),d(u,f),r=!0)},o(f){_(a),_(u,f),r=!1},d(f){f&&k(e),a&&a.d(),u&&u.d(f)}}}function v2(t,e,i){let{$$slots:n={},$$scope:o}=e,{onClose:l}=e,{showHeader:r=!0}=e,{showCloseCross:a=!0}=e,{title:s}=e;return t.$$set=u=>{"onClose"in u&&i(0,l=u.onClose),"showHeader"in u&&i(1,r=u.showHeader),"showCloseCross"in u&&i(2,a=u.showCloseCross),"title"in u&&i(3,s=u.title),"$$scope"in u&&i(5,o=u.$$scope)},[l,r,a,s,n,o]}var ia=class extends H{constructor(e){super(),U(this,e,v2,b2,F,{onClose:0,showHeader:1,showCloseCross:2,title:3},h2)}},Sd=ia;var y2=new Set(["BR"]),na=t=>{let e=document.createElement("DIV");e.innerHTML=t;let i=e.querySelectorAll("*"),n=i.length;for(;n--;){let o=i[n],l=o.tagName;y2.has(l)||o.parentElement?.removeChild(o)}return e.innerHTML};function w2(t){Te(t,"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 Cd(t,e,i){let n=t.slice();return n[5]=e[i].title,n[6]=e[i].items,n}function Td(t,e,i){let n=t.slice();return n[9]=e[i].description,n[10]=e[i].value,n}function Pd(t){let e,i,n=na(t[9])+"",o,l,r=t[10]+"",a,s;return{c(){e=T("li"),i=T("span"),o=M(),l=T("span"),a=Re(r),s=M(),c(i,"class","hot-key-map-item-description svelte-quklnq"),c(l,"class","hot-key-map-item-value svelte-quklnq"),c(e,"class","hot-key-map-item svelte-quklnq")},m(u,f){S(u,e,f),m(e,i),i.innerHTML=n,m(e,o),m(e,l),m(l,a),m(e,s)},p(u,f){f&1&&n!==(n=na(u[9])+"")&&(i.innerHTML=n),f&1&&r!==(r=u[10]+"")&&Ge(a,r)},d(u){u&&k(e)}}}function Id(t){let e,i,n=t[5]+"",o,l,r,a,s=Pt(t[6]),u=[];for(let f=0;f<s.length;f+=1)u[f]=Pd(Td(t,s,f));return{c(){e=T("div"),i=T("h5"),o=Re(n),l=M(),r=T("ul");for(let f=0;f<u.length;f+=1)u[f].c();a=M(),c(i,"class","hot-key-map-group-title svelte-quklnq"),c(r,"class","hot-key-map-group-items svelte-quklnq"),c(e,"class","hot-key-map-group svelte-quklnq")},m(f,p){S(f,e,p),m(e,i),m(i,o),m(e,l),m(e,r);for(let h=0;h<u.length;h+=1)u[h]&&u[h].m(r,null);m(e,a)},p(f,p){if(p&1&&n!==(n=f[5]+"")&&Ge(o,n),p&1){s=Pt(f[6]);let h;for(h=0;h<s.length;h+=1){let w=Td(f,s,h);u[h]?u[h].p(w,p):(u[h]=Pd(w),u[h].c(),u[h].m(r,null))}for(;h<u.length;h+=1)u[h].d(1);u.length=s.length}},d(f){f&&k(e),Ei(u,f)}}}function k2(t){let e,i=Pt(t[0].groups),n=[];for(let o=0;o<i.length;o+=1)n[o]=Id(Cd(t,i,o));return{c(){e=T("div");for(let o=0;o<n.length;o+=1)n[o].c();c(e,"class","hot-key-map svelte-quklnq")},m(o,l){S(o,e,l);for(let r=0;r<n.length;r+=1)n[r]&&n[r].m(e,null)},p(o,l){if(l&1){i=Pt(o[0].groups);let r;for(r=0;r<i.length;r+=1){let a=Cd(o,i,r);n[r]?n[r].p(a,l):(n[r]=Id(a),n[r].c(),n[r].m(e,null))}for(;r<n.length;r+=1)n[r].d(1);n.length=i.length}},d(o){o&&k(e),Ei(n,o)}}}function S2(t){let e,i;return e=new Sd({props:{title:t[0].title,onClose:t[2],$$slots:{default:[k2]},$$scope:{ctx:t}}}),{c(){V(e.$$.fragment)},m(n,o){A(e,n,o),i=!0},p(n,[o]){let l={};o&1&&(l.title=n[0].title),o&8193&&(l.$$scope={dirty:o,ctx:n}),e.$set(l)},i(n){i||(d(e.$$.fragment,n),i=!0)},o(n){_(e.$$.fragment,n),i=!1},d(n){L(e,n)}}}function C2(t,e,i){let n,o=it(),{data:l,show:r}=o.ui.modals.hotKeyMap;return D(t,l,s=>i(0,n=s)),[n,l,()=>{r.set(!1)}]}var oa=class extends H{constructor(e){super(),U(this,e,C2,S2,F,{},w2)}},Ed=oa;import{noop as Hu}from"@vkontakte/videoplayer-shared";import{ChromecastState as _m,PlaybackState as Mu}from"@vkontakte/videoplayer-core";import{VideoQuality as wg}from"@vkontakte/videoplayer-core";var Fo={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"},Ad={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 T2=t=>Fo[t]??Fo[Ad[t]]??void 0,vr=(t,e)=>String(e.findIndex(i=>i.id===t.id)+1),no=(t,e)=>{if(!t)return"";let{language:i,label:n}=t,o;if(i==="und"?o=void 0:i&&(o=T2(i)??i),n&&i&&o){let r=e.filter(a=>a.label===n&&a.language===i);if(r.length===1)return N("audio_stream_display_language_label",{language:o,label:n});{let a=vr(t,r);return N("audio_stream_display_language_label_index",{language:o,label:n,index:a})}}if(n){let r=e.filter(a=>a.label===n);if(r.length===1)return n;{let a=vr(t,r);return N("audio_stream_display_label_index",{label:n,index:a})}}if(i&&o){let r=e.filter(a=>a.language===i);if(r.length===1)return o;{let a=vr(t,r);return N("audio_stream_display_language_index",{language:o,index:a})}}let l=vr(t,e);return N("audio_stream_display_unknown",{index:l})};import"@vkontakte/videoplayer-shared";function P2(t){Te(t,"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 I2(t){let e,i,n=t[1].default,o=Ie(n,t,t[0],null);return{c(){e=T("div"),o&&o.c(),c(e,"class","pillow svelte-1oe0j8n")},m(l,r){S(l,e,r),o&&o.m(e,null),i=!0},p(l,[r]){o&&o.p&&(!i||r&1)&&Ae(o,n,l,l[0],i?Ee(n,l[0],r,null):Le(l[0]),null)},i(l){i||(d(o,l),i=!0)},o(l){_(o,l),i=!1},d(l){l&&k(e),o&&o.d(l)}}}function E2(t,e,i){let{$$slots:n={},$$scope:o}=e;return t.$$set=l=>{"$$scope"in l&&i(0,o=l.$$scope)},[o,n]}var la=class extends H{constructor(e){super(),U(this,e,E2,I2,F,{},P2)}},Ld=la;import{VideoQuality as Ll}from"@vkontakte/videoplayer-core";function A2(t){let e,i,n,o,l=t[2].default,r=Ie(l,t,t[1],null),a=[{xmlns:"http://www.w3.org/2000/svg"},{width:"9"},{height:"5"},{fill:"none"},{role:"img"},t[0]],s={};for(let u=0;u<a.length;u+=1)s=ue(s,a[u]);return{c(){e=R("svg"),r&&r.c(),i=R("path"),n=R("path"),c(i,"fill","currentColor"),c(i,"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"),c(n,"fill","currentColor"),c(n,"fill-rule","evenodd"),c(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"),c(n,"clip-rule","evenodd"),ye(e,s)},m(u,f){S(u,e,f),r&&r.m(e,null),m(e,i),m(e,n),o=!0},p(u,[f]){r&&r.p&&(!o||f&2)&&Ae(r,l,u,u[1],o?Ee(l,u[1],f,null):Le(u[1]),null),ye(e,s=Be(a,[{xmlns:"http://www.w3.org/2000/svg"},{width:"9"},{height:"5"},{fill:"none"},{role:"img"},f&1&&u[0]]))},i(u){o||(d(r,u),o=!0)},o(u){_(r,u),o=!1},d(u){u&&k(e),r&&r.d(u)}}}function L2(t,e,i){let{$$slots:n={},$$scope:o}=e;return t.$$set=l=>{i(0,e=ue(ue({},e),ve(l))),"$$scope"in l&&i(1,o=l.$$scope)},e=ve(e),[e,o,n]}var ra=class extends H{constructor(e){super(),U(this,e,L2,A2,F,{})}},Md=ra;function M2(t){let e,i,n,o,l=t[2].default,r=Ie(l,t,t[1],null),a=[{xmlns:"http://www.w3.org/2000/svg"},{width:"9"},{height:"5"},{fill:"none"},{role:"img"},t[0]],s={};for(let u=0;u<a.length;u+=1)s=ue(s,a[u]);return{c(){e=R("svg"),r&&r.c(),i=R("path"),n=R("path"),c(i,"fill","currentColor"),c(i,"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"),c(n,"fill","currentColor"),c(n,"fill-rule","evenodd"),c(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"),c(n,"clip-rule","evenodd"),ye(e,s)},m(u,f){S(u,e,f),r&&r.m(e,null),m(e,i),m(e,n),o=!0},p(u,[f]){r&&r.p&&(!o||f&2)&&Ae(r,l,u,u[1],o?Ee(l,u[1],f,null):Le(u[1]),null),ye(e,s=Be(a,[{xmlns:"http://www.w3.org/2000/svg"},{width:"9"},{height:"5"},{fill:"none"},{role:"img"},f&1&&u[0]]))},i(u){o||(d(r,u),o=!0)},o(u){_(r,u),o=!1},d(u){u&&k(e),r&&r.d(u)}}}function V2(t,e,i){let{$$slots:n={},$$scope:o}=e;return t.$$set=l=>{i(0,e=ue(ue({},e),ve(l))),"$$scope"in l&&i(1,o=l.$$scope)},e=ve(e),[e,o,n]}var sa=class extends H{constructor(e){super(),U(this,e,V2,M2,F,{})}},Vd=sa;function R2(t){let e,i,n,o=t[2].default,l=Ie(o,t,t[1],null),r=[{xmlns:"http://www.w3.org/2000/svg"},{width:"9"},{height:"5"},{fill:"none"},{role:"img"},t[0]],a={};for(let s=0;s<r.length;s+=1)a=ue(a,r[s]);return{c(){e=R("svg"),l&&l.c(),i=R("path"),c(i,"fill","currentColor"),c(i,"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"),ye(e,a)},m(s,u){S(s,e,u),l&&l.m(e,null),m(e,i),n=!0},p(s,[u]){l&&l.p&&(!n||u&2)&&Ae(l,o,s,s[1],n?Ee(o,s[1],u,null):Le(s[1]),null),ye(e,a=Be(r,[{xmlns:"http://www.w3.org/2000/svg"},{width:"9"},{height:"5"},{fill:"none"},{role:"img"},u&1&&s[0]]))},i(s){n||(d(l,s),n=!0)},o(s){_(l,s),n=!1},d(s){s&&k(e),l&&l.d(s)}}}function B2(t,e,i){let{$$slots:n={},$$scope:o}=e;return t.$$set=l=>{i(0,e=ue(ue({},e),ve(l))),"$$scope"in l&&i(1,o=l.$$scope)},e=ve(e),[e,o,n]}var aa=class extends H{constructor(e){super(),U(this,e,B2,R2,F,{})}},Rd=aa;function q2(t){let e,i,n,o=t[2].default,l=Ie(o,t,t[1],null),r=[{xmlns:"http://www.w3.org/2000/svg"},{width:"13"},{height:"5"},{fill:"none"},{role:"img"},t[0]],a={};for(let s=0;s<r.length;s+=1)a=ue(a,r[s]);return{c(){e=R("svg"),l&&l.c(),i=R("path"),c(i,"fill","currentColor"),c(i,"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"),ye(e,a)},m(s,u){S(s,e,u),l&&l.m(e,null),m(e,i),n=!0},p(s,[u]){l&&l.p&&(!n||u&2)&&Ae(l,o,s,s[1],n?Ee(o,s[1],u,null):Le(s[1]),null),ye(e,a=Be(r,[{xmlns:"http://www.w3.org/2000/svg"},{width:"13"},{height:"5"},{fill:"none"},{role:"img"},u&1&&s[0]]))},i(s){n||(d(l,s),n=!0)},o(s){_(l,s),n=!1},d(s){s&&k(e),l&&l.d(s)}}}function D2(t,e,i){let{$$slots:n={},$$scope:o}=e;return t.$$set=l=>{i(0,e=ue(ue({},e),ve(l))),"$$scope"in l&&i(1,o=l.$$scope)},e=ve(e),[e,o,n]}var ua=class extends H{constructor(e){super(),U(this,e,D2,q2,F,{})}},yr=ua;function N2(t){let e,i,n,o,l=t[2].default,r=Ie(l,t,t[1],null),a=[{xmlns:"http://www.w3.org/2000/svg"},{width:"15"},{height:"7"},{fill:"none"},{role:"img"},t[0]],s={};for(let u=0;u<a.length;u+=1)s=ue(s,a[u]);return{c(){e=R("svg"),r&&r.c(),i=R("path"),n=R("path"),c(i,"fill","currentColor"),c(i,"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"),c(n,"fill","currentColor"),c(n,"fill-rule","evenodd"),c(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"),c(n,"clip-rule","evenodd"),ye(e,s)},m(u,f){S(u,e,f),r&&r.m(e,null),m(e,i),m(e,n),o=!0},p(u,[f]){r&&r.p&&(!o||f&2)&&Ae(r,l,u,u[1],o?Ee(l,u[1],f,null):Le(u[1]),null),ye(e,s=Be(a,[{xmlns:"http://www.w3.org/2000/svg"},{width:"15"},{height:"7"},{fill:"none"},{role:"img"},f&1&&u[0]]))},i(u){o||(d(r,u),o=!0)},o(u){_(r,u),o=!1},d(u){u&&k(e),r&&r.d(u)}}}function O2(t,e,i){let{$$slots:n={},$$scope:o}=e;return t.$$set=l=>{i(0,e=ue(ue({},e),ve(l))),"$$scope"in l&&i(1,o=l.$$scope)},e=ve(e),[e,o,n]}var ca=class extends H{constructor(e){super(),U(this,e,O2,N2,F,{})}},wr=ca;var _o=t=>{switch(t){case Ll.Q_720P:return Rd;case Ll.Q_1080P:return yr;case Ll.Q_1440P:return wr;case Ll.Q_2160P:return Md;case Ll.Q_4320P:return Vd}};function F2(t){let e,i,n,o=t[2].default,l=Ie(o,t,t[1],null),r=[{xmlns:"http://www.w3.org/2000/svg"},{width:"24"},{height:"24"},{fill:"none"},{"aria-hidden":"true"},{"data-testid":"settings-mobile-icon"},{role:"img"},t[0]],a={};for(let s=0;s<r.length;s+=1)a=ue(a,r[s]);return{c(){e=R("svg"),l&&l.c(),i=R("path"),c(i,"fill","#fff"),c(i,"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"),ye(e,a)},m(s,u){S(s,e,u),l&&l.m(e,null),m(e,i),n=!0},p(s,[u]){l&&l.p&&(!n||u&2)&&Ae(l,o,s,s[1],n?Ee(o,s[1],u,null):Le(s[1]),null),ye(e,a=Be(r,[{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(l,s),n=!0)},o(s){_(l,s),n=!1},d(s){s&&k(e),l&&l.d(s)}}}function z2(t,e,i){let{$$slots:n={},$$scope:o}=e;return t.$$set=l=>{i(0,e=ue(ue({},e),ve(l))),"$$scope"in l&&i(1,o=l.$$scope)},e=ve(e),[e,o,n]}var fa=class extends H{constructor(e){super(),U(this,e,z2,F2,F,{})}},Bd=fa;function H2(t){let e,i,n,o,l=t[2].default,r=Ie(l,t,t[1],null),a=[{xmlns:"http://www.w3.org/2000/svg"},{width:"24"},{height:"24"},{fill:"none"},{"data-testid":"settings-icon"},{role:"img"},t[0]],s={};for(let u=0;u<a.length;u+=1)s=ue(s,a[u]);return{c(){e=R("svg"),r&&r.c(),i=R("path"),n=R("path"),c(i,"fill","#fff"),c(i,"fill-rule","evenodd"),c(i,"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"),c(i,"clip-rule","evenodd"),c(n,"fill","#fff"),c(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"),c(n,"class","_full"),ye(e,s)},m(u,f){S(u,e,f),r&&r.m(e,null),m(e,i),m(e,n),o=!0},p(u,[f]){r&&r.p&&(!o||f&2)&&Ae(r,l,u,u[1],o?Ee(l,u[1],f,null):Le(u[1]),null),ye(e,s=Be(a,[{xmlns:"http://www.w3.org/2000/svg"},{width:"24"},{height:"24"},{fill:"none"},{"data-testid":"settings-icon"},{role:"img"},f&1&&u[0]]))},i(u){o||(d(r,u),o=!0)},o(u){_(r,u),o=!1},d(u){u&&k(e),r&&r.d(u)}}}function U2(t,e,i){let{$$slots:n={},$$scope:o}=e;return t.$$set=l=>{i(0,e=ue(ue({},e),ve(l))),"$$scope"in l&&i(1,o=l.$$scope)},e=ve(e),[e,o,n]}var da=class extends H{constructor(e){super(),U(this,e,U2,H2,F,{})}},qd=da;function K2(t){Te(t,"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 W2(t){let e,i,n,o,l=t[1]&&Dd(t);return n=new qd({props:{"data-testid":t[1]?"settings-icon--labeled":"settings-icon"}}),{c(){e=T("div"),l&&l.c(),i=M(),V(n.$$.fragment),c(e,"class","icon svelte-8t5w85"),c(e,"aria-hidden","true"),q(e,"triple",t[2])},m(r,a){S(r,e,a),l&&l.m(e,null),m(e,i),A(n,e,null),o=!0},p(r,a){r[1]?l?(l.p(r,a),a&2&&d(l,1)):(l=Dd(r),l.c(),d(l,1),l.m(e,i)):l&&(me(),_(l,1,1,()=>{l=null}),pe());let s={};a&2&&(s["data-testid"]=r[1]?"settings-icon--labeled":"settings-icon"),n.$set(s),(!o||a&4)&&q(e,"triple",r[2])},i(r){o||(d(l),d(n.$$.fragment,r),o=!0)},o(r){_(l),_(n.$$.fragment,r),o=!1},d(r){r&&k(e),l&&l.d(),L(n)}}}function j2(t){let e,i;return e=new Bd({}),{c(){V(e.$$.fragment)},m(n,o){A(e,n,o),i=!0},p:Ce,i(n){i||(d(e.$$.fragment,n),i=!0)},o(n){_(e.$$.fragment,n),i=!1},d(n){L(e,n)}}}function Dd(t){let e,i;return e=new Ld({props:{$$slots:{default:[G2]},$$scope:{ctx:t}}}),{c(){V(e.$$.fragment)},m(n,o){A(e,n,o),i=!0},p(n,o){let l={};o&18&&(l.$$scope={dirty:o,ctx:n}),e.$set(l)},i(n){i||(d(e.$$.fragment,n),i=!0)},o(n){_(e.$$.fragment,n),i=!1},d(n){L(e,n)}}}function G2(t){let e,i,n;var o=t[1];function l(r,a){return{}}return o&&(e=bn(o,l(t))),{c(){e&&V(e.$$.fragment),i=ct()},m(r,a){e&&A(e,r,a),S(r,i,a),n=!0},p(r,a){if(a&2&&o!==(o=r[1])){if(e){me();let s=e;_(s.$$.fragment,1,0,()=>{L(s,1)}),pe()}o?(e=bn(o,l(r,a)),V(e.$$.fragment),d(e.$$.fragment,1),A(e,i.parentNode,i)):e=null}},i(r){n||(e&&d(e.$$.fragment,r),n=!0)},o(r){e&&_(e.$$.fragment,r),n=!1},d(r){r&&k(i),e&&L(e,r)}}}function Q2(t){let e,i,n,o,l=[j2,W2],r=[];function a(s,u){return s[0]?0:1}return e=a(t,-1),i=r[e]=l[e](t),{c(){i.c(),n=ct()},m(s,u){r[e].m(s,u),S(s,n,u),o=!0},p(s,[u]){let f=e;e=a(s,u),e===f?r[e].p(s,u):(me(),_(r[f],1,1,()=>{r[f]=null}),pe(),i=r[e],i?i.p(s,u):(i=r[e]=l[e](s),i.c()),d(i,1),i.m(n.parentNode,n))},i(s){o||(d(i),o=!0)},o(s){_(i),o=!1},d(s){s&&k(n),r[e].d(s)}}}function Y2(t,e,i){let n,{isMobile:o=!1}=e,{currentQuality:l=void 0}=e,r;return t.$$set=a=>{"isMobile"in a&&i(0,o=a.isMobile),"currentQuality"in a&&i(3,l=a.currentQuality)},t.$$.update=()=>{t.$$.dirty&8&&i(1,n=_o(l)),t.$$.dirty&2&&i(2,r=!!n&&[yr,wr].includes(n))},[o,n,r,l]}var ma=class extends H{constructor(e){super(),U(this,e,Y2,Q2,F,{isMobile:0,currentQuality:3},K2)}},kr=ma;function Z2(t){let e,i,n,o=t[2].default,l=Ie(o,t,t[1],null),r=[{xmlns:"http://www.w3.org/2000/svg"},{width:"22"},{height:"18"},{fill:"none"},{"aria-hidden":"true"},{"data-testid":"subtitle-empty-icon"},{role:"img"},t[0]],a={};for(let s=0;s<r.length;s+=1)a=ue(a,r[s]);return{c(){e=R("svg"),l&&l.c(),i=R("path"),c(i,"fill","#fff"),c(i,"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"),ye(e,a)},m(s,u){S(s,e,u),l&&l.m(e,null),m(e,i),n=!0},p(s,[u]){l&&l.p&&(!n||u&2)&&Ae(l,o,s,s[1],n?Ee(o,s[1],u,null):Le(s[1]),null),ye(e,a=Be(r,[{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(l,s),n=!0)},o(s){_(l,s),n=!1},d(s){s&&k(e),l&&l.d(s)}}}function X2(t,e,i){let{$$slots:n={},$$scope:o}=e;return t.$$set=l=>{i(0,e=ue(ue({},e),ve(l))),"$$scope"in l&&i(1,o=l.$$scope)},e=ve(e),[e,o,n]}var pa=class extends H{constructor(e){super(),U(this,e,X2,Z2,F,{})}},Sr=pa;function J2(t){let e,i,n,o=t[2].default,l=Ie(o,t,t[1],null),r=[{xmlns:"http://www.w3.org/2000/svg"},{width:"16"},{height:"19"},{fill:"none"},{"aria-hidden":"true"},{"data-testid":"download-icon"},{role:"img"},t[0]],a={};for(let s=0;s<r.length;s+=1)a=ue(a,r[s]);return{c(){e=R("svg"),l&&l.c(),i=R("path"),c(i,"fill","#fff"),c(i,"fill-rule","evenodd"),c(i,"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"),c(i,"clip-rule","evenodd"),ye(e,a)},m(s,u){S(s,e,u),l&&l.m(e,null),m(e,i),n=!0},p(s,[u]){l&&l.p&&(!n||u&2)&&Ae(l,o,s,s[1],n?Ee(o,s[1],u,null):Le(s[1]),null),ye(e,a=Be(r,[{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(l,s),n=!0)},o(s){_(l,s),n=!1},d(s){s&&k(e),l&&l.d(s)}}}function x2(t,e,i){let{$$slots:n={},$$scope:o}=e;return t.$$set=l=>{i(0,e=ue(ue({},e),ve(l))),"$$scope"in l&&i(1,o=l.$$scope)},e=ve(e),[e,o,n]}var _a=class extends H{constructor(e){super(),U(this,e,x2,J2,F,{})}},Nd=_a;function $2(t){let e,i,n,o=t[2].default,l=Ie(o,t,t[1],null),r=[{xmlns:"http://www.w3.org/2000/svg"},{width:"18"},{height:"17"},{fill:"none"},{"aria-hidden":"true"},{"data-testid":"traffic-saving-icon"},{role:"img"},t[0]],a={};for(let s=0;s<r.length;s+=1)a=ue(a,r[s]);return{c(){e=R("svg"),l&&l.c(),i=R("path"),c(i,"fill","#fff"),c(i,"fill-rule","evenodd"),c(i,"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"),c(i,"clip-rule","evenodd"),ye(e,a)},m(s,u){S(s,e,u),l&&l.m(e,null),m(e,i),n=!0},p(s,[u]){l&&l.p&&(!n||u&2)&&Ae(l,o,s,s[1],n?Ee(o,s[1],u,null):Le(s[1]),null),ye(e,a=Be(r,[{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(l,s),n=!0)},o(s){_(l,s),n=!1},d(s){s&&k(e),l&&l.d(s)}}}function eg(t,e,i){let{$$slots:n={},$$scope:o}=e;return t.$$set=l=>{i(0,e=ue(ue({},e),ve(l))),"$$scope"in l&&i(1,o=l.$$scope)},e=ve(e),[e,o,n]}var ha=class extends H{constructor(e){super(),U(this,e,eg,$2,F,{})}},Od=ha;function tg(t){let e,i,n,o,l,r=t[2].default,a=Ie(r,t,t[1],null),s=[{xmlns:"http://www.w3.org/2000/svg"},{width:"24"},{height:"24"},{"aria-hidden":"true"},{"data-testid":"play-speed-icon"},{role:"img"},t[0]],u={};for(let f=0;f<s.length;f+=1)u=ue(u,s[f]);return{c(){e=R("svg"),a&&a.c(),i=R("g"),n=R("path"),o=R("path"),c(n,"d","M0 0h24v24H0z"),c(o,"fill","#fff"),c(o,"fill-rule","nonzero"),c(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"),c(i,"fill","none"),c(i,"fill-rule","evenodd"),ye(e,u)},m(f,p){S(f,e,p),a&&a.m(e,null),m(e,i),m(i,n),m(i,o),l=!0},p(f,[p]){a&&a.p&&(!l||p&2)&&Ae(a,r,f,f[1],l?Ee(r,f[1],p,null):Le(f[1]),null),ye(e,u=Be(s,[{xmlns:"http://www.w3.org/2000/svg"},{width:"24"},{height:"24"},{"aria-hidden":"true"},{"data-testid":"play-speed-icon"},{role:"img"},p&1&&f[0]]))},i(f){l||(d(a,f),l=!0)},o(f){_(a,f),l=!1},d(f){f&&k(e),a&&a.d(f)}}}function ig(t,e,i){let{$$slots:n={},$$scope:o}=e;return t.$$set=l=>{i(0,e=ue(ue({},e),ve(l))),"$$scope"in l&&i(1,o=l.$$scope)},e=ve(e),[e,o,n]}var ga=class extends H{constructor(e){super(),U(this,e,ig,tg,F,{})}},Fd=ga;function ng(t){let e,i,n,o=t[2].default,l=Ie(o,t,t[1],null),r=[{xmlns:"http://www.w3.org/2000/svg"},{width:"18"},{height:"15"},{fill:"none"},{"aria-hidden":"true"},{"data-testid":"audio-languages-icon"},{role:"img"},t[0]],a={};for(let s=0;s<r.length;s+=1)a=ue(a,r[s]);return{c(){e=R("svg"),l&&l.c(),i=R("path"),c(i,"fill","#fff"),c(i,"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"),ye(e,a)},m(s,u){S(s,e,u),l&&l.m(e,null),m(e,i),n=!0},p(s,[u]){l&&l.p&&(!n||u&2)&&Ae(l,o,s,s[1],n?Ee(o,s[1],u,null):Le(s[1]),null),ye(e,a=Be(r,[{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(l,s),n=!0)},o(s){_(l,s),n=!1},d(s){s&&k(e),l&&l.d(s)}}}function og(t,e,i){let{$$slots:n={},$$scope:o}=e;return t.$$set=l=>{i(0,e=ue(ue({},e),ve(l))),"$$scope"in l&&i(1,o=l.$$scope)},e=ve(e),[e,o,n]}var ba=class extends H{constructor(e){super(),U(this,e,og,ng,F,{})}},zd=ba;function lg(t){let e,i,n,o=t[2].default,l=Ie(o,t,t[1],null),r=[{xmlns:"http://www.w3.org/2000/svg"},{width:"12"},{height:"7"},{fill:"none"},{"aria-hidden":"true"},{role:"img"},t[0]],a={};for(let s=0;s<r.length;s+=1)a=ue(a,r[s]);return{c(){e=R("svg"),l&&l.c(),i=R("path"),c(i,"fill","#fff"),c(i,"fill-opacity",".72"),c(i,"fill-rule","evenodd"),c(i,"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"),c(i,"clip-rule","evenodd"),ye(e,a)},m(s,u){S(s,e,u),l&&l.m(e,null),m(e,i),n=!0},p(s,[u]){l&&l.p&&(!n||u&2)&&Ae(l,o,s,s[1],n?Ee(o,s[1],u,null):Le(s[1]),null),ye(e,a=Be(r,[{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(l,s),n=!0)},o(s){_(l,s),n=!1},d(s){s&&k(e),l&&l.d(s)}}}function rg(t,e,i){let{$$slots:n={},$$scope:o}=e;return t.$$set=l=>{i(0,e=ue(ue({},e),ve(l))),"$$scope"in l&&i(1,o=l.$$scope)},e=ve(e),[e,o,n]}var va=class extends H{constructor(e){super(),U(this,e,rg,lg,F,{})}},Hd=va;function sg(t){let e,i,n,o=t[2].default,l=Ie(o,t,t[1],null),r=[{xmlns:"http://www.w3.org/2000/svg"},{width:"12"},{height:"16"},{fill:"none"},{"aria-hidden":"true"},{role:"img"},t[0]],a={};for(let s=0;s<r.length;s+=1)a=ue(a,r[s]);return{c(){e=R("svg"),l&&l.c(),i=R("path"),c(i,"fill","#fff"),c(i,"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"),ye(e,a)},m(s,u){S(s,e,u),l&&l.m(e,null),m(e,i),n=!0},p(s,[u]){l&&l.p&&(!n||u&2)&&Ae(l,o,s,s[1],n?Ee(o,s[1],u,null):Le(s[1]),null),ye(e,a=Be(r,[{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(l,s),n=!0)},o(s){_(l,s),n=!1},d(s){s&&k(e),l&&l.d(s)}}}function ag(t,e,i){let{$$slots:n={},$$scope:o}=e;return t.$$set=l=>{i(0,e=ue(ue({},e),ve(l))),"$$scope"in l&&i(1,o=l.$$scope)},e=ve(e),[e,o,n]}var ya=class extends H{constructor(e){super(),U(this,e,ag,sg,F,{})}},Ud=ya;function ug(t){let e,i;return e=new Ud({props:{style:t[2],"data-testid":t[0]?"chevron-icon--right":"chevron-icon--left"}}),{c(){V(e.$$.fragment)},m(n,o){A(e,n,o),i=!0},p(n,o){let l={};o&4&&(l.style=n[2]),o&1&&(l["data-testid"]=n[0]?"chevron-icon--right":"chevron-icon--left"),e.$set(l)},i(n){i||(d(e.$$.fragment,n),i=!0)},o(n){_(e.$$.fragment,n),i=!1},d(n){L(e,n)}}}function cg(t){let e,i;return e=new Hd({props:{style:t[2],"data-testid":t[0]?"chevron-icon--down":"chevron-icon--up"}}),{c(){V(e.$$.fragment)},m(n,o){A(e,n,o),i=!0},p(n,o){let l={};o&4&&(l.style=n[2]),o&1&&(l["data-testid"]=n[0]?"chevron-icon--down":"chevron-icon--up"),e.$set(l)},i(n){i||(d(e.$$.fragment,n),i=!0)},o(n){_(e.$$.fragment,n),i=!1},d(n){L(e,n)}}}function fg(t){let e,i,n,o,l=[cg,ug],r=[];function a(s,u){return s[1]?0:1}return e=a(t,-1),i=r[e]=l[e](t),{c(){i.c(),n=ct()},m(s,u){r[e].m(s,u),S(s,n,u),o=!0},p(s,[u]){let f=e;e=a(s,u),e===f?r[e].p(s,u):(me(),_(r[f],1,1,()=>{r[f]=null}),pe(),i=r[e],i?i.p(s,u):(i=r[e]=l[e](s),i.c()),d(i,1),i.m(n.parentNode,n))},i(s){o||(d(i),o=!0)},o(s){_(i),o=!1},d(s){s&&k(n),r[e].d(s)}}}function dg(t,e,i){let n,{direction:o="left"}=e,l,r;return t.$$set=a=>{"direction"in a&&i(3,o=a.direction)},t.$$.update=()=>{t.$$.dirty&8&&(i(1,l=["up","down"].includes(o)),i(0,r=["right","down"].includes(o))),t.$$.dirty&1&&i(2,n=r?"transform: rotate(180deg);":void 0)},[r,l,n,o]}var wa=class extends H{constructor(e){super(),U(this,e,dg,fg,F,{direction:3})}},jn=wa;function mg(t){let e,i,n,o=t[2].default,l=Ie(o,t,t[1],null),r=[{xmlns:"http://www.w3.org/2000/svg"},{width:"24"},{height:"24"},{fill:"none"},{"aria-hidden":"true"},{"data-testid":"report-icon"},{role:"img"},t[0]],a={};for(let s=0;s<r.length;s+=1)a=ue(a,r[s]);return{c(){e=R("svg"),l&&l.c(),i=R("path"),c(i,"fill","#fff"),c(i,"fill-rule","evenodd"),c(i,"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"),c(i,"clip-rule","evenodd"),ye(e,a)},m(s,u){S(s,e,u),l&&l.m(e,null),m(e,i),n=!0},p(s,[u]){l&&l.p&&(!n||u&2)&&Ae(l,o,s,s[1],n?Ee(o,s[1],u,null):Le(s[1]),null),ye(e,a=Be(r,[{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(l,s),n=!0)},o(s){_(l,s),n=!1},d(s){s&&k(e),l&&l.d(s)}}}function pg(t,e,i){let{$$slots:n={},$$scope:o}=e;return t.$$set=l=>{i(0,e=ue(ue({},e),ve(l))),"$$scope"in l&&i(1,o=l.$$scope)},e=ve(e),[e,o,n]}var ka=class extends H{constructor(e){super(),U(this,e,pg,mg,F,{})}},Kd=ka;function _g(t){let e,i,n,o=t[2].default,l=Ie(o,t,t[1],null),r=[{xmlns:"http://www.w3.org/2000/svg"},{width:"16"},{height:"16"},{"aria-hidden":"true"},{"data-testid":"check-mark-icon"},{role:"img"},t[0]],a={};for(let s=0;s<r.length;s+=1)a=ue(a,r[s]);return{c(){e=R("svg"),l&&l.c(),i=R("path"),c(i,"fill","#fff"),c(i,"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"),ye(e,a)},m(s,u){S(s,e,u),l&&l.m(e,null),m(e,i),n=!0},p(s,[u]){l&&l.p&&(!n||u&2)&&Ae(l,o,s,s[1],n?Ee(o,s[1],u,null):Le(s[1]),null),ye(e,a=Be(r,[{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(l,s),n=!0)},o(s){_(l,s),n=!1},d(s){s&&k(e),l&&l.d(s)}}}function hg(t,e,i){let{$$slots:n={},$$scope:o}=e;return t.$$set=l=>{i(0,e=ue(ue({},e),ve(l))),"$$scope"in l&&i(1,o=l.$$scope)},e=ve(e),[e,o,n]}var Sa=class extends H{constructor(e){super(),U(this,e,hg,_g,F,{})}},zo=Sa;function gg(t){let e,i,n,o=t[2].default,l=Ie(o,t,t[1],null),r=[{xmlns:"http://www.w3.org/2000/svg"},{width:"24"},{height:"24"},{fill:"none"},{"aria-hidden":"true"},{"data-testid":"copy-icon"},{role:"img"},t[0]],a={};for(let s=0;s<r.length;s+=1)a=ue(a,r[s]);return{c(){e=R("svg"),l&&l.c(),i=R("path"),c(i,"fill","#fff"),c(i,"fill-rule","evenodd"),c(i,"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"),c(i,"clip-rule","evenodd"),ye(e,a)},m(s,u){S(s,e,u),l&&l.m(e,null),m(e,i),n=!0},p(s,[u]){l&&l.p&&(!n||u&2)&&Ae(l,o,s,s[1],n?Ee(o,s[1],u,null):Le(s[1]),null),ye(e,a=Be(r,[{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(l,s),n=!0)},o(s){_(l,s),n=!1},d(s){s&&k(e),l&&l.d(s)}}}function bg(t,e,i){let{$$slots:n={},$$scope:o}=e;return t.$$set=l=>{i(0,e=ue(ue({},e),ve(l))),"$$scope"in l&&i(1,o=l.$$scope)},e=ve(e),[e,o,n]}var Ca=class extends H{constructor(e){super(),U(this,e,bg,gg,F,{})}},Ta=Ca;function vg(t){let e,i,n,o=t[2].default,l=Ie(o,t,t[1],null),r=[{xmlns:"http://www.w3.org/2000/svg"},{width:"24"},{height:"24"},{fill:"none"},{"aria-hidden":"true"},{"data-testid":"info-icon"},{role:"img"},t[0]],a={};for(let s=0;s<r.length;s+=1)a=ue(a,r[s]);return{c(){e=R("svg"),l&&l.c(),i=R("path"),c(i,"fill","#fff"),c(i,"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"),ye(e,a)},m(s,u){S(s,e,u),l&&l.m(e,null),m(e,i),n=!0},p(s,[u]){l&&l.p&&(!n||u&2)&&Ae(l,o,s,s[1],n?Ee(o,s[1],u,null):Le(s[1]),null),ye(e,a=Be(r,[{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(l,s),n=!0)},o(s){_(l,s),n=!1},d(s){s&&k(e),l&&l.d(s)}}}function yg(t,e,i){let{$$slots:n={},$$scope:o}=e;return t.$$set=l=>{i(0,e=ue(ue({},e),ve(l))),"$$scope"in l&&i(1,o=l.$$scope)},e=ve(e),[e,o,n]}var Pa=class extends H{constructor(e){super(),U(this,e,yg,vg,F,{})}},Wd=Pa;function kg(t){Te(t,"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 jd(t,e,i){let n=t.slice();return n[165]=e[i],n}function Gd(t,e,i){let n=t.slice();return n[168]=e[i],n}function Qd(t,e,i){let n=t.slice();return n[171]=e[i],n}function Yd(t,e,i){let n=t.slice();return n[174]=e[i],n}function Zd(t){let e,i,n,o,l,r,a,s,u,f,p,h,w,g=t[40]&&Xd(t),C=t[30]&&Jd(t),b=t[29]&&$d(t),E=t[28]&&e1(t),v=t[27]&&t1(t),y=t[26]&&i1(t),P=t[25]&&n1(t),W=t[40]&&o1(t);return{c(){e=T("div"),g&&g.c(),i=M(),n=T("ul"),C&&C.c(),o=M(),b&&b.c(),l=M(),E&&E.c(),r=M(),v&&v.c(),a=M(),y&&y.c(),s=M(),P&&P.c(),u=M(),W&&W.c(),c(n,"class","items svelte-1h807jq"),c(n,"role","menu"),c(n,"style",f=t[85]()),q(n,"items-mobile",t[40]),c(e,"class","menu svelte-1h807jq"),q(e,"menu-desktop",!t[40]),q(e,"menu-mobile",t[40]),q(e,"hidden",!t[13])},m(B,O){S(B,e,O),g&&g.m(e,null),m(e,i),m(e,n),C&&C.m(n,null),m(n,o),b&&b.m(n,null),m(n,l),E&&E.m(n,null),m(n,r),v&&v.m(n,null),m(n,a),y&&y.m(n,null),m(n,s),P&&P.m(n,null),m(n,u),W&&W.m(n,null),t[131](n),p=!0,h||(w=[_e(e,"keydown",t[91]),_e(e,"mouseenter",t[83]),_e(e,"mouseleave",t[84])],h=!0)},p(B,O){B[40]?g?g.p(B,O):(g=Xd(B),g.c(),g.m(e,i)):g&&(g.d(1),g=null),B[30]?C?(C.p(B,O),O[0]&1073741824&&d(C,1)):(C=Jd(B),C.c(),d(C,1),C.m(n,o)):C&&(me(),_(C,1,1,()=>{C=null}),pe()),B[29]?b?(b.p(B,O),O[0]&536870912&&d(b,1)):(b=$d(B),b.c(),d(b,1),b.m(n,l)):b&&(me(),_(b,1,1,()=>{b=null}),pe()),B[28]?E?(E.p(B,O),O[0]&268435456&&d(E,1)):(E=e1(B),E.c(),d(E,1),E.m(n,r)):E&&(me(),_(E,1,1,()=>{E=null}),pe()),B[27]?v?(v.p(B,O),O[0]&134217728&&d(v,1)):(v=t1(B),v.c(),d(v,1),v.m(n,a)):v&&(me(),_(v,1,1,()=>{v=null}),pe()),B[26]?y?(y.p(B,O),O[0]&67108864&&d(y,1)):(y=i1(B),y.c(),d(y,1),y.m(n,s)):y&&(me(),_(y,1,1,()=>{y=null}),pe()),B[25]?P?(P.p(B,O),O[0]&33554432&&d(P,1)):(P=n1(B),P.c(),d(P,1),P.m(n,u)):P&&(me(),_(P,1,1,()=>{P=null}),pe()),B[40]?W?(W.p(B,O),O[1]&512&&d(W,1)):(W=o1(B),W.c(),d(W,1),W.m(n,null)):W&&(me(),_(W,1,1,()=>{W=null}),pe()),(!p||O[1]&512)&&q(n,"items-mobile",B[40]),(!p||O[1]&512)&&q(e,"menu-desktop",!B[40]),(!p||O[1]&512)&&q(e,"menu-mobile",B[40]),(!p||O[0]&8192)&&q(e,"hidden",!B[13])},i(B){p||(d(C),d(b),d(E),d(v),d(y),d(P),d(W),p=!0)},o(B){_(C),_(b),_(E),_(v),_(y),_(P),_(W),p=!1},d(B){B&&k(e),g&&g.d(),C&&C.d(),b&&b.d(),E&&E.d(),v&&v.d(),y&&y.d(),P&&P.d(),W&&W.d(),t[131](null),h=!1,tt(w)}}}function Xd(t){let e,i,n,o,l,r,a,s;return{c(){e=T("div"),i=T("div"),i.textContent=`${N("submenu_settings")}`,n=M(),o=T("div"),l=M(),r=T("div"),c(o,"class","close svelte-1h807jq"),c(e,"class","item menu-header svelte-1h807jq"),q(e,"item-mobile",t[40]),c(r,"class","menu-divider svelte-1h807jq")},m(u,f){S(u,e,f),m(e,i),m(e,n),m(e,o),S(u,l,f),S(u,r,f),a||(s=_e(o,"click",ot(t[66])),a=!0)},p(u,f){f[1]&512&&q(e,"item-mobile",u[40])},d(u){u&&(k(e),k(l),k(r)),a=!1,s()}}}function Jd(t){let e,i,n,o,l,r,a,s,u,f,p,h,w;n=new kr({});let g=t[39]&&!t[40]&&xd(t);return{c(){e=T("li"),i=T("div"),V(n.$$.fragment),o=M(),l=T("div"),l.textContent=`${N("menu_quality")}`,r=M(),a=T("div"),s=Re(t[19]),u=M(),g&&g.c(),c(i,"class","menu-icon-wrapper svelte-1h807jq"),c(l,"class","menu-title svelte-1h807jq"),c(a,"class","menu-value svelte-1h807jq"),c(e,"class","item svelte-1h807jq"),c(e,"role","menuitem"),c(e,"tabindex","0"),c(e,"aria-label",f=N("aria_label_menu_quality",{actual:t[32]})),c(e,"aria-haspopup","true"),q(e,"item-mobile",t[40])},m(C,b){S(C,e,b),m(e,i),A(n,i,null),m(e,o),m(e,l),m(e,r),m(e,a),m(a,s),m(a,u),g&&g.m(a,null),t[126](e),p=!0,h||(w=[_e(e,"click",ot(t[67])),_e(e,"keydown",t[92])],h=!0)},p(C,b){(!p||b[0]&524288)&&Ge(s,C[19]),C[39]&&!C[40]?g?(g.p(C,b),b[1]&768&&d(g,1)):(g=xd(C),g.c(),d(g,1),g.m(a,null)):g&&(me(),_(g,1,1,()=>{g=null}),pe()),(!p||b[1]&2&&f!==(f=N("aria_label_menu_quality",{actual:C[32]})))&&c(e,"aria-label",f),(!p||b[1]&512)&&q(e,"item-mobile",C[40])},i(C){p||(d(n.$$.fragment,C),d(g),p=!0)},o(C){_(n.$$.fragment,C),_(g),p=!1},d(C){C&&k(e),L(n),g&&g.d(),t[126](null),h=!1,tt(w)}}}function xd(t){let e,i,n;var o=t[39];function l(r,a){return{}}return o&&(i=bn(o,l(t))),{c(){e=T("div"),i&&V(i.$$.fragment),c(e,"class","menu-valueIcon svelte-1h807jq")},m(r,a){S(r,e,a),i&&A(i,e,null),n=!0},p(r,a){if(a[1]&256&&o!==(o=r[39])){if(i){me();let s=i;_(s.$$.fragment,1,0,()=>{L(s,1)}),pe()}o?(i=bn(o,l(r,a)),V(i.$$.fragment),d(i.$$.fragment,1),A(i,e,null)):i=null}},i(r){n||(i&&d(i.$$.fragment,r),n=!0)},o(r){i&&_(i.$$.fragment,r),n=!1},d(r){r&&k(e),i&&L(i)}}}function $d(t){let e,i,n,o,l,r,a,s=no(t[41],t[9])+"",u,f,p,h,w;return n=new zd({}),{c(){e=T("li"),i=T("div"),V(n.$$.fragment),o=M(),l=T("div"),l.textContent=`${N("menu_audio_languages")}`,r=M(),a=T("div"),u=Re(s),c(i,"class","menu-icon-wrapper svelte-1h807jq"),c(l,"class","menu-title svelte-1h807jq"),c(a,"class","menu-value svelte-1h807jq"),c(e,"class","item svelte-1h807jq"),c(e,"role","menuitem"),c(e,"tabindex","0"),c(e,"aria-label",f=N("aria_label_menu_audio_languages",{actual:no(t[41],t[9])})),c(e,"aria-haspopup","true"),q(e,"item-mobile",t[40])},m(g,C){S(g,e,C),m(e,i),A(n,i,null),m(e,o),m(e,l),m(e,r),m(e,a),m(a,u),t[127](e),p=!0,h||(w=[_e(e,"click",ot(t[68])),_e(e,"keydown",t[93])],h=!0)},p(g,C){(!p||C[0]&512|C[1]&1024)&&s!==(s=no(g[41],g[9])+"")&&Ge(u,s),(!p||C[0]&512|C[1]&1024&&f!==(f=N("aria_label_menu_audio_languages",{actual:no(g[41],g[9])})))&&c(e,"aria-label",f),(!p||C[1]&512)&&q(e,"item-mobile",g[40])},i(g){p||(d(n.$$.fragment,g),p=!0)},o(g){_(n.$$.fragment,g),p=!1},d(g){g&&k(e),L(n),t[127](null),h=!1,tt(w)}}}function e1(t){let e,i,n,o,l,r,a,s,u,f,p,h,w;return n=new Fd({}),{c(){e=T("li"),i=T("div"),V(n.$$.fragment),o=M(),l=T("div"),l.textContent=`${N("menu_playback_rate")}`,r=M(),a=T("div"),s=Re(t[11]),u=Re("x"),c(i,"class","menu-icon-wrapper svelte-1h807jq"),c(l,"class","menu-title svelte-1h807jq"),c(a,"class","menu-value svelte-1h807jq"),c(e,"class","item svelte-1h807jq"),c(e,"role","menuitem"),c(e,"tabindex","0"),c(e,"aria-label",f=N("aria_label_menu_rate",{actual:t[33]})),c(e,"aria-haspopup","true"),q(e,"item-mobile",t[40])},m(g,C){S(g,e,C),m(e,i),A(n,i,null),m(e,o),m(e,l),m(e,r),m(e,a),m(a,s),m(a,u),t[128](e),p=!0,h||(w=[_e(e,"click",ot(Ut(t[73]))),_e(e,"keydown",t[98])],h=!0)},p(g,C){(!p||C[0]&2048)&&Ge(s,g[11]),(!p||C[1]&4&&f!==(f=N("aria_label_menu_rate",{actual:g[33]})))&&c(e,"aria-label",f),(!p||C[1]&512)&&q(e,"item-mobile",g[40])},i(g){p||(d(n.$$.fragment,g),p=!0)},o(g){_(n.$$.fragment,g),p=!1},d(g){g&&k(e),L(n),t[128](null),h=!1,tt(w)}}}function t1(t){let e,i,n,o,l,r,a,s=t[42].displayValue+"",u,f,p,h,w;return n=new Sr({}),{c(){e=T("li"),i=T("div"),V(n.$$.fragment),o=M(),l=T("div"),l.textContent=`${N("subtitles_caption")}`,r=M(),a=T("div"),u=Re(s),c(i,"class","menu-icon-wrapper svelte-1h807jq"),c(l,"class","menu-title svelte-1h807jq"),c(a,"class","menu-value svelte-1h807jq"),c(e,"class","item svelte-1h807jq"),c(e,"role","menuitem"),c(e,"tabindex","0"),c(e,"aria-label",f=N("aria_label_menu_subtitle",{actual:t[42].displayValue})),c(e,"aria-haspopup","true"),q(e,"item-mobile",t[40])},m(g,C){S(g,e,C),m(e,i),A(n,i,null),m(e,o),m(e,l),m(e,r),m(e,a),m(a,u),t[129](e),p=!0,h||(w=[_e(e,"click",ot(t[75])),_e(e,"keydown",t[101])],h=!0)},p(g,C){(!p||C[1]&2048)&&s!==(s=g[42].displayValue+"")&&Ge(u,s),(!p||C[1]&2048&&f!==(f=N("aria_label_menu_subtitle",{actual:g[42].displayValue})))&&c(e,"aria-label",f),(!p||C[1]&512)&&q(e,"item-mobile",g[40])},i(g){p||(d(n.$$.fragment,g),p=!0)},o(g){_(n.$$.fragment,g),p=!1},d(g){g&&k(e),L(n),t[129](null),h=!1,tt(w)}}}function i1(t){let e,i,n,o,l,r,a,s,u,f,p,h;return n=new Od({}),{c(){e=T("li"),i=T("div"),V(n.$$.fragment),o=M(),l=T("div"),l.textContent=`${N("menu_traffic_saving")}`,r=M(),a=T("div"),s=Re(t[31]),c(i,"class","menu-icon-wrapper svelte-1h807jq"),c(l,"class","menu-title svelte-1h807jq"),c(a,"class","menu-value svelte-1h807jq"),c(e,"class","item svelte-1h807jq"),c(e,"role","menuitem"),c(e,"tabindex","0"),c(e,"aria-label",u=N("aria_label_menu_traffic_saving",{actual:t[31]})),c(e,"aria-haspopup","true"),q(e,"item-mobile",t[40])},m(w,g){S(w,e,g),m(e,i),A(n,i,null),m(e,o),m(e,l),m(e,r),m(e,a),m(a,s),t[130](e),f=!0,p||(h=[_e(e,"click",ot(t[69])),_e(e,"keydown",t[104])],p=!0)},p(w,g){(!f||g[1]&1)&&Ge(s,w[31]),(!f||g[1]&1&&u!==(u=N("aria_label_menu_traffic_saving",{actual:w[31]})))&&c(e,"aria-label",u),(!f||g[1]&512)&&q(e,"item-mobile",w[40])},i(w){f||(d(n.$$.fragment,w),f=!0)},o(w){_(n.$$.fragment,w),f=!1},d(w){w&&k(e),L(n),t[130](null),p=!1,tt(h)}}}function n1(t){let e,i,n,o,l,r,a,s,u;return n=new Nd({}),{c(){e=T("li"),i=T("div"),V(n.$$.fragment),o=M(),l=T("div"),l.textContent=`${N("download_video_caption")}`,c(i,"class","menu-icon-wrapper svelte-1h807jq"),c(l,"class","menu-title svelte-1h807jq"),c(e,"class","item svelte-1h807jq"),c(e,"role","menuitem"),c(e,"tabindex","0"),c(e,"aria-label",r=N("aria_label_menu_download")),q(e,"item-mobile",t[40])},m(f,p){S(f,e,p),m(e,i),A(n,i,null),m(e,o),m(e,l),a=!0,s||(u=[_e(e,"click",ot(t[78])),_e(e,"keydown",t[107])],s=!0)},p(f,p){(!a||p[1]&512)&&q(e,"item-mobile",f[40])},i(f){a||(d(n.$$.fragment,f),a=!0)},o(f){_(n.$$.fragment,f),a=!1},d(f){f&&k(e),L(n),s=!1,tt(u)}}}function o1(t){let e,i,n,o,l,r,a,s,u,f,p,h,w,g,C,b,E,v,y=t[44].showSupport&&Sg(t);o=new Ta({});let P=t[44].features.saveTraceInfoToFile&&Cg(t);return h=new Wd({}),{c(){y&&y.c(),e=M(),i=T("li"),n=T("div"),V(o.$$.fragment),l=M(),r=T("div"),r.textContent=`${N("menu_copy_debug")}`,s=M(),P&&P.c(),u=M(),f=T("li"),p=T("div"),V(h.$$.fragment),w=M(),g=T("div"),g.textContent=`${N("menu_debug_overlay")}`,c(n,"class","menu-icon-wrapper svelte-1h807jq"),c(r,"class","menu-title svelte-1h807jq"),c(i,"class","item item-mobile svelte-1h807jq"),c(i,"role","menuitem"),c(i,"tabindex","0"),c(i,"aria-label",a=N("menu_copy_debug")),c(p,"class","menu-icon-wrapper svelte-1h807jq"),c(g,"class","menu-title svelte-1h807jq"),c(f,"class","item item-mobile svelte-1h807jq"),c(f,"role","menuitem"),c(f,"tabindex","0"),c(f,"aria-label",C=t[43]?N("aria_label_menu_debug_overlay_disable"):N("aria_label_menu_debug_overlay_enable"))},m(W,B){y&&y.m(W,B),S(W,e,B),S(W,i,B),m(i,n),A(o,n,null),m(i,l),m(i,r),S(W,s,B),P&&P.m(W,B),S(W,u,B),S(W,f,B),m(f,p),A(h,p,null),m(f,w),m(f,g),b=!0,E||(v=[_e(i,"click",ot(t[80])),_e(i,"keydown",t[109]),_e(f,"click",ot(t[81])),_e(f,"keydown",t[110])],E=!0)},p(W,B){W[44].showSupport&&y.p(W,B),W[44].features.saveTraceInfoToFile&&P.p(W,B),(!b||B[1]&4096&&C!==(C=W[43]?N("aria_label_menu_debug_overlay_disable"):N("aria_label_menu_debug_overlay_enable")))&&c(f,"aria-label",C)},i(W){b||(d(y),d(o.$$.fragment,W),d(P),d(h.$$.fragment,W),b=!0)},o(W){_(y),_(o.$$.fragment,W),_(P),_(h.$$.fragment,W),b=!1},d(W){W&&(k(e),k(i),k(s),k(u),k(f)),y&&y.d(W),L(o),P&&P.d(W),L(h),E=!1,tt(v)}}}function Sg(t){let e,i,n,o,l,r,a,s,u;return n=new Kd({}),{c(){e=T("li"),i=T("div"),V(n.$$.fragment),o=M(),l=T("div"),l.textContent=`${N("menu_report")}`,c(i,"class","menu-icon-wrapper svelte-1h807jq"),c(l,"class","menu-title svelte-1h807jq"),c(e,"class","item item-mobile svelte-1h807jq"),c(e,"role","menuitem"),c(e,"tabindex","0"),c(e,"aria-label",r=`${N("menu_report")}. ${N("aria_label_new_tab_alert")}`)},m(f,p){S(f,e,p),m(e,i),A(n,i,null),m(e,o),m(e,l),a=!0,s||(u=[_e(e,"click",ot(t[79])),_e(e,"keydown",t[108])],s=!0)},p:Ce,i(f){a||(d(n.$$.fragment,f),a=!0)},o(f){_(n.$$.fragment,f),a=!1},d(f){f&&k(e),L(n),s=!1,tt(u)}}}function Cg(t){let e,i,n,o,l,r,a,s,u;return n=new Ta({}),{c(){e=T("li"),i=T("div"),V(n.$$.fragment),o=M(),l=T("div"),l.textContent=`${N("menu_save_debug")}`,c(i,"class","menu-icon-wrapper svelte-1h807jq"),c(l,"class","menu-title svelte-1h807jq"),c(e,"class","item item-mobile svelte-1h807jq"),c(e,"role","menuitem"),c(e,"tabindex","0"),c(e,"aria-label",r=N("menu_save_debug"))},m(f,p){S(f,e,p),m(e,i),A(n,i,null),m(e,o),m(e,l),a=!0,s||(u=[_e(e,"click",ot(t[82])),_e(e,"keydown",t[111])],s=!0)},p:Ce,i(f){a||(d(n.$$.fragment,f),a=!0)},o(f){_(n.$$.fragment,f),a=!1},d(f){f&&k(e),L(n),s=!1,tt(u)}}}function l1(t){let e,i,n,o,l,r,a,s,u,f,p,h,w,g;n=new jn({props:{direction:"left"}});let C=Pt(t[10]),b=[];for(let v=0;v<C.length;v+=1)b[v]=a1(Yd(t,C,v));let E=v=>_(b[v],1,1,()=>{b[v]=null});return{c(){e=T("div"),i=T("div"),V(n.$$.fragment),o=M(),l=T("div"),l.textContent=`${N("submenu_quality")}`,a=M(),s=T("div"),u=M(),f=T("ul");for(let v=0;v<b.length;v+=1)b[v].c();c(i,"class","item menu-header svelte-1h807jq"),c(i,"aria-label",r=N("aria_label_submenu_back")),q(i,"item-mobile",t[40]),c(s,"class","menu-divider svelte-1h807jq"),c(f,"class","items svelte-1h807jq"),c(f,"role","menu"),c(f,"style",p=t[85](t[20]?.clientHeight,!0)),q(f,"items-mobile",t[40]),c(e,"class","menu menu-subList svelte-1h807jq"),q(e,"menu-desktop",!t[40]),q(e,"menu-mobile",t[40])},m(v,y){S(v,e,y),m(e,i),A(n,i,null),m(i,o),m(i,l),t[132](i),m(e,a),m(e,s),m(e,u),m(e,f);for(let P=0;P<b.length;P+=1)b[P]&&b[P].m(f,null);t[135](f),h=!0,w||(g=[_e(i,"click",ot(t[77])),_e(f,"keydown",t[94])],w=!0)},p(v,y){if((!h||y[1]&512)&&q(i,"item-mobile",v[40]),y[0]&1024|y[1]&512|y[2]&256|y[3]&4){C=Pt(v[10]);let P;for(P=0;P<C.length;P+=1){let W=Yd(v,C,P);b[P]?(b[P].p(W,y),d(b[P],1)):(b[P]=a1(W),b[P].c(),d(b[P],1),b[P].m(f,null))}for(me(),P=C.length;P<b.length;P+=1)E(P);pe()}(!h||y[0]&1048576&&p!==(p=v[85](v[20]?.clientHeight,!0)))&&c(f,"style",p),(!h||y[1]&512)&&q(f,"items-mobile",v[40]),(!h||y[1]&512)&&q(e,"menu-desktop",!v[40]),(!h||y[1]&512)&&q(e,"menu-mobile",v[40])},i(v){if(!h){d(n.$$.fragment,v);for(let y=0;y<C.length;y+=1)d(b[y]);h=!0}},o(v){_(n.$$.fragment,v),b=b.filter(Boolean);for(let y=0;y<b.length;y+=1)_(b[y]);h=!1},d(v){v&&k(e),L(n),t[132](null),Ei(b,v),t[135](null),w=!1,tt(g)}}}function r1(t){let e,i,n;return i=new zo({}),{c(){e=T("div"),V(i.$$.fragment),c(e,"class","itemIcon svelte-1h807jq")},m(o,l){S(o,e,l),A(i,e,null),n=!0},i(o){n||(d(i.$$.fragment,o),n=!0)},o(o){_(i.$$.fragment,o),n=!1},d(o){o&&k(e),L(i)}}}function s1(t){let e,i,n;var o=_o(t[174].value);function l(r,a){return{}}return o&&(i=bn(o,l(t))),{c(){e=T("div"),i&&V(i.$$.fragment),c(e,"class","menu-valueIcon-list svelte-1h807jq")},m(r,a){S(r,e,a),i&&A(i,e,null),n=!0},p(r,a){if(a[0]&1024&&o!==(o=_o(r[174].value))){if(i){me();let s=i;_(s.$$.fragment,1,0,()=>{L(s,1)}),pe()}o?(i=bn(o,l(r,a)),V(i.$$.fragment),d(i.$$.fragment,1),A(i,e,null)):i=null}},i(r){n||(i&&d(i.$$.fragment,r),n=!0)},o(r){i&&_(i.$$.fragment,r),n=!1},d(r){r&&k(e),i&&L(i)}}}function a1(t){let e,i,n,o=t[174].displayValue+"",l,r,a=!t[40]&&_o(t[174].value),s,u,f,p,h,w,g=t[174].selected&&r1(t),C=a&&s1(t);function b(){return t[133](t[174])}function E(...v){return t[134](t[174],...v)}return{c(){e=T("li"),g&&g.c(),i=M(),n=T("div"),l=Re(o),r=M(),C&&C.c(),s=M(),c(n,"class","submenu-value svelte-1h807jq"),q(n,"submenu-value-mobile",t[40]),c(e,"class","item item-quality svelte-1h807jq"),c(e,"data-value",u=t[174].value),c(e,"role","menuitem"),c(e,"tabindex","0"),c(e,"aria-label",f=t[174].displayValue),q(e,"item-mobile",t[40])},m(v,y){S(v,e,y),g&&g.m(e,null),m(e,i),m(e,n),m(n,l),m(e,r),C&&C.m(e,null),m(e,s),p=!0,h||(w=[_e(e,"click",ot(b)),_e(e,"keydown",E)],h=!0)},p(v,y){t=v,t[174].selected?g?y[0]&1024&&d(g,1):(g=r1(t),g.c(),d(g,1),g.m(e,i)):g&&(me(),_(g,1,1,()=>{g=null}),pe()),(!p||y[0]&1024)&&o!==(o=t[174].displayValue+"")&&Ge(l,o),(!p||y[1]&512)&&q(n,"submenu-value-mobile",t[40]),y[0]&1024|y[1]&512&&(a=!t[40]&&_o(t[174].value)),a?C?(C.p(t,y),y[0]&1024|y[1]&512&&d(C,1)):(C=s1(t),C.c(),d(C,1),C.m(e,s)):C&&(me(),_(C,1,1,()=>{C=null}),pe()),(!p||y[0]&1024&&u!==(u=t[174].value))&&c(e,"data-value",u),(!p||y[0]&1024&&f!==(f=t[174].displayValue))&&c(e,"aria-label",f),(!p||y[1]&512)&&q(e,"item-mobile",t[40])},i(v){p||(d(g),d(C),p=!0)},o(v){_(g),_(C),p=!1},d(v){v&&k(e),g&&g.d(),C&&C.d(),h=!1,tt(w)}}}function u1(t){let e,i,n,o,l,r,a,s,u,f,p,h,w,g;n=new jn({props:{direction:"left"}});let C=Pt(t[9]),b=[];for(let v=0;v<C.length;v+=1)b[v]=f1(Qd(t,C,v));let E=v=>_(b[v],1,1,()=>{b[v]=null});return{c(){e=T("div"),i=T("div"),V(n.$$.fragment),o=M(),l=T("div"),l.textContent=`${N("submenu_audio_languages")}`,a=M(),s=T("div"),u=M(),f=T("ul");for(let v=0;v<b.length;v+=1)b[v].c();c(i,"class","item menu-header svelte-1h807jq"),c(i,"aria-label",r=N("aria_label_submenu_back")),q(i,"item-mobile",t[40]),c(s,"class","menu-divider svelte-1h807jq"),c(f,"class","items svelte-1h807jq"),c(f,"role","menu"),c(f,"style",p=t[85](t[21]?.clientHeight,!0)),q(f,"items-mobile",t[40]),c(e,"class","menu menu-subList svelte-1h807jq"),q(e,"menu-desktop",!t[40]),q(e,"menu-mobile",t[40])},m(v,y){S(v,e,y),m(e,i),A(n,i,null),m(i,o),m(i,l),t[136](i),m(e,a),m(e,s),m(e,u),m(e,f);for(let P=0;P<b.length;P+=1)b[P]&&b[P].m(f,null);t[139](f),h=!0,w||(g=[_e(i,"click",ot(t[77])),_e(f,"keydown",t[96])],w=!0)},p(v,y){if((!h||y[1]&512)&&q(i,"item-mobile",v[40]),y[0]&512|y[1]&1536|y[2]&512|y[3]&16){C=Pt(v[9]);let P;for(P=0;P<C.length;P+=1){let W=Qd(v,C,P);b[P]?(b[P].p(W,y),d(b[P],1)):(b[P]=f1(W),b[P].c(),d(b[P],1),b[P].m(f,null))}for(me(),P=C.length;P<b.length;P+=1)E(P);pe()}(!h||y[0]&2097152&&p!==(p=v[85](v[21]?.clientHeight,!0)))&&c(f,"style",p),(!h||y[1]&512)&&q(f,"items-mobile",v[40]),(!h||y[1]&512)&&q(e,"menu-desktop",!v[40]),(!h||y[1]&512)&&q(e,"menu-mobile",v[40])},i(v){if(!h){d(n.$$.fragment,v);for(let y=0;y<C.length;y+=1)d(b[y]);h=!0}},o(v){_(n.$$.fragment,v),b=b.filter(Boolean);for(let y=0;y<b.length;y+=1)_(b[y]);h=!1},d(v){v&&k(e),L(n),t[136](null),Ei(b,v),t[139](null),w=!1,tt(g)}}}function c1(t){let e,i,n;return i=new zo({}),{c(){e=T("div"),V(i.$$.fragment),c(e,"class","itemIcon svelte-1h807jq")},m(o,l){S(o,e,l),A(i,e,null),n=!0},i(o){n||(d(i.$$.fragment,o),n=!0)},o(o){_(i.$$.fragment,o),n=!1},d(o){o&&k(e),L(i)}}}function f1(t){let e,i,n,o=no(t[171],t[9])+"",l,r,a,s,u,f,p,h=t[171].id===t[41]?.id&&c1(t);function w(){return t[137](t[171])}function g(...C){return t[138](t[171],...C)}return{c(){e=T("li"),h&&h.c(),i=M(),n=T("div"),l=Re(o),r=M(),c(n,"class","submenu-value svelte-1h807jq"),q(n,"submenu-value-mobile",t[40]),c(e,"class","item item-quality svelte-1h807jq"),c(e,"data-value",a=t[171].id),c(e,"role","menuitem"),c(e,"tabindex","0"),c(e,"aria-label",s=no(t[171],t[9])),q(e,"item-mobile",t[40])},m(C,b){S(C,e,b),h&&h.m(e,null),m(e,i),m(e,n),m(n,l),m(e,r),u=!0,f||(p=[_e(e,"click",ot(w)),_e(e,"keydown",g)],f=!0)},p(C,b){t=C,t[171].id===t[41]?.id?h?b[0]&512|b[1]&1024&&d(h,1):(h=c1(t),h.c(),d(h,1),h.m(e,i)):h&&(me(),_(h,1,1,()=>{h=null}),pe()),(!u||b[0]&512)&&o!==(o=no(t[171],t[9])+"")&&Ge(l,o),(!u||b[1]&512)&&q(n,"submenu-value-mobile",t[40]),(!u||b[0]&512&&a!==(a=t[171].id))&&c(e,"data-value",a),(!u||b[0]&512&&s!==(s=no(t[171],t[9])))&&c(e,"aria-label",s),(!u||b[1]&512)&&q(e,"item-mobile",t[40])},i(C){u||(d(h),u=!0)},o(C){_(h),u=!1},d(C){C&&k(e),h&&h.d(),f=!1,tt(p)}}}function d1(t){let e,i,n,o,l,r,a,s,u,f,p,h,w,g;n=new jn({props:{direction:"left"}});let C=Pt(t[8]),b=[];for(let v=0;v<C.length;v+=1)b[v]=p1(Gd(t,C,v));let E=v=>_(b[v],1,1,()=>{b[v]=null});return{c(){e=T("div"),i=T("div"),V(n.$$.fragment),o=M(),l=T("div"),l.textContent=`${N("submenu_playback_rate")}`,a=M(),s=T("div"),u=M(),f=T("ul");for(let v=0;v<b.length;v+=1)b[v].c();c(i,"class","item menu-header svelte-1h807jq"),c(i,"aria-label",r=N("aria_label_submenu_back")),q(i,"item-mobile",t[40]),c(s,"class","menu-divider svelte-1h807jq"),c(f,"class","items svelte-1h807jq"),c(f,"role","menu"),c(f,"style",p=t[85](t[22]?.clientHeight,!0)),q(f,"items-mobile",t[40]),c(e,"class","menu menu-subList svelte-1h807jq"),q(e,"menu-desktop",!t[40]),q(e,"menu-mobile",t[40])},m(v,y){S(v,e,y),m(e,i),A(n,i,null),m(i,o),m(i,l),t[140](i),m(e,a),m(e,s),m(e,u),m(e,f);for(let P=0;P<b.length;P+=1)b[P]&&b[P].m(f,null);t[143](f),h=!0,w||(g=[_e(i,"click",ot(t[77])),_e(f,"keydown",t[99])],w=!0)},p(v,y){if((!h||y[1]&512)&&q(i,"item-mobile",v[40]),y[0]&256|y[1]&512|y[2]&4096|y[3]&128){C=Pt(v[8]);let P;for(P=0;P<C.length;P+=1){let W=Gd(v,C,P);b[P]?(b[P].p(W,y),d(b[P],1)):(b[P]=p1(W),b[P].c(),d(b[P],1),b[P].m(f,null))}for(me(),P=C.length;P<b.length;P+=1)E(P);pe()}(!h||y[0]&4194304&&p!==(p=v[85](v[22]?.clientHeight,!0)))&&c(f,"style",p),(!h||y[1]&512)&&q(f,"items-mobile",v[40]),(!h||y[1]&512)&&q(e,"menu-desktop",!v[40]),(!h||y[1]&512)&&q(e,"menu-mobile",v[40])},i(v){if(!h){d(n.$$.fragment,v);for(let y=0;y<C.length;y+=1)d(b[y]);h=!0}},o(v){_(n.$$.fragment,v),b=b.filter(Boolean);for(let y=0;y<b.length;y+=1)_(b[y]);h=!1},d(v){v&&k(e),L(n),t[140](null),Ei(b,v),t[143](null),w=!1,tt(g)}}}function m1(t){let e,i,n;return i=new zo({}),{c(){e=T("div"),V(i.$$.fragment),c(e,"class","itemIcon svelte-1h807jq")},m(o,l){S(o,e,l),A(i,e,null),n=!0},i(o){n||(d(i.$$.fragment,o),n=!0)},o(o){_(i.$$.fragment,o),n=!1},d(o){o&&k(e),L(i)}}}function p1(t){let e,i,n,o=t[168].displayValue+"",l,r,a,s,u,f,p,h=t[168].selected&&m1(t);function w(){return t[141](t[168])}function g(...C){return t[142](t[168],...C)}return{c(){e=T("li"),h&&h.c(),i=M(),n=T("div"),l=Re(o),r=M(),c(n,"class","submenu-value svelte-1h807jq"),q(n,"submenu-value-mobile",t[40]),c(e,"class","item item-quality svelte-1h807jq"),c(e,"data-value",a=t[168].value),c(e,"role","menuitem"),c(e,"tabindex","0"),c(e,"aria-label",s=t[168].displayValue),q(e,"item-mobile",t[40])},m(C,b){S(C,e,b),h&&h.m(e,null),m(e,i),m(e,n),m(n,l),m(e,r),u=!0,f||(p=[_e(e,"click",ot(w)),_e(e,"keydown",g)],f=!0)},p(C,b){t=C,t[168].selected?h?b[0]&256&&d(h,1):(h=m1(t),h.c(),d(h,1),h.m(e,i)):h&&(me(),_(h,1,1,()=>{h=null}),pe()),(!u||b[0]&256)&&o!==(o=t[168].displayValue+"")&&Ge(l,o),(!u||b[1]&512)&&q(n,"submenu-value-mobile",t[40]),(!u||b[0]&256&&a!==(a=t[168].value))&&c(e,"data-value",a),(!u||b[0]&256&&s!==(s=t[168].displayValue))&&c(e,"aria-label",s),(!u||b[1]&512)&&q(e,"item-mobile",t[40])},i(C){u||(d(h),u=!0)},o(C){_(h),u=!1},d(C){C&&k(e),h&&h.d(),f=!1,tt(p)}}}function _1(t){let e,i,n,o,l,r,a,s,u,f,p,h,w,g,C,b,E,v,y,P,W,B,O,ne,ge,G,X,ae,j;n=new jn({props:{direction:"left"}});let z=!t[6]&&h1(t),Q=t[6]&&g1(t);return{c(){e=T("div"),i=T("div"),V(n.$$.fragment),o=M(),l=T("div"),l.textContent=`${N("submenu_traffic_saving")}`,a=M(),s=T("div"),u=M(),f=T("div"),p=T("ul"),h=T("li"),z&&z.c(),w=M(),g=T("div"),g.textContent=`${N("traffic_saving_disable")}`,b=M(),E=T("li"),Q&&Q.c(),v=M(),y=T("div"),y.textContent=`${N("traffic_saving_enable")}`,W=M(),B=T("div"),O=M(),ne=T("div"),ge=T("span"),ge.textContent=`${N("traffic_saving_helper_text")}`,c(i,"class","item menu-header svelte-1h807jq"),c(i,"aria-label",r=N("aria_label_submenu_back")),q(i,"item-mobile",t[40]),c(s,"class","menu-divider svelte-1h807jq"),c(g,"class","submenu-value svelte-1h807jq"),q(g,"submenu-value-mobile",t[40]),c(h,"class","item item-traffic-saving svelte-1h807jq"),c(h,"role","menuitem"),c(h,"tabindex","0"),c(h,"aria-label",C=N("aria_label_submenu_traffic_saving_off")),q(h,"item-mobile",t[40]),c(y,"class","submenu-value svelte-1h807jq"),q(y,"submenu-value-mobile",t[40]),c(E,"class","item item-traffic-saving svelte-1h807jq"),c(E,"role","menuitem"),c(E,"tabindex","0"),c(E,"aria-label",P=`${N("aria_label_submenu_traffic_saving_on")}. ${N("traffic_saving_helper_text")}`),q(E,"item-mobile",t[40]),c(p,"class","items svelte-1h807jq"),c(p,"role","menu"),q(p,"items-mobile",t[40]),c(B,"class","menu-divider svelte-1h807jq"),c(ge,"class","svelte-1h807jq"),c(ne,"class","item item-helper-text svelte-1h807jq"),q(ne,"item-mobile",t[40]),c(f,"style",G=t[85](t[23]?.clientHeight,!0)),c(e,"class","menu menu-subList menu-subList-traffic-saving svelte-1h807jq"),q(e,"menu-desktop",!t[40]),q(e,"menu-mobile",t[40])},m($,K){S($,e,K),m(e,i),A(n,i,null),m(i,o),m(i,l),t[144](i),m(e,a),m(e,s),m(e,u),m(e,f),m(f,p),m(p,h),z&&z.m(h,null),m(h,w),m(h,g),m(p,b),m(p,E),Q&&Q.m(E,null),m(E,v),m(E,y),t[149](p),m(f,W),m(f,B),m(f,O),m(f,ne),m(ne,ge),X=!0,ae||(j=[_e(i,"click",ot(t[77])),_e(h,"click",ot(t[145])),_e(h,"keydown",t[146]),_e(E,"click",ot(t[147])),_e(E,"keydown",t[148]),_e(p,"keydown",t[105])],ae=!0)},p($,K){(!X||K[1]&512)&&q(i,"item-mobile",$[40]),$[6]?z&&(me(),_(z,1,1,()=>{z=null}),pe()):z?K[0]&64&&d(z,1):(z=h1($),z.c(),d(z,1),z.m(h,w)),(!X||K[1]&512)&&q(g,"submenu-value-mobile",$[40]),(!X||K[1]&512)&&q(h,"item-mobile",$[40]),$[6]?Q?K[0]&64&&d(Q,1):(Q=g1($),Q.c(),d(Q,1),Q.m(E,v)):Q&&(me(),_(Q,1,1,()=>{Q=null}),pe()),(!X||K[1]&512)&&q(y,"submenu-value-mobile",$[40]),(!X||K[1]&512)&&q(E,"item-mobile",$[40]),(!X||K[1]&512)&&q(p,"items-mobile",$[40]),(!X||K[1]&512)&&q(ne,"item-mobile",$[40]),(!X||K[0]&8388608&&G!==(G=$[85]($[23]?.clientHeight,!0)))&&c(f,"style",G),(!X||K[1]&512)&&q(e,"menu-desktop",!$[40]),(!X||K[1]&512)&&q(e,"menu-mobile",$[40])},i($){X||(d(n.$$.fragment,$),d(z),d(Q),X=!0)},o($){_(n.$$.fragment,$),_(z),_(Q),X=!1},d($){$&&k(e),L(n),t[144](null),z&&z.d(),Q&&Q.d(),t[149](null),ae=!1,tt(j)}}}function h1(t){let e,i,n;return i=new zo({}),{c(){e=T("div"),V(i.$$.fragment),c(e,"class","itemIcon svelte-1h807jq")},m(o,l){S(o,e,l),A(i,e,null),n=!0},i(o){n||(d(i.$$.fragment,o),n=!0)},o(o){_(i.$$.fragment,o),n=!1},d(o){o&&k(e),L(i)}}}function g1(t){let e,i,n;return i=new zo({}),{c(){e=T("div"),V(i.$$.fragment),c(e,"class","itemIcon svelte-1h807jq")},m(o,l){S(o,e,l),A(i,e,null),n=!0},i(o){n||(d(i.$$.fragment,o),n=!0)},o(o){_(i.$$.fragment,o),n=!1},d(o){o&&k(e),L(i)}}}function b1(t){let e,i,n,o,l,r,a,s,u,f,p,h;n=new jn({props:{direction:"left"}});let w=Pt(t[7]),g=[];for(let b=0;b<w.length;b+=1)g[b]=y1(jd(t,w,b));let C=b=>_(g[b],1,1,()=>{g[b]=null});return{c(){e=T("div"),i=T("div"),V(n.$$.fragment),o=M(),l=T("div"),l.textContent=`${N("subtitles_caption")}`,a=M(),s=T("ul");for(let b=0;b<g.length;b+=1)g[b].c();c(i,"class","item menu-header svelte-1h807jq"),c(i,"aria-label",r=N("aria_label_submenu_back")),q(i,"item-mobile",t[40]),c(s,"class","items svelte-1h807jq"),c(s,"role","menu"),c(s,"style",u=t[85](t[24]?.clientHeight,!0)),q(s,"items-mobile",t[40]),c(e,"class","menu menu-subList menu-subList-subtitles svelte-1h807jq"),q(e,"menu-desktop",!t[40]),q(e,"menu-mobile",t[40])},m(b,E){S(b,e,E),m(e,i),A(n,i,null),m(i,o),m(i,l),t[150](i),m(e,a),m(e,s);for(let v=0;v<g.length;v+=1)g[v]&&g[v].m(s,null);t[153](s),f=!0,p||(h=[_e(i,"click",ot(t[77])),_e(s,"keydown",t[102])],p=!0)},p(b,E){if((!f||E[1]&512)&&q(i,"item-mobile",b[40]),E[0]&128|E[1]&512|E[2]&16384|E[3]&1024){w=Pt(b[7]);let v;for(v=0;v<w.length;v+=1){let y=jd(b,w,v);g[v]?(g[v].p(y,E),d(g[v],1)):(g[v]=y1(y),g[v].c(),d(g[v],1),g[v].m(s,null))}for(me(),v=w.length;v<g.length;v+=1)C(v);pe()}(!f||E[0]&16777216&&u!==(u=b[85](b[24]?.clientHeight,!0)))&&c(s,"style",u),(!f||E[1]&512)&&q(s,"items-mobile",b[40]),(!f||E[1]&512)&&q(e,"menu-desktop",!b[40]),(!f||E[1]&512)&&q(e,"menu-mobile",b[40])},i(b){if(!f){d(n.$$.fragment,b);for(let E=0;E<w.length;E+=1)d(g[E]);f=!0}},o(b){_(n.$$.fragment,b),g=g.filter(Boolean);for(let E=0;E<g.length;E+=1)_(g[E]);f=!1},d(b){b&&k(e),L(n),t[150](null),Ei(g,b),t[153](null),p=!1,tt(h)}}}function v1(t){let e,i,n;return i=new zo({}),{c(){e=T("div"),V(i.$$.fragment),c(e,"class","itemIcon svelte-1h807jq")},m(o,l){S(o,e,l),A(i,e,null),n=!0},i(o){n||(d(i.$$.fragment,o),n=!0)},o(o){_(i.$$.fragment,o),n=!1},d(o){o&&k(e),L(i)}}}function y1(t){let e,i,n,o=t[165].displayValue+"",l,r,a,s,u,f,p,h=t[165].selected&&v1(t);function w(){return t[151](t[165])}function g(...C){return t[152](t[165],...C)}return{c(){e=T("li"),h&&h.c(),i=M(),n=T("div"),l=Re(o),r=M(),c(n,"class","submenu-value svelte-1h807jq"),q(n,"submenu-value-mobile",t[40]),c(e,"class","item item-quality svelte-1h807jq"),c(e,"data-value",a=t[165].value),c(e,"role","menuitem"),c(e,"tabindex","0"),c(e,"aria-label",s=t[165].displayValue),q(e,"item-mobile",t[40])},m(C,b){S(C,e,b),h&&h.m(e,null),m(e,i),m(e,n),m(n,l),m(e,r),u=!0,f||(p=[_e(e,"click",ot(w)),_e(e,"keydown",g)],f=!0)},p(C,b){t=C,t[165].selected?h?b[0]&128&&d(h,1):(h=v1(t),h.c(),d(h,1),h.m(e,i)):h&&(me(),_(h,1,1,()=>{h=null}),pe()),(!u||b[0]&128)&&o!==(o=t[165].displayValue+"")&&Ge(l,o),(!u||b[1]&512)&&q(n,"submenu-value-mobile",t[40]),(!u||b[0]&128&&a!==(a=t[165].value))&&c(e,"data-value",a),(!u||b[0]&128&&s!==(s=t[165].displayValue))&&c(e,"aria-label",s),(!u||b[1]&512)&&q(e,"item-mobile",t[40])},i(C){u||(d(h),u=!0)},o(C){_(h),u=!1},d(C){C&&k(e),h&&h.d(),f=!1,tt(p)}}}function Tg(t){let e,i,n,o,l,r,a,s=t[12]&&Zd(t),u=t[14]&&l1(t),f=t[15]&&u1(t),p=t[16]&&d1(t),h=t[18]&&_1(t),w=t[17]&&b1(t);return{c(){e=T("div"),s&&s.c(),i=M(),u&&u.c(),n=M(),f&&f.c(),o=M(),p&&p.c(),l=M(),h&&h.c(),r=M(),w&&w.c(),c(e,"class","svelte-1h807jq"),q(e,"hidden",!t[12]),q(e,"container-mobile",t[40])},m(g,C){S(g,e,C),s&&s.m(e,null),m(e,i),u&&u.m(e,null),m(e,n),f&&f.m(e,null),m(e,o),p&&p.m(e,null),m(e,l),h&&h.m(e,null),m(e,r),w&&w.m(e,null),a=!0},p(g,C){g[12]?s?(s.p(g,C),C[0]&4096&&d(s,1)):(s=Zd(g),s.c(),d(s,1),s.m(e,i)):s&&(me(),_(s,1,1,()=>{s=null}),pe()),g[14]?u?(u.p(g,C),C[0]&16384&&d(u,1)):(u=l1(g),u.c(),d(u,1),u.m(e,n)):u&&(me(),_(u,1,1,()=>{u=null}),pe()),g[15]?f?(f.p(g,C),C[0]&32768&&d(f,1)):(f=u1(g),f.c(),d(f,1),f.m(e,o)):f&&(me(),_(f,1,1,()=>{f=null}),pe()),g[16]?p?(p.p(g,C),C[0]&65536&&d(p,1)):(p=d1(g),p.c(),d(p,1),p.m(e,l)):p&&(me(),_(p,1,1,()=>{p=null}),pe()),g[18]?h?(h.p(g,C),C[0]&262144&&d(h,1)):(h=_1(g),h.c(),d(h,1),h.m(e,r)):h&&(me(),_(h,1,1,()=>{h=null}),pe()),g[17]?w?(w.p(g,C),C[0]&131072&&d(w,1)):(w=b1(g),w.c(),d(w,1),w.m(e,null)):w&&(me(),_(w,1,1,()=>{w=null}),pe()),(!a||C[0]&4096)&&q(e,"hidden",!g[12]),(!a||C[1]&512)&&q(e,"container-mobile",g[40])},i(g){a||(d(s),d(u),d(f),d(p),d(h),d(w),a=!0)},o(g){_(s),_(u),_(f),_(p),_(h),_(w),a=!1},d(g){g&&k(e),s&&s.d(),u&&u.d(),f&&f.d(),p&&p.d(),h&&h.d(),w&&w.d()}}}var Pg=18;function Ig(t,e,i){let n,o,l,r,a,s,u,f,p,h,w,g,C,b,E,v,y,P,W,B,O,ne,ge,G,X,ae,j,{ref:z=void 0}=e,{supportLink:Q}=e,{playerControlsHeight:$=0}=e,{returnFocus:K}=e,Y=it(),ie=Bt(),re=Y.state.audioStream$;D(t,re,te=>i(41,g=te));let Ve=Y.state.availableAudioStreams$;D(t,Ve,te=>i(9,C=te));let Xe=Y.state.currentQuality$;D(t,Xe,te=>i(120,v=te));let Se=Y.state.availableQualities$;D(t,Se,te=>i(10,b=te));let Me=Y.state.autoQualityLimitingAvailable$;D(t,Me,te=>i(124,B=te));let Ke=Y.state.isAutoQualityEnabled$;D(t,Ke,te=>i(121,y=te));let $e=Y.state.currentPlaybackRate$;D(t,$e,te=>i(11,E=te));let ce=Y.state.availablePlaybackRates$;D(t,ce,te=>i(8,p=te));let he=Y.state.currentSubtitle$;D(t,he,te=>i(42,ae=te));let at=Y.state.availableSubtitlesList$;D(t,at,te=>i(7,u=te));let ke=Y.state.canDownload,Fe=Y.state.hasMpegSources$;D(t,Fe,te=>i(125,O=te));let ft=Y.ui.settingsMenuVisible;D(t,ft,te=>i(12,X=te));let Qe=Y.ui.settingsMenuOpenedByKeyboard;D(t,Qe,te=>i(155,o=te));let je=Y.ui.isMobile;D(t,je,te=>i(40,l=te));let Ze=Y.ui.mobileNotReportControlHidden$;D(t,Ze,te=>i(122,P=te));let xe=Y.state.canChangePlaybackSpeed$;D(t,xe,te=>i(123,W=te));let x=Y.ui.isFullscreen;D(t,x,te=>i(158,G=te));let De=Y.state.trafficSavingEnabled$;D(t,De,te=>i(6,a=te));let ze=Y.ui.playerSize;D(t,ze,te=>i(157,ge=te));let fe=Y.ui.debugPanelVisible;D(t,fe,te=>i(43,j=te));let se=Y.ui.playerSize;D(t,se,te=>i(156,ne=te));let nt=Y.state.isInteractiveTime$,de=Y.actions.internal.downloadVideo,lt=Y.actions.internal.closeSettingsMenu,rt=!0,dt=!1,yt=!1,Et=!1,Ye=!1,Kt=!1,qt=!1;function kt(){o||K?.(),lt(),qt=!1}function ui(){i(13,rt=!1),i(14,dt=!0)}function st(){i(13,rt=!1),i(15,yt=!0)}function wt(){i(13,rt=!1),i(18,Kt=!0)}function we(te){Y.actions.internal.setQuality(te),kt()}function gt(te){Y.actions.internal.setAudioStream(te),kt()}function St(te){Y.actions.internal.setTrafficSavingEnabled(te),kt()}function Xt(){i(13,rt=!1),i(16,Et=!0)}function Ct(te){Y.actions.internal.setPlaybackRate(te),kt()}function Wt(){i(13,rt=!1),i(17,Ye=!0)}function jt(te){Y.actions.internal.setSubtitle(te),kt()}function Dt(){i(13,rt=!0),i(14,dt=!1),i(15,yt=!1),i(16,Et=!1),i(17,Ye=!1),i(18,Kt=!1)}function Fi(){de(),kt()}function xi(){window.open(Q,"_blank"),kt(),Y.actions.internal.pause()}function Jt(){ll(Y.actions.internal.getDebugTextData()),kt()}function Ai(){fe.set(!0),kt()}let $i=()=>{let te=Y.actions.internal.getTraceTextData(),mt=new Blob([...te],{type:"application/json"}),si=window.URL.createObjectURL(mt);Mo(si,"vk_player_trace_info","json"),kt()};function zi(){qt=!0}function en(){qt=!1}function Li(te,mt,si){if(!te)return"...";let Qn=mt.find(ee=>ee.value===te),Fn=Qn?Qn.displayValue:te;return si?te===wg.INVARIANT?N("auto_quality_invariant"):N("auto_quality",{actual:Fn}):Fn}let Mi,ci,fi,yi,wi,ni;function ki(te=0,mt=!1){return l&&G&&mt?`max-height: ${Math.round(ge.height*.6)}px`:l?"":`max-height: ${ne.height-Pg-te-$}px; overflow: auto;`}let Hi,Nt,Si,Vi,Ui,di,Mt,Ki,tn,Ot,Wi,ji,Gt,Ci=qe(!1);D(t,Ci,te=>i(119,w=te));let mi=qe(!1);D(t,mi,te=>i(118,h=te));let Ti,Qt,Ft=qe(!1);D(t,Ft,te=>i(117,f=te));let xt,Ri,oi=qe(!1);D(t,oi,te=>i(116,s=te));let li,$t,pi=qe(!1);D(t,pi,te=>i(115,r=te));let Gi=te=>{dr(te,lt)},an=async te=>{cl(te,ui,()=>{let mt=b.findIndex(si=>si.selected);return ji.childNodes[mt]})},Bi=async te=>{cl(te,st,()=>{let mt=C.findIndex(si=>si.id===g?.id);return Gt.childNodes[mt]})},ri=async te=>{fl(te,Dt,Ci,lt)},Yt=(te,mt)=>{ii(te,()=>we(mt))},nn=async te=>{fl(te,Dt,mi,lt)},At=(te,mt)=>{ii(te,()=>gt(mt))},Vt=async te=>{cl(te,Xt,()=>{let mt=p.findIndex(si=>si.selected);return Qt.childNodes[mt]})},on=async te=>{fl(te,Dt,Ft,lt)},_i=(te,mt)=>{ii(te,()=>Ct(mt))},ei=async te=>{cl(te,Wt,()=>{let mt=u.findIndex(si=>si.selected);return Ri.childNodes[mt]})},ln=async te=>{fl(te,Dt,oi,lt)},et=(te,mt)=>{ii(te,()=>jt(mt))},Pi=async te=>{cl(te,wt,()=>{let mt=a?2:0;return $t.childNodes[mt]})},ti=async te=>{fl(te,Dt,pi,lt)},He=(te,mt)=>{ii(te,()=>St(mt))},Qi=te=>{ii(te,()=>Fi())},un=te=>{ii(te,()=>xi())},cn=te=>{ii(te,()=>Jt())},Yi=te=>{ii(te,()=>Ai())},qi=te=>{ii(te,()=>$i())};It(()=>{let te=nt.subscribe(mt=>{mt&&!l&&!qt&&!o&&kt()});return()=>{te()}});function rn(te){be[te?"unshift":"push"](()=>{Ot=te,i(1,Ot)})}function Di(te){be[te?"unshift":"push"](()=>{Wi=te,i(2,Wi)})}function Zt(te){be[te?"unshift":"push"](()=>{Ti=te,i(3,Ti)})}function Zi(te){be[te?"unshift":"push"](()=>{xt=te,i(4,xt)})}function hi(te){be[te?"unshift":"push"](()=>{li=te,i(5,li)})}function hn(te){be[te?"unshift":"push"](()=>{z=te,i(0,z)})}function fn(te){be[te?"unshift":"push"](()=>{ci=te,i(20,ci)})}let dn=te=>we(te.value),yn=(te,mt)=>Yt(mt,te.value);function sn(te){be[te?"unshift":"push"](()=>{ji=te,i(34,ji)})}function mn(te){be[te?"unshift":"push"](()=>{fi=te,i(21,fi)})}let pn=te=>gt(te),Xi=(te,mt)=>At(mt,te);function gi(te){be[te?"unshift":"push"](()=>{Gt=te,i(35,Gt)})}function wn(te){be[te?"unshift":"push"](()=>{yi=te,i(22,yi)})}let Ji=te=>Ct(te.value),In=(te,mt)=>_i(mt,te.value);function zt(te){be[te?"unshift":"push"](()=>{Qt=te,i(36,Qt)})}function En(te){be[te?"unshift":"push"](()=>{wi=te,i(23,wi)})}let An=()=>St(!1),kn=te=>He(te,!1),Ln=()=>St(!0),le=te=>He(te,!0);function _t(te){be[te?"unshift":"push"](()=>{$t=te,i(38,$t)})}function Ni(te){be[te?"unshift":"push"](()=>{ni=te,i(24,ni)})}let _n=te=>jt(te),Mn=(te,mt)=>et(mt,te);function Vn(te){be[te?"unshift":"push"](()=>{Ri=te,i(37,Ri)})}return t.$$set=te=>{"ref"in te&&i(0,z=te.ref),"supportLink"in te&&i(112,Q=te.supportLink),"playerControlsHeight"in te&&i(113,$=te.playerControlsHeight),"returnFocus"in te&&i(114,K=te.returnFocus)},t.$$.update=()=>{t.$$.dirty[0]&4096&&X&&(i(13,rt=!0),i(14,dt=!1),i(15,yt=!1),i(16,Et=!1),i(17,Ye=!1),i(18,Kt=!1)),t.$$.dirty[3]&134217728&&i(39,n=_o(v)),t.$$.dirty[0]&1024|t.$$.dirty[3]&402653184&&i(19,Mi=Li(v,b,y)),t.$$.dirty[3]&536870912|t.$$.dirty[4]&2&&i(25,Hi=ke&&O&&!P),t.$$.dirty[3]&536870912|t.$$.dirty[4]&1&&i(26,Nt=ie.features.trafficSaving&&!P&&B),t.$$.dirty[0]&128|t.$$.dirty[3]&536870912&&i(27,Si=u.length>0&&!P),t.$$.dirty[3]&1610612736&&i(28,Vi=!!W&&!P),t.$$.dirty[0]&512|t.$$.dirty[3]&536870912&&i(29,Ui=ie.features.audioLanguages&&C.length>=2&&!P),t.$$.dirty[3]&536870912&&i(30,di=!P),t.$$.dirty[0]&64&&i(31,Mt=a?N("traffic_saving_on"):N("traffic_saving_off")),t.$$.dirty[3]&402653184&&i(32,Ki=y?N("auto_quality_option"):v),t.$$.dirty[0]&2304&&i(33,tn=p.find(te=>te.value===E)?.displayValue),t.$$.dirty[0]&2|t.$$.dirty[3]&67108864&&ul(Ot,Ci,w),t.$$.dirty[0]&4|t.$$.dirty[3]&33554432&&ul(Wi,mi,h),t.$$.dirty[0]&8|t.$$.dirty[3]&16777216&&ul(Ti,Ft,f),t.$$.dirty[0]&16|t.$$.dirty[3]&8388608&&ul(xt,oi,s),t.$$.dirty[0]&32|t.$$.dirty[3]&4194304&&ul(li,pi,r)},[z,Ot,Wi,Ti,xt,li,a,u,p,C,b,E,X,rt,dt,yt,Et,Ye,Kt,Mi,ci,fi,yi,wi,ni,Hi,Nt,Si,Vi,Ui,di,Mt,Ki,tn,ji,Gt,Qt,Ri,$t,n,l,g,ae,j,ie,re,Ve,Xe,Se,Me,Ke,$e,ce,he,at,Fe,ft,Qe,je,Ze,xe,x,De,ze,fe,se,kt,ui,st,wt,we,gt,St,Xt,Ct,Wt,jt,Dt,Fi,xi,Jt,Ai,$i,zi,en,ki,Ci,mi,Ft,oi,pi,Gi,an,Bi,ri,Yt,nn,At,Vt,on,_i,ei,ln,et,Pi,ti,He,Qi,un,cn,Yi,qi,Q,$,K,r,s,f,h,w,v,y,P,W,B,O,rn,Di,Zt,Zi,hi,hn,fn,dn,yn,sn,mn,pn,Xi,gi,wn,Ji,In,zt,En,An,kn,Ln,le,_t,Ni,_n,Mn,Vn]}var Ia=class extends H{constructor(e){super(),U(this,e,Ig,Tg,F,{ref:0,supportLink:112,playerControlsHeight:113,returnFocus:114},kg,[-1,-1,-1,-1,-1,-1])}},Cr=Ia;function Eg(t){Te(t,"svelte-d9t49t",".settings-icon-wrapper.svelte-d9t49t{position:relative;width:24px}")}function Ag(t){let e,i,n;return i=new kr({props:{isMobile:t[3],currentQuality:t[4]}}),{c(){e=T("span"),V(i.$$.fragment),c(e,"class","settings-icon-wrapper svelte-d9t49t")},m(o,l){S(o,e,l),A(i,e,null),n=!0},p(o,l){let r={};l&8&&(r.isMobile=o[3]),l&16&&(r.currentQuality=o[4]),i.$set(r)},i(o){n||(d(i.$$.fragment,o),n=!0)},o(o){_(i.$$.fragment,o),n=!1},d(o){o&&k(e),L(i)}}}function Lg(t){let e,i,n;function o(r){t[9](r)}let l={className:t[1]?"opened":"",testId:"btn-settings",click:t[8],ariaLabel:t[2],ariaExpanded:t[1],$$slots:{default:[Ag]},$$scope:{ctx:t}};return t[0]!==void 0&&(l.ref=t[0]),e=new ht({props:l}),be.push(()=>Oe(e,"ref",o)),{c(){V(e.$$.fragment)},m(r,a){A(e,r,a),n=!0},p(r,[a]){let s={};a&2&&(s.className=r[1]?"opened":""),a&4&&(s.ariaLabel=r[2]),a&2&&(s.ariaExpanded=r[1]),a&4120&&(s.$$scope={dirty:a,ctx:r}),!i&&a&1&&(i=!0,s.ref=r[0],Ne(()=>i=!1)),e.$set(s)},i(r){n||(d(e.$$.fragment,r),n=!0)},o(r){_(e.$$.fragment,r),n=!1},d(r){L(e,r)}}}function Mg(t,e,i){let n,o,l,{ref:r=void 0}=e,a=it(),s=a.state.currentQuality$;D(t,s,C=>i(4,l=C));let u=a.ui.settingsMenuVisible;D(t,u,C=>i(1,n=C));let f=a.actions.internal.toggleSettingsMenu,p=a.ui.isMobile;D(t,p,C=>i(3,o=C));let h;function w(C){let b=sl(C);f(b)}function g(C){r=C,i(0,r)}return t.$$set=C=>{"ref"in C&&i(0,r=C.ref)},t.$$.update=()=>{t.$$.dirty&2&&i(2,h=n?N("tooltip_settings_on"):N("tooltip_settings_off"))},[r,n,h,o,l,s,u,p,w,g]}var Ea=class extends H{constructor(e){super(),U(this,e,Mg,Lg,F,{ref:0},Eg)}},Ml=Ea;function Vg(t){let e,i,n,o=t[2].default,l=Ie(o,t,t[1],null),r=[{xmlns:"http://www.w3.org/2000/svg"},{width:"22"},{height:"16"},{fill:"none"},{"aria-hidden":"true"},{"data-testid":"subtitle-pained-icon"},{role:"img"},t[0]],a={};for(let s=0;s<r.length;s+=1)a=ue(a,r[s]);return{c(){e=R("svg"),l&&l.c(),i=R("path"),c(i,"fill","#fff"),c(i,"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"),ye(e,a)},m(s,u){S(s,e,u),l&&l.m(e,null),m(e,i),n=!0},p(s,[u]){l&&l.p&&(!n||u&2)&&Ae(l,o,s,s[1],n?Ee(o,s[1],u,null):Le(s[1]),null),ye(e,a=Be(r,[{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(l,s),n=!0)},o(s){_(l,s),n=!1},d(s){s&&k(e),l&&l.d(s)}}}function Rg(t,e,i){let{$$slots:n={},$$scope:o}=e;return t.$$set=l=>{i(0,e=ue(ue({},e),ve(l))),"$$scope"in l&&i(1,o=l.$$scope)},e=ve(e),[e,o,n]}var Aa=class extends H{constructor(e){super(),U(this,e,Rg,Vg,F,{})}},w1=Aa;function Bg(t){let e,i;return e=new Sr({}),{c(){V(e.$$.fragment)},m(n,o){A(e,n,o),i=!0},i(n){i||(d(e.$$.fragment,n),i=!0)},o(n){_(e.$$.fragment,n),i=!1},d(n){L(e,n)}}}function qg(t){let e,i;return e=new w1({}),{c(){V(e.$$.fragment)},m(n,o){A(e,n,o),i=!0},i(n){i||(d(e.$$.fragment,n),i=!0)},o(n){_(e.$$.fragment,n),i=!1},d(n){L(e,n)}}}function Dg(t){let e,i,n,o,l=[qg,Bg],r=[];function a(s,u){return s[0]?0:1}return e=a(t,-1),i=r[e]=l[e](t),{c(){i.c(),n=ct()},m(s,u){r[e].m(s,u),S(s,n,u),o=!0},p(s,u){let f=e;e=a(s,u),e!==f&&(me(),_(r[f],1,1,()=>{r[f]=null}),pe(),i=r[e],i||(i=r[e]=l[e](s),i.c()),d(i,1),i.m(n.parentNode,n))},i(s){o||(d(i),o=!0)},o(s){_(i),o=!1},d(s){s&&k(n),r[e].d(s)}}}function Ng(t){let e,i;return e=new ht({props:{testId:"btn-Subtitles",ariaLabel:t[2],click:t[1],ariaKeyShortCut:Xn.KeyC,$$slots:{default:[Dg]},$$scope:{ctx:t}}}),{c(){V(e.$$.fragment)},m(n,o){A(e,n,o),i=!0},p(n,[o]){let l={};o&4&&(l.ariaLabel=n[2]),o&2&&(l.click=n[1]),o&9&&(l.$$scope={dirty:o,ctx:n}),e.$set(l)},i(n){i||(d(e.$$.fragment,n),i=!0)},o(n){_(e.$$.fragment,n),i=!1},d(n){L(e,n)}}}function Og(t,e,i){let{isSubtitlesEnabled:n=!1}=e,{click:o}=e,l;return t.$$set=r=>{"isSubtitlesEnabled"in r&&i(0,n=r.isSubtitlesEnabled),"click"in r&&i(1,o=r.click)},t.$$.update=()=>{t.$$.dirty&1&&i(2,l=n?N("tooltip_subtitles_on"):N("tooltip_subtitles_off"))},[n,o,l]}var La=class extends H{constructor(e){super(),U(this,e,Og,Ng,F,{isSubtitlesEnabled:0,click:1})}},k1=La;function Fg(t){Te(t,"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 S1(t){let e,i;return{c(){e=T("span"),i=Re(t[3]),c(e,"class","duration svelte-19o2urr")},m(n,o){S(n,e,o),m(e,i)},p(n,o){o&8&&Ge(i,n[3])},d(n){n&&k(e)}}}function zg(t){let e,i,n,o,l=t[2]&&S1(t);return{c(){e=T("div"),i=T("span"),n=Re(t[4]),o=M(),l&&l.c(),c(i,"class","current svelte-19o2urr"),c(e,"class","time svelte-19o2urr"),q(e,"mobile",t[1])},m(r,a){S(r,e,a),m(e,i),m(i,n),m(e,o),l&&l.m(e,null),t[7](e)},p(r,[a]){a&16&&Ge(n,r[4]),r[2]?l?l.p(r,a):(l=S1(r),l.c(),l.m(e,null)):l&&(l.d(1),l=null),a&2&&q(e,"mobile",r[1])},i:Ce,o:Ce,d(r){r&&k(e),l&&l.d(),t[7](null)}}}function Hg(t,e,i){let{isMobile:n=!1}=e,{duration:o}=e,{position:l}=e,{showDuration:r=!0}=e,{ref:a}=e,s,u;function f(p){be[p?"unshift":"push"](()=>{a=p,i(0,a)})}return t.$$set=p=>{"isMobile"in p&&i(1,n=p.isMobile),"duration"in p&&i(5,o=p.duration),"position"in p&&i(6,l=p.position),"showDuration"in p&&i(2,r=p.showDuration),"ref"in p&&i(0,a=p.ref)},t.$$.update=()=>{t.$$.dirty&32&&i(3,s=Tn(o)),t.$$.dirty&64&&i(4,u=Tn(l))},[a,n,r,s,u,o,l,f]}var Ma=class extends H{constructor(e){super(),U(this,e,Hg,zg,F,{isMobile:1,duration:5,position:6,showDuration:2,ref:0},Fg)}},Tr=Ma;import{noop as ho}from"@vkontakte/videoplayer-shared";function Ug(t){Te(t,"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 Kg(t){let e,i,n,o,l,r;return{c(){e=R("svg"),i=R("g"),n=R("path"),o=R("path"),l=R("path"),c(n,"class","wave2 svelte-1n5yyua"),c(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"),c(o,"class","wave1 svelte-1n5yyua"),c(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"),c(l,"class","cross svelte-1n5yyua"),c(l,"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"),c(i,"fill","#fff"),c(i,"fill-rule","evenodd"),c(e,"data-value",t[0]),c(e,"data-testid",r="volume-"+t[0]+"-icon"),c(e,"xmlns","http://www.w3.org/2000/svg"),c(e,"class","icon svelte-1n5yyua"),c(e,"aria-hidden","true")},m(a,s){S(a,e,s),m(e,i),m(i,n),m(i,o),m(i,l)},p(a,[s]){s&1&&c(e,"data-value",a[0]),s&1&&r!==(r="volume-"+a[0]+"-icon")&&c(e,"data-testid",r)},i:Ce,o:Ce,d(a){a&&k(e)}}}function Wg(t,e,i){let{volume:n=1}=e,{muted:o=!1}=e,l=(a,s)=>s?"off":a>.5?"max":a>.2?"mid":a>0?"min":"off",r;return t.$$set=a=>{"volume"in a&&i(1,n=a.volume),"muted"in a&&i(2,o=a.muted)},t.$$.update=()=>{t.$$.dirty&6&&i(0,r=l(n,o))},[r,n,o]}var Va=class extends H{constructor(e){super(),U(this,e,Wg,Kg,F,{volume:1,muted:2},Ug)}},Ho=Va;import{noop as Gn}from"@vkontakte/videoplayer-shared";import{noop as xg}from"@vkontakte/videoplayer-shared";import{noop as Qg}from"@vkontakte/videoplayer-shared";function jg(t){let e,i,n=t[4].default,o=Ie(n,t,t[3],null);return{c(){e=T("div"),o&&o.c(),c(e,"class","overlay")},m(l,r){S(l,e,r),o&&o.m(e,null),t[5](e),i=!0},p(l,[r]){o&&o.p&&(!i||r&8)&&Ae(o,n,l,l[3],i?Ee(n,l[3],r,null):Le(l[3]),null)},i(l){i||(d(o,l),i=!0)},o(l){_(o,l),i=!1},d(l){l&&k(e),o&&o.d(l),t[5](null)}}}function Gg(t,e,i){let n,{$$slots:o={},$$scope:l}=e,a=it().ui.overlayContainer$;D(t,a,h=>i(2,n=h));let s,u=h=>{!h||!s||!h.contains(s)||h.removeChild(s)},f=h=>{!h||!s||h.contains(s)||h.appendChild(s)};It(()=>(f(n),()=>u(n)));function p(h){be[h?"unshift":"push"](()=>{s=h,i(0,s)})}return t.$$set=h=>{"$$scope"in h&&i(3,l=h.$$scope)},t.$$.update=()=>{t.$$.dirty&4&&f(n)},[s,a,n,l,o,p]}var Ra=class extends H{constructor(e){super(),U(this,e,Gg,jg,F,{})}},C1=Ra;function Yg(t){Te(t,"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 T1(t){let e,i;return e=new C1({props:{$$slots:{default:[Zg]},$$scope:{ctx:t}}}),{c(){V(e.$$.fragment)},m(n,o){A(e,n,o),i=!0},p(n,o){let l={};o&2097395&&(l.$$scope={dirty:o,ctx:n}),e.$set(l)},i(n){i||(d(e.$$.fragment,n),i=!0)},o(n){_(e.$$.fragment,n),i=!1},d(n){L(e,n)}}}function Zg(t){let e,i,n,o,l,r,a;return{c(){e=T("div"),i=T("div"),n=Re(t[1]),o=M(),l=T("div"),c(i,"class","content svelte-tny135"),c(l,"class","tooltip-pointer svelte-tny135"),c(l,"style",r=`transform: translate(${t[5]}px, ${t[9]}px) rotate(${t[8]?0:"180deg"});`),q(l,"bottom-placement-pointer",!t[8]),c(e,"class","tooltip svelte-tny135"),c(e,"style",a=`transform: translate(${t[6]}px, ${t[7]}px);`),q(e,"active",t[0])},m(s,u){S(s,e,u),m(e,i),m(i,n),m(e,o),m(e,l),t[20](e)},p(s,u){u&2&&Ge(n,s[1]),u&32&&r!==(r=`transform: translate(${s[5]}px, ${s[9]}px) rotate(${s[8]?0:"180deg"});`)&&c(l,"style",r),u&192&&a!==(a=`transform: translate(${s[6]}px, ${s[7]}px);`)&&c(e,"style",a),u&1&&q(e,"active",s[0])},d(s){s&&k(e),t[20](null)}}}function Xg(t){let e,i,n,o,l,r,a=t[18].default,s=Ie(a,t,t[21],null),u=t[1]&&T1(t);return{c(){e=T("div"),s&&s.c(),i=M(),u&&u.c(),n=ct(),c(e,"class","tooltip-wrapper svelte-tny135"),q(e,"full-width",t[2])},m(f,p){S(f,e,p),s&&s.m(e,null),t[19](e),S(f,i,p),u&&u.m(f,p),S(f,n,p),o=!0,l||(r=[_e(e,"mouseenter",t[12]),_e(e,"mousemove",t[12]),_e(e,"mouseleave",t[13]),_e(e,"mousedown",t[13]),_e(e,"mouseup",t[12])],l=!0)},p(f,[p]){s&&s.p&&(!o||p&2097152)&&Ae(s,a,f,f[21],o?Ee(a,f[21],p,null):Le(f[21]),null),(!o||p&4)&&q(e,"full-width",f[2]),f[1]?u?(u.p(f,p),p&2&&d(u,1)):(u=T1(f),u.c(),d(u,1),u.m(n.parentNode,n)):u&&(me(),_(u,1,1,()=>{u=null}),pe())},i(f){o||(d(s,f),d(u),o=!0)},o(f){_(s,f),_(u),o=!1},d(f){f&&(k(e),k(i),k(n)),s&&s.d(f),t[19](null),u&&u.d(f),l=!1,tt(r)}}}var Vl=5;function Jg(t,e,i){let n,o,{$$slots:l={},$$scope:r}=e,{content:a=""}=e,{active:s=!1}=e,{translateX:u=0}=e,{translateY:f=0}=e,{isFullWidthWrapper:p=!1}=e,{placement:h="top"}=e,{onVisibilityChange:w=Qg}=e,g=h==="top",C,b,E,v=0,y=g?Vl:-Vl,P=0,W=0,B=Bt(),O=it(),ne=O.ui.playerSize;D(t,ne,Y=>i(24,o=Y));let ge=O.ui.overlayContainer$;D(t,ge,Y=>i(23,n=Y));let G=O.getLogger().createComponentLog("Tooltip component"),X=()=>{if(!n||!b||!C)return;let Y=n.getBoundingClientRect(),ie=C.getBoundingClientRect(),re=ie.width,Ve=b.clientWidth,Xe=o.width,Se=(re-Ve)/2,Me=ie.left+u-Y.left,Ke=Me+Se,$e=ie.top+f-Y.top,ce=Ve/2-Vl,he=Ke<8,at=Ke+Ve>Xe-8;he&&(Ke=8,ce=Me+ie.width/2-2.5*Vl),at&&(Ke=Xe-8-Ve,ce=ie.left-Y.left+ie.width/2-Ke-Vl),i(6,P=Ke),i(7,W=$e),i(5,v=ce)},ae=()=>{try{if(!n||!C)return;X(),i(0,s=!0)}catch(Y){G({message:String(Y)})}},j=()=>{i(0,s=!1)},z=()=>{b&&(E||(E=window.setTimeout(ae,B.controls.hideTimeoutTooltips)),s&&ae())},Q=()=>{j(),window.clearTimeout(E),E=void 0};It(X),Un(()=>window.clearTimeout(E));function $(Y){be[Y?"unshift":"push"](()=>{C=Y,i(3,C)})}function K(Y){be[Y?"unshift":"push"](()=>{b=Y,i(4,b)})}return t.$$set=Y=>{"content"in Y&&i(1,a=Y.content),"active"in Y&&i(0,s=Y.active),"translateX"in Y&&i(14,u=Y.translateX),"translateY"in Y&&i(15,f=Y.translateY),"isFullWidthWrapper"in Y&&i(2,p=Y.isFullWidthWrapper),"placement"in Y&&i(16,h=Y.placement),"onVisibilityChange"in Y&&i(17,w=Y.onVisibilityChange),"$$scope"in Y&&i(21,r=Y.$$scope)},t.$$.update=()=>{t.$$.dirty&131073&&w(s)},[s,a,p,C,b,v,P,W,g,y,ne,ge,z,Q,u,f,h,w,l,$,K,r]}var Ba=class extends H{constructor(e){super(),U(this,e,Jg,Xg,F,{content:1,active:0,translateX:14,translateY:15,isFullWidthWrapper:2,placement:16,onVisibilityChange:17},Yg)}},Pr=Ba;function $g(t){Te(t,"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 eb(t){let e,i=t[19].default,n=Ie(i,t,t[24],null);return{c(){n&&n.c()},m(o,l){n&&n.m(o,l),e=!0},p(o,l){n&&n.p&&(!e||l&16777216)&&Ae(n,i,o,o[24],e?Ee(i,o[24],l,null):Le(o[24]),null)},i(o){e||(d(n,o),e=!0)},o(o){_(n,o),e=!1},d(o){n&&n.d(o)}}}function tb(t){let e,i;return e=new Pr({props:{content:t[11],translateX:t[9],translateY:t[10],isFullWidthWrapper:t[4],active:t[5],placement:t[6],onVisibilityChange:t[8],$$slots:{default:[ib]},$$scope:{ctx:t}}}),{c(){V(e.$$.fragment)},m(n,o){A(e,n,o),i=!0},p(n,o){let l={};o&2048&&(l.content=n[11]),o&512&&(l.translateX=n[9]),o&1024&&(l.translateY=n[10]),o&16&&(l.isFullWidthWrapper=n[4]),o&32&&(l.active=n[5]),o&64&&(l.placement=n[6]),o&256&&(l.onVisibilityChange=n[8]),o&16777216&&(l.$$scope={dirty:o,ctx:n}),e.$set(l)},i(n){i||(d(e.$$.fragment,n),i=!0)},o(n){_(e.$$.fragment,n),i=!1},d(n){L(e,n)}}}function ib(t){let e,i=t[19].default,n=Ie(i,t,t[24],null);return{c(){n&&n.c()},m(o,l){n&&n.m(o,l),e=!0},p(o,l){n&&n.p&&(!e||l&16777216)&&Ae(n,i,o,o[24],e?Ee(i,o[24],l,null):Le(o[24]),null)},i(o){e||(d(n,o),e=!0)},o(o){_(n,o),e=!1},d(o){n&&n.d(o)}}}function nb(t){let e,i,n,o,l,r,a,s,u,f=[tb,eb],p=[];function h(w,g){return w[3]&&w[11]&&!w[12]?0:1}return i=h(t,-1),n=p[i]=f[i](t),{c(){e=T("div"),n.c(),c(e,"class",o="btn-container "+t[2]+" svelte-p9r045"),c(e,"aria-hidden",l=t[7]||null),Wn(()=>t[23].call(e))},m(w,g){S(w,e,g),p[i].m(e,null),t[22](e),r=Xo(e,t[23].bind(e)),a=!0,s||(u=[_e(e,"pointerdown",ot(t[20])),_e(e,"click",ot(t[21]))],s=!0)},p(w,[g]){let C=i;i=h(w,g),i===C?p[i].p(w,g):(me(),_(p[C],1,1,()=>{p[C]=null}),pe(),n=p[i],n?n.p(w,g):(n=p[i]=f[i](w),n.c()),d(n,1),n.m(e,null)),(!a||g&4&&o!==(o="btn-container "+w[2]+" svelte-p9r045"))&&c(e,"class",o),(!a||g&128&&l!==(l=w[7]||null))&&c(e,"aria-hidden",l)},i(w){a||(d(n),a=!0)},o(w){_(n),a=!1},d(w){w&&k(e),p[i].d(),t[22](null),r(),s=!1,tt(u)}}}function ob(t,e,i){let n,o,{$$slots:l={},$$scope:r}=e,{className:a=""}=e,{disabled:s=!1}=e,{hasTooltip:u=!0}=e,{ref:f=void 0}=e,{width:p=void 0}=e,{isFullWidthTooltip:h=!0}=e,{tooltipContent:w=""}=e,{tooltipActive:g=!1}=e,{tooltipPlacement:C="top"}=e,{disabledTooltipContent:b=N("tooltip_button_disabled")}=e,{isAriaHidden:E=!1}=e,{onTooltipVisibilityChange:v=xg}=e,{initialTranslateXPx:y=0}=e,{initialTranslateYPx:P=-18}=e,W=it(),B=W.ui.isMobile;D(t,B,j=>i(12,o=j));let O=W.state.graphIsOpened$;D(t,O,j=>i(18,n=j));let ne;function ge(j){Cn.call(this,t,j)}function G(j){Cn.call(this,t,j)}function X(j){be[j?"unshift":"push"](()=>{f=j,i(0,f)})}function ae(){p=this.clientWidth,i(1,p)}return t.$$set=j=>{"className"in j&&i(2,a=j.className),"disabled"in j&&i(15,s=j.disabled),"hasTooltip"in j&&i(3,u=j.hasTooltip),"ref"in j&&i(0,f=j.ref),"width"in j&&i(1,p=j.width),"isFullWidthTooltip"in j&&i(4,h=j.isFullWidthTooltip),"tooltipContent"in j&&i(16,w=j.tooltipContent),"tooltipActive"in j&&i(5,g=j.tooltipActive),"tooltipPlacement"in j&&i(6,C=j.tooltipPlacement),"disabledTooltipContent"in j&&i(17,b=j.disabledTooltipContent),"isAriaHidden"in j&&i(7,E=j.isAriaHidden),"onTooltipVisibilityChange"in j&&i(8,v=j.onTooltipVisibilityChange),"initialTranslateXPx"in j&&i(9,y=j.initialTranslateXPx),"initialTranslateYPx"in j&&i(10,P=j.initialTranslateYPx),"$$scope"in j&&i(24,r=j.$$scope)},t.$$.update=()=>{t.$$.dirty&491520&&(s?i(11,ne=n?N("tooltip_disabled_when_graph_on"):b):i(11,ne=w))},[f,p,a,u,h,g,C,E,v,y,P,ne,o,B,O,s,w,b,n,l,ge,G,X,ae,r]}var qa=class extends H{constructor(e){super(),U(this,e,ob,nb,F,{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},$g)}},Lt=qa;function lb(t){let e,i,n,o,l,r;return{c(){e=R("svg"),i=R("rect"),o=R("path"),c(i,"width","20"),c(i,"height","20"),c(i,"rx","10"),c(i,"fill","white"),c(i,"fill-opacity",n=t[0]?1:.24),c(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"),c(o,"fill",l=t[0]?"var(--interactive-episode-complete)":"white"),c(e,"width","20"),c(e,"height","20"),c(e,"viewBox","0 0 20 20"),c(e,"fill","none"),c(e,"xmlns","http://www.w3.org/2000/svg"),c(e,"aria-hidden","true"),c(e,"data-testid",r=(t[0],"interactive-episode-completed-icon"))},m(a,s){S(a,e,s),m(e,i),m(e,o)},p(a,[s]){s&1&&n!==(n=a[0]?1:.24)&&c(i,"fill-opacity",n),s&1&&l!==(l=a[0]?"var(--interactive-episode-complete)":"white")&&c(o,"fill",l),s&1&&r!==(r=(a[0],"interactive-episode-completed-icon"))&&c(e,"data-testid",r)},i:Ce,o:Ce,d(a){a&&k(e)}}}function rb(t,e,i){let{completed:n}=e;return t.$$set=o=>{"completed"in o&&i(0,n=o.completed)},[n]}var Da=class extends H{constructor(e){super(),U(this,e,rb,lb,F,{completed:0})}},Ir=Da;function sb(t){Te(t,"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 ab(t){let e,i,n,o,l;return i=new Ir({props:{completed:!!t[0].completed}}),{c(){e=T("div"),V(i.$$.fragment),c(e,"class","interactive-episode-icon svelte-bklhpe"),c(e,"style",n=`left: ${t[0].from+t[0].width/2}%`),Wn(()=>t[3].call(e)),q(e,"disabled",t[1])},m(r,a){S(r,e,a),A(i,e,null),o=Xo(e,t[3].bind(e)),l=!0},p(r,a){let s={};a&1&&(s.completed=!!r[0].completed),i.$set(s),(!l||a&1&&n!==(n=`left: ${r[0].from+r[0].width/2}%`))&&c(e,"style",n),(!l||a&2)&&q(e,"disabled",r[1])},i(r){l||(d(i.$$.fragment,r),l=!0)},o(r){_(i.$$.fragment,r),l=!1},d(r){r&&k(e),L(i),o()}}}function ub(t){let e,i;return e=new Lt({props:{tooltipContent:N(t[0].completed?"tooltip_episode_finished":"tooltip_episode_unfinished"),initialTranslateXPx:-10,initialTranslateYPx:-10,disabled:t[1],width:t[2]||0,isAriaHidden:!0,isFullWidthTooltip:!1,$$slots:{default:[ab]},$$scope:{ctx:t}}}),{c(){V(e.$$.fragment)},m(n,o){A(e,n,o),i=!0},p(n,[o]){let l={};o&1&&(l.tooltipContent=N(n[0].completed?"tooltip_episode_finished":"tooltip_episode_unfinished")),o&2&&(l.disabled=n[1]),o&4&&(l.width=n[2]||0),o&23&&(l.$$scope={dirty:o,ctx:n}),e.$set(l)},i(n){i||(d(e.$$.fragment,n),i=!0)},o(n){_(e.$$.fragment,n),i=!1},d(n){L(e,n)}}}function cb(t,e,i){let{videoEpisode:n}=e,{disabled:o}=e,l;function r(){l=this.clientWidth,i(2,l)}return t.$$set=a=>{"videoEpisode"in a&&i(0,n=a.videoEpisode),"disabled"in a&&i(1,o=a.disabled)},[n,o,l,r]}var Na=class extends H{constructor(e){super(),U(this,e,cb,ub,F,{videoEpisode:0,disabled:1},sb)}},P1=Na;function fb(t){Te(t,"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 I1(t,e,i){let n=t.slice();return n[3]=e[i],n}function E1(t){let e,i,n,o,l,r,a,s,u;return{c(){e=T("div"),i=T("div"),n=T("div"),l=M(),r=T("div"),s=M(),c(n,"class","video-episode-loaded svelte-1rzxunm"),c(n,"style",o=`transform: translateX(${t[3].loadedWidth/t[3].width*100}%)`),c(r,"class","video-episode-filled svelte-1rzxunm"),c(r,"style",a=`transform: translateX(${t[3].filledWidth/t[3].width*100}%)`),q(r,"mobile",t[1]),c(i,"class","video-episode-inner svelte-1rzxunm"),c(e,"class","video-episode svelte-1rzxunm"),c(e,"style",u=`left: ${t[3].from}%; width: ${t[3].width}%`),q(e,"disabled",t[2]),q(e,"mobile",t[1])},m(f,p){S(f,e,p),m(e,i),m(i,n),m(i,l),m(i,r),m(e,s)},p(f,p){p&1&&o!==(o=`transform: translateX(${f[3].loadedWidth/f[3].width*100}%)`)&&c(n,"style",o),p&1&&a!==(a=`transform: translateX(${f[3].filledWidth/f[3].width*100}%)`)&&c(r,"style",a),p&2&&q(r,"mobile",f[1]),p&1&&u!==(u=`left: ${f[3].from}%; width: ${f[3].width}%`)&&c(e,"style",u),p&4&&q(e,"disabled",f[2]),p&2&&q(e,"mobile",f[1])},d(f){f&&k(e)}}}function db(t){let e,i=Pt(t[0]),n=[];for(let o=0;o<i.length;o+=1)n[o]=E1(I1(t,i,o));return{c(){e=T("div");for(let o=0;o<n.length;o+=1)n[o].c();c(e,"class","video-episodes-wrap svelte-1rzxunm")},m(o,l){S(o,e,l);for(let r=0;r<n.length;r+=1)n[r]&&n[r].m(e,null)},p(o,[l]){if(l&7){i=Pt(o[0]);let r;for(r=0;r<i.length;r+=1){let a=I1(o,i,r);n[r]?n[r].p(a,l):(n[r]=E1(a),n[r].c(),n[r].m(e,null))}for(;r<n.length;r+=1)n[r].d(1);n.length=i.length}},i:Ce,o:Ce,d(o){o&&k(e),Ei(n,o)}}}function mb(t,e,i){let{videoEpisodes:n=[]}=e,{isMobile:o}=e,{disabled:l}=e;return t.$$set=r=>{"videoEpisodes"in r&&i(0,n=r.videoEpisodes),"isMobile"in r&&i(1,o=r.isMobile),"disabled"in r&&i(2,l=r.disabled)},[n,o,l]}var Oa=class extends H{constructor(e){super(),U(this,e,mb,db,F,{videoEpisodes:0,isMobile:1,disabled:2},fb)}},A1=Oa;function pb(t){Te(t,"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 L1(t,e,i){let n=t.slice();return n[50]=e[i],n}function M1(t){let e,i,n=Pt(t[21]),o=[];for(let r=0;r<n.length;r+=1)o[r]=R1(L1(t,n,r));let l=r=>_(o[r],1,1,()=>{o[r]=null});return{c(){e=T("div");for(let r=0;r<o.length;r+=1)o[r].c();c(e,"class","interactive-icons svelte-v8ydei"),q(e,"mobile",t[6]),q(e,"hidden",t[6]&&!t[20])},m(r,a){S(r,e,a);for(let s=0;s<o.length;s+=1)o[s]&&o[s].m(e,null);i=!0},p(r,a){if(a[0]&2098176){n=Pt(r[21]);let s;for(s=0;s<n.length;s+=1){let u=L1(r,n,s);o[s]?(o[s].p(u,a),d(o[s],1)):(o[s]=R1(u),o[s].c(),d(o[s],1),o[s].m(e,null))}for(me(),s=n.length;s<o.length;s+=1)l(s);pe()}(!i||a[0]&64)&&q(e,"mobile",r[6]),(!i||a[0]&1048640)&&q(e,"hidden",r[6]&&!r[20])},i(r){if(!i){for(let a=0;a<n.length;a+=1)d(o[a]);i=!0}},o(r){o=o.filter(Boolean);for(let a=0;a<o.length;a+=1)_(o[a]);i=!1},d(r){r&&k(e),Ei(o,r)}}}function V1(t){let e,i;return e=new P1({props:{videoEpisode:t[50],disabled:t[10]}}),{c(){V(e.$$.fragment)},m(n,o){A(e,n,o),i=!0},p(n,o){let l={};o[0]&2097152&&(l.videoEpisode=n[50]),o[0]&1024&&(l.disabled=n[10]),e.$set(l)},i(n){i||(d(e.$$.fragment,n),i=!0)},o(n){_(e.$$.fragment,n),i=!1},d(n){L(e,n)}}}function R1(t){let e,i,n=t[50].interactive&&V1(t);return{c(){n&&n.c(),e=ct()},m(o,l){n&&n.m(o,l),S(o,e,l),i=!0},p(o,l){o[50].interactive?n?(n.p(o,l),l[0]&2097152&&d(n,1)):(n=V1(o),n.c(),d(n,1),n.m(e.parentNode,e)):n&&(me(),_(n,1,1,()=>{n=null}),pe())},i(o){i||(d(n),i=!0)},o(o){_(n),i=!1},d(o){o&&k(e),n&&n.d(o)}}}function _b(t){let e,i,n,o,l,r;return{c(){e=T("div"),i=T("div"),o=M(),l=T("div"),c(i,"class","loaded svelte-v8ydei"),c(i,"style",n=`transform: translateX(${t[12]*100}%);`),c(l,"class","filled svelte-v8ydei"),c(l,"style",r=`transform: translateX(${t[13]*100}%);`),q(l,"active-live",t[5]),q(l,"ads",t[7]),c(e,"class","bars svelte-v8ydei")},m(a,s){S(a,e,s),m(e,i),m(e,o),m(e,l)},p(a,s){s[0]&4096&&n!==(n=`transform: translateX(${a[12]*100}%);`)&&c(i,"style",n),s[0]&8192&&r!==(r=`transform: translateX(${a[13]*100}%);`)&&c(l,"style",r),s[0]&32&&q(l,"active-live",a[5]),s[0]&128&&q(l,"ads",a[7])},i:Ce,o:Ce,d(a){a&&k(e)}}}function hb(t){let e,i;return e=new A1({props:{videoEpisodes:t[21],disabled:t[10],isMobile:t[6]}}),{c(){V(e.$$.fragment)},m(n,o){A(e,n,o),i=!0},p(n,o){let l={};o[0]&2097152&&(l.videoEpisodes=n[21]),o[0]&1024&&(l.disabled=n[10]),o[0]&64&&(l.isMobile=n[6]),e.$set(l)},i(n){i||(d(e.$$.fragment,n),i=!0)},o(n){_(e.$$.fragment,n),i=!1},d(n){L(e,n)}}}function gb(t){let e,i,n,o,l,r,a,s,u,f,p,h,w,g=t[9]&&M1(t),C=[hb,_b],b=[];function E(v,y){return v[21].length?0:1}return n=E(t,[-1,-1]),o=b[n]=C[n](t),{c(){g&&g.c(),e=M(),i=T("div"),o.c(),l=M(),r=T("div"),a=T("div"),c(a,"class","handle svelte-v8ydei"),q(a,"active-live",t[5]),c(r,"class","handleWrap svelte-v8ydei"),c(r,"style",s=`transform: translateX(${t[14]*100}%);`),q(r,"hidden",t[11]),c(i,"class",u="slider "+t[1]+" svelte-v8ydei"),c(i,"aria-label",t[15]),c(i,"aria-valuemin",t[16]),c(i,"aria-valuemax",t[17]),c(i,"aria-valuenow",t[18]),c(i,"aria-valuetext",t[19]),c(i,"role","slider"),c(i,"tabindex","0"),c(i,"data-testid",f=t[2]??null),q(i,"disabled",t[10]),q(i,"slider-dragging",t[20]),q(i,"hidden",t[3]),q(i,"slider-vertical",t[4]),q(i,"no-handle",t[11]),q(i,"square",t[8])},m(v,y){g&&g.m(v,y),S(v,e,y),S(v,i,y),b[n].m(i,null),m(i,l),m(i,r),m(r,a),t[44](i),p=!0,h||(w=[_e(i,"pointerdown",Ut(t[22])),_e(i,"pointermove",Ut(t[23])),_e(i,"pointerup",Ut(t[24])),_e(i,"pointerenter",Ut(t[25])),_e(i,"pointerleave",Ut(t[26])),_e(i,"click",ot(t[28])),_e(i,"wheel",t[27])],h=!0)},p(v,y){v[9]?g?(g.p(v,y),y[0]&512&&d(g,1)):(g=M1(v),g.c(),d(g,1),g.m(e.parentNode,e)):g&&(me(),_(g,1,1,()=>{g=null}),pe());let P=n;n=E(v,y),n===P?b[n].p(v,y):(me(),_(b[P],1,1,()=>{b[P]=null}),pe(),o=b[n],o?o.p(v,y):(o=b[n]=C[n](v),o.c()),d(o,1),o.m(i,l)),(!p||y[0]&32)&&q(a,"active-live",v[5]),(!p||y[0]&16384&&s!==(s=`transform: translateX(${v[14]*100}%);`))&&c(r,"style",s),(!p||y[0]&2048)&&q(r,"hidden",v[11]),(!p||y[0]&2&&u!==(u="slider "+v[1]+" svelte-v8ydei"))&&c(i,"class",u),(!p||y[0]&32768)&&c(i,"aria-label",v[15]),(!p||y[0]&65536)&&c(i,"aria-valuemin",v[16]),(!p||y[0]&131072)&&c(i,"aria-valuemax",v[17]),(!p||y[0]&262144)&&c(i,"aria-valuenow",v[18]),(!p||y[0]&524288)&&c(i,"aria-valuetext",v[19]),(!p||y[0]&4&&f!==(f=v[2]??null))&&c(i,"data-testid",f),(!p||y[0]&1026)&&q(i,"disabled",v[10]),(!p||y[0]&1048578)&&q(i,"slider-dragging",v[20]),(!p||y[0]&10)&&q(i,"hidden",v[3]),(!p||y[0]&18)&&q(i,"slider-vertical",v[4]),(!p||y[0]&2050)&&q(i,"no-handle",v[11]),(!p||y[0]&258)&&q(i,"square",v[8])},i(v){p||(d(g),d(o),p=!0)},o(v){_(g),_(o),p=!1},d(v){v&&(k(e),k(i)),g&&g.d(v),b[n].d(),t[44](null),h=!1,tt(w)}}}function bb(t,e,i){let n,o,{ref:l=void 0}=e,{className:r=""}=e,{testId:a=void 0}=e,{isHidden:s=!1}=e,{isVertical:u=!1}=e,{isActiveLive:f=!1}=e,{isMobile:p=!1}=e,{isAds:h=!1}=e,{squareBorders:w=!1}=e,{videoEpisodes:g=[]}=e,{withWheelHandler:C=!1}=e,{isInteractive:b=!1}=e,{disabled:E=!1}=e,{hideHandel:v=!1}=e,y,{onPointerDown:P=Gn}=e,{onHandleMove:W=Gn}=e,{onPointerUp:B=Gn}=e,{onPointerEnter:O=Gn}=e,{onPointerMove:ne=Gn}=e,{onPointerLeave:ge=Gn}=e,{onWheelUp:G=Gn}=e,{onWheelDown:X=Gn}=e,{onWheelLeft:ae=Gn}=e,{onWheelRight:j=Gn}=e,{onDisabledClick:z=Gn}=e,{loadedProgress:Q=0}=e,{filledProgress:$=0}=e,{handleProgress:K=0}=e,{ariaLabel:Y=""}=e,{ariaValueMin:ie=void 0}=e,{ariaValueMax:re=void 0}=e,{ariaValueNow:Ve=void 0}=e,{ariaValueText:Xe=""}=e,Se=Bt(),Me=!1,Ke;function $e(x){if(l&&(y=l.getBoundingClientRect()),E||Me||!l)return;i(20,Me=!0);let De=Qe(x.clientX,x.clientY);P(De),l.setPointerCapture(x.pointerId)}function ce(x){if(E)return;let De=Qe(x.clientX,x.clientY),ze=je(x.clientX);ne(De,ze,y.width),Me&&W(De)}function he(x){if(E||!Me)return;i(20,Me=!1);let De=Qe(x.clientX,x.clientY);B(De)}function at(x){if(l&&(y=l.getBoundingClientRect()),E)return;let De=Qe(x.clientX,x.clientY),ze=je(x.clientX);O(De,ze,y.width)}function ke(){E||ge()}function Fe(x){E||C&&(x.preventDefault(),x.deltaY<0?G():x.deltaY>0?X():x.deltaX>0?j():ae())}function ft(x){E&&z(Qe(x.clientX,x.clientY))}function Qe(x,De){return u?Math.max(0,Math.min(1,(y.height-(De-y.top))/y.height)):Math.min(Math.max(x-y.x,0),y.width)/y.width}function je(x){return Math.min(Math.max(x-y.x,0),y.width)}function Ze(x,De){let ze=Se.features.episodesClustering&&!b?Se.episodeMinWidthPc:0,fe=[],se=0,nt=0,de=0;for(let dt=1;dt<g.length;dt++)nt=g[dt].time/Ke*100,nt-se>ze&&(fe.push({from:se,width:Math.max(0,nt-se),loadedWidth:Math.max(0,Math.min(nt,x)-se),filledWidth:Math.max(0,Math.min(nt,De)-se),interactive:g[dt-1].interactive,completed:g[dt-1].completed}),se=g[dt].time/Ke*100,de++);let lt={from:se,width:Math.max(0,100-se),loadedWidth:Math.max(0,Math.min(x,100)-se),filledWidth:Math.max(0,Math.min(De,100)-se),interactive:g[de].interactive,completed:g[de].completed};100-se<ze?(de-=1,fe[de].width+=100-se,fe[de].loadedWidth+=Math.max(0,Math.min(x,100)-se),fe[de].filledWidth+=Math.max(0,Math.min(De,100)-se)):fe[de]=lt;let rt=g[0].time;if(rt!==0){let dt=rt/Ke*100;fe.unshift({from:0,width:dt,loadedWidth:Math.min(dt,x),filledWidth:Math.min(dt,De)})}return fe}function xe(x){be[x?"unshift":"push"](()=>{l=x,i(0,l)})}return t.$$set=x=>{"ref"in x&&i(0,l=x.ref),"className"in x&&i(1,r=x.className),"testId"in x&&i(2,a=x.testId),"isHidden"in x&&i(3,s=x.isHidden),"isVertical"in x&&i(4,u=x.isVertical),"isActiveLive"in x&&i(5,f=x.isActiveLive),"isMobile"in x&&i(6,p=x.isMobile),"isAds"in x&&i(7,h=x.isAds),"squareBorders"in x&&i(8,w=x.squareBorders),"videoEpisodes"in x&&i(29,g=x.videoEpisodes),"withWheelHandler"in x&&i(30,C=x.withWheelHandler),"isInteractive"in x&&i(9,b=x.isInteractive),"disabled"in x&&i(10,E=x.disabled),"hideHandel"in x&&i(11,v=x.hideHandel),"onPointerDown"in x&&i(31,P=x.onPointerDown),"onHandleMove"in x&&i(32,W=x.onHandleMove),"onPointerUp"in x&&i(33,B=x.onPointerUp),"onPointerEnter"in x&&i(34,O=x.onPointerEnter),"onPointerMove"in x&&i(35,ne=x.onPointerMove),"onPointerLeave"in x&&i(36,ge=x.onPointerLeave),"onWheelUp"in x&&i(37,G=x.onWheelUp),"onWheelDown"in x&&i(38,X=x.onWheelDown),"onWheelLeft"in x&&i(39,ae=x.onWheelLeft),"onWheelRight"in x&&i(40,j=x.onWheelRight),"onDisabledClick"in x&&i(41,z=x.onDisabledClick),"loadedProgress"in x&&i(12,Q=x.loadedProgress),"filledProgress"in x&&i(13,$=x.filledProgress),"handleProgress"in x&&i(14,K=x.handleProgress),"ariaLabel"in x&&i(15,Y=x.ariaLabel),"ariaValueMin"in x&&i(16,ie=x.ariaValueMin),"ariaValueMax"in x&&i(17,re=x.ariaValueMax),"ariaValueNow"in x&&i(18,Ve=x.ariaValueNow),"ariaValueText"in x&&i(19,Xe=x.ariaValueText)},t.$$.update=()=>{t.$$.dirty[0]&131072&&i(42,Ke=re??0),t.$$.dirty[0]&536870912|t.$$.dirty[1]&2048&&i(43,n=g[g.length-1]?.time<Ke),t.$$.dirty[0]&536883200|t.$$.dirty[1]&6144&&i(21,o=g.length&&n&&Ke?Ze(Q*100,$*100):[])},[l,r,a,s,u,f,p,h,w,b,E,v,Q,$,K,Y,ie,re,Ve,Xe,Me,o,$e,ce,he,at,ke,Fe,ft,g,C,P,W,B,O,ne,ge,G,X,ae,j,z,Ke,n,xe]}var Fa=class extends H{constructor(e){super(),U(this,e,bb,gb,F,{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},pb,[-1,-1])}},pl=Fa;var Pn=(t,e)=>Lo[t]>=Lo[e],B1=(t,e)=>Lo[t]<Lo[e],Er=(t,e)=>Lo[t]<=Lo[e],q1=t=>t>699?"xl":t>599?"l":t>509?"m":t>320?"s":"xs";function vb(t){Te(t,"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 yb(t){let e,i;return e=new Ho({props:{volume:t[3],muted:t[1]}}),{c(){V(e.$$.fragment)},m(n,o){A(e,n,o),i=!0},p(n,o){let l={};o[0]&8&&(l.volume=n[3]),o[0]&2&&(l.muted=n[1]),e.$set(l)},i(n){i||(d(e.$$.fragment,n),i=!0)},o(n){_(e.$$.fragment,n),i=!1},d(n){L(e,n)}}}function wb(t){let e,i;return e=new ht({props:{className:"btn-full-opacity",disabled:t[9],testId:t[2]?"btn-volume-vertical":"btn-volume-horizontal",ariaLabel:t[7],click:t[0],ariaKeyShortCut:Xn.KeyM,$$slots:{default:[yb]},$$scope:{ctx:t}}}),{c(){V(e.$$.fragment)},m(n,o){A(e,n,o),i=!0},p(n,o){let l={};o[0]&512&&(l.disabled=n[9]),o[0]&4&&(l.testId=n[2]?"btn-volume-vertical":"btn-volume-horizontal"),o[0]&128&&(l.ariaLabel=n[7]),o[0]&1&&(l.click=n[0]),o[0]&10|o[1]&32&&(l.$$scope={dirty:o,ctx:n}),e.$set(l)},i(n){i||(d(e.$$.fragment,n),i=!0)},o(n){_(e.$$.fragment,n),i=!1},d(n){L(e,n)}}}function D1(t){let e,i,n;return i=new pl({props:{className:t[2]?"volumeBar-slider-vertical":"",isHidden:t[2]&&!t[5],isVertical:t[2],withWheelHandler:!0,onWheelUp:t[15],onWheelDown:t[16],onPointerDown:t[14],onHandleMove:t[17],onPointerUp:t[18],onPointerEnter:t[2]?t[19]:ho,onPointerLeave:t[2]?t[20]:ho,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(t[8]*100),ariaValueText:`${Math.round(t[8]*100)}%`,filledProgress:t[8],handleProgress:t[8],testId:t[2]?"volume-slider-vertical":"volume-slider"}}),{c(){e=T("div"),V(i.$$.fragment),c(e,"class","volumeBar svelte-1l78lz9"),q(e,"volumeBar-vertical",t[2])},m(o,l){S(o,e,l),A(i,e,null),n=!0},p(o,l){let r={};l[0]&4&&(r.className=o[2]?"volumeBar-slider-vertical":""),l[0]&36&&(r.isHidden=o[2]&&!o[5]),l[0]&4&&(r.isVertical=o[2]),l[0]&4&&(r.onPointerEnter=o[2]?o[19]:ho),l[0]&4&&(r.onPointerLeave=o[2]?o[20]:ho),l[0]&256&&(r.ariaValueNow=Math.round(o[8]*100)),l[0]&256&&(r.ariaValueText=`${Math.round(o[8]*100)}%`),l[0]&256&&(r.filledProgress=o[8]),l[0]&256&&(r.handleProgress=o[8]),l[0]&4&&(r.testId=o[2]?"volume-slider-vertical":"volume-slider"),i.$set(r),(!n||l[0]&4)&&q(e,"volumeBar-vertical",o[2])},i(o){n||(d(i.$$.fragment,o),n=!0)},o(o){_(i.$$.fragment,o),n=!1},d(o){o&&k(e),L(i)}}}function kb(t){let e,i,n,o,l,r;i=new Pr({props:{content:t[6],translateY:-18,$$slots:{default:[wb]},$$scope:{ctx:t}}});let a=t[4]&&D1(t);return{c(){e=T("div"),V(i.$$.fragment),n=M(),a&&a.c(),c(e,"class","volumeBar-container svelte-1l78lz9"),q(e,"vertical",t[2])},m(s,u){S(s,e,u),A(i,e,null),m(e,n),a&&a.m(e,null),o=!0,l||(r=[_e(e,"mouseenter",function(){Ii(t[2]?t[21]:ho)&&(t[2]?t[21]:ho).apply(this,arguments)}),_e(e,"mouseleave",function(){Ii(t[2]?t[22]:ho)&&(t[2]?t[22]:ho).apply(this,arguments)}),_e(e,"wheel",Ut(t[23]))],l=!0)},p(s,u){t=s;let f={};u[0]&64&&(f.content=t[6]),u[0]&655|u[1]&32&&(f.$$scope={dirty:u,ctx:t}),i.$set(f),t[4]?a?(a.p(t,u),u[0]&16&&d(a,1)):(a=D1(t),a.c(),d(a,1),a.m(e,null)):a&&(me(),_(a,1,1,()=>{a=null}),pe()),(!o||u[0]&4)&&q(e,"vertical",t[2])},i(s){o||(d(i.$$.fragment,s),d(a),o=!0)},o(s){_(i.$$.fragment,s),_(a),o=!1},d(s){s&&k(e),L(i),a&&a.d(),l=!1,tt(r)}}}function Sb(t,e,i){let n,o,l,r,{click:a}=e,s=it(),u=Bt(),f=s.state.volume$;D(t,f,Se=>i(3,n=Se));let p=s.state.muted$;D(t,p,Se=>i(25,r=Se));let h=s.actions.internal.setVolume,w=s.ui.currentGridType$;D(t,w,Se=>i(24,l=Se));let g=s.callbacks?.onAudioDoesNotExistHint,C=s.callbacks?.onAudioDisabledHint,b=s.state.isAudioAvailable$;D(t,b,Se=>i(4,o=Se));let E=s.state.isAudioDisabled,v=!1,y,P,W,B,O,ne,ge=1,G=!1,X=!1;function ae(Se){ge=n,h(Se)}function j(){gr(s,n,u.controls.volumeStepWheel)}function z(){br(s,n,u.controls.volumeStepWheel)}function Q(Se){h(Se)}function $(Se){let Me=Se;h(Me,Me===0?ge:Me)}function K(){G=!0}function Y(){G=!1,Ve()}function ie(){clearTimeout(y),i(5,v=!0)}function re(){Ve()}function Ve(){y=window.setTimeout(()=>{G||i(5,v=!1)},u.controls.volumeBarTimeout)}function Xe(Se){Se.deltaY<0?j():Se.deltaY>0&&z()}return t.$$set=Se=>{"click"in Se&&i(0,a=Se.click)},t.$$.update=()=>{t.$$.dirty[0]&33554448&&i(1,B=!o||r),t.$$.dirty[0]&16777216&&i(2,O=Er(l,"s")),t.$$.dirty[0]&6&&(O?i(6,P=""):i(6,P=B?N("tooltip_volume"):N("tooltip_volume_muted")),i(7,W=B?N("tooltip_volume"):N("tooltip_volume_muted"))),t.$$.dirty[0]&10&&i(8,ne=B?0:n),t.$$.dirty[0]&16&&(o?i(9,X=E&&!C):i(9,X=!g))},[a,B,O,n,o,v,P,W,ne,X,f,p,w,b,ae,j,z,Q,$,K,Y,ie,re,Xe,l,r]}var za=class extends H{constructor(e){super(),U(this,e,Sb,kb,F,{click:0},vb,[-1,-1])}},N1=za;import{noop as Ab}from"@vkontakte/videoplayer-shared";function Cb(t){let e,i,n,o,l,r=t[2].default,a=Ie(r,t,t[1],null),s=[{xmlns:"http://www.w3.org/2000/svg"},{width:"24"},{height:"24"},{"aria-hidden":"true"},{role:"img"},t[0]],u={};for(let f=0;f<s.length;f+=1)u=ue(u,s[f]);return{c(){e=R("svg"),a&&a.c(),i=R("g"),n=R("path"),o=R("path"),c(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"),c(n,"class","_exit"),c(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"),c(o,"class","_enter"),c(i,"fill","#fff"),c(i,"fill-rule","evenodd"),ye(e,u)},m(f,p){S(f,e,p),a&&a.m(e,null),m(e,i),m(i,n),m(i,o),l=!0},p(f,[p]){a&&a.p&&(!l||p&2)&&Ae(a,r,f,f[1],l?Ee(r,f[1],p,null):Le(f[1]),null),ye(e,u=Be(s,[{xmlns:"http://www.w3.org/2000/svg"},{width:"24"},{height:"24"},{"aria-hidden":"true"},{role:"img"},p&1&&f[0]]))},i(f){l||(d(a,f),l=!0)},o(f){_(a,f),l=!1},d(f){f&&k(e),a&&a.d(f)}}}function Tb(t,e,i){let{$$slots:n={},$$scope:o}=e;return t.$$set=l=>{i(0,e=ue(ue({},e),ve(l))),"$$scope"in l&&i(1,o=l.$$scope)},e=ve(e),[e,o,n]}var Ha=class extends H{constructor(e){super(),U(this,e,Tb,Cb,F,{})}},O1=Ha;function Pb(t){Te(t,"svelte-17t966y",'svg[data-testid="close-fullscreen-icon"] ._enter,svg[data-testid="open-fullscreen-icon"] ._exit{visibility:hidden;opacity:0}')}function Ib(t){let e,i;return e=new O1({props:{"data-testid":t[0]?"close-fullscreen-icon":"open-fullscreen-icon"}}),{c(){V(e.$$.fragment)},m(n,o){A(e,n,o),i=!0},p(n,[o]){let l={};o&1&&(l["data-testid"]=n[0]?"close-fullscreen-icon":"open-fullscreen-icon"),e.$set(l)},i(n){i||(d(e.$$.fragment,n),i=!0)},o(n){_(e.$$.fragment,n),i=!1},d(n){L(e,n)}}}function Eb(t,e,i){let{isFullscreen:n=!1}=e;return t.$$set=o=>{"isFullscreen"in o&&i(0,n=o.isFullscreen)},[n]}var Ua=class extends H{constructor(e){super(),U(this,e,Eb,Ib,F,{isFullscreen:0},Pb)}},F1=Ua;function Lb(t){let e,i;return e=new F1({props:{isFullscreen:t[0]}}),{c(){V(e.$$.fragment)},m(n,o){A(e,n,o),i=!0},p(n,o){let l={};o&1&&(l.isFullscreen=n[0]),e.$set(l)},i(n){i||(d(e.$$.fragment,n),i=!0)},o(n){_(e.$$.fragment,n),i=!1},d(n){L(e,n)}}}function Mb(t){let e,i;return e=new ht({props:{testId:"btn-fullscreen",ariaLabel:t[2],click:t[1],ariaKeyShortCut:Xn.KeyF,$$slots:{default:[Lb]},$$scope:{ctx:t}}}),{c(){V(e.$$.fragment)},m(n,o){A(e,n,o),i=!0},p(n,[o]){let l={};o&4&&(l.ariaLabel=n[2]),o&2&&(l.click=n[1]),o&9&&(l.$$scope={dirty:o,ctx:n}),e.$set(l)},i(n){i||(d(e.$$.fragment,n),i=!0)},o(n){_(e.$$.fragment,n),i=!1},d(n){L(e,n)}}}function Vb(t,e,i){let{isFullscreen:n=!1}=e,{click:o=Ab}=e,l;return t.$$set=r=>{"isFullscreen"in r&&i(0,n=r.isFullscreen),"click"in r&&i(1,o=r.click)},t.$$.update=()=>{t.$$.dirty&1&&i(2,l=n?N("tooltip_fullscreen_on"):N("tooltip_fullscreen_off"))},[n,o,l]}var Ka=class extends H{constructor(e){super(),U(this,e,Vb,Mb,F,{isFullscreen:0,click:1})}},Ar=Ka;function Rb(t){let e,i,n,o=t[2].default,l=Ie(o,t,t[1],null),r=[{xmlns:"http://www.w3.org/2000/svg"},{width:"24"},{height:"24"},{fill:"none"},{"aria-hidden":"true"},{"data-testid":"play-icon"},{role:"img"},t[0]],a={};for(let s=0;s<r.length;s+=1)a=ue(a,r[s]);return{c(){e=R("svg"),l&&l.c(),i=R("path"),c(i,"fill","#fff"),c(i,"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"),ye(e,a)},m(s,u){S(s,e,u),l&&l.m(e,null),m(e,i),n=!0},p(s,[u]){l&&l.p&&(!n||u&2)&&Ae(l,o,s,s[1],n?Ee(o,s[1],u,null):Le(s[1]),null),ye(e,a=Be(r,[{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(l,s),n=!0)},o(s){_(l,s),n=!1},d(s){s&&k(e),l&&l.d(s)}}}function Bb(t,e,i){let{$$slots:n={},$$scope:o}=e;return t.$$set=l=>{i(0,e=ue(ue({},e),ve(l))),"$$scope"in l&&i(1,o=l.$$scope)},e=ve(e),[e,o,n]}var Wa=class extends H{constructor(e){super(),U(this,e,Bb,Rb,F,{})}},_l=Wa;function qb(t){let e,i,n,o=t[2].default,l=Ie(o,t,t[1],null),r=[{xmlns:"http://www.w3.org/2000/svg"},{width:"24"},{height:"24"},{fill:"none"},{"aria-hidden":"true"},{"data-testid":"pause-icon"},{role:"img"},t[0]],a={};for(let s=0;s<r.length;s+=1)a=ue(a,r[s]);return{c(){e=R("svg"),l&&l.c(),i=R("path"),c(i,"fill","#fff"),c(i,"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"),ye(e,a)},m(s,u){S(s,e,u),l&&l.m(e,null),m(e,i),n=!0},p(s,[u]){l&&l.p&&(!n||u&2)&&Ae(l,o,s,s[1],n?Ee(o,s[1],u,null):Le(s[1]),null),ye(e,a=Be(r,[{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(l,s),n=!0)},o(s){_(l,s),n=!1},d(s){s&&k(e),l&&l.d(s)}}}function Db(t,e,i){let{$$slots:n={},$$scope:o}=e;return t.$$set=l=>{i(0,e=ue(ue({},e),ve(l))),"$$scope"in l&&i(1,o=l.$$scope)},e=ve(e),[e,o,n]}var ja=class extends H{constructor(e){super(),U(this,e,Db,qb,F,{})}},Lr=ja;import{noop as Nb}from"@vkontakte/videoplayer-shared";function Ob(t){Te(t,"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 z1(t){let e;return{c(){e=T("div"),c(e,"class","icon-background-mobile svelte-1ot3duq")},m(i,n){S(i,e,n)},d(i){i&&k(e)}}}function Fb(t){let e,i,n,o,l=t[1]&&z1(t);var r=t[8];function a(s,u){return{}}return r&&(n=bn(r,a(t))),{c(){l&&l.c(),e=M(),i=T("div"),n&&V(n.$$.fragment),c(i,"class","svelte-1ot3duq"),q(i,"mobile",t[1])},m(s,u){l&&l.m(s,u),S(s,e,u),S(s,i,u),n&&A(n,i,null),o=!0},p(s,u){if(s[1]?l||(l=z1(s),l.c(),l.m(e.parentNode,e)):l&&(l.d(1),l=null),u&256&&r!==(r=s[8])){if(n){me();let f=n;_(f.$$.fragment,1,0,()=>{L(f,1)}),pe()}r?(n=bn(r,a(s,u)),V(n.$$.fragment),d(n.$$.fragment,1),A(n,i,null)):n=null}(!o||u&2)&&q(i,"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(i)),l&&l.d(s),n&&L(n)}}}function zb(t){let e,i,n;function o(r){t[13](r)}let l={className:(t[1]?"btn-m--play":"")+" "+t[3],testId:"btn-play",click:t[5]?t[6]:t[4],disabled:t[2],ariaLabel:t[7],ariaKeyShortCut:Xn.KeyK,$$slots:{default:[Fb]},$$scope:{ctx:t}};return t[0]!==void 0&&(l.ref=t[0]),e=new ht({props:l}),be.push(()=>Oe(e,"ref",o)),{c(){V(e.$$.fragment)},m(r,a){A(e,r,a),n=!0},p(r,[a]){let s={};a&10&&(s.className=(r[1]?"btn-m--play":"")+" "+r[3]),a&112&&(s.click=r[5]?r[6]:r[4]),a&4&&(s.disabled=r[2]),a&128&&(s.ariaLabel=r[7]),a&33026&&(s.$$scope={dirty:a,ctx:r}),!i&&a&1&&(i=!0,s.ref=r[0],Ne(()=>i=!1)),e.$set(s)},i(r){n||(d(e.$$.fragment,r),n=!0)},o(r){_(e.$$.fragment,r),n=!1},d(r){L(e,r)}}}function Hb(t,e,i){let n,o,{fakeIsPlaying$:l}=qn();D(t,l,v=>i(12,o=v));let{ref:r=void 0}=e,{isMobile:a=!1}=e,{isPlaying:s=!1}=e,{disabled:u=!1}=e,{className:f=""}=e,{click:p=Nb}=e,{toggle:h}=l,w,g,C,b;function E(v){r=v,i(0,r)}return t.$$set=v=>{"ref"in v&&i(0,r=v.ref),"isMobile"in v&&i(1,a=v.isMobile),"isPlaying"in v&&i(10,s=v.isPlaying),"disabled"in v&&i(2,u=v.disabled),"className"in v&&i(3,f=v.className),"click"in v&&i(4,p=v.click)},t.$$.update=()=>{t.$$.dirty&4096&&i(5,g=o!==null),t.$$.dirty&5152&&i(11,C=g?o:s),t.$$.dirty&2048&&i(7,b=C?N("tooltip_pause"):N("tooltip_play")),t.$$.dirty&2048&&i(8,n=C?Lr:_l)},i(6,w=h),[r,a,u,f,p,g,w,b,n,l,s,C,o,E]}var Ga=class extends H{constructor(e){super(),U(this,e,Hb,zb,F,{ref:0,isMobile:1,isPlaying:10,disabled:2,className:3,click:4},Ob)}},Rl=Ga;function Ub(t){let e,i,n,o=t[2].default,l=Ie(o,t,t[1],null),r=[{xmlns:"http://www.w3.org/2000/svg"},{width:"26"},{height:"24"},{fill:"none"},{"aria-hidden":"true"},{role:"img"},t[0]],a={};for(let s=0;s<r.length;s+=1)a=ue(a,r[s]);return{c(){e=R("svg"),l&&l.c(),i=R("path"),c(i,"fill","#fff"),c(i,"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"),ye(e,a)},m(s,u){S(s,e,u),l&&l.m(e,null),m(e,i),n=!0},p(s,[u]){l&&l.p&&(!n||u&2)&&Ae(l,o,s,s[1],n?Ee(o,s[1],u,null):Le(s[1]),null),ye(e,a=Be(r,[{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(l,s),n=!0)},o(s){_(l,s),n=!1},d(s){s&&k(e),l&&l.d(s)}}}function Kb(t,e,i){let{$$slots:n={},$$scope:o}=e;return t.$$set=l=>{i(0,e=ue(ue({},e),ve(l))),"$$scope"in l&&i(1,o=l.$$scope)},e=ve(e),[e,o,n]}var Qa=class extends H{constructor(e){super(),U(this,e,Kb,Ub,F,{})}},H1=Qa;function Wb(t){let e,i;return e=new H1({props:{style:t[1],"data-testid":t[0]?"prev-icon":"next-icon"}}),{c(){V(e.$$.fragment)},m(n,o){A(e,n,o),i=!0},p(n,[o]){let l={};o&2&&(l.style=n[1]),o&1&&(l["data-testid"]=n[0]?"prev-icon":"next-icon"),e.$set(l)},i(n){i||(d(e.$$.fragment,n),i=!0)},o(n){_(e.$$.fragment,n),i=!1},d(n){L(e,n)}}}function jb(t,e,i){let{isPrev:n=!1}=e,{isMobile:o=!1}=e,l;return t.$$set=r=>{"isPrev"in r&&i(0,n=r.isPrev),"isMobile"in r&&i(2,o=r.isMobile)},t.$$.update=()=>{t.$$.dirty&5&&(n&&o?i(1,l="transform: scaleX(-1) scale(1.3333);"):n?i(1,l="transform: scaleX(-1);"):o?i(1,l="transform: scale(1.3333);"):i(1,l=void 0))},[n,l,o]}var Ya=class extends H{constructor(e){super(),U(this,e,jb,Wb,F,{isPrev:0,isMobile:2})}},U1=Ya;function Gb(t){let e,i;return e=new U1({props:{isMobile:t[1],isPrev:t[3]==="prev"}}),{c(){V(e.$$.fragment)},m(n,o){A(e,n,o),i=!0},p(n,o){let l={};o&2&&(l.isMobile=n[1]),o&8&&(l.isPrev=n[3]==="prev"),e.$set(l)},i(n){i||(d(e.$$.fragment,n),i=!0)},o(n){_(e.$$.fragment,n),i=!1},d(n){L(e,n)}}}function Qb(t){let e,i,n;function o(r){t[6](r)}let l={testId:"btn-"+t[3],disabled:t[2],ariaLabel:t[5],click:t[4],$$slots:{default:[Gb]},$$scope:{ctx:t}};return t[0]!==void 0&&(l.ref=t[0]),e=new ht({props:l}),be.push(()=>Oe(e,"ref",o)),{c(){V(e.$$.fragment)},m(r,a){A(e,r,a),n=!0},p(r,[a]){let s={};a&8&&(s.testId="btn-"+r[3]),a&4&&(s.disabled=r[2]),a&32&&(s.ariaLabel=r[5]),a&16&&(s.click=r[4]),a&138&&(s.$$scope={dirty:a,ctx:r}),!i&&a&1&&(i=!0,s.ref=r[0],Ne(()=>i=!1)),e.$set(s)},i(r){n||(d(e.$$.fragment,r),n=!0)},o(r){_(e.$$.fragment,r),n=!1},d(r){L(e,r)}}}function Yb(t,e,i){let{ref:n=void 0}=e,{isMobile:o=!1}=e,{disabled:l=!1}=e,{type:r}=e,{click:a}=e,s;function u(f){n=f,i(0,n)}return t.$$set=f=>{"ref"in f&&i(0,n=f.ref),"isMobile"in f&&i(1,o=f.isMobile),"disabled"in f&&i(2,l=f.disabled),"type"in f&&i(3,r=f.type),"click"in f&&i(4,a=f.click)},t.$$.update=()=>{t.$$.dirty&8&&i(5,s=r==="prev"?N("tooltip_previous"):N("tooltip_next"))},[n,o,l,r,a,s,u]}var Za=class extends H{constructor(e){super(),U(this,e,Yb,Qb,F,{ref:0,isMobile:1,disabled:2,type:3,click:4})}},hl=Za;function Zb(t){let e,i,n,o=t[2].default,l=Ie(o,t,t[1],null),r=[{xmlns:"http://www.w3.org/2000/svg"},{width:"24"},{height:"24"},{fill:"none"},{"aria-hidden":"true"},{"data-testid":"vk-logo-icon"},{role:"img"},t[0]],a={};for(let s=0;s<r.length;s+=1)a=ue(a,r[s]);return{c(){e=R("svg"),l&&l.c(),i=R("path"),c(i,"fill","#fff"),c(i,"fill-rule","evenodd"),c(i,"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"),c(i,"clip-rule","evenodd"),ye(e,a)},m(s,u){S(s,e,u),l&&l.m(e,null),m(e,i),n=!0},p(s,[u]){l&&l.p&&(!n||u&2)&&Ae(l,o,s,s[1],n?Ee(o,s[1],u,null):Le(s[1]),null),ye(e,a=Be(r,[{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(l,s),n=!0)},o(s){_(l,s),n=!1},d(s){s&&k(e),l&&l.d(s)}}}function Xb(t,e,i){let{$$slots:n={},$$scope:o}=e;return t.$$set=l=>{i(0,e=ue(ue({},e),ve(l))),"$$scope"in l&&i(1,o=l.$$scope)},e=ve(e),[e,o,n]}var Xa=class extends H{constructor(e){super(),U(this,e,Xb,Zb,F,{})}},K1=Xa;function Jb(t){let e,i,n,o,l,r,a=t[2].default,s=Ie(a,t,t[1],null),u=[{xmlns:"http://www.w3.org/2000/svg"},{width:"95"},{height:"24"},{fill:"none"},{"aria-hidden":"true"},{role:"img"},t[0]],f={};for(let p=0;p<u.length;p+=1)f=ue(f,u[p]);return{c(){e=R("svg"),s&&s.c(),i=R("path"),n=R("path"),o=R("path"),l=R("path"),c(i,"fill","#fff"),c(i,"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"),c(n,"fill","#fff"),c(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"),c(n,"class","_ru"),c(o,"fill","#fff"),c(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"),c(o,"class","_en"),c(l,"fill","#fff"),c(l,"fill-rule","evenodd"),c(l,"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"),c(l,"clip-rule","evenodd"),ye(e,f)},m(p,h){S(p,e,h),s&&s.m(e,null),m(e,i),m(e,n),m(e,o),m(e,l),r=!0},p(p,[h]){s&&s.p&&(!r||h&2)&&Ae(s,a,p,p[1],r?Ee(a,p[1],h,null):Le(p[1]),null),ye(e,f=Be(u,[{xmlns:"http://www.w3.org/2000/svg"},{width:"95"},{height:"24"},{fill:"none"},{"aria-hidden":"true"},{role:"img"},h&1&&p[0]]))},i(p){r||(d(s,p),r=!0)},o(p){_(s,p),r=!1},d(p){p&&k(e),s&&s.d(p)}}}function xb(t,e,i){let{$$slots:n={},$$scope:o}=e;return t.$$set=l=>{i(0,e=ue(ue({},e),ve(l))),"$$scope"in l&&i(1,o=l.$$scope)},e=ve(e),[e,o,n]}var Ja=class extends H{constructor(e){super(),U(this,e,xb,Jb,F,{})}},W1=Ja;function $b(t){Te(t,"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 ev(t){let e,i;return e=new W1({props:{width:t[0],height:"24",viewBox:"0 0 "+(t[0]+1)+" 24","data-testid":t[1]}}),{c(){V(e.$$.fragment)},m(n,o){A(e,n,o),i=!0},p(n,[o]){let l={};o&1&&(l.width=n[0]),o&1&&(l.viewBox="0 0 "+(n[0]+1)+" 24"),o&2&&(l["data-testid"]=n[1]),e.$set(l)},i(n){i||(d(e.$$.fragment,n),i=!0)},o(n){_(e.$$.fragment,n),i=!1},d(n){L(e,n)}}}var tv="vk-video-logo-icon--short";function iv(t,e,i){let{short:n=!1}=e,{isCyrillic:o=!0}=e,l,r;return t.$$set=a=>{"short"in a&&i(2,n=a.short),"isCyrillic"in a&&i(3,o=a.isCyrillic)},t.$$.update=()=>{t.$$.dirty&12&&(i(0,l=n?21:95),i(1,r=n?tv:"vk-video-logo-icon"),!o&&!n&&(i(0,l=91),i(1,r="vk-video-logo-icon--en")))},[l,r,n,o]}var xa=class extends H{constructor(e){super(),U(this,e,iv,ev,F,{short:2,isCyrillic:3},$b)}},j1=xa;function ov(t){let e,i;return e=new K1({}),{c(){V(e.$$.fragment)},m(n,o){A(e,n,o),i=!0},p:Ce,i(n){i||(d(e.$$.fragment,n),i=!0)},o(n){_(e.$$.fragment,n),i=!1},d(n){L(e,n)}}}function lv(t){let e,i;return e=new j1({props:{short:t[4],isCyrillic:t[5]}}),{c(){V(e.$$.fragment)},m(n,o){A(e,n,o),i=!0},p(n,o){let l={};o&16&&(l.short=n[4]),o&32&&(l.isCyrillic=n[5]),e.$set(l)},i(n){i||(d(e.$$.fragment,n),i=!0)},o(n){_(e.$$.fragment,n),i=!1},d(n){L(e,n)}}}function rv(t){let e,i,n,o,l=[lv,ov],r=[];function a(s,u){return s[2]?0:1}return e=a(t,-1),i=r[e]=l[e](t),{c(){i.c(),n=ct()},m(s,u){r[e].m(s,u),S(s,n,u),o=!0},p(s,u){let f=e;e=a(s,u),e===f?r[e].p(s,u):(me(),_(r[f],1,1,()=>{r[f]=null}),pe(),i=r[e],i?i.p(s,u):(i=r[e]=l[e](s),i.c()),d(i,1),i.m(n.parentNode,n))},i(s){o||(d(i),o=!0)},o(s){_(i),o=!1},d(s){s&&k(n),r[e].d(s)}}}function sv(t){let e,i,n;function o(r){t[14](r)}let l={className:"btn-full-opacity",disabled:!t[1],click:t[9],testId:t[2]?"btn-vk-video-logo":"btn-vk-logo",ariaLabel:t[3],$$slots:{default:[rv]},$$scope:{ctx:t}};return t[0]!==void 0&&(l.ref=t[0]),e=new ht({props:l}),be.push(()=>Oe(e,"ref",o)),{c(){V(e.$$.fragment)},m(r,a){A(e,r,a),n=!0},p(r,[a]){let s={};a&2&&(s.disabled=!r[1]),a&4&&(s.testId=r[2]?"btn-vk-video-logo":"btn-vk-logo"),a&8&&(s.ariaLabel=r[3]),a&131124&&(s.$$scope={dirty:a,ctx:r}),!i&&a&1&&(i=!0,s.ref=r[0],Ne(()=>i=!1)),e.$set(s)},i(r){n||(d(e.$$.fragment,r),n=!0)},o(r){_(e.$$.fragment,r),n=!1},d(r){L(e,r)}}}function av(t,e,i){let n,o,l,{ref:r=void 0}=e,{logoClickable:a=!1}=e,{targetUrl:s=""}=e,{click:u}=e,f=Bt(),p=it(),h=p.ui.currentGridType$;D(t,h,P=>i(12,n=P));let w=p.ui.isMobile;D(t,w,P=>i(13,o=P));let g=p.isCyrillicRelatedInterface$;D(t,g,P=>i(5,l=P));let C,b,E,v=()=>{u(),p.callbacks?.onLogoClicked?p.callbacks?.onLogoClicked():s&&window.open(s,"_blank")};function y(P){r=P,i(0,r)}return t.$$set=P=>{"ref"in P&&i(0,r=P.ref),"logoClickable"in P&&i(1,a=P.logoClickable),"targetUrl"in P&&i(10,s=P.targetUrl),"click"in P&&i(11,u=P.click)},t.$$.update=()=>{t.$$.dirty&12292&&i(4,E=(o||Er(n,"l"))&&b)},i(3,C=f.logoType==="vk_video"?N("tooltip_vk_video_logo"):N("tooltip_vk_logo")),i(2,b=f.logoType==="vk_video"||f.logoType==="vk_video_mobile"),[r,a,b,C,E,l,h,w,g,v,s,u,n,o,y]}var $a=class extends H{constructor(e){super(),U(this,e,av,sv,F,{ref:0,logoClickable:1,targetUrl:10,click:11})}},Mr=$a;import{ChromecastState as pv}from"@vkontakte/videoplayer-core";import{ChromecastState as G1}from"@vkontakte/videoplayer-core";function uv(t){Te(t,"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(t){let e,i,n,o,l,r,a,s;return{c(){e=R("svg"),i=R("g"),n=R("path"),o=R("path"),l=R("path"),r=R("path"),a=R("path"),s=R("path"),c(n,"class","wave wave1 svelte-8z1bf5"),c(n,"d","M1 18v3h3c0-1.66-1.34-3-3-3z"),c(n,"fill","#fff"),c(o,"class","wave wave2 svelte-8z1bf5"),c(o,"d","M1 14v2c2.76 0 5 2.24 5 5h2c0-3.87-3.13-7-7-7z"),c(o,"fill","#fff"),c(l,"class","wave wave3 svelte-8z1bf5"),c(l,"d","M1 10v2a9 9 0 0 1 9 9h2c0-6.08-4.93-11-11-11z"),c(l,"fill","#fff"),c(r,"d","M21 3H3c-1.1 0-2 .9-2 2v3h2V5h18v14h-7v2h7c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2z"),c(r,"fill","#fff"),c(a,"d","M0 0h24v24H0z"),c(s,"d","M5.667 7.44H18.5v9.167h-5.161a11.947 11.947 0 0 0-7.673-7.672V7.44Z"),c(s,"fill","#fff"),q(s,"hidden",!t[1]),c(i,"fill","none"),c(i,"fill-rule","evenodd"),c(e,"width","24"),c(e,"height","24"),c(e,"xmlns","http://www.w3.org/2000/svg"),c(e,"aria-hidden","true"),c(e,"data-testid","chromecast-icon"),c(e,"class","svelte-8z1bf5"),q(e,"connecting",t[2])},m(u,f){S(u,e,f),m(e,i),m(i,n),m(i,o),m(i,l),m(i,r),m(i,a),m(i,s)},p(u,f){f&2&&q(s,"hidden",!u[1]),f&4&&q(e,"connecting",u[2])},d(u){u&&k(e)}}}function fv(t){let e,i,n,o,l,r,a,s,u,f,p,h,w,g,C,b,E,v,y,P,W;return{c(){e=R("svg"),i=R("g"),n=R("mask"),o=R("path"),r=R("path"),a=R("path"),u=R("path"),f=R("defs"),p=R("clipPath"),h=R("path"),g=R("filter"),C=R("feFlood"),b=R("feColorMatrix"),E=R("feOffset"),v=R("feGaussianBlur"),y=R("feColorMatrix"),P=R("feBlend"),W=R("feBlend"),c(o,"fill",l=t[1]?"#2688EB":"#fff"),c(o,"d","M1.1 3.1h22v18h-22z"),c(r,"fill-rule","evenodd"),c(r,"clip-rule","evenodd"),c(r,"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"),c(n,"id","c"),c(n,"maskUnits","userSpaceOnUse"),c(n,"x","1.1"),c(n,"y","3.1"),c(n,"width","22"),c(n,"height","18"),c(n,"fill","#000"),c(a,"fill-rule","evenodd"),c(a,"clip-rule","evenodd"),c(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"),c(a,"fill",s=t[1]?"#2688EB":"#fff"),c(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"),c(u,"fill","#000"),c(u,"fill-opacity",".12"),c(u,"mask","url(#c)"),c(i,"filter","url(#b)"),c(i,"clip-path","url(#a)"),c(h,"fill",w=t[1]?"#2688EB":"#fff"),c(h,"d","M0 0h24v24H0z"),c(p,"id","a"),c(C,"flood-opacity","0"),c(C,"result","BackgroundImageFix"),c(b,"in","SourceAlpha"),c(b,"values","0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0"),c(b,"result","hardAlpha"),c(v,"stdDeviation","2.5"),c(y,"values","0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.16 0"),c(P,"in2","BackgroundImageFix"),c(P,"result","effect1_dropShadow_4085_178456"),c(W,"in","SourceGraphic"),c(W,"in2","effect1_dropShadow_4085_178456"),c(W,"result","shape"),c(g,"id","b"),c(g,"x","-3.4"),c(g,"y","-1.4"),c(g,"width","30.8"),c(g,"height","26.802"),c(g,"filterUnits","userSpaceOnUse"),c(g,"color-interpolation-filters","sRGB"),c(e,"width","24"),c(e,"height","24"),c(e,"fill","none"),c(e,"xmlns","http://www.w3.org/2000/svg"),c(e,"aria-hidden","true"),c(e,"data-testid","chromecast-mobile-icon")},m(B,O){S(B,e,O),m(e,i),m(i,n),m(n,o),m(n,r),m(i,a),m(i,u),m(e,f),m(f,p),m(p,h),m(f,g),m(g,C),m(g,b),m(g,E),m(g,v),m(g,y),m(g,P),m(g,W)},p(B,O){O&2&&l!==(l=B[1]?"#2688EB":"#fff")&&c(o,"fill",l),O&2&&s!==(s=B[1]?"#2688EB":"#fff")&&c(a,"fill",s),O&2&&w!==(w=B[1]?"#2688EB":"#fff")&&c(h,"fill",w)},d(B){B&&k(e)}}}function dv(t){let e;function i(l,r){return l[0]?fv:cv}let n=i(t,-1),o=n(t);return{c(){o.c(),e=ct()},m(l,r){o.m(l,r),S(l,e,r)},p(l,[r]){n===(n=i(l,r))&&o?o.p(l,r):(o.d(1),o=n(l),o&&(o.c(),o.m(e.parentNode,e)))},i:Ce,o:Ce,d(l){l&&k(e),o.d(l)}}}function mv(t,e,i){let{isMobile:n=!1}=e,{state:o}=e,l,r;return t.$$set=a=>{"isMobile"in a&&i(0,n=a.isMobile),"state"in a&&i(3,o=a.state)},t.$$.update=()=>{t.$$.dirty&8&&(i(2,r=o===G1.CONNECTING),i(1,l=o===G1.CONNECTED))},[n,l,r,o]}var eu=class extends H{constructor(e){super(),U(this,e,mv,dv,F,{isMobile:0,state:3},uv)}},Q1=eu;import{noop as _v}from"@vkontakte/videoplayer-shared";function hv(t){let e,i;return e=new Q1({props:{isMobile:t[1],state:t[2]}}),{c(){V(e.$$.fragment)},m(n,o){A(e,n,o),i=!0},p(n,o){let l={};o&2&&(l.isMobile=n[1]),o&4&&(l.state=n[2]),e.$set(l)},i(n){i||(d(e.$$.fragment,n),i=!0)},o(n){_(e.$$.fragment,n),i=!1},d(n){L(e,n)}}}function gv(t){let e,i,n;function o(r){t[5](r)}let l={ariaLabel:t[4],click:t[3],testId:"btn-chromecast",$$slots:{default:[hv]},$$scope:{ctx:t}};return t[0]!==void 0&&(l.ref=t[0]),e=new ht({props:l}),be.push(()=>Oe(e,"ref",o)),{c(){V(e.$$.fragment)},m(r,a){A(e,r,a),n=!0},p(r,[a]){let s={};a&16&&(s.ariaLabel=r[4]),a&8&&(s.click=r[3]),a&70&&(s.$$scope={dirty:a,ctx:r}),!i&&a&1&&(i=!0,s.ref=r[0],Ne(()=>i=!1)),e.$set(s)},i(r){n||(d(e.$$.fragment,r),n=!0)},o(r){_(e.$$.fragment,r),n=!1},d(r){L(e,r)}}}function bv(t,e,i){let{ref:n=void 0}=e,{isMobile:o=!1}=e,{state:l}=e,{click:r=_v}=e,a;function s(u){n=u,i(0,n)}return t.$$set=u=>{"ref"in u&&i(0,n=u.ref),"isMobile"in u&&i(1,o=u.isMobile),"state"in u&&i(2,l=u.state),"click"in u&&i(3,r=u.click)},t.$$.update=()=>{t.$$.dirty&4&&i(4,a=l===pv.CONNECTED?N("tooltip_chromecast_on"):N("tooltip_chromecast_off"))},[n,o,l,r,a,s]}var tu=class extends H{constructor(e){super(),U(this,e,bv,gv,F,{ref:0,isMobile:1,state:2,click:3})}},Vr=tu;import{PlaybackState as iu}from"@vkontakte/videoplayer-core";function vv(t){let e,i;return e=new cr({props:{isActive:t[1]}}),{c(){V(e.$$.fragment)},m(n,o){A(e,n,o),i=!0},p(n,o){let l={};o&2&&(l.isActive=n[1]),e.$set(l)},i(n){i||(d(e.$$.fragment,n),i=!0)},o(n){_(e.$$.fragment,n),i=!1},d(n){L(e,n)}}}function yv(t){let e,i;return e=new ht({props:{className:t[0]?"":"btn--live btn-full-opacity",testId:t[1]?"btn-live":"btn-live-offset",disabled:t[1]&&t[3]===iu.PLAYING,ariaLabel:t[2],click:t[4],$$slots:{default:[vv]},$$scope:{ctx:t}}}),{c(){V(e.$$.fragment)},m(n,o){A(e,n,o),i=!0},p(n,[o]){let l={};o&1&&(l.className=n[0]?"":"btn--live btn-full-opacity"),o&2&&(l.testId=n[1]?"btn-live":"btn-live-offset"),o&10&&(l.disabled=n[1]&&n[3]===iu.PLAYING),o&4&&(l.ariaLabel=n[2]),o&16&&(l.click=n[4]),o&514&&(l.$$scope={dirty:o,ctx:n}),e.$set(l)},i(n){i||(d(e.$$.fragment,n),i=!0)},o(n){_(e.$$.fragment,n),i=!1},d(n){L(e,n)}}}function wv(t,e,i){let n,{isMobile:o=!1}=e,{isActiveLive:l=!1}=e,{ariaLabel:r=""}=e,a=it(),s=a.state.playbackState$;D(t,s,h=>i(3,n=h));let u=a.actions.internal.switchToActiveLive,f=a.actions.internal.togglePlay,p;return t.$$set=h=>{"isMobile"in h&&i(0,o=h.isMobile),"isActiveLive"in h&&i(1,l=h.isActiveLive),"ariaLabel"in h&&i(2,r=h.ariaLabel)},t.$$.update=()=>{t.$$.dirty&10&&i(4,p=()=>{if(!l){u();return}n===iu.PAUSED&&f()})},[o,l,r,n,p,s]}var nu=class extends H{constructor(e){super(),U(this,e,wv,yv,F,{isMobile:0,isActiveLive:1,ariaLabel:2})}},Rr=nu;function kv(t){Te(t,"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 Sv(t){let e,i,n,o,l=t[9].default,r=Ie(l,t,t[8],null);return{c(){e=T("div"),i=T("div"),r&&r.c(),c(i,"class","tooltip svelte-5ygsa2"),q(i,"active",t[0]),q(i,"pointer",t[1]),c(e,"class","tooltip-wrapper svelte-5ygsa2"),c(e,"style",n=`transform: translate(${t[5]}px, ${t[2]}px);`)},m(a,s){S(a,e,s),m(e,i),r&&r.m(i,null),t[10](i),t[11](e),o=!0},p(a,[s]){r&&r.p&&(!o||s&256)&&Ae(r,l,a,a[8],o?Ee(l,a[8],s,null):Le(a[8]),null),(!o||s&1)&&q(i,"active",a[0]),(!o||s&2)&&q(i,"pointer",a[1]),(!o||s&36&&n!==(n=`transform: translate(${a[5]}px, ${a[2]}px);`))&&c(e,"style",n)},i(a){o||(d(r,a),o=!0)},o(a){_(r,a),o=!1},d(a){a&&k(e),r&&r.d(a),t[10](null),t[11](null)}}}function Cv(t,e,i){let n,{$$slots:o={},$$scope:l}=e,{active:r=!1}=e,{pointer:a=!1}=e,{translateXPx:s=0}=e,{translateYPx:u=0}=e,{containerWidth:f}=e,p,h;function w(b){if(!h)return 0;let{width:E}=h.getBoundingClientRect(),v=E/2;return b<v?v:b>f-v?f-v:b}function g(b){be[b?"unshift":"push"](()=>{h=b,i(4,h)})}function C(b){be[b?"unshift":"push"](()=>{p=b,i(3,p)})}return t.$$set=b=>{"active"in b&&i(0,r=b.active),"pointer"in b&&i(1,a=b.pointer),"translateXPx"in b&&i(6,s=b.translateXPx),"translateYPx"in b&&i(2,u=b.translateYPx),"containerWidth"in b&&i(7,f=b.containerWidth),"$$scope"in b&&i(8,l=b.$$scope)},t.$$.update=()=>{t.$$.dirty&64&&i(5,n=w(s))},[r,a,u,p,h,n,s,f,l,o,g,C]}var ou=class extends H{constructor(e){super(),U(this,e,Cv,Sv,F,{active:0,pointer:1,translateXPx:6,translateYPx:2,containerWidth:7},kv)}},Y1=ou;var Br=(t,e,i)=>i.filter(n=>n.time<t*e).pop();function Tv(t){Te(t,"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 Z1(t){let e;function i(l,r){return l[2]&&l[10].completed===!1?Iv:Pv}let n=i(t,-1),o=n(t);return{c(){o.c(),e=ct()},m(l,r){o.m(l,r),S(l,e,r)},p(l,r){n===(n=i(l,r))&&o?o.p(l,r):(o.d(1),o=n(l),o&&(o.c(),o.m(e.parentNode,e)))},d(l){l&&k(e),o.d(l)}}}function Pv(t){let e=(t[10].text||"")+"",i;return{c(){i=Re(e)},m(n,o){S(n,i,o)},p(n,o){o&1024&&e!==(e=(n[10].text||"")+"")&&Ge(i,e)},d(n){n&&k(i)}}}function Iv(t){let e=N("tooltip_episode_unfinished")+"",i;return{c(){i=Re(e)},m(n,o){S(n,i,o)},p:Ce,d(n){n&&k(i)}}}function X1(t){let e,i;return{c(){e=T("div"),i=Re(t[0]),c(e,"class","time svelte-l51fc1")},m(n,o){S(n,e,o),m(e,i)},p(n,o){o&1&&Ge(i,n[0])},d(n){n&&k(e)}}}function Ev(t){let e,i,n,o,l,r,a=t[10]&&Z1(t),s=!t[2]&&X1(t);return{c(){e=T("div"),i=T("div"),o=M(),l=T("div"),a&&a.c(),r=M(),s&&s.c(),c(i,"class","preview svelte-l51fc1"),c(i,"style",n=`width: ${t[3]}px; height: ${t[4]}px; background-image: url(${t[5]}); background-size: ${t[6]}px ${t[7]}px; background-position: ${t[8]}px ${t[9]}px; transform: translateY(${t[11]%180?-35:0}px) rotate(${t[11]}deg);`),c(l,"class","episode svelte-l51fc1"),c(e,"class","timeline-preview svelte-l51fc1"),q(e,"mobile",t[1])},m(u,f){S(u,e,f),m(e,i),m(e,o),m(e,l),a&&a.m(l,null),m(e,r),s&&s.m(e,null)},p(u,[f]){f&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);`)&&c(i,"style",n),u[10]?a?a.p(u,f):(a=Z1(u),a.c(),a.m(l,null)):a&&(a.d(1),a=null),u[2]?s&&(s.d(1),s=null):s?s.p(u,f):(s=X1(u),s.c(),s.m(e,null)),f&2&&q(e,"mobile",u[1])},i:Ce,o:Ce,d(u){u&&k(e),a&&a.d(),s&&s.d()}}}var gl=150;function Av(t,e,i){let n,{time:o=""}=e,{isMobile:l=!1}=e,{videoEpisodes:r=[]}=e,{previewThumbsData:a}=e,{progress:s=0}=e,{duration:u=0}=e,{isInteractive:f=!1}=e,h=it().ui.rotateAlpha;D(t,h,O=>i(11,n=O));let w,g,C,b,E,v,y,P;function W(){let O=a.frameWidth,ne=a.frameHeight;return O>gl?(ne=ne/O*gl,O=gl):ne>gl&&(O=O/ne*gl,ne=gl),{width:O,height:ne}}function B(O){let ne;a.isUV?ne=Math.floor(u*O/a.frequency):ne=Math.min(a.countTotal,Math.max(0,Math.floor(a.countTotal*O)));let ge=Math.floor(ne/a.countPerImage),G=Math.floor(ne%a.countPerImage/a.countPerRow),X=ne%a.countPerRow,ae=Math.floor(a.countPerImage/a.countPerRow);!a.isUV&&ge===Math.floor(a.countTotal/a.countPerImage)&&(ae=Math.floor(a.countTotal%a.countPerImage/a.countPerRow),a.countTotal%a.countPerImage%a.countPerRow>0&&ae++);let j=a.countPerRow;!a.isUV&&ge===Math.floor(a.countTotal/a.countPerImage)&&a.countTotal%a.countPerImage>0&&(j=Math.min(a.countPerRow,a.countTotal%a.countPerImage));let z=w*j,Q=g*ae,$=-X*w,K=-G*g;return{imgSrc:a.links[ge],imgWidth:z,imgHeight:Q,imgOffsetX:$,imgOffsetY:K}}return t.$$set=O=>{"time"in O&&i(0,o=O.time),"isMobile"in O&&i(1,l=O.isMobile),"videoEpisodes"in O&&i(13,r=O.videoEpisodes),"previewThumbsData"in O&&i(14,a=O.previewThumbsData),"progress"in O&&i(15,s=O.progress),"duration"in O&&i(16,u=O.duration),"isInteractive"in O&&i(2,f=O.isInteractive)},t.$$.update=()=>{t.$$.dirty&32768&&i(5,{imgSrc:C,imgWidth:b,imgHeight:E,imgOffsetX:v,imgOffsetY:y}=B(s),C,(i(6,b),i(15,s)),(i(7,E),i(15,s)),(i(8,v),i(15,s)),(i(9,y),i(15,s))),t.$$.dirty&106496&&i(10,P=Br(s,u,r))},i(3,{width:w,height:g}=W(),w,i(4,g)),[o,l,f,w,g,C,b,E,v,y,P,n,h,r,a,s,u]}var lu=class extends H{constructor(e){super(),U(this,e,Av,Ev,F,{time:0,isMobile:1,videoEpisodes:13,previewThumbsData:14,progress:15,duration:16,isInteractive:2},Tv)}},J1=lu;function Lv(t){Te(t,"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 Mv(t){let e,i;return{c(){e=T("span"),i=Re(t[8]),c(e,"class","time svelte-5lzly8")},m(n,o){S(n,e,o),m(e,i)},p(n,o){o[0]&256&&Ge(i,n[8])},i:Ce,o:Ce,d(n){n&&k(e)}}}function Vv(t){let e,i;return e=new J1({props:{time:t[8],isMobile:t[11],videoEpisodes:t[4],previewThumbsData:t[22],progress:t[9],duration:t[2],isInteractive:t[24]}}),{c(){V(e.$$.fragment)},m(n,o){A(e,n,o),i=!0},p(n,o){let l={};o[0]&256&&(l.time=n[8]),o[0]&2048&&(l.isMobile=n[11]),o[0]&16&&(l.videoEpisodes=n[4]),o[0]&512&&(l.progress=n[9]),o[0]&4&&(l.duration=n[2]),e.$set(l)},i(n){i||(d(e.$$.fragment,n),i=!0)},o(n){_(e.$$.fragment,n),i=!1},d(n){L(e,n)}}}function Rv(t){let e,i,n,o,l=[Vv,Mv],r=[];function a(s,u){return s[15].features.timelinePreview&&s[22]&&!s[1]?0:1}return e=a(t,[-1,-1]),i=r[e]=l[e](t),{c(){i.c(),n=ct()},m(s,u){r[e].m(s,u),S(s,n,u),o=!0},p(s,u){let f=e;e=a(s,u),e===f?r[e].p(s,u):(me(),_(r[f],1,1,()=>{r[f]=null}),pe(),i=r[e],i?i.p(s,u):(i=r[e]=l[e](s),i.c()),d(i,1),i.m(n.parentNode,n))},i(s){o||(d(i),o=!0)},o(s){_(i),o=!1},d(s){s&&k(n),r[e].d(s)}}}function Bv(t){let e,i,n,o,l,r=[t[10]],a={$$slots:{default:[Rv]},$$scope:{ctx:t}};for(let f=0;f<r.length;f+=1)a=ue(a,r[f]);e=new Y1({props:a});function s(f){t[43](f)}let u={isActiveLive:t[12],isMobile:t[11],ariaLabel:N("aria_timeline"),ariaValueMin:0,ariaValueMax:t[2],ariaValueNow:Math.round(t[7]*100),ariaValueText:N("aria_timeline_value",{position:t[6],duration:t[5]}),loadedProgress:t[13],filledProgress:t[7],handleProgress:t[7],videoEpisodes:t[4],onPointerDown:t[29],onHandleMove:t[30],onPointerMove:t[33],onPointerUp:t[31],onPointerEnter:t[32],onPointerLeave:t[34],onDisabledClick:t[27],isInteractive:t[24],disabled:t[14].has("TIMELINE"),hideHandel:t[3]};return t[0]!==void 0&&(u.ref=t[0]),n=new pl({props:u}),be.push(()=>Oe(n,"ref",s)),{c(){V(e.$$.fragment),i=M(),V(n.$$.fragment)},m(f,p){A(e,f,p),S(f,i,p),A(n,f,p),l=!0},p(f,p){let h=p[0]&1024?Be(r,[zc(f[10])]):{};p[0]&2838|p[1]&524288&&(h.$$scope={dirty:p,ctx:f}),e.$set(h);let w={};p[0]&4096&&(w.isActiveLive=f[12]),p[0]&2048&&(w.isMobile=f[11]),p[0]&4&&(w.ariaValueMax=f[2]),p[0]&128&&(w.ariaValueNow=Math.round(f[7]*100)),p[0]&96&&(w.ariaValueText=N("aria_timeline_value",{position:f[6],duration:f[5]})),p[0]&8192&&(w.loadedProgress=f[13]),p[0]&128&&(w.filledProgress=f[7]),p[0]&128&&(w.handleProgress=f[7]),p[0]&16&&(w.videoEpisodes=f[4]),p[0]&16384&&(w.disabled=f[14].has("TIMELINE")),p[0]&8&&(w.hideHandel=f[3]),!o&&p[0]&1&&(o=!0,w.ref=f[0],Ne(()=>o=!1)),n.$set(w)},i(f){l||(d(e.$$.fragment,f),d(n.$$.fragment,f),l=!0)},o(f){_(e.$$.fragment,f),_(n.$$.fragment,f),l=!1},d(f){f&&k(i),L(e,f),L(n,f)}}}function qv(t,e,i){let n,o,l,r,a,s,u,f,p,h,w,{showTimeline:g=!1}=e,{ref:C=void 0}=e,b=it(),E=Bt(),v=b.state.bufferedProgress$;D(t,v,x=>i(13,h=x));let y=b.state.positionWithScrubbing$;D(t,y,x=>i(41,s=x));let P=b.state.duration$;D(t,P,x=>i(2,l=x));let W=b.state.isLive$;D(t,W,x=>i(1,o=x));let B=b.state.isActiveLive$;D(t,B,x=>i(12,p=x));let O=b.ui.isMobile;D(t,O,x=>i(11,f=x));let ne=E.features.episodes?b.actions.internal.getVideoEpisodes():void 0,ge=b.actions.internal.getPreviewThumbsData(),G=b.state.interactiveEpisodes$;D(t,G,x=>i(42,u=x));let X=b.state.isInteractive,ae=b.state.isInteractiveTime$;D(t,ae,x=>i(3,r=x));let j=b.state.isInteractiveExpectation$;D(t,j,x=>i(40,a=x));let z=b.actions.internal.correctSeekTimeToInteractive,Q=b.callbacks?.onDisabledTimelineClick,$=b.ui.controls.disabledControls$;D(t,$,x=>i(14,w=x));let K,Y,ie,re,Ve=!1,Xe="",Se=0,Me=0,Ke=0,$e;function ce(x){return!z||!X?x:z(x*l)/l}function he(x){b.actions.internal.startScrubbing(ce(x))}function at(x){r||b.actions.internal.progressScrubbing(ce(x))}function ke(x){b.actions.internal.completeScrubbing(ce(x)),i(36,Ve=!1)}function Fe(x,De,ze){je(x,De,ze),i(36,Ve=!0)}function ft(x,De,ze){je(x,De,ze),i(36,Ve=!0)}function Qe(){i(36,Ve=!1)}function je(x,De,ze){i(9,Ke=ce(x)),i(37,Se=De),ze&&i(38,Me=ze),i(8,Xe=Ze(x))}function Ze(x){let De=Tn((o?1-x:x)*l);return o?`-${De}`:De}function xe(x){C=x,i(0,C)}return t.$$set=x=>{"showTimeline"in x&&i(35,g=x.showTimeline),"ref"in x&&i(0,C=x.ref)},t.$$.update=()=>{t.$$.dirty[1]&2048&&i(4,K=X?u:ne),t.$$.dirty[0]&4&&i(5,Y=Tn(l)),t.$$.dirty[1]&1024&&i(6,ie=Tn(s)),t.$$.dirty[0]&4|t.$$.dirty[1]&1024&&i(7,re=s/l),t.$$.dirty[0]&8|t.$$.dirty[1]&512&&i(39,$e=a||r),t.$$.dirty[0]&2|t.$$.dirty[1]&496&&i(10,n={containerWidth:Me,translateXPx:Se,translateYPx:X&&ge?-36:-16,active:Ve&&g&&!$e,pointer:!E.features.timelinePreview||!ge||o})},[C,o,l,r,K,Y,ie,re,Xe,Ke,n,f,p,h,w,E,v,y,P,W,B,O,ge,G,X,ae,j,Q,$,he,at,ke,Fe,ft,Qe,g,Ve,Se,Me,$e,a,s,u,xe]}var ru=class extends H{constructor(e){super(),U(this,e,qv,Bv,F,{showTimeline:35,ref:0},Lv,[-1,-1])}},x1=ru;function Dv(t){let e,i;return e=new pl({props:{ariaValueMin:0,ariaValueMax:t[0],ariaValueNow:Math.round(t[3]*100),ariaValueText:N("aria_timeline_value",{position:t[2],duration:t[1]}),filledProgress:t[3],isAds:!0,hideHandel:!0,squareBorders:t[4]}}),{c(){V(e.$$.fragment)},m(n,o){A(e,n,o),i=!0},p(n,[o]){let l={};o&1&&(l.ariaValueMax=n[0]),o&8&&(l.ariaValueNow=Math.round(n[3]*100)),o&6&&(l.ariaValueText=N("aria_timeline_value",{position:n[2],duration:n[1]})),o&8&&(l.filledProgress=n[3]),o&16&&(l.squareBorders=n[4]),e.$set(l)},i(n){i||(d(e.$$.fragment,n),i=!0)},o(n){_(e.$$.fragment,n),i=!1},d(n){L(e,n)}}}function Nv(t,e,i){let n,{position:o=0}=e,{duration:l=0}=e,a=it().ui.isMobile;D(t,a,p=>i(4,n=p));let s,u,f;return t.$$set=p=>{"position"in p&&i(6,o=p.position),"duration"in p&&i(0,l=p.duration)},t.$$.update=()=>{t.$$.dirty&1&&i(1,s=Tn(l)),t.$$.dirty&64&&i(2,u=Tn(o)),t.$$.dirty&65&&i(3,f=o/l)},[l,s,u,f,n,a,o]}var su=class extends H{constructor(e){super(),U(this,e,Nv,Dv,F,{position:6,duration:0})}},qr=su;function Ov(t){Te(t,"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 Fv(t){let e;return{c(){e=T("div"),c(e,"class","timeline-stub svelte-1gqonyf"),q(e,"mobile",t[3])},m(i,n){S(i,e,n)},p(i,n){n&8&&q(e,"mobile",i[3])},i:Ce,o:Ce,d(i){i&&k(e)}}}function zv(t){let e,i,n,o,l=[Uv,Hv],r=[];function a(s,u){return s[1]?0:1}return i=a(t,-1),n=r[i]=l[i](t),{c(){e=T("div"),n.c(),c(e,"class","timeline svelte-1gqonyf"),q(e,"mobile",t[3])},m(s,u){S(s,e,u),r[i].m(e,null),o=!0},p(s,u){let f=i;i=a(s,u),i===f?r[i].p(s,u):(me(),_(r[f],1,1,()=>{r[f]=null}),pe(),n=r[i],n?n.p(s,u):(n=r[i]=l[i](s),n.c()),d(n,1),n.m(e,null)),(!o||u&8)&&q(e,"mobile",s[3])},i(s){o||(d(n),o=!0)},o(s){_(n),o=!1},d(s){s&&k(e),r[i].d()}}}function Hv(t){let e,i,n;function o(r){t[14](r)}let l={showTimeline:t[2]};return t[0]!==void 0&&(l.ref=t[0]),e=new x1({props:l}),be.push(()=>Oe(e,"ref",o)),{c(){V(e.$$.fragment)},m(r,a){A(e,r,a),n=!0},p(r,a){let s={};a&4&&(s.showTimeline=r[2]),!i&&a&1&&(i=!0,s.ref=r[0],Ne(()=>i=!1)),e.$set(s)},i(r){n||(d(e.$$.fragment,r),n=!0)},o(r){_(e.$$.fragment,r),n=!1},d(r){L(e,r)}}}function Uv(t){let e,i;return e=new qr({props:{position:t[4],duration:t[5]}}),{c(){V(e.$$.fragment)},m(n,o){A(e,n,o),i=!0},p(n,o){let l={};o&16&&(l.position=n[4]),o&32&&(l.duration=n[5]),e.$set(l)},i(n){i||(d(e.$$.fragment,n),i=!0)},o(n){_(e.$$.fragment,n),i=!1},d(n){L(e,n)}}}function Kv(t){let e,i,n,o,l=[zv,Fv],r=[];function a(s,u){return s[2]?0:1}return e=a(t,-1),i=r[e]=l[e](t),{c(){i.c(),n=ct()},m(s,u){r[e].m(s,u),S(s,n,u),o=!0},p(s,[u]){let f=e;e=a(s,u),e===f?r[e].p(s,u):(me(),_(r[f],1,1,()=>{r[f]=null}),pe(),i=r[e],i?i.p(s,u):(i=r[e]=l[e](s),i.c()),d(i,1),i.m(n.parentNode,n))},i(s){o||(d(i),o=!0)},o(s){_(i),o=!1},d(s){s&&k(n),r[e].d(s)}}}function Wv(t,e,i){let n,o,l,r,{isAds:a=!1}=e,{canRewindLive:s}=e,{isRewindableLive:u}=e,{isHidden:f=!1}=e,{ref:p=void 0}=e,h=it(),w=h.state.isLive$;D(t,w,y=>i(13,n=y));let g=h.ads.duration;D(t,g,y=>i(5,r=y));let C=h.ads.position;D(t,C,y=>i(4,l=y));let b=h.ui.isMobile;D(t,b,y=>i(3,o=y));let E;function v(y){p=y,i(0,p)}return t.$$set=y=>{"isAds"in y&&i(1,a=y.isAds),"canRewindLive"in y&&i(10,s=y.canRewindLive),"isRewindableLive"in y&&i(11,u=y.isRewindableLive),"isHidden"in y&&i(12,f=y.isHidden),"ref"in y&&i(0,p=y.ref)},t.$$.update=()=>{t.$$.dirty&15362&&i(2,E=!f&&(!n||n&&s&&u||a))},[p,a,E,o,l,r,w,g,C,b,s,u,f,n,v]}var au=class extends H{constructor(e){super(),U(this,e,Wv,Kv,F,{isAds:1,canRewindLive:10,isRewindableLive:11,isHidden:12,ref:0},Ov)}},Dr=au;import{noop as Zv}from"@vkontakte/videoplayer-shared";function jv(t){let e,i,n,o,l,r=t[2].default,a=Ie(r,t,t[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"},t[0]],u={};for(let f=0;f<s.length;f+=1)u=ue(u,s[f]);return{c(){e=R("svg"),a&&a.c(),i=R("path"),n=R("path"),o=R("path"),c(i,"fill","#fff"),c(i,"fill-rule","evenodd"),c(i,"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"),c(i,"clip-rule","evenodd"),c(n,"fill","#fff"),c(n,"fill-rule","evenodd"),c(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"),c(n,"clip-rule","evenodd"),c(o,"fill","#fff"),c(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"),ye(e,u)},m(f,p){S(f,e,p),a&&a.m(e,null),m(e,i),m(e,n),m(e,o),l=!0},p(f,[p]){a&&a.p&&(!l||p&2)&&Ae(a,r,f,f[1],l?Ee(r,f[1],p,null):Le(f[1]),null),ye(e,u=Be(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"},p&1&&f[0]]))},i(f){l||(d(a,f),l=!0)},o(f){_(a,f),l=!1},d(f){f&&k(e),a&&a.d(f)}}}function Gv(t,e,i){let{$$slots:n={},$$scope:o}=e;return t.$$set=l=>{i(0,e=ue(ue({},e),ve(l))),"$$scope"in l&&i(1,o=l.$$scope)},e=ve(e),[e,o,n]}var uu=class extends H{constructor(e){super(),U(this,e,Gv,jv,F,{})}},$1=uu;function Qv(t){let e,i,n,o=t[2].default,l=Ie(o,t,t[1],null),r=[{xmlns:"http://www.w3.org/2000/svg"},{width:"12"},{height:"13"},{fill:"none"},{"aria-hidden":"true"},{"data-testid":"chevron-light-icon"},{role:"img"},t[0]],a={};for(let s=0;s<r.length;s+=1)a=ue(a,r[s]);return{c(){e=R("svg"),l&&l.c(),i=R("path"),c(i,"fill","#fff"),c(i,"fill-rule","evenodd"),c(i,"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"),c(i,"clip-rule","evenodd"),c(i,"opacity",".7"),ye(e,a)},m(s,u){S(s,e,u),l&&l.m(e,null),m(e,i),n=!0},p(s,[u]){l&&l.p&&(!n||u&2)&&Ae(l,o,s,s[1],n?Ee(o,s[1],u,null):Le(s[1]),null),ye(e,a=Be(r,[{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(l,s),n=!0)},o(s){_(l,s),n=!1},d(s){s&&k(e),l&&l.d(s)}}}function Yv(t,e,i){let{$$slots:n={},$$scope:o}=e;return t.$$set=l=>{i(0,e=ue(ue({},e),ve(l))),"$$scope"in l&&i(1,o=l.$$scope)},e=ve(e),[e,o,n]}var cu=class extends H{constructor(e){super(),U(this,e,Yv,Qv,F,{})}},em=cu;function Xv(t){Te(t,"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 Jv(t){let e,i,n,o;e=new $1({});function l(s,u){if(s[4]==="FULL")return e4;if(s[4]==="COUNT")return $v}let r=l(t,-1),a=r&&r(t);return{c(){V(e.$$.fragment),i=M(),a&&a.c(),n=ct()},m(s,u){A(e,s,u),S(s,i,u),a&&a.m(s,u),S(s,n,u),o=!0},p(s,u){r===(r=l(s,u))&&a?a.p(s,u):(a&&a.d(1),a=r&&r(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(i),k(n)),L(e,s),a&&a.d(s)}}}function xv(t){let e,i,n,o,l,r;return l=new em({}),{c(){e=T("span"),i=Re(t[2]),n=M(),o=T("div"),V(l.$$.fragment),c(e,"class","text mobile svelte-1yhs2ga"),c(o,"class","chevron-episodes svelte-1yhs2ga")},m(a,s){S(a,e,s),m(e,i),S(a,n,s),S(a,o,s),A(l,o,null),r=!0},p(a,s){(!r||s&4)&&Ge(i,a[2])},i(a){r||(d(l.$$.fragment,a),r=!0)},o(a){_(l.$$.fragment,a),r=!1},d(a){a&&(k(e),k(n),k(o)),L(l)}}}function $v(t){let e,i=t[0].length+"",n;return{c(){e=T("span"),n=Re(i),c(e,"class","text count svelte-1yhs2ga")},m(o,l){S(o,e,l),m(e,n)},p(o,l){l&1&&i!==(i=o[0].length+"")&&Ge(n,i)},d(o){o&&k(e)}}}function e4(t){let e,i;return{c(){e=T("span"),i=Re(t[2]),c(e,"class","text svelte-1yhs2ga")},m(n,o){S(n,e,o),m(e,i)},p(n,o){o&4&&Ge(i,n[2])},d(n){n&&k(e)}}}function t4(t){let e,i,n,o,l=[xv,Jv],r=[];function a(s,u){return s[6]?0:1}return e=a(t,-1),i=r[e]=l[e](t),{c(){i.c(),n=ct()},m(s,u){r[e].m(s,u),S(s,n,u),o=!0},p(s,u){let f=e;e=a(s,u),e===f?r[e].p(s,u):(me(),_(r[f],1,1,()=>{r[f]=null}),pe(),i=r[e],i?i.p(s,u):(i=r[e]=l[e](s),i.c()),d(i,1),i.m(n.parentNode,n))},i(s){o||(d(i),o=!0)},o(s){_(i),o=!1},d(s){s&&k(n),r[e].d(s)}}}function i4(t){let e,i,n;function o(r){t[19](r)}let l={className:"w-max btn-full-opacity "+(t[6]?"px-0":""),testId:"btn-episodes",click:t[12],disabled:!t[7],ariaExpanded:t[3],ariaLabel:t[5],$$slots:{default:[t4]},$$scope:{ctx:t}};return t[1]!==void 0&&(l.ref=t[1]),e=new ht({props:l}),be.push(()=>Oe(e,"ref",o)),{c(){V(e.$$.fragment)},m(r,a){A(e,r,a),n=!0},p(r,[a]){let s={};a&64&&(s.className="w-max btn-full-opacity "+(r[6]?"px-0":"")),a&8&&(s.ariaExpanded=r[3]),a&32&&(s.ariaLabel=r[5]),a&8388693&&(s.$$scope={dirty:a,ctx:r}),!i&&a&2&&(i=!0,s.ref=r[1],Ne(()=>i=!1)),e.$set(s)},i(r){n||(d(e.$$.fragment,r),n=!0)},o(r){_(e.$$.fragment,r),n=!1},d(r){L(e,r)}}}function n4(t,e,i){let n,o,l,r,a,s,{position:u=0}=e,{duration:f=0}=e,{timeCodes:p=[]}=e,h=it(),w=h.callbacks?.onEpisodeChanged??Zv,g=!!h.callbacks?.onEpisodeClicked,C=h.ui.currentGridType$;D(t,C,G=>i(18,a=G));let b=h.ui.episodes.openedByKeyboard$;D(t,b,G=>i(17,r=G));let E=h.ui.episodes.panelOpened$;D(t,E,G=>i(3,l=G));let v=h.ui.isMobile;D(t,v,G=>i(6,s=G));let y,P=G=>{if(!!h.callbacks?.onEpisodeClicked){let ae=sl(G);b.set(ae),E.set(!0),h.callbacks?.onEpisodeClicked?.(ae)}},W,B,O,ne=async(G,X,ae)=>{await Kn(),G?.getAttribute("aria-expanded")==="false"&&X&&!ae&&(b.set(!1),G.focus())};function ge(G){y=G,i(1,y)}return t.$$set=G=>{"position"in G&&i(13,u=G.position),"duration"in G&&i(14,f=G.duration),"timeCodes"in G&&i(0,p=G.timeCodes)},t.$$.update=()=>{if(t.$$.dirty&24576&&i(16,n=u/f),t.$$.dirty&114689){let G=Br(n,f,p);G&&W?.text!==G.text&&(w(G),i(15,W=G))}t.$$.dirty&32768&&i(2,o=W?.text||""),t.$$.dirty&262144&&(Pn(a,"xl")?i(4,B="FULL"):Pn(a,"m")&&B1(a,"xl")?i(4,B="COUNT"):i(4,B="SHORT")),t.$$.dirty&4&&i(5,O=`${N("tooltip_episodes")}: ${o}`),t.$$.dirty&131082&&ne(y,r,l)},[p,y,o,l,B,O,s,g,C,b,E,v,P,u,f,W,n,r,a,ge]}var fu=class extends H{constructor(e){super(),U(this,e,n4,i4,F,{position:13,duration:14,timeCodes:0},Xv)}},Nr=fu;function o4(t){let e,i,n,o,l=t[2].default,r=Ie(l,t,t[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"},t[0]],s={};for(let u=0;u<a.length;u+=1)s=ue(s,a[u]);return{c(){e=R("svg"),r&&r.c(),i=R("path"),n=R("path"),c(i,"fill","#fff"),c(i,"fill-rule","evenodd"),c(i,"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"),c(i,"clip-rule","evenodd"),c(n,"fill","#fff"),c(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"),ye(e,s)},m(u,f){S(u,e,f),r&&r.m(e,null),m(e,i),m(e,n),o=!0},p(u,[f]){r&&r.p&&(!o||f&2)&&Ae(r,l,u,u[1],o?Ee(l,u[1],f,null):Le(u[1]),null),ye(e,s=Be(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"},f&1&&u[0]]))},i(u){o||(d(r,u),o=!0)},o(u){_(r,u),o=!1},d(u){u&&k(e),r&&r.d(u)}}}function l4(t,e,i){let{$$slots:n={},$$scope:o}=e;return t.$$set=l=>{i(0,e=ue(ue({},e),ve(l))),"$$scope"in l&&i(1,o=l.$$scope)},e=ve(e),[e,o,n]}var du=class extends H{constructor(e){super(),U(this,e,l4,o4,F,{})}},tm=du;function r4(t){let e,i;return e=new tm({}),{c(){V(e.$$.fragment)},m(n,o){A(e,n,o),i=!0},i(n){i||(d(e.$$.fragment,n),i=!0)},o(n){_(e.$$.fragment,n),i=!1},d(n){L(e,n)}}}function s4(t){let e,i,n;function o(r){t[4](r)}let l={className:t[1]?"hidden":"",testId:"btn-seek-to-interactive",ariaLabel:N("tooltip_interactive_seek"),disabled:t[2],click:t[3],$$slots:{default:[r4]},$$scope:{ctx:t}};return t[0]!==void 0&&(l.ref=t[0]),e=new ht({props:l}),be.push(()=>Oe(e,"ref",o)),{c(){V(e.$$.fragment)},m(r,a){A(e,r,a),n=!0},p(r,[a]){let s={};a&2&&(s.className=r[1]?"hidden":""),a&4&&(s.disabled=r[2]),a&8&&(s.click=r[3]),a&32&&(s.$$scope={dirty:a,ctx:r}),!i&&a&1&&(i=!0,s.ref=r[0],Ne(()=>i=!1)),e.$set(s)},i(r){n||(d(e.$$.fragment,r),n=!0)},o(r){_(e.$$.fragment,r),n=!1},d(r){L(e,r)}}}function a4(t,e,i){let{ref:n=void 0}=e,{hidden:o=!1}=e,{disabled:l=!1}=e,{click:r}=e;function a(s){n=s,i(0,n)}return t.$$set=s=>{"ref"in s&&i(0,n=s.ref),"hidden"in s&&i(1,o=s.hidden),"disabled"in s&&i(2,l=s.disabled),"click"in s&&i(3,r=s.click)},[n,o,l,r,a]}var mu=class extends H{constructor(e){super(),U(this,e,a4,s4,F,{ref:0,hidden:1,disabled:2,click:3})}},Or=mu;function u4(t){let e,i,n,o,l=t[2].default,r=Ie(l,t,t[1],null),a=[{xmlns:"http://www.w3.org/2000/svg"},{width:"24"},{height:"24"},{fill:"none"},{"aria-hidden":"true"},{role:"img"},t[0]],s={};for(let u=0;u<a.length;u+=1)s=ue(s,a[u]);return{c(){e=R("svg"),r&&r.c(),i=R("path"),n=R("path"),c(i,"fill","#fff"),c(i,"fill-rule","evenodd"),c(i,"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"),c(i,"clip-rule","evenodd"),c(n,"fill","#fff"),c(n,"fill-rule","evenodd"),c(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"),c(n,"class","_closed"),c(n,"clip-rule","evenodd"),ye(e,s)},m(u,f){S(u,e,f),r&&r.m(e,null),m(e,i),m(e,n),o=!0},p(u,[f]){r&&r.p&&(!o||f&2)&&Ae(r,l,u,u[1],o?Ee(l,u[1],f,null):Le(u[1]),null),ye(e,s=Be(a,[{xmlns:"http://www.w3.org/2000/svg"},{width:"24"},{height:"24"},{fill:"none"},{"aria-hidden":"true"},{role:"img"},f&1&&u[0]]))},i(u){o||(d(r,u),o=!0)},o(u){_(r,u),o=!1},d(u){u&&k(e),r&&r.d(u)}}}function c4(t,e,i){let{$$slots:n={},$$scope:o}=e;return t.$$set=l=>{i(0,e=ue(ue({},e),ve(l))),"$$scope"in l&&i(1,o=l.$$scope)},e=ve(e),[e,o,n]}var pu=class extends H{constructor(e){super(),U(this,e,c4,u4,F,{})}},im=pu;function f4(t){Te(t,"svelte-17ceof5",'svg[data-testid="graph-open-icon"] ._closed{visibility:hidden;opacity:0}')}function d4(t){let e,i;return e=new im({props:{"data-testid":t[0]?"graph-close-icon":"graph-open-icon"}}),{c(){V(e.$$.fragment)},m(n,o){A(e,n,o),i=!0},p(n,[o]){let l={};o&1&&(l["data-testid"]=n[0]?"graph-close-icon":"graph-open-icon"),e.$set(l)},i(n){i||(d(e.$$.fragment,n),i=!0)},o(n){_(e.$$.fragment,n),i=!1},d(n){L(e,n)}}}function m4(t,e,i){let{isOpened:n=!1}=e;return t.$$set=o=>{"isOpened"in o&&i(0,n=o.isOpened)},[n]}var _u=class extends H{constructor(e){super(),U(this,e,m4,d4,F,{isOpened:0},f4)}},nm=_u;function p4(t){let e,i;return e=new nm({props:{isOpened:t[3]}}),{c(){V(e.$$.fragment)},m(n,o){A(e,n,o),i=!0},p(n,o){let l={};o&8&&(l.isOpened=n[3]),e.$set(l)},i(n){i||(d(e.$$.fragment,n),i=!0)},o(n){_(e.$$.fragment,n),i=!1},d(n){L(e,n)}}}function _4(t){let e,i,n;function o(r){t[6](r)}let l={className:t[1]?"hidden":"",testId:"btn-graph",disabled:t[2],ariaLabel:t[5],click:t[4],$$slots:{default:[p4]},$$scope:{ctx:t}};return t[0]!==void 0&&(l.ref=t[0]),e=new ht({props:l}),be.push(()=>Oe(e,"ref",o)),{c(){V(e.$$.fragment)},m(r,a){A(e,r,a),n=!0},p(r,[a]){let s={};a&2&&(s.className=r[1]?"hidden":""),a&4&&(s.disabled=r[2]),a&32&&(s.ariaLabel=r[5]),a&16&&(s.click=r[4]),a&136&&(s.$$scope={dirty:a,ctx:r}),!i&&a&1&&(i=!0,s.ref=r[0],Ne(()=>i=!1)),e.$set(s)},i(r){n||(d(e.$$.fragment,r),n=!0)},o(r){_(e.$$.fragment,r),n=!1},d(r){L(e,r)}}}function h4(t,e,i){let{ref:n=void 0}=e,{hidden:o=!1}=e,{disabled:l=!1}=e,{graphIsOpened:r=!1}=e,{click:a}=e,s;function u(f){n=f,i(0,n)}return t.$$set=f=>{"ref"in f&&i(0,n=f.ref),"hidden"in f&&i(1,o=f.hidden),"disabled"in f&&i(2,l=f.disabled),"graphIsOpened"in f&&i(3,r=f.graphIsOpened),"click"in f&&i(4,a=f.click)},t.$$.update=()=>{t.$$.dirty&8&&i(5,s=r?N("tooltip_interactive_graph_on"):N("tooltip_interactive_graph_off"))},[n,o,l,r,a,s,u]}var hu=class extends H{constructor(e){super(),U(this,e,h4,_4,F,{ref:0,hidden:1,disabled:2,graphIsOpened:3,click:4})}},Fr=hu;function g4(t){let e,i,n,o=t[2].default,l=Ie(o,t,t[1],null),r=[{xmlns:"http://www.w3.org/2000/svg"},{width:"24"},{height:"24"},{fill:"none"},{"aria-hidden":"true"},{"data-testid":"replay-icon"},{role:"img"},t[0]],a={};for(let s=0;s<r.length;s+=1)a=ue(a,r[s]);return{c(){e=R("svg"),l&&l.c(),i=R("path"),c(i,"fill","#fff"),c(i,"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"),ye(e,a)},m(s,u){S(s,e,u),l&&l.m(e,null),m(e,i),n=!0},p(s,[u]){l&&l.p&&(!n||u&2)&&Ae(l,o,s,s[1],n?Ee(o,s[1],u,null):Le(s[1]),null),ye(e,a=Be(r,[{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(l,s),n=!0)},o(s){_(l,s),n=!1},d(s){s&&k(e),l&&l.d(s)}}}function b4(t,e,i){let{$$slots:n={},$$scope:o}=e;return t.$$set=l=>{i(0,e=ue(ue({},e),ve(l))),"$$scope"in l&&i(1,o=l.$$scope)},e=ve(e),[e,o,n]}var gu=class extends H{constructor(e){super(),U(this,e,b4,g4,F,{})}},zr=gu;import{noop as v4}from"@vkontakte/videoplayer-shared";function y4(t){Te(t,"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 om(t){let e;return{c(){e=T("div"),c(e,"class","icon-background-mobile svelte-1ot3duq")},m(i,n){S(i,e,n)},d(i){i&&k(e)}}}function w4(t){let e,i,n,o,l=t[1]&&om(t);return n=new zr({}),{c(){l&&l.c(),e=M(),i=T("div"),V(n.$$.fragment),c(i,"class","svelte-1ot3duq"),q(i,"mobile",t[1])},m(r,a){l&&l.m(r,a),S(r,e,a),S(r,i,a),A(n,i,null),o=!0},p(r,a){r[1]?l||(l=om(r),l.c(),l.m(e.parentNode,e)):l&&(l.d(1),l=null),(!o||a&2)&&q(i,"mobile",r[1])},i(r){o||(d(n.$$.fragment,r),o=!0)},o(r){_(n.$$.fragment,r),o=!1},d(r){r&&(k(e),k(i)),l&&l.d(r),L(n)}}}function k4(t){let e,i,n;function o(r){t[5](r)}let l={className:(t[1]?"btn-m--play":"")+" "+t[3],testId:"btn-replay",ariaLabel:N("tooltip_restart"),disabled:t[2],click:t[4],ariaKeyShortCut:Xn.KeyK,$$slots:{default:[w4]},$$scope:{ctx:t}};return t[0]!==void 0&&(l.ref=t[0]),e=new ht({props:l}),be.push(()=>Oe(e,"ref",o)),{c(){V(e.$$.fragment)},m(r,a){A(e,r,a),n=!0},p(r,[a]){let s={};a&10&&(s.className=(r[1]?"btn-m--play":"")+" "+r[3]),a&4&&(s.disabled=r[2]),a&16&&(s.click=r[4]),a&66&&(s.$$scope={dirty:a,ctx:r}),!i&&a&1&&(i=!0,s.ref=r[0],Ne(()=>i=!1)),e.$set(s)},i(r){n||(d(e.$$.fragment,r),n=!0)},o(r){_(e.$$.fragment,r),n=!1},d(r){L(e,r)}}}function S4(t,e,i){let{ref:n=void 0}=e,{isMobile:o=!1}=e,{disabled:l=!1}=e,{className:r=""}=e,{click:a=v4}=e;function s(u){n=u,i(0,n)}return t.$$set=u=>{"ref"in u&&i(0,n=u.ref),"isMobile"in u&&i(1,o=u.isMobile),"disabled"in u&&i(2,l=u.disabled),"className"in u&&i(3,r=u.className),"click"in u&&i(4,a=u.click)},[n,o,l,r,a,s]}var bu=class extends H{constructor(e){super(),U(this,e,S4,k4,F,{ref:0,isMobile:1,disabled:2,className:3,click:4},y4)}},Bl=bu;function C4(t){let e,i,n,o=t[2].default,l=Ie(o,t,t[1],null),r=[{xmlns:"http://www.w3.org/2000/svg"},{width:"24"},{height:"24"},{fill:"none"},{"data-testid":"play-prev-chapter-icon"},{role:"img"},t[0]],a={};for(let s=0;s<r.length;s+=1)a=ue(a,r[s]);return{c(){e=R("svg"),l&&l.c(),i=R("path"),c(i,"fill","#fff"),c(i,"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"),ye(e,a)},m(s,u){S(s,e,u),l&&l.m(e,null),m(e,i),n=!0},p(s,[u]){l&&l.p&&(!n||u&2)&&Ae(l,o,s,s[1],n?Ee(o,s[1],u,null):Le(s[1]),null),ye(e,a=Be(r,[{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(l,s),n=!0)},o(s){_(l,s),n=!1},d(s){s&&k(e),l&&l.d(s)}}}function T4(t,e,i){let{$$slots:n={},$$scope:o}=e;return t.$$set=l=>{i(0,e=ue(ue({},e),ve(l))),"$$scope"in l&&i(1,o=l.$$scope)},e=ve(e),[e,o,n]}var vu=class extends H{constructor(e){super(),U(this,e,T4,C4,F,{})}},lm=vu;function P4(t){let e,i;return e=new lm({}),{c(){V(e.$$.fragment)},m(n,o){A(e,n,o),i=!0},i(n){i||(d(e.$$.fragment,n),i=!0)},o(n){_(e.$$.fragment,n),i=!1},d(n){L(e,n)}}}function I4(t){let e,i,n;function o(r){t[4](r)}let l={className:t[1]?"hidden":"",testId:"btn-play-prev-chapter",ariaLabel:N("tooltip_interactive_go_back"),disabled:t[2],click:t[3],$$slots:{default:[P4]},$$scope:{ctx:t}};return t[0]!==void 0&&(l.ref=t[0]),e=new ht({props:l}),be.push(()=>Oe(e,"ref",o)),{c(){V(e.$$.fragment)},m(r,a){A(e,r,a),n=!0},p(r,[a]){let s={};a&2&&(s.className=r[1]?"hidden":""),a&4&&(s.disabled=r[2]),a&8&&(s.click=r[3]),a&32&&(s.$$scope={dirty:a,ctx:r}),!i&&a&1&&(i=!0,s.ref=r[0],Ne(()=>i=!1)),e.$set(s)},i(r){n||(d(e.$$.fragment,r),n=!0)},o(r){_(e.$$.fragment,r),n=!1},d(r){L(e,r)}}}function E4(t,e,i){let{ref:n=void 0}=e,{hidden:o=!1}=e,{disabled:l=!1}=e,{click:r}=e;function a(s){n=s,i(0,n)}return t.$$set=s=>{"ref"in s&&i(0,n=s.ref),"hidden"in s&&i(1,o=s.hidden),"disabled"in s&&i(2,l=s.disabled),"click"in s&&i(3,r=s.click)},[n,o,l,r,a]}var yu=class extends H{constructor(e){super(),U(this,e,E4,I4,F,{ref:0,hidden:1,disabled:2,click:3})}},Hr=yu;import{noop as rm}from"@vkontakte/videoplayer-shared";function A4(t){Te(t,"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 L4(t){let e,i,n,o;return{c(){e=T("img"),c(e,"class","icon svelte-1x1zctw"),_s(e.src,i=t[0])||c(e,"src",i),c(e,"aria-hidden","true")},m(l,r){S(l,e,r),n||(o=_e(e,"error",t[7]),n=!0)},p(l,r){r&1&&!_s(e.src,i=l[0])&&c(e,"src",i)},d(l){l&&k(e),n=!1,o()}}}function M4(t){let e;return{c(){e=T("div"),e.innerHTML='<div class="inner svelte-1x1zctw"></div>',c(e,"class","icon error-stub svelte-1x1zctw")},m(i,n){S(i,e,n)},p:Ce,d(i){i&&k(e)}}}function V4(t){let e;function i(l,r){return l[5]?M4:L4}let n=i(t,-1),o=n(t);return{c(){o.c(),e=ct()},m(l,r){o.m(l,r),S(l,e,r)},p(l,r){n===(n=i(l,r))&&o?o.p(l,r):(o.d(1),o=n(l),o&&(o.c(),o.m(e.parentNode,e)))},d(l){l&&k(e),o.d(l)}}}function R4(t){let e,i;return e=new ht({props:{className:t[4]?"btn-full-opacity":"",ariaLabel:t[1],click:t[3],disabled:t[6],testId:t[2],$$slots:{default:[V4]},$$scope:{ctx:t}}}),{c(){V(e.$$.fragment)},m(n,o){A(e,n,o),i=!0},p(n,[o]){let l={};o&16&&(l.className=n[4]?"btn-full-opacity":""),o&2&&(l.ariaLabel=n[1]),o&8&&(l.click=n[3]),o&64&&(l.disabled=n[6]),o&4&&(l.testId=n[2]),o&545&&(l.$$scope={dirty:o,ctx:n}),e.$set(l)},i(n){i||(d(e.$$.fragment,n),i=!0)},o(n){_(e.$$.fragment,n),i=!1},d(n){L(e,n)}}}function B4(t,e,i){let n,o,l,{iconUrl:r}=e,{ariaLabel:a}=e,{disabled:s=!1}=e,{testId:u}=e,{onClick:f=rm}=e,p=()=>{i(5,l=!0)};return t.$$set=h=>{"iconUrl"in h&&i(0,r=h.iconUrl),"ariaLabel"in h&&i(1,a=h.ariaLabel),"disabled"in h&&i(8,s=h.disabled),"testId"in h&&i(2,u=h.testId),"onClick"in h&&i(3,f=h.onClick)},t.$$.update=()=>{t.$$.dirty&8&&i(4,n=f===rm),t.$$.dirty&272&&i(6,o=n||s)},i(5,l=!1),[r,a,u,f,n,l,o,p,s]}var wu=class extends H{constructor(e){super(),U(this,e,B4,R4,F,{iconUrl:0,ariaLabel:1,disabled:8,testId:2,onClick:3},A4)}},Ur=wu;import{throttleFn as d3}from"@vkontakte/videoplayer-shared";import{ChromecastState as H4,PlaybackState as ql,Player as U4,VideoFormat as Dl}from"@vkontakte/videoplayer-core";import{Tracer as K4,isInvariantQuality as W4}from"@vkontakte/videoplayer-shared";import{assertNonNullable as On,getHighestQuality as j4,InterfaceLanguage as G4,clientChecker as Q4,isNonNullable as Y4,loadVKLangPack as Z4,Logger as X4,map as J4,merge as x4,Observable as $4,Subject as Qr,Subscription as Iu,ValueSubject as e3,VideoQuality as t3}from"@vkontakte/videoplayer-shared";import{SeekAction as bo}from"@vkontakte/videoplayer-statistics";import"@vkontakte/videoplayer-interactive";import{addScript as q4,assertNonNullable as Oi,Subject as Uo,clearVideoElement as D4}from"@vkontakte/videoplayer-shared";var sm=(t,e)=>t<400||e<225?5:t<640||e<360?0:t<960||e<540?1:t<1280||e<720?2:3;var N4="//ad.mail.ru/static/admanhtml/rbadman-html5.min.js",Kr=class{constructor(e,i){this.adman=null;this.initialVolume=1;this.videoElement=null;this.currentAdSection=null;this.actions=null;this.adsState=null;this.playerState=null;this.events={slotRequested$:new Uo,started$:new Uo,paused$:new Uo,resumed$:new Uo,ended$:new Uo,skipped$:new Uo,clicked$:new Uo};this.loadAdman=e=>new Promise((i,n)=>{let o,l=()=>{clearTimeout(o),delete window.admanAsyncInit,window.AdmanHTML?i():n()};q4(N4,e,this.loadTimeout).then(()=>{window.AdmanHTML?i():(window.admanAsyncInit=l,o=window.setTimeout(l,this.initTimeout))}).catch(()=>{n()})});this.onAdsReady=()=>{this.log({message:"ads ready"}),this.startPreroll()};this.onAdStarted=(e,i)=>{Oi(this.adsState),Oi(this.playerState),Oi(this.actions),this.log({message:`ad started, section: ${e}, banner: ${JSON.stringify(i)}`}),this.events.started$.next(e),i.muted&&(this.setVolume(0),this.actions.setMuted(!0),this.log({message:"ad muted start"}),Je(this.playerState.isMobile)&&this.playerState.mobileUnmuteButtonVisible.set(!0)),this.adsState.duration.set(i.duration),this.adsState.playbackState.set("playing"),this.adsState.canSkip.set(i.allowClose),this.adsState.secondsToWatchBeforeSkip.set(i.allowCloseDelay),this.startWatchDog()};this.onAdTimeRemained=({currentTime:e})=>{Oi(this.adsState),this.adsState.position.set(e),this.startWatchDog()};this.onAdPaused=()=>{this.stopWatchDog(),Oi(this.adsState),this.log({message:"ad paused"}),this.adsState.playbackState.set("paused")};this.onAdPlayed=()=>{Oi(this.adsState),this.log({message:"ad played"}),this.adsState.playbackState.set("playing"),this.startWatchDog()};this.onAdMidrollPoint=()=>{Oi(this.adman),Oi(this.actions),this.log({message:"midroll point"}),this.actions.switchFromVideoToAds(),this.currentAdSection="midroll",this.startWatchDog();try{this.adman.start("midroll")}catch{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=()=>{this.log({message:"ad clicked"}),this.videoElement?.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=i.loadTimeout,this.initTimeout=i.initTimeout,this.runtimeTimeout=i.runtimeTimeout}init(e,i,n){this.actions=e,this.adsState=i,this.playerState=n}onAdmanLoadingError(){this.log({message:"adman loading error"}),this.switchToVideo(!0)}initAdman(e){if(this.adman)return;this.startWatchDog();let{width:i,height:n,isFullscreen:o,isAutoplay:l,adsContainer:r,adsVideoElement:a,slotId:s,params:u={},duration:f,previewParam:p}=e,h,w=this.playerState&&Je(this.playerState.vsid);w&&(h=parseInt(w,36));let g={dl:encodeURIComponent(window.location.href),autoplay:l,player_width:i,player_height:n,puid10:sm(i,n),puid11:o?0:1,preview:p,...h?{request_id:h}:{},duration:f,...u};p||delete g.preview;let C={slot:s,wrapper:r,videoEl:a,videoQuality:n,params:g,browser:{mobile:!1}};try{let b=new window.AdmanHTML;b.setDebug(!1),b.onReady(this.onAdsReady),b.onStarted(this.onAdStarted),b.onPlayed(this.onAdPlayed),b.onPaused(this.onAdPaused),b.adMidrollPoint(this.onAdMidrollPoint),b.onClosed(this.onAdClosed),b.onSkipped(this.onAdSkipped),b.onClicked(this.onAdClicked),b.onTimeRemained(this.onAdTimeRemained),b.onCompleted(this.onAdCompleted),b.onError(this.onAdError),b.init(C),this.adman=b,this.videoElement=a,this.events.slotRequested$.next(),this.log({message:`adman init, config: ${JSON.stringify(C)}`})}catch{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}Oi(this.actions),Oi(this.adsState),Oi(this.playerState);let i=this.currentAdSection==="postroll";this.adsState.playbackState.set("inactive"),this.currentAdSection=null,this.playerState.mobileUnmuteButtonVisible.set(!1),this.log({message:`switch to video, isPostroll: ${i}`}),i&&(this.adsState.postrollPassed.set(!0),this.log({message:"postroll passed"})),this.actions.switchFromAdsToVideo(!i)}togglePlay(){Oi(this.adsState),this.log({message:"toggle play"});let e=Je(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{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{this.log({message:"could not set ad fullscreen"}),this.onAdError()}}startPreroll(){if(Oi(this.adman),!this.isDestroyed){this.log({message:"start preroll"}),this.setVolume(this.initialVolume),this.currentAdSection="preroll",this.startWatchDog();try{this.adman.start("preroll")}catch{this.log({message:"could not start preroll"}),this.onAdError()}}}startPostroll(){Oi(this.adman),Oi(this.actions),this.log({message:"start postroll"}),this.actions.switchFromVideoToAds(),this.currentAdSection="postroll",this.startWatchDog();try{this.adman.start("postroll")}catch{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(){Oi(this.adman),this.log({message:"ad play"}),this.startWatchDog();try{this.adman.resume(),this.events.resumed$.next()}catch{this.onAdError(),this.log({message:"could not resume ad"})}}pause(){Oi(this.adman),this.stopWatchDog(),this.log({message:"ad pause"});try{this.adman.pause(),this.events.paused$.next()}catch{this.onAdError(),this.log({message:"could not pause ad"})}}skip(){Oi(this.adman),this.stopWatchDog(),this.log({message:"ad skip"});try{this.adman.skip(),this.events.skipped$.next()}catch{this.log({message:"could not skip ad"}),this.onAdError()}}setPosition(e,i){this.adman?.setPosition(Math.floor(e),Math.floor(i))}destroy(){this.log({message:"destroy"}),this.stopWatchDog(),this.adman?.destroy(),this.videoElement&&D4(this.videoElement),this.isDestroyed=!0}};var am=t=>{let e=Math.round(t);return isNaN(e)||e<40?"":e>=40&&e<55?50:e>=55&&e<90?60:e>=90&&e<180?120:e>=180?240:""};var ku=class{constructor(){this.oneLineRegExp=/\r\n|\n|\r/;this.twoLinesRegExp=/\r\n\r\n|\n\n|\r\r/}parse(e){let i=[],n=e.split(this.twoLinesRegExp);for(let o of n){let l={startTime:0,endTime:0,texts:[],lang:""},r=o.split(this.oneLineRegExp);for(let a of r)if(!l.startTime&&!l.endTime){let s=new Wr,{startTime:u,endTime:f}=s.parse(a);l.startTime=u,l.endTime=f}else if(a.trim()!==""){let s=new Su,{texts:u}=s.parse(a);l.texts=[...l.texts,...u]}(l.startTime||l.endTime)&&l.texts.length>0&&i.push(l)}return i}},Wr=class{constructor(){this.timeRegExp=/(\d{2,})?:?(\d{2}):(\d{2}).(\d{2,3})/;this.timingRegExp=new RegExp(`${this.timeRegExp.source}( ?--> ?)${this.timeRegExp.source}`)}parse(e){let i={startTime:0,endTime:0},n=this.timingRegExp.exec(e);return n&&(i.startTime=this.calcTime(n[1],n[2],n[3],n[4]),i.endTime=this.calcTime(n[6],n[7],n[8],n[9])),i}parseTime(e){let i=this.timeRegExp.exec(e);return i?this.calcTime(i[1],i[2],i[3],i[4]):0}isTime(e){return this.timeRegExp.test(e)}calcTime(e="0",i="0",n="0",o="0"){let l=Number(e)*60*60,r=Number(i)*60,a=Number(n),s=+`0.${o}`;return l+r+a+s}},Su=class{constructor(){this.letterTagRegExp=/<[a-z]*>|<\/[a-z]*>/}parse(e){let i={texts:[]},o=e.replace(new RegExp(this.letterTagRegExp,"g"),"").split({[Symbol.split](r){let a=0,s=[];for(;a<r.length;){let u=["<",">"].reduce((f,p)=>{let h=r.indexOf(p,a);return f===-1||f>h?h:f},-1);if(u===-1){s.push(r.substring(a));break}s.push(r.substring(a,u)),a=u+1}return s}}),l=new Wr;for(let r of o)l.isTime(r)?i.texts.push({type:"timestamp",value:l.parseTime(r)}):i.texts.push({type:"text",value:r});return i}},um=ku;import{isNonNullable as Cu}from"@vkontakte/videoplayer-shared";var go,Nn,Tu=0,Pu=!1,cm=(t,e=0,i=0)=>t<e&&t<i,jr=(t,e=0,i=0)=>t>=e&&t<=i,O4=(t,e=0,i=0)=>t>e&&t>i,fm=(t,e,i,n=!1)=>{let o=i.find(({lang:a})=>a===e.value)?.subtitles;if(n){let a=o?.find(({startTime:s,endTime:u})=>jr(t,s,u));return a?{...a,lang:e.value}:void 0}let l=t>=Tu,r=t<Tu;if(Tu=t,r&&(Pu=!1),Cu(go)&&jr(t,go.startTime,go.endTime)&&go.lang===e.value)return go;if(!Cu(Nn)&&o?.length&&!Pu){let a=o.find(({startTime:s,endTime:u})=>jr(t,s,u)||l&&cm(t,s,u));Nn=a&&{...a,lang:e.value},go=void 0,!Cu(Nn)&&o[o.length-1].endTime<t&&(Pu=!0);return}else{if(jr(t,Nn?.startTime,Nn?.endTime))return go=Nn,Nn=void 0,go;(l&&O4(t,Nn?.startTime,Nn?.endTime)||r&&cm(t,Nn?.startTime,Nn?.endTime))&&(Nn=void 0)}};import{Subscription as F4}from"@vkontakte/videoplayer-shared";import"@vkontakte/videoplayer-statistics";var Gr=class{constructor(e,i=new F4){this.oneStat=e;this.statSubscription=i}destroy(){this.oneStat.destroy(),this.statSubscription.unsubscribe()}};var dm=({interfaceLanguage:t,isCyrillicRelatedInterface:e,videoId:i,isClip:n,isLiveCatchUpMode:o,statAuthToken:l,isAudioDisabled:r,canDownload:a,callbacks:s,webApi:u,videoEpisodes:f,previewThumbsData:p,uiConfig:h,coreConfig:w,player:g,disabledControls:C,isInteractive:b,interactiveRanges$:E,isInteractiveTime$:v,replayInteractive:y,hasInteractiveBranches:P,playPrevChapterDisabledTooltip:W,additionalButtons:B,looped:O=!1,statistics:ne,saveRate:ge})=>{let G={...w,configName:[...w.configName??[],"ui"],isAudioDisabled:r,live:{...w.live??{},isLiveCatchUpMode:!!o}},X=h,ae=K4.createRootTracer(X.features.saveTraceInfoToFile),j=ae.createComponentTracer("Store"),z=g||new U4(G,ae),Q=new X4,$=new Kr(Q,{loadTimeout:X.ads.loadTimeout,initTimeout:X.ads.initTimeout,runtimeTimeout:X.ads.runtimeTimeout}),K=Vo.getInstance(),Y=u?.pictureInPictureApi,ie=u?.annotationsApi,re=Q.createComponentLog("Store"),Ve,Xe,Se={},Me=ne?vt(ne.oneStat.vsid$):Bn(void 0),Ke=qe(fo()),$e=Y?.info.isActive$??new e3(!1),ce=Y?.info.type,he=qe(0),at=qe([]),ke=x4(z.events.fatalError$,z.events.managedError$).subscribe(I=>at.update(oe=>[...oe,I])),Fe=Bn(!1,I=>{let oe=z.events.fatalError$.subscribe(()=>I(!0));return()=>oe.unsubscribe()}),ft=async I=>{let oe=Object.values(G4).includes(I);if(X.downloadVKLanguages&&(oe&&X.updateBuiltinLanguages||!Ls(I))){let We;try{We=await Z4(I,Wc,jc)}catch(ut){ne?.oneStat?.logError({errorType:"VKLangPack",fatal:!1}),K?.report(ut,{errorType:"VKLangPack",fatal:!1})}We&&(As({language:I,pack:We,fallback:X.defaultLanguage}),Qe.set(I))}Ls(I)&&Qe.set(I)},Qe=qe(t),je=qe(e);ft(t);let Ze=(I,oe)=>{let Pe=Je(Qe);return Ms(Pe,I,oe,X.defaultLanguage)},xe=qe("thumb"),x=(()=>{let I=vi([Fe,xe],([oe,Pe])=>oe?"crashed":Pe);return{...I,is:oe=>Je(I)===oe}})(),De=(()=>{let I=qe(new Set(C));return{...I,add:oe=>{I.update(Pe=>new Set([...Pe].concat(oe)))},remove:oe=>{I.update(Pe=>{let We=[...Pe];return new Set(Array.isArray(oe)?We.filter(ut=>!oe.includes(ut)):We.filter(ut=>ut!==oe))})},includes:oe=>{let Pe=Je(I);return Array.isArray(oe)?oe.every(We=>Pe.has(We)):Pe.has(oe)}}})();j.log("create store"),re({message:"create store"});let ze=I=>{let oe=I.container;oe.append(z.experimental.element$.getValue()),dt=new MutationObserver(Pe=>{let{removedNodes:We}=Pe[0];We.length&&oe.append(z.experimental.element$.getValue())}),dt.observe(oe,{childList:!0})},fe=I=>{re({message:`init video, config: ${JSON.stringify(I)}`}),b?ze(I):z.initVideo(I),j.log("init video",{isInteractive:b}),I.subtitles&&z.setExternalTextTracks(I.subtitles),Ve=I},se=new Qr,nt=I=>se.next(I),de=new Qr,lt=new Qr,rt=new Qr,dt=null,yt={actionRewind$:de,actionSeek$:lt,inPiP$:$e,inFullscreen$:new $4(I=>Ke.subscribe(oe=>I.next(oe))),actionSetSubtitle$:rt,nextMovie$:se};if(ne){let{oneStat:I,statSubscription:oe}=ne;b||oe.add(I.attachTo(z)),oe.add(I.attachToUi(yt)),oe.add(I.attachToAds($.events)),I.authorize(l).catch(Pe=>{re({message:`onestat auth error ${String(Pe)}`})})}if(K){let I=new Iu,oe=(Pe,We)=>I.add(Pe.subscribe(We));if(oe(z.events.managedError$,Pe=>{K.logIError(Pe)}),oe(z.events.fatalError$,Pe=>{K.logIError(Pe,!0)}),ne){let{oneStat:Pe}=ne;oe(Pe.experimental.error$,We=>{K.logIError(We)})}K.sentrySubscription.add(I)}let Et=()=>{Q4.isIOS&&Xe&&If(Xe)},Ye=new Iu().add(z.experimental.element$.subscribe(I=>{I&&(Xe=I,I.classList.add("player-media"),Bo(Y)&&(Y.updateVideoElement(),Y.registryEventHandlers()),b&&I.setAttribute("pip","false"))})).add(z.events.ended$.subscribe(()=>{Et(),s?.onEnded?.()})).add(z.events.started$.subscribe(async()=>{Bo(Y)&&await Y?.revealPictureInPicture();let I=z.info.muted$.getValue();s?.onStarted?.(),Se.onStarted?.(I)})).add(z.events.willSeek$.subscribe(({from:I,to:oe})=>{s?.onSeek?.(I,oe)})).add(z.info.position$.subscribe(I=>{let oe=z.info.duration$.getValue();isFinite(oe)&&oe>0&&(s?.onTimeupdate?.(oe,I),$.setPosition(I,oe))})).add(z.events.fatalError$.subscribe(()=>{s?.onCrashed?.()})).add(z.events.loadedMetadata$.subscribe(()=>{Tt.state.loadedMetadata$.set(!0)})).add(z.info.is3DVideo$.subscribe(I=>{Tt.ui.is3DVideo.set(I)})).add(z.info.isEnded$.subscribe(I=>{b&&(I?(v?.getValue()&&De.add(Zl),De.add("PLAY_BUTTON")):De.remove("PLAY_BUTTON"))})).add(z.info.liveTime$.subscribe(I=>{s?.onLiveTime?.(I)})).add(z.info.isStalled$.subscribe(I=>{s?.onStalledChanged?.(I)})).add($.events.started$.subscribe(()=>{s?.adsInfo?.onStarted?.()})).add($.events.ended$.subscribe(()=>{s?.adsInfo?.onCompleted?.()})),Kt=new Iu,qt=()=>{Kt.add(z.events.log$.subscribe(I=>{console.debug("%c sdk ","background:#9ddcf7;",`sdk component: ${I.component}`,I.message)})).add(Q.log$.subscribe(I=>{console.debug("%c ui ","background:#f3da0b;",`ui component: ${I.component}.`,I.message)}))},kt=()=>{Kt.unsubscribe()},ui=(I,oe)=>{j.log("start camera manual rotation",{mx:I,my:oe}),z.startCameraManualRotation(I,oe)},st=(I=!1)=>{j.log("stop camera manual rotation",{immediate:I}),z.stopCameraManualRotation(I)},wt=(I,oe,Pe)=>{j.log("move camera focus px",{xpx:I,ypx:oe,dt:Pe}),z.moveCameraFocusPX(I,oe,Pe)},we=()=>{z.holdCamera()},gt=()=>{z.releaseCamera()},St=Bn(z.info.position$.getValue(),I=>{let oe,Pe,We=()=>{let ut=z.info.playbackState$.getValue(),Ue=z.info.isLive$.getValue(),pt=z.info.duration$.getValue(),bt=z.info.position$.getValue();if([ql.PLAYING,ql.PAUSED].includes(ut)){let ai=Ue?bt-pt:z.getExactTime();ai!==Pe&&I(ai),Pe=ai}oe=requestAnimationFrame(We)};return We(),()=>cancelAnimationFrame(oe)}),Xt=vt($e),Ct=vt(z.info.playbackState$),Wt=vt(z.info.currentBuffer$),jt=vt(z.info.isEnded$),Dt=vt(z.info.isLive$),Fi=X.features.playbackRate?vt(z.info.canChangePlaybackSpeed$):Bn(!1),xi=vt(z.info.liveBufferTime$),Jt=vt(z.info.volume$),Ai=vt(z.info.muted$),$i=ks(z.info.autoQualityLimits$.pipe(J4(({max:I})=>I!==void 0)),z.info.autoQualityLimits$.getValue()?.max!==void 0),zi=vt(z.info.autoQualityLimitingAvailable$),en=vt(z.info.availableQualities$),Li=vt(z.info.availableQualitiesFps$),Mi=vt(z.info.chromecastState$),ci=vt(z.info.chromecastDeviceName$),fi=vt(z.info.currentFormat$),yi=vt(z.info.throughputEstimation$),wi=vt(z.info.videoBitrate$),ni=vt(z.info.intrinsicVideoSize$),ki=vt(z.info.duration$),Hi=vt(z.info.isAudioAvailable$),Nt=null,Si=z.info.isBuffering$,Vi=Bn(Si.getValue(),I=>{let oe=Si.subscribe(Pe=>{Pe&&Nt===null?Nt=window.setTimeout(()=>{I(Si.getValue()),Nt=null},X.loaderDelay):I(Pe)});return()=>{oe.unsubscribe(),Nt&&clearTimeout(Nt)}}),Ui=()=>{Nt&&clearTimeout(Nt),Nt=null},di=vi([ki,Dt],([I,oe])=>oe?-I:I),Mt=vi([Ct],([I])=>I===ql.PLAYING),Ki=vt(z.info.atLiveEdge$),tn=vt(z.info.atLiveDurationEdge$),Ot=vt(z.info.position$),Wi=vi([Ot,ki],([I,oe])=>isFinite(I)&&isFinite(oe)&&!!oe),ji=vi([Mi],([I])=>I===H4.CONNECTED),Gt=vt(z.info.availableVideoStreams$),Ci=X.features.audioLanguages?vt(z.info.availableAudioStreams$):Bn([]),mi=vt(z.info.currentVideoStream$),Ti=vt(z.info.currentAudioStream$),Qt=I=>{I.language&&Is(I.language),z.setVideoStream(I)},Ft=I=>{I.language&&Is(I.language),z.setAudioStream(I)},xt=I=>{let oe;if(I.length===1&&(oe=I.at(0)),oe??=I.find(We=>"isDefault"in We&&We.isDefault),oe)return oe;let Pe=gf();return Pe&&(oe=I.find(({language:We})=>Pe===We)),oe??=I.at(0),oe},Ri=!1;Ye.add(z.info.availableAudioStreams$.subscribe(I=>{if(!Ri&&I.length){let oe=xt(I);oe&&(z.setAudioStream(oe),Ri=!0)}}));let oi=!1;Ye.add(z.info.availableVideoStreams$.subscribe(I=>{if(!oi&&I.length){let oe=xt(I);oe&&(z.setVideoStream(oe),oi=!0)}}));let li=qe(void 0),$t=vt(z.info.isAutoQualityEnabled$,I=>I&&li.set(void 0)),pi=vt(z.info.currentQuality$,()=>li.set(void 0)),Gi=vi([li,pi],([I,oe])=>I??oe),an=vi([en,Li,$t,Gi,fi],([I,oe,Pe,We,ut])=>{let Ue=[];ut!==Dl.MPEG&&Ue.push({value:"auto",displayValue:Ze("auto_quality_option"),selected:Pe});let pt=I.filter(bt=>!W4(bt));for(let bt of pt){let ai=oe[bt];Ue.push({value:bt,displayValue:`${bt}${ai?am(ai):""}`,selected:Pe?!1:bt===We})}return Ue}),Bi=vt(z.info.currentPlaybackRate$),ri=vi([Bi,Ki,tn],([I,oe,Pe])=>{let We=Pe||b?1:X.controls.playbackRateMin,ut=oe?1:X.controls.playbackRateMax,Ue=X.controls.playbackRateStep,pt=[];for(let bt=We;bt<=ut;bt+=Ue)pt.push({value:bt,displayValue:bt===1?Ze("playback_rate_1"):Ze("playback_rate",{multiplier:bt.toString(10)}),selected:I===bt});return pt}),Yt=X.features.subtitles?vt(z.info.availableTextTracks$):Bn([]),nn=vi([Yt],([I],oe)=>{let Pe=z.info.isLive$.getValue(),We=[],ut=[];for(let pt of I)pt.url&&We.push(fetch(pt.url));let Ue=pt=>{let bt=[];if(pt.length){let{startTime:ai,endTime:zn,texts:$n,lang:Hn}=pt[0];for(let gn of pt)$n[0].value===gn.texts[0].value&&$n[1].value===gn.texts[1].value?zn=gn.endTime:(bt.push({startTime:ai,endTime:zn,texts:$n,lang:Hn}),ai=gn.startTime,zn=gn.endTime,$n=gn.texts,Hn=gn.lang);bt.push({startTime:ai,endTime:zn,texts:$n,lang:Hn})}return bt};Promise.allSettled(We).then(pt=>{for(let[bt,ai]of pt.entries())ai.status==="fulfilled"&&ai.value.ok&&ai.value.text().then(zn=>{let $n=new um,Hn=I[bt].language,gn=!!I[bt].isAuto,uo=$n.parse(zn),ds=Pe?Ue(uo):uo;Hn&&uo&&ut.push({lang:Hn,subtitles:ds,isAuto:gn}),bt===pt.length-1&&oe(ut)})})}),At={displayValue:Ze("subtitles_off"),value:"off"},Vt=qe({...At}),on=vi([Bi,Mt,Vt],([I,oe,Pe],We)=>{let pt;if(z.info.isLive$.getValue()&&oe&&Pe.value!==At.value){let ai=()=>{let zn=1e3/(3*I);pt=setTimeout(ai,zn),We(Date.now())};return ai(),()=>clearTimeout(pt)}}),_i=vi([nn,Vt],([I,oe])=>{if(I?.length>0){let Pe=[{...At,selected:oe?.value===At.value}];for(let{lang:We,isAuto:ut}of I)Fo[We]&&Pe.push({displayValue:ut?Ze("subtitles_auto",{language:Fo[We]}):Fo[We],value:We,selected:oe?.value===We,isAuto:ut});return Pe}else return[]}),ei={available:[],prev:[]},ln=vi([St,Vt,nn,on],([I,oe,Pe,We])=>{let ut=z.info.isLive$.getValue();if(ut&&Pe&&ei.prev!==Pe){let Ue=Pe.find(({lang:bt})=>bt===oe.value),pt=ei.prev.find(({lang:bt})=>bt===oe.value);if(Ue){let bt={...Ue,subtitles:[...pt?.subtitles??[],...Ue.subtitles]};ei.available=[bt],ei.prev=Pe}}if(oe&&oe.value!==At.value){let Ue=ut?Xe?.currentTime??0:I,pt=ut?ei.available:Pe;return fm(Ue,oe,pt,ut)}}),et=vi([ln],([I])=>I?.texts?I.texts:[]),Pi=qe(!0),ti=vi([Wt,di,Ot,xi],([I,oe,Pe,We])=>{let ut=I?.end??0;if(!We)return ut/oe;let pt=-Pe+We-oe;return(ut-pt)/oe}),He=vt(z.info.availableSources$),Qi=vi([He],([I])=>Object.keys(I?.[Dl.MPEG]||{}).length>0),un=()=>{let I=Object.keys(z.info.availableSources$?.getValue()?.[Dl.MPEG]||{}),oe=j4(I)||t3.Q_144P;return Ve.sources[Dl.MPEG]?.[oe]},cn=()=>{let I=un();if(I)j.log("download video",{url:I}),nf(I,Ve?.meta?.title||"video");else{let oe="There is no URL for download video";j.log("download video",{message:oe}),re({message:oe})}},Yi=()=>{re({message:"toggle muted"});let I=z.info.muted$.getValue(),oe=z.info.volume$.getValue(),Pe=oe===0||I,We=!Pe;j.log("toggle muted",{muted:I,volume:oe,soundIsOff:Pe,nextValue:We}),Zi(We)},qi=()=>{j.log("close settings menu"),Tt.ui.settingsMenuVisible.set(!1)},rn=I=>{j.log("open settings menu",{wasOpenedByKeyboard:I}),Tt.ui.settingsMenuOpenedByKeyboard.set(!!I),Tt.ui.settingsMenuVisible.set(!0)},Di=I=>{Je(Tt.ui.settingsMenuVisible)?qi():rn(I)},Zt=(I,oe=I,Pe=!1)=>{let We=!Pe,ut=z.info.muted$.getValue();re({message:`set volume, volume: ${I}, preferredVolume: ${oe}, internalCall: ${We}`}),j.log("set volume",{volume:I,preferredVolume:oe,internalCall:We}),z.setVolume(I),$.setVolume(I),We&&s?.onVolumeChange?.(I),Ts(oe),ut?(z.setMuted(!1),We&&s?.onUnmute?.(),xl(!1)):!ut&&I===0&&(z.setMuted(!0),We&&s?.onMute?.(),xl(!0))},Zi=(I,oe=!1)=>{let Pe=!oe,We=z.info.volume$.getValue();if(re({message:`set muted, currentVolume: ${We}, mute: ${I}, internalCall: ${Pe}`}),j.log("set muted",{mute:I,currentVolume:We,internalCall:Pe}),z.setMuted(I),$.setVolume(I?0:We),xl(I),Pe&&(I?s?.onMute?.():s?.onUnmute?.()),We===0){let ut=Jl()??X.volumeDefault;ut===0&&(ut=X.volumeMinRestore,Ts(ut)),z.setVolume(ut),$.setVolume(ut),Pe&&s?.onVolumeChange?.(ut)}},hi=qe(!1),hn=I=>{j.log("set looped",{isLooped:I}),hi.set(I),z.setLooped(I)};hn(O);let fn=()=>{z.prepare()},dn=()=>{On(Tt);let I=Je(Tt.ui.controls.disabledControls$),oe=Je(Tt.playerPhase),Pe={playerPhase:oe,isInteractive:b,isVideoEnded:!1,action:"none"};if(I.has("PLAY_BUTTON"))return;if(re({message:"toggle play"}),oe==="ads"){Pe.action="play",j.log("toggle adman play",Pe),$.togglePlay();return}let We=()=>{re({message:"toggle play, call player.play"}),Pe.action="play",z.play(),s?.onPlay?.()},ut=()=>{re({message:"toggle play, call player.pause"}),Pe.action="pause",z.pause(),s?.onPause?.()};if(z.info.isEnded$.getValue()){if(re({message:"toggle play, video ended, seek to 0"}),de.next(),lt.next(bo.REWIND),b){y?.();return}z.seekTime(0),We()}else z.info.playbackState$.getValue()!==ql.PLAYING?We():ut();j.log("toggle play",Pe)},yn=I=>{re({message:`set quality, quality: ${I}`}),j.log("set quality",{quality:I}),z.setAutoQuality(I==="auto"),I!=="auto"?(cf(i,I),li.set(I),z.setQuality(I)):Ps()},sn=I=>{re({message:`set trafficSavingEnabled, value: ${I}`}),j.log("set traffic saving enabled",{trafficSavingEnabled:I}),z.setAutoQualityLimits({max:I?X.trafficSavingLimit:void 0}),_f(I)},mn=I=>{j.log("set playback rate",{playbackRate:I}),z.setPlaybackRate(I),X.features.saveRate&&ge&&!z.info.isLive$.getValue()&&bf(I)},pn=()=>{let I=Je(ri),oe=I.findIndex(({selected:We})=>We);if(oe===I.length-1)return;let Pe=I[oe+1];mn(Pe.value)},Xi=()=>{let I=Je(ri),oe=I.findIndex(({selected:We})=>We);if(oe===0)return;let Pe=I[oe-1];mn(Pe.value)},gi=I=>{j.log("set subtitles",{...I}),I&&I.value!==At.value&&rt.next(I.isAuto?I.value+"_auto":I.value),Vt.set(I)},wn=()=>{j.log("toggle subtitles");let I=Je(_i),oe=Je(Vt),Pe=Je(Qe);if(oe?.value===At.value){let We=I.filter(ut=>ut.value!==At.value).find(ut=>ut.value===Pe)||I[1];gi(We??{...At})}else gi({...At,selected:!1})},Ji=(I,oe,Pe=!0)=>{if(re({message:`seek to time, time: ${I}`}),j.log("seek to time",{time:I,action:oe,forcePrecise:Pe}),lt.next(oe),z.info.isLive$.getValue()){let We=z.info.duration$.getValue(),ut=Math.min(0,We+I);z.seekTime(ut,Pe)}else{if(v?.getValue())return;z.seekTime(ao(I),Pe)}},In=I=>{re({message:`seek to episode start time: ${I}`}),j.log("seek to episode start time",{time:I}),Ji(I,bo.EPISODE,!0)},zt=(I,oe)=>{re({message:`seek to percent, percent: ${I}`}),j.log("seek to percent",{percent:I,action:oe});let Pe=Math.round(Je(di)*I);Ji(Pe,oe,!1)},En=I=>{re({message:`seek external, time: ${I}`}),j.log("seek external",{time:I}),lt.next(bo.UNKNOWN),z.seekTime(z.info.isLive$.getValue()?-I:I)},An=I=>{let oe=I.max??"none",Pe=I.min??"none";re({message:`set auto quality limitation. Max: ${oe}. Min: ${Pe}`}),j.log("set auto quality limits",{max:oe,min:Pe}),z.setAutoQualityLimits(I)},kn=I=>{re({message:`seek external to episode start time: ${I}`}),j.log("seek external to episode start time",{time:I}),Ji(I,bo.EPISODE,!0)},Ln=I=>{re({message:`set playback rate to: ${I}`}),j.log("set playback rate external",{playbackRate:I}),z.setPlaybackRate(I)},le=qe(void 0),_t=qe(!1),Ni=I=>{re({message:`start scrubbing, progress: ${I}`}),j.log("start scrubbing",{progress:I}),_t.set(!0),_n(I)},_n=I=>{le.set(I)},Mn,Vn,te=()=>{le.set(void 0),_t.set(!1)},mt=()=>{clearTimeout(Vn),clearTimeout(Mn),Mn=window.setTimeout(()=>{te()},500),Xe?.removeEventListener("seeked",mt)},si=I=>{re({message:`complete scrubbing, progress: ${I}`}),j.log("complete scrubbing",{progress:I}),zt(I,bo.SLIDER),Je(Tt.ui.isMobile)&&Je(Tt.state.currentFormat$)===Dl.HLS?(Xe?.addEventListener("seeked",mt),Vn=window.setTimeout(()=>{mt()},300)):te()},Qn=vi([St,di,le],([I,oe,Pe],We)=>{We(Y4(Pe)?Pe*oe:I)}),Fn=qe({width:0,height:0}),ee=vi([Fn],([{width:I}],oe)=>{let Pe=q1(I);oe(Pe)}),Yn=qe(!1),wl=vi([ee,Yn],([I,oe])=>oe?B.filter(Pe=>!Pe.hideOnMobile):B.filter(Pe=>!Pe.hideOnDesktopGridTypes?.includes(I))),kl=vi([Yn,Fe],([I,oe],Pe)=>{Pe(I&&oe)}),Sl=()=>{lt.next(bo.LIVE),re({message:"switch to active live"}),j.log("switch to active live"),z.seekTime(0),z.info.playbackState$.getValue()!==ql.PLAYING&&Tt.actions.internal.togglePlay()},Cl=()=>{j.log("skip adman"),$.skip()},Ko=(I=!0)=>{On(Tt),re({message:`switch from ads to video, callPlay: ${I}`}),j.log("switch from ads to video",{callPlay:I}),xe.set("video"),I&&z.play()},vo=()=>{On(Tt),re({message:"switch from video to ads"}),j.log("switch from video to ads"),Tt.actions.internal.pause(),Et(),xe.set("ads")},yo=I=>{On(Tt);let oe=I?"LiveWaitingStart":"thumb";j.log("set live waiting start",{state:I,playerPhase:oe}),xe.set(oe)},xn=I=>{On(Tt);let oe=I?"LiveWaitingRecover":"thumb";j.log("set live waiting recover",{state:I,playerPhase:oe}),xe.set(oe)},oo=I=>{On(Tt);let oe=I?"LiveWaitingRecord":"thumb";j.log("set live waiting record",{state:I,playerPhase:oe}),xe.set(oe)},lo=()=>(On(Tt),j.log("get debug text data"),ef(z,Ve,Tt)),Wo=()=>(On(Tt),JSON.stringify(ae.getFinishedSpans())),jo=()=>(On(Tt),tf(z,Ve,Tt)),wo=()=>Xe,Go=()=>{re({message:"toggle chromecast"}),j.log("toggle chromecast"),z.toggleChromecast()},ko=I=>{if(On(Tt),z.info.isEnded$.getValue())return;let oe=!I;if(Je(Tt.playerPhase)==="ads"){re({message:`pause ads, internalCall: ${oe}`}),j.log("pause ads",{internalCall:oe}),$.pause();return}re({message:`pause video, internalCall: ${oe}`}),j.log("pause video",{internalCall:oe}),oe&&s?.onPause?.(),z.pause()},Qo=I=>{On(Tt);let oe=!I;if(Je(Tt.playerPhase)==="ads"){re({message:`play ads, internalCall: ${oe}`}),j.log("play ads",{internalCall:oe}),$.play();return}re({message:`play video, internalCall: ${oe}`}),j.log("play video",{internalCall:oe}),oe&&s?.onPlay?.(),z.play()},So=(I,oe)=>{On(Tt),re({message:`first start, show ads: ${I}, internalCall: ${!oe}`}),j.log("first start",{showAds:I,external:oe}),I?xe.set("ads"):(xe.set("video"),oe?z.play():Tt.actions.internal.togglePlay())},ro=()=>(re({message:"getting time codes"}),f),Z=()=>{let I=ro();if(!I||[0,1].includes(I.length))return;let oe=z.info.position$.getValue();return I.find(Pe=>Pe.time>oe)},Rt=I=>{let oe=I;oe||(oe=Z());let Pe=z.info.position$.getValue();j.log("seek to next episode",{currentTime:Pe,...oe}),oe&&(re({message:"seek to next episode"}),Ji(oe.time,bo.EPISODE,!0))},Sn=()=>{let I=ro();if(!I||[0,1].includes(I.length))return;let oe=z.info.position$.getValue(),Pe=I.findIndex(ut=>ut.time>oe),We=Pe===-1?I.length-2:Pe-2;if(!(We<0))return I[We]},Rn=I=>{let oe=I;oe||(oe=Sn());let Pe=z.info.position$.getValue();j.log("seek to prev episode",{currentTime:Pe,...oe}),oe&&(re({message:"seek to prev episode"}),Ji(oe.time,bo.EPISODE,!0))},Yo=()=>(re({message:"getting preview thumbs data"}),j.log("get preview thumbs data",{...p}),p),Co=async()=>{let I=Y?.isActive(),oe="none";Y?.isActive()?(oe="remove",await Y?.remove()):(oe="request",await Y?.request()),j.log("toggle picture in picture",{isActive:I,action:oe})},so=(I=-90)=>{j.log("rotate video",{alphaDiff:I}),he.update(oe=>oe+I)},Zn=qe([]);E?.subscribe(I=>{let oe=[];for(let Pe=0;Pe<I.length;Pe++){let{range:[We,ut],subjects:Ue}=I[Pe];Pe===0&&We!==0&&oe.push({time:0,text:"",interactive:!1,completed:!0}),oe.push({time:We/1e3,text:"",interactive:!0,completed:!Ue.length}),ut!==1/0&&oe.push({time:ut/1e3,text:"",interactive:!1,completed:!0})}Zn.set(oe)});let Zo=qe(!1);v?.subscribe(I=>{I&&Je(_t)&&te()});let ao=I=>{if(!b)return I;let oe=Je(Zn),Pe=Je(di),ut=Je(Ot)/Pe,Ue=oe.find(pt=>pt.interactive&&!pt.completed&&pt.time>ut);return typeof Ue?.time=="number"?Math.min(I,Ue.time-.05):I},Ul=()=>{Tt.ui.episodes.panelOpened$.set(!1)},Tl=()=>{j.log("destroy store"),clearTimeout(Vn),clearTimeout(Mn),Ye.unsubscribe(),Kt.unsubscribe(),z.destroy(),$.destroy(),ne?.destroy(),K?.destroy(),ke.unsubscribe(),dt?.disconnect(),dt=null},Tt={interfaceLanguage$:Qe,isCyrillicRelatedInterface$:je,initVideo:fe,videoId:i,isClip:n,playerPhase:x,vsid:Me,state:{positionExact$:St,positionWithScrubbing$:Qn,duration$:di,playbackState$:Ct,isPlaying$:Mt,isLoaderVisible:Vi,bufferedProgress$:ti,isLive$:Dt,canChangePlaybackSpeed$:Fi,isActiveLive$:Ki,isOldestAvailableLive$:tn,isRewindableLive$:Wi,isEnded$:jt,muted$:Ai,volume$:Jt,trafficSavingEnabled$:$i,autoQualityLimitingAvailable$:zi,availableVideoStreams$:Gt,availableAudioStreams$:Ci,videoStream$:mi,audioStream$:Ti,currentQuality$:Gi,isAutoQualityEnabled$:$t,availableQualities$:an,currentPlaybackRate$:Bi,availablePlaybackRates$:ri,currentSubtitle$:Vt,availableSubtitlesList$:_i,currentSubtitleCaptions$:et,isAutoSubtitleCaptionVisible$:Pi,chromecastState$:Mi,chromecastDeviceName$:ci,chromecastConnected$:ji,currentFormat$:fi,throughputEstimation$:yi,videoBitrate$:wi,videoSize$:ni,errorLog$:at,crashed$:Fe,isAudioAvailable$:Hi,isAudioDisabled:!!r,canDownload:X.features.download&&!!a,availableSources$:He,hasMpegSources$:Qi,isInteractive:b,showInteractiveGraph:X.features.interactiveGraph,showSeekToInteractive:X.features.seekToInteractive,showPlayPrevChapter:X.features.interactivePlayPrevChapter,showInteractiveTimeIndicator:X.features.interactiveTimeIndicator&&!!Je(Zn).length,interactiveEpisodes$:Zn,isInteractiveTime$:v?vt(v):qe(!1),graphIsOpened$:qe(!1),isInteractiveExpectation$:Zo,hasInteractiveBranches:P,playPrevChapterDisabledTooltip:W,looped$:hi,loadedMetadata$:qe(!1)},ui:{controlsVisible:qe(!1),touched:qe(!1),controls:{prevButton:qe(void 0),playButton:qe(void 0),replayButton:qe(void 0),nextButton:qe(void 0),playPrevChapterButton:qe(void 0),seekToInteractiveButton:qe(void 0),interactiveGraphButton:qe(void 0),liveButton:qe(void 0),time:qe(void 0),episodes:qe(void 0),volume:qe(void 0),subtitles:qe(void 0),settings:qe(void 0),context:qe(void 0),chromecast:qe(void 0),pip:qe(void 0),fullscreen:qe(void 0),vkLogo:qe(void 0),interactiveTimeIndicator:qe(void 0),timeline:qe(void 0),additionalButtons:B.length?B.reduce(I=>[...I,qe(void 0)],[]):[],disabledControls$:De},modals:{hotKeyMap:{show:qe(!1),data:qe({title:"",closeBtnText:"",groups:[]})}},isFullscreen:Ke,rotateAlpha:he,isAutoplay:qe(!1),debugPanelVisible:qe(!1),episodes:{panelOpened$:qe(!1),openedByKeyboard$:qe(!1)},contextMenu:{visible$:qe(!1),btnRef$:qe(void 0),openedByBtnKeyboard$:qe(!1),openedByHotKey$:qe(!1),lastActiveElem$:qe(void 0),showContextMenuBtn$:qe(!1),position$:qe({top:0,left:0})},playerSize:Fn,isMobile:Yn,mobileNotReportControlHidden$:kl,mobileUnmuteButtonExpanded:qe(!1),mobileUnmuteButtonVisible:qe(!1),icon3DVideoVisible:qe(!1),settingsMenuVisible:qe(!1),settingsMenuOpenedByKeyboard:qe(!1),scrubbingInProgress:_t,is3DVideo:qe(!1),isPictureInPictureActive$:Xt,pictureInPictureType$:Bn(ce),currentGridType$:ee,additionalButtons$:wl,interactiveHideMobileControls:qe(!1),overlayContainer$:qe(void 0),startedByKeyboard$:qe(!1)},ads:{position:qe(0),duration:qe(0),playbackState:qe("inactive"),canSkip:qe(!1),secondsToWatchBeforeSkip:qe(0),postrollPassed:qe(!1)},webApi:{pictureInPictureApi:Y,annotationsApi:ie},actions:{internal:{preload:fn,firstStart:I=>So(I,!1),pause:()=>ko(!1),togglePlay:dn,toggleMuted:Yi,toggleSettingsMenu:Di,openSettingsMenu:rn,closeSettingsMenu:qi,setVolume:Zt,setVideoStream:Qt,setAudioStream:Ft,setQuality:yn,setTrafficSavingEnabled:I=>sn(I),setPlaybackRate:mn,incrementPlaybackRate:pn,decrementPlaybackRate:Xi,setSubtitle:gi,toggleSubtitle:wn,togglePictureInPicture:Co,startScrubbing:Ni,progressScrubbing:_n,completeScrubbing:si,toggleChromecast:Go,switchToActiveLive:Sl,switchFromAdsToVideo:Ko,switchFromVideoToAds:vo,skipAd:Cl,setLiveWaitingStart:yo,setLiveWaitingRecover:xn,setLiveWaitingRecord:oo,getDebugTextData:lo,getTraceTextData:Wo,getDebugPanelData:jo,getVideoElement:wo,seekTime:(I,oe,Pe)=>Ji(I,oe,Pe),clearDelayedBufferingCheckTimeout:Ui,seekEpisodeStartTime:In,seekToPercent:zt,getNextEpisode:Z,seekToNextEpisode:Rt,getPrevEpisode:Sn,seekToPrevEpisode:Rn,startLogging:qt,stopLogging:kt,startCameraManualRotation:ui,stopCameraManualRotation:st,moveCameraFocusPX:wt,holdCamera:we,releaseCamera:gt,getVideoEpisodes:ro,getPreviewThumbsData:Yo,downloadVideo:cn,addLanguage:As,setLanguage:ft,nextMovie:nt,videoRotate:so,correctSeekTimeToInteractive:ao,replayInteractive:y,setLooped:hn},external:{firstStart:I=>So(I,!0),play:()=>Qo(!0),pause:()=>ko(!0),seekTime:I=>En(I),seekEpisodeStartTime:I=>kn(I),setPlaybackRate:I=>Ln(I),setAutoQualityLimits:I=>An(I),setMuted:I=>Zi(I,!0),setVolume:I=>Zt(I,I,!0),returnFocusToEpisodes:Ul}},callbacks:s,setUiCallbacks:I=>{Se={...I}},getAdmanWrapper:()=>$,getLogger:()=>Q,destroy:Tl};return Tt};var Zr=(t,e,i,n)=>{if(!t)return;let o=["tooltipPointerOffsetX","disabledControls$","additionalButtons"],l=["interactiveTimeIndicator"],r=t.getBoundingClientRect();for(let[a,s]of Object.entries(e))if(!["tooltipPointerOffsetX","disabledControls$","additionalButtons"].includes(a)){let u=i[a]?.getBoundingClientRect(),f=(n||l.includes(a))&&!!u&&!!(u.right-u.left);s.set({positionStartX:0,positionEndX:0,left:f?Math.round(u.left-r.left):0,right:f?Math.round(u.right-r.left):0,top:f?Math.round(u.top-r.top):0,bottom:f?Math.round(u.bottom-r.top):0,isDisplayed:f})}};var Xr=async(t,e,i)=>{await Kn(),e&&i&&(i.focus(),t.set(!1))};function i3(t){let e,i,n,o=t[2].default,l=Ie(o,t,t[1],null),r=[{xmlns:"http://www.w3.org/2000/svg"},{width:"24"},{height:"24"},{fill:"none"},{"aria-hidden":"true"},{"data-testid":"dots-icon"},{role:"img"},t[0]],a={};for(let s=0;s<r.length;s+=1)a=ue(a,r[s]);return{c(){e=R("svg"),l&&l.c(),i=R("path"),c(i,"fill","#fff"),c(i,"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"),ye(e,a)},m(s,u){S(s,e,u),l&&l.m(e,null),m(e,i),n=!0},p(s,[u]){l&&l.p&&(!n||u&2)&&Ae(l,o,s,s[1],n?Ee(o,s[1],u,null):Le(s[1]),null),ye(e,a=Be(r,[{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(l,s),n=!0)},o(s){_(l,s),n=!1},d(s){s&&k(e),l&&l.d(s)}}}function n3(t,e,i){let{$$slots:n={},$$scope:o}=e;return t.$$set=l=>{i(0,e=ue(ue({},e),ve(l))),"$$scope"in l&&i(1,o=l.$$scope)},e=ve(e),[e,o,n]}var Eu=class extends H{constructor(e){super(),U(this,e,n3,i3,F,{})}},mm=Eu;function o3(t){let e,i;return e=new mm({}),{c(){V(e.$$.fragment)},m(n,o){A(e,n,o),i=!0},i(n){i||(d(e.$$.fragment,n),i=!0)},o(n){_(e.$$.fragment,n),i=!1},d(n){L(e,n)}}}function l3(t){let e,i,n;function o(r){t[8](r)}let l={className:t[3]?"opened":"",testId:"btn-context-menu",disabled:t[0],ariaLabel:t[1],click:t[5],focus:t[6],blur:t[7],ariaExpanded:t[3],$$slots:{default:[o3]},$$scope:{ctx:t}};return t[2]!==void 0&&(l.ref=t[2]),e=new ht({props:l}),be.push(()=>Oe(e,"ref",o)),{c(){V(e.$$.fragment)},m(r,a){A(e,r,a),n=!0},p(r,[a]){let s={};a&8&&(s.className=r[3]?"opened":""),a&1&&(s.disabled=r[0]),a&2&&(s.ariaLabel=r[1]),a&8&&(s.ariaExpanded=r[3]),a&16384&&(s.$$scope={dirty:a,ctx:r}),!i&&a&4&&(i=!0,s.ref=r[2],Ne(()=>i=!1)),e.$set(s)},i(r){n||(d(e.$$.fragment,r),n=!0)},o(r){_(e.$$.fragment,r),n=!1},d(r){L(e,r)}}}function r3(t,e,i){let n,{disabled:o=!1}=e,{ariaLabel:l=""}=e,r=it(),a=r.ui.contextMenu.visible$;D(t,a,E=>i(3,n=E));let s=r.ui.contextMenu.openedByBtnKeyboard$,u=r.ui.contextMenu.showContextMenuBtn$,f=r.ui.contextMenu.position$,p=r.ui.contextMenu.btnRef$,h,w=E=>{let v=sl(E),y=jf(h);f.set(y),s.set(v),a.set(!n)},g=()=>{u.set(!0)},C=()=>{u.set(!1)};function b(E){h=E,i(2,h)}return t.$$set=E=>{"disabled"in E&&i(0,o=E.disabled),"ariaLabel"in E&&i(1,l=E.ariaLabel)},t.$$.update=()=>{t.$$.dirty&4&&h&&p.set(h)},[o,l,h,n,a,w,g,C,b]}var Au=class extends H{constructor(e){super(),U(this,e,r3,l3,F,{disabled:0,ariaLabel:1})}},pm=Au;function s3(t){Te(t,"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 a3(t){let e,i;return e=new Ir({props:{completed:!0}}),{c(){V(e.$$.fragment)},m(n,o){A(e,n,o),i=!0},p:Ce,i(n){i||(d(e.$$.fragment,n),i=!0)},o(n){_(e.$$.fragment,n),i=!1},d(n){L(e,n)}}}function u3(t){let e,i,n,o,l,r,a,s,u,f;function p(w){t[22](w)}let h={tooltipContent:N("tooltip_interactive_interaction_time_indicator"),tooltipActive:t[5],initialTranslateYPx:72,tooltipPlacement:"bottom",onTooltipVisibilityChange:t[13],$$slots:{default:[a3]},$$scope:{ctx:t}};return t[0]!==void 0&&(h.ref=t[0]),i=new Lt({props:h}),be.push(()=>Oe(i,"ref",p)),i.$on("click",t[14]),{c(){e=T("div"),V(i.$$.fragment),o=M(),l=T("div"),r=M(),a=T("div"),c(l,"class","ref-block svelte-17imlp9"),q(l,"hidden",t[1]),c(a,"class","pulse svelte-17imlp9"),q(a,"paused",t[4]),c(e,"class","interactive-episode-icon-animated svelte-17imlp9"),q(e,"mobile",t[2]),q(e,"fullscreen",t[6]),q(e,"invisible",t[1])},m(w,g){S(w,e,g),A(i,e,null),m(e,o),m(e,l),t[23](l),m(e,r),m(e,a),t[24](a),s=!0,u||(f=[_e(e,"mousemove",ot(t[21])),_e(e,"mouseleave",t[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],Ne(()=>n=!1)),i.$set(C),(!s||g[0]&2)&&q(l,"hidden",w[1]),(!s||g[0]&16)&&q(a,"paused",w[4]),(!s||g[0]&4)&&q(e,"mobile",w[2]),(!s||g[0]&64)&&q(e,"fullscreen",w[6]),(!s||g[0]&2)&&q(e,"invisible",w[1])},i(w){s||(d(i.$$.fragment,w),s=!0)},o(w){_(i.$$.fragment,w),s=!1},d(w){w&&k(e),L(i),t[23](null),t[24](null),u=!1,tt(f)}}}function c3(t,e,i){let n,o,l,r,a,s,{ref:u=void 0}=e,f,p=it(),h=qn(),{interactiveControlsOpacity$:w}=h;D(t,w,Y=>i(18,o=Y));let g=p.ui.isMobile;D(t,g,Y=>i(2,a=Y));let C=p.ui.isFullscreen;D(t,C,Y=>i(6,s=Y));let b=p.state.isInteractiveTime$;D(t,b,Y=>i(19,l=Y));let E=h.showInteractiveTimeIndicatorTooltip$;D(t,E,Y=>i(17,n=Y));let v=p.ui.controlsVisible;D(t,v,Y=>i(20,r=Y));let y=p.callbacks?.onInteractiveTimeIndicatorClick,P,W,B,O=()=>{i(4,B=!0)},ne=()=>{ge(),f?.addEventListener("animationiteration",O,{once:!0})},ge=()=>{i(4,B=!1),f?.removeEventListener("animationiteration",O)},G=Y=>{E.set(Y)},X,ae=()=>{W||(E.set(!0),y?.())};Un(()=>{E.clearTimeout(),ge()});let j=()=>{E.set(!1)};function z(Y){Cn.call(this,t,Y)}function Q(Y){u=Y,i(0,u)}function $(Y){be[Y?"unshift":"push"](()=>{u=Y,i(0,u)})}function K(Y){be[Y?"unshift":"push"](()=>{f=Y,i(3,f)})}return t.$$set=Y=>{"ref"in Y&&i(0,u=Y.ref)},t.$$.update=()=>{t.$$.dirty[0]&1048580&&i(16,P=!a&&r),t.$$.dirty[0]&851968&&i(1,W=!l||!!o||P),t.$$.dirty[0]&2&&i(4,B=W),t.$$.dirty[0]&131074&&i(5,X=n&&!W),t.$$.dirty[0]&131072&&(n?ne():ge())},[u,W,a,f,B,X,s,w,g,C,b,E,v,G,ae,j,P,n,o,l,r,z,Q,$,K]}var Lu=class extends H{constructor(e){super(),U(this,e,c3,u3,F,{ref:0},s3,[-1,-1])}},Jr=Lu;function m3(t){Te(t,"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 hm(t,e,i){let n=t.slice();return n[210]=e[i].iconUrl,n[211]=e[i].ariaLabel,n[212]=e[i].testId,n[213]=e[i].onClick,n[214]=e[i].tooltip,n}function gm(t){let e,i,n;function o(r){t[174](r)}let l={disabled:!t[9],tooltipContent:N("tooltip_previous"),$$slots:{default:[p3]},$$scope:{ctx:t}};return t[23].prevButton!==void 0&&(l.ref=t[23].prevButton),e=new Lt({props:l}),be.push(()=>Oe(e,"ref",o)),{c(){V(e.$$.fragment)},m(r,a){A(e,r,a),n=!0},p(r,a){let s={};a[0]&512&&(s.disabled=!r[9]),a[0]&4608|a[7]&1&&(s.$$scope={dirty:a,ctx:r}),!i&&a[0]&8388608&&(i=!0,s.ref=r[23].prevButton,Ne(()=>i=!1)),e.$set(s)},i(r){n||(d(e.$$.fragment,r),n=!0)},o(r){_(e.$$.fragment,r),n=!1},d(r){L(e,r)}}}function p3(t){let e,i;return e=new hl({props:{click:t[12],type:"prev",disabled:!t[9],isMobile:!1}}),{c(){V(e.$$.fragment)},m(n,o){A(e,n,o),i=!0},p(n,o){let l={};o[0]&4096&&(l.click=n[12]),o[0]&512&&(l.disabled=!n[9]),e.$set(l)},i(n){i||(d(e.$$.fragment,n),i=!0)},o(n){_(e.$$.fragment,n),i=!1},d(n){L(e,n)}}}function bm(t){let e,i,n;function o(r){t[175](r)}let l={disabled:t[74],tooltipContent:N("tooltip_restart"),$$slots:{default:[_3]},$$scope:{ctx:t}};return t[23].replayButton!==void 0&&(l.ref=t[23].replayButton),e=new Lt({props:l}),be.push(()=>Oe(e,"ref",o)),{c(){V(e.$$.fragment)},m(r,a){A(e,r,a),n=!0},p(r,a){let s={};a[2]&4096&&(s.disabled=r[74]),a[2]&4096|a[7]&1&&(s.$$scope={dirty:a,ctx:r}),!i&&a[0]&8388608&&(i=!0,s.ref=r[23].replayButton,Ne(()=>i=!1)),e.$set(s)},i(r){n||(d(e.$$.fragment,r),n=!0)},o(r){_(e.$$.fragment,r),n=!1},d(r){L(e,r)}}}function _3(t){let e,i;return e=new Bl({props:{click:t[128],disabled:t[74]}}),{c(){V(e.$$.fragment)},m(n,o){A(e,n,o),i=!0},p(n,o){let l={};o[2]&4096&&(l.disabled=n[74]),e.$set(l)},i(n){i||(d(e.$$.fragment,n),i=!0)},o(n){_(e.$$.fragment,n),i=!1},d(n){L(e,n)}}}function vm(t){let e,i,n;function o(r){t[177](r)}let l={tooltipContent:t[47],disabled:t[75],$$slots:{default:[h3]},$$scope:{ctx:t}};return t[23].playButton!==void 0&&(l.ref=t[23].playButton),e=new Lt({props:l}),be.push(()=>Oe(e,"ref",o)),{c(){V(e.$$.fragment)},m(r,a){A(e,r,a),n=!0},p(r,a){let s={};a[1]&65536&&(s.tooltipContent=r[47]),a[2]&8192&&(s.disabled=r[75]),a[0]&67108864|a[1]&8|a[2]&8192|a[7]&1&&(s.$$scope={dirty:a,ctx:r}),!i&&a[0]&8388608&&(i=!0,s.ref=r[23].playButton,Ne(()=>i=!1)),e.$set(s)},i(r){n||(d(e.$$.fragment,r),n=!0)},o(r){_(e.$$.fragment,r),n=!1},d(r){L(e,r)}}}function h3(t){let e,i,n;function o(r){t[176](r)}let l={isMobile:!1,isPlaying:t[34],click:t[85],disabled:t[75]};return t[26]!==void 0&&(l.ref=t[26]),e=new Rl({props:l}),be.push(()=>Oe(e,"ref",o)),{c(){V(e.$$.fragment)},m(r,a){A(e,r,a),n=!0},p(r,a){let s={};a[1]&8&&(s.isPlaying=r[34]),a[2]&8192&&(s.disabled=r[75]),!i&&a[0]&67108864&&(i=!0,s.ref=r[26],Ne(()=>i=!1)),e.$set(s)},i(r){n||(d(e.$$.fragment,r),n=!0)},o(r){_(e.$$.fragment,r),n=!1},d(r){L(e,r)}}}function ym(t){let e,i,n;function o(r){t[178](r)}let l={disabled:!t[8],tooltipContent:N("tooltip_next"),$$slots:{default:[g3]},$$scope:{ctx:t}};return t[23].nextButton!==void 0&&(l.ref=t[23].nextButton),e=new Lt({props:l}),be.push(()=>Oe(e,"ref",o)),{c(){V(e.$$.fragment)},m(r,a){A(e,r,a),n=!0},p(r,a){let s={};a[0]&256&&(s.disabled=!r[8]),a[0]&2304|a[7]&1&&(s.$$scope={dirty:a,ctx:r}),!i&&a[0]&8388608&&(i=!0,s.ref=r[23].nextButton,Ne(()=>i=!1)),e.$set(s)},i(r){n||(d(e.$$.fragment,r),n=!0)},o(r){_(e.$$.fragment,r),n=!1},d(r){L(e,r)}}}function g3(t){let e,i;return e=new hl({props:{click:t[11],type:"next",disabled:!t[8],isMobile:!1}}),{c(){V(e.$$.fragment)},m(n,o){A(e,n,o),i=!0},p(n,o){let l={};o[0]&2048&&(l.click=n[11]),o[0]&256&&(l.disabled=!n[8]),e.$set(l)},i(n){i||(d(e.$$.fragment,n),i=!0)},o(n){_(e.$$.fragment,n),i=!1},d(n){L(e,n)}}}function b3(t){let e,i,n,o,l=t[121]&&v3(t),r=t[120]&&w3(t),a=t[119]&&S3(t);return{c(){l&&l.c(),e=M(),r&&r.c(),i=M(),a&&a.c(),n=ct()},m(s,u){l&&l.m(s,u),S(s,e,u),r&&r.m(s,u),S(s,i,u),a&&a.m(s,u),S(s,n,u),o=!0},p(s,u){s[121]&&l.p(s,u),s[120]&&r.p(s,u),s[119]&&a.p(s,u)},i(s){o||(d(l),d(r),d(a),o=!0)},o(s){_(l),_(r),_(a),o=!1},d(s){s&&(k(e),k(i),k(n)),l&&l.d(s),r&&r.d(s),a&&a.d(s)}}}function v3(t){let e,i,n;function o(r){t[179](r)}let l={disabled:t[73],tooltipContent:N("tooltip_interactive_go_back"),disabledTooltipContent:N(t[124]),$$slots:{default:[y3]},$$scope:{ctx:t}};return t[23].playPrevChapterButton!==void 0&&(l.ref=t[23].playPrevChapterButton),e=new Lt({props:l}),be.push(()=>Oe(e,"ref",o)),{c(){V(e.$$.fragment)},m(r,a){A(e,r,a),n=!0},p(r,a){let s={};a[2]&2048&&(s.disabled=r[73]),a[0]&131072|a[2]&2048|a[7]&1&&(s.$$scope={dirty:a,ctx:r}),!i&&a[0]&8388608&&(i=!0,s.ref=r[23].playPrevChapterButton,Ne(()=>i=!1)),e.$set(s)},i(r){n||(d(e.$$.fragment,r),n=!0)},o(r){_(e.$$.fragment,r),n=!1},d(r){L(e,r)}}}function y3(t){let e,i;return e=new Hr({props:{disabled:t[73],click:t[17]}}),{c(){V(e.$$.fragment)},m(n,o){A(e,n,o),i=!0},p(n,o){let l={};o[2]&2048&&(l.disabled=n[73]),o[0]&131072&&(l.click=n[17]),e.$set(l)},i(n){i||(d(e.$$.fragment,n),i=!0)},o(n){_(e.$$.fragment,n),i=!1},d(n){L(e,n)}}}function w3(t){let e,i,n;function o(r){t[180](r)}let l={disabled:t[76],tooltipContent:N("tooltip_interactive_seek"),disabledTooltipContent:N(t[78]),$$slots:{default:[k3]},$$scope:{ctx:t}};return t[23].seekToInteractiveButton!==void 0&&(l.ref=t[23].seekToInteractiveButton),e=new Lt({props:l}),be.push(()=>Oe(e,"ref",o)),{c(){V(e.$$.fragment)},m(r,a){A(e,r,a),n=!0},p(r,a){let s={};a[2]&16384&&(s.disabled=r[76]),a[2]&65536&&(s.disabledTooltipContent=N(r[78])),a[0]&32768|a[2]&16384|a[7]&1&&(s.$$scope={dirty:a,ctx:r}),!i&&a[0]&8388608&&(i=!0,s.ref=r[23].seekToInteractiveButton,Ne(()=>i=!1)),e.$set(s)},i(r){n||(d(e.$$.fragment,r),n=!0)},o(r){_(e.$$.fragment,r),n=!1},d(r){L(e,r)}}}function k3(t){let e,i;return e=new Or({props:{disabled:t[76],click:t[15]}}),{c(){V(e.$$.fragment)},m(n,o){A(e,n,o),i=!0},p(n,o){let l={};o[2]&16384&&(l.disabled=n[76]),o[0]&32768&&(l.click=n[15]),e.$set(l)},i(n){i||(d(e.$$.fragment,n),i=!0)},o(n){_(e.$$.fragment,n),i=!1},d(n){L(e,n)}}}function S3(t){let e,i,n;function o(r){t[181](r)}let l={tooltipContent:t[48],disabled:t[77],$$slots:{default:[C3]},$$scope:{ctx:t}};return t[23].interactiveGraphButton!==void 0&&(l.ref=t[23].interactiveGraphButton),e=new Lt({props:l}),be.push(()=>Oe(e,"ref",o)),{c(){V(e.$$.fragment)},m(r,a){A(e,r,a),n=!0},p(r,a){let s={};a[1]&131072&&(s.tooltipContent=r[48]),a[2]&32768&&(s.disabled=r[77]),a[0]&65536|a[1]&1|a[2]&32768|a[7]&1&&(s.$$scope={dirty:a,ctx:r}),!i&&a[0]&8388608&&(i=!0,s.ref=r[23].interactiveGraphButton,Ne(()=>i=!1)),e.$set(s)},i(r){n||(d(e.$$.fragment,r),n=!0)},o(r){_(e.$$.fragment,r),n=!1},d(r){L(e,r)}}}function C3(t){let e,i;return e=new Fr({props:{click:t[16],graphIsOpened:t[31],disabled:t[77]}}),{c(){V(e.$$.fragment)},m(n,o){A(e,n,o),i=!0},p(n,o){let l={};o[0]&65536&&(l.click=n[16]),o[1]&1&&(l.graphIsOpened=n[31]),o[2]&32768&&(l.disabled=n[77]),e.$set(l)},i(n){i||(d(e.$$.fragment,n),i=!0)},o(n){_(e.$$.fragment,n),i=!1},d(n){L(e,n)}}}function wm(t){let e,i,n;function o(r){t[182](r)}let l={tooltipContent:t[50],$$slots:{default:[T3]},$$scope:{ctx:t}};return t[23].liveButton!==void 0&&(l.ref=t[23].liveButton),e=new Lt({props:l}),be.push(()=>Oe(e,"ref",o)),{c(){V(e.$$.fragment)},m(r,a){A(e,r,a),n=!0},p(r,a){let s={};a[1]&524288&&(s.tooltipContent=r[50]),a[0]&2097152|a[1]&524288|a[7]&1&&(s.$$scope={dirty:a,ctx:r}),!i&&a[0]&8388608&&(i=!0,s.ref=r[23].liveButton,Ne(()=>i=!1)),e.$set(s)},i(r){n||(d(e.$$.fragment,r),n=!0)},o(r){_(e.$$.fragment,r),n=!1},d(r){L(e,r)}}}function T3(t){let e,i;return e=new Rr({props:{isActiveLive:t[21],isMobile:!1,ariaLabel:t[50]}}),{c(){V(e.$$.fragment)},m(n,o){A(e,n,o),i=!0},p(n,o){let l={};o[0]&2097152&&(l.isActiveLive=n[21]),o[1]&524288&&(l.ariaLabel=n[50]),e.$set(l)},i(n){i||(d(e.$$.fragment,n),i=!0)},o(n){_(e.$$.fragment,n),i=!1},d(n){L(e,n)}}}function km(t){let e,i,n;function o(r){t[183](r)}let l={isMobile:!1,showDuration:t[55],position:t[4]?t[79]:t[80],duration:t[4]?t[81]:t[82]};return t[23].time!==void 0&&(l.ref=t[23].time),e=new Tr({props:l}),be.push(()=>Oe(e,"ref",o)),{c(){V(e.$$.fragment)},m(r,a){A(e,r,a),n=!0},p(r,a){let s={};a[1]&16777216&&(s.showDuration=r[55]),a[0]&16|a[2]&393216&&(s.position=r[4]?r[79]:r[80]),a[0]&16|a[2]&1572864&&(s.duration=r[4]?r[81]:r[82]),!i&&a[0]&8388608&&(i=!0,s.ref=r[23].time,Ne(()=>i=!1)),e.$set(s)},i(r){n||(d(e.$$.fragment,r),n=!0)},o(r){_(e.$$.fragment,r),n=!1},d(r){L(e,r)}}}function Sm(t){let e,i;return e=new Nr({props:{position:t[80],duration:t[82],timeCodes:t[101]}}),{c(){V(e.$$.fragment)},m(n,o){A(e,n,o),i=!0},p(n,o){let l={};o[2]&262144&&(l.position=n[80]),o[2]&1048576&&(l.duration=n[82]),e.$set(l)},i(n){i||(d(e.$$.fragment,n),i=!0)},o(n){_(e.$$.fragment,n),i=!1},d(n){L(e,n)}}}function P3(t){let e,i,n=t[20]&&Sm(t);return{c(){n&&n.c(),e=ct()},m(o,l){n&&n.m(o,l),S(o,e,l),i=!0},p(o,l){o[20]?n?(n.p(o,l),l[0]&1048576&&d(n,1)):(n=Sm(o),n.c(),d(n,1),n.m(e.parentNode,e)):n&&(me(),_(n,1,1,()=>{n=null}),pe())},i(o){i||(d(n),i=!0)},o(o){_(n),i=!1},d(o){o&&k(e),n&&n.d(o)}}}function I3(t){let e,i;return e=new Ur({props:{iconUrl:t[210],ariaLabel:t[211]??t[214],testId:t[212],onClick:t[213]}}),{c(){V(e.$$.fragment)},m(n,o){A(e,n,o),i=!0},p(n,o){let l={};o[0]&268435456&&(l.iconUrl=n[210]),o[0]&268435456&&(l.ariaLabel=n[211]??n[214]),o[0]&268435456&&(l.testId=n[212]),o[0]&268435456&&(l.onClick=n[213]),e.$set(l)},i(n){i||(d(e.$$.fragment,n),i=!0)},o(n){_(e.$$.fragment,n),i=!1},d(n){L(e,n)}}}function Cm(t){let e,i;return e=new Lt({props:{tooltipContent:t[214],width:40,$$slots:{default:[I3]},$$scope:{ctx:t}}}),{c(){V(e.$$.fragment)},m(n,o){A(e,n,o),i=!0},p(n,o){let l={};o[0]&268435456&&(l.tooltipContent=n[214]),o[0]&268435456|o[7]&1&&(l.$$scope={dirty:o,ctx:n}),e.$set(l)},i(n){i||(d(e.$$.fragment,n),i=!0)},o(n){_(e.$$.fragment,n),i=!1},d(n){L(e,n)}}}function Tm(t){let e,i,n;function o(r){t[186](r)}let l={disabled:!t[6],tooltipContent:t[51],disabledTooltipContent:"",$$slots:{default:[E3]},$$scope:{ctx:t}};return t[23].vkLogo!==void 0&&(l.ref=t[23].vkLogo),e=new Lt({props:l}),be.push(()=>Oe(e,"ref",o)),{c(){V(e.$$.fragment)},m(r,a){A(e,r,a),n=!0},p(r,a){let s={};a[0]&64&&(s.disabled=!r[6]),a[1]&1048576&&(s.tooltipContent=r[51]),a[0]&192|a[7]&1&&(s.$$scope={dirty:a,ctx:r}),!i&&a[0]&8388608&&(i=!0,s.ref=r[23].vkLogo,Ne(()=>i=!1)),e.$set(s)},i(r){n||(d(e.$$.fragment,r),n=!0)},o(r){_(e.$$.fragment,r),n=!1},d(r){L(e,r)}}}function E3(t){let e,i;return e=new Mr({props:{click:t[86],targetUrl:t[7],logoClickable:t[6]}}),{c(){V(e.$$.fragment)},m(n,o){A(e,n,o),i=!0},p(n,o){let l={};o[0]&128&&(l.targetUrl=n[7]),o[0]&64&&(l.logoClickable=n[6]),e.$set(l)},i(n){i||(d(e.$$.fragment,n),i=!0)},o(n){_(e.$$.fragment,n),i=!1},d(n){L(e,n)}}}function A3(t){let e,i;return e=new N1({props:{click:t[127]}}),{c(){V(e.$$.fragment)},m(n,o){A(e,n,o),i=!0},p:Ce,i(n){i||(d(e.$$.fragment,n),i=!0)},o(n){_(e.$$.fragment,n),i=!1},d(n){L(e,n)}}}function Pm(t){let e,i,n;function o(r){t[188](r)}let l={tooltipContent:t[52],$$slots:{default:[L3]},$$scope:{ctx:t}};return t[23].subtitles!==void 0&&(l.ref=t[23].subtitles),e=new Lt({props:l}),be.push(()=>Oe(e,"ref",o)),{c(){V(e.$$.fragment)},m(r,a){A(e,r,a),n=!0},p(r,a){let s={};a[1]&2097152&&(s.tooltipContent=r[52]),a[0]&262144|a[7]&1&&(s.$$scope={dirty:a,ctx:r}),!i&&a[0]&8388608&&(i=!0,s.ref=r[23].subtitles,Ne(()=>i=!1)),e.$set(s)},i(r){n||(d(e.$$.fragment,r),n=!0)},o(r){_(e.$$.fragment,r),n=!1},d(r){L(e,r)}}}function L3(t){let e,i;return e=new k1({props:{isSubtitlesEnabled:t[18],click:t[87]}}),{c(){V(e.$$.fragment)},m(n,o){A(e,n,o),i=!0},p(n,o){let l={};o[0]&262144&&(l.isSubtitlesEnabled=n[18]),e.$set(l)},i(n){i||(d(e.$$.fragment,n),i=!0)},o(n){_(e.$$.fragment,n),i=!1},d(n){L(e,n)}}}function Im(t){let e,i,n,o;function l(a){t[189](a)}let r={supportLink:t[10],playerControlsHeight:t[46]?.clientHeight,returnFocus:t[14]};return t[24]!==void 0&&(r.ref=t[24]),i=new Cr({props:r}),be.push(()=>Oe(i,"ref",l)),{c(){e=T("div"),V(i.$$.fragment),c(e,"class","settings-menu svelte-ips4nw")},m(a,s){S(a,e,s),A(i,e,null),o=!0},p(a,s){let u={};s[0]&1024&&(u.supportLink=a[10]),s[1]&32768&&(u.playerControlsHeight=a[46]?.clientHeight),s[0]&16384&&(u.returnFocus=a[14]),!n&&s[0]&16777216&&(n=!0,u.ref=a[24],Ne(()=>n=!1)),i.$set(u)},i(a){o||(d(i.$$.fragment,a),o=!0)},o(a){_(i.$$.fragment,a),o=!1},d(a){a&&k(e),L(i)}}}function Em(t){let e,i,n;function o(r){t[191](r)}let l={tooltipContent:t[27]?void 0:N("tooltip_settings_off"),$$slots:{default:[M3]},$$scope:{ctx:t}};return t[23].settings!==void 0&&(l.ref=t[23].settings),e=new Lt({props:l}),be.push(()=>Oe(e,"ref",o)),{c(){V(e.$$.fragment)},m(r,a){A(e,r,a),n=!0},p(r,a){let s={};a[0]&134217728&&(s.tooltipContent=r[27]?void 0:N("tooltip_settings_off")),a[0]&33554432|a[7]&1&&(s.$$scope={dirty:a,ctx:r}),!i&&a[0]&8388608&&(i=!0,s.ref=r[23].settings,Ne(()=>i=!1)),e.$set(s)},i(r){n||(d(e.$$.fragment,r),n=!0)},o(r){_(e.$$.fragment,r),n=!1},d(r){L(e,r)}}}function M3(t){let e,i,n;function o(r){t[190](r)}let l={};return t[25]!==void 0&&(l.ref=t[25]),e=new Ml({props:l}),be.push(()=>Oe(e,"ref",o)),{c(){V(e.$$.fragment)},m(r,a){A(e,r,a),n=!0},p(r,a){let s={};!i&&a[0]&33554432&&(i=!0,s.ref=r[25],Ne(()=>i=!1)),e.$set(s)},i(r){n||(d(e.$$.fragment,r),n=!0)},o(r){_(e.$$.fragment,r),n=!1},d(r){L(e,r)}}}function V3(t){let e,i,n;function o(r){t[192](r)}let l={className:t[41]?"":"out-of-view",tooltipContent:t[49],$$slots:{default:[R3]},$$scope:{ctx:t}};return t[23].context!==void 0&&(l.ref=t[23].context),e=new Lt({props:l}),be.push(()=>Oe(e,"ref",o)),{c(){V(e.$$.fragment)},m(r,a){A(e,r,a),n=!0},p(r,a){let s={};a[1]&1024&&(s.className=r[41]?"":"out-of-view"),a[1]&262144&&(s.tooltipContent=r[49]),a[1]&262144|a[7]&1&&(s.$$scope={dirty:a,ctx:r}),!i&&a[0]&8388608&&(i=!0,s.ref=r[23].context,Ne(()=>i=!1)),e.$set(s)},i(r){n||(d(e.$$.fragment,r),n=!0)},o(r){_(e.$$.fragment,r),n=!1},d(r){L(e,r)}}}function R3(t){let e,i;return e=new pm({props:{ariaLabel:t[49]}}),{c(){V(e.$$.fragment)},m(n,o){A(e,n,o),i=!0},p(n,o){let l={};o[1]&262144&&(l.ariaLabel=n[49]),e.$set(l)},i(n){i||(d(e.$$.fragment,n),i=!0)},o(n){_(e.$$.fragment,n),i=!1},d(n){L(e,n)}}}function Am(t){let e,i,n;function o(r){t[193](r)}let l={tooltipContent:t[53],$$slots:{default:[B3]},$$scope:{ctx:t}};return t[23].fullscreen!==void 0&&(l.ref=t[23].fullscreen),e=new Lt({props:l}),be.push(()=>Oe(e,"ref",o)),{c(){V(e.$$.fragment)},m(r,a){A(e,r,a),n=!0},p(r,a){let s={};a[1]&4194304&&(s.tooltipContent=r[53]),a[0]&1073750016|a[7]&1&&(s.$$scope={dirty:a,ctx:r}),!i&&a[0]&8388608&&(i=!0,s.ref=r[23].fullscreen,Ne(()=>i=!1)),e.$set(s)},i(r){n||(d(e.$$.fragment,r),n=!0)},o(r){_(e.$$.fragment,r),n=!1},d(r){L(e,r)}}}function B3(t){let e,i;return e=new Ar({props:{click:t[13],isFullscreen:t[30]}}),{c(){V(e.$$.fragment)},m(n,o){A(e,n,o),i=!0},p(n,o){let l={};o[0]&8192&&(l.click=n[13]),o[0]&1073741824&&(l.isFullscreen=n[30]),e.$set(l)},i(n){i||(d(e.$$.fragment,n),i=!0)},o(n){_(e.$$.fragment,n),i=!1},d(n){L(e,n)}}}function Lm(t){let e,i,n;function o(r){t[194](r)}let l={tooltipContent:t[54],$$slots:{default:[q3]},$$scope:{ctx:t}};return t[23].chromecast!==void 0&&(l.ref=t[23].chromecast),e=new Lt({props:l}),be.push(()=>Oe(e,"ref",o)),{c(){V(e.$$.fragment)},m(r,a){A(e,r,a),n=!0},p(r,a){let s={};a[1]&8388608&&(s.tooltipContent=r[54]),a[0]&536870912|a[7]&1&&(s.$$scope={dirty:a,ctx:r}),!i&&a[0]&8388608&&(i=!0,s.ref=r[23].chromecast,Ne(()=>i=!1)),e.$set(s)},i(r){n||(d(e.$$.fragment,r),n=!0)},o(r){_(e.$$.fragment,r),n=!1},d(r){L(e,r)}}}function q3(t){let e,i;return e=new Vr({props:{isMobile:!1,state:t[29],click:t[126]}}),{c(){V(e.$$.fragment)},m(n,o){A(e,n,o),i=!0},p(n,o){let l={};o[0]&536870912&&(l.state=n[29]),e.$set(l)},i(n){i||(d(e.$$.fragment,n),i=!0)},o(n){_(e.$$.fragment,n),i=!1},d(n){L(e,n)}}}function D3(t){let e,i,n;function o(r){t[197](r)}let l={};return t[23].interactiveTimeIndicator!==void 0&&(l.ref=t[23].interactiveTimeIndicator),e=new Jr({props:l}),be.push(()=>Oe(e,"ref",o)),{c(){V(e.$$.fragment)},m(r,a){A(e,r,a),n=!0},p(r,a){let s={};!i&&a[0]&8388608&&(i=!0,s.ref=r[23].interactiveTimeIndicator,Ne(()=>i=!1)),e.$set(s)},i(r){n||(d(e.$$.fragment,r),n=!0)},o(r){_(e.$$.fragment,r),n=!1},d(r){L(e,r)}}}function N3(t){let e,i,n,o,l,r,a,s,u,f,p,h,w,g,C,b,E,v,y,P,W,B,O,ne,ge,G,X,ae,j,z,Q;function $(fe){t[173](fe)}let K={isHidden:!t[45],isAds:t[4],canRewindLive:t[5],isRewindableLive:t[32]};t[23].timeline!==void 0&&(K.ref=t[23].timeline),i=new Dr({props:K}),be.push(()=>Oe(i,"ref",$));let Y=t[38]&&gm(t),ie=t[35]&&bm(t),re=t[36]&&vm(t),Ve=t[37]&&ym(t),Xe=t[117]&&b3(t),Se=!t[4]&&t[33]&&wm(t),Me=t[19]&&km(t);function Ke(fe){t[184](fe)}let $e={className:"w-max",disabled:!t[20],tooltipContent:N("tooltip_episodes"),$$slots:{default:[P3]},$$scope:{ctx:t}};t[23].episodes!==void 0&&($e.ref=t[23].episodes),g=new Lt({props:$e}),be.push(()=>Oe(g,"ref",Ke));let ce=Pt(t[28]),he=[];for(let fe=0;fe<ce.length;fe+=1)he[fe]=Cm(hm(t,ce,fe));let at=fe=>_(he[fe],1,1,()=>{he[fe]=null}),ke=t[43]&&!t[4]&&Tm(t);function Fe(fe){t[187](fe)}let ft={$$slots:{default:[A3]},$$scope:{ctx:t}};t[23].volume!==void 0&&(ft.ref=t[23].volume),W=new Lt({props:ft}),be.push(()=>Oe(W,"ref",Fe));let Qe=t[40]&&Pm(t),je=!t[83]&&!t[4]&&Im(t),Ze=t[42]&&!t[4]&&Em(t),xe=t[84].features.contextMenuButton&&V3(t),x=t[44]&&Am(t),De=t[39]&&Lm(t),ze=t[122]&&D3(t);return{c(){e=T("div"),V(i.$$.fragment),o=M(),l=T("div"),r=T("div"),Y&&Y.c(),a=M(),ie&&ie.c(),s=M(),re&&re.c(),u=M(),Ve&&Ve.c(),f=M(),Xe&&Xe.c(),p=M(),Se&&Se.c(),h=M(),Me&&Me.c(),w=M(),V(g.$$.fragment),E=M(),v=T("div");for(let fe=0;fe<he.length;fe+=1)he[fe].c();y=M(),ke&&ke.c(),P=M(),V(W.$$.fragment),O=M(),Qe&&Qe.c(),ne=M(),je&&je.c(),ge=M(),Ze&&Ze.c(),G=M(),xe&&xe.c(),X=M(),x&&x.c(),ae=M(),De&&De.c(),j=M(),ze&&ze.c(),z=ct(),c(r,"class","controls-left svelte-ips4nw"),Wn(()=>t[185].call(r)),c(v,"class","controls-right svelte-ips4nw"),c(l,"class","controls svelte-ips4nw"),c(e,"class","wrapper-bottom svelte-ips4nw"),q(e,"hidden",t[1]),q(e,"controls-hidden",!t[3]),q(e,"no-smooth",t[2])},m(fe,se){S(fe,e,se),A(i,e,null),m(e,o),m(e,l),m(l,r),Y&&Y.m(r,null),m(r,a),ie&&ie.m(r,null),m(r,s),re&&re.m(r,null),m(r,u),Ve&&Ve.m(r,null),m(r,f),Xe&&Xe.m(r,null),m(r,p),Se&&Se.m(r,null),m(r,h),Me&&Me.m(r,null),m(r,w),A(g,r,null),b=Xo(r,t[185].bind(r)),m(l,E),m(l,v);for(let nt=0;nt<he.length;nt+=1)he[nt]&&he[nt].m(v,null);m(v,y),ke&&ke.m(v,null),m(v,P),A(W,v,null),m(v,O),Qe&&Qe.m(v,null),m(v,ne),je&&je.m(v,null),m(v,ge),Ze&&Ze.m(v,null),m(v,G),xe&&xe.m(v,null),m(v,X),x&&x.m(v,null),m(v,ae),De&&De.m(v,null),t[195](l),t[196](e),S(fe,j,se),ze&&ze.m(fe,se),S(fe,z,se),Q=!0},p(fe,se){let nt={};se[1]&16384&&(nt.isHidden=!fe[45]),se[0]&16&&(nt.isAds=fe[4]),se[0]&32&&(nt.canRewindLive=fe[5]),se[1]&2&&(nt.isRewindableLive=fe[32]),!n&&se[0]&8388608&&(n=!0,nt.ref=fe[23].timeline,Ne(()=>n=!1)),i.$set(nt),fe[38]?Y?(Y.p(fe,se),se[1]&128&&d(Y,1)):(Y=gm(fe),Y.c(),d(Y,1),Y.m(r,a)):Y&&(me(),_(Y,1,1,()=>{Y=null}),pe()),fe[35]?ie?(ie.p(fe,se),se[1]&16&&d(ie,1)):(ie=bm(fe),ie.c(),d(ie,1),ie.m(r,s)):ie&&(me(),_(ie,1,1,()=>{ie=null}),pe()),fe[36]?re?(re.p(fe,se),se[1]&32&&d(re,1)):(re=vm(fe),re.c(),d(re,1),re.m(r,u)):re&&(me(),_(re,1,1,()=>{re=null}),pe()),fe[37]?Ve?(Ve.p(fe,se),se[1]&64&&d(Ve,1)):(Ve=ym(fe),Ve.c(),d(Ve,1),Ve.m(r,f)):Ve&&(me(),_(Ve,1,1,()=>{Ve=null}),pe()),fe[117]&&Xe.p(fe,se),!fe[4]&&fe[33]?Se?(Se.p(fe,se),se[0]&16|se[1]&4&&d(Se,1)):(Se=wm(fe),Se.c(),d(Se,1),Se.m(r,h)):Se&&(me(),_(Se,1,1,()=>{Se=null}),pe()),fe[19]?Me?(Me.p(fe,se),se[0]&524288&&d(Me,1)):(Me=km(fe),Me.c(),d(Me,1),Me.m(r,w)):Me&&(me(),_(Me,1,1,()=>{Me=null}),pe());let de={};if(se[0]&1048576&&(de.disabled=!fe[20]),se[0]&1048576|se[2]&1310720|se[7]&1&&(de.$$scope={dirty:se,ctx:fe}),!C&&se[0]&8388608&&(C=!0,de.ref=fe[23].episodes,Ne(()=>C=!1)),g.$set(de),se[0]&268435456){ce=Pt(fe[28]);let rt;for(rt=0;rt<ce.length;rt+=1){let dt=hm(fe,ce,rt);he[rt]?(he[rt].p(dt,se),d(he[rt],1)):(he[rt]=Cm(dt),he[rt].c(),d(he[rt],1),he[rt].m(v,y))}for(me(),rt=ce.length;rt<he.length;rt+=1)at(rt);pe()}fe[43]&&!fe[4]?ke?(ke.p(fe,se),se[0]&16|se[1]&4096&&d(ke,1)):(ke=Tm(fe),ke.c(),d(ke,1),ke.m(v,P)):ke&&(me(),_(ke,1,1,()=>{ke=null}),pe());let lt={};se[7]&1&&(lt.$$scope={dirty:se,ctx:fe}),!B&&se[0]&8388608&&(B=!0,lt.ref=fe[23].volume,Ne(()=>B=!1)),W.$set(lt),fe[40]?Qe?(Qe.p(fe,se),se[1]&512&&d(Qe,1)):(Qe=Pm(fe),Qe.c(),d(Qe,1),Qe.m(v,ne)):Qe&&(me(),_(Qe,1,1,()=>{Qe=null}),pe()),!fe[83]&&!fe[4]?je?(je.p(fe,se),se[0]&16|se[2]&2097152&&d(je,1)):(je=Im(fe),je.c(),d(je,1),je.m(v,ge)):je&&(me(),_(je,1,1,()=>{je=null}),pe()),fe[42]&&!fe[4]?Ze?(Ze.p(fe,se),se[0]&16|se[1]&2048&&d(Ze,1)):(Ze=Em(fe),Ze.c(),d(Ze,1),Ze.m(v,G)):Ze&&(me(),_(Ze,1,1,()=>{Ze=null}),pe()),fe[84].features.contextMenuButton&&xe.p(fe,se),fe[44]?x?(x.p(fe,se),se[1]&8192&&d(x,1)):(x=Am(fe),x.c(),d(x,1),x.m(v,ae)):x&&(me(),_(x,1,1,()=>{x=null}),pe()),fe[39]?De?(De.p(fe,se),se[1]&256&&d(De,1)):(De=Lm(fe),De.c(),d(De,1),De.m(v,null)):De&&(me(),_(De,1,1,()=>{De=null}),pe()),(!Q||se[0]&2)&&q(e,"hidden",fe[1]),(!Q||se[0]&8)&&q(e,"controls-hidden",!fe[3]),(!Q||se[0]&4)&&q(e,"no-smooth",fe[2]),fe[122]&&ze.p(fe,se)},i(fe){if(!Q){d(i.$$.fragment,fe),d(Y),d(ie),d(re),d(Ve),d(Xe),d(Se),d(Me),d(g.$$.fragment,fe);for(let se=0;se<ce.length;se+=1)d(he[se]);d(ke),d(W.$$.fragment,fe),d(Qe),d(je),d(Ze),d(xe),d(x),d(De),d(ze),Q=!0}},o(fe){_(i.$$.fragment,fe),_(Y),_(ie),_(re),_(Ve),_(Xe),_(Se),_(Me),_(g.$$.fragment,fe),he=he.filter(Boolean);for(let se=0;se<he.length;se+=1)_(he[se]);_(ke),_(W.$$.fragment,fe),_(Qe),_(je),_(Ze),_(xe),_(x),_(De),_(ze),Q=!1},d(fe){fe&&(k(e),k(j),k(z)),L(i),Y&&Y.d(),ie&&ie.d(),re&&re.d(),Ve&&Ve.d(),Xe&&Xe.d(),Se&&Se.d(),Me&&Me.d(),L(g),b(),Ei(he,fe),ke&&ke.d(),L(W),Qe&&Qe.d(),je&&je.d(),Ze&&Ze.d(),xe&&xe.d(),x&&x.d(),De&&De.d(),t[195](null),t[196](null),ze&&ze.d(fe)}}}function O3(t,e,i){let n,o,l,r,a,s,u,f,p,h,w,g,C,b,E,v,y,P,W,B,O,ne,ge,G,X,ae,j,z,Q,$,K,Y,ie=Ce,re=()=>(ie(),ie=Ht(ge,J=>i(144,Y=J)),ge),Ve,Xe=Ce,Se=()=>(Xe(),Xe=Ht(ne,J=>i(145,Ve=J)),ne),Me,Ke=Ce,$e=()=>(Ke(),Ke=Ht(O,J=>i(146,Me=J)),O),ce,he=Ce,at=()=>(he(),he=Ht(B,J=>i(147,ce=J)),B),ke,Fe=Ce,ft=()=>(Fe(),Fe=Ht(W,J=>i(148,ke=J)),W),Qe,je=Ce,Ze=()=>(je(),je=Ht(P,J=>i(149,Qe=J)),P),xe,x=Ce,De=()=>(x(),x=Ht(y,J=>i(150,xe=J)),y),ze,fe=Ce,se=()=>(fe(),fe=Ht(v,J=>i(151,ze=J)),v),nt,de=Ce,lt=()=>(de(),de=Ht(E,J=>i(152,nt=J)),E),rt,dt=Ce,yt=()=>(dt(),dt=Ht(b,J=>i(153,rt=J)),b),Et,Ye=Ce,Kt=()=>(Ye(),Ye=Ht(C,J=>i(154,Et=J)),C),qt,kt=Ce,ui=()=>(kt(),kt=Ht(g,J=>i(155,qt=J)),g),st,wt=Ce,we=()=>(wt(),wt=Ht(w,J=>i(156,st=J)),w),gt,St=Ce,Xt=()=>(St(),St=Ht(h,J=>i(157,gt=J)),h),Ct,Wt=Ce,jt=()=>(Wt(),Wt=Ht(p,J=>i(158,Ct=J)),p),Dt,Fi=Ce,xi=()=>(Fi(),Fi=Ht(f,J=>i(159,Dt=J)),f),Jt,Ai=Ce,$i=()=>(Ai(),Ai=Ht(u,J=>i(160,Jt=J)),u),zi,en,Li,Mi,ci,fi,yi,wi,ni,ki,Hi,Nt,Si,Vi,Ui,di,Mt,Ki,tn,Ot,Wi,ji,Gt;t.$$.on_destroy.push(()=>ie()),t.$$.on_destroy.push(()=>Xe()),t.$$.on_destroy.push(()=>Ke()),t.$$.on_destroy.push(()=>he()),t.$$.on_destroy.push(()=>Fe()),t.$$.on_destroy.push(()=>je()),t.$$.on_destroy.push(()=>x()),t.$$.on_destroy.push(()=>fe()),t.$$.on_destroy.push(()=>de()),t.$$.on_destroy.push(()=>dt()),t.$$.on_destroy.push(()=>Ye()),t.$$.on_destroy.push(()=>kt()),t.$$.on_destroy.push(()=>wt()),t.$$.on_destroy.push(()=>St()),t.$$.on_destroy.push(()=>Wt()),t.$$.on_destroy.push(()=>Fi()),t.$$.on_destroy.push(()=>Ai());let{bottomHidden:Ci}=e,{bottomNoSmooth:mi}=e,{showControls:Ti}=e,{controlsElementRef:Qt=void 0}=e,{isAds:Ft=!1}=e,{canRewindLive:xt}=e,{logoClickable:Ri}=e,{logoHidden:oi}=e,{logoTargetUrl:li=""}=e,{showNextPrevButtons:$t}=e,{nextButtonActive:pi}=e,{prevButtonActive:Gi}=e,{isOneVideoPlaylist:an=!1}=e,{supportLink:Bi}=e,{customFullscreenSupported:ri=!0}=e,{playNextVideo:Yt}=e,{playPrevVideo:nn}=e,{repeatPlaylist:At}=e,{toggleFullscreen:Vt}=e,{returnFocus:on}=e,{seekToInteractive:_i}=e,{toggleGraph:ei}=e,{playPrevChapter:ln}=e,et=it(),Pi=qn(),ti=Bt(),He=et.actions.internal.toggleMuted,Qi=et.actions.internal.togglePlay,un=et.actions.internal.pause,cn=et.actions.internal.toggleSubtitle,Yi=et.callbacks?.onAudioDoesNotExistHint,qi=et.callbacks?.onAudioDisabledHint,rn=et.state.duration$;D(t,rn,J=>i(82,ji=J));let Di=et.state.positionWithScrubbing$;D(t,Di,J=>i(80,Ot=J));let Zt=et.state.playbackState$;D(t,Zt,J=>i(161,Li=J));let Zi=et.state.chromecastConnected$;D(t,Zi,J=>i(83,Gt=J));let hi=et.state.isAudioAvailable$;D(t,hi,J=>i(198,G=J));let hn=et.state.isAudioDisabled,fn=et.state.isEnded$;D(t,fn,J=>i(169,Vi=J));let dn=et.state.isLive$;D(t,dn,J=>i(33,wi=J));let yn=et.state.isActiveLive$;D(t,yn,J=>i(163,fi=J));let sn=et.state.isRewindableLive$;D(t,sn,J=>i(32,yi=J));let mn=et.ui.isPictureInPictureActive$;D(t,mn,J=>i(165,ki=J));let pn=et.ui.pictureInPictureType$;D(t,pn,J=>i(164,ni=J));let Xi=et.ui.settingsMenuVisible;D(t,Xi,J=>i(27,j=J));let gi=et.ui.settingsMenuOpenedByKeyboard;D(t,gi,J=>i(140,ae=J));let wn=et.ui.controls,Ji=et.actions.internal.getVideoEpisodes(),In=et.state.chromecastState$;D(t,In,J=>i(29,zi=J));let zt=et.state.availableSubtitlesList$;D(t,zt,J=>i(168,Si=J));let En=et.state.currentSubtitle$;D(t,En,J=>i(170,Ui=J));let An=wn.disabledControls$;D(t,An,J=>i(172,Mt=J));let kn=et.ui.contextMenu.visible$;D(t,kn,J=>i(162,Mi=J));let Ln=et.ui.contextMenu.showContextMenuBtn$;D(t,Ln,J=>i(166,Hi=J));let le=et.ui.contextMenu.openedByBtnKeyboard$;D(t,le,J=>i(167,Nt=J));let _t=et.ui.startedByKeyboard$;D(t,_t,J=>i(139,X=J));let Ni=et.ads.duration;D(t,Ni,J=>i(81,Wi=J));let _n=et.ads.position;D(t,_n,J=>i(79,tn=J));let Mn=et.ads.playbackState;D(t,Mn,J=>i(171,di=J));let Vn=et.ui.isFullscreen;D(t,Vn,J=>i(30,en=J));let te=et.ui.playerSize;D(t,te,J=>i(142,Q=J));let mt=et.ui.currentGridType$;D(t,mt,J=>i(143,$=J));let si=et.ui.additionalButtons$;D(t,si,J=>i(28,K=J));let Qn=et.actions.internal.getVideoElement,Fn=et.actions.internal.replayInteractive,ee=et.state.isInteractive,Yn=et.state.isInteractiveTime$;D(t,Yn,J=>i(141,z=J));let wl=et.state.showInteractiveGraph,kl=et.state.showSeekToInteractive,Sl=et.state.showPlayPrevChapter,Cl=et.state.showInteractiveTimeIndicator,Ko=et.state.graphIsOpened$;D(t,Ko,J=>i(31,ci=J));let vo=et.state.playPrevChapterDisabledTooltip,yo=Pi.seekToInteractiveDisabledTooltip$;D(t,yo,J=>i(78,Ki=J));let xn=()=>et.actions.internal.toggleChromecast(),oo,lo,Wo,jo,wo,Go,ko,Qo,So,ro,Z,Rt,Sn,Rn,Yo,Co,so,Zn,Zo,ao,Ul,Tl="",Tt=(J,ms)=>{if(!J){i(50,Tl=N("tooltip_live"));return}ms===Mu.PAUSED&&i(50,Tl=N("tooltip_play"))},I,oe,Pe,We,ut,Ue={},pt,bt,ai,zn,$n=d3(Zr,260,{leading:!1}),Hn,gn,uo;function ds(){po({isAudioDisabled:hn,audioDisabledHintCallback:qi,isAudioAvailable:G,audioIsNotExistHintCallback:Yi})&&He()}let Up=ee?Fn:an?Qi:At;function Kp(J){t.$$.not_equal(Ue.timeline,J)&&(Ue.timeline=J,i(23,Ue))}function Wp(J){t.$$.not_equal(Ue.prevButton,J)&&(Ue.prevButton=J,i(23,Ue))}function jp(J){t.$$.not_equal(Ue.replayButton,J)&&(Ue.replayButton=J,i(23,Ue))}function Gp(J){uo=J,i(26,uo)}function Qp(J){t.$$.not_equal(Ue.playButton,J)&&(Ue.playButton=J,i(23,Ue))}function Yp(J){t.$$.not_equal(Ue.nextButton,J)&&(Ue.nextButton=J,i(23,Ue))}function Zp(J){t.$$.not_equal(Ue.playPrevChapterButton,J)&&(Ue.playPrevChapterButton=J,i(23,Ue))}function Xp(J){t.$$.not_equal(Ue.seekToInteractiveButton,J)&&(Ue.seekToInteractiveButton=J,i(23,Ue))}function Jp(J){t.$$.not_equal(Ue.interactiveGraphButton,J)&&(Ue.interactiveGraphButton=J,i(23,Ue))}function xp(J){t.$$.not_equal(Ue.liveButton,J)&&(Ue.liveButton=J,i(23,Ue))}function $p(J){t.$$.not_equal(Ue.time,J)&&(Ue.time=J,i(23,Ue))}function e_(J){t.$$.not_equal(Ue.episodes,J)&&(Ue.episodes=J,i(23,Ue))}function t_(){ut=this.clientWidth,i(22,ut)}function i_(J){t.$$.not_equal(Ue.vkLogo,J)&&(Ue.vkLogo=J,i(23,Ue))}function n_(J){t.$$.not_equal(Ue.volume,J)&&(Ue.volume=J,i(23,Ue))}function o_(J){t.$$.not_equal(Ue.subtitles,J)&&(Ue.subtitles=J,i(23,Ue))}function l_(J){Hn=J,i(24,Hn)}function r_(J){gn=J,i(25,gn)}function s_(J){t.$$.not_equal(Ue.settings,J)&&(Ue.settings=J,i(23,Ue))}function a_(J){t.$$.not_equal(Ue.context,J)&&(Ue.context=J,i(23,Ue))}function u_(J){t.$$.not_equal(Ue.fullscreen,J)&&(Ue.fullscreen=J,i(23,Ue))}function c_(J){t.$$.not_equal(Ue.chromecast,J)&&(Ue.chromecast=J,i(23,Ue))}function f_(J){be[J?"unshift":"push"](()=>{so=J,i(46,so)})}function d_(J){be[J?"unshift":"push"](()=>{Qt=J,i(0,Qt)})}function m_(J){t.$$.not_equal(Ue.interactiveTimeIndicator,J)&&(Ue.interactiveTimeIndicator=J,i(23,Ue))}return t.$$set=J=>{"bottomHidden"in J&&i(1,Ci=J.bottomHidden),"bottomNoSmooth"in J&&i(2,mi=J.bottomNoSmooth),"showControls"in J&&i(3,Ti=J.showControls),"controlsElementRef"in J&&i(0,Qt=J.controlsElementRef),"isAds"in J&&i(4,Ft=J.isAds),"canRewindLive"in J&&i(5,xt=J.canRewindLive),"logoClickable"in J&&i(6,Ri=J.logoClickable),"logoHidden"in J&&i(129,oi=J.logoHidden),"logoTargetUrl"in J&&i(7,li=J.logoTargetUrl),"showNextPrevButtons"in J&&i(130,$t=J.showNextPrevButtons),"nextButtonActive"in J&&i(8,pi=J.nextButtonActive),"prevButtonActive"in J&&i(9,Gi=J.prevButtonActive),"isOneVideoPlaylist"in J&&i(131,an=J.isOneVideoPlaylist),"supportLink"in J&&i(10,Bi=J.supportLink),"customFullscreenSupported"in J&&i(132,ri=J.customFullscreenSupported),"playNextVideo"in J&&i(11,Yt=J.playNextVideo),"playPrevVideo"in J&&i(12,nn=J.playPrevVideo),"repeatPlaylist"in J&&i(133,At=J.repeatPlaylist),"toggleFullscreen"in J&&i(13,Vt=J.toggleFullscreen),"returnFocus"in J&&i(14,on=J.returnFocus),"seekToInteractive"in J&&i(15,_i=J.seekToInteractive),"toggleGraph"in J&&i(16,ei=J.toggleGraph),"playPrevChapter"in J&&i(17,ln=J.playPrevChapter)},t.$$.update=()=>{if(t.$$.dirty[5]&131072&&i(138,n=Mt.has("EPISODE_BUTTON")),t.$$.dirty[5]&131072&&i(77,o=Mt.has("GRAPH_BUTTON")),t.$$.dirty[5]&131072&&i(76,l=Mt.has("SEEK_TO_INTERACTIVE_BUTTON")),t.$$.dirty[5]&131072&&i(75,r=Mt.has("PLAY_BUTTON")),t.$$.dirty[5]&131072&&i(74,a=Mt.has("REPLAY_BUTTON")),t.$$.dirty[5]&131072&&i(73,s=Mt.has("PLAY_PREV_CHAPTER_BUTTON")),t.$$.dirty[0]&16|t.$$.dirty[5]&65600&&i(34,oo=Ft?di==="playing":Li===Mu.PLAYING),t.$$.dirty[5]&32768&&i(18,lo=Ui.value!=="off"),t.$$.dirty[0]&16|t.$$.dirty[5]&16384&&i(35,Wo=Vi&&!Ft||ee),t.$$.dirty[0]&16|t.$$.dirty[5]&16384&&i(36,jo=!Vi||ee||Ft),t.$$.dirty[4]&524288&&i(134,wo=Pn($,"m")),t.$$.dirty[0]&272|t.$$.dirty[4]&524352&&i(37,Go=$t&&Pn($,"m")&&!Ft&&pi),t.$$.dirty[0]&528|t.$$.dirty[4]&524352&&i(38,ko=$t&&Pn($,"m")&&!Ft&&Gi),t.$$.dirty[0]&536870912|t.$$.dirty[4]&524288|t.$$.dirty[5]&1536&&i(39,Qo=zi!==_m.NOT_AVAILABLE&&!(ki&&ni===1)&&Pn($,"m")&&!ee),t.$$.dirty[4]&524288|t.$$.dirty[5]&8192&&i(40,So=Si.length>0&&Pn($,"m")),t.$$.dirty[5]&6144&&i(41,ro=Nt||Hi),t.$$.dirty[4]&524288&&i(42,Z=Pn($,"s")),t.$$.dirty[4]&32&&i(43,Rt=!oi),t.$$.dirty[4]&524576|t.$$.dirty[5]&1536&&i(44,Sn=ti.features.fullscreen&&(oi||Pn($,"s"))&&!(ki&&ni===1)&&(ee?ri:!0)),t.$$.dirty[0]&16|t.$$.dirty[1]&4&&i(19,Rn=(!wi||Ft)&&!(ti.features.interactiveHideTime&&ee)),t.$$.dirty[4]&262144&&i(45,Yo=Q.width>100),t.$$.dirty[0]&16|t.$$.dirty[1]&4|t.$$.dirty[4]&17408&&i(20,Co=!Ft&&!wi&&!!Ji?.length&&wo&&!n),t.$$.dirty[1]&2|t.$$.dirty[5]&256&&i(21,Zn=!yi||fi),t.$$.dirty[5]&64&&i(47,Zo=Li===Mu.PLAYING?N("tooltip_pause"):N("tooltip_play")),t.$$.dirty[1]&1&&i(48,ao=ci?N("tooltip_interactive_graph_on"):N("tooltip_interactive_graph_off")),t.$$.dirty[5]&128&&i(49,Ul=Mi?N("aria_label_context_menu_close"):N("aria_label_context_menu_open")),t.$$.dirty[0]&2097152|t.$$.dirty[5]&64&&Tt(Zn,Li),t.$$.dirty[0]&262144&&i(52,oe=lo?N("tooltip_subtitles_on"):N("tooltip_subtitles_off")),t.$$.dirty[0]&1073741824&&i(53,Pe=en?N("tooltip_fullscreen_on"):N("tooltip_fullscreen_off")),t.$$.dirty[0]&536870912&&i(54,We=zi===_m.CONNECTED?N("tooltip_chromecast_on"):N("tooltip_chromecast_off")),t.$$.dirty[0]&268435456|t.$$.dirty[4]&2146435072|t.$$.dirty[5]&63&&i(135,pt={prevButton:Jt?Jt.right-Jt.left:0,replayButton:Dt?Dt.right-Dt.left:0,playButton:Ct?Ct.right-Ct.left:0,nextButton:gt?gt.right-gt.left:0,playPrevChapterButton:st?st.right-st.left:0,seekToInteractiveButton:qt?qt.right-qt.left:0,interactiveGraphButton:Et?Et.right-Et.left:0,liveButton:rt?rt.right-rt.left:0,time:nt?nt.right-nt.left:0,episodes:ze?ze.right-ze.left:0,vkLogo:xe?xe.right-xe.left:0,volume:Qe?Qe.right-Qe.left:0,subtitles:ke?ke.right-ke.left:0,settings:ce?ce.right-ce.left:0,context:Me?Me.right-Me.left:0,fullscreen:Ve?Ve.right-Ve.left:0,chromecast:Y?Y.right-Y.left:0,additionalButtons:K.length?K.reduce(J=>[...J,40],[]):[]}),t.$$.dirty[4]&6144&&(!bt||bt<pt.time)&&i(136,bt=pt.time),t.$$.dirty[0]&5767168|t.$$.dirty[4]&530432){let J=0;Co&&(Pn($,"xl")?J=pt.time:J=60);let ms=pt.prevButton+pt.playButton+pt.nextButton+pt.seekToInteractiveButton+pt.interactiveGraphButton+pt.liveButton+bt+J;i(137,ai=Rn&&ut>=ms)}t.$$.dirty[4]&532480&&i(55,zn=ai&&Pn($,"m")),t.$$.dirty[0]&8388616|t.$$.dirty[4]&393216&&$n(Qn(),wn,Ue,Ti),t.$$.dirty[0]&167772160&&al(gn,j,gi),t.$$.dirty[0]&150994944|t.$$.dirty[4]&65536&&No(Hn,j,ae),t.$$.dirty[0]&67108864|t.$$.dirty[4]&32768&&Xr(_t,X,uo)},i(51,I=ti.logoType==="vk_video"?N("tooltip_vk_video_logo"):N("tooltip_vk_logo")),$i(i(72,{prevButton:u,replayButton:f,playButton:p,nextButton:h,playPrevChapterButton:w,seekToInteractiveButton:g,interactiveGraphButton:C,liveButton:b,time:E,episodes:v,vkLogo:y,volume:P,subtitles:W,settings:B,context:O,fullscreen:ne,chromecast:ge}=wn,u,xi(i(71,f)),jt(i(70,p)),Xt(i(69,h)),we(i(68,w)),ui(i(67,g)),Kt(i(66,C)),yt(i(65,b)),lt(i(64,E)),se(i(63,v)),De(i(62,y)),Ze(i(61,P)),ft(i(60,W)),at(i(59,B)),$e(i(58,O)),Se(i(57,ne)),re(i(56,ge)))),[Qt,Ci,mi,Ti,Ft,xt,Ri,li,pi,Gi,Bi,Yt,nn,Vt,on,_i,ei,ln,lo,Rn,Co,Zn,ut,Ue,Hn,gn,uo,j,K,zi,en,ci,yi,wi,oo,Wo,jo,Go,ko,Qo,So,ro,Z,Rt,Sn,Yo,so,Zo,ao,Ul,Tl,I,oe,Pe,We,zn,ge,ne,O,B,W,P,y,v,E,b,C,g,w,h,p,f,u,s,a,r,l,o,Ki,tn,Ot,Wi,ji,Gt,ti,Qi,un,cn,rn,Di,Zt,Zi,hi,fn,dn,yn,sn,mn,pn,Xi,gi,Ji,In,zt,En,An,kn,Ln,le,_t,Ni,_n,Mn,Vn,te,mt,si,ee,Yn,wl,kl,Sl,Cl,Ko,vo,yo,xn,ds,Up,oi,$t,an,ri,At,wo,pt,bt,ai,n,X,ae,z,Q,$,Y,Ve,Me,ce,ke,Qe,xe,ze,nt,rt,Et,qt,st,gt,Ct,Dt,Jt,Li,Mi,fi,ni,ki,Hi,Nt,Si,Vi,Ui,di,Mt,Kp,Wp,jp,Gp,Qp,Yp,Zp,Xp,Jp,xp,$p,e_,t_,i_,n_,o_,l_,r_,s_,a_,u_,c_,f_,d_,m_]}var Vu=class extends H{constructor(e){super(),U(this,e,O3,N3,F,{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},m3,[-1,-1,-1,-1,-1,-1,-1,-1])}},Mm=Vu;import{ChromecastState as Nm,PlaybackState as Om}from"@vkontakte/videoplayer-core";function F3(t){let e,i,n,o,l,r=t[2].default,a=Ie(r,t,t[1],null),s=[{xmlns:"http://www.w3.org/2000/svg"},{width:"24"},{height:"24"},{"aria-hidden":"true"},{"data-testid":"muted-icon"},{role:"img"},t[0]],u={};for(let f=0;f<s.length;f+=1)u=ue(u,s[f]);return{c(){e=R("svg"),a&&a.c(),i=R("g"),n=R("path"),o=R("path"),c(n,"d","M0 0h24v24H0z"),c(o,"fill","#fff"),c(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"),c(i,"fill","none"),c(i,"fill-rule","evenodd"),ye(e,u)},m(f,p){S(f,e,p),a&&a.m(e,null),m(e,i),m(i,n),m(i,o),l=!0},p(f,[p]){a&&a.p&&(!l||p&2)&&Ae(a,r,f,f[1],l?Ee(r,f[1],p,null):Le(f[1]),null),ye(e,u=Be(s,[{xmlns:"http://www.w3.org/2000/svg"},{width:"24"},{height:"24"},{"aria-hidden":"true"},{"data-testid":"muted-icon"},{role:"img"},p&1&&f[0]]))},i(f){l||(d(a,f),l=!0)},o(f){_(a,f),l=!1},d(f){f&&k(e),a&&a.d(f)}}}function z3(t,e,i){let{$$slots:n={},$$scope:o}=e;return t.$$set=l=>{i(0,e=ue(ue({},e),ve(l))),"$$scope"in l&&i(1,o=l.$$scope)},e=ve(e),[e,o,n]}var Bu=class extends H{constructor(e){super(),U(this,e,z3,F3,F,{})}},Vm=Bu;import{noop as H3}from"@vkontakte/videoplayer-shared";function U3(t){Te(t,"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 Rm(t){let e;return{c(){e=T("span"),e.textContent=`${N("mobile_unmute")}`,c(e,"class","text svelte-6gmlbk")},m(i,n){S(i,e,n)},d(i){i&&k(e)}}}function K3(t){let e,i,n,o;var l=t[4];function r(s,u){return{}}l&&(i=bn(l,r(t)));let a=t[1]&&Rm(t);return{c(){e=T("div"),i&&V(i.$$.fragment),n=M(),a&&a.c(),c(e,"class","container svelte-6gmlbk"),c(e,"aria-hidden","true"),q(e,"expanded",t[1])},m(s,u){S(s,e,u),i&&A(i,e,null),m(e,n),a&&a.m(e,null),o=!0},p(s,u){if(u&16&&l!==(l=s[4])){if(i){me();let f=i;_(f.$$.fragment,1,0,()=>{L(f,1)}),pe()}l?(i=bn(l,r(s,u)),V(i.$$.fragment),d(i.$$.fragment,1),A(i,e,n)):i=null}s[1]?a||(a=Rm(s),a.c(),a.m(e,null)):a&&(a.d(1),a=null),(!o||u&2)&&q(e,"expanded",s[1])},i(s){o||(i&&d(i.$$.fragment,s),o=!0)},o(s){i&&_(i.$$.fragment,s),o=!1},d(s){s&&k(e),i&&L(i),a&&a.d()}}}function W3(t){let e,i,n;function o(r){t[6](r)}let l={testId:t[1]?"btn-mobile-unmuted":"btn-mobile-muted",click:t[2],ariaLabel:t[3],$$slots:{default:[K3]},$$scope:{ctx:t}};return t[0]!==void 0&&(l.ref=t[0]),e=new ht({props:l}),be.push(()=>Oe(e,"ref",o)),{c(){V(e.$$.fragment)},m(r,a){A(e,r,a),n=!0},p(r,[a]){let s={};a&2&&(s.testId=r[1]?"btn-mobile-unmuted":"btn-mobile-muted"),a&4&&(s.click=r[2]),a&8&&(s.ariaLabel=r[3]),a&146&&(s.$$scope={dirty:a,ctx:r}),!i&&a&1&&(i=!0,s.ref=r[0],Ne(()=>i=!1)),e.$set(s)},i(r){n||(d(e.$$.fragment,r),n=!0)},o(r){_(e.$$.fragment,r),n=!1},d(r){L(e,r)}}}function j3(t,e,i){let{muted:n=!1}=e,{expanded:o=!1}=e,{click:l=H3}=e,{ref:r=void 0}=e,a,s;function u(f){r=f,i(0,r)}return t.$$set=f=>{"muted"in f&&i(5,n=f.muted),"expanded"in f&&i(1,o=f.expanded),"click"in f&&i(2,l=f.click),"ref"in f&&i(0,r=f.ref)},t.$$.update=()=>{t.$$.dirty&32&&i(3,a=n?N("tooltip_volume"):N("tooltip_volume_muted")),t.$$.dirty&2&&i(4,s=o?Ho:Vm)},[r,o,l,a,s,n,u]}var qu=class extends H{constructor(e){super(),U(this,e,j3,W3,F,{muted:5,expanded:1,click:2,ref:0},U3)}},Du=qu;function G3(t){let e,i,n,o,l,r=t[2].default,a=Ie(r,t,t[1],null),s=[{xmlns:"http://www.w3.org/2000/svg"},{width:"24"},{height:"24"},{fill:"none"},{role:"img"},t[0]],u={};for(let f=0;f<s.length;f+=1)u=ue(u,s[f]);return{c(){e=R("svg"),a&&a.c(),i=R("path"),n=R("path"),o=R("path"),c(i,"fill","currentColor"),c(i,"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"),c(i,"clip-rule","evenodd"),c(n,"fill","currentColor"),c(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"),c(n,"class","hidden-not-active"),c(o,"fill","currentColor"),c(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"),c(o,"class","hidden-active"),ye(e,u)},m(f,p){S(f,e,p),a&&a.m(e,null),m(e,i),m(e,n),m(e,o),l=!0},p(f,[p]){a&&a.p&&(!l||p&2)&&Ae(a,r,f,f[1],l?Ee(r,f[1],p,null):Le(f[1]),null),ye(e,u=Be(s,[{xmlns:"http://www.w3.org/2000/svg"},{width:"24"},{height:"24"},{fill:"none"},{role:"img"},p&1&&f[0]]))},i(f){l||(d(a,f),l=!0)},o(f){_(a,f),l=!1},d(f){f&&k(e),a&&a.d(f)}}}function Q3(t,e,i){let{$$slots:n={},$$scope:o}=e;return t.$$set=l=>{i(0,e=ue(ue({},e),ve(l))),"$$scope"in l&&i(1,o=l.$$scope)},e=ve(e),[e,o,n]}var Nu=class extends H{constructor(e){super(),U(this,e,Q3,G3,F,{})}},Bm=Nu;function Y3(t){Te(t,"svelte-tmam00",'svg[data-testid="pip-icon--active"] .hidden-active,svg[data-testid="pip-icon"] .hidden-not-active{visibility:hidden;opacity:0}')}function Z3(t){let e,i;return e=new Bm({props:{style:t[1],"data-testid":t[0]?"pip-icon--active":"pip-icon"}}),{c(){V(e.$$.fragment)},m(n,o){A(e,n,o),i=!0},p(n,[o]){let l={};o&2&&(l.style=n[1]),o&1&&(l["data-testid"]=n[0]?"pip-icon--active":"pip-icon"),e.$set(l)},i(n){i||(d(e.$$.fragment,n),i=!0)},o(n){_(e.$$.fragment,n),i=!1},d(n){L(e,n)}}}function X3(t,e,i){let n,{isActive:o=!1}=e;return t.$$set=l=>{"isActive"in l&&i(0,o=l.isActive)},t.$$.update=()=>{t.$$.dirty&1&&i(1,n=o?"color: #2688EB;":"color: #fff;")},[o,n]}var Ou=class extends H{constructor(e){super(),U(this,e,X3,Z3,F,{isActive:0},Y3)}},qm=Ou;import{noop as J3}from"@vkontakte/videoplayer-shared";function x3(t){let e,i;return e=new qm({props:{isActive:t[1]}}),{c(){V(e.$$.fragment)},m(n,o){A(e,n,o),i=!0},p(n,o){let l={};o&2&&(l.isActive=n[1]),e.$set(l)},i(n){i||(d(e.$$.fragment,n),i=!0)},o(n){_(e.$$.fragment,n),i=!1},d(n){L(e,n)}}}function $3(t){let e,i,n;function o(r){t[3](r)}let l={testId:"btn-pip",ariaLabel:N("menu_pip"),click:t[2],$$slots:{default:[x3]},$$scope:{ctx:t}};return t[0]!==void 0&&(l.ref=t[0]),e=new ht({props:l}),be.push(()=>Oe(e,"ref",o)),{c(){V(e.$$.fragment)},m(r,a){A(e,r,a),n=!0},p(r,[a]){let s={};a&4&&(s.click=r[2]),a&18&&(s.$$scope={dirty:a,ctx:r}),!i&&a&1&&(i=!0,s.ref=r[0],Ne(()=>i=!1)),e.$set(s)},i(r){n||(d(e.$$.fragment,r),n=!0)},o(r){_(e.$$.fragment,r),n=!1},d(r){L(e,r)}}}function e5(t,e,i){let{ref:n=void 0}=e,{isPictureInPictureActive:o=!1}=e,{click:l=J3}=e;function r(a){n=a,i(0,n)}return t.$$set=a=>{"ref"in a&&i(0,n=a.ref),"isPictureInPictureActive"in a&&i(1,o=a.isPictureInPictureActive),"click"in a&&i(2,l=a.click)},[n,o,l,r]}var Fu=class extends H{constructor(e){super(),U(this,e,e5,$3,F,{ref:0,isPictureInPictureActive:1,click:2})}},Dm=Fu;import{throttleFn as t5}from"@vkontakte/videoplayer-shared";function i5(t){Te(t,"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 Fm(t,e,i){let n=t.slice();return n[170]=e[i].iconUrl,n[171]=e[i].ariaLabel,n[172]=e[i].testId,n[173]=e[i].onClick,n[174]=e[i].tooltip,n}function zm(t){let e,i,n,o,l,r,a,s,u,f,p,h,w,g,C,b,E,v=(!t[51]||t[53])&&Hm(t),y=Pt(t[56]),P=[];for(let Q=0;Q<y.length;Q+=1)P[Q]=Um(Fm(t,y,Q));let W=Q=>_(P[Q],1,1,()=>{P[Q]=null}),B=t[36]&&Km(t),O=t[37]&&Wm(t),ne=t[57]&&jm(t),ge=t[39]&&Gm(t),G=t[8]&&Qm(t),X=t[34]&&Ym(t),ae=t[33]&&Zm(t),j=t[8]&&Xm(t),z=t[96]&&!t[29]&&Jm(t);return{c(){e=T("div"),i=M(),n=T("div"),v&&v.c(),o=M(),l=T("div");for(let Q=0;Q<P.length;Q+=1)P[Q].c();r=M(),B&&B.c(),a=M(),O&&O.c(),s=M(),ne&&ne.c(),u=M(),ge&&ge.c(),f=M(),p=T("div"),G&&G.c(),h=M(),X&&X.c(),w=M(),ae&&ae.c(),g=M(),j&&j.c(),C=M(),z&&z.c(),b=ct(),c(e,"class","overlay-mobile svelte-rwqnhz"),q(e,"hidden",!t[42]),c(n,"class","wrapper-top-left svelte-rwqnhz"),q(n,"hidden",!t[3]),q(n,"fullscreen",t[52]),c(l,"class","wrapper-top-right svelte-rwqnhz"),q(l,"hidden",!t[3]&&!t[27]),q(l,"fullscreen",t[52]),c(p,"class","wrapper-middle svelte-rwqnhz"),q(p,"hidden",!t[3]||t[29])},m(Q,$){S(Q,e,$),S(Q,i,$),S(Q,n,$),v&&v.m(n,null),S(Q,o,$),S(Q,l,$);for(let K=0;K<P.length;K+=1)P[K]&&P[K].m(l,null);m(l,r),B&&B.m(l,null),m(l,a),O&&O.m(l,null),m(l,s),ne&&ne.m(l,null),m(l,u),ge&&ge.m(l,null),S(Q,f,$),S(Q,p,$),G&&G.m(p,null),m(p,h),X&&X.m(p,null),m(p,w),ae&&ae.m(p,null),m(p,g),j&&j.m(p,null),S(Q,C,$),z&&z.m(Q,$),S(Q,b,$),E=!0},p(Q,$){if((!E||$[1]&2048)&&q(e,"hidden",!Q[42]),!Q[51]||Q[53]?v?(v.p(Q,$),$[1]&5242880&&d(v,1)):(v=Hm(Q),v.c(),d(v,1),v.m(n,null)):v&&(me(),_(v,1,1,()=>{v=null}),pe()),(!E||$[0]&8)&&q(n,"hidden",!Q[3]),(!E||$[1]&2097152)&&q(n,"fullscreen",Q[52]),$[1]&33554432){y=Pt(Q[56]);let K;for(K=0;K<y.length;K+=1){let Y=Fm(Q,y,K);P[K]?(P[K].p(Y,$),d(P[K],1)):(P[K]=Um(Y),P[K].c(),d(P[K],1),P[K].m(l,r))}for(me(),K=y.length;K<P.length;K+=1)W(K);pe()}Q[36]?B?(B.p(Q,$),$[1]&32&&d(B,1)):(B=Km(Q),B.c(),d(B,1),B.m(l,a)):B&&(me(),_(B,1,1,()=>{B=null}),pe()),Q[37]?O?(O.p(Q,$),$[1]&64&&d(O,1)):(O=Wm(Q),O.c(),d(O,1),O.m(l,s)):O&&(me(),_(O,1,1,()=>{O=null}),pe()),Q[57]?ne?(ne.p(Q,$),$[1]&67108864&&d(ne,1)):(ne=jm(Q),ne.c(),d(ne,1),ne.m(l,u)):ne&&(me(),_(ne,1,1,()=>{ne=null}),pe()),Q[39]?ge?(ge.p(Q,$),$[1]&256&&d(ge,1)):(ge=Gm(Q),ge.c(),d(ge,1),ge.m(l,null)):ge&&(me(),_(ge,1,1,()=>{ge=null}),pe()),(!E||$[0]&134217736)&&q(l,"hidden",!Q[3]&&!Q[27]),(!E||$[1]&2097152)&&q(l,"fullscreen",Q[52]),Q[8]?G?(G.p(Q,$),$[0]&256&&d(G,1)):(G=Qm(Q),G.c(),d(G,1),G.m(p,h)):G&&(me(),_(G,1,1,()=>{G=null}),pe()),Q[34]?X?(X.p(Q,$),$[1]&8&&d(X,1)):(X=Ym(Q),X.c(),d(X,1),X.m(p,w)):X&&(me(),_(X,1,1,()=>{X=null}),pe()),Q[33]?ae?(ae.p(Q,$),$[1]&4&&d(ae,1)):(ae=Zm(Q),ae.c(),d(ae,1),ae.m(p,g)):ae&&(me(),_(ae,1,1,()=>{ae=null}),pe()),Q[8]?j?(j.p(Q,$),$[0]&256&&d(j,1)):(j=Xm(Q),j.c(),d(j,1),j.m(p,null)):j&&(me(),_(j,1,1,()=>{j=null}),pe()),(!E||$[0]&536870920)&&q(p,"hidden",!Q[3]||Q[29]),Q[96]&&!Q[29]?z?(z.p(Q,$),$[0]&536870912&&d(z,1)):(z=Jm(Q),z.c(),d(z,1),z.m(b.parentNode,b)):z&&(me(),_(z,1,1,()=>{z=null}),pe())},i(Q){if(!E){d(v);for(let $=0;$<y.length;$+=1)d(P[$]);d(B),d(O),d(ne),d(ge),d(G),d(X),d(ae),d(j),d(z),E=!0}},o(Q){_(v),P=P.filter(Boolean);for(let $=0;$<P.length;$+=1)_(P[$]);_(B),_(O),_(ne),_(ge),_(G),_(X),_(ae),_(j),_(z),E=!1},d(Q){Q&&(k(e),k(i),k(n),k(o),k(l),k(f),k(p),k(C),k(b)),v&&v.d(),Ei(P,Q),B&&B.d(),O&&O.d(),ne&&ne.d(),ge&&ge.d(),G&&G.d(),X&&X.d(),ae&&ae.d(),j&&j.d(),z&&z.d(Q)}}}function Hm(t){let e,i,n;function o(r){t[130](r)}let l={muted:t[54],expanded:t[51]&&!t[70]&&t[55],click:t[106]};return t[20].volume!==void 0&&(l.ref=t[20].volume),e=new Du({props:l}),be.push(()=>Oe(e,"ref",o)),{c(){V(e.$$.fragment)},m(r,a){A(e,r,a),n=!0},p(r,a){let s={};a[1]&8388608&&(s.muted=r[54]),a[1]&17825792&&(s.expanded=r[51]&&!r[70]&&r[55]),!i&&a[0]&1048576&&(i=!0,s.ref=r[20].volume,Ne(()=>i=!1)),e.$set(s)},i(r){n||(d(e.$$.fragment,r),n=!0)},o(r){_(e.$$.fragment,r),n=!1},d(r){L(e,r)}}}function Um(t){let e,i;return e=new Ur({props:{iconUrl:t[170],ariaLabel:t[171]??t[174],testId:t[172],onClick:t[173]}}),{c(){V(e.$$.fragment)},m(n,o){A(e,n,o),i=!0},p(n,o){let l={};o[1]&33554432&&(l.iconUrl=n[170]),o[1]&33554432&&(l.ariaLabel=n[171]??n[174]),o[1]&33554432&&(l.testId=n[172]),o[1]&33554432&&(l.onClick=n[173]),e.$set(l)},i(n){i||(d(e.$$.fragment,n),i=!0)},o(n){_(e.$$.fragment,n),i=!1},d(n){L(e,n)}}}function Km(t){let e,i,n;function o(r){t[131](r)}let l={isMobile:!0,click:t[104],state:t[28]};return t[20].chromecast!==void 0&&(l.ref=t[20].chromecast),e=new Vr({props:l}),be.push(()=>Oe(e,"ref",o)),{c(){V(e.$$.fragment)},m(r,a){A(e,r,a),n=!0},p(r,a){let s={};a[0]&268435456&&(s.state=r[28]),!i&&a[0]&1048576&&(i=!0,s.ref=r[20].chromecast,Ne(()=>i=!1)),e.$set(s)},i(r){n||(d(e.$$.fragment,r),n=!0)},o(r){_(e.$$.fragment,r),n=!1},d(r){L(e,r)}}}function Wm(t){let e,i,n;function o(r){t[132](r)}let l={click:t[105],isPictureInPictureActive:t[26]};return t[20].pip!==void 0&&(l.ref=t[20].pip),e=new Dm({props:l}),be.push(()=>Oe(e,"ref",o)),{c(){V(e.$$.fragment)},m(r,a){A(e,r,a),n=!0},p(r,a){let s={};a[0]&67108864&&(s.isPictureInPictureActive=r[26]),!i&&a[0]&1048576&&(i=!0,s.ref=r[20].pip,Ne(()=>i=!1)),e.$set(s)},i(r){n||(d(e.$$.fragment,r),n=!0)},o(r){_(e.$$.fragment,r),n=!1},d(r){L(e,r)}}}function jm(t){let e,i,n;function o(r){t[133](r)}let l={};return t[22]!==void 0&&(l.ref=t[22]),e=new Ml({props:l}),be.push(()=>Oe(e,"ref",o)),{c(){V(e.$$.fragment)},m(r,a){A(e,r,a),n=!0},p(r,a){let s={};!i&&a[0]&4194304&&(i=!0,s.ref=r[22],Ne(()=>i=!1)),e.$set(s)},i(r){n||(d(e.$$.fragment,r),n=!0)},o(r){_(e.$$.fragment,r),n=!1},d(r){L(e,r)}}}function Gm(t){let e,i,n;function o(r){t[134](r)}let l={click:t[64],targetUrl:t[7],logoClickable:t[6]};return t[20].vkLogo!==void 0&&(l.ref=t[20].vkLogo),e=new Mr({props:l}),be.push(()=>Oe(e,"ref",o)),{c(){V(e.$$.fragment)},m(r,a){A(e,r,a),n=!0},p(r,a){let s={};a[0]&128&&(s.targetUrl=r[7]),a[0]&64&&(s.logoClickable=r[6]),!i&&a[0]&1048576&&(i=!0,s.ref=r[20].vkLogo,Ne(()=>i=!1)),e.$set(s)},i(r){n||(d(e.$$.fragment,r),n=!0)},o(r){_(e.$$.fragment,r),n=!1},d(r){L(e,r)}}}function Qm(t){let e,i,n;function o(r){t[135](r)}let l={click:t[13],type:"prev",disabled:!t[10],isMobile:!0};return t[20].prevButton!==void 0&&(l.ref=t[20].prevButton),e=new hl({props:l}),be.push(()=>Oe(e,"ref",o)),{c(){V(e.$$.fragment)},m(r,a){A(e,r,a),n=!0},p(r,a){let s={};a[0]&8192&&(s.click=r[13]),a[0]&1024&&(s.disabled=!r[10]),!i&&a[0]&1048576&&(i=!0,s.ref=r[20].prevButton,Ne(()=>i=!1)),e.$set(s)},i(r){n||(d(e.$$.fragment,r),n=!0)},o(r){_(e.$$.fragment,r),n=!1},d(r){L(e,r)}}}function Ym(t){let e,i,n;function o(r){t[136](r)}let l={disabled:t[49],click:t[63],isMobile:!0,isPlaying:t[31]};return t[20].playButton!==void 0&&(l.ref=t[20].playButton),e=new Rl({props:l}),be.push(()=>Oe(e,"ref",o)),{c(){V(e.$$.fragment)},m(r,a){A(e,r,a),n=!0},p(r,a){let s={};a[1]&262144&&(s.disabled=r[49]),a[1]&1&&(s.isPlaying=r[31]),!i&&a[0]&1048576&&(i=!0,s.ref=r[20].playButton,Ne(()=>i=!1)),e.$set(s)},i(r){n||(d(e.$$.fragment,r),n=!0)},o(r){_(e.$$.fragment,r),n=!1},d(r){L(e,r)}}}function Zm(t){let e,i,n;function o(r){t[137](r)}let l={disabled:t[48],click:t[107],isMobile:!0};return t[20].replayButton!==void 0&&(l.ref=t[20].replayButton),e=new Bl({props:l}),be.push(()=>Oe(e,"ref",o)),{c(){V(e.$$.fragment)},m(r,a){A(e,r,a),n=!0},p(r,a){let s={};a[1]&131072&&(s.disabled=r[48]),!i&&a[0]&1048576&&(i=!0,s.ref=r[20].replayButton,Ne(()=>i=!1)),e.$set(s)},i(r){n||(d(e.$$.fragment,r),n=!0)},o(r){_(e.$$.fragment,r),n=!1},d(r){L(e,r)}}}function Xm(t){let e,i,n;function o(r){t[138](r)}let l={click:t[12],type:"next",disabled:!t[9],isMobile:!0};return t[20].nextButton!==void 0&&(l.ref=t[20].nextButton),e=new hl({props:l}),be.push(()=>Oe(e,"ref",o)),{c(){V(e.$$.fragment)},m(r,a){A(e,r,a),n=!0},p(r,a){let s={};a[0]&4096&&(s.click=r[12]),a[0]&512&&(s.disabled=!r[9]),!i&&a[0]&1048576&&(i=!0,s.ref=r[20].nextButton,Ne(()=>i=!1)),e.$set(s)},i(r){n||(d(e.$$.fragment,r),n=!0)},o(r){_(e.$$.fragment,r),n=!1},d(r){L(e,r)}}}function Jm(t){let e,i,n,o,l=t[100]&&n5(t),r=t[98]&&o5(t),a=t[99]&&l5(t);return{c(){l&&l.c(),e=M(),r&&r.c(),i=M(),a&&a.c(),n=ct()},m(s,u){l&&l.m(s,u),S(s,e,u),r&&r.m(s,u),S(s,i,u),a&&a.m(s,u),S(s,n,u),o=!0},p(s,u){s[100]&&l.p(s,u),s[98]&&r.p(s,u),s[99]&&a.p(s,u)},i(s){o||(d(l),d(r),d(a),o=!0)},o(s){_(l),_(r),_(a),o=!1},d(s){s&&(k(e),k(i),k(n)),l&&l.d(s),r&&r.d(s),a&&a.d(s)}}}function n5(t){let e,i,n,o,l,r;function a(u){t[139](u)}let s={hidden:!t[3],disabled:t[47],click:t[18]};return t[20].playPrevChapterButton!==void 0&&(s.ref=t[20].playPrevChapterButton),i=new Hr({props:s}),be.push(()=>Oe(i,"ref",a)),{c(){e=T("div"),V(i.$$.fragment),c(e,"class","wrapper-middle-left svelte-rwqnhz"),q(e,"fullscreen",t[52]),q(e,"hidden",!t[3])},m(u,f){S(u,e,f),A(i,e,null),o=!0,l||(r=_e(e,"click",t[108]),l=!0)},p(u,f){let p={};f[0]&8&&(p.hidden=!u[3]),f[1]&65536&&(p.disabled=u[47]),f[0]&262144&&(p.click=u[18]),!n&&f[0]&1048576&&(n=!0,p.ref=u[20].playPrevChapterButton,Ne(()=>n=!1)),i.$set(p),(!o||f[1]&2097152)&&q(e,"fullscreen",u[52]),(!o||f[0]&8)&&q(e,"hidden",!u[3])},i(u){o||(d(i.$$.fragment,u),o=!0)},o(u){_(i.$$.fragment,u),o=!1},d(u){u&&k(e),L(i),l=!1,r()}}}function o5(t){let e,i,n,o,l;function r(s){t[140](s)}let a={hidden:!t[3]&&!t[58],disabled:t[50],click:t[17],graphIsOpened:t[58]};return t[20].interactiveGraphButton!==void 0&&(a.ref=t[20].interactiveGraphButton),i=new Fr({props:a}),be.push(()=>Oe(i,"ref",r)),{c(){e=T("div"),V(i.$$.fragment),c(e,"class",o=Lc(t[100]?"wrapper-middle-left-second":"wrapper-middle-left")+" svelte-rwqnhz"),q(e,"fullscreen",t[52]),q(e,"hidden",!t[3]&&!t[58])},m(s,u){S(s,e,u),A(i,e,null),l=!0},p(s,u){let f={};u[0]&8|u[1]&134217728&&(f.hidden=!s[3]&&!s[58]),u[1]&524288&&(f.disabled=s[50]),u[0]&131072&&(f.click=s[17]),u[1]&134217728&&(f.graphIsOpened=s[58]),!n&&u[0]&1048576&&(n=!0,f.ref=s[20].interactiveGraphButton,Ne(()=>n=!1)),i.$set(f),(!l||u[1]&2097152)&&q(e,"fullscreen",s[52]),(!l||u[0]&8|u[1]&134217728)&&q(e,"hidden",!s[3]&&!s[58])},i(s){l||(d(i.$$.fragment,s),l=!0)},o(s){_(i.$$.fragment,s),l=!1},d(s){s&&k(e),L(i)}}}function l5(t){let e,i,n,o,l,r;function a(u){t[141](u)}let s={hidden:!t[3],disabled:t[46],click:t[16]};return t[20].seekToInteractiveButton!==void 0&&(s.ref=t[20].seekToInteractiveButton),i=new Or({props:s}),be.push(()=>Oe(i,"ref",a)),{c(){e=T("div"),V(i.$$.fragment),c(e,"class","wrapper-middle-right svelte-rwqnhz"),q(e,"fullscreen",t[52]),q(e,"hidden",!t[3])},m(u,f){S(u,e,f),A(i,e,null),o=!0,l||(r=_e(e,"click",t[109]),l=!0)},p(u,f){let p={};f[0]&8&&(p.hidden=!u[3]),f[1]&32768&&(p.disabled=u[46]),f[0]&65536&&(p.click=u[16]),!n&&f[0]&1048576&&(n=!0,p.ref=u[20].seekToInteractiveButton,Ne(()=>n=!1)),i.$set(p),(!o||f[1]&2097152)&&q(e,"fullscreen",u[52]),(!o||f[0]&8)&&q(e,"hidden",!u[3])},i(u){o||(d(i.$$.fragment,u),o=!0)},o(u){_(i.$$.fragment,u),o=!1},d(u){u&&k(e),L(i),l=!1,r()}}}function xm(t){let e,i,n,o,l,r=t[53]&&$m(t),a=t[32]&&e0(t);return o=new qr({props:{position:t[59],duration:t[60]}}),{c(){r&&r.c(),e=M(),a&&a.c(),i=M(),n=T("div"),V(o.$$.fragment),c(n,"class","wrapper-bottom ads-timeline-mobile svelte-rwqnhz"),q(n,"fullscreen",t[52])},m(s,u){r&&r.m(s,u),S(s,e,u),a&&a.m(s,u),S(s,i,u),S(s,n,u),A(o,n,null),l=!0},p(s,u){s[53]?r?(r.p(s,u),u[1]&4194304&&d(r,1)):(r=$m(s),r.c(),d(r,1),r.m(e.parentNode,e)):r&&(me(),_(r,1,1,()=>{r=null}),pe()),s[32]?a?(a.p(s,u),u[1]&2&&d(a,1)):(a=e0(s),a.c(),d(a,1),a.m(i.parentNode,i)):a&&(me(),_(a,1,1,()=>{a=null}),pe());let f={};u[1]&268435456&&(f.position=s[59]),u[1]&536870912&&(f.duration=s[60]),o.$set(f),(!l||u[1]&2097152)&&q(n,"fullscreen",s[52])},i(s){l||(d(r),d(a),d(o.$$.fragment,s),l=!0)},o(s){_(r),_(a),_(o.$$.fragment,s),l=!1},d(s){s&&(k(e),k(i),k(n)),r&&r.d(s),a&&a.d(s),L(o)}}}function $m(t){let e,i,n,o;function l(a){t[142](a)}let r={muted:t[54],expanded:!1,click:t[106]};return t[20].volume!==void 0&&(r.ref=t[20].volume),i=new Du({props:r}),be.push(()=>Oe(i,"ref",l)),{c(){e=T("div"),V(i.$$.fragment),c(e,"class","wrapper-top-right svelte-rwqnhz"),q(e,"fullscreen",t[52])},m(a,s){S(a,e,s),A(i,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,Ne(()=>n=!1)),i.$set(u),(!o||s[1]&2097152)&&q(e,"fullscreen",a[52])},i(a){o||(d(i.$$.fragment,a),o=!0)},o(a){_(i.$$.fragment,a),o=!1},d(a){a&&k(e),L(i)}}}function e0(t){let e,i,n,o;function l(a){t[143](a)}let r={disabled:t[49],click:t[63],isMobile:!0,isPlaying:!t[32]};return t[20].playButton!==void 0&&(r.ref=t[20].playButton),i=new Rl({props:r}),be.push(()=>Oe(i,"ref",l)),{c(){e=T("div"),V(i.$$.fragment),c(e,"class","wrapper-middle svelte-rwqnhz")},m(a,s){S(a,e,s),A(i,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,Ne(()=>n=!1)),i.$set(u)},i(a){o||(d(i.$$.fragment,a),o=!0)},o(a){_(i.$$.fragment,a),o=!1},d(a){a&&k(e),L(i)}}}function r5(t){let e,i,n;function o(r){t[144](r)}let l={disabled:t[48],$$slots:{default:[s5]},$$scope:{ctx:t}};return t[20].replayButton!==void 0&&(l.ref=t[20].replayButton),e=new Lt({props:l}),be.push(()=>Oe(e,"ref",o)),{c(){V(e.$$.fragment)},m(r,a){A(e,r,a),n=!0},p(r,a){let s={};a[1]&131072&&(s.disabled=r[48]),a[1]&131072|a[5]&4194304&&(s.$$scope={dirty:a,ctx:r}),!i&&a[0]&1048576&&(i=!0,s.ref=r[20].replayButton,Ne(()=>i=!1)),e.$set(s)},i(r){n||(d(e.$$.fragment,r),n=!0)},o(r){_(e.$$.fragment,r),n=!1},d(r){L(e,r)}}}function s5(t){let e,i;return e=new Bl({props:{disabled:t[48],click:t[95]}}),{c(){V(e.$$.fragment)},m(n,o){A(e,n,o),i=!0},p(n,o){let l={};o[1]&131072&&(l.disabled=n[48]),e.$set(l)},i(n){i||(d(e.$$.fragment,n),i=!0)},o(n){_(e.$$.fragment,n),i=!1},d(n){L(e,n)}}}function t0(t){let e,i,n;function o(r){t[145](r)}let l={$$slots:{default:[a5]},$$scope:{ctx:t}};return t[20].liveButton!==void 0&&(l.ref=t[20].liveButton),e=new Lt({props:l}),be.push(()=>Oe(e,"ref",o)),{c(){V(e.$$.fragment)},m(r,a){A(e,r,a),n=!0},p(r,a){let s={};a[0]&524288|a[1]&16384|a[5]&4194304&&(s.$$scope={dirty:a,ctx:r}),!i&&a[0]&1048576&&(i=!0,s.ref=r[20].liveButton,Ne(()=>i=!1)),e.$set(s)},i(r){n||(d(e.$$.fragment,r),n=!0)},o(r){_(e.$$.fragment,r),n=!1},d(r){L(e,r)}}}function a5(t){let e,i;return e=new Rr({props:{isActiveLive:t[19],isMobile:!0,ariaLabel:t[45]}}),{c(){V(e.$$.fragment)},m(n,o){A(e,n,o),i=!0},p(n,o){let l={};o[0]&524288&&(l.isActiveLive=n[19]),o[1]&16384&&(l.ariaLabel=n[45]),e.$set(l)},i(n){i||(d(e.$$.fragment,n),i=!0)},o(n){_(e.$$.fragment,n),i=!1},d(n){L(e,n)}}}function i0(t){let e,i,n;function o(r){t[146](r)}let l={showDuration:t[35],position:t[4]?t[59]:t[61],duration:t[4]?t[60]:t[62],isMobile:!0};return t[20].time!==void 0&&(l.ref=t[20].time),e=new Tr({props:l}),be.push(()=>Oe(e,"ref",o)),{c(){V(e.$$.fragment)},m(r,a){A(e,r,a),n=!0},p(r,a){let s={};a[1]&16&&(s.showDuration=r[35]),a[0]&16|a[1]&1342177280&&(s.position=r[4]?r[59]:r[61]),a[0]&16|a[1]&536870912|a[2]&1&&(s.duration=r[4]?r[60]:r[62]),!i&&a[0]&1048576&&(i=!0,s.ref=r[20].time,Ne(()=>i=!1)),e.$set(s)},i(r){n||(d(e.$$.fragment,r),n=!0)},o(r){_(e.$$.fragment,r),n=!1},d(r){L(e,r)}}}function n0(t){let e,i,n,o;return n=new Nr({props:{position:t[61],duration:t[62],timeCodes:t[84]}}),{c(){e=T("div"),e.textContent="\xB7",i=M(),V(n.$$.fragment),c(e,"aria-hidden","true")},m(l,r){S(l,e,r),S(l,i,r),A(n,l,r),o=!0},p(l,r){let a={};r[1]&1073741824&&(a.position=l[61]),r[2]&1&&(a.duration=l[62]),n.$set(a)},i(l){o||(d(n.$$.fragment,l),o=!0)},o(l){_(n.$$.fragment,l),o=!1},d(l){l&&(k(e),k(i)),L(n,l)}}}function u5(t){let e,i,n=t[43]&&n0(t);return{c(){n&&n.c(),e=ct()},m(o,l){n&&n.m(o,l),S(o,e,l),i=!0},p(o,l){o[43]?n?(n.p(o,l),l[1]&4096&&d(n,1)):(n=n0(o),n.c(),d(n,1),n.m(e.parentNode,e)):n&&(me(),_(n,1,1,()=>{n=null}),pe())},i(o){i||(d(n),i=!0)},o(o){_(n),i=!1},d(o){o&&k(e),n&&n.d(o)}}}function o0(t){let e,i,n;function o(r){t[149](r)}let l={$$slots:{default:[c5]},$$scope:{ctx:t}};return t[20].settings!==void 0&&(l.ref=t[20].settings),e=new Lt({props:l}),be.push(()=>Oe(e,"ref",o)),{c(){V(e.$$.fragment)},m(r,a){A(e,r,a),n=!0},p(r,a){let s={};a[0]&4194304|a[5]&4194304&&(s.$$scope={dirty:a,ctx:r}),!i&&a[0]&1048576&&(i=!0,s.ref=r[20].settings,Ne(()=>i=!1)),e.$set(s)},i(r){n||(d(e.$$.fragment,r),n=!0)},o(r){_(e.$$.fragment,r),n=!1},d(r){L(e,r)}}}function c5(t){let e,i,n;function o(r){t[148](r)}let l={};return t[22]!==void 0&&(l.ref=t[22]),e=new Ml({props:l}),be.push(()=>Oe(e,"ref",o)),{c(){V(e.$$.fragment)},m(r,a){A(e,r,a),n=!0},p(r,a){let s={};!i&&a[0]&4194304&&(i=!0,s.ref=r[22],Ne(()=>i=!1)),e.$set(s)},i(r){n||(d(e.$$.fragment,r),n=!0)},o(r){_(e.$$.fragment,r),n=!1},d(r){L(e,r)}}}function l0(t){let e,i,n;function o(r){t[150](r)}let l={$$slots:{default:[f5]},$$scope:{ctx:t}};return t[20].fullscreen!==void 0&&(l.ref=t[20].fullscreen),e=new Lt({props:l}),be.push(()=>Oe(e,"ref",o)),{c(){V(e.$$.fragment)},m(r,a){A(e,r,a),n=!0},p(r,a){let s={};a[0]&16384|a[1]&2097152|a[5]&4194304&&(s.$$scope={dirty:a,ctx:r}),!i&&a[0]&1048576&&(i=!0,s.ref=r[20].fullscreen,Ne(()=>i=!1)),e.$set(s)},i(r){n||(d(e.$$.fragment,r),n=!0)},o(r){_(e.$$.fragment,r),n=!1},d(r){L(e,r)}}}function f5(t){let e,i;return e=new Ar({props:{click:t[14],isFullscreen:t[52]}}),{c(){V(e.$$.fragment)},m(n,o){A(e,n,o),i=!0},p(n,o){let l={};o[0]&16384&&(l.click=n[14]),o[1]&2097152&&(l.isFullscreen=n[52]),e.$set(l)},i(n){i||(d(e.$$.fragment,n),i=!0)},o(n){_(e.$$.fragment,n),i=!1},d(n){L(e,n)}}}function r0(t){let e,i,n,o;function l(a){t[154](a)}let r={supportLink:t[11],returnFocus:t[15]};return t[21]!==void 0&&(r.ref=t[21]),i=new Cr({props:r}),be.push(()=>Oe(i,"ref",l)),{c(){e=T("div"),V(i.$$.fragment),c(e,"class","settings-mobile svelte-rwqnhz")},m(a,s){S(a,e,s),A(i,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],Ne(()=>n=!1)),i.$set(u)},i(a){o||(d(i.$$.fragment,a),o=!0)},o(a){_(i.$$.fragment,a),o=!1},d(a){a&&k(e),L(i)}}}function d5(t){let e,i,n;function o(r){t[155](r)}let l={};return t[20].interactiveTimeIndicator!==void 0&&(l.ref=t[20].interactiveTimeIndicator),e=new Jr({props:l}),be.push(()=>Oe(e,"ref",o)),{c(){V(e.$$.fragment)},m(r,a){A(e,r,a),n=!0},p(r,a){let s={};!i&&a[0]&1048576&&(i=!0,s.ref=r[20].interactiveTimeIndicator,Ne(()=>i=!1)),e.$set(s)},i(r){n||(d(e.$$.fragment,r),n=!0)},o(r){_(e.$$.fragment,r),n=!1},d(r){L(e,r)}}}function m5(t){let e,i,n,o,l,r,a,s,u,f,p,h,w,g,C,b,E,v,y,P=!t[4]&&zm(t),W=t[4]&&t[30]!=="inactive"&&xm(t),B=t[96]&&r5(t),O=!t[4]&&t[25]&&t0(t),ne=t[41]&&i0(t);function ge(K){t[147](K)}let G={className:"w-max",disabled:!t[43],$$slots:{default:[u5]},$$scope:{ctx:t}};t[20].episodes!==void 0&&(G.ref=t[20].episodes),u=new Lt({props:G}),be.push(()=>Oe(u,"ref",ge));let X=t[38]&&o0(t),ae=t[40]&&l0(t);function j(K){t[152](K)}let z={isAds:t[4],canRewindLive:t[5],isRewindableLive:t[24]};t[20].timeline!==void 0&&(z.ref=t[20].timeline),g=new Dr({props:z}),be.push(()=>Oe(g,"ref",j));let Q=t[23]&&r0(t),$=t[101]&&d5(t);return{c(){P&&P.c(),e=M(),W&&W.c(),i=M(),n=T("div"),o=T("div"),l=T("div"),B&&B.c(),r=M(),O&&O.c(),a=M(),ne&&ne.c(),s=M(),V(u.$$.fragment),p=M(),X&&X.c(),h=M(),ae&&ae.c(),w=M(),V(g.$$.fragment),b=M(),Q&&Q.c(),E=M(),$&&$.c(),v=ct(),c(l,"class","controls svelte-rwqnhz"),q(l,"mobile",!0),c(o,"class","controls-wrapper svelte-rwqnhz"),q(o,"fullscreen",t[52]),c(n,"class","wrapper-bottom svelte-rwqnhz"),q(n,"hidden",t[1]),q(n,"controls-hidden",!t[3]),q(n,"no-smooth",t[2]),q(n,"mobile",!0)},m(K,Y){P&&P.m(K,Y),S(K,e,Y),W&&W.m(K,Y),S(K,i,Y),S(K,n,Y),m(n,o),m(o,l),B&&B.m(l,null),m(l,r),O&&O.m(l,null),m(l,a),ne&&ne.m(l,null),m(l,s),A(u,l,null),m(l,p),X&&X.m(l,null),m(l,h),ae&&ae.m(l,null),t[151](l),m(o,w),A(g,o,null),t[153](n),S(K,b,Y),Q&&Q.m(K,Y),S(K,E,Y),$&&$.m(K,Y),S(K,v,Y),y=!0},p(K,Y){K[4]?P&&(me(),_(P,1,1,()=>{P=null}),pe()):P?(P.p(K,Y),Y[0]&16&&d(P,1)):(P=zm(K),P.c(),d(P,1),P.m(e.parentNode,e)),K[4]&&K[30]!=="inactive"?W?(W.p(K,Y),Y[0]&1073741840&&d(W,1)):(W=xm(K),W.c(),d(W,1),W.m(i.parentNode,i)):W&&(me(),_(W,1,1,()=>{W=null}),pe()),K[96]&&B.p(K,Y),!K[4]&&K[25]?O?(O.p(K,Y),Y[0]&33554448&&d(O,1)):(O=t0(K),O.c(),d(O,1),O.m(l,a)):O&&(me(),_(O,1,1,()=>{O=null}),pe()),K[41]?ne?(ne.p(K,Y),Y[1]&1024&&d(ne,1)):(ne=i0(K),ne.c(),d(ne,1),ne.m(l,s)):ne&&(me(),_(ne,1,1,()=>{ne=null}),pe());let ie={};Y[1]&4096&&(ie.disabled=!K[43]),Y[1]&1073745920|Y[2]&1|Y[5]&4194304&&(ie.$$scope={dirty:Y,ctx:K}),!f&&Y[0]&1048576&&(f=!0,ie.ref=K[20].episodes,Ne(()=>f=!1)),u.$set(ie),K[38]?X?(X.p(K,Y),Y[1]&128&&d(X,1)):(X=o0(K),X.c(),d(X,1),X.m(l,h)):X&&(me(),_(X,1,1,()=>{X=null}),pe()),K[40]?ae?(ae.p(K,Y),Y[1]&512&&d(ae,1)):(ae=l0(K),ae.c(),d(ae,1),ae.m(l,null)):ae&&(me(),_(ae,1,1,()=>{ae=null}),pe());let re={};Y[0]&16&&(re.isAds=K[4]),Y[0]&32&&(re.canRewindLive=K[5]),Y[0]&16777216&&(re.isRewindableLive=K[24]),!C&&Y[0]&1048576&&(C=!0,re.ref=K[20].timeline,Ne(()=>C=!1)),g.$set(re),(!y||Y[1]&2097152)&&q(o,"fullscreen",K[52]),(!y||Y[0]&2)&&q(n,"hidden",K[1]),(!y||Y[0]&8)&&q(n,"controls-hidden",!K[3]),(!y||Y[0]&4)&&q(n,"no-smooth",K[2]),K[23]?Q?(Q.p(K,Y),Y[0]&8388608&&d(Q,1)):(Q=r0(K),Q.c(),d(Q,1),Q.m(E.parentNode,E)):Q&&(me(),_(Q,1,1,()=>{Q=null}),pe()),K[101]&&$.p(K,Y)},i(K){y||(d(P),d(W),d(B),d(O),d(ne),d(u.$$.fragment,K),d(X),d(ae),d(g.$$.fragment,K),d(Q),d($),y=!0)},o(K){_(P),_(W),_(B),_(O),_(ne),_(u.$$.fragment,K),_(X),_(ae),_(g.$$.fragment,K),_(Q),_($),y=!1},d(K){K&&(k(e),k(i),k(n),k(b),k(E),k(v)),P&&P.d(K),W&&W.d(K),B&&B.d(),O&&O.d(),ne&&ne.d(),L(u),X&&X.d(),ae&&ae.d(),t[151](null),L(g),t[153](null),Q&&Q.d(K),$&&$.d(K)}}}function p5(t,e,i){let n,o,l,r,a,s,u,f,p,h,w,g,C,b,E,v,y,P,W,B,O,ne,ge,G,X,ae,j,z,Q,$,K,Y,ie,re,Ve,Xe,Se,{bottomHidden:Me}=e,{bottomNoSmooth:Ke}=e,{showControls:$e}=e,{controlsElementRef:ce=void 0}=e,{isAds:he=!1}=e,{canRewindLive:at}=e,{logoClickable:ke}=e,{logoHidden:Fe}=e,{logoTargetUrl:ft=""}=e,{showNextPrevButtons:Qe}=e,{nextButtonActive:je}=e,{prevButtonActive:Ze}=e,{isOneVideoPlaylist:xe=!1}=e,{supportLink:x}=e,{customFullscreenSupported:De=!0}=e,{playNextVideo:ze}=e,{playPrevVideo:fe}=e,{repeatPlaylist:se}=e,{toggleFullscreen:nt}=e,{returnFocus:de}=e,{seekToInteractive:lt}=e,{toggleGraph:rt}=e,{playPrevChapter:dt}=e,{onDisabledPlayPrevChapterClick:yt}=e,{onDisabledSeekToInteractiveClick:Et}=e,Ye=it(),Kt=qn(),qt=Bt(),kt=Ye.actions.internal.toggleMuted,ui=Ye.actions.internal.togglePlay,st=Ye.actions.internal.pause,wt=Ye.callbacks?.onAudioDoesNotExistHint,we=Ye.callbacks?.onAudioDisabledHint,gt=Ye.playerPhase;D(t,gt,ee=>i(126,O=ee));let St=Ye.state.duration$;D(t,St,ee=>i(62,Se=ee));let Xt=Ye.state.positionWithScrubbing$;D(t,Xt,ee=>i(61,Xe=ee));let Ct=Ye.state.playbackState$;D(t,Ct,ee=>i(121,h=ee));let Wt=Ye.state.isAudioAvailable$;D(t,Wt,ee=>i(51,w=ee));let jt=Ye.state.isAudioDisabled,Dt=Ye.state.isEnded$;D(t,Dt,ee=>i(127,ge=ee));let Fi=Ye.state.isLive$;D(t,Fi,ee=>i(25,v=ee));let xi=Ye.state.muted$;D(t,xi,ee=>i(54,Q=ee));let Jt=Ye.state.isActiveLive$;D(t,Jt,ee=>i(124,b=ee));let Ai=Ye.state.isRewindableLive$;D(t,Ai,ee=>i(24,E=ee));let $i=Ye.ui.scrubbingInProgress;D(t,$i,ee=>i(29,ne=ee));let zi=Ye.ui.mobileNotReportControlHidden$;D(t,zi,ee=>i(27,W=ee));let en=Ye.ui.isPictureInPictureActive$;D(t,en,ee=>i(26,P=ee));let Li=Ye.ui.pictureInPictureType$;D(t,Li,ee=>i(125,y=ee));let Mi=Ye.ui.mobileUnmuteButtonExpanded;D(t,Mi,ee=>i(55,$=ee));let ci=Ye.ui.mobileUnmuteButtonVisible;D(t,ci,ee=>i(53,z=ee));let fi=Ye.ui.settingsMenuVisible;D(t,fi,ee=>i(23,p=ee));let yi=Ye.ui.settingsMenuOpenedByKeyboard;D(t,yi,ee=>i(120,f=ee));let wi=Ye.ui.controls,ni=Ye.actions.internal.getVideoEpisodes(),ki=Ye.webApi.pictureInPictureApi,Hi=Ye.state.chromecastState$;D(t,Hi,ee=>i(28,B=ee));let Nt=Ye.state.crashed$;D(t,Nt,ee=>i(57,Y=ee));let Si=wi.disabledControls$;D(t,Si,ee=>i(128,X=ee));let Vi=Ye.ui.startedByKeyboard$;D(t,Vi,ee=>i(119,u=ee));let Ui=Ye.ads.duration;D(t,Ui,ee=>i(60,Ve=ee));let di=Ye.ads.position;D(t,di,ee=>i(59,re=ee));let Mt=Ye.ads.playbackState;D(t,Mt,ee=>i(30,G=ee));let Ki=Ye.ui.isFullscreen;D(t,Ki,ee=>i(52,j=ee));let tn=Ye.ui.playerSize;D(t,tn,ee=>i(123,C=ee));let Ot=Ye.ui.additionalButtons$;D(t,Ot,ee=>i(56,K=ee));let Wi=Ye.actions.internal.getVideoElement,ji=Ye.actions.internal.replayInteractive,Gt=Ye.state.isInteractive,Ci=Ye.state.isInteractiveTime$;D(t,Ci,ee=>i(122,g=ee));let mi=Ye.state.showInteractiveGraph,Ti=Ye.state.showSeekToInteractive,Qt=Ye.state.showPlayPrevChapter,Ft=Ye.state.showInteractiveTimeIndicator,xt=Ye.state.graphIsOpened$;D(t,xt,ee=>i(58,ie=ee));let Ri=Kt.seekToInteractiveDisabledTooltip$;D(t,Ri,ee=>i(129,ae=ee));let oi,li,$t,pi,Gi,an,Bi,ri,Yt,nn,At,Vt,on,_i,ei,ln,et,Pi,ti,He={},Qi=t5(Zr,260,{leading:!1}),un=()=>Ye.actions.internal.toggleChromecast();function cn(){po({isAudioDisabled:jt,audioDisabledHintCallback:we,isAudioAvailable:w,audioIsNotExistHintCallback:wt})&&kt()}async function Yi(){ki?.isActive()?await ki?.remove():await ki?.request()}function qi(){!jt&&w&&ci.set(!1),cn()}let rn=xe?ui:se,Di="",Zt=(ee,Yn)=>{if(!ee){i(45,Di=N("tooltip_live"));return}Yn===Om.PAUSED&&i(45,Di=N("tooltip_play"))},Zi,hi,hn=()=>{s&&yt(oi)},fn=()=>{l&&Et(li)};function dn(ee){t.$$.not_equal(He.volume,ee)&&(He.volume=ee,i(20,He))}function yn(ee){t.$$.not_equal(He.chromecast,ee)&&(He.chromecast=ee,i(20,He))}function sn(ee){t.$$.not_equal(He.pip,ee)&&(He.pip=ee,i(20,He))}function mn(ee){hi=ee,i(22,hi)}function pn(ee){t.$$.not_equal(He.vkLogo,ee)&&(He.vkLogo=ee,i(20,He))}function Xi(ee){t.$$.not_equal(He.prevButton,ee)&&(He.prevButton=ee,i(20,He))}function gi(ee){t.$$.not_equal(He.playButton,ee)&&(He.playButton=ee,i(20,He))}function wn(ee){t.$$.not_equal(He.replayButton,ee)&&(He.replayButton=ee,i(20,He))}function Ji(ee){t.$$.not_equal(He.nextButton,ee)&&(He.nextButton=ee,i(20,He))}function In(ee){t.$$.not_equal(He.playPrevChapterButton,ee)&&(He.playPrevChapterButton=ee,i(20,He))}function zt(ee){t.$$.not_equal(He.interactiveGraphButton,ee)&&(He.interactiveGraphButton=ee,i(20,He))}function En(ee){t.$$.not_equal(He.seekToInteractiveButton,ee)&&(He.seekToInteractiveButton=ee,i(20,He))}function An(ee){t.$$.not_equal(He.volume,ee)&&(He.volume=ee,i(20,He))}function kn(ee){t.$$.not_equal(He.playButton,ee)&&(He.playButton=ee,i(20,He))}function Ln(ee){t.$$.not_equal(He.replayButton,ee)&&(He.replayButton=ee,i(20,He))}function le(ee){t.$$.not_equal(He.liveButton,ee)&&(He.liveButton=ee,i(20,He))}function _t(ee){t.$$.not_equal(He.time,ee)&&(He.time=ee,i(20,He))}function Ni(ee){t.$$.not_equal(He.episodes,ee)&&(He.episodes=ee,i(20,He))}function _n(ee){hi=ee,i(22,hi)}function Mn(ee){t.$$.not_equal(He.settings,ee)&&(He.settings=ee,i(20,He))}function Vn(ee){t.$$.not_equal(He.fullscreen,ee)&&(He.fullscreen=ee,i(20,He))}function te(ee){be[ee?"unshift":"push"](()=>{Pi=ee,i(44,Pi)})}function mt(ee){t.$$.not_equal(He.timeline,ee)&&(He.timeline=ee,i(20,He))}function si(ee){be[ee?"unshift":"push"](()=>{ce=ee,i(0,ce)})}function Qn(ee){Zi=ee,i(21,Zi)}function Fn(ee){t.$$.not_equal(He.interactiveTimeIndicator,ee)&&(He.interactiveTimeIndicator=ee,i(20,He))}return t.$$set=ee=>{"bottomHidden"in ee&&i(1,Me=ee.bottomHidden),"bottomNoSmooth"in ee&&i(2,Ke=ee.bottomNoSmooth),"showControls"in ee&&i(3,$e=ee.showControls),"controlsElementRef"in ee&&i(0,ce=ee.controlsElementRef),"isAds"in ee&&i(4,he=ee.isAds),"canRewindLive"in ee&&i(5,at=ee.canRewindLive),"logoClickable"in ee&&i(6,ke=ee.logoClickable),"logoHidden"in ee&&i(110,Fe=ee.logoHidden),"logoTargetUrl"in ee&&i(7,ft=ee.logoTargetUrl),"showNextPrevButtons"in ee&&i(8,Qe=ee.showNextPrevButtons),"nextButtonActive"in ee&&i(9,je=ee.nextButtonActive),"prevButtonActive"in ee&&i(10,Ze=ee.prevButtonActive),"isOneVideoPlaylist"in ee&&i(111,xe=ee.isOneVideoPlaylist),"supportLink"in ee&&i(11,x=ee.supportLink),"customFullscreenSupported"in ee&&i(112,De=ee.customFullscreenSupported),"playNextVideo"in ee&&i(12,ze=ee.playNextVideo),"playPrevVideo"in ee&&i(13,fe=ee.playPrevVideo),"repeatPlaylist"in ee&&i(113,se=ee.repeatPlaylist),"toggleFullscreen"in ee&&i(14,nt=ee.toggleFullscreen),"returnFocus"in ee&&i(15,de=ee.returnFocus),"seekToInteractive"in ee&&i(16,lt=ee.seekToInteractive),"toggleGraph"in ee&&i(17,rt=ee.toggleGraph),"playPrevChapter"in ee&&i(18,dt=ee.playPrevChapter),"onDisabledPlayPrevChapterClick"in ee&&i(114,yt=ee.onDisabledPlayPrevChapterClick),"onDisabledSeekToInteractiveClick"in ee&&i(115,Et=ee.onDisabledSeekToInteractiveClick)},t.$$.update=()=>{if(t.$$.dirty[4]&32&&(li=N(ae)),t.$$.dirty[4]&16&&i(118,n=X.has("EPISODE_BUTTON")),t.$$.dirty[4]&16&&i(50,o=X.has("GRAPH_BUTTON")),t.$$.dirty[4]&16&&i(46,l=X.has("SEEK_TO_INTERACTIVE_BUTTON")),t.$$.dirty[4]&16&&i(49,r=X.has("PLAY_BUTTON")),t.$$.dirty[4]&16&&i(48,a=X.has("REPLAY_BUTTON")),t.$$.dirty[4]&16&&i(47,s=X.has("PLAY_PREV_CHAPTER_BUTTON")),t.$$.dirty[3]&268435456&&i(31,$t=h===Om.PLAYING),t.$$.dirty[0]&1073741824&&i(32,pi=G==="paused"),t.$$.dirty[0]&16|t.$$.dirty[4]&8&&i(33,Gi=ge&&!he&&!Gt),t.$$.dirty[0]&16|t.$$.dirty[4]&8&&i(34,an=!ge||he),t.$$.dirty[3]&1073741824&&i(116,Bi=C.width>300),t.$$.dirty[3]&1073741824&&i(35,ri=C.width>400),t.$$.dirty[0]&536870912&&i(117,Yt=ne),t.$$.dirty[0]&469762048|t.$$.dirty[4]&2&&i(36,nn=B!==Nm.NOT_AVAILABLE&&!(P&&y===1)&&!W&&!Gt),t.$$.dirty[0]&402653184|t.$$.dirty[3]&16777216|t.$$.dirty[4]&6){let ee=O==="LiveWaitingStart";i(37,At=!!ki&&B!==Nm.CONNECTED&&!W&&(y===1&&ee||!ee)&&!Yt&&!Gt)}t.$$.dirty[3]&16777216&&i(38,Vt=!Yt),t.$$.dirty[3]&1073872896&&i(39,on=!Fe&&C.width>350),t.$$.dirty[0]&67108864|t.$$.dirty[3]&17301504|t.$$.dirty[4]&2&&i(40,_i=qt.features.fullscreen&&!(P&&y===1)&&(Gt?De:!0)&&!Yt),t.$$.dirty[0]&33554448|t.$$.dirty[3]&1090519040&&i(41,ei=(!v||he)&&C.width>260&&!Yt&&!(qt.features.interactiveHideTime&&Gt)),t.$$.dirty[0]&8388616&&i(42,ln=p||$e),t.$$.dirty[0]&33554448|t.$$.dirty[3]&58720256&&i(43,et=!he&&!v&&!!ni?.length&&Bi&&!n&&!Yt),t.$$.dirty[0]&16777216|t.$$.dirty[4]&1&&i(19,ti=!E||b),t.$$.dirty[0]&1048584|t.$$.dirty[3]&1610612736&&Qi(Wi(),wi,He,$e),t.$$.dirty[0]&524288|t.$$.dirty[3]&268435456&&Zt(ti,h),t.$$.dirty[0]&12582912&&al(hi,p,yi),t.$$.dirty[0]&10485760|t.$$.dirty[3]&134217728&&No(Zi,p,f),t.$$.dirty[0]&1048576|t.$$.dirty[3]&67108864&&Xr(Vi,u,He.playButton)},oi=N(Ye.state.playPrevChapterDisabledTooltip),[ce,Me,Ke,$e,he,at,ke,ft,Qe,je,Ze,x,ze,fe,nt,de,lt,rt,dt,ti,He,Zi,hi,p,E,v,P,W,B,ne,G,$t,pi,Gi,an,ri,nn,At,Vt,on,_i,ei,ln,et,Pi,Di,l,s,a,r,o,w,j,z,Q,$,K,Y,ie,re,Ve,Xe,Se,ui,st,gt,St,Xt,Ct,Wt,jt,Dt,Fi,xi,Jt,Ai,$i,zi,en,Li,Mi,ci,fi,yi,ni,Hi,Nt,Si,Vi,Ui,di,Mt,Ki,tn,Ot,ji,Gt,Ci,mi,Ti,Qt,Ft,xt,Ri,un,Yi,qi,rn,hn,fn,Fe,xe,De,se,yt,Et,Bi,Yt,n,u,f,h,g,C,b,y,O,ge,X,ae,dn,yn,sn,mn,pn,Xi,gi,wn,Ji,In,zt,En,An,kn,Ln,le,_t,Ni,_n,Mn,Vn,te,mt,si,Qn,Fn]}var zu=class extends H{constructor(e){super(),U(this,e,p5,m5,F,{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},i5,[-1,-1,-1,-1,-1,-1])}},s0=zu;function _5(t){let e,i,n;function o(r){t[28](r)}let l={bottomHidden:t[1],bottomNoSmooth:t[2],showControls:t[3],isAds:t[4],canRewindLive:t[5],logoClickable:t[6],logoHidden:t[7],logoTargetUrl:t[8],showNextPrevButtons:t[9],nextButtonActive:t[10],prevButtonActive:t[11],isOneVideoPlaylist:t[12],supportLink:t[13],customFullscreenSupported:t[14],playNextVideo:t[15],playPrevVideo:t[16],repeatPlaylist:t[17],toggleFullscreen:t[18],returnFocus:t[19],seekToInteractive:t[20],toggleGraph:t[21],playPrevChapter:t[22]};return t[0]!==void 0&&(l.controlsElementRef=t[0]),e=new Mm({props:l}),be.push(()=>Oe(e,"controlsElementRef",o)),{c(){V(e.$$.fragment)},m(r,a){A(e,r,a),n=!0},p(r,a){let s={};a&2&&(s.bottomHidden=r[1]),a&4&&(s.bottomNoSmooth=r[2]),a&8&&(s.showControls=r[3]),a&16&&(s.isAds=r[4]),a&32&&(s.canRewindLive=r[5]),a&64&&(s.logoClickable=r[6]),a&128&&(s.logoHidden=r[7]),a&256&&(s.logoTargetUrl=r[8]),a&512&&(s.showNextPrevButtons=r[9]),a&1024&&(s.nextButtonActive=r[10]),a&2048&&(s.prevButtonActive=r[11]),a&4096&&(s.isOneVideoPlaylist=r[12]),a&8192&&(s.supportLink=r[13]),a&16384&&(s.customFullscreenSupported=r[14]),a&32768&&(s.playNextVideo=r[15]),a&65536&&(s.playPrevVideo=r[16]),a&131072&&(s.repeatPlaylist=r[17]),a&262144&&(s.toggleFullscreen=r[18]),a&524288&&(s.returnFocus=r[19]),a&1048576&&(s.seekToInteractive=r[20]),a&2097152&&(s.toggleGraph=r[21]),a&4194304&&(s.playPrevChapter=r[22]),!i&&a&1&&(i=!0,s.controlsElementRef=r[0],Ne(()=>i=!1)),e.$set(s)},i(r){n||(d(e.$$.fragment,r),n=!0)},o(r){_(e.$$.fragment,r),n=!1},d(r){L(e,r)}}}function h5(t){let e,i,n;function o(r){t[27](r)}let l={bottomHidden:t[1],bottomNoSmooth:t[2],showControls:t[3],isAds:t[4],canRewindLive:t[5],logoClickable:t[6],logoHidden:t[7],logoTargetUrl:t[8],showNextPrevButtons:t[9],nextButtonActive:t[10],prevButtonActive:t[11],isOneVideoPlaylist:t[12],supportLink:t[13],customFullscreenSupported:t[14],playNextVideo:t[15],playPrevVideo:t[16],repeatPlaylist:t[17],toggleFullscreen:t[18],returnFocus:t[19],seekToInteractive:t[20],toggleGraph:t[21],playPrevChapter:t[22],onDisabledPlayPrevChapterClick:t[23],onDisabledSeekToInteractiveClick:t[24]};return t[0]!==void 0&&(l.controlsElementRef=t[0]),e=new s0({props:l}),be.push(()=>Oe(e,"controlsElementRef",o)),{c(){V(e.$$.fragment)},m(r,a){A(e,r,a),n=!0},p(r,a){let s={};a&2&&(s.bottomHidden=r[1]),a&4&&(s.bottomNoSmooth=r[2]),a&8&&(s.showControls=r[3]),a&16&&(s.isAds=r[4]),a&32&&(s.canRewindLive=r[5]),a&64&&(s.logoClickable=r[6]),a&128&&(s.logoHidden=r[7]),a&256&&(s.logoTargetUrl=r[8]),a&512&&(s.showNextPrevButtons=r[9]),a&1024&&(s.nextButtonActive=r[10]),a&2048&&(s.prevButtonActive=r[11]),a&4096&&(s.isOneVideoPlaylist=r[12]),a&8192&&(s.supportLink=r[13]),a&16384&&(s.customFullscreenSupported=r[14]),a&32768&&(s.playNextVideo=r[15]),a&65536&&(s.playPrevVideo=r[16]),a&131072&&(s.repeatPlaylist=r[17]),a&262144&&(s.toggleFullscreen=r[18]),a&524288&&(s.returnFocus=r[19]),a&1048576&&(s.seekToInteractive=r[20]),a&2097152&&(s.toggleGraph=r[21]),a&4194304&&(s.playPrevChapter=r[22]),a&8388608&&(s.onDisabledPlayPrevChapterClick=r[23]),a&16777216&&(s.onDisabledSeekToInteractiveClick=r[24]),!i&&a&1&&(i=!0,s.controlsElementRef=r[0],Ne(()=>i=!1)),e.$set(s)},i(r){n||(d(e.$$.fragment,r),n=!0)},o(r){_(e.$$.fragment,r),n=!1},d(r){L(e,r)}}}function g5(t){let e,i,n,o,l=[h5,_5],r=[];function a(s,u){return s[25]?0:1}return e=a(t,-1),i=r[e]=l[e](t),{c(){i.c(),n=ct()},m(s,u){r[e].m(s,u),S(s,n,u),o=!0},p(s,[u]){let f=e;e=a(s,u),e===f?r[e].p(s,u):(me(),_(r[f],1,1,()=>{r[f]=null}),pe(),i=r[e],i?i.p(s,u):(i=r[e]=l[e](s),i.c()),d(i,1),i.m(n.parentNode,n))},i(s){o||(d(i),o=!0)},o(s){_(i),o=!1},d(s){s&&k(n),r[e].d(s)}}}function b5(t,e,i){let n,{bottomHidden:o}=e,{bottomNoSmooth:l=!1}=e,{showControls:r}=e,{controlsElementRef:a=void 0}=e,{isAds:s=!1}=e,{canRewindLive:u}=e,{logoClickable:f}=e,{logoHidden:p}=e,{logoTargetUrl:h=""}=e,{showNextPrevButtons:w}=e,{nextButtonActive:g}=e,{prevButtonActive:C}=e,{isOneVideoPlaylist:b=!1}=e,{supportLink:E}=e,{customFullscreenSupported:v=!0}=e,{playNextVideo:y}=e,{playPrevVideo:P}=e,{repeatPlaylist:W}=e,{toggleFullscreen:B}=e,{returnFocus:O=Hu}=e,{seekToInteractive:ne}=e,{toggleGraph:ge}=e,{playPrevChapter:G}=e,{onDisabledPlayPrevChapterClick:X=Hu}=e,{onDisabledSeekToInteractiveClick:ae=Hu}=e,z=it().ui.isMobile;D(t,z,K=>i(25,n=K));function Q(K){a=K,i(0,a)}function $(K){a=K,i(0,a)}return t.$$set=K=>{"bottomHidden"in K&&i(1,o=K.bottomHidden),"bottomNoSmooth"in K&&i(2,l=K.bottomNoSmooth),"showControls"in K&&i(3,r=K.showControls),"controlsElementRef"in K&&i(0,a=K.controlsElementRef),"isAds"in K&&i(4,s=K.isAds),"canRewindLive"in K&&i(5,u=K.canRewindLive),"logoClickable"in K&&i(6,f=K.logoClickable),"logoHidden"in K&&i(7,p=K.logoHidden),"logoTargetUrl"in K&&i(8,h=K.logoTargetUrl),"showNextPrevButtons"in K&&i(9,w=K.showNextPrevButtons),"nextButtonActive"in K&&i(10,g=K.nextButtonActive),"prevButtonActive"in K&&i(11,C=K.prevButtonActive),"isOneVideoPlaylist"in K&&i(12,b=K.isOneVideoPlaylist),"supportLink"in K&&i(13,E=K.supportLink),"customFullscreenSupported"in K&&i(14,v=K.customFullscreenSupported),"playNextVideo"in K&&i(15,y=K.playNextVideo),"playPrevVideo"in K&&i(16,P=K.playPrevVideo),"repeatPlaylist"in K&&i(17,W=K.repeatPlaylist),"toggleFullscreen"in K&&i(18,B=K.toggleFullscreen),"returnFocus"in K&&i(19,O=K.returnFocus),"seekToInteractive"in K&&i(20,ne=K.seekToInteractive),"toggleGraph"in K&&i(21,ge=K.toggleGraph),"playPrevChapter"in K&&i(22,G=K.playPrevChapter),"onDisabledPlayPrevChapterClick"in K&&i(23,X=K.onDisabledPlayPrevChapterClick),"onDisabledSeekToInteractiveClick"in K&&i(24,ae=K.onDisabledSeekToInteractiveClick)},[a,o,l,r,s,u,f,p,h,w,g,C,b,E,v,y,P,W,B,O,ne,ge,G,X,ae,n,z,Q,$]}var Uu=class extends H{constructor(e){super(),U(this,e,b5,g5,F,{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})}},xr=Uu;function v5(t){let e,i,n,o,l,r,a,s,u,f,p,h,w,g,C=t[2].default,b=Ie(C,t,t[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"},t[0]],v={};for(let y=0;y<E.length;y+=1)v=ue(v,E[y]);return{c(){e=R("svg"),b&&b.c(),i=R("g"),n=R("path"),o=R("path"),l=R("defs"),r=R("filter"),a=R("feFlood"),s=R("feColorMatrix"),u=R("feOffset"),f=R("feGaussianBlur"),p=R("feColorMatrix"),h=R("feBlend"),w=R("feBlend"),c(n,"fill","#fff"),c(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"),c(o,"stroke","#000"),c(o,"stroke-opacity",".12"),c(o,"stroke-width",".5"),c(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"),c(i,"filter","url(#a)"),c(a,"flood-opacity","0"),c(a,"result","BackgroundImageFix"),c(s,"in","SourceAlpha"),c(s,"result","hardAlpha"),c(s,"values","0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0"),c(f,"stdDeviation","2.5"),c(p,"values","0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.16 0"),c(h,"in2","BackgroundImageFix"),c(h,"result","effect1_dropShadow_2260_100684"),c(w,"in","SourceGraphic"),c(w,"in2","effect1_dropShadow_2260_100684"),c(w,"result","shape"),c(r,"id","a"),c(r,"width","43.996"),c(r,"height","49.5"),c(r,"x","2.5"),c(r,"y","0"),c(r,"color-interpolation-filters","sRGB"),c(r,"filterUnits","userSpaceOnUse"),ye(e,v)},m(y,P){S(y,e,P),b&&b.m(e,null),m(e,i),m(i,n),m(i,o),m(e,l),m(l,r),m(r,a),m(r,s),m(r,u),m(r,f),m(r,p),m(r,h),m(r,w),g=!0},p(y,[P]){b&&b.p&&(!g||P&2)&&Ae(b,C,y,y[1],g?Ee(C,y[1],P,null):Le(y[1]),null),ye(e,v=Be(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&&y[0]]))},i(y){g||(d(b,y),g=!0)},o(y){_(b,y),g=!1},d(y){y&&k(e),b&&b.d(y)}}}function y5(t,e,i){let{$$slots:n={},$$scope:o}=e;return t.$$set=l=>{i(0,e=ue(ue({},e),ve(l))),"$$scope"in l&&i(1,o=l.$$scope)},e=ve(e),[e,o,n]}var Ku=class extends H{constructor(e){super(),U(this,e,y5,v5,F,{})}},a0=Ku;function w5(t){let e,i;return e=new a0({props:{style:t[0]}}),{c(){V(e.$$.fragment)},m(n,o){A(e,n,o),i=!0},p(n,[o]){let l={};o&1&&(l.style=n[0]),e.$set(l)},i(n){i||(d(e.$$.fragment,n),i=!0)},o(n){_(e.$$.fragment,n),i=!1},d(n){L(e,n)}}}function k5(t,e,i){let n,{reversed:o=!1}=e;return t.$$set=l=>{"reversed"in l&&i(1,o=l.reversed)},t.$$.update=()=>{t.$$.dirty&2&&i(0,n=o?"transform: scaleX(-1);":void 0)},[n,o]}var Wu=class extends H{constructor(e){super(),U(this,e,k5,w5,F,{reversed:1})}},u0=Wu;function S5(t){let e,i,n,o,l,r,a,s,u,f,p,h,w,g,C,b,E=t[2].default,v=Ie(E,t,t[1],null),y=[{xmlns:"http://www.w3.org/2000/svg"},{width:"48"},{height:"48"},{fill:"none"},{"aria-hidden":"true"},{"data-testid":"subtitles-on-icon"},{role:"img"},t[0]],P={};for(let W=0;W<y.length;W+=1)P=ue(P,y[W]);return{c(){e=R("svg"),v&&v.c(),i=R("g"),n=R("path"),o=R("path"),l=R("defs"),r=R("clipPath"),a=R("path"),s=R("filter"),u=R("feFlood"),f=R("feColorMatrix"),p=R("feOffset"),h=R("feGaussianBlur"),w=R("feColorMatrix"),g=R("feBlend"),C=R("feBlend"),c(n,"fill","#fff"),c(n,"fill-rule","evenodd"),c(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"),c(n,"clip-rule","evenodd"),c(o,"stroke","#000"),c(o,"stroke-opacity",".12"),c(o,"stroke-width",".5"),c(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"),c(i,"clip-path","url(#c)"),c(i,"filter","url(#a)"),c(a,"fill","#fff"),c(a,"d","M0 0h48v48H0z"),c(r,"id","c"),c(u,"flood-opacity","0"),c(u,"result","BackgroundImageFix"),c(f,"in","SourceAlpha"),c(f,"result","hardAlpha"),c(f,"values","0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0"),c(h,"stdDeviation","2.5"),c(w,"values","0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.16 0"),c(g,"in2","BackgroundImageFix"),c(g,"result","effect1_dropShadow_2260_104204"),c(C,"in","SourceGraphic"),c(C,"in2","effect1_dropShadow_2260_104204"),c(C,"result","shape"),c(s,"id","a"),c(s,"width","51"),c(s,"height","45"),c(s,"x","-1.5"),c(s,"y","1.5"),c(s,"color-interpolation-filters","sRGB"),c(s,"filterUnits","userSpaceOnUse"),ye(e,P)},m(W,B){S(W,e,B),v&&v.m(e,null),m(e,i),m(i,n),m(i,o),m(e,l),m(l,r),m(r,a),m(l,s),m(s,u),m(s,f),m(s,p),m(s,h),m(s,w),m(s,g),m(s,C),b=!0},p(W,[B]){v&&v.p&&(!b||B&2)&&Ae(v,E,W,W[1],b?Ee(E,W[1],B,null):Le(W[1]),null),ye(e,P=Be(y,[{xmlns:"http://www.w3.org/2000/svg"},{width:"48"},{height:"48"},{fill:"none"},{"aria-hidden":"true"},{"data-testid":"subtitles-on-icon"},{role:"img"},B&1&&W[0]]))},i(W){b||(d(v,W),b=!0)},o(W){_(v,W),b=!1},d(W){W&&k(e),v&&v.d(W)}}}function C5(t,e,i){let{$$slots:n={},$$scope:o}=e;return t.$$set=l=>{i(0,e=ue(ue({},e),ve(l))),"$$scope"in l&&i(1,o=l.$$scope)},e=ve(e),[e,o,n]}var ju=class extends H{constructor(e){super(),U(this,e,C5,S5,F,{})}},c0=ju;function T5(t){let e,i,n,o,l,r,a,s,u,f,p,h,w,g,C,b,E,v=t[2].default,y=Ie(v,t,t[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"},t[0]],W={};for(let B=0;B<P.length;B+=1)W=ue(W,P[B]);return{c(){e=R("svg"),y&&y.c(),i=R("g"),n=R("path"),o=R("path"),l=R("path"),r=R("defs"),a=R("clipPath"),s=R("path"),u=R("filter"),f=R("feFlood"),p=R("feColorMatrix"),h=R("feOffset"),w=R("feGaussianBlur"),g=R("feColorMatrix"),C=R("feBlend"),b=R("feBlend"),c(n,"fill","#fff"),c(n,"fill-rule","evenodd"),c(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"),c(n,"clip-rule","evenodd"),c(o,"fill","#fff"),c(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"),c(l,"stroke","#000"),c(l,"stroke-opacity",".12"),c(l,"stroke-width",".5"),c(l,"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"),c(i,"clip-path","url(#c)"),c(i,"filter","url(#a)"),c(s,"fill","#fff"),c(s,"d","M0 0h48v48H0z"),c(a,"id","c"),c(f,"flood-opacity","0"),c(f,"result","BackgroundImageFix"),c(p,"in","SourceAlpha"),c(p,"result","hardAlpha"),c(p,"values","0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0"),c(w,"stdDeviation","2.5"),c(g,"values","0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.16 0"),c(C,"in2","BackgroundImageFix"),c(C,"result","effect1_dropShadow_2260_104293"),c(b,"in","SourceGraphic"),c(b,"in2","effect1_dropShadow_2260_104293"),c(b,"result","shape"),c(u,"id","a"),c(u,"width","51"),c(u,"height","51"),c(u,"x","-1.5"),c(u,"y","-1.5"),c(u,"color-interpolation-filters","sRGB"),c(u,"filterUnits","userSpaceOnUse"),ye(e,W)},m(B,O){S(B,e,O),y&&y.m(e,null),m(e,i),m(i,n),m(i,o),m(i,l),m(e,r),m(r,a),m(a,s),m(r,u),m(u,f),m(u,p),m(u,h),m(u,w),m(u,g),m(u,C),m(u,b),E=!0},p(B,[O]){y&&y.p&&(!E||O&2)&&Ae(y,v,B,B[1],E?Ee(v,B[1],O,null):Le(B[1]),null),ye(e,W=Be(P,[{xmlns:"http://www.w3.org/2000/svg"},{width:"48"},{height:"48"},{fill:"none"},{"aria-hidden":"true"},{"data-testid":"subtitles-off-icon"},{role:"img"},O&1&&B[0]]))},i(B){E||(d(y,B),E=!0)},o(B){_(y,B),E=!1},d(B){B&&k(e),y&&y.d(B)}}}function P5(t,e,i){let{$$slots:n={},$$scope:o}=e;return t.$$set=l=>{i(0,e=ue(ue({},e),ve(l))),"$$scope"in l&&i(1,o=l.$$scope)},e=ve(e),[e,o,n]}var Gu=class extends H{constructor(e){super(),U(this,e,P5,T5,F,{})}},f0=Gu;function I5(t){let e,i;return e=new c0({}),{c(){V(e.$$.fragment)},m(n,o){A(e,n,o),i=!0},i(n){i||(d(e.$$.fragment,n),i=!0)},o(n){_(e.$$.fragment,n),i=!1},d(n){L(e,n)}}}function E5(t){let e,i;return e=new f0({}),{c(){V(e.$$.fragment)},m(n,o){A(e,n,o),i=!0},i(n){i||(d(e.$$.fragment,n),i=!0)},o(n){_(e.$$.fragment,n),i=!1},d(n){L(e,n)}}}function A5(t){let e,i,n,o,l=[E5,I5],r=[];function a(s,u){return s[0]?0:1}return e=a(t,-1),i=r[e]=l[e](t),{c(){i.c(),n=ct()},m(s,u){r[e].m(s,u),S(s,n,u),o=!0},p(s,[u]){let f=e;e=a(s,u),e!==f&&(me(),_(r[f],1,1,()=>{r[f]=null}),pe(),i=r[e],i||(i=r[e]=l[e](s),i.c()),d(i,1),i.m(n.parentNode,n))},i(s){o||(d(i),o=!0)},o(s){_(i),o=!1},d(s){s&&k(n),r[e].d(s)}}}function L5(t,e,i){let{isOff:n=!1}=e;return t.$$set=o=>{"isOff"in o&&i(0,n=o.isOff)},[n]}var Qu=class extends H{constructor(e){super(),U(this,e,L5,A5,F,{isOff:0})}},Yu=Qu;function M5(t){let e,i,n,o,l,r,a,s,u,f,p,h,w,g,C=t[2].default,b=Ie(C,t,t[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"},t[0]],v={};for(let y=0;y<E.length;y+=1)v=ue(v,E[y]);return{c(){e=R("svg"),b&&b.c(),i=R("g"),n=R("path"),o=R("path"),l=R("defs"),r=R("filter"),a=R("feFlood"),s=R("feColorMatrix"),u=R("feOffset"),f=R("feGaussianBlur"),p=R("feColorMatrix"),h=R("feBlend"),w=R("feBlend"),c(n,"fill","#fff"),c(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"),c(o,"stroke","#000"),c(o,"stroke-opacity",".12"),c(o,"stroke-width",".5"),c(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"),c(i,"filter","url(#a)"),c(a,"flood-opacity","0"),c(a,"result","BackgroundImageFix"),c(s,"in","SourceAlpha"),c(s,"result","hardAlpha"),c(s,"values","0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0"),c(f,"stdDeviation","2.5"),c(p,"values","0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.16 0"),c(h,"in2","BackgroundImageFix"),c(h,"result","effect1_dropShadow_2260_106627"),c(w,"in","SourceGraphic"),c(w,"in2","effect1_dropShadow_2260_106627"),c(w,"result","shape"),c(r,"id","a"),c(r,"width","40.098"),c(r,"height","27.785"),c(r,"x","3.402"),c(r,"y","10.105"),c(r,"color-interpolation-filters","sRGB"),c(r,"filterUnits","userSpaceOnUse"),ye(e,v)},m(y,P){S(y,e,P),b&&b.m(e,null),m(e,i),m(i,n),m(i,o),m(e,l),m(l,r),m(r,a),m(r,s),m(r,u),m(r,f),m(r,p),m(r,h),m(r,w),g=!0},p(y,[P]){b&&b.p&&(!g||P&2)&&Ae(b,C,y,y[1],g?Ee(C,y[1],P,null):Le(y[1]),null),ye(e,v=Be(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&&y[0]]))},i(y){g||(d(b,y),g=!0)},o(y){_(b,y),g=!1},d(y){y&&k(e),b&&b.d(y)}}}function V5(t,e,i){let{$$slots:n={},$$scope:o}=e;return t.$$set=l=>{i(0,e=ue(ue({},e),ve(l))),"$$scope"in l&&i(1,o=l.$$scope)},e=ve(e),[e,o,n]}var Zu=class extends H{constructor(e){super(),U(this,e,V5,M5,F,{})}},d0=Zu;function R5(t){let e,i;return e=new d0({props:{style:t[0]}}),{c(){V(e.$$.fragment)},m(n,o){A(e,n,o),i=!0},p(n,[o]){let l={};o&1&&(l.style=n[0]),e.$set(l)},i(n){i||(d(e.$$.fragment,n),i=!0)},o(n){_(e.$$.fragment,n),i=!1},d(n){L(e,n)}}}function B5(t,e,i){let n,{reversed:o=!1}=e;return t.$$set=l=>{"reversed"in l&&i(1,o=l.reversed)},t.$$.update=()=>{t.$$.dirty&2&&i(0,n=o?"transform: scaleX(-1);":void 0)},[n,o]}var Xu=class extends H{constructor(e){super(),U(this,e,B5,R5,F,{reversed:1})}},m0=Xu;function q5(t){let e,i,n,o,l,r,a,s,u,f,p,h,w,g,C=t[2].default,b=Ie(C,t,t[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"},t[0]],v={};for(let y=0;y<E.length;y+=1)v=ue(v,E[y]);return{c(){e=R("svg"),b&&b.c(),i=R("g"),n=R("path"),o=R("path"),l=R("defs"),r=R("filter"),a=R("feFlood"),s=R("feColorMatrix"),u=R("feOffset"),f=R("feGaussianBlur"),p=R("feColorMatrix"),h=R("feBlend"),w=R("feBlend"),c(n,"fill","#fff"),c(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"),c(o,"stroke","#000"),c(o,"stroke-opacity",".12"),c(o,"stroke-width",".5"),c(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"),c(i,"filter","url(#a)"),c(a,"flood-opacity","0"),c(a,"result","BackgroundImageFix"),c(s,"in","SourceAlpha"),c(s,"result","hardAlpha"),c(s,"values","0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0"),c(f,"stdDeviation","2.5"),c(p,"values","0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.16 0"),c(h,"in2","BackgroundImageFix"),c(h,"result","effect1_dropShadow_2340_106922"),c(w,"in","SourceGraphic"),c(w,"in2","effect1_dropShadow_2340_106922"),c(w,"result","shape"),c(r,"id","a"),c(r,"width","37"),c(r,"height","37"),c(r,"x","5.5"),c(r,"y","5.5"),c(r,"color-interpolation-filters","sRGB"),c(r,"filterUnits","userSpaceOnUse"),ye(e,v)},m(y,P){S(y,e,P),b&&b.m(e,null),m(e,i),m(i,n),m(i,o),m(e,l),m(l,r),m(r,a),m(r,s),m(r,u),m(r,f),m(r,p),m(r,h),m(r,w),g=!0},p(y,[P]){b&&b.p&&(!g||P&2)&&Ae(b,C,y,y[1],g?Ee(C,y[1],P,null):Le(y[1]),null),ye(e,v=Be(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&&y[0]]))},i(y){g||(d(b,y),g=!0)},o(y){_(b,y),g=!1},d(y){y&&k(e),b&&b.d(y)}}}function D5(t,e,i){let{$$slots:n={},$$scope:o}=e;return t.$$set=l=>{i(0,e=ue(ue({},e),ve(l))),"$$scope"in l&&i(1,o=l.$$scope)},e=ve(e),[e,o,n]}var Ju=class extends H{constructor(e){super(),U(this,e,D5,q5,F,{})}},p0=Ju;function N5(t){let e,i;return e=new p0({props:{style:t[0]}}),{c(){V(e.$$.fragment)},m(n,o){A(e,n,o),i=!0},p(n,[o]){let l={};o&1&&(l.style=n[0]),e.$set(l)},i(n){i||(d(e.$$.fragment,n),i=!0)},o(n){_(e.$$.fragment,n),i=!1},d(n){L(e,n)}}}function O5(t,e,i){let n,{reversed:o=!1}=e;return t.$$set=l=>{"reversed"in l&&i(1,o=l.reversed)},t.$$.update=()=>{t.$$.dirty&2&&i(0,n=o?"transform: scaleX(-1);":void 0)},[n,o]}var xu=class extends H{constructor(e){super(),U(this,e,O5,N5,F,{reversed:1})}},_0=xu;function F5(t){Te(t,"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 h0(t){let e,i=["BACKWARD_SEEK","FORWARD_SEEK"].includes(t[4]),n,o,l,r,a,s,u=["RATE_DOWN","RATE_UP"].includes(t[4]),f,p=["EPISODE_PREV","EPISODE_NEXT"].includes(t[4]),h,w,g,C,b,E=i&&g0(t),v=t[4]==="PAUSE"&&b0(t),y=t[4]==="PLAY"&&v0(t),P=t[4]==="REPLAY"&&y0(t),W=t[4]==="SUBTITLES_OFF"&&w0(t),B=t[4]==="SUBTITLES_ON"&&k0(t),O=u&&S0(t),ne=p&&C0(t),ge=t[4]==="MUTE"&&T0(t),G=t[4]==="VOLUME"&&P0(t),X=t[5]&&I0(t);return{c(){e=T("div"),E&&E.c(),n=M(),v&&v.c(),o=M(),y&&y.c(),l=M(),P&&P.c(),r=M(),W&&W.c(),a=M(),B&&B.c(),s=M(),O&&O.c(),f=M(),ne&&ne.c(),h=M(),ge&&ge.c(),w=M(),G&&G.c(),g=M(),X&&X.c(),C=ct(),c(e,"class","svelte-1ad3n06")},m(ae,j){S(ae,e,j),E&&E.m(e,null),m(e,n),v&&v.m(e,null),m(e,o),y&&y.m(e,null),m(e,l),P&&P.m(e,null),m(e,r),W&&W.m(e,null),m(e,a),B&&B.m(e,null),m(e,s),O&&O.m(e,null),m(e,f),ne&&ne.m(e,null),m(e,h),ge&&ge.m(e,null),m(e,w),G&&G.m(e,null),S(ae,g,j),X&&X.m(ae,j),S(ae,C,j),b=!0},p(ae,j){j&16&&(i=["BACKWARD_SEEK","FORWARD_SEEK"].includes(ae[4])),i?E?(E.p(ae,j),j&16&&d(E,1)):(E=g0(ae),E.c(),d(E,1),E.m(e,n)):E&&(me(),_(E,1,1,()=>{E=null}),pe()),ae[4]==="PAUSE"?v?j&16&&d(v,1):(v=b0(ae),v.c(),d(v,1),v.m(e,o)):v&&(me(),_(v,1,1,()=>{v=null}),pe()),ae[4]==="PLAY"?y?j&16&&d(y,1):(y=v0(ae),y.c(),d(y,1),y.m(e,l)):y&&(me(),_(y,1,1,()=>{y=null}),pe()),ae[4]==="REPLAY"?P?j&16&&d(P,1):(P=y0(ae),P.c(),d(P,1),P.m(e,r)):P&&(me(),_(P,1,1,()=>{P=null}),pe()),ae[4]==="SUBTITLES_OFF"?W?j&16&&d(W,1):(W=w0(ae),W.c(),d(W,1),W.m(e,a)):W&&(me(),_(W,1,1,()=>{W=null}),pe()),ae[4]==="SUBTITLES_ON"?B?j&16&&d(B,1):(B=k0(ae),B.c(),d(B,1),B.m(e,s)):B&&(me(),_(B,1,1,()=>{B=null}),pe()),j&16&&(u=["RATE_DOWN","RATE_UP"].includes(ae[4])),u?O?(O.p(ae,j),j&16&&d(O,1)):(O=S0(ae),O.c(),d(O,1),O.m(e,f)):O&&(me(),_(O,1,1,()=>{O=null}),pe()),j&16&&(p=["EPISODE_PREV","EPISODE_NEXT"].includes(ae[4])),p?ne?(ne.p(ae,j),j&16&&d(ne,1)):(ne=C0(ae),ne.c(),d(ne,1),ne.m(e,h)):ne&&(me(),_(ne,1,1,()=>{ne=null}),pe()),ae[4]==="MUTE"?ge?j&16&&d(ge,1):(ge=T0(ae),ge.c(),d(ge,1),ge.m(e,w)):ge&&(me(),_(ge,1,1,()=>{ge=null}),pe()),ae[4]==="VOLUME"?G?j&16&&d(G,1):(G=P0(ae),G.c(),d(G,1),G.m(e,null)):G&&(me(),_(G,1,1,()=>{G=null}),pe()),ae[5]?X?X.p(ae,j):(X=I0(ae),X.c(),X.m(C.parentNode,C)):X&&(X.d(1),X=null)},i(ae){b||(d(E),d(v),d(y),d(P),d(W),d(B),d(O),d(ne),d(ge),d(G),b=!0)},o(ae){_(E),_(v),_(y),_(P),_(W),_(B),_(O),_(ne),_(ge),_(G),b=!1},d(ae){ae&&(k(e),k(g),k(C)),E&&E.d(),v&&v.d(),y&&y.d(),P&&P.d(),W&&W.d(),B&&B.d(),O&&O.d(),ne&&ne.d(),ge&&ge.d(),G&&G.d(),X&&X.d(ae)}}}function g0(t){let e,i;return e=new u0({props:{reversed:t[4]==="FORWARD_SEEK"}}),{c(){V(e.$$.fragment)},m(n,o){A(e,n,o),i=!0},p(n,o){let l={};o&16&&(l.reversed=n[4]==="FORWARD_SEEK"),e.$set(l)},i(n){i||(d(e.$$.fragment,n),i=!0)},o(n){_(e.$$.fragment,n),i=!1},d(n){L(e,n)}}}function b0(t){let e,i;return e=new Lr({}),{c(){V(e.$$.fragment)},m(n,o){A(e,n,o),i=!0},i(n){i||(d(e.$$.fragment,n),i=!0)},o(n){_(e.$$.fragment,n),i=!1},d(n){L(e,n)}}}function v0(t){let e,i;return e=new _l({}),{c(){V(e.$$.fragment)},m(n,o){A(e,n,o),i=!0},i(n){i||(d(e.$$.fragment,n),i=!0)},o(n){_(e.$$.fragment,n),i=!1},d(n){L(e,n)}}}function y0(t){let e,i;return e=new zr({}),{c(){V(e.$$.fragment)},m(n,o){A(e,n,o),i=!0},i(n){i||(d(e.$$.fragment,n),i=!0)},o(n){_(e.$$.fragment,n),i=!1},d(n){L(e,n)}}}function w0(t){let e,i;return e=new Yu({props:{isOff:!0}}),{c(){V(e.$$.fragment)},m(n,o){A(e,n,o),i=!0},i(n){i||(d(e.$$.fragment,n),i=!0)},o(n){_(e.$$.fragment,n),i=!1},d(n){L(e,n)}}}function k0(t){let e,i;return e=new Yu({}),{c(){V(e.$$.fragment)},m(n,o){A(e,n,o),i=!0},i(n){i||(d(e.$$.fragment,n),i=!0)},o(n){_(e.$$.fragment,n),i=!1},d(n){L(e,n)}}}function S0(t){let e,i;return e=new m0({props:{reversed:t[4]==="RATE_UP"}}),{c(){V(e.$$.fragment)},m(n,o){A(e,n,o),i=!0},p(n,o){let l={};o&16&&(l.reversed=n[4]==="RATE_UP"),e.$set(l)},i(n){i||(d(e.$$.fragment,n),i=!0)},o(n){_(e.$$.fragment,n),i=!1},d(n){L(e,n)}}}function C0(t){let e,i;return e=new _0({props:{reversed:t[4]==="EPISODE_NEXT"}}),{c(){V(e.$$.fragment)},m(n,o){A(e,n,o),i=!0},p(n,o){let l={};o&16&&(l.reversed=n[4]==="EPISODE_NEXT"),e.$set(l)},i(n){i||(d(e.$$.fragment,n),i=!0)},o(n){_(e.$$.fragment,n),i=!1},d(n){L(e,n)}}}function T0(t){let e,i;return e=new Ho({props:{volume:0}}),{c(){V(e.$$.fragment)},m(n,o){A(e,n,o),i=!0},i(n){i||(d(e.$$.fragment,n),i=!0)},o(n){_(e.$$.fragment,n),i=!1},d(n){L(e,n)}}}function P0(t){let e,i;return e=new Ho({props:{volume:1}}),{c(){V(e.$$.fragment)},m(n,o){A(e,n,o),i=!0},i(n){i||(d(e.$$.fragment,n),i=!0)},o(n){_(e.$$.fragment,n),i=!1},d(n){L(e,n)}}}function I0(t){let e,i;return{c(){e=T("span"),i=Re(t[5]),c(e,"class","hot-key-helpers-text svelte-1ad3n06")},m(n,o){S(n,e,o),m(e,i)},p(n,o){o&32&&Ge(i,n[5])},d(n){n&&k(e)}}}function z5(t){let e,i,n=!t[1]&&t[4]&&h0(t);return{c(){e=T("div"),n&&n.c(),c(e,"class","hot-key-helpers-container svelte-1ad3n06"),q(e,"hidden",t[1]),q(e,"hot-key-helpers-container--left",t[2]),q(e,"hot-key-helpers-container--right",t[3])},m(o,l){S(o,e,l),n&&n.m(e,null),i=!0},p(o,[l]){!o[1]&&o[4]?n?(n.p(o,l),l&18&&d(n,1)):(n=h0(o),n.c(),d(n,1),n.m(e,null)):n&&(me(),_(n,1,1,()=>{n=null}),pe()),(!i||l&2)&&q(e,"hidden",o[1]),(!i||l&4)&&q(e,"hot-key-helpers-container--left",o[2]),(!i||l&8)&&q(e,"hot-key-helpers-container--right",o[3])},i(o){i||(d(n),i=!0)},o(o){_(n),i=!1},d(o){o&&k(e),n&&n.d()}}}function H5(t,e,i){let n,o=Ce,l=()=>(o(),o=Ht(r,h=>i(6,n=h)),r);t.$$.on_destroy.push(()=>o());let{data:r}=e;l();let a,s,u,f,p;return t.$$set=h=>{"data"in h&&l(i(0,r=h.data))},t.$$.update=()=>{t.$$.dirty&64&&(i(1,a=!n),i(2,s=n?.type==="BACKWARD_SEEK"),i(3,u=n?.type==="FORWARD_SEEK"),i(4,f=n?.type),n?.t?i(5,p=N(n.t.key,{value:n.t.value||""})):i(5,p=n?.text))},[r,a,s,u,f,p,n]}var $u=class extends H{constructor(e){super(),U(this,e,H5,z5,F,{data:0},F5)}},E0=$u;function U5(t){Te(t,"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 K5(t){let e,i,n,o,l,r,a,s,u,f,p,h,w,g,C,b,E,v,y;return l=new jn({props:{direction:"up"}}),s=new jn({props:{direction:"up"}}),h=new jn({props:{direction:"up"}}),C=new jn({props:{direction:"up"}}),{c(){e=T("div"),i=T("div"),n=T("div"),o=T("div"),V(l.$$.fragment),r=M(),a=T("div"),V(s.$$.fragment),u=M(),f=T("div"),p=T("div"),V(h.$$.fragment),w=M(),g=T("div"),V(C.$$.fragment),c(o,"class","button button-up svelte-1yzc86r"),c(a,"class","button button-right svelte-1yzc86r"),c(n,"class","button-row svelte-1yzc86r"),c(p,"class","button button-left svelte-1yzc86r"),c(g,"class","button button-down svelte-1yzc86r"),c(f,"class","button-row svelte-1yzc86r"),c(i,"class","button-block svelte-1yzc86r"),c(i,"aria-hidden","true"),c(e,"class","immersive-controls svelte-1yzc86r"),c(e,"tabindex","0"),c(e,"role","button"),c(e,"aria-label",b=N("aria_label_spherical_control")),q(e,"m-shifted",t[0])},m(P,W){S(P,e,W),m(e,i),m(i,n),m(n,o),A(l,o,null),m(n,r),m(n,a),A(s,a,null),m(i,u),m(i,f),m(f,p),A(h,p,null),m(f,w),m(f,g),A(C,g,null),E=!0,v||(y=[_e(o,"mousedown",t[1]),_e(o,"mouseup",t[5]),_e(o,"mouseleave",t[5]),_e(a,"mousedown",t[3]),_e(a,"mouseup",t[5]),_e(a,"mouseleave",t[5]),_e(p,"mousedown",t[4]),_e(p,"mouseup",t[5]),_e(p,"mouseleave",t[5]),_e(g,"mousedown",t[2]),_e(g,"mouseup",t[5]),_e(g,"mouseleave",t[5]),_e(e,"keydown",t[6]),_e(e,"keyup",t[7])],v=!0)},p(P,[W]){(!E||W&1)&&q(e,"m-shifted",P[0])},i(P){E||(d(l.$$.fragment,P),d(s.$$.fragment,P),d(h.$$.fragment,P),d(C.$$.fragment,P),E=!0)},o(P){_(l.$$.fragment,P),_(s.$$.fragment,P),_(h.$$.fragment,P),_(C.$$.fragment,P),E=!1},d(P){P&&k(e),L(l),L(s),L(h),L(C),v=!1,tt(y)}}}function W5(t,e,i){let{isShifted:n=!1}=e,o=it(),l=new Set(["ArrowUp","ArrowDown","ArrowLeft","ArrowRight"]),r=()=>{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)},f=()=>(o.actions.internal.stopCameraManualRotation(),null),p=w=>{if(l.has(w.code))switch(w.preventDefault(),w.stopPropagation(),w.code){case"ArrowUp":r();break;case"ArrowDown":a();break;case"ArrowLeft":u();break;case"ArrowRight":s();break}},h=w=>{l.has(w.code)&&(w.preventDefault(),w.stopPropagation(),f())};return t.$$set=w=>{"isShifted"in w&&i(0,n=w.isShifted)},[n,r,a,s,u,f,p,h]}var ec=class extends H{constructor(e){super(),U(this,e,W5,K5,F,{isShifted:0},U5)}},$r=ec;function j5(t){Te(t,"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 A0(t,e,i){let n=t.slice();return n[16]=e[i].value,n}function L0(t,e,i){let n=t.slice();return n[16]=e[i].value,n[17]=e[i].timeAppeared,n}function M0(t){let e,i;function n(r,a){return r[7]&&r[8]?Y5:r[5]?Q5:G5}let o=n(t,-1),l=o(t);return{c(){e=T("div"),i=T("span"),l.c(),c(i,"class","caption svelte-ovfyp5"),c(e,"class","subtitles-caption svelte-ovfyp5"),q(e,"mobile",t[3])},m(r,a){S(r,e,a),m(e,i),l.m(i,null)},p(r,a){o===(o=n(r,a))&&l?l.p(r,a):(l.d(1),l=o(r),l&&(l.c(),l.m(i,null))),a&8&&q(e,"mobile",r[3])},d(r){r&&k(e),l.d()}}}function G5(t){let e,i=Pt(t[1]),n=[];for(let o=0;o<i.length;o+=1)n[o]=V0(A0(t,i,o));return{c(){for(let o=0;o<n.length;o+=1)n[o].c();e=ct()},m(o,l){for(let r=0;r<n.length;r+=1)n[r]&&n[r].m(o,l);S(o,e,l)},p(o,l){if(l&18){i=Pt(o[1]);let r;for(r=0;r<i.length;r+=1){let a=A0(o,i,r);n[r]?n[r].p(a,l):(n[r]=V0(a),n[r].c(),n[r].m(e.parentNode,e))}for(;r<n.length;r+=1)n[r].d(1);n.length=i.length}},d(o){o&&k(e),Ei(n,o)}}}function Q5(t){let e,i,n=Pt(t[6]),o=[];for(let l=0;l<n.length;l+=1)o[l]=B0(L0(t,n,l));return{c(){e=T("span"),i=T("span");for(let l=0;l<o.length;l+=1)o[l].c();c(i,"class","caption-segment svelte-ovfyp5"),bi(i,"font-size",t[4]+"px"),c(e,"class","caption-line svelte-ovfyp5")},m(l,r){S(l,e,r),m(e,i);for(let a=0;a<o.length;a+=1)o[a]&&o[a].m(i,null)},p(l,r){if(r&68){n=Pt(l[6]);let a;for(a=0;a<n.length;a+=1){let s=L0(l,n,a);o[a]?o[a].p(s,r):(o[a]=B0(s),o[a].c(),o[a].m(i,null))}for(;a<o.length;a+=1)o[a].d(1);o.length=n.length}r&16&&bi(i,"font-size",l[4]+"px")},d(l){l&&k(e),Ei(o,l)}}}function Y5(t){let e,i,n=N("subtitles_auto_caption")+"",o;return{c(){e=T("span"),i=T("span"),o=Re(n),c(i,"class","caption-segment svelte-ovfyp5"),bi(i,"font-size",t[4]+"px"),c(e,"class","caption-line svelte-ovfyp5")},m(l,r){S(l,e,r),m(e,i),m(i,o)},p(l,r){r&16&&bi(i,"font-size",l[4]+"px")},d(l){l&&k(e)}}}function V0(t){let e,i,n=t[16]+"",o,l;return{c(){e=T("span"),i=T("span"),o=Re(n),l=M(),c(i,"class","caption-segment svelte-ovfyp5"),bi(i,"font-size",t[4]+"px"),c(e,"class","caption-line svelte-ovfyp5")},m(r,a){S(r,e,a),m(e,i),m(i,o),m(e,l)},p(r,a){a&2&&n!==(n=r[16]+"")&&Ge(o,n),a&16&&bi(i,"font-size",r[4]+"px")},d(r){r&&k(e)}}}function R0(t){let e=t[16]+"",i;return{c(){i=Re(e)},m(n,o){S(n,i,o)},p(n,o){o&64&&e!==(e=n[16]+"")&&Ge(i,e)},d(n){n&&k(i)}}}function B0(t){let e,i=(!t[17]||t[17]<=t[2])&&R0(t);return{c(){i&&i.c(),e=ct()},m(n,o){i&&i.m(n,o),S(n,e,o)},p(n,o){!n[17]||n[17]<=n[2]?i?i.p(n,o):(i=R0(n),i.c(),i.m(e.parentNode,e)):i&&(i.d(1),i=null)},d(n){n&&k(e),i&&i.d(n)}}}function Z5(t){let e,i=t[1].length>0&&M0(t);return{c(){e=T("div"),i&&i.c(),c(e,"class","subtitles-container svelte-ovfyp5"),q(e,"shifted",t[0]),q(e,"auto",t[5]&&!t[8])},m(n,o){S(n,e,o),i&&i.m(e,null)},p(n,[o]){n[1].length>0?i?i.p(n,o):(i=M0(n),i.c(),i.m(e,null)):i&&(i.d(1),i=null),o&1&&q(e,"shifted",n[0]),o&288&&q(e,"auto",n[5]&&!n[8])},i:Ce,o:Ce,d(n){n&&k(e),i&&i.d()}}}function X5(t,e,i){let n,o,{shifted:l}=e,{captions:r}=e,{position:a}=e,{playerSize:s}=e,{isMobile:u=!1}=e,f=it(),p=Bt(),h=f.state.currentSubtitle$;D(t,h,y=>i(12,n=y));let w=f.state.isAutoSubtitleCaptionVisible$;D(t,w,y=>i(8,o=y));let g,C,b,E,v;return It(()=>{v=window.setTimeout(()=>{w.set(!1)},p.autoSubtitlesTimeout)}),Un(()=>{window.clearTimeout(v)}),t.$$set=y=>{"shifted"in y&&i(0,l=y.shifted),"captions"in y&&i(1,r=y.captions),"position"in y&&i(2,a=y.position),"playerSize"in y&&i(11,s=y.playerSize),"isMobile"in y&&i(3,u=y.isMobile)},t.$$.update=()=>{if(t.$$.dirty&2048){let y=s.width*.02;i(4,g=y<=p.minSubtitlesFontSize?p.minSubtitlesFontSize:y)}t.$$.dirty&2&&i(5,C=r.some(y=>y.type==="timestamp")),t.$$.dirty&2&&i(6,b=r.reduce((y,{type:P,value:W})=>(P==="timestamp"?y.push({timeAppeared:Number(W),value:""}):y.length===0?y.push({value:String(W)}):y[y.length-1].value=String(W),y),[])),t.$$.dirty&4096&&i(7,E=!!n.isAuto)},[l,r,a,u,g,C,b,E,o,h,w,s,n]}var tc=class extends H{constructor(e){super(),U(this,e,X5,Z5,F,{shifted:0,captions:1,position:2,playerSize:11,isMobile:3},j5)}},es=tc;function J5(t){Te(t,"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(t){let e,i,n;return{c(){e=T("div"),i=Re("\u0412\u0438\u0434\u0435\u043E \u0432\u043E\u0441\u043F\u0440\u043E\u0438\u0437\u0432\u043E\u0434\u0438\u0442\u0441\u044F \u043D\u0430 "),n=Re(t[1]),c(e,"class","text svelte-1o62kpz")},m(o,l){S(o,e,l),m(e,i),m(e,n)},p(o,l){l&2&&Ge(n,o[1])},d(o){o&&k(e)}}}function x5(t){let e,i,n,o,l,r,a=t[1]&&q0(t);return{c(){e=T("div"),i=T("div"),i.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=M(),a&&a.c(),c(i,"class","icon_wrapper svelte-1o62kpz"),c(e,"class","wrapper svelte-1o62kpz"),c(e,"style",o=`background-image: linear-gradient(0deg, rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)), url('${t[0]||""}')`)},m(s,u){S(s,e,u),m(e,i),m(e,n),a&&a.m(e,null),l||(r=_e(e,"click",t[2]),l=!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]||""}')`)&&c(e,"style",o)},i:Ce,o:Ce,d(s){s&&k(e),a&&a.d(),l=!1,r()}}}function $5(t,e,i){let{thumbUrl:n}=e,{chromecastDeviceName:o}=e;function l(r){Cn.call(this,t,r)}return t.$$set=r=>{"thumbUrl"in r&&i(0,n=r.thumbUrl),"chromecastDeviceName"in r&&i(1,o=r.chromecastDeviceName)},[n,o,l]}var ic=class extends H{constructor(e){super(),U(this,e,$5,x5,F,{thumbUrl:0,chromecastDeviceName:1},J5)}},ts=ic;function e6(t){let e,i,n,o=t[2].default,l=Ie(o,t,t[1],null),r=[{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"},t[0]],a={};for(let s=0;s<r.length;s+=1)a=ue(a,r[s]);return{c(){e=R("svg"),l&&l.c(),i=R("path"),c(i,"fill","#fff"),c(i,"fill-rule","evenodd"),c(i,"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"),ye(e,a)},m(s,u){S(s,e,u),l&&l.m(e,null),m(e,i),n=!0},p(s,[u]){l&&l.p&&(!n||u&2)&&Ae(l,o,s,s[1],n?Ee(o,s[1],u,null):Le(s[1]),null),ye(e,a=Be(r,[{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(l,s),n=!0)},o(s){_(l,s),n=!1},d(s){s&&k(e),l&&l.d(s)}}}function t6(t,e,i){let{$$slots:n={},$$scope:o}=e;return t.$$set=l=>{i(0,e=ue(ue({},e),ve(l))),"$$scope"in l&&i(1,o=l.$$scope)},e=ve(e),[e,o,n]}var nc=class extends H{constructor(e){super(),U(this,e,t6,e6,F,{})}},D0=nc;function i6(t){Te(t,"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 n6(t){let e,i,n;return i=new D0({}),{c(){e=T("div"),V(i.$$.fragment),c(e,"class","container svelte-13zpvm8")},m(o,l){S(o,e,l),A(i,e,null),n=!0},p:Ce,i(o){n||(d(i.$$.fragment,o),n=!0)},o(o){_(i.$$.fragment,o),n=!1},d(o){o&&k(e),L(i)}}}var oc=class extends H{constructor(e){super(),U(this,e,null,n6,F,{},i6)}},is=oc;function o6(t){Te(t,"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 l6(t){let e,i,n,o,l,r,a,s,u,f;return l=new _l({}),{c(){e=T("div"),i=T("div"),n=T("div"),o=M(),V(l.$$.fragment),c(n,"class","playButtonBackground svelte-17wno3"),c(i,"class","playButton svelte-17wno3"),c(i,"tabindex","0"),c(i,"role","button"),c(i,"aria-label",r=N("tooltip_play")),c(e,"class","container svelte-17wno3"),c(e,"style",a=`background-color: #222; background-image: url('${t[0]||""}')`),q(e,"hidden",t[1])},m(p,h){S(p,e,h),m(e,i),m(i,n),m(i,o),A(l,i,null),s=!0,u||(f=[_e(i,"keydown",t[3]),_e(e,"click",ot(function(){Ii(t[2])&&t[2].apply(this,arguments)}))],u=!0)},p(p,[h]){t=p,(!s||h&1&&a!==(a=`background-color: #222; background-image: url('${t[0]||""}')`))&&c(e,"style",a),(!s||h&2)&&q(e,"hidden",t[1])},i(p){s||(d(l.$$.fragment,p),s=!0)},o(p){_(l.$$.fragment,p),s=!1},d(p){p&&k(e),L(l),u=!1,tt(f)}}}function r6(t,e,i){let{thumbUrl:n}=e,{hidden:o}=e,{startVideo:l}=e,a=it().ui.startedByKeyboard$,s=u=>{let f=u.code;["Enter","Space"].includes(f)&&(u.stopPropagation(),u.preventDefault(),a.set(!0),l())};return t.$$set=u=>{"thumbUrl"in u&&i(0,n=u.thumbUrl),"hidden"in u&&i(1,o=u.hidden),"startVideo"in u&&i(2,l=u.startVideo)},[n,o,l,s]}var lc=class extends H{constructor(e){super(),U(this,e,r6,l6,F,{thumbUrl:0,hidden:1,startVideo:2,handlePressKey:3},o6)}get handlePressKey(){return this.$$.ctx[3]}},ns=lc;function s6(t){Te(t,"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 s6(t){let e,i;return{c(){e=P("div"),i=Re(t[0]),c(e,"class","title svelte-1bcvcf2"),B(e,"hidden",t[1])},m(n,o){S(n,e,o),m(e,i)},p(n,[o]){o&1&&Ge(i,n[0]),o&2&&B(e,"hidden",n[1])},i:Ce,o:Ce,d(n){n&&k(e)}}}function a6(t,e,i){let{title:n=""}=e,{isHidden:o=!1}=e;return t.$$set=l=>{"title"in l&&i(0,n=l.title),"isHidden"in l&&i(1,o=l.isHidden)},[n,o]}var lc=class extends H{constructor(e){super(),U(this,e,a6,s6,F,{title:0,isHidden:1},r6)}},N0=lc;function u6(t){Pe(t,"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 O0(t){let e,i,n,o,l,r,a;return{c(){e=P("div"),i=P("span"),n=Re(t[0]),o=V(),l=P("span"),l.textContent=`${O("waiting_live_day_value")}`,r=V(),a=P("span"),a.textContent=`${O("waiting_live_colon")}`,c(i,"class","cell__value svelte-1qpxtfg"),c(l,"class","cell__unit svelte-1qpxtfg"),c(e,"class","timer__cell cell svelte-1qpxtfg"),c(a,"class","timer__points svelte-1qpxtfg")},m(s,u){S(s,e,u),m(e,i),m(i,n),m(e,o),m(e,l),S(s,r,u),S(s,a,u)},p(s,u){u&1&&Ge(n,s[0])},d(s){s&&(k(e),k(r),k(a))}}}function F0(t){let e,i,n,o,l,r,a;return{c(){e=P("div"),i=P("span"),n=Re(t[1]),o=V(),l=P("span"),l.textContent=`${O("waiting_live_hour_value")}`,r=V(),a=P("span"),a.textContent=`${O("waiting_live_colon")}`,c(i,"class","cell__value svelte-1qpxtfg"),c(l,"class","cell__unit svelte-1qpxtfg"),c(e,"class","timer__cell cell svelte-1qpxtfg"),c(a,"class","timer__points svelte-1qpxtfg")},m(s,u){S(s,e,u),m(e,i),m(i,n),m(e,o),m(e,l),S(s,r,u),S(s,a,u)},p(s,u){u&2&&Ge(n,s[1])},d(s){s&&(k(e),k(r),k(a))}}}function z0(t){let e,i,n,o,l,r,a;return{c(){e=P("div"),i=P("span"),n=Re(t[2]),o=V(),l=P("span"),l.textContent=`${O("waiting_live_minute_value")}`,r=V(),a=P("span"),a.textContent=`${O("waiting_live_colon")}`,c(i,"class","cell__value svelte-1qpxtfg"),c(l,"class","cell__unit svelte-1qpxtfg"),c(e,"class","timer__cell cell svelte-1qpxtfg"),c(a,"class","timer__points svelte-1qpxtfg")},m(s,u){S(s,e,u),m(e,i),m(i,n),m(e,o),m(e,l),S(s,r,u),S(s,a,u)},p(s,u){u&4&&Ge(n,s[2])},d(s){s&&(k(e),k(r),k(a))}}}function H0(t){let e,i,n,o,l;return{c(){e=P("div"),i=P("span"),n=Re(t[3]),o=V(),l=P("span"),l.textContent=`${O("waiting_live_second_value")}`,c(i,"class","cell__value svelte-1qpxtfg"),c(l,"class","cell__unit svelte-1qpxtfg"),c(e,"class","timer__cell cell svelte-1qpxtfg")},m(r,a){S(r,e,a),m(e,i),m(i,n),m(e,o),m(e,l)},p(r,a){a&8&&Ge(n,r[3])},d(r){r&&k(e)}}}function c6(t){let e,i,n,o,l=t[0]&&O0(t),r=t[1]&&F0(t),a=t[2]&&z0(t),s=t[3]&&H0(t);return{c(){e=P("div"),l&&l.c(),i=V(),r&&r.c(),n=V(),a&&a.c(),o=V(),s&&s.c(),c(e,"class","timer__container svelte-1qpxtfg")},m(u,f){S(u,e,f),l&&l.m(e,null),m(e,i),r&&r.m(e,null),m(e,n),a&&a.m(e,null),m(e,o),s&&s.m(e,null)},p(u,[f]){u[0]?l?l.p(u,f):(l=O0(u),l.c(),l.m(e,i)):l&&(l.d(1),l=null),u[1]?r?r.p(u,f):(r=F0(u),r.c(),r.m(e,n)):r&&(r.d(1),r=null),u[2]?a?a.p(u,f):(a=z0(u),a.c(),a.m(e,o)):a&&(a.d(1),a=null),u[3]?s?s.p(u,f):(s=H0(u),s.c(),s.m(e,null)):s&&(s.d(1),s=null)},i:Ce,o:Ce,d(u){u&&k(e),l&&l.d(),r&&r.d(),a&&a.d(),s&&s.d()}}}function f6(t,e,i){let{startTime:n}=e,{onTimerOver:o}=e,l,r,a,s,u,f=w=>String(w).padStart(2,"0"),p=w=>{let g=Math.floor(w/86400);g&&(w-=g*86400,i(0,l=f(g)));let C=Math.floor(w/3600);i(1,r=f(C));let b=Math.floor(w/60)%60;i(2,a=f(b));let E=w%60;i(3,s=f(E))},h=()=>{let w=Math.floor(Date.now()/1e3),g=n-w;p(g),g>=1?u=requestAnimationFrame(h):o()};return It(()=>{u=requestAnimationFrame(h)}),Hn(()=>{cancelAnimationFrame(u)}),t.$$set=w=>{"startTime"in w&&i(4,n=w.startTime),"onTimerOver"in w&&i(5,o=w.onTimerOver)},[l,r,a,s,n,o]}var rc=class extends H{constructor(e){super(),U(this,e,f6,c6,F,{startTime:4,onTimerOver:5},u6)}},U0=rc;function d6(t){let e,i,n,o,l,r,a=t[2].default,s=Ie(a,t,t[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"},t[0]],f={};for(let p=0;p<u.length;p+=1)f=ue(f,u[p]);return{c(){e=R("svg"),s&&s.c(),i=R("path"),n=R("path"),o=R("path"),l=R("path"),c(i,"fill","#fefffe"),c(i,"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"),hi(i,"opacity",".965"),c(n,"fill","#fefffe"),c(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"),hi(n,"opacity",".965"),c(o,"fill","#fefffe"),c(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"),hi(o,"opacity",".985"),c(l,"fill","#fefffe"),c(l,"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"),hi(l,"opacity",".986"),ye(e,f)},m(p,h){S(p,e,h),s&&s.m(e,null),m(e,i),m(e,n),m(e,o),m(e,l),r=!0},p(p,[h]){s&&s.p&&(!r||h&2)&&Ae(s,a,p,p[1],r?Ee(a,p[1],h,null):Le(p[1]),null),ye(e,f=Be(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&&p[0]]))},i(p){r||(d(s,p),r=!0)},o(p){_(s,p),r=!1},d(p){p&&k(e),s&&s.d(p)}}}function m6(t,e,i){let{$$slots:n={},$$scope:o}=e;return t.$$set=l=>{i(0,e=ue(ue({},e),ve(l))),"$$scope"in l&&i(1,o=l.$$scope)},e=ve(e),[e,o,n]}var sc=class extends H{constructor(e){super(),U(this,e,m6,d6,F,{})}},W0=sc;function p6(t){Pe(t,"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 _6(t){let e,i,n,o,l;return o=new U0({props:{startTime:t[1]||0,onTimerOver:t[3]}}),{c(){e=P("div"),i=P("span"),i.textContent=`${O("waiting_live_timer_title")}`,n=V(),M(o.$$.fragment),c(i,"class","timer__title svelte-15pewff"),c(e,"class","waiting-timer timer svelte-15pewff")},m(r,a){S(r,e,a),m(e,i),m(e,n),A(o,e,null),l=!0},p(r,a){let s={};a&2&&(s.startTime=r[1]||0),a&4&&(s.onTimerOver=r[3]),o.$set(s)},i(r){l||(d(o.$$.fragment,r),l=!0)},o(r){_(o.$$.fragment,r),l=!1},d(r){r&&k(e),L(o)}}}function h6(t){let e,i,n,o,l,r;return n=new W0({}),{c(){e=P("div"),i=P("div"),M(n.$$.fragment),o=V(),l=P("span"),l.textContent=`${O("waiting_live_upcoming_title")}`,c(i,"class","upcoming-icon svelte-15pewff"),c(l,"class","upcoming__title svelte-15pewff"),c(e,"class","upcoming svelte-15pewff")},m(a,s){S(a,e,s),m(e,i),A(n,i,null),m(e,o),m(e,l),r=!0},p:Ce,i(a){r||(d(n.$$.fragment,a),r=!0)},o(a){_(n.$$.fragment,a),r=!1},d(a){a&&k(e),L(n)}}}function g6(t){let e,i,n,o,l,r=[h6,_6],a=[];function s(u,f){return u[2]?0:1}return i=s(t,-1),n=a[i]=r[i](t),{c(){e=P("div"),n.c(),c(e,"class","waiting-container svelte-15pewff"),c(e,"style",o=`background-image: url(${t[2]?"":t[0]})`)},m(u,f){S(u,e,f),a[i].m(e,null),l=!0},p(u,[f]){let p=i;i=s(u,f),i===p?a[i].p(u,f):(me(),_(a[p],1,1,()=>{a[p]=null}),pe(),n=a[i],n?n.p(u,f):(n=a[i]=r[i](u),n.c()),d(n,1),n.m(e,null)),(!l||f&5&&o!==(o=`background-image: url(${u[2]?"":u[0]})`))&&c(e,"style",o)},i(u){l||(d(n),l=!0)},o(u){_(n),l=!1},d(u){u&&k(e),a[i].d()}}}function b6(t,e,i){let n,{thumbUrl:o}=e,{startTime:l}=e,r=()=>i(2,n=!0);return t.$$set=a=>{"thumbUrl"in a&&i(0,o=a.thumbUrl),"startTime"in a&&i(1,l=a.startTime)},t.$$.update=()=>{t.$$.dirty&2&&i(2,n=l===void 0||l<Math.floor(Date.now()/1e3))},[o,l,n,r]}var ac=class extends H{constructor(e){super(),U(this,e,b6,g6,F,{thumbUrl:0,startTime:1},p6)}},os=ac;function v6(t){Pe(t,"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 y6(t){let e,i,n,o,l,r,a,s;return n=new dl({props:{style:"position: static; transform: translate(0, 0)"}}),{c(){e=P("div"),i=P("div"),M(n.$$.fragment),o=V(),l=P("p"),r=Re(t[1]),c(l,"class","waiting-title svelte-xvqwsa"),c(i,"class","waiting-caption svelte-xvqwsa"),c(e,"class","waiting-container svelte-xvqwsa"),c(e,"style",a=`background-image: url('${t[0]}')`)},m(u,f){S(u,e,f),m(e,i),A(n,i,null),m(i,o),m(i,l),m(l,r),s=!0},p(u,[f]){(!s||f&2)&&Ge(r,u[1]),(!s||f&1&&a!==(a=`background-image: url('${u[0]}')`))&&c(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 w6(t,e,i){let{thumbUrl:n=""}=e,{kind:o}=e,l;return t.$$set=r=>{"thumbUrl"in r&&i(0,n=r.thumbUrl),"kind"in r&&i(2,o=r.kind)},t.$$.update=()=>{if(t.$$.dirty&4){let r={recover:O("waiting_live_recover_title"),record:O("waiting_record_title")};i(1,l=r[o]||"")}},[n,l,o]}var uc=class extends H{constructor(e){super(),U(this,e,w6,y6,F,{thumbUrl:0,kind:2},v6)}},gl=uc;var{window:k6}=Po;function C6(t){Pe(t,"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 j0(t){let e,i;return e=new os({props:{thumbUrl:t[3],startTime:t[4]?.startTime}}),{c(){M(e.$$.fragment)},m(n,o){A(e,n,o),i=!0},p(n,o){let l={};o[0]&8&&(l.thumbUrl=n[3]),o[0]&16&&(l.startTime=n[4]?.startTime),e.$set(l)},i(n){i||(d(e.$$.fragment,n),i=!0)},o(n){_(e.$$.fragment,n),i=!1},d(n){L(e,n)}}}function G0(t){let e,i;return e=new gl({props:{kind:"recover",thumbUrl:t[3]}}),{c(){M(e.$$.fragment)},m(n,o){A(e,n,o),i=!0},p(n,o){let l={};o[0]&8&&(l.thumbUrl=n[3]),e.$set(l)},i(n){i||(d(e.$$.fragment,n),i=!0)},o(n){_(e.$$.fragment,n),i=!1},d(n){L(e,n)}}}function Q0(t){let e,i;return e=new gl({props:{kind:"record",thumbUrl:t[3]}}),{c(){M(e.$$.fragment)},m(n,o){A(e,n,o),i=!0},p(n,o){let l={};o[0]&8&&(l.thumbUrl=n[3]),e.$set(l)},i(n){i||(d(e.$$.fragment,n),i=!0)},o(n){_(e.$$.fragment,n),i=!1},d(n){L(e,n)}}}function Y0(t){let e,i,n;return i=new ur({props:{adsSlotId:t[8],adsParams:t[9],adsPreviewParam:t[10],duration:t[11]}}),{c(){e=P("div"),M(i.$$.fragment),c(e,"class","ads-container svelte-12e19rp"),B(e,"hidden",t[38]!=="ads")},m(o,l){S(o,e,l),A(i,e,null),n=!0},p(o,l){let r={};l[0]&256&&(r.adsSlotId=o[8]),l[0]&512&&(r.adsParams=o[9]),l[0]&1024&&(r.adsPreviewParam=o[10]),l[0]&2048&&(r.duration=o[11]),i.$set(r),(!n||l[1]&128)&&B(e,"hidden",o[38]!=="ads")},i(o){n||(d(i.$$.fragment,o),n=!0)},o(o){_(i.$$.fragment,o),n=!1},d(o){o&&k(e),L(i)}}}function Z0(t){let e,i;return e=new gd({props:{title:t[18],thumb:t[19],playNextVideo:t[23]}}),{c(){M(e.$$.fragment)},m(n,o){A(e,n,o),i=!0},p(n,o){let l={};o[0]&262144&&(l.title=n[18]),o[0]&524288&&(l.thumb=n[19]),o[0]&8388608&&(l.playNextVideo=n[23]),e.$set(l)},i(n){i||(d(e.$$.fragment,n),i=!0)},o(n){_(e.$$.fragment,n),i=!1},d(n){L(e,n)}}}function X0(t){let e,i;return e=new N0({props:{title:t[2],isHidden:!t[36]}}),{c(){M(e.$$.fragment)},m(n,o){A(e,n,o),i=!0},p(n,o){let l={};o[0]&4&&(l.title=n[2]),o[1]&32&&(l.isHidden=!n[36]),e.$set(l)},i(n){i||(d(e.$$.fragment,n),i=!0)},o(n){_(e.$$.fragment,n),i=!1},d(n){L(e,n)}}}function J0(t){let e,i;return e=new $r({props:{isShifted:t[38]==="video"&&t[36]}}),{c(){M(e.$$.fragment)},m(n,o){A(e,n,o),i=!0},p(n,o){let l={};o[1]&160&&(l.isShifted=n[38]==="video"&&n[36]),e.$set(l)},i(n){i||(d(e.$$.fragment,n),i=!0)},o(n){_(e.$$.fragment,n),i=!1},d(n){L(e,n)}}}function x0(t){let e,i,n;return i=new $l({props:{"aria-label":O("video360")}}),{c(){e=P("div"),M(i.$$.fragment),c(e,"class","spherical-video-icon svelte-12e19rp")},m(o,l){S(o,e,l),A(i,e,null),n=!0},i(o){n||(d(i.$$.fragment,o),n=!0)},o(o){_(i.$$.fragment,o),n=!1},d(o){o&&k(e),L(i)}}}function $0(t){let e,i;return e=new ts({props:{thumbUrl:t[3],chromecastDeviceName:t[54]}}),{c(){M(e.$$.fragment)},m(n,o){A(e,n,o),i=!0},p(n,o){let l={};o[0]&8&&(l.thumbUrl=n[3]),o[1]&8388608&&(l.chromecastDeviceName=n[54]),e.$set(l)},i(n){i||(d(e.$$.fragment,n),i=!0)},o(n){_(e.$$.fragment,n),i=!1},d(n){L(e,n)}}}function ep(t){let e,i;return e=new es({props:{shifted:t[36],captions:t[56],position:t[57],playerSize:t[34]}}),{c(){M(e.$$.fragment)},m(n,o){A(e,n,o),i=!0},p(n,o){let l={};o[1]&32&&(l.shifted=n[36]),o[1]&33554432&&(l.captions=n[56]),o[1]&67108864&&(l.position=n[57]),o[1]&8&&(l.playerSize=n[34]),e.$set(l)},i(n){i||(d(e.$$.fragment,n),i=!0)},o(n){_(e.$$.fragment,n),i=!1},d(n){L(e,n)}}}function tp(t){let e,i,n,o,l;return i=new is({}),{c(){e=P("div"),M(i.$$.fragment)},m(r,a){S(r,e,a),A(i,e,null),n=!0,o||(l=[he(e,"contextmenu",Wt(t[108])),he(e,"click",st(t[119]))],o=!0)},p:Ce,i(r){n||(d(i.$$.fragment,r),n=!0)},o(r){_(i.$$.fragment,r),n=!1},d(r){r&&k(e),L(i),o=!1,tt(l)}}}function ip(t){let e,i,n;function o(r){t[158](r)}let l={bottomHidden:t[38]==="thumb"||t[38]==="LiveWaitingStart"||t[38]==="LiveWaitingRecover"||t[38]==="LiveWaitingRecord",bottomNoSmooth:t[50],showControls:t[36],isAds:t[38]==="ads",canRewindLive:t[6]&&t[58]!==0,logoClickable:t[12],logoHidden:t[13],logoTargetUrl:t[14],showNextPrevButtons:t[15],nextButtonActive:t[16],prevButtonActive:t[17],isOneVideoPlaylist:t[20],supportLink:t[21],customFullscreenSupported:sp,playNextVideo:t[23],playPrevVideo:t[24],repeatPlaylist:t[25],toggleFullscreen:t[106],returnFocus:t[157],seekToInteractive:t[26],toggleGraph:t[27],playPrevChapter:t[28]};return t[41]!==void 0&&(l.controlsElementRef=t[41]),e=new xr({props:l}),be.push(()=>Oe(e,"controlsElementRef",o)),{c(){M(e.$$.fragment)},m(r,a){A(e,r,a),n=!0},p(r,a){let s={};a[1]&128&&(s.bottomHidden=r[38]==="thumb"||r[38]==="LiveWaitingStart"||r[38]==="LiveWaitingRecover"||r[38]==="LiveWaitingRecord"),a[1]&524288&&(s.bottomNoSmooth=r[50]),a[1]&32&&(s.showControls=r[36]),a[1]&128&&(s.isAds=r[38]==="ads"),a[0]&64|a[1]&134217728&&(s.canRewindLive=r[6]&&r[58]!==0),a[0]&4096&&(s.logoClickable=r[12]),a[0]&8192&&(s.logoHidden=r[13]),a[0]&16384&&(s.logoTargetUrl=r[14]),a[0]&32768&&(s.showNextPrevButtons=r[15]),a[0]&65536&&(s.nextButtonActive=r[16]),a[0]&131072&&(s.prevButtonActive=r[17]),a[0]&1048576&&(s.isOneVideoPlaylist=r[20]),a[0]&2097152&&(s.supportLink=r[21]),a[0]&8388608&&(s.playNextVideo=r[23]),a[0]&16777216&&(s.playPrevVideo=r[24]),a[0]&33554432&&(s.repeatPlaylist=r[25]),a[1]&131072&&(s.returnFocus=r[157]),a[0]&67108864&&(s.seekToInteractive=r[26]),a[0]&134217728&&(s.toggleGraph=r[27]),a[0]&268435456&&(s.playPrevChapter=r[28]),!i&&a[1]&1024&&(i=!0,s.controlsElementRef=r[41],Ne(()=>i=!1)),e.$set(s)},i(r){n||(d(e.$$.fragment,r),n=!0)},o(r){_(e.$$.fragment,r),n=!1},d(r){L(e,r)}}}function np(t){let e,i;return e=new dl({}),{c(){M(e.$$.fragment)},m(n,o){A(e,n,o),i=!0},i(n){i||(d(e.$$.fragment,n),i=!0)},o(n){_(e.$$.fragment,n),i=!1},d(n){L(e,n)}}}function op(t){let e,i;return e=new Id({}),{c(){M(e.$$.fragment)},m(n,o){A(e,n,o),i=!0},i(n){i||(d(e.$$.fragment,n),i=!0)},o(n){_(e.$$.fragment,n),i=!1},d(n){L(e,n)}}}function lp(t){let e,i;return e=new hr({}),{c(){M(e.$$.fragment)},m(n,o){A(e,n,o),i=!0},i(n){i||(d(e.$$.fragment,n),i=!0)},o(n){_(e.$$.fragment,n),i=!1},d(n){L(e,n)}}}function rp(t){let e,i,n,o,l,r,a,s,u,f,p,h,w,g,C,b,E,v,y,T,Y,q,N,ne,ge;e=new ns({props:{hidden:t[38]!=="thumb"||t[37]||t[92]&&t[5],thumbUrl:t[3],startVideo:t[29]}});let j=t[38]==="LiveWaitingStart"&&j0(t),X=t[38]==="LiveWaitingRecover"&&G0(t),ae=t[38]==="LiveWaitingRecord"&&Q0(t),K=t[7]&&t[22]&&Y0(t),z=t[31]&&t[18]&&t[19]&&Z0(t),G=t[44]&&X0(t),$=t[49]&&J0(t),W=t[53]&&x0(t),Q=t[39]&&$0(t),te=t[55].value!=="off"&&ep(t),re=t[37]&&tp(t),Ve=t[22]&&ip(t);C=new fr({props:{isLive:t[59],isHidden:!t[43],isPlaying:t[51],position:t[57],duration:t[60]}}),E=new E0({props:{data:t[103]}});function Xe(ce){t[160](ce)}let Se={supportLink:t[21],returnFocus:t[159],visible:t[33],playerContainerRef:t[40],controlsContainerRef:t[41],position:t[61]};t[32]!==void 0&&(Se.menuElementRef=t[32]),y=new Jf({props:Se}),be.push(()=>Oe(y,"menuElementRef",Xe));let Me=t[42]&&np(t),Ue=t[62]&&op(t),$e=t[63]&&lp(t);return{c(){M(e.$$.fragment),i=V(),j&&j.c(),n=V(),X&&X.c(),o=V(),ae&&ae.c(),l=V(),K&&K.c(),r=V(),z&&z.c(),a=V(),G&&G.c(),s=V(),$&&$.c(),u=V(),W&&W.c(),f=V(),Q&&Q.c(),p=V(),te&&te.c(),h=V(),re&&re.c(),w=V(),Ve&&Ve.c(),g=V(),M(C.$$.fragment),b=V(),M(E.$$.fragment),v=V(),M(y.$$.fragment),Y=V(),Me&&Me.c(),q=V(),Ue&&Ue.c(),N=V(),$e&&$e.c(),ne=ct()},m(ce,_e){A(e,ce,_e),S(ce,i,_e),j&&j.m(ce,_e),S(ce,n,_e),X&&X.m(ce,_e),S(ce,o,_e),ae&&ae.m(ce,_e),S(ce,l,_e),K&&K.m(ce,_e),S(ce,r,_e),z&&z.m(ce,_e),S(ce,a,_e),G&&G.m(ce,_e),S(ce,s,_e),$&&$.m(ce,_e),S(ce,u,_e),W&&W.m(ce,_e),S(ce,f,_e),Q&&Q.m(ce,_e),S(ce,p,_e),te&&te.m(ce,_e),S(ce,h,_e),re&&re.m(ce,_e),S(ce,w,_e),Ve&&Ve.m(ce,_e),S(ce,g,_e),A(C,ce,_e),S(ce,b,_e),A(E,ce,_e),S(ce,v,_e),A(y,ce,_e),S(ce,Y,_e),Me&&Me.m(ce,_e),S(ce,q,_e),Ue&&Ue.m(ce,_e),S(ce,N,_e),$e&&$e.m(ce,_e),S(ce,ne,_e),ge=!0},p(ce,_e){let at={};_e[0]&32|_e[1]&192&&(at.hidden=ce[38]!=="thumb"||ce[37]||ce[92]&&ce[5]),_e[0]&8&&(at.thumbUrl=ce[3]),_e[0]&536870912&&(at.startVideo=ce[29]),e.$set(at),ce[38]==="LiveWaitingStart"?j?(j.p(ce,_e),_e[1]&128&&d(j,1)):(j=j0(ce),j.c(),d(j,1),j.m(n.parentNode,n)):j&&(me(),_(j,1,1,()=>{j=null}),pe()),ce[38]==="LiveWaitingRecover"?X?(X.p(ce,_e),_e[1]&128&&d(X,1)):(X=G0(ce),X.c(),d(X,1),X.m(o.parentNode,o)):X&&(me(),_(X,1,1,()=>{X=null}),pe()),ce[38]==="LiveWaitingRecord"?ae?(ae.p(ce,_e),_e[1]&128&&d(ae,1)):(ae=Q0(ce),ae.c(),d(ae,1),ae.m(l.parentNode,l)):ae&&(me(),_(ae,1,1,()=>{ae=null}),pe()),ce[7]&&ce[22]?K?(K.p(ce,_e),_e[0]&4194432&&d(K,1)):(K=Y0(ce),K.c(),d(K,1),K.m(r.parentNode,r)):K&&(me(),_(K,1,1,()=>{K=null}),pe()),ce[31]&&ce[18]&&ce[19]?z?(z.p(ce,_e),_e[0]&786432|_e[1]&1&&d(z,1)):(z=Z0(ce),z.c(),d(z,1),z.m(a.parentNode,a)):z&&(me(),_(z,1,1,()=>{z=null}),pe()),ce[44]?G?(G.p(ce,_e),_e[1]&8192&&d(G,1)):(G=X0(ce),G.c(),d(G,1),G.m(s.parentNode,s)):G&&(me(),_(G,1,1,()=>{G=null}),pe()),ce[49]?$?($.p(ce,_e),_e[1]&262144&&d($,1)):($=J0(ce),$.c(),d($,1),$.m(u.parentNode,u)):$&&(me(),_($,1,1,()=>{$=null}),pe()),ce[53]?W?_e[1]&4194304&&d(W,1):(W=x0(ce),W.c(),d(W,1),W.m(f.parentNode,f)):W&&(me(),_(W,1,1,()=>{W=null}),pe()),ce[39]?Q?(Q.p(ce,_e),_e[1]&256&&d(Q,1)):(Q=$0(ce),Q.c(),d(Q,1),Q.m(p.parentNode,p)):Q&&(me(),_(Q,1,1,()=>{Q=null}),pe()),ce[55].value!=="off"?te?(te.p(ce,_e),_e[1]&16777216&&d(te,1)):(te=ep(ce),te.c(),d(te,1),te.m(h.parentNode,h)):te&&(me(),_(te,1,1,()=>{te=null}),pe()),ce[37]?re?(re.p(ce,_e),_e[1]&64&&d(re,1)):(re=tp(ce),re.c(),d(re,1),re.m(w.parentNode,w)):re&&(me(),_(re,1,1,()=>{re=null}),pe()),ce[22]?Ve?(Ve.p(ce,_e),_e[0]&4194304&&d(Ve,1)):(Ve=ip(ce),Ve.c(),d(Ve,1),Ve.m(g.parentNode,g)):Ve&&(me(),_(Ve,1,1,()=>{Ve=null}),pe());let ke={};_e[1]&268435456&&(ke.isLive=ce[59]),_e[1]&4096&&(ke.isHidden=!ce[43]),_e[1]&1048576&&(ke.isPlaying=ce[51]),_e[1]&67108864&&(ke.position=ce[57]),_e[1]&536870912&&(ke.duration=ce[60]),C.$set(ke);let Fe={};_e[0]&2097152&&(Fe.supportLink=ce[21]),_e[1]&131072&&(Fe.returnFocus=ce[159]),_e[1]&4&&(Fe.visible=ce[33]),_e[1]&512&&(Fe.playerContainerRef=ce[40]),_e[1]&1024&&(Fe.controlsContainerRef=ce[41]),_e[1]&1073741824&&(Fe.position=ce[61]),!T&&_e[1]&2&&(T=!0,Fe.menuElementRef=ce[32],Ne(()=>T=!1)),y.$set(Fe),ce[42]?Me?_e[1]&2048&&d(Me,1):(Me=np(ce),Me.c(),d(Me,1),Me.m(q.parentNode,q)):Me&&(me(),_(Me,1,1,()=>{Me=null}),pe()),ce[62]?Ue?_e[2]&1&&d(Ue,1):(Ue=op(ce),Ue.c(),d(Ue,1),Ue.m(N.parentNode,N)):Ue&&(me(),_(Ue,1,1,()=>{Ue=null}),pe()),ce[63]?$e?_e[2]&2&&d($e,1):($e=lp(ce),$e.c(),d($e,1),$e.m(ne.parentNode,ne)):$e&&(me(),_($e,1,1,()=>{$e=null}),pe())},i(ce){ge||(d(e.$$.fragment,ce),d(j),d(X),d(ae),d(K),d(z),d(G),d($),d(W),d(Q),d(te),d(re),d(Ve),d(C.$$.fragment,ce),d(E.$$.fragment,ce),d(y.$$.fragment,ce),d(Me),d(Ue),d($e),ge=!0)},o(ce){_(e.$$.fragment,ce),_(j),_(X),_(ae),_(K),_(z),_(G),_($),_(W),_(Q),_(te),_(re),_(Ve),_(C.$$.fragment,ce),_(E.$$.fragment,ce),_(y.$$.fragment,ce),_(Me),_(Ue),_($e),ge=!1},d(ce){ce&&(k(i),k(n),k(o),k(l),k(r),k(a),k(s),k(u),k(f),k(p),k(h),k(w),k(g),k(b),k(v),k(Y),k(q),k(N),k(ne)),L(e,ce),j&&j.d(ce),X&&X.d(ce),ae&&ae.d(ce),K&&K.d(ce),z&&z.d(ce),G&&G.d(ce),$&&$.d(ce),W&&W.d(ce),Q&&Q.d(ce),te&&te.d(ce),re&&re.d(ce),Ve&&Ve.d(ce),L(C,ce),L(E,ce),L(y,ce),Me&&Me.d(ce),Ue&&Ue.d(ce),$e&&$e.d(ce)}}}function P6(t){let e,i,n,o,l=t[52],r,a,s,u,f=rp(t);return{c(){e=P("div"),i=P("div"),o=V(),f.c(),r=ct(),c(i,"class","video-container svelte-12e19rp"),c(i,"style",n=`transform: rotate(${t[35]}deg) scale(${t[46]})`),c(i,"data-testid","video-container"),c(i,"data-is-playing",t[51]),B(i,"fast-rotate",!t[1].isSmoothVideoRotate),c(e,"class","video-wrapper svelte-12e19rp"),B(e,"hidden",t[38]!=="video"),B(e,"nocursor",t[45])},m(p,h){S(p,e,h),m(e,i),t[156](i),S(p,o,h),f.m(p,h),S(p,r,h),a=!0,s||(u=[he(e,"contextmenu",Wt(t[108])),he(e,"mousedown",Wt(t[113])),he(e,"mouseup",Wt(t[114])),he(e,"click",Wt(t[116])),he(e,"dblclick",Wt(t[115]))],s=!0)},p(p,h){(!a||h[1]&32784&&n!==(n=`transform: rotate(${p[35]}deg) scale(${p[46]})`))&&c(i,"style",n),(!a||h[1]&1048576)&&c(i,"data-is-playing",p[51]),(!a||h[0]&2)&&B(i,"fast-rotate",!p[1].isSmoothVideoRotate),(!a||h[1]&128)&&B(e,"hidden",p[38]!=="video"),(!a||h[1]&16384)&&B(e,"nocursor",p[45]),h[1]&2097152&&F(l,l=p[52])?(me(),_(f,1,1,Ce),pe(),f=rp(p),f.c(),d(f,1),f.m(r.parentNode,r)):f.p(p,h)},i(p){a||(d(f),a=!0)},o(p){_(f),a=!1},d(p){p&&(k(e),k(o),k(r)),t[156](null),f.d(p),s=!1,tt(u)}}}function T6(t){let e,i,n,o,l,r,a,s={toggleFullscreen:t[106],hideContextMenu:t[107],showHotKeyHelpers:t[117],showKeyMap:t[118],isAds:t[38]==="ads",fakePlayButtonHandler:t[47]?t[105]:void 0,$$slots:{default:[P6]},$$scope:{ctx:t}};return i=new bd({props:s}),t[161](i),{c(){e=P("div"),M(i.$$.fragment),n=V(),o=P("div"),c(o,"class","overlay-container"),c(e,"class","player-wrapper svelte-12e19rp")},m(u,f){S(u,e,f),A(i,e,null),m(e,n),m(e,o),t[162](o),t[163](e),l=!0,r||(a=[he(k6,"blur",t[107]),he(e,"mouseenter",t[109]),he(e,"mouseleave",t[111]),he(e,"mousemove",t[112]),he(e,"click",t[120],!0),he(e,"focusin",t[110],!0)],r=!0)},p(u,f){let p={};f[1]&128&&(p.isAds=u[38]==="ads"),f[1]&65536&&(p.fakePlayButtonHandler=u[47]?u[105]:void 0),f[0]&1073741823|f[1]&2147418111|f[2]&3|f[6]&16&&(p.$$scope={dirty:f,ctx:u}),i.$set(p)},i(u){l||(d(i.$$.fragment,u),l=!0)},o(u){_(i.$$.fragment,u),l=!1},d(u){u&&k(e),t[161](null),L(i),t[162](null),t[163](null),r=!1,tt(a)}}}var sp=!0;function fc(t){return t?t.offsetTop+fc(t.offsetParent):0}function ap(t){return t?t.offsetLeft+ap(t.offsetParent):0}function I6(t,e,i){let n,o,l,r,a,s,u,f,p,h,w,g,C,b,E,v,y,T,Y,q,N,ne,ge,j,X,ae,K,z,G,$,W,Q,te,re,Ve,Xe,Se,Me,Ue,$e,ce,_e,at,{store:ke}=e,{uiConfig:Fe}=e,{title:ft}=e,{thumbUrl:Qe}=e,{videoContainer:je}=e,{interactiveContainer:Ze}=e,{live:xe}=e,{autoplay:x}=e,{canRewindLive:De}=e,{showAds:ze}=e,{adsSlotId:fe=void 0}=e,{adsParams:se=void 0}=e,{adsPreviewParam:nt=void 0}=e,{duration:de=void 0}=e,{logoClickable:ot}=e,{logoHidden:lt}=e,{logoTargetUrl:dt=""}=e,{showNextPrevButtons:yt=!1}=e,{nextButtonActive:Et=!1}=e,{prevButtonActive:Ye=!1}=e,{endScreenVideoTitle:Kt=void 0}=e,{endScreenVideoThumb:qt=void 0}=e,{isOneVideoPlaylist:Tt=!1}=e,{supportLink:ai}=e,{shadowRootContainer:rt=void 0}=e,{outerContainerRef:wt=void 0}=e,{playerStarted:we=!1}=e,{fullScreenTarget:gt=void 0}=e,{showMiniTimer:kt=!1}=e,{playNextVideo:Xt=cc}=e,{playPrevVideo:St=cc}=e,{repeatPlaylist:jt=cc}=e,{seekToInteractive:Gt}=e,{toggleGraph:Dt}=e,{playPrevChapter:Fi}=e,{firstStart:nn}=e,Jt=ke.getLogger().createComponentLog("Root component"),Li=ke.interfaceLanguage$;D(t,Li,Z=>i(52,Q=Z));let sn=ke.state.playbackState$;D(t,sn,Z=>i(153,z=Z));let zi=ke.ads.playbackState;D(t,zi,Z=>i(154,G=Z));let on=ke.state.positionWithScrubbing$;D(t,on,Z=>i(57,Se=Z));let bi=ke.state.duration$;D(t,bi,Z=>i(60,$e=Z));let vi=ke.playerPhase;D(t,vi,Z=>i(38,ge=Z));let ui=ke.ui.isFullscreen;D(t,ui,Z=>i(143,g=Z));let ci=ke.ui.controlsVisible;D(t,ci,Z=>i(36,T=Z));let yi=ke.ui.settingsMenuVisible;D(t,yi,Z=>i(141,s=Z));let wi=ke.ui.scrubbingInProgress;D(t,wi,Z=>i(145,v=Z));let ki=ke.ui.contextMenu.visible$;D(t,ki,Z=>i(33,n=Z));let fi=ke.ui.debugPanelVisible;D(t,fi,Z=>i(63,at=Z));let Hi=ke.state.isLoaderVisible;D(t,Hi,Z=>i(155,$=Z));let Nt=ke.state.isEnded$;D(t,Nt,Z=>i(142,f=Z));let Si=ke.state.chromecastConnected$;D(t,Si,Z=>i(39,ae=Z));let Mi=ke.state.chromecastDeviceName$;D(t,Mi,Z=>i(54,re=Z));let Ui=ke.ads.postrollPassed;D(t,Ui,Z=>i(148,N=Z));let di=ke.state.isLive$;D(t,di,Z=>i(59,Ue=Z));let Lt=ke.state.isPlaying$;D(t,Lt,Z=>i(51,W=Z));let Wi=ke.state.crashed$;D(t,Wi,Z=>i(37,q=Z));let Vi=ke.webApi.annotationsApi,Ot=ke.webApi.pictureInPictureApi,Ki=ke.state.currentSubtitle$;D(t,Ki,Z=>i(55,Ve=Z));let ji=ke.state.currentSubtitleCaptions$;D(t,ji,Z=>i(56,Xe=Z));let Qt=ke.state.duration$;D(t,Qt,Z=>i(58,Me=Z));let Ci=ke.state.graphIsOpened$;D(t,Ci,Z=>i(149,ne=Z));let mi=ke.ui.playerSize;D(t,mi,Z=>i(34,h=Z));let Pi=ke.ui.is3DVideo;D(t,Pi,Z=>i(49,p=Z));let Yt=ke.ui.icon3DVideoVisible;D(t,Yt,Z=>i(53,te=Z));let Ft=ke.ui.rotateAlpha;D(t,Ft,Z=>i(35,E=Z));let xt=ke.state.isInteractive,Ri=ke.state.isInteractiveTime$;D(t,Ri,Z=>i(146,y=Z));let ni=ke.state.isInteractiveExpectation$;D(t,ni,Z=>i(152,K=Z));let oi=ke.state.hasInteractiveBranches,$t=ke.ui.touched;D(t,$t,Z=>i(150,j=Z));let Gi=ke.ui.modals.hotKeyMap.data;D(t,Gi,Z=>i(170,u=Z));let Qi=ke.ui.modals.hotKeyMap.show;D(t,Qi,Z=>i(62,_e=Z));let an=ke.ui.overlayContainer$,Bi=ke.ui.controls.interactiveTimeIndicator;D(t,Bi,Z=>i(171,w=Z));let ei=ke.state.showInteractiveTimeIndicator,ti=ke.ui.contextMenu.position$;D(t,ti,Z=>i(61,ce=Z));let Yi=ke.actions.internal.closeSettingsMenu,{fakeIsPlaying$:Mt}=Bn();D(t,Mt,Z=>i(144,b=Z));let Vt,Zi,Ti,ii,Xi;Gi.set(Af());let et,Ii,zt=qe(!1);D(t,zt,Z=>i(50,C=Z));let We,Ji=qe(!1);D(t,Ji,Z=>i(151,X=Z));let un=qe(),cn=qe(!1);D(t,cn,Z=>i(147,Y=Z));let xi=!1,qi=!1,ln=!1,Di=!(x&&!Fe.controls.showOnStartupAtAutoplay),Zt,$i,pi,hn,fn,dn=!1,yn,rn=!1,{toggle:mn}=Mt,pn=!1,en=null,_i;Ot?.setContext(Pl());let wn=()=>{x&&!xt&&Fe.controls.showOnStartupAtAutoplay&&Ht(Fe.controls.hideTimeout)};ke.setUiCallbacks({onStarted:wn});let tn=()=>{window.clearTimeout(Ti),Ji.set(!1)},En=()=>{window.clearTimeout(ii),un.set(null)},Ht=Z=>{tn(),Ji.set(!0),Ti=window.setTimeout(()=>Ji.set(!1),Z);let Rt=Z-100;We=window.setTimeout(()=>{C&&zt.set(!1)},Rt>0?Rt:Z)},An=(Z,Rt)=>{En(),un.set(Rt),ii=window.setTimeout(()=>un.set(null),Z)},Ln=Pi.subscribe(Z=>{Yt.set(Z),Z&&(window.clearTimeout(Xi),Xi=window.setTimeout(()=>Yt.set(!1),Fe.controls.hide360IconTimeout))}),kn=async()=>{let Z=fo();if(Z){let Rt=Al(),Cn=le();Z=Rt===Cn||Rt===rt}if(Z){Ht(Fe.controls.hideTimeoutFullscreen);try{await Ot?.remove()}catch(Rt){Jt({message:String(Rt)})}}ui.set(Z),ke.getAdmanWrapper().setFullscreen(Z),g?ke.callbacks?.onFullscreenEnter?.():ke.callbacks?.onFullscreenExit?.()},Mn=Z=>{let Rt=Z;mi.set({width:Rt.target.width,height:Rt.target.height})};It(()=>(sr(kn),Fe.features.annotationsInside&&Vi?.init(Vt),Ro(Ot)&&(Ot?.assignPlayerContainer(Vt),Ot?.registryExternalEventHandlers({resize:Mn})),Ze&&je.parentElement?.insertBefore(Ze,je.nextSibling),()=>{window.clearTimeout(Ti),window.clearTimeout(We),window.clearTimeout(ii),window.clearTimeout(Xi),Ln(),Ot?.dispose(),ar(kn)}));let le=()=>{let Z=Fe.features.fullscreenInternalTargetPlayerContainer||!wt?Vt:wt,Rt=Z.getRootNode(),Cn=Rt instanceof ShadowRoot?Rt.host:Rt,Vn=gt instanceof HTMLElement&&gt.contains(Cn);return Fe.allowChangingFullscreenTarget&&gt&&Vn?gt:Z},_t=async()=>{fo()?(await rr(document),Jt({message:"exit fullscreen"})):(Jt({message:"request fullscreen"}),await lr(le()))},Ni=()=>{Yi(),ki.set(!1)},_n=Z=>{ki.set(!0),ti.set({left:Z.clientX,top:Z.clientY})};function ie(){cn.set(!0),xt||Ht(Fe.controls.hideTimeoutCursor)}function mt(){xt||(zt.set(!0),Ht(Fe.controls.hideTimeoutCursor))}function li(){cn.set(!1),i(132,qi=!1),i(131,xi=!1),pn=!1,ke.actions.internal.releaseCamera()}function Sn(Z){if(w&&ei){let Rt=Z.currentTarget,Cn=fc(Rt),Vn=ap(Rt),Qo=Z.pageX-Vn,Co=Z.pageY-Cn,{left:so,bottom:Qn,right:Yo}=w,ao=Yo-so;return Qo>=so-ao&&Co<=Qn+ao}}function On(Z){if(Vt){let Rt=fc(Z.currentTarget),Cn=h.height,Vn=Z.pageY-Rt;if(Sn(Z)){i(132,qi=!1);return}Vn<40?i(132,qi=!0):Vn>Cn-40?i(131,xi=!0):(i(132,qi=!1),s||i(131,xi=!1))}}function Xn(Z){On(Z),Zt||Ht(Fe.controls.hideTimeoutCursor),p&&pn&&en&&ke.actions.internal.moveCameraFocusPX(en.clientX-Z.clientX,en.clientY-Z.clientY,Z.timeStamp-en.timeStamp),en=Z}let no=Z=>{Z.button===0&&(pn=!0,ke.actions.internal.holdCamera()),Ht(Fe.controls.hideTimeoutCursor)},ee=Z=>{Z.button===0&&(en=Z,pn=!1,ke.actions.internal.releaseCamera()),Ht(Fe.controls.hideTimeoutCursor)},Gn=()=>{sp&&(Jt({message:"double click on video"}),_t(),Ht(Fe.controls.hideTimeoutCursor))},yl=()=>{if(n||s){Ni();return}if(!(f&&!oi)){if(rn)return mn();if(_i?.focus(),!we){nn(),Ht(Fe.controls.hideTimeoutCursor);return}ke.actions.internal.togglePlay(),Ht(Fe.controls.hideTimeoutCursor)}},wl=Z=>{Ni(),$t.set(!0),Ht(Fe.controls.hideTimeout),Z&&An(Fe.controls.hideHotKeyHelpers,Z)},kl=()=>{Ni(),ke.callbacks?.onOpenHotKeyMap?ke.callbacks?.onOpenHotKeyMap(u):Qi.update(Z=>!Z)},Sl=()=>{if(n||s){Ni();return}},Uo=()=>{$t.set(!0)},vo=ke.ui.contextMenu.openedByBtnKeyboard$;D(t,vo,Z=>i(140,a=Z));let yo=ke.ui.contextMenu.btnRef$;D(t,yo,Z=>i(139,r=Z));let Jn,oo=ke.ui.contextMenu.openedByHotKey$;D(t,oo,Z=>i(138,l=Z));let lo=ke.ui.contextMenu.lastActiveElem$;D(t,lo,Z=>i(137,o=Z));function Wo(Z){be[Z?"unshift":"push"](()=>{je=Z,i(0,je)})}let Ko=()=>_i?.focus();function wo(Z){Zi=Z,i(41,Zi)}let jo=()=>_i?.focus();function ko(Z){Jn=Z,i(32,Jn)}function Go(Z){be[Z?"unshift":"push"](()=>{_i=Z,i(48,_i)})}function So(Z){be[Z?"unshift":"push"](()=>{Ii=Z,i(30,Ii)})}function ro(Z){be[Z?"unshift":"push"](()=>{Vt=Z,i(40,Vt)})}return t.$$set=Z=>{"store"in Z&&i(125,ke=Z.store),"uiConfig"in Z&&i(1,Fe=Z.uiConfig),"title"in Z&&i(2,ft=Z.title),"thumbUrl"in Z&&i(3,Qe=Z.thumbUrl),"videoContainer"in Z&&i(0,je=Z.videoContainer),"interactiveContainer"in Z&&i(126,Ze=Z.interactiveContainer),"live"in Z&&i(4,xe=Z.live),"autoplay"in Z&&i(5,x=Z.autoplay),"canRewindLive"in Z&&i(6,De=Z.canRewindLive),"showAds"in Z&&i(7,ze=Z.showAds),"adsSlotId"in Z&&i(8,fe=Z.adsSlotId),"adsParams"in Z&&i(9,se=Z.adsParams),"adsPreviewParam"in Z&&i(10,nt=Z.adsPreviewParam),"duration"in Z&&i(11,de=Z.duration),"logoClickable"in Z&&i(12,ot=Z.logoClickable),"logoHidden"in Z&&i(13,lt=Z.logoHidden),"logoTargetUrl"in Z&&i(14,dt=Z.logoTargetUrl),"showNextPrevButtons"in Z&&i(15,yt=Z.showNextPrevButtons),"nextButtonActive"in Z&&i(16,Et=Z.nextButtonActive),"prevButtonActive"in Z&&i(17,Ye=Z.prevButtonActive),"endScreenVideoTitle"in Z&&i(18,Kt=Z.endScreenVideoTitle),"endScreenVideoThumb"in Z&&i(19,qt=Z.endScreenVideoThumb),"isOneVideoPlaylist"in Z&&i(20,Tt=Z.isOneVideoPlaylist),"supportLink"in Z&&i(21,ai=Z.supportLink),"shadowRootContainer"in Z&&i(127,rt=Z.shadowRootContainer),"outerContainerRef"in Z&&i(128,wt=Z.outerContainerRef),"playerStarted"in Z&&i(22,we=Z.playerStarted),"fullScreenTarget"in Z&&i(129,gt=Z.fullScreenTarget),"showMiniTimer"in Z&&i(130,kt=Z.showMiniTimer),"playNextVideo"in Z&&i(23,Xt=Z.playNextVideo),"playPrevVideo"in Z&&i(24,St=Z.playPrevVideo),"repeatPlaylist"in Z&&i(25,jt=Z.repeatPlaylist),"seekToInteractive"in Z&&i(26,Gt=Z.seekToInteractive),"toggleGraph"in Z&&i(27,Dt=Z.toggleGraph),"playPrevChapter"in Z&&i(28,Fi=Z.playPrevChapter),"firstStart"in Z&&i(29,nn=Z.firstStart)},t.$$.update=()=>{if(t.$$.dirty[1]&192|t.$$.dirty[4]&1073741824|t.$$.dirty[5]&1&&i(42,et=(ge==="video"&&$||ge==="ads"&&G==="inactive")&&!q),t.$$.dirty[0]&1073741824&&an.set(Ii),t.$$.dirty[4]&536871936&&(i(133,ln=Di&&z!==S6.PLAYING),Di||i(134,Di=!0)),t.$$.dirty[4]&272761728&&i(135,Zt=y&&!s&&!(xi||qi)&&!(ln&&!K)),t.$$.dirty[1]&448|t.$$.dirty[4]&136448512&&ci.set((ln||s||v||ae||X)&&!Zt&&(ge==="video"||ge==="ads")&&!q),t.$$.dirty[0]&2|t.$$.dirty[1]&224|t.$$.dirty[4]&67108928&&i(43,$i=Fe.features.thumbTimer&&kt&&ge==="video"&&!T&&!q&&!xt&&(Fe.hideThumbTimerAfterTouch&&!j||!Fe.hideThumbTimerAfterTouch)),t.$$.dirty[1]&128|t.$$.dirty[4]&34078720&&i(44,pi=ge==="video"&&!ne&&g),t.$$.dirty[0]&128|t.$$.dirty[1]&64|t.$$.dirty[4]&17039360&&i(31,hn=(ze&&N||!ze)&&f&&!q),t.$$.dirty[1]&33|t.$$.dirty[4]&12582912&&i(45,fn=Y&&!(T||hn)&&!y),t.$$.dirty[0]&2|t.$$.dirty[4]&6295552&&(!v&&dn&&!y&&Ht(Fe.controls.hideTimeoutCursor),i(136,dn=v)),t.$$.dirty[0]&1|t.$$.dirty[1]&24&&i(46,yn=je&&E%180?h.height/h.width:1),t.$$.dirty[4]&1048576&&i(47,rn=b!==null),t.$$.dirty[1]&6|t.$$.dirty[4]&65536&&Do(Jn,n,a),t.$$.dirty[1]&4|t.$$.dirty[4]&32768){let Z=r;Z&&sl(Z,n,vo)}if(t.$$.dirty[1]&6|t.$$.dirty[4]&16384&&Do(Jn,n,l),t.$$.dirty[1]&4|t.$$.dirty[4]&8192){let Z=o;Z&&Wf(Z,n,oo)}},[je,Fe,ft,Qe,xe,x,De,ze,fe,se,nt,de,ot,lt,dt,yt,Et,Ye,Kt,qt,Tt,ai,we,Xt,St,jt,Gt,Dt,Fi,nn,Ii,hn,Jn,n,h,E,T,q,ge,ae,Vt,Zi,et,$i,pi,fn,yn,rn,_i,p,C,W,Q,te,re,Ve,Xe,Se,Me,Ue,$e,ce,_e,at,Li,sn,zi,on,bi,vi,ui,ci,yi,wi,ki,fi,Hi,Nt,Si,Mi,Ui,di,Lt,Wi,Ki,ji,Qt,Ci,mi,Pi,Yt,Ft,xt,Ri,ni,$t,Gi,Qi,Bi,ti,Mt,zt,Ji,un,cn,mn,_t,Ni,_n,ie,mt,li,Xn,no,ee,Gn,yl,wl,kl,Sl,Uo,vo,yo,oo,lo,ke,Ze,rt,wt,gt,kt,xi,qi,ln,Di,Zt,dn,o,l,r,a,s,f,g,b,v,y,Y,N,ne,j,X,K,z,G,$,Wo,Ko,wo,jo,ko,Go,So,ro]}var dc=class extends H{constructor(e){super(),U(this,e,I6,T6,F,{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},C6,[-1,-1,-1,-1,-1,-1,-1])}},up=dc;import{PlaybackState as R6}from"@vkontakte/videoplayer-core";import{clientChecker as ls,noop as hc}from"@vkontakte/videoplayer-shared";function E6(t){Pe(t,"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 cp(t){let e,i,n,o,l,r,a,s,u,f,p,h,w,g,C,b=O("doubletap_seek_step",{seconds:t[1].toFixed(0)})+"",E;return{c(){e=P("div"),n=V(),o=P("div"),l=P("div"),r=P("div"),s=V(),u=P("div"),p=V(),h=P("div"),g=V(),C=P("p"),E=Re(b),c(e,"class",i="semicircle "+t[0]+" svelte-nhq2ld"),c(r,"class",a="triangle "+t[0]+" svelte-nhq2ld"),c(u,"class",f="triangle "+t[0]+" svelte-nhq2ld"),c(h,"class",w="triangle "+t[0]+" svelte-nhq2ld"),c(l,"class","triangles-wrapper svelte-nhq2ld"),c(C,"class","step-caption svelte-nhq2ld"),c(o,"class","info svelte-nhq2ld")},m(v,y){S(v,e,y),S(v,n,y),S(v,o,y),m(o,l),m(l,r),m(l,s),m(l,u),m(l,p),m(l,h),m(o,g),m(o,C),m(C,E)},p(v,y){y&1&&i!==(i="semicircle "+v[0]+" svelte-nhq2ld")&&c(e,"class",i),y&1&&a!==(a="triangle "+v[0]+" svelte-nhq2ld")&&c(r,"class",a),y&1&&f!==(f="triangle "+v[0]+" svelte-nhq2ld")&&c(u,"class",f),y&1&&w!==(w="triangle "+v[0]+" svelte-nhq2ld")&&c(h,"class",w),y&2&&b!==(b=O("doubletap_seek_step",{seconds:v[1].toFixed(0)})+"")&&Ge(E,b)},d(v){v&&(k(e),k(n),k(o))}}}function A6(t){let e,i,n,o,l=t[2]&&cp(t);return{c(){e=P("div"),l&&l.c(),c(e,"class",i="double-click-area "+t[0]+" svelte-nhq2ld")},m(r,a){S(r,e,a),l&&l.m(e,null),n||(o=he(e,"click",st(t[3]())),n=!0)},p(r,[a]){r[2]?l?l.p(r,a):(l=cp(r),l.c(),l.m(e,null)):l&&(l.d(1),l=null),a&1&&i!==(i="double-click-area "+r[0]+" svelte-nhq2ld")&&c(e,"class",i)},i:Ce,o:Ce,d(r){r&&k(e),l&&l.d(),n=!1,o()}}}function L6(t,e,i){let{side:n}=e,{seekStep:o}=e,{handleSingleFirstClick:l}=e,{handleSecondClick:r}=e,a=!1,s=0,u=0,f=()=>{let h=0;return()=>{h+=1,h===1?s=window.setTimeout(()=>{l(),h=0},300):(window.clearTimeout(s),h=0,r(),i(2,a=!0),u=window.setTimeout(()=>{i(2,a=!1)},500))}};return Hn(()=>{window.clearTimeout(s),window.clearTimeout(u)}),t.$$set=p=>{"side"in p&&i(0,n=p.side),"seekStep"in p&&i(1,o=p.seekStep),"handleSingleFirstClick"in p&&i(4,l=p.handleSingleFirstClick),"handleSecondClick"in p&&i(5,r=p.handleSecondClick)},[n,o,a,f,l,r]}var mc=class extends H{constructor(e){super(),U(this,e,L6,A6,F,{side:0,seekStep:1,handleSingleFirstClick:4,handleSecondClick:5},E6)}},pc=mc;function M6(t,e,i){let{playNextVideo:n}=e;return It(()=>{n()}),t.$$set=o=>{"playNextVideo"in o&&i(0,n=o.playNextVideo)},[n]}var _c=class extends H{constructor(e){super(),U(this,e,M6,null,F,{playNextVideo:0})}},fp=_c;var{window:V6}=Po;function B6(t){Pe(t,"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 dp(t){let e,i,n,o;e=new pc({props:{side:"left",seekStep:t[1].controls.seekStepMobile/1e3,handleSingleFirstClick:t[99],handleSecondClick:t[130]}});let l=!t[49]&&mp(t);return{c(){M(e.$$.fragment),i=V(),l&&l.c(),n=ct()},m(r,a){A(e,r,a),S(r,i,a),l&&l.m(r,a),S(r,n,a),o=!0},p(r,a){let s={};a[0]&2&&(s.seekStep=r[1].controls.seekStepMobile/1e3),e.$set(s),r[49]?l&&(me(),_(l,1,1,()=>{l=null}),pe()):l?(l.p(r,a),a[1]&262144&&d(l,1)):(l=mp(r),l.c(),d(l,1),l.m(n.parentNode,n))},i(r){o||(d(e.$$.fragment,r),d(l),o=!0)},o(r){_(e.$$.fragment,r),_(l),o=!1},d(r){r&&(k(i),k(n)),L(e,r),l&&l.d(r)}}}function mp(t){let e,i;return e=new pc({props:{side:"right",seekStep:t[1].controls.seekStepMobile/1e3,handleSingleFirstClick:t[99],handleSecondClick:t[131]}}),{c(){M(e.$$.fragment)},m(n,o){A(e,n,o),i=!0},p(n,o){let l={};o[0]&2&&(l.seekStep=n[1].controls.seekStepMobile/1e3),e.$set(l)},i(n){i||(d(e.$$.fragment,n),i=!0)},o(n){_(e.$$.fragment,n),i=!1},d(n){L(e,n)}}}function pp(t){let e,i;return e=new os({props:{thumbUrl:t[2],startTime:t[3]?.startTime}}),{c(){M(e.$$.fragment)},m(n,o){A(e,n,o),i=!0},p(n,o){let l={};o[0]&4&&(l.thumbUrl=n[2]),o[0]&8&&(l.startTime=n[3]?.startTime),e.$set(l)},i(n){i||(d(e.$$.fragment,n),i=!0)},o(n){_(e.$$.fragment,n),i=!1},d(n){L(e,n)}}}function _p(t){let e,i;return e=new gl({props:{kind:"recover",thumbUrl:t[2]}}),{c(){M(e.$$.fragment)},m(n,o){A(e,n,o),i=!0},p(n,o){let l={};o[0]&4&&(l.thumbUrl=n[2]),e.$set(l)},i(n){i||(d(e.$$.fragment,n),i=!0)},o(n){_(e.$$.fragment,n),i=!1},d(n){L(e,n)}}}function hp(t){let e,i;return e=new gl({props:{kind:"record",thumbUrl:t[2]}}),{c(){M(e.$$.fragment)},m(n,o){A(e,n,o),i=!0},p(n,o){let l={};o[0]&4&&(l.thumbUrl=n[2]),e.$set(l)},i(n){i||(d(e.$$.fragment,n),i=!0)},o(n){_(e.$$.fragment,n),i=!1},d(n){L(e,n)}}}function gp(t){let e,i,n;return i=new ur({props:{adsSlotId:t[7],adsParams:t[8],adsPreviewParam:t[9],duration:t[10]}}),{c(){e=P("div"),M(i.$$.fragment),c(e,"class","ads-container svelte-6x5lql"),B(e,"hidden",t[34]!=="ads")},m(o,l){S(o,e,l),A(i,e,null),n=!0},p(o,l){let r={};l[0]&128&&(r.adsSlotId=o[7]),l[0]&256&&(r.adsParams=o[8]),l[0]&512&&(r.adsPreviewParam=o[9]),l[0]&1024&&(r.duration=o[10]),i.$set(r),(!n||l[1]&8)&&B(e,"hidden",o[34]!=="ads")},i(o){n||(d(i.$$.fragment,o),n=!0)},o(o){_(i.$$.fragment,o),n=!1},d(o){o&&k(e),L(i)}}}function bp(t){let e,i;return e=new fp({props:{playNextVideo:t[22]}}),{c(){M(e.$$.fragment)},m(n,o){A(e,n,o),i=!0},p(n,o){let l={};o[0]&4194304&&(l.playNextVideo=n[22]),e.$set(l)},i(n){i||(d(e.$$.fragment,n),i=!0)},o(n){_(e.$$.fragment,n),i=!1},d(n){L(e,n)}}}function vp(t){let e,i;return e=new $r({}),{c(){M(e.$$.fragment)},m(n,o){A(e,n,o),i=!0},i(n){i||(d(e.$$.fragment,n),i=!0)},o(n){_(e.$$.fragment,n),i=!1},d(n){L(e,n)}}}function yp(t){let e,i,n;return i=new $l({props:{"aria-label":O("video360")}}),{c(){e=P("div"),M(i.$$.fragment),c(e,"class","spherical-video-icon svelte-6x5lql")},m(o,l){S(o,e,l),A(i,e,null),n=!0},i(o){n||(d(i.$$.fragment,o),n=!0)},o(o){_(i.$$.fragment,o),n=!1},d(o){o&&k(e),L(i)}}}function wp(t){let e,i;return e=new ts({props:{thumbUrl:t[2],chromecastDeviceName:t[52]}}),{c(){M(e.$$.fragment)},m(n,o){A(e,n,o),i=!0},p(n,o){let l={};o[0]&4&&(l.thumbUrl=n[2]),o[1]&2097152&&(l.chromecastDeviceName=n[52]),e.$set(l)},i(n){i||(d(e.$$.fragment,n),i=!0)},o(n){_(e.$$.fragment,n),i=!1},d(n){L(e,n)}}}function kp(t){let e,i;return e=new es({props:{shifted:t[30],captions:t[54],position:t[44],playerSize:t[31],isMobile:!0}}),{c(){M(e.$$.fragment)},m(n,o){A(e,n,o),i=!0},p(n,o){let l={};o[0]&1073741824&&(l.shifted=n[30]),o[1]&8388608&&(l.captions=n[54]),o[1]&8192&&(l.position=n[44]),o[1]&1&&(l.playerSize=n[31]),e.$set(l)},i(n){i||(d(e.$$.fragment,n),i=!0)},o(n){_(e.$$.fragment,n),i=!1},d(n){L(e,n)}}}function Sp(t){let e,i,n,o,l;return i=new is({}),{c(){e=P("div"),M(i.$$.fragment)},m(r,a){S(r,e,a),A(i,e,null),n=!0,o||(l=he(e,"click",st(t[100])),o=!0)},p:Ce,i(r){n||(d(i.$$.fragment,r),n=!0)},o(r){_(i.$$.fragment,r),n=!1},d(r){r&&k(e),L(i),o=!1,l()}}}function Cp(t){let e,i,n;function o(r){t[132](r)}let l={bottomHidden:t[34]==="thumb"||t[34]==="LiveWaitingStart"||t[34]==="LiveWaitingRecover"||t[34]==="LiveWaitingRecord"||t[34]==="ads",showControls:t[30],bottomNoSmooth:t[45],isAds:t[34]==="ads",canRewindLive:t[5]&&t[55]!==0,logoClickable:t[11],logoHidden:t[12],logoTargetUrl:t[13],showNextPrevButtons:t[14],nextButtonActive:t[15],prevButtonActive:t[16],isOneVideoPlaylist:t[19],supportLink:t[20],customFullscreenSupported:t[39],playNextVideo:t[22],playPrevVideo:t[23],repeatPlaylist:t[24],toggleFullscreen:t[97],seekToInteractive:t[25],toggleGraph:t[26],playPrevChapter:t[27],onDisabledPlayPrevChapterClick:t[103],onDisabledSeekToInteractiveClick:t[104]};return t[37]!==void 0&&(l.controlsElementRef=t[37]),e=new xr({props:l}),be.push(()=>Oe(e,"controlsElementRef",o)),{c(){M(e.$$.fragment)},m(r,a){A(e,r,a),n=!0},p(r,a){let s={};a[1]&8&&(s.bottomHidden=r[34]==="thumb"||r[34]==="LiveWaitingStart"||r[34]==="LiveWaitingRecover"||r[34]==="LiveWaitingRecord"||r[34]==="ads"),a[0]&1073741824&&(s.showControls=r[30]),a[1]&16384&&(s.bottomNoSmooth=r[45]),a[1]&8&&(s.isAds=r[34]==="ads"),a[0]&32|a[1]&16777216&&(s.canRewindLive=r[5]&&r[55]!==0),a[0]&2048&&(s.logoClickable=r[11]),a[0]&4096&&(s.logoHidden=r[12]),a[0]&8192&&(s.logoTargetUrl=r[13]),a[0]&16384&&(s.showNextPrevButtons=r[14]),a[0]&32768&&(s.nextButtonActive=r[15]),a[0]&65536&&(s.prevButtonActive=r[16]),a[0]&524288&&(s.isOneVideoPlaylist=r[19]),a[0]&1048576&&(s.supportLink=r[20]),a[1]&256&&(s.customFullscreenSupported=r[39]),a[0]&4194304&&(s.playNextVideo=r[22]),a[0]&8388608&&(s.playPrevVideo=r[23]),a[0]&16777216&&(s.repeatPlaylist=r[24]),a[0]&33554432&&(s.seekToInteractive=r[25]),a[0]&67108864&&(s.toggleGraph=r[26]),a[0]&134217728&&(s.playPrevChapter=r[27]),!i&&a[1]&64&&(i=!0,s.controlsElementRef=r[37],Ne(()=>i=!1)),e.$set(s)},i(r){n||(d(e.$$.fragment,r),n=!0)},o(r){_(e.$$.fragment,r),n=!1},d(r){L(e,r)}}}function Pp(t){let e,i;return e=new dl({}),{c(){M(e.$$.fragment)},m(n,o){A(e,n,o),i=!0},i(n){i||(d(e.$$.fragment,n),i=!0)},o(n){_(e.$$.fragment,n),i=!1},d(n){L(e,n)}}}function Tp(t){let e,i;return e=new hr({}),{c(){M(e.$$.fragment)},m(n,o){A(e,n,o),i=!0},i(n){i||(d(e.$$.fragment,n),i=!0)},o(n){_(e.$$.fragment,n),i=!1},d(n){L(e,n)}}}function Ip(t){let e,i,n=t[5]&&t[78]&&!t[48].has("TIMELINE"),o,l,r,a,s,u,f,p,h,w,g,C,b,E,v,y,T;e=new ns({props:{hidden:t[34]!=="thumb"||t[33]||t[89]&&t[4],thumbUrl:t[2],startVideo:t[28]}});let Y=n&&dp(t),q=t[34]==="LiveWaitingStart"&&pp(t),N=t[34]==="LiveWaitingRecover"&&_p(t),ne=t[34]==="LiveWaitingRecord"&&hp(t),ge=t[6]&&t[21]&&gp(t),j=t[41]&&t[17]&&t[18]&&bp(t),X=t[50]&&vp(t),ae=t[51]&&yp(t),K=t[35]&&wp(t),z=t[53].value!=="off"&&kp(t),G=t[33]&&Sp(t),$=t[21]&&Cp(t);b=new fr({props:{isLive:t[56],isHidden:!t[40],isPlaying:t[46],position:t[44],duration:t[43]}});let W=t[38]&&Pp(t),Q=t[57]&&Tp(t);return{c(){M(e.$$.fragment),i=V(),Y&&Y.c(),o=V(),q&&q.c(),l=V(),N&&N.c(),r=V(),ne&&ne.c(),a=V(),ge&&ge.c(),s=V(),j&&j.c(),u=V(),X&&X.c(),f=V(),ae&&ae.c(),p=V(),K&&K.c(),h=V(),z&&z.c(),w=V(),G&&G.c(),g=V(),$&&$.c(),C=V(),M(b.$$.fragment),E=V(),W&&W.c(),v=V(),Q&&Q.c(),y=ct()},m(te,re){A(e,te,re),S(te,i,re),Y&&Y.m(te,re),S(te,o,re),q&&q.m(te,re),S(te,l,re),N&&N.m(te,re),S(te,r,re),ne&&ne.m(te,re),S(te,a,re),ge&&ge.m(te,re),S(te,s,re),j&&j.m(te,re),S(te,u,re),X&&X.m(te,re),S(te,f,re),ae&&ae.m(te,re),S(te,p,re),K&&K.m(te,re),S(te,h,re),z&&z.m(te,re),S(te,w,re),G&&G.m(te,re),S(te,g,re),$&&$.m(te,re),S(te,C,re),A(b,te,re),S(te,E,re),W&&W.m(te,re),S(te,v,re),Q&&Q.m(te,re),S(te,y,re),T=!0},p(te,re){let Ve={};re[0]&16|re[1]&12&&(Ve.hidden=te[34]!=="thumb"||te[33]||te[89]&&te[4]),re[0]&4&&(Ve.thumbUrl=te[2]),re[0]&268435456&&(Ve.startVideo=te[28]),e.$set(Ve),re[0]&32|re[1]&131072&&(n=te[5]&&te[78]&&!te[48].has("TIMELINE")),n?Y?(Y.p(te,re),re[0]&32|re[1]&131072&&d(Y,1)):(Y=dp(te),Y.c(),d(Y,1),Y.m(o.parentNode,o)):Y&&(me(),_(Y,1,1,()=>{Y=null}),pe()),te[34]==="LiveWaitingStart"?q?(q.p(te,re),re[1]&8&&d(q,1)):(q=pp(te),q.c(),d(q,1),q.m(l.parentNode,l)):q&&(me(),_(q,1,1,()=>{q=null}),pe()),te[34]==="LiveWaitingRecover"?N?(N.p(te,re),re[1]&8&&d(N,1)):(N=_p(te),N.c(),d(N,1),N.m(r.parentNode,r)):N&&(me(),_(N,1,1,()=>{N=null}),pe()),te[34]==="LiveWaitingRecord"?ne?(ne.p(te,re),re[1]&8&&d(ne,1)):(ne=hp(te),ne.c(),d(ne,1),ne.m(a.parentNode,a)):ne&&(me(),_(ne,1,1,()=>{ne=null}),pe()),te[6]&&te[21]?ge?(ge.p(te,re),re[0]&2097216&&d(ge,1)):(ge=gp(te),ge.c(),d(ge,1),ge.m(s.parentNode,s)):ge&&(me(),_(ge,1,1,()=>{ge=null}),pe()),te[41]&&te[17]&&te[18]?j?(j.p(te,re),re[0]&393216|re[1]&1024&&d(j,1)):(j=bp(te),j.c(),d(j,1),j.m(u.parentNode,u)):j&&(me(),_(j,1,1,()=>{j=null}),pe()),te[50]?X?re[1]&524288&&d(X,1):(X=vp(te),X.c(),d(X,1),X.m(f.parentNode,f)):X&&(me(),_(X,1,1,()=>{X=null}),pe()),te[51]?ae?re[1]&1048576&&d(ae,1):(ae=yp(te),ae.c(),d(ae,1),ae.m(p.parentNode,p)):ae&&(me(),_(ae,1,1,()=>{ae=null}),pe()),te[35]?K?(K.p(te,re),re[1]&16&&d(K,1)):(K=wp(te),K.c(),d(K,1),K.m(h.parentNode,h)):K&&(me(),_(K,1,1,()=>{K=null}),pe()),te[53].value!=="off"?z?(z.p(te,re),re[1]&4194304&&d(z,1)):(z=kp(te),z.c(),d(z,1),z.m(w.parentNode,w)):z&&(me(),_(z,1,1,()=>{z=null}),pe()),te[33]?G?(G.p(te,re),re[1]&4&&d(G,1)):(G=Sp(te),G.c(),d(G,1),G.m(g.parentNode,g)):G&&(me(),_(G,1,1,()=>{G=null}),pe()),te[21]?$?($.p(te,re),re[0]&2097152&&d($,1)):($=Cp(te),$.c(),d($,1),$.m(C.parentNode,C)):$&&(me(),_($,1,1,()=>{$=null}),pe());let Xe={};re[1]&33554432&&(Xe.isLive=te[56]),re[1]&512&&(Xe.isHidden=!te[40]),re[1]&32768&&(Xe.isPlaying=te[46]),re[1]&8192&&(Xe.position=te[44]),re[1]&4096&&(Xe.duration=te[43]),b.$set(Xe),te[38]?W?re[1]&128&&d(W,1):(W=Pp(te),W.c(),d(W,1),W.m(v.parentNode,v)):W&&(me(),_(W,1,1,()=>{W=null}),pe()),te[57]?Q?re[1]&67108864&&d(Q,1):(Q=Tp(te),Q.c(),d(Q,1),Q.m(y.parentNode,y)):Q&&(me(),_(Q,1,1,()=>{Q=null}),pe())},i(te){T||(d(e.$$.fragment,te),d(Y),d(q),d(N),d(ne),d(ge),d(j),d(X),d(ae),d(K),d(z),d(G),d($),d(b.$$.fragment,te),d(W),d(Q),T=!0)},o(te){_(e.$$.fragment,te),_(Y),_(q),_(N),_(ne),_(ge),_(j),_(X),_(ae),_(K),_(z),_(G),_($),_(b.$$.fragment,te),_(W),_(Q),T=!1},d(te){te&&(k(i),k(o),k(l),k(r),k(a),k(s),k(u),k(f),k(p),k(h),k(w),k(g),k(C),k(E),k(v),k(y)),L(e,te),Y&&Y.d(te),q&&q.d(te),N&&N.d(te),ne&&ne.d(te),ge&&ge.d(te),j&&j.d(te),X&&X.d(te),ae&&ae.d(te),K&&K.d(te),z&&z.d(te),G&&G.d(te),$&&$.d(te),L(b,te),W&&W.d(te),Q&&Q.d(te)}}}function q6(t){let e,i,n,o,l,r=t[47],a,s,u,f,p,h,w=Ip(t);return{c(){e=P("div"),i=P("div"),n=P("div"),l=V(),w.c(),a=V(),s=P("div"),c(n,"class","video-container svelte-6x5lql"),c(n,"style",o=`transform: rotate(${t[32]}deg) scale(${t[42]})`),c(n,"data-testid","video-container"),c(n,"data-is-playing",t[46]),B(n,"fast-rotate",!t[1].isSmoothVideoRotate),c(i,"class","video-wrapper svelte-6x5lql"),B(i,"hidden",t[34]!=="video"),c(s,"class","overlay-container"),c(e,"class","player-wrapper svelte-6x5lql"),c(e,"role","region"),c(e,"aria-label",u=O("aria_label_video_player")),c(e,"tabindex","-1")},m(g,C){S(g,e,C),m(e,i),m(i,n),t[129](n),m(e,l),w.m(e,null),m(e,a),m(e,s),t[133](s),t[134](e),f=!0,p||(h=[he(V6,"blur",t[98]),he(i,"click",Wt(t[99])),he(e,"click",t[101],!0),he(e,"focusin",t[102],!0)],p=!0)},p(g,C){(!f||C[1]&2050&&o!==(o=`transform: rotate(${g[32]}deg) scale(${g[42]})`))&&c(n,"style",o),(!f||C[1]&32768)&&c(n,"data-is-playing",g[46]),(!f||C[0]&2)&&B(n,"fast-rotate",!g[1].isSmoothVideoRotate),(!f||C[1]&8)&&B(i,"hidden",g[34]!=="video"),C[1]&65536&&F(r,r=g[47])?(me(),_(w,1,1,Ce),pe(),w=Ip(g),w.c(),d(w,1),w.m(e,a)):w.p(g,C)},i(g){f||(d(w),f=!0)},o(g){_(w),f=!1},d(g){g&&k(e),t[129](null),w.d(g),t[133](null),t[134](null),p=!1,tt(h)}}}function D6(t,e,i){let n,o,l,r,a,s,u,f,p,h,w,g,C,b,E,v,y,T,Y,q,N,ne,ge,j,X,ae,K,z,G,$,W,Q,te,re,Ve,Xe,{store:Se}=e,{uiConfig:Me}=e,{thumbUrl:Ue}=e,{videoContainer:$e}=e,{interactiveContainer:ce}=e,{live:_e}=e,{autoplay:at}=e,{canRewindLive:ke}=e,{showAds:Fe}=e,{adsSlotId:ft=void 0}=e,{adsParams:Qe=void 0}=e,{adsPreviewParam:je=void 0}=e,{duration:Ze=void 0}=e,{logoClickable:xe}=e,{logoHidden:x}=e,{logoTargetUrl:De=""}=e,{showNextPrevButtons:ze=!1}=e,{nextButtonActive:fe=!1}=e,{prevButtonActive:se=!1}=e,{endScreenVideoTitle:nt=void 0}=e,{endScreenVideoThumb:de=void 0}=e,{isOneVideoPlaylist:ot=!1}=e,{supportLink:lt}=e,{shadowRootContainer:dt=void 0}=e,{outerContainerRef:yt=void 0}=e,{showMiniTimer:Et=!1}=e,{fullScreenTarget:Ye=void 0}=e,{playerStarted:Kt=!1}=e,{playNextVideo:qt=hc}=e,{playPrevVideo:Tt=hc}=e,{repeatPlaylist:ai=hc}=e,{seekToInteractive:rt}=e,{toggleGraph:wt}=e,{playPrevChapter:we}=e,{firstStart:gt}=e,{seekTime:kt}=e,Xt=Se.getLogger().createComponentLog("Root component"),St=Se.interfaceLanguage$;D(t,St,le=>i(47,ae=le));let jt=Se.state.playbackState$;D(t,jt,le=>i(126,ne=le));let Gt=Se.ads.playbackState;D(t,Gt,le=>i(127,ge=le));let Dt=Se.state.positionWithScrubbing$;D(t,Dt,le=>i(44,a=le));let Fi=Se.state.duration$;D(t,Fi,le=>i(43,r=le));let nn=Se.playerPhase;D(t,nn,le=>i(34,T=le));let Jt=Se.ui.isFullscreen;D(t,Jt,le=>i(140,s=le));let Li=Se.ui.controlsVisible;D(t,Li,le=>i(30,o=le));let sn=Se.ui.interactiveHideMobileControls;D(t,sn,le=>i(118,h=le));let zi=Se.ui.settingsMenuVisible;D(t,zi,le=>i(117,n=le));let on=Se.ui.scrubbingInProgress;D(t,on,le=>i(119,g=le));let bi=Se.ui.debugPanelVisible;D(t,bi,le=>i(57,Xe=le));let vi=Se.state.isLoaderVisible;D(t,vi,le=>i(128,j=le));let ui=Se.state.isEnded$;D(t,ui,le=>i(121,E=le));let ci=Se.state.chromecastConnected$;D(t,ci,le=>i(35,Y=le));let yi=Se.state.chromecastDeviceName$;D(t,yi,le=>i(52,W=le));let wi=Se.ads.postrollPassed;D(t,wi,le=>i(122,v=le));let ki=Se.ui.mobileUnmuteButtonExpanded,fi=Se.ui.mobileUnmuteButtonVisible,Hi=Se.state.isLive$;D(t,Hi,le=>i(56,Ve=le));let Nt=Se.state.isPlaying$;D(t,Nt,le=>i(46,X=le));let Si=Se.state.isActiveLive$;D(t,Si,le=>i(49,z=le));let Mi=Se.state.isRewindableLive$,Ui=Se.state.crashed$;D(t,Ui,le=>i(33,b=le));let di=Se.webApi.annotationsApi,Lt=Se.webApi.pictureInPictureApi,Wi=Se.state.videoSize$;D(t,Wi,le=>i(141,f=le));let Vi=Se.state.currentSubtitle$;D(t,Vi,le=>i(53,Q=le));let Ot=Se.state.currentSubtitleCaptions$;D(t,Ot,le=>i(54,te=le));let Ki=Se.state.duration$;D(t,Ki,le=>i(55,re=le));let ji=Se.state.graphIsOpened$;D(t,ji,le=>i(125,N=le));let Qt=Se.ui.playerSize;D(t,Qt,le=>i(31,u=le));let Ci=Se.ui.is3DVideo;D(t,Ci,le=>i(50,G=le));let mi=Se.ui.icon3DVideoVisible;D(t,mi,le=>i(51,$=le));let Pi=Se.ui.rotateAlpha;D(t,Pi,le=>i(32,w=le));let Yt=Se.state.isInteractive,Ft=Se.state.isInteractiveTime$;D(t,Ft,le=>i(120,C=le));let xt=Se.state.isInteractiveExpectation$;D(t,xt,le=>i(124,q=le));let Ri=Se.state.hasInteractiveBranches,ni=Se.ui.controls.disabledControls$;D(t,ni,le=>i(48,K=le));let oi=Se.ui.touched;D(t,oi,le=>i(123,y=le));let $t=Se.ui.overlayContainer$,Gi=Se.state.loadedMetadata$;D(t,Gi,le=>i(139,l=le));let Qi=Se.actions.internal.closeSettingsMenu,an=Se.callbacks?.onDisabledPlayPrevChapterClick,Bi=Se.callbacks?.onDisabledSeekToInteractiveClick,ei,ti,Yi,Mt,Vt,Zi,Ti,ii=qe(!1);D(t,ii,le=>i(45,p=le));let Xi,et=!1,Ii,zt=!1,We,Ji=!0,un,cn,xi=!1,qi;Lt?.setContext(Pl());let ln=le=>{clearTimeout(Mt),le&&(fi.set(!0),ki.set(!0),Mt=window.setTimeout(()=>{ki.set(!1)},Me.controls.collapseMobileUnmute),Yt||Zt(Me.controls.hideTimeoutMobile))};Se.setUiCallbacks({onStarted:ln});let Di=()=>{window.clearTimeout(Yi),i(112,et=!1),h&&sn.set(!1)},Zt=le=>{Di(),i(112,et=!0),Yi=window.setTimeout(()=>i(112,et=!1),le);let _t=le-100;Xi=window.setTimeout(()=>{p&&ii.set(!1)},_t>0?_t:le)},$i=Ci.subscribe(le=>{mi.set(le),le&&(window.clearTimeout(Vt),Vt=window.setTimeout(()=>mi.set(!1),Me.controls.hide360IconTimeout))}),pi=async()=>{let le=fo();if(le){let _t=Al(),Ni=dn(),_n=ls.isSamsungBrowser&&_t===dt;le=_t===Ni||_n}if(le){Zt(Me.controls.hideTimeoutFullscreen);try{await Lt?.remove()}catch(_t){Xt({message:String(_t)})}try{let _t=f?.width&&f?.height?f:u;await If(_t)}catch(_t){Xt({message:String(_t)})}}Jt.set(le),Se.getAdmanWrapper().setFullscreen(le),s?Se.callbacks?.onFullscreenEnter?.():Se.callbacks?.onFullscreenExit?.()},hn=le=>{let _t=le;Qt.set({width:_t.target.width,height:_t.target.height})};It(()=>(sr(pi),Me.features.annotationsInside&&di?.init(ei),Ro(Lt)&&(Lt?.assignPlayerContainer(ei),Lt?.registryExternalEventHandlers({resize:hn})),i(39,Ji=!ls.isIphoneOrOldIpad),ce&&$e.parentElement?.insertBefore(ce,$e.nextSibling),()=>{window.clearTimeout(Yi),window.clearTimeout(Xi),window.clearTimeout(Mt),window.clearTimeout(Vt),$i(),Lt?.dispose(),ar(pi)}));let fn=le=>{let _t=a+(le==="forward"?1:-1)*Me.controls.seekStepMobile/1e3;_t<0?_t=0:_t>r&&(_t=r-1),i(114,zt=!0),kt(_t)},dn=()=>{let le=ls.isIOS||Me.features.fullscreenInternalTargetPlayerContainer||!yt?ei:yt,_t=le.getRootNode(),Ni=_t instanceof ShadowRoot?_t.host:_t,_n=Ye instanceof HTMLElement&&Ye.contains(Ni);return Me.allowChangingFullscreenTarget&&Ye&&_n?Ye:le},yn=async()=>{if(fo())await rr(document),Xt({message:"exit fullscreen"});else{if(Xt({message:"request fullscreen"}),ls.isIOS&&!l)return;await lr(dn())}},rn=()=>{Qi()},mn=()=>{if(n){rn();return}if(!Kt){gt(),Zt(Me.controls.hideTimeoutCursor);return}i(114,zt=!1),o?Di():Zt(Me.controls.hideTimeoutMobile)},pn=()=>{if(n){rn();return}},en=()=>{oi.set(!0)},_i=()=>{Yt||(ii.set(!0),Zt(Me.controls.hideTimeoutCursor))},wn=le=>{an&&(an(le),Zt(Me.controls.hideTimeoutMobile))},tn=le=>{Bi&&(Bi(le),Zt(Me.controls.hideTimeoutMobile))};function En(le){be[le?"unshift":"push"](()=>{$e=le,i(0,$e)})}let Ht=()=>fn("backward"),An=()=>fn("forward");function Ln(le){ti=le,i(37,ti)}function kn(le){be[le?"unshift":"push"](()=>{Ti=le,i(29,Ti)})}function Mn(le){be[le?"unshift":"push"](()=>{ei=le,i(36,ei)})}return t.$$set=le=>{"store"in le&&i(105,Se=le.store),"uiConfig"in le&&i(1,Me=le.uiConfig),"thumbUrl"in le&&i(2,Ue=le.thumbUrl),"videoContainer"in le&&i(0,$e=le.videoContainer),"interactiveContainer"in le&&i(106,ce=le.interactiveContainer),"live"in le&&i(3,_e=le.live),"autoplay"in le&&i(4,at=le.autoplay),"canRewindLive"in le&&i(5,ke=le.canRewindLive),"showAds"in le&&i(6,Fe=le.showAds),"adsSlotId"in le&&i(7,ft=le.adsSlotId),"adsParams"in le&&i(8,Qe=le.adsParams),"adsPreviewParam"in le&&i(9,je=le.adsPreviewParam),"duration"in le&&i(10,Ze=le.duration),"logoClickable"in le&&i(11,xe=le.logoClickable),"logoHidden"in le&&i(12,x=le.logoHidden),"logoTargetUrl"in le&&i(13,De=le.logoTargetUrl),"showNextPrevButtons"in le&&i(14,ze=le.showNextPrevButtons),"nextButtonActive"in le&&i(15,fe=le.nextButtonActive),"prevButtonActive"in le&&i(16,se=le.prevButtonActive),"endScreenVideoTitle"in le&&i(17,nt=le.endScreenVideoTitle),"endScreenVideoThumb"in le&&i(18,de=le.endScreenVideoThumb),"isOneVideoPlaylist"in le&&i(19,ot=le.isOneVideoPlaylist),"supportLink"in le&&i(20,lt=le.supportLink),"shadowRootContainer"in le&&i(107,dt=le.shadowRootContainer),"outerContainerRef"in le&&i(108,yt=le.outerContainerRef),"showMiniTimer"in le&&i(109,Et=le.showMiniTimer),"fullScreenTarget"in le&&i(110,Ye=le.fullScreenTarget),"playerStarted"in le&&i(21,Kt=le.playerStarted),"playNextVideo"in le&&i(22,qt=le.playNextVideo),"playPrevVideo"in le&&i(23,Tt=le.playPrevVideo),"repeatPlaylist"in le&&i(24,ai=le.repeatPlaylist),"seekToInteractive"in le&&i(25,rt=le.seekToInteractive),"toggleGraph"in le&&i(26,wt=le.toggleGraph),"playPrevChapter"in le&&i(27,we=le.playPrevChapter),"firstStart"in le&&i(28,gt=le.firstStart),"seekTime"in le&&i(111,kt=le.seekTime)},t.$$.update=()=>{t.$$.dirty[1]&12|t.$$.dirty[4]&24&&i(38,Zi=(T==="video"&&j||T==="ads"&&ge==="inactive")&&!b),t.$$.dirty[0]&536870912&&$t.set(Ti),t.$$.dirty[4]&4&&i(113,Ii=ne!==R6.PLAYING),t.$$.dirty[3]&303562752|t.$$.dirty[4]&3&&i(115,We=N||h||!et&&(E&&!!Ri||Ii&&q)),t.$$.dirty[1]&28|t.$$.dirty[3]&91750400&&Li.set((Ii||n||g||Y||et&&!zt)&&!We&&T==="video"&&!b),t.$$.dirty[0]&1073741826|t.$$.dirty[1]&12|t.$$.dirty[3]&1073807360&&i(40,un=Me.features.thumbTimer&&Et&&T==="video"&&!o&&!b&&!Yt&&(Me.hideThumbTimerAfterTouch&&!y||!Me.hideThumbTimerAfterTouch)),t.$$.dirty[0]&64|t.$$.dirty[1]&4|t.$$.dirty[3]&805306368&&i(41,cn=(Fe&&v||!Fe)&&E&&!b),t.$$.dirty[0]&2|t.$$.dirty[3]&209715200&&(!g&&xi&&!C&&Zt(Me.controls.hideTimeoutMobile),i(116,xi=g)),t.$$.dirty[0]&1|t.$$.dirty[1]&3&&i(42,qi=$e&&w%180?u.height/u.width:1)},[$e,Me,Ue,_e,at,ke,Fe,ft,Qe,je,Ze,xe,x,De,ze,fe,se,nt,de,ot,lt,Kt,qt,Tt,ai,rt,wt,we,gt,Ti,o,u,w,b,T,Y,ei,ti,Zi,Ji,un,cn,qi,r,a,p,X,ae,K,z,G,$,W,Q,te,re,Ve,Xe,St,jt,Gt,Dt,Fi,nn,Jt,Li,sn,zi,on,bi,vi,ui,ci,yi,wi,Hi,Nt,Si,Mi,Ui,Wi,Vi,Ot,Ki,ji,Qt,Ci,mi,Pi,Yt,Ft,xt,ni,oi,Gi,ii,fn,yn,rn,mn,pn,en,_i,wn,tn,Se,ce,dt,yt,Et,Ye,kt,et,Ii,zt,We,xi,n,h,g,C,E,v,y,q,N,ne,ge,j,En,Ht,An,Ln,kn,Mn]}var gc=class extends H{constructor(e){super(),U(this,e,D6,q6,F,{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},B6,[-1,-1,-1,-1,-1,-1])}},Ep=gc;function z6(t){Pe(t,"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(
34
+ )}.hidden.svelte-1bcvcf2{visibility:hidden;transform:translateY(calc(var(--controls-gradient-height) * -1));opacity:0}`)}function a6(t){let e,i;return{c(){e=T("div"),i=Re(t[0]),c(e,"class","title svelte-1bcvcf2"),q(e,"hidden",t[1])},m(n,o){S(n,e,o),m(e,i)},p(n,[o]){o&1&&Ge(i,n[0]),o&2&&q(e,"hidden",n[1])},i:Ce,o:Ce,d(n){n&&k(e)}}}function u6(t,e,i){let{title:n=""}=e,{isHidden:o=!1}=e;return t.$$set=l=>{"title"in l&&i(0,n=l.title),"isHidden"in l&&i(1,o=l.isHidden)},[n,o]}var rc=class extends H{constructor(e){super(),U(this,e,u6,a6,F,{title:0,isHidden:1},s6)}},N0=rc;function c6(t){Te(t,"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 O0(t){let e,i,n,o,l,r,a;return{c(){e=T("div"),i=T("span"),n=Re(t[0]),o=M(),l=T("span"),l.textContent=`${N("waiting_live_day_value")}`,r=M(),a=T("span"),a.textContent=`${N("waiting_live_colon")}`,c(i,"class","cell__value svelte-1qpxtfg"),c(l,"class","cell__unit svelte-1qpxtfg"),c(e,"class","timer__cell cell svelte-1qpxtfg"),c(a,"class","timer__points svelte-1qpxtfg")},m(s,u){S(s,e,u),m(e,i),m(i,n),m(e,o),m(e,l),S(s,r,u),S(s,a,u)},p(s,u){u&1&&Ge(n,s[0])},d(s){s&&(k(e),k(r),k(a))}}}function F0(t){let e,i,n,o,l,r,a;return{c(){e=T("div"),i=T("span"),n=Re(t[1]),o=M(),l=T("span"),l.textContent=`${N("waiting_live_hour_value")}`,r=M(),a=T("span"),a.textContent=`${N("waiting_live_colon")}`,c(i,"class","cell__value svelte-1qpxtfg"),c(l,"class","cell__unit svelte-1qpxtfg"),c(e,"class","timer__cell cell svelte-1qpxtfg"),c(a,"class","timer__points svelte-1qpxtfg")},m(s,u){S(s,e,u),m(e,i),m(i,n),m(e,o),m(e,l),S(s,r,u),S(s,a,u)},p(s,u){u&2&&Ge(n,s[1])},d(s){s&&(k(e),k(r),k(a))}}}function z0(t){let e,i,n,o,l,r,a;return{c(){e=T("div"),i=T("span"),n=Re(t[2]),o=M(),l=T("span"),l.textContent=`${N("waiting_live_minute_value")}`,r=M(),a=T("span"),a.textContent=`${N("waiting_live_colon")}`,c(i,"class","cell__value svelte-1qpxtfg"),c(l,"class","cell__unit svelte-1qpxtfg"),c(e,"class","timer__cell cell svelte-1qpxtfg"),c(a,"class","timer__points svelte-1qpxtfg")},m(s,u){S(s,e,u),m(e,i),m(i,n),m(e,o),m(e,l),S(s,r,u),S(s,a,u)},p(s,u){u&4&&Ge(n,s[2])},d(s){s&&(k(e),k(r),k(a))}}}function H0(t){let e,i,n,o,l;return{c(){e=T("div"),i=T("span"),n=Re(t[3]),o=M(),l=T("span"),l.textContent=`${N("waiting_live_second_value")}`,c(i,"class","cell__value svelte-1qpxtfg"),c(l,"class","cell__unit svelte-1qpxtfg"),c(e,"class","timer__cell cell svelte-1qpxtfg")},m(r,a){S(r,e,a),m(e,i),m(i,n),m(e,o),m(e,l)},p(r,a){a&8&&Ge(n,r[3])},d(r){r&&k(e)}}}function f6(t){let e,i,n,o,l=t[0]&&O0(t),r=t[1]&&F0(t),a=t[2]&&z0(t),s=t[3]&&H0(t);return{c(){e=T("div"),l&&l.c(),i=M(),r&&r.c(),n=M(),a&&a.c(),o=M(),s&&s.c(),c(e,"class","timer__container svelte-1qpxtfg")},m(u,f){S(u,e,f),l&&l.m(e,null),m(e,i),r&&r.m(e,null),m(e,n),a&&a.m(e,null),m(e,o),s&&s.m(e,null)},p(u,[f]){u[0]?l?l.p(u,f):(l=O0(u),l.c(),l.m(e,i)):l&&(l.d(1),l=null),u[1]?r?r.p(u,f):(r=F0(u),r.c(),r.m(e,n)):r&&(r.d(1),r=null),u[2]?a?a.p(u,f):(a=z0(u),a.c(),a.m(e,o)):a&&(a.d(1),a=null),u[3]?s?s.p(u,f):(s=H0(u),s.c(),s.m(e,null)):s&&(s.d(1),s=null)},i:Ce,o:Ce,d(u){u&&k(e),l&&l.d(),r&&r.d(),a&&a.d(),s&&s.d()}}}function d6(t,e,i){let{startTime:n}=e,{onTimerOver:o}=e,l,r,a,s,u,f=w=>String(w).padStart(2,"0"),p=w=>{let g=Math.floor(w/86400);g&&(w-=g*86400,i(0,l=f(g)));let C=Math.floor(w/3600);i(1,r=f(C));let b=Math.floor(w/60)%60;i(2,a=f(b));let E=w%60;i(3,s=f(E))},h=()=>{let w=Math.floor(Date.now()/1e3),g=n-w;p(g),g>=1?u=requestAnimationFrame(h):o()};return It(()=>{u=requestAnimationFrame(h)}),Un(()=>{cancelAnimationFrame(u)}),t.$$set=w=>{"startTime"in w&&i(4,n=w.startTime),"onTimerOver"in w&&i(5,o=w.onTimerOver)},[l,r,a,s,n,o]}var sc=class extends H{constructor(e){super(),U(this,e,d6,f6,F,{startTime:4,onTimerOver:5},c6)}},U0=sc;function m6(t){let e,i,n,o,l,r,a=t[2].default,s=Ie(a,t,t[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"},t[0]],f={};for(let p=0;p<u.length;p+=1)f=ue(f,u[p]);return{c(){e=R("svg"),s&&s.c(),i=R("path"),n=R("path"),o=R("path"),l=R("path"),c(i,"fill","#fefffe"),c(i,"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"),bi(i,"opacity",".965"),c(n,"fill","#fefffe"),c(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"),bi(n,"opacity",".965"),c(o,"fill","#fefffe"),c(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"),bi(o,"opacity",".985"),c(l,"fill","#fefffe"),c(l,"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"),bi(l,"opacity",".986"),ye(e,f)},m(p,h){S(p,e,h),s&&s.m(e,null),m(e,i),m(e,n),m(e,o),m(e,l),r=!0},p(p,[h]){s&&s.p&&(!r||h&2)&&Ae(s,a,p,p[1],r?Ee(a,p[1],h,null):Le(p[1]),null),ye(e,f=Be(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&&p[0]]))},i(p){r||(d(s,p),r=!0)},o(p){_(s,p),r=!1},d(p){p&&k(e),s&&s.d(p)}}}function p6(t,e,i){let{$$slots:n={},$$scope:o}=e;return t.$$set=l=>{i(0,e=ue(ue({},e),ve(l))),"$$scope"in l&&i(1,o=l.$$scope)},e=ve(e),[e,o,n]}var ac=class extends H{constructor(e){super(),U(this,e,p6,m6,F,{})}},K0=ac;function _6(t){Te(t,"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 h6(t){let e,i,n,o,l;return o=new U0({props:{startTime:t[1]||0,onTimerOver:t[3]}}),{c(){e=T("div"),i=T("span"),i.textContent=`${N("waiting_live_timer_title")}`,n=M(),V(o.$$.fragment),c(i,"class","timer__title svelte-15pewff"),c(e,"class","waiting-timer timer svelte-15pewff")},m(r,a){S(r,e,a),m(e,i),m(e,n),A(o,e,null),l=!0},p(r,a){let s={};a&2&&(s.startTime=r[1]||0),a&4&&(s.onTimerOver=r[3]),o.$set(s)},i(r){l||(d(o.$$.fragment,r),l=!0)},o(r){_(o.$$.fragment,r),l=!1},d(r){r&&k(e),L(o)}}}function g6(t){let e,i,n,o,l,r;return n=new K0({}),{c(){e=T("div"),i=T("div"),V(n.$$.fragment),o=M(),l=T("span"),l.textContent=`${N("waiting_live_upcoming_title")}`,c(i,"class","upcoming-icon svelte-15pewff"),c(l,"class","upcoming__title svelte-15pewff"),c(e,"class","upcoming svelte-15pewff")},m(a,s){S(a,e,s),m(e,i),A(n,i,null),m(e,o),m(e,l),r=!0},p:Ce,i(a){r||(d(n.$$.fragment,a),r=!0)},o(a){_(n.$$.fragment,a),r=!1},d(a){a&&k(e),L(n)}}}function b6(t){let e,i,n,o,l,r=[g6,h6],a=[];function s(u,f){return u[2]?0:1}return i=s(t,-1),n=a[i]=r[i](t),{c(){e=T("div"),n.c(),c(e,"class","waiting-container svelte-15pewff"),c(e,"style",o=`background-image: url(${t[2]?"":t[0]})`)},m(u,f){S(u,e,f),a[i].m(e,null),l=!0},p(u,[f]){let p=i;i=s(u,f),i===p?a[i].p(u,f):(me(),_(a[p],1,1,()=>{a[p]=null}),pe(),n=a[i],n?n.p(u,f):(n=a[i]=r[i](u),n.c()),d(n,1),n.m(e,null)),(!l||f&5&&o!==(o=`background-image: url(${u[2]?"":u[0]})`))&&c(e,"style",o)},i(u){l||(d(n),l=!0)},o(u){_(n),l=!1},d(u){u&&k(e),a[i].d()}}}function v6(t,e,i){let n,{thumbUrl:o}=e,{startTime:l}=e,r=()=>i(2,n=!0);return t.$$set=a=>{"thumbUrl"in a&&i(0,o=a.thumbUrl),"startTime"in a&&i(1,l=a.startTime)},t.$$.update=()=>{t.$$.dirty&2&&i(2,n=l===void 0||l<Math.floor(Date.now()/1e3))},[o,l,n,r]}var uc=class extends H{constructor(e){super(),U(this,e,v6,b6,F,{thumbUrl:0,startTime:1},_6)}},os=uc;function y6(t){Te(t,"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 w6(t){let e,i,n,o,l,r,a,s;return n=new ml({props:{style:"position: static; transform: translate(0, 0)"}}),{c(){e=T("div"),i=T("div"),V(n.$$.fragment),o=M(),l=T("p"),r=Re(t[1]),c(l,"class","waiting-title svelte-xvqwsa"),c(i,"class","waiting-caption svelte-xvqwsa"),c(e,"class","waiting-container svelte-xvqwsa"),c(e,"style",a=`background-image: url('${t[0]}')`)},m(u,f){S(u,e,f),m(e,i),A(n,i,null),m(i,o),m(i,l),m(l,r),s=!0},p(u,[f]){(!s||f&2)&&Ge(r,u[1]),(!s||f&1&&a!==(a=`background-image: url('${u[0]}')`))&&c(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 k6(t,e,i){let{thumbUrl:n=""}=e,{kind:o}=e,l;return t.$$set=r=>{"thumbUrl"in r&&i(0,n=r.thumbUrl),"kind"in r&&i(2,o=r.kind)},t.$$.update=()=>{if(t.$$.dirty&4){let r={recover:N("waiting_live_recover_title"),record:N("waiting_record_title")};i(1,l=r[o]||"")}},[n,l,o]}var cc=class extends H{constructor(e){super(),U(this,e,k6,w6,F,{thumbUrl:0,kind:2},y6)}},bl=cc;var{window:S6}=To;function T6(t){Te(t,"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 j0(t){let e,i;return e=new os({props:{thumbUrl:t[3],startTime:t[4]?.startTime}}),{c(){V(e.$$.fragment)},m(n,o){A(e,n,o),i=!0},p(n,o){let l={};o[0]&8&&(l.thumbUrl=n[3]),o[0]&16&&(l.startTime=n[4]?.startTime),e.$set(l)},i(n){i||(d(e.$$.fragment,n),i=!0)},o(n){_(e.$$.fragment,n),i=!1},d(n){L(e,n)}}}function G0(t){let e,i;return e=new bl({props:{kind:"recover",thumbUrl:t[3]}}),{c(){V(e.$$.fragment)},m(n,o){A(e,n,o),i=!0},p(n,o){let l={};o[0]&8&&(l.thumbUrl=n[3]),e.$set(l)},i(n){i||(d(e.$$.fragment,n),i=!0)},o(n){_(e.$$.fragment,n),i=!1},d(n){L(e,n)}}}function Q0(t){let e,i;return e=new bl({props:{kind:"record",thumbUrl:t[3]}}),{c(){V(e.$$.fragment)},m(n,o){A(e,n,o),i=!0},p(n,o){let l={};o[0]&8&&(l.thumbUrl=n[3]),e.$set(l)},i(n){i||(d(e.$$.fragment,n),i=!0)},o(n){_(e.$$.fragment,n),i=!1},d(n){L(e,n)}}}function Y0(t){let e,i,n;return i=new ur({props:{adsSlotId:t[8],adsParams:t[9],adsPreviewParam:t[10],duration:t[11]}}),{c(){e=T("div"),V(i.$$.fragment),c(e,"class","ads-container svelte-12e19rp"),q(e,"hidden",t[38]!=="ads")},m(o,l){S(o,e,l),A(i,e,null),n=!0},p(o,l){let r={};l[0]&256&&(r.adsSlotId=o[8]),l[0]&512&&(r.adsParams=o[9]),l[0]&1024&&(r.adsPreviewParam=o[10]),l[0]&2048&&(r.duration=o[11]),i.$set(r),(!n||l[1]&128)&&q(e,"hidden",o[38]!=="ads")},i(o){n||(d(i.$$.fragment,o),n=!0)},o(o){_(i.$$.fragment,o),n=!1},d(o){o&&k(e),L(i)}}}function Z0(t){let e,i;return e=new bd({props:{title:t[18],thumb:t[19],playNextVideo:t[23]}}),{c(){V(e.$$.fragment)},m(n,o){A(e,n,o),i=!0},p(n,o){let l={};o[0]&262144&&(l.title=n[18]),o[0]&524288&&(l.thumb=n[19]),o[0]&8388608&&(l.playNextVideo=n[23]),e.$set(l)},i(n){i||(d(e.$$.fragment,n),i=!0)},o(n){_(e.$$.fragment,n),i=!1},d(n){L(e,n)}}}function X0(t){let e,i;return e=new N0({props:{title:t[2],isHidden:!t[36]}}),{c(){V(e.$$.fragment)},m(n,o){A(e,n,o),i=!0},p(n,o){let l={};o[0]&4&&(l.title=n[2]),o[1]&32&&(l.isHidden=!n[36]),e.$set(l)},i(n){i||(d(e.$$.fragment,n),i=!0)},o(n){_(e.$$.fragment,n),i=!1},d(n){L(e,n)}}}function J0(t){let e,i;return e=new $r({props:{isShifted:t[38]==="video"&&t[36]}}),{c(){V(e.$$.fragment)},m(n,o){A(e,n,o),i=!0},p(n,o){let l={};o[1]&160&&(l.isShifted=n[38]==="video"&&n[36]),e.$set(l)},i(n){i||(d(e.$$.fragment,n),i=!0)},o(n){_(e.$$.fragment,n),i=!1},d(n){L(e,n)}}}function x0(t){let e,i,n;return i=new $l({props:{"aria-label":N("video360")}}),{c(){e=T("div"),V(i.$$.fragment),c(e,"class","spherical-video-icon svelte-12e19rp")},m(o,l){S(o,e,l),A(i,e,null),n=!0},i(o){n||(d(i.$$.fragment,o),n=!0)},o(o){_(i.$$.fragment,o),n=!1},d(o){o&&k(e),L(i)}}}function $0(t){let e,i;return e=new ts({props:{thumbUrl:t[3],chromecastDeviceName:t[54]}}),{c(){V(e.$$.fragment)},m(n,o){A(e,n,o),i=!0},p(n,o){let l={};o[0]&8&&(l.thumbUrl=n[3]),o[1]&8388608&&(l.chromecastDeviceName=n[54]),e.$set(l)},i(n){i||(d(e.$$.fragment,n),i=!0)},o(n){_(e.$$.fragment,n),i=!1},d(n){L(e,n)}}}function ep(t){let e,i;return e=new es({props:{shifted:t[36],captions:t[56],position:t[57],playerSize:t[34]}}),{c(){V(e.$$.fragment)},m(n,o){A(e,n,o),i=!0},p(n,o){let l={};o[1]&32&&(l.shifted=n[36]),o[1]&33554432&&(l.captions=n[56]),o[1]&67108864&&(l.position=n[57]),o[1]&8&&(l.playerSize=n[34]),e.$set(l)},i(n){i||(d(e.$$.fragment,n),i=!0)},o(n){_(e.$$.fragment,n),i=!1},d(n){L(e,n)}}}function tp(t){let e,i,n,o,l;return i=new is({}),{c(){e=T("div"),V(i.$$.fragment)},m(r,a){S(r,e,a),A(i,e,null),n=!0,o||(l=[_e(e,"contextmenu",Ut(t[108])),_e(e,"click",ot(t[119]))],o=!0)},p:Ce,i(r){n||(d(i.$$.fragment,r),n=!0)},o(r){_(i.$$.fragment,r),n=!1},d(r){r&&k(e),L(i),o=!1,tt(l)}}}function ip(t){let e,i,n;function o(r){t[158](r)}let l={bottomHidden:t[38]==="thumb"||t[38]==="LiveWaitingStart"||t[38]==="LiveWaitingRecover"||t[38]==="LiveWaitingRecord",bottomNoSmooth:t[50],showControls:t[36],isAds:t[38]==="ads",canRewindLive:t[6]&&t[58]!==0,logoClickable:t[12],logoHidden:t[13],logoTargetUrl:t[14],showNextPrevButtons:t[15],nextButtonActive:t[16],prevButtonActive:t[17],isOneVideoPlaylist:t[20],supportLink:t[21],customFullscreenSupported:sp,playNextVideo:t[23],playPrevVideo:t[24],repeatPlaylist:t[25],toggleFullscreen:t[106],returnFocus:t[157],seekToInteractive:t[26],toggleGraph:t[27],playPrevChapter:t[28]};return t[41]!==void 0&&(l.controlsElementRef=t[41]),e=new xr({props:l}),be.push(()=>Oe(e,"controlsElementRef",o)),{c(){V(e.$$.fragment)},m(r,a){A(e,r,a),n=!0},p(r,a){let s={};a[1]&128&&(s.bottomHidden=r[38]==="thumb"||r[38]==="LiveWaitingStart"||r[38]==="LiveWaitingRecover"||r[38]==="LiveWaitingRecord"),a[1]&524288&&(s.bottomNoSmooth=r[50]),a[1]&32&&(s.showControls=r[36]),a[1]&128&&(s.isAds=r[38]==="ads"),a[0]&64|a[1]&134217728&&(s.canRewindLive=r[6]&&r[58]!==0),a[0]&4096&&(s.logoClickable=r[12]),a[0]&8192&&(s.logoHidden=r[13]),a[0]&16384&&(s.logoTargetUrl=r[14]),a[0]&32768&&(s.showNextPrevButtons=r[15]),a[0]&65536&&(s.nextButtonActive=r[16]),a[0]&131072&&(s.prevButtonActive=r[17]),a[0]&1048576&&(s.isOneVideoPlaylist=r[20]),a[0]&2097152&&(s.supportLink=r[21]),a[0]&8388608&&(s.playNextVideo=r[23]),a[0]&16777216&&(s.playPrevVideo=r[24]),a[0]&33554432&&(s.repeatPlaylist=r[25]),a[1]&131072&&(s.returnFocus=r[157]),a[0]&67108864&&(s.seekToInteractive=r[26]),a[0]&134217728&&(s.toggleGraph=r[27]),a[0]&268435456&&(s.playPrevChapter=r[28]),!i&&a[1]&1024&&(i=!0,s.controlsElementRef=r[41],Ne(()=>i=!1)),e.$set(s)},i(r){n||(d(e.$$.fragment,r),n=!0)},o(r){_(e.$$.fragment,r),n=!1},d(r){L(e,r)}}}function np(t){let e,i;return e=new ml({}),{c(){V(e.$$.fragment)},m(n,o){A(e,n,o),i=!0},i(n){i||(d(e.$$.fragment,n),i=!0)},o(n){_(e.$$.fragment,n),i=!1},d(n){L(e,n)}}}function op(t){let e,i;return e=new Ed({}),{c(){V(e.$$.fragment)},m(n,o){A(e,n,o),i=!0},i(n){i||(d(e.$$.fragment,n),i=!0)},o(n){_(e.$$.fragment,n),i=!1},d(n){L(e,n)}}}function lp(t){let e,i;return e=new hr({}),{c(){V(e.$$.fragment)},m(n,o){A(e,n,o),i=!0},i(n){i||(d(e.$$.fragment,n),i=!0)},o(n){_(e.$$.fragment,n),i=!1},d(n){L(e,n)}}}function rp(t){let e,i,n,o,l,r,a,s,u,f,p,h,w,g,C,b,E,v,y,P,W,B,O,ne,ge;e=new ns({props:{hidden:t[38]!=="thumb"||t[37]||t[92]&&t[5],thumbUrl:t[3],startVideo:t[29]}});let G=t[38]==="LiveWaitingStart"&&j0(t),X=t[38]==="LiveWaitingRecover"&&G0(t),ae=t[38]==="LiveWaitingRecord"&&Q0(t),j=t[7]&&t[22]&&Y0(t),z=t[31]&&t[18]&&t[19]&&Z0(t),Q=t[44]&&X0(t),$=t[49]&&J0(t),K=t[53]&&x0(t),Y=t[39]&&$0(t),ie=t[55].value!=="off"&&ep(t),re=t[37]&&tp(t),Ve=t[22]&&ip(t);C=new fr({props:{isLive:t[59],isHidden:!t[43],isPlaying:t[51],position:t[57],duration:t[60]}}),E=new E0({props:{data:t[103]}});function Xe(ce){t[160](ce)}let Se={supportLink:t[21],returnFocus:t[159],visible:t[33],playerContainerRef:t[40],controlsContainerRef:t[41],position:t[61]};t[32]!==void 0&&(Se.menuElementRef=t[32]),y=new xf({props:Se}),be.push(()=>Oe(y,"menuElementRef",Xe));let Me=t[42]&&np(t),Ke=t[62]&&op(t),$e=t[63]&&lp(t);return{c(){V(e.$$.fragment),i=M(),G&&G.c(),n=M(),X&&X.c(),o=M(),ae&&ae.c(),l=M(),j&&j.c(),r=M(),z&&z.c(),a=M(),Q&&Q.c(),s=M(),$&&$.c(),u=M(),K&&K.c(),f=M(),Y&&Y.c(),p=M(),ie&&ie.c(),h=M(),re&&re.c(),w=M(),Ve&&Ve.c(),g=M(),V(C.$$.fragment),b=M(),V(E.$$.fragment),v=M(),V(y.$$.fragment),W=M(),Me&&Me.c(),B=M(),Ke&&Ke.c(),O=M(),$e&&$e.c(),ne=ct()},m(ce,he){A(e,ce,he),S(ce,i,he),G&&G.m(ce,he),S(ce,n,he),X&&X.m(ce,he),S(ce,o,he),ae&&ae.m(ce,he),S(ce,l,he),j&&j.m(ce,he),S(ce,r,he),z&&z.m(ce,he),S(ce,a,he),Q&&Q.m(ce,he),S(ce,s,he),$&&$.m(ce,he),S(ce,u,he),K&&K.m(ce,he),S(ce,f,he),Y&&Y.m(ce,he),S(ce,p,he),ie&&ie.m(ce,he),S(ce,h,he),re&&re.m(ce,he),S(ce,w,he),Ve&&Ve.m(ce,he),S(ce,g,he),A(C,ce,he),S(ce,b,he),A(E,ce,he),S(ce,v,he),A(y,ce,he),S(ce,W,he),Me&&Me.m(ce,he),S(ce,B,he),Ke&&Ke.m(ce,he),S(ce,O,he),$e&&$e.m(ce,he),S(ce,ne,he),ge=!0},p(ce,he){let at={};he[0]&32|he[1]&192&&(at.hidden=ce[38]!=="thumb"||ce[37]||ce[92]&&ce[5]),he[0]&8&&(at.thumbUrl=ce[3]),he[0]&536870912&&(at.startVideo=ce[29]),e.$set(at),ce[38]==="LiveWaitingStart"?G?(G.p(ce,he),he[1]&128&&d(G,1)):(G=j0(ce),G.c(),d(G,1),G.m(n.parentNode,n)):G&&(me(),_(G,1,1,()=>{G=null}),pe()),ce[38]==="LiveWaitingRecover"?X?(X.p(ce,he),he[1]&128&&d(X,1)):(X=G0(ce),X.c(),d(X,1),X.m(o.parentNode,o)):X&&(me(),_(X,1,1,()=>{X=null}),pe()),ce[38]==="LiveWaitingRecord"?ae?(ae.p(ce,he),he[1]&128&&d(ae,1)):(ae=Q0(ce),ae.c(),d(ae,1),ae.m(l.parentNode,l)):ae&&(me(),_(ae,1,1,()=>{ae=null}),pe()),ce[7]&&ce[22]?j?(j.p(ce,he),he[0]&4194432&&d(j,1)):(j=Y0(ce),j.c(),d(j,1),j.m(r.parentNode,r)):j&&(me(),_(j,1,1,()=>{j=null}),pe()),ce[31]&&ce[18]&&ce[19]?z?(z.p(ce,he),he[0]&786432|he[1]&1&&d(z,1)):(z=Z0(ce),z.c(),d(z,1),z.m(a.parentNode,a)):z&&(me(),_(z,1,1,()=>{z=null}),pe()),ce[44]?Q?(Q.p(ce,he),he[1]&8192&&d(Q,1)):(Q=X0(ce),Q.c(),d(Q,1),Q.m(s.parentNode,s)):Q&&(me(),_(Q,1,1,()=>{Q=null}),pe()),ce[49]?$?($.p(ce,he),he[1]&262144&&d($,1)):($=J0(ce),$.c(),d($,1),$.m(u.parentNode,u)):$&&(me(),_($,1,1,()=>{$=null}),pe()),ce[53]?K?he[1]&4194304&&d(K,1):(K=x0(ce),K.c(),d(K,1),K.m(f.parentNode,f)):K&&(me(),_(K,1,1,()=>{K=null}),pe()),ce[39]?Y?(Y.p(ce,he),he[1]&256&&d(Y,1)):(Y=$0(ce),Y.c(),d(Y,1),Y.m(p.parentNode,p)):Y&&(me(),_(Y,1,1,()=>{Y=null}),pe()),ce[55].value!=="off"?ie?(ie.p(ce,he),he[1]&16777216&&d(ie,1)):(ie=ep(ce),ie.c(),d(ie,1),ie.m(h.parentNode,h)):ie&&(me(),_(ie,1,1,()=>{ie=null}),pe()),ce[37]?re?(re.p(ce,he),he[1]&64&&d(re,1)):(re=tp(ce),re.c(),d(re,1),re.m(w.parentNode,w)):re&&(me(),_(re,1,1,()=>{re=null}),pe()),ce[22]?Ve?(Ve.p(ce,he),he[0]&4194304&&d(Ve,1)):(Ve=ip(ce),Ve.c(),d(Ve,1),Ve.m(g.parentNode,g)):Ve&&(me(),_(Ve,1,1,()=>{Ve=null}),pe());let ke={};he[1]&268435456&&(ke.isLive=ce[59]),he[1]&4096&&(ke.isHidden=!ce[43]),he[1]&1048576&&(ke.isPlaying=ce[51]),he[1]&67108864&&(ke.position=ce[57]),he[1]&536870912&&(ke.duration=ce[60]),C.$set(ke);let Fe={};he[0]&2097152&&(Fe.supportLink=ce[21]),he[1]&131072&&(Fe.returnFocus=ce[159]),he[1]&4&&(Fe.visible=ce[33]),he[1]&512&&(Fe.playerContainerRef=ce[40]),he[1]&1024&&(Fe.controlsContainerRef=ce[41]),he[1]&1073741824&&(Fe.position=ce[61]),!P&&he[1]&2&&(P=!0,Fe.menuElementRef=ce[32],Ne(()=>P=!1)),y.$set(Fe),ce[42]?Me?he[1]&2048&&d(Me,1):(Me=np(ce),Me.c(),d(Me,1),Me.m(B.parentNode,B)):Me&&(me(),_(Me,1,1,()=>{Me=null}),pe()),ce[62]?Ke?he[2]&1&&d(Ke,1):(Ke=op(ce),Ke.c(),d(Ke,1),Ke.m(O.parentNode,O)):Ke&&(me(),_(Ke,1,1,()=>{Ke=null}),pe()),ce[63]?$e?he[2]&2&&d($e,1):($e=lp(ce),$e.c(),d($e,1),$e.m(ne.parentNode,ne)):$e&&(me(),_($e,1,1,()=>{$e=null}),pe())},i(ce){ge||(d(e.$$.fragment,ce),d(G),d(X),d(ae),d(j),d(z),d(Q),d($),d(K),d(Y),d(ie),d(re),d(Ve),d(C.$$.fragment,ce),d(E.$$.fragment,ce),d(y.$$.fragment,ce),d(Me),d(Ke),d($e),ge=!0)},o(ce){_(e.$$.fragment,ce),_(G),_(X),_(ae),_(j),_(z),_(Q),_($),_(K),_(Y),_(ie),_(re),_(Ve),_(C.$$.fragment,ce),_(E.$$.fragment,ce),_(y.$$.fragment,ce),_(Me),_(Ke),_($e),ge=!1},d(ce){ce&&(k(i),k(n),k(o),k(l),k(r),k(a),k(s),k(u),k(f),k(p),k(h),k(w),k(g),k(b),k(v),k(W),k(B),k(O),k(ne)),L(e,ce),G&&G.d(ce),X&&X.d(ce),ae&&ae.d(ce),j&&j.d(ce),z&&z.d(ce),Q&&Q.d(ce),$&&$.d(ce),K&&K.d(ce),Y&&Y.d(ce),ie&&ie.d(ce),re&&re.d(ce),Ve&&Ve.d(ce),L(C,ce),L(E,ce),L(y,ce),Me&&Me.d(ce),Ke&&Ke.d(ce),$e&&$e.d(ce)}}}function P6(t){let e,i,n,o,l=t[52],r,a,s,u,f=rp(t);return{c(){e=T("div"),i=T("div"),o=M(),f.c(),r=ct(),c(i,"class","video-container svelte-12e19rp"),c(i,"style",n=`transform: rotate(${t[35]}deg) scale(${t[46]})`),c(i,"data-testid","video-container"),c(i,"data-is-playing",t[51]),q(i,"fast-rotate",!t[1].isSmoothVideoRotate),c(e,"class","video-wrapper svelte-12e19rp"),q(e,"hidden",t[38]!=="video"),q(e,"nocursor",t[45])},m(p,h){S(p,e,h),m(e,i),t[156](i),S(p,o,h),f.m(p,h),S(p,r,h),a=!0,s||(u=[_e(e,"contextmenu",Ut(t[108])),_e(e,"mousedown",Ut(t[113])),_e(e,"mouseup",Ut(t[114])),_e(e,"click",Ut(t[116])),_e(e,"dblclick",Ut(t[115]))],s=!0)},p(p,h){(!a||h[1]&32784&&n!==(n=`transform: rotate(${p[35]}deg) scale(${p[46]})`))&&c(i,"style",n),(!a||h[1]&1048576)&&c(i,"data-is-playing",p[51]),(!a||h[0]&2)&&q(i,"fast-rotate",!p[1].isSmoothVideoRotate),(!a||h[1]&128)&&q(e,"hidden",p[38]!=="video"),(!a||h[1]&16384)&&q(e,"nocursor",p[45]),h[1]&2097152&&F(l,l=p[52])?(me(),_(f,1,1,Ce),pe(),f=rp(p),f.c(),d(f,1),f.m(r.parentNode,r)):f.p(p,h)},i(p){a||(d(f),a=!0)},o(p){_(f),a=!1},d(p){p&&(k(e),k(o),k(r)),t[156](null),f.d(p),s=!1,tt(u)}}}function I6(t){let e,i,n,o,l,r,a,s={toggleFullscreen:t[106],hideContextMenu:t[107],showHotKeyHelpers:t[117],showKeyMap:t[118],isAds:t[38]==="ads",fakePlayButtonHandler:t[47]?t[105]:void 0,$$slots:{default:[P6]},$$scope:{ctx:t}};return i=new vd({props:s}),t[161](i),{c(){e=T("div"),V(i.$$.fragment),n=M(),o=T("div"),c(o,"class","overlay-container"),c(e,"class","player-wrapper svelte-12e19rp")},m(u,f){S(u,e,f),A(i,e,null),m(e,n),m(e,o),t[162](o),t[163](e),l=!0,r||(a=[_e(S6,"blur",t[107]),_e(e,"mouseenter",t[109]),_e(e,"mouseleave",t[111]),_e(e,"mousemove",t[112]),_e(e,"click",t[120],!0),_e(e,"focusin",t[110],!0)],r=!0)},p(u,f){let p={};f[1]&128&&(p.isAds=u[38]==="ads"),f[1]&65536&&(p.fakePlayButtonHandler=u[47]?u[105]:void 0),f[0]&1073741823|f[1]&2147418111|f[2]&3|f[6]&16&&(p.$$scope={dirty:f,ctx:u}),i.$set(p)},i(u){l||(d(i.$$.fragment,u),l=!0)},o(u){_(i.$$.fragment,u),l=!1},d(u){u&&k(e),t[161](null),L(i),t[162](null),t[163](null),r=!1,tt(a)}}}var sp=!0;function dc(t){return t?t.offsetTop+dc(t.offsetParent):0}function ap(t){return t?t.offsetLeft+ap(t.offsetParent):0}function E6(t,e,i){let n,o,l,r,a,s,u,f,p,h,w,g,C,b,E,v,y,P,W,B,O,ne,ge,G,X,ae,j,z,Q,$,K,Y,ie,re,Ve,Xe,Se,Me,Ke,$e,ce,he,at,{store:ke}=e,{uiConfig:Fe}=e,{title:ft}=e,{thumbUrl:Qe}=e,{videoContainer:je}=e,{interactiveContainer:Ze}=e,{live:xe}=e,{autoplay:x}=e,{canRewindLive:De}=e,{showAds:ze}=e,{adsSlotId:fe=void 0}=e,{adsParams:se=void 0}=e,{adsPreviewParam:nt=void 0}=e,{duration:de=void 0}=e,{logoClickable:lt}=e,{logoHidden:rt}=e,{logoTargetUrl:dt=""}=e,{showNextPrevButtons:yt=!1}=e,{nextButtonActive:Et=!1}=e,{prevButtonActive:Ye=!1}=e,{endScreenVideoTitle:Kt=void 0}=e,{endScreenVideoThumb:qt=void 0}=e,{isOneVideoPlaylist:kt=!1}=e,{supportLink:ui}=e,{shadowRootContainer:st=void 0}=e,{outerContainerRef:wt=void 0}=e,{playerStarted:we=!1}=e,{fullScreenTarget:gt=void 0}=e,{showMiniTimer:St=!1}=e,{playNextVideo:Xt=fc}=e,{playPrevVideo:Ct=fc}=e,{repeatPlaylist:Wt=fc}=e,{seekToInteractive:jt}=e,{toggleGraph:Dt}=e,{playPrevChapter:Fi}=e,{firstStart:xi}=e,Jt=ke.getLogger().createComponentLog("Root component"),Ai=ke.interfaceLanguage$;D(t,Ai,Z=>i(52,Y=Z));let $i=ke.state.playbackState$;D(t,$i,Z=>i(153,z=Z));let zi=ke.ads.playbackState;D(t,zi,Z=>i(154,Q=Z));let en=ke.state.positionWithScrubbing$;D(t,en,Z=>i(57,Se=Z));let Li=ke.state.duration$;D(t,Li,Z=>i(60,$e=Z));let Mi=ke.playerPhase;D(t,Mi,Z=>i(38,ge=Z));let ci=ke.ui.isFullscreen;D(t,ci,Z=>i(143,g=Z));let fi=ke.ui.controlsVisible;D(t,fi,Z=>i(36,P=Z));let yi=ke.ui.settingsMenuVisible;D(t,yi,Z=>i(141,s=Z));let wi=ke.ui.scrubbingInProgress;D(t,wi,Z=>i(145,v=Z));let ni=ke.ui.contextMenu.visible$;D(t,ni,Z=>i(33,n=Z));let ki=ke.ui.debugPanelVisible;D(t,ki,Z=>i(63,at=Z));let Hi=ke.state.isLoaderVisible;D(t,Hi,Z=>i(155,$=Z));let Nt=ke.state.isEnded$;D(t,Nt,Z=>i(142,f=Z));let Si=ke.state.chromecastConnected$;D(t,Si,Z=>i(39,ae=Z));let Vi=ke.state.chromecastDeviceName$;D(t,Vi,Z=>i(54,re=Z));let Ui=ke.ads.postrollPassed;D(t,Ui,Z=>i(148,O=Z));let di=ke.state.isLive$;D(t,di,Z=>i(59,Ke=Z));let Mt=ke.state.isPlaying$;D(t,Mt,Z=>i(51,K=Z));let Ki=ke.state.crashed$;D(t,Ki,Z=>i(37,B=Z));let tn=ke.webApi.annotationsApi,Ot=ke.webApi.pictureInPictureApi,Wi=ke.state.currentSubtitle$;D(t,Wi,Z=>i(55,Ve=Z));let ji=ke.state.currentSubtitleCaptions$;D(t,ji,Z=>i(56,Xe=Z));let Gt=ke.state.duration$;D(t,Gt,Z=>i(58,Me=Z));let Ci=ke.state.graphIsOpened$;D(t,Ci,Z=>i(149,ne=Z));let mi=ke.ui.playerSize;D(t,mi,Z=>i(34,h=Z));let Ti=ke.ui.is3DVideo;D(t,Ti,Z=>i(49,p=Z));let Qt=ke.ui.icon3DVideoVisible;D(t,Qt,Z=>i(53,ie=Z));let Ft=ke.ui.rotateAlpha;D(t,Ft,Z=>i(35,E=Z));let xt=ke.state.isInteractive,Ri=ke.state.isInteractiveTime$;D(t,Ri,Z=>i(146,y=Z));let oi=ke.state.isInteractiveExpectation$;D(t,oi,Z=>i(152,j=Z));let li=ke.state.hasInteractiveBranches,$t=ke.ui.touched;D(t,$t,Z=>i(150,G=Z));let pi=ke.ui.modals.hotKeyMap.data;D(t,pi,Z=>i(170,u=Z));let Gi=ke.ui.modals.hotKeyMap.show;D(t,Gi,Z=>i(62,he=Z));let an=ke.ui.overlayContainer$,Bi=ke.ui.controls.interactiveTimeIndicator;D(t,Bi,Z=>i(171,w=Z));let ri=ke.state.showInteractiveTimeIndicator,Yt=ke.ui.contextMenu.position$;D(t,Yt,Z=>i(61,ce=Z));let nn=ke.actions.internal.closeSettingsMenu,{fakeIsPlaying$:At}=qn();D(t,At,Z=>i(144,b=Z));let Vt,on,_i,ei,ln;pi.set(Lf());let et,Pi,ti=qe(!1);D(t,ti,Z=>i(50,C=Z));let He,Qi=qe(!1);D(t,Qi,Z=>i(151,X=Z));let un=qe(),cn=qe(!1);D(t,cn,Z=>i(147,W=Z));let Yi=!1,qi=!1,rn=!1,Di=!(x&&!Fe.controls.showOnStartupAtAutoplay),Zt,Zi,hi,hn,fn,dn=!1,yn,sn=!1,{toggle:mn}=At,pn=!1,Xi=null,gi;Ot?.setContext(Pl());let wn=()=>{x&&!xt&&Fe.controls.showOnStartupAtAutoplay&&zt(Fe.controls.hideTimeout)};ke.setUiCallbacks({onStarted:wn});let Ji=()=>{window.clearTimeout(_i),Qi.set(!1)},In=()=>{window.clearTimeout(ei),un.set(null)},zt=Z=>{Ji(),Qi.set(!0),_i=window.setTimeout(()=>Qi.set(!1),Z);let Rt=Z-100;He=window.setTimeout(()=>{C&&ti.set(!1)},Rt>0?Rt:Z)},En=(Z,Rt)=>{In(),un.set(Rt),ei=window.setTimeout(()=>un.set(null),Z)},An=Ti.subscribe(Z=>{Qt.set(Z),Z&&(window.clearTimeout(ln),ln=window.setTimeout(()=>Qt.set(!1),Fe.controls.hide360IconTimeout))}),kn=async()=>{let Z=fo();if(Z){let Rt=Al(),Sn=le();Z=Rt===Sn||Rt===st}if(Z){zt(Fe.controls.hideTimeoutFullscreen);try{await Ot?.remove()}catch(Rt){Jt({message:String(Rt)})}}ci.set(Z),ke.getAdmanWrapper().setFullscreen(Z),g?ke.callbacks?.onFullscreenEnter?.():ke.callbacks?.onFullscreenExit?.()},Ln=Z=>{let Rt=Z;mi.set({width:Rt.target.width,height:Rt.target.height})};It(()=>(sr(kn),Fe.features.annotationsInside&&tn?.init(Vt),Bo(Ot)&&(Ot?.assignPlayerContainer(Vt),Ot?.registryExternalEventHandlers({resize:Ln})),Ze&&je.parentElement?.insertBefore(Ze,je.nextSibling),()=>{window.clearTimeout(_i),window.clearTimeout(He),window.clearTimeout(ei),window.clearTimeout(ln),An(),Ot?.dispose(),ar(kn)}));let le=()=>{let Z=Fe.features.fullscreenInternalTargetPlayerContainer||!wt?Vt:wt,Rt=Z.getRootNode(),Sn=Rt instanceof ShadowRoot?Rt.host:Rt,Rn=gt instanceof HTMLElement&&gt.contains(Sn);return Fe.allowChangingFullscreenTarget&&gt&&Rn?gt:Z},_t=async()=>{fo()?(await rr(document),Jt({message:"exit fullscreen"})):(Jt({message:"request fullscreen"}),await lr(le()))},Ni=()=>{nn(),ni.set(!1)},_n=Z=>{ni.set(!0),Yt.set({left:Z.clientX,top:Z.clientY})};function Mn(){cn.set(!0),xt||zt(Fe.controls.hideTimeoutCursor)}function Vn(){xt||(ti.set(!0),zt(Fe.controls.hideTimeoutCursor))}function te(){cn.set(!1),i(132,qi=!1),i(131,Yi=!1),pn=!1,ke.actions.internal.releaseCamera()}function mt(Z){if(w&&ri){let Rt=Z.currentTarget,Sn=dc(Rt),Rn=ap(Rt),Yo=Z.pageX-Rn,Co=Z.pageY-Sn,{left:so,bottom:Zn,right:Zo}=w,ao=Zo-so;return Yo>=so-ao&&Co<=Zn+ao}}function si(Z){if(Vt){let Rt=dc(Z.currentTarget),Sn=h.height,Rn=Z.pageY-Rt;if(mt(Z)){i(132,qi=!1);return}Rn<40?i(132,qi=!0):Rn>Sn-40?i(131,Yi=!0):(i(132,qi=!1),s||i(131,Yi=!1))}}function Qn(Z){si(Z),Zt||zt(Fe.controls.hideTimeoutCursor),p&&pn&&Xi&&ke.actions.internal.moveCameraFocusPX(Xi.clientX-Z.clientX,Xi.clientY-Z.clientY,Z.timeStamp-Xi.timeStamp),Xi=Z}let Fn=Z=>{Z.button===0&&(pn=!0,ke.actions.internal.holdCamera()),zt(Fe.controls.hideTimeoutCursor)},ee=Z=>{Z.button===0&&(Xi=Z,pn=!1,ke.actions.internal.releaseCamera()),zt(Fe.controls.hideTimeoutCursor)},Yn=()=>{sp&&(Jt({message:"double click on video"}),_t(),zt(Fe.controls.hideTimeoutCursor))},wl=()=>{if(n||s){Ni();return}if(!(f&&!li)){if(sn)return mn();if(gi?.focus(),!we){xi(),zt(Fe.controls.hideTimeoutCursor);return}ke.actions.internal.togglePlay(),zt(Fe.controls.hideTimeoutCursor)}},kl=Z=>{Ni(),$t.set(!0),zt(Fe.controls.hideTimeout),Z&&En(Fe.controls.hideHotKeyHelpers,Z)},Sl=()=>{Ni(),ke.callbacks?.onOpenHotKeyMap?ke.callbacks?.onOpenHotKeyMap(u):Gi.update(Z=>!Z)},Cl=()=>{if(n||s){Ni();return}},Ko=()=>{$t.set(!0)},vo=ke.ui.contextMenu.openedByBtnKeyboard$;D(t,vo,Z=>i(140,a=Z));let yo=ke.ui.contextMenu.btnRef$;D(t,yo,Z=>i(139,r=Z));let xn,oo=ke.ui.contextMenu.openedByHotKey$;D(t,oo,Z=>i(138,l=Z));let lo=ke.ui.contextMenu.lastActiveElem$;D(t,lo,Z=>i(137,o=Z));function Wo(Z){be[Z?"unshift":"push"](()=>{je=Z,i(0,je)})}let jo=()=>gi?.focus();function wo(Z){on=Z,i(41,on)}let Go=()=>gi?.focus();function ko(Z){xn=Z,i(32,xn)}function Qo(Z){be[Z?"unshift":"push"](()=>{gi=Z,i(48,gi)})}function So(Z){be[Z?"unshift":"push"](()=>{Pi=Z,i(30,Pi)})}function ro(Z){be[Z?"unshift":"push"](()=>{Vt=Z,i(40,Vt)})}return t.$$set=Z=>{"store"in Z&&i(125,ke=Z.store),"uiConfig"in Z&&i(1,Fe=Z.uiConfig),"title"in Z&&i(2,ft=Z.title),"thumbUrl"in Z&&i(3,Qe=Z.thumbUrl),"videoContainer"in Z&&i(0,je=Z.videoContainer),"interactiveContainer"in Z&&i(126,Ze=Z.interactiveContainer),"live"in Z&&i(4,xe=Z.live),"autoplay"in Z&&i(5,x=Z.autoplay),"canRewindLive"in Z&&i(6,De=Z.canRewindLive),"showAds"in Z&&i(7,ze=Z.showAds),"adsSlotId"in Z&&i(8,fe=Z.adsSlotId),"adsParams"in Z&&i(9,se=Z.adsParams),"adsPreviewParam"in Z&&i(10,nt=Z.adsPreviewParam),"duration"in Z&&i(11,de=Z.duration),"logoClickable"in Z&&i(12,lt=Z.logoClickable),"logoHidden"in Z&&i(13,rt=Z.logoHidden),"logoTargetUrl"in Z&&i(14,dt=Z.logoTargetUrl),"showNextPrevButtons"in Z&&i(15,yt=Z.showNextPrevButtons),"nextButtonActive"in Z&&i(16,Et=Z.nextButtonActive),"prevButtonActive"in Z&&i(17,Ye=Z.prevButtonActive),"endScreenVideoTitle"in Z&&i(18,Kt=Z.endScreenVideoTitle),"endScreenVideoThumb"in Z&&i(19,qt=Z.endScreenVideoThumb),"isOneVideoPlaylist"in Z&&i(20,kt=Z.isOneVideoPlaylist),"supportLink"in Z&&i(21,ui=Z.supportLink),"shadowRootContainer"in Z&&i(127,st=Z.shadowRootContainer),"outerContainerRef"in Z&&i(128,wt=Z.outerContainerRef),"playerStarted"in Z&&i(22,we=Z.playerStarted),"fullScreenTarget"in Z&&i(129,gt=Z.fullScreenTarget),"showMiniTimer"in Z&&i(130,St=Z.showMiniTimer),"playNextVideo"in Z&&i(23,Xt=Z.playNextVideo),"playPrevVideo"in Z&&i(24,Ct=Z.playPrevVideo),"repeatPlaylist"in Z&&i(25,Wt=Z.repeatPlaylist),"seekToInteractive"in Z&&i(26,jt=Z.seekToInteractive),"toggleGraph"in Z&&i(27,Dt=Z.toggleGraph),"playPrevChapter"in Z&&i(28,Fi=Z.playPrevChapter),"firstStart"in Z&&i(29,xi=Z.firstStart)},t.$$.update=()=>{if(t.$$.dirty[1]&192|t.$$.dirty[4]&1073741824|t.$$.dirty[5]&1&&i(42,et=(ge==="video"&&$||ge==="ads"&&Q==="inactive")&&!B),t.$$.dirty[0]&1073741824&&an.set(Pi),t.$$.dirty[4]&536871936&&(i(133,rn=Di&&z!==C6.PLAYING),Di||i(134,Di=!0)),t.$$.dirty[4]&272761728&&i(135,Zt=y&&!s&&!(Yi||qi)&&!(rn&&!j)),t.$$.dirty[1]&448|t.$$.dirty[4]&136448512&&fi.set((rn||s||v||ae||X)&&!Zt&&(ge==="video"||ge==="ads")&&!B),t.$$.dirty[0]&2|t.$$.dirty[1]&224|t.$$.dirty[4]&67108928&&i(43,Zi=Fe.features.thumbTimer&&St&&ge==="video"&&!P&&!B&&!xt&&(Fe.hideThumbTimerAfterTouch&&!G||!Fe.hideThumbTimerAfterTouch)),t.$$.dirty[1]&128|t.$$.dirty[4]&34078720&&i(44,hi=ge==="video"&&!ne&&g),t.$$.dirty[0]&128|t.$$.dirty[1]&64|t.$$.dirty[4]&17039360&&i(31,hn=(ze&&O||!ze)&&f&&!B),t.$$.dirty[1]&33|t.$$.dirty[4]&12582912&&i(45,fn=W&&!(P||hn)&&!y),t.$$.dirty[0]&2|t.$$.dirty[4]&6295552&&(!v&&dn&&!y&&zt(Fe.controls.hideTimeoutCursor),i(136,dn=v)),t.$$.dirty[0]&1|t.$$.dirty[1]&24&&i(46,yn=je&&E%180?h.height/h.width:1),t.$$.dirty[4]&1048576&&i(47,sn=b!==null),t.$$.dirty[1]&6|t.$$.dirty[4]&65536&&No(xn,n,a),t.$$.dirty[1]&4|t.$$.dirty[4]&32768){let Z=r;Z&&al(Z,n,vo)}if(t.$$.dirty[1]&6|t.$$.dirty[4]&16384&&No(xn,n,l),t.$$.dirty[1]&4|t.$$.dirty[4]&8192){let Z=o;Z&&Wf(Z,n,oo)}},[je,Fe,ft,Qe,xe,x,De,ze,fe,se,nt,de,lt,rt,dt,yt,Et,Ye,Kt,qt,kt,ui,we,Xt,Ct,Wt,jt,Dt,Fi,xi,Pi,hn,xn,n,h,E,P,B,ge,ae,Vt,on,et,Zi,hi,fn,yn,sn,gi,p,C,K,Y,ie,re,Ve,Xe,Se,Me,Ke,$e,ce,he,at,Ai,$i,zi,en,Li,Mi,ci,fi,yi,wi,ni,ki,Hi,Nt,Si,Vi,Ui,di,Mt,Ki,Wi,ji,Gt,Ci,mi,Ti,Qt,Ft,xt,Ri,oi,$t,pi,Gi,Bi,Yt,At,ti,Qi,un,cn,mn,_t,Ni,_n,Mn,Vn,te,Qn,Fn,ee,Yn,wl,kl,Sl,Cl,Ko,vo,yo,oo,lo,ke,Ze,st,wt,gt,St,Yi,qi,rn,Di,Zt,dn,o,l,r,a,s,f,g,b,v,y,W,O,ne,G,X,j,z,Q,$,Wo,jo,wo,Go,ko,Qo,So,ro]}var mc=class extends H{constructor(e){super(),U(this,e,E6,I6,F,{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},T6,[-1,-1,-1,-1,-1,-1,-1])}},up=mc;import{PlaybackState as B6}from"@vkontakte/videoplayer-core";import{clientChecker as ls,noop as gc}from"@vkontakte/videoplayer-shared";function A6(t){Te(t,"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 cp(t){let e,i,n,o,l,r,a,s,u,f,p,h,w,g,C,b=N("doubletap_seek_step",{seconds:t[1].toFixed(0)})+"",E;return{c(){e=T("div"),n=M(),o=T("div"),l=T("div"),r=T("div"),s=M(),u=T("div"),p=M(),h=T("div"),g=M(),C=T("p"),E=Re(b),c(e,"class",i="semicircle "+t[0]+" svelte-nhq2ld"),c(r,"class",a="triangle "+t[0]+" svelte-nhq2ld"),c(u,"class",f="triangle "+t[0]+" svelte-nhq2ld"),c(h,"class",w="triangle "+t[0]+" svelte-nhq2ld"),c(l,"class","triangles-wrapper svelte-nhq2ld"),c(C,"class","step-caption svelte-nhq2ld"),c(o,"class","info svelte-nhq2ld")},m(v,y){S(v,e,y),S(v,n,y),S(v,o,y),m(o,l),m(l,r),m(l,s),m(l,u),m(l,p),m(l,h),m(o,g),m(o,C),m(C,E)},p(v,y){y&1&&i!==(i="semicircle "+v[0]+" svelte-nhq2ld")&&c(e,"class",i),y&1&&a!==(a="triangle "+v[0]+" svelte-nhq2ld")&&c(r,"class",a),y&1&&f!==(f="triangle "+v[0]+" svelte-nhq2ld")&&c(u,"class",f),y&1&&w!==(w="triangle "+v[0]+" svelte-nhq2ld")&&c(h,"class",w),y&2&&b!==(b=N("doubletap_seek_step",{seconds:v[1].toFixed(0)})+"")&&Ge(E,b)},d(v){v&&(k(e),k(n),k(o))}}}function L6(t){let e,i,n,o,l=t[2]&&cp(t);return{c(){e=T("div"),l&&l.c(),c(e,"class",i="double-click-area "+t[0]+" svelte-nhq2ld")},m(r,a){S(r,e,a),l&&l.m(e,null),n||(o=_e(e,"click",ot(t[3]())),n=!0)},p(r,[a]){r[2]?l?l.p(r,a):(l=cp(r),l.c(),l.m(e,null)):l&&(l.d(1),l=null),a&1&&i!==(i="double-click-area "+r[0]+" svelte-nhq2ld")&&c(e,"class",i)},i:Ce,o:Ce,d(r){r&&k(e),l&&l.d(),n=!1,o()}}}function M6(t,e,i){let{side:n}=e,{seekStep:o}=e,{handleSingleFirstClick:l}=e,{handleSecondClick:r}=e,a=!1,s=0,u=0,f=()=>{let h=0;return()=>{h+=1,h===1?s=window.setTimeout(()=>{l(),h=0},300):(window.clearTimeout(s),h=0,r(),i(2,a=!0),u=window.setTimeout(()=>{i(2,a=!1)},500))}};return Un(()=>{window.clearTimeout(s),window.clearTimeout(u)}),t.$$set=p=>{"side"in p&&i(0,n=p.side),"seekStep"in p&&i(1,o=p.seekStep),"handleSingleFirstClick"in p&&i(4,l=p.handleSingleFirstClick),"handleSecondClick"in p&&i(5,r=p.handleSecondClick)},[n,o,a,f,l,r]}var pc=class extends H{constructor(e){super(),U(this,e,M6,L6,F,{side:0,seekStep:1,handleSingleFirstClick:4,handleSecondClick:5},A6)}},_c=pc;function V6(t,e,i){let{playNextVideo:n}=e;return It(()=>{n()}),t.$$set=o=>{"playNextVideo"in o&&i(0,n=o.playNextVideo)},[n]}var hc=class extends H{constructor(e){super(),U(this,e,V6,null,F,{playNextVideo:0})}},fp=hc;var{window:R6}=To;function q6(t){Te(t,"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 dp(t){let e,i,n,o;e=new _c({props:{side:"left",seekStep:t[1].controls.seekStepMobile/1e3,handleSingleFirstClick:t[99],handleSecondClick:t[130]}});let l=!t[49]&&mp(t);return{c(){V(e.$$.fragment),i=M(),l&&l.c(),n=ct()},m(r,a){A(e,r,a),S(r,i,a),l&&l.m(r,a),S(r,n,a),o=!0},p(r,a){let s={};a[0]&2&&(s.seekStep=r[1].controls.seekStepMobile/1e3),e.$set(s),r[49]?l&&(me(),_(l,1,1,()=>{l=null}),pe()):l?(l.p(r,a),a[1]&262144&&d(l,1)):(l=mp(r),l.c(),d(l,1),l.m(n.parentNode,n))},i(r){o||(d(e.$$.fragment,r),d(l),o=!0)},o(r){_(e.$$.fragment,r),_(l),o=!1},d(r){r&&(k(i),k(n)),L(e,r),l&&l.d(r)}}}function mp(t){let e,i;return e=new _c({props:{side:"right",seekStep:t[1].controls.seekStepMobile/1e3,handleSingleFirstClick:t[99],handleSecondClick:t[131]}}),{c(){V(e.$$.fragment)},m(n,o){A(e,n,o),i=!0},p(n,o){let l={};o[0]&2&&(l.seekStep=n[1].controls.seekStepMobile/1e3),e.$set(l)},i(n){i||(d(e.$$.fragment,n),i=!0)},o(n){_(e.$$.fragment,n),i=!1},d(n){L(e,n)}}}function pp(t){let e,i;return e=new os({props:{thumbUrl:t[2],startTime:t[3]?.startTime}}),{c(){V(e.$$.fragment)},m(n,o){A(e,n,o),i=!0},p(n,o){let l={};o[0]&4&&(l.thumbUrl=n[2]),o[0]&8&&(l.startTime=n[3]?.startTime),e.$set(l)},i(n){i||(d(e.$$.fragment,n),i=!0)},o(n){_(e.$$.fragment,n),i=!1},d(n){L(e,n)}}}function _p(t){let e,i;return e=new bl({props:{kind:"recover",thumbUrl:t[2]}}),{c(){V(e.$$.fragment)},m(n,o){A(e,n,o),i=!0},p(n,o){let l={};o[0]&4&&(l.thumbUrl=n[2]),e.$set(l)},i(n){i||(d(e.$$.fragment,n),i=!0)},o(n){_(e.$$.fragment,n),i=!1},d(n){L(e,n)}}}function hp(t){let e,i;return e=new bl({props:{kind:"record",thumbUrl:t[2]}}),{c(){V(e.$$.fragment)},m(n,o){A(e,n,o),i=!0},p(n,o){let l={};o[0]&4&&(l.thumbUrl=n[2]),e.$set(l)},i(n){i||(d(e.$$.fragment,n),i=!0)},o(n){_(e.$$.fragment,n),i=!1},d(n){L(e,n)}}}function gp(t){let e,i,n;return i=new ur({props:{adsSlotId:t[7],adsParams:t[8],adsPreviewParam:t[9],duration:t[10]}}),{c(){e=T("div"),V(i.$$.fragment),c(e,"class","ads-container svelte-6x5lql"),q(e,"hidden",t[34]!=="ads")},m(o,l){S(o,e,l),A(i,e,null),n=!0},p(o,l){let r={};l[0]&128&&(r.adsSlotId=o[7]),l[0]&256&&(r.adsParams=o[8]),l[0]&512&&(r.adsPreviewParam=o[9]),l[0]&1024&&(r.duration=o[10]),i.$set(r),(!n||l[1]&8)&&q(e,"hidden",o[34]!=="ads")},i(o){n||(d(i.$$.fragment,o),n=!0)},o(o){_(i.$$.fragment,o),n=!1},d(o){o&&k(e),L(i)}}}function bp(t){let e,i;return e=new fp({props:{playNextVideo:t[22]}}),{c(){V(e.$$.fragment)},m(n,o){A(e,n,o),i=!0},p(n,o){let l={};o[0]&4194304&&(l.playNextVideo=n[22]),e.$set(l)},i(n){i||(d(e.$$.fragment,n),i=!0)},o(n){_(e.$$.fragment,n),i=!1},d(n){L(e,n)}}}function vp(t){let e,i;return e=new $r({}),{c(){V(e.$$.fragment)},m(n,o){A(e,n,o),i=!0},i(n){i||(d(e.$$.fragment,n),i=!0)},o(n){_(e.$$.fragment,n),i=!1},d(n){L(e,n)}}}function yp(t){let e,i,n;return i=new $l({props:{"aria-label":N("video360")}}),{c(){e=T("div"),V(i.$$.fragment),c(e,"class","spherical-video-icon svelte-6x5lql")},m(o,l){S(o,e,l),A(i,e,null),n=!0},i(o){n||(d(i.$$.fragment,o),n=!0)},o(o){_(i.$$.fragment,o),n=!1},d(o){o&&k(e),L(i)}}}function wp(t){let e,i;return e=new ts({props:{thumbUrl:t[2],chromecastDeviceName:t[52]}}),{c(){V(e.$$.fragment)},m(n,o){A(e,n,o),i=!0},p(n,o){let l={};o[0]&4&&(l.thumbUrl=n[2]),o[1]&2097152&&(l.chromecastDeviceName=n[52]),e.$set(l)},i(n){i||(d(e.$$.fragment,n),i=!0)},o(n){_(e.$$.fragment,n),i=!1},d(n){L(e,n)}}}function kp(t){let e,i;return e=new es({props:{shifted:t[30],captions:t[54],position:t[44],playerSize:t[31],isMobile:!0}}),{c(){V(e.$$.fragment)},m(n,o){A(e,n,o),i=!0},p(n,o){let l={};o[0]&1073741824&&(l.shifted=n[30]),o[1]&8388608&&(l.captions=n[54]),o[1]&8192&&(l.position=n[44]),o[1]&1&&(l.playerSize=n[31]),e.$set(l)},i(n){i||(d(e.$$.fragment,n),i=!0)},o(n){_(e.$$.fragment,n),i=!1},d(n){L(e,n)}}}function Sp(t){let e,i,n,o,l;return i=new is({}),{c(){e=T("div"),V(i.$$.fragment)},m(r,a){S(r,e,a),A(i,e,null),n=!0,o||(l=_e(e,"click",ot(t[100])),o=!0)},p:Ce,i(r){n||(d(i.$$.fragment,r),n=!0)},o(r){_(i.$$.fragment,r),n=!1},d(r){r&&k(e),L(i),o=!1,l()}}}function Cp(t){let e,i,n;function o(r){t[132](r)}let l={bottomHidden:t[34]==="thumb"||t[34]==="LiveWaitingStart"||t[34]==="LiveWaitingRecover"||t[34]==="LiveWaitingRecord"||t[34]==="ads",showControls:t[30],bottomNoSmooth:t[45],isAds:t[34]==="ads",canRewindLive:t[5]&&t[55]!==0,logoClickable:t[11],logoHidden:t[12],logoTargetUrl:t[13],showNextPrevButtons:t[14],nextButtonActive:t[15],prevButtonActive:t[16],isOneVideoPlaylist:t[19],supportLink:t[20],customFullscreenSupported:t[39],playNextVideo:t[22],playPrevVideo:t[23],repeatPlaylist:t[24],toggleFullscreen:t[97],seekToInteractive:t[25],toggleGraph:t[26],playPrevChapter:t[27],onDisabledPlayPrevChapterClick:t[103],onDisabledSeekToInteractiveClick:t[104]};return t[37]!==void 0&&(l.controlsElementRef=t[37]),e=new xr({props:l}),be.push(()=>Oe(e,"controlsElementRef",o)),{c(){V(e.$$.fragment)},m(r,a){A(e,r,a),n=!0},p(r,a){let s={};a[1]&8&&(s.bottomHidden=r[34]==="thumb"||r[34]==="LiveWaitingStart"||r[34]==="LiveWaitingRecover"||r[34]==="LiveWaitingRecord"||r[34]==="ads"),a[0]&1073741824&&(s.showControls=r[30]),a[1]&16384&&(s.bottomNoSmooth=r[45]),a[1]&8&&(s.isAds=r[34]==="ads"),a[0]&32|a[1]&16777216&&(s.canRewindLive=r[5]&&r[55]!==0),a[0]&2048&&(s.logoClickable=r[11]),a[0]&4096&&(s.logoHidden=r[12]),a[0]&8192&&(s.logoTargetUrl=r[13]),a[0]&16384&&(s.showNextPrevButtons=r[14]),a[0]&32768&&(s.nextButtonActive=r[15]),a[0]&65536&&(s.prevButtonActive=r[16]),a[0]&524288&&(s.isOneVideoPlaylist=r[19]),a[0]&1048576&&(s.supportLink=r[20]),a[1]&256&&(s.customFullscreenSupported=r[39]),a[0]&4194304&&(s.playNextVideo=r[22]),a[0]&8388608&&(s.playPrevVideo=r[23]),a[0]&16777216&&(s.repeatPlaylist=r[24]),a[0]&33554432&&(s.seekToInteractive=r[25]),a[0]&67108864&&(s.toggleGraph=r[26]),a[0]&134217728&&(s.playPrevChapter=r[27]),!i&&a[1]&64&&(i=!0,s.controlsElementRef=r[37],Ne(()=>i=!1)),e.$set(s)},i(r){n||(d(e.$$.fragment,r),n=!0)},o(r){_(e.$$.fragment,r),n=!1},d(r){L(e,r)}}}function Tp(t){let e,i;return e=new ml({}),{c(){V(e.$$.fragment)},m(n,o){A(e,n,o),i=!0},i(n){i||(d(e.$$.fragment,n),i=!0)},o(n){_(e.$$.fragment,n),i=!1},d(n){L(e,n)}}}function Pp(t){let e,i;return e=new hr({}),{c(){V(e.$$.fragment)},m(n,o){A(e,n,o),i=!0},i(n){i||(d(e.$$.fragment,n),i=!0)},o(n){_(e.$$.fragment,n),i=!1},d(n){L(e,n)}}}function Ip(t){let e,i,n=t[5]&&t[78]&&!t[48].has("TIMELINE"),o,l,r,a,s,u,f,p,h,w,g,C,b,E,v,y,P;e=new ns({props:{hidden:t[34]!=="thumb"||t[33]||t[89]&&t[4],thumbUrl:t[2],startVideo:t[28]}});let W=n&&dp(t),B=t[34]==="LiveWaitingStart"&&pp(t),O=t[34]==="LiveWaitingRecover"&&_p(t),ne=t[34]==="LiveWaitingRecord"&&hp(t),ge=t[6]&&t[21]&&gp(t),G=t[41]&&t[17]&&t[18]&&bp(t),X=t[50]&&vp(t),ae=t[51]&&yp(t),j=t[35]&&wp(t),z=t[53].value!=="off"&&kp(t),Q=t[33]&&Sp(t),$=t[21]&&Cp(t);b=new fr({props:{isLive:t[56],isHidden:!t[40],isPlaying:t[46],position:t[44],duration:t[43]}});let K=t[38]&&Tp(t),Y=t[57]&&Pp(t);return{c(){V(e.$$.fragment),i=M(),W&&W.c(),o=M(),B&&B.c(),l=M(),O&&O.c(),r=M(),ne&&ne.c(),a=M(),ge&&ge.c(),s=M(),G&&G.c(),u=M(),X&&X.c(),f=M(),ae&&ae.c(),p=M(),j&&j.c(),h=M(),z&&z.c(),w=M(),Q&&Q.c(),g=M(),$&&$.c(),C=M(),V(b.$$.fragment),E=M(),K&&K.c(),v=M(),Y&&Y.c(),y=ct()},m(ie,re){A(e,ie,re),S(ie,i,re),W&&W.m(ie,re),S(ie,o,re),B&&B.m(ie,re),S(ie,l,re),O&&O.m(ie,re),S(ie,r,re),ne&&ne.m(ie,re),S(ie,a,re),ge&&ge.m(ie,re),S(ie,s,re),G&&G.m(ie,re),S(ie,u,re),X&&X.m(ie,re),S(ie,f,re),ae&&ae.m(ie,re),S(ie,p,re),j&&j.m(ie,re),S(ie,h,re),z&&z.m(ie,re),S(ie,w,re),Q&&Q.m(ie,re),S(ie,g,re),$&&$.m(ie,re),S(ie,C,re),A(b,ie,re),S(ie,E,re),K&&K.m(ie,re),S(ie,v,re),Y&&Y.m(ie,re),S(ie,y,re),P=!0},p(ie,re){let Ve={};re[0]&16|re[1]&12&&(Ve.hidden=ie[34]!=="thumb"||ie[33]||ie[89]&&ie[4]),re[0]&4&&(Ve.thumbUrl=ie[2]),re[0]&268435456&&(Ve.startVideo=ie[28]),e.$set(Ve),re[0]&32|re[1]&131072&&(n=ie[5]&&ie[78]&&!ie[48].has("TIMELINE")),n?W?(W.p(ie,re),re[0]&32|re[1]&131072&&d(W,1)):(W=dp(ie),W.c(),d(W,1),W.m(o.parentNode,o)):W&&(me(),_(W,1,1,()=>{W=null}),pe()),ie[34]==="LiveWaitingStart"?B?(B.p(ie,re),re[1]&8&&d(B,1)):(B=pp(ie),B.c(),d(B,1),B.m(l.parentNode,l)):B&&(me(),_(B,1,1,()=>{B=null}),pe()),ie[34]==="LiveWaitingRecover"?O?(O.p(ie,re),re[1]&8&&d(O,1)):(O=_p(ie),O.c(),d(O,1),O.m(r.parentNode,r)):O&&(me(),_(O,1,1,()=>{O=null}),pe()),ie[34]==="LiveWaitingRecord"?ne?(ne.p(ie,re),re[1]&8&&d(ne,1)):(ne=hp(ie),ne.c(),d(ne,1),ne.m(a.parentNode,a)):ne&&(me(),_(ne,1,1,()=>{ne=null}),pe()),ie[6]&&ie[21]?ge?(ge.p(ie,re),re[0]&2097216&&d(ge,1)):(ge=gp(ie),ge.c(),d(ge,1),ge.m(s.parentNode,s)):ge&&(me(),_(ge,1,1,()=>{ge=null}),pe()),ie[41]&&ie[17]&&ie[18]?G?(G.p(ie,re),re[0]&393216|re[1]&1024&&d(G,1)):(G=bp(ie),G.c(),d(G,1),G.m(u.parentNode,u)):G&&(me(),_(G,1,1,()=>{G=null}),pe()),ie[50]?X?re[1]&524288&&d(X,1):(X=vp(ie),X.c(),d(X,1),X.m(f.parentNode,f)):X&&(me(),_(X,1,1,()=>{X=null}),pe()),ie[51]?ae?re[1]&1048576&&d(ae,1):(ae=yp(ie),ae.c(),d(ae,1),ae.m(p.parentNode,p)):ae&&(me(),_(ae,1,1,()=>{ae=null}),pe()),ie[35]?j?(j.p(ie,re),re[1]&16&&d(j,1)):(j=wp(ie),j.c(),d(j,1),j.m(h.parentNode,h)):j&&(me(),_(j,1,1,()=>{j=null}),pe()),ie[53].value!=="off"?z?(z.p(ie,re),re[1]&4194304&&d(z,1)):(z=kp(ie),z.c(),d(z,1),z.m(w.parentNode,w)):z&&(me(),_(z,1,1,()=>{z=null}),pe()),ie[33]?Q?(Q.p(ie,re),re[1]&4&&d(Q,1)):(Q=Sp(ie),Q.c(),d(Q,1),Q.m(g.parentNode,g)):Q&&(me(),_(Q,1,1,()=>{Q=null}),pe()),ie[21]?$?($.p(ie,re),re[0]&2097152&&d($,1)):($=Cp(ie),$.c(),d($,1),$.m(C.parentNode,C)):$&&(me(),_($,1,1,()=>{$=null}),pe());let Xe={};re[1]&33554432&&(Xe.isLive=ie[56]),re[1]&512&&(Xe.isHidden=!ie[40]),re[1]&32768&&(Xe.isPlaying=ie[46]),re[1]&8192&&(Xe.position=ie[44]),re[1]&4096&&(Xe.duration=ie[43]),b.$set(Xe),ie[38]?K?re[1]&128&&d(K,1):(K=Tp(ie),K.c(),d(K,1),K.m(v.parentNode,v)):K&&(me(),_(K,1,1,()=>{K=null}),pe()),ie[57]?Y?re[1]&67108864&&d(Y,1):(Y=Pp(ie),Y.c(),d(Y,1),Y.m(y.parentNode,y)):Y&&(me(),_(Y,1,1,()=>{Y=null}),pe())},i(ie){P||(d(e.$$.fragment,ie),d(W),d(B),d(O),d(ne),d(ge),d(G),d(X),d(ae),d(j),d(z),d(Q),d($),d(b.$$.fragment,ie),d(K),d(Y),P=!0)},o(ie){_(e.$$.fragment,ie),_(W),_(B),_(O),_(ne),_(ge),_(G),_(X),_(ae),_(j),_(z),_(Q),_($),_(b.$$.fragment,ie),_(K),_(Y),P=!1},d(ie){ie&&(k(i),k(o),k(l),k(r),k(a),k(s),k(u),k(f),k(p),k(h),k(w),k(g),k(C),k(E),k(v),k(y)),L(e,ie),W&&W.d(ie),B&&B.d(ie),O&&O.d(ie),ne&&ne.d(ie),ge&&ge.d(ie),G&&G.d(ie),X&&X.d(ie),ae&&ae.d(ie),j&&j.d(ie),z&&z.d(ie),Q&&Q.d(ie),$&&$.d(ie),L(b,ie),K&&K.d(ie),Y&&Y.d(ie)}}}function D6(t){let e,i,n,o,l,r=t[47],a,s,u,f,p,h,w=Ip(t);return{c(){e=T("div"),i=T("div"),n=T("div"),l=M(),w.c(),a=M(),s=T("div"),c(n,"class","video-container svelte-6x5lql"),c(n,"style",o=`transform: rotate(${t[32]}deg) scale(${t[42]})`),c(n,"data-testid","video-container"),c(n,"data-is-playing",t[46]),q(n,"fast-rotate",!t[1].isSmoothVideoRotate),c(i,"class","video-wrapper svelte-6x5lql"),q(i,"hidden",t[34]!=="video"),c(s,"class","overlay-container"),c(e,"class","player-wrapper svelte-6x5lql"),c(e,"role","region"),c(e,"aria-label",u=N("aria_label_video_player")),c(e,"tabindex","-1")},m(g,C){S(g,e,C),m(e,i),m(i,n),t[129](n),m(e,l),w.m(e,null),m(e,a),m(e,s),t[133](s),t[134](e),f=!0,p||(h=[_e(R6,"blur",t[98]),_e(i,"click",Ut(t[99])),_e(e,"click",t[101],!0),_e(e,"focusin",t[102],!0)],p=!0)},p(g,C){(!f||C[1]&2050&&o!==(o=`transform: rotate(${g[32]}deg) scale(${g[42]})`))&&c(n,"style",o),(!f||C[1]&32768)&&c(n,"data-is-playing",g[46]),(!f||C[0]&2)&&q(n,"fast-rotate",!g[1].isSmoothVideoRotate),(!f||C[1]&8)&&q(i,"hidden",g[34]!=="video"),C[1]&65536&&F(r,r=g[47])?(me(),_(w,1,1,Ce),pe(),w=Ip(g),w.c(),d(w,1),w.m(e,a)):w.p(g,C)},i(g){f||(d(w),f=!0)},o(g){_(w),f=!1},d(g){g&&k(e),t[129](null),w.d(g),t[133](null),t[134](null),p=!1,tt(h)}}}function N6(t,e,i){let n,o,l,r,a,s,u,f,p,h,w,g,C,b,E,v,y,P,W,B,O,ne,ge,G,X,ae,j,z,Q,$,K,Y,ie,re,Ve,Xe,{store:Se}=e,{uiConfig:Me}=e,{thumbUrl:Ke}=e,{videoContainer:$e}=e,{interactiveContainer:ce}=e,{live:he}=e,{autoplay:at}=e,{canRewindLive:ke}=e,{showAds:Fe}=e,{adsSlotId:ft=void 0}=e,{adsParams:Qe=void 0}=e,{adsPreviewParam:je=void 0}=e,{duration:Ze=void 0}=e,{logoClickable:xe}=e,{logoHidden:x}=e,{logoTargetUrl:De=""}=e,{showNextPrevButtons:ze=!1}=e,{nextButtonActive:fe=!1}=e,{prevButtonActive:se=!1}=e,{endScreenVideoTitle:nt=void 0}=e,{endScreenVideoThumb:de=void 0}=e,{isOneVideoPlaylist:lt=!1}=e,{supportLink:rt}=e,{shadowRootContainer:dt=void 0}=e,{outerContainerRef:yt=void 0}=e,{showMiniTimer:Et=!1}=e,{fullScreenTarget:Ye=void 0}=e,{playerStarted:Kt=!1}=e,{playNextVideo:qt=gc}=e,{playPrevVideo:kt=gc}=e,{repeatPlaylist:ui=gc}=e,{seekToInteractive:st}=e,{toggleGraph:wt}=e,{playPrevChapter:we}=e,{firstStart:gt}=e,{seekTime:St}=e,Xt=Se.getLogger().createComponentLog("Root component"),Ct=Se.interfaceLanguage$;D(t,Ct,le=>i(47,ae=le));let Wt=Se.state.playbackState$;D(t,Wt,le=>i(126,ne=le));let jt=Se.ads.playbackState;D(t,jt,le=>i(127,ge=le));let Dt=Se.state.positionWithScrubbing$;D(t,Dt,le=>i(44,a=le));let Fi=Se.state.duration$;D(t,Fi,le=>i(43,r=le));let xi=Se.playerPhase;D(t,xi,le=>i(34,P=le));let Jt=Se.ui.isFullscreen;D(t,Jt,le=>i(140,s=le));let Ai=Se.ui.controlsVisible;D(t,Ai,le=>i(30,o=le));let $i=Se.ui.interactiveHideMobileControls;D(t,$i,le=>i(118,h=le));let zi=Se.ui.settingsMenuVisible;D(t,zi,le=>i(117,n=le));let en=Se.ui.scrubbingInProgress;D(t,en,le=>i(119,g=le));let Li=Se.ui.debugPanelVisible;D(t,Li,le=>i(57,Xe=le));let Mi=Se.state.isLoaderVisible;D(t,Mi,le=>i(128,G=le));let ci=Se.state.isEnded$;D(t,ci,le=>i(121,E=le));let fi=Se.state.chromecastConnected$;D(t,fi,le=>i(35,W=le));let yi=Se.state.chromecastDeviceName$;D(t,yi,le=>i(52,K=le));let wi=Se.ads.postrollPassed;D(t,wi,le=>i(122,v=le));let ni=Se.ui.mobileUnmuteButtonExpanded,ki=Se.ui.mobileUnmuteButtonVisible,Hi=Se.state.isLive$;D(t,Hi,le=>i(56,Ve=le));let Nt=Se.state.isPlaying$;D(t,Nt,le=>i(46,X=le));let Si=Se.state.isActiveLive$;D(t,Si,le=>i(49,z=le));let Vi=Se.state.isRewindableLive$,Ui=Se.state.crashed$;D(t,Ui,le=>i(33,b=le));let di=Se.webApi.annotationsApi,Mt=Se.webApi.pictureInPictureApi,Ki=Se.state.videoSize$;D(t,Ki,le=>i(141,f=le));let tn=Se.state.currentSubtitle$;D(t,tn,le=>i(53,Y=le));let Ot=Se.state.currentSubtitleCaptions$;D(t,Ot,le=>i(54,ie=le));let Wi=Se.state.duration$;D(t,Wi,le=>i(55,re=le));let ji=Se.state.graphIsOpened$;D(t,ji,le=>i(125,O=le));let Gt=Se.ui.playerSize;D(t,Gt,le=>i(31,u=le));let Ci=Se.ui.is3DVideo;D(t,Ci,le=>i(50,Q=le));let mi=Se.ui.icon3DVideoVisible;D(t,mi,le=>i(51,$=le));let Ti=Se.ui.rotateAlpha;D(t,Ti,le=>i(32,w=le));let Qt=Se.state.isInteractive,Ft=Se.state.isInteractiveTime$;D(t,Ft,le=>i(120,C=le));let xt=Se.state.isInteractiveExpectation$;D(t,xt,le=>i(124,B=le));let Ri=Se.state.hasInteractiveBranches,oi=Se.ui.controls.disabledControls$;D(t,oi,le=>i(48,j=le));let li=Se.ui.touched;D(t,li,le=>i(123,y=le));let $t=Se.ui.overlayContainer$,pi=Se.state.loadedMetadata$;D(t,pi,le=>i(139,l=le));let Gi=Se.actions.internal.closeSettingsMenu,an=Se.callbacks?.onDisabledPlayPrevChapterClick,Bi=Se.callbacks?.onDisabledSeekToInteractiveClick,ri,Yt,nn,At,Vt,on,_i,ei=qe(!1);D(t,ei,le=>i(45,p=le));let ln,et=!1,Pi,ti=!1,He,Qi=!0,un,cn,Yi=!1,qi;Mt?.setContext(Pl());let rn=le=>{clearTimeout(At),le&&(ki.set(!0),ni.set(!0),At=window.setTimeout(()=>{ni.set(!1)},Me.controls.collapseMobileUnmute),Qt||Zt(Me.controls.hideTimeoutMobile))};Se.setUiCallbacks({onStarted:rn});let Di=()=>{window.clearTimeout(nn),i(112,et=!1),h&&$i.set(!1)},Zt=le=>{Di(),i(112,et=!0),nn=window.setTimeout(()=>i(112,et=!1),le);let _t=le-100;ln=window.setTimeout(()=>{p&&ei.set(!1)},_t>0?_t:le)},Zi=Ci.subscribe(le=>{mi.set(le),le&&(window.clearTimeout(Vt),Vt=window.setTimeout(()=>mi.set(!1),Me.controls.hide360IconTimeout))}),hi=async()=>{let le=fo();if(le){let _t=Al(),Ni=dn(),_n=ls.isSamsungBrowser&&_t===dt;le=_t===Ni||_n}if(le){Zt(Me.controls.hideTimeoutFullscreen);try{await Mt?.remove()}catch(_t){Xt({message:String(_t)})}try{let _t=f?.width&&f?.height?f:u;await Ef(_t)}catch(_t){Xt({message:String(_t)})}}Jt.set(le),Se.getAdmanWrapper().setFullscreen(le),s?Se.callbacks?.onFullscreenEnter?.():Se.callbacks?.onFullscreenExit?.()},hn=le=>{let _t=le;Gt.set({width:_t.target.width,height:_t.target.height})};It(()=>(sr(hi),Me.features.annotationsInside&&di?.init(ri),Bo(Mt)&&(Mt?.assignPlayerContainer(ri),Mt?.registryExternalEventHandlers({resize:hn})),i(39,Qi=!ls.isIphoneOrOldIpad),ce&&$e.parentElement?.insertBefore(ce,$e.nextSibling),()=>{window.clearTimeout(nn),window.clearTimeout(ln),window.clearTimeout(At),window.clearTimeout(Vt),Zi(),Mt?.dispose(),ar(hi)}));let fn=le=>{let _t=a+(le==="forward"?1:-1)*Me.controls.seekStepMobile/1e3;_t<0?_t=0:_t>r&&(_t=r-1),i(114,ti=!0),St(_t)},dn=()=>{let le=ls.isIOS||Me.features.fullscreenInternalTargetPlayerContainer||!yt?ri:yt,_t=le.getRootNode(),Ni=_t instanceof ShadowRoot?_t.host:_t,_n=Ye instanceof HTMLElement&&Ye.contains(Ni);return Me.allowChangingFullscreenTarget&&Ye&&_n?Ye:le},yn=async()=>{if(fo())await rr(document),Xt({message:"exit fullscreen"});else{if(Xt({message:"request fullscreen"}),ls.isIOS&&!l)return;await lr(dn())}},sn=()=>{Gi()},mn=()=>{if(n){sn();return}if(!Kt){gt(),Zt(Me.controls.hideTimeoutCursor);return}i(114,ti=!1),o?Di():Zt(Me.controls.hideTimeoutMobile)},pn=()=>{if(n){sn();return}},Xi=()=>{li.set(!0)},gi=()=>{Qt||(ei.set(!0),Zt(Me.controls.hideTimeoutCursor))},wn=le=>{an&&(an(le),Zt(Me.controls.hideTimeoutMobile))},Ji=le=>{Bi&&(Bi(le),Zt(Me.controls.hideTimeoutMobile))};function In(le){be[le?"unshift":"push"](()=>{$e=le,i(0,$e)})}let zt=()=>fn("backward"),En=()=>fn("forward");function An(le){Yt=le,i(37,Yt)}function kn(le){be[le?"unshift":"push"](()=>{_i=le,i(29,_i)})}function Ln(le){be[le?"unshift":"push"](()=>{ri=le,i(36,ri)})}return t.$$set=le=>{"store"in le&&i(105,Se=le.store),"uiConfig"in le&&i(1,Me=le.uiConfig),"thumbUrl"in le&&i(2,Ke=le.thumbUrl),"videoContainer"in le&&i(0,$e=le.videoContainer),"interactiveContainer"in le&&i(106,ce=le.interactiveContainer),"live"in le&&i(3,he=le.live),"autoplay"in le&&i(4,at=le.autoplay),"canRewindLive"in le&&i(5,ke=le.canRewindLive),"showAds"in le&&i(6,Fe=le.showAds),"adsSlotId"in le&&i(7,ft=le.adsSlotId),"adsParams"in le&&i(8,Qe=le.adsParams),"adsPreviewParam"in le&&i(9,je=le.adsPreviewParam),"duration"in le&&i(10,Ze=le.duration),"logoClickable"in le&&i(11,xe=le.logoClickable),"logoHidden"in le&&i(12,x=le.logoHidden),"logoTargetUrl"in le&&i(13,De=le.logoTargetUrl),"showNextPrevButtons"in le&&i(14,ze=le.showNextPrevButtons),"nextButtonActive"in le&&i(15,fe=le.nextButtonActive),"prevButtonActive"in le&&i(16,se=le.prevButtonActive),"endScreenVideoTitle"in le&&i(17,nt=le.endScreenVideoTitle),"endScreenVideoThumb"in le&&i(18,de=le.endScreenVideoThumb),"isOneVideoPlaylist"in le&&i(19,lt=le.isOneVideoPlaylist),"supportLink"in le&&i(20,rt=le.supportLink),"shadowRootContainer"in le&&i(107,dt=le.shadowRootContainer),"outerContainerRef"in le&&i(108,yt=le.outerContainerRef),"showMiniTimer"in le&&i(109,Et=le.showMiniTimer),"fullScreenTarget"in le&&i(110,Ye=le.fullScreenTarget),"playerStarted"in le&&i(21,Kt=le.playerStarted),"playNextVideo"in le&&i(22,qt=le.playNextVideo),"playPrevVideo"in le&&i(23,kt=le.playPrevVideo),"repeatPlaylist"in le&&i(24,ui=le.repeatPlaylist),"seekToInteractive"in le&&i(25,st=le.seekToInteractive),"toggleGraph"in le&&i(26,wt=le.toggleGraph),"playPrevChapter"in le&&i(27,we=le.playPrevChapter),"firstStart"in le&&i(28,gt=le.firstStart),"seekTime"in le&&i(111,St=le.seekTime)},t.$$.update=()=>{t.$$.dirty[1]&12|t.$$.dirty[4]&24&&i(38,on=(P==="video"&&G||P==="ads"&&ge==="inactive")&&!b),t.$$.dirty[0]&536870912&&$t.set(_i),t.$$.dirty[4]&4&&i(113,Pi=ne!==B6.PLAYING),t.$$.dirty[3]&303562752|t.$$.dirty[4]&3&&i(115,He=O||h||!et&&(E&&!!Ri||Pi&&B)),t.$$.dirty[1]&28|t.$$.dirty[3]&91750400&&Ai.set((Pi||n||g||W||et&&!ti)&&!He&&P==="video"&&!b),t.$$.dirty[0]&1073741826|t.$$.dirty[1]&12|t.$$.dirty[3]&1073807360&&i(40,un=Me.features.thumbTimer&&Et&&P==="video"&&!o&&!b&&!Qt&&(Me.hideThumbTimerAfterTouch&&!y||!Me.hideThumbTimerAfterTouch)),t.$$.dirty[0]&64|t.$$.dirty[1]&4|t.$$.dirty[3]&805306368&&i(41,cn=(Fe&&v||!Fe)&&E&&!b),t.$$.dirty[0]&2|t.$$.dirty[3]&209715200&&(!g&&Yi&&!C&&Zt(Me.controls.hideTimeoutMobile),i(116,Yi=g)),t.$$.dirty[0]&1|t.$$.dirty[1]&3&&i(42,qi=$e&&w%180?u.height/u.width:1)},[$e,Me,Ke,he,at,ke,Fe,ft,Qe,je,Ze,xe,x,De,ze,fe,se,nt,de,lt,rt,Kt,qt,kt,ui,st,wt,we,gt,_i,o,u,w,b,P,W,ri,Yt,on,Qi,un,cn,qi,r,a,p,X,ae,j,z,Q,$,K,Y,ie,re,Ve,Xe,Ct,Wt,jt,Dt,Fi,xi,Jt,Ai,$i,zi,en,Li,Mi,ci,fi,yi,wi,Hi,Nt,Si,Vi,Ui,Ki,tn,Ot,Wi,ji,Gt,Ci,mi,Ti,Qt,Ft,xt,oi,li,pi,ei,fn,yn,sn,mn,pn,Xi,gi,wn,Ji,Se,ce,dt,yt,Et,Ye,St,et,Pi,ti,He,Yi,n,h,g,C,E,v,y,B,O,ne,ge,G,In,zt,En,An,kn,Ln]}var bc=class extends H{constructor(e){super(),U(this,e,N6,D6,F,{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},q6,[-1,-1,-1,-1,-1,-1])}},Ep=bc;function H6(t){Te(t,"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 @@ function Ce(){}function ue(t,e){for(let i in e)t[i]=e[i];return t}function ps(t)
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;--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 H6(t){let e,i,n;function o(r){t[61](r)}let l={store:t[0],uiConfig:t[35],title:t[1],thumbUrl:t[2],interactiveContainer:t[3],live:t[4],autoplay:t[5],canRewindLive:t[6],showAds:t[7],adsSlotId:t[8],adsParams:t[9],adsPreviewParam:t[10],duration:t[11],logoClickable:t[12],logoHidden:t[13],logoTargetUrl:t[36],showNextPrevButtons:t[15],nextButtonActive:t[16],prevButtonActive:t[17],endScreenVideoTitle:t[18],endScreenVideoThumb:t[19],isOneVideoPlaylist:t[20],supportLink:t[21],shadowRootContainer:t[22],outerContainerRef:t[23],fullScreenTarget:t[24],showMiniTimer:t[25],playerStarted:t[34],playNextVideo:t[26],playPrevVideo:t[27],repeatPlaylist:t[28],seekToInteractive:t[29],toggleGraph:t[30],playPrevChapter:t[31],firstStart:t[38]};return t[33]!==void 0&&(l.videoContainer=t[33]),e=new up({props:l}),be.push(()=>Oe(e,"videoContainer",o)),{c(){M(e.$$.fragment)},m(r,a){A(e,r,a),n=!0},p(r,a){let s={};a[0]&1&&(s.store=r[0]),a[0]&2&&(s.title=r[1]),a[0]&4&&(s.thumbUrl=r[2]),a[0]&8&&(s.interactiveContainer=r[3]),a[0]&16&&(s.live=r[4]),a[0]&32&&(s.autoplay=r[5]),a[0]&64&&(s.canRewindLive=r[6]),a[0]&128&&(s.showAds=r[7]),a[0]&256&&(s.adsSlotId=r[8]),a[0]&512&&(s.adsParams=r[9]),a[0]&1024&&(s.adsPreviewParam=r[10]),a[0]&2048&&(s.duration=r[11]),a[0]&4096&&(s.logoClickable=r[12]),a[0]&8192&&(s.logoHidden=r[13]),a[0]&32768&&(s.showNextPrevButtons=r[15]),a[0]&65536&&(s.nextButtonActive=r[16]),a[0]&131072&&(s.prevButtonActive=r[17]),a[0]&262144&&(s.endScreenVideoTitle=r[18]),a[0]&524288&&(s.endScreenVideoThumb=r[19]),a[0]&1048576&&(s.isOneVideoPlaylist=r[20]),a[0]&2097152&&(s.supportLink=r[21]),a[0]&4194304&&(s.shadowRootContainer=r[22]),a[0]&8388608&&(s.outerContainerRef=r[23]),a[0]&16777216&&(s.fullScreenTarget=r[24]),a[0]&33554432&&(s.showMiniTimer=r[25]),a[1]&8&&(s.playerStarted=r[34]),a[0]&67108864&&(s.playNextVideo=r[26]),a[0]&134217728&&(s.playPrevVideo=r[27]),a[0]&268435456&&(s.repeatPlaylist=r[28]),a[0]&536870912&&(s.seekToInteractive=r[29]),a[0]&1073741824&&(s.toggleGraph=r[30]),a[1]&1&&(s.playPrevChapter=r[31]),!i&&a[1]&4&&(i=!0,s.videoContainer=r[33],Ne(()=>i=!1)),e.$set(s)},i(r){n||(d(e.$$.fragment,r),n=!0)},o(r){_(e.$$.fragment,r),n=!1},d(r){L(e,r)}}}function U6(t){let e,i,n;function o(r){t[60](r)}let l={store:t[0],uiConfig:t[35],thumbUrl:t[2],interactiveContainer:t[3],live:t[4],autoplay:t[5],canRewindLive:t[6],showAds:t[7],adsSlotId:t[8],adsParams:t[9],adsPreviewParam:t[10],duration:t[11],logoClickable:t[12],logoHidden:t[13],logoTargetUrl:t[36],showNextPrevButtons:t[15],nextButtonActive:t[16],prevButtonActive:t[17],endScreenVideoTitle:t[18],endScreenVideoThumb:t[19],isOneVideoPlaylist:t[20],supportLink:t[21],shadowRootContainer:t[22],outerContainerRef:t[23],fullScreenTarget:t[24],showMiniTimer:t[25],playerStarted:t[34],playNextVideo:t[26],playPrevVideo:t[27],repeatPlaylist:t[28],seekToInteractive:t[29],toggleGraph:t[30],playPrevChapter:t[31],firstStart:t[38],seekTime:t[32]};return t[33]!==void 0&&(l.videoContainer=t[33]),e=new Ep({props:l}),be.push(()=>Oe(e,"videoContainer",o)),{c(){M(e.$$.fragment)},m(r,a){A(e,r,a),n=!0},p(r,a){let s={};a[0]&1&&(s.store=r[0]),a[0]&4&&(s.thumbUrl=r[2]),a[0]&8&&(s.interactiveContainer=r[3]),a[0]&16&&(s.live=r[4]),a[0]&32&&(s.autoplay=r[5]),a[0]&64&&(s.canRewindLive=r[6]),a[0]&128&&(s.showAds=r[7]),a[0]&256&&(s.adsSlotId=r[8]),a[0]&512&&(s.adsParams=r[9]),a[0]&1024&&(s.adsPreviewParam=r[10]),a[0]&2048&&(s.duration=r[11]),a[0]&4096&&(s.logoClickable=r[12]),a[0]&8192&&(s.logoHidden=r[13]),a[0]&32768&&(s.showNextPrevButtons=r[15]),a[0]&65536&&(s.nextButtonActive=r[16]),a[0]&131072&&(s.prevButtonActive=r[17]),a[0]&262144&&(s.endScreenVideoTitle=r[18]),a[0]&524288&&(s.endScreenVideoThumb=r[19]),a[0]&1048576&&(s.isOneVideoPlaylist=r[20]),a[0]&2097152&&(s.supportLink=r[21]),a[0]&4194304&&(s.shadowRootContainer=r[22]),a[0]&8388608&&(s.outerContainerRef=r[23]),a[0]&16777216&&(s.fullScreenTarget=r[24]),a[0]&33554432&&(s.showMiniTimer=r[25]),a[1]&8&&(s.playerStarted=r[34]),a[0]&67108864&&(s.playNextVideo=r[26]),a[0]&134217728&&(s.playPrevVideo=r[27]),a[0]&268435456&&(s.repeatPlaylist=r[28]),a[0]&536870912&&(s.seekToInteractive=r[29]),a[0]&1073741824&&(s.toggleGraph=r[30]),a[1]&1&&(s.playPrevChapter=r[31]),!i&&a[1]&4&&(i=!0,s.videoContainer=r[33],Ne(()=>i=!1)),e.$set(s)},i(r){n||(d(e.$$.fragment,r),n=!0)},o(r){_(e.$$.fragment,r),n=!1},d(r){L(e,r)}}}function W6(t){let e,i,n,o,l=[U6,H6],r=[];function a(s,u){return s[14]?0:1}return i=a(t,[-1,-1,-1]),n=r[i]=l[i](t),{c(){e=P("div"),n.c(),c(e,"class","root svelte-167r2e3")},m(s,u){S(s,e,u),r[i].m(e,null),o=!0},p(s,u){let f=i;i=a(s,u),i===f?r[i].p(s,u):(me(),_(r[f],1,1,()=>{r[f]=null}),pe(),n=r[i],n?n.p(s,u):(n=r[i]=l[i](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),r[i].d()}}}function K6(t,e,i){let n,{sources:o}=e,{store:l}=e,{microStoresRoot:r}=e,{videoConfig:a}=e,{uiConfig:s}=e,{title:u}=e,{thumbUrl:f}=e,{interactiveContainer:p}=e,{subtitles:h}=e,{live:w}=e,{preload:g}=e,{autoplay:C}=e,{volume:b=void 0}=e,{muted:E=void 0}=e,{fromTime:v}=e,{canRewindLive:y}=e,{showAds:T}=e,{adsSlotId:Y=void 0}=e,{adsParams:q=void 0}=e,{adsPreviewParam:N=void 0}=e,{duration:ne=void 0}=e,{logoClickable:ge}=e,{logoHidden:j}=e,{isMobile:X}=e,{showNextPrevButtons:ae=!1}=e,{nextButtonActive:K=!1}=e,{prevButtonActive:z=!1}=e,{endScreenVideoTitle:G=void 0}=e,{endScreenVideoThumb:$=void 0}=e,{isOneVideoPlaylist:W=!1}=e,{supportLink:Q}=e,{shadowRootContainer:te=void 0}=e,{outerContainerRef:re=void 0}=e,{fullScreenTarget:Ve=void 0}=e,{failoverHosts:Xe=void 0}=e,{showMiniTimer:Se=!1}=e,{saveRate:Me}=e,{playNextVideo:Ue=bl}=e,{playPrevVideo:$e=bl}=e,{repeatPlaylist:ce=bl}=e,{seekToInteractive:_e=bl}=e,{toggleGraph:at=bl}=e,{playPrevChapter:ke=bl}=e,{volumeMultiplier:Fe}=e,{subscribers:ft,stores:Qe}=r;Uc(s);let je=Bt(),Ze=s.logoLink,xe=l.ui.debugPanelVisible,x=l.ui.playerSize,De=l.state.isLive$;D(t,De,we=>i(63,n=we));let ze,fe=null,se=!1;l.getAdmanWrapper().init({switchFromAdsToVideo:l.actions.internal.switchFromAdsToVideo,switchFromVideoToAds:l.actions.internal.switchFromVideoToAds,setMuted:l.actions.external.setMuted},l.ads,{isMobile:l.ui.isMobile,mobileUnmuteButtonVisible:l.ui.mobileUnmuteButtonVisible,vsid:l.vsid}),xc(l,Qe);let nt=(we=!1)=>{i(34,se=!0),we?l.actions.external.firstStart(T):l.actions.internal.firstStart(T)};function de(we){let gt=o||we;gt&&l.initVideo({container:ze,sources:gt,failoverHosts:Xe,subtitles:h,volumeMultiplier:Fe});let kt=N6.get(Tl)==="true";xe.set(kt),v>0&&l.actions.external.seekTime(v);let Xt=X?je.volumeDefault:b??Jl()??je.volumeDefault,St=E??mf();if(l.actions.external.setVolume(Xt),l.actions.external.setMuted(St),l.getAdmanWrapper().setInitialVolume(St?0:Xt),je.features.trafficSaving){let Gt=_f();Gt&&l.actions.internal.setTrafficSavingEnabled(Gt)}if(je.features.saveRate&&Me){let Gt=bf();Gt&&!n&&l.actions.internal.setPlaybackRate(Gt)}let jt=cf(l.videoId);jt&&l.actions.internal.setQuality(jt),l.ui.isAutoplay.set(C),C?nt():g&&je.features.preload&&l.actions.internal.preload()}let ot=we=>{if(window.ResizeObserver){let gt,kt;fe=new ResizeObserver(O6(Xt=>{let St=Xt[0];if(St){if(St.contentBoxSize){let jt=Array.isArray(St.contentBoxSize)?St.contentBoxSize[0]:St.contentBoxSize;gt=jt.inlineSize,kt=jt.blockSize}else St.contentRect&&(gt=St.contentRect.width,kt=St.contentRect.height);x.set({width:gt,height:kt})}},300)),fe.observe(we)}x.set({width:we.clientWidth,height:we.clientHeight})};It(()=>{ot(ze);let we=ft.map(kt=>kt.init({store:l,microStores:Qe,config:a}));if(w?.status==="upcoming"){l.actions.internal.setLiveWaitingStart(!0);return}if(w?.status==="waiting"){l.actions.internal.setLiveWaitingRecover(!0);return}if((w?.status==="finished"||w?.status==="postlive")&&!Object.keys(o||[]).length){l.actions.internal.setLiveWaitingRecord(!0);return}return de(),()=>{fe?.disconnect(),we.forEach(kt=>kt.unsubscribe()),l.destroy()}});function lt(){se?l.actions.external.play():nt(!0)}function dt(){l.actions.external.pause()}function yt(we){X||l.actions.external.setMuted(we)}function Et(we){X||we>=0&&we<=1&&l.actions.external.setVolume(we)}function Ye(we){l.actions.internal.seekTime(we,F6.UNKNOWN)}function Kt(we){l.actions.external.seekEpisodeStartTime(we)}function qt(){l.actions.external.returnFocusToEpisodes()}function Tt(we){l.actions.external.setPlaybackRate(we)}function ai(we){l.actions.external.setAutoQualityLimits(we)}function rt(we){ze=we,i(33,ze)}function wt(we){ze=we,i(33,ze)}return t.$$set=we=>{"sources"in we&&i(39,o=we.sources),"store"in we&&i(0,l=we.store),"microStoresRoot"in we&&i(40,r=we.microStoresRoot),"videoConfig"in we&&i(41,a=we.videoConfig),"uiConfig"in we&&i(42,s=we.uiConfig),"title"in we&&i(1,u=we.title),"thumbUrl"in we&&i(2,f=we.thumbUrl),"interactiveContainer"in we&&i(3,p=we.interactiveContainer),"subtitles"in we&&i(43,h=we.subtitles),"live"in we&&i(4,w=we.live),"preload"in we&&i(44,g=we.preload),"autoplay"in we&&i(5,C=we.autoplay),"volume"in we&&i(45,b=we.volume),"muted"in we&&i(46,E=we.muted),"fromTime"in we&&i(47,v=we.fromTime),"canRewindLive"in we&&i(6,y=we.canRewindLive),"showAds"in we&&i(7,T=we.showAds),"adsSlotId"in we&&i(8,Y=we.adsSlotId),"adsParams"in we&&i(9,q=we.adsParams),"adsPreviewParam"in we&&i(10,N=we.adsPreviewParam),"duration"in we&&i(11,ne=we.duration),"logoClickable"in we&&i(12,ge=we.logoClickable),"logoHidden"in we&&i(13,j=we.logoHidden),"isMobile"in we&&i(14,X=we.isMobile),"showNextPrevButtons"in we&&i(15,ae=we.showNextPrevButtons),"nextButtonActive"in we&&i(16,K=we.nextButtonActive),"prevButtonActive"in we&&i(17,z=we.prevButtonActive),"endScreenVideoTitle"in we&&i(18,G=we.endScreenVideoTitle),"endScreenVideoThumb"in we&&i(19,$=we.endScreenVideoThumb),"isOneVideoPlaylist"in we&&i(20,W=we.isOneVideoPlaylist),"supportLink"in we&&i(21,Q=we.supportLink),"shadowRootContainer"in we&&i(22,te=we.shadowRootContainer),"outerContainerRef"in we&&i(23,re=we.outerContainerRef),"fullScreenTarget"in we&&i(24,Ve=we.fullScreenTarget),"failoverHosts"in we&&i(48,Xe=we.failoverHosts),"showMiniTimer"in we&&i(25,Se=we.showMiniTimer),"saveRate"in we&&i(49,Me=we.saveRate),"playNextVideo"in we&&i(26,Ue=we.playNextVideo),"playPrevVideo"in we&&i(27,$e=we.playPrevVideo),"repeatPlaylist"in we&&i(28,ce=we.repeatPlaylist),"seekToInteractive"in we&&i(29,_e=we.seekToInteractive),"toggleGraph"in we&&i(30,at=we.toggleGraph),"playPrevChapter"in we&&i(31,ke=we.playPrevChapter),"volumeMultiplier"in we&&i(50,Fe=we.volumeMultiplier)},t.$$.update=()=>{t.$$.dirty[0]&16385&&l.ui.isMobile.set(X)},[l,u,f,p,w,C,y,T,Y,q,N,ne,ge,j,X,ae,K,z,G,$,W,Q,te,re,Ve,Se,Ue,$e,ce,_e,at,ke,Ye,ze,se,je,Ze,De,nt,o,r,a,s,h,g,b,E,v,Xe,Me,Fe,de,lt,dt,yt,Et,Kt,qt,Tt,ai,rt,wt]}var bc=class extends H{constructor(e){super(),U(this,e,K6,W6,F,{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},z6,[-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]}},Ap=bc;function j6(t){let e,i,n,o=t[2].default,l=Ie(o,t,t[1],null),r=[{xmlns:"http://www.w3.org/2000/svg"},{width:"57"},{height:"60"},{fill:"none"},{"aria-hidden":"true"},{"data-testid":"stub-icon"},{role:"img"},t[0]],a={};for(let s=0;s<r.length;s+=1)a=ue(a,r[s]);return{c(){e=R("svg"),l&&l.c(),i=R("path"),c(i,"fill","currentColor"),c(i,"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"),ye(e,a)},m(s,u){S(s,e,u),l&&l.m(e,null),m(e,i),n=!0},p(s,[u]){l&&l.p&&(!n||u&2)&&Ae(l,o,s,s[1],n?Ee(o,s[1],u,null):Le(s[1]),null),ye(e,a=Be(r,[{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(l,s),n=!0)},o(s){_(l,s),n=!1},d(s){s&&k(e),l&&l.d(s)}}}function G6(t,e,i){let{$$slots:n={},$$scope:o}=e;return t.$$set=l=>{i(0,e=ue(ue({},e),ve(l))),"$$scope"in l&&i(1,o=l.$$scope)},e=ve(e),[e,o,n]}var vc=class extends H{constructor(e){super(),U(this,e,G6,j6,F,{})}},Lp=vc;function Q6(t){let e,i;return e=new Lp({props:{style:t[0]}}),{c(){M(e.$$.fragment)},m(n,o){A(e,n,o),i=!0},p(n,[o]){let l={};o&1&&(l.style=n[0]),e.$set(l)},i(n){i||(d(e.$$.fragment,n),i=!0)},o(n){_(e.$$.fragment,n),i=!1},d(n){L(e,n)}}}function Y6(t,e,i){let n,{isWhite:o=!1}=e;return t.$$set=l=>{"isWhite"in l&&i(1,o=l.isWhite)},t.$$.update=()=>{t.$$.dirty&2&&i(0,n=o?"color: #fff;":"color: #909499;")},[n,o]}var yc=class extends H{constructor(e){super(),U(this,e,Y6,Q6,F,{isWhite:1})}},Mp=yc;function Z6(t){Pe(t,"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 Vp(t){let e,i;return{c(){e=P("div"),i=Re(t[0]),c(e,"class","title svelte-1y9fytq")},m(n,o){S(n,e,o),m(e,i)},p(n,o){o&1&&Ge(i,n[0])},d(n){n&&k(e)}}}function Rp(t){let e,i;return e=new Mp({props:{isWhite:!!t[1]}}),{c(){M(e.$$.fragment)},m(n,o){A(e,n,o),i=!0},p(n,o){let l={};o&2&&(l.isWhite=!!n[1]),e.$set(l)},i(n){i||(d(e.$$.fragment,n),i=!0)},o(n){_(e.$$.fragment,n),i=!1},d(n){L(e,n)}}}function X6(t){let e,i,n,o,l=t[0]&&Vp(t),r=(!t[0]||!t[1])&&Rp(t);return{c(){e=P("div"),l&&l.c(),i=V(),r&&r.c(),c(e,"class","playerStub svelte-1y9fytq"),c(e,"style",n=t[1]?`background-image: url('${t[1]}')`:"")},m(a,s){S(a,e,s),l&&l.m(e,null),m(e,i),r&&r.m(e,null),o=!0},p(a,[s]){a[0]?l?l.p(a,s):(l=Vp(a),l.c(),l.m(e,i)):l&&(l.d(1),l=null),!a[0]||!a[1]?r?(r.p(a,s),s&3&&d(r,1)):(r=Rp(a),r.c(),d(r,1),r.m(e,null)):r&&(me(),_(r,1,1,()=>{r=null}),pe()),(!o||s&2&&n!==(n=a[1]?`background-image: url('${a[1]}')`:""))&&c(e,"style",n)},i(a){o||(d(r),o=!0)},o(a){_(r),o=!1},d(a){a&&k(e),l&&l.d(),r&&r.d()}}}function J6(t,e,i){let{title:n}=e,{thumbUrl:o}=e;return t.$$set=l=>{"title"in l&&i(0,n=l.title),"thumbUrl"in l&&i(1,o=l.thumbUrl)},[n,o]}var wc=class extends H{constructor(e){super(),U(this,e,J6,X6,F,{title:0,thumbUrl:1},Z6)}},Bp=wc;import{cloneDeepWith as h8,InterfaceLanguage as g8,clientChecker as b8,isMobile as v8,isNonNullable as Tc,Logger as y8,Subscription as w8}from"@vkontakte/videoplayer-shared";import"@vkontakte/videoplayer-core";import{OneStat as k8}from"@vkontakte/videoplayer-statistics";import{Subscription as x6}from"@vkontakte/videoplayer-shared";var rs=class{constructor(){this.subscription=new x6}isSupported(){return"mediaSession"in navigator}setMetaData({title:e,artist:i="",thumbUrl:n=""}){this.isSupported()&&(navigator.mediaSession.metadata=new MediaMetadata({title:e,artist:i,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",i=>null],["seekbackward",i=>null],["seekforward",i=>null]];this.setActionHandlers(e)}setActionHandlers(e){if(this.isSupported())for(let[i,n]of e)try{navigator.mediaSession.setActionHandler(i,n)}catch{throw new Error(`The media session action "${i}" is not supported yet.`)}}attachToStore(e){!this.isSupported()||!e||this.subscription.add(e.state.positionExact$.subscribe(i=>{let n=Je(e.state.currentPlaybackRate$),o=Je(e.state.duration$);!isFinite(i)||!isFinite(o)||navigator.mediaSession.setPositionState({position:i,playbackRate:n,duration:o})}))}clearSubscriptions(){this.subscription.unsubscribe()}destroy(){this.resetActionHandlers(),this.clearSubscriptions()}};import{ValueSubject as o8,clientChecker as l8,detectEmbed as r8}from"@vkontakte/videoplayer-shared";function $6(t){let e,i,n,o,l,r=t[2].default,a=Ie(r,t,t[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"},t[0]],u={};for(let f=0;f<s.length;f+=1)u=ue(u,s[f]);return{c(){e=R("svg"),a&&a.c(),i=R("g"),n=R("path"),o=R("path"),c(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"),c(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"),c(i,"fill","#fff"),ye(e,u)},m(f,p){S(f,e,p),a&&a.m(e,null),m(e,i),m(i,n),m(i,o),l=!0},p(f,[p]){a&&a.p&&(!l||p&2)&&Ae(a,r,f,f[1],l?Ee(r,f[1],p,null):Le(f[1]),null),ye(e,u=Be(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"},p&1&&f[0]]))},i(f){l||(d(a,f),l=!0)},o(f){_(a,f),l=!1},d(f){f&&k(e),a&&a.d(f)}}}function e8(t,e,i){let{$$slots:n={},$$scope:o}=e;return t.$$set=l=>{i(0,e=ue(ue({},e),ve(l))),"$$scope"in l&&i(1,o=l.$$scope)},e=ve(e),[e,o,n]}var kc=class extends H{constructor(e){super(),U(this,e,e8,$6,F,{})}},qp=kc;function t8(t){Pe(t,"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 i8(t){let e,i,n,o,l,r,a;return n=new qp({}),{c(){e=P("div"),i=P("div"),M(n.$$.fragment),o=V(),l=P("span"),r=Re(t[0]),c(i,"class","dummy-image svelte-1pbsod4"),B(i,"desktop",!t[1]),c(l,"class","title svelte-1pbsod4"),c(e,"class","player-pip-dummy svelte-1pbsod4"),B(e,"is-pip-api",t[2])},m(s,u){S(s,e,u),m(e,i),A(n,i,null),m(e,o),m(e,l),m(l,r),a=!0},p(s,[u]){(!a||u&2)&&B(i,"desktop",!s[1]),(!a||u&1)&&Ge(r,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 n8(t,e,i){let n,o,l=it(),r=!!l.webApi.pictureInPictureApi,a=l.interfaceLanguage$;D(t,a,f=>i(5,n=f));let s=l.ui.isMobile;D(t,s,f=>i(1,o=f));let u;return t.$$.update=()=>{t.$$.dirty&32&&i(0,u=n&&O("pip_dummy_title"))},[u,o,r,a,s,n]}var Sc=class extends H{constructor(e){super(),U(this,e,n8,i8,F,{},t8)}},Dp=Sc;var s8=460,a8=280,Nl=class{constructor(){this.info={isActive$:new o8(!1),type:1}}isSupported(){let{isEmbed:e}=r8();return"documentPictureInPicture"in window&&!l8.isYandex&&!e}isActive(){return this.isSupported()&&!!documentPictureInPicture.window}setPlayerDomElement(e,i){this.playerDomElement=e,this.playerParentShadowRoot=i}setContext(e){this.svelteContext=e}async request(){if(!this.isSupported()||!this.playerDomElement||!this.playerParentShadowRoot)return;this.pipWindow=await documentPictureInPicture.requestWindow({width:s8,height:a8,copyStyleSheets:!0}),this.pipWindow.document.body.style.margin="0";let e=[...this.playerParentShadowRoot.styleSheets].map(l=>[...l.cssRules].map(r=>r.cssText).join(" ")).filter(Boolean).join(`
53
- `),i=document.createElement("style");i.textContent=e;let n=this.createStretchedContainer(),o=n.attachShadow({mode:"open"});o.append(i),o.append(this.playerDomElement),this.playerDummyElement=new Dp({target:this.playerParentShadowRoot,context:this.svelteContext}),this.pipWindow?.document.body.append(n),this.info.isActive$.next(!0),this.pipWindow?.addEventListener("unload",l=>{!this.playerDomElement||!this.playerParentShadowRoot||!this.playerDummyElement||(this.playerDummyElement.$destroy(),this.playerParentShadowRoot.append(this.playerDomElement),this.info.isActive$.next(!1))})}async remove(){return new Promise(e=>{documentPictureInPicture.window?.close(),e()})}async dispose(){await this.remove()}createStretchedContainer(){let e=document.createElement("div");return e.style.width="100%",e.style.height="100%",e}};function Np(t){return t instanceof Nl}var ss=class{static getLatestSupportedVersion(){let e=new Vo,i=new Nl;if(i.isSupported())return i;if(e.isSupported())return e}};function as(t,e){let i=new Set([...Object.keys(t),...Object.keys(e)]),n={};for(let o of i)n[o]=e[o]??t[o]??void 0;return n}var Op="Inner error. Unexpectedly root annotation container null reference exception",Fp="Annotation with such name already exists",zp="Annotation with such name does not exist";var vl=class extends Error{constructor(e){super(e),this.name="AnnotationError"}};import{observeElementSize as u8,Subscription as c8,throttleFn as f8}from"@vkontakte/videoplayer-shared";var d8="1",m8=100,us=class{constructor(){this.annotations=new Map;this.subscriptions=new c8}init(e){this.rootAnnotationsContainer=e;let i=f8(()=>{for(let n of this.annotations.values())this.isElementExceedsBoundaries(n,this.playerSize.width,this.playerSize.height)?n.style.visibility="hidden":n.style.visibility="visible"},m8);this.subscriptions.add(u8(this.rootAnnotationsContainer).subscribe(({width:n,height:o})=>{this.playerSize={width:n,height:o},i()})),this.mutationObserver=new MutationObserver(i),this.mutationObserver.observe(this.rootAnnotationsContainer,{attributes:!0,childList:!0,subtree:!0,characterData:!0})}add(e,i){if(!this.rootAnnotationsContainer)throw new vl(Op);if(this.annotations.has(e))throw new vl(Fp);i.style.zIndex=i.style.zIndex??d8,i.style.position="absolute",this.rootAnnotationsContainer.append(i),this.annotations.set(e,i)}get(e){let i=this.annotations.get(e);if(!i)throw new vl(zp);return i}remove(e){let i=this.get(e);this.annotations.delete(e)&&i.remove()}clear(){for(let e in this.annotations.keys())this.remove(e)}destroy(){this.annotations.clear(),this.subscriptions.unsubscribe(),this.mutationObserver.disconnect(),this.rootAnnotationsContainer=null}isElementExceedsBoundaries(e,i,n){let o=e.offsetTop,l=e.offsetLeft,r=e.offsetWidth,a=e.offsetHeight;return o<0||l<0||l+r>i||o+a>n}registryRootContainer(e){}addLayer(e){return document.createElement("div")}getLayer(e){}removeLayer(e){}clearLayer(e){}detach(){}reattach(){}};import{assertNonNullable as Cc,Subscription as p8}from"@vkontakte/videoplayer-shared";var Zn=class{init({store:e,microStores:i,config:n}){return Cc(e),Cc(i),Cc(n),this.subscription=new p8,this.subscription}};var Ol=class extends Zn{constructor(){super(...arguments);this.stateName="fakeIsPlaying$";this.state$={...qe(null),toggle:()=>this.state$.update(i=>!i)}}init(i){let n=super.init(i),{isInteractiveExpectation$:o}=i.store.state;return n.add(o.subscribe(l=>{this.state$.set(l?!0:null)})),n}};var Fl=class extends Zn{constructor(){super(...arguments);this.stateName="interactiveControlsOpacity$";this.state$={...qe(null),toggle:()=>this.state$.update(i=>!i)}}init(i){let n=super.init(i),{microStores:o,store:l}=i,{fakeIsPlaying$:r}=o,{isInteractiveExpectation$:a,isPlaying$:s}=l.state,{controlsVisible:u,isMobile:f}=l.ui,p=Je(f),h=()=>p&&Je(u);return n.add(u.subscribe(w=>{if(!p)return;let g=Je(r);Je(s)?this.state$.set(w):g!==null&&this.state$.set(!g||w)})),n.add(s.subscribe(w=>{this.state$.set(!w||h())})),n.add(r.subscribe(w=>{if(w===null)return;let g=Je(a);if(h()){this.state$.set(!0);return}g&&this.state$.set(!w)})),n}};var zl=class extends Zn{constructor(){super(...arguments);this.stateName="seekToInteractiveDisabledTooltip$";this.state$=qe("tooltip_chapter_without_interactive")}init(i){let n=super.init(i),{store:o}=i;return n.add(o.state.interactiveEpisodes$.subscribe(l=>{l.length&&(l.every(r=>r.completed)?this.state$.set("tooltip_interactive_of_chapter_completed"):this.state$.set("tooltip_disabled_when_interactive"))})),n}};import{combine as _8}from"@vkontakte/videoplayer-shared";var Pc=qe(!1),cs=null,Hl=class extends Zn{constructor(){super(...arguments);this.stateName="showInteractiveTimeIndicatorTooltip$";this.state$={...Pc,set:(i,n=!1)=>{i!==Je(Pc)&&(this.clearTimeout(),Pc.set(i),!i&&cs&&(cs=!1),i&&n&&(this.timeout=setTimeout(()=>{this.state$.set(!1)},3e3)))},clearTimeout:()=>this.clearTimeout()}}init(i){let n=super.init(i),{store:o,config:l}=i,{isInteractiveTime$:r,isPlaying$:a}=o.state,s=o.ui.controlsVisible,{interactiveTimeIndicator:u}=o.ui.controls;n.add(s.subscribe(p=>{Je(r)&&p&&this.state$.set(!1)}));let f=l?.interactiveData||{tooltipHelpHintActive:!1};return n.add(_8({isPlaying$:a,isInteractiveTime$:r,interactiveTimeIndicator:u}).subscribe(({isPlaying$:p,isInteractiveTime$:h,interactiveTimeIndicator:w})=>{if(!(!p||!w?.isDisplayed)){if(!h)return this.state$.set(!1);f.tooltipHelpHintActive&&cs===null&&(cs=!0,f.tooltipHelpHintActive=!1,this.state$.set(!0),o.callbacks?.onInteractiveTimeIndicatorHintDeactivated?.())}})),n}clearTimeout(){window.clearTimeout(this.timeout)}};var Hp=()=>[Ol,Fl,zl,Hl].reduce(({subscribers:t,stores:e},i)=>{let n=new i;return{subscribers:[...t,n],stores:{...e,[n.stateName]:n.state$}}},{subscribers:[],stores:{}});var S8={preload:!0,autoplay:!1,repeat:!1,fromTime:0,canRewindLive:!0,showAds:!1,interfaceLanguage:g8.RU,isCyrillicRelatedInterface:!0,logoClickable:!1,logoHidden:!1,isMobile:v8(),isMediaSessionEnabled:!0,isPictureInPictureEnabled:!0,isAudioDisabled:!1,callbacks:{uiInfo:{}},tuningConfig:{configName:[]},saveRate:!0,volumeMultiplier:1},fs=class extends HTMLElement{constructor(){super();this.currentPlayingVideoIndex=0;this.needToRepeatPlaylist=!1;this.videoConfig=void 0;this.pictureInPictureApi=void 0;this.mediaSessionApi=void 0;this.unsubscribePlayerPhaseSubscription=void 0;this.annotationsApi=void 0;this.prevIsid=void 0;this.isInited=!1;this.createOneStat=(i,n={})=>{let{albumId:o,statPlace:l,statUserSalt:r,statTrackCode:a,refreshStatAuthToken:s,autoplay:u,isMobile:f,refDomain:p,deviceId:h,interactiveData:w}=as(this.videoConfig,n),g=w?.projectInfo?.pid,{unitedVideoId:C,isClip:b=!1}=i;if(this.uiConfig.features.statistics&&C)return new k8({movieId:C,albumId:o,place:l,trackCode:a,autoplay:(u&&!this.interactiveController)??!1,mobile:f,clip:b,refDomain:p,deviceId:h,...g&&!this.isInited&&{projectId:Number(g)}},{refreshAuthToken:s,userSalt:r,config:this.statisticsConfig,...this.interactiveController&&{useIsid:!0,isid:this.prevIsid}})};this.logger=new y8,this.log=this.logger.createComponentLog("VKVideoPlayer"),this.subscription=new w8,this.graphMadePause=!1,window?.videoPlayerConfig?.debugLogs&&this.subscription.add(this.logger.log$.subscribe(i=>{console.log("%c player web component ","background:#77dd77;",`${i.component}`,i.message)}))}connectedCallback(){if(this.isInited)return;this.initPlayerRootContainers();let i=this.getAttribute("stub-title")??void 0,n=this.getAttribute("stub-thumb-url")??void 0;this.svelteStubComponent=new Bp({target:this.playerContainer,props:{title:i,thumbUrl:n}})}disconnectedCallback(){this.annotationsApi?.destroy(),this.mediaSessionApi?.destroy(),this.svelteRootComponent?.$destroy(),this.svelteStubComponent?.$destroy(),this.subscription.unsubscribe(),this.unsubscribePlayerPhaseSubscription?.(),this.interactiveController?.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(i){return this.store?.ui.controls.disabledControls$?.includes(i)||!1}getNextVideoInfo(){if(!this.videoConfig)return{nextVideoTitle:void 0,nextVideoThumb:void 0};let i=this.videoConfig.videos[this.currentPlayingVideoIndex+1]||{};return{nextVideoTitle:i.title,nextVideoThumb:i.thumbUrl}}createPlayer(i,n={},o){if(!this.videoConfig)return;let{albumId:l,statPlace:r,statAuthToken:a,preload:s,autoplay:u,volume:f,muted:p,fromTime:h,canRewindLive:w,supportLink:g,showAds:C,adsSlotId:b,adsParams:E={},adsPreviewParam:v,interfaceLanguage:y,isCyrillicRelatedInterface:T,logoClickable:Y,logoHidden:q,isMobile:N,isAudioDisabled:ne,isLiveCatchUpMode:ge,fullScreenTarget:j,failoverHosts:X,canDownload:ae,callbacks:K,interactiveData:z,showThumbTimer:G,additionalButtons:$=[],repeat:W,saveRate:Q,volumeMultiplier:te}=as(this.videoConfig,n),{sources:re,title:Ve,thumbUrl:Xe,unitedVideoId:Se,isClip:Me=!1,duration:Ue,adsParams:$e={},videoEpisodes:ce,previewThumbsData:_e,subtitles:at,live:ke}=i,Fe={...E,...$e},ft=this.getNextVideoInfo(),Qe={sources:re,title:Ve,thumbUrl:Xe,subtitles:at,unitedVideoId:Se,isClip:Me,live:ke,albumId:l,statPlace:r,autoplay:u,muted:p,volume:f,fromTime:h,canRewindLive:w,showAds:C,adsSlotId:b,adsParams:Fe,adsPreviewParam:v,duration:Ue,logoClickable:Y,logoHidden:q,isMobile:N,repeat:W,showNextPrevButtons:this.needToShowNextPrevButtons(),nextButtonActive:this.isNextButtonActive(),prevButtonActive:this.isPrevButtonActive(),endScreenVideoTitle:ft.nextVideoTitle,endScreenVideoThumb:ft.nextVideoThumb,isOneVideoPlaylist:this.isOneVideoPlaylist()},je={pictureInPictureApi:this.pictureInPictureApi,annotationsApi:this.annotationsApi};this.log({message:`create player, props: ${JSON.stringify(Qe)}`});let Ze=this.interactiveController?.state.statistics$.getValue(),xe=Ze?.oneStat||this.createOneStat(i,n);xe&&(this.statistics=new Gr(xe,Ze?.statSubscription)),this.uiConfig.features.sentry&&this.uiConfig.sentry.dsn&&new Mo(this.uiConfig.sentry,{version:il,env:Xl},{movieId:Se,albumId:l,place:r,autoplay:(u&&!this.interactiveController)??!1,mobile:N,clip:Me}),this.interactiveController&&(this.prevIsid??=this.statistics?.oneStat.isid$.getValue()),this.sentry={...this.sentry,...Mo.getInstance()};let De=!!z,ze=[],fe="tooltip_interactive_go_back_disabled_first";if(De&&this.interactiveController){let de=this.interactiveController.state.isInitialChapter$.getValue(),ot=this.interactiveController.getHistoryState();de&&ze.push("REPLAY_BUTTON"),this.interactiveController.getIsSeekable().getValue()||ze.push("SEEK_TO_INTERACTIVE_BUTTON"),ot.hasPrevChapter$.getValue()||(ze.push("PLAY_PREV_CHAPTER_BUTTON"),de||(ot.isGoBackLimited$.getValue()?fe="tooltip_interactive_go_back_disabled_limit":fe="tooltip_interactive_go_back_disabled"))}let se=()=>{this.isInited=!1,this.prevIsid=void 0;let de=o?.info.isEnded$.getValue()&&this.interactiveController?.state.isEndChapter$.getValue();K.onReplayInteractiveVideo&&!de?K.onReplayInteractiveVideo():this.replayInteractiveVideo()};this.store=dm({player:o,interfaceLanguage:y,isCyrillicRelatedInterface:T,videoId:Se,isClip:Me,isLiveCatchUpMode:ge,isAudioDisabled:ne,statAuthToken:a,callbacks:K,webApi:je,videoEpisodes:ce,previewThumbsData:_e,canDownload:ae,uiConfig:this.uiConfig,coreConfig:this.coreConfig,disabledControls:ze,isInteractive:De,saveRate:Q,interactiveRanges$:this.interactiveController?.state.interactiveRanges$,isInteractiveTime$:this.interactiveController?.state.isInteractiveTime$,replayInteractive:se,playPrevChapterDisabledTooltip:fe,hasInteractiveBranches:!!this.interactiveController?.getChapterBranches()?.length,additionalButtons:this.uiConfig.features.additionalButtons?$:[],looped:W&&this.videoConfig.videos.length===1,statistics:this.statistics});let{stores:nt}=this.microStoresRoot=Hp();this.subscription.add(this.store.state.currentFormat$.subscribe(de=>K?.onCurrentFormatChanged?.(de))),this.subscription.add(nt.interactiveControlsOpacity$.subscribe(de=>{de!==null&&this?.interactiveController?.setDisabledControls(de)})),this.subscription.add(this.store.state.throughputEstimation$.subscribe(de=>K?.onThroughputEstimationChanged?.(de))),this.subscription.add(this.store.state.trafficSavingEnabled$.subscribe(de=>K?.onTrafficSavingEnabledChanged?.(de))),this.subscription.add(this.store.state.currentPlaybackRate$.subscribe(de=>K?.onCurrentPlaybackRateChanged?.(de))),this.subscription.add(this.store.state.volume$.subscribe(de=>K?.onVolumeChange?.(de))),this.subscription.add(this.store.state.muted$.subscribe(de=>de?K?.onMute?.():K?.onUnmute?.())),this.subscription.add(this.store.state.videoBitrate$.subscribe(de=>K?.onVideoBitrateChanged?.(de))),this.subscription.add(this.store.state.isInteractiveTime$.subscribe(de=>{let ot=this.store?.ui.controls.disabledControls$;ot&&(de&&!ot.includes(Il)&&ot.add(Il),de||ot.remove(Il))})),this.subscription.add(this.store.ui.isFullscreen.subscribe(async de=>{if(!b8.isSamsungBrowser||!de||!this.interactiveController)return;document.fullscreenElement===this.shadowRootContainer&&await this.replayInteractiveChapter(this.videoConfig?.callbacks.onExternalFullscreenExit)})),this.statistics&&this.subscription.add(this.statistics.oneStat.vsid$.subscribe(de=>K?.onVSIDChanged?.(de))),this.initMediaSession(),this.svelteRootComponent=new Ap({target:this.playerContainer,props:{interactiveContainer:this.interactiveContainer,sources:re,store:this.store,microStoresRoot:this.microStoresRoot,videoConfig:this.videoConfig,uiConfig:this.uiConfig,title:Ve,thumbUrl:Xe,subtitles:at,live:ke,preload:s,autoplay:u,muted:p,volume:f,fromTime:h,canRewindLive:w,supportLink:g,showAds:C,adsSlotId:b,adsParams:Fe,adsPreviewParam:v,duration:Ue,logoClickable:Y,logoHidden:q,isMobile:N,failoverHosts:X,fullScreenTarget:j,saveRate:Q,shadowRootContainer:this.shadowRootContainer,showMiniTimer:G,outerContainerRef:this.rootContainer,showNextPrevButtons:this.needToShowNextPrevButtons(),nextButtonActive:this.isNextButtonActive(),prevButtonActive:this.isPrevButtonActive(),endScreenVideoTitle:ft.nextVideoTitle,endScreenVideoThumb:ft.nextVideoThumb,isOneVideoPlaylist:this.isOneVideoPlaylist(),playNextVideo:()=>this.playNextVideo(),playPrevVideo:()=>this.playPrevVideo(),repeatPlaylist:()=>this.repeatPlaylist(),playPrevChapter:()=>this.playPrevChapter(),seekToInteractive:()=>this.seekToInteractive(),toggleGraph:()=>this.toggleGraph(),volumeMultiplier:te}}),this.addPlayerInfoSubscriptions(),this.isInited||(this.isInited=!0,this.videoConfig?.callbacks?.onInited?.())}addPlayerInfoSubscriptions(){let i=this.store;if(!i)return;let n=this.videoConfig?.callbacks;n&&this.subscription.add(i.playerPhase.subscribe(l=>n.onPlayerPhaseChanged?.(l))).add(i.state.playbackState$.subscribe(l=>n.onPlaybackStateChanged?.(l))).add(i.state.isLive$.subscribe(l=>n.onIsLiveChanged?.(l))).add(i.state.isActiveLive$.subscribe(l=>n.onIsActiveLiveChanged?.(l))).add(i.state.isAudioAvailable$.subscribe(l=>n.onIsAudioAvailableChanged?.(l))).add(i.state.currentQuality$.subscribe(l=>n.onCurrentQualityChanged?.(l))).add(i.state.availableQualities$.subscribe(l=>n.onAvailableQualitiesChanged?.(l.map(({value:r})=>r).filter(r=>r!=="auto")))).add(i.state.availableAudioStreams$.subscribe(l=>{l.length>1&&n.onAudioLanguagesAvailable&&n.onAudioLanguagesAvailable()})).add(i.ui.isPictureInPictureActive$.subscribe(l=>l?n.onPiPEnter?.():n.onPiPExit?.()));let o=n?.uiInfo;o&&this.subscription.add(i.ui.controlsVisible.subscribe(l=>o.onControlsVisibleChanged?.(l))).add(i.ui.isMobile.subscribe(l=>o.onIsMobileChanged?.(l))).add(i.ui.playerSize.subscribe(l=>o.onPlayerSizeChanged?.(l))).add(i.ui.controls.prevButton.subscribe(l=>o.onPrevButtonChanged?.(l))).add(i.ui.controls.playButton.subscribe(l=>o.onPlayButtonChanged?.(l))).add(i.ui.controls.replayButton.subscribe(l=>o.onReplayButtonChanged?.(l))).add(i.ui.controls.nextButton.subscribe(l=>o.onNextButtonChanged?.(l))).add(i.ui.controls.playPrevChapterButton.subscribe(l=>o.onPlayPrevChapterChanged?.(l))).add(i.ui.controls.seekToInteractiveButton.subscribe(l=>o.onSeekToInteractiveButtonChanged?.(l))).add(i.ui.controls.interactiveGraphButton.subscribe(l=>o.onGraphButtonChanged?.(l))).add(i.ui.controls.liveButton.subscribe(l=>o.onLiveButtonChanged?.(l))).add(i.ui.controls.time.subscribe(l=>o.onTimeUpdateChanged?.(l))).add(i.ui.controls.episodes.subscribe(l=>o.onEpisodesChanged?.(l))).add(i.ui.controls.subtitles.subscribe(l=>o.onSubtitlesChanged?.(l))).add(i.ui.controls.settings.subscribe(l=>o.onSettingsChanged?.(l))).add(i.ui.controls.fullscreen.subscribe(l=>o.onFullscreenChanged?.(l))).add(i.ui.controls.chromecast.subscribe(l=>o.onChromecastChanged?.(l))).add(i.ui.controls.pip.subscribe(l=>o.onPipChanged?.(l))).add(i.ui.controls.vkLogo.subscribe(l=>o.onVkLogoChanged?.(l))).add(i.ui.controls.interactiveTimeIndicator.subscribe(l=>o.onInteractiveTimeIndicatorChanged?.(l))).add(i.ui.controls.timeline.subscribe(l=>o.onTimelineChanged?.(l)))}playNextVideo(){if(!this.videoConfig)return;let i=!0;if(this.videoConfig.callbacks?.onNextVideoClick)try{i=this.videoConfig.callbacks.onNextVideoClick()}catch{this.log({message:"onNextVideoClick callback failed to execute"})}i&&(this.currentPlayingVideoIndex++,this.currentPlayingVideoIndex>=this.videoConfig.videos.length&&(this.currentPlayingVideoIndex=0),this.log({message:`play next video, index: ${this.currentPlayingVideoIndex}`}),this.createPlayerWithCurrentVideo())}playPrevVideo(){if(!this.videoConfig)return;let i=!0;if(this.videoConfig.callbacks?.onPrevVideoClick)try{i=this.videoConfig.callbacks.onPrevVideoClick()}catch{this.log({message:"onPrevVideoClick callback failed to execute"})}i&&(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(i,n=!0){if(!this.videoConfig)return;let o=this.videoConfig.videos[this.currentPlayingVideoIndex];if(!o){this.log({message:"no next video"});return}this.isInited&&Tc(o.unitedVideoId)&&this.store.actions.internal.nextMovie(o.unitedVideoId),this.svelteRootComponent?.$destroy(),this.createPlayer(o,{autoplay:n,fromTime:0},i)}playPrevChapter(){this.interactiveController?.playPrevChapter()}seekToInteractive(){let i=this.interactiveController?.getNextInteractiveStartTime();typeof i=="number"&&this.seekTime(i/1e3)}toggleGraph(){if(!this.isInited)return;let i=this.store,{isEnded$:n,playbackState$:o,graphIsOpened$:l}=i.state,{disabledControls$:r}=i.ui.controls,a=Je(n),s=Je(o);Je(l)?(l.set(!1),this.interactiveController?.toggleGraphView(!1),r.remove(ws),!a&&this.graphMadePause&&this.play()):(this.graphMadePause=s==="playing",l.set(!0),this.interactiveController?.toggleGraphView(!0),r.add(ws),!a&&this.graphMadePause&&this.pause())}async initInteractives(){if(this.videoConfig?.interactiveData)try{let{Interactives:i,EVENT_NAMES:n,CustomError:o}=await import("@vkontakte/videoplayer-interactive");this.interactiveContainer=document.createElement("div"),this.interactiveContainer.classList.add("interactiveContainer");let l=this.store?.interfaceLanguage$,r=l?Je(l):this.videoConfig.interfaceLanguage,{projectInfo:a,initChapterId:s,historyApi:u,videoLoader:f}=this.videoConfig.interactiveData;this.interactiveController=new i({parentElement:this.interactiveContainer,fullscreenTargetElement:this.playerContainer,lang:r,graph:this.uiConfig.features.interactiveGraph,projectInfo:a,initChapterId:s,historyApi:u,vkVideoLoader:f,lastFrame:this.uiConfig.features.interactiveLastFrame,permanentTextControls:this.uiConfig.features.interactiveTextPermanent,initSeamless:!0,config:this.uiConfig.interactive,coreConfig:this.coreConfig,createOneStat:this.createOneStat});let{isInteractiveExpectation$:p}=this.interactiveController.state;this.uiConfig.features.seekToInteractive&&this.subscription.add(this.interactiveController.getIsSeekable().subscribe(w=>{if(!this.isInited)return;let g=this.store;w?g.ui.controls.disabledControls$.remove("SEEK_TO_INTERACTIVE_BUTTON"):g.ui.controls.disabledControls$.add("SEEK_TO_INTERACTIVE_BUTTON")})),this.subscription.add(p.subscribe(w=>{this.store&&this.store.state.isInteractiveExpectation$.set(w)}));let h=!0;if(this.interactiveController.on(n.playerChanged,w=>{if(!this.videoConfig)return;this.videoConfig.videos[this.currentPlayingVideoIndex]={...w.config,title:a?.title||w.config.title};let g=h?this.videoConfig.autoplay:!0;this.createPlayerWithCurrentVideo(w.player,g),h&&(h=!1)}),this.interactiveController.on(n.interactives,({type:w,actionType:g})=>{if(!this.store)return;let C=p.getValue();if(w==="action-choice"&&g==="setRandomBranch"&&(this.store.state.graphIsOpened$.set(!1),this.store.ui.controls.disabledControls$.remove(Zl)),w==="action-choice-canceled"){let b=Je(this.store.state.isPlaying$)||C;if(this.videoConfig?.isMobile&&b){this.store.ui.interactiveHideMobileControls.set(!0);return}this.videoConfig?.callbacks.onDisabledInteractiveClick?.()}}),await this.interactiveController.setManifest(this.videoConfig.interactiveData.manifest),this.videoConfig?.callbacks?.onInteractiveHistoryChanged){let w=this.interactiveController.getHistoryState();this.subscription.add(w.history$.subscribe(g=>{g.length&&this.videoConfig?.callbacks?.onInteractiveHistoryChanged?.(g)}))}this.uiConfig.features.interactiveTimeIndicator&&this.subscription.add(this.interactiveController.events.noInteraction$.subscribe(()=>{this.microStoresRoot?.stores.showInteractiveTimeIndicatorTooltip$.set(!0,!0),this.videoConfig?.callbacks.onInteractiveTimeIndicatorClick?.()})),this.interactiveController.on(n.errors,w=>{this.log({message:w.toString()})})}catch(i){this.log({message:i.message})}}initPlayer(i,n={}){if(!Array.isArray(i.videos)||i.videos.length===0&&!i.interactiveData)throw new Error("empty videos");this.videoConfig=as(S8,h8(i,o=>o instanceof HTMLElement?o:void 0)),this.uiConfig=Hc(n.ui??{}),this.coreConfig=n.core??{configName:[]},this.statisticsConfig=n.statistics??{},this.sentry={config:this.uiConfig.sentry??{}},Tc(this.videoConfig.isMediaSessionEnabled)&&(this.uiConfig.features.mediaSession=this.videoConfig.isMediaSessionEnabled??!0),Tc(this.videoConfig.isPictureInPictureEnabled)&&(this.uiConfig.features.pip=this.uiConfig.features.pip??this.videoConfig.isPictureInPictureEnabled??!0,this.uiConfig.features.dpip=this.uiConfig.features.dpip??this.videoConfig.isPictureInPictureEnabled??!0),this.videoConfig.isMobile=this.uiConfig.isMobile??this.videoConfig.isMobile,this.videoConfig.autoplay&&=this.uiConfig.features.autoplay,this.videoConfig.showAds=this.uiConfig.ads.enable??this.videoConfig.showAds,this.videoConfig.adsSlotId=this.uiConfig.ads.slot??this.videoConfig.adsSlotId,this.videoConfig.adsPreviewParam=this.uiConfig.ads.preview??this.videoConfig.adsPreviewParam,this.videoConfig.logoHidden=!(this.uiConfig.showLogo??!this.videoConfig.logoHidden),this.videoConfig.canRewindLive&&=this.uiConfig.features.liveRewind,this.videoConfig.supportLink=this.videoConfig.supportLink??this.uiConfig.supportLink,this.currentPlayingVideoIndex=0,this.needToRepeatPlaylist=this.videoConfig.repeat,this.uiConfig.features.pip&&(this.uiConfig.features.dpip?this.pictureInPictureApi=ss.getLatestSupportedVersion():this.pictureInPictureApi=new Vo),this.mediaSessionApi=this.uiConfig.features.mediaSession?new rs:void 0,this.annotationsApi=this.uiConfig.features.annotations?new us:void 0,this.annotationsApi&&!this.uiConfig.features.annotationsInside&&this.annotationsApi.init(this.rootContainer),this.svelteStubComponent?.$destroy(),this.svelteRootComponent?.$destroy(),this.isInited=!1,this.prevIsid=void 0,this.interactiveController&&(this.interactiveController.destroy(),this.interactiveController=void 0),i.interactiveData?this.initInteractives():this.createPlayer(i.videos[0]),Np(this.pictureInPictureApi)&&this.pictureInPictureApi.setPlayerDomElement(this.playerContainer,this._shadowRoot)}isOneVideoPlaylist(){return this.videoConfig?this.videoConfig.videos.length===1:!1}updateNextVideos(i){if(!this.videoConfig)return;this.log({message:`update next videos, videos: ${JSON.stringify(i)}`}),this.videoConfig.videos.splice(this.currentPlayingVideoIndex+1),this.videoConfig.videos.push(...i);let n=this.getNextVideoInfo();this.svelteRootComponent?.$set({showNextPrevButtons:this.needToShowNextPrevButtons(),nextButtonActive:this.isNextButtonActive(),prevButtonActive:this.isPrevButtonActive(),endScreenVideoTitle:n.nextVideoTitle,endScreenVideoThumb:n.nextVideoThumb,isOneVideoPlaylist:this.isOneVideoPlaylist()})}initMediaSession(){this.mediaSessionApi&&(this.unsubscribePlayerPhaseSubscription?.(),this.mediaSessionApi.clearSubscriptions(),this.unsubscribePlayerPhaseSubscription=this.store?.playerPhase.subscribe(i=>{i==="video"?this.setupMediaSessionForVideo():i==="ads"&&this.setupMediaSessionForAds()}))}setupMediaSessionForVideo(){if(!(!this.videoConfig||!this.mediaSessionApi))try{let{title:i,thumbUrl:n}={...this.videoConfig.videos[this.currentPlayingVideoIndex]},o=[["play",()=>this.play()],["pause",()=>this.pause()],["seekto",l=>this.seekTime(l.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:i,thumbUrl:n}),this.mediaSessionApi.updateActionHandlers(o),this.mediaSessionApi.attachToStore(this.store)}catch(i){this.log({message:i.message})}}setupMediaSessionForAds(){if(!(!this.videoConfig||!this.mediaSessionApi))try{let i="\u0420\u0435\u043A\u043B\u0430\u043C\u0430",n=[["play",()=>this.play()],["pause",()=>this.pause()]];this.mediaSessionApi.setMetaData({title:i}),this.mediaSessionApi.updateActionHandlers(n),this.mediaSessionApi.attachToStore(this.store)}catch(i){this.log({message:i.message})}}play(){this.isControlDisabled("PLAY_BUTTON")||this.store?.playerPhase.is("LiveWaitingStart")||this.store?.playerPhase.is("LiveWaitingRecover")||this.store?.playerPhase.is("LiveWaitingRecord")||(this.log({message:"play"}),this.svelteRootComponent?.play())}pause(){this.log({message:"pause"}),this.svelteRootComponent?.pause()}stop(){if(!this.videoConfig)return;this.log({message:"stop"}),this.svelteStubComponent?.$destroy(),this.mediaSessionApi?.destroy();let i=this.videoConfig.videos[0];i&&(this.svelteRootComponent?.$destroy(),this.createPlayer(i))}setMuted(i){this.log({message:`set muted, muted: ${i}`}),this.svelteRootComponent?.setMuted(i)}setVolume(i){this.log({message:`set volume, volume: ${i}`}),this.svelteRootComponent?.setVolume(i)}setRepeat(i){this.log({message:`set repeat, repeat: ${i}`}),this.needToRepeatPlaylist=i,this.svelteRootComponent?.$set({needToRepeatPlaylist:this.needToRepeatPlaylist,showNextPrevButtons:this.needToShowNextPrevButtons(),nextButtonActive:this.isNextButtonActive(),prevButtonActive:this.isPrevButtonActive()})}seekTime(i){this.isControlDisabled("TIMELINE")||(this.log({message:`seek time, time: ${i}`}),this.svelteRootComponent?.seekTime(i))}seekEpisodeStartTime(i){this.log({message:`seek episode start time, time: ${i}`}),this.svelteRootComponent?.seekEpisodeStartTime(i)}returnFocusToEpisodes(){this.log({message:"return focus to episodes button"}),this.svelteRootComponent?.returnFocusToEpisodes()}setPlaybackRate(i){this.log({message:`set playback rate to: ${i}`}),this.svelteRootComponent?.setPlaybackRate(i)}setAutoQualityLimits(i){this.log({message:`set auto quality limitation. Max: ${i.max??"none"}. Min: ${i.min??"none"}`}),this.svelteRootComponent?.setAutoQualityLimits(i)}addLanguage(i){this.store?.actions.internal.addLanguage(i)}async setLanguage(i){await this.store?.actions.internal.setLanguage(i)}setLiveStart(i){this.log({message:"live started"}),this.store?.actions.internal.setLiveWaitingRecover(!1),this.store?.actions.internal.setLiveWaitingStart(!1),this.svelteRootComponent?.$destroy(),this.createPlayer(i,{autoplay:!0})}setLiveWaitingRecover(){this.log({message:"live waiting"}),this.store?.actions.internal.setLiveWaitingRecover(!0),this.store?.destroy()}setLiveWaitingRecord(){this.log({message:"post live"}),this.store?.actions.internal.setLiveWaitingRecord(!0),this.store?.destroy()}setLiveEnd(i){this.log({message:"live ended"}),this.store?.actions.internal.setLiveWaitingRecover(!1),this.store?.actions.internal.setLiveWaitingRecord(!1),this.svelteRootComponent?.$destroy(),this.createPlayer(i,{autoplay:!1})}getDeviceId(){return this.statistics?.oneStat.getDeviceId()??void 0}replayInteractiveVideo(){this.interactiveController&&this.interactiveController.setChapter()}async replayInteractiveChapter(i){if(this.interactiveController&&this.store?.state.positionExact$){let{EVENT_NAMES:n}=await import("@vkontakte/videoplayer-interactive"),o=Je(this.store.state.positionExact$),r=Je(this.store.state.interactiveEpisodes$).find(s=>!s.completed);this.interactiveController.once(n.playerChanged,()=>{r&&o>=r.time?this.seekTime(r.time):this.seekTime(o),i?.()});let a=this.interactiveController.getCurrentChapter();await this.interactiveController.setChapter({chapterId:a.chapter.id,pushToHistory:!1})}}showInteractiveIndicatorTooltip(i,n=!1){this.microStoresRoot?.stores.showInteractiveTimeIndicatorTooltip$.set(i,n)}switchToActiveLive(){this.store?.actions.internal.switchToActiveLive()}updateStatContext(i){this.statistics&&this.statistics.oneStat.updateContext(i)}};import{InterfaceLanguage as eO,VKNumericLanguage as tO,loadVKLangPack as iO}from"@vkontakte/videoplayer-shared";import{VideoQuality as oO,VideoFormat as lO}from"@vkontakte/videoplayer-core";var XN=()=>{window.customElements.define("vk-video-player",fs)};export{Ao as GridTypes,eO as InterfaceLanguage,il as VERSION,tO as VKNumericLanguage,lO as VideoFormat,oO as VideoQuality,iO as loadVKLangPack,XN 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 U6(t){let e,i,n;function o(r){t[61](r)}let l={store:t[0],uiConfig:t[35],title:t[1],thumbUrl:t[2],interactiveContainer:t[3],live:t[4],autoplay:t[5],canRewindLive:t[6],showAds:t[7],adsSlotId:t[8],adsParams:t[9],adsPreviewParam:t[10],duration:t[11],logoClickable:t[12],logoHidden:t[13],logoTargetUrl:t[36],showNextPrevButtons:t[15],nextButtonActive:t[16],prevButtonActive:t[17],endScreenVideoTitle:t[18],endScreenVideoThumb:t[19],isOneVideoPlaylist:t[20],supportLink:t[21],shadowRootContainer:t[22],outerContainerRef:t[23],fullScreenTarget:t[24],showMiniTimer:t[25],playerStarted:t[34],playNextVideo:t[26],playPrevVideo:t[27],repeatPlaylist:t[28],seekToInteractive:t[29],toggleGraph:t[30],playPrevChapter:t[31],firstStart:t[38]};return t[33]!==void 0&&(l.videoContainer=t[33]),e=new up({props:l}),be.push(()=>Oe(e,"videoContainer",o)),{c(){V(e.$$.fragment)},m(r,a){A(e,r,a),n=!0},p(r,a){let s={};a[0]&1&&(s.store=r[0]),a[0]&2&&(s.title=r[1]),a[0]&4&&(s.thumbUrl=r[2]),a[0]&8&&(s.interactiveContainer=r[3]),a[0]&16&&(s.live=r[4]),a[0]&32&&(s.autoplay=r[5]),a[0]&64&&(s.canRewindLive=r[6]),a[0]&128&&(s.showAds=r[7]),a[0]&256&&(s.adsSlotId=r[8]),a[0]&512&&(s.adsParams=r[9]),a[0]&1024&&(s.adsPreviewParam=r[10]),a[0]&2048&&(s.duration=r[11]),a[0]&4096&&(s.logoClickable=r[12]),a[0]&8192&&(s.logoHidden=r[13]),a[0]&32768&&(s.showNextPrevButtons=r[15]),a[0]&65536&&(s.nextButtonActive=r[16]),a[0]&131072&&(s.prevButtonActive=r[17]),a[0]&262144&&(s.endScreenVideoTitle=r[18]),a[0]&524288&&(s.endScreenVideoThumb=r[19]),a[0]&1048576&&(s.isOneVideoPlaylist=r[20]),a[0]&2097152&&(s.supportLink=r[21]),a[0]&4194304&&(s.shadowRootContainer=r[22]),a[0]&8388608&&(s.outerContainerRef=r[23]),a[0]&16777216&&(s.fullScreenTarget=r[24]),a[0]&33554432&&(s.showMiniTimer=r[25]),a[1]&8&&(s.playerStarted=r[34]),a[0]&67108864&&(s.playNextVideo=r[26]),a[0]&134217728&&(s.playPrevVideo=r[27]),a[0]&268435456&&(s.repeatPlaylist=r[28]),a[0]&536870912&&(s.seekToInteractive=r[29]),a[0]&1073741824&&(s.toggleGraph=r[30]),a[1]&1&&(s.playPrevChapter=r[31]),!i&&a[1]&4&&(i=!0,s.videoContainer=r[33],Ne(()=>i=!1)),e.$set(s)},i(r){n||(d(e.$$.fragment,r),n=!0)},o(r){_(e.$$.fragment,r),n=!1},d(r){L(e,r)}}}function K6(t){let e,i,n;function o(r){t[60](r)}let l={store:t[0],uiConfig:t[35],thumbUrl:t[2],interactiveContainer:t[3],live:t[4],autoplay:t[5],canRewindLive:t[6],showAds:t[7],adsSlotId:t[8],adsParams:t[9],adsPreviewParam:t[10],duration:t[11],logoClickable:t[12],logoHidden:t[13],logoTargetUrl:t[36],showNextPrevButtons:t[15],nextButtonActive:t[16],prevButtonActive:t[17],endScreenVideoTitle:t[18],endScreenVideoThumb:t[19],isOneVideoPlaylist:t[20],supportLink:t[21],shadowRootContainer:t[22],outerContainerRef:t[23],fullScreenTarget:t[24],showMiniTimer:t[25],playerStarted:t[34],playNextVideo:t[26],playPrevVideo:t[27],repeatPlaylist:t[28],seekToInteractive:t[29],toggleGraph:t[30],playPrevChapter:t[31],firstStart:t[38],seekTime:t[32]};return t[33]!==void 0&&(l.videoContainer=t[33]),e=new Ep({props:l}),be.push(()=>Oe(e,"videoContainer",o)),{c(){V(e.$$.fragment)},m(r,a){A(e,r,a),n=!0},p(r,a){let s={};a[0]&1&&(s.store=r[0]),a[0]&4&&(s.thumbUrl=r[2]),a[0]&8&&(s.interactiveContainer=r[3]),a[0]&16&&(s.live=r[4]),a[0]&32&&(s.autoplay=r[5]),a[0]&64&&(s.canRewindLive=r[6]),a[0]&128&&(s.showAds=r[7]),a[0]&256&&(s.adsSlotId=r[8]),a[0]&512&&(s.adsParams=r[9]),a[0]&1024&&(s.adsPreviewParam=r[10]),a[0]&2048&&(s.duration=r[11]),a[0]&4096&&(s.logoClickable=r[12]),a[0]&8192&&(s.logoHidden=r[13]),a[0]&32768&&(s.showNextPrevButtons=r[15]),a[0]&65536&&(s.nextButtonActive=r[16]),a[0]&131072&&(s.prevButtonActive=r[17]),a[0]&262144&&(s.endScreenVideoTitle=r[18]),a[0]&524288&&(s.endScreenVideoThumb=r[19]),a[0]&1048576&&(s.isOneVideoPlaylist=r[20]),a[0]&2097152&&(s.supportLink=r[21]),a[0]&4194304&&(s.shadowRootContainer=r[22]),a[0]&8388608&&(s.outerContainerRef=r[23]),a[0]&16777216&&(s.fullScreenTarget=r[24]),a[0]&33554432&&(s.showMiniTimer=r[25]),a[1]&8&&(s.playerStarted=r[34]),a[0]&67108864&&(s.playNextVideo=r[26]),a[0]&134217728&&(s.playPrevVideo=r[27]),a[0]&268435456&&(s.repeatPlaylist=r[28]),a[0]&536870912&&(s.seekToInteractive=r[29]),a[0]&1073741824&&(s.toggleGraph=r[30]),a[1]&1&&(s.playPrevChapter=r[31]),!i&&a[1]&4&&(i=!0,s.videoContainer=r[33],Ne(()=>i=!1)),e.$set(s)},i(r){n||(d(e.$$.fragment,r),n=!0)},o(r){_(e.$$.fragment,r),n=!1},d(r){L(e,r)}}}function W6(t){let e,i,n,o,l=[K6,U6],r=[];function a(s,u){return s[14]?0:1}return i=a(t,[-1,-1,-1]),n=r[i]=l[i](t),{c(){e=T("div"),n.c(),c(e,"class","root svelte-167r2e3")},m(s,u){S(s,e,u),r[i].m(e,null),o=!0},p(s,u){let f=i;i=a(s,u),i===f?r[i].p(s,u):(me(),_(r[f],1,1,()=>{r[f]=null}),pe(),n=r[i],n?n.p(s,u):(n=r[i]=l[i](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),r[i].d()}}}function j6(t,e,i){let n,{sources:o}=e,{store:l}=e,{microStoresRoot:r}=e,{videoConfig:a}=e,{uiConfig:s}=e,{title:u}=e,{thumbUrl:f}=e,{interactiveContainer:p}=e,{subtitles:h}=e,{live:w}=e,{preload:g}=e,{autoplay:C}=e,{volume:b=void 0}=e,{muted:E=void 0}=e,{fromTime:v}=e,{canRewindLive:y}=e,{showAds:P}=e,{adsSlotId:W=void 0}=e,{adsParams:B=void 0}=e,{adsPreviewParam:O=void 0}=e,{duration:ne=void 0}=e,{logoClickable:ge}=e,{logoHidden:G}=e,{isMobile:X}=e,{showNextPrevButtons:ae=!1}=e,{nextButtonActive:j=!1}=e,{prevButtonActive:z=!1}=e,{endScreenVideoTitle:Q=void 0}=e,{endScreenVideoThumb:$=void 0}=e,{isOneVideoPlaylist:K=!1}=e,{supportLink:Y}=e,{shadowRootContainer:ie=void 0}=e,{outerContainerRef:re=void 0}=e,{fullScreenTarget:Ve=void 0}=e,{failoverHosts:Xe=void 0}=e,{showMiniTimer:Se=!1}=e,{saveRate:Me}=e,{playNextVideo:Ke=vl}=e,{playPrevVideo:$e=vl}=e,{repeatPlaylist:ce=vl}=e,{seekToInteractive:he=vl}=e,{toggleGraph:at=vl}=e,{playPrevChapter:ke=vl}=e,{volumeMultiplier:Fe}=e,{subscribers:ft,stores:Qe}=r;Kc(s);let je=Bt(),Ze=s.logoLink,xe=l.ui.debugPanelVisible,x=l.ui.playerSize,De=l.state.isLive$;D(t,De,we=>i(63,n=we));let ze,fe=null,se=!1;l.getAdmanWrapper().init({switchFromAdsToVideo:l.actions.internal.switchFromAdsToVideo,switchFromVideoToAds:l.actions.internal.switchFromVideoToAds,setMuted:l.actions.external.setMuted},l.ads,{isMobile:l.ui.isMobile,mobileUnmuteButtonVisible:l.ui.mobileUnmuteButtonVisible,vsid:l.vsid}),$c(l,Qe);let nt=(we=!1)=>{i(34,se=!0),we?l.actions.external.firstStart(P):l.actions.internal.firstStart(P)};function de(we){let gt=o||we;gt&&l.initVideo({container:ze,sources:gt,failoverHosts:Xe,subtitles:h,volumeMultiplier:Fe});let St=O6.get(Il)==="true";xe.set(St),v>0&&l.actions.external.seekTime(v);let Xt=X?je.volumeDefault:b??Jl()??je.volumeDefault,Ct=E??pf();if(l.actions.external.setVolume(Xt),l.actions.external.setMuted(Ct),l.getAdmanWrapper().setInitialVolume(Ct?0:Xt),je.features.trafficSaving){let jt=hf();jt&&l.actions.internal.setTrafficSavingEnabled(jt)}if(je.features.saveRate&&Me){let jt=vf();jt&&!n&&l.actions.internal.setPlaybackRate(jt)}let Wt=ff(l.videoId);Wt&&l.actions.internal.setQuality(Wt),l.ui.isAutoplay.set(C),C?nt():g&&je.features.preload&&l.actions.internal.preload()}let lt=we=>{if(window.ResizeObserver){let gt,St;fe=new ResizeObserver(F6(Xt=>{let Ct=Xt[0];if(Ct){if(Ct.contentBoxSize){let Wt=Array.isArray(Ct.contentBoxSize)?Ct.contentBoxSize[0]:Ct.contentBoxSize;gt=Wt.inlineSize,St=Wt.blockSize}else Ct.contentRect&&(gt=Ct.contentRect.width,St=Ct.contentRect.height);x.set({width:gt,height:St})}},300)),fe.observe(we)}x.set({width:we.clientWidth,height:we.clientHeight})};It(()=>{lt(ze);let we=ft.map(St=>St.init({store:l,microStores:Qe,config:a}));if(w?.status==="upcoming"){l.actions.internal.setLiveWaitingStart(!0);return}if(w?.status==="waiting"){l.actions.internal.setLiveWaitingRecover(!0);return}if((w?.status==="finished"||w?.status==="postlive")&&!Object.keys(o||[]).length){l.actions.internal.setLiveWaitingRecord(!0);return}return de(),()=>{fe?.disconnect(),we.forEach(St=>St.unsubscribe()),l.destroy()}});function rt(){se?l.actions.external.play():nt(!0)}function dt(){l.actions.external.pause()}function yt(we){X||l.actions.external.setMuted(we)}function Et(we){X||we>=0&&we<=1&&l.actions.external.setVolume(we)}function Ye(we){l.actions.internal.seekTime(we,z6.UNKNOWN)}function Kt(we){l.actions.external.seekEpisodeStartTime(we)}function qt(){l.actions.external.returnFocusToEpisodes()}function kt(we){l.actions.external.setPlaybackRate(we)}function ui(we){l.actions.external.setAutoQualityLimits(we)}function st(we){ze=we,i(33,ze)}function wt(we){ze=we,i(33,ze)}return t.$$set=we=>{"sources"in we&&i(39,o=we.sources),"store"in we&&i(0,l=we.store),"microStoresRoot"in we&&i(40,r=we.microStoresRoot),"videoConfig"in we&&i(41,a=we.videoConfig),"uiConfig"in we&&i(42,s=we.uiConfig),"title"in we&&i(1,u=we.title),"thumbUrl"in we&&i(2,f=we.thumbUrl),"interactiveContainer"in we&&i(3,p=we.interactiveContainer),"subtitles"in we&&i(43,h=we.subtitles),"live"in we&&i(4,w=we.live),"preload"in we&&i(44,g=we.preload),"autoplay"in we&&i(5,C=we.autoplay),"volume"in we&&i(45,b=we.volume),"muted"in we&&i(46,E=we.muted),"fromTime"in we&&i(47,v=we.fromTime),"canRewindLive"in we&&i(6,y=we.canRewindLive),"showAds"in we&&i(7,P=we.showAds),"adsSlotId"in we&&i(8,W=we.adsSlotId),"adsParams"in we&&i(9,B=we.adsParams),"adsPreviewParam"in we&&i(10,O=we.adsPreviewParam),"duration"in we&&i(11,ne=we.duration),"logoClickable"in we&&i(12,ge=we.logoClickable),"logoHidden"in we&&i(13,G=we.logoHidden),"isMobile"in we&&i(14,X=we.isMobile),"showNextPrevButtons"in we&&i(15,ae=we.showNextPrevButtons),"nextButtonActive"in we&&i(16,j=we.nextButtonActive),"prevButtonActive"in we&&i(17,z=we.prevButtonActive),"endScreenVideoTitle"in we&&i(18,Q=we.endScreenVideoTitle),"endScreenVideoThumb"in we&&i(19,$=we.endScreenVideoThumb),"isOneVideoPlaylist"in we&&i(20,K=we.isOneVideoPlaylist),"supportLink"in we&&i(21,Y=we.supportLink),"shadowRootContainer"in we&&i(22,ie=we.shadowRootContainer),"outerContainerRef"in we&&i(23,re=we.outerContainerRef),"fullScreenTarget"in we&&i(24,Ve=we.fullScreenTarget),"failoverHosts"in we&&i(48,Xe=we.failoverHosts),"showMiniTimer"in we&&i(25,Se=we.showMiniTimer),"saveRate"in we&&i(49,Me=we.saveRate),"playNextVideo"in we&&i(26,Ke=we.playNextVideo),"playPrevVideo"in we&&i(27,$e=we.playPrevVideo),"repeatPlaylist"in we&&i(28,ce=we.repeatPlaylist),"seekToInteractive"in we&&i(29,he=we.seekToInteractive),"toggleGraph"in we&&i(30,at=we.toggleGraph),"playPrevChapter"in we&&i(31,ke=we.playPrevChapter),"volumeMultiplier"in we&&i(50,Fe=we.volumeMultiplier)},t.$$.update=()=>{t.$$.dirty[0]&16385&&l.ui.isMobile.set(X)},[l,u,f,p,w,C,y,P,W,B,O,ne,ge,G,X,ae,j,z,Q,$,K,Y,ie,re,Ve,Se,Ke,$e,ce,he,at,ke,Ye,ze,se,je,Ze,De,nt,o,r,a,s,h,g,b,E,v,Xe,Me,Fe,de,rt,dt,yt,Et,Kt,qt,kt,ui,st,wt]}var vc=class extends H{constructor(e){super(),U(this,e,j6,W6,F,{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},H6,[-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]}},Ap=vc;function G6(t){let e,i,n,o=t[2].default,l=Ie(o,t,t[1],null),r=[{xmlns:"http://www.w3.org/2000/svg"},{width:"57"},{height:"60"},{fill:"none"},{"aria-hidden":"true"},{"data-testid":"stub-icon"},{role:"img"},t[0]],a={};for(let s=0;s<r.length;s+=1)a=ue(a,r[s]);return{c(){e=R("svg"),l&&l.c(),i=R("path"),c(i,"fill","currentColor"),c(i,"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"),ye(e,a)},m(s,u){S(s,e,u),l&&l.m(e,null),m(e,i),n=!0},p(s,[u]){l&&l.p&&(!n||u&2)&&Ae(l,o,s,s[1],n?Ee(o,s[1],u,null):Le(s[1]),null),ye(e,a=Be(r,[{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(l,s),n=!0)},o(s){_(l,s),n=!1},d(s){s&&k(e),l&&l.d(s)}}}function Q6(t,e,i){let{$$slots:n={},$$scope:o}=e;return t.$$set=l=>{i(0,e=ue(ue({},e),ve(l))),"$$scope"in l&&i(1,o=l.$$scope)},e=ve(e),[e,o,n]}var yc=class extends H{constructor(e){super(),U(this,e,Q6,G6,F,{})}},Lp=yc;function Y6(t){let e,i;return e=new Lp({props:{style:t[0]}}),{c(){V(e.$$.fragment)},m(n,o){A(e,n,o),i=!0},p(n,[o]){let l={};o&1&&(l.style=n[0]),e.$set(l)},i(n){i||(d(e.$$.fragment,n),i=!0)},o(n){_(e.$$.fragment,n),i=!1},d(n){L(e,n)}}}function Z6(t,e,i){let n,{isWhite:o=!1}=e;return t.$$set=l=>{"isWhite"in l&&i(1,o=l.isWhite)},t.$$.update=()=>{t.$$.dirty&2&&i(0,n=o?"color: #fff;":"color: #909499;")},[n,o]}var wc=class extends H{constructor(e){super(),U(this,e,Z6,Y6,F,{isWhite:1})}},Mp=wc;function X6(t){Te(t,"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 Vp(t){let e,i;return{c(){e=T("div"),i=Re(t[0]),c(e,"class","title svelte-1y9fytq")},m(n,o){S(n,e,o),m(e,i)},p(n,o){o&1&&Ge(i,n[0])},d(n){n&&k(e)}}}function Rp(t){let e,i;return e=new Mp({props:{isWhite:!!t[1]}}),{c(){V(e.$$.fragment)},m(n,o){A(e,n,o),i=!0},p(n,o){let l={};o&2&&(l.isWhite=!!n[1]),e.$set(l)},i(n){i||(d(e.$$.fragment,n),i=!0)},o(n){_(e.$$.fragment,n),i=!1},d(n){L(e,n)}}}function J6(t){let e,i,n,o,l=t[0]&&Vp(t),r=(!t[0]||!t[1])&&Rp(t);return{c(){e=T("div"),l&&l.c(),i=M(),r&&r.c(),c(e,"class","playerStub svelte-1y9fytq"),c(e,"style",n=t[1]?`background-image: url('${t[1]}')`:"")},m(a,s){S(a,e,s),l&&l.m(e,null),m(e,i),r&&r.m(e,null),o=!0},p(a,[s]){a[0]?l?l.p(a,s):(l=Vp(a),l.c(),l.m(e,i)):l&&(l.d(1),l=null),!a[0]||!a[1]?r?(r.p(a,s),s&3&&d(r,1)):(r=Rp(a),r.c(),d(r,1),r.m(e,null)):r&&(me(),_(r,1,1,()=>{r=null}),pe()),(!o||s&2&&n!==(n=a[1]?`background-image: url('${a[1]}')`:""))&&c(e,"style",n)},i(a){o||(d(r),o=!0)},o(a){_(r),o=!1},d(a){a&&k(e),l&&l.d(),r&&r.d()}}}function x6(t,e,i){let{title:n}=e,{thumbUrl:o}=e;return t.$$set=l=>{"title"in l&&i(0,n=l.title),"thumbUrl"in l&&i(1,o=l.thumbUrl)},[n,o]}var kc=class extends H{constructor(e){super(),U(this,e,x6,J6,F,{title:0,thumbUrl:1},X6)}},Bp=kc;import{cloneDeepWith as g8,InterfaceLanguage as b8,clientChecker as v8,isMobile as y8,isNonNullable as Ic,Logger as w8,Subscription as k8}from"@vkontakte/videoplayer-shared";import"@vkontakte/videoplayer-core";import{OneStat as S8}from"@vkontakte/videoplayer-statistics";import{Subscription as $6}from"@vkontakte/videoplayer-shared";var rs=class{constructor(){this.subscription=new $6}isSupported(){return"mediaSession"in navigator}setMetaData({title:e,artist:i="",thumbUrl:n=""}){this.isSupported()&&(navigator.mediaSession.metadata=new MediaMetadata({title:e,artist:i,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",i=>null],["seekbackward",i=>null],["seekforward",i=>null]];this.setActionHandlers(e)}setActionHandlers(e){if(this.isSupported())for(let[i,n]of e)try{navigator.mediaSession.setActionHandler(i,n)}catch{throw new Error(`The media session action "${i}" is not supported yet.`)}}attachToStore(e){!this.isSupported()||!e||this.subscription.add(e.state.positionExact$.subscribe(i=>{let n=Je(e.state.currentPlaybackRate$),o=Je(e.state.duration$);!isFinite(i)||!isFinite(o)||navigator.mediaSession.setPositionState({position:i,playbackRate:n,duration:o})}))}clearSubscriptions(){this.subscription.unsubscribe()}destroy(){this.resetActionHandlers(),this.clearSubscriptions()}};import{ValueSubject as l8,clientChecker as r8,detectEmbed as s8}from"@vkontakte/videoplayer-shared";function e8(t){let e,i,n,o,l,r=t[2].default,a=Ie(r,t,t[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"},t[0]],u={};for(let f=0;f<s.length;f+=1)u=ue(u,s[f]);return{c(){e=R("svg"),a&&a.c(),i=R("g"),n=R("path"),o=R("path"),c(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"),c(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"),c(i,"fill","#fff"),ye(e,u)},m(f,p){S(f,e,p),a&&a.m(e,null),m(e,i),m(i,n),m(i,o),l=!0},p(f,[p]){a&&a.p&&(!l||p&2)&&Ae(a,r,f,f[1],l?Ee(r,f[1],p,null):Le(f[1]),null),ye(e,u=Be(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"},p&1&&f[0]]))},i(f){l||(d(a,f),l=!0)},o(f){_(a,f),l=!1},d(f){f&&k(e),a&&a.d(f)}}}function t8(t,e,i){let{$$slots:n={},$$scope:o}=e;return t.$$set=l=>{i(0,e=ue(ue({},e),ve(l))),"$$scope"in l&&i(1,o=l.$$scope)},e=ve(e),[e,o,n]}var Sc=class extends H{constructor(e){super(),U(this,e,t8,e8,F,{})}},qp=Sc;function i8(t){Te(t,"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 n8(t){let e,i,n,o,l,r,a;return n=new qp({}),{c(){e=T("div"),i=T("div"),V(n.$$.fragment),o=M(),l=T("span"),r=Re(t[0]),c(i,"class","dummy-image svelte-1pbsod4"),q(i,"desktop",!t[1]),c(l,"class","title svelte-1pbsod4"),c(e,"class","player-pip-dummy svelte-1pbsod4"),q(e,"is-pip-api",t[2])},m(s,u){S(s,e,u),m(e,i),A(n,i,null),m(e,o),m(e,l),m(l,r),a=!0},p(s,[u]){(!a||u&2)&&q(i,"desktop",!s[1]),(!a||u&1)&&Ge(r,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 o8(t,e,i){let n,o,l=it(),r=!!l.webApi.pictureInPictureApi,a=l.interfaceLanguage$;D(t,a,f=>i(5,n=f));let s=l.ui.isMobile;D(t,s,f=>i(1,o=f));let u;return t.$$.update=()=>{t.$$.dirty&32&&i(0,u=n&&N("pip_dummy_title"))},[u,o,r,a,s,n]}var Cc=class extends H{constructor(e){super(),U(this,e,o8,n8,F,{},i8)}},Dp=Cc;var a8=460,u8=280,Nl=class{constructor(){this.info={isActive$:new l8(!1),type:1}}isSupported(){let{isEmbed:e}=s8();return"documentPictureInPicture"in window&&!r8.isYandex&&!e}isActive(){return this.isSupported()&&!!documentPictureInPicture.window}setPlayerDomElement(e,i){this.playerDomElement=e,this.playerParentShadowRoot=i}setContext(e){this.svelteContext=e}async request(){if(!this.isSupported()||!this.playerDomElement||!this.playerParentShadowRoot)return;this.pipWindow=await documentPictureInPicture.requestWindow({width:a8,height:u8,copyStyleSheets:!0}),this.pipWindow.document.body.style.margin="0";let e=[...this.playerParentShadowRoot.styleSheets].map(l=>[...l.cssRules].map(r=>r.cssText).join(" ")).filter(Boolean).join(`
53
+ `),i=document.createElement("style");i.textContent=e;let n=this.createStretchedContainer(),o=n.attachShadow({mode:"open"});o.append(i),o.append(this.playerDomElement),this.playerDummyElement=new Dp({target:this.playerParentShadowRoot,context:this.svelteContext}),this.pipWindow?.document.body.append(n),this.info.isActive$.next(!0),this.pipWindow?.addEventListener("unload",l=>{!this.playerDomElement||!this.playerParentShadowRoot||!this.playerDummyElement||(this.playerDummyElement.$destroy(),this.playerParentShadowRoot.append(this.playerDomElement),this.info.isActive$.next(!1))})}async remove(){return new Promise(e=>{documentPictureInPicture.window?.close(),e()})}async dispose(){await this.remove()}createStretchedContainer(){let e=document.createElement("div");return e.style.width="100%",e.style.height="100%",e}};function Np(t){return t instanceof Nl}var ss=class{static getLatestSupportedVersion(){let e=new Ro,i=new Nl;if(i.isSupported())return i;if(e.isSupported())return e}};function as(t,e){let i=new Set([...Object.keys(t),...Object.keys(e)]),n={};for(let o of i)n[o]=e[o]??t[o]??void 0;return n}var Op="Inner error. Unexpectedly root annotation container null reference exception",Fp="Annotation with such name already exists",zp="Annotation with such name does not exist";var yl=class extends Error{constructor(e){super(e),this.name="AnnotationError"}};import{observeElementSize as c8,Subscription as f8,throttleFn as d8}from"@vkontakte/videoplayer-shared";var m8="1",p8=100,us=class{constructor(){this.annotations=new Map;this.subscriptions=new f8}init(e){this.rootAnnotationsContainer=e;let i=d8(()=>{for(let n of this.annotations.values())this.isElementExceedsBoundaries(n,this.playerSize.width,this.playerSize.height)?n.style.visibility="hidden":n.style.visibility="visible"},p8);this.subscriptions.add(c8(this.rootAnnotationsContainer).subscribe(({width:n,height:o})=>{this.playerSize={width:n,height:o},i()})),this.mutationObserver=new MutationObserver(i),this.mutationObserver.observe(this.rootAnnotationsContainer,{attributes:!0,childList:!0,subtree:!0,characterData:!0})}add(e,i){if(!this.rootAnnotationsContainer)throw new yl(Op);if(this.annotations.has(e))throw new yl(Fp);i.style.zIndex=i.style.zIndex??m8,i.style.position="absolute",this.rootAnnotationsContainer.append(i),this.annotations.set(e,i)}get(e){let i=this.annotations.get(e);if(!i)throw new yl(zp);return i}remove(e){let i=this.get(e);this.annotations.delete(e)&&i.remove()}clear(){for(let e in this.annotations.keys())this.remove(e)}destroy(){this.annotations.clear(),this.subscriptions.unsubscribe(),this.mutationObserver.disconnect(),this.rootAnnotationsContainer=null}isElementExceedsBoundaries(e,i,n){let o=e.offsetTop,l=e.offsetLeft,r=e.offsetWidth,a=e.offsetHeight;return o<0||l<0||l+r>i||o+a>n}registryRootContainer(e){}addLayer(e){return document.createElement("div")}getLayer(e){}removeLayer(e){}clearLayer(e){}detach(){}reattach(){}};import{assertNonNullable as Tc,Subscription as _8}from"@vkontakte/videoplayer-shared";var Jn=class{init({store:e,microStores:i,config:n}){return Tc(e),Tc(i),Tc(n),this.subscription=new _8,this.subscription}};var Ol=class extends Jn{constructor(){super(...arguments);this.stateName="fakeIsPlaying$";this.state$={...qe(null),toggle:()=>this.state$.update(i=>!i)}}init(i){let n=super.init(i),{isInteractiveExpectation$:o}=i.store.state;return n.add(o.subscribe(l=>{this.state$.set(l?!0:null)})),n}};var Fl=class extends Jn{constructor(){super(...arguments);this.stateName="interactiveControlsOpacity$";this.state$={...qe(null),toggle:()=>this.state$.update(i=>!i)}}init(i){let n=super.init(i),{microStores:o,store:l}=i,{fakeIsPlaying$:r}=o,{isInteractiveExpectation$:a,isPlaying$:s}=l.state,{controlsVisible:u,isMobile:f}=l.ui,p=Je(f),h=()=>p&&Je(u);return n.add(u.subscribe(w=>{if(!p)return;let g=Je(r);Je(s)?this.state$.set(w):g!==null&&this.state$.set(!g||w)})),n.add(s.subscribe(w=>{this.state$.set(!w||h())})),n.add(r.subscribe(w=>{if(w===null)return;let g=Je(a);if(h()){this.state$.set(!0);return}g&&this.state$.set(!w)})),n}};var zl=class extends Jn{constructor(){super(...arguments);this.stateName="seekToInteractiveDisabledTooltip$";this.state$=qe("tooltip_chapter_without_interactive")}init(i){let n=super.init(i),{store:o}=i;return n.add(o.state.interactiveEpisodes$.subscribe(l=>{l.length&&(l.every(r=>r.completed)?this.state$.set("tooltip_interactive_of_chapter_completed"):this.state$.set("tooltip_disabled_when_interactive"))})),n}};import{combine as h8}from"@vkontakte/videoplayer-shared";var Pc=qe(!1),cs=null,Hl=class extends Jn{constructor(){super(...arguments);this.stateName="showInteractiveTimeIndicatorTooltip$";this.state$={...Pc,set:(i,n=!1)=>{i!==Je(Pc)&&(this.clearTimeout(),Pc.set(i),!i&&cs&&(cs=!1),i&&n&&(this.timeout=setTimeout(()=>{this.state$.set(!1)},3e3)))},clearTimeout:()=>this.clearTimeout()}}init(i){let n=super.init(i),{store:o,config:l}=i,{isInteractiveTime$:r,isPlaying$:a}=o.state,s=o.ui.controlsVisible,{interactiveTimeIndicator:u}=o.ui.controls;n.add(s.subscribe(p=>{Je(r)&&p&&this.state$.set(!1)}));let f=l?.interactiveData||{tooltipHelpHintActive:!1};return n.add(h8({isPlaying$:a,isInteractiveTime$:r,interactiveTimeIndicator:u}).subscribe(({isPlaying$:p,isInteractiveTime$:h,interactiveTimeIndicator:w})=>{if(!(!p||!w?.isDisplayed)){if(!h)return this.state$.set(!1);f.tooltipHelpHintActive&&cs===null&&(cs=!0,f.tooltipHelpHintActive=!1,this.state$.set(!0),o.callbacks?.onInteractiveTimeIndicatorHintDeactivated?.())}})),n}clearTimeout(){window.clearTimeout(this.timeout)}};var Hp=()=>[Ol,Fl,zl,Hl].reduce(({subscribers:t,stores:e},i)=>{let n=new i;return{subscribers:[...t,n],stores:{...e,[n.stateName]:n.state$}}},{subscribers:[],stores:{}});var C8={preload:!0,autoplay:!1,repeat:!1,fromTime:0,canRewindLive:!0,showAds:!1,interfaceLanguage:b8.RU,isCyrillicRelatedInterface:!0,logoClickable:!1,logoHidden:!1,isMobile:y8(),isMediaSessionEnabled:!0,isPictureInPictureEnabled:!0,isAudioDisabled:!1,callbacks:{uiInfo:{}},tuningConfig:{configName:[]},saveRate:!0,volumeMultiplier:1},fs=class extends HTMLElement{constructor(){super();this.currentPlayingVideoIndex=0;this.needToRepeatPlaylist=!1;this.videoConfig=void 0;this.pictureInPictureApi=void 0;this.mediaSessionApi=void 0;this.unsubscribePlayerPhaseSubscription=void 0;this.annotationsApi=void 0;this.prevIsid=void 0;this.isInited=!1;this.createOneStat=(i,n={})=>{let{albumId:o,statPlace:l,statUserSalt:r,statTrackCode:a,refreshStatAuthToken:s,autoplay:u,isMobile:f,refDomain:p,deviceId:h,interactiveData:w}=as(this.videoConfig,n),g=w?.projectInfo?.pid,{unitedVideoId:C,isClip:b=!1}=i;if(this.uiConfig.features.statistics&&C)return new S8({movieId:C,albumId:o,place:l,trackCode:a,autoplay:(u&&!this.interactiveController)??!1,mobile:f,clip:b,refDomain:p,deviceId:h,...g&&!this.isInited&&{projectId:Number(g)}},{refreshAuthToken:s,userSalt:r,config:this.statisticsConfig,...this.interactiveController&&{useIsid:!0,isid:this.prevIsid}})};this.logger=new w8,this.log=this.logger.createComponentLog("VKVideoPlayer"),this.subscription=new k8,this.graphMadePause=!1,window?.videoPlayerConfig?.debugLogs&&this.subscription.add(this.logger.log$.subscribe(i=>{console.log("%c player web component ","background:#77dd77;",`${i.component}`,i.message)}))}connectedCallback(){if(this.isInited)return;this.initPlayerRootContainers();let i=this.getAttribute("stub-title")??void 0,n=this.getAttribute("stub-thumb-url")??void 0;this.svelteStubComponent=new Bp({target:this.playerContainer,props:{title:i,thumbUrl:n}})}disconnectedCallback(){this.annotationsApi?.destroy(),this.mediaSessionApi?.destroy(),this.svelteRootComponent?.$destroy(),this.svelteStubComponent?.$destroy(),this.subscription.unsubscribe(),this.unsubscribePlayerPhaseSubscription?.(),this.interactiveController?.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(i){return this.store?.ui.controls.disabledControls$?.includes(i)||!1}getNextVideoInfo(){if(!this.videoConfig)return{nextVideoTitle:void 0,nextVideoThumb:void 0};let i=this.videoConfig.videos[this.currentPlayingVideoIndex+1]||{};return{nextVideoTitle:i.title,nextVideoThumb:i.thumbUrl}}createPlayer(i,n={},o){if(!this.videoConfig)return;let{albumId:l,statPlace:r,statAuthToken:a,preload:s,autoplay:u,volume:f,muted:p,fromTime:h,canRewindLive:w,supportLink:g,showAds:C,adsSlotId:b,adsParams:E={},adsPreviewParam:v,interfaceLanguage:y,isCyrillicRelatedInterface:P,logoClickable:W,logoHidden:B,isMobile:O,isAudioDisabled:ne,isLiveCatchUpMode:ge,fullScreenTarget:G,failoverHosts:X,canDownload:ae,callbacks:j,interactiveData:z,showThumbTimer:Q,additionalButtons:$=[],repeat:K,saveRate:Y,volumeMultiplier:ie}=as(this.videoConfig,n),{sources:re,title:Ve,thumbUrl:Xe,unitedVideoId:Se,isClip:Me=!1,duration:Ke,adsParams:$e={},videoEpisodes:ce,previewThumbsData:he,subtitles:at,live:ke}=i,Fe={...E,...$e},ft=this.getNextVideoInfo(),Qe={sources:re,title:Ve,thumbUrl:Xe,subtitles:at,unitedVideoId:Se,isClip:Me,live:ke,albumId:l,statPlace:r,autoplay:u,muted:p,volume:f,fromTime:h,canRewindLive:w,showAds:C,adsSlotId:b,adsParams:Fe,adsPreviewParam:v,duration:Ke,logoClickable:W,logoHidden:B,isMobile:O,repeat:K,showNextPrevButtons:this.needToShowNextPrevButtons(),nextButtonActive:this.isNextButtonActive(),prevButtonActive:this.isPrevButtonActive(),endScreenVideoTitle:ft.nextVideoTitle,endScreenVideoThumb:ft.nextVideoThumb,isOneVideoPlaylist:this.isOneVideoPlaylist()},je={pictureInPictureApi:this.pictureInPictureApi,annotationsApi:this.annotationsApi};this.log({message:`create player, props: ${JSON.stringify(Qe)}`});let Ze=this.interactiveController?.state.statistics$.getValue(),xe=Ze?.oneStat||this.createOneStat(i,n);xe&&(this.statistics=new Gr(xe,Ze?.statSubscription)),this.uiConfig.features.sentry&&this.uiConfig.sentry.dsn&&new Vo(this.uiConfig.sentry,{version:nl,env:Xl},{movieId:Se,albumId:l,place:r,autoplay:(u&&!this.interactiveController)??!1,mobile:O,clip:Me}),this.interactiveController&&(this.prevIsid??=this.statistics?.oneStat.isid$.getValue()),this.sentry={...this.sentry,...Vo.getInstance()};let De=!!z,ze=[],fe="tooltip_interactive_go_back_disabled_first";if(De&&this.interactiveController){let de=this.interactiveController.state.isInitialChapter$.getValue(),lt=this.interactiveController.getHistoryState();de&&ze.push("REPLAY_BUTTON"),this.interactiveController.getIsSeekable().getValue()||ze.push("SEEK_TO_INTERACTIVE_BUTTON"),lt.hasPrevChapter$.getValue()||(ze.push("PLAY_PREV_CHAPTER_BUTTON"),de||(lt.isGoBackLimited$.getValue()?fe="tooltip_interactive_go_back_disabled_limit":fe="tooltip_interactive_go_back_disabled"))}let se=()=>{this.isInited=!1,this.prevIsid=void 0;let de=o?.info.isEnded$.getValue()&&this.interactiveController?.state.isEndChapter$.getValue();j.onReplayInteractiveVideo&&!de?j.onReplayInteractiveVideo():this.replayInteractiveVideo()};this.store=dm({player:o,interfaceLanguage:y,isCyrillicRelatedInterface:P,videoId:Se,isClip:Me,isLiveCatchUpMode:ge,isAudioDisabled:ne,statAuthToken:a,callbacks:j,webApi:je,videoEpisodes:ce,previewThumbsData:he,canDownload:ae,uiConfig:this.uiConfig,coreConfig:this.coreConfig,disabledControls:ze,isInteractive:De,saveRate:Y,interactiveRanges$:this.interactiveController?.state.interactiveRanges$,isInteractiveTime$:this.interactiveController?.state.isInteractiveTime$,replayInteractive:se,playPrevChapterDisabledTooltip:fe,hasInteractiveBranches:!!this.interactiveController?.getChapterBranches()?.length,additionalButtons:this.uiConfig.features.additionalButtons?$:[],looped:K&&this.videoConfig.videos.length===1,statistics:this.statistics});let{stores:nt}=this.microStoresRoot=Hp();this.subscription.add(this.store.state.currentFormat$.subscribe(de=>j?.onCurrentFormatChanged?.(de))),this.subscription.add(nt.interactiveControlsOpacity$.subscribe(de=>{de!==null&&this?.interactiveController?.setDisabledControls(de)})),this.subscription.add(this.store.state.throughputEstimation$.subscribe(de=>j?.onThroughputEstimationChanged?.(de))),this.subscription.add(this.store.state.trafficSavingEnabled$.subscribe(de=>j?.onTrafficSavingEnabledChanged?.(de))),this.subscription.add(this.store.state.currentPlaybackRate$.subscribe(de=>j?.onCurrentPlaybackRateChanged?.(de))),this.subscription.add(this.store.state.volume$.subscribe(de=>j?.onVolumeChange?.(de))),this.subscription.add(this.store.state.muted$.subscribe(de=>de?j?.onMute?.():j?.onUnmute?.())),this.subscription.add(this.store.state.videoBitrate$.subscribe(de=>j?.onVideoBitrateChanged?.(de))),this.subscription.add(this.store.state.isInteractiveTime$.subscribe(de=>{let lt=this.store?.ui.controls.disabledControls$;lt&&(de&&!lt.includes(El)&&lt.add(El),de||lt.remove(El))})),this.subscription.add(this.store.ui.isFullscreen.subscribe(async de=>{if(!v8.isSamsungBrowser||!de||!this.interactiveController)return;document.fullscreenElement===this.shadowRootContainer&&await this.replayInteractiveChapter(this.videoConfig?.callbacks.onExternalFullscreenExit)})),this.statistics&&this.subscription.add(this.statistics.oneStat.vsid$.subscribe(de=>j?.onVSIDChanged?.(de))),this.initMediaSession(),this.svelteRootComponent=new Ap({target:this.playerContainer,props:{interactiveContainer:this.interactiveContainer,sources:re,store:this.store,microStoresRoot:this.microStoresRoot,videoConfig:this.videoConfig,uiConfig:this.uiConfig,title:Ve,thumbUrl:Xe,subtitles:at,live:ke,preload:s,autoplay:u,muted:p,volume:f,fromTime:h,canRewindLive:w,supportLink:g,showAds:C,adsSlotId:b,adsParams:Fe,adsPreviewParam:v,duration:Ke,logoClickable:W,logoHidden:B,isMobile:O,failoverHosts:X,fullScreenTarget:G,saveRate:Y,shadowRootContainer:this.shadowRootContainer,showMiniTimer:Q,outerContainerRef:this.rootContainer,showNextPrevButtons:this.needToShowNextPrevButtons(),nextButtonActive:this.isNextButtonActive(),prevButtonActive:this.isPrevButtonActive(),endScreenVideoTitle:ft.nextVideoTitle,endScreenVideoThumb:ft.nextVideoThumb,isOneVideoPlaylist:this.isOneVideoPlaylist(),playNextVideo:()=>this.playNextVideo(),playPrevVideo:()=>this.playPrevVideo(),repeatPlaylist:()=>this.repeatPlaylist(),playPrevChapter:()=>this.playPrevChapter(),seekToInteractive:()=>this.seekToInteractive(),toggleGraph:()=>this.toggleGraph(),volumeMultiplier:ie}}),this.addPlayerInfoSubscriptions(),this.isInited||(this.isInited=!0,this.videoConfig?.callbacks?.onInited?.())}addPlayerInfoSubscriptions(){let i=this.store;if(!i)return;let n=this.videoConfig?.callbacks;n&&this.subscription.add(i.playerPhase.subscribe(l=>n.onPlayerPhaseChanged?.(l))).add(i.state.playbackState$.subscribe(l=>n.onPlaybackStateChanged?.(l))).add(i.state.isLive$.subscribe(l=>n.onIsLiveChanged?.(l))).add(i.state.isActiveLive$.subscribe(l=>n.onIsActiveLiveChanged?.(l))).add(i.state.isAudioAvailable$.subscribe(l=>n.onIsAudioAvailableChanged?.(l))).add(i.state.currentQuality$.subscribe(l=>n.onCurrentQualityChanged?.(l))).add(i.state.availableQualities$.subscribe(l=>n.onAvailableQualitiesChanged?.(l.map(({value:r})=>r).filter(r=>r!=="auto")))).add(i.state.availableAudioStreams$.subscribe(l=>{l.length>1&&n.onAudioLanguagesAvailable&&n.onAudioLanguagesAvailable()})).add(i.ui.isPictureInPictureActive$.subscribe(l=>l?n.onPiPEnter?.():n.onPiPExit?.()));let o=n?.uiInfo;o&&this.subscription.add(i.ui.controlsVisible.subscribe(l=>o.onControlsVisibleChanged?.(l))).add(i.ui.isMobile.subscribe(l=>o.onIsMobileChanged?.(l))).add(i.ui.playerSize.subscribe(l=>o.onPlayerSizeChanged?.(l))).add(i.ui.controls.prevButton.subscribe(l=>o.onPrevButtonChanged?.(l))).add(i.ui.controls.playButton.subscribe(l=>o.onPlayButtonChanged?.(l))).add(i.ui.controls.replayButton.subscribe(l=>o.onReplayButtonChanged?.(l))).add(i.ui.controls.nextButton.subscribe(l=>o.onNextButtonChanged?.(l))).add(i.ui.controls.playPrevChapterButton.subscribe(l=>o.onPlayPrevChapterChanged?.(l))).add(i.ui.controls.seekToInteractiveButton.subscribe(l=>o.onSeekToInteractiveButtonChanged?.(l))).add(i.ui.controls.interactiveGraphButton.subscribe(l=>o.onGraphButtonChanged?.(l))).add(i.ui.controls.liveButton.subscribe(l=>o.onLiveButtonChanged?.(l))).add(i.ui.controls.time.subscribe(l=>o.onTimeUpdateChanged?.(l))).add(i.ui.controls.episodes.subscribe(l=>o.onEpisodesChanged?.(l))).add(i.ui.controls.subtitles.subscribe(l=>o.onSubtitlesChanged?.(l))).add(i.ui.controls.settings.subscribe(l=>o.onSettingsChanged?.(l))).add(i.ui.controls.fullscreen.subscribe(l=>o.onFullscreenChanged?.(l))).add(i.ui.controls.chromecast.subscribe(l=>o.onChromecastChanged?.(l))).add(i.ui.controls.pip.subscribe(l=>o.onPipChanged?.(l))).add(i.ui.controls.vkLogo.subscribe(l=>o.onVkLogoChanged?.(l))).add(i.ui.controls.interactiveTimeIndicator.subscribe(l=>o.onInteractiveTimeIndicatorChanged?.(l))).add(i.ui.controls.timeline.subscribe(l=>o.onTimelineChanged?.(l)))}playNextVideo(){if(!this.videoConfig)return;let i=!0;if(this.videoConfig.callbacks?.onNextVideoClick)try{i=this.videoConfig.callbacks.onNextVideoClick()}catch{this.log({message:"onNextVideoClick callback failed to execute"})}i&&(this.currentPlayingVideoIndex++,this.currentPlayingVideoIndex>=this.videoConfig.videos.length&&(this.currentPlayingVideoIndex=0),this.log({message:`play next video, index: ${this.currentPlayingVideoIndex}`}),this.createPlayerWithCurrentVideo())}playPrevVideo(){if(!this.videoConfig)return;let i=!0;if(this.videoConfig.callbacks?.onPrevVideoClick)try{i=this.videoConfig.callbacks.onPrevVideoClick()}catch{this.log({message:"onPrevVideoClick callback failed to execute"})}i&&(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(i,n=!0){if(!this.videoConfig)return;let o=this.videoConfig.videos[this.currentPlayingVideoIndex];if(!o){this.log({message:"no next video"});return}this.isInited&&Ic(o.unitedVideoId)&&this.store.actions.internal.nextMovie(o.unitedVideoId),this.svelteRootComponent?.$destroy(),this.createPlayer(o,{autoplay:n,fromTime:0},i)}playPrevChapter(){this.interactiveController?.playPrevChapter()}seekToInteractive(){let i=this.interactiveController?.getNextInteractiveStartTime();typeof i=="number"&&this.seekTime(i/1e3)}toggleGraph(){if(!this.isInited)return;let i=this.store,{isEnded$:n,playbackState$:o,graphIsOpened$:l}=i.state,{disabledControls$:r}=i.ui.controls,a=Je(n),s=Je(o);Je(l)?(l.set(!1),this.interactiveController?.toggleGraphView(!1),r.remove(ws),!a&&this.graphMadePause&&this.play()):(this.graphMadePause=s==="playing",l.set(!0),this.interactiveController?.toggleGraphView(!0),r.add(ws),!a&&this.graphMadePause&&this.pause())}async initInteractives(){if(this.videoConfig?.interactiveData)try{let{Interactives:i,EVENT_NAMES:n,CustomError:o}=await import("@vkontakte/videoplayer-interactive");this.interactiveContainer=document.createElement("div"),this.interactiveContainer.classList.add("interactiveContainer");let l=this.store?.interfaceLanguage$,r=l?Je(l):this.videoConfig.interfaceLanguage,{projectInfo:a,initChapterId:s,historyApi:u,videoLoader:f}=this.videoConfig.interactiveData;this.interactiveController=new i({parentElement:this.interactiveContainer,fullscreenTargetElement:this.playerContainer,lang:r,graph:this.uiConfig.features.interactiveGraph,projectInfo:a,initChapterId:s,historyApi:u,vkVideoLoader:f,lastFrame:this.uiConfig.features.interactiveLastFrame,permanentTextControls:this.uiConfig.features.interactiveTextPermanent,initSeamless:!0,config:this.uiConfig.interactive,coreConfig:this.coreConfig,createOneStat:this.createOneStat});let{isInteractiveExpectation$:p}=this.interactiveController.state;this.uiConfig.features.seekToInteractive&&this.subscription.add(this.interactiveController.getIsSeekable().subscribe(w=>{if(!this.isInited)return;let g=this.store;w?g.ui.controls.disabledControls$.remove("SEEK_TO_INTERACTIVE_BUTTON"):g.ui.controls.disabledControls$.add("SEEK_TO_INTERACTIVE_BUTTON")})),this.subscription.add(p.subscribe(w=>{this.store&&this.store.state.isInteractiveExpectation$.set(w)}));let h=!0;if(this.interactiveController.on(n.playerChanged,w=>{if(!this.videoConfig)return;this.videoConfig.videos[this.currentPlayingVideoIndex]={...w.config,title:a?.title||w.config.title};let g=h?this.videoConfig.autoplay:!0;this.createPlayerWithCurrentVideo(w.player,g),h&&(h=!1)}),this.interactiveController.on(n.interactives,({type:w,actionType:g})=>{if(!this.store)return;let C=p.getValue();if(w==="action-choice"&&g==="setRandomBranch"&&(this.store.state.graphIsOpened$.set(!1),this.store.ui.controls.disabledControls$.remove(Zl)),w==="action-choice-canceled"){let b=Je(this.store.state.isPlaying$)||C;if(this.videoConfig?.isMobile&&b){this.store.ui.interactiveHideMobileControls.set(!0);return}this.videoConfig?.callbacks.onDisabledInteractiveClick?.()}}),await this.interactiveController.setManifest(this.videoConfig.interactiveData.manifest),this.videoConfig?.callbacks?.onInteractiveHistoryChanged){let w=this.interactiveController.getHistoryState();this.subscription.add(w.history$.subscribe(g=>{g.length&&this.videoConfig?.callbacks?.onInteractiveHistoryChanged?.(g)}))}this.uiConfig.features.interactiveTimeIndicator&&this.subscription.add(this.interactiveController.events.noInteraction$.subscribe(()=>{this.microStoresRoot?.stores.showInteractiveTimeIndicatorTooltip$.set(!0,!0),this.videoConfig?.callbacks.onInteractiveTimeIndicatorClick?.()})),this.interactiveController.on(n.errors,w=>{this.log({message:w.toString()})})}catch(i){this.log({message:i.message})}}initPlayer(i,n={}){if(!Array.isArray(i.videos)||i.videos.length===0&&!i.interactiveData)throw new Error("empty videos");this.videoConfig=as(C8,g8(i,o=>o instanceof HTMLElement?o:void 0)),this.uiConfig=Uc(n.ui??{}),this.coreConfig=n.core??{configName:[]},this.statisticsConfig=n.statistics??{},this.sentry={config:this.uiConfig.sentry??{}},Ic(this.videoConfig.isMediaSessionEnabled)&&(this.uiConfig.features.mediaSession=this.videoConfig.isMediaSessionEnabled??!0),Ic(this.videoConfig.isPictureInPictureEnabled)&&(this.uiConfig.features.pip=this.uiConfig.features.pip??this.videoConfig.isPictureInPictureEnabled??!0,this.uiConfig.features.dpip=this.uiConfig.features.dpip??this.videoConfig.isPictureInPictureEnabled??!0),this.videoConfig.isMobile=this.uiConfig.isMobile??this.videoConfig.isMobile,this.videoConfig.autoplay&&=this.uiConfig.features.autoplay,this.videoConfig.showAds=this.uiConfig.ads.enable??this.videoConfig.showAds,this.videoConfig.adsSlotId=this.uiConfig.ads.slot??this.videoConfig.adsSlotId,this.videoConfig.adsPreviewParam=this.uiConfig.ads.preview??this.videoConfig.adsPreviewParam,this.videoConfig.logoHidden=!(this.uiConfig.showLogo??!this.videoConfig.logoHidden),this.videoConfig.canRewindLive&&=this.uiConfig.features.liveRewind,this.videoConfig.supportLink=this.videoConfig.supportLink??this.uiConfig.supportLink,this.currentPlayingVideoIndex=0,this.needToRepeatPlaylist=this.videoConfig.repeat,this.uiConfig.features.pip&&(this.uiConfig.features.dpip?this.pictureInPictureApi=ss.getLatestSupportedVersion():this.pictureInPictureApi=new Ro),this.mediaSessionApi=this.uiConfig.features.mediaSession?new rs:void 0,this.annotationsApi=this.uiConfig.features.annotations?new us:void 0,this.annotationsApi&&!this.uiConfig.features.annotationsInside&&this.annotationsApi.init(this.rootContainer),this.svelteStubComponent?.$destroy(),this.svelteRootComponent?.$destroy(),this.isInited=!1,this.prevIsid=void 0,this.interactiveController&&(this.interactiveController.destroy(),this.interactiveController=void 0),i.interactiveData?this.initInteractives():this.createPlayer(i.videos[0]),Np(this.pictureInPictureApi)&&this.pictureInPictureApi.setPlayerDomElement(this.playerContainer,this._shadowRoot)}isOneVideoPlaylist(){return this.videoConfig?this.videoConfig.videos.length===1:!1}updateNextVideos(i){if(!this.videoConfig)return;this.log({message:`update next videos, videos: ${JSON.stringify(i)}`}),this.videoConfig.videos.splice(this.currentPlayingVideoIndex+1),this.videoConfig.videos.push(...i);let n=this.getNextVideoInfo();this.svelteRootComponent?.$set({showNextPrevButtons:this.needToShowNextPrevButtons(),nextButtonActive:this.isNextButtonActive(),prevButtonActive:this.isPrevButtonActive(),endScreenVideoTitle:n.nextVideoTitle,endScreenVideoThumb:n.nextVideoThumb,isOneVideoPlaylist:this.isOneVideoPlaylist()})}initMediaSession(){this.mediaSessionApi&&(this.unsubscribePlayerPhaseSubscription?.(),this.mediaSessionApi.clearSubscriptions(),this.unsubscribePlayerPhaseSubscription=this.store?.playerPhase.subscribe(i=>{i==="video"?this.setupMediaSessionForVideo():i==="ads"&&this.setupMediaSessionForAds()}))}setupMediaSessionForVideo(){if(!(!this.videoConfig||!this.mediaSessionApi))try{let{title:i,thumbUrl:n}={...this.videoConfig.videos[this.currentPlayingVideoIndex]},o=[["play",()=>this.play()],["pause",()=>this.pause()],["seekto",l=>this.seekTime(l.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:i,thumbUrl:n}),this.mediaSessionApi.updateActionHandlers(o),this.mediaSessionApi.attachToStore(this.store)}catch(i){this.log({message:i.message})}}setupMediaSessionForAds(){if(!(!this.videoConfig||!this.mediaSessionApi))try{let i="\u0420\u0435\u043A\u043B\u0430\u043C\u0430",n=[["play",()=>this.play()],["pause",()=>this.pause()]];this.mediaSessionApi.setMetaData({title:i}),this.mediaSessionApi.updateActionHandlers(n),this.mediaSessionApi.attachToStore(this.store)}catch(i){this.log({message:i.message})}}play(){this.isControlDisabled("PLAY_BUTTON")||this.store?.playerPhase.is("LiveWaitingStart")||this.store?.playerPhase.is("LiveWaitingRecover")||this.store?.playerPhase.is("LiveWaitingRecord")||(this.log({message:"play"}),this.svelteRootComponent?.play())}pause(){this.log({message:"pause"}),this.svelteRootComponent?.pause()}stop(){if(!this.videoConfig)return;this.log({message:"stop"}),this.svelteStubComponent?.$destroy(),this.mediaSessionApi?.destroy();let i=this.videoConfig.videos[0];i&&(this.svelteRootComponent?.$destroy(),this.createPlayer(i))}setMuted(i){this.log({message:`set muted, muted: ${i}`}),this.svelteRootComponent?.setMuted(i)}setVolume(i){this.log({message:`set volume, volume: ${i}`}),this.svelteRootComponent?.setVolume(i)}setRepeat(i){this.log({message:`set repeat, repeat: ${i}`}),this.needToRepeatPlaylist=i,this.svelteRootComponent?.$set({needToRepeatPlaylist:this.needToRepeatPlaylist,showNextPrevButtons:this.needToShowNextPrevButtons(),nextButtonActive:this.isNextButtonActive(),prevButtonActive:this.isPrevButtonActive()})}seekTime(i){this.isControlDisabled("TIMELINE")||(this.log({message:`seek time, time: ${i}`}),this.svelteRootComponent?.seekTime(i))}seekEpisodeStartTime(i){this.log({message:`seek episode start time, time: ${i}`}),this.svelteRootComponent?.seekEpisodeStartTime(i)}returnFocusToEpisodes(){this.log({message:"return focus to episodes button"}),this.svelteRootComponent?.returnFocusToEpisodes()}setPlaybackRate(i){this.log({message:`set playback rate to: ${i}`}),this.svelteRootComponent?.setPlaybackRate(i)}setAutoQualityLimits(i){this.log({message:`set auto quality limitation. Max: ${i.max??"none"}. Min: ${i.min??"none"}`}),this.svelteRootComponent?.setAutoQualityLimits(i)}addLanguage(i){this.store?.actions.internal.addLanguage(i)}async setLanguage(i){await this.store?.actions.internal.setLanguage(i)}setLiveStart(i){this.log({message:"live started"}),this.store?.actions.internal.setLiveWaitingRecover(!1),this.store?.actions.internal.setLiveWaitingStart(!1),this.svelteRootComponent?.$destroy(),this.createPlayer(i,{autoplay:!0})}setLiveWaitingRecover(){this.log({message:"live waiting"}),this.store?.actions.internal.setLiveWaitingRecover(!0),this.store?.destroy()}setLiveWaitingRecord(){this.log({message:"post live"}),this.store?.actions.internal.setLiveWaitingRecord(!0),this.store?.destroy()}setLiveEnd(i){this.log({message:"live ended"}),this.store?.actions.internal.setLiveWaitingRecover(!1),this.store?.actions.internal.setLiveWaitingRecord(!1),this.svelteRootComponent?.$destroy(),this.createPlayer(i,{autoplay:!1})}getDeviceId(){return this.statistics?.oneStat.getDeviceId()??void 0}replayInteractiveVideo(){this.interactiveController&&this.interactiveController.setChapter()}async replayInteractiveChapter(i){if(this.interactiveController&&this.store?.state.positionExact$){let{EVENT_NAMES:n}=await import("@vkontakte/videoplayer-interactive"),o=Je(this.store.state.positionExact$),r=Je(this.store.state.interactiveEpisodes$).find(s=>!s.completed);this.interactiveController.once(n.playerChanged,()=>{r&&o>=r.time?this.seekTime(r.time):this.seekTime(o),i?.()});let a=this.interactiveController.getCurrentChapter();await this.interactiveController.setChapter({chapterId:a.chapter.id,pushToHistory:!1})}}showInteractiveIndicatorTooltip(i,n=!1){this.microStoresRoot?.stores.showInteractiveTimeIndicatorTooltip$.set(i,n)}switchToActiveLive(){this.store?.actions.internal.switchToActiveLive()}updateStatContext(i){this.statistics&&this.statistics.oneStat.updateContext(i)}};import{InterfaceLanguage as iO,VKNumericLanguage as nO,loadVKLangPack as oO}from"@vkontakte/videoplayer-shared";import{VideoQuality as rO,VideoFormat as sO}from"@vkontakte/videoplayer-core";var xN=()=>{window.customElements.define("vk-video-player",fs)};export{Ao as GridTypes,iO as InterfaceLanguage,nl as VERSION,nO as VKNumericLanguage,sO as VideoFormat,rO as VideoQuality,oO as loadVKLangPack,xN as registerPlayerWebComponent};