@vkontakte/videoplayer 1.1.37-dev.aaebf6d2.0 → 1.1.38-beta.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/es2015.cjs.js +17 -17
- package/es2015.esm.js +17 -17
- package/es2018.cjs.js +17 -17
- package/es2018.esm.js +17 -17
- package/esnext.cjs.js +17 -17
- package/esnext.esm.js +17 -17
- package/evergreen.esm.js +17 -17
- package/package.json +11 -11
- package/types/VKVideoPlayer/index.d.ts +86 -0
- package/types/components/Ads/admanWrapper.d.ts +82 -0
- package/types/components/Ads/utils.d.ts +1 -0
- package/types/config.d.ts +118 -0
- package/types/constans/controls.d.ts +27 -0
- package/types/constans/debounce-timers.d.ts +1 -0
- package/types/constans/grid.d.ts +14 -0
- package/types/constans/index.d.ts +8 -0
- package/types/constans/interactives.d.ts +7 -0
- package/types/constans/keyboard.d.ts +51 -0
- package/types/constans/lang.d.ts +2 -0
- package/types/constans/storage-keys.d.ts +1 -0
- package/types/constans/throttle-timers.d.ts +1 -0
- package/types/env.d.ts +2 -0
- package/types/index.d.ts +12 -0
- package/types/services/sentry.d.ts +28 -0
- package/types/services/statistics.d.ts +13 -0
- package/types/store/index.d.ts +277 -0
- package/types/store/micro/base.d.ts +8 -0
- package/types/store/micro/fakeIsPlaying.d.ts +13 -0
- package/types/store/micro/index.d.ts +2 -0
- package/types/store/micro/interactiveControlsOpacity.d.ts +13 -0
- package/types/store/micro/seekToInteractiveDisabledTooltip.d.ts +9 -0
- package/types/store/micro/showInteractiveTimeIndicatorTooltip.d.ts +15 -0
- package/types/store/utils.d.ts +30 -0
- package/types/translation/index.d.ts +6 -0
- package/types/translation/packs/en.d.ts +3 -0
- package/types/translation/packs/ru.d.ts +3 -0
- package/types/translation/types.d.ts +8 -0
- package/types/types/index.d.ts +467 -0
- package/types/utils/WebVttParser.d.ts +19 -0
- package/types/utils/changeVolume.d.ts +6 -0
- package/types/utils/clipboard.d.ts +1 -0
- package/types/utils/dom.d.ts +2 -0
- package/types/utils/fetchFile.d.ts +1 -0
- package/types/utils/findCurrentSubtltlePhrase.d.ts +2 -0
- package/types/utils/formatSeconds.d.ts +1 -0
- package/types/utils/fullscreen.d.ts +24 -0
- package/types/utils/getActualEpisode.d.ts +10 -0
- package/types/utils/getHotKeyMapData.d.ts +2 -0
- package/types/utils/getQualityLabel.d.ts +2 -0
- package/types/utils/grid.d.ts +6 -0
- package/types/utils/isIphoneOrOldIpad.d.ts +2 -0
- package/types/utils/keyboardHandleCases.d.ts +2 -0
- package/types/utils/menuNavigation.d.ts +13 -0
- package/types/utils/roundFps.d.ts +1 -0
- package/types/utils/sanitizeHtml.d.ts +5 -0
- package/types/utils/stack/index.d.ts +9 -0
- package/types/utils/stack/node.d.ts +5 -0
- package/types/utils/subtitleLanguages.d.ts +1 -0
- package/types/utils/updatePlayerControlsInfo.d.ts +3 -0
- package/types/utils/userSettings.d.ts +13 -0
- package/types/utils/videoConfig.d.ts +2 -0
- package/types/utils/volumeChange.d.ts +5 -0
- package/types/utils/webAPI/annotationsApi/annotationsApi.d.ts +29 -0
- package/types/utils/webAPI/annotationsApi/errors.d.ts +7 -0
- package/types/utils/webAPI/language.d.ts +2 -0
- package/types/utils/webAPI/mediaSessionApi.d.ts +8 -0
- package/types/utils/webAPI/pictureInPictureApi/documentPictureInPictureApi.d.ts +23 -0
- package/types/utils/webAPI/pictureInPictureApi/pictureInPictureApi.d.ts +38 -0
- package/types/utils/webAPI/pictureInPictureApi/pictureInPictureApiFactory.d.ts +4 -0
- package/index.d.ts +0 -477
package/evergreen.esm.js
CHANGED
|
@@ -1,17 +1,17 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @vkontakte/videoplayer v1.1.
|
|
3
|
-
*
|
|
4
|
-
* https://st.mycdn.me/static/vkontakte-videoplayer/1-1-
|
|
2
|
+
* @vkontakte/videoplayer v1.1.38-beta.0
|
|
3
|
+
* Tue, 16 Jul 2024 15:02:05 GMT
|
|
4
|
+
* https://st.mycdn.me/static/vkontakte-videoplayer/1-1-38/doc/
|
|
5
5
|
*/
|
|
6
|
-
import{VERSION as wc,ChromecastState as Mn,PlaybackState as Ft,VideoQuality as ko,Player as yc,VideoFormat as Lo}from"@vkontakte/videoplayer-core/evergreen.esm.js";import{VideoFormat as O5,VideoQuality as H5}from"@vkontakte/videoplayer-core/evergreen.esm.js";import{InterfaceLanguage as Fo,VideoQuality as nl,fillWithDefault as Cc,VERSION as Tc,assertNonNullable as ut,safeStorage as Cn,isNullable as Xn,Subscription as xn,isNonNullable as wn,isMacLike as os,debounceFn as Pc,ValueSubject as Rl,getCurrentBrowser as Nl,CurrentClientBrowser as p1,noop as Ye,checkNever as Sc,Subject as hn,addScript as Ic,Logger as h1,merge as Ac,Observable as Ec,map as Vc,loadVKLangPack as Mc,isIOS as sl,getHighestQuality as Lc,throttleFn as cl,CurrentClientDevice as Bc,getIOSVersion as Rc,detectEmbed as Nc,observeElementSize as Dc,isMobile as zc,cloneDeepWith as Oc}from"@vkontakte/videoplayer-shared/evergreen.esm.js";import{InterfaceLanguage as U5,VKNumericLanguage as q5,loadVKLangPack as Z5}from"@vkontakte/videoplayer-shared/evergreen.esm.js";import{VERSION as Hc,SeekAction as Lt,OneStat as Fc,InteractiveInterfaceClick as Bo}from"@vkontakte/videoplayer-statistics/evergreen.esm.js";import"@vkontakte/videoplayer-interactive/evergreen.esm.js";function q(){}function g1(t,e){for(const i in e)t[i]=e[i];return t}function b1(t){return t()}function ls(){return Object.create(null)}function it(t){t.forEach(b1)}function yn(t){return typeof t=="function"}function he(t,e){return t!=t?e==e:t!==e||t&&typeof t=="object"||typeof t=="function"}let Qo;function ss(t,e){return Qo||(Qo=document.createElement("a")),Qo.href=e,t===Qo.href}function Uc(t){return Object.keys(t).length===0}function Jt(t,...e){if(t==null){for(const n of e)n(void 0);return q}const i=t.subscribe(...e);return i.unsubscribe?()=>i.unsubscribe():i}function Je(t){let e;return Jt(t,i=>e=i)(),e}function N(t,e,i){t.$$.on_destroy.push(Jt(e,i))}function On(t,e,i,n){if(t){const o=_1(t,e,i,n);return t[0](o)}}function _1(t,e,i,n){return t[1]&&n?g1(i.ctx.slice(),t[1](n(e))):i.ctx}function Hn(t,e,i,n){if(t[2]&&n){const o=t[2](n(i));if(e.dirty===void 0)return o;if(typeof o=="object"){const s=[],l=Math.max(e.dirty.length,o.length);for(let r=0;r<l;r+=1)s[r]=e.dirty[r]|o[r];return s}return e.dirty|o}return e.dirty}function Fn(t,e,i,n,o,s){if(o){const l=_1(e,i,n,s);t.p(l,o)}}function Un(t){if(t.ctx.length>32){const e=[],i=t.ctx.length/32;for(let n=0;n<i;n++)e[n]=-1;return e}return-1}function qc(t){return t??""}const v1=typeof window<"u"?window:typeof globalThis<"u"?globalThis:global;function m(t,e){t.appendChild(e)}function Ke(t,e,i){const n=Zc(t);if(!n.getElementById(e)){const o=A("style");o.id=e,o.textContent=i,Wc(n,o)}}function Zc(t){if(!t)return document;const e=t.getRootNode?t.getRootNode():t.ownerDocument;return e&&e.host?e:t.ownerDocument}function Wc(t,e){return m(t.head||t,e),e.sheet}function I(t,e,i){t.insertBefore(e,i||null)}function S(t){t.parentNode&&t.parentNode.removeChild(t)}function Tn(t,e){for(let i=0;i<t.length;i+=1)t[i]&&t[i].d(e)}function A(t){return document.createElement(t)}function L(t){return document.createElementNS("http://www.w3.org/2000/svg",t)}function De(t){return document.createTextNode(t)}function D(){return De(" ")}function ct(){return De("")}function pe(t,e,i,n){return t.addEventListener(e,i,n),()=>t.removeEventListener(e,i,n)}function $t(t){return function(e){return e.preventDefault(),t.call(this,e)}}function nt(t){return function(e){return e.stopPropagation(),t.call(this,e)}}function u(t,e,i){i==null?t.removeAttribute(e):t.getAttribute(e)!==i&&t.setAttribute(e,i)}function Kc(t){return Array.from(t.childNodes)}function xe(t,e){e=""+e,t.data!==e&&(t.data=e)}function At(t,e,i,n){i==null?t.style.removeProperty(e):t.style.setProperty(e,i,n?"important":"")}let Xo;function jc(){if(Xo===void 0){Xo=!1;try{typeof window<"u"&&window.parent&&window.parent.document}catch{Xo=!0}}return Xo}function Dl(t,e){getComputedStyle(t).position==="static"&&(t.style.position="relative");const n=A("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;const o=jc();let s;return o?(n.src="data:text/html,<script>onresize=function(){parent.postMessage(0,'*')}<\/script>",s=pe(window,"message",l=>{l.source===n.contentWindow&&e()})):(n.src="about:blank",n.onload=()=>{s=pe(n.contentWindow,"resize",e),e()}),m(t,n),()=>{(o||s&&n.contentWindow)&&s(),S(n)}}function V(t,e,i){t.classList.toggle(e,!!i)}function Ln(t,e){return new t(e)}let Oo;function Do(t){Oo=t}function Uo(){if(!Oo)throw new Error("Function called outside component initialization");return Oo}function ln(t){Uo().$$.on_mount.push(t)}function qo(t){Uo().$$.on_destroy.push(t)}function Il(t,e){return Uo().$$.context.set(t,e),e}function zl(t){return Uo().$$.context.get(t)}function k1(){return Uo().$$.context}function uo(t,e){const i=t.$$.callbacks[e.type];i&&i.slice().forEach(n=>n.call(this,e))}const wo=[],_e=[];let Co=[];const Al=[],w1=Promise.resolve();let El=!1;function y1(){El||(El=!0,w1.then(C1))}function $n(){return y1(),w1}function Po(t){Co.push(t)}function Ue(t){Al.push(t)}const bl=new Set;let bo=0;function C1(){if(bo!==0)return;const t=Oo;do{try{for(;bo<wo.length;){const e=wo[bo];bo++,Do(e),Gc(e.$$)}}catch(e){throw wo.length=0,bo=0,e}for(Do(null),wo.length=0,bo=0;_e.length;)_e.pop()();for(let e=0;e<Co.length;e+=1){const i=Co[e];bl.has(i)||(bl.add(i),i())}Co.length=0}while(wo.length);for(;Al.length;)Al.pop()();El=!1,bl.clear(),Do(t)}function Gc(t){if(t.fragment!==null){t.update(),it(t.before_update);const e=t.dirty;t.dirty=[-1],t.fragment&&t.fragment.p(t.ctx,e),t.after_update.forEach(Po)}}function Yc(t){const e=[],i=[];Co.forEach(n=>t.indexOf(n)===-1?e.push(n):i.push(n)),i.forEach(n=>n()),Co=e}const ol=new Set;let so;function ce(){so={r:0,c:[],p:so}}function fe(){so.r||it(so.c),so=so.p}function d(t,e){t&&t.i&&(ol.delete(t),t.i(e))}function b(t,e,i,n){if(t&&t.o){if(ol.has(t))return;ol.add(t),so.c.push(()=>{ol.delete(t),n&&(i&&t.d(1),n())}),t.o(e)}else n&&n()}function Ut(t){return t?.length!==void 0?t:Array.from(t)}function Qc(t,e){const i={},n={},o={$$scope:1};let s=t.length;for(;s--;){const l=t[s],r=e[s];if(r){for(const a in l)a in r||(n[a]=1);for(const a in r)o[a]||(i[a]=r[a],o[a]=1);t[s]=r}else for(const a in l)o[a]=1}for(const l in n)l in i||(i[l]=void 0);return i}function Xc(t){return typeof t=="object"&&t!==null?t:{}}function qe(t,e,i){const n=t.$$.props[e];n!==void 0&&(t.$$.bound[n]=i,i(t.$$.ctx[n]))}function U(t){t&&t.c()}function H(t,e,i){const{fragment:n,after_update:o}=t.$$;n&&n.m(e,i),Po(()=>{const s=t.$$.on_mount.map(b1).filter(yn);t.$$.on_destroy?t.$$.on_destroy.push(...s):it(s),t.$$.on_mount=[]}),o.forEach(Po)}function F(t,e){const i=t.$$;i.fragment!==null&&(Yc(i.after_update),it(i.on_destroy),i.fragment&&i.fragment.d(e),i.on_destroy=i.fragment=null,i.ctx=[])}function Jc(t,e){t.$$.dirty[0]===-1&&(wo.push(t),y1(),t.$$.dirty.fill(0)),t.$$.dirty[e/31|0]|=1<<e%31}function ge(t,e,i,n,o,s,l,r=[-1]){const a=Oo;Do(t);const c=t.$$={fragment:null,ctx:[],props:s,update:q,not_equal:o,bound:ls(),on_mount:[],on_destroy:[],on_disconnect:[],before_update:[],after_update:[],context:new Map(e.context||(a?a.$$.context:[])),callbacks:ls(),dirty:r,skip_bound:!1,root:e.target||a.$$.root};l&&l(c.root);let f=!1;if(c.ctx=i?i(t,e.props||{},(p,h,...v)=>{const k=v.length?v[0]:h;return c.ctx&&o(c.ctx[p],c.ctx[p]=k)&&(!c.skip_bound&&c.bound[p]&&c.bound[p](k),f&&Jc(t,p)),h}):[],c.update(),f=!0,it(c.before_update),c.fragment=n?n(c.ctx):!1,e.target){if(e.hydrate){const p=Kc(e.target);c.fragment&&c.fragment.l(p),p.forEach(S)}else c.fragment&&c.fragment.c();e.intro&&d(t.$$.fragment),H(t,e.target,e.anchor),C1()}Do(a)}class be{$$=void 0;$$set=void 0;$destroy(){F(this,1),this.$destroy=q}$on(e,i){if(!yn(i))return q;const n=this.$$.callbacks[e]||(this.$$.callbacks[e]=[]);return n.push(i),()=>{const o=n.indexOf(i);o!==-1&&n.splice(o,1)}}$set(e){this.$$set&&!Uc(e)&&(this.$$.skip_bound=!0,this.$$set(e),this.$$.skip_bound=!1)}}const xc="4";typeof window<"u"&&(window.__svelte||(window.__svelte={v:new Set})).v.add(xc);var ro;(function(t){t.VK="vk",t.VK_VIDEO="vk_video",t.VK_VIDEO_MOBILE="vk_video_mobile"})(ro||(ro={}));const $c={isMobile:void 0,defaultLanguage:Fo.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:ro.VK_VIDEO,volumeDefault:1,volumeMinRestore:.05,loaderDelay:500,minSubtitlesFontSize:13,autoSubtitlesTimeout:2e3,allowChangingFullscreenTarget:!0,trafficSavingLimit:nl.Q_480P,episodeMinWidthPc:8,hideThumbTimerAfterTouch:!0,sentry:{dsn:"https://e349fd23c68f405388980d0868d0ff27@sentry.mvk.com/126",sampleRate:.01,whiteErrorCategoryList:[],blackErrorCategoryList:[],whiteErrorIdList:[],blackErrorIdList:[]},features:{autoplay:!0,statistics:!0,sentry:!0,preload:!0,subtitles:!0,episodes:!0,fullscreen:!0,timelinePreview:!0,mediaSession:!0,annotations:!0,pip:!0,dpip:!0,download:!0,liveRewind:!0,playbackRate:!0,trafficSaving:!0,episodesClustering:!0,copyVideoLink:!0,videoRotate:!0,interactiveGraph:!1,seekToInteractive:!0,interactiveLastFrame:!1,interactiveTextPermanent:!0,interactiveHideTime:!0,interactivePlayPrevChapter:!0,interactiveTimeIndicator:!0,thumbTimer:!0,hotKeyMapModal:!0,hotKeyHelpers:!0,saveDebugInfoToFile:!1,additionalButtons:!0,contextMenuButton:!0},controls:{hideTimeout:500,hideTimeoutMobile:3e3,hideTimeoutInitial:200,hideTimeoutFullscreen:3e3,hideTimeoutCursor:3e3,hideTimeoutTooltips:1e3,collapseMobileUnmute:6e3,hide360IconTimeout:3e3,hideHotKeyHelpers:2e3,playbackRateMin:.25,playbackRateMax:2,playbackRateStep:.25,volumeStepKeyboard:.05,volumeStepWheel:.05,volumeBarTimeout:300,seekStepKeyboard:1e4,seekStepMobile:15e3,seekStepFrame:400},ads:{enable:void 0,initTimeout:2e3,loadTimeout:2e3,slot:void 0,preview:void 0},interactive:{historyMaxLength:100,noInteractionEventTimeout:3e4}},ef=t=>Cc(t,$c),tf=t=>Il("ui-config",t),cn=()=>zl("ui-config"),Vl="vk_player_debug_panel_opened",T1=300,nf=100,of="videoplayer",lf="videoplayer";var Te;(function(t){t.ArrowLeft="ArrowLeft",t.ArrowUp="ArrowUp",t.ArrowRight="ArrowRight",t.ArrowDown="ArrowDown",t.Comma="Comma",t.Period="Period",t.Space="Space",t.KeyM="KeyM",t.KeyF="KeyF",t.KeyK="KeyK",t.KeyL="KeyL",t.KeyJ="KeyJ",t.KeyC="KeyC",t.KeyI="KeyI",t.Digit1="Digit1",t.Digit2="Digit2",t.Digit3="Digit3",t.Digit4="Digit4",t.Digit5="Digit5",t.Digit6="Digit6",t.Digit7="Digit7",t.Digit8="Digit8",t.Digit9="Digit9",t.Digit0="Digit0",t.Numpad1="Numpad1",t.Numpad2="Numpad2",t.Numpad3="Numpad3",t.Numpad4="Numpad4",t.Numpad5="Numpad5",t.Numpad6="Numpad6",t.Numpad7="Numpad7",t.Numpad8="Numpad8",t.Numpad9="Numpad9",t.Numpad0="Numpad0",t.ShiftLeft="ShiftLeft",t.ShiftRight="ShiftRight",t.Slash="Slash",t.Tab="Tab",t.Escape="Escape",t.Enter="Enter"})(Te||(Te={}));const Zo={[Te.KeyF]:"f",[Te.KeyK]:"k",[Te.KeyC]:"c",[Te.KeyM]:"m"},sf=new Set([Te.ArrowLeft,Te.ArrowRight,Te.KeyL,Te.KeyJ]),rf=new Set([Te.Tab,Te.Space,Te.ArrowLeft,Te.ArrowRight,Te.ArrowUp,Te.ArrowDown]),af=new Set([Te.ShiftRight,Te.ShiftLeft]);var rt;(function(t){t.PLAY_BUTTON="PLAY_BUTTON",t.REPLAY_BUTTON="REPLAY_BUTTON",t.NEXT_BUTTON="NEXT_BUTTON",t.PREV_BUTTON="PREV_BUTTON",t.PICTURE_IN_PICTURE="PICTURE_IN_PICTURE",t.FULLSCREEN_BUTTON="FULLSCREEN_BUTTON",t.SETTINGS_BUTTON="SETTINGS_BUTTON",t.LIVE_BUTTON="LIVE_BUTTON",t.GRAPH_BUTTON="GRAPH_BUTTON",t.PLAY_PREV_CHAPTER_BUTTON="PLAY_PREV_CHAPTER_BUTTON",t.SEEK_TO_INTERACTIVE_BUTTON="SEEK_TO_INTERACTIVE_BUTTON",t.TIMELINE="TIMELINE",t.VOLUME_BAR="VOLUME_BAR",t.MUTE_BUTTON="MUTE_BUTTON",t.SUBTITLES_BUTTON="SUBTITLES_BUTTON",t.CHROMECAST_BUTTON="CHROMECAST_BUTTON",t.VK_BUTTON="VK_BUTTON",t.EPISODE_BUTTON="EPISODE_BUTTON",t.INCREMENT_PLAYBACK_RATE="INCREMENT_PLAYBACK_RATE",t.DECREMENT_PLAYBACK_RATE="DECREMENT_PLAYBACK_RATE"})(rt||(rt={}));const rs=40,P1=260,uf=60,No=8,S1=[rt.TIMELINE],ll=[...S1,rt.GRAPH_BUTTON],as=[...S1,rt.PLAY_BUTTON],I1=[...ll,rt.PLAY_BUTTON];var yo;(function(t){t[t.XS=320]="XS",t[t.S=509]="S",t[t.M=599]="M",t[t.L=699]="L"})(yo||(yo={}));var yt;(function(t){t.XS="xs",t.S="s",t.M="m",t.L="l",t.XL="xl"})(yt||(yt={}));const So={[yt.XS]:0,[yt.S]:1,[yt.M]:2,[yt.L]:3,[yt.XL]:4},_o=[];function Vn(t,e){return{subscribe:Ie(t,e).subscribe}}function Ie(t,e=q){let i;const n=new Set;function o(r){if(he(t,r)&&(t=r,i)){const a=!_o.length;for(const c of n)c[1](),_o.push(c,t);if(a){for(let c=0;c<_o.length;c+=2)_o[c][0](_o[c+1]);_o.length=0}}}function s(r){o(r(t))}function l(r,a=q){const c=[r,a];return n.add(c),n.size===1&&(i=e(o,s)||q),r(t),()=>{n.delete(c),n.size===0&&i&&(i(),i=null)}}return{set:o,update:s,subscribe:l}}function hi(t,e,i){const n=!Array.isArray(t),o=n?[t]:t;if(!o.every(Boolean))throw new Error("derived() expects stores as input, got a falsy value");const s=e.length<2;return Vn(i,(l,r)=>{let a=!1;const c=[];let f=0,p=q;const h=()=>{if(f)return;p();const k=e(n?c[0]:c,l,r);s?l(k):p=yn(k)?k:q},v=o.map((k,_)=>Jt(k,P=>{c[_]=P,f&=~(1<<_),a&&h()},()=>{f|=1<<_}));return a=!0,h(),function(){it(v),p(),a=!1}})}const cf="prod",Ol="1.1.37-dev.aaebf6d2.0",A1=(t,e,i)=>{const n=document.createElement("a");n.href=t,n.download=`${e}.${i}`,n.style.display="none",n.click()},E1=Symbol("storeContext"),V1=Symbol("microStoresContext"),ff=(t,e)=>{Il(E1,t),Il(V1,e)},pt=()=>{const t=zl(E1);return ut(t,"Store context is empty!"),t},Ao=()=>{const t=zl(V1);return ut(t,"MicroStores context is empty!"),t},mt=(t,e)=>M1(t,t.getValue(),e),M1=(t,e,i)=>Vn(e,n=>{const o=t.subscribe(s=>{n(s),i?.(s)});return()=>o.unsubscribe()}),df=(t,e,i)=>{const n=t.info,{width:o,height:s}=Je(i.ui.playerSize),l=n.throughputEstimation$.getValue()?.toFixed(0)??0,r=n.rttEstimation$.getValue()?.toFixed(0)??0,a=n.isAutoQualityEnabled$.getValue()?"auto":"manual",c=`${Ol} (core: ${wc}, stat: ${Hc}, shared: ${Tc})`,f=Je(i.state.errorLog$),p=f.length?`
|
|
7
|
-
`+f.map((
|
|
8
|
-
`,
|
|
9
|
-
`,
|
|
10
|
-
`;return
|
|
11
|
-
`):void 0,h=
|
|
12
|
-
`)},mf=(t,e,i)=>{const n=t.info,{width:o,height:s}=Je(i.ui.playerSize),l={version:Ol,viewport:`${o}x${s}`,volume:Math.round(Je(i.state.volume$)*100)};l.id=i.videoId,n.currentFormat$.getValue()&&(l.provider=n.currentFormat$.getValue()),n.hostname$.getValue()&&(l.cdn=n.hostname$.getValue());const c=n.intrinsicVideoSize$.getValue();c&&(l.videoSize=`${c.width}x${c.height}`);const f=n.currentBuffer$.getValue();f&&(l.buffer=Math.max(f.end-Je(i.state.positionExact$),0));const p=n.throughputEstimation$.getValue();p&&(l.speed=p);const h=n.videoBitrate$.getValue();h&&(l.bitrate=h);const v=n.currentVideoSegmentLength$.getValue();v&&(l.currentVideoSegmentLength=v);const k=n.currentAudioSegmentLength$.getValue();return k&&(l.currentAudioSegmentLength=k),l},pf=(t,e)=>A1(t,e,"mp4"),L1="vk_player_prefer_traffic_saving_enabled",B1="vk_player_preferred_volume",R1="vk_player_prefer_volume_mute",Hl="vk_player_preferred_quality",N1=t=>t>1?1:t<0?0:t,us=t=>Cn.set(B1,N1(t).toString(10)),D1=()=>{const t=Cn.get(B1);return Xn(t)?void 0:N1(parseFloat(t))},hf=(t,e)=>Cn.set(Hl,JSON.stringify({videoId:t,value:e})),z1=()=>Cn.remove(Hl),gf=t=>{const e=Cn.get(Hl);if(Xn(e))return;const{videoId:i,value:n}=JSON.parse(e);if(t!==i){z1();return}return n},O1=(t,e)=>{e?Cn.set(t,"true"):Cn.remove(t)},H1=t=>Cn.get(t)==="true",_l=t=>O1(R1,t),bf=()=>H1(R1),_f=t=>O1(L1,t),vf=()=>H1(L1);function kf(t){let e,i,n,o,s,l,r,a,c,f,p,h,v,k,_,P,C,T;return{c(){e=L("svg"),i=L("g"),n=L("path"),o=L("path"),s=L("path"),l=L("path"),r=L("path"),a=L("defs"),c=L("filter"),f=L("feFlood"),p=L("feColorMatrix"),h=L("feOffset"),v=L("feGaussianBlur"),k=L("feColorMatrix"),_=L("feBlend"),P=L("feBlend"),u(n,"fill-rule","evenodd"),u(n,"clip-rule","evenodd"),u(n,"d","M67 9.489A3.489 3.489 0 0 1 63.511 13 3.493 3.493 0 0 1 60 9.489 3.489 3.489 0 0 1 63.511 6 3.484 3.484 0 0 1 67 9.489Zm-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.492Z"),u(n,"fill","#fff"),u(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.181 10.181 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.893Z"),u(o,"fill","#fff"),u(s,"fill-rule","evenodd"),u(s,"clip-rule","evenodd"),u(s,"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.557Zm-.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.142ZM58 15.512c0 5.041-2.697 8.441-6.627 8.441-3.93 0-6.628-3.4-6.628-8.441 0-5.042 2.698-8.442 6.628-8.442S58 10.47 58 15.512Zm-10.348 0c0 3.564 1.488 5.862 3.72 5.862 2.233 0 3.721-2.298 3.721-5.862s-1.488-5.862-3.72-5.862c-2.233 0-3.72 2.298-3.72 5.862Z"),u(s,"fill","#fff"),u(l,"d","M67 23.5c0-1.318-1.201-3.094-4.199-4.673a1.5 1.5 0 1 1 1.398-2.654C67.452 17.886 70 20.433 70 23.5c0 3.126-2.556 5.554-6.088 7.27-3.633 1.766-8.825 3.062-15.259 3.722a1.5 1.5 0 0 1-.306-2.984c6.248-.641 11.057-1.882 14.253-3.436C65.897 26.47 67 24.8 67 23.5ZM38.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.495 1.495 0 0 1 .317 1.624 1.499 1.499 0 0 1-.326.488l-4 4a1.5 1.5 0 0 1-2.122-2.122L38.88 35Z"),u(l,"fill","#fff"),u(r,"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.556 0 0 0 0 0 0l-.23.096A1.49 1.49 0 0 1 44 33.5c0 .203-.04.396-.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.275L7.908 19.245Zm29.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.807Zm25.779.825c2.07 0 3.739-1.67 3.739-3.761 0-2.07-1.67-3.739-3.739-3.739a3.739 3.739 0 0 0-3.761 3.739 3.743 3.743 0 0 0 3.761 3.761Zm0-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.264Zm-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-.375-.432-.245-.801-.614-1.125-1.114a10.48 10.48 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.174Zm7.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.085.531-.504 1.298-.807 2.232-.807.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.425Zm0-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.48 1.017 0 1.873.52 2.486 1.48.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.096Z"),u(r,"stroke","#000"),u(r,"stroke-opacity",".12"),u(r,"stroke-width",".5"),u(r,"stroke-linecap","round"),u(r,"stroke-linejoin","round"),u(i,"filter","url(#a)"),u(f,"flood-opacity","0"),u(f,"result","BackgroundImageFix"),u(p,"in","SourceAlpha"),u(p,"values","0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0"),u(p,"result","hardAlpha"),u(v,"stdDeviation","2.5"),u(k,"values","0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.16 0"),u(_,"in2","BackgroundImageFix"),u(_,"result","effect1_dropShadow_618_12297"),u(P,"in","SourceGraphic"),u(P,"in2","effect1_dropShadow_618_12297"),u(P,"result","shape"),u(c,"id","a"),u(c,"x",".5"),u(c,"y",".5"),u(c,"width","75"),u(c,"height","44"),u(c,"filterUnits","userSpaceOnUse"),u(c,"color-interpolation-filters","sRGB"),u(e,"width","76"),u(e,"height","45"),u(e,"fill","none"),u(e,"xmlns","http://www.w3.org/2000/svg"),u(e,"data-testid","video-360-icon"),u(e,"aria-hidden",C=!t[0]||null),u(e,"aria-label",T=t[0]||null)},m(y,M){I(y,e,M),m(e,i),m(i,n),m(i,o),m(i,s),m(i,l),m(i,r),m(e,a),m(a,c),m(c,f),m(c,p),m(c,h),m(c,v),m(c,k),m(c,_),m(c,P)},p(y,[M]){M&1&&C!==(C=!y[0]||null)&&u(e,"aria-hidden",C),M&1&&T!==(T=y[0]||null)&&u(e,"aria-label",T)},i:q,o:q,d(y){y&&S(e)}}}function wf(t,e,i){let{ariaLabel:n=""}=e;return t.$$set=o=>{"ariaLabel"in o&&i(0,n=o.ariaLabel)},[n]}class F1 extends be{constructor(e){super(),ge(this,e,wf,kf,he,{ariaLabel:0})}}const yf={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",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",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_record_title:"\u0422\u0440\u0430\u043D\u0441\u043B\u044F\u0446\u0438\u044F \u0437\u0430\u0432\u0435\u0440\u0448\u0438\u043B\u0430\u0441\u044C, \u0438 \u0437\u0430\u043F\u0438\u0441\u044C \u0441\u043A\u043E\u0440\u043E \u0441\u0442\u0430\u043D\u0435\u0442 \u0434\u043E\u0441\u0442\u0443\u043F\u043D\u0430",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_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"},Cf={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",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",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_record_title:"The broadcast has ended and the recording will be available soon",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_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"},Nn=new Map;Nn.set(Fo.EN,Cf);Nn.set(Fo.RU,yf);const U1=new Map,cs=({language:t,pack:e,fallback:i})=>{if(Nn.has(t)){const n=Nn.get(t);Nn.set(t,{...n,...e})}else Nn.set(t,e);U1.set(t,i)},fs=t=>Nn.has(t),q1=(t,e,i,n)=>{let s=Nn.get(t)?.[e];if(Xn(s)){const l=U1.get(t)??n;s=(l?Nn.get(l):void 0)?.[e]}return Xn(s)?e+Object.values(i??{}).join(" "):i?s.replaceAll(/{(\w+?)}/g,(l,r)=>i[r]??""):s},j=(t,e)=>{const{interfaceLanguage$:i}=pt(),n=Je(i),o=cn();return q1(n,t,e,o.defaultLanguage)};var rl;(function(t){t.fatal="fatal",t.error="error",t.warning="warning",t.log="log",t.info="info",t.debug="debug",t.critical="critical"})(rl||(rl={}));const Tf=/^\s*at (?:(.*?) ?\()?((?:file|https?|blob|chrome-extension|address|native|eval|webpack|<anonymous>|[-a-z]+:|.*bundle|\/).*?)(?::(\d+))?(?::(\d+))?\)?\s*$/i,Pf=/^\s*(.*?)(?:\((.*?)\))?(?:^|@)?((?:file|https?|blob|chrome|webpack|resource|moz-extension).*?:\/.*?|\[native code\]|[^@]*(?:bundle|\d+\.js))(?::(\d+))?(?::(\d+))?\s*$/i,Sf=/^\s*at (?:((?:\[object object\])?.+) )?\(?((?:file|ms-appx|https?|webpack|blob):.*?):(\d+)(?::(\d+))?\)?\s*$/i,Jo="?",If="X-Sentry-Auth",Af=/^(?:(\w+):)\/\/(?:([\w-]+)(?::(\w+))?@)([\w.-]+)(?::(\d+))?\/(.+)/;function Ef(t){if(!t.stack)return null;const e=[],i=t.stack.split(`
|
|
13
|
-
`)
|
|
14
|
-
`).filter(i=>!!i)[0]}function Vf(t){try{const e=Ef(t);if(e)return e}catch{}return{value:Z1(t),type:t&&t.name,stacktrace:{frames:[]}}}function Mf(){return"xxxxxxxxxxxx4xxxyxxxxxxxxxxxxxxx".replace(/[xy]/g,t=>{const e=Math.random()*16|0;return(t==="x"?e:e&3|8).toString(16)})}class Lf{constructor(e){if(e&&e.dsn){const i=Af.exec(e.dsn),n=i?i.slice(1):[],o=n[5].split("/"),s=o.slice(0,-1).join("/");this.apiUrl=n[0]+"://"+n[3]+(n[4]?":"+n[4]:"")+(s?"/"+s:"")+"/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:[Vf(e)]}}}report(e){this.send(this.prepare(e))}send(e){!this.apiUrl||!e||this.createRequest(e)}createRequest(e){const i=new XMLHttpRequest;i.open("POST",this.apiUrl,!0),i.setRequestHeader("Content-type","application/json"),i.setRequestHeader(If,this.authHeader||""),i.send(JSON.stringify(e))}getRequestBlank(){return{platform:"javascript",event_id:Mf(),sdk:{name:"micro-sentry.javascript.core",version:"0.0.0"},timestamp:Date.now()/1e3,environment:this.environment}}}function ds(t,e){return Object.prototype.toString.call(e)==="[object RegExp]"?e.test(t):typeof e=="string"?t.indexOf(e)!==-1:!1}function Bf(){return window}class Fl extends Lf{constructor(e,i=Bf()){super(e),this.options=e,this.window=i,this.destroyed=!1,this._state={};const{plugins:n=[],beforeSend:o=c=>c,beforeBreadcrumb:s=c=>c,blacklistUrls:l=[],ignoreErrors:r=[],release:a=void 0}=this.options||{};this.plugins=n.map(c=>new c(this)),this.beforeSend=o,this.beforeBreadcrumb=s,this.blacklistUrls=l,this.ignoreErrors=r,this.release=a}get state(){return this._state}clearState(){this._state={}}setTags(e){return this.setKeyState("tags",{...e}),this}setTag(e,i){return this.extendState({tags:{[e]:i}}),this}setExtra(e,i){return this.extendState({extra:{[e]:i}}),this}setExtras(e){return this.setKeyState("extra",{...e}),this}setUser(e){return this.setKeyState("user",{...e}),this}clone(){const e=new Fl({...this.options,plugins:[]});return e.extendState(this.state),e}withScope(e){const 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=>ds(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{const{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;const i=this.getEventFilterUrl(e);return i?this.blacklistUrls.some(n=>ds(i,n)):!1}getEventFilterUrl(e){try{if(e.exception){const 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)=>{const o=this._state[n],s=Array.isArray(o)?o:null,l=e[n],r=Array.isArray(l)?l:null;return{...i,[n]:s||r?[...s||[],...r||[]]:{...typeof o!="string"?o:{},...typeof l!="string"?l:{}}}},this._state)}setKeyState(e,i){this._state[e]=i}}let xo=null;class Ml{sentrySubscription;options;version;context;sentryClient;constructor(e,i,n={}){!xo&&e.dsn&&(this.sentryClient=new Fl({dsn:e.dsn,environment:i.env}),this.version=i.version,this.sentrySubscription=new xn,this.options=e,this.context=n,xo=this)}destroy(){this.sentryClient?.destroy(),this.sentrySubscription?.unsubscribe(),xo=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={}){const{sentryClient:o,context:s,options:l}=this,{sampleRate:r=0,whiteErrorIdList:a,whiteErrorCategoryList:c=[],blackErrorIdList:f,blackErrorCategoryList:p}=l,{errorType:h,category:v}=i;if(wn(v)&&p.includes(v)||wn(h)&&f.includes(h))return;if(Math.random()<=r||wn(v)&&c.includes(v)||wn(h)&&a.includes(h)){Object.keys(i).length&&o.setTags({version:this.version,...i}),(Object.keys(s).length||Object.keys(n).length)&&o.setExtras({...s,...n});try{h&&o.captureMessage(h,i.fatal?rl.fatal:rl.error),o.report(e)}catch(_){console.error(_)}}}static getInstance(){return xo}}var To;(function(t){t.AUTO="auto"})(To||(To={}));var Ne;(function(t){t.Thumb="thumb",t.Video="video",t.Ads="ads",t.Crashed="crashed",t.WaitingLive="waitingLive",t.WaitingRecord="waitingRecord"})(Ne||(Ne={}));var Rn;(function(t){t.Preroll="preroll",t.Midroll="midroll",t.Postroll="postroll"})(Rn||(Rn={}));var xt;(function(t){t.INACTIVE="inactive",t.PLAYING="playing",t.PAUSED="paused"})(xt||(xt={}));var Dn;(function(t){t[t.PictureInPicture=0]="PictureInPicture",t[t.DocumentPictureInPicture=1]="DocumentPictureInPicture"})(Dn||(Dn={}));var Xe;(function(t){t.PLAY="PLAY",t.PAUSE="PAUSE",t.REPLAY="REPLAY",t.BACKWARD_SEEK="BACKWARD_SEEK",t.FORWARD_SEEK="FORWARD_SEEK",t.SUBTITLES_ON="SUBTITLES_ON",t.SUBTITLES_OFF="SUBTITLES_OFF",t.RATE_UP="RATE_UP",t.RATE_DOWN="RATE_DOWN",t.EPISODE_PREV="EPISODE_PREV",t.EPISODE_NEXT="EPISODE_NEXT",t.MUTE="MUTE",t.VOLUME="VOLUME"})(Xe||(Xe={}));var ao;(function(t){t.FULL="FULL",t.COUNT="COUNT",t.SHORT="SHORT"})(ao||(ao={}));const W1=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();const e=t.querySelector("video");return e?.webkitEnterFullscreen?e.webkitEnterFullscreen():Promise.reject()},K1=t=>t.exitFullscreen?t.exitFullscreen():t.msExitFullscreen?t.msExitFullscreen():t.webkitExitFullscreen?t.webkitExitFullscreen():t.mozCancelFullScreen?t.mozCancelFullScreen():Promise.reject(),Rf=t=>{const e=t;return e?.webkitExitFullscreen?e?.webkitExitFullscreen():Promise.reject()},Ho=()=>{const t=document;return!!(t.fullscreenElement||t.mozFullScreenElement||t.webkitFullscreenElement||t.msFullscreenElement)},j1=t=>{document.addEventListener("fullscreenchange",t),document.addEventListener("webkitfullscreenchange",t),document.addEventListener("mozfullscreenchange",t),document.addEventListener("MSFullscreenChange",t)},G1=t=>{document.removeEventListener("fullscreenchange",t),document.removeEventListener("webkitfullscreenchange",t),document.removeEventListener("mozfullscreenchange",t),document.removeEventListener("MSFullscreenChange",t)},Nf=t=>{const 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))},Df=()=>({title:j("hotkey_map_modal_title"),closeBtnText:j("hotkey_map_modal_close_btn_text"),groups:[{title:j("hotkey_map_group_title_common"),items:[{description:j("hotkey_map_item_mute_description"),value:j("hotkey_map_item_mute_value")},{description:j("hotkey_map_item_volume_up_description"),value:j("hotkey_map_item_volume_up_value")},{description:j("hotkey_map_item_volume_down_description"),value:j("hotkey_map_item_volume_down_value")},{description:j("hotkey_map_item_pip_description"),value:j("hotkey_map_item_pip_value")},{description:j("hotkey_map_item_full_screen_description"),value:j("hotkey_map_item_full_screen_value")},{description:j("hotkey_map_item_show_context_menu_description"),value:j("hotkey_map_item_show_context_menu_value")},{description:j("hotkey_map_item_show_hotkey_map_description"),value:j("hotkey_map_item_show_hotkey_map_value")}]},{title:j("hotkey_map_group_title_playback"),items:[{description:j("hotkey_map_item_play_toggle_description"),value:j("hotkey_map_item_play_toggle_value")},{description:j("hotkey_map_item_seek_backward_description"),value:j("hotkey_map_item_seek_backward_value")},{description:j("hotkey_map_item_seek_forward_description"),value:j("hotkey_map_item_seek_forward_value")},{description:j("hotkey_map_item_fast_seek_backward_description"),value:j("hotkey_map_item_fast_seek_backward_value")},{description:j("hotkey_map_item_fast_seek_forward_description"),value:j("hotkey_map_item_fast_seek_forward_value")},{description:j("hotkey_map_item_rate_down_description"),value:j("hotkey_map_item_rate_down_value")},{description:j("hotkey_map_item_rate_up_description"),value:j("hotkey_map_item_rate_up_value")},{description:j("hotkey_map_item_prev_frame_description"),value:j("hotkey_map_item_prev_frame_value")},{description:j("hotkey_map_item_next_frame_description"),value:j("hotkey_map_item_next_frame_value")},{description:j("hotkey_map_item_jump_seek_description"),value:j("hotkey_map_item_jump_seek_value")}]},{title:j("hotkey_map_group_title_subtitles"),items:[{description:j("hotkey_map_item_subtitles_toggle_description"),value:j("hotkey_map_item_subtitles_toggle_value")}]},{title:j("hotkey_map_group_title_episodes"),items:[{description:j("hotkey_map_item_prev_episode_description"),value:os()?j("hotkey_map_item_prev_episode_mac_value"):j("hotkey_map_item_prev_episode_pc_value")},{description:j("hotkey_map_item_next_episode_description"),value:os()?j("hotkey_map_item_next_episode_mac_value"):j("hotkey_map_item_next_episode_pc_value")}]}]});class Ul{isRequested=!1;videoElement=void 0;playerContainer=void 0;playerDummyElement;svelteContext;externalEventHandlers={};eventHandlers={enterpictureinpicture:this.onEnterPictureInPicture.bind(this),leavepictureinpicture:this.onLeavePictureInPicture.bind(this),resize:Pc(this.onResize.bind(this),T1)};info={isActive$:new Rl(this.isActive()),type:Dn.PictureInPicture};isSupported(){const e=Nl().browser===p1.Yandex;return document.pictureInPictureEnabled&&!e}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){const n=e.pictureInPictureWindow;n&&(this.info.isActive$.next(!0),this.isRequested=!0,n.addEventListener("resize",this.eventHandlers.resize),this.externalEventHandlers.enterpictureinpicture?.(e))}onLeavePictureInPicture(e){const 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 al(t){return t instanceof Ul}function zf(t){const e=pt();return ln(()=>{e.getAdmanWrapper().startPostroll()}),[]}class Of extends be{constructor(e){super(),ge(this,e,zf,null,he,{})}}function Hf(t){Ke(t,"v-1k4i25s",".container.v-1k4i25s.v-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.v-1k4i25s.v-1k4i25s{bottom:14px;top:unset;font-size:15px;max-width:142px}.icon.v-1k4i25s.v-1k4i25s{margin-left:4px;position:relative;top:2px;fill:var(--white);transition:fill .2s}.skip.v-1k4i25s.v-1k4i25s{width:86px}.skippable.v-1k4i25s.v-1k4i25s{cursor:pointer;color:var(--white)}.skippable.v-1k4i25s.v-1k4i25s:hover{color:rgba(255, 255, 255, .75)}.skippable.v-1k4i25s:hover .icon.v-1k4i25s{fill:rgba(255, 255, 255, .75)}")}function Ff(t){let e=j("skip_ads_after",{time:Math.ceil(t[1]-t[0]).toFixed(0)})+"",i;return{c(){i=De(e)},m(n,o){I(n,i,o)},p(n,o){o&3&&e!==(e=j("skip_ads_after",{time:Math.ceil(n[1]-n[0]).toFixed(0)})+"")&&xe(i,e)},d(n){n&&S(i)}}}function Uf(t){let e,i=j("skip_ads_now")+"",n,o,s,l,r,a;return{c(){e=A("div"),n=De(i),o=D(),s=L("svg"),l=L("path"),u(l,"fill-rule","evenodd"),u(l,"clip-rule","evenodd"),u(l,"d","M0.263627 0.263605C-0.0878444 0.615078 -0.0878429 1.18493 0.26363 1.5364L4.72723 5.99998L0.263627 10.4636C-0.0878444 10.8151 -0.0878429 11.3849 0.26363 11.7364C0.615103 12.0879 1.18495 12.0879 1.53642 11.7364L6.63642 6.63637C6.98789 6.2849 6.98789 5.71505 6.63642 5.36358L1.53642 0.263602C1.18495 -0.0878686 0.615098 -0.0878673 0.263627 0.263605Z"),u(s,"class","icon v-1k4i25s"),u(s,"width","7"),u(s,"height","12"),u(s,"viewBox","0 0 7 12"),u(s,"fill","none"),u(s,"xmlns","http://www.w3.org/2000/svg"),u(e,"class","skip v-1k4i25s")},m(c,f){I(c,e,f),m(e,n),m(e,o),m(e,s),m(s,l),r||(a=pe(e,"click",nt(function(){yn(t[2])&&t[2].apply(this,arguments)})),r=!0)},p(c,f){t=c},d(c){c&&S(e),r=!1,a()}}}function qf(t){let e;function i(s,l){return s[3]?Uf:Ff}let n=i(t),o=n(t);return{c(){e=A("div"),o.c(),u(e,"class","container v-1k4i25s"),V(e,"container-mobile",t[4]),V(e,"skippable",t[3])},m(s,l){I(s,e,l),o.m(e,null)},p(s,[l]){n===(n=i(s))&&o?o.p(s,l):(o.d(1),o=n(s),o&&(o.c(),o.m(e,null))),l&16&&V(e,"container-mobile",s[4]),l&8&&V(e,"skippable",s[3])},i:q,o:q,d(s){s&&S(e),o.d()}}}function Zf(t,e,i){let n,{position:o=0}=e,{secondsToWatchBeforeSkip:s=0}=e,{skipAd:l=Ye}=e;const a=pt().ui.isMobile;N(t,a,f=>i(4,n=f));let c;return t.$$set=f=>{"position"in f&&i(0,o=f.position),"secondsToWatchBeforeSkip"in f&&i(1,s=f.secondsToWatchBeforeSkip),"skipAd"in f&&i(2,l=f.skipAd)},t.$$.update=()=>{t.$$.dirty&3&&i(3,c=o>0&&o>=s)},[o,s,l,c,n,a]}class Wf extends be{constructor(e){super(),ge(this,e,Zf,qf,he,{position:0,secondsToWatchBeforeSkip:1,skipAd:2},Hf)}}function Kf(t){Ke(t,"v-1wy3dql","button.v-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 jf(t){let e;return{c(){e=A("button"),e.textContent=`${j("visit_advertiser")}`,u(e,"class","v-1wy3dql")},m(i,n){I(i,e,n)},p:q,i:q,o:q,d(i){i&&S(e)}}}class Gf extends be{constructor(e){super(),ge(this,e,null,jf,he,{},Kf)}}function Yf(t){Ke(t,"v-354ajf",`.container.v-354ajf{width:100%;height:100%}.top-gradient-mobile.v-354ajf{position:absolute;width:100%;height:80px;top:0;left:0;pointer-events:none;background:linear-gradient(
|
|
6
|
+
function _e(){}function ne(i,e){for(let t in e)i[t]=e[t];return i}function $r(i){return i()}function El(){return Object.create(null)}function tt(i){i.forEach($r)}function Ii(i){return typeof i=="function"}function z(i,e){return i!=i?e==e:i!==e||i&&typeof i=="object"||typeof i=="function"}var Tl;function es(i,e){return Tl||(Tl=document.createElement("a")),Tl.href=e,i===Tl.href}function bc(i){return Object.keys(i).length===0}function Rt(i,...e){if(i==null){for(let n of e)n(void 0);return _e}let t=i.subscribe(...e);return t.unsubscribe?()=>t.unsubscribe():t}function $e(i){let e;return Rt(i,t=>e=t)(),e}function F(i,e,t){i.$$.on_destroy.push(Rt(e,t))}function Pe(i,e,t,n){if(i){let o=vc(i,e,t,n);return i[0](o)}}function vc(i,e,t,n){return i[1]&&n?ne(t.ctx.slice(),i[1](n(e))):t.ctx}function Ie(i,e,t,n){if(i[2]&&n){let o=i[2](n(t));if(e.dirty===void 0)return o;if(typeof o=="object"){let 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 Te(i,e,t,n,o,l){if(o){let r=vc(e,t,n,l);i.p(r,o)}}function Ee(i){if(i.ctx.length>32){let e=[],t=i.ctx.length/32;for(let n=0;n<t;n++)e[n]=-1;return e}return-1}function ge(i){let e={};for(let t in i)t[0]!=="$"&&(e[t]=i[t]);return e}function yc(i){return i??""}var co=typeof window<"u"?window:typeof globalThis<"u"?globalThis:global;var Al=class i{_listeners="WeakMap"in co?new WeakMap:void 0;_observer=void 0;options;constructor(e){this.options=e}observe(e,t){return this._listeners.set(e,t),this._getObserver().observe(e,this.options),()=>{this._listeners.delete(e),this._observer.unobserve(e)}}_getObserver(){return this._observer??(this._observer=new ResizeObserver(e=>{for(let t of e)i.entries.set(t.target,t),this._listeners.get(t.target)?.(t)}))}};Al.entries="WeakMap"in co?new WeakMap:void 0;var wc=!1;function kc(){wc=!0}function Cc(){wc=!1}function m(i,e){i.appendChild(e)}function Ce(i,e,t){let n=Sc(i);if(!n.getElementById(e)){let o=P("style");o.id=e,o.textContent=t,xp(n,o)}}function Sc(i){if(!i)return document;let e=i.getRootNode?i.getRootNode():i.ownerDocument;return e&&e.host?e:i.ownerDocument}function xp(i,e){return m(i.head||i,e),e.sheet}function C(i,e,t){i.insertBefore(e,t||null)}function w(i){i.parentNode&&i.parentNode.removeChild(i)}function Ni(i,e){for(let t=0;t<i.length;t+=1)i[t]&&i[t].d(e)}function P(i){return document.createElement(i)}function D(i){return document.createElementNS("http://www.w3.org/2000/svg",i)}function Be(i){return document.createTextNode(i)}function O(){return Be(" ")}function ot(){return Be("")}function pe(i,e,t,n){return i.addEventListener(e,t,n),()=>i.removeEventListener(e,t,n)}function kt(i){return function(e){return e.preventDefault(),i.call(this,e)}}function rt(i){return function(e){return e.stopPropagation(),i.call(this,e)}}function c(i,e,t){t==null?i.removeAttribute(e):i.getAttribute(e)!==t&&i.setAttribute(e,t)}function be(i,e){for(let t in e)c(i,t,e[t])}function Pc(i){return Array.from(i.childNodes)}function Qe(i,e){e=""+e,i.data!==e&&(i.data=e)}function fi(i,e,t,n){t==null?i.style.removeProperty(e):i.style.setProperty(e,t,n?"important":"")}var Ml;function $p(){if(Ml===void 0){Ml=!1;try{typeof window<"u"&&window.parent&&window.parent.document}catch{Ml=!0}}return Ml}function Ro(i,e){getComputedStyle(i).position==="static"&&(i.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=$p(),l;return o?(n.src="data:text/html,<script>onresize=function(){parent.postMessage(0,'*')}<\/script>",l=pe(window,"message",r=>{r.source===n.contentWindow&&e()})):(n.src="about:blank",n.onload=()=>{l=pe(n.contentWindow,"resize",e),e()}),m(i,n),()=>{(o||l&&n.contentWindow)&&l(),w(n)}}function H(i,e,t){i.classList.toggle(e,!!t)}function Ic(i){let e={};return i.childNodes.forEach(t=>{e[t.slot||"default"]=!0}),e}function un(i,e){return new i(e)}var xn;function Kn(i){xn=i}function Bo(){if(!xn)throw new Error("Function called outside component initialization");return xn}function Ct(i){Bo().$$.on_mount.push(i)}function Tn(i){Bo().$$.on_destroy.push(i)}function Do(i,e){return Bo().$$.context.set(i,e),e}function No(i){return Bo().$$.context.get(i)}function nl(){return Bo().$$.context}function mn(i,e){let t=i.$$.callbacks[e.type];t&&t.slice().forEach(n=>n.call(this,e))}var fo=[];var he=[],Fo=[],is=[],Ec=Promise.resolve(),ns=!1;function os(){ns||(ns=!0,Ec.then(Vl))}function En(){return os(),Ec}function An(i){Fo.push(i)}function Fe(i){is.push(i)}var ts=new Set,Oo=0;function Vl(){if(Oo!==0)return;let i=xn;do{try{for(;Oo<fo.length;){let e=fo[Oo];Oo++,Kn(e),l_(e.$$)}}catch(e){throw fo.length=0,Oo=0,e}for(Kn(null),fo.length=0,Oo=0;he.length;)he.pop()();for(let e=0;e<Fo.length;e+=1){let t=Fo[e];ts.has(t)||(ts.add(t),t())}Fo.length=0}while(fo.length);for(;is.length;)is.pop()();ns=!1,ts.clear(),Kn(i)}function l_(i){if(i.fragment!==null){i.update(),tt(i.before_update);let e=i.dirty;i.dirty=[-1],i.fragment&&i.fragment.p(i.ctx,e),i.after_update.forEach(An)}}function Ac(i){let e=[],t=[];Fo.forEach(n=>i.indexOf(n)===-1?e.push(n):t.push(n)),t.forEach(n=>n()),Fo=e}var Ll=new Set,mo;function ue(){mo={r:0,c:[],p:mo}}function ce(){mo.r||tt(mo.c),mo=mo.p}function d(i,e){i&&i.i&&(Ll.delete(i),i.i(e))}function _(i,e,t,n){if(i&&i.o){if(Ll.has(i))return;Ll.add(i),mo.c.push(()=>{Ll.delete(i),n&&(t&&i.d(1),n())}),i.o(e)}else n&&n()}function gt(i){return i?.length!==void 0?i:Array.from(i)}function Ve(i,e){let t={},n={},o={$$scope:1},l=i.length;for(;l--;){let r=i[l],a=e[l];if(a){for(let s in r)s in a||(n[s]=1);for(let s in a)o[s]||(t[s]=a[s],o[s]=1);i[l]=a}else for(let s in r)o[s]=1}for(let r in n)r in t||(t[r]=void 0);return t}function Mc(i){return typeof i=="object"&&i!==null?i:{}}var r_=["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"],s_=new Set([...r_]);function He(i,e,t){let n=i.$$.props[e];n!==void 0&&(i.$$.bound[n]=t,t(i.$$.ctx[n]))}function B(i){i&&i.c()}function L(i,e,t){let{fragment:n,after_update:o}=i.$$;n&&n.m(e,t),An(()=>{let l=i.$$.on_mount.map($r).filter(Ii);i.$$.on_destroy?i.$$.on_destroy.push(...l):tt(l),i.$$.on_mount=[]}),o.forEach(An)}function R(i,e){let t=i.$$;t.fragment!==null&&(Ac(t.after_update),tt(t.on_destroy),t.fragment&&t.fragment.d(e),t.on_destroy=t.fragment=null,t.ctx=[])}function u_(i,e){i.$$.dirty[0]===-1&&(fo.push(i),os(),i.$$.dirty.fill(0)),i.$$.dirty[e/31|0]|=1<<e%31}function U(i,e,t,n,o,l,r,a=[-1]){let s=xn;Kn(i);let u=i.$$={fragment:null,ctx:[],props:l,update:_e,not_equal:o,bound:El(),on_mount:[],on_destroy:[],on_disconnect:[],before_update:[],after_update:[],context:new Map(e.context||(s?s.$$.context:[])),callbacks:El(),dirty:a,skip_bound:!1,root:e.target||s.$$.root};r&&r(u.root);let f=!1;if(u.ctx=t?t(i,e.props||{},(p,h,...b)=>{let g=b.length?b[0]:h;return u.ctx&&o(u.ctx[p],u.ctx[p]=g)&&(!u.skip_bound&&u.bound[p]&&u.bound[p](g),f&&u_(i,p)),h}):[],u.update(),f=!0,tt(u.before_update),u.fragment=n?n(u.ctx):!1,e.target){if(e.hydrate){kc();let p=Pc(e.target);u.fragment&&u.fragment.l(p),p.forEach(w)}else u.fragment&&u.fragment.c();e.intro&&d(i.$$.fragment),L(i,e.target,e.anchor),Cc(),Vl()}Kn(s)}var c_;typeof HTMLElement=="function"&&(c_=class extends HTMLElement{$$componentCtor;$$slots;$$component;$$connected=!1;$$data={};$$reflecting=!1;$$props_definition={};$$listeners={};$$listener_unsubscribe_fns=new Map;constructor(i,e,t){super(),this.$$componentCtor=i,this.$$slots=e,t&&this.attachShadow({mode:"open"})}addEventListener(i,e,t){if(this.$$listeners[i]=this.$$listeners[i]||[],this.$$listeners[i].push(e),this.$$component){let n=this.$$component.$on(i,e);this.$$listener_unsubscribe_fns.set(e,n)}super.addEventListener(i,e,t)}removeEventListener(i,e,t){if(super.removeEventListener(i,e,t),this.$$component){let n=this.$$listener_unsubscribe_fns.get(e);n&&(n(),this.$$listener_unsubscribe_fns.delete(e))}}async connectedCallback(){if(this.$$connected=!0,!this.$$component){let e=function(o){return()=>{let l;return{c:function(){l=document.createElement("slot"),o!=="default"&&l.setAttribute("name",o)},m:function(s,u){C(s,l,u)},d:function(s){s&&w(l)}}}};var i=e;if(await Promise.resolve(),!this.$$connected)return;let t={},n=Ic(this);for(let o of this.$$slots)o in n&&(t[o]=[e(o)]);for(let o of this.attributes){let l=this.$$get_prop_name(o.name);l in this.$$data||(this.$$data[l]=Vc(l,o.value,this.$$props_definition,"toProp"))}this.$$component=new this.$$componentCtor({target:this.shadowRoot||this,props:{...this.$$data,$$slots:t,$$scope:{ctx:[]}}});for(let o in this.$$listeners)for(let l of this.$$listeners[o]){let r=this.$$component.$on(o,l);this.$$listener_unsubscribe_fns.set(l,r)}this.$$listeners={}}}attributeChangedCallback(i,e,t){this.$$reflecting||(i=this.$$get_prop_name(i),this.$$data[i]=Vc(i,t,this.$$props_definition,"toProp"),this.$$component?.$set({[i]:this.$$data[i]}))}disconnectedCallback(){this.$$connected=!1,Promise.resolve().then(()=>{this.$$connected||(this.$$component.$destroy(),this.$$component=void 0)})}$$get_prop_name(i){return Object.keys(this.$$props_definition).find(e=>this.$$props_definition[e].attribute===i||!this.$$props_definition[e].attribute&&e.toLowerCase()===i)||i}});function Vc(i,e,t,n){let o=t[i]?.type;if(e=o==="Boolean"&&typeof e!="boolean"?e!=null:e,!n||!t[i])return e;if(n==="toAttribute")switch(o){case"Object":case"Array":return e==null?null:JSON.stringify(e);case"Boolean":return e?"":null;case"Number":return e??null;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 q=class{$$=void 0;$$set=void 0;$destroy(){R(this,1),this.$destroy=_e}$on(e,t){if(!Ii(t))return _e;let n=this.$$.callbacks[e]||(this.$$.callbacks[e]=[]);return n.push(t),()=>{let o=n.indexOf(t);o!==-1&&n.splice(o,1)}}$set(e){this.$$set&&!bc(e)&&(this.$$.skip_bound=!0,this.$$set(e),this.$$.skip_bound=!1)}};var Lc="4";typeof window<"u"&&(window.__svelte||(window.__svelte={v:new Set})).v.add(Lc);import"@vkontakte/videoplayer-core";import{noop as Jo,safeStorage as _6,throttleFn as h6}from"@vkontakte/videoplayer-shared";import{SeekAction as g6}from"@vkontakte/videoplayer-statistics";import{InterfaceLanguage as f_,fillWithDefault as d_,VideoQuality as m_}from"@vkontakte/videoplayer-shared";var p_={isMobile:void 0,defaultLanguage:f_.RU,downloadVKLanguages:!0,updateBuiltinLanguages:!0,isSmoothVideoRotate:!0,showSupport:!0,supportLink:"https://vk.com/support?act=new&from=v",showLogo:void 0,logoLink:"https://vk.com/video",logoType:"vk_video",volumeDefault:1,volumeMinRestore:.05,loaderDelay:500,minSubtitlesFontSize:13,autoSubtitlesTimeout:2e3,allowChangingFullscreenTarget:!0,trafficSavingLimit: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,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,additionalButtons:!0,contextMenuButton:!0,saveRate:!1},controls:{hideTimeout:500,hideTimeoutMobile:3e3,hideTimeoutInitial:200,hideTimeoutFullscreen:3e3,hideTimeoutCursor:3e3,hideTimeoutTooltips:1e3,collapseMobileUnmute:6e3,hide360IconTimeout:3e3,hideHotKeyHelpers:2e3,playbackRateMin:.25,playbackRateMax:2,playbackRateStep:.25,volumeStepKeyboard:.05,volumeStepWheel:.05,volumeBarTimeout:300,seekStepKeyboard:1e4,seekStepMobile:15e3,seekStepFrame:400},ads:{enable:void 0,initTimeout:2e3,loadTimeout:2e3,slot:void 0,preview:void 0},interactive:{historyMaxLength:100,noInteractionEventTimeout:3e4}},Rc=i=>d_(i,p_),Bc=i=>Do("ui-config",i),Tt=()=>No("ui-config");var ol="vk_player_debug_panel_opened";var Dc="videoplayer",Nc="videoplayer";var Dn={KeyF:"f",KeyK:"k",KeyC:"c",KeyM:"m"},Oc=new Set(["ArrowLeft","ArrowRight","KeyL","KeyJ"]),Fc=new Set(["Tab","Space","ArrowLeft","ArrowRight","ArrowUp","ArrowDown"]),Hc=new Set(["ShiftRight","ShiftLeft"]);var zc=["TIMELINE"],ll=[...zc,"GRAPH_BUTTON"],ls=[...zc,"PLAY_BUTTON"],Rl=[...ll,"PLAY_BUTTON"];var _o=(l=>(l.XS="xs",l.S="s",l.M="m",l.L="l",l.XL="xl",l))(_o||{}),ho={xs:0,s:1,m:2,l:3,xl:4};var Ho=[];function vn(i,e){return{subscribe:De(i,e).subscribe}}function De(i,e=_e){let t,n=new Set;function o(a){if(z(i,a)&&(i=a,t)){let s=!Ho.length;for(let u of n)u[1](),Ho.push(u,i);if(s){for(let u=0;u<Ho.length;u+=2)Ho[u][0](Ho[u+1]);Ho.length=0}}}function l(a){o(a(i))}function r(a,s=_e){let u=[a,s];return n.add(u),n.size===1&&(t=e(o,l)||_e),a(i),()=>{n.delete(u),n.size===0&&t&&(t(),t=null)}}return{set:o,update:l,subscribe:r}}function Ti(i,e,t){let n=!Array.isArray(i),o=n?[i]:i;if(!o.every(Boolean))throw new Error("derived() expects stores as input, got a falsy value");let l=e.length<2;return vn(t,(r,a)=>{let s=!1,u=[],f=0,p=_e,h=()=>{if(f)return;p();let g=e(n?u[0]:u,r,a);l?r(g):p=Ii(g)?g:_e},b=o.map((g,S)=>Rt(g,y=>{u[S]=y,f&=~(1<<S),s&&h()},()=>{f|=1<<S}));return s=!0,h(),function(){tt(b),p(),s=!1}})}import{assertNonNullable as qc,VERSION as __}from"@vkontakte/videoplayer-shared";import{VERSION as h_}from"@vkontakte/videoplayer-core";import{VERSION as g_}from"@vkontakte/videoplayer-statistics";var Bl="prod",zo="1.1.38-beta.0";var Dl=(i,e,t)=>{let n=document.createElement("a");n.href=i,n.download=`${e}.${t}`,n.style.display="none",n.click()};var Uc=Symbol("storeContext"),Kc=Symbol("microStoresContext"),jc=(i,e)=>{Do(Uc,i),Do(Kc,e),Bl==="dev"&&(window.app={store:i,microStores:e})},et=()=>{let i=No(Uc);return qc(i,"Store context is empty!"),i},yn=()=>{let i=No(Kc);return qc(i,"MicroStores context is empty!"),i},bt=(i,e)=>rs(i,i.getValue(),e),rs=(i,e,t)=>vn(e,n=>{let o=i.subscribe(l=>{n(l),t?.(l)});return()=>o.unsubscribe()}),Wc=(i,e,t)=>{let n=i.info,{width:o,height:l}=$e(t.ui.playerSize),r=n.throughputEstimation$.getValue()?.toFixed(0)??0,a=n.rttEstimation$.getValue()?.toFixed(0)??0,s=n.isAutoQualityEnabled$.getValue()?"auto":"manual",u=`${zo} (core: ${h_}, stat: ${g_}, shared: ${__})`,f=$e(t.state.errorLog$),p=f.length?`
|
|
7
|
+
`+f.map((g,S)=>{let y=`${S}) Type: ${g.id}
|
|
8
|
+
`,T=`Message: ${g.message} (${g.thrown})
|
|
9
|
+
`,k=`Trace: ${g.thrown?.stack}
|
|
10
|
+
`;return y+T+k}).join(`
|
|
11
|
+
`):void 0,h=t.state.isAudioDisabled?"disabled":$e(t.state.isAudioAvailable$)?void 0:"unavailable",b={Version:u,Browser:navigator.userAgent,Config:i.experimental.tuningConfigName$.getValue().join(", "),"United video id":String(t.videoId),"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(", "),Quality:`${s} ${n.currentQuality$.getValue()}`,"Available qualities":n.availableQualities$.getValue().join(", "),Audio:h,Position:`${$e(t.state.positionExact$)}s`,State:`${$e(t.playerPhase)} ${n.playbackState$.getValue()}`,"Player size":`${o}x${l}`,URL:window.location.href,Errors:p};return Object.entries(b).filter(([g,S])=>S!==void 0).map(([g,S])=>`${g}: ${S}`).join(`
|
|
12
|
+
`)},Gc=(i,e,t)=>{let n=i.info,{width:o,height:l}=$e(t.ui.playerSize),r={version:zo,viewport:`${o}x${l}`,volume:Math.round($e(t.state.volume$)*100)};r.id=t.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-$e(t.state.positionExact$),0));let b=n.throughputEstimation$.getValue();b&&(r.speed=b);let g=n.videoBitrate$.getValue();g&&(r.bitrate=g);let S=n.currentVideoSegmentLength$.getValue();S&&(r.currentVideoSegmentLength=S);let y=n.currentAudioSegmentLength$.getValue();return y&&(r.currentAudioSegmentLength=y),r},Qc=(i,e)=>Dl(i,e,"mp4");import{isNullable as ss,safeStorage as Nn}from"@vkontakte/videoplayer-shared";import"@vkontakte/videoplayer-core";var Yc="vk_player_prefer_traffic_saving_enabled",Zc="vk_player_preferred_volume",Xc="vk_player_prefer_volume_mute",as="vk_player_preferred_quality",Jc="vk_player_preferred_rate",xc=i=>i>1?1:i<0?0:i,us=i=>Nn.set(Zc,xc(i).toString(10)),Nl=()=>{let i=Nn.get(Zc);return ss(i)?void 0:xc(parseFloat(i))},$c=(i,e)=>Nn.set(as,JSON.stringify({videoId:i,value:e})),cs=()=>Nn.remove(as),ef=i=>{let e=Nn.get(as);if(ss(e))return;let{videoId:t,value:n}=JSON.parse(e);if(i!==t){cs();return}return n},tf=(i,e)=>{e?Nn.set(i,"true"):Nn.remove(i)},nf=i=>Nn.get(i)==="true",Ol=i=>tf(Xc,i),of=()=>nf(Xc),lf=i=>tf(Yc,i),rf=()=>nf(Yc),sf=i=>Nn.set(Jc,JSON.stringify({rate:i})),af=()=>{let i=Nn.get(Jc);if(ss(i))return;let{rate:e}=JSON.parse(i);return e};import{PlaybackState as x5}from"@vkontakte/videoplayer-core";import{noop as Qu}from"@vkontakte/videoplayer-shared";function b_(i){let e,t,n,o,l,r,a,s,u,f,p,h,b,g,S,y,T,k=i[2].default,v=Pe(k,i,i[1],null),I=[{xmlns:"http://www.w3.org/2000/svg"},{width:"76"},{height:"45"},{fill:"none"},{"data-testid":"video-360-icon"},{role:"img"},i[0]],W={};for(let Q=0;Q<I.length;Q+=1)W=ne(W,I[Q]);return{c(){e=D("svg"),v&&v.c(),t=D("g"),n=D("path"),o=D("path"),l=D("path"),r=D("path"),a=D("path"),s=D("defs"),u=D("filter"),f=D("feFlood"),p=D("feColorMatrix"),h=D("feOffset"),b=D("feGaussianBlur"),g=D("feColorMatrix"),S=D("feBlend"),y=D("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(t,"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(b,"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(S,"in2","BackgroundImageFix"),c(S,"result","effect1_dropShadow_618_12297"),c(y,"in","SourceGraphic"),c(y,"in2","effect1_dropShadow_618_12297"),c(y,"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"),be(e,W)},m(Q,G){C(Q,e,G),v&&v.m(e,null),m(e,t),m(t,n),m(t,o),m(t,l),m(t,r),m(t,a),m(e,s),m(s,u),m(u,f),m(u,p),m(u,h),m(u,b),m(u,g),m(u,S),m(u,y),T=!0},p(Q,[G]){v&&v.p&&(!T||G&2)&&Te(v,k,Q,Q[1],T?Ie(k,Q[1],G,null):Ee(Q[1]),null),be(e,W=Ve(I,[{xmlns:"http://www.w3.org/2000/svg"},{width:"76"},{height:"45"},{fill:"none"},{"data-testid":"video-360-icon"},{role:"img"},G&1&&Q[0]]))},i(Q){T||(d(v,Q),T=!0)},o(Q){_(v,Q),T=!1},d(Q){Q&&w(e),v&&v.d(Q)}}}function v_(i,e,t){let{$$slots:n={},$$scope:o}=e;return i.$$set=l=>{t(0,e=ne(ne({},e),ge(l))),"$$scope"in l&&t(1,o=l.$$scope)},e=ge(e),[e,o,n]}var fs=class extends q{constructor(e){super(),U(this,e,v_,b_,z,{})}},Fl=fs;import{isNullable as ff,InterfaceLanguage as df}from"@vkontakte/videoplayer-shared";var y_={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",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",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_record_title:"\u0422\u0440\u0430\u043D\u0441\u043B\u044F\u0446\u0438\u044F \u0437\u0430\u0432\u0435\u0440\u0448\u0438\u043B\u0430\u0441\u044C, \u0438 \u0437\u0430\u043F\u0438\u0441\u044C \u0441\u043A\u043E\u0440\u043E \u0441\u0442\u0430\u043D\u0435\u0442 \u0434\u043E\u0441\u0442\u0443\u043F\u043D\u0430",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_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"},uf=y_;var w_={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",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",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_record_title:"The broadcast has ended and the recording will be available soon",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_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"},cf=w_;var jn=new Map;jn.set(df.EN,cf);jn.set(df.RU,uf);var mf=new Map,ds=({language:i,pack:e,fallback:t})=>{if(jn.has(i)){let n=jn.get(i);jn.set(i,{...n,...e})}else jn.set(i,e);mf.set(i,t)},ms=i=>jn.has(i),ps=(i,e,t,n)=>{let l=jn.get(i)?.[e];if(ff(l)){let r=mf.get(i)??n;l=(r?jn.get(r):void 0)?.[e]}return ff(l)?e+Object.values(t??{}).join(" "):t?l.replaceAll(/{(\w+?)}/g,(r,a)=>t[a]??""):l},j=(i,e)=>{let{interfaceLanguage$:t}=et(),n=$e(t),o=Tt();return ps(n,i,e,o.defaultLanguage)};import"@vkontakte/videoplayer-core";var qo;(function(i){i.fatal="fatal",i.error="error",i.warning="warning",i.log="log",i.info="info",i.debug="debug",i.critical="critical"})(qo||(qo={}));var k_=/^\s*at (?:(.*?) ?\()?((?:file|https?|blob|chrome-extension|address|native|eval|webpack|<anonymous>|[-a-z]+:|.*bundle|\/).*?)(?::(\d+))?(?::(\d+))?\)?\s*$/i,C_=/^\s*(.*?)(?:\((.*?)\))?(?:^|@)?((?:file|https?|blob|chrome|webpack|resource|moz-extension).*?:\/.*?|\[native code\]|[^@]*(?:bundle|\d+\.js))(?::(\d+))?(?::(\d+))?\s*$/i,S_=/^\s*at (?:((?:\[object object\])?.+) )?\(?((?:file|ms-appx|https?|webpack|blob):.*?):(\d+)(?::(\d+))?\)?\s*$/i,Hl="?",P_="X-Sentry-Auth",I_=/^(?:(\w+):)\/\/(?:([\w-]+)(?::(\w+))?@)([\w.-]+)(?::(\d+))?\/(.+)/;function T_(i){if(!i.stack)return null;let e=[],t=i.stack.split(`
|
|
13
|
+
`),n,o;for(let l=0;l<t.length;++l){if(n=k_.exec(t[l]))o={filename:n[2]&&n[2].indexOf("address at ")===0?n[2].substr(11):n[2],function:n[1]||Hl,lineno:n[3]?+n[3]:null,colno:n[4]?+n[4]:null};else if(n=S_.exec(t[l]))o={filename:n[2],function:n[1]||Hl,lineno:+n[3],colno:n[4]?+n[4]:null};else if(n=C_.exec(t[l]))l===0&&!n[5]&&i.columnNumber!==void 0&&(e[0].column=i.columnNumber+1),o={filename:n[3],function:n[1]||Hl,lineno:n[4]?+n[4]:null,colno:n[5]?+n[5]:null};else continue;!o.function&&o.lineno&&(o.function=Hl),e.push(o)}return e.length?{value:pf(i),type:i.name,stacktrace:{frames:e.reverse()}}:null}function pf(i){return(i&&i.message||"No error message").split(`
|
|
14
|
+
`).filter(t=>!!t)[0]}function E_(i){try{let e=T_(i);if(e)return e}catch{}return{value:pf(i),type:i&&i.name,stacktrace:{frames:[]}}}function A_(){return"xxxxxxxxxxxx4xxxyxxxxxxxxxxxxxxx".replace(/[xy]/g,i=>{let e=Math.random()*16|0;return(i==="x"?e:e&3|8).toString(16)})}var zl=class{constructor(e){if(e&&e.dsn){let t=I_.exec(e.dsn),n=t?t.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:[E_(e)]}}}report(e){this.send(this.prepare(e))}send(e){!this.apiUrl||!e||this.createRequest(e)}createRequest(e){let t=new XMLHttpRequest;t.open("POST",this.apiUrl,!0),t.setRequestHeader("Content-type","application/json"),t.setRequestHeader(P_,this.authHeader||""),t.send(JSON.stringify(e))}getRequestBlank(){return{platform:"javascript",event_id:A_(),sdk:{name:"micro-sentry.javascript.core",version:"0.0.0"},timestamp:Date.now()/1e3,environment:this.environment}}};function _f(i,e){return Object.prototype.toString.call(e)==="[object RegExp]"?e.test(i):typeof e=="string"?i.indexOf(e)!==-1:!1}function M_(){return window}var ql=class i extends zl{constructor(e,t=M_()){super(e),this.options=e,this.window=t,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,t){return this.extendState({tags:{[e]:t}}),this}setExtra(e,t){return this.extendState({extra:{[e]:t}}),this}setExtras(e){return this.setKeyState("extra",{...e}),this}setUser(e){return this.setKeyState("user",{...e}),this}clone(){let e=new i({...this.options,plugins:[]});return e.extendState(this.state),e}withScope(e){let t=this.clone();e(t),t.destroy(),this.setBreadcrumbs(void 0)}addBreadcrumb(e){this.extendState({breadcrumbs:[{timestamp:Date.now()/1e3,...this.beforeBreadcrumb(e)}]})}setBreadcrumbs(e){this.setKeyState("breadcrumbs",e)}captureMessage(e,t){this.send({...this.getRequestBlank(),message:e,level:t})}destroy(){this.destroyed=!0,this.plugins.forEach(e=>{e.destroy&&e.destroy()})}isIgnoredError(e){return this.ignoreErrors.length?this.getPossibleEventMessages(e).some(t=>this.ignoreErrors.some(n=>_f(t,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:t="",value:n=""}=e.exception.values&&e.exception.values[0]||{};return[`${n}`,`${t}: ${n}`]}catch{return[]}return[]}isDeniedUrl(e){if(!this.blacklistUrls.length)return!1;let t=this.getEventFilterUrl(e);return t?this.blacklistUrls.some(n=>_f(t,n)):!1}getEventFilterUrl(e){try{if(e.exception){let t=e.exception.values&&e.exception.values[0].stacktrace&&e.exception.values[0].stacktrace.frames;return t&&t[t.length-1].filename||null}return null}catch{return null}}extendState(e){this._state=Object.keys(e).reduce((t,n)=>{let o=this._state[n],l=Array.isArray(o)?o:null,r=e[n],a=Array.isArray(r)?r:null;return{...t,[n]:l||a?[...l||[],...a||[]]:{...typeof o!="string"?o:{},...typeof r!="string"?r:{}}}},this._state)}setKeyState(e,t){this._state[e]=t}};import{isNonNullable as Ul,Subscription as V_}from"@vkontakte/videoplayer-shared";var Kl=null,go=class{constructor(e,t,n={}){!Kl&&e.dsn&&(this.sentryClient=new ql({dsn:e.dsn,environment:t.env}),this.version=t.version,this.sentrySubscription=new V_,this.options=e,this.context=n,Kl=this)}destroy(){this.sentryClient?.destroy(),this.sentrySubscription?.unsubscribe(),Kl=null}logIError(e,t=!1){e.thrown&&this.report(e.thrown,{fatal:t,errorType:e.id,category:e.category},{message:e.message,errorData:e.data})}report(e,t={},n={}){let{sentryClient:o,context:l,options:r}=this,{sampleRate:a=0,whiteErrorIdList:s,whiteErrorCategoryList:u=[],blackErrorIdList:f,blackErrorCategoryList:p}=r,{errorType:h,category:b}=t;if(Ul(b)&&p.includes(b)||Ul(h)&&f.includes(h))return;if(Math.random()<=a||Ul(b)&&u.includes(b)||Ul(h)&&s.includes(h)){Object.keys(t).length&&o.setTags({version:this.version,...t}),(Object.keys(l).length||Object.keys(n).length)&&o.setExtras({...l,...n});try{h&&o.captureMessage(h,t.fatal?qo.fatal:qo.error),o.report(e)}catch(S){console.error(S)}}}static getInstance(){return Kl}};var jl=i=>{if(i.requestFullscreen)return i.requestFullscreen();if(i.msRequestFullscreen)return i.msRequestFullscreen();if(i.webkitRequestFullscreen)return i.webkitRequestFullscreen();if(i.mozRequestFullScreen)return i.mozRequestFullScreen();let e=i.querySelector("video");return e?.webkitEnterFullscreen?e.webkitEnterFullscreen():Promise.reject()},Wl=i=>i.exitFullscreen?i.exitFullscreen():i.msExitFullscreen?i.msExitFullscreen():i.webkitExitFullscreen?i.webkitExitFullscreen():i.mozCancelFullScreen?i.mozCancelFullScreen():Promise.reject(),hf=i=>{let e=i;return e?.webkitExitFullscreen?e?.webkitExitFullscreen():Promise.reject()},$n=()=>{let i=document;return!!(i.fullscreenElement||i.mozFullScreenElement||i.webkitFullscreenElement||i.msFullscreenElement)},Gl=i=>{document.addEventListener("fullscreenchange",i),document.addEventListener("webkitfullscreenchange",i),document.addEventListener("mozfullscreenchange",i),document.addEventListener("MSFullscreenChange",i)},Ql=i=>{document.removeEventListener("fullscreenchange",i),document.removeEventListener("webkitfullscreenchange",i),document.removeEventListener("mozfullscreenchange",i),document.removeEventListener("MSFullscreenChange",i)},gf=i=>{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")(i))};import{isMacLike as bf}from"@vkontakte/videoplayer-shared";var vf=()=>({title:j("hotkey_map_modal_title"),closeBtnText:j("hotkey_map_modal_close_btn_text"),groups:[{title:j("hotkey_map_group_title_common"),items:[{description:j("hotkey_map_item_mute_description"),value:j("hotkey_map_item_mute_value")},{description:j("hotkey_map_item_volume_up_description"),value:j("hotkey_map_item_volume_up_value")},{description:j("hotkey_map_item_volume_down_description"),value:j("hotkey_map_item_volume_down_value")},{description:j("hotkey_map_item_pip_description"),value:j("hotkey_map_item_pip_value")},{description:j("hotkey_map_item_full_screen_description"),value:j("hotkey_map_item_full_screen_value")},{description:j("hotkey_map_item_show_context_menu_description"),value:j("hotkey_map_item_show_context_menu_value")},{description:j("hotkey_map_item_show_hotkey_map_description"),value:j("hotkey_map_item_show_hotkey_map_value")}]},{title:j("hotkey_map_group_title_playback"),items:[{description:j("hotkey_map_item_play_toggle_description"),value:j("hotkey_map_item_play_toggle_value")},{description:j("hotkey_map_item_seek_backward_description"),value:j("hotkey_map_item_seek_backward_value")},{description:j("hotkey_map_item_seek_forward_description"),value:j("hotkey_map_item_seek_forward_value")},{description:j("hotkey_map_item_fast_seek_backward_description"),value:j("hotkey_map_item_fast_seek_backward_value")},{description:j("hotkey_map_item_fast_seek_forward_description"),value:j("hotkey_map_item_fast_seek_forward_value")},{description:j("hotkey_map_item_rate_down_description"),value:j("hotkey_map_item_rate_down_value")},{description:j("hotkey_map_item_rate_up_description"),value:j("hotkey_map_item_rate_up_value")},{description:j("hotkey_map_item_prev_frame_description"),value:j("hotkey_map_item_prev_frame_value")},{description:j("hotkey_map_item_next_frame_description"),value:j("hotkey_map_item_next_frame_value")},{description:j("hotkey_map_item_jump_seek_description"),value:j("hotkey_map_item_jump_seek_value")}]},{title:j("hotkey_map_group_title_subtitles"),items:[{description:j("hotkey_map_item_subtitles_toggle_description"),value:j("hotkey_map_item_subtitles_toggle_value")}]},{title:j("hotkey_map_group_title_episodes"),items:[{description:j("hotkey_map_item_prev_episode_description"),value:bf()?j("hotkey_map_item_prev_episode_mac_value"):j("hotkey_map_item_prev_episode_pc_value")},{description:j("hotkey_map_item_next_episode_description"),value:bf()?j("hotkey_map_item_next_episode_mac_value"):j("hotkey_map_item_next_episode_pc_value")}]}]});import{CurrentClientBrowser as L_,debounceFn as R_,getCurrentBrowser as B_,ValueSubject as D_}from"@vkontakte/videoplayer-shared";var bo=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:R_(this.onResize.bind(this),300)};this.info={isActive$:new D_(this.isActive()),type:0}}isSupported(){let e=B_().browser===L_.Yandex;return document.pictureInPictureEnabled&&!e}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 vo(i){return i instanceof bo}function N_(i){let e=et();return Ct(()=>{e.getAdmanWrapper().startPostroll()}),[]}var gs=class extends q{constructor(e){super(),U(this,e,N_,null,z,{})}},yf=gs;import{noop as O_}from"@vkontakte/videoplayer-shared";function F_(i){Ce(i,"svelte-1k4i25s",".container.svelte-1k4i25s.svelte-1k4i25s{position:absolute;top:14px;right:16px;padding:6px 10px;font-size:13px;color:#fff;background:rgba(0, 0, 0, 0.56);border-radius:6px;transition:color .2s}.container-mobile.svelte-1k4i25s.svelte-1k4i25s{bottom:14px;top:unset;font-size:15px;max-width:142px}.icon.svelte-1k4i25s.svelte-1k4i25s{margin-left:4px;position:relative;top:2px;fill:var(--white);transition:fill .2s}.skip.svelte-1k4i25s.svelte-1k4i25s{width:86px}.skippable.svelte-1k4i25s.svelte-1k4i25s{cursor:pointer;color:var(--white)}.skippable.svelte-1k4i25s.svelte-1k4i25s:hover{color:rgba(255, 255, 255, .75)}.skippable.svelte-1k4i25s:hover .icon.svelte-1k4i25s{fill:rgba(255, 255, 255, .75)}")}function H_(i){let e=j("skip_ads_after",{time:Math.ceil(i[1]-i[0]).toFixed(0)})+"",t;return{c(){t=Be(e)},m(n,o){C(n,t,o)},p(n,o){o&3&&e!==(e=j("skip_ads_after",{time:Math.ceil(n[1]-n[0]).toFixed(0)})+"")&&Qe(t,e)},d(n){n&&w(t)}}}function z_(i){let e,t=j("skip_ads_now")+"",n,o,l,r,a,s;return{c(){e=P("div"),n=Be(t),o=O(),l=D("svg"),r=D("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){C(u,e,f),m(e,n),m(e,o),m(e,l),m(l,r),a||(s=pe(e,"click",rt(function(){Ii(i[2])&&i[2].apply(this,arguments)})),a=!0)},p(u,f){i=u},d(u){u&&w(e),a=!1,s()}}}function q_(i){let e;function t(l,r){return l[3]?z_:H_}let n=t(i,-1),o=n(i);return{c(){e=P("div"),o.c(),c(e,"class","container svelte-1k4i25s"),H(e,"container-mobile",i[4]),H(e,"skippable",i[3])},m(l,r){C(l,e,r),o.m(e,null)},p(l,[r]){n===(n=t(l,r))&&o?o.p(l,r):(o.d(1),o=n(l),o&&(o.c(),o.m(e,null))),r&16&&H(e,"container-mobile",l[4]),r&8&&H(e,"skippable",l[3])},i:_e,o:_e,d(l){l&&w(e),o.d()}}}function U_(i,e,t){let n,{position:o=0}=e,{secondsToWatchBeforeSkip:l=0}=e,{skipAd:r=O_}=e,s=et().ui.isMobile;F(i,s,f=>t(4,n=f));let u;return i.$$set=f=>{"position"in f&&t(0,o=f.position),"secondsToWatchBeforeSkip"in f&&t(1,l=f.secondsToWatchBeforeSkip),"skipAd"in f&&t(2,r=f.skipAd)},i.$$.update=()=>{if(i.$$.dirty&3)e:t(3,u=o>0&&o>=l)},[o,l,r,u,n,s]}var bs=class extends q{constructor(e){super(),U(this,e,U_,q_,z,{position:0,secondsToWatchBeforeSkip:1,skipAd:2},F_)}},wf=bs;function K_(i){Ce(i,"svelte-1wy3dql","button.svelte-1wy3dql{position:absolute;pointer-events:none;bottom:14px;left:16px;font-size:15px;background:white;border:none;padding:6px 10px;border-radius:6px;color:black}")}function j_(i){let e;return{c(){e=P("button"),e.textContent=`${j("visit_advertiser")}`,c(e,"class","svelte-1wy3dql")},m(t,n){C(t,e,n)},p:_e,i:_e,o:_e,d(t){t&&w(e)}}}var vs=class extends q{constructor(e){super(),U(this,e,null,j_,z,{},K_)}},kf=vs;function W_(i){Ce(i,"svelte-354ajf",`.container.svelte-354ajf{width:100%;height:100%}.top-gradient-mobile.svelte-354ajf{position:absolute;width:100%;height:80px;top:0;left:0;pointer-events:none;background:linear-gradient(
|
|
15
15
|
360deg,
|
|
16
16
|
rgba(0, 0, 0, 0) 0%,
|
|
17
17
|
rgba(0, 0, 0, 0.05) 12%,
|
|
@@ -21,15 +21,15 @@ import{VERSION as wc,ChromecastState as Mn,PlaybackState as Ft,VideoQuality as k
|
|
|
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 ms(t){let e;return{c(){e=A("div"),u(e,"class","top-gradient-mobile v-354ajf")},m(i,n){I(i,e,n)},d(i){i&&S(e)}}}function ps(t){let e,i;return e=new Wf({props:{position:t[5],secondsToWatchBeforeSkip:t[6],skipAd:t[8].actions.internal.skipAd}}),{c(){U(e.$$.fragment)},m(n,o){H(e,n,o),i=!0},p(n,o){const s={};o&32&&(s.position=n[5]),o&64&&(s.secondsToWatchBeforeSkip=n[6]),e.$set(s)},i(n){i||(d(e.$$.fragment,n),i=!0)},o(n){b(e.$$.fragment,n),i=!1},d(n){F(e,n)}}}function hs(t){let e,i;return e=new Of({}),{c(){U(e.$$.fragment)},m(n,o){H(e,n,o),i=!0},i(n){i||(d(e.$$.fragment,n),i=!0)},o(n){b(e.$$.fragment,n),i=!1},d(n){F(e,n)}}}function gs(t){let e,i;return e=new Gf({}),{c(){U(e.$$.fragment)},m(n,o){H(e,n,o),i=!0},i(n){i||(d(e.$$.fragment,n),i=!0)},o(n){b(e.$$.fragment,n),i=!1},d(n){F(e,n)}}}function Qf(t){let e,i,n,o,s,l,r,a=t[0]&&ms(),c=t[3]&&ps(t),f=t[7]&&hs(),p=t[4]&&gs();return{c(){e=A("div"),a&&a.c(),i=D(),n=A("video"),o=D(),c&&c.c(),s=D(),f&&f.c(),l=D(),p&&p.c(),At(n,"width","100%"),At(n,"height","100%"),n.playsInline=!0,u(e,"class","container v-354ajf")},m(h,v){I(h,e,v),a&&a.m(e,null),m(e,i),m(e,n),t[19](n),m(e,o),c&&c.m(e,null),m(e,s),f&&f.m(e,null),m(e,l),p&&p.m(e,null),t[20](e),r=!0},p(h,[v]){h[0]?a||(a=ms(),a.c(),a.m(e,i)):a&&(a.d(1),a=null),h[3]?c?(c.p(h,v),v&8&&d(c,1)):(c=ps(h),c.c(),d(c,1),c.m(e,s)):c&&(ce(),b(c,1,1,()=>{c=null}),fe()),h[7]?f?v&128&&d(f,1):(f=hs(),f.c(),d(f,1),f.m(e,l)):f&&(ce(),b(f,1,1,()=>{f=null}),fe()),h[4]?p?v&16&&d(p,1):(p=gs(),p.c(),d(p,1),p.m(e,null)):p&&(ce(),b(p,1,1,()=>{p=null}),fe())},i(h){r||(d(c),d(f),d(p),r=!0)},o(h){b(c),b(f),b(p),r=!1},d(h){h&&S(e),a&&a.d(),t[19](null),c&&c.d(),f&&f.d(),p&&p.d(),t[20](null)}}}function Xf(t,e,i){let n,o,s,l,r,{adsSlotId:a=void 0}=e,{adsParams:c=void 0}=e,{adsPreviewParam:f=void 0}=e,{duration:p=0}=e;const h=pt(),v=h.state.isEnded$;N(t,v,w=>i(7,r=w));const k=h.ui.isMobile;N(t,k,w=>i(0,o=w));let _,P,C=!1;const T=h.ads.playbackState;N(t,T,w=>i(18,n=w));const y=h.ads.canSkip,M=h.ads.position;N(t,M,w=>i(5,s=w));const oe=h.ads.secondsToWatchBeforeSkip;N(t,oe,w=>i(6,l=w));let Y,R;ln(()=>{const w=new AbortController;let $=()=>{w.abort()};const X=h.getAdmanWrapper();if(!a){X.onAdmanLoadingError();return}const{width:z,height:W}=Je(h.ui.playerSize),B=Je(h.ui.isFullscreen),J=Je(h.ui.isAutoplay),E={width:z,height:W,isFullscreen:B,isAutoplay:J,adsContainer:_,adsVideoElement:P,slotId:a,params:c,previewParam:f,duration:p};return window.AdmanHTML?(X.initAdman(E),C=!0):X.loadAdman(w.signal).then(()=>{X.initAdman(E),C=!0}).catch(()=>{X.onAdmanLoadingError()}),()=>{!C&&$()}});function ee(w){_e[w?"unshift":"push"](()=>{P=w,i(2,P)})}function Q(w){_e[w?"unshift":"push"](()=>{_=w,i(1,_)})}return t.$$set=w=>{"adsSlotId"in w&&i(14,a=w.adsSlotId),"adsParams"in w&&i(15,c=w.adsParams),"adsPreviewParam"in w&&i(16,f=w.adsPreviewParam),"duration"in w&&i(17,p=w.duration)},t.$$.update=()=>{t.$$.dirty&262144&&i(3,Y=y&&n!==xt.INACTIVE),t.$$.dirty&262145&&i(4,R=o&&n!==xt.INACTIVE)},[o,_,P,Y,R,s,l,r,h,v,k,T,M,oe,a,c,f,p,n,ee,Q]}class Y1 extends be{constructor(e){super(),ge(this,e,Xf,Qf,he,{adsSlotId:14,adsParams:15,adsPreviewParam:16,duration:17},Yf)}}const zn=t=>{if(!isFinite(t))return"00:00";let e=Math.round(t);const i=Math.floor(e/(60*60));e-=i*(60*60);const n=Math.floor(e/60);return e-=n*60,(i>0?[i,n,e]:[n,e]).map(s=>s>9?String(s):`0${s}`).join(":")};function Jf(t){let e,i,n;return{c(){e=L("svg"),i=L("path"),n=L("path"),u(i,"d","M6.41 1A6.46 6.46 0 0 0 3 1.55 3.52 3.52 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.52 3.52 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.52 3.52 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.52 3.52 0 0 0 39 1.55 6.46 6.46 0 0 0 35.59 1z"),u(i,"fill","none"),u(i,"stroke","#fff"),u(i,"stroke-width","2"),u(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.49.49 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.49.49 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.89.89 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.89.89 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-.9z"),u(n,"fill","#f0f2f5"),u(n,"fill-rule","evenodd"),u(e,"width","42"),u(e,"height","20"),u(e,"xmlns","http://www.w3.org/2000/svg"),u(e,"aria-hidden","true"),u(e,"data-testid","live-icon")},m(o,s){I(o,e,s),m(e,i),m(e,n)},d(o){o&&S(e)}}}function xf(t){let e,i,n;return{c(){e=L("svg"),i=L("rect"),n=L("path"),u(i,"width","42"),u(i,"height","20"),u(i,"rx","5"),u(i,"fill","#FF3347"),u(n,"fill-rule","evenodd"),u(n,"clip-rule","evenodd"),u(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-1zm7 1a1 1 0 1 1 2 0v8a1 1 0 1 1-2 0V6zm15-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-2h-4zm-8.325 9.31-2.55-7.824a.993.993 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.023a.993.993 0 0 1-.118.363l-2.55 7.824a1 1 0 0 1-.95.69h-.748a1 1 0 0 1-.95-.69z"),u(n,"fill","#F2F3F5"),u(e,"width","42"),u(e,"height","20"),u(e,"fill","none"),u(e,"xmlns","http://www.w3.org/2000/svg"),u(e,"aria-hidden","true"),u(e,"data-testid","live-active-icon")},m(o,s){I(o,e,s),m(e,i),m(e,n)},d(o){o&&S(e)}}}function $f(t){let e;function i(s,l){return s[0]?xf:Jf}let n=i(t),o=n(t);return{c(){o.c(),e=ct()},m(s,l){o.m(s,l),I(s,e,l)},p(s,[l]){n!==(n=i(s))&&(o.d(1),o=n(s),o&&(o.c(),o.m(e.parentNode,e)))},i:q,o:q,d(s){s&&S(e),o.d(s)}}}function e0(t,e,i){let{isActive:n=!1}=e;return t.$$set=o=>{"isActive"in o&&i(0,n=o.isActive)},[n]}class Q1 extends be{constructor(e){super(),ge(this,e,e0,$f,he,{isActive:0})}}function t0(t){Ke(t,"v-7pnl2h",".thumb-timer.v-7pnl2h.v-7pnl2h{position:absolute;z-index:2;bottom:0;right:0;margin:8px;padding:0 7px;border-radius:3px;background:var(--black-alpha-40);color:var(--white);font-size:12.5px;line-height:23px;height:23px;white-space:nowrap;transition:visibility var(--controls-transition-duration), opacity var(--controls-transition-duration)}.thumb-timer.live.v-7pnl2h.v-7pnl2h{font-size:0;line-height:20px;height:20px;border-radius:2px;background:var(--red)}.thumb-timer.hidden.v-7pnl2h.v-7pnl2h{visibility:hidden;opacity:0}.thumb-timer.v-7pnl2h.v-7pnl2h:after{content:'';display:inline-block;vertical-align:middle;height:100%}.thumb-timer-live-icon.v-7pnl2h.v-7pnl2h{display:inline-block;vertical-align:middle;width:42px;height:20px;margin:0 -7px}.thumb-timer-equalizer.v-7pnl2h.v-7pnl2h{display:inline-block;vertical-align:middle;position:relative;width:10px;height:10px;margin-top:-4px;margin-right:4px}.live.v-7pnl2h .thumb-timer-equalizer.v-7pnl2h{margin-top:-2px}.thumb-timer-equalizer.v-7pnl2h .col.v-7pnl2h{width:2px;height:10px;margin-right:2px;background:var(--white);position:absolute;bottom:0;transform-origin:50% 100%;animation:1.5s infinite linear alternate;animation-play-state:paused}.thumb-timer.playing.v-7pnl2h .thumb-timer-equalizer .col.v-7pnl2h{animation-play-state:running}.thumb-timer-equalizer.v-7pnl2h .col.v-7pnl2h:nth-child(1){left:0;animation-name:v-7pnl2h-thumb-timer-equalizer-col1}.thumb-timer-equalizer.v-7pnl2h .col.v-7pnl2h:nth-child(2){left:3px;animation-name:v-7pnl2h-thumb-timer-equalizer-col2}.thumb-timer-equalizer.v-7pnl2h .col.v-7pnl2h:nth-child(3){left:6px;animation-name:v-7pnl2h-thumb-timer-equalizer-col3}@keyframes v-7pnl2h-thumb-timer-equalizer-col1{0%{transform:scaleY(0.1)}25%{transform:scaleY(0.8)}50%{transform:scaleY(0.4)}75%{transform:scaleY(0.6)}100%{transform:scaleY(0.1)}}@keyframes v-7pnl2h-thumb-timer-equalizer-col2{0%{transform:scaleY(1)}25%{transform:scaleY(0.3)}50%{transform:scaleY(0.9)}75%{transform:scaleY(0.6)}100%{transform:scaleY(1)}}@keyframes v-7pnl2h-thumb-timer-equalizer-col3{0%{transform:scaleY(0.6)}25%{transform:scaleY(0.9)}50%{transform:scaleY(0.1)}75%{transform:scaleY(0.9)}100%{transform:scaleY(0.6)}}.thumb-timer-text.v-7pnl2h.v-7pnl2h{display:inline-block;text-align:right}")}function i0(t){let e=zn(t[4]-t[3])+"",i;return{c(){i=De(e)},m(n,o){I(n,i,o)},p(n,o){o&24&&e!==(e=zn(n[4]-n[3])+"")&&xe(i,e)},i:q,o:q,d(n){n&&S(i)}}}function n0(t){let e,i,n;return i=new Q1({props:{isActive:!0}}),{c(){e=A("div"),U(i.$$.fragment),u(e,"class","thumb-timer-live-icon v-7pnl2h")},m(o,s){I(o,e,s),H(i,e,null),n=!0},p:q,i(o){n||(d(i.$$.fragment,o),n=!0)},o(o){b(i.$$.fragment,o),n=!1},d(o){o&&S(e),F(i)}}}function o0(t){let e,i,n,o,s,l,r;const a=[n0,i0],c=[];function f(p,h){return p[1]?0:1}return s=f(t),l=c[s]=a[s](t),{c(){e=A("div"),i=A("div"),i.innerHTML='<div class="col v-7pnl2h"></div> <div class="col v-7pnl2h"></div> <div class="col v-7pnl2h"></div>',n=D(),o=A("span"),l.c(),u(i,"class","thumb-timer-equalizer v-7pnl2h"),u(o,"class","thumb-timer-text v-7pnl2h"),u(e,"role","timer"),u(e,"class","thumb-timer v-7pnl2h"),u(e,"data-testid","thumb-timer"),V(e,"live",t[1]),V(e,"hidden",t[0]),V(e,"playing",t[2])},m(p,h){I(p,e,h),m(e,i),m(e,n),m(e,o),c[s].m(o,null),r=!0},p(p,[h]){let v=s;s=f(p),s===v?c[s].p(p,h):(ce(),b(c[v],1,1,()=>{c[v]=null}),fe(),l=c[s],l?l.p(p,h):(l=c[s]=a[s](p),l.c()),d(l,1),l.m(o,null)),(!r||h&2)&&V(e,"live",p[1]),(!r||h&1)&&V(e,"hidden",p[0]),(!r||h&4)&&V(e,"playing",p[2])},i(p){r||(d(l),r=!0)},o(p){b(l),r=!1},d(p){p&&S(e),c[s].d()}}}function l0(t,e,i){let{isHidden:n=!1}=e,{isLive:o=!1}=e,{isPlaying:s=!1}=e,{position:l}=e,{duration:r}=e;return t.$$set=a=>{"isHidden"in a&&i(0,n=a.isHidden),"isLive"in a&&i(1,o=a.isLive),"isPlaying"in a&&i(2,s=a.isPlaying),"position"in a&&i(3,l=a.position),"duration"in a&&i(4,r=a.duration)},[n,o,s,l,r]}class X1 extends be{constructor(e){super(),ge(this,e,l0,o0,he,{isHidden:0,isLive:1,isPlaying:2,position:3,duration:4},t0)}}const Ll=t=>{if(document.queryCommandSupported&&document.queryCommandSupported("copy")){const 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)}}},co=t=>{t.stopPropagation(),t.preventDefault()},s0=t=>{let e=t.previousElementSibling;e||(e=t.parentNode?.lastElementChild),e?.focus()},r0=t=>{let e=t.nextElementSibling;e||(e=t.parentNode?.firstElementChild),e?.focus()},a0=t=>{const e=t.code;return e===Te.Tab&&!t.shiftKey||e===Te.ArrowDown},u0=t=>{const e=t.code;return e===Te.Tab||e===Te.ArrowUp},J1=t=>t.code===Te.Escape,c0=t=>t.code===Te.ArrowLeft,x1=(t,e=!0)=>{const i=t.code;return[Te.Enter,Te.Space].includes(i)||!e&&i===Te.ArrowRight},$1=t=>{if(a0(t)){co(t),r0(t.target);return}u0(t)&&(co(t),s0(t.target))},ql=t=>t?.detail===0,Zl=async(t,e,i)=>{await $n(),t&&!t.classList.contains("opened")&&!e&&Je(i)&&(await $n(),i.set(!1),t.focus())},f0=async(t,e,i)=>{await $n(),t&&!e&&Je(i)&&(i.set(!1),t.focus())},ul=async(t,e,i)=>{await $n(),!!t&&e&&i&&(await $n(),t.firstChild.focus())},$o=async(t,e,i)=>{!!t&&i&&(e.set(!1),setTimeout(()=>{t.focus()},nf))},eu=(t,e)=>{$1(t),J1(t)&&(co(t),e())},el=async(t,e,i)=>{x1(t,!1)&&(co(t),e(),await $n(),i()?.focus())},tl=async(t,e,i,n)=>{if($1(t),c0(t)){co(t),e(),i.set(!0);return}J1(t)&&(co(t),n())},tn=(t,e)=>{x1(t)&&(co(t),e())},d0=t=>{const e=t.getBoundingClientRect(),i=-14,n=e.left+e.width,o=e.top+i;return{right:n,bottom:o}},m0=t=>{if(!t)return{top:0,left:0};const e=t.getBoundingClientRect(),i=-58,n=No,o=e.left+n;return{bottom:e.bottom+i,left:o}};function p0(t){Ke(t,"v-1vzqlps","ul.v-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.v-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.v-1vzqlps:hover{background:rgba(66, 66, 66, .5);color:var(--white)}")}function bs(t){let e,i,n,o,s,l,r,a,c=(t[10].features.saveDebugInfoToFile?j("menu_save_debug"):j("menu_copy_debug"))+"",f,p,h,v=j("menu_debug_overlay")+"",k,_,P,C,T=t[10].features.copyVideoLink&&t[9].callbacks?.onCopyVideoLink&&h0(t),y=t[12]&&t[6]!==Mn.CONNECTED&&!t[17]&&vs(t);function M(Q,w){return Q[4]?b0:g0}let oe=M(t),Y=oe(t),R=t[10].features.videoRotate&&!t[17]&&_0(t),ee=t[10].showSupport&&!t[7]&&ks(t);return{c(){e=A("ul"),T&&T.c(),i=D(),y&&y.c(),n=D(),o=A("li"),Y.c(),s=D(),R&&R.c(),l=D(),ee&&ee.c(),r=D(),a=A("li"),f=De(c),p=D(),h=A("li"),k=De(v),u(o,"tabindex","0"),u(o,"role","menuitem"),u(o,"aria-label",j("aria_label_menu_loop")),u(o,"class","v-1vzqlps"),u(a,"tabindex","0"),u(a,"role","menuitem"),u(a,"aria-label",t[10].features.saveDebugInfoToFile?j("menu_save_debug"):j("menu_copy_debug")),u(a,"class","v-1vzqlps"),u(h,"tabindex","0"),u(h,"role","menuitem"),u(h,"aria-label",_=t[8]?j("aria_label_menu_debug_overlay_disable"):j("aria_label_menu_debug_overlay_enable")),u(h,"class","v-1vzqlps"),u(e,"role","menu"),At(e,"top",t[3]+"px"),At(e,"left",t[2]+"px"),u(e,"class","v-1vzqlps")},m(Q,w){I(Q,e,w),T&&T.m(e,null),m(e,i),y&&y.m(e,null),m(e,n),m(e,o),Y.m(o,null),m(e,s),R&&R.m(e,null),m(e,l),ee&&ee.m(e,null),m(e,r),m(e,a),m(a,f),m(e,p),m(e,h),m(h,k),t[42](e),P||(C=[pe(o,"click",nt(t[24])),pe(o,"keydown",t[30]),pe(a,"click",nt(t[21])),pe(a,"keydown",t[32]),pe(h,"click",nt(t[22])),pe(h,"keydown",t[33]),pe(e,"contextmenu",$t(t[39])),pe(e,"keydown",t[26])],P=!0)},p(Q,w){Q[10].features.copyVideoLink&&Q[9].callbacks?.onCopyVideoLink&&T.p(Q,w),Q[12]&&Q[6]!==Mn.CONNECTED&&!Q[17]?y?y.p(Q,w):(y=vs(Q),y.c(),y.m(e,n)):y&&(y.d(1),y=null),oe===(oe=M(Q))&&Y?Y.p(Q,w):(Y.d(1),Y=oe(Q),Y&&(Y.c(),Y.m(o,null))),Q[10].features.videoRotate&&!Q[17]&&R.p(Q,w),Q[10].showSupport&&!Q[7]?ee?ee.p(Q,w):(ee=ks(Q),ee.c(),ee.m(e,r)):ee&&(ee.d(1),ee=null),w[0]&256&&_!==(_=Q[8]?j("aria_label_menu_debug_overlay_disable"):j("aria_label_menu_debug_overlay_enable"))&&u(h,"aria-label",_),w[0]&8&&At(e,"top",Q[3]+"px"),w[0]&4&&At(e,"left",Q[2]+"px")},d(Q){Q&&S(e),T&&T.d(),y&&y.d(),Y.d(),R&&R.d(),ee&&ee.d(),t[42](null),P=!1,it(C)}}}function h0(t){let e,i=j("menu_copy_video_link")+"",n,o,s,l,r,a=!t[5]&&!t[17]&&_s(t);return{c(){e=A("li"),n=De(i),o=D(),a&&a.c(),s=ct(),u(e,"tabindex","0"),u(e,"role","menuitem"),u(e,"aria-label",j("menu_copy_video_link")),u(e,"class","v-1vzqlps")},m(c,f){I(c,e,f),m(e,n),I(c,o,f),a&&a.m(c,f),I(c,s,f),l||(r=[pe(e,"click",nt(t[40])),pe(e,"keydown",t[27])],l=!0)},p(c,f){!c[5]&&!c[17]?a?a.p(c,f):(a=_s(c),a.c(),a.m(s.parentNode,s)):a&&(a.d(1),a=null)},d(c){c&&(S(e),S(o),S(s)),a&&a.d(c),l=!1,it(r)}}}function _s(t){let e,i=j("menu_copy_video_link_with_timestamp")+"",n,o,s;return{c(){e=A("li"),n=De(i),u(e,"tabindex","0"),u(e,"role","menuitem"),u(e,"aria-label",j("menu_copy_video_link_with_timestamp")),u(e,"class","v-1vzqlps")},m(l,r){I(l,e,r),m(e,n),o||(s=[pe(e,"click",nt(t[41])),pe(e,"keydown",t[28])],o=!0)},p:q,d(l){l&&S(e),o=!1,it(s)}}}function vs(t){let e,i=j("menu_pip")+"",n,o,s;return{c(){e=A("li"),n=De(i),u(e,"tabindex","0"),u(e,"role","menuitem"),u(e,"aria-label",j("menu_pip")),u(e,"class","v-1vzqlps")},m(l,r){I(l,e,r),m(e,n),o||(s=[pe(e,"click",nt(t[23])),pe(e,"keydown",t[29])],o=!0)},p:q,d(l){l&&S(e),o=!1,it(s)}}}function g0(t){let e=j("menu_video_loop_on")+"",i;return{c(){i=De(e)},m(n,o){I(n,i,o)},p:q,d(n){n&&S(i)}}}function b0(t){let e=j("menu_video_loop_off")+"",i;return{c(){i=De(e)},m(n,o){I(n,i,o)},p:q,d(n){n&&S(i)}}}function _0(t){let e,i=j("menu_video_rotate")+"",n,o,s;return{c(){e=A("li"),n=De(i),u(e,"tabindex","0"),u(e,"role","menuitem"),u(e,"aria-label",j("aria_label_menu_rotate")),u(e,"class","v-1vzqlps")},m(l,r){I(l,e,r),m(e,n),o||(s=[pe(e,"click",nt(t[19])),pe(e,"keydown",t[30])],o=!0)},p:q,d(l){l&&S(e),o=!1,it(s)}}}function ks(t){let e,i=j("menu_report")+"",n,o,s;return{c(){e=A("li"),n=De(i),u(e,"tabindex","0"),u(e,"role","menuitem"),u(e,"aria-label",`${j("menu_report")}. ${j("aria_label_new_tab_alert")}`),u(e,"class","v-1vzqlps")},m(l,r){I(l,e,r),m(e,n),o||(s=[pe(e,"click",nt(t[20])),pe(e,"keydown",t[31])],o=!0)},p:q,d(l){l&&S(e),o=!1,it(s)}}}function v0(t){let e,i=t[1]&&bs(t);return{c(){i&&i.c(),e=ct()},m(n,o){i&&i.m(n,o),I(n,e,o)},p(n,o){n[1]?i?i.p(n,o):(i=bs(n),i.c(),i.m(e.parentNode,e)):i&&(i.d(1),i=null)},i:q,o:q,d(n){n&&S(e),i&&i.d(n)}}}function k0(t,e,i){let n,o,s,l,r,a,{visible:c=!1}=e,{supportLink:f}=e,{position:p={top:0,left:0}}=e,{playerContainerRef:h=void 0}=e,{controlsContainerRef:v=void 0}=e,{menuElementRef:k=void 0}=e,{returnFocus:_}=e,P=0,C=0;const T=pt(),y=cn(),M=T.ui.contextMenu.visible$,oe=T.ui.debugPanelVisible;N(t,oe,ie=>i(8,a=ie));const Y=T.webApi.pictureInPictureApi,R=T.webApi.pictureInPictureApi?.info.isActive$;N(t,R,ie=>i(7,r=ie));const ee=T.state.chromecastState$;N(t,ee,ie=>i(6,l=ie));const Q=T.state.isLive$;N(t,Q,ie=>i(5,s=ie));const w=T.state.positionExact$;N(t,w,ie=>i(43,n=ie));const $=T.state.isInteractive,X=T.state.looped$;N(t,X,ie=>i(4,o=ie));const z=()=>{M.set(!1)},W=(ie,G)=>{if(!k||!h||!v)return;const ye=k.getBoundingClientRect(),se=h.getBoundingClientRect();i(2,P=ie-se.left),i(3,C=G-se.top),P+ye.width>se.width&&i(2,P=se.width-ye.width),C+ye.height>se.height&&i(3,C=se.height-ye.height),i(2,P=Math.max(P,0)),i(3,C=Math.max(C,0))},B=()=>{z(),T.actions.internal.videoRotate()},J=()=>{window.open(f,"_blank"),z(),T.actions.internal.pause()},E=()=>{const ie=T.actions.internal.getDebugTextData();if(y.features.saveDebugInfoToFile){const G=new Blob([...ie],{type:"plain/text"}),ye=window.URL.createObjectURL(G);A1(ye,"vk_player_debug_info","txt")}else Ll(T.actions.internal.getDebugTextData());z(),_?.()},O=()=>{oe.set(!0),z(),_?.()},Ce=async()=>{try{Y?.isActive()?await Y?.remove():await Y?.request()}finally{z(),_?.()}},ze=()=>{T.actions.internal.setLooped(!o),z()},Ee=(ie=!1)=>{if(T.callbacks?.onCopyVideoLink){const G=T.callbacks?.onCopyVideoLink(ie,n);G&&Ll(G)}z()},Ve=ie=>{eu(ie,z)},Pe=ie=>{tn(ie,()=>Ee())},me=ie=>{tn(ie,()=>Ee(!0))},Z=ie=>{tn(ie,()=>Ce())},de=ie=>{tn(ie,()=>B())},Se=ie=>{tn(ie,()=>J())},Fe=ie=>{tn(ie,()=>E())},je=ie=>{tn(ie,()=>O())};function re(ie){uo.call(this,t,ie)}const we=()=>Ee(),Me=()=>Ee(!0);function We(ie){_e[ie?"unshift":"push"](()=>{k=ie,i(0,k)})}return t.$$set=ie=>{"visible"in ie&&i(1,c=ie.visible),"supportLink"in ie&&i(34,f=ie.supportLink),"position"in ie&&i(35,p=ie.position),"playerContainerRef"in ie&&i(36,h=ie.playerContainerRef),"controlsContainerRef"in ie&&i(37,v=ie.controlsContainerRef),"menuElementRef"in ie&&i(0,k=ie.menuElementRef),"returnFocus"in ie&&i(38,_=ie.returnFocus)},t.$$.update=()=>{if(t.$$.dirty[0]&1|t.$$.dirty[1]&112&&k&&h&&v){const{top:ie,left:G,bottom:ye,right:se}=p;let ve=G??0,Oe=ie??0;const $e=k.getBoundingClientRect();Xn(G)&&!Xn(se)&&(ve=se-$e.width),Xn(ie)&&!Xn(ye)&&(Oe=ye-$e.height),ve=Math.max(ve,0),Oe=Math.max(Oe,0),W(ve,Oe)}},[k,c,P,C,o,s,l,r,a,T,y,oe,Y,R,ee,Q,w,$,X,B,J,E,O,Ce,ze,Ee,Ve,Pe,me,Z,de,Se,Fe,je,f,p,h,v,_,re,we,Me,We]}class w0 extends be{constructor(e){super(),ge(this,e,k0,v0,he,{visible:1,supportLink:34,position:35,playerContainerRef:36,controlsContainerRef:37,menuElementRef:0,returnFocus:38},p0,[-1,-1])}}class y0{value;next;constructor(e){this.value=e,this.next=null}}class vl{top;bottom;size;maxSize;constructor(e){this.top=null,this.bottom=null,this.size=0,this.maxSize=e}push(e){const i=new y0(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(){const e=[];let i=this.bottom;for(;i;)e.push(i.value),i=i.next;return e}}function C0(t){Ke(t,"v-1ssl9eb",".container.v-1ssl9eb{display:inline-block;width:120px;height:16px}canvas.v-1ssl9eb{transform:scale(1, -1);margin-top:2px}")}function T0(t){let e,i;return{c(){e=A("div"),i=A("canvas"),u(i,"class","v-1ssl9eb"),u(e,"class","container v-1ssl9eb")},m(n,o){I(n,e,o),m(e,i),t[3](i)},p:q,i:q,o:q,d(n){n&&S(e),t[3](null)}}}const kl=16,wl=120,ws=60;function P0(t,e,i,n,o){o===0&&(o=1),t.fillStyle="#fff",t.fillRect(e,i,n,o)}function S0(t,e,i){let{values:n=[]}=e,o,s;const l=wl/ws;ln(()=>{i(0,o.width=wl,o),i(0,o.height=kl,o),i(2,s=o.getContext("2d"))});function r(a){_e[a?"unshift":"push"](()=>{o=a,i(0,o)})}return t.$$set=a=>{"values"in a&&i(1,n=a.values)},t.$$.update=()=>{if(t.$$.dirty&6&&s){let a=n[0];for(let f=1;f<n.length;f++)n[f]>a&&(a=n[f]);s.clearRect(0,0,wl,kl);let c=ws-1;for(let f=n.length-1;f>=0;f--){const p=c*l,h=a>0?kl*(n[f]/a):0;P0(s,p,0,l,h),c--}}},[o,n,s,r]}class Wl extends be{constructor(e){super(),ge(this,e,S0,T0,he,{values:1},C0)}}function I0(t){Ke(t,"v-1fypj5i",".container.v-1fypj5i.v-1fypj5i.v-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.v-1fypj5i.v-1fypj5i.v-1fypj5i{top:16px;left:16px}button.v-1fypj5i.v-1fypj5i.v-1fypj5i{position:absolute;right:5px;top:3px;cursor:pointer;outline:0;border:none;background-color:transparent;padding:0;color:#fff}.content.v-1fypj5i.v-1fypj5i.v-1fypj5i{padding:5px}.content.v-1fypj5i>div.v-1fypj5i>div.v-1fypj5i{display:inline-block;text-align:right;width:50px;padding:0 5px}")}function ys(t){let e,i,n,o,s=t[0].id+"",l;return{c(){e=A("div"),i=A("div"),i.textContent="Video id",n=D(),o=A("span"),l=De(s),u(i,"class","v-1fypj5i"),u(e,"class","v-1fypj5i")},m(r,a){I(r,e,a),m(e,i),m(e,n),m(e,o),m(o,l)},p(r,a){a&1&&s!==(s=r[0].id+"")&&xe(l,s)},d(r){r&&S(e)}}}function Cs(t){let e,i,n,o,s=t[0].provider+"",l;return{c(){e=A("div"),i=A("div"),i.textContent="Provider",n=D(),o=A("span"),l=De(s),u(i,"class","v-1fypj5i"),u(e,"class","v-1fypj5i")},m(r,a){I(r,e,a),m(e,i),m(e,n),m(e,o),m(o,l)},p(r,a){a&1&&s!==(s=r[0].provider+"")&&xe(l,s)},d(r){r&&S(e)}}}function Ts(t){let e,i,n,o,s=t[0].viewport+"",l;return{c(){e=A("div"),i=A("div"),i.textContent="Viewport",n=D(),o=A("span"),l=De(s),u(i,"class","v-1fypj5i"),u(e,"class","v-1fypj5i")},m(r,a){I(r,e,a),m(e,i),m(e,n),m(e,o),m(o,l)},p(r,a){a&1&&s!==(s=r[0].viewport+"")&&xe(l,s)},d(r){r&&S(e)}}}function Ps(t){let e,i,n,o,s=t[0].videoSize+"",l;return{c(){e=A("div"),i=A("div"),i.textContent="Video size",n=D(),o=A("span"),l=De(s),u(i,"class","v-1fypj5i"),u(e,"class","v-1fypj5i")},m(r,a){I(r,e,a),m(e,i),m(e,n),m(e,o),m(o,l)},p(r,a){a&1&&s!==(s=r[0].videoSize+"")&&xe(l,s)},d(r){r&&S(e)}}}function Ss(t){let e,i,n,o,s=t[0].cdn+"",l;return{c(){e=A("div"),i=A("div"),i.textContent="CDN host",n=D(),o=A("span"),l=De(s),u(i,"class","v-1fypj5i"),u(e,"class","v-1fypj5i")},m(r,a){I(r,e,a),m(e,i),m(e,n),m(e,o),m(o,l)},p(r,a){a&1&&s!==(s=r[0].cdn+"")&&xe(l,s)},d(r){r&&S(e)}}}function Is(t){let e,i,n,o,s=t[0].volume+"",l,r;return{c(){e=A("div"),i=A("div"),i.textContent="Volume",n=D(),o=A("span"),l=De(s),r=De(" %"),u(i,"class","v-1fypj5i"),u(e,"class","v-1fypj5i")},m(a,c){I(a,e,c),m(e,i),m(e,n),m(e,o),m(o,l),m(o,r)},p(a,c){c&1&&s!==(s=a[0].volume+"")&&xe(l,s)},d(a){a&&S(e)}}}function As(t){let e,i,n,o,s=t[0].buffer.toFixed(2)+"",l,r;return{c(){e=A("div"),i=A("div"),i.textContent="Buffer",n=D(),o=A("span"),l=De(s),r=De(" s"),u(i,"class","v-1fypj5i"),u(e,"class","v-1fypj5i")},m(a,c){I(a,e,c),m(e,i),m(e,n),m(e,o),m(o,l),m(o,r)},p(a,c){c&1&&s!==(s=a[0].buffer.toFixed(2)+"")&&xe(l,s)},d(a){a&&S(e)}}}function Es(t){let e,i,n,o,s=[{value:t[0].currentVideoSegmentLength,title:"Video"},{value:t[0].currentAudioSegmentLength,title:"Audio"}].filter(Ls).map(Bs).join(" / ")+"",l;return{c(){e=A("div"),i=A("div"),i.textContent="Segment",n=D(),o=A("span"),l=De(s),u(i,"class","v-1fypj5i"),u(e,"class","v-1fypj5i")},m(r,a){I(r,e,a),m(e,i),m(e,n),m(e,o),m(o,l)},p(r,a){a&1&&s!==(s=[{value:r[0].currentVideoSegmentLength,title:"Video"},{value:r[0].currentAudioSegmentLength,title:"Audio"}].filter(Ls).map(Bs).join(" / ")+"")&&xe(l,s)},d(r){r&&S(e)}}}function Vs(t){let e,i,n,o,s,l,r=t[0].speed.toFixed(2)+"",a,c,f;return o=new Wl({props:{values:t[5]}}),{c(){e=A("div"),i=A("div"),i.textContent="Network",n=D(),U(o.$$.fragment),s=D(),l=A("span"),a=De(r),c=De(" Kbps"),u(i,"class","v-1fypj5i"),u(e,"class","v-1fypj5i")},m(p,h){I(p,e,h),m(e,i),m(e,n),H(o,e,null),m(e,s),m(e,l),m(l,a),m(l,c),f=!0},p(p,h){const v={};h&32&&(v.values=p[5]),o.$set(v),(!f||h&1)&&r!==(r=p[0].speed.toFixed(2)+"")&&xe(a,r)},i(p){f||(d(o.$$.fragment,p),f=!0)},o(p){b(o.$$.fragment,p),f=!1},d(p){p&&S(e),F(o)}}}function Ms(t){let e,i,n,o,s,l,r=t[0].bitrate.toFixed(2)+"",a,c,f;return o=new Wl({props:{values:t[6]}}),{c(){e=A("div"),i=A("div"),i.textContent="V bitrate",n=D(),U(o.$$.fragment),s=D(),l=A("span"),a=De(r),c=De(" Kbps"),u(i,"class","v-1fypj5i"),u(e,"class","v-1fypj5i")},m(p,h){I(p,e,h),m(e,i),m(e,n),H(o,e,null),m(e,s),m(e,l),m(l,a),m(l,c),f=!0},p(p,h){const v={};h&64&&(v.values=p[6]),o.$set(v),(!f||h&1)&&r!==(r=p[0].bitrate.toFixed(2)+"")&&xe(a,r)},i(p){f||(d(o.$$.fragment,p),f=!0)},o(p){b(o.$$.fragment,p),f=!1},d(p){p&&S(e),F(o)}}}function A0(t){let e,i,n,o,s,l,r,a,c=t[0].version+"",f,p,h,v,k,_,P,C,T,y,M,oe,Y,R,ee,Q,w,$,X,z,W,B,J,E,O,Ce,ze,Ee,Ve,Pe,me,Z=t[0].id&&ys(t),de=t[0].provider&&Cs(t),Se=t[0].viewport&&Ts(t),Fe=t[0].videoSize&&Ps(t),je=t[0].cdn&&Ss(t),re=t[0].volume&&Is(t),we=t[0].buffer&&As(t),Me=(t[0].currentVideoSegmentLength||t[0].currentAudioSegmentLength)&&Es(t),We=t[0].speed&&Vs(t),ie=t[0].bitrate&&Ms(t);return O=new Wl({props:{values:t[4]}}),{c(){e=A("div"),i=A("button"),i.textContent="[x]",n=D(),o=A("div"),s=A("div"),l=A("div"),l.textContent="Version",r=D(),a=A("span"),f=De(c),p=D(),Z&&Z.c(),h=D(),de&&de.c(),v=D(),Se&&Se.c(),k=D(),Fe&&Fe.c(),_=D(),je&&je.c(),P=D(),re&&re.c(),C=D(),we&&we.c(),T=D(),Me&&Me.c(),y=D(),M=A("div"),oe=A("div"),oe.textContent="Dropped",Y=D(),R=A("span"),ee=De(t[2]),Q=De(" / "),w=De(t[1]),$=De(" frames"),X=D(),We&&We.c(),z=D(),ie&&ie.c(),W=D(),B=A("div"),J=A("div"),J.textContent="FPS",E=D(),U(O.$$.fragment),Ce=D(),ze=A("span"),Ee=De(t[3]),u(i,"class","close v-1fypj5i"),u(i,"title","\u0437\u0430\u043A\u0440\u044B\u0442\u044C"),u(l,"class","v-1fypj5i"),u(s,"class","v-1fypj5i"),u(oe,"class","v-1fypj5i"),u(M,"class","v-1fypj5i"),u(J,"class","v-1fypj5i"),u(B,"class","v-1fypj5i"),u(o,"class","content v-1fypj5i"),u(e,"class","container v-1fypj5i"),u(e,"role","region"),u(e,"aria-label",j("aria_label_debug_panel")),V(e,"container-mobile",t[7])},m(G,ye){I(G,e,ye),m(e,i),m(e,n),m(e,o),m(o,s),m(s,l),m(s,r),m(s,a),m(a,f),m(o,p),Z&&Z.m(o,null),m(o,h),de&&de.m(o,null),m(o,v),Se&&Se.m(o,null),m(o,k),Fe&&Fe.m(o,null),m(o,_),je&&je.m(o,null),m(o,P),re&&re.m(o,null),m(o,C),we&&we.m(o,null),m(o,T),Me&&Me.m(o,null),m(o,y),m(o,M),m(M,oe),m(M,Y),m(M,R),m(R,ee),m(R,Q),m(R,w),m(R,$),m(o,X),We&&We.m(o,null),m(o,z),ie&&ie.m(o,null),m(o,W),m(o,B),m(B,J),m(B,E),H(O,B,null),m(B,Ce),m(B,ze),m(ze,Ee),Ve=!0,Pe||(me=pe(i,"click",nt(t[9])),Pe=!0)},p(G,[ye]){(!Ve||ye&1)&&c!==(c=G[0].version+"")&&xe(f,c),G[0].id?Z?Z.p(G,ye):(Z=ys(G),Z.c(),Z.m(o,h)):Z&&(Z.d(1),Z=null),G[0].provider?de?de.p(G,ye):(de=Cs(G),de.c(),de.m(o,v)):de&&(de.d(1),de=null),G[0].viewport?Se?Se.p(G,ye):(Se=Ts(G),Se.c(),Se.m(o,k)):Se&&(Se.d(1),Se=null),G[0].videoSize?Fe?Fe.p(G,ye):(Fe=Ps(G),Fe.c(),Fe.m(o,_)):Fe&&(Fe.d(1),Fe=null),G[0].cdn?je?je.p(G,ye):(je=Ss(G),je.c(),je.m(o,P)):je&&(je.d(1),je=null),G[0].volume?re?re.p(G,ye):(re=Is(G),re.c(),re.m(o,C)):re&&(re.d(1),re=null),G[0].buffer?we?we.p(G,ye):(we=As(G),we.c(),we.m(o,T)):we&&(we.d(1),we=null),G[0].currentVideoSegmentLength||G[0].currentAudioSegmentLength?Me?Me.p(G,ye):(Me=Es(G),Me.c(),Me.m(o,y)):Me&&(Me.d(1),Me=null),(!Ve||ye&4)&&xe(ee,G[2]),(!Ve||ye&2)&&xe(w,G[1]),G[0].speed?We?(We.p(G,ye),ye&1&&d(We,1)):(We=Vs(G),We.c(),d(We,1),We.m(o,z)):We&&(ce(),b(We,1,1,()=>{We=null}),fe()),G[0].bitrate?ie?(ie.p(G,ye),ye&1&&d(ie,1)):(ie=Ms(G),ie.c(),d(ie,1),ie.m(o,W)):ie&&(ce(),b(ie,1,1,()=>{ie=null}),fe());const se={};ye&16&&(se.values=G[4]),O.$set(se),(!Ve||ye&8)&&xe(Ee,G[3]),(!Ve||ye&128)&&V(e,"container-mobile",G[7])},i(G){Ve||(d(We),d(ie),d(O.$$.fragment,G),Ve=!0)},o(G){b(We),b(ie),b(O.$$.fragment,G),Ve=!1},d(G){G&&S(e),Z&&Z.d(),de&&de.d(),Se&&Se.d(),Fe&&Fe.d(),je&&je.d(),re&&re.d(),we&&we.d(),Me&&Me.d(),We&&We.d(),ie&&ie.d(),F(O),Pe=!1,me()}}}const Ls=({value:t})=>t,Bs=({value:t,title:e})=>`${e} ${((t??0)/1e3).toFixed(2)} s`;function E0(t,e,i){let n;const o=pt(),s=o.ui.debugPanelVisible,l=o.ui.isMobile;N(t,l,y=>i(7,n=y));const r=()=>{Cn.remove(Vl),s.set(!1)};let a=o.actions.internal.getDebugPanelData(),c=o.actions.internal.getVideoElement(),f=0,p=0,h=0;const v=new vl(60),k=new vl(60),_=new vl(60);let P=[],C=[],T=[];return ln(()=>{Cn.set(Vl,"true"),o.actions.internal.startLogging(),c&&(i(2,p=c.getVideoPlaybackQuality().droppedVideoFrames),i(1,f=c.getVideoPlaybackQuality().totalVideoFrames));const y=window.setInterval(()=>{i(0,a=o.actions.internal.getDebugPanelData())},500);let M;return c&&(M=window.setInterval(()=>{if(c){i(2,p=c.getVideoPlaybackQuality().droppedVideoFrames);const oe=c.getVideoPlaybackQuality().totalVideoFrames;i(3,h=oe-f),i(1,f=oe),v.push(h),a.speed&&k.push(a.speed),a.bitrate&&_.push(a.bitrate),i(4,P=v.getValuesFromBottom()),i(5,C=k.getValuesFromBottom()),i(6,T=_.getValuesFromBottom())}},1e3)),()=>{o.actions.internal.stopLogging(),clearInterval(y),M&&clearInterval(M)}}),[a,f,p,h,P,C,T,n,l,r]}class tu extends be{constructor(e){super(),ge(this,e,E0,A0,he,{},I0)}}function V0(t){Ke(t,"v-1ome55p",".close.v-1ome55p{cursor:pointer;opacity:0.8;transition:opacity 0.2s;position:relative;width:16px;height:16px}.close.v-1ome55p:hover{opacity:1}.close.v-1ome55p:before,.close.v-1ome55p:after{position:absolute;left:8px;content:' ';height:16px;width:2px;background-color:var(--white)}.close.v-1ome55p:before{transform:rotate(45deg)}.close.v-1ome55p:after{transform:rotate(-45deg)}")}function M0(t){let e,i,n;return{c(){e=A("div"),u(e,"class","close v-1ome55p")},m(o,s){I(o,e,s),i||(n=pe(e,"click",nt(t[0])),i=!0)},p:q,i:q,o:q,d(o){o&&S(e),i=!1,n()}}}function L0(t){function e(i){uo.call(this,t,i)}return[e]}class B0 extends be{constructor(e){super(),ge(this,e,L0,M0,he,{},V0)}}function R0(t){Ke(t,"v-8jhsry",`.timer.v-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.v-8jhsry:hover{background:rgba(31, 31, 31, .85)
|
|
25
|
-
}.timer-canvas.v-8jhsry{width:50px;height:50px;position:absolute}.timer-play-icon.v-8jhsry{width:22px;height:26px}`)}function N0(t){let e,i,n,o,s,l,r;return{c(){e=A("div"),i=A("canvas"),n=D(),o=L("svg"),s=L("g"),l=L("g"),r=L("path"),u(i,"class","timer-canvas v-8jhsry"),u(i,"width","100"),u(i,"height","100"),u(r,"class","_play"),u(r,"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"),u(r,"fill","#fff"),u(l,"fill-rule","nonzero"),u(s,"fill","none"),u(s,"fill-rule","evenodd"),u(o,"class","timer-play-icon v-8jhsry"),u(o,"viewBox","0 0 24 24"),u(o,"xmlns","http://www.w3.org/2000/svg"),u(e,"class","timer v-8jhsry")},m(a,c){I(a,e,c),m(e,i),t[2](i),m(e,n),m(e,o),m(o,s),m(s,l),m(l,r)},p:q,i:q,o:q,d(a){a&&S(e),t[2](null)}}}const D0=5e3;function z0(t,e,i){let{onTimerEnded:n=Ye}=e,o;ln(()=>{let l;const r=o.getContext("2d");if(!r)return;r.lineWidth=6,r.lineCap="round",r.strokeStyle="#fff";const a=Date.now(),c=()=>{const f=(Date.now()-a)/D0;f<1?(r.clearRect(0,0,100,100),r.beginPath(),r.arc(50,50,47,-Math.PI/2,-Math.PI/2+Math.PI*2*f),r.stroke(),l=requestAnimationFrame(c)):n()};return l=requestAnimationFrame(c),()=>{cancelAnimationFrame(l)}});function s(l){_e[l?"unshift":"push"](()=>{o=l,i(0,o)})}return t.$$set=l=>{"onTimerEnded"in l&&i(1,n=l.onTimerEnded)},[o,n,s]}class O0 extends be{constructor(e){super(),ge(this,e,z0,N0,he,{onTimerEnded:1},R0)}}function H0(t){Ke(t,"v-kisfwc",".overlay.v-kisfwc{width:100%;height:100%;background:rgba(0, 0, 0, 0.72);position:absolute}.next-video.v-kisfwc{position:absolute;top:50%;left:50%;transform:translate(-50%, -50%);display:flex;width:362px;flex-direction:column}.top.v-kisfwc{display:flex;justify-content:space-between}.caption.v-kisfwc{font-size:11px;font-weight:bold;color:var(--white);text-transform:uppercase;opacity:0.8}.row.v-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.v-kisfwc{display:flex;flex-direction:column;flex-basis:50%}.thumb.v-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.v-kisfwc{width:100%;height:100%;background:var(--black);opacity:0.3;position:absolute}.title.v-kisfwc{padding:10px 16px;font-size:12px;font-weight:bold;color:var(--white);line-height:1.6;max-height:52px;overflow:hidden}")}function Rs(t){let e,i;return e=new O0({props:{onTimerEnded:t[2]}}),{c(){U(e.$$.fragment)},m(n,o){H(e,n,o),i=!0},p(n,o){const s={};o&4&&(s.onTimerEnded=n[2]),e.$set(s)},i(n){i||(d(e.$$.fragment,n),i=!0)},o(n){b(e.$$.fragment,n),i=!1},d(n){F(e,n)}}}function F0(t){let e,i,n,o,s,l,r,a,c,f,p,h,v,k,_,P,C,T,y,M,oe;r=new B0({}),r.$on("click",t[4]);let Y=t[3]&&Rs(t);return{c(){e=A("div"),i=D(),n=A("div"),o=A("div"),s=A("div"),s.textContent="\u0441\u043B\u0435\u0434\u0443\u044E\u0449\u0435\u0435 \u0432\u0438\u0434\u0435\u043E",l=D(),U(r.$$.fragment),a=D(),c=A("div"),f=A("div"),p=A("div"),h=A("div"),v=D(),Y&&Y.c(),_=D(),P=A("div"),C=A("div"),T=De(t[0]),u(e,"class","overlay v-kisfwc"),u(s,"class","caption v-kisfwc"),u(o,"class","top v-kisfwc"),u(h,"class","thumb-overlay v-kisfwc"),u(p,"class","thumb v-kisfwc"),u(p,"style",k=`background-image: url('${t[1]}')`),u(f,"class","column v-kisfwc"),u(C,"class","title v-kisfwc"),u(P,"class","column v-kisfwc"),u(c,"class","row v-kisfwc"),u(n,"class","next-video v-kisfwc")},m(R,ee){I(R,e,ee),I(R,i,ee),I(R,n,ee),m(n,o),m(o,s),m(o,l),H(r,o,null),m(n,a),m(n,c),m(c,f),m(f,p),m(p,h),m(p,v),Y&&Y.m(p,null),m(c,_),m(c,P),m(P,C),m(C,T),y=!0,M||(oe=pe(c,"click",function(){yn(t[2])&&t[2].apply(this,arguments)}),M=!0)},p(R,[ee]){t=R,t[3]?Y?(Y.p(t,ee),ee&8&&d(Y,1)):(Y=Rs(t),Y.c(),d(Y,1),Y.m(p,null)):Y&&(ce(),b(Y,1,1,()=>{Y=null}),fe()),(!y||ee&2&&k!==(k=`background-image: url('${t[1]}')`))&&u(p,"style",k),(!y||ee&1)&&xe(T,t[0])},i(R){y||(d(r.$$.fragment,R),d(Y),y=!0)},o(R){b(r.$$.fragment,R),b(Y),y=!1},d(R){R&&(S(e),S(i),S(n)),F(r),Y&&Y.d(),M=!1,oe()}}}function U0(t,e,i){let{title:n}=e,{thumb:o}=e,{playNextVideo:s}=e,l=!0;const r=()=>i(3,l=!1);return t.$$set=a=>{"title"in a&&i(0,n=a.title),"thumb"in a&&i(1,o=a.thumb),"playNextVideo"in a&&i(2,s=a.playNextVideo)},[n,o,s,l,r]}class q0 extends be{constructor(e){super(),ge(this,e,U0,F0,he,{title:0,thumb:1,playNextVideo:2},H0)}}const iu=(t,e)=>Math.min(+(t+e).toFixed(2),1),nu=(t,e)=>Math.max(+(t-e).toFixed(2),0),ou=(t,e,i)=>{const n=iu(e,i);e<1&&t.actions.internal.setVolume(n)},lu=(t,e,i)=>{const n=nu(e,i);e>0&&t.actions.internal.setVolume(n)},zo=({isAudioDisabled:t,audioDisabledHintCallback:e,isAudioAvailable:i,audioIsNotExistHintCallback:n})=>t?(e?.(),!1):i?!0:(n?.(),!1);function Z0(t){Ke(t,"v-10kkmxz",".keyboard-controls.v-10kkmxz{position:absolute;left:0;right:0;top:0;bottom:0}")}function W0(t){let e,i,n,o;const s=t[26].default,l=On(s,t,t[25],null);return{c(){e=A("div"),l&&l.c(),u(e,"class","keyboard-controls v-10kkmxz"),u(e,"tabindex","-1"),u(e,"role","region"),u(e,"aria-label",j("aria_label_video_player"))},m(r,a){I(r,e,a),l&&l.m(e,null),t[27](e),i=!0,n||(o=[pe(e,"keyup",t[17]),pe(e,"keydown",t[16])],n=!0)},p(r,a){l&&l.p&&(!i||a[0]&33554432)&&Fn(l,s,r,r[25],i?Hn(s,r[25],a,null):Un(r[25]),null)},i(r){i||(d(l,r),i=!0)},o(r){b(l,r),i=!1},d(r){r&&S(e),l&&l.d(r),t[27](null),n=!1,it(o)}}}function K0(t,e,i){let n,o,s,l,r,a,c,f,p,h,v,k,_,P,C,{$$slots:T={},$$scope:y}=e,{isAds:M}=e,{hideContextMenu:oe}=e,{toggleFullscreen:Y}=e,{showHotKeyHelpers:R}=e,{showKeyMap:ee}=e,{fakePlayButtonHandler:Q}=e;const w=pt(),$=cn(),X=w.getLogger().createComponentLog("KeyboardControls component"),z=w.state.playbackState$;N(t,z,ae=>i(31,o=ae));const W=w.ads.playbackState;N(t,W,ae=>i(30,n=ae));const B=w.state.positionExact$;N(t,B,ae=>i(41,k=ae));const J=w.state.duration$;N(t,J,ae=>i(40,v=ae));const E=w.state.volume$;N(t,E,ae=>i(44,C=ae));const O=w.ui.controls.disabledControls$;N(t,O,ae=>i(39,h=ae));const Ce=w.state.muted$;N(t,Ce,ae=>i(34,r=ae));const ze=w.state.currentSubtitle$;N(t,ze,ae=>i(33,l=ae));const Ee=w.state.currentPlaybackRate$;N(t,Ee,ae=>i(42,_=ae));const Ve=w.state.availablePlaybackRates$;N(t,Ve,ae=>i(43,P=ae));const Pe=w.ui.contextMenu.openedByHotKey$,me=w.ui.contextMenu.lastActiveElem$,Z=w.ui.contextMenu.visible$,de=w.ui.contextMenu.position$,Se=w.state.isEnded$;N(t,Se,ae=>i(36,c=ae));const Fe=w.ui.overlayContainer$;N(t,Fe,ae=>i(32,s=ae));const je=w.callbacks?.onAudioDoesNotExistHint,re=w.callbacks?.onAudioDisabledHint,we=w.state.isAudioAvailable$;N(t,we,ae=>i(35,a=ae));const Me=w.state.isAudioDisabled,We=w.state.isInteractiveTime$;N(t,We,ae=>i(38,p=ae));const{showInteractiveTimeIndicatorTooltip$:ie}=Ao();N(t,ie,ae=>i(37,f=ae));let G=0,ye=!0,se;const ve=()=>se?.focus(),Oe=ae=>(ae!==ye&&(ye=ae,G=0),G+=1,($.controls.seekStepKeyboard+$.controls.seekStepKeyboard*G)/1e3),$e=ae=>{const lt=ae.target,_t=lt?.getAttribute("role")?.includes("menuitem"),at=lt.classList.contains("btn"),ht=ae.code;if(at&&ht===Te.Space)return;const Ct=rf.has(ht);if(_t&&Ct)return;const Le=!sf.has(ht);if(ae.ctrlKey&&Le||ae.altKey&&Le||ae.metaKey)return;const qt=_t&&ht===Te.Escape;af.has(ht)||qt||oe();const ue=o===Ft.PLAYING||o===Ft.PAUSED,ft=M&&(n===xt.PAUSED||n===xt.PLAYING),vt=!ft&&!h.has(rt.TIMELINE);if(ue||ft)switch(X({message:`key down, code: ${ht}`}),ht){case Te.KeyJ:case Te.ArrowLeft:{if(!vt)break;if(ae.ctrlKey||ae.altKey){const Ze=w.actions.internal.getPrevEpisode();w.actions.internal.seekToPrevEpisode(Ze),Ze&&R({type:Xe.EPISODE_PREV,text:Ze.text}),ae.preventDefault()}else{const Ze=ae.shiftKey?Oe(!1):$.controls.seekStepKeyboard/1e3,et=Math.max(k-Ze,0);k>0&&(w.actions.internal.seekTime(et,Lt.DOUBLE_TAP),R({type:Xe.BACKWARD_SEEK,text:Ze.toString()}),ae.preventDefault())}break}case Te.KeyL:case Te.ArrowRight:{if(!vt)break;if(ae.ctrlKey||ae.altKey){const Ze=w.actions.internal.getNextEpisode();w.actions.internal.seekToNextEpisode(Ze),Ze&&R({type:Xe.EPISODE_NEXT,text:Ze.text}),ae.preventDefault()}else{const Ze=ae.shiftKey?Oe(!0):$.controls.seekStepKeyboard/1e3,et=Math.min(k+Ze,v);Math.round(k)<Math.round(v)&&(w.actions.internal.seekTime(et,Lt.DOUBLE_TAP),R({type:Xe.FORWARD_SEEK,text:Ze.toString()}),ae.preventDefault())}break}case Te.ArrowUp:{if(zo({isAudioDisabled:Me,audioDisabledHintCallback:re,isAudioAvailable:a,audioIsNotExistHintCallback:je})){const Ze=C,et=$.controls.volumeStepKeyboard,gt=Ze<=1;if(ou(w,Ze,et),gt){const kt=Math.round(iu(Ze,et)*100).toString();R({type:Xe.VOLUME,t:{key:"hotkey_helper_current_volume",value:kt}})}}ae.preventDefault();break}case Te.ArrowDown:{if(zo({isAudioDisabled:Me,audioDisabledHintCallback:re,isAudioAvailable:a,audioIsNotExistHintCallback:je})){const Ze=C,et=$.controls.volumeStepKeyboard,gt=Ze>=0;if(lu(w,Ze,et),gt){const kt=Math.round(nu(Ze,et)*100).toString();R({type:Xe.VOLUME,t:{key:"hotkey_helper_current_volume",value:kt}})}}ae.preventDefault();break}case Te.Comma:{if(ae.shiftKey){w.actions.internal.decrementPlaybackRate();const Ze=P.find(et=>et.value===_);R({type:Xe.RATE_DOWN,text:Ze?.displayValue}),ae.preventDefault()}else{if(ft||o!==Ft.PAUSED)break;const Ze=Math.max(k-$.controls.seekStepFrame/1e3,0);k>0&&(R({type:Xe.BACKWARD_SEEK}),w.actions.internal.clearDelayedBufferingCheckTimeout(),w.actions.internal.seekTime(Ze,Lt.DOUBLE_TAP),ae.preventDefault())}break}case Te.Period:{if(ae.shiftKey){w.actions.internal.incrementPlaybackRate();const Ze=P.find(et=>et.value===_);R({type:Xe.RATE_UP,text:Ze?.displayValue}),ae.preventDefault()}else{if(ft||o!==Ft.PAUSED)break;const Ze=Math.min(k+$.controls.seekStepFrame/1e3,v);k<v&&(R({type:Xe.FORWARD_SEEK}),w.actions.internal.clearDelayedBufferingCheckTimeout(),w.actions.internal.seekTime(Ze,Lt.DOUBLE_TAP),ae.preventDefault())}break}case Te.KeyK:case Te.Space:if(!h.has(rt.PLAY_BUTTON))if(p&&f&&ie.set(!1),Q)Q();else{w.actions.internal.togglePlay();let Ze=Xe.PLAY;o===Ft.PAUSED?Ze=Xe.PAUSE:c&&(Ze=Xe.REPLAY),R({type:Ze})}ae.preventDefault();break;case Te.KeyM:{zo({isAudioDisabled:Me,audioDisabledHintCallback:re,isAudioAvailable:a,audioIsNotExistHintCallback:je})&&(R({type:r?Xe.VOLUME:Xe.MUTE}),w.actions.internal.toggleMuted()),ae.preventDefault();break}case Te.KeyF:Y(),ae.preventDefault();break;case Te.KeyC:w.actions.internal.toggleSubtitle(),l.value!=="off"?R({type:Xe.SUBTITLES_ON,text:l?.displayValue}):R({type:Xe.SUBTITLES_OFF}),ae.preventDefault();break;case Te.KeyI:w.actions.internal.togglePictureInPicture(),ae.preventDefault();break;case Te.Digit1:case Te.Numpad1:if(ae.shiftKey){const Ze=m0(s);de.set(Ze),me.set(lt),Pe.set(!0),Z.set(!0),ae.preventDefault();break}R(),w.actions.internal.seekToPercent(.1,Lt.DOUBLE_TAP),ae.preventDefault();break;case Te.Digit2:case Te.Numpad2:R(),w.actions.internal.seekToPercent(.2,Lt.DOUBLE_TAP),ae.preventDefault();break;case Te.Digit3:case Te.Numpad3:R(),w.actions.internal.seekToPercent(.3,Lt.DOUBLE_TAP),ae.preventDefault();break;case Te.Digit4:case Te.Numpad4:R(),w.actions.internal.seekToPercent(.4,Lt.DOUBLE_TAP),ae.preventDefault();break;case Te.Digit5:case Te.Numpad5:R(),w.actions.internal.seekToPercent(.5,Lt.DOUBLE_TAP),ae.preventDefault();break;case Te.Digit6:case Te.Numpad6:R(),w.actions.internal.seekToPercent(.6,Lt.DOUBLE_TAP),ae.preventDefault();break;case Te.Digit7:case Te.Numpad7:R(),w.actions.internal.seekToPercent(.7,Lt.DOUBLE_TAP),ae.preventDefault();break;case Te.Digit8:case Te.Numpad8:R(),w.actions.internal.seekToPercent(.8,Lt.DOUBLE_TAP),ae.preventDefault();break;case Te.Digit9:case Te.Numpad9:R(),w.actions.internal.seekToPercent(.9,Lt.DOUBLE_TAP),ae.preventDefault();break;case Te.Digit0:case Te.Numpad0:R(),w.actions.internal.seekToPercent(0,Lt.DOUBLE_TAP),ae.preventDefault();break;case Te.Slash:{ae.shiftKey&&$.features.hotKeyMapModal&&(ee(),ae.preventDefault());break}case Te.ShiftLeft:case Te.ShiftRight:ae.preventDefault();break;case Te.Tab:case Te.Escape:case Te.Enter:break;default:Sc(ht);break}},ot=ae=>{const lt=ae.code;if(ae.ctrlKey||ae.altKey||ae.metaKey)return;const _t=o===Ft.PLAYING||o===Ft.PAUSED,at=M&&(n===xt.PAUSED||n===xt.PLAYING);if(_t||at)switch(lt){case Te.ShiftLeft:case Te.ShiftRight:G=0;break}};function Be(ae){_e[ae?"unshift":"push"](()=>{se=ae,i(0,se)})}return t.$$set=ae=>{"isAds"in ae&&i(18,M=ae.isAds),"hideContextMenu"in ae&&i(19,oe=ae.hideContextMenu),"toggleFullscreen"in ae&&i(20,Y=ae.toggleFullscreen),"showHotKeyHelpers"in ae&&i(21,R=ae.showHotKeyHelpers),"showKeyMap"in ae&&i(22,ee=ae.showKeyMap),"fakePlayButtonHandler"in ae&&i(23,Q=ae.fakePlayButtonHandler),"$$scope"in ae&&i(25,y=ae.$$scope)},[se,z,W,B,J,E,O,Ce,ze,Ee,Ve,Se,Fe,we,We,ie,$e,ot,M,oe,Y,R,ee,Q,ve,y,T,Be]}class j0 extends be{constructor(e){super(),ge(this,e,K0,W0,he,{isAds:18,hideContextMenu:19,toggleFullscreen:20,showHotKeyHelpers:21,showKeyMap:22,fakePlayButtonHandler:23,focus:24},Z0,[-1,-1])}get focus(){return this.$$.ctx[24]}}function G0(t){Ke(t,"v-8nkw5s",".container.v-8nkw5s.v-8nkw5s{position:absolute;top:50%;left:50%;transform:translate(-50%, -50%);pointer-events:none;display:flex}.dot.v-8nkw5s.v-8nkw5s:nth-child(1){animation-delay:calc(0 * 180ms)}.dot.v-8nkw5s.v-8nkw5s:nth-child(2){animation-delay:calc(1 * 180ms)}.dot.v-8nkw5s.v-8nkw5s:nth-child(3){animation-delay:calc(2 * 180ms)}@keyframes v-8nkw5s-dot_animation{0%{opacity:0.2}30%{opacity:1}100%{opacity:0.2}}.dot.v-8nkw5s.v-8nkw5s{border-radius:4px;width:8px;height:8px;background:var(--white);animation-duration:750ms;animation-name:v-8nkw5s-dot_animation;animation-iteration-count:infinite}.dot.v-8nkw5s+.dot.v-8nkw5s{margin-left:4px}")}function Y0(t){let e;return{c(){e=A("div"),e.innerHTML='<div class="dot v-8nkw5s"></div> <div class="dot v-8nkw5s"></div> <div class="dot v-8nkw5s"></div>',u(e,"class","container v-8nkw5s")},m(i,n){I(i,e,n)},p:q,i:q,o:q,d(i){i&&S(e)}}}class su extends be{constructor(e){super(),ge(this,e,null,Y0,he,{},G0)}}function Q0(t){let e,i,n,o,s,l,r,a,c,f,p,h,v;return{c(){e=L("svg"),i=L("g"),n=L("path"),o=L("path"),s=L("defs"),l=L("filter"),r=L("feFlood"),a=L("feColorMatrix"),c=L("feOffset"),f=L("feGaussianBlur"),p=L("feColorMatrix"),h=L("feBlend"),v=L("feBlend"),u(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.727 7.536 6.264Z"),u(n,"fill","#fff"),u(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.374 7.713 6.087Z"),u(o,"stroke","#000"),u(o,"stroke-opacity",".12"),u(o,"stroke-width",".5"),u(i,"filter","url(#a)"),u(r,"flood-opacity","0"),u(r,"result","BackgroundImageFix"),u(a,"in","SourceAlpha"),u(a,"values","0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0"),u(a,"result","hardAlpha"),u(f,"stdDeviation","2.5"),u(p,"values","0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.16 0"),u(h,"in2","BackgroundImageFix"),u(h,"result","effect1_dropShadow_2422_111980"),u(v,"in","SourceGraphic"),u(v,"in2","effect1_dropShadow_2422_111980"),u(v,"result","shape"),u(l,"id","a"),u(l,"x",".5"),u(l,"y",".5"),u(l,"width","23"),u(l,"height","23"),u(l,"filterUnits","userSpaceOnUse"),u(l,"color-interpolation-filters","sRGB"),u(e,"width","24"),u(e,"height","24"),u(e,"fill","none"),u(e,"xmlns","http://www.w3.org/2000/svg"),u(e,"aria-hidden","true"),u(e,"data-testid","cross-icon")},m(k,_){I(k,e,_),m(e,i),m(i,n),m(i,o),m(e,s),m(s,l),m(l,r),m(l,a),m(l,c),m(l,f),m(l,p),m(l,h),m(l,v)},p:q,i:q,o:q,d(k){k&&S(e)}}}class X0 extends be{constructor(e){super(),ge(this,e,null,Q0,he,{})}}function J0(t){Ke(t,"v-1anemql",".btn.v-1anemql{padding:8px;margin:0;height:var(--controls-height);display:flex;flex-direction:row;align-items:center}.w-max.v-1anemql{width:100%}.btn--live.v-1anemql{padding:10px 4px}.btn-m.v-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.v-1anemql{width:var(--big-play-size);height:var(--big-play-size);display:flex;align-items:center;justify-content:center;position:relative;padding:16px}.btn.v-1anemql:disabled{cursor:default;pointer-events:none}.btn.v-1anemql:not(.btn-full-opacity):disabled{opacity:0.4}.btn.v-1anemql:not(:disabled):hover{opacity:0.8}.pr-0.v-1anemql{padding-right:0}.pl-0.v-1anemql{padding-left:0}")}function x0(t){let e,i,n,o,s,l,r,a,c,f,p,h;const v=t[14].default,k=On(v,t,t[13],null);return{c(){e=A("button"),k&&k.c(),u(e,"class",i="btn "+t[1]+" v-1anemql"),u(e,"style",n=t[2]||null),e.disabled=o=t[3]??null,u(e,"aria-hidden",s=t[5]??null),u(e,"aria-label",l=t[6]??null),u(e,"aria-keyshortcuts",r=t[7]??null),u(e,"aria-expanded",a=t[8]??null),u(e,"data-testid",c=t[4]??null),u(e,"tabindex",t[9])},m(_,P){I(_,e,P),k&&k.m(e,null),t[16](e),f=!0,p||(h=[pe(e,"pointerdown",nt($t(t[15]))),pe(e,"click",nt($t(function(){yn(t[10]===Ye?null:t[10])&&(t[10]===Ye?null:t[10]).apply(this,arguments)}))),pe(e,"focus",$t(function(){yn(t[11]===Ye?null:t[11])&&(t[11]===Ye?null:t[11]).apply(this,arguments)})),pe(e,"blur",$t(function(){yn(t[12]===Ye?null:t[12])&&(t[12]===Ye?null:t[12]).apply(this,arguments)}))],p=!0)},p(_,[P]){t=_,k&&k.p&&(!f||P&8192)&&Fn(k,v,t,t[13],f?Hn(v,t[13],P,null):Un(t[13]),null),(!f||P&2&&i!==(i="btn "+t[1]+" v-1anemql"))&&u(e,"class",i),(!f||P&4&&n!==(n=t[2]||null))&&u(e,"style",n),(!f||P&8&&o!==(o=t[3]??null))&&(e.disabled=o),(!f||P&32&&s!==(s=t[5]??null))&&u(e,"aria-hidden",s),(!f||P&64&&l!==(l=t[6]??null))&&u(e,"aria-label",l),(!f||P&128&&r!==(r=t[7]??null))&&u(e,"aria-keyshortcuts",r),(!f||P&256&&a!==(a=t[8]??null))&&u(e,"aria-expanded",a),(!f||P&16&&c!==(c=t[4]??null))&&u(e,"data-testid",c),(!f||P&512)&&u(e,"tabindex",t[9])},i(_){f||(d(k,_),f=!0)},o(_){b(k,_),f=!1},d(_){_&&S(e),k&&k.d(_),t[16](null),p=!1,it(h)}}}function $0(t,e,i){let{$$slots:n={},$$scope:o}=e,{className:s=""}=e,{style:l=""}=e,{disabled:r=void 0}=e,{testId:a=void 0}=e,{ariaHidden:c=void 0}=e,{ariaLabel:f=void 0}=e,{ref:p=void 0}=e,{ariaKeyShortCut:h=void 0}=e,{ariaExpanded:v=void 0}=e,{tabIndex:k=0}=e,{click:_=Ye}=e,{focus:P=Ye}=e,{blur:C=Ye}=e;function T(M){uo.call(this,t,M)}function y(M){_e[M?"unshift":"push"](()=>{p=M,i(0,p)})}return t.$$set=M=>{"className"in M&&i(1,s=M.className),"style"in M&&i(2,l=M.style),"disabled"in M&&i(3,r=M.disabled),"testId"in M&&i(4,a=M.testId),"ariaHidden"in M&&i(5,c=M.ariaHidden),"ariaLabel"in M&&i(6,f=M.ariaLabel),"ref"in M&&i(0,p=M.ref),"ariaKeyShortCut"in M&&i(7,h=M.ariaKeyShortCut),"ariaExpanded"in M&&i(8,v=M.ariaExpanded),"tabIndex"in M&&i(9,k=M.tabIndex),"click"in M&&i(10,_=M.click),"focus"in M&&i(11,P=M.focus),"blur"in M&&i(12,C=M.blur),"$$scope"in M&&i(13,o=M.$$scope)},[p,s,l,r,a,c,f,h,v,k,_,P,C,o,n,T,y]}class gi extends be{constructor(e){super(),ge(this,e,$0,x0,he,{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},J0)}}function ed(t){Ke(t,"v-1witlsj",".modal-overlay.v-1witlsj{position:absolute;top:0;bottom:0;left:0;right:0;background:transparent;display:flex;align-items:center;justify-content:center}.modal-container.v-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.v-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.v-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.v-1witlsj{overflow-y:auto;overflow-x:hidden;margin:8px 4px 8px 0;height:100%}.modal-scroll.v-1witlsj::-webkit-scrollbar{width:8px}.modal-scroll.v-1witlsj::-webkit-scrollbar-track{box-shadow:none;background-color:transparent;border-radius:4px;margin-right:2px}.modal-scroll.v-1witlsj::-webkit-scrollbar-thumb{min-height:40px;border-radius:5px;background-color:#666;border:1px solid transparent;background-clip:padding-box}.modal-scroll.v-1witlsj::-webkit-scrollbar-thumb:hover{background-color:#777}.modal-main.v-1witlsj{margin:-8px -4px 0 0}")}function Ns(t){let e,i,n,o,s,l=t[2]&&Ds(t);return{c(){e=A("div"),i=A("h3"),n=De(t[3]),o=D(),l&&l.c(),u(i,"class","modal-title v-1witlsj"),u(e,"class","modal-header v-1witlsj")},m(r,a){I(r,e,a),m(e,i),m(i,n),m(e,o),l&&l.m(e,null),s=!0},p(r,a){(!s||a&8)&&xe(n,r[3]),r[2]?l?(l.p(r,a),a&4&&d(l,1)):(l=Ds(r),l.c(),d(l,1),l.m(e,null)):l&&(ce(),b(l,1,1,()=>{l=null}),fe())},i(r){s||(d(l),s=!0)},o(r){b(l),s=!1},d(r){r&&S(e),l&&l.d()}}}function Ds(t){let e,i;return e=new gi({props:{click:t[0],testId:"close-modal",style:"padding: 0; height: 24px; width: 24px",ariaLabel:j("hotkey_map_modal_close_btn_text"),$$slots:{default:[td]},$$scope:{ctx:t}}}),{c(){U(e.$$.fragment)},m(n,o){H(e,n,o),i=!0},p(n,o){const s={};o&1&&(s.click=n[0]),o&32&&(s.$$scope={dirty:o,ctx:n}),e.$set(s)},i(n){i||(d(e.$$.fragment,n),i=!0)},o(n){b(e.$$.fragment,n),i=!1},d(n){F(e,n)}}}function td(t){let e,i;return e=new X0({}),{c(){U(e.$$.fragment)},m(n,o){H(e,n,o),i=!0},i(n){i||(d(e.$$.fragment,n),i=!0)},o(n){b(e.$$.fragment,n),i=!1},d(n){F(e,n)}}}function id(t){let e,i,n,o,s,l,r=t[1]&&Ns(t);const a=t[4].default,c=On(a,t,t[5],null);return{c(){e=A("div"),i=A("div"),r&&r.c(),n=D(),o=A("div"),s=A("div"),c&&c.c(),u(s,"class","modal-main v-1witlsj"),u(o,"class","modal-scroll v-1witlsj"),u(i,"class","modal-container v-1witlsj"),u(e,"class","modal-overlay v-1witlsj")},m(f,p){I(f,e,p),m(e,i),r&&r.m(i,null),m(i,n),m(i,o),m(o,s),c&&c.m(s,null),l=!0},p(f,[p]){f[1]?r?(r.p(f,p),p&2&&d(r,1)):(r=Ns(f),r.c(),d(r,1),r.m(i,n)):r&&(ce(),b(r,1,1,()=>{r=null}),fe()),c&&c.p&&(!l||p&32)&&Fn(c,a,f,f[5],l?Hn(a,f[5],p,null):Un(f[5]),null)},i(f){l||(d(r),d(c,f),l=!0)},o(f){b(r),b(c,f),l=!1},d(f){f&&S(e),r&&r.d(),c&&c.d(f)}}}function nd(t,e,i){let{$$slots:n={},$$scope:o}=e,{onClose:s}=e,{showHeader:l=!0}=e,{showCloseCross:r=!0}=e,{title:a}=e;return t.$$set=c=>{"onClose"in c&&i(0,s=c.onClose),"showHeader"in c&&i(1,l=c.showHeader),"showCloseCross"in c&&i(2,r=c.showCloseCross),"title"in c&&i(3,a=c.title),"$$scope"in c&&i(5,o=c.$$scope)},[s,l,r,a,n,o]}class od extends be{constructor(e){super(),ge(this,e,nd,id,he,{onClose:0,showHeader:1,showCloseCross:2,title:3},ed)}}const ld=new Set(["BR"]),zs=t=>{const e=document.createElement("DIV");e.innerHTML=t;const i=e.querySelectorAll("*");let n=i.length;for(;n--;){const o=i[n],s=o.tagName;ld.has(s)||o.parentElement?.removeChild(o)}return e.innerHTML};function sd(t){Ke(t,"v-quklnq",".hot-key-map.v-quklnq{color:var(--black);box-sizing:border-box;overflow-x:hidden}.hot-key-map-group.v-quklnq{border-bottom:1px solid var(--white-alpha-24);margin:0 20px 0 16px}.hot-key-map-group.v-quklnq:last-child{border-bottom:none}.hot-key-map-group-title.v-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.v-quklnq,.hot-key-map-item.v-quklnq{padding:12px 0;margin:0;width:100%}.hot-key-map-group-items.v-quklnq{box-sizing:border-box;list-style:none;padding:0;margin:0}.hot-key-map-item.v-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.v-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.v-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.v-quklnq,.hot-key-map-item-value.v-quklnq{font-feature-settings:'clig' off, 'liga' off;font-size:13px;font-style:normal;font-weight:400;line-height:16px}")}function Os(t,e,i){const n=t.slice();return n[5]=e[i].title,n[6]=e[i].items,n}function Hs(t,e,i){const n=t.slice();return n[9]=e[i].description,n[10]=e[i].value,n}function Fs(t){let e,i,n=zs(t[9])+"",o,s,l=t[10]+"",r,a;return{c(){e=A("li"),i=A("span"),o=D(),s=A("span"),r=De(l),a=D(),u(i,"class","hot-key-map-item-description v-quklnq"),u(s,"class","hot-key-map-item-value v-quklnq"),u(e,"class","hot-key-map-item v-quklnq")},m(c,f){I(c,e,f),m(e,i),i.innerHTML=n,m(e,o),m(e,s),m(s,r),m(e,a)},p(c,f){f&1&&n!==(n=zs(c[9])+"")&&(i.innerHTML=n),f&1&&l!==(l=c[10]+"")&&xe(r,l)},d(c){c&&S(e)}}}function Us(t){let e,i,n=t[5]+"",o,s,l,r,a=Ut(t[6]),c=[];for(let f=0;f<a.length;f+=1)c[f]=Fs(Hs(t,a,f));return{c(){e=A("div"),i=A("h5"),o=De(n),s=D(),l=A("ul");for(let f=0;f<c.length;f+=1)c[f].c();r=D(),u(i,"class","hot-key-map-group-title v-quklnq"),u(l,"class","hot-key-map-group-items v-quklnq"),u(e,"class","hot-key-map-group v-quklnq")},m(f,p){I(f,e,p),m(e,i),m(i,o),m(e,s),m(e,l);for(let h=0;h<c.length;h+=1)c[h]&&c[h].m(l,null);m(e,r)},p(f,p){if(p&1&&n!==(n=f[5]+"")&&xe(o,n),p&1){a=Ut(f[6]);let h;for(h=0;h<a.length;h+=1){const v=Hs(f,a,h);c[h]?c[h].p(v,p):(c[h]=Fs(v),c[h].c(),c[h].m(l,null))}for(;h<c.length;h+=1)c[h].d(1);c.length=a.length}},d(f){f&&S(e),Tn(c,f)}}}function rd(t){let e,i=Ut(t[0].groups),n=[];for(let o=0;o<i.length;o+=1)n[o]=Us(Os(t,i,o));return{c(){e=A("div");for(let o=0;o<n.length;o+=1)n[o].c();u(e,"class","hot-key-map v-quklnq")},m(o,s){I(o,e,s);for(let l=0;l<n.length;l+=1)n[l]&&n[l].m(e,null)},p(o,s){if(s&1){i=Ut(o[0].groups);let l;for(l=0;l<i.length;l+=1){const r=Os(o,i,l);n[l]?n[l].p(r,s):(n[l]=Us(r),n[l].c(),n[l].m(e,null))}for(;l<n.length;l+=1)n[l].d(1);n.length=i.length}},d(o){o&&S(e),Tn(n,o)}}}function ad(t){let e,i;return e=new od({props:{title:t[0].title,onClose:t[2],$$slots:{default:[rd]},$$scope:{ctx:t}}}),{c(){U(e.$$.fragment)},m(n,o){H(e,n,o),i=!0},p(n,[o]){const s={};o&1&&(s.title=n[0].title),o&8193&&(s.$$scope={dirty:o,ctx:n}),e.$set(s)},i(n){i||(d(e.$$.fragment,n),i=!0)},o(n){b(e.$$.fragment,n),i=!1},d(n){F(e,n)}}}function ud(t,e,i){let n;const o=pt(),{data:s,show:l}=o.ui.modals.hotKeyMap;return N(t,s,a=>i(0,n=a)),[n,s,()=>{l.set(!1)}]}class cd extends be{constructor(e){super(),ge(this,e,ud,ad,he,{},sd)}}function fd(t){Ke(t,"v-1oe0j8n",".pillow.v-1oe0j8n{background-color:#679FF8;color:var(--white);font-size:6px;font-weight:600;-webkit-font-smoothing:antialiased;padding:2px 4px;border-radius:12px}")}function dd(t){let e,i;const n=t[1].default,o=On(n,t,t[0],null);return{c(){e=A("div"),o&&o.c(),u(e,"class","pillow v-1oe0j8n")},m(s,l){I(s,e,l),o&&o.m(e,null),i=!0},p(s,[l]){o&&o.p&&(!i||l&1)&&Fn(o,n,s,s[0],i?Hn(n,s[0],l,null):Un(s[0]),null)},i(s){i||(d(o,s),i=!0)},o(s){b(o,s),i=!1},d(s){s&&S(e),o&&o.d(s)}}}function md(t,e,i){let{$$slots:n={},$$scope:o}=e;return t.$$set=s=>{"$$scope"in s&&i(0,o=s.$$scope)},[o,n]}class pd extends be{constructor(e){super(),ge(this,e,md,dd,he,{},fd)}}function hd(t){let e,i,n;return{c(){e=L("svg"),i=L("path"),n=L("path"),u(i,"d","M5.517 5c.325 0 .516-.198.516-.536v-.97l.492-.517 1.46 1.74c.16.205.304.283.516.283A.491.491 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.536Z"),u(i,"fill","currentColor"),u(n,"fill-rule","evenodd"),u(n,"clip-rule","evenodd"),u(n,"d","m2.551 1.052-1.51 2.052h1.51V1.052ZM3.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-.9H3.5Z"),u(n,"fill","currentColor"),u(e,"width","9"),u(e,"height","5"),u(e,"fill","none"),u(e,"xmlns","http://www.w3.org/2000/svg")},m(o,s){I(o,e,s),m(e,i),m(e,n)},p:q,i:q,o:q,d(o){o&&S(e)}}}class gd extends be{constructor(e){super(),ge(this,e,null,hd,he,{})}}function bd(t){let e,i,n;return{c(){e=L("svg"),i=L("path"),n=L("path"),u(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.537Z"),u(i,"fill","currentColor"),u(n,"fill-rule","evenodd"),u(n,"clip-rule","evenodd"),u(n,"d","M2 0c-.353 0-.671.057-.952.173a1.492 1.492 0 0 0-.654.484c-.154.208-.23.445-.23.71 0 .423.208.756.613.995-.23.112-.412.258-.547.44-.154.203-.23.441-.23.71 0 .288.084.548.252.778l.001.001c.173.224.412.398.712.523C1.267 4.939 1.612 5 2 5c.388 0 .733-.061 1.035-.186.3-.125.537-.299.705-.524.174-.23.26-.49.26-.777 0-.27-.076-.508-.23-.711a1.448 1.448 0 0 0-.552-.44c.409-.235.618-.569.618-.994a1.14 1.14 0 0 0-.238-.711 1.436 1.436 0 0 0-.653-.484A2.427 2.427 0 0 0 2 0Zm-.573.964C1.563.86 1.75.804 2 .804c.25 0 .434.055.564.16h.001a.512.512 0 0 1 .204.43c0 .19-.07.333-.204.437-.13.105-.315.161-.565.161-.25 0-.437-.056-.573-.161a.519.519 0 0 1-.203-.437c0-.185.07-.326.203-.43Zm-.345 2.522c0-.217.08-.381.233-.503.16-.122.385-.188.685-.188.3 0 .522.066.677.188.16.122.24.287.24.503a.628.628 0 0 1-.24.523c-.155.122-.377.188-.677.188-.3 0-.524-.065-.684-.187a.637.637 0 0 1-.234-.524Z"),u(n,"fill","currentColor"),u(e,"width","9"),u(e,"height","5"),u(e,"fill","none"),u(e,"xmlns","http://www.w3.org/2000/svg")},m(o,s){I(o,e,s),m(e,i),m(e,n)},p:q,i:q,o:q,d(o){o&&S(e)}}}class _d extends be{constructor(e){super(),ge(this,e,null,bd,he,{})}}function vd(t){let e,i;return{c(){e=L("svg"),i=L("path"),u(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.54Zm.516-.854V.852H6.5C7.41.852 8 1.468 8 2.5c0 1.066-.577 1.646-1.5 1.646h-.468ZM.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 5Z"),u(i,"fill","currentColor"),u(e,"width","9"),u(e,"height","5"),u(e,"fill","none"),u(e,"xmlns","http://www.w3.org/2000/svg")},m(n,o){I(n,e,o),m(e,i)},p:q,i:q,o:q,d(n){n&&S(e)}}}class kd extends be{constructor(e){super(),ge(this,e,null,vd,he,{})}}function wd(t){let e,i;return{c(){e=L("svg"),i=L("path"),u(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.54Zm.516-.854V.852h.468c.91 0 1.5.616 1.5 1.648 0 1.066-.577 1.646-1.5 1.646h-.468ZM4.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.471ZM.516 5c.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 5Z"),u(i,"fill","currentColor"),u(e,"width","13"),u(e,"height","5"),u(e,"fill","none"),u(e,"xmlns","http://www.w3.org/2000/svg")},m(n,o){I(n,e,o),m(e,i)},p:q,i:q,o:q,d(n){n&&S(e)}}}class ru extends be{constructor(e){super(),ge(this,e,null,wd,he,{})}}function yd(t){let e,i,n;return{c(){e=L("svg"),i=L("path"),n=L("path"),u(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.54Zm.516-.854V1.602h.468c.91 0 1.5.616 1.5 1.648 0 1.066-.577 1.646-1.5 1.646h-.468ZM6.516 5.75c.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.471Z"),u(i,"fill","currentColor"),u(n,"fill-rule","evenodd"),u(n,"clip-rule","evenodd"),u(n,"d","M3.338 5.659a3.9 3.9 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.554l-.246-.368Zm-.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-.02Z"),u(n,"fill","currentColor"),u(e,"width","15"),u(e,"height","7"),u(e,"fill","none"),u(e,"xmlns","http://www.w3.org/2000/svg")},m(o,s){I(o,e,s),m(e,i),m(e,n)},p:q,i:q,o:q,d(o){o&&S(e)}}}class au extends be{constructor(e){super(),ge(this,e,null,yd,he,{})}}const Io=t=>{switch(t){case ko.Q_720P:return kd;case ko.Q_1080P:return ru;case ko.Q_1440P:return au;case ko.Q_2160P:return gd;case ko.Q_4320P:return _d}};function Cd(t){Ke(t,"v-1fzhlx0",".icon.v-1fzhlx0{display:flex;position:relative;width:24px;height:24px}.icon.v-1fzhlx0 .pillow{position:absolute;top:1px;right:-9px}.icon.triple.v-1fzhlx0 .pillow{right:-13px}")}function Td(t){let e,i,n,o,s,l,r=t[1]&&qs(t);return{c(){e=A("div"),r&&r.c(),i=D(),n=L("svg"),o=L("path"),s=L("path"),u(o,"fill-rule","evenodd"),u(o,"clip-rule","evenodd"),u(o,"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.466.466 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.466.466 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.465.465 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-.438.041.01.083.028.12.05 1.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.467.467 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.598.598 0 0 0-.413-.519 7.464 7.464 0 0 1-1.918-.871.58.58 0 0 0-.758.134 4.75 4.75 0 1 1-3.163-7.68.581.581 0 0 0 .633-.44 7.448 7.448 0 0 1 .749-1.967Z"),u(o,"fill","#fff"),u(s,"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.833ZM12 7.25a4.75 4.75 0 1 0 0 9.5 4.75 4.75 0 0 0 0-9.5Z"),u(s,"fill","#fff"),V(s,"hidden",!!t[1]),u(n,"width","24"),u(n,"height","24"),u(n,"fill","none"),u(n,"xmlns","http://www.w3.org/2000/svg"),u(n,"data-testid","settings-icon"),u(e,"class","icon v-1fzhlx0"),u(e,"aria-hidden","true"),V(e,"triple",t[2])},m(a,c){I(a,e,c),r&&r.m(e,null),m(e,i),m(e,n),m(n,o),m(n,s),l=!0},p(a,c){a[1]?r?(r.p(a,c),c&2&&d(r,1)):(r=qs(a),r.c(),d(r,1),r.m(e,i)):r&&(ce(),b(r,1,1,()=>{r=null}),fe()),(!l||c&2)&&V(s,"hidden",!!a[1]),(!l||c&4)&&V(e,"triple",a[2])},i(a){l||(d(r),l=!0)},o(a){b(r),l=!1},d(a){a&&S(e),r&&r.d()}}}function Pd(t){let e,i;return{c(){e=L("svg"),i=L("path"),u(i,"d","M12.722 2.213c1.208.037 1.994.702 2.408 1.954l.065.215.051.191c.018.074.041.153.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.315 3.315 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.006c-.077.002-.16.006-.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.333 3.333 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-.225c.016-.075.03-.157.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.36 3.36 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.081c.068.032.143.063.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.33 6.33 0 0 1-.468 1.134 5.851 5.851 0 0 0-1.147.558 6.45 6.45 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.102-.13.384-.22.786-.27 1.201-.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.204.224.35.484.674.776.968a6.258 6.258 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-.295c.257-.278.585-.574.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.747.747 0 0 0 .178-.046l.093-.039 1.126-.548.139-.073c.3-.175.42-.395.245-1.226a6.19 6.19 0 0 1-.117-1.445c.29-.294.55-.619.775-.97a6.466 6.466 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.428 6.428 0 0 1-1.014-.722 5.955 5.955 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.364 6.364 0 0 1-1.158.348 5.873 5.873 0 0 0-1.15-.556 6.495 6.495 0 0 1-.454-1.093l-.113-.414c-.192-.678-.393-.805-.714-.828l-.076-.004ZM12 8.2a3.8 3.8 0 1 1 0 7.6 3.8 3.8 0 0 1 0-7.6Zm0 1.8a2 2 0 1 0 0 4 2 2 0 0 0 0-4Z"),u(i,"fill","#fff"),u(e,"width","24"),u(e,"height","24"),u(e,"fill","none"),u(e,"xmlns","http://www.w3.org/2000/svg"),u(e,"aria-hidden","true"),u(e,"data-testid","settings-mobile-icon")},m(n,o){I(n,e,o),m(e,i)},p:q,i:q,o:q,d(n){n&&S(e)}}}function qs(t){let e,i;return e=new pd({props:{$$slots:{default:[Sd]},$$scope:{ctx:t}}}),{c(){U(e.$$.fragment)},m(n,o){H(e,n,o),i=!0},p(n,o){const s={};o&18&&(s.$$scope={dirty:o,ctx:n}),e.$set(s)},i(n){i||(d(e.$$.fragment,n),i=!0)},o(n){b(e.$$.fragment,n),i=!1},d(n){F(e,n)}}}function Sd(t){let e,i,n;var o=t[1];function s(l){return{}}return o&&(e=Ln(o,s())),{c(){e&&U(e.$$.fragment),i=ct()},m(l,r){e&&H(e,l,r),I(l,i,r),n=!0},p(l,r){if(r&2&&o!==(o=l[1])){if(e){ce();const a=e;b(a.$$.fragment,1,0,()=>{F(a,1)}),fe()}o?(e=Ln(o,s()),U(e.$$.fragment),d(e.$$.fragment,1),H(e,i.parentNode,i)):e=null}},i(l){n||(e&&d(e.$$.fragment,l),n=!0)},o(l){e&&b(e.$$.fragment,l),n=!1},d(l){l&&S(i),e&&F(e,l)}}}function Id(t){let e,i,n,o;const s=[Pd,Td],l=[];function r(a,c){return a[0]?0:1}return e=r(t),i=l[e]=s[e](t),{c(){i.c(),n=ct()},m(a,c){l[e].m(a,c),I(a,n,c),o=!0},p(a,[c]){let f=e;e=r(a),e===f?l[e].p(a,c):(ce(),b(l[f],1,1,()=>{l[f]=null}),fe(),i=l[e],i?i.p(a,c):(i=l[e]=s[e](a),i.c()),d(i,1),i.m(n.parentNode,n))},i(a){o||(d(i),o=!0)},o(a){b(i),o=!1},d(a){a&&S(n),l[e].d(a)}}}function Ad(t,e,i){let n,{isMobile:o=!1}=e,{currentQuality:s=void 0}=e,l;return t.$$set=r=>{"isMobile"in r&&i(0,o=r.isMobile),"currentQuality"in r&&i(3,s=r.currentQuality)},t.$$.update=()=>{t.$$.dirty&8&&i(1,n=Io(s)),t.$$.dirty&2&&i(2,l=!!n&&[ru,au].includes(n))},[o,n,l,s]}class uu extends be{constructor(e){super(),ge(this,e,Ad,Id,he,{isMobile:0,currentQuality:3},Cd)}}function Ed(t){let e,i;return{c(){e=L("svg"),i=L("path"),u(i,"d","M14.692.428c2.293 0 3.124.24 3.962.687a4.673 4.673 0 0 1 1.944 1.944c.449.839.687 1.67.687 3.962v3.958c0 2.292-.238 3.123-.687 3.961a4.673 4.673 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.673 4.673 0 0 1 1.4 14.94c-.448-.838-.687-1.669-.687-3.961V7.02c0-2.292.239-3.123.687-3.962a4.673 4.673 0 0 1 1.944-1.944C4.183.667 5.015.428 7.307.428h7.385Zm.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.153.289.54.702.952 1.241 1.24.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.714H11Zm5.142 0a.857.857 0 1 1 0 1.714h-1.714a.857.857 0 0 1 0-1.714h1.714Zm0-3.428a.857.857 0 1 1 0 1.714H11a.857.857 0 1 1 0-1.714h5.142Zm-8.571 0a.857.857 0 0 1 0 1.714H5.857a.857.857 0 0 1 0-1.714H7.57Z"),u(i,"fill","#fff"),u(e,"width","22"),u(e,"height","18"),u(e,"fill","none"),u(e,"xmlns","http://www.w3.org/2000/svg"),u(e,"aria-hidden","true"),u(e,"data-testid","subtitle-empty-icon")},m(n,o){I(n,e,o),m(e,i)},p:q,i:q,o:q,d(n){n&&S(e)}}}class cu extends be{constructor(e){super(),ge(this,e,null,Ed,he,{})}}function Vd(t){let e,i;return{c(){e=L("svg"),i=L("path"),u(i,"fill-rule","evenodd"),u(i,"clip-rule","evenodd"),u(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 0ZM0 18a.9.9 0 0 1 .9-.9h14.2a.9.9 0 1 1 0 1.8H.9A.9.9 0 0 1 0 18Z"),u(i,"fill","#fff"),u(e,"width","16"),u(e,"height","19"),u(e,"fill","none"),u(e,"xmlns","http://www.w3.org/2000/svg"),u(e,"aria-hidden","true"),u(e,"data-testid","download-icon")},m(n,o){I(n,e,o),m(e,i)},p:q,i:q,o:q,d(n){n&&S(e)}}}class Md extends be{constructor(e){super(),ge(this,e,null,Vd,he,{})}}function Ld(t){let e,i;return{c(){e=L("svg"),i=L("path"),u(i,"fill-rule","evenodd"),u(i,"clip-rule","evenodd"),u(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.5Zm11.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.919.211.414.548.75.962.961.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.48 0-1.15-.002-1.905-.049-2.482-.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-.049Zm-3.298 11-.55 2.2h2.695l-.55-2.2H8.202Z"),u(i,"fill","#fff"),u(e,"width","18"),u(e,"height","17"),u(e,"fill","none"),u(e,"xmlns","http://www.w3.org/2000/svg"),u(e,"aria-hidden","true"),u(e,"data-testid","traffic-saving-icon")},m(n,o){I(n,e,o),m(e,i)},p:q,i:q,o:q,d(n){n&&S(e)}}}class Bd extends be{constructor(e){super(),ge(this,e,null,Ld,he,{})}}function Rd(t){let e,i,n,o;return{c(){e=L("svg"),i=L("g"),n=L("path"),o=L("path"),u(n,"d","M0 0h24v24H0z"),u(o,"d","M11 4.07V2.05c-2.01.2-3.84 1-5.32 2.21L7.1 5.69A7.941 7.941 0 0 1 11 4.07zM5.69 7.1 4.26 5.68A9.949 9.949 0 0 0 2.05 11h2.02c.18-1.46.76-2.79 1.62-3.9zM2.05 13c.2 2.01 1 3.84 2.21 5.32l1.43-1.43A7.868 7.868 0 0 1 4.07 13zM11 21.95v-2.02a7.941 7.941 0 0 1-3.9-1.62l-1.42 1.43A9.981 9.981 0 0 0 11 21.95zM22 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 12zM10.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-.686z"),u(o,"fill","#fff"),u(o,"fill-rule","nonzero"),u(i,"fill","none"),u(i,"fill-rule","evenodd"),u(e,"height","24"),u(e,"width","24"),u(e,"xmlns","http://www.w3.org/2000/svg"),u(e,"aria-hidden","true"),u(e,"data-testid","play-speed-icon")},m(s,l){I(s,e,l),m(e,i),m(i,n),m(i,o)},p:q,i:q,o:q,d(s){s&&S(e)}}}class Nd extends be{constructor(e){super(),ge(this,e,null,Rd,he,{})}}function Dd(t){Ke(t,"v-2dg73m",".reverted.v-2dg73m{transform:rotate(180deg)}")}function zd(t){let e,i,n;return{c(){e=L("svg"),i=L("path"),u(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.272L5.773 8z"),u(i,"fill",t[0]),u(e,"width","12"),u(e,"height","16"),u(e,"fill","none"),u(e,"xmlns","http://www.w3.org/2000/svg"),u(e,"aria-hidden","true"),u(e,"data-testid",n=t[2]?"chevron-icon--right":"chevron-icon--left"),u(e,"class","v-2dg73m"),V(e,"reverted",t[2])},m(o,s){I(o,e,s),m(e,i)},p(o,s){s&1&&u(i,"fill",o[0]),s&4&&n!==(n=o[2]?"chevron-icon--right":"chevron-icon--left")&&u(e,"data-testid",n),s&4&&V(e,"reverted",o[2])},d(o){o&&S(e)}}}function Od(t){let e,i,n;return{c(){e=L("svg"),i=L("path"),u(i,"fill-rule","evenodd"),u(i,"clip-rule","evenodd"),u(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.272Z"),u(i,"fill",t[0]),u(i,"fill-opacity",".72"),u(e,"width","12"),u(e,"height","7"),u(e,"fill","none"),u(e,"xmlns","http://www.w3.org/2000/svg"),u(e,"aria-hidden","true"),u(e,"data-testid",n=t[2]?"chevron-icon--down":"chevron-icon--up"),u(e,"class","v-2dg73m"),V(e,"reverted",t[2])},m(o,s){I(o,e,s),m(e,i)},p(o,s){s&1&&u(i,"fill",o[0]),s&4&&n!==(n=o[2]?"chevron-icon--down":"chevron-icon--up")&&u(e,"data-testid",n),s&4&&V(e,"reverted",o[2])},d(o){o&&S(e)}}}function Hd(t){let e;function i(s,l){return s[1]?Od:zd}let n=i(t),o=n(t);return{c(){o.c(),e=ct()},m(s,l){o.m(s,l),I(s,e,l)},p(s,[l]){n===(n=i(s))&&o?o.p(s,l):(o.d(1),o=n(s),o&&(o.c(),o.m(e.parentNode,e)))},i:q,o:q,d(s){s&&S(e),o.d(s)}}}function Fd(t,e,i){let{direction:n="left"}=e,{color:o="#fff"}=e,s,l;return t.$$set=r=>{"direction"in r&&i(3,n=r.direction),"color"in r&&i(0,o=r.color)},t.$$.update=()=>{t.$$.dirty&8&&(i(1,s=["up","down"].includes(n)),i(2,l=["right","down"].includes(n)))},[o,s,l,n]}class Jn extends be{constructor(e){super(),ge(this,e,Fd,Hd,he,{direction:3,color:0},Dd)}}function Ud(t){let e,i;return{c(){e=L("svg"),i=L("path"),u(i,"fill-rule","evenodd"),u(i,"clip-rule","evenodd"),u(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-.697zm-.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.205zM13 16a1 1 0 1 1-2 0 1 1 0 0 1 2 0zm-.1-8.1a.9.9 0 0 0-1.8 0v5.2a.9.9 0 1 0 1.8 0V7.9z"),u(i,"fill","#fff"),u(e,"width","24"),u(e,"height","24"),u(e,"fill","none"),u(e,"xmlns","http://www.w3.org/2000/svg"),u(e,"aria-hidden","true"),u(e,"data-testid","report-icon")},m(n,o){I(n,e,o),m(e,i)},p:q,i:q,o:q,d(n){n&&S(e)}}}class qd extends be{constructor(e){super(),ge(this,e,null,Ud,he,{})}}function Zd(t){let e,i;return{c(){e=L("svg"),i=L("path"),u(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"),u(i,"fill","#fff"),u(e,"height","16"),u(e,"width","16"),u(e,"xmlns","http://www.w3.org/2000/svg"),u(e,"aria-hidden","true"),u(e,"data-testid","check-mark-icon")},m(n,o){I(n,e,o),m(e,i)},p:q,i:q,o:q,d(n){n&&S(e)}}}class Wo extends be{constructor(e){super(),ge(this,e,null,Zd,he,{})}}function Wd(t){let e,i;return{c(){e=L("svg"),i=L("path"),u(i,"fill-rule","evenodd"),u(i,"clip-rule","evenodd"),u(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.073 2.073 0 0 0-.174-.49 2.4 2.4 0 0 0-1.048-1.048 2.439 2.439 0 0 0-.931-.239 13.48 13.48 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 6H10.08zM8.408 7.916c.065-.032.179-.07.452-.093a17.65 17.65 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.093a17.65 17.65 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.057 17.057 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-.492z"),u(i,"fill","#fff"),u(e,"width","24"),u(e,"height","24"),u(e,"fill","none"),u(e,"xmlns","http://www.w3.org/2000/svg"),u(e,"aria-hidden","true"),u(e,"data-testid","copy-icon")},m(n,o){I(n,e,o),m(e,i)},p:q,i:q,o:q,d(n){n&&S(e)}}}class Kd extends be{constructor(e){super(),ge(this,e,null,Wd,he,{})}}function jd(t){let e,i;return{c(){e=L("svg"),i=L("path"),u(i,"d","M12 20.105a8.105 8.105 0 1 0 0-16.21 8.105 8.105 0 0 0 0 16.21zM12 22C6.477 22 2 17.523 2 12S6.477 2 12 2s10 4.477 10 10-4.477 10-10 10zm0-12.372a1.316 1.316 0 1 1 0-2.632 1.316 1.316 0 0 1 0 2.632zm-.947 2.822c0-.541.424-.98.947-.98.523 0 .947.439.947.98v3.83c0 .54-.424.98-.947.98-.523 0-.947-.44-.947-.98v-3.83z"),u(i,"fill","#fff"),u(e,"width","24"),u(e,"height","24"),u(e,"fill","none"),u(e,"xmlns","http://www.w3.org/2000/svg"),u(e,"aria-hidden","true"),u(e,"data-testid","info-icon")},m(n,o){I(n,e,o),m(e,i)},p:q,i:q,o:q,d(n){n&&S(e)}}}class Gd extends be{constructor(e){super(),ge(this,e,null,jd,he,{})}}function Yd(t){Ke(t,"v-5r0p3","ul.v-5r0p3.v-5r0p3{margin:0;padding:0}.menu.v-5r0p3.v-5r0p3{background-color:rgba(17, 17, 17, 0.8);border-radius:8px;line-height:40px;transition:opacity 0.2s, visibility 0.2s}.container-mobile.v-5r0p3.v-5r0p3{width:100%}.menu-desktop.v-5r0p3.v-5r0p3{position:absolute;right:0;bottom:0}.menu-mobile.v-5r0p3.v-5r0p3{width:100%;background:var(--mobile-settings-bg);font-size:15px;line-height:50px}.menu-mobile.hidden.v-5r0p3.v-5r0p3{display:none}.menu-subList.v-5r0p3.v-5r0p3{min-width:134px;padding-bottom:0}.menu-subList-subtitles.v-5r0p3.v-5r0p3{min-width:164px}.menu-subList-traffic-saving.v-5r0p3.v-5r0p3{min-width:286px}.item.v-5r0p3.v-5r0p3{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.v-5r0p3.v-5r0p3{padding:0 14px}.item-quality.item-mobile.v-5r0p3.v-5r0p3,.item-traffic-saving.item-mobile.v-5r0p3.v-5r0p3,.item-helper-text.item-mobile.v-5r0p3.v-5r0p3{flex-direction:row-reverse}.item-helper-text.v-5r0p3.v-5r0p3{cursor:auto;pointer-events:none;white-space:normal;padding:7px 24px 7px 18px}.item-helper-text.v-5r0p3 span.v-5r0p3{color:rgba(255, 255, 255, 0.48);line-height:18px;text-align:end}.item-helper-text.item-mobile.v-5r0p3.v-5r0p3{padding:7px 14px}.item-helper-text.item-mobile.v-5r0p3 span.v-5r0p3{text-align:start}.quality-title-mobile.v-5r0p3.v-5r0p3{flex-grow:1}.item.v-5r0p3.v-5r0p3:hover{background-color:rgba(255, 255, 255, 0.08)}.item-mobile.v-5r0p3.v-5r0p3:hover{background:var(--mobile-settings-bg)}.menu-subList.v-5r0p3 .item.v-5r0p3{color:rgba(255, 255, 255, 0.9)}.menu-subList.v-5r0p3 .item.v-5r0p3:last-child{margin-bottom:4px}.menu-icon-wrapper.v-5r0p3.v-5r0p3{width:24px;height:24px;display:flex;align-items:center;justify-content:center;margin-right:16px}.menu-title.v-5r0p3.v-5r0p3{flex-grow:1;margin-right:24px;overflow:hidden;text-overflow:ellipsis}.menu-value.v-5r0p3.v-5r0p3{position:relative;opacity:0.7}.menu-valueIcon.v-5r0p3.v-5r0p3{position:absolute;top:-10px;right:-18px;width:15px}.menu-valueIcon-list.v-5r0p3.v-5r0p3{position:absolute;top:-7px;width:15px;right:6px}.menu-valueIcon.v-5r0p3 svg,.menu-valueIcon-list.v-5r0p3 svg{color:var(--blue-light)}.menu-divider.v-5r0p3.v-5r0p3{background-color:rgba(255, 255, 255, 0.3);height:1px;margin-bottom:4px}.menu-header.v-5r0p3.v-5r0p3{color:var(--white);cursor:pointer;justify-content:space-between;display:flex}.itemIcon.v-5r0p3.v-5r0p3{margin-right:auto;padding-right:12px;opacity:0.9}.items.v-5r0p3.v-5r0p3::-webkit-scrollbar{width:8px}.items.v-5r0p3.v-5r0p3::-webkit-scrollbar-track{box-shadow:none;background-color:#3a3a3a;border-radius:4px}.items.v-5r0p3.v-5r0p3::-webkit-scrollbar-thumb{min-height:40px;border-radius:5px;background-color:#666;border:1px solid transparent;background-clip:padding-box}.items.v-5r0p3.v-5r0p3::-webkit-scrollbar-thumb:hover{background-color:#777}.items-mobile.v-5r0p3.v-5r0p3{overflow-y:auto;max-height:160px;text-align:left}.close.v-5r0p3.v-5r0p3{position:relative;width:12px;height:12px;padding:12px;margin-right:-12px}.close.v-5r0p3.v-5r0p3:before,.close.v-5r0p3.v-5r0p3:after{position:absolute;left:18px;content:' ';height:12px;width:2px;background-color:var(--white)}.close.v-5r0p3.v-5r0p3:before{transform:rotate(45deg)}.close.v-5r0p3.v-5r0p3:after{transform:rotate(-45deg)}")}function Zs(t,e,i){const n=t.slice();return n[142]=e[i],n}function Ws(t,e,i){const n=t.slice();return n[145]=e[i],n}function Ks(t,e,i){const n=t.slice();return n[148]=e[i],n}function js(t){let e,i,n,o,s,l,r,a,c,f,p,h=t[34]&&Gs(t),v=t[25]&&Ys(t),k=t[24]&&Xs(t),_=t[23]&&Js(t),P=t[22]&&xs(t),C=t[21]&&$s(t),T=t[34]&&er(t);return{c(){e=A("div"),h&&h.c(),i=D(),n=A("ul"),v&&v.c(),o=D(),k&&k.c(),s=D(),_&&_.c(),l=D(),P&&P.c(),r=D(),C&&C.c(),a=D(),T&&T.c(),u(n,"class","items v-5r0p3"),u(n,"role","menu"),u(n,"style",t[73]()),V(n,"items-mobile",t[34]),u(e,"class","menu v-5r0p3"),V(e,"menu-desktop",!t[34]),V(e,"menu-mobile",t[34]),V(e,"hidden",!t[11])},m(y,M){I(y,e,M),h&&h.m(e,null),m(e,i),m(e,n),v&&v.m(n,null),m(n,o),k&&k.m(n,null),m(n,s),_&&_.m(n,null),m(n,l),P&&P.m(n,null),m(n,r),C&&C.m(n,null),m(n,a),T&&T.m(n,null),t[112](n),c=!0,f||(p=[pe(e,"keydown",t[78]),pe(e,"mouseenter",t[71]),pe(e,"mouseleave",t[72])],f=!0)},p(y,M){y[34]?h?h.p(y,M):(h=Gs(y),h.c(),h.m(e,i)):h&&(h.d(1),h=null),y[25]?v?(v.p(y,M),M[0]&33554432&&d(v,1)):(v=Ys(y),v.c(),d(v,1),v.m(n,o)):v&&(ce(),b(v,1,1,()=>{v=null}),fe()),y[24]?k?(k.p(y,M),M[0]&16777216&&d(k,1)):(k=Xs(y),k.c(),d(k,1),k.m(n,s)):k&&(ce(),b(k,1,1,()=>{k=null}),fe()),y[23]?_?(_.p(y,M),M[0]&8388608&&d(_,1)):(_=Js(y),_.c(),d(_,1),_.m(n,l)):_&&(ce(),b(_,1,1,()=>{_=null}),fe()),y[22]?P?(P.p(y,M),M[0]&4194304&&d(P,1)):(P=xs(y),P.c(),d(P,1),P.m(n,r)):P&&(ce(),b(P,1,1,()=>{P=null}),fe()),y[21]?C?(C.p(y,M),M[0]&2097152&&d(C,1)):(C=$s(y),C.c(),d(C,1),C.m(n,a)):C&&(ce(),b(C,1,1,()=>{C=null}),fe()),y[34]?T?(T.p(y,M),M[1]&8&&d(T,1)):(T=er(y),T.c(),d(T,1),T.m(n,null)):T&&(ce(),b(T,1,1,()=>{T=null}),fe()),(!c||M[1]&8)&&V(n,"items-mobile",y[34]),(!c||M[1]&8)&&V(e,"menu-desktop",!y[34]),(!c||M[1]&8)&&V(e,"menu-mobile",y[34]),(!c||M[0]&2048)&&V(e,"hidden",!y[11])},i(y){c||(d(v),d(k),d(_),d(P),d(C),d(T),c=!0)},o(y){b(v),b(k),b(_),b(P),b(C),b(T),c=!1},d(y){y&&S(e),h&&h.d(),v&&v.d(),k&&k.d(),_&&_.d(),P&&P.d(),C&&C.d(),T&&T.d(),t[112](null),f=!1,it(p)}}}function Gs(t){let e,i,n,o,s,l,r,a;return{c(){e=A("div"),i=A("div"),i.textContent=`${j("submenu_settings")}`,n=D(),o=A("div"),s=D(),l=A("div"),u(o,"class","close v-5r0p3"),u(e,"class","item menu-header v-5r0p3"),V(e,"item-mobile",t[34]),u(l,"class","menu-divider v-5r0p3")},m(c,f){I(c,e,f),m(e,i),m(e,n),m(e,o),I(c,s,f),I(c,l,f),r||(a=pe(o,"click",nt(t[57])),r=!0)},p(c,f){f[1]&8&&V(e,"item-mobile",c[34])},d(c){c&&(S(e),S(s),S(l)),r=!1,a()}}}function Ys(t){let e,i,n,o,s,l,r,a,c,f,p,h,v;n=new uu({});let k=t[33]&&!t[34]&&Qs(t);return{c(){e=A("li"),i=A("div"),U(n.$$.fragment),o=D(),s=A("div"),s.textContent=`${j("menu_quality")}`,l=D(),r=A("div"),a=De(t[16]),c=D(),k&&k.c(),u(i,"class","menu-icon-wrapper v-5r0p3"),u(s,"class","menu-title v-5r0p3"),u(r,"class","menu-value v-5r0p3"),u(e,"class","item v-5r0p3"),u(e,"role","menuitem"),u(e,"tabindex","0"),u(e,"aria-label",f=j("aria_label_menu_quality",{actual:t[27]})),u(e,"aria-haspopup","true"),V(e,"item-mobile",t[34])},m(_,P){I(_,e,P),m(e,i),H(n,i,null),m(e,o),m(e,s),m(e,l),m(e,r),m(r,a),m(r,c),k&&k.m(r,null),t[108](e),p=!0,h||(v=[pe(e,"click",nt(t[58])),pe(e,"keydown",t[79])],h=!0)},p(_,P){(!p||P[0]&65536)&&xe(a,_[16]),_[33]&&!_[34]?k?(k.p(_,P),P[1]&12&&d(k,1)):(k=Qs(_),k.c(),d(k,1),k.m(r,null)):k&&(ce(),b(k,1,1,()=>{k=null}),fe()),(!p||P[0]&134217728&&f!==(f=j("aria_label_menu_quality",{actual:_[27]})))&&u(e,"aria-label",f),(!p||P[1]&8)&&V(e,"item-mobile",_[34])},i(_){p||(d(n.$$.fragment,_),d(k),p=!0)},o(_){b(n.$$.fragment,_),b(k),p=!1},d(_){_&&S(e),F(n),k&&k.d(),t[108](null),h=!1,it(v)}}}function Qs(t){let e,i,n;var o=t[33];function s(l){return{}}return o&&(i=Ln(o,s())),{c(){e=A("div"),i&&U(i.$$.fragment),u(e,"class","menu-valueIcon v-5r0p3")},m(l,r){I(l,e,r),i&&H(i,e,null),n=!0},p(l,r){if(r[1]&4&&o!==(o=l[33])){if(i){ce();const a=i;b(a.$$.fragment,1,0,()=>{F(a,1)}),fe()}o?(i=Ln(o,s()),U(i.$$.fragment),d(i.$$.fragment,1),H(i,e,null)):i=null}},i(l){n||(i&&d(i.$$.fragment,l),n=!0)},o(l){i&&b(i.$$.fragment,l),n=!1},d(l){l&&S(e),i&&F(i)}}}function Xs(t){let e,i,n,o,s,l,r,a,c,f,p,h,v;return n=new Nd({}),{c(){e=A("li"),i=A("div"),U(n.$$.fragment),o=D(),s=A("div"),s.textContent=`${j("menu_playback_rate")}`,l=D(),r=A("div"),a=De(t[9]),c=De("x"),u(i,"class","menu-icon-wrapper v-5r0p3"),u(s,"class","menu-title v-5r0p3"),u(r,"class","menu-value v-5r0p3"),u(e,"class","item v-5r0p3"),u(e,"role","menuitem"),u(e,"tabindex","0"),u(e,"aria-label",f=j("aria_label_menu_rate",{actual:t[28]})),u(e,"aria-haspopup","true"),V(e,"item-mobile",t[34])},m(k,_){I(k,e,_),m(e,i),H(n,i,null),m(e,o),m(e,s),m(e,l),m(e,r),m(r,a),m(r,c),t[109](e),p=!0,h||(v=[pe(e,"click",nt($t(t[62]))),pe(e,"keydown",t[82])],h=!0)},p(k,_){(!p||_[0]&512)&&xe(a,k[9]),(!p||_[0]&268435456&&f!==(f=j("aria_label_menu_rate",{actual:k[28]})))&&u(e,"aria-label",f),(!p||_[1]&8)&&V(e,"item-mobile",k[34])},i(k){p||(d(n.$$.fragment,k),p=!0)},o(k){b(n.$$.fragment,k),p=!1},d(k){k&&S(e),F(n),t[109](null),h=!1,it(v)}}}function Js(t){let e,i,n,o,s,l,r,a=t[35].displayValue+"",c,f,p,h,v;return n=new cu({}),{c(){e=A("li"),i=A("div"),U(n.$$.fragment),o=D(),s=A("div"),s.textContent=`${j("subtitles_caption")}`,l=D(),r=A("div"),c=De(a),u(i,"class","menu-icon-wrapper v-5r0p3"),u(s,"class","menu-title v-5r0p3"),u(r,"class","menu-value v-5r0p3"),u(e,"class","item v-5r0p3"),u(e,"role","menuitem"),u(e,"tabindex","0"),u(e,"aria-label",f=j("aria_label_menu_subtitle",{actual:t[35].displayValue})),u(e,"aria-haspopup","true"),V(e,"item-mobile",t[34])},m(k,_){I(k,e,_),m(e,i),H(n,i,null),m(e,o),m(e,s),m(e,l),m(e,r),m(r,c),t[110](e),p=!0,h||(v=[pe(e,"click",nt(t[64])),pe(e,"keydown",t[85])],h=!0)},p(k,_){(!p||_[1]&16)&&a!==(a=k[35].displayValue+"")&&xe(c,a),(!p||_[1]&16&&f!==(f=j("aria_label_menu_subtitle",{actual:k[35].displayValue})))&&u(e,"aria-label",f),(!p||_[1]&8)&&V(e,"item-mobile",k[34])},i(k){p||(d(n.$$.fragment,k),p=!0)},o(k){b(n.$$.fragment,k),p=!1},d(k){k&&S(e),F(n),t[110](null),h=!1,it(v)}}}function xs(t){let e,i,n,o,s,l,r,a,c,f,p,h;return n=new Bd({}),{c(){e=A("li"),i=A("div"),U(n.$$.fragment),o=D(),s=A("div"),s.textContent=`${j("menu_traffic_saving")}`,l=D(),r=A("div"),a=De(t[26]),u(i,"class","menu-icon-wrapper v-5r0p3"),u(s,"class","menu-title v-5r0p3"),u(r,"class","menu-value v-5r0p3"),u(e,"class","item v-5r0p3"),u(e,"role","menuitem"),u(e,"tabindex","0"),u(e,"aria-label",c=j("aria_label_menu_traffic_saving",{actual:t[26]})),u(e,"aria-haspopup","true"),V(e,"item-mobile",t[34])},m(v,k){I(v,e,k),m(e,i),H(n,i,null),m(e,o),m(e,s),m(e,l),m(e,r),m(r,a),t[111](e),f=!0,p||(h=[pe(e,"click",nt(t[59])),pe(e,"keydown",t[88])],p=!0)},p(v,k){(!f||k[0]&67108864)&&xe(a,v[26]),(!f||k[0]&67108864&&c!==(c=j("aria_label_menu_traffic_saving",{actual:v[26]})))&&u(e,"aria-label",c),(!f||k[1]&8)&&V(e,"item-mobile",v[34])},i(v){f||(d(n.$$.fragment,v),f=!0)},o(v){b(n.$$.fragment,v),f=!1},d(v){v&&S(e),F(n),t[111](null),p=!1,it(h)}}}function $s(t){let e,i,n,o,s,l,r,a;return n=new Md({}),{c(){e=A("li"),i=A("div"),U(n.$$.fragment),o=D(),s=A("div"),s.textContent=`${j("download_video_caption")}`,u(i,"class","menu-icon-wrapper v-5r0p3"),u(s,"class","menu-title v-5r0p3"),u(e,"class","item v-5r0p3"),u(e,"role","menuitem"),u(e,"tabindex","0"),u(e,"aria-label",j("aria_label_menu_download")),V(e,"item-mobile",t[34])},m(c,f){I(c,e,f),m(e,i),H(n,i,null),m(e,o),m(e,s),l=!0,r||(a=[pe(e,"click",nt(t[67])),pe(e,"keydown",t[91])],r=!0)},p(c,f){(!l||f[1]&8)&&V(e,"item-mobile",c[34])},i(c){l||(d(n.$$.fragment,c),l=!0)},o(c){b(n.$$.fragment,c),l=!1},d(c){c&&S(e),F(n),r=!1,it(a)}}}function er(t){let e,i,n,o,s,l,r,a,c,f,p,h,v,k,_,P,C=t[37].showSupport&&Qd(t);return o=new Kd({}),f=new Gd({}),{c(){C&&C.c(),e=D(),i=A("li"),n=A("div"),U(o.$$.fragment),s=D(),l=A("div"),l.textContent=`${j("menu_copy_debug")}`,r=D(),a=A("li"),c=A("div"),U(f.$$.fragment),p=D(),h=A("div"),h.textContent=`${j("menu_debug_overlay")}`,u(n,"class","menu-icon-wrapper v-5r0p3"),u(l,"class","menu-title v-5r0p3"),u(i,"class","item item-mobile v-5r0p3"),u(i,"role","menuitem"),u(i,"tabindex","0"),u(i,"aria-label",j("menu_copy_debug")),u(c,"class","menu-icon-wrapper v-5r0p3"),u(h,"class","menu-title v-5r0p3"),u(a,"class","item item-mobile v-5r0p3"),u(a,"role","menuitem"),u(a,"tabindex","0"),u(a,"aria-label",v=t[36]?j("aria_label_menu_debug_overlay_disable"):j("aria_label_menu_debug_overlay_enable"))},m(T,y){C&&C.m(T,y),I(T,e,y),I(T,i,y),m(i,n),H(o,n,null),m(i,s),m(i,l),I(T,r,y),I(T,a,y),m(a,c),H(f,c,null),m(a,p),m(a,h),k=!0,_||(P=[pe(i,"click",nt(t[69])),pe(i,"keydown",t[93]),pe(a,"click",nt(t[70])),pe(a,"keydown",t[94])],_=!0)},p(T,y){T[37].showSupport&&C.p(T,y),(!k||y[1]&32&&v!==(v=T[36]?j("aria_label_menu_debug_overlay_disable"):j("aria_label_menu_debug_overlay_enable")))&&u(a,"aria-label",v)},i(T){k||(d(C),d(o.$$.fragment,T),d(f.$$.fragment,T),k=!0)},o(T){b(C),b(o.$$.fragment,T),b(f.$$.fragment,T),k=!1},d(T){T&&(S(e),S(i),S(r),S(a)),C&&C.d(T),F(o),F(f),_=!1,it(P)}}}function Qd(t){let e,i,n,o,s,l,r,a;return n=new qd({}),{c(){e=A("li"),i=A("div"),U(n.$$.fragment),o=D(),s=A("div"),s.textContent=`${j("menu_report")}`,u(i,"class","menu-icon-wrapper v-5r0p3"),u(s,"class","menu-title v-5r0p3"),u(e,"class","item item-mobile v-5r0p3"),u(e,"role","menuitem"),u(e,"tabindex","0"),u(e,"aria-label",`${j("menu_report")}. ${j("aria_label_new_tab_alert")}`)},m(c,f){I(c,e,f),m(e,i),H(n,i,null),m(e,o),m(e,s),l=!0,r||(a=[pe(e,"click",nt(t[68])),pe(e,"keydown",t[92])],r=!0)},p:q,i(c){l||(d(n.$$.fragment,c),l=!0)},o(c){b(n.$$.fragment,c),l=!1},d(c){c&&S(e),F(n),r=!1,it(a)}}}function tr(t){let e,i,n,o,s,l,r,a,c,f,p,h,v;n=new Jn({props:{direction:"left"}});let k=Ut(t[8]),_=[];for(let C=0;C<k.length;C+=1)_[C]=or(Ks(t,k,C));const P=C=>b(_[C],1,1,()=>{_[C]=null});return{c(){e=A("div"),i=A("div"),U(n.$$.fragment),o=D(),s=A("div"),s.textContent=`${j("submenu_quality")}`,l=D(),r=A("div"),a=D(),c=A("ul");for(let C=0;C<_.length;C+=1)_[C].c();u(i,"class","item menu-header v-5r0p3"),u(i,"aria-label",j("aria_label_submenu_back")),V(i,"item-mobile",t[34]),u(r,"class","menu-divider v-5r0p3"),u(c,"class","items v-5r0p3"),u(c,"role","menu"),u(c,"style",f=t[73](t[17]?.clientHeight,!0)),V(c,"items-mobile",t[34]),u(e,"class","menu menu-subList v-5r0p3"),V(e,"menu-desktop",!t[34]),V(e,"menu-mobile",t[34])},m(C,T){I(C,e,T),m(e,i),H(n,i,null),m(i,o),m(i,s),t[113](i),m(e,l),m(e,r),m(e,a),m(e,c);for(let y=0;y<_.length;y+=1)_[y]&&_[y].m(c,null);t[116](c),p=!0,h||(v=[pe(i,"click",nt(t[66])),pe(c,"keydown",t[80])],h=!0)},p(C,T){if((!p||T[1]&8)&&V(i,"item-mobile",C[34]),T[0]&256|T[1]&536870920|T[2]&524288){k=Ut(C[8]);let y;for(y=0;y<k.length;y+=1){const M=Ks(C,k,y);_[y]?(_[y].p(M,T),d(_[y],1)):(_[y]=or(M),_[y].c(),d(_[y],1),_[y].m(c,null))}for(ce(),y=k.length;y<_.length;y+=1)P(y);fe()}(!p||T[0]&131072&&f!==(f=C[73](C[17]?.clientHeight,!0)))&&u(c,"style",f),(!p||T[1]&8)&&V(c,"items-mobile",C[34]),(!p||T[1]&8)&&V(e,"menu-desktop",!C[34]),(!p||T[1]&8)&&V(e,"menu-mobile",C[34])},i(C){if(!p){d(n.$$.fragment,C);for(let T=0;T<k.length;T+=1)d(_[T]);p=!0}},o(C){b(n.$$.fragment,C),_=_.filter(Boolean);for(let T=0;T<_.length;T+=1)b(_[T]);p=!1},d(C){C&&S(e),F(n),t[113](null),Tn(_,C),t[116](null),h=!1,it(v)}}}function ir(t){let e,i,n;return i=new Wo({}),{c(){e=A("div"),U(i.$$.fragment),u(e,"class","itemIcon v-5r0p3")},m(o,s){I(o,e,s),H(i,e,null),n=!0},i(o){n||(d(i.$$.fragment,o),n=!0)},o(o){b(i.$$.fragment,o),n=!1},d(o){o&&S(e),F(i)}}}function nr(t){let e,i,n;var o=Io(t[148].value);function s(l){return{}}return o&&(i=Ln(o,s())),{c(){e=A("div"),i&&U(i.$$.fragment),u(e,"class","menu-valueIcon-list v-5r0p3")},m(l,r){I(l,e,r),i&&H(i,e,null),n=!0},p(l,r){if(r[0]&256&&o!==(o=Io(l[148].value))){if(i){ce();const a=i;b(a.$$.fragment,1,0,()=>{F(a,1)}),fe()}o?(i=Ln(o,s()),U(i.$$.fragment),d(i.$$.fragment,1),H(i,e,null)):i=null}},i(l){n||(i&&d(i.$$.fragment,l),n=!0)},o(l){i&&b(i.$$.fragment,l),n=!1},d(l){l&&S(e),i&&F(i)}}}function or(t){let e,i,n,o=t[148].displayValue+"",s,l,r=!t[34]&&Io(t[148].value),a,c,f,p,h,v,k=t[148].selected&&ir(),_=r&&nr(t);function P(){return t[114](t[148])}function C(...T){return t[115](t[148],...T)}return{c(){e=A("li"),k&&k.c(),i=D(),n=A("div"),s=De(o),l=D(),_&&_.c(),a=D(),u(n,"class","v-5r0p3"),V(n,"quality-title-mobile",t[34]),u(e,"class","item item-quality v-5r0p3"),u(e,"data-value",c=t[148].value),u(e,"role","menuitem"),u(e,"tabindex","0"),u(e,"aria-label",f=t[148].displayValue),V(e,"item-mobile",t[34])},m(T,y){I(T,e,y),k&&k.m(e,null),m(e,i),m(e,n),m(n,s),m(e,l),_&&_.m(e,null),m(e,a),p=!0,h||(v=[pe(e,"click",nt(P)),pe(e,"keydown",C)],h=!0)},p(T,y){t=T,t[148].selected?k?y[0]&256&&d(k,1):(k=ir(),k.c(),d(k,1),k.m(e,i)):k&&(ce(),b(k,1,1,()=>{k=null}),fe()),(!p||y[0]&256)&&o!==(o=t[148].displayValue+"")&&xe(s,o),(!p||y[1]&8)&&V(n,"quality-title-mobile",t[34]),y[0]&256|y[1]&8&&(r=!t[34]&&Io(t[148].value)),r?_?(_.p(t,y),y[0]&256|y[1]&8&&d(_,1)):(_=nr(t),_.c(),d(_,1),_.m(e,a)):_&&(ce(),b(_,1,1,()=>{_=null}),fe()),(!p||y[0]&256&&c!==(c=t[148].value))&&u(e,"data-value",c),(!p||y[0]&256&&f!==(f=t[148].displayValue))&&u(e,"aria-label",f),(!p||y[1]&8)&&V(e,"item-mobile",t[34])},i(T){p||(d(k),d(_),p=!0)},o(T){b(k),b(_),p=!1},d(T){T&&S(e),k&&k.d(),_&&_.d(),h=!1,it(v)}}}function lr(t){let e,i,n,o,s,l,r,a,c,f,p,h,v;n=new Jn({props:{direction:"left"}});let k=Ut(t[7]),_=[];for(let C=0;C<k.length;C+=1)_[C]=rr(Ws(t,k,C));const P=C=>b(_[C],1,1,()=>{_[C]=null});return{c(){e=A("div"),i=A("div"),U(n.$$.fragment),o=D(),s=A("div"),s.textContent=`${j("submenu_playback_rate")}`,l=D(),r=A("div"),a=D(),c=A("ul");for(let C=0;C<_.length;C+=1)_[C].c();u(i,"class","item menu-header v-5r0p3"),u(i,"aria-label",j("aria_label_submenu_back")),V(i,"item-mobile",t[34]),u(r,"class","menu-divider v-5r0p3"),u(c,"class","items v-5r0p3"),u(c,"role","menu"),u(c,"style",f=t[73](t[18]?.clientHeight,!0)),V(c,"items-mobile",t[34]),u(e,"class","menu menu-subList v-5r0p3"),V(e,"menu-desktop",!t[34]),V(e,"menu-mobile",t[34])},m(C,T){I(C,e,T),m(e,i),H(n,i,null),m(i,o),m(i,s),t[117](i),m(e,l),m(e,r),m(e,a),m(e,c);for(let y=0;y<_.length;y+=1)_[y]&&_[y].m(c,null);t[120](c),p=!0,h||(v=[pe(i,"click",nt(t[66])),pe(c,"keydown",t[83])],h=!0)},p(C,T){if((!p||T[1]&8)&&V(i,"item-mobile",C[34]),T[0]&128|T[1]&8|T[2]&4194306){k=Ut(C[7]);let y;for(y=0;y<k.length;y+=1){const M=Ws(C,k,y);_[y]?(_[y].p(M,T),d(_[y],1)):(_[y]=rr(M),_[y].c(),d(_[y],1),_[y].m(c,null))}for(ce(),y=k.length;y<_.length;y+=1)P(y);fe()}(!p||T[0]&262144&&f!==(f=C[73](C[18]?.clientHeight,!0)))&&u(c,"style",f),(!p||T[1]&8)&&V(c,"items-mobile",C[34]),(!p||T[1]&8)&&V(e,"menu-desktop",!C[34]),(!p||T[1]&8)&&V(e,"menu-mobile",C[34])},i(C){if(!p){d(n.$$.fragment,C);for(let T=0;T<k.length;T+=1)d(_[T]);p=!0}},o(C){b(n.$$.fragment,C),_=_.filter(Boolean);for(let T=0;T<_.length;T+=1)b(_[T]);p=!1},d(C){C&&S(e),F(n),t[117](null),Tn(_,C),t[120](null),h=!1,it(v)}}}function sr(t){let e,i,n;return i=new Wo({}),{c(){e=A("div"),U(i.$$.fragment),u(e,"class","itemIcon v-5r0p3")},m(o,s){I(o,e,s),H(i,e,null),n=!0},i(o){n||(d(i.$$.fragment,o),n=!0)},o(o){b(i.$$.fragment,o),n=!1},d(o){o&&S(e),F(i)}}}function rr(t){let e,i,n,o=t[145].displayValue+"",s,l,r,a,c,f,p,h=t[145].selected&&sr();function v(){return t[118](t[145])}function k(..._){return t[119](t[145],..._)}return{c(){e=A("li"),h&&h.c(),i=D(),n=A("div"),s=De(o),l=D(),u(n,"class","v-5r0p3"),V(n,"quality-title-mobile",t[34]),u(e,"class","item item-quality v-5r0p3"),u(e,"data-value",r=t[145].value),u(e,"role","menuitem"),u(e,"tabindex","0"),u(e,"aria-label",a=t[145].displayValue),V(e,"item-mobile",t[34])},m(_,P){I(_,e,P),h&&h.m(e,null),m(e,i),m(e,n),m(n,s),m(e,l),c=!0,f||(p=[pe(e,"click",nt(v)),pe(e,"keydown",k)],f=!0)},p(_,P){t=_,t[145].selected?h?P[0]&128&&d(h,1):(h=sr(),h.c(),d(h,1),h.m(e,i)):h&&(ce(),b(h,1,1,()=>{h=null}),fe()),(!c||P[0]&128)&&o!==(o=t[145].displayValue+"")&&xe(s,o),(!c||P[1]&8)&&V(n,"quality-title-mobile",t[34]),(!c||P[0]&128&&r!==(r=t[145].value))&&u(e,"data-value",r),(!c||P[0]&128&&a!==(a=t[145].displayValue))&&u(e,"aria-label",a),(!c||P[1]&8)&&V(e,"item-mobile",t[34])},i(_){c||(d(h),c=!0)},o(_){b(h),c=!1},d(_){_&&S(e),h&&h.d(),f=!1,it(p)}}}function ar(t){let e,i,n,o,s,l,r,a,c,f,p,h,v,k,_,P,C,T,y,M,oe,Y,R,ee,Q,w;n=new Jn({props:{direction:"left"}});let $=!t[5]&&ur(),X=t[5]&&cr();return{c(){e=A("div"),i=A("div"),U(n.$$.fragment),o=D(),s=A("div"),s.textContent=`${j("submenu_traffic_saving")}`,l=D(),r=A("div"),a=D(),c=A("div"),f=A("ul"),p=A("li"),$&&$.c(),h=D(),v=A("div"),v.textContent=`${j("traffic_saving_disable")}`,k=D(),_=A("li"),X&&X.c(),P=D(),C=A("div"),C.textContent=`${j("traffic_saving_enable")}`,T=D(),y=A("div"),M=D(),oe=A("div"),Y=A("span"),Y.textContent=`${j("traffic_saving_helper_text")}`,u(i,"class","item menu-header v-5r0p3"),u(i,"aria-label",j("aria_label_submenu_back")),V(i,"item-mobile",t[34]),u(r,"class","menu-divider v-5r0p3"),u(v,"class","v-5r0p3"),V(v,"quality-title-mobile",t[34]),u(p,"class","item item-traffic-saving v-5r0p3"),u(p,"role","menuitem"),u(p,"tabindex","0"),u(p,"aria-label",j("aria_label_submenu_traffic_saving_off")),V(p,"item-mobile",t[34]),u(C,"class","v-5r0p3"),V(C,"quality-title-mobile",t[34]),u(_,"class","item item-traffic-saving v-5r0p3"),u(_,"role","menuitem"),u(_,"tabindex","0"),u(_,"aria-label",`${j("aria_label_submenu_traffic_saving_on")}. ${j("traffic_saving_helper_text")}`),V(_,"item-mobile",t[34]),u(f,"class","items v-5r0p3"),u(f,"role","menu"),V(f,"items-mobile",t[34]),u(y,"class","menu-divider v-5r0p3"),u(Y,"class","v-5r0p3"),u(oe,"class","item item-helper-text v-5r0p3"),V(oe,"item-mobile",t[34]),u(c,"style",R=t[73](t[19]?.clientHeight,!0)),u(e,"class","menu menu-subList menu-subList-traffic-saving v-5r0p3"),V(e,"menu-desktop",!t[34]),V(e,"menu-mobile",t[34])},m(z,W){I(z,e,W),m(e,i),H(n,i,null),m(i,o),m(i,s),t[121](i),m(e,l),m(e,r),m(e,a),m(e,c),m(c,f),m(f,p),$&&$.m(p,null),m(p,h),m(p,v),m(f,k),m(f,_),X&&X.m(_,null),m(_,P),m(_,C),t[126](f),m(c,T),m(c,y),m(c,M),m(c,oe),m(oe,Y),ee=!0,Q||(w=[pe(i,"click",nt(t[66])),pe(p,"click",nt(t[122])),pe(p,"keydown",t[123]),pe(_,"click",nt(t[124])),pe(_,"keydown",t[125]),pe(f,"keydown",t[89])],Q=!0)},p(z,W){(!ee||W[1]&8)&&V(i,"item-mobile",z[34]),z[5]?$&&(ce(),b($,1,1,()=>{$=null}),fe()):$?W[0]&32&&d($,1):($=ur(),$.c(),d($,1),$.m(p,h)),(!ee||W[1]&8)&&V(v,"quality-title-mobile",z[34]),(!ee||W[1]&8)&&V(p,"item-mobile",z[34]),z[5]?X?W[0]&32&&d(X,1):(X=cr(),X.c(),d(X,1),X.m(_,P)):X&&(ce(),b(X,1,1,()=>{X=null}),fe()),(!ee||W[1]&8)&&V(C,"quality-title-mobile",z[34]),(!ee||W[1]&8)&&V(_,"item-mobile",z[34]),(!ee||W[1]&8)&&V(f,"items-mobile",z[34]),(!ee||W[1]&8)&&V(oe,"item-mobile",z[34]),(!ee||W[0]&524288&&R!==(R=z[73](z[19]?.clientHeight,!0)))&&u(c,"style",R),(!ee||W[1]&8)&&V(e,"menu-desktop",!z[34]),(!ee||W[1]&8)&&V(e,"menu-mobile",z[34])},i(z){ee||(d(n.$$.fragment,z),d($),d(X),ee=!0)},o(z){b(n.$$.fragment,z),b($),b(X),ee=!1},d(z){z&&S(e),F(n),t[121](null),$&&$.d(),X&&X.d(),t[126](null),Q=!1,it(w)}}}function ur(t){let e,i,n;return i=new Wo({}),{c(){e=A("div"),U(i.$$.fragment),u(e,"class","itemIcon v-5r0p3")},m(o,s){I(o,e,s),H(i,e,null),n=!0},i(o){n||(d(i.$$.fragment,o),n=!0)},o(o){b(i.$$.fragment,o),n=!1},d(o){o&&S(e),F(i)}}}function cr(t){let e,i,n;return i=new Wo({}),{c(){e=A("div"),U(i.$$.fragment),u(e,"class","itemIcon v-5r0p3")},m(o,s){I(o,e,s),H(i,e,null),n=!0},i(o){n||(d(i.$$.fragment,o),n=!0)},o(o){b(i.$$.fragment,o),n=!1},d(o){o&&S(e),F(i)}}}function fr(t){let e,i,n,o,s,l,r,a,c,f,p;n=new Jn({props:{direction:"left"}});let h=Ut(t[6]),v=[];for(let _=0;_<h.length;_+=1)v[_]=mr(Zs(t,h,_));const k=_=>b(v[_],1,1,()=>{v[_]=null});return{c(){e=A("div"),i=A("div"),U(n.$$.fragment),o=D(),s=A("div"),s.textContent=`${j("subtitles_caption")}`,l=D(),r=A("ul");for(let _=0;_<v.length;_+=1)v[_].c();u(i,"class","item menu-header v-5r0p3"),u(i,"aria-label",j("aria_label_submenu_back")),V(i,"item-mobile",t[34]),u(r,"class","items v-5r0p3"),u(r,"role","menu"),u(r,"style",a=t[73](t[20]?.clientHeight,!0)),V(r,"items-mobile",t[34]),u(e,"class","menu menu-subList menu-subList-subtitles v-5r0p3"),V(e,"menu-desktop",!t[34]),V(e,"menu-mobile",t[34])},m(_,P){I(_,e,P),m(e,i),H(n,i,null),m(i,o),m(i,s),t[127](i),m(e,l),m(e,r);for(let C=0;C<v.length;C+=1)v[C]&&v[C].m(r,null);t[130](r),c=!0,f||(p=[pe(i,"click",nt(t[66])),pe(r,"keydown",t[86])],f=!0)},p(_,P){if((!c||P[1]&8)&&V(i,"item-mobile",_[34]),P[0]&64|P[1]&8|P[2]&33554440){h=Ut(_[6]);let C;for(C=0;C<h.length;C+=1){const T=Zs(_,h,C);v[C]?(v[C].p(T,P),d(v[C],1)):(v[C]=mr(T),v[C].c(),d(v[C],1),v[C].m(r,null))}for(ce(),C=h.length;C<v.length;C+=1)k(C);fe()}(!c||P[0]&1048576&&a!==(a=_[73](_[20]?.clientHeight,!0)))&&u(r,"style",a),(!c||P[1]&8)&&V(r,"items-mobile",_[34]),(!c||P[1]&8)&&V(e,"menu-desktop",!_[34]),(!c||P[1]&8)&&V(e,"menu-mobile",_[34])},i(_){if(!c){d(n.$$.fragment,_);for(let P=0;P<h.length;P+=1)d(v[P]);c=!0}},o(_){b(n.$$.fragment,_),v=v.filter(Boolean);for(let P=0;P<v.length;P+=1)b(v[P]);c=!1},d(_){_&&S(e),F(n),t[127](null),Tn(v,_),t[130](null),f=!1,it(p)}}}function dr(t){let e,i,n;return i=new Wo({}),{c(){e=A("div"),U(i.$$.fragment),u(e,"class","itemIcon v-5r0p3")},m(o,s){I(o,e,s),H(i,e,null),n=!0},i(o){n||(d(i.$$.fragment,o),n=!0)},o(o){b(i.$$.fragment,o),n=!1},d(o){o&&S(e),F(i)}}}function mr(t){let e,i,n,o=t[142].displayValue+"",s,l,r,a,c,f,p,h=t[142].selected&&dr();function v(){return t[128](t[142])}function k(..._){return t[129](t[142],..._)}return{c(){e=A("li"),h&&h.c(),i=D(),n=A("div"),s=De(o),l=D(),u(n,"class","v-5r0p3"),V(n,"quality-title-mobile",t[34]),u(e,"class","item item-quality v-5r0p3"),u(e,"data-value",r=t[142].value),u(e,"role","menuitem"),u(e,"tabindex","0"),u(e,"aria-label",a=t[142].displayValue),V(e,"item-mobile",t[34])},m(_,P){I(_,e,P),h&&h.m(e,null),m(e,i),m(e,n),m(n,s),m(e,l),c=!0,f||(p=[pe(e,"click",nt(v)),pe(e,"keydown",k)],f=!0)},p(_,P){t=_,t[142].selected?h?P[0]&64&&d(h,1):(h=dr(),h.c(),d(h,1),h.m(e,i)):h&&(ce(),b(h,1,1,()=>{h=null}),fe()),(!c||P[0]&64)&&o!==(o=t[142].displayValue+"")&&xe(s,o),(!c||P[1]&8)&&V(n,"quality-title-mobile",t[34]),(!c||P[0]&64&&r!==(r=t[142].value))&&u(e,"data-value",r),(!c||P[0]&64&&a!==(a=t[142].displayValue))&&u(e,"aria-label",a),(!c||P[1]&8)&&V(e,"item-mobile",t[34])},i(_){c||(d(h),c=!0)},o(_){b(h),c=!1},d(_){_&&S(e),h&&h.d(),f=!1,it(p)}}}function Xd(t){let e,i,n,o,s,l,r=t[10]&&js(t),a=t[12]&&tr(t),c=t[13]&&lr(t),f=t[15]&&ar(t),p=t[14]&&fr(t);return{c(){e=A("div"),r&&r.c(),i=D(),a&&a.c(),n=D(),c&&c.c(),o=D(),f&&f.c(),s=D(),p&&p.c(),u(e,"class","v-5r0p3"),V(e,"hidden",!t[10]),V(e,"container-mobile",t[34])},m(h,v){I(h,e,v),r&&r.m(e,null),m(e,i),a&&a.m(e,null),m(e,n),c&&c.m(e,null),m(e,o),f&&f.m(e,null),m(e,s),p&&p.m(e,null),l=!0},p(h,v){h[10]?r?(r.p(h,v),v[0]&1024&&d(r,1)):(r=js(h),r.c(),d(r,1),r.m(e,i)):r&&(ce(),b(r,1,1,()=>{r=null}),fe()),h[12]?a?(a.p(h,v),v[0]&4096&&d(a,1)):(a=tr(h),a.c(),d(a,1),a.m(e,n)):a&&(ce(),b(a,1,1,()=>{a=null}),fe()),h[13]?c?(c.p(h,v),v[0]&8192&&d(c,1)):(c=lr(h),c.c(),d(c,1),c.m(e,o)):c&&(ce(),b(c,1,1,()=>{c=null}),fe()),h[15]?f?(f.p(h,v),v[0]&32768&&d(f,1)):(f=ar(h),f.c(),d(f,1),f.m(e,s)):f&&(ce(),b(f,1,1,()=>{f=null}),fe()),h[14]?p?(p.p(h,v),v[0]&16384&&d(p,1)):(p=fr(h),p.c(),d(p,1),p.m(e,null)):p&&(ce(),b(p,1,1,()=>{p=null}),fe()),(!l||v[0]&1024)&&V(e,"hidden",!h[10]),(!l||v[1]&8)&&V(e,"container-mobile",h[34])},i(h){l||(d(r),d(a),d(c),d(f),d(p),l=!0)},o(h){b(r),b(a),b(c),b(f),b(p),l=!1},d(h){h&&S(e),r&&r.d(),a&&a.d(),c&&c.d(),f&&f.d(),p&&p.d()}}}const Jd=18;function xd(t,e,i){let n,o,s,l,r,a,c,f,p,h,v,k,_,P,C,T,y,M,oe,Y,R,ee,Q,w,{ref:$=void 0}=e,{supportLink:X}=e,{playerControlsHeight:z=0}=e,{returnFocus:W}=e;const B=pt(),J=cn(),E=B.state.currentQuality$;N(t,E,ne=>i(102,_=ne));const O=B.state.availableQualities$;N(t,O,ne=>i(8,v=ne));const Ce=B.state.autoQualityLimitingAvailable$;N(t,Ce,ne=>i(106,y=ne));const ze=B.state.isAutoQualityEnabled$;N(t,ze,ne=>i(103,P=ne));const Ee=B.state.currentPlaybackRate$;N(t,Ee,ne=>i(9,k=ne));const Ve=B.state.availablePlaybackRates$;N(t,Ve,ne=>i(7,p=ne));const Pe=B.state.currentSubtitle$;N(t,Pe,ne=>i(35,Q=ne));const me=B.state.availableSubtitlesList$;N(t,me,ne=>i(6,c=ne));const Z=B.state.canDownload,de=B.state.hasMpegSources$;N(t,de,ne=>i(107,M=ne));const Se=B.ui.settingsMenuVisible;N(t,Se,ne=>i(10,ee=ne));const Fe=B.ui.settingsMenuOpenedByKeyboard;N(t,Fe,ne=>i(132,o=ne));const je=B.ui.isMobile;N(t,je,ne=>i(34,s=ne));const re=B.ui.mobileNotReportControlHidden$;N(t,re,ne=>i(104,C=ne));const we=B.state.canChangePlaybackSpeed$;N(t,we,ne=>i(105,T=ne));const Me=B.ui.isFullscreen;N(t,Me,ne=>i(135,R=ne));const We=B.state.trafficSavingEnabled$;N(t,We,ne=>i(5,r=ne));const ie=B.ui.playerSize;N(t,ie,ne=>i(134,Y=ne));const G=B.ui.debugPanelVisible;N(t,G,ne=>i(36,w=ne));const ye=B.ui.playerSize;N(t,ye,ne=>i(133,oe=ne));const se=B.state.isInteractiveTime$,ve=B.actions.internal.downloadVideo,Oe=B.actions.internal.closeSettingsMenu;let $e=!0,ot=!1,Be=!1,ae=!1,lt=!1,_t=!1;function at(){o||W?.(),Oe(),_t=!1}function ht(){i(11,$e=!1),i(12,ot=!0)}function Ct(){i(11,$e=!1),i(15,lt=!0)}function Le(ne){B.actions.internal.setQuality(ne),at()}function qt(ne){B.actions.internal.setTrafficSavingEnabled(ne),at()}function ue(){i(11,$e=!1),i(13,Be=!0)}function ft(ne){B.actions.internal.setPlaybackRate(ne),at()}function vt(){i(11,$e=!1),i(14,ae=!0)}function Ze(ne){B.actions.internal.setSubtitle(ne),at()}function et(){i(11,$e=!0),i(12,ot=!1),i(13,Be=!1),i(14,ae=!1),i(15,lt=!1)}function gt(){ve(),at()}function kt(){window.open(X,"_blank"),at(),B.actions.internal.pause()}function bi(){Ll(B.actions.internal.getDebugTextData()),at()}function _i(){G.set(!0),at()}function vi(){_t=!0}function qi(){_t=!1}function Ji(ne,tt,Ot){if(!ne)return"...";const Qt=tt.find(Ni=>Ni.value===ne),Ri=Qt?Qt.displayValue:ne;return Ot?ne===ko.INVARIANT?j("auto_quality_invariant"):j("auto_quality",{actual:Ri}):Ri}let oi,li,ki,Zt,si;function Zi(ne=0,tt=!1){return s&&R&&tt?`max-height: ${Math.round(Y.height*.6)}px`:s?"":`max-height: ${oe.height-Jd-ne-z}px; overflow: auto;`}let wi,yi,ri,Ci,ai,Ti,Pi,wt,Bt,Wt,ui=Ie(!1);N(t,ui,ne=>i(101,h=ne));let Vt,ci,Kt=Ie(!1);N(t,Kt,ne=>i(100,f=ne));let ei,Tt,Pt=Ie(!1);N(t,Pt,ne=>i(99,a=ne));let Rt,jt,fi=Ie(!1);N(t,fi,ne=>i(98,l=ne));const nn=ne=>{eu(ne,Oe)},Wi=async ne=>{el(ne,ht,()=>{const tt=v.findIndex(Ot=>Ot.selected);return Wt.childNodes[tt]})},Gt=async ne=>{tl(ne,et,ui,Oe)},ti=(ne,tt)=>{tn(ne,()=>Le(tt))},Si=async ne=>{el(ne,ue,()=>{const tt=p.findIndex(Ot=>Ot.selected);return ci.childNodes[tt]})},Di=async ne=>{tl(ne,et,Kt,Oe)},Nt=(ne,tt)=>{tn(ne,()=>ft(tt))},bt=async ne=>{el(ne,vt,()=>{const tt=c.findIndex(Ot=>Ot.selected);return Tt.childNodes[tt]})},Ii=async ne=>{tl(ne,et,Pt,Oe)},Ki=(ne,tt)=>{tn(ne,()=>Ze(tt))},ii=async ne=>{el(ne,Ct,()=>{const tt=r?2:0;return jt.childNodes[tt]})},ji=async ne=>{tl(ne,et,fi,Oe)},di=(ne,tt)=>{tn(ne,()=>qt(tt))},xi=ne=>{tn(ne,()=>gt())},Gi=ne=>{tn(ne,()=>kt())},$i=ne=>{tn(ne,()=>bi())},zi=ne=>{tn(ne,()=>_i())};ln(()=>{const ne=se.subscribe(tt=>{tt&&!s&&!_t&&!o&&at()});return()=>{ne()}});function Ai(ne){_e[ne?"unshift":"push"](()=>{Bt=ne,i(1,Bt)})}function Dt(ne){_e[ne?"unshift":"push"](()=>{Vt=ne,i(2,Vt)})}function Yt(ne){_e[ne?"unshift":"push"](()=>{ei=ne,i(3,ei)})}function mi(ne){_e[ne?"unshift":"push"](()=>{Rt=ne,i(4,Rt)})}function Oi(ne){_e[ne?"unshift":"push"](()=>{$=ne,i(0,$)})}function Hi(ne){_e[ne?"unshift":"push"](()=>{li=ne,i(17,li)})}const pi=ne=>Le(ne.value),Ei=(ne,tt)=>ti(tt,ne.value);function Vi(ne){_e[ne?"unshift":"push"](()=>{Wt=ne,i(29,Wt)})}function He(ne){_e[ne?"unshift":"push"](()=>{ki=ne,i(18,ki)})}const Fi=ne=>ft(ne.value),Mt=(ne,tt)=>Nt(tt,ne.value);function Ae(ne){_e[ne?"unshift":"push"](()=>{ci=ne,i(30,ci)})}function Mi(ne){_e[ne?"unshift":"push"](()=>{Zt=ne,i(19,Zt)})}const Yi=()=>qt(!1),Ui=ne=>di(ne,!1),Li=()=>qt(!0),en=ne=>di(ne,!0);function Bi(ne){_e[ne?"unshift":"push"](()=>{jt=ne,i(32,jt)})}function Qi(ne){_e[ne?"unshift":"push"](()=>{si=ne,i(20,si)})}const zt=ne=>Ze(ne),Xi=(ne,tt)=>Ki(tt,ne);function ni(ne){_e[ne?"unshift":"push"](()=>{Tt=ne,i(31,Tt)})}return t.$$set=ne=>{"ref"in ne&&i(0,$=ne.ref),"supportLink"in ne&&i(95,X=ne.supportLink),"playerControlsHeight"in ne&&i(96,z=ne.playerControlsHeight),"returnFocus"in ne&&i(97,W=ne.returnFocus)},t.$$.update=()=>{t.$$.dirty[0]&1024&&ee&&(i(11,$e=!0),i(12,ot=!1),i(13,Be=!1),i(14,ae=!1),i(15,lt=!1)),t.$$.dirty[3]&512&&i(33,n=Io(_)),t.$$.dirty[0]&256|t.$$.dirty[3]&1536&&i(16,oi=Ji(_,v,P)),t.$$.dirty[3]&18432&&i(21,wi=Z&&M&&!C),t.$$.dirty[3]&10240&&i(22,yi=J.features.trafficSaving&&!C&&y),t.$$.dirty[0]&64|t.$$.dirty[3]&2048&&i(23,ri=c.length>0&&!C),t.$$.dirty[3]&6144&&i(24,Ci=!!T&&!C),t.$$.dirty[3]&2048&&i(25,ai=!C),t.$$.dirty[0]&32&&i(26,Ti=j(r?"traffic_saving_on":"traffic_saving_off")),t.$$.dirty[3]&1536&&i(27,Pi=P?j("auto_quality_option"):_),t.$$.dirty[0]&640&&i(28,wt=p.find(ne=>ne.value===k)?.displayValue),t.$$.dirty[0]&2|t.$$.dirty[3]&256&&$o(Bt,ui,h),t.$$.dirty[0]&4|t.$$.dirty[3]&128&&$o(Vt,Kt,f),t.$$.dirty[0]&8|t.$$.dirty[3]&64&&$o(ei,Pt,a),t.$$.dirty[0]&16|t.$$.dirty[3]&32&&$o(Rt,fi,l)},[$,Bt,Vt,ei,Rt,r,c,p,v,k,ee,$e,ot,Be,ae,lt,oi,li,ki,Zt,si,wi,yi,ri,Ci,ai,Ti,Pi,wt,Wt,ci,Tt,jt,n,s,Q,w,J,E,O,Ce,ze,Ee,Ve,Pe,me,de,Se,Fe,je,re,we,Me,We,ie,G,ye,at,ht,Ct,Le,qt,ue,ft,vt,Ze,et,gt,kt,bi,_i,vi,qi,Zi,ui,Kt,Pt,fi,nn,Wi,Gt,ti,Si,Di,Nt,bt,Ii,Ki,ii,ji,di,xi,Gi,$i,zi,X,z,W,l,a,f,h,_,P,C,T,y,M,Ai,Dt,Yt,mi,Oi,Hi,pi,Ei,Vi,He,Fi,Mt,Ae,Mi,Yi,Ui,Li,en,Bi,Qi,zt,Xi,ni]}class fu extends be{constructor(e){super(),ge(this,e,xd,Xd,he,{ref:0,supportLink:95,playerControlsHeight:96,returnFocus:97},Yd,[-1,-1,-1,-1,-1])}}function $d(t){Ke(t,"v-d9t49t",".settings-icon-wrapper.v-d9t49t{position:relative;width:24px}")}function e2(t){let e,i,n;return i=new uu({props:{isMobile:t[3],currentQuality:t[4]}}),{c(){e=A("span"),U(i.$$.fragment),u(e,"class","settings-icon-wrapper v-d9t49t")},m(o,s){I(o,e,s),H(i,e,null),n=!0},p(o,s){const l={};s&8&&(l.isMobile=o[3]),s&16&&(l.currentQuality=o[4]),i.$set(l)},i(o){n||(d(i.$$.fragment,o),n=!0)},o(o){b(i.$$.fragment,o),n=!1},d(o){o&&S(e),F(i)}}}function t2(t){let e,i,n;function o(l){t[9](l)}let s={className:t[1]?"opened":"",testId:"btn-settings",click:t[8],ariaLabel:t[2],ariaExpanded:t[1],$$slots:{default:[e2]},$$scope:{ctx:t}};return t[0]!==void 0&&(s.ref=t[0]),e=new gi({props:s}),_e.push(()=>qe(e,"ref",o)),{c(){U(e.$$.fragment)},m(l,r){H(e,l,r),n=!0},p(l,[r]){const a={};r&2&&(a.className=l[1]?"opened":""),r&4&&(a.ariaLabel=l[2]),r&2&&(a.ariaExpanded=l[1]),r&4120&&(a.$$scope={dirty:r,ctx:l}),!i&&r&1&&(i=!0,a.ref=l[0],Ue(()=>i=!1)),e.$set(a)},i(l){n||(d(e.$$.fragment,l),n=!0)},o(l){b(e.$$.fragment,l),n=!1},d(l){F(e,l)}}}function i2(t,e,i){let n,o,s,{ref:l=void 0}=e;const r=pt(),a=r.state.currentQuality$;N(t,a,_=>i(4,s=_));const c=r.ui.settingsMenuVisible;N(t,c,_=>i(1,n=_));const f=r.actions.internal.toggleSettingsMenu,p=r.ui.isMobile;N(t,p,_=>i(3,o=_));let h;function v(_){const P=ql(_);f(P)}function k(_){l=_,i(0,l)}return t.$$set=_=>{"ref"in _&&i(0,l=_.ref)},t.$$.update=()=>{t.$$.dirty&2&&i(2,h=j(n?"tooltip_settings_on":"tooltip_settings_off"))},[l,n,h,o,s,a,c,p,v,k]}class Kl extends be{constructor(e){super(),ge(this,e,i2,t2,he,{ref:0},$d)}}function n2(t){let e,i;return{c(){e=L("svg"),i=L("path"),u(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-3Zm1 9h2a1 1 0 0 0 0-2H4a1 1 0 0 0 0 2Zm5 0h7a1 1 0 1 0 0-2H9a1 1 0 0 0 0 2Zm-5 4h7a1 1 0 1 0 0-2H4a1 1 0 1 0 0 2Zm10 0h2a1 1 0 1 0 0-2h-2a1 1 0 1 0 0 2Z"),u(i,"fill","#fff"),u(e,"width","22"),u(e,"height","16"),u(e,"fill","none"),u(e,"xmlns","http://www.w3.org/2000/svg"),u(e,"aria-hidden","true"),u(e,"data-testid","subtitle-pained-icon")},m(n,o){I(n,e,o),m(e,i)},p:q,i:q,o:q,d(n){n&&S(e)}}}class o2 extends be{constructor(e){super(),ge(this,e,null,n2,he,{})}}function l2(t){let e,i;return e=new cu({}),{c(){U(e.$$.fragment)},m(n,o){H(e,n,o),i=!0},i(n){i||(d(e.$$.fragment,n),i=!0)},o(n){b(e.$$.fragment,n),i=!1},d(n){F(e,n)}}}function s2(t){let e,i;return e=new o2({}),{c(){U(e.$$.fragment)},m(n,o){H(e,n,o),i=!0},i(n){i||(d(e.$$.fragment,n),i=!0)},o(n){b(e.$$.fragment,n),i=!1},d(n){F(e,n)}}}function r2(t){let e,i,n,o;const s=[s2,l2],l=[];function r(a,c){return a[0]?0:1}return e=r(t),i=l[e]=s[e](t),{c(){i.c(),n=ct()},m(a,c){l[e].m(a,c),I(a,n,c),o=!0},p(a,c){let f=e;e=r(a),e!==f&&(ce(),b(l[f],1,1,()=>{l[f]=null}),fe(),i=l[e],i||(i=l[e]=s[e](a),i.c()),d(i,1),i.m(n.parentNode,n))},i(a){o||(d(i),o=!0)},o(a){b(i),o=!1},d(a){a&&S(n),l[e].d(a)}}}function a2(t){let e,i;return e=new gi({props:{testId:"btn-Subtitles",ariaLabel:t[2],click:t[1],ariaKeyShortCut:Zo[Te.KeyC],$$slots:{default:[r2]},$$scope:{ctx:t}}}),{c(){U(e.$$.fragment)},m(n,o){H(e,n,o),i=!0},p(n,[o]){const s={};o&4&&(s.ariaLabel=n[2]),o&2&&(s.click=n[1]),o&9&&(s.$$scope={dirty:o,ctx:n}),e.$set(s)},i(n){i||(d(e.$$.fragment,n),i=!0)},o(n){b(e.$$.fragment,n),i=!1},d(n){F(e,n)}}}function u2(t,e,i){let{isSubtitlesEnabled:n=!1}=e,{click:o}=e,s;return t.$$set=l=>{"isSubtitlesEnabled"in l&&i(0,n=l.isSubtitlesEnabled),"click"in l&&i(1,o=l.click)},t.$$.update=()=>{t.$$.dirty&1&&i(2,s=j(n?"tooltip_subtitles_on":"tooltip_subtitles_off"))},[n,o,s]}class c2 extends be{constructor(e){super(),ge(this,e,u2,a2,he,{isSubtitlesEnabled:0,click:1})}}function f2(t){Ke(t,"v-19o2urr",".time.v-19o2urr{display:flex;align-items:center;font-weight:500;font-variant-numeric:tabular-nums;padding:12px 6px}.time.mobile.v-19o2urr{padding:0 0 0 8px}.current.v-19o2urr{position:relative}.duration.v-19o2urr{opacity:0.7}.duration.v-19o2urr:before{content:' / ';white-space:pre}")}function pr(t){let e,i;return{c(){e=A("span"),i=De(t[3]),u(e,"class","duration v-19o2urr")},m(n,o){I(n,e,o),m(e,i)},p(n,o){o&8&&xe(i,n[3])},d(n){n&&S(e)}}}function d2(t){let e,i,n,o,s=t[2]&&pr(t);return{c(){e=A("div"),i=A("span"),n=De(t[4]),o=D(),s&&s.c(),u(i,"class","current v-19o2urr"),u(e,"class","time v-19o2urr"),V(e,"mobile",t[1])},m(l,r){I(l,e,r),m(e,i),m(i,n),m(e,o),s&&s.m(e,null),t[7](e)},p(l,[r]){r&16&&xe(n,l[4]),l[2]?s?s.p(l,r):(s=pr(l),s.c(),s.m(e,null)):s&&(s.d(1),s=null),r&2&&V(e,"mobile",l[1])},i:q,o:q,d(l){l&&S(e),s&&s.d(),t[7](null)}}}function m2(t,e,i){let{isMobile:n=!1}=e,{duration:o}=e,{position:s}=e,{showDuration:l=!0}=e,{ref:r}=e,a,c;function f(p){_e[p?"unshift":"push"](()=>{r=p,i(0,r)})}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,s=p.position),"showDuration"in p&&i(2,l=p.showDuration),"ref"in p&&i(0,r=p.ref)},t.$$.update=()=>{t.$$.dirty&32&&i(3,a=zn(o)),t.$$.dirty&64&&i(4,c=zn(s))},[r,n,l,a,c,o,s,f]}class du extends be{constructor(e){super(),ge(this,e,m2,d2,he,{isMobile:1,duration:5,position:6,showDuration:2,ref:0},f2)}}function p2(t){Ke(t,"v-1n5yyua",".icon.v-1n5yyua.v-1n5yyua{display:block;width:24px;height:24px}.icon.v-1n5yyua .cross.v-1n5yyua{visibility:hidden}.icon[data-value='off'].v-1n5yyua .wave1.v-1n5yyua,.icon[data-value='off'].v-1n5yyua .wave2.v-1n5yyua{visibility:hidden}.icon[data-value='off'].v-1n5yyua .cross.v-1n5yyua{visibility:visible}.icon[data-value='mid'].v-1n5yyua .wave2.v-1n5yyua,.icon[data-value='min'].v-1n5yyua .wave2.v-1n5yyua{visibility:hidden}")}function h2(t){let e,i,n,o,s,l;return{c(){e=L("svg"),i=L("g"),n=L("path"),o=L("path"),s=L("path"),u(n,"class","wave2 v-1n5yyua"),u(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"),u(o,"class","wave1 v-1n5yyua"),u(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"),u(s,"class","cross v-1n5yyua"),u(s,"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"),u(i,"fill","#fff"),u(i,"fill-rule","evenodd"),u(e,"data-value",t[0]),u(e,"data-testid",l="volume-"+t[0]+"-icon"),u(e,"xmlns","http://www.w3.org/2000/svg"),u(e,"class","icon v-1n5yyua"),u(e,"aria-hidden","true")},m(r,a){I(r,e,a),m(e,i),m(i,n),m(i,o),m(i,s)},p(r,[a]){a&1&&u(e,"data-value",r[0]),a&1&&l!==(l="volume-"+r[0]+"-icon")&&u(e,"data-testid",l)},i:q,o:q,d(r){r&&S(e)}}}function g2(t,e,i){let{volume:n=1}=e,{muted:o=!1}=e;const s=(r,a)=>a?"off":r>.5?"max":r>.2?"mid":r>0?"min":"off";let l;return t.$$set=r=>{"volume"in r&&i(1,n=r.volume),"muted"in r&&i(2,o=r.muted)},t.$$.update=()=>{t.$$.dirty&6&&i(0,l=s(n,o))},[l,n,o]}class fl extends be{constructor(e){super(),ge(this,e,g2,h2,he,{volume:1,muted:2},p2)}}function b2(t){let e,i;const n=t[4].default,o=On(n,t,t[3],null);return{c(){e=A("div"),o&&o.c(),u(e,"class","overlay")},m(s,l){I(s,e,l),o&&o.m(e,null),t[5](e),i=!0},p(s,[l]){o&&o.p&&(!i||l&8)&&Fn(o,n,s,s[3],i?Hn(n,s[3],l,null):Un(s[3]),null)},i(s){i||(d(o,s),i=!0)},o(s){b(o,s),i=!1},d(s){s&&S(e),o&&o.d(s),t[5](null)}}}function _2(t,e,i){let n,{$$slots:o={},$$scope:s}=e;const r=pt().ui.overlayContainer$;N(t,r,h=>i(2,n=h));let a;const c=h=>{!h||!a||!h.contains(a)||h.removeChild(a)},f=h=>{!h||!a||h.contains(a)||h.appendChild(a)};ln(()=>(f(n),()=>c(n)));function p(h){_e[h?"unshift":"push"](()=>{a=h,i(0,a)})}return t.$$set=h=>{"$$scope"in h&&i(3,s=h.$$scope)},t.$$.update=()=>{t.$$.dirty&4&&f(n)},[a,r,n,s,o,p]}class v2 extends be{constructor(e){super(),ge(this,e,_2,b2,he,{})}}function k2(t){Ke(t,"v-tny135",'.tooltip-wrapper.v-tny135{display:flex;flex-direction:column;min-width:0}.full-width.v-tny135{width:100%}.tooltip.v-tny135{position:absolute;opacity:0;visibility:hidden;transition:opacity 200ms, visibility 200ms;bottom:100%;left:0}.content.v-tny135{display:inline-block;padding:6px 10px;border-radius:3px;color:var(--white);background-color:rgba(41, 41, 41, .8)}.tooltip.active.v-tny135{opacity:1;visibility:visible}.tooltip-pointer.v-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.v-tny135{top:0;bottom:auto}')}function hr(t){let e,i;return e=new v2({props:{$$slots:{default:[w2]},$$scope:{ctx:t}}}),{c(){U(e.$$.fragment)},m(n,o){H(e,n,o),i=!0},p(n,o){const s={};o&2097395&&(s.$$scope={dirty:o,ctx:n}),e.$set(s)},i(n){i||(d(e.$$.fragment,n),i=!0)},o(n){b(e.$$.fragment,n),i=!1},d(n){F(e,n)}}}function w2(t){let e,i,n,o,s,l,r;return{c(){e=A("div"),i=A("div"),n=De(t[1]),o=D(),s=A("div"),u(i,"class","content v-tny135"),u(s,"class","tooltip-pointer v-tny135"),u(s,"style",l=`transform: translate(${t[5]}px, ${t[9]}px) rotate(${t[8]?0:"180deg"});`),V(s,"bottom-placement-pointer",!t[8]),u(e,"class","tooltip v-tny135"),u(e,"style",r=`transform: translate(${t[6]}px, ${t[7]}px);`),V(e,"active",t[0])},m(a,c){I(a,e,c),m(e,i),m(i,n),m(e,o),m(e,s),t[20](e)},p(a,c){c&2&&xe(n,a[1]),c&32&&l!==(l=`transform: translate(${a[5]}px, ${a[9]}px) rotate(${a[8]?0:"180deg"});`)&&u(s,"style",l),c&192&&r!==(r=`transform: translate(${a[6]}px, ${a[7]}px);`)&&u(e,"style",r),c&1&&V(e,"active",a[0])},d(a){a&&S(e),t[20](null)}}}function y2(t){let e,i,n,o,s,l;const r=t[18].default,a=On(r,t,t[21],null);let c=t[1]&&hr(t);return{c(){e=A("div"),a&&a.c(),i=D(),c&&c.c(),n=ct(),u(e,"class","tooltip-wrapper v-tny135"),V(e,"full-width",t[2])},m(f,p){I(f,e,p),a&&a.m(e,null),t[19](e),I(f,i,p),c&&c.m(f,p),I(f,n,p),o=!0,s||(l=[pe(e,"mouseenter",t[12]),pe(e,"mousemove",t[12]),pe(e,"mouseleave",t[13]),pe(e,"mousedown",t[13]),pe(e,"mouseup",t[12])],s=!0)},p(f,[p]){a&&a.p&&(!o||p&2097152)&&Fn(a,r,f,f[21],o?Hn(r,f[21],p,null):Un(f[21]),null),(!o||p&4)&&V(e,"full-width",f[2]),f[1]?c?(c.p(f,p),p&2&&d(c,1)):(c=hr(f),c.c(),d(c,1),c.m(n.parentNode,n)):c&&(ce(),b(c,1,1,()=>{c=null}),fe())},i(f){o||(d(a,f),d(c),o=!0)},o(f){b(a,f),b(c),o=!1},d(f){f&&(S(e),S(i),S(n)),a&&a.d(f),t[19](null),c&&c.d(f),s=!1,it(l)}}}const Ro=5;function C2(t,e,i){let n,o,{$$slots:s={},$$scope:l}=e,{content:r=""}=e,{active:a=!1}=e,{translateX:c=0}=e,{translateY:f=0}=e,{isFullWidthWrapper:p=!1}=e,{placement:h="top"}=e,{onVisibilityChange:v=Ye}=e;const k=h==="top";let _,P,C,T=0,y=k?Ro:-Ro,M=0,oe=0;const Y=cn(),R=pt(),ee=R.ui.playerSize;N(t,ee,O=>i(24,o=O));const Q=R.ui.overlayContainer$;N(t,Q,O=>i(23,n=O));const w=R.getLogger().createComponentLog("Tooltip component"),$=()=>{if(!n||!P||!_)return;const O=n.getBoundingClientRect(),Ce=_.getBoundingClientRect(),ze=Ce.width,Ee=P.clientWidth,Ve=o.width,Pe=(ze-Ee)/2,me=Ce.left+c-O.left;let Z=me+Pe;const de=Ce.top+f-O.top;let Se=Ee/2-Ro;const Fe=Z<No,je=Z+Ee>Ve-No;Fe&&(Z=No,Se=me+Ce.width/2-2.5*Ro),je&&(Z=Ve-No-Ee,Se=Ce.left-O.left+Ce.width/2-Z-Ro),i(6,M=Z),i(7,oe=de),i(5,T=Se)},X=()=>{try{if(!n||!_)return;$(),i(0,a=!0)}catch(O){w({message:String(O)})}},z=()=>{i(0,a=!1)},W=()=>{P&&(C||(C=window.setTimeout(X,Y.controls.hideTimeoutTooltips)),a&&X())},B=()=>{z(),window.clearTimeout(C),C=void 0};ln($),qo(()=>window.clearTimeout(C));function J(O){_e[O?"unshift":"push"](()=>{_=O,i(3,_)})}function E(O){_e[O?"unshift":"push"](()=>{P=O,i(4,P)})}return t.$$set=O=>{"content"in O&&i(1,r=O.content),"active"in O&&i(0,a=O.active),"translateX"in O&&i(14,c=O.translateX),"translateY"in O&&i(15,f=O.translateY),"isFullWidthWrapper"in O&&i(2,p=O.isFullWidthWrapper),"placement"in O&&i(16,h=O.placement),"onVisibilityChange"in O&&i(17,v=O.onVisibilityChange),"$$scope"in O&&i(21,l=O.$$scope)},t.$$.update=()=>{t.$$.dirty&131073&&v(a)},[a,r,p,_,P,T,M,oe,k,y,ee,Q,W,B,c,f,h,v,s,J,E,l]}class mu extends be{constructor(e){super(),ge(this,e,C2,y2,he,{content:1,active:0,translateX:14,translateY:15,isFullWidthWrapper:2,placement:16,onVisibilityChange:17},k2)}}function T2(t){Ke(t,"v-p9r045",".btn-container.v-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.v-p9r045{width:100%;min-width:0}")}function P2(t){let e;const i=t[19].default,n=On(i,t,t[24],null);return{c(){n&&n.c()},m(o,s){n&&n.m(o,s),e=!0},p(o,s){n&&n.p&&(!e||s&16777216)&&Fn(n,i,o,o[24],e?Hn(i,o[24],s,null):Un(o[24]),null)},i(o){e||(d(n,o),e=!0)},o(o){b(n,o),e=!1},d(o){n&&n.d(o)}}}function S2(t){let e,i;return e=new mu({props:{content:t[12],translateX:t[10],translateY:t[11],isFullWidthWrapper:t[4],active:t[6],placement:t[7],onVisibilityChange:t[9],$$slots:{default:[I2]},$$scope:{ctx:t}}}),{c(){U(e.$$.fragment)},m(n,o){H(e,n,o),i=!0},p(n,o){const s={};o&4096&&(s.content=n[12]),o&1024&&(s.translateX=n[10]),o&2048&&(s.translateY=n[11]),o&16&&(s.isFullWidthWrapper=n[4]),o&64&&(s.active=n[6]),o&128&&(s.placement=n[7]),o&512&&(s.onVisibilityChange=n[9]),o&16777216&&(s.$$scope={dirty:o,ctx:n}),e.$set(s)},i(n){i||(d(e.$$.fragment,n),i=!0)},o(n){b(e.$$.fragment,n),i=!1},d(n){F(e,n)}}}function I2(t){let e;const i=t[19].default,n=On(i,t,t[24],null);return{c(){n&&n.c()},m(o,s){n&&n.m(o,s),e=!0},p(o,s){n&&n.p&&(!e||s&16777216)&&Fn(n,i,o,o[24],e?Hn(i,o[24],s,null):Un(o[24]),null)},i(o){e||(d(n,o),e=!0)},o(o){b(n,o),e=!1},d(o){n&&n.d(o)}}}function A2(t){let e,i,n,o,s,l,r,a,c;const f=[S2,P2],p=[];function h(v,k){return v[3]&&v[5]&&!v[13]?0:1}return i=h(t),n=p[i]=f[i](t),{c(){e=A("div"),n.c(),u(e,"class",o="btn-container "+t[2]+" v-p9r045"),u(e,"aria-hidden",s=t[8]||null),Po(()=>t[23].call(e))},m(v,k){I(v,e,k),p[i].m(e,null),t[22](e),l=Dl(e,t[23].bind(e)),r=!0,a||(c=[pe(e,"pointerdown",nt($t(t[20]))),pe(e,"click",nt($t(t[21])))],a=!0)},p(v,[k]){let _=i;i=h(v),i===_?p[i].p(v,k):(ce(),b(p[_],1,1,()=>{p[_]=null}),fe(),n=p[i],n?n.p(v,k):(n=p[i]=f[i](v),n.c()),d(n,1),n.m(e,null)),(!r||k&4&&o!==(o="btn-container "+v[2]+" v-p9r045"))&&u(e,"class",o),(!r||k&256&&s!==(s=v[8]||null))&&u(e,"aria-hidden",s)},i(v){r||(d(n),r=!0)},o(v){b(n),r=!1},d(v){v&&S(e),p[i].d(),t[22](null),l(),a=!1,it(c)}}}function E2(t,e,i){let n,o,{$$slots:s={},$$scope:l}=e,{className:r=""}=e,{disabled:a=!1}=e,{hasTooltip:c=!0}=e,{ref:f=void 0}=e,{width:p=void 0}=e,{isFullWidthTooltip:h=!0}=e,{tooltipContent:v=""}=e,{tooltipActive:k=!1}=e,{tooltipPlacement:_="top"}=e,{disabledTooltipContent:P=j("tooltip_button_disabled")}=e,{isAriaHidden:C=!1}=e,{onTooltipVisibilityChange:T=Ye}=e,{initialTranslateXPx:y=0}=e,{initialTranslateYPx:M=-18}=e;const oe=pt(),Y=oe.ui.isMobile;N(t,Y,z=>i(13,o=z));const R=oe.state.graphIsOpened$;N(t,R,z=>i(18,n=z));let ee;function Q(z){uo.call(this,t,z)}function w(z){uo.call(this,t,z)}function $(z){_e[z?"unshift":"push"](()=>{f=z,i(0,f)})}function X(){p=this.clientWidth,i(1,p)}return t.$$set=z=>{"className"in z&&i(2,r=z.className),"disabled"in z&&i(16,a=z.disabled),"hasTooltip"in z&&i(3,c=z.hasTooltip),"ref"in z&&i(0,f=z.ref),"width"in z&&i(1,p=z.width),"isFullWidthTooltip"in z&&i(4,h=z.isFullWidthTooltip),"tooltipContent"in z&&i(5,v=z.tooltipContent),"tooltipActive"in z&&i(6,k=z.tooltipActive),"tooltipPlacement"in z&&i(7,_=z.tooltipPlacement),"disabledTooltipContent"in z&&i(17,P=z.disabledTooltipContent),"isAriaHidden"in z&&i(8,C=z.isAriaHidden),"onTooltipVisibilityChange"in z&&i(9,T=z.onTooltipVisibilityChange),"initialTranslateXPx"in z&&i(10,y=z.initialTranslateXPx),"initialTranslateYPx"in z&&i(11,M=z.initialTranslateYPx),"$$scope"in z&&i(24,l=z.$$scope)},t.$$.update=()=>{t.$$.dirty&458784&&(a?i(12,ee=n?j("tooltip_disabled_when_graph_on"):P):i(12,ee=v))},[f,p,r,c,h,v,k,_,C,T,y,M,ee,o,Y,R,a,P,n,s,Q,w,$,X,l]}class Et extends be{constructor(e){super(),ge(this,e,E2,A2,he,{className:2,disabled:16,hasTooltip:3,ref:0,width:1,isFullWidthTooltip:4,tooltipContent:5,tooltipActive:6,tooltipPlacement:7,disabledTooltipContent:17,isAriaHidden:8,onTooltipVisibilityChange:9,initialTranslateXPx:10,initialTranslateYPx:11},T2)}}function V2(t){let e,i,n,o,s;return{c(){e=L("svg"),i=L("rect"),o=L("path"),u(i,"width","20"),u(i,"height","20"),u(i,"rx","10"),u(i,"fill","white"),u(i,"fill-opacity",n=t[0]?1:.24),u(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"),u(o,"fill",s=t[0]?"var(--interactive-episode-complete)":"white"),u(e,"width","20"),u(e,"height","20"),u(e,"viewBox","0 0 20 20"),u(e,"fill","none"),u(e,"xmlns","http://www.w3.org/2000/svg")},m(l,r){I(l,e,r),m(e,i),m(e,o)},p(l,[r]){r&1&&n!==(n=l[0]?1:.24)&&u(i,"fill-opacity",n),r&1&&s!==(s=l[0]?"var(--interactive-episode-complete)":"white")&&u(o,"fill",s)},i:q,o:q,d(l){l&&S(e)}}}function M2(t,e,i){let{completed:n}=e;return t.$$set=o=>{"completed"in o&&i(0,n=o.completed)},[n]}class pu extends be{constructor(e){super(),ge(this,e,M2,V2,he,{completed:0})}}function L2(t){Ke(t,"v-bklhpe",".interactive-episode-icon.v-bklhpe{width:20px;height:20px;position:absolute;transform:translateX(-50%);cursor:default}.interactive-episode-icon.disabled.v-bklhpe{pointer-events:none;opacity:0.4}")}function B2(t){let e,i,n,o,s;return i=new pu({props:{completed:!!t[0].completed}}),{c(){e=A("div"),U(i.$$.fragment),u(e,"class","interactive-episode-icon v-bklhpe"),u(e,"style",n=`left: ${t[0].from+t[0].width/2}%`),Po(()=>t[3].call(e)),V(e,"disabled",t[1])},m(l,r){I(l,e,r),H(i,e,null),o=Dl(e,t[3].bind(e)),s=!0},p(l,r){const a={};r&1&&(a.completed=!!l[0].completed),i.$set(a),(!s||r&1&&n!==(n=`left: ${l[0].from+l[0].width/2}%`))&&u(e,"style",n),(!s||r&2)&&V(e,"disabled",l[1])},i(l){s||(d(i.$$.fragment,l),s=!0)},o(l){b(i.$$.fragment,l),s=!1},d(l){l&&S(e),F(i),o()}}}function R2(t){let e,i;return e=new Et({props:{tooltipContent:j(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:[B2]},$$scope:{ctx:t}}}),{c(){U(e.$$.fragment)},m(n,o){H(e,n,o),i=!0},p(n,[o]){const s={};o&1&&(s.tooltipContent=j(n[0].completed?"tooltip_episode_finished":"tooltip_episode_unfinished")),o&2&&(s.disabled=n[1]),o&4&&(s.width=n[2]||0),o&23&&(s.$$scope={dirty:o,ctx:n}),e.$set(s)},i(n){i||(d(e.$$.fragment,n),i=!0)},o(n){b(e.$$.fragment,n),i=!1},d(n){F(e,n)}}}function N2(t,e,i){let{videoEpisode:n}=e,{disabled:o}=e,s;function l(){s=this.clientWidth,i(2,s)}return t.$$set=r=>{"videoEpisode"in r&&i(0,n=r.videoEpisode),"disabled"in r&&i(1,o=r.disabled)},[n,o,s,l]}class D2 extends be{constructor(e){super(),ge(this,e,N2,R2,he,{videoEpisode:0,disabled:1},L2)}}function z2(t){Ke(t,"v-1h9p3m2",".video-episodes-wrap.v-1h9p3m2{position:absolute;width:100%;height:100%}.video-episode.v-1h9p3m2{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.v-1h9p3m2:where(:hover, :active){transform:scaleY(1.5)}.video-episode-inner.v-1h9p3m2,.video-episode-loaded.v-1h9p3m2,.video-episode-filled.v-1h9p3m2{position:absolute;height:var(--slider-height);border-radius:var(--slider-radius)}.video-episode-inner.v-1h9p3m2{position:absolute;overflow:hidden;width:calc(100% - 2 * var(--slider-video-episode-gap));background:var(--slider-bg)}.video-episode-loaded.v-1h9p3m2{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.v-1h9p3m2{position:absolute;left:-100%;width:100%;height:100%;border-radius:var(--slider-radius);background-color:var(--slider-filled-bg)}")}function gr(t,e,i){const n=t.slice();return n[2]=e[i],n}function br(t){let e,i,n,o,s,l,r,a,c;return{c(){e=A("div"),i=A("div"),n=A("div"),s=D(),l=A("div"),a=D(),u(n,"class","video-episode-loaded v-1h9p3m2"),u(n,"style",o=`transform: translateX(${t[2].loadedWidth/t[2].width*100}%)`),u(l,"class","video-episode-filled v-1h9p3m2"),u(l,"style",r=`transform: translateX(${t[2].filledWidth/t[2].width*100}%)`),V(l,"mobile",t[1]),u(i,"class","video-episode-inner v-1h9p3m2"),u(e,"class","video-episode v-1h9p3m2"),u(e,"style",c=`left: ${t[2].from}%; width: ${t[2].width}%`),V(e,"mobile",t[1])},m(f,p){I(f,e,p),m(e,i),m(i,n),m(i,s),m(i,l),m(e,a)},p(f,p){p&1&&o!==(o=`transform: translateX(${f[2].loadedWidth/f[2].width*100}%)`)&&u(n,"style",o),p&1&&r!==(r=`transform: translateX(${f[2].filledWidth/f[2].width*100}%)`)&&u(l,"style",r),p&2&&V(l,"mobile",f[1]),p&1&&c!==(c=`left: ${f[2].from}%; width: ${f[2].width}%`)&&u(e,"style",c),p&2&&V(e,"mobile",f[1])},d(f){f&&S(e)}}}function O2(t){let e,i=Ut(t[0]),n=[];for(let o=0;o<i.length;o+=1)n[o]=br(gr(t,i,o));return{c(){e=A("div");for(let o=0;o<n.length;o+=1)n[o].c();u(e,"class","video-episodes-wrap v-1h9p3m2")},m(o,s){I(o,e,s);for(let l=0;l<n.length;l+=1)n[l]&&n[l].m(e,null)},p(o,[s]){if(s&3){i=Ut(o[0]);let l;for(l=0;l<i.length;l+=1){const r=gr(o,i,l);n[l]?n[l].p(r,s):(n[l]=br(r),n[l].c(),n[l].m(e,null))}for(;l<n.length;l+=1)n[l].d(1);n.length=i.length}},i:q,o:q,d(o){o&&S(e),Tn(n,o)}}}function H2(t,e,i){let{videoEpisodes:n=[]}=e,{isMobile:o}=e;return t.$$set=s=>{"videoEpisodes"in s&&i(0,n=s.videoEpisodes),"isMobile"in s&&i(1,o=s.isMobile)},[n,o]}class F2 extends be{constructor(e){super(),ge(this,e,H2,O2,he,{videoEpisodes:0,isMobile:1},z2)}}function U2(t){Ke(t,"v-1golz1y",".interactive-icons.v-1golz1y.v-1golz1y{position:absolute;width:calc(100% - 20px);top:-28px}.interactive-icons.mobile.v-1golz1y.v-1golz1y{top:-10px}.slider.v-1golz1y.v-1golz1y{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.v-1golz1y.v-1golz1y{cursor:default}.slider.v-1golz1y.v-1golz1y: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.v-1golz1y.v-1golz1y{position:absolute;width:100%;height:100%;border-radius:var(--slider-radius);overflow:hidden;background:var(--slider-bg)}.loaded.v-1golz1y.v-1golz1y{position:absolute;left:-100%;width:100%;height:100%;border-radius:var(--slider-radius);background:var(--slider-loaded-bg);transition:transform 0.2s}.filled.v-1golz1y.v-1golz1y{position:absolute;left:-100%;width:100%;height:100%;border-radius:var(--slider-radius);background-color:var(--slider-filled-bg)}.slider.square.v-1golz1y.v-1golz1y,.slider.square.v-1golz1y>.bars.v-1golz1y,.slider.square.v-1golz1y .loaded.v-1golz1y,.slider.square.v-1golz1y .filled.v-1golz1y{border-radius:unset}.filled.active-live.v-1golz1y.v-1golz1y{background-color:var(--slider-filled-active-live-bg)}.filled.ads.v-1golz1y.v-1golz1y{background-color:var(--slider-filled-ads)}.handleWrap.v-1golz1y.v-1golz1y{position:absolute;left:-100%;width:100%}.handle.v-1golz1y.v-1golz1y{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.v-1golz1y.v-1golz1y{background-color:var(--slider-filled-active-live-bg)}.slider.v-1golz1y:hover .handle.v-1golz1y,.slider-dragging.v-1golz1y .handle.v-1golz1y{visibility:visible;opacity:1;transform:scale(1)}.slider-dragging.v-1golz1y .handle.v-1golz1y{transform:scale(1.3)}.slider-vertical.v-1golz1y.v-1golz1y{position:absolute;left:-8px;top:-18px;transform-origin:0 0;transform:rotate(-90deg)}.slider.disabled.v-1golz1y.v-1golz1y{cursor:default;pointer-events:none;opacity:0.4}")}function _r(t,e,i){const n=t.slice();return n[48]=e[i],n}function vr(t){let e,i,n=Ut(t[21]),o=[];for(let l=0;l<n.length;l+=1)o[l]=wr(_r(t,n,l));const s=l=>b(o[l],1,1,()=>{o[l]=null});return{c(){e=A("div");for(let l=0;l<o.length;l+=1)o[l].c();u(e,"class","interactive-icons v-1golz1y"),V(e,"mobile",t[5]),V(e,"hidden",t[5]&&!t[20])},m(l,r){I(l,e,r);for(let a=0;a<o.length;a+=1)o[a]&&o[a].m(e,null);i=!0},p(l,r){if(r[0]&2097664){n=Ut(l[21]);let a;for(a=0;a<n.length;a+=1){const c=_r(l,n,a);o[a]?(o[a].p(c,r),d(o[a],1)):(o[a]=wr(c),o[a].c(),d(o[a],1),o[a].m(e,null))}for(ce(),a=n.length;a<o.length;a+=1)s(a);fe()}(!i||r[0]&32)&&V(e,"mobile",l[5]),(!i||r[0]&1048608)&&V(e,"hidden",l[5]&&!l[20])},i(l){if(!i){for(let r=0;r<n.length;r+=1)d(o[r]);i=!0}},o(l){o=o.filter(Boolean);for(let r=0;r<o.length;r+=1)b(o[r]);i=!1},d(l){l&&S(e),Tn(o,l)}}}function kr(t){let e,i;return e=new D2({props:{videoEpisode:t[48],disabled:t[9]}}),{c(){U(e.$$.fragment)},m(n,o){H(e,n,o),i=!0},p(n,o){const s={};o[0]&2097152&&(s.videoEpisode=n[48]),o[0]&512&&(s.disabled=n[9]),e.$set(s)},i(n){i||(d(e.$$.fragment,n),i=!0)},o(n){b(e.$$.fragment,n),i=!1},d(n){F(e,n)}}}function wr(t){let e,i,n=t[48].interactive&&kr(t);return{c(){n&&n.c(),e=ct()},m(o,s){n&&n.m(o,s),I(o,e,s),i=!0},p(o,s){o[48].interactive?n?(n.p(o,s),s[0]&2097152&&d(n,1)):(n=kr(o),n.c(),d(n,1),n.m(e.parentNode,e)):n&&(ce(),b(n,1,1,()=>{n=null}),fe())},i(o){i||(d(n),i=!0)},o(o){b(n),i=!1},d(o){o&&S(e),n&&n.d(o)}}}function q2(t){let e,i,n,o,s,l;return{c(){e=A("div"),i=A("div"),o=D(),s=A("div"),u(i,"class","loaded v-1golz1y"),u(i,"style",n=`transform: translateX(${t[11]*100}%);`),u(s,"class","filled v-1golz1y"),u(s,"style",l=`transform: translateX(${t[12]*100}%);`),V(s,"active-live",t[4]),V(s,"ads",t[6]),u(e,"class","bars v-1golz1y")},m(r,a){I(r,e,a),m(e,i),m(e,o),m(e,s)},p(r,a){a[0]&2048&&n!==(n=`transform: translateX(${r[11]*100}%);`)&&u(i,"style",n),a[0]&4096&&l!==(l=`transform: translateX(${r[12]*100}%);`)&&u(s,"style",l),a[0]&16&&V(s,"active-live",r[4]),a[0]&64&&V(s,"ads",r[6])},i:q,o:q,d(r){r&&S(e)}}}function Z2(t){let e,i;return e=new F2({props:{videoEpisodes:t[21],isMobile:t[5]}}),{c(){U(e.$$.fragment)},m(n,o){H(e,n,o),i=!0},p(n,o){const s={};o[0]&2097152&&(s.videoEpisodes=n[21]),o[0]&32&&(s.isMobile=n[5]),e.$set(s)},i(n){i||(d(e.$$.fragment,n),i=!0)},o(n){b(e.$$.fragment,n),i=!1},d(n){F(e,n)}}}function W2(t){let e,i,n,o,s,l,r,a,c,f,p,h,v,k=t[8]&&vr(t);const _=[Z2,q2],P=[];function C(T,y){return T[21].length?0:1}return n=C(t),o=P[n]=_[n](t),{c(){k&&k.c(),e=D(),i=A("div"),o.c(),s=D(),l=A("div"),r=A("div"),u(r,"class","handle v-1golz1y"),V(r,"active-live",t[4]),u(l,"class","handleWrap v-1golz1y"),u(l,"style",a=`transform: translateX(${t[13]*100}%);`),V(l,"hidden",t[10]),u(i,"class",c="slider "+t[0]+" v-1golz1y"),u(i,"aria-label",t[14]),u(i,"aria-valuemin",t[15]),u(i,"aria-valuemax",t[16]),u(i,"aria-valuenow",t[17]),u(i,"aria-valuetext",t[18]),u(i,"role","slider"),u(i,"tabindex","0"),u(i,"data-testid",f=t[1]??null),V(i,"disabled",t[9]),V(i,"slider-dragging",t[20]),V(i,"hidden",t[2]),V(i,"slider-vertical",t[3]),V(i,"no-handle",t[10]),V(i,"square",t[7])},m(T,y){k&&k.m(T,y),I(T,e,y),I(T,i,y),P[n].m(i,null),m(i,s),m(i,l),m(l,r),t[42](i),p=!0,h||(v=[pe(i,"pointerdown",$t(t[22])),pe(i,"pointermove",$t(t[23])),pe(i,"pointerup",$t(t[24])),pe(i,"pointerenter",$t(t[25])),pe(i,"pointerleave",$t(t[26])),pe(i,"click",nt(Ye)),pe(i,"wheel",t[27])],h=!0)},p(T,y){T[8]?k?(k.p(T,y),y[0]&256&&d(k,1)):(k=vr(T),k.c(),d(k,1),k.m(e.parentNode,e)):k&&(ce(),b(k,1,1,()=>{k=null}),fe());let M=n;n=C(T),n===M?P[n].p(T,y):(ce(),b(P[M],1,1,()=>{P[M]=null}),fe(),o=P[n],o?o.p(T,y):(o=P[n]=_[n](T),o.c()),d(o,1),o.m(i,s)),(!p||y[0]&16)&&V(r,"active-live",T[4]),(!p||y[0]&8192&&a!==(a=`transform: translateX(${T[13]*100}%);`))&&u(l,"style",a),(!p||y[0]&1024)&&V(l,"hidden",T[10]),(!p||y[0]&1&&c!==(c="slider "+T[0]+" v-1golz1y"))&&u(i,"class",c),(!p||y[0]&16384)&&u(i,"aria-label",T[14]),(!p||y[0]&32768)&&u(i,"aria-valuemin",T[15]),(!p||y[0]&65536)&&u(i,"aria-valuemax",T[16]),(!p||y[0]&131072)&&u(i,"aria-valuenow",T[17]),(!p||y[0]&262144)&&u(i,"aria-valuetext",T[18]),(!p||y[0]&2&&f!==(f=T[1]??null))&&u(i,"data-testid",f),(!p||y[0]&513)&&V(i,"disabled",T[9]),(!p||y[0]&1048577)&&V(i,"slider-dragging",T[20]),(!p||y[0]&5)&&V(i,"hidden",T[2]),(!p||y[0]&9)&&V(i,"slider-vertical",T[3]),(!p||y[0]&1025)&&V(i,"no-handle",T[10]),(!p||y[0]&129)&&V(i,"square",T[7])},i(T){p||(d(k),d(o),p=!0)},o(T){b(k),b(o),p=!1},d(T){T&&(S(e),S(i)),k&&k.d(T),P[n].d(),t[42](null),h=!1,it(v)}}}function K2(t,e,i){let n,o,{className:s=""}=e,{testId:l=void 0}=e,{isHidden:r=!1}=e,{isVertical:a=!1}=e,{isActiveLive:c=!1}=e,{isMobile:f=!1}=e,{isAds:p=!1}=e,{squareBorders:h=!1}=e,{videoEpisodes:v=[]}=e,{withWheelHandler:k=!1}=e,{isInteractive:_=!1}=e,{disabled:P=!1}=e,{hideHandel:C=!1}=e,T,y,{onPointerDown:M=Ye}=e,{onHandleMove:oe=Ye}=e,{onPointerUp:Y=Ye}=e,{onPointerEnter:R=Ye}=e,{onPointerMove:ee=Ye}=e,{onPointerLeave:Q=Ye}=e,{onWheelUp:w=Ye}=e,{onWheelDown:$=Ye}=e,{onWheelLeft:X=Ye}=e,{onWheelRight:z=Ye}=e,{loadedProgress:W=0}=e,{filledProgress:B=0}=e,{handleProgress:J=0}=e,{ariaLabel:E=""}=e,{ariaValueMin:O=void 0}=e,{ariaValueMax:Ce=void 0}=e,{ariaValueNow:ze=void 0}=e,{ariaValueText:Ee=""}=e;const Ve=cn();let Pe=!1,me;function Z(G){if(Pe)return;i(20,Pe=!0),y=T.getBoundingClientRect();const ye=we(G.clientX,G.clientY);M(ye),T.setPointerCapture(G.pointerId)}function de(G){const ye=we(G.clientX,G.clientY),se=Me(G.clientX);ee(ye,se,y.width),Pe&&oe(ye)}function Se(G){if(!Pe)return;i(20,Pe=!1);const ye=we(G.clientX,G.clientY);Y(ye)}function Fe(G){y=T.getBoundingClientRect();const ye=we(G.clientX,G.clientY),se=Me(G.clientX);R(ye,se,y.width)}function je(){Q()}function re(G){k&&(G.preventDefault(),G.deltaY<0?w():G.deltaY>0?$():G.deltaX>0?z():X())}function we(G,ye){return a?Math.max(0,Math.min(1,(y.height-(ye-y.top))/y.height)):Math.min(Math.max(G-y.x,0),y.width)/y.width}function Me(G){return Math.min(Math.max(G-y.x,0),y.width)}function We(G,ye){const se=Ve.features.episodesClustering&&!_?Ve.episodeMinWidthPc:0,ve=[];let Oe=0,$e=0,ot=0;for(let lt=1;lt<v.length;lt++)$e=v[lt].time/me*100,$e-Oe>se&&(ve.push({from:Oe,width:Math.max(0,$e-Oe),loadedWidth:Math.max(0,Math.min($e,G)-Oe),filledWidth:Math.max(0,Math.min($e,ye)-Oe),interactive:v[lt-1].interactive,completed:v[lt-1].completed}),Oe=v[lt].time/me*100,ot++);const Be={from:Oe,width:Math.max(0,100-Oe),loadedWidth:Math.max(0,Math.min(G,100)-Oe),filledWidth:Math.max(0,Math.min(ye,100)-Oe),interactive:v[ot].interactive,completed:v[ot].completed};100-Oe<se?(ot-=1,ve[ot].width+=100-Oe,ve[ot].loadedWidth+=Math.max(0,Math.min(G,100)-Oe),ve[ot].filledWidth+=Math.max(0,Math.min(ye,100)-Oe)):ve[ot]=Be;const ae=v[0].time;if(ae!==0){const lt=ae/me*100;ve.unshift({from:0,width:lt,loadedWidth:Math.min(lt,G),filledWidth:Math.min(lt,ye)})}return ve}function ie(G){_e[G?"unshift":"push"](()=>{T=G,i(19,T)})}return t.$$set=G=>{"className"in G&&i(0,s=G.className),"testId"in G&&i(1,l=G.testId),"isHidden"in G&&i(2,r=G.isHidden),"isVertical"in G&&i(3,a=G.isVertical),"isActiveLive"in G&&i(4,c=G.isActiveLive),"isMobile"in G&&i(5,f=G.isMobile),"isAds"in G&&i(6,p=G.isAds),"squareBorders"in G&&i(7,h=G.squareBorders),"videoEpisodes"in G&&i(28,v=G.videoEpisodes),"withWheelHandler"in G&&i(29,k=G.withWheelHandler),"isInteractive"in G&&i(8,_=G.isInteractive),"disabled"in G&&i(9,P=G.disabled),"hideHandel"in G&&i(10,C=G.hideHandel),"onPointerDown"in G&&i(30,M=G.onPointerDown),"onHandleMove"in G&&i(31,oe=G.onHandleMove),"onPointerUp"in G&&i(32,Y=G.onPointerUp),"onPointerEnter"in G&&i(33,R=G.onPointerEnter),"onPointerMove"in G&&i(34,ee=G.onPointerMove),"onPointerLeave"in G&&i(35,Q=G.onPointerLeave),"onWheelUp"in G&&i(36,w=G.onWheelUp),"onWheelDown"in G&&i(37,$=G.onWheelDown),"onWheelLeft"in G&&i(38,X=G.onWheelLeft),"onWheelRight"in G&&i(39,z=G.onWheelRight),"loadedProgress"in G&&i(11,W=G.loadedProgress),"filledProgress"in G&&i(12,B=G.filledProgress),"handleProgress"in G&&i(13,J=G.handleProgress),"ariaLabel"in G&&i(14,E=G.ariaLabel),"ariaValueMin"in G&&i(15,O=G.ariaValueMin),"ariaValueMax"in G&&i(16,Ce=G.ariaValueMax),"ariaValueNow"in G&&i(17,ze=G.ariaValueNow),"ariaValueText"in G&&i(18,Ee=G.ariaValueText)},t.$$.update=()=>{t.$$.dirty[0]&65536&&i(40,me=Ce??0),t.$$.dirty[0]&268435456|t.$$.dirty[1]&512&&i(41,n=v[v.length-1]?.time<me),t.$$.dirty[0]&268441600|t.$$.dirty[1]&1536&&i(21,o=v.length&&n&&me?We(W*100,B*100):[])},[s,l,r,a,c,f,p,h,_,P,C,W,B,J,E,O,Ce,ze,Ee,T,Pe,o,Z,de,Se,Fe,je,re,v,k,M,oe,Y,R,ee,Q,w,$,X,z,me,n,ie]}class jl extends be{constructor(e){super(),ge(this,e,K2,W2,he,{className:0,testId:1,isHidden:2,isVertical:3,isActiveLive:4,isMobile:5,isAds:6,squareBorders:7,videoEpisodes:28,withWheelHandler:29,isInteractive:8,disabled:9,hideHandel:10,onPointerDown:30,onHandleMove:31,onPointerUp:32,onPointerEnter:33,onPointerMove:34,onPointerLeave:35,onWheelUp:36,onWheelDown:37,onWheelLeft:38,onWheelRight:39,loadedProgress:11,filledProgress:12,handleProgress:13,ariaLabel:14,ariaValueMin:15,ariaValueMax:16,ariaValueNow:17,ariaValueText:18},U2,[-1,-1])}}const kn=(t,e)=>So[t]>=So[e],j2=(t,e)=>So[t]<So[e],hu=(t,e)=>So[t]<=So[e],G2=t=>t>yo.L?yt.XL:t>yo.M?yt.L:t>yo.S?yt.M:t>yo.XS?yt.S:yt.XS;function Y2(t){Ke(t,"v-1l78lz9",".volumeBar-container.v-1l78lz9{display:flex;align-items:center}.volumeBar-container.vertical.v-1l78lz9,.vertical.v-1l78lz9 .tooltip-wrapper,.vertical.v-1l78lz9 .btn{width:40px}.volumeBar.v-1l78lz9{display:flex;align-items:center;margin:0 8px;position:relative;width:70px}.volumeBar-slider-vertical{width:50px !important}.volumeBar-vertical.v-1l78lz9{padding:0 8px 0 0;width:0}")}function Q2(t){let e,i;return e=new fl({props:{volume:t[3],muted:t[1]}}),{c(){U(e.$$.fragment)},m(n,o){H(e,n,o),i=!0},p(n,o){const s={};o[0]&8&&(s.volume=n[3]),o[0]&2&&(s.muted=n[1]),e.$set(s)},i(n){i||(d(e.$$.fragment,n),i=!0)},o(n){b(e.$$.fragment,n),i=!1},d(n){F(e,n)}}}function X2(t){let e,i;return e=new gi({props:{className:"btn-full-opacity",disabled:t[9],testId:t[2]?"btn-volume-vertical":"btn-volume-horizontal",ariaLabel:t[7],click:t[0],ariaKeyShortCut:Zo[Te.KeyM],$$slots:{default:[Q2]},$$scope:{ctx:t}}}),{c(){U(e.$$.fragment)},m(n,o){H(e,n,o),i=!0},p(n,o){const s={};o[0]&512&&(s.disabled=n[9]),o[0]&4&&(s.testId=n[2]?"btn-volume-vertical":"btn-volume-horizontal"),o[0]&128&&(s.ariaLabel=n[7]),o[0]&1&&(s.click=n[0]),o[0]&10|o[1]&32&&(s.$$scope={dirty:o,ctx:n}),e.$set(s)},i(n){i||(d(e.$$.fragment,n),i=!0)},o(n){b(e.$$.fragment,n),i=!1},d(n){F(e,n)}}}function yr(t){let e,i,n;return i=new jl({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]:Ye,onPointerLeave:t[2]?t[20]:Ye,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=A("div"),U(i.$$.fragment),u(e,"class","volumeBar v-1l78lz9"),V(e,"volumeBar-vertical",t[2])},m(o,s){I(o,e,s),H(i,e,null),n=!0},p(o,s){const l={};s[0]&4&&(l.className=o[2]?"volumeBar-slider-vertical":""),s[0]&36&&(l.isHidden=o[2]&&!o[5]),s[0]&4&&(l.isVertical=o[2]),s[0]&4&&(l.onPointerEnter=o[2]?o[19]:Ye),s[0]&4&&(l.onPointerLeave=o[2]?o[20]:Ye),s[0]&256&&(l.ariaValueNow=Math.round(o[8]*100)),s[0]&256&&(l.ariaValueText=`${Math.round(o[8]*100)}%`),s[0]&256&&(l.filledProgress=o[8]),s[0]&256&&(l.handleProgress=o[8]),s[0]&4&&(l.testId=o[2]?"volume-slider-vertical":"volume-slider"),i.$set(l),(!n||s[0]&4)&&V(e,"volumeBar-vertical",o[2])},i(o){n||(d(i.$$.fragment,o),n=!0)},o(o){b(i.$$.fragment,o),n=!1},d(o){o&&S(e),F(i)}}}function J2(t){let e,i,n,o,s,l;i=new mu({props:{content:t[6],translateY:-18,$$slots:{default:[X2]},$$scope:{ctx:t}}});let r=t[4]&&yr(t);return{c(){e=A("div"),U(i.$$.fragment),n=D(),r&&r.c(),u(e,"class","volumeBar-container v-1l78lz9"),V(e,"vertical",t[2])},m(a,c){I(a,e,c),H(i,e,null),m(e,n),r&&r.m(e,null),o=!0,s||(l=[pe(e,"mouseenter",function(){yn(t[2]?t[21]:Ye)&&(t[2]?t[21]:Ye).apply(this,arguments)}),pe(e,"mouseleave",function(){yn(t[2]?t[22]:Ye)&&(t[2]?t[22]:Ye).apply(this,arguments)}),pe(e,"wheel",$t(t[23]))],s=!0)},p(a,c){t=a;const f={};c[0]&64&&(f.content=t[6]),c[0]&655|c[1]&32&&(f.$$scope={dirty:c,ctx:t}),i.$set(f),t[4]?r?(r.p(t,c),c[0]&16&&d(r,1)):(r=yr(t),r.c(),d(r,1),r.m(e,null)):r&&(ce(),b(r,1,1,()=>{r=null}),fe()),(!o||c[0]&4)&&V(e,"vertical",t[2])},i(a){o||(d(i.$$.fragment,a),d(r),o=!0)},o(a){b(i.$$.fragment,a),b(r),o=!1},d(a){a&&S(e),F(i),r&&r.d(),s=!1,it(l)}}}function x2(t,e,i){let n,o,s,l,{click:r}=e;const a=pt(),c=cn(),f=a.state.volume$;N(t,f,Pe=>i(3,n=Pe));const p=a.state.muted$;N(t,p,Pe=>i(25,l=Pe));const h=a.actions.internal.setVolume,v=a.ui.currentGridType$;N(t,v,Pe=>i(24,s=Pe));const k=a.callbacks?.onAudioDoesNotExistHint,_=a.callbacks?.onAudioDisabledHint,P=a.state.isAudioAvailable$;N(t,P,Pe=>i(4,o=Pe));const C=a.state.isAudioDisabled;let T=!1,y,M,oe,Y,R,ee,Q=1,w=!1,$=!1;function X(Pe){Q=n,h(Pe)}function z(){ou(a,n,c.controls.volumeStepWheel)}function W(){lu(a,n,c.controls.volumeStepWheel)}function B(Pe){h(Pe)}function J(Pe){const me=Pe;h(me,me===0?Q:me)}function E(){w=!0}function O(){w=!1,Ee()}function Ce(){clearTimeout(y),i(5,T=!0)}function ze(){Ee()}function Ee(){y=window.setTimeout(()=>{w||i(5,T=!1)},c.controls.volumeBarTimeout)}function Ve(Pe){Pe.deltaY<0?z():Pe.deltaY>0&&W()}return t.$$set=Pe=>{"click"in Pe&&i(0,r=Pe.click)},t.$$.update=()=>{t.$$.dirty[0]&33554448&&i(1,Y=!o||l),t.$$.dirty[0]&16777216&&i(2,R=hu(s,yt.S)),t.$$.dirty[0]&6&&(R?i(6,M=""):i(6,M=j(Y?"tooltip_volume":"tooltip_volume_muted")),i(7,oe=j(Y?"tooltip_volume":"tooltip_volume_muted"))),t.$$.dirty[0]&10&&i(8,ee=Y?0:n),t.$$.dirty[0]&16&&i(9,$=C&&!_||!o&&!k)},[r,Y,R,n,o,T,M,oe,ee,$,f,p,v,P,X,z,W,B,J,E,O,Ce,ze,Ve,s,l]}class $2 extends be{constructor(e){super(),ge(this,e,x2,J2,he,{click:0},Y2,[-1,-1])}}function e4(t){let e;return{c(){e=L("path"),u(e,"class","_enter"),u(e,"d","M10.5 19c0 .5522847-.4477153 1-1 1H5c-.55228475 0-1-.4477153-1-1v-4.5c0-.5522847.44771525-1 1-1s1 .4477153 1 1v2.0715l3.36290054-3.3643932.00012963-.0001296c.39052429-.3905243 1.02368923-.3905243 1.41421353 0l.0157791.0157791.0001297.0001296c.3904527.3905959.3903366 1.0237609-.0002593 1.4142136L7.4285 18H9.5c.5522847 0 1 .4477153 1 1zM18 7.4285l-3.3629005 3.3643932c-.0000432.0000432-.0000865.0000864-.0001297.0001296-.3905243.3905243-1.0236892.3905243-1.4142135 0l-.0157791-.0157791c-.0000433-.0000432-.0000865-.0000864-.0001297-.0001296-.3904527-.3905959-.3903366-1.02376087.0002593-1.41421356L16.5715 6H14.5c-.5522847 0-1-.44771525-1-1s.4477153-1 1-1H19c.5522847 0 1 .44771525 1 1v4.5c0 .5522847-.4477153 1-1 1s-1-.4477153-1-1z")},m(i,n){I(i,e,n)},d(i){i&&S(e)}}}function t4(t){let e;return{c(){e=L("path"),u(e,"class","_exit"),u(e,"d","M4.57969048 13.9787492c0-.5464165.44295809-.9893746.9893746-.9893746h4.45218572c.5464165 0 .9893746.4429581.9893746.9893746v4.4521857c0 .5464165-.4429581.9893746-.9893746.9893746-.54641651 0-.98937461-.4429581-.98937461-.9893746v-2.0494895l-3.3196551 3.3211319-.00012963.0001297c-.39052429.3905243-1.02368927.3905243-1.41421356 0l-.00058487-.0005849-.00012964-.0001297c-.39045268-.3905958-.3903366-1.0237608.00025929-1.4142135l3.32113189-3.3196551H5.56906508c-.54641651 0-.9893746-.4429581-.9893746-.9893746zM14.9681238 7.61855457l3.3196551-3.32113189.0001296-.00012966c.3905243-.39052429 1.0236893-.39052429 1.4142136 0l.0005849.00058488.0001296.00012965c.3904527.39059589.3903366 1.02376086-.0002593 1.41421354l-3.3211319 3.3196551h2.0494895c.5464165 0 .9893746.4429581.9893746.98937461 0 .5464165-.4429581.9893746-.9893746.9893746h-4.4415603c-.5522847 0-1-.4477153-1-1V5.56906508c0-.54641651.4429581-.9893746.9893746-.9893746s.9893746.44295809.9893746.9893746z")},m(i,n){I(i,e,n)},d(i){i&&S(e)}}}function i4(t){let e,i,n;function o(r,a){return r[0]?t4:e4}let s=o(t),l=s(t);return{c(){e=L("svg"),i=L("g"),l.c(),u(i,"fill","#fff"),u(i,"fill-rule","evenodd"),u(e,"width","24"),u(e,"height","24"),u(e,"viewBox","0 0 24 24"),u(e,"xmlns","http://www.w3.org/2000/svg"),u(e,"aria-hidden","true"),u(e,"data-testid",n=t[0]?"close-fullscreen-icon":"open-fullscreen-icon")},m(r,a){I(r,e,a),m(e,i),l.m(i,null)},p(r,[a]){s!==(s=o(r))&&(l.d(1),l=s(r),l&&(l.c(),l.m(i,null))),a&1&&n!==(n=r[0]?"close-fullscreen-icon":"open-fullscreen-icon")&&u(e,"data-testid",n)},i:q,o:q,d(r){r&&S(e),l.d()}}}function n4(t,e,i){let{isFullscreen:n=!1}=e;return t.$$set=o=>{"isFullscreen"in o&&i(0,n=o.isFullscreen)},[n]}class o4 extends be{constructor(e){super(),ge(this,e,n4,i4,he,{isFullscreen:0})}}function l4(t){let e,i;return e=new o4({props:{isFullscreen:t[0]}}),{c(){U(e.$$.fragment)},m(n,o){H(e,n,o),i=!0},p(n,o){const s={};o&1&&(s.isFullscreen=n[0]),e.$set(s)},i(n){i||(d(e.$$.fragment,n),i=!0)},o(n){b(e.$$.fragment,n),i=!1},d(n){F(e,n)}}}function s4(t){let e,i;return e=new gi({props:{testId:"btn-fullscreen",ariaLabel:t[2],click:t[1],ariaKeyShortCut:Zo[Te.KeyF],$$slots:{default:[l4]},$$scope:{ctx:t}}}),{c(){U(e.$$.fragment)},m(n,o){H(e,n,o),i=!0},p(n,[o]){const s={};o&4&&(s.ariaLabel=n[2]),o&2&&(s.click=n[1]),o&9&&(s.$$scope={dirty:o,ctx:n}),e.$set(s)},i(n){i||(d(e.$$.fragment,n),i=!0)},o(n){b(e.$$.fragment,n),i=!1},d(n){F(e,n)}}}function r4(t,e,i){let{isFullscreen:n=!1}=e,{click:o=Ye}=e,s;return t.$$set=l=>{"isFullscreen"in l&&i(0,n=l.isFullscreen),"click"in l&&i(1,o=l.click)},t.$$.update=()=>{t.$$.dirty&1&&i(2,s=j(n?"tooltip_fullscreen_on":"tooltip_fullscreen_off"))},[n,o,s]}class gu extends be{constructor(e){super(),ge(this,e,r4,s4,he,{isFullscreen:0,click:1})}}function a4(t){let e,i;return{c(){e=L("svg"),i=L("path"),u(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.078l8.787 5.175z"),u(i,"fill","#fff"),u(e,"width","24"),u(e,"height","24"),u(e,"fill","none"),u(e,"xmlns","http://www.w3.org/2000/svg"),u(e,"aria-hidden","true"),u(e,"data-testid","play-icon")},m(n,o){I(n,e,o),m(e,i)},p:q,i:q,o:q,d(n){n&&S(e)}}}class Gl extends be{constructor(e){super(),ge(this,e,null,a4,he,{})}}function u4(t){let e,i;return{c(){e=L("svg"),i=L("path"),u(i,"d","M8.712 5c.448 0 .61.047.774.134a.913.913 0 0 1 .38.38c.087.164.134.326.134.774v11.424c0 .448-.047.61-.134.774a.914.914 0 0 1-.38.38c-.164.087-.326.134-.774.134H6.788c-.448 0-.61-.047-.774-.134a.914.914 0 0 1-.38-.38c-.087-.164-.134-.326-.134-.774V6.288c0-.448.047-.61.134-.774a.913.913 0 0 1 .38-.38C6.178 5.047 6.34 5 6.788 5h1.924zm8 0c.448 0 .61.047.774.134a.914.914 0 0 1 .38.38c.087.164.134.326.134.774v11.424c0 .448-.047.61-.134.774a.914.914 0 0 1-.38.38c-.164.087-.326.134-.774.134h-1.924c-.448 0-.61-.047-.774-.134a.914.914 0 0 1-.38-.38c-.087-.164-.134-.326-.134-.774V6.288c0-.448.047-.61.134-.774a.914.914 0 0 1 .38-.38c.164-.087.326-.134.774-.134h1.924z"),u(i,"fill","#fff"),u(e,"width","24"),u(e,"height","24"),u(e,"fill","none"),u(e,"xmlns","http://www.w3.org/2000/svg"),u(e,"aria-hidden","true"),u(e,"data-testid","pause-icon")},m(n,o){I(n,e,o),m(e,i)},p:q,i:q,o:q,d(n){n&&S(e)}}}class bu extends be{constructor(e){super(),ge(this,e,null,u4,he,{})}}function c4(t){Ke(t,"v-1ot3duq",".mobile.v-1ot3duq{position:relative;display:flex;align-items:center;justify-content:center}.mobile.v-1ot3duq svg{transform:scale(2)}.icon-background-mobile.v-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 Cr(t){let e;return{c(){e=A("div"),u(e,"class","icon-background-mobile v-1ot3duq")},m(i,n){I(i,e,n)},d(i){i&&S(e)}}}function f4(t){let e,i,n,o,s=t[1]&&Cr();var l=t[8];function r(a){return{}}return l&&(n=Ln(l,r())),{c(){s&&s.c(),e=D(),i=A("div"),n&&U(n.$$.fragment),u(i,"class","v-1ot3duq"),V(i,"mobile",t[1])},m(a,c){s&&s.m(a,c),I(a,e,c),I(a,i,c),n&&H(n,i,null),o=!0},p(a,c){if(a[1]?s||(s=Cr(),s.c(),s.m(e.parentNode,e)):s&&(s.d(1),s=null),c&256&&l!==(l=a[8])){if(n){ce();const f=n;b(f.$$.fragment,1,0,()=>{F(f,1)}),fe()}l?(n=Ln(l,r()),U(n.$$.fragment),d(n.$$.fragment,1),H(n,i,null)):n=null}(!o||c&2)&&V(i,"mobile",a[1])},i(a){o||(n&&d(n.$$.fragment,a),o=!0)},o(a){n&&b(n.$$.fragment,a),o=!1},d(a){a&&(S(e),S(i)),s&&s.d(a),n&&F(n)}}}function d4(t){let e,i,n;function o(l){t[13](l)}let s={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:Zo[Te.KeyK],$$slots:{default:[f4]},$$scope:{ctx:t}};return t[0]!==void 0&&(s.ref=t[0]),e=new gi({props:s}),_e.push(()=>qe(e,"ref",o)),{c(){U(e.$$.fragment)},m(l,r){H(e,l,r),n=!0},p(l,[r]){const a={};r&10&&(a.className=(l[1]?"btn-m--play":"")+" "+l[3]),r&112&&(a.click=l[5]?l[6]:l[4]),r&4&&(a.disabled=l[2]),r&128&&(a.ariaLabel=l[7]),r&33026&&(a.$$scope={dirty:r,ctx:l}),!i&&r&1&&(i=!0,a.ref=l[0],Ue(()=>i=!1)),e.$set(a)},i(l){n||(d(e.$$.fragment,l),n=!0)},o(l){b(e.$$.fragment,l),n=!1},d(l){F(e,l)}}}function m4(t,e,i){let n,o;const{fakeIsPlaying$:s}=Ao();N(t,s,T=>i(12,o=T));let{ref:l=void 0}=e,{isMobile:r=!1}=e,{isPlaying:a=!1}=e,{disabled:c=!1}=e,{className:f=""}=e,{click:p=Ye}=e;const{toggle:h}=s;let v,k,_,P;function C(T){l=T,i(0,l)}return t.$$set=T=>{"ref"in T&&i(0,l=T.ref),"isMobile"in T&&i(1,r=T.isMobile),"isPlaying"in T&&i(10,a=T.isPlaying),"disabled"in T&&i(2,c=T.disabled),"className"in T&&i(3,f=T.className),"click"in T&&i(4,p=T.click)},t.$$.update=()=>{t.$$.dirty&4096&&i(5,k=o!==null),t.$$.dirty&5152&&i(11,_=k?o:a),t.$$.dirty&2048&&i(7,P=j(_?"tooltip_pause":"tooltip_play")),t.$$.dirty&2048&&i(8,n=_?bu:Gl)},i(6,v=h),[l,r,c,f,p,k,v,P,n,s,a,_,o,C]}class Yl extends be{constructor(e){super(),ge(this,e,m4,d4,he,{ref:0,isMobile:1,isPlaying:10,disabled:2,className:3,click:4},c4)}}function p4(t){Ke(t,"v-mb3pjo",".prev.v-mb3pjo{transform:scaleX(-1)}.mobile.v-mb3pjo{transform:scale(1.3333)}.mobile.prev.v-mb3pjo{transform:scaleX(-1) scale(1.3333)}")}function h4(t){let e,i,n;return{c(){e=L("svg"),i=L("path"),u(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"),u(i,"fill","#fff"),u(e,"data-testid",n=t[0]?"prev-icon":"next-icon"),u(e,"width","26"),u(e,"height","24"),u(e,"fill","none"),u(e,"xmlns","http://www.w3.org/2000/svg"),u(e,"aria-hidden","true"),u(e,"class","v-mb3pjo"),V(e,"prev",t[0]),V(e,"mobile",t[1])},m(o,s){I(o,e,s),m(e,i)},p(o,[s]){s&1&&n!==(n=o[0]?"prev-icon":"next-icon")&&u(e,"data-testid",n),s&1&&V(e,"prev",o[0]),s&2&&V(e,"mobile",o[1])},i:q,o:q,d(o){o&&S(e)}}}function g4(t,e,i){let{isPrev:n=!1}=e,{isMobile:o=!1}=e;return t.$$set=s=>{"isPrev"in s&&i(0,n=s.isPrev),"isMobile"in s&&i(1,o=s.isMobile)},[n,o]}class b4 extends be{constructor(e){super(),ge(this,e,g4,h4,he,{isPrev:0,isMobile:1},p4)}}function _4(t){let e,i;return e=new b4({props:{isMobile:t[1],isPrev:t[3]==="prev"}}),{c(){U(e.$$.fragment)},m(n,o){H(e,n,o),i=!0},p(n,o){const s={};o&2&&(s.isMobile=n[1]),o&8&&(s.isPrev=n[3]==="prev"),e.$set(s)},i(n){i||(d(e.$$.fragment,n),i=!0)},o(n){b(e.$$.fragment,n),i=!1},d(n){F(e,n)}}}function v4(t){let e,i,n;function o(l){t[6](l)}let s={testId:"btn-"+t[3],disabled:t[2],ariaLabel:t[5],click:t[4],$$slots:{default:[_4]},$$scope:{ctx:t}};return t[0]!==void 0&&(s.ref=t[0]),e=new gi({props:s}),_e.push(()=>qe(e,"ref",o)),{c(){U(e.$$.fragment)},m(l,r){H(e,l,r),n=!0},p(l,[r]){const a={};r&8&&(a.testId="btn-"+l[3]),r&4&&(a.disabled=l[2]),r&32&&(a.ariaLabel=l[5]),r&16&&(a.click=l[4]),r&138&&(a.$$scope={dirty:r,ctx:l}),!i&&r&1&&(i=!0,a.ref=l[0],Ue(()=>i=!1)),e.$set(a)},i(l){n||(d(e.$$.fragment,l),n=!0)},o(l){b(e.$$.fragment,l),n=!1},d(l){F(e,l)}}}function k4(t,e,i){let{ref:n=void 0}=e,{isMobile:o=!1}=e,{disabled:s=!1}=e,{type:l}=e,{click:r}=e,a;function c(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,s=f.disabled),"type"in f&&i(3,l=f.type),"click"in f&&i(4,r=f.click)},t.$$.update=()=>{t.$$.dirty&8&&i(5,a=j(l==="prev"?"tooltip_previous":"tooltip_next"))},[n,o,s,l,r,a,c]}class dl extends be{constructor(e){super(),ge(this,e,k4,v4,he,{ref:0,isMobile:1,disabled:2,type:3,click:4})}}function w4(t){let e,i;return{c(){e=L("svg"),i=L("path"),u(i,"fill-rule","evenodd"),u(i,"clip-rule","evenodd"),u(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.265zM6 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.197H6z"),u(i,"fill","#fff"),u(e,"width","24"),u(e,"height","24"),u(e,"fill","none"),u(e,"xmlns","http://www.w3.org/2000/svg"),u(e,"aria-hidden","true"),u(e,"data-testid","vk-logo-icon")},m(n,o){I(n,e,o),m(e,i)},p:q,i:q,o:q,d(n){n&&S(e)}}}class y4 extends be{constructor(e){super(),ge(this,e,null,w4,he,{})}}function C4(t){Ke(t,"v-1bbobod",".mobile.v-1bbobod{transform:scale(1.1) translateY(-1px)}")}function Tr(t){let e,i,n,o,s,l,r;return{c(){e=L("path"),i=L("path"),n=L("path"),o=L("path"),s=L("path"),l=L("path"),r=L("path"),u(e,"d","M30.7286 15.0483H33.2239L36.8885 5H35.0776L32.1402 13.2809H31.8551L29.0175 5H27.1781L30.7286 15.0483Z"),u(e,"fill","white"),u(i,"d","M46.2591 15.0483L41.6392 9.84599L45.9026 5H43.7923L40.2276 9.09059H39.814V5H38.103V15.0483H39.814V10.7439H40.2418L44.0062 15.0483H46.2591Z"),u(i,"fill","white"),u(n,"d","M56.0753 9.88875C56.9594 9.54668 57.5155 8.76277 57.5155 7.73656C57.5155 6.14023 56.1894 5 54.2502 5H50.329V15.0483H54.5354C56.4888 15.0483 57.8149 13.9081 57.8149 12.2405C57.8149 11.0717 57.159 10.2023 56.0753 9.88875ZM52.04 6.49656H54.2502C55.1628 6.49656 55.7902 7.05242 55.7902 7.87909C55.7902 8.69151 55.1628 9.24737 54.2502 9.24737H52.04V6.49656ZM54.5354 13.5518H52.04V10.7439H54.5354C55.4337 10.7439 56.0611 11.314 56.0611 12.1407C56.0611 12.9816 55.4337 13.5518 54.5354 13.5518Z"),u(n,"fill","white"),u(o,"d","M59.3767 15.0483H61.701L64.4672 9.54668H64.6954V15.0483H66.2638V7.63679H63.9396L61.1734 13.1384H60.9452V7.63679H59.3767V15.0483Z"),u(o,"fill","white"),u(s,"d","M67.3373 17.2575H68.9771V15.0483H74.3099V17.2575H75.9497V13.5518H74.6664V7.63679H69.2337L68.863 11.4281C68.7347 12.7678 68.3354 13.5518 67.5227 13.5518H67.3373V17.2575ZM69.8326 13.5518C70.2319 13.1669 70.403 12.5113 70.517 11.3996L70.7452 9.13335H73.0266V13.5518H69.8326Z"),u(s,"fill","white"),u(l,"d","M84.222 11.257C84.222 9.11909 82.625 7.49426 80.372 7.49426C78.1191 7.49426 76.5221 9.10484 76.5221 11.3425C76.5221 13.5803 78.1191 15.1908 80.372 15.1908C81.912 15.1908 83.3664 14.4639 83.9225 13.0529L82.3826 12.7963C82.0261 13.3237 81.3416 13.6943 80.4718 13.6943C79.217 13.6943 78.39 12.9246 78.2332 11.7844H84.1934C84.2077 11.6276 84.222 11.4566 84.222 11.257ZM80.372 8.91955C81.3987 8.91955 82.1687 9.57519 82.4396 10.5016H78.333C78.6039 9.54668 79.3739 8.91955 80.372 8.91955Z"),u(l,"fill","white"),u(r,"d","M89.0359 15.1908C91.3602 15.1908 92.9999 13.5945 92.9999 11.3425C92.9999 9.09059 91.3602 7.49426 89.0359 7.49426C86.7117 7.49426 85.0719 9.09059 85.0719 11.3425C85.0719 13.5945 86.7117 15.1908 89.0359 15.1908ZM89.0359 13.6943C87.6956 13.6943 86.783 12.7393 86.783 11.3425C86.783 9.94576 87.6956 8.99082 89.0359 8.99082C90.3763 8.99082 91.2889 9.94576 91.2889 11.3425C91.2889 12.7393 90.3763 13.6943 89.0359 13.6943Z"),u(r,"fill","white")},m(a,c){I(a,e,c),I(a,i,c),I(a,n,c),I(a,o,c),I(a,s,c),I(a,l,c),I(a,r,c)},d(a){a&&(S(e),S(i),S(n),S(o),S(s),S(l),S(r))}}}function T4(t){let e,i,n,o=!t[0]&&Tr();return{c(){e=L("svg"),i=L("path"),o&&o.c(),u(i,"d","M19.0283 1.47947C17.5482 1.47862e-05 15.3189 -2.59106e-06 10.8969 -1.8179e-06L10.1111 -1.68051e-06C5.68913 -9.0734e-07 3.47814 1.72463e-05 1.97977 1.47947C0.499685 2.95892 0.499757 5.18723 0.499758 9.60732L0.499758 10.3927C0.499758 14.8128 0.499687 17.0228 1.97978 18.5205C3.45987 20 5.68914 20 10.1111 20L10.8969 20C15.3189 20 17.5299 20 19.0283 18.5205C20.5084 17.0411 20.5084 14.8128 20.5084 10.3927L20.5084 9.60732C20.5084 5.16896 20.5084 2.95892 19.0283 1.47947ZM8.06464 14.8128C6.69419 15.3242 5.21408 14.4658 4.93999 13.0046C4.73899 12.0183 4.64761 10.9954 4.64761 9.93605C4.64761 8.91322 4.73899 7.90867 4.93999 6.94064C5.21408 5.47945 6.69419 4.62102 8.06464 5.13244C9.91018 5.80823 11.5913 6.84928 13.0166 8.18261C14.0581 9.15064 14.0581 10.8128 13.0166 11.7808C11.573 13.0959 9.89191 14.137 8.06464 14.8128ZM19.9602 10.3744C19.9602 14.6484 19.9601 16.7854 18.6262 18.1005C17.5116 19.2146 15.8305 19.3972 12.7973 19.4155C13.9302 19.2328 14.7342 18.9041 15.3554 18.2648C16.6893 16.9132 16.6893 14.7397 16.6893 10.3744L16.6893 9.57075C16.6893 5.20546 16.6893 3.032 15.3554 1.6804C14.7342 1.04113 13.9302 0.712308 12.7973 0.52966C15.8305 0.566189 17.5116 0.748873 18.6079 1.84476C19.9418 3.1781 19.9419 5.31505 19.9419 9.57075L19.9419 10.3744L19.9602 10.3744ZM11.6826 9.68036C11.8653 9.84474 11.8653 10.137 11.6826 10.3013C10.4401 11.4338 8.99653 12.3105 7.40681 12.895C7.16926 12.9863 6.91344 12.8402 6.85863 12.5845C6.69417 11.7443 6.60283 10.8676 6.60283 9.97262C6.60282 9.09591 6.69417 8.23744 6.85862 7.39726C6.91344 7.14155 7.16926 6.9954 7.40681 7.08672C8.97826 7.67119 10.4401 8.54794 11.6826 9.68036Z"),u(i,"fill","white"),u(e,"width",t[2]),u(e,"height","20"),u(e,"viewBox",n="0 0 "+(t[2]+1)+" 20"),u(e,"fill","none"),u(e,"xmlns","http://www.w3.org/2000/svg"),u(e,"aria-hidden","true"),u(e,"data-testid",t[3]),u(e,"class","v-1bbobod"),V(e,"mobile",t[1])},m(s,l){I(s,e,l),m(e,i),o&&o.m(e,null)},p(s,[l]){s[0]?o&&(o.d(1),o=null):o||(o=Tr(),o.c(),o.m(e,null)),l&4&&u(e,"width",s[2]),l&4&&n!==(n="0 0 "+(s[2]+1)+" 20")&&u(e,"viewBox",n),l&8&&u(e,"data-testid",s[3]),l&2&&V(e,"mobile",s[1])},i:q,o:q,d(s){s&&S(e),o&&o.d()}}}function P4(t,e,i){let{short:n=!1}=e,{isMobile:o=!1}=e,s,l;return t.$$set=r=>{"short"in r&&i(0,n=r.short),"isMobile"in r&&i(1,o=r.isMobile)},t.$$.update=()=>{t.$$.dirty&1&&(i(2,s=n?20:93),i(3,l=n?"vk-video-logo-icon--short":"vk-video-logo-icon"))},[n,o,s,l]}class S4 extends be{constructor(e){super(),ge(this,e,P4,T4,he,{short:0,isMobile:1},C4)}}function I4(t){let e,i,n,o,s,l,r,a,c,f,p,h,v;return{c(){e=L("svg"),i=L("g"),n=L("path"),o=L("path"),s=L("defs"),l=L("filter"),r=L("feFlood"),a=L("feColorMatrix"),c=L("feOffset"),f=L("feGaussianBlur"),p=L("feColorMatrix"),h=L("feBlend"),v=L("feBlend"),u(n,"fill-rule","evenodd"),u(n,"clip-rule","evenodd"),u(n,"d","M15 16.6C15 14.6398 15 13.6597 15.3815 12.911C15.717 12.2525 16.2525 11.717 16.911 11.3815C17.6597 11 18.6398 11 20.6 11H21.96C24.4242 11 25.6563 11 26.5976 11.4796C27.4255 11.9014 28.0986 12.5745 28.5204 13.4024C29 14.3437 29 15.5758 29 18.04V21.96C29 24.4242 29 25.6563 28.5204 26.5976C28.0986 27.4255 27.4255 28.0986 26.5976 28.5204C25.6563 29 24.4242 29 21.96 29H20.6C18.6398 29 17.6597 29 16.911 28.6185C16.2525 28.283 15.717 27.7475 15.3815 27.089C15 26.3403 15 25.3602 15 23.4V16.6ZM24.2646 18.3443C25.1663 18.8828 25.6171 19.1521 25.7699 19.5007C25.9032 19.805 25.9032 20.1511 25.7699 20.4554C25.6171 20.804 25.1663 21.0733 24.2646 21.6118L21.8788 23.0367C20.9363 23.5997 20.465 23.8812 20.0774 23.8445C19.7393 23.8125 19.4311 23.6376 19.2303 23.3638C19 23.0498 19 22.5008 19 21.403V18.5531C19 17.4552 19 16.9063 19.2303 16.5923C19.4311 16.3185 19.7393 16.1436 20.0774 16.1116C20.465 16.0749 20.9363 16.3564 21.8788 16.9193L24.2646 18.3443ZM13 17.04C13 14.5758 13 13.3437 13.4796 12.4025C13.7214 11.9278 14.0459 11.504 14.4348 11.1493C14.0394 11.2203 13.7058 11.325 13.4024 11.4796C12.5745 11.9015 11.9014 12.5746 11.4796 13.4025C11 14.3437 11 15.5758 11 18.04V21.96C11 24.4243 11 25.6564 11.4796 26.5976C11.9014 27.4255 12.5745 28.0986 13.4024 28.5205C13.7058 28.6751 14.0394 28.7798 14.4348 28.8508C14.0459 28.4961 13.7214 28.0723 13.4796 27.5976C13 26.6564 13 25.4243 13 22.96V17.04Z"),u(n,"fill","white"),u(o,"d","M14.6032 11.334L15.2433 10.7501L14.3906 10.9032C13.9767 10.9775 13.6187 11.0888 13.2889 11.2569C12.414 11.7027 11.7026 12.414 11.2568 13.289C10.9961 13.8007 10.872 14.3806 10.8108 15.1298C10.75 15.8737 10.75 16.8061 10.75 18.0284V18.04V21.96V21.9717C10.75 23.194 10.75 24.1264 10.8108 24.8703C10.872 25.6195 10.9961 26.1994 11.2568 26.7111C11.7026 27.5861 12.414 28.2974 13.2889 28.7432C13.6187 28.9113 13.9767 29.0225 14.3906 29.0969L15.2433 29.25L14.6032 28.6661C14.2365 28.3315 13.9304 27.9318 13.7023 27.4841C13.4835 27.0546 13.3678 26.5478 13.3091 25.8296C13.2502 25.1084 13.25 24.1963 13.25 22.96V17.04C13.25 15.8038 13.2502 14.8917 13.3091 14.1705C13.3678 13.4522 13.4835 12.9455 13.7023 12.516C13.9304 12.0683 14.2365 11.6686 14.6032 11.334ZM15.1587 12.7975C14.947 13.213 14.8475 13.6818 14.7985 14.2808C14.75 14.8747 14.75 15.6181 14.75 16.5884V16.6V23.4V23.4116C14.75 24.3819 14.75 25.1253 14.7985 25.7192C14.8475 26.3182 14.947 26.787 15.1587 27.2025C15.5183 27.9081 16.0919 28.4818 16.7975 28.8413C17.213 29.053 17.6818 29.1525 18.2808 29.2015C18.8747 29.25 19.6181 29.25 20.5884 29.25H20.6H21.96H21.9717C23.1939 29.25 24.1264 29.25 24.8703 29.1892C25.6194 29.128 26.1993 29.0039 26.7111 28.7432C27.586 28.2974 28.2974 27.586 28.7432 26.7111C29.0039 26.1993 29.128 25.6194 29.1892 24.8703C29.25 24.1264 29.25 23.1939 29.25 21.9717V21.96V18.04V18.0283C29.25 16.8061 29.25 15.8736 29.1892 15.1297C29.128 14.3806 29.0039 13.8007 28.7432 13.2889C28.2974 12.414 27.586 11.7026 26.7111 11.2568C26.1993 10.9961 25.6194 10.872 24.8703 10.8108C24.1264 10.75 23.1939 10.75 21.9717 10.75H21.96H20.6H20.5884C19.6181 10.75 18.8747 10.75 18.2808 10.7985C17.6818 10.8475 17.213 10.947 16.7975 11.1587C16.0919 11.5183 15.5183 12.0919 15.1587 12.7975ZM24.1364 18.5589C24.5914 18.8307 24.9178 19.0259 25.1508 19.1958C25.3846 19.3661 25.4915 19.4884 25.5409 19.601C25.6462 19.8413 25.6462 20.1147 25.5409 20.355C25.4915 20.4677 25.3846 20.59 25.1508 20.7603C24.9178 20.9302 24.5914 21.1254 24.1364 21.3972L21.7506 22.8221C21.2751 23.1061 20.9332 23.31 20.662 23.44C20.3893 23.5707 20.2254 23.6074 20.1009 23.5956C19.8339 23.5703 19.5905 23.4322 19.4319 23.2159C19.358 23.1151 19.3054 22.9556 19.2778 22.6545C19.2503 22.3549 19.25 21.9568 19.25 21.403V18.5531C19.25 17.9992 19.2503 17.6012 19.2778 17.3016C19.3054 17.0005 19.358 16.841 19.4319 16.7402C19.5905 16.5239 19.8339 16.3858 20.1009 16.3605C20.2254 16.3487 20.3893 16.3854 20.662 16.5161C20.9332 16.6461 21.2751 16.85 21.7506 17.134L24.1364 18.5589Z"),u(o,"stroke","black"),u(o,"stroke-opacity","0.12"),u(o,"stroke-width","0.5"),u(i,"filter","url(#filter0_d_207_5101)"),u(r,"flood-opacity","0"),u(r,"result","BackgroundImageFix"),u(a,"in","SourceAlpha"),u(a,"type","matrix"),u(a,"values","0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0"),u(a,"result","hardAlpha"),u(f,"stdDeviation","2.5"),u(p,"type","matrix"),u(p,"values","0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.16 0"),u(h,"mode","normal"),u(h,"in2","BackgroundImageFix"),u(h,"result","effect1_dropShadow_207_5101"),u(v,"mode","normal"),u(v,"in","SourceGraphic"),u(v,"in2","effect1_dropShadow_207_5101"),u(v,"result","shape"),u(l,"id","filter0_d_207_5101"),u(l,"x","5.5"),u(l,"y","5.35095"),u(l,"width","29"),u(l,"height","29.2982"),u(l,"filterUnits","userSpaceOnUse"),u(l,"color-interpolation-filters","sRGB"),u(e,"width","40"),u(e,"height","40"),u(e,"viewBox","0 0 40 40"),u(e,"fill","none"),u(e,"xmlns","http://www.w3.org/2000/svg")},m(k,_){I(k,e,_),m(e,i),m(i,n),m(i,o),m(e,s),m(s,l),m(l,r),m(l,a),m(l,c),m(l,f),m(l,p),m(l,h),m(l,v)},p:q,i:q,o:q,d(k){k&&S(e)}}}class A4 extends be{constructor(e){super(),ge(this,e,null,I4,he,{})}}function E4(t){let e,i;return e=new y4({}),{c(){U(e.$$.fragment)},m(n,o){H(e,n,o),i=!0},p:q,i(n){i||(d(e.$$.fragment,n),i=!0)},o(n){b(e.$$.fragment,n),i=!1},d(n){F(e,n)}}}function V4(t){let e,i;return e=new S4({props:{short:t[5]}}),{c(){U(e.$$.fragment)},m(n,o){H(e,n,o),i=!0},p(n,o){const s={};o&32&&(s.short=n[5]),e.$set(s)},i(n){i||(d(e.$$.fragment,n),i=!0)},o(n){b(e.$$.fragment,n),i=!1},d(n){F(e,n)}}}function M4(t){let e,i;return e=new A4({}),{c(){U(e.$$.fragment)},m(n,o){H(e,n,o),i=!0},p:q,i(n){i||(d(e.$$.fragment,n),i=!0)},o(n){b(e.$$.fragment,n),i=!1},d(n){F(e,n)}}}function L4(t){let e,i,n,o;const s=[M4,V4,E4],l=[];function r(a,c){return a[7]||a[4]?0:a[2]?1:2}return e=r(t),i=l[e]=s[e](t),{c(){i.c(),n=ct()},m(a,c){l[e].m(a,c),I(a,n,c),o=!0},p(a,c){let f=e;e=r(a),e===f?l[e].p(a,c):(ce(),b(l[f],1,1,()=>{l[f]=null}),fe(),i=l[e],i?i.p(a,c):(i=l[e]=s[e](a),i.c()),d(i,1),i.m(n.parentNode,n))},i(a){o||(d(i),o=!0)},o(a){b(i),o=!1},d(a){a&&S(n),l[e].d(a)}}}function B4(t){let e,i,n;function o(l){t[13](l)}let s={className:"btn-full-opacity",disabled:!t[1],click:t[8],testId:t[2]?"btn-vk-video-logo":"btn-vk-logo",ariaLabel:t[3],$$slots:{default:[L4]},$$scope:{ctx:t}};return t[0]!==void 0&&(s.ref=t[0]),e=new gi({props:s}),_e.push(()=>qe(e,"ref",o)),{c(){U(e.$$.fragment)},m(l,r){H(e,l,r),n=!0},p(l,[r]){const a={};r&2&&(a.disabled=!l[1]),r&4&&(a.testId=l[2]?"btn-vk-video-logo":"btn-vk-logo"),r&8&&(a.ariaLabel=l[3]),r&65588&&(a.$$scope={dirty:r,ctx:l}),!i&&r&1&&(i=!0,a.ref=l[0],Ue(()=>i=!1)),e.$set(a)},i(l){n||(d(e.$$.fragment,l),n=!0)},o(l){b(e.$$.fragment,l),n=!1},d(l){F(e,l)}}}function R4(t,e,i){let n,o,{ref:s=void 0}=e,{logoClickable:l=!1}=e,{targetUrl:r=""}=e,{click:a}=e;const c=cn(),f=pt(),p=f.ui.currentGridType$;N(t,p,y=>i(11,n=y));const h=f.ui.isMobile;N(t,h,y=>i(12,o=y));let v,k,_,P;const C=()=>{a(),f.callbacks?.onLogoClicked?.(),r&&window.open(r,"_blank")};function T(y){s=y,i(0,s)}return t.$$set=y=>{"ref"in y&&i(0,s=y.ref),"logoClickable"in y&&i(1,l=y.logoClickable),"targetUrl"in y&&i(9,r=y.targetUrl),"click"in y&&i(10,a=y.click)},t.$$.update=()=>{t.$$.dirty&6148&&i(5,P=(o||hu(n,yt.L))&&k)},i(3,v=c.logoType===ro.VK_VIDEO?j("tooltip_vk_video_logo"):j("tooltip_vk_logo")),i(2,k=c.logoType===ro.VK_VIDEO),i(4,_=c.logoType===ro.VK_VIDEO_MOBILE),[s,l,k,v,_,P,p,h,C,r,a,n,o,T]}class _u extends be{constructor(e){super(),ge(this,e,R4,B4,he,{ref:0,logoClickable:1,targetUrl:9,click:10})}}function N4(t){Ke(t,"v-8z1bf5",".connecting.v-8z1bf5 .wave.v-8z1bf5{animation-duration:1s;animation-iteration-count:infinite}.connecting.v-8z1bf5 .wave1.v-8z1bf5{animation-name:v-8z1bf5-wave1}.connecting.v-8z1bf5 .wave2.v-8z1bf5{animation-name:v-8z1bf5-wave2}.connecting.v-8z1bf5 .wave3.v-8z1bf5{animation-name:v-8z1bf5-wave3}@keyframes v-8z1bf5-wave1{0%{opacity:0.3}33%{opacity:1}66%{opacity:1}100%{opacity:1}}@keyframes v-8z1bf5-wave2{0%{opacity:0.3}33%{opacity:0.3}66%{opacity:1}100%{opacity:1}}@keyframes v-8z1bf5-wave3{0%{opacity:0.3}33%{opacity:0.3}66%{opacity:0.3}100%{opacity:1}}")}function D4(t){let e,i,n,o,s,l,r,a;return{c(){e=L("svg"),i=L("g"),n=L("path"),o=L("path"),s=L("path"),l=L("path"),r=L("path"),a=L("path"),u(n,"class","wave wave1 v-8z1bf5"),u(n,"d","M1 18v3h3c0-1.66-1.34-3-3-3z"),u(n,"fill","#fff"),u(o,"class","wave wave2 v-8z1bf5"),u(o,"d","M1 14v2c2.76 0 5 2.24 5 5h2c0-3.87-3.13-7-7-7z"),u(o,"fill","#fff"),u(s,"class","wave wave3 v-8z1bf5"),u(s,"d","M1 10v2a9 9 0 0 1 9 9h2c0-6.08-4.93-11-11-11z"),u(s,"fill","#fff"),u(l,"d","M21 3H3c-1.1 0-2 .9-2 2v3h2V5h18v14h-7v2h7c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2z"),u(l,"fill","#fff"),u(r,"d","M0 0h24v24H0z"),u(a,"d","M5.667 7.44H18.5v9.167h-5.161a11.947 11.947 0 0 0-7.673-7.672V7.44Z"),u(a,"fill","#fff"),V(a,"hidden",!t[1]),u(i,"fill","none"),u(i,"fill-rule","evenodd"),u(e,"width","24"),u(e,"height","24"),u(e,"xmlns","http://www.w3.org/2000/svg"),u(e,"aria-hidden","true"),u(e,"data-testid","chromecast-icon"),u(e,"class","v-8z1bf5"),V(e,"connecting",t[2])},m(c,f){I(c,e,f),m(e,i),m(i,n),m(i,o),m(i,s),m(i,l),m(i,r),m(i,a)},p(c,f){f&2&&V(a,"hidden",!c[1]),f&4&&V(e,"connecting",c[2])},d(c){c&&S(e)}}}function z4(t){let e,i,n,o,s,l,r,a,c,f,p,h,v,k,_,P,C,T,y,M,oe;return{c(){e=L("svg"),i=L("g"),n=L("mask"),o=L("path"),l=L("path"),r=L("path"),c=L("path"),f=L("defs"),p=L("clipPath"),h=L("path"),k=L("filter"),_=L("feFlood"),P=L("feColorMatrix"),C=L("feOffset"),T=L("feGaussianBlur"),y=L("feColorMatrix"),M=L("feBlend"),oe=L("feBlend"),u(o,"fill",s=t[1]?"#2688EB":"#fff"),u(o,"d","M1.1 3.1h22v18h-22z"),u(l,"fill-rule","evenodd"),u(l,"clip-rule","evenodd"),u(l,"d","M16.2 5.9c.855 0 1.442 0 1.897.038.445.036.683.103.856.19a2.1 2.1 0 0 1 .918.919c.088.172.155.411.191.856.037.455.038 1.042.038 1.897v4.4c0 .855 0 1.442-.038 1.897-.036.445-.103.683-.19.856a2.1 2.1 0 0 1-.919.918c-.172.088-.411.155-.856.191-.455.037-1.042.038-1.897.038H15a.9.9 0 0 0 0 1.8h1.238c.808 0 1.469 0 2.006-.044.556-.045 1.058-.142 1.527-.381a3.9 3.9 0 0 0 1.704-1.704c.239-.47.336-.971.381-1.527.044-.537.044-1.198.044-2.006V9.762c0-.808 0-1.469-.044-2.006-.045-.556-.142-1.058-.381-1.527a3.9 3.9 0 0 0-1.704-1.704c-.47-.239-.971-.336-1.527-.381-.537-.044-1.198-.044-2.006-.044H6a3.901 3.901 0 0 0-3.678 2.6.9.9 0 0 0 1.697.6A2.101 2.101 0 0 1 6 5.9h10.2ZM3.069 11.52a6.9 6.9 0 0 1 7.413 7.413.9.9 0 0 0 1.795.137 8.7 8.7 0 0 0-9.344-9.344.9.9 0 0 0 .136 1.794Zm.533 3.58c-.161 0-.32.011-.474.034a.9.9 0 1 1-.256-1.782A5.1 5.1 0 0 1 8.65 19.13a.9.9 0 1 1-1.782-.256A3.3 3.3 0 0 0 3.602 15.1Zm-1.5 3.3a1.5 1.5 0 1 1 3 0 1.5 1.5 0 0 1-3 0Z"),u(n,"id","c"),u(n,"maskUnits","userSpaceOnUse"),u(n,"x","1.1"),u(n,"y","3.1"),u(n,"width","22"),u(n,"height","18"),u(n,"fill","#000"),u(r,"fill-rule","evenodd"),u(r,"clip-rule","evenodd"),u(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"),u(r,"fill",a=t[1]?"#2688EB":"#fff"),u(c,"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"),u(c,"fill","#000"),u(c,"fill-opacity",".12"),u(c,"mask","url(#c)"),u(i,"filter","url(#b)"),u(i,"clip-path","url(#a)"),u(h,"fill",v=t[1]?"#2688EB":"#fff"),u(h,"d","M0 0h24v24H0z"),u(p,"id","a"),u(_,"flood-opacity","0"),u(_,"result","BackgroundImageFix"),u(P,"in","SourceAlpha"),u(P,"values","0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0"),u(P,"result","hardAlpha"),u(T,"stdDeviation","2.5"),u(y,"values","0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.16 0"),u(M,"in2","BackgroundImageFix"),u(M,"result","effect1_dropShadow_4085_178456"),u(oe,"in","SourceGraphic"),u(oe,"in2","effect1_dropShadow_4085_178456"),u(oe,"result","shape"),u(k,"id","b"),u(k,"x","-3.4"),u(k,"y","-1.4"),u(k,"width","30.8"),u(k,"height","26.802"),u(k,"filterUnits","userSpaceOnUse"),u(k,"color-interpolation-filters","sRGB"),u(e,"width","24"),u(e,"height","24"),u(e,"fill","none"),u(e,"xmlns","http://www.w3.org/2000/svg"),u(e,"aria-hidden","true"),u(e,"data-testid","chromecast-mobile-icon")},m(Y,R){I(Y,e,R),m(e,i),m(i,n),m(n,o),m(n,l),m(i,r),m(i,c),m(e,f),m(f,p),m(p,h),m(f,k),m(k,_),m(k,P),m(k,C),m(k,T),m(k,y),m(k,M),m(k,oe)},p(Y,R){R&2&&s!==(s=Y[1]?"#2688EB":"#fff")&&u(o,"fill",s),R&2&&a!==(a=Y[1]?"#2688EB":"#fff")&&u(r,"fill",a),R&2&&v!==(v=Y[1]?"#2688EB":"#fff")&&u(h,"fill",v)},d(Y){Y&&S(e)}}}function O4(t){let e;function i(s,l){return s[0]?z4:D4}let n=i(t),o=n(t);return{c(){o.c(),e=ct()},m(s,l){o.m(s,l),I(s,e,l)},p(s,[l]){n===(n=i(s))&&o?o.p(s,l):(o.d(1),o=n(s),o&&(o.c(),o.m(e.parentNode,e)))},i:q,o:q,d(s){s&&S(e),o.d(s)}}}function H4(t,e,i){let{isMobile:n=!1}=e,{state:o}=e,s,l;return t.$$set=r=>{"isMobile"in r&&i(0,n=r.isMobile),"state"in r&&i(3,o=r.state)},t.$$.update=()=>{t.$$.dirty&8&&(i(2,l=o===Mn.CONNECTING),i(1,s=o===Mn.CONNECTED))},[n,s,l,o]}class F4 extends be{constructor(e){super(),ge(this,e,H4,O4,he,{isMobile:0,state:3},N4)}}function U4(t){let e,i;return e=new F4({props:{isMobile:t[1],state:t[2]}}),{c(){U(e.$$.fragment)},m(n,o){H(e,n,o),i=!0},p(n,o){const s={};o&2&&(s.isMobile=n[1]),o&4&&(s.state=n[2]),e.$set(s)},i(n){i||(d(e.$$.fragment,n),i=!0)},o(n){b(e.$$.fragment,n),i=!1},d(n){F(e,n)}}}function q4(t){let e,i,n;function o(l){t[5](l)}let s={ariaLabel:t[4],click:t[3],testId:"btn-chromecast",$$slots:{default:[U4]},$$scope:{ctx:t}};return t[0]!==void 0&&(s.ref=t[0]),e=new gi({props:s}),_e.push(()=>qe(e,"ref",o)),{c(){U(e.$$.fragment)},m(l,r){H(e,l,r),n=!0},p(l,[r]){const a={};r&16&&(a.ariaLabel=l[4]),r&8&&(a.click=l[3]),r&70&&(a.$$scope={dirty:r,ctx:l}),!i&&r&1&&(i=!0,a.ref=l[0],Ue(()=>i=!1)),e.$set(a)},i(l){n||(d(e.$$.fragment,l),n=!0)},o(l){b(e.$$.fragment,l),n=!1},d(l){F(e,l)}}}function Z4(t,e,i){let{ref:n=void 0}=e,{isMobile:o=!1}=e,{state:s}=e,{click:l=Ye}=e,r;function a(c){n=c,i(0,n)}return t.$$set=c=>{"ref"in c&&i(0,n=c.ref),"isMobile"in c&&i(1,o=c.isMobile),"state"in c&&i(2,s=c.state),"click"in c&&i(3,l=c.click)},t.$$.update=()=>{t.$$.dirty&4&&i(4,r=s===Mn.CONNECTED?j("tooltip_chromecast_on"):j("tooltip_chromecast_off"))},[n,o,s,l,r,a]}class vu extends be{constructor(e){super(),ge(this,e,Z4,q4,he,{ref:0,isMobile:1,state:2,click:3})}}function W4(t){let e,i;return e=new Q1({props:{isActive:t[1]}}),{c(){U(e.$$.fragment)},m(n,o){H(e,n,o),i=!0},p(n,o){const s={};o&2&&(s.isActive=n[1]),e.$set(s)},i(n){i||(d(e.$$.fragment,n),i=!0)},o(n){b(e.$$.fragment,n),i=!1},d(n){F(e,n)}}}function K4(t){let e,i;return e=new gi({props:{className:t[0]?"":"btn--live btn-full-opacity",testId:t[1]?"btn-live":"btn-live-offset",disabled:t[1]&&t[3]===Ft.PLAYING,ariaLabel:t[2],click:t[4],$$slots:{default:[W4]},$$scope:{ctx:t}}}),{c(){U(e.$$.fragment)},m(n,o){H(e,n,o),i=!0},p(n,[o]){const s={};o&1&&(s.className=n[0]?"":"btn--live btn-full-opacity"),o&2&&(s.testId=n[1]?"btn-live":"btn-live-offset"),o&10&&(s.disabled=n[1]&&n[3]===Ft.PLAYING),o&4&&(s.ariaLabel=n[2]),o&16&&(s.click=n[4]),o&514&&(s.$$scope={dirty:o,ctx:n}),e.$set(s)},i(n){i||(d(e.$$.fragment,n),i=!0)},o(n){b(e.$$.fragment,n),i=!1},d(n){F(e,n)}}}function j4(t,e,i){let n,{isMobile:o=!1}=e,{isActiveLive:s=!1}=e,{ariaLabel:l=""}=e;const r=pt(),a=r.state.playbackState$;N(t,a,h=>i(3,n=h));const c=r.actions.internal.switchToActiveLive,f=r.actions.internal.togglePlay;let p;return t.$$set=h=>{"isMobile"in h&&i(0,o=h.isMobile),"isActiveLive"in h&&i(1,s=h.isActiveLive),"ariaLabel"in h&&i(2,l=h.ariaLabel)},t.$$.update=()=>{t.$$.dirty&10&&i(4,p=()=>{if(!s){c();return}n===Ft.PAUSED&&f()})},[o,s,l,n,p,a]}class ku extends be{constructor(e){super(),ge(this,e,j4,K4,he,{isMobile:0,isActiveLive:1,ariaLabel:2})}}function G4(t){Ke(t,"v-5ygsa2",'.tooltip-wrapper.v-5ygsa2{position:relative;display:block}.tooltip.v-5ygsa2{position:absolute;opacity:0;visibility:hidden;transition:opacity 200ms, visibility 200ms;bottom:100%;transform:translateX(-50%)}.pointer.v-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.v-5ygsa2{opacity:1;visibility:visible}')}function Y4(t){let e,i,n,o;const s=t[9].default,l=On(s,t,t[8],null);return{c(){e=A("div"),i=A("div"),l&&l.c(),u(i,"class","tooltip v-5ygsa2"),V(i,"active",t[0]),V(i,"pointer",t[1]),u(e,"class","tooltip-wrapper v-5ygsa2"),u(e,"style",n=`transform: translate(${t[5]}px, ${t[2]}px);`)},m(r,a){I(r,e,a),m(e,i),l&&l.m(i,null),t[10](i),t[11](e),o=!0},p(r,[a]){l&&l.p&&(!o||a&256)&&Fn(l,s,r,r[8],o?Hn(s,r[8],a,null):Un(r[8]),null),(!o||a&1)&&V(i,"active",r[0]),(!o||a&2)&&V(i,"pointer",r[1]),(!o||a&36&&n!==(n=`transform: translate(${r[5]}px, ${r[2]}px);`))&&u(e,"style",n)},i(r){o||(d(l,r),o=!0)},o(r){b(l,r),o=!1},d(r){r&&S(e),l&&l.d(r),t[10](null),t[11](null)}}}function Q4(t,e,i){let n,{$$slots:o={},$$scope:s}=e,{active:l=!1}=e,{pointer:r=!1}=e,{translateXPx:a=0}=e,{translateYPx:c=0}=e,{containerWidth:f}=e,p,h;function v(P){if(!h)return 0;const{width:C}=h.getBoundingClientRect(),T=C/2;return P<T?T:P>f-T?f-T:P}function k(P){_e[P?"unshift":"push"](()=>{h=P,i(4,h)})}function _(P){_e[P?"unshift":"push"](()=>{p=P,i(3,p)})}return t.$$set=P=>{"active"in P&&i(0,l=P.active),"pointer"in P&&i(1,r=P.pointer),"translateXPx"in P&&i(6,a=P.translateXPx),"translateYPx"in P&&i(2,c=P.translateYPx),"containerWidth"in P&&i(7,f=P.containerWidth),"$$scope"in P&&i(8,s=P.$$scope)},t.$$.update=()=>{t.$$.dirty&64&&i(5,n=v(a))},[l,r,c,p,h,n,a,f,s,o,k,_]}class X4 extends be{constructor(e){super(),ge(this,e,Q4,Y4,he,{active:0,pointer:1,translateXPx:6,translateYPx:2,containerWidth:7},G4)}}const wu=(t,e,i)=>i.filter(n=>n.time<t*e).pop();function J4(t){Ke(t,"v-l51fc1",".timeline-preview.v-l51fc1{bottom:18px;border-radius:2px;pointer-events:none}.timeline-preview.mobile.v-l51fc1{bottom:72px}.preview.v-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.v-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.v-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 Pr(t){let e;function i(s,l){return s[2]&&s[10].completed===!1?$4:x4}let n=i(t),o=n(t);return{c(){o.c(),e=ct()},m(s,l){o.m(s,l),I(s,e,l)},p(s,l){n===(n=i(s))&&o?o.p(s,l):(o.d(1),o=n(s),o&&(o.c(),o.m(e.parentNode,e)))},d(s){s&&S(e),o.d(s)}}}function x4(t){let e=(t[10].text||"")+"",i;return{c(){i=De(e)},m(n,o){I(n,i,o)},p(n,o){o&1024&&e!==(e=(n[10].text||"")+"")&&xe(i,e)},d(n){n&&S(i)}}}function $4(t){let e=j("tooltip_episode_unfinished")+"",i;return{c(){i=De(e)},m(n,o){I(n,i,o)},p:q,d(n){n&&S(i)}}}function em(t){let e,i,n,o,s,l,r,a,c=t[10]&&Pr(t);return{c(){e=A("div"),i=A("div"),o=D(),s=A("div"),c&&c.c(),l=D(),r=A("div"),a=De(t[0]),u(i,"class","preview v-l51fc1"),u(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);`),u(s,"class","episode v-l51fc1"),u(r,"class","time v-l51fc1"),u(e,"class","timeline-preview v-l51fc1"),V(e,"mobile",t[1])},m(f,p){I(f,e,p),m(e,i),m(e,o),m(e,s),c&&c.m(s,null),m(e,l),m(e,r),m(r,a)},p(f,[p]){p&3064&&n!==(n=`width: ${f[3]}px; height: ${f[4]}px; background-image: url(${f[5]}); background-size: ${f[6]}px ${f[7]}px; background-position: ${f[8]}px ${f[9]}px; transform: translateY(${f[11]%180?-35:0}px) rotate(${f[11]}deg);`)&&u(i,"style",n),f[10]?c?c.p(f,p):(c=Pr(f),c.c(),c.m(s,null)):c&&(c.d(1),c=null),p&1&&xe(a,f[0]),p&2&&V(e,"mobile",f[1])},i:q,o:q,d(f){f&&S(e),c&&c.d()}}}const vo=150;function tm(t,e,i){let n,{time:o=""}=e,{isMobile:s=!1}=e,{videoEpisodes:l=[]}=e,{previewThumbsData:r}=e,{progress:a=0}=e,{duration:c=0}=e,{isInteractive:f=!1}=e;const h=pt().ui.rotateAlpha;N(t,h,R=>i(11,n=R));let v,k,_,P,C,T,y,M;function oe(){let R=r.frameWidth,ee=r.frameHeight;return R>vo?(ee=ee/R*vo,R=vo):ee>vo&&(R=R/ee*vo,ee=vo),{width:R,height:ee}}function Y(R){let ee;r.isUV?ee=Math.floor(c*R/r.frequency):ee=Math.min(r.countTotal,Math.max(0,Math.floor(r.countTotal*R)));const Q=Math.floor(ee/r.countPerImage),w=Math.floor(ee%r.countPerImage/r.countPerRow),$=ee%r.countPerRow;let X=Math.floor(r.countPerImage/r.countPerRow);!r.isUV&&Q===Math.floor(r.countTotal/r.countPerImage)&&(X=Math.floor(r.countTotal%r.countPerImage/r.countPerRow),r.countTotal%r.countPerImage%r.countPerRow>0&&X++);let z=r.countPerRow;!r.isUV&&Q===Math.floor(r.countTotal/r.countPerImage)&&r.countTotal%r.countPerImage>0&&(z=Math.min(r.countPerRow,r.countTotal%r.countPerImage));const W=v*z,B=k*X,J=-$*v,E=-w*k;return{imgSrc:r.links[Q],imgWidth:W,imgHeight:B,imgOffsetX:J,imgOffsetY:E}}return t.$$set=R=>{"time"in R&&i(0,o=R.time),"isMobile"in R&&i(1,s=R.isMobile),"videoEpisodes"in R&&i(13,l=R.videoEpisodes),"previewThumbsData"in R&&i(14,r=R.previewThumbsData),"progress"in R&&i(15,a=R.progress),"duration"in R&&i(16,c=R.duration),"isInteractive"in R&&i(2,f=R.isInteractive)},t.$$.update=()=>{t.$$.dirty&32768&&i(5,{imgSrc:_,imgWidth:P,imgHeight:C,imgOffsetX:T,imgOffsetY:y}=Y(a),_,(i(6,P),i(15,a)),(i(7,C),i(15,a)),(i(8,T),i(15,a)),(i(9,y),i(15,a))),t.$$.dirty&106496&&i(10,M=wu(a,c,l))},i(3,{width:v,height:k}=oe(),v,i(4,k)),[o,s,f,v,k,_,P,C,T,y,M,n,h,l,r,a,c]}class im extends be{constructor(e){super(),ge(this,e,tm,em,he,{time:0,isMobile:1,videoEpisodes:13,previewThumbsData:14,progress:15,duration:16,isInteractive:2},J4)}}function nm(t){Ke(t,"v-5lzly8",".time.v-5lzly8{display:inline-block;padding:6px 10px;border-radius:3px;color:var(--white);background-color:rgba(41, 41, 41, .8)}")}function om(t){let e,i;return{c(){e=A("span"),i=De(t[7]),u(e,"class","time v-5lzly8")},m(n,o){I(n,e,o),m(e,i)},p(n,o){o[0]&128&&xe(i,n[7])},i:q,o:q,d(n){n&&S(e)}}}function lm(t){let e,i;return e=new im({props:{time:t[7],isMobile:t[10],videoEpisodes:t[3],previewThumbsData:t[21],progress:t[8],duration:t[1],isInteractive:t[23]}}),{c(){U(e.$$.fragment)},m(n,o){H(e,n,o),i=!0},p(n,o){const s={};o[0]&128&&(s.time=n[7]),o[0]&1024&&(s.isMobile=n[10]),o[0]&8&&(s.videoEpisodes=n[3]),o[0]&256&&(s.progress=n[8]),o[0]&2&&(s.duration=n[1]),e.$set(s)},i(n){i||(d(e.$$.fragment,n),i=!0)},o(n){b(e.$$.fragment,n),i=!1},d(n){F(e,n)}}}function sm(t){let e,i,n,o;const s=[lm,om],l=[];function r(a,c){return a[14].features.timelinePreview&&a[21]&&!a[0]?0:1}return e=r(t),i=l[e]=s[e](t),{c(){i.c(),n=ct()},m(a,c){l[e].m(a,c),I(a,n,c),o=!0},p(a,c){let f=e;e=r(a),e===f?l[e].p(a,c):(ce(),b(l[f],1,1,()=>{l[f]=null}),fe(),i=l[e],i?i.p(a,c):(i=l[e]=s[e](a),i.c()),d(i,1),i.m(n.parentNode,n))},i(a){o||(d(i),o=!0)},o(a){b(i),o=!1},d(a){a&&S(n),l[e].d(a)}}}function rm(t){let e,i,n,o;const s=[t[9]];let l={$$slots:{default:[sm]},$$scope:{ctx:t}};for(let r=0;r<s.length;r+=1)l=g1(l,s[r]);return e=new X4({props:l}),n=new jl({props:{isActiveLive:t[11],isMobile:t[10],ariaLabel:j("aria_timeline"),ariaValueMin:0,ariaValueMax:t[1],ariaValueNow:Math.round(t[6]*100),ariaValueText:j("aria_timeline_value",{position:t[5],duration:t[4]}),loadedProgress:t[12],filledProgress:t[6],handleProgress:t[6],videoEpisodes:t[3],onPointerDown:t[27],onHandleMove:t[28],onPointerMove:t[31],onPointerUp:t[29],onPointerEnter:t[30],onPointerLeave:t[32],isInteractive:t[23],disabled:t[13].has(rt.TIMELINE),hideHandel:t[2]}}),{c(){U(e.$$.fragment),i=D(),U(n.$$.fragment)},m(r,a){H(e,r,a),I(r,i,a),H(n,r,a),o=!0},p(r,a){const c=a[0]&512?Qc(s,[Xc(r[9])]):{};a[0]&1419|a[1]&65536&&(c.$$scope={dirty:a,ctx:r}),e.$set(c);const f={};a[0]&2048&&(f.isActiveLive=r[11]),a[0]&1024&&(f.isMobile=r[10]),a[0]&2&&(f.ariaValueMax=r[1]),a[0]&64&&(f.ariaValueNow=Math.round(r[6]*100)),a[0]&48&&(f.ariaValueText=j("aria_timeline_value",{position:r[5],duration:r[4]})),a[0]&4096&&(f.loadedProgress=r[12]),a[0]&64&&(f.filledProgress=r[6]),a[0]&64&&(f.handleProgress=r[6]),a[0]&8&&(f.videoEpisodes=r[3]),a[0]&8192&&(f.disabled=r[13].has(rt.TIMELINE)),a[0]&4&&(f.hideHandel=r[2]),n.$set(f)},i(r){o||(d(e.$$.fragment,r),d(n.$$.fragment,r),o=!0)},o(r){b(e.$$.fragment,r),b(n.$$.fragment,r),o=!1},d(r){r&&S(i),F(e,r),F(n,r)}}}function am(t,e,i){let n,o,s,l,r,a,c,f,p,h,v,{showTimeline:k=!1}=e;const _=pt(),P=cn(),C=_.state.bufferedProgress$;N(t,C,ie=>i(12,h=ie));const T=_.state.positionWithScrubbing$;N(t,T,ie=>i(39,a=ie));const y=_.state.duration$;N(t,y,ie=>i(1,s=ie));const M=_.state.isLive$;N(t,M,ie=>i(0,o=ie));const oe=_.state.isActiveLive$;N(t,oe,ie=>i(11,p=ie));const Y=_.ui.isMobile;N(t,Y,ie=>i(10,f=ie));const R=P.features.episodes?_.actions.internal.getVideoEpisodes():void 0,ee=_.actions.internal.getPreviewThumbsData(),Q=_.state.interactiveEpisodes$;N(t,Q,ie=>i(40,c=ie));const w=_.state.isInteractive,$=_.state.isInteractiveTime$;N(t,$,ie=>i(2,l=ie));const X=_.state.isInteractiveExpectation$;N(t,X,ie=>i(38,r=ie));const z=_.actions.internal.correctSeekTimeToInteractive,W=_.ui.controls.disabledControls$;N(t,W,ie=>i(13,v=ie));let B,J,E,O,Ce=!1,ze="",Ee=0,Ve=0,Pe=0,me;function Z(ie){return!z||!w?ie:z(ie*s)/s}function de(ie){_.actions.internal.startScrubbing(Z(ie))}function Se(ie){l||_.actions.internal.progressScrubbing(Z(ie))}function Fe(ie){_.actions.internal.completeScrubbing(Z(ie)),i(34,Ce=!1)}function je(ie,G,ye){Me(ie,G,ye),i(34,Ce=!0)}function re(ie,G,ye){Me(ie,G,ye),i(34,Ce=!0)}function we(){i(34,Ce=!1)}function Me(ie,G,ye){i(8,Pe=ie),i(35,Ee=G),ye&&i(36,Ve=ye),i(7,ze=We(ie))}function We(ie){const G=zn((o?1-ie:ie)*s);return o?`-${G}`:G}return t.$$set=ie=>{"showTimeline"in ie&&i(33,k=ie.showTimeline)},t.$$.update=()=>{t.$$.dirty[1]&512&&i(3,B=w?c:R),t.$$.dirty[0]&2&&i(4,J=zn(s)),t.$$.dirty[1]&256&&i(5,E=zn(a)),t.$$.dirty[0]&2|t.$$.dirty[1]&256&&i(6,O=a/s),t.$$.dirty[0]&4|t.$$.dirty[1]&128&&i(37,me=r||l),t.$$.dirty[0]&1|t.$$.dirty[1]&124&&i(9,n={containerWidth:Ve,translateXPx:Ee,translateYPx:w&&ee?-36:-16,active:Ce&&k&&!me,pointer:!P.features.timelinePreview||!ee||o})},[o,s,l,B,J,E,O,ze,Pe,n,f,p,h,v,P,C,T,y,M,oe,Y,ee,Q,w,$,X,W,de,Se,Fe,je,re,we,k,Ce,Ee,Ve,me,r,a,c]}let um=class extends be{constructor(e){super(),ge(this,e,am,rm,he,{showTimeline:33},nm,[-1,-1])}};function cm(t){let e,i;return e=new jl({props:{ariaValueMin:0,ariaValueMax:t[0],ariaValueNow:Math.round(t[3]*100),ariaValueText:j("aria_timeline_value",{position:t[2],duration:t[1]}),filledProgress:t[3],isAds:!0,hideHandel:!0,squareBorders:t[4]}}),{c(){U(e.$$.fragment)},m(n,o){H(e,n,o),i=!0},p(n,[o]){const s={};o&1&&(s.ariaValueMax=n[0]),o&8&&(s.ariaValueNow=Math.round(n[3]*100)),o&6&&(s.ariaValueText=j("aria_timeline_value",{position:n[2],duration:n[1]})),o&8&&(s.filledProgress=n[3]),o&16&&(s.squareBorders=n[4]),e.$set(s)},i(n){i||(d(e.$$.fragment,n),i=!0)},o(n){b(e.$$.fragment,n),i=!1},d(n){F(e,n)}}}function fm(t,e,i){let n,{position:o=0}=e,{duration:s=0}=e;const r=pt().ui.isMobile;N(t,r,p=>i(4,n=p));let a,c,f;return t.$$set=p=>{"position"in p&&i(6,o=p.position),"duration"in p&&i(0,s=p.duration)},t.$$.update=()=>{t.$$.dirty&1&&i(1,a=zn(s)),t.$$.dirty&64&&i(2,c=zn(o)),t.$$.dirty&65&&i(3,f=o/s)},[s,a,c,f,n,r,o]}class yu extends be{constructor(e){super(),ge(this,e,fm,cm,he,{position:6,duration:0})}}function dm(t){Ke(t,"v-1gqonyf",".timeline.v-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.v-1gqonyf{height:16px;padding:6px 12px 7px;margin-top:6px}.timeline-stub.v-1gqonyf{width:100%;min-width:20px}.timeline-stub.mobile.v-1gqonyf{height:8px}")}function mm(t){let e;return{c(){e=A("div"),u(e,"class","timeline-stub v-1gqonyf"),V(e,"mobile",t[2])},m(i,n){I(i,e,n)},p(i,n){n&4&&V(e,"mobile",i[2])},i:q,o:q,d(i){i&&S(e)}}}function pm(t){let e,i,n,o;const s=[gm,hm],l=[];function r(a,c){return a[0]?0:1}return i=r(t),n=l[i]=s[i](t),{c(){e=A("div"),n.c(),u(e,"class","timeline v-1gqonyf"),V(e,"mobile",t[2])},m(a,c){I(a,e,c),l[i].m(e,null),o=!0},p(a,c){let f=i;i=r(a),i===f?l[i].p(a,c):(ce(),b(l[f],1,1,()=>{l[f]=null}),fe(),n=l[i],n?n.p(a,c):(n=l[i]=s[i](a),n.c()),d(n,1),n.m(e,null)),(!o||c&4)&&V(e,"mobile",a[2])},i(a){o||(d(n),o=!0)},o(a){b(n),o=!1},d(a){a&&S(e),l[i].d()}}}function hm(t){let e,i;return e=new um({props:{showTimeline:t[1]}}),{c(){U(e.$$.fragment)},m(n,o){H(e,n,o),i=!0},p(n,o){const s={};o&2&&(s.showTimeline=n[1]),e.$set(s)},i(n){i||(d(e.$$.fragment,n),i=!0)},o(n){b(e.$$.fragment,n),i=!1},d(n){F(e,n)}}}function gm(t){let e,i;return e=new yu({props:{position:t[3],duration:t[4]}}),{c(){U(e.$$.fragment)},m(n,o){H(e,n,o),i=!0},p(n,o){const s={};o&8&&(s.position=n[3]),o&16&&(s.duration=n[4]),e.$set(s)},i(n){i||(d(e.$$.fragment,n),i=!0)},o(n){b(e.$$.fragment,n),i=!1},d(n){F(e,n)}}}function bm(t){let e,i,n,o;const s=[pm,mm],l=[];function r(a,c){return a[1]?0:1}return e=r(t),i=l[e]=s[e](t),{c(){i.c(),n=ct()},m(a,c){l[e].m(a,c),I(a,n,c),o=!0},p(a,[c]){let f=e;e=r(a),e===f?l[e].p(a,c):(ce(),b(l[f],1,1,()=>{l[f]=null}),fe(),i=l[e],i?i.p(a,c):(i=l[e]=s[e](a),i.c()),d(i,1),i.m(n.parentNode,n))},i(a){o||(d(i),o=!0)},o(a){b(i),o=!1},d(a){a&&S(n),l[e].d(a)}}}function _m(t,e,i){let n,o,s,l,{isAds:r=!1}=e,{canRewindLive:a}=e,{isRewindableLive:c}=e,{isHidden:f=!1}=e;const p=pt(),h=p.state.isLive$;N(t,h,C=>i(12,n=C));const v=p.ads.duration;N(t,v,C=>i(4,l=C));const k=p.ads.position;N(t,k,C=>i(3,s=C));const _=p.ui.isMobile;N(t,_,C=>i(2,o=C));let P;return t.$$set=C=>{"isAds"in C&&i(0,r=C.isAds),"canRewindLive"in C&&i(9,a=C.canRewindLive),"isRewindableLive"in C&&i(10,c=C.isRewindableLive),"isHidden"in C&&i(11,f=C.isHidden)},t.$$.update=()=>{t.$$.dirty&7681&&i(1,P=!f&&(!n||n&&a&&c||r))},[r,P,o,s,l,h,v,k,_,a,c,f,n]}class Cu extends be{constructor(e){super(),ge(this,e,_m,bm,he,{isAds:0,canRewindLive:9,isRewindableLive:10,isHidden:11},dm)}}function vm(t){let e,i,n,o;return{c(){e=L("svg"),i=L("path"),n=L("path"),o=L("path"),u(i,"fill-rule","evenodd"),u(i,"clip-rule","evenodd"),u(i,"d","m21.616 16.495-.012.07c-.156.852-.282 1.541-.427 2.093-.148.569-.333 1.063-.64 1.5a4.398 4.398 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.398 4.398 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.397 4.397 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.398 4.398 0 0 1 1.731 2.506c.133.52.131 1.046.069 1.63-.06.568-.187 1.258-.343 2.11Zm-1.446-2.3c.052-.483.035-.769-.022-.993a2.599 2.599 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.998-.164.895-.277 1.518-.33 2.01-.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.598 2.598 0 0 0 1.481-1.023c.133-.19.25-.45.373-.92.125-.48.24-1.103.403-1.998.164-.895.278-1.518.33-2.01Z"),u(i,"fill","#fff"),u(n,"fill-rule","evenodd"),u(n,"clip-rule","evenodd"),u(n,"d","M18.187 7.488a.9.9 0 0 1-1.045-.727c-.145-.807-.199-1.086-.28-1.296A2.598 2.598 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.599 2.599 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-.093a350.712 350.712 0 0 0-.019-.17c-.129-1.147-.217-1.937-.068-2.636A4.398 4.398 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.397 4.397 0 0 1 3.99 2.819c.15.39.234.853.355 1.526l.017.097a.9.9 0 0 1-.726 1.045Z"),u(n,"fill","#fff"),u(o,"d","M12.724 12.414a.415.415 0 0 0-.69.231l-.72 4.18a.405.405 0 0 0 .025.221c.085.21.327.311.539.226l3.669-1.467a.406.406 0 0 0 .127-.68l-2.95-2.71Z"),u(o,"fill","#fff"),u(e,"width","24"),u(e,"height","24"),u(e,"fill","none"),At(e,"flex-shrink","0"),u(e,"xmlns","http://www.w3.org/2000/svg"),u(e,"aria-hidden","true"),u(e,"data-testid","episodes-icon")},m(s,l){I(s,e,l),m(e,i),m(e,n),m(e,o)},p:q,i:q,o:q,d(s){s&&S(e)}}}class km extends be{constructor(e){super(),ge(this,e,null,vm,he,{})}}function wm(t){let e,i;return{c(){e=L("svg"),i=L("path"),u(i,"opacity",".7"),u(i,"fill-rule","evenodd"),u(i,"clip-rule","evenodd"),u(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-.708Z"),u(i,"fill","#fff"),u(e,"width","12"),u(e,"height","13"),u(e,"fill","none"),u(e,"xmlns","http://www.w3.org/2000/svg"),u(e,"aria-hidden","true"),u(e,"data-testid","chevron-light-icon")},m(n,o){I(n,e,o),m(e,i)},p:q,i:q,o:q,d(n){n&&S(e)}}}class ym extends be{constructor(e){super(),ge(this,e,null,wm,he,{})}}function Cm(t){Ke(t,"v-1yhs2ga",".text.v-1yhs2ga{padding:0 8px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.text.count.v-1yhs2ga{overflow:visible}.text.mobile.v-1yhs2ga{padding:0 3px 0 4px}.chevron-episodes.v-1yhs2ga{margin-bottom:-4px}")}function Tm(t){let e,i,n,o;e=new km({});function s(a,c){if(a[4]===ao.FULL)return Im;if(a[4]===ao.COUNT)return Sm}let l=s(t),r=l&&l(t);return{c(){U(e.$$.fragment),i=D(),r&&r.c(),n=ct()},m(a,c){H(e,a,c),I(a,i,c),r&&r.m(a,c),I(a,n,c),o=!0},p(a,c){l===(l=s(a))&&r?r.p(a,c):(r&&r.d(1),r=l&&l(a),r&&(r.c(),r.m(n.parentNode,n)))},i(a){o||(d(e.$$.fragment,a),o=!0)},o(a){b(e.$$.fragment,a),o=!1},d(a){a&&(S(i),S(n)),F(e,a),r&&r.d(a)}}}function Pm(t){let e,i,n,o,s,l;return s=new ym({}),{c(){e=A("span"),i=De(t[2]),n=D(),o=A("div"),U(s.$$.fragment),u(e,"class","text mobile v-1yhs2ga"),u(o,"class","chevron-episodes v-1yhs2ga")},m(r,a){I(r,e,a),m(e,i),I(r,n,a),I(r,o,a),H(s,o,null),l=!0},p(r,a){(!l||a&4)&&xe(i,r[2])},i(r){l||(d(s.$$.fragment,r),l=!0)},o(r){b(s.$$.fragment,r),l=!1},d(r){r&&(S(e),S(n),S(o)),F(s)}}}function Sm(t){let e,i=t[0].length+"",n;return{c(){e=A("span"),n=De(i),u(e,"class","text count v-1yhs2ga")},m(o,s){I(o,e,s),m(e,n)},p(o,s){s&1&&i!==(i=o[0].length+"")&&xe(n,i)},d(o){o&&S(e)}}}function Im(t){let e,i;return{c(){e=A("span"),i=De(t[2]),u(e,"class","text v-1yhs2ga")},m(n,o){I(n,e,o),m(e,i)},p(n,o){o&4&&xe(i,n[2])},d(n){n&&S(e)}}}function Am(t){let e,i,n,o;const s=[Pm,Tm],l=[];function r(a,c){return a[6]?0:1}return e=r(t),i=l[e]=s[e](t),{c(){i.c(),n=ct()},m(a,c){l[e].m(a,c),I(a,n,c),o=!0},p(a,c){let f=e;e=r(a),e===f?l[e].p(a,c):(ce(),b(l[f],1,1,()=>{l[f]=null}),fe(),i=l[e],i?i.p(a,c):(i=l[e]=s[e](a),i.c()),d(i,1),i.m(n.parentNode,n))},i(a){o||(d(i),o=!0)},o(a){b(i),o=!1},d(a){a&&S(n),l[e].d(a)}}}function Em(t){let e,i,n;function o(l){t[19](l)}let s={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:[Am]},$$scope:{ctx:t}};return t[1]!==void 0&&(s.ref=t[1]),e=new gi({props:s}),_e.push(()=>qe(e,"ref",o)),{c(){U(e.$$.fragment)},m(l,r){H(e,l,r),n=!0},p(l,[r]){const a={};r&64&&(a.className="w-max btn-full-opacity "+(l[6]?"px-0":"")),r&8&&(a.ariaExpanded=l[3]),r&32&&(a.ariaLabel=l[5]),r&8388693&&(a.$$scope={dirty:r,ctx:l}),!i&&r&2&&(i=!0,a.ref=l[1],Ue(()=>i=!1)),e.$set(a)},i(l){n||(d(e.$$.fragment,l),n=!0)},o(l){b(e.$$.fragment,l),n=!1},d(l){F(e,l)}}}function Vm(t,e,i){let n,o,s,l,r,a,{position:c=0}=e,{duration:f=0}=e,{timeCodes:p=[]}=e;const h=pt(),v=h.callbacks?.onEpisodeChanged??Ye,k=!!h.callbacks?.onEpisodeClicked,_=h.ui.currentGridType$;N(t,_,w=>i(18,r=w));const P=h.ui.episodes.openedByKeyboard$;N(t,P,w=>i(17,l=w));const C=h.ui.episodes.panelOpened$;N(t,C,w=>i(3,s=w));const T=h.ui.isMobile;N(t,T,w=>i(6,a=w));let y;const M=w=>{if(!!h.callbacks?.onEpisodeClicked){const X=ql(w);P.set(X),C.set(!0),h.callbacks?.onEpisodeClicked?.(X)}};let oe,Y,R;const ee=async(w,$,X)=>{await $n(),w?.getAttribute("aria-expanded")==="false"&&$&&!X&&(P.set(!1),w.focus())};function Q(w){y=w,i(1,y)}return t.$$set=w=>{"position"in w&&i(13,c=w.position),"duration"in w&&i(14,f=w.duration),"timeCodes"in w&&i(0,p=w.timeCodes)},t.$$.update=()=>{if(t.$$.dirty&24576&&i(16,n=c/f),t.$$.dirty&114689){const w=wu(n,f,p);w&&oe?.text!==w.text&&(v(w),i(15,oe=w))}t.$$.dirty&32768&&i(2,o=oe?.text||""),t.$$.dirty&262144&&(kn(r,yt.XL)?i(4,Y=ao.FULL):kn(r,yt.M)&&j2(r,yt.XL)?i(4,Y=ao.COUNT):i(4,Y=ao.SHORT)),t.$$.dirty&4&&i(5,R=`${j("tooltip_episodes")}: ${o}`),t.$$.dirty&131082&&ee(y,l,s)},[p,y,o,s,Y,R,a,k,_,P,C,T,M,c,f,oe,n,l,r,Q]}class Tu extends be{constructor(e){super(),ge(this,e,Vm,Em,he,{position:13,duration:14,timeCodes:0},Cm)}}function Mm(t){let e,i,n;return{c(){e=L("svg"),i=L("path"),n=L("path"),u(i,"fill-rule","evenodd"),u(i,"clip-rule","evenodd"),u(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-.238Z"),u(i,"fill","#fff"),u(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-.774L7.76 11.17Z"),u(n,"fill","#fff"),u(e,"width","24"),u(e,"height","24"),u(e,"fill","none"),u(e,"xmlns","http://www.w3.org/2000/svg"),u(e,"aria-hidden","true"),u(e,"data-testid","seek-to-interactive-icon")},m(o,s){I(o,e,s),m(e,i),m(e,n)},p:q,i:q,o:q,d(o){o&&S(e)}}}class Lm extends be{constructor(e){super(),ge(this,e,null,Mm,he,{})}}function Bm(t){let e,i;return e=new Lm({}),{c(){U(e.$$.fragment)},m(n,o){H(e,n,o),i=!0},i(n){i||(d(e.$$.fragment,n),i=!0)},o(n){b(e.$$.fragment,n),i=!1},d(n){F(e,n)}}}function Rm(t){let e,i,n;function o(l){t[4](l)}let s={className:t[1]?"hidden":"",testId:"btn-seek-to-interactive",ariaLabel:j("tooltip_interactive_seek"),disabled:t[2],click:t[3],$$slots:{default:[Bm]},$$scope:{ctx:t}};return t[0]!==void 0&&(s.ref=t[0]),e=new gi({props:s}),_e.push(()=>qe(e,"ref",o)),{c(){U(e.$$.fragment)},m(l,r){H(e,l,r),n=!0},p(l,[r]){const a={};r&2&&(a.className=l[1]?"hidden":""),r&4&&(a.disabled=l[2]),r&8&&(a.click=l[3]),r&32&&(a.$$scope={dirty:r,ctx:l}),!i&&r&1&&(i=!0,a.ref=l[0],Ue(()=>i=!1)),e.$set(a)},i(l){n||(d(e.$$.fragment,l),n=!0)},o(l){b(e.$$.fragment,l),n=!1},d(l){F(e,l)}}}function Nm(t,e,i){let{ref:n=void 0}=e,{hidden:o=!1}=e,{disabled:s=!1}=e,{click:l}=e;function r(a){n=a,i(0,n)}return t.$$set=a=>{"ref"in a&&i(0,n=a.ref),"hidden"in a&&i(1,o=a.hidden),"disabled"in a&&i(2,s=a.disabled),"click"in a&&i(3,l=a.click)},[n,o,s,l,r]}class Pu extends be{constructor(e){super(),ge(this,e,Nm,Rm,he,{ref:0,hidden:1,disabled:2,click:3})}}function Dm(t){let e,i,n;return{c(){e=L("svg"),i=L("path"),n=L("path"),u(i,"fill-rule","evenodd"),u(i,"clip-rule","evenodd"),u(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.107 2.107 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.148 2.148 0 0 1-.817-.21 2.107 2.107 0 0 1-.923-.919 2.125 2.125 0 0 1-.21-.813 8.287 8.287 0 0 1-.02-.63l-2.198-.002c-.495-.001-.81 0-1.05.018-.23.019-.309.05-.343.067a.803.803 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.003c.001-.23.004-.443.02-.627.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.108 2.108 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.148 2.148 0 0 1-.817-.21 2.108 2.108 0 0 1-.923-.918 2.125 2.125 0 0 1-.21-.814 8.288 8.288 0 0 1-.02-.63l-2.24-.002c-.449 0-.839-.001-1.16-.028-.341-.028-.684-.09-1.016-.259a2.61 2.61 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.61 2.61 0 0 1 1.144-1.138c.332-.168.676-.23 1.017-.257.323-.025.714-.025 1.164-.024l2.23.003c.001-.23.004-.443.02-.627.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 3Zm-.833 1.837a.76.76 0 0 1 .146-.02c.156-.013.366-.014.72-.014h1.354c.353 0 .563 0 .719.013a.76.76 0 0 1 .146.021.301.301 0 0 1 .126.126.75.75 0 0 1 .021.145c.013.156.014.365.014.716v1.334c0 .352 0 .561-.014.716a.75.75 0 0 1-.02.146.301.301 0 0 1-.127.125.76.76 0 0 1-.146.022c-.156.012-.366.013-.719.013H16.81c-.353 0-.563 0-.719-.013a.76.76 0 0 1-.146-.022.301.301 0 0 1-.126-.125.75.75 0 0 1-.021-.146 9.929 9.929 0 0 1-.014-.716V5.824c0-.351.001-.56.014-.716a.75.75 0 0 1 .021-.145.301.301 0 0 1 .126-.126Zm0 11.018a.765.765 0 0 1 .146-.022c.156-.012.366-.013.72-.013h1.354c.353 0 .563 0 .719.013a.765.765 0 0 1 .146.022.3.3 0 0 1 .126.125.75.75 0 0 1 .021.146c.013.155.014.364.014.716v1.334c0 .351 0 .56-.014.716a.75.75 0 0 1-.02.145.3.3 0 0 1-.127.126.755.755 0 0 1-.146.02c-.156.014-.366.014-.719.014H16.81c-.353 0-.563 0-.719-.013a.746.746 0 0 1-.146-.021.3.3 0 0 1-.126-.126.75.75 0 0 1-.021-.145 9.93 9.93 0 0 1-.014-.716v-1.334c0-.352.001-.561.014-.716a.75.75 0 0 1 .021-.146.3.3 0 0 1 .126-.125Z"),u(i,"fill","#fff"),u(n,"fill-rule","evenodd"),u(n,"clip-rule","evenodd"),u(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.062 1.062 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"),u(n,"fill","#fff"),V(n,"hidden",!t[0]),u(e,"width","24"),u(e,"height","24"),u(e,"fill","none"),u(e,"xmlns","http://www.w3.org/2000/svg")},m(o,s){I(o,e,s),m(e,i),m(e,n)},p(o,[s]){s&1&&V(n,"hidden",!o[0])},i:q,o:q,d(o){o&&S(e)}}}function zm(t,e,i){let{isOpened:n=!1}=e;return t.$$set=o=>{"isOpened"in o&&i(0,n=o.isOpened)},[n]}class Om extends be{constructor(e){super(),ge(this,e,zm,Dm,he,{isOpened:0})}}function Hm(t){let e,i;return e=new Om({props:{isOpened:t[3]}}),{c(){U(e.$$.fragment)},m(n,o){H(e,n,o),i=!0},p(n,o){const s={};o&8&&(s.isOpened=n[3]),e.$set(s)},i(n){i||(d(e.$$.fragment,n),i=!0)},o(n){b(e.$$.fragment,n),i=!1},d(n){F(e,n)}}}function Fm(t){let e,i,n;function o(l){t[6](l)}let s={className:t[1]?"hidden":"",testId:"btn-graph",disabled:t[2],ariaLabel:t[5],click:t[4],$$slots:{default:[Hm]},$$scope:{ctx:t}};return t[0]!==void 0&&(s.ref=t[0]),e=new gi({props:s}),_e.push(()=>qe(e,"ref",o)),{c(){U(e.$$.fragment)},m(l,r){H(e,l,r),n=!0},p(l,[r]){const a={};r&2&&(a.className=l[1]?"hidden":""),r&4&&(a.disabled=l[2]),r&32&&(a.ariaLabel=l[5]),r&16&&(a.click=l[4]),r&136&&(a.$$scope={dirty:r,ctx:l}),!i&&r&1&&(i=!0,a.ref=l[0],Ue(()=>i=!1)),e.$set(a)},i(l){n||(d(e.$$.fragment,l),n=!0)},o(l){b(e.$$.fragment,l),n=!1},d(l){F(e,l)}}}function Um(t,e,i){let{ref:n=void 0}=e,{hidden:o=!1}=e,{disabled:s=!1}=e,{graphIsOpened:l=!1}=e,{click:r}=e,a;function c(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,s=f.disabled),"graphIsOpened"in f&&i(3,l=f.graphIsOpened),"click"in f&&i(4,r=f.click)},t.$$.update=()=>{t.$$.dirty&8&&i(5,a=j(l?"tooltip_interactive_graph_on":"tooltip_interactive_graph_off"))},[n,o,s,l,r,a,c]}class Su extends be{constructor(e){super(),ge(this,e,Um,Fm,he,{ref:0,hidden:1,disabled:2,graphIsOpened:3,click:4})}}function qm(t){let e,i;return{c(){e=L("svg"),i=L("path"),u(i,"d","M12 9.096a.4.4 0 0 1-.67.296L7.044 5.493a.668.668 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-6v3.096z"),u(i,"fill","#fff"),u(e,"width","24"),u(e,"height","24"),u(e,"fill","none"),u(e,"xmlns","http://www.w3.org/2000/svg"),u(e,"aria-hidden","true"),u(e,"data-testid","replay-icon")},m(n,o){I(n,e,o),m(e,i)},p:q,i:q,o:q,d(n){n&&S(e)}}}class Iu extends be{constructor(e){super(),ge(this,e,null,qm,he,{})}}function Zm(t){Ke(t,"v-1ot3duq",".mobile.v-1ot3duq{position:relative;display:flex;align-items:center;justify-content:center}.mobile.v-1ot3duq svg{transform:scale(2)}.icon-background-mobile.v-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 Sr(t){let e;return{c(){e=A("div"),u(e,"class","icon-background-mobile v-1ot3duq")},m(i,n){I(i,e,n)},d(i){i&&S(e)}}}function Wm(t){let e,i,n,o,s=t[1]&&Sr();return n=new Iu({}),{c(){s&&s.c(),e=D(),i=A("div"),U(n.$$.fragment),u(i,"class","v-1ot3duq"),V(i,"mobile",t[1])},m(l,r){s&&s.m(l,r),I(l,e,r),I(l,i,r),H(n,i,null),o=!0},p(l,r){l[1]?s||(s=Sr(),s.c(),s.m(e.parentNode,e)):s&&(s.d(1),s=null),(!o||r&2)&&V(i,"mobile",l[1])},i(l){o||(d(n.$$.fragment,l),o=!0)},o(l){b(n.$$.fragment,l),o=!1},d(l){l&&(S(e),S(i)),s&&s.d(l),F(n)}}}function Km(t){let e,i,n;function o(l){t[5](l)}let s={className:(t[1]?"btn-m--play":"")+" "+t[3],testId:"btn-replay",ariaLabel:j("tooltip_restart"),disabled:t[2],click:t[4],ariaKeyShortCut:Zo[Te.KeyK],$$slots:{default:[Wm]},$$scope:{ctx:t}};return t[0]!==void 0&&(s.ref=t[0]),e=new gi({props:s}),_e.push(()=>qe(e,"ref",o)),{c(){U(e.$$.fragment)},m(l,r){H(e,l,r),n=!0},p(l,[r]){const a={};r&10&&(a.className=(l[1]?"btn-m--play":"")+" "+l[3]),r&4&&(a.disabled=l[2]),r&16&&(a.click=l[4]),r&66&&(a.$$scope={dirty:r,ctx:l}),!i&&r&1&&(i=!0,a.ref=l[0],Ue(()=>i=!1)),e.$set(a)},i(l){n||(d(e.$$.fragment,l),n=!0)},o(l){b(e.$$.fragment,l),n=!1},d(l){F(e,l)}}}function jm(t,e,i){let{ref:n=void 0}=e,{isMobile:o=!1}=e,{disabled:s=!1}=e,{className:l=""}=e,{click:r=Ye}=e;function a(c){n=c,i(0,n)}return t.$$set=c=>{"ref"in c&&i(0,n=c.ref),"isMobile"in c&&i(1,o=c.isMobile),"disabled"in c&&i(2,s=c.disabled),"className"in c&&i(3,l=c.className),"click"in c&&i(4,r=c.click)},[n,o,s,l,r,a]}class Ql extends be{constructor(e){super(),ge(this,e,jm,Km,he,{ref:0,isMobile:1,disabled:2,className:3,click:4},Zm)}}function Gm(t){let e,i;return{c(){e=L("svg"),i=L("path"),u(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.853l-5.478-3.349Z"),u(i,"fill","#fff"),u(e,"width","24"),u(e,"height","24"),u(e,"fill","none"),u(e,"xmlns","http://www.w3.org/2000/svg"),u(e,"data-testid","play-prev-chapter-icon")},m(n,o){I(n,e,o),m(e,i)},p:q,i:q,o:q,d(n){n&&S(e)}}}class Ym extends be{constructor(e){super(),ge(this,e,null,Gm,he,{})}}function Qm(t){let e,i;return e=new Ym({}),{c(){U(e.$$.fragment)},m(n,o){H(e,n,o),i=!0},i(n){i||(d(e.$$.fragment,n),i=!0)},o(n){b(e.$$.fragment,n),i=!1},d(n){F(e,n)}}}function Xm(t){let e,i,n;function o(l){t[4](l)}let s={className:t[1]?"hidden":"",testId:"btn-play-prev-chapter",ariaLabel:j("tooltip_interactive_go_back"),disabled:t[2],click:t[3],$$slots:{default:[Qm]},$$scope:{ctx:t}};return t[0]!==void 0&&(s.ref=t[0]),e=new gi({props:s}),_e.push(()=>qe(e,"ref",o)),{c(){U(e.$$.fragment)},m(l,r){H(e,l,r),n=!0},p(l,[r]){const a={};r&2&&(a.className=l[1]?"hidden":""),r&4&&(a.disabled=l[2]),r&8&&(a.click=l[3]),r&32&&(a.$$scope={dirty:r,ctx:l}),!i&&r&1&&(i=!0,a.ref=l[0],Ue(()=>i=!1)),e.$set(a)},i(l){n||(d(e.$$.fragment,l),n=!0)},o(l){b(e.$$.fragment,l),n=!1},d(l){F(e,l)}}}function Jm(t,e,i){let{ref:n=void 0}=e,{hidden:o=!1}=e,{disabled:s=!1}=e,{click:l}=e;function r(a){n=a,i(0,n)}return t.$$set=a=>{"ref"in a&&i(0,n=a.ref),"hidden"in a&&i(1,o=a.hidden),"disabled"in a&&i(2,s=a.disabled),"click"in a&&i(3,l=a.click)},[n,o,s,l,r]}class Au extends be{constructor(e){super(),ge(this,e,Jm,Xm,he,{ref:0,hidden:1,disabled:2,click:3})}}function xm(t){Ke(t,"v-1x1zctw",".icon.v-1x1zctw{width:24px !important;height:24px !important;;}.error-stub.v-1x1zctw{display:flex;justify-content:center;align-items:center}.inner.v-1x1zctw{width:16px;height:16px;background-color:var(--white)}")}function $m(t){let e,i,n,o;return{c(){e=A("img"),u(e,"class","icon v-1x1zctw"),ss(e.src,i=t[0])||u(e,"src",i),u(e,"aria-hidden","true")},m(s,l){I(s,e,l),n||(o=pe(e,"error",t[7]),n=!0)},p(s,l){l&1&&!ss(e.src,i=s[0])&&u(e,"src",i)},d(s){s&&S(e),n=!1,o()}}}function e3(t){let e;return{c(){e=A("div"),e.innerHTML='<div class="inner v-1x1zctw"></div>',u(e,"class","icon error-stub v-1x1zctw")},m(i,n){I(i,e,n)},p:q,d(i){i&&S(e)}}}function t3(t){let e;function i(s,l){return s[5]?e3:$m}let n=i(t),o=n(t);return{c(){o.c(),e=ct()},m(s,l){o.m(s,l),I(s,e,l)},p(s,l){n===(n=i(s))&&o?o.p(s,l):(o.d(1),o=n(s),o&&(o.c(),o.m(e.parentNode,e)))},d(s){s&&S(e),o.d(s)}}}function i3(t){let e,i;return e=new gi({props:{className:t[4]?"btn-full-opacity":"",ariaLabel:t[1],click:t[3],disabled:t[6],testId:t[2],$$slots:{default:[t3]},$$scope:{ctx:t}}}),{c(){U(e.$$.fragment)},m(n,o){H(e,n,o),i=!0},p(n,[o]){const s={};o&16&&(s.className=n[4]?"btn-full-opacity":""),o&2&&(s.ariaLabel=n[1]),o&8&&(s.click=n[3]),o&64&&(s.disabled=n[6]),o&4&&(s.testId=n[2]),o&545&&(s.$$scope={dirty:o,ctx:n}),e.$set(s)},i(n){i||(d(e.$$.fragment,n),i=!0)},o(n){b(e.$$.fragment,n),i=!1},d(n){F(e,n)}}}function n3(t,e,i){let n,o,s,{iconUrl:l}=e,{ariaLabel:r}=e,{disabled:a=!1}=e,{testId:c}=e,{onClick:f=Ye}=e;const p=()=>{i(5,s=!0)};return t.$$set=h=>{"iconUrl"in h&&i(0,l=h.iconUrl),"ariaLabel"in h&&i(1,r=h.ariaLabel),"disabled"in h&&i(8,a=h.disabled),"testId"in h&&i(2,c=h.testId),"onClick"in h&&i(3,f=h.onClick)},t.$$.update=()=>{t.$$.dirty&8&&i(4,n=f===Ye),t.$$.dirty&272&&i(6,o=n||a)},i(5,s=!1),[l,r,c,f,n,s,o,p,a]}class Eu extends be{constructor(e){super(),ge(this,e,n3,i3,he,{iconUrl:0,ariaLabel:1,disabled:8,testId:2,onClick:3},xm)}}const o3=(t,e)=>t<400||e<225?5:t<640||e<360?0:t<960||e<540?1:t<1280||e<720?2:3,l3="//ad.mail.ru/static/admanhtml/rbadman-html5.min.js";class s3{adman=null;initialVolume=1;videoElement=null;currentAdSection=null;actions=null;adsState=null;playerState=null;log;loadTimeout;initTimeout;events={slotRequested$:new hn,started$:new hn,paused$:new hn,resumed$:new hn,ended$:new hn,skipped$:new hn,clicked$:new hn};constructor(e,i){this.log=e.createComponentLog("AdmanWrapper"),this.loadTimeout=i.loadTimeout,this.initTimeout=i.initTimeout}init(e,i,n){this.actions=e,this.adsState=i,this.playerState=n}loadAdman=e=>new Promise((i,n)=>{let o;const s=()=>{clearTimeout(o),delete window.admanAsyncInit,window.AdmanHTML?i():n()};Ic(l3,e,this.loadTimeout).then(()=>{window.AdmanHTML?i():(window.admanAsyncInit=s,o=window.setTimeout(s,this.initTimeout))}).catch(()=>{n()})});onAdmanLoadingError(){this.log({message:"adman loading error"}),this.switchToVideo(!0)}initAdman(e){const{width:i,height:n,isFullscreen:o,isAutoplay:s,adsContainer:l,adsVideoElement:r,slotId:a,params:c={},duration:f,previewParam:p}=e;let h;const v=this.playerState&&Je(this.playerState.vsid);v&&(h=parseInt(v,36));const k={dl:encodeURIComponent(window.location.href),autoplay:s,player_width:i,player_height:n,puid10:o3(i,n),puid11:o?0:1,preview:p,...h?{request_id:h}:{},duration:f,...c},_={slot:a,wrapper:l,videoEl:r,videoQuality:n,params:k,browser:{mobile:!1}},P=new window.AdmanHTML;P.setDebug(!1),P.onReady(this.onAdsReady),P.onStarted(this.onAdStarted),P.onPlayed(this.onAdPlayed),P.onPaused(this.onAdPaused),P.adMidrollPoint(this.onAdMidrollPoint),P.onClosed(this.onAdClosed),P.onSkipped(this.onAdSkipped),P.onClicked(this.onAdClicked),P.onTimeRemained(this.onAdTimeRemained),P.onCompleted(this.onAdCompleted),P.onError(this.onAdError),P.init(_),this.adman=P,this.videoElement=r,this.events.slotRequested$.next(),this.log({message:`adman init, config: ${JSON.stringify(_)}`})}switchToVideo(e=!1){if(this.currentAdSection===null&&!e){this.log({message:"switch to video, no currentAdSection. can't switch"});return}ut(this.actions),ut(this.adsState),ut(this.playerState);const i=this.currentAdSection===Rn.Postroll;this.adsState.playbackState.set(xt.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(){ut(this.adsState),this.log({message:"toggle play"});const e=Je(this.adsState.playbackState);e===xt.PLAYING?this.pause():e===xt.PAUSED&&this.play()}setInitialVolume(e){this.log({message:`set initial volume ${e}`}),this.initialVolume=e}setVolume(e){this.log({message:`set volume ${e}`}),this.adman?.setVolume(e),this.videoElement&&(this.videoElement.volume=e)}setFullscreen(e){this.log({message:`set fullscreen ${e}`}),this.adman?.setFullscreen(e)}startPreroll(){ut(this.adman),this.log({message:"start preroll"}),this.setVolume(this.initialVolume),this.currentAdSection=Rn.Preroll,this.adman.start(Rn.Preroll)}startPostroll(){ut(this.adman),ut(this.actions),this.log({message:"start postroll"}),this.actions.switchFromVideoToAds(),this.currentAdSection=Rn.Postroll,this.adman.start(Rn.Postroll)}onAdsReady=()=>{this.log({message:"ads ready"}),this.startPreroll()};onAdStarted=(e,i)=>{ut(this.adsState),ut(this.playerState),ut(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(xt.PLAYING),this.adsState.canSkip.set(i.allowClose),this.adsState.secondsToWatchBeforeSkip.set(i.allowCloseDelay)};onAdTimeRemained=({currentTime:e})=>{ut(this.adsState),this.adsState.position.set(e)};onAdPaused=()=>{ut(this.adsState),this.log({message:"ad paused"}),this.adsState.playbackState.set(xt.PAUSED)};onAdPlayed=()=>{ut(this.adsState),this.log({message:"ad played"}),this.adsState.playbackState.set(xt.PLAYING)};onAdMidrollPoint=()=>{ut(this.adman),ut(this.actions),this.log({message:"midroll point"}),this.actions.switchFromVideoToAds(),this.currentAdSection=Rn.Midroll,this.adman.start(Rn.Midroll)};onAdSkipped=()=>{this.log({message:"ad skipped"}),this.switchToVideo()};onAdClosed=()=>{this.log({message:"ad closed"}),this.switchToVideo()};onAdCompleted=()=>{this.log({message:"ad completed"}),this.events.ended$.next(),this.switchToVideo()};onAdClicked=()=>{this.log({message:"ad clicked"}),this.videoElement?.pause(),this.events.clicked$.next()};onAdError=()=>{this.log({message:"ad error"}),this.switchToVideo(!0)};play(){ut(this.adman),this.log({message:"ad play"}),this.adman.resume(),this.events.resumed$.next()}pause(){ut(this.adman),this.log({message:"ad pause"}),this.adman.pause(),this.events.paused$.next()}skip(){ut(this.adman),this.log({message:"ad skip"}),this.adman.skip(),this.events.skipped$.next()}setPosition(e,i){this.adman?.setPosition(Math.floor(e),Math.floor(i))}destroy(){this.log({message:"destroy"}),this.adman?.destroy()}}const r3=t=>{const 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:""};class a3{oneLineRegExp=/\r\n|\n|\r/;twoLinesRegExp=/\r\n\r\n|\n\n|\r\r/;parse(e){const i=[],n=e.split(this.twoLinesRegExp);for(const o of n){const s={startTime:0,endTime:0,texts:[],lang:""},l=o.split(this.oneLineRegExp);for(const r of l)if(!s.startTime&&!s.endTime){const a=new Vu,{startTime:c,endTime:f}=a.parse(r);s.startTime=c,s.endTime=f}else if(r.trim()!==""){const a=new u3,{texts:c}=a.parse(r);s.texts=[...s.texts,...c]}(s.startTime||s.endTime)&&s.texts.length>0&&i.push(s)}return i}}class Vu{timeRegExp=/(\d{2})?:?(\d{2}):(\d{2}).(\d{2,3})/;timingRegExp=new RegExp(`${this.timeRegExp.source}( ?--> ?)${this.timeRegExp.source}`);parse(e){const 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){const 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"){const s=Number(e)*60*60,l=Number(i)*60,r=Number(n),a=+`0.${o}`;return s+l+r+a}}class u3{letterTagRegExp=/<[a-z]*>|<\/[a-z]*>/;parse(e){const i={texts:[]},o=e.replace(new RegExp(this.letterTagRegExp,"g"),"").split({[Symbol.split](l){let r=0;const a=[];for(;r<l.length;){const c=["<",">"].reduce((f,p)=>{const h=l.indexOf(p,r);return f===-1||f>h?h:f},-1);if(c===-1){a.push(l.substring(r));break}a.push(l.substring(r,c)),r=c+1}return a}}),s=new Vu;for(const l of o)s.isTime(l)?i.texts.push({type:"timestamp",value:s.parseTime(l)}):i.texts.push({type:"text",value:l});return i}}let Qn,pn,yl=0,Cl=!1;const c3=(t,e,i)=>{const n=t>=yl,o=t<yl,s=(c,f=0,p=0)=>c<f&&c<p,l=(c,f=0,p=0)=>c>=f&&c<=p,r=(c,f=0,p=0)=>c>f&&c>p,a=i.find(({lang:c})=>c===e.value)?.subtitles;if(yl=t,o&&(Cl=!1),wn(Qn)&&l(t,Qn.startTime,Qn.endTime)&&Qn.lang===e.value)return Qn;if(!wn(pn)&&a?.length&&!Cl){const c=a.find(({startTime:f,endTime:p})=>l(t,f,p)||n&&s(t,f,p));pn=c&&{...c,lang:e.value},Qn=void 0,!wn(pn)&&a[a.length-1].endTime<t&&(Cl=!0);return}else{if(l(t,pn?.startTime,pn?.endTime))return Qn=pn,pn=void 0,Qn;(n&&r(t,pn?.startTime,pn?.endTime)||o&&s(t,pn?.startTime,pn?.endTime))&&(pn=void 0)}},Tl={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-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"};class f3{oneStat;statSubscription;constructor(e,i){this.oneStat=new Fc(e,i),this.statSubscription=new xn}destroy(){this.oneStat.destroy(),this.statSubscription.unsubscribe()}}const d3=({interfaceLanguage:t,videoId:e,isClip:i,isLiveCatchUpMode:n,statAuthToken:o,isAudioDisabled:s,canDownload:l,callbacks:r,webApi:a,videoEpisodes:c,previewThumbsData:f,uiConfig:p,coreConfig:h,player:v,disabledControls:k,isInteractive:_,interactiveRanges$:P,isInteractiveTime$:C,replayInteractive:T,hasInteractiveBranches:y,playPrevChapterDisabledTooltip:M,additionalButtons:oe,looped:Y=!1,statistics:R})=>{const ee={...h,configName:[...h.configName??[],"ui"],isAudioDisabled:s,live:{...h.live??{},isLiveCatchUpMode:!!n}},Q=p,w=v||new yc(ee),$=new h1,X=new s3($,{loadTimeout:Q.ads.loadTimeout,initTimeout:Q.ads.initTimeout}),z=Ml.getInstance(),W=a?.pictureInPictureApi,B=a?.annotationsApi,J=$.createComponentLog("Store");let E,O,Ce={};const ze=Nl(),Ee=R?mt(R.oneStat.vsid$):Vn(void 0),Ve=Ie(Ho()),Pe=W?.info.isActive$??new Rl(!1),me=W?.info.type,Z=Ie(0),de=Ie([]),Se=Ac(w.events.fatalError$,w.events.managedError$).subscribe(g=>de.update(le=>[...le,g])),Fe=Vn(!1,g=>{const le=w.events.fatalError$.subscribe(()=>g(!0));return()=>le.unsubscribe()}),je=async g=>{const le=Object.values(Fo).includes(g);if(Q.downloadVKLanguages&&(le&&Q.updateBuiltinLanguages||!fs(g))){let Re;try{Re=await Mc(g,of,lf)}catch(Qe){R?.oneStat?.logError({errorType:"VKLangPack",fatal:!1}),z?.report(Qe,{errorType:"VKLangPack",fatal:!1})}Re&&(cs({language:g,pack:Re,fallback:Q.defaultLanguage}),re.set(g))}fs(g)&&re.set(g)},re=Ie(t);je(t);const we=(g,le)=>{const ke=Je(re);return q1(ke,g,le,Q.defaultLanguage)},Me=Ie(Ne.Thumb),We=(()=>{const g=hi([Fe,Me],([le,ke])=>le?Ne.Crashed:ke);return{...g,is:le=>Je(g)===le}})(),ie=(()=>{const g=Ie(new Set(k));return{...g,add:le=>{g.update(ke=>new Set([...ke].concat(le)))},remove:le=>{g.update(ke=>{const Re=[...ke];return new Set(Array.isArray(le)?Re.filter(Qe=>!le.includes(Qe)):Re.filter(Qe=>Qe!==le))})},includes:le=>{const ke=Je(g);return Array.isArray(le)?le.every(Re=>ke.has(Re)):ke.has(le)}}})();J({message:"create store"});const G=g=>{const le=g.container;le.append(w.experimental.element$.getValue()),Be=new MutationObserver(ke=>{const{removedNodes:Re}=ke[0];Re.length&&le.append(w.experimental.element$.getValue())}),Be.observe(le,{childList:!0})},ye=g=>{J({message:`init video, config: ${JSON.stringify(g)}`}),_?G(g):w.initVideo(g),g.subtitles&&w.setExternalTextTracks(g.subtitles),E=g},se=new hn,ve=g=>se.next(g),Oe=new hn,$e=new hn,ot=new hn;let Be=null;const ae={actionRewind$:Oe,actionSeek$:$e,inPiP$:Pe,inFullscreen$:new Ec(g=>Ve.subscribe(le=>g.next(le))),actionSetSubtitle$:ot,nextMovie$:se};if(R){const{oneStat:g,statSubscription:le}=R;le.add(g.attachTo(w)),le.add(g.attachToUi(ae)),le.add(g.attachToAds(X.events)),g.authorize(o).catch(ke=>{J({message:`onestat auth error ${String(ke)}`})})}if(z){const g=new xn,le=(ke,Re)=>g.add(ke.subscribe(Re));if(le(w.events.managedError$,ke=>{z.logIError(ke)}),le(w.events.fatalError$,ke=>{z.logIError(ke,!0)}),R){const{oneStat:ke}=R;le(ke.experimental.error$,Re=>{z.logIError(Re)})}z.sentrySubscription.add(g)}const lt=()=>{sl()&&O&&Rf(O)},_t=new xn().add(w.experimental.element$.subscribe(g=>{g&&(O=g,g.classList.add("player-media"),al(W)&&(W.updateVideoElement(),W.registryEventHandlers()),_&&g.setAttribute("pip","false"))})).add(w.events.ended$.subscribe(()=>{lt(),r?.onEnded?.()})).add(w.events.started$.subscribe(async()=>{al(W)&&await W?.revealPictureInPicture();const g=w.info.muted$.getValue();r?.onStarted?.(),Ce.onStarted?.(g)})).add(w.events.willSeek$.subscribe(({from:g,to:le})=>{r?.onSeek?.(g,le)})).add(w.info.position$.subscribe(g=>{const le=w.info.duration$.getValue();r?.onTimeupdate?.(le,g),X.setPosition(g,le)})).add(w.events.fatalError$.subscribe(()=>{r?.onCrashed?.()})).add(w.events.firstBytes$.subscribe(()=>{st.state.isFirstBytes$.set(!0)})).add(w.info.is3DVideo$.subscribe(g=>{st.ui.is3DVideo.set(g)})).add(w.info.isEnded$.subscribe(g=>{_&&(g?(C?.getValue()&&ie.add(I1),ie.add(rt.PLAY_BUTTON)):ie.remove(rt.PLAY_BUTTON))})).add(w.info.liveTime$.subscribe(g=>{r?.onLiveTime?.(g)})).add(w.info.isStalled$.subscribe(g=>{r?.onStalledChanged?.(g)})),at=new xn,ht=()=>{at.add(w.events.log$.subscribe(g=>{console.debug("%c sdk ","background:#9ddcf7;",`sdk component: ${g.component}`,g.message)})).add($.log$.subscribe(g=>{console.debug("%c ui ","background:#f3da0b;",`ui component: ${g.component}.`,g.message)}))},Ct=()=>{at.unsubscribe()},Le=(g,le)=>{w.startCameraManualRotation(g,le)},qt=(g=!1)=>{w.stopCameraManualRotation(g)},ue=(g,le,ke)=>{w.moveCameraFocusPX(g,le,ke)},ft=()=>{w.holdCamera()},vt=()=>{w.releaseCamera()},Ze=Vn(w.info.position$.getValue(),g=>{let le,ke;const Re=()=>{const Qe=w.info.playbackState$.getValue(),Ht=w.info.isLive$.getValue(),Xt=w.info.duration$.getValue(),It=w.info.position$.getValue();if([Ft.PLAYING,Ft.PAUSED].includes(Qe)){const un=Ht?It-Xt:w.getExactTime();un!==ke&&g(un),ke=un}le=requestAnimationFrame(Re)};return Re(),()=>cancelAnimationFrame(le)}),et=mt(Pe),gt=mt(w.info.playbackState$),kt=mt(w.info.currentBuffer$),bi=mt(w.info.isEnded$),_i=mt(w.info.isLive$),vi=Q.features.playbackRate?mt(w.info.canChangePlaybackSpeed$):Vn(!1),qi=mt(w.info.liveBufferTime$),Ji=mt(w.info.volume$),oi=mt(w.info.muted$),li=M1(w.info.autoQualityLimits$.pipe(Vc(({max:g})=>g!==void 0)),w.info.autoQualityLimits$.getValue()?.max!==void 0),ki=mt(w.info.autoQualityLimitingAvailable$),Zt=mt(w.info.availableQualities$),si=mt(w.info.availableQualitiesFps$),Zi=mt(w.info.chromecastState$),wi=mt(w.info.chromecastDeviceName$),yi=mt(w.info.currentFormat$),ri=mt(w.info.throughputEstimation$),Ci=mt(w.info.videoBitrate$),ai=mt(w.info.intrinsicVideoSize$),Ti=mt(w.info.duration$),Pi=mt(w.info.isAudioAvailable$);let wt=null;const Bt=w.info.isBuffering$,Wt=Vn(Bt.getValue(),g=>{const le=Bt.subscribe(ke=>{ke&&wt===null?wt=window.setTimeout(()=>{g(Bt.getValue()),wt=null},Q.loaderDelay):g(ke)});return()=>{le.unsubscribe(),wt&&clearTimeout(wt)}}),ui=()=>{wt&&clearTimeout(wt),wt=null},Vt=hi([Ti,_i],([g,le])=>le?-g:g),ci=hi([gt],([g])=>g===Ft.PLAYING),Kt=mt(w.info.atLiveEdge$),ei=mt(w.info.atLiveDurationEdge$),Tt=mt(w.info.position$),Pt=hi([Tt,Ti],([g,le])=>isFinite(g)&&isFinite(le)&&!!le),Rt=hi([Zi],([g])=>g===Mn.CONNECTED),jt=Ie(void 0),fi=mt(w.info.isAutoQualityEnabled$,g=>g&&jt.set(void 0)),nn=mt(w.info.currentQuality$,()=>jt.set(void 0)),Wi=hi([jt,nn],([g,le])=>g??le),Gt=hi([Zt,si,fi,Wi,yi],([g,le,ke,Re,Qe])=>{const Ht=[];Qe!==Lo.MPEG&&Ht.push({value:To.AUTO,displayValue:we("auto_quality_option"),selected:ke});const Xt=g.filter(It=>It!==nl.INVARIANT);for(const It of Xt){const un=le[It],_n=It===nl.INVARIANT?we("auto_quality_option"):It;Ht.push({value:It,displayValue:`${_n}${un?r3(un):""}`,selected:ke?!1:It===Re})}return Ht}),ti=mt(w.info.currentPlaybackRate$),Si=hi([ti,Kt,ei],([g,le,ke])=>{const Re=ke||_?1:Q.controls.playbackRateMin,Qe=le?1:Q.controls.playbackRateMax,Ht=Q.controls.playbackRateStep,Xt=[];for(let It=Re;It<=Qe;It+=Ht)Xt.push({value:It,displayValue:It===1?we("playback_rate_1"):we("playback_rate",{multiplier:It.toString(10)}),selected:g===It});return Xt}),Di=Q.features.subtitles?mt(w.info.availableTextTracks$):Vn([]),Nt=hi([Di],([g],le)=>{const ke=[],Re=[];for(const Qe of g)Qe.url&&ke.push(fetch(Qe.url));Promise.allSettled(ke).then(Qe=>{for(const[Ht,Xt]of Qe.entries())Xt.status==="fulfilled"&&Xt.value.text().then(It=>{const un=new a3,_n=g[Ht].language,Vo=!!g[Ht].isAuto,go=un.parse(It);_n&&go&&Re.push({lang:_n,subtitles:go,isAuto:Vo}),Ht===Qe.length-1&&le(Re)})})}),bt={displayValue:we("subtitles_off"),value:"off"},Ii=Ie({...bt}),Ki=hi([Nt,Ii,Nt],([g,le])=>{if(g?.length>0){const ke=[{...bt,selected:le?.value===bt.value}];for(const{lang:Re,isAuto:Qe}of g)Tl[Re]&&ke.push({displayValue:Qe?we("subtitles_auto",{language:Tl[Re]}):Tl[Re],value:Re,selected:le?.value===Re,isAuto:Qe});return ke}else return[]}),ii=hi([Ze,Ii,Nt],([g,le,ke])=>{if(le&&le.value!==bt.value)return c3(g,le,ke)}),ji=hi([ii],([g])=>g?.texts?g.texts:[]),di=Ie(!0),xi=hi([kt,Vt,Tt,qi],([g,le,ke,Re])=>{const Qe=g?.end??0;if(!Re)return Qe/le;const Xt=-ke+Re-le;return(Qe-Xt)/le}),Gi=mt(w.info.availableSources$),$i=hi([Gi],([g])=>Object.keys(g?.[Lo.MPEG]||{}).length>0),zi=()=>{const g=Object.keys(w.info.availableSources$?.getValue()?.[Lo.MPEG]||{}),le=Lc(g)||nl.Q_144P;return E.sources[Lo.MPEG]?.[le]},Ai=()=>{const g=zi();g?pf(g,E?.meta?.title||"video"):J({message:"There is no URL for download video"})},Dt=()=>{J({message:"toggle muted"});const g=w.info.muted$.getValue(),Re=!(w.info.volume$.getValue()===0||g);pi(Re)},Yt=()=>{st.ui.settingsMenuVisible.set(!1)},mi=g=>{st.ui.settingsMenuOpenedByKeyboard.set(!!g),st.ui.settingsMenuVisible.set(!0)},Oi=g=>{Je(st.ui.settingsMenuVisible)?Yt():mi(g)},Hi=(g,le=g,ke=!1)=>{const Re=!ke,Qe=w.info.muted$.getValue();J({message:`set volume, volume: ${g}, preferredVolume: ${le}, internalCall: ${Re}`}),w.setVolume(g),X.setVolume(g),Re&&r?.onVolumeChange?.(g),us(le),Qe?(w.setMuted(!1),Re&&r?.onUnmute?.(),_l(!1)):!Qe&&g===0&&(w.setMuted(!0),Re&&r?.onMute?.(),_l(!0))},pi=(g,le=!1)=>{const ke=!le,Re=w.info.volume$.getValue();if(J({message:`set muted, currentVolume: ${Re}, mute: ${g}, internalCall: ${ke}`}),w.setMuted(g),X.setVolume(g?0:Re),_l(g),ke&&(g?r?.onMute?.():r?.onUnmute?.()),Re===0){let Qe=D1()??Q.volumeDefault;Qe===0&&(Qe=Q.volumeMinRestore,us(Qe)),w.setVolume(Qe),X.setVolume(Qe),ke&&r?.onVolumeChange?.(Qe)}},Ei=Ie(!1),Vi=g=>{Ei.set(g),w.setLooped(g)};Vi(Y);const He=()=>{w.prepare()},Fi=()=>{if(ut(st),!Je(st.ui.controls.disabledControls$).has(rt.PLAY_BUTTON)){if(J({message:"toggle play"}),Je(st.playerPhase)===Ne.Ads){X.togglePlay();return}if(w.info.playbackState$.getValue()!==Ft.PLAYING){if(w.info.isEnded$.getValue()){if(J({message:"toggle play, video ended, seek to 0"}),Oe.next(),$e.next(Lt.REWIND),_){T?.();return}w.seekTime(0)}J({message:"toggle play, call player.play"}),w.play(),r?.onPlay?.()}else J({message:"toggle play, call player.pause"}),w.pause(),r?.onPause?.()}},Mt=g=>{J({message:`set quality, quality: ${g}`}),w.setAutoQuality(g===To.AUTO),g!==To.AUTO?(hf(e,g),jt.set(g),w.setQuality(g)):z1()},Ae=g=>{J({message:`set trafficSavingEnabled, value: ${g}`}),w.setAutoQualityLimits({max:g?Q.trafficSavingLimit:void 0}),_f(g)},Mi=g=>{w.setPlaybackRate(g)},Yi=()=>{const g=Je(Si),le=g.findIndex(({selected:Re})=>Re);if(le===g.length-1)return;const ke=g[le+1];Mi(ke.value)},Ui=()=>{const g=Je(Si),le=g.findIndex(({selected:Re})=>Re);if(le===0)return;const ke=g[le-1];Mi(ke.value)},Li=g=>{g&&g.value!==bt.value&&ot.next(g.isAuto?g.value+"_auto":g.value),Ii.set(g)},en=()=>{const g=Je(Ki),le=Je(Ii),ke=Je(re);if(le?.value===bt.value){const Re=g.filter(Qe=>Qe.value!==bt.value).find(Qe=>Qe.value===ke)||g[1];Li(Re??{...bt})}else Li({...bt,selected:!1})},Bi=(g,le,ke=!0)=>{if(J({message:`seek to time, time: ${g}`}),$e.next(le),w.info.isLive$.getValue()){const Re=w.info.duration$.getValue(),Qe=Math.min(0,Re+g);w.seekTime(Qe,ke)}else{if(C?.getValue())return;w.seekTime(oo(g),ke)}},Qi=g=>{J({message:`seek to episode start time: ${g}`}),Bi(g,Lt.EPISODE,!0)},zt=(g,le)=>{J({message:`seek to percent, percent: ${g}`});const ke=Math.round(Je(Vt)*g);Bi(ke,le,!1)},Xi=g=>{J({message:`seek external, time: ${g}`}),$e.next(Lt.UNKNOWN),w.seekTime(w.info.isLive$.getValue()?-g:g)},ni=g=>{J({message:`set auto quality limitation. Max: ${g.max??"none"}. Min: ${g.min??"none"}`}),w.setAutoQualityLimits(g)},ne=g=>{J({message:`seek external to episode start time: ${g}`}),Bi(g,Lt.EPISODE,!0)},tt=g=>{J({message:`set playback rate to: ${g}`}),w.setPlaybackRate(g)},Ot=Ie(void 0),Qt=Ie(!1),Ri=g=>{J({message:`start scrubbing, progress: ${g}`}),Qt.set(!0),Ni(g)},Ni=g=>{Ot.set(g)};let fn,dn;const sn=()=>{Ot.set(void 0),Qt.set(!1)},St=()=>{clearTimeout(dn),clearTimeout(fn),fn=window.setTimeout(()=>{sn()},500),O?.removeEventListener("seeked",St)},Pn=g=>{J({message:`complete scrubbing, progress: ${g}`}),zt(g,Lt.SLIDER),Je(st.ui.isMobile)&&Je(st.state.currentFormat$)===Lo.HLS?(O?.addEventListener("seeked",St),dn=window.setTimeout(()=>{St()},300)):sn()},Sn=hi([Ze,Vt,Ot],([g,le,ke],Re)=>{Re(wn(ke)?ke*le:g)}),mn=Ie({width:0,height:0}),gn=hi([mn],([{width:g}],le)=>{const ke=G2(g);le(ke)}),rn=Ie(!1),on=hi([gn,rn],([g,le])=>le?oe.filter(ke=>!ke.hideOnMobile):oe.filter(ke=>!ke.hideOnDesktopGridTypes?.includes(g))),te=hi([rn,Fe],([g,le],ke)=>{ke(g&&le)}),dt=()=>{$e.next(Lt.LIVE),J({message:"switch to active live"}),w.seekTime(0),w.info.playbackState$.getValue()!==Ft.PLAYING&&st.actions.internal.togglePlay()},bn=()=>X.skip(),In=(g=!0)=>{ut(st),J({message:`switch from ads to video, callPlay: ${g}`}),Me.set(Ne.Video),g&&w.play()},An=()=>{ut(st),J({message:"switch from video to ads"}),st.actions.internal.pause(),lt(),Me.set(Ne.Ads)},qn=g=>{ut(st);const le=g?Ne.WaitingLive:Ne.Thumb;Me.set(le)},Zn=g=>{ut(st);const le=g?Ne.WaitingRecord:Ne.Thumb;Me.set(le)},Wn=()=>(ut(st),df(w,E,st)),Kn=()=>(ut(st),mf(w,E,st)),jn=()=>O,eo=()=>{J({message:"toggle chromecast"}),w.toggleChromecast()},x=g=>{ut(st);const le=!g;if(Je(st.playerPhase)===Ne.Ads){J({message:`pause ads, internalCall: ${le}`}),X.pause();return}J({message:`pause video, internalCall: ${le}`}),le&&r?.onPause?.(),w.pause()},an=g=>{ut(st);const le=!g;if(Je(st.playerPhase)===Ne.Ads){J({message:`play ads, internalCall: ${le}`}),X.play();return}J({message:`play video, internalCall: ${le}`}),le&&r?.onPlay?.(),w.play()},to=(g,le)=>{ut(st),J({message:`first start, show ads: ${g}, internalCall: ${!le}`}),g?Me.set(Ne.Ads):(Me.set(Ne.Video),le?w.play():st.actions.internal.togglePlay())},io=()=>(J({message:"getting time codes"}),c),Gn=()=>{const g=io();if(!g||[0,1].includes(g.length))return;const le=w.info.position$.getValue();return g.find(ke=>ke.time>le)},fo=g=>{let le=g;le||(le=Gn()),le&&(J({message:"seek to next episode"}),Bi(le.time,Lt.EPISODE,!0))},En=()=>{const g=io();if(!g||[0,1].includes(g.length))return;const le=w.info.position$.getValue(),ke=g.findIndex(Qe=>Qe.time>le),Re=ke===-1?g.length-2:ke-2;if(!(Re<0))return g[Re]},Yn=g=>{let le=g;le||(le=En()),le&&(J({message:"seek to prev episode"}),Bi(le.time,Lt.EPISODE,!0))},mo=()=>(J({message:"getting preview thumbs data"}),f),po=async()=>{W?.isActive()?await W?.remove():await W?.request()},Eo=(g=-90)=>{Z.update(le=>le+g)},Bn=Ie([]);P?.subscribe(g=>{const le=[];for(let ke=0;ke<g.length;ke++){const{range:[Re,Qe],subjects:Ht}=g[ke];ke===0&&Re!==0&&le.push({time:0,text:"",interactive:!1,completed:!0}),le.push({time:Re/1e3,text:"",interactive:!0,completed:!Ht.length}),Qe!==1/0&&le.push({time:Qe/1e3,text:"",interactive:!1,completed:!0})}Bn.set(le)});const no=Ie(!1);C?.subscribe(g=>{g&&Je(Qt)&&sn()});const oo=g=>{if(!_)return g;const le=Je(Bn),ke=Je(Vt),Qe=Je(Tt)/ke,Ht=le.find(Xt=>Xt.interactive&&!Xt.completed&&Xt.time>Qe);return typeof Ht?.time=="number"?Math.min(g,Ht.time-.05):g},ho=()=>{st.ui.episodes.panelOpened$.set(!1)},lo=()=>{clearTimeout(dn),clearTimeout(fn),_t.unsubscribe(),at.unsubscribe(),w.destroy(),X.destroy(),R?.destroy(),z?.destroy(),Se.unsubscribe(),Be?.disconnect(),Be=null},st={interfaceLanguage$:re,initVideo:ye,videoId:e,isClip:i,playerPhase:We,vsid:Ee,state:{positionExact$:Ze,positionWithScrubbing$:Sn,duration$:Vt,playbackState$:gt,isPlaying$:ci,isLoaderVisible:Wt,bufferedProgress$:xi,isLive$:_i,canChangePlaybackSpeed$:vi,isActiveLive$:Kt,isOldestAvailableLive$:ei,isRewindableLive$:Pt,isEnded$:bi,muted$:oi,volume$:Ji,trafficSavingEnabled$:li,autoQualityLimitingAvailable$:ki,currentQuality$:Wi,isAutoQualityEnabled$:fi,availableQualities$:Gt,currentPlaybackRate$:ti,availablePlaybackRates$:Si,currentSubtitle$:Ii,availableSubtitlesList$:Ki,currentSubtitleCaptions$:ji,isAutoSubtitleCaptionVisible$:di,chromecastState$:Zi,chromecastDeviceName$:wi,chromecastConnected$:Rt,currentFormat$:yi,throughputEstimation$:ri,videoBitrate$:Ci,videoSize$:ai,errorLog$:de,crashed$:Fe,isAudioAvailable$:Pi,isAudioDisabled:!!s,canDownload:Q.features.download&&!!l,availableSources$:Gi,hasMpegSources$:$i,isInteractive:_,showInteractiveGraph:Q.features.interactiveGraph,showSeekToInteractive:Q.features.seekToInteractive,showPlayPrevChapter:Q.features.interactivePlayPrevChapter,showInteractiveTimeIndicator:Q.features.interactiveTimeIndicator&&!!Je(Bn).length,interactiveEpisodes$:Bn,isInteractiveTime$:C?mt(C):Ie(!1),graphIsOpened$:Ie(!1),isInteractiveExpectation$:no,hasInteractiveBranches:y,playPrevChapterDisabledTooltip:M,looped$:Ei,isFirstBytes$:Ie(!1)},ui:{controlsVisible:Ie(!1),touched:Ie(!1),controls:{prevButton:Ie(void 0),playButton:Ie(void 0),replayButton:Ie(void 0),nextButton:Ie(void 0),playPrevChapterButton:Ie(void 0),seekToInteractiveButton:Ie(void 0),interactiveGraphButton:Ie(void 0),liveButton:Ie(void 0),time:Ie(void 0),episodes:Ie(void 0),volume:Ie(void 0),subtitles:Ie(void 0),settings:Ie(void 0),context:Ie(void 0),chromecast:Ie(void 0),pip:Ie(void 0),fullscreen:Ie(void 0),vkLogo:Ie(void 0),interactiveTimeIndicator:Ie(void 0),additionalButtons:oe.length?oe.reduce(g=>[...g,Ie(void 0)],[]):[],disabledControls$:ie},modals:{hotKeyMap:{show:Ie(!1),data:Ie({title:"",closeBtnText:"",groups:[]})}},isFullscreen:Ve,rotateAlpha:Z,isAutoplay:Ie(!1),debugPanelVisible:Ie(!1),episodes:{panelOpened$:Ie(!1),openedByKeyboard$:Ie(!1)},contextMenu:{visible$:Ie(!1),btnRef$:Ie(void 0),openedByBtnKeyboard$:Ie(!1),openedByHotKey$:Ie(!1),lastActiveElem$:Ie(void 0),showContextMenuBtn$:Ie(!1),position$:Ie({top:0,left:0})},playerSize:mn,isMobile:rn,mobileNotReportControlHidden$:te,mobileUnmuteButtonExpanded:Ie(!1),mobileUnmuteButtonVisible:Ie(!1),icon3DVideoVisible:Ie(!1),settingsMenuVisible:Ie(!1),settingsMenuOpenedByKeyboard:Ie(!1),scrubbingInProgress:Qt,is3DVideo:Ie(!1),isPictureInPictureActive$:et,pictureInPictureType$:Vn(me),clientInfo$:Vn(ze),currentGridType$:gn,additionalButtons$:on,interactiveHideMobileControls:Ie(!1),overlayContainer$:Ie(void 0),startedByKeyboard$:Ie(!1)},ads:{position:Ie(0),duration:Ie(0),playbackState:Ie(xt.INACTIVE),canSkip:Ie(!1),secondsToWatchBeforeSkip:Ie(0),postrollPassed:Ie(!1)},webApi:{pictureInPictureApi:W,annotationsApi:B},actions:{internal:{preload:He,firstStart:g=>to(g,!1),pause:()=>x(!1),togglePlay:Fi,toggleMuted:Dt,toggleSettingsMenu:Oi,openSettingsMenu:mi,closeSettingsMenu:Yt,setVolume:Hi,setQuality:Mt,setTrafficSavingEnabled:g=>Ae(g),setPlaybackRate:Mi,incrementPlaybackRate:Yi,decrementPlaybackRate:Ui,setSubtitle:Li,toggleSubtitle:en,togglePictureInPicture:po,startScrubbing:Ri,progressScrubbing:Ni,completeScrubbing:Pn,toggleChromecast:eo,switchToActiveLive:dt,switchFromAdsToVideo:In,switchFromVideoToAds:An,skipAd:bn,setWaitingLive:qn,setWaitingRecord:Zn,getDebugTextData:Wn,getDebugPanelData:Kn,getVideoElement:jn,seekTime:(g,le,ke)=>Bi(g,le,ke),clearDelayedBufferingCheckTimeout:ui,seekEpisodeStartTime:Qi,seekToPercent:zt,getNextEpisode:Gn,seekToNextEpisode:fo,getPrevEpisode:En,seekToPrevEpisode:Yn,startLogging:ht,stopLogging:Ct,startCameraManualRotation:Le,stopCameraManualRotation:qt,moveCameraFocusPX:ue,holdCamera:ft,releaseCamera:vt,getVideoEpisodes:io,getPreviewThumbsData:mo,downloadVideo:Ai,addLanguage:cs,setLanguage:je,nextMovie:ve,videoRotate:Eo,correctSeekTimeToInteractive:oo,replayInteractive:T,setLooped:Vi},external:{firstStart:g=>to(g,!0),play:()=>an(!0),pause:()=>x(!0),seekTime:g=>Xi(g),seekEpisodeStartTime:g=>ne(g),setPlaybackRate:g=>tt(g),setAutoQualityLimits:g=>ni(g),setMuted:g=>pi(g,!0),setVolume:g=>Hi(g,g,!0),returnFocusToEpisodes:ho}},callbacks:r,setUiCallbacks:g=>{Ce={...g}},getAdmanWrapper:()=>X,getLogger:()=>$,destroy:lo};return st},Mu=(t,e,i,n)=>{if(!t)return;const o=["interactiveTimeIndicator"],s=t.getBoundingClientRect();for(const[l,r]of Object.entries(e))if(!["tooltipPointerOffsetX","disabledControls$","additionalButtons"].includes(l)){const a=i[l]?.getBoundingClientRect(),c=(n||o.includes(l))&&!!a&&!!(a.right-a.left);r.set({positionStartX:0,positionEndX:0,left:c?Math.round(a.left-s.left):0,right:c?Math.round(a.right-s.left):0,top:c?Math.round(a.top-s.top):0,bottom:c?Math.round(a.bottom-s.top):0,isDisplayed:c})}},Lu=async(t,e,i)=>{await $n(),e&&i&&(i.focus(),t.set(!1))};function m3(t){let e,i;return{c(){e=L("svg"),i=L("path"),u(i,"d","M18 10c1.1 0 2 .9 2 2s-.9 2-2 2-2-.9-2-2 .9-2 2-2Zm-6 4c-1.1 0-2-.9-2-2s.9-2 2-2 2 .9 2 2-.9 2-2 2Zm-6 0c-1.1 0-2-.9-2-2s.9-2 2-2 2 .9 2 2-.9 2-2 2Z"),u(i,"fill","#fff"),u(e,"width","24"),u(e,"height","24"),u(e,"fill","none"),u(e,"xmlns","http://www.w3.org/2000/svg"),u(e,"aria-hidden","true"),u(e,"data-testid","dots-icon")},m(n,o){I(n,e,o),m(e,i)},p:q,i:q,o:q,d(n){n&&S(e)}}}class p3 extends be{constructor(e){super(),ge(this,e,null,m3,he,{})}}function h3(t){let e,i;return e=new p3({}),{c(){U(e.$$.fragment)},m(n,o){H(e,n,o),i=!0},i(n){i||(d(e.$$.fragment,n),i=!0)},o(n){b(e.$$.fragment,n),i=!1},d(n){F(e,n)}}}function g3(t){let e,i,n;function o(l){t[8](l)}let s={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:[h3]},$$scope:{ctx:t}};return t[2]!==void 0&&(s.ref=t[2]),e=new gi({props:s}),_e.push(()=>qe(e,"ref",o)),{c(){U(e.$$.fragment)},m(l,r){H(e,l,r),n=!0},p(l,[r]){const a={};r&8&&(a.className=l[3]?"opened":""),r&1&&(a.disabled=l[0]),r&2&&(a.ariaLabel=l[1]),r&8&&(a.ariaExpanded=l[3]),r&16384&&(a.$$scope={dirty:r,ctx:l}),!i&&r&4&&(i=!0,a.ref=l[2],Ue(()=>i=!1)),e.$set(a)},i(l){n||(d(e.$$.fragment,l),n=!0)},o(l){b(e.$$.fragment,l),n=!1},d(l){F(e,l)}}}function b3(t,e,i){let n,{disabled:o=!1}=e,{ariaLabel:s=""}=e;const l=pt(),r=l.ui.contextMenu.visible$;N(t,r,C=>i(3,n=C));const a=l.ui.contextMenu.openedByBtnKeyboard$,c=l.ui.contextMenu.showContextMenuBtn$,f=l.ui.contextMenu.position$,p=l.ui.contextMenu.btnRef$;let h;const v=C=>{const T=ql(C),y=d0(h);f.set(y),a.set(T),r.set(!n)},k=()=>{c.set(!0)},_=()=>{c.set(!1)};function P(C){h=C,i(2,h)}return t.$$set=C=>{"disabled"in C&&i(0,o=C.disabled),"ariaLabel"in C&&i(1,s=C.ariaLabel)},t.$$.update=()=>{t.$$.dirty&4&&h&&p.set(h)},[o,s,h,n,r,v,k,_,P]}class _3 extends be{constructor(e){super(),ge(this,e,b3,g3,he,{disabled:0,ariaLabel:1})}}function v3(t){Ke(t,"v-17imlp9",".interactive-episode-icon-animated.v-17imlp9{position:absolute;top:16px;right:16px;width:32px;height:32px;transition:0.3s;opacity:1}.invisible.v-17imlp9{opacity:0;visibility:hidden}.fullscreen.v-17imlp9:not(.mobile){width:40px;top:19px;right:23px;height:40px}.mobile.v-17imlp9{width:28px;height:28px;top:12px;right:14px}.fullscreen.mobile.v-17imlp9{width:32px;height:32px}@media screen and (orientation: portrait){.interactive-episode-icon-animated.mobile.fullscreen.v-17imlp9{top:40px;right:16px}}@keyframes v-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.v-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 v-17imlp9-pulse infinite;transition:0.3s;pointer-events:none}.pulse.paused.v-17imlp9{animation-play-state:paused}.interactive-episode-icon-animated svg{width:100%;height:100%}.ref-block.v-17imlp9{position:absolute;top:0;width:100%;height:100%;visibility:hidden}.hidden.v-17imlp9{display:none}")}function k3(t){let e,i;return e=new pu({props:{completed:!0}}),{c(){U(e.$$.fragment)},m(n,o){H(e,n,o),i=!0},p:q,i(n){i||(d(e.$$.fragment,n),i=!0)},o(n){b(e.$$.fragment,n),i=!1},d(n){F(e,n)}}}function w3(t){let e,i,n,o,s,l,r,a,c,f;function p(v){t[22](v)}let h={tooltipContent:j("tooltip_interactive_interaction_time_indicator"),tooltipActive:t[5],initialTranslateYPx:72,tooltipPlacement:"bottom",onTooltipVisibilityChange:t[13],$$slots:{default:[k3]},$$scope:{ctx:t}};return t[0]!==void 0&&(h.ref=t[0]),i=new Et({props:h}),_e.push(()=>qe(i,"ref",p)),i.$on("click",t[14]),{c(){e=A("div"),U(i.$$.fragment),o=D(),s=A("div"),l=D(),r=A("div"),u(s,"class","ref-block v-17imlp9"),V(s,"hidden",t[1]),u(r,"class","pulse v-17imlp9"),V(r,"paused",t[4]),u(e,"class","interactive-episode-icon-animated v-17imlp9"),V(e,"mobile",t[2]),V(e,"fullscreen",t[6]),V(e,"invisible",t[1])},m(v,k){I(v,e,k),H(i,e,null),m(e,o),m(e,s),t[23](s),m(e,l),m(e,r),t[24](r),a=!0,c||(f=[pe(e,"mousemove",nt(t[21])),pe(e,"mouseleave",t[15])],c=!0)},p(v,k){const _={};k[0]&32&&(_.tooltipActive=v[5]),k[1]&1&&(_.$$scope={dirty:k,ctx:v}),!n&&k[0]&1&&(n=!0,_.ref=v[0],Ue(()=>n=!1)),i.$set(_),(!a||k[0]&2)&&V(s,"hidden",v[1]),(!a||k[0]&16)&&V(r,"paused",v[4]),(!a||k[0]&4)&&V(e,"mobile",v[2]),(!a||k[0]&64)&&V(e,"fullscreen",v[6]),(!a||k[0]&2)&&V(e,"invisible",v[1])},i(v){a||(d(i.$$.fragment,v),a=!0)},o(v){b(i.$$.fragment,v),a=!1},d(v){v&&S(e),F(i),t[23](null),t[24](null),c=!1,it(f)}}}function y3(t,e,i){let n,o,s,l,r,a,{ref:c=void 0}=e,f;const p=pt(),h=Ao(),{interactiveControlsOpacity$:v}=h;N(t,v,O=>i(18,o=O));const k=p.ui.isMobile;N(t,k,O=>i(2,r=O));const _=p.ui.isFullscreen;N(t,_,O=>i(6,a=O));const P=p.state.isInteractiveTime$;N(t,P,O=>i(19,s=O));const C=h.showInteractiveTimeIndicatorTooltip$;N(t,C,O=>i(17,n=O));const T=p.ui.controlsVisible;N(t,T,O=>i(20,l=O));const y=p.callbacks?.onInteractiveTimeIndicatorClick;let M,oe,Y;const R=()=>{i(4,Y=!0)},ee=()=>{Q(),f?.addEventListener("animationiteration",R,{once:!0})},Q=()=>{i(4,Y=!1),f?.removeEventListener("animationiteration",R)},w=O=>{C.set(O)};let $;const X=()=>{oe||(C.set(!0),y?.())};qo(()=>{C.clearTimeout(),Q()});const z=()=>{C.set(!1)};function W(O){uo.call(this,t,O)}function B(O){c=O,i(0,c)}function J(O){_e[O?"unshift":"push"](()=>{c=O,i(0,c)})}function E(O){_e[O?"unshift":"push"](()=>{f=O,i(3,f)})}return t.$$set=O=>{"ref"in O&&i(0,c=O.ref)},t.$$.update=()=>{t.$$.dirty[0]&1048580&&i(16,M=!r&&l),t.$$.dirty[0]&851968&&i(1,oe=!s||!!o||M),t.$$.dirty[0]&2&&i(4,Y=oe),t.$$.dirty[0]&131074&&i(5,$=n&&!oe),t.$$.dirty[0]&131072&&(n?ee():Q())},[c,oe,r,f,Y,$,a,v,k,_,P,C,T,w,X,z,M,n,o,s,l,W,B,J,E]}class Bu extends be{constructor(e){super(),ge(this,e,y3,w3,he,{ref:0},v3,[-1,-1])}}function C3(t){Ke(t,"v-st0uzk",".wrapper-bottom.v-st0uzk.v-st0uzk{pointer-events:none;position:absolute;width:100%;bottom:0;left:0;height:var(--controls-gradient-height);background:var(--controls-gradient);transition:transform var(--controls-transition-duration) var(--controls-transition-fn);display:flex;flex-direction:column;justify-content:flex-end;box-sizing:border-box}.wrapper-bottom.v-st0uzk>.v-st0uzk{pointer-events:auto}.controls.v-st0uzk.v-st0uzk{width:100%;display:flex;align-items:center;justify-content:space-between;height:var(--controls-height);white-space:nowrap;font-size:13px;transition:transform var(--controls-transition-duration) var(--controls-transition-fn);will-change:transform;padding:0 8px 4px;box-sizing:border-box}.controls-left.v-st0uzk.v-st0uzk,.controls-right.v-st0uzk.v-st0uzk{display:flex;align-content:center}.controls-left.v-st0uzk.v-st0uzk{flex-grow:1;min-width:0;overflow:hidden}.controls-left.v-st0uzk > *:not(:first-child),.controls-right.v-st0uzk > *{margin-left:var(--controls-desktop-item-margin-left)}.controls-hidden.v-st0uzk.v-st0uzk{visibility:visible;transform:translateY(100%)}.wrapper-bottom.no-smooth.v-st0uzk.v-st0uzk{transition:none}.settings-menu.v-st0uzk.v-st0uzk{bottom:57px;right:18px;position:absolute;transition:opacity 0.2s, visibility 0.2s}")}function Ir(t,e,i){const n=t.slice();return n[209]=e[i].iconUrl,n[210]=e[i].ariaLabel,n[211]=e[i].testId,n[212]=e[i].onClick,n[213]=e[i].tooltip,n}function Ar(t){let e,i,n;function o(l){t[173](l)}let s={disabled:!t[9],tooltipContent:j("tooltip_previous"),$$slots:{default:[T3]},$$scope:{ctx:t}};return t[23].prevButton!==void 0&&(s.ref=t[23].prevButton),e=new Et({props:s}),_e.push(()=>qe(e,"ref",o)),{c(){U(e.$$.fragment)},m(l,r){H(e,l,r),n=!0},p(l,r){const a={};r[0]&512&&(a.disabled=!l[9]),r[0]&4608|r[6]&1073741824&&(a.$$scope={dirty:r,ctx:l}),!i&&r[0]&8388608&&(i=!0,a.ref=l[23].prevButton,Ue(()=>i=!1)),e.$set(a)},i(l){n||(d(e.$$.fragment,l),n=!0)},o(l){b(e.$$.fragment,l),n=!1},d(l){F(e,l)}}}function T3(t){let e,i;return e=new dl({props:{click:t[12],type:"prev",disabled:!t[9],isMobile:!1}}),{c(){U(e.$$.fragment)},m(n,o){H(e,n,o),i=!0},p(n,o){const s={};o[0]&4096&&(s.click=n[12]),o[0]&512&&(s.disabled=!n[9]),e.$set(s)},i(n){i||(d(e.$$.fragment,n),i=!0)},o(n){b(e.$$.fragment,n),i=!1},d(n){F(e,n)}}}function Er(t){let e,i,n;function o(l){t[174](l)}let s={disabled:t[74],tooltipContent:j("tooltip_restart"),$$slots:{default:[P3]},$$scope:{ctx:t}};return t[23].replayButton!==void 0&&(s.ref=t[23].replayButton),e=new Et({props:s}),_e.push(()=>qe(e,"ref",o)),{c(){U(e.$$.fragment)},m(l,r){H(e,l,r),n=!0},p(l,r){const a={};r[2]&4096&&(a.disabled=l[74]),r[2]&4096|r[6]&1073741824&&(a.$$scope={dirty:r,ctx:l}),!i&&r[0]&8388608&&(i=!0,a.ref=l[23].replayButton,Ue(()=>i=!1)),e.$set(a)},i(l){n||(d(e.$$.fragment,l),n=!0)},o(l){b(e.$$.fragment,l),n=!1},d(l){F(e,l)}}}function P3(t){let e,i;return e=new Ql({props:{click:t[128],disabled:t[74]}}),{c(){U(e.$$.fragment)},m(n,o){H(e,n,o),i=!0},p(n,o){const s={};o[2]&4096&&(s.disabled=n[74]),e.$set(s)},i(n){i||(d(e.$$.fragment,n),i=!0)},o(n){b(e.$$.fragment,n),i=!1},d(n){F(e,n)}}}function Vr(t){let e,i,n;function o(l){t[176](l)}let s={tooltipContent:t[47],disabled:t[75],$$slots:{default:[S3]},$$scope:{ctx:t}};return t[23].playButton!==void 0&&(s.ref=t[23].playButton),e=new Et({props:s}),_e.push(()=>qe(e,"ref",o)),{c(){U(e.$$.fragment)},m(l,r){H(e,l,r),n=!0},p(l,r){const a={};r[1]&65536&&(a.tooltipContent=l[47]),r[2]&8192&&(a.disabled=l[75]),r[0]&67108864|r[1]&8|r[2]&8192|r[6]&1073741824&&(a.$$scope={dirty:r,ctx:l}),!i&&r[0]&8388608&&(i=!0,a.ref=l[23].playButton,Ue(()=>i=!1)),e.$set(a)},i(l){n||(d(e.$$.fragment,l),n=!0)},o(l){b(e.$$.fragment,l),n=!1},d(l){F(e,l)}}}function S3(t){let e,i,n;function o(l){t[175](l)}let s={isMobile:!1,isPlaying:t[34],click:t[85],disabled:t[75]};return t[26]!==void 0&&(s.ref=t[26]),e=new Yl({props:s}),_e.push(()=>qe(e,"ref",o)),{c(){U(e.$$.fragment)},m(l,r){H(e,l,r),n=!0},p(l,r){const a={};r[1]&8&&(a.isPlaying=l[34]),r[2]&8192&&(a.disabled=l[75]),!i&&r[0]&67108864&&(i=!0,a.ref=l[26],Ue(()=>i=!1)),e.$set(a)},i(l){n||(d(e.$$.fragment,l),n=!0)},o(l){b(e.$$.fragment,l),n=!1},d(l){F(e,l)}}}function Mr(t){let e,i,n;function o(l){t[177](l)}let s={disabled:!t[8],tooltipContent:j("tooltip_next"),$$slots:{default:[I3]},$$scope:{ctx:t}};return t[23].nextButton!==void 0&&(s.ref=t[23].nextButton),e=new Et({props:s}),_e.push(()=>qe(e,"ref",o)),{c(){U(e.$$.fragment)},m(l,r){H(e,l,r),n=!0},p(l,r){const a={};r[0]&256&&(a.disabled=!l[8]),r[0]&2304|r[6]&1073741824&&(a.$$scope={dirty:r,ctx:l}),!i&&r[0]&8388608&&(i=!0,a.ref=l[23].nextButton,Ue(()=>i=!1)),e.$set(a)},i(l){n||(d(e.$$.fragment,l),n=!0)},o(l){b(e.$$.fragment,l),n=!1},d(l){F(e,l)}}}function I3(t){let e,i;return e=new dl({props:{click:t[11],type:"next",disabled:!t[8],isMobile:!1}}),{c(){U(e.$$.fragment)},m(n,o){H(e,n,o),i=!0},p(n,o){const s={};o[0]&2048&&(s.click=n[11]),o[0]&256&&(s.disabled=!n[8]),e.$set(s)},i(n){i||(d(e.$$.fragment,n),i=!0)},o(n){b(e.$$.fragment,n),i=!1},d(n){F(e,n)}}}function A3(t){let e,i,n,o,s=t[121]&&E3(t),l=t[120]&&M3(t),r=t[119]&&B3(t);return{c(){s&&s.c(),e=D(),l&&l.c(),i=D(),r&&r.c(),n=ct()},m(a,c){s&&s.m(a,c),I(a,e,c),l&&l.m(a,c),I(a,i,c),r&&r.m(a,c),I(a,n,c),o=!0},p(a,c){a[121]&&s.p(a,c),a[120]&&l.p(a,c),a[119]&&r.p(a,c)},i(a){o||(d(s),d(l),d(r),o=!0)},o(a){b(s),b(l),b(r),o=!1},d(a){a&&(S(e),S(i),S(n)),s&&s.d(a),l&&l.d(a),r&&r.d(a)}}}function E3(t){let e,i,n;function o(l){t[178](l)}let s={disabled:t[73],tooltipContent:j("tooltip_interactive_go_back"),disabledTooltipContent:j(t[124]),$$slots:{default:[V3]},$$scope:{ctx:t}};return t[23].playPrevChapterButton!==void 0&&(s.ref=t[23].playPrevChapterButton),e=new Et({props:s}),_e.push(()=>qe(e,"ref",o)),{c(){U(e.$$.fragment)},m(l,r){H(e,l,r),n=!0},p(l,r){const a={};r[2]&2048&&(a.disabled=l[73]),r[0]&131072|r[2]&2048|r[6]&1073741824&&(a.$$scope={dirty:r,ctx:l}),!i&&r[0]&8388608&&(i=!0,a.ref=l[23].playPrevChapterButton,Ue(()=>i=!1)),e.$set(a)},i(l){n||(d(e.$$.fragment,l),n=!0)},o(l){b(e.$$.fragment,l),n=!1},d(l){F(e,l)}}}function V3(t){let e,i;return e=new Au({props:{disabled:t[73],click:t[17]}}),{c(){U(e.$$.fragment)},m(n,o){H(e,n,o),i=!0},p(n,o){const s={};o[2]&2048&&(s.disabled=n[73]),o[0]&131072&&(s.click=n[17]),e.$set(s)},i(n){i||(d(e.$$.fragment,n),i=!0)},o(n){b(e.$$.fragment,n),i=!1},d(n){F(e,n)}}}function M3(t){let e,i,n;function o(l){t[179](l)}let s={disabled:t[76],tooltipContent:j("tooltip_interactive_seek"),disabledTooltipContent:j(t[78]),$$slots:{default:[L3]},$$scope:{ctx:t}};return t[23].seekToInteractiveButton!==void 0&&(s.ref=t[23].seekToInteractiveButton),e=new Et({props:s}),_e.push(()=>qe(e,"ref",o)),{c(){U(e.$$.fragment)},m(l,r){H(e,l,r),n=!0},p(l,r){const a={};r[2]&16384&&(a.disabled=l[76]),r[2]&65536&&(a.disabledTooltipContent=j(l[78])),r[0]&32768|r[2]&16384|r[6]&1073741824&&(a.$$scope={dirty:r,ctx:l}),!i&&r[0]&8388608&&(i=!0,a.ref=l[23].seekToInteractiveButton,Ue(()=>i=!1)),e.$set(a)},i(l){n||(d(e.$$.fragment,l),n=!0)},o(l){b(e.$$.fragment,l),n=!1},d(l){F(e,l)}}}function L3(t){let e,i;return e=new Pu({props:{disabled:t[76],click:t[15]}}),{c(){U(e.$$.fragment)},m(n,o){H(e,n,o),i=!0},p(n,o){const s={};o[2]&16384&&(s.disabled=n[76]),o[0]&32768&&(s.click=n[15]),e.$set(s)},i(n){i||(d(e.$$.fragment,n),i=!0)},o(n){b(e.$$.fragment,n),i=!1},d(n){F(e,n)}}}function B3(t){let e,i,n;function o(l){t[180](l)}let s={tooltipContent:t[48],disabled:t[77],$$slots:{default:[R3]},$$scope:{ctx:t}};return t[23].interactiveGraphButton!==void 0&&(s.ref=t[23].interactiveGraphButton),e=new Et({props:s}),_e.push(()=>qe(e,"ref",o)),{c(){U(e.$$.fragment)},m(l,r){H(e,l,r),n=!0},p(l,r){const a={};r[1]&131072&&(a.tooltipContent=l[48]),r[2]&32768&&(a.disabled=l[77]),r[0]&65536|r[1]&1|r[2]&32768|r[6]&1073741824&&(a.$$scope={dirty:r,ctx:l}),!i&&r[0]&8388608&&(i=!0,a.ref=l[23].interactiveGraphButton,Ue(()=>i=!1)),e.$set(a)},i(l){n||(d(e.$$.fragment,l),n=!0)},o(l){b(e.$$.fragment,l),n=!1},d(l){F(e,l)}}}function R3(t){let e,i;return e=new Su({props:{click:t[16],graphIsOpened:t[31],disabled:t[77]}}),{c(){U(e.$$.fragment)},m(n,o){H(e,n,o),i=!0},p(n,o){const s={};o[0]&65536&&(s.click=n[16]),o[1]&1&&(s.graphIsOpened=n[31]),o[2]&32768&&(s.disabled=n[77]),e.$set(s)},i(n){i||(d(e.$$.fragment,n),i=!0)},o(n){b(e.$$.fragment,n),i=!1},d(n){F(e,n)}}}function Lr(t){let e,i,n;function o(l){t[181](l)}let s={tooltipContent:t[50],$$slots:{default:[N3]},$$scope:{ctx:t}};return t[23].liveButton!==void 0&&(s.ref=t[23].liveButton),e=new Et({props:s}),_e.push(()=>qe(e,"ref",o)),{c(){U(e.$$.fragment)},m(l,r){H(e,l,r),n=!0},p(l,r){const a={};r[1]&524288&&(a.tooltipContent=l[50]),r[0]&2097152|r[1]&524288|r[6]&1073741824&&(a.$$scope={dirty:r,ctx:l}),!i&&r[0]&8388608&&(i=!0,a.ref=l[23].liveButton,Ue(()=>i=!1)),e.$set(a)},i(l){n||(d(e.$$.fragment,l),n=!0)},o(l){b(e.$$.fragment,l),n=!1},d(l){F(e,l)}}}function N3(t){let e,i;return e=new ku({props:{isActiveLive:t[21],isMobile:!1,ariaLabel:t[50]}}),{c(){U(e.$$.fragment)},m(n,o){H(e,n,o),i=!0},p(n,o){const s={};o[0]&2097152&&(s.isActiveLive=n[21]),o[1]&524288&&(s.ariaLabel=n[50]),e.$set(s)},i(n){i||(d(e.$$.fragment,n),i=!0)},o(n){b(e.$$.fragment,n),i=!1},d(n){F(e,n)}}}function Br(t){let e,i,n;function o(l){t[182](l)}let s={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&&(s.ref=t[23].time),e=new du({props:s}),_e.push(()=>qe(e,"ref",o)),{c(){U(e.$$.fragment)},m(l,r){H(e,l,r),n=!0},p(l,r){const a={};r[1]&16777216&&(a.showDuration=l[55]),r[0]&16|r[2]&393216&&(a.position=l[4]?l[79]:l[80]),r[0]&16|r[2]&1572864&&(a.duration=l[4]?l[81]:l[82]),!i&&r[0]&8388608&&(i=!0,a.ref=l[23].time,Ue(()=>i=!1)),e.$set(a)},i(l){n||(d(e.$$.fragment,l),n=!0)},o(l){b(e.$$.fragment,l),n=!1},d(l){F(e,l)}}}function Rr(t){let e,i;return e=new Tu({props:{position:t[80],duration:t[82],timeCodes:t[101]}}),{c(){U(e.$$.fragment)},m(n,o){H(e,n,o),i=!0},p(n,o){const s={};o[2]&262144&&(s.position=n[80]),o[2]&1048576&&(s.duration=n[82]),e.$set(s)},i(n){i||(d(e.$$.fragment,n),i=!0)},o(n){b(e.$$.fragment,n),i=!1},d(n){F(e,n)}}}function D3(t){let e,i,n=t[20]&&Rr(t);return{c(){n&&n.c(),e=ct()},m(o,s){n&&n.m(o,s),I(o,e,s),i=!0},p(o,s){o[20]?n?(n.p(o,s),s[0]&1048576&&d(n,1)):(n=Rr(o),n.c(),d(n,1),n.m(e.parentNode,e)):n&&(ce(),b(n,1,1,()=>{n=null}),fe())},i(o){i||(d(n),i=!0)},o(o){b(n),i=!1},d(o){o&&S(e),n&&n.d(o)}}}function z3(t){let e,i;return e=new Eu({props:{iconUrl:t[209],ariaLabel:t[210]??t[213],testId:t[211],onClick:t[212]}}),{c(){U(e.$$.fragment)},m(n,o){H(e,n,o),i=!0},p(n,o){const s={};o[0]&268435456&&(s.iconUrl=n[209]),o[0]&268435456&&(s.ariaLabel=n[210]??n[213]),o[0]&268435456&&(s.testId=n[211]),o[0]&268435456&&(s.onClick=n[212]),e.$set(s)},i(n){i||(d(e.$$.fragment,n),i=!0)},o(n){b(e.$$.fragment,n),i=!1},d(n){F(e,n)}}}function Nr(t){let e,i;return e=new Et({props:{tooltipContent:t[213],width:40,$$slots:{default:[z3]},$$scope:{ctx:t}}}),{c(){U(e.$$.fragment)},m(n,o){H(e,n,o),i=!0},p(n,o){const s={};o[0]&268435456&&(s.tooltipContent=n[213]),o[0]&268435456|o[6]&1073741824&&(s.$$scope={dirty:o,ctx:n}),e.$set(s)},i(n){i||(d(e.$$.fragment,n),i=!0)},o(n){b(e.$$.fragment,n),i=!1},d(n){F(e,n)}}}function Dr(t){let e,i,n;function o(l){t[185](l)}let s={disabled:!t[6],tooltipContent:t[51],$$slots:{default:[O3]},$$scope:{ctx:t}};return t[23].vkLogo!==void 0&&(s.ref=t[23].vkLogo),e=new Et({props:s}),_e.push(()=>qe(e,"ref",o)),{c(){U(e.$$.fragment)},m(l,r){H(e,l,r),n=!0},p(l,r){const a={};r[0]&64&&(a.disabled=!l[6]),r[1]&1048576&&(a.tooltipContent=l[51]),r[0]&192|r[6]&1073741824&&(a.$$scope={dirty:r,ctx:l}),!i&&r[0]&8388608&&(i=!0,a.ref=l[23].vkLogo,Ue(()=>i=!1)),e.$set(a)},i(l){n||(d(e.$$.fragment,l),n=!0)},o(l){b(e.$$.fragment,l),n=!1},d(l){F(e,l)}}}function O3(t){let e,i;return e=new _u({props:{click:t[86],targetUrl:t[7],logoClickable:t[6]}}),{c(){U(e.$$.fragment)},m(n,o){H(e,n,o),i=!0},p(n,o){const s={};o[0]&128&&(s.targetUrl=n[7]),o[0]&64&&(s.logoClickable=n[6]),e.$set(s)},i(n){i||(d(e.$$.fragment,n),i=!0)},o(n){b(e.$$.fragment,n),i=!1},d(n){F(e,n)}}}function H3(t){let e,i;return e=new $2({props:{click:t[127]}}),{c(){U(e.$$.fragment)},m(n,o){H(e,n,o),i=!0},p:q,i(n){i||(d(e.$$.fragment,n),i=!0)},o(n){b(e.$$.fragment,n),i=!1},d(n){F(e,n)}}}function zr(t){let e,i,n;function o(l){t[187](l)}let s={tooltipContent:t[52],$$slots:{default:[F3]},$$scope:{ctx:t}};return t[23].subtitles!==void 0&&(s.ref=t[23].subtitles),e=new Et({props:s}),_e.push(()=>qe(e,"ref",o)),{c(){U(e.$$.fragment)},m(l,r){H(e,l,r),n=!0},p(l,r){const a={};r[1]&2097152&&(a.tooltipContent=l[52]),r[0]&262144|r[6]&1073741824&&(a.$$scope={dirty:r,ctx:l}),!i&&r[0]&8388608&&(i=!0,a.ref=l[23].subtitles,Ue(()=>i=!1)),e.$set(a)},i(l){n||(d(e.$$.fragment,l),n=!0)},o(l){b(e.$$.fragment,l),n=!1},d(l){F(e,l)}}}function F3(t){let e,i;return e=new c2({props:{isSubtitlesEnabled:t[18],click:t[87]}}),{c(){U(e.$$.fragment)},m(n,o){H(e,n,o),i=!0},p(n,o){const s={};o[0]&262144&&(s.isSubtitlesEnabled=n[18]),e.$set(s)},i(n){i||(d(e.$$.fragment,n),i=!0)},o(n){b(e.$$.fragment,n),i=!1},d(n){F(e,n)}}}function Or(t){let e,i,n,o;function s(r){t[188](r)}let l={supportLink:t[10],playerControlsHeight:t[46]?.clientHeight,returnFocus:t[14]};return t[24]!==void 0&&(l.ref=t[24]),i=new fu({props:l}),_e.push(()=>qe(i,"ref",s)),{c(){e=A("div"),U(i.$$.fragment),u(e,"class","settings-menu v-st0uzk")},m(r,a){I(r,e,a),H(i,e,null),o=!0},p(r,a){const c={};a[0]&1024&&(c.supportLink=r[10]),a[1]&32768&&(c.playerControlsHeight=r[46]?.clientHeight),a[0]&16384&&(c.returnFocus=r[14]),!n&&a[0]&16777216&&(n=!0,c.ref=r[24],Ue(()=>n=!1)),i.$set(c)},i(r){o||(d(i.$$.fragment,r),o=!0)},o(r){b(i.$$.fragment,r),o=!1},d(r){r&&S(e),F(i)}}}function Hr(t){let e,i,n;function o(l){t[190](l)}let s={tooltipContent:t[27]?void 0:j("tooltip_settings_off"),$$slots:{default:[U3]},$$scope:{ctx:t}};return t[23].settings!==void 0&&(s.ref=t[23].settings),e=new Et({props:s}),_e.push(()=>qe(e,"ref",o)),{c(){U(e.$$.fragment)},m(l,r){H(e,l,r),n=!0},p(l,r){const a={};r[0]&134217728&&(a.tooltipContent=l[27]?void 0:j("tooltip_settings_off")),r[0]&33554432|r[6]&1073741824&&(a.$$scope={dirty:r,ctx:l}),!i&&r[0]&8388608&&(i=!0,a.ref=l[23].settings,Ue(()=>i=!1)),e.$set(a)},i(l){n||(d(e.$$.fragment,l),n=!0)},o(l){b(e.$$.fragment,l),n=!1},d(l){F(e,l)}}}function U3(t){let e,i,n;function o(l){t[189](l)}let s={};return t[25]!==void 0&&(s.ref=t[25]),e=new Kl({props:s}),_e.push(()=>qe(e,"ref",o)),{c(){U(e.$$.fragment)},m(l,r){H(e,l,r),n=!0},p(l,r){const a={};!i&&r[0]&33554432&&(i=!0,a.ref=l[25],Ue(()=>i=!1)),e.$set(a)},i(l){n||(d(e.$$.fragment,l),n=!0)},o(l){b(e.$$.fragment,l),n=!1},d(l){F(e,l)}}}function q3(t){let e,i,n;function o(l){t[191](l)}let s={className:t[41]?"":"out-of-view",tooltipContent:t[49],$$slots:{default:[Z3]},$$scope:{ctx:t}};return t[23].context!==void 0&&(s.ref=t[23].context),e=new Et({props:s}),_e.push(()=>qe(e,"ref",o)),{c(){U(e.$$.fragment)},m(l,r){H(e,l,r),n=!0},p(l,r){const a={};r[1]&1024&&(a.className=l[41]?"":"out-of-view"),r[1]&262144&&(a.tooltipContent=l[49]),r[1]&262144|r[6]&1073741824&&(a.$$scope={dirty:r,ctx:l}),!i&&r[0]&8388608&&(i=!0,a.ref=l[23].context,Ue(()=>i=!1)),e.$set(a)},i(l){n||(d(e.$$.fragment,l),n=!0)},o(l){b(e.$$.fragment,l),n=!1},d(l){F(e,l)}}}function Z3(t){let e,i;return e=new _3({props:{ariaLabel:t[49]}}),{c(){U(e.$$.fragment)},m(n,o){H(e,n,o),i=!0},p(n,o){const s={};o[1]&262144&&(s.ariaLabel=n[49]),e.$set(s)},i(n){i||(d(e.$$.fragment,n),i=!0)},o(n){b(e.$$.fragment,n),i=!1},d(n){F(e,n)}}}function Fr(t){let e,i,n;function o(l){t[192](l)}let s={tooltipContent:t[53],$$slots:{default:[W3]},$$scope:{ctx:t}};return t[23].fullscreen!==void 0&&(s.ref=t[23].fullscreen),e=new Et({props:s}),_e.push(()=>qe(e,"ref",o)),{c(){U(e.$$.fragment)},m(l,r){H(e,l,r),n=!0},p(l,r){const a={};r[1]&4194304&&(a.tooltipContent=l[53]),r[0]&1073750016|r[6]&1073741824&&(a.$$scope={dirty:r,ctx:l}),!i&&r[0]&8388608&&(i=!0,a.ref=l[23].fullscreen,Ue(()=>i=!1)),e.$set(a)},i(l){n||(d(e.$$.fragment,l),n=!0)},o(l){b(e.$$.fragment,l),n=!1},d(l){F(e,l)}}}function W3(t){let e,i;return e=new gu({props:{click:t[13],isFullscreen:t[30]}}),{c(){U(e.$$.fragment)},m(n,o){H(e,n,o),i=!0},p(n,o){const s={};o[0]&8192&&(s.click=n[13]),o[0]&1073741824&&(s.isFullscreen=n[30]),e.$set(s)},i(n){i||(d(e.$$.fragment,n),i=!0)},o(n){b(e.$$.fragment,n),i=!1},d(n){F(e,n)}}}function Ur(t){let e,i,n;function o(l){t[193](l)}let s={tooltipContent:t[54],$$slots:{default:[K3]},$$scope:{ctx:t}};return t[23].chromecast!==void 0&&(s.ref=t[23].chromecast),e=new Et({props:s}),_e.push(()=>qe(e,"ref",o)),{c(){U(e.$$.fragment)},m(l,r){H(e,l,r),n=!0},p(l,r){const a={};r[1]&8388608&&(a.tooltipContent=l[54]),r[0]&536870912|r[6]&1073741824&&(a.$$scope={dirty:r,ctx:l}),!i&&r[0]&8388608&&(i=!0,a.ref=l[23].chromecast,Ue(()=>i=!1)),e.$set(a)},i(l){n||(d(e.$$.fragment,l),n=!0)},o(l){b(e.$$.fragment,l),n=!1},d(l){F(e,l)}}}function K3(t){let e,i;return e=new vu({props:{isMobile:!1,state:t[29],click:t[126]}}),{c(){U(e.$$.fragment)},m(n,o){H(e,n,o),i=!0},p(n,o){const s={};o[0]&536870912&&(s.state=n[29]),e.$set(s)},i(n){i||(d(e.$$.fragment,n),i=!0)},o(n){b(e.$$.fragment,n),i=!1},d(n){F(e,n)}}}function j3(t){let e,i,n;function o(l){t[196](l)}let s={};return t[23].interactiveTimeIndicator!==void 0&&(s.ref=t[23].interactiveTimeIndicator),e=new Bu({props:s}),_e.push(()=>qe(e,"ref",o)),{c(){U(e.$$.fragment)},m(l,r){H(e,l,r),n=!0},p(l,r){const a={};!i&&r[0]&8388608&&(i=!0,a.ref=l[23].interactiveTimeIndicator,Ue(()=>i=!1)),e.$set(a)},i(l){n||(d(e.$$.fragment,l),n=!0)},o(l){b(e.$$.fragment,l),n=!1},d(l){F(e,l)}}}function G3(t){let e,i,n,o,s,l,r,a,c,f,p,h,v,k,_,P,C,T,y,M,oe,Y,R,ee,Q,w,$,X,z,W;i=new Cu({props:{isHidden:!t[45],isAds:t[4],canRewindLive:t[5],isRewindableLive:t[32]}});let B=t[38]&&Ar(t),J=t[35]&&Er(t),E=t[36]&&Vr(t),O=t[37]&&Mr(t),Ce=t[117]&&A3(t),ze=!t[4]&&t[33]&&Lr(t),Ee=t[19]&&Br(t);function Ve(se){t[183](se)}let Pe={className:"w-max",disabled:!t[20],tooltipContent:j("tooltip_episodes"),$$slots:{default:[D3]},$$scope:{ctx:t}};t[23].episodes!==void 0&&(Pe.ref=t[23].episodes),v=new Et({props:Pe}),_e.push(()=>qe(v,"ref",Ve));let me=Ut(t[28]),Z=[];for(let se=0;se<me.length;se+=1)Z[se]=Nr(Ir(t,me,se));const de=se=>b(Z[se],1,1,()=>{Z[se]=null});let Se=t[43]&&!t[4]&&Dr(t);function Fe(se){t[186](se)}let je={$$slots:{default:[H3]},$$scope:{ctx:t}};t[23].volume!==void 0&&(je.ref=t[23].volume),M=new Et({props:je}),_e.push(()=>qe(M,"ref",Fe));let re=t[40]&&zr(t),we=!t[83]&&!t[4]&&Or(t),Me=t[42]&&!t[4]&&Hr(t),We=t[84].features.contextMenuButton&&q3(t),ie=t[44]&&Fr(t),G=t[39]&&Ur(t),ye=t[122]&&j3(t);return{c(){e=A("div"),U(i.$$.fragment),n=D(),o=A("div"),s=A("div"),B&&B.c(),l=D(),J&&J.c(),r=D(),E&&E.c(),a=D(),O&&O.c(),c=D(),Ce&&Ce.c(),f=D(),ze&&ze.c(),p=D(),Ee&&Ee.c(),h=D(),U(v.$$.fragment),P=D(),C=A("div");for(let se=0;se<Z.length;se+=1)Z[se].c();T=D(),Se&&Se.c(),y=D(),U(M.$$.fragment),Y=D(),re&&re.c(),R=D(),we&&we.c(),ee=D(),Me&&Me.c(),Q=D(),We&&We.c(),w=D(),ie&&ie.c(),$=D(),G&&G.c(),X=D(),ye&&ye.c(),z=ct(),u(s,"class","controls-left v-st0uzk"),Po(()=>t[184].call(s)),u(C,"class","controls-right v-st0uzk"),u(o,"class","controls v-st0uzk"),u(e,"class","wrapper-bottom v-st0uzk"),V(e,"hidden",t[1]),V(e,"controls-hidden",!t[3]),V(e,"no-smooth",t[2])},m(se,ve){I(se,e,ve),H(i,e,null),m(e,n),m(e,o),m(o,s),B&&B.m(s,null),m(s,l),J&&J.m(s,null),m(s,r),E&&E.m(s,null),m(s,a),O&&O.m(s,null),m(s,c),Ce&&Ce.m(s,null),m(s,f),ze&&ze.m(s,null),m(s,p),Ee&&Ee.m(s,null),m(s,h),H(v,s,null),_=Dl(s,t[184].bind(s)),m(o,P),m(o,C);for(let Oe=0;Oe<Z.length;Oe+=1)Z[Oe]&&Z[Oe].m(C,null);m(C,T),Se&&Se.m(C,null),m(C,y),H(M,C,null),m(C,Y),re&&re.m(C,null),m(C,R),we&&we.m(C,null),m(C,ee),Me&&Me.m(C,null),m(C,Q),We&&We.m(C,null),m(C,w),ie&&ie.m(C,null),m(C,$),G&&G.m(C,null),t[194](o),t[195](e),I(se,X,ve),ye&&ye.m(se,ve),I(se,z,ve),W=!0},p(se,ve){const Oe={};ve[1]&16384&&(Oe.isHidden=!se[45]),ve[0]&16&&(Oe.isAds=se[4]),ve[0]&32&&(Oe.canRewindLive=se[5]),ve[1]&2&&(Oe.isRewindableLive=se[32]),i.$set(Oe),se[38]?B?(B.p(se,ve),ve[1]&128&&d(B,1)):(B=Ar(se),B.c(),d(B,1),B.m(s,l)):B&&(ce(),b(B,1,1,()=>{B=null}),fe()),se[35]?J?(J.p(se,ve),ve[1]&16&&d(J,1)):(J=Er(se),J.c(),d(J,1),J.m(s,r)):J&&(ce(),b(J,1,1,()=>{J=null}),fe()),se[36]?E?(E.p(se,ve),ve[1]&32&&d(E,1)):(E=Vr(se),E.c(),d(E,1),E.m(s,a)):E&&(ce(),b(E,1,1,()=>{E=null}),fe()),se[37]?O?(O.p(se,ve),ve[1]&64&&d(O,1)):(O=Mr(se),O.c(),d(O,1),O.m(s,c)):O&&(ce(),b(O,1,1,()=>{O=null}),fe()),se[117]&&Ce.p(se,ve),!se[4]&&se[33]?ze?(ze.p(se,ve),ve[0]&16|ve[1]&4&&d(ze,1)):(ze=Lr(se),ze.c(),d(ze,1),ze.m(s,p)):ze&&(ce(),b(ze,1,1,()=>{ze=null}),fe()),se[19]?Ee?(Ee.p(se,ve),ve[0]&524288&&d(Ee,1)):(Ee=Br(se),Ee.c(),d(Ee,1),Ee.m(s,h)):Ee&&(ce(),b(Ee,1,1,()=>{Ee=null}),fe());const $e={};if(ve[0]&1048576&&($e.disabled=!se[20]),ve[0]&1048576|ve[2]&1310720|ve[6]&1073741824&&($e.$$scope={dirty:ve,ctx:se}),!k&&ve[0]&8388608&&(k=!0,$e.ref=se[23].episodes,Ue(()=>k=!1)),v.$set($e),ve[0]&268435456){me=Ut(se[28]);let Be;for(Be=0;Be<me.length;Be+=1){const ae=Ir(se,me,Be);Z[Be]?(Z[Be].p(ae,ve),d(Z[Be],1)):(Z[Be]=Nr(ae),Z[Be].c(),d(Z[Be],1),Z[Be].m(C,T))}for(ce(),Be=me.length;Be<Z.length;Be+=1)de(Be);fe()}se[43]&&!se[4]?Se?(Se.p(se,ve),ve[0]&16|ve[1]&4096&&d(Se,1)):(Se=Dr(se),Se.c(),d(Se,1),Se.m(C,y)):Se&&(ce(),b(Se,1,1,()=>{Se=null}),fe());const ot={};ve[6]&1073741824&&(ot.$$scope={dirty:ve,ctx:se}),!oe&&ve[0]&8388608&&(oe=!0,ot.ref=se[23].volume,Ue(()=>oe=!1)),M.$set(ot),se[40]?re?(re.p(se,ve),ve[1]&512&&d(re,1)):(re=zr(se),re.c(),d(re,1),re.m(C,R)):re&&(ce(),b(re,1,1,()=>{re=null}),fe()),!se[83]&&!se[4]?we?(we.p(se,ve),ve[0]&16|ve[2]&2097152&&d(we,1)):(we=Or(se),we.c(),d(we,1),we.m(C,ee)):we&&(ce(),b(we,1,1,()=>{we=null}),fe()),se[42]&&!se[4]?Me?(Me.p(se,ve),ve[0]&16|ve[1]&2048&&d(Me,1)):(Me=Hr(se),Me.c(),d(Me,1),Me.m(C,Q)):Me&&(ce(),b(Me,1,1,()=>{Me=null}),fe()),se[84].features.contextMenuButton&&We.p(se,ve),se[44]?ie?(ie.p(se,ve),ve[1]&8192&&d(ie,1)):(ie=Fr(se),ie.c(),d(ie,1),ie.m(C,$)):ie&&(ce(),b(ie,1,1,()=>{ie=null}),fe()),se[39]?G?(G.p(se,ve),ve[1]&256&&d(G,1)):(G=Ur(se),G.c(),d(G,1),G.m(C,null)):G&&(ce(),b(G,1,1,()=>{G=null}),fe()),(!W||ve[0]&2)&&V(e,"hidden",se[1]),(!W||ve[0]&8)&&V(e,"controls-hidden",!se[3]),(!W||ve[0]&4)&&V(e,"no-smooth",se[2]),se[122]&&ye.p(se,ve)},i(se){if(!W){d(i.$$.fragment,se),d(B),d(J),d(E),d(O),d(Ce),d(ze),d(Ee),d(v.$$.fragment,se);for(let ve=0;ve<me.length;ve+=1)d(Z[ve]);d(Se),d(M.$$.fragment,se),d(re),d(we),d(Me),d(We),d(ie),d(G),d(ye),W=!0}},o(se){b(i.$$.fragment,se),b(B),b(J),b(E),b(O),b(Ce),b(ze),b(Ee),b(v.$$.fragment,se),Z=Z.filter(Boolean);for(let ve=0;ve<Z.length;ve+=1)b(Z[ve]);b(Se),b(M.$$.fragment,se),b(re),b(we),b(Me),b(We),b(ie),b(G),b(ye),W=!1},d(se){se&&(S(e),S(X),S(z)),F(i),B&&B.d(),J&&J.d(),E&&E.d(),O&&O.d(),Ce&&Ce.d(),ze&&ze.d(),Ee&&Ee.d(),F(v),_(),Tn(Z,se),Se&&Se.d(),F(M),re&&re.d(),we&&we.d(),Me&&Me.d(),We&&We.d(),ie&&ie.d(),G&&G.d(),t[194](null),t[195](null),ye&&ye.d(se)}}}function Y3(t,e,i){let n,o,s,l,r,a,c,f,p,h,v,k,_,P,C,T,y,M,oe,Y,R,ee,Q,w,$,X,z,W,B,J,E,O,Ce=q,ze=()=>(Ce(),Ce=Jt(Q,K=>i(144,O=K)),Q),Ee,Ve=q,Pe=()=>(Ve(),Ve=Jt(ee,K=>i(145,Ee=K)),ee),me,Z=q,de=()=>(Z(),Z=Jt(R,K=>i(146,me=K)),R),Se,Fe=q,je=()=>(Fe(),Fe=Jt(Y,K=>i(147,Se=K)),Y),re,we=q,Me=()=>(we(),we=Jt(oe,K=>i(148,re=K)),oe),We,ie=q,G=()=>(ie(),ie=Jt(M,K=>i(149,We=K)),M),ye,se=q,ve=()=>(se(),se=Jt(y,K=>i(150,ye=K)),y),Oe,$e=q,ot=()=>($e(),$e=Jt(T,K=>i(151,Oe=K)),T),Be,ae=q,lt=()=>(ae(),ae=Jt(C,K=>i(152,Be=K)),C),_t,at=q,ht=()=>(at(),at=Jt(P,K=>i(153,_t=K)),P),Ct,Le=q,qt=()=>(Le(),Le=Jt(_,K=>i(154,Ct=K)),_),ue,ft=q,vt=()=>(ft(),ft=Jt(k,K=>i(155,ue=K)),k),Ze,et=q,gt=()=>(et(),et=Jt(v,K=>i(156,Ze=K)),v),kt,bi=q,_i=()=>(bi(),bi=Jt(h,K=>i(157,kt=K)),h),vi,qi=q,Ji=()=>(qi(),qi=Jt(p,K=>i(158,vi=K)),p),oi,li=q,ki=()=>(li(),li=Jt(f,K=>i(159,oi=K)),f),Zt,si=q,Zi=()=>(si(),si=Jt(c,K=>i(160,Zt=K)),c),wi,yi,ri,Ci,ai,Ti,Pi,wt,Bt,Wt,ui,Vt,ci,Kt,ei,Tt,Pt,Rt,jt,fi,nn,Wi,Gt;t.$$.on_destroy.push(()=>Ce()),t.$$.on_destroy.push(()=>Ve()),t.$$.on_destroy.push(()=>Z()),t.$$.on_destroy.push(()=>Fe()),t.$$.on_destroy.push(()=>we()),t.$$.on_destroy.push(()=>ie()),t.$$.on_destroy.push(()=>se()),t.$$.on_destroy.push(()=>$e()),t.$$.on_destroy.push(()=>ae()),t.$$.on_destroy.push(()=>at()),t.$$.on_destroy.push(()=>Le()),t.$$.on_destroy.push(()=>ft()),t.$$.on_destroy.push(()=>et()),t.$$.on_destroy.push(()=>bi()),t.$$.on_destroy.push(()=>qi()),t.$$.on_destroy.push(()=>li()),t.$$.on_destroy.push(()=>si());let{bottomHidden:ti}=e,{bottomNoSmooth:Si}=e,{showControls:Di}=e,{controlsElementRef:Nt=void 0}=e,{isAds:bt=!1}=e,{canRewindLive:Ii}=e,{logoClickable:Ki}=e,{logoHidden:ii}=e,{logoTargetUrl:ji=""}=e,{showNextPrevButtons:di}=e,{nextButtonActive:xi}=e,{prevButtonActive:Gi}=e,{isOneVideoPlaylist:$i=!1}=e,{supportLink:zi}=e,{customFullscreenSupported:Ai=!0}=e,{playNextVideo:Dt}=e,{playPrevVideo:Yt}=e,{repeatPlaylist:mi}=e,{toggleFullscreen:Oi}=e,{returnFocus:Hi}=e,{seekToInteractive:pi}=e,{toggleGraph:Ei}=e,{playPrevChapter:Vi}=e;const He=pt(),Fi=Ao(),Mt=cn(),Ae=He.actions.internal.toggleMuted,Mi=He.actions.internal.togglePlay,Yi=He.actions.internal.pause,Ui=He.actions.internal.toggleSubtitle,Li=He.callbacks?.onAudioDoesNotExistHint,en=He.callbacks?.onAudioDisabledHint,Bi=He.state.duration$;N(t,Bi,K=>i(82,Wi=K));const Qi=He.state.positionWithScrubbing$;N(t,Qi,K=>i(80,fi=K));const zt=He.state.playbackState$;N(t,zt,K=>i(161,ri=K));const Xi=He.state.chromecastConnected$;N(t,Xi,K=>i(83,Gt=K));const ni=He.state.isAudioAvailable$;N(t,ni,K=>i(197,w=K));const ne=He.state.isAudioDisabled,tt=He.state.isEnded$;N(t,tt,K=>i(169,Kt=K));const Ot=He.state.isLive$;N(t,Ot,K=>i(33,wt=K));const Qt=He.state.isActiveLive$;N(t,Qt,K=>i(163,Ti=K));const Ri=He.state.isRewindableLive$;N(t,Ri,K=>i(32,Pi=K));const Ni=He.ui.isPictureInPictureActive$;N(t,Ni,K=>i(165,Wt=K));const fn=He.ui.pictureInPictureType$;N(t,fn,K=>i(164,Bt=K));const dn=He.ui.settingsMenuVisible;N(t,dn,K=>i(27,z=K));const sn=He.ui.settingsMenuOpenedByKeyboard;N(t,sn,K=>i(140,X=K));const St=He.ui.controls,Pn=He.actions.internal.getVideoEpisodes(),Sn=He.state.chromecastState$;N(t,Sn,K=>i(29,wi=K));const mn=He.state.availableSubtitlesList$;N(t,mn,K=>i(168,ci=K));const gn=He.state.currentSubtitle$;N(t,gn,K=>i(170,ei=K));const rn=St.disabledControls$;N(t,rn,K=>i(172,Pt=K));const on=He.ui.contextMenu.visible$;N(t,on,K=>i(162,Ci=K));const te=He.ui.contextMenu.showContextMenuBtn$;N(t,te,K=>i(166,ui=K));const dt=He.ui.contextMenu.openedByBtnKeyboard$;N(t,dt,K=>i(167,Vt=K));const bn=He.ui.startedByKeyboard$;N(t,bn,K=>i(139,$=K));const In=He.ads.duration;N(t,In,K=>i(81,nn=K));const An=He.ads.position;N(t,An,K=>i(79,jt=K));const qn=He.ads.playbackState;N(t,qn,K=>i(171,Tt=K));const Zn=He.ui.isFullscreen;N(t,Zn,K=>i(30,yi=K));const Wn=He.ui.playerSize;N(t,Wn,K=>i(142,B=K));const Kn=He.ui.currentGridType$;N(t,Kn,K=>i(143,J=K));const jn=He.ui.additionalButtons$;N(t,jn,K=>i(28,E=K));const eo=He.actions.internal.getVideoElement,x=He.actions.internal.replayInteractive,an=He.state.isInteractive,to=He.state.isInteractiveTime$;N(t,to,K=>i(141,W=K));const io=He.state.showInteractiveGraph,Gn=He.state.showSeekToInteractive,fo=He.state.showPlayPrevChapter,En=He.state.showInteractiveTimeIndicator,Yn=He.state.graphIsOpened$;N(t,Yn,K=>i(31,ai=K));const mo=He.state.playPrevChapterDisabledTooltip,po=Fi.seekToInteractiveDisabledTooltip$;N(t,po,K=>i(78,Rt=K));const Eo=()=>He.actions.internal.toggleChromecast();let Bn,no,oo,ho,lo,st,g,le,ke,Re,Qe,Ht,Xt,It,un,_n,Vo,go,Xl,Jl,xl,pl="";const Gu=(K,gl)=>{if(!K){i(50,pl=j("tooltip_live"));return}gl===Ft.PAUSED&&i(50,pl=j("tooltip_play"))};let $l,es,ts,is,Ko;const Ge={};let vn,Mo,hl,ns;const Yu=cl(Mu,P1,{leading:!1});let jo,Go,Yo;function Qu(){zo({isAudioDisabled:ne,audioDisabledHintCallback:en,isAudioAvailable:w,audioIsNotExistHintCallback:Li})&&Ae()}const Xu=an?x:$i?Mi:mi;function Ju(K){t.$$.not_equal(Ge.prevButton,K)&&(Ge.prevButton=K,i(23,Ge))}function xu(K){t.$$.not_equal(Ge.replayButton,K)&&(Ge.replayButton=K,i(23,Ge))}function $u(K){Yo=K,i(26,Yo)}function ec(K){t.$$.not_equal(Ge.playButton,K)&&(Ge.playButton=K,i(23,Ge))}function tc(K){t.$$.not_equal(Ge.nextButton,K)&&(Ge.nextButton=K,i(23,Ge))}function ic(K){t.$$.not_equal(Ge.playPrevChapterButton,K)&&(Ge.playPrevChapterButton=K,i(23,Ge))}function nc(K){t.$$.not_equal(Ge.seekToInteractiveButton,K)&&(Ge.seekToInteractiveButton=K,i(23,Ge))}function oc(K){t.$$.not_equal(Ge.interactiveGraphButton,K)&&(Ge.interactiveGraphButton=K,i(23,Ge))}function lc(K){t.$$.not_equal(Ge.liveButton,K)&&(Ge.liveButton=K,i(23,Ge))}function sc(K){t.$$.not_equal(Ge.time,K)&&(Ge.time=K,i(23,Ge))}function rc(K){t.$$.not_equal(Ge.episodes,K)&&(Ge.episodes=K,i(23,Ge))}function ac(){Ko=this.clientWidth,i(22,Ko)}function uc(K){t.$$.not_equal(Ge.vkLogo,K)&&(Ge.vkLogo=K,i(23,Ge))}function cc(K){t.$$.not_equal(Ge.volume,K)&&(Ge.volume=K,i(23,Ge))}function fc(K){t.$$.not_equal(Ge.subtitles,K)&&(Ge.subtitles=K,i(23,Ge))}function dc(K){jo=K,i(24,jo)}function mc(K){Go=K,i(25,Go)}function pc(K){t.$$.not_equal(Ge.settings,K)&&(Ge.settings=K,i(23,Ge))}function hc(K){t.$$.not_equal(Ge.context,K)&&(Ge.context=K,i(23,Ge))}function gc(K){t.$$.not_equal(Ge.fullscreen,K)&&(Ge.fullscreen=K,i(23,Ge))}function bc(K){t.$$.not_equal(Ge.chromecast,K)&&(Ge.chromecast=K,i(23,Ge))}function _c(K){_e[K?"unshift":"push"](()=>{Vo=K,i(46,Vo)})}function vc(K){_e[K?"unshift":"push"](()=>{Nt=K,i(0,Nt)})}function kc(K){t.$$.not_equal(Ge.interactiveTimeIndicator,K)&&(Ge.interactiveTimeIndicator=K,i(23,Ge))}return t.$$set=K=>{"bottomHidden"in K&&i(1,ti=K.bottomHidden),"bottomNoSmooth"in K&&i(2,Si=K.bottomNoSmooth),"showControls"in K&&i(3,Di=K.showControls),"controlsElementRef"in K&&i(0,Nt=K.controlsElementRef),"isAds"in K&&i(4,bt=K.isAds),"canRewindLive"in K&&i(5,Ii=K.canRewindLive),"logoClickable"in K&&i(6,Ki=K.logoClickable),"logoHidden"in K&&i(129,ii=K.logoHidden),"logoTargetUrl"in K&&i(7,ji=K.logoTargetUrl),"showNextPrevButtons"in K&&i(130,di=K.showNextPrevButtons),"nextButtonActive"in K&&i(8,xi=K.nextButtonActive),"prevButtonActive"in K&&i(9,Gi=K.prevButtonActive),"isOneVideoPlaylist"in K&&i(131,$i=K.isOneVideoPlaylist),"supportLink"in K&&i(10,zi=K.supportLink),"customFullscreenSupported"in K&&i(132,Ai=K.customFullscreenSupported),"playNextVideo"in K&&i(11,Dt=K.playNextVideo),"playPrevVideo"in K&&i(12,Yt=K.playPrevVideo),"repeatPlaylist"in K&&i(133,mi=K.repeatPlaylist),"toggleFullscreen"in K&&i(13,Oi=K.toggleFullscreen),"returnFocus"in K&&i(14,Hi=K.returnFocus),"seekToInteractive"in K&&i(15,pi=K.seekToInteractive),"toggleGraph"in K&&i(16,Ei=K.toggleGraph),"playPrevChapter"in K&&i(17,Vi=K.playPrevChapter)},t.$$.update=()=>{if(t.$$.dirty[5]&131072&&i(138,n=Pt.has(rt.EPISODE_BUTTON)),t.$$.dirty[5]&131072&&i(77,o=Pt.has(rt.GRAPH_BUTTON)),t.$$.dirty[5]&131072&&i(76,s=Pt.has(rt.SEEK_TO_INTERACTIVE_BUTTON)),t.$$.dirty[5]&131072&&i(75,l=Pt.has(rt.PLAY_BUTTON)),t.$$.dirty[5]&131072&&i(74,r=Pt.has(rt.REPLAY_BUTTON)),t.$$.dirty[5]&131072&&i(73,a=Pt.has(rt.PLAY_PREV_CHAPTER_BUTTON)),t.$$.dirty[0]&16|t.$$.dirty[5]&65600&&i(34,Bn=bt?Tt===xt.PLAYING:ri===Ft.PLAYING),t.$$.dirty[5]&32768&&i(18,no=ei.value!=="off"),t.$$.dirty[0]&16|t.$$.dirty[5]&16384&&i(35,oo=Kt&&!bt||an),t.$$.dirty[0]&16|t.$$.dirty[5]&16384&&i(36,ho=!Kt||an||bt),t.$$.dirty[4]&524288&&i(134,lo=kn(J,yt.M)),t.$$.dirty[0]&272|t.$$.dirty[4]&524352&&i(37,st=di&&kn(J,yt.M)&&!bt&&xi),t.$$.dirty[0]&528|t.$$.dirty[4]&524352&&i(38,g=di&&kn(J,yt.M)&&!bt&&Gi),t.$$.dirty[0]&536870912|t.$$.dirty[4]&524288|t.$$.dirty[5]&1536&&i(39,le=wi!==Mn.NOT_AVAILABLE&&!(Wt&&Bt===Dn.DocumentPictureInPicture)&&kn(J,yt.M)&&!an),t.$$.dirty[4]&524288|t.$$.dirty[5]&8192&&i(40,ke=ci.length>0&&kn(J,yt.M)),t.$$.dirty[5]&6144&&i(41,Re=Vt||ui),t.$$.dirty[4]&524288&&i(42,Qe=kn(J,yt.S)),t.$$.dirty[4]&32&&i(43,Ht=!ii),t.$$.dirty[4]&524576|t.$$.dirty[5]&1536&&i(44,Xt=Mt.features.fullscreen&&(ii||kn(J,yt.S))&&!(Wt&&Bt===Dn.DocumentPictureInPicture)&&(an?Ai:!0)),t.$$.dirty[0]&16|t.$$.dirty[1]&4&&i(19,It=(!wt||bt)&&!(Mt.features.interactiveHideTime&&an)),t.$$.dirty[4]&262144&&i(45,un=B.width>100),t.$$.dirty[0]&16|t.$$.dirty[1]&4|t.$$.dirty[4]&17408&&i(20,_n=!bt&&!wt&&!!Pn?.length&&lo&&!n),t.$$.dirty[1]&2|t.$$.dirty[5]&256&&i(21,go=!Pi||Ti),t.$$.dirty[5]&64&&i(47,Xl=ri===Ft.PLAYING?j("tooltip_pause"):j("tooltip_play")),t.$$.dirty[1]&1&&i(48,Jl=j(ai?"tooltip_interactive_graph_on":"tooltip_interactive_graph_off")),t.$$.dirty[5]&128&&i(49,xl=j(Ci?"aria_label_context_menu_close":"aria_label_context_menu_open")),t.$$.dirty[0]&2097152|t.$$.dirty[5]&64&&Gu(go,ri),t.$$.dirty[0]&262144&&i(52,es=j(no?"tooltip_subtitles_on":"tooltip_subtitles_off")),t.$$.dirty[0]&1073741824&&i(53,ts=j(yi?"tooltip_fullscreen_on":"tooltip_fullscreen_off")),t.$$.dirty[0]&536870912&&i(54,is=wi===Mn.CONNECTED?j("tooltip_chromecast_on"):j("tooltip_chromecast_off")),t.$$.dirty[0]&268435456|t.$$.dirty[4]&2146435072|t.$$.dirty[5]&63&&i(135,vn={prevButton:Zt?Zt.right-Zt.left:0,replayButton:oi?oi.right-oi.left:0,playButton:vi?vi.right-vi.left:0,nextButton:kt?kt.right-kt.left:0,playPrevChapterButton:Ze?Ze.right-Ze.left:0,seekToInteractiveButton:ue?ue.right-ue.left:0,interactiveGraphButton:Ct?Ct.right-Ct.left:0,liveButton:_t?_t.right-_t.left:0,time:Be?Be.right-Be.left:0,episodes:Oe?Oe.right-Oe.left:0,vkLogo:ye?ye.right-ye.left:0,volume:We?We.right-We.left:0,subtitles:re?re.right-re.left:0,settings:Se?Se.right-Se.left:0,context:me?me.right-me.left:0,fullscreen:Ee?Ee.right-Ee.left:0,chromecast:O?O.right-O.left:0,additionalButtons:E.length?E.reduce(K=>[...K,40],[]):[]}),t.$$.dirty[4]&6144&&(!Mo||Mo<vn.time)&&i(136,Mo=vn.time),t.$$.dirty[0]&5767168|t.$$.dirty[4]&530432){let K=0;_n&&(kn(J,yt.XL)?K=vn.time:K=uf);const gl=vn.prevButton+vn.playButton+vn.nextButton+vn.seekToInteractiveButton+vn.interactiveGraphButton+vn.liveButton+Mo+K;i(137,hl=It&&Ko>=gl)}t.$$.dirty[4]&532480&&i(55,ns=hl&&kn(J,yt.M)),t.$$.dirty[0]&8388616|t.$$.dirty[4]&393216&&Yu(eo(),St,Ge,Di),t.$$.dirty[0]&167772160&&Zl(Go,z,sn),t.$$.dirty[0]&150994944|t.$$.dirty[4]&65536&&ul(jo,z,X),t.$$.dirty[0]&67108864|t.$$.dirty[4]&32768&&Lu(bn,$,Yo)},i(51,$l=Mt.logoType===ro.VK_VIDEO?j("tooltip_vk_video_logo"):j("tooltip_vk_logo")),Zi(i(72,{prevButton:c,replayButton:f,playButton:p,nextButton:h,playPrevChapterButton:v,seekToInteractiveButton:k,interactiveGraphButton:_,liveButton:P,time:C,episodes:T,vkLogo:y,volume:M,subtitles:oe,settings:Y,context:R,fullscreen:ee,chromecast:Q}=St,c,ki(i(71,f)),Ji(i(70,p)),_i(i(69,h)),gt(i(68,v)),vt(i(67,k)),qt(i(66,_)),ht(i(65,P)),lt(i(64,C)),ot(i(63,T)),ve(i(62,y)),G(i(61,M)),Me(i(60,oe)),je(i(59,Y)),de(i(58,R)),Pe(i(57,ee)),ze(i(56,Q)))),[Nt,ti,Si,Di,bt,Ii,Ki,ji,xi,Gi,zi,Dt,Yt,Oi,Hi,pi,Ei,Vi,no,It,_n,go,Ko,Ge,jo,Go,Yo,z,E,wi,yi,ai,Pi,wt,Bn,oo,ho,st,g,le,ke,Re,Qe,Ht,Xt,un,Vo,Xl,Jl,xl,pl,$l,es,ts,is,ns,Q,ee,R,Y,oe,M,y,T,C,P,_,k,v,h,p,f,c,a,r,l,s,o,Rt,jt,fi,nn,Wi,Gt,Mt,Mi,Yi,Ui,Bi,Qi,zt,Xi,ni,tt,Ot,Qt,Ri,Ni,fn,dn,sn,Pn,Sn,mn,gn,rn,on,te,dt,bn,In,An,qn,Zn,Wn,Kn,jn,an,to,io,Gn,fo,En,Yn,mo,po,Eo,Qu,Xu,ii,di,$i,Ai,mi,lo,vn,Mo,hl,n,$,X,W,B,J,O,Ee,me,Se,re,We,ye,Oe,Be,_t,Ct,ue,Ze,kt,vi,oi,Zt,ri,Ci,Ti,Bt,Wt,ui,Vt,ci,Kt,ei,Tt,Pt,Ju,xu,$u,ec,tc,ic,nc,oc,lc,sc,rc,ac,uc,cc,fc,dc,mc,pc,hc,gc,bc,_c,vc,kc]}class Q3 extends be{constructor(e){super(),ge(this,e,Y3,G3,he,{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},C3,[-1,-1,-1,-1,-1,-1,-1])}}function X3(t){let e,i,n,o;return{c(){e=L("svg"),i=L("g"),n=L("path"),o=L("path"),u(n,"d","M0 0h24v24H0z"),u(o,"fill","#fff"),u(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.765l.93-.895Zm2.88-2.77 1.704-1.642A2.481 2.481 0 0 1 15 3a1 1 0 0 1 1 1v5.76l-4.426-4.426Z"),u(i,"fill","none"),u(i,"fill-rule","evenodd"),u(e,"xmlns","http://www.w3.org/2000/svg"),u(e,"width","24"),u(e,"height","24"),u(e,"aria-hidden","true"),u(e,"data-testid","muted-icon")},m(s,l){I(s,e,l),m(e,i),m(i,n),m(i,o)},p:q,i:q,o:q,d(s){s&&S(e)}}}class J3 extends be{constructor(e){super(),ge(this,e,null,X3,he,{})}}function x3(t){Ke(t,"v-6gmlbk",".container.v-6gmlbk{display:flex;align-items:center}.expanded.v-6gmlbk{background-color:rgba(0, 0, 0, 0.56);border-radius:6px}.text.v-6gmlbk{font-size:15px;margin-left:8px}")}function qr(t){let e;return{c(){e=A("span"),e.textContent=`${j("mobile_unmute")}`,u(e,"class","text v-6gmlbk")},m(i,n){I(i,e,n)},p:q,d(i){i&&S(e)}}}function $3(t){let e,i,n,o;var s=t[4];function l(a){return{}}s&&(i=Ln(s,l()));let r=t[1]&&qr();return{c(){e=A("div"),i&&U(i.$$.fragment),n=D(),r&&r.c(),u(e,"class","container v-6gmlbk"),u(e,"aria-hidden","true"),V(e,"expanded",t[1])},m(a,c){I(a,e,c),i&&H(i,e,null),m(e,n),r&&r.m(e,null),o=!0},p(a,c){if(c&16&&s!==(s=a[4])){if(i){ce();const f=i;b(f.$$.fragment,1,0,()=>{F(f,1)}),fe()}s?(i=Ln(s,l()),U(i.$$.fragment),d(i.$$.fragment,1),H(i,e,n)):i=null}a[1]?r?r.p(a,c):(r=qr(),r.c(),r.m(e,null)):r&&(r.d(1),r=null),(!o||c&2)&&V(e,"expanded",a[1])},i(a){o||(i&&d(i.$$.fragment,a),o=!0)},o(a){i&&b(i.$$.fragment,a),o=!1},d(a){a&&S(e),i&&F(i),r&&r.d()}}}function ep(t){let e,i,n;function o(l){t[6](l)}let s={testId:t[1]?"btn-mobile-unmuted":"btn-mobile-muted",click:t[2],ariaLabel:t[3],$$slots:{default:[$3]},$$scope:{ctx:t}};return t[0]!==void 0&&(s.ref=t[0]),e=new gi({props:s}),_e.push(()=>qe(e,"ref",o)),{c(){U(e.$$.fragment)},m(l,r){H(e,l,r),n=!0},p(l,[r]){const a={};r&2&&(a.testId=l[1]?"btn-mobile-unmuted":"btn-mobile-muted"),r&4&&(a.click=l[2]),r&8&&(a.ariaLabel=l[3]),r&146&&(a.$$scope={dirty:r,ctx:l}),!i&&r&1&&(i=!0,a.ref=l[0],Ue(()=>i=!1)),e.$set(a)},i(l){n||(d(e.$$.fragment,l),n=!0)},o(l){b(e.$$.fragment,l),n=!1},d(l){F(e,l)}}}function tp(t,e,i){let{muted:n=!1}=e,{expanded:o=!1}=e,{click:s=Ye}=e,{ref:l=void 0}=e,r,a;function c(f){l=f,i(0,l)}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,s=f.click),"ref"in f&&i(0,l=f.ref)},t.$$.update=()=>{t.$$.dirty&32&&i(3,r=j(n?"tooltip_volume":"tooltip_volume_muted")),t.$$.dirty&2&&i(4,a=o?fl:J3)},[l,o,s,r,a,n,c]}class Ru extends be{constructor(e){super(),ge(this,e,tp,ep,he,{muted:5,expanded:1,click:2,ref:0},x3)}}function ip(t){let e,i,n,o;return{c(){e=L("svg"),i=L("path"),n=L("path"),o=L("path"),u(i,"fill",t[1]),u(i,"clip-rule","evenodd"),u(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 4ZM13 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.2v-.4Z"),u(n,"fill",t[1]),u(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.272l-.093-.094Z"),V(n,"hidden",!t[0]),u(o,"fill",t[1]),u(o,"d","M6.357 9.63a.865.865 0 0 0 .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.272l.093.094Z"),V(o,"hidden",t[0]),u(e,"width","24"),u(e,"height","24"),u(e,"fill","none"),u(e,"xmlns","http://www.w3.org/2000/svg")},m(s,l){I(s,e,l),m(e,i),m(e,n),m(e,o)},p(s,[l]){l&2&&u(i,"fill",s[1]),l&2&&u(n,"fill",s[1]),l&1&&V(n,"hidden",!s[0]),l&2&&u(o,"fill",s[1]),l&1&&V(o,"hidden",s[0])},i:q,o:q,d(s){s&&S(e)}}}function np(t,e,i){let n,{isActive:o=!1}=e;return t.$$set=s=>{"isActive"in s&&i(0,o=s.isActive)},t.$$.update=()=>{t.$$.dirty&1&&i(1,n=o?"#2688EB":"#fff")},[o,n]}class op extends be{constructor(e){super(),ge(this,e,np,ip,he,{isActive:0})}}function lp(t){let e,i;return e=new op({props:{isActive:t[1]}}),{c(){U(e.$$.fragment)},m(n,o){H(e,n,o),i=!0},p(n,o){const s={};o&2&&(s.isActive=n[1]),e.$set(s)},i(n){i||(d(e.$$.fragment,n),i=!0)},o(n){b(e.$$.fragment,n),i=!1},d(n){F(e,n)}}}function sp(t){let e,i,n;function o(l){t[3](l)}let s={testId:"btn-pip",ariaLabel:j("menu_pip"),click:t[2],$$slots:{default:[lp]},$$scope:{ctx:t}};return t[0]!==void 0&&(s.ref=t[0]),e=new gi({props:s}),_e.push(()=>qe(e,"ref",o)),{c(){U(e.$$.fragment)},m(l,r){H(e,l,r),n=!0},p(l,[r]){const a={};r&4&&(a.click=l[2]),r&18&&(a.$$scope={dirty:r,ctx:l}),!i&&r&1&&(i=!0,a.ref=l[0],Ue(()=>i=!1)),e.$set(a)},i(l){n||(d(e.$$.fragment,l),n=!0)},o(l){b(e.$$.fragment,l),n=!1},d(l){F(e,l)}}}function rp(t,e,i){let{ref:n=void 0}=e,{isPictureInPictureActive:o=!1}=e,{click:s=Ye}=e;function l(r){n=r,i(0,n)}return t.$$set=r=>{"ref"in r&&i(0,n=r.ref),"isPictureInPictureActive"in r&&i(1,o=r.isPictureInPictureActive),"click"in r&&i(2,s=r.click)},[n,o,s,l]}class ap extends be{constructor(e){super(),ge(this,e,rp,sp,he,{ref:0,isPictureInPictureActive:1,click:2})}}function up(t){Ke(t,"v-1tcstu3",".wrapper-bottom.v-1tcstu3.v-1tcstu3{pointer-events:none;position:absolute;width:100%;bottom:0;left:0;height:var(--controls-gradient-height);background:var(--controls-gradient);transition:transform var(--controls-transition-duration) var(--controls-transition-fn);display:flex;flex-direction:column;justify-content:flex-end;box-sizing:border-box;padding:0 4px 8px}.wrapper-bottom.v-1tcstu3>.v-1tcstu3{pointer-events:auto}.wrapper-bottom.ads-timeline-mobile.v-1tcstu3.v-1tcstu3{height:9px;padding:0 4px 4px}.wrapper-middle.v-1tcstu3.v-1tcstu3{position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);transition:opacity var(--controls-transition-duration);display:flex;align-items:center}.wrapper-top-right.v-1tcstu3.v-1tcstu3{position:absolute;top:4px;right:8px;transition:opacity var(--controls-transition-duration);display:flex}.wrapper-top-left.v-1tcstu3.v-1tcstu3{position:absolute;top:4px;left:8px}.wrapper-middle-left.v-1tcstu3.v-1tcstu3,.wrapper-middle-left-second.v-1tcstu3.v-1tcstu3,.wrapper-middle-right.v-1tcstu3.v-1tcstu3{position:absolute;top:50%;transform:translateY(-50%);height:44px;width:44px;border-radius:12px;background-color:rgba(0, 0, 0, 0.56);transition:opacity var(--controls-transition-duration);display:flex;align-items:center;justify-content:center}.wrapper-middle-left.v-1tcstu3.v-1tcstu3{left:12px}.wrapper-middle-left-second.v-1tcstu3.v-1tcstu3{left:64px}.wrapper-middle-right.v-1tcstu3.v-1tcstu3{right:12px}.controls.v-1tcstu3.v-1tcstu3{width:100%;display:flex;align-items:center;height:var(--controls-height);white-space:nowrap;font-size:13px;transition:transform var(--controls-transition-duration) var(--controls-transition-fn);will-change:transform;padding:0 4px;box-sizing:border-box}.controls.v-1tcstu3 > *:not(:first-child){margin-left:8px}.hidden.v-1tcstu3.v-1tcstu3{visibility:hidden;opacity:0}.controls-hidden.v-1tcstu3.v-1tcstu3{visibility:visible;transform:translateY(100%)}.wrapper-bottom.no-smooth.v-1tcstu3.v-1tcstu3{transition:none}.settings-mobile.v-1tcstu3.v-1tcstu3{position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);transition:opacity var(--controls-transition-duration);display:flex;align-items:center;max-width:320px;width:90%}.overlay-mobile.v-1tcstu3.v-1tcstu3{position:absolute;top:0;left:0;width:100%;height:100%;background-color:rgba(0, 0, 0, .3);pointer-events:none;transition:opacity var(--controls-transition-duration)}@media screen and (orientation: portrait){.wrapper-top-right.fullscreen.v-1tcstu3.v-1tcstu3{top:16px}.wrapper-top-left.fullscreen.v-1tcstu3.v-1tcstu3{top:16px}.controls-wrapper.fullscreen.v-1tcstu3.v-1tcstu3{position:absolute;bottom:30px;width:calc(100% - 8px)}}@media screen and (orientation: landscape){.wrapper-top-left.fullscreen.v-1tcstu3.v-1tcstu3{top:12px;left:44px}.wrapper-top-right.fullscreen.v-1tcstu3.v-1tcstu3{top:12px;right:44px}.wrapper-middle-left.fullscreen.v-1tcstu3.v-1tcstu3{left:44px}.wrapper-middle-left-second.fullscreen.v-1tcstu3.v-1tcstu3{left:96px}.wrapper-middle-right.fullscreen.v-1tcstu3.v-1tcstu3{right:44px}.controls-wrapper.fullscreen.v-1tcstu3.v-1tcstu3{position:absolute;left:36px;right:36px;bottom:32px;width:calc(100% - 72px)}}")}function Zr(t,e,i){const n=t.slice();return n[169]=e[i].iconUrl,n[170]=e[i].ariaLabel,n[171]=e[i].testId,n[172]=e[i].onClick,n[173]=e[i].tooltip,n}function Wr(t){let e,i,n,o,s,l,r,a,c,f,p,h,v,k,_,P,C,T=(!t[51]||t[53])&&Kr(t),y=Ut(t[56]),M=[];for(let B=0;B<y.length;B+=1)M[B]=jr(Zr(t,y,B));const oe=B=>b(M[B],1,1,()=>{M[B]=null});let Y=t[36]&&Gr(t),R=t[37]&&Yr(t),ee=t[57]&&Qr(t),Q=t[39]&&Xr(t),w=t[8]&&Jr(t),$=t[34]&&xr(t),X=t[33]&&$r(t),z=t[8]&&ea(t),W=t[96]&&!t[29]&&ta(t);return{c(){e=A("div"),i=D(),n=A("div"),T&&T.c(),o=D(),s=A("div");for(let B=0;B<M.length;B+=1)M[B].c();l=D(),Y&&Y.c(),r=D(),R&&R.c(),a=D(),ee&&ee.c(),c=D(),Q&&Q.c(),f=D(),p=A("div"),w&&w.c(),h=D(),$&&$.c(),v=D(),X&&X.c(),k=D(),z&&z.c(),_=D(),W&&W.c(),P=ct(),u(e,"class","overlay-mobile v-1tcstu3"),V(e,"hidden",!t[42]),u(n,"class","wrapper-top-left v-1tcstu3"),V(n,"hidden",!t[3]),V(n,"fullscreen",t[52]),u(s,"class","wrapper-top-right v-1tcstu3"),V(s,"hidden",!t[3]&&!t[27]),V(s,"fullscreen",t[52]),u(p,"class","wrapper-middle v-1tcstu3"),V(p,"hidden",!t[3]||t[29])},m(B,J){I(B,e,J),I(B,i,J),I(B,n,J),T&&T.m(n,null),I(B,o,J),I(B,s,J);for(let E=0;E<M.length;E+=1)M[E]&&M[E].m(s,null);m(s,l),Y&&Y.m(s,null),m(s,r),R&&R.m(s,null),m(s,a),ee&&ee.m(s,null),m(s,c),Q&&Q.m(s,null),I(B,f,J),I(B,p,J),w&&w.m(p,null),m(p,h),$&&$.m(p,null),m(p,v),X&&X.m(p,null),m(p,k),z&&z.m(p,null),I(B,_,J),W&&W.m(B,J),I(B,P,J),C=!0},p(B,J){if((!C||J[1]&2048)&&V(e,"hidden",!B[42]),!B[51]||B[53]?T?(T.p(B,J),J[1]&5242880&&d(T,1)):(T=Kr(B),T.c(),d(T,1),T.m(n,null)):T&&(ce(),b(T,1,1,()=>{T=null}),fe()),(!C||J[0]&8)&&V(n,"hidden",!B[3]),(!C||J[1]&2097152)&&V(n,"fullscreen",B[52]),J[1]&33554432){y=Ut(B[56]);let E;for(E=0;E<y.length;E+=1){const O=Zr(B,y,E);M[E]?(M[E].p(O,J),d(M[E],1)):(M[E]=jr(O),M[E].c(),d(M[E],1),M[E].m(s,l))}for(ce(),E=y.length;E<M.length;E+=1)oe(E);fe()}B[36]?Y?(Y.p(B,J),J[1]&32&&d(Y,1)):(Y=Gr(B),Y.c(),d(Y,1),Y.m(s,r)):Y&&(ce(),b(Y,1,1,()=>{Y=null}),fe()),B[37]?R?(R.p(B,J),J[1]&64&&d(R,1)):(R=Yr(B),R.c(),d(R,1),R.m(s,a)):R&&(ce(),b(R,1,1,()=>{R=null}),fe()),B[57]?ee?(ee.p(B,J),J[1]&67108864&&d(ee,1)):(ee=Qr(B),ee.c(),d(ee,1),ee.m(s,c)):ee&&(ce(),b(ee,1,1,()=>{ee=null}),fe()),B[39]?Q?(Q.p(B,J),J[1]&256&&d(Q,1)):(Q=Xr(B),Q.c(),d(Q,1),Q.m(s,null)):Q&&(ce(),b(Q,1,1,()=>{Q=null}),fe()),(!C||J[0]&134217736)&&V(s,"hidden",!B[3]&&!B[27]),(!C||J[1]&2097152)&&V(s,"fullscreen",B[52]),B[8]?w?(w.p(B,J),J[0]&256&&d(w,1)):(w=Jr(B),w.c(),d(w,1),w.m(p,h)):w&&(ce(),b(w,1,1,()=>{w=null}),fe()),B[34]?$?($.p(B,J),J[1]&8&&d($,1)):($=xr(B),$.c(),d($,1),$.m(p,v)):$&&(ce(),b($,1,1,()=>{$=null}),fe()),B[33]?X?(X.p(B,J),J[1]&4&&d(X,1)):(X=$r(B),X.c(),d(X,1),X.m(p,k)):X&&(ce(),b(X,1,1,()=>{X=null}),fe()),B[8]?z?(z.p(B,J),J[0]&256&&d(z,1)):(z=ea(B),z.c(),d(z,1),z.m(p,null)):z&&(ce(),b(z,1,1,()=>{z=null}),fe()),(!C||J[0]&536870920)&&V(p,"hidden",!B[3]||B[29]),B[96]&&!B[29]?W?(W.p(B,J),J[0]&536870912&&d(W,1)):(W=ta(B),W.c(),d(W,1),W.m(P.parentNode,P)):W&&(ce(),b(W,1,1,()=>{W=null}),fe())},i(B){if(!C){d(T);for(let J=0;J<y.length;J+=1)d(M[J]);d(Y),d(R),d(ee),d(Q),d(w),d($),d(X),d(z),d(W),C=!0}},o(B){b(T),M=M.filter(Boolean);for(let J=0;J<M.length;J+=1)b(M[J]);b(Y),b(R),b(ee),b(Q),b(w),b($),b(X),b(z),b(W),C=!1},d(B){B&&(S(e),S(i),S(n),S(o),S(s),S(f),S(p),S(_),S(P)),T&&T.d(),Tn(M,B),Y&&Y.d(),R&&R.d(),ee&&ee.d(),Q&&Q.d(),w&&w.d(),$&&$.d(),X&&X.d(),z&&z.d(),W&&W.d(B)}}}function Kr(t){let e,i,n;function o(l){t[130](l)}let s={muted:t[54],expanded:t[51]&&!t[70]&&t[55],click:t[106]};return t[20].volume!==void 0&&(s.ref=t[20].volume),e=new Ru({props:s}),_e.push(()=>qe(e,"ref",o)),{c(){U(e.$$.fragment)},m(l,r){H(e,l,r),n=!0},p(l,r){const a={};r[1]&8388608&&(a.muted=l[54]),r[1]&17825792&&(a.expanded=l[51]&&!l[70]&&l[55]),!i&&r[0]&1048576&&(i=!0,a.ref=l[20].volume,Ue(()=>i=!1)),e.$set(a)},i(l){n||(d(e.$$.fragment,l),n=!0)},o(l){b(e.$$.fragment,l),n=!1},d(l){F(e,l)}}}function jr(t){let e,i;return e=new Eu({props:{iconUrl:t[169],ariaLabel:t[170]??t[173],testId:t[171],onClick:t[172]}}),{c(){U(e.$$.fragment)},m(n,o){H(e,n,o),i=!0},p(n,o){const s={};o[1]&33554432&&(s.iconUrl=n[169]),o[1]&33554432&&(s.ariaLabel=n[170]??n[173]),o[1]&33554432&&(s.testId=n[171]),o[1]&33554432&&(s.onClick=n[172]),e.$set(s)},i(n){i||(d(e.$$.fragment,n),i=!0)},o(n){b(e.$$.fragment,n),i=!1},d(n){F(e,n)}}}function Gr(t){let e,i,n;function o(l){t[131](l)}let s={isMobile:!0,click:t[104],state:t[28]};return t[20].chromecast!==void 0&&(s.ref=t[20].chromecast),e=new vu({props:s}),_e.push(()=>qe(e,"ref",o)),{c(){U(e.$$.fragment)},m(l,r){H(e,l,r),n=!0},p(l,r){const a={};r[0]&268435456&&(a.state=l[28]),!i&&r[0]&1048576&&(i=!0,a.ref=l[20].chromecast,Ue(()=>i=!1)),e.$set(a)},i(l){n||(d(e.$$.fragment,l),n=!0)},o(l){b(e.$$.fragment,l),n=!1},d(l){F(e,l)}}}function Yr(t){let e,i,n;function o(l){t[132](l)}let s={click:t[105],isPictureInPictureActive:t[26]};return t[20].pip!==void 0&&(s.ref=t[20].pip),e=new ap({props:s}),_e.push(()=>qe(e,"ref",o)),{c(){U(e.$$.fragment)},m(l,r){H(e,l,r),n=!0},p(l,r){const a={};r[0]&67108864&&(a.isPictureInPictureActive=l[26]),!i&&r[0]&1048576&&(i=!0,a.ref=l[20].pip,Ue(()=>i=!1)),e.$set(a)},i(l){n||(d(e.$$.fragment,l),n=!0)},o(l){b(e.$$.fragment,l),n=!1},d(l){F(e,l)}}}function Qr(t){let e,i,n;function o(l){t[133](l)}let s={};return t[22]!==void 0&&(s.ref=t[22]),e=new Kl({props:s}),_e.push(()=>qe(e,"ref",o)),{c(){U(e.$$.fragment)},m(l,r){H(e,l,r),n=!0},p(l,r){const a={};!i&&r[0]&4194304&&(i=!0,a.ref=l[22],Ue(()=>i=!1)),e.$set(a)},i(l){n||(d(e.$$.fragment,l),n=!0)},o(l){b(e.$$.fragment,l),n=!1},d(l){F(e,l)}}}function Xr(t){let e,i,n;function o(l){t[134](l)}let s={click:t[64],targetUrl:t[7],logoClickable:t[6]};return t[20].vkLogo!==void 0&&(s.ref=t[20].vkLogo),e=new _u({props:s}),_e.push(()=>qe(e,"ref",o)),{c(){U(e.$$.fragment)},m(l,r){H(e,l,r),n=!0},p(l,r){const a={};r[0]&128&&(a.targetUrl=l[7]),r[0]&64&&(a.logoClickable=l[6]),!i&&r[0]&1048576&&(i=!0,a.ref=l[20].vkLogo,Ue(()=>i=!1)),e.$set(a)},i(l){n||(d(e.$$.fragment,l),n=!0)},o(l){b(e.$$.fragment,l),n=!1},d(l){F(e,l)}}}function Jr(t){let e,i,n;function o(l){t[135](l)}let s={click:t[13],type:"prev",disabled:!t[10],isMobile:!0};return t[20].prevButton!==void 0&&(s.ref=t[20].prevButton),e=new dl({props:s}),_e.push(()=>qe(e,"ref",o)),{c(){U(e.$$.fragment)},m(l,r){H(e,l,r),n=!0},p(l,r){const a={};r[0]&8192&&(a.click=l[13]),r[0]&1024&&(a.disabled=!l[10]),!i&&r[0]&1048576&&(i=!0,a.ref=l[20].prevButton,Ue(()=>i=!1)),e.$set(a)},i(l){n||(d(e.$$.fragment,l),n=!0)},o(l){b(e.$$.fragment,l),n=!1},d(l){F(e,l)}}}function xr(t){let e,i,n;function o(l){t[136](l)}let s={disabled:t[49],click:t[63],isMobile:!0,isPlaying:t[31]};return t[20].playButton!==void 0&&(s.ref=t[20].playButton),e=new Yl({props:s}),_e.push(()=>qe(e,"ref",o)),{c(){U(e.$$.fragment)},m(l,r){H(e,l,r),n=!0},p(l,r){const a={};r[1]&262144&&(a.disabled=l[49]),r[1]&1&&(a.isPlaying=l[31]),!i&&r[0]&1048576&&(i=!0,a.ref=l[20].playButton,Ue(()=>i=!1)),e.$set(a)},i(l){n||(d(e.$$.fragment,l),n=!0)},o(l){b(e.$$.fragment,l),n=!1},d(l){F(e,l)}}}function $r(t){let e,i,n;function o(l){t[137](l)}let s={disabled:t[48],click:t[107],isMobile:!0};return t[20].replayButton!==void 0&&(s.ref=t[20].replayButton),e=new Ql({props:s}),_e.push(()=>qe(e,"ref",o)),{c(){U(e.$$.fragment)},m(l,r){H(e,l,r),n=!0},p(l,r){const a={};r[1]&131072&&(a.disabled=l[48]),!i&&r[0]&1048576&&(i=!0,a.ref=l[20].replayButton,Ue(()=>i=!1)),e.$set(a)},i(l){n||(d(e.$$.fragment,l),n=!0)},o(l){b(e.$$.fragment,l),n=!1},d(l){F(e,l)}}}function ea(t){let e,i,n;function o(l){t[138](l)}let s={click:t[12],type:"next",disabled:!t[9],isMobile:!0};return t[20].nextButton!==void 0&&(s.ref=t[20].nextButton),e=new dl({props:s}),_e.push(()=>qe(e,"ref",o)),{c(){U(e.$$.fragment)},m(l,r){H(e,l,r),n=!0},p(l,r){const a={};r[0]&4096&&(a.click=l[12]),r[0]&512&&(a.disabled=!l[9]),!i&&r[0]&1048576&&(i=!0,a.ref=l[20].nextButton,Ue(()=>i=!1)),e.$set(a)},i(l){n||(d(e.$$.fragment,l),n=!0)},o(l){b(e.$$.fragment,l),n=!1},d(l){F(e,l)}}}function ta(t){let e,i,n,o,s=t[100]&&cp(t),l=t[98]&&fp(t),r=t[99]&&dp(t);return{c(){s&&s.c(),e=D(),l&&l.c(),i=D(),r&&r.c(),n=ct()},m(a,c){s&&s.m(a,c),I(a,e,c),l&&l.m(a,c),I(a,i,c),r&&r.m(a,c),I(a,n,c),o=!0},p(a,c){a[100]&&s.p(a,c),a[98]&&l.p(a,c),a[99]&&r.p(a,c)},i(a){o||(d(s),d(l),d(r),o=!0)},o(a){b(s),b(l),b(r),o=!1},d(a){a&&(S(e),S(i),S(n)),s&&s.d(a),l&&l.d(a),r&&r.d(a)}}}function cp(t){let e,i,n,o,s,l;function r(c){t[139](c)}let a={hidden:!t[3],disabled:t[47],click:t[18]};return t[20].playPrevChapterButton!==void 0&&(a.ref=t[20].playPrevChapterButton),i=new Au({props:a}),_e.push(()=>qe(i,"ref",r)),{c(){e=A("div"),U(i.$$.fragment),u(e,"class","wrapper-middle-left v-1tcstu3"),V(e,"fullscreen",t[52]),V(e,"hidden",!t[3])},m(c,f){I(c,e,f),H(i,e,null),o=!0,s||(l=pe(e,"click",t[108]),s=!0)},p(c,f){const p={};f[0]&8&&(p.hidden=!c[3]),f[1]&65536&&(p.disabled=c[47]),f[0]&262144&&(p.click=c[18]),!n&&f[0]&1048576&&(n=!0,p.ref=c[20].playPrevChapterButton,Ue(()=>n=!1)),i.$set(p),(!o||f[1]&2097152)&&V(e,"fullscreen",c[52]),(!o||f[0]&8)&&V(e,"hidden",!c[3])},i(c){o||(d(i.$$.fragment,c),o=!0)},o(c){b(i.$$.fragment,c),o=!1},d(c){c&&S(e),F(i),s=!1,l()}}}function fp(t){let e,i,n,o;function s(r){t[140](r)}let l={hidden:!t[3]&&!t[58],disabled:t[50],click:t[17],graphIsOpened:t[58]};return t[20].interactiveGraphButton!==void 0&&(l.ref=t[20].interactiveGraphButton),i=new Su({props:l}),_e.push(()=>qe(i,"ref",s)),{c(){e=A("div"),U(i.$$.fragment),u(e,"class",qc(t[100]?"wrapper-middle-left-second":"wrapper-middle-left")+" v-1tcstu3"),V(e,"fullscreen",t[52]),V(e,"hidden",!t[3]&&!t[58])},m(r,a){I(r,e,a),H(i,e,null),o=!0},p(r,a){const c={};a[0]&8|a[1]&134217728&&(c.hidden=!r[3]&&!r[58]),a[1]&524288&&(c.disabled=r[50]),a[0]&131072&&(c.click=r[17]),a[1]&134217728&&(c.graphIsOpened=r[58]),!n&&a[0]&1048576&&(n=!0,c.ref=r[20].interactiveGraphButton,Ue(()=>n=!1)),i.$set(c),(!o||a[1]&2097152)&&V(e,"fullscreen",r[52]),(!o||a[0]&8|a[1]&134217728)&&V(e,"hidden",!r[3]&&!r[58])},i(r){o||(d(i.$$.fragment,r),o=!0)},o(r){b(i.$$.fragment,r),o=!1},d(r){r&&S(e),F(i)}}}function dp(t){let e,i,n,o,s,l;function r(c){t[141](c)}let a={hidden:!t[3],disabled:t[46],click:t[16]};return t[20].seekToInteractiveButton!==void 0&&(a.ref=t[20].seekToInteractiveButton),i=new Pu({props:a}),_e.push(()=>qe(i,"ref",r)),{c(){e=A("div"),U(i.$$.fragment),u(e,"class","wrapper-middle-right v-1tcstu3"),V(e,"fullscreen",t[52]),V(e,"hidden",!t[3])},m(c,f){I(c,e,f),H(i,e,null),o=!0,s||(l=pe(e,"click",t[109]),s=!0)},p(c,f){const p={};f[0]&8&&(p.hidden=!c[3]),f[1]&32768&&(p.disabled=c[46]),f[0]&65536&&(p.click=c[16]),!n&&f[0]&1048576&&(n=!0,p.ref=c[20].seekToInteractiveButton,Ue(()=>n=!1)),i.$set(p),(!o||f[1]&2097152)&&V(e,"fullscreen",c[52]),(!o||f[0]&8)&&V(e,"hidden",!c[3])},i(c){o||(d(i.$$.fragment,c),o=!0)},o(c){b(i.$$.fragment,c),o=!1},d(c){c&&S(e),F(i),s=!1,l()}}}function ia(t){let e,i,n,o,s,l=t[53]&&na(t),r=t[32]&&oa(t);return o=new yu({props:{position:t[59],duration:t[60]}}),{c(){l&&l.c(),e=D(),r&&r.c(),i=D(),n=A("div"),U(o.$$.fragment),u(n,"class","wrapper-bottom ads-timeline-mobile v-1tcstu3"),V(n,"fullscreen",t[52])},m(a,c){l&&l.m(a,c),I(a,e,c),r&&r.m(a,c),I(a,i,c),I(a,n,c),H(o,n,null),s=!0},p(a,c){a[53]?l?(l.p(a,c),c[1]&4194304&&d(l,1)):(l=na(a),l.c(),d(l,1),l.m(e.parentNode,e)):l&&(ce(),b(l,1,1,()=>{l=null}),fe()),a[32]?r?(r.p(a,c),c[1]&2&&d(r,1)):(r=oa(a),r.c(),d(r,1),r.m(i.parentNode,i)):r&&(ce(),b(r,1,1,()=>{r=null}),fe());const f={};c[1]&268435456&&(f.position=a[59]),c[1]&536870912&&(f.duration=a[60]),o.$set(f),(!s||c[1]&2097152)&&V(n,"fullscreen",a[52])},i(a){s||(d(l),d(r),d(o.$$.fragment,a),s=!0)},o(a){b(l),b(r),b(o.$$.fragment,a),s=!1},d(a){a&&(S(e),S(i),S(n)),l&&l.d(a),r&&r.d(a),F(o)}}}function na(t){let e,i,n,o;function s(r){t[142](r)}let l={muted:t[54],expanded:!1,click:t[106]};return t[20].volume!==void 0&&(l.ref=t[20].volume),i=new Ru({props:l}),_e.push(()=>qe(i,"ref",s)),{c(){e=A("div"),U(i.$$.fragment),u(e,"class","wrapper-top-right v-1tcstu3"),V(e,"fullscreen",t[52])},m(r,a){I(r,e,a),H(i,e,null),o=!0},p(r,a){const c={};a[1]&8388608&&(c.muted=r[54]),!n&&a[0]&1048576&&(n=!0,c.ref=r[20].volume,Ue(()=>n=!1)),i.$set(c),(!o||a[1]&2097152)&&V(e,"fullscreen",r[52])},i(r){o||(d(i.$$.fragment,r),o=!0)},o(r){b(i.$$.fragment,r),o=!1},d(r){r&&S(e),F(i)}}}function oa(t){let e,i,n,o;function s(r){t[143](r)}let l={disabled:t[49],click:t[63],isMobile:!0,isPlaying:!t[32]};return t[20].playButton!==void 0&&(l.ref=t[20].playButton),i=new Yl({props:l}),_e.push(()=>qe(i,"ref",s)),{c(){e=A("div"),U(i.$$.fragment),u(e,"class","wrapper-middle v-1tcstu3")},m(r,a){I(r,e,a),H(i,e,null),o=!0},p(r,a){const c={};a[1]&262144&&(c.disabled=r[49]),a[1]&2&&(c.isPlaying=!r[32]),!n&&a[0]&1048576&&(n=!0,c.ref=r[20].playButton,Ue(()=>n=!1)),i.$set(c)},i(r){o||(d(i.$$.fragment,r),o=!0)},o(r){b(i.$$.fragment,r),o=!1},d(r){r&&S(e),F(i)}}}function mp(t){let e,i,n;function o(l){t[144](l)}let s={disabled:t[48],$$slots:{default:[pp]},$$scope:{ctx:t}};return t[20].replayButton!==void 0&&(s.ref=t[20].replayButton),e=new Et({props:s}),_e.push(()=>qe(e,"ref",o)),{c(){U(e.$$.fragment)},m(l,r){H(e,l,r),n=!0},p(l,r){const a={};r[1]&131072&&(a.disabled=l[48]),r[1]&131072|r[5]&2097152&&(a.$$scope={dirty:r,ctx:l}),!i&&r[0]&1048576&&(i=!0,a.ref=l[20].replayButton,Ue(()=>i=!1)),e.$set(a)},i(l){n||(d(e.$$.fragment,l),n=!0)},o(l){b(e.$$.fragment,l),n=!1},d(l){F(e,l)}}}function pp(t){let e,i;return e=new Ql({props:{disabled:t[48],click:t[95]}}),{c(){U(e.$$.fragment)},m(n,o){H(e,n,o),i=!0},p(n,o){const s={};o[1]&131072&&(s.disabled=n[48]),e.$set(s)},i(n){i||(d(e.$$.fragment,n),i=!0)},o(n){b(e.$$.fragment,n),i=!1},d(n){F(e,n)}}}function la(t){let e,i,n;function o(l){t[145](l)}let s={$$slots:{default:[hp]},$$scope:{ctx:t}};return t[20].liveButton!==void 0&&(s.ref=t[20].liveButton),e=new Et({props:s}),_e.push(()=>qe(e,"ref",o)),{c(){U(e.$$.fragment)},m(l,r){H(e,l,r),n=!0},p(l,r){const a={};r[0]&524288|r[1]&16384|r[5]&2097152&&(a.$$scope={dirty:r,ctx:l}),!i&&r[0]&1048576&&(i=!0,a.ref=l[20].liveButton,Ue(()=>i=!1)),e.$set(a)},i(l){n||(d(e.$$.fragment,l),n=!0)},o(l){b(e.$$.fragment,l),n=!1},d(l){F(e,l)}}}function hp(t){let e,i;return e=new ku({props:{isActiveLive:t[19],isMobile:!0,ariaLabel:t[45]}}),{c(){U(e.$$.fragment)},m(n,o){H(e,n,o),i=!0},p(n,o){const s={};o[0]&524288&&(s.isActiveLive=n[19]),o[1]&16384&&(s.ariaLabel=n[45]),e.$set(s)},i(n){i||(d(e.$$.fragment,n),i=!0)},o(n){b(e.$$.fragment,n),i=!1},d(n){F(e,n)}}}function sa(t){let e,i,n;function o(l){t[146](l)}let s={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&&(s.ref=t[20].time),e=new du({props:s}),_e.push(()=>qe(e,"ref",o)),{c(){U(e.$$.fragment)},m(l,r){H(e,l,r),n=!0},p(l,r){const a={};r[1]&16&&(a.showDuration=l[35]),r[0]&16|r[1]&1342177280&&(a.position=l[4]?l[59]:l[61]),r[0]&16|r[1]&536870912|r[2]&1&&(a.duration=l[4]?l[60]:l[62]),!i&&r[0]&1048576&&(i=!0,a.ref=l[20].time,Ue(()=>i=!1)),e.$set(a)},i(l){n||(d(e.$$.fragment,l),n=!0)},o(l){b(e.$$.fragment,l),n=!1},d(l){F(e,l)}}}function ra(t){let e,i,n,o;return n=new Tu({props:{position:t[61],duration:t[62],timeCodes:t[84]}}),{c(){e=A("div"),e.textContent="\xB7",i=D(),U(n.$$.fragment),u(e,"aria-hidden","true")},m(s,l){I(s,e,l),I(s,i,l),H(n,s,l),o=!0},p(s,l){const r={};l[1]&1073741824&&(r.position=s[61]),l[2]&1&&(r.duration=s[62]),n.$set(r)},i(s){o||(d(n.$$.fragment,s),o=!0)},o(s){b(n.$$.fragment,s),o=!1},d(s){s&&(S(e),S(i)),F(n,s)}}}function gp(t){let e,i,n=t[43]&&ra(t);return{c(){n&&n.c(),e=ct()},m(o,s){n&&n.m(o,s),I(o,e,s),i=!0},p(o,s){o[43]?n?(n.p(o,s),s[1]&4096&&d(n,1)):(n=ra(o),n.c(),d(n,1),n.m(e.parentNode,e)):n&&(ce(),b(n,1,1,()=>{n=null}),fe())},i(o){i||(d(n),i=!0)},o(o){b(n),i=!1},d(o){o&&S(e),n&&n.d(o)}}}function aa(t){let e,i,n;function o(l){t[149](l)}let s={$$slots:{default:[bp]},$$scope:{ctx:t}};return t[20].settings!==void 0&&(s.ref=t[20].settings),e=new Et({props:s}),_e.push(()=>qe(e,"ref",o)),{c(){U(e.$$.fragment)},m(l,r){H(e,l,r),n=!0},p(l,r){const a={};r[0]&4194304|r[5]&2097152&&(a.$$scope={dirty:r,ctx:l}),!i&&r[0]&1048576&&(i=!0,a.ref=l[20].settings,Ue(()=>i=!1)),e.$set(a)},i(l){n||(d(e.$$.fragment,l),n=!0)},o(l){b(e.$$.fragment,l),n=!1},d(l){F(e,l)}}}function bp(t){let e,i,n;function o(l){t[148](l)}let s={};return t[22]!==void 0&&(s.ref=t[22]),e=new Kl({props:s}),_e.push(()=>qe(e,"ref",o)),{c(){U(e.$$.fragment)},m(l,r){H(e,l,r),n=!0},p(l,r){const a={};!i&&r[0]&4194304&&(i=!0,a.ref=l[22],Ue(()=>i=!1)),e.$set(a)},i(l){n||(d(e.$$.fragment,l),n=!0)},o(l){b(e.$$.fragment,l),n=!1},d(l){F(e,l)}}}function ua(t){let e,i,n;function o(l){t[150](l)}let s={$$slots:{default:[_p]},$$scope:{ctx:t}};return t[20].fullscreen!==void 0&&(s.ref=t[20].fullscreen),e=new Et({props:s}),_e.push(()=>qe(e,"ref",o)),{c(){U(e.$$.fragment)},m(l,r){H(e,l,r),n=!0},p(l,r){const a={};r[0]&16384|r[1]&2097152|r[5]&2097152&&(a.$$scope={dirty:r,ctx:l}),!i&&r[0]&1048576&&(i=!0,a.ref=l[20].fullscreen,Ue(()=>i=!1)),e.$set(a)},i(l){n||(d(e.$$.fragment,l),n=!0)},o(l){b(e.$$.fragment,l),n=!1},d(l){F(e,l)}}}function _p(t){let e,i;return e=new gu({props:{click:t[14],isFullscreen:t[52]}}),{c(){U(e.$$.fragment)},m(n,o){H(e,n,o),i=!0},p(n,o){const s={};o[0]&16384&&(s.click=n[14]),o[1]&2097152&&(s.isFullscreen=n[52]),e.$set(s)},i(n){i||(d(e.$$.fragment,n),i=!0)},o(n){b(e.$$.fragment,n),i=!1},d(n){F(e,n)}}}function ca(t){let e,i,n,o;function s(r){t[153](r)}let l={supportLink:t[11],returnFocus:t[15]};return t[21]!==void 0&&(l.ref=t[21]),i=new fu({props:l}),_e.push(()=>qe(i,"ref",s)),{c(){e=A("div"),U(i.$$.fragment),u(e,"class","settings-mobile v-1tcstu3")},m(r,a){I(r,e,a),H(i,e,null),o=!0},p(r,a){const c={};a[0]&2048&&(c.supportLink=r[11]),a[0]&32768&&(c.returnFocus=r[15]),!n&&a[0]&2097152&&(n=!0,c.ref=r[21],Ue(()=>n=!1)),i.$set(c)},i(r){o||(d(i.$$.fragment,r),o=!0)},o(r){b(i.$$.fragment,r),o=!1},d(r){r&&S(e),F(i)}}}function vp(t){let e,i,n;function o(l){t[154](l)}let s={};return t[20].interactiveTimeIndicator!==void 0&&(s.ref=t[20].interactiveTimeIndicator),e=new Bu({props:s}),_e.push(()=>qe(e,"ref",o)),{c(){U(e.$$.fragment)},m(l,r){H(e,l,r),n=!0},p(l,r){const a={};!i&&r[0]&1048576&&(i=!0,a.ref=l[20].interactiveTimeIndicator,Ue(()=>i=!1)),e.$set(a)},i(l){n||(d(e.$$.fragment,l),n=!0)},o(l){b(e.$$.fragment,l),n=!1},d(l){F(e,l)}}}function kp(t){let e,i,n,o,s,l,r,a,c,f,p,h,v,k,_,P,C,T,y=!t[4]&&Wr(t),M=t[4]&&t[30]!==xt.INACTIVE&&ia(t),oe=t[96]&&mp(t),Y=!t[4]&&t[25]&&la(t),R=t[41]&&sa(t);function ee(W){t[147](W)}let Q={className:"w-max",disabled:!t[43],$$slots:{default:[gp]},$$scope:{ctx:t}};t[20].episodes!==void 0&&(Q.ref=t[20].episodes),c=new Et({props:Q}),_e.push(()=>qe(c,"ref",ee));let w=t[38]&&aa(t),$=t[40]&&ua(t);k=new Cu({props:{isAds:t[4],canRewindLive:t[5],isRewindableLive:t[24]}});let X=t[23]&&ca(t),z=t[101]&&vp(t);return{c(){y&&y.c(),e=D(),M&&M.c(),i=D(),n=A("div"),o=A("div"),s=A("div"),oe&&oe.c(),l=D(),Y&&Y.c(),r=D(),R&&R.c(),a=D(),U(c.$$.fragment),p=D(),w&&w.c(),h=D(),$&&$.c(),v=D(),U(k.$$.fragment),_=D(),X&&X.c(),P=D(),z&&z.c(),C=ct(),u(s,"class","controls v-1tcstu3"),V(s,"mobile",!0),u(o,"class","controls-wrapper v-1tcstu3"),V(o,"fullscreen",t[52]),u(n,"class","wrapper-bottom v-1tcstu3"),V(n,"hidden",t[1]),V(n,"controls-hidden",!t[3]),V(n,"no-smooth",t[2]),V(n,"mobile",!0)},m(W,B){y&&y.m(W,B),I(W,e,B),M&&M.m(W,B),I(W,i,B),I(W,n,B),m(n,o),m(o,s),oe&&oe.m(s,null),m(s,l),Y&&Y.m(s,null),m(s,r),R&&R.m(s,null),m(s,a),H(c,s,null),m(s,p),w&&w.m(s,null),m(s,h),$&&$.m(s,null),t[151](s),m(o,v),H(k,o,null),t[152](n),I(W,_,B),X&&X.m(W,B),I(W,P,B),z&&z.m(W,B),I(W,C,B),T=!0},p(W,B){W[4]?y&&(ce(),b(y,1,1,()=>{y=null}),fe()):y?(y.p(W,B),B[0]&16&&d(y,1)):(y=Wr(W),y.c(),d(y,1),y.m(e.parentNode,e)),W[4]&&W[30]!==xt.INACTIVE?M?(M.p(W,B),B[0]&1073741840&&d(M,1)):(M=ia(W),M.c(),d(M,1),M.m(i.parentNode,i)):M&&(ce(),b(M,1,1,()=>{M=null}),fe()),W[96]&&oe.p(W,B),!W[4]&&W[25]?Y?(Y.p(W,B),B[0]&33554448&&d(Y,1)):(Y=la(W),Y.c(),d(Y,1),Y.m(s,r)):Y&&(ce(),b(Y,1,1,()=>{Y=null}),fe()),W[41]?R?(R.p(W,B),B[1]&1024&&d(R,1)):(R=sa(W),R.c(),d(R,1),R.m(s,a)):R&&(ce(),b(R,1,1,()=>{R=null}),fe());const J={};B[1]&4096&&(J.disabled=!W[43]),B[1]&1073745920|B[2]&1|B[5]&2097152&&(J.$$scope={dirty:B,ctx:W}),!f&&B[0]&1048576&&(f=!0,J.ref=W[20].episodes,Ue(()=>f=!1)),c.$set(J),W[38]?w?(w.p(W,B),B[1]&128&&d(w,1)):(w=aa(W),w.c(),d(w,1),w.m(s,h)):w&&(ce(),b(w,1,1,()=>{w=null}),fe()),W[40]?$?($.p(W,B),B[1]&512&&d($,1)):($=ua(W),$.c(),d($,1),$.m(s,null)):$&&(ce(),b($,1,1,()=>{$=null}),fe());const E={};B[0]&16&&(E.isAds=W[4]),B[0]&32&&(E.canRewindLive=W[5]),B[0]&16777216&&(E.isRewindableLive=W[24]),k.$set(E),(!T||B[1]&2097152)&&V(o,"fullscreen",W[52]),(!T||B[0]&2)&&V(n,"hidden",W[1]),(!T||B[0]&8)&&V(n,"controls-hidden",!W[3]),(!T||B[0]&4)&&V(n,"no-smooth",W[2]),W[23]?X?(X.p(W,B),B[0]&8388608&&d(X,1)):(X=ca(W),X.c(),d(X,1),X.m(P.parentNode,P)):X&&(ce(),b(X,1,1,()=>{X=null}),fe()),W[101]&&z.p(W,B)},i(W){T||(d(y),d(M),d(oe),d(Y),d(R),d(c.$$.fragment,W),d(w),d($),d(k.$$.fragment,W),d(X),d(z),T=!0)},o(W){b(y),b(M),b(oe),b(Y),b(R),b(c.$$.fragment,W),b(w),b($),b(k.$$.fragment,W),b(X),b(z),T=!1},d(W){W&&(S(e),S(i),S(n),S(_),S(P),S(C)),y&&y.d(W),M&&M.d(W),oe&&oe.d(),Y&&Y.d(),R&&R.d(),F(c),w&&w.d(),$&&$.d(),t[151](null),F(k),t[152](null),X&&X.d(W),z&&z.d(W)}}}function wp(t,e,i){let n,o,s,l,r,a,c,f,p,h,v,k,_,P,C,T,y,M,oe,Y,R,ee,Q,w,$,X,z,W,B,J,E,O,Ce,ze,Ee,Ve,Pe,{bottomHidden:me}=e,{bottomNoSmooth:Z}=e,{showControls:de}=e,{controlsElementRef:Se=void 0}=e,{isAds:Fe=!1}=e,{canRewindLive:je}=e,{logoClickable:re}=e,{logoHidden:we}=e,{logoTargetUrl:Me=""}=e,{showNextPrevButtons:We}=e,{nextButtonActive:ie}=e,{prevButtonActive:G}=e,{isOneVideoPlaylist:ye=!1}=e,{supportLink:se}=e,{customFullscreenSupported:ve=!0}=e,{playNextVideo:Oe}=e,{playPrevVideo:$e}=e,{repeatPlaylist:ot}=e,{toggleFullscreen:Be}=e,{returnFocus:ae}=e,{seekToInteractive:lt}=e,{toggleGraph:_t}=e,{playPrevChapter:at}=e,{onDisabledPlayPrevChapterClick:ht}=e,{onDisabledSeekToInteractiveClick:Ct}=e;const Le=pt(),qt=Ao(),ue=cn(),ft=Le.actions.internal.toggleMuted,vt=Le.actions.internal.togglePlay,Ze=Le.actions.internal.pause,et=Le.callbacks?.onAudioDoesNotExistHint,gt=Le.callbacks?.onAudioDisabledHint,kt=Le.playerPhase;N(t,kt,x=>i(126,R=x));const bi=Le.state.duration$;N(t,bi,x=>i(62,Pe=x));const _i=Le.state.positionWithScrubbing$;N(t,_i,x=>i(61,Ve=x));const vi=Le.state.playbackState$;N(t,vi,x=>i(121,h=x));const qi=Le.state.isAudioAvailable$;N(t,qi,x=>i(51,v=x));const Ji=Le.state.isAudioDisabled,oi=Le.state.isEnded$;N(t,oi,x=>i(127,Q=x));const li=Le.state.isLive$;N(t,li,x=>i(25,T=x));const ki=Le.state.muted$;N(t,ki,x=>i(54,B=x));const Zt=Le.state.isActiveLive$;N(t,Zt,x=>i(124,P=x));const si=Le.state.isRewindableLive$;N(t,si,x=>i(24,C=x));const Zi=Le.ui.scrubbingInProgress;N(t,Zi,x=>i(29,ee=x));const wi=Le.ui.mobileNotReportControlHidden$;N(t,wi,x=>i(27,oe=x));const yi=Le.ui.isPictureInPictureActive$;N(t,yi,x=>i(26,M=x));const ri=Le.ui.pictureInPictureType$;N(t,ri,x=>i(125,y=x));const Ci=Le.ui.mobileUnmuteButtonExpanded;N(t,Ci,x=>i(55,J=x));const ai=Le.ui.mobileUnmuteButtonVisible;N(t,ai,x=>i(53,W=x));const Ti=Le.ui.settingsMenuVisible;N(t,Ti,x=>i(23,p=x));const Pi=Le.ui.settingsMenuOpenedByKeyboard;N(t,Pi,x=>i(120,f=x));const wt=Le.ui.controls,Bt=Le.actions.internal.getVideoEpisodes(),Wt=Le.webApi.pictureInPictureApi,ui=Le.state.chromecastState$;N(t,ui,x=>i(28,Y=x));const Vt=Le.state.crashed$;N(t,Vt,x=>i(57,O=x));const ci=wt.disabledControls$;N(t,ci,x=>i(128,$=x));const Kt=Le.ui.startedByKeyboard$;N(t,Kt,x=>i(119,c=x));const ei=Le.ads.duration;N(t,ei,x=>i(60,Ee=x));const Tt=Le.ads.position;N(t,Tt,x=>i(59,ze=x));const Pt=Le.ads.playbackState;N(t,Pt,x=>i(30,w=x));const Rt=Le.ui.isFullscreen;N(t,Rt,x=>i(52,z=x));const jt=Le.ui.playerSize;N(t,jt,x=>i(123,_=x));const fi=Le.ui.additionalButtons$;N(t,fi,x=>i(56,E=x));const nn=Le.actions.internal.getVideoElement,Wi=Le.actions.internal.replayInteractive,Gt=Le.state.isInteractive,ti=Le.state.isInteractiveTime$;N(t,ti,x=>i(122,k=x));const Si=Le.state.showInteractiveGraph,Di=Le.state.showSeekToInteractive,Nt=Le.state.showPlayPrevChapter,bt=Le.state.showInteractiveTimeIndicator,Ii=Le.state.graphIsOpened$;N(t,Ii,x=>i(58,Ce=x));const Ki=qt.seekToInteractiveDisabledTooltip$;N(t,Ki,x=>i(129,X=x));let ii,ji,di,xi,Gi,$i,zi,Ai,Dt,Yt,mi,Oi,Hi,pi,Ei,Vi,He,Fi,Mt;const Ae={},Mi=cl(Mu,P1,{leading:!1}),Yi=()=>Le.actions.internal.toggleChromecast();function Ui(){zo({isAudioDisabled:Ji,audioDisabledHintCallback:gt,isAudioAvailable:v,audioIsNotExistHintCallback:et})&&ft()}async function Li(){Wt?.isActive()?await Wt?.remove():await Wt?.request()}function en(){!Ji&&v&&ai.set(!1),Ui()}const Bi=ye?vt:ot;let Qi="";const zt=(x,an)=>{if(!x){i(45,Qi=j("tooltip_live"));return}an===Ft.PAUSED&&i(45,Qi=j("tooltip_play"))};let Xi,ni;const ne=()=>{a&&ht(ii)},tt=()=>{s&&Ct(ji)};function Ot(x){t.$$.not_equal(Ae.volume,x)&&(Ae.volume=x,i(20,Ae))}function Qt(x){t.$$.not_equal(Ae.chromecast,x)&&(Ae.chromecast=x,i(20,Ae))}function Ri(x){t.$$.not_equal(Ae.pip,x)&&(Ae.pip=x,i(20,Ae))}function Ni(x){ni=x,i(22,ni)}function fn(x){t.$$.not_equal(Ae.vkLogo,x)&&(Ae.vkLogo=x,i(20,Ae))}function dn(x){t.$$.not_equal(Ae.prevButton,x)&&(Ae.prevButton=x,i(20,Ae))}function sn(x){t.$$.not_equal(Ae.playButton,x)&&(Ae.playButton=x,i(20,Ae))}function St(x){t.$$.not_equal(Ae.replayButton,x)&&(Ae.replayButton=x,i(20,Ae))}function Pn(x){t.$$.not_equal(Ae.nextButton,x)&&(Ae.nextButton=x,i(20,Ae))}function Sn(x){t.$$.not_equal(Ae.playPrevChapterButton,x)&&(Ae.playPrevChapterButton=x,i(20,Ae))}function mn(x){t.$$.not_equal(Ae.interactiveGraphButton,x)&&(Ae.interactiveGraphButton=x,i(20,Ae))}function gn(x){t.$$.not_equal(Ae.seekToInteractiveButton,x)&&(Ae.seekToInteractiveButton=x,i(20,Ae))}function rn(x){t.$$.not_equal(Ae.volume,x)&&(Ae.volume=x,i(20,Ae))}function on(x){t.$$.not_equal(Ae.playButton,x)&&(Ae.playButton=x,i(20,Ae))}function te(x){t.$$.not_equal(Ae.replayButton,x)&&(Ae.replayButton=x,i(20,Ae))}function dt(x){t.$$.not_equal(Ae.liveButton,x)&&(Ae.liveButton=x,i(20,Ae))}function bn(x){t.$$.not_equal(Ae.time,x)&&(Ae.time=x,i(20,Ae))}function In(x){t.$$.not_equal(Ae.episodes,x)&&(Ae.episodes=x,i(20,Ae))}function An(x){ni=x,i(22,ni)}function qn(x){t.$$.not_equal(Ae.settings,x)&&(Ae.settings=x,i(20,Ae))}function Zn(x){t.$$.not_equal(Ae.fullscreen,x)&&(Ae.fullscreen=x,i(20,Ae))}function Wn(x){_e[x?"unshift":"push"](()=>{Fi=x,i(44,Fi)})}function Kn(x){_e[x?"unshift":"push"](()=>{Se=x,i(0,Se)})}function jn(x){Xi=x,i(21,Xi)}function eo(x){t.$$.not_equal(Ae.interactiveTimeIndicator,x)&&(Ae.interactiveTimeIndicator=x,i(20,Ae))}return t.$$set=x=>{"bottomHidden"in x&&i(1,me=x.bottomHidden),"bottomNoSmooth"in x&&i(2,Z=x.bottomNoSmooth),"showControls"in x&&i(3,de=x.showControls),"controlsElementRef"in x&&i(0,Se=x.controlsElementRef),"isAds"in x&&i(4,Fe=x.isAds),"canRewindLive"in x&&i(5,je=x.canRewindLive),"logoClickable"in x&&i(6,re=x.logoClickable),"logoHidden"in x&&i(110,we=x.logoHidden),"logoTargetUrl"in x&&i(7,Me=x.logoTargetUrl),"showNextPrevButtons"in x&&i(8,We=x.showNextPrevButtons),"nextButtonActive"in x&&i(9,ie=x.nextButtonActive),"prevButtonActive"in x&&i(10,G=x.prevButtonActive),"isOneVideoPlaylist"in x&&i(111,ye=x.isOneVideoPlaylist),"supportLink"in x&&i(11,se=x.supportLink),"customFullscreenSupported"in x&&i(112,ve=x.customFullscreenSupported),"playNextVideo"in x&&i(12,Oe=x.playNextVideo),"playPrevVideo"in x&&i(13,$e=x.playPrevVideo),"repeatPlaylist"in x&&i(113,ot=x.repeatPlaylist),"toggleFullscreen"in x&&i(14,Be=x.toggleFullscreen),"returnFocus"in x&&i(15,ae=x.returnFocus),"seekToInteractive"in x&&i(16,lt=x.seekToInteractive),"toggleGraph"in x&&i(17,_t=x.toggleGraph),"playPrevChapter"in x&&i(18,at=x.playPrevChapter),"onDisabledPlayPrevChapterClick"in x&&i(114,ht=x.onDisabledPlayPrevChapterClick),"onDisabledSeekToInteractiveClick"in x&&i(115,Ct=x.onDisabledSeekToInteractiveClick)},t.$$.update=()=>{if(t.$$.dirty[4]&32&&(ji=j(X)),t.$$.dirty[4]&16&&i(118,n=$.has(rt.EPISODE_BUTTON)),t.$$.dirty[4]&16&&i(50,o=$.has(rt.GRAPH_BUTTON)),t.$$.dirty[4]&16&&i(46,s=$.has(rt.SEEK_TO_INTERACTIVE_BUTTON)),t.$$.dirty[4]&16&&i(49,l=$.has(rt.PLAY_BUTTON)),t.$$.dirty[4]&16&&i(48,r=$.has(rt.REPLAY_BUTTON)),t.$$.dirty[4]&16&&i(47,a=$.has(rt.PLAY_PREV_CHAPTER_BUTTON)),t.$$.dirty[3]&268435456&&i(31,di=h===Ft.PLAYING),t.$$.dirty[0]&1073741824&&i(32,xi=w===xt.PAUSED),t.$$.dirty[0]&16|t.$$.dirty[4]&8&&i(33,Gi=Q&&!Fe&&!Gt),t.$$.dirty[0]&16|t.$$.dirty[4]&8&&i(34,$i=!Q||Fe),t.$$.dirty[3]&1073741824&&i(116,zi=_.width>300),t.$$.dirty[3]&1073741824&&i(35,Ai=_.width>400),t.$$.dirty[0]&536870912&&i(117,Dt=ee),t.$$.dirty[0]&469762048|t.$$.dirty[4]&2&&i(36,Yt=Y!==Mn.NOT_AVAILABLE&&!(M&&y===Dn.DocumentPictureInPicture)&&!oe&&!Gt),t.$$.dirty[0]&402653184|t.$$.dirty[3]&16777216|t.$$.dirty[4]&6){const x=R===Ne.WaitingLive;i(37,mi=!!Wt&&Y!==Mn.CONNECTED&&!oe&&(y===Dn.DocumentPictureInPicture&&x||!x)&&!Dt&&!Gt)}t.$$.dirty[3]&16777216&&i(38,Oi=!Dt),t.$$.dirty[3]&1073872896&&i(39,Hi=!we&&_.width>350),t.$$.dirty[0]&67108864|t.$$.dirty[3]&17301504|t.$$.dirty[4]&2&&i(40,pi=ue.features.fullscreen&&!(M&&y===Dn.DocumentPictureInPicture)&&(Gt?ve:!0)&&!Dt),t.$$.dirty[0]&33554448|t.$$.dirty[3]&1090519040&&i(41,Ei=(!T||Fe)&&_.width>260&&!Dt&&!(ue.features.interactiveHideTime&&Gt)),t.$$.dirty[0]&8388616&&i(42,Vi=p||de),t.$$.dirty[0]&33554448|t.$$.dirty[3]&58720256&&i(43,He=!Fe&&!T&&!!Bt?.length&&zi&&!n&&!Dt),t.$$.dirty[0]&16777216|t.$$.dirty[4]&1&&i(19,Mt=!C||P),t.$$.dirty[0]&1048584|t.$$.dirty[3]&1610612736&&Mi(nn(),wt,Ae,de),t.$$.dirty[0]&524288|t.$$.dirty[3]&268435456&&zt(Mt,h),t.$$.dirty[0]&12582912&&Zl(ni,p,Pi),t.$$.dirty[0]&10485760|t.$$.dirty[3]&134217728&&ul(Xi,p,f),t.$$.dirty[0]&1048576|t.$$.dirty[3]&67108864&&Lu(Kt,c,Ae.playButton)},ii=j(Le.state.playPrevChapterDisabledTooltip),[Se,me,Z,de,Fe,je,re,Me,We,ie,G,se,Oe,$e,Be,ae,lt,_t,at,Mt,Ae,Xi,ni,p,C,T,M,oe,Y,ee,w,di,xi,Gi,$i,Ai,Yt,mi,Oi,Hi,pi,Ei,Vi,He,Fi,Qi,s,a,r,l,o,v,z,W,B,J,E,O,Ce,ze,Ee,Ve,Pe,vt,Ze,kt,bi,_i,vi,qi,Ji,oi,li,ki,Zt,si,Zi,wi,yi,ri,Ci,ai,Ti,Pi,Bt,ui,Vt,ci,Kt,ei,Tt,Pt,Rt,jt,fi,Wi,Gt,ti,Si,Di,Nt,bt,Ii,Ki,Yi,Li,en,Bi,ne,tt,we,ye,ve,ot,ht,Ct,zi,Dt,n,c,f,h,k,_,P,y,R,Q,$,X,Ot,Qt,Ri,Ni,fn,dn,sn,St,Pn,Sn,mn,gn,rn,on,te,dt,bn,In,An,qn,Zn,Wn,Kn,jn,eo]}class yp extends be{constructor(e){super(),ge(this,e,wp,kp,he,{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},up,[-1,-1,-1,-1,-1,-1])}}function Cp(t){let e,i,n;function o(l){t[28](l)}let s={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&&(s.controlsElementRef=t[0]),e=new Q3({props:s}),_e.push(()=>qe(e,"controlsElementRef",o)),{c(){U(e.$$.fragment)},m(l,r){H(e,l,r),n=!0},p(l,r){const a={};r&2&&(a.bottomHidden=l[1]),r&4&&(a.bottomNoSmooth=l[2]),r&8&&(a.showControls=l[3]),r&16&&(a.isAds=l[4]),r&32&&(a.canRewindLive=l[5]),r&64&&(a.logoClickable=l[6]),r&128&&(a.logoHidden=l[7]),r&256&&(a.logoTargetUrl=l[8]),r&512&&(a.showNextPrevButtons=l[9]),r&1024&&(a.nextButtonActive=l[10]),r&2048&&(a.prevButtonActive=l[11]),r&4096&&(a.isOneVideoPlaylist=l[12]),r&8192&&(a.supportLink=l[13]),r&16384&&(a.customFullscreenSupported=l[14]),r&32768&&(a.playNextVideo=l[15]),r&65536&&(a.playPrevVideo=l[16]),r&131072&&(a.repeatPlaylist=l[17]),r&262144&&(a.toggleFullscreen=l[18]),r&524288&&(a.returnFocus=l[19]),r&1048576&&(a.seekToInteractive=l[20]),r&2097152&&(a.toggleGraph=l[21]),r&4194304&&(a.playPrevChapter=l[22]),!i&&r&1&&(i=!0,a.controlsElementRef=l[0],Ue(()=>i=!1)),e.$set(a)},i(l){n||(d(e.$$.fragment,l),n=!0)},o(l){b(e.$$.fragment,l),n=!1},d(l){F(e,l)}}}function Tp(t){let e,i,n;function o(l){t[27](l)}let s={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&&(s.controlsElementRef=t[0]),e=new yp({props:s}),_e.push(()=>qe(e,"controlsElementRef",o)),{c(){U(e.$$.fragment)},m(l,r){H(e,l,r),n=!0},p(l,r){const a={};r&2&&(a.bottomHidden=l[1]),r&4&&(a.bottomNoSmooth=l[2]),r&8&&(a.showControls=l[3]),r&16&&(a.isAds=l[4]),r&32&&(a.canRewindLive=l[5]),r&64&&(a.logoClickable=l[6]),r&128&&(a.logoHidden=l[7]),r&256&&(a.logoTargetUrl=l[8]),r&512&&(a.showNextPrevButtons=l[9]),r&1024&&(a.nextButtonActive=l[10]),r&2048&&(a.prevButtonActive=l[11]),r&4096&&(a.isOneVideoPlaylist=l[12]),r&8192&&(a.supportLink=l[13]),r&16384&&(a.customFullscreenSupported=l[14]),r&32768&&(a.playNextVideo=l[15]),r&65536&&(a.playPrevVideo=l[16]),r&131072&&(a.repeatPlaylist=l[17]),r&262144&&(a.toggleFullscreen=l[18]),r&524288&&(a.returnFocus=l[19]),r&1048576&&(a.seekToInteractive=l[20]),r&2097152&&(a.toggleGraph=l[21]),r&4194304&&(a.playPrevChapter=l[22]),r&8388608&&(a.onDisabledPlayPrevChapterClick=l[23]),r&16777216&&(a.onDisabledSeekToInteractiveClick=l[24]),!i&&r&1&&(i=!0,a.controlsElementRef=l[0],Ue(()=>i=!1)),e.$set(a)},i(l){n||(d(e.$$.fragment,l),n=!0)},o(l){b(e.$$.fragment,l),n=!1},d(l){F(e,l)}}}function Pp(t){let e,i,n,o;const s=[Tp,Cp],l=[];function r(a,c){return a[25]?0:1}return e=r(t),i=l[e]=s[e](t),{c(){i.c(),n=ct()},m(a,c){l[e].m(a,c),I(a,n,c),o=!0},p(a,[c]){let f=e;e=r(a),e===f?l[e].p(a,c):(ce(),b(l[f],1,1,()=>{l[f]=null}),fe(),i=l[e],i?i.p(a,c):(i=l[e]=s[e](a),i.c()),d(i,1),i.m(n.parentNode,n))},i(a){o||(d(i),o=!0)},o(a){b(i),o=!1},d(a){a&&S(n),l[e].d(a)}}}function Sp(t,e,i){let n,{bottomHidden:o}=e,{bottomNoSmooth:s=!1}=e,{showControls:l}=e,{controlsElementRef:r=void 0}=e,{isAds:a=!1}=e,{canRewindLive:c}=e,{logoClickable:f}=e,{logoHidden:p}=e,{logoTargetUrl:h=""}=e,{showNextPrevButtons:v}=e,{nextButtonActive:k}=e,{prevButtonActive:_}=e,{isOneVideoPlaylist:P=!1}=e,{supportLink:C}=e,{customFullscreenSupported:T=!0}=e,{playNextVideo:y}=e,{playPrevVideo:M}=e,{repeatPlaylist:oe}=e,{toggleFullscreen:Y}=e,{returnFocus:R=Ye}=e,{seekToInteractive:ee}=e,{toggleGraph:Q}=e,{playPrevChapter:w}=e,{onDisabledPlayPrevChapterClick:$=Ye}=e,{onDisabledSeekToInteractiveClick:X=Ye}=e;const W=pt().ui.isMobile;N(t,W,E=>i(25,n=E));function B(E){r=E,i(0,r)}function J(E){r=E,i(0,r)}return t.$$set=E=>{"bottomHidden"in E&&i(1,o=E.bottomHidden),"bottomNoSmooth"in E&&i(2,s=E.bottomNoSmooth),"showControls"in E&&i(3,l=E.showControls),"controlsElementRef"in E&&i(0,r=E.controlsElementRef),"isAds"in E&&i(4,a=E.isAds),"canRewindLive"in E&&i(5,c=E.canRewindLive),"logoClickable"in E&&i(6,f=E.logoClickable),"logoHidden"in E&&i(7,p=E.logoHidden),"logoTargetUrl"in E&&i(8,h=E.logoTargetUrl),"showNextPrevButtons"in E&&i(9,v=E.showNextPrevButtons),"nextButtonActive"in E&&i(10,k=E.nextButtonActive),"prevButtonActive"in E&&i(11,_=E.prevButtonActive),"isOneVideoPlaylist"in E&&i(12,P=E.isOneVideoPlaylist),"supportLink"in E&&i(13,C=E.supportLink),"customFullscreenSupported"in E&&i(14,T=E.customFullscreenSupported),"playNextVideo"in E&&i(15,y=E.playNextVideo),"playPrevVideo"in E&&i(16,M=E.playPrevVideo),"repeatPlaylist"in E&&i(17,oe=E.repeatPlaylist),"toggleFullscreen"in E&&i(18,Y=E.toggleFullscreen),"returnFocus"in E&&i(19,R=E.returnFocus),"seekToInteractive"in E&&i(20,ee=E.seekToInteractive),"toggleGraph"in E&&i(21,Q=E.toggleGraph),"playPrevChapter"in E&&i(22,w=E.playPrevChapter),"onDisabledPlayPrevChapterClick"in E&&i(23,$=E.onDisabledPlayPrevChapterClick),"onDisabledSeekToInteractiveClick"in E&&i(24,X=E.onDisabledSeekToInteractiveClick)},[r,o,s,l,a,c,f,p,h,v,k,_,P,C,T,y,M,oe,Y,R,ee,Q,w,$,X,n,W,B,J]}class Nu extends be{constructor(e){super(),ge(this,e,Sp,Pp,he,{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})}}function Ip(t){Ke(t,"v-1ub874v",".reversed.v-1ub874v{transform:scaleX(-1)}")}function Ap(t){let e,i,n,o,s,l,r,a,c,f,p,h,v;return{c(){e=L("svg"),i=L("g"),n=L("path"),o=L("path"),s=L("defs"),l=L("filter"),r=L("feFlood"),a=L("feColorMatrix"),c=L("feOffset"),f=L("feGaussianBlur"),p=L("feColorMatrix"),h=L("feBlend"),v=L("feBlend"),u(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-.98l-7.659 4.85Z"),u(n,"fill","#fff"),u(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.19l-7.658 4.848Z"),u(o,"stroke","#000"),u(o,"stroke-opacity",".12"),u(o,"stroke-width",".5"),u(i,"filter","url(#a)"),u(r,"flood-opacity","0"),u(r,"result","BackgroundImageFix"),u(a,"in","SourceAlpha"),u(a,"values","0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0"),u(a,"result","hardAlpha"),u(f,"stdDeviation","2.5"),u(p,"values","0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.16 0"),u(h,"in2","BackgroundImageFix"),u(h,"result","effect1_dropShadow_2260_100684"),u(v,"in","SourceGraphic"),u(v,"in2","effect1_dropShadow_2260_100684"),u(v,"result","shape"),u(l,"id","a"),u(l,"x","2.5"),u(l,"y","0"),u(l,"width","43.996"),u(l,"height","49.5"),u(l,"filterUnits","userSpaceOnUse"),u(l,"color-interpolation-filters","sRGB"),u(e,"width","48"),u(e,"height","51"),u(e,"fill","none"),u(e,"xmlns","http://www.w3.org/2000/svg"),u(e,"aria-hidden","true"),u(e,"data-testid","seek-icon"),u(e,"class","v-1ub874v"),V(e,"reversed",t[0])},m(k,_){I(k,e,_),m(e,i),m(i,n),m(i,o),m(e,s),m(s,l),m(l,r),m(l,a),m(l,c),m(l,f),m(l,p),m(l,h),m(l,v)},p(k,[_]){_&1&&V(e,"reversed",k[0])},i:q,o:q,d(k){k&&S(e)}}}function Ep(t,e,i){let{reversed:n=!1}=e;return t.$$set=o=>{"reversed"in o&&i(0,n=o.reversed)},[n]}class Vp extends be{constructor(e){super(),ge(this,e,Ep,Ap,he,{reversed:0},Ip)}}function Mp(t){let e,i,n,o,s,l,r,a,c,f,p,h,v,k,_;return{c(){e=L("svg"),i=L("g"),n=L("path"),o=L("path"),s=L("defs"),l=L("clipPath"),r=L("path"),a=L("filter"),c=L("feFlood"),f=L("feColorMatrix"),p=L("feOffset"),h=L("feGaussianBlur"),v=L("feColorMatrix"),k=L("feBlend"),_=L("feBlend"),u(n,"fill-rule","evenodd"),u(n,"clip-rule","evenodd"),u(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 7ZM13.5 28a1.5 1.5 0 0 0 0 3h11a1.5 1.5 0 0 0 0-3h-11ZM12 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 22Zm18.5 6a1.5 1.5 0 0 0 0 3h4a1.5 1.5 0 0 0 0-3h-4ZM22 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 22Z"),u(n,"fill","#fff"),u(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.977V25.177c0 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.977V22.823c0-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-.01ZM12.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"),u(o,"stroke","#000"),u(o,"stroke-opacity",".12"),u(o,"stroke-width",".5"),u(i,"filter","url(#b)"),u(i,"clip-path","url(#a)"),u(r,"fill","#fff"),u(r,"d","M0 0h48v48H0z"),u(l,"id","a"),u(c,"flood-opacity","0"),u(c,"result","BackgroundImageFix"),u(f,"in","SourceAlpha"),u(f,"values","0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0"),u(f,"result","hardAlpha"),u(h,"stdDeviation","2.5"),u(v,"values","0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.16 0"),u(k,"in2","BackgroundImageFix"),u(k,"result","effect1_dropShadow_2260_104204"),u(_,"in","SourceGraphic"),u(_,"in2","effect1_dropShadow_2260_104204"),u(_,"result","shape"),u(a,"id","b"),u(a,"x","-1.5"),u(a,"y","1.5"),u(a,"width","51"),u(a,"height","45"),u(a,"filterUnits","userSpaceOnUse"),u(a,"color-interpolation-filters","sRGB"),u(e,"width","48"),u(e,"height","48"),u(e,"fill","none"),u(e,"xmlns","http://www.w3.org/2000/svg")},m(P,C){I(P,e,C),m(e,i),m(i,n),m(i,o),m(e,s),m(s,l),m(l,r),m(s,a),m(a,c),m(a,f),m(a,p),m(a,h),m(a,v),m(a,k),m(a,_)},d(P){P&&S(e)}}}function Lp(t){let e,i,n,o,s,l,r,a,c,f,p,h,v,k,_,P;return{c(){e=L("svg"),i=L("g"),n=L("path"),o=L("path"),s=L("path"),l=L("defs"),r=L("clipPath"),a=L("path"),c=L("filter"),f=L("feFlood"),p=L("feColorMatrix"),h=L("feOffset"),v=L("feGaussianBlur"),k=L("feColorMatrix"),_=L("feBlend"),P=L("feBlend"),u(n,"fill-rule","evenodd"),u(n,"clip-rule","evenodd"),u(n,"d","M6.56 4.44a1.5 1.5 0 1 0-2.12 2.12l3.088 3.09a10.499 10.499 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-3h-11ZM12 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 22Z"),u(n,"fill","#fff"),u(o,"d","M34.5 23.5h-4.639l12.552 12.551c.158-.254.306-.516.443-.784.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.5H34.5a1.5 1.5 0 0 1 0 3Z"),u(o,"fill","#fff"),u(s,"d","M29.861 23.25h-.603l.427.427 12.55 12.551.223.223.167-.268c.162-.26.313-.528.453-.803.637-1.25.912-2.617 1.044-4.226.128-1.573.128-3.522.128-5.977V22.823c0-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.128-.118.01-.235.02-.35.032l-.527.051.374.374 13.341 13.342.074.073H34.5a1.25 1.25 0 1 1 0 2.5h-4.639ZM6.737 4.263a1.75 1.75 0 0 0-2.474 2.474l2.903 2.904a10.75 10.75 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.977V25.177c0 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.474l-37-37ZM12.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"),u(s,"stroke","#000"),u(s,"stroke-opacity",".12"),u(s,"stroke-width",".5"),u(i,"filter","url(#b)"),u(i,"clip-path","url(#a)"),u(a,"fill","#fff"),u(a,"d","M0 0h48v48H0z"),u(r,"id","a"),u(f,"flood-opacity","0"),u(f,"result","BackgroundImageFix"),u(p,"in","SourceAlpha"),u(p,"values","0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0"),u(p,"result","hardAlpha"),u(v,"stdDeviation","2.5"),u(k,"values","0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.16 0"),u(_,"in2","BackgroundImageFix"),u(_,"result","effect1_dropShadow_2260_104293"),u(P,"in","SourceGraphic"),u(P,"in2","effect1_dropShadow_2260_104293"),u(P,"result","shape"),u(c,"id","b"),u(c,"x","-1.5"),u(c,"y","-1.5"),u(c,"width","51"),u(c,"height","51"),u(c,"filterUnits","userSpaceOnUse"),u(c,"color-interpolation-filters","sRGB"),u(e,"width","48"),u(e,"height","48"),u(e,"fill","none"),u(e,"xmlns","http://www.w3.org/2000/svg")},m(C,T){I(C,e,T),m(e,i),m(i,n),m(i,o),m(i,s),m(e,l),m(l,r),m(r,a),m(l,c),m(c,f),m(c,p),m(c,h),m(c,v),m(c,k),m(c,_),m(c,P)},d(C){C&&S(e)}}}function Bp(t){let e;function i(s,l){return s[0]?Lp:Mp}let n=i(t),o=n(t);return{c(){o.c(),e=ct()},m(s,l){o.m(s,l),I(s,e,l)},p(s,[l]){n!==(n=i(s))&&(o.d(1),o=n(s),o&&(o.c(),o.m(e.parentNode,e)))},i:q,o:q,d(s){s&&S(e),o.d(s)}}}function Rp(t,e,i){let{isOff:n=!1}=e;return t.$$set=o=>{"isOff"in o&&i(0,n=o.isOff)},[n]}class Du extends be{constructor(e){super(),ge(this,e,Rp,Bp,he,{isOff:0})}}function Np(t){Ke(t,"v-1ub874v",".reversed.v-1ub874v{transform:scaleX(-1)}")}function Dp(t){let e,i,n,o,s,l,r,a,c,f,p,h,v;return{c(){e=L("svg"),i=L("g"),n=L("path"),o=L("path"),s=L("defs"),l=L("filter"),r=L("feFlood"),a=L("feColorMatrix"),c=L("feOffset"),f=L("feGaussianBlur"),p=L("feColorMatrix"),h=L("feBlend"),v=L("feBlend"),u(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.044l-12.21 6.916Z"),u(n,"fill","#fff"),u(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"),u(o,"stroke","#000"),u(o,"stroke-opacity",".12"),u(o,"stroke-width",".5"),u(i,"filter","url(#a)"),u(r,"flood-opacity","0"),u(r,"result","BackgroundImageFix"),u(a,"in","SourceAlpha"),u(a,"values","0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0"),u(a,"result","hardAlpha"),u(f,"stdDeviation","2.5"),u(p,"values","0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.16 0"),u(h,"in2","BackgroundImageFix"),u(h,"result","effect1_dropShadow_2260_106627"),u(v,"in","SourceGraphic"),u(v,"in2","effect1_dropShadow_2260_106627"),u(v,"result","shape"),u(l,"id","a"),u(l,"x","3.402"),u(l,"y","10.105"),u(l,"width","40.098"),u(l,"height","27.785"),u(l,"filterUnits","userSpaceOnUse"),u(l,"color-interpolation-filters","sRGB"),u(e,"width","48"),u(e,"height","48"),u(e,"fill","none"),u(e,"xmlns","http://www.w3.org/2000/svg"),u(e,"aria-hidden","true"),u(e,"data-testid","rate-change-icon"),u(e,"class","v-1ub874v"),V(e,"reversed",t[0])},m(k,_){I(k,e,_),m(e,i),m(i,n),m(i,o),m(e,s),m(s,l),m(l,r),m(l,a),m(l,c),m(l,f),m(l,p),m(l,h),m(l,v)},p(k,[_]){_&1&&V(e,"reversed",k[0])},i:q,o:q,d(k){k&&S(e)}}}function zp(t,e,i){let{reversed:n=!1}=e;return t.$$set=o=>{"reversed"in o&&i(0,n=o.reversed)},[n]}class Op extends be{constructor(e){super(),ge(this,e,zp,Dp,he,{reversed:0},Np)}}function Hp(t){Ke(t,"v-1ub874v",".reversed.v-1ub874v{transform:scaleX(-1)}")}function Fp(t){let e,i,n,o,s,l,r,a,c,f,p,h,v;return{c(){e=L("svg"),i=L("g"),n=L("path"),o=L("path"),s=L("defs"),l=L("filter"),r=L("feFlood"),a=L("feColorMatrix"),c=L("feOffset"),f=L("feGaussianBlur"),p=L("feColorMatrix"),h=L("feBlend"),v=L("feBlend"),u(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.908 2.908 0 0 1 2.026 1.134c.549.73.549 1.991.549 4.511v14.69c0 2.52 0 3.78-.549 4.51a2.909 2.909 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 0v8.317Z"),u(n,"fill","#fff"),u(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.158 3.158 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.158 3.158 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.006-13.008 7.172Z"),u(o,"stroke","#000"),u(o,"stroke-opacity",".12"),u(o,"stroke-width",".5"),u(i,"filter","url(#a)"),u(r,"flood-opacity","0"),u(r,"result","BackgroundImageFix"),u(a,"in","SourceAlpha"),u(a,"values","0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0"),u(a,"result","hardAlpha"),u(f,"stdDeviation","2.5"),u(p,"values","0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.16 0"),u(h,"in2","BackgroundImageFix"),u(h,"result","effect1_dropShadow_2340_106922"),u(v,"in","SourceGraphic"),u(v,"in2","effect1_dropShadow_2340_106922"),u(v,"result","shape"),u(l,"id","a"),u(l,"x","5.5"),u(l,"y","5.5"),u(l,"width","37"),u(l,"height","37"),u(l,"filterUnits","userSpaceOnUse"),u(l,"color-interpolation-filters","sRGB"),u(e,"width","48"),u(e,"height","48"),u(e,"fill","none"),u(e,"xmlns","http://www.w3.org/2000/svg"),u(e,"aria-hidden","true"),u(e,"data-testid","episodes-seek-icon"),u(e,"class","v-1ub874v"),V(e,"reversed",t[0])},m(k,_){I(k,e,_),m(e,i),m(i,n),m(i,o),m(e,s),m(s,l),m(l,r),m(l,a),m(l,c),m(l,f),m(l,p),m(l,h),m(l,v)},p(k,[_]){_&1&&V(e,"reversed",k[0])},i:q,o:q,d(k){k&&S(e)}}}function Up(t,e,i){let{reversed:n=!1}=e;return t.$$set=o=>{"reversed"in o&&i(0,n=o.reversed)},[n]}class qp extends be{constructor(e){super(),ge(this,e,Up,Fp,he,{reversed:0},Hp)}}function Zp(t){Ke(t,"v-4ftgwp",`.hot-key-helpers-container.v-4ftgwp.v-4ftgwp{position:absolute;top:calc(50% - 40px);left:calc(50% - 100px);width:200px;height:120px;display:flex;align-items:center;flex-direction:column;animation:v-4ftgwp-fadeIn ease var(--controls-transition-duration);padding-top:14px;box-sizing:border-box}.hot-key-helpers-container.v-4ftgwp>div.v-4ftgwp{width:48px;height:48px;display:flex;justify-content:center;align-items:center}.hot-key-helpers-container.v-4ftgwp svg[data-testid="volume-off-icon"],.hot-key-helpers-container.v-4ftgwp svg[data-testid="volume-max-icon"]{transform:scale(2)}.hot-key-helpers-container.v-4ftgwp svg[data-testid="replay-icon"],.hot-key-helpers-container.v-4ftgwp svg[data-testid="play-icon"],.hot-key-helpers-container.v-4ftgwp svg[data-testid="pause-icon"]{transform:scale(2.5)}.hot-key-helpers-container--left.v-4ftgwp.v-4ftgwp{left:calc(25% - 100px)}.hot-key-helpers-container--right.v-4ftgwp.v-4ftgwp{left:calc(75% - 100px)}.hot-key-helpers-text.v-4ftgwp.v-4ftgwp{text-align:center;font-feature-settings:'clig' off, 'liga' off;text-shadow:0px 0px 5px rgba(0, 0, 0, 0.16);font-size:15px;font-style:normal;font-weight:600;line-height:20px;letter-spacing:-0.105px;width:100%;max-height:40px;margin-top:4px;display:-webkit-box;text-overflow:ellipsis;white-space:pre-wrap;overflow:hidden;-webkit-line-clamp:2;-webkit-box-orient:vertical}.hidden.v-4ftgwp.v-4ftgwp{visibility:hidden;animation:v-4ftgwp-fadeOut ease var(--controls-transition-duration);width:0;height:0}@keyframes v-4ftgwp-fadeIn{0%{opacity:0}100%{opacity:1}}@keyframes v-4ftgwp-fadeOut{0%{opacity:1}100%{opacity:0}}`)}function fa(t){let e,i=[Xe.BACKWARD_SEEK,Xe.FORWARD_SEEK].includes(t[4]),n,o,s,l,r,a,c=[Xe.RATE_DOWN,Xe.RATE_UP].includes(t[4]),f,p=[Xe.EPISODE_PREV,Xe.EPISODE_NEXT].includes(t[4]),h,v,k,_,P,C=i&&da(t),T=t[4]===Xe.PAUSE&&ma(),y=t[4]===Xe.PLAY&&pa(),M=t[4]===Xe.REPLAY&&ha(),oe=t[4]===Xe.SUBTITLES_OFF&&ga(),Y=t[4]===Xe.SUBTITLES_ON&&ba(),R=c&&_a(t),ee=p&&va(t),Q=t[4]===Xe.MUTE&&ka(),w=t[4]===Xe.VOLUME&&wa(),$=t[5]&&ya(t);return{c(){e=A("div"),C&&C.c(),n=D(),T&&T.c(),o=D(),y&&y.c(),s=D(),M&&M.c(),l=D(),oe&&oe.c(),r=D(),Y&&Y.c(),a=D(),R&&R.c(),f=D(),ee&&ee.c(),h=D(),Q&&Q.c(),v=D(),w&&w.c(),k=D(),$&&$.c(),_=ct(),u(e,"class","v-4ftgwp")},m(X,z){I(X,e,z),C&&C.m(e,null),m(e,n),T&&T.m(e,null),m(e,o),y&&y.m(e,null),m(e,s),M&&M.m(e,null),m(e,l),oe&&oe.m(e,null),m(e,r),Y&&Y.m(e,null),m(e,a),R&&R.m(e,null),m(e,f),ee&&ee.m(e,null),m(e,h),Q&&Q.m(e,null),m(e,v),w&&w.m(e,null),I(X,k,z),$&&$.m(X,z),I(X,_,z),P=!0},p(X,z){z&16&&(i=[Xe.BACKWARD_SEEK,Xe.FORWARD_SEEK].includes(X[4])),i?C?(C.p(X,z),z&16&&d(C,1)):(C=da(X),C.c(),d(C,1),C.m(e,n)):C&&(ce(),b(C,1,1,()=>{C=null}),fe()),X[4]===Xe.PAUSE?T?z&16&&d(T,1):(T=ma(),T.c(),d(T,1),T.m(e,o)):T&&(ce(),b(T,1,1,()=>{T=null}),fe()),X[4]===Xe.PLAY?y?z&16&&d(y,1):(y=pa(),y.c(),d(y,1),y.m(e,s)):y&&(ce(),b(y,1,1,()=>{y=null}),fe()),X[4]===Xe.REPLAY?M?z&16&&d(M,1):(M=ha(),M.c(),d(M,1),M.m(e,l)):M&&(ce(),b(M,1,1,()=>{M=null}),fe()),X[4]===Xe.SUBTITLES_OFF?oe?z&16&&d(oe,1):(oe=ga(),oe.c(),d(oe,1),oe.m(e,r)):oe&&(ce(),b(oe,1,1,()=>{oe=null}),fe()),X[4]===Xe.SUBTITLES_ON?Y?z&16&&d(Y,1):(Y=ba(),Y.c(),d(Y,1),Y.m(e,a)):Y&&(ce(),b(Y,1,1,()=>{Y=null}),fe()),z&16&&(c=[Xe.RATE_DOWN,Xe.RATE_UP].includes(X[4])),c?R?(R.p(X,z),z&16&&d(R,1)):(R=_a(X),R.c(),d(R,1),R.m(e,f)):R&&(ce(),b(R,1,1,()=>{R=null}),fe()),z&16&&(p=[Xe.EPISODE_PREV,Xe.EPISODE_NEXT].includes(X[4])),p?ee?(ee.p(X,z),z&16&&d(ee,1)):(ee=va(X),ee.c(),d(ee,1),ee.m(e,h)):ee&&(ce(),b(ee,1,1,()=>{ee=null}),fe()),X[4]===Xe.MUTE?Q?z&16&&d(Q,1):(Q=ka(),Q.c(),d(Q,1),Q.m(e,v)):Q&&(ce(),b(Q,1,1,()=>{Q=null}),fe()),X[4]===Xe.VOLUME?w?z&16&&d(w,1):(w=wa(),w.c(),d(w,1),w.m(e,null)):w&&(ce(),b(w,1,1,()=>{w=null}),fe()),X[5]?$?$.p(X,z):($=ya(X),$.c(),$.m(_.parentNode,_)):$&&($.d(1),$=null)},i(X){P||(d(C),d(T),d(y),d(M),d(oe),d(Y),d(R),d(ee),d(Q),d(w),P=!0)},o(X){b(C),b(T),b(y),b(M),b(oe),b(Y),b(R),b(ee),b(Q),b(w),P=!1},d(X){X&&(S(e),S(k),S(_)),C&&C.d(),T&&T.d(),y&&y.d(),M&&M.d(),oe&&oe.d(),Y&&Y.d(),R&&R.d(),ee&&ee.d(),Q&&Q.d(),w&&w.d(),$&&$.d(X)}}}function da(t){let e,i;return e=new Vp({props:{reversed:t[4]===Xe.FORWARD_SEEK}}),{c(){U(e.$$.fragment)},m(n,o){H(e,n,o),i=!0},p(n,o){const s={};o&16&&(s.reversed=n[4]===Xe.FORWARD_SEEK),e.$set(s)},i(n){i||(d(e.$$.fragment,n),i=!0)},o(n){b(e.$$.fragment,n),i=!1},d(n){F(e,n)}}}function ma(t){let e,i;return e=new bu({}),{c(){U(e.$$.fragment)},m(n,o){H(e,n,o),i=!0},i(n){i||(d(e.$$.fragment,n),i=!0)},o(n){b(e.$$.fragment,n),i=!1},d(n){F(e,n)}}}function pa(t){let e,i;return e=new Gl({}),{c(){U(e.$$.fragment)},m(n,o){H(e,n,o),i=!0},i(n){i||(d(e.$$.fragment,n),i=!0)},o(n){b(e.$$.fragment,n),i=!1},d(n){F(e,n)}}}function ha(t){let e,i;return e=new Iu({}),{c(){U(e.$$.fragment)},m(n,o){H(e,n,o),i=!0},i(n){i||(d(e.$$.fragment,n),i=!0)},o(n){b(e.$$.fragment,n),i=!1},d(n){F(e,n)}}}function ga(t){let e,i;return e=new Du({props:{isOff:!0}}),{c(){U(e.$$.fragment)},m(n,o){H(e,n,o),i=!0},i(n){i||(d(e.$$.fragment,n),i=!0)},o(n){b(e.$$.fragment,n),i=!1},d(n){F(e,n)}}}function ba(t){let e,i;return e=new Du({}),{c(){U(e.$$.fragment)},m(n,o){H(e,n,o),i=!0},i(n){i||(d(e.$$.fragment,n),i=!0)},o(n){b(e.$$.fragment,n),i=!1},d(n){F(e,n)}}}function _a(t){let e,i;return e=new Op({props:{reversed:t[4]===Xe.RATE_UP}}),{c(){U(e.$$.fragment)},m(n,o){H(e,n,o),i=!0},p(n,o){const s={};o&16&&(s.reversed=n[4]===Xe.RATE_UP),e.$set(s)},i(n){i||(d(e.$$.fragment,n),i=!0)},o(n){b(e.$$.fragment,n),i=!1},d(n){F(e,n)}}}function va(t){let e,i;return e=new qp({props:{reversed:t[4]===Xe.EPISODE_NEXT}}),{c(){U(e.$$.fragment)},m(n,o){H(e,n,o),i=!0},p(n,o){const s={};o&16&&(s.reversed=n[4]===Xe.EPISODE_NEXT),e.$set(s)},i(n){i||(d(e.$$.fragment,n),i=!0)},o(n){b(e.$$.fragment,n),i=!1},d(n){F(e,n)}}}function ka(t){let e,i;return e=new fl({props:{volume:0}}),{c(){U(e.$$.fragment)},m(n,o){H(e,n,o),i=!0},i(n){i||(d(e.$$.fragment,n),i=!0)},o(n){b(e.$$.fragment,n),i=!1},d(n){F(e,n)}}}function wa(t){let e,i;return e=new fl({props:{volume:1}}),{c(){U(e.$$.fragment)},m(n,o){H(e,n,o),i=!0},i(n){i||(d(e.$$.fragment,n),i=!0)},o(n){b(e.$$.fragment,n),i=!1},d(n){F(e,n)}}}function ya(t){let e,i;return{c(){e=A("span"),i=De(t[5]),u(e,"class","hot-key-helpers-text v-4ftgwp")},m(n,o){I(n,e,o),m(e,i)},p(n,o){o&32&&xe(i,n[5])},d(n){n&&S(e)}}}function Wp(t){let e,i,n=!t[1]&&t[4]&&fa(t);return{c(){e=A("div"),n&&n.c(),u(e,"class","hot-key-helpers-container v-4ftgwp"),V(e,"hidden",t[1]),V(e,"hot-key-helpers-container--left",t[2]),V(e,"hot-key-helpers-container--right",t[3])},m(o,s){I(o,e,s),n&&n.m(e,null),i=!0},p(o,[s]){!o[1]&&o[4]?n?(n.p(o,s),s&18&&d(n,1)):(n=fa(o),n.c(),d(n,1),n.m(e,null)):n&&(ce(),b(n,1,1,()=>{n=null}),fe()),(!i||s&2)&&V(e,"hidden",o[1]),(!i||s&4)&&V(e,"hot-key-helpers-container--left",o[2]),(!i||s&8)&&V(e,"hot-key-helpers-container--right",o[3])},i(o){i||(d(n),i=!0)},o(o){b(n),i=!1},d(o){o&&S(e),n&&n.d()}}}function Kp(t,e,i){let n,o=q,s=()=>(o(),o=Jt(l,h=>i(6,n=h)),l);t.$$.on_destroy.push(()=>o());let{data:l}=e;s();let r,a,c,f,p;return t.$$set=h=>{"data"in h&&s(i(0,l=h.data))},t.$$.update=()=>{t.$$.dirty&64&&(i(1,r=!n),i(2,a=n?.type===Xe.BACKWARD_SEEK),i(3,c=n?.type===Xe.FORWARD_SEEK),i(4,f=n?.type),n?.t?i(5,p=j(n.t.key,{value:n.t.value||""})):i(5,p=n?.text))},[l,r,a,c,f,p,n]}class jp extends be{constructor(e){super(),ge(this,e,Kp,Wp,he,{data:0},Zp)}}function Gp(t){Ke(t,"v-1yzc86r",".immersive-controls.v-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.v-1yzc86r{top:50px;left:20px}.button-block.v-1yzc86r{width:40px;height:40px;margin:auto auto;transform:rotate(45deg)}.button-row.v-1yzc86r{display:flex;flex-direction:row;position:relative}.button.v-1yzc86r{width:20px;height:20px;text-align:center;cursor:pointer}.button.v-1yzc86r svg{opacity:0.7;transition:opacity linear 0.2s}.button.button-up.v-1yzc86r svg{transform:rotate(-45deg) translate(-1px, -1px)}.button.button-right.v-1yzc86r svg{transform:rotate(45deg) translate(1px, -1px)}.button.button-down.v-1yzc86r svg{transform:rotate(135deg) translate(1px, -3px)}.button.button-left.v-1yzc86r svg{transform:rotate(-135deg) translate(-1px, -3px)}.button.v-1yzc86r:hover svg{opacity:1}")}function Yp(t){let e,i,n,o,s,l,r,a,c,f,p,h,v,k,_,P,C,T;return s=new Jn({props:{direction:"up"}}),a=new Jn({props:{direction:"up"}}),h=new Jn({props:{direction:"up"}}),_=new Jn({props:{direction:"up"}}),{c(){e=A("div"),i=A("div"),n=A("div"),o=A("div"),U(s.$$.fragment),l=D(),r=A("div"),U(a.$$.fragment),c=D(),f=A("div"),p=A("div"),U(h.$$.fragment),v=D(),k=A("div"),U(_.$$.fragment),u(o,"class","button button-up v-1yzc86r"),u(r,"class","button button-right v-1yzc86r"),u(n,"class","button-row v-1yzc86r"),u(p,"class","button button-left v-1yzc86r"),u(k,"class","button button-down v-1yzc86r"),u(f,"class","button-row v-1yzc86r"),u(i,"class","button-block v-1yzc86r"),u(i,"aria-hidden","true"),u(e,"class","immersive-controls v-1yzc86r"),u(e,"tabindex","0"),u(e,"role","button"),u(e,"aria-label",j("aria_label_spherical_control")),V(e,"m-shifted",t[0])},m(y,M){I(y,e,M),m(e,i),m(i,n),m(n,o),H(s,o,null),m(n,l),m(n,r),H(a,r,null),m(i,c),m(i,f),m(f,p),H(h,p,null),m(f,v),m(f,k),H(_,k,null),P=!0,C||(T=[pe(o,"mousedown",t[1]),pe(o,"mouseup",t[5]),pe(o,"mouseleave",t[5]),pe(r,"mousedown",t[3]),pe(r,"mouseup",t[5]),pe(r,"mouseleave",t[5]),pe(p,"mousedown",t[4]),pe(p,"mouseup",t[5]),pe(p,"mouseleave",t[5]),pe(k,"mousedown",t[2]),pe(k,"mouseup",t[5]),pe(k,"mouseleave",t[5]),pe(e,"keydown",t[6]),pe(e,"keyup",t[7])],C=!0)},p(y,[M]){(!P||M&1)&&V(e,"m-shifted",y[0])},i(y){P||(d(s.$$.fragment,y),d(a.$$.fragment,y),d(h.$$.fragment,y),d(_.$$.fragment,y),P=!0)},o(y){b(s.$$.fragment,y),b(a.$$.fragment,y),b(h.$$.fragment,y),b(_.$$.fragment,y),P=!1},d(y){y&&S(e),F(s),F(a),F(h),F(_),C=!1,it(T)}}}function Qp(t,e,i){let{isShifted:n=!1}=e;const o=pt(),s=new Set([Te.ArrowUp,Te.ArrowDown,Te.ArrowLeft,Te.ArrowRight]),l=()=>{o.actions.internal.startCameraManualRotation(0,1)},r=()=>{o.actions.internal.startCameraManualRotation(0,-1)},a=()=>{o.actions.internal.startCameraManualRotation(1,0)},c=()=>{o.actions.internal.startCameraManualRotation(-1,0)},f=()=>(o.actions.internal.stopCameraManualRotation(),null),p=v=>{if(s.has(v.code))switch(v.preventDefault(),v.stopPropagation(),v.code){case Te.ArrowUp:l();break;case Te.ArrowDown:r();break;case Te.ArrowLeft:c();break;case Te.ArrowRight:a();break}},h=v=>{s.has(v.code)&&(v.preventDefault(),v.stopPropagation(),f())};return t.$$set=v=>{"isShifted"in v&&i(0,n=v.isShifted)},[n,l,r,a,c,f,p,h]}class zu extends be{constructor(e){super(),ge(this,e,Qp,Yp,he,{isShifted:0},Gp)}}function Xp(t){Ke(t,"v-ovfyp5",".subtitles-container.v-ovfyp5.v-ovfyp5{position:absolute;top:0;left:0;width:100%;height:100%;pointer-events:none;transition:transform var(--controls-transition-duration)}.subtitles-container.shifted.v-ovfyp5.v-ovfyp5{transform:translateY(calc(var(--controls-height) * -1))}.subtitles-caption.v-ovfyp5.v-ovfyp5{position:absolute;left:4%;right:4%;bottom:4%;display:flex;justify-content:center}.subtitles-caption.mobile.v-ovfyp5.v-ovfyp5{bottom:8%}.subtitles-container.auto.v-ovfyp5 .subtitles-caption.v-ovfyp5{left:24%;right:24%}.caption.v-ovfyp5.v-ovfyp5{display:block;overflow-wrap:normal;padding:4px 8px;border-radius:4px;background:rgba(0, 0, 0, 0.4)}.subtitles-container.auto.v-ovfyp5 .caption.v-ovfyp5{width:100%}.caption-line.v-ovfyp5.v-ovfyp5{display:block;text-align:center}.subtitles-container.auto.v-ovfyp5 .caption-line.v-ovfyp5{text-align:left}.caption-segment.v-ovfyp5.v-ovfyp5{display:inline-block;line-height:1.2;font-size:13px;color:var(--white);white-space:pre-wrap}")}function Ca(t,e,i){const n=t.slice();return n[16]=e[i].value,n}function Ta(t,e,i){const n=t.slice();return n[16]=e[i].value,n[17]=e[i].timeAppeared,n}function Pa(t){let e,i;function n(l,r){return l[7]&&l[8]?$p:l[5]?xp:Jp}let o=n(t),s=o(t);return{c(){e=A("div"),i=A("span"),s.c(),u(i,"class","caption v-ovfyp5"),u(e,"class","subtitles-caption v-ovfyp5"),V(e,"mobile",t[3])},m(l,r){I(l,e,r),m(e,i),s.m(i,null)},p(l,r){o===(o=n(l))&&s?s.p(l,r):(s.d(1),s=o(l),s&&(s.c(),s.m(i,null))),r&8&&V(e,"mobile",l[3])},d(l){l&&S(e),s.d()}}}function Jp(t){let e,i=Ut(t[1]),n=[];for(let o=0;o<i.length;o+=1)n[o]=Sa(Ca(t,i,o));return{c(){for(let o=0;o<n.length;o+=1)n[o].c();e=ct()},m(o,s){for(let l=0;l<n.length;l+=1)n[l]&&n[l].m(o,s);I(o,e,s)},p(o,s){if(s&18){i=Ut(o[1]);let l;for(l=0;l<i.length;l+=1){const r=Ca(o,i,l);n[l]?n[l].p(r,s):(n[l]=Sa(r),n[l].c(),n[l].m(e.parentNode,e))}for(;l<n.length;l+=1)n[l].d(1);n.length=i.length}},d(o){o&&S(e),Tn(n,o)}}}function xp(t){let e,i,n=Ut(t[6]),o=[];for(let s=0;s<n.length;s+=1)o[s]=Aa(Ta(t,n,s));return{c(){e=A("span"),i=A("span");for(let s=0;s<o.length;s+=1)o[s].c();u(i,"class","caption-segment v-ovfyp5"),At(i,"font-size",t[4]+"px"),u(e,"class","caption-line v-ovfyp5")},m(s,l){I(s,e,l),m(e,i);for(let r=0;r<o.length;r+=1)o[r]&&o[r].m(i,null)},p(s,l){if(l&68){n=Ut(s[6]);let r;for(r=0;r<n.length;r+=1){const a=Ta(s,n,r);o[r]?o[r].p(a,l):(o[r]=Aa(a),o[r].c(),o[r].m(i,null))}for(;r<o.length;r+=1)o[r].d(1);o.length=n.length}l&16&&At(i,"font-size",s[4]+"px")},d(s){s&&S(e),Tn(o,s)}}}function $p(t){let e,i,n=j("subtitles_auto_caption")+"",o;return{c(){e=A("span"),i=A("span"),o=De(n),u(i,"class","caption-segment v-ovfyp5"),At(i,"font-size",t[4]+"px"),u(e,"class","caption-line v-ovfyp5")},m(s,l){I(s,e,l),m(e,i),m(i,o)},p(s,l){l&16&&At(i,"font-size",s[4]+"px")},d(s){s&&S(e)}}}function Sa(t){let e,i,n=t[16]+"",o,s;return{c(){e=A("span"),i=A("span"),o=De(n),s=D(),u(i,"class","caption-segment v-ovfyp5"),At(i,"font-size",t[4]+"px"),u(e,"class","caption-line v-ovfyp5")},m(l,r){I(l,e,r),m(e,i),m(i,o),m(e,s)},p(l,r){r&2&&n!==(n=l[16]+"")&&xe(o,n),r&16&&At(i,"font-size",l[4]+"px")},d(l){l&&S(e)}}}function Ia(t){let e=t[16]+"",i;return{c(){i=De(e)},m(n,o){I(n,i,o)},p(n,o){o&64&&e!==(e=n[16]+"")&&xe(i,e)},d(n){n&&S(i)}}}function Aa(t){let e,i=(!t[17]||t[17]<=t[2])&&Ia(t);return{c(){i&&i.c(),e=ct()},m(n,o){i&&i.m(n,o),I(n,e,o)},p(n,o){!n[17]||n[17]<=n[2]?i?i.p(n,o):(i=Ia(n),i.c(),i.m(e.parentNode,e)):i&&(i.d(1),i=null)},d(n){n&&S(e),i&&i.d(n)}}}function eh(t){let e,i=t[1].length>0&&Pa(t);return{c(){e=A("div"),i&&i.c(),u(e,"class","subtitles-container v-ovfyp5"),V(e,"shifted",t[0]),V(e,"auto",t[5]&&!t[8])},m(n,o){I(n,e,o),i&&i.m(e,null)},p(n,[o]){n[1].length>0?i?i.p(n,o):(i=Pa(n),i.c(),i.m(e,null)):i&&(i.d(1),i=null),o&1&&V(e,"shifted",n[0]),o&288&&V(e,"auto",n[5]&&!n[8])},i:q,o:q,d(n){n&&S(e),i&&i.d()}}}function th(t,e,i){let n,o,{shifted:s}=e,{captions:l}=e,{position:r}=e,{playerSize:a}=e,{isMobile:c=!1}=e;const f=pt(),p=cn(),h=f.state.currentSubtitle$;N(t,h,y=>i(12,n=y));const v=f.state.isAutoSubtitleCaptionVisible$;N(t,v,y=>i(8,o=y));let k,_,P,C,T;return ln(()=>{T=window.setTimeout(()=>{v.set(!1)},p.autoSubtitlesTimeout)}),qo(()=>{window.clearTimeout(T)}),t.$$set=y=>{"shifted"in y&&i(0,s=y.shifted),"captions"in y&&i(1,l=y.captions),"position"in y&&i(2,r=y.position),"playerSize"in y&&i(11,a=y.playerSize),"isMobile"in y&&i(3,c=y.isMobile)},t.$$.update=()=>{if(t.$$.dirty&2048){const y=a.width*.02;i(4,k=y<=p.minSubtitlesFontSize?p.minSubtitlesFontSize:y)}t.$$.dirty&2&&i(5,_=l.some(y=>y.type==="timestamp")),t.$$.dirty&2&&i(6,P=l.reduce((y,{type:M,value:oe})=>(M==="timestamp"?y.push({timeAppeared:Number(oe),value:""}):y.length===0?y.push({value:String(oe)}):y[y.length-1].value=String(oe),y),[])),t.$$.dirty&4096&&i(7,C=!!n.isAuto)},[s,l,r,c,k,_,P,C,o,h,v,a,n]}class Ou extends be{constructor(e){super(),ge(this,e,th,eh,he,{shifted:0,captions:1,position:2,playerSize:11,isMobile:3},Xp)}}function ih(t){Ke(t,"v-1o62kpz",".wrapper.v-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.v-1o62kpz{display:flex;flex-direction:column;align-items:center;width:400px}.icon.v-1o62kpz{width:50px;height:50px}.text.v-1o62kpz{margin-top:20px}")}function Ea(t){let e,i,n;return{c(){e=A("div"),i=De("\u0412\u0438\u0434\u0435\u043E \u0432\u043E\u0441\u043F\u0440\u043E\u0438\u0437\u0432\u043E\u0434\u0438\u0442\u0441\u044F \u043D\u0430 "),n=De(t[1]),u(e,"class","text v-1o62kpz")},m(o,s){I(o,e,s),m(e,i),m(e,n)},p(o,s){s&2&&xe(n,o[1])},d(o){o&&S(e)}}}function nh(t){let e,i,n,o,s,l,r=t[1]&&Ea(t);return{c(){e=A("div"),i=A("div"),i.innerHTML='<svg class="icon v-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=D(),r&&r.c(),u(i,"class","icon_wrapper v-1o62kpz"),u(e,"class","wrapper v-1o62kpz"),u(e,"style",o=`background-image: linear-gradient(0deg, rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)), url('${t[0]||""}')`)},m(a,c){I(a,e,c),m(e,i),m(e,n),r&&r.m(e,null),s||(l=pe(e,"click",t[2]),s=!0)},p(a,[c]){a[1]?r?r.p(a,c):(r=Ea(a),r.c(),r.m(e,null)):r&&(r.d(1),r=null),c&1&&o!==(o=`background-image: linear-gradient(0deg, rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)), url('${a[0]||""}')`)&&u(e,"style",o)},i:q,o:q,d(a){a&&S(e),r&&r.d(),s=!1,l()}}}function oh(t,e,i){let{thumbUrl:n}=e,{chromecastDeviceName:o}=e;function s(l){uo.call(this,t,l)}return t.$$set=l=>{"thumbUrl"in l&&i(0,n=l.thumbUrl),"chromecastDeviceName"in l&&i(1,o=l.chromecastDeviceName)},[n,o,s]}class Hu extends be{constructor(e){super(),ge(this,e,oh,nh,he,{thumbUrl:0,chromecastDeviceName:1},ih)}}function lh(t){let e,i;return{c(){e=L("svg"),i=L("path"),u(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 12zm36 0a6 6 0 1 0 0-12 6 6 0 0 0 0 12zm-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.657 1.315 1.158 2.315 1.158 4.357-.327-.007.007 5.357-4.515 11.408-4.515z"),u(i,"fill","#fff"),u(i,"fill-rule","evenodd"),u(e,"width","200"),u(e,"height","200"),u(e,"viewBox","460 190 130 90"),u(e,"xmlns","http://www.w3.org/2000/svg"),u(e,"aria-hidden","true"),u(e,"data-testid","error-icon")},m(n,o){I(n,e,o),m(e,i)},p:q,i:q,o:q,d(n){n&&S(e)}}}class sh extends be{constructor(e){super(),ge(this,e,null,lh,he,{})}}function rh(t){Ke(t,"v-13zpvm8",".container.v-13zpvm8{position:absolute;top:0;bottom:0;left:0;right:0;background:#000;display:flex;align-items:center;justify-content:center}")}function ah(t){let e,i,n;return i=new sh({}),{c(){e=A("div"),U(i.$$.fragment),u(e,"class","container v-13zpvm8")},m(o,s){I(o,e,s),H(i,e,null),n=!0},p:q,i(o){n||(d(i.$$.fragment,o),n=!0)},o(o){b(i.$$.fragment,o),n=!1},d(o){o&&S(e),F(i)}}}class Fu extends be{constructor(e){super(),ge(this,e,null,ah,he,{},rh)}}function uh(t){Ke(t,"v-17wno3",".container.v-17wno3.v-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.v-17wno3.v-17wno3{opacity:0;visibility:hidden}.playButton.v-17wno3.v-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.v-17wno3.v-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.v-17wno3:hover .playButtonBackground.v-17wno3{background-color:var(--big-play-hover-bg-color);transform:scale(1.15)}.playButton.v-17wno3 svg{transform:scale(2)}")}function ch(t){let e,i,n,o,s,l,r,a,c;return s=new Gl({}),{c(){e=A("div"),i=A("div"),n=A("div"),o=D(),U(s.$$.fragment),u(n,"class","playButtonBackground v-17wno3"),u(i,"class","playButton v-17wno3"),u(i,"tabindex","0"),u(i,"role","button"),u(i,"aria-label",j("tooltip_play")),u(e,"class","container v-17wno3"),u(e,"style",l=`background-color: #222; background-image: url('${t[0]||""}')`),V(e,"hidden",t[1])},m(f,p){I(f,e,p),m(e,i),m(i,n),m(i,o),H(s,i,null),r=!0,a||(c=[pe(i,"keydown",t[3]),pe(e,"click",nt(function(){yn(t[2])&&t[2].apply(this,arguments)}))],a=!0)},p(f,[p]){t=f,(!r||p&1&&l!==(l=`background-color: #222; background-image: url('${t[0]||""}')`))&&u(e,"style",l),(!r||p&2)&&V(e,"hidden",t[1])},i(f){r||(d(s.$$.fragment,f),r=!0)},o(f){b(s.$$.fragment,f),r=!1},d(f){f&&S(e),F(s),a=!1,it(c)}}}function fh(t,e,i){let{thumbUrl:n}=e,{hidden:o}=e,{startVideo:s}=e;const r=pt().ui.startedByKeyboard$,a=c=>{const f=c.code;[Te.Enter,Te.Space].includes(f)&&(c.stopPropagation(),c.preventDefault(),r.set(!0),s())};return t.$$set=c=>{"thumbUrl"in c&&i(0,n=c.thumbUrl),"hidden"in c&&i(1,o=c.hidden),"startVideo"in c&&i(2,s=c.startVideo)},[n,o,s,a]}class Uu extends be{constructor(e){super(),ge(this,e,fh,ch,he,{thumbUrl:0,hidden:1,startVideo:2,handlePressKey:3},uh)}get handlePressKey(){return this.$$.ctx[3]}}function dh(t){Ke(t,"v-1bcvcf2",`.title.v-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(
|
|
24
|
+
)}`)}function Cf(i){let e;return{c(){e=P("div"),c(e,"class","top-gradient-mobile svelte-354ajf")},m(t,n){C(t,e,n)},d(t){t&&w(e)}}}function Sf(i){let e,t;return e=new wf({props:{position:i[5],secondsToWatchBeforeSkip:i[6],skipAd:i[8].actions.internal.skipAd}}),{c(){B(e.$$.fragment)},m(n,o){L(e,n,o),t=!0},p(n,o){let l={};o&32&&(l.position=n[5]),o&64&&(l.secondsToWatchBeforeSkip=n[6]),e.$set(l)},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){_(e.$$.fragment,n),t=!1},d(n){R(e,n)}}}function Pf(i){let e,t;return e=new yf({}),{c(){B(e.$$.fragment)},m(n,o){L(e,n,o),t=!0},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){_(e.$$.fragment,n),t=!1},d(n){R(e,n)}}}function If(i){let e,t;return e=new kf({}),{c(){B(e.$$.fragment)},m(n,o){L(e,n,o),t=!0},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){_(e.$$.fragment,n),t=!1},d(n){R(e,n)}}}function G_(i){let e,t,n,o,l,r,a,s=i[0]&&Cf(i),u=i[3]&&Sf(i),f=i[7]&&Pf(i),p=i[4]&&If(i);return{c(){e=P("div"),s&&s.c(),t=O(),n=P("video"),o=O(),u&&u.c(),l=O(),f&&f.c(),r=O(),p&&p.c(),fi(n,"width","100%"),fi(n,"height","100%"),n.playsInline=!0,c(e,"class","container svelte-354ajf")},m(h,b){C(h,e,b),s&&s.m(e,null),m(e,t),m(e,n),i[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),i[20](e),a=!0},p(h,[b]){h[0]?s||(s=Cf(h),s.c(),s.m(e,t)):s&&(s.d(1),s=null),h[3]?u?(u.p(h,b),b&8&&d(u,1)):(u=Sf(h),u.c(),d(u,1),u.m(e,l)):u&&(ue(),_(u,1,1,()=>{u=null}),ce()),h[7]?f?b&128&&d(f,1):(f=Pf(h),f.c(),d(f,1),f.m(e,r)):f&&(ue(),_(f,1,1,()=>{f=null}),ce()),h[4]?p?b&16&&d(p,1):(p=If(h),p.c(),d(p,1),p.m(e,null)):p&&(ue(),_(p,1,1,()=>{p=null}),ce())},i(h){a||(d(u),d(f),d(p),a=!0)},o(h){_(u),_(f),_(p),a=!1},d(h){h&&w(e),s&&s.d(),i[19](null),u&&u.d(),f&&f.d(),p&&p.d(),i[20](null)}}}function Q_(i,e,t){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=et(),b=h.state.isEnded$;F(i,b,V=>t(7,a=V));let g=h.ui.isMobile;F(i,g,V=>t(0,o=V));let S,y,T=!1,k=h.ads.playbackState;F(i,k,V=>t(18,n=V));let v=h.ads.canSkip,I=h.ads.position;F(i,I,V=>t(5,l=V));let W=h.ads.secondsToWatchBeforeSkip;F(i,W,V=>t(6,r=V));let Q,G;Ct(()=>{let V=new AbortController,A=()=>{V.abort()},$=h.getAdmanWrapper();if(!s){$.onAdmanLoadingError();return}let{width:J,height:x}=$e(h.ui.playerSize),N=$e(h.ui.isFullscreen),te=$e(h.ui.isAutoplay),E={width:J,height:x,isFullscreen:N,isAutoplay:te,adsContainer:S,adsVideoElement:y,slotId:s,params:u,previewParam:f,duration:p};return window.AdmanHTML?($.initAdman(E),T=!0):$.loadAdman(V.signal).then(()=>{$.initAdman(E),T=!0}).catch(()=>{$.onAdmanLoadingError()}),()=>{!T&&A()}});function le(V){he[V?"unshift":"push"](()=>{y=V,t(2,y)})}function ae(V){he[V?"unshift":"push"](()=>{S=V,t(1,S)})}return i.$$set=V=>{"adsSlotId"in V&&t(14,s=V.adsSlotId),"adsParams"in V&&t(15,u=V.adsParams),"adsPreviewParam"in V&&t(16,f=V.adsPreviewParam),"duration"in V&&t(17,p=V.duration)},i.$$.update=()=>{if(i.$$.dirty&262144)e:t(3,Q=v&&n!=="inactive");if(i.$$.dirty&262145)e:t(4,G=o&&n!=="inactive")},[o,S,y,Q,G,l,r,a,h,b,g,k,I,W,s,u,f,p,n,le,ae]}var ys=class extends q{constructor(e){super(),U(this,e,Q_,G_,z,{adsSlotId:14,adsParams:15,adsPreviewParam:16,duration:17},W_)}},Yl=ys;var pn=i=>{if(!isFinite(i))return"00:00";let e=Math.round(i),t=Math.floor(e/(60*60));e-=t*3600;let n=Math.floor(e/60);return e-=n*60,(t>0?[t,n,e]:[n,e]).map(l=>l>9?String(l):`0${l}`).join(":")};function Y_(i){let e,t,n,o,l=i[2].default,r=Pe(l,i,i[1],null),a=[{xmlns:"http://www.w3.org/2000/svg"},{width:"42"},{height:"20"},{"aria-hidden":"true"},{"data-testid":"live-icon"},{role:"img"},i[0]],s={};for(let u=0;u<a.length;u+=1)s=ne(s,a[u]);return{c(){e=D("svg"),r&&r.c(),t=D("path"),n=D("path"),c(t,"fill","none"),c(t,"stroke","#fff"),c(t,"stroke-width","2"),c(t,"d","M6.41 1A6.46 6.46 0 0 0 3 1.55 3.5 3.5 0 0 0 1.55 3 6.46 6.46 0 0 0 1 6.41v7.18A6.46 6.46 0 0 0 1.55 17 3.5 3.5 0 0 0 3 18.45a6.46 6.46 0 0 0 3.41.55h29.18a6.46 6.46 0 0 0 3.41-.55A3.5 3.5 0 0 0 40.45 17a6.46 6.46 0 0 0 .55-3.41V6.41A6.46 6.46 0 0 0 40.45 3 3.5 3.5 0 0 0 39 1.55 6.46 6.46 0 0 0 35.59 1z"),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"),be(e,s)},m(u,f){C(u,e,f),r&&r.m(e,null),m(e,t),m(e,n),o=!0},p(u,[f]){r&&r.p&&(!o||f&2)&&Te(r,l,u,u[1],o?Ie(l,u[1],f,null):Ee(u[1]),null),be(e,s=Ve(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&&w(e),r&&r.d(u)}}}function Z_(i,e,t){let{$$slots:n={},$$scope:o}=e;return i.$$set=l=>{t(0,e=ne(ne({},e),ge(l))),"$$scope"in l&&t(1,o=l.$$scope)},e=ge(e),[e,o,n]}var ws=class extends q{constructor(e){super(),U(this,e,Z_,Y_,z,{})}},Tf=ws;function X_(i){let e,t,n,o,l=i[2].default,r=Pe(l,i,i[1],null),a=[{xmlns:"http://www.w3.org/2000/svg"},{width:"42"},{height:"20"},{fill:"none"},{"aria-hidden":"true"},{"data-testid":"live-active-icon"},{role:"img"},i[0]],s={};for(let u=0;u<a.length;u+=1)s=ne(s,a[u]);return{c(){e=D("svg"),r&&r.c(),t=D("rect"),n=D("path"),c(t,"width","42"),c(t,"height","20"),c(t,"fill","#FF3347"),c(t,"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"),be(e,s)},m(u,f){C(u,e,f),r&&r.m(e,null),m(e,t),m(e,n),o=!0},p(u,[f]){r&&r.p&&(!o||f&2)&&Te(r,l,u,u[1],o?Ie(l,u[1],f,null):Ee(u[1]),null),be(e,s=Ve(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&&w(e),r&&r.d(u)}}}function J_(i,e,t){let{$$slots:n={},$$scope:o}=e;return i.$$set=l=>{t(0,e=ne(ne({},e),ge(l))),"$$scope"in l&&t(1,o=l.$$scope)},e=ge(e),[e,o,n]}var ks=class extends q{constructor(e){super(),U(this,e,J_,X_,z,{})}},Ef=ks;function x_(i){let e,t;return e=new Tf({}),{c(){B(e.$$.fragment)},m(n,o){L(e,n,o),t=!0},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){_(e.$$.fragment,n),t=!1},d(n){R(e,n)}}}function $_(i){let e,t;return e=new Ef({}),{c(){B(e.$$.fragment)},m(n,o){L(e,n,o),t=!0},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){_(e.$$.fragment,n),t=!1},d(n){R(e,n)}}}function e2(i){let e,t,n,o,l=[$_,x_],r=[];function a(s,u){return s[0]?0:1}return e=a(i,-1),t=r[e]=l[e](i),{c(){t.c(),n=ot()},m(s,u){r[e].m(s,u),C(s,n,u),o=!0},p(s,[u]){let f=e;e=a(s,u),e!==f&&(ue(),_(r[f],1,1,()=>{r[f]=null}),ce(),t=r[e],t||(t=r[e]=l[e](s),t.c()),d(t,1),t.m(n.parentNode,n))},i(s){o||(d(t),o=!0)},o(s){_(t),o=!1},d(s){s&&w(n),r[e].d(s)}}}function t2(i,e,t){let{isActive:n=!1}=e;return i.$$set=o=>{"isActive"in o&&t(0,n=o.isActive)},[n]}var Cs=class extends q{constructor(e){super(),U(this,e,t2,e2,z,{isActive:0})}},Zl=Cs;function i2(i){Ce(i,"svelte-7pnl2h",".thumb-timer.svelte-7pnl2h.svelte-7pnl2h{position:absolute;z-index:2;bottom:0;right:0;margin:8px;padding:0 7px;border-radius:3px;background:var(--black-alpha-40);color:var(--white);font-size:12.5px;line-height:23px;height:23px;white-space:nowrap;transition:visibility var(--controls-transition-duration), opacity var(--controls-transition-duration)}.thumb-timer.live.svelte-7pnl2h.svelte-7pnl2h{font-size:0;line-height:20px;height:20px;border-radius:2px;background:var(--red)}.thumb-timer.hidden.svelte-7pnl2h.svelte-7pnl2h{visibility:hidden;opacity:0}.thumb-timer.svelte-7pnl2h.svelte-7pnl2h:after{content:'';display:inline-block;vertical-align:middle;height:100%}.thumb-timer-live-icon.svelte-7pnl2h.svelte-7pnl2h{display:inline-block;vertical-align:middle;width:42px;height:20px;margin:0 -7px}.thumb-timer-equalizer.svelte-7pnl2h.svelte-7pnl2h{display:inline-block;vertical-align:middle;position:relative;width:10px;height:10px;margin-top:-4px;margin-right:4px}.live.svelte-7pnl2h .thumb-timer-equalizer.svelte-7pnl2h{margin-top:-2px}.thumb-timer-equalizer.svelte-7pnl2h .col.svelte-7pnl2h{width:2px;height:10px;margin-right:2px;background:var(--white);position:absolute;bottom:0;transform-origin:50% 100%;animation:1.5s infinite linear alternate;animation-play-state:paused}.thumb-timer.playing.svelte-7pnl2h .thumb-timer-equalizer .col.svelte-7pnl2h{animation-play-state:running}.thumb-timer-equalizer.svelte-7pnl2h .col.svelte-7pnl2h:nth-child(1){left:0;animation-name:svelte-7pnl2h-thumb-timer-equalizer-col1}.thumb-timer-equalizer.svelte-7pnl2h .col.svelte-7pnl2h:nth-child(2){left:3px;animation-name:svelte-7pnl2h-thumb-timer-equalizer-col2}.thumb-timer-equalizer.svelte-7pnl2h .col.svelte-7pnl2h:nth-child(3){left:6px;animation-name:svelte-7pnl2h-thumb-timer-equalizer-col3}@keyframes svelte-7pnl2h-thumb-timer-equalizer-col1{0%{transform:scaleY(0.1)}25%{transform:scaleY(0.8)}50%{transform:scaleY(0.4)}75%{transform:scaleY(0.6)}100%{transform:scaleY(0.1)}}@keyframes svelte-7pnl2h-thumb-timer-equalizer-col2{0%{transform:scaleY(1)}25%{transform:scaleY(0.3)}50%{transform:scaleY(0.9)}75%{transform:scaleY(0.6)}100%{transform:scaleY(1)}}@keyframes svelte-7pnl2h-thumb-timer-equalizer-col3{0%{transform:scaleY(0.6)}25%{transform:scaleY(0.9)}50%{transform:scaleY(0.1)}75%{transform:scaleY(0.9)}100%{transform:scaleY(0.6)}}.thumb-timer-text.svelte-7pnl2h.svelte-7pnl2h{display:inline-block;text-align:right}")}function n2(i){let e=pn(i[4]-i[3])+"",t;return{c(){t=Be(e)},m(n,o){C(n,t,o)},p(n,o){o&24&&e!==(e=pn(n[4]-n[3])+"")&&Qe(t,e)},i:_e,o:_e,d(n){n&&w(t)}}}function o2(i){let e,t,n;return t=new Zl({props:{isActive:!0}}),{c(){e=P("div"),B(t.$$.fragment),c(e,"class","thumb-timer-live-icon svelte-7pnl2h")},m(o,l){C(o,e,l),L(t,e,null),n=!0},p:_e,i(o){n||(d(t.$$.fragment,o),n=!0)},o(o){_(t.$$.fragment,o),n=!1},d(o){o&&w(e),R(t)}}}function l2(i){let e,t,n,o,l,r,a,s=[o2,n2],u=[];function f(p,h){return p[1]?0:1}return l=f(i,-1),r=u[l]=s[l](i),{c(){e=P("div"),t=P("div"),t.innerHTML='<div class="col svelte-7pnl2h"></div> <div class="col svelte-7pnl2h"></div> <div class="col svelte-7pnl2h"></div>',n=O(),o=P("span"),r.c(),c(t,"class","thumb-timer-equalizer svelte-7pnl2h"),c(o,"class","thumb-timer-text svelte-7pnl2h"),c(e,"role","timer"),c(e,"class","thumb-timer svelte-7pnl2h"),c(e,"data-testid","thumb-timer"),H(e,"live",i[1]),H(e,"hidden",i[0]),H(e,"playing",i[2])},m(p,h){C(p,e,h),m(e,t),m(e,n),m(e,o),u[l].m(o,null),a=!0},p(p,[h]){let b=l;l=f(p,h),l===b?u[l].p(p,h):(ue(),_(u[b],1,1,()=>{u[b]=null}),ce(),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)&&H(e,"live",p[1]),(!a||h&1)&&H(e,"hidden",p[0]),(!a||h&4)&&H(e,"playing",p[2])},i(p){a||(d(r),a=!0)},o(p){_(r),a=!1},d(p){p&&w(e),u[l].d()}}}function r2(i,e,t){let{isHidden:n=!1}=e,{isLive:o=!1}=e,{isPlaying:l=!1}=e,{position:r}=e,{duration:a}=e;return i.$$set=s=>{"isHidden"in s&&t(0,n=s.isHidden),"isLive"in s&&t(1,o=s.isLive),"isPlaying"in s&&t(2,l=s.isPlaying),"position"in s&&t(3,r=s.position),"duration"in s&&t(4,a=s.duration)},[n,o,l,r,a]}var Ss=class extends q{constructor(e){super(),U(this,e,r2,l2,z,{isHidden:0,isLive:1,isPlaying:2,position:3,duration:4},i2)}},Xl=Ss;var rl=i=>{if(document.queryCommandSupported&&document.queryCommandSupported("copy")){let e=document.createElement("textarea");e.textContent=i,e.style.position="absolute",e.style.top="-9999px",document.body.appendChild(e),e.select();try{document.execCommand("copy")}finally{document.body.removeChild(e)}}};import{ChromecastState as Nf}from"@vkontakte/videoplayer-core";import{isAndroid as s2}from"@vkontakte/videoplayer-shared";var a2=s2(),wo=i=>{i.stopPropagation(),i.preventDefault()},u2=i=>{let e=i.previousElementSibling;e||(e=i.parentNode?.lastElementChild),e?.focus()},c2=i=>{let e=i.nextElementSibling;e||(e=i.parentNode?.firstElementChild),e?.focus()},f2=i=>{let e=i.code;return e==="Tab"&&!i.shiftKey||e==="ArrowDown"},d2=i=>{let e=i.code;return e==="Tab"||e==="ArrowUp"},Mf=i=>i.code==="Escape",m2=i=>i.code==="ArrowLeft",Vf=(i,e=!0)=>{let t=i.code;return["Enter","Space"].includes(t)||!e&&t==="ArrowRight"},Lf=i=>{if(f2(i)){wo(i),c2(i.target);return}d2(i)&&(wo(i),u2(i.target))},Ko=i=>i?.detail===0||a2&&i?.pointerType==="",jo=async(i,e,t)=>{await En(),i&&!i.classList.contains("opened")&&!e&&$e(t)&&(await En(),t.set(!1),i.focus())},Rf=async(i,e,t)=>{await En(),i&&!e&&$e(t)&&(t.set(!1),i.focus())},ko=async(i,e,t)=>{await En(),!!i&&e&&t&&setTimeout(()=>{i.firstChild.focus()},100)},sl=async(i,e,t)=>{!!i&&t&&(e.set(!1),setTimeout(()=>{i.focus()},100))},Jl=(i,e)=>{Lf(i),Mf(i)&&(wo(i),e())},al=async(i,e,t)=>{Vf(i,!1)&&(wo(i),e(),await En(),t()?.focus())},ul=async(i,e,t,n)=>{if(Lf(i),m2(i)){wo(i),e(),t.set(!0);return}Mf(i)&&(wo(i),n())},Qi=(i,e)=>{Vf(i)&&(wo(i),e())},Bf=i=>{let e=i.getBoundingClientRect(),t=-14,n=e.left+e.width,o=e.top+t;return{right:n,bottom:o}},Df=i=>{if(!i)return{top:0,left:0};let e=i.getBoundingClientRect(),t=-58,n=8,o=e.left+n;return{bottom:e.bottom+t,left:o}};import{isNullable as xl}from"@vkontakte/videoplayer-shared";function p2(i){Ce(i,"svelte-1vzqlps","ul.svelte-1vzqlps{position:absolute;border-radius:8px;background:rgba(0, 0, 0, 0.72);transition:visibility .1s,opacity .1s;list-style:none;margin:0;padding:6px 0;max-height:100%;max-width:100%;overflow-x:hidden;overflow-y:auto}li.svelte-1vzqlps{padding:8px 16px;cursor:pointer;position:relative;display:block;color:rgba(255, 255, 255, 0.72);font-size:13px;line-height:18px;letter-spacing:-0.14px;white-space:nowrap}li.svelte-1vzqlps:hover{background:rgba(66, 66, 66, .5);color:var(--white)}")}function Of(i){let e,t,n,o,l,r,a,s,u,f=(i[10].features.saveDebugInfoToFile?j("menu_save_debug"):j("menu_copy_debug"))+"",p,h,b,g,S=j("menu_debug_overlay")+"",y,T,k,v,I=i[10].features.copyVideoLink&&i[9].callbacks?.onCopyVideoLink&&_2(i),W=i[12]&&i[6]!==Nf.CONNECTED&&!i[17]&&Hf(i);function Q(A,$){return A[4]?g2:h2}let G=Q(i,[-1,-1]),le=G(i),ae=i[10].features.videoRotate&&!i[17]&&b2(i),V=i[10].showSupport&&!i[7]&&zf(i);return{c(){e=P("ul"),I&&I.c(),t=O(),W&&W.c(),n=O(),o=P("li"),le.c(),r=O(),ae&&ae.c(),a=O(),V&&V.c(),s=O(),u=P("li"),p=Be(f),b=O(),g=P("li"),y=Be(S),c(o,"tabindex","0"),c(o,"role","menuitem"),c(o,"aria-label",l=j("aria_label_menu_loop")),c(o,"class","svelte-1vzqlps"),c(u,"tabindex","0"),c(u,"role","menuitem"),c(u,"aria-label",h=i[10].features.saveDebugInfoToFile?j("menu_save_debug"):j("menu_copy_debug")),c(u,"class","svelte-1vzqlps"),c(g,"tabindex","0"),c(g,"role","menuitem"),c(g,"aria-label",T=i[8]?j("aria_label_menu_debug_overlay_disable"):j("aria_label_menu_debug_overlay_enable")),c(g,"class","svelte-1vzqlps"),c(e,"role","menu"),fi(e,"top",i[3]+"px"),fi(e,"left",i[2]+"px"),c(e,"class","svelte-1vzqlps")},m(A,$){C(A,e,$),I&&I.m(e,null),m(e,t),W&&W.m(e,null),m(e,n),m(e,o),le.m(o,null),m(e,r),ae&&ae.m(e,null),m(e,a),V&&V.m(e,null),m(e,s),m(e,u),m(u,p),m(e,b),m(e,g),m(g,y),i[42](e),k||(v=[pe(o,"click",rt(i[24])),pe(o,"keydown",i[30]),pe(u,"click",rt(i[21])),pe(u,"keydown",i[32]),pe(g,"click",rt(i[22])),pe(g,"keydown",i[33]),pe(e,"contextmenu",kt(i[39])),pe(e,"keydown",i[26])],k=!0)},p(A,$){A[10].features.copyVideoLink&&A[9].callbacks?.onCopyVideoLink&&I.p(A,$),A[12]&&A[6]!==Nf.CONNECTED&&!A[17]?W?W.p(A,$):(W=Hf(A),W.c(),W.m(e,n)):W&&(W.d(1),W=null),G===(G=Q(A,$))&&le?le.p(A,$):(le.d(1),le=G(A),le&&(le.c(),le.m(o,null))),A[10].features.videoRotate&&!A[17]&&ae.p(A,$),A[10].showSupport&&!A[7]?V?V.p(A,$):(V=zf(A),V.c(),V.m(e,s)):V&&(V.d(1),V=null),$[0]&256&&T!==(T=A[8]?j("aria_label_menu_debug_overlay_disable"):j("aria_label_menu_debug_overlay_enable"))&&c(g,"aria-label",T),$[0]&8&&fi(e,"top",A[3]+"px"),$[0]&4&&fi(e,"left",A[2]+"px")},d(A){A&&w(e),I&&I.d(),W&&W.d(),le.d(),ae&&ae.d(),V&&V.d(),i[42](null),k=!1,tt(v)}}}function _2(i){let e,t=j("menu_copy_video_link")+"",n,o,l,r,a,s,u=!i[5]&&!i[17]&&Ff(i);return{c(){e=P("li"),n=Be(t),l=O(),u&&u.c(),r=ot(),c(e,"tabindex","0"),c(e,"role","menuitem"),c(e,"aria-label",o=j("menu_copy_video_link")),c(e,"class","svelte-1vzqlps")},m(f,p){C(f,e,p),m(e,n),C(f,l,p),u&&u.m(f,p),C(f,r,p),a||(s=[pe(e,"click",rt(i[40])),pe(e,"keydown",i[27])],a=!0)},p(f,p){!f[5]&&!f[17]?u?u.p(f,p):(u=Ff(f),u.c(),u.m(r.parentNode,r)):u&&(u.d(1),u=null)},d(f){f&&(w(e),w(l),w(r)),u&&u.d(f),a=!1,tt(s)}}}function Ff(i){let e,t=j("menu_copy_video_link_with_timestamp")+"",n,o,l,r;return{c(){e=P("li"),n=Be(t),c(e,"tabindex","0"),c(e,"role","menuitem"),c(e,"aria-label",o=j("menu_copy_video_link_with_timestamp")),c(e,"class","svelte-1vzqlps")},m(a,s){C(a,e,s),m(e,n),l||(r=[pe(e,"click",rt(i[41])),pe(e,"keydown",i[28])],l=!0)},p:_e,d(a){a&&w(e),l=!1,tt(r)}}}function Hf(i){let e,t=j("menu_pip")+"",n,o,l,r;return{c(){e=P("li"),n=Be(t),c(e,"tabindex","0"),c(e,"role","menuitem"),c(e,"aria-label",o=j("menu_pip")),c(e,"class","svelte-1vzqlps")},m(a,s){C(a,e,s),m(e,n),l||(r=[pe(e,"click",rt(i[23])),pe(e,"keydown",i[29])],l=!0)},p:_e,d(a){a&&w(e),l=!1,tt(r)}}}function h2(i){let e=j("menu_video_loop_on")+"",t;return{c(){t=Be(e)},m(n,o){C(n,t,o)},p:_e,d(n){n&&w(t)}}}function g2(i){let e=j("menu_video_loop_off")+"",t;return{c(){t=Be(e)},m(n,o){C(n,t,o)},p:_e,d(n){n&&w(t)}}}function b2(i){let e,t=j("menu_video_rotate")+"",n,o,l,r;return{c(){e=P("li"),n=Be(t),c(e,"tabindex","0"),c(e,"role","menuitem"),c(e,"aria-label",o=j("aria_label_menu_rotate")),c(e,"class","svelte-1vzqlps")},m(a,s){C(a,e,s),m(e,n),l||(r=[pe(e,"click",rt(i[19])),pe(e,"keydown",i[30])],l=!0)},p:_e,d(a){a&&w(e),l=!1,tt(r)}}}function zf(i){let e,t=j("menu_report")+"",n,o,l,r;return{c(){e=P("li"),n=Be(t),c(e,"tabindex","0"),c(e,"role","menuitem"),c(e,"aria-label",o=`${j("menu_report")}. ${j("aria_label_new_tab_alert")}`),c(e,"class","svelte-1vzqlps")},m(a,s){C(a,e,s),m(e,n),l||(r=[pe(e,"click",rt(i[20])),pe(e,"keydown",i[31])],l=!0)},p:_e,d(a){a&&w(e),l=!1,tt(r)}}}function v2(i){let e,t=i[1]&&Of(i);return{c(){t&&t.c(),e=ot()},m(n,o){t&&t.m(n,o),C(n,e,o)},p(n,o){n[1]?t?t.p(n,o):(t=Of(n),t.c(),t.m(e.parentNode,e)):t&&(t.d(1),t=null)},i:_e,o:_e,d(n){n&&w(e),t&&t.d(n)}}}function y2(i,e,t){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:b=void 0}=e,{menuElementRef:g=void 0}=e,{returnFocus:S}=e,y=0,T=0,k=et(),v=Tt(),I=k.ui.contextMenu.visible$,W=k.ui.debugPanelVisible;F(i,W,se=>t(8,s=se));let Q=k.webApi.pictureInPictureApi,G=k.webApi.pictureInPictureApi?.info.isActive$;F(i,G,se=>t(7,a=se));let le=k.state.chromecastState$;F(i,le,se=>t(6,r=se));let ae=k.state.isLive$;F(i,ae,se=>t(5,l=se));let V=k.state.positionExact$;F(i,V,se=>t(43,n=se));let A=k.state.isInteractive,$=k.state.looped$;F(i,$,se=>t(4,o=se));let J=()=>{I.set(!1)},x=(se,oe)=>{if(!g||!h||!b)return;let Se=g.getBoundingClientRect(),fe=h.getBoundingClientRect();t(2,y=se-fe.left),t(3,T=oe-fe.top),y+Se.width>fe.width&&t(2,y=fe.width-Se.width),T+Se.height>fe.height&&t(3,T=fe.height-Se.height),t(2,y=Math.max(y,0)),t(3,T=Math.max(T,0))},N=()=>{J(),k.actions.internal.videoRotate()},te=()=>{window.open(f,"_blank"),J(),k.actions.internal.pause()},E=()=>{let se=k.actions.internal.getDebugTextData();if(v.features.saveDebugInfoToFile){let oe=new Blob([...se],{type:"plain/text"}),Se=window.URL.createObjectURL(oe);Dl(Se,"vk_player_debug_info","txt")}else rl(k.actions.internal.getDebugTextData());J(),S?.()},Y=()=>{W.set(!0),J(),S?.()},Le=async()=>{try{Q?.isActive()?await Q?.remove():await Q?.request()}finally{J(),S?.()}},je=()=>{k.actions.internal.setLooped(!o),J()},qe=(se=!1)=>{if(k.callbacks?.onCopyVideoLink){let oe=k.callbacks?.onCopyVideoLink(se,n);oe&&rl(oe)}J()},Je=se=>{Jl(se,J)},Ne=se=>{Qi(se,()=>qe())},we=se=>{Qi(se,()=>qe(!0))},X=se=>{Qi(se,()=>Le())},ve=se=>{Qi(se,()=>N())},Oe=se=>{Qi(se,()=>te())},Xe=se=>{Qi(se,()=>E())},xe=se=>{Qi(se,()=>Y())};function ke(se){mn.call(this,i,se)}let Re=()=>qe(),Ue=()=>qe(!0);function We(se){he[se?"unshift":"push"](()=>{g=se,t(0,g)})}return i.$$set=se=>{"visible"in se&&t(1,u=se.visible),"supportLink"in se&&t(34,f=se.supportLink),"position"in se&&t(35,p=se.position),"playerContainerRef"in se&&t(36,h=se.playerContainerRef),"controlsContainerRef"in se&&t(37,b=se.controlsContainerRef),"menuElementRef"in se&&t(0,g=se.menuElementRef),"returnFocus"in se&&t(38,S=se.returnFocus)},i.$$.update=()=>{if(i.$$.dirty[0]&1|i.$$.dirty[1]&112){e:if(g&&h&&b){let{top:se,left:oe,bottom:Se,right:fe}=p,Ae=oe??0,Ze=se??0,ut=g.getBoundingClientRect();xl(oe)&&!xl(fe)&&(Ae=fe-ut.width),xl(se)&&!xl(Se)&&(Ze=Se-ut.height),Ae=Math.max(Ae,0),Ze=Math.max(Ze,0),x(Ae,Ze)}}},[g,u,y,T,o,l,r,a,s,k,v,W,Q,G,le,ae,V,A,$,N,te,E,Y,Le,je,qe,Je,Ne,we,X,ve,Oe,Xe,xe,f,p,h,b,S,ke,Re,Ue,We]}var Ps=class extends q{constructor(e){super(),U(this,e,y2,v2,z,{visible:1,supportLink:34,position:35,playerContainerRef:36,controlsContainerRef:37,menuElementRef:0,returnFocus:38},p2,[-1,-1])}},qf=Ps;var $l=class{constructor(e){this.value=e,this.next=null}};var Wo=class{constructor(e){this.top=null,this.bottom=null,this.size=0,this.maxSize=e}push(e){let t=new $l(e);this.top?(this.top.next=t,this.top=t):(this.top=t,this.bottom=t),this.size++,this.size>this.maxSize&&this.bottom&&(this.bottom=this.bottom.next)}getValuesFromBottom(){let e=[],t=this.bottom;for(;t;)e.push(t.value),t=t.next;return e}};function w2(i){Ce(i,"svelte-1ssl9eb",".container.svelte-1ssl9eb{display:inline-block;width:120px;height:16px}canvas.svelte-1ssl9eb{transform:scale(1, -1);margin-top:2px}")}function k2(i){let e,t;return{c(){e=P("div"),t=P("canvas"),c(t,"class","svelte-1ssl9eb"),c(e,"class","container svelte-1ssl9eb")},m(n,o){C(n,e,o),m(e,t),i[3](t)},p:_e,i:_e,o:_e,d(n){n&&w(e),i[3](null)}}}var Is=16,Ts=120,Uf=60;function C2(i,e,t,n,o){o===0&&(o=1),i.fillStyle="#fff",i.fillRect(e,t,n,o)}function S2(i,e,t){let{values:n=[]}=e,o,l,r=Ts/Uf;Ct(()=>{t(0,o.width=Ts,o),t(0,o.height=Is,o),t(2,l=o.getContext("2d"))});function a(s){he[s?"unshift":"push"](()=>{o=s,t(0,o)})}return i.$$set=s=>{"values"in s&&t(1,n=s.values)},i.$$.update=()=>{if(i.$$.dirty&6)e:{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,Ts,Is);let f=Uf-1;for(let p=n.length-1;p>=0;p--){let h=f*r,b=u>0?Is*(n[p]/u):0;C2(l,h,0,r,b),s=b+" "+s,f--}}}},[o,n,l,a]}var Es=class extends q{constructor(e){super(),U(this,e,S2,k2,z,{values:1},w2)}},er=Es;import{safeStorage as Kf}from"@vkontakte/videoplayer-shared";function P2(i){Ce(i,"svelte-1fypj5i",".container.svelte-1fypj5i.svelte-1fypj5i.svelte-1fypj5i{background:rgba(28, 28, 28, 0.8);border-radius:4px;color:#fff;left:20px;position:absolute;top:45px;min-width:160px;font-size:10px;text-align:left}.container-mobile.svelte-1fypj5i.svelte-1fypj5i.svelte-1fypj5i{top:16px;left:16px}button.svelte-1fypj5i.svelte-1fypj5i.svelte-1fypj5i{position:absolute;right:5px;top:3px;cursor:pointer;outline:0;border:none;background-color:transparent;padding:0;color:#fff}.content.svelte-1fypj5i.svelte-1fypj5i.svelte-1fypj5i{padding:5px}.content.svelte-1fypj5i>div.svelte-1fypj5i>div.svelte-1fypj5i{display:inline-block;text-align:right;width:50px;padding:0 5px}")}function jf(i){let e,t,n,o,l=i[0].id+"",r;return{c(){e=P("div"),t=P("div"),t.textContent="Video id",n=O(),o=P("span"),r=Be(l),c(t,"class","svelte-1fypj5i"),c(e,"class","svelte-1fypj5i")},m(a,s){C(a,e,s),m(e,t),m(e,n),m(e,o),m(o,r)},p(a,s){s&1&&l!==(l=a[0].id+"")&&Qe(r,l)},d(a){a&&w(e)}}}function Wf(i){let e,t,n,o,l=i[0].provider+"",r;return{c(){e=P("div"),t=P("div"),t.textContent="Provider",n=O(),o=P("span"),r=Be(l),c(t,"class","svelte-1fypj5i"),c(e,"class","svelte-1fypj5i")},m(a,s){C(a,e,s),m(e,t),m(e,n),m(e,o),m(o,r)},p(a,s){s&1&&l!==(l=a[0].provider+"")&&Qe(r,l)},d(a){a&&w(e)}}}function Gf(i){let e,t,n,o,l=i[0].viewport+"",r;return{c(){e=P("div"),t=P("div"),t.textContent="Viewport",n=O(),o=P("span"),r=Be(l),c(t,"class","svelte-1fypj5i"),c(e,"class","svelte-1fypj5i")},m(a,s){C(a,e,s),m(e,t),m(e,n),m(e,o),m(o,r)},p(a,s){s&1&&l!==(l=a[0].viewport+"")&&Qe(r,l)},d(a){a&&w(e)}}}function Qf(i){let e,t,n,o,l=i[0].videoSize+"",r;return{c(){e=P("div"),t=P("div"),t.textContent="Video size",n=O(),o=P("span"),r=Be(l),c(t,"class","svelte-1fypj5i"),c(e,"class","svelte-1fypj5i")},m(a,s){C(a,e,s),m(e,t),m(e,n),m(e,o),m(o,r)},p(a,s){s&1&&l!==(l=a[0].videoSize+"")&&Qe(r,l)},d(a){a&&w(e)}}}function Yf(i){let e,t,n,o,l=i[0].cdn+"",r;return{c(){e=P("div"),t=P("div"),t.textContent="CDN host",n=O(),o=P("span"),r=Be(l),c(t,"class","svelte-1fypj5i"),c(e,"class","svelte-1fypj5i")},m(a,s){C(a,e,s),m(e,t),m(e,n),m(e,o),m(o,r)},p(a,s){s&1&&l!==(l=a[0].cdn+"")&&Qe(r,l)},d(a){a&&w(e)}}}function Zf(i){let e,t,n,o,l=i[0].volume+"",r,a;return{c(){e=P("div"),t=P("div"),t.textContent="Volume",n=O(),o=P("span"),r=Be(l),a=Be(" %"),c(t,"class","svelte-1fypj5i"),c(e,"class","svelte-1fypj5i")},m(s,u){C(s,e,u),m(e,t),m(e,n),m(e,o),m(o,r),m(o,a)},p(s,u){u&1&&l!==(l=s[0].volume+"")&&Qe(r,l)},d(s){s&&w(e)}}}function Xf(i){let e,t,n,o,l=i[0].buffer.toFixed(2)+"",r,a;return{c(){e=P("div"),t=P("div"),t.textContent="Buffer",n=O(),o=P("span"),r=Be(l),a=Be(" s"),c(t,"class","svelte-1fypj5i"),c(e,"class","svelte-1fypj5i")},m(s,u){C(s,e,u),m(e,t),m(e,n),m(e,o),m(o,r),m(o,a)},p(s,u){u&1&&l!==(l=s[0].buffer.toFixed(2)+"")&&Qe(r,l)},d(s){s&&w(e)}}}function Jf(i){let e,t,n,o,l=[{value:i[0].currentVideoSegmentLength,title:"Video"},{value:i[0].currentAudioSegmentLength,title:"Audio"}].filter(e1).map(t1).join(" / ")+"",r;return{c(){e=P("div"),t=P("div"),t.textContent="Segment",n=O(),o=P("span"),r=Be(l),c(t,"class","svelte-1fypj5i"),c(e,"class","svelte-1fypj5i")},m(a,s){C(a,e,s),m(e,t),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(e1).map(t1).join(" / ")+"")&&Qe(r,l)},d(a){a&&w(e)}}}function xf(i){let e,t,n,o,l,r,a=i[0].speed.toFixed(2)+"",s,u,f;return o=new er({props:{values:i[5]}}),{c(){e=P("div"),t=P("div"),t.textContent="Network",n=O(),B(o.$$.fragment),l=O(),r=P("span"),s=Be(a),u=Be(" Kbps"),c(t,"class","svelte-1fypj5i"),c(e,"class","svelte-1fypj5i")},m(p,h){C(p,e,h),m(e,t),m(e,n),L(o,e,null),m(e,l),m(e,r),m(r,s),m(r,u),f=!0},p(p,h){let b={};h&32&&(b.values=p[5]),o.$set(b),(!f||h&1)&&a!==(a=p[0].speed.toFixed(2)+"")&&Qe(s,a)},i(p){f||(d(o.$$.fragment,p),f=!0)},o(p){_(o.$$.fragment,p),f=!1},d(p){p&&w(e),R(o)}}}function $f(i){let e,t,n,o,l,r,a=i[0].bitrate.toFixed(2)+"",s,u,f;return o=new er({props:{values:i[6]}}),{c(){e=P("div"),t=P("div"),t.textContent="V bitrate",n=O(),B(o.$$.fragment),l=O(),r=P("span"),s=Be(a),u=Be(" Kbps"),c(t,"class","svelte-1fypj5i"),c(e,"class","svelte-1fypj5i")},m(p,h){C(p,e,h),m(e,t),m(e,n),L(o,e,null),m(e,l),m(e,r),m(r,s),m(r,u),f=!0},p(p,h){let b={};h&64&&(b.values=p[6]),o.$set(b),(!f||h&1)&&a!==(a=p[0].bitrate.toFixed(2)+"")&&Qe(s,a)},i(p){f||(d(o.$$.fragment,p),f=!0)},o(p){_(o.$$.fragment,p),f=!1},d(p){p&&w(e),R(o)}}}function I2(i){let e,t,n,o,l,r,a,s,u=i[0].version+"",f,p,h,b,g,S,y,T,k,v,I,W,Q,G,le,ae,V,A,$,J,x,N,te,E,Y,Le,je,qe,Je,Ne,we,X,ve=i[0].id&&jf(i),Oe=i[0].provider&&Wf(i),Xe=i[0].viewport&&Gf(i),xe=i[0].videoSize&&Qf(i),ke=i[0].cdn&&Yf(i),Re=i[0].volume&&Zf(i),Ue=i[0].buffer&&Xf(i),We=(i[0].currentVideoSegmentLength||i[0].currentAudioSegmentLength)&&Jf(i),se=i[0].speed&&xf(i),oe=i[0].bitrate&&$f(i);return Y=new er({props:{values:i[4]}}),{c(){e=P("div"),t=P("button"),t.textContent="[x]",n=O(),o=P("div"),l=P("div"),r=P("div"),r.textContent="Version",a=O(),s=P("span"),f=Be(u),p=O(),ve&&ve.c(),h=O(),Oe&&Oe.c(),b=O(),Xe&&Xe.c(),g=O(),xe&&xe.c(),S=O(),ke&&ke.c(),y=O(),Re&&Re.c(),T=O(),Ue&&Ue.c(),k=O(),We&&We.c(),v=O(),I=P("div"),W=P("div"),W.textContent="Dropped",Q=O(),G=P("span"),le=Be(i[2]),ae=Be(" / "),V=Be(i[1]),A=Be(" frames"),$=O(),se&&se.c(),J=O(),oe&&oe.c(),x=O(),N=P("div"),te=P("div"),te.textContent="FPS",E=O(),B(Y.$$.fragment),Le=O(),je=P("span"),qe=Be(i[3]),c(t,"class","close svelte-1fypj5i"),c(t,"title","\u0437\u0430\u043A\u0440\u044B\u0442\u044C"),c(r,"class","svelte-1fypj5i"),c(l,"class","svelte-1fypj5i"),c(W,"class","svelte-1fypj5i"),c(I,"class","svelte-1fypj5i"),c(te,"class","svelte-1fypj5i"),c(N,"class","svelte-1fypj5i"),c(o,"class","content svelte-1fypj5i"),c(e,"class","container svelte-1fypj5i"),c(e,"role","region"),c(e,"aria-label",Je=j("aria_label_debug_panel")),H(e,"container-mobile",i[7])},m(Se,fe){C(Se,e,fe),m(e,t),m(e,n),m(e,o),m(o,l),m(l,r),m(l,a),m(l,s),m(s,f),m(o,p),ve&&ve.m(o,null),m(o,h),Oe&&Oe.m(o,null),m(o,b),Xe&&Xe.m(o,null),m(o,g),xe&&xe.m(o,null),m(o,S),ke&&ke.m(o,null),m(o,y),Re&&Re.m(o,null),m(o,T),Ue&&Ue.m(o,null),m(o,k),We&&We.m(o,null),m(o,v),m(o,I),m(I,W),m(I,Q),m(I,G),m(G,le),m(G,ae),m(G,V),m(G,A),m(o,$),se&&se.m(o,null),m(o,J),oe&&oe.m(o,null),m(o,x),m(o,N),m(N,te),m(N,E),L(Y,N,null),m(N,Le),m(N,je),m(je,qe),Ne=!0,we||(X=pe(t,"click",rt(i[9])),we=!0)},p(Se,[fe]){(!Ne||fe&1)&&u!==(u=Se[0].version+"")&&Qe(f,u),Se[0].id?ve?ve.p(Se,fe):(ve=jf(Se),ve.c(),ve.m(o,h)):ve&&(ve.d(1),ve=null),Se[0].provider?Oe?Oe.p(Se,fe):(Oe=Wf(Se),Oe.c(),Oe.m(o,b)):Oe&&(Oe.d(1),Oe=null),Se[0].viewport?Xe?Xe.p(Se,fe):(Xe=Gf(Se),Xe.c(),Xe.m(o,g)):Xe&&(Xe.d(1),Xe=null),Se[0].videoSize?xe?xe.p(Se,fe):(xe=Qf(Se),xe.c(),xe.m(o,S)):xe&&(xe.d(1),xe=null),Se[0].cdn?ke?ke.p(Se,fe):(ke=Yf(Se),ke.c(),ke.m(o,y)):ke&&(ke.d(1),ke=null),Se[0].volume?Re?Re.p(Se,fe):(Re=Zf(Se),Re.c(),Re.m(o,T)):Re&&(Re.d(1),Re=null),Se[0].buffer?Ue?Ue.p(Se,fe):(Ue=Xf(Se),Ue.c(),Ue.m(o,k)):Ue&&(Ue.d(1),Ue=null),Se[0].currentVideoSegmentLength||Se[0].currentAudioSegmentLength?We?We.p(Se,fe):(We=Jf(Se),We.c(),We.m(o,v)):We&&(We.d(1),We=null),(!Ne||fe&4)&&Qe(le,Se[2]),(!Ne||fe&2)&&Qe(V,Se[1]),Se[0].speed?se?(se.p(Se,fe),fe&1&&d(se,1)):(se=xf(Se),se.c(),d(se,1),se.m(o,J)):se&&(ue(),_(se,1,1,()=>{se=null}),ce()),Se[0].bitrate?oe?(oe.p(Se,fe),fe&1&&d(oe,1)):(oe=$f(Se),oe.c(),d(oe,1),oe.m(o,x)):oe&&(ue(),_(oe,1,1,()=>{oe=null}),ce());let Ae={};fe&16&&(Ae.values=Se[4]),Y.$set(Ae),(!Ne||fe&8)&&Qe(qe,Se[3]),(!Ne||fe&128)&&H(e,"container-mobile",Se[7])},i(Se){Ne||(d(se),d(oe),d(Y.$$.fragment,Se),Ne=!0)},o(Se){_(se),_(oe),_(Y.$$.fragment,Se),Ne=!1},d(Se){Se&&w(e),ve&&ve.d(),Oe&&Oe.d(),Xe&&Xe.d(),xe&&xe.d(),ke&&ke.d(),Re&&Re.d(),Ue&&Ue.d(),We&&We.d(),se&&se.d(),oe&&oe.d(),R(Y),we=!1,X()}}}var e1=({value:i})=>i,t1=({value:i,title:e})=>`${e} ${((i??0)/1e3).toFixed(2)} s`;function T2(i,e,t){let n,o=et(),l=o.ui.debugPanelVisible,r=o.ui.isMobile;F(i,r,v=>t(7,n=v));let a=()=>{Kf.remove(ol),l.set(!1)},s=o.actions.internal.getDebugPanelData(),u=o.actions.internal.getVideoElement(),f=0,p=0,h=0,b=new Wo(60),g=new Wo(60),S=new Wo(60),y=[],T=[],k=[];return Ct(()=>{Kf.set(ol,"true"),o.actions.internal.startLogging(),u&&(t(2,p=u.getVideoPlaybackQuality().droppedVideoFrames),t(1,f=u.getVideoPlaybackQuality().totalVideoFrames));let v=window.setInterval(()=>{t(0,s=o.actions.internal.getDebugPanelData())},500),I;return u&&(I=window.setInterval(()=>{if(u){t(2,p=u.getVideoPlaybackQuality().droppedVideoFrames);let W=u.getVideoPlaybackQuality().totalVideoFrames;t(3,h=W-f),t(1,f=W),b.push(h),s.speed&&g.push(s.speed),s.bitrate&&S.push(s.bitrate),t(4,y=b.getValuesFromBottom()),t(5,T=g.getValuesFromBottom()),t(6,k=S.getValuesFromBottom())}},1e3)),()=>{o.actions.internal.stopLogging(),clearInterval(v),I&&clearInterval(I)}}),[s,f,p,h,y,T,k,n,r,a]}var As=class extends q{constructor(e){super(),U(this,e,T2,I2,z,{},P2)}},tr=As;function E2(i){Ce(i,"svelte-1ome55p",".close.svelte-1ome55p{cursor:pointer;opacity:0.8;transition:opacity 0.2s;position:relative;width:16px;height:16px}.close.svelte-1ome55p:hover{opacity:1}.close.svelte-1ome55p:before,.close.svelte-1ome55p:after{position:absolute;left:8px;content:' ';height:16px;width:2px;background-color:var(--white)}.close.svelte-1ome55p:before{transform:rotate(45deg)}.close.svelte-1ome55p:after{transform:rotate(-45deg)}")}function A2(i){let e,t,n;return{c(){e=P("div"),c(e,"class","close svelte-1ome55p")},m(o,l){C(o,e,l),t||(n=pe(e,"click",rt(i[0])),t=!0)},p:_e,i:_e,o:_e,d(o){o&&w(e),t=!1,n()}}}function M2(i){function e(t){mn.call(this,i,t)}return[e]}var Ms=class extends q{constructor(e){super(),U(this,e,M2,A2,z,{},E2)}},i1=Ms;import{noop as V2}from"@vkontakte/videoplayer-shared";function L2(i){Ce(i,"svelte-8jhsry",`.timer.svelte-8jhsry{border-radius:50%;transition:background .2s;background:rgba(31, 31, 31, .65);width:50px;height:50px;display:flex;align-items:center;justify-content:space-around}.timer.svelte-8jhsry:hover{background:rgba(31, 31, 31, .85)
|
|
25
|
+
}.timer-canvas.svelte-8jhsry{width:50px;height:50px;position:absolute}.timer-play-icon.svelte-8jhsry{width:22px;height:26px}`)}function R2(i){let e,t,n,o,l,r,a;return{c(){e=P("div"),t=P("canvas"),n=O(),o=D("svg"),l=D("g"),r=D("g"),a=D("path"),c(t,"class","timer-canvas svelte-8jhsry"),c(t,"width","100"),c(t,"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){C(s,e,u),m(e,t),i[2](t),m(e,n),m(e,o),m(o,l),m(l,r),m(r,a)},p:_e,i:_e,o:_e,d(s){s&&w(e),i[2](null)}}}var B2=5e3;function D2(i,e,t){let{onTimerEnded:n=V2}=e,o;Ct(()=>{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)/B2;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){he[r?"unshift":"push"](()=>{o=r,t(0,o)})}return i.$$set=r=>{"onTimerEnded"in r&&t(1,n=r.onTimerEnded)},[o,n,l]}var Vs=class extends q{constructor(e){super(),U(this,e,D2,R2,z,{onTimerEnded:1},L2)}},n1=Vs;function N2(i){Ce(i,"svelte-kisfwc",".overlay.svelte-kisfwc{width:100%;height:100%;background:rgba(0, 0, 0, 0.72);position:absolute}.next-video.svelte-kisfwc{position:absolute;top:50%;left:50%;transform:translate(-50%, -50%);display:flex;width:362px;flex-direction:column}.top.svelte-kisfwc{display:flex;justify-content:space-between}.caption.svelte-kisfwc{font-size:11px;font-weight:bold;color:var(--white);text-transform:uppercase;opacity:0.8}.row.svelte-kisfwc{height:102px;background:rgba(48, 48, 48, .8);cursor:pointer;margin-top:6px;display:flex;flex-direction:row;flex-wrap:wrap;width:100%}.column.svelte-kisfwc{display:flex;flex-direction:column;flex-basis:50%}.thumb.svelte-kisfwc{width:100%;height:100%;background:no-repeat center;background-size:cover;display:flex;align-items:center;position:relative;justify-content:space-around}.thumb-overlay.svelte-kisfwc{width:100%;height:100%;background:var(--black);opacity:0.3;position:absolute}.title.svelte-kisfwc{padding:10px 16px;font-size:12px;font-weight:bold;color:var(--white);line-height:1.6;max-height:52px;overflow:hidden}")}function o1(i){let e,t;return e=new n1({props:{onTimerEnded:i[2]}}),{c(){B(e.$$.fragment)},m(n,o){L(e,n,o),t=!0},p(n,o){let l={};o&4&&(l.onTimerEnded=n[2]),e.$set(l)},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){_(e.$$.fragment,n),t=!1},d(n){R(e,n)}}}function O2(i){let e,t,n,o,l,r,a,s,u,f,p,h,b,g,S,y,T,k,v,I,W;a=new i1({}),a.$on("click",i[4]);let Q=i[3]&&o1(i);return{c(){e=P("div"),t=O(),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=O(),B(a.$$.fragment),s=O(),u=P("div"),f=P("div"),p=P("div"),h=P("div"),b=O(),Q&&Q.c(),S=O(),y=P("div"),T=P("div"),k=Be(i[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('${i[1]}')`),c(f,"class","column svelte-kisfwc"),c(T,"class","title svelte-kisfwc"),c(y,"class","column svelte-kisfwc"),c(u,"class","row svelte-kisfwc"),c(n,"class","next-video svelte-kisfwc")},m(G,le){C(G,e,le),C(G,t,le),C(G,n,le),m(n,o),m(o,l),m(o,r),L(a,o,null),m(n,s),m(n,u),m(u,f),m(f,p),m(p,h),m(p,b),Q&&Q.m(p,null),m(u,S),m(u,y),m(y,T),m(T,k),v=!0,I||(W=pe(u,"click",function(){Ii(i[2])&&i[2].apply(this,arguments)}),I=!0)},p(G,[le]){i=G,i[3]?Q?(Q.p(i,le),le&8&&d(Q,1)):(Q=o1(i),Q.c(),d(Q,1),Q.m(p,null)):Q&&(ue(),_(Q,1,1,()=>{Q=null}),ce()),(!v||le&2&&g!==(g=`background-image: url('${i[1]}')`))&&c(p,"style",g),(!v||le&1)&&Qe(k,i[0])},i(G){v||(d(a.$$.fragment,G),d(Q),v=!0)},o(G){_(a.$$.fragment,G),_(Q),v=!1},d(G){G&&(w(e),w(t),w(n)),R(a),Q&&Q.d(),I=!1,W()}}}function F2(i,e,t){let{title:n}=e,{thumb:o}=e,{playNextVideo:l}=e,r=!0,a=()=>t(3,r=!1);return i.$$set=s=>{"title"in s&&t(0,n=s.title),"thumb"in s&&t(1,o=s.thumb),"playNextVideo"in s&&t(2,l=s.playNextVideo)},[n,o,l,r,a]}var Ls=class extends q{constructor(e){super(),U(this,e,F2,O2,z,{title:0,thumb:1,playNextVideo:2},N2)}},l1=Ls;import{PlaybackState as Co}from"@vkontakte/videoplayer-core";import{checkNever as z2}from"@vkontakte/videoplayer-shared";import{SeekAction as cn}from"@vkontakte/videoplayer-statistics";var Rs=(i,e)=>Math.min(+(i+e).toFixed(2),1),Bs=(i,e)=>Math.max(+(i-e).toFixed(2),0),ir=(i,e,t)=>{let n=Rs(e,t);e<1&&i.actions.internal.setVolume(n)},nr=(i,e,t)=>{let n=Bs(e,t);e>0&&i.actions.internal.setVolume(n)};var to=({isAudioDisabled:i,audioDisabledHintCallback:e,isAudioAvailable:t,audioIsNotExistHintCallback:n})=>i?(e?.(),!1):t?!0:(n?.(),!1);function q2(i){Ce(i,"svelte-10kkmxz",".keyboard-controls.svelte-10kkmxz{position:absolute;left:0;right:0;top:0;bottom:0}")}function U2(i){let e,t,n,o,l,r=i[26].default,a=Pe(r,i,i[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",t=j("aria_label_video_player"))},m(s,u){C(s,e,u),a&&a.m(e,null),i[27](e),n=!0,o||(l=[pe(e,"keyup",i[17]),pe(e,"keydown",i[16])],o=!0)},p(s,u){a&&a.p&&(!n||u[0]&33554432)&&Te(a,r,s,s[25],n?Ie(r,s[25],u,null):Ee(s[25]),null)},i(s){n||(d(a,s),n=!0)},o(s){_(a,s),n=!1},d(s){s&&w(e),a&&a.d(s),i[27](null),o=!1,tt(l)}}}function K2(i,e,t){let n,o,l,r,a,s,u,f,p,h,b,g,S,y,T,{$$slots:k={},$$scope:v}=e,{isAds:I}=e,{hideContextMenu:W}=e,{toggleFullscreen:Q}=e,{showHotKeyHelpers:G}=e,{showKeyMap:le}=e,{fakePlayButtonHandler:ae}=e,V=et(),A=Tt(),$=V.getLogger().createComponentLog("KeyboardControls component"),J=V.state.playbackState$;F(i,J,ye=>t(31,o=ye));let x=V.ads.playbackState;F(i,x,ye=>t(30,n=ye));let N=V.state.positionExact$;F(i,N,ye=>t(41,g=ye));let te=V.state.duration$;F(i,te,ye=>t(40,b=ye));let E=V.state.volume$;F(i,E,ye=>t(44,T=ye));let Y=V.ui.controls.disabledControls$;F(i,Y,ye=>t(39,h=ye));let Le=V.state.muted$;F(i,Le,ye=>t(34,a=ye));let je=V.state.currentSubtitle$;F(i,je,ye=>t(33,r=ye));let qe=V.state.currentPlaybackRate$;F(i,qe,ye=>t(42,S=ye));let Je=V.state.availablePlaybackRates$;F(i,Je,ye=>t(43,y=ye));let Ne=V.ui.contextMenu.openedByHotKey$,we=V.ui.contextMenu.lastActiveElem$,X=V.ui.contextMenu.visible$,ve=V.ui.contextMenu.position$,Oe=V.state.isEnded$;F(i,Oe,ye=>t(36,u=ye));let Xe=V.ui.overlayContainer$;F(i,Xe,ye=>t(32,l=ye));let xe=V.callbacks?.onAudioDoesNotExistHint,ke=V.callbacks?.onAudioDisabledHint,Re=V.state.isAudioAvailable$;F(i,Re,ye=>t(35,s=ye));let Ue=V.state.isAudioDisabled,We=V.state.isInteractiveTime$;F(i,We,ye=>t(38,p=ye));let{showInteractiveTimeIndicatorTooltip$:se}=yn();F(i,se,ye=>t(37,f=ye));let oe=0,Se=!0,fe,Ae=()=>fe?.focus(),Ze=ye=>(ye!==Se&&(Se=ye,oe=0),oe+=1,(A.controls.seekStepKeyboard+A.controls.seekStepKeyboard*oe)/1e3),ut=ye=>{let mt=ye.target,lt=mt?.getAttribute("role")?.includes("menuitem"),dt=mt.classList.contains("btn"),ht=ye.code;if(dt&&ht==="Space")return;let Et=Fc.has(ht);if(lt&&Et)return;let Ke=!Oc.has(ht);if(ye.ctrlKey&&Ke||ye.altKey&&Ke||ye.metaKey)return;let Qt=lt&&ht==="Escape";Hc.has(ht)||Qt||W();let Bt=o===Co.PLAYING||o===Co.PAUSED,Mt=I&&(n==="paused"||n==="playing"),ti=!Mt&&!h.has("TIMELINE");if(Bt||Mt)switch($({message:`key down, code: ${ht}`}),ht){case"KeyJ":case"ArrowLeft":{if(!ti)break;if(ye.ctrlKey||ye.altKey){let it=V.actions.internal.getPrevEpisode();V.actions.internal.seekToPrevEpisode(it),it&&G({type:"EPISODE_PREV",text:it.text}),ye.preventDefault()}else{let it=ye.shiftKey?Ze(!1):A.controls.seekStepKeyboard/1e3,me=Math.max(g-it,0);g>0&&(V.actions.internal.seekTime(me,cn.DOUBLE_TAP),G({type:"BACKWARD_SEEK",text:it.toString()}),ye.preventDefault())}break}case"KeyL":case"ArrowRight":{if(!ti)break;if(ye.ctrlKey||ye.altKey){let it=V.actions.internal.getNextEpisode();V.actions.internal.seekToNextEpisode(it),it&&G({type:"EPISODE_NEXT",text:it.text}),ye.preventDefault()}else{let it=ye.shiftKey?Ze(!0):A.controls.seekStepKeyboard/1e3,me=Math.min(g+it,b);Math.round(g)<Math.round(b)&&(V.actions.internal.seekTime(me,cn.DOUBLE_TAP),G({type:"FORWARD_SEEK",text:it.toString()}),ye.preventDefault())}break}case"ArrowUp":{if(to({isAudioDisabled:Ue,audioDisabledHintCallback:ke,isAudioAvailable:s,audioIsNotExistHintCallback:xe})){let it=T,me=A.controls.volumeStepKeyboard,vt=it<=1;if(ir(V,it,me),vt){let _t=Math.round(Rs(it,me)*100).toString();G({type:"VOLUME",t:{key:"hotkey_helper_current_volume",value:_t}})}}ye.preventDefault();break}case"ArrowDown":{if(to({isAudioDisabled:Ue,audioDisabledHintCallback:ke,isAudioAvailable:s,audioIsNotExistHintCallback:xe})){let it=T,me=A.controls.volumeStepKeyboard,vt=it>=0;if(nr(V,it,me),vt){let _t=Math.round(Bs(it,me)*100).toString();G({type:"VOLUME",t:{key:"hotkey_helper_current_volume",value:_t}})}}ye.preventDefault();break}case"Comma":{if(ye.shiftKey){V.actions.internal.decrementPlaybackRate();let it=y.find(me=>me.value===S);G({type:"RATE_DOWN",text:it?.displayValue}),ye.preventDefault()}else{if(Mt||o!==Co.PAUSED)break;let it=Math.max(g-A.controls.seekStepFrame/1e3,0);g>0&&(G({type:"BACKWARD_SEEK"}),V.actions.internal.clearDelayedBufferingCheckTimeout(),V.actions.internal.seekTime(it,cn.DOUBLE_TAP),ye.preventDefault())}break}case"Period":{if(ye.shiftKey){V.actions.internal.incrementPlaybackRate();let it=y.find(me=>me.value===S);G({type:"RATE_UP",text:it?.displayValue}),ye.preventDefault()}else{if(Mt||o!==Co.PAUSED)break;let it=Math.min(g+A.controls.seekStepFrame/1e3,b);g<b&&(G({type:"FORWARD_SEEK"}),V.actions.internal.clearDelayedBufferingCheckTimeout(),V.actions.internal.seekTime(it,cn.DOUBLE_TAP),ye.preventDefault())}break}case"KeyK":case"Space":if(!h.has("PLAY_BUTTON"))if(p&&f&&se.set(!1),ae)ae();else{V.actions.internal.togglePlay();let it="PLAY";o===Co.PAUSED?it="PAUSE":u&&(it="REPLAY"),G({type:it})}ye.preventDefault();break;case"KeyM":{to({isAudioDisabled:Ue,audioDisabledHintCallback:ke,isAudioAvailable:s,audioIsNotExistHintCallback:xe})&&(G({type:a?"VOLUME":"MUTE"}),V.actions.internal.toggleMuted()),ye.preventDefault();break}case"KeyF":Q(),ye.preventDefault();break;case"KeyC":V.actions.internal.toggleSubtitle(),r.value!=="off"?G({type:"SUBTITLES_ON",text:r?.displayValue}):G({type:"SUBTITLES_OFF"}),ye.preventDefault();break;case"KeyI":V.actions.internal.togglePictureInPicture(),ye.preventDefault();break;case"Digit1":case"Numpad1":if(ye.shiftKey){let it=Df(l);ve.set(it),we.set(mt),Ne.set(!0),X.set(!0),ye.preventDefault();break}G(),V.actions.internal.seekToPercent(.1,cn.DOUBLE_TAP),ye.preventDefault();break;case"Digit2":case"Numpad2":G(),V.actions.internal.seekToPercent(.2,cn.DOUBLE_TAP),ye.preventDefault();break;case"Digit3":case"Numpad3":G(),V.actions.internal.seekToPercent(.3,cn.DOUBLE_TAP),ye.preventDefault();break;case"Digit4":case"Numpad4":G(),V.actions.internal.seekToPercent(.4,cn.DOUBLE_TAP),ye.preventDefault();break;case"Digit5":case"Numpad5":G(),V.actions.internal.seekToPercent(.5,cn.DOUBLE_TAP),ye.preventDefault();break;case"Digit6":case"Numpad6":G(),V.actions.internal.seekToPercent(.6,cn.DOUBLE_TAP),ye.preventDefault();break;case"Digit7":case"Numpad7":G(),V.actions.internal.seekToPercent(.7,cn.DOUBLE_TAP),ye.preventDefault();break;case"Digit8":case"Numpad8":G(),V.actions.internal.seekToPercent(.8,cn.DOUBLE_TAP),ye.preventDefault();break;case"Digit9":case"Numpad9":G(),V.actions.internal.seekToPercent(.9,cn.DOUBLE_TAP),ye.preventDefault();break;case"Digit0":case"Numpad0":G(),V.actions.internal.seekToPercent(0,cn.DOUBLE_TAP),ye.preventDefault();break;case"Slash":{ye.shiftKey&&A.features.hotKeyMapModal&&(le(),ye.preventDefault());break}case"ShiftLeft":case"ShiftRight":ye.preventDefault();break;case"Tab":case"Escape":case"Enter":break;default:z2(ht);break}},ct=ye=>{let mt=ye.code;if(ye.ctrlKey||ye.altKey||ye.metaKey)return;let lt=o===Co.PLAYING||o===Co.PAUSED,dt=I&&(n==="paused"||n==="playing");if(lt||dt)switch(mt){case"ShiftLeft":case"ShiftRight":oe=0;break}};function at(ye){he[ye?"unshift":"push"](()=>{fe=ye,t(0,fe)})}return i.$$set=ye=>{"isAds"in ye&&t(18,I=ye.isAds),"hideContextMenu"in ye&&t(19,W=ye.hideContextMenu),"toggleFullscreen"in ye&&t(20,Q=ye.toggleFullscreen),"showHotKeyHelpers"in ye&&t(21,G=ye.showHotKeyHelpers),"showKeyMap"in ye&&t(22,le=ye.showKeyMap),"fakePlayButtonHandler"in ye&&t(23,ae=ye.fakePlayButtonHandler),"$$scope"in ye&&t(25,v=ye.$$scope)},[fe,J,x,N,te,E,Y,Le,je,qe,Je,Oe,Xe,Re,We,se,ut,ct,I,W,Q,G,le,ae,Ae,v,k,at]}var Ds=class extends q{constructor(e){super(),U(this,e,K2,U2,z,{isAds:18,hideContextMenu:19,toggleFullscreen:20,showHotKeyHelpers:21,showKeyMap:22,fakePlayButtonHandler:23,focus:24},q2,[-1,-1])}get focus(){return this.$$.ctx[24]}},r1=Ds;function j2(i){Ce(i,"svelte-8nkw5s",".container.svelte-8nkw5s.svelte-8nkw5s{position:absolute;top:50%;left:50%;transform:translate(-50%, -50%);pointer-events:none;display:flex}.dot.svelte-8nkw5s.svelte-8nkw5s:nth-child(1){animation-delay:calc(0 * 180ms)}.dot.svelte-8nkw5s.svelte-8nkw5s:nth-child(2){animation-delay:calc(1 * 180ms)}.dot.svelte-8nkw5s.svelte-8nkw5s:nth-child(3){animation-delay:calc(2 * 180ms)}@keyframes svelte-8nkw5s-dot_animation{0%{opacity:0.2}30%{opacity:1}100%{opacity:0.2}}.dot.svelte-8nkw5s.svelte-8nkw5s{border-radius:4px;width:8px;height:8px;background:var(--white);animation-duration:750ms;animation-name:svelte-8nkw5s-dot_animation;animation-iteration-count:infinite}.dot.svelte-8nkw5s+.dot.svelte-8nkw5s{margin-left:4px}")}function W2(i){let e;return{c(){e=P("div"),e.innerHTML='<div class="dot svelte-8nkw5s"></div> <div class="dot svelte-8nkw5s"></div> <div class="dot svelte-8nkw5s"></div>',c(e,"class","container svelte-8nkw5s")},m(t,n){C(t,e,n)},p:_e,i:_e,o:_e,d(t){t&&w(e)}}}var Ns=class extends q{constructor(e){super(),U(this,e,null,W2,z,{},j2)}},or=Ns;function G2(i){let e,t,n,o,l,r,a,s,u,f,p,h,b,g,S=i[2].default,y=Pe(S,i,i[1],null),T=[{xmlns:"http://www.w3.org/2000/svg"},{width:"24"},{height:"24"},{fill:"none"},{"aria-hidden":"true"},{"data-testid":"cross-icon"},{role:"img"},i[0]],k={};for(let v=0;v<T.length;v+=1)k=ne(k,T[v]);return{c(){e=D("svg"),y&&y.c(),t=D("g"),n=D("path"),o=D("path"),l=D("defs"),r=D("filter"),a=D("feFlood"),s=D("feColorMatrix"),u=D("feOffset"),f=D("feGaussianBlur"),p=D("feColorMatrix"),h=D("feBlend"),b=D("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(t,"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(b,"in","SourceGraphic"),c(b,"in2","effect1_dropShadow_2422_111980"),c(b,"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"),be(e,k)},m(v,I){C(v,e,I),y&&y.m(e,null),m(e,t),m(t,n),m(t,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,b),g=!0},p(v,[I]){y&&y.p&&(!g||I&2)&&Te(y,S,v,v[1],g?Ie(S,v[1],I,null):Ee(v[1]),null),be(e,k=Ve(T,[{xmlns:"http://www.w3.org/2000/svg"},{width:"24"},{height:"24"},{fill:"none"},{"aria-hidden":"true"},{"data-testid":"cross-icon"},{role:"img"},I&1&&v[0]]))},i(v){g||(d(y,v),g=!0)},o(v){_(y,v),g=!1},d(v){v&&w(e),y&&y.d(v)}}}function Q2(i,e,t){let{$$slots:n={},$$scope:o}=e;return i.$$set=l=>{t(0,e=ne(ne({},e),ge(l))),"$$scope"in l&&t(1,o=l.$$scope)},e=ge(e),[e,o,n]}var Os=class extends q{constructor(e){super(),U(this,e,Q2,G2,z,{})}},s1=Os;import{noop as Wn}from"@vkontakte/videoplayer-shared";function Y2(i){Ce(i,"svelte-1anemql",".btn.svelte-1anemql{padding:8px;margin:0;height:var(--controls-height);display:flex;flex-direction:row;align-items:center}.w-max.svelte-1anemql{width:100%}.btn--live.svelte-1anemql{padding:10px 4px}.btn-m.svelte-1anemql{position:absolute;left:12px;top:50%;transform:translateY(-50%);height:44px;width:44px;border-radius:12px;background-color:rgba(0, 0, 0, 0.56);transition:opacity var(--controls-transition-duration);display:flex;align-items:center;justify-content:center}.btn-m--play.svelte-1anemql{width:var(--big-play-size);height:var(--big-play-size);display:flex;align-items:center;justify-content:center;position:relative;padding:16px}.btn.svelte-1anemql:disabled{cursor:default;pointer-events:none}.btn.svelte-1anemql:not(.btn-full-opacity):disabled{opacity:0.4}.btn.svelte-1anemql:not(:disabled):hover{opacity:0.8}.pr-0.svelte-1anemql{padding-right:0}.pl-0.svelte-1anemql{padding-left:0}")}function Z2(i){let e,t,n,o,l,r,a,s,u,f,p,h,b=i[14].default,g=Pe(b,i,i[13],null);return{c(){e=P("button"),g&&g.c(),c(e,"class",t="btn "+i[1]+" svelte-1anemql"),c(e,"style",n=i[2]||null),e.disabled=o=i[3]??null,c(e,"aria-hidden",l=i[5]??null),c(e,"aria-label",r=i[6]??null),c(e,"aria-keyshortcuts",a=i[7]??null),c(e,"aria-expanded",s=i[8]??null),c(e,"data-testid",u=i[4]??null),c(e,"tabindex",i[9])},m(S,y){C(S,e,y),g&&g.m(e,null),i[16](e),f=!0,p||(h=[pe(e,"pointerdown",rt(kt(i[15]))),pe(e,"click",rt(kt(function(){Ii(i[10]===Wn?null:i[10])&&(i[10]===Wn?null:i[10]).apply(this,arguments)}))),pe(e,"focus",kt(function(){Ii(i[11]===Wn?null:i[11])&&(i[11]===Wn?null:i[11]).apply(this,arguments)})),pe(e,"blur",kt(function(){Ii(i[12]===Wn?null:i[12])&&(i[12]===Wn?null:i[12]).apply(this,arguments)}))],p=!0)},p(S,[y]){i=S,g&&g.p&&(!f||y&8192)&&Te(g,b,i,i[13],f?Ie(b,i[13],y,null):Ee(i[13]),null),(!f||y&2&&t!==(t="btn "+i[1]+" svelte-1anemql"))&&c(e,"class",t),(!f||y&4&&n!==(n=i[2]||null))&&c(e,"style",n),(!f||y&8&&o!==(o=i[3]??null))&&(e.disabled=o),(!f||y&32&&l!==(l=i[5]??null))&&c(e,"aria-hidden",l),(!f||y&64&&r!==(r=i[6]??null))&&c(e,"aria-label",r),(!f||y&128&&a!==(a=i[7]??null))&&c(e,"aria-keyshortcuts",a),(!f||y&256&&s!==(s=i[8]??null))&&c(e,"aria-expanded",s),(!f||y&16&&u!==(u=i[4]??null))&&c(e,"data-testid",u),(!f||y&512)&&c(e,"tabindex",i[9])},i(S){f||(d(g,S),f=!0)},o(S){_(g,S),f=!1},d(S){S&&w(e),g&&g.d(S),i[16](null),p=!1,tt(h)}}}function X2(i,e,t){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:b=void 0}=e,{tabIndex:g=0}=e,{click:S=Wn}=e,{focus:y=Wn}=e,{blur:T=Wn}=e;function k(I){mn.call(this,i,I)}function v(I){he[I?"unshift":"push"](()=>{p=I,t(0,p)})}return i.$$set=I=>{"className"in I&&t(1,l=I.className),"style"in I&&t(2,r=I.style),"disabled"in I&&t(3,a=I.disabled),"testId"in I&&t(4,s=I.testId),"ariaHidden"in I&&t(5,u=I.ariaHidden),"ariaLabel"in I&&t(6,f=I.ariaLabel),"ref"in I&&t(0,p=I.ref),"ariaKeyShortCut"in I&&t(7,h=I.ariaKeyShortCut),"ariaExpanded"in I&&t(8,b=I.ariaExpanded),"tabIndex"in I&&t(9,g=I.tabIndex),"click"in I&&t(10,S=I.click),"focus"in I&&t(11,y=I.focus),"blur"in I&&t(12,T=I.blur),"$$scope"in I&&t(13,o=I.$$scope)},[p,l,r,a,s,u,f,h,b,g,S,y,T,o,n,k,v]}var Fs=class extends q{constructor(e){super(),U(this,e,X2,Z2,z,{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},Y2)}},pt=Fs;function J2(i){Ce(i,"svelte-1witlsj",".modal-overlay.svelte-1witlsj{position:absolute;top:0;bottom:0;left:0;right:0;background:transparent;display:flex;align-items:center;justify-content:center}.modal-container.svelte-1witlsj{display:flex;flex-direction:column;width:calc(100% - 32px);max-width:600px;height:calc(100% - 24px);max-height:490px;background:var(--mobile-settings-bg);color:var(--white);border-radius:8px}.modal-header.svelte-1witlsj{box-sizing:border-box;display:flex;justify-content:space-between;align-items:start;height:40px;padding:8px 10px;border-bottom:1px solid var(--white-alpha-24)}.modal-title.svelte-1witlsj{margin:3px 0 0 6px;color:var(--white);font-feature-settings:'clig' off, 'liga' off;font-size:13px;font-style:normal;font-weight:600;line-height:16px}.modal-scroll.svelte-1witlsj{overflow-y:auto;overflow-x:hidden;margin:8px 4px 8px 0;height:100%}.modal-scroll.svelte-1witlsj::-webkit-scrollbar{width:8px}.modal-scroll.svelte-1witlsj::-webkit-scrollbar-track{box-shadow:none;background-color:transparent;border-radius:4px;margin-right:2px}.modal-scroll.svelte-1witlsj::-webkit-scrollbar-thumb{min-height:40px;border-radius:5px;background-color:#666;border:1px solid transparent;background-clip:padding-box}.modal-scroll.svelte-1witlsj::-webkit-scrollbar-thumb:hover{background-color:#777}.modal-main.svelte-1witlsj{margin:-8px -4px 0 0}")}function a1(i){let e,t,n,o,l,r=i[2]&&u1(i);return{c(){e=P("div"),t=P("h3"),n=Be(i[3]),o=O(),r&&r.c(),c(t,"class","modal-title svelte-1witlsj"),c(e,"class","modal-header svelte-1witlsj")},m(a,s){C(a,e,s),m(e,t),m(t,n),m(e,o),r&&r.m(e,null),l=!0},p(a,s){(!l||s&8)&&Qe(n,a[3]),a[2]?r?(r.p(a,s),s&4&&d(r,1)):(r=u1(a),r.c(),d(r,1),r.m(e,null)):r&&(ue(),_(r,1,1,()=>{r=null}),ce())},i(a){l||(d(r),l=!0)},o(a){_(r),l=!1},d(a){a&&w(e),r&&r.d()}}}function u1(i){let e,t;return e=new pt({props:{click:i[0],testId:"close-modal",style:"padding: 0; height: 24px; width: 24px",ariaLabel:j("hotkey_map_modal_close_btn_text"),$$slots:{default:[x2]},$$scope:{ctx:i}}}),{c(){B(e.$$.fragment)},m(n,o){L(e,n,o),t=!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){t||(d(e.$$.fragment,n),t=!0)},o(n){_(e.$$.fragment,n),t=!1},d(n){R(e,n)}}}function x2(i){let e,t;return e=new s1({}),{c(){B(e.$$.fragment)},m(n,o){L(e,n,o),t=!0},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){_(e.$$.fragment,n),t=!1},d(n){R(e,n)}}}function $2(i){let e,t,n,o,l,r,a=i[1]&&a1(i),s=i[4].default,u=Pe(s,i,i[5],null);return{c(){e=P("div"),t=P("div"),a&&a.c(),n=O(),o=P("div"),l=P("div"),u&&u.c(),c(l,"class","modal-main svelte-1witlsj"),c(o,"class","modal-scroll svelte-1witlsj"),c(t,"class","modal-container svelte-1witlsj"),c(e,"class","modal-overlay svelte-1witlsj")},m(f,p){C(f,e,p),m(e,t),a&&a.m(t,null),m(t,n),m(t,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=a1(f),a.c(),d(a,1),a.m(t,n)):a&&(ue(),_(a,1,1,()=>{a=null}),ce()),u&&u.p&&(!r||p&32)&&Te(u,s,f,f[5],r?Ie(s,f[5],p,null):Ee(f[5]),null)},i(f){r||(d(a),d(u,f),r=!0)},o(f){_(a),_(u,f),r=!1},d(f){f&&w(e),a&&a.d(),u&&u.d(f)}}}function eh(i,e,t){let{$$slots:n={},$$scope:o}=e,{onClose:l}=e,{showHeader:r=!0}=e,{showCloseCross:a=!0}=e,{title:s}=e;return i.$$set=u=>{"onClose"in u&&t(0,l=u.onClose),"showHeader"in u&&t(1,r=u.showHeader),"showCloseCross"in u&&t(2,a=u.showCloseCross),"title"in u&&t(3,s=u.title),"$$scope"in u&&t(5,o=u.$$scope)},[l,r,a,s,n,o]}var Hs=class extends q{constructor(e){super(),U(this,e,eh,$2,z,{onClose:0,showHeader:1,showCloseCross:2,title:3},J2)}},c1=Hs;var th=new Set(["BR"]),zs=i=>{let e=document.createElement("DIV");e.innerHTML=i;let t=e.querySelectorAll("*"),n=t.length;for(;n--;){let o=t[n],l=o.tagName;th.has(l)||o.parentElement?.removeChild(o)}return e.innerHTML};function ih(i){Ce(i,"svelte-quklnq",".hot-key-map.svelte-quklnq{color:var(--black);box-sizing:border-box;overflow-x:hidden}.hot-key-map-group.svelte-quklnq{border-bottom:1px solid var(--white-alpha-24);margin:0 20px 0 16px}.hot-key-map-group.svelte-quklnq:last-child{border-bottom:none}.hot-key-map-group-title.svelte-quklnq{color:var(--white);font-feature-settings:'clig' off, 'liga' off;font-size:13px;font-style:normal;font-weight:600;line-height:16px}.hot-key-map-group-title.svelte-quklnq,.hot-key-map-item.svelte-quklnq{padding:12px 0;margin:0;width:100%}.hot-key-map-group-items.svelte-quklnq{box-sizing:border-box;list-style:none;padding:0;margin:0}.hot-key-map-item.svelte-quklnq{box-sizing:border-box;display:flex;justify-content:space-between;align-items:center;--videoplayer-hotkey-item-value-width:156px;--videoplayer-hotkey-item-value-padding-left:24px}.hot-key-map-item-description.svelte-quklnq{color:var(--white-alpha-72);width:calc(100% - var(--videoplayer-hotkey-item-value-width) - var(--videoplayer-hotkey-item-value-padding-left));max-width:388px}.hot-key-map-item-value.svelte-quklnq{color:var(--white);width:var(--videoplayer-hotkey-item-value-width);padding-left:var(--videoplayer-hotkey-item-value-padding-left);letter-spacing:-0.14px}.hot-key-map-item-description.svelte-quklnq,.hot-key-map-item-value.svelte-quklnq{font-feature-settings:'clig' off, 'liga' off;font-size:13px;font-style:normal;font-weight:400;line-height:16px}")}function f1(i,e,t){let n=i.slice();return n[5]=e[t].title,n[6]=e[t].items,n}function d1(i,e,t){let n=i.slice();return n[9]=e[t].description,n[10]=e[t].value,n}function m1(i){let e,t,n=zs(i[9])+"",o,l,r=i[10]+"",a,s;return{c(){e=P("li"),t=P("span"),o=O(),l=P("span"),a=Be(r),s=O(),c(t,"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){C(u,e,f),m(e,t),t.innerHTML=n,m(e,o),m(e,l),m(l,a),m(e,s)},p(u,f){f&1&&n!==(n=zs(u[9])+"")&&(t.innerHTML=n),f&1&&r!==(r=u[10]+"")&&Qe(a,r)},d(u){u&&w(e)}}}function p1(i){let e,t,n=i[5]+"",o,l,r,a,s=gt(i[6]),u=[];for(let f=0;f<s.length;f+=1)u[f]=m1(d1(i,s,f));return{c(){e=P("div"),t=P("h5"),o=Be(n),l=O(),r=P("ul");for(let f=0;f<u.length;f+=1)u[f].c();a=O(),c(t,"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){C(f,e,p),m(e,t),m(t,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]+"")&&Qe(o,n),p&1){s=gt(f[6]);let h;for(h=0;h<s.length;h+=1){let b=d1(f,s,h);u[h]?u[h].p(b,p):(u[h]=m1(b),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&&w(e),Ni(u,f)}}}function nh(i){let e,t=gt(i[0].groups),n=[];for(let o=0;o<t.length;o+=1)n[o]=p1(f1(i,t,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){C(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){t=gt(o[0].groups);let r;for(r=0;r<t.length;r+=1){let a=f1(o,t,r);n[r]?n[r].p(a,l):(n[r]=p1(a),n[r].c(),n[r].m(e,null))}for(;r<n.length;r+=1)n[r].d(1);n.length=t.length}},d(o){o&&w(e),Ni(n,o)}}}function oh(i){let e,t;return e=new c1({props:{title:i[0].title,onClose:i[2],$$slots:{default:[nh]},$$scope:{ctx:i}}}),{c(){B(e.$$.fragment)},m(n,o){L(e,n,o),t=!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){t||(d(e.$$.fragment,n),t=!0)},o(n){_(e.$$.fragment,n),t=!1},d(n){R(e,n)}}}function lh(i,e,t){let n,o=et(),{data:l,show:r}=o.ui.modals.hotKeyMap;return F(i,l,s=>t(0,n=s)),[n,l,()=>{r.set(!1)}]}var qs=class extends q{constructor(e){super(),U(this,e,lh,oh,z,{},ih)}},_1=qs;import{noop as Cu}from"@vkontakte/videoplayer-shared";import{ChromecastState as Zd,PlaybackState as mu}from"@vkontakte/videoplayer-core";import{VideoQuality as $h}from"@vkontakte/videoplayer-core";import"@vkontakte/videoplayer-shared";function rh(i){Ce(i,"svelte-1oe0j8n",".pillow.svelte-1oe0j8n{background-color:#679FF8;color:var(--white);font-size:6px;font-weight:600;-webkit-font-smoothing:antialiased;padding:2px 4px;border-radius:12px}")}function sh(i){let e,t,n=i[1].default,o=Pe(n,i,i[0],null);return{c(){e=P("div"),o&&o.c(),c(e,"class","pillow svelte-1oe0j8n")},m(l,r){C(l,e,r),o&&o.m(e,null),t=!0},p(l,[r]){o&&o.p&&(!t||r&1)&&Te(o,n,l,l[0],t?Ie(n,l[0],r,null):Ee(l[0]),null)},i(l){t||(d(o,l),t=!0)},o(l){_(o,l),t=!1},d(l){l&&w(e),o&&o.d(l)}}}function ah(i,e,t){let{$$slots:n={},$$scope:o}=e;return i.$$set=l=>{"$$scope"in l&&t(0,o=l.$$scope)},[o,n]}var Us=class extends q{constructor(e){super(),U(this,e,ah,sh,z,{},rh)}},h1=Us;import{VideoQuality as cl}from"@vkontakte/videoplayer-core";function uh(i){let e,t,n,o,l=i[2].default,r=Pe(l,i,i[1],null),a=[{xmlns:"http://www.w3.org/2000/svg"},{width:"9"},{height:"5"},{fill:"none"},{role:"img"},i[0]],s={};for(let u=0;u<a.length;u+=1)s=ne(s,a[u]);return{c(){e=D("svg"),r&&r.c(),t=D("path"),n=D("path"),c(t,"fill","currentColor"),c(t,"d","M5.517 5c.325 0 .516-.198.516-.536v-.97l.492-.517 1.46 1.74c.16.205.304.283.516.283A.49.49 0 0 0 9 4.501c0-.14-.068-.287-.222-.478l-1.47-1.73L8.818.868C8.949.731 9 .618 9 .475A.474.474 0 0 0 8.515 0c-.171 0-.301.065-.445.222L6.064 2.25h-.03V.54c0-.342-.192-.54-.517-.54s-.516.198-.516.54v3.924c0 .338.191.536.516.536"),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"),be(e,s)},m(u,f){C(u,e,f),r&&r.m(e,null),m(e,t),m(e,n),o=!0},p(u,[f]){r&&r.p&&(!o||f&2)&&Te(r,l,u,u[1],o?Ie(l,u[1],f,null):Ee(u[1]),null),be(e,s=Ve(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&&w(e),r&&r.d(u)}}}function ch(i,e,t){let{$$slots:n={},$$scope:o}=e;return i.$$set=l=>{t(0,e=ne(ne({},e),ge(l))),"$$scope"in l&&t(1,o=l.$$scope)},e=ge(e),[e,o,n]}var Ks=class extends q{constructor(e){super(),U(this,e,ch,uh,z,{})}},g1=Ks;function fh(i){let e,t,n,o,l=i[2].default,r=Pe(l,i,i[1],null),a=[{xmlns:"http://www.w3.org/2000/svg"},{width:"9"},{height:"5"},{fill:"none"},{role:"img"},i[0]],s={};for(let u=0;u<a.length;u+=1)s=ne(s,a[u]);return{c(){e=D("svg"),r&&r.c(),t=D("path"),n=D("path"),c(t,"fill","currentColor"),c(t,"d","M5.513 5c.323 0 .513-.198.513-.537v-.97l.49-.516L7.99 4.715c.16.205.302.284.513.284A.49.49 0 0 0 9 4.5c0-.14-.068-.287-.22-.478L7.293 2.293 8.82.868C8.949.731 9 .618 9 .475A.473.473 0 0 0 8.517 0c-.17 0-.299.065-.441.222L6.056 2.25h-.03V.54c0-.342-.19-.54-.513-.54S5 .198 5 .54v3.923c0 .339.19.537.513.537"),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"),be(e,s)},m(u,f){C(u,e,f),r&&r.m(e,null),m(e,t),m(e,n),o=!0},p(u,[f]){r&&r.p&&(!o||f&2)&&Te(r,l,u,u[1],o?Ie(l,u[1],f,null):Ee(u[1]),null),be(e,s=Ve(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&&w(e),r&&r.d(u)}}}function dh(i,e,t){let{$$slots:n={},$$scope:o}=e;return i.$$set=l=>{t(0,e=ne(ne({},e),ge(l))),"$$scope"in l&&t(1,o=l.$$scope)},e=ge(e),[e,o,n]}var js=class extends q{constructor(e){super(),U(this,e,dh,fh,z,{})}},b1=js;function mh(i){let e,t,n,o=i[2].default,l=Pe(o,i,i[1],null),r=[{xmlns:"http://www.w3.org/2000/svg"},{width:"9"},{height:"5"},{fill:"none"},{role:"img"},i[0]],a={};for(let s=0;s<r.length;s+=1)a=ne(a,r[s]);return{c(){e=D("svg"),l&&l.c(),t=D("path"),c(t,"fill","currentColor"),c(t,"d","M5.516 5h1.107C8.103 5 9 4.065 9 2.5S8.103 0 6.623 0H5.516C5.191 0 5 .2 5 .537V4.46c0 .342.191.54.516.54m.516-.854V.852H6.5C7.41.852 8 1.468 8 2.5c0 1.066-.577 1.646-1.5 1.646zM.516 5c.325 0 .516-.198.516-.536V2.922h1.936v1.542c0 .338.191.536.516.536S4 4.802 4 4.464V.54C4 .198 3.809 0 3.484 0s-.516.198-.516.54v1.531H1.032V.54C1.032.198.841 0 .516 0S0 .198 0 .54v3.989C0 4.867.191 5 .516 5"),be(e,a)},m(s,u){C(s,e,u),l&&l.m(e,null),m(e,t),n=!0},p(s,[u]){l&&l.p&&(!n||u&2)&&Te(l,o,s,s[1],n?Ie(o,s[1],u,null):Ee(s[1]),null),be(e,a=Ve(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&&w(e),l&&l.d(s)}}}function ph(i,e,t){let{$$slots:n={},$$scope:o}=e;return i.$$set=l=>{t(0,e=ne(ne({},e),ge(l))),"$$scope"in l&&t(1,o=l.$$scope)},e=ge(e),[e,o,n]}var Ws=class extends q{constructor(e){super(),U(this,e,ph,mh,z,{})}},v1=Ws;function _h(i){let e,t,n,o=i[2].default,l=Pe(o,i,i[1],null),r=[{xmlns:"http://www.w3.org/2000/svg"},{width:"13"},{height:"5"},{fill:"none"},{role:"img"},i[0]],a={};for(let s=0;s<r.length;s+=1)a=ne(a,r[s]);return{c(){e=D("svg"),l&&l.c(),t=D("path"),c(t,"fill","currentColor"),c(t,"d","M9.516 5h1.107C12.103 5 13 4.065 13 2.5S12.103 0 10.623 0H9.516C9.191 0 9 .2 9 .537V4.46c0 .342.191.54.516.54m.516-.854V.852h.468c.91 0 1.5.616 1.5 1.648 0 1.066-.577 1.646-1.5 1.646zM4.516 5c.325 0 .516-.198.516-.536V2.922h1.936v1.542c0 .338.191.536.516.536S8 4.802 8 4.464V.54C8 .198 7.809 0 7.484 0s-.516.198-.516.54v1.531H5.032V.54c0-.342-.191-.54-.516-.54S4 .198 4 .54v3.989c0 .338.191.471.516.471m-4 0c.325 0 .516-.198.516-.537V3h1.332c.27 0 .441-.154.441-.41 0-.253-.174-.407-.44-.407H1.031V.854h1.5c.28 0 .468-.16.468-.427C3 .161 2.815 0 2.532 0H.516C.191 0 0 .198 0 .537v3.926C0 4.802.191 5 .516 5"),be(e,a)},m(s,u){C(s,e,u),l&&l.m(e,null),m(e,t),n=!0},p(s,[u]){l&&l.p&&(!n||u&2)&&Te(l,o,s,s[1],n?Ie(o,s[1],u,null):Ee(s[1]),null),be(e,a=Ve(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&&w(e),l&&l.d(s)}}}function hh(i,e,t){let{$$slots:n={},$$scope:o}=e;return i.$$set=l=>{t(0,e=ne(ne({},e),ge(l))),"$$scope"in l&&t(1,o=l.$$scope)},e=ge(e),[e,o,n]}var Gs=class extends q{constructor(e){super(),U(this,e,hh,_h,z,{})}},lr=Gs;function gh(i){let e,t,n,o,l=i[2].default,r=Pe(l,i,i[1],null),a=[{xmlns:"http://www.w3.org/2000/svg"},{width:"15"},{height:"7"},{fill:"none"},{role:"img"},i[0]],s={};for(let u=0;u<a.length;u+=1)s=ne(s,a[u]);return{c(){e=D("svg"),r&&r.c(),t=D("path"),n=D("path"),c(t,"fill","currentColor"),c(t,"d","M11.516 5.75h1.107c1.48 0 2.377-.935 2.377-2.5s-.897-2.5-2.377-2.5h-1.107c-.325 0-.516.199-.516.537V5.21c0 .342.191.54.516.54m.516-.854V1.602h.468c.91 0 1.5.616 1.5 1.648 0 1.066-.577 1.646-1.5 1.646zm-5.516.854c.325 0 .516-.198.516-.536V3.672h1.936v1.542c0 .338.191.536.516.536S10 5.552 10 5.214V1.29c0-.342-.191-.54-.516-.54s-.516.198-.516.54v1.531H7.032V1.29c0-.342-.191-.54-.516-.54S6 .948 6 1.29v3.989c0 .338.191.471.516.471"),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"),be(e,s)},m(u,f){C(u,e,f),r&&r.m(e,null),m(e,t),m(e,n),o=!0},p(u,[f]){r&&r.p&&(!o||f&2)&&Te(r,l,u,u[1],o?Ie(l,u[1],f,null):Ee(u[1]),null),be(e,s=Ve(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&&w(e),r&&r.d(u)}}}function bh(i,e,t){let{$$slots:n={},$$scope:o}=e;return i.$$set=l=>{t(0,e=ne(ne({},e),ge(l))),"$$scope"in l&&t(1,o=l.$$scope)},e=ge(e),[e,o,n]}var Qs=class extends q{constructor(e){super(),U(this,e,bh,gh,z,{})}},rr=Qs;var io=i=>{switch(i){case cl.Q_720P:return v1;case cl.Q_1080P:return lr;case cl.Q_1440P:return rr;case cl.Q_2160P:return g1;case cl.Q_4320P:return b1}};function vh(i){let e,t,n,o=i[2].default,l=Pe(o,i,i[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"},i[0]],a={};for(let s=0;s<r.length;s+=1)a=ne(a,r[s]);return{c(){e=D("svg"),l&&l.c(),t=D("path"),c(t,"fill","#fff"),c(t,"d","M12.722 2.213c1.208.037 1.994.702 2.408 1.954l.065.215.051.191q.027.111.068.235l.058.159.034.017.069-.023.133-.051.156-.068c1.414-.658 2.502-.536 3.387.437l.125.145.82 1.017c.732.962.71 1.99-.004 3.1l-.125.187-.117.16a3 3 0 0 0-.142.205l-.07.115-.034.057.004.02.091.06.127.077.153.083c1.39.71 1.963 1.641 1.742 2.936l-.038.188-.244 1.058c-.158.685-.282 1.01-.77 1.454-.475.432-1.016.61-1.732.67l-.22.014-.198.006q-.116.002-.246.015l-.181.021.013.142.013.096.033.179c.323 1.526-.04 2.558-1.188 3.202l-.17.09-1.175.57c-1.102.495-2.099.242-3.02-.702l-.153-.164-.13-.15a3 3 0 0 0-.17-.186l-.097-.096-.05-.046-.09.087-.106.108-.118.133c-.952 1.134-1.957 1.54-3.176 1.067l-.175-.074-1.052-.51-.312-.16c-.476-.26-.743-.51-1.004-1.061-.275-.58-.294-1.15-.16-1.883l.044-.225q.024-.114.041-.242l.019-.172-.004-.004-.104-.014-.146-.013-.174-.008c-1.56-.028-2.484-.614-2.853-1.877l-.049-.185-.292-1.274c-.235-1.185.236-2.1 1.364-2.785l.194-.112.175-.093a3 3 0 0 0 .216-.12l.155-.102.004-.019-.063-.108-.08-.125-.103-.143c-.937-1.246-1.044-2.335-.276-3.404l.115-.153.824-1.013c.79-.915 1.8-1.107 3.034-.64l.208.083.181.081q.103.048.222.093l.136.048.036-.017.033-.089.045-.138.046-.166c.36-1.436 1.085-2.242 2.39-2.35l.19-.011h1.39Zm-.056 1.799h-1.333l-.14.01c-.285.037-.472.191-.652.832l-.041.156-.057.206a6.3 6.3 0 0 1-.468 1.134 6 6 0 0 0-1.147.558 6.5 6.5 0 0 1-1.16-.35l-.35-.154c-.248-.107-.435-.161-.583-.175l-.084-.003a.55.55 0 0 0-.408.193l-.068.074-.789.973-.095.125c-.183.264-.21.5.195 1.075l.228.316c.212.31.425.692.598 1.102q-.195.577-.27 1.201c-.334.29-.69.537-1.013.72l-.343.184c-.617.34-.695.563-.646.881l.013.075.28 1.22.04.152c.096.308.265.475.968.509l.388.014c.37.024.798.09 1.223.204q.337.526.776.968a6.3 6.3 0 0 1-.118 1.445c-.201.95-.014 1.102.383 1.3l1.126.547a.8.8 0 0 0 .337.089l.067-.006c.181-.028.382-.162.67-.485l.258-.295a6.5 6.5 0 0 1 .949-.837l.298.023L12 18l.302-.008.298-.022c.363.263.691.559.948.837l.258.295c.325.364.538.488.737.49l.066-.003a.8.8 0 0 0 .178-.046l.093-.039 1.126-.548.139-.073c.3-.175.42-.395.245-1.226a6.2 6.2 0 0 1-.117-1.445q.436-.442.775-.97a6.5 6.5 0 0 1 1.223-.202l.387-.014c.812-.04.912-.256 1.008-.66l.264-1.142c.09-.406.095-.643-.617-1.035l-.342-.183a6.4 6.4 0 0 1-1.014-.722 6 6 0 0 0-.27-1.201c.174-.41.386-.791.598-1.1l.228-.317c.406-.575.378-.81.195-1.075l-.045-.062-.787-.974c-.14-.171-.259-.294-.452-.322l-.076-.007c-.16-.003-.368.05-.667.178l-.35.155a6.4 6.4 0 0 1-1.158.348 6 6 0 0 0-1.15-.556 6.5 6.5 0 0 1-.454-1.093l-.113-.414c-.192-.678-.393-.805-.714-.828zM12 8.2a3.8 3.8 0 1 1 0 7.6 3.8 3.8 0 0 1 0-7.6m0 1.8a2 2 0 1 0 0 4 2 2 0 0 0 0-4"),be(e,a)},m(s,u){C(s,e,u),l&&l.m(e,null),m(e,t),n=!0},p(s,[u]){l&&l.p&&(!n||u&2)&&Te(l,o,s,s[1],n?Ie(o,s[1],u,null):Ee(s[1]),null),be(e,a=Ve(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&&w(e),l&&l.d(s)}}}function yh(i,e,t){let{$$slots:n={},$$scope:o}=e;return i.$$set=l=>{t(0,e=ne(ne({},e),ge(l))),"$$scope"in l&&t(1,o=l.$$scope)},e=ge(e),[e,o,n]}var Ys=class extends q{constructor(e){super(),U(this,e,yh,vh,z,{})}},y1=Ys;function wh(i){let e,t,n,o,l=i[2].default,r=Pe(l,i,i[1],null),a=[{xmlns:"http://www.w3.org/2000/svg"},{width:"24"},{height:"24"},{fill:"none"},{"data-testid":"settings-icon"},{role:"img"},i[0]],s={};for(let u=0;u<a.length;u+=1)s=ne(s,a[u]);return{c(){e=D("svg"),r&&r.c(),t=D("path"),n=D("path"),c(t,"fill","#fff"),c(t,"fill-rule","evenodd"),c(t,"d","M13.933 4.875a.6.6 0 0 0-.07-.658c-.327-.413-.45-.833-.574-1.253l-.039-.13C13 2 12.833 2 12.417 2h-.91c-.371.003-.6.052-.757.833-.148.738-.36 1.476-1.566 2.186a.5.5 0 0 1-.12.05c-1.27.324-1.905-.023-2.542-.37l-.12-.065c-.766-.412-.884-.294-1.178 0l-.643.644c-.26.264-.389.461.053 1.124.418.626.789 1.299.438 2.654a.5.5 0 0 1-.05.12c-.668 1.126-1.362 1.33-2.058 1.535l-.13.039C2 11 2 11.167 2 11.583v.91c.003.371.052.6.833.757.738.148 1.476.36 2.186 1.566a.5.5 0 0 1 .05.12c.324 1.27-.023 1.905-.37 2.542l-.065.12c-.412.766-.294.884 0 1.178l.644.643c.264.26.461.389 1.124-.053.626-.418 1.299-.789 2.654-.438q.063.016.12.05c1.126.668 1.33 1.362 1.535 2.058l.039.13c.25.834.417.834.833.834h.91c.371-.003.6-.052.757-.833.148-.738.36-1.476 1.566-2.186a.5.5 0 0 1 .12-.05c1.27-.324 1.905.023 2.542.37l.12.065c.766.412.884.294 1.178 0l.643-.644c.26-.264.389-.461-.053-1.124-.26-.39-.503-.799-.563-1.38a.6.6 0 0 0-.413-.519 7.5 7.5 0 0 1-1.918-.871.58.58 0 0 0-.758.134 4.75 4.75 0 1 1-3.163-7.68.58.58 0 0 0 .633-.44 7.5 7.5 0 0 1 .749-1.967"),c(t,"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"),be(e,s)},m(u,f){C(u,e,f),r&&r.m(e,null),m(e,t),m(e,n),o=!0},p(u,[f]){r&&r.p&&(!o||f&2)&&Te(r,l,u,u[1],o?Ie(l,u[1],f,null):Ee(u[1]),null),be(e,s=Ve(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&&w(e),r&&r.d(u)}}}function kh(i,e,t){let{$$slots:n={},$$scope:o}=e;return i.$$set=l=>{t(0,e=ne(ne({},e),ge(l))),"$$scope"in l&&t(1,o=l.$$scope)},e=ge(e),[e,o,n]}var Zs=class extends q{constructor(e){super(),U(this,e,kh,wh,z,{})}},w1=Zs;function Ch(i){Ce(i,"svelte-8t5w85",'.icon.svelte-8t5w85{display:flex;position:relative;width:24px;height:24px}.icon.svelte-8t5w85 .pillow{position:absolute;top:1px;right:-9px}.icon.triple.svelte-8t5w85 .pillow{right:-13px}.icon.svelte-8t5w85 svg[data-testid="settings-icon--labeled"] ._full{visibility:hidden;opacity:0}')}function Sh(i){let e,t,n,o,l=i[1]&&k1(i);return n=new w1({props:{"data-testid":i[1]?"settings-icon--labeled":"settings-icon"}}),{c(){e=P("div"),l&&l.c(),t=O(),B(n.$$.fragment),c(e,"class","icon svelte-8t5w85"),c(e,"aria-hidden","true"),H(e,"triple",i[2])},m(r,a){C(r,e,a),l&&l.m(e,null),m(e,t),L(n,e,null),o=!0},p(r,a){r[1]?l?(l.p(r,a),a&2&&d(l,1)):(l=k1(r),l.c(),d(l,1),l.m(e,t)):l&&(ue(),_(l,1,1,()=>{l=null}),ce());let s={};a&2&&(s["data-testid"]=r[1]?"settings-icon--labeled":"settings-icon"),n.$set(s),(!o||a&4)&&H(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&&w(e),l&&l.d(),R(n)}}}function Ph(i){let e,t;return e=new y1({}),{c(){B(e.$$.fragment)},m(n,o){L(e,n,o),t=!0},p:_e,i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){_(e.$$.fragment,n),t=!1},d(n){R(e,n)}}}function k1(i){let e,t;return e=new h1({props:{$$slots:{default:[Ih]},$$scope:{ctx:i}}}),{c(){B(e.$$.fragment)},m(n,o){L(e,n,o),t=!0},p(n,o){let l={};o&18&&(l.$$scope={dirty:o,ctx:n}),e.$set(l)},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){_(e.$$.fragment,n),t=!1},d(n){R(e,n)}}}function Ih(i){let e,t,n;var o=i[1];function l(r){return{}}return o&&(e=un(o,l(i))),{c(){e&&B(e.$$.fragment),t=ot()},m(r,a){e&&L(e,r,a),C(r,t,a),n=!0},p(r,a){if(a&2&&o!==(o=r[1])){if(e){ue();let s=e;_(s.$$.fragment,1,0,()=>{R(s,1)}),ce()}o?(e=un(o,l(r)),B(e.$$.fragment),d(e.$$.fragment,1),L(e,t.parentNode,t)):e=null}},i(r){n||(e&&d(e.$$.fragment,r),n=!0)},o(r){e&&_(e.$$.fragment,r),n=!1},d(r){r&&w(t),e&&R(e,r)}}}function Th(i){let e,t,n,o,l=[Ph,Sh],r=[];function a(s,u){return s[0]?0:1}return e=a(i,-1),t=r[e]=l[e](i),{c(){t.c(),n=ot()},m(s,u){r[e].m(s,u),C(s,n,u),o=!0},p(s,[u]){let f=e;e=a(s,u),e===f?r[e].p(s,u):(ue(),_(r[f],1,1,()=>{r[f]=null}),ce(),t=r[e],t?t.p(s,u):(t=r[e]=l[e](s),t.c()),d(t,1),t.m(n.parentNode,n))},i(s){o||(d(t),o=!0)},o(s){_(t),o=!1},d(s){s&&w(n),r[e].d(s)}}}function Eh(i,e,t){let n,{isMobile:o=!1}=e,{currentQuality:l=void 0}=e,r;return i.$$set=a=>{"isMobile"in a&&t(0,o=a.isMobile),"currentQuality"in a&&t(3,l=a.currentQuality)},i.$$.update=()=>{if(i.$$.dirty&8)e:t(1,n=io(l));if(i.$$.dirty&2)e:t(2,r=!!n&&[lr,rr].includes(n))},[o,n,r,l]}var Xs=class extends q{constructor(e){super(),U(this,e,Eh,Th,z,{isMobile:0,currentQuality:3},Ch)}},sr=Xs;function Ah(i){let e,t,n,o=i[2].default,l=Pe(o,i,i[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"},i[0]],a={};for(let s=0;s<r.length;s+=1)a=ne(a,r[s]);return{c(){e=D("svg"),l&&l.c(),t=D("path"),c(t,"fill","#fff"),c(t,"d","M14.692.428c2.293 0 3.124.24 3.962.687a4.67 4.67 0 0 1 1.944 1.944c.449.839.687 1.67.687 3.962v3.958c0 2.292-.238 3.123-.687 3.961a4.67 4.67 0 0 1-1.944 1.944c-.838.449-1.67.687-3.962.687H7.307c-2.293 0-3.124-.238-3.962-.687A4.67 4.67 0 0 1 1.4 14.94c-.448-.838-.687-1.669-.687-3.961V7.02c0-2.292.239-3.123.687-3.962a4.67 4.67 0 0 1 1.944-1.944C4.183.667 5.015.428 7.307.428zm.243 1.716-7.628-.001c-1.832 0-2.484.126-3.154.484a2.96 2.96 0 0 0-1.24 1.24c-.343.64-.473 1.264-.484 2.912v4.2c0 1.83.125 2.483.483 3.153q.433.809 1.241 1.24c.67.36 1.322.485 3.154.485h7.385c1.832 0 2.484-.126 3.154-.484a2.96 2.96 0 0 0 1.24-1.241c.36-.67.485-1.322.485-3.153V7.02c0-1.831-.126-2.483-.484-3.153a2.96 2.96 0 0 0-1.241-1.24c-.64-.343-1.263-.473-2.911-.484ZM11 10.714a.857.857 0 1 1 0 1.714H5.857a.857.857 0 0 1 0-1.714zm5.142 0a.857.857 0 1 1 0 1.714h-1.714a.857.857 0 0 1 0-1.714zm0-3.428a.857.857 0 1 1 0 1.714H11a.857.857 0 1 1 0-1.714zm-8.571 0a.857.857 0 0 1 0 1.714H5.857a.857.857 0 0 1 0-1.714z"),be(e,a)},m(s,u){C(s,e,u),l&&l.m(e,null),m(e,t),n=!0},p(s,[u]){l&&l.p&&(!n||u&2)&&Te(l,o,s,s[1],n?Ie(o,s[1],u,null):Ee(s[1]),null),be(e,a=Ve(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&&w(e),l&&l.d(s)}}}function Mh(i,e,t){let{$$slots:n={},$$scope:o}=e;return i.$$set=l=>{t(0,e=ne(ne({},e),ge(l))),"$$scope"in l&&t(1,o=l.$$scope)},e=ge(e),[e,o,n]}var Js=class extends q{constructor(e){super(),U(this,e,Mh,Ah,z,{})}},ar=Js;function Vh(i){let e,t,n,o=i[2].default,l=Pe(o,i,i[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"},i[0]],a={};for(let s=0;s<r.length;s+=1)a=ne(a,r[s]);return{c(){e=D("svg"),l&&l.c(),t=D("path"),c(t,"fill","#fff"),c(t,"fill-rule","evenodd"),c(t,"d","M8 0a.9.9 0 0 1 .9.9v10.927l4.564-4.563a.9.9 0 0 1 1.272 1.272l-6.1 6.1a.9.9 0 0 1-1.272 0l-6.1-6.1a.9.9 0 1 1 1.272-1.272L7.1 11.827V.9A.9.9 0 0 1 8 0M0 18a.9.9 0 0 1 .9-.9h14.2a.9.9 0 1 1 0 1.8H.9A.9.9 0 0 1 0 18"),c(t,"clip-rule","evenodd"),be(e,a)},m(s,u){C(s,e,u),l&&l.m(e,null),m(e,t),n=!0},p(s,[u]){l&&l.p&&(!n||u&2)&&Te(l,o,s,s[1],n?Ie(o,s[1],u,null):Ee(s[1]),null),be(e,a=Ve(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&&w(e),l&&l.d(s)}}}function Lh(i,e,t){let{$$slots:n={},$$scope:o}=e;return i.$$set=l=>{t(0,e=ne(ne({},e),ge(l))),"$$scope"in l&&t(1,o=l.$$scope)},e=ge(e),[e,o,n]}var xs=class extends q{constructor(e){super(),U(this,e,Lh,Vh,z,{})}},C1=xs;function Rh(i){let e,t,n,o=i[2].default,l=Pe(o,i,i[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"},i[0]],a={};for(let s=0;s<r.length;s+=1)a=ne(a,r[s]);return{c(){e=D("svg"),l&&l.c(),t=D("path"),c(t,"fill","#fff"),c(t,"fill-rule","evenodd"),c(t,"d","M.1 6.5c0-2.24 0-3.36.436-4.216A4 4 0 0 1 2.284.536C3.139.1 4.259.1 6.5.1h5c2.24 0 3.36 0 4.216.436a4 4 0 0 1 1.748 1.748c.436.856.436 1.976.436 4.216s0 3.36-.436 4.216a4 4 0 0 1-1.748 1.748c-.836.426-1.925.436-4.064.436l.55 2.2H14.1a.9.9 0 0 1 0 1.8H3.9a.9.9 0 1 1 0-1.8h1.897l.55-2.2c-2.139 0-3.227-.01-4.063-.436a4 4 0 0 1-1.748-1.748C.1 9.86.1 8.74.1 6.5m11.4-4.6h-5c-1.15 0-1.904.002-2.481.049-.556.045-.786.124-.918.19a2.2 2.2 0 0 0-.962.962c-.067.132-.145.363-.19.918-.048.577-.05 1.331-.05 2.481s.002 1.904.05 2.48c.045.556.123.787.19.919a2.2 2.2 0 0 0 .962.961c.132.068.362.146.918.192.577.047 1.33.048 2.48.048h5c1.15 0 1.904-.001 2.481-.048.556-.046.787-.124.918-.192a2.2 2.2 0 0 0 .962-.961c.067-.132.146-.363.191-.918.047-.577.049-1.331.049-2.48s-.002-1.905-.049-2.482c-.045-.555-.124-.786-.191-.918a2.2 2.2 0 0 0-.962-.961c-.131-.067-.362-.146-.918-.191-.577-.048-1.33-.049-2.48-.049m-3.298 11-.55 2.2h2.695l-.55-2.2z"),c(t,"clip-rule","evenodd"),be(e,a)},m(s,u){C(s,e,u),l&&l.m(e,null),m(e,t),n=!0},p(s,[u]){l&&l.p&&(!n||u&2)&&Te(l,o,s,s[1],n?Ie(o,s[1],u,null):Ee(s[1]),null),be(e,a=Ve(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&&w(e),l&&l.d(s)}}}function Bh(i,e,t){let{$$slots:n={},$$scope:o}=e;return i.$$set=l=>{t(0,e=ne(ne({},e),ge(l))),"$$scope"in l&&t(1,o=l.$$scope)},e=ge(e),[e,o,n]}var $s=class extends q{constructor(e){super(),U(this,e,Bh,Rh,z,{})}},S1=$s;function Dh(i){let e,t,n,o,l,r=i[2].default,a=Pe(r,i,i[1],null),s=[{xmlns:"http://www.w3.org/2000/svg"},{width:"24"},{height:"24"},{"aria-hidden":"true"},{"data-testid":"play-speed-icon"},{role:"img"},i[0]],u={};for(let f=0;f<s.length;f+=1)u=ne(u,s[f]);return{c(){e=D("svg"),a&&a.c(),t=D("g"),n=D("path"),o=D("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(t,"fill","none"),c(t,"fill-rule","evenodd"),be(e,u)},m(f,p){C(f,e,p),a&&a.m(e,null),m(e,t),m(t,n),m(t,o),l=!0},p(f,[p]){a&&a.p&&(!l||p&2)&&Te(a,r,f,f[1],l?Ie(r,f[1],p,null):Ee(f[1]),null),be(e,u=Ve(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&&w(e),a&&a.d(f)}}}function Nh(i,e,t){let{$$slots:n={},$$scope:o}=e;return i.$$set=l=>{t(0,e=ne(ne({},e),ge(l))),"$$scope"in l&&t(1,o=l.$$scope)},e=ge(e),[e,o,n]}var ea=class extends q{constructor(e){super(),U(this,e,Nh,Dh,z,{})}},P1=ea;function Oh(i){let e,t,n,o=i[2].default,l=Pe(o,i,i[1],null),r=[{xmlns:"http://www.w3.org/2000/svg"},{width:"12"},{height:"7"},{fill:"none"},{"aria-hidden":"true"},{role:"img"},i[0]],a={};for(let s=0;s<r.length;s+=1)a=ne(a,r[s]);return{c(){e=D("svg"),l&&l.c(),t=D("path"),c(t,"fill","#fff"),c(t,"fill-opacity",".72"),c(t,"fill-rule","evenodd"),c(t,"d","M11.736 6.736a.9.9 0 0 1-1.272 0L6 2.273 1.536 6.736A.9.9 0 1 1 .264 5.464l5.1-5.1a.9.9 0 0 1 1.272 0l5.1 5.1a.9.9 0 0 1 0 1.272"),c(t,"clip-rule","evenodd"),be(e,a)},m(s,u){C(s,e,u),l&&l.m(e,null),m(e,t),n=!0},p(s,[u]){l&&l.p&&(!n||u&2)&&Te(l,o,s,s[1],n?Ie(o,s[1],u,null):Ee(s[1]),null),be(e,a=Ve(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&&w(e),l&&l.d(s)}}}function Fh(i,e,t){let{$$slots:n={},$$scope:o}=e;return i.$$set=l=>{t(0,e=ne(ne({},e),ge(l))),"$$scope"in l&&t(1,o=l.$$scope)},e=ge(e),[e,o,n]}var ta=class extends q{constructor(e){super(),U(this,e,Fh,Oh,z,{})}},I1=ta;function Hh(i){let e,t,n,o=i[2].default,l=Pe(o,i,i[1],null),r=[{xmlns:"http://www.w3.org/2000/svg"},{width:"12"},{height:"16"},{fill:"none"},{"aria-hidden":"true"},{role:"img"},i[0]],a={};for(let s=0;s<r.length;s+=1)a=ne(a,r[s]);return{c(){e=D("svg"),l&&l.c(),t=D("path"),c(t,"fill","#fff"),c(t,"d","m5.773 8 3.363 3.364a.9.9 0 1 1-1.272 1.272l-4-4a.9.9 0 0 1 0-1.272l4-4a.9.9 0 0 1 1.272 1.272z"),be(e,a)},m(s,u){C(s,e,u),l&&l.m(e,null),m(e,t),n=!0},p(s,[u]){l&&l.p&&(!n||u&2)&&Te(l,o,s,s[1],n?Ie(o,s[1],u,null):Ee(s[1]),null),be(e,a=Ve(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&&w(e),l&&l.d(s)}}}function zh(i,e,t){let{$$slots:n={},$$scope:o}=e;return i.$$set=l=>{t(0,e=ne(ne({},e),ge(l))),"$$scope"in l&&t(1,o=l.$$scope)},e=ge(e),[e,o,n]}var ia=class extends q{constructor(e){super(),U(this,e,zh,Hh,z,{})}},T1=ia;function qh(i){let e,t;return e=new T1({props:{style:i[2],"data-testid":i[0]?"chevron-icon--right":"chevron-icon--left"}}),{c(){B(e.$$.fragment)},m(n,o){L(e,n,o),t=!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){t||(d(e.$$.fragment,n),t=!0)},o(n){_(e.$$.fragment,n),t=!1},d(n){R(e,n)}}}function Uh(i){let e,t;return e=new I1({props:{style:i[2],"data-testid":i[0]?"chevron-icon--down":"chevron-icon--up"}}),{c(){B(e.$$.fragment)},m(n,o){L(e,n,o),t=!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){t||(d(e.$$.fragment,n),t=!0)},o(n){_(e.$$.fragment,n),t=!1},d(n){R(e,n)}}}function Kh(i){let e,t,n,o,l=[Uh,qh],r=[];function a(s,u){return s[1]?0:1}return e=a(i,-1),t=r[e]=l[e](i),{c(){t.c(),n=ot()},m(s,u){r[e].m(s,u),C(s,n,u),o=!0},p(s,[u]){let f=e;e=a(s,u),e===f?r[e].p(s,u):(ue(),_(r[f],1,1,()=>{r[f]=null}),ce(),t=r[e],t?t.p(s,u):(t=r[e]=l[e](s),t.c()),d(t,1),t.m(n.parentNode,n))},i(s){o||(d(t),o=!0)},o(s){_(t),o=!1},d(s){s&&w(n),r[e].d(s)}}}function jh(i,e,t){let n,{direction:o="left"}=e,l,r;return i.$$set=a=>{"direction"in a&&t(3,o=a.direction)},i.$$.update=()=>{if(i.$$.dirty&8)e:t(1,l=["up","down"].includes(o)),t(0,r=["right","down"].includes(o));if(i.$$.dirty&1)e:t(2,n=r?"transform: rotate(180deg);":void 0)},[r,l,n,o]}var na=class extends q{constructor(e){super(),U(this,e,jh,Kh,z,{direction:3})}},On=na;function Wh(i){let e,t,n,o=i[2].default,l=Pe(o,i,i[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"},i[0]],a={};for(let s=0;s<r.length;s+=1)a=ne(a,r[s]);return{c(){e=D("svg"),l&&l.c(),t=D("path"),c(t,"fill","#fff"),c(t,"fill-rule","evenodd"),c(t,"d","M8.863 2.1h6.274c.674-.002 1.2.211 1.683.697l4.383 4.383c.478.476.699.998.697 1.683v6.274c.002.685-.22 1.207-.697 1.683l-4.383 4.383c-.476.478-.998.699-1.683.697H8.863c-.685.002-1.207-.22-1.683-.697L2.797 16.82c-.478-.476-.699-.998-.697-1.683V8.863c-.002-.685.22-1.207.697-1.683L7.18 2.797c.484-.486 1.009-.699 1.683-.697m-.445 2.005L4.105 8.418c-.18.18-.205.242-.205.495v6.174c0 .25.025.316.205.495l4.313 4.313c.179.179.24.205.495.205h6.174c.253 0 .316-.026.495-.205l4.313-4.313c.18-.18.205-.245.205-.495V8.913c0-.254-.026-.316-.205-.495l-4.313-4.313c-.18-.18-.242-.205-.495-.205H8.913c-.254 0-.319.029-.495.205M13 16a1 1 0 1 1-2 0 1 1 0 0 1 2 0m-.1-8.1a.9.9 0 0 0-1.8 0v5.2a.9.9 0 1 0 1.8 0z"),c(t,"clip-rule","evenodd"),be(e,a)},m(s,u){C(s,e,u),l&&l.m(e,null),m(e,t),n=!0},p(s,[u]){l&&l.p&&(!n||u&2)&&Te(l,o,s,s[1],n?Ie(o,s[1],u,null):Ee(s[1]),null),be(e,a=Ve(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&&w(e),l&&l.d(s)}}}function Gh(i,e,t){let{$$slots:n={},$$scope:o}=e;return i.$$set=l=>{t(0,e=ne(ne({},e),ge(l))),"$$scope"in l&&t(1,o=l.$$scope)},e=ge(e),[e,o,n]}var oa=class extends q{constructor(e){super(),U(this,e,Gh,Wh,z,{})}},E1=oa;function Qh(i){let e,t,n,o=i[2].default,l=Pe(o,i,i[1],null),r=[{xmlns:"http://www.w3.org/2000/svg"},{width:"16"},{height:"16"},{"aria-hidden":"true"},{"data-testid":"check-mark-icon"},{role:"img"},i[0]],a={};for(let s=0;s<r.length;s+=1)a=ne(a,r[s]);return{c(){e=D("svg"),l&&l.c(),t=D("path"),c(t,"fill","#fff"),c(t,"d","M6 10.2 3.5 7.7a.99.99 0 0 0-1.4 1.4l3.2 3.2a1 1 0 0 0 1.4 0l7.6-7.6a.99.99 0 0 0-1.4-1.4z"),be(e,a)},m(s,u){C(s,e,u),l&&l.m(e,null),m(e,t),n=!0},p(s,[u]){l&&l.p&&(!n||u&2)&&Te(l,o,s,s[1],n?Ie(o,s[1],u,null):Ee(s[1]),null),be(e,a=Ve(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&&w(e),l&&l.d(s)}}}function Yh(i,e,t){let{$$slots:n={},$$scope:o}=e;return i.$$set=l=>{t(0,e=ne(ne({},e),ge(l))),"$$scope"in l&&t(1,o=l.$$scope)},e=ge(e),[e,o,n]}var la=class extends q{constructor(e){super(),U(this,e,Yh,Qh,z,{})}},Go=la;function Zh(i){let e,t,n,o=i[2].default,l=Pe(o,i,i[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"},i[0]],a={};for(let s=0;s<r.length;s+=1)a=ne(a,r[s]);return{c(){e=D("svg"),l&&l.c(),t=D("path"),c(t,"fill","#fff"),c(t,"fill-rule","evenodd"),c(t,"d","M4 12.3V12c0-1.47.005-2.547.075-3.403.074-.904.216-1.482.454-1.949a4.85 4.85 0 0 1 2.12-2.12c.466-.237 1.044-.379 1.948-.453C9.51 4.001 10.675 4 12.3 4h4.512a2 2 0 0 0-.174-.49 2.4 2.4 0 0 0-1.048-1.048 2.4 2.4 0 0 0-.931-.239 14 14 0 0 0-1.026-.023H12.26c-1.576 0-2.814 0-3.81.081-1.014.083-1.856.255-2.62.644A6.65 6.65 0 0 0 2.926 5.83c-.389.763-.56 1.605-.644 2.62-.081.995-.081 2.233-.081 3.809v1.373c0 .392 0 .738.023 1.025.025.306.081.623.239.931a2.4 2.4 0 0 0 1.048 1.05c.162.082.326.136.49.173V12.3zM10.08 6h-.035c-.52 0-.964 0-1.329.03-.383.03-.755.097-1.112.276a2.9 2.9 0 0 0-1.298 1.298c-.179.357-.246.73-.277 1.112C6 9.081 6 9.524 6 10.046v7.909c0 .52 0 .964.03 1.329.03.382.097.755.276 1.112a2.9 2.9 0 0 0 1.298 1.298c.357.179.73.246 1.112.277.365.029.808.029 1.329.029h6.91c.52 0 .964 0 1.329-.03.382-.03.755-.097 1.112-.276a2.9 2.9 0 0 0 1.298-1.298c.179-.357.246-.73.277-1.112.029-.365.029-.808.029-1.33v-7.909c0-.52 0-.964-.03-1.329-.03-.382-.097-.755-.276-1.112a2.9 2.9 0 0 0-1.298-1.298c-.357-.179-.73-.246-1.112-.277C17.919 6 17.476 6 16.954 6zM8.408 7.916c.065-.032.179-.07.452-.093a18 18 0 0 1 1.22-.023h6.84c.565 0 .936 0 1.22.023.273.022.387.06.452.093a1.1 1.1 0 0 1 .492.492c.032.065.07.179.093.452.022.284.023.655.023 1.22v7.84c0 .565 0 .936-.023 1.22-.023.273-.06.387-.093.452a1.1 1.1 0 0 1-.492.492c-.065.032-.18.07-.452.093a18 18 0 0 1-1.22.023h-6.84c-.565 0-.936 0-1.22-.023-.273-.023-.387-.06-.452-.093a1.1 1.1 0 0 1-.492-.492c-.032-.065-.07-.18-.093-.452a17 17 0 0 1-.023-1.22v-7.84c0-.565 0-.936.023-1.22.022-.273.06-.387.093-.452a1.1 1.1 0 0 1 .492-.492"),c(t,"clip-rule","evenodd"),be(e,a)},m(s,u){C(s,e,u),l&&l.m(e,null),m(e,t),n=!0},p(s,[u]){l&&l.p&&(!n||u&2)&&Te(l,o,s,s[1],n?Ie(o,s[1],u,null):Ee(s[1]),null),be(e,a=Ve(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&&w(e),l&&l.d(s)}}}function Xh(i,e,t){let{$$slots:n={},$$scope:o}=e;return i.$$set=l=>{t(0,e=ne(ne({},e),ge(l))),"$$scope"in l&&t(1,o=l.$$scope)},e=ge(e),[e,o,n]}var ra=class extends q{constructor(e){super(),U(this,e,Xh,Zh,z,{})}},A1=ra;function Jh(i){let e,t,n,o=i[2].default,l=Pe(o,i,i[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"},i[0]],a={};for(let s=0;s<r.length;s+=1)a=ne(a,r[s]);return{c(){e=D("svg"),l&&l.c(),t=D("path"),c(t,"fill","#fff"),c(t,"d","M12 20.105a8.105 8.105 0 1 0 0-16.21 8.105 8.105 0 0 0 0 16.21M12 22C6.477 22 2 17.523 2 12S6.477 2 12 2s10 4.477 10 10-4.477 10-10 10m0-12.372a1.316 1.316 0 1 1 0-2.632 1.316 1.316 0 0 1 0 2.632m-.947 2.822c0-.541.424-.98.947-.98s.947.439.947.98v3.83c0 .54-.424.98-.947.98s-.947-.44-.947-.98z"),be(e,a)},m(s,u){C(s,e,u),l&&l.m(e,null),m(e,t),n=!0},p(s,[u]){l&&l.p&&(!n||u&2)&&Te(l,o,s,s[1],n?Ie(o,s[1],u,null):Ee(s[1]),null),be(e,a=Ve(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&&w(e),l&&l.d(s)}}}function xh(i,e,t){let{$$slots:n={},$$scope:o}=e;return i.$$set=l=>{t(0,e=ne(ne({},e),ge(l))),"$$scope"in l&&t(1,o=l.$$scope)},e=ge(e),[e,o,n]}var sa=class extends q{constructor(e){super(),U(this,e,xh,Jh,z,{})}},M1=sa;function eg(i){Ce(i,"svelte-8jolw5","ul.svelte-8jolw5.svelte-8jolw5{margin:0;padding:0}.menu.svelte-8jolw5.svelte-8jolw5{background-color:rgba(17, 17, 17, 0.8);border-radius:8px;line-height:40px;transition:opacity 0.2s, visibility 0.2s}.container-mobile.svelte-8jolw5.svelte-8jolw5{width:100%}.menu-desktop.svelte-8jolw5.svelte-8jolw5{position:absolute;right:0;bottom:0}.menu-mobile.svelte-8jolw5.svelte-8jolw5{width:100%;background:var(--mobile-settings-bg);font-size:15px;line-height:50px}.menu-mobile.hidden.svelte-8jolw5.svelte-8jolw5{display:none}.menu-subList.svelte-8jolw5.svelte-8jolw5{min-width:134px;padding-bottom:0}.menu-subList-subtitles.svelte-8jolw5.svelte-8jolw5{min-width:164px}.menu-subList-traffic-saving.svelte-8jolw5.svelte-8jolw5{min-width:286px}.item.svelte-8jolw5.svelte-8jolw5{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-8jolw5.svelte-8jolw5{padding:0 14px}.item-quality.item-mobile.svelte-8jolw5.svelte-8jolw5,.item-traffic-saving.item-mobile.svelte-8jolw5.svelte-8jolw5,.item-helper-text.item-mobile.svelte-8jolw5.svelte-8jolw5{flex-direction:row-reverse}.item-helper-text.svelte-8jolw5.svelte-8jolw5{cursor:auto;pointer-events:none;white-space:normal;padding:7px 24px 7px 18px}.item-helper-text.svelte-8jolw5 span.svelte-8jolw5{color:rgba(255, 255, 255, 0.48);line-height:18px;text-align:end}.item-helper-text.item-mobile.svelte-8jolw5.svelte-8jolw5{padding:7px 14px}.item-helper-text.item-mobile.svelte-8jolw5 span.svelte-8jolw5{text-align:start}.quality-title-mobile.svelte-8jolw5.svelte-8jolw5{flex-grow:1}.item.svelte-8jolw5.svelte-8jolw5:hover{background-color:rgba(255, 255, 255, 0.08)}.item.svelte-8jolw5.svelte-8jolw5:first-child{border-top-left-radius:8px;border-top-right-radius:8px}.item.svelte-8jolw5.svelte-8jolw5:last-child{border-bottom-left-radius:8px;border-bottom-right-radius:8px}.item-mobile.svelte-8jolw5.svelte-8jolw5:hover{background:var(--mobile-settings-bg)}.menu-subList.svelte-8jolw5 .item.svelte-8jolw5{color:rgba(255, 255, 255, 0.9)}.menu-subList.svelte-8jolw5 .item.svelte-8jolw5:last-child{margin-bottom:4px}.menu-icon-wrapper.svelte-8jolw5.svelte-8jolw5{width:24px;height:24px;display:flex;align-items:center;justify-content:center;margin-right:16px}.menu-title.svelte-8jolw5.svelte-8jolw5{flex-grow:1;margin-right:24px;overflow:hidden;text-overflow:ellipsis}.menu-value.svelte-8jolw5.svelte-8jolw5{position:relative;opacity:0.7}.menu-valueIcon.svelte-8jolw5.svelte-8jolw5{position:absolute;top:-10px;right:-18px;width:15px}.menu-valueIcon-list.svelte-8jolw5.svelte-8jolw5{position:absolute;top:-7px;width:15px;right:6px}.menu-valueIcon.svelte-8jolw5 svg,.menu-valueIcon-list.svelte-8jolw5 svg{color:var(--blue-light)}.menu-divider.svelte-8jolw5.svelte-8jolw5{background-color:rgba(255, 255, 255, 0.3);height:1px;margin-bottom:4px}.menu-header.svelte-8jolw5.svelte-8jolw5{color:var(--white);cursor:pointer;justify-content:space-between;display:flex}.itemIcon.svelte-8jolw5.svelte-8jolw5{margin-right:auto;padding-right:12px;opacity:0.9}.items.svelte-8jolw5.svelte-8jolw5::-webkit-scrollbar{width:8px}.items.svelte-8jolw5.svelte-8jolw5::-webkit-scrollbar-track{box-shadow:none;background-color:#3a3a3a;border-radius:4px}.items.svelte-8jolw5.svelte-8jolw5::-webkit-scrollbar-thumb{min-height:40px;border-radius:5px;background-color:#666;border:1px solid transparent;background-clip:padding-box}.items.svelte-8jolw5.svelte-8jolw5::-webkit-scrollbar-thumb:hover{background-color:#777}.items-mobile.svelte-8jolw5.svelte-8jolw5{overflow-y:auto;max-height:160px;text-align:left}.close.svelte-8jolw5.svelte-8jolw5{position:relative;width:12px;height:12px;padding:12px;margin-right:-12px}.close.svelte-8jolw5.svelte-8jolw5:before,.close.svelte-8jolw5.svelte-8jolw5:after{position:absolute;left:18px;content:' ';height:12px;width:2px;background-color:var(--white)}.close.svelte-8jolw5.svelte-8jolw5:before{transform:rotate(45deg)}.close.svelte-8jolw5.svelte-8jolw5:after{transform:rotate(-45deg)}")}function V1(i,e,t){let n=i.slice();return n[142]=e[t],n}function L1(i,e,t){let n=i.slice();return n[145]=e[t],n}function R1(i,e,t){let n=i.slice();return n[148]=e[t],n}function B1(i){let e,t,n,o,l,r,a,s,u,f,p,h,b=i[34]&&D1(i),g=i[25]&&N1(i),S=i[24]&&F1(i),y=i[23]&&H1(i),T=i[22]&&z1(i),k=i[21]&&q1(i),v=i[34]&&U1(i);return{c(){e=P("div"),b&&b.c(),t=O(),n=P("ul"),g&&g.c(),o=O(),S&&S.c(),l=O(),y&&y.c(),r=O(),T&&T.c(),a=O(),k&&k.c(),s=O(),v&&v.c(),c(n,"class","items svelte-8jolw5"),c(n,"role","menu"),c(n,"style",u=i[73]()),H(n,"items-mobile",i[34]),c(e,"class","menu svelte-8jolw5"),H(e,"menu-desktop",!i[34]),H(e,"menu-mobile",i[34]),H(e,"hidden",!i[11])},m(I,W){C(I,e,W),b&&b.m(e,null),m(e,t),m(e,n),g&&g.m(n,null),m(n,o),S&&S.m(n,null),m(n,l),y&&y.m(n,null),m(n,r),T&&T.m(n,null),m(n,a),k&&k.m(n,null),m(n,s),v&&v.m(n,null),i[112](n),f=!0,p||(h=[pe(e,"keydown",i[78]),pe(e,"mouseenter",i[71]),pe(e,"mouseleave",i[72])],p=!0)},p(I,W){I[34]?b?b.p(I,W):(b=D1(I),b.c(),b.m(e,t)):b&&(b.d(1),b=null),I[25]?g?(g.p(I,W),W[0]&33554432&&d(g,1)):(g=N1(I),g.c(),d(g,1),g.m(n,o)):g&&(ue(),_(g,1,1,()=>{g=null}),ce()),I[24]?S?(S.p(I,W),W[0]&16777216&&d(S,1)):(S=F1(I),S.c(),d(S,1),S.m(n,l)):S&&(ue(),_(S,1,1,()=>{S=null}),ce()),I[23]?y?(y.p(I,W),W[0]&8388608&&d(y,1)):(y=H1(I),y.c(),d(y,1),y.m(n,r)):y&&(ue(),_(y,1,1,()=>{y=null}),ce()),I[22]?T?(T.p(I,W),W[0]&4194304&&d(T,1)):(T=z1(I),T.c(),d(T,1),T.m(n,a)):T&&(ue(),_(T,1,1,()=>{T=null}),ce()),I[21]?k?(k.p(I,W),W[0]&2097152&&d(k,1)):(k=q1(I),k.c(),d(k,1),k.m(n,s)):k&&(ue(),_(k,1,1,()=>{k=null}),ce()),I[34]?v?(v.p(I,W),W[1]&8&&d(v,1)):(v=U1(I),v.c(),d(v,1),v.m(n,null)):v&&(ue(),_(v,1,1,()=>{v=null}),ce()),(!f||W[1]&8)&&H(n,"items-mobile",I[34]),(!f||W[1]&8)&&H(e,"menu-desktop",!I[34]),(!f||W[1]&8)&&H(e,"menu-mobile",I[34]),(!f||W[0]&2048)&&H(e,"hidden",!I[11])},i(I){f||(d(g),d(S),d(y),d(T),d(k),d(v),f=!0)},o(I){_(g),_(S),_(y),_(T),_(k),_(v),f=!1},d(I){I&&w(e),b&&b.d(),g&&g.d(),S&&S.d(),y&&y.d(),T&&T.d(),k&&k.d(),v&&v.d(),i[112](null),p=!1,tt(h)}}}function D1(i){let e,t,n,o,l,r,a,s;return{c(){e=P("div"),t=P("div"),t.textContent=`${j("submenu_settings")}`,n=O(),o=P("div"),l=O(),r=P("div"),c(o,"class","close svelte-8jolw5"),c(e,"class","item menu-header svelte-8jolw5"),H(e,"item-mobile",i[34]),c(r,"class","menu-divider svelte-8jolw5")},m(u,f){C(u,e,f),m(e,t),m(e,n),m(e,o),C(u,l,f),C(u,r,f),a||(s=pe(o,"click",rt(i[57])),a=!0)},p(u,f){f[1]&8&&H(e,"item-mobile",u[34])},d(u){u&&(w(e),w(l),w(r)),a=!1,s()}}}function N1(i){let e,t,n,o,l,r,a,s,u,f,p,h,b;n=new sr({});let g=i[33]&&!i[34]&&O1(i);return{c(){e=P("li"),t=P("div"),B(n.$$.fragment),o=O(),l=P("div"),l.textContent=`${j("menu_quality")}`,r=O(),a=P("div"),s=Be(i[16]),u=O(),g&&g.c(),c(t,"class","menu-icon-wrapper svelte-8jolw5"),c(l,"class","menu-title svelte-8jolw5"),c(a,"class","menu-value svelte-8jolw5"),c(e,"class","item svelte-8jolw5"),c(e,"role","menuitem"),c(e,"tabindex","0"),c(e,"aria-label",f=j("aria_label_menu_quality",{actual:i[27]})),c(e,"aria-haspopup","true"),H(e,"item-mobile",i[34])},m(S,y){C(S,e,y),m(e,t),L(n,t,null),m(e,o),m(e,l),m(e,r),m(e,a),m(a,s),m(a,u),g&&g.m(a,null),i[108](e),p=!0,h||(b=[pe(e,"click",rt(i[58])),pe(e,"keydown",i[79])],h=!0)},p(S,y){(!p||y[0]&65536)&&Qe(s,S[16]),S[33]&&!S[34]?g?(g.p(S,y),y[1]&12&&d(g,1)):(g=O1(S),g.c(),d(g,1),g.m(a,null)):g&&(ue(),_(g,1,1,()=>{g=null}),ce()),(!p||y[0]&134217728&&f!==(f=j("aria_label_menu_quality",{actual:S[27]})))&&c(e,"aria-label",f),(!p||y[1]&8)&&H(e,"item-mobile",S[34])},i(S){p||(d(n.$$.fragment,S),d(g),p=!0)},o(S){_(n.$$.fragment,S),_(g),p=!1},d(S){S&&w(e),R(n),g&&g.d(),i[108](null),h=!1,tt(b)}}}function O1(i){let e,t,n;var o=i[33];function l(r){return{}}return o&&(t=un(o,l(i))),{c(){e=P("div"),t&&B(t.$$.fragment),c(e,"class","menu-valueIcon svelte-8jolw5")},m(r,a){C(r,e,a),t&&L(t,e,null),n=!0},p(r,a){if(a[1]&4&&o!==(o=r[33])){if(t){ue();let s=t;_(s.$$.fragment,1,0,()=>{R(s,1)}),ce()}o?(t=un(o,l(r)),B(t.$$.fragment),d(t.$$.fragment,1),L(t,e,null)):t=null}},i(r){n||(t&&d(t.$$.fragment,r),n=!0)},o(r){t&&_(t.$$.fragment,r),n=!1},d(r){r&&w(e),t&&R(t)}}}function F1(i){let e,t,n,o,l,r,a,s,u,f,p,h,b;return n=new P1({}),{c(){e=P("li"),t=P("div"),B(n.$$.fragment),o=O(),l=P("div"),l.textContent=`${j("menu_playback_rate")}`,r=O(),a=P("div"),s=Be(i[9]),u=Be("x"),c(t,"class","menu-icon-wrapper svelte-8jolw5"),c(l,"class","menu-title svelte-8jolw5"),c(a,"class","menu-value svelte-8jolw5"),c(e,"class","item svelte-8jolw5"),c(e,"role","menuitem"),c(e,"tabindex","0"),c(e,"aria-label",f=j("aria_label_menu_rate",{actual:i[28]})),c(e,"aria-haspopup","true"),H(e,"item-mobile",i[34])},m(g,S){C(g,e,S),m(e,t),L(n,t,null),m(e,o),m(e,l),m(e,r),m(e,a),m(a,s),m(a,u),i[109](e),p=!0,h||(b=[pe(e,"click",rt(kt(i[62]))),pe(e,"keydown",i[82])],h=!0)},p(g,S){(!p||S[0]&512)&&Qe(s,g[9]),(!p||S[0]&268435456&&f!==(f=j("aria_label_menu_rate",{actual:g[28]})))&&c(e,"aria-label",f),(!p||S[1]&8)&&H(e,"item-mobile",g[34])},i(g){p||(d(n.$$.fragment,g),p=!0)},o(g){_(n.$$.fragment,g),p=!1},d(g){g&&w(e),R(n),i[109](null),h=!1,tt(b)}}}function H1(i){let e,t,n,o,l,r,a,s=i[35].displayValue+"",u,f,p,h,b;return n=new ar({}),{c(){e=P("li"),t=P("div"),B(n.$$.fragment),o=O(),l=P("div"),l.textContent=`${j("subtitles_caption")}`,r=O(),a=P("div"),u=Be(s),c(t,"class","menu-icon-wrapper svelte-8jolw5"),c(l,"class","menu-title svelte-8jolw5"),c(a,"class","menu-value svelte-8jolw5"),c(e,"class","item svelte-8jolw5"),c(e,"role","menuitem"),c(e,"tabindex","0"),c(e,"aria-label",f=j("aria_label_menu_subtitle",{actual:i[35].displayValue})),c(e,"aria-haspopup","true"),H(e,"item-mobile",i[34])},m(g,S){C(g,e,S),m(e,t),L(n,t,null),m(e,o),m(e,l),m(e,r),m(e,a),m(a,u),i[110](e),p=!0,h||(b=[pe(e,"click",rt(i[64])),pe(e,"keydown",i[85])],h=!0)},p(g,S){(!p||S[1]&16)&&s!==(s=g[35].displayValue+"")&&Qe(u,s),(!p||S[1]&16&&f!==(f=j("aria_label_menu_subtitle",{actual:g[35].displayValue})))&&c(e,"aria-label",f),(!p||S[1]&8)&&H(e,"item-mobile",g[34])},i(g){p||(d(n.$$.fragment,g),p=!0)},o(g){_(n.$$.fragment,g),p=!1},d(g){g&&w(e),R(n),i[110](null),h=!1,tt(b)}}}function z1(i){let e,t,n,o,l,r,a,s,u,f,p,h;return n=new S1({}),{c(){e=P("li"),t=P("div"),B(n.$$.fragment),o=O(),l=P("div"),l.textContent=`${j("menu_traffic_saving")}`,r=O(),a=P("div"),s=Be(i[26]),c(t,"class","menu-icon-wrapper svelte-8jolw5"),c(l,"class","menu-title svelte-8jolw5"),c(a,"class","menu-value svelte-8jolw5"),c(e,"class","item svelte-8jolw5"),c(e,"role","menuitem"),c(e,"tabindex","0"),c(e,"aria-label",u=j("aria_label_menu_traffic_saving",{actual:i[26]})),c(e,"aria-haspopup","true"),H(e,"item-mobile",i[34])},m(b,g){C(b,e,g),m(e,t),L(n,t,null),m(e,o),m(e,l),m(e,r),m(e,a),m(a,s),i[111](e),f=!0,p||(h=[pe(e,"click",rt(i[59])),pe(e,"keydown",i[88])],p=!0)},p(b,g){(!f||g[0]&67108864)&&Qe(s,b[26]),(!f||g[0]&67108864&&u!==(u=j("aria_label_menu_traffic_saving",{actual:b[26]})))&&c(e,"aria-label",u),(!f||g[1]&8)&&H(e,"item-mobile",b[34])},i(b){f||(d(n.$$.fragment,b),f=!0)},o(b){_(n.$$.fragment,b),f=!1},d(b){b&&w(e),R(n),i[111](null),p=!1,tt(h)}}}function q1(i){let e,t,n,o,l,r,a,s,u;return n=new C1({}),{c(){e=P("li"),t=P("div"),B(n.$$.fragment),o=O(),l=P("div"),l.textContent=`${j("download_video_caption")}`,c(t,"class","menu-icon-wrapper svelte-8jolw5"),c(l,"class","menu-title svelte-8jolw5"),c(e,"class","item svelte-8jolw5"),c(e,"role","menuitem"),c(e,"tabindex","0"),c(e,"aria-label",r=j("aria_label_menu_download")),H(e,"item-mobile",i[34])},m(f,p){C(f,e,p),m(e,t),L(n,t,null),m(e,o),m(e,l),a=!0,s||(u=[pe(e,"click",rt(i[67])),pe(e,"keydown",i[91])],s=!0)},p(f,p){(!a||p[1]&8)&&H(e,"item-mobile",f[34])},i(f){a||(d(n.$$.fragment,f),a=!0)},o(f){_(n.$$.fragment,f),a=!1},d(f){f&&w(e),R(n),s=!1,tt(u)}}}function U1(i){let e,t,n,o,l,r,a,s,u,f,p,h,b,g,S,y,T,k=i[37].showSupport&&tg(i);return o=new A1({}),p=new M1({}),{c(){k&&k.c(),e=O(),t=P("li"),n=P("div"),B(o.$$.fragment),l=O(),r=P("div"),r.textContent=`${j("menu_copy_debug")}`,s=O(),u=P("li"),f=P("div"),B(p.$$.fragment),h=O(),b=P("div"),b.textContent=`${j("menu_debug_overlay")}`,c(n,"class","menu-icon-wrapper svelte-8jolw5"),c(r,"class","menu-title svelte-8jolw5"),c(t,"class","item item-mobile svelte-8jolw5"),c(t,"role","menuitem"),c(t,"tabindex","0"),c(t,"aria-label",a=j("menu_copy_debug")),c(f,"class","menu-icon-wrapper svelte-8jolw5"),c(b,"class","menu-title svelte-8jolw5"),c(u,"class","item item-mobile svelte-8jolw5"),c(u,"role","menuitem"),c(u,"tabindex","0"),c(u,"aria-label",g=i[36]?j("aria_label_menu_debug_overlay_disable"):j("aria_label_menu_debug_overlay_enable"))},m(v,I){k&&k.m(v,I),C(v,e,I),C(v,t,I),m(t,n),L(o,n,null),m(t,l),m(t,r),C(v,s,I),C(v,u,I),m(u,f),L(p,f,null),m(u,h),m(u,b),S=!0,y||(T=[pe(t,"click",rt(i[69])),pe(t,"keydown",i[93]),pe(u,"click",rt(i[70])),pe(u,"keydown",i[94])],y=!0)},p(v,I){v[37].showSupport&&k.p(v,I),(!S||I[1]&32&&g!==(g=v[36]?j("aria_label_menu_debug_overlay_disable"):j("aria_label_menu_debug_overlay_enable")))&&c(u,"aria-label",g)},i(v){S||(d(k),d(o.$$.fragment,v),d(p.$$.fragment,v),S=!0)},o(v){_(k),_(o.$$.fragment,v),_(p.$$.fragment,v),S=!1},d(v){v&&(w(e),w(t),w(s),w(u)),k&&k.d(v),R(o),R(p),y=!1,tt(T)}}}function tg(i){let e,t,n,o,l,r,a,s,u;return n=new E1({}),{c(){e=P("li"),t=P("div"),B(n.$$.fragment),o=O(),l=P("div"),l.textContent=`${j("menu_report")}`,c(t,"class","menu-icon-wrapper svelte-8jolw5"),c(l,"class","menu-title svelte-8jolw5"),c(e,"class","item item-mobile svelte-8jolw5"),c(e,"role","menuitem"),c(e,"tabindex","0"),c(e,"aria-label",r=`${j("menu_report")}. ${j("aria_label_new_tab_alert")}`)},m(f,p){C(f,e,p),m(e,t),L(n,t,null),m(e,o),m(e,l),a=!0,s||(u=[pe(e,"click",rt(i[68])),pe(e,"keydown",i[92])],s=!0)},p:_e,i(f){a||(d(n.$$.fragment,f),a=!0)},o(f){_(n.$$.fragment,f),a=!1},d(f){f&&w(e),R(n),s=!1,tt(u)}}}function K1(i){let e,t,n,o,l,r,a,s,u,f,p,h,b,g;n=new On({props:{direction:"left"}});let S=gt(i[8]),y=[];for(let k=0;k<S.length;k+=1)y[k]=G1(R1(i,S,k));let T=k=>_(y[k],1,1,()=>{y[k]=null});return{c(){e=P("div"),t=P("div"),B(n.$$.fragment),o=O(),l=P("div"),l.textContent=`${j("submenu_quality")}`,a=O(),s=P("div"),u=O(),f=P("ul");for(let k=0;k<y.length;k+=1)y[k].c();c(t,"class","item menu-header svelte-8jolw5"),c(t,"aria-label",r=j("aria_label_submenu_back")),H(t,"item-mobile",i[34]),c(s,"class","menu-divider svelte-8jolw5"),c(f,"class","items svelte-8jolw5"),c(f,"role","menu"),c(f,"style",p=i[73](i[17]?.clientHeight,!0)),H(f,"items-mobile",i[34]),c(e,"class","menu menu-subList svelte-8jolw5"),H(e,"menu-desktop",!i[34]),H(e,"menu-mobile",i[34])},m(k,v){C(k,e,v),m(e,t),L(n,t,null),m(t,o),m(t,l),i[113](t),m(e,a),m(e,s),m(e,u),m(e,f);for(let I=0;I<y.length;I+=1)y[I]&&y[I].m(f,null);i[116](f),h=!0,b||(g=[pe(t,"click",rt(i[66])),pe(f,"keydown",i[80])],b=!0)},p(k,v){if((!h||v[1]&8)&&H(t,"item-mobile",k[34]),v[0]&256|v[1]&536870920|v[2]&524288){S=gt(k[8]);let I;for(I=0;I<S.length;I+=1){let W=R1(k,S,I);y[I]?(y[I].p(W,v),d(y[I],1)):(y[I]=G1(W),y[I].c(),d(y[I],1),y[I].m(f,null))}for(ue(),I=S.length;I<y.length;I+=1)T(I);ce()}(!h||v[0]&131072&&p!==(p=k[73](k[17]?.clientHeight,!0)))&&c(f,"style",p),(!h||v[1]&8)&&H(f,"items-mobile",k[34]),(!h||v[1]&8)&&H(e,"menu-desktop",!k[34]),(!h||v[1]&8)&&H(e,"menu-mobile",k[34])},i(k){if(!h){d(n.$$.fragment,k);for(let v=0;v<S.length;v+=1)d(y[v]);h=!0}},o(k){_(n.$$.fragment,k),y=y.filter(Boolean);for(let v=0;v<y.length;v+=1)_(y[v]);h=!1},d(k){k&&w(e),R(n),i[113](null),Ni(y,k),i[116](null),b=!1,tt(g)}}}function j1(i){let e,t,n;return t=new Go({}),{c(){e=P("div"),B(t.$$.fragment),c(e,"class","itemIcon svelte-8jolw5")},m(o,l){C(o,e,l),L(t,e,null),n=!0},i(o){n||(d(t.$$.fragment,o),n=!0)},o(o){_(t.$$.fragment,o),n=!1},d(o){o&&w(e),R(t)}}}function W1(i){let e,t,n;var o=io(i[148].value);function l(r){return{}}return o&&(t=un(o,l(i))),{c(){e=P("div"),t&&B(t.$$.fragment),c(e,"class","menu-valueIcon-list svelte-8jolw5")},m(r,a){C(r,e,a),t&&L(t,e,null),n=!0},p(r,a){if(a[0]&256&&o!==(o=io(r[148].value))){if(t){ue();let s=t;_(s.$$.fragment,1,0,()=>{R(s,1)}),ce()}o?(t=un(o,l(r)),B(t.$$.fragment),d(t.$$.fragment,1),L(t,e,null)):t=null}},i(r){n||(t&&d(t.$$.fragment,r),n=!0)},o(r){t&&_(t.$$.fragment,r),n=!1},d(r){r&&w(e),t&&R(t)}}}function G1(i){let e,t,n,o=i[148].displayValue+"",l,r,a=!i[34]&&io(i[148].value),s,u,f,p,h,b,g=i[148].selected&&j1(i),S=a&&W1(i);function y(){return i[114](i[148])}function T(...k){return i[115](i[148],...k)}return{c(){e=P("li"),g&&g.c(),t=O(),n=P("div"),l=Be(o),r=O(),S&&S.c(),s=O(),c(n,"class","svelte-8jolw5"),H(n,"quality-title-mobile",i[34]),c(e,"class","item item-quality svelte-8jolw5"),c(e,"data-value",u=i[148].value),c(e,"role","menuitem"),c(e,"tabindex","0"),c(e,"aria-label",f=i[148].displayValue),H(e,"item-mobile",i[34])},m(k,v){C(k,e,v),g&&g.m(e,null),m(e,t),m(e,n),m(n,l),m(e,r),S&&S.m(e,null),m(e,s),p=!0,h||(b=[pe(e,"click",rt(y)),pe(e,"keydown",T)],h=!0)},p(k,v){i=k,i[148].selected?g?v[0]&256&&d(g,1):(g=j1(i),g.c(),d(g,1),g.m(e,t)):g&&(ue(),_(g,1,1,()=>{g=null}),ce()),(!p||v[0]&256)&&o!==(o=i[148].displayValue+"")&&Qe(l,o),(!p||v[1]&8)&&H(n,"quality-title-mobile",i[34]),v[0]&256|v[1]&8&&(a=!i[34]&&io(i[148].value)),a?S?(S.p(i,v),v[0]&256|v[1]&8&&d(S,1)):(S=W1(i),S.c(),d(S,1),S.m(e,s)):S&&(ue(),_(S,1,1,()=>{S=null}),ce()),(!p||v[0]&256&&u!==(u=i[148].value))&&c(e,"data-value",u),(!p||v[0]&256&&f!==(f=i[148].displayValue))&&c(e,"aria-label",f),(!p||v[1]&8)&&H(e,"item-mobile",i[34])},i(k){p||(d(g),d(S),p=!0)},o(k){_(g),_(S),p=!1},d(k){k&&w(e),g&&g.d(),S&&S.d(),h=!1,tt(b)}}}function Q1(i){let e,t,n,o,l,r,a,s,u,f,p,h,b,g;n=new On({props:{direction:"left"}});let S=gt(i[7]),y=[];for(let k=0;k<S.length;k+=1)y[k]=Z1(L1(i,S,k));let T=k=>_(y[k],1,1,()=>{y[k]=null});return{c(){e=P("div"),t=P("div"),B(n.$$.fragment),o=O(),l=P("div"),l.textContent=`${j("submenu_playback_rate")}`,a=O(),s=P("div"),u=O(),f=P("ul");for(let k=0;k<y.length;k+=1)y[k].c();c(t,"class","item menu-header svelte-8jolw5"),c(t,"aria-label",r=j("aria_label_submenu_back")),H(t,"item-mobile",i[34]),c(s,"class","menu-divider svelte-8jolw5"),c(f,"class","items svelte-8jolw5"),c(f,"role","menu"),c(f,"style",p=i[73](i[18]?.clientHeight,!0)),H(f,"items-mobile",i[34]),c(e,"class","menu menu-subList svelte-8jolw5"),H(e,"menu-desktop",!i[34]),H(e,"menu-mobile",i[34])},m(k,v){C(k,e,v),m(e,t),L(n,t,null),m(t,o),m(t,l),i[117](t),m(e,a),m(e,s),m(e,u),m(e,f);for(let I=0;I<y.length;I+=1)y[I]&&y[I].m(f,null);i[120](f),h=!0,b||(g=[pe(t,"click",rt(i[66])),pe(f,"keydown",i[83])],b=!0)},p(k,v){if((!h||v[1]&8)&&H(t,"item-mobile",k[34]),v[0]&128|v[1]&8|v[2]&4194306){S=gt(k[7]);let I;for(I=0;I<S.length;I+=1){let W=L1(k,S,I);y[I]?(y[I].p(W,v),d(y[I],1)):(y[I]=Z1(W),y[I].c(),d(y[I],1),y[I].m(f,null))}for(ue(),I=S.length;I<y.length;I+=1)T(I);ce()}(!h||v[0]&262144&&p!==(p=k[73](k[18]?.clientHeight,!0)))&&c(f,"style",p),(!h||v[1]&8)&&H(f,"items-mobile",k[34]),(!h||v[1]&8)&&H(e,"menu-desktop",!k[34]),(!h||v[1]&8)&&H(e,"menu-mobile",k[34])},i(k){if(!h){d(n.$$.fragment,k);for(let v=0;v<S.length;v+=1)d(y[v]);h=!0}},o(k){_(n.$$.fragment,k),y=y.filter(Boolean);for(let v=0;v<y.length;v+=1)_(y[v]);h=!1},d(k){k&&w(e),R(n),i[117](null),Ni(y,k),i[120](null),b=!1,tt(g)}}}function Y1(i){let e,t,n;return t=new Go({}),{c(){e=P("div"),B(t.$$.fragment),c(e,"class","itemIcon svelte-8jolw5")},m(o,l){C(o,e,l),L(t,e,null),n=!0},i(o){n||(d(t.$$.fragment,o),n=!0)},o(o){_(t.$$.fragment,o),n=!1},d(o){o&&w(e),R(t)}}}function Z1(i){let e,t,n,o=i[145].displayValue+"",l,r,a,s,u,f,p,h=i[145].selected&&Y1(i);function b(){return i[118](i[145])}function g(...S){return i[119](i[145],...S)}return{c(){e=P("li"),h&&h.c(),t=O(),n=P("div"),l=Be(o),r=O(),c(n,"class","svelte-8jolw5"),H(n,"quality-title-mobile",i[34]),c(e,"class","item item-quality svelte-8jolw5"),c(e,"data-value",a=i[145].value),c(e,"role","menuitem"),c(e,"tabindex","0"),c(e,"aria-label",s=i[145].displayValue),H(e,"item-mobile",i[34])},m(S,y){C(S,e,y),h&&h.m(e,null),m(e,t),m(e,n),m(n,l),m(e,r),u=!0,f||(p=[pe(e,"click",rt(b)),pe(e,"keydown",g)],f=!0)},p(S,y){i=S,i[145].selected?h?y[0]&128&&d(h,1):(h=Y1(i),h.c(),d(h,1),h.m(e,t)):h&&(ue(),_(h,1,1,()=>{h=null}),ce()),(!u||y[0]&128)&&o!==(o=i[145].displayValue+"")&&Qe(l,o),(!u||y[1]&8)&&H(n,"quality-title-mobile",i[34]),(!u||y[0]&128&&a!==(a=i[145].value))&&c(e,"data-value",a),(!u||y[0]&128&&s!==(s=i[145].displayValue))&&c(e,"aria-label",s),(!u||y[1]&8)&&H(e,"item-mobile",i[34])},i(S){u||(d(h),u=!0)},o(S){_(h),u=!1},d(S){S&&w(e),h&&h.d(),f=!1,tt(p)}}}function X1(i){let e,t,n,o,l,r,a,s,u,f,p,h,b,g,S,y,T,k,v,I,W,Q,G,le,ae,V,A,$,J;n=new On({props:{direction:"left"}});let x=!i[5]&&J1(i),N=i[5]&&x1(i);return{c(){e=P("div"),t=P("div"),B(n.$$.fragment),o=O(),l=P("div"),l.textContent=`${j("submenu_traffic_saving")}`,a=O(),s=P("div"),u=O(),f=P("div"),p=P("ul"),h=P("li"),x&&x.c(),b=O(),g=P("div"),g.textContent=`${j("traffic_saving_disable")}`,y=O(),T=P("li"),N&&N.c(),k=O(),v=P("div"),v.textContent=`${j("traffic_saving_enable")}`,W=O(),Q=P("div"),G=O(),le=P("div"),ae=P("span"),ae.textContent=`${j("traffic_saving_helper_text")}`,c(t,"class","item menu-header svelte-8jolw5"),c(t,"aria-label",r=j("aria_label_submenu_back")),H(t,"item-mobile",i[34]),c(s,"class","menu-divider svelte-8jolw5"),c(g,"class","svelte-8jolw5"),H(g,"quality-title-mobile",i[34]),c(h,"class","item item-traffic-saving svelte-8jolw5"),c(h,"role","menuitem"),c(h,"tabindex","0"),c(h,"aria-label",S=j("aria_label_submenu_traffic_saving_off")),H(h,"item-mobile",i[34]),c(v,"class","svelte-8jolw5"),H(v,"quality-title-mobile",i[34]),c(T,"class","item item-traffic-saving svelte-8jolw5"),c(T,"role","menuitem"),c(T,"tabindex","0"),c(T,"aria-label",I=`${j("aria_label_submenu_traffic_saving_on")}. ${j("traffic_saving_helper_text")}`),H(T,"item-mobile",i[34]),c(p,"class","items svelte-8jolw5"),c(p,"role","menu"),H(p,"items-mobile",i[34]),c(Q,"class","menu-divider svelte-8jolw5"),c(ae,"class","svelte-8jolw5"),c(le,"class","item item-helper-text svelte-8jolw5"),H(le,"item-mobile",i[34]),c(f,"style",V=i[73](i[19]?.clientHeight,!0)),c(e,"class","menu menu-subList menu-subList-traffic-saving svelte-8jolw5"),H(e,"menu-desktop",!i[34]),H(e,"menu-mobile",i[34])},m(te,E){C(te,e,E),m(e,t),L(n,t,null),m(t,o),m(t,l),i[121](t),m(e,a),m(e,s),m(e,u),m(e,f),m(f,p),m(p,h),x&&x.m(h,null),m(h,b),m(h,g),m(p,y),m(p,T),N&&N.m(T,null),m(T,k),m(T,v),i[126](p),m(f,W),m(f,Q),m(f,G),m(f,le),m(le,ae),A=!0,$||(J=[pe(t,"click",rt(i[66])),pe(h,"click",rt(i[122])),pe(h,"keydown",i[123]),pe(T,"click",rt(i[124])),pe(T,"keydown",i[125]),pe(p,"keydown",i[89])],$=!0)},p(te,E){(!A||E[1]&8)&&H(t,"item-mobile",te[34]),te[5]?x&&(ue(),_(x,1,1,()=>{x=null}),ce()):x?E[0]&32&&d(x,1):(x=J1(te),x.c(),d(x,1),x.m(h,b)),(!A||E[1]&8)&&H(g,"quality-title-mobile",te[34]),(!A||E[1]&8)&&H(h,"item-mobile",te[34]),te[5]?N?E[0]&32&&d(N,1):(N=x1(te),N.c(),d(N,1),N.m(T,k)):N&&(ue(),_(N,1,1,()=>{N=null}),ce()),(!A||E[1]&8)&&H(v,"quality-title-mobile",te[34]),(!A||E[1]&8)&&H(T,"item-mobile",te[34]),(!A||E[1]&8)&&H(p,"items-mobile",te[34]),(!A||E[1]&8)&&H(le,"item-mobile",te[34]),(!A||E[0]&524288&&V!==(V=te[73](te[19]?.clientHeight,!0)))&&c(f,"style",V),(!A||E[1]&8)&&H(e,"menu-desktop",!te[34]),(!A||E[1]&8)&&H(e,"menu-mobile",te[34])},i(te){A||(d(n.$$.fragment,te),d(x),d(N),A=!0)},o(te){_(n.$$.fragment,te),_(x),_(N),A=!1},d(te){te&&w(e),R(n),i[121](null),x&&x.d(),N&&N.d(),i[126](null),$=!1,tt(J)}}}function J1(i){let e,t,n;return t=new Go({}),{c(){e=P("div"),B(t.$$.fragment),c(e,"class","itemIcon svelte-8jolw5")},m(o,l){C(o,e,l),L(t,e,null),n=!0},i(o){n||(d(t.$$.fragment,o),n=!0)},o(o){_(t.$$.fragment,o),n=!1},d(o){o&&w(e),R(t)}}}function x1(i){let e,t,n;return t=new Go({}),{c(){e=P("div"),B(t.$$.fragment),c(e,"class","itemIcon svelte-8jolw5")},m(o,l){C(o,e,l),L(t,e,null),n=!0},i(o){n||(d(t.$$.fragment,o),n=!0)},o(o){_(t.$$.fragment,o),n=!1},d(o){o&&w(e),R(t)}}}function $1(i){let e,t,n,o,l,r,a,s,u,f,p,h;n=new On({props:{direction:"left"}});let b=gt(i[6]),g=[];for(let y=0;y<b.length;y+=1)g[y]=td(V1(i,b,y));let S=y=>_(g[y],1,1,()=>{g[y]=null});return{c(){e=P("div"),t=P("div"),B(n.$$.fragment),o=O(),l=P("div"),l.textContent=`${j("subtitles_caption")}`,a=O(),s=P("ul");for(let y=0;y<g.length;y+=1)g[y].c();c(t,"class","item menu-header svelte-8jolw5"),c(t,"aria-label",r=j("aria_label_submenu_back")),H(t,"item-mobile",i[34]),c(s,"class","items svelte-8jolw5"),c(s,"role","menu"),c(s,"style",u=i[73](i[20]?.clientHeight,!0)),H(s,"items-mobile",i[34]),c(e,"class","menu menu-subList menu-subList-subtitles svelte-8jolw5"),H(e,"menu-desktop",!i[34]),H(e,"menu-mobile",i[34])},m(y,T){C(y,e,T),m(e,t),L(n,t,null),m(t,o),m(t,l),i[127](t),m(e,a),m(e,s);for(let k=0;k<g.length;k+=1)g[k]&&g[k].m(s,null);i[130](s),f=!0,p||(h=[pe(t,"click",rt(i[66])),pe(s,"keydown",i[86])],p=!0)},p(y,T){if((!f||T[1]&8)&&H(t,"item-mobile",y[34]),T[0]&64|T[1]&8|T[2]&33554440){b=gt(y[6]);let k;for(k=0;k<b.length;k+=1){let v=V1(y,b,k);g[k]?(g[k].p(v,T),d(g[k],1)):(g[k]=td(v),g[k].c(),d(g[k],1),g[k].m(s,null))}for(ue(),k=b.length;k<g.length;k+=1)S(k);ce()}(!f||T[0]&1048576&&u!==(u=y[73](y[20]?.clientHeight,!0)))&&c(s,"style",u),(!f||T[1]&8)&&H(s,"items-mobile",y[34]),(!f||T[1]&8)&&H(e,"menu-desktop",!y[34]),(!f||T[1]&8)&&H(e,"menu-mobile",y[34])},i(y){if(!f){d(n.$$.fragment,y);for(let T=0;T<b.length;T+=1)d(g[T]);f=!0}},o(y){_(n.$$.fragment,y),g=g.filter(Boolean);for(let T=0;T<g.length;T+=1)_(g[T]);f=!1},d(y){y&&w(e),R(n),i[127](null),Ni(g,y),i[130](null),p=!1,tt(h)}}}function ed(i){let e,t,n;return t=new Go({}),{c(){e=P("div"),B(t.$$.fragment),c(e,"class","itemIcon svelte-8jolw5")},m(o,l){C(o,e,l),L(t,e,null),n=!0},i(o){n||(d(t.$$.fragment,o),n=!0)},o(o){_(t.$$.fragment,o),n=!1},d(o){o&&w(e),R(t)}}}function td(i){let e,t,n,o=i[142].displayValue+"",l,r,a,s,u,f,p,h=i[142].selected&&ed(i);function b(){return i[128](i[142])}function g(...S){return i[129](i[142],...S)}return{c(){e=P("li"),h&&h.c(),t=O(),n=P("div"),l=Be(o),r=O(),c(n,"class","svelte-8jolw5"),H(n,"quality-title-mobile",i[34]),c(e,"class","item item-quality svelte-8jolw5"),c(e,"data-value",a=i[142].value),c(e,"role","menuitem"),c(e,"tabindex","0"),c(e,"aria-label",s=i[142].displayValue),H(e,"item-mobile",i[34])},m(S,y){C(S,e,y),h&&h.m(e,null),m(e,t),m(e,n),m(n,l),m(e,r),u=!0,f||(p=[pe(e,"click",rt(b)),pe(e,"keydown",g)],f=!0)},p(S,y){i=S,i[142].selected?h?y[0]&64&&d(h,1):(h=ed(i),h.c(),d(h,1),h.m(e,t)):h&&(ue(),_(h,1,1,()=>{h=null}),ce()),(!u||y[0]&64)&&o!==(o=i[142].displayValue+"")&&Qe(l,o),(!u||y[1]&8)&&H(n,"quality-title-mobile",i[34]),(!u||y[0]&64&&a!==(a=i[142].value))&&c(e,"data-value",a),(!u||y[0]&64&&s!==(s=i[142].displayValue))&&c(e,"aria-label",s),(!u||y[1]&8)&&H(e,"item-mobile",i[34])},i(S){u||(d(h),u=!0)},o(S){_(h),u=!1},d(S){S&&w(e),h&&h.d(),f=!1,tt(p)}}}function ig(i){let e,t,n,o,l,r,a=i[10]&&B1(i),s=i[12]&&K1(i),u=i[13]&&Q1(i),f=i[15]&&X1(i),p=i[14]&&$1(i);return{c(){e=P("div"),a&&a.c(),t=O(),s&&s.c(),n=O(),u&&u.c(),o=O(),f&&f.c(),l=O(),p&&p.c(),c(e,"class","svelte-8jolw5"),H(e,"hidden",!i[10]),H(e,"container-mobile",i[34])},m(h,b){C(h,e,b),a&&a.m(e,null),m(e,t),s&&s.m(e,null),m(e,n),u&&u.m(e,null),m(e,o),f&&f.m(e,null),m(e,l),p&&p.m(e,null),r=!0},p(h,b){h[10]?a?(a.p(h,b),b[0]&1024&&d(a,1)):(a=B1(h),a.c(),d(a,1),a.m(e,t)):a&&(ue(),_(a,1,1,()=>{a=null}),ce()),h[12]?s?(s.p(h,b),b[0]&4096&&d(s,1)):(s=K1(h),s.c(),d(s,1),s.m(e,n)):s&&(ue(),_(s,1,1,()=>{s=null}),ce()),h[13]?u?(u.p(h,b),b[0]&8192&&d(u,1)):(u=Q1(h),u.c(),d(u,1),u.m(e,o)):u&&(ue(),_(u,1,1,()=>{u=null}),ce()),h[15]?f?(f.p(h,b),b[0]&32768&&d(f,1)):(f=X1(h),f.c(),d(f,1),f.m(e,l)):f&&(ue(),_(f,1,1,()=>{f=null}),ce()),h[14]?p?(p.p(h,b),b[0]&16384&&d(p,1)):(p=$1(h),p.c(),d(p,1),p.m(e,null)):p&&(ue(),_(p,1,1,()=>{p=null}),ce()),(!r||b[0]&1024)&&H(e,"hidden",!h[10]),(!r||b[1]&8)&&H(e,"container-mobile",h[34])},i(h){r||(d(a),d(s),d(u),d(f),d(p),r=!0)},o(h){_(a),_(s),_(u),_(f),_(p),r=!1},d(h){h&&w(e),a&&a.d(),s&&s.d(),u&&u.d(),f&&f.d(),p&&p.d()}}}var ng=18;function og(i,e,t){let n,o,l,r,a,s,u,f,p,h,b,g,S,y,T,k,v,I,W,Q,G,le,ae,V,{ref:A=void 0}=e,{supportLink:$}=e,{playerControlsHeight:J=0}=e,{returnFocus:x}=e,N=et(),te=Tt(),E=N.state.currentQuality$;F(i,E,re=>t(102,S=re));let Y=N.state.availableQualities$;F(i,Y,re=>t(8,b=re));let Le=N.state.autoQualityLimitingAvailable$;F(i,Le,re=>t(106,v=re));let je=N.state.isAutoQualityEnabled$;F(i,je,re=>t(103,y=re));let qe=N.state.currentPlaybackRate$;F(i,qe,re=>t(9,g=re));let Je=N.state.availablePlaybackRates$;F(i,Je,re=>t(7,p=re));let Ne=N.state.currentSubtitle$;F(i,Ne,re=>t(35,ae=re));let we=N.state.availableSubtitlesList$;F(i,we,re=>t(6,u=re));let X=N.state.canDownload,ve=N.state.hasMpegSources$;F(i,ve,re=>t(107,I=re));let Oe=N.ui.settingsMenuVisible;F(i,Oe,re=>t(10,le=re));let Xe=N.ui.settingsMenuOpenedByKeyboard;F(i,Xe,re=>t(132,o=re));let xe=N.ui.isMobile;F(i,xe,re=>t(34,l=re));let ke=N.ui.mobileNotReportControlHidden$;F(i,ke,re=>t(104,T=re));let Re=N.state.canChangePlaybackSpeed$;F(i,Re,re=>t(105,k=re));let Ue=N.ui.isFullscreen;F(i,Ue,re=>t(135,G=re));let We=N.state.trafficSavingEnabled$;F(i,We,re=>t(5,a=re));let se=N.ui.playerSize;F(i,se,re=>t(134,Q=re));let oe=N.ui.debugPanelVisible;F(i,oe,re=>t(36,V=re));let Se=N.ui.playerSize;F(i,Se,re=>t(133,W=re));let fe=N.state.isInteractiveTime$,Ae=N.actions.internal.downloadVideo,Ze=N.actions.internal.closeSettingsMenu,ut=!0,ct=!1,at=!1,ye=!1,mt=!1,lt=!1;function dt(){o||x?.(),Ze(),lt=!1}function ht(){t(11,ut=!1),t(12,ct=!0)}function Et(){t(11,ut=!1),t(15,mt=!0)}function Ke(re){N.actions.internal.setQuality(re),dt()}function Qt(re){N.actions.internal.setTrafficSavingEnabled(re),dt()}function Bt(){t(11,ut=!1),t(13,at=!0)}function Mt(re){N.actions.internal.setPlaybackRate(re),dt()}function ti(){t(11,ut=!1),t(14,ye=!0)}function it(re){N.actions.internal.setSubtitle(re),dt()}function me(){t(11,ut=!0),t(12,ct=!1),t(13,at=!1),t(14,ye=!1),t(15,mt=!1)}function vt(){Ae(),dt()}function _t(){window.open($,"_blank"),dt(),N.actions.internal.pause()}function Dt(){rl(N.actions.internal.getDebugTextData()),dt()}function wt(){oe.set(!0),dt()}function At(){lt=!0}function Ut(){lt=!1}function en(re,ft,ui){if(!re)return"...";let ci=ft.find(Gi=>Gi.value===re),$t=ci?ci.displayValue:re;return ui?re===$h.INVARIANT?j("auto_quality_invariant"):j("auto_quality",{actual:$t}):$t}let di,mi,Ei,Yt,pi;function tn(re=0,ft=!1){return l&&G&&ft?`max-height: ${Math.round(Q.height*.6)}px`:l?"":`max-height: ${W.height-ng-re-J}px; overflow: auto;`}let _i,Fi,ii,Ai,hi,Hi,gi,ni,Pt,Nt,bi=De(!1);F(i,bi,re=>t(101,h=re));let vi,Ot,oi=De(!1);F(i,oi,re=>t(100,f=re));let li,Vt,It=De(!1);F(i,It,re=>t(99,s=re));let Kt,Mi,Zt=De(!1);F(i,Zt,re=>t(98,r=re));let nn=re=>{Jl(re,Ze)},on=async re=>{al(re,ht,()=>{let ft=b.findIndex(ui=>ui.selected);return Nt.childNodes[ft]})},jt=async re=>{ul(re,me,bi,Ze)},yi=(re,ft)=>{Qi(re,()=>Ke(ft))},zi=async re=>{al(re,Bt,()=>{let ft=p.findIndex(ui=>ui.selected);return Ot.childNodes[ft]})},wi=async re=>{ul(re,me,oi,Ze)},ri=(re,ft)=>{Qi(re,()=>Mt(ft))},Ft=async re=>{al(re,ti,()=>{let ft=u.findIndex(ui=>ui.selected);return Vt.childNodes[ft]})},Wt=async re=>{ul(re,me,It,Ze)},ki=(re,ft)=>{Qi(re,()=>it(ft))},Xt=async re=>{al(re,Et,()=>{let ft=a?2:0;return Mi.childNodes[ft]})},Yi=async re=>{ul(re,me,Zt,Ze)},Ci=(re,ft)=>{Qi(re,()=>Qt(ft))},ln=re=>{Qi(re,()=>vt())},rn=re=>{Qi(re,()=>_t())},Zi=re=>{Qi(re,()=>Dt())},qi=re=>{Qi(re,()=>wt())};Ct(()=>{let re=fe.subscribe(ft=>{ft&&!l&&!lt&&!o&&dt()});return()=>{re()}});function Vi(re){he[re?"unshift":"push"](()=>{Pt=re,t(1,Pt)})}function Gt(re){he[re?"unshift":"push"](()=>{vi=re,t(2,vi)})}function si(re){he[re?"unshift":"push"](()=>{li=re,t(3,li)})}function Si(re){he[re?"unshift":"push"](()=>{Kt=re,t(4,Kt)})}function Li(re){he[re?"unshift":"push"](()=>{A=re,t(0,A)})}function Xi(re){he[re?"unshift":"push"](()=>{mi=re,t(17,mi)})}let Pi=re=>Ke(re.value),Ri=(re,ft)=>yi(ft,re.value);function Bi(re){he[re?"unshift":"push"](()=>{Nt=re,t(29,Nt)})}function Ye(re){he[re?"unshift":"push"](()=>{Ei=re,t(18,Ei)})}let Ui=re=>Mt(re.value),Ht=(re,ft)=>ri(ft,re.value);function ze(re){he[re?"unshift":"push"](()=>{Ot=re,t(30,Ot)})}function Ji(re){he[re?"unshift":"push"](()=>{Yt=re,t(19,Yt)})}let Di=()=>Qt(!1),Ki=re=>Ci(re,!1),xi=()=>Qt(!0),ji=re=>Ci(re,!0);function fn(re){he[re?"unshift":"push"](()=>{Mi=re,t(32,Mi)})}function Jt(re){he[re?"unshift":"push"](()=>{pi=re,t(20,pi)})}let xt=re=>it(re),Wi=(re,ft)=>ki(ft,re);function ai(re){he[re?"unshift":"push"](()=>{Vt=re,t(31,Vt)})}return i.$$set=re=>{"ref"in re&&t(0,A=re.ref),"supportLink"in re&&t(95,$=re.supportLink),"playerControlsHeight"in re&&t(96,J=re.playerControlsHeight),"returnFocus"in re&&t(97,x=re.returnFocus)},i.$$.update=()=>{if(i.$$.dirty[0]&1024)e:le&&(t(11,ut=!0),t(12,ct=!1),t(13,at=!1),t(14,ye=!1),t(15,mt=!1));if(i.$$.dirty[3]&512)e:t(33,n=io(S));if(i.$$.dirty[0]&256|i.$$.dirty[3]&1536)e:t(16,di=en(S,b,y));if(i.$$.dirty[3]&18432)e:t(21,_i=X&&I&&!T);if(i.$$.dirty[3]&10240)e:t(22,Fi=te.features.trafficSaving&&!T&&v);if(i.$$.dirty[0]&64|i.$$.dirty[3]&2048)e:t(23,ii=u.length>0&&!T);if(i.$$.dirty[3]&6144)e:t(24,Ai=!!k&&!T);if(i.$$.dirty[3]&2048)e:t(25,hi=!T);if(i.$$.dirty[0]&32)e:t(26,Hi=a?j("traffic_saving_on"):j("traffic_saving_off"));if(i.$$.dirty[3]&1536)e:t(27,gi=y?j("auto_quality_option"):S);if(i.$$.dirty[0]&640)e:t(28,ni=p.find(re=>re.value===g)?.displayValue);if(i.$$.dirty[0]&2|i.$$.dirty[3]&256)e:sl(Pt,bi,h);if(i.$$.dirty[0]&4|i.$$.dirty[3]&128)e:sl(vi,oi,f);if(i.$$.dirty[0]&8|i.$$.dirty[3]&64)e:sl(li,It,s);if(i.$$.dirty[0]&16|i.$$.dirty[3]&32)e:sl(Kt,Zt,r)},[A,Pt,vi,li,Kt,a,u,p,b,g,le,ut,ct,at,ye,mt,di,mi,Ei,Yt,pi,_i,Fi,ii,Ai,hi,Hi,gi,ni,Nt,Ot,Vt,Mi,n,l,ae,V,te,E,Y,Le,je,qe,Je,Ne,we,ve,Oe,Xe,xe,ke,Re,Ue,We,se,oe,Se,dt,ht,Et,Ke,Qt,Bt,Mt,ti,it,me,vt,_t,Dt,wt,At,Ut,tn,bi,oi,It,Zt,nn,on,jt,yi,zi,wi,ri,Ft,Wt,ki,Xt,Yi,Ci,ln,rn,Zi,qi,$,J,x,r,s,f,h,S,y,T,k,v,I,Vi,Gt,si,Si,Li,Xi,Pi,Ri,Bi,Ye,Ui,Ht,ze,Ji,Di,Ki,xi,ji,fn,Jt,xt,Wi,ai]}var aa=class extends q{constructor(e){super(),U(this,e,og,ig,z,{ref:0,supportLink:95,playerControlsHeight:96,returnFocus:97},eg,[-1,-1,-1,-1,-1])}},ur=aa;function lg(i){Ce(i,"svelte-d9t49t",".settings-icon-wrapper.svelte-d9t49t{position:relative;width:24px}")}function rg(i){let e,t,n;return t=new sr({props:{isMobile:i[3],currentQuality:i[4]}}),{c(){e=P("span"),B(t.$$.fragment),c(e,"class","settings-icon-wrapper svelte-d9t49t")},m(o,l){C(o,e,l),L(t,e,null),n=!0},p(o,l){let r={};l&8&&(r.isMobile=o[3]),l&16&&(r.currentQuality=o[4]),t.$set(r)},i(o){n||(d(t.$$.fragment,o),n=!0)},o(o){_(t.$$.fragment,o),n=!1},d(o){o&&w(e),R(t)}}}function sg(i){let e,t,n;function o(r){i[9](r)}let l={className:i[1]?"opened":"",testId:"btn-settings",click:i[8],ariaLabel:i[2],ariaExpanded:i[1],$$slots:{default:[rg]},$$scope:{ctx:i}};return i[0]!==void 0&&(l.ref=i[0]),e=new pt({props:l}),he.push(()=>He(e,"ref",o)),{c(){B(e.$$.fragment)},m(r,a){L(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}),!t&&a&1&&(t=!0,s.ref=r[0],Fe(()=>t=!1)),e.$set(s)},i(r){n||(d(e.$$.fragment,r),n=!0)},o(r){_(e.$$.fragment,r),n=!1},d(r){R(e,r)}}}function ag(i,e,t){let n,o,l,{ref:r=void 0}=e,a=et(),s=a.state.currentQuality$;F(i,s,S=>t(4,l=S));let u=a.ui.settingsMenuVisible;F(i,u,S=>t(1,n=S));let f=a.actions.internal.toggleSettingsMenu,p=a.ui.isMobile;F(i,p,S=>t(3,o=S));let h;function b(S){let y=Ko(S);f(y)}function g(S){r=S,t(0,r)}return i.$$set=S=>{"ref"in S&&t(0,r=S.ref)},i.$$.update=()=>{if(i.$$.dirty&2)e:t(2,h=n?j("tooltip_settings_on"):j("tooltip_settings_off"))},[r,n,h,o,l,s,u,p,b,g]}var ua=class extends q{constructor(e){super(),U(this,e,ag,sg,z,{ref:0},lg)}},fl=ua;function ug(i){let e,t,n,o=i[2].default,l=Pe(o,i,i[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"},i[0]],a={};for(let s=0;s<r.length;s+=1)a=ne(a,r[s]);return{c(){e=D("svg"),l&&l.c(),t=D("path"),c(t,"fill","#fff"),c(t,"d","M3 0h14a3 3 0 0 1 3 3v10a3 3 0 0 1-3 3H3a3 3 0 0 1-3-3V3a3 3 0 0 1 3-3m1 9h2a1 1 0 0 0 0-2H4a1 1 0 0 0 0 2m5 0h7a1 1 0 1 0 0-2H9a1 1 0 0 0 0 2m-5 4h7a1 1 0 1 0 0-2H4a1 1 0 1 0 0 2m10 0h2a1 1 0 1 0 0-2h-2a1 1 0 1 0 0 2"),be(e,a)},m(s,u){C(s,e,u),l&&l.m(e,null),m(e,t),n=!0},p(s,[u]){l&&l.p&&(!n||u&2)&&Te(l,o,s,s[1],n?Ie(o,s[1],u,null):Ee(s[1]),null),be(e,a=Ve(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&&w(e),l&&l.d(s)}}}function cg(i,e,t){let{$$slots:n={},$$scope:o}=e;return i.$$set=l=>{t(0,e=ne(ne({},e),ge(l))),"$$scope"in l&&t(1,o=l.$$scope)},e=ge(e),[e,o,n]}var ca=class extends q{constructor(e){super(),U(this,e,cg,ug,z,{})}},id=ca;function fg(i){let e,t;return e=new ar({}),{c(){B(e.$$.fragment)},m(n,o){L(e,n,o),t=!0},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){_(e.$$.fragment,n),t=!1},d(n){R(e,n)}}}function dg(i){let e,t;return e=new id({}),{c(){B(e.$$.fragment)},m(n,o){L(e,n,o),t=!0},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){_(e.$$.fragment,n),t=!1},d(n){R(e,n)}}}function mg(i){let e,t,n,o,l=[dg,fg],r=[];function a(s,u){return s[0]?0:1}return e=a(i,-1),t=r[e]=l[e](i),{c(){t.c(),n=ot()},m(s,u){r[e].m(s,u),C(s,n,u),o=!0},p(s,u){let f=e;e=a(s,u),e!==f&&(ue(),_(r[f],1,1,()=>{r[f]=null}),ce(),t=r[e],t||(t=r[e]=l[e](s),t.c()),d(t,1),t.m(n.parentNode,n))},i(s){o||(d(t),o=!0)},o(s){_(t),o=!1},d(s){s&&w(n),r[e].d(s)}}}function pg(i){let e,t;return e=new pt({props:{testId:"btn-Subtitles",ariaLabel:i[2],click:i[1],ariaKeyShortCut:Dn.KeyC,$$slots:{default:[mg]},$$scope:{ctx:i}}}),{c(){B(e.$$.fragment)},m(n,o){L(e,n,o),t=!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){t||(d(e.$$.fragment,n),t=!0)},o(n){_(e.$$.fragment,n),t=!1},d(n){R(e,n)}}}function _g(i,e,t){let{isSubtitlesEnabled:n=!1}=e,{click:o}=e,l;return i.$$set=r=>{"isSubtitlesEnabled"in r&&t(0,n=r.isSubtitlesEnabled),"click"in r&&t(1,o=r.click)},i.$$.update=()=>{if(i.$$.dirty&1)e:t(2,l=n?j("tooltip_subtitles_on"):j("tooltip_subtitles_off"))},[n,o,l]}var fa=class extends q{constructor(e){super(),U(this,e,_g,pg,z,{isSubtitlesEnabled:0,click:1})}},nd=fa;function hg(i){Ce(i,"svelte-19o2urr",".time.svelte-19o2urr{display:flex;align-items:center;font-weight:500;font-variant-numeric:tabular-nums;padding:12px 6px}.time.mobile.svelte-19o2urr{padding:0 0 0 8px}.current.svelte-19o2urr{position:relative}.duration.svelte-19o2urr{opacity:0.7}.duration.svelte-19o2urr:before{content:' / ';white-space:pre}")}function od(i){let e,t;return{c(){e=P("span"),t=Be(i[3]),c(e,"class","duration svelte-19o2urr")},m(n,o){C(n,e,o),m(e,t)},p(n,o){o&8&&Qe(t,n[3])},d(n){n&&w(e)}}}function gg(i){let e,t,n,o,l=i[2]&&od(i);return{c(){e=P("div"),t=P("span"),n=Be(i[4]),o=O(),l&&l.c(),c(t,"class","current svelte-19o2urr"),c(e,"class","time svelte-19o2urr"),H(e,"mobile",i[1])},m(r,a){C(r,e,a),m(e,t),m(t,n),m(e,o),l&&l.m(e,null),i[7](e)},p(r,[a]){a&16&&Qe(n,r[4]),r[2]?l?l.p(r,a):(l=od(r),l.c(),l.m(e,null)):l&&(l.d(1),l=null),a&2&&H(e,"mobile",r[1])},i:_e,o:_e,d(r){r&&w(e),l&&l.d(),i[7](null)}}}function bg(i,e,t){let{isMobile:n=!1}=e,{duration:o}=e,{position:l}=e,{showDuration:r=!0}=e,{ref:a}=e,s,u;function f(p){he[p?"unshift":"push"](()=>{a=p,t(0,a)})}return i.$$set=p=>{"isMobile"in p&&t(1,n=p.isMobile),"duration"in p&&t(5,o=p.duration),"position"in p&&t(6,l=p.position),"showDuration"in p&&t(2,r=p.showDuration),"ref"in p&&t(0,a=p.ref)},i.$$.update=()=>{if(i.$$.dirty&32)e:t(3,s=pn(o));if(i.$$.dirty&64)e:t(4,u=pn(l))},[a,n,r,s,u,o,l,f]}var da=class extends q{constructor(e){super(),U(this,e,bg,gg,z,{isMobile:1,duration:5,position:6,showDuration:2,ref:0},hg)}},cr=da;import{noop as no}from"@vkontakte/videoplayer-shared";function vg(i){Ce(i,"svelte-1n5yyua",".icon.svelte-1n5yyua.svelte-1n5yyua{display:block;width:24px;height:24px}.icon.svelte-1n5yyua .cross.svelte-1n5yyua{visibility:hidden}.icon[data-value='off'].svelte-1n5yyua .wave1.svelte-1n5yyua,.icon[data-value='off'].svelte-1n5yyua .wave2.svelte-1n5yyua{visibility:hidden}.icon[data-value='off'].svelte-1n5yyua .cross.svelte-1n5yyua{visibility:visible}.icon[data-value='mid'].svelte-1n5yyua .wave2.svelte-1n5yyua,.icon[data-value='min'].svelte-1n5yyua .wave2.svelte-1n5yyua{visibility:hidden}")}function yg(i){let e,t,n,o,l,r;return{c(){e=D("svg"),t=D("g"),n=D("path"),o=D("path"),l=D("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(t,"fill","#fff"),c(t,"fill-rule","evenodd"),c(e,"data-value",i[0]),c(e,"data-testid",r="volume-"+i[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){C(a,e,s),m(e,t),m(t,n),m(t,o),m(t,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:_e,o:_e,d(a){a&&w(e)}}}function wg(i,e,t){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 i.$$set=a=>{"volume"in a&&t(1,n=a.volume),"muted"in a&&t(2,o=a.muted)},i.$$.update=()=>{if(i.$$.dirty&6)e:t(0,r=l(n,o))},[r,n,o]}var ma=class extends q{constructor(e){super(),U(this,e,wg,yg,z,{volume:1,muted:2},vg)}},So=ma;import{noop as Mn}from"@vkontakte/videoplayer-shared";import{noop as Ag}from"@vkontakte/videoplayer-shared";import{noop as Sg}from"@vkontakte/videoplayer-shared";function kg(i){let e,t,n=i[4].default,o=Pe(n,i,i[3],null);return{c(){e=P("div"),o&&o.c(),c(e,"class","overlay")},m(l,r){C(l,e,r),o&&o.m(e,null),i[5](e),t=!0},p(l,[r]){o&&o.p&&(!t||r&8)&&Te(o,n,l,l[3],t?Ie(n,l[3],r,null):Ee(l[3]),null)},i(l){t||(d(o,l),t=!0)},o(l){_(o,l),t=!1},d(l){l&&w(e),o&&o.d(l),i[5](null)}}}function Cg(i,e,t){let n,{$$slots:o={},$$scope:l}=e,a=et().ui.overlayContainer$;F(i,a,h=>t(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)};Ct(()=>(f(n),()=>u(n)));function p(h){he[h?"unshift":"push"](()=>{s=h,t(0,s)})}return i.$$set=h=>{"$$scope"in h&&t(3,l=h.$$scope)},i.$$.update=()=>{if(i.$$.dirty&4)e:f(n)},[s,a,n,l,o,p]}var pa=class extends q{constructor(e){super(),U(this,e,Cg,kg,z,{})}},ld=pa;function Pg(i){Ce(i,"svelte-tny135",'.tooltip-wrapper.svelte-tny135{display:flex;flex-direction:column;min-width:0}.full-width.svelte-tny135{width:100%}.tooltip.svelte-tny135{position:absolute;opacity:0;visibility:hidden;transition:opacity 200ms, visibility 200ms;bottom:100%;left:0}.content.svelte-tny135{display:inline-block;padding:6px 10px;border-radius:3px;color:var(--white);background-color:rgba(41, 41, 41, .8)}.tooltip.active.svelte-tny135{opacity:1;visibility:visible}.tooltip-pointer.svelte-tny135{position:absolute;bottom:0;width:0;border-top:5px solid rgba(41, 41, 41, .8);border-right:5px solid transparent;border-left:5px solid transparent;content:" ";font-size:0;line-height:0}.bottom-placement-pointer.svelte-tny135{top:0;bottom:auto}')}function rd(i){let e,t;return e=new ld({props:{$$slots:{default:[Ig]},$$scope:{ctx:i}}}),{c(){B(e.$$.fragment)},m(n,o){L(e,n,o),t=!0},p(n,o){let l={};o&2097395&&(l.$$scope={dirty:o,ctx:n}),e.$set(l)},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){_(e.$$.fragment,n),t=!1},d(n){R(e,n)}}}function Ig(i){let e,t,n,o,l,r,a;return{c(){e=P("div"),t=P("div"),n=Be(i[1]),o=O(),l=P("div"),c(t,"class","content svelte-tny135"),c(l,"class","tooltip-pointer svelte-tny135"),c(l,"style",r=`transform: translate(${i[5]}px, ${i[9]}px) rotate(${i[8]?0:"180deg"});`),H(l,"bottom-placement-pointer",!i[8]),c(e,"class","tooltip svelte-tny135"),c(e,"style",a=`transform: translate(${i[6]}px, ${i[7]}px);`),H(e,"active",i[0])},m(s,u){C(s,e,u),m(e,t),m(t,n),m(e,o),m(e,l),i[20](e)},p(s,u){u&2&&Qe(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&&H(e,"active",s[0])},d(s){s&&w(e),i[20](null)}}}function Tg(i){let e,t,n,o,l,r,a=i[18].default,s=Pe(a,i,i[21],null),u=i[1]&&rd(i);return{c(){e=P("div"),s&&s.c(),t=O(),u&&u.c(),n=ot(),c(e,"class","tooltip-wrapper svelte-tny135"),H(e,"full-width",i[2])},m(f,p){C(f,e,p),s&&s.m(e,null),i[19](e),C(f,t,p),u&&u.m(f,p),C(f,n,p),o=!0,l||(r=[pe(e,"mouseenter",i[12]),pe(e,"mousemove",i[12]),pe(e,"mouseleave",i[13]),pe(e,"mousedown",i[13]),pe(e,"mouseup",i[12])],l=!0)},p(f,[p]){s&&s.p&&(!o||p&2097152)&&Te(s,a,f,f[21],o?Ie(a,f[21],p,null):Ee(f[21]),null),(!o||p&4)&&H(e,"full-width",f[2]),f[1]?u?(u.p(f,p),p&2&&d(u,1)):(u=rd(f),u.c(),d(u,1),u.m(n.parentNode,n)):u&&(ue(),_(u,1,1,()=>{u=null}),ce())},i(f){o||(d(s,f),d(u),o=!0)},o(f){_(s,f),_(u),o=!1},d(f){f&&(w(e),w(t),w(n)),s&&s.d(f),i[19](null),u&&u.d(f),l=!1,tt(r)}}}var dl=5;function Eg(i,e,t){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:b=Sg}=e,g=h==="top",S,y,T,k=0,v=g?dl:-dl,I=0,W=0,Q=Tt(),G=et(),le=G.ui.playerSize;F(i,le,Y=>t(24,o=Y));let ae=G.ui.overlayContainer$;F(i,ae,Y=>t(23,n=Y));let V=G.getLogger().createComponentLog("Tooltip component"),A=()=>{if(!n||!y||!S)return;let Y=n.getBoundingClientRect(),Le=S.getBoundingClientRect(),je=Le.width,qe=y.clientWidth,Je=o.width,Ne=(je-qe)/2,we=Le.left+u-Y.left,X=we+Ne,ve=Le.top+f-Y.top,Oe=qe/2-dl,Xe=X<8,xe=X+qe>Je-8;Xe&&(X=8,Oe=we+Le.width/2-2.5*dl),xe&&(X=Je-8-qe,Oe=Le.left-Y.left+Le.width/2-X-dl),t(6,I=X),t(7,W=ve),t(5,k=Oe)},$=()=>{try{if(!n||!S)return;A(),t(0,s=!0)}catch(Y){V({message:String(Y)})}},J=()=>{t(0,s=!1)},x=()=>{y&&(T||(T=window.setTimeout($,Q.controls.hideTimeoutTooltips)),s&&$())},N=()=>{J(),window.clearTimeout(T),T=void 0};Ct(A),Tn(()=>window.clearTimeout(T));function te(Y){he[Y?"unshift":"push"](()=>{S=Y,t(3,S)})}function E(Y){he[Y?"unshift":"push"](()=>{y=Y,t(4,y)})}return i.$$set=Y=>{"content"in Y&&t(1,a=Y.content),"active"in Y&&t(0,s=Y.active),"translateX"in Y&&t(14,u=Y.translateX),"translateY"in Y&&t(15,f=Y.translateY),"isFullWidthWrapper"in Y&&t(2,p=Y.isFullWidthWrapper),"placement"in Y&&t(16,h=Y.placement),"onVisibilityChange"in Y&&t(17,b=Y.onVisibilityChange),"$$scope"in Y&&t(21,r=Y.$$scope)},i.$$.update=()=>{if(i.$$.dirty&131073)e:b(s)},[s,a,p,S,y,k,I,W,g,v,le,ae,x,N,u,f,h,b,l,te,E,r]}var _a=class extends q{constructor(e){super(),U(this,e,Eg,Tg,z,{content:1,active:0,translateX:14,translateY:15,isFullWidthWrapper:2,placement:16,onVisibilityChange:17},Pg)}},fr=_a;function Mg(i){Ce(i,"svelte-p9r045",".btn-container.svelte-p9r045{position:relative;display:flex;align-items:center;height:100%;transition:var(--button-hover-transition);will-change:opacity;-webkit-tap-highlight-color:transparent}.w-max.svelte-p9r045{width:100%;min-width:0}")}function Vg(i){let e,t=i[19].default,n=Pe(t,i,i[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)&&Te(n,t,o,o[24],e?Ie(t,o[24],l,null):Ee(o[24]),null)},i(o){e||(d(n,o),e=!0)},o(o){_(n,o),e=!1},d(o){n&&n.d(o)}}}function Lg(i){let e,t;return e=new fr({props:{content:i[12],translateX:i[10],translateY:i[11],isFullWidthWrapper:i[4],active:i[6],placement:i[7],onVisibilityChange:i[9],$$slots:{default:[Rg]},$$scope:{ctx:i}}}),{c(){B(e.$$.fragment)},m(n,o){L(e,n,o),t=!0},p(n,o){let l={};o&4096&&(l.content=n[12]),o&1024&&(l.translateX=n[10]),o&2048&&(l.translateY=n[11]),o&16&&(l.isFullWidthWrapper=n[4]),o&64&&(l.active=n[6]),o&128&&(l.placement=n[7]),o&512&&(l.onVisibilityChange=n[9]),o&16777216&&(l.$$scope={dirty:o,ctx:n}),e.$set(l)},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){_(e.$$.fragment,n),t=!1},d(n){R(e,n)}}}function Rg(i){let e,t=i[19].default,n=Pe(t,i,i[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)&&Te(n,t,o,o[24],e?Ie(t,o[24],l,null):Ee(o[24]),null)},i(o){e||(d(n,o),e=!0)},o(o){_(n,o),e=!1},d(o){n&&n.d(o)}}}function Bg(i){let e,t,n,o,l,r,a,s,u,f=[Lg,Vg],p=[];function h(b,g){return b[3]&&b[5]&&!b[13]?0:1}return t=h(i,-1),n=p[t]=f[t](i),{c(){e=P("div"),n.c(),c(e,"class",o="btn-container "+i[2]+" svelte-p9r045"),c(e,"aria-hidden",l=i[8]||null),An(()=>i[23].call(e))},m(b,g){C(b,e,g),p[t].m(e,null),i[22](e),r=Ro(e,i[23].bind(e)),a=!0,s||(u=[pe(e,"pointerdown",rt(kt(i[20]))),pe(e,"click",rt(kt(i[21])))],s=!0)},p(b,[g]){let S=t;t=h(b,g),t===S?p[t].p(b,g):(ue(),_(p[S],1,1,()=>{p[S]=null}),ce(),n=p[t],n?n.p(b,g):(n=p[t]=f[t](b),n.c()),d(n,1),n.m(e,null)),(!a||g&4&&o!==(o="btn-container "+b[2]+" svelte-p9r045"))&&c(e,"class",o),(!a||g&256&&l!==(l=b[8]||null))&&c(e,"aria-hidden",l)},i(b){a||(d(n),a=!0)},o(b){_(n),a=!1},d(b){b&&w(e),p[t].d(),i[22](null),r(),s=!1,tt(u)}}}function Dg(i,e,t){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:b=""}=e,{tooltipActive:g=!1}=e,{tooltipPlacement:S="top"}=e,{disabledTooltipContent:y=j("tooltip_button_disabled")}=e,{isAriaHidden:T=!1}=e,{onTooltipVisibilityChange:k=Ag}=e,{initialTranslateXPx:v=0}=e,{initialTranslateYPx:I=-18}=e,W=et(),Q=W.ui.isMobile;F(i,Q,J=>t(13,o=J));let G=W.state.graphIsOpened$;F(i,G,J=>t(18,n=J));let le;function ae(J){mn.call(this,i,J)}function V(J){mn.call(this,i,J)}function A(J){he[J?"unshift":"push"](()=>{f=J,t(0,f)})}function $(){p=this.clientWidth,t(1,p)}return i.$$set=J=>{"className"in J&&t(2,a=J.className),"disabled"in J&&t(16,s=J.disabled),"hasTooltip"in J&&t(3,u=J.hasTooltip),"ref"in J&&t(0,f=J.ref),"width"in J&&t(1,p=J.width),"isFullWidthTooltip"in J&&t(4,h=J.isFullWidthTooltip),"tooltipContent"in J&&t(5,b=J.tooltipContent),"tooltipActive"in J&&t(6,g=J.tooltipActive),"tooltipPlacement"in J&&t(7,S=J.tooltipPlacement),"disabledTooltipContent"in J&&t(17,y=J.disabledTooltipContent),"isAriaHidden"in J&&t(8,T=J.isAriaHidden),"onTooltipVisibilityChange"in J&&t(9,k=J.onTooltipVisibilityChange),"initialTranslateXPx"in J&&t(10,v=J.initialTranslateXPx),"initialTranslateYPx"in J&&t(11,I=J.initialTranslateYPx),"$$scope"in J&&t(24,r=J.$$scope)},i.$$.update=()=>{if(i.$$.dirty&458784)e:s?t(12,le=n?j("tooltip_disabled_when_graph_on"):y):t(12,le=b)},[f,p,a,u,h,b,g,S,T,k,v,I,le,o,Q,G,s,y,n,l,ae,V,A,$,r]}var ha=class extends q{constructor(e){super(),U(this,e,Dg,Bg,z,{className:2,disabled:16,hasTooltip:3,ref:0,width:1,isFullWidthTooltip:4,tooltipContent:5,tooltipActive:6,tooltipPlacement:7,disabledTooltipContent:17,isAriaHidden:8,onTooltipVisibilityChange:9,initialTranslateXPx:10,initialTranslateYPx:11},Mg)}},St=ha;function Ng(i){let e,t,n,o,l,r;return{c(){e=D("svg"),t=D("rect"),o=D("path"),c(t,"width","20"),c(t,"height","20"),c(t,"rx","10"),c(t,"fill","white"),c(t,"fill-opacity",n=i[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=i[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=(i[0],"interactive-episode-completed-icon"))},m(a,s){C(a,e,s),m(e,t),m(e,o)},p(a,[s]){s&1&&n!==(n=a[0]?1:.24)&&c(t,"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:_e,o:_e,d(a){a&&w(e)}}}function Og(i,e,t){let{completed:n}=e;return i.$$set=o=>{"completed"in o&&t(0,n=o.completed)},[n]}var ga=class extends q{constructor(e){super(),U(this,e,Og,Ng,z,{completed:0})}},dr=ga;function Fg(i){Ce(i,"svelte-bklhpe",".interactive-episode-icon.svelte-bklhpe{width:20px;height:20px;position:absolute;transform:translateX(-50%);cursor:default}.interactive-episode-icon.disabled.svelte-bklhpe{pointer-events:none;opacity:0.4}")}function Hg(i){let e,t,n,o,l;return t=new dr({props:{completed:!!i[0].completed}}),{c(){e=P("div"),B(t.$$.fragment),c(e,"class","interactive-episode-icon svelte-bklhpe"),c(e,"style",n=`left: ${i[0].from+i[0].width/2}%`),An(()=>i[3].call(e)),H(e,"disabled",i[1])},m(r,a){C(r,e,a),L(t,e,null),o=Ro(e,i[3].bind(e)),l=!0},p(r,a){let s={};a&1&&(s.completed=!!r[0].completed),t.$set(s),(!l||a&1&&n!==(n=`left: ${r[0].from+r[0].width/2}%`))&&c(e,"style",n),(!l||a&2)&&H(e,"disabled",r[1])},i(r){l||(d(t.$$.fragment,r),l=!0)},o(r){_(t.$$.fragment,r),l=!1},d(r){r&&w(e),R(t),o()}}}function zg(i){let e,t;return e=new St({props:{tooltipContent:j(i[0].completed?"tooltip_episode_finished":"tooltip_episode_unfinished"),initialTranslateXPx:-10,initialTranslateYPx:-10,disabled:i[1],width:i[2]||0,isAriaHidden:!0,isFullWidthTooltip:!1,$$slots:{default:[Hg]},$$scope:{ctx:i}}}),{c(){B(e.$$.fragment)},m(n,o){L(e,n,o),t=!0},p(n,[o]){let l={};o&1&&(l.tooltipContent=j(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){t||(d(e.$$.fragment,n),t=!0)},o(n){_(e.$$.fragment,n),t=!1},d(n){R(e,n)}}}function qg(i,e,t){let{videoEpisode:n}=e,{disabled:o}=e,l;function r(){l=this.clientWidth,t(2,l)}return i.$$set=a=>{"videoEpisode"in a&&t(0,n=a.videoEpisode),"disabled"in a&&t(1,o=a.disabled)},[n,o,l,r]}var ba=class extends q{constructor(e){super(),U(this,e,qg,zg,z,{videoEpisode:0,disabled:1},Fg)}},sd=ba;function Ug(i){Ce(i,"svelte-1h9p3m2",".video-episodes-wrap.svelte-1h9p3m2{position:absolute;width:100%;height:100%}.video-episode.svelte-1h9p3m2{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-1h9p3m2:where(:hover, :active){transform:scaleY(1.5)}.video-episode-inner.svelte-1h9p3m2,.video-episode-loaded.svelte-1h9p3m2,.video-episode-filled.svelte-1h9p3m2{position:absolute;height:var(--slider-height);border-radius:var(--slider-radius)}.video-episode-inner.svelte-1h9p3m2{position:absolute;overflow:hidden;width:calc(100% - 2 * var(--slider-video-episode-gap));background:var(--slider-bg)}.video-episode-loaded.svelte-1h9p3m2{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-1h9p3m2{position:absolute;left:-100%;width:100%;height:100%;border-radius:var(--slider-radius);background-color:var(--slider-filled-bg)}")}function ad(i,e,t){let n=i.slice();return n[2]=e[t],n}function ud(i){let e,t,n,o,l,r,a,s,u;return{c(){e=P("div"),t=P("div"),n=P("div"),l=O(),r=P("div"),s=O(),c(n,"class","video-episode-loaded svelte-1h9p3m2"),c(n,"style",o=`transform: translateX(${i[2].loadedWidth/i[2].width*100}%)`),c(r,"class","video-episode-filled svelte-1h9p3m2"),c(r,"style",a=`transform: translateX(${i[2].filledWidth/i[2].width*100}%)`),H(r,"mobile",i[1]),c(t,"class","video-episode-inner svelte-1h9p3m2"),c(e,"class","video-episode svelte-1h9p3m2"),c(e,"style",u=`left: ${i[2].from}%; width: ${i[2].width}%`),H(e,"mobile",i[1])},m(f,p){C(f,e,p),m(e,t),m(t,n),m(t,l),m(t,r),m(e,s)},p(f,p){p&1&&o!==(o=`transform: translateX(${f[2].loadedWidth/f[2].width*100}%)`)&&c(n,"style",o),p&1&&a!==(a=`transform: translateX(${f[2].filledWidth/f[2].width*100}%)`)&&c(r,"style",a),p&2&&H(r,"mobile",f[1]),p&1&&u!==(u=`left: ${f[2].from}%; width: ${f[2].width}%`)&&c(e,"style",u),p&2&&H(e,"mobile",f[1])},d(f){f&&w(e)}}}function Kg(i){let e,t=gt(i[0]),n=[];for(let o=0;o<t.length;o+=1)n[o]=ud(ad(i,t,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-1h9p3m2")},m(o,l){C(o,e,l);for(let r=0;r<n.length;r+=1)n[r]&&n[r].m(e,null)},p(o,[l]){if(l&3){t=gt(o[0]);let r;for(r=0;r<t.length;r+=1){let a=ad(o,t,r);n[r]?n[r].p(a,l):(n[r]=ud(a),n[r].c(),n[r].m(e,null))}for(;r<n.length;r+=1)n[r].d(1);n.length=t.length}},i:_e,o:_e,d(o){o&&w(e),Ni(n,o)}}}function jg(i,e,t){let{videoEpisodes:n=[]}=e,{isMobile:o}=e;return i.$$set=l=>{"videoEpisodes"in l&&t(0,n=l.videoEpisodes),"isMobile"in l&&t(1,o=l.isMobile)},[n,o]}var va=class extends q{constructor(e){super(),U(this,e,jg,Kg,z,{videoEpisodes:0,isMobile:1},Ug)}},cd=va;function Wg(i){Ce(i,"svelte-1golz1y",".interactive-icons.svelte-1golz1y.svelte-1golz1y{position:absolute;width:calc(100% - 20px);top:-28px}.interactive-icons.mobile.svelte-1golz1y.svelte-1golz1y{top:-10px}.slider.svelte-1golz1y.svelte-1golz1y{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-1golz1y.svelte-1golz1y{cursor:default}.slider.svelte-1golz1y.svelte-1golz1y: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-1golz1y.svelte-1golz1y{position:absolute;width:100%;height:100%;border-radius:var(--slider-radius);overflow:hidden;background:var(--slider-bg)}.loaded.svelte-1golz1y.svelte-1golz1y{position:absolute;left:-100%;width:100%;height:100%;border-radius:var(--slider-radius);background:var(--slider-loaded-bg);transition:transform 0.2s}.filled.svelte-1golz1y.svelte-1golz1y{position:absolute;left:-100%;width:100%;height:100%;border-radius:var(--slider-radius);background-color:var(--slider-filled-bg)}.slider.square.svelte-1golz1y.svelte-1golz1y,.slider.square.svelte-1golz1y>.bars.svelte-1golz1y,.slider.square.svelte-1golz1y .loaded.svelte-1golz1y,.slider.square.svelte-1golz1y .filled.svelte-1golz1y{border-radius:unset}.filled.active-live.svelte-1golz1y.svelte-1golz1y{background-color:var(--slider-filled-active-live-bg)}.filled.ads.svelte-1golz1y.svelte-1golz1y{background-color:var(--slider-filled-ads)}.handleWrap.svelte-1golz1y.svelte-1golz1y{position:absolute;left:-100%;width:100%}.handle.svelte-1golz1y.svelte-1golz1y{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-1golz1y.svelte-1golz1y{background-color:var(--slider-filled-active-live-bg)}.slider.svelte-1golz1y:hover .handle.svelte-1golz1y,.slider-dragging.svelte-1golz1y .handle.svelte-1golz1y{visibility:visible;opacity:1;transform:scale(1)}.slider-dragging.svelte-1golz1y .handle.svelte-1golz1y{transform:scale(1.3)}.slider-vertical.svelte-1golz1y.svelte-1golz1y{position:absolute;left:-8px;top:-18px;transform-origin:0 0;transform:rotate(-90deg)}.slider.disabled.svelte-1golz1y.svelte-1golz1y{cursor:default;pointer-events:none;opacity:0.4}")}function fd(i,e,t){let n=i.slice();return n[48]=e[t],n}function dd(i){let e,t,n=gt(i[21]),o=[];for(let r=0;r<n.length;r+=1)o[r]=pd(fd(i,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-1golz1y"),H(e,"mobile",i[5]),H(e,"hidden",i[5]&&!i[20])},m(r,a){C(r,e,a);for(let s=0;s<o.length;s+=1)o[s]&&o[s].m(e,null);t=!0},p(r,a){if(a[0]&2097664){n=gt(r[21]);let s;for(s=0;s<n.length;s+=1){let u=fd(r,n,s);o[s]?(o[s].p(u,a),d(o[s],1)):(o[s]=pd(u),o[s].c(),d(o[s],1),o[s].m(e,null))}for(ue(),s=n.length;s<o.length;s+=1)l(s);ce()}(!t||a[0]&32)&&H(e,"mobile",r[5]),(!t||a[0]&1048608)&&H(e,"hidden",r[5]&&!r[20])},i(r){if(!t){for(let a=0;a<n.length;a+=1)d(o[a]);t=!0}},o(r){o=o.filter(Boolean);for(let a=0;a<o.length;a+=1)_(o[a]);t=!1},d(r){r&&w(e),Ni(o,r)}}}function md(i){let e,t;return e=new sd({props:{videoEpisode:i[48],disabled:i[9]}}),{c(){B(e.$$.fragment)},m(n,o){L(e,n,o),t=!0},p(n,o){let l={};o[0]&2097152&&(l.videoEpisode=n[48]),o[0]&512&&(l.disabled=n[9]),e.$set(l)},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){_(e.$$.fragment,n),t=!1},d(n){R(e,n)}}}function pd(i){let e,t,n=i[48].interactive&&md(i);return{c(){n&&n.c(),e=ot()},m(o,l){n&&n.m(o,l),C(o,e,l),t=!0},p(o,l){o[48].interactive?n?(n.p(o,l),l[0]&2097152&&d(n,1)):(n=md(o),n.c(),d(n,1),n.m(e.parentNode,e)):n&&(ue(),_(n,1,1,()=>{n=null}),ce())},i(o){t||(d(n),t=!0)},o(o){_(n),t=!1},d(o){o&&w(e),n&&n.d(o)}}}function Gg(i){let e,t,n,o,l,r;return{c(){e=P("div"),t=P("div"),o=O(),l=P("div"),c(t,"class","loaded svelte-1golz1y"),c(t,"style",n=`transform: translateX(${i[11]*100}%);`),c(l,"class","filled svelte-1golz1y"),c(l,"style",r=`transform: translateX(${i[12]*100}%);`),H(l,"active-live",i[4]),H(l,"ads",i[6]),c(e,"class","bars svelte-1golz1y")},m(a,s){C(a,e,s),m(e,t),m(e,o),m(e,l)},p(a,s){s[0]&2048&&n!==(n=`transform: translateX(${a[11]*100}%);`)&&c(t,"style",n),s[0]&4096&&r!==(r=`transform: translateX(${a[12]*100}%);`)&&c(l,"style",r),s[0]&16&&H(l,"active-live",a[4]),s[0]&64&&H(l,"ads",a[6])},i:_e,o:_e,d(a){a&&w(e)}}}function Qg(i){let e,t;return e=new cd({props:{videoEpisodes:i[21],isMobile:i[5]}}),{c(){B(e.$$.fragment)},m(n,o){L(e,n,o),t=!0},p(n,o){let l={};o[0]&2097152&&(l.videoEpisodes=n[21]),o[0]&32&&(l.isMobile=n[5]),e.$set(l)},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){_(e.$$.fragment,n),t=!1},d(n){R(e,n)}}}function Yg(i){let e,t,n,o,l,r,a,s,u,f,p,h,b,g=i[8]&&dd(i),S=[Qg,Gg],y=[];function T(k,v){return k[21].length?0:1}return n=T(i,[-1,-1]),o=y[n]=S[n](i),{c(){g&&g.c(),e=O(),t=P("div"),o.c(),l=O(),r=P("div"),a=P("div"),c(a,"class","handle svelte-1golz1y"),H(a,"active-live",i[4]),c(r,"class","handleWrap svelte-1golz1y"),c(r,"style",s=`transform: translateX(${i[13]*100}%);`),H(r,"hidden",i[10]),c(t,"class",u="slider "+i[0]+" svelte-1golz1y"),c(t,"aria-label",i[14]),c(t,"aria-valuemin",i[15]),c(t,"aria-valuemax",i[16]),c(t,"aria-valuenow",i[17]),c(t,"aria-valuetext",i[18]),c(t,"role","slider"),c(t,"tabindex","0"),c(t,"data-testid",f=i[1]??null),H(t,"disabled",i[9]),H(t,"slider-dragging",i[20]),H(t,"hidden",i[2]),H(t,"slider-vertical",i[3]),H(t,"no-handle",i[10]),H(t,"square",i[7])},m(k,v){g&&g.m(k,v),C(k,e,v),C(k,t,v),y[n].m(t,null),m(t,l),m(t,r),m(r,a),i[42](t),p=!0,h||(b=[pe(t,"pointerdown",kt(i[22])),pe(t,"pointermove",kt(i[23])),pe(t,"pointerup",kt(i[24])),pe(t,"pointerenter",kt(i[25])),pe(t,"pointerleave",kt(i[26])),pe(t,"click",rt(Mn)),pe(t,"wheel",i[27])],h=!0)},p(k,v){k[8]?g?(g.p(k,v),v[0]&256&&d(g,1)):(g=dd(k),g.c(),d(g,1),g.m(e.parentNode,e)):g&&(ue(),_(g,1,1,()=>{g=null}),ce());let I=n;n=T(k,v),n===I?y[n].p(k,v):(ue(),_(y[I],1,1,()=>{y[I]=null}),ce(),o=y[n],o?o.p(k,v):(o=y[n]=S[n](k),o.c()),d(o,1),o.m(t,l)),(!p||v[0]&16)&&H(a,"active-live",k[4]),(!p||v[0]&8192&&s!==(s=`transform: translateX(${k[13]*100}%);`))&&c(r,"style",s),(!p||v[0]&1024)&&H(r,"hidden",k[10]),(!p||v[0]&1&&u!==(u="slider "+k[0]+" svelte-1golz1y"))&&c(t,"class",u),(!p||v[0]&16384)&&c(t,"aria-label",k[14]),(!p||v[0]&32768)&&c(t,"aria-valuemin",k[15]),(!p||v[0]&65536)&&c(t,"aria-valuemax",k[16]),(!p||v[0]&131072)&&c(t,"aria-valuenow",k[17]),(!p||v[0]&262144)&&c(t,"aria-valuetext",k[18]),(!p||v[0]&2&&f!==(f=k[1]??null))&&c(t,"data-testid",f),(!p||v[0]&513)&&H(t,"disabled",k[9]),(!p||v[0]&1048577)&&H(t,"slider-dragging",k[20]),(!p||v[0]&5)&&H(t,"hidden",k[2]),(!p||v[0]&9)&&H(t,"slider-vertical",k[3]),(!p||v[0]&1025)&&H(t,"no-handle",k[10]),(!p||v[0]&129)&&H(t,"square",k[7])},i(k){p||(d(g),d(o),p=!0)},o(k){_(g),_(o),p=!1},d(k){k&&(w(e),w(t)),g&&g.d(k),y[n].d(),i[42](null),h=!1,tt(b)}}}function Zg(i,e,t){let n,o,{className:l=""}=e,{testId:r=void 0}=e,{isHidden:a=!1}=e,{isVertical:s=!1}=e,{isActiveLive:u=!1}=e,{isMobile:f=!1}=e,{isAds:p=!1}=e,{squareBorders:h=!1}=e,{videoEpisodes:b=[]}=e,{withWheelHandler:g=!1}=e,{isInteractive:S=!1}=e,{disabled:y=!1}=e,{hideHandel:T=!1}=e,k,v,{onPointerDown:I=Mn}=e,{onHandleMove:W=Mn}=e,{onPointerUp:Q=Mn}=e,{onPointerEnter:G=Mn}=e,{onPointerMove:le=Mn}=e,{onPointerLeave:ae=Mn}=e,{onWheelUp:V=Mn}=e,{onWheelDown:A=Mn}=e,{onWheelLeft:$=Mn}=e,{onWheelRight:J=Mn}=e,{loadedProgress:x=0}=e,{filledProgress:N=0}=e,{handleProgress:te=0}=e,{ariaLabel:E=""}=e,{ariaValueMin:Y=void 0}=e,{ariaValueMax:Le=void 0}=e,{ariaValueNow:je=void 0}=e,{ariaValueText:qe=""}=e,Je=Tt(),Ne=!1,we;function X(oe){if(Ne)return;t(20,Ne=!0),v=k.getBoundingClientRect();let Se=Re(oe.clientX,oe.clientY);I(Se),k.setPointerCapture(oe.pointerId)}function ve(oe){let Se=Re(oe.clientX,oe.clientY),fe=Ue(oe.clientX);le(Se,fe,v.width),Ne&&W(Se)}function Oe(oe){if(!Ne)return;t(20,Ne=!1);let Se=Re(oe.clientX,oe.clientY);Q(Se)}function Xe(oe){v=k.getBoundingClientRect();let Se=Re(oe.clientX,oe.clientY),fe=Ue(oe.clientX);G(Se,fe,v.width)}function xe(){ae()}function ke(oe){g&&(oe.preventDefault(),oe.deltaY<0?V():oe.deltaY>0?A():oe.deltaX>0?J():$())}function Re(oe,Se){return s?Math.max(0,Math.min(1,(v.height-(Se-v.top))/v.height)):Math.min(Math.max(oe-v.x,0),v.width)/v.width}function Ue(oe){return Math.min(Math.max(oe-v.x,0),v.width)}function We(oe,Se){let fe=Je.features.episodesClustering&&!S?Je.episodeMinWidthPc:0,Ae=[],Ze=0,ut=0,ct=0;for(let mt=1;mt<b.length;mt++)ut=b[mt].time/we*100,ut-Ze>fe&&(Ae.push({from:Ze,width:Math.max(0,ut-Ze),loadedWidth:Math.max(0,Math.min(ut,oe)-Ze),filledWidth:Math.max(0,Math.min(ut,Se)-Ze),interactive:b[mt-1].interactive,completed:b[mt-1].completed}),Ze=b[mt].time/we*100,ct++);let at={from:Ze,width:Math.max(0,100-Ze),loadedWidth:Math.max(0,Math.min(oe,100)-Ze),filledWidth:Math.max(0,Math.min(Se,100)-Ze),interactive:b[ct].interactive,completed:b[ct].completed};100-Ze<fe?(ct-=1,Ae[ct].width+=100-Ze,Ae[ct].loadedWidth+=Math.max(0,Math.min(oe,100)-Ze),Ae[ct].filledWidth+=Math.max(0,Math.min(Se,100)-Ze)):Ae[ct]=at;let ye=b[0].time;if(ye!==0){let mt=ye/we*100;Ae.unshift({from:0,width:mt,loadedWidth:Math.min(mt,oe),filledWidth:Math.min(mt,Se)})}return Ae}function se(oe){he[oe?"unshift":"push"](()=>{k=oe,t(19,k)})}return i.$$set=oe=>{"className"in oe&&t(0,l=oe.className),"testId"in oe&&t(1,r=oe.testId),"isHidden"in oe&&t(2,a=oe.isHidden),"isVertical"in oe&&t(3,s=oe.isVertical),"isActiveLive"in oe&&t(4,u=oe.isActiveLive),"isMobile"in oe&&t(5,f=oe.isMobile),"isAds"in oe&&t(6,p=oe.isAds),"squareBorders"in oe&&t(7,h=oe.squareBorders),"videoEpisodes"in oe&&t(28,b=oe.videoEpisodes),"withWheelHandler"in oe&&t(29,g=oe.withWheelHandler),"isInteractive"in oe&&t(8,S=oe.isInteractive),"disabled"in oe&&t(9,y=oe.disabled),"hideHandel"in oe&&t(10,T=oe.hideHandel),"onPointerDown"in oe&&t(30,I=oe.onPointerDown),"onHandleMove"in oe&&t(31,W=oe.onHandleMove),"onPointerUp"in oe&&t(32,Q=oe.onPointerUp),"onPointerEnter"in oe&&t(33,G=oe.onPointerEnter),"onPointerMove"in oe&&t(34,le=oe.onPointerMove),"onPointerLeave"in oe&&t(35,ae=oe.onPointerLeave),"onWheelUp"in oe&&t(36,V=oe.onWheelUp),"onWheelDown"in oe&&t(37,A=oe.onWheelDown),"onWheelLeft"in oe&&t(38,$=oe.onWheelLeft),"onWheelRight"in oe&&t(39,J=oe.onWheelRight),"loadedProgress"in oe&&t(11,x=oe.loadedProgress),"filledProgress"in oe&&t(12,N=oe.filledProgress),"handleProgress"in oe&&t(13,te=oe.handleProgress),"ariaLabel"in oe&&t(14,E=oe.ariaLabel),"ariaValueMin"in oe&&t(15,Y=oe.ariaValueMin),"ariaValueMax"in oe&&t(16,Le=oe.ariaValueMax),"ariaValueNow"in oe&&t(17,je=oe.ariaValueNow),"ariaValueText"in oe&&t(18,qe=oe.ariaValueText)},i.$$.update=()=>{if(i.$$.dirty[0]&65536)e:t(40,we=Le??0);if(i.$$.dirty[0]&268435456|i.$$.dirty[1]&512)e:t(41,n=b[b.length-1]?.time<we);if(i.$$.dirty[0]&268441600|i.$$.dirty[1]&1536)e:t(21,o=b.length&&n&&we?We(x*100,N*100):[])},[l,r,a,s,u,f,p,h,S,y,T,x,N,te,E,Y,Le,je,qe,k,Ne,o,X,ve,Oe,Xe,xe,ke,b,g,I,W,Q,G,le,ae,V,A,$,J,we,n,se]}var ya=class extends q{constructor(e){super(),U(this,e,Zg,Yg,z,{className:0,testId:1,isHidden:2,isVertical:3,isActiveLive:4,isMobile:5,isAds:6,squareBorders:7,videoEpisodes:28,withWheelHandler:29,isInteractive:8,disabled:9,hideHandel:10,onPointerDown:30,onHandleMove:31,onPointerUp:32,onPointerEnter:33,onPointerMove:34,onPointerLeave:35,onWheelUp:36,onWheelDown:37,onWheelLeft:38,onWheelRight:39,loadedProgress:11,filledProgress:12,handleProgress:13,ariaLabel:14,ariaValueMin:15,ariaValueMax:16,ariaValueNow:17,ariaValueText:18},Wg,[-1,-1])}},Qo=ya;var _n=(i,e)=>ho[i]>=ho[e],_d=(i,e)=>ho[i]<ho[e],mr=(i,e)=>ho[i]<=ho[e],hd=i=>i>699?"xl":i>599?"l":i>509?"m":i>320?"s":"xs";function Xg(i){Ce(i,"svelte-1l78lz9",".volumeBar-container.svelte-1l78lz9{display:flex;align-items:center}.volumeBar-container.vertical.svelte-1l78lz9,.vertical.svelte-1l78lz9 .tooltip-wrapper,.vertical.svelte-1l78lz9 .btn{width:40px}.volumeBar.svelte-1l78lz9{display:flex;align-items:center;margin:0 8px;position:relative;width:70px}.volumeBar-slider-vertical{width:50px !important}.volumeBar-vertical.svelte-1l78lz9{padding:0 8px 0 0;width:0}")}function Jg(i){let e,t;return e=new So({props:{volume:i[3],muted:i[1]}}),{c(){B(e.$$.fragment)},m(n,o){L(e,n,o),t=!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){t||(d(e.$$.fragment,n),t=!0)},o(n){_(e.$$.fragment,n),t=!1},d(n){R(e,n)}}}function xg(i){let e,t;return e=new pt({props:{className:"btn-full-opacity",disabled:i[9],testId:i[2]?"btn-volume-vertical":"btn-volume-horizontal",ariaLabel:i[7],click:i[0],ariaKeyShortCut:Dn.KeyM,$$slots:{default:[Jg]},$$scope:{ctx:i}}}),{c(){B(e.$$.fragment)},m(n,o){L(e,n,o),t=!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){t||(d(e.$$.fragment,n),t=!0)},o(n){_(e.$$.fragment,n),t=!1},d(n){R(e,n)}}}function gd(i){let e,t,n;return t=new Qo({props:{className:i[2]?"volumeBar-slider-vertical":"",isHidden:i[2]&&!i[5],isVertical:i[2],withWheelHandler:!0,onWheelUp:i[15],onWheelDown:i[16],onPointerDown:i[14],onHandleMove:i[17],onPointerUp:i[18],onPointerEnter:i[2]?i[19]:no,onPointerLeave:i[2]?i[20]:no,ariaLabel:"\u041F\u043E\u043B\u0437\u0443\u043D\u043E\u043A \u0433\u0440\u043E\u043C\u043A\u043E\u0441\u0442\u0438",ariaValueMin:0,ariaValueMax:100,ariaValueNow:Math.round(i[8]*100),ariaValueText:`${Math.round(i[8]*100)}%`,filledProgress:i[8],handleProgress:i[8],testId:i[2]?"volume-slider-vertical":"volume-slider"}}),{c(){e=P("div"),B(t.$$.fragment),c(e,"class","volumeBar svelte-1l78lz9"),H(e,"volumeBar-vertical",i[2])},m(o,l){C(o,e,l),L(t,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]:no),l[0]&4&&(r.onPointerLeave=o[2]?o[20]:no),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"),t.$set(r),(!n||l[0]&4)&&H(e,"volumeBar-vertical",o[2])},i(o){n||(d(t.$$.fragment,o),n=!0)},o(o){_(t.$$.fragment,o),n=!1},d(o){o&&w(e),R(t)}}}function $g(i){let e,t,n,o,l,r;t=new fr({props:{content:i[6],translateY:-18,$$slots:{default:[xg]},$$scope:{ctx:i}}});let a=i[4]&&gd(i);return{c(){e=P("div"),B(t.$$.fragment),n=O(),a&&a.c(),c(e,"class","volumeBar-container svelte-1l78lz9"),H(e,"vertical",i[2])},m(s,u){C(s,e,u),L(t,e,null),m(e,n),a&&a.m(e,null),o=!0,l||(r=[pe(e,"mouseenter",function(){Ii(i[2]?i[21]:no)&&(i[2]?i[21]:no).apply(this,arguments)}),pe(e,"mouseleave",function(){Ii(i[2]?i[22]:no)&&(i[2]?i[22]:no).apply(this,arguments)}),pe(e,"wheel",kt(i[23]))],l=!0)},p(s,u){i=s;let f={};u[0]&64&&(f.content=i[6]),u[0]&655|u[1]&32&&(f.$$scope={dirty:u,ctx:i}),t.$set(f),i[4]?a?(a.p(i,u),u[0]&16&&d(a,1)):(a=gd(i),a.c(),d(a,1),a.m(e,null)):a&&(ue(),_(a,1,1,()=>{a=null}),ce()),(!o||u[0]&4)&&H(e,"vertical",i[2])},i(s){o||(d(t.$$.fragment,s),d(a),o=!0)},o(s){_(t.$$.fragment,s),_(a),o=!1},d(s){s&&w(e),R(t),a&&a.d(),l=!1,tt(r)}}}function eb(i,e,t){let n,o,l,r,{click:a}=e,s=et(),u=Tt(),f=s.state.volume$;F(i,f,Ne=>t(3,n=Ne));let p=s.state.muted$;F(i,p,Ne=>t(25,r=Ne));let h=s.actions.internal.setVolume,b=s.ui.currentGridType$;F(i,b,Ne=>t(24,l=Ne));let g=s.callbacks?.onAudioDoesNotExistHint,S=s.callbacks?.onAudioDisabledHint,y=s.state.isAudioAvailable$;F(i,y,Ne=>t(4,o=Ne));let T=s.state.isAudioDisabled,k=!1,v,I,W,Q,G,le,ae=1,V=!1,A=!1;function $(Ne){ae=n,h(Ne)}function J(){ir(s,n,u.controls.volumeStepWheel)}function x(){nr(s,n,u.controls.volumeStepWheel)}function N(Ne){h(Ne)}function te(Ne){let we=Ne;h(we,we===0?ae:we)}function E(){V=!0}function Y(){V=!1,qe()}function Le(){clearTimeout(v),t(5,k=!0)}function je(){qe()}function qe(){v=window.setTimeout(()=>{V||t(5,k=!1)},u.controls.volumeBarTimeout)}function Je(Ne){Ne.deltaY<0?J():Ne.deltaY>0&&x()}return i.$$set=Ne=>{"click"in Ne&&t(0,a=Ne.click)},i.$$.update=()=>{if(i.$$.dirty[0]&33554448)e:t(1,Q=!o||r);if(i.$$.dirty[0]&16777216)e:t(2,G=mr(l,"s"));if(i.$$.dirty[0]&6)e:G?t(6,I=""):t(6,I=Q?j("tooltip_volume"):j("tooltip_volume_muted")),t(7,W=Q?j("tooltip_volume"):j("tooltip_volume_muted"));if(i.$$.dirty[0]&10)e:t(8,le=Q?0:n);if(i.$$.dirty[0]&16)e:t(9,A=T&&!S||!o&&!g)},[a,Q,G,n,o,k,I,W,le,A,f,p,b,y,$,J,x,N,te,E,Y,Le,je,Je,l,r]}var wa=class extends q{constructor(e){super(),U(this,e,eb,$g,z,{click:0},Xg,[-1,-1])}},bd=wa;import{noop as rb}from"@vkontakte/videoplayer-shared";function tb(i){let e,t,n,o,l,r=i[2].default,a=Pe(r,i,i[1],null),s=[{xmlns:"http://www.w3.org/2000/svg"},{width:"24"},{height:"24"},{"aria-hidden":"true"},{role:"img"},i[0]],u={};for(let f=0;f<s.length;f+=1)u=ne(u,s[f]);return{c(){e=D("svg"),a&&a.c(),t=D("g"),n=D("path"),o=D("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(t,"fill","#fff"),c(t,"fill-rule","evenodd"),be(e,u)},m(f,p){C(f,e,p),a&&a.m(e,null),m(e,t),m(t,n),m(t,o),l=!0},p(f,[p]){a&&a.p&&(!l||p&2)&&Te(a,r,f,f[1],l?Ie(r,f[1],p,null):Ee(f[1]),null),be(e,u=Ve(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&&w(e),a&&a.d(f)}}}function ib(i,e,t){let{$$slots:n={},$$scope:o}=e;return i.$$set=l=>{t(0,e=ne(ne({},e),ge(l))),"$$scope"in l&&t(1,o=l.$$scope)},e=ge(e),[e,o,n]}var ka=class extends q{constructor(e){super(),U(this,e,ib,tb,z,{})}},vd=ka;function nb(i){Ce(i,"svelte-17t966y",'svg[data-testid="close-fullscreen-icon"] ._enter,svg[data-testid="open-fullscreen-icon"] ._exit{visibility:hidden;opacity:0}')}function ob(i){let e,t;return e=new vd({props:{"data-testid":i[0]?"close-fullscreen-icon":"open-fullscreen-icon"}}),{c(){B(e.$$.fragment)},m(n,o){L(e,n,o),t=!0},p(n,[o]){let l={};o&1&&(l["data-testid"]=n[0]?"close-fullscreen-icon":"open-fullscreen-icon"),e.$set(l)},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){_(e.$$.fragment,n),t=!1},d(n){R(e,n)}}}function lb(i,e,t){let{isFullscreen:n=!1}=e;return i.$$set=o=>{"isFullscreen"in o&&t(0,n=o.isFullscreen)},[n]}var Ca=class extends q{constructor(e){super(),U(this,e,lb,ob,z,{isFullscreen:0},nb)}},yd=Ca;function sb(i){let e,t;return e=new yd({props:{isFullscreen:i[0]}}),{c(){B(e.$$.fragment)},m(n,o){L(e,n,o),t=!0},p(n,o){let l={};o&1&&(l.isFullscreen=n[0]),e.$set(l)},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){_(e.$$.fragment,n),t=!1},d(n){R(e,n)}}}function ab(i){let e,t;return e=new pt({props:{testId:"btn-fullscreen",ariaLabel:i[2],click:i[1],ariaKeyShortCut:Dn.KeyF,$$slots:{default:[sb]},$$scope:{ctx:i}}}),{c(){B(e.$$.fragment)},m(n,o){L(e,n,o),t=!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){t||(d(e.$$.fragment,n),t=!0)},o(n){_(e.$$.fragment,n),t=!1},d(n){R(e,n)}}}function ub(i,e,t){let{isFullscreen:n=!1}=e,{click:o=rb}=e,l;return i.$$set=r=>{"isFullscreen"in r&&t(0,n=r.isFullscreen),"click"in r&&t(1,o=r.click)},i.$$.update=()=>{if(i.$$.dirty&1)e:t(2,l=n?j("tooltip_fullscreen_on"):j("tooltip_fullscreen_off"))},[n,o,l]}var Sa=class extends q{constructor(e){super(),U(this,e,ub,ab,z,{isFullscreen:0,click:1})}},pr=Sa;function cb(i){let e,t,n,o=i[2].default,l=Pe(o,i,i[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"},i[0]],a={};for(let s=0;s<r.length;s+=1)a=ne(a,r[s]);return{c(){e=D("svg"),l&&l.c(),t=D("path"),c(t,"fill","#fff"),c(t,"d","M17.671 10.923c.82.483.82 1.67 0 2.154l-8.787 5.175A1.25 1.25 0 0 1 7 17.174V6.826a1.25 1.25 0 0 1 1.884-1.078z"),be(e,a)},m(s,u){C(s,e,u),l&&l.m(e,null),m(e,t),n=!0},p(s,[u]){l&&l.p&&(!n||u&2)&&Te(l,o,s,s[1],n?Ie(o,s[1],u,null):Ee(s[1]),null),be(e,a=Ve(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&&w(e),l&&l.d(s)}}}function fb(i,e,t){let{$$slots:n={},$$scope:o}=e;return i.$$set=l=>{t(0,e=ne(ne({},e),ge(l))),"$$scope"in l&&t(1,o=l.$$scope)},e=ge(e),[e,o,n]}var Pa=class extends q{constructor(e){super(),U(this,e,fb,cb,z,{})}},Yo=Pa;function db(i){let e,t,n,o=i[2].default,l=Pe(o,i,i[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"},i[0]],a={};for(let s=0;s<r.length;s+=1)a=ne(a,r[s]);return{c(){e=D("svg"),l&&l.c(),t=D("path"),c(t,"fill","#fff"),c(t,"d","M8.712 5c.448 0 .61.047.774.134a.9.9 0 0 1 .38.38c.087.164.134.326.134.774v11.424c0 .448-.047.61-.134.774a.9.9 0 0 1-.38.38c-.164.087-.326.134-.774.134H6.788c-.448 0-.61-.047-.774-.134a.9.9 0 0 1-.38-.38c-.087-.164-.134-.326-.134-.774V6.288c0-.448.047-.61.134-.774a.9.9 0 0 1 .38-.38C6.178 5.047 6.34 5 6.788 5zm8 0c.448 0 .61.047.774.134a.9.9 0 0 1 .38.38c.087.164.134.326.134.774v11.424c0 .448-.047.61-.134.774a.9.9 0 0 1-.38.38c-.164.087-.326.134-.774.134h-1.924c-.448 0-.61-.047-.774-.134a.9.9 0 0 1-.38-.38c-.087-.164-.134-.326-.134-.774V6.288c0-.448.047-.61.134-.774a.9.9 0 0 1 .38-.38c.164-.087.326-.134.774-.134z"),be(e,a)},m(s,u){C(s,e,u),l&&l.m(e,null),m(e,t),n=!0},p(s,[u]){l&&l.p&&(!n||u&2)&&Te(l,o,s,s[1],n?Ie(o,s[1],u,null):Ee(s[1]),null),be(e,a=Ve(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&&w(e),l&&l.d(s)}}}function mb(i,e,t){let{$$slots:n={},$$scope:o}=e;return i.$$set=l=>{t(0,e=ne(ne({},e),ge(l))),"$$scope"in l&&t(1,o=l.$$scope)},e=ge(e),[e,o,n]}var Ia=class extends q{constructor(e){super(),U(this,e,mb,db,z,{})}},_r=Ia;import{noop as pb}from"@vkontakte/videoplayer-shared";function _b(i){Ce(i,"svelte-1ot3duq",".mobile.svelte-1ot3duq{position:relative;display:flex;align-items:center;justify-content:center}.mobile.svelte-1ot3duq svg{transform:scale(2)}.icon-background-mobile.svelte-1ot3duq{position:absolute;top:16px;left:16px;border-radius:var(--big-play-radius);background-color:var(--big-play-bg-color);width:calc(100% - 32px);height:calc(100% - 32px)}")}function wd(i){let e;return{c(){e=P("div"),c(e,"class","icon-background-mobile svelte-1ot3duq")},m(t,n){C(t,e,n)},d(t){t&&w(e)}}}function hb(i){let e,t,n,o,l=i[1]&&wd(i);var r=i[8];function a(s){return{}}return r&&(n=un(r,a(i))),{c(){l&&l.c(),e=O(),t=P("div"),n&&B(n.$$.fragment),c(t,"class","svelte-1ot3duq"),H(t,"mobile",i[1])},m(s,u){l&&l.m(s,u),C(s,e,u),C(s,t,u),n&&L(n,t,null),o=!0},p(s,u){if(s[1]?l||(l=wd(s),l.c(),l.m(e.parentNode,e)):l&&(l.d(1),l=null),u&256&&r!==(r=s[8])){if(n){ue();let f=n;_(f.$$.fragment,1,0,()=>{R(f,1)}),ce()}r?(n=un(r,a(s)),B(n.$$.fragment),d(n.$$.fragment,1),L(n,t,null)):n=null}(!o||u&2)&&H(t,"mobile",s[1])},i(s){o||(n&&d(n.$$.fragment,s),o=!0)},o(s){n&&_(n.$$.fragment,s),o=!1},d(s){s&&(w(e),w(t)),l&&l.d(s),n&&R(n)}}}function gb(i){let e,t,n;function o(r){i[13](r)}let l={className:(i[1]?"btn-m--play":"")+" "+i[3],testId:"btn-play",click:i[5]?i[6]:i[4],disabled:i[2],ariaLabel:i[7],ariaKeyShortCut:Dn.KeyK,$$slots:{default:[hb]},$$scope:{ctx:i}};return i[0]!==void 0&&(l.ref=i[0]),e=new pt({props:l}),he.push(()=>He(e,"ref",o)),{c(){B(e.$$.fragment)},m(r,a){L(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}),!t&&a&1&&(t=!0,s.ref=r[0],Fe(()=>t=!1)),e.$set(s)},i(r){n||(d(e.$$.fragment,r),n=!0)},o(r){_(e.$$.fragment,r),n=!1},d(r){R(e,r)}}}function bb(i,e,t){let n,o,{fakeIsPlaying$:l}=yn();F(i,l,k=>t(12,o=k));let{ref:r=void 0}=e,{isMobile:a=!1}=e,{isPlaying:s=!1}=e,{disabled:u=!1}=e,{className:f=""}=e,{click:p=pb}=e,{toggle:h}=l,b,g,S,y;function T(k){r=k,t(0,r)}i.$$set=k=>{"ref"in k&&t(0,r=k.ref),"isMobile"in k&&t(1,a=k.isMobile),"isPlaying"in k&&t(10,s=k.isPlaying),"disabled"in k&&t(2,u=k.disabled),"className"in k&&t(3,f=k.className),"click"in k&&t(4,p=k.click)},i.$$.update=()=>{if(i.$$.dirty&4096)e:t(5,g=o!==null);if(i.$$.dirty&5152)e:t(11,S=g?o:s);if(i.$$.dirty&2048)e:t(7,y=S?j("tooltip_pause"):j("tooltip_play"));if(i.$$.dirty&2048)e:t(8,n=S?_r:Yo)};e:t(6,b=h);return[r,a,u,f,p,g,b,y,n,l,s,S,o,T]}var Ta=class extends q{constructor(e){super(),U(this,e,bb,gb,z,{ref:0,isMobile:1,isPlaying:10,disabled:2,className:3,click:4},_b)}},ml=Ta;function vb(i){let e,t,n,o=i[2].default,l=Pe(o,i,i[1],null),r=[{xmlns:"http://www.w3.org/2000/svg"},{width:"26"},{height:"24"},{fill:"none"},{"aria-hidden":"true"},{role:"img"},i[0]],a={};for(let s=0;s<r.length;s+=1)a=ne(a,r[s]);return{c(){e=D("svg"),l&&l.c(),t=D("path"),c(t,"fill","#fff"),c(t,"d","M16 10.835V7.5a1 1 0 1 1 2 0v9a1 1 0 0 1-2 0v-3.335l-8.149 4.67C7.03 18.304 6 17.715 6 16.772V7.227c0-.943 1.029-1.533 1.851-1.061L16 10.834z"),be(e,a)},m(s,u){C(s,e,u),l&&l.m(e,null),m(e,t),n=!0},p(s,[u]){l&&l.p&&(!n||u&2)&&Te(l,o,s,s[1],n?Ie(o,s[1],u,null):Ee(s[1]),null),be(e,a=Ve(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&&w(e),l&&l.d(s)}}}function yb(i,e,t){let{$$slots:n={},$$scope:o}=e;return i.$$set=l=>{t(0,e=ne(ne({},e),ge(l))),"$$scope"in l&&t(1,o=l.$$scope)},e=ge(e),[e,o,n]}var Ea=class extends q{constructor(e){super(),U(this,e,yb,vb,z,{})}},kd=Ea;function wb(i){let e,t;return e=new kd({props:{style:i[1],"data-testid":i[0]?"prev-icon":"next-icon"}}),{c(){B(e.$$.fragment)},m(n,o){L(e,n,o),t=!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){t||(d(e.$$.fragment,n),t=!0)},o(n){_(e.$$.fragment,n),t=!1},d(n){R(e,n)}}}function kb(i,e,t){let{isPrev:n=!1}=e,{isMobile:o=!1}=e,l;return i.$$set=r=>{"isPrev"in r&&t(0,n=r.isPrev),"isMobile"in r&&t(2,o=r.isMobile)},i.$$.update=()=>{if(i.$$.dirty&5)e:n&&o?t(1,l="transform: scaleX(-1) scale(1.3333);"):n?t(1,l="transform: scaleX(-1);"):o?t(1,l="transform: scale(1.3333);"):t(1,l=void 0)},[n,l,o]}var Aa=class extends q{constructor(e){super(),U(this,e,kb,wb,z,{isPrev:0,isMobile:2})}},Cd=Aa;function Cb(i){let e,t;return e=new Cd({props:{isMobile:i[1],isPrev:i[3]==="prev"}}),{c(){B(e.$$.fragment)},m(n,o){L(e,n,o),t=!0},p(n,o){let l={};o&2&&(l.isMobile=n[1]),o&8&&(l.isPrev=n[3]==="prev"),e.$set(l)},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){_(e.$$.fragment,n),t=!1},d(n){R(e,n)}}}function Sb(i){let e,t,n;function o(r){i[6](r)}let l={testId:"btn-"+i[3],disabled:i[2],ariaLabel:i[5],click:i[4],$$slots:{default:[Cb]},$$scope:{ctx:i}};return i[0]!==void 0&&(l.ref=i[0]),e=new pt({props:l}),he.push(()=>He(e,"ref",o)),{c(){B(e.$$.fragment)},m(r,a){L(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}),!t&&a&1&&(t=!0,s.ref=r[0],Fe(()=>t=!1)),e.$set(s)},i(r){n||(d(e.$$.fragment,r),n=!0)},o(r){_(e.$$.fragment,r),n=!1},d(r){R(e,r)}}}function Pb(i,e,t){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,t(0,n)}return i.$$set=f=>{"ref"in f&&t(0,n=f.ref),"isMobile"in f&&t(1,o=f.isMobile),"disabled"in f&&t(2,l=f.disabled),"type"in f&&t(3,r=f.type),"click"in f&&t(4,a=f.click)},i.$$.update=()=>{if(i.$$.dirty&8)e:t(5,s=r==="prev"?j("tooltip_previous"):j("tooltip_next"))},[n,o,l,r,a,s,u]}var Ma=class extends q{constructor(e){super(),U(this,e,Pb,Sb,z,{ref:0,isMobile:1,disabled:2,type:3,click:4})}},Zo=Ma;function Ib(i){let e,t,n,o=i[2].default,l=Pe(o,i,i[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"},i[0]],a={};for(let s=0;s<r.length;s+=1)a=ne(a,r[s]);return{c(){e=D("svg"),l&&l.c(),t=D("path"),c(t,"fill","#fff"),c(t,"fill-rule","evenodd"),c(t,"d","M4.265 4.265C3 5.531 3 7.567 3 11.64v.72c0 4.073 0 6.11 1.265 7.375C5.531 21 7.567 21 11.64 21h.72c4.073 0 6.11 0 7.375-1.265C21 18.469 21 16.433 21 12.36v-.72c0-4.073 0-6.11-1.265-7.375C18.469 3 16.433 3 12.36 3h-.72C7.567 3 5.53 3 4.265 4.265M6 8.5c.096 4.682 2.556 7.5 6.61 7.5h.235v-2.679c1.476.15 2.577 1.254 3.026 2.679H18c-.578-2.132-2.075-3.31-3.005-3.76.93-.558 2.246-1.908 2.556-3.74h-1.937c-.406 1.49-1.615 2.84-2.77 2.968V8.5h-1.968v5.197c-1.197-.3-2.759-1.757-2.823-5.197z"),c(t,"clip-rule","evenodd"),be(e,a)},m(s,u){C(s,e,u),l&&l.m(e,null),m(e,t),n=!0},p(s,[u]){l&&l.p&&(!n||u&2)&&Te(l,o,s,s[1],n?Ie(o,s[1],u,null):Ee(s[1]),null),be(e,a=Ve(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&&w(e),l&&l.d(s)}}}function Tb(i,e,t){let{$$slots:n={},$$scope:o}=e;return i.$$set=l=>{t(0,e=ne(ne({},e),ge(l))),"$$scope"in l&&t(1,o=l.$$scope)},e=ge(e),[e,o,n]}var Va=class extends q{constructor(e){super(),U(this,e,Tb,Ib,z,{})}},Sd=Va;function Eb(i){let e,t,n,o,l,r,a=i[2].default,s=Pe(a,i,i[1],null),u=[{xmlns:"http://www.w3.org/2000/svg"},{width:"95"},{height:"24"},{fill:"none"},{"aria-hidden":"true"},{role:"img"},i[0]],f={};for(let p=0;p<u.length;p+=1)f=ne(f,u[p]);return{c(){e=D("svg"),s&&s.c(),t=D("path"),n=D("path"),o=D("path"),l=D("path"),c(t,"fill","#fff"),c(t,"d","M32.55 17.042h2.494L38.707 7h-1.81l-2.936 8.276h-.286L30.84 7H29zM48.075 17.042l-4.619-5.199L47.718 7h-2.11l-3.563 4.088h-.413V7h-1.71v10.042h1.71V12.74h.427l3.764 4.302z"),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"),be(e,f)},m(p,h){C(p,e,h),s&&s.m(e,null),m(e,t),m(e,n),m(e,o),m(e,l),r=!0},p(p,[h]){s&&s.p&&(!r||h&2)&&Te(s,a,p,p[1],r?Ie(a,p[1],h,null):Ee(p[1]),null),be(e,f=Ve(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&&w(e),s&&s.d(p)}}}function Ab(i,e,t){let{$$slots:n={},$$scope:o}=e;return i.$$set=l=>{t(0,e=ne(ne({},e),ge(l))),"$$scope"in l&&t(1,o=l.$$scope)},e=ge(e),[e,o,n]}var La=class extends q{constructor(e){super(),U(this,e,Ab,Eb,z,{})}},Pd=La;function Mb(i){Ce(i,"svelte-1nhjml",'svg[data-testid="vk-video-logo-icon--short"] ._ru,svg[data-testid="vk-video-logo-icon--short"] ._en,svg[data-testid="vk-video-logo-icon"] ._en,svg[data-testid="vk-video-logo-icon--en"] ._ru{visibility:hidden;opacity:0}')}function Vb(i){let e,t;return e=new Pd({props:{width:i[0],height:"24",viewBox:"0 0 "+(i[0]+1)+" 24","data-testid":i[1]}}),{c(){B(e.$$.fragment)},m(n,o){L(e,n,o),t=!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){t||(d(e.$$.fragment,n),t=!0)},o(n){_(e.$$.fragment,n),t=!1},d(n){R(e,n)}}}var Lb="vk-video-logo-icon--short";function Rb(i,e,t){let{short:n=!1}=e,{isCyrillic:o=!0}=e,l,r;return i.$$set=a=>{"short"in a&&t(2,n=a.short),"isCyrillic"in a&&t(3,o=a.isCyrillic)},i.$$.update=()=>{if(i.$$.dirty&12)e:t(0,l=n?21:95),t(1,r=n?Lb:"vk-video-logo-icon"),!o&&!n&&(t(0,l=91),t(1,r="vk-video-logo-icon--en"))},[l,r,n,o]}var Ra=class extends q{constructor(e){super(),U(this,e,Rb,Vb,z,{short:2,isCyrillic:3},Mb)}},Id=Ra;import{InterfaceLanguage as Db}from"@vkontakte/videoplayer-shared";function Nb(i){let e,t;return e=new Sd({}),{c(){B(e.$$.fragment)},m(n,o){L(e,n,o),t=!0},p:_e,i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){_(e.$$.fragment,n),t=!1},d(n){R(e,n)}}}function Ob(i){let e,t;return e=new Id({props:{short:i[4],isCyrillic:i[5]}}),{c(){B(e.$$.fragment)},m(n,o){L(e,n,o),t=!0},p(n,o){let l={};o&16&&(l.short=n[4]),o&32&&(l.isCyrillic=n[5]),e.$set(l)},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){_(e.$$.fragment,n),t=!1},d(n){R(e,n)}}}function Fb(i){let e,t,n,o,l=[Ob,Nb],r=[];function a(s,u){return s[2]?0:1}return e=a(i,-1),t=r[e]=l[e](i),{c(){t.c(),n=ot()},m(s,u){r[e].m(s,u),C(s,n,u),o=!0},p(s,u){let f=e;e=a(s,u),e===f?r[e].p(s,u):(ue(),_(r[f],1,1,()=>{r[f]=null}),ce(),t=r[e],t?t.p(s,u):(t=r[e]=l[e](s),t.c()),d(t,1),t.m(n.parentNode,n))},i(s){o||(d(t),o=!0)},o(s){_(t),o=!1},d(s){s&&w(n),r[e].d(s)}}}function Hb(i){let e,t,n;function o(r){i[15](r)}let l={className:"btn-full-opacity",disabled:!i[1],click:i[9],testId:i[2]?"btn-vk-video-logo":"btn-vk-logo",ariaLabel:i[3],$$slots:{default:[Fb]},$$scope:{ctx:i}};return i[0]!==void 0&&(l.ref=i[0]),e=new pt({props:l}),he.push(()=>He(e,"ref",o)),{c(){B(e.$$.fragment)},m(r,a){L(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&262196&&(s.$$scope={dirty:a,ctx:r}),!t&&a&1&&(t=!0,s.ref=r[0],Fe(()=>t=!1)),e.$set(s)},i(r){n||(d(e.$$.fragment,r),n=!0)},o(r){_(e.$$.fragment,r),n=!1},d(r){R(e,r)}}}function zb(i,e,t){let n,o,l,r,{ref:a=void 0}=e,{logoClickable:s=!1}=e,{targetUrl:u=""}=e,{click:f}=e,p=Tt(),h=et(),b=h.ui.currentGridType$;F(i,b,W=>t(13,l=W));let g=h.ui.isMobile;F(i,g,W=>t(14,r=W));let S=h.interfaceLanguage$;F(i,S,W=>t(12,o=W));let y,T,k,v=()=>{f(),h.callbacks?.onLogoClicked?.(),u&&window.open(u,"_blank")};function I(W){a=W,t(0,a)}i.$$set=W=>{"ref"in W&&t(0,a=W.ref),"logoClickable"in W&&t(1,s=W.logoClickable),"targetUrl"in W&&t(10,u=W.targetUrl),"click"in W&&t(11,f=W.click)},i.$$.update=()=>{if(i.$$.dirty&24580)e:t(4,k=(r||mr(l,"l"))&&T);if(i.$$.dirty&4096)e:t(5,n=o===Db.RU)};e:t(3,y=p.logoType==="vk_video"?j("tooltip_vk_video_logo"):j("tooltip_vk_logo"));e:t(2,T=p.logoType==="vk_video"||p.logoType==="vk_video_mobile");return[a,s,T,y,k,n,b,g,S,v,u,f,o,l,r,I]}var Ba=class extends q{constructor(e){super(),U(this,e,zb,Hb,z,{ref:0,logoClickable:1,targetUrl:10,click:11})}},hr=Ba;import{ChromecastState as Gb}from"@vkontakte/videoplayer-core";import{ChromecastState as Td}from"@vkontakte/videoplayer-core";function qb(i){Ce(i,"svelte-8z1bf5",".connecting.svelte-8z1bf5 .wave.svelte-8z1bf5{animation-duration:1s;animation-iteration-count:infinite}.connecting.svelte-8z1bf5 .wave1.svelte-8z1bf5{animation-name:svelte-8z1bf5-wave1}.connecting.svelte-8z1bf5 .wave2.svelte-8z1bf5{animation-name:svelte-8z1bf5-wave2}.connecting.svelte-8z1bf5 .wave3.svelte-8z1bf5{animation-name:svelte-8z1bf5-wave3}@keyframes svelte-8z1bf5-wave1{0%{opacity:0.3}33%{opacity:1}66%{opacity:1}100%{opacity:1}}@keyframes svelte-8z1bf5-wave2{0%{opacity:0.3}33%{opacity:0.3}66%{opacity:1}100%{opacity:1}}@keyframes svelte-8z1bf5-wave3{0%{opacity:0.3}33%{opacity:0.3}66%{opacity:0.3}100%{opacity:1}}")}function Ub(i){let e,t,n,o,l,r,a,s;return{c(){e=D("svg"),t=D("g"),n=D("path"),o=D("path"),l=D("path"),r=D("path"),a=D("path"),s=D("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"),H(s,"hidden",!i[1]),c(t,"fill","none"),c(t,"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"),H(e,"connecting",i[2])},m(u,f){C(u,e,f),m(e,t),m(t,n),m(t,o),m(t,l),m(t,r),m(t,a),m(t,s)},p(u,f){f&2&&H(s,"hidden",!u[1]),f&4&&H(e,"connecting",u[2])},d(u){u&&w(e)}}}function Kb(i){let e,t,n,o,l,r,a,s,u,f,p,h,b,g,S,y,T,k,v,I,W;return{c(){e=D("svg"),t=D("g"),n=D("mask"),o=D("path"),r=D("path"),a=D("path"),u=D("path"),f=D("defs"),p=D("clipPath"),h=D("path"),g=D("filter"),S=D("feFlood"),y=D("feColorMatrix"),T=D("feOffset"),k=D("feGaussianBlur"),v=D("feColorMatrix"),I=D("feBlend"),W=D("feBlend"),c(o,"fill",l=i[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=i[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(t,"filter","url(#b)"),c(t,"clip-path","url(#a)"),c(h,"fill",b=i[1]?"#2688EB":"#fff"),c(h,"d","M0 0h24v24H0z"),c(p,"id","a"),c(S,"flood-opacity","0"),c(S,"result","BackgroundImageFix"),c(y,"in","SourceAlpha"),c(y,"values","0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0"),c(y,"result","hardAlpha"),c(k,"stdDeviation","2.5"),c(v,"values","0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.16 0"),c(I,"in2","BackgroundImageFix"),c(I,"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(Q,G){C(Q,e,G),m(e,t),m(t,n),m(n,o),m(n,r),m(t,a),m(t,u),m(e,f),m(f,p),m(p,h),m(f,g),m(g,S),m(g,y),m(g,T),m(g,k),m(g,v),m(g,I),m(g,W)},p(Q,G){G&2&&l!==(l=Q[1]?"#2688EB":"#fff")&&c(o,"fill",l),G&2&&s!==(s=Q[1]?"#2688EB":"#fff")&&c(a,"fill",s),G&2&&b!==(b=Q[1]?"#2688EB":"#fff")&&c(h,"fill",b)},d(Q){Q&&w(e)}}}function jb(i){let e;function t(l,r){return l[0]?Kb:Ub}let n=t(i,-1),o=n(i);return{c(){o.c(),e=ot()},m(l,r){o.m(l,r),C(l,e,r)},p(l,[r]){n===(n=t(l,r))&&o?o.p(l,r):(o.d(1),o=n(l),o&&(o.c(),o.m(e.parentNode,e)))},i:_e,o:_e,d(l){l&&w(e),o.d(l)}}}function Wb(i,e,t){let{isMobile:n=!1}=e,{state:o}=e,l,r;return i.$$set=a=>{"isMobile"in a&&t(0,n=a.isMobile),"state"in a&&t(3,o=a.state)},i.$$.update=()=>{if(i.$$.dirty&8)e:t(2,r=o===Td.CONNECTING),t(1,l=o===Td.CONNECTED)},[n,l,r,o]}var Da=class extends q{constructor(e){super(),U(this,e,Wb,jb,z,{isMobile:0,state:3},qb)}},Ed=Da;import{noop as Qb}from"@vkontakte/videoplayer-shared";function Yb(i){let e,t;return e=new Ed({props:{isMobile:i[1],state:i[2]}}),{c(){B(e.$$.fragment)},m(n,o){L(e,n,o),t=!0},p(n,o){let l={};o&2&&(l.isMobile=n[1]),o&4&&(l.state=n[2]),e.$set(l)},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){_(e.$$.fragment,n),t=!1},d(n){R(e,n)}}}function Zb(i){let e,t,n;function o(r){i[5](r)}let l={ariaLabel:i[4],click:i[3],testId:"btn-chromecast",$$slots:{default:[Yb]},$$scope:{ctx:i}};return i[0]!==void 0&&(l.ref=i[0]),e=new pt({props:l}),he.push(()=>He(e,"ref",o)),{c(){B(e.$$.fragment)},m(r,a){L(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}),!t&&a&1&&(t=!0,s.ref=r[0],Fe(()=>t=!1)),e.$set(s)},i(r){n||(d(e.$$.fragment,r),n=!0)},o(r){_(e.$$.fragment,r),n=!1},d(r){R(e,r)}}}function Xb(i,e,t){let{ref:n=void 0}=e,{isMobile:o=!1}=e,{state:l}=e,{click:r=Qb}=e,a;function s(u){n=u,t(0,n)}return i.$$set=u=>{"ref"in u&&t(0,n=u.ref),"isMobile"in u&&t(1,o=u.isMobile),"state"in u&&t(2,l=u.state),"click"in u&&t(3,r=u.click)},i.$$.update=()=>{if(i.$$.dirty&4)e:t(4,a=l===Gb.CONNECTED?j("tooltip_chromecast_on"):j("tooltip_chromecast_off"))},[n,o,l,r,a,s]}var Na=class extends q{constructor(e){super(),U(this,e,Xb,Zb,z,{ref:0,isMobile:1,state:2,click:3})}},gr=Na;import{PlaybackState as Oa}from"@vkontakte/videoplayer-core";function Jb(i){let e,t;return e=new Zl({props:{isActive:i[1]}}),{c(){B(e.$$.fragment)},m(n,o){L(e,n,o),t=!0},p(n,o){let l={};o&2&&(l.isActive=n[1]),e.$set(l)},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){_(e.$$.fragment,n),t=!1},d(n){R(e,n)}}}function xb(i){let e,t;return e=new pt({props:{className:i[0]?"":"btn--live btn-full-opacity",testId:i[1]?"btn-live":"btn-live-offset",disabled:i[1]&&i[3]===Oa.PLAYING,ariaLabel:i[2],click:i[4],$$slots:{default:[Jb]},$$scope:{ctx:i}}}),{c(){B(e.$$.fragment)},m(n,o){L(e,n,o),t=!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]===Oa.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){t||(d(e.$$.fragment,n),t=!0)},o(n){_(e.$$.fragment,n),t=!1},d(n){R(e,n)}}}function $b(i,e,t){let n,{isMobile:o=!1}=e,{isActiveLive:l=!1}=e,{ariaLabel:r=""}=e,a=et(),s=a.state.playbackState$;F(i,s,h=>t(3,n=h));let u=a.actions.internal.switchToActiveLive,f=a.actions.internal.togglePlay,p;return i.$$set=h=>{"isMobile"in h&&t(0,o=h.isMobile),"isActiveLive"in h&&t(1,l=h.isActiveLive),"ariaLabel"in h&&t(2,r=h.ariaLabel)},i.$$.update=()=>{if(i.$$.dirty&10)e:t(4,p=()=>{if(!l){u();return}n===Oa.PAUSED&&f()})},[o,l,r,n,p,s]}var Fa=class extends q{constructor(e){super(),U(this,e,$b,xb,z,{isMobile:0,isActiveLive:1,ariaLabel:2})}},br=Fa;function e4(i){Ce(i,"svelte-5ygsa2",'.tooltip-wrapper.svelte-5ygsa2{position:relative;display:block}.tooltip.svelte-5ygsa2{position:absolute;opacity:0;visibility:hidden;transition:opacity 200ms, visibility 200ms;bottom:100%;transform:translateX(-50%)}.pointer.svelte-5ygsa2:after{position:absolute;bottom:0;left:50%;width:0;border-top:5px solid rgba(41, 41, 41, .8);border-right:5px solid transparent;border-left:5px solid transparent;content:" ";font-size:0;line-height:0;transform:translate(-50%, 5px)}.tooltip.active.svelte-5ygsa2{opacity:1;visibility:visible}')}function t4(i){let e,t,n,o,l=i[9].default,r=Pe(l,i,i[8],null);return{c(){e=P("div"),t=P("div"),r&&r.c(),c(t,"class","tooltip svelte-5ygsa2"),H(t,"active",i[0]),H(t,"pointer",i[1]),c(e,"class","tooltip-wrapper svelte-5ygsa2"),c(e,"style",n=`transform: translate(${i[5]}px, ${i[2]}px);`)},m(a,s){C(a,e,s),m(e,t),r&&r.m(t,null),i[10](t),i[11](e),o=!0},p(a,[s]){r&&r.p&&(!o||s&256)&&Te(r,l,a,a[8],o?Ie(l,a[8],s,null):Ee(a[8]),null),(!o||s&1)&&H(t,"active",a[0]),(!o||s&2)&&H(t,"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&&w(e),r&&r.d(a),i[10](null),i[11](null)}}}function i4(i,e,t){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 b(y){if(!h)return 0;let{width:T}=h.getBoundingClientRect(),k=T/2;return y<k?k:y>f-k?f-k:y}function g(y){he[y?"unshift":"push"](()=>{h=y,t(4,h)})}function S(y){he[y?"unshift":"push"](()=>{p=y,t(3,p)})}return i.$$set=y=>{"active"in y&&t(0,r=y.active),"pointer"in y&&t(1,a=y.pointer),"translateXPx"in y&&t(6,s=y.translateXPx),"translateYPx"in y&&t(2,u=y.translateYPx),"containerWidth"in y&&t(7,f=y.containerWidth),"$$scope"in y&&t(8,l=y.$$scope)},i.$$.update=()=>{if(i.$$.dirty&64)e:t(5,n=b(s))},[r,a,u,p,h,n,s,f,l,o,g,S]}var Ha=class extends q{constructor(e){super(),U(this,e,i4,t4,z,{active:0,pointer:1,translateXPx:6,translateYPx:2,containerWidth:7},e4)}},Ad=Ha;var vr=(i,e,t)=>t.filter(n=>n.time<i*e).pop();function n4(i){Ce(i,"svelte-l51fc1",".timeline-preview.svelte-l51fc1{bottom:18px;border-radius:2px;pointer-events:none}.timeline-preview.mobile.svelte-l51fc1{bottom:72px}.preview.svelte-l51fc1{margin-bottom:10px;background-color:var(--timeline-preview-bg);box-shadow:0 0 2px var(--timeline-preview-shadow), 0 8px 24px var(--timeline-preview-shadow);border-radius:8px;border:1px solid var(--white)}.episode.svelte-l51fc1{margin-top:10px;margin-bottom:4px;font-size:13px;line-height:16px;text-shadow:0 8px 24px var(--timeline-preview-shadow), 0 0 2px var(--timeline-preview-shadow);max-width:150px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;text-align:center;font-weight:500}.time.svelte-l51fc1{font-size:13px;line-height:16px;text-align:center;color:var(--slider-filled-bg);text-shadow:0 8px 24px var(--timeline-preview-shadow), 0 0 2px var(--timeline-preview-shadow);font-weight:500}")}function Md(i){let e;function t(l,r){return l[2]&&l[10].completed===!1?l4:o4}let n=t(i,-1),o=n(i);return{c(){o.c(),e=ot()},m(l,r){o.m(l,r),C(l,e,r)},p(l,r){n===(n=t(l,r))&&o?o.p(l,r):(o.d(1),o=n(l),o&&(o.c(),o.m(e.parentNode,e)))},d(l){l&&w(e),o.d(l)}}}function o4(i){let e=(i[10].text||"")+"",t;return{c(){t=Be(e)},m(n,o){C(n,t,o)},p(n,o){o&1024&&e!==(e=(n[10].text||"")+"")&&Qe(t,e)},d(n){n&&w(t)}}}function l4(i){let e=j("tooltip_episode_unfinished")+"",t;return{c(){t=Be(e)},m(n,o){C(n,t,o)},p:_e,d(n){n&&w(t)}}}function Vd(i){let e,t;return{c(){e=P("div"),t=Be(i[0]),c(e,"class","time svelte-l51fc1")},m(n,o){C(n,e,o),m(e,t)},p(n,o){o&1&&Qe(t,n[0])},d(n){n&&w(e)}}}function r4(i){let e,t,n,o,l,r,a=i[10]&&Md(i),s=!i[2]&&Vd(i);return{c(){e=P("div"),t=P("div"),o=O(),l=P("div"),a&&a.c(),r=O(),s&&s.c(),c(t,"class","preview svelte-l51fc1"),c(t,"style",n=`width: ${i[3]}px; height: ${i[4]}px; background-image: url(${i[5]}); background-size: ${i[6]}px ${i[7]}px; background-position: ${i[8]}px ${i[9]}px; transform: translateY(${i[11]%180?-35:0}px) rotate(${i[11]}deg);`),c(l,"class","episode svelte-l51fc1"),c(e,"class","timeline-preview svelte-l51fc1"),H(e,"mobile",i[1])},m(u,f){C(u,e,f),m(e,t),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(t,"style",n),u[10]?a?a.p(u,f):(a=Md(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=Vd(u),s.c(),s.m(e,null)),f&2&&H(e,"mobile",u[1])},i:_e,o:_e,d(u){u&&w(e),a&&a.d(),s&&s.d()}}}var Xo=150;function s4(i,e,t){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=et().ui.rotateAlpha;F(i,h,G=>t(11,n=G));let b,g,S,y,T,k,v,I;function W(){let G=a.frameWidth,le=a.frameHeight;return G>Xo?(le=le/G*Xo,G=Xo):le>Xo&&(G=G/le*Xo,le=Xo),{width:G,height:le}}function Q(G){let le;a.isUV?le=Math.floor(u*G/a.frequency):le=Math.min(a.countTotal,Math.max(0,Math.floor(a.countTotal*G)));let ae=Math.floor(le/a.countPerImage),V=Math.floor(le%a.countPerImage/a.countPerRow),A=le%a.countPerRow,$=Math.floor(a.countPerImage/a.countPerRow);!a.isUV&&ae===Math.floor(a.countTotal/a.countPerImage)&&($=Math.floor(a.countTotal%a.countPerImage/a.countPerRow),a.countTotal%a.countPerImage%a.countPerRow>0&&$++);let J=a.countPerRow;!a.isUV&&ae===Math.floor(a.countTotal/a.countPerImage)&&a.countTotal%a.countPerImage>0&&(J=Math.min(a.countPerRow,a.countTotal%a.countPerImage));let x=b*J,N=g*$,te=-A*b,E=-V*g;return{imgSrc:a.links[ae],imgWidth:x,imgHeight:N,imgOffsetX:te,imgOffsetY:E}}i.$$set=G=>{"time"in G&&t(0,o=G.time),"isMobile"in G&&t(1,l=G.isMobile),"videoEpisodes"in G&&t(13,r=G.videoEpisodes),"previewThumbsData"in G&&t(14,a=G.previewThumbsData),"progress"in G&&t(15,s=G.progress),"duration"in G&&t(16,u=G.duration),"isInteractive"in G&&t(2,f=G.isInteractive)},i.$$.update=()=>{if(i.$$.dirty&32768)e:t(5,{imgSrc:S,imgWidth:y,imgHeight:T,imgOffsetX:k,imgOffsetY:v}=Q(s),S,(t(6,y),t(15,s)),(t(7,T),t(15,s)),(t(8,k),t(15,s)),(t(9,v),t(15,s)));if(i.$$.dirty&106496)e:t(10,I=vr(s,u,r))};e:t(3,{width:b,height:g}=W(),b,t(4,g));return[o,l,f,b,g,S,y,T,k,v,I,n,h,r,a,s,u]}var za=class extends q{constructor(e){super(),U(this,e,s4,r4,z,{time:0,isMobile:1,videoEpisodes:13,previewThumbsData:14,progress:15,duration:16,isInteractive:2},n4)}},Ld=za;function a4(i){Ce(i,"svelte-5lzly8",".time.svelte-5lzly8{display:inline-block;padding:6px 10px;border-radius:3px;color:var(--white);background-color:rgba(41, 41, 41, .8)}")}function u4(i){let e,t;return{c(){e=P("span"),t=Be(i[7]),c(e,"class","time svelte-5lzly8")},m(n,o){C(n,e,o),m(e,t)},p(n,o){o[0]&128&&Qe(t,n[7])},i:_e,o:_e,d(n){n&&w(e)}}}function c4(i){let e,t;return e=new Ld({props:{time:i[7],isMobile:i[10],videoEpisodes:i[3],previewThumbsData:i[21],progress:i[8],duration:i[1],isInteractive:i[23]}}),{c(){B(e.$$.fragment)},m(n,o){L(e,n,o),t=!0},p(n,o){let l={};o[0]&128&&(l.time=n[7]),o[0]&1024&&(l.isMobile=n[10]),o[0]&8&&(l.videoEpisodes=n[3]),o[0]&256&&(l.progress=n[8]),o[0]&2&&(l.duration=n[1]),e.$set(l)},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){_(e.$$.fragment,n),t=!1},d(n){R(e,n)}}}function f4(i){let e,t,n,o,l=[c4,u4],r=[];function a(s,u){return s[14].features.timelinePreview&&s[21]&&!s[0]?0:1}return e=a(i,[-1,-1]),t=r[e]=l[e](i),{c(){t.c(),n=ot()},m(s,u){r[e].m(s,u),C(s,n,u),o=!0},p(s,u){let f=e;e=a(s,u),e===f?r[e].p(s,u):(ue(),_(r[f],1,1,()=>{r[f]=null}),ce(),t=r[e],t?t.p(s,u):(t=r[e]=l[e](s),t.c()),d(t,1),t.m(n.parentNode,n))},i(s){o||(d(t),o=!0)},o(s){_(t),o=!1},d(s){s&&w(n),r[e].d(s)}}}function d4(i){let e,t,n,o,l=[i[9]],r={$$slots:{default:[f4]},$$scope:{ctx:i}};for(let a=0;a<l.length;a+=1)r=ne(r,l[a]);return e=new Ad({props:r}),n=new Qo({props:{isActiveLive:i[11],isMobile:i[10],ariaLabel:j("aria_timeline"),ariaValueMin:0,ariaValueMax:i[1],ariaValueNow:Math.round(i[6]*100),ariaValueText:j("aria_timeline_value",{position:i[5],duration:i[4]}),loadedProgress:i[12],filledProgress:i[6],handleProgress:i[6],videoEpisodes:i[3],onPointerDown:i[27],onHandleMove:i[28],onPointerMove:i[31],onPointerUp:i[29],onPointerEnter:i[30],onPointerLeave:i[32],isInteractive:i[23],disabled:i[13].has("TIMELINE"),hideHandel:i[2]}}),{c(){B(e.$$.fragment),t=O(),B(n.$$.fragment)},m(a,s){L(e,a,s),C(a,t,s),L(n,a,s),o=!0},p(a,s){let u=s[0]&512?Ve(l,[Mc(a[9])]):{};s[0]&1419|s[1]&65536&&(u.$$scope={dirty:s,ctx:a}),e.$set(u);let f={};s[0]&2048&&(f.isActiveLive=a[11]),s[0]&1024&&(f.isMobile=a[10]),s[0]&2&&(f.ariaValueMax=a[1]),s[0]&64&&(f.ariaValueNow=Math.round(a[6]*100)),s[0]&48&&(f.ariaValueText=j("aria_timeline_value",{position:a[5],duration:a[4]})),s[0]&4096&&(f.loadedProgress=a[12]),s[0]&64&&(f.filledProgress=a[6]),s[0]&64&&(f.handleProgress=a[6]),s[0]&8&&(f.videoEpisodes=a[3]),s[0]&8192&&(f.disabled=a[13].has("TIMELINE")),s[0]&4&&(f.hideHandel=a[2]),n.$set(f)},i(a){o||(d(e.$$.fragment,a),d(n.$$.fragment,a),o=!0)},o(a){_(e.$$.fragment,a),_(n.$$.fragment,a),o=!1},d(a){a&&w(t),R(e,a),R(n,a)}}}function m4(i,e,t){let n,o,l,r,a,s,u,f,p,h,b,{showTimeline:g=!1}=e,S=et(),y=Tt(),T=S.state.bufferedProgress$;F(i,T,se=>t(12,h=se));let k=S.state.positionWithScrubbing$;F(i,k,se=>t(39,s=se));let v=S.state.duration$;F(i,v,se=>t(1,l=se));let I=S.state.isLive$;F(i,I,se=>t(0,o=se));let W=S.state.isActiveLive$;F(i,W,se=>t(11,p=se));let Q=S.ui.isMobile;F(i,Q,se=>t(10,f=se));let G=y.features.episodes?S.actions.internal.getVideoEpisodes():void 0,le=S.actions.internal.getPreviewThumbsData(),ae=S.state.interactiveEpisodes$;F(i,ae,se=>t(40,u=se));let V=S.state.isInteractive,A=S.state.isInteractiveTime$;F(i,A,se=>t(2,r=se));let $=S.state.isInteractiveExpectation$;F(i,$,se=>t(38,a=se));let J=S.actions.internal.correctSeekTimeToInteractive,x=S.ui.controls.disabledControls$;F(i,x,se=>t(13,b=se));let N,te,E,Y,Le=!1,je="",qe=0,Je=0,Ne=0,we;function X(se){return!J||!V?se:J(se*l)/l}function ve(se){S.actions.internal.startScrubbing(X(se))}function Oe(se){r||S.actions.internal.progressScrubbing(X(se))}function Xe(se){S.actions.internal.completeScrubbing(X(se)),t(34,Le=!1)}function xe(se,oe,Se){Ue(se,oe,Se),t(34,Le=!0)}function ke(se,oe,Se){Ue(se,oe,Se),t(34,Le=!0)}function Re(){t(34,Le=!1)}function Ue(se,oe,Se){t(8,Ne=X(se)),t(35,qe=oe),Se&&t(36,Je=Se),t(7,je=We(se))}function We(se){let oe=pn((o?1-se:se)*l);return o?`-${oe}`:oe}return i.$$set=se=>{"showTimeline"in se&&t(33,g=se.showTimeline)},i.$$.update=()=>{if(i.$$.dirty[1]&512)e:t(3,N=V?u:G);if(i.$$.dirty[0]&2)e:t(4,te=pn(l));if(i.$$.dirty[1]&256)e:t(5,E=pn(s));if(i.$$.dirty[0]&2|i.$$.dirty[1]&256)e:t(6,Y=s/l);if(i.$$.dirty[0]&4|i.$$.dirty[1]&128)e:t(37,we=a||r);if(i.$$.dirty[0]&1|i.$$.dirty[1]&124)e:t(9,n={containerWidth:Je,translateXPx:qe,translateYPx:V&&le?-36:-16,active:Le&&g&&!we,pointer:!y.features.timelinePreview||!le||o})},[o,l,r,N,te,E,Y,je,Ne,n,f,p,h,b,y,T,k,v,I,W,Q,le,ae,V,A,$,x,ve,Oe,Xe,xe,ke,Re,g,Le,qe,Je,we,a,s,u]}var qa=class extends q{constructor(e){super(),U(this,e,m4,d4,z,{showTimeline:33},a4,[-1,-1])}},Rd=qa;function p4(i){let e,t;return e=new Qo({props:{ariaValueMin:0,ariaValueMax:i[0],ariaValueNow:Math.round(i[3]*100),ariaValueText:j("aria_timeline_value",{position:i[2],duration:i[1]}),filledProgress:i[3],isAds:!0,hideHandel:!0,squareBorders:i[4]}}),{c(){B(e.$$.fragment)},m(n,o){L(e,n,o),t=!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=j("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){t||(d(e.$$.fragment,n),t=!0)},o(n){_(e.$$.fragment,n),t=!1},d(n){R(e,n)}}}function _4(i,e,t){let n,{position:o=0}=e,{duration:l=0}=e,a=et().ui.isMobile;F(i,a,p=>t(4,n=p));let s,u,f;return i.$$set=p=>{"position"in p&&t(6,o=p.position),"duration"in p&&t(0,l=p.duration)},i.$$.update=()=>{if(i.$$.dirty&1)e:t(1,s=pn(l));if(i.$$.dirty&64)e:t(2,u=pn(o));if(i.$$.dirty&65)e:t(3,f=o/l)},[l,s,u,f,n,a,o]}var Ua=class extends q{constructor(e){super(),U(this,e,_4,p4,z,{position:6,duration:0})}},yr=Ua;function h4(i){Ce(i,"svelte-1gqonyf",".timeline.svelte-1gqonyf{position:relative;pointer-events:all;display:flex;align-items:center;bottom:0;width:100%;min-width:86px;padding:3px 10px 4px;box-sizing:border-box}.timeline.mobile.svelte-1gqonyf{height:16px;padding:6px 12px 7px;margin-top:6px}.timeline-stub.svelte-1gqonyf{width:100%;min-width:20px}.timeline-stub.mobile.svelte-1gqonyf{height:8px}")}function g4(i){let e;return{c(){e=P("div"),c(e,"class","timeline-stub svelte-1gqonyf"),H(e,"mobile",i[2])},m(t,n){C(t,e,n)},p(t,n){n&4&&H(e,"mobile",t[2])},i:_e,o:_e,d(t){t&&w(e)}}}function b4(i){let e,t,n,o,l=[y4,v4],r=[];function a(s,u){return s[0]?0:1}return t=a(i,-1),n=r[t]=l[t](i),{c(){e=P("div"),n.c(),c(e,"class","timeline svelte-1gqonyf"),H(e,"mobile",i[2])},m(s,u){C(s,e,u),r[t].m(e,null),o=!0},p(s,u){let f=t;t=a(s,u),t===f?r[t].p(s,u):(ue(),_(r[f],1,1,()=>{r[f]=null}),ce(),n=r[t],n?n.p(s,u):(n=r[t]=l[t](s),n.c()),d(n,1),n.m(e,null)),(!o||u&4)&&H(e,"mobile",s[2])},i(s){o||(d(n),o=!0)},o(s){_(n),o=!1},d(s){s&&w(e),r[t].d()}}}function v4(i){let e,t;return e=new Rd({props:{showTimeline:i[1]}}),{c(){B(e.$$.fragment)},m(n,o){L(e,n,o),t=!0},p(n,o){let l={};o&2&&(l.showTimeline=n[1]),e.$set(l)},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){_(e.$$.fragment,n),t=!1},d(n){R(e,n)}}}function y4(i){let e,t;return e=new yr({props:{position:i[3],duration:i[4]}}),{c(){B(e.$$.fragment)},m(n,o){L(e,n,o),t=!0},p(n,o){let l={};o&8&&(l.position=n[3]),o&16&&(l.duration=n[4]),e.$set(l)},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){_(e.$$.fragment,n),t=!1},d(n){R(e,n)}}}function w4(i){let e,t,n,o,l=[b4,g4],r=[];function a(s,u){return s[1]?0:1}return e=a(i,-1),t=r[e]=l[e](i),{c(){t.c(),n=ot()},m(s,u){r[e].m(s,u),C(s,n,u),o=!0},p(s,[u]){let f=e;e=a(s,u),e===f?r[e].p(s,u):(ue(),_(r[f],1,1,()=>{r[f]=null}),ce(),t=r[e],t?t.p(s,u):(t=r[e]=l[e](s),t.c()),d(t,1),t.m(n.parentNode,n))},i(s){o||(d(t),o=!0)},o(s){_(t),o=!1},d(s){s&&w(n),r[e].d(s)}}}function k4(i,e,t){let n,o,l,r,{isAds:a=!1}=e,{canRewindLive:s}=e,{isRewindableLive:u}=e,{isHidden:f=!1}=e,p=et(),h=p.state.isLive$;F(i,h,T=>t(12,n=T));let b=p.ads.duration;F(i,b,T=>t(4,r=T));let g=p.ads.position;F(i,g,T=>t(3,l=T));let S=p.ui.isMobile;F(i,S,T=>t(2,o=T));let y;return i.$$set=T=>{"isAds"in T&&t(0,a=T.isAds),"canRewindLive"in T&&t(9,s=T.canRewindLive),"isRewindableLive"in T&&t(10,u=T.isRewindableLive),"isHidden"in T&&t(11,f=T.isHidden)},i.$$.update=()=>{if(i.$$.dirty&7681)e:t(1,y=!f&&(!n||n&&s&&u||a))},[a,y,o,l,r,h,b,g,S,s,u,f,n]}var Ka=class extends q{constructor(e){super(),U(this,e,k4,w4,z,{isAds:0,canRewindLive:9,isRewindableLive:10,isHidden:11},h4)}},wr=Ka;import{noop as T4}from"@vkontakte/videoplayer-shared";function C4(i){let e,t,n,o,l,r=i[2].default,a=Pe(r,i,i[1],null),s=[{xmlns:"http://www.w3.org/2000/svg"},{width:"24"},{height:"24"},{fill:"none"},{"aria-hidden":"true"},{"data-testid":"episodes-icon"},{style:"flex-shrink:0"},{role:"img"},i[0]],u={};for(let f=0;f<s.length;f+=1)u=ne(u,s[f]);return{c(){e=D("svg"),a&&a.c(),t=D("path"),n=D("path"),o=D("path"),c(t,"fill","#fff"),c(t,"fill-rule","evenodd"),c(t,"d","m21.616 16.495-.012.07c-.156.852-.282 1.541-.427 2.093-.148.569-.333 1.063-.64 1.5a4.4 4.4 0 0 1-2.507 1.732c-.52.133-1.046.131-1.63.069-.568-.06-1.257-.187-2.11-.343l-4.34-.794c-.853-.156-1.542-.282-2.094-.426-.568-.149-1.062-.334-1.5-.642a4.4 4.4 0 0 1-1.731-2.507c-.133-.518-.131-1.045-.069-1.63.06-.567.187-1.257.343-2.11l.012-.068c.156-.853.282-1.542.427-2.095.148-.568.333-1.062.641-1.5a4.4 4.4 0 0 1 2.507-1.731c.518-.133 1.045-.131 1.63-.069.567.06 1.256.187 2.109.343l4.34.794c.853.156 1.542.282 2.094.426.568.149 1.062.334 1.5.642a4.4 4.4 0 0 1 1.731 2.506c.133.52.131 1.046.069 1.63-.06.568-.187 1.258-.343 2.11m-1.446-2.3c.052-.483.035-.769-.022-.993a2.6 2.6 0 0 0-1.023-1.481c-.19-.133-.45-.25-.921-.373-.48-.125-1.102-.24-1.997-.404l-4.272-.781c-.895-.164-1.518-.277-2.01-.33-.483-.051-.769-.035-.993.023-.6.153-1.125.516-1.481 1.023-.133.19-.25.45-.373.92-.125.48-.24 1.103-.403 1.998s-.277 1.518-.33 2.01c-.051.484-.035.77.023.994.153.6.516 1.125 1.023 1.481.189.133.45.25.92.373.48.125 1.102.24 1.997.404l4.272.781c.895.164 1.518.277 2.01.33.483.051.77.035.993-.023a2.6 2.6 0 0 0 1.481-1.023c.133-.19.25-.45.373-.92.125-.48.24-1.103.403-1.998s.278-1.518.33-2.01Z"),c(t,"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"),be(e,u)},m(f,p){C(f,e,p),a&&a.m(e,null),m(e,t),m(e,n),m(e,o),l=!0},p(f,[p]){a&&a.p&&(!l||p&2)&&Te(a,r,f,f[1],l?Ie(r,f[1],p,null):Ee(f[1]),null),be(e,u=Ve(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&&w(e),a&&a.d(f)}}}function S4(i,e,t){let{$$slots:n={},$$scope:o}=e;return i.$$set=l=>{t(0,e=ne(ne({},e),ge(l))),"$$scope"in l&&t(1,o=l.$$scope)},e=ge(e),[e,o,n]}var ja=class extends q{constructor(e){super(),U(this,e,S4,C4,z,{})}},Bd=ja;function P4(i){let e,t,n,o=i[2].default,l=Pe(o,i,i[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"},i[0]],a={};for(let s=0;s<r.length;s+=1)a=ne(a,r[s]);return{c(){e=D("svg"),l&&l.c(),t=D("path"),c(t,"fill","#fff"),c(t,"fill-rule","evenodd"),c(t,"d","M4.146 3.146a.5.5 0 0 1 .708 0l3 3a.5.5 0 0 1 0 .708l-3 3a.5.5 0 0 1-.708-.708L6.793 6.5 4.146 3.854a.5.5 0 0 1 0-.708"),c(t,"clip-rule","evenodd"),c(t,"opacity",".7"),be(e,a)},m(s,u){C(s,e,u),l&&l.m(e,null),m(e,t),n=!0},p(s,[u]){l&&l.p&&(!n||u&2)&&Te(l,o,s,s[1],n?Ie(o,s[1],u,null):Ee(s[1]),null),be(e,a=Ve(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&&w(e),l&&l.d(s)}}}function I4(i,e,t){let{$$slots:n={},$$scope:o}=e;return i.$$set=l=>{t(0,e=ne(ne({},e),ge(l))),"$$scope"in l&&t(1,o=l.$$scope)},e=ge(e),[e,o,n]}var Wa=class extends q{constructor(e){super(),U(this,e,I4,P4,z,{})}},Dd=Wa;function E4(i){Ce(i,"svelte-1yhs2ga",".text.svelte-1yhs2ga{padding:0 8px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.text.count.svelte-1yhs2ga{overflow:visible}.text.mobile.svelte-1yhs2ga{padding:0 3px 0 4px}.chevron-episodes.svelte-1yhs2ga{margin-bottom:-4px}")}function A4(i){let e,t,n,o;e=new Bd({});function l(s,u){if(s[4]==="FULL")return L4;if(s[4]==="COUNT")return V4}let r=l(i,-1),a=r&&r(i);return{c(){B(e.$$.fragment),t=O(),a&&a.c(),n=ot()},m(s,u){L(e,s,u),C(s,t,u),a&&a.m(s,u),C(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&&(w(t),w(n)),R(e,s),a&&a.d(s)}}}function M4(i){let e,t,n,o,l,r;return l=new Dd({}),{c(){e=P("span"),t=Be(i[2]),n=O(),o=P("div"),B(l.$$.fragment),c(e,"class","text mobile svelte-1yhs2ga"),c(o,"class","chevron-episodes svelte-1yhs2ga")},m(a,s){C(a,e,s),m(e,t),C(a,n,s),C(a,o,s),L(l,o,null),r=!0},p(a,s){(!r||s&4)&&Qe(t,a[2])},i(a){r||(d(l.$$.fragment,a),r=!0)},o(a){_(l.$$.fragment,a),r=!1},d(a){a&&(w(e),w(n),w(o)),R(l)}}}function V4(i){let e,t=i[0].length+"",n;return{c(){e=P("span"),n=Be(t),c(e,"class","text count svelte-1yhs2ga")},m(o,l){C(o,e,l),m(e,n)},p(o,l){l&1&&t!==(t=o[0].length+"")&&Qe(n,t)},d(o){o&&w(e)}}}function L4(i){let e,t;return{c(){e=P("span"),t=Be(i[2]),c(e,"class","text svelte-1yhs2ga")},m(n,o){C(n,e,o),m(e,t)},p(n,o){o&4&&Qe(t,n[2])},d(n){n&&w(e)}}}function R4(i){let e,t,n,o,l=[M4,A4],r=[];function a(s,u){return s[6]?0:1}return e=a(i,-1),t=r[e]=l[e](i),{c(){t.c(),n=ot()},m(s,u){r[e].m(s,u),C(s,n,u),o=!0},p(s,u){let f=e;e=a(s,u),e===f?r[e].p(s,u):(ue(),_(r[f],1,1,()=>{r[f]=null}),ce(),t=r[e],t?t.p(s,u):(t=r[e]=l[e](s),t.c()),d(t,1),t.m(n.parentNode,n))},i(s){o||(d(t),o=!0)},o(s){_(t),o=!1},d(s){s&&w(n),r[e].d(s)}}}function B4(i){let e,t,n;function o(r){i[19](r)}let l={className:"w-max btn-full-opacity "+(i[6]?"px-0":""),testId:"btn-episodes",click:i[12],disabled:!i[7],ariaExpanded:i[3],ariaLabel:i[5],$$slots:{default:[R4]},$$scope:{ctx:i}};return i[1]!==void 0&&(l.ref=i[1]),e=new pt({props:l}),he.push(()=>He(e,"ref",o)),{c(){B(e.$$.fragment)},m(r,a){L(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}),!t&&a&2&&(t=!0,s.ref=r[1],Fe(()=>t=!1)),e.$set(s)},i(r){n||(d(e.$$.fragment,r),n=!0)},o(r){_(e.$$.fragment,r),n=!1},d(r){R(e,r)}}}function D4(i,e,t){let n,o,l,r,a,s,{position:u=0}=e,{duration:f=0}=e,{timeCodes:p=[]}=e,h=et(),b=h.callbacks?.onEpisodeChanged??T4,g=!!h.callbacks?.onEpisodeClicked,S=h.ui.currentGridType$;F(i,S,V=>t(18,a=V));let y=h.ui.episodes.openedByKeyboard$;F(i,y,V=>t(17,r=V));let T=h.ui.episodes.panelOpened$;F(i,T,V=>t(3,l=V));let k=h.ui.isMobile;F(i,k,V=>t(6,s=V));let v,I=V=>{if(!!h.callbacks?.onEpisodeClicked){let $=Ko(V);y.set($),T.set(!0),h.callbacks?.onEpisodeClicked?.($)}},W,Q,G,le=async(V,A,$)=>{await En(),V?.getAttribute("aria-expanded")==="false"&&A&&!$&&(y.set(!1),V.focus())};function ae(V){v=V,t(1,v)}return i.$$set=V=>{"position"in V&&t(13,u=V.position),"duration"in V&&t(14,f=V.duration),"timeCodes"in V&&t(0,p=V.timeCodes)},i.$$.update=()=>{if(i.$$.dirty&24576)e:t(16,n=u/f);if(i.$$.dirty&114689)e:{let V=vr(n,f,p);V&&W?.text!==V.text&&(b(V),t(15,W=V))}if(i.$$.dirty&32768)e:t(2,o=W?.text||"");if(i.$$.dirty&262144)e:_n(a,"xl")?t(4,Q="FULL"):_n(a,"m")&&_d(a,"xl")?t(4,Q="COUNT"):t(4,Q="SHORT");if(i.$$.dirty&4)e:t(5,G=`${j("tooltip_episodes")}: ${o}`);if(i.$$.dirty&131082)e:le(v,r,l)},[p,v,o,l,Q,G,s,g,S,y,T,k,I,u,f,W,n,r,a,ae]}var Ga=class extends q{constructor(e){super(),U(this,e,D4,B4,z,{position:13,duration:14,timeCodes:0},E4)}},kr=Ga;function N4(i){let e,t,n,o,l=i[2].default,r=Pe(l,i,i[1],null),a=[{xmlns:"http://www.w3.org/2000/svg"},{width:"24"},{height:"24"},{fill:"none"},{"aria-hidden":"true"},{"data-testid":"seek-to-interactive-icon"},{role:"img"},i[0]],s={};for(let u=0;u<a.length;u+=1)s=ne(s,a[u]);return{c(){e=D("svg"),r&&r.c(),t=D("path"),n=D("path"),c(t,"fill","#fff"),c(t,"fill-rule","evenodd"),c(t,"d","M16.726 4.845C16.187 4.8 15.496 4.8 14.5 4.8H7.9a.9.9 0 1 1 0-1.8h6.639c.947 0 1.713 0 2.333.05.64.053 1.204.163 1.726.43a4.4 4.4 0 0 1 1.923 1.922c.266.523.377 1.087.429 1.726.05.62.05 1.386.05 2.334v5.076c0 .948 0 1.714-.05 2.334-.052.64-.163 1.203-.43 1.726a4.4 4.4 0 0 1-1.922 1.922c-.522.267-1.086.377-1.726.43-.62.05-1.386.05-2.333.05H7.9a.9.9 0 1 1 0-1.8h6.6c.995 0 1.687 0 2.226-.045.528-.043.828-.123 1.055-.238a2.6 2.6 0 0 0 1.136-1.137c.115-.226.195-.527.239-1.055.044-.538.044-1.23.044-2.225v-5c0-.995 0-1.687-.044-2.226-.043-.527-.124-.828-.239-1.054a2.6 2.6 0 0 0-1.136-1.137c-.227-.115-.527-.195-1.055-.238"),c(t,"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"),be(e,s)},m(u,f){C(u,e,f),r&&r.m(e,null),m(e,t),m(e,n),o=!0},p(u,[f]){r&&r.p&&(!o||f&2)&&Te(r,l,u,u[1],o?Ie(l,u[1],f,null):Ee(u[1]),null),be(e,s=Ve(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&&w(e),r&&r.d(u)}}}function O4(i,e,t){let{$$slots:n={},$$scope:o}=e;return i.$$set=l=>{t(0,e=ne(ne({},e),ge(l))),"$$scope"in l&&t(1,o=l.$$scope)},e=ge(e),[e,o,n]}var Qa=class extends q{constructor(e){super(),U(this,e,O4,N4,z,{})}},Nd=Qa;function F4(i){let e,t;return e=new Nd({}),{c(){B(e.$$.fragment)},m(n,o){L(e,n,o),t=!0},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){_(e.$$.fragment,n),t=!1},d(n){R(e,n)}}}function H4(i){let e,t,n;function o(r){i[4](r)}let l={className:i[1]?"hidden":"",testId:"btn-seek-to-interactive",ariaLabel:j("tooltip_interactive_seek"),disabled:i[2],click:i[3],$$slots:{default:[F4]},$$scope:{ctx:i}};return i[0]!==void 0&&(l.ref=i[0]),e=new pt({props:l}),he.push(()=>He(e,"ref",o)),{c(){B(e.$$.fragment)},m(r,a){L(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}),!t&&a&1&&(t=!0,s.ref=r[0],Fe(()=>t=!1)),e.$set(s)},i(r){n||(d(e.$$.fragment,r),n=!0)},o(r){_(e.$$.fragment,r),n=!1},d(r){R(e,r)}}}function z4(i,e,t){let{ref:n=void 0}=e,{hidden:o=!1}=e,{disabled:l=!1}=e,{click:r}=e;function a(s){n=s,t(0,n)}return i.$$set=s=>{"ref"in s&&t(0,n=s.ref),"hidden"in s&&t(1,o=s.hidden),"disabled"in s&&t(2,l=s.disabled),"click"in s&&t(3,r=s.click)},[n,o,l,r,a]}var Ya=class extends q{constructor(e){super(),U(this,e,z4,H4,z,{ref:0,hidden:1,disabled:2,click:3})}},Cr=Ya;function q4(i){let e,t,n,o,l=i[2].default,r=Pe(l,i,i[1],null),a=[{xmlns:"http://www.w3.org/2000/svg"},{width:"24"},{height:"24"},{fill:"none"},{"aria-hidden":"true"},{role:"img"},i[0]],s={};for(let u=0;u<a.length;u+=1)s=ne(s,a[u]);return{c(){e=D("svg"),r&&r.c(),t=D("path"),n=D("path"),c(t,"fill","#fff"),c(t,"fill-rule","evenodd"),c(t,"d","M16.777 3h1.419c.31 0 .596 0 .834.02.258.02.539.068.817.21.397.2.72.523.923.918.141.277.19.557.21.814.02.237.02.521.02.83V7.19c0 .31 0 .594-.02.831-.02.256-.069.537-.21.813a2.1 2.1 0 0 1-.923.92c-.278.14-.56.188-.817.21-.238.019-.524.019-.834.019h-1.419c-.31 0-.596 0-.834-.02a2.15 2.15 0 0 1-.817-.21 2.1 2.1 0 0 1-.923-.919 2.1 2.1 0 0 1-.21-.813 8 8 0 0 1-.02-.63l-2.198-.002c-.495-.001-.81 0-1.05.018-.23.019-.309.05-.343.067a.8.8 0 0 0-.352.35c-.017.034-.049.113-.068.341-.02.24-.02.554-.02 1.046v5.57c0 .49 0 .804.02 1.043.019.228.05.306.068.34.077.15.2.273.35.35.035.017.113.049.342.067.24.02.555.021 1.048.022l2.203.003a8 8 0 0 1 .02-.627c.02-.256.069-.537.21-.813.203-.396.526-.718.923-.92.278-.14.56-.189.817-.21.238-.019.524-.019.834-.019h1.419c.31 0 .596 0 .834.02.258.02.539.068.817.21.397.201.72.523.923.919.141.276.19.557.21.813.02.237.02.522.02.831v1.397c0 .31 0 .594-.02.831-.02.256-.069.537-.21.814a2.1 2.1 0 0 1-.923.919c-.278.14-.56.189-.817.21-.238.019-.524.019-.834.019h-1.419c-.31 0-.596 0-.834-.02a2.15 2.15 0 0 1-.817-.21 2.1 2.1 0 0 1-.923-.918 2.1 2.1 0 0 1-.21-.814 8 8 0 0 1-.02-.63l-2.24-.002c-.449 0-.839-.001-1.16-.028-.341-.028-.684-.09-1.016-.259a2.6 2.6 0 0 1-1.14-1.137c-.17-.33-.231-.672-.259-1.011-.026-.321-.026-.71-.026-1.156v-1.921H2.905A.903.903 0 0 1 2 11.992c0-.498.405-.901.905-.901h5.227V9.177c0-.448 0-.837.026-1.159.028-.34.09-.682.26-1.013a2.6 2.6 0 0 1 1.144-1.138c.332-.168.676-.23 1.017-.257.323-.025.714-.025 1.164-.024l2.23.003a8 8 0 0 1 .02-.627c.02-.257.069-.537.21-.814.203-.395.526-.717.923-.919.278-.14.56-.189.817-.21C16.18 3 16.467 3 16.777 3m-.833 1.837a1 1 0 0 1 .146-.02 10 10 0 0 1 .72-.014h1.354c.353 0 .563 0 .719.013a1 1 0 0 1 .146.021.3.3 0 0 1 .126.126 1 1 0 0 1 .021.145c.013.156.014.365.014.716v1.334c0 .352 0 .561-.014.716a1 1 0 0 1-.02.146.3.3 0 0 1-.127.125 1 1 0 0 1-.146.022c-.156.012-.366.013-.719.013H16.81c-.353 0-.563 0-.719-.013a1 1 0 0 1-.146-.022.3.3 0 0 1-.126-.125 1 1 0 0 1-.021-.146 10 10 0 0 1-.014-.716V5.824c0-.351.001-.56.014-.716a1 1 0 0 1 .021-.145.3.3 0 0 1 .126-.126Zm0 11.018a1 1 0 0 1 .146-.022c.156-.012.366-.013.72-.013h1.354c.353 0 .563 0 .719.013a1 1 0 0 1 .146.022.3.3 0 0 1 .126.125 1 1 0 0 1 .021.146c.013.155.014.364.014.716v1.334c0 .351 0 .56-.014.716a1 1 0 0 1-.02.145.3.3 0 0 1-.127.126 1 1 0 0 1-.146.02c-.156.014-.366.014-.719.014H16.81c-.353 0-.563 0-.719-.013a1 1 0 0 1-.146-.021.3.3 0 0 1-.126-.126 1 1 0 0 1-.021-.145 10 10 0 0 1-.014-.716v-1.334c0-.352.001-.561.014-.716a1 1 0 0 1 .021-.146.3.3 0 0 1 .126-.125Z"),c(t,"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"),be(e,s)},m(u,f){C(u,e,f),r&&r.m(e,null),m(e,t),m(e,n),o=!0},p(u,[f]){r&&r.p&&(!o||f&2)&&Te(r,l,u,u[1],o?Ie(l,u[1],f,null):Ee(u[1]),null),be(e,s=Ve(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&&w(e),r&&r.d(u)}}}function U4(i,e,t){let{$$slots:n={},$$scope:o}=e;return i.$$set=l=>{t(0,e=ne(ne({},e),ge(l))),"$$scope"in l&&t(1,o=l.$$scope)},e=ge(e),[e,o,n]}var Za=class extends q{constructor(e){super(),U(this,e,U4,q4,z,{})}},Od=Za;function K4(i){Ce(i,"svelte-17ceof5",'svg[data-testid="graph-open-icon"] ._closed{visibility:hidden;opacity:0}')}function j4(i){let e,t;return e=new Od({props:{"data-testid":i[0]?"graph-close-icon":"graph-open-icon"}}),{c(){B(e.$$.fragment)},m(n,o){L(e,n,o),t=!0},p(n,[o]){let l={};o&1&&(l["data-testid"]=n[0]?"graph-close-icon":"graph-open-icon"),e.$set(l)},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){_(e.$$.fragment,n),t=!1},d(n){R(e,n)}}}function W4(i,e,t){let{isOpened:n=!1}=e;return i.$$set=o=>{"isOpened"in o&&t(0,n=o.isOpened)},[n]}var Xa=class extends q{constructor(e){super(),U(this,e,W4,j4,z,{isOpened:0},K4)}},Fd=Xa;function G4(i){let e,t;return e=new Fd({props:{isOpened:i[3]}}),{c(){B(e.$$.fragment)},m(n,o){L(e,n,o),t=!0},p(n,o){let l={};o&8&&(l.isOpened=n[3]),e.$set(l)},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){_(e.$$.fragment,n),t=!1},d(n){R(e,n)}}}function Q4(i){let e,t,n;function o(r){i[6](r)}let l={className:i[1]?"hidden":"",testId:"btn-graph",disabled:i[2],ariaLabel:i[5],click:i[4],$$slots:{default:[G4]},$$scope:{ctx:i}};return i[0]!==void 0&&(l.ref=i[0]),e=new pt({props:l}),he.push(()=>He(e,"ref",o)),{c(){B(e.$$.fragment)},m(r,a){L(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}),!t&&a&1&&(t=!0,s.ref=r[0],Fe(()=>t=!1)),e.$set(s)},i(r){n||(d(e.$$.fragment,r),n=!0)},o(r){_(e.$$.fragment,r),n=!1},d(r){R(e,r)}}}function Y4(i,e,t){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,t(0,n)}return i.$$set=f=>{"ref"in f&&t(0,n=f.ref),"hidden"in f&&t(1,o=f.hidden),"disabled"in f&&t(2,l=f.disabled),"graphIsOpened"in f&&t(3,r=f.graphIsOpened),"click"in f&&t(4,a=f.click)},i.$$.update=()=>{if(i.$$.dirty&8)e:t(5,s=r?j("tooltip_interactive_graph_on"):j("tooltip_interactive_graph_off"))},[n,o,l,r,a,s,u]}var Ja=class extends q{constructor(e){super(),U(this,e,Y4,Q4,z,{ref:0,hidden:1,disabled:2,graphIsOpened:3,click:4})}},Sr=Ja;function Z4(i){let e,t,n,o=i[2].default,l=Pe(o,i,i[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"},i[0]],a={};for(let s=0;s<r.length;s+=1)a=ne(a,r[s]);return{c(){e=D("svg"),l&&l.c(),t=D("path"),c(t,"fill","#fff"),c(t,"d","M12 9.096a.4.4 0 0 1-.67.296L7.044 5.493a.67.67 0 0 1 0-.986L11.33.608a.4.4 0 0 1 .67.296V4a8 8 0 1 1-8 8 1 1 0 1 1 2 0 6 6 0 1 0 6-6z"),be(e,a)},m(s,u){C(s,e,u),l&&l.m(e,null),m(e,t),n=!0},p(s,[u]){l&&l.p&&(!n||u&2)&&Te(l,o,s,s[1],n?Ie(o,s[1],u,null):Ee(s[1]),null),be(e,a=Ve(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&&w(e),l&&l.d(s)}}}function X4(i,e,t){let{$$slots:n={},$$scope:o}=e;return i.$$set=l=>{t(0,e=ne(ne({},e),ge(l))),"$$scope"in l&&t(1,o=l.$$scope)},e=ge(e),[e,o,n]}var xa=class extends q{constructor(e){super(),U(this,e,X4,Z4,z,{})}},Pr=xa;import{noop as J4}from"@vkontakte/videoplayer-shared";function x4(i){Ce(i,"svelte-1ot3duq",".mobile.svelte-1ot3duq{position:relative;display:flex;align-items:center;justify-content:center}.mobile.svelte-1ot3duq svg{transform:scale(2)}.icon-background-mobile.svelte-1ot3duq{position:absolute;top:16px;left:16px;border-radius:var(--big-play-radius);background-color:var(--big-play-bg-color);width:calc(100% - 32px);height:calc(100% - 32px)}")}function Hd(i){let e;return{c(){e=P("div"),c(e,"class","icon-background-mobile svelte-1ot3duq")},m(t,n){C(t,e,n)},d(t){t&&w(e)}}}function $4(i){let e,t,n,o,l=i[1]&&Hd(i);return n=new Pr({}),{c(){l&&l.c(),e=O(),t=P("div"),B(n.$$.fragment),c(t,"class","svelte-1ot3duq"),H(t,"mobile",i[1])},m(r,a){l&&l.m(r,a),C(r,e,a),C(r,t,a),L(n,t,null),o=!0},p(r,a){r[1]?l||(l=Hd(r),l.c(),l.m(e.parentNode,e)):l&&(l.d(1),l=null),(!o||a&2)&&H(t,"mobile",r[1])},i(r){o||(d(n.$$.fragment,r),o=!0)},o(r){_(n.$$.fragment,r),o=!1},d(r){r&&(w(e),w(t)),l&&l.d(r),R(n)}}}function ev(i){let e,t,n;function o(r){i[5](r)}let l={className:(i[1]?"btn-m--play":"")+" "+i[3],testId:"btn-replay",ariaLabel:j("tooltip_restart"),disabled:i[2],click:i[4],ariaKeyShortCut:Dn.KeyK,$$slots:{default:[$4]},$$scope:{ctx:i}};return i[0]!==void 0&&(l.ref=i[0]),e=new pt({props:l}),he.push(()=>He(e,"ref",o)),{c(){B(e.$$.fragment)},m(r,a){L(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}),!t&&a&1&&(t=!0,s.ref=r[0],Fe(()=>t=!1)),e.$set(s)},i(r){n||(d(e.$$.fragment,r),n=!0)},o(r){_(e.$$.fragment,r),n=!1},d(r){R(e,r)}}}function tv(i,e,t){let{ref:n=void 0}=e,{isMobile:o=!1}=e,{disabled:l=!1}=e,{className:r=""}=e,{click:a=J4}=e;function s(u){n=u,t(0,n)}return i.$$set=u=>{"ref"in u&&t(0,n=u.ref),"isMobile"in u&&t(1,o=u.isMobile),"disabled"in u&&t(2,l=u.disabled),"className"in u&&t(3,r=u.className),"click"in u&&t(4,a=u.click)},[n,o,l,r,a,s]}var $a=class extends q{constructor(e){super(),U(this,e,tv,ev,z,{ref:0,isMobile:1,disabled:2,className:3,click:4},x4)}},pl=$a;function iv(i){let e,t,n,o=i[2].default,l=Pe(o,i,i[1],null),r=[{xmlns:"http://www.w3.org/2000/svg"},{width:"24"},{height:"24"},{fill:"none"},{"data-testid":"play-prev-chapter-icon"},{role:"img"},i[0]],a={};for(let s=0;s<r.length;s+=1)a=ne(a,r[s]);return{c(){e=D("svg"),l&&l.c(),t=D("path"),c(t,"fill","#fff"),c(t,"d","M12.583 12.917v2.496a1 1 0 0 1-1.522.853l-5.583-3.413a1 1 0 0 1 0-1.706l5.583-3.413a1 1 0 0 1 1.522.853v2.496l5.478-3.349a1 1 0 0 1 1.522.853v6.826a1 1 0 0 1-1.522.853z"),be(e,a)},m(s,u){C(s,e,u),l&&l.m(e,null),m(e,t),n=!0},p(s,[u]){l&&l.p&&(!n||u&2)&&Te(l,o,s,s[1],n?Ie(o,s[1],u,null):Ee(s[1]),null),be(e,a=Ve(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&&w(e),l&&l.d(s)}}}function nv(i,e,t){let{$$slots:n={},$$scope:o}=e;return i.$$set=l=>{t(0,e=ne(ne({},e),ge(l))),"$$scope"in l&&t(1,o=l.$$scope)},e=ge(e),[e,o,n]}var eu=class extends q{constructor(e){super(),U(this,e,nv,iv,z,{})}},zd=eu;function ov(i){let e,t;return e=new zd({}),{c(){B(e.$$.fragment)},m(n,o){L(e,n,o),t=!0},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){_(e.$$.fragment,n),t=!1},d(n){R(e,n)}}}function lv(i){let e,t,n;function o(r){i[4](r)}let l={className:i[1]?"hidden":"",testId:"btn-play-prev-chapter",ariaLabel:j("tooltip_interactive_go_back"),disabled:i[2],click:i[3],$$slots:{default:[ov]},$$scope:{ctx:i}};return i[0]!==void 0&&(l.ref=i[0]),e=new pt({props:l}),he.push(()=>He(e,"ref",o)),{c(){B(e.$$.fragment)},m(r,a){L(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}),!t&&a&1&&(t=!0,s.ref=r[0],Fe(()=>t=!1)),e.$set(s)},i(r){n||(d(e.$$.fragment,r),n=!0)},o(r){_(e.$$.fragment,r),n=!1},d(r){R(e,r)}}}function rv(i,e,t){let{ref:n=void 0}=e,{hidden:o=!1}=e,{disabled:l=!1}=e,{click:r}=e;function a(s){n=s,t(0,n)}return i.$$set=s=>{"ref"in s&&t(0,n=s.ref),"hidden"in s&&t(1,o=s.hidden),"disabled"in s&&t(2,l=s.disabled),"click"in s&&t(3,r=s.click)},[n,o,l,r,a]}var tu=class extends q{constructor(e){super(),U(this,e,rv,lv,z,{ref:0,hidden:1,disabled:2,click:3})}},Ir=tu;import{noop as qd}from"@vkontakte/videoplayer-shared";function sv(i){Ce(i,"svelte-1x1zctw",".icon.svelte-1x1zctw{width:24px !important;height:24px !important;;}.error-stub.svelte-1x1zctw{display:flex;justify-content:center;align-items:center}.inner.svelte-1x1zctw{width:16px;height:16px;background-color:var(--white)}")}function av(i){let e,t,n,o;return{c(){e=P("img"),c(e,"class","icon svelte-1x1zctw"),es(e.src,t=i[0])||c(e,"src",t),c(e,"aria-hidden","true")},m(l,r){C(l,e,r),n||(o=pe(e,"error",i[7]),n=!0)},p(l,r){r&1&&!es(e.src,t=l[0])&&c(e,"src",t)},d(l){l&&w(e),n=!1,o()}}}function uv(i){let e;return{c(){e=P("div"),e.innerHTML='<div class="inner svelte-1x1zctw"></div>',c(e,"class","icon error-stub svelte-1x1zctw")},m(t,n){C(t,e,n)},p:_e,d(t){t&&w(e)}}}function cv(i){let e;function t(l,r){return l[5]?uv:av}let n=t(i,-1),o=n(i);return{c(){o.c(),e=ot()},m(l,r){o.m(l,r),C(l,e,r)},p(l,r){n===(n=t(l,r))&&o?o.p(l,r):(o.d(1),o=n(l),o&&(o.c(),o.m(e.parentNode,e)))},d(l){l&&w(e),o.d(l)}}}function fv(i){let e,t;return e=new pt({props:{className:i[4]?"btn-full-opacity":"",ariaLabel:i[1],click:i[3],disabled:i[6],testId:i[2],$$slots:{default:[cv]},$$scope:{ctx:i}}}),{c(){B(e.$$.fragment)},m(n,o){L(e,n,o),t=!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){t||(d(e.$$.fragment,n),t=!0)},o(n){_(e.$$.fragment,n),t=!1},d(n){R(e,n)}}}function dv(i,e,t){let n,o,l,{iconUrl:r}=e,{ariaLabel:a}=e,{disabled:s=!1}=e,{testId:u}=e,{onClick:f=qd}=e,p=()=>{t(5,l=!0)};i.$$set=h=>{"iconUrl"in h&&t(0,r=h.iconUrl),"ariaLabel"in h&&t(1,a=h.ariaLabel),"disabled"in h&&t(8,s=h.disabled),"testId"in h&&t(2,u=h.testId),"onClick"in h&&t(3,f=h.onClick)},i.$$.update=()=>{if(i.$$.dirty&8)e:t(4,n=f===qd);if(i.$$.dirty&272)e:t(6,o=n||s)};e:t(5,l=!1);return[r,a,u,f,n,l,o,p,s]}var iu=class extends q{constructor(e){super(),U(this,e,dv,fv,z,{iconUrl:0,ariaLabel:1,disabled:8,testId:2,onClick:3},sv)}},Tr=iu;import{throttleFn as qv}from"@vkontakte/videoplayer-shared";import{ChromecastState as bv,PlaybackState as _l,Player as vv,VideoFormat as hl}from"@vkontakte/videoplayer-core";import"@vkontakte/videoplayer-shared";import{assertNonNullable as Fn,getCurrentBrowser as yv,getHighestQuality as wv,InterfaceLanguage as kv,isIOS as Cv,isNonNullable as Sv,loadVKLangPack as Pv,Logger as Iv,map as Tv,merge as Ev,Observable as Av,Subject as Lr,Subscription as au,ValueSubject as Mv,VideoQuality as uu}from"@vkontakte/videoplayer-shared";import{SeekAction as lo}from"@vkontakte/videoplayer-statistics";import"@vkontakte/videoplayer-interactive";import{addScript as mv,assertNonNullable as Oi,Subject as Po}from"@vkontakte/videoplayer-shared";var Ud=(i,e)=>i<400||e<225?5:i<640||e<360?0:i<960||e<540?1:i<1280||e<720?2:3;var pv="//ad.mail.ru/static/admanhtml/rbadman-html5.min.js",Er=class{constructor(e,t){this.adman=null;this.initialVolume=1;this.videoElement=null;this.currentAdSection=null;this.actions=null;this.adsState=null;this.playerState=null;this.events={slotRequested$:new Po,started$:new Po,paused$:new Po,resumed$:new Po,ended$:new Po,skipped$:new Po,clicked$:new Po};this.loadAdman=e=>new Promise((t,n)=>{let o,l=()=>{clearTimeout(o),delete window.admanAsyncInit,window.AdmanHTML?t():n()};mv(pv,e,this.loadTimeout).then(()=>{window.AdmanHTML?t():(window.admanAsyncInit=l,o=window.setTimeout(l,this.initTimeout))}).catch(()=>{n()})});this.onAdsReady=()=>{this.log({message:"ads ready"}),this.startPreroll()};this.onAdStarted=(e,t)=>{Oi(this.adsState),Oi(this.playerState),Oi(this.actions),this.log({message:`ad started, section: ${e}, banner: ${JSON.stringify(t)}`}),this.events.started$.next(e),t.muted&&(this.setVolume(0),this.actions.setMuted(!0),this.log({message:"ad muted start"}),$e(this.playerState.isMobile)&&this.playerState.mobileUnmuteButtonVisible.set(!0)),this.adsState.duration.set(t.duration),this.adsState.playbackState.set("playing"),this.adsState.canSkip.set(t.allowClose),this.adsState.secondsToWatchBeforeSkip.set(t.allowCloseDelay)};this.onAdTimeRemained=({currentTime:e})=>{Oi(this.adsState),this.adsState.position.set(e)};this.onAdPaused=()=>{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.onAdMidrollPoint=()=>{Oi(this.adman),Oi(this.actions),this.log({message:"midroll point"}),this.actions.switchFromVideoToAds(),this.currentAdSection="midroll",this.adman.start("midroll")};this.onAdSkipped=()=>{this.log({message:"ad skipped"}),this.switchToVideo()};this.onAdClosed=()=>{this.log({message:"ad closed"}),this.switchToVideo()};this.onAdCompleted=()=>{this.log({message:"ad completed"}),this.events.ended$.next(),this.switchToVideo()};this.onAdClicked=()=>{this.log({message:"ad clicked"}),this.videoElement?.pause(),this.events.clicked$.next()};this.onAdError=()=>{this.log({message:"ad error"}),this.switchToVideo(!0)};this.log=e.createComponentLog("AdmanWrapper"),this.loadTimeout=t.loadTimeout,this.initTimeout=t.initTimeout}init(e,t,n){this.actions=e,this.adsState=t,this.playerState=n}onAdmanLoadingError(){this.log({message:"adman loading error"}),this.switchToVideo(!0)}initAdman(e){let{width:t,height:n,isFullscreen:o,isAutoplay:l,adsContainer:r,adsVideoElement:a,slotId:s,params:u={},duration:f,previewParam:p}=e,h,b=this.playerState&&$e(this.playerState.vsid);b&&(h=parseInt(b,36));let g={dl:encodeURIComponent(window.location.href),autoplay:l,player_width:t,player_height:n,puid10:Ud(t,n),puid11:o?0:1,preview:p,...h?{request_id:h}:{},duration:f,...u},S={slot:s,wrapper:r,videoEl:a,videoQuality:n,params:g,browser:{mobile:!1}},y=new window.AdmanHTML;y.setDebug(!1),y.onReady(this.onAdsReady),y.onStarted(this.onAdStarted),y.onPlayed(this.onAdPlayed),y.onPaused(this.onAdPaused),y.adMidrollPoint(this.onAdMidrollPoint),y.onClosed(this.onAdClosed),y.onSkipped(this.onAdSkipped),y.onClicked(this.onAdClicked),y.onTimeRemained(this.onAdTimeRemained),y.onCompleted(this.onAdCompleted),y.onError(this.onAdError),y.init(S),this.adman=y,this.videoElement=a,this.events.slotRequested$.next(),this.log({message:`adman init, config: ${JSON.stringify(S)}`})}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 t=this.currentAdSection==="postroll";this.adsState.playbackState.set("inactive"),this.currentAdSection=null,this.playerState.mobileUnmuteButtonVisible.set(!1),this.log({message:`switch to video, isPostroll: ${t}`}),t&&(this.adsState.postrollPassed.set(!0),this.log({message:"postroll passed"})),this.actions.switchFromAdsToVideo(!t)}togglePlay(){Oi(this.adsState),this.log({message:"toggle play"});let e=$e(this.adsState.playbackState);e==="playing"?this.pause():e==="paused"&&this.play()}setInitialVolume(e){this.log({message:`set initial volume ${e}`}),this.initialVolume=e}setVolume(e){this.log({message:`set volume ${e}`}),this.adman?.setVolume(e),this.videoElement&&(this.videoElement.volume=e)}setFullscreen(e){this.log({message:`set fullscreen ${e}`}),this.adman?.setFullscreen(e)}startPreroll(){Oi(this.adman),this.log({message:"start preroll"}),this.setVolume(this.initialVolume),this.currentAdSection="preroll",this.adman.start("preroll")}startPostroll(){Oi(this.adman),Oi(this.actions),this.log({message:"start postroll"}),this.actions.switchFromVideoToAds(),this.currentAdSection="postroll",this.adman.start("postroll")}play(){Oi(this.adman),this.log({message:"ad play"}),this.adman.resume(),this.events.resumed$.next()}pause(){Oi(this.adman),this.log({message:"ad pause"}),this.adman.pause(),this.events.paused$.next()}skip(){Oi(this.adman),this.log({message:"ad skip"}),this.adman.skip(),this.events.skipped$.next()}setPosition(e,t){this.adman?.setPosition(Math.floor(e),Math.floor(t))}destroy(){this.log({message:"destroy"}),this.adman?.destroy()}};var Kd=i=>{let e=Math.round(i);return isNaN(e)||e<40?"":e>=40&&e<55?50:e>=55&&e<90?60:e>=90&&e<180?120:e>=180?240:""};var nu=class{constructor(){this.oneLineRegExp=/\r\n|\n|\r/;this.twoLinesRegExp=/\r\n\r\n|\n\n|\r\r/}parse(e){let t=[],n=e.split(this.twoLinesRegExp);for(let o of n){let 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 Ar,{startTime:u,endTime:f}=s.parse(a);l.startTime=u,l.endTime=f}else if(a.trim()!==""){let s=new ou,{texts:u}=s.parse(a);l.texts=[...l.texts,...u]}(l.startTime||l.endTime)&&l.texts.length>0&&t.push(l)}return t}},Ar=class{constructor(){this.timeRegExp=/(\d{2})?:?(\d{2}):(\d{2}).(\d{2,3})/;this.timingRegExp=new RegExp(`${this.timeRegExp.source}( ?--> ?)${this.timeRegExp.source}`)}parse(e){let t={startTime:0,endTime:0},n=this.timingRegExp.exec(e);return n&&(t.startTime=this.calcTime(n[1],n[2],n[3],n[4]),t.endTime=this.calcTime(n[6],n[7],n[8],n[9])),t}parseTime(e){let t=this.timeRegExp.exec(e);return t?this.calcTime(t[1],t[2],t[3],t[4]):0}isTime(e){return this.timeRegExp.test(e)}calcTime(e="0",t="0",n="0",o="0"){let l=Number(e)*60*60,r=Number(t)*60,a=Number(n),s=+`0.${o}`;return l+r+a+s}},ou=class{constructor(){this.letterTagRegExp=/<[a-z]*>|<\/[a-z]*>/}parse(e){let t={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 Ar;for(let r of o)l.isTime(r)?t.texts.push({type:"timestamp",value:l.parseTime(r)}):t.texts.push({type:"text",value:r});return t}},jd=nu;import{isNonNullable as lu}from"@vkontakte/videoplayer-shared";var oo,wn,ru=0,su=!1,Wd=(i,e,t)=>{let n=i>=ru,o=i<ru,l=(u,f=0,p=0)=>u<f&&u<p,r=(u,f=0,p=0)=>u>=f&&u<=p,a=(u,f=0,p=0)=>u>f&&u>p,s=t.find(({lang:u})=>u===e.value)?.subtitles;if(ru=i,o&&(su=!1),lu(oo)&&r(i,oo.startTime,oo.endTime)&&oo.lang===e.value)return oo;if(!lu(wn)&&s?.length&&!su){let u=s.find(({startTime:f,endTime:p})=>r(i,f,p)||n&&l(i,f,p));wn=u&&{...u,lang:e.value},oo=void 0,!lu(wn)&&s[s.length-1].endTime<i&&(su=!0);return}else{if(r(i,wn?.startTime,wn?.endTime))return oo=wn,wn=void 0,oo;(n&&a(i,wn?.startTime,wn?.endTime)||o&&l(i,wn?.startTime,wn?.endTime))&&(wn=void 0)}};var Mr={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-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"};import{Subscription as _v}from"@vkontakte/videoplayer-shared";import{OneStat as hv}from"@vkontakte/videoplayer-statistics";var Vr=class{constructor(e,t){this.oneStat=new hv(e,t),this.statSubscription=new _v}destroy(){this.oneStat.destroy(),this.statSubscription.unsubscribe()}};var Gd=({interfaceLanguage:i,videoId:e,isClip:t,isLiveCatchUpMode:n,statAuthToken:o,isAudioDisabled:l,canDownload:r,callbacks:a,webApi:s,videoEpisodes:u,previewThumbsData:f,uiConfig:p,coreConfig:h,player:b,disabledControls:g,isInteractive:S,interactiveRanges$:y,isInteractiveTime$:T,replayInteractive:k,hasInteractiveBranches:v,playPrevChapterDisabledTooltip:I,additionalButtons:W,looped:Q=!1,statistics:G,saveRate:le})=>{let ae={...h,configName:[...h.configName??[],"ui"],isAudioDisabled:l,live:{...h.live??{},isLiveCatchUpMode:!!n}},V=p,A=b||new vv(ae),$=new Iv,J=new Er($,{loadTimeout:V.ads.loadTimeout,initTimeout:V.ads.initTimeout}),x=go.getInstance(),N=s?.pictureInPictureApi,te=s?.annotationsApi,E=$.createComponentLog("Store"),Y,Le,je={},qe=yv(),Je=G?bt(G.oneStat.vsid$):vn(void 0),Ne=De($n()),we=N?.info.isActive$??new Mv(!1),X=N?.info.type,ve=De(0),Oe=De([]),Xe=Ev(A.events.fatalError$,A.events.managedError$).subscribe(M=>Oe.update(de=>[...de,M])),xe=vn(!1,M=>{let de=A.events.fatalError$.subscribe(()=>M(!0));return()=>de.unsubscribe()}),ke=async M=>{let de=Object.values(kv).includes(M);if(V.downloadVKLanguages&&(de&&V.updateBuiltinLanguages||!ms(M))){let Ge;try{Ge=await Pv(M,Dc,Nc)}catch(st){G?.oneStat?.logError({errorType:"VKLangPack",fatal:!1}),x?.report(st,{errorType:"VKLangPack",fatal:!1})}Ge&&(ds({language:M,pack:Ge,fallback:V.defaultLanguage}),Re.set(M))}ms(M)&&Re.set(M)},Re=De(i);ke(i);let Ue=(M,de)=>{let Me=$e(Re);return ps(Me,M,de,V.defaultLanguage)},We=De("thumb"),se=(()=>{let M=Ti([xe,We],([de,Me])=>de?"crashed":Me);return{...M,is:de=>$e(M)===de}})(),oe=(()=>{let M=De(new Set(g));return{...M,add:de=>{M.update(Me=>new Set([...Me].concat(de)))},remove:de=>{M.update(Me=>{let Ge=[...Me];return new Set(Array.isArray(de)?Ge.filter(st=>!de.includes(st)):Ge.filter(st=>st!==de))})},includes:de=>{let Me=$e(M);return Array.isArray(de)?de.every(Ge=>Me.has(Ge)):Me.has(de)}}})();E({message:"create store"});let Se=M=>{let de=M.container;de.append(A.experimental.element$.getValue()),ye=new MutationObserver(Me=>{let{removedNodes:Ge}=Me[0];Ge.length&&de.append(A.experimental.element$.getValue())}),ye.observe(de,{childList:!0})},fe=M=>{E({message:`init video, config: ${JSON.stringify(M)}`}),S?Se(M):A.initVideo(M),M.subtitles&&A.setExternalTextTracks(M.subtitles),Y=M},Ae=new Lr,Ze=M=>Ae.next(M),ut=new Lr,ct=new Lr,at=new Lr,ye=null,mt={actionRewind$:ut,actionSeek$:ct,inPiP$:we,inFullscreen$:new Av(M=>Ne.subscribe(de=>M.next(de))),actionSetSubtitle$:at,nextMovie$:Ae};if(G){let{oneStat:M,statSubscription:de}=G;de.add(M.attachTo(A)),de.add(M.attachToUi(mt)),de.add(M.attachToAds(J.events)),M.authorize(o).catch(Me=>{E({message:`onestat auth error ${String(Me)}`})})}if(x){let M=new au,de=(Me,Ge)=>M.add(Me.subscribe(Ge));if(de(A.events.managedError$,Me=>{x.logIError(Me)}),de(A.events.fatalError$,Me=>{x.logIError(Me,!0)}),G){let{oneStat:Me}=G;de(Me.experimental.error$,Ge=>{x.logIError(Ge)})}x.sentrySubscription.add(M)}let lt=()=>{Cv()&&Le&&hf(Le)},dt=new au().add(A.experimental.element$.subscribe(M=>{M&&(Le=M,M.classList.add("player-media"),vo(N)&&(N.updateVideoElement(),N.registryEventHandlers()),S&&M.setAttribute("pip","false"))})).add(A.events.ended$.subscribe(()=>{lt(),a?.onEnded?.()})).add(A.events.started$.subscribe(async()=>{vo(N)&&await N?.revealPictureInPicture();let M=A.info.muted$.getValue();a?.onStarted?.(),je.onStarted?.(M)})).add(A.events.willSeek$.subscribe(({from:M,to:de})=>{a?.onSeek?.(M,de)})).add(A.info.position$.subscribe(M=>{let de=A.info.duration$.getValue();a?.onTimeupdate?.(de,M),J.setPosition(M,de)})).add(A.events.fatalError$.subscribe(()=>{a?.onCrashed?.()})).add(A.events.firstBytes$.subscribe(()=>{K.state.isFirstBytes$.set(!0)})).add(A.info.is3DVideo$.subscribe(M=>{K.ui.is3DVideo.set(M)})).add(A.info.isEnded$.subscribe(M=>{S&&(M?(T?.getValue()&&oe.add(Rl),oe.add("PLAY_BUTTON")):oe.remove("PLAY_BUTTON"))})).add(A.info.liveTime$.subscribe(M=>{a?.onLiveTime?.(M)})).add(A.info.isStalled$.subscribe(M=>{a?.onStalledChanged?.(M)})).add(J.events.started$.subscribe(()=>{a?.adsInfo?.onStarted?.()})).add(J.events.ended$.subscribe(()=>{a?.adsInfo?.onCompleted?.()})),ht=new au,Et=()=>{ht.add(A.events.log$.subscribe(M=>{console.debug("%c sdk ","background:#9ddcf7;",`sdk component: ${M.component}`,M.message)})).add($.log$.subscribe(M=>{console.debug("%c ui ","background:#f3da0b;",`ui component: ${M.component}.`,M.message)}))},Ke=()=>{ht.unsubscribe()},Qt=(M,de)=>{A.startCameraManualRotation(M,de)},Bt=(M=!1)=>{A.stopCameraManualRotation(M)},Mt=(M,de,Me)=>{A.moveCameraFocusPX(M,de,Me)},ti=()=>{A.holdCamera()},it=()=>{A.releaseCamera()},me=vn(A.info.position$.getValue(),M=>{let de,Me,Ge=()=>{let st=A.info.playbackState$.getValue(),zt=A.info.isLive$.getValue(),ei=A.info.duration$.getValue(),qt=A.info.position$.getValue();if([_l.PLAYING,_l.PAUSED].includes(st)){let sn=zt?qt-ei:A.getExactTime();sn!==Me&&M(sn),Me=sn}de=requestAnimationFrame(Ge)};return Ge(),()=>cancelAnimationFrame(de)}),vt=bt(we),_t=bt(A.info.playbackState$),Dt=bt(A.info.currentBuffer$),wt=bt(A.info.isEnded$),At=bt(A.info.isLive$),Ut=V.features.playbackRate?bt(A.info.canChangePlaybackSpeed$):vn(!1),en=bt(A.info.liveBufferTime$),di=bt(A.info.volume$),mi=bt(A.info.muted$),Ei=rs(A.info.autoQualityLimits$.pipe(Tv(({max:M})=>M!==void 0)),A.info.autoQualityLimits$.getValue()?.max!==void 0),Yt=bt(A.info.autoQualityLimitingAvailable$),pi=bt(A.info.availableQualities$),tn=bt(A.info.availableQualitiesFps$),_i=bt(A.info.chromecastState$),Fi=bt(A.info.chromecastDeviceName$),ii=bt(A.info.currentFormat$),Ai=bt(A.info.throughputEstimation$),hi=bt(A.info.videoBitrate$),Hi=bt(A.info.intrinsicVideoSize$),gi=bt(A.info.duration$),ni=bt(A.info.isAudioAvailable$),Pt=null,Nt=A.info.isBuffering$,bi=vn(Nt.getValue(),M=>{let de=Nt.subscribe(Me=>{Me&&Pt===null?Pt=window.setTimeout(()=>{M(Nt.getValue()),Pt=null},V.loaderDelay):M(Me)});return()=>{de.unsubscribe(),Pt&&clearTimeout(Pt)}}),vi=()=>{Pt&&clearTimeout(Pt),Pt=null},Ot=Ti([gi,At],([M,de])=>de?-M:M),oi=Ti([_t],([M])=>M===_l.PLAYING),li=bt(A.info.atLiveEdge$),Vt=bt(A.info.atLiveDurationEdge$),It=bt(A.info.position$),Kt=Ti([It,gi],([M,de])=>isFinite(M)&&isFinite(de)&&!!de),Mi=Ti([_i],([M])=>M===bv.CONNECTED),Zt=De(void 0),nn=bt(A.info.isAutoQualityEnabled$,M=>M&&Zt.set(void 0)),on=bt(A.info.currentQuality$,()=>Zt.set(void 0)),jt=Ti([Zt,on],([M,de])=>M??de),yi=Ti([pi,tn,nn,jt,ii],([M,de,Me,Ge,st])=>{let zt=[];st!==hl.MPEG&&zt.push({value:"auto",displayValue:Ue("auto_quality_option"),selected:Me});let ei=M.filter(qt=>qt!==uu.INVARIANT);for(let qt of ei){let sn=de[qt],Jn=qt===uu.INVARIANT?Ue("auto_quality_option"):qt;zt.push({value:qt,displayValue:`${Jn}${sn?Kd(sn):""}`,selected:Me?!1:qt===Ge})}return zt}),zi=bt(A.info.currentPlaybackRate$),wi=Ti([zi,li,Vt],([M,de,Me])=>{let Ge=Me||S?1:V.controls.playbackRateMin,st=de?1:V.controls.playbackRateMax,zt=V.controls.playbackRateStep,ei=[];for(let qt=Ge;qt<=st;qt+=zt)ei.push({value:qt,displayValue:qt===1?Ue("playback_rate_1"):Ue("playback_rate",{multiplier:qt.toString(10)}),selected:M===qt});return ei}),ri=V.features.subtitles?bt(A.info.availableTextTracks$):vn([]),Ft=Ti([ri],([M],de)=>{let Me=[],Ge=[];for(let st of M)st.url&&Me.push(fetch(st.url));Promise.allSettled(Me).then(st=>{for(let[zt,ei]of st.entries())ei.status==="fulfilled"&&ei.value.text().then(qt=>{let sn=new jd,Jn=M[zt].language,el=!!M[zt].isAuto,tl=sn.parse(qt);Jn&&tl&&Ge.push({lang:Jn,subtitles:tl,isAuto:el}),zt===st.length-1&&de(Ge)})})}),Wt={displayValue:Ue("subtitles_off"),value:"off"},ki=De({...Wt}),Xt=Ti([Ft,ki,Ft],([M,de])=>{if(M?.length>0){let Me=[{...Wt,selected:de?.value===Wt.value}];for(let{lang:Ge,isAuto:st}of M)Mr[Ge]&&Me.push({displayValue:st?Ue("subtitles_auto",{language:Mr[Ge]}):Mr[Ge],value:Ge,selected:de?.value===Ge,isAuto:st});return Me}else return[]}),Yi=Ti([me,ki,Ft],([M,de,Me])=>{if(de&&de.value!==Wt.value)return Wd(M,de,Me)}),Ci=Ti([Yi],([M])=>M?.texts?M.texts:[]),ln=De(!0),rn=Ti([Dt,Ot,It,en],([M,de,Me,Ge])=>{let st=M?.end??0;if(!Ge)return st/de;let ei=-Me+Ge-de;return(st-ei)/de}),Zi=bt(A.info.availableSources$),qi=Ti([Zi],([M])=>Object.keys(M?.[hl.MPEG]||{}).length>0),Vi=()=>{let M=Object.keys(A.info.availableSources$?.getValue()?.[hl.MPEG]||{}),de=wv(M)||uu.Q_144P;return Y.sources[hl.MPEG]?.[de]},Gt=()=>{let M=Vi();M?Qc(M,Y?.meta?.title||"video"):E({message:"There is no URL for download video"})},si=()=>{E({message:"toggle muted"});let M=A.info.muted$.getValue(),Ge=!(A.info.volume$.getValue()===0||M);Ri(Ge)},Si=()=>{K.ui.settingsMenuVisible.set(!1)},Li=M=>{K.ui.settingsMenuOpenedByKeyboard.set(!!M),K.ui.settingsMenuVisible.set(!0)},Xi=M=>{$e(K.ui.settingsMenuVisible)?Si():Li(M)},Pi=(M,de=M,Me=!1)=>{let Ge=!Me,st=A.info.muted$.getValue();E({message:`set volume, volume: ${M}, preferredVolume: ${de}, internalCall: ${Ge}`}),A.setVolume(M),J.setVolume(M),Ge&&a?.onVolumeChange?.(M),us(de),st?(A.setMuted(!1),Ge&&a?.onUnmute?.(),Ol(!1)):!st&&M===0&&(A.setMuted(!0),Ge&&a?.onMute?.(),Ol(!0))},Ri=(M,de=!1)=>{let Me=!de,Ge=A.info.volume$.getValue();if(E({message:`set muted, currentVolume: ${Ge}, mute: ${M}, internalCall: ${Me}`}),A.setMuted(M),J.setVolume(M?0:Ge),Ol(M),Me&&(M?a?.onMute?.():a?.onUnmute?.()),Ge===0){let st=Nl()??V.volumeDefault;st===0&&(st=V.volumeMinRestore,us(st)),A.setVolume(st),J.setVolume(st),Me&&a?.onVolumeChange?.(st)}},Bi=De(!1),Ye=M=>{Bi.set(M),A.setLooped(M)};Ye(Q);let Ui=()=>{A.prepare()},Ht=()=>{if(Fn(K),$e(K.ui.controls.disabledControls$).has("PLAY_BUTTON"))return;if(E({message:"toggle play"}),$e(K.playerPhase)==="ads"){J.togglePlay();return}let de=()=>{E({message:"toggle play, call player.play"}),A.play(),a?.onPlay?.()},Me=()=>{E({message:"toggle play, call player.pause"}),A.pause(),a?.onPause?.()};if(A.info.isEnded$.getValue()){if(E({message:"toggle play, video ended, seek to 0"}),ut.next(),ct.next(lo.REWIND),S){k?.();return}A.seekTime(0),de()}else A.info.playbackState$.getValue()!==_l.PLAYING?de():Me()},ze=M=>{E({message:`set quality, quality: ${M}`}),A.setAutoQuality(M==="auto"),M!=="auto"?($c(e,M),Zt.set(M),A.setQuality(M)):cs()},Ji=M=>{E({message:`set trafficSavingEnabled, value: ${M}`}),A.setAutoQualityLimits({max:M?V.trafficSavingLimit:void 0}),lf(M)},Di=M=>{A.setPlaybackRate(M),V.features.saveRate&&le&&!A.info.isLive$.getValue()&&sf(M)},Ki=()=>{let M=$e(wi),de=M.findIndex(({selected:Ge})=>Ge);if(de===M.length-1)return;let Me=M[de+1];Di(Me.value)},xi=()=>{let M=$e(wi),de=M.findIndex(({selected:Ge})=>Ge);if(de===0)return;let Me=M[de-1];Di(Me.value)},ji=M=>{M&&M.value!==Wt.value&&at.next(M.isAuto?M.value+"_auto":M.value),ki.set(M)},fn=()=>{let M=$e(Xt),de=$e(ki),Me=$e(Re);if(de?.value===Wt.value){let Ge=M.filter(st=>st.value!==Wt.value).find(st=>st.value===Me)||M[1];ji(Ge??{...Wt})}else ji({...Wt,selected:!1})},Jt=(M,de,Me=!0)=>{if(E({message:`seek to time, time: ${M}`}),ct.next(de),A.info.isLive$.getValue()){let Ge=A.info.duration$.getValue(),st=Math.min(0,Ge+M);A.seekTime(st,Me)}else{if(T?.getValue())return;A.seekTime(ao(M),Me)}},xt=M=>{E({message:`seek to episode start time: ${M}`}),Jt(M,lo.EPISODE,!0)},Wi=(M,de)=>{E({message:`seek to percent, percent: ${M}`});let Me=Math.round($e(Ot)*M);Jt(Me,de,!1)},ai=M=>{E({message:`seek external, time: ${M}`}),ct.next(lo.UNKNOWN),A.seekTime(A.info.isLive$.getValue()?-M:M)},re=M=>{E({message:`set auto quality limitation. Max: ${M.max??"none"}. Min: ${M.min??"none"}`}),A.setAutoQualityLimits(M)},ft=M=>{E({message:`seek external to episode start time: ${M}`}),Jt(M,lo.EPISODE,!0)},ui=M=>{E({message:`set playback rate to: ${M}`}),A.setPlaybackRate(M)},ci=De(void 0),$t=De(!1),Gi=M=>{E({message:`start scrubbing, progress: ${M}`}),$t.set(!0),kn(M)},kn=M=>{ci.set(M)},hn,dn,Lt=()=>{ci.set(void 0),$t.set(!1)},gn=()=>{clearTimeout(dn),clearTimeout(hn),hn=window.setTimeout(()=>{Lt()},500),Le?.removeEventListener("seeked",gn)},Vn=M=>{E({message:`complete scrubbing, progress: ${M}`}),Wi(M,lo.SLIDER),$e(K.ui.isMobile)&&$e(K.state.currentFormat$)===hl.HLS?(Le?.addEventListener("seeked",gn),dn=window.setTimeout(()=>{gn()},300)):Lt()},Cn=Ti([me,Ot,ci],([M,de,Me],Ge)=>{Ge(Sv(Me)?Me*de:M)}),Sn=De({width:0,height:0}),bn=Ti([Sn],([{width:M}],de)=>{let Me=hd(M);de(Me)}),$i=De(!1),ie=Ti([bn,$i],([M,de])=>de?W.filter(Me=>!Me.hideOnMobile):W.filter(Me=>!Me.hideOnDesktopGridTypes?.includes(M))),yt=Ti([$i,xe],([M,de],Me)=>{Me(M&&de)}),Pn=()=>{ct.next(lo.LIVE),E({message:"switch to active live"}),A.seekTime(0),A.info.playbackState$.getValue()!==_l.PLAYING&&K.actions.internal.togglePlay()},Ln=()=>J.skip(),Rn=(M=!0)=>{Fn(K),E({message:`switch from ads to video, callPlay: ${M}`}),We.set("video"),M&&A.play()},Gn=()=>{Fn(K),E({message:"switch from video to ads"}),K.actions.internal.pause(),lt(),We.set("ads")},Qn=M=>{Fn(K);let de=M?"waitingLive":"thumb";We.set(de)},Yn=M=>{Fn(K);let de=M?"waitingRecord":"thumb";We.set(de)},Zn=()=>(Fn(K),Wc(A,Y,K)),Xn=()=>(Fn(K),Gc(A,Y,K)),ro=()=>Le,ee=()=>{E({message:"toggle chromecast"}),A.toggleChromecast()},an=M=>{Fn(K);let de=!M;if($e(K.playerPhase)==="ads"){E({message:`pause ads, internalCall: ${de}`}),J.pause();return}E({message:`pause video, internalCall: ${de}`}),de&&a?.onPause?.(),A.pause()},Io=M=>{Fn(K);let de=!M;if($e(K.playerPhase)==="ads"){E({message:`play ads, internalCall: ${de}`}),J.play();return}E({message:`play video, internalCall: ${de}`}),de&&a?.onPlay?.(),A.play()},To=(M,de)=>{Fn(K),E({message:`first start, show ads: ${M}, internalCall: ${!de}`}),M?We.set("ads"):(We.set("video"),de?A.play():K.actions.internal.togglePlay())},zn=()=>(E({message:"getting time codes"}),u),so=()=>{let M=zn();if(!M||[0,1].includes(M.length))return;let de=A.info.position$.getValue();return M.find(Me=>Me.time>de)},qn=M=>{let de=M;de||(de=so()),de&&(E({message:"seek to next episode"}),Jt(de.time,lo.EPISODE,!0))},Un=()=>{let M=zn();if(!M||[0,1].includes(M.length))return;let de=A.info.position$.getValue(),Me=M.findIndex(st=>st.time>de),Ge=Me===-1?M.length-2:Me-2;if(!(Ge<0))return M[Ge]},Eo=M=>{let de=M;de||(de=Un()),de&&(E({message:"seek to prev episode"}),Jt(de.time,lo.EPISODE,!0))},Ao=()=>(E({message:"getting preview thumbs data"}),f),$o=async()=>{N?.isActive()?await N?.remove():await N?.request()},Mo=(M=-90)=>{ve.update(de=>de+M)},Bn=De([]);y?.subscribe(M=>{let de=[];for(let Me=0;Me<M.length;Me++){let{range:[Ge,st],subjects:zt}=M[Me];Me===0&&Ge!==0&&de.push({time:0,text:"",interactive:!1,completed:!0}),de.push({time:Ge/1e3,text:"",interactive:!0,completed:!zt.length}),st!==1/0&&de.push({time:st/1e3,text:"",interactive:!1,completed:!0})}Bn.set(de)});let Vo=De(!1);T?.subscribe(M=>{M&&$e($t)&&Lt()});let ao=M=>{if(!S)return M;let de=$e(Bn),Me=$e(Ot),st=$e(It)/Me,zt=de.find(ei=>ei.interactive&&!ei.completed&&ei.time>st);return typeof zt?.time=="number"?Math.min(M,zt.time-.05):M},uo=()=>{K.ui.episodes.panelOpened$.set(!1)},Lo=()=>{clearTimeout(dn),clearTimeout(hn),dt.unsubscribe(),ht.unsubscribe(),A.destroy(),J.destroy(),G?.destroy(),x?.destroy(),Xe.unsubscribe(),ye?.disconnect(),ye=null},K={interfaceLanguage$:Re,initVideo:fe,videoId:e,isClip:t,playerPhase:se,vsid:Je,state:{positionExact$:me,positionWithScrubbing$:Cn,duration$:Ot,playbackState$:_t,isPlaying$:oi,isLoaderVisible:bi,bufferedProgress$:rn,isLive$:At,canChangePlaybackSpeed$:Ut,isActiveLive$:li,isOldestAvailableLive$:Vt,isRewindableLive$:Kt,isEnded$:wt,muted$:mi,volume$:di,trafficSavingEnabled$:Ei,autoQualityLimitingAvailable$:Yt,currentQuality$:jt,isAutoQualityEnabled$:nn,availableQualities$:yi,currentPlaybackRate$:zi,availablePlaybackRates$:wi,currentSubtitle$:ki,availableSubtitlesList$:Xt,currentSubtitleCaptions$:Ci,isAutoSubtitleCaptionVisible$:ln,chromecastState$:_i,chromecastDeviceName$:Fi,chromecastConnected$:Mi,currentFormat$:ii,throughputEstimation$:Ai,videoBitrate$:hi,videoSize$:Hi,errorLog$:Oe,crashed$:xe,isAudioAvailable$:ni,isAudioDisabled:!!l,canDownload:V.features.download&&!!r,availableSources$:Zi,hasMpegSources$:qi,isInteractive:S,showInteractiveGraph:V.features.interactiveGraph,showSeekToInteractive:V.features.seekToInteractive,showPlayPrevChapter:V.features.interactivePlayPrevChapter,showInteractiveTimeIndicator:V.features.interactiveTimeIndicator&&!!$e(Bn).length,interactiveEpisodes$:Bn,isInteractiveTime$:T?bt(T):De(!1),graphIsOpened$:De(!1),isInteractiveExpectation$:Vo,hasInteractiveBranches:v,playPrevChapterDisabledTooltip:I,looped$:Bi,isFirstBytes$:De(!1)},ui:{controlsVisible:De(!1),touched:De(!1),controls:{prevButton:De(void 0),playButton:De(void 0),replayButton:De(void 0),nextButton:De(void 0),playPrevChapterButton:De(void 0),seekToInteractiveButton:De(void 0),interactiveGraphButton:De(void 0),liveButton:De(void 0),time:De(void 0),episodes:De(void 0),volume:De(void 0),subtitles:De(void 0),settings:De(void 0),context:De(void 0),chromecast:De(void 0),pip:De(void 0),fullscreen:De(void 0),vkLogo:De(void 0),interactiveTimeIndicator:De(void 0),additionalButtons:W.length?W.reduce(M=>[...M,De(void 0)],[]):[],disabledControls$:oe},modals:{hotKeyMap:{show:De(!1),data:De({title:"",closeBtnText:"",groups:[]})}},isFullscreen:Ne,rotateAlpha:ve,isAutoplay:De(!1),debugPanelVisible:De(!1),episodes:{panelOpened$:De(!1),openedByKeyboard$:De(!1)},contextMenu:{visible$:De(!1),btnRef$:De(void 0),openedByBtnKeyboard$:De(!1),openedByHotKey$:De(!1),lastActiveElem$:De(void 0),showContextMenuBtn$:De(!1),position$:De({top:0,left:0})},playerSize:Sn,isMobile:$i,mobileNotReportControlHidden$:yt,mobileUnmuteButtonExpanded:De(!1),mobileUnmuteButtonVisible:De(!1),icon3DVideoVisible:De(!1),settingsMenuVisible:De(!1),settingsMenuOpenedByKeyboard:De(!1),scrubbingInProgress:$t,is3DVideo:De(!1),isPictureInPictureActive$:vt,pictureInPictureType$:vn(X),clientInfo$:vn(qe),currentGridType$:bn,additionalButtons$:ie,interactiveHideMobileControls:De(!1),overlayContainer$:De(void 0),startedByKeyboard$:De(!1)},ads:{position:De(0),duration:De(0),playbackState:De("inactive"),canSkip:De(!1),secondsToWatchBeforeSkip:De(0),postrollPassed:De(!1)},webApi:{pictureInPictureApi:N,annotationsApi:te},actions:{internal:{preload:Ui,firstStart:M=>To(M,!1),pause:()=>an(!1),togglePlay:Ht,toggleMuted:si,toggleSettingsMenu:Xi,openSettingsMenu:Li,closeSettingsMenu:Si,setVolume:Pi,setQuality:ze,setTrafficSavingEnabled:M=>Ji(M),setPlaybackRate:Di,incrementPlaybackRate:Ki,decrementPlaybackRate:xi,setSubtitle:ji,toggleSubtitle:fn,togglePictureInPicture:$o,startScrubbing:Gi,progressScrubbing:kn,completeScrubbing:Vn,toggleChromecast:ee,switchToActiveLive:Pn,switchFromAdsToVideo:Rn,switchFromVideoToAds:Gn,skipAd:Ln,setWaitingLive:Qn,setWaitingRecord:Yn,getDebugTextData:Zn,getDebugPanelData:Xn,getVideoElement:ro,seekTime:(M,de,Me)=>Jt(M,de,Me),clearDelayedBufferingCheckTimeout:vi,seekEpisodeStartTime:xt,seekToPercent:Wi,getNextEpisode:so,seekToNextEpisode:qn,getPrevEpisode:Un,seekToPrevEpisode:Eo,startLogging:Et,stopLogging:Ke,startCameraManualRotation:Qt,stopCameraManualRotation:Bt,moveCameraFocusPX:Mt,holdCamera:ti,releaseCamera:it,getVideoEpisodes:zn,getPreviewThumbsData:Ao,downloadVideo:Gt,addLanguage:ds,setLanguage:ke,nextMovie:Ze,videoRotate:Mo,correctSeekTimeToInteractive:ao,replayInteractive:k,setLooped:Ye},external:{firstStart:M=>To(M,!0),play:()=>Io(!0),pause:()=>an(!0),seekTime:M=>ai(M),seekEpisodeStartTime:M=>ft(M),setPlaybackRate:M=>ui(M),setAutoQualityLimits:M=>re(M),setMuted:M=>Ri(M,!0),setVolume:M=>Pi(M,M,!0),returnFocusToEpisodes:uo}},callbacks:a,setUiCallbacks:M=>{je={...M}},getAdmanWrapper:()=>J,getLogger:()=>$,destroy:Lo};return K};var Br=(i,e,t,n)=>{if(!i)return;let o=["tooltipPointerOffsetX","disabledControls$","additionalButtons"],l=["interactiveTimeIndicator"],r=i.getBoundingClientRect();for(let[a,s]of Object.entries(e))if(!["tooltipPointerOffsetX","disabledControls$","additionalButtons"].includes(a)){let u=t[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 Dr=async(i,e,t)=>{await En(),e&&t&&(t.focus(),i.set(!1))};function Vv(i){let e,t,n,o=i[2].default,l=Pe(o,i,i[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"},i[0]],a={};for(let s=0;s<r.length;s+=1)a=ne(a,r[s]);return{c(){e=D("svg"),l&&l.c(),t=D("path"),c(t,"fill","#fff"),c(t,"d","M18 10c1.1 0 2 .9 2 2s-.9 2-2 2-2-.9-2-2 .9-2 2-2m-6 4c-1.1 0-2-.9-2-2s.9-2 2-2 2 .9 2 2-.9 2-2 2m-6 0c-1.1 0-2-.9-2-2s.9-2 2-2 2 .9 2 2-.9 2-2 2"),be(e,a)},m(s,u){C(s,e,u),l&&l.m(e,null),m(e,t),n=!0},p(s,[u]){l&&l.p&&(!n||u&2)&&Te(l,o,s,s[1],n?Ie(o,s[1],u,null):Ee(s[1]),null),be(e,a=Ve(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&&w(e),l&&l.d(s)}}}function Lv(i,e,t){let{$$slots:n={},$$scope:o}=e;return i.$$set=l=>{t(0,e=ne(ne({},e),ge(l))),"$$scope"in l&&t(1,o=l.$$scope)},e=ge(e),[e,o,n]}var cu=class extends q{constructor(e){super(),U(this,e,Lv,Vv,z,{})}},Qd=cu;function Rv(i){let e,t;return e=new Qd({}),{c(){B(e.$$.fragment)},m(n,o){L(e,n,o),t=!0},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){_(e.$$.fragment,n),t=!1},d(n){R(e,n)}}}function Bv(i){let e,t,n;function o(r){i[8](r)}let l={className:i[3]?"opened":"",testId:"btn-context-menu",disabled:i[0],ariaLabel:i[1],click:i[5],focus:i[6],blur:i[7],ariaExpanded:i[3],$$slots:{default:[Rv]},$$scope:{ctx:i}};return i[2]!==void 0&&(l.ref=i[2]),e=new pt({props:l}),he.push(()=>He(e,"ref",o)),{c(){B(e.$$.fragment)},m(r,a){L(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}),!t&&a&4&&(t=!0,s.ref=r[2],Fe(()=>t=!1)),e.$set(s)},i(r){n||(d(e.$$.fragment,r),n=!0)},o(r){_(e.$$.fragment,r),n=!1},d(r){R(e,r)}}}function Dv(i,e,t){let n,{disabled:o=!1}=e,{ariaLabel:l=""}=e,r=et(),a=r.ui.contextMenu.visible$;F(i,a,T=>t(3,n=T));let s=r.ui.contextMenu.openedByBtnKeyboard$,u=r.ui.contextMenu.showContextMenuBtn$,f=r.ui.contextMenu.position$,p=r.ui.contextMenu.btnRef$,h,b=T=>{let k=Ko(T),v=Bf(h);f.set(v),s.set(k),a.set(!n)},g=()=>{u.set(!0)},S=()=>{u.set(!1)};function y(T){h=T,t(2,h)}return i.$$set=T=>{"disabled"in T&&t(0,o=T.disabled),"ariaLabel"in T&&t(1,l=T.ariaLabel)},i.$$.update=()=>{if(i.$$.dirty&4)e:h&&p.set(h)},[o,l,h,n,a,b,g,S,y]}var fu=class extends q{constructor(e){super(),U(this,e,Dv,Bv,z,{disabled:0,ariaLabel:1})}},Yd=fu;function Nv(i){Ce(i,"svelte-17imlp9",".interactive-episode-icon-animated.svelte-17imlp9{position:absolute;top:16px;right:16px;width:32px;height:32px;transition:0.3s;opacity:1}.invisible.svelte-17imlp9{opacity:0;visibility:hidden}.fullscreen.svelte-17imlp9:not(.mobile){width:40px;top:19px;right:23px;height:40px}.mobile.svelte-17imlp9{width:28px;height:28px;top:12px;right:14px}.fullscreen.mobile.svelte-17imlp9{width:32px;height:32px}@media screen and (orientation: portrait){.interactive-episode-icon-animated.mobile.fullscreen.svelte-17imlp9{top:40px;right:16px}}@keyframes svelte-17imlp9-pulse{0%{transform:scale(1);border-width:1px;opacity:0}10%{opacity:1}50%{transform:scale(1.5);border-width:1px;opacity:0.5}100%{transform:scale(1.5);border-width:0.5px;opacity:0}}.pulse.svelte-17imlp9{display:block;content:'';border:1px solid #fff;position:absolute;top:0;left:0;right:0;bottom:0;border-radius:100%;transform:scale(1.8);animation:1s svelte-17imlp9-pulse infinite;transition:0.3s;pointer-events:none}.pulse.paused.svelte-17imlp9{animation-play-state:paused}.interactive-episode-icon-animated svg{width:100%;height:100%}.ref-block.svelte-17imlp9{position:absolute;top:0;width:100%;height:100%;visibility:hidden}.hidden.svelte-17imlp9{display:none}")}function Ov(i){let e,t;return e=new dr({props:{completed:!0}}),{c(){B(e.$$.fragment)},m(n,o){L(e,n,o),t=!0},p:_e,i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){_(e.$$.fragment,n),t=!1},d(n){R(e,n)}}}function Fv(i){let e,t,n,o,l,r,a,s,u,f;function p(b){i[22](b)}let h={tooltipContent:j("tooltip_interactive_interaction_time_indicator"),tooltipActive:i[5],initialTranslateYPx:72,tooltipPlacement:"bottom",onTooltipVisibilityChange:i[13],$$slots:{default:[Ov]},$$scope:{ctx:i}};return i[0]!==void 0&&(h.ref=i[0]),t=new St({props:h}),he.push(()=>He(t,"ref",p)),t.$on("click",i[14]),{c(){e=P("div"),B(t.$$.fragment),o=O(),l=P("div"),r=O(),a=P("div"),c(l,"class","ref-block svelte-17imlp9"),H(l,"hidden",i[1]),c(a,"class","pulse svelte-17imlp9"),H(a,"paused",i[4]),c(e,"class","interactive-episode-icon-animated svelte-17imlp9"),H(e,"mobile",i[2]),H(e,"fullscreen",i[6]),H(e,"invisible",i[1])},m(b,g){C(b,e,g),L(t,e,null),m(e,o),m(e,l),i[23](l),m(e,r),m(e,a),i[24](a),s=!0,u||(f=[pe(e,"mousemove",rt(i[21])),pe(e,"mouseleave",i[15])],u=!0)},p(b,g){let S={};g[0]&32&&(S.tooltipActive=b[5]),g[1]&1&&(S.$$scope={dirty:g,ctx:b}),!n&&g[0]&1&&(n=!0,S.ref=b[0],Fe(()=>n=!1)),t.$set(S),(!s||g[0]&2)&&H(l,"hidden",b[1]),(!s||g[0]&16)&&H(a,"paused",b[4]),(!s||g[0]&4)&&H(e,"mobile",b[2]),(!s||g[0]&64)&&H(e,"fullscreen",b[6]),(!s||g[0]&2)&&H(e,"invisible",b[1])},i(b){s||(d(t.$$.fragment,b),s=!0)},o(b){_(t.$$.fragment,b),s=!1},d(b){b&&w(e),R(t),i[23](null),i[24](null),u=!1,tt(f)}}}function Hv(i,e,t){let n,o,l,r,a,s,{ref:u=void 0}=e,f,p=et(),h=yn(),{interactiveControlsOpacity$:b}=h;F(i,b,Y=>t(18,o=Y));let g=p.ui.isMobile;F(i,g,Y=>t(2,a=Y));let S=p.ui.isFullscreen;F(i,S,Y=>t(6,s=Y));let y=p.state.isInteractiveTime$;F(i,y,Y=>t(19,l=Y));let T=h.showInteractiveTimeIndicatorTooltip$;F(i,T,Y=>t(17,n=Y));let k=p.ui.controlsVisible;F(i,k,Y=>t(20,r=Y));let v=p.callbacks?.onInteractiveTimeIndicatorClick,I,W,Q,G=()=>{t(4,Q=!0)},le=()=>{ae(),f?.addEventListener("animationiteration",G,{once:!0})},ae=()=>{t(4,Q=!1),f?.removeEventListener("animationiteration",G)},V=Y=>{T.set(Y)},A,$=()=>{W||(T.set(!0),v?.())};Tn(()=>{T.clearTimeout(),ae()});let J=()=>{T.set(!1)};function x(Y){mn.call(this,i,Y)}function N(Y){u=Y,t(0,u)}function te(Y){he[Y?"unshift":"push"](()=>{u=Y,t(0,u)})}function E(Y){he[Y?"unshift":"push"](()=>{f=Y,t(3,f)})}return i.$$set=Y=>{"ref"in Y&&t(0,u=Y.ref)},i.$$.update=()=>{if(i.$$.dirty[0]&1048580)e:t(16,I=!a&&r);if(i.$$.dirty[0]&851968)e:t(1,W=!l||!!o||I);if(i.$$.dirty[0]&2)e:t(4,Q=W);if(i.$$.dirty[0]&131074)e:t(5,A=n&&!W);if(i.$$.dirty[0]&131072)e:n?le():ae()},[u,W,a,f,Q,A,s,b,g,S,y,T,k,V,$,J,I,n,o,l,r,x,N,te,E]}var du=class extends q{constructor(e){super(),U(this,e,Hv,Fv,z,{ref:0},Nv,[-1,-1])}},Nr=du;function Uv(i){Ce(i,"svelte-st0uzk",".wrapper-bottom.svelte-st0uzk.svelte-st0uzk{pointer-events:none;position:absolute;width:100%;bottom:0;left:0;height:var(--controls-gradient-height);background:var(--controls-gradient);transition:transform var(--controls-transition-duration) var(--controls-transition-fn);display:flex;flex-direction:column;justify-content:flex-end;box-sizing:border-box}.wrapper-bottom.svelte-st0uzk>.svelte-st0uzk{pointer-events:auto}.controls.svelte-st0uzk.svelte-st0uzk{width:100%;display:flex;align-items:center;justify-content:space-between;height:var(--controls-height);white-space:nowrap;font-size:13px;transition:transform var(--controls-transition-duration) var(--controls-transition-fn);will-change:transform;padding:0 8px 4px;box-sizing:border-box}.controls-left.svelte-st0uzk.svelte-st0uzk,.controls-right.svelte-st0uzk.svelte-st0uzk{display:flex;align-content:center}.controls-left.svelte-st0uzk.svelte-st0uzk{flex-grow:1;min-width:0;overflow:hidden}.controls-left.svelte-st0uzk > *:not(:first-child),.controls-right.svelte-st0uzk > *{margin-left:var(--controls-desktop-item-margin-left)}.controls-hidden.svelte-st0uzk.svelte-st0uzk{visibility:visible;transform:translateY(100%)}.wrapper-bottom.no-smooth.svelte-st0uzk.svelte-st0uzk{transition:none}.settings-menu.svelte-st0uzk.svelte-st0uzk{bottom:57px;right:18px;position:absolute;transition:opacity 0.2s, visibility 0.2s}")}function Xd(i,e,t){let n=i.slice();return n[209]=e[t].iconUrl,n[210]=e[t].ariaLabel,n[211]=e[t].testId,n[212]=e[t].onClick,n[213]=e[t].tooltip,n}function Jd(i){let e,t,n;function o(r){i[173](r)}let l={disabled:!i[9],tooltipContent:j("tooltip_previous"),$$slots:{default:[Kv]},$$scope:{ctx:i}};return i[23].prevButton!==void 0&&(l.ref=i[23].prevButton),e=new St({props:l}),he.push(()=>He(e,"ref",o)),{c(){B(e.$$.fragment)},m(r,a){L(e,r,a),n=!0},p(r,a){let s={};a[0]&512&&(s.disabled=!r[9]),a[0]&4608|a[6]&1073741824&&(s.$$scope={dirty:a,ctx:r}),!t&&a[0]&8388608&&(t=!0,s.ref=r[23].prevButton,Fe(()=>t=!1)),e.$set(s)},i(r){n||(d(e.$$.fragment,r),n=!0)},o(r){_(e.$$.fragment,r),n=!1},d(r){R(e,r)}}}function Kv(i){let e,t;return e=new Zo({props:{click:i[12],type:"prev",disabled:!i[9],isMobile:!1}}),{c(){B(e.$$.fragment)},m(n,o){L(e,n,o),t=!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){t||(d(e.$$.fragment,n),t=!0)},o(n){_(e.$$.fragment,n),t=!1},d(n){R(e,n)}}}function xd(i){let e,t,n;function o(r){i[174](r)}let l={disabled:i[74],tooltipContent:j("tooltip_restart"),$$slots:{default:[jv]},$$scope:{ctx:i}};return i[23].replayButton!==void 0&&(l.ref=i[23].replayButton),e=new St({props:l}),he.push(()=>He(e,"ref",o)),{c(){B(e.$$.fragment)},m(r,a){L(e,r,a),n=!0},p(r,a){let s={};a[2]&4096&&(s.disabled=r[74]),a[2]&4096|a[6]&1073741824&&(s.$$scope={dirty:a,ctx:r}),!t&&a[0]&8388608&&(t=!0,s.ref=r[23].replayButton,Fe(()=>t=!1)),e.$set(s)},i(r){n||(d(e.$$.fragment,r),n=!0)},o(r){_(e.$$.fragment,r),n=!1},d(r){R(e,r)}}}function jv(i){let e,t;return e=new pl({props:{click:i[128],disabled:i[74]}}),{c(){B(e.$$.fragment)},m(n,o){L(e,n,o),t=!0},p(n,o){let l={};o[2]&4096&&(l.disabled=n[74]),e.$set(l)},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){_(e.$$.fragment,n),t=!1},d(n){R(e,n)}}}function $d(i){let e,t,n;function o(r){i[176](r)}let l={tooltipContent:i[47],disabled:i[75],$$slots:{default:[Wv]},$$scope:{ctx:i}};return i[23].playButton!==void 0&&(l.ref=i[23].playButton),e=new St({props:l}),he.push(()=>He(e,"ref",o)),{c(){B(e.$$.fragment)},m(r,a){L(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[6]&1073741824&&(s.$$scope={dirty:a,ctx:r}),!t&&a[0]&8388608&&(t=!0,s.ref=r[23].playButton,Fe(()=>t=!1)),e.$set(s)},i(r){n||(d(e.$$.fragment,r),n=!0)},o(r){_(e.$$.fragment,r),n=!1},d(r){R(e,r)}}}function Wv(i){let e,t,n;function o(r){i[175](r)}let l={isMobile:!1,isPlaying:i[34],click:i[85],disabled:i[75]};return i[26]!==void 0&&(l.ref=i[26]),e=new ml({props:l}),he.push(()=>He(e,"ref",o)),{c(){B(e.$$.fragment)},m(r,a){L(e,r,a),n=!0},p(r,a){let s={};a[1]&8&&(s.isPlaying=r[34]),a[2]&8192&&(s.disabled=r[75]),!t&&a[0]&67108864&&(t=!0,s.ref=r[26],Fe(()=>t=!1)),e.$set(s)},i(r){n||(d(e.$$.fragment,r),n=!0)},o(r){_(e.$$.fragment,r),n=!1},d(r){R(e,r)}}}function em(i){let e,t,n;function o(r){i[177](r)}let l={disabled:!i[8],tooltipContent:j("tooltip_next"),$$slots:{default:[Gv]},$$scope:{ctx:i}};return i[23].nextButton!==void 0&&(l.ref=i[23].nextButton),e=new St({props:l}),he.push(()=>He(e,"ref",o)),{c(){B(e.$$.fragment)},m(r,a){L(e,r,a),n=!0},p(r,a){let s={};a[0]&256&&(s.disabled=!r[8]),a[0]&2304|a[6]&1073741824&&(s.$$scope={dirty:a,ctx:r}),!t&&a[0]&8388608&&(t=!0,s.ref=r[23].nextButton,Fe(()=>t=!1)),e.$set(s)},i(r){n||(d(e.$$.fragment,r),n=!0)},o(r){_(e.$$.fragment,r),n=!1},d(r){R(e,r)}}}function Gv(i){let e,t;return e=new Zo({props:{click:i[11],type:"next",disabled:!i[8],isMobile:!1}}),{c(){B(e.$$.fragment)},m(n,o){L(e,n,o),t=!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){t||(d(e.$$.fragment,n),t=!0)},o(n){_(e.$$.fragment,n),t=!1},d(n){R(e,n)}}}function Qv(i){let e,t,n,o,l=i[121]&&Yv(i),r=i[120]&&Xv(i),a=i[119]&&xv(i);return{c(){l&&l.c(),e=O(),r&&r.c(),t=O(),a&&a.c(),n=ot()},m(s,u){l&&l.m(s,u),C(s,e,u),r&&r.m(s,u),C(s,t,u),a&&a.m(s,u),C(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&&(w(e),w(t),w(n)),l&&l.d(s),r&&r.d(s),a&&a.d(s)}}}function Yv(i){let e,t,n;function o(r){i[178](r)}let l={disabled:i[73],tooltipContent:j("tooltip_interactive_go_back"),disabledTooltipContent:j(i[124]),$$slots:{default:[Zv]},$$scope:{ctx:i}};return i[23].playPrevChapterButton!==void 0&&(l.ref=i[23].playPrevChapterButton),e=new St({props:l}),he.push(()=>He(e,"ref",o)),{c(){B(e.$$.fragment)},m(r,a){L(e,r,a),n=!0},p(r,a){let s={};a[2]&2048&&(s.disabled=r[73]),a[0]&131072|a[2]&2048|a[6]&1073741824&&(s.$$scope={dirty:a,ctx:r}),!t&&a[0]&8388608&&(t=!0,s.ref=r[23].playPrevChapterButton,Fe(()=>t=!1)),e.$set(s)},i(r){n||(d(e.$$.fragment,r),n=!0)},o(r){_(e.$$.fragment,r),n=!1},d(r){R(e,r)}}}function Zv(i){let e,t;return e=new Ir({props:{disabled:i[73],click:i[17]}}),{c(){B(e.$$.fragment)},m(n,o){L(e,n,o),t=!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){t||(d(e.$$.fragment,n),t=!0)},o(n){_(e.$$.fragment,n),t=!1},d(n){R(e,n)}}}function Xv(i){let e,t,n;function o(r){i[179](r)}let l={disabled:i[76],tooltipContent:j("tooltip_interactive_seek"),disabledTooltipContent:j(i[78]),$$slots:{default:[Jv]},$$scope:{ctx:i}};return i[23].seekToInteractiveButton!==void 0&&(l.ref=i[23].seekToInteractiveButton),e=new St({props:l}),he.push(()=>He(e,"ref",o)),{c(){B(e.$$.fragment)},m(r,a){L(e,r,a),n=!0},p(r,a){let s={};a[2]&16384&&(s.disabled=r[76]),a[2]&65536&&(s.disabledTooltipContent=j(r[78])),a[0]&32768|a[2]&16384|a[6]&1073741824&&(s.$$scope={dirty:a,ctx:r}),!t&&a[0]&8388608&&(t=!0,s.ref=r[23].seekToInteractiveButton,Fe(()=>t=!1)),e.$set(s)},i(r){n||(d(e.$$.fragment,r),n=!0)},o(r){_(e.$$.fragment,r),n=!1},d(r){R(e,r)}}}function Jv(i){let e,t;return e=new Cr({props:{disabled:i[76],click:i[15]}}),{c(){B(e.$$.fragment)},m(n,o){L(e,n,o),t=!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){t||(d(e.$$.fragment,n),t=!0)},o(n){_(e.$$.fragment,n),t=!1},d(n){R(e,n)}}}function xv(i){let e,t,n;function o(r){i[180](r)}let l={tooltipContent:i[48],disabled:i[77],$$slots:{default:[$v]},$$scope:{ctx:i}};return i[23].interactiveGraphButton!==void 0&&(l.ref=i[23].interactiveGraphButton),e=new St({props:l}),he.push(()=>He(e,"ref",o)),{c(){B(e.$$.fragment)},m(r,a){L(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[6]&1073741824&&(s.$$scope={dirty:a,ctx:r}),!t&&a[0]&8388608&&(t=!0,s.ref=r[23].interactiveGraphButton,Fe(()=>t=!1)),e.$set(s)},i(r){n||(d(e.$$.fragment,r),n=!0)},o(r){_(e.$$.fragment,r),n=!1},d(r){R(e,r)}}}function $v(i){let e,t;return e=new Sr({props:{click:i[16],graphIsOpened:i[31],disabled:i[77]}}),{c(){B(e.$$.fragment)},m(n,o){L(e,n,o),t=!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){t||(d(e.$$.fragment,n),t=!0)},o(n){_(e.$$.fragment,n),t=!1},d(n){R(e,n)}}}function tm(i){let e,t,n;function o(r){i[181](r)}let l={tooltipContent:i[50],$$slots:{default:[e3]},$$scope:{ctx:i}};return i[23].liveButton!==void 0&&(l.ref=i[23].liveButton),e=new St({props:l}),he.push(()=>He(e,"ref",o)),{c(){B(e.$$.fragment)},m(r,a){L(e,r,a),n=!0},p(r,a){let s={};a[1]&524288&&(s.tooltipContent=r[50]),a[0]&2097152|a[1]&524288|a[6]&1073741824&&(s.$$scope={dirty:a,ctx:r}),!t&&a[0]&8388608&&(t=!0,s.ref=r[23].liveButton,Fe(()=>t=!1)),e.$set(s)},i(r){n||(d(e.$$.fragment,r),n=!0)},o(r){_(e.$$.fragment,r),n=!1},d(r){R(e,r)}}}function e3(i){let e,t;return e=new br({props:{isActiveLive:i[21],isMobile:!1,ariaLabel:i[50]}}),{c(){B(e.$$.fragment)},m(n,o){L(e,n,o),t=!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){t||(d(e.$$.fragment,n),t=!0)},o(n){_(e.$$.fragment,n),t=!1},d(n){R(e,n)}}}function im(i){let e,t,n;function o(r){i[182](r)}let l={isMobile:!1,showDuration:i[55],position:i[4]?i[79]:i[80],duration:i[4]?i[81]:i[82]};return i[23].time!==void 0&&(l.ref=i[23].time),e=new cr({props:l}),he.push(()=>He(e,"ref",o)),{c(){B(e.$$.fragment)},m(r,a){L(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]),!t&&a[0]&8388608&&(t=!0,s.ref=r[23].time,Fe(()=>t=!1)),e.$set(s)},i(r){n||(d(e.$$.fragment,r),n=!0)},o(r){_(e.$$.fragment,r),n=!1},d(r){R(e,r)}}}function nm(i){let e,t;return e=new kr({props:{position:i[80],duration:i[82],timeCodes:i[101]}}),{c(){B(e.$$.fragment)},m(n,o){L(e,n,o),t=!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){t||(d(e.$$.fragment,n),t=!0)},o(n){_(e.$$.fragment,n),t=!1},d(n){R(e,n)}}}function t3(i){let e,t,n=i[20]&&nm(i);return{c(){n&&n.c(),e=ot()},m(o,l){n&&n.m(o,l),C(o,e,l),t=!0},p(o,l){o[20]?n?(n.p(o,l),l[0]&1048576&&d(n,1)):(n=nm(o),n.c(),d(n,1),n.m(e.parentNode,e)):n&&(ue(),_(n,1,1,()=>{n=null}),ce())},i(o){t||(d(n),t=!0)},o(o){_(n),t=!1},d(o){o&&w(e),n&&n.d(o)}}}function i3(i){let e,t;return e=new Tr({props:{iconUrl:i[209],ariaLabel:i[210]??i[213],testId:i[211],onClick:i[212]}}),{c(){B(e.$$.fragment)},m(n,o){L(e,n,o),t=!0},p(n,o){let l={};o[0]&268435456&&(l.iconUrl=n[209]),o[0]&268435456&&(l.ariaLabel=n[210]??n[213]),o[0]&268435456&&(l.testId=n[211]),o[0]&268435456&&(l.onClick=n[212]),e.$set(l)},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){_(e.$$.fragment,n),t=!1},d(n){R(e,n)}}}function om(i){let e,t;return e=new St({props:{tooltipContent:i[213],width:40,$$slots:{default:[i3]},$$scope:{ctx:i}}}),{c(){B(e.$$.fragment)},m(n,o){L(e,n,o),t=!0},p(n,o){let l={};o[0]&268435456&&(l.tooltipContent=n[213]),o[0]&268435456|o[6]&1073741824&&(l.$$scope={dirty:o,ctx:n}),e.$set(l)},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){_(e.$$.fragment,n),t=!1},d(n){R(e,n)}}}function lm(i){let e,t,n;function o(r){i[185](r)}let l={disabled:!i[6],tooltipContent:i[51],$$slots:{default:[n3]},$$scope:{ctx:i}};return i[23].vkLogo!==void 0&&(l.ref=i[23].vkLogo),e=new St({props:l}),he.push(()=>He(e,"ref",o)),{c(){B(e.$$.fragment)},m(r,a){L(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[6]&1073741824&&(s.$$scope={dirty:a,ctx:r}),!t&&a[0]&8388608&&(t=!0,s.ref=r[23].vkLogo,Fe(()=>t=!1)),e.$set(s)},i(r){n||(d(e.$$.fragment,r),n=!0)},o(r){_(e.$$.fragment,r),n=!1},d(r){R(e,r)}}}function n3(i){let e,t;return e=new hr({props:{click:i[86],targetUrl:i[7],logoClickable:i[6]}}),{c(){B(e.$$.fragment)},m(n,o){L(e,n,o),t=!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){t||(d(e.$$.fragment,n),t=!0)},o(n){_(e.$$.fragment,n),t=!1},d(n){R(e,n)}}}function o3(i){let e,t;return e=new bd({props:{click:i[127]}}),{c(){B(e.$$.fragment)},m(n,o){L(e,n,o),t=!0},p:_e,i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){_(e.$$.fragment,n),t=!1},d(n){R(e,n)}}}function rm(i){let e,t,n;function o(r){i[187](r)}let l={tooltipContent:i[52],$$slots:{default:[l3]},$$scope:{ctx:i}};return i[23].subtitles!==void 0&&(l.ref=i[23].subtitles),e=new St({props:l}),he.push(()=>He(e,"ref",o)),{c(){B(e.$$.fragment)},m(r,a){L(e,r,a),n=!0},p(r,a){let s={};a[1]&2097152&&(s.tooltipContent=r[52]),a[0]&262144|a[6]&1073741824&&(s.$$scope={dirty:a,ctx:r}),!t&&a[0]&8388608&&(t=!0,s.ref=r[23].subtitles,Fe(()=>t=!1)),e.$set(s)},i(r){n||(d(e.$$.fragment,r),n=!0)},o(r){_(e.$$.fragment,r),n=!1},d(r){R(e,r)}}}function l3(i){let e,t;return e=new nd({props:{isSubtitlesEnabled:i[18],click:i[87]}}),{c(){B(e.$$.fragment)},m(n,o){L(e,n,o),t=!0},p(n,o){let l={};o[0]&262144&&(l.isSubtitlesEnabled=n[18]),e.$set(l)},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){_(e.$$.fragment,n),t=!1},d(n){R(e,n)}}}function sm(i){let e,t,n,o;function l(a){i[188](a)}let r={supportLink:i[10],playerControlsHeight:i[46]?.clientHeight,returnFocus:i[14]};return i[24]!==void 0&&(r.ref=i[24]),t=new ur({props:r}),he.push(()=>He(t,"ref",l)),{c(){e=P("div"),B(t.$$.fragment),c(e,"class","settings-menu svelte-st0uzk")},m(a,s){C(a,e,s),L(t,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],Fe(()=>n=!1)),t.$set(u)},i(a){o||(d(t.$$.fragment,a),o=!0)},o(a){_(t.$$.fragment,a),o=!1},d(a){a&&w(e),R(t)}}}function am(i){let e,t,n;function o(r){i[190](r)}let l={tooltipContent:i[27]?void 0:j("tooltip_settings_off"),$$slots:{default:[r3]},$$scope:{ctx:i}};return i[23].settings!==void 0&&(l.ref=i[23].settings),e=new St({props:l}),he.push(()=>He(e,"ref",o)),{c(){B(e.$$.fragment)},m(r,a){L(e,r,a),n=!0},p(r,a){let s={};a[0]&134217728&&(s.tooltipContent=r[27]?void 0:j("tooltip_settings_off")),a[0]&33554432|a[6]&1073741824&&(s.$$scope={dirty:a,ctx:r}),!t&&a[0]&8388608&&(t=!0,s.ref=r[23].settings,Fe(()=>t=!1)),e.$set(s)},i(r){n||(d(e.$$.fragment,r),n=!0)},o(r){_(e.$$.fragment,r),n=!1},d(r){R(e,r)}}}function r3(i){let e,t,n;function o(r){i[189](r)}let l={};return i[25]!==void 0&&(l.ref=i[25]),e=new fl({props:l}),he.push(()=>He(e,"ref",o)),{c(){B(e.$$.fragment)},m(r,a){L(e,r,a),n=!0},p(r,a){let s={};!t&&a[0]&33554432&&(t=!0,s.ref=r[25],Fe(()=>t=!1)),e.$set(s)},i(r){n||(d(e.$$.fragment,r),n=!0)},o(r){_(e.$$.fragment,r),n=!1},d(r){R(e,r)}}}function s3(i){let e,t,n;function o(r){i[191](r)}let l={className:i[41]?"":"out-of-view",tooltipContent:i[49],$$slots:{default:[a3]},$$scope:{ctx:i}};return i[23].context!==void 0&&(l.ref=i[23].context),e=new St({props:l}),he.push(()=>He(e,"ref",o)),{c(){B(e.$$.fragment)},m(r,a){L(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[6]&1073741824&&(s.$$scope={dirty:a,ctx:r}),!t&&a[0]&8388608&&(t=!0,s.ref=r[23].context,Fe(()=>t=!1)),e.$set(s)},i(r){n||(d(e.$$.fragment,r),n=!0)},o(r){_(e.$$.fragment,r),n=!1},d(r){R(e,r)}}}function a3(i){let e,t;return e=new Yd({props:{ariaLabel:i[49]}}),{c(){B(e.$$.fragment)},m(n,o){L(e,n,o),t=!0},p(n,o){let l={};o[1]&262144&&(l.ariaLabel=n[49]),e.$set(l)},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){_(e.$$.fragment,n),t=!1},d(n){R(e,n)}}}function um(i){let e,t,n;function o(r){i[192](r)}let l={tooltipContent:i[53],$$slots:{default:[u3]},$$scope:{ctx:i}};return i[23].fullscreen!==void 0&&(l.ref=i[23].fullscreen),e=new St({props:l}),he.push(()=>He(e,"ref",o)),{c(){B(e.$$.fragment)},m(r,a){L(e,r,a),n=!0},p(r,a){let s={};a[1]&4194304&&(s.tooltipContent=r[53]),a[0]&1073750016|a[6]&1073741824&&(s.$$scope={dirty:a,ctx:r}),!t&&a[0]&8388608&&(t=!0,s.ref=r[23].fullscreen,Fe(()=>t=!1)),e.$set(s)},i(r){n||(d(e.$$.fragment,r),n=!0)},o(r){_(e.$$.fragment,r),n=!1},d(r){R(e,r)}}}function u3(i){let e,t;return e=new pr({props:{click:i[13],isFullscreen:i[30]}}),{c(){B(e.$$.fragment)},m(n,o){L(e,n,o),t=!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){t||(d(e.$$.fragment,n),t=!0)},o(n){_(e.$$.fragment,n),t=!1},d(n){R(e,n)}}}function cm(i){let e,t,n;function o(r){i[193](r)}let l={tooltipContent:i[54],$$slots:{default:[c3]},$$scope:{ctx:i}};return i[23].chromecast!==void 0&&(l.ref=i[23].chromecast),e=new St({props:l}),he.push(()=>He(e,"ref",o)),{c(){B(e.$$.fragment)},m(r,a){L(e,r,a),n=!0},p(r,a){let s={};a[1]&8388608&&(s.tooltipContent=r[54]),a[0]&536870912|a[6]&1073741824&&(s.$$scope={dirty:a,ctx:r}),!t&&a[0]&8388608&&(t=!0,s.ref=r[23].chromecast,Fe(()=>t=!1)),e.$set(s)},i(r){n||(d(e.$$.fragment,r),n=!0)},o(r){_(e.$$.fragment,r),n=!1},d(r){R(e,r)}}}function c3(i){let e,t;return e=new gr({props:{isMobile:!1,state:i[29],click:i[126]}}),{c(){B(e.$$.fragment)},m(n,o){L(e,n,o),t=!0},p(n,o){let l={};o[0]&536870912&&(l.state=n[29]),e.$set(l)},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){_(e.$$.fragment,n),t=!1},d(n){R(e,n)}}}function f3(i){let e,t,n;function o(r){i[196](r)}let l={};return i[23].interactiveTimeIndicator!==void 0&&(l.ref=i[23].interactiveTimeIndicator),e=new Nr({props:l}),he.push(()=>He(e,"ref",o)),{c(){B(e.$$.fragment)},m(r,a){L(e,r,a),n=!0},p(r,a){let s={};!t&&a[0]&8388608&&(t=!0,s.ref=r[23].interactiveTimeIndicator,Fe(()=>t=!1)),e.$set(s)},i(r){n||(d(e.$$.fragment,r),n=!0)},o(r){_(e.$$.fragment,r),n=!1},d(r){R(e,r)}}}function d3(i){let e,t,n,o,l,r,a,s,u,f,p,h,b,g,S,y,T,k,v,I,W,Q,G,le,ae,V,A,$,J,x;t=new wr({props:{isHidden:!i[45],isAds:i[4],canRewindLive:i[5],isRewindableLive:i[32]}});let N=i[38]&&Jd(i),te=i[35]&&xd(i),E=i[36]&&$d(i),Y=i[37]&&em(i),Le=i[117]&&Qv(i),je=!i[4]&&i[33]&&tm(i),qe=i[19]&&im(i);function Je(fe){i[183](fe)}let Ne={className:"w-max",disabled:!i[20],tooltipContent:j("tooltip_episodes"),$$slots:{default:[t3]},$$scope:{ctx:i}};i[23].episodes!==void 0&&(Ne.ref=i[23].episodes),b=new St({props:Ne}),he.push(()=>He(b,"ref",Je));let we=gt(i[28]),X=[];for(let fe=0;fe<we.length;fe+=1)X[fe]=om(Xd(i,we,fe));let ve=fe=>_(X[fe],1,1,()=>{X[fe]=null}),Oe=i[43]&&!i[4]&&lm(i);function Xe(fe){i[186](fe)}let xe={$$slots:{default:[o3]},$$scope:{ctx:i}};i[23].volume!==void 0&&(xe.ref=i[23].volume),I=new St({props:xe}),he.push(()=>He(I,"ref",Xe));let ke=i[40]&&rm(i),Re=!i[83]&&!i[4]&&sm(i),Ue=i[42]&&!i[4]&&am(i),We=i[84].features.contextMenuButton&&s3(i),se=i[44]&&um(i),oe=i[39]&&cm(i),Se=i[122]&&f3(i);return{c(){e=P("div"),B(t.$$.fragment),n=O(),o=P("div"),l=P("div"),N&&N.c(),r=O(),te&&te.c(),a=O(),E&&E.c(),s=O(),Y&&Y.c(),u=O(),Le&&Le.c(),f=O(),je&&je.c(),p=O(),qe&&qe.c(),h=O(),B(b.$$.fragment),y=O(),T=P("div");for(let fe=0;fe<X.length;fe+=1)X[fe].c();k=O(),Oe&&Oe.c(),v=O(),B(I.$$.fragment),Q=O(),ke&&ke.c(),G=O(),Re&&Re.c(),le=O(),Ue&&Ue.c(),ae=O(),We&&We.c(),V=O(),se&&se.c(),A=O(),oe&&oe.c(),$=O(),Se&&Se.c(),J=ot(),c(l,"class","controls-left svelte-st0uzk"),An(()=>i[184].call(l)),c(T,"class","controls-right svelte-st0uzk"),c(o,"class","controls svelte-st0uzk"),c(e,"class","wrapper-bottom svelte-st0uzk"),H(e,"hidden",i[1]),H(e,"controls-hidden",!i[3]),H(e,"no-smooth",i[2])},m(fe,Ae){C(fe,e,Ae),L(t,e,null),m(e,n),m(e,o),m(o,l),N&&N.m(l,null),m(l,r),te&&te.m(l,null),m(l,a),E&&E.m(l,null),m(l,s),Y&&Y.m(l,null),m(l,u),Le&&Le.m(l,null),m(l,f),je&&je.m(l,null),m(l,p),qe&&qe.m(l,null),m(l,h),L(b,l,null),S=Ro(l,i[184].bind(l)),m(o,y),m(o,T);for(let Ze=0;Ze<X.length;Ze+=1)X[Ze]&&X[Ze].m(T,null);m(T,k),Oe&&Oe.m(T,null),m(T,v),L(I,T,null),m(T,Q),ke&&ke.m(T,null),m(T,G),Re&&Re.m(T,null),m(T,le),Ue&&Ue.m(T,null),m(T,ae),We&&We.m(T,null),m(T,V),se&&se.m(T,null),m(T,A),oe&&oe.m(T,null),i[194](o),i[195](e),C(fe,$,Ae),Se&&Se.m(fe,Ae),C(fe,J,Ae),x=!0},p(fe,Ae){let Ze={};Ae[1]&16384&&(Ze.isHidden=!fe[45]),Ae[0]&16&&(Ze.isAds=fe[4]),Ae[0]&32&&(Ze.canRewindLive=fe[5]),Ae[1]&2&&(Ze.isRewindableLive=fe[32]),t.$set(Ze),fe[38]?N?(N.p(fe,Ae),Ae[1]&128&&d(N,1)):(N=Jd(fe),N.c(),d(N,1),N.m(l,r)):N&&(ue(),_(N,1,1,()=>{N=null}),ce()),fe[35]?te?(te.p(fe,Ae),Ae[1]&16&&d(te,1)):(te=xd(fe),te.c(),d(te,1),te.m(l,a)):te&&(ue(),_(te,1,1,()=>{te=null}),ce()),fe[36]?E?(E.p(fe,Ae),Ae[1]&32&&d(E,1)):(E=$d(fe),E.c(),d(E,1),E.m(l,s)):E&&(ue(),_(E,1,1,()=>{E=null}),ce()),fe[37]?Y?(Y.p(fe,Ae),Ae[1]&64&&d(Y,1)):(Y=em(fe),Y.c(),d(Y,1),Y.m(l,u)):Y&&(ue(),_(Y,1,1,()=>{Y=null}),ce()),fe[117]&&Le.p(fe,Ae),!fe[4]&&fe[33]?je?(je.p(fe,Ae),Ae[0]&16|Ae[1]&4&&d(je,1)):(je=tm(fe),je.c(),d(je,1),je.m(l,p)):je&&(ue(),_(je,1,1,()=>{je=null}),ce()),fe[19]?qe?(qe.p(fe,Ae),Ae[0]&524288&&d(qe,1)):(qe=im(fe),qe.c(),d(qe,1),qe.m(l,h)):qe&&(ue(),_(qe,1,1,()=>{qe=null}),ce());let ut={};if(Ae[0]&1048576&&(ut.disabled=!fe[20]),Ae[0]&1048576|Ae[2]&1310720|Ae[6]&1073741824&&(ut.$$scope={dirty:Ae,ctx:fe}),!g&&Ae[0]&8388608&&(g=!0,ut.ref=fe[23].episodes,Fe(()=>g=!1)),b.$set(ut),Ae[0]&268435456){we=gt(fe[28]);let at;for(at=0;at<we.length;at+=1){let ye=Xd(fe,we,at);X[at]?(X[at].p(ye,Ae),d(X[at],1)):(X[at]=om(ye),X[at].c(),d(X[at],1),X[at].m(T,k))}for(ue(),at=we.length;at<X.length;at+=1)ve(at);ce()}fe[43]&&!fe[4]?Oe?(Oe.p(fe,Ae),Ae[0]&16|Ae[1]&4096&&d(Oe,1)):(Oe=lm(fe),Oe.c(),d(Oe,1),Oe.m(T,v)):Oe&&(ue(),_(Oe,1,1,()=>{Oe=null}),ce());let ct={};Ae[6]&1073741824&&(ct.$$scope={dirty:Ae,ctx:fe}),!W&&Ae[0]&8388608&&(W=!0,ct.ref=fe[23].volume,Fe(()=>W=!1)),I.$set(ct),fe[40]?ke?(ke.p(fe,Ae),Ae[1]&512&&d(ke,1)):(ke=rm(fe),ke.c(),d(ke,1),ke.m(T,G)):ke&&(ue(),_(ke,1,1,()=>{ke=null}),ce()),!fe[83]&&!fe[4]?Re?(Re.p(fe,Ae),Ae[0]&16|Ae[2]&2097152&&d(Re,1)):(Re=sm(fe),Re.c(),d(Re,1),Re.m(T,le)):Re&&(ue(),_(Re,1,1,()=>{Re=null}),ce()),fe[42]&&!fe[4]?Ue?(Ue.p(fe,Ae),Ae[0]&16|Ae[1]&2048&&d(Ue,1)):(Ue=am(fe),Ue.c(),d(Ue,1),Ue.m(T,ae)):Ue&&(ue(),_(Ue,1,1,()=>{Ue=null}),ce()),fe[84].features.contextMenuButton&&We.p(fe,Ae),fe[44]?se?(se.p(fe,Ae),Ae[1]&8192&&d(se,1)):(se=um(fe),se.c(),d(se,1),se.m(T,A)):se&&(ue(),_(se,1,1,()=>{se=null}),ce()),fe[39]?oe?(oe.p(fe,Ae),Ae[1]&256&&d(oe,1)):(oe=cm(fe),oe.c(),d(oe,1),oe.m(T,null)):oe&&(ue(),_(oe,1,1,()=>{oe=null}),ce()),(!x||Ae[0]&2)&&H(e,"hidden",fe[1]),(!x||Ae[0]&8)&&H(e,"controls-hidden",!fe[3]),(!x||Ae[0]&4)&&H(e,"no-smooth",fe[2]),fe[122]&&Se.p(fe,Ae)},i(fe){if(!x){d(t.$$.fragment,fe),d(N),d(te),d(E),d(Y),d(Le),d(je),d(qe),d(b.$$.fragment,fe);for(let Ae=0;Ae<we.length;Ae+=1)d(X[Ae]);d(Oe),d(I.$$.fragment,fe),d(ke),d(Re),d(Ue),d(We),d(se),d(oe),d(Se),x=!0}},o(fe){_(t.$$.fragment,fe),_(N),_(te),_(E),_(Y),_(Le),_(je),_(qe),_(b.$$.fragment,fe),X=X.filter(Boolean);for(let Ae=0;Ae<X.length;Ae+=1)_(X[Ae]);_(Oe),_(I.$$.fragment,fe),_(ke),_(Re),_(Ue),_(We),_(se),_(oe),_(Se),x=!1},d(fe){fe&&(w(e),w($),w(J)),R(t),N&&N.d(),te&&te.d(),E&&E.d(),Y&&Y.d(),Le&&Le.d(),je&&je.d(),qe&&qe.d(),R(b),S(),Ni(X,fe),Oe&&Oe.d(),R(I),ke&&ke.d(),Re&&Re.d(),Ue&&Ue.d(),We&&We.d(),se&&se.d(),oe&&oe.d(),i[194](null),i[195](null),Se&&Se.d(fe)}}}function m3(i,e,t){let n,o,l,r,a,s,u,f,p,h,b,g,S,y,T,k,v,I,W,Q,G,le,ae,V,A,$,J,x,N,te,E,Y,Le=_e,je=()=>(Le(),Le=Rt(ae,Z=>t(144,Y=Z)),ae),qe,Je=_e,Ne=()=>(Je(),Je=Rt(le,Z=>t(145,qe=Z)),le),we,X=_e,ve=()=>(X(),X=Rt(G,Z=>t(146,we=Z)),G),Oe,Xe=_e,xe=()=>(Xe(),Xe=Rt(Q,Z=>t(147,Oe=Z)),Q),ke,Re=_e,Ue=()=>(Re(),Re=Rt(W,Z=>t(148,ke=Z)),W),We,se=_e,oe=()=>(se(),se=Rt(I,Z=>t(149,We=Z)),I),Se,fe=_e,Ae=()=>(fe(),fe=Rt(v,Z=>t(150,Se=Z)),v),Ze,ut=_e,ct=()=>(ut(),ut=Rt(k,Z=>t(151,Ze=Z)),k),at,ye=_e,mt=()=>(ye(),ye=Rt(T,Z=>t(152,at=Z)),T),lt,dt=_e,ht=()=>(dt(),dt=Rt(y,Z=>t(153,lt=Z)),y),Et,Ke=_e,Qt=()=>(Ke(),Ke=Rt(S,Z=>t(154,Et=Z)),S),Bt,Mt=_e,ti=()=>(Mt(),Mt=Rt(g,Z=>t(155,Bt=Z)),g),it,me=_e,vt=()=>(me(),me=Rt(b,Z=>t(156,it=Z)),b),_t,Dt=_e,wt=()=>(Dt(),Dt=Rt(h,Z=>t(157,_t=Z)),h),At,Ut=_e,en=()=>(Ut(),Ut=Rt(p,Z=>t(158,At=Z)),p),di,mi=_e,Ei=()=>(mi(),mi=Rt(f,Z=>t(159,di=Z)),f),Yt,pi=_e,tn=()=>(pi(),pi=Rt(u,Z=>t(160,Yt=Z)),u),_i,Fi,ii,Ai,hi,Hi,gi,ni,Pt,Nt,bi,vi,Ot,oi,li,Vt,It,Kt,Mi,Zt,nn,on,jt;i.$$.on_destroy.push(()=>Le()),i.$$.on_destroy.push(()=>Je()),i.$$.on_destroy.push(()=>X()),i.$$.on_destroy.push(()=>Xe()),i.$$.on_destroy.push(()=>Re()),i.$$.on_destroy.push(()=>se()),i.$$.on_destroy.push(()=>fe()),i.$$.on_destroy.push(()=>ut()),i.$$.on_destroy.push(()=>ye()),i.$$.on_destroy.push(()=>dt()),i.$$.on_destroy.push(()=>Ke()),i.$$.on_destroy.push(()=>Mt()),i.$$.on_destroy.push(()=>me()),i.$$.on_destroy.push(()=>Dt()),i.$$.on_destroy.push(()=>Ut()),i.$$.on_destroy.push(()=>mi()),i.$$.on_destroy.push(()=>pi());let{bottomHidden:yi}=e,{bottomNoSmooth:zi}=e,{showControls:wi}=e,{controlsElementRef:ri=void 0}=e,{isAds:Ft=!1}=e,{canRewindLive:Wt}=e,{logoClickable:ki}=e,{logoHidden:Xt}=e,{logoTargetUrl:Yi=""}=e,{showNextPrevButtons:Ci}=e,{nextButtonActive:ln}=e,{prevButtonActive:rn}=e,{isOneVideoPlaylist:Zi=!1}=e,{supportLink:qi}=e,{customFullscreenSupported:Vi=!0}=e,{playNextVideo:Gt}=e,{playPrevVideo:si}=e,{repeatPlaylist:Si}=e,{toggleFullscreen:Li}=e,{returnFocus:Xi}=e,{seekToInteractive:Pi}=e,{toggleGraph:Ri}=e,{playPrevChapter:Bi}=e,Ye=et(),Ui=yn(),Ht=Tt(),ze=Ye.actions.internal.toggleMuted,Ji=Ye.actions.internal.togglePlay,Di=Ye.actions.internal.pause,Ki=Ye.actions.internal.toggleSubtitle,xi=Ye.callbacks?.onAudioDoesNotExistHint,ji=Ye.callbacks?.onAudioDisabledHint,fn=Ye.state.duration$;F(i,fn,Z=>t(82,on=Z));let Jt=Ye.state.positionWithScrubbing$;F(i,Jt,Z=>t(80,Zt=Z));let xt=Ye.state.playbackState$;F(i,xt,Z=>t(161,ii=Z));let Wi=Ye.state.chromecastConnected$;F(i,Wi,Z=>t(83,jt=Z));let ai=Ye.state.isAudioAvailable$;F(i,ai,Z=>t(197,V=Z));let re=Ye.state.isAudioDisabled,ft=Ye.state.isEnded$;F(i,ft,Z=>t(169,oi=Z));let ui=Ye.state.isLive$;F(i,ui,Z=>t(33,ni=Z));let ci=Ye.state.isActiveLive$;F(i,ci,Z=>t(163,Hi=Z));let $t=Ye.state.isRewindableLive$;F(i,$t,Z=>t(32,gi=Z));let Gi=Ye.ui.isPictureInPictureActive$;F(i,Gi,Z=>t(165,Nt=Z));let kn=Ye.ui.pictureInPictureType$;F(i,kn,Z=>t(164,Pt=Z));let hn=Ye.ui.settingsMenuVisible;F(i,hn,Z=>t(27,J=Z));let dn=Ye.ui.settingsMenuOpenedByKeyboard;F(i,dn,Z=>t(140,$=Z));let Lt=Ye.ui.controls,gn=Ye.actions.internal.getVideoEpisodes(),Vn=Ye.state.chromecastState$;F(i,Vn,Z=>t(29,_i=Z));let Cn=Ye.state.availableSubtitlesList$;F(i,Cn,Z=>t(168,Ot=Z));let Sn=Ye.state.currentSubtitle$;F(i,Sn,Z=>t(170,li=Z));let bn=Lt.disabledControls$;F(i,bn,Z=>t(172,It=Z));let $i=Ye.ui.contextMenu.visible$;F(i,$i,Z=>t(162,Ai=Z));let ie=Ye.ui.contextMenu.showContextMenuBtn$;F(i,ie,Z=>t(166,bi=Z));let yt=Ye.ui.contextMenu.openedByBtnKeyboard$;F(i,yt,Z=>t(167,vi=Z));let Pn=Ye.ui.startedByKeyboard$;F(i,Pn,Z=>t(139,A=Z));let Ln=Ye.ads.duration;F(i,Ln,Z=>t(81,nn=Z));let Rn=Ye.ads.position;F(i,Rn,Z=>t(79,Mi=Z));let Gn=Ye.ads.playbackState;F(i,Gn,Z=>t(171,Vt=Z));let Qn=Ye.ui.isFullscreen;F(i,Qn,Z=>t(30,Fi=Z));let Yn=Ye.ui.playerSize;F(i,Yn,Z=>t(142,N=Z));let Zn=Ye.ui.currentGridType$;F(i,Zn,Z=>t(143,te=Z));let Xn=Ye.ui.additionalButtons$;F(i,Xn,Z=>t(28,E=Z));let ro=Ye.actions.internal.getVideoElement,ee=Ye.actions.internal.replayInteractive,an=Ye.state.isInteractive,Io=Ye.state.isInteractiveTime$;F(i,Io,Z=>t(141,x=Z));let To=Ye.state.showInteractiveGraph,zn=Ye.state.showSeekToInteractive,so=Ye.state.showPlayPrevChapter,qn=Ye.state.showInteractiveTimeIndicator,Un=Ye.state.graphIsOpened$;F(i,Un,Z=>t(31,hi=Z));let Eo=Ye.state.playPrevChapterDisabledTooltip,Ao=Ui.seekToInteractiveDisabledTooltip$;F(i,Ao,Z=>t(78,Kt=Z));let $o=()=>Ye.actions.internal.toggleChromecast(),Mo,Bn,Vo,ao,uo,Lo,K,M,de,Me,Ge,st,zt,ei,qt,sn,Jn,el,tl,fc,dc,Xr="",kp=(Z,xr)=>{if(!Z){t(50,Xr=j("tooltip_live"));return}xr===mu.PAUSED&&t(50,Xr=j("tooltip_play"))},mc,pc,_c,hc,Cl,nt={},In,il,Jr,gc,Cp=qv(Br,260,{leading:!1}),Sl,Pl,Il;function Sp(){to({isAudioDisabled:re,audioDisabledHintCallback:ji,isAudioAvailable:V,audioIsNotExistHintCallback:xi})&&ze()}let Pp=an?ee:Zi?Ji:Si;function Ip(Z){i.$$.not_equal(nt.prevButton,Z)&&(nt.prevButton=Z,t(23,nt))}function Tp(Z){i.$$.not_equal(nt.replayButton,Z)&&(nt.replayButton=Z,t(23,nt))}function Ep(Z){Il=Z,t(26,Il)}function Ap(Z){i.$$.not_equal(nt.playButton,Z)&&(nt.playButton=Z,t(23,nt))}function Mp(Z){i.$$.not_equal(nt.nextButton,Z)&&(nt.nextButton=Z,t(23,nt))}function Vp(Z){i.$$.not_equal(nt.playPrevChapterButton,Z)&&(nt.playPrevChapterButton=Z,t(23,nt))}function Lp(Z){i.$$.not_equal(nt.seekToInteractiveButton,Z)&&(nt.seekToInteractiveButton=Z,t(23,nt))}function Rp(Z){i.$$.not_equal(nt.interactiveGraphButton,Z)&&(nt.interactiveGraphButton=Z,t(23,nt))}function Bp(Z){i.$$.not_equal(nt.liveButton,Z)&&(nt.liveButton=Z,t(23,nt))}function Dp(Z){i.$$.not_equal(nt.time,Z)&&(nt.time=Z,t(23,nt))}function Np(Z){i.$$.not_equal(nt.episodes,Z)&&(nt.episodes=Z,t(23,nt))}function Op(){Cl=this.clientWidth,t(22,Cl)}function Fp(Z){i.$$.not_equal(nt.vkLogo,Z)&&(nt.vkLogo=Z,t(23,nt))}function Hp(Z){i.$$.not_equal(nt.volume,Z)&&(nt.volume=Z,t(23,nt))}function zp(Z){i.$$.not_equal(nt.subtitles,Z)&&(nt.subtitles=Z,t(23,nt))}function qp(Z){Sl=Z,t(24,Sl)}function Up(Z){Pl=Z,t(25,Pl)}function Kp(Z){i.$$.not_equal(nt.settings,Z)&&(nt.settings=Z,t(23,nt))}function jp(Z){i.$$.not_equal(nt.context,Z)&&(nt.context=Z,t(23,nt))}function Wp(Z){i.$$.not_equal(nt.fullscreen,Z)&&(nt.fullscreen=Z,t(23,nt))}function Gp(Z){i.$$.not_equal(nt.chromecast,Z)&&(nt.chromecast=Z,t(23,nt))}function Qp(Z){he[Z?"unshift":"push"](()=>{Jn=Z,t(46,Jn)})}function Yp(Z){he[Z?"unshift":"push"](()=>{ri=Z,t(0,ri)})}function Zp(Z){i.$$.not_equal(nt.interactiveTimeIndicator,Z)&&(nt.interactiveTimeIndicator=Z,t(23,nt))}i.$$set=Z=>{"bottomHidden"in Z&&t(1,yi=Z.bottomHidden),"bottomNoSmooth"in Z&&t(2,zi=Z.bottomNoSmooth),"showControls"in Z&&t(3,wi=Z.showControls),"controlsElementRef"in Z&&t(0,ri=Z.controlsElementRef),"isAds"in Z&&t(4,Ft=Z.isAds),"canRewindLive"in Z&&t(5,Wt=Z.canRewindLive),"logoClickable"in Z&&t(6,ki=Z.logoClickable),"logoHidden"in Z&&t(129,Xt=Z.logoHidden),"logoTargetUrl"in Z&&t(7,Yi=Z.logoTargetUrl),"showNextPrevButtons"in Z&&t(130,Ci=Z.showNextPrevButtons),"nextButtonActive"in Z&&t(8,ln=Z.nextButtonActive),"prevButtonActive"in Z&&t(9,rn=Z.prevButtonActive),"isOneVideoPlaylist"in Z&&t(131,Zi=Z.isOneVideoPlaylist),"supportLink"in Z&&t(10,qi=Z.supportLink),"customFullscreenSupported"in Z&&t(132,Vi=Z.customFullscreenSupported),"playNextVideo"in Z&&t(11,Gt=Z.playNextVideo),"playPrevVideo"in Z&&t(12,si=Z.playPrevVideo),"repeatPlaylist"in Z&&t(133,Si=Z.repeatPlaylist),"toggleFullscreen"in Z&&t(13,Li=Z.toggleFullscreen),"returnFocus"in Z&&t(14,Xi=Z.returnFocus),"seekToInteractive"in Z&&t(15,Pi=Z.seekToInteractive),"toggleGraph"in Z&&t(16,Ri=Z.toggleGraph),"playPrevChapter"in Z&&t(17,Bi=Z.playPrevChapter)},i.$$.update=()=>{if(i.$$.dirty[5]&131072)e:t(138,n=It.has("EPISODE_BUTTON"));if(i.$$.dirty[5]&131072)e:t(77,o=It.has("GRAPH_BUTTON"));if(i.$$.dirty[5]&131072)e:t(76,l=It.has("SEEK_TO_INTERACTIVE_BUTTON"));if(i.$$.dirty[5]&131072)e:t(75,r=It.has("PLAY_BUTTON"));if(i.$$.dirty[5]&131072)e:t(74,a=It.has("REPLAY_BUTTON"));if(i.$$.dirty[5]&131072)e:t(73,s=It.has("PLAY_PREV_CHAPTER_BUTTON"));if(i.$$.dirty[0]&16|i.$$.dirty[5]&65600)e:t(34,Mo=Ft?Vt==="playing":ii===mu.PLAYING);if(i.$$.dirty[5]&32768)e:t(18,Bn=li.value!=="off");if(i.$$.dirty[0]&16|i.$$.dirty[5]&16384)e:t(35,Vo=oi&&!Ft||an);if(i.$$.dirty[0]&16|i.$$.dirty[5]&16384)e:t(36,ao=!oi||an||Ft);if(i.$$.dirty[4]&524288)e:t(134,uo=_n(te,"m"));if(i.$$.dirty[0]&272|i.$$.dirty[4]&524352)e:t(37,Lo=Ci&&_n(te,"m")&&!Ft&&ln);if(i.$$.dirty[0]&528|i.$$.dirty[4]&524352)e:t(38,K=Ci&&_n(te,"m")&&!Ft&&rn);if(i.$$.dirty[0]&536870912|i.$$.dirty[4]&524288|i.$$.dirty[5]&1536)e:t(39,M=_i!==Zd.NOT_AVAILABLE&&!(Nt&&Pt===1)&&_n(te,"m")&&!an);if(i.$$.dirty[4]&524288|i.$$.dirty[5]&8192)e:t(40,de=Ot.length>0&&_n(te,"m"));if(i.$$.dirty[5]&6144)e:t(41,Me=vi||bi);if(i.$$.dirty[4]&524288)e:t(42,Ge=_n(te,"s"));if(i.$$.dirty[4]&32)e:t(43,st=!Xt);if(i.$$.dirty[4]&524576|i.$$.dirty[5]&1536)e:t(44,zt=Ht.features.fullscreen&&(Xt||_n(te,"s"))&&!(Nt&&Pt===1)&&(an?Vi:!0));if(i.$$.dirty[0]&16|i.$$.dirty[1]&4)e:t(19,ei=(!ni||Ft)&&!(Ht.features.interactiveHideTime&&an));if(i.$$.dirty[4]&262144)e:t(45,qt=N.width>100);if(i.$$.dirty[0]&16|i.$$.dirty[1]&4|i.$$.dirty[4]&17408)e:t(20,sn=!Ft&&!ni&&!!gn?.length&&uo&&!n);if(i.$$.dirty[1]&2|i.$$.dirty[5]&256)e:t(21,el=!gi||Hi);if(i.$$.dirty[5]&64)e:t(47,tl=ii===mu.PLAYING?j("tooltip_pause"):j("tooltip_play"));if(i.$$.dirty[1]&1)e:t(48,fc=hi?j("tooltip_interactive_graph_on"):j("tooltip_interactive_graph_off"));if(i.$$.dirty[5]&128)e:t(49,dc=Ai?j("aria_label_context_menu_close"):j("aria_label_context_menu_open"));if(i.$$.dirty[0]&2097152|i.$$.dirty[5]&64)e:kp(el,ii);if(i.$$.dirty[0]&262144)e:t(52,pc=Bn?j("tooltip_subtitles_on"):j("tooltip_subtitles_off"));if(i.$$.dirty[0]&1073741824)e:t(53,_c=Fi?j("tooltip_fullscreen_on"):j("tooltip_fullscreen_off"));if(i.$$.dirty[0]&536870912)e:t(54,hc=_i===Zd.CONNECTED?j("tooltip_chromecast_on"):j("tooltip_chromecast_off"));if(i.$$.dirty[0]&268435456|i.$$.dirty[4]&2146435072|i.$$.dirty[5]&63)e:t(135,In={prevButton:Yt?Yt.right-Yt.left:0,replayButton:di?di.right-di.left:0,playButton:At?At.right-At.left:0,nextButton:_t?_t.right-_t.left:0,playPrevChapterButton:it?it.right-it.left:0,seekToInteractiveButton:Bt?Bt.right-Bt.left:0,interactiveGraphButton:Et?Et.right-Et.left:0,liveButton:lt?lt.right-lt.left:0,time:at?at.right-at.left:0,episodes:Ze?Ze.right-Ze.left:0,vkLogo:Se?Se.right-Se.left:0,volume:We?We.right-We.left:0,subtitles:ke?ke.right-ke.left:0,settings:Oe?Oe.right-Oe.left:0,context:we?we.right-we.left:0,fullscreen:qe?qe.right-qe.left:0,chromecast:Y?Y.right-Y.left:0,additionalButtons:E.length?E.reduce(Z=>[...Z,40],[]):[]});if(i.$$.dirty[4]&6144)e:(!il||il<In.time)&&t(136,il=In.time);if(i.$$.dirty[0]&5767168|i.$$.dirty[4]&530432)e:{let Z=0;sn&&(_n(te,"xl")?Z=In.time:Z=60);let xr=In.prevButton+In.playButton+In.nextButton+In.seekToInteractiveButton+In.interactiveGraphButton+In.liveButton+il+Z;t(137,Jr=ei&&Cl>=xr)}if(i.$$.dirty[4]&532480)e:t(55,gc=Jr&&_n(te,"m"));if(i.$$.dirty[0]&8388616|i.$$.dirty[4]&393216)e:Cp(ro(),Lt,nt,wi);if(i.$$.dirty[0]&167772160)e:jo(Pl,J,dn);if(i.$$.dirty[0]&150994944|i.$$.dirty[4]&65536)e:ko(Sl,J,$);if(i.$$.dirty[0]&67108864|i.$$.dirty[4]&32768)e:Dr(Pn,A,Il)};e:t(51,mc=Ht.logoType==="vk_video"?j("tooltip_vk_video_logo"):j("tooltip_vk_logo"));e:tn(t(72,{prevButton:u,replayButton:f,playButton:p,nextButton:h,playPrevChapterButton:b,seekToInteractiveButton:g,interactiveGraphButton:S,liveButton:y,time:T,episodes:k,vkLogo:v,volume:I,subtitles:W,settings:Q,context:G,fullscreen:le,chromecast:ae}=Lt,u,Ei(t(71,f)),en(t(70,p)),wt(t(69,h)),vt(t(68,b)),ti(t(67,g)),Qt(t(66,S)),ht(t(65,y)),mt(t(64,T)),ct(t(63,k)),Ae(t(62,v)),oe(t(61,I)),Ue(t(60,W)),xe(t(59,Q)),ve(t(58,G)),Ne(t(57,le)),je(t(56,ae))));return[ri,yi,zi,wi,Ft,Wt,ki,Yi,ln,rn,qi,Gt,si,Li,Xi,Pi,Ri,Bi,Bn,ei,sn,el,Cl,nt,Sl,Pl,Il,J,E,_i,Fi,hi,gi,ni,Mo,Vo,ao,Lo,K,M,de,Me,Ge,st,zt,qt,Jn,tl,fc,dc,Xr,mc,pc,_c,hc,gc,ae,le,G,Q,W,I,v,k,T,y,S,g,b,h,p,f,u,s,a,r,l,o,Kt,Mi,Zt,nn,on,jt,Ht,Ji,Di,Ki,fn,Jt,xt,Wi,ai,ft,ui,ci,$t,Gi,kn,hn,dn,gn,Vn,Cn,Sn,bn,$i,ie,yt,Pn,Ln,Rn,Gn,Qn,Yn,Zn,Xn,an,Io,To,zn,so,qn,Un,Eo,Ao,$o,Sp,Pp,Xt,Ci,Zi,Vi,Si,uo,In,il,Jr,n,A,$,x,N,te,Y,qe,we,Oe,ke,We,Se,Ze,at,lt,Et,Bt,it,_t,At,di,Yt,ii,Ai,Hi,Pt,Nt,bi,vi,Ot,oi,li,Vt,It,Ip,Tp,Ep,Ap,Mp,Vp,Lp,Rp,Bp,Dp,Np,Op,Fp,Hp,zp,qp,Up,Kp,jp,Wp,Gp,Qp,Yp,Zp]}var pu=class extends q{constructor(e){super(),U(this,e,m3,d3,z,{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},Uv,[-1,-1,-1,-1,-1,-1,-1])}},fm=pu;import{ChromecastState as gm,PlaybackState as bm}from"@vkontakte/videoplayer-core";function p3(i){let e,t,n,o,l,r=i[2].default,a=Pe(r,i,i[1],null),s=[{xmlns:"http://www.w3.org/2000/svg"},{width:"24"},{height:"24"},{"aria-hidden":"true"},{"data-testid":"muted-icon"},{role:"img"},i[0]],u={};for(let f=0;f<s.length;f+=1)u=ne(u,s[f]);return{c(){e=D("svg"),a&&a.c(),t=D("g"),n=D("path"),o=D("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(t,"fill","none"),c(t,"fill-rule","evenodd"),be(e,u)},m(f,p){C(f,e,p),a&&a.m(e,null),m(e,t),m(t,n),m(t,o),l=!0},p(f,[p]){a&&a.p&&(!l||p&2)&&Te(a,r,f,f[1],l?Ie(r,f[1],p,null):Ee(f[1]),null),be(e,u=Ve(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&&w(e),a&&a.d(f)}}}function _3(i,e,t){let{$$slots:n={},$$scope:o}=e;return i.$$set=l=>{t(0,e=ne(ne({},e),ge(l))),"$$scope"in l&&t(1,o=l.$$scope)},e=ge(e),[e,o,n]}var hu=class extends q{constructor(e){super(),U(this,e,_3,p3,z,{})}},dm=hu;import{noop as h3}from"@vkontakte/videoplayer-shared";function g3(i){Ce(i,"svelte-6gmlbk",".container.svelte-6gmlbk{display:flex;align-items:center}.expanded.svelte-6gmlbk{background-color:rgba(0, 0, 0, 0.56);border-radius:6px}.text.svelte-6gmlbk{font-size:15px;margin-left:8px}")}function mm(i){let e;return{c(){e=P("span"),e.textContent=`${j("mobile_unmute")}`,c(e,"class","text svelte-6gmlbk")},m(t,n){C(t,e,n)},p:_e,d(t){t&&w(e)}}}function b3(i){let e,t,n,o;var l=i[4];function r(s){return{}}l&&(t=un(l,r(i)));let a=i[1]&&mm(i);return{c(){e=P("div"),t&&B(t.$$.fragment),n=O(),a&&a.c(),c(e,"class","container svelte-6gmlbk"),c(e,"aria-hidden","true"),H(e,"expanded",i[1])},m(s,u){C(s,e,u),t&&L(t,e,null),m(e,n),a&&a.m(e,null),o=!0},p(s,u){if(u&16&&l!==(l=s[4])){if(t){ue();let f=t;_(f.$$.fragment,1,0,()=>{R(f,1)}),ce()}l?(t=un(l,r(s)),B(t.$$.fragment),d(t.$$.fragment,1),L(t,e,n)):t=null}s[1]?a?a.p(s,u):(a=mm(s),a.c(),a.m(e,null)):a&&(a.d(1),a=null),(!o||u&2)&&H(e,"expanded",s[1])},i(s){o||(t&&d(t.$$.fragment,s),o=!0)},o(s){t&&_(t.$$.fragment,s),o=!1},d(s){s&&w(e),t&&R(t),a&&a.d()}}}function v3(i){let e,t,n;function o(r){i[6](r)}let l={testId:i[1]?"btn-mobile-unmuted":"btn-mobile-muted",click:i[2],ariaLabel:i[3],$$slots:{default:[b3]},$$scope:{ctx:i}};return i[0]!==void 0&&(l.ref=i[0]),e=new pt({props:l}),he.push(()=>He(e,"ref",o)),{c(){B(e.$$.fragment)},m(r,a){L(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}),!t&&a&1&&(t=!0,s.ref=r[0],Fe(()=>t=!1)),e.$set(s)},i(r){n||(d(e.$$.fragment,r),n=!0)},o(r){_(e.$$.fragment,r),n=!1},d(r){R(e,r)}}}function y3(i,e,t){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,t(0,r)}return i.$$set=f=>{"muted"in f&&t(5,n=f.muted),"expanded"in f&&t(1,o=f.expanded),"click"in f&&t(2,l=f.click),"ref"in f&&t(0,r=f.ref)},i.$$.update=()=>{if(i.$$.dirty&32)e:t(3,a=n?j("tooltip_volume"):j("tooltip_volume_muted"));if(i.$$.dirty&2)e:t(4,s=o?So:dm)},[r,o,l,a,s,n,u]}var gu=class extends q{constructor(e){super(),U(this,e,y3,v3,z,{muted:5,expanded:1,click:2,ref:0},g3)}},bu=gu;function w3(i){let e,t,n,o,l,r=i[2].default,a=Pe(r,i,i[1],null),s=[{xmlns:"http://www.w3.org/2000/svg"},{width:"24"},{height:"24"},{fill:"none"},{role:"img"},i[0]],u={};for(let f=0;f<s.length;f+=1)u=ne(u,s[f]);return{c(){e=D("svg"),a&&a.c(),t=D("path"),n=D("path"),o=D("path"),c(t,"fill","currentColor"),c(t,"d","M7.662 4h6.676c.808 0 1.469 0 2.006.044.556.045 1.058.142 1.526.381a3.9 3.9 0 0 1 1.705 1.704c.239.47.336.971.381 1.527C20 8.193 20 8.854 20 9.662V11.1a.9.9 0 0 1-1.8 0V9.7c0-.855 0-1.442-.038-1.897-.036-.445-.103-.684-.19-.856a2.1 2.1 0 0 0-.919-.918c-.172-.088-.411-.155-.856-.191C15.742 5.8 15.155 5.8 14.3 5.8H7.7c-.855 0-1.442 0-1.897.038-.445.036-.684.103-.856.19a2.1 2.1 0 0 0-.918.919c-.088.172-.155.411-.191.856C3.8 8.258 3.8 8.845 3.8 9.7v2.646c0 .855 0 1.442.038 1.897.036.445.103.683.19.856a2.1 2.1 0 0 0 .919.918c.172.088.411.155.856.191.455.037 1.042.038 1.897.038h2.4a.9.9 0 0 1 0 1.8H7.662c-.808 0-1.469 0-2.006-.044-.556-.045-1.058-.142-1.527-.381a3.9 3.9 0 0 1-1.704-1.704c-.239-.47-.336-.972-.381-1.527C2 13.852 2 13.192 2 12.384V9.662c0-.808 0-1.469.044-2.006.045-.556.142-1.058.381-1.527A3.9 3.9 0 0 1 4.13 4.425c.47-.239.971-.336 1.527-.381C6.193 4 6.854 4 7.662 4M13 16.8c0-.98 0-1.47.19-1.845a1.75 1.75 0 0 1 .766-.764C14.33 14 14.82 14 15.8 14h3.4c.98 0 1.47 0 1.845.19.329.168.596.436.764.766.191.374.191.864.191 1.844v.4c0 .98 0 1.47-.19 1.845a1.75 1.75 0 0 1-.765.764C20.67 20 20.18 20 19.2 20h-3.4c-.98 0-1.47 0-1.845-.19a1.75 1.75 0 0 1-.764-.765C13 18.67 13 18.18 13 17.2z"),c(t,"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"),be(e,u)},m(f,p){C(f,e,p),a&&a.m(e,null),m(e,t),m(e,n),m(e,o),l=!0},p(f,[p]){a&&a.p&&(!l||p&2)&&Te(a,r,f,f[1],l?Ie(r,f[1],p,null):Ee(f[1]),null),be(e,u=Ve(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&&w(e),a&&a.d(f)}}}function k3(i,e,t){let{$$slots:n={},$$scope:o}=e;return i.$$set=l=>{t(0,e=ne(ne({},e),ge(l))),"$$scope"in l&&t(1,o=l.$$scope)},e=ge(e),[e,o,n]}var vu=class extends q{constructor(e){super(),U(this,e,k3,w3,z,{})}},pm=vu;function C3(i){Ce(i,"svelte-sba75o",'svg[data-testid="pip-icon--active"] .hidden-not-active,svg[data-testid="pip-icon"] .hidden-active{visibility:hidden;opacity:0}')}function S3(i){let e,t;return e=new pm({props:{style:i[1],"data-testid":i[0]?"pip-icon--active":"pip-icon"}}),{c(){B(e.$$.fragment)},m(n,o){L(e,n,o),t=!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){t||(d(e.$$.fragment,n),t=!0)},o(n){_(e.$$.fragment,n),t=!1},d(n){R(e,n)}}}function P3(i,e,t){let n,{isActive:o=!1}=e;return i.$$set=l=>{"isActive"in l&&t(0,o=l.isActive)},i.$$.update=()=>{if(i.$$.dirty&1)e:t(1,n=o?"color: #2688EB;":"color: #fff;")},[o,n]}var yu=class extends q{constructor(e){super(),U(this,e,P3,S3,z,{isActive:0},C3)}},_m=yu;import{noop as I3}from"@vkontakte/videoplayer-shared";function T3(i){let e,t;return e=new _m({props:{isActive:i[1]}}),{c(){B(e.$$.fragment)},m(n,o){L(e,n,o),t=!0},p(n,o){let l={};o&2&&(l.isActive=n[1]),e.$set(l)},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){_(e.$$.fragment,n),t=!1},d(n){R(e,n)}}}function E3(i){let e,t,n;function o(r){i[3](r)}let l={testId:"btn-pip",ariaLabel:j("menu_pip"),click:i[2],$$slots:{default:[T3]},$$scope:{ctx:i}};return i[0]!==void 0&&(l.ref=i[0]),e=new pt({props:l}),he.push(()=>He(e,"ref",o)),{c(){B(e.$$.fragment)},m(r,a){L(e,r,a),n=!0},p(r,[a]){let s={};a&4&&(s.click=r[2]),a&18&&(s.$$scope={dirty:a,ctx:r}),!t&&a&1&&(t=!0,s.ref=r[0],Fe(()=>t=!1)),e.$set(s)},i(r){n||(d(e.$$.fragment,r),n=!0)},o(r){_(e.$$.fragment,r),n=!1},d(r){R(e,r)}}}function A3(i,e,t){let{ref:n=void 0}=e,{isPictureInPictureActive:o=!1}=e,{click:l=I3}=e;function r(a){n=a,t(0,n)}return i.$$set=a=>{"ref"in a&&t(0,n=a.ref),"isPictureInPictureActive"in a&&t(1,o=a.isPictureInPictureActive),"click"in a&&t(2,l=a.click)},[n,o,l,r]}var wu=class extends q{constructor(e){super(),U(this,e,A3,E3,z,{ref:0,isPictureInPictureActive:1,click:2})}},hm=wu;import{throttleFn as M3}from"@vkontakte/videoplayer-shared";function V3(i){Ce(i,"svelte-1tcstu3",".wrapper-bottom.svelte-1tcstu3.svelte-1tcstu3{pointer-events:none;position:absolute;width:100%;bottom:0;left:0;height:var(--controls-gradient-height);background:var(--controls-gradient);transition:transform var(--controls-transition-duration) var(--controls-transition-fn);display:flex;flex-direction:column;justify-content:flex-end;box-sizing:border-box;padding:0 4px 8px}.wrapper-bottom.svelte-1tcstu3>.svelte-1tcstu3{pointer-events:auto}.wrapper-bottom.ads-timeline-mobile.svelte-1tcstu3.svelte-1tcstu3{height:9px;padding:0 4px 4px}.wrapper-middle.svelte-1tcstu3.svelte-1tcstu3{position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);transition:opacity var(--controls-transition-duration);display:flex;align-items:center}.wrapper-top-right.svelte-1tcstu3.svelte-1tcstu3{position:absolute;top:4px;right:8px;transition:opacity var(--controls-transition-duration);display:flex}.wrapper-top-left.svelte-1tcstu3.svelte-1tcstu3{position:absolute;top:4px;left:8px}.wrapper-middle-left.svelte-1tcstu3.svelte-1tcstu3,.wrapper-middle-left-second.svelte-1tcstu3.svelte-1tcstu3,.wrapper-middle-right.svelte-1tcstu3.svelte-1tcstu3{position:absolute;top:50%;transform:translateY(-50%);height:44px;width:44px;border-radius:12px;background-color:rgba(0, 0, 0, 0.56);transition:opacity var(--controls-transition-duration);display:flex;align-items:center;justify-content:center}.wrapper-middle-left.svelte-1tcstu3.svelte-1tcstu3{left:12px}.wrapper-middle-left-second.svelte-1tcstu3.svelte-1tcstu3{left:64px}.wrapper-middle-right.svelte-1tcstu3.svelte-1tcstu3{right:12px}.controls.svelte-1tcstu3.svelte-1tcstu3{width:100%;display:flex;align-items:center;height:var(--controls-height);white-space:nowrap;font-size:13px;transition:transform var(--controls-transition-duration) var(--controls-transition-fn);will-change:transform;padding:0 4px;box-sizing:border-box}.controls.svelte-1tcstu3 > *:not(:first-child){margin-left:8px}.hidden.svelte-1tcstu3.svelte-1tcstu3{visibility:hidden;opacity:0}.controls-hidden.svelte-1tcstu3.svelte-1tcstu3{visibility:visible;transform:translateY(100%)}.wrapper-bottom.no-smooth.svelte-1tcstu3.svelte-1tcstu3{transition:none}.settings-mobile.svelte-1tcstu3.svelte-1tcstu3{position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);transition:opacity var(--controls-transition-duration);display:flex;align-items:center;max-width:320px;width:90%}.overlay-mobile.svelte-1tcstu3.svelte-1tcstu3{position:absolute;top:0;left:0;width:100%;height:100%;background-color:rgba(0, 0, 0, .3);pointer-events:none;transition:opacity var(--controls-transition-duration)}@media screen and (orientation: portrait){.wrapper-top-right.fullscreen.svelte-1tcstu3.svelte-1tcstu3{top:16px}.wrapper-top-left.fullscreen.svelte-1tcstu3.svelte-1tcstu3{top:16px}.controls-wrapper.fullscreen.svelte-1tcstu3.svelte-1tcstu3{position:absolute;bottom:30px;width:calc(100% - 8px)}}@media screen and (orientation: landscape){.wrapper-top-left.fullscreen.svelte-1tcstu3.svelte-1tcstu3{top:12px;left:44px}.wrapper-top-right.fullscreen.svelte-1tcstu3.svelte-1tcstu3{top:12px;right:44px}.wrapper-middle-left.fullscreen.svelte-1tcstu3.svelte-1tcstu3{left:44px}.wrapper-middle-left-second.fullscreen.svelte-1tcstu3.svelte-1tcstu3{left:96px}.wrapper-middle-right.fullscreen.svelte-1tcstu3.svelte-1tcstu3{right:44px}.controls-wrapper.fullscreen.svelte-1tcstu3.svelte-1tcstu3{position:absolute;left:36px;right:36px;bottom:32px;width:calc(100% - 72px)}}")}function vm(i,e,t){let n=i.slice();return n[169]=e[t].iconUrl,n[170]=e[t].ariaLabel,n[171]=e[t].testId,n[172]=e[t].onClick,n[173]=e[t].tooltip,n}function ym(i){let e,t,n,o,l,r,a,s,u,f,p,h,b,g,S,y,T,k=(!i[51]||i[53])&&wm(i),v=gt(i[56]),I=[];for(let N=0;N<v.length;N+=1)I[N]=km(vm(i,v,N));let W=N=>_(I[N],1,1,()=>{I[N]=null}),Q=i[36]&&Cm(i),G=i[37]&&Sm(i),le=i[57]&&Pm(i),ae=i[39]&&Im(i),V=i[8]&&Tm(i),A=i[34]&&Em(i),$=i[33]&&Am(i),J=i[8]&&Mm(i),x=i[96]&&!i[29]&&Vm(i);return{c(){e=P("div"),t=O(),n=P("div"),k&&k.c(),o=O(),l=P("div");for(let N=0;N<I.length;N+=1)I[N].c();r=O(),Q&&Q.c(),a=O(),G&&G.c(),s=O(),le&&le.c(),u=O(),ae&&ae.c(),f=O(),p=P("div"),V&&V.c(),h=O(),A&&A.c(),b=O(),$&&$.c(),g=O(),J&&J.c(),S=O(),x&&x.c(),y=ot(),c(e,"class","overlay-mobile svelte-1tcstu3"),H(e,"hidden",!i[42]),c(n,"class","wrapper-top-left svelte-1tcstu3"),H(n,"hidden",!i[3]),H(n,"fullscreen",i[52]),c(l,"class","wrapper-top-right svelte-1tcstu3"),H(l,"hidden",!i[3]&&!i[27]),H(l,"fullscreen",i[52]),c(p,"class","wrapper-middle svelte-1tcstu3"),H(p,"hidden",!i[3]||i[29])},m(N,te){C(N,e,te),C(N,t,te),C(N,n,te),k&&k.m(n,null),C(N,o,te),C(N,l,te);for(let E=0;E<I.length;E+=1)I[E]&&I[E].m(l,null);m(l,r),Q&&Q.m(l,null),m(l,a),G&&G.m(l,null),m(l,s),le&&le.m(l,null),m(l,u),ae&&ae.m(l,null),C(N,f,te),C(N,p,te),V&&V.m(p,null),m(p,h),A&&A.m(p,null),m(p,b),$&&$.m(p,null),m(p,g),J&&J.m(p,null),C(N,S,te),x&&x.m(N,te),C(N,y,te),T=!0},p(N,te){if((!T||te[1]&2048)&&H(e,"hidden",!N[42]),!N[51]||N[53]?k?(k.p(N,te),te[1]&5242880&&d(k,1)):(k=wm(N),k.c(),d(k,1),k.m(n,null)):k&&(ue(),_(k,1,1,()=>{k=null}),ce()),(!T||te[0]&8)&&H(n,"hidden",!N[3]),(!T||te[1]&2097152)&&H(n,"fullscreen",N[52]),te[1]&33554432){v=gt(N[56]);let E;for(E=0;E<v.length;E+=1){let Y=vm(N,v,E);I[E]?(I[E].p(Y,te),d(I[E],1)):(I[E]=km(Y),I[E].c(),d(I[E],1),I[E].m(l,r))}for(ue(),E=v.length;E<I.length;E+=1)W(E);ce()}N[36]?Q?(Q.p(N,te),te[1]&32&&d(Q,1)):(Q=Cm(N),Q.c(),d(Q,1),Q.m(l,a)):Q&&(ue(),_(Q,1,1,()=>{Q=null}),ce()),N[37]?G?(G.p(N,te),te[1]&64&&d(G,1)):(G=Sm(N),G.c(),d(G,1),G.m(l,s)):G&&(ue(),_(G,1,1,()=>{G=null}),ce()),N[57]?le?(le.p(N,te),te[1]&67108864&&d(le,1)):(le=Pm(N),le.c(),d(le,1),le.m(l,u)):le&&(ue(),_(le,1,1,()=>{le=null}),ce()),N[39]?ae?(ae.p(N,te),te[1]&256&&d(ae,1)):(ae=Im(N),ae.c(),d(ae,1),ae.m(l,null)):ae&&(ue(),_(ae,1,1,()=>{ae=null}),ce()),(!T||te[0]&134217736)&&H(l,"hidden",!N[3]&&!N[27]),(!T||te[1]&2097152)&&H(l,"fullscreen",N[52]),N[8]?V?(V.p(N,te),te[0]&256&&d(V,1)):(V=Tm(N),V.c(),d(V,1),V.m(p,h)):V&&(ue(),_(V,1,1,()=>{V=null}),ce()),N[34]?A?(A.p(N,te),te[1]&8&&d(A,1)):(A=Em(N),A.c(),d(A,1),A.m(p,b)):A&&(ue(),_(A,1,1,()=>{A=null}),ce()),N[33]?$?($.p(N,te),te[1]&4&&d($,1)):($=Am(N),$.c(),d($,1),$.m(p,g)):$&&(ue(),_($,1,1,()=>{$=null}),ce()),N[8]?J?(J.p(N,te),te[0]&256&&d(J,1)):(J=Mm(N),J.c(),d(J,1),J.m(p,null)):J&&(ue(),_(J,1,1,()=>{J=null}),ce()),(!T||te[0]&536870920)&&H(p,"hidden",!N[3]||N[29]),N[96]&&!N[29]?x?(x.p(N,te),te[0]&536870912&&d(x,1)):(x=Vm(N),x.c(),d(x,1),x.m(y.parentNode,y)):x&&(ue(),_(x,1,1,()=>{x=null}),ce())},i(N){if(!T){d(k);for(let te=0;te<v.length;te+=1)d(I[te]);d(Q),d(G),d(le),d(ae),d(V),d(A),d($),d(J),d(x),T=!0}},o(N){_(k),I=I.filter(Boolean);for(let te=0;te<I.length;te+=1)_(I[te]);_(Q),_(G),_(le),_(ae),_(V),_(A),_($),_(J),_(x),T=!1},d(N){N&&(w(e),w(t),w(n),w(o),w(l),w(f),w(p),w(S),w(y)),k&&k.d(),Ni(I,N),Q&&Q.d(),G&&G.d(),le&&le.d(),ae&&ae.d(),V&&V.d(),A&&A.d(),$&&$.d(),J&&J.d(),x&&x.d(N)}}}function wm(i){let e,t,n;function o(r){i[130](r)}let l={muted:i[54],expanded:i[51]&&!i[70]&&i[55],click:i[106]};return i[20].volume!==void 0&&(l.ref=i[20].volume),e=new bu({props:l}),he.push(()=>He(e,"ref",o)),{c(){B(e.$$.fragment)},m(r,a){L(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]),!t&&a[0]&1048576&&(t=!0,s.ref=r[20].volume,Fe(()=>t=!1)),e.$set(s)},i(r){n||(d(e.$$.fragment,r),n=!0)},o(r){_(e.$$.fragment,r),n=!1},d(r){R(e,r)}}}function km(i){let e,t;return e=new Tr({props:{iconUrl:i[169],ariaLabel:i[170]??i[173],testId:i[171],onClick:i[172]}}),{c(){B(e.$$.fragment)},m(n,o){L(e,n,o),t=!0},p(n,o){let l={};o[1]&33554432&&(l.iconUrl=n[169]),o[1]&33554432&&(l.ariaLabel=n[170]??n[173]),o[1]&33554432&&(l.testId=n[171]),o[1]&33554432&&(l.onClick=n[172]),e.$set(l)},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){_(e.$$.fragment,n),t=!1},d(n){R(e,n)}}}function Cm(i){let e,t,n;function o(r){i[131](r)}let l={isMobile:!0,click:i[104],state:i[28]};return i[20].chromecast!==void 0&&(l.ref=i[20].chromecast),e=new gr({props:l}),he.push(()=>He(e,"ref",o)),{c(){B(e.$$.fragment)},m(r,a){L(e,r,a),n=!0},p(r,a){let s={};a[0]&268435456&&(s.state=r[28]),!t&&a[0]&1048576&&(t=!0,s.ref=r[20].chromecast,Fe(()=>t=!1)),e.$set(s)},i(r){n||(d(e.$$.fragment,r),n=!0)},o(r){_(e.$$.fragment,r),n=!1},d(r){R(e,r)}}}function Sm(i){let e,t,n;function o(r){i[132](r)}let l={click:i[105],isPictureInPictureActive:i[26]};return i[20].pip!==void 0&&(l.ref=i[20].pip),e=new hm({props:l}),he.push(()=>He(e,"ref",o)),{c(){B(e.$$.fragment)},m(r,a){L(e,r,a),n=!0},p(r,a){let s={};a[0]&67108864&&(s.isPictureInPictureActive=r[26]),!t&&a[0]&1048576&&(t=!0,s.ref=r[20].pip,Fe(()=>t=!1)),e.$set(s)},i(r){n||(d(e.$$.fragment,r),n=!0)},o(r){_(e.$$.fragment,r),n=!1},d(r){R(e,r)}}}function Pm(i){let e,t,n;function o(r){i[133](r)}let l={};return i[22]!==void 0&&(l.ref=i[22]),e=new fl({props:l}),he.push(()=>He(e,"ref",o)),{c(){B(e.$$.fragment)},m(r,a){L(e,r,a),n=!0},p(r,a){let s={};!t&&a[0]&4194304&&(t=!0,s.ref=r[22],Fe(()=>t=!1)),e.$set(s)},i(r){n||(d(e.$$.fragment,r),n=!0)},o(r){_(e.$$.fragment,r),n=!1},d(r){R(e,r)}}}function Im(i){let e,t,n;function o(r){i[134](r)}let l={click:i[64],targetUrl:i[7],logoClickable:i[6]};return i[20].vkLogo!==void 0&&(l.ref=i[20].vkLogo),e=new hr({props:l}),he.push(()=>He(e,"ref",o)),{c(){B(e.$$.fragment)},m(r,a){L(e,r,a),n=!0},p(r,a){let s={};a[0]&128&&(s.targetUrl=r[7]),a[0]&64&&(s.logoClickable=r[6]),!t&&a[0]&1048576&&(t=!0,s.ref=r[20].vkLogo,Fe(()=>t=!1)),e.$set(s)},i(r){n||(d(e.$$.fragment,r),n=!0)},o(r){_(e.$$.fragment,r),n=!1},d(r){R(e,r)}}}function Tm(i){let e,t,n;function o(r){i[135](r)}let l={click:i[13],type:"prev",disabled:!i[10],isMobile:!0};return i[20].prevButton!==void 0&&(l.ref=i[20].prevButton),e=new Zo({props:l}),he.push(()=>He(e,"ref",o)),{c(){B(e.$$.fragment)},m(r,a){L(e,r,a),n=!0},p(r,a){let s={};a[0]&8192&&(s.click=r[13]),a[0]&1024&&(s.disabled=!r[10]),!t&&a[0]&1048576&&(t=!0,s.ref=r[20].prevButton,Fe(()=>t=!1)),e.$set(s)},i(r){n||(d(e.$$.fragment,r),n=!0)},o(r){_(e.$$.fragment,r),n=!1},d(r){R(e,r)}}}function Em(i){let e,t,n;function o(r){i[136](r)}let l={disabled:i[49],click:i[63],isMobile:!0,isPlaying:i[31]};return i[20].playButton!==void 0&&(l.ref=i[20].playButton),e=new ml({props:l}),he.push(()=>He(e,"ref",o)),{c(){B(e.$$.fragment)},m(r,a){L(e,r,a),n=!0},p(r,a){let s={};a[1]&262144&&(s.disabled=r[49]),a[1]&1&&(s.isPlaying=r[31]),!t&&a[0]&1048576&&(t=!0,s.ref=r[20].playButton,Fe(()=>t=!1)),e.$set(s)},i(r){n||(d(e.$$.fragment,r),n=!0)},o(r){_(e.$$.fragment,r),n=!1},d(r){R(e,r)}}}function Am(i){let e,t,n;function o(r){i[137](r)}let l={disabled:i[48],click:i[107],isMobile:!0};return i[20].replayButton!==void 0&&(l.ref=i[20].replayButton),e=new pl({props:l}),he.push(()=>He(e,"ref",o)),{c(){B(e.$$.fragment)},m(r,a){L(e,r,a),n=!0},p(r,a){let s={};a[1]&131072&&(s.disabled=r[48]),!t&&a[0]&1048576&&(t=!0,s.ref=r[20].replayButton,Fe(()=>t=!1)),e.$set(s)},i(r){n||(d(e.$$.fragment,r),n=!0)},o(r){_(e.$$.fragment,r),n=!1},d(r){R(e,r)}}}function Mm(i){let e,t,n;function o(r){i[138](r)}let l={click:i[12],type:"next",disabled:!i[9],isMobile:!0};return i[20].nextButton!==void 0&&(l.ref=i[20].nextButton),e=new Zo({props:l}),he.push(()=>He(e,"ref",o)),{c(){B(e.$$.fragment)},m(r,a){L(e,r,a),n=!0},p(r,a){let s={};a[0]&4096&&(s.click=r[12]),a[0]&512&&(s.disabled=!r[9]),!t&&a[0]&1048576&&(t=!0,s.ref=r[20].nextButton,Fe(()=>t=!1)),e.$set(s)},i(r){n||(d(e.$$.fragment,r),n=!0)},o(r){_(e.$$.fragment,r),n=!1},d(r){R(e,r)}}}function Vm(i){let e,t,n,o,l=i[100]&&L3(i),r=i[98]&&R3(i),a=i[99]&&B3(i);return{c(){l&&l.c(),e=O(),r&&r.c(),t=O(),a&&a.c(),n=ot()},m(s,u){l&&l.m(s,u),C(s,e,u),r&&r.m(s,u),C(s,t,u),a&&a.m(s,u),C(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&&(w(e),w(t),w(n)),l&&l.d(s),r&&r.d(s),a&&a.d(s)}}}function L3(i){let e,t,n,o,l,r;function a(u){i[139](u)}let s={hidden:!i[3],disabled:i[47],click:i[18]};return i[20].playPrevChapterButton!==void 0&&(s.ref=i[20].playPrevChapterButton),t=new Ir({props:s}),he.push(()=>He(t,"ref",a)),{c(){e=P("div"),B(t.$$.fragment),c(e,"class","wrapper-middle-left svelte-1tcstu3"),H(e,"fullscreen",i[52]),H(e,"hidden",!i[3])},m(u,f){C(u,e,f),L(t,e,null),o=!0,l||(r=pe(e,"click",i[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,Fe(()=>n=!1)),t.$set(p),(!o||f[1]&2097152)&&H(e,"fullscreen",u[52]),(!o||f[0]&8)&&H(e,"hidden",!u[3])},i(u){o||(d(t.$$.fragment,u),o=!0)},o(u){_(t.$$.fragment,u),o=!1},d(u){u&&w(e),R(t),l=!1,r()}}}function R3(i){let e,t,n,o,l;function r(s){i[140](s)}let a={hidden:!i[3]&&!i[58],disabled:i[50],click:i[17],graphIsOpened:i[58]};return i[20].interactiveGraphButton!==void 0&&(a.ref=i[20].interactiveGraphButton),t=new Sr({props:a}),he.push(()=>He(t,"ref",r)),{c(){e=P("div"),B(t.$$.fragment),c(e,"class",o=yc(i[100]?"wrapper-middle-left-second":"wrapper-middle-left")+" svelte-1tcstu3"),H(e,"fullscreen",i[52]),H(e,"hidden",!i[3]&&!i[58])},m(s,u){C(s,e,u),L(t,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,Fe(()=>n=!1)),t.$set(f),(!l||u[1]&2097152)&&H(e,"fullscreen",s[52]),(!l||u[0]&8|u[1]&134217728)&&H(e,"hidden",!s[3]&&!s[58])},i(s){l||(d(t.$$.fragment,s),l=!0)},o(s){_(t.$$.fragment,s),l=!1},d(s){s&&w(e),R(t)}}}function B3(i){let e,t,n,o,l,r;function a(u){i[141](u)}let s={hidden:!i[3],disabled:i[46],click:i[16]};return i[20].seekToInteractiveButton!==void 0&&(s.ref=i[20].seekToInteractiveButton),t=new Cr({props:s}),he.push(()=>He(t,"ref",a)),{c(){e=P("div"),B(t.$$.fragment),c(e,"class","wrapper-middle-right svelte-1tcstu3"),H(e,"fullscreen",i[52]),H(e,"hidden",!i[3])},m(u,f){C(u,e,f),L(t,e,null),o=!0,l||(r=pe(e,"click",i[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,Fe(()=>n=!1)),t.$set(p),(!o||f[1]&2097152)&&H(e,"fullscreen",u[52]),(!o||f[0]&8)&&H(e,"hidden",!u[3])},i(u){o||(d(t.$$.fragment,u),o=!0)},o(u){_(t.$$.fragment,u),o=!1},d(u){u&&w(e),R(t),l=!1,r()}}}function Lm(i){let e,t,n,o,l,r=i[53]&&Rm(i),a=i[32]&&Bm(i);return o=new yr({props:{position:i[59],duration:i[60]}}),{c(){r&&r.c(),e=O(),a&&a.c(),t=O(),n=P("div"),B(o.$$.fragment),c(n,"class","wrapper-bottom ads-timeline-mobile svelte-1tcstu3"),H(n,"fullscreen",i[52])},m(s,u){r&&r.m(s,u),C(s,e,u),a&&a.m(s,u),C(s,t,u),C(s,n,u),L(o,n,null),l=!0},p(s,u){s[53]?r?(r.p(s,u),u[1]&4194304&&d(r,1)):(r=Rm(s),r.c(),d(r,1),r.m(e.parentNode,e)):r&&(ue(),_(r,1,1,()=>{r=null}),ce()),s[32]?a?(a.p(s,u),u[1]&2&&d(a,1)):(a=Bm(s),a.c(),d(a,1),a.m(t.parentNode,t)):a&&(ue(),_(a,1,1,()=>{a=null}),ce());let f={};u[1]&268435456&&(f.position=s[59]),u[1]&536870912&&(f.duration=s[60]),o.$set(f),(!l||u[1]&2097152)&&H(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&&(w(e),w(t),w(n)),r&&r.d(s),a&&a.d(s),R(o)}}}function Rm(i){let e,t,n,o;function l(a){i[142](a)}let r={muted:i[54],expanded:!1,click:i[106]};return i[20].volume!==void 0&&(r.ref=i[20].volume),t=new bu({props:r}),he.push(()=>He(t,"ref",l)),{c(){e=P("div"),B(t.$$.fragment),c(e,"class","wrapper-top-right svelte-1tcstu3"),H(e,"fullscreen",i[52])},m(a,s){C(a,e,s),L(t,e,null),o=!0},p(a,s){let u={};s[1]&8388608&&(u.muted=a[54]),!n&&s[0]&1048576&&(n=!0,u.ref=a[20].volume,Fe(()=>n=!1)),t.$set(u),(!o||s[1]&2097152)&&H(e,"fullscreen",a[52])},i(a){o||(d(t.$$.fragment,a),o=!0)},o(a){_(t.$$.fragment,a),o=!1},d(a){a&&w(e),R(t)}}}function Bm(i){let e,t,n,o;function l(a){i[143](a)}let r={disabled:i[49],click:i[63],isMobile:!0,isPlaying:!i[32]};return i[20].playButton!==void 0&&(r.ref=i[20].playButton),t=new ml({props:r}),he.push(()=>He(t,"ref",l)),{c(){e=P("div"),B(t.$$.fragment),c(e,"class","wrapper-middle svelte-1tcstu3")},m(a,s){C(a,e,s),L(t,e,null),o=!0},p(a,s){let u={};s[1]&262144&&(u.disabled=a[49]),s[1]&2&&(u.isPlaying=!a[32]),!n&&s[0]&1048576&&(n=!0,u.ref=a[20].playButton,Fe(()=>n=!1)),t.$set(u)},i(a){o||(d(t.$$.fragment,a),o=!0)},o(a){_(t.$$.fragment,a),o=!1},d(a){a&&w(e),R(t)}}}function D3(i){let e,t,n;function o(r){i[144](r)}let l={disabled:i[48],$$slots:{default:[N3]},$$scope:{ctx:i}};return i[20].replayButton!==void 0&&(l.ref=i[20].replayButton),e=new St({props:l}),he.push(()=>He(e,"ref",o)),{c(){B(e.$$.fragment)},m(r,a){L(e,r,a),n=!0},p(r,a){let s={};a[1]&131072&&(s.disabled=r[48]),a[1]&131072|a[5]&2097152&&(s.$$scope={dirty:a,ctx:r}),!t&&a[0]&1048576&&(t=!0,s.ref=r[20].replayButton,Fe(()=>t=!1)),e.$set(s)},i(r){n||(d(e.$$.fragment,r),n=!0)},o(r){_(e.$$.fragment,r),n=!1},d(r){R(e,r)}}}function N3(i){let e,t;return e=new pl({props:{disabled:i[48],click:i[95]}}),{c(){B(e.$$.fragment)},m(n,o){L(e,n,o),t=!0},p(n,o){let l={};o[1]&131072&&(l.disabled=n[48]),e.$set(l)},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){_(e.$$.fragment,n),t=!1},d(n){R(e,n)}}}function Dm(i){let e,t,n;function o(r){i[145](r)}let l={$$slots:{default:[O3]},$$scope:{ctx:i}};return i[20].liveButton!==void 0&&(l.ref=i[20].liveButton),e=new St({props:l}),he.push(()=>He(e,"ref",o)),{c(){B(e.$$.fragment)},m(r,a){L(e,r,a),n=!0},p(r,a){let s={};a[0]&524288|a[1]&16384|a[5]&2097152&&(s.$$scope={dirty:a,ctx:r}),!t&&a[0]&1048576&&(t=!0,s.ref=r[20].liveButton,Fe(()=>t=!1)),e.$set(s)},i(r){n||(d(e.$$.fragment,r),n=!0)},o(r){_(e.$$.fragment,r),n=!1},d(r){R(e,r)}}}function O3(i){let e,t;return e=new br({props:{isActiveLive:i[19],isMobile:!0,ariaLabel:i[45]}}),{c(){B(e.$$.fragment)},m(n,o){L(e,n,o),t=!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){t||(d(e.$$.fragment,n),t=!0)},o(n){_(e.$$.fragment,n),t=!1},d(n){R(e,n)}}}function Nm(i){let e,t,n;function o(r){i[146](r)}let l={showDuration:i[35],position:i[4]?i[59]:i[61],duration:i[4]?i[60]:i[62],isMobile:!0};return i[20].time!==void 0&&(l.ref=i[20].time),e=new cr({props:l}),he.push(()=>He(e,"ref",o)),{c(){B(e.$$.fragment)},m(r,a){L(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]),!t&&a[0]&1048576&&(t=!0,s.ref=r[20].time,Fe(()=>t=!1)),e.$set(s)},i(r){n||(d(e.$$.fragment,r),n=!0)},o(r){_(e.$$.fragment,r),n=!1},d(r){R(e,r)}}}function Om(i){let e,t,n,o;return n=new kr({props:{position:i[61],duration:i[62],timeCodes:i[84]}}),{c(){e=P("div"),e.textContent="\xB7",t=O(),B(n.$$.fragment),c(e,"aria-hidden","true")},m(l,r){C(l,e,r),C(l,t,r),L(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&&(w(e),w(t)),R(n,l)}}}function F3(i){let e,t,n=i[43]&&Om(i);return{c(){n&&n.c(),e=ot()},m(o,l){n&&n.m(o,l),C(o,e,l),t=!0},p(o,l){o[43]?n?(n.p(o,l),l[1]&4096&&d(n,1)):(n=Om(o),n.c(),d(n,1),n.m(e.parentNode,e)):n&&(ue(),_(n,1,1,()=>{n=null}),ce())},i(o){t||(d(n),t=!0)},o(o){_(n),t=!1},d(o){o&&w(e),n&&n.d(o)}}}function Fm(i){let e,t,n;function o(r){i[149](r)}let l={$$slots:{default:[H3]},$$scope:{ctx:i}};return i[20].settings!==void 0&&(l.ref=i[20].settings),e=new St({props:l}),he.push(()=>He(e,"ref",o)),{c(){B(e.$$.fragment)},m(r,a){L(e,r,a),n=!0},p(r,a){let s={};a[0]&4194304|a[5]&2097152&&(s.$$scope={dirty:a,ctx:r}),!t&&a[0]&1048576&&(t=!0,s.ref=r[20].settings,Fe(()=>t=!1)),e.$set(s)},i(r){n||(d(e.$$.fragment,r),n=!0)},o(r){_(e.$$.fragment,r),n=!1},d(r){R(e,r)}}}function H3(i){let e,t,n;function o(r){i[148](r)}let l={};return i[22]!==void 0&&(l.ref=i[22]),e=new fl({props:l}),he.push(()=>He(e,"ref",o)),{c(){B(e.$$.fragment)},m(r,a){L(e,r,a),n=!0},p(r,a){let s={};!t&&a[0]&4194304&&(t=!0,s.ref=r[22],Fe(()=>t=!1)),e.$set(s)},i(r){n||(d(e.$$.fragment,r),n=!0)},o(r){_(e.$$.fragment,r),n=!1},d(r){R(e,r)}}}function Hm(i){let e,t,n;function o(r){i[150](r)}let l={$$slots:{default:[z3]},$$scope:{ctx:i}};return i[20].fullscreen!==void 0&&(l.ref=i[20].fullscreen),e=new St({props:l}),he.push(()=>He(e,"ref",o)),{c(){B(e.$$.fragment)},m(r,a){L(e,r,a),n=!0},p(r,a){let s={};a[0]&16384|a[1]&2097152|a[5]&2097152&&(s.$$scope={dirty:a,ctx:r}),!t&&a[0]&1048576&&(t=!0,s.ref=r[20].fullscreen,Fe(()=>t=!1)),e.$set(s)},i(r){n||(d(e.$$.fragment,r),n=!0)},o(r){_(e.$$.fragment,r),n=!1},d(r){R(e,r)}}}function z3(i){let e,t;return e=new pr({props:{click:i[14],isFullscreen:i[52]}}),{c(){B(e.$$.fragment)},m(n,o){L(e,n,o),t=!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){t||(d(e.$$.fragment,n),t=!0)},o(n){_(e.$$.fragment,n),t=!1},d(n){R(e,n)}}}function zm(i){let e,t,n,o;function l(a){i[153](a)}let r={supportLink:i[11],returnFocus:i[15]};return i[21]!==void 0&&(r.ref=i[21]),t=new ur({props:r}),he.push(()=>He(t,"ref",l)),{c(){e=P("div"),B(t.$$.fragment),c(e,"class","settings-mobile svelte-1tcstu3")},m(a,s){C(a,e,s),L(t,e,null),o=!0},p(a,s){let u={};s[0]&2048&&(u.supportLink=a[11]),s[0]&32768&&(u.returnFocus=a[15]),!n&&s[0]&2097152&&(n=!0,u.ref=a[21],Fe(()=>n=!1)),t.$set(u)},i(a){o||(d(t.$$.fragment,a),o=!0)},o(a){_(t.$$.fragment,a),o=!1},d(a){a&&w(e),R(t)}}}function q3(i){let e,t,n;function o(r){i[154](r)}let l={};return i[20].interactiveTimeIndicator!==void 0&&(l.ref=i[20].interactiveTimeIndicator),e=new Nr({props:l}),he.push(()=>He(e,"ref",o)),{c(){B(e.$$.fragment)},m(r,a){L(e,r,a),n=!0},p(r,a){let s={};!t&&a[0]&1048576&&(t=!0,s.ref=r[20].interactiveTimeIndicator,Fe(()=>t=!1)),e.$set(s)},i(r){n||(d(e.$$.fragment,r),n=!0)},o(r){_(e.$$.fragment,r),n=!1},d(r){R(e,r)}}}function U3(i){let e,t,n,o,l,r,a,s,u,f,p,h,b,g,S,y,T,k,v=!i[4]&&ym(i),I=i[4]&&i[30]!=="inactive"&&Lm(i),W=i[96]&&D3(i),Q=!i[4]&&i[25]&&Dm(i),G=i[41]&&Nm(i);function le(x){i[147](x)}let ae={className:"w-max",disabled:!i[43],$$slots:{default:[F3]},$$scope:{ctx:i}};i[20].episodes!==void 0&&(ae.ref=i[20].episodes),u=new St({props:ae}),he.push(()=>He(u,"ref",le));let V=i[38]&&Fm(i),A=i[40]&&Hm(i);g=new wr({props:{isAds:i[4],canRewindLive:i[5],isRewindableLive:i[24]}});let $=i[23]&&zm(i),J=i[101]&&q3(i);return{c(){v&&v.c(),e=O(),I&&I.c(),t=O(),n=P("div"),o=P("div"),l=P("div"),W&&W.c(),r=O(),Q&&Q.c(),a=O(),G&&G.c(),s=O(),B(u.$$.fragment),p=O(),V&&V.c(),h=O(),A&&A.c(),b=O(),B(g.$$.fragment),S=O(),$&&$.c(),y=O(),J&&J.c(),T=ot(),c(l,"class","controls svelte-1tcstu3"),H(l,"mobile",!0),c(o,"class","controls-wrapper svelte-1tcstu3"),H(o,"fullscreen",i[52]),c(n,"class","wrapper-bottom svelte-1tcstu3"),H(n,"hidden",i[1]),H(n,"controls-hidden",!i[3]),H(n,"no-smooth",i[2]),H(n,"mobile",!0)},m(x,N){v&&v.m(x,N),C(x,e,N),I&&I.m(x,N),C(x,t,N),C(x,n,N),m(n,o),m(o,l),W&&W.m(l,null),m(l,r),Q&&Q.m(l,null),m(l,a),G&&G.m(l,null),m(l,s),L(u,l,null),m(l,p),V&&V.m(l,null),m(l,h),A&&A.m(l,null),i[151](l),m(o,b),L(g,o,null),i[152](n),C(x,S,N),$&&$.m(x,N),C(x,y,N),J&&J.m(x,N),C(x,T,N),k=!0},p(x,N){x[4]?v&&(ue(),_(v,1,1,()=>{v=null}),ce()):v?(v.p(x,N),N[0]&16&&d(v,1)):(v=ym(x),v.c(),d(v,1),v.m(e.parentNode,e)),x[4]&&x[30]!=="inactive"?I?(I.p(x,N),N[0]&1073741840&&d(I,1)):(I=Lm(x),I.c(),d(I,1),I.m(t.parentNode,t)):I&&(ue(),_(I,1,1,()=>{I=null}),ce()),x[96]&&W.p(x,N),!x[4]&&x[25]?Q?(Q.p(x,N),N[0]&33554448&&d(Q,1)):(Q=Dm(x),Q.c(),d(Q,1),Q.m(l,a)):Q&&(ue(),_(Q,1,1,()=>{Q=null}),ce()),x[41]?G?(G.p(x,N),N[1]&1024&&d(G,1)):(G=Nm(x),G.c(),d(G,1),G.m(l,s)):G&&(ue(),_(G,1,1,()=>{G=null}),ce());let te={};N[1]&4096&&(te.disabled=!x[43]),N[1]&1073745920|N[2]&1|N[5]&2097152&&(te.$$scope={dirty:N,ctx:x}),!f&&N[0]&1048576&&(f=!0,te.ref=x[20].episodes,Fe(()=>f=!1)),u.$set(te),x[38]?V?(V.p(x,N),N[1]&128&&d(V,1)):(V=Fm(x),V.c(),d(V,1),V.m(l,h)):V&&(ue(),_(V,1,1,()=>{V=null}),ce()),x[40]?A?(A.p(x,N),N[1]&512&&d(A,1)):(A=Hm(x),A.c(),d(A,1),A.m(l,null)):A&&(ue(),_(A,1,1,()=>{A=null}),ce());let E={};N[0]&16&&(E.isAds=x[4]),N[0]&32&&(E.canRewindLive=x[5]),N[0]&16777216&&(E.isRewindableLive=x[24]),g.$set(E),(!k||N[1]&2097152)&&H(o,"fullscreen",x[52]),(!k||N[0]&2)&&H(n,"hidden",x[1]),(!k||N[0]&8)&&H(n,"controls-hidden",!x[3]),(!k||N[0]&4)&&H(n,"no-smooth",x[2]),x[23]?$?($.p(x,N),N[0]&8388608&&d($,1)):($=zm(x),$.c(),d($,1),$.m(y.parentNode,y)):$&&(ue(),_($,1,1,()=>{$=null}),ce()),x[101]&&J.p(x,N)},i(x){k||(d(v),d(I),d(W),d(Q),d(G),d(u.$$.fragment,x),d(V),d(A),d(g.$$.fragment,x),d($),d(J),k=!0)},o(x){_(v),_(I),_(W),_(Q),_(G),_(u.$$.fragment,x),_(V),_(A),_(g.$$.fragment,x),_($),_(J),k=!1},d(x){x&&(w(e),w(t),w(n),w(S),w(y),w(T)),v&&v.d(x),I&&I.d(x),W&&W.d(),Q&&Q.d(),G&&G.d(),R(u),V&&V.d(),A&&A.d(),i[151](null),R(g),i[152](null),$&&$.d(x),J&&J.d(x)}}}function K3(i,e,t){let n,o,l,r,a,s,u,f,p,h,b,g,S,y,T,k,v,I,W,Q,G,le,ae,V,A,$,J,x,N,te,E,Y,Le,je,qe,Je,Ne,{bottomHidden:we}=e,{bottomNoSmooth:X}=e,{showControls:ve}=e,{controlsElementRef:Oe=void 0}=e,{isAds:Xe=!1}=e,{canRewindLive:xe}=e,{logoClickable:ke}=e,{logoHidden:Re}=e,{logoTargetUrl:Ue=""}=e,{showNextPrevButtons:We}=e,{nextButtonActive:se}=e,{prevButtonActive:oe}=e,{isOneVideoPlaylist:Se=!1}=e,{supportLink:fe}=e,{customFullscreenSupported:Ae=!0}=e,{playNextVideo:Ze}=e,{playPrevVideo:ut}=e,{repeatPlaylist:ct}=e,{toggleFullscreen:at}=e,{returnFocus:ye}=e,{seekToInteractive:mt}=e,{toggleGraph:lt}=e,{playPrevChapter:dt}=e,{onDisabledPlayPrevChapterClick:ht}=e,{onDisabledSeekToInteractiveClick:Et}=e,Ke=et(),Qt=yn(),Bt=Tt(),Mt=Ke.actions.internal.toggleMuted,ti=Ke.actions.internal.togglePlay,it=Ke.actions.internal.pause,me=Ke.callbacks?.onAudioDoesNotExistHint,vt=Ke.callbacks?.onAudioDisabledHint,_t=Ke.playerPhase;F(i,_t,ee=>t(126,G=ee));let Dt=Ke.state.duration$;F(i,Dt,ee=>t(62,Ne=ee));let wt=Ke.state.positionWithScrubbing$;F(i,wt,ee=>t(61,Je=ee));let At=Ke.state.playbackState$;F(i,At,ee=>t(121,h=ee));let Ut=Ke.state.isAudioAvailable$;F(i,Ut,ee=>t(51,b=ee));let en=Ke.state.isAudioDisabled,di=Ke.state.isEnded$;F(i,di,ee=>t(127,ae=ee));let mi=Ke.state.isLive$;F(i,mi,ee=>t(25,k=ee));let Ei=Ke.state.muted$;F(i,Ei,ee=>t(54,N=ee));let Yt=Ke.state.isActiveLive$;F(i,Yt,ee=>t(124,y=ee));let pi=Ke.state.isRewindableLive$;F(i,pi,ee=>t(24,T=ee));let tn=Ke.ui.scrubbingInProgress;F(i,tn,ee=>t(29,le=ee));let _i=Ke.ui.mobileNotReportControlHidden$;F(i,_i,ee=>t(27,W=ee));let Fi=Ke.ui.isPictureInPictureActive$;F(i,Fi,ee=>t(26,I=ee));let ii=Ke.ui.pictureInPictureType$;F(i,ii,ee=>t(125,v=ee));let Ai=Ke.ui.mobileUnmuteButtonExpanded;F(i,Ai,ee=>t(55,te=ee));let hi=Ke.ui.mobileUnmuteButtonVisible;F(i,hi,ee=>t(53,x=ee));let Hi=Ke.ui.settingsMenuVisible;F(i,Hi,ee=>t(23,p=ee));let gi=Ke.ui.settingsMenuOpenedByKeyboard;F(i,gi,ee=>t(120,f=ee));let ni=Ke.ui.controls,Pt=Ke.actions.internal.getVideoEpisodes(),Nt=Ke.webApi.pictureInPictureApi,bi=Ke.state.chromecastState$;F(i,bi,ee=>t(28,Q=ee));let vi=Ke.state.crashed$;F(i,vi,ee=>t(57,Y=ee));let Ot=ni.disabledControls$;F(i,Ot,ee=>t(128,A=ee));let oi=Ke.ui.startedByKeyboard$;F(i,oi,ee=>t(119,u=ee));let li=Ke.ads.duration;F(i,li,ee=>t(60,qe=ee));let Vt=Ke.ads.position;F(i,Vt,ee=>t(59,je=ee));let It=Ke.ads.playbackState;F(i,It,ee=>t(30,V=ee));let Kt=Ke.ui.isFullscreen;F(i,Kt,ee=>t(52,J=ee));let Mi=Ke.ui.playerSize;F(i,Mi,ee=>t(123,S=ee));let Zt=Ke.ui.additionalButtons$;F(i,Zt,ee=>t(56,E=ee));let nn=Ke.actions.internal.getVideoElement,on=Ke.actions.internal.replayInteractive,jt=Ke.state.isInteractive,yi=Ke.state.isInteractiveTime$;F(i,yi,ee=>t(122,g=ee));let zi=Ke.state.showInteractiveGraph,wi=Ke.state.showSeekToInteractive,ri=Ke.state.showPlayPrevChapter,Ft=Ke.state.showInteractiveTimeIndicator,Wt=Ke.state.graphIsOpened$;F(i,Wt,ee=>t(58,Le=ee));let ki=Qt.seekToInteractiveDisabledTooltip$;F(i,ki,ee=>t(129,$=ee));let Xt,Yi,Ci,ln,rn,Zi,qi,Vi,Gt,si,Si,Li,Xi,Pi,Ri,Bi,Ye,Ui,Ht,ze={},Ji=M3(Br,260,{leading:!1}),Di=()=>Ke.actions.internal.toggleChromecast();function Ki(){to({isAudioDisabled:en,audioDisabledHintCallback:vt,isAudioAvailable:b,audioIsNotExistHintCallback:me})&&Mt()}async function xi(){Nt?.isActive()?await Nt?.remove():await Nt?.request()}function ji(){!en&&b&&hi.set(!1),Ki()}let fn=Se?ti:ct,Jt="",xt=(ee,an)=>{if(!ee){t(45,Jt=j("tooltip_live"));return}an===bm.PAUSED&&t(45,Jt=j("tooltip_play"))},Wi,ai,re=()=>{s&&ht(Xt)},ft=()=>{l&&Et(Yi)};function ui(ee){i.$$.not_equal(ze.volume,ee)&&(ze.volume=ee,t(20,ze))}function ci(ee){i.$$.not_equal(ze.chromecast,ee)&&(ze.chromecast=ee,t(20,ze))}function $t(ee){i.$$.not_equal(ze.pip,ee)&&(ze.pip=ee,t(20,ze))}function Gi(ee){ai=ee,t(22,ai)}function kn(ee){i.$$.not_equal(ze.vkLogo,ee)&&(ze.vkLogo=ee,t(20,ze))}function hn(ee){i.$$.not_equal(ze.prevButton,ee)&&(ze.prevButton=ee,t(20,ze))}function dn(ee){i.$$.not_equal(ze.playButton,ee)&&(ze.playButton=ee,t(20,ze))}function Lt(ee){i.$$.not_equal(ze.replayButton,ee)&&(ze.replayButton=ee,t(20,ze))}function gn(ee){i.$$.not_equal(ze.nextButton,ee)&&(ze.nextButton=ee,t(20,ze))}function Vn(ee){i.$$.not_equal(ze.playPrevChapterButton,ee)&&(ze.playPrevChapterButton=ee,t(20,ze))}function Cn(ee){i.$$.not_equal(ze.interactiveGraphButton,ee)&&(ze.interactiveGraphButton=ee,t(20,ze))}function Sn(ee){i.$$.not_equal(ze.seekToInteractiveButton,ee)&&(ze.seekToInteractiveButton=ee,t(20,ze))}function bn(ee){i.$$.not_equal(ze.volume,ee)&&(ze.volume=ee,t(20,ze))}function $i(ee){i.$$.not_equal(ze.playButton,ee)&&(ze.playButton=ee,t(20,ze))}function ie(ee){i.$$.not_equal(ze.replayButton,ee)&&(ze.replayButton=ee,t(20,ze))}function yt(ee){i.$$.not_equal(ze.liveButton,ee)&&(ze.liveButton=ee,t(20,ze))}function Pn(ee){i.$$.not_equal(ze.time,ee)&&(ze.time=ee,t(20,ze))}function Ln(ee){i.$$.not_equal(ze.episodes,ee)&&(ze.episodes=ee,t(20,ze))}function Rn(ee){ai=ee,t(22,ai)}function Gn(ee){i.$$.not_equal(ze.settings,ee)&&(ze.settings=ee,t(20,ze))}function Qn(ee){i.$$.not_equal(ze.fullscreen,ee)&&(ze.fullscreen=ee,t(20,ze))}function Yn(ee){he[ee?"unshift":"push"](()=>{Ui=ee,t(44,Ui)})}function Zn(ee){he[ee?"unshift":"push"](()=>{Oe=ee,t(0,Oe)})}function Xn(ee){Wi=ee,t(21,Wi)}function ro(ee){i.$$.not_equal(ze.interactiveTimeIndicator,ee)&&(ze.interactiveTimeIndicator=ee,t(20,ze))}i.$$set=ee=>{"bottomHidden"in ee&&t(1,we=ee.bottomHidden),"bottomNoSmooth"in ee&&t(2,X=ee.bottomNoSmooth),"showControls"in ee&&t(3,ve=ee.showControls),"controlsElementRef"in ee&&t(0,Oe=ee.controlsElementRef),"isAds"in ee&&t(4,Xe=ee.isAds),"canRewindLive"in ee&&t(5,xe=ee.canRewindLive),"logoClickable"in ee&&t(6,ke=ee.logoClickable),"logoHidden"in ee&&t(110,Re=ee.logoHidden),"logoTargetUrl"in ee&&t(7,Ue=ee.logoTargetUrl),"showNextPrevButtons"in ee&&t(8,We=ee.showNextPrevButtons),"nextButtonActive"in ee&&t(9,se=ee.nextButtonActive),"prevButtonActive"in ee&&t(10,oe=ee.prevButtonActive),"isOneVideoPlaylist"in ee&&t(111,Se=ee.isOneVideoPlaylist),"supportLink"in ee&&t(11,fe=ee.supportLink),"customFullscreenSupported"in ee&&t(112,Ae=ee.customFullscreenSupported),"playNextVideo"in ee&&t(12,Ze=ee.playNextVideo),"playPrevVideo"in ee&&t(13,ut=ee.playPrevVideo),"repeatPlaylist"in ee&&t(113,ct=ee.repeatPlaylist),"toggleFullscreen"in ee&&t(14,at=ee.toggleFullscreen),"returnFocus"in ee&&t(15,ye=ee.returnFocus),"seekToInteractive"in ee&&t(16,mt=ee.seekToInteractive),"toggleGraph"in ee&&t(17,lt=ee.toggleGraph),"playPrevChapter"in ee&&t(18,dt=ee.playPrevChapter),"onDisabledPlayPrevChapterClick"in ee&&t(114,ht=ee.onDisabledPlayPrevChapterClick),"onDisabledSeekToInteractiveClick"in ee&&t(115,Et=ee.onDisabledSeekToInteractiveClick)},i.$$.update=()=>{if(i.$$.dirty[4]&32)e:Yi=j($);if(i.$$.dirty[4]&16)e:t(118,n=A.has("EPISODE_BUTTON"));if(i.$$.dirty[4]&16)e:t(50,o=A.has("GRAPH_BUTTON"));if(i.$$.dirty[4]&16)e:t(46,l=A.has("SEEK_TO_INTERACTIVE_BUTTON"));if(i.$$.dirty[4]&16)e:t(49,r=A.has("PLAY_BUTTON"));if(i.$$.dirty[4]&16)e:t(48,a=A.has("REPLAY_BUTTON"));if(i.$$.dirty[4]&16)e:t(47,s=A.has("PLAY_PREV_CHAPTER_BUTTON"));if(i.$$.dirty[3]&268435456)e:t(31,Ci=h===bm.PLAYING);if(i.$$.dirty[0]&1073741824)e:t(32,ln=V==="paused");if(i.$$.dirty[0]&16|i.$$.dirty[4]&8)e:t(33,rn=ae&&!Xe&&!jt);if(i.$$.dirty[0]&16|i.$$.dirty[4]&8)e:t(34,Zi=!ae||Xe);if(i.$$.dirty[3]&1073741824)e:t(116,qi=S.width>300);if(i.$$.dirty[3]&1073741824)e:t(35,Vi=S.width>400);if(i.$$.dirty[0]&536870912)e:t(117,Gt=le);if(i.$$.dirty[0]&469762048|i.$$.dirty[4]&2)e:t(36,si=Q!==gm.NOT_AVAILABLE&&!(I&&v===1)&&!W&&!jt);if(i.$$.dirty[0]&402653184|i.$$.dirty[3]&16777216|i.$$.dirty[4]&6)e:{let ee=G==="waitingLive";t(37,Si=!!Nt&&Q!==gm.CONNECTED&&!W&&(v===1&&ee||!ee)&&!Gt&&!jt)}if(i.$$.dirty[3]&16777216)e:t(38,Li=!Gt);if(i.$$.dirty[3]&1073872896)e:t(39,Xi=!Re&&S.width>350);if(i.$$.dirty[0]&67108864|i.$$.dirty[3]&17301504|i.$$.dirty[4]&2)e:t(40,Pi=Bt.features.fullscreen&&!(I&&v===1)&&(jt?Ae:!0)&&!Gt);if(i.$$.dirty[0]&33554448|i.$$.dirty[3]&1090519040)e:t(41,Ri=(!k||Xe)&&S.width>260&&!Gt&&!(Bt.features.interactiveHideTime&&jt));if(i.$$.dirty[0]&8388616)e:t(42,Bi=p||ve);if(i.$$.dirty[0]&33554448|i.$$.dirty[3]&58720256)e:t(43,Ye=!Xe&&!k&&!!Pt?.length&&qi&&!n&&!Gt);if(i.$$.dirty[0]&16777216|i.$$.dirty[4]&1)e:t(19,Ht=!T||y);if(i.$$.dirty[0]&1048584|i.$$.dirty[3]&1610612736)e:Ji(nn(),ni,ze,ve);if(i.$$.dirty[0]&524288|i.$$.dirty[3]&268435456)e:xt(Ht,h);if(i.$$.dirty[0]&12582912)e:jo(ai,p,gi);if(i.$$.dirty[0]&10485760|i.$$.dirty[3]&134217728)e:ko(Wi,p,f);if(i.$$.dirty[0]&1048576|i.$$.dirty[3]&67108864)e:Dr(oi,u,ze.playButton)};e:Xt=j(Ke.state.playPrevChapterDisabledTooltip);return[Oe,we,X,ve,Xe,xe,ke,Ue,We,se,oe,fe,Ze,ut,at,ye,mt,lt,dt,Ht,ze,Wi,ai,p,T,k,I,W,Q,le,V,Ci,ln,rn,Zi,Vi,si,Si,Li,Xi,Pi,Ri,Bi,Ye,Ui,Jt,l,s,a,r,o,b,J,x,N,te,E,Y,Le,je,qe,Je,Ne,ti,it,_t,Dt,wt,At,Ut,en,di,mi,Ei,Yt,pi,tn,_i,Fi,ii,Ai,hi,Hi,gi,Pt,bi,vi,Ot,oi,li,Vt,It,Kt,Mi,Zt,on,jt,yi,zi,wi,ri,Ft,Wt,ki,Di,xi,ji,fn,re,ft,Re,Se,Ae,ct,ht,Et,qi,Gt,n,u,f,h,g,S,y,v,G,ae,A,$,ui,ci,$t,Gi,kn,hn,dn,Lt,gn,Vn,Cn,Sn,bn,$i,ie,yt,Pn,Ln,Rn,Gn,Qn,Yn,Zn,Xn,ro]}var ku=class extends q{constructor(e){super(),U(this,e,K3,U3,z,{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},V3,[-1,-1,-1,-1,-1,-1])}},qm=ku;function j3(i){let e,t,n;function o(r){i[28](r)}let l={bottomHidden:i[1],bottomNoSmooth:i[2],showControls:i[3],isAds:i[4],canRewindLive:i[5],logoClickable:i[6],logoHidden:i[7],logoTargetUrl:i[8],showNextPrevButtons:i[9],nextButtonActive:i[10],prevButtonActive:i[11],isOneVideoPlaylist:i[12],supportLink:i[13],customFullscreenSupported:i[14],playNextVideo:i[15],playPrevVideo:i[16],repeatPlaylist:i[17],toggleFullscreen:i[18],returnFocus:i[19],seekToInteractive:i[20],toggleGraph:i[21],playPrevChapter:i[22]};return i[0]!==void 0&&(l.controlsElementRef=i[0]),e=new fm({props:l}),he.push(()=>He(e,"controlsElementRef",o)),{c(){B(e.$$.fragment)},m(r,a){L(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]),!t&&a&1&&(t=!0,s.controlsElementRef=r[0],Fe(()=>t=!1)),e.$set(s)},i(r){n||(d(e.$$.fragment,r),n=!0)},o(r){_(e.$$.fragment,r),n=!1},d(r){R(e,r)}}}function W3(i){let e,t,n;function o(r){i[27](r)}let l={bottomHidden:i[1],bottomNoSmooth:i[2],showControls:i[3],isAds:i[4],canRewindLive:i[5],logoClickable:i[6],logoHidden:i[7],logoTargetUrl:i[8],showNextPrevButtons:i[9],nextButtonActive:i[10],prevButtonActive:i[11],isOneVideoPlaylist:i[12],supportLink:i[13],customFullscreenSupported:i[14],playNextVideo:i[15],playPrevVideo:i[16],repeatPlaylist:i[17],toggleFullscreen:i[18],returnFocus:i[19],seekToInteractive:i[20],toggleGraph:i[21],playPrevChapter:i[22],onDisabledPlayPrevChapterClick:i[23],onDisabledSeekToInteractiveClick:i[24]};return i[0]!==void 0&&(l.controlsElementRef=i[0]),e=new qm({props:l}),he.push(()=>He(e,"controlsElementRef",o)),{c(){B(e.$$.fragment)},m(r,a){L(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]),!t&&a&1&&(t=!0,s.controlsElementRef=r[0],Fe(()=>t=!1)),e.$set(s)},i(r){n||(d(e.$$.fragment,r),n=!0)},o(r){_(e.$$.fragment,r),n=!1},d(r){R(e,r)}}}function G3(i){let e,t,n,o,l=[W3,j3],r=[];function a(s,u){return s[25]?0:1}return e=a(i,-1),t=r[e]=l[e](i),{c(){t.c(),n=ot()},m(s,u){r[e].m(s,u),C(s,n,u),o=!0},p(s,[u]){let f=e;e=a(s,u),e===f?r[e].p(s,u):(ue(),_(r[f],1,1,()=>{r[f]=null}),ce(),t=r[e],t?t.p(s,u):(t=r[e]=l[e](s),t.c()),d(t,1),t.m(n.parentNode,n))},i(s){o||(d(t),o=!0)},o(s){_(t),o=!1},d(s){s&&w(n),r[e].d(s)}}}function Q3(i,e,t){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:b}=e,{nextButtonActive:g}=e,{prevButtonActive:S}=e,{isOneVideoPlaylist:y=!1}=e,{supportLink:T}=e,{customFullscreenSupported:k=!0}=e,{playNextVideo:v}=e,{playPrevVideo:I}=e,{repeatPlaylist:W}=e,{toggleFullscreen:Q}=e,{returnFocus:G=Cu}=e,{seekToInteractive:le}=e,{toggleGraph:ae}=e,{playPrevChapter:V}=e,{onDisabledPlayPrevChapterClick:A=Cu}=e,{onDisabledSeekToInteractiveClick:$=Cu}=e,x=et().ui.isMobile;F(i,x,E=>t(25,n=E));function N(E){a=E,t(0,a)}function te(E){a=E,t(0,a)}return i.$$set=E=>{"bottomHidden"in E&&t(1,o=E.bottomHidden),"bottomNoSmooth"in E&&t(2,l=E.bottomNoSmooth),"showControls"in E&&t(3,r=E.showControls),"controlsElementRef"in E&&t(0,a=E.controlsElementRef),"isAds"in E&&t(4,s=E.isAds),"canRewindLive"in E&&t(5,u=E.canRewindLive),"logoClickable"in E&&t(6,f=E.logoClickable),"logoHidden"in E&&t(7,p=E.logoHidden),"logoTargetUrl"in E&&t(8,h=E.logoTargetUrl),"showNextPrevButtons"in E&&t(9,b=E.showNextPrevButtons),"nextButtonActive"in E&&t(10,g=E.nextButtonActive),"prevButtonActive"in E&&t(11,S=E.prevButtonActive),"isOneVideoPlaylist"in E&&t(12,y=E.isOneVideoPlaylist),"supportLink"in E&&t(13,T=E.supportLink),"customFullscreenSupported"in E&&t(14,k=E.customFullscreenSupported),"playNextVideo"in E&&t(15,v=E.playNextVideo),"playPrevVideo"in E&&t(16,I=E.playPrevVideo),"repeatPlaylist"in E&&t(17,W=E.repeatPlaylist),"toggleFullscreen"in E&&t(18,Q=E.toggleFullscreen),"returnFocus"in E&&t(19,G=E.returnFocus),"seekToInteractive"in E&&t(20,le=E.seekToInteractive),"toggleGraph"in E&&t(21,ae=E.toggleGraph),"playPrevChapter"in E&&t(22,V=E.playPrevChapter),"onDisabledPlayPrevChapterClick"in E&&t(23,A=E.onDisabledPlayPrevChapterClick),"onDisabledSeekToInteractiveClick"in E&&t(24,$=E.onDisabledSeekToInteractiveClick)},[a,o,l,r,s,u,f,p,h,b,g,S,y,T,k,v,I,W,Q,G,le,ae,V,A,$,n,x,N,te]}var Su=class extends q{constructor(e){super(),U(this,e,Q3,G3,z,{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})}},Or=Su;function Y3(i){let e,t,n,o,l,r,a,s,u,f,p,h,b,g,S=i[2].default,y=Pe(S,i,i[1],null),T=[{xmlns:"http://www.w3.org/2000/svg"},{width:"48"},{height:"51"},{fill:"none"},{"aria-hidden":"true"},{"data-testid":"seek-icon"},{role:"img"},i[0]],k={};for(let v=0;v<T.length;v+=1)k=ne(k,T[v]);return{c(){e=D("svg"),y&&y.c(),t=D("g"),n=D("path"),o=D("path"),l=D("defs"),r=D("filter"),a=D("feFlood"),s=D("feColorMatrix"),u=D("feOffset"),f=D("feGaussianBlur"),p=D("feColorMatrix"),h=D("feBlend"),b=D("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(t,"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(b,"in","SourceGraphic"),c(b,"in2","effect1_dropShadow_2260_100684"),c(b,"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"),be(e,k)},m(v,I){C(v,e,I),y&&y.m(e,null),m(e,t),m(t,n),m(t,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,b),g=!0},p(v,[I]){y&&y.p&&(!g||I&2)&&Te(y,S,v,v[1],g?Ie(S,v[1],I,null):Ee(v[1]),null),be(e,k=Ve(T,[{xmlns:"http://www.w3.org/2000/svg"},{width:"48"},{height:"51"},{fill:"none"},{"aria-hidden":"true"},{"data-testid":"seek-icon"},{role:"img"},I&1&&v[0]]))},i(v){g||(d(y,v),g=!0)},o(v){_(y,v),g=!1},d(v){v&&w(e),y&&y.d(v)}}}function Z3(i,e,t){let{$$slots:n={},$$scope:o}=e;return i.$$set=l=>{t(0,e=ne(ne({},e),ge(l))),"$$scope"in l&&t(1,o=l.$$scope)},e=ge(e),[e,o,n]}var Pu=class extends q{constructor(e){super(),U(this,e,Z3,Y3,z,{})}},Um=Pu;function X3(i){let e,t;return e=new Um({props:{style:i[0]}}),{c(){B(e.$$.fragment)},m(n,o){L(e,n,o),t=!0},p(n,[o]){let l={};o&1&&(l.style=n[0]),e.$set(l)},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){_(e.$$.fragment,n),t=!1},d(n){R(e,n)}}}function J3(i,e,t){let n,{reversed:o=!1}=e;return i.$$set=l=>{"reversed"in l&&t(1,o=l.reversed)},i.$$.update=()=>{if(i.$$.dirty&2)e:t(0,n=o?"transform: scaleX(-1);":void 0)},[n,o]}var Iu=class extends q{constructor(e){super(),U(this,e,J3,X3,z,{reversed:1})}},Km=Iu;function x3(i){let e,t,n,o,l,r,a,s,u,f,p,h,b,g,S,y,T=i[2].default,k=Pe(T,i,i[1],null),v=[{xmlns:"http://www.w3.org/2000/svg"},{width:"48"},{height:"48"},{fill:"none"},{"aria-hidden":"true"},{"data-testid":"subtitles-on-icon"},{role:"img"},i[0]],I={};for(let W=0;W<v.length;W+=1)I=ne(I,v[W]);return{c(){e=D("svg"),k&&k.c(),t=D("g"),n=D("path"),o=D("path"),l=D("defs"),r=D("clipPath"),a=D("path"),s=D("filter"),u=D("feFlood"),f=D("feColorMatrix"),p=D("feOffset"),h=D("feGaussianBlur"),b=D("feColorMatrix"),g=D("feBlend"),S=D("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(t,"clip-path","url(#c)"),c(t,"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(b,"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(S,"in","SourceGraphic"),c(S,"in2","effect1_dropShadow_2260_104204"),c(S,"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"),be(e,I)},m(W,Q){C(W,e,Q),k&&k.m(e,null),m(e,t),m(t,n),m(t,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,b),m(s,g),m(s,S),y=!0},p(W,[Q]){k&&k.p&&(!y||Q&2)&&Te(k,T,W,W[1],y?Ie(T,W[1],Q,null):Ee(W[1]),null),be(e,I=Ve(v,[{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&&W[0]]))},i(W){y||(d(k,W),y=!0)},o(W){_(k,W),y=!1},d(W){W&&w(e),k&&k.d(W)}}}function $3(i,e,t){let{$$slots:n={},$$scope:o}=e;return i.$$set=l=>{t(0,e=ne(ne({},e),ge(l))),"$$scope"in l&&t(1,o=l.$$scope)},e=ge(e),[e,o,n]}var Tu=class extends q{constructor(e){super(),U(this,e,$3,x3,z,{})}},jm=Tu;function e5(i){let e,t,n,o,l,r,a,s,u,f,p,h,b,g,S,y,T,k=i[2].default,v=Pe(k,i,i[1],null),I=[{xmlns:"http://www.w3.org/2000/svg"},{width:"48"},{height:"48"},{fill:"none"},{"aria-hidden":"true"},{"data-testid":"subtitles-off-icon"},{role:"img"},i[0]],W={};for(let Q=0;Q<I.length;Q+=1)W=ne(W,I[Q]);return{c(){e=D("svg"),v&&v.c(),t=D("g"),n=D("path"),o=D("path"),l=D("path"),r=D("defs"),a=D("clipPath"),s=D("path"),u=D("filter"),f=D("feFlood"),p=D("feColorMatrix"),h=D("feOffset"),b=D("feGaussianBlur"),g=D("feColorMatrix"),S=D("feBlend"),y=D("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(t,"clip-path","url(#c)"),c(t,"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(b,"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(S,"in2","BackgroundImageFix"),c(S,"result","effect1_dropShadow_2260_104293"),c(y,"in","SourceGraphic"),c(y,"in2","effect1_dropShadow_2260_104293"),c(y,"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"),be(e,W)},m(Q,G){C(Q,e,G),v&&v.m(e,null),m(e,t),m(t,n),m(t,o),m(t,l),m(e,r),m(r,a),m(a,s),m(r,u),m(u,f),m(u,p),m(u,h),m(u,b),m(u,g),m(u,S),m(u,y),T=!0},p(Q,[G]){v&&v.p&&(!T||G&2)&&Te(v,k,Q,Q[1],T?Ie(k,Q[1],G,null):Ee(Q[1]),null),be(e,W=Ve(I,[{xmlns:"http://www.w3.org/2000/svg"},{width:"48"},{height:"48"},{fill:"none"},{"aria-hidden":"true"},{"data-testid":"subtitles-off-icon"},{role:"img"},G&1&&Q[0]]))},i(Q){T||(d(v,Q),T=!0)},o(Q){_(v,Q),T=!1},d(Q){Q&&w(e),v&&v.d(Q)}}}function t5(i,e,t){let{$$slots:n={},$$scope:o}=e;return i.$$set=l=>{t(0,e=ne(ne({},e),ge(l))),"$$scope"in l&&t(1,o=l.$$scope)},e=ge(e),[e,o,n]}var Eu=class extends q{constructor(e){super(),U(this,e,t5,e5,z,{})}},Wm=Eu;function i5(i){let e,t;return e=new jm({}),{c(){B(e.$$.fragment)},m(n,o){L(e,n,o),t=!0},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){_(e.$$.fragment,n),t=!1},d(n){R(e,n)}}}function n5(i){let e,t;return e=new Wm({}),{c(){B(e.$$.fragment)},m(n,o){L(e,n,o),t=!0},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){_(e.$$.fragment,n),t=!1},d(n){R(e,n)}}}function o5(i){let e,t,n,o,l=[n5,i5],r=[];function a(s,u){return s[0]?0:1}return e=a(i,-1),t=r[e]=l[e](i),{c(){t.c(),n=ot()},m(s,u){r[e].m(s,u),C(s,n,u),o=!0},p(s,[u]){let f=e;e=a(s,u),e!==f&&(ue(),_(r[f],1,1,()=>{r[f]=null}),ce(),t=r[e],t||(t=r[e]=l[e](s),t.c()),d(t,1),t.m(n.parentNode,n))},i(s){o||(d(t),o=!0)},o(s){_(t),o=!1},d(s){s&&w(n),r[e].d(s)}}}function l5(i,e,t){let{isOff:n=!1}=e;return i.$$set=o=>{"isOff"in o&&t(0,n=o.isOff)},[n]}var Au=class extends q{constructor(e){super(),U(this,e,l5,o5,z,{isOff:0})}},Mu=Au;function r5(i){let e,t,n,o,l,r,a,s,u,f,p,h,b,g,S=i[2].default,y=Pe(S,i,i[1],null),T=[{xmlns:"http://www.w3.org/2000/svg"},{width:"48"},{height:"48"},{fill:"none"},{"aria-hidden":"true"},{"data-testid":"rate-change-icon"},{role:"img"},i[0]],k={};for(let v=0;v<T.length;v+=1)k=ne(k,T[v]);return{c(){e=D("svg"),y&&y.c(),t=D("g"),n=D("path"),o=D("path"),l=D("defs"),r=D("filter"),a=D("feFlood"),s=D("feColorMatrix"),u=D("feOffset"),f=D("feGaussianBlur"),p=D("feColorMatrix"),h=D("feBlend"),b=D("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(t,"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(b,"in","SourceGraphic"),c(b,"in2","effect1_dropShadow_2260_106627"),c(b,"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"),be(e,k)},m(v,I){C(v,e,I),y&&y.m(e,null),m(e,t),m(t,n),m(t,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,b),g=!0},p(v,[I]){y&&y.p&&(!g||I&2)&&Te(y,S,v,v[1],g?Ie(S,v[1],I,null):Ee(v[1]),null),be(e,k=Ve(T,[{xmlns:"http://www.w3.org/2000/svg"},{width:"48"},{height:"48"},{fill:"none"},{"aria-hidden":"true"},{"data-testid":"rate-change-icon"},{role:"img"},I&1&&v[0]]))},i(v){g||(d(y,v),g=!0)},o(v){_(y,v),g=!1},d(v){v&&w(e),y&&y.d(v)}}}function s5(i,e,t){let{$$slots:n={},$$scope:o}=e;return i.$$set=l=>{t(0,e=ne(ne({},e),ge(l))),"$$scope"in l&&t(1,o=l.$$scope)},e=ge(e),[e,o,n]}var Vu=class extends q{constructor(e){super(),U(this,e,s5,r5,z,{})}},Gm=Vu;function a5(i){let e,t;return e=new Gm({props:{style:i[0]}}),{c(){B(e.$$.fragment)},m(n,o){L(e,n,o),t=!0},p(n,[o]){let l={};o&1&&(l.style=n[0]),e.$set(l)},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){_(e.$$.fragment,n),t=!1},d(n){R(e,n)}}}function u5(i,e,t){let n,{reversed:o=!1}=e;return i.$$set=l=>{"reversed"in l&&t(1,o=l.reversed)},i.$$.update=()=>{if(i.$$.dirty&2)e:t(0,n=o?"transform: scaleX(-1);":void 0)},[n,o]}var Lu=class extends q{constructor(e){super(),U(this,e,u5,a5,z,{reversed:1})}},Qm=Lu;function c5(i){let e,t,n,o,l,r,a,s,u,f,p,h,b,g,S=i[2].default,y=Pe(S,i,i[1],null),T=[{xmlns:"http://www.w3.org/2000/svg"},{width:"48"},{height:"48"},{fill:"none"},{"aria-hidden":"true"},{"data-testid":"episodes-seek-icon"},{role:"img"},i[0]],k={};for(let v=0;v<T.length;v+=1)k=ne(k,T[v]);return{c(){e=D("svg"),y&&y.c(),t=D("g"),n=D("path"),o=D("path"),l=D("defs"),r=D("filter"),a=D("feFlood"),s=D("feColorMatrix"),u=D("feOffset"),f=D("feGaussianBlur"),p=D("feColorMatrix"),h=D("feBlend"),b=D("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(t,"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(b,"in","SourceGraphic"),c(b,"in2","effect1_dropShadow_2340_106922"),c(b,"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"),be(e,k)},m(v,I){C(v,e,I),y&&y.m(e,null),m(e,t),m(t,n),m(t,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,b),g=!0},p(v,[I]){y&&y.p&&(!g||I&2)&&Te(y,S,v,v[1],g?Ie(S,v[1],I,null):Ee(v[1]),null),be(e,k=Ve(T,[{xmlns:"http://www.w3.org/2000/svg"},{width:"48"},{height:"48"},{fill:"none"},{"aria-hidden":"true"},{"data-testid":"episodes-seek-icon"},{role:"img"},I&1&&v[0]]))},i(v){g||(d(y,v),g=!0)},o(v){_(y,v),g=!1},d(v){v&&w(e),y&&y.d(v)}}}function f5(i,e,t){let{$$slots:n={},$$scope:o}=e;return i.$$set=l=>{t(0,e=ne(ne({},e),ge(l))),"$$scope"in l&&t(1,o=l.$$scope)},e=ge(e),[e,o,n]}var Ru=class extends q{constructor(e){super(),U(this,e,f5,c5,z,{})}},Ym=Ru;function d5(i){let e,t;return e=new Ym({props:{style:i[0]}}),{c(){B(e.$$.fragment)},m(n,o){L(e,n,o),t=!0},p(n,[o]){let l={};o&1&&(l.style=n[0]),e.$set(l)},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){_(e.$$.fragment,n),t=!1},d(n){R(e,n)}}}function m5(i,e,t){let n,{reversed:o=!1}=e;return i.$$set=l=>{"reversed"in l&&t(1,o=l.reversed)},i.$$.update=()=>{if(i.$$.dirty&2)e:t(0,n=o?"transform: scaleX(-1);":void 0)},[n,o]}var Bu=class extends q{constructor(e){super(),U(this,e,m5,d5,z,{reversed:1})}},Zm=Bu;function p5(i){Ce(i,"svelte-4ftgwp",`.hot-key-helpers-container.svelte-4ftgwp.svelte-4ftgwp{position:absolute;top:calc(50% - 40px);left:calc(50% - 100px);width:200px;height:120px;display:flex;align-items:center;flex-direction:column;animation:svelte-4ftgwp-fadeIn ease var(--controls-transition-duration);padding-top:14px;box-sizing:border-box}.hot-key-helpers-container.svelte-4ftgwp>div.svelte-4ftgwp{width:48px;height:48px;display:flex;justify-content:center;align-items:center}.hot-key-helpers-container.svelte-4ftgwp svg[data-testid="volume-off-icon"],.hot-key-helpers-container.svelte-4ftgwp svg[data-testid="volume-max-icon"]{transform:scale(2)}.hot-key-helpers-container.svelte-4ftgwp svg[data-testid="replay-icon"],.hot-key-helpers-container.svelte-4ftgwp svg[data-testid="play-icon"],.hot-key-helpers-container.svelte-4ftgwp svg[data-testid="pause-icon"]{transform:scale(2.5)}.hot-key-helpers-container--left.svelte-4ftgwp.svelte-4ftgwp{left:calc(25% - 100px)}.hot-key-helpers-container--right.svelte-4ftgwp.svelte-4ftgwp{left:calc(75% - 100px)}.hot-key-helpers-text.svelte-4ftgwp.svelte-4ftgwp{text-align:center;font-feature-settings:'clig' off, 'liga' off;text-shadow:0px 0px 5px rgba(0, 0, 0, 0.16);font-size:15px;font-style:normal;font-weight:600;line-height:20px;letter-spacing:-0.105px;width:100%;max-height:40px;margin-top:4px;display:-webkit-box;text-overflow:ellipsis;white-space:pre-wrap;overflow:hidden;-webkit-line-clamp:2;-webkit-box-orient:vertical}.hidden.svelte-4ftgwp.svelte-4ftgwp{visibility:hidden;animation:svelte-4ftgwp-fadeOut ease var(--controls-transition-duration);width:0;height:0}@keyframes svelte-4ftgwp-fadeIn{0%{opacity:0}100%{opacity:1}}@keyframes svelte-4ftgwp-fadeOut{0%{opacity:1}100%{opacity:0}}`)}function Xm(i){let e,t=["BACKWARD_SEEK","FORWARD_SEEK"].includes(i[4]),n,o,l,r,a,s,u=["RATE_DOWN","RATE_UP"].includes(i[4]),f,p=["EPISODE_PREV","EPISODE_NEXT"].includes(i[4]),h,b,g,S,y,T=t&&Jm(i),k=i[4]==="PAUSE"&&xm(i),v=i[4]==="PLAY"&&$m(i),I=i[4]==="REPLAY"&&e0(i),W=i[4]==="SUBTITLES_OFF"&&t0(i),Q=i[4]==="SUBTITLES_ON"&&i0(i),G=u&&n0(i),le=p&&o0(i),ae=i[4]==="MUTE"&&l0(i),V=i[4]==="VOLUME"&&r0(i),A=i[5]&&s0(i);return{c(){e=P("div"),T&&T.c(),n=O(),k&&k.c(),o=O(),v&&v.c(),l=O(),I&&I.c(),r=O(),W&&W.c(),a=O(),Q&&Q.c(),s=O(),G&&G.c(),f=O(),le&&le.c(),h=O(),ae&&ae.c(),b=O(),V&&V.c(),g=O(),A&&A.c(),S=ot(),c(e,"class","svelte-4ftgwp")},m($,J){C($,e,J),T&&T.m(e,null),m(e,n),k&&k.m(e,null),m(e,o),v&&v.m(e,null),m(e,l),I&&I.m(e,null),m(e,r),W&&W.m(e,null),m(e,a),Q&&Q.m(e,null),m(e,s),G&&G.m(e,null),m(e,f),le&&le.m(e,null),m(e,h),ae&&ae.m(e,null),m(e,b),V&&V.m(e,null),C($,g,J),A&&A.m($,J),C($,S,J),y=!0},p($,J){J&16&&(t=["BACKWARD_SEEK","FORWARD_SEEK"].includes($[4])),t?T?(T.p($,J),J&16&&d(T,1)):(T=Jm($),T.c(),d(T,1),T.m(e,n)):T&&(ue(),_(T,1,1,()=>{T=null}),ce()),$[4]==="PAUSE"?k?J&16&&d(k,1):(k=xm($),k.c(),d(k,1),k.m(e,o)):k&&(ue(),_(k,1,1,()=>{k=null}),ce()),$[4]==="PLAY"?v?J&16&&d(v,1):(v=$m($),v.c(),d(v,1),v.m(e,l)):v&&(ue(),_(v,1,1,()=>{v=null}),ce()),$[4]==="REPLAY"?I?J&16&&d(I,1):(I=e0($),I.c(),d(I,1),I.m(e,r)):I&&(ue(),_(I,1,1,()=>{I=null}),ce()),$[4]==="SUBTITLES_OFF"?W?J&16&&d(W,1):(W=t0($),W.c(),d(W,1),W.m(e,a)):W&&(ue(),_(W,1,1,()=>{W=null}),ce()),$[4]==="SUBTITLES_ON"?Q?J&16&&d(Q,1):(Q=i0($),Q.c(),d(Q,1),Q.m(e,s)):Q&&(ue(),_(Q,1,1,()=>{Q=null}),ce()),J&16&&(u=["RATE_DOWN","RATE_UP"].includes($[4])),u?G?(G.p($,J),J&16&&d(G,1)):(G=n0($),G.c(),d(G,1),G.m(e,f)):G&&(ue(),_(G,1,1,()=>{G=null}),ce()),J&16&&(p=["EPISODE_PREV","EPISODE_NEXT"].includes($[4])),p?le?(le.p($,J),J&16&&d(le,1)):(le=o0($),le.c(),d(le,1),le.m(e,h)):le&&(ue(),_(le,1,1,()=>{le=null}),ce()),$[4]==="MUTE"?ae?J&16&&d(ae,1):(ae=l0($),ae.c(),d(ae,1),ae.m(e,b)):ae&&(ue(),_(ae,1,1,()=>{ae=null}),ce()),$[4]==="VOLUME"?V?J&16&&d(V,1):(V=r0($),V.c(),d(V,1),V.m(e,null)):V&&(ue(),_(V,1,1,()=>{V=null}),ce()),$[5]?A?A.p($,J):(A=s0($),A.c(),A.m(S.parentNode,S)):A&&(A.d(1),A=null)},i($){y||(d(T),d(k),d(v),d(I),d(W),d(Q),d(G),d(le),d(ae),d(V),y=!0)},o($){_(T),_(k),_(v),_(I),_(W),_(Q),_(G),_(le),_(ae),_(V),y=!1},d($){$&&(w(e),w(g),w(S)),T&&T.d(),k&&k.d(),v&&v.d(),I&&I.d(),W&&W.d(),Q&&Q.d(),G&&G.d(),le&&le.d(),ae&&ae.d(),V&&V.d(),A&&A.d($)}}}function Jm(i){let e,t;return e=new Km({props:{reversed:i[4]==="FORWARD_SEEK"}}),{c(){B(e.$$.fragment)},m(n,o){L(e,n,o),t=!0},p(n,o){let l={};o&16&&(l.reversed=n[4]==="FORWARD_SEEK"),e.$set(l)},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){_(e.$$.fragment,n),t=!1},d(n){R(e,n)}}}function xm(i){let e,t;return e=new _r({}),{c(){B(e.$$.fragment)},m(n,o){L(e,n,o),t=!0},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){_(e.$$.fragment,n),t=!1},d(n){R(e,n)}}}function $m(i){let e,t;return e=new Yo({}),{c(){B(e.$$.fragment)},m(n,o){L(e,n,o),t=!0},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){_(e.$$.fragment,n),t=!1},d(n){R(e,n)}}}function e0(i){let e,t;return e=new Pr({}),{c(){B(e.$$.fragment)},m(n,o){L(e,n,o),t=!0},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){_(e.$$.fragment,n),t=!1},d(n){R(e,n)}}}function t0(i){let e,t;return e=new Mu({props:{isOff:!0}}),{c(){B(e.$$.fragment)},m(n,o){L(e,n,o),t=!0},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){_(e.$$.fragment,n),t=!1},d(n){R(e,n)}}}function i0(i){let e,t;return e=new Mu({}),{c(){B(e.$$.fragment)},m(n,o){L(e,n,o),t=!0},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){_(e.$$.fragment,n),t=!1},d(n){R(e,n)}}}function n0(i){let e,t;return e=new Qm({props:{reversed:i[4]==="RATE_UP"}}),{c(){B(e.$$.fragment)},m(n,o){L(e,n,o),t=!0},p(n,o){let l={};o&16&&(l.reversed=n[4]==="RATE_UP"),e.$set(l)},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){_(e.$$.fragment,n),t=!1},d(n){R(e,n)}}}function o0(i){let e,t;return e=new Zm({props:{reversed:i[4]==="EPISODE_NEXT"}}),{c(){B(e.$$.fragment)},m(n,o){L(e,n,o),t=!0},p(n,o){let l={};o&16&&(l.reversed=n[4]==="EPISODE_NEXT"),e.$set(l)},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){_(e.$$.fragment,n),t=!1},d(n){R(e,n)}}}function l0(i){let e,t;return e=new So({props:{volume:0}}),{c(){B(e.$$.fragment)},m(n,o){L(e,n,o),t=!0},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){_(e.$$.fragment,n),t=!1},d(n){R(e,n)}}}function r0(i){let e,t;return e=new So({props:{volume:1}}),{c(){B(e.$$.fragment)},m(n,o){L(e,n,o),t=!0},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){_(e.$$.fragment,n),t=!1},d(n){R(e,n)}}}function s0(i){let e,t;return{c(){e=P("span"),t=Be(i[5]),c(e,"class","hot-key-helpers-text svelte-4ftgwp")},m(n,o){C(n,e,o),m(e,t)},p(n,o){o&32&&Qe(t,n[5])},d(n){n&&w(e)}}}function _5(i){let e,t,n=!i[1]&&i[4]&&Xm(i);return{c(){e=P("div"),n&&n.c(),c(e,"class","hot-key-helpers-container svelte-4ftgwp"),H(e,"hidden",i[1]),H(e,"hot-key-helpers-container--left",i[2]),H(e,"hot-key-helpers-container--right",i[3])},m(o,l){C(o,e,l),n&&n.m(e,null),t=!0},p(o,[l]){!o[1]&&o[4]?n?(n.p(o,l),l&18&&d(n,1)):(n=Xm(o),n.c(),d(n,1),n.m(e,null)):n&&(ue(),_(n,1,1,()=>{n=null}),ce()),(!t||l&2)&&H(e,"hidden",o[1]),(!t||l&4)&&H(e,"hot-key-helpers-container--left",o[2]),(!t||l&8)&&H(e,"hot-key-helpers-container--right",o[3])},i(o){t||(d(n),t=!0)},o(o){_(n),t=!1},d(o){o&&w(e),n&&n.d()}}}function h5(i,e,t){let n,o=_e,l=()=>(o(),o=Rt(r,h=>t(6,n=h)),r);i.$$.on_destroy.push(()=>o());let{data:r}=e;l();let a,s,u,f,p;return i.$$set=h=>{"data"in h&&l(t(0,r=h.data))},i.$$.update=()=>{if(i.$$.dirty&64)e:t(1,a=!n),t(2,s=n?.type==="BACKWARD_SEEK"),t(3,u=n?.type==="FORWARD_SEEK"),t(4,f=n?.type),n?.t?t(5,p=j(n.t.key,{value:n.t.value||""})):t(5,p=n?.text)},[r,a,s,u,f,p,n]}var Du=class extends q{constructor(e){super(),U(this,e,h5,_5,z,{data:0},p5)}},a0=Du;function g5(i){Ce(i,"svelte-1yzc86r",".immersive-controls.svelte-1yzc86r{position:absolute;display:flex;flex-direction:row;top:10px;left:10px;width:56px;height:56px;background-color:rgba(0, 0, 0, .56);border-radius:8px;transition-property:top, left;transition-duration:var(--controls-transition-duration);transition-timing-function:var(--controls-transition-fn)}.immersive-controls.m-shifted.svelte-1yzc86r{top:50px;left:20px}.button-block.svelte-1yzc86r{width:40px;height:40px;margin:auto auto;transform:rotate(45deg)}.button-row.svelte-1yzc86r{display:flex;flex-direction:row;position:relative}.button.svelte-1yzc86r{width:20px;height:20px;text-align:center;cursor:pointer}.button.svelte-1yzc86r svg{opacity:0.7;transition:opacity linear 0.2s}.button.button-up.svelte-1yzc86r svg{transform:rotate(-45deg) translate(-1px, -1px)}.button.button-right.svelte-1yzc86r svg{transform:rotate(45deg) translate(1px, -1px)}.button.button-down.svelte-1yzc86r svg{transform:rotate(135deg) translate(1px, -3px)}.button.button-left.svelte-1yzc86r svg{transform:rotate(-135deg) translate(-1px, -3px)}.button.svelte-1yzc86r:hover svg{opacity:1}")}function b5(i){let e,t,n,o,l,r,a,s,u,f,p,h,b,g,S,y,T,k,v;return l=new On({props:{direction:"up"}}),s=new On({props:{direction:"up"}}),h=new On({props:{direction:"up"}}),S=new On({props:{direction:"up"}}),{c(){e=P("div"),t=P("div"),n=P("div"),o=P("div"),B(l.$$.fragment),r=O(),a=P("div"),B(s.$$.fragment),u=O(),f=P("div"),p=P("div"),B(h.$$.fragment),b=O(),g=P("div"),B(S.$$.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(t,"class","button-block svelte-1yzc86r"),c(t,"aria-hidden","true"),c(e,"class","immersive-controls svelte-1yzc86r"),c(e,"tabindex","0"),c(e,"role","button"),c(e,"aria-label",y=j("aria_label_spherical_control")),H(e,"m-shifted",i[0])},m(I,W){C(I,e,W),m(e,t),m(t,n),m(n,o),L(l,o,null),m(n,r),m(n,a),L(s,a,null),m(t,u),m(t,f),m(f,p),L(h,p,null),m(f,b),m(f,g),L(S,g,null),T=!0,k||(v=[pe(o,"mousedown",i[1]),pe(o,"mouseup",i[5]),pe(o,"mouseleave",i[5]),pe(a,"mousedown",i[3]),pe(a,"mouseup",i[5]),pe(a,"mouseleave",i[5]),pe(p,"mousedown",i[4]),pe(p,"mouseup",i[5]),pe(p,"mouseleave",i[5]),pe(g,"mousedown",i[2]),pe(g,"mouseup",i[5]),pe(g,"mouseleave",i[5]),pe(e,"keydown",i[6]),pe(e,"keyup",i[7])],k=!0)},p(I,[W]){(!T||W&1)&&H(e,"m-shifted",I[0])},i(I){T||(d(l.$$.fragment,I),d(s.$$.fragment,I),d(h.$$.fragment,I),d(S.$$.fragment,I),T=!0)},o(I){_(l.$$.fragment,I),_(s.$$.fragment,I),_(h.$$.fragment,I),_(S.$$.fragment,I),T=!1},d(I){I&&w(e),R(l),R(s),R(h),R(S),k=!1,tt(v)}}}function v5(i,e,t){let{isShifted:n=!1}=e,o=et(),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=b=>{if(l.has(b.code))switch(b.preventDefault(),b.stopPropagation(),b.code){case"ArrowUp":r();break;case"ArrowDown":a();break;case"ArrowLeft":u();break;case"ArrowRight":s();break}},h=b=>{l.has(b.code)&&(b.preventDefault(),b.stopPropagation(),f())};return i.$$set=b=>{"isShifted"in b&&t(0,n=b.isShifted)},[n,r,a,s,u,f,p,h]}var Nu=class extends q{constructor(e){super(),U(this,e,v5,b5,z,{isShifted:0},g5)}},Fr=Nu;function y5(i){Ce(i,"svelte-ovfyp5",".subtitles-container.svelte-ovfyp5.svelte-ovfyp5{position:absolute;top:0;left:0;width:100%;height:100%;pointer-events:none;transition:transform var(--controls-transition-duration)}.subtitles-container.shifted.svelte-ovfyp5.svelte-ovfyp5{transform:translateY(calc(var(--controls-height) * -1))}.subtitles-caption.svelte-ovfyp5.svelte-ovfyp5{position:absolute;left:4%;right:4%;bottom:4%;display:flex;justify-content:center}.subtitles-caption.mobile.svelte-ovfyp5.svelte-ovfyp5{bottom:8%}.subtitles-container.auto.svelte-ovfyp5 .subtitles-caption.svelte-ovfyp5{left:24%;right:24%}.caption.svelte-ovfyp5.svelte-ovfyp5{display:block;overflow-wrap:normal;padding:4px 8px;border-radius:4px;background:rgba(0, 0, 0, 0.4)}.subtitles-container.auto.svelte-ovfyp5 .caption.svelte-ovfyp5{width:100%}.caption-line.svelte-ovfyp5.svelte-ovfyp5{display:block;text-align:center}.subtitles-container.auto.svelte-ovfyp5 .caption-line.svelte-ovfyp5{text-align:left}.caption-segment.svelte-ovfyp5.svelte-ovfyp5{display:inline-block;line-height:1.2;font-size:13px;color:var(--white);white-space:pre-wrap}")}function u0(i,e,t){let n=i.slice();return n[16]=e[t].value,n}function c0(i,e,t){let n=i.slice();return n[16]=e[t].value,n[17]=e[t].timeAppeared,n}function f0(i){let e,t;function n(r,a){return r[7]&&r[8]?C5:r[5]?k5:w5}let o=n(i,-1),l=o(i);return{c(){e=P("div"),t=P("span"),l.c(),c(t,"class","caption svelte-ovfyp5"),c(e,"class","subtitles-caption svelte-ovfyp5"),H(e,"mobile",i[3])},m(r,a){C(r,e,a),m(e,t),l.m(t,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(t,null))),a&8&&H(e,"mobile",r[3])},d(r){r&&w(e),l.d()}}}function w5(i){let e,t=gt(i[1]),n=[];for(let o=0;o<t.length;o+=1)n[o]=d0(u0(i,t,o));return{c(){for(let o=0;o<n.length;o+=1)n[o].c();e=ot()},m(o,l){for(let r=0;r<n.length;r+=1)n[r]&&n[r].m(o,l);C(o,e,l)},p(o,l){if(l&18){t=gt(o[1]);let r;for(r=0;r<t.length;r+=1){let a=u0(o,t,r);n[r]?n[r].p(a,l):(n[r]=d0(a),n[r].c(),n[r].m(e.parentNode,e))}for(;r<n.length;r+=1)n[r].d(1);n.length=t.length}},d(o){o&&w(e),Ni(n,o)}}}function k5(i){let e,t,n=gt(i[6]),o=[];for(let l=0;l<n.length;l+=1)o[l]=p0(c0(i,n,l));return{c(){e=P("span"),t=P("span");for(let l=0;l<o.length;l+=1)o[l].c();c(t,"class","caption-segment svelte-ovfyp5"),fi(t,"font-size",i[4]+"px"),c(e,"class","caption-line svelte-ovfyp5")},m(l,r){C(l,e,r),m(e,t);for(let a=0;a<o.length;a+=1)o[a]&&o[a].m(t,null)},p(l,r){if(r&68){n=gt(l[6]);let a;for(a=0;a<n.length;a+=1){let s=c0(l,n,a);o[a]?o[a].p(s,r):(o[a]=p0(s),o[a].c(),o[a].m(t,null))}for(;a<o.length;a+=1)o[a].d(1);o.length=n.length}r&16&&fi(t,"font-size",l[4]+"px")},d(l){l&&w(e),Ni(o,l)}}}function C5(i){let e,t,n=j("subtitles_auto_caption")+"",o;return{c(){e=P("span"),t=P("span"),o=Be(n),c(t,"class","caption-segment svelte-ovfyp5"),fi(t,"font-size",i[4]+"px"),c(e,"class","caption-line svelte-ovfyp5")},m(l,r){C(l,e,r),m(e,t),m(t,o)},p(l,r){r&16&&fi(t,"font-size",l[4]+"px")},d(l){l&&w(e)}}}function d0(i){let e,t,n=i[16]+"",o,l;return{c(){e=P("span"),t=P("span"),o=Be(n),l=O(),c(t,"class","caption-segment svelte-ovfyp5"),fi(t,"font-size",i[4]+"px"),c(e,"class","caption-line svelte-ovfyp5")},m(r,a){C(r,e,a),m(e,t),m(t,o),m(e,l)},p(r,a){a&2&&n!==(n=r[16]+"")&&Qe(o,n),a&16&&fi(t,"font-size",r[4]+"px")},d(r){r&&w(e)}}}function m0(i){let e=i[16]+"",t;return{c(){t=Be(e)},m(n,o){C(n,t,o)},p(n,o){o&64&&e!==(e=n[16]+"")&&Qe(t,e)},d(n){n&&w(t)}}}function p0(i){let e,t=(!i[17]||i[17]<=i[2])&&m0(i);return{c(){t&&t.c(),e=ot()},m(n,o){t&&t.m(n,o),C(n,e,o)},p(n,o){!n[17]||n[17]<=n[2]?t?t.p(n,o):(t=m0(n),t.c(),t.m(e.parentNode,e)):t&&(t.d(1),t=null)},d(n){n&&w(e),t&&t.d(n)}}}function S5(i){let e,t=i[1].length>0&&f0(i);return{c(){e=P("div"),t&&t.c(),c(e,"class","subtitles-container svelte-ovfyp5"),H(e,"shifted",i[0]),H(e,"auto",i[5]&&!i[8])},m(n,o){C(n,e,o),t&&t.m(e,null)},p(n,[o]){n[1].length>0?t?t.p(n,o):(t=f0(n),t.c(),t.m(e,null)):t&&(t.d(1),t=null),o&1&&H(e,"shifted",n[0]),o&288&&H(e,"auto",n[5]&&!n[8])},i:_e,o:_e,d(n){n&&w(e),t&&t.d()}}}function P5(i,e,t){let n,o,{shifted:l}=e,{captions:r}=e,{position:a}=e,{playerSize:s}=e,{isMobile:u=!1}=e,f=et(),p=Tt(),h=f.state.currentSubtitle$;F(i,h,v=>t(12,n=v));let b=f.state.isAutoSubtitleCaptionVisible$;F(i,b,v=>t(8,o=v));let g,S,y,T,k;return Ct(()=>{k=window.setTimeout(()=>{b.set(!1)},p.autoSubtitlesTimeout)}),Tn(()=>{window.clearTimeout(k)}),i.$$set=v=>{"shifted"in v&&t(0,l=v.shifted),"captions"in v&&t(1,r=v.captions),"position"in v&&t(2,a=v.position),"playerSize"in v&&t(11,s=v.playerSize),"isMobile"in v&&t(3,u=v.isMobile)},i.$$.update=()=>{if(i.$$.dirty&2048)e:{let v=s.width*.02;t(4,g=v<=p.minSubtitlesFontSize?p.minSubtitlesFontSize:v)}if(i.$$.dirty&2)e:t(5,S=r.some(v=>v.type==="timestamp"));if(i.$$.dirty&2)e:t(6,y=r.reduce((v,{type:I,value:W})=>(I==="timestamp"?v.push({timeAppeared:Number(W),value:""}):v.length===0?v.push({value:String(W)}):v[v.length-1].value=String(W),v),[]));if(i.$$.dirty&4096)e:t(7,T=!!n.isAuto)},[l,r,a,u,g,S,y,T,o,h,b,s,n]}var Ou=class extends q{constructor(e){super(),U(this,e,P5,S5,z,{shifted:0,captions:1,position:2,playerSize:11,isMobile:3},y5)}},Hr=Ou;function I5(i){Ce(i,"svelte-1o62kpz",".wrapper.svelte-1o62kpz{height:100%;background-position:center;background-size:cover;display:flex;align-items:center;justify-content:center;font-size:16px;flex-direction:column}.icon_wrapper.svelte-1o62kpz{display:flex;flex-direction:column;align-items:center;width:400px}.icon.svelte-1o62kpz{width:50px;height:50px}.text.svelte-1o62kpz{margin-top:20px}")}function _0(i){let e,t,n;return{c(){e=P("div"),t=Be("\u0412\u0438\u0434\u0435\u043E \u0432\u043E\u0441\u043F\u0440\u043E\u0438\u0437\u0432\u043E\u0434\u0438\u0442\u0441\u044F \u043D\u0430 "),n=Be(i[1]),c(e,"class","text svelte-1o62kpz")},m(o,l){C(o,e,l),m(e,t),m(e,n)},p(o,l){l&2&&Qe(n,o[1])},d(o){o&&w(e)}}}function T5(i){let e,t,n,o,l,r,a=i[1]&&_0(i);return{c(){e=P("div"),t=P("div"),t.innerHTML='<svg class="icon svelte-1o62kpz" width="22" height="22" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><g fill="none" fill-rule="evenodd"><path d="M1 18v3h3c0-1.66-1.34-3-3-3zm0-4v2c2.76 0 5 2.24 5 5h2c0-3.87-3.13-7-7-7zm0-4v2a9 9 0 0 1 9 9h2c0-6.08-4.93-11-11-11zm20-7H3c-1.1 0-2 .9-2 2v3h2V5h18v14h-7v2h7c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2z" fill="#fff"></path><path d="M0 0h24v24H0z"></path></g></svg>',n=O(),a&&a.c(),c(t,"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('${i[0]||""}')`)},m(s,u){C(s,e,u),m(e,t),m(e,n),a&&a.m(e,null),l||(r=pe(e,"click",i[2]),l=!0)},p(s,[u]){s[1]?a?a.p(s,u):(a=_0(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:_e,o:_e,d(s){s&&w(e),a&&a.d(),l=!1,r()}}}function E5(i,e,t){let{thumbUrl:n}=e,{chromecastDeviceName:o}=e;function l(r){mn.call(this,i,r)}return i.$$set=r=>{"thumbUrl"in r&&t(0,n=r.thumbUrl),"chromecastDeviceName"in r&&t(1,o=r.chromecastDeviceName)},[n,o,l]}var Fu=class extends q{constructor(e){super(),U(this,e,E5,T5,z,{thumbUrl:0,chromecastDeviceName:1},I5)}},zr=Fu;function A5(i){let e,t,n,o=i[2].default,l=Pe(o,i,i[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"},i[0]],a={};for(let s=0;s<r.length;s+=1)a=ne(a,r[s]);return{c(){e=D("svg"),l&&l.c(),t=D("path"),c(t,"fill","#fff"),c(t,"fill-rule","evenodd"),c(t,"d","M460 193.998a3.997 3.997 0 0 1 3.997-3.998h122.006a4.003 4.003 0 0 1 3.997 3.998v82.004a3.997 3.997 0 0 1-3.997 3.998H463.997a4.003 4.003 0 0 1-3.997-3.998zm6 2.993c0-.546.45-.99.99-.99h4.02c.546 0 .99.45.99.99v4.02c0 .546-.45.99-.99.99h-4.02a.995.995 0 0 1-.99-.99zm0 12c0-.546.45-.99.99-.99h4.02c.546 0 .99.45.99.99v4.02c0 .546-.45.99-.99.99h-4.02a.995.995 0 0 1-.99-.99zm0 12c0-.546.45-.99.99-.99h4.02c.546 0 .99.45.99.99v4.02c0 .546-.45.99-.99.99h-4.02a.995.995 0 0 1-.99-.99zm0 12c0-.546.45-.99.99-.99h4.02c.546 0 .99.45.99.99v4.02c0 .546-.45.99-.99.99h-4.02a.995.995 0 0 1-.99-.99zm0 12c0-.546.45-.99.99-.99h4.02c.546 0 .99.45.99.99v4.02c0 .546-.45.99-.99.99h-4.02a.995.995 0 0 1-.99-.99zm0 12c0-.546.45-.99.99-.99h4.02c.546 0 .99.45.99.99v4.02c0 .546-.45.99-.99.99h-4.02a.995.995 0 0 1-.99-.99zm0 12c0-.546.45-.99.99-.99h4.02c.546 0 .99.45.99.99v4.02c0 .546-.45.99-.99.99h-4.02a.995.995 0 0 1-.99-.99zm112-72c0-.546.45-.99.99-.99h4.02c.546 0 .99.45.99.99v4.02c0 .546-.45.99-.99.99h-4.02a.995.995 0 0 1-.99-.99zm0 12c0-.546.45-.99.99-.99h4.02c.546 0 .99.45.99.99v4.02c0 .546-.45.99-.99.99h-4.02a.995.995 0 0 1-.99-.99zm0 12c0-.546.45-.99.99-.99h4.02c.546 0 .99.45.99.99v4.02c0 .546-.45.99-.99.99h-4.02a.995.995 0 0 1-.99-.99zm0 12c0-.546.45-.99.99-.99h4.02c.546 0 .99.45.99.99v4.02c0 .546-.45.99-.99.99h-4.02a.995.995 0 0 1-.99-.99zm0 12c0-.546.45-.99.99-.99h4.02c.546 0 .99.45.99.99v4.02c0 .546-.45.99-.99.99h-4.02a.995.995 0 0 1-.99-.99zm0 12c0-.546.45-.99.99-.99h4.02c.546 0 .99.45.99.99v4.02c0 .546-.45.99-.99.99h-4.02a.995.995 0 0 1-.99-.99zm0 12c0-.546.45-.99.99-.99h4.02c.546 0 .99.45.99.99v4.02c0 .546-.45.99-.99.99h-4.02a.995.995 0 0 1-.99-.99zM507 232a6 6 0 1 0 0-12 6 6 0 0 0 0 12m36 0a6 6 0 1 0 0-12 6 6 0 0 0 0 12m-18.05 15c6.05 0 11.624 4.446 11.944 4.65 2.106 1.35 3.252.772 3.957.156s1.15-2.806-1.044-4.657c-1.735-1.48-5.806-5.16-14.856-5.15s-12.95 3.5-14.792 5.185c-1.84 1.685-2.288 3.498-.973 4.657s2.315 1.158 4.357-.327c-.007.007 5.357-4.515 11.408-4.515z"),be(e,a)},m(s,u){C(s,e,u),l&&l.m(e,null),m(e,t),n=!0},p(s,[u]){l&&l.p&&(!n||u&2)&&Te(l,o,s,s[1],n?Ie(o,s[1],u,null):Ee(s[1]),null),be(e,a=Ve(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&&w(e),l&&l.d(s)}}}function M5(i,e,t){let{$$slots:n={},$$scope:o}=e;return i.$$set=l=>{t(0,e=ne(ne({},e),ge(l))),"$$scope"in l&&t(1,o=l.$$scope)},e=ge(e),[e,o,n]}var Hu=class extends q{constructor(e){super(),U(this,e,M5,A5,z,{})}},h0=Hu;function V5(i){Ce(i,"svelte-13zpvm8",".container.svelte-13zpvm8{position:absolute;top:0;bottom:0;left:0;right:0;background:#000;display:flex;align-items:center;justify-content:center}")}function L5(i){let e,t,n;return t=new h0({}),{c(){e=P("div"),B(t.$$.fragment),c(e,"class","container svelte-13zpvm8")},m(o,l){C(o,e,l),L(t,e,null),n=!0},p:_e,i(o){n||(d(t.$$.fragment,o),n=!0)},o(o){_(t.$$.fragment,o),n=!1},d(o){o&&w(e),R(t)}}}var zu=class extends q{constructor(e){super(),U(this,e,null,L5,z,{},V5)}},qr=zu;function R5(i){Ce(i,"svelte-17wno3",".container.svelte-17wno3.svelte-17wno3{position:absolute;top:0;bottom:0;left:0;right:0;background-position:center;background-size:cover;cursor:pointer;transition:opacity 0.2s, visibility 0.2s;will-change:opacity}.container.hidden.svelte-17wno3.svelte-17wno3{opacity:0;visibility:hidden}.playButton.svelte-17wno3.svelte-17wno3{position:absolute;top:0;bottom:0;left:0;right:0;margin:auto;width:var(--big-play-size);height:var(--big-play-size);display:flex;align-items:center;justify-content:center}.playButtonBackground.svelte-17wno3.svelte-17wno3{position:absolute;top:0;bottom:0;left:0;right:0;border-radius:var(--big-play-radius);background-color:var(--big-play-bg-color);transition:background 0.2s, transform 0.2s;transition-timing-function:ease-out;will-change:background, transform}.container.svelte-17wno3:hover .playButtonBackground.svelte-17wno3{background-color:var(--big-play-hover-bg-color);transform:scale(1.15)}.playButton.svelte-17wno3 svg{transform:scale(2)}")}function B5(i){let e,t,n,o,l,r,a,s,u,f;return l=new Yo({}),{c(){e=P("div"),t=P("div"),n=P("div"),o=O(),B(l.$$.fragment),c(n,"class","playButtonBackground svelte-17wno3"),c(t,"class","playButton svelte-17wno3"),c(t,"tabindex","0"),c(t,"role","button"),c(t,"aria-label",r=j("tooltip_play")),c(e,"class","container svelte-17wno3"),c(e,"style",a=`background-color: #222; background-image: url('${i[0]||""}')`),H(e,"hidden",i[1])},m(p,h){C(p,e,h),m(e,t),m(t,n),m(t,o),L(l,t,null),s=!0,u||(f=[pe(t,"keydown",i[3]),pe(e,"click",rt(function(){Ii(i[2])&&i[2].apply(this,arguments)}))],u=!0)},p(p,[h]){i=p,(!s||h&1&&a!==(a=`background-color: #222; background-image: url('${i[0]||""}')`))&&c(e,"style",a),(!s||h&2)&&H(e,"hidden",i[1])},i(p){s||(d(l.$$.fragment,p),s=!0)},o(p){_(l.$$.fragment,p),s=!1},d(p){p&&w(e),R(l),u=!1,tt(f)}}}function D5(i,e,t){let{thumbUrl:n}=e,{hidden:o}=e,{startVideo:l}=e,a=et().ui.startedByKeyboard$,s=u=>{let f=u.code;["Enter","Space"].includes(f)&&(u.stopPropagation(),u.preventDefault(),a.set(!0),l())};return i.$$set=u=>{"thumbUrl"in u&&t(0,n=u.thumbUrl),"hidden"in u&&t(1,o=u.hidden),"startVideo"in u&&t(2,l=u.startVideo)},[n,o,l,s]}var qu=class extends q{constructor(e){super(),U(this,e,D5,B5,z,{thumbUrl:0,hidden:1,startVideo:2,handlePressKey:3},R5)}get handlePressKey(){return this.$$.ctx[3]}},Ur=qu;function N5(i){Ce(i,"svelte-1bcvcf2",`.title.svelte-1bcvcf2{position:absolute;pointer-events:none;left:0;top:0;width:100%;height:var(--controls-gradient-height);font-size:15px;color:var(--white);box-sizing:border-box;padding:18px 20px 10px;overflow:hidden;white-space:nowrap;text-overflow:ellipsis;transition-property:visibility, transform, opacity;transition-duration:var(--controls-transition-duration);transition-timing-function:var(--controls-transition-fn);will-change:transform, opacity;background:linear-gradient(
|
|
26
26
|
0deg,
|
|
27
27
|
rgba(0, 0, 0, 0) 0%,
|
|
28
28
|
rgba(0, 0, 0, 0.02) 19%,
|
|
29
29
|
rgba(0, 0, 0, 0.10) 34%,
|
|
30
30
|
rgba(0, 0, 0, 0.40) 60%,
|
|
31
31
|
rgba(0, 0, 0, 0.60) 100%
|
|
32
|
-
)}.hidden.v-1bcvcf2{visibility:hidden;transform:translateY(calc(var(--controls-gradient-height) * -1));opacity:0}`)}function mh(t){let e,i;return{c(){e=A("div"),i=De(t[0]),u(e,"class","title v-1bcvcf2"),V(e,"hidden",t[1])},m(n,o){I(n,e,o),m(e,i)},p(n,[o]){o&1&&xe(i,n[0]),o&2&&V(e,"hidden",n[1])},i:q,o:q,d(n){n&&S(e)}}}function ph(t,e,i){let{title:n=""}=e,{isHidden:o=!1}=e;return t.$$set=s=>{"title"in s&&i(0,n=s.title),"isHidden"in s&&i(1,o=s.isHidden)},[n,o]}class hh extends be{constructor(e){super(),ge(this,e,ph,mh,he,{title:0,isHidden:1},dh)}}function gh(t){Ke(t,"v-1qpxtfg",".timer__container.v-1qpxtfg{display:flex;align-items:flex-start;justify-content:center}.cell.v-1qpxtfg{display:flex;flex-direction:column;align-items:center;width:62px}.cell__value.v-1qpxtfg{font-size:48px;line-height:1.2;font-weight:700}.cell__unit.v-1qpxtfg{font-size:14px;line-height:1.2;font-weight:400}.timer__points.v-1qpxtfg{display:inline-block;margin:0 8px;font-size:42px;line-height:1.2;font-weight:600}")}function Va(t){let e,i,n,o,s,l,r;return{c(){e=A("div"),i=A("span"),n=De(t[0]),o=D(),s=A("span"),s.textContent=`${j("waiting_live_day_value")}`,l=D(),r=A("span"),r.textContent=`${j("waiting_live_colon")}`,u(i,"class","cell__value v-1qpxtfg"),u(s,"class","cell__unit v-1qpxtfg"),u(e,"class","timer__cell cell v-1qpxtfg"),u(r,"class","timer__points v-1qpxtfg")},m(a,c){I(a,e,c),m(e,i),m(i,n),m(e,o),m(e,s),I(a,l,c),I(a,r,c)},p(a,c){c&1&&xe(n,a[0])},d(a){a&&(S(e),S(l),S(r))}}}function Ma(t){let e,i,n,o,s,l,r;return{c(){e=A("div"),i=A("span"),n=De(t[1]),o=D(),s=A("span"),s.textContent=`${j("waiting_live_hour_value")}`,l=D(),r=A("span"),r.textContent=`${j("waiting_live_colon")}`,u(i,"class","cell__value v-1qpxtfg"),u(s,"class","cell__unit v-1qpxtfg"),u(e,"class","timer__cell cell v-1qpxtfg"),u(r,"class","timer__points v-1qpxtfg")},m(a,c){I(a,e,c),m(e,i),m(i,n),m(e,o),m(e,s),I(a,l,c),I(a,r,c)},p(a,c){c&2&&xe(n,a[1])},d(a){a&&(S(e),S(l),S(r))}}}function La(t){let e,i,n,o,s,l,r;return{c(){e=A("div"),i=A("span"),n=De(t[2]),o=D(),s=A("span"),s.textContent=`${j("waiting_live_minute_value")}`,l=D(),r=A("span"),r.textContent=`${j("waiting_live_colon")}`,u(i,"class","cell__value v-1qpxtfg"),u(s,"class","cell__unit v-1qpxtfg"),u(e,"class","timer__cell cell v-1qpxtfg"),u(r,"class","timer__points v-1qpxtfg")},m(a,c){I(a,e,c),m(e,i),m(i,n),m(e,o),m(e,s),I(a,l,c),I(a,r,c)},p(a,c){c&4&&xe(n,a[2])},d(a){a&&(S(e),S(l),S(r))}}}function Ba(t){let e,i,n,o,s;return{c(){e=A("div"),i=A("span"),n=De(t[3]),o=D(),s=A("span"),s.textContent=`${j("waiting_live_second_value")}`,u(i,"class","cell__value v-1qpxtfg"),u(s,"class","cell__unit v-1qpxtfg"),u(e,"class","timer__cell cell v-1qpxtfg")},m(l,r){I(l,e,r),m(e,i),m(i,n),m(e,o),m(e,s)},p(l,r){r&8&&xe(n,l[3])},d(l){l&&S(e)}}}function bh(t){let e,i,n,o,s=t[0]&&Va(t),l=t[1]&&Ma(t),r=t[2]&&La(t),a=t[3]&&Ba(t);return{c(){e=A("div"),s&&s.c(),i=D(),l&&l.c(),n=D(),r&&r.c(),o=D(),a&&a.c(),u(e,"class","timer__container v-1qpxtfg")},m(c,f){I(c,e,f),s&&s.m(e,null),m(e,i),l&&l.m(e,null),m(e,n),r&&r.m(e,null),m(e,o),a&&a.m(e,null)},p(c,[f]){c[0]?s?s.p(c,f):(s=Va(c),s.c(),s.m(e,i)):s&&(s.d(1),s=null),c[1]?l?l.p(c,f):(l=Ma(c),l.c(),l.m(e,n)):l&&(l.d(1),l=null),c[2]?r?r.p(c,f):(r=La(c),r.c(),r.m(e,o)):r&&(r.d(1),r=null),c[3]?a?a.p(c,f):(a=Ba(c),a.c(),a.m(e,null)):a&&(a.d(1),a=null)},i:q,o:q,d(c){c&&S(e),s&&s.d(),l&&l.d(),r&&r.d(),a&&a.d()}}}function _h(t,e,i){let{startTime:n}=e,{onTimerOver:o}=e,s,l,r,a,c;const f=v=>String(v).padStart(2,"0"),p=v=>{const k=Math.floor(v/86400);k&&(v-=k*86400,i(0,s=f(k)));const _=Math.floor(v/3600);i(1,l=f(_));const P=Math.floor(v/60)%60;i(2,r=f(P));const C=v%60;i(3,a=f(C))},h=()=>{const v=Math.floor(Date.now()/1e3),k=n-v;p(k),k>=1?c=requestAnimationFrame(h):o()};return ln(()=>{c=requestAnimationFrame(h)}),qo(()=>{cancelAnimationFrame(c)}),t.$$set=v=>{"startTime"in v&&i(4,n=v.startTime),"onTimerOver"in v&&i(5,o=v.onTimerOver)},[s,l,r,a,n,o]}class vh extends be{constructor(e){super(),ge(this,e,_h,bh,he,{startTime:4,onTimerOver:5},gh)}}function kh(t){let e,i,n,o,s;return{c(){e=L("svg"),i=L("path"),n=L("path"),o=L("path"),s=L("path"),u(i,"fill","#fefffe"),u(i,"d","M179.5-.5h40c85.04 12.447 142.207 59.113 171.5 140 3.816 13.264 6.649 26.597 8.5 40v40c-3.699 34.4-15.533 65.733-35.5 94-6.417-8.409-14.584-14.576-24.5-18.5-1.017-1.049-1.184-2.216-.5-3.5 26.495-41.134 34.161-85.467 23-133-21.84-72.167-70.006-114-144.5-125.5C147.251 28.707 93.084 55.874 55 114.5c-26.93 49.402-29.93 100.068-9 152a152.324 152.324 0 0 0 14 25c.684 1.284.517 2.451-.5 3.5-9.916 3.924-18.083 10.091-24.5 18.5-19.967-28.267-31.8-59.6-35.5-94v-40C11.947 94.46 58.613 37.293 139.5 8c13.264-3.816 26.597-6.649 40-8.5Z"),At(i,"opacity",".965"),u(n,"fill","#fefffe"),u(n,"d","M183.5 63.5c57.529-3.65 102.029 18.35 133.5 66 21.628 40.092 24.295 81.425 8 124a186.647 186.647 0 0 1-17.5 29.5 632.842 632.842 0 0 1-38-7c36.445-38.176 42.945-81.01 19.5-128.5-24.178-37.504-58.678-54.337-103.5-50.5-49.5 9.5-79 39-88.5 88.5-3.944 35.587 6.889 65.753 32.5 90.5a1149.466 1149.466 0 0 0-36 7.5c-1.53-.029-2.696-.696-3.5-2-29.298-42.431-34.631-87.764-16-136 21.866-46.852 58.366-74.185 109.5-82Z"),At(n,"opacity",".965"),u(o,"fill","#fefffe"),u(o,"d","M187.5 127.5c44.524-2.948 72.357 17.052 83.5 60 3.431 44.55-16.403 72.383-59.5 83.5-44.55 3.431-72.383-16.403-83.5-59.5-3.229-44.571 16.604-72.571 59.5-84Z"),At(o,"opacity",".985"),u(s,"fill","#fefffe"),u(s,"d","M219.5 399.5h-40c-44.969-5.321-83.969-23.321-117-54a31.738 31.738 0 0 1 3.5-10c5.692-6.431 12.526-11.264 20.5-14.5 36.524-12.956 74.191-18.79 113-17.5 38.809-1.29 76.476 4.544 113 17.5 7.974 3.236 14.808 8.069 20.5 14.5a31.731 31.731 0 0 1 3.5 10c-33.031 30.679-72.031 48.679-117 54Z"),At(s,"opacity",".986"),u(e,"xmlns","http://www.w3.org/2000/svg"),u(e,"viewBox","0 0 400 400"),u(e,"aria-hidden","true"),u(e,"data-testid","podcast-icon"),At(e,"shape-rendering","geometricPrecision"),At(e,"text-rendering","geometricPrecision"),At(e,"image-rendering","optimizeQuality"),At(e,"fill-rule","evenodd"),At(e,"clip-rule","evenodd"),At(e,"width","100%"),At(e,"height","100%")},m(l,r){I(l,e,r),m(e,i),m(e,n),m(e,o),m(e,s)},p:q,i:q,o:q,d(l){l&&S(e)}}}class wh extends be{constructor(e){super(),ge(this,e,null,kh,he,{})}}function yh(t){Ke(t,"v-15pewff",".waiting-container.v-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.v-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.v-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.v-15pewff{width:20%;max-width:200px;margin-bottom:20px}.upcoming__title.v-15pewff{font-size:14px;line-height:1.2;font-weight:400}.waiting-timer.v-15pewff{position:absolute;top:50%;left:50%;transform:translate(-50%, -50%);z-index:2}.timer.v-15pewff{display:flex;flex-direction:column;align-items:center;justify-content:center}.timer__title.v-15pewff{display:inline-block;vertical-align:middle;margin-bottom:12px;font-size:14px;line-height:1.2;font-weight:400}")}function Ch(t){let e,i,n,o,s;return o=new vh({props:{startTime:t[1]||0,onTimerOver:t[3]}}),{c(){e=A("div"),i=A("span"),i.textContent=`${j("waiting_live_timer_title")}`,n=D(),U(o.$$.fragment),u(i,"class","timer__title v-15pewff"),u(e,"class","waiting-timer timer v-15pewff")},m(l,r){I(l,e,r),m(e,i),m(e,n),H(o,e,null),s=!0},p(l,r){const a={};r&2&&(a.startTime=l[1]||0),r&4&&(a.onTimerOver=l[3]),o.$set(a)},i(l){s||(d(o.$$.fragment,l),s=!0)},o(l){b(o.$$.fragment,l),s=!1},d(l){l&&S(e),F(o)}}}function Th(t){let e,i,n,o,s,l;return n=new wh({}),{c(){e=A("div"),i=A("div"),U(n.$$.fragment),o=D(),s=A("span"),s.textContent=`${j("waiting_live_upcoming_title")}`,u(i,"class","upcoming-icon v-15pewff"),u(s,"class","upcoming__title v-15pewff"),u(e,"class","upcoming v-15pewff")},m(r,a){I(r,e,a),m(e,i),H(n,i,null),m(e,o),m(e,s),l=!0},p:q,i(r){l||(d(n.$$.fragment,r),l=!0)},o(r){b(n.$$.fragment,r),l=!1},d(r){r&&S(e),F(n)}}}function Ph(t){let e,i,n,o,s;const l=[Th,Ch],r=[];function a(c,f){return c[2]?0:1}return i=a(t),n=r[i]=l[i](t),{c(){e=A("div"),n.c(),u(e,"class","waiting-container v-15pewff"),u(e,"style",o=`background-image: url(${t[2]?"":t[0]})`)},m(c,f){I(c,e,f),r[i].m(e,null),s=!0},p(c,[f]){let p=i;i=a(c),i===p?r[i].p(c,f):(ce(),b(r[p],1,1,()=>{r[p]=null}),fe(),n=r[i],n?n.p(c,f):(n=r[i]=l[i](c),n.c()),d(n,1),n.m(e,null)),(!s||f&5&&o!==(o=`background-image: url(${c[2]?"":c[0]})`))&&u(e,"style",o)},i(c){s||(d(n),s=!0)},o(c){b(n),s=!1},d(c){c&&S(e),r[i].d()}}}function Sh(t,e,i){let n,{thumbUrl:o}=e,{startTime:s}=e;const l=()=>i(2,n=!0);return t.$$set=r=>{"thumbUrl"in r&&i(0,o=r.thumbUrl),"startTime"in r&&i(1,s=r.startTime)},t.$$.update=()=>{t.$$.dirty&2&&i(2,n=s===void 0||s<Math.floor(Date.now()/1e3))},[o,s,n,l]}class qu extends be{constructor(e){super(),ge(this,e,Sh,Ph,he,{thumbUrl:0,startTime:1},yh)}}function Ih(t){Ke(t,"v-1bcnzdw",".waiting-container.v-1bcnzdw{position:absolute;top:0;left:0;width:100%;height:100%;display:flex;align-items:center;justify-content:center;background-color:var(--black)}.waiting-title.v-1bcnzdw{padding:20px;text-align:center;font-size:20px;line-height:1.2;font-weight:400}")}function Ah(t){let e,i;return{c(){e=A("div"),i=A("p"),i.textContent=`${j("waiting_record_title")}`,u(i,"class","waiting-title v-1bcnzdw"),u(e,"class","waiting-container v-1bcnzdw")},m(n,o){I(n,e,o),m(e,i)},p:q,i:q,o:q,d(n){n&&S(e)}}}class Zu extends be{constructor(e){super(),ge(this,e,null,Ah,he,{},Ih)}}const{window:Eh}=v1;function Vh(t){Ke(t,"v-1o4wf3x",".player-wrapper.v-1o4wf3x{position:absolute;width:100%;height:100%}.player-wrapper.v-1o4wf3x .player-media{position:absolute;left:0;top:0;width:100%;height:100%;background:var(--black);transition:transform 0.2s ease-in-out}.spherical-video-icon.v-1o4wf3x{display:inline-block;position:absolute;top:calc(50% - 23px);left:calc(50% - 38px)}.video-wrapper.v-1o4wf3x,.video-container.v-1o4wf3x,.ads-container.v-1o4wf3x{position:absolute;width:100%;height:100%;left:0;top:0}.video-wrapper.v-1o4wf3x{z-index:var(--video-container-z-index);background:var(--black)}.video-container.v-1o4wf3x{z-index:var(--video-container-z-index);transition:var(--rotate-transition-duration) ease all}.video-container.fast-rotate.v-1o4wf3x{transition:none}.nocursor.v-1o4wf3x{cursor:none}.ads-container.v-1o4wf3x{background:var(--black)}")}function Ra(t){let e,i;return e=new qu({props:{thumbUrl:t[3],startTime:t[4]?.startTime}}),{c(){U(e.$$.fragment)},m(n,o){H(e,n,o),i=!0},p(n,o){const s={};o[0]&8&&(s.thumbUrl=n[3]),o[0]&16&&(s.startTime=n[4]?.startTime),e.$set(s)},i(n){i||(d(e.$$.fragment,n),i=!0)},o(n){b(e.$$.fragment,n),i=!1},d(n){F(e,n)}}}function Na(t){let e,i;return e=new Zu({}),{c(){U(e.$$.fragment)},m(n,o){H(e,n,o),i=!0},i(n){i||(d(e.$$.fragment,n),i=!0)},o(n){b(e.$$.fragment,n),i=!1},d(n){F(e,n)}}}function Da(t){let e,i,n;return i=new Y1({props:{adsSlotId:t[8],adsParams:t[9],adsPreviewParam:t[10],duration:t[11]}}),{c(){e=A("div"),U(i.$$.fragment),u(e,"class","ads-container v-1o4wf3x"),V(e,"hidden",t[38]!==Ne.Ads)},m(o,s){I(o,e,s),H(i,e,null),n=!0},p(o,s){const l={};s[0]&256&&(l.adsSlotId=o[8]),s[0]&512&&(l.adsParams=o[9]),s[0]&1024&&(l.adsPreviewParam=o[10]),s[0]&2048&&(l.duration=o[11]),i.$set(l),(!n||s[1]&128)&&V(e,"hidden",o[38]!==Ne.Ads)},i(o){n||(d(i.$$.fragment,o),n=!0)},o(o){b(i.$$.fragment,o),n=!1},d(o){o&&S(e),F(i)}}}function za(t){let e,i;return e=new q0({props:{title:t[18],thumb:t[19],playNextVideo:t[23]}}),{c(){U(e.$$.fragment)},m(n,o){H(e,n,o),i=!0},p(n,o){const s={};o[0]&262144&&(s.title=n[18]),o[0]&524288&&(s.thumb=n[19]),o[0]&8388608&&(s.playNextVideo=n[23]),e.$set(s)},i(n){i||(d(e.$$.fragment,n),i=!0)},o(n){b(e.$$.fragment,n),i=!1},d(n){F(e,n)}}}function Oa(t){let e,i;return e=new hh({props:{title:t[2],isHidden:!t[36]}}),{c(){U(e.$$.fragment)},m(n,o){H(e,n,o),i=!0},p(n,o){const s={};o[0]&4&&(s.title=n[2]),o[1]&32&&(s.isHidden=!n[36]),e.$set(s)},i(n){i||(d(e.$$.fragment,n),i=!0)},o(n){b(e.$$.fragment,n),i=!1},d(n){F(e,n)}}}function Ha(t){let e,i;return e=new zu({props:{isShifted:t[38]===Ne.Video&&t[36]}}),{c(){U(e.$$.fragment)},m(n,o){H(e,n,o),i=!0},p(n,o){const s={};o[1]&160&&(s.isShifted=n[38]===Ne.Video&&n[36]),e.$set(s)},i(n){i||(d(e.$$.fragment,n),i=!0)},o(n){b(e.$$.fragment,n),i=!1},d(n){F(e,n)}}}function Fa(t){let e,i,n;return i=new F1({props:{ariaLabel:j("video360")}}),{c(){e=A("div"),U(i.$$.fragment),u(e,"class","spherical-video-icon v-1o4wf3x")},m(o,s){I(o,e,s),H(i,e,null),n=!0},p:q,i(o){n||(d(i.$$.fragment,o),n=!0)},o(o){b(i.$$.fragment,o),n=!1},d(o){o&&S(e),F(i)}}}function Ua(t){let e,i;return e=new Hu({props:{thumbUrl:t[3],chromecastDeviceName:t[53]}}),{c(){U(e.$$.fragment)},m(n,o){H(e,n,o),i=!0},p(n,o){const s={};o[0]&8&&(s.thumbUrl=n[3]),o[1]&4194304&&(s.chromecastDeviceName=n[53]),e.$set(s)},i(n){i||(d(e.$$.fragment,n),i=!0)},o(n){b(e.$$.fragment,n),i=!1},d(n){F(e,n)}}}function qa(t){let e,i;return e=new Ou({props:{shifted:t[36],captions:t[55],position:t[56],playerSize:t[34]}}),{c(){U(e.$$.fragment)},m(n,o){H(e,n,o),i=!0},p(n,o){const s={};o[1]&32&&(s.shifted=n[36]),o[1]&16777216&&(s.captions=n[55]),o[1]&33554432&&(s.position=n[56]),o[1]&8&&(s.playerSize=n[34]),e.$set(s)},i(n){i||(d(e.$$.fragment,n),i=!0)},o(n){b(e.$$.fragment,n),i=!1},d(n){F(e,n)}}}function Za(t){let e,i,n,o,s;return i=new Fu({}),{c(){e=A("div"),U(i.$$.fragment)},m(l,r){I(l,e,r),H(i,e,null),n=!0,o||(s=[pe(e,"contextmenu",$t(t[108])),pe(e,"click",nt(t[119]))],o=!0)},p:q,i(l){n||(d(i.$$.fragment,l),n=!0)},o(l){b(i.$$.fragment,l),n=!1},d(l){l&&S(e),F(i),o=!1,it(s)}}}function Wa(t){let e,i,n;function o(l){t[156](l)}let s={bottomHidden:t[38]===Ne.Thumb||t[38]===Ne.WaitingLive||t[38]===Ne.WaitingRecord,bottomNoSmooth:t[50],showControls:t[36],isAds:t[38]===Ne.Ads,canRewindLive:t[6]&&t[57]!==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:Bh,playNextVideo:t[23],playPrevVideo:t[24],repeatPlaylist:t[25],toggleFullscreen:t[106],returnFocus:t[155],seekToInteractive:t[26],toggleGraph:t[27],playPrevChapter:t[28]};return t[41]!==void 0&&(s.controlsElementRef=t[41]),e=new Nu({props:s}),_e.push(()=>qe(e,"controlsElementRef",o)),{c(){U(e.$$.fragment)},m(l,r){H(e,l,r),n=!0},p(l,r){const a={};r[1]&128&&(a.bottomHidden=l[38]===Ne.Thumb||l[38]===Ne.WaitingLive||l[38]===Ne.WaitingRecord),r[1]&524288&&(a.bottomNoSmooth=l[50]),r[1]&32&&(a.showControls=l[36]),r[1]&128&&(a.isAds=l[38]===Ne.Ads),r[0]&64|r[1]&67108864&&(a.canRewindLive=l[6]&&l[57]!==0),r[0]&4096&&(a.logoClickable=l[12]),r[0]&8192&&(a.logoHidden=l[13]),r[0]&16384&&(a.logoTargetUrl=l[14]),r[0]&32768&&(a.showNextPrevButtons=l[15]),r[0]&65536&&(a.nextButtonActive=l[16]),r[0]&131072&&(a.prevButtonActive=l[17]),r[0]&1048576&&(a.isOneVideoPlaylist=l[20]),r[0]&2097152&&(a.supportLink=l[21]),r[0]&8388608&&(a.playNextVideo=l[23]),r[0]&16777216&&(a.playPrevVideo=l[24]),r[0]&33554432&&(a.repeatPlaylist=l[25]),r[1]&131072&&(a.returnFocus=l[155]),r[0]&67108864&&(a.seekToInteractive=l[26]),r[0]&134217728&&(a.toggleGraph=l[27]),r[0]&268435456&&(a.playPrevChapter=l[28]),!i&&r[1]&1024&&(i=!0,a.controlsElementRef=l[41],Ue(()=>i=!1)),e.$set(a)},i(l){n||(d(e.$$.fragment,l),n=!0)},o(l){b(e.$$.fragment,l),n=!1},d(l){F(e,l)}}}function Ka(t){let e,i;return e=new su({}),{c(){U(e.$$.fragment)},m(n,o){H(e,n,o),i=!0},i(n){i||(d(e.$$.fragment,n),i=!0)},o(n){b(e.$$.fragment,n),i=!1},d(n){F(e,n)}}}function ja(t){let e,i;return e=new cd({}),{c(){U(e.$$.fragment)},m(n,o){H(e,n,o),i=!0},i(n){i||(d(e.$$.fragment,n),i=!0)},o(n){b(e.$$.fragment,n),i=!1},d(n){F(e,n)}}}function Ga(t){let e,i;return e=new tu({}),{c(){U(e.$$.fragment)},m(n,o){H(e,n,o),i=!0},i(n){i||(d(e.$$.fragment,n),i=!0)},o(n){b(e.$$.fragment,n),i=!1},d(n){F(e,n)}}}function Ya(t){let e,i,n,o,s,l,r,a,c,f,p,h,v,k,_,P,C,T,y,M,oe,Y,R,ee;e=new Uu({props:{hidden:t[38]!==Ne.Thumb||t[37]||t[92]&&t[5],thumbUrl:t[3],startVideo:t[29]}});let Q=t[38]===Ne.WaitingLive&&Ra(t),w=t[38]===Ne.WaitingRecord&&Na(),$=t[7]&&t[22]&&Da(t),X=t[31]&&t[18]&&t[19]&&za(t),z=t[44]&&Oa(t),W=t[49]&&Ha(t),B=t[52]&&Fa(),J=t[39]&&Ua(t),E=t[54].value!=="off"&&qa(t),O=t[37]&&Za(t),Ce=t[22]&&Wa(t);k=new X1({props:{isLive:t[58],isHidden:!t[43],isPlaying:t[59],position:t[56],duration:t[60]}}),P=new jp({props:{data:t[103]}});function ze(Z){t[158](Z)}let Ee={supportLink:t[21],returnFocus:t[157],visible:t[33],playerContainerRef:t[40],controlsContainerRef:t[41],position:t[61]};t[32]!==void 0&&(Ee.menuElementRef=t[32]),T=new w0({props:Ee}),_e.push(()=>qe(T,"menuElementRef",ze));let Ve=t[42]&&Ka(),Pe=t[62]&&ja(),me=t[63]&&Ga();return{c(){U(e.$$.fragment),i=D(),Q&&Q.c(),n=D(),w&&w.c(),o=D(),$&&$.c(),s=D(),X&&X.c(),l=D(),z&&z.c(),r=D(),W&&W.c(),a=D(),B&&B.c(),c=D(),J&&J.c(),f=D(),E&&E.c(),p=D(),O&&O.c(),h=D(),Ce&&Ce.c(),v=D(),U(k.$$.fragment),_=D(),U(P.$$.fragment),C=D(),U(T.$$.fragment),M=D(),Ve&&Ve.c(),oe=D(),Pe&&Pe.c(),Y=D(),me&&me.c(),R=ct()},m(Z,de){H(e,Z,de),I(Z,i,de),Q&&Q.m(Z,de),I(Z,n,de),w&&w.m(Z,de),I(Z,o,de),$&&$.m(Z,de),I(Z,s,de),X&&X.m(Z,de),I(Z,l,de),z&&z.m(Z,de),I(Z,r,de),W&&W.m(Z,de),I(Z,a,de),B&&B.m(Z,de),I(Z,c,de),J&&J.m(Z,de),I(Z,f,de),E&&E.m(Z,de),I(Z,p,de),O&&O.m(Z,de),I(Z,h,de),Ce&&Ce.m(Z,de),I(Z,v,de),H(k,Z,de),I(Z,_,de),H(P,Z,de),I(Z,C,de),H(T,Z,de),I(Z,M,de),Ve&&Ve.m(Z,de),I(Z,oe,de),Pe&&Pe.m(Z,de),I(Z,Y,de),me&&me.m(Z,de),I(Z,R,de),ee=!0},p(Z,de){const Se={};de[0]&32|de[1]&192&&(Se.hidden=Z[38]!==Ne.Thumb||Z[37]||Z[92]&&Z[5]),de[0]&8&&(Se.thumbUrl=Z[3]),de[0]&536870912&&(Se.startVideo=Z[29]),e.$set(Se),Z[38]===Ne.WaitingLive?Q?(Q.p(Z,de),de[1]&128&&d(Q,1)):(Q=Ra(Z),Q.c(),d(Q,1),Q.m(n.parentNode,n)):Q&&(ce(),b(Q,1,1,()=>{Q=null}),fe()),Z[38]===Ne.WaitingRecord?w?de[1]&128&&d(w,1):(w=Na(),w.c(),d(w,1),w.m(o.parentNode,o)):w&&(ce(),b(w,1,1,()=>{w=null}),fe()),Z[7]&&Z[22]?$?($.p(Z,de),de[0]&4194432&&d($,1)):($=Da(Z),$.c(),d($,1),$.m(s.parentNode,s)):$&&(ce(),b($,1,1,()=>{$=null}),fe()),Z[31]&&Z[18]&&Z[19]?X?(X.p(Z,de),de[0]&786432|de[1]&1&&d(X,1)):(X=za(Z),X.c(),d(X,1),X.m(l.parentNode,l)):X&&(ce(),b(X,1,1,()=>{X=null}),fe()),Z[44]?z?(z.p(Z,de),de[1]&8192&&d(z,1)):(z=Oa(Z),z.c(),d(z,1),z.m(r.parentNode,r)):z&&(ce(),b(z,1,1,()=>{z=null}),fe()),Z[49]?W?(W.p(Z,de),de[1]&262144&&d(W,1)):(W=Ha(Z),W.c(),d(W,1),W.m(a.parentNode,a)):W&&(ce(),b(W,1,1,()=>{W=null}),fe()),Z[52]?B?(B.p(Z,de),de[1]&2097152&&d(B,1)):(B=Fa(),B.c(),d(B,1),B.m(c.parentNode,c)):B&&(ce(),b(B,1,1,()=>{B=null}),fe()),Z[39]?J?(J.p(Z,de),de[1]&256&&d(J,1)):(J=Ua(Z),J.c(),d(J,1),J.m(f.parentNode,f)):J&&(ce(),b(J,1,1,()=>{J=null}),fe()),Z[54].value!=="off"?E?(E.p(Z,de),de[1]&8388608&&d(E,1)):(E=qa(Z),E.c(),d(E,1),E.m(p.parentNode,p)):E&&(ce(),b(E,1,1,()=>{E=null}),fe()),Z[37]?O?(O.p(Z,de),de[1]&64&&d(O,1)):(O=Za(Z),O.c(),d(O,1),O.m(h.parentNode,h)):O&&(ce(),b(O,1,1,()=>{O=null}),fe()),Z[22]?Ce?(Ce.p(Z,de),de[0]&4194304&&d(Ce,1)):(Ce=Wa(Z),Ce.c(),d(Ce,1),Ce.m(v.parentNode,v)):Ce&&(ce(),b(Ce,1,1,()=>{Ce=null}),fe());const Fe={};de[1]&134217728&&(Fe.isLive=Z[58]),de[1]&4096&&(Fe.isHidden=!Z[43]),de[1]&268435456&&(Fe.isPlaying=Z[59]),de[1]&33554432&&(Fe.position=Z[56]),de[1]&536870912&&(Fe.duration=Z[60]),k.$set(Fe);const je={};de[0]&2097152&&(je.supportLink=Z[21]),de[1]&131072&&(je.returnFocus=Z[157]),de[1]&4&&(je.visible=Z[33]),de[1]&512&&(je.playerContainerRef=Z[40]),de[1]&1024&&(je.controlsContainerRef=Z[41]),de[1]&1073741824&&(je.position=Z[61]),!y&&de[1]&2&&(y=!0,je.menuElementRef=Z[32],Ue(()=>y=!1)),T.$set(je),Z[42]?Ve?de[1]&2048&&d(Ve,1):(Ve=Ka(),Ve.c(),d(Ve,1),Ve.m(oe.parentNode,oe)):Ve&&(ce(),b(Ve,1,1,()=>{Ve=null}),fe()),Z[62]?Pe?de[2]&1&&d(Pe,1):(Pe=ja(),Pe.c(),d(Pe,1),Pe.m(Y.parentNode,Y)):Pe&&(ce(),b(Pe,1,1,()=>{Pe=null}),fe()),Z[63]?me?de[2]&2&&d(me,1):(me=Ga(),me.c(),d(me,1),me.m(R.parentNode,R)):me&&(ce(),b(me,1,1,()=>{me=null}),fe())},i(Z){ee||(d(e.$$.fragment,Z),d(Q),d(w),d($),d(X),d(z),d(W),d(B),d(J),d(E),d(O),d(Ce),d(k.$$.fragment,Z),d(P.$$.fragment,Z),d(T.$$.fragment,Z),d(Ve),d(Pe),d(me),ee=!0)},o(Z){b(e.$$.fragment,Z),b(Q),b(w),b($),b(X),b(z),b(W),b(B),b(J),b(E),b(O),b(Ce),b(k.$$.fragment,Z),b(P.$$.fragment,Z),b(T.$$.fragment,Z),b(Ve),b(Pe),b(me),ee=!1},d(Z){Z&&(S(i),S(n),S(o),S(s),S(l),S(r),S(a),S(c),S(f),S(p),S(h),S(v),S(_),S(C),S(M),S(oe),S(Y),S(R)),F(e,Z),Q&&Q.d(Z),w&&w.d(Z),$&&$.d(Z),X&&X.d(Z),z&&z.d(Z),W&&W.d(Z),B&&B.d(Z),J&&J.d(Z),E&&E.d(Z),O&&O.d(Z),Ce&&Ce.d(Z),F(k,Z),F(P,Z),F(T,Z),Ve&&Ve.d(Z),Pe&&Pe.d(Z),me&&me.d(Z)}}}function Mh(t){let e,i,n,o,s=t[51],l,r,a,c,f=Ya(t);return{c(){e=A("div"),i=A("div"),o=D(),f.c(),l=ct(),u(i,"class","video-container v-1o4wf3x"),u(i,"style",n=`transform: rotate(${t[35]}deg) scale(${t[46]})`),V(i,"fast-rotate",!t[1].isSmoothVideoRotate),u(e,"class","video-wrapper v-1o4wf3x"),V(e,"hidden",t[38]!==Ne.Video),V(e,"nocursor",t[45])},m(p,h){I(p,e,h),m(e,i),t[154](i),I(p,o,h),f.m(p,h),I(p,l,h),r=!0,a||(c=[pe(e,"contextmenu",$t(t[108])),pe(e,"mousedown",$t(t[113])),pe(e,"mouseup",$t(t[114])),pe(e,"click",$t(t[116])),pe(e,"dblclick",$t(t[115]))],a=!0)},p(p,h){(!r||h[1]&32784&&n!==(n=`transform: rotate(${p[35]}deg) scale(${p[46]})`))&&u(i,"style",n),(!r||h[0]&2)&&V(i,"fast-rotate",!p[1].isSmoothVideoRotate),(!r||h[1]&128)&&V(e,"hidden",p[38]!==Ne.Video),(!r||h[1]&16384)&&V(e,"nocursor",p[45]),h[1]&1048576&&he(s,s=p[51])?(ce(),b(f,1,1,q),fe(),f=Ya(p),f.c(),d(f,1),f.m(l.parentNode,l)):f.p(p,h)},i(p){r||(d(f),r=!0)},o(p){b(f),r=!1},d(p){p&&(S(e),S(o),S(l)),t[154](null),f.d(p),a=!1,it(c)}}}function Lh(t){let e,i,n,o,s,l,r,a={toggleFullscreen:t[106],hideContextMenu:t[107],showHotKeyHelpers:t[117],showKeyMap:t[118],isAds:t[38]===Ne.Ads,fakePlayButtonHandler:t[47]?t[105]:void 0,$$slots:{default:[Mh]},$$scope:{ctx:t}};return i=new j0({props:a}),t[159](i),{c(){e=A("div"),U(i.$$.fragment),n=D(),o=A("div"),u(o,"class","overlay-container"),u(e,"class","player-wrapper v-1o4wf3x")},m(c,f){I(c,e,f),H(i,e,null),m(e,n),m(e,o),t[160](o),t[161](e),s=!0,l||(r=[pe(Eh,"blur",t[107]),pe(e,"mouseenter",t[109]),pe(e,"mouseleave",t[111]),pe(e,"mousemove",t[112]),pe(e,"click",t[120],!0),pe(e,"focusin",t[110],!0)],l=!0)},p(c,f){const p={};f[1]&128&&(p.isAds=c[38]===Ne.Ads),f[1]&65536&&(p.fakePlayButtonHandler=c[47]?c[105]:void 0),f[0]&1073741823|f[1]&2147418111|f[2]&3|f[6]&1&&(p.$$scope={dirty:f,ctx:c}),i.$set(p)},i(c){s||(d(i.$$.fragment,c),s=!0)},o(c){b(i.$$.fragment,c),s=!1},d(c){c&&S(e),t[159](null),F(i),t[160](null),t[161](null),l=!1,it(r)}}}let Bh=!0;function Bl(t){return t?t.offsetTop+Bl(t.offsetParent):0}function Wu(t){return t?t.offsetLeft+Wu(t.offsetParent):0}function Rh(t,e,i){let n,o,s,l,r,a,c,f,p,h,v,k,_,P,C,T,y,M,oe,Y,R,ee,Q,w,$,X,z,W,B,J,E,O,Ce,ze,Ee,Ve,Pe,me,Z,de,Se,Fe,je,{store:re}=e,{uiConfig:we}=e,{title:Me}=e,{thumbUrl:We}=e,{videoContainer:ie}=e,{interactiveContainer:G}=e,{live:ye}=e,{autoplay:se}=e,{canRewindLive:ve}=e,{showAds:Oe}=e,{adsSlotId:$e=void 0}=e,{adsParams:ot=void 0}=e,{adsPreviewParam:Be=void 0}=e,{duration:ae=void 0}=e,{logoClickable:lt}=e,{logoHidden:_t}=e,{logoTargetUrl:at=""}=e,{showNextPrevButtons:ht=!1}=e,{nextButtonActive:Ct=!1}=e,{prevButtonActive:Le=!1}=e,{endScreenVideoTitle:qt=void 0}=e,{endScreenVideoThumb:ue=void 0}=e,{isOneVideoPlaylist:ft=!1}=e,{supportLink:vt}=e,{outerContainerRef:Ze=void 0}=e,{playerStarted:et=!1}=e,{fullScreenTarget:gt=void 0}=e,{showMiniTimer:kt=!1}=e,{playNextVideo:bi=Ye}=e,{playPrevVideo:_i=Ye}=e,{repeatPlaylist:vi=Ye}=e,{seekToInteractive:qi}=e,{toggleGraph:Ji}=e,{playPrevChapter:oi}=e,{firstStart:li}=e;const ki=re.getLogger().createComponentLog("Root component"),Zt=re.interfaceLanguage$;N(t,Zt,g=>i(51,E=g));const si=re.state.playbackState$;N(t,si,g=>i(151,W=g));const Zi=re.ads.playbackState;N(t,Zi,g=>i(152,B=g));const wi=re.state.positionWithScrubbing$;N(t,wi,g=>i(56,Ve=g));const yi=re.state.duration$;N(t,yi,g=>i(60,de=g));const ri=re.playerPhase;N(t,ri,g=>i(38,Q=g));const Ci=re.ui.isFullscreen;N(t,Ci,g=>i(141,k=g));const ai=re.ui.controlsVisible;N(t,ai,g=>i(36,M=g));const Ti=re.ui.settingsMenuVisible;N(t,Ti,g=>i(139,a=g));const Pi=re.ui.scrubbingInProgress;N(t,Pi,g=>i(143,T=g));const wt=re.ui.contextMenu.visible$;N(t,wt,g=>i(33,n=g));const Bt=re.ui.debugPanelVisible;N(t,Bt,g=>i(63,je=g));const Wt=re.state.isLoaderVisible;N(t,Wt,g=>i(153,J=g));const ui=re.state.isEnded$;N(t,ui,g=>i(140,f=g));const Vt=re.state.chromecastConnected$;N(t,Vt,g=>i(39,X=g));const ci=re.state.chromecastDeviceName$;N(t,ci,g=>i(53,Ce=g));const Kt=re.ads.postrollPassed;N(t,Kt,g=>i(146,R=g));const ei=re.state.isLive$;N(t,ei,g=>i(58,me=g));const Tt=re.state.isPlaying$;N(t,Tt,g=>i(59,Z=g));const Pt=re.state.crashed$;N(t,Pt,g=>i(37,Y=g));const Rt=re.webApi.pictureInPictureApi,jt=re.state.currentSubtitle$;N(t,jt,g=>i(54,ze=g));const fi=re.state.currentSubtitleCaptions$;N(t,fi,g=>i(55,Ee=g));const nn=re.state.duration$;N(t,nn,g=>i(57,Pe=g));const Wi=re.state.graphIsOpened$;N(t,Wi,g=>i(147,ee=g));const Gt=re.ui.playerSize;N(t,Gt,g=>i(34,h=g));const ti=re.ui.is3DVideo;N(t,ti,g=>i(49,p=g));const Si=re.ui.icon3DVideoVisible;N(t,Si,g=>i(52,O=g));const Di=re.ui.rotateAlpha;N(t,Di,g=>i(35,C=g));const Nt=re.state.isInteractive,bt=re.state.isInteractiveTime$;N(t,bt,g=>i(144,y=g));const Ii=re.state.isInteractiveExpectation$;N(t,Ii,g=>i(150,z=g));const Ki=re.state.hasInteractiveBranches,ii=re.ui.touched;N(t,ii,g=>i(148,w=g));const ji=re.ui.modals.hotKeyMap.data;N(t,ji,g=>i(168,c=g));const di=re.ui.modals.hotKeyMap.show;N(t,di,g=>i(62,Fe=g));const xi=re.ui.overlayContainer$,Gi=re.ui.controls.interactiveTimeIndicator;N(t,Gi,g=>i(169,v=g));const $i=re.state.showInteractiveTimeIndicator,zi=re.ui.contextMenu.position$;N(t,zi,g=>i(61,Se=g));const Ai=re.actions.internal.closeSettingsMenu,{fakeIsPlaying$:Dt}=Ao();N(t,Dt,g=>i(142,P=g));let Yt,mi,Oi,Hi,pi;ji.set(Df());let Ei,Vi;const He=Ie(!1);N(t,He,g=>i(50,_=g));let Fi;const Mt=Ie(!1);N(t,Mt,g=>i(149,$=g));const Ae=Ie(),Mi=Ie(!1);N(t,Mi,g=>i(145,oe=g));let Yi=!1,Ui=!1,Li,en,Bi,Qi,zt,Xi,ni=!1,ne,tt=!1;const{toggle:Ot}=Dt;let Qt=!1,Ri=null,Ni;Rt?.setContext(k1());const fn=()=>{se&&!Nt&&St(we.controls.hideTimeout)};re.setUiCallbacks({onStarted:fn});const dn=()=>{window.clearTimeout(Oi),Mt.set(!1)},sn=()=>{window.clearTimeout(Hi),Ae.set(null)},St=g=>{dn(),Mt.set(!0),Oi=window.setTimeout(()=>Mt.set(!1),g);const le=g-100;Fi=window.setTimeout(()=>{_&&He.set(!1)},le>0?le:g)},Pn=(g,le)=>{sn(),Ae.set(le),Hi=window.setTimeout(()=>Ae.set(null),g)},Sn=ti.subscribe(g=>{Si.set(g),g&&(window.clearTimeout(pi),pi=window.setTimeout(()=>Si.set(!1),we.controls.hide360IconTimeout))}),mn=async()=>{const g=Ho();if(g){St(we.controls.hideTimeoutFullscreen);try{await Rt?.remove()}catch(le){ki({message:String(le)})}}Ci.set(g),re.getAdmanWrapper().setFullscreen(g),k?re.callbacks?.onFullscreenEnter?.():re.callbacks?.onFullscreenExit?.()},gn=g=>{const le=g;Gt.set({width:le.target.width,height:le.target.height})};ln(()=>(j1(mn),al(Rt)&&(Rt?.assignPlayerContainer(Yt),Rt?.registryExternalEventHandlers({resize:gn})),G&&ie.parentElement?.insertBefore(G,ie.nextSibling),()=>{window.clearTimeout(Oi),window.clearTimeout(Fi),window.clearTimeout(Hi),window.clearTimeout(pi),Sn(),Rt?.dispose(),G1(mn)}));const rn=async()=>{if(Ho())await K1(document),ki({message:"exit fullscreen"});else{ki({message:"request fullscreen"});const g=Ze??Yt,le=g.getRootNode(),ke=le instanceof ShadowRoot?le.host:le,Re=gt instanceof HTMLElement&>.contains(ke),Qe=we.allowChangingFullscreenTarget&>&&Re?gt:g;await W1(Qe)}},on=()=>{Ai(),wt.set(!1)},te=g=>{wt.set(!0),zi.set({left:g.clientX,top:g.clientY})};function dt(){Mi.set(!0),Nt||St(we.controls.hideTimeoutCursor)}function bn(){Nt||(He.set(!0),St(we.controls.hideTimeoutCursor))}function In(){Mi.set(!1),i(131,Ui=!1),i(130,Yi=!1),Qt=!1,re.actions.internal.releaseCamera()}function An(g){if(v&&$i){const le=g.currentTarget,ke=Bl(le),Re=Wu(le),Qe=g.pageX-Re,Ht=g.pageY-ke,{left:Xt,bottom:It,right:un}=v,_n=un-Xt;return Qe>=Xt-_n&&Ht<=It+_n}}function qn(g){if(Yt){const le=Bl(g.currentTarget),ke=h.height,Re=g.pageY-le;if(An(g)){i(131,Ui=!1);return}Re<rs?i(131,Ui=!0):Re>ke-rs?i(130,Yi=!0):(i(131,Ui=!1),a||i(130,Yi=!1))}}function Zn(g){qn(g),en||St(we.controls.hideTimeoutCursor),p&&Qt&&Ri&&re.actions.internal.moveCameraFocusPX(Ri.clientX-g.clientX,Ri.clientY-g.clientY,g.timeStamp-Ri.timeStamp),Ri=g}const Wn=g=>{g.button===0&&(Qt=!0,re.actions.internal.holdCamera()),St(we.controls.hideTimeoutCursor)},Kn=g=>{g.button===0&&(Ri=g,Qt=!1,re.actions.internal.releaseCamera()),St(we.controls.hideTimeoutCursor)},jn=()=>{ki({message:"double click on video"}),rn(),St(we.controls.hideTimeoutCursor)},eo=()=>{if(n||a){on();return}if(!(f&&!Ki)){if(tt)return Ot();if(Ni?.focus(),!et){li(),St(we.controls.hideTimeoutCursor);return}re.actions.internal.togglePlay(),St(we.controls.hideTimeoutCursor)}},x=g=>{on(),ii.set(!0),St(we.controls.hideTimeout),g&&Pn(we.controls.hideHotKeyHelpers,g)},an=()=>{on(),re.callbacks?.onOpenHotKeyMap?re.callbacks?.onOpenHotKeyMap(c):di.update(g=>!g)},to=()=>{if(n||a){on();return}},io=()=>{ii.set(!0)},Gn=re.ui.contextMenu.openedByBtnKeyboard$;N(t,Gn,g=>i(138,r=g));let fo=re.ui.contextMenu.btnRef$;N(t,fo,g=>i(137,l=g));let En;const Yn=re.ui.contextMenu.openedByHotKey$;N(t,Yn,g=>i(136,s=g));const mo=re.ui.contextMenu.lastActiveElem$;N(t,mo,g=>i(135,o=g));function po(g){_e[g?"unshift":"push"](()=>{ie=g,i(0,ie)})}const Eo=()=>Ni?.focus();function Bn(g){mi=g,i(41,mi)}const no=()=>Ni?.focus();function oo(g){En=g,i(32,En)}function ho(g){_e[g?"unshift":"push"](()=>{Ni=g,i(48,Ni)})}function lo(g){_e[g?"unshift":"push"](()=>{Vi=g,i(30,Vi)})}function st(g){_e[g?"unshift":"push"](()=>{Yt=g,i(40,Yt)})}return t.$$set=g=>{"store"in g&&i(125,re=g.store),"uiConfig"in g&&i(1,we=g.uiConfig),"title"in g&&i(2,Me=g.title),"thumbUrl"in g&&i(3,We=g.thumbUrl),"videoContainer"in g&&i(0,ie=g.videoContainer),"interactiveContainer"in g&&i(126,G=g.interactiveContainer),"live"in g&&i(4,ye=g.live),"autoplay"in g&&i(5,se=g.autoplay),"canRewindLive"in g&&i(6,ve=g.canRewindLive),"showAds"in g&&i(7,Oe=g.showAds),"adsSlotId"in g&&i(8,$e=g.adsSlotId),"adsParams"in g&&i(9,ot=g.adsParams),"adsPreviewParam"in g&&i(10,Be=g.adsPreviewParam),"duration"in g&&i(11,ae=g.duration),"logoClickable"in g&&i(12,lt=g.logoClickable),"logoHidden"in g&&i(13,_t=g.logoHidden),"logoTargetUrl"in g&&i(14,at=g.logoTargetUrl),"showNextPrevButtons"in g&&i(15,ht=g.showNextPrevButtons),"nextButtonActive"in g&&i(16,Ct=g.nextButtonActive),"prevButtonActive"in g&&i(17,Le=g.prevButtonActive),"endScreenVideoTitle"in g&&i(18,qt=g.endScreenVideoTitle),"endScreenVideoThumb"in g&&i(19,ue=g.endScreenVideoThumb),"isOneVideoPlaylist"in g&&i(20,ft=g.isOneVideoPlaylist),"supportLink"in g&&i(21,vt=g.supportLink),"outerContainerRef"in g&&i(127,Ze=g.outerContainerRef),"playerStarted"in g&&i(22,et=g.playerStarted),"fullScreenTarget"in g&&i(128,gt=g.fullScreenTarget),"showMiniTimer"in g&&i(129,kt=g.showMiniTimer),"playNextVideo"in g&&i(23,bi=g.playNextVideo),"playPrevVideo"in g&&i(24,_i=g.playPrevVideo),"repeatPlaylist"in g&&i(25,vi=g.repeatPlaylist),"seekToInteractive"in g&&i(26,qi=g.seekToInteractive),"toggleGraph"in g&&i(27,Ji=g.toggleGraph),"playPrevChapter"in g&&i(28,oi=g.playPrevChapter),"firstStart"in g&&i(29,li=g.firstStart)},t.$$.update=()=>{if(t.$$.dirty[1]&192|t.$$.dirty[4]&805306368&&i(42,Ei=(Q===Ne.Video&&J||Q===Ne.Ads&&B===xt.INACTIVE)&&!Y),t.$$.dirty[0]&1073741824&&xi.set(Vi),t.$$.dirty[4]&134217728&&i(132,Li=W!==Ft.PLAYING),t.$$.dirty[4]&68190656&&i(133,en=y&&!a&&!(Yi||Ui)&&!(Li&&!z)),t.$$.dirty[1]&448|t.$$.dirty[4]&34112256&&ai.set((Li||a||T||X||$)&&!en&&(Q===Ne.Video||Q===Ne.Ads)&&!Y),t.$$.dirty[0]&2|t.$$.dirty[1]&224|t.$$.dirty[4]&16777248&&i(43,Bi=we.features.thumbTimer&&kt&&Q===Ne.Video&&!M&&!Y&&!Nt&&(we.hideThumbTimerAfterTouch&&!w||!we.hideThumbTimerAfterTouch)),t.$$.dirty[1]&128|t.$$.dirty[4]&8519680&&i(44,Qi=Q===Ne.Video&&!ee&&k),t.$$.dirty[0]&128|t.$$.dirty[1]&64|t.$$.dirty[4]&4259840&&i(31,zt=(Oe&&R||!Oe)&&f&&!Y),t.$$.dirty[1]&33|t.$$.dirty[4]&3145728&&i(45,Xi=oe&&!(M||zt)&&!y),t.$$.dirty[0]&2|t.$$.dirty[4]&1573888&&(!T&&ni&&!y&&St(we.controls.hideTimeoutCursor),i(134,ni=T)),t.$$.dirty[0]&1|t.$$.dirty[1]&24&&i(46,ne=ie&&C%180?h.height/h.width:1),t.$$.dirty[4]&262144&&i(47,tt=P!==null),t.$$.dirty[1]&6|t.$$.dirty[4]&16384&&ul(En,n,r),t.$$.dirty[1]&4|t.$$.dirty[4]&8192){const g=l;g&&Zl(g,n,Gn)}if(t.$$.dirty[1]&6|t.$$.dirty[4]&4096&&ul(En,n,s),t.$$.dirty[1]&4|t.$$.dirty[4]&2048){const g=o;g&&f0(g,n,Yn)}},[ie,we,Me,We,ye,se,ve,Oe,$e,ot,Be,ae,lt,_t,at,ht,Ct,Le,qt,ue,ft,vt,et,bi,_i,vi,qi,Ji,oi,li,Vi,zt,En,n,h,C,M,Y,Q,X,Yt,mi,Ei,Bi,Qi,Xi,ne,tt,Ni,p,_,E,O,Ce,ze,Ee,Ve,Pe,me,Z,de,Se,Fe,je,Zt,si,Zi,wi,yi,ri,Ci,ai,Ti,Pi,wt,Bt,Wt,ui,Vt,ci,Kt,ei,Tt,Pt,jt,fi,nn,Wi,Gt,ti,Si,Di,Nt,bt,Ii,ii,ji,di,Gi,zi,Dt,He,Mt,Ae,Mi,Ot,rn,on,te,dt,bn,In,Zn,Wn,Kn,jn,eo,x,an,to,io,Gn,fo,Yn,mo,re,G,Ze,gt,kt,Yi,Ui,Li,en,ni,o,s,l,r,a,f,k,P,T,y,oe,R,ee,w,$,z,W,B,J,po,Eo,Bn,no,oo,ho,lo,st]}class Nh extends be{constructor(e){super(),ge(this,e,Rh,Lh,he,{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,outerContainerRef:127,playerStarted:22,fullScreenTarget:128,showMiniTimer:129,playNextVideo:23,playPrevVideo:24,repeatPlaylist:25,seekToInteractive:26,toggleGraph:27,playPrevChapter:28,firstStart:29},Vh,[-1,-1,-1,-1,-1,-1,-1])}}const Dh=t=>{if(!sl(!0))return!1;const e=t.device===Bc.iPad||window?.screen.width>700,i=Rc();return!e||e&&!!i&&i<16};function zh(t){Ke(t,"v-nhq2ld",".double-click-area.v-nhq2ld{position:absolute;top:0;height:100%;width:25%;overflow:hidden}.double-click-area.left.v-nhq2ld{left:0}.double-click-area.right.v-nhq2ld{right:0}.semicircle.v-nhq2ld{position:absolute;top:0;width:100%;height:100%;background-color:rgba(0, 0, 0, 0.5)}.semicircle.left.v-nhq2ld{left:0;border-top-right-radius:50%;border-bottom-right-radius:50%}.semicircle.right.v-nhq2ld{right:0;border-top-left-radius:50%;border-bottom-left-radius:50%}.info.v-nhq2ld{position:absolute;top:50%;left:50%;transform:translate(-50%, -50%);display:flex;flex-direction:column;align-items:center;justify-content:center}.triangles-wrapper.v-nhq2ld{position:relative;display:flex;margin-bottom:10px;justify-content:center}.triangle.v-nhq2ld{width:0;height:0;border-top:6px solid transparent;border-bottom:6px solid transparent;animation:v-nhq2ld-blink 500ms infinite;opacity:0}.triangle.right.v-nhq2ld:nth-child(1),.triangle.left.v-nhq2ld:nth-child(3){animation-delay:0ms}.triangle.right.v-nhq2ld:nth-child(2),.triangle.left.v-nhq2ld:nth-child(2){animation-delay:100ms}.triangle.right.v-nhq2ld:nth-child(3),.triangle.left.v-nhq2ld:nth-child(1){animation-delay:200ms}@keyframes v-nhq2ld-blink{0%{opacity:0}50%{opacity:1}100%{opacity:0}}.triangle.left.v-nhq2ld{border-right:8px solid var(--white)}.triangle.right.v-nhq2ld{border-left:8px solid var(--white)}.triangle.v-nhq2ld:not(:last-child){margin-right:5px}.step-caption.v-nhq2ld{margin:0;text-align:center;font-size:12px;line-height:1;color:var(--white)}")}function Qa(t){let e,i,n,o,s,l,r,a,c,f,p,h,v,k,_,P=j("doubletap_seek_step",{seconds:t[1].toFixed(0)})+"",C;return{c(){e=A("div"),n=D(),o=A("div"),s=A("div"),l=A("div"),a=D(),c=A("div"),p=D(),h=A("div"),k=D(),_=A("p"),C=De(P),u(e,"class",i="semicircle "+t[0]+" v-nhq2ld"),u(l,"class",r="triangle "+t[0]+" v-nhq2ld"),u(c,"class",f="triangle "+t[0]+" v-nhq2ld"),u(h,"class",v="triangle "+t[0]+" v-nhq2ld"),u(s,"class","triangles-wrapper v-nhq2ld"),u(_,"class","step-caption v-nhq2ld"),u(o,"class","info v-nhq2ld")},m(T,y){I(T,e,y),I(T,n,y),I(T,o,y),m(o,s),m(s,l),m(s,a),m(s,c),m(s,p),m(s,h),m(o,k),m(o,_),m(_,C)},p(T,y){y&1&&i!==(i="semicircle "+T[0]+" v-nhq2ld")&&u(e,"class",i),y&1&&r!==(r="triangle "+T[0]+" v-nhq2ld")&&u(l,"class",r),y&1&&f!==(f="triangle "+T[0]+" v-nhq2ld")&&u(c,"class",f),y&1&&v!==(v="triangle "+T[0]+" v-nhq2ld")&&u(h,"class",v),y&2&&P!==(P=j("doubletap_seek_step",{seconds:T[1].toFixed(0)})+"")&&xe(C,P)},d(T){T&&(S(e),S(n),S(o))}}}function Oh(t){let e,i,n,o,s=t[2]&&Qa(t);return{c(){e=A("div"),s&&s.c(),u(e,"class",i="double-click-area "+t[0]+" v-nhq2ld")},m(l,r){I(l,e,r),s&&s.m(e,null),n||(o=pe(e,"click",nt(t[3]())),n=!0)},p(l,[r]){l[2]?s?s.p(l,r):(s=Qa(l),s.c(),s.m(e,null)):s&&(s.d(1),s=null),r&1&&i!==(i="double-click-area "+l[0]+" v-nhq2ld")&&u(e,"class",i)},i:q,o:q,d(l){l&&S(e),s&&s.d(),n=!1,o()}}}function Hh(t,e,i){let{side:n}=e,{seekStep:o}=e,{handleSingleFirstClick:s}=e,{handleSecondClick:l}=e,r=!1,a=0,c=0;const f=()=>{let h=0;return()=>{h+=1,h===1?a=window.setTimeout(()=>{s(),h=0},300):(window.clearTimeout(a),h=0,l(),i(2,r=!0),c=window.setTimeout(()=>{i(2,r=!1)},500))}};return qo(()=>{window.clearTimeout(a),window.clearTimeout(c)}),t.$$set=p=>{"side"in p&&i(0,n=p.side),"seekStep"in p&&i(1,o=p.seekStep),"handleSingleFirstClick"in p&&i(4,s=p.handleSingleFirstClick),"handleSecondClick"in p&&i(5,l=p.handleSecondClick)},[n,o,r,f,s,l]}class Ku extends be{constructor(e){super(),ge(this,e,Hh,Oh,he,{side:0,seekStep:1,handleSingleFirstClick:4,handleSecondClick:5},zh)}}function Fh(t,e,i){let{playNextVideo:n}=e;return ln(()=>{n()}),t.$$set=o=>{"playNextVideo"in o&&i(0,n=o.playNextVideo)},[n]}class Uh extends be{constructor(e){super(),ge(this,e,Fh,null,he,{playNextVideo:0})}}const{window:qh}=v1;function Zh(t){Ke(t,"v-1jy89ut",".player-wrapper.v-1jy89ut{position:absolute;width:100%;height:100%}.player-wrapper.v-1jy89ut .player-media{position:absolute;left:0;top:0;width:100%;height:100%;background:var(--black);transition:transform 0.2s ease-in-out}.spherical-video-icon.v-1jy89ut{display:inline-block;position:absolute;top:calc(50% - 23px);left:calc(50% - 38px)}.video-wrapper.v-1jy89ut,.video-container.v-1jy89ut,.ads-container.v-1jy89ut{position:absolute;width:100%;height:100%;left:0;top:0}.video-wrapper.v-1jy89ut{z-index:var(--video-container-z-index);background:var(--black)}.video-container.v-1jy89ut{z-index:var(--video-container-z-index);transition:var(--rotate-transition-duration) ease all}.video-container.fast-rotate.v-1jy89ut{transition:none}.ads-container.v-1jy89ut{background:var(--black)}")}function Xa(t){let e,i,n,o;e=new Ku({props:{side:"left",seekStep:t[1].controls.seekStepMobile/1e3,handleSingleFirstClick:t[100],handleSecondClick:t[130]}});let s=!t[48]&&Ja(t);return{c(){U(e.$$.fragment),i=D(),s&&s.c(),n=ct()},m(l,r){H(e,l,r),I(l,i,r),s&&s.m(l,r),I(l,n,r),o=!0},p(l,r){const a={};r[0]&2&&(a.seekStep=l[1].controls.seekStepMobile/1e3),e.$set(a),l[48]?s&&(ce(),b(s,1,1,()=>{s=null}),fe()):s?(s.p(l,r),r[1]&131072&&d(s,1)):(s=Ja(l),s.c(),d(s,1),s.m(n.parentNode,n))},i(l){o||(d(e.$$.fragment,l),d(s),o=!0)},o(l){b(e.$$.fragment,l),b(s),o=!1},d(l){l&&(S(i),S(n)),F(e,l),s&&s.d(l)}}}function Ja(t){let e,i;return e=new Ku({props:{side:"right",seekStep:t[1].controls.seekStepMobile/1e3,handleSingleFirstClick:t[100],handleSecondClick:t[131]}}),{c(){U(e.$$.fragment)},m(n,o){H(e,n,o),i=!0},p(n,o){const s={};o[0]&2&&(s.seekStep=n[1].controls.seekStepMobile/1e3),e.$set(s)},i(n){i||(d(e.$$.fragment,n),i=!0)},o(n){b(e.$$.fragment,n),i=!1},d(n){F(e,n)}}}function xa(t){let e,i;return e=new qu({props:{thumbUrl:t[2],startTime:t[3]?.startTime}}),{c(){U(e.$$.fragment)},m(n,o){H(e,n,o),i=!0},p(n,o){const s={};o[0]&4&&(s.thumbUrl=n[2]),o[0]&8&&(s.startTime=n[3]?.startTime),e.$set(s)},i(n){i||(d(e.$$.fragment,n),i=!0)},o(n){b(e.$$.fragment,n),i=!1},d(n){F(e,n)}}}function $a(t){let e,i;return e=new Zu({}),{c(){U(e.$$.fragment)},m(n,o){H(e,n,o),i=!0},i(n){i||(d(e.$$.fragment,n),i=!0)},o(n){b(e.$$.fragment,n),i=!1},d(n){F(e,n)}}}function e1(t){let e,i,n;return i=new Y1({props:{adsSlotId:t[7],adsParams:t[8],adsPreviewParam:t[9],duration:t[10]}}),{c(){e=A("div"),U(i.$$.fragment),u(e,"class","ads-container v-1jy89ut"),V(e,"hidden",t[34]!==Ne.Ads)},m(o,s){I(o,e,s),H(i,e,null),n=!0},p(o,s){const l={};s[0]&128&&(l.adsSlotId=o[7]),s[0]&256&&(l.adsParams=o[8]),s[0]&512&&(l.adsPreviewParam=o[9]),s[0]&1024&&(l.duration=o[10]),i.$set(l),(!n||s[1]&8)&&V(e,"hidden",o[34]!==Ne.Ads)},i(o){n||(d(i.$$.fragment,o),n=!0)},o(o){b(i.$$.fragment,o),n=!1},d(o){o&&S(e),F(i)}}}function t1(t){let e,i;return e=new Uh({props:{playNextVideo:t[22]}}),{c(){U(e.$$.fragment)},m(n,o){H(e,n,o),i=!0},p(n,o){const s={};o[0]&4194304&&(s.playNextVideo=n[22]),e.$set(s)},i(n){i||(d(e.$$.fragment,n),i=!0)},o(n){b(e.$$.fragment,n),i=!1},d(n){F(e,n)}}}function i1(t){let e,i;return e=new zu({}),{c(){U(e.$$.fragment)},m(n,o){H(e,n,o),i=!0},i(n){i||(d(e.$$.fragment,n),i=!0)},o(n){b(e.$$.fragment,n),i=!1},d(n){F(e,n)}}}function n1(t){let e,i,n;return i=new F1({props:{ariaLabel:j("video360")}}),{c(){e=A("div"),U(i.$$.fragment),u(e,"class","spherical-video-icon v-1jy89ut")},m(o,s){I(o,e,s),H(i,e,null),n=!0},p:q,i(o){n||(d(i.$$.fragment,o),n=!0)},o(o){b(i.$$.fragment,o),n=!1},d(o){o&&S(e),F(i)}}}function o1(t){let e,i;return e=new Hu({props:{thumbUrl:t[2],chromecastDeviceName:t[51]}}),{c(){U(e.$$.fragment)},m(n,o){H(e,n,o),i=!0},p(n,o){const s={};o[0]&4&&(s.thumbUrl=n[2]),o[1]&1048576&&(s.chromecastDeviceName=n[51]),e.$set(s)},i(n){i||(d(e.$$.fragment,n),i=!0)},o(n){b(e.$$.fragment,n),i=!1},d(n){F(e,n)}}}function l1(t){let e,i;return e=new Ou({props:{shifted:t[30],captions:t[53],position:t[44],playerSize:t[31],isMobile:!0}}),{c(){U(e.$$.fragment)},m(n,o){H(e,n,o),i=!0},p(n,o){const s={};o[0]&1073741824&&(s.shifted=n[30]),o[1]&4194304&&(s.captions=n[53]),o[1]&8192&&(s.position=n[44]),o[1]&1&&(s.playerSize=n[31]),e.$set(s)},i(n){i||(d(e.$$.fragment,n),i=!0)},o(n){b(e.$$.fragment,n),i=!1},d(n){F(e,n)}}}function s1(t){let e,i,n,o,s;return i=new Fu({}),{c(){e=A("div"),U(i.$$.fragment)},m(l,r){I(l,e,r),H(i,e,null),n=!0,o||(s=pe(e,"click",nt(t[101])),o=!0)},p:q,i(l){n||(d(i.$$.fragment,l),n=!0)},o(l){b(i.$$.fragment,l),n=!1},d(l){l&&S(e),F(i),o=!1,s()}}}function r1(t){let e,i,n;function o(l){t[132](l)}let s={bottomHidden:t[34]===Ne.Thumb||t[34]===Ne.WaitingLive||t[34]===Ne.WaitingRecord||t[34]===Ne.Ads,showControls:t[30],bottomNoSmooth:t[45],isAds:t[34]===Ne.Ads,canRewindLive:t[5]&&t[54]!==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[98],seekToInteractive:t[25],toggleGraph:t[26],playPrevChapter:t[27],onDisabledPlayPrevChapterClick:t[104],onDisabledSeekToInteractiveClick:t[105]};return t[37]!==void 0&&(s.controlsElementRef=t[37]),e=new Nu({props:s}),_e.push(()=>qe(e,"controlsElementRef",o)),{c(){U(e.$$.fragment)},m(l,r){H(e,l,r),n=!0},p(l,r){const a={};r[1]&8&&(a.bottomHidden=l[34]===Ne.Thumb||l[34]===Ne.WaitingLive||l[34]===Ne.WaitingRecord||l[34]===Ne.Ads),r[0]&1073741824&&(a.showControls=l[30]),r[1]&16384&&(a.bottomNoSmooth=l[45]),r[1]&8&&(a.isAds=l[34]===Ne.Ads),r[0]&32|r[1]&8388608&&(a.canRewindLive=l[5]&&l[54]!==0),r[0]&2048&&(a.logoClickable=l[11]),r[0]&4096&&(a.logoHidden=l[12]),r[0]&8192&&(a.logoTargetUrl=l[13]),r[0]&16384&&(a.showNextPrevButtons=l[14]),r[0]&32768&&(a.nextButtonActive=l[15]),r[0]&65536&&(a.prevButtonActive=l[16]),r[0]&524288&&(a.isOneVideoPlaylist=l[19]),r[0]&1048576&&(a.supportLink=l[20]),r[1]&256&&(a.customFullscreenSupported=l[39]),r[0]&4194304&&(a.playNextVideo=l[22]),r[0]&8388608&&(a.playPrevVideo=l[23]),r[0]&16777216&&(a.repeatPlaylist=l[24]),r[0]&33554432&&(a.seekToInteractive=l[25]),r[0]&67108864&&(a.toggleGraph=l[26]),r[0]&134217728&&(a.playPrevChapter=l[27]),!i&&r[1]&64&&(i=!0,a.controlsElementRef=l[37],Ue(()=>i=!1)),e.$set(a)},i(l){n||(d(e.$$.fragment,l),n=!0)},o(l){b(e.$$.fragment,l),n=!1},d(l){F(e,l)}}}function a1(t){let e,i;return e=new su({}),{c(){U(e.$$.fragment)},m(n,o){H(e,n,o),i=!0},i(n){i||(d(e.$$.fragment,n),i=!0)},o(n){b(e.$$.fragment,n),i=!1},d(n){F(e,n)}}}function u1(t){let e,i;return e=new tu({}),{c(){U(e.$$.fragment)},m(n,o){H(e,n,o),i=!0},i(n){i||(d(e.$$.fragment,n),i=!0)},o(n){b(e.$$.fragment,n),i=!1},d(n){F(e,n)}}}function c1(t){let e,i,n=t[5]&&t[78]&&!t[47].has(rt.TIMELINE),o,s,l,r,a,c,f,p,h,v,k,_,P,C,T,y;e=new Uu({props:{hidden:t[34]!==Ne.Thumb||t[33]||t[89]&&t[4],thumbUrl:t[2],startVideo:t[28]}});let M=n&&Xa(t),oe=t[34]===Ne.WaitingLive&&xa(t),Y=t[34]===Ne.WaitingRecord&&$a(),R=t[6]&&t[21]&&e1(t),ee=t[41]&&t[17]&&t[18]&&t1(t),Q=t[49]&&i1(),w=t[50]&&n1(),$=t[35]&&o1(t),X=t[52].value!=="off"&&l1(t),z=t[33]&&s1(t),W=t[21]&&r1(t);_=new X1({props:{isLive:t[55],isHidden:!t[40],isPlaying:t[56],position:t[44],duration:t[43]}});let B=t[38]&&a1(),J=t[57]&&u1();return{c(){U(e.$$.fragment),i=D(),M&&M.c(),o=D(),oe&&oe.c(),s=D(),Y&&Y.c(),l=D(),R&&R.c(),r=D(),ee&&ee.c(),a=D(),Q&&Q.c(),c=D(),w&&w.c(),f=D(),$&&$.c(),p=D(),X&&X.c(),h=D(),z&&z.c(),v=D(),W&&W.c(),k=D(),U(_.$$.fragment),P=D(),B&&B.c(),C=D(),J&&J.c(),T=ct()},m(E,O){H(e,E,O),I(E,i,O),M&&M.m(E,O),I(E,o,O),oe&&oe.m(E,O),I(E,s,O),Y&&Y.m(E,O),I(E,l,O),R&&R.m(E,O),I(E,r,O),ee&&ee.m(E,O),I(E,a,O),Q&&Q.m(E,O),I(E,c,O),w&&w.m(E,O),I(E,f,O),$&&$.m(E,O),I(E,p,O),X&&X.m(E,O),I(E,h,O),z&&z.m(E,O),I(E,v,O),W&&W.m(E,O),I(E,k,O),H(_,E,O),I(E,P,O),B&&B.m(E,O),I(E,C,O),J&&J.m(E,O),I(E,T,O),y=!0},p(E,O){const Ce={};O[0]&16|O[1]&12&&(Ce.hidden=E[34]!==Ne.Thumb||E[33]||E[89]&&E[4]),O[0]&4&&(Ce.thumbUrl=E[2]),O[0]&268435456&&(Ce.startVideo=E[28]),e.$set(Ce),O[0]&32|O[1]&65536&&(n=E[5]&&E[78]&&!E[47].has(rt.TIMELINE)),n?M?(M.p(E,O),O[0]&32|O[1]&65536&&d(M,1)):(M=Xa(E),M.c(),d(M,1),M.m(o.parentNode,o)):M&&(ce(),b(M,1,1,()=>{M=null}),fe()),E[34]===Ne.WaitingLive?oe?(oe.p(E,O),O[1]&8&&d(oe,1)):(oe=xa(E),oe.c(),d(oe,1),oe.m(s.parentNode,s)):oe&&(ce(),b(oe,1,1,()=>{oe=null}),fe()),E[34]===Ne.WaitingRecord?Y?O[1]&8&&d(Y,1):(Y=$a(),Y.c(),d(Y,1),Y.m(l.parentNode,l)):Y&&(ce(),b(Y,1,1,()=>{Y=null}),fe()),E[6]&&E[21]?R?(R.p(E,O),O[0]&2097216&&d(R,1)):(R=e1(E),R.c(),d(R,1),R.m(r.parentNode,r)):R&&(ce(),b(R,1,1,()=>{R=null}),fe()),E[41]&&E[17]&&E[18]?ee?(ee.p(E,O),O[0]&393216|O[1]&1024&&d(ee,1)):(ee=t1(E),ee.c(),d(ee,1),ee.m(a.parentNode,a)):ee&&(ce(),b(ee,1,1,()=>{ee=null}),fe()),E[49]?Q?O[1]&262144&&d(Q,1):(Q=i1(),Q.c(),d(Q,1),Q.m(c.parentNode,c)):Q&&(ce(),b(Q,1,1,()=>{Q=null}),fe()),E[50]?w?(w.p(E,O),O[1]&524288&&d(w,1)):(w=n1(),w.c(),d(w,1),w.m(f.parentNode,f)):w&&(ce(),b(w,1,1,()=>{w=null}),fe()),E[35]?$?($.p(E,O),O[1]&16&&d($,1)):($=o1(E),$.c(),d($,1),$.m(p.parentNode,p)):$&&(ce(),b($,1,1,()=>{$=null}),fe()),E[52].value!=="off"?X?(X.p(E,O),O[1]&2097152&&d(X,1)):(X=l1(E),X.c(),d(X,1),X.m(h.parentNode,h)):X&&(ce(),b(X,1,1,()=>{X=null}),fe()),E[33]?z?(z.p(E,O),O[1]&4&&d(z,1)):(z=s1(E),z.c(),d(z,1),z.m(v.parentNode,v)):z&&(ce(),b(z,1,1,()=>{z=null}),fe()),E[21]?W?(W.p(E,O),O[0]&2097152&&d(W,1)):(W=r1(E),W.c(),d(W,1),W.m(k.parentNode,k)):W&&(ce(),b(W,1,1,()=>{W=null}),fe());const ze={};O[1]&16777216&&(ze.isLive=E[55]),O[1]&512&&(ze.isHidden=!E[40]),O[1]&33554432&&(ze.isPlaying=E[56]),O[1]&8192&&(ze.position=E[44]),O[1]&4096&&(ze.duration=E[43]),_.$set(ze),E[38]?B?O[1]&128&&d(B,1):(B=a1(),B.c(),d(B,1),B.m(C.parentNode,C)):B&&(ce(),b(B,1,1,()=>{B=null}),fe()),E[57]?J?O[1]&67108864&&d(J,1):(J=u1(),J.c(),d(J,1),J.m(T.parentNode,T)):J&&(ce(),b(J,1,1,()=>{J=null}),fe())},i(E){y||(d(e.$$.fragment,E),d(M),d(oe),d(Y),d(R),d(ee),d(Q),d(w),d($),d(X),d(z),d(W),d(_.$$.fragment,E),d(B),d(J),y=!0)},o(E){b(e.$$.fragment,E),b(M),b(oe),b(Y),b(R),b(ee),b(Q),b(w),b($),b(X),b(z),b(W),b(_.$$.fragment,E),b(B),b(J),y=!1},d(E){E&&(S(i),S(o),S(s),S(l),S(r),S(a),S(c),S(f),S(p),S(h),S(v),S(k),S(P),S(C),S(T)),F(e,E),M&&M.d(E),oe&&oe.d(E),Y&&Y.d(E),R&&R.d(E),ee&&ee.d(E),Q&&Q.d(E),w&&w.d(E),$&&$.d(E),X&&X.d(E),z&&z.d(E),W&&W.d(E),F(_,E),B&&B.d(E),J&&J.d(E)}}}function Wh(t){let e,i,n,o,s,l=t[46],r,a,c,f,p,h=c1(t);return{c(){e=A("div"),i=A("div"),n=A("div"),s=D(),h.c(),r=D(),a=A("div"),u(n,"class","video-container v-1jy89ut"),u(n,"style",o=`transform: rotate(${t[32]}deg) scale(${t[42]})`),V(n,"fast-rotate",!t[1].isSmoothVideoRotate),u(i,"class","video-wrapper v-1jy89ut"),V(i,"hidden",t[34]!==Ne.Video),u(a,"class","overlay-container"),u(e,"class","player-wrapper v-1jy89ut"),u(e,"role","region"),u(e,"aria-label",j("aria_label_video_player")),u(e,"tabindex","-1")},m(v,k){I(v,e,k),m(e,i),m(i,n),t[129](n),m(e,s),h.m(e,null),m(e,r),m(e,a),t[133](a),t[134](e),c=!0,f||(p=[pe(qh,"blur",t[99]),pe(i,"click",$t(t[100])),pe(e,"click",t[102],!0),pe(e,"focusin",t[103],!0)],f=!0)},p(v,k){(!c||k[1]&2050&&o!==(o=`transform: rotate(${v[32]}deg) scale(${v[42]})`))&&u(n,"style",o),(!c||k[0]&2)&&V(n,"fast-rotate",!v[1].isSmoothVideoRotate),(!c||k[1]&8)&&V(i,"hidden",v[34]!==Ne.Video),k[1]&32768&&he(l,l=v[46])?(ce(),b(h,1,1,q),fe(),h=c1(v),h.c(),d(h,1),h.m(e,r)):h.p(v,k)},i(v){c||(d(h),c=!0)},o(v){b(h),c=!1},d(v){v&&S(e),t[129](null),h.d(v),t[133](null),t[134](null),f=!1,it(p)}}}function Kh(t,e,i){let n,o,s,l,r,a,c,f,p,h,v,k,_,P,C,T,y,M,oe,Y,R,ee,Q,w,$,X,z,W,B,J,E,O,Ce,ze,Ee,Ve,Pe,{store:me}=e,{uiConfig:Z}=e,{thumbUrl:de}=e,{videoContainer:Se}=e,{interactiveContainer:Fe}=e,{live:je}=e,{autoplay:re}=e,{canRewindLive:we}=e,{showAds:Me}=e,{adsSlotId:We=void 0}=e,{adsParams:ie=void 0}=e,{adsPreviewParam:G=void 0}=e,{duration:ye=void 0}=e,{logoClickable:se}=e,{logoHidden:ve}=e,{logoTargetUrl:Oe=""}=e,{showNextPrevButtons:$e=!1}=e,{nextButtonActive:ot=!1}=e,{prevButtonActive:Be=!1}=e,{endScreenVideoTitle:ae=void 0}=e,{endScreenVideoThumb:lt=void 0}=e,{isOneVideoPlaylist:_t=!1}=e,{supportLink:at}=e,{outerContainerRef:ht=void 0}=e,{showMiniTimer:Ct=!1}=e,{fullScreenTarget:Le=void 0}=e,{playerStarted:qt=!1}=e,{playNextVideo:ue=Ye}=e,{playPrevVideo:ft=Ye}=e,{repeatPlaylist:vt=Ye}=e,{seekToInteractive:Ze}=e,{toggleGraph:et}=e,{playPrevChapter:gt}=e,{firstStart:kt}=e,{seekTime:bi}=e;const _i=me.getLogger().createComponentLog("Root component"),vi=me.interfaceLanguage$;N(t,vi,te=>i(46,X=te));const qi=me.state.playbackState$;N(t,qi,te=>i(126,Q=te));const Ji=me.ads.playbackState;N(t,Ji,te=>i(127,w=te));const oi=me.state.positionWithScrubbing$;N(t,oi,te=>i(44,r=te));const li=me.state.duration$;N(t,li,te=>i(43,l=te));const ki=me.playerPhase;N(t,ki,te=>i(34,oe=te));const Zt=me.ui.isFullscreen;N(t,Zt,te=>i(141,c=te));const si=me.ui.controlsVisible;N(t,si,te=>i(30,o=te));const Zi=me.ui.interactiveHideMobileControls;N(t,Zi,te=>i(118,v=te));const wi=me.ui.settingsMenuVisible;N(t,wi,te=>i(117,n=te));const yi=me.ui.scrubbingInProgress;N(t,yi,te=>i(119,_=te));const ri=me.ui.debugPanelVisible;N(t,ri,te=>i(57,Pe=te));const Ci=me.state.isLoaderVisible;N(t,Ci,te=>i(128,$=te));const ai=me.state.isEnded$;N(t,ai,te=>i(121,T=te));const Ti=me.state.chromecastConnected$;N(t,Ti,te=>i(35,Y=te));const Pi=me.state.chromecastDeviceName$;N(t,Pi,te=>i(51,E=te));const wt=me.ads.postrollPassed;N(t,wt,te=>i(122,y=te));const Bt=me.ui.mobileUnmuteButtonExpanded,Wt=me.ui.mobileUnmuteButtonVisible,ui=me.state.isLive$;N(t,ui,te=>i(55,Ee=te));const Vt=me.state.isPlaying$;N(t,Vt,te=>i(56,Ve=te));const ci=me.state.isActiveLive$;N(t,ci,te=>i(48,W=te));const Kt=me.state.isRewindableLive$,ei=me.state.crashed$;N(t,ei,te=>i(33,C=te));const Tt=me.webApi.pictureInPictureApi,Pt=me.state.videoSize$;N(t,Pt,te=>i(142,p=te));const Rt=me.state.currentSubtitle$;N(t,Rt,te=>i(52,O=te));const jt=me.state.currentSubtitleCaptions$;N(t,jt,te=>i(53,Ce=te));const fi=me.state.duration$;N(t,fi,te=>i(54,ze=te));const nn=me.state.graphIsOpened$;N(t,nn,te=>i(125,ee=te));const Wi=me.ui.playerSize;N(t,Wi,te=>i(31,f=te));const Gt=me.ui.is3DVideo;N(t,Gt,te=>i(49,B=te));const ti=me.ui.icon3DVideoVisible;N(t,ti,te=>i(50,J=te));const Si=me.ui.rotateAlpha;N(t,Si,te=>i(32,k=te));const Di=me.state.isInteractive,Nt=me.state.isInteractiveTime$;N(t,Nt,te=>i(120,P=te));const bt=me.state.isInteractiveExpectation$;N(t,bt,te=>i(124,R=te));const Ii=me.state.hasInteractiveBranches,Ki=me.ui.controls.disabledControls$;N(t,Ki,te=>i(47,z=te));const ii=me.ui.touched;N(t,ii,te=>i(123,M=te));const ji=me.ui.clientInfo$;N(t,ji,te=>i(140,a=te));const di=me.ui.overlayContainer$,xi=me.state.isFirstBytes$;N(t,xi,te=>i(139,s=te));const Gi=me.actions.internal.closeSettingsMenu,$i=me.callbacks?.onDisabledPlayPrevChapterClick,zi=me.callbacks?.onDisabledSeekToInteractiveClick;let Ai,Dt,Yt,mi,Oi,Hi,pi;const Ei=Ie(!1);N(t,Ei,te=>i(45,h=te));let Vi,He=!1,Fi,Mt=!1,Ae,Mi=!0,Yi,Ui,Li=!1,en;Tt?.setContext(k1());const Bi=te=>{clearTimeout(mi),te&&(Wt.set(!0),Bt.set(!0),mi=window.setTimeout(()=>{Bt.set(!1)},Z.controls.collapseMobileUnmute),Di||zt(Z.controls.hideTimeoutMobile))};me.setUiCallbacks({onStarted:Bi});const Qi=()=>{window.clearTimeout(Yt),i(112,He=!1),v&&Zi.set(!1)},zt=te=>{Qi(),i(112,He=!0),Yt=window.setTimeout(()=>i(112,He=!1),te);const dt=te-100;Vi=window.setTimeout(()=>{h&&Ei.set(!1)},dt>0?dt:te)},Xi=Gt.subscribe(te=>{ti.set(te),te&&(window.clearTimeout(Oi),Oi=window.setTimeout(()=>ti.set(!1),Z.controls.hide360IconTimeout))}),ni=async()=>{const te=Ho();if(te){zt(Z.controls.hideTimeoutFullscreen);try{await Tt?.remove()}catch(dt){_i({message:String(dt)})}try{const dt=p?.width&&p?.height?p:f;await Nf(dt)}catch(dt){_i({message:String(dt)})}}Zt.set(te),me.getAdmanWrapper().setFullscreen(te),c?me.callbacks?.onFullscreenEnter?.():me.callbacks?.onFullscreenExit?.()},ne=te=>{const dt=te;Wi.set({width:dt.target.width,height:dt.target.height})};ln(()=>(j1(ni),al(Tt)&&(Tt?.assignPlayerContainer(Ai),Tt?.registryExternalEventHandlers({resize:ne})),i(39,Mi=!Dh(a)),Fe&&Se.parentElement?.insertBefore(Fe,Se.nextSibling),()=>{window.clearTimeout(Yt),window.clearTimeout(Vi),window.clearTimeout(mi),window.clearTimeout(Oi),Xi(),Tt?.dispose(),G1(ni)}));const tt=te=>{let dt=r+(te==="forward"?1:-1)*Z.controls.seekStepMobile/1e3;dt<0?dt=0:dt>l&&(dt=l-1),i(114,Mt=!0),bi(dt)},Ot=async()=>{if(Ho())await K1(document),_i({message:"exit fullscreen"});else{if(_i({message:"request fullscreen"}),sl()&&!s)return;const te=sl()||!ht?Ai:ht,dt=te.getRootNode(),bn=dt instanceof ShadowRoot?dt.host:dt,In=Le instanceof HTMLElement&&Le.contains(bn),An=Z.allowChangingFullscreenTarget&&Le&&In?Le:te;await W1(An)}},Qt=()=>{Gi()},Ri=()=>{if(n){Qt();return}if(!qt){kt(),zt(Z.controls.hideTimeoutCursor);return}i(114,Mt=!1),o?Qi():zt(Z.controls.hideTimeoutMobile)},Ni=()=>{if(n){Qt();return}},fn=()=>{ii.set(!0)},dn=()=>{Di||(Ei.set(!0),zt(Z.controls.hideTimeoutCursor))},sn=te=>{$i&&($i(te),zt(Z.controls.hideTimeoutMobile))},St=te=>{zi&&(zi(te),zt(Z.controls.hideTimeoutMobile))};function Pn(te){_e[te?"unshift":"push"](()=>{Se=te,i(0,Se)})}const Sn=()=>tt("backward"),mn=()=>tt("forward");function gn(te){Dt=te,i(37,Dt)}function rn(te){_e[te?"unshift":"push"](()=>{pi=te,i(29,pi)})}function on(te){_e[te?"unshift":"push"](()=>{Ai=te,i(36,Ai)})}return t.$$set=te=>{"store"in te&&i(106,me=te.store),"uiConfig"in te&&i(1,Z=te.uiConfig),"thumbUrl"in te&&i(2,de=te.thumbUrl),"videoContainer"in te&&i(0,Se=te.videoContainer),"interactiveContainer"in te&&i(107,Fe=te.interactiveContainer),"live"in te&&i(3,je=te.live),"autoplay"in te&&i(4,re=te.autoplay),"canRewindLive"in te&&i(5,we=te.canRewindLive),"showAds"in te&&i(6,Me=te.showAds),"adsSlotId"in te&&i(7,We=te.adsSlotId),"adsParams"in te&&i(8,ie=te.adsParams),"adsPreviewParam"in te&&i(9,G=te.adsPreviewParam),"duration"in te&&i(10,ye=te.duration),"logoClickable"in te&&i(11,se=te.logoClickable),"logoHidden"in te&&i(12,ve=te.logoHidden),"logoTargetUrl"in te&&i(13,Oe=te.logoTargetUrl),"showNextPrevButtons"in te&&i(14,$e=te.showNextPrevButtons),"nextButtonActive"in te&&i(15,ot=te.nextButtonActive),"prevButtonActive"in te&&i(16,Be=te.prevButtonActive),"endScreenVideoTitle"in te&&i(17,ae=te.endScreenVideoTitle),"endScreenVideoThumb"in te&&i(18,lt=te.endScreenVideoThumb),"isOneVideoPlaylist"in te&&i(19,_t=te.isOneVideoPlaylist),"supportLink"in te&&i(20,at=te.supportLink),"outerContainerRef"in te&&i(108,ht=te.outerContainerRef),"showMiniTimer"in te&&i(109,Ct=te.showMiniTimer),"fullScreenTarget"in te&&i(110,Le=te.fullScreenTarget),"playerStarted"in te&&i(21,qt=te.playerStarted),"playNextVideo"in te&&i(22,ue=te.playNextVideo),"playPrevVideo"in te&&i(23,ft=te.playPrevVideo),"repeatPlaylist"in te&&i(24,vt=te.repeatPlaylist),"seekToInteractive"in te&&i(25,Ze=te.seekToInteractive),"toggleGraph"in te&&i(26,et=te.toggleGraph),"playPrevChapter"in te&&i(27,gt=te.playPrevChapter),"firstStart"in te&&i(28,kt=te.firstStart),"seekTime"in te&&i(111,bi=te.seekTime)},t.$$.update=()=>{t.$$.dirty[1]&12|t.$$.dirty[4]&24&&i(38,Hi=(oe===Ne.Video&&$||oe===Ne.Ads&&w===xt.INACTIVE)&&!C),t.$$.dirty[0]&536870912&&di.set(pi),t.$$.dirty[4]&4&&i(113,Fi=Q!==Ft.PLAYING),t.$$.dirty[3]&303562752|t.$$.dirty[4]&3&&i(115,Ae=ee||v||!He&&(T&&!!Ii||Fi&&R)),t.$$.dirty[1]&28|t.$$.dirty[3]&91750400&&si.set((Fi||n||_||Y||He&&!Mt)&&!Ae&&oe===Ne.Video&&!C),t.$$.dirty[0]&1073741826|t.$$.dirty[1]&12|t.$$.dirty[3]&1073807360&&i(40,Yi=Z.features.thumbTimer&&Ct&&oe===Ne.Video&&!o&&!C&&!Di&&(Z.hideThumbTimerAfterTouch&&!M||!Z.hideThumbTimerAfterTouch)),t.$$.dirty[0]&64|t.$$.dirty[1]&4|t.$$.dirty[3]&805306368&&i(41,Ui=(Me&&y||!Me)&&T&&!C),t.$$.dirty[0]&2|t.$$.dirty[3]&209715200&&(!_&&Li&&!P&&zt(Z.controls.hideTimeoutMobile),i(116,Li=_)),t.$$.dirty[0]&1|t.$$.dirty[1]&3&&i(42,en=Se&&k%180?f.height/f.width:1)},[Se,Z,de,je,re,we,Me,We,ie,G,ye,se,ve,Oe,$e,ot,Be,ae,lt,_t,at,qt,ue,ft,vt,Ze,et,gt,kt,pi,o,f,k,C,oe,Y,Ai,Dt,Hi,Mi,Yi,Ui,en,l,r,h,X,z,W,B,J,E,O,Ce,ze,Ee,Ve,Pe,vi,qi,Ji,oi,li,ki,Zt,si,Zi,wi,yi,ri,Ci,ai,Ti,Pi,wt,ui,Vt,ci,Kt,ei,Pt,Rt,jt,fi,nn,Wi,Gt,ti,Si,Di,Nt,bt,Ki,ii,ji,xi,Ei,tt,Ot,Qt,Ri,Ni,fn,dn,sn,St,me,Fe,ht,Ct,Le,bi,He,Fi,Mt,Ae,Li,n,v,_,P,T,y,M,R,ee,Q,w,$,Pn,Sn,mn,gn,rn,on]}class jh extends be{constructor(e){super(),ge(this,e,Kh,Wh,he,{store:106,uiConfig:1,thumbUrl:2,videoContainer:0,interactiveContainer:107,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,outerContainerRef:108,showMiniTimer:109,fullScreenTarget:110,playerStarted:21,playNextVideo:22,playPrevVideo:23,repeatPlaylist:24,seekToInteractive:25,toggleGraph:26,playPrevChapter:27,firstStart:28,seekTime:111},Zh,[-1,-1,-1,-1,-1,-1])}}function Gh(t){Ke(t,"v-cghoty",`.root.v-cghoty{--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(
|
|
32
|
+
)}.hidden.svelte-1bcvcf2{visibility:hidden;transform:translateY(calc(var(--controls-gradient-height) * -1));opacity:0}`)}function O5(i){let e,t;return{c(){e=P("div"),t=Be(i[0]),c(e,"class","title svelte-1bcvcf2"),H(e,"hidden",i[1])},m(n,o){C(n,e,o),m(e,t)},p(n,[o]){o&1&&Qe(t,n[0]),o&2&&H(e,"hidden",n[1])},i:_e,o:_e,d(n){n&&w(e)}}}function F5(i,e,t){let{title:n=""}=e,{isHidden:o=!1}=e;return i.$$set=l=>{"title"in l&&t(0,n=l.title),"isHidden"in l&&t(1,o=l.isHidden)},[n,o]}var Uu=class extends q{constructor(e){super(),U(this,e,F5,O5,z,{title:0,isHidden:1},N5)}},g0=Uu;function H5(i){Ce(i,"svelte-1qpxtfg",".timer__container.svelte-1qpxtfg{display:flex;align-items:flex-start;justify-content:center}.cell.svelte-1qpxtfg{display:flex;flex-direction:column;align-items:center;width:62px}.cell__value.svelte-1qpxtfg{font-size:48px;line-height:1.2;font-weight:700}.cell__unit.svelte-1qpxtfg{font-size:14px;line-height:1.2;font-weight:400}.timer__points.svelte-1qpxtfg{display:inline-block;margin:0 8px;font-size:42px;line-height:1.2;font-weight:600}")}function b0(i){let e,t,n,o,l,r,a;return{c(){e=P("div"),t=P("span"),n=Be(i[0]),o=O(),l=P("span"),l.textContent=`${j("waiting_live_day_value")}`,r=O(),a=P("span"),a.textContent=`${j("waiting_live_colon")}`,c(t,"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){C(s,e,u),m(e,t),m(t,n),m(e,o),m(e,l),C(s,r,u),C(s,a,u)},p(s,u){u&1&&Qe(n,s[0])},d(s){s&&(w(e),w(r),w(a))}}}function v0(i){let e,t,n,o,l,r,a;return{c(){e=P("div"),t=P("span"),n=Be(i[1]),o=O(),l=P("span"),l.textContent=`${j("waiting_live_hour_value")}`,r=O(),a=P("span"),a.textContent=`${j("waiting_live_colon")}`,c(t,"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){C(s,e,u),m(e,t),m(t,n),m(e,o),m(e,l),C(s,r,u),C(s,a,u)},p(s,u){u&2&&Qe(n,s[1])},d(s){s&&(w(e),w(r),w(a))}}}function y0(i){let e,t,n,o,l,r,a;return{c(){e=P("div"),t=P("span"),n=Be(i[2]),o=O(),l=P("span"),l.textContent=`${j("waiting_live_minute_value")}`,r=O(),a=P("span"),a.textContent=`${j("waiting_live_colon")}`,c(t,"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){C(s,e,u),m(e,t),m(t,n),m(e,o),m(e,l),C(s,r,u),C(s,a,u)},p(s,u){u&4&&Qe(n,s[2])},d(s){s&&(w(e),w(r),w(a))}}}function w0(i){let e,t,n,o,l;return{c(){e=P("div"),t=P("span"),n=Be(i[3]),o=O(),l=P("span"),l.textContent=`${j("waiting_live_second_value")}`,c(t,"class","cell__value svelte-1qpxtfg"),c(l,"class","cell__unit svelte-1qpxtfg"),c(e,"class","timer__cell cell svelte-1qpxtfg")},m(r,a){C(r,e,a),m(e,t),m(t,n),m(e,o),m(e,l)},p(r,a){a&8&&Qe(n,r[3])},d(r){r&&w(e)}}}function z5(i){let e,t,n,o,l=i[0]&&b0(i),r=i[1]&&v0(i),a=i[2]&&y0(i),s=i[3]&&w0(i);return{c(){e=P("div"),l&&l.c(),t=O(),r&&r.c(),n=O(),a&&a.c(),o=O(),s&&s.c(),c(e,"class","timer__container svelte-1qpxtfg")},m(u,f){C(u,e,f),l&&l.m(e,null),m(e,t),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=b0(u),l.c(),l.m(e,t)):l&&(l.d(1),l=null),u[1]?r?r.p(u,f):(r=v0(u),r.c(),r.m(e,n)):r&&(r.d(1),r=null),u[2]?a?a.p(u,f):(a=y0(u),a.c(),a.m(e,o)):a&&(a.d(1),a=null),u[3]?s?s.p(u,f):(s=w0(u),s.c(),s.m(e,null)):s&&(s.d(1),s=null)},i:_e,o:_e,d(u){u&&w(e),l&&l.d(),r&&r.d(),a&&a.d(),s&&s.d()}}}function q5(i,e,t){let{startTime:n}=e,{onTimerOver:o}=e,l,r,a,s,u,f=b=>String(b).padStart(2,"0"),p=b=>{let g=Math.floor(b/86400);g&&(b-=g*86400,t(0,l=f(g)));let S=Math.floor(b/3600);t(1,r=f(S));let y=Math.floor(b/60)%60;t(2,a=f(y));let T=b%60;t(3,s=f(T))},h=()=>{let b=Math.floor(Date.now()/1e3),g=n-b;p(g),g>=1?u=requestAnimationFrame(h):o()};return Ct(()=>{u=requestAnimationFrame(h)}),Tn(()=>{cancelAnimationFrame(u)}),i.$$set=b=>{"startTime"in b&&t(4,n=b.startTime),"onTimerOver"in b&&t(5,o=b.onTimerOver)},[l,r,a,s,n,o]}var Ku=class extends q{constructor(e){super(),U(this,e,q5,z5,z,{startTime:4,onTimerOver:5},H5)}},k0=Ku;function U5(i){let e,t,n,o,l,r,a=i[2].default,s=Pe(a,i,i[1],null),u=[{xmlns:"http://www.w3.org/2000/svg"},{"aria-hidden":"true"},{"data-testid":"podcast-icon"},{style:"shape-rendering:geometricPrecision;text-rendering:geometricPrecision;image-rendering:optimizeQuality;fill-rule:evenodd;clip-rule:evenodd;width:100%;height:100%"},{viewBox:"0 0 400 400"},{role:"img"},i[0]],f={};for(let p=0;p<u.length;p+=1)f=ne(f,u[p]);return{c(){e=D("svg"),s&&s.c(),t=D("path"),n=D("path"),o=D("path"),l=D("path"),c(t,"fill","#fefffe"),c(t,"d","M179.5-.5h40q127.56 18.67 171.5 140 5.724 19.896 8.5 40v40q-5.549 51.6-35.5 94-9.626-12.614-24.5-18.5-1.526-1.574-.5-3.5 39.742-61.7 23-133Q329.24 50.25 217.5 33 112.126 26.56 55 114.5q-40.395 74.102-9 152a152.3 152.3 0 0 0 14 25q1.026 1.926-.5 3.5-14.874 5.886-24.5 18.5-29.95-42.4-35.5-94v-40Q18.17 51.94 139.5 8q19.896-5.724 40-8.5"),fi(t,"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"),fi(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"),fi(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"),fi(l,"opacity",".986"),be(e,f)},m(p,h){C(p,e,h),s&&s.m(e,null),m(e,t),m(e,n),m(e,o),m(e,l),r=!0},p(p,[h]){s&&s.p&&(!r||h&2)&&Te(s,a,p,p[1],r?Ie(a,p[1],h,null):Ee(p[1]),null),be(e,f=Ve(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&&w(e),s&&s.d(p)}}}function K5(i,e,t){let{$$slots:n={},$$scope:o}=e;return i.$$set=l=>{t(0,e=ne(ne({},e),ge(l))),"$$scope"in l&&t(1,o=l.$$scope)},e=ge(e),[e,o,n]}var ju=class extends q{constructor(e){super(),U(this,e,K5,U5,z,{})}},C0=ju;function j5(i){Ce(i,"svelte-15pewff",".waiting-container.svelte-15pewff{position:absolute;top:0;left:0;width:100%;height:100%;background-color:var(--black);background-position:center;background-size:cover;background-repeat:no-repeat}.waiting-container.svelte-15pewff::before{content:'';position:absolute;top:0;left:0;width:100%;height:100%;background-color:rgba(0, 0, 0, 0.56);z-index:1}.upcoming.svelte-15pewff{position:absolute;top:50%;left:0;width:100%;transform:translateY(-50%);display:flex;flex-direction:column;align-items:center;justify-content:center;z-index:0}.upcoming-icon.svelte-15pewff{width:20%;max-width:200px;margin-bottom:20px}.upcoming__title.svelte-15pewff{font-size:14px;line-height:1.2;font-weight:400}.waiting-timer.svelte-15pewff{position:absolute;top:50%;left:50%;transform:translate(-50%, -50%);z-index:2}.timer.svelte-15pewff{display:flex;flex-direction:column;align-items:center;justify-content:center}.timer__title.svelte-15pewff{display:inline-block;vertical-align:middle;margin-bottom:12px;font-size:14px;line-height:1.2;font-weight:400}")}function W5(i){let e,t,n,o,l;return o=new k0({props:{startTime:i[1]||0,onTimerOver:i[3]}}),{c(){e=P("div"),t=P("span"),t.textContent=`${j("waiting_live_timer_title")}`,n=O(),B(o.$$.fragment),c(t,"class","timer__title svelte-15pewff"),c(e,"class","waiting-timer timer svelte-15pewff")},m(r,a){C(r,e,a),m(e,t),m(e,n),L(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&&w(e),R(o)}}}function G5(i){let e,t,n,o,l,r;return n=new C0({}),{c(){e=P("div"),t=P("div"),B(n.$$.fragment),o=O(),l=P("span"),l.textContent=`${j("waiting_live_upcoming_title")}`,c(t,"class","upcoming-icon svelte-15pewff"),c(l,"class","upcoming__title svelte-15pewff"),c(e,"class","upcoming svelte-15pewff")},m(a,s){C(a,e,s),m(e,t),L(n,t,null),m(e,o),m(e,l),r=!0},p:_e,i(a){r||(d(n.$$.fragment,a),r=!0)},o(a){_(n.$$.fragment,a),r=!1},d(a){a&&w(e),R(n)}}}function Q5(i){let e,t,n,o,l,r=[G5,W5],a=[];function s(u,f){return u[2]?0:1}return t=s(i,-1),n=a[t]=r[t](i),{c(){e=P("div"),n.c(),c(e,"class","waiting-container svelte-15pewff"),c(e,"style",o=`background-image: url(${i[2]?"":i[0]})`)},m(u,f){C(u,e,f),a[t].m(e,null),l=!0},p(u,[f]){let p=t;t=s(u,f),t===p?a[t].p(u,f):(ue(),_(a[p],1,1,()=>{a[p]=null}),ce(),n=a[t],n?n.p(u,f):(n=a[t]=r[t](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&&w(e),a[t].d()}}}function Y5(i,e,t){let n,{thumbUrl:o}=e,{startTime:l}=e,r=()=>t(2,n=!0);return i.$$set=a=>{"thumbUrl"in a&&t(0,o=a.thumbUrl),"startTime"in a&&t(1,l=a.startTime)},i.$$.update=()=>{if(i.$$.dirty&2)e:t(2,n=l===void 0||l<Math.floor(Date.now()/1e3))},[o,l,n,r]}var Wu=class extends q{constructor(e){super(),U(this,e,Y5,Q5,z,{thumbUrl:0,startTime:1},j5)}},Kr=Wu;function Z5(i){Ce(i,"svelte-1bcnzdw",".waiting-container.svelte-1bcnzdw{position:absolute;top:0;left:0;width:100%;height:100%;display:flex;align-items:center;justify-content:center;background-color:var(--black)}.waiting-title.svelte-1bcnzdw{padding:20px;text-align:center;font-size:20px;line-height:1.2;font-weight:400}")}function X5(i){let e,t;return{c(){e=P("div"),t=P("p"),t.textContent=`${j("waiting_record_title")}`,c(t,"class","waiting-title svelte-1bcnzdw"),c(e,"class","waiting-container svelte-1bcnzdw")},m(n,o){C(n,e,o),m(e,t)},p:_e,i:_e,o:_e,d(n){n&&w(e)}}}var Gu=class extends q{constructor(e){super(),U(this,e,null,X5,z,{},Z5)}},jr=Gu;var{window:J5}=co;function $5(i){Ce(i,"svelte-1o4wf3x",".player-wrapper.svelte-1o4wf3x{position:absolute;width:100%;height:100%}.player-wrapper.svelte-1o4wf3x .player-media{position:absolute;left:0;top:0;width:100%;height:100%;background:var(--black);transition:transform 0.2s ease-in-out}.spherical-video-icon.svelte-1o4wf3x{display:inline-block;position:absolute;top:calc(50% - 23px);left:calc(50% - 38px)}.video-wrapper.svelte-1o4wf3x,.video-container.svelte-1o4wf3x,.ads-container.svelte-1o4wf3x{position:absolute;width:100%;height:100%;left:0;top:0}.video-wrapper.svelte-1o4wf3x{z-index:var(--video-container-z-index);background:var(--black)}.video-container.svelte-1o4wf3x{z-index:var(--video-container-z-index);transition:var(--rotate-transition-duration) ease all}.video-container.fast-rotate.svelte-1o4wf3x{transition:none}.nocursor.svelte-1o4wf3x{cursor:none}.ads-container.svelte-1o4wf3x{background:var(--black)}")}function P0(i){let e,t;return e=new Kr({props:{thumbUrl:i[3],startTime:i[4]?.startTime}}),{c(){B(e.$$.fragment)},m(n,o){L(e,n,o),t=!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){t||(d(e.$$.fragment,n),t=!0)},o(n){_(e.$$.fragment,n),t=!1},d(n){R(e,n)}}}function I0(i){let e,t;return e=new jr({}),{c(){B(e.$$.fragment)},m(n,o){L(e,n,o),t=!0},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){_(e.$$.fragment,n),t=!1},d(n){R(e,n)}}}function T0(i){let e,t,n;return t=new Yl({props:{adsSlotId:i[8],adsParams:i[9],adsPreviewParam:i[10],duration:i[11]}}),{c(){e=P("div"),B(t.$$.fragment),c(e,"class","ads-container svelte-1o4wf3x"),H(e,"hidden",i[38]!=="ads")},m(o,l){C(o,e,l),L(t,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]),t.$set(r),(!n||l[1]&128)&&H(e,"hidden",o[38]!=="ads")},i(o){n||(d(t.$$.fragment,o),n=!0)},o(o){_(t.$$.fragment,o),n=!1},d(o){o&&w(e),R(t)}}}function E0(i){let e,t;return e=new l1({props:{title:i[18],thumb:i[19],playNextVideo:i[23]}}),{c(){B(e.$$.fragment)},m(n,o){L(e,n,o),t=!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){t||(d(e.$$.fragment,n),t=!0)},o(n){_(e.$$.fragment,n),t=!1},d(n){R(e,n)}}}function A0(i){let e,t;return e=new g0({props:{title:i[2],isHidden:!i[36]}}),{c(){B(e.$$.fragment)},m(n,o){L(e,n,o),t=!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){t||(d(e.$$.fragment,n),t=!0)},o(n){_(e.$$.fragment,n),t=!1},d(n){R(e,n)}}}function M0(i){let e,t;return e=new Fr({props:{isShifted:i[38]==="video"&&i[36]}}),{c(){B(e.$$.fragment)},m(n,o){L(e,n,o),t=!0},p(n,o){let l={};o[1]&160&&(l.isShifted=n[38]==="video"&&n[36]),e.$set(l)},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){_(e.$$.fragment,n),t=!1},d(n){R(e,n)}}}function V0(i){let e,t,n;return t=new Fl({props:{"aria-label":j("video360")}}),{c(){e=P("div"),B(t.$$.fragment),c(e,"class","spherical-video-icon svelte-1o4wf3x")},m(o,l){C(o,e,l),L(t,e,null),n=!0},p:_e,i(o){n||(d(t.$$.fragment,o),n=!0)},o(o){_(t.$$.fragment,o),n=!1},d(o){o&&w(e),R(t)}}}function L0(i){let e,t;return e=new zr({props:{thumbUrl:i[3],chromecastDeviceName:i[53]}}),{c(){B(e.$$.fragment)},m(n,o){L(e,n,o),t=!0},p(n,o){let l={};o[0]&8&&(l.thumbUrl=n[3]),o[1]&4194304&&(l.chromecastDeviceName=n[53]),e.$set(l)},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){_(e.$$.fragment,n),t=!1},d(n){R(e,n)}}}function R0(i){let e,t;return e=new Hr({props:{shifted:i[36],captions:i[55],position:i[56],playerSize:i[34]}}),{c(){B(e.$$.fragment)},m(n,o){L(e,n,o),t=!0},p(n,o){let l={};o[1]&32&&(l.shifted=n[36]),o[1]&16777216&&(l.captions=n[55]),o[1]&33554432&&(l.position=n[56]),o[1]&8&&(l.playerSize=n[34]),e.$set(l)},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){_(e.$$.fragment,n),t=!1},d(n){R(e,n)}}}function B0(i){let e,t,n,o,l;return t=new qr({}),{c(){e=P("div"),B(t.$$.fragment)},m(r,a){C(r,e,a),L(t,e,null),n=!0,o||(l=[pe(e,"contextmenu",kt(i[108])),pe(e,"click",rt(i[119]))],o=!0)},p:_e,i(r){n||(d(t.$$.fragment,r),n=!0)},o(r){_(t.$$.fragment,r),n=!1},d(r){r&&w(e),R(t),o=!1,tt(l)}}}function D0(i){let e,t,n;function o(r){i[156](r)}let l={bottomHidden:i[38]==="thumb"||i[38]==="waitingLive"||i[38]==="waitingRecord",bottomNoSmooth:i[50],showControls:i[36],isAds:i[38]==="ads",canRewindLive:i[6]&&i[57]!==0,logoClickable:i[12],logoHidden:i[13],logoTargetUrl:i[14],showNextPrevButtons:i[15],nextButtonActive:i[16],prevButtonActive:i[17],isOneVideoPlaylist:i[20],supportLink:i[21],customFullscreenSupported:z0,playNextVideo:i[23],playPrevVideo:i[24],repeatPlaylist:i[25],toggleFullscreen:i[106],returnFocus:i[155],seekToInteractive:i[26],toggleGraph:i[27],playPrevChapter:i[28]};return i[41]!==void 0&&(l.controlsElementRef=i[41]),e=new Or({props:l}),he.push(()=>He(e,"controlsElementRef",o)),{c(){B(e.$$.fragment)},m(r,a){L(e,r,a),n=!0},p(r,a){let s={};a[1]&128&&(s.bottomHidden=r[38]==="thumb"||r[38]==="waitingLive"||r[38]==="waitingRecord"),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]&67108864&&(s.canRewindLive=r[6]&&r[57]!==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[155]),a[0]&67108864&&(s.seekToInteractive=r[26]),a[0]&134217728&&(s.toggleGraph=r[27]),a[0]&268435456&&(s.playPrevChapter=r[28]),!t&&a[1]&1024&&(t=!0,s.controlsElementRef=r[41],Fe(()=>t=!1)),e.$set(s)},i(r){n||(d(e.$$.fragment,r),n=!0)},o(r){_(e.$$.fragment,r),n=!1},d(r){R(e,r)}}}function N0(i){let e,t;return e=new or({}),{c(){B(e.$$.fragment)},m(n,o){L(e,n,o),t=!0},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){_(e.$$.fragment,n),t=!1},d(n){R(e,n)}}}function O0(i){let e,t;return e=new _1({}),{c(){B(e.$$.fragment)},m(n,o){L(e,n,o),t=!0},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){_(e.$$.fragment,n),t=!1},d(n){R(e,n)}}}function F0(i){let e,t;return e=new tr({}),{c(){B(e.$$.fragment)},m(n,o){L(e,n,o),t=!0},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){_(e.$$.fragment,n),t=!1},d(n){R(e,n)}}}function H0(i){let e,t,n,o,l,r,a,s,u,f,p,h,b,g,S,y,T,k,v,I,W,Q,G,le;e=new Ur({props:{hidden:i[38]!=="thumb"||i[37]||i[92]&&i[5],thumbUrl:i[3],startVideo:i[29]}});let ae=i[38]==="waitingLive"&&P0(i),V=i[38]==="waitingRecord"&&I0(i),A=i[7]&&i[22]&&T0(i),$=i[31]&&i[18]&&i[19]&&E0(i),J=i[44]&&A0(i),x=i[49]&&M0(i),N=i[52]&&V0(i),te=i[39]&&L0(i),E=i[54].value!=="off"&&R0(i),Y=i[37]&&B0(i),Le=i[22]&&D0(i);g=new Xl({props:{isLive:i[58],isHidden:!i[43],isPlaying:i[59],position:i[56],duration:i[60]}}),y=new a0({props:{data:i[103]}});function je(X){i[158](X)}let qe={supportLink:i[21],returnFocus:i[157],visible:i[33],playerContainerRef:i[40],controlsContainerRef:i[41],position:i[61]};i[32]!==void 0&&(qe.menuElementRef=i[32]),k=new qf({props:qe}),he.push(()=>He(k,"menuElementRef",je));let Je=i[42]&&N0(i),Ne=i[62]&&O0(i),we=i[63]&&F0(i);return{c(){B(e.$$.fragment),t=O(),ae&&ae.c(),n=O(),V&&V.c(),o=O(),A&&A.c(),l=O(),$&&$.c(),r=O(),J&&J.c(),a=O(),x&&x.c(),s=O(),N&&N.c(),u=O(),te&&te.c(),f=O(),E&&E.c(),p=O(),Y&&Y.c(),h=O(),Le&&Le.c(),b=O(),B(g.$$.fragment),S=O(),B(y.$$.fragment),T=O(),B(k.$$.fragment),I=O(),Je&&Je.c(),W=O(),Ne&&Ne.c(),Q=O(),we&&we.c(),G=ot()},m(X,ve){L(e,X,ve),C(X,t,ve),ae&&ae.m(X,ve),C(X,n,ve),V&&V.m(X,ve),C(X,o,ve),A&&A.m(X,ve),C(X,l,ve),$&&$.m(X,ve),C(X,r,ve),J&&J.m(X,ve),C(X,a,ve),x&&x.m(X,ve),C(X,s,ve),N&&N.m(X,ve),C(X,u,ve),te&&te.m(X,ve),C(X,f,ve),E&&E.m(X,ve),C(X,p,ve),Y&&Y.m(X,ve),C(X,h,ve),Le&&Le.m(X,ve),C(X,b,ve),L(g,X,ve),C(X,S,ve),L(y,X,ve),C(X,T,ve),L(k,X,ve),C(X,I,ve),Je&&Je.m(X,ve),C(X,W,ve),Ne&&Ne.m(X,ve),C(X,Q,ve),we&&we.m(X,ve),C(X,G,ve),le=!0},p(X,ve){let Oe={};ve[0]&32|ve[1]&192&&(Oe.hidden=X[38]!=="thumb"||X[37]||X[92]&&X[5]),ve[0]&8&&(Oe.thumbUrl=X[3]),ve[0]&536870912&&(Oe.startVideo=X[29]),e.$set(Oe),X[38]==="waitingLive"?ae?(ae.p(X,ve),ve[1]&128&&d(ae,1)):(ae=P0(X),ae.c(),d(ae,1),ae.m(n.parentNode,n)):ae&&(ue(),_(ae,1,1,()=>{ae=null}),ce()),X[38]==="waitingRecord"?V?ve[1]&128&&d(V,1):(V=I0(X),V.c(),d(V,1),V.m(o.parentNode,o)):V&&(ue(),_(V,1,1,()=>{V=null}),ce()),X[7]&&X[22]?A?(A.p(X,ve),ve[0]&4194432&&d(A,1)):(A=T0(X),A.c(),d(A,1),A.m(l.parentNode,l)):A&&(ue(),_(A,1,1,()=>{A=null}),ce()),X[31]&&X[18]&&X[19]?$?($.p(X,ve),ve[0]&786432|ve[1]&1&&d($,1)):($=E0(X),$.c(),d($,1),$.m(r.parentNode,r)):$&&(ue(),_($,1,1,()=>{$=null}),ce()),X[44]?J?(J.p(X,ve),ve[1]&8192&&d(J,1)):(J=A0(X),J.c(),d(J,1),J.m(a.parentNode,a)):J&&(ue(),_(J,1,1,()=>{J=null}),ce()),X[49]?x?(x.p(X,ve),ve[1]&262144&&d(x,1)):(x=M0(X),x.c(),d(x,1),x.m(s.parentNode,s)):x&&(ue(),_(x,1,1,()=>{x=null}),ce()),X[52]?N?(N.p(X,ve),ve[1]&2097152&&d(N,1)):(N=V0(X),N.c(),d(N,1),N.m(u.parentNode,u)):N&&(ue(),_(N,1,1,()=>{N=null}),ce()),X[39]?te?(te.p(X,ve),ve[1]&256&&d(te,1)):(te=L0(X),te.c(),d(te,1),te.m(f.parentNode,f)):te&&(ue(),_(te,1,1,()=>{te=null}),ce()),X[54].value!=="off"?E?(E.p(X,ve),ve[1]&8388608&&d(E,1)):(E=R0(X),E.c(),d(E,1),E.m(p.parentNode,p)):E&&(ue(),_(E,1,1,()=>{E=null}),ce()),X[37]?Y?(Y.p(X,ve),ve[1]&64&&d(Y,1)):(Y=B0(X),Y.c(),d(Y,1),Y.m(h.parentNode,h)):Y&&(ue(),_(Y,1,1,()=>{Y=null}),ce()),X[22]?Le?(Le.p(X,ve),ve[0]&4194304&&d(Le,1)):(Le=D0(X),Le.c(),d(Le,1),Le.m(b.parentNode,b)):Le&&(ue(),_(Le,1,1,()=>{Le=null}),ce());let Xe={};ve[1]&134217728&&(Xe.isLive=X[58]),ve[1]&4096&&(Xe.isHidden=!X[43]),ve[1]&268435456&&(Xe.isPlaying=X[59]),ve[1]&33554432&&(Xe.position=X[56]),ve[1]&536870912&&(Xe.duration=X[60]),g.$set(Xe);let xe={};ve[0]&2097152&&(xe.supportLink=X[21]),ve[1]&131072&&(xe.returnFocus=X[157]),ve[1]&4&&(xe.visible=X[33]),ve[1]&512&&(xe.playerContainerRef=X[40]),ve[1]&1024&&(xe.controlsContainerRef=X[41]),ve[1]&1073741824&&(xe.position=X[61]),!v&&ve[1]&2&&(v=!0,xe.menuElementRef=X[32],Fe(()=>v=!1)),k.$set(xe),X[42]?Je?ve[1]&2048&&d(Je,1):(Je=N0(X),Je.c(),d(Je,1),Je.m(W.parentNode,W)):Je&&(ue(),_(Je,1,1,()=>{Je=null}),ce()),X[62]?Ne?ve[2]&1&&d(Ne,1):(Ne=O0(X),Ne.c(),d(Ne,1),Ne.m(Q.parentNode,Q)):Ne&&(ue(),_(Ne,1,1,()=>{Ne=null}),ce()),X[63]?we?ve[2]&2&&d(we,1):(we=F0(X),we.c(),d(we,1),we.m(G.parentNode,G)):we&&(ue(),_(we,1,1,()=>{we=null}),ce())},i(X){le||(d(e.$$.fragment,X),d(ae),d(V),d(A),d($),d(J),d(x),d(N),d(te),d(E),d(Y),d(Le),d(g.$$.fragment,X),d(y.$$.fragment,X),d(k.$$.fragment,X),d(Je),d(Ne),d(we),le=!0)},o(X){_(e.$$.fragment,X),_(ae),_(V),_(A),_($),_(J),_(x),_(N),_(te),_(E),_(Y),_(Le),_(g.$$.fragment,X),_(y.$$.fragment,X),_(k.$$.fragment,X),_(Je),_(Ne),_(we),le=!1},d(X){X&&(w(t),w(n),w(o),w(l),w(r),w(a),w(s),w(u),w(f),w(p),w(h),w(b),w(S),w(T),w(I),w(W),w(Q),w(G)),R(e,X),ae&&ae.d(X),V&&V.d(X),A&&A.d(X),$&&$.d(X),J&&J.d(X),x&&x.d(X),N&&N.d(X),te&&te.d(X),E&&E.d(X),Y&&Y.d(X),Le&&Le.d(X),R(g,X),R(y,X),R(k,X),Je&&Je.d(X),Ne&&Ne.d(X),we&&we.d(X)}}}function e6(i){let e,t,n,o,l=i[51],r,a,s,u,f=H0(i);return{c(){e=P("div"),t=P("div"),o=O(),f.c(),r=ot(),c(t,"class","video-container svelte-1o4wf3x"),c(t,"style",n=`transform: rotate(${i[35]}deg) scale(${i[46]})`),H(t,"fast-rotate",!i[1].isSmoothVideoRotate),c(e,"class","video-wrapper svelte-1o4wf3x"),H(e,"hidden",i[38]!=="video"),H(e,"nocursor",i[45])},m(p,h){C(p,e,h),m(e,t),i[154](t),C(p,o,h),f.m(p,h),C(p,r,h),a=!0,s||(u=[pe(e,"contextmenu",kt(i[108])),pe(e,"mousedown",kt(i[113])),pe(e,"mouseup",kt(i[114])),pe(e,"click",kt(i[116])),pe(e,"dblclick",kt(i[115]))],s=!0)},p(p,h){(!a||h[1]&32784&&n!==(n=`transform: rotate(${p[35]}deg) scale(${p[46]})`))&&c(t,"style",n),(!a||h[0]&2)&&H(t,"fast-rotate",!p[1].isSmoothVideoRotate),(!a||h[1]&128)&&H(e,"hidden",p[38]!=="video"),(!a||h[1]&16384)&&H(e,"nocursor",p[45]),h[1]&1048576&&z(l,l=p[51])?(ue(),_(f,1,1,_e),ce(),f=H0(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&&(w(e),w(o),w(r)),i[154](null),f.d(p),s=!1,tt(u)}}}function t6(i){let e,t,n,o,l,r,a,s={toggleFullscreen:i[106],hideContextMenu:i[107],showHotKeyHelpers:i[117],showKeyMap:i[118],isAds:i[38]==="ads",fakePlayButtonHandler:i[47]?i[105]:void 0,$$slots:{default:[e6]},$$scope:{ctx:i}};return t=new r1({props:s}),i[159](t),{c(){e=P("div"),B(t.$$.fragment),n=O(),o=P("div"),c(o,"class","overlay-container"),c(e,"class","player-wrapper svelte-1o4wf3x")},m(u,f){C(u,e,f),L(t,e,null),m(e,n),m(e,o),i[160](o),i[161](e),l=!0,r||(a=[pe(J5,"blur",i[107]),pe(e,"mouseenter",i[109]),pe(e,"mouseleave",i[111]),pe(e,"mousemove",i[112]),pe(e,"click",i[120],!0),pe(e,"focusin",i[110],!0)],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]&1&&(p.$$scope={dirty:f,ctx:u}),t.$set(p)},i(u){l||(d(t.$$.fragment,u),l=!0)},o(u){_(t.$$.fragment,u),l=!1},d(u){u&&w(e),i[159](null),R(t),i[160](null),i[161](null),r=!1,tt(a)}}}var z0=!0;function Yu(i){return i?i.offsetTop+Yu(i.offsetParent):0}function q0(i){return i?i.offsetLeft+q0(i.offsetParent):0}function i6(i,e,t){let n,o,l,r,a,s,u,f,p,h,b,g,S,y,T,k,v,I,W,Q,G,le,ae,V,A,$,J,x,N,te,E,Y,Le,je,qe,Je,Ne,we,X,ve,Oe,Xe,xe,{store:ke}=e,{uiConfig:Re}=e,{title:Ue}=e,{thumbUrl:We}=e,{videoContainer:se}=e,{interactiveContainer:oe}=e,{live:Se}=e,{autoplay:fe}=e,{canRewindLive:Ae}=e,{showAds:Ze}=e,{adsSlotId:ut=void 0}=e,{adsParams:ct=void 0}=e,{adsPreviewParam:at=void 0}=e,{duration:ye=void 0}=e,{logoClickable:mt}=e,{logoHidden:lt}=e,{logoTargetUrl:dt=""}=e,{showNextPrevButtons:ht=!1}=e,{nextButtonActive:Et=!1}=e,{prevButtonActive:Ke=!1}=e,{endScreenVideoTitle:Qt=void 0}=e,{endScreenVideoThumb:Bt=void 0}=e,{isOneVideoPlaylist:Mt=!1}=e,{supportLink:ti}=e,{outerContainerRef:it=void 0}=e,{playerStarted:me=!1}=e,{fullScreenTarget:vt=void 0}=e,{showMiniTimer:_t=!1}=e,{playNextVideo:Dt=Qu}=e,{playPrevVideo:wt=Qu}=e,{repeatPlaylist:At=Qu}=e,{seekToInteractive:Ut}=e,{toggleGraph:en}=e,{playPrevChapter:di}=e,{firstStart:mi}=e,Ei=ke.getLogger().createComponentLog("Root component"),Yt=ke.interfaceLanguage$;F(i,Yt,K=>t(51,E=K));let pi=ke.state.playbackState$;F(i,pi,K=>t(151,x=K));let tn=ke.ads.playbackState;F(i,tn,K=>t(152,N=K));let _i=ke.state.positionWithScrubbing$;F(i,_i,K=>t(56,Je=K));let Fi=ke.state.duration$;F(i,Fi,K=>t(60,ve=K));let ii=ke.playerPhase;F(i,ii,K=>t(38,ae=K));let Ai=ke.ui.isFullscreen;F(i,Ai,K=>t(141,g=K));let hi=ke.ui.controlsVisible;F(i,hi,K=>t(36,I=K));let Hi=ke.ui.settingsMenuVisible;F(i,Hi,K=>t(139,s=K));let gi=ke.ui.scrubbingInProgress;F(i,gi,K=>t(143,k=K));let ni=ke.ui.contextMenu.visible$;F(i,ni,K=>t(33,n=K));let Pt=ke.ui.debugPanelVisible;F(i,Pt,K=>t(63,xe=K));let Nt=ke.state.isLoaderVisible;F(i,Nt,K=>t(153,te=K));let bi=ke.state.isEnded$;F(i,bi,K=>t(140,f=K));let vi=ke.state.chromecastConnected$;F(i,vi,K=>t(39,$=K));let Ot=ke.state.chromecastDeviceName$;F(i,Ot,K=>t(53,Le=K));let oi=ke.ads.postrollPassed;F(i,oi,K=>t(146,G=K));let li=ke.state.isLive$;F(i,li,K=>t(58,we=K));let Vt=ke.state.isPlaying$;F(i,Vt,K=>t(59,X=K));let It=ke.state.crashed$;F(i,It,K=>t(37,Q=K));let Kt=ke.webApi.pictureInPictureApi,Mi=ke.state.currentSubtitle$;F(i,Mi,K=>t(54,je=K));let Zt=ke.state.currentSubtitleCaptions$;F(i,Zt,K=>t(55,qe=K));let nn=ke.state.duration$;F(i,nn,K=>t(57,Ne=K));let on=ke.state.graphIsOpened$;F(i,on,K=>t(147,le=K));let jt=ke.ui.playerSize;F(i,jt,K=>t(34,h=K));let yi=ke.ui.is3DVideo;F(i,yi,K=>t(49,p=K));let zi=ke.ui.icon3DVideoVisible;F(i,zi,K=>t(52,Y=K));let wi=ke.ui.rotateAlpha;F(i,wi,K=>t(35,T=K));let ri=ke.state.isInteractive,Ft=ke.state.isInteractiveTime$;F(i,Ft,K=>t(144,v=K));let Wt=ke.state.isInteractiveExpectation$;F(i,Wt,K=>t(150,J=K));let ki=ke.state.hasInteractiveBranches,Xt=ke.ui.touched;F(i,Xt,K=>t(148,V=K));let Yi=ke.ui.modals.hotKeyMap.data;F(i,Yi,K=>t(168,u=K));let Ci=ke.ui.modals.hotKeyMap.show;F(i,Ci,K=>t(62,Xe=K));let ln=ke.ui.overlayContainer$,rn=ke.ui.controls.interactiveTimeIndicator;F(i,rn,K=>t(169,b=K));let Zi=ke.state.showInteractiveTimeIndicator,qi=ke.ui.contextMenu.position$;F(i,qi,K=>t(61,Oe=K));let Vi=ke.actions.internal.closeSettingsMenu,{fakeIsPlaying$:Gt}=yn();F(i,Gt,K=>t(142,y=K));let si,Si,Li,Xi,Pi;Yi.set(vf());let Ri,Bi,Ye=De(!1);F(i,Ye,K=>t(50,S=K));let Ui,Ht=De(!1);F(i,Ht,K=>t(149,A=K));let ze=De(),Ji=De(!1);F(i,Ji,K=>t(145,W=K));let Di=!1,Ki=!1,xi,ji,fn,Jt,xt,Wi,ai=!1,re,ft=!1,{toggle:ui}=Gt,ci=!1,$t=null,Gi;Kt?.setContext(nl());let kn=()=>{fe&&!ri&&Lt(Re.controls.hideTimeout)};ke.setUiCallbacks({onStarted:kn});let hn=()=>{window.clearTimeout(Li),Ht.set(!1)},dn=()=>{window.clearTimeout(Xi),ze.set(null)},Lt=K=>{hn(),Ht.set(!0),Li=window.setTimeout(()=>Ht.set(!1),K);let M=K-100;Ui=window.setTimeout(()=>{S&&Ye.set(!1)},M>0?M:K)},gn=(K,M)=>{dn(),ze.set(M),Xi=window.setTimeout(()=>ze.set(null),K)},Vn=yi.subscribe(K=>{zi.set(K),K&&(window.clearTimeout(Pi),Pi=window.setTimeout(()=>zi.set(!1),Re.controls.hide360IconTimeout))}),Cn=async()=>{let K=$n();if(K){Lt(Re.controls.hideTimeoutFullscreen);try{await Kt?.remove()}catch(M){Ei({message:String(M)})}}Ai.set(K),ke.getAdmanWrapper().setFullscreen(K),g?ke.callbacks?.onFullscreenEnter?.():ke.callbacks?.onFullscreenExit?.()},Sn=K=>{let M=K;jt.set({width:M.target.width,height:M.target.height})};Ct(()=>(Gl(Cn),vo(Kt)&&(Kt?.assignPlayerContainer(si),Kt?.registryExternalEventHandlers({resize:Sn})),oe&&se.parentElement?.insertBefore(oe,se.nextSibling),()=>{window.clearTimeout(Li),window.clearTimeout(Ui),window.clearTimeout(Xi),window.clearTimeout(Pi),Vn(),Kt?.dispose(),Ql(Cn)}));let bn=async()=>{if($n())await Wl(document),Ei({message:"exit fullscreen"});else{Ei({message:"request fullscreen"});let K=it??si,M=K.getRootNode(),de=M instanceof ShadowRoot?M.host:M,Me=vt instanceof HTMLElement&&vt.contains(de),Ge=Re.allowChangingFullscreenTarget&&vt&&Me?vt:K;await jl(Ge)}},$i=()=>{Vi(),ni.set(!1)},ie=K=>{ni.set(!0),qi.set({left:K.clientX,top:K.clientY})};function yt(){Ji.set(!0),ri||Lt(Re.controls.hideTimeoutCursor)}function Pn(){ri||(Ye.set(!0),Lt(Re.controls.hideTimeoutCursor))}function Ln(){Ji.set(!1),t(131,Ki=!1),t(130,Di=!1),ci=!1,ke.actions.internal.releaseCamera()}function Rn(K){if(b&&Zi){let M=K.currentTarget,de=Yu(M),Me=q0(M),Ge=K.pageX-Me,st=K.pageY-de,{left:zt,bottom:ei,right:qt}=b,sn=qt-zt;return Ge>=zt-sn&&st<=ei+sn}}function Gn(K){if(si){let M=Yu(K.currentTarget),de=h.height,Me=K.pageY-M;if(Rn(K)){t(131,Ki=!1);return}Me<40?t(131,Ki=!0):Me>de-40?t(130,Di=!0):(t(131,Ki=!1),s||t(130,Di=!1))}}function Qn(K){Gn(K),ji||Lt(Re.controls.hideTimeoutCursor),p&&ci&&$t&&ke.actions.internal.moveCameraFocusPX($t.clientX-K.clientX,$t.clientY-K.clientY,K.timeStamp-$t.timeStamp),$t=K}let Yn=K=>{K.button===0&&(ci=!0,ke.actions.internal.holdCamera()),Lt(Re.controls.hideTimeoutCursor)},Zn=K=>{K.button===0&&($t=K,ci=!1,ke.actions.internal.releaseCamera()),Lt(Re.controls.hideTimeoutCursor)},Xn=()=>{z0&&(Ei({message:"double click on video"}),bn(),Lt(Re.controls.hideTimeoutCursor))},ro=()=>{if(n||s){$i();return}if(!(f&&!ki)){if(ft)return ui();if(Gi?.focus(),!me){mi(),Lt(Re.controls.hideTimeoutCursor);return}ke.actions.internal.togglePlay(),Lt(Re.controls.hideTimeoutCursor)}},ee=K=>{$i(),Xt.set(!0),Lt(Re.controls.hideTimeout),K&&gn(Re.controls.hideHotKeyHelpers,K)},an=()=>{$i(),ke.callbacks?.onOpenHotKeyMap?ke.callbacks?.onOpenHotKeyMap(u):Ci.update(K=>!K)},Io=()=>{if(n||s){$i();return}},To=()=>{Xt.set(!0)},zn=ke.ui.contextMenu.openedByBtnKeyboard$;F(i,zn,K=>t(138,a=K));let so=ke.ui.contextMenu.btnRef$;F(i,so,K=>t(137,r=K));let qn,Un=ke.ui.contextMenu.openedByHotKey$;F(i,Un,K=>t(136,l=K));let Eo=ke.ui.contextMenu.lastActiveElem$;F(i,Eo,K=>t(135,o=K));function Ao(K){he[K?"unshift":"push"](()=>{se=K,t(0,se)})}let $o=()=>Gi?.focus();function Mo(K){Si=K,t(41,Si)}let Bn=()=>Gi?.focus();function Vo(K){qn=K,t(32,qn)}function ao(K){he[K?"unshift":"push"](()=>{Gi=K,t(48,Gi)})}function uo(K){he[K?"unshift":"push"](()=>{Bi=K,t(30,Bi)})}function Lo(K){he[K?"unshift":"push"](()=>{si=K,t(40,si)})}return i.$$set=K=>{"store"in K&&t(125,ke=K.store),"uiConfig"in K&&t(1,Re=K.uiConfig),"title"in K&&t(2,Ue=K.title),"thumbUrl"in K&&t(3,We=K.thumbUrl),"videoContainer"in K&&t(0,se=K.videoContainer),"interactiveContainer"in K&&t(126,oe=K.interactiveContainer),"live"in K&&t(4,Se=K.live),"autoplay"in K&&t(5,fe=K.autoplay),"canRewindLive"in K&&t(6,Ae=K.canRewindLive),"showAds"in K&&t(7,Ze=K.showAds),"adsSlotId"in K&&t(8,ut=K.adsSlotId),"adsParams"in K&&t(9,ct=K.adsParams),"adsPreviewParam"in K&&t(10,at=K.adsPreviewParam),"duration"in K&&t(11,ye=K.duration),"logoClickable"in K&&t(12,mt=K.logoClickable),"logoHidden"in K&&t(13,lt=K.logoHidden),"logoTargetUrl"in K&&t(14,dt=K.logoTargetUrl),"showNextPrevButtons"in K&&t(15,ht=K.showNextPrevButtons),"nextButtonActive"in K&&t(16,Et=K.nextButtonActive),"prevButtonActive"in K&&t(17,Ke=K.prevButtonActive),"endScreenVideoTitle"in K&&t(18,Qt=K.endScreenVideoTitle),"endScreenVideoThumb"in K&&t(19,Bt=K.endScreenVideoThumb),"isOneVideoPlaylist"in K&&t(20,Mt=K.isOneVideoPlaylist),"supportLink"in K&&t(21,ti=K.supportLink),"outerContainerRef"in K&&t(127,it=K.outerContainerRef),"playerStarted"in K&&t(22,me=K.playerStarted),"fullScreenTarget"in K&&t(128,vt=K.fullScreenTarget),"showMiniTimer"in K&&t(129,_t=K.showMiniTimer),"playNextVideo"in K&&t(23,Dt=K.playNextVideo),"playPrevVideo"in K&&t(24,wt=K.playPrevVideo),"repeatPlaylist"in K&&t(25,At=K.repeatPlaylist),"seekToInteractive"in K&&t(26,Ut=K.seekToInteractive),"toggleGraph"in K&&t(27,en=K.toggleGraph),"playPrevChapter"in K&&t(28,di=K.playPrevChapter),"firstStart"in K&&t(29,mi=K.firstStart)},i.$$.update=()=>{if(i.$$.dirty[1]&192|i.$$.dirty[4]&805306368)e:t(42,Ri=(ae==="video"&&te||ae==="ads"&&N==="inactive")&&!Q);if(i.$$.dirty[0]&1073741824)e:ln.set(Bi);if(i.$$.dirty[4]&134217728)e:t(132,xi=x!==x5.PLAYING);if(i.$$.dirty[4]&68190656)e:t(133,ji=v&&!s&&!(Di||Ki)&&!(xi&&!J));if(i.$$.dirty[1]&448|i.$$.dirty[4]&34112256)e:hi.set((xi||s||k||$||A)&&!ji&&(ae==="video"||ae==="ads")&&!Q);if(i.$$.dirty[0]&2|i.$$.dirty[1]&224|i.$$.dirty[4]&16777248)e:t(43,fn=Re.features.thumbTimer&&_t&&ae==="video"&&!I&&!Q&&!ri&&(Re.hideThumbTimerAfterTouch&&!V||!Re.hideThumbTimerAfterTouch));if(i.$$.dirty[1]&128|i.$$.dirty[4]&8519680)e:t(44,Jt=ae==="video"&&!le&&g);if(i.$$.dirty[0]&128|i.$$.dirty[1]&64|i.$$.dirty[4]&4259840)e:t(31,xt=(Ze&&G||!Ze)&&f&&!Q);if(i.$$.dirty[1]&33|i.$$.dirty[4]&3145728)e:t(45,Wi=W&&!(I||xt)&&!v);if(i.$$.dirty[0]&2|i.$$.dirty[4]&1573888)e:!k&&ai&&!v&&Lt(Re.controls.hideTimeoutCursor),t(134,ai=k);if(i.$$.dirty[0]&1|i.$$.dirty[1]&24)e:t(46,re=se&&T%180?h.height/h.width:1);if(i.$$.dirty[4]&262144)e:t(47,ft=y!==null);if(i.$$.dirty[1]&6|i.$$.dirty[4]&16384)e:ko(qn,n,a);if(i.$$.dirty[1]&4|i.$$.dirty[4]&8192)e:{let K=r;K&&jo(K,n,zn)}if(i.$$.dirty[1]&6|i.$$.dirty[4]&4096)e:ko(qn,n,l);if(i.$$.dirty[1]&4|i.$$.dirty[4]&2048)e:{let K=o;K&&Rf(K,n,Un)}},[se,Re,Ue,We,Se,fe,Ae,Ze,ut,ct,at,ye,mt,lt,dt,ht,Et,Ke,Qt,Bt,Mt,ti,me,Dt,wt,At,Ut,en,di,mi,Bi,xt,qn,n,h,T,I,Q,ae,$,si,Si,Ri,fn,Jt,Wi,re,ft,Gi,p,S,E,Y,Le,je,qe,Je,Ne,we,X,ve,Oe,Xe,xe,Yt,pi,tn,_i,Fi,ii,Ai,hi,Hi,gi,ni,Pt,Nt,bi,vi,Ot,oi,li,Vt,It,Mi,Zt,nn,on,jt,yi,zi,wi,ri,Ft,Wt,Xt,Yi,Ci,rn,qi,Gt,Ye,Ht,ze,Ji,ui,bn,$i,ie,yt,Pn,Ln,Qn,Yn,Zn,Xn,ro,ee,an,Io,To,zn,so,Un,Eo,ke,oe,it,vt,_t,Di,Ki,xi,ji,ai,o,l,r,a,s,f,g,y,k,v,W,G,le,V,A,J,x,N,te,Ao,$o,Mo,Bn,Vo,ao,uo,Lo]}var Zu=class extends q{constructor(e){super(),U(this,e,i6,t6,z,{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,outerContainerRef:127,playerStarted:22,fullScreenTarget:128,showMiniTimer:129,playNextVideo:23,playPrevVideo:24,repeatPlaylist:25,seekToInteractive:26,toggleGraph:27,playPrevChapter:28,firstStart:29},$5,[-1,-1,-1,-1,-1,-1,-1])}},U0=Zu;import{PlaybackState as f6}from"@vkontakte/videoplayer-core";import{isIOS as G0,noop as $u}from"@vkontakte/videoplayer-shared";import{CurrentClientDevice as n6,getIOSVersion as o6,isIOS as l6}from"@vkontakte/videoplayer-shared";var K0=i=>{if(!l6(!0))return!1;let e=i.device===n6.iPad||window?.screen.width>700,t=o6();return!e||e&&!!t&&t<16};function r6(i){Ce(i,"svelte-nhq2ld",".double-click-area.svelte-nhq2ld{position:absolute;top:0;height:100%;width:25%;overflow:hidden}.double-click-area.left.svelte-nhq2ld{left:0}.double-click-area.right.svelte-nhq2ld{right:0}.semicircle.svelte-nhq2ld{position:absolute;top:0;width:100%;height:100%;background-color:rgba(0, 0, 0, 0.5)}.semicircle.left.svelte-nhq2ld{left:0;border-top-right-radius:50%;border-bottom-right-radius:50%}.semicircle.right.svelte-nhq2ld{right:0;border-top-left-radius:50%;border-bottom-left-radius:50%}.info.svelte-nhq2ld{position:absolute;top:50%;left:50%;transform:translate(-50%, -50%);display:flex;flex-direction:column;align-items:center;justify-content:center}.triangles-wrapper.svelte-nhq2ld{position:relative;display:flex;margin-bottom:10px;justify-content:center}.triangle.svelte-nhq2ld{width:0;height:0;border-top:6px solid transparent;border-bottom:6px solid transparent;animation:svelte-nhq2ld-blink 500ms infinite;opacity:0}.triangle.right.svelte-nhq2ld:nth-child(1),.triangle.left.svelte-nhq2ld:nth-child(3){animation-delay:0ms}.triangle.right.svelte-nhq2ld:nth-child(2),.triangle.left.svelte-nhq2ld:nth-child(2){animation-delay:100ms}.triangle.right.svelte-nhq2ld:nth-child(3),.triangle.left.svelte-nhq2ld:nth-child(1){animation-delay:200ms}@keyframes svelte-nhq2ld-blink{0%{opacity:0}50%{opacity:1}100%{opacity:0}}.triangle.left.svelte-nhq2ld{border-right:8px solid var(--white)}.triangle.right.svelte-nhq2ld{border-left:8px solid var(--white)}.triangle.svelte-nhq2ld:not(:last-child){margin-right:5px}.step-caption.svelte-nhq2ld{margin:0;text-align:center;font-size:12px;line-height:1;color:var(--white)}")}function j0(i){let e,t,n,o,l,r,a,s,u,f,p,h,b,g,S,y=j("doubletap_seek_step",{seconds:i[1].toFixed(0)})+"",T;return{c(){e=P("div"),n=O(),o=P("div"),l=P("div"),r=P("div"),s=O(),u=P("div"),p=O(),h=P("div"),g=O(),S=P("p"),T=Be(y),c(e,"class",t="semicircle "+i[0]+" svelte-nhq2ld"),c(r,"class",a="triangle "+i[0]+" svelte-nhq2ld"),c(u,"class",f="triangle "+i[0]+" svelte-nhq2ld"),c(h,"class",b="triangle "+i[0]+" svelte-nhq2ld"),c(l,"class","triangles-wrapper svelte-nhq2ld"),c(S,"class","step-caption svelte-nhq2ld"),c(o,"class","info svelte-nhq2ld")},m(k,v){C(k,e,v),C(k,n,v),C(k,o,v),m(o,l),m(l,r),m(l,s),m(l,u),m(l,p),m(l,h),m(o,g),m(o,S),m(S,T)},p(k,v){v&1&&t!==(t="semicircle "+k[0]+" svelte-nhq2ld")&&c(e,"class",t),v&1&&a!==(a="triangle "+k[0]+" svelte-nhq2ld")&&c(r,"class",a),v&1&&f!==(f="triangle "+k[0]+" svelte-nhq2ld")&&c(u,"class",f),v&1&&b!==(b="triangle "+k[0]+" svelte-nhq2ld")&&c(h,"class",b),v&2&&y!==(y=j("doubletap_seek_step",{seconds:k[1].toFixed(0)})+"")&&Qe(T,y)},d(k){k&&(w(e),w(n),w(o))}}}function s6(i){let e,t,n,o,l=i[2]&&j0(i);return{c(){e=P("div"),l&&l.c(),c(e,"class",t="double-click-area "+i[0]+" svelte-nhq2ld")},m(r,a){C(r,e,a),l&&l.m(e,null),n||(o=pe(e,"click",rt(i[3]())),n=!0)},p(r,[a]){r[2]?l?l.p(r,a):(l=j0(r),l.c(),l.m(e,null)):l&&(l.d(1),l=null),a&1&&t!==(t="double-click-area "+r[0]+" svelte-nhq2ld")&&c(e,"class",t)},i:_e,o:_e,d(r){r&&w(e),l&&l.d(),n=!1,o()}}}function a6(i,e,t){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(),t(2,a=!0),u=window.setTimeout(()=>{t(2,a=!1)},500))}};return Tn(()=>{window.clearTimeout(s),window.clearTimeout(u)}),i.$$set=p=>{"side"in p&&t(0,n=p.side),"seekStep"in p&&t(1,o=p.seekStep),"handleSingleFirstClick"in p&&t(4,l=p.handleSingleFirstClick),"handleSecondClick"in p&&t(5,r=p.handleSecondClick)},[n,o,a,f,l,r]}var Xu=class extends q{constructor(e){super(),U(this,e,a6,s6,z,{side:0,seekStep:1,handleSingleFirstClick:4,handleSecondClick:5},r6)}},Ju=Xu;function u6(i,e,t){let{playNextVideo:n}=e;return Ct(()=>{n()}),i.$$set=o=>{"playNextVideo"in o&&t(0,n=o.playNextVideo)},[n]}var xu=class extends q{constructor(e){super(),U(this,e,u6,null,z,{playNextVideo:0})}},W0=xu;var{window:c6}=co;function d6(i){Ce(i,"svelte-1jy89ut",".player-wrapper.svelte-1jy89ut{position:absolute;width:100%;height:100%}.player-wrapper.svelte-1jy89ut .player-media{position:absolute;left:0;top:0;width:100%;height:100%;background:var(--black);transition:transform 0.2s ease-in-out}.spherical-video-icon.svelte-1jy89ut{display:inline-block;position:absolute;top:calc(50% - 23px);left:calc(50% - 38px)}.video-wrapper.svelte-1jy89ut,.video-container.svelte-1jy89ut,.ads-container.svelte-1jy89ut{position:absolute;width:100%;height:100%;left:0;top:0}.video-wrapper.svelte-1jy89ut{z-index:var(--video-container-z-index);background:var(--black)}.video-container.svelte-1jy89ut{z-index:var(--video-container-z-index);transition:var(--rotate-transition-duration) ease all}.video-container.fast-rotate.svelte-1jy89ut{transition:none}.ads-container.svelte-1jy89ut{background:var(--black)}")}function Q0(i){let e,t,n,o;e=new Ju({props:{side:"left",seekStep:i[1].controls.seekStepMobile/1e3,handleSingleFirstClick:i[100],handleSecondClick:i[130]}});let l=!i[48]&&Y0(i);return{c(){B(e.$$.fragment),t=O(),l&&l.c(),n=ot()},m(r,a){L(e,r,a),C(r,t,a),l&&l.m(r,a),C(r,n,a),o=!0},p(r,a){let s={};a[0]&2&&(s.seekStep=r[1].controls.seekStepMobile/1e3),e.$set(s),r[48]?l&&(ue(),_(l,1,1,()=>{l=null}),ce()):l?(l.p(r,a),a[1]&131072&&d(l,1)):(l=Y0(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&&(w(t),w(n)),R(e,r),l&&l.d(r)}}}function Y0(i){let e,t;return e=new Ju({props:{side:"right",seekStep:i[1].controls.seekStepMobile/1e3,handleSingleFirstClick:i[100],handleSecondClick:i[131]}}),{c(){B(e.$$.fragment)},m(n,o){L(e,n,o),t=!0},p(n,o){let l={};o[0]&2&&(l.seekStep=n[1].controls.seekStepMobile/1e3),e.$set(l)},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){_(e.$$.fragment,n),t=!1},d(n){R(e,n)}}}function Z0(i){let e,t;return e=new Kr({props:{thumbUrl:i[2],startTime:i[3]?.startTime}}),{c(){B(e.$$.fragment)},m(n,o){L(e,n,o),t=!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){t||(d(e.$$.fragment,n),t=!0)},o(n){_(e.$$.fragment,n),t=!1},d(n){R(e,n)}}}function X0(i){let e,t;return e=new jr({}),{c(){B(e.$$.fragment)},m(n,o){L(e,n,o),t=!0},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){_(e.$$.fragment,n),t=!1},d(n){R(e,n)}}}function J0(i){let e,t,n;return t=new Yl({props:{adsSlotId:i[7],adsParams:i[8],adsPreviewParam:i[9],duration:i[10]}}),{c(){e=P("div"),B(t.$$.fragment),c(e,"class","ads-container svelte-1jy89ut"),H(e,"hidden",i[34]!=="ads")},m(o,l){C(o,e,l),L(t,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]),t.$set(r),(!n||l[1]&8)&&H(e,"hidden",o[34]!=="ads")},i(o){n||(d(t.$$.fragment,o),n=!0)},o(o){_(t.$$.fragment,o),n=!1},d(o){o&&w(e),R(t)}}}function x0(i){let e,t;return e=new W0({props:{playNextVideo:i[22]}}),{c(){B(e.$$.fragment)},m(n,o){L(e,n,o),t=!0},p(n,o){let l={};o[0]&4194304&&(l.playNextVideo=n[22]),e.$set(l)},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){_(e.$$.fragment,n),t=!1},d(n){R(e,n)}}}function $0(i){let e,t;return e=new Fr({}),{c(){B(e.$$.fragment)},m(n,o){L(e,n,o),t=!0},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){_(e.$$.fragment,n),t=!1},d(n){R(e,n)}}}function ep(i){let e,t,n;return t=new Fl({props:{"aria-label":j("video360")}}),{c(){e=P("div"),B(t.$$.fragment),c(e,"class","spherical-video-icon svelte-1jy89ut")},m(o,l){C(o,e,l),L(t,e,null),n=!0},p:_e,i(o){n||(d(t.$$.fragment,o),n=!0)},o(o){_(t.$$.fragment,o),n=!1},d(o){o&&w(e),R(t)}}}function tp(i){let e,t;return e=new zr({props:{thumbUrl:i[2],chromecastDeviceName:i[51]}}),{c(){B(e.$$.fragment)},m(n,o){L(e,n,o),t=!0},p(n,o){let l={};o[0]&4&&(l.thumbUrl=n[2]),o[1]&1048576&&(l.chromecastDeviceName=n[51]),e.$set(l)},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){_(e.$$.fragment,n),t=!1},d(n){R(e,n)}}}function ip(i){let e,t;return e=new Hr({props:{shifted:i[30],captions:i[53],position:i[44],playerSize:i[31],isMobile:!0}}),{c(){B(e.$$.fragment)},m(n,o){L(e,n,o),t=!0},p(n,o){let l={};o[0]&1073741824&&(l.shifted=n[30]),o[1]&4194304&&(l.captions=n[53]),o[1]&8192&&(l.position=n[44]),o[1]&1&&(l.playerSize=n[31]),e.$set(l)},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){_(e.$$.fragment,n),t=!1},d(n){R(e,n)}}}function np(i){let e,t,n,o,l;return t=new qr({}),{c(){e=P("div"),B(t.$$.fragment)},m(r,a){C(r,e,a),L(t,e,null),n=!0,o||(l=pe(e,"click",rt(i[101])),o=!0)},p:_e,i(r){n||(d(t.$$.fragment,r),n=!0)},o(r){_(t.$$.fragment,r),n=!1},d(r){r&&w(e),R(t),o=!1,l()}}}function op(i){let e,t,n;function o(r){i[132](r)}let l={bottomHidden:i[34]==="thumb"||i[34]==="waitingLive"||i[34]==="waitingRecord"||i[34]==="ads",showControls:i[30],bottomNoSmooth:i[45],isAds:i[34]==="ads",canRewindLive:i[5]&&i[54]!==0,logoClickable:i[11],logoHidden:i[12],logoTargetUrl:i[13],showNextPrevButtons:i[14],nextButtonActive:i[15],prevButtonActive:i[16],isOneVideoPlaylist:i[19],supportLink:i[20],customFullscreenSupported:i[39],playNextVideo:i[22],playPrevVideo:i[23],repeatPlaylist:i[24],toggleFullscreen:i[98],seekToInteractive:i[25],toggleGraph:i[26],playPrevChapter:i[27],onDisabledPlayPrevChapterClick:i[104],onDisabledSeekToInteractiveClick:i[105]};return i[37]!==void 0&&(l.controlsElementRef=i[37]),e=new Or({props:l}),he.push(()=>He(e,"controlsElementRef",o)),{c(){B(e.$$.fragment)},m(r,a){L(e,r,a),n=!0},p(r,a){let s={};a[1]&8&&(s.bottomHidden=r[34]==="thumb"||r[34]==="waitingLive"||r[34]==="waitingRecord"||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]&8388608&&(s.canRewindLive=r[5]&&r[54]!==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]),!t&&a[1]&64&&(t=!0,s.controlsElementRef=r[37],Fe(()=>t=!1)),e.$set(s)},i(r){n||(d(e.$$.fragment,r),n=!0)},o(r){_(e.$$.fragment,r),n=!1},d(r){R(e,r)}}}function lp(i){let e,t;return e=new or({}),{c(){B(e.$$.fragment)},m(n,o){L(e,n,o),t=!0},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){_(e.$$.fragment,n),t=!1},d(n){R(e,n)}}}function rp(i){let e,t;return e=new tr({}),{c(){B(e.$$.fragment)},m(n,o){L(e,n,o),t=!0},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){_(e.$$.fragment,n),t=!1},d(n){R(e,n)}}}function sp(i){let e,t,n=i[5]&&i[78]&&!i[47].has("TIMELINE"),o,l,r,a,s,u,f,p,h,b,g,S,y,T,k,v;e=new Ur({props:{hidden:i[34]!=="thumb"||i[33]||i[89]&&i[4],thumbUrl:i[2],startVideo:i[28]}});let I=n&&Q0(i),W=i[34]==="waitingLive"&&Z0(i),Q=i[34]==="waitingRecord"&&X0(i),G=i[6]&&i[21]&&J0(i),le=i[41]&&i[17]&&i[18]&&x0(i),ae=i[49]&&$0(i),V=i[50]&&ep(i),A=i[35]&&tp(i),$=i[52].value!=="off"&&ip(i),J=i[33]&&np(i),x=i[21]&&op(i);S=new Xl({props:{isLive:i[55],isHidden:!i[40],isPlaying:i[56],position:i[44],duration:i[43]}});let N=i[38]&&lp(i),te=i[57]&&rp(i);return{c(){B(e.$$.fragment),t=O(),I&&I.c(),o=O(),W&&W.c(),l=O(),Q&&Q.c(),r=O(),G&&G.c(),a=O(),le&&le.c(),s=O(),ae&&ae.c(),u=O(),V&&V.c(),f=O(),A&&A.c(),p=O(),$&&$.c(),h=O(),J&&J.c(),b=O(),x&&x.c(),g=O(),B(S.$$.fragment),y=O(),N&&N.c(),T=O(),te&&te.c(),k=ot()},m(E,Y){L(e,E,Y),C(E,t,Y),I&&I.m(E,Y),C(E,o,Y),W&&W.m(E,Y),C(E,l,Y),Q&&Q.m(E,Y),C(E,r,Y),G&&G.m(E,Y),C(E,a,Y),le&&le.m(E,Y),C(E,s,Y),ae&&ae.m(E,Y),C(E,u,Y),V&&V.m(E,Y),C(E,f,Y),A&&A.m(E,Y),C(E,p,Y),$&&$.m(E,Y),C(E,h,Y),J&&J.m(E,Y),C(E,b,Y),x&&x.m(E,Y),C(E,g,Y),L(S,E,Y),C(E,y,Y),N&&N.m(E,Y),C(E,T,Y),te&&te.m(E,Y),C(E,k,Y),v=!0},p(E,Y){let Le={};Y[0]&16|Y[1]&12&&(Le.hidden=E[34]!=="thumb"||E[33]||E[89]&&E[4]),Y[0]&4&&(Le.thumbUrl=E[2]),Y[0]&268435456&&(Le.startVideo=E[28]),e.$set(Le),Y[0]&32|Y[1]&65536&&(n=E[5]&&E[78]&&!E[47].has("TIMELINE")),n?I?(I.p(E,Y),Y[0]&32|Y[1]&65536&&d(I,1)):(I=Q0(E),I.c(),d(I,1),I.m(o.parentNode,o)):I&&(ue(),_(I,1,1,()=>{I=null}),ce()),E[34]==="waitingLive"?W?(W.p(E,Y),Y[1]&8&&d(W,1)):(W=Z0(E),W.c(),d(W,1),W.m(l.parentNode,l)):W&&(ue(),_(W,1,1,()=>{W=null}),ce()),E[34]==="waitingRecord"?Q?Y[1]&8&&d(Q,1):(Q=X0(E),Q.c(),d(Q,1),Q.m(r.parentNode,r)):Q&&(ue(),_(Q,1,1,()=>{Q=null}),ce()),E[6]&&E[21]?G?(G.p(E,Y),Y[0]&2097216&&d(G,1)):(G=J0(E),G.c(),d(G,1),G.m(a.parentNode,a)):G&&(ue(),_(G,1,1,()=>{G=null}),ce()),E[41]&&E[17]&&E[18]?le?(le.p(E,Y),Y[0]&393216|Y[1]&1024&&d(le,1)):(le=x0(E),le.c(),d(le,1),le.m(s.parentNode,s)):le&&(ue(),_(le,1,1,()=>{le=null}),ce()),E[49]?ae?Y[1]&262144&&d(ae,1):(ae=$0(E),ae.c(),d(ae,1),ae.m(u.parentNode,u)):ae&&(ue(),_(ae,1,1,()=>{ae=null}),ce()),E[50]?V?(V.p(E,Y),Y[1]&524288&&d(V,1)):(V=ep(E),V.c(),d(V,1),V.m(f.parentNode,f)):V&&(ue(),_(V,1,1,()=>{V=null}),ce()),E[35]?A?(A.p(E,Y),Y[1]&16&&d(A,1)):(A=tp(E),A.c(),d(A,1),A.m(p.parentNode,p)):A&&(ue(),_(A,1,1,()=>{A=null}),ce()),E[52].value!=="off"?$?($.p(E,Y),Y[1]&2097152&&d($,1)):($=ip(E),$.c(),d($,1),$.m(h.parentNode,h)):$&&(ue(),_($,1,1,()=>{$=null}),ce()),E[33]?J?(J.p(E,Y),Y[1]&4&&d(J,1)):(J=np(E),J.c(),d(J,1),J.m(b.parentNode,b)):J&&(ue(),_(J,1,1,()=>{J=null}),ce()),E[21]?x?(x.p(E,Y),Y[0]&2097152&&d(x,1)):(x=op(E),x.c(),d(x,1),x.m(g.parentNode,g)):x&&(ue(),_(x,1,1,()=>{x=null}),ce());let je={};Y[1]&16777216&&(je.isLive=E[55]),Y[1]&512&&(je.isHidden=!E[40]),Y[1]&33554432&&(je.isPlaying=E[56]),Y[1]&8192&&(je.position=E[44]),Y[1]&4096&&(je.duration=E[43]),S.$set(je),E[38]?N?Y[1]&128&&d(N,1):(N=lp(E),N.c(),d(N,1),N.m(T.parentNode,T)):N&&(ue(),_(N,1,1,()=>{N=null}),ce()),E[57]?te?Y[1]&67108864&&d(te,1):(te=rp(E),te.c(),d(te,1),te.m(k.parentNode,k)):te&&(ue(),_(te,1,1,()=>{te=null}),ce())},i(E){v||(d(e.$$.fragment,E),d(I),d(W),d(Q),d(G),d(le),d(ae),d(V),d(A),d($),d(J),d(x),d(S.$$.fragment,E),d(N),d(te),v=!0)},o(E){_(e.$$.fragment,E),_(I),_(W),_(Q),_(G),_(le),_(ae),_(V),_(A),_($),_(J),_(x),_(S.$$.fragment,E),_(N),_(te),v=!1},d(E){E&&(w(t),w(o),w(l),w(r),w(a),w(s),w(u),w(f),w(p),w(h),w(b),w(g),w(y),w(T),w(k)),R(e,E),I&&I.d(E),W&&W.d(E),Q&&Q.d(E),G&&G.d(E),le&&le.d(E),ae&&ae.d(E),V&&V.d(E),A&&A.d(E),$&&$.d(E),J&&J.d(E),x&&x.d(E),R(S,E),N&&N.d(E),te&&te.d(E)}}}function m6(i){let e,t,n,o,l,r=i[46],a,s,u,f,p,h,b=sp(i);return{c(){e=P("div"),t=P("div"),n=P("div"),l=O(),b.c(),a=O(),s=P("div"),c(n,"class","video-container svelte-1jy89ut"),c(n,"style",o=`transform: rotate(${i[32]}deg) scale(${i[42]})`),H(n,"fast-rotate",!i[1].isSmoothVideoRotate),c(t,"class","video-wrapper svelte-1jy89ut"),H(t,"hidden",i[34]!=="video"),c(s,"class","overlay-container"),c(e,"class","player-wrapper svelte-1jy89ut"),c(e,"role","region"),c(e,"aria-label",u=j("aria_label_video_player")),c(e,"tabindex","-1")},m(g,S){C(g,e,S),m(e,t),m(t,n),i[129](n),m(e,l),b.m(e,null),m(e,a),m(e,s),i[133](s),i[134](e),f=!0,p||(h=[pe(c6,"blur",i[99]),pe(t,"click",kt(i[100])),pe(e,"click",i[102],!0),pe(e,"focusin",i[103],!0)],p=!0)},p(g,S){(!f||S[1]&2050&&o!==(o=`transform: rotate(${g[32]}deg) scale(${g[42]})`))&&c(n,"style",o),(!f||S[0]&2)&&H(n,"fast-rotate",!g[1].isSmoothVideoRotate),(!f||S[1]&8)&&H(t,"hidden",g[34]!=="video"),S[1]&32768&&z(r,r=g[46])?(ue(),_(b,1,1,_e),ce(),b=sp(g),b.c(),d(b,1),b.m(e,a)):b.p(g,S)},i(g){f||(d(b),f=!0)},o(g){_(b),f=!1},d(g){g&&w(e),i[129](null),b.d(g),i[133](null),i[134](null),p=!1,tt(h)}}}function p6(i,e,t){let n,o,l,r,a,s,u,f,p,h,b,g,S,y,T,k,v,I,W,Q,G,le,ae,V,A,$,J,x,N,te,E,Y,Le,je,qe,Je,Ne,{store:we}=e,{uiConfig:X}=e,{thumbUrl:ve}=e,{videoContainer:Oe}=e,{interactiveContainer:Xe}=e,{live:xe}=e,{autoplay:ke}=e,{canRewindLive:Re}=e,{showAds:Ue}=e,{adsSlotId:We=void 0}=e,{adsParams:se=void 0}=e,{adsPreviewParam:oe=void 0}=e,{duration:Se=void 0}=e,{logoClickable:fe}=e,{logoHidden:Ae}=e,{logoTargetUrl:Ze=""}=e,{showNextPrevButtons:ut=!1}=e,{nextButtonActive:ct=!1}=e,{prevButtonActive:at=!1}=e,{endScreenVideoTitle:ye=void 0}=e,{endScreenVideoThumb:mt=void 0}=e,{isOneVideoPlaylist:lt=!1}=e,{supportLink:dt}=e,{outerContainerRef:ht=void 0}=e,{showMiniTimer:Et=!1}=e,{fullScreenTarget:Ke=void 0}=e,{playerStarted:Qt=!1}=e,{playNextVideo:Bt=$u}=e,{playPrevVideo:Mt=$u}=e,{repeatPlaylist:ti=$u}=e,{seekToInteractive:it}=e,{toggleGraph:me}=e,{playPrevChapter:vt}=e,{firstStart:_t}=e,{seekTime:Dt}=e,wt=we.getLogger().createComponentLog("Root component"),At=we.interfaceLanguage$;F(i,At,ie=>t(46,$=ie));let Ut=we.state.playbackState$;F(i,Ut,ie=>t(126,ae=ie));let en=we.ads.playbackState;F(i,en,ie=>t(127,V=ie));let di=we.state.positionWithScrubbing$;F(i,di,ie=>t(44,a=ie));let mi=we.state.duration$;F(i,mi,ie=>t(43,r=ie));let Ei=we.playerPhase;F(i,Ei,ie=>t(34,W=ie));let Yt=we.ui.isFullscreen;F(i,Yt,ie=>t(141,u=ie));let pi=we.ui.controlsVisible;F(i,pi,ie=>t(30,o=ie));let tn=we.ui.interactiveHideMobileControls;F(i,tn,ie=>t(118,b=ie));let _i=we.ui.settingsMenuVisible;F(i,_i,ie=>t(117,n=ie));let Fi=we.ui.scrubbingInProgress;F(i,Fi,ie=>t(119,S=ie));let ii=we.ui.debugPanelVisible;F(i,ii,ie=>t(57,Ne=ie));let Ai=we.state.isLoaderVisible;F(i,Ai,ie=>t(128,A=ie));let hi=we.state.isEnded$;F(i,hi,ie=>t(121,k=ie));let Hi=we.state.chromecastConnected$;F(i,Hi,ie=>t(35,Q=ie));let gi=we.state.chromecastDeviceName$;F(i,gi,ie=>t(51,E=ie));let ni=we.ads.postrollPassed;F(i,ni,ie=>t(122,v=ie));let Pt=we.ui.mobileUnmuteButtonExpanded,Nt=we.ui.mobileUnmuteButtonVisible,bi=we.state.isLive$;F(i,bi,ie=>t(55,qe=ie));let vi=we.state.isPlaying$;F(i,vi,ie=>t(56,Je=ie));let Ot=we.state.isActiveLive$;F(i,Ot,ie=>t(48,x=ie));let oi=we.state.isRewindableLive$,li=we.state.crashed$;F(i,li,ie=>t(33,T=ie));let Vt=we.webApi.pictureInPictureApi,It=we.state.videoSize$;F(i,It,ie=>t(142,p=ie));let Kt=we.state.currentSubtitle$;F(i,Kt,ie=>t(52,Y=ie));let Mi=we.state.currentSubtitleCaptions$;F(i,Mi,ie=>t(53,Le=ie));let Zt=we.state.duration$;F(i,Zt,ie=>t(54,je=ie));let nn=we.state.graphIsOpened$;F(i,nn,ie=>t(125,le=ie));let on=we.ui.playerSize;F(i,on,ie=>t(31,f=ie));let jt=we.ui.is3DVideo;F(i,jt,ie=>t(49,N=ie));let yi=we.ui.icon3DVideoVisible;F(i,yi,ie=>t(50,te=ie));let zi=we.ui.rotateAlpha;F(i,zi,ie=>t(32,g=ie));let wi=we.state.isInteractive,ri=we.state.isInteractiveTime$;F(i,ri,ie=>t(120,y=ie));let Ft=we.state.isInteractiveExpectation$;F(i,Ft,ie=>t(124,G=ie));let Wt=we.state.hasInteractiveBranches,ki=we.ui.controls.disabledControls$;F(i,ki,ie=>t(47,J=ie));let Xt=we.ui.touched;F(i,Xt,ie=>t(123,I=ie));let Yi=we.ui.clientInfo$;F(i,Yi,ie=>t(140,s=ie));let Ci=we.ui.overlayContainer$,ln=we.state.isFirstBytes$;F(i,ln,ie=>t(139,l=ie));let rn=we.actions.internal.closeSettingsMenu,Zi=we.callbacks?.onDisabledPlayPrevChapterClick,qi=we.callbacks?.onDisabledSeekToInteractiveClick,Vi,Gt,si,Si,Li,Xi,Pi,Ri=De(!1);F(i,Ri,ie=>t(45,h=ie));let Bi,Ye=!1,Ui,Ht=!1,ze,Ji=!0,Di,Ki,xi=!1,ji;Vt?.setContext(nl());let fn=ie=>{clearTimeout(Si),ie&&(Nt.set(!0),Pt.set(!0),Si=window.setTimeout(()=>{Pt.set(!1)},X.controls.collapseMobileUnmute),wi||xt(X.controls.hideTimeoutMobile))};we.setUiCallbacks({onStarted:fn});let Jt=()=>{window.clearTimeout(si),t(112,Ye=!1),b&&tn.set(!1)},xt=ie=>{Jt(),t(112,Ye=!0),si=window.setTimeout(()=>t(112,Ye=!1),ie);let yt=ie-100;Bi=window.setTimeout(()=>{h&&Ri.set(!1)},yt>0?yt:ie)},Wi=jt.subscribe(ie=>{yi.set(ie),ie&&(window.clearTimeout(Li),Li=window.setTimeout(()=>yi.set(!1),X.controls.hide360IconTimeout))}),ai=async()=>{let ie=$n();if(ie){xt(X.controls.hideTimeoutFullscreen);try{await Vt?.remove()}catch(yt){wt({message:String(yt)})}try{let yt=p?.width&&p?.height?p:f;await gf(yt)}catch(yt){wt({message:String(yt)})}}Yt.set(ie),we.getAdmanWrapper().setFullscreen(ie),u?we.callbacks?.onFullscreenEnter?.():we.callbacks?.onFullscreenExit?.()},re=ie=>{let yt=ie;on.set({width:yt.target.width,height:yt.target.height})};Ct(()=>(Gl(ai),vo(Vt)&&(Vt?.assignPlayerContainer(Vi),Vt?.registryExternalEventHandlers({resize:re})),t(39,Ji=!K0(s)),Xe&&Oe.parentElement?.insertBefore(Xe,Oe.nextSibling),()=>{window.clearTimeout(si),window.clearTimeout(Bi),window.clearTimeout(Si),window.clearTimeout(Li),Wi(),Vt?.dispose(),Ql(ai)}));let ft=ie=>{let yt=a+(ie==="forward"?1:-1)*X.controls.seekStepMobile/1e3;yt<0?yt=0:yt>r&&(yt=r-1),t(114,Ht=!0),Dt(yt)},ui=async()=>{if($n())await Wl(document),wt({message:"exit fullscreen"});else{if(wt({message:"request fullscreen"}),G0()&&!l)return;let ie=G0()||!ht?Vi:ht,yt=ie.getRootNode(),Pn=yt instanceof ShadowRoot?yt.host:yt,Ln=Ke instanceof HTMLElement&&Ke.contains(Pn),Rn=X.allowChangingFullscreenTarget&&Ke&&Ln?Ke:ie;await jl(Rn)}},ci=()=>{rn()},$t=()=>{if(n){ci();return}if(!Qt){_t(),xt(X.controls.hideTimeoutCursor);return}t(114,Ht=!1),o?Jt():xt(X.controls.hideTimeoutMobile)},Gi=()=>{if(n){ci();return}},kn=()=>{Xt.set(!0)},hn=()=>{wi||(Ri.set(!0),xt(X.controls.hideTimeoutCursor))},dn=ie=>{Zi&&(Zi(ie),xt(X.controls.hideTimeoutMobile))},Lt=ie=>{qi&&(qi(ie),xt(X.controls.hideTimeoutMobile))};function gn(ie){he[ie?"unshift":"push"](()=>{Oe=ie,t(0,Oe)})}let Vn=()=>ft("backward"),Cn=()=>ft("forward");function Sn(ie){Gt=ie,t(37,Gt)}function bn(ie){he[ie?"unshift":"push"](()=>{Pi=ie,t(29,Pi)})}function $i(ie){he[ie?"unshift":"push"](()=>{Vi=ie,t(36,Vi)})}return i.$$set=ie=>{"store"in ie&&t(106,we=ie.store),"uiConfig"in ie&&t(1,X=ie.uiConfig),"thumbUrl"in ie&&t(2,ve=ie.thumbUrl),"videoContainer"in ie&&t(0,Oe=ie.videoContainer),"interactiveContainer"in ie&&t(107,Xe=ie.interactiveContainer),"live"in ie&&t(3,xe=ie.live),"autoplay"in ie&&t(4,ke=ie.autoplay),"canRewindLive"in ie&&t(5,Re=ie.canRewindLive),"showAds"in ie&&t(6,Ue=ie.showAds),"adsSlotId"in ie&&t(7,We=ie.adsSlotId),"adsParams"in ie&&t(8,se=ie.adsParams),"adsPreviewParam"in ie&&t(9,oe=ie.adsPreviewParam),"duration"in ie&&t(10,Se=ie.duration),"logoClickable"in ie&&t(11,fe=ie.logoClickable),"logoHidden"in ie&&t(12,Ae=ie.logoHidden),"logoTargetUrl"in ie&&t(13,Ze=ie.logoTargetUrl),"showNextPrevButtons"in ie&&t(14,ut=ie.showNextPrevButtons),"nextButtonActive"in ie&&t(15,ct=ie.nextButtonActive),"prevButtonActive"in ie&&t(16,at=ie.prevButtonActive),"endScreenVideoTitle"in ie&&t(17,ye=ie.endScreenVideoTitle),"endScreenVideoThumb"in ie&&t(18,mt=ie.endScreenVideoThumb),"isOneVideoPlaylist"in ie&&t(19,lt=ie.isOneVideoPlaylist),"supportLink"in ie&&t(20,dt=ie.supportLink),"outerContainerRef"in ie&&t(108,ht=ie.outerContainerRef),"showMiniTimer"in ie&&t(109,Et=ie.showMiniTimer),"fullScreenTarget"in ie&&t(110,Ke=ie.fullScreenTarget),"playerStarted"in ie&&t(21,Qt=ie.playerStarted),"playNextVideo"in ie&&t(22,Bt=ie.playNextVideo),"playPrevVideo"in ie&&t(23,Mt=ie.playPrevVideo),"repeatPlaylist"in ie&&t(24,ti=ie.repeatPlaylist),"seekToInteractive"in ie&&t(25,it=ie.seekToInteractive),"toggleGraph"in ie&&t(26,me=ie.toggleGraph),"playPrevChapter"in ie&&t(27,vt=ie.playPrevChapter),"firstStart"in ie&&t(28,_t=ie.firstStart),"seekTime"in ie&&t(111,Dt=ie.seekTime)},i.$$.update=()=>{if(i.$$.dirty[1]&12|i.$$.dirty[4]&24)e:t(38,Xi=(W==="video"&&A||W==="ads"&&V==="inactive")&&!T);if(i.$$.dirty[0]&536870912)e:Ci.set(Pi);if(i.$$.dirty[4]&4)e:t(113,Ui=ae!==f6.PLAYING);if(i.$$.dirty[3]&303562752|i.$$.dirty[4]&3)e:t(115,ze=le||b||!Ye&&(k&&!!Wt||Ui&&G));if(i.$$.dirty[1]&28|i.$$.dirty[3]&91750400)e:pi.set((Ui||n||S||Q||Ye&&!Ht)&&!ze&&W==="video"&&!T);if(i.$$.dirty[0]&1073741826|i.$$.dirty[1]&12|i.$$.dirty[3]&1073807360)e:t(40,Di=X.features.thumbTimer&&Et&&W==="video"&&!o&&!T&&!wi&&(X.hideThumbTimerAfterTouch&&!I||!X.hideThumbTimerAfterTouch));if(i.$$.dirty[0]&64|i.$$.dirty[1]&4|i.$$.dirty[3]&805306368)e:t(41,Ki=(Ue&&v||!Ue)&&k&&!T);if(i.$$.dirty[0]&2|i.$$.dirty[3]&209715200)e:!S&&xi&&!y&&xt(X.controls.hideTimeoutMobile),t(116,xi=S);if(i.$$.dirty[0]&1|i.$$.dirty[1]&3)e:t(42,ji=Oe&&g%180?f.height/f.width:1)},[Oe,X,ve,xe,ke,Re,Ue,We,se,oe,Se,fe,Ae,Ze,ut,ct,at,ye,mt,lt,dt,Qt,Bt,Mt,ti,it,me,vt,_t,Pi,o,f,g,T,W,Q,Vi,Gt,Xi,Ji,Di,Ki,ji,r,a,h,$,J,x,N,te,E,Y,Le,je,qe,Je,Ne,At,Ut,en,di,mi,Ei,Yt,pi,tn,_i,Fi,ii,Ai,hi,Hi,gi,ni,bi,vi,Ot,oi,li,It,Kt,Mi,Zt,nn,on,jt,yi,zi,wi,ri,Ft,ki,Xt,Yi,ln,Ri,ft,ui,ci,$t,Gi,kn,hn,dn,Lt,we,Xe,ht,Et,Ke,Dt,Ye,Ui,Ht,ze,xi,n,b,S,y,k,v,I,G,le,ae,V,A,gn,Vn,Cn,Sn,bn,$i]}var ec=class extends q{constructor(e){super(),U(this,e,p6,m6,z,{store:106,uiConfig:1,thumbUrl:2,videoContainer:0,interactiveContainer:107,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,outerContainerRef:108,showMiniTimer:109,fullScreenTarget:110,playerStarted:21,playNextVideo:22,playPrevVideo:23,repeatPlaylist:24,seekToInteractive:25,toggleGraph:26,playPrevChapter:27,firstStart:28,seekTime:111},d6,[-1,-1,-1,-1,-1,-1])}},ap=ec;function b6(i){Ce(i,"svelte-cghoty",`.root.svelte-cghoty{--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(
|
|
33
33
|
180deg,
|
|
34
34
|
rgba(0, 0, 0, 0.00) 0%,
|
|
35
35
|
rgba(0, 0, 0, 0.01) 6.67%,
|
|
@@ -47,5 +47,5 @@ import{VERSION as wc,ChromecastState as Mn,PlaybackState as Ft,VideoQuality as k
|
|
|
47
47
|
rgba(0, 0, 0, 0.96) 86.67%,
|
|
48
48
|
rgba(0, 0, 0, 0.99) 93.33%,
|
|
49
49
|
#000 100%
|
|
50
|
-
);--timeline-preview-shadow:rgba(0, 0, 0, 0.08);--timeline-preview-bg:rgba(34, 34, 34, 1);--mobile-settings-bg:#2C2D2E;--button-hover-transition:opacity 0.2s;--video-container-z-index:0;--rotate-transition-duration:0.25s;position:relative;width:100%;height:100%;color:var(--white);font-size:12px;line-height:normal;overflow:hidden;outline:0;user-select:none;font-family:-apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;background:var(--black)}button{border:none;margin:0;padding:0;width:auto;overflow:visible;background:transparent;color:inherit;font:inherit;line-height:normal;-webkit-font-smoothing:inherit;-moz-osx-font-smoothing:inherit;-webkit-appearance:none;cursor:pointer}svg:not(.interactiveContainer svg){pointer-events:none}*:focus, *:focus-visible{outline:none}*:focus-visible{box-shadow:var(--focused-element-shadow)}.hidden{visibility:hidden;opacity:0}.overlay-container{pointer-events:none;top:0;left:0;height:100%;width:100%;position:fixed;z-index:10000}.out-of-view{position:absolute !important;left:-1000vh !important}`)}function Yh(t){let e,i,n;function o(l){t[57](l)}let s={store:t[0],uiConfig:t[34],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[35],showNextPrevButtons:t[15],nextButtonActive:t[16],prevButtonActive:t[17],endScreenVideoTitle:t[18],endScreenVideoThumb:t[19],isOneVideoPlaylist:t[20],supportLink:t[21],outerContainerRef:t[22],fullScreenTarget:t[23],showMiniTimer:t[24],playerStarted:t[33],playNextVideo:t[25],playPrevVideo:t[26],repeatPlaylist:t[27],seekToInteractive:t[28],toggleGraph:t[29],playPrevChapter:t[30],firstStart:t[36]};return t[32]!==void 0&&(s.videoContainer=t[32]),e=new Nh({props:s}),_e.push(()=>qe(e,"videoContainer",o)),{c(){U(e.$$.fragment)},m(l,r){H(e,l,r),n=!0},p(l,r){const a={};r[0]&1&&(a.store=l[0]),r[0]&2&&(a.title=l[1]),r[0]&4&&(a.thumbUrl=l[2]),r[0]&8&&(a.interactiveContainer=l[3]),r[0]&16&&(a.live=l[4]),r[0]&32&&(a.autoplay=l[5]),r[0]&64&&(a.canRewindLive=l[6]),r[0]&128&&(a.showAds=l[7]),r[0]&256&&(a.adsSlotId=l[8]),r[0]&512&&(a.adsParams=l[9]),r[0]&1024&&(a.adsPreviewParam=l[10]),r[0]&2048&&(a.duration=l[11]),r[0]&4096&&(a.logoClickable=l[12]),r[0]&8192&&(a.logoHidden=l[13]),r[0]&32768&&(a.showNextPrevButtons=l[15]),r[0]&65536&&(a.nextButtonActive=l[16]),r[0]&131072&&(a.prevButtonActive=l[17]),r[0]&262144&&(a.endScreenVideoTitle=l[18]),r[0]&524288&&(a.endScreenVideoThumb=l[19]),r[0]&1048576&&(a.isOneVideoPlaylist=l[20]),r[0]&2097152&&(a.supportLink=l[21]),r[0]&4194304&&(a.outerContainerRef=l[22]),r[0]&8388608&&(a.fullScreenTarget=l[23]),r[0]&16777216&&(a.showMiniTimer=l[24]),r[1]&4&&(a.playerStarted=l[33]),r[0]&33554432&&(a.playNextVideo=l[25]),r[0]&67108864&&(a.playPrevVideo=l[26]),r[0]&134217728&&(a.repeatPlaylist=l[27]),r[0]&268435456&&(a.seekToInteractive=l[28]),r[0]&536870912&&(a.toggleGraph=l[29]),r[0]&1073741824&&(a.playPrevChapter=l[30]),!i&&r[1]&2&&(i=!0,a.videoContainer=l[32],Ue(()=>i=!1)),e.$set(a)},i(l){n||(d(e.$$.fragment,l),n=!0)},o(l){b(e.$$.fragment,l),n=!1},d(l){F(e,l)}}}function Qh(t){let e,i,n;function o(l){t[56](l)}let s={store:t[0],uiConfig:t[34],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[35],showNextPrevButtons:t[15],nextButtonActive:t[16],prevButtonActive:t[17],endScreenVideoTitle:t[18],endScreenVideoThumb:t[19],isOneVideoPlaylist:t[20],supportLink:t[21],outerContainerRef:t[22],fullScreenTarget:t[23],showMiniTimer:t[24],playerStarted:t[33],playNextVideo:t[25],playPrevVideo:t[26],repeatPlaylist:t[27],seekToInteractive:t[28],toggleGraph:t[29],playPrevChapter:t[30],firstStart:t[36],seekTime:t[31]};return t[32]!==void 0&&(s.videoContainer=t[32]),e=new jh({props:s}),_e.push(()=>qe(e,"videoContainer",o)),{c(){U(e.$$.fragment)},m(l,r){H(e,l,r),n=!0},p(l,r){const a={};r[0]&1&&(a.store=l[0]),r[0]&4&&(a.thumbUrl=l[2]),r[0]&8&&(a.interactiveContainer=l[3]),r[0]&16&&(a.live=l[4]),r[0]&32&&(a.autoplay=l[5]),r[0]&64&&(a.canRewindLive=l[6]),r[0]&128&&(a.showAds=l[7]),r[0]&256&&(a.adsSlotId=l[8]),r[0]&512&&(a.adsParams=l[9]),r[0]&1024&&(a.adsPreviewParam=l[10]),r[0]&2048&&(a.duration=l[11]),r[0]&4096&&(a.logoClickable=l[12]),r[0]&8192&&(a.logoHidden=l[13]),r[0]&32768&&(a.showNextPrevButtons=l[15]),r[0]&65536&&(a.nextButtonActive=l[16]),r[0]&131072&&(a.prevButtonActive=l[17]),r[0]&262144&&(a.endScreenVideoTitle=l[18]),r[0]&524288&&(a.endScreenVideoThumb=l[19]),r[0]&1048576&&(a.isOneVideoPlaylist=l[20]),r[0]&2097152&&(a.supportLink=l[21]),r[0]&4194304&&(a.outerContainerRef=l[22]),r[0]&8388608&&(a.fullScreenTarget=l[23]),r[0]&16777216&&(a.showMiniTimer=l[24]),r[1]&4&&(a.playerStarted=l[33]),r[0]&33554432&&(a.playNextVideo=l[25]),r[0]&67108864&&(a.playPrevVideo=l[26]),r[0]&134217728&&(a.repeatPlaylist=l[27]),r[0]&268435456&&(a.seekToInteractive=l[28]),r[0]&536870912&&(a.toggleGraph=l[29]),r[0]&1073741824&&(a.playPrevChapter=l[30]),!i&&r[1]&2&&(i=!0,a.videoContainer=l[32],Ue(()=>i=!1)),e.$set(a)},i(l){n||(d(e.$$.fragment,l),n=!0)},o(l){b(e.$$.fragment,l),n=!1},d(l){F(e,l)}}}function Xh(t){let e,i,n,o;const s=[Qh,Yh],l=[];function r(a,c){return a[14]?0:1}return i=r(t),n=l[i]=s[i](t),{c(){e=A("div"),n.c(),u(e,"class","root v-cghoty")},m(a,c){I(a,e,c),l[i].m(e,null),o=!0},p(a,c){let f=i;i=r(a),i===f?l[i].p(a,c):(ce(),b(l[f],1,1,()=>{l[f]=null}),fe(),n=l[i],n?n.p(a,c):(n=l[i]=s[i](a),n.c()),d(n,1),n.m(e,null))},i(a){o||(d(n),o=!0)},o(a){b(n),o=!1},d(a){a&&S(e),l[i].d()}}}function Jh(t,e,i){let{sources:n}=e,{store:o}=e,{microStoresRoot:s}=e,{videoConfig:l}=e,{uiConfig:r}=e,{title:a}=e,{thumbUrl:c}=e,{interactiveContainer:f}=e,{subtitles:p}=e,{live:h}=e,{preload:v}=e,{autoplay:k}=e,{volume:_=void 0}=e,{muted:P=void 0}=e,{fromTime:C}=e,{canRewindLive:T}=e,{showAds:y}=e,{adsSlotId:M=void 0}=e,{adsParams:oe=void 0}=e,{adsPreviewParam:Y=void 0}=e,{duration:R=void 0}=e,{logoClickable:ee}=e,{logoHidden:Q}=e,{isMobile:w}=e,{showNextPrevButtons:$=!1}=e,{nextButtonActive:X=!1}=e,{prevButtonActive:z=!1}=e,{endScreenVideoTitle:W=void 0}=e,{endScreenVideoThumb:B=void 0}=e,{isOneVideoPlaylist:J=!1}=e,{supportLink:E}=e,{outerContainerRef:O=void 0}=e,{fullScreenTarget:Ce=void 0}=e,{failoverHosts:ze=void 0}=e,{showMiniTimer:Ee=!1}=e,{playNextVideo:Ve=Ye}=e,{playPrevVideo:Pe=Ye}=e,{repeatPlaylist:me=Ye}=e,{seekToInteractive:Z=Ye}=e,{toggleGraph:de=Ye}=e,{playPrevChapter:Se=Ye}=e;const{subscribers:Fe,stores:je}=s;tf(r);const re=cn(),we=r.logoLink,Me=o.ui.debugPanelVisible,We=o.ui.playerSize;let ie,G=null,ye=!1;o.getAdmanWrapper().init({switchFromAdsToVideo:o.actions.internal.switchFromAdsToVideo,switchFromVideoToAds:o.actions.internal.switchFromVideoToAds,setMuted:o.actions.external.setMuted},o.ads,{isMobile:o.ui.isMobile,mobileUnmuteButtonVisible:o.ui.mobileUnmuteButtonVisible,vsid:o.vsid}),ff(o,je);const se=(ue=!1)=>{i(33,ye=!0),ue?o.actions.external.firstStart(y):o.actions.internal.firstStart(y)};function ve(ue){const ft=n||ue;ft&&o.initVideo({container:ie,sources:ft,failoverHosts:ze,subtitles:p});const vt=Cn.get(Vl)==="true";Me.set(vt),C>0&&o.actions.external.seekTime(C);const Ze=w?re.volumeDefault:_??D1()??re.volumeDefault,et=P??bf();if(o.actions.external.setVolume(Ze),o.actions.external.setMuted(et),o.getAdmanWrapper().setInitialVolume(et?0:Ze),re.features.trafficSaving){const kt=vf();kt&&o.actions.internal.setTrafficSavingEnabled(kt)}const gt=gf(o.videoId);gt&&o.actions.internal.setQuality(gt),o.ui.isAutoplay.set(k),k?se():v&&re.features.preload&&o.actions.internal.preload()}const Oe=ue=>{if(window.ResizeObserver){let ft,vt;G=new ResizeObserver(cl(Ze=>{const et=Ze[0];if(et){if(et.contentBoxSize){const gt=Array.isArray(et.contentBoxSize)?et.contentBoxSize[0]:et.contentBoxSize;ft=gt.inlineSize,vt=gt.blockSize}else et.contentRect&&(ft=et.contentRect.width,vt=et.contentRect.height);We.set({width:ft,height:vt})}},T1)),G.observe(ue)}We.set({width:ue.clientWidth,height:ue.clientHeight})};ln(()=>{Oe(ie);const ue=Fe.map(vt=>vt.init({store:o,microStores:je,config:l}));if(h?.status==="upcoming"||h?.status==="waiting"){o.actions.internal.setWaitingLive(!0);return}if((h?.status==="finished"||h?.status==="postlive")&&!Object.keys(n||[]).length){o.actions.internal.setWaitingRecord(!0);return}return ve(),()=>{G?.disconnect(),ue.forEach(vt=>vt.unsubscribe()),o.destroy()}});function $e(){ye?o.actions.external.play():se(!0)}function ot(){o.actions.external.pause()}function Be(ue){w||o.actions.external.setMuted(ue)}function ae(ue){w||ue>=0&&ue<=1&&o.actions.external.setVolume(ue)}function lt(ue){o.actions.internal.seekTime(ue,Lt.UNKNOWN)}function _t(ue){o.actions.external.seekEpisodeStartTime(ue)}function at(){o.actions.external.returnFocusToEpisodes()}function ht(ue){o.actions.external.setPlaybackRate(ue)}function Ct(ue){o.actions.external.setAutoQualityLimits(ue)}function Le(ue){ie=ue,i(32,ie)}function qt(ue){ie=ue,i(32,ie)}return t.$$set=ue=>{"sources"in ue&&i(37,n=ue.sources),"store"in ue&&i(0,o=ue.store),"microStoresRoot"in ue&&i(38,s=ue.microStoresRoot),"videoConfig"in ue&&i(39,l=ue.videoConfig),"uiConfig"in ue&&i(40,r=ue.uiConfig),"title"in ue&&i(1,a=ue.title),"thumbUrl"in ue&&i(2,c=ue.thumbUrl),"interactiveContainer"in ue&&i(3,f=ue.interactiveContainer),"subtitles"in ue&&i(41,p=ue.subtitles),"live"in ue&&i(4,h=ue.live),"preload"in ue&&i(42,v=ue.preload),"autoplay"in ue&&i(5,k=ue.autoplay),"volume"in ue&&i(43,_=ue.volume),"muted"in ue&&i(44,P=ue.muted),"fromTime"in ue&&i(45,C=ue.fromTime),"canRewindLive"in ue&&i(6,T=ue.canRewindLive),"showAds"in ue&&i(7,y=ue.showAds),"adsSlotId"in ue&&i(8,M=ue.adsSlotId),"adsParams"in ue&&i(9,oe=ue.adsParams),"adsPreviewParam"in ue&&i(10,Y=ue.adsPreviewParam),"duration"in ue&&i(11,R=ue.duration),"logoClickable"in ue&&i(12,ee=ue.logoClickable),"logoHidden"in ue&&i(13,Q=ue.logoHidden),"isMobile"in ue&&i(14,w=ue.isMobile),"showNextPrevButtons"in ue&&i(15,$=ue.showNextPrevButtons),"nextButtonActive"in ue&&i(16,X=ue.nextButtonActive),"prevButtonActive"in ue&&i(17,z=ue.prevButtonActive),"endScreenVideoTitle"in ue&&i(18,W=ue.endScreenVideoTitle),"endScreenVideoThumb"in ue&&i(19,B=ue.endScreenVideoThumb),"isOneVideoPlaylist"in ue&&i(20,J=ue.isOneVideoPlaylist),"supportLink"in ue&&i(21,E=ue.supportLink),"outerContainerRef"in ue&&i(22,O=ue.outerContainerRef),"fullScreenTarget"in ue&&i(23,Ce=ue.fullScreenTarget),"failoverHosts"in ue&&i(46,ze=ue.failoverHosts),"showMiniTimer"in ue&&i(24,Ee=ue.showMiniTimer),"playNextVideo"in ue&&i(25,Ve=ue.playNextVideo),"playPrevVideo"in ue&&i(26,Pe=ue.playPrevVideo),"repeatPlaylist"in ue&&i(27,me=ue.repeatPlaylist),"seekToInteractive"in ue&&i(28,Z=ue.seekToInteractive),"toggleGraph"in ue&&i(29,de=ue.toggleGraph),"playPrevChapter"in ue&&i(30,Se=ue.playPrevChapter)},t.$$.update=()=>{t.$$.dirty[0]&16385&&o.ui.isMobile.set(w)},[o,a,c,f,h,k,T,y,M,oe,Y,R,ee,Q,w,$,X,z,W,B,J,E,O,Ce,Ee,Ve,Pe,me,Z,de,Se,lt,ie,ye,re,we,se,n,s,l,r,p,v,_,P,C,ze,ve,$e,ot,Be,ae,_t,at,ht,Ct,Le,qt]}class xh extends be{constructor(e){super(),ge(this,e,Jh,Xh,he,{sources:37,store:0,microStoresRoot:38,videoConfig:39,uiConfig:40,title:1,thumbUrl:2,interactiveContainer:3,subtitles:41,live:4,preload:42,autoplay:5,volume:43,muted:44,fromTime:45,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,outerContainerRef:22,fullScreenTarget:23,failoverHosts:46,showMiniTimer:24,playNextVideo:25,playPrevVideo:26,repeatPlaylist:27,seekToInteractive:28,toggleGraph:29,playPrevChapter:30,initVideo:47,play:48,pause:49,setMuted:50,setVolume:51,seekTime:31,seekEpisodeStartTime:52,returnFocusToEpisodes:53,setPlaybackRate:54,setAutoQualityLimits:55},Gh,[-1,-1,-1])}get initVideo(){return this.$$.ctx[47]}get play(){return this.$$.ctx[48]}get pause(){return this.$$.ctx[49]}get setMuted(){return this.$$.ctx[50]}get setVolume(){return this.$$.ctx[51]}get seekTime(){return this.$$.ctx[31]}get seekEpisodeStartTime(){return this.$$.ctx[52]}get returnFocusToEpisodes(){return this.$$.ctx[53]}get setPlaybackRate(){return this.$$.ctx[54]}get setAutoQualityLimits(){return this.$$.ctx[55]}}function $h(t){let e,i;return{c(){e=L("svg"),i=L("path"),u(i,"fill",t[0]),u(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 6h19.489zm.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.91.91 0 0 1 .377.378c.088.163.134.324.134.77v1.436c0 .446-.046.607-.134.77a.908.908 0 0 1-.378.378c-.162.088-.324.134-.77.134h-1.436c-.446 0-.608-.046-.77-.134a.908.908 0 0 1-.378-.378c-.088-.163-.134-.324-.134-.77v-1.436c0-.446.046-.607.134-.77a.908.908 0 0 1 .378-.378c.162-.088.324-.134.77-.134h1.436zm20 0c.445 0 .606.046.77.134a.91.91 0 0 1 .377.378c.088.163.134.324.134.77v1.436c0 .446-.046.607-.134.77a.908.908 0 0 1-.378.378c-.163.088-.324.134-.77.134h-1.436c-.446 0-.607-.046-.77-.134a.908.908 0 0 1-.378-.378c-.088-.163-.134-.324-.134-.77v-1.436c0-.446.046-.607.134-.77a.908.908 0 0 1 .378-.378c.163-.088.324-.134.77-.134h1.436zm-20-8c.445 0 .607.046.77.134a.91.91 0 0 1 .377.378c.088.162.134.324.134.77v1.436c0 .446-.046.607-.134.77a.908.908 0 0 1-.378.378c-.162.088-.324.134-.77.134h-1.436c-.446 0-.608-.046-.77-.134a.908.908 0 0 1-.378-.378c-.088-.163-.134-.324-.134-.77v-1.436c0-.446.046-.608.134-.77a.908.908 0 0 1 .378-.378c.162-.088.324-.134.77-.134h1.436zm20 0c.445 0 .606.046.77.134a.91.91 0 0 1 .377.378c.088.162.134.324.134.77v1.436c0 .446-.046.607-.134.77a.908.908 0 0 1-.378.378c-.163.088-.324.134-.77.134h-1.436c-.446 0-.607-.046-.77-.134a.908.908 0 0 1-.378-.378c-.088-.163-.134-.324-.134-.77v-1.436c0-.446.046-.608.134-.77a.908.908 0 0 1 .378-.378c.163-.088.324-.134.77-.134h1.436zm-20-8c.445 0 .607.046.77.134a.91.91 0 0 1 .377.378c.088.162.134.324.134.77v1.436c0 .446-.046.608-.134.77a.908.908 0 0 1-.378.378c-.162.088-.324.134-.77.134h-1.436c-.446 0-.608-.046-.77-.134a.908.908 0 0 1-.378-.378c-.088-.162-.134-.324-.134-.77v-1.436c0-.446.046-.608.134-.77a.908.908 0 0 1 .378-.378c.162-.088.324-.134.77-.134h1.436zm20 0c.445 0 .606.046.77.134a.91.91 0 0 1 .377.378c.088.162.134.324.134.77v1.436c0 .446-.046.608-.134.77a.908.908 0 0 1-.378.378c-.163.088-.324.134-.77.134h-1.436c-.446 0-.607-.046-.77-.134a.908.908 0 0 1-.378-.378c-.088-.162-.134-.324-.134-.77v-1.436c0-.446.046-.608.134-.77a.908.908 0 0 1 .378-.378c.163-.088.324-.134.77-.134h1.436zm-20-8c.445 0 .607.046.77.134a.91.91 0 0 1 .377.378c.088.162.134.324.134.77v1.436c0 .446-.046.608-.134.77a.908.908 0 0 1-.378.378c-.162.088-.324.134-.77.134h-1.436c-.446 0-.608-.046-.77-.134a.908.908 0 0 1-.378-.378c-.088-.162-.134-.324-.134-.77v-1.436c0-.446.046-.607.134-.77a.908.908 0 0 1 .378-.378c.162-.088.324-.134.77-.134h1.436zm20 0c.445 0 .606.046.77.134a.91.91 0 0 1 .377.378c.088.162.134.324.134.77v1.436c0 .446-.046.608-.134.77a.908.908 0 0 1-.378.378c-.163.088-.324.134-.77.134h-1.436c-.446 0-.607-.046-.77-.134a.908.908 0 0 1-.378-.378c-.088-.162-.134-.324-.134-.77v-1.436c0-.446.046-.607.134-.77a.908.908 0 0 1 .378-.378c.163-.088.324-.134.77-.134h1.436z"),u(e,"width","57"),u(e,"height","60"),u(e,"fill","none"),u(e,"xmlns","http://www.w3.org/2000/svg"),u(e,"aria-hidden","true"),u(e,"data-testid","stub-icon")},m(n,o){I(n,e,o),m(e,i)},p(n,[o]){o&1&&u(i,"fill",n[0])},i:q,o:q,d(n){n&&S(e)}}}function e5(t,e,i){let{isWhite:n=!1}=e,o;return t.$$set=s=>{"isWhite"in s&&i(1,n=s.isWhite)},t.$$.update=()=>{t.$$.dirty&2&&i(0,o=n?"#fff":"#909499")},[o,n]}class t5 extends be{constructor(e){super(),ge(this,e,e5,$h,he,{isWhite:1})}}function i5(t){Ke(t,"v-1y9fytq",".playerStub.v-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.v-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 f1(t){let e,i;return{c(){e=A("div"),i=De(t[0]),u(e,"class","title v-1y9fytq")},m(n,o){I(n,e,o),m(e,i)},p(n,o){o&1&&xe(i,n[0])},d(n){n&&S(e)}}}function d1(t){let e,i;return e=new t5({props:{isWhite:!!t[1]}}),{c(){U(e.$$.fragment)},m(n,o){H(e,n,o),i=!0},p(n,o){const s={};o&2&&(s.isWhite=!!n[1]),e.$set(s)},i(n){i||(d(e.$$.fragment,n),i=!0)},o(n){b(e.$$.fragment,n),i=!1},d(n){F(e,n)}}}function n5(t){let e,i,n,o,s=t[0]&&f1(t),l=(!t[0]||!t[1])&&d1(t);return{c(){e=A("div"),s&&s.c(),i=D(),l&&l.c(),u(e,"class","playerStub v-1y9fytq"),u(e,"style",n=t[1]?`background-image: url('${t[1]}')`:"")},m(r,a){I(r,e,a),s&&s.m(e,null),m(e,i),l&&l.m(e,null),o=!0},p(r,[a]){r[0]?s?s.p(r,a):(s=f1(r),s.c(),s.m(e,i)):s&&(s.d(1),s=null),!r[0]||!r[1]?l?(l.p(r,a),a&3&&d(l,1)):(l=d1(r),l.c(),d(l,1),l.m(e,null)):l&&(ce(),b(l,1,1,()=>{l=null}),fe()),(!o||a&2&&n!==(n=r[1]?`background-image: url('${r[1]}')`:""))&&u(e,"style",n)},i(r){o||(d(l),o=!0)},o(r){b(l),o=!1},d(r){r&&S(e),s&&s.d(),l&&l.d()}}}function o5(t,e,i){let{title:n}=e,{thumbUrl:o}=e;return t.$$set=s=>{"title"in s&&i(0,n=s.title),"thumbUrl"in s&&i(1,o=s.thumbUrl)},[n,o]}class l5 extends be{constructor(e){super(),ge(this,e,o5,n5,he,{title:0,thumbUrl:1},i5)}}class s5{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(){const 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(const[i,n]of e)try{navigator.mediaSession.setActionHandler(i,n)}catch{throw new Error(`The media session action "${i}" is not supported yet.`)}}}function r5(t){let e,i,n,o;return{c(){e=L("svg"),i=L("g"),n=L("path"),o=L("path"),u(n,"d","m30.744 4 .744.005c2.981.046 4.526.385 6.127 1.24a8.766 8.766 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.769 5.769 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.766 8.766 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.765 8.765 0 0 1 3.347-3.475l.312-.174.292-.15c1.472-.731 3.016-1.036 5.803-1.08L22.256 4h8.488Z"),u(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.2V33.8Z"),u(i,"fill","#fff"),u(e,"width","57"),u(e,"height","56"),u(e,"fill","none"),u(e,"xmlns","http://www.w3.org/2000/svg"),u(e,"aria-label","dummy-image"),u(e,"data-testid","pip-dummy-icon")},m(s,l){I(s,e,l),m(e,i),m(i,n),m(i,o)},p:q,i:q,o:q,d(s){s&&S(e)}}}class a5 extends be{constructor(e){super(),ge(this,e,null,r5,he,{})}}function u5(t){Ke(t,"v-1pbsod4",".player-pip-dummy.v-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.v-1pbsod4{position:relative}.dummy-image.v-1pbsod4 svg{transform:scale(1.07143)}.dummy-image.desktop.v-1pbsod4{transform:scale(1.07143) rotate(-90deg) rotateY(180deg)}.title.v-1pbsod4{font-size:16px;color:#fff;padding:18px 20px 10px;text-align:center}")}function c5(t){let e,i,n,o,s,l,r;return n=new a5({}),{c(){e=A("div"),i=A("div"),U(n.$$.fragment),o=D(),s=A("span"),l=De(t[0]),u(i,"class","dummy-image v-1pbsod4"),V(i,"desktop",!t[1]),u(s,"class","title v-1pbsod4"),u(e,"class","player-pip-dummy v-1pbsod4"),V(e,"is-pip-api",t[2])},m(a,c){I(a,e,c),m(e,i),H(n,i,null),m(e,o),m(e,s),m(s,l),r=!0},p(a,[c]){(!r||c&2)&&V(i,"desktop",!a[1]),(!r||c&1)&&xe(l,a[0])},i(a){r||(d(n.$$.fragment,a),r=!0)},o(a){b(n.$$.fragment,a),r=!1},d(a){a&&S(e),F(n)}}}function f5(t,e,i){let n,o;const s=pt(),l=!!s.webApi.pictureInPictureApi,r=s.interfaceLanguage$;N(t,r,f=>i(5,n=f));const a=s.ui.isMobile;N(t,a,f=>i(1,o=f));let c;return t.$$.update=()=>{t.$$.dirty&32&&i(0,c=n&&j("pip_dummy_title"))},[c,o,l,r,a,n]}class d5 extends be{constructor(e){super(),ge(this,e,f5,c5,he,{},u5)}}const m5=460,p5=280;class ju{playerDomElement;playerParentShadowRoot;playerDummyElement;svelteContext;pipWindow;info={isActive$:new Rl(!1),type:Dn.DocumentPictureInPicture};isSupported(){const e=Nl().browser===p1.Yandex,{isEmbed:i}=Nc();return"documentPictureInPicture"in window&&!e&&!i}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:m5,height:p5,copyStyleSheets:!0}),this.pipWindow.document.body.style.margin="0";const e=[...this.playerParentShadowRoot.styleSheets].map(s=>[...s.cssRules].map(l=>l.cssText).join(" ")).filter(Boolean).join(`
|
|
51
|
-
`),i=document.createElement("style");i.textContent=e;const n=this.createStretchedContainer(),o=n.attachShadow({mode:"open"});o.append(i),o.append(this.playerDomElement),this.playerDummyElement=new d5({target:this.playerParentShadowRoot,context:this.svelteContext}),this.pipWindow?.document.body.append(n),this.info.isActive$.next(!0),this.pipWindow?.addEventListener("unload",s=>{!this.playerDomElement||!this.playerParentShadowRoot||!this.playerDummyElement||(this.playerDummyElement.$destroy(),this.playerParentShadowRoot.append(this.playerDomElement),this.info.isActive$.next(!1))})}async remove(){return new Promise(e=>{documentPictureInPicture.window?.close(),e()})}async dispose(){await this.remove()}createStretchedContainer(){const e=document.createElement("div");return e.style.width="100%",e.style.height="100%",e}}function h5(t){return t instanceof ju}class g5{static getLatestSupportedVersion(){const e=new Ul,i=new ju;if(i.isSupported())return i;if(e.isSupported())return e}}function m1(t,e){const i=new Set([...Object.keys(t),...Object.keys(e)]),n={};for(const o of i)n[o]=e[o]??t[o]??void 0;return n}const b5="Inner error. Unexpectedly root annotation container null reference exception",_5="Annotation with such name already exists",v5="Annotation with such name does not exist";class Pl extends Error{constructor(e){super(e),this.name="AnnotationError"}}const k5="1",w5=100;class y5{rootAnnotationsContainer;annotations=new Map;subscriptions=new xn;mutationObserver;playerSize;constructor(e){this.rootAnnotationsContainer=e;const i=cl(()=>{for(const n of this.annotations.values())this.isElementExceedsBoundaries(n,this.playerSize.width,this.playerSize.height)?n.style.visibility="hidden":n.style.visibility="visible"},w5);this.subscriptions.add(Dc(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 Pl(b5);if(this.annotations.has(e))throw new Pl(_5);i.style.zIndex=i.style.zIndex??k5,i.style.position="absolute",this.rootAnnotationsContainer.append(i),this.annotations.set(e,i)}get(e){const i=this.annotations.get(e);if(!i)throw new Pl(v5);return i}remove(e){const i=this.get(e);this.annotations.delete(e)&&i.remove()}clear(){for(const 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){const o=e.offsetTop,s=e.offsetLeft,l=e.offsetWidth,r=e.offsetHeight;return o<0||s<0||s+l>i||o+r>n}registryRootContainer(e){}addLayer(e){return new HTMLElement}getLayer(e){}removeLayer(e){}clearLayer(e){}detach(){}reattach(){}}class ml{stateName;state$;subscription;init({store:e,microStores:i,config:n}){return ut(e),ut(i),ut(n),this.subscription=new xn,this.subscription}}class C5 extends ml{stateName="fakeIsPlaying$";state$={...Ie(null),toggle:()=>this.state$.update(e=>!e)};init(e){const i=super.init(e),{isInteractiveExpectation$:n}=e.store.state;return i.add(n.subscribe(o=>{this.state$.set(o?!0:null)})),i}}class T5 extends ml{stateName="interactiveControlsOpacity$";state$={...Ie(null),toggle:()=>this.state$.update(e=>!e)};init(e){const i=super.init(e),{microStores:n,store:o}=e,{fakeIsPlaying$:s}=n,{isInteractiveExpectation$:l,isPlaying$:r}=o.state,{controlsVisible:a,isMobile:c}=o.ui,f=Je(c),p=()=>f&&Je(a);return i.add(a.subscribe(h=>{if(!f)return;const v=Je(s);Je(r)?this.state$.set(h):v!==null&&this.state$.set(!v||h)})),i.add(r.subscribe(h=>{this.state$.set(!h||p())})),i.add(s.subscribe(h=>{if(h===null)return;const v=Je(l);if(p()){this.state$.set(!0);return}v&&this.state$.set(!h)})),i}}class P5 extends ml{stateName="seekToInteractiveDisabledTooltip$";state$=Ie("tooltip_chapter_without_interactive");init(e){const i=super.init(e),{store:n}=e;return i.add(n.state.interactiveEpisodes$.subscribe(o=>{o.length&&(o.every(s=>s.completed)?this.state$.set("tooltip_interactive_of_chapter_completed"):this.state$.set("tooltip_disabled_when_interactive"))})),i}}const Sl=Ie(!1);let il=null;class S5 extends ml{stateName="showInteractiveTimeIndicatorTooltip$";timeout;state$={...Sl,set:(e,i=!1)=>{e!==Je(Sl)&&(this.clearTimeout(),Sl.set(e),!e&&il&&(il=!1),e&&i&&(this.timeout=setTimeout(()=>{this.state$.set(!1)},3e3)))},clearTimeout:()=>this.clearTimeout()};init(e){const i=super.init(e),{store:n,config:o}=e,{isInteractiveTime$:s,isPlaying$:l}=n.state,r=n.ui.controlsVisible;i.add(r.subscribe(f=>{Je(s)&&f&&this.state$.set(!1)}));const a=o?.interactiveData||{tooltipHelpHintActive:!1},c=hi([l,s],([f,p])=>f&&p);return i.add(c.subscribe(f=>{const p=Je(l),h=Je(s);if(p){if(!h)return this.state$.set(!1);a.tooltipHelpHintActive&&il===null&&(il=!0,a.tooltipHelpHintActive=!1,this.state$.set(!0),n.callbacks?.onInteractiveTimeIndicatorHintDeactivated?.())}})),i}clearTimeout(){window.clearTimeout(this.timeout)}}const I5=()=>[C5,T5,P5,S5].reduce(({subscribers:t,stores:e},i)=>{const n=new i;return{subscribers:[...t,n],stores:{...e,[n.stateName]:n.state$}}},{subscribers:[],stores:{}}),A5={preload:!0,autoplay:!1,repeat:!1,fromTime:0,canRewindLive:!0,showAds:!1,interfaceLanguage:Fo.RU,logoClickable:!1,logoHidden:!1,isMobile:zc(),isMediaSessionEnabled:!0,isPictureInPictureEnabled:!0,isAudioDisabled:!1,callbacks:{uiInfo:{}},tuningConfig:{configName:[]}};class E5 extends HTMLElement{svelteStubComponent;svelteRootComponent;store;microStoresRoot;statistics;sentry;_shadowRoot;playerContainer;rootContainer;uiConfig;coreConfig;statisticsConfig;interactiveController;interactiveContainer;graphMadePause;currentPlayingVideoIndex=0;needToRepeatPlaylist=!1;videoConfig=void 0;pictureInPictureApi=void 0;mediaSessionApi=void 0;unsubscribePlayerPhaseSubscription=void 0;logger;log;subscription;annotationsApi=void 0;createPlayerTimeout;prevIsid=void 0;isInited=!1;constructor(){super(),this.logger=new h1,this.log=this.logger.createComponentLog("VKVideoPlayer"),this.subscription=new xn,this.graphMadePause=!1,window?.videoPlayerConfig?.debugLogs&&this.subscription.add(this.logger.log$.subscribe(e=>{console.log("%c player web component ","background:#77dd77;",`${e.component}`,e.message)}))}connectedCallback(){if(this.isInited)return;this.initPlayerRootContainers();const e=this.getAttribute("stub-title")??void 0,i=this.getAttribute("stub-thumb-url")??void 0;this.svelteStubComponent=new l5({target:this.playerContainer,props:{title:e,thumbUrl:i}})}disconnectedCallback(){this.annotationsApi?.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%";const e=document.createElement("div");e.style.position="absolute",e.className="shadow-root-container",e.style.width="100%",e.style.height="100%",this._shadowRoot=e.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(e),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(e){return this.store?.ui.controls.disabledControls$?.includes(e)||!1}getNextVideoInfo(){if(!this.videoConfig)return{nextVideoTitle:void 0,nextVideoThumb:void 0};const e=this.videoConfig.videos[this.currentPlayingVideoIndex+1]||{};return{nextVideoTitle:e.title,nextVideoThumb:e.thumbUrl}}createPlayer(e,i={},n){if(!this.videoConfig)return;const{albumId:o,statPlace:s,statUserSalt:l,statAuthToken:r,statTrackCode:a,refreshStatAuthToken:c,preload:f,autoplay:p,volume:h,muted:v,fromTime:k,canRewindLive:_,supportLink:P,showAds:C,adsSlotId:T,adsParams:y={},adsPreviewParam:M,interfaceLanguage:oe,logoClickable:Y,logoHidden:R,isMobile:ee,isAudioDisabled:Q,isLiveCatchUpMode:w,fullScreenTarget:$,failoverHosts:X,canDownload:z,callbacks:W,interactiveData:B,showThumbTimer:J,additionalButtons:E=[],repeat:O}=m1(this.videoConfig,i),{sources:Ce,title:ze,thumbUrl:Ee,unitedVideoId:Ve,isClip:Pe=!1,duration:me,adsParams:Z={},videoEpisodes:de,previewThumbsData:Se,subtitles:Fe,live:je}=e,re={...y,...Z},we=this.getNextVideoInfo(),Me={sources:Ce,title:ze,thumbUrl:Ee,subtitles:Fe,unitedVideoId:Ve,isClip:Pe,live:je,albumId:o,statPlace:s,autoplay:p,muted:v,volume:h,fromTime:k,canRewindLive:_,showAds:C,adsSlotId:T,adsParams:re,adsPreviewParam:M,duration:me,logoClickable:Y,logoHidden:R,isMobile:ee,repeat:O,showNextPrevButtons:this.needToShowNextPrevButtons(),nextButtonActive:this.isNextButtonActive(),prevButtonActive:this.isPrevButtonActive(),endScreenVideoTitle:we.nextVideoTitle,endScreenVideoThumb:we.nextVideoThumb,isOneVideoPlaylist:this.isOneVideoPlaylist()},We={pictureInPictureApi:this.pictureInPictureApi,annotationsApi:this.annotationsApi};this.log({message:`create player, props: ${JSON.stringify(Me)}`});const ie=this.uiConfig.features.statistics&&!!Ve,{pid:G}=this.videoConfig?.interactiveData?.projectInfo||{};ie&&(this.statistics=new f3({movieId:Ve,albumId:o,place:s,trackCode:a,autoplay:(p&&!this.interactiveController)??!1,mobile:ee,clip:Pe,refDomain:this.videoConfig.refDomain,...G&&!this.isInited&&{projectId:Number(G)}},{refreshAuthToken:c,userSalt:l,config:this.statisticsConfig,...this.interactiveController&&{useIsid:!0,isid:this.prevIsid}})),this.uiConfig.features.sentry&&this.uiConfig.sentry.dsn&&new Ml(this.uiConfig.sentry,{version:Ol,env:cf},{movieId:Ve,albumId:o,place:s,autoplay:(p&&!this.interactiveController)??!1,mobile:ee,clip:Pe}),this.interactiveController&&(this.prevIsid??=this.statistics?.oneStat.isid$.getValue()),this.sentry={...this.sentry,...Ml.getInstance()};const se=!!B,ve=[];let Oe="tooltip_interactive_go_back_disabled_first";if(se&&this.interactiveController){const Be=this.interactiveController.state.isInitialChapter$.getValue(),ae=this.interactiveController.getHistoryState();Be&&ve.push(rt.REPLAY_BUTTON),this.interactiveController.getIsSeekable().getValue()||ve.push(rt.SEEK_TO_INTERACTIVE_BUTTON),ae.hasPrevChapter$.getValue()||(ve.push(rt.PLAY_PREV_CHAPTER_BUTTON),Be||(ae.isGoBackLimited$.getValue()?Oe="tooltip_interactive_go_back_disabled_limit":Oe="tooltip_interactive_go_back_disabled"))}const $e=()=>{this.isInited=!1,this.prevIsid=void 0;const Be=n?.info.isEnded$.getValue()&&this.interactiveController?.state.isEndChapter$.getValue();W.onReplayInteractiveVideo&&!Be?W.onReplayInteractiveVideo():this.replayInteractiveVideo()};this.store=d3({player:n,interfaceLanguage:oe,videoId:Ve,isClip:Pe,isLiveCatchUpMode:w,isAudioDisabled:Q,statAuthToken:r,callbacks:W,webApi:We,videoEpisodes:de,previewThumbsData:Se,canDownload:z,uiConfig:this.uiConfig,coreConfig:this.coreConfig,disabledControls:ve,isInteractive:se,interactiveRanges$:this.interactiveController?.state.interactiveRanges$,isInteractiveTime$:this.interactiveController?.state.isInteractiveTime$,replayInteractive:$e,playPrevChapterDisabledTooltip:Oe,hasInteractiveBranches:!!this.interactiveController?.getChapterBranches()?.length,additionalButtons:this.uiConfig.features.additionalButtons?E:[],looped:O&&this.videoConfig.videos.length===1,statistics:this.statistics});const{stores:ot}=this.microStoresRoot=I5();this.subscription.add(this.store.state.currentFormat$.subscribe(Be=>W?.onCurrentFormatChanged?.(Be))),this.subscription.add(ot.interactiveControlsOpacity$.subscribe(Be=>{Be!==null&&this?.interactiveController?.setDisabledControls(Be)})),this.subscription.add(this.store.state.throughputEstimation$.subscribe(Be=>W?.onThroughputEstimationChanged?.(Be))),this.subscription.add(this.store.state.trafficSavingEnabled$.subscribe(Be=>W?.onTrafficSavingEnabledChanged?.(Be))),this.subscription.add(this.store.state.currentPlaybackRate$.subscribe(Be=>W?.onCurrentPlaybackRateChanged?.(Be))),this.subscription.add(this.store.state.volume$.subscribe(Be=>W?.onVolumeChange?.(Be))),this.subscription.add(this.store.state.muted$.subscribe(Be=>Be?W?.onMute?.():W?.onUnmute?.())),this.subscription.add(this.store.state.videoBitrate$.subscribe(Be=>W?.onVideoBitrateChanged?.(Be))),this.subscription.add(this.store.state.isInteractiveTime$.subscribe(Be=>{const ae=this.store?.ui.controls.disabledControls$;ae&&(Be&&!ae.includes(ll)&&ae.add(ll),Be||ae.remove(ll))})),this.initMediaSession(),this.interactiveController&&ie&&this.initInteractivesStatistics(),this.svelteRootComponent=new xh({target:this.playerContainer,props:{interactiveContainer:this.interactiveContainer,sources:Ce,store:this.store,microStoresRoot:this.microStoresRoot,videoConfig:this.videoConfig,uiConfig:this.uiConfig,title:ze,thumbUrl:Ee,subtitles:Fe,live:je,preload:f,autoplay:p,muted:v,volume:h,fromTime:k,canRewindLive:_,supportLink:P,showAds:C,adsSlotId:T,adsParams:re,adsPreviewParam:M,duration:me,logoClickable:Y,logoHidden:R,isMobile:ee,failoverHosts:X,fullScreenTarget:$,showMiniTimer:J,outerContainerRef:this.rootContainer,showNextPrevButtons:this.needToShowNextPrevButtons(),nextButtonActive:this.isNextButtonActive(),prevButtonActive:this.isPrevButtonActive(),endScreenVideoTitle:we.nextVideoTitle,endScreenVideoThumb:we.nextVideoThumb,isOneVideoPlaylist:this.isOneVideoPlaylist(),playNextVideo:()=>this.playNextVideo(),playPrevVideo:()=>this.playPrevVideo(),repeatPlaylist:()=>this.repeatPlaylist(),playPrevChapter:()=>this.playPrevChapter(),seekToInteractive:()=>this.seekToInteractive(),toggleGraph:()=>this.toggleGraph()}}),this.addPlayerInfoSubscriptions(),this.isInited||(this.isInited=!0,this.videoConfig?.callbacks?.onInited?.())}addPlayerInfoSubscriptions(){const e=this.store;if(!e)return;const i=this.videoConfig?.callbacks;i&&this.subscription.add(e.playerPhase.subscribe(o=>i.onPlayerPhaseChanged?.(o))).add(e.state.playbackState$.subscribe(o=>i.onPlaybackStateChanged?.(o))).add(e.state.isLive$.subscribe(o=>i.onIsLiveChanged?.(o))).add(e.state.isActiveLive$.subscribe(o=>i.onIsActiveLiveChanged?.(o))).add(e.state.isAudioAvailable$.subscribe(o=>i.onIsAudioAvailableChanged?.(o))).add(e.state.currentQuality$.subscribe(o=>i.onCurrentQualityChanged?.(o))).add(e.state.availableQualities$.subscribe(o=>i.onAvailableQualitiesChanged?.(o.map(({value:s})=>s).filter(s=>s!==To.AUTO)))).add(e.ui.isPictureInPictureActive$.subscribe(o=>o?i.onPiPEnter?.():i.onPiPExit?.()));const n=i?.uiInfo;n&&this.subscription.add(e.ui.controlsVisible.subscribe(o=>n.onControlsVisibleChanged?.(o))).add(e.ui.isMobile.subscribe(o=>n.onIsMobileChanged?.(o))).add(e.ui.playerSize.subscribe(o=>n.onPlayerSizeChanged?.(o))).add(e.ui.controls.prevButton.subscribe(o=>n.onPrevButtonChanged?.(o))).add(e.ui.controls.playButton.subscribe(o=>n.onPlayButtonChanged?.(o))).add(e.ui.controls.replayButton.subscribe(o=>n.onReplayButtonChanged?.(o))).add(e.ui.controls.nextButton.subscribe(o=>n.onNextButtonChanged?.(o))).add(e.ui.controls.playPrevChapterButton.subscribe(o=>n.onPlayPrevChapterChanged?.(o))).add(e.ui.controls.seekToInteractiveButton.subscribe(o=>n.onSeekToInteractiveButtonChanged?.(o))).add(e.ui.controls.interactiveGraphButton.subscribe(o=>n.onGraphButtonChanged?.(o))).add(e.ui.controls.liveButton.subscribe(o=>n.onLiveButtonChanged?.(o))).add(e.ui.controls.time.subscribe(o=>n.onTimeUpdateChanged?.(o))).add(e.ui.controls.episodes.subscribe(o=>n.onEpisodesChanged?.(o))).add(e.ui.controls.subtitles.subscribe(o=>n.onSubtitlesChanged?.(o))).add(e.ui.controls.settings.subscribe(o=>n.onSettingsChanged?.(o))).add(e.ui.controls.fullscreen.subscribe(o=>n.onFullscreenChanged?.(o))).add(e.ui.controls.chromecast.subscribe(o=>n.onChromecastChanged?.(o))).add(e.ui.controls.pip.subscribe(o=>n.onPipChanged?.(o))).add(e.ui.controls.vkLogo.subscribe(o=>n.onVkLogoChanged?.(o))).add(e.ui.controls.interactiveTimeIndicator.subscribe(o=>n.onInteractiveTimeIndicatorChanged?.(o)))}playNextVideo(){if(!this.videoConfig)return;let e=!0;if(this.videoConfig.callbacks?.onNextVideoClick)try{e=this.videoConfig.callbacks.onNextVideoClick()}catch{this.log({message:"onNextVideoClick callback failed to execute"})}e&&(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 e=!0;if(this.videoConfig.callbacks?.onPrevVideoClick)try{e=this.videoConfig.callbacks.onPrevVideoClick()}catch{this.log({message:"onPrevVideoClick callback failed to execute"})}e&&(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(e,i=!0){if(!this.videoConfig)return;const n=this.videoConfig.videos[this.currentPlayingVideoIndex];if(!n){this.log({message:"no next video"});return}this.isInited&&wn(n.unitedVideoId)&&this.store.actions.internal.nextMovie(n.unitedVideoId),this.svelteRootComponent?.$destroy(),this.createPlayer(n,{autoplay:i,fromTime:0},e)}playPrevChapter(){this.interactiveController?.playPrevChapter()}seekToInteractive(){const e=this.interactiveController?.getNextInteractiveStartTime();typeof e=="number"&&this.seekTime(e/1e3)}toggleGraph(){if(!this.isInited)return;const e=this.store,{isEnded$:i,playbackState$:n,graphIsOpened$:o}=e.state,{disabledControls$:s}=e.ui.controls,l=Je(i),r=Je(n);Je(o)?(o.set(!1),this.interactiveController?.toggleGraphView(!1),s.remove(as),!l&&this.graphMadePause&&this.play()):(this.graphMadePause=r==="playing",o.set(!0),this.interactiveController?.toggleGraphView(!0),s.add(as),!l&&this.graphMadePause&&this.pause())}async initInteractives(){if(this.videoConfig?.interactiveData)try{const{Interactives:e,EVENT_NAMES:i,CustomError:n}=await import("@vkontakte/videoplayer-interactive/evergreen.esm.js");this.interactiveContainer=document.createElement("div"),this.interactiveContainer.classList.add("interactiveContainer");const o=this.store?.interfaceLanguage$,s=o?Je(o):this.videoConfig.interfaceLanguage,{projectInfo:l,initChapterId:r,historyApi:a,videoLoader:c}=this.videoConfig.interactiveData;this.interactiveController=new e({parentElement:this.interactiveContainer,fullscreenTargetElement:this.playerContainer,lang:s,graph:this.uiConfig.features.interactiveGraph,projectInfo:l,initChapterId:r,historyApi:a,vkVideoLoader:c,lastFrame:this.uiConfig.features.interactiveLastFrame,permanentTextControls:this.uiConfig.features.interactiveTextPermanent,initSeamless:!0,config:this.uiConfig.interactive,coreConfig:this.coreConfig});const{isInteractiveExpectation$:f}=this.interactiveController.state;this.uiConfig.features.seekToInteractive&&this.subscription.add(this.interactiveController.getIsSeekable().subscribe(h=>{if(!this.isInited)return;const v=this.store;h?v.ui.controls.disabledControls$.remove(rt.SEEK_TO_INTERACTIVE_BUTTON):v.ui.controls.disabledControls$.add(rt.SEEK_TO_INTERACTIVE_BUTTON)})),this.subscription.add(f.subscribe(h=>{this.store&&this.store.state.isInteractiveExpectation$.set(h)}));let p=!0;if(this.interactiveController.on(i.playerChanged,h=>{if(!this.videoConfig)return;this.videoConfig.videos[this.currentPlayingVideoIndex]={...h.config,title:l?.title||h.config.title};const v=p?this.videoConfig.autoplay:!0;this.createPlayerWithCurrentVideo(h.player,v),p&&(p=!1)}),this.interactiveController.on(i.interactives,({type:h,actionType:v})=>{if(!this.store)return;const k=f.getValue();if(h==="action-choice"&&v==="setRandomBranch"&&(this.store.state.graphIsOpened$.set(!1),this.store.ui.controls.disabledControls$.remove(I1)),h==="action-choice-canceled"){const _=Je(this.store.state.isPlaying$)||k;if(this.videoConfig?.isMobile&&_){this.store.ui.interactiveHideMobileControls.set(!0);return}this.videoConfig?.callbacks.onDisabledInteractiveClick?.()}}),await this.interactiveController.setManifest(this.videoConfig.interactiveData.manifest),this.videoConfig?.callbacks?.onInteractiveHistoryChanged){const h=this.interactiveController.getHistoryState();this.subscription.add(h.history$.subscribe(v=>{v.length&&this.videoConfig?.callbacks?.onInteractiveHistoryChanged?.(v)}))}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(i.errors,h=>{this.log({message:h.toString()})})}catch(e){this.log({message:e.message})}}async initInteractivesStatistics(){const{statSubscription:e,oneStat:i}=this.statistics;if(!(!e||!i||!this.interactiveController))try{const{INTERACTIVE_CLICK_ACTIONS:n}=await import("@vkontakte/videoplayer-interactive/evergreen.esm.js"),o={[n.GO_NEXT_BUTTON]:Bo.NEXT_BUTTON,[n.GO_NEXT_AREA]:Bo.NEXT_AREA,[n.WATCH_AGAIN]:Bo.WATCH_AGAIN,[n.OPEN_GRAPH]:Bo.GRAPH_SHOW,[n.CLOSE_GRAPH]:Bo.GRAPH_HIDE},{click$:s,nextMovie$:l}=this.interactiveController.getStatEvents(),r=new hn;s.subscribe(a=>{a in o?r.next(o[a]):(i?.logError({errorType:"InteractiveVideosAction",fatal:!1}),this.sentry.report?.(new Error("InteractiveVideosAction"),{errorType:"InteractiveVideosAction",fatal:!1}))}),e.add(i.attachToInteractive({click$:r,nextMovie$:l}))}catch(n){i?.logError({errorType:"InteractiveVideos",fatal:!1}),this.sentry.report?.(n,{errorType:"InteractiveVideosAction",fatal:!1})}}initPlayer(e,i={}){if(!Array.isArray(e.videos)||e.videos.length===0&&!e.interactiveData)throw new Error("empty videos");this.videoConfig=m1(A5,Oc(e,n=>n instanceof HTMLElement?n:void 0)),this.uiConfig=ef(i.ui??{}),this.coreConfig=i.core??{configName:[]},this.statisticsConfig=i.statistics??{},this.sentry={config:this.uiConfig.sentry??{}},wn(this.videoConfig.isMediaSessionEnabled)&&(this.uiConfig.features.mediaSession=this.videoConfig.isMediaSessionEnabled??!0),wn(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=g5.getLatestSupportedVersion():this.pictureInPictureApi=new Ul),this.mediaSessionApi=this.uiConfig.features.mediaSession?new s5:void 0,this.annotationsApi=this.uiConfig.features.annotations?new y5(this.rootContainer):void 0,this.svelteStubComponent?.$destroy(),this.svelteRootComponent?.$destroy(),this.isInited=!1,this.prevIsid=void 0,this.interactiveController&&(this.interactiveController.destroy(),this.interactiveController=void 0),e.interactiveData?this.initInteractives():this.createPlayer(e.videos[0]),h5(this.pictureInPictureApi)&&this.pictureInPictureApi.setPlayerDomElement(this.playerContainer,this._shadowRoot)}isOneVideoPlaylist(){return this.videoConfig?this.videoConfig.videos.length===1:!1}updateNextVideos(e){if(!this.videoConfig)return;this.log({message:`update next videos, videos: ${JSON.stringify(e)}`}),this.videoConfig.videos.splice(this.currentPlayingVideoIndex+1),this.videoConfig.videos.push(...e);const i=this.getNextVideoInfo();this.svelteRootComponent?.$set({showNextPrevButtons:this.needToShowNextPrevButtons(),nextButtonActive:this.isNextButtonActive(),prevButtonActive:this.isPrevButtonActive(),endScreenVideoTitle:i.nextVideoTitle,endScreenVideoThumb:i.nextVideoThumb,isOneVideoPlaylist:this.isOneVideoPlaylist()})}initMediaSession(){this.mediaSessionApi&&(this.unsubscribePlayerPhaseSubscription?.(),this.unsubscribePlayerPhaseSubscription=this.store?.playerPhase.subscribe(e=>{e===Ne.Video?this.setupMediaSessionForVideo():e===Ne.Ads&&this.setupMediaSessionForAds()}))}setupMediaSessionForVideo(){if(!(!this.videoConfig||!this.mediaSessionApi))try{const{title:e,thumbUrl:i}={...this.videoConfig.videos[this.currentPlayingVideoIndex]},n=[["play",()=>this.play()],["pause",()=>this.pause()],["seekto",o=>this.seekTime(o.seekTime)]];this.videoConfig.videos.length>1&&(this.currentPlayingVideoIndex<this.videoConfig.videos.length-1&&n.push(["nexttrack",()=>this.playNextVideo()]),this.currentPlayingVideoIndex>0&&n.push(["previoustrack",()=>this.playPrevVideo()])),this.mediaSessionApi.setMetaData({title:e,thumbUrl:i}),this.mediaSessionApi.updateActionHandlers(n)}catch(e){this.log({message:e.message})}}setupMediaSessionForAds(){if(!(!this.videoConfig||!this.mediaSessionApi))try{const e="\u0420\u0435\u043A\u043B\u0430\u043C\u0430",i=[["play",()=>this.play()],["pause",()=>this.pause()]];this.mediaSessionApi.setMetaData({title:e}),this.mediaSessionApi.updateActionHandlers(i)}catch(e){this.log({message:e.message})}}play(){this.isControlDisabled(rt.PLAY_BUTTON)||this.store?.playerPhase.is(Ne.WaitingLive)||(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();const e=this.videoConfig.videos[0];e&&(this.svelteRootComponent?.$destroy(),this.createPlayer(e))}setMuted(e){this.log({message:`set muted, muted: ${e}`}),this.svelteRootComponent?.setMuted(e)}setVolume(e){this.log({message:`set volume, volume: ${e}`}),this.svelteRootComponent?.setVolume(e)}setRepeat(e){this.log({message:`set repeat, repeat: ${e}`}),this.needToRepeatPlaylist=e,this.svelteRootComponent?.$set({needToRepeatPlaylist:this.needToRepeatPlaylist,showNextPrevButtons:this.needToShowNextPrevButtons(),nextButtonActive:this.isNextButtonActive(),prevButtonActive:this.isPrevButtonActive()})}seekTime(e){this.isControlDisabled(rt.TIMELINE)||(this.log({message:`seek time, time: ${e}`}),this.svelteRootComponent?.seekTime(e))}seekEpisodeStartTime(e){this.log({message:`seek episode start time, time: ${e}`}),this.svelteRootComponent?.seekEpisodeStartTime(e)}returnFocusToEpisodes(){this.log({message:"return focus to episodes button"}),this.svelteRootComponent?.returnFocusToEpisodes()}setPlaybackRate(e){this.log({message:`set playback rate to: ${e}`}),this.svelteRootComponent?.setPlaybackRate(e)}setAutoQualityLimits(e){this.log({message:`set auto quality limitation. Max: ${e.max??"none"}. Min: ${e.min??"none"}`}),this.svelteRootComponent?.setAutoQualityLimits(e)}addLanguage(e){this.store?.actions.internal.addLanguage(e)}async setLanguage(e){await this.store?.actions.internal.setLanguage(e)}setLiveStart(e){this.log({message:"live started"}),this.store?.actions.internal.setWaitingLive(!1),this.svelteRootComponent?.initVideo(e),this.play()}setWaitRecord(){this.log({message:"post live"}),this.store?.actions.internal.setWaitingRecord(!0),this.store?.destroy()}setLiveEnd(e){this.log({message:"live ended"}),this.store?.actions.internal.setWaitingRecord(!1),this.svelteRootComponent?.$destroy(),this.createPlayer(e,{autoplay:!1})}getDeviceId(){return this.statistics?.oneStat.getDeviceId()??void 0}replayInteractiveVideo(){this.interactiveController&&this.interactiveController.setChapter()}showInteractiveIndicatorTooltip(e,i=!1){this.microStoresRoot?.stores.showInteractiveTimeIndicatorTooltip$.set(e,i)}}const N5=()=>{window.customElements.define("vk-video-player",E5)};export{yt as GridTypes,U5 as InterfaceLanguage,Ol as VERSION,q5 as VKNumericLanguage,O5 as VideoFormat,H5 as VideoQuality,Z5 as loadVKLangPack,N5 as registerPlayerWebComponent};
|
|
50
|
+
);--timeline-preview-shadow:rgba(0, 0, 0, 0.08);--timeline-preview-bg:rgba(34, 34, 34, 1);--mobile-settings-bg:#2C2D2E;--button-hover-transition:opacity 0.2s;--video-container-z-index:0;--rotate-transition-duration:0.25s;position:relative;width:100%;height:100%;color:var(--white);font-size:12px;line-height:normal;overflow:hidden;outline:0;user-select:none;font-family:-apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;background:var(--black)}button{border:none;margin:0;padding:0;width:auto;overflow:visible;background:transparent;color:inherit;font:inherit;line-height:normal;-webkit-font-smoothing:inherit;-moz-osx-font-smoothing:inherit;-webkit-appearance:none;cursor:pointer}svg:not(.interactiveContainer svg){pointer-events:none}*:focus, *:focus-visible{outline:none}*:focus-visible{box-shadow:var(--focused-element-shadow)}.hidden{visibility:hidden;opacity:0}.overlay-container{pointer-events:none;top:0;left:0;height:100%;width:100%;position:fixed;z-index:10000}.out-of-view{position:absolute !important;left:-1000vh !important}`)}function v6(i){let e,t,n;function o(r){i[60](r)}let l={store:i[0],uiConfig:i[34],title:i[1],thumbUrl:i[2],interactiveContainer:i[3],live:i[4],autoplay:i[5],canRewindLive:i[6],showAds:i[7],adsSlotId:i[8],adsParams:i[9],adsPreviewParam:i[10],duration:i[11],logoClickable:i[12],logoHidden:i[13],logoTargetUrl:i[35],showNextPrevButtons:i[15],nextButtonActive:i[16],prevButtonActive:i[17],endScreenVideoTitle:i[18],endScreenVideoThumb:i[19],isOneVideoPlaylist:i[20],supportLink:i[21],outerContainerRef:i[22],fullScreenTarget:i[23],showMiniTimer:i[24],playerStarted:i[33],playNextVideo:i[25],playPrevVideo:i[26],repeatPlaylist:i[27],seekToInteractive:i[28],toggleGraph:i[29],playPrevChapter:i[30],firstStart:i[37]};return i[32]!==void 0&&(l.videoContainer=i[32]),e=new U0({props:l}),he.push(()=>He(e,"videoContainer",o)),{c(){B(e.$$.fragment)},m(r,a){L(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.outerContainerRef=r[22]),a[0]&8388608&&(s.fullScreenTarget=r[23]),a[0]&16777216&&(s.showMiniTimer=r[24]),a[1]&4&&(s.playerStarted=r[33]),a[0]&33554432&&(s.playNextVideo=r[25]),a[0]&67108864&&(s.playPrevVideo=r[26]),a[0]&134217728&&(s.repeatPlaylist=r[27]),a[0]&268435456&&(s.seekToInteractive=r[28]),a[0]&536870912&&(s.toggleGraph=r[29]),a[0]&1073741824&&(s.playPrevChapter=r[30]),!t&&a[1]&2&&(t=!0,s.videoContainer=r[32],Fe(()=>t=!1)),e.$set(s)},i(r){n||(d(e.$$.fragment,r),n=!0)},o(r){_(e.$$.fragment,r),n=!1},d(r){R(e,r)}}}function y6(i){let e,t,n;function o(r){i[59](r)}let l={store:i[0],uiConfig:i[34],thumbUrl:i[2],interactiveContainer:i[3],live:i[4],autoplay:i[5],canRewindLive:i[6],showAds:i[7],adsSlotId:i[8],adsParams:i[9],adsPreviewParam:i[10],duration:i[11],logoClickable:i[12],logoHidden:i[13],logoTargetUrl:i[35],showNextPrevButtons:i[15],nextButtonActive:i[16],prevButtonActive:i[17],endScreenVideoTitle:i[18],endScreenVideoThumb:i[19],isOneVideoPlaylist:i[20],supportLink:i[21],outerContainerRef:i[22],fullScreenTarget:i[23],showMiniTimer:i[24],playerStarted:i[33],playNextVideo:i[25],playPrevVideo:i[26],repeatPlaylist:i[27],seekToInteractive:i[28],toggleGraph:i[29],playPrevChapter:i[30],firstStart:i[37],seekTime:i[31]};return i[32]!==void 0&&(l.videoContainer=i[32]),e=new ap({props:l}),he.push(()=>He(e,"videoContainer",o)),{c(){B(e.$$.fragment)},m(r,a){L(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.outerContainerRef=r[22]),a[0]&8388608&&(s.fullScreenTarget=r[23]),a[0]&16777216&&(s.showMiniTimer=r[24]),a[1]&4&&(s.playerStarted=r[33]),a[0]&33554432&&(s.playNextVideo=r[25]),a[0]&67108864&&(s.playPrevVideo=r[26]),a[0]&134217728&&(s.repeatPlaylist=r[27]),a[0]&268435456&&(s.seekToInteractive=r[28]),a[0]&536870912&&(s.toggleGraph=r[29]),a[0]&1073741824&&(s.playPrevChapter=r[30]),!t&&a[1]&2&&(t=!0,s.videoContainer=r[32],Fe(()=>t=!1)),e.$set(s)},i(r){n||(d(e.$$.fragment,r),n=!0)},o(r){_(e.$$.fragment,r),n=!1},d(r){R(e,r)}}}function w6(i){let e,t,n,o,l=[y6,v6],r=[];function a(s,u){return s[14]?0:1}return t=a(i,[-1,-1,-1]),n=r[t]=l[t](i),{c(){e=P("div"),n.c(),c(e,"class","root svelte-cghoty")},m(s,u){C(s,e,u),r[t].m(e,null),o=!0},p(s,u){let f=t;t=a(s,u),t===f?r[t].p(s,u):(ue(),_(r[f],1,1,()=>{r[f]=null}),ce(),n=r[t],n?n.p(s,u):(n=r[t]=l[t](s),n.c()),d(n,1),n.m(e,null))},i(s){o||(d(n),o=!0)},o(s){_(n),o=!1},d(s){s&&w(e),r[t].d()}}}function k6(i,e,t){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:b}=e,{preload:g}=e,{autoplay:S}=e,{volume:y=void 0}=e,{muted:T=void 0}=e,{fromTime:k}=e,{canRewindLive:v}=e,{showAds:I}=e,{adsSlotId:W=void 0}=e,{adsParams:Q=void 0}=e,{adsPreviewParam:G=void 0}=e,{duration:le=void 0}=e,{logoClickable:ae}=e,{logoHidden:V}=e,{isMobile:A}=e,{showNextPrevButtons:$=!1}=e,{nextButtonActive:J=!1}=e,{prevButtonActive:x=!1}=e,{endScreenVideoTitle:N=void 0}=e,{endScreenVideoThumb:te=void 0}=e,{isOneVideoPlaylist:E=!1}=e,{supportLink:Y}=e,{outerContainerRef:Le=void 0}=e,{fullScreenTarget:je=void 0}=e,{failoverHosts:qe=void 0}=e,{showMiniTimer:Je=!1}=e,{saveRate:Ne}=e,{playNextVideo:we=Jo}=e,{playPrevVideo:X=Jo}=e,{repeatPlaylist:ve=Jo}=e,{seekToInteractive:Oe=Jo}=e,{toggleGraph:Xe=Jo}=e,{playPrevChapter:xe=Jo}=e,{volumeMultiplier:ke}=e,{subscribers:Re,stores:Ue}=r;Bc(s);let We=Tt(),se=s.logoLink,oe=l.ui.debugPanelVisible,Se=l.ui.playerSize,fe=l.state.isLive$;F(i,fe,me=>t(62,n=me));let Ae,Ze=null,ut=!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}),jc(l,Ue);let ct=(me=!1)=>{t(33,ut=!0),me?l.actions.external.firstStart(I):l.actions.internal.firstStart(I)};function at(me){let vt=o||me;vt&&l.initVideo({container:Ae,sources:vt,failoverHosts:qe,subtitles:h,volumeMultiplier:ke});let _t=_6.get(ol)==="true";oe.set(_t),k>0&&l.actions.external.seekTime(k);let Dt=A?We.volumeDefault:y??Nl()??We.volumeDefault,wt=T??of();if(l.actions.external.setVolume(Dt),l.actions.external.setMuted(wt),l.getAdmanWrapper().setInitialVolume(wt?0:Dt),We.features.trafficSaving){let Ut=rf();Ut&&l.actions.internal.setTrafficSavingEnabled(Ut)}if(We.features.saveRate&&Ne){let Ut=af();Ut&&!n&&l.actions.internal.setPlaybackRate(Ut)}let At=ef(l.videoId);At&&l.actions.internal.setQuality(At),l.ui.isAutoplay.set(S),S?ct():g&&We.features.preload&&l.actions.internal.preload()}let ye=me=>{if(window.ResizeObserver){let vt,_t;Ze=new ResizeObserver(h6(Dt=>{let wt=Dt[0];if(wt){if(wt.contentBoxSize){let At=Array.isArray(wt.contentBoxSize)?wt.contentBoxSize[0]:wt.contentBoxSize;vt=At.inlineSize,_t=At.blockSize}else wt.contentRect&&(vt=wt.contentRect.width,_t=wt.contentRect.height);Se.set({width:vt,height:_t})}},300)),Ze.observe(me)}Se.set({width:me.clientWidth,height:me.clientHeight})};Ct(()=>{ye(Ae);let me=Re.map(_t=>_t.init({store:l,microStores:Ue,config:a}));if(b?.status==="upcoming"||b?.status==="waiting"){l.actions.internal.setWaitingLive(!0);return}if((b?.status==="finished"||b?.status==="postlive")&&!Object.keys(o||[]).length){l.actions.internal.setWaitingRecord(!0);return}return at(),()=>{Ze?.disconnect(),me.forEach(_t=>_t.unsubscribe()),l.destroy()}});function mt(){ut?l.actions.external.play():ct(!0)}function lt(){l.actions.external.pause()}function dt(me){A||l.actions.external.setMuted(me)}function ht(me){A||me>=0&&me<=1&&l.actions.external.setVolume(me)}function Et(me){l.actions.internal.seekTime(me,g6.UNKNOWN)}function Ke(me){l.actions.external.seekEpisodeStartTime(me)}function Qt(){l.actions.external.returnFocusToEpisodes()}function Bt(me){l.actions.external.setPlaybackRate(me)}function Mt(me){l.actions.external.setAutoQualityLimits(me)}function ti(me){Ae=me,t(32,Ae)}function it(me){Ae=me,t(32,Ae)}return i.$$set=me=>{"sources"in me&&t(38,o=me.sources),"store"in me&&t(0,l=me.store),"microStoresRoot"in me&&t(39,r=me.microStoresRoot),"videoConfig"in me&&t(40,a=me.videoConfig),"uiConfig"in me&&t(41,s=me.uiConfig),"title"in me&&t(1,u=me.title),"thumbUrl"in me&&t(2,f=me.thumbUrl),"interactiveContainer"in me&&t(3,p=me.interactiveContainer),"subtitles"in me&&t(42,h=me.subtitles),"live"in me&&t(4,b=me.live),"preload"in me&&t(43,g=me.preload),"autoplay"in me&&t(5,S=me.autoplay),"volume"in me&&t(44,y=me.volume),"muted"in me&&t(45,T=me.muted),"fromTime"in me&&t(46,k=me.fromTime),"canRewindLive"in me&&t(6,v=me.canRewindLive),"showAds"in me&&t(7,I=me.showAds),"adsSlotId"in me&&t(8,W=me.adsSlotId),"adsParams"in me&&t(9,Q=me.adsParams),"adsPreviewParam"in me&&t(10,G=me.adsPreviewParam),"duration"in me&&t(11,le=me.duration),"logoClickable"in me&&t(12,ae=me.logoClickable),"logoHidden"in me&&t(13,V=me.logoHidden),"isMobile"in me&&t(14,A=me.isMobile),"showNextPrevButtons"in me&&t(15,$=me.showNextPrevButtons),"nextButtonActive"in me&&t(16,J=me.nextButtonActive),"prevButtonActive"in me&&t(17,x=me.prevButtonActive),"endScreenVideoTitle"in me&&t(18,N=me.endScreenVideoTitle),"endScreenVideoThumb"in me&&t(19,te=me.endScreenVideoThumb),"isOneVideoPlaylist"in me&&t(20,E=me.isOneVideoPlaylist),"supportLink"in me&&t(21,Y=me.supportLink),"outerContainerRef"in me&&t(22,Le=me.outerContainerRef),"fullScreenTarget"in me&&t(23,je=me.fullScreenTarget),"failoverHosts"in me&&t(47,qe=me.failoverHosts),"showMiniTimer"in me&&t(24,Je=me.showMiniTimer),"saveRate"in me&&t(48,Ne=me.saveRate),"playNextVideo"in me&&t(25,we=me.playNextVideo),"playPrevVideo"in me&&t(26,X=me.playPrevVideo),"repeatPlaylist"in me&&t(27,ve=me.repeatPlaylist),"seekToInteractive"in me&&t(28,Oe=me.seekToInteractive),"toggleGraph"in me&&t(29,Xe=me.toggleGraph),"playPrevChapter"in me&&t(30,xe=me.playPrevChapter),"volumeMultiplier"in me&&t(49,ke=me.volumeMultiplier)},i.$$.update=()=>{if(i.$$.dirty[0]&16385)e:l.ui.isMobile.set(A)},[l,u,f,p,b,S,v,I,W,Q,G,le,ae,V,A,$,J,x,N,te,E,Y,Le,je,Je,we,X,ve,Oe,Xe,xe,Et,Ae,ut,We,se,fe,ct,o,r,a,s,h,g,y,T,k,qe,Ne,ke,at,mt,lt,dt,ht,Ke,Qt,Bt,Mt,ti,it]}var tc=class extends q{constructor(e){super(),U(this,e,k6,w6,z,{sources:38,store:0,microStoresRoot:39,videoConfig:40,uiConfig:41,title:1,thumbUrl:2,interactiveContainer:3,subtitles:42,live:4,preload:43,autoplay:5,volume:44,muted:45,fromTime:46,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,outerContainerRef:22,fullScreenTarget:23,failoverHosts:47,showMiniTimer:24,saveRate:48,playNextVideo:25,playPrevVideo:26,repeatPlaylist:27,seekToInteractive:28,toggleGraph:29,playPrevChapter:30,volumeMultiplier:49,initVideo:50,play:51,pause:52,setMuted:53,setVolume:54,seekTime:31,seekEpisodeStartTime:55,returnFocusToEpisodes:56,setPlaybackRate:57,setAutoQualityLimits:58},b6,[-1,-1,-1])}get initVideo(){return this.$$.ctx[50]}get play(){return this.$$.ctx[51]}get pause(){return this.$$.ctx[52]}get setMuted(){return this.$$.ctx[53]}get setVolume(){return this.$$.ctx[54]}get seekTime(){return this.$$.ctx[31]}get seekEpisodeStartTime(){return this.$$.ctx[55]}get returnFocusToEpisodes(){return this.$$.ctx[56]}get setPlaybackRate(){return this.$$.ctx[57]}get setAutoQualityLimits(){return this.$$.ctx[58]}},up=tc;function C6(i){let e,t,n,o=i[2].default,l=Pe(o,i,i[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"},i[0]],a={};for(let s=0;s<r.length;s+=1)a=ne(a,r[s]);return{c(){e=D("svg"),l&&l.c(),t=D("path"),c(t,"fill","currentColor"),c(t,"d","M38.245 6c3.566 0 4.859.371 6.162 1.069a7.27 7.27 0 0 1 3.025 3.024c.697 1.303 1.068 2.597 1.068 6.163v23.489c0 3.566-.371 4.859-1.069 6.162a7.27 7.27 0 0 1-3.024 3.025C43.104 49.629 41.811 50 38.245 50h-19.49c-3.565 0-4.859-.371-6.162-1.069a7.27 7.27 0 0 1-3.024-3.024C8.87 44.604 8.5 43.311 8.5 39.745v-23.49c0-3.565.371-4.859 1.069-6.162a7.27 7.27 0 0 1 3.024-3.024C13.896 6.37 15.19 6 18.756 6zm.314 3H18.756c-2.799 0-3.761.186-4.749.714a4.27 4.27 0 0 0-1.793 1.793c-.508.95-.7 1.876-.713 4.434L11.5 39.744c0 2.799.186 3.761.714 4.749a4.27 4.27 0 0 0 1.793 1.793c.988.528 1.95.714 4.749.714h19.489c2.798 0 3.76-.186 4.748-.714a4.27 4.27 0 0 0 1.793-1.793c.528-.988.714-1.95.714-4.748v-23.49c0-2.798-.186-3.76-.714-4.748a4.27 4.27 0 0 0-1.793-1.793c-.95-.508-1.876-.7-4.434-.713zM19.22 38c.445 0 .607.046.77.134a.9.9 0 0 1 .377.378c.088.163.134.324.134.77v1.436c0 .446-.046.607-.134.77a.9.9 0 0 1-.378.378c-.162.088-.324.134-.77.134h-1.436c-.446 0-.608-.046-.77-.134a.9.9 0 0 1-.378-.378c-.088-.163-.134-.324-.134-.77v-1.436c0-.446.046-.607.134-.77a.9.9 0 0 1 .378-.378c.162-.088.324-.134.77-.134h1.436zm20 0c.445 0 .606.046.77.134a.9.9 0 0 1 .377.378c.088.163.134.324.134.77v1.436c0 .446-.046.607-.134.77a.9.9 0 0 1-.378.378c-.163.088-.324.134-.77.134h-1.436c-.446 0-.607-.046-.77-.134a.9.9 0 0 1-.378-.378c-.088-.163-.134-.324-.134-.77v-1.436c0-.446.046-.607.134-.77a.9.9 0 0 1 .378-.378c.163-.088.324-.134.77-.134zm-20-8c.445 0 .607.046.77.134a.9.9 0 0 1 .377.378c.088.162.134.324.134.77v1.436c0 .446-.046.607-.134.77a.9.9 0 0 1-.378.378c-.162.088-.324.134-.77.134h-1.436c-.446 0-.608-.046-.77-.134a.9.9 0 0 1-.378-.378c-.088-.163-.134-.324-.134-.77v-1.436c0-.446.046-.608.134-.77a.9.9 0 0 1 .378-.378c.162-.088.324-.134.77-.134h1.436zm20 0c.445 0 .606.046.77.134a.9.9 0 0 1 .377.378c.088.162.134.324.134.77v1.436c0 .446-.046.607-.134.77a.9.9 0 0 1-.378.378c-.163.088-.324.134-.77.134h-1.436c-.446 0-.607-.046-.77-.134a.9.9 0 0 1-.378-.378c-.088-.163-.134-.324-.134-.77v-1.436c0-.446.046-.608.134-.77a.9.9 0 0 1 .378-.378c.163-.088.324-.134.77-.134zm-20-8c.445 0 .607.046.77.134a.9.9 0 0 1 .377.378c.088.162.134.324.134.77v1.436c0 .446-.046.608-.134.77a.9.9 0 0 1-.378.378c-.162.088-.324.134-.77.134h-1.436c-.446 0-.608-.046-.77-.134a.9.9 0 0 1-.378-.378c-.088-.162-.134-.324-.134-.77v-1.436c0-.446.046-.608.134-.77a.9.9 0 0 1 .378-.378c.162-.088.324-.134.77-.134h1.436zm20 0c.445 0 .606.046.77.134a.9.9 0 0 1 .377.378c.088.162.134.324.134.77v1.436c0 .446-.046.608-.134.77a.9.9 0 0 1-.378.378c-.163.088-.324.134-.77.134h-1.436c-.446 0-.607-.046-.77-.134a.9.9 0 0 1-.378-.378c-.088-.162-.134-.324-.134-.77v-1.436c0-.446.046-.608.134-.77a.9.9 0 0 1 .378-.378c.163-.088.324-.134.77-.134zm-20-8c.445 0 .607.046.77.134a.9.9 0 0 1 .377.378c.088.162.134.324.134.77v1.436c0 .446-.046.608-.134.77a.9.9 0 0 1-.378.378c-.162.088-.324.134-.77.134h-1.436c-.446 0-.608-.046-.77-.134a.9.9 0 0 1-.378-.378c-.088-.162-.134-.324-.134-.77v-1.436c0-.446.046-.607.134-.77a.9.9 0 0 1 .378-.378c.162-.088.324-.134.77-.134h1.436zm20 0c.445 0 .606.046.77.134a.9.9 0 0 1 .377.378c.088.162.134.324.134.77v1.436c0 .446-.046.608-.134.77a.9.9 0 0 1-.378.378c-.163.088-.324.134-.77.134h-1.436c-.446 0-.607-.046-.77-.134a.9.9 0 0 1-.378-.378c-.088-.162-.134-.324-.134-.77v-1.436c0-.446.046-.607.134-.77a.9.9 0 0 1 .378-.378c.163-.088.324-.134.77-.134z"),be(e,a)},m(s,u){C(s,e,u),l&&l.m(e,null),m(e,t),n=!0},p(s,[u]){l&&l.p&&(!n||u&2)&&Te(l,o,s,s[1],n?Ie(o,s[1],u,null):Ee(s[1]),null),be(e,a=Ve(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&&w(e),l&&l.d(s)}}}function S6(i,e,t){let{$$slots:n={},$$scope:o}=e;return i.$$set=l=>{t(0,e=ne(ne({},e),ge(l))),"$$scope"in l&&t(1,o=l.$$scope)},e=ge(e),[e,o,n]}var ic=class extends q{constructor(e){super(),U(this,e,S6,C6,z,{})}},cp=ic;function P6(i){let e,t;return e=new cp({props:{style:i[0]}}),{c(){B(e.$$.fragment)},m(n,o){L(e,n,o),t=!0},p(n,[o]){let l={};o&1&&(l.style=n[0]),e.$set(l)},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){_(e.$$.fragment,n),t=!1},d(n){R(e,n)}}}function I6(i,e,t){let n,{isWhite:o=!1}=e;return i.$$set=l=>{"isWhite"in l&&t(1,o=l.isWhite)},i.$$.update=()=>{if(i.$$.dirty&2)e:t(0,n=o?"color: #fff;":"color: #909499;")},[n,o]}var nc=class extends q{constructor(e){super(),U(this,e,I6,P6,z,{isWhite:1})}},fp=nc;function T6(i){Ce(i,"svelte-1y9fytq",".playerStub.svelte-1y9fytq{width:100%;height:100%;background-color:#222;display:flex;justify-content:center;align-items:center;position:relative;background-position:center;background-size:cover;font-family:-apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif}.title.svelte-1y9fytq{position:absolute;left:0;top:0;width:100%;font-size:15px;color:#fff;box-sizing:border-box;padding:18px 20px 10px;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}")}function dp(i){let e,t;return{c(){e=P("div"),t=Be(i[0]),c(e,"class","title svelte-1y9fytq")},m(n,o){C(n,e,o),m(e,t)},p(n,o){o&1&&Qe(t,n[0])},d(n){n&&w(e)}}}function mp(i){let e,t;return e=new fp({props:{isWhite:!!i[1]}}),{c(){B(e.$$.fragment)},m(n,o){L(e,n,o),t=!0},p(n,o){let l={};o&2&&(l.isWhite=!!n[1]),e.$set(l)},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){_(e.$$.fragment,n),t=!1},d(n){R(e,n)}}}function E6(i){let e,t,n,o,l=i[0]&&dp(i),r=(!i[0]||!i[1])&&mp(i);return{c(){e=P("div"),l&&l.c(),t=O(),r&&r.c(),c(e,"class","playerStub svelte-1y9fytq"),c(e,"style",n=i[1]?`background-image: url('${i[1]}')`:"")},m(a,s){C(a,e,s),l&&l.m(e,null),m(e,t),r&&r.m(e,null),o=!0},p(a,[s]){a[0]?l?l.p(a,s):(l=dp(a),l.c(),l.m(e,t)):l&&(l.d(1),l=null),!a[0]||!a[1]?r?(r.p(a,s),s&3&&d(r,1)):(r=mp(a),r.c(),d(r,1),r.m(e,null)):r&&(ue(),_(r,1,1,()=>{r=null}),ce()),(!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&&w(e),l&&l.d(),r&&r.d()}}}function A6(i,e,t){let{title:n}=e,{thumbUrl:o}=e;return i.$$set=l=>{"title"in l&&t(0,n=l.title),"thumbUrl"in l&&t(1,o=l.thumbUrl)},[n,o]}var oc=class extends q{constructor(e){super(),U(this,e,A6,E6,z,{title:0,thumbUrl:1},T6)}},pp=oc;import{cloneDeepWith as Y6,InterfaceLanguage as Z6,isMobile as X6,isNonNullable as cc,Logger as J6,Subject as x6,Subscription as $6}from"@vkontakte/videoplayer-shared";import"@vkontakte/videoplayer-core";import{InteractiveInterfaceClick as kl}from"@vkontakte/videoplayer-statistics";var Wr=class{isSupported(){return"mediaSession"in navigator}setMetaData({title:e,artist:t="",thumbUrl:n=""}){this.isSupported()&&(navigator.mediaSession.metadata=new MediaMetadata({title:e,artist:t,artwork:[{src:n,sizes:"96x96",type:"image/png"},{src:n,sizes:"128x128",type:"image/png"},{src:n,sizes:"192x192",type:"image/png"},{src:n,sizes:"256x256",type:"image/png"},{src:n,sizes:"384x384",type:"image/png"},{src:n,sizes:"512x512",type:"image/png"}]}))}updateActionHandlers(e){this.resetActionHandlers(),this.setActionHandlers(e)}resetActionHandlers(){let e=[["play",null],["pause",null],["stop",null],["nexttrack",null],["previoustrack",null],["seekto",t=>null],["seekbackward",t=>null],["seekforward",t=>null]];this.setActionHandlers(e)}setActionHandlers(e){if(this.isSupported())for(let[t,n]of e)try{navigator.mediaSession.setActionHandler(t,n)}catch{throw new Error(`The media session action "${t}" is not supported yet.`)}}};import{CurrentClientBrowser as D6,ValueSubject as N6,getCurrentBrowser as O6,detectEmbed as F6}from"@vkontakte/videoplayer-shared";function M6(i){let e,t,n,o,l,r=i[2].default,a=Pe(r,i,i[1],null),s=[{xmlns:"http://www.w3.org/2000/svg"},{width:"57"},{height:"56"},{fill:"none"},{"aria-label":"dummy-image"},{"data-testid":"pip-dummy-icon"},{role:"img"},i[0]],u={};for(let f=0;f<s.length;f+=1)u=ne(u,s[f]);return{c(){e=D("svg"),a&&a.c(),t=D("g"),n=D("path"),o=D("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(t,"fill","#fff"),be(e,u)},m(f,p){C(f,e,p),a&&a.m(e,null),m(e,t),m(t,n),m(t,o),l=!0},p(f,[p]){a&&a.p&&(!l||p&2)&&Te(a,r,f,f[1],l?Ie(r,f[1],p,null):Ee(f[1]),null),be(e,u=Ve(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&&w(e),a&&a.d(f)}}}function V6(i,e,t){let{$$slots:n={},$$scope:o}=e;return i.$$set=l=>{t(0,e=ne(ne({},e),ge(l))),"$$scope"in l&&t(1,o=l.$$scope)},e=ge(e),[e,o,n]}var lc=class extends q{constructor(e){super(),U(this,e,V6,M6,z,{})}},_p=lc;function L6(i){Ce(i,"svelte-1pbsod4",".player-pip-dummy.svelte-1pbsod4{width:100%;height:100%;background-color:#19191A;display:flex;flex-direction:column;justify-content:center;align-items:center;font-family:-apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif}.player-pip-dummy.is-pip-api.svelte-1pbsod4{position:relative}.dummy-image.svelte-1pbsod4 svg{transform:scale(1.07143)}.dummy-image.desktop.svelte-1pbsod4{transform:scale(1.07143) rotate(-90deg) rotateY(180deg)}.title.svelte-1pbsod4{font-size:16px;color:#fff;padding:18px 20px 10px;text-align:center}")}function R6(i){let e,t,n,o,l,r,a;return n=new _p({}),{c(){e=P("div"),t=P("div"),B(n.$$.fragment),o=O(),l=P("span"),r=Be(i[0]),c(t,"class","dummy-image svelte-1pbsod4"),H(t,"desktop",!i[1]),c(l,"class","title svelte-1pbsod4"),c(e,"class","player-pip-dummy svelte-1pbsod4"),H(e,"is-pip-api",i[2])},m(s,u){C(s,e,u),m(e,t),L(n,t,null),m(e,o),m(e,l),m(l,r),a=!0},p(s,[u]){(!a||u&2)&&H(t,"desktop",!s[1]),(!a||u&1)&&Qe(r,s[0])},i(s){a||(d(n.$$.fragment,s),a=!0)},o(s){_(n.$$.fragment,s),a=!1},d(s){s&&w(e),R(n)}}}function B6(i,e,t){let n,o,l=et(),r=!!l.webApi.pictureInPictureApi,a=l.interfaceLanguage$;F(i,a,f=>t(5,n=f));let s=l.ui.isMobile;F(i,s,f=>t(1,o=f));let u;return i.$$.update=()=>{if(i.$$.dirty&32)e:t(0,u=n&&j("pip_dummy_title"))},[u,o,r,a,s,n]}var rc=class extends q{constructor(e){super(),U(this,e,B6,R6,z,{},L6)}},hp=rc;var H6=460,z6=280,gl=class{constructor(){this.info={isActive$:new N6(!1),type:1}}isSupported(){let e=O6().browser===D6.Yandex,{isEmbed:t}=F6();return"documentPictureInPicture"in window&&!e&&!t}isActive(){return this.isSupported()&&!!documentPictureInPicture.window}setPlayerDomElement(e,t){this.playerDomElement=e,this.playerParentShadowRoot=t}setContext(e){this.svelteContext=e}async request(){if(!this.isSupported()||!this.playerDomElement||!this.playerParentShadowRoot)return;this.pipWindow=await documentPictureInPicture.requestWindow({width:H6,height:z6,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(`
|
|
51
|
+
`),t=document.createElement("style");t.textContent=e;let n=this.createStretchedContainer(),o=n.attachShadow({mode:"open"});o.append(t),o.append(this.playerDomElement),this.playerDummyElement=new hp({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 gp(i){return i instanceof gl}var Gr=class{static getLatestSupportedVersion(){let e=new bo,t=new gl;if(t.isSupported())return t;if(e.isSupported())return e}};function sc(i,e){let t=new Set([...Object.keys(i),...Object.keys(e)]),n={};for(let o of t)n[o]=e[o]??i[o]??void 0;return n}var bp="Inner error. Unexpectedly root annotation container null reference exception",vp="Annotation with such name already exists",yp="Annotation with such name does not exist";var xo=class extends Error{constructor(e){super(e),this.name="AnnotationError"}};import{observeElementSize as q6,Subscription as U6,throttleFn as K6}from"@vkontakte/videoplayer-shared";var j6="1",W6=100,Qr=class{constructor(e){this.annotations=new Map;this.subscriptions=new U6;this.rootAnnotationsContainer=e;let t=K6(()=>{for(let n of this.annotations.values())this.isElementExceedsBoundaries(n,this.playerSize.width,this.playerSize.height)?n.style.visibility="hidden":n.style.visibility="visible"},W6);this.subscriptions.add(q6(this.rootAnnotationsContainer).subscribe(({width:n,height:o})=>{this.playerSize={width:n,height:o},t()})),this.mutationObserver=new MutationObserver(t),this.mutationObserver.observe(this.rootAnnotationsContainer,{attributes:!0,childList:!0,subtree:!0,characterData:!0})}add(e,t){if(!this.rootAnnotationsContainer)throw new xo(bp);if(this.annotations.has(e))throw new xo(vp);t.style.zIndex=t.style.zIndex??j6,t.style.position="absolute",this.rootAnnotationsContainer.append(t),this.annotations.set(e,t)}get(e){let t=this.annotations.get(e);if(!t)throw new xo(yp);return t}remove(e){let t=this.get(e);this.annotations.delete(e)&&t.remove()}clear(){for(let e in this.annotations.keys())this.remove(e)}destroy(){this.annotations.clear(),this.subscriptions.unsubscribe(),this.mutationObserver.disconnect(),this.rootAnnotationsContainer=null}isElementExceedsBoundaries(e,t,n){let o=e.offsetTop,l=e.offsetLeft,r=e.offsetWidth,a=e.offsetHeight;return o<0||l<0||l+r>t||o+a>n}registryRootContainer(e){}addLayer(e){return new HTMLElement}getLayer(e){}removeLayer(e){}clearLayer(e){}detach(){}reattach(){}};import{assertNonNullable as ac,Subscription as G6}from"@vkontakte/videoplayer-shared";var Hn=class{init({store:e,microStores:t,config:n}){return ac(e),ac(t),ac(n),this.subscription=new G6,this.subscription}};var bl=class extends Hn{constructor(){super(...arguments);this.stateName="fakeIsPlaying$";this.state$={...De(null),toggle:()=>this.state$.update(t=>!t)}}init(t){let n=super.init(t),{isInteractiveExpectation$:o}=t.store.state;return n.add(o.subscribe(l=>{this.state$.set(l?!0:null)})),n}};var vl=class extends Hn{constructor(){super(...arguments);this.stateName="interactiveControlsOpacity$";this.state$={...De(null),toggle:()=>this.state$.update(t=>!t)}}init(t){let n=super.init(t),{microStores:o,store:l}=t,{fakeIsPlaying$:r}=o,{isInteractiveExpectation$:a,isPlaying$:s}=l.state,{controlsVisible:u,isMobile:f}=l.ui,p=$e(f),h=()=>p&&$e(u);return n.add(u.subscribe(b=>{if(!p)return;let g=$e(r);$e(s)?this.state$.set(b):g!==null&&this.state$.set(!g||b)})),n.add(s.subscribe(b=>{this.state$.set(!b||h())})),n.add(r.subscribe(b=>{if(b===null)return;let g=$e(a);if(h()){this.state$.set(!0);return}g&&this.state$.set(!b)})),n}};var yl=class extends Hn{constructor(){super(...arguments);this.stateName="seekToInteractiveDisabledTooltip$";this.state$=De("tooltip_chapter_without_interactive")}init(t){let n=super.init(t),{store:o}=t;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 Q6}from"@vkontakte/videoplayer-shared";var uc=De(!1),Yr=null,wl=class extends Hn{constructor(){super(...arguments);this.stateName="showInteractiveTimeIndicatorTooltip$";this.state$={...uc,set:(t,n=!1)=>{t!==$e(uc)&&(this.clearTimeout(),uc.set(t),!t&&Yr&&(Yr=!1),t&&n&&(this.timeout=setTimeout(()=>{this.state$.set(!1)},3e3)))},clearTimeout:()=>this.clearTimeout()}}init(t){let n=super.init(t),{store:o,config:l}=t,{isInteractiveTime$:r,isPlaying$:a}=o.state,s=o.ui.controlsVisible,{interactiveTimeIndicator:u}=o.ui.controls;n.add(s.subscribe(p=>{$e(r)&&p&&this.state$.set(!1)}));let f=l?.interactiveData||{tooltipHelpHintActive:!1};return n.add(Q6({isPlaying$:a,isInteractiveTime$:r,interactiveTimeIndicator:u}).subscribe(({isPlaying$:p,isInteractiveTime$:h,interactiveTimeIndicator:b})=>{if(!(!p||!b?.isDisplayed)){if(!h)return this.state$.set(!1);f.tooltipHelpHintActive&&Yr===null&&(Yr=!0,f.tooltipHelpHintActive=!1,this.state$.set(!0),o.callbacks?.onInteractiveTimeIndicatorHintDeactivated?.())}})),n}clearTimeout(){window.clearTimeout(this.timeout)}};var wp=()=>[bl,vl,yl,wl].reduce(({subscribers:i,stores:e},t)=>{let n=new t;return{subscribers:[...i,n],stores:{...e,[n.stateName]:n.state$}}},{subscribers:[],stores:{}});var e8={preload:!0,autoplay:!1,repeat:!1,fromTime:0,canRewindLive:!0,showAds:!1,interfaceLanguage:Z6.RU,logoClickable:!1,logoHidden:!1,isMobile:X6(),isMediaSessionEnabled:!0,isPictureInPictureEnabled:!0,isAudioDisabled:!1,callbacks:{uiInfo:{}},tuningConfig:{configName:[]},saveRate:!0,volumeMultiplier:1},Zr=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.logger=new J6,this.log=this.logger.createComponentLog("VKVideoPlayer"),this.subscription=new $6,this.graphMadePause=!1,window?.videoPlayerConfig?.debugLogs&&this.subscription.add(this.logger.log$.subscribe(t=>{console.log("%c player web component ","background:#77dd77;",`${t.component}`,t.message)}))}connectedCallback(){if(this.isInited)return;this.initPlayerRootContainers();let t=this.getAttribute("stub-title")??void 0,n=this.getAttribute("stub-thumb-url")??void 0;this.svelteStubComponent=new pp({target:this.playerContainer,props:{title:t,thumbUrl:n}})}disconnectedCallback(){this.annotationsApi?.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%";let t=document.createElement("div");t.style.position="absolute",t.className="shadow-root-container",t.style.width="100%",t.style.height="100%",this._shadowRoot=t.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(t),this.append(this.rootContainer)}needToShowNextPrevButtons(){return this.videoConfig?this.videoConfig.videos.length>1:!1}isNextButtonActive(){return this.videoConfig?this.needToShowNextPrevButtons()&&(this.currentPlayingVideoIndex<this.videoConfig.videos.length-1||this.needToRepeatPlaylist):!1}isPrevButtonActive(){return this.videoConfig?this.needToShowNextPrevButtons()&&(this.currentPlayingVideoIndex>0||this.needToRepeatPlaylist):!1}isControlDisabled(t){return this.store?.ui.controls.disabledControls$?.includes(t)||!1}getNextVideoInfo(){if(!this.videoConfig)return{nextVideoTitle:void 0,nextVideoThumb:void 0};let t=this.videoConfig.videos[this.currentPlayingVideoIndex+1]||{};return{nextVideoTitle:t.title,nextVideoThumb:t.thumbUrl}}createPlayer(t,n={},o){if(!this.videoConfig)return;let{albumId:l,statPlace:r,statUserSalt:a,statAuthToken:s,statTrackCode:u,refreshStatAuthToken:f,preload:p,autoplay:h,volume:b,muted:g,fromTime:S,canRewindLive:y,supportLink:T,showAds:k,adsSlotId:v,adsParams:I={},adsPreviewParam:W,interfaceLanguage:Q,logoClickable:G,logoHidden:le,isMobile:ae,isAudioDisabled:V,isLiveCatchUpMode:A,fullScreenTarget:$,failoverHosts:J,canDownload:x,callbacks:N,interactiveData:te,showThumbTimer:E,additionalButtons:Y=[],repeat:Le,saveRate:je,volumeMultiplier:qe}=sc(this.videoConfig,n),{sources:Je,title:Ne,thumbUrl:we,unitedVideoId:X,isClip:ve=!1,duration:Oe,adsParams:Xe={},videoEpisodes:xe,previewThumbsData:ke,subtitles:Re,live:Ue}=t,We={...I,...Xe},se=this.getNextVideoInfo(),oe={sources:Je,title:Ne,thumbUrl:we,subtitles:Re,unitedVideoId:X,isClip:ve,live:Ue,albumId:l,statPlace:r,autoplay:h,muted:g,volume:b,fromTime:S,canRewindLive:y,showAds:k,adsSlotId:v,adsParams:We,adsPreviewParam:W,duration:Oe,logoClickable:G,logoHidden:le,isMobile:ae,repeat:Le,showNextPrevButtons:this.needToShowNextPrevButtons(),nextButtonActive:this.isNextButtonActive(),prevButtonActive:this.isPrevButtonActive(),endScreenVideoTitle:se.nextVideoTitle,endScreenVideoThumb:se.nextVideoThumb,isOneVideoPlaylist:this.isOneVideoPlaylist()},Se={pictureInPictureApi:this.pictureInPictureApi,annotationsApi:this.annotationsApi};this.log({message:`create player, props: ${JSON.stringify(oe)}`});let fe=this.uiConfig.features.statistics&&!!X,{pid:Ae}=this.videoConfig?.interactiveData?.projectInfo||{};fe&&(this.statistics=new Vr({movieId:X,albumId:l,place:r,trackCode:u,autoplay:(h&&!this.interactiveController)??!1,mobile:ae,clip:ve,refDomain:this.videoConfig.refDomain,...Ae&&!this.isInited&&{projectId:Number(Ae)}},{refreshAuthToken:f,userSalt:a,config:this.statisticsConfig,...this.interactiveController&&{useIsid:!0,isid:this.prevIsid}})),this.uiConfig.features.sentry&&this.uiConfig.sentry.dsn&&new go(this.uiConfig.sentry,{version:zo,env:Bl},{movieId:X,albumId:l,place:r,autoplay:(h&&!this.interactiveController)??!1,mobile:ae,clip:ve}),this.interactiveController&&(this.prevIsid??=this.statistics?.oneStat.isid$.getValue()),this.sentry={...this.sentry,...go.getInstance()};let ut=!!te,ct=[],at="tooltip_interactive_go_back_disabled_first";if(ut&&this.interactiveController){let lt=this.interactiveController.state.isInitialChapter$.getValue(),dt=this.interactiveController.getHistoryState();lt&&ct.push("REPLAY_BUTTON"),this.interactiveController.getIsSeekable().getValue()||ct.push("SEEK_TO_INTERACTIVE_BUTTON"),dt.hasPrevChapter$.getValue()||(ct.push("PLAY_PREV_CHAPTER_BUTTON"),lt||(dt.isGoBackLimited$.getValue()?at="tooltip_interactive_go_back_disabled_limit":at="tooltip_interactive_go_back_disabled"))}let ye=()=>{this.isInited=!1,this.prevIsid=void 0;let lt=o?.info.isEnded$.getValue()&&this.interactiveController?.state.isEndChapter$.getValue();N.onReplayInteractiveVideo&&!lt?N.onReplayInteractiveVideo():this.replayInteractiveVideo()};this.store=Gd({player:o,interfaceLanguage:Q,videoId:X,isClip:ve,isLiveCatchUpMode:A,isAudioDisabled:V,statAuthToken:s,callbacks:N,webApi:Se,videoEpisodes:xe,previewThumbsData:ke,canDownload:x,uiConfig:this.uiConfig,coreConfig:this.coreConfig,disabledControls:ct,isInteractive:ut,saveRate:je,interactiveRanges$:this.interactiveController?.state.interactiveRanges$,isInteractiveTime$:this.interactiveController?.state.isInteractiveTime$,replayInteractive:ye,playPrevChapterDisabledTooltip:at,hasInteractiveBranches:!!this.interactiveController?.getChapterBranches()?.length,additionalButtons:this.uiConfig.features.additionalButtons?Y:[],looped:Le&&this.videoConfig.videos.length===1,statistics:this.statistics});let{stores:mt}=this.microStoresRoot=wp();this.subscription.add(this.store.state.currentFormat$.subscribe(lt=>N?.onCurrentFormatChanged?.(lt))),this.subscription.add(mt.interactiveControlsOpacity$.subscribe(lt=>{lt!==null&&this?.interactiveController?.setDisabledControls(lt)})),this.subscription.add(this.store.state.throughputEstimation$.subscribe(lt=>N?.onThroughputEstimationChanged?.(lt))),this.subscription.add(this.store.state.trafficSavingEnabled$.subscribe(lt=>N?.onTrafficSavingEnabledChanged?.(lt))),this.subscription.add(this.store.state.currentPlaybackRate$.subscribe(lt=>N?.onCurrentPlaybackRateChanged?.(lt))),this.subscription.add(this.store.state.volume$.subscribe(lt=>N?.onVolumeChange?.(lt))),this.subscription.add(this.store.state.muted$.subscribe(lt=>lt?N?.onMute?.():N?.onUnmute?.())),this.subscription.add(this.store.state.videoBitrate$.subscribe(lt=>N?.onVideoBitrateChanged?.(lt))),this.subscription.add(this.store.state.isInteractiveTime$.subscribe(lt=>{let dt=this.store?.ui.controls.disabledControls$;dt&&(lt&&!dt.includes(ll)&&dt.add(ll),lt||dt.remove(ll))})),this.initMediaSession(),this.interactiveController&&fe&&this.initInteractivesStatistics(),this.svelteRootComponent=new up({target:this.playerContainer,props:{interactiveContainer:this.interactiveContainer,sources:Je,store:this.store,microStoresRoot:this.microStoresRoot,videoConfig:this.videoConfig,uiConfig:this.uiConfig,title:Ne,thumbUrl:we,subtitles:Re,live:Ue,preload:p,autoplay:h,muted:g,volume:b,fromTime:S,canRewindLive:y,supportLink:T,showAds:k,adsSlotId:v,adsParams:We,adsPreviewParam:W,duration:Oe,logoClickable:G,logoHidden:le,isMobile:ae,failoverHosts:J,fullScreenTarget:$,saveRate:je,showMiniTimer:E,outerContainerRef:this.rootContainer,showNextPrevButtons:this.needToShowNextPrevButtons(),nextButtonActive:this.isNextButtonActive(),prevButtonActive:this.isPrevButtonActive(),endScreenVideoTitle:se.nextVideoTitle,endScreenVideoThumb:se.nextVideoThumb,isOneVideoPlaylist:this.isOneVideoPlaylist(),playNextVideo:()=>this.playNextVideo(),playPrevVideo:()=>this.playPrevVideo(),repeatPlaylist:()=>this.repeatPlaylist(),playPrevChapter:()=>this.playPrevChapter(),seekToInteractive:()=>this.seekToInteractive(),toggleGraph:()=>this.toggleGraph(),volumeMultiplier:qe}}),this.addPlayerInfoSubscriptions(),this.isInited||(this.isInited=!0,this.videoConfig?.callbacks?.onInited?.())}addPlayerInfoSubscriptions(){let t=this.store;if(!t)return;let n=this.videoConfig?.callbacks;n&&this.subscription.add(t.playerPhase.subscribe(l=>n.onPlayerPhaseChanged?.(l))).add(t.state.playbackState$.subscribe(l=>n.onPlaybackStateChanged?.(l))).add(t.state.isLive$.subscribe(l=>n.onIsLiveChanged?.(l))).add(t.state.isActiveLive$.subscribe(l=>n.onIsActiveLiveChanged?.(l))).add(t.state.isAudioAvailable$.subscribe(l=>n.onIsAudioAvailableChanged?.(l))).add(t.state.currentQuality$.subscribe(l=>n.onCurrentQualityChanged?.(l))).add(t.state.availableQualities$.subscribe(l=>n.onAvailableQualitiesChanged?.(l.map(({value:r})=>r).filter(r=>r!=="auto")))).add(t.ui.isPictureInPictureActive$.subscribe(l=>l?n.onPiPEnter?.():n.onPiPExit?.()));let o=n?.uiInfo;o&&this.subscription.add(t.ui.controlsVisible.subscribe(l=>o.onControlsVisibleChanged?.(l))).add(t.ui.isMobile.subscribe(l=>o.onIsMobileChanged?.(l))).add(t.ui.playerSize.subscribe(l=>o.onPlayerSizeChanged?.(l))).add(t.ui.controls.prevButton.subscribe(l=>o.onPrevButtonChanged?.(l))).add(t.ui.controls.playButton.subscribe(l=>o.onPlayButtonChanged?.(l))).add(t.ui.controls.replayButton.subscribe(l=>o.onReplayButtonChanged?.(l))).add(t.ui.controls.nextButton.subscribe(l=>o.onNextButtonChanged?.(l))).add(t.ui.controls.playPrevChapterButton.subscribe(l=>o.onPlayPrevChapterChanged?.(l))).add(t.ui.controls.seekToInteractiveButton.subscribe(l=>o.onSeekToInteractiveButtonChanged?.(l))).add(t.ui.controls.interactiveGraphButton.subscribe(l=>o.onGraphButtonChanged?.(l))).add(t.ui.controls.liveButton.subscribe(l=>o.onLiveButtonChanged?.(l))).add(t.ui.controls.time.subscribe(l=>o.onTimeUpdateChanged?.(l))).add(t.ui.controls.episodes.subscribe(l=>o.onEpisodesChanged?.(l))).add(t.ui.controls.subtitles.subscribe(l=>o.onSubtitlesChanged?.(l))).add(t.ui.controls.settings.subscribe(l=>o.onSettingsChanged?.(l))).add(t.ui.controls.fullscreen.subscribe(l=>o.onFullscreenChanged?.(l))).add(t.ui.controls.chromecast.subscribe(l=>o.onChromecastChanged?.(l))).add(t.ui.controls.pip.subscribe(l=>o.onPipChanged?.(l))).add(t.ui.controls.vkLogo.subscribe(l=>o.onVkLogoChanged?.(l))).add(t.ui.controls.interactiveTimeIndicator.subscribe(l=>o.onInteractiveTimeIndicatorChanged?.(l)))}playNextVideo(){if(!this.videoConfig)return;let t=!0;if(this.videoConfig.callbacks?.onNextVideoClick)try{t=this.videoConfig.callbacks.onNextVideoClick()}catch{this.log({message:"onNextVideoClick callback failed to execute"})}t&&(this.currentPlayingVideoIndex++,this.currentPlayingVideoIndex>=this.videoConfig.videos.length&&(this.currentPlayingVideoIndex=0),this.log({message:`play next video, index: ${this.currentPlayingVideoIndex}`}),this.createPlayerWithCurrentVideo())}playPrevVideo(){if(!this.videoConfig)return;let t=!0;if(this.videoConfig.callbacks?.onPrevVideoClick)try{t=this.videoConfig.callbacks.onPrevVideoClick()}catch{this.log({message:"onPrevVideoClick callback failed to execute"})}t&&(this.currentPlayingVideoIndex--,this.currentPlayingVideoIndex<0&&(this.currentPlayingVideoIndex=this.videoConfig.videos.length-1),this.log({message:`play prev video, index: ${this.currentPlayingVideoIndex}`}),this.createPlayerWithCurrentVideo())}repeatPlaylist(){this.currentPlayingVideoIndex=0,this.log({message:"repeat playlist"}),this.createPlayerWithCurrentVideo()}createPlayerWithCurrentVideo(t,n=!0){if(!this.videoConfig)return;let o=this.videoConfig.videos[this.currentPlayingVideoIndex];if(!o){this.log({message:"no next video"});return}this.isInited&&cc(o.unitedVideoId)&&this.store.actions.internal.nextMovie(o.unitedVideoId),this.svelteRootComponent?.$destroy(),this.createPlayer(o,{autoplay:n,fromTime:0},t)}playPrevChapter(){this.interactiveController?.playPrevChapter()}seekToInteractive(){let t=this.interactiveController?.getNextInteractiveStartTime();typeof t=="number"&&this.seekTime(t/1e3)}toggleGraph(){if(!this.isInited)return;let t=this.store,{isEnded$:n,playbackState$:o,graphIsOpened$:l}=t.state,{disabledControls$:r}=t.ui.controls,a=$e(n),s=$e(o);$e(l)?(l.set(!1),this.interactiveController?.toggleGraphView(!1),r.remove(ls),!a&&this.graphMadePause&&this.play()):(this.graphMadePause=s==="playing",l.set(!0),this.interactiveController?.toggleGraphView(!0),r.add(ls),!a&&this.graphMadePause&&this.pause())}async initInteractives(){if(this.videoConfig?.interactiveData)try{let{Interactives:t,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?$e(l):this.videoConfig.interfaceLanguage,{projectInfo:a,initChapterId:s,historyApi:u,videoLoader:f}=this.videoConfig.interactiveData;this.interactiveController=new t({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});let{isInteractiveExpectation$:p}=this.interactiveController.state;this.uiConfig.features.seekToInteractive&&this.subscription.add(this.interactiveController.getIsSeekable().subscribe(b=>{if(!this.isInited)return;let g=this.store;b?g.ui.controls.disabledControls$.remove("SEEK_TO_INTERACTIVE_BUTTON"):g.ui.controls.disabledControls$.add("SEEK_TO_INTERACTIVE_BUTTON")})),this.subscription.add(p.subscribe(b=>{this.store&&this.store.state.isInteractiveExpectation$.set(b)}));let h=!0;if(this.interactiveController.on(n.playerChanged,b=>{if(!this.videoConfig)return;this.videoConfig.videos[this.currentPlayingVideoIndex]={...b.config,title:a?.title||b.config.title};let g=h?this.videoConfig.autoplay:!0;this.createPlayerWithCurrentVideo(b.player,g),h&&(h=!1)}),this.interactiveController.on(n.interactives,({type:b,actionType:g})=>{if(!this.store)return;let S=p.getValue();if(b==="action-choice"&&g==="setRandomBranch"&&(this.store.state.graphIsOpened$.set(!1),this.store.ui.controls.disabledControls$.remove(Rl)),b==="action-choice-canceled"){let y=$e(this.store.state.isPlaying$)||S;if(this.videoConfig?.isMobile&&y){this.store.ui.interactiveHideMobileControls.set(!0);return}this.videoConfig?.callbacks.onDisabledInteractiveClick?.()}}),await this.interactiveController.setManifest(this.videoConfig.interactiveData.manifest),this.videoConfig?.callbacks?.onInteractiveHistoryChanged){let b=this.interactiveController.getHistoryState();this.subscription.add(b.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,b=>{this.log({message:b.toString()})})}catch(t){this.log({message:t.message})}}async initInteractivesStatistics(){let{statSubscription:t,oneStat:n}=this.statistics;if(!(!t||!n||!this.interactiveController))try{let{INTERACTIVE_CLICK_ACTIONS:o}=await import("@vkontakte/videoplayer-interactive"),l={[o.GO_NEXT_BUTTON]:kl.NEXT_BUTTON,[o.GO_NEXT_AREA]:kl.NEXT_AREA,[o.WATCH_AGAIN]:kl.WATCH_AGAIN,[o.OPEN_GRAPH]:kl.GRAPH_SHOW,[o.CLOSE_GRAPH]:kl.GRAPH_HIDE},{click$:r,nextMovie$:a}=this.interactiveController.getStatEvents(),s=new x6;r.subscribe(u=>{u in l?s.next(l[u]):(n?.logError({errorType:"InteractiveVideosAction",fatal:!1}),this.sentry.report?.(new Error("InteractiveVideosAction"),{errorType:"InteractiveVideosAction",fatal:!1}))}),t.add(n.attachToInteractive({click$:s,nextMovie$:a}))}catch(o){n?.logError({errorType:"InteractiveVideos",fatal:!1}),this.sentry.report?.(o,{errorType:"InteractiveVideosAction",fatal:!1})}}initPlayer(t,n={}){if(!Array.isArray(t.videos)||t.videos.length===0&&!t.interactiveData)throw new Error("empty videos");this.videoConfig=sc(e8,Y6(t,o=>o instanceof HTMLElement?o:void 0)),this.uiConfig=Rc(n.ui??{}),this.coreConfig=n.core??{configName:[]},this.statisticsConfig=n.statistics??{},this.sentry={config:this.uiConfig.sentry??{}},cc(this.videoConfig.isMediaSessionEnabled)&&(this.uiConfig.features.mediaSession=this.videoConfig.isMediaSessionEnabled??!0),cc(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=Gr.getLatestSupportedVersion():this.pictureInPictureApi=new bo),this.mediaSessionApi=this.uiConfig.features.mediaSession?new Wr:void 0,this.annotationsApi=this.uiConfig.features.annotations?new Qr(this.rootContainer):void 0,this.svelteStubComponent?.$destroy(),this.svelteRootComponent?.$destroy(),this.isInited=!1,this.prevIsid=void 0,this.interactiveController&&(this.interactiveController.destroy(),this.interactiveController=void 0),t.interactiveData?this.initInteractives():this.createPlayer(t.videos[0]),gp(this.pictureInPictureApi)&&this.pictureInPictureApi.setPlayerDomElement(this.playerContainer,this._shadowRoot)}isOneVideoPlaylist(){return this.videoConfig?this.videoConfig.videos.length===1:!1}updateNextVideos(t){if(!this.videoConfig)return;this.log({message:`update next videos, videos: ${JSON.stringify(t)}`}),this.videoConfig.videos.splice(this.currentPlayingVideoIndex+1),this.videoConfig.videos.push(...t);let n=this.getNextVideoInfo();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.unsubscribePlayerPhaseSubscription=this.store?.playerPhase.subscribe(t=>{t==="video"?this.setupMediaSessionForVideo():t==="ads"&&this.setupMediaSessionForAds()}))}setupMediaSessionForVideo(){if(!(!this.videoConfig||!this.mediaSessionApi))try{let{title:t,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:t,thumbUrl:n}),this.mediaSessionApi.updateActionHandlers(o)}catch(t){this.log({message:t.message})}}setupMediaSessionForAds(){if(!(!this.videoConfig||!this.mediaSessionApi))try{let t="\u0420\u0435\u043A\u043B\u0430\u043C\u0430",n=[["play",()=>this.play()],["pause",()=>this.pause()]];this.mediaSessionApi.setMetaData({title:t}),this.mediaSessionApi.updateActionHandlers(n)}catch(t){this.log({message:t.message})}}play(){this.isControlDisabled("PLAY_BUTTON")||this.store?.playerPhase.is("waitingLive")||(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();let t=this.videoConfig.videos[0];t&&(this.svelteRootComponent?.$destroy(),this.createPlayer(t))}setMuted(t){this.log({message:`set muted, muted: ${t}`}),this.svelteRootComponent?.setMuted(t)}setVolume(t){this.log({message:`set volume, volume: ${t}`}),this.svelteRootComponent?.setVolume(t)}setRepeat(t){this.log({message:`set repeat, repeat: ${t}`}),this.needToRepeatPlaylist=t,this.svelteRootComponent?.$set({needToRepeatPlaylist:this.needToRepeatPlaylist,showNextPrevButtons:this.needToShowNextPrevButtons(),nextButtonActive:this.isNextButtonActive(),prevButtonActive:this.isPrevButtonActive()})}seekTime(t){this.isControlDisabled("TIMELINE")||(this.log({message:`seek time, time: ${t}`}),this.svelteRootComponent?.seekTime(t))}seekEpisodeStartTime(t){this.log({message:`seek episode start time, time: ${t}`}),this.svelteRootComponent?.seekEpisodeStartTime(t)}returnFocusToEpisodes(){this.log({message:"return focus to episodes button"}),this.svelteRootComponent?.returnFocusToEpisodes()}setPlaybackRate(t){this.log({message:`set playback rate to: ${t}`}),this.svelteRootComponent?.setPlaybackRate(t)}setAutoQualityLimits(t){this.log({message:`set auto quality limitation. Max: ${t.max??"none"}. Min: ${t.min??"none"}`}),this.svelteRootComponent?.setAutoQualityLimits(t)}addLanguage(t){this.store?.actions.internal.addLanguage(t)}async setLanguage(t){await this.store?.actions.internal.setLanguage(t)}setLiveStart(t){this.log({message:"live started"}),this.store?.actions.internal.setWaitingLive(!1),this.svelteRootComponent?.initVideo(t),this.play()}setWaitRecord(){this.log({message:"post live"}),this.store?.actions.internal.setWaitingRecord(!0),this.store?.destroy()}setLiveEnd(t){this.log({message:"live ended"}),this.store?.actions.internal.setWaitingRecord(!1),this.svelteRootComponent?.$destroy(),this.createPlayer(t,{autoplay:!1})}getDeviceId(){return this.statistics?.oneStat.getDeviceId()??void 0}replayInteractiveVideo(){this.interactiveController&&this.interactiveController.setChapter()}showInteractiveIndicatorTooltip(t,n=!1){this.microStoresRoot?.stores.showInteractiveTimeIndicatorTooltip$.set(t,n)}switchToActiveLive(){this.store?.actions.internal.switchToActiveLive()}};import{InterfaceLanguage as SO,VKNumericLanguage as PO,loadVKLangPack as IO}from"@vkontakte/videoplayer-shared";import{VideoQuality as EO,VideoFormat as AO}from"@vkontakte/videoplayer-core";var yO=()=>{window.customElements.define("vk-video-player",Zr)};export{_o as GridTypes,SO as InterfaceLanguage,zo as VERSION,PO as VKNumericLanguage,AO as VideoFormat,EO as VideoQuality,IO as loadVKLangPack,yO as registerPlayerWebComponent};
|