@vkontakte/videoplayer 1.1.32-dev.a1e89bfc.0 → 1.1.32-dev.a44460f3.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 +16 -16
- package/es2015.esm.js +16 -16
- package/es2018.cjs.js +16 -16
- package/es2018.esm.js +16 -16
- package/esnext.cjs.js +16 -16
- package/esnext.esm.js +16 -16
- package/evergreen.esm.js +16 -16
- package/index.d.ts +57 -7
- package/package.json +5 -5
package/es2015.cjs.js
CHANGED
|
@@ -1,17 +1,17 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @vkontakte/videoplayer v1.1.32-dev.
|
|
3
|
-
*
|
|
2
|
+
* @vkontakte/videoplayer v1.1.32-dev.a44460f3.0
|
|
3
|
+
* Wed, 03 Apr 2024 13:43:07 GMT
|
|
4
4
|
* https://st.mycdn.me/static/vkontakte-videoplayer/1-1-32/doc/
|
|
5
5
|
*/
|
|
6
|
-
"use strict";var Mc=Object.create;var el=Object.defineProperty,Nc=Object.defineProperties,Rc=Object.getOwnPropertyDescriptor,Bc=Object.getOwnPropertyDescriptors,Oc=Object.getOwnPropertyNames,er=Object.getOwnPropertySymbols,Dc=Object.getPrototypeOf,tr=Object.prototype.hasOwnProperty,Fc=Object.prototype.propertyIsEnumerable;var $o=(i,e,t)=>e in i?el(i,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):i[e]=t,Qi=(i,e)=>{for(var t in e||(e={}))tr.call(e,t)&&$o(i,t,e[t]);if(er)for(var t of er(e))Fc.call(e,t)&&$o(i,t,e[t]);return i},Un=(i,e)=>Nc(i,Bc(e));var Hc=(i,e,t,n)=>{if(e&&typeof e=="object"||typeof e=="function")for(let o of Oc(e))!tr.call(i,o)&&o!==t&&el(i,o,{get:()=>e[o],enumerable:!(n=Rc(e,o))||n.enumerable});return i};var ir=(i,e,t)=>(t=i!=null?Mc(Dc(i)):{},Hc(e||!i||!i.__esModule?el(t,"default",{value:i,enumerable:!0}):t,i));var tl=(i,e,t)=>($o(i,typeof e!="symbol"?e+"":e,t),t);var Bn=(i,e,t)=>new Promise((n,o)=>{var l=a=>{try{s(t.next(a))}catch(c){o(c)}},r=a=>{try{s(t.throw(a))}catch(c){o(c)}},s=a=>a.done?n(a.value):Promise.resolve(a.value).then(l,r);s((t=t.apply(i,e)).next())});var rt=require("@vkontakte/videoplayer-core/es2015.cjs.js"),ie=require("@vkontakte/videoplayer-shared/es2015.cjs.js"),_t=require("@vkontakte/videoplayer-statistics/es2015.cjs.js");function Ji(i,e,t,n){function o(l){return l instanceof t?l:new t(function(r){r(l)})}return new(t||(t=Promise))(function(l,r){function s(f){try{c(n.next(f))}catch(h){r(h)}}function a(f){try{c(n.throw(f))}catch(h){r(h)}}function c(f){f.done?l(f.value):o(f.value).then(s,a)}c((n=n.apply(i,e||[])).next())})}function Z(){}function V1(i,e){for(const t in e)i[t]=e[t];return i}function I1(i){return i()}function nr(){return Object.create(null)}function Gt(i){i.forEach(I1)}function ln(i){return typeof i=="function"}function we(i,e){return i!=i?e==e:i!==e||i&&typeof i=="object"||typeof i=="function"}let Ao;function or(i,e){return Ao||(Ao=document.createElement("a")),Ao.href=e,i===Ao.href}function Uc(i){return Object.keys(i).length===0}function _o(i,...e){if(i==null){for(const n of e)n(void 0);return Z}const t=i.subscribe(...e);return t.unsubscribe?()=>t.unsubscribe():t}function lt(i){let e;return _o(i,t=>e=t)(),e}function q(i,e,t){i.$$.on_destroy.push(_o(e,t))}function En(i,e,t,n){if(i){const o=z1(i,e,t,n);return i[0](o)}}function z1(i,e,t,n){return i[1]&&n?V1(t.ctx.slice(),i[1](n(e))):t.ctx}function An(i,e,t,n){if(i[2]&&n){const o=i[2](n(t));if(e.dirty===void 0)return o;if(typeof o=="object"){const l=[],r=Math.max(e.dirty.length,o.length);for(let s=0;s<r;s+=1)l[s]=e.dirty[s]|o[s];return l}return e.dirty|o}return e.dirty}function Ln(i,e,t,n,o,l){if(o){const r=z1(e,t,n,l);i.p(r,o)}}function Vn(i){if(i.ctx.length>32){const e=[],t=i.ctx.length/32;for(let n=0;n<t;n++)e[n]=-1;return e}return-1}function jc(i){return i==null?"":i}const M1=typeof window!="undefined"?window:typeof globalThis!="undefined"?globalThis:global;function d(i,e){i.appendChild(e)}function Fe(i,e,t){const n=Wc(i);if(!n.getElementById(e)){const o=w("style");o.id=e,o.textContent=t,qc(n,o)}}function Wc(i){if(!i)return document;const e=i.getRootNode?i.getRootNode():i.ownerDocument;return e&&e.host?e:i.ownerDocument}function qc(i,e){return d(i.head||i,e),e.sheet}function k(i,e,t){i.insertBefore(e,t||null)}function y(i){i.parentNode&&i.parentNode.removeChild(i)}function fn(i,e){for(let t=0;t<i.length;t+=1)i[t]&&i[t].d(e)}function w(i){return document.createElement(i)}function M(i){return document.createElementNS("http://www.w3.org/2000/svg",i)}function je(i){return document.createTextNode(i)}function N(){return je(" ")}function wt(){return je("")}function Ve(i,e,t,n){return i.addEventListener(e,t,n),()=>i.removeEventListener(e,t,n)}function Pi(i){return function(e){return e.preventDefault(),i.call(this,e)}}function ct(i){return function(e){return e.stopPropagation(),i.call(this,e)}}function u(i,e,t){t==null?i.removeAttribute(e):i.getAttribute(e)!==t&&i.setAttribute(e,t)}function Zc(i){return Array.from(i.childNodes)}function $e(i,e){e=""+e,i.data!==e&&(i.data=e)}function Ft(i,e,t,n){t==null?i.style.removeProperty(e):i.style.setProperty(e,t,n?"important":"")}let Lo;function Gc(){if(Lo===void 0){Lo=!1;try{typeof window!="undefined"&&window.parent&&window.parent.document}catch(i){Lo=!0}}return Lo}function Wo(i,e){getComputedStyle(i).position==="static"&&(i.style.position="relative");const n=w("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=Gc();let l;return o?(n.src="data:text/html,<script>onresize=function(){parent.postMessage(0,'*')}<\/script>",l=Ve(window,"message",r=>{r.source===n.contentWindow&&e()})):(n.src="about:blank",n.onload=()=>{l=Ve(n.contentWindow,"resize",e),e()}),d(i,n),()=>{(o||l&&n.contentWindow)&&l(),y(n)}}function E(i,e,t){i.classList.toggle(e,!!t)}function vn(i,e){return new i(e)}let po;function vo(i){po=i}function wo(){if(!po)throw new Error("Function called outside component initialization");return po}function xi(i){wo().$$.on_mount.push(i)}function qo(i){wo().$$.on_destroy.push(i)}function N1(i,e){return wo().$$.context.set(i,e),e}function R1(i){return wo().$$.context.get(i)}function B1(){return wo().$$.context}function go(i,e){const t=i.$$.callbacks[e.type];t&&t.slice().forEach(n=>n.call(this,e))}const Yn=[],Ke=[];let Jn=[];const El=[],Kc=Promise.resolve();let Al=!1;function Yc(){Al||(Al=!0,Kc.then(O1))}function Fn(i){Jn.push(i)}function Pt(i){El.push(i)}const il=new Set;let jn=0;function O1(){if(jn!==0)return;const i=po;do{try{for(;jn<Yn.length;){const e=Yn[jn];jn++,vo(e),Xc(e.$$)}}catch(e){throw Yn.length=0,jn=0,e}for(vo(null),Yn.length=0,jn=0;Ke.length;)Ke.pop()();for(let e=0;e<Jn.length;e+=1){const t=Jn[e];il.has(t)||(il.add(t),t())}Jn.length=0}while(Yn.length);for(;El.length;)El.pop()();Al=!1,il.clear(),vo(i)}function Xc(i){if(i.fragment!==null){i.update(),Gt(i.before_update);const e=i.dirty;i.dirty=[-1],i.fragment&&i.fragment.p(i.ctx,e),i.after_update.forEach(Fn)}}function Qc(i){const e=[],t=[];Jn.forEach(n=>i.indexOf(n)===-1?e.push(n):t.push(n)),t.forEach(n=>n()),Jn=e}const Do=new Set;let On;function ve(){On={r:0,c:[],p:On}}function pe(){On.r||Gt(On.c),On=On.p}function m(i,e){i&&i.i&&(Do.delete(i),i.i(e))}function p(i,e,t,n){if(i&&i.o){if(Do.has(i))return;Do.add(i),On.c.push(()=>{Do.delete(i),n&&(t&&i.d(1),n())}),i.o(e)}else n&&n()}function Wt(i){return(i==null?void 0:i.length)!==void 0?i:Array.from(i)}function Jc(i,e){const t={},n={},o={$$scope:1};let l=i.length;for(;l--;){const r=i[l],s=e[l];if(s){for(const a in r)a in s||(n[a]=1);for(const a in s)o[a]||(t[a]=s[a],o[a]=1);i[l]=s}else for(const a in r)o[a]=1}for(const r in n)r in t||(t[r]=void 0);return t}function xc(i){return typeof i=="object"&&i!==null?i:{}}function Ct(i,e,t){const n=i.$$.props[e];n!==void 0&&(i.$$.bound[n]=t,t(i.$$.ctx[n]))}function F(i){i&&i.c()}function O(i,e,t){const{fragment:n,after_update:o}=i.$$;n&&n.m(e,t),Fn(()=>{const l=i.$$.on_mount.map(I1).filter(ln);i.$$.on_destroy?i.$$.on_destroy.push(...l):Gt(l),i.$$.on_mount=[]}),o.forEach(Fn)}function D(i,e){const t=i.$$;t.fragment!==null&&(Qc(t.after_update),Gt(t.on_destroy),t.fragment&&t.fragment.d(e),t.on_destroy=t.fragment=null,t.ctx=[])}function $c(i,e){i.$$.dirty[0]===-1&&(Yn.push(i),Yc(),i.$$.dirty.fill(0)),i.$$.dirty[e/31|0]|=1<<e%31}function ye(i,e,t,n,o,l,r,s=[-1]){const a=po;vo(i);const c=i.$$={fragment:null,ctx:[],props:l,update:Z,not_equal:o,bound:nr(),on_mount:[],on_destroy:[],on_disconnect:[],before_update:[],after_update:[],context:new Map(e.context||(a?a.$$.context:[])),callbacks:nr(),dirty:s,skip_bound:!1,root:e.target||a.$$.root};r&&r(c.root);let f=!1;if(c.ctx=t?t(i,e.props||{},(h,g,...v)=>{const b=v.length?v[0]:g;return c.ctx&&o(c.ctx[h],c.ctx[h]=b)&&(!c.skip_bound&&c.bound[h]&&c.bound[h](b),f&&$c(i,h)),g}):[],c.update(),f=!0,Gt(c.before_update),c.fragment=n?n(c.ctx):!1,e.target){if(e.hydrate){const h=Zc(e.target);c.fragment&&c.fragment.l(h),h.forEach(y)}else c.fragment&&c.fragment.c();e.intro&&m(i.$$.fragment),O(i,e.target,e.anchor),O1()}vo(a)}class ke{constructor(){tl(this,"$$");tl(this,"$$set")}$destroy(){D(this,1),this.$destroy=Z}$on(e,t){if(!ln(t))return Z;const n=this.$$.callbacks[e]||(this.$$.callbacks[e]=[]);return n.push(t),()=>{const o=n.indexOf(t);o!==-1&&n.splice(o,1)}}$set(e){this.$$set&&!Uc(e)&&(this.$$.skip_bound=!0,this.$$set(e),this.$$.skip_bound=!1)}}const e0="4";typeof window!="undefined"&&(window.__svelte||(window.__svelte={v:new Set})).v.add(e0);var $n;(function(i){i.VK="vk",i.VK_VIDEO="vk_video"})($n||($n={}));const t0={isMobile:void 0,defaultLanguage:ie.InterfaceLanguage.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:$n.VK_VIDEO,addTimeToLogoLink:!0,volumeDefault:1,volumeMinRestore:.05,loaderDelay:500,minSubtitlesFontSize:13,autoSubtitlesTimeout:2e3,allowChangingFullscreenTarget:!0,trafficSavingLimit:ie.VideoQuality.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,thumbTimer:!0,hotKeyMapModal:!0,hotKeyHelpers:!0,saveDebugInfoToFile:!1,additionalButtons:!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}},i0=i=>ie.fillWithDefault(i,t0),n0=i=>N1("ui-config",i),tn=()=>R1("ui-config"),Ll="vk_player_debug_panel_opened",D1=300,o0="videoplayer",l0="videoplayer";var Ge;(function(i){i.ArrowLeft="ArrowLeft",i.ArrowUp="ArrowUp",i.ArrowRight="ArrowRight",i.ArrowDown="ArrowDown",i.Comma="Comma",i.Period="Period",i.Space="Space",i.KeyM="KeyM",i.KeyF="KeyF",i.KeyK="KeyK",i.KeyL="KeyL",i.KeyJ="KeyJ",i.KeyC="KeyC",i.KeyI="KeyI",i.Digit1="Digit1",i.Digit2="Digit2",i.Digit3="Digit3",i.Digit4="Digit4",i.Digit5="Digit5",i.Digit6="Digit6",i.Digit7="Digit7",i.Digit8="Digit8",i.Digit9="Digit9",i.Digit0="Digit0",i.Numpad1="Numpad1",i.Numpad2="Numpad2",i.Numpad3="Numpad3",i.Numpad4="Numpad4",i.Numpad5="Numpad5",i.Numpad6="Numpad6",i.Numpad7="Numpad7",i.Numpad8="Numpad8",i.Numpad9="Numpad9",i.Numpad0="Numpad0",i.ShiftLeft="ShiftLeft",i.ShiftRight="ShiftRight",i.Slash="Slash"})(Ge||(Ge={}));const r0=new Set([Ge.ArrowLeft,Ge.ArrowRight,Ge.KeyL,Ge.KeyJ]);var ht;(function(i){i.PLAY_BUTTON="PLAY_BUTTON",i.REPLAY_BUTTON="REPLAY_BUTTON",i.NEXT_BUTTON="NEXT_BUTTON",i.PREV_BUTTON="PREV_BUTTON",i.PICTURE_IN_PICTURE="PICTURE_IN_PICTURE",i.FULLSCREEN_BUTTON="FULLSCREEN_BUTTON",i.SETTINGS_BUTTON="SETTINGS_BUTTON",i.LIVE_BUTTON="LIVE_BUTTON",i.GRAPH_BUTTON="GRAPH_BUTTON",i.PLAY_PREV_CHAPTER_BUTTON="PLAY_PREV_CHAPTER_BUTTON",i.SEEK_TO_INTERACTIVE_BUTTON="SEEK_TO_INTERACTIVE_BUTTON",i.TIMELINE="TIMELINE",i.VOLUME_BAR="VOLUME_BAR",i.MUTE_BUTTON="MUTE_BUTTON",i.SUBTITLES_BUTTON="SUBTITLES_BUTTON",i.CHROMECAST_BUTTON="CHROMECAST_BUTTON",i.VK_BUTTON="VK_BUTTON",i.EPISODE_BUTTON="EPISODE_BUTTON",i.INCREMENT_PLAYBACK_RATE="INCREMENT_PLAYBACK_RATE",i.DECREMENT_PLAYBACK_RATE="DECREMENT_PLAYBACK_RATE"})(ht||(ht={}));const lr=40,s0=4,a0=60,F1=[ht.TIMELINE],Vl=[...F1,ht.GRAPH_BUTTON],rr=[...F1,ht.PLAY_BUTTON],mo=[...Vl,ht.PLAY_BUTTON];var Xn;(function(i){i[i.XS=320]="XS",i[i.S=509]="S",i[i.M=599]="M",i[i.L=699]="L"})(Xn||(Xn={}));exports.GridTypes=void 0;(function(i){i.XS="xs",i.S="s",i.M="m",i.L="l",i.XL="xl"})(exports.GridTypes||(exports.GridTypes={}));const eo={[exports.GridTypes.XS]:0,[exports.GridTypes.S]:1,[exports.GridTypes.M]:2,[exports.GridTypes.L]:3,[exports.GridTypes.XL]:4},Wn=[];function mn(i,e){return{subscribe:Ue(i,e).subscribe}}function Ue(i,e=Z){let t;const n=new Set;function o(s){if(we(i,s)&&(i=s,t)){const a=!Wn.length;for(const c of n)c[1](),Wn.push(c,i);if(a){for(let c=0;c<Wn.length;c+=2)Wn[c][0](Wn[c+1]);Wn.length=0}}}function l(s){o(s(i))}function r(s,a=Z){const c=[s,a];return n.add(c),n.size===1&&(t=e(o,l)||Z),s(i),()=>{n.delete(c),n.size===0&&t&&(t(),t=null)}}return{set:o,update:l,subscribe:r}}function ei(i,e,t){const n=!Array.isArray(i),o=n?[i]:i;if(!o.every(Boolean))throw new Error("derived() expects stores as input, got a falsy value");const l=e.length<2;return mn(t,(r,s)=>{let a=!1;const c=[];let f=0,h=Z;const g=()=>{if(f)return;h();const b=e(n?c[0]:c,r,s);l?r(b):h=ln(b)?b:Z},v=o.map((b,A)=>_o(b,S=>{c[A]=S,f&=~(1<<A),a&&g()},()=>{f|=1<<A}));return a=!0,g(),function(){Gt(v),h(),a=!1}})}const u0="prod",Zo="1.1.32-dev.a1e89bfc.0",H1=(i,e,t)=>{const n=document.createElement("a");n.href=i,n.download=`${e}.${t}`,n.style.display="none",n.click()},U1=Symbol("storeContext"),c0=i=>{N1(U1,i)},Et=()=>{const i=R1(U1);return ie.assertNonNullable(i,"Store context is empty!"),i},kt=(i,e)=>j1(i,i.getValue(),e),j1=(i,e,t)=>mn(e,n=>{const o=i.subscribe(l=>{n(l),t==null||t(l)});return()=>o.unsubscribe()}),f0=(i,e,t)=>{var n,o,l,r;const s=i.info,{width:a,height:c}=lt(t.ui.playerSize),f=(o=(n=s.throughputEstimation$.getValue())===null||n===void 0?void 0:n.toFixed(0))!==null&&o!==void 0?o:0,h=(r=(l=s.rttEstimation$.getValue())===null||l===void 0?void 0:l.toFixed(0))!==null&&r!==void 0?r:0,g=s.isAutoQualityEnabled$.getValue()?"auto":"manual",v=`${Zo} (core: ${rt.VERSION}, stat: ${_t.VERSION}, shared: ${ie.VERSION})`,b=lt(t.state.errorLog$),A=b.length?`
|
|
7
|
-
`+b.map((
|
|
8
|
-
|
|
9
|
-
`,
|
|
10
|
-
`;return
|
|
11
|
-
`):void 0,
|
|
12
|
-
`)},d0=(i,e,t)=>{const n=i.info,{width:o,height:l}=lt(t.ui.playerSize),r={version:Zo,viewport:`${o}x${l}`,volume:Math.round(lt(t.state.volume$)*100)};r.id=t.videoId,n.currentFormat$.getValue()&&(r.provider=n.currentFormat$.getValue()),n.hostname$.getValue()&&(r.cdn=n.hostname$.getValue());const c=n.intrinsicVideoSize$.getValue();c&&(r.videoSize=`${c.width}x${c.height}`);const f=n.currentBuffer$.getValue();f&&(r.buffer=Math.max(f.end-lt(t.state.positionExact$),0));const h=n.throughputEstimation$.getValue();h&&(r.speed=h);const g=n.videoBitrate$.getValue();return g&&(r.bitrate=g),r},m0=(i,e)=>H1(i,e,"mp4"),W1="vk_player_prefer_traffic_saving_enabled",q1="vk_player_preferred_volume",Z1="vk_player_prefer_volume_mute",Bl="vk_player_preferred_quality",G1=i=>i>1?1:i<0?0:i,sr=i=>ie.safeStorage.set(q1,G1(i).toString(10)),K1=()=>{const i=ie.safeStorage.get(q1);return ie.isNullable(i)?void 0:G1(parseFloat(i))},h0=(i,e)=>ie.safeStorage.set(Bl,JSON.stringify({videoId:i,value:e})),Y1=()=>ie.safeStorage.remove(Bl),v0=i=>{const e=ie.safeStorage.get(Bl);if(ie.isNullable(e))return;const{videoId:t,value:n}=JSON.parse(e);if(i!==t){Y1();return}return n},X1=(i,e)=>{e?ie.safeStorage.set(i,"true"):ie.safeStorage.remove(i)},Q1=i=>ie.safeStorage.get(i)==="true",nl=i=>X1(Z1,i),p0=()=>Q1(Z1),g0=i=>X1(W1,i),b0=()=>Q1(W1);function _0(i){let e,t,n,o,l,r,s,a,c,f,h,g,v,b,A,S,T,C;return{c(){e=M("svg"),t=M("g"),n=M("path"),o=M("path"),l=M("path"),r=M("path"),s=M("path"),a=M("defs"),c=M("filter"),f=M("feFlood"),h=M("feColorMatrix"),g=M("feOffset"),v=M("feGaussianBlur"),b=M("feColorMatrix"),A=M("feBlend"),S=M("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(l,"fill-rule","evenodd"),u(l,"clip-rule","evenodd"),u(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.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(l,"fill","#fff"),u(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.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(r,"fill","#fff"),u(s,"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(s,"stroke","#000"),u(s,"stroke-opacity",".12"),u(s,"stroke-width",".5"),u(s,"stroke-linecap","round"),u(s,"stroke-linejoin","round"),u(t,"filter","url(#a)"),u(f,"flood-opacity","0"),u(f,"result","BackgroundImageFix"),u(h,"in","SourceAlpha"),u(h,"values","0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0"),u(h,"result","hardAlpha"),u(v,"stdDeviation","2.5"),u(b,"values","0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.16 0"),u(A,"in2","BackgroundImageFix"),u(A,"result","effect1_dropShadow_618_12297"),u(S,"in","SourceGraphic"),u(S,"in2","effect1_dropShadow_618_12297"),u(S,"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",T=!i[0]||null),u(e,"aria-label",C=i[0]||null)},m(I,z){k(I,e,z),d(e,t),d(t,n),d(t,o),d(t,l),d(t,r),d(t,s),d(e,a),d(a,c),d(c,f),d(c,h),d(c,g),d(c,v),d(c,b),d(c,A),d(c,S)},p(I,[z]){z&1&&T!==(T=!I[0]||null)&&u(e,"aria-hidden",T),z&1&&C!==(C=I[0]||null)&&u(e,"aria-label",C)},i:Z,o:Z,d(I){I&&y(e)}}}function w0(i,e,t){let{ariaLabel:n=""}=e;return i.$$set=o=>{"ariaLabel"in o&&t(0,n=o.ariaLabel)},[n]}class J1 extends ke{constructor(e){super(),ye(this,e,w0,_0,we,{ariaLabel:0})}}var ol=typeof globalThis!="undefined"?globalThis:typeof window!="undefined"?window:typeof global!="undefined"?global:typeof self!="undefined"?self:{};function y0(i){return i&&i.__esModule&&Object.prototype.hasOwnProperty.call(i,"default")?i.default:i}var Vo=function(i){return i&&i.Math==Math&&i},In=Vo(typeof globalThis=="object"&&globalThis)||Vo(typeof window=="object"&&window)||Vo(typeof self=="object"&&self)||Vo(typeof ol=="object"&&ol)||function(){return this}()||ol||Function("return this")(),Hn=function(i){try{return!!i()}catch(e){return!0}},k0=Hn,Go=!k0(function(){var i=function(){}.bind();return typeof i!="function"||i.hasOwnProperty("prototype")}),S0=Go,x1=Function.prototype,ar=x1.apply,ur=x1.call,P0=typeof Reflect=="object"&&Reflect.apply||(S0?ur.bind(ar):function(){return ur.apply(ar,arguments)}),$1=Go,eu=Function.prototype,Il=eu.call,C0=$1&&eu.bind.bind(Il,Il),zn=$1?C0:function(i){return function(){return Il.apply(i,arguments)}},tu=zn,T0=tu({}.toString),E0=tu("".slice),Ko=function(i){return E0(T0(i),8,-1)},A0=Ko,L0=zn,iu=function(i){if(A0(i)==="Function")return L0(i)},zl=typeof document=="object"&&document.all,V0=typeof zl=="undefined"&&zl!==void 0,nu={all:zl,IS_HTMLDDA:V0},ou=nu,I0=ou.all,kn=ou.IS_HTMLDDA?function(i){return typeof i=="function"||i===I0}:function(i){return typeof i=="function"},lu={},z0=Hn,yo=!z0(function(){return Object.defineProperty({},1,{get:function(){return 7}})[1]!=7}),M0=Go,Io=Function.prototype.call,ko=M0?Io.bind(Io):function(){return Io.apply(Io,arguments)},ru={},su={}.propertyIsEnumerable,au=Object.getOwnPropertyDescriptor,N0=au&&!su.call({1:2},1);ru.f=N0?function(e){var t=au(this,e);return!!t&&t.enumerable}:su;var uu=function(i,e){return{enumerable:!(i&1),configurable:!(i&2),writable:!(i&4),value:e}},R0=zn,B0=Hn,O0=Ko,ll=Object,D0=R0("".split),F0=B0(function(){return!ll("z").propertyIsEnumerable(0)})?function(i){return O0(i)=="String"?D0(i,""):ll(i)}:ll,Ol=function(i){return i==null},H0=Ol,U0=TypeError,Dl=function(i){if(H0(i))throw U0("Can't call method on "+i);return i},j0=F0,W0=Dl,q0=function(i){return j0(W0(i))},cr=kn,cu=nu,Z0=cu.all,So=cu.IS_HTMLDDA?function(i){return typeof i=="object"?i!==null:cr(i)||i===Z0}:function(i){return typeof i=="object"?i!==null:cr(i)},fu={},rl=fu,sl=In,G0=kn,fr=function(i){return G0(i)?i:void 0},du=function(i,e){return arguments.length<2?fr(rl[i])||fr(sl[i]):rl[i]&&rl[i][e]||sl[i]&&sl[i][e]},K0=zn,mu=K0({}.isPrototypeOf),Y0=typeof navigator!="undefined"&&String(navigator.userAgent)||"",hu=In,al=Y0,dr=hu.process,mr=hu.Deno,hr=dr&&dr.versions||mr&&mr.version,vr=hr&&hr.v8,cn,Ho;vr&&(cn=vr.split("."),Ho=cn[0]>0&&cn[0]<4?1:+(cn[0]+cn[1]));!Ho&&al&&(cn=al.match(/Edge\/(\d+)/),(!cn||cn[1]>=74)&&(cn=al.match(/Chrome\/(\d+)/),cn&&(Ho=+cn[1])));var X0=Ho,pr=X0,Q0=Hn,J0=In,x0=J0.String,vu=!!Object.getOwnPropertySymbols&&!Q0(function(){var i=Symbol();return!x0(i)||!(Object(i)instanceof Symbol)||!Symbol.sham&&pr&&pr<41}),$0=vu,pu=$0&&!Symbol.sham&&typeof Symbol.iterator=="symbol",ef=du,tf=kn,nf=mu,of=pu,lf=Object,gu=of?function(i){return typeof i=="symbol"}:function(i){var e=ef("Symbol");return tf(e)&&nf(e.prototype,lf(i))},rf=String,sf=function(i){try{return rf(i)}catch(e){return"Object"}},af=kn,uf=sf,cf=TypeError,bu=function(i){if(af(i))return i;throw cf(uf(i)+" is not a function")},ff=bu,df=Ol,_u=function(i,e){var t=i[e];return df(t)?void 0:ff(t)},ul=ko,cl=kn,fl=So,mf=TypeError,hf=function(i,e){var t,n;if(e==="string"&&cl(t=i.toString)&&!fl(n=ul(t,i))||cl(t=i.valueOf)&&!fl(n=ul(t,i))||e!=="string"&&cl(t=i.toString)&&!fl(n=ul(t,i)))return n;throw mf("Can't convert object to primitive value")},wu={exports:{}},gr=In,vf=Object.defineProperty,pf=function(i,e){try{vf(gr,i,{value:e,configurable:!0,writable:!0})}catch(t){gr[i]=e}return e},gf=In,bf=pf,br="__core-js_shared__",_f=gf[br]||bf(br,{}),wf=_f,_r=wf;(wu.exports=function(i,e){return _r[i]||(_r[i]=e!==void 0?e:{})})("versions",[]).push({version:"3.31.0",mode:"pure",copyright:"\xA9 2014-2023 Denis Pushkarev (zloirock.ru)",license:"https://github.com/zloirock/core-js/blob/v3.31.0/LICENSE",source:"https://github.com/zloirock/core-js"});var yf=wu.exports,kf=Dl,Sf=Object,yu=function(i){return Sf(kf(i))},Pf=zn,Cf=yu,Tf=Pf({}.hasOwnProperty),Yo=Object.hasOwn||function(e,t){return Tf(Cf(e),t)},Ef=zn,Af=0,Lf=Math.random(),Vf=Ef(1 .toString),If=function(i){return"Symbol("+(i===void 0?"":i)+")_"+Vf(++Af+Lf,36)},zf=In,Mf=yf,wr=Yo,Nf=If,Rf=vu,Bf=pu,Qn=zf.Symbol,dl=Mf("wks"),Of=Bf?Qn.for||Qn:Qn&&Qn.withoutSetter||Nf,Po=function(i){return wr(dl,i)||(dl[i]=Rf&&wr(Qn,i)?Qn[i]:Of("Symbol."+i)),dl[i]},Df=ko,yr=So,kr=gu,Ff=_u,Hf=hf,Uf=Po,jf=TypeError,Wf=Uf("toPrimitive"),qf=function(i,e){if(!yr(i)||kr(i))return i;var t=Ff(i,Wf),n;if(t){if(e===void 0&&(e="default"),n=Df(t,i,e),!yr(n)||kr(n))return n;throw jf("Can't convert object to primitive value")}return e===void 0&&(e="number"),Hf(i,e)},Zf=qf,Gf=gu,ku=function(i){var e=Zf(i,"string");return Gf(e)?e:e+""},Kf=In,Sr=So,Ml=Kf.document,Yf=Sr(Ml)&&Sr(Ml.createElement),Xf=function(i){return Yf?Ml.createElement(i):{}},Qf=yo,Jf=Hn,xf=Xf,Su=!Qf&&!Jf(function(){return Object.defineProperty(xf("div"),"a",{get:function(){return 7}}).a!=7}),$f=yo,ed=ko,td=ru,id=uu,nd=q0,od=ku,ld=Yo,rd=Su,Pr=Object.getOwnPropertyDescriptor;lu.f=$f?Pr:function(e,t){if(e=nd(e),t=od(t),rd)try{return Pr(e,t)}catch(n){}if(ld(e,t))return id(!ed(td.f,e,t),e[t])};var sd=Hn,ad=kn,ud=/#|\.prototype\./,Co=function(i,e){var t=fd[cd(i)];return t==md?!0:t==dd?!1:ad(e)?sd(e):!!e},cd=Co.normalize=function(i){return String(i).replace(ud,".").toLowerCase()},fd=Co.data={},dd=Co.NATIVE="N",md=Co.POLYFILL="P",hd=Co,Cr=iu,vd=bu,pd=Go,gd=Cr(Cr.bind),bd=function(i,e){return vd(i),e===void 0?i:pd?gd(i,e):function(){return i.apply(e,arguments)}},Pu={},_d=yo,wd=Hn,yd=_d&&wd(function(){return Object.defineProperty(function(){},"prototype",{value:42,writable:!1}).prototype!=42}),kd=So,Sd=String,Pd=TypeError,Cu=function(i){if(kd(i))return i;throw Pd(Sd(i)+" is not an object")},Cd=yo,Td=Su,Ed=yd,zo=Cu,Tr=ku,Ad=TypeError,ml=Object.defineProperty,Ld=Object.getOwnPropertyDescriptor,hl="enumerable",vl="configurable",pl="writable";Pu.f=Cd?Ed?function(e,t,n){if(zo(e),t=Tr(t),zo(n),typeof e=="function"&&t==="prototype"&&"value"in n&&pl in n&&!n[pl]){var o=Ld(e,t);o&&o[pl]&&(e[t]=n.value,n={configurable:vl in n?n[vl]:o[vl],enumerable:hl in n?n[hl]:o[hl],writable:!1})}return ml(e,t,n)}:ml:function(e,t,n){if(zo(e),t=Tr(t),zo(n),Td)try{return ml(e,t,n)}catch(o){}if("get"in n||"set"in n)throw Ad("Accessors not supported");return"value"in n&&(e[t]=n.value),e};var Vd=yo,Id=Pu,zd=uu,Md=Vd?function(i,e,t){return Id.f(i,e,zd(1,t))}:function(i,e,t){return i[e]=t,i},Mo=In,Nd=P0,Rd=iu,Bd=kn,Od=lu.f,Dd=hd,qn=fu,Fd=bd,Zn=Md,Er=Yo,Hd=function(i){var e=function(t,n,o){if(this instanceof e){switch(arguments.length){case 0:return new i;case 1:return new i(t);case 2:return new i(t,n)}return new i(t,n,o)}return Nd(i,this,arguments)};return e.prototype=i.prototype,e},Ud=function(i,e){var t=i.target,n=i.global,o=i.stat,l=i.proto,r=n?Mo:o?Mo[t]:(Mo[t]||{}).prototype,s=n?qn:qn[t]||Zn(qn,t,{})[t],a=s.prototype,c,f,h,g,v,b,A,S,T;for(g in e)c=Dd(n?g:t+(o?".":"#")+g,i.forced),f=!c&&r&&Er(r,g),b=s[g],f&&(i.dontCallGetSet?(T=Od(r,g),A=T&&T.value):A=r[g]),v=f&&A?A:e[g],!(f&&typeof b==typeof v)&&(i.bind&&f?S=Fd(v,Mo):i.wrap&&f?S=Hd(v):l&&Bd(v)?S=Rd(v):S=v,(i.sham||v&&v.sham||b&&b.sham)&&Zn(S,"sham",!0),Zn(s,g,S),l&&(h=t+"Prototype",Er(qn,h)||Zn(qn,h,{}),Zn(qn[h],g,v),i.real&&a&&(c||!a[g])&&Zn(a,g,v)))},jd=So,Wd=Ko,qd=Po,Zd=qd("match"),Gd=function(i){var e;return jd(i)&&((e=i[Zd])!==void 0?!!e:Wd(i)=="RegExp")},Kd=Po,Yd=Kd("toStringTag"),Tu={};Tu[Yd]="z";var Xd=String(Tu)==="[object z]",Qd=Xd,Jd=kn,Fo=Ko,xd=Po,$d=xd("toStringTag"),e2=Object,t2=Fo(function(){return arguments}())=="Arguments",i2=function(i,e){try{return i[e]}catch(t){}},n2=Qd?Fo:function(i){var e,t,n;return i===void 0?"Undefined":i===null?"Null":typeof(t=i2(e=e2(i),$d))=="string"?t:t2?Fo(e):(n=Fo(e))=="Object"&&Jd(e.callee)?"Arguments":n},o2=n2,l2=String,r2=function(i){if(o2(i)==="Symbol")throw TypeError("Cannot convert a Symbol value to a string");return l2(i)},s2=Cu,a2=function(){var i=s2(this),e="";return i.hasIndices&&(e+="d"),i.global&&(e+="g"),i.ignoreCase&&(e+="i"),i.multiline&&(e+="m"),i.dotAll&&(e+="s"),i.unicode&&(e+="u"),i.unicodeSets&&(e+="v"),i.sticky&&(e+="y"),e},u2=ko,c2=Yo,f2=mu,d2=a2,Ar=RegExp.prototype,m2=function(i){var e=i.flags;return e===void 0&&!("flags"in Ar)&&!c2(i,"flags")&&f2(Ar,i)?u2(d2,i):e},Fl=zn,h2=yu,v2=Math.floor,gl=Fl("".charAt),p2=Fl("".replace),bl=Fl("".slice),g2=/\$([$&'`]|\d{1,2}|<[^>]*>)/g,b2=/\$([$&'`]|\d{1,2})/g,_2=function(i,e,t,n,o,l){var r=t+i.length,s=n.length,a=b2;return o!==void 0&&(o=h2(o),a=g2),p2(l,a,function(c,f){var h;switch(gl(f,0)){case"$":return"$";case"&":return i;case"`":return bl(e,0,t);case"'":return bl(e,r);case"<":h=o[bl(f,1,-1)];break;default:var g=+f;if(g===0)return c;if(g>s){var v=v2(g/10);return v===0?c:v<=s?n[v-1]===void 0?gl(f,1):n[v-1]+gl(f,1):c}h=n[g-1]}return h===void 0?"":h})},w2=Ud,y2=ko,Hl=zn,Lr=Dl,k2=kn,S2=Ol,P2=Gd,Gn=r2,C2=_u,T2=m2,E2=_2,A2=Po,L2=A2("replace"),V2=TypeError,Eu=Hl("".indexOf),I2=Hl("".replace),Vr=Hl("".slice),z2=Math.max,Ir=function(i,e,t){return t>i.length?-1:e===""?t:Eu(i,e,t)};w2({target:"String",proto:!0},{replaceAll:function(e,t){var n=Lr(this),o,l,r,s,a,c,f,h,g,v=0,b=0,A="";if(!S2(e)){if(o=P2(e),o&&(l=Gn(Lr(T2(e))),!~Eu(l,"g")))throw V2("`.replaceAll` does not allow non-global regexes");if(r=C2(e,L2),r)return y2(r,e,n,t);if(o)return I2(Gn(n),e,t)}for(s=Gn(n),a=Gn(e),c=k2(t),c||(t=Gn(t)),f=a.length,h=z2(1,f),v=Ir(s,a,0);v!==-1;)g=c?Gn(t(a,v,s)):E2(a,s,v,[],void 0,t),A+=Vr(s,b,v)+g,b=v+f,v=Ir(s,a,v+h);return b<s.length&&(A+=Vr(s,b)),A}});var M2=du,N2=M2,R2=N2,B2=R2("String","replaceAll"),O2=B2,D2=O2,F2=D2,H2=F2,U2=y0(H2);const j2={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_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_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:"\u041A\u043D\u043E\u043F\u043A\u0430 \u043D\u0435\u0434\u043E\u0441\u0442\u0443\u043F\u043D\u0430 \u0432\u043E \u0432\u0440\u0435\u043C\u044F \u0438\u043D\u0442\u0435\u0440\u0430\u043A\u0442\u0438\u0432\u0430",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_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_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"},W2={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_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_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:"Button is disabled during interactive video",tooltip_disabled_when_graph_on:"Button is disabled when graph is opened",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_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"},wn=new Map;wn.set(ie.InterfaceLanguage.EN,W2);wn.set(ie.InterfaceLanguage.RU,j2);const Au=new Map,zr=({language:i,pack:e,fallback:t})=>{if(wn.has(i)){const n=wn.get(i);wn.set(i,Object.assign(Object.assign({},n),e))}else wn.set(i,e);Au.set(i,t)},Mr=i=>wn.has(i),Lu=(i,e,t,n)=>{var o;const l=wn.get(i);let r=l==null?void 0:l[e];if(ie.isNullable(r)){const s=(o=Au.get(i))!==null&&o!==void 0?o:n,a=s?wn.get(s):void 0;r=a==null?void 0:a[e]}return ie.isNullable(r)?e+Object.values(t!=null?t:{}).join(" "):t?U2(r,/{(\w+?)}/g,(s,a)=>{var c;return(c=t[a])!==null&&c!==void 0?c:""}):r},re=(i,e)=>{const{interfaceLanguage$:t}=Et(),n=lt(t),o=tn();return Lu(n,i,e,o.defaultLanguage)};var Uo;(function(i){i.fatal="fatal",i.error="error",i.warning="warning",i.log="log",i.info="info",i.debug="debug",i.critical="critical"})(Uo||(Uo={}));const q2=/^\s*at (?:(.*?) ?\()?((?:file|https?|blob|chrome-extension|address|native|eval|webpack|<anonymous>|[-a-z]+:|.*bundle|\/).*?)(?::(\d+))?(?::(\d+))?\)?\s*$/i,Z2=/^\s*(.*?)(?:\((.*?)\))?(?:^|@)?((?:file|https?|blob|chrome|webpack|resource|moz-extension).*?:\/.*?|\[native code\]|[^@]*(?:bundle|\d+\.js))(?::(\d+))?(?::(\d+))?\s*$/i,G2=/^\s*at (?:((?:\[object object\])?.+) )?\(?((?:file|ms-appx|https?|webpack|blob):.*?):(\d+)(?::(\d+))?\)?\s*$/i,No="?",K2="X-Sentry-Auth",Y2=/^(?:(\w+):)\/\/(?:([\w-]+)(?::(\w+))?@)([\w.-]+)(?::(\d+))?\/(.+)/;function X2(i){if(!i.stack)return null;const e=[],t=i.stack.split(`
|
|
13
|
-
`);let n,o;for(let
|
|
14
|
-
`).filter(t=>!!t)[0]}function Q2(i){try{const e=X2(i);if(e)return e}catch(e){}return{value:Vu(i),type:i&&i.name,stacktrace:{frames:[]}}}function J2(){return"xxxxxxxxxxxx4xxxyxxxxxxxxxxxxxxx".replace(/[xy]/g,i=>{const e=Math.random()*16|0;return(i==="x"?e:e&3|8).toString(16)})}class x2{constructor(e){if(e&&e.dsn){const t=Y2.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 Un(Qi({},this.getRequestBlank()),{exception:{values:[Q2(e)]}})}report(e){this.send(this.prepare(e))}send(e){!this.apiUrl||!e||this.createRequest(e)}createRequest(e){const t=new XMLHttpRequest;t.open("POST",this.apiUrl,!0),t.setRequestHeader("Content-type","application/json"),t.setRequestHeader(K2,this.authHeader||""),t.send(JSON.stringify(e))}getRequestBlank(){return{platform:"javascript",event_id:J2(),sdk:{name:"micro-sentry.javascript.core",version:"0.0.0"},timestamp:Date.now()/1e3,environment:this.environment}}}function Nr(i,e){return Object.prototype.toString.call(e)==="[object RegExp]"?e.test(i):typeof e=="string"?i.indexOf(e)!==-1:!1}function $2(){return window}class Ul extends x2{constructor(e,t=$2()){super(e),this.options=e,this.window=t,this.destroyed=!1,this._state={};const{plugins:n=[],beforeSend:o=c=>c,beforeBreadcrumb:l=c=>c,blacklistUrls:r=[],ignoreErrors:s=[],release:a=void 0}=this.options||{};this.plugins=n.map(c=>new c(this)),this.beforeSend=o,this.beforeBreadcrumb=l,this.blacklistUrls=r,this.ignoreErrors=s,this.release=a}get state(){return this._state}clearState(){this._state={}}setTags(e){return this.setKeyState("tags",Qi({},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",Qi({},e)),this}setUser(e){return this.setKeyState("user",Qi({},e)),this}clone(){const e=new Ul(Un(Qi({},this.options),{plugins:[]}));return e.extendState(this.state),e}withScope(e){const t=this.clone();e(t),t.destroy(),this.setBreadcrumbs(void 0)}addBreadcrumb(e){this.extendState({breadcrumbs:[Qi({timestamp:Date.now()/1e3},this.beforeBreadcrumb(e))]})}setBreadcrumbs(e){this.setKeyState("breadcrumbs",e)}captureMessage(e,t){this.send(Un(Qi({},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=>Nr(t,n))):!1}getRequestBlank(){return Qi(Un(Qi({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(Qi({release:this.release},e))),this.setBreadcrumbs(void 0))}getPossibleEventMessages(e){if(e.message)return[e.message];if(e.exception)try{const{type:t="",value:n=""}=e.exception.values&&e.exception.values[0]||{};return[`${n}`,`${t}: ${n}`]}catch(t){return[]}return[]}isDeniedUrl(e){if(!this.blacklistUrls.length)return!1;const t=this.getEventFilterUrl(e);return t?this.blacklistUrls.some(n=>Nr(t,n)):!1}getEventFilterUrl(e){try{if(e.exception){const t=e.exception.values&&e.exception.values[0].stacktrace&&e.exception.values[0].stacktrace.frames;return t&&t[t.length-1].filename||null}return null}catch(t){return null}}extendState(e){this._state=Object.keys(e).reduce((t,n)=>{const o=this._state[n],l=Array.isArray(o)?o:null,r=e[n],s=Array.isArray(r)?r:null;return Un(Qi({},t),{[n]:l||s?[...l||[],...s||[]]:Qi(Qi({},typeof o!="string"?o:{}),typeof r!="string"?r:{})})},this._state)}setKeyState(e,t){this._state[e]=t}}let Ro=null;class Nl{constructor(e,t,n={}){!Ro&&e.dsn&&(this.sentryClient=new Ul({dsn:e.dsn,environment:t.env}),this.version=t.version,this.sentrySubscription=new ie.Subscription,this.options=e,this.context=n,Ro=this)}destroy(){var e,t;(e=this.sentryClient)===null||e===void 0||e.destroy(),(t=this.sentrySubscription)===null||t===void 0||t.unsubscribe(),Ro=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={}){const{sentryClient:o,context:l,options:r}=this,{sampleRate:s=0,whiteErrorIdList:a,whiteErrorCategoryList:c=[],blackErrorIdList:f,blackErrorCategoryList:h}=r,{errorType:g,category:v}=t;if(ie.isNonNullable(v)&&h.includes(v)||ie.isNonNullable(g)&&f.includes(g))return;if(Math.random()<=s||ie.isNonNullable(v)&&c.includes(v)||ie.isNonNullable(g)&&a.includes(g)){Object.keys(t).length&&o.setTags(Object.assign({version:this.version},t)),(Object.keys(l).length||Object.keys(n).length)&&o.setExtras(Object.assign(Object.assign({},l),n));try{g&&o.captureMessage(g,t.fatal?Uo.fatal:Uo.error),o.report(e)}catch(A){console.error(A)}}}static getInstance(){return Ro}}var xn;(function(i){i.AUTO="auto"})(xn||(xn={}));var Be;(function(i){i.Thumb="thumb",i.Video="video",i.Ads="ads",i.Crashed="crashed",i.WaitingLive="waitingLive",i.WaitingRecord="waitingRecord"})(Be||(Be={}));var _n;(function(i){i.Preroll="preroll",i.Midroll="midroll",i.Postroll="postroll"})(_n||(_n={}));var qt;(function(i){i.INACTIVE="inactive",i.PLAYING="playing",i.PAUSED="paused"})(qt||(qt={}));var yn;(function(i){i[i.PictureInPicture=0]="PictureInPicture",i[i.DocumentPictureInPicture=1]="DocumentPictureInPicture"})(yn||(yn={}));var Je;(function(i){i.PLAY="PLAY",i.STOP="STOP",i.BACKWARD_SEEK="BACKWARD_SEEK",i.FORWARD_SEEK="FORWARD_SEEK",i.SUBTITLES_ON="SUBTITLES_ON",i.SUBTITLES_OFF="SUBTITLES_OFF",i.RATE_UP="RATE_UP",i.RATE_DOWN="RATE_DOWN",i.EPISODE_PREV="EPISODE_PREV",i.EPISODE_NEXT="EPISODE_NEXT",i.MUTE="MUTE",i.VOLUME="VOLUME"})(Je||(Je={}));var Dn;(function(i){i.FULL="FULL",i.COUNT="COUNT",i.SHORT="SHORT"})(Dn||(Dn={}));const Iu=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();const e=i.querySelector("video");return e!=null&&e.webkitEnterFullscreen?e.webkitEnterFullscreen():Promise.reject()},zu=i=>i.exitFullscreen?i.exitFullscreen():i.msExitFullscreen?i.msExitFullscreen():i.webkitExitFullscreen?i.webkitExitFullscreen():i.mozCancelFullScreen?i.mozCancelFullScreen():Promise.reject(),e4=i=>{const e=i;return e!=null&&e.webkitExitFullscreen?e==null?void 0:e.webkitExitFullscreen():Promise.reject()},bo=()=>{const i=document;return!!(i.fullscreenElement||i.mozFullScreenElement||i.webkitFullscreenElement||i.msFullscreenElement)},Mu=i=>{document.addEventListener("fullscreenchange",i),document.addEventListener("webkitfullscreenchange",i),document.addEventListener("mozfullscreenchange",i),document.addEventListener("MSFullscreenChange",i)},Nu=i=>{document.removeEventListener("fullscreenchange",i),document.removeEventListener("webkitfullscreenchange",i),document.removeEventListener("mozfullscreenchange",i),document.removeEventListener("MSFullscreenChange",i)},t4=i=>{const e=window.screen;return(o=>Ji(void 0,void 0,void 0,function*(){return e.orientation?e.orientation.lock(o):e.mozLockOrientation?e.mozLockOrientation(o):e.msLockOrientation?e.msLockOrientation(o):Promise.reject()}))(((o={width:0,height:0})=>o.width<=o.height?"portrait":"landscape")(i))},i4=()=>({title:re("hotkey_map_modal_title"),closeBtnText:re("hotkey_map_modal_close_btn_text"),groups:[{title:re("hotkey_map_group_title_common"),items:[{description:re("hotkey_map_item_mute_description"),value:re("hotkey_map_item_mute_value")},{description:re("hotkey_map_item_volume_up_description"),value:re("hotkey_map_item_volume_up_value")},{description:re("hotkey_map_item_volume_down_description"),value:re("hotkey_map_item_volume_down_value")},{description:re("hotkey_map_item_pip_description"),value:re("hotkey_map_item_pip_value")},{description:re("hotkey_map_item_full_screen_description"),value:re("hotkey_map_item_full_screen_value")},{description:re("hotkey_map_item_show_hotkey_map_description"),value:re("hotkey_map_item_show_hotkey_map_value")}]},{title:re("hotkey_map_group_title_playback"),items:[{description:re("hotkey_map_item_play_toggle_description"),value:re("hotkey_map_item_play_toggle_value")},{description:re("hotkey_map_item_seek_backward_description"),value:re("hotkey_map_item_seek_backward_value")},{description:re("hotkey_map_item_seek_forward_description"),value:re("hotkey_map_item_seek_forward_value")},{description:re("hotkey_map_item_fast_seek_backward_description"),value:re("hotkey_map_item_fast_seek_backward_value")},{description:re("hotkey_map_item_fast_seek_forward_description"),value:re("hotkey_map_item_fast_seek_forward_value")},{description:re("hotkey_map_item_rate_down_description"),value:re("hotkey_map_item_rate_down_value")},{description:re("hotkey_map_item_rate_up_description"),value:re("hotkey_map_item_rate_up_value")},{description:re("hotkey_map_item_prev_frame_description"),value:re("hotkey_map_item_prev_frame_value")},{description:re("hotkey_map_item_next_frame_description"),value:re("hotkey_map_item_next_frame_value")},{description:re("hotkey_map_item_jump_seek_description"),value:re("hotkey_map_item_jump_seek_value")}]},{title:re("hotkey_map_group_title_subtitles"),items:[{description:re("hotkey_map_item_subtitles_toggle_description"),value:re("hotkey_map_item_subtitles_toggle_value")}]},{title:re("hotkey_map_group_title_episodes"),items:[{description:re("hotkey_map_item_prev_episode_description"),value:ie.isMacLike()?re("hotkey_map_item_prev_episode_mac_value"):re("hotkey_map_item_prev_episode_pc_value")},{description:re("hotkey_map_item_next_episode_description"),value:ie.isMacLike()?re("hotkey_map_item_next_episode_mac_value"):re("hotkey_map_item_next_episode_pc_value")}]}]});function n4(i){let e,t,n,o;return{c(){e=M("svg"),t=M("g"),n=M("path"),o=M("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(t,"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(l,r){k(l,e,r),d(e,t),d(t,n),d(t,o)},p:Z,i:Z,o:Z,d(l){l&&y(e)}}}class o4 extends ke{constructor(e){super(),ye(this,e,null,n4,we,{})}}function l4(i){Fe(i,"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 r4(i){let e,t,n,o,l,r,s;return n=new o4({}),{c(){e=w("div"),t=w("div"),F(n.$$.fragment),o=N(),l=w("span"),r=je(i[0]),u(t,"class","dummy-image v-1pbsod4"),E(t,"desktop",!i[1]),u(l,"class","title v-1pbsod4"),u(e,"class","player-pip-dummy v-1pbsod4"),E(e,"is-pip-api",i[2])},m(a,c){k(a,e,c),d(e,t),O(n,t,null),d(e,o),d(e,l),d(l,r),s=!0},p(a,[c]){(!s||c&2)&&E(t,"desktop",!a[1]),(!s||c&1)&&$e(r,a[0])},i(a){s||(m(n.$$.fragment,a),s=!0)},o(a){p(n.$$.fragment,a),s=!1},d(a){a&&y(e),D(n)}}}function s4(i,e,t){let n,o;const l=Et(),r=!!l.webApi.pictureInPictureApi,s=l.interfaceLanguage$;q(i,s,f=>t(5,n=f));const a=l.ui.isMobile;q(i,a,f=>t(1,o=f));let c;return i.$$.update=()=>{i.$$.dirty&32&&t(0,c=n&&re("pip_dummy_title"))},[c,o,r,s,a,n]}class Ru extends ke{constructor(e){super(),ye(this,e,s4,r4,we,{},l4)}}class jl{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:ie.debounceFn(this.onResize.bind(this),D1)},this.info={isActive$:new ie.ValueSubject(this.isActive()),type:yn.PictureInPicture}}isSupported(){const e=ie.getCurrentBrowser().browser===ie.CurrentClientBrowser.Yandex;return document.pictureInPictureEnabled&&!e}isActive(){return this.isSupported()&&!!document.pictureInPictureElement}setContext(e){this.svelteContext=e}revealPictureInPicture(){return Ji(this,void 0,void 0,function*(){this.isRequested&&(this.unregistryEventHandlers(),yield this.request(),this.registryEventHandlers())})}request(){var e;return Ji(this,void 0,void 0,function*(){if(!(!this.isSupported()||this.isActive()))try{yield(e=this.videoElement)===null||e===void 0?void 0:e.requestPictureInPicture()}catch(t){this.isRequested=!1}})}remove(){return Ji(this,void 0,void 0,function*(){!this.isSupported()||!this.isActive()||(yield document.exitPictureInPicture())})}assignPlayerContainer(e){this.isSupported()&&(this.playerContainer=e)}updateVideoElement(){var e;this.isSupported()&&(this.videoElement=(e=this.playerContainer)===null||e===void 0?void 0:e.querySelector("video"))}registryEventHandlers(){var e,t;(e=this.videoElement)===null||e===void 0||e.addEventListener("enterpictureinpicture",this.eventHandlers.enterpictureinpicture),(t=this.videoElement)===null||t===void 0||t.addEventListener("leavepictureinpicture",this.eventHandlers.leavepictureinpicture)}registryExternalEventHandlers(e){this.externalEventHandlers=Object.assign({},e)}unregistryEventHandlers(){var e,t;(e=this.videoElement)===null||e===void 0||e.removeEventListener("enterpictureinpicture",this.eventHandlers.enterpictureinpicture),(t=this.videoElement)===null||t===void 0||t.removeEventListener("leavepictureinpicture",this.eventHandlers.leavepictureinpicture)}dispose(){return Ji(this,void 0,void 0,function*(){this.unregistryEventHandlers(),yield this.remove()})}onEnterPictureInPicture(e){var t,n;const l=e.pictureInPictureWindow;l&&(this.info.isActive$.next(!0),this.isRequested=!0,l.addEventListener("resize",this.eventHandlers.resize),(n=(t=this.externalEventHandlers).enterpictureinpicture)===null||n===void 0||n.call(t,e),this.playerDummyElement=new Ru({target:this.playerContainer,context:this.svelteContext}))}onLeavePictureInPicture(e){var t,n,o;const r=e.pictureInPictureWindow;this.info.isActive$.next(!1),this.isRequested=!1,r==null||r.removeEventListener("resize",this.eventHandlers.resize),(n=(t=this.externalEventHandlers).leavepictureinpicture)===null||n===void 0||n.call(t,e),(o=this.playerDummyElement)===null||o===void 0||o.$destroy()}onResize(e){var t,n;(n=(t=this.externalEventHandlers).resize)===null||n===void 0||n.call(t,e)}}function jo(i){return i instanceof jl}function a4(i){const e=Et();return xi(()=>{e.getAdmanWrapper().startPostroll()}),[]}class u4 extends ke{constructor(e){super(),ye(this,e,a4,null,we,{})}}const hn=i=>{if(!isFinite(i))return"00:00";let e=Math.round(i);const t=Math.floor(e/(60*60));e-=t*(60*60);const 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 c4(i){Fe(i,"v-17pubzn",".container.v-17pubzn{position:absolute;top:14px;left:16px;padding:4px 8px;font-size:13px;color:var(--white);background:rgba(0, 0, 0, 0.35);border-radius:4px}.container-mobile.v-17pubzn{font-size:15px;background:unset;border-radius:unset}")}function f4(i){let e,t=re("playing_ads",{timeleft:i[0]})+"",n;return{c(){e=w("div"),n=je(t),u(e,"class","container v-17pubzn"),E(e,"container-mobile",i[1])},m(o,l){k(o,e,l),d(e,n)},p(o,[l]){l&1&&t!==(t=re("playing_ads",{timeleft:o[0]})+"")&&$e(n,t),l&2&&E(e,"container-mobile",o[1])},i:Z,o:Z,d(o){o&&y(e)}}}function d4(i,e,t){let n,{position:o=0}=e,{duration:l=0}=e;const s=Et().ui.isMobile;q(i,s,c=>t(1,n=c));let a;return i.$$set=c=>{"position"in c&&t(3,o=c.position),"duration"in c&&t(4,l=c.duration)},i.$$.update=()=>{i.$$.dirty&24&&t(0,a=hn(l-o))},[a,n,s,o,l]}class m4 extends ke{constructor(e){super(),ye(this,e,d4,f4,we,{position:3,duration:4},c4)}}function h4(i){Fe(i,"v-22jj8o",".container.v-22jj8o.v-22jj8o{position:absolute;top:14px;right:16px;padding:4px 8px;font-size:13px;color:#bbb;background:rgba(0, 0, 0, 0.35);border-radius:4px;transition:color .2s}.container-mobile.v-22jj8o.v-22jj8o{bottom:14px;top:unset;font-size:15px;max-width:142px}.icon.v-22jj8o.v-22jj8o{margin-left:4px;position:relative;top:2px;fill:var(--white);transition:fill .2s}.skip.v-22jj8o.v-22jj8o{width:86px}.skippable.v-22jj8o.v-22jj8o{cursor:pointer;color:var(--white)}.skippable.v-22jj8o.v-22jj8o:hover{color:rgba(255, 255, 255, .75)}.skippable.v-22jj8o:hover .icon.v-22jj8o{fill:rgba(255, 255, 255, .75)}")}function v4(i){let e=re("skip_ads_after",{time:Math.ceil(i[1]-i[0]).toFixed(0)})+"",t;return{c(){t=je(e)},m(n,o){k(n,t,o)},p(n,o){o&3&&e!==(e=re("skip_ads_after",{time:Math.ceil(n[1]-n[0]).toFixed(0)})+"")&&$e(t,e)},d(n){n&&y(t)}}}function p4(i){let e,t=re("skip_ads_now")+"",n,o,l,r,s,a;return{c(){e=w("div"),n=je(t),o=N(),l=M("svg"),r=M("path"),u(r,"fill-rule","evenodd"),u(r,"clip-rule","evenodd"),u(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"),u(l,"class","icon v-22jj8o"),u(l,"width","7"),u(l,"height","12"),u(l,"viewBox","0 0 7 12"),u(l,"fill","none"),u(l,"xmlns","http://www.w3.org/2000/svg"),u(e,"class","skip v-22jj8o")},m(c,f){k(c,e,f),d(e,n),d(e,o),d(e,l),d(l,r),s||(a=Ve(e,"click",ct(function(){ln(i[2])&&i[2].apply(this,arguments)})),s=!0)},p(c,f){i=c},d(c){c&&y(e),s=!1,a()}}}function g4(i){let e;function t(l,r){return l[3]?p4:v4}let n=t(i),o=n(i);return{c(){e=w("div"),o.c(),u(e,"class","container v-22jj8o"),E(e,"container-mobile",i[4]),E(e,"skippable",i[3])},m(l,r){k(l,e,r),o.m(e,null)},p(l,[r]){n===(n=t(l))&&o?o.p(l,r):(o.d(1),o=n(l),o&&(o.c(),o.m(e,null))),r&16&&E(e,"container-mobile",l[4]),r&8&&E(e,"skippable",l[3])},i:Z,o:Z,d(l){l&&y(e),o.d()}}}function b4(i,e,t){let n,{position:o=0}=e,{secondsToWatchBeforeSkip:l=0}=e,{skipAd:r=ie.noop}=e;const a=Et().ui.isMobile;q(i,a,f=>t(4,n=f));let c;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=()=>{i.$$.dirty&3&&t(3,c=o>0&&o>=l)},[o,l,r,c,n,a]}class _4 extends ke{constructor(e){super(),ye(this,e,b4,g4,we,{position:0,secondsToWatchBeforeSkip:1,skipAd:2},h4)}}function w4(i){Fe(i,"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 y4(i){let e;return{c(){e=w("button"),e.textContent=`${re("visit_advertiser")}`,u(e,"class","v-1wy3dql")},m(t,n){k(t,e,n)},p:Z,i:Z,o:Z,d(t){t&&y(e)}}}class k4 extends ke{constructor(e){super(),ye(this,e,null,y4,we,{},w4)}}function S4(i){Fe(i,"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
|
+
"use strict";var of=Object.create;var fl=Object.defineProperty,lf=Object.defineProperties,rf=Object.getOwnPropertyDescriptor,sf=Object.getOwnPropertyDescriptors,af=Object.getOwnPropertyNames,cr=Object.getOwnPropertySymbols,uf=Object.getPrototypeOf,fr=Object.prototype.hasOwnProperty,cf=Object.prototype.propertyIsEnumerable;var cl=(i,e,t)=>e in i?fl(i,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):i[e]=t,Ui=(i,e)=>{for(var t in e||(e={}))fr.call(e,t)&&cl(i,t,e[t]);if(cr)for(var t of cr(e))cf.call(e,t)&&cl(i,t,e[t]);return i},Qn=(i,e)=>lf(i,sf(e));var ff=(i,e,t,n)=>{if(e&&typeof e=="object"||typeof e=="function")for(let o of af(e))!fr.call(i,o)&&o!==t&&fl(i,o,{get:()=>e[o],enumerable:!(n=rf(e,o))||n.enumerable});return i};var dr=(i,e,t)=>(t=i!=null?of(uf(i)):{},ff(e||!i||!i.__esModule?fl(t,"default",{value:i,enumerable:!0}):t,i));var dl=(i,e,t)=>(cl(i,typeof e!="symbol"?e+"":e,t),t);var Un=(i,e,t)=>new Promise((n,o)=>{var r=a=>{try{s(t.next(a))}catch(c){o(c)}},l=a=>{try{s(t.throw(a))}catch(c){o(c)}},s=a=>a.done?n(a.value):Promise.resolve(a.value).then(r,l);s((t=t.apply(i,e)).next())});var ct=require("@vkontakte/videoplayer-core/es2015.cjs.js"),ne=require("@vkontakte/videoplayer-shared/es2015.cjs.js"),Tt=require("@vkontakte/videoplayer-statistics/es2015.cjs.js");function ji(i,e,t,n){function o(r){return r instanceof t?r:new t(function(l){l(r)})}return new(t||(t=Promise))(function(r,l){function s(f){try{c(n.next(f))}catch(d){l(d)}}function a(f){try{c(n.throw(f))}catch(d){l(d)}}function c(f){f.done?r(f.value):o(f.value).then(s,a)}c((n=n.apply(i,e||[])).next())})}function U(){}function z1(i,e){for(const t in e)i[t]=e[t];return i}function F1(i){return i()}function mr(){return Object.create(null)}function Xt(i){i.forEach(F1)}function cn(i){return typeof i=="function"}function _e(i,e){return i!=i?e==e:i!==e||i&&typeof i=="object"||typeof i=="function"}let Uo;function hr(i,e){return Uo||(Uo=document.createElement("a")),Uo.href=e,i===Uo.href}function df(i){return Object.keys(i).length===0}function Jt(i,...e){if(i==null){for(const n of e)n(void 0);return U}const t=i.subscribe(...e);return t.unsubscribe?()=>t.unsubscribe():t}function ut(i){let e;return Jt(i,t=>e=t)(),e}function W(i,e,t){i.$$.on_destroy.push(Jt(e,t))}function Bn(i,e,t,n){if(i){const o=H1(i,e,t,n);return i[0](o)}}function H1(i,e,t,n){return i[1]&&n?z1(t.ctx.slice(),i[1](n(e))):t.ctx}function Nn(i,e,t,n){if(i[2]&&n){const o=i[2](n(t));if(e.dirty===void 0)return o;if(typeof o=="object"){const r=[],l=Math.max(e.dirty.length,o.length);for(let s=0;s<l;s+=1)r[s]=e.dirty[s]|o[s];return r}return e.dirty|o}return e.dirty}function Rn(i,e,t,n,o,r){if(o){const l=H1(e,t,n,r);i.p(l,o)}}function On(i){if(i.ctx.length>32){const e=[],t=i.ctx.length/32;for(let n=0;n<t;n++)e[n]=-1;return e}return-1}function mf(i){return i==null?"":i}const U1=typeof window!="undefined"?window:typeof globalThis!="undefined"?globalThis:global;function m(i,e){i.appendChild(e)}function qe(i,e,t){const n=hf(i);if(!n.getElementById(e)){const o=w("style");o.id=e,o.textContent=t,pf(n,o)}}function hf(i){if(!i)return document;const e=i.getRootNode?i.getRootNode():i.ownerDocument;return e&&e.host?e:i.ownerDocument}function pf(i,e){return m(i.head||i,e),e.sheet}function C(i,e,t){i.insertBefore(e,t||null)}function y(i){i.parentNode&&i.parentNode.removeChild(i)}function pn(i,e){for(let t=0;t<i.length;t+=1)i[t]&&i[t].d(e)}function w(i){return document.createElement(i)}function M(i){return document.createElementNS("http://www.w3.org/2000/svg",i)}function je(i){return document.createTextNode(i)}function R(){return je(" ")}function Et(){return je("")}function Se(i,e,t,n){return i.addEventListener(e,t,n),()=>i.removeEventListener(e,t,n)}function ui(i){return function(e){return e.preventDefault(),i.call(this,e)}}function ht(i){return function(e){return e.stopPropagation(),i.call(this,e)}}function u(i,e,t){t==null?i.removeAttribute(e):i.getAttribute(e)!==t&&i.setAttribute(e,t)}function vf(i){return Array.from(i.childNodes)}function it(i,e){e=""+e,i.data!==e&&(i.data=e)}function Ht(i,e,t,n){t==null?i.style.removeProperty(e):i.style.setProperty(e,t,n?"important":"")}let jo;function gf(){if(jo===void 0){jo=!1;try{typeof window!="undefined"&&window.parent&&window.parent.document}catch(i){jo=!0}}return jo}function Kl(i,e){getComputedStyle(i).position==="static"&&(i.style.position="relative");const n=w("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=gf();let r;return o?(n.src="data:text/html,<script>onresize=function(){parent.postMessage(0,'*')}<\/script>",r=Se(window,"message",l=>{l.source===n.contentWindow&&e()})):(n.src="about:blank",n.onload=()=>{r=Se(n.contentWindow,"resize",e),e()}),m(i,n),()=>{(o||r&&n.contentWindow)&&r(),y(n)}}function L(i,e,t){i.classList.toggle(e,!!t)}function Pn(i,e){return new i(e)}let So;function Po(i){So=i}function Eo(){if(!So)throw new Error("Function called outside component initialization");return So}function vn(i){Eo().$$.on_mount.push(i)}function il(i){Eo().$$.on_destroy.push(i)}function j1(i,e){return Eo().$$.context.set(i,e),e}function q1(i){return Eo().$$.context.get(i)}function Z1(){return Eo().$$.context}function ao(i,e){const t=i.$$.callbacks[e.type];t&&t.slice().forEach(n=>n.call(this,e))}const no=[],Me=[];let ro=[];const zl=[],bf=Promise.resolve();let Fl=!1;function _f(){Fl||(Fl=!0,bf.then(W1))}function uo(i){ro.push(i)}function Qe(i){zl.push(i)}const ml=new Set;let Jn=0;function W1(){if(Jn!==0)return;const i=So;do{try{for(;Jn<no.length;){const e=no[Jn];Jn++,Po(e),kf(e.$$)}}catch(e){throw no.length=0,Jn=0,e}for(Po(null),no.length=0,Jn=0;Me.length;)Me.pop()();for(let e=0;e<ro.length;e+=1){const t=ro[e];ml.has(t)||(ml.add(t),t())}ro.length=0}while(no.length);for(;zl.length;)zl.pop()();Fl=!1,ml.clear(),Po(i)}function kf(i){if(i.fragment!==null){i.update(),Xt(i.before_update);const e=i.dirty;i.dirty=[-1],i.fragment&&i.fragment.p(i.ctx,e),i.after_update.forEach(uo)}}function wf(i){const e=[],t=[];ro.forEach(n=>i.indexOf(n)===-1?e.push(n):t.push(n)),t.forEach(n=>n()),ro=e}const Jo=new Set;let jn;function pe(){jn={r:0,c:[],p:jn}}function ve(){jn.r||Xt(jn.c),jn=jn.p}function h(i,e){i&&i.i&&(Jo.delete(i),i.i(e))}function p(i,e,t,n){if(i&&i.o){if(Jo.has(i))return;Jo.add(i),jn.c.push(()=>{Jo.delete(i),n&&(t&&i.d(1),n())}),i.o(e)}else n&&n()}function Gt(i){return(i==null?void 0:i.length)!==void 0?i:Array.from(i)}function yf(i,e){const t={},n={},o={$$scope:1};let r=i.length;for(;r--;){const l=i[r],s=e[r];if(s){for(const a in l)a in s||(n[a]=1);for(const a in s)o[a]||(t[a]=s[a],o[a]=1);i[r]=s}else for(const a in l)o[a]=1}for(const l in n)l in t||(t[l]=void 0);return t}function Cf(i){return typeof i=="object"&&i!==null?i:{}}function Je(i,e,t){const n=i.$$.props[e];n!==void 0&&(i.$$.bound[n]=t,t(i.$$.ctx[n]))}function H(i){i&&i.c()}function z(i,e,t){const{fragment:n,after_update:o}=i.$$;n&&n.m(e,t),uo(()=>{const r=i.$$.on_mount.map(F1).filter(cn);i.$$.on_destroy?i.$$.on_destroy.push(...r):Xt(r),i.$$.on_mount=[]}),o.forEach(uo)}function F(i,e){const t=i.$$;t.fragment!==null&&(wf(t.after_update),Xt(t.on_destroy),t.fragment&&t.fragment.d(e),t.on_destroy=t.fragment=null,t.ctx=[])}function Pf(i,e){i.$$.dirty[0]===-1&&(no.push(i),_f(),i.$$.dirty.fill(0)),i.$$.dirty[e/31|0]|=1<<e%31}function ke(i,e,t,n,o,r,l,s=[-1]){const a=So;Po(i);const c=i.$$={fragment:null,ctx:[],props:r,update:U,not_equal:o,bound:mr(),on_mount:[],on_destroy:[],on_disconnect:[],before_update:[],after_update:[],context:new Map(e.context||(a?a.$$.context:[])),callbacks:mr(),dirty:s,skip_bound:!1,root:e.target||a.$$.root};l&&l(c.root);let f=!1;if(c.ctx=t?t(i,e.props||{},(d,g,...v)=>{const b=v.length?v[0]:g;return c.ctx&&o(c.ctx[d],c.ctx[d]=b)&&(!c.skip_bound&&c.bound[d]&&c.bound[d](b),f&&Pf(i,d)),g}):[],c.update(),f=!0,Xt(c.before_update),c.fragment=n?n(c.ctx):!1,e.target){if(e.hydrate){const d=vf(e.target);c.fragment&&c.fragment.l(d),d.forEach(y)}else c.fragment&&c.fragment.c();e.intro&&h(i.$$.fragment),z(i,e.target,e.anchor),W1()}Po(a)}class we{constructor(){dl(this,"$$");dl(this,"$$set")}$destroy(){F(this,1),this.$destroy=U}$on(e,t){if(!cn(t))return U;const n=this.$$.callbacks[e]||(this.$$.callbacks[e]=[]);return n.push(t),()=>{const o=n.indexOf(t);o!==-1&&n.splice(o,1)}}$set(e){this.$$set&&!df(e)&&(this.$$.skip_bound=!0,this.$$set(e),this.$$.skip_bound=!1)}}const Sf="4";typeof window!="undefined"&&(window.__svelte||(window.__svelte={v:new Set})).v.add(Sf);var co;(function(i){i.VK="vk",i.VK_VIDEO="vk_video"})(co||(co={}));const Tf={isMobile:void 0,defaultLanguage:ne.InterfaceLanguage.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:co.VK_VIDEO,addTimeToLogoLink:!0,volumeDefault:1,volumeMinRestore:.05,loaderDelay:500,minSubtitlesFontSize:13,autoSubtitlesTimeout:2e3,allowChangingFullscreenTarget:!0,trafficSavingLimit:ne.VideoQuality.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,thumbTimer:!0,hotKeyMapModal:!0,hotKeyHelpers:!0,saveDebugInfoToFile:!1,additionalButtons:!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}},Ef=i=>ne.fillWithDefault(i,Tf),Af=i=>j1("ui-config",i),$i=()=>q1("ui-config"),Hl="vk_player_debug_panel_opened",G1=300,If="videoplayer",Lf="videoplayer";var Ge;(function(i){i.ArrowLeft="ArrowLeft",i.ArrowUp="ArrowUp",i.ArrowRight="ArrowRight",i.ArrowDown="ArrowDown",i.Comma="Comma",i.Period="Period",i.Space="Space",i.KeyM="KeyM",i.KeyF="KeyF",i.KeyK="KeyK",i.KeyL="KeyL",i.KeyJ="KeyJ",i.KeyC="KeyC",i.KeyI="KeyI",i.Digit1="Digit1",i.Digit2="Digit2",i.Digit3="Digit3",i.Digit4="Digit4",i.Digit5="Digit5",i.Digit6="Digit6",i.Digit7="Digit7",i.Digit8="Digit8",i.Digit9="Digit9",i.Digit0="Digit0",i.Numpad1="Numpad1",i.Numpad2="Numpad2",i.Numpad3="Numpad3",i.Numpad4="Numpad4",i.Numpad5="Numpad5",i.Numpad6="Numpad6",i.Numpad7="Numpad7",i.Numpad8="Numpad8",i.Numpad9="Numpad9",i.Numpad0="Numpad0",i.ShiftLeft="ShiftLeft",i.ShiftRight="ShiftRight",i.Slash="Slash"})(Ge||(Ge={}));const Vf=new Set([Ge.ArrowLeft,Ge.ArrowRight,Ge.KeyL,Ge.KeyJ]);var _t;(function(i){i.PLAY_BUTTON="PLAY_BUTTON",i.REPLAY_BUTTON="REPLAY_BUTTON",i.NEXT_BUTTON="NEXT_BUTTON",i.PREV_BUTTON="PREV_BUTTON",i.PICTURE_IN_PICTURE="PICTURE_IN_PICTURE",i.FULLSCREEN_BUTTON="FULLSCREEN_BUTTON",i.SETTINGS_BUTTON="SETTINGS_BUTTON",i.LIVE_BUTTON="LIVE_BUTTON",i.GRAPH_BUTTON="GRAPH_BUTTON",i.PLAY_PREV_CHAPTER_BUTTON="PLAY_PREV_CHAPTER_BUTTON",i.SEEK_TO_INTERACTIVE_BUTTON="SEEK_TO_INTERACTIVE_BUTTON",i.TIMELINE="TIMELINE",i.VOLUME_BAR="VOLUME_BAR",i.MUTE_BUTTON="MUTE_BUTTON",i.SUBTITLES_BUTTON="SUBTITLES_BUTTON",i.CHROMECAST_BUTTON="CHROMECAST_BUTTON",i.VK_BUTTON="VK_BUTTON",i.EPISODE_BUTTON="EPISODE_BUTTON",i.INCREMENT_PLAYBACK_RATE="INCREMENT_PLAYBACK_RATE",i.DECREMENT_PLAYBACK_RATE="DECREMENT_PLAYBACK_RATE"})(_t||(_t={}));const pr=40,vr=260,Mf=60,K1=[_t.TIMELINE],Ul=[...K1,_t.GRAPH_BUTTON],gr=[...K1,_t.PLAY_BUTTON],yo=[...Ul,_t.PLAY_BUTTON];var oo;(function(i){i[i.XS=320]="XS",i[i.S=509]="S",i[i.M=599]="M",i[i.L=699]="L"})(oo||(oo={}));exports.GridTypes=void 0;(function(i){i.XS="xs",i.S="s",i.M="m",i.L="l",i.XL="xl"})(exports.GridTypes||(exports.GridTypes={}));const fo={[exports.GridTypes.XS]:0,[exports.GridTypes.S]:1,[exports.GridTypes.M]:2,[exports.GridTypes.L]:3,[exports.GridTypes.XL]:4},xn=[];function yn(i,e){return{subscribe:ze(i,e).subscribe}}function ze(i,e=U){let t;const n=new Set;function o(s){if(_e(i,s)&&(i=s,t)){const a=!xn.length;for(const c of n)c[1](),xn.push(c,i);if(a){for(let c=0;c<xn.length;c+=2)xn[c][0](xn[c+1]);xn.length=0}}}function r(s){o(s(i))}function l(s,a=U){const c=[s,a];return n.add(c),n.size===1&&(t=e(o,r)||U),s(i),()=>{n.delete(c),n.size===0&&t&&(t(),t=null)}}return{set:o,update:r,subscribe:l}}function ii(i,e,t){const n=!Array.isArray(i),o=n?[i]:i;if(!o.every(Boolean))throw new Error("derived() expects stores as input, got a falsy value");const r=e.length<2;return yn(t,(l,s)=>{let a=!1;const c=[];let f=0,d=U;const g=()=>{if(f)return;d();const b=e(n?c[0]:c,l,s);r?l(b):d=cn(b)?b:U},v=o.map((b,S)=>Jt(b,_=>{c[S]=_,f&=~(1<<S),a&&g()},()=>{f|=1<<S}));return a=!0,g(),function(){Xt(v),d(),a=!1}})}const Bf="prod",nl="1.1.32-dev.a44460f3.0",Y1=(i,e,t)=>{const n=document.createElement("a");n.href=i,n.download=`${e}.${t}`,n.style.display="none",n.click()},X1=Symbol("storeContext"),Nf=i=>{j1(X1,i)},Nt=()=>{const i=q1(X1);return ne.assertNonNullable(i,"Store context is empty!"),i},It=(i,e)=>Q1(i,i.getValue(),e),Q1=(i,e,t)=>yn(e,n=>{const o=i.subscribe(r=>{n(r),t==null||t(r)});return()=>o.unsubscribe()}),Rf=(i,e,t)=>{var n,o,r,l;const s=i.info,{width:a,height:c}=ut(t.ui.playerSize),f=(o=(n=s.throughputEstimation$.getValue())===null||n===void 0?void 0:n.toFixed(0))!==null&&o!==void 0?o:0,d=(l=(r=s.rttEstimation$.getValue())===null||r===void 0?void 0:r.toFixed(0))!==null&&l!==void 0?l:0,g=s.isAutoQualityEnabled$.getValue()?"auto":"manual",v=`${nl} (core: ${ct.VERSION}, stat: ${Tt.VERSION}, shared: ${ne.VERSION})`,b=ut(t.state.errorLog$),S=b.length?`
|
|
7
|
+
`+b.map((E,V)=>{var B;const le=`${V}) Type: ${E.id}
|
|
8
|
+
`,O=`Message: ${E.message} (${E.thrown})
|
|
9
|
+
`,q=`Trace: ${(B=E.thrown)===null||B===void 0?void 0:B.stack}
|
|
10
|
+
`;return le+O+q}).join(`
|
|
11
|
+
`):void 0,_=t.state.isAudioDisabled?"disabled":ut(t.state.isAudioAvailable$)?void 0:"unavailable",A={Version:v,Browser:navigator.userAgent,Config:i.experimental.tuningConfigName$.getValue().join(", "),"United video id":String(t.videoId),"Content host":s.hostname$.getValue(),"Connection type":s.httpConnectionType$.getValue()+(s.httpConnectionReused$.getValue()?" (reused)":""),Throughput:`${f}Kbps @ ${d}ms RTT`,Format:s.currentFormat$.getValue(),"Available Formats":Object.keys(e.sources).join(", "),Quality:`${g} ${s.currentQuality$.getValue()}`,"Available qualities":s.availableQualities$.getValue().join(", "),Audio:_,Position:`${ut(t.state.positionExact$)}s`,State:`${ut(t.playerPhase)} ${s.playbackState$.getValue()}`,"Player size":`${a}x${c}`,URL:window.location.href,Errors:S};return Object.entries(A).filter(([E,V])=>V!==void 0).map(([E,V])=>`${E}: ${V}`).join(`
|
|
12
|
+
`)},Of=(i,e,t)=>{const n=i.info,{width:o,height:r}=ut(t.ui.playerSize),l={version:nl,viewport:`${o}x${r}`,volume:Math.round(ut(t.state.volume$)*100)};l.id=t.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-ut(t.state.positionExact$),0));const d=n.throughputEstimation$.getValue();d&&(l.speed=d);const g=n.videoBitrate$.getValue();return g&&(l.bitrate=g),l},Df=(i,e)=>Y1(i,e,"mp4"),J1="vk_player_prefer_traffic_saving_enabled",x1="vk_player_preferred_volume",$1="vk_player_prefer_volume_mute",Yl="vk_player_preferred_quality",eu=i=>i>1?1:i<0?0:i,br=i=>ne.safeStorage.set(x1,eu(i).toString(10)),tu=()=>{const i=ne.safeStorage.get(x1);return ne.isNullable(i)?void 0:eu(parseFloat(i))},zf=(i,e)=>ne.safeStorage.set(Yl,JSON.stringify({videoId:i,value:e})),iu=()=>ne.safeStorage.remove(Yl),Ff=i=>{const e=ne.safeStorage.get(Yl);if(ne.isNullable(e))return;const{videoId:t,value:n}=JSON.parse(e);if(i!==t){iu();return}return n},nu=(i,e)=>{e?ne.safeStorage.set(i,"true"):ne.safeStorage.remove(i)},ou=i=>ne.safeStorage.get(i)==="true",hl=i=>nu($1,i),Hf=()=>ou($1),Uf=i=>nu(J1,i),jf=()=>ou(J1);function qf(i){let e,t,n,o,r,l,s,a,c,f,d,g,v,b,S,_,A,E;return{c(){e=M("svg"),t=M("g"),n=M("path"),o=M("path"),r=M("path"),l=M("path"),s=M("path"),a=M("defs"),c=M("filter"),f=M("feFlood"),d=M("feColorMatrix"),g=M("feOffset"),v=M("feGaussianBlur"),b=M("feColorMatrix"),S=M("feBlend"),_=M("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(r,"fill-rule","evenodd"),u(r,"clip-rule","evenodd"),u(r,"d","M37.732 12.675c-.465 0-1 .046-1.511.164l2.584-3.74a1.338 1.338 0 1 0-2.203-1.518l-3.753 5.469c-1.418 2.133-1.837 3.822-1.837 5.276 0 3.47 2.558 5.674 6.186 5.674 3.604 0 6.162-2.392 6.162-5.768 0-3.236-2.349-5.557-5.628-5.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(r,"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(s,"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(s,"stroke","#000"),u(s,"stroke-opacity",".12"),u(s,"stroke-width",".5"),u(s,"stroke-linecap","round"),u(s,"stroke-linejoin","round"),u(t,"filter","url(#a)"),u(f,"flood-opacity","0"),u(f,"result","BackgroundImageFix"),u(d,"in","SourceAlpha"),u(d,"values","0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0"),u(d,"result","hardAlpha"),u(v,"stdDeviation","2.5"),u(b,"values","0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.16 0"),u(S,"in2","BackgroundImageFix"),u(S,"result","effect1_dropShadow_618_12297"),u(_,"in","SourceGraphic"),u(_,"in2","effect1_dropShadow_618_12297"),u(_,"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",A=!i[0]||null),u(e,"aria-label",E=i[0]||null)},m(V,B){C(V,e,B),m(e,t),m(t,n),m(t,o),m(t,r),m(t,l),m(t,s),m(e,a),m(a,c),m(c,f),m(c,d),m(c,g),m(c,v),m(c,b),m(c,S),m(c,_)},p(V,[B]){B&1&&A!==(A=!V[0]||null)&&u(e,"aria-hidden",A),B&1&&E!==(E=V[0]||null)&&u(e,"aria-label",E)},i:U,o:U,d(V){V&&y(e)}}}function Zf(i,e,t){let{ariaLabel:n=""}=e;return i.$$set=o=>{"ariaLabel"in o&&t(0,n=o.ariaLabel)},[n]}class lu extends we{constructor(e){super(),ke(this,e,Zf,qf,_e,{ariaLabel:0})}}var pl=typeof globalThis!="undefined"?globalThis:typeof window!="undefined"?window:typeof global!="undefined"?global:typeof self!="undefined"?self:{};function Wf(i){return i&&i.__esModule&&Object.prototype.hasOwnProperty.call(i,"default")?i.default:i}var qo=function(i){return i&&i.Math==Math&&i},Dn=qo(typeof globalThis=="object"&&globalThis)||qo(typeof window=="object"&&window)||qo(typeof self=="object"&&self)||qo(typeof pl=="object"&&pl)||function(){return this}()||pl||Function("return this")(),Zn=function(i){try{return!!i()}catch(e){return!0}},Gf=Zn,ol=!Gf(function(){var i=function(){}.bind();return typeof i!="function"||i.hasOwnProperty("prototype")}),Kf=ol,ru=Function.prototype,_r=ru.apply,kr=ru.call,Yf=typeof Reflect=="object"&&Reflect.apply||(Kf?kr.bind(_r):function(){return kr.apply(_r,arguments)}),su=ol,au=Function.prototype,jl=au.call,Xf=su&&au.bind.bind(jl,jl),zn=su?Xf:function(i){return function(){return jl.apply(i,arguments)}},uu=zn,Qf=uu({}.toString),Jf=uu("".slice),ll=function(i){return Jf(Qf(i),8,-1)},xf=ll,$f=zn,cu=function(i){if(xf(i)==="Function")return $f(i)},ql=typeof document=="object"&&document.all,e0=typeof ql=="undefined"&&ql!==void 0,fu={all:ql,IS_HTMLDDA:e0},du=fu,t0=du.all,In=du.IS_HTMLDDA?function(i){return typeof i=="function"||i===t0}:function(i){return typeof i=="function"},mu={},i0=Zn,Ao=!i0(function(){return Object.defineProperty({},1,{get:function(){return 7}})[1]!=7}),n0=ol,Zo=Function.prototype.call,Io=n0?Zo.bind(Zo):function(){return Zo.apply(Zo,arguments)},hu={},pu={}.propertyIsEnumerable,vu=Object.getOwnPropertyDescriptor,o0=vu&&!pu.call({1:2},1);hu.f=o0?function(e){var t=vu(this,e);return!!t&&t.enumerable}:pu;var gu=function(i,e){return{enumerable:!(i&1),configurable:!(i&2),writable:!(i&4),value:e}},l0=zn,r0=Zn,s0=ll,vl=Object,a0=l0("".split),u0=r0(function(){return!vl("z").propertyIsEnumerable(0)})?function(i){return s0(i)=="String"?a0(i,""):vl(i)}:vl,Xl=function(i){return i==null},c0=Xl,f0=TypeError,Ql=function(i){if(c0(i))throw f0("Can't call method on "+i);return i},d0=u0,m0=Ql,h0=function(i){return d0(m0(i))},wr=In,bu=fu,p0=bu.all,Lo=bu.IS_HTMLDDA?function(i){return typeof i=="object"?i!==null:wr(i)||i===p0}:function(i){return typeof i=="object"?i!==null:wr(i)},_u={},gl=_u,bl=Dn,v0=In,yr=function(i){return v0(i)?i:void 0},ku=function(i,e){return arguments.length<2?yr(gl[i])||yr(bl[i]):gl[i]&&gl[i][e]||bl[i]&&bl[i][e]},g0=zn,wu=g0({}.isPrototypeOf),b0=typeof navigator!="undefined"&&String(navigator.userAgent)||"",yu=Dn,_l=b0,Cr=yu.process,Pr=yu.Deno,Sr=Cr&&Cr.versions||Pr&&Pr.version,Tr=Sr&&Sr.v8,hn,$o;Tr&&(hn=Tr.split("."),$o=hn[0]>0&&hn[0]<4?1:+(hn[0]+hn[1]));!$o&&_l&&(hn=_l.match(/Edge\/(\d+)/),(!hn||hn[1]>=74)&&(hn=_l.match(/Chrome\/(\d+)/),hn&&($o=+hn[1])));var _0=$o,Er=_0,k0=Zn,w0=Dn,y0=w0.String,Cu=!!Object.getOwnPropertySymbols&&!k0(function(){var i=Symbol();return!y0(i)||!(Object(i)instanceof Symbol)||!Symbol.sham&&Er&&Er<41}),C0=Cu,Pu=C0&&!Symbol.sham&&typeof Symbol.iterator=="symbol",P0=ku,S0=In,T0=wu,E0=Pu,A0=Object,Su=E0?function(i){return typeof i=="symbol"}:function(i){var e=P0("Symbol");return S0(e)&&T0(e.prototype,A0(i))},I0=String,L0=function(i){try{return I0(i)}catch(e){return"Object"}},V0=In,M0=L0,B0=TypeError,Tu=function(i){if(V0(i))return i;throw B0(M0(i)+" is not a function")},N0=Tu,R0=Xl,Eu=function(i,e){var t=i[e];return R0(t)?void 0:N0(t)},kl=Io,wl=In,yl=Lo,O0=TypeError,D0=function(i,e){var t,n;if(e==="string"&&wl(t=i.toString)&&!yl(n=kl(t,i))||wl(t=i.valueOf)&&!yl(n=kl(t,i))||e!=="string"&&wl(t=i.toString)&&!yl(n=kl(t,i)))return n;throw O0("Can't convert object to primitive value")},Au={exports:{}},Ar=Dn,z0=Object.defineProperty,F0=function(i,e){try{z0(Ar,i,{value:e,configurable:!0,writable:!0})}catch(t){Ar[i]=e}return e},H0=Dn,U0=F0,Ir="__core-js_shared__",j0=H0[Ir]||U0(Ir,{}),q0=j0,Lr=q0;(Au.exports=function(i,e){return Lr[i]||(Lr[i]=e!==void 0?e:{})})("versions",[]).push({version:"3.31.0",mode:"pure",copyright:"\xA9 2014-2023 Denis Pushkarev (zloirock.ru)",license:"https://github.com/zloirock/core-js/blob/v3.31.0/LICENSE",source:"https://github.com/zloirock/core-js"});var Z0=Au.exports,W0=Ql,G0=Object,Iu=function(i){return G0(W0(i))},K0=zn,Y0=Iu,X0=K0({}.hasOwnProperty),rl=Object.hasOwn||function(e,t){return X0(Y0(e),t)},Q0=zn,J0=0,x0=Math.random(),$0=Q0(1 .toString),ed=function(i){return"Symbol("+(i===void 0?"":i)+")_"+$0(++J0+x0,36)},td=Dn,id=Z0,Vr=rl,nd=ed,od=Cu,ld=Pu,lo=td.Symbol,Cl=id("wks"),rd=ld?lo.for||lo:lo&&lo.withoutSetter||nd,Vo=function(i){return Vr(Cl,i)||(Cl[i]=od&&Vr(lo,i)?lo[i]:rd("Symbol."+i)),Cl[i]},sd=Io,Mr=Lo,Br=Su,ad=Eu,ud=D0,cd=Vo,fd=TypeError,dd=cd("toPrimitive"),md=function(i,e){if(!Mr(i)||Br(i))return i;var t=ad(i,dd),n;if(t){if(e===void 0&&(e="default"),n=sd(t,i,e),!Mr(n)||Br(n))return n;throw fd("Can't convert object to primitive value")}return e===void 0&&(e="number"),ud(i,e)},hd=md,pd=Su,Lu=function(i){var e=hd(i,"string");return pd(e)?e:e+""},vd=Dn,Nr=Lo,Zl=vd.document,gd=Nr(Zl)&&Nr(Zl.createElement),bd=function(i){return gd?Zl.createElement(i):{}},_d=Ao,kd=Zn,wd=bd,Vu=!_d&&!kd(function(){return Object.defineProperty(wd("div"),"a",{get:function(){return 7}}).a!=7}),yd=Ao,Cd=Io,Pd=hu,Sd=gu,Td=h0,Ed=Lu,Ad=rl,Id=Vu,Rr=Object.getOwnPropertyDescriptor;mu.f=yd?Rr:function(e,t){if(e=Td(e),t=Ed(t),Id)try{return Rr(e,t)}catch(n){}if(Ad(e,t))return Sd(!Cd(Pd.f,e,t),e[t])};var Ld=Zn,Vd=In,Md=/#|\.prototype\./,Mo=function(i,e){var t=Nd[Bd(i)];return t==Od?!0:t==Rd?!1:Vd(e)?Ld(e):!!e},Bd=Mo.normalize=function(i){return String(i).replace(Md,".").toLowerCase()},Nd=Mo.data={},Rd=Mo.NATIVE="N",Od=Mo.POLYFILL="P",Dd=Mo,Or=cu,zd=Tu,Fd=ol,Hd=Or(Or.bind),Ud=function(i,e){return zd(i),e===void 0?i:Fd?Hd(i,e):function(){return i.apply(e,arguments)}},Mu={},jd=Ao,qd=Zn,Zd=jd&&qd(function(){return Object.defineProperty(function(){},"prototype",{value:42,writable:!1}).prototype!=42}),Wd=Lo,Gd=String,Kd=TypeError,Bu=function(i){if(Wd(i))return i;throw Kd(Gd(i)+" is not an object")},Yd=Ao,Xd=Vu,Qd=Zd,Wo=Bu,Dr=Lu,Jd=TypeError,Pl=Object.defineProperty,xd=Object.getOwnPropertyDescriptor,Sl="enumerable",Tl="configurable",El="writable";Mu.f=Yd?Qd?function(e,t,n){if(Wo(e),t=Dr(t),Wo(n),typeof e=="function"&&t==="prototype"&&"value"in n&&El in n&&!n[El]){var o=xd(e,t);o&&o[El]&&(e[t]=n.value,n={configurable:Tl in n?n[Tl]:o[Tl],enumerable:Sl in n?n[Sl]:o[Sl],writable:!1})}return Pl(e,t,n)}:Pl:function(e,t,n){if(Wo(e),t=Dr(t),Wo(n),Xd)try{return Pl(e,t,n)}catch(o){}if("get"in n||"set"in n)throw Jd("Accessors not supported");return"value"in n&&(e[t]=n.value),e};var $d=Ao,e2=Mu,t2=gu,i2=$d?function(i,e,t){return e2.f(i,e,t2(1,t))}:function(i,e,t){return i[e]=t,i},Go=Dn,n2=Yf,o2=cu,l2=In,r2=mu.f,s2=Dd,$n=_u,a2=Ud,eo=i2,zr=rl,u2=function(i){var e=function(t,n,o){if(this instanceof e){switch(arguments.length){case 0:return new i;case 1:return new i(t);case 2:return new i(t,n)}return new i(t,n,o)}return n2(i,this,arguments)};return e.prototype=i.prototype,e},c2=function(i,e){var t=i.target,n=i.global,o=i.stat,r=i.proto,l=n?Go:o?Go[t]:(Go[t]||{}).prototype,s=n?$n:$n[t]||eo($n,t,{})[t],a=s.prototype,c,f,d,g,v,b,S,_,A;for(g in e)c=s2(n?g:t+(o?".":"#")+g,i.forced),f=!c&&l&&zr(l,g),b=s[g],f&&(i.dontCallGetSet?(A=r2(l,g),S=A&&A.value):S=l[g]),v=f&&S?S:e[g],!(f&&typeof b==typeof v)&&(i.bind&&f?_=a2(v,Go):i.wrap&&f?_=u2(v):r&&l2(v)?_=o2(v):_=v,(i.sham||v&&v.sham||b&&b.sham)&&eo(_,"sham",!0),eo(s,g,_),r&&(d=t+"Prototype",zr($n,d)||eo($n,d,{}),eo($n[d],g,v),i.real&&a&&(c||!a[g])&&eo(a,g,v)))},f2=Lo,d2=ll,m2=Vo,h2=m2("match"),p2=function(i){var e;return f2(i)&&((e=i[h2])!==void 0?!!e:d2(i)=="RegExp")},v2=Vo,g2=v2("toStringTag"),Nu={};Nu[g2]="z";var b2=String(Nu)==="[object z]",_2=b2,k2=In,xo=ll,w2=Vo,y2=w2("toStringTag"),C2=Object,P2=xo(function(){return arguments}())=="Arguments",S2=function(i,e){try{return i[e]}catch(t){}},T2=_2?xo:function(i){var e,t,n;return i===void 0?"Undefined":i===null?"Null":typeof(t=S2(e=C2(i),y2))=="string"?t:P2?xo(e):(n=xo(e))=="Object"&&k2(e.callee)?"Arguments":n},E2=T2,A2=String,I2=function(i){if(E2(i)==="Symbol")throw TypeError("Cannot convert a Symbol value to a string");return A2(i)},L2=Bu,V2=function(){var i=L2(this),e="";return i.hasIndices&&(e+="d"),i.global&&(e+="g"),i.ignoreCase&&(e+="i"),i.multiline&&(e+="m"),i.dotAll&&(e+="s"),i.unicode&&(e+="u"),i.unicodeSets&&(e+="v"),i.sticky&&(e+="y"),e},M2=Io,B2=rl,N2=wu,R2=V2,Fr=RegExp.prototype,O2=function(i){var e=i.flags;return e===void 0&&!("flags"in Fr)&&!B2(i,"flags")&&N2(Fr,i)?M2(R2,i):e},Jl=zn,D2=Iu,z2=Math.floor,Al=Jl("".charAt),F2=Jl("".replace),Il=Jl("".slice),H2=/\$([$&'`]|\d{1,2}|<[^>]*>)/g,U2=/\$([$&'`]|\d{1,2})/g,j2=function(i,e,t,n,o,r){var l=t+i.length,s=n.length,a=U2;return o!==void 0&&(o=D2(o),a=H2),F2(r,a,function(c,f){var d;switch(Al(f,0)){case"$":return"$";case"&":return i;case"`":return Il(e,0,t);case"'":return Il(e,l);case"<":d=o[Il(f,1,-1)];break;default:var g=+f;if(g===0)return c;if(g>s){var v=z2(g/10);return v===0?c:v<=s?n[v-1]===void 0?Al(f,1):n[v-1]+Al(f,1):c}d=n[g-1]}return d===void 0?"":d})},q2=c2,Z2=Io,xl=zn,Hr=Ql,W2=In,G2=Xl,K2=p2,to=I2,Y2=Eu,X2=O2,Q2=j2,J2=Vo,x2=J2("replace"),$2=TypeError,Ru=xl("".indexOf),e4=xl("".replace),Ur=xl("".slice),t4=Math.max,jr=function(i,e,t){return t>i.length?-1:e===""?t:Ru(i,e,t)};q2({target:"String",proto:!0},{replaceAll:function(e,t){var n=Hr(this),o,r,l,s,a,c,f,d,g,v=0,b=0,S="";if(!G2(e)){if(o=K2(e),o&&(r=to(Hr(X2(e))),!~Ru(r,"g")))throw $2("`.replaceAll` does not allow non-global regexes");if(l=Y2(e,x2),l)return Z2(l,e,n,t);if(o)return e4(to(n),e,t)}for(s=to(n),a=to(e),c=W2(t),c||(t=to(t)),f=a.length,d=t4(1,f),v=jr(s,a,0);v!==-1;)g=c?to(t(a,v,s)):Q2(a,s,v,[],void 0,t),S+=Ur(s,b,v)+g,b=v+f,v=jr(s,a,v+d);return b<s.length&&(S+=Ur(s,b)),S}});var i4=ku,n4=i4,o4=n4,l4=o4("String","replaceAll"),r4=l4,s4=r4,a4=s4,u4=a4,c4=Wf(u4);const f4={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_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_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_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"},d4={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_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_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_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"},En=new Map;En.set(ne.InterfaceLanguage.EN,d4);En.set(ne.InterfaceLanguage.RU,f4);const Ou=new Map,qr=({language:i,pack:e,fallback:t})=>{if(En.has(i)){const n=En.get(i);En.set(i,Object.assign(Object.assign({},n),e))}else En.set(i,e);Ou.set(i,t)},Zr=i=>En.has(i),Du=(i,e,t,n)=>{var o;const r=En.get(i);let l=r==null?void 0:r[e];if(ne.isNullable(l)){const s=(o=Ou.get(i))!==null&&o!==void 0?o:n,a=s?En.get(s):void 0;l=a==null?void 0:a[e]}return ne.isNullable(l)?e+Object.values(t!=null?t:{}).join(" "):t?c4(l,/{(\w+?)}/g,(s,a)=>{var c;return(c=t[a])!==null&&c!==void 0?c:""}):l},re=(i,e)=>{const{interfaceLanguage$:t}=Nt(),n=ut(t),o=$i();return Du(n,i,e,o.defaultLanguage)};var el;(function(i){i.fatal="fatal",i.error="error",i.warning="warning",i.log="log",i.info="info",i.debug="debug",i.critical="critical"})(el||(el={}));const m4=/^\s*at (?:(.*?) ?\()?((?:file|https?|blob|chrome-extension|address|native|eval|webpack|<anonymous>|[-a-z]+:|.*bundle|\/).*?)(?::(\d+))?(?::(\d+))?\)?\s*$/i,h4=/^\s*(.*?)(?:\((.*?)\))?(?:^|@)?((?:file|https?|blob|chrome|webpack|resource|moz-extension).*?:\/.*?|\[native code\]|[^@]*(?:bundle|\d+\.js))(?::(\d+))?(?::(\d+))?\s*$/i,p4=/^\s*at (?:((?:\[object object\])?.+) )?\(?((?:file|ms-appx|https?|webpack|blob):.*?):(\d+)(?::(\d+))?\)?\s*$/i,Ko="?",v4="X-Sentry-Auth",g4=/^(?:(\w+):)\/\/(?:([\w-]+)(?::(\w+))?@)([\w.-]+)(?::(\d+))?\/(.+)/;function b4(i){if(!i.stack)return null;const e=[],t=i.stack.split(`
|
|
13
|
+
`);let n,o;for(let r=0;r<t.length;++r){if(n=m4.exec(t[r]))o={filename:n[2]&&n[2].indexOf("address at ")===0?n[2].substr(11):n[2],function:n[1]||Ko,lineno:n[3]?+n[3]:null,colno:n[4]?+n[4]:null};else if(n=p4.exec(t[r]))o={filename:n[2],function:n[1]||Ko,lineno:+n[3],colno:n[4]?+n[4]:null};else if(n=h4.exec(t[r]))r===0&&!n[5]&&i.columnNumber!==void 0&&(e[0].column=i.columnNumber+1),o={filename:n[3],function:n[1]||Ko,lineno:n[4]?+n[4]:null,colno:n[5]?+n[5]:null};else continue;!o.function&&o.lineno&&(o.function=Ko),e.push(o)}return e.length?{value:zu(i),type:i.name,stacktrace:{frames:e.reverse()}}:null}function zu(i){return(i&&i.message||"No error message").split(`
|
|
14
|
+
`).filter(t=>!!t)[0]}function _4(i){try{const e=b4(i);if(e)return e}catch(e){}return{value:zu(i),type:i&&i.name,stacktrace:{frames:[]}}}function k4(){return"xxxxxxxxxxxx4xxxyxxxxxxxxxxxxxxx".replace(/[xy]/g,i=>{const e=Math.random()*16|0;return(i==="x"?e:e&3|8).toString(16)})}class w4{constructor(e){if(e&&e.dsn){const t=g4.exec(e.dsn),n=t?t.slice(1):[],o=n[5].split("/"),r=o.slice(0,-1).join("/");this.apiUrl=n[0]+"://"+n[3]+(n[4]?":"+n[4]:"")+(r?"/"+r:"")+"/api/"+o.pop()+"/store/",this.authHeader="Sentry sentry_version=7,sentry_key="+n[1]+(n[2]?",sentry_secret="+n[2]:"")}this.environment=e&&e.environment}prepare(e){return Qn(Ui({},this.getRequestBlank()),{exception:{values:[_4(e)]}})}report(e){this.send(this.prepare(e))}send(e){!this.apiUrl||!e||this.createRequest(e)}createRequest(e){const t=new XMLHttpRequest;t.open("POST",this.apiUrl,!0),t.setRequestHeader("Content-type","application/json"),t.setRequestHeader(v4,this.authHeader||""),t.send(JSON.stringify(e))}getRequestBlank(){return{platform:"javascript",event_id:k4(),sdk:{name:"micro-sentry.javascript.core",version:"0.0.0"},timestamp:Date.now()/1e3,environment:this.environment}}}function Wr(i,e){return Object.prototype.toString.call(e)==="[object RegExp]"?e.test(i):typeof e=="string"?i.indexOf(e)!==-1:!1}function y4(){return window}class $l extends w4{constructor(e,t=y4()){super(e),this.options=e,this.window=t,this.destroyed=!1,this._state={};const{plugins:n=[],beforeSend:o=c=>c,beforeBreadcrumb:r=c=>c,blacklistUrls:l=[],ignoreErrors:s=[],release:a=void 0}=this.options||{};this.plugins=n.map(c=>new c(this)),this.beforeSend=o,this.beforeBreadcrumb=r,this.blacklistUrls=l,this.ignoreErrors=s,this.release=a}get state(){return this._state}clearState(){this._state={}}setTags(e){return this.setKeyState("tags",Ui({},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",Ui({},e)),this}setUser(e){return this.setKeyState("user",Ui({},e)),this}clone(){const e=new $l(Qn(Ui({},this.options),{plugins:[]}));return e.extendState(this.state),e}withScope(e){const t=this.clone();e(t),t.destroy(),this.setBreadcrumbs(void 0)}addBreadcrumb(e){this.extendState({breadcrumbs:[Ui({timestamp:Date.now()/1e3},this.beforeBreadcrumb(e))]})}setBreadcrumbs(e){this.setKeyState("breadcrumbs",e)}captureMessage(e,t){this.send(Qn(Ui({},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=>Wr(t,n))):!1}getRequestBlank(){return Ui(Qn(Ui({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(Ui({release:this.release},e))),this.setBreadcrumbs(void 0))}getPossibleEventMessages(e){if(e.message)return[e.message];if(e.exception)try{const{type:t="",value:n=""}=e.exception.values&&e.exception.values[0]||{};return[`${n}`,`${t}: ${n}`]}catch(t){return[]}return[]}isDeniedUrl(e){if(!this.blacklistUrls.length)return!1;const t=this.getEventFilterUrl(e);return t?this.blacklistUrls.some(n=>Wr(t,n)):!1}getEventFilterUrl(e){try{if(e.exception){const t=e.exception.values&&e.exception.values[0].stacktrace&&e.exception.values[0].stacktrace.frames;return t&&t[t.length-1].filename||null}return null}catch(t){return null}}extendState(e){this._state=Object.keys(e).reduce((t,n)=>{const o=this._state[n],r=Array.isArray(o)?o:null,l=e[n],s=Array.isArray(l)?l:null;return Qn(Ui({},t),{[n]:r||s?[...r||[],...s||[]]:Ui(Ui({},typeof o!="string"?o:{}),typeof l!="string"?l:{})})},this._state)}setKeyState(e,t){this._state[e]=t}}let Yo=null;class Wl{constructor(e,t,n={}){!Yo&&e.dsn&&(this.sentryClient=new $l({dsn:e.dsn,environment:t.env}),this.version=t.version,this.sentrySubscription=new ne.Subscription,this.options=e,this.context=n,Yo=this)}destroy(){var e,t;(e=this.sentryClient)===null||e===void 0||e.destroy(),(t=this.sentrySubscription)===null||t===void 0||t.unsubscribe(),Yo=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={}){const{sentryClient:o,context:r,options:l}=this,{sampleRate:s=0,whiteErrorIdList:a,whiteErrorCategoryList:c=[],blackErrorIdList:f,blackErrorCategoryList:d}=l,{errorType:g,category:v}=t;if(ne.isNonNullable(v)&&d.includes(v)||ne.isNonNullable(g)&&f.includes(g))return;if(Math.random()<=s||ne.isNonNullable(v)&&c.includes(v)||ne.isNonNullable(g)&&a.includes(g)){Object.keys(t).length&&o.setTags(Object.assign({version:this.version},t)),(Object.keys(r).length||Object.keys(n).length)&&o.setExtras(Object.assign(Object.assign({},r),n));try{g&&o.captureMessage(g,t.fatal?el.fatal:el.error),o.report(e)}catch(S){console.error(S)}}}static getInstance(){return Yo}}var so;(function(i){i.AUTO="auto"})(so||(so={}));var Oe;(function(i){i.Thumb="thumb",i.Video="video",i.Ads="ads",i.Crashed="crashed",i.WaitingLive="waitingLive",i.WaitingRecord="waitingRecord"})(Oe||(Oe={}));var Tn;(function(i){i.Preroll="preroll",i.Midroll="midroll",i.Postroll="postroll"})(Tn||(Tn={}));var Kt;(function(i){i.INACTIVE="inactive",i.PLAYING="playing",i.PAUSED="paused"})(Kt||(Kt={}));var An;(function(i){i[i.PictureInPicture=0]="PictureInPicture",i[i.DocumentPictureInPicture=1]="DocumentPictureInPicture"})(An||(An={}));var tt;(function(i){i.PLAY="PLAY",i.STOP="STOP",i.BACKWARD_SEEK="BACKWARD_SEEK",i.FORWARD_SEEK="FORWARD_SEEK",i.SUBTITLES_ON="SUBTITLES_ON",i.SUBTITLES_OFF="SUBTITLES_OFF",i.RATE_UP="RATE_UP",i.RATE_DOWN="RATE_DOWN",i.EPISODE_PREV="EPISODE_PREV",i.EPISODE_NEXT="EPISODE_NEXT",i.MUTE="MUTE",i.VOLUME="VOLUME"})(tt||(tt={}));var qn;(function(i){i.FULL="FULL",i.COUNT="COUNT",i.SHORT="SHORT"})(qn||(qn={}));const Fu=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();const e=i.querySelector("video");return e!=null&&e.webkitEnterFullscreen?e.webkitEnterFullscreen():Promise.reject()},Hu=i=>i.exitFullscreen?i.exitFullscreen():i.msExitFullscreen?i.msExitFullscreen():i.webkitExitFullscreen?i.webkitExitFullscreen():i.mozCancelFullScreen?i.mozCancelFullScreen():Promise.reject(),C4=i=>{const e=i;return e!=null&&e.webkitExitFullscreen?e==null?void 0:e.webkitExitFullscreen():Promise.reject()},To=()=>{const i=document;return!!(i.fullscreenElement||i.mozFullScreenElement||i.webkitFullscreenElement||i.msFullscreenElement)},Uu=i=>{document.addEventListener("fullscreenchange",i),document.addEventListener("webkitfullscreenchange",i),document.addEventListener("mozfullscreenchange",i),document.addEventListener("MSFullscreenChange",i)},ju=i=>{document.removeEventListener("fullscreenchange",i),document.removeEventListener("webkitfullscreenchange",i),document.removeEventListener("mozfullscreenchange",i),document.removeEventListener("MSFullscreenChange",i)},P4=i=>{const e=window.screen;return(o=>ji(void 0,void 0,void 0,function*(){return e.orientation?e.orientation.lock(o):e.mozLockOrientation?e.mozLockOrientation(o):e.msLockOrientation?e.msLockOrientation(o):Promise.reject()}))(((o={width:0,height:0})=>o.width<=o.height?"portrait":"landscape")(i))},S4=()=>({title:re("hotkey_map_modal_title"),closeBtnText:re("hotkey_map_modal_close_btn_text"),groups:[{title:re("hotkey_map_group_title_common"),items:[{description:re("hotkey_map_item_mute_description"),value:re("hotkey_map_item_mute_value")},{description:re("hotkey_map_item_volume_up_description"),value:re("hotkey_map_item_volume_up_value")},{description:re("hotkey_map_item_volume_down_description"),value:re("hotkey_map_item_volume_down_value")},{description:re("hotkey_map_item_pip_description"),value:re("hotkey_map_item_pip_value")},{description:re("hotkey_map_item_full_screen_description"),value:re("hotkey_map_item_full_screen_value")},{description:re("hotkey_map_item_show_hotkey_map_description"),value:re("hotkey_map_item_show_hotkey_map_value")}]},{title:re("hotkey_map_group_title_playback"),items:[{description:re("hotkey_map_item_play_toggle_description"),value:re("hotkey_map_item_play_toggle_value")},{description:re("hotkey_map_item_seek_backward_description"),value:re("hotkey_map_item_seek_backward_value")},{description:re("hotkey_map_item_seek_forward_description"),value:re("hotkey_map_item_seek_forward_value")},{description:re("hotkey_map_item_fast_seek_backward_description"),value:re("hotkey_map_item_fast_seek_backward_value")},{description:re("hotkey_map_item_fast_seek_forward_description"),value:re("hotkey_map_item_fast_seek_forward_value")},{description:re("hotkey_map_item_rate_down_description"),value:re("hotkey_map_item_rate_down_value")},{description:re("hotkey_map_item_rate_up_description"),value:re("hotkey_map_item_rate_up_value")},{description:re("hotkey_map_item_prev_frame_description"),value:re("hotkey_map_item_prev_frame_value")},{description:re("hotkey_map_item_next_frame_description"),value:re("hotkey_map_item_next_frame_value")},{description:re("hotkey_map_item_jump_seek_description"),value:re("hotkey_map_item_jump_seek_value")}]},{title:re("hotkey_map_group_title_subtitles"),items:[{description:re("hotkey_map_item_subtitles_toggle_description"),value:re("hotkey_map_item_subtitles_toggle_value")}]},{title:re("hotkey_map_group_title_episodes"),items:[{description:re("hotkey_map_item_prev_episode_description"),value:ne.isMacLike()?re("hotkey_map_item_prev_episode_mac_value"):re("hotkey_map_item_prev_episode_pc_value")},{description:re("hotkey_map_item_next_episode_description"),value:ne.isMacLike()?re("hotkey_map_item_next_episode_mac_value"):re("hotkey_map_item_next_episode_pc_value")}]}]});class er{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:ne.debounceFn(this.onResize.bind(this),G1)},this.info={isActive$:new ne.ValueSubject(this.isActive()),type:An.PictureInPicture}}isSupported(){const e=ne.getCurrentBrowser().browser===ne.CurrentClientBrowser.Yandex;return document.pictureInPictureEnabled&&!e}isActive(){return this.isSupported()&&!!document.pictureInPictureElement}setContext(e){this.svelteContext=e}revealPictureInPicture(){return ji(this,void 0,void 0,function*(){this.isRequested&&(this.unregistryEventHandlers(),yield this.request(),this.registryEventHandlers())})}request(){var e;return ji(this,void 0,void 0,function*(){if(!(!this.isSupported()||this.isActive()))try{yield(e=this.videoElement)===null||e===void 0?void 0:e.requestPictureInPicture()}catch(t){this.isRequested=!1}})}remove(){return ji(this,void 0,void 0,function*(){!this.isSupported()||!this.isActive()||(yield document.exitPictureInPicture())})}assignPlayerContainer(e){this.isSupported()&&(this.playerContainer=e)}updateVideoElement(){var e;this.isSupported()&&(this.videoElement=(e=this.playerContainer)===null||e===void 0?void 0:e.querySelector("video"))}registryEventHandlers(){var e,t;(e=this.videoElement)===null||e===void 0||e.addEventListener("enterpictureinpicture",this.eventHandlers.enterpictureinpicture),(t=this.videoElement)===null||t===void 0||t.addEventListener("leavepictureinpicture",this.eventHandlers.leavepictureinpicture)}registryExternalEventHandlers(e){this.externalEventHandlers=Object.assign({},e)}unregistryEventHandlers(){var e,t;(e=this.videoElement)===null||e===void 0||e.removeEventListener("enterpictureinpicture",this.eventHandlers.enterpictureinpicture),(t=this.videoElement)===null||t===void 0||t.removeEventListener("leavepictureinpicture",this.eventHandlers.leavepictureinpicture)}dispose(){return ji(this,void 0,void 0,function*(){this.unregistryEventHandlers(),yield this.remove()})}onEnterPictureInPicture(e){var t,n;const r=e.pictureInPictureWindow;r&&(this.info.isActive$.next(!0),this.isRequested=!0,r.addEventListener("resize",this.eventHandlers.resize),(n=(t=this.externalEventHandlers).enterpictureinpicture)===null||n===void 0||n.call(t,e))}onLeavePictureInPicture(e){var t,n,o;const l=e.pictureInPictureWindow;this.info.isActive$.next(!1),this.isRequested=!1,l==null||l.removeEventListener("resize",this.eventHandlers.resize),(n=(t=this.externalEventHandlers).leavepictureinpicture)===null||n===void 0||n.call(t,e),(o=this.playerDummyElement)===null||o===void 0||o.$destroy()}onResize(e){var t,n;(n=(t=this.externalEventHandlers).resize)===null||n===void 0||n.call(t,e)}}function tl(i){return i instanceof er}function T4(i){const e=Nt();return vn(()=>{e.getAdmanWrapper().startPostroll()}),[]}class E4 extends we{constructor(e){super(),ke(this,e,T4,null,_e,{})}}const Cn=i=>{if(!isFinite(i))return"00:00";let e=Math.round(i);const t=Math.floor(e/(60*60));e-=t*(60*60);const n=Math.floor(e/60);return e-=n*60,(t>0?[t,n,e]:[n,e]).map(r=>r>9?String(r):`0${r}`).join(":")};function A4(i){qe(i,"v-17pubzn",".container.v-17pubzn{position:absolute;top:14px;left:16px;padding:4px 8px;font-size:13px;color:var(--white);background:rgba(0, 0, 0, 0.35);border-radius:4px}.container-mobile.v-17pubzn{font-size:15px;background:unset;border-radius:unset}")}function I4(i){let e,t=re("playing_ads",{timeleft:i[0]})+"",n;return{c(){e=w("div"),n=je(t),u(e,"class","container v-17pubzn"),L(e,"container-mobile",i[1])},m(o,r){C(o,e,r),m(e,n)},p(o,[r]){r&1&&t!==(t=re("playing_ads",{timeleft:o[0]})+"")&&it(n,t),r&2&&L(e,"container-mobile",o[1])},i:U,o:U,d(o){o&&y(e)}}}function L4(i,e,t){let n,{position:o=0}=e,{duration:r=0}=e;const s=Nt().ui.isMobile;W(i,s,c=>t(1,n=c));let a;return i.$$set=c=>{"position"in c&&t(3,o=c.position),"duration"in c&&t(4,r=c.duration)},i.$$.update=()=>{i.$$.dirty&24&&t(0,a=Cn(r-o))},[a,n,s,o,r]}class V4 extends we{constructor(e){super(),ke(this,e,L4,I4,_e,{position:3,duration:4},A4)}}function M4(i){qe(i,"v-22jj8o",".container.v-22jj8o.v-22jj8o{position:absolute;top:14px;right:16px;padding:4px 8px;font-size:13px;color:#bbb;background:rgba(0, 0, 0, 0.35);border-radius:4px;transition:color .2s}.container-mobile.v-22jj8o.v-22jj8o{bottom:14px;top:unset;font-size:15px;max-width:142px}.icon.v-22jj8o.v-22jj8o{margin-left:4px;position:relative;top:2px;fill:var(--white);transition:fill .2s}.skip.v-22jj8o.v-22jj8o{width:86px}.skippable.v-22jj8o.v-22jj8o{cursor:pointer;color:var(--white)}.skippable.v-22jj8o.v-22jj8o:hover{color:rgba(255, 255, 255, .75)}.skippable.v-22jj8o:hover .icon.v-22jj8o{fill:rgba(255, 255, 255, .75)}")}function B4(i){let e=re("skip_ads_after",{time:Math.ceil(i[1]-i[0]).toFixed(0)})+"",t;return{c(){t=je(e)},m(n,o){C(n,t,o)},p(n,o){o&3&&e!==(e=re("skip_ads_after",{time:Math.ceil(n[1]-n[0]).toFixed(0)})+"")&&it(t,e)},d(n){n&&y(t)}}}function N4(i){let e,t=re("skip_ads_now")+"",n,o,r,l,s,a;return{c(){e=w("div"),n=je(t),o=R(),r=M("svg"),l=M("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(r,"class","icon v-22jj8o"),u(r,"width","7"),u(r,"height","12"),u(r,"viewBox","0 0 7 12"),u(r,"fill","none"),u(r,"xmlns","http://www.w3.org/2000/svg"),u(e,"class","skip v-22jj8o")},m(c,f){C(c,e,f),m(e,n),m(e,o),m(e,r),m(r,l),s||(a=Se(e,"click",ht(function(){cn(i[2])&&i[2].apply(this,arguments)})),s=!0)},p(c,f){i=c},d(c){c&&y(e),s=!1,a()}}}function R4(i){let e;function t(r,l){return r[3]?N4:B4}let n=t(i),o=n(i);return{c(){e=w("div"),o.c(),u(e,"class","container v-22jj8o"),L(e,"container-mobile",i[4]),L(e,"skippable",i[3])},m(r,l){C(r,e,l),o.m(e,null)},p(r,[l]){n===(n=t(r))&&o?o.p(r,l):(o.d(1),o=n(r),o&&(o.c(),o.m(e,null))),l&16&&L(e,"container-mobile",r[4]),l&8&&L(e,"skippable",r[3])},i:U,o:U,d(r){r&&y(e),o.d()}}}function O4(i,e,t){let n,{position:o=0}=e,{secondsToWatchBeforeSkip:r=0}=e,{skipAd:l=ne.noop}=e;const a=Nt().ui.isMobile;W(i,a,f=>t(4,n=f));let c;return i.$$set=f=>{"position"in f&&t(0,o=f.position),"secondsToWatchBeforeSkip"in f&&t(1,r=f.secondsToWatchBeforeSkip),"skipAd"in f&&t(2,l=f.skipAd)},i.$$.update=()=>{i.$$.dirty&3&&t(3,c=o>0&&o>=r)},[o,r,l,c,n,a]}class D4 extends we{constructor(e){super(),ke(this,e,O4,R4,_e,{position:0,secondsToWatchBeforeSkip:1,skipAd:2},M4)}}function z4(i){qe(i,"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 F4(i){let e;return{c(){e=w("button"),e.textContent=`${re("visit_advertiser")}`,u(e,"class","v-1wy3dql")},m(t,n){C(t,e,n)},p:U,i:U,o:U,d(t){t&&y(e)}}}class H4 extends we{constructor(e){super(),ke(this,e,null,F4,_e,{},z4)}}function U4(i){qe(i,"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(
|
|
15
15
|
360deg,
|
|
16
16
|
rgba(0, 0, 0, 0) 0%,
|
|
17
17
|
rgba(0, 0, 0, 0.05) 12%,
|
|
@@ -21,15 +21,15 @@
|
|
|
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 Rr(i){let e;return{c(){e=w("div"),u(e,"class","top-gradient-mobile v-354ajf")},m(t,n){k(t,e,n)},d(t){t&&y(e)}}}function Br(i){let e,t;return e=new m4({props:{position:i[6],duration:i[7]}}),{c(){F(e.$$.fragment)},m(n,o){O(e,n,o),t=!0},p(n,o){const l={};o&64&&(l.position=n[6]),o&128&&(l.duration=n[7]),e.$set(l)},i(n){t||(m(e.$$.fragment,n),t=!0)},o(n){p(e.$$.fragment,n),t=!1},d(n){D(e,n)}}}function Or(i){let e,t;return e=new _4({props:{position:i[6],secondsToWatchBeforeSkip:i[8],skipAd:i[10].actions.internal.skipAd}}),{c(){F(e.$$.fragment)},m(n,o){O(e,n,o),t=!0},p(n,o){const l={};o&64&&(l.position=n[6]),o&256&&(l.secondsToWatchBeforeSkip=n[8]),e.$set(l)},i(n){t||(m(e.$$.fragment,n),t=!0)},o(n){p(e.$$.fragment,n),t=!1},d(n){D(e,n)}}}function Dr(i){let e,t;return e=new u4({}),{c(){F(e.$$.fragment)},m(n,o){O(e,n,o),t=!0},i(n){t||(m(e.$$.fragment,n),t=!0)},o(n){p(e.$$.fragment,n),t=!1},d(n){D(e,n)}}}function Fr(i){let e,t;return e=new k4({}),{c(){F(e.$$.fragment)},m(n,o){O(e,n,o),t=!0},i(n){t||(m(e.$$.fragment,n),t=!0)},o(n){p(e.$$.fragment,n),t=!1},d(n){D(e,n)}}}function P4(i){let e,t,n,o,l,r,s,a,c=i[0]&&Rr(),f=i[3]&&Br(i),h=i[4]&&Or(i),g=i[9]&&Dr(),v=i[5]&&Fr();return{c(){e=w("div"),c&&c.c(),t=N(),n=w("video"),o=N(),f&&f.c(),l=N(),h&&h.c(),r=N(),g&&g.c(),s=N(),v&&v.c(),Ft(n,"width","100%"),Ft(n,"height","100%"),n.playsInline=!0,u(e,"class","container v-354ajf")},m(b,A){k(b,e,A),c&&c.m(e,null),d(e,t),d(e,n),i[22](n),d(e,o),f&&f.m(e,null),d(e,l),h&&h.m(e,null),d(e,r),g&&g.m(e,null),d(e,s),v&&v.m(e,null),i[23](e),a=!0},p(b,[A]){b[0]?c||(c=Rr(),c.c(),c.m(e,t)):c&&(c.d(1),c=null),b[3]?f?(f.p(b,A),A&8&&m(f,1)):(f=Br(b),f.c(),m(f,1),f.m(e,l)):f&&(ve(),p(f,1,1,()=>{f=null}),pe()),b[4]?h?(h.p(b,A),A&16&&m(h,1)):(h=Or(b),h.c(),m(h,1),h.m(e,r)):h&&(ve(),p(h,1,1,()=>{h=null}),pe()),b[9]?g?A&512&&m(g,1):(g=Dr(),g.c(),m(g,1),g.m(e,s)):g&&(ve(),p(g,1,1,()=>{g=null}),pe()),b[5]?v?A&32&&m(v,1):(v=Fr(),v.c(),m(v,1),v.m(e,null)):v&&(ve(),p(v,1,1,()=>{v=null}),pe())},i(b){a||(m(f),m(h),m(g),m(v),a=!0)},o(b){p(f),p(h),p(g),p(v),a=!1},d(b){b&&y(e),c&&c.d(),i[22](null),f&&f.d(),h&&h.d(),g&&g.d(),v&&v.d(),i[23](null)}}}function C4(i,e,t){let n,o,l,r,s,a,{adsSlotId:c=void 0}=e,{adsParams:f=void 0}=e,{adsPreviewParam:h=void 0}=e,{duration:g=0}=e;const v=Et(),b=v.state.isEnded$;q(i,b,J=>t(9,a=J));const A=v.ui.isMobile;q(i,A,J=>t(0,o=J));let S,T,C=!1;const I=v.ads.playbackState;q(i,I,J=>t(21,n=J));const z=v.ads.canSkip,X=v.ads.duration;q(i,X,J=>t(7,r=J));const $=v.ads.position;q(i,$,J=>t(6,l=J));const H=v.ads.secondsToWatchBeforeSkip;q(i,H,J=>t(8,s=J));let R,oe,se;xi(()=>{const J=new AbortController;let U=()=>{J.abort()};const _=v.getAdmanWrapper();if(!c){_.onAdmanLoadingError();return}const{width:K,height:ue}=lt(v.ui.playerSize),_e=lt(v.ui.isFullscreen),he=lt(v.ui.isAutoplay),ae={width:K,height:ue,isFullscreen:_e,isAutoplay:he,adsContainer:S,adsVideoElement:T,slotId:c,params:f,previewParam:h,duration:g};return window.AdmanHTML?(_.initAdman(ae),C=!0):_.loadAdman(J.signal).then(()=>{_.initAdman(ae),C=!0}).catch(()=>{_.onAdmanLoadingError()}),()=>{!C&&U()}});function L(J){Ke[J?"unshift":"push"](()=>{T=J,t(2,T)})}function ce(J){Ke[J?"unshift":"push"](()=>{S=J,t(1,S)})}return i.$$set=J=>{"adsSlotId"in J&&t(17,c=J.adsSlotId),"adsParams"in J&&t(18,f=J.adsParams),"adsPreviewParam"in J&&t(19,h=J.adsPreviewParam),"duration"in J&&t(20,g=J.duration)},i.$$.update=()=>{i.$$.dirty&2097152&&t(3,R=n!==qt.INACTIVE),i.$$.dirty&2097152&&t(4,oe=z&&n!==qt.INACTIVE),i.$$.dirty&2097153&&t(5,se=o&&n!==qt.INACTIVE)},[o,S,T,R,oe,se,l,r,s,a,v,b,A,I,X,$,H,c,f,h,g,n,L,ce]}class Bu extends ke{constructor(e){super(),ye(this,e,C4,P4,we,{adsSlotId:17,adsParams:18,adsPreviewParam:19,duration:20},S4)}}function T4(i){Fe(i,"v-1f6baix",".annotations-container.v-1f6baix{position:absolute;top:0;left:0;width:100%;height:100%;pointer-events:none}.annotations-container .annotations-layer > *{pointer-events:initial}.annotations-container.shifted.v-1f6baix{height:calc(100% - var(--controls-height) - var(--slider-height))}")}function E4(i){let e;return{c(){e=w("div"),e.innerHTML="",u(e,"class","annotations-container v-1f6baix"),E(e,"shifted",i[0])},m(t,n){k(t,e,n),i[2](e)},p(t,[n]){n&1&&E(e,"shifted",t[0])},i:Z,o:Z,d(t){t&&y(e),i[2](null)}}}function A4(i,e,t){let{showControls:n}=e,o;const r=Et().webApi.annotationsApi;xi(()=>{if(r)return r.registryRootContainer(o),r.reattach(),()=>r.detach()});function s(a){Ke[a?"unshift":"push"](()=>{o=a,t(1,o)})}return i.$$set=a=>{"showControls"in a&&t(0,n=a.showControls)},[n,o,s]}class Ou extends ke{constructor(e){super(),ye(this,e,A4,E4,we,{showControls:0},T4)}}function L4(i){let e,t,n;return{c(){e=M("svg"),t=M("path"),n=M("path"),u(t,"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(t,"fill","none"),u(t,"stroke","#fff"),u(t,"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,l){k(o,e,l),d(e,t),d(e,n)},d(o){o&&y(e)}}}function V4(i){let e,t,n;return{c(){e=M("svg"),t=M("rect"),n=M("path"),u(t,"width","42"),u(t,"height","20"),u(t,"rx","5"),u(t,"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,l){k(o,e,l),d(e,t),d(e,n)},d(o){o&&y(e)}}}function I4(i){let e;function t(l,r){return l[0]?V4:L4}let n=t(i),o=n(i);return{c(){o.c(),e=wt()},m(l,r){o.m(l,r),k(l,e,r)},p(l,[r]){n!==(n=t(l))&&(o.d(1),o=n(l),o&&(o.c(),o.m(e.parentNode,e)))},i:Z,o:Z,d(l){l&&y(e),o.d(l)}}}function z4(i,e,t){let{isActive:n=!1}=e;return i.$$set=o=>{"isActive"in o&&t(0,n=o.isActive)},[n]}class Du extends ke{constructor(e){super(),ye(this,e,z4,I4,we,{isActive:0})}}function M4(i){Fe(i,"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 N4(i){let e=hn(i[4]-i[3])+"",t;return{c(){t=je(e)},m(n,o){k(n,t,o)},p(n,o){o&24&&e!==(e=hn(n[4]-n[3])+"")&&$e(t,e)},i:Z,o:Z,d(n){n&&y(t)}}}function R4(i){let e,t,n;return t=new Du({props:{isActive:!0}}),{c(){e=w("div"),F(t.$$.fragment),u(e,"class","thumb-timer-live-icon v-7pnl2h")},m(o,l){k(o,e,l),O(t,e,null),n=!0},p:Z,i(o){n||(m(t.$$.fragment,o),n=!0)},o(o){p(t.$$.fragment,o),n=!1},d(o){o&&y(e),D(t)}}}function B4(i){let e,t,n,o,l,r,s;const a=[R4,N4],c=[];function f(h,g){return h[1]?0:1}return l=f(i),r=c[l]=a[l](i),{c(){e=w("div"),t=w("div"),t.innerHTML='<div class="col v-7pnl2h"></div> <div class="col v-7pnl2h"></div> <div class="col v-7pnl2h"></div>',n=N(),o=w("span"),r.c(),u(t,"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"),E(e,"live",i[1]),E(e,"hidden",i[0]),E(e,"playing",i[2])},m(h,g){k(h,e,g),d(e,t),d(e,n),d(e,o),c[l].m(o,null),s=!0},p(h,[g]){let v=l;l=f(h),l===v?c[l].p(h,g):(ve(),p(c[v],1,1,()=>{c[v]=null}),pe(),r=c[l],r?r.p(h,g):(r=c[l]=a[l](h),r.c()),m(r,1),r.m(o,null)),(!s||g&2)&&E(e,"live",h[1]),(!s||g&1)&&E(e,"hidden",h[0]),(!s||g&4)&&E(e,"playing",h[2])},i(h){s||(m(r),s=!0)},o(h){p(r),s=!1},d(h){h&&y(e),c[l].d()}}}function O4(i,e,t){let{isHidden:n=!1}=e,{isLive:o=!1}=e,{isPlaying:l=!1}=e,{position:r}=e,{duration:s}=e;return i.$$set=a=>{"isHidden"in a&&t(0,n=a.isHidden),"isLive"in a&&t(1,o=a.isLive),"isPlaying"in a&&t(2,l=a.isPlaying),"position"in a&&t(3,r=a.position),"duration"in a&&t(4,s=a.duration)},[n,o,l,r,s]}class Fu extends ke{constructor(e){super(),ye(this,e,O4,B4,we,{isHidden:0,isLive:1,isPlaying:2,position:3,duration:4},M4)}}const Rl=i=>{if(document.queryCommandSupported&&document.queryCommandSupported("copy")){const 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)}}};function D4(i){Fe(i,"v-112a274","ul.v-112a274{position:absolute;border-radius:3px;background:rgba(0, 0, 0, 0.88);overflow:hidden;transition:visibility .1s,opacity .1s;font-size:13px;list-style:none;margin:0;padding:0}li.v-112a274{padding:8px 20px;cursor:pointer;position:relative;display:block;color:rgba(255, 255, 255, 0.72);font-size:13px;white-space:nowrap}li.v-112a274:hover{background:rgba(66, 66, 66, .5);color:var(--white)}")}function F4(i){let e,t,n,o,l,r=!i[4]&&!i[14]&&Hr(i);return{c(){e=w("li"),e.textContent=`${re("menu_copy_video_link")}`,t=N(),r&&r.c(),n=wt(),u(e,"class","v-112a274")},m(s,a){k(s,e,a),k(s,t,a),r&&r.m(s,a),k(s,n,a),o||(l=Ve(e,"click",ct(i[25])),o=!0)},p(s,a){!s[4]&&!s[14]?r?r.p(s,a):(r=Hr(s),r.c(),r.m(n.parentNode,n)):r&&(r.d(1),r=null)},d(s){s&&(y(e),y(t),y(n)),r&&r.d(s),o=!1,l()}}}function Hr(i){let e,t,n;return{c(){e=w("li"),e.textContent=`${re("menu_copy_video_link_with_timestamp")}`,u(e,"class","v-112a274")},m(o,l){k(o,e,l),t||(n=Ve(e,"click",ct(i[26])),t=!0)},p:Z,d(o){o&&y(e),t=!1,n()}}}function Ur(i){let e,t,n;return{c(){e=w("li"),e.textContent=`${re("menu_pip")}`,u(e,"class","v-112a274")},m(o,l){k(o,e,l),t||(n=Ve(e,"click",ct(i[19])),t=!0)},p:Z,d(o){o&&y(e),t=!1,n()}}}function H4(i){let e,t,n;return{c(){e=w("li"),e.textContent=`${re("menu_video_rotate")}`,u(e,"class","v-112a274")},m(o,l){k(o,e,l),t||(n=Ve(e,"click",ct(i[15])),t=!0)},p:Z,d(o){o&&y(e),t=!1,n()}}}function jr(i){let e,t,n;return{c(){e=w("li"),e.textContent=`${re("menu_report")}`,u(e,"class","v-112a274")},m(o,l){k(o,e,l),t||(n=Ve(e,"click",ct(i[16])),t=!0)},p:Z,d(o){o&&y(e),t=!1,n()}}}function U4(i){var A;let e,t,n,o,l,r,s,a,c,f,h=i[8].features.copyVideoLink&&((A=i[7].callbacks)==null?void 0:A.onCopyVideoLink)&&F4(i),g=i[9]&&i[5]!==rt.ChromecastState.CONNECTED&&!i[14]&&Ur(i),v=i[8].features.videoRotate&&!i[14]&&H4(i),b=i[8].showSupport&&!i[6]&&jr(i);return{c(){e=w("ul"),h&&h.c(),t=N(),g&&g.c(),n=N(),v&&v.c(),o=N(),b&&b.c(),l=N(),r=w("li"),r.textContent=`${i[8].features.saveDebugInfoToFile?re("menu_save_debug"):re("menu_copy_debug")}`,s=N(),a=w("li"),a.textContent=`${re("menu_debug_overlay")}`,u(r,"class","v-112a274"),u(a,"class","v-112a274"),Ft(e,"top",i[1]+"px"),Ft(e,"left",i[0]+"px"),u(e,"class","v-112a274"),E(e,"hidden",!i[2])},m(S,T){k(S,e,T),h&&h.m(e,null),d(e,t),g&&g.m(e,null),d(e,n),v&&v.m(e,null),d(e,o),b&&b.m(e,null),d(e,l),d(e,r),d(e,s),d(e,a),i[27](e),c||(f=[Ve(r,"click",ct(i[17])),Ve(a,"click",ct(i[18]))],c=!0)},p(S,T){var C;S[8].features.copyVideoLink&&((C=S[7].callbacks)!=null&&C.onCopyVideoLink)&&h.p(S,T),S[9]&&S[5]!==rt.ChromecastState.CONNECTED&&!S[14]?g?g.p(S,T):(g=Ur(S),g.c(),g.m(e,n)):g&&(g.d(1),g=null),S[8].features.videoRotate&&!S[14]&&v.p(S,T),S[8].showSupport&&!S[6]?b?b.p(S,T):(b=jr(S),b.c(),b.m(e,l)):b&&(b.d(1),b=null),T[0]&2&&Ft(e,"top",S[1]+"px"),T[0]&1&&Ft(e,"left",S[0]+"px"),T[0]&4&&E(e,"hidden",!S[2])},i:Z,o:Z,d(S){S&&y(e),h&&h.d(),g&&g.d(),v&&v.d(),b&&b.d(),i[27](null),c=!1,Gt(f)}}}function j4(i,e,t){var he;let n,o,l,r,{visible:s=!1}=e,{supportLink:a}=e,{x:c=0}=e,{y:f=0}=e,{playerContainerRef:h=void 0}=e,{controlsContainerRef:g=void 0}=e,{returnFocus:v}=e;const b=Et(),A=tn(),S=b.ui.contextMenuVisible,T=b.ui.debugPanelVisible,C=b.webApi.pictureInPictureApi,I=(he=b.webApi.pictureInPictureApi)==null?void 0:he.info.isActive$;q(i,I,ae=>t(6,r=ae));const z=b.state.chromecastState$;q(i,z,ae=>t(5,l=ae));const X=b.state.isLive$;q(i,X,ae=>t(4,o=ae));const $=b.state.positionExact$;q(i,$,ae=>t(28,n=ae));const H=b.state.isInteractive;let R;const oe=(ae,Ee)=>{if(!R||!h||!g)return;const Y=R.getBoundingClientRect(),V=h.getBoundingClientRect(),le=g.getBoundingClientRect();t(0,c=ae-V.left),t(1,f=Ee-V.top),c+Y.width>V.width&&t(0,c-=Y.width),f+Y.height>V.height-le.height&&t(1,f-=Y.height)},se=()=>{S.set(!1),b.actions.internal.videoRotate()},L=()=>{window.open(a,"_blank"),S.set(!1),b.actions.internal.pause()},ce=()=>{const ae=b.actions.internal.getDebugTextData();if(A.features.saveDebugInfoToFile){const Ee=new Blob([...ae],{type:"plain/text"}),Y=window.URL.createObjectURL(Ee);H1(Y,"vk_player_debug_info","txt")}else Rl(b.actions.internal.getDebugTextData());S.set(!1),v==null||v()},J=()=>{T.set(!0),S.set(!1),v==null||v()},U=()=>Bn(this,null,function*(){try{C!=null&&C.isActive()?yield C==null?void 0:C.remove():yield C==null?void 0:C.request()}finally{S.set(!1),v==null||v()}}),_=(ae=!1)=>{var Ee,Y;if((Ee=b.callbacks)!=null&&Ee.onCopyVideoLink){const V=(Y=b.callbacks)==null?void 0:Y.onCopyVideoLink(ae,n);V&&Rl(V)}S.set(!1)},K=()=>_(),ue=()=>_(!0);function _e(ae){Ke[ae?"unshift":"push"](()=>{R=ae,t(3,R)})}return i.$$set=ae=>{"visible"in ae&&t(2,s=ae.visible),"supportLink"in ae&&t(21,a=ae.supportLink),"x"in ae&&t(0,c=ae.x),"y"in ae&&t(1,f=ae.y),"playerContainerRef"in ae&&t(22,h=ae.playerContainerRef),"controlsContainerRef"in ae&&t(23,g=ae.controlsContainerRef),"returnFocus"in ae&&t(24,v=ae.returnFocus)},i.$$.update=()=>{i.$$.dirty[0]&3&&oe(c,f)},[c,f,s,R,o,l,r,b,A,C,I,z,X,$,H,se,L,ce,J,U,_,a,h,g,v,K,ue,_e]}class W4 extends ke{constructor(e){super(),ye(this,e,j4,U4,we,{visible:2,supportLink:21,x:0,y:1,playerContainerRef:22,controlsContainerRef:23,returnFocus:24},D4,[-1,-1])}}class q4{constructor(e){this.value=e,this.next=null}}class _l{constructor(e){this.top=null,this.bottom=null,this.size=0,this.maxSize=e}push(e){const t=new q4(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(){const e=[];let t=this.bottom;for(;t;)e.push(t.value),t=t.next;return e}}function Z4(i){Fe(i,"v-1ssl9eb",".container.v-1ssl9eb{display:inline-block;width:120px;height:16px}canvas.v-1ssl9eb{transform:scale(1, -1);margin-top:2px}")}function G4(i){let e,t;return{c(){e=w("div"),t=w("canvas"),u(t,"class","v-1ssl9eb"),u(e,"class","container v-1ssl9eb")},m(n,o){k(n,e,o),d(e,t),i[3](t)},p:Z,i:Z,o:Z,d(n){n&&y(e),i[3](null)}}}const wl=16,yl=120,Wr=60;function K4(i,e,t,n,o){o===0&&(o=1),i.fillStyle="#fff",i.fillRect(e,t,n,o)}function Y4(i,e,t){let{values:n=[]}=e,o,l;const r=yl/Wr;xi(()=>{t(0,o.width=yl,o),t(0,o.height=wl,o),t(2,l=o.getContext("2d"))});function s(a){Ke[a?"unshift":"push"](()=>{o=a,t(0,o)})}return i.$$set=a=>{"values"in a&&t(1,n=a.values)},i.$$.update=()=>{if(i.$$.dirty&6&&l){let a=n[0];for(let f=1;f<n.length;f++)n[f]>a&&(a=n[f]);l.clearRect(0,0,yl,wl);let c=Wr-1;for(let f=n.length-1;f>=0;f--){const h=c*r,g=a>0?wl*(n[f]/a):0;K4(l,h,0,r,g),c--}}},[o,n,l,s]}class Wl extends ke{constructor(e){super(),ye(this,e,Y4,G4,we,{values:1},Z4)}}function X4(i){Fe(i,"v-1gy2e68",".container.v-1gy2e68.v-1gy2e68.v-1gy2e68{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-1gy2e68.v-1gy2e68.v-1gy2e68{top:16px;left:16px}button.v-1gy2e68.v-1gy2e68.v-1gy2e68{position:absolute;right:5px;top:3px;cursor:pointer;outline:0;border:none;background-color:transparent;padding:0;color:#fff}.content.v-1gy2e68.v-1gy2e68.v-1gy2e68{padding:5px}.content.v-1gy2e68>div.v-1gy2e68>div.v-1gy2e68{display:inline-block;text-align:right;width:52px;padding:0 5px}")}function qr(i){let e,t,n,o,l=i[0].id+"",r;return{c(){e=w("div"),t=w("div"),t.textContent="Video id",n=N(),o=w("span"),r=je(l),u(t,"class","v-1gy2e68"),u(e,"class","v-1gy2e68")},m(s,a){k(s,e,a),d(e,t),d(e,n),d(e,o),d(o,r)},p(s,a){a&1&&l!==(l=s[0].id+"")&&$e(r,l)},d(s){s&&y(e)}}}function Zr(i){let e,t,n,o,l=i[0].provider+"",r;return{c(){e=w("div"),t=w("div"),t.textContent="Provider",n=N(),o=w("span"),r=je(l),u(t,"class","v-1gy2e68"),u(e,"class","v-1gy2e68")},m(s,a){k(s,e,a),d(e,t),d(e,n),d(e,o),d(o,r)},p(s,a){a&1&&l!==(l=s[0].provider+"")&&$e(r,l)},d(s){s&&y(e)}}}function Gr(i){let e,t,n,o,l=i[0].viewport+"",r;return{c(){e=w("div"),t=w("div"),t.textContent="Viewport",n=N(),o=w("span"),r=je(l),u(t,"class","v-1gy2e68"),u(e,"class","v-1gy2e68")},m(s,a){k(s,e,a),d(e,t),d(e,n),d(e,o),d(o,r)},p(s,a){a&1&&l!==(l=s[0].viewport+"")&&$e(r,l)},d(s){s&&y(e)}}}function Kr(i){let e,t,n,o,l=i[0].videoSize+"",r;return{c(){e=w("div"),t=w("div"),t.textContent="Video size",n=N(),o=w("span"),r=je(l),u(t,"class","v-1gy2e68"),u(e,"class","v-1gy2e68")},m(s,a){k(s,e,a),d(e,t),d(e,n),d(e,o),d(o,r)},p(s,a){a&1&&l!==(l=s[0].videoSize+"")&&$e(r,l)},d(s){s&&y(e)}}}function Yr(i){let e,t,n,o,l=i[0].cdn+"",r;return{c(){e=w("div"),t=w("div"),t.textContent="CDN host",n=N(),o=w("span"),r=je(l),u(t,"class","v-1gy2e68"),u(e,"class","v-1gy2e68")},m(s,a){k(s,e,a),d(e,t),d(e,n),d(e,o),d(o,r)},p(s,a){a&1&&l!==(l=s[0].cdn+"")&&$e(r,l)},d(s){s&&y(e)}}}function Xr(i){let e,t,n,o,l=i[0].volume+"",r,s;return{c(){e=w("div"),t=w("div"),t.textContent="Volume",n=N(),o=w("span"),r=je(l),s=je(" %"),u(t,"class","v-1gy2e68"),u(e,"class","v-1gy2e68")},m(a,c){k(a,e,c),d(e,t),d(e,n),d(e,o),d(o,r),d(o,s)},p(a,c){c&1&&l!==(l=a[0].volume+"")&&$e(r,l)},d(a){a&&y(e)}}}function Qr(i){let e,t,n,o,l=i[0].buffer.toFixed(2)+"",r,s;return{c(){e=w("div"),t=w("div"),t.textContent="Buffer",n=N(),o=w("span"),r=je(l),s=je(" s"),u(t,"class","v-1gy2e68"),u(e,"class","v-1gy2e68")},m(a,c){k(a,e,c),d(e,t),d(e,n),d(e,o),d(o,r),d(o,s)},p(a,c){c&1&&l!==(l=a[0].buffer.toFixed(2)+"")&&$e(r,l)},d(a){a&&y(e)}}}function Jr(i){let e,t,n,o,l,r,s=i[0].speed.toFixed(2)+"",a,c,f;return o=new Wl({props:{values:i[5]}}),{c(){e=w("div"),t=w("div"),t.textContent="Network",n=N(),F(o.$$.fragment),l=N(),r=w("span"),a=je(s),c=je(" Kbps"),u(t,"class","v-1gy2e68"),u(e,"class","v-1gy2e68")},m(h,g){k(h,e,g),d(e,t),d(e,n),O(o,e,null),d(e,l),d(e,r),d(r,a),d(r,c),f=!0},p(h,g){const v={};g&32&&(v.values=h[5]),o.$set(v),(!f||g&1)&&s!==(s=h[0].speed.toFixed(2)+"")&&$e(a,s)},i(h){f||(m(o.$$.fragment,h),f=!0)},o(h){p(o.$$.fragment,h),f=!1},d(h){h&&y(e),D(o)}}}function xr(i){let e,t,n,o,l,r,s=i[0].bitrate.toFixed(2)+"",a,c,f;return o=new Wl({props:{values:i[6]}}),{c(){e=w("div"),t=w("div"),t.textContent="V bitrate",n=N(),F(o.$$.fragment),l=N(),r=w("span"),a=je(s),c=je(" Kbps"),u(t,"class","v-1gy2e68"),u(e,"class","v-1gy2e68")},m(h,g){k(h,e,g),d(e,t),d(e,n),O(o,e,null),d(e,l),d(e,r),d(r,a),d(r,c),f=!0},p(h,g){const v={};g&64&&(v.values=h[6]),o.$set(v),(!f||g&1)&&s!==(s=h[0].bitrate.toFixed(2)+"")&&$e(a,s)},i(h){f||(m(o.$$.fragment,h),f=!0)},o(h){p(o.$$.fragment,h),f=!1},d(h){h&&y(e),D(o)}}}function Q4(i){let e,t,n,o,l,r,s,a,c=i[0].version+"",f,h,g,v,b,A,S,T,C,I,z,X,$,H,R,oe,se,L,ce,J,U,_,K,ue,_e,he,ae,Ee,Y,V,le=i[0].id&&qr(i),x=i[0].provider&&Zr(i),Ae=i[0].viewport&&Gr(i),B=i[0].videoSize&&Kr(i),ee=i[0].cdn&&Yr(i),ze=i[0].volume&&Xr(i),Ce=i[0].buffer&&Qr(i),ge=i[0].speed&&Jr(i),Se=i[0].bitrate&&xr(i);return ue=new Wl({props:{values:i[4]}}),{c(){e=w("div"),t=w("button"),t.textContent="[x]",n=N(),o=w("div"),l=w("div"),r=w("div"),r.textContent="Version",s=N(),a=w("span"),f=je(c),h=N(),le&&le.c(),g=N(),x&&x.c(),v=N(),Ae&&Ae.c(),b=N(),B&&B.c(),A=N(),ee&&ee.c(),S=N(),ze&&ze.c(),T=N(),Ce&&Ce.c(),C=N(),I=w("div"),z=w("div"),z.textContent="Dropped",X=N(),$=w("span"),H=je(i[2]),R=je(" / "),oe=je(i[1]),se=je(" frames"),L=N(),ge&&ge.c(),ce=N(),Se&&Se.c(),J=N(),U=w("div"),_=w("div"),_.textContent="FPS",K=N(),F(ue.$$.fragment),_e=N(),he=w("span"),ae=je(i[3]),u(t,"class","close v-1gy2e68"),u(t,"title","\u0437\u0430\u043A\u0440\u044B\u0442\u044C"),u(r,"class","v-1gy2e68"),u(l,"class","v-1gy2e68"),u(z,"class","v-1gy2e68"),u(I,"class","v-1gy2e68"),u(_,"class","v-1gy2e68"),u(U,"class","v-1gy2e68"),u(o,"class","content v-1gy2e68"),u(e,"class","container v-1gy2e68"),E(e,"container-mobile",i[7])},m(Pe,G){k(Pe,e,G),d(e,t),d(e,n),d(e,o),d(o,l),d(l,r),d(l,s),d(l,a),d(a,f),d(o,h),le&&le.m(o,null),d(o,g),x&&x.m(o,null),d(o,v),Ae&&Ae.m(o,null),d(o,b),B&&B.m(o,null),d(o,A),ee&&ee.m(o,null),d(o,S),ze&&ze.m(o,null),d(o,T),Ce&&Ce.m(o,null),d(o,C),d(o,I),d(I,z),d(I,X),d(I,$),d($,H),d($,R),d($,oe),d($,se),d(o,L),ge&&ge.m(o,null),d(o,ce),Se&&Se.m(o,null),d(o,J),d(o,U),d(U,_),d(U,K),O(ue,U,null),d(U,_e),d(U,he),d(he,ae),Ee=!0,Y||(V=Ve(t,"click",ct(i[9])),Y=!0)},p(Pe,[G]){(!Ee||G&1)&&c!==(c=Pe[0].version+"")&&$e(f,c),Pe[0].id?le?le.p(Pe,G):(le=qr(Pe),le.c(),le.m(o,g)):le&&(le.d(1),le=null),Pe[0].provider?x?x.p(Pe,G):(x=Zr(Pe),x.c(),x.m(o,v)):x&&(x.d(1),x=null),Pe[0].viewport?Ae?Ae.p(Pe,G):(Ae=Gr(Pe),Ae.c(),Ae.m(o,b)):Ae&&(Ae.d(1),Ae=null),Pe[0].videoSize?B?B.p(Pe,G):(B=Kr(Pe),B.c(),B.m(o,A)):B&&(B.d(1),B=null),Pe[0].cdn?ee?ee.p(Pe,G):(ee=Yr(Pe),ee.c(),ee.m(o,S)):ee&&(ee.d(1),ee=null),Pe[0].volume?ze?ze.p(Pe,G):(ze=Xr(Pe),ze.c(),ze.m(o,T)):ze&&(ze.d(1),ze=null),Pe[0].buffer?Ce?Ce.p(Pe,G):(Ce=Qr(Pe),Ce.c(),Ce.m(o,C)):Ce&&(Ce.d(1),Ce=null),(!Ee||G&4)&&$e(H,Pe[2]),(!Ee||G&2)&&$e(oe,Pe[1]),Pe[0].speed?ge?(ge.p(Pe,G),G&1&&m(ge,1)):(ge=Jr(Pe),ge.c(),m(ge,1),ge.m(o,ce)):ge&&(ve(),p(ge,1,1,()=>{ge=null}),pe()),Pe[0].bitrate?Se?(Se.p(Pe,G),G&1&&m(Se,1)):(Se=xr(Pe),Se.c(),m(Se,1),Se.m(o,J)):Se&&(ve(),p(Se,1,1,()=>{Se=null}),pe());const j={};G&16&&(j.values=Pe[4]),ue.$set(j),(!Ee||G&8)&&$e(ae,Pe[3]),(!Ee||G&128)&&E(e,"container-mobile",Pe[7])},i(Pe){Ee||(m(ge),m(Se),m(ue.$$.fragment,Pe),Ee=!0)},o(Pe){p(ge),p(Se),p(ue.$$.fragment,Pe),Ee=!1},d(Pe){Pe&&y(e),le&&le.d(),x&&x.d(),Ae&&Ae.d(),B&&B.d(),ee&&ee.d(),ze&&ze.d(),Ce&&Ce.d(),ge&&ge.d(),Se&&Se.d(),D(ue),Y=!1,V()}}}function J4(i,e,t){let n;const o=Et(),l=o.ui.debugPanelVisible,r=o.ui.isMobile;q(i,r,I=>t(7,n=I));const s=()=>{ie.safeStorage.remove(Ll),l.set(!1)};let a=o.actions.internal.getDebugPanelData(),c=o.actions.internal.getVideoElement(),f=0,h=0,g=0;const v=new _l(60),b=new _l(60),A=new _l(60);let S=[],T=[],C=[];return xi(()=>{ie.safeStorage.set(Ll,"true"),o.actions.internal.startLogging(),c&&(t(2,h=c.getVideoPlaybackQuality().droppedVideoFrames),t(1,f=c.getVideoPlaybackQuality().totalVideoFrames));const I=window.setInterval(()=>{t(0,a=o.actions.internal.getDebugPanelData())},500);let z;return c&&(z=window.setInterval(()=>{if(c){t(2,h=c.getVideoPlaybackQuality().droppedVideoFrames);const X=c.getVideoPlaybackQuality().totalVideoFrames;t(3,g=X-f),t(1,f=X),v.push(g),a.speed&&b.push(a.speed),a.bitrate&&A.push(a.bitrate),t(4,S=v.getValuesFromBottom()),t(5,T=b.getValuesFromBottom()),t(6,C=A.getValuesFromBottom())}},1e3)),()=>{o.actions.internal.stopLogging(),clearInterval(I),z&&clearInterval(z)}}),[a,f,h,g,S,T,C,n,r,s]}class Hu extends ke{constructor(e){super(),ye(this,e,J4,Q4,we,{},X4)}}function x4(i){Fe(i,"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 $4(i){let e,t,n;return{c(){e=w("div"),u(e,"class","close v-1ome55p")},m(o,l){k(o,e,l),t||(n=Ve(e,"click",ct(i[0])),t=!0)},p:Z,i:Z,o:Z,d(o){o&&y(e),t=!1,n()}}}function em(i){function e(t){go.call(this,i,t)}return[e]}class tm extends ke{constructor(e){super(),ye(this,e,em,$4,we,{},x4)}}function im(i){Fe(i,"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 nm(i){let e,t,n,o,l,r,s;return{c(){e=w("div"),t=w("canvas"),n=N(),o=M("svg"),l=M("g"),r=M("g"),s=M("path"),u(t,"class","timer-canvas v-8jhsry"),u(t,"width","100"),u(t,"height","100"),u(s,"class","_play"),u(s,"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(s,"fill","#fff"),u(r,"fill-rule","nonzero"),u(l,"fill","none"),u(l,"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){k(a,e,c),d(e,t),i[2](t),d(e,n),d(e,o),d(o,l),d(l,r),d(r,s)},p:Z,i:Z,o:Z,d(a){a&&y(e),i[2](null)}}}const om=5e3;function lm(i,e,t){let{onTimerEnded:n=ie.noop}=e,o;xi(()=>{let r;const s=o.getContext("2d");if(!s)return;s.lineWidth=6,s.lineCap="round",s.strokeStyle="#fff";const a=Date.now(),c=()=>{const f=(Date.now()-a)/om;f<1?(s.clearRect(0,0,100,100),s.beginPath(),s.arc(50,50,47,-Math.PI/2,-Math.PI/2+Math.PI*2*f),s.stroke(),r=requestAnimationFrame(c)):n()};return r=requestAnimationFrame(c),()=>{cancelAnimationFrame(r)}});function l(r){Ke[r?"unshift":"push"](()=>{o=r,t(0,o)})}return i.$$set=r=>{"onTimerEnded"in r&&t(1,n=r.onTimerEnded)},[o,n,l]}class rm extends ke{constructor(e){super(),ye(this,e,lm,nm,we,{onTimerEnded:1},im)}}function sm(i){Fe(i,"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 $r(i){let e,t;return e=new rm({props:{onTimerEnded:i[2]}}),{c(){F(e.$$.fragment)},m(n,o){O(e,n,o),t=!0},p(n,o){const l={};o&4&&(l.onTimerEnded=n[2]),e.$set(l)},i(n){t||(m(e.$$.fragment,n),t=!0)},o(n){p(e.$$.fragment,n),t=!1},d(n){D(e,n)}}}function am(i){let e,t,n,o,l,r,s,a,c,f,h,g,v,b,A,S,T,C,I,z,X;s=new tm({}),s.$on("click",i[4]);let $=i[3]&&$r(i);return{c(){e=w("div"),t=N(),n=w("div"),o=w("div"),l=w("div"),l.textContent="\u0441\u043B\u0435\u0434\u0443\u044E\u0449\u0435\u0435 \u0432\u0438\u0434\u0435\u043E",r=N(),F(s.$$.fragment),a=N(),c=w("div"),f=w("div"),h=w("div"),g=w("div"),v=N(),$&&$.c(),A=N(),S=w("div"),T=w("div"),C=je(i[0]),u(e,"class","overlay v-kisfwc"),u(l,"class","caption v-kisfwc"),u(o,"class","top v-kisfwc"),u(g,"class","thumb-overlay v-kisfwc"),u(h,"class","thumb v-kisfwc"),u(h,"style",b=`background-image: url('${i[1]}')`),u(f,"class","column v-kisfwc"),u(T,"class","title v-kisfwc"),u(S,"class","column v-kisfwc"),u(c,"class","row v-kisfwc"),u(n,"class","next-video v-kisfwc")},m(H,R){k(H,e,R),k(H,t,R),k(H,n,R),d(n,o),d(o,l),d(o,r),O(s,o,null),d(n,a),d(n,c),d(c,f),d(f,h),d(h,g),d(h,v),$&&$.m(h,null),d(c,A),d(c,S),d(S,T),d(T,C),I=!0,z||(X=Ve(c,"click",function(){ln(i[2])&&i[2].apply(this,arguments)}),z=!0)},p(H,[R]){i=H,i[3]?$?($.p(i,R),R&8&&m($,1)):($=$r(i),$.c(),m($,1),$.m(h,null)):$&&(ve(),p($,1,1,()=>{$=null}),pe()),(!I||R&2&&b!==(b=`background-image: url('${i[1]}')`))&&u(h,"style",b),(!I||R&1)&&$e(C,i[0])},i(H){I||(m(s.$$.fragment,H),m($),I=!0)},o(H){p(s.$$.fragment,H),p($),I=!1},d(H){H&&(y(e),y(t),y(n)),D(s),$&&$.d(),z=!1,X()}}}function um(i,e,t){let{title:n}=e,{thumb:o}=e,{playNextVideo:l}=e,r=!0;const s=()=>t(3,r=!1);return i.$$set=a=>{"title"in a&&t(0,n=a.title),"thumb"in a&&t(1,o=a.thumb),"playNextVideo"in a&&t(2,l=a.playNextVideo)},[n,o,l,r,s]}class cm extends ke{constructor(e){super(),ye(this,e,um,am,we,{title:0,thumb:1,playNextVideo:2},sm)}}const Uu=(i,e)=>Math.min(+(i+e).toFixed(2),1),ju=(i,e)=>Math.max(+(i-e).toFixed(2),0),Wu=(i,e,t)=>{const n=Uu(e,t);e<1&&i.actions.internal.setVolume(n)},qu=(i,e,t)=>{const n=ju(e,t);e>0&&i.actions.internal.setVolume(n)};function fm(i){Fe(i,"v-10kkmxz",".keyboard-controls.v-10kkmxz{position:absolute;left:0;right:0;top:0;bottom:0}")}function dm(i){let e,t,n,o;const l=i[20].default,r=En(l,i,i[19],null);return{c(){e=w("div"),r&&r.c(),u(e,"class","keyboard-controls v-10kkmxz"),u(e,"tabindex","0")},m(s,a){k(s,e,a),r&&r.m(e,null),i[21](e),t=!0,n||(o=[Ve(e,"keyup",i[12]),Ve(e,"keydown",i[11])],n=!0)},p(s,a){r&&r.p&&(!t||a[0]&524288)&&Ln(r,l,s,s[19],t?An(l,s[19],a,null):Vn(s[19]),null)},i(s){t||(m(r,s),t=!0)},o(s){p(r,s),t=!1},d(s){s&&y(e),r&&r.d(s),i[21](null),n=!1,Gt(o)}}}function mm(i,e,t){let n,o,l,r,s,a,c,f,h,g,{$$slots:v={},$$scope:b}=e,{isAds:A}=e,{hideContextMenu:S}=e,{toggleFullscreen:T}=e,{showHotKeyHelpers:C}=e,{showKeyMap:I}=e;const z=Et(),X=tn(),$=z.getLogger().createComponentLog("KeyboardControls component"),H=z.state.playbackState$;q(i,H,x=>t(25,o=x));const R=z.ads.playbackState;q(i,R,x=>t(24,n=x));const oe=z.state.positionExact$;q(i,oe,x=>t(30,c=x));const se=z.state.duration$;q(i,se,x=>t(29,a=x));const L=z.state.volume$;q(i,L,x=>t(33,g=x));const ce=z.ui.controls.disabledControls$;q(i,ce,x=>t(28,s=x));const J=z.state.muted$;q(i,J,x=>t(27,r=x));const U=z.state.currentSubtitle$;q(i,U,x=>t(26,l=x));const _=z.state.currentPlaybackRate$;q(i,_,x=>t(31,f=x));const K=z.state.availablePlaybackRates$;q(i,K,x=>t(32,h=x));let ue=0,_e=!0,he;const ae=()=>he==null?void 0:he.focus(),Ee=x=>(x!==_e&&(_e=x,ue=0),ue+=1,(X.controls.seekStepKeyboard+X.controls.seekStepKeyboard*ue)/1e3),Y=x=>{S();const Ae=x.code,B=!r0.has(Ae);if(x.ctrlKey&&B||x.altKey&&B||x.metaKey)return;const ee=o===rt.PlaybackState.PLAYING||o===rt.PlaybackState.PAUSED,ze=A&&(n===qt.PAUSED||n===qt.PLAYING),Ce=!ze&&!s.has(ht.TIMELINE);if(ee||ze)switch($({message:`key down, code: ${Ae}`}),Ae){case Ge.KeyJ:case Ge.ArrowLeft:{if(!Ce)break;if(x.ctrlKey||x.altKey){const ge=z.actions.internal.getPrevEpisode();z.actions.internal.seekToPrevEpisode(ge),ge&&C({type:Je.EPISODE_PREV,text:ge.text}),x.preventDefault()}else{const ge=x.shiftKey?Ee(!1):X.controls.seekStepKeyboard/1e3,Se=Math.max(c-ge,0);c>0&&(z.actions.internal.seekTime(Se,_t.SeekAction.DOUBLE_TAP),C({type:Je.BACKWARD_SEEK,text:ge.toString()}),x.preventDefault())}break}case Ge.KeyL:case Ge.ArrowRight:{if(!Ce)break;if(x.ctrlKey||x.altKey){const ge=z.actions.internal.getNextEpisode();z.actions.internal.seekToNextEpisode(ge),ge&&C({type:Je.EPISODE_NEXT,text:ge.text}),x.preventDefault()}else{const ge=x.shiftKey?Ee(!0):X.controls.seekStepKeyboard/1e3,Se=Math.min(c+ge,a);Math.round(c)<Math.round(a)&&(z.actions.internal.seekTime(Se,_t.SeekAction.DOUBLE_TAP),C({type:Je.FORWARD_SEEK,text:ge.toString()}),x.preventDefault())}break}case Ge.ArrowUp:{const ge=g,Se=X.controls.volumeStepKeyboard,Pe=ge<=1;if(Wu(z,ge,Se),Pe){const G=Math.round(Uu(ge,Se)*100).toString();C({type:Je.VOLUME,t:{key:"hotkey_helper_current_volume",value:G}})}x.preventDefault();break}case Ge.ArrowDown:{const ge=g,Se=X.controls.volumeStepKeyboard,Pe=ge>=0;if(qu(z,ge,Se),Pe){const G=Math.round(ju(ge,Se)*100).toString();C({type:Je.VOLUME,t:{key:"hotkey_helper_current_volume",value:G}})}x.preventDefault();break}case Ge.Comma:{if(x.shiftKey){z.actions.internal.decrementPlaybackRate();const ge=h.find(Se=>Se.value===f);C({type:Je.RATE_DOWN,text:ge==null?void 0:ge.displayValue}),x.preventDefault()}else{if(ze||o!==rt.PlaybackState.PAUSED)break;const ge=Math.max(c-X.controls.seekStepFrame/1e3,0);c>0&&(C({type:Je.BACKWARD_SEEK}),z.actions.internal.clearDelayedBufferingCheckTimeout(),z.actions.internal.seekTime(ge,_t.SeekAction.DOUBLE_TAP),x.preventDefault())}break}case Ge.Period:{if(x.shiftKey){z.actions.internal.incrementPlaybackRate();const ge=h.find(Se=>Se.value===f);C({type:Je.RATE_UP,text:ge==null?void 0:ge.displayValue}),x.preventDefault()}else{if(ze||o!==rt.PlaybackState.PAUSED)break;const ge=Math.min(c+X.controls.seekStepFrame/1e3,a);c<a&&(C({type:Je.FORWARD_SEEK}),z.actions.internal.clearDelayedBufferingCheckTimeout(),z.actions.internal.seekTime(ge,_t.SeekAction.DOUBLE_TAP),x.preventDefault())}break}case Ge.KeyK:case Ge.Space:s.has(ht.PLAY_BUTTON)||(z.actions.internal.togglePlay(),C({type:o===rt.PlaybackState.PLAYING?Je.PLAY:Je.STOP})),x.preventDefault();break;case Ge.KeyM:{C({type:r?Je.VOLUME:Je.MUTE}),z.actions.internal.toggleMuted(),x.preventDefault();break}case Ge.KeyF:T(),x.preventDefault();break;case Ge.KeyC:z.actions.internal.toggleSubtitle(),l.value!=="off"?C({type:Je.SUBTITLES_ON,text:l==null?void 0:l.displayValue}):C({type:Je.SUBTITLES_OFF}),x.preventDefault();break;case Ge.KeyI:z.actions.internal.togglePictureInPicture(),x.preventDefault();break;case Ge.Digit1:case Ge.Numpad1:C(),z.actions.internal.seekToPercent(.1,_t.SeekAction.DOUBLE_TAP),x.preventDefault();break;case Ge.Digit2:case Ge.Numpad2:C(),z.actions.internal.seekToPercent(.2,_t.SeekAction.DOUBLE_TAP),x.preventDefault();break;case Ge.Digit3:case Ge.Numpad3:C(),z.actions.internal.seekToPercent(.3,_t.SeekAction.DOUBLE_TAP),x.preventDefault();break;case Ge.Digit4:case Ge.Numpad4:C(),z.actions.internal.seekToPercent(.4,_t.SeekAction.DOUBLE_TAP),x.preventDefault();break;case Ge.Digit5:case Ge.Numpad5:C(),z.actions.internal.seekToPercent(.5,_t.SeekAction.DOUBLE_TAP),x.preventDefault();break;case Ge.Digit6:case Ge.Numpad6:C(),z.actions.internal.seekToPercent(.6,_t.SeekAction.DOUBLE_TAP),x.preventDefault();break;case Ge.Digit7:case Ge.Numpad7:C(),z.actions.internal.seekToPercent(.7,_t.SeekAction.DOUBLE_TAP),x.preventDefault();break;case Ge.Digit8:case Ge.Numpad8:C(),z.actions.internal.seekToPercent(.8,_t.SeekAction.DOUBLE_TAP),x.preventDefault();break;case Ge.Digit9:case Ge.Numpad9:C(),z.actions.internal.seekToPercent(.9,_t.SeekAction.DOUBLE_TAP),x.preventDefault();break;case Ge.Digit0:case Ge.Numpad0:C(),z.actions.internal.seekToPercent(0,_t.SeekAction.DOUBLE_TAP),x.preventDefault();break;case Ge.Slash:{x.shiftKey&&X.features.hotKeyMapModal&&(I(),x.preventDefault());break}case Ge.ShiftLeft:case Ge.ShiftRight:x.preventDefault();break;default:ie.checkNever(Ae);break}},V=x=>{const Ae=x.code;if(x.ctrlKey||x.altKey||x.metaKey)return;const B=o===rt.PlaybackState.PLAYING||o===rt.PlaybackState.PAUSED,ee=A&&(n===qt.PAUSED||n===qt.PLAYING);if(B||ee)switch(Ae){case Ge.ShiftLeft:case Ge.ShiftRight:ue=0;break}};function le(x){Ke[x?"unshift":"push"](()=>{he=x,t(0,he)})}return i.$$set=x=>{"isAds"in x&&t(13,A=x.isAds),"hideContextMenu"in x&&t(14,S=x.hideContextMenu),"toggleFullscreen"in x&&t(15,T=x.toggleFullscreen),"showHotKeyHelpers"in x&&t(16,C=x.showHotKeyHelpers),"showKeyMap"in x&&t(17,I=x.showKeyMap),"$$scope"in x&&t(19,b=x.$$scope)},[he,H,R,oe,se,L,ce,J,U,_,K,Y,V,A,S,T,C,I,ae,b,v,le]}class hm extends ke{constructor(e){super(),ye(this,e,mm,dm,we,{isAds:13,hideContextMenu:14,toggleFullscreen:15,showHotKeyHelpers:16,showKeyMap:17,focus:18},fm,[-1,-1])}get focus(){return this.$$.ctx[18]}}function vm(i){Fe(i,"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 pm(i){let e;return{c(){e=w("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(t,n){k(t,e,n)},p:Z,i:Z,o:Z,d(t){t&&y(e)}}}class Zu extends ke{constructor(e){super(),ye(this,e,null,pm,we,{},vm)}}function gm(i){let e,t,n,o,l,r,s,a,c,f,h,g,v;return{c(){e=M("svg"),t=M("g"),n=M("path"),o=M("path"),l=M("defs"),r=M("filter"),s=M("feFlood"),a=M("feColorMatrix"),c=M("feOffset"),f=M("feGaussianBlur"),h=M("feColorMatrix"),g=M("feBlend"),v=M("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(t,"filter","url(#a)"),u(s,"flood-opacity","0"),u(s,"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(h,"values","0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.16 0"),u(g,"in2","BackgroundImageFix"),u(g,"result","effect1_dropShadow_2422_111980"),u(v,"in","SourceGraphic"),u(v,"in2","effect1_dropShadow_2422_111980"),u(v,"result","shape"),u(r,"id","a"),u(r,"x",".5"),u(r,"y",".5"),u(r,"width","23"),u(r,"height","23"),u(r,"filterUnits","userSpaceOnUse"),u(r,"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(b,A){k(b,e,A),d(e,t),d(t,n),d(t,o),d(e,l),d(l,r),d(r,s),d(r,a),d(r,c),d(r,f),d(r,h),d(r,g),d(r,v)},p:Z,i:Z,o:Z,d(b){b&&y(e)}}}class bm extends ke{constructor(e){super(),ye(this,e,null,gm,we,{})}}function _m(i){Fe(i,"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 wm(i){let e,t,n,o,l,r,s,a,c,f;const h=i[8].default,g=En(h,i,i[7],null);return{c(){var v,b,A,S;e=w("button"),g&&g.c(),u(e,"class",t="btn "+i[0]+" v-1anemql"),u(e,"style",n=i[1]||null),e.disabled=o=(v=i[2])!=null?v:null,u(e,"aria-hidden",l=(b=i[4])!=null?b:null),u(e,"aria-label",r=(A=i[5])!=null?A:null),u(e,"data-testid",s=(S=i[3])!=null?S:null)},m(v,b){k(v,e,b),g&&g.m(e,null),a=!0,c||(f=[Ve(e,"pointerdown",ct(Pi(i[9]))),Ve(e,"click",ct(Pi(function(){ln(i[6])&&i[6].apply(this,arguments)})))],c=!0)},p(v,[b]){var A,S,T,C;i=v,g&&g.p&&(!a||b&128)&&Ln(g,h,i,i[7],a?An(h,i[7],b,null):Vn(i[7]),null),(!a||b&1&&t!==(t="btn "+i[0]+" v-1anemql"))&&u(e,"class",t),(!a||b&2&&n!==(n=i[1]||null))&&u(e,"style",n),(!a||b&4&&o!==(o=(A=i[2])!=null?A:null))&&(e.disabled=o),(!a||b&16&&l!==(l=(S=i[4])!=null?S:null))&&u(e,"aria-hidden",l),(!a||b&32&&r!==(r=(T=i[5])!=null?T:null))&&u(e,"aria-label",r),(!a||b&8&&s!==(s=(C=i[3])!=null?C:null))&&u(e,"data-testid",s)},i(v){a||(m(g,v),a=!0)},o(v){p(g,v),a=!1},d(v){v&&y(e),g&&g.d(v),c=!1,Gt(f)}}}function ym(i,e,t){let{$$slots:n={},$$scope:o}=e,{className:l=""}=e,{style:r=""}=e,{disabled:s=void 0}=e,{testId:a=void 0}=e,{ariaHidden:c=void 0}=e,{ariaLabel:f=void 0}=e,{click:h=ie.noop}=e;function g(v){go.call(this,i,v)}return i.$$set=v=>{"className"in v&&t(0,l=v.className),"style"in v&&t(1,r=v.style),"disabled"in v&&t(2,s=v.disabled),"testId"in v&&t(3,a=v.testId),"ariaHidden"in v&&t(4,c=v.ariaHidden),"ariaLabel"in v&&t(5,f=v.ariaLabel),"click"in v&&t(6,h=v.click),"$$scope"in v&&t(7,o=v.$$scope)},[l,r,s,a,c,f,h,o,n,g]}class vi extends ke{constructor(e){super(),ye(this,e,ym,wm,we,{className:0,style:1,disabled:2,testId:3,ariaHidden:4,ariaLabel:5,click:6},_m)}}function km(i){Fe(i,"v-vczw02",".modal-overlay.v-vczw02{position:absolute;top:0;bottom:0;left:0;right:0;background:transparent;display:flex;align-items:center;justify-content:center}.modal-container.v-vczw02{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-vczw02{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-vczw02{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-vczw02{overflow-y:auto;overflow-x:hidden;margin:8px 4px 8px 0;height:100%}.modal-scroll.v-vczw02::-webkit-scrollbar{width:8px}.modal-scroll.v-vczw02::-webkit-scrollbar-track{box-shadow:none;background-color:transparent;border-radius:4px;margin-right:2px}.modal-scroll.v-vczw02::-webkit-scrollbar-thumb{min-height:40px;border-radius:5px;background-color:#666;border:1px solid transparent;background-clip:padding-box}.modal-scroll.v-vczw02::-webkit-scrollbar-thumb:hover{background-color:#777}.modal-main.v-vczw02{margin:-8px -4px 0 0}")}function es(i){let e,t,n,o,l,r=i[2]&&ts(i);return{c(){e=w("div"),t=w("h3"),n=je(i[3]),o=N(),r&&r.c(),u(t,"class","modal-title v-vczw02"),u(e,"class","modal-header v-vczw02")},m(s,a){k(s,e,a),d(e,t),d(t,n),d(e,o),r&&r.m(e,null),l=!0},p(s,a){(!l||a&8)&&$e(n,s[3]),s[2]?r?(r.p(s,a),a&4&&m(r,1)):(r=ts(s),r.c(),m(r,1),r.m(e,null)):r&&(ve(),p(r,1,1,()=>{r=null}),pe())},i(s){l||(m(r),l=!0)},o(s){p(r),l=!1},d(s){s&&y(e),r&&r.d()}}}function ts(i){let e,t;return e=new vi({props:{click:i[0],testId:"close-modal",style:"padding: 0; height: 24px; width: 24px",ariaLabel:re("hotkey_map_modal_close_btn_text"),$$slots:{default:[Sm]},$$scope:{ctx:i}}}),{c(){F(e.$$.fragment)},m(n,o){O(e,n,o),t=!0},p(n,o){const l={};o&1&&(l.click=n[0]),o&32&&(l.$$scope={dirty:o,ctx:n}),e.$set(l)},i(n){t||(m(e.$$.fragment,n),t=!0)},o(n){p(e.$$.fragment,n),t=!1},d(n){D(e,n)}}}function Sm(i){let e,t;return e=new bm({}),{c(){F(e.$$.fragment)},m(n,o){O(e,n,o),t=!0},i(n){t||(m(e.$$.fragment,n),t=!0)},o(n){p(e.$$.fragment,n),t=!1},d(n){D(e,n)}}}function Pm(i){let e,t,n,o,l,r,s=i[1]&&es(i);const a=i[4].default,c=En(a,i,i[5],null);return{c(){e=w("div"),t=w("div"),s&&s.c(),n=N(),o=w("div"),l=w("div"),c&&c.c(),u(l,"class","modal-main v-vczw02"),u(o,"class","modal-scroll v-vczw02"),u(t,"class","modal-container v-vczw02"),u(e,"class","modal-overlay v-vczw02")},m(f,h){k(f,e,h),d(e,t),s&&s.m(t,null),d(t,n),d(t,o),d(o,l),c&&c.m(l,null),r=!0},p(f,[h]){f[1]?s?(s.p(f,h),h&2&&m(s,1)):(s=es(f),s.c(),m(s,1),s.m(t,n)):s&&(ve(),p(s,1,1,()=>{s=null}),pe()),c&&c.p&&(!r||h&32)&&Ln(c,a,f,f[5],r?An(a,f[5],h,null):Vn(f[5]),null)},i(f){r||(m(s),m(c,f),r=!0)},o(f){p(s),p(c,f),r=!1},d(f){f&&y(e),s&&s.d(),c&&c.d(f)}}}function Cm(i,e,t){let{$$slots:n={},$$scope:o}=e,{onClose:l}=e,{showHeader:r=!0}=e,{showCloseCross:s=!0}=e,{title:a}=e;return i.$$set=c=>{"onClose"in c&&t(0,l=c.onClose),"showHeader"in c&&t(1,r=c.showHeader),"showCloseCross"in c&&t(2,s=c.showCloseCross),"title"in c&&t(3,a=c.title),"$$scope"in c&&t(5,o=c.$$scope)},[l,r,s,a,n,o]}class Tm extends ke{constructor(e){super(),ye(this,e,Cm,Pm,we,{onClose:0,showHeader:1,showCloseCross:2,title:3},km)}}const Em=new Set(["BR"]),is=i=>{var e;const t=document.createElement("DIV");t.innerHTML=i;const n=t.querySelectorAll("*");let o=n.length;for(;o--;){const l=n[o],r=l.tagName;Em.has(r)||(e=l.parentElement)===null||e===void 0||e.removeChild(l)}return t.innerHTML};function Am(i){Fe(i,"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 ns(i,e,t){const n=i.slice();return n[5]=e[t].title,n[6]=e[t].items,n}function os(i,e,t){const n=i.slice();return n[9]=e[t].description,n[10]=e[t].value,n}function ls(i){let e,t,n=is(i[9])+"",o,l,r=i[10]+"",s,a;return{c(){e=w("li"),t=w("span"),o=N(),l=w("span"),s=je(r),a=N(),u(t,"class","hot-key-map-item-description v-quklnq"),u(l,"class","hot-key-map-item-value v-quklnq"),u(e,"class","hot-key-map-item v-quklnq")},m(c,f){k(c,e,f),d(e,t),t.innerHTML=n,d(e,o),d(e,l),d(l,s),d(e,a)},p(c,f){f&1&&n!==(n=is(c[9])+"")&&(t.innerHTML=n),f&1&&r!==(r=c[10]+"")&&$e(s,r)},d(c){c&&y(e)}}}function rs(i){let e,t,n=i[5]+"",o,l,r,s,a=Wt(i[6]),c=[];for(let f=0;f<a.length;f+=1)c[f]=ls(os(i,a,f));return{c(){e=w("div"),t=w("h5"),o=je(n),l=N(),r=w("ul");for(let f=0;f<c.length;f+=1)c[f].c();s=N(),u(t,"class","hot-key-map-group-title v-quklnq"),u(r,"class","hot-key-map-group-items v-quklnq"),u(e,"class","hot-key-map-group v-quklnq")},m(f,h){k(f,e,h),d(e,t),d(t,o),d(e,l),d(e,r);for(let g=0;g<c.length;g+=1)c[g]&&c[g].m(r,null);d(e,s)},p(f,h){if(h&1&&n!==(n=f[5]+"")&&$e(o,n),h&1){a=Wt(f[6]);let g;for(g=0;g<a.length;g+=1){const v=os(f,a,g);c[g]?c[g].p(v,h):(c[g]=ls(v),c[g].c(),c[g].m(r,null))}for(;g<c.length;g+=1)c[g].d(1);c.length=a.length}},d(f){f&&y(e),fn(c,f)}}}function Lm(i){let e,t=Wt(i[0].groups),n=[];for(let o=0;o<t.length;o+=1)n[o]=rs(ns(i,t,o));return{c(){e=w("div");for(let o=0;o<n.length;o+=1)n[o].c();u(e,"class","hot-key-map v-quklnq")},m(o,l){k(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=Wt(o[0].groups);let r;for(r=0;r<t.length;r+=1){const s=ns(o,t,r);n[r]?n[r].p(s,l):(n[r]=rs(s),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&&y(e),fn(n,o)}}}function Vm(i){let e,t;return e=new Tm({props:{title:i[0].title,onClose:i[2],$$slots:{default:[Lm]},$$scope:{ctx:i}}}),{c(){F(e.$$.fragment)},m(n,o){O(e,n,o),t=!0},p(n,[o]){const l={};o&1&&(l.title=n[0].title),o&8193&&(l.$$scope={dirty:o,ctx:n}),e.$set(l)},i(n){t||(m(e.$$.fragment,n),t=!0)},o(n){p(e.$$.fragment,n),t=!1},d(n){D(e,n)}}}function Im(i,e,t){let n;const o=Et(),{data:l,show:r}=o.ui.modals.hotKeyMap;return q(i,l,a=>t(0,n=a)),[n,l,()=>{r.set(!1)}]}class zm extends ke{constructor(e){super(),ye(this,e,Im,Vm,we,{},Am)}}function Mm(i){Fe(i,"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 Nm(i){let e,t;const n=i[1].default,o=En(n,i,i[0],null);return{c(){e=w("div"),o&&o.c(),u(e,"class","pillow v-1oe0j8n")},m(l,r){k(l,e,r),o&&o.m(e,null),t=!0},p(l,[r]){o&&o.p&&(!t||r&1)&&Ln(o,n,l,l[0],t?An(n,l[0],r,null):Vn(l[0]),null)},i(l){t||(m(o,l),t=!0)},o(l){p(o,l),t=!1},d(l){l&&y(e),o&&o.d(l)}}}function Rm(i,e,t){let{$$slots:n={},$$scope:o}=e;return i.$$set=l=>{"$$scope"in l&&t(0,o=l.$$scope)},[o,n]}class Bm extends ke{constructor(e){super(),ye(this,e,Rm,Nm,we,{},Mm)}}function Om(i){let e,t,n;return{c(){e=M("svg"),t=M("path"),n=M("path"),u(t,"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(t,"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,l){k(o,e,l),d(e,t),d(e,n)},p:Z,i:Z,o:Z,d(o){o&&y(e)}}}class Dm extends ke{constructor(e){super(),ye(this,e,null,Om,we,{})}}function Fm(i){let e,t,n;return{c(){e=M("svg"),t=M("path"),n=M("path"),u(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.537Z"),u(t,"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,l){k(o,e,l),d(e,t),d(e,n)},p:Z,i:Z,o:Z,d(o){o&&y(e)}}}class Hm extends ke{constructor(e){super(),ye(this,e,null,Fm,we,{})}}function Um(i){let e,t;return{c(){e=M("svg"),t=M("path"),u(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.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(t,"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){k(n,e,o),d(e,t)},p:Z,i:Z,o:Z,d(n){n&&y(e)}}}class jm extends ke{constructor(e){super(),ye(this,e,null,Um,we,{})}}function Wm(i){let e,t;return{c(){e=M("svg"),t=M("path"),u(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.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(t,"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){k(n,e,o),d(e,t)},p:Z,i:Z,o:Z,d(n){n&&y(e)}}}class Gu extends ke{constructor(e){super(),ye(this,e,null,Wm,we,{})}}function qm(i){let e,t,n;return{c(){e=M("svg"),t=M("path"),n=M("path"),u(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.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(t,"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,l){k(o,e,l),d(e,t),d(e,n)},p:Z,i:Z,o:Z,d(o){o&&y(e)}}}class Ku extends ke{constructor(e){super(),ye(this,e,null,qm,we,{})}}const to=i=>{switch(i){case rt.VideoQuality.Q_720P:return jm;case rt.VideoQuality.Q_1080P:return Gu;case rt.VideoQuality.Q_1440P:return Ku;case rt.VideoQuality.Q_2160P:return Dm;case rt.VideoQuality.Q_4320P:return Hm}};function Zm(i){Fe(i,"v-15tafwa",".icon.v-15tafwa{position:relative;width:24px;height:24px}.icon.v-15tafwa .pillow{position:absolute;top:1px;right:-9px}.icon.triple.v-15tafwa .pillow{right:-13px}")}function Gm(i){let e,t,n,o,l,r,s=i[1]&&ss(i);return{c(){e=w("div"),s&&s.c(),t=N(),n=M("svg"),o=M("path"),l=M("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(l,"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(l,"fill","#fff"),E(l,"hidden",!!i[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-15tafwa"),u(e,"aria-hidden","true"),E(e,"triple",i[2])},m(a,c){k(a,e,c),s&&s.m(e,null),d(e,t),d(e,n),d(n,o),d(n,l),r=!0},p(a,c){a[1]?s?(s.p(a,c),c&2&&m(s,1)):(s=ss(a),s.c(),m(s,1),s.m(e,t)):s&&(ve(),p(s,1,1,()=>{s=null}),pe()),(!r||c&2)&&E(l,"hidden",!!a[1]),(!r||c&4)&&E(e,"triple",a[2])},i(a){r||(m(s),r=!0)},o(a){p(s),r=!1},d(a){a&&y(e),s&&s.d()}}}function Km(i){let e,t;return{c(){e=M("svg"),t=M("path"),u(t,"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(t,"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){k(n,e,o),d(e,t)},p:Z,i:Z,o:Z,d(n){n&&y(e)}}}function ss(i){let e,t;return e=new Bm({props:{$$slots:{default:[Ym]},$$scope:{ctx:i}}}),{c(){F(e.$$.fragment)},m(n,o){O(e,n,o),t=!0},p(n,o){const l={};o&18&&(l.$$scope={dirty:o,ctx:n}),e.$set(l)},i(n){t||(m(e.$$.fragment,n),t=!0)},o(n){p(e.$$.fragment,n),t=!1},d(n){D(e,n)}}}function Ym(i){let e,t,n;var o=i[1];function l(r){return{}}return o&&(e=vn(o,l())),{c(){e&&F(e.$$.fragment),t=wt()},m(r,s){e&&O(e,r,s),k(r,t,s),n=!0},p(r,s){if(s&2&&o!==(o=r[1])){if(e){ve();const a=e;p(a.$$.fragment,1,0,()=>{D(a,1)}),pe()}o?(e=vn(o,l()),F(e.$$.fragment),m(e.$$.fragment,1),O(e,t.parentNode,t)):e=null}},i(r){n||(e&&m(e.$$.fragment,r),n=!0)},o(r){e&&p(e.$$.fragment,r),n=!1},d(r){r&&y(t),e&&D(e,r)}}}function Xm(i){let e,t,n,o;const l=[Km,Gm],r=[];function s(a,c){return a[0]?0:1}return e=s(i),t=r[e]=l[e](i),{c(){t.c(),n=wt()},m(a,c){r[e].m(a,c),k(a,n,c),o=!0},p(a,[c]){let f=e;e=s(a),e===f?r[e].p(a,c):(ve(),p(r[f],1,1,()=>{r[f]=null}),pe(),t=r[e],t?t.p(a,c):(t=r[e]=l[e](a),t.c()),m(t,1),t.m(n.parentNode,n))},i(a){o||(m(t),o=!0)},o(a){p(t),o=!1},d(a){a&&y(n),r[e].d(a)}}}function Qm(i,e,t){let n,{isMobile:o=!1}=e,{currentQuality:l=void 0}=e,r;return i.$$set=s=>{"isMobile"in s&&t(0,o=s.isMobile),"currentQuality"in s&&t(3,l=s.currentQuality)},i.$$.update=()=>{i.$$.dirty&8&&t(1,n=to(l)),i.$$.dirty&2&&t(2,r=!!n&&[Gu,Ku].includes(n))},[o,n,r,l]}class Yu extends ke{constructor(e){super(),ye(this,e,Qm,Xm,we,{isMobile:0,currentQuality:3},Zm)}}function Jm(i){let e,t;return{c(){e=M("svg"),t=M("path"),u(t,"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(t,"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){k(n,e,o),d(e,t)},p:Z,i:Z,o:Z,d(n){n&&y(e)}}}class Xu extends ke{constructor(e){super(),ye(this,e,null,Jm,we,{})}}function xm(i){let e,t;return{c(){e=M("svg"),t=M("path"),u(t,"fill-rule","evenodd"),u(t,"clip-rule","evenodd"),u(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 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(t,"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){k(n,e,o),d(e,t)},p:Z,i:Z,o:Z,d(n){n&&y(e)}}}class $m extends ke{constructor(e){super(),ye(this,e,null,xm,we,{})}}function eh(i){let e,t;return{c(){e=M("svg"),t=M("path"),u(t,"fill-rule","evenodd"),u(t,"clip-rule","evenodd"),u(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.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(t,"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){k(n,e,o),d(e,t)},p:Z,i:Z,o:Z,d(n){n&&y(e)}}}class th extends ke{constructor(e){super(),ye(this,e,null,eh,we,{})}}function ih(i){let e,t,n,o;return{c(){e=M("svg"),t=M("g"),n=M("path"),o=M("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(t,"fill","none"),u(t,"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(l,r){k(l,e,r),d(e,t),d(t,n),d(t,o)},p:Z,i:Z,o:Z,d(l){l&&y(e)}}}class nh extends ke{constructor(e){super(),ye(this,e,null,ih,we,{})}}function oh(i){Fe(i,"v-2dg73m",".reverted.v-2dg73m{transform:rotate(180deg)}")}function lh(i){let e,t,n;return{c(){e=M("svg"),t=M("path"),u(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.272L5.773 8z"),u(t,"fill",i[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=i[2]?"chevron-icon--right":"chevron-icon--left"),u(e,"class","v-2dg73m"),E(e,"reverted",i[2])},m(o,l){k(o,e,l),d(e,t)},p(o,l){l&1&&u(t,"fill",o[0]),l&4&&n!==(n=o[2]?"chevron-icon--right":"chevron-icon--left")&&u(e,"data-testid",n),l&4&&E(e,"reverted",o[2])},d(o){o&&y(e)}}}function rh(i){let e,t,n;return{c(){e=M("svg"),t=M("path"),u(t,"fill-rule","evenodd"),u(t,"clip-rule","evenodd"),u(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.272Z"),u(t,"fill",i[0]),u(t,"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=i[2]?"chevron-icon--down":"chevron-icon--up"),u(e,"class","v-2dg73m"),E(e,"reverted",i[2])},m(o,l){k(o,e,l),d(e,t)},p(o,l){l&1&&u(t,"fill",o[0]),l&4&&n!==(n=o[2]?"chevron-icon--down":"chevron-icon--up")&&u(e,"data-testid",n),l&4&&E(e,"reverted",o[2])},d(o){o&&y(e)}}}function sh(i){let e;function t(l,r){return l[1]?rh:lh}let n=t(i),o=n(i);return{c(){o.c(),e=wt()},m(l,r){o.m(l,r),k(l,e,r)},p(l,[r]){n===(n=t(l))&&o?o.p(l,r):(o.d(1),o=n(l),o&&(o.c(),o.m(e.parentNode,e)))},i:Z,o:Z,d(l){l&&y(e),o.d(l)}}}function ah(i,e,t){let{direction:n="left"}=e,{color:o="#fff"}=e,l,r;return i.$$set=s=>{"direction"in s&&t(3,n=s.direction),"color"in s&&t(0,o=s.color)},i.$$.update=()=>{i.$$.dirty&8&&(t(1,l=["up","down"].includes(n)),t(2,r=["right","down"].includes(n)))},[o,l,r,n]}class Tn extends ke{constructor(e){super(),ye(this,e,ah,sh,we,{direction:3,color:0},oh)}}function uh(i){let e,t;return{c(){e=M("svg"),t=M("path"),u(t,"fill-rule","evenodd"),u(t,"clip-rule","evenodd"),u(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-.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(t,"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){k(n,e,o),d(e,t)},p:Z,i:Z,o:Z,d(n){n&&y(e)}}}class ch extends ke{constructor(e){super(),ye(this,e,null,uh,we,{})}}function fh(i){let e,t;return{c(){e=M("svg"),t=M("path"),u(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"),u(t,"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){k(n,e,o),d(e,t)},p:Z,i:Z,o:Z,d(n){n&&y(e)}}}class To extends ke{constructor(e){super(),ye(this,e,null,fh,we,{})}}function dh(i){let e,t;return{c(){e=M("svg"),t=M("path"),u(t,"fill-rule","evenodd"),u(t,"clip-rule","evenodd"),u(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.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(t,"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){k(n,e,o),d(e,t)},p:Z,i:Z,o:Z,d(n){n&&y(e)}}}class mh extends ke{constructor(e){super(),ye(this,e,null,dh,we,{})}}function hh(i){let e,t;return{c(){e=M("svg"),t=M("path"),u(t,"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(t,"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){k(n,e,o),d(e,t)},p:Z,i:Z,o:Z,d(n){n&&y(e)}}}class vh extends ke{constructor(e){super(),ye(this,e,null,hh,we,{})}}function ph(i){Fe(i,"v-1v0zy8z","ul.v-1v0zy8z.v-1v0zy8z{margin:0;padding:0}.menu.v-1v0zy8z.v-1v0zy8z{background-color:rgba(17, 17, 17, 0.8);border-radius:8px;line-height:40px;transition:opacity 0.2s, visibility 0.2s;overflow:hidden}.container-mobile.v-1v0zy8z.v-1v0zy8z{width:100%}.menu-desktop.v-1v0zy8z.v-1v0zy8z{position:absolute;right:0;bottom:0}.menu-mobile.v-1v0zy8z.v-1v0zy8z{width:100%;background:var(--mobile-settings-bg);font-size:15px;line-height:50px}.menu-mobile.hidden.v-1v0zy8z.v-1v0zy8z{display:none}.menu-subList.v-1v0zy8z.v-1v0zy8z{min-width:134px;padding-bottom:0}.menu-subList-subtitles.v-1v0zy8z.v-1v0zy8z{min-width:164px}.menu-subList-traffic-saving.v-1v0zy8z.v-1v0zy8z{min-width:286px}.item.v-1v0zy8z.v-1v0zy8z{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-1v0zy8z.v-1v0zy8z{padding:0 14px}.item-quality.item-mobile.v-1v0zy8z.v-1v0zy8z,.item-traffic-saving.item-mobile.v-1v0zy8z.v-1v0zy8z,.item-helper-text.item-mobile.v-1v0zy8z.v-1v0zy8z{flex-direction:row-reverse}.item-helper-text.v-1v0zy8z.v-1v0zy8z{cursor:auto;pointer-events:none;white-space:normal;padding:7px 24px 7px 18px}.item-helper-text.v-1v0zy8z span.v-1v0zy8z{color:rgba(255, 255, 255, 0.48);line-height:18px;text-align:end}.item-helper-text.item-mobile.v-1v0zy8z.v-1v0zy8z{padding:7px 14px}.item-helper-text.item-mobile.v-1v0zy8z span.v-1v0zy8z{text-align:start}.quality-title-mobile.v-1v0zy8z.v-1v0zy8z{flex-grow:1}.item.v-1v0zy8z.v-1v0zy8z:hover{background-color:rgba(255, 255, 255, 0.08)}.item-mobile.v-1v0zy8z.v-1v0zy8z:hover{background:var(--mobile-settings-bg)}.menu-subList.v-1v0zy8z .item.v-1v0zy8z{color:rgba(255, 255, 255, 0.9)}.menu-subList.v-1v0zy8z .item.v-1v0zy8z:last-child{margin-bottom:4px}.menu-icon-wrapper.v-1v0zy8z.v-1v0zy8z{width:24px;height:24px;display:flex;align-items:center;justify-content:center;margin-right:16px}.menu-title.v-1v0zy8z.v-1v0zy8z{flex-grow:1;margin-right:24px;overflow:hidden;text-overflow:ellipsis}.menu-value.v-1v0zy8z.v-1v0zy8z{position:relative;opacity:0.7}.menu-valueIcon.v-1v0zy8z.v-1v0zy8z{position:absolute;top:-10px;right:-18px;width:15px}.menu-valueIcon-list.v-1v0zy8z.v-1v0zy8z{position:absolute;top:-7px;width:15px;right:6px}.menu-valueIcon.v-1v0zy8z svg,.menu-valueIcon-list.v-1v0zy8z svg{color:var(--blue-light)}.menu-divider.v-1v0zy8z.v-1v0zy8z{background-color:rgba(255, 255, 255, 0.3);height:1px;margin-bottom:4px}.menu-header.v-1v0zy8z.v-1v0zy8z{color:var(--white);cursor:pointer;justify-content:space-between;display:flex}.itemIcon.v-1v0zy8z.v-1v0zy8z{margin-right:auto;padding-right:12px;opacity:0.9}.items.v-1v0zy8z.v-1v0zy8z::-webkit-scrollbar{width:8px}.items.v-1v0zy8z.v-1v0zy8z::-webkit-scrollbar-track{box-shadow:none;background-color:#3a3a3a;border-radius:4px}.items.v-1v0zy8z.v-1v0zy8z::-webkit-scrollbar-thumb{min-height:40px;border-radius:5px;background-color:#666;border:1px solid transparent;background-clip:padding-box}.items.v-1v0zy8z.v-1v0zy8z::-webkit-scrollbar-thumb:hover{background-color:#777}.items-mobile.v-1v0zy8z.v-1v0zy8z{overflow-y:auto;max-height:160px;text-align:left}.close.v-1v0zy8z.v-1v0zy8z{position:relative;width:12px;height:12px;padding:12px;margin-right:-12px}.close.v-1v0zy8z.v-1v0zy8z:before,.close.v-1v0zy8z.v-1v0zy8z:after{position:absolute;left:18px;content:' ';height:12px;width:2px;background-color:var(--white)}.close.v-1v0zy8z.v-1v0zy8z:before{transform:rotate(45deg)}.close.v-1v0zy8z.v-1v0zy8z:after{transform:rotate(-45deg)}")}function as(i,e,t){const n=i.slice();return n[83]=e[t],n}function us(i,e,t){const n=i.slice();return n[86]=e[t],n}function cs(i,e,t){const n=i.slice();return n[89]=e[t],n}function fs(i){let e,t,n,o,l,r,s,a;return{c(){e=w("div"),t=w("div"),t.textContent=`${re("submenu_settings")}`,n=N(),o=w("div"),l=N(),r=w("div"),u(o,"class","close v-1v0zy8z"),u(e,"class","item menu-header v-1v0zy8z"),E(e,"item-mobile",i[4]),u(r,"class","menu-divider v-1v0zy8z")},m(c,f){k(c,e,f),d(e,t),d(e,n),d(e,o),k(c,l,f),k(c,r,f),s||(a=Ve(o,"click",ct(i[44])),s=!0)},p(c,f){f[0]&16&&E(e,"item-mobile",c[4])},d(c){c&&(y(e),y(l),y(r)),s=!1,a()}}}function ds(i){let e,t,n,o,l,r,s,a,c,f,h,g;n=new Yu({});let v=i[21]&&!i[4]&&ms(i);return{c(){e=w("li"),t=w("div"),F(n.$$.fragment),o=N(),l=w("div"),l.textContent=`${re("menu_quality")}`,r=N(),s=w("div"),a=je(i[12]),c=N(),v&&v.c(),u(t,"class","menu-icon-wrapper v-1v0zy8z"),u(l,"class","menu-title v-1v0zy8z"),u(s,"class","menu-value v-1v0zy8z"),u(e,"class","item v-1v0zy8z"),u(e,"role","menuitemradio"),u(e,"tabindex","0"),E(e,"item-mobile",i[4])},m(b,A){k(b,e,A),d(e,t),O(n,t,null),d(e,o),d(e,l),d(e,r),d(e,s),d(s,a),d(s,c),v&&v.m(s,null),f=!0,h||(g=Ve(e,"click",ct(i[45])),h=!0)},p(b,A){(!f||A[0]&4096)&&$e(a,b[12]),b[21]&&!b[4]?v?(v.p(b,A),A[0]&2097168&&m(v,1)):(v=ms(b),v.c(),m(v,1),v.m(s,null)):v&&(ve(),p(v,1,1,()=>{v=null}),pe()),(!f||A[0]&16)&&E(e,"item-mobile",b[4])},i(b){f||(m(n.$$.fragment,b),m(v),f=!0)},o(b){p(n.$$.fragment,b),p(v),f=!1},d(b){b&&y(e),D(n),v&&v.d(),h=!1,g()}}}function ms(i){let e,t,n;var o=i[21];function l(r){return{}}return o&&(t=vn(o,l())),{c(){e=w("div"),t&&F(t.$$.fragment),u(e,"class","menu-valueIcon v-1v0zy8z")},m(r,s){k(r,e,s),t&&O(t,e,null),n=!0},p(r,s){if(s[0]&2097152&&o!==(o=r[21])){if(t){ve();const a=t;p(a.$$.fragment,1,0,()=>{D(a,1)}),pe()}o?(t=vn(o,l()),F(t.$$.fragment),m(t.$$.fragment,1),O(t,e,null)):t=null}},i(r){n||(t&&m(t.$$.fragment,r),n=!0)},o(r){t&&p(t.$$.fragment,r),n=!1},d(r){r&&y(e),t&&D(t)}}}function hs(i){let e,t,n,o,l,r,s,a,c,f,h,g;return n=new nh({}),{c(){e=w("li"),t=w("div"),F(n.$$.fragment),o=N(),l=w("div"),l.textContent=`${re("menu_playback_rate")}`,r=N(),s=w("div"),a=je(i[22]),c=je("x"),u(t,"class","menu-icon-wrapper v-1v0zy8z"),u(l,"class","menu-title v-1v0zy8z"),u(s,"class","menu-value v-1v0zy8z"),u(e,"class","item v-1v0zy8z"),u(e,"role","menuitemradio"),u(e,"tabindex","0"),E(e,"item-mobile",i[4])},m(v,b){k(v,e,b),d(e,t),O(n,t,null),d(e,o),d(e,l),d(e,r),d(e,s),d(s,a),d(s,c),f=!0,h||(g=Ve(e,"click",ct(i[49])),h=!0)},p(v,b){(!f||b[0]&4194304)&&$e(a,v[22]),(!f||b[0]&16)&&E(e,"item-mobile",v[4])},i(v){f||(m(n.$$.fragment,v),f=!0)},o(v){p(n.$$.fragment,v),f=!1},d(v){v&&y(e),D(n),h=!1,g()}}}function vs(i){let e,t,n,o,l,r,s,a=i[23].displayValue+"",c,f,h,g;return n=new Xu({}),{c(){e=w("li"),t=w("div"),F(n.$$.fragment),o=N(),l=w("div"),l.textContent=`${re("subtitles_caption")}`,r=N(),s=w("div"),c=je(a),u(t,"class","menu-icon-wrapper v-1v0zy8z"),u(l,"class","menu-title v-1v0zy8z"),u(s,"class","menu-value v-1v0zy8z"),u(e,"class","item v-1v0zy8z"),u(e,"role","menuitemradio"),u(e,"tabindex","0"),E(e,"item-mobile",i[4])},m(v,b){k(v,e,b),d(e,t),O(n,t,null),d(e,o),d(e,l),d(e,r),d(e,s),d(s,c),f=!0,h||(g=Ve(e,"click",ct(i[51])),h=!0)},p(v,b){(!f||b[0]&8388608)&&a!==(a=v[23].displayValue+"")&&$e(c,a),(!f||b[0]&16)&&E(e,"item-mobile",v[4])},i(v){f||(m(n.$$.fragment,v),f=!0)},o(v){p(n.$$.fragment,v),f=!1},d(v){v&&y(e),D(n),h=!1,g()}}}function ps(i){let e,t,n,o,l,r,s,a=(i[24]?re("traffic_saving_on"):re("traffic_saving_off"))+"",c,f,h,g;return n=new th({}),{c(){e=w("li"),t=w("div"),F(n.$$.fragment),o=N(),l=w("div"),l.textContent=`${re("menu_traffic_saving")}`,r=N(),s=w("div"),c=je(a),u(t,"class","menu-icon-wrapper v-1v0zy8z"),u(l,"class","menu-title v-1v0zy8z"),u(s,"class","menu-value v-1v0zy8z"),u(e,"class","item v-1v0zy8z"),u(e,"role","menuitemradio"),u(e,"tabindex","0"),E(e,"item-mobile",i[4])},m(v,b){k(v,e,b),d(e,t),O(n,t,null),d(e,o),d(e,l),d(e,r),d(e,s),d(s,c),f=!0,h||(g=Ve(e,"click",ct(i[46])),h=!0)},p(v,b){(!f||b[0]&16777216)&&a!==(a=(v[24]?re("traffic_saving_on"):re("traffic_saving_off"))+"")&&$e(c,a),(!f||b[0]&16)&&E(e,"item-mobile",v[4])},i(v){f||(m(n.$$.fragment,v),f=!0)},o(v){p(n.$$.fragment,v),f=!1},d(v){v&&y(e),D(n),h=!1,g()}}}function gs(i){let e,t,n,o,l,r,s,a;return n=new $m({}),{c(){e=w("li"),t=w("div"),F(n.$$.fragment),o=N(),l=w("div"),l.textContent=`${re("download_video_caption")}`,u(t,"class","menu-icon-wrapper v-1v0zy8z"),u(l,"class","menu-title v-1v0zy8z"),u(e,"class","item v-1v0zy8z"),u(e,"role","menuitemradio"),u(e,"tabindex","0"),E(e,"item-mobile",i[4])},m(c,f){k(c,e,f),d(e,t),O(n,t,null),d(e,o),d(e,l),r=!0,s||(a=Ve(e,"click",ct(i[54])),s=!0)},p(c,f){(!r||f[0]&16)&&E(e,"item-mobile",c[4])},i(c){r||(m(n.$$.fragment,c),r=!0)},o(c){p(n.$$.fragment,c),r=!1},d(c){c&&y(e),D(n),s=!1,a()}}}function bs(i){let e,t,n,o,l,r,s,a,c,f,h,g,v,b,A,S=i[26].showSupport&&gh(i);return o=new mh({}),f=new vh({}),{c(){S&&S.c(),e=N(),t=w("li"),n=w("div"),F(o.$$.fragment),l=N(),r=w("div"),r.textContent=`${re("menu_copy_debug")}`,s=N(),a=w("li"),c=w("div"),F(f.$$.fragment),h=N(),g=w("div"),g.textContent=`${re("menu_debug_overlay")}`,u(n,"class","menu-icon-wrapper v-1v0zy8z"),u(r,"class","menu-title v-1v0zy8z"),u(t,"class","item item-mobile v-1v0zy8z"),u(t,"role","menuitemradio"),u(t,"tabindex","0"),u(c,"class","menu-icon-wrapper v-1v0zy8z"),u(g,"class","menu-title v-1v0zy8z"),u(a,"class","item item-mobile v-1v0zy8z"),u(a,"role","menuitemradio"),u(a,"tabindex","0")},m(T,C){S&&S.m(T,C),k(T,e,C),k(T,t,C),d(t,n),O(o,n,null),d(t,l),d(t,r),k(T,s,C),k(T,a,C),d(a,c),O(f,c,null),d(a,h),d(a,g),v=!0,b||(A=[Ve(t,"click",ct(i[56])),Ve(a,"click",ct(i[57]))],b=!0)},p(T,C){T[26].showSupport&&S.p(T,C)},i(T){v||(m(S),m(o.$$.fragment,T),m(f.$$.fragment,T),v=!0)},o(T){p(S),p(o.$$.fragment,T),p(f.$$.fragment,T),v=!1},d(T){T&&(y(e),y(t),y(s),y(a)),S&&S.d(T),D(o),D(f),b=!1,Gt(A)}}}function gh(i){let e,t,n,o,l,r,s,a;return n=new ch({}),{c(){e=w("li"),t=w("div"),F(n.$$.fragment),o=N(),l=w("div"),l.textContent=`${re("menu_report")}`,u(t,"class","menu-icon-wrapper v-1v0zy8z"),u(l,"class","menu-title v-1v0zy8z"),u(e,"class","item item-mobile v-1v0zy8z"),u(e,"role","menuitemradio"),u(e,"tabindex","0")},m(c,f){k(c,e,f),d(e,t),O(n,t,null),d(e,o),d(e,l),r=!0,s||(a=Ve(e,"click",ct(i[55])),s=!0)},p:Z,i(c){r||(m(n.$$.fragment,c),r=!0)},o(c){p(n.$$.fragment,c),r=!1},d(c){c&&y(e),D(n),s=!1,a()}}}function _s(i){let e,t,n;return t=new To({}),{c(){e=w("div"),F(t.$$.fragment),u(e,"class","itemIcon v-1v0zy8z")},m(o,l){k(o,e,l),O(t,e,null),n=!0},i(o){n||(m(t.$$.fragment,o),n=!0)},o(o){p(t.$$.fragment,o),n=!1},d(o){o&&y(e),D(t)}}}function ws(i){let e,t,n;var o=to(i[89].value);function l(r){return{}}return o&&(t=vn(o,l())),{c(){e=w("div"),t&&F(t.$$.fragment),u(e,"class","menu-valueIcon-list v-1v0zy8z")},m(r,s){k(r,e,s),t&&O(t,e,null),n=!0},p(r,s){if(s[0]&32&&o!==(o=to(r[89].value))){if(t){ve();const a=t;p(a.$$.fragment,1,0,()=>{D(a,1)}),pe()}o?(t=vn(o,l()),F(t.$$.fragment),m(t.$$.fragment,1),O(t,e,null)):t=null}},i(r){n||(t&&m(t.$$.fragment,r),n=!0)},o(r){t&&p(t.$$.fragment,r),n=!1},d(r){r&&y(e),t&&D(t)}}}function ys(i){let e,t,n,o=i[89].displayValue+"",l,r,s=!i[4]&&to(i[89].value),a,c,f,h,g,v=i[89].selected&&_s(),b=s&&ws(i);function A(){return i[71](i[89])}return{c(){e=w("li"),v&&v.c(),t=N(),n=w("div"),l=je(o),r=N(),b&&b.c(),a=N(),u(n,"class","v-1v0zy8z"),E(n,"quality-title-mobile",i[4]),u(e,"class","item item-quality v-1v0zy8z"),u(e,"data-value",c=i[89].value),u(e,"role","menuitemradio"),u(e,"tabindex","0"),E(e,"item-mobile",i[4])},m(S,T){k(S,e,T),v&&v.m(e,null),d(e,t),d(e,n),d(n,l),d(e,r),b&&b.m(e,null),d(e,a),f=!0,h||(g=Ve(e,"click",ct(A)),h=!0)},p(S,T){i=S,i[89].selected?v?T[0]&32&&m(v,1):(v=_s(),v.c(),m(v,1),v.m(e,t)):v&&(ve(),p(v,1,1,()=>{v=null}),pe()),(!f||T[0]&32)&&o!==(o=i[89].displayValue+"")&&$e(l,o),(!f||T[0]&16)&&E(n,"quality-title-mobile",i[4]),T[0]&48&&(s=!i[4]&&to(i[89].value)),s?b?(b.p(i,T),T[0]&48&&m(b,1)):(b=ws(i),b.c(),m(b,1),b.m(e,a)):b&&(ve(),p(b,1,1,()=>{b=null}),pe()),(!f||T[0]&32&&c!==(c=i[89].value))&&u(e,"data-value",c),(!f||T[0]&16)&&E(e,"item-mobile",i[4])},i(S){f||(m(v),m(b),f=!0)},o(S){p(v),p(b),f=!1},d(S){S&&y(e),v&&v.d(),b&&b.d(),h=!1,g()}}}function ks(i){let e,t,n;return t=new To({}),{c(){e=w("div"),F(t.$$.fragment),u(e,"class","itemIcon v-1v0zy8z")},m(o,l){k(o,e,l),O(t,e,null),n=!0},i(o){n||(m(t.$$.fragment,o),n=!0)},o(o){p(t.$$.fragment,o),n=!1},d(o){o&&y(e),D(t)}}}function Ss(i){let e,t,n,o=i[86].displayValue+"",l,r,s,a,c,f,h=i[86].selected&&ks();function g(){return i[73](i[86])}return{c(){e=w("li"),h&&h.c(),t=N(),n=w("div"),l=je(o),r=N(),u(n,"class","v-1v0zy8z"),E(n,"quality-title-mobile",i[4]),u(e,"class","item item-quality v-1v0zy8z"),u(e,"data-value",s=i[86].value),u(e,"role","menuitemradio"),u(e,"tabindex","0"),E(e,"item-mobile",i[4])},m(v,b){k(v,e,b),h&&h.m(e,null),d(e,t),d(e,n),d(n,l),d(e,r),a=!0,c||(f=Ve(e,"click",ct(g)),c=!0)},p(v,b){i=v,i[86].selected?h?b[0]&33554432&&m(h,1):(h=ks(),h.c(),m(h,1),h.m(e,t)):h&&(ve(),p(h,1,1,()=>{h=null}),pe()),(!a||b[0]&33554432)&&o!==(o=i[86].displayValue+"")&&$e(l,o),(!a||b[0]&16)&&E(n,"quality-title-mobile",i[4]),(!a||b[0]&33554432&&s!==(s=i[86].value))&&u(e,"data-value",s),(!a||b[0]&16)&&E(e,"item-mobile",i[4])},i(v){a||(m(h),a=!0)},o(v){p(h),a=!1},d(v){v&&y(e),h&&h.d(),c=!1,f()}}}function Ps(i){let e,t,n;return t=new To({}),{c(){e=w("div"),F(t.$$.fragment),u(e,"class","itemIcon v-1v0zy8z")},m(o,l){k(o,e,l),O(t,e,null),n=!0},i(o){n||(m(t.$$.fragment,o),n=!0)},o(o){p(t.$$.fragment,o),n=!1},d(o){o&&y(e),D(t)}}}function Cs(i){let e,t,n;return t=new To({}),{c(){e=w("div"),F(t.$$.fragment),u(e,"class","itemIcon v-1v0zy8z")},m(o,l){k(o,e,l),O(t,e,null),n=!0},i(o){n||(m(t.$$.fragment,o),n=!0)},o(o){p(t.$$.fragment,o),n=!1},d(o){o&&y(e),D(t)}}}function Ts(i){let e,t,n;return t=new To({}),{c(){e=w("div"),F(t.$$.fragment),u(e,"class","itemIcon v-1v0zy8z")},m(o,l){k(o,e,l),O(t,e,null),n=!0},i(o){n||(m(t.$$.fragment,o),n=!0)},o(o){p(t.$$.fragment,o),n=!1},d(o){o&&y(e),D(t)}}}function Es(i){let e,t,n,o=i[83].displayValue+"",l,r,s,a,c,f,h=i[83].selected&&Ts();function g(){return i[77](i[83])}return{c(){e=w("li"),h&&h.c(),t=N(),n=w("div"),l=je(o),r=N(),u(n,"class","v-1v0zy8z"),E(n,"quality-title-mobile",i[4]),u(e,"class","item item-quality v-1v0zy8z"),u(e,"data-value",s=i[83].value),u(e,"role","menuitemradio"),u(e,"tabindex","0"),E(e,"item-mobile",i[4])},m(v,b){k(v,e,b),h&&h.m(e,null),d(e,t),d(e,n),d(n,l),d(e,r),a=!0,c||(f=Ve(e,"click",ct(g)),c=!0)},p(v,b){i=v,i[83].selected?h?b[0]&8&&m(h,1):(h=Ts(),h.c(),m(h,1),h.m(e,t)):h&&(ve(),p(h,1,1,()=>{h=null}),pe()),(!a||b[0]&8)&&o!==(o=i[83].displayValue+"")&&$e(l,o),(!a||b[0]&16)&&E(n,"quality-title-mobile",i[4]),(!a||b[0]&8&&s!==(s=i[83].value))&&u(e,"data-value",s),(!a||b[0]&16)&&E(e,"item-mobile",i[4])},i(v){a||(m(h),a=!0)},o(v){p(h),a=!1},d(v){v&&y(e),h&&h.d(),c=!1,f()}}}function bh(i){let e,t,n,o,l,r,s,a,c,f,h,g,v,b,A,S,T,C,I,z,X,$,H,R,oe,se,L,ce,J,U,_,K,ue,_e,he,ae,Ee,Y,V,le,x,Ae,B,ee,ze,Ce,ge,Se,Pe,G,j,qe,tt,it,We,Me,st,Mt,Ne,Re,Rt,me,nt=i[4]&&fs(i),xe=i[20]&&ds(i),Qe=i[19]&&hs(i),Ze=i[18]&&vs(i),et=i[17]&&ps(i),He=i[16]&&gs(i),De=i[4]&&bs(i);v=new Tn({props:{direction:"left"}});let pt=Wt(i[5]),at=[];for(let de=0;de<pt.length;de+=1)at[de]=ys(cs(i,pt,de));const Kt=de=>p(at[de],1,1,()=>{at[de]=null});H=new Tn({props:{direction:"left"}});let At=Wt(i[25]),ot=[];for(let de=0;de<At.length;de+=1)ot[de]=Ss(us(i,At,de));const ti=de=>p(ot[de],1,1,()=>{ot[de]=null});ue=new Tn({props:{direction:"left"}});let dt=!i[24]&&Ps(),Xe=i[24]&&Cs();We=new Tn({props:{direction:"left"}});let Vt=Wt(i[3]),ut=[];for(let de=0;de<Vt.length;de+=1)ut[de]=Es(as(i,Vt,de));const pi=de=>p(ut[de],1,1,()=>{ut[de]=null});return{c(){e=w("div"),t=w("div"),nt&&nt.c(),n=N(),o=w("ul"),xe&&xe.c(),l=N(),Qe&&Qe.c(),r=N(),Ze&&Ze.c(),s=N(),et&&et.c(),a=N(),He&&He.c(),c=N(),De&&De.c(),f=N(),h=w("div"),g=w("div"),F(v.$$.fragment),b=N(),A=w("div"),A.textContent=`${re("submenu_quality")}`,S=N(),T=w("div"),C=N(),I=w("ul");for(let de=0;de<at.length;de+=1)at[de].c();z=N(),X=w("div"),$=w("div"),F(H.$$.fragment),R=N(),oe=w("div"),oe.textContent=`${re("submenu_playback_rate")}`,se=N(),L=w("div"),ce=N(),J=w("ul");for(let de=0;de<ot.length;de+=1)ot[de].c();U=N(),_=w("div"),K=w("div"),F(ue.$$.fragment),_e=N(),he=w("div"),he.textContent=`${re("submenu_traffic_saving")}`,ae=N(),Ee=w("div"),Y=N(),V=w("ul"),le=w("li"),dt&&dt.c(),x=N(),Ae=w("div"),Ae.textContent=`${re("traffic_saving_disable")}`,B=N(),ee=w("li"),Xe&&Xe.c(),ze=N(),Ce=w("div"),Ce.textContent=`${re("traffic_saving_enable")}`,ge=N(),Se=w("div"),Pe=N(),G=w("div"),j=w("span"),j.textContent=`${re("traffic_saving_helper_text")}`,qe=N(),tt=w("div"),it=w("div"),F(We.$$.fragment),Me=N(),st=w("div"),st.textContent=`${re("subtitles_caption")}`,Mt=N(),Ne=w("ul");for(let de=0;de<ut.length;de+=1)ut[de].c();u(o,"class","items v-1v0zy8z"),E(o,"items-mobile",i[4]),u(t,"class","menu v-1v0zy8z"),u(t,"role","menu"),E(t,"menu-desktop",!i[4]),E(t,"menu-mobile",i[4]),E(t,"hidden",!i[7]),u(g,"class","item menu-header v-1v0zy8z"),E(g,"item-mobile",i[4]),u(T,"class","menu-divider v-1v0zy8z"),u(I,"class","items v-1v0zy8z"),u(I,"style",i[13]),E(I,"items-mobile",i[4]),u(h,"class","menu menu-subList v-1v0zy8z"),E(h,"menu-desktop",!i[4]),E(h,"menu-mobile",i[4]),E(h,"hidden",!i[8]),u($,"class","item menu-header v-1v0zy8z"),E($,"item-mobile",i[4]),u(L,"class","menu-divider v-1v0zy8z"),u(J,"class","items v-1v0zy8z"),u(J,"style",i[14]),E(J,"items-mobile",i[4]),u(X,"class","menu menu-subList v-1v0zy8z"),E(X,"menu-desktop",!i[4]),E(X,"menu-mobile",i[4]),E(X,"hidden",!i[9]),u(K,"class","item menu-header v-1v0zy8z"),E(K,"item-mobile",i[4]),u(Ee,"class","menu-divider v-1v0zy8z"),u(Ae,"class","v-1v0zy8z"),E(Ae,"quality-title-mobile",i[4]),u(le,"class","item item-traffic-saving v-1v0zy8z"),u(le,"role","menuitemradio"),u(le,"tabindex","0"),E(le,"item-mobile",i[4]),u(Ce,"class","v-1v0zy8z"),E(Ce,"quality-title-mobile",i[4]),u(ee,"class","item item-traffic-saving v-1v0zy8z"),u(ee,"role","menuitemradio"),u(ee,"tabindex","0"),E(ee,"item-mobile",i[4]),u(V,"class","items v-1v0zy8z"),u(V,"style",i[15]),E(V,"items-mobile",i[4]),u(Se,"class","menu-divider v-1v0zy8z"),u(j,"class","v-1v0zy8z"),u(G,"class","item item-helper-text v-1v0zy8z"),E(G,"item-mobile",i[4]),u(_,"class","menu menu-subList menu-subList-traffic-saving v-1v0zy8z"),E(_,"menu-desktop",!i[4]),E(_,"menu-mobile",i[4]),E(_,"hidden",!i[11]),u(it,"class","item menu-header v-1v0zy8z"),E(it,"item-mobile",i[4]),u(Ne,"class","items v-1v0zy8z"),E(Ne,"items-mobile",i[4]),u(tt,"class","menu menu-subList menu-subList-subtitles v-1v0zy8z"),E(tt,"menu-desktop",!i[4]),E(tt,"menu-mobile",i[4]),E(tt,"hidden",!i[10]),u(e,"class","v-1v0zy8z"),E(e,"hidden",!i[6]),E(e,"container-mobile",i[4])},m(de,Te){k(de,e,Te),d(e,t),nt&&nt.m(t,null),d(t,n),d(t,o),xe&&xe.m(o,null),d(o,l),Qe&&Qe.m(o,null),d(o,r),Ze&&Ze.m(o,null),d(o,s),et&&et.m(o,null),d(o,a),He&&He.m(o,null),d(o,c),De&&De.m(o,null),d(e,f),d(e,h),d(h,g),O(v,g,null),d(g,b),d(g,A),i[70](g),d(h,S),d(h,T),d(h,C),d(h,I);for(let Ie=0;Ie<at.length;Ie+=1)at[Ie]&&at[Ie].m(I,null);d(e,z),d(e,X),d(X,$),O(H,$,null),d($,R),d($,oe),i[72]($),d(X,se),d(X,L),d(X,ce),d(X,J);for(let Ie=0;Ie<ot.length;Ie+=1)ot[Ie]&&ot[Ie].m(J,null);d(e,U),d(e,_),d(_,K),O(ue,K,null),d(K,_e),d(K,he),i[74](K),d(_,ae),d(_,Ee),d(_,Y),d(_,V),d(V,le),dt&&dt.m(le,null),d(le,x),d(le,Ae),d(V,B),d(V,ee),Xe&&Xe.m(ee,null),d(ee,ze),d(ee,Ce),d(_,ge),d(_,Se),d(_,Pe),d(_,G),d(G,j),d(e,qe),d(e,tt),d(tt,it),O(We,it,null),d(it,Me),d(it,st),d(tt,Mt),d(tt,Ne);for(let Ie=0;Ie<ut.length;Ie+=1)ut[Ie]&&ut[Ie].m(Ne,null);Re=!0,Rt||(me=[Ve(g,"click",ct(i[53])),Ve($,"click",ct(i[53])),Ve(K,"click",ct(i[53])),Ve(le,"click",ct(i[75])),Ve(ee,"click",ct(i[76])),Ve(it,"click",ct(i[53]))],Rt=!0)},p(de,Te){if(de[4]?nt?nt.p(de,Te):(nt=fs(de),nt.c(),nt.m(t,n)):nt&&(nt.d(1),nt=null),de[20]?xe?(xe.p(de,Te),Te[0]&1048576&&m(xe,1)):(xe=ds(de),xe.c(),m(xe,1),xe.m(o,l)):xe&&(ve(),p(xe,1,1,()=>{xe=null}),pe()),de[19]?Qe?(Qe.p(de,Te),Te[0]&524288&&m(Qe,1)):(Qe=hs(de),Qe.c(),m(Qe,1),Qe.m(o,r)):Qe&&(ve(),p(Qe,1,1,()=>{Qe=null}),pe()),de[18]?Ze?(Ze.p(de,Te),Te[0]&262144&&m(Ze,1)):(Ze=vs(de),Ze.c(),m(Ze,1),Ze.m(o,s)):Ze&&(ve(),p(Ze,1,1,()=>{Ze=null}),pe()),de[17]?et?(et.p(de,Te),Te[0]&131072&&m(et,1)):(et=ps(de),et.c(),m(et,1),et.m(o,a)):et&&(ve(),p(et,1,1,()=>{et=null}),pe()),de[16]?He?(He.p(de,Te),Te[0]&65536&&m(He,1)):(He=gs(de),He.c(),m(He,1),He.m(o,c)):He&&(ve(),p(He,1,1,()=>{He=null}),pe()),de[4]?De?(De.p(de,Te),Te[0]&16&&m(De,1)):(De=bs(de),De.c(),m(De,1),De.m(o,null)):De&&(ve(),p(De,1,1,()=>{De=null}),pe()),(!Re||Te[0]&16)&&E(o,"items-mobile",de[4]),(!Re||Te[0]&16)&&E(t,"menu-desktop",!de[4]),(!Re||Te[0]&16)&&E(t,"menu-mobile",de[4]),(!Re||Te[0]&128)&&E(t,"hidden",!de[7]),(!Re||Te[0]&16)&&E(g,"item-mobile",de[4]),Te[0]&48|Te[1]&65536){pt=Wt(de[5]);let Ie;for(Ie=0;Ie<pt.length;Ie+=1){const Lt=cs(de,pt,Ie);at[Ie]?(at[Ie].p(Lt,Te),m(at[Ie],1)):(at[Ie]=ys(Lt),at[Ie].c(),m(at[Ie],1),at[Ie].m(I,null))}for(ve(),Ie=pt.length;Ie<at.length;Ie+=1)Kt(Ie);pe()}if((!Re||Te[0]&8192)&&u(I,"style",de[13]),(!Re||Te[0]&16)&&E(I,"items-mobile",de[4]),(!Re||Te[0]&16)&&E(h,"menu-desktop",!de[4]),(!Re||Te[0]&16)&&E(h,"menu-mobile",de[4]),(!Re||Te[0]&256)&&E(h,"hidden",!de[8]),(!Re||Te[0]&16)&&E($,"item-mobile",de[4]),Te[0]&33554448|Te[1]&524288){At=Wt(de[25]);let Ie;for(Ie=0;Ie<At.length;Ie+=1){const Lt=us(de,At,Ie);ot[Ie]?(ot[Ie].p(Lt,Te),m(ot[Ie],1)):(ot[Ie]=Ss(Lt),ot[Ie].c(),m(ot[Ie],1),ot[Ie].m(J,null))}for(ve(),Ie=At.length;Ie<ot.length;Ie+=1)ti(Ie);pe()}if((!Re||Te[0]&16384)&&u(J,"style",de[14]),(!Re||Te[0]&16)&&E(J,"items-mobile",de[4]),(!Re||Te[0]&16)&&E(X,"menu-desktop",!de[4]),(!Re||Te[0]&16)&&E(X,"menu-mobile",de[4]),(!Re||Te[0]&512)&&E(X,"hidden",!de[9]),(!Re||Te[0]&16)&&E(K,"item-mobile",de[4]),de[24]?dt&&(ve(),p(dt,1,1,()=>{dt=null}),pe()):dt?Te[0]&16777216&&m(dt,1):(dt=Ps(),dt.c(),m(dt,1),dt.m(le,x)),(!Re||Te[0]&16)&&E(Ae,"quality-title-mobile",de[4]),(!Re||Te[0]&16)&&E(le,"item-mobile",de[4]),de[24]?Xe?Te[0]&16777216&&m(Xe,1):(Xe=Cs(),Xe.c(),m(Xe,1),Xe.m(ee,ze)):Xe&&(ve(),p(Xe,1,1,()=>{Xe=null}),pe()),(!Re||Te[0]&16)&&E(Ce,"quality-title-mobile",de[4]),(!Re||Te[0]&16)&&E(ee,"item-mobile",de[4]),(!Re||Te[0]&32768)&&u(V,"style",de[15]),(!Re||Te[0]&16)&&E(V,"items-mobile",de[4]),(!Re||Te[0]&16)&&E(G,"item-mobile",de[4]),(!Re||Te[0]&16)&&E(_,"menu-desktop",!de[4]),(!Re||Te[0]&16)&&E(_,"menu-mobile",de[4]),(!Re||Te[0]&2048)&&E(_,"hidden",!de[11]),(!Re||Te[0]&16)&&E(it,"item-mobile",de[4]),Te[0]&24|Te[1]&2097152){Vt=Wt(de[3]);let Ie;for(Ie=0;Ie<Vt.length;Ie+=1){const Lt=as(de,Vt,Ie);ut[Ie]?(ut[Ie].p(Lt,Te),m(ut[Ie],1)):(ut[Ie]=Es(Lt),ut[Ie].c(),m(ut[Ie],1),ut[Ie].m(Ne,null))}for(ve(),Ie=Vt.length;Ie<ut.length;Ie+=1)pi(Ie);pe()}(!Re||Te[0]&16)&&E(Ne,"items-mobile",de[4]),(!Re||Te[0]&16)&&E(tt,"menu-desktop",!de[4]),(!Re||Te[0]&16)&&E(tt,"menu-mobile",de[4]),(!Re||Te[0]&1024)&&E(tt,"hidden",!de[10]),(!Re||Te[0]&64)&&E(e,"hidden",!de[6]),(!Re||Te[0]&16)&&E(e,"container-mobile",de[4])},i(de){if(!Re){m(xe),m(Qe),m(Ze),m(et),m(He),m(De),m(v.$$.fragment,de);for(let Te=0;Te<pt.length;Te+=1)m(at[Te]);m(H.$$.fragment,de);for(let Te=0;Te<At.length;Te+=1)m(ot[Te]);m(ue.$$.fragment,de),m(dt),m(Xe),m(We.$$.fragment,de);for(let Te=0;Te<Vt.length;Te+=1)m(ut[Te]);Re=!0}},o(de){p(xe),p(Qe),p(Ze),p(et),p(He),p(De),p(v.$$.fragment,de),at=at.filter(Boolean);for(let Te=0;Te<at.length;Te+=1)p(at[Te]);p(H.$$.fragment,de),ot=ot.filter(Boolean);for(let Te=0;Te<ot.length;Te+=1)p(ot[Te]);p(ue.$$.fragment,de),p(dt),p(Xe),p(We.$$.fragment,de),ut=ut.filter(Boolean);for(let Te=0;Te<ut.length;Te+=1)p(ut[Te]);Re=!1},d(de){de&&y(e),nt&&nt.d(),xe&&xe.d(),Qe&&Qe.d(),Ze&&Ze.d(),et&&et.d(),He&&He.d(),De&&De.d(),D(v),i[70](null),fn(at,de),D(H),i[72](null),fn(ot,de),D(ue),i[74](null),dt&&dt.d(),Xe&&Xe.d(),D(We),fn(ut,de),Rt=!1,Gt(me)}}}const kl=18;function _h(i,e,t){let n,o,l,r,s,a,c,f,h,g,v,b,A,S,T,C,I,z,{supportLink:X}=e,{playerControlsHeight:$=0}=e,{returnFocus:H}=e;const R=Et(),oe=tn(),se=R.state.currentQuality$;q(i,se,Le=>t(69,A=Le));const L=R.state.availableQualities$;q(i,L,Le=>t(5,b=Le));const ce=R.state.autoQualityLimitingAvailable$;q(i,ce,Le=>t(63,s=Le));const J=R.state.isAutoQualityEnabled$;q(i,J,Le=>t(68,v=Le));const U=R.state.currentPlaybackRate$;q(i,U,Le=>t(22,T=Le));const _=R.state.availablePlaybackRates$;q(i,_,Le=>t(25,z=Le));const K=R.state.currentSubtitle$;q(i,K,Le=>t(23,C=Le));const ue=R.state.availableSubtitlesList$;q(i,ue,Le=>t(3,r=Le));const _e=R.state.canDownload,he=R.state.hasMpegSources$;q(i,he,Le=>t(64,a=Le));const ae=R.ui.settingsMenuVisible;q(i,ae,Le=>t(6,S=Le));const Ee=R.ui.isMobile;q(i,Ee,Le=>t(4,f=Le));const Y=R.ui.mobileNotReportControlHidden$;q(i,Y,Le=>t(61,o=Le));const V=R.state.canChangePlaybackSpeed$;q(i,V,Le=>t(62,l=Le));const le=R.ui.isFullscreen;q(i,le,Le=>t(67,g=Le));const x=R.state.trafficSavingEnabled$;q(i,x,Le=>t(24,I=Le));const Ae=R.ui.playerSize;q(i,Ae,Le=>t(66,h=Le));const B=R.ui.debugPanelVisible,ee=R.ui.playerSize;q(i,ee,Le=>t(65,c=Le));const ze=R.actions.internal.downloadVideo;let Ce=!0,ge=!1,Se=!1,Pe=!1,G=!1;function j(){H==null||H(),ae.set(!1)}function qe(){t(7,Ce=!1),t(8,ge=!0)}function tt(){t(7,Ce=!1),t(11,G=!0)}function it(Le){R.actions.internal.setQuality(Le),j()}function We(Le){R.actions.internal.setTrafficSavingEnabled(Le),j()}function Me(){t(7,Ce=!1),t(9,Se=!0)}function st(Le){R.actions.internal.setPlaybackRate(Le),j()}function Mt(){t(7,Ce=!1),t(10,Pe=!0)}function Ne(Le){R.actions.internal.setSubtitle(Le),j()}function Re(){t(7,Ce=!0),t(8,ge=!1),t(9,Se=!1),t(10,Pe=!1),t(11,G=!1)}function Rt(){ze(),j()}function me(){window.open(X,"_blank"),j(),R.actions.internal.pause()}function nt(){Rl(R.actions.internal.getDebugTextData()),j()}function xe(){B.set(!0),j()}function Qe(Le,si,ai){if(!Le)return"...";const Ht=si.find(Yt=>Yt.value===Le),Ci=Ht?Ht.displayValue:Le;return ai?Le===rt.VideoQuality.INVARIANT?re("auto_quality_invariant"):re("auto_quality",{actual:Ci}):Ci}let Ze,et,He,De,pt,at,Kt,At,ot,ti,dt,Xe;function Vt(Le){Ke[Le?"unshift":"push"](()=>{et=Le,t(0,et)})}const ut=Le=>it(Le.value);function pi(Le){Ke[Le?"unshift":"push"](()=>{He=Le,t(1,He)})}const de=Le=>st(Le.value);function Te(Le){Ke[Le?"unshift":"push"](()=>{De=Le,t(2,De)})}const Ie=()=>We(!1),Lt=()=>We(!0),ii=Le=>Ne(Le);return i.$$set=Le=>{"supportLink"in Le&&t(58,X=Le.supportLink),"playerControlsHeight"in Le&&t(59,$=Le.playerControlsHeight),"returnFocus"in Le&&t(60,H=Le.returnFocus)},i.$$.update=()=>{var Le,si,ai;if(i.$$.dirty[0]&64&&S&&(t(7,Ce=!0),t(8,ge=!1),t(9,Se=!1),t(10,Pe=!1),t(11,G=!1)),i.$$.dirty[2]&128&&t(21,n=to(A)),i.$$.dirty[0]&32|i.$$.dirty[2]&192&&t(12,Ze=Qe(A,b,v)),i.$$.dirty[0]&17|i.$$.dirty[1]&268435456|i.$$.dirty[2]&56)if(f&&g)t(13,pt=`max-height: ${Math.round(h.height*.6)}px`);else if(f)t(13,pt="");else{const Ht=c.height-kl-((Le=et==null?void 0:et.clientHeight)!=null?Le:0)-$;t(13,pt=`max-height: ${Ht}px; overflow: auto;`)}if(i.$$.dirty[0]&18|i.$$.dirty[1]&268435456|i.$$.dirty[2]&8)if(f)t(14,at="");else{const Ht=c.height-kl-((si=He==null?void 0:He.clientHeight)!=null?si:0)-$;t(14,at=`max-height: ${Ht}px; overflow: auto;`)}if(i.$$.dirty[0]&20|i.$$.dirty[1]&268435456|i.$$.dirty[2]&8)if(f)t(15,Kt="");else{const Ht=c.height-kl-((ai=De==null?void 0:De.clientHeight)!=null?ai:0)-$;t(15,Kt=`max-height: ${Ht}px; overflow: auto;`)}i.$$.dirty[1]&1073741824|i.$$.dirty[2]&4&&t(16,At=_e&&a&&!o),i.$$.dirty[1]&1073741824|i.$$.dirty[2]&2&&t(17,ot=oe.features.trafficSaving&&!o&&s),i.$$.dirty[0]&8|i.$$.dirty[1]&1073741824&&t(18,ti=r.length>0&&!o),i.$$.dirty[1]&1073741824|i.$$.dirty[2]&1&&t(19,dt=!!l&&!o),i.$$.dirty[1]&1073741824&&t(20,Xe=!o)},[et,He,De,r,f,b,S,Ce,ge,Se,Pe,G,Ze,pt,at,Kt,At,ot,ti,dt,Xe,n,T,C,I,z,oe,se,L,ce,J,U,_,K,ue,he,ae,Ee,Y,V,le,x,Ae,ee,j,qe,tt,it,We,Me,st,Mt,Ne,Re,Rt,me,nt,xe,X,$,H,o,l,s,a,c,h,g,v,A,Vt,ut,pi,de,Te,Ie,Lt,ii]}class Qu extends ke{constructor(e){super(),ye(this,e,_h,bh,we,{supportLink:58,playerControlsHeight:59,returnFocus:60},ph,[-1,-1,-1])}}function wh(i){Fe(i,"v-d9t49t",".settings-icon-wrapper.v-d9t49t{position:relative;width:24px}")}function yh(i){let e,t,n;return t=new Yu({props:{isMobile:i[1],currentQuality:i[2]}}),{c(){e=w("span"),F(t.$$.fragment),u(e,"class","settings-icon-wrapper v-d9t49t")},m(o,l){k(o,e,l),O(t,e,null),n=!0},p(o,l){const r={};l&2&&(r.isMobile=o[1]),l&4&&(r.currentQuality=o[2]),t.$set(r)},i(o){n||(m(t.$$.fragment,o),n=!0)},o(o){p(t.$$.fragment,o),n=!1},d(o){o&&y(e),D(t)}}}function kh(i){let e,t;return e=new vi({props:{testId:"btn-settings",click:i[6],ariaLabel:i[0],$$slots:{default:[yh]},$$scope:{ctx:i}}}),{c(){F(e.$$.fragment)},m(n,o){O(e,n,o),t=!0},p(n,[o]){const l={};o&1&&(l.ariaLabel=n[0]),o&518&&(l.$$scope={dirty:o,ctx:n}),e.$set(l)},i(n){t||(m(e.$$.fragment,n),t=!0)},o(n){p(e.$$.fragment,n),t=!1},d(n){D(e,n)}}}function Sh(i,e,t){let n,o,l;const r=Et(),s=r.state.currentQuality$;q(i,s,g=>t(2,l=g));const a=r.ui.settingsMenuVisible;q(i,a,g=>t(7,n=g));const c=r.ui.isMobile;q(i,c,g=>t(1,o=g));let f;function h(){a.set(!n)}return i.$$.update=()=>{i.$$.dirty&128&&t(0,f=re(n?"tooltip_settings_on":"tooltip_settings_off"))},[f,o,l,s,a,c,h,n]}class ql extends ke{constructor(e){super(),ye(this,e,Sh,kh,we,{},wh)}}function Ph(i){let e,t;return{c(){e=M("svg"),t=M("path"),u(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-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(t,"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){k(n,e,o),d(e,t)},p:Z,i:Z,o:Z,d(n){n&&y(e)}}}class Ch extends ke{constructor(e){super(),ye(this,e,null,Ph,we,{})}}function Th(i){let e,t;return e=new Xu({}),{c(){F(e.$$.fragment)},m(n,o){O(e,n,o),t=!0},i(n){t||(m(e.$$.fragment,n),t=!0)},o(n){p(e.$$.fragment,n),t=!1},d(n){D(e,n)}}}function Eh(i){let e,t;return e=new Ch({}),{c(){F(e.$$.fragment)},m(n,o){O(e,n,o),t=!0},i(n){t||(m(e.$$.fragment,n),t=!0)},o(n){p(e.$$.fragment,n),t=!1},d(n){D(e,n)}}}function Ah(i){let e,t,n,o;const l=[Eh,Th],r=[];function s(a,c){return a[0]?0:1}return e=s(i),t=r[e]=l[e](i),{c(){t.c(),n=wt()},m(a,c){r[e].m(a,c),k(a,n,c),o=!0},p(a,c){let f=e;e=s(a),e!==f&&(ve(),p(r[f],1,1,()=>{r[f]=null}),pe(),t=r[e],t||(t=r[e]=l[e](a),t.c()),m(t,1),t.m(n.parentNode,n))},i(a){o||(m(t),o=!0)},o(a){p(t),o=!1},d(a){a&&y(n),r[e].d(a)}}}function Lh(i){let e,t;return e=new vi({props:{testId:"btn-Subtitles",ariaLabel:i[2],click:i[1],$$slots:{default:[Ah]},$$scope:{ctx:i}}}),{c(){F(e.$$.fragment)},m(n,o){O(e,n,o),t=!0},p(n,[o]){const 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||(m(e.$$.fragment,n),t=!0)},o(n){p(e.$$.fragment,n),t=!1},d(n){D(e,n)}}}function Vh(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=()=>{i.$$.dirty&1&&t(2,l=re(n?"tooltip_subtitles_on":"tooltip_subtitles_off"))},[n,o,l]}class Ih extends ke{constructor(e){super(),ye(this,e,Vh,Lh,we,{isSubtitlesEnabled:0,click:1})}}function zh(i){Fe(i,"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 As(i){let e,t;return{c(){e=w("span"),t=je(i[3]),u(e,"class","duration v-19o2urr")},m(n,o){k(n,e,o),d(e,t)},p(n,o){o&8&&$e(t,n[3])},d(n){n&&y(e)}}}function Mh(i){let e,t,n,o,l,r=i[2]&&As(i);return{c(){e=w("div"),t=w("span"),n=je(i[4]),o=N(),r&&r.c(),u(t,"class","current v-19o2urr"),u(e,"class","time v-19o2urr"),Fn(()=>i[7].call(e)),E(e,"mobile",i[1])},m(s,a){k(s,e,a),d(e,t),d(t,n),d(e,o),r&&r.m(e,null),l=Wo(e,i[7].bind(e))},p(s,[a]){a&16&&$e(n,s[4]),s[2]?r?r.p(s,a):(r=As(s),r.c(),r.m(e,null)):r&&(r.d(1),r=null),a&2&&E(e,"mobile",s[1])},i:Z,o:Z,d(s){s&&y(e),r&&r.d(),l()}}}function Nh(i,e,t){let{isMobile:n=!1}=e,{duration:o}=e,{position:l}=e,{showDuration:r=!0}=e,{width:s}=e,a,c;function f(){s=this.clientWidth,t(0,s)}return i.$$set=h=>{"isMobile"in h&&t(1,n=h.isMobile),"duration"in h&&t(5,o=h.duration),"position"in h&&t(6,l=h.position),"showDuration"in h&&t(2,r=h.showDuration),"width"in h&&t(0,s=h.width)},i.$$.update=()=>{i.$$.dirty&32&&t(3,a=hn(o)),i.$$.dirty&64&&t(4,c=hn(l))},[s,n,r,a,c,o,l,f]}class Ju extends ke{constructor(e){super(),ye(this,e,Nh,Mh,we,{isMobile:1,duration:5,position:6,showDuration:2,width:0},zh)}}function Rh(i){Fe(i,"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 Bh(i){let e,t,n,o,l,r;return{c(){e=M("svg"),t=M("g"),n=M("path"),o=M("path"),l=M("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(l,"class","cross v-1n5yyua"),u(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"),u(t,"fill","#fff"),u(t,"fill-rule","evenodd"),u(e,"data-value",i[0]),u(e,"data-testid",r="volume-"+i[0]+"-icon"),u(e,"xmlns","http://www.w3.org/2000/svg"),u(e,"class","icon v-1n5yyua"),u(e,"aria-hidden","true")},m(s,a){k(s,e,a),d(e,t),d(t,n),d(t,o),d(t,l)},p(s,[a]){a&1&&u(e,"data-value",s[0]),a&1&&r!==(r="volume-"+s[0]+"-icon")&&u(e,"data-testid",r)},i:Z,o:Z,d(s){s&&y(e)}}}function Oh(i,e,t){let{volume:n=1}=e,{muted:o=!1}=e;const l=(s,a)=>a?"off":s>.5?"max":s>.2?"mid":s>0?"min":"off";let r;return i.$$set=s=>{"volume"in s&&t(1,n=s.volume),"muted"in s&&t(2,o=s.muted)},i.$$.update=()=>{i.$$.dirty&6&&t(0,r=l(n,o))},[r,n,o]}class Xo extends ke{constructor(e){super(),ye(this,e,Oh,Bh,we,{volume:1,muted:2},Rh)}}function Dh(i){Fe(i,"v-1jbbzcj",'.tooltip-wrapper.v-1jbbzcj{display:flex;flex-direction:column;min-width:0}.full-width.v-1jbbzcj{width:100%}.tooltip.v-1jbbzcj{position:absolute;opacity:0;visibility:hidden;transition:opacity 200ms, visibility 200ms;bottom:100%;left:0}.content.v-1jbbzcj{display:inline-block;padding:6px 10px;border-radius:3px;color:var(--white);background-color:rgba(41, 41, 41, .8)}.tooltip.active.v-1jbbzcj{opacity:1;visibility:visible}.tooltip-pointer.v-1jbbzcj{position:absolute;bottom:0;width:0;border-top:5px solid rgba(41, 41, 41, .8);border-right:5px solid transparent;border-left:5px solid transparent;content:" ";font-size:0;line-height:0}')}function Ls(i){let e,t,n,o,l,r,s;return{c(){e=w("div"),t=w("div"),n=je(i[1]),o=N(),l=w("div"),u(t,"class","content v-1jbbzcj"),u(l,"class","tooltip-pointer v-1jbbzcj"),u(l,"style",r=`transform: translate(${i[6]}px, ${i[8]}px);`),u(e,"class","tooltip v-1jbbzcj"),u(e,"style",s=`transform: translate(${i[5]}px, ${i[2]}px);`),E(e,"active",i[4])},m(a,c){k(a,e,c),d(e,t),d(t,n),d(e,o),d(e,l),i[17](e)},p(a,c){c&2&&$e(n,a[1]),c&64&&r!==(r=`transform: translate(${a[6]}px, ${a[8]}px);`)&&u(l,"style",r),c&36&&s!==(s=`transform: translate(${a[5]}px, ${a[2]}px);`)&&u(e,"style",s),c&16&&E(e,"active",a[4])},d(a){a&&y(e),i[17](null)}}}function Fh(i){let e,t,n,o,l;const r=i[16].default,s=En(r,i,i[15],null);let a=i[1]&&Ls(i);return{c(){e=w("div"),s&&s.c(),t=N(),a&&a.c(),u(e,"class","tooltip-wrapper v-1jbbzcj"),E(e,"full-width",i[3])},m(c,f){k(c,e,f),s&&s.m(e,null),d(e,t),a&&a.m(e,null),n=!0,o||(l=[Ve(e,"mouseenter",function(){ln(i[7]?i[11]:ie.noop)&&(i[7]?i[11]:ie.noop).apply(this,arguments)}),Ve(e,"mousemove",function(){ln(i[7]?i[11]:ie.noop)&&(i[7]?i[11]:ie.noop).apply(this,arguments)}),Ve(e,"mouseleave",i[12]),Ve(e,"mousedown",i[12]),Ve(e,"mouseup",function(){ln(i[7]?i[11]:ie.noop)&&(i[7]?i[11]:ie.noop).apply(this,arguments)})],o=!0)},p(c,[f]){i=c,s&&s.p&&(!n||f&32768)&&Ln(s,r,i,i[15],n?An(r,i[15],f,null):Vn(i[15]),null),i[1]?a?a.p(i,f):(a=Ls(i),a.c(),a.m(e,null)):a&&(a.d(1),a=null),(!n||f&8)&&E(e,"full-width",i[3])},i(c){n||(m(s,c),n=!0)},o(c){p(s,c),n=!1},d(c){c&&y(e),s&&s.d(c),a&&a.d(),o=!1,Gt(l)}}}const Vs=5,Bo=8;function Hh(i,e,t){let n,o,l,r,s=Z,a=()=>(s(),s=_o(h,_=>t(14,r=_)),h);i.$$.on_destroy.push(()=>s());let{$$slots:c={},$$scope:f}=e,{controlInfo:h=Ue(void 0)}=e;a();let{tooltipContent:g=""}=e,{initialTranslateXPx:v=0}=e,{initialTranslateYPx:b=0}=e,{isFullWidth:A=!1}=e,S=!1,T=0,C=0,I=Vs,z,X;const $=tn(),H=Et(),R=H.ui.playerSize;q(i,R,_=>t(21,l=_));const oe=H.ui.controls.tooltipPointerOffsetX;q(i,oe,_=>t(20,o=_));const se=()=>{t(4,S=!0);const _=X.clientWidth,K=l.width,ue=o-_/2+v,_e=o-n;t(5,T=_e-_/2+v),t(6,C=_/2-Vs);let he=0;ue<Bo&&(he=Bo-ue,t(6,C-=he),t(5,T+=he));let ae=0;ue+_>K-Bo&&(ae=ue+_-(K-Bo),t(6,C+=ae),t(5,T-=ae))},L=()=>{t(4,S=!1)},ce=()=>{z||(z=window.setTimeout(se,$.controls.hideTimeoutTooltips)),S&&se()},J=()=>{L(),window.clearTimeout(z),z=void 0};qo(()=>window.clearTimeout(z));function U(_){Ke[_?"unshift":"push"](()=>{X=_,t(7,X)})}return i.$$set=_=>{"controlInfo"in _&&a(t(0,h=_.controlInfo)),"tooltipContent"in _&&t(1,g=_.tooltipContent),"initialTranslateXPx"in _&&t(13,v=_.initialTranslateXPx),"initialTranslateYPx"in _&&t(2,b=_.initialTranslateYPx),"isFullWidth"in _&&t(3,A=_.isFullWidth),"$$scope"in _&&t(15,f=_.$$scope)},i.$$.update=()=>{var _;i.$$.dirty&16384&&(n=(_=r==null?void 0:r.positionStartX)!=null?_:0)},[h,g,b,A,S,T,C,X,I,R,oe,ce,J,v,r,f,c,U]}class xu extends ke{constructor(e){super(),ye(this,e,Hh,Fh,we,{controlInfo:0,tooltipContent:1,initialTranslateXPx:13,initialTranslateYPx:2,isFullWidth:3},Dh)}}function Uh(i){Fe(i,"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 jh(i){let e;const t=i[16].default,n=En(t,i,i[20],null);return{c(){n&&n.c()},m(o,l){n&&n.m(o,l),e=!0},p(o,l){n&&n.p&&(!e||l&1048576)&&Ln(n,t,o,o[20],e?An(t,o[20],l,null):Vn(o[20]),null)},i(o){e||(m(n,o),e=!0)},o(o){p(n,o),e=!1},d(o){n&&n.d(o)}}}function Wh(i){let e,t;return e=new xu({props:{controlInfo:i[4],tooltipContent:i[9],initialTranslateXPx:i[7],initialTranslateYPx:i[8],isFullWidth:i[3],$$slots:{default:[qh]},$$scope:{ctx:i}}}),{c(){F(e.$$.fragment)},m(n,o){O(e,n,o),t=!0},p(n,o){const l={};o&16&&(l.controlInfo=n[4]),o&512&&(l.tooltipContent=n[9]),o&128&&(l.initialTranslateXPx=n[7]),o&256&&(l.initialTranslateYPx=n[8]),o&8&&(l.isFullWidth=n[3]),o&1048576&&(l.$$scope={dirty:o,ctx:n}),e.$set(l)},i(n){t||(m(e.$$.fragment,n),t=!0)},o(n){p(e.$$.fragment,n),t=!1},d(n){D(e,n)}}}function qh(i){let e;const t=i[16].default,n=En(t,i,i[20],null);return{c(){n&&n.c()},m(o,l){n&&n.m(o,l),e=!0},p(o,l){n&&n.p&&(!e||l&1048576)&&Ln(n,t,o,o[20],e?An(t,o[20],l,null):Vn(o[20]),null)},i(o){e||(m(n,o),e=!0)},o(o){p(n,o),e=!1},d(o){n&&n.d(o)}}}function Zh(i){let e,t,n,o,l,r,s,a,c;const f=[Wh,jh],h=[];function g(v,b){return v[2]&&v[5]&&!v[10]?0:1}return t=g(i),n=h[t]=f[t](i),{c(){e=w("div"),n.c(),u(e,"class",o="btn-container "+i[1]+" v-p9r045"),u(e,"aria-hidden",l=i[6]||null),Fn(()=>i[19].call(e))},m(v,b){k(v,e,b),h[t].m(e,null),r=Wo(e,i[19].bind(e)),s=!0,a||(c=[Ve(e,"pointerdown",ct(Pi(i[17]))),Ve(e,"click",ct(Pi(i[18])))],a=!0)},p(v,[b]){let A=t;t=g(v),t===A?h[t].p(v,b):(ve(),p(h[A],1,1,()=>{h[A]=null}),pe(),n=h[t],n?n.p(v,b):(n=h[t]=f[t](v),n.c()),m(n,1),n.m(e,null)),(!s||b&2&&o!==(o="btn-container "+v[1]+" v-p9r045"))&&u(e,"class",o),(!s||b&64&&l!==(l=v[6]||null))&&u(e,"aria-hidden",l)},i(v){s||(m(n),s=!0)},o(v){p(n),s=!1},d(v){v&&y(e),h[t].d(),r(),a=!1,Gt(c)}}}function Gh(i,e,t){let n,o,{$$slots:l={},$$scope:r}=e,{className:s=""}=e,{disabled:a=!1}=e,{hasTooltip:c=!0}=e,{width:f}=e,{isFullWidthTooltip:h=!0}=e,{controlInfo:g=Ue(void 0)}=e,{tooltipContent:v=""}=e,{disabledTooltipContent:b=re("tooltip_button_disabled")}=e,{isAriaHidden:A=!1}=e,{initialTranslateXPx:S=0}=e,{initialTranslateYPx:T=-18}=e;const C=Et(),I=C.ui.isMobile;q(i,I,oe=>t(10,o=oe));const z=C.state.graphIsOpened$;q(i,z,oe=>t(15,n=oe));let X;function $(oe){go.call(this,i,oe)}function H(oe){go.call(this,i,oe)}function R(){f=this.clientWidth,t(0,f)}return i.$$set=oe=>{"className"in oe&&t(1,s=oe.className),"disabled"in oe&&t(13,a=oe.disabled),"hasTooltip"in oe&&t(2,c=oe.hasTooltip),"width"in oe&&t(0,f=oe.width),"isFullWidthTooltip"in oe&&t(3,h=oe.isFullWidthTooltip),"controlInfo"in oe&&t(4,g=oe.controlInfo),"tooltipContent"in oe&&t(5,v=oe.tooltipContent),"disabledTooltipContent"in oe&&t(14,b=oe.disabledTooltipContent),"isAriaHidden"in oe&&t(6,A=oe.isAriaHidden),"initialTranslateXPx"in oe&&t(7,S=oe.initialTranslateXPx),"initialTranslateYPx"in oe&&t(8,T=oe.initialTranslateYPx),"$$scope"in oe&&t(20,r=oe.$$scope)},i.$$.update=()=>{i.$$.dirty&57376&&(a?t(9,X=n?re("tooltip_disabled_when_graph_on"):b):t(9,X=v))},[f,s,c,h,g,v,A,S,T,X,o,I,z,a,b,n,l,$,H,R,r]}class Zt extends ke{constructor(e){super(),ye(this,e,Gh,Zh,we,{className:1,disabled:13,hasTooltip:2,width:0,isFullWidthTooltip:3,controlInfo:4,tooltipContent:5,disabledTooltipContent:14,isAriaHidden:6,initialTranslateXPx:7,initialTranslateYPx:8},Uh)}}function Kh(i){let e,t,n,o;return{c(){e=M("svg"),t=M("rect"),n=M("path"),o=M("path"),u(t,"width","20"),u(t,"height","20"),u(t,"rx","10"),u(t,"fill","#fff"),u(t,"fill-opacity",".24"),u(n,"fill-rule","evenodd"),u(n,"clip-rule","evenodd"),u(n,"d","M7.328 5H12.68c.258 0 .494 0 .692.016.213.018.446.057.676.175.33.168.597.435.765.765.117.23.157.463.175.676.016.198.016.434.016.692v5.348c0 .258 0 .494-.016.692a1.775 1.775 0 0 1-.175.677 1.75 1.75 0 0 1-.765.764c-.23.118-.463.158-.676.175-.198.016-.434.016-.692.016H7.328c-.258 0-.494 0-.692-.016a1.775 1.775 0 0 1-.677-.175 1.75 1.75 0 0 1-.764-.764 1.774 1.774 0 0 1-.175-.677c-.016-.198-.016-.434-.016-.692V7.324c0-.258 0-.494.016-.692.017-.213.057-.446.175-.676a1.75 1.75 0 0 1 .764-.765c.23-.118.464-.157.677-.175C6.834 5 7.07 5 7.328 5Z"),u(n,"fill","#fff"),E(n,"hidden",!i[0]),u(o,"fill-rule","evenodd"),u(o,"clip-rule","evenodd"),u(o,"d","M7.328 5H12.68c.258 0 .494 0 .692.016.213.018.446.057.676.175.33.168.597.435.765.765.117.23.157.463.175.676.016.198.016.434.016.692v5.348c0 .258 0 .494-.016.692a1.775 1.775 0 0 1-.175.677 1.75 1.75 0 0 1-.765.764c-.23.118-.463.158-.676.175-.198.016-.434.016-.692.016H7.328c-.258 0-.494 0-.692-.016a1.775 1.775 0 0 1-.677-.175 1.75 1.75 0 0 1-.764-.764 1.774 1.774 0 0 1-.175-.677c-.016-.198-.016-.434-.016-.692V7.324c0-.258 0-.494.016-.692.017-.213.057-.446.175-.676a1.75 1.75 0 0 1 .764-.765c.23-.118.464-.157.677-.175C6.834 5 7.07 5 7.328 5Zm-.693 1.53h.001-.001Zm.002-.001a.626.626 0 0 1 .121-.018c.13-.01.304-.011.596-.011h5.3c.292 0 .466 0 .596.011a.625.625 0 0 1 .12.018.25.25 0 0 1 .105.104.638.638 0 0 1 .018.121c.01.13.01.304.01.596v5.296c0 .292 0 .467-.01.596a.636.636 0 0 1-.018.12.25.25 0 0 1-.105.105.636.636 0 0 1-.12.018c-.13.01-.304.011-.596.011h-5.3c-.292 0-.467 0-.596-.011a.638.638 0 0 1-.12-.018.25.25 0 0 1-.105-.104.626.626 0 0 1-.018-.121 8.337 8.337 0 0 1-.011-.596V7.35c0-.292 0-.467.011-.596a.628.628 0 0 1 .018-.12.25.25 0 0 1 .104-.105Zm-.103.102v.001-.001Zm0 6.734v-.001.001Zm.1.101h.002-.001Zm6.739 0h-.002.002Zm.101-.1v-.002.001Zm0-6.735v.001-.001Zm-.103-.102h.002-.002Z"),u(o,"fill","#fff"),E(o,"hidden",i[0]),u(e,"width","20"),u(e,"height","20"),u(e,"fill","none"),u(e,"xmlns","http://www.w3.org/2000/svg")},m(l,r){k(l,e,r),d(e,t),d(e,n),d(e,o)},p(l,[r]){r&1&&E(n,"hidden",!l[0]),r&1&&E(o,"hidden",l[0])},i:Z,o:Z,d(l){l&&y(e)}}}function Yh(i,e,t){let{completed:n}=e;return i.$$set=o=>{"completed"in o&&t(0,n=o.completed)},[n]}class Xh extends ke{constructor(e){super(),ye(this,e,Yh,Kh,we,{completed:0})}}function Qh(i){Fe(i,"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 Jh(i){let e,t,n,o,l;return t=new Xh({props:{completed:!!i[0].completed}}),{c(){e=w("div"),F(t.$$.fragment),u(e,"class","interactive-episode-icon v-bklhpe"),u(e,"style",n=`left: ${i[0].from+i[0].width/2}%`),Fn(()=>i[3].call(e)),E(e,"disabled",i[1])},m(r,s){k(r,e,s),O(t,e,null),o=Wo(e,i[3].bind(e)),l=!0},p(r,s){const a={};s&1&&(a.completed=!!r[0].completed),t.$set(a),(!l||s&1&&n!==(n=`left: ${r[0].from+r[0].width/2}%`))&&u(e,"style",n),(!l||s&2)&&E(e,"disabled",r[1])},i(r){l||(m(t.$$.fragment,r),l=!0)},o(r){p(t.$$.fragment,r),l=!1},d(r){r&&y(e),D(t),o()}}}function xh(i){let e,t;return e=new Zt({props:{tooltipContent:re(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:[Jh]},$$scope:{ctx:i}}}),{c(){F(e.$$.fragment)},m(n,o){O(e,n,o),t=!0},p(n,[o]){const l={};o&1&&(l.tooltipContent=re(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||(m(e.$$.fragment,n),t=!0)},o(n){p(e.$$.fragment,n),t=!1},d(n){D(e,n)}}}function $h(i,e,t){let{videoEpisode:n}=e,{disabled:o}=e,l;function r(){l=this.clientWidth,t(2,l)}return i.$$set=s=>{"videoEpisode"in s&&t(0,n=s.videoEpisode),"disabled"in s&&t(1,o=s.disabled)},[n,o,l,r]}class e3 extends ke{constructor(e){super(),ye(this,e,$h,xh,we,{videoEpisode:0,disabled:1},Qh)}}function t3(i){Fe(i,"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 Is(i,e,t){const n=i.slice();return n[2]=e[t],n}function zs(i){let e,t,n,o,l,r,s,a,c;return{c(){e=w("div"),t=w("div"),n=w("div"),l=N(),r=w("div"),a=N(),u(n,"class","video-episode-loaded v-1h9p3m2"),u(n,"style",o=`transform: translateX(${i[2].loadedWidth/i[2].width*100}%)`),u(r,"class","video-episode-filled v-1h9p3m2"),u(r,"style",s=`transform: translateX(${i[2].filledWidth/i[2].width*100}%)`),E(r,"mobile",i[1]),u(t,"class","video-episode-inner v-1h9p3m2"),u(e,"class","video-episode v-1h9p3m2"),u(e,"style",c=`left: ${i[2].from}%; width: ${i[2].width}%`),E(e,"mobile",i[1])},m(f,h){k(f,e,h),d(e,t),d(t,n),d(t,l),d(t,r),d(e,a)},p(f,h){h&1&&o!==(o=`transform: translateX(${f[2].loadedWidth/f[2].width*100}%)`)&&u(n,"style",o),h&1&&s!==(s=`transform: translateX(${f[2].filledWidth/f[2].width*100}%)`)&&u(r,"style",s),h&2&&E(r,"mobile",f[1]),h&1&&c!==(c=`left: ${f[2].from}%; width: ${f[2].width}%`)&&u(e,"style",c),h&2&&E(e,"mobile",f[1])},d(f){f&&y(e)}}}function i3(i){let e,t=Wt(i[0]),n=[];for(let o=0;o<t.length;o+=1)n[o]=zs(Is(i,t,o));return{c(){e=w("div");for(let o=0;o<n.length;o+=1)n[o].c();u(e,"class","video-episodes-wrap v-1h9p3m2")},m(o,l){k(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=Wt(o[0]);let r;for(r=0;r<t.length;r+=1){const s=Is(o,t,r);n[r]?n[r].p(s,l):(n[r]=zs(s),n[r].c(),n[r].m(e,null))}for(;r<n.length;r+=1)n[r].d(1);n.length=t.length}},i:Z,o:Z,d(o){o&&y(e),fn(n,o)}}}function n3(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]}class o3 extends ke{constructor(e){super(),ye(this,e,n3,i3,we,{videoEpisodes:0,isMobile:1},t3)}}function l3(i){Fe(i,"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 Ms(i,e,t){const n=i.slice();return n[48]=e[t],n}function Ns(i){let e,t,n=Wt(i[21]),o=[];for(let r=0;r<n.length;r+=1)o[r]=Bs(Ms(i,n,r));const l=r=>p(o[r],1,1,()=>{o[r]=null});return{c(){e=w("div");for(let r=0;r<o.length;r+=1)o[r].c();u(e,"class","interactive-icons v-1golz1y"),E(e,"mobile",i[5]),E(e,"hidden",i[5]&&!i[20])},m(r,s){k(r,e,s);for(let a=0;a<o.length;a+=1)o[a]&&o[a].m(e,null);t=!0},p(r,s){if(s[0]&2097664){n=Wt(r[21]);let a;for(a=0;a<n.length;a+=1){const c=Ms(r,n,a);o[a]?(o[a].p(c,s),m(o[a],1)):(o[a]=Bs(c),o[a].c(),m(o[a],1),o[a].m(e,null))}for(ve(),a=n.length;a<o.length;a+=1)l(a);pe()}(!t||s[0]&32)&&E(e,"mobile",r[5]),(!t||s[0]&1048608)&&E(e,"hidden",r[5]&&!r[20])},i(r){if(!t){for(let s=0;s<n.length;s+=1)m(o[s]);t=!0}},o(r){o=o.filter(Boolean);for(let s=0;s<o.length;s+=1)p(o[s]);t=!1},d(r){r&&y(e),fn(o,r)}}}function Rs(i){let e,t;return e=new e3({props:{videoEpisode:i[48],disabled:i[9]}}),{c(){F(e.$$.fragment)},m(n,o){O(e,n,o),t=!0},p(n,o){const l={};o[0]&2097152&&(l.videoEpisode=n[48]),o[0]&512&&(l.disabled=n[9]),e.$set(l)},i(n){t||(m(e.$$.fragment,n),t=!0)},o(n){p(e.$$.fragment,n),t=!1},d(n){D(e,n)}}}function Bs(i){let e,t,n=i[48].interactive&&Rs(i);return{c(){n&&n.c(),e=wt()},m(o,l){n&&n.m(o,l),k(o,e,l),t=!0},p(o,l){o[48].interactive?n?(n.p(o,l),l[0]&2097152&&m(n,1)):(n=Rs(o),n.c(),m(n,1),n.m(e.parentNode,e)):n&&(ve(),p(n,1,1,()=>{n=null}),pe())},i(o){t||(m(n),t=!0)},o(o){p(n),t=!1},d(o){o&&y(e),n&&n.d(o)}}}function r3(i){let e,t,n,o,l,r;return{c(){e=w("div"),t=w("div"),o=N(),l=w("div"),u(t,"class","loaded v-1golz1y"),u(t,"style",n=`transform: translateX(${i[11]*100}%);`),u(l,"class","filled v-1golz1y"),u(l,"style",r=`transform: translateX(${i[12]*100}%);`),E(l,"active-live",i[4]),E(l,"ads",i[6]),u(e,"class","bars v-1golz1y")},m(s,a){k(s,e,a),d(e,t),d(e,o),d(e,l)},p(s,a){a[0]&2048&&n!==(n=`transform: translateX(${s[11]*100}%);`)&&u(t,"style",n),a[0]&4096&&r!==(r=`transform: translateX(${s[12]*100}%);`)&&u(l,"style",r),a[0]&16&&E(l,"active-live",s[4]),a[0]&64&&E(l,"ads",s[6])},i:Z,o:Z,d(s){s&&y(e)}}}function s3(i){let e,t;return e=new o3({props:{videoEpisodes:i[21],isMobile:i[5]}}),{c(){F(e.$$.fragment)},m(n,o){O(e,n,o),t=!0},p(n,o){const l={};o[0]&2097152&&(l.videoEpisodes=n[21]),o[0]&32&&(l.isMobile=n[5]),e.$set(l)},i(n){t||(m(e.$$.fragment,n),t=!0)},o(n){p(e.$$.fragment,n),t=!1},d(n){D(e,n)}}}function a3(i){let e,t,n,o,l,r,s,a,c,f,h,g,v,b=i[8]&&Ns(i);const A=[s3,r3],S=[];function T(C,I){return C[21].length?0:1}return n=T(i),o=S[n]=A[n](i),{c(){var C;b&&b.c(),e=N(),t=w("div"),o.c(),l=N(),r=w("div"),s=w("div"),u(s,"class","handle v-1golz1y"),E(s,"active-live",i[4]),u(r,"class","handleWrap v-1golz1y"),u(r,"style",a=`transform: translateX(${i[13]*100}%);`),E(r,"hidden",i[10]),u(t,"class",c="slider "+i[0]+" v-1golz1y"),u(t,"aria-label",i[14]),u(t,"aria-valuemin",i[15]),u(t,"aria-valuemax",i[16]),u(t,"aria-valuenow",i[17]),u(t,"aria-valuetext",i[18]),u(t,"role","slider"),u(t,"tabindex","0"),u(t,"data-testid",f=(C=i[1])!=null?C:null),E(t,"disabled",i[9]),E(t,"slider-dragging",i[20]),E(t,"hidden",i[2]),E(t,"slider-vertical",i[3]),E(t,"no-handle",i[10]),E(t,"square",i[7])},m(C,I){b&&b.m(C,I),k(C,e,I),k(C,t,I),S[n].m(t,null),d(t,l),d(t,r),d(r,s),i[42](t),h=!0,g||(v=[Ve(t,"pointerdown",Pi(i[22])),Ve(t,"pointermove",Pi(i[23])),Ve(t,"pointerup",Pi(i[24])),Ve(t,"pointerenter",Pi(i[25])),Ve(t,"pointerleave",Pi(i[26])),Ve(t,"click",ct(ie.noop)),Ve(t,"wheel",i[27])],g=!0)},p(C,I){var X;C[8]?b?(b.p(C,I),I[0]&256&&m(b,1)):(b=Ns(C),b.c(),m(b,1),b.m(e.parentNode,e)):b&&(ve(),p(b,1,1,()=>{b=null}),pe());let z=n;n=T(C),n===z?S[n].p(C,I):(ve(),p(S[z],1,1,()=>{S[z]=null}),pe(),o=S[n],o?o.p(C,I):(o=S[n]=A[n](C),o.c()),m(o,1),o.m(t,l)),(!h||I[0]&16)&&E(s,"active-live",C[4]),(!h||I[0]&8192&&a!==(a=`transform: translateX(${C[13]*100}%);`))&&u(r,"style",a),(!h||I[0]&1024)&&E(r,"hidden",C[10]),(!h||I[0]&1&&c!==(c="slider "+C[0]+" v-1golz1y"))&&u(t,"class",c),(!h||I[0]&16384)&&u(t,"aria-label",C[14]),(!h||I[0]&32768)&&u(t,"aria-valuemin",C[15]),(!h||I[0]&65536)&&u(t,"aria-valuemax",C[16]),(!h||I[0]&131072)&&u(t,"aria-valuenow",C[17]),(!h||I[0]&262144)&&u(t,"aria-valuetext",C[18]),(!h||I[0]&2&&f!==(f=(X=C[1])!=null?X:null))&&u(t,"data-testid",f),(!h||I[0]&513)&&E(t,"disabled",C[9]),(!h||I[0]&1048577)&&E(t,"slider-dragging",C[20]),(!h||I[0]&5)&&E(t,"hidden",C[2]),(!h||I[0]&9)&&E(t,"slider-vertical",C[3]),(!h||I[0]&1025)&&E(t,"no-handle",C[10]),(!h||I[0]&129)&&E(t,"square",C[7])},i(C){h||(m(b),m(o),h=!0)},o(C){p(b),p(o),h=!1},d(C){C&&(y(e),y(t)),b&&b.d(C),S[n].d(),i[42](null),g=!1,Gt(v)}}}function u3(i,e,t){let n,o,{className:l=""}=e,{testId:r=void 0}=e,{isHidden:s=!1}=e,{isVertical:a=!1}=e,{isActiveLive:c=!1}=e,{isMobile:f=!1}=e,{isAds:h=!1}=e,{squareBorders:g=!1}=e,{videoEpisodes:v=[]}=e,{withWheelHandler:b=!1}=e,{isInteractive:A=!1}=e,{disabled:S=!1}=e,{hideHandel:T=!1}=e,C,I,{onPointerDown:z=ie.noop}=e,{onHandleMove:X=ie.noop}=e,{onPointerUp:$=ie.noop}=e,{onPointerEnter:H=ie.noop}=e,{onPointerMove:R=ie.noop}=e,{onPointerLeave:oe=ie.noop}=e,{onWheelUp:se=ie.noop}=e,{onWheelDown:L=ie.noop}=e,{onWheelLeft:ce=ie.noop}=e,{onWheelRight:J=ie.noop}=e,{loadedProgress:U=0}=e,{filledProgress:_=0}=e,{handleProgress:K=0}=e,{ariaLabel:ue=""}=e,{ariaValueMin:_e=void 0}=e,{ariaValueMax:he=void 0}=e,{ariaValueNow:ae=void 0}=e,{ariaValueText:Ee=""}=e;const Y=tn();let V=!1,le;function x(j){if(V)return;t(20,V=!0),I=C.getBoundingClientRect();const qe=ge(j.clientX,j.clientY);z(qe),C.setPointerCapture(j.pointerId)}function Ae(j){const qe=ge(j.clientX,j.clientY),tt=Se(j.clientX);R(qe,tt,I.width),V&&X(qe)}function B(j){if(!V)return;t(20,V=!1);const qe=ge(j.clientX,j.clientY);$(qe)}function ee(j){I=C.getBoundingClientRect();const qe=ge(j.clientX,j.clientY),tt=Se(j.clientX);H(qe,tt,I.width)}function ze(){oe()}function Ce(j){b&&(j.preventDefault(),j.deltaY<0?se():j.deltaY>0?L():j.deltaX>0?J():ce())}function ge(j,qe){return a?Math.max(0,Math.min(1,(I.height-(qe-I.top))/I.height)):Math.min(Math.max(j-I.x,0),I.width)/I.width}function Se(j){return Math.min(Math.max(j-I.x,0),I.width)}function Pe(j,qe){const tt=Y.features.episodesClustering&&!A?Y.episodeMinWidthPc:0,it=[];let We=0,Me=0,st=0;for(let Re=1;Re<v.length;Re++)Me=v[Re].time/le*100,Me-We>tt&&(it.push({from:We,width:Math.max(0,Me-We),loadedWidth:Math.max(0,Math.min(Me,j)-We),filledWidth:Math.max(0,Math.min(Me,qe)-We),interactive:v[Re-1].interactive,completed:v[Re-1].completed}),We=v[Re].time/le*100,st++);const Mt={from:We,width:Math.max(0,100-We),loadedWidth:Math.max(0,Math.min(j,100)-We),filledWidth:Math.max(0,Math.min(qe,100)-We),interactive:v[st].interactive,completed:v[st].completed};100-We<tt?(st-=1,it[st].width+=100-We,it[st].loadedWidth+=Math.max(0,Math.min(j,100)-We),it[st].filledWidth+=Math.max(0,Math.min(qe,100)-We)):it[st]=Mt;const Ne=v[0].time;if(Ne!==0){const Re=Ne/le*100;it.unshift({from:0,width:Re,loadedWidth:Math.min(Re,j),filledWidth:Math.min(Re,qe)})}return it}function G(j){Ke[j?"unshift":"push"](()=>{C=j,t(19,C)})}return i.$$set=j=>{"className"in j&&t(0,l=j.className),"testId"in j&&t(1,r=j.testId),"isHidden"in j&&t(2,s=j.isHidden),"isVertical"in j&&t(3,a=j.isVertical),"isActiveLive"in j&&t(4,c=j.isActiveLive),"isMobile"in j&&t(5,f=j.isMobile),"isAds"in j&&t(6,h=j.isAds),"squareBorders"in j&&t(7,g=j.squareBorders),"videoEpisodes"in j&&t(28,v=j.videoEpisodes),"withWheelHandler"in j&&t(29,b=j.withWheelHandler),"isInteractive"in j&&t(8,A=j.isInteractive),"disabled"in j&&t(9,S=j.disabled),"hideHandel"in j&&t(10,T=j.hideHandel),"onPointerDown"in j&&t(30,z=j.onPointerDown),"onHandleMove"in j&&t(31,X=j.onHandleMove),"onPointerUp"in j&&t(32,$=j.onPointerUp),"onPointerEnter"in j&&t(33,H=j.onPointerEnter),"onPointerMove"in j&&t(34,R=j.onPointerMove),"onPointerLeave"in j&&t(35,oe=j.onPointerLeave),"onWheelUp"in j&&t(36,se=j.onWheelUp),"onWheelDown"in j&&t(37,L=j.onWheelDown),"onWheelLeft"in j&&t(38,ce=j.onWheelLeft),"onWheelRight"in j&&t(39,J=j.onWheelRight),"loadedProgress"in j&&t(11,U=j.loadedProgress),"filledProgress"in j&&t(12,_=j.filledProgress),"handleProgress"in j&&t(13,K=j.handleProgress),"ariaLabel"in j&&t(14,ue=j.ariaLabel),"ariaValueMin"in j&&t(15,_e=j.ariaValueMin),"ariaValueMax"in j&&t(16,he=j.ariaValueMax),"ariaValueNow"in j&&t(17,ae=j.ariaValueNow),"ariaValueText"in j&&t(18,Ee=j.ariaValueText)},i.$$.update=()=>{var j;i.$$.dirty[0]&65536&&t(40,le=he!=null?he:0),i.$$.dirty[0]&268435456|i.$$.dirty[1]&512&&t(41,n=((j=v[v.length-1])==null?void 0:j.time)<le),i.$$.dirty[0]&268441600|i.$$.dirty[1]&1536&&t(21,o=v.length&&n&&le?Pe(U*100,_*100):[])},[l,r,s,a,c,f,h,g,A,S,T,U,_,K,ue,_e,he,ae,Ee,C,V,o,x,Ae,B,ee,ze,Ce,v,b,z,X,$,H,R,oe,se,L,ce,J,le,n,G]}class Zl extends ke{constructor(e){super(),ye(this,e,u3,a3,we,{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},l3,[-1,-1])}}const un=(i,e)=>eo[i]>=eo[e],c3=(i,e)=>eo[i]<eo[e],$u=(i,e)=>eo[i]<=eo[e],f3=i=>i>Xn.L?exports.GridTypes.XL:i>Xn.M?exports.GridTypes.L:i>Xn.S?exports.GridTypes.M:i>Xn.XS?exports.GridTypes.S:exports.GridTypes.XS;function d3(i){Fe(i,"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 m3(i){let e,t;return e=new Xo({props:{volume:i[4],muted:i[2]}}),{c(){F(e.$$.fragment)},m(n,o){O(e,n,o),t=!0},p(n,o){const l={};o[0]&16&&(l.volume=n[4]),o[0]&4&&(l.muted=n[2]),e.$set(l)},i(n){t||(m(e.$$.fragment,n),t=!0)},o(n){p(e.$$.fragment,n),t=!1},d(n){D(e,n)}}}function h3(i){let e,t;return e=new vi({props:{className:"btn-full-opacity",disabled:!i[0],testId:i[3]?"btn-volume-vertical":"btn-volume-horizontal",ariaLabel:i[7],click:i[1],$$slots:{default:[m3]},$$scope:{ctx:i}}}),{c(){F(e.$$.fragment)},m(n,o){O(e,n,o),t=!0},p(n,o){const l={};o[0]&1&&(l.disabled=!n[0]),o[0]&8&&(l.testId=n[3]?"btn-volume-vertical":"btn-volume-horizontal"),o[0]&128&&(l.ariaLabel=n[7]),o[0]&2&&(l.click=n[1]),o[0]&20|o[1]&2&&(l.$$scope={dirty:o,ctx:n}),e.$set(l)},i(n){t||(m(e.$$.fragment,n),t=!0)},o(n){p(e.$$.fragment,n),t=!1},d(n){D(e,n)}}}function Os(i){let e,t,n;return t=new Zl({props:{className:i[3]?"volumeBar-slider-vertical":"",isHidden:i[3]&&!i[5],isVertical:i[3],withWheelHandler:!0,onWheelUp:i[14],onWheelDown:i[15],onPointerDown:i[13],onHandleMove:i[16],onPointerUp:i[17],onPointerEnter:i[3]?i[18]:ie.noop,onPointerLeave:i[3]?i[19]:ie.noop,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[3]?"volume-slider-vertical":"volume-slider"}}),{c(){e=w("div"),F(t.$$.fragment),u(e,"class","volumeBar v-1l78lz9"),E(e,"volumeBar-vertical",i[3])},m(o,l){k(o,e,l),O(t,e,null),n=!0},p(o,l){const r={};l[0]&8&&(r.className=o[3]?"volumeBar-slider-vertical":""),l[0]&40&&(r.isHidden=o[3]&&!o[5]),l[0]&8&&(r.isVertical=o[3]),l[0]&8&&(r.onPointerEnter=o[3]?o[18]:ie.noop),l[0]&8&&(r.onPointerLeave=o[3]?o[19]:ie.noop),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]&8&&(r.testId=o[3]?"volume-slider-vertical":"volume-slider"),t.$set(r),(!n||l[0]&8)&&E(e,"volumeBar-vertical",o[3])},i(o){n||(m(t.$$.fragment,o),n=!0)},o(o){p(t.$$.fragment,o),n=!1},d(o){o&&y(e),D(t)}}}function v3(i){let e,t,n,o,l,r;t=new xu({props:{controlInfo:i[11],tooltipContent:i[6],initialTranslateYPx:-18,$$slots:{default:[h3]},$$scope:{ctx:i}}});let s=i[0]&&Os(i);return{c(){e=w("div"),F(t.$$.fragment),n=N(),s&&s.c(),u(e,"class","volumeBar-container v-1l78lz9"),E(e,"vertical",i[3])},m(a,c){k(a,e,c),O(t,e,null),d(e,n),s&&s.m(e,null),o=!0,l||(r=[Ve(e,"mouseenter",function(){ln(i[3]?i[20]:ie.noop)&&(i[3]?i[20]:ie.noop).apply(this,arguments)}),Ve(e,"mouseleave",function(){ln(i[3]?i[21]:ie.noop)&&(i[3]?i[21]:ie.noop).apply(this,arguments)}),Ve(e,"wheel",Pi(i[22]))],l=!0)},p(a,c){i=a;const f={};c[0]&64&&(f.tooltipContent=i[6]),c[0]&159|c[1]&2&&(f.$$scope={dirty:c,ctx:i}),t.$set(f),i[0]?s?(s.p(i,c),c[0]&1&&m(s,1)):(s=Os(i),s.c(),m(s,1),s.m(e,null)):s&&(ve(),p(s,1,1,()=>{s=null}),pe()),(!o||c[0]&8)&&E(e,"vertical",i[3])},i(a){o||(m(t.$$.fragment,a),m(s),o=!0)},o(a){p(t.$$.fragment,a),p(s),o=!1},d(a){a&&y(e),D(t),s&&s.d(),l=!1,Gt(r)}}}function p3(i,e,t){let n,o,l,{isAudioAvailable:r=!0}=e,{click:s}=e;const a=Et(),c=tn(),f=a.state.volume$;q(i,f,he=>t(4,n=he));const h=a.state.muted$;q(i,h,he=>t(24,l=he));const g=a.actions.internal.setVolume,v=a.ui.controls.volume,b=a.ui.currentGridType$;q(i,b,he=>t(23,o=he));let A=!1,S,T,C,I,z,X,$=1,H=!1;function R(he){$=n,g(he)}function oe(){Wu(a,n,c.controls.volumeStepWheel)}function se(){qu(a,n,c.controls.volumeStepWheel)}function L(he){g(he)}function ce(he){const ae=he;g(ae,ae===0?$:ae)}function J(){H=!0}function U(){H=!1,ue()}function _(){clearTimeout(S),t(5,A=!0)}function K(){ue()}function ue(){S=window.setTimeout(()=>{H||t(5,A=!1)},c.controls.volumeBarTimeout)}function _e(he){he.deltaY<0?oe():he.deltaY>0&&se()}return i.$$set=he=>{"isAudioAvailable"in he&&t(0,r=he.isAudioAvailable),"click"in he&&t(1,s=he.click)},i.$$.update=()=>{i.$$.dirty[0]&16777217&&t(2,I=!r||l),i.$$.dirty[0]&8388608&&t(3,z=$u(o,exports.GridTypes.S)),i.$$.dirty[0]&12&&(z?t(6,T=""):t(6,T=re(I?"tooltip_volume":"tooltip_volume_muted")),t(7,C=re(I?"tooltip_volume":"tooltip_volume_muted"))),i.$$.dirty[0]&20&&t(8,X=I?0:n)},[r,s,I,z,n,A,T,C,X,f,h,v,b,R,oe,se,L,ce,J,U,_,K,_e,o,l]}class g3 extends ke{constructor(e){super(),ye(this,e,p3,v3,we,{isAudioAvailable:0,click:1},d3,[-1,-1])}}function b3(i){let e;return{c(){e=M("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(t,n){k(t,e,n)},d(t){t&&y(e)}}}function _3(i){let e;return{c(){e=M("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(t,n){k(t,e,n)},d(t){t&&y(e)}}}function w3(i){let e,t,n;function o(s,a){return s[0]?_3:b3}let l=o(i),r=l(i);return{c(){e=M("svg"),t=M("g"),r.c(),u(t,"fill","#fff"),u(t,"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=i[0]?"close-fullscreen-icon":"open-fullscreen-icon")},m(s,a){k(s,e,a),d(e,t),r.m(t,null)},p(s,[a]){l!==(l=o(s))&&(r.d(1),r=l(s),r&&(r.c(),r.m(t,null))),a&1&&n!==(n=s[0]?"close-fullscreen-icon":"open-fullscreen-icon")&&u(e,"data-testid",n)},i:Z,o:Z,d(s){s&&y(e),r.d()}}}function y3(i,e,t){let{isFullscreen:n=!1}=e;return i.$$set=o=>{"isFullscreen"in o&&t(0,n=o.isFullscreen)},[n]}class k3 extends ke{constructor(e){super(),ye(this,e,y3,w3,we,{isFullscreen:0})}}function S3(i){let e,t;return e=new k3({props:{isFullscreen:i[0]}}),{c(){F(e.$$.fragment)},m(n,o){O(e,n,o),t=!0},p(n,o){const l={};o&1&&(l.isFullscreen=n[0]),e.$set(l)},i(n){t||(m(e.$$.fragment,n),t=!0)},o(n){p(e.$$.fragment,n),t=!1},d(n){D(e,n)}}}function P3(i){let e,t;return e=new vi({props:{testId:"btn-fullscreen",ariaLabel:i[2],click:i[1],$$slots:{default:[S3]},$$scope:{ctx:i}}}),{c(){F(e.$$.fragment)},m(n,o){O(e,n,o),t=!0},p(n,[o]){const 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||(m(e.$$.fragment,n),t=!0)},o(n){p(e.$$.fragment,n),t=!1},d(n){D(e,n)}}}function C3(i,e,t){let{isFullscreen:n=!1}=e,{click:o=ie.noop}=e,l;return i.$$set=r=>{"isFullscreen"in r&&t(0,n=r.isFullscreen),"click"in r&&t(1,o=r.click)},i.$$.update=()=>{i.$$.dirty&1&&t(2,l=re(n?"tooltip_fullscreen_on":"tooltip_fullscreen_off"))},[n,o,l]}class ec extends ke{constructor(e){super(),ye(this,e,C3,P3,we,{isFullscreen:0,click:1})}}function T3(i){let e,t;return{c(){e=M("svg"),t=M("path"),u(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.078l8.787 5.175z"),u(t,"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){k(n,e,o),d(e,t)},p:Z,i:Z,o:Z,d(n){n&&y(e)}}}class Gl extends ke{constructor(e){super(),ye(this,e,null,T3,we,{})}}function E3(i){let e,t;return{c(){e=M("svg"),t=M("path"),u(t,"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(t,"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){k(n,e,o),d(e,t)},p:Z,i:Z,o:Z,d(n){n&&y(e)}}}class tc extends ke{constructor(e){super(),ye(this,e,null,E3,we,{})}}function A3(i){Fe(i,"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 Ds(i){let e;return{c(){e=w("div"),u(e,"class","icon-background-mobile v-1ot3duq")},m(t,n){k(t,e,n)},d(t){t&&y(e)}}}function L3(i){let e,t,n,o,l=i[0]&&Ds();var r=i[5];function s(a){return{}}return r&&(n=vn(r,s())),{c(){l&&l.c(),e=N(),t=w("div"),n&&F(n.$$.fragment),u(t,"class","v-1ot3duq"),E(t,"mobile",i[0])},m(a,c){l&&l.m(a,c),k(a,e,c),k(a,t,c),n&&O(n,t,null),o=!0},p(a,c){if(a[0]?l||(l=Ds(),l.c(),l.m(e.parentNode,e)):l&&(l.d(1),l=null),c&32&&r!==(r=a[5])){if(n){ve();const f=n;p(f.$$.fragment,1,0,()=>{D(f,1)}),pe()}r?(n=vn(r,s()),F(n.$$.fragment),m(n.$$.fragment,1),O(n,t,null)):n=null}(!o||c&1)&&E(t,"mobile",a[0])},i(a){o||(n&&m(n.$$.fragment,a),o=!0)},o(a){n&&p(n.$$.fragment,a),o=!1},d(a){a&&(y(e),y(t)),l&&l.d(a),n&&D(n)}}}function V3(i){let e,t;return e=new vi({props:{className:(i[0]?"btn-m--play":"")+" "+i[2],testId:"btn-play",click:i[3],disabled:i[1],ariaLabel:i[4],$$slots:{default:[L3]},$$scope:{ctx:i}}}),{c(){F(e.$$.fragment)},m(n,o){O(e,n,o),t=!0},p(n,[o]){const l={};o&5&&(l.className=(n[0]?"btn-m--play":"")+" "+n[2]),o&8&&(l.click=n[3]),o&2&&(l.disabled=n[1]),o&16&&(l.ariaLabel=n[4]),o&161&&(l.$$scope={dirty:o,ctx:n}),e.$set(l)},i(n){t||(m(e.$$.fragment,n),t=!0)},o(n){p(e.$$.fragment,n),t=!1},d(n){D(e,n)}}}function I3(i,e,t){let n,{isMobile:o=!1}=e,{isPlaying:l=!1}=e,{disabled:r=!1}=e,{className:s=""}=e,{click:a=ie.noop}=e,c;return i.$$set=f=>{"isMobile"in f&&t(0,o=f.isMobile),"isPlaying"in f&&t(6,l=f.isPlaying),"disabled"in f&&t(1,r=f.disabled),"className"in f&&t(2,s=f.className),"click"in f&&t(3,a=f.click)},i.$$.update=()=>{i.$$.dirty&64&&t(4,c=re(l?"tooltip_pause":"tooltip_play")),i.$$.dirty&64&&t(5,n=l?tc:Gl)},[o,r,s,a,c,n,l]}class Kl extends ke{constructor(e){super(),ye(this,e,I3,V3,we,{isMobile:0,isPlaying:6,disabled:1,className:2,click:3},A3)}}function z3(i){Fe(i,"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 M3(i){let e,t,n;return{c(){e=M("svg"),t=M("path"),u(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"),u(t,"fill","#fff"),u(e,"data-testid",n=i[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"),E(e,"prev",i[0]),E(e,"mobile",i[1])},m(o,l){k(o,e,l),d(e,t)},p(o,[l]){l&1&&n!==(n=o[0]?"prev-icon":"next-icon")&&u(e,"data-testid",n),l&1&&E(e,"prev",o[0]),l&2&&E(e,"mobile",o[1])},i:Z,o:Z,d(o){o&&y(e)}}}function N3(i,e,t){let{isPrev:n=!1}=e,{isMobile:o=!1}=e;return i.$$set=l=>{"isPrev"in l&&t(0,n=l.isPrev),"isMobile"in l&&t(1,o=l.isMobile)},[n,o]}class R3 extends ke{constructor(e){super(),ye(this,e,N3,M3,we,{isPrev:0,isMobile:1},z3)}}function B3(i){let e,t;return e=new R3({props:{isMobile:i[0],isPrev:i[2]==="prev"}}),{c(){F(e.$$.fragment)},m(n,o){O(e,n,o),t=!0},p(n,o){const l={};o&1&&(l.isMobile=n[0]),o&4&&(l.isPrev=n[2]==="prev"),e.$set(l)},i(n){t||(m(e.$$.fragment,n),t=!0)},o(n){p(e.$$.fragment,n),t=!1},d(n){D(e,n)}}}function O3(i){let e,t;return e=new vi({props:{testId:"btn-"+i[2],disabled:i[1],ariaLabel:i[4],click:i[3],$$slots:{default:[B3]},$$scope:{ctx:i}}}),{c(){F(e.$$.fragment)},m(n,o){O(e,n,o),t=!0},p(n,[o]){const l={};o&4&&(l.testId="btn-"+n[2]),o&2&&(l.disabled=n[1]),o&16&&(l.ariaLabel=n[4]),o&8&&(l.click=n[3]),o&37&&(l.$$scope={dirty:o,ctx:n}),e.$set(l)},i(n){t||(m(e.$$.fragment,n),t=!0)},o(n){p(e.$$.fragment,n),t=!1},d(n){D(e,n)}}}function D3(i,e,t){let{isMobile:n=!1}=e,{disabled:o=!1}=e,{type:l}=e,{click:r}=e,s;return i.$$set=a=>{"isMobile"in a&&t(0,n=a.isMobile),"disabled"in a&&t(1,o=a.disabled),"type"in a&&t(2,l=a.type),"click"in a&&t(3,r=a.click)},i.$$.update=()=>{i.$$.dirty&4&&t(4,s=re(l==="prev"?"tooltip_previous":"tooltip_next"))},[n,o,l,r,s]}class Qo extends ke{constructor(e){super(),ye(this,e,D3,O3,we,{isMobile:0,disabled:1,type:2,click:3})}}function F3(i){let e,t;return{c(){e=M("svg"),t=M("path"),u(t,"fill-rule","evenodd"),u(t,"clip-rule","evenodd"),u(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.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(t,"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){k(n,e,o),d(e,t)},p:Z,i:Z,o:Z,d(n){n&&y(e)}}}class H3 extends ke{constructor(e){super(),ye(this,e,null,F3,we,{})}}function Fs(i){let e,t,n,o,l,r,s;return{c(){e=M("path"),t=M("path"),n=M("path"),o=M("path"),l=M("path"),r=M("path"),s=M("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(t,"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(t,"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(l,"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(l,"fill","white"),u(r,"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(r,"fill","white"),u(s,"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(s,"fill","white")},m(a,c){k(a,e,c),k(a,t,c),k(a,n,c),k(a,o,c),k(a,l,c),k(a,r,c),k(a,s,c)},d(a){a&&(y(e),y(t),y(n),y(o),y(l),y(r),y(s))}}}function U3(i){let e,t,n,o=!i[0]&&Fs();return{c(){e=M("svg"),t=M("path"),o&&o.c(),u(t,"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(t,"fill","white"),u(e,"width",i[1]),u(e,"height","20"),u(e,"viewBox",n="0 0 "+(i[1]+1)+" 20"),u(e,"fill","none"),u(e,"xmlns","http://www.w3.org/2000/svg"),u(e,"aria-hidden","true"),u(e,"data-testid",i[2])},m(l,r){k(l,e,r),d(e,t),o&&o.m(e,null)},p(l,[r]){l[0]?o&&(o.d(1),o=null):o||(o=Fs(),o.c(),o.m(e,null)),r&2&&u(e,"width",l[1]),r&2&&n!==(n="0 0 "+(l[1]+1)+" 20")&&u(e,"viewBox",n),r&4&&u(e,"data-testid",l[2])},i:Z,o:Z,d(l){l&&y(e),o&&o.d()}}}function j3(i,e,t){let{short:n=!1}=e,o,l;return i.$$set=r=>{"short"in r&&t(0,n=r.short)},i.$$.update=()=>{i.$$.dirty&1&&(t(1,o=n?20:93),t(2,l=n?"vk-video-logo-icon--short":"vk-video-logo-icon"))},[n,o,l]}class W3 extends ke{constructor(e){super(),ye(this,e,j3,U3,we,{short:0})}}function q3(i){let e,t;return e=new H3({}),{c(){F(e.$$.fragment)},m(n,o){O(e,n,o),t=!0},p:Z,i(n){t||(m(e.$$.fragment,n),t=!0)},o(n){p(e.$$.fragment,n),t=!1},d(n){D(e,n)}}}function Z3(i){let e,t;return e=new W3({props:{short:i[3]}}),{c(){F(e.$$.fragment)},m(n,o){O(e,n,o),t=!0},p(n,o){const l={};o&8&&(l.short=n[3]),e.$set(l)},i(n){t||(m(e.$$.fragment,n),t=!0)},o(n){p(e.$$.fragment,n),t=!1},d(n){D(e,n)}}}function G3(i){let e,t,n,o;const l=[Z3,q3],r=[];function s(a,c){return a[1]?0:1}return e=s(i),t=r[e]=l[e](i),{c(){t.c(),n=wt()},m(a,c){r[e].m(a,c),k(a,n,c),o=!0},p(a,c){let f=e;e=s(a),e===f?r[e].p(a,c):(ve(),p(r[f],1,1,()=>{r[f]=null}),pe(),t=r[e],t?t.p(a,c):(t=r[e]=l[e](a),t.c()),m(t,1),t.m(n.parentNode,n))},i(a){o||(m(t),o=!0)},o(a){p(t),o=!1},d(a){a&&y(n),r[e].d(a)}}}function K3(i){let e,t;return e=new vi({props:{className:"btn-full-opacity",disabled:!i[0],click:i[7],testId:i[1]?"btn-vk-video-logo":"btn-vk-logo",ariaLabel:i[2],$$slots:{default:[G3]},$$scope:{ctx:i}}}),{c(){F(e.$$.fragment)},m(n,o){O(e,n,o),t=!0},p(n,[o]){const l={};o&1&&(l.disabled=!n[0]),o&2&&(l.testId=n[1]?"btn-vk-video-logo":"btn-vk-logo"),o&4&&(l.ariaLabel=n[2]),o&131082&&(l.$$scope={dirty:o,ctx:n}),e.$set(l)},i(n){t||(m(e.$$.fragment,n),t=!0)},o(n){p(e.$$.fragment,n),t=!1},d(n){D(e,n)}}}function Y3(i,e,t){let n,o,l,{logoClickable:r=!1}=e,{videoLogoUrl:s=void 0}=e,{click:a}=e;const c=tn(),{logoLink:f,addTimeToLogoLink:h}=c,g=Et(),v=g.state.positionWithScrubbing$;q(i,v,z=>t(12,n=z));const b=g.ui.currentGridType$;q(i,b,z=>t(10,o=z));const A=g.ui.isMobile;q(i,A,z=>t(11,l=z));let S,T,C;const I=()=>{let z;if(T||!s)z=f;else{const X=Math.round(n);if(h&&X){const $=new URL(s);$.searchParams.append("t",ie.timeCodeToString(X)),z=$.toString()}else z=s}a(),window.open(z,"_blank")};return i.$$set=z=>{"logoClickable"in z&&t(0,r=z.logoClickable),"videoLogoUrl"in z&&t(8,s=z.videoLogoUrl),"click"in z&&t(9,a=z.click)},i.$$.update=()=>{i.$$.dirty&3074&&t(3,C=(l||$u(o,exports.GridTypes.L))&&T)},t(2,S=c.logoType===$n.VK_VIDEO?re("tooltip_vk_video_logo"):re("tooltip_vk_logo")),t(1,T=c.logoType===$n.VK_VIDEO),[r,T,S,C,v,b,A,I,s,a,o,l]}class ic extends ke{constructor(e){super(),ye(this,e,Y3,K3,we,{logoClickable:0,videoLogoUrl:8,click:9})}}function X3(i){Fe(i,"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 Q3(i){let e,t,n,o,l,r,s,a;return{c(){e=M("svg"),t=M("g"),n=M("path"),o=M("path"),l=M("path"),r=M("path"),s=M("path"),a=M("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(l,"class","wave wave3 v-8z1bf5"),u(l,"d","M1 10v2a9 9 0 0 1 9 9h2c0-6.08-4.93-11-11-11z"),u(l,"fill","#fff"),u(r,"d","M21 3H3c-1.1 0-2 .9-2 2v3h2V5h18v14h-7v2h7c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2z"),u(r,"fill","#fff"),u(s,"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"),E(a,"hidden",!i[1]),u(t,"fill","none"),u(t,"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"),E(e,"connecting",i[2])},m(c,f){k(c,e,f),d(e,t),d(t,n),d(t,o),d(t,l),d(t,r),d(t,s),d(t,a)},p(c,f){f&2&&E(a,"hidden",!c[1]),f&4&&E(e,"connecting",c[2])},d(c){c&&y(e)}}}function J3(i){let e,t,n,o,l,r,s,a,c,f,h,g,v,b,A,S,T,C,I,z,X;return{c(){e=M("svg"),t=M("g"),n=M("mask"),o=M("path"),r=M("path"),s=M("path"),c=M("path"),f=M("defs"),h=M("clipPath"),g=M("path"),b=M("filter"),A=M("feFlood"),S=M("feColorMatrix"),T=M("feOffset"),C=M("feGaussianBlur"),I=M("feColorMatrix"),z=M("feBlend"),X=M("feBlend"),u(o,"fill",l=i[1]?"#2688EB":"#fff"),u(o,"d","M1.1 3.1h22v18h-22z"),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(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(s,"fill-rule","evenodd"),u(s,"clip-rule","evenodd"),u(s,"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(s,"fill",a=i[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(t,"filter","url(#b)"),u(t,"clip-path","url(#a)"),u(g,"fill",v=i[1]?"#2688EB":"#fff"),u(g,"d","M0 0h24v24H0z"),u(h,"id","a"),u(A,"flood-opacity","0"),u(A,"result","BackgroundImageFix"),u(S,"in","SourceAlpha"),u(S,"values","0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0"),u(S,"result","hardAlpha"),u(C,"stdDeviation","2.5"),u(I,"values","0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.16 0"),u(z,"in2","BackgroundImageFix"),u(z,"result","effect1_dropShadow_4085_178456"),u(X,"in","SourceGraphic"),u(X,"in2","effect1_dropShadow_4085_178456"),u(X,"result","shape"),u(b,"id","b"),u(b,"x","-3.4"),u(b,"y","-1.4"),u(b,"width","30.8"),u(b,"height","26.802"),u(b,"filterUnits","userSpaceOnUse"),u(b,"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($,H){k($,e,H),d(e,t),d(t,n),d(n,o),d(n,r),d(t,s),d(t,c),d(e,f),d(f,h),d(h,g),d(f,b),d(b,A),d(b,S),d(b,T),d(b,C),d(b,I),d(b,z),d(b,X)},p($,H){H&2&&l!==(l=$[1]?"#2688EB":"#fff")&&u(o,"fill",l),H&2&&a!==(a=$[1]?"#2688EB":"#fff")&&u(s,"fill",a),H&2&&v!==(v=$[1]?"#2688EB":"#fff")&&u(g,"fill",v)},d($){$&&y(e)}}}function x3(i){let e;function t(l,r){return l[0]?J3:Q3}let n=t(i),o=n(i);return{c(){o.c(),e=wt()},m(l,r){o.m(l,r),k(l,e,r)},p(l,[r]){n===(n=t(l))&&o?o.p(l,r):(o.d(1),o=n(l),o&&(o.c(),o.m(e.parentNode,e)))},i:Z,o:Z,d(l){l&&y(e),o.d(l)}}}function $3(i,e,t){let{isMobile:n=!1}=e,{state:o}=e,l,r;return i.$$set=s=>{"isMobile"in s&&t(0,n=s.isMobile),"state"in s&&t(3,o=s.state)},i.$$.update=()=>{i.$$.dirty&8&&(t(2,r=o===rt.ChromecastState.CONNECTING),t(1,l=o===rt.ChromecastState.CONNECTED))},[n,l,r,o]}class ev extends ke{constructor(e){super(),ye(this,e,$3,x3,we,{isMobile:0,state:3},X3)}}function tv(i){let e,t;return e=new ev({props:{isMobile:i[0],state:i[1]}}),{c(){F(e.$$.fragment)},m(n,o){O(e,n,o),t=!0},p(n,o){const l={};o&1&&(l.isMobile=n[0]),o&2&&(l.state=n[1]),e.$set(l)},i(n){t||(m(e.$$.fragment,n),t=!0)},o(n){p(e.$$.fragment,n),t=!1},d(n){D(e,n)}}}function iv(i){let e,t;return e=new vi({props:{ariaLabel:i[3],click:i[2],testId:"btn-chromecast",$$slots:{default:[tv]},$$scope:{ctx:i}}}),{c(){F(e.$$.fragment)},m(n,o){O(e,n,o),t=!0},p(n,[o]){const l={};o&8&&(l.ariaLabel=n[3]),o&4&&(l.click=n[2]),o&19&&(l.$$scope={dirty:o,ctx:n}),e.$set(l)},i(n){t||(m(e.$$.fragment,n),t=!0)},o(n){p(e.$$.fragment,n),t=!1},d(n){D(e,n)}}}function nv(i,e,t){let{isMobile:n=!1}=e,{state:o}=e,{click:l=ie.noop}=e,r;return i.$$set=s=>{"isMobile"in s&&t(0,n=s.isMobile),"state"in s&&t(1,o=s.state),"click"in s&&t(2,l=s.click)},i.$$.update=()=>{i.$$.dirty&2&&t(3,r=o===rt.ChromecastState.CONNECTED?re("tooltip_chromecast_on"):re("tooltip_chromecast_off"))},[n,o,l,r]}class nc extends ke{constructor(e){super(),ye(this,e,nv,iv,we,{isMobile:0,state:1,click:2})}}function ov(i){let e,t;return e=new Du({props:{isActive:i[1]}}),{c(){F(e.$$.fragment)},m(n,o){O(e,n,o),t=!0},p(n,o){const l={};o&2&&(l.isActive=n[1]),e.$set(l)},i(n){t||(m(e.$$.fragment,n),t=!0)},o(n){p(e.$$.fragment,n),t=!1},d(n){D(e,n)}}}function lv(i){let e,t;return e=new vi({props:{className:i[0]?"":"btn--live btn-full-opacity",testId:i[1]?"btn-live":"btn-live-offset",disabled:i[1],ariaLabel:i[3],click:i[2],$$slots:{default:[ov]},$$scope:{ctx:i}}}),{c(){F(e.$$.fragment)},m(n,o){O(e,n,o),t=!0},p(n,[o]){const l={};o&1&&(l.className=n[0]?"":"btn--live btn-full-opacity"),o&2&&(l.testId=n[1]?"btn-live":"btn-live-offset"),o&2&&(l.disabled=n[1]),o&8&&(l.ariaLabel=n[3]),o&4&&(l.click=n[2]),o&18&&(l.$$scope={dirty:o,ctx:n}),e.$set(l)},i(n){t||(m(e.$$.fragment,n),t=!0)},o(n){p(e.$$.fragment,n),t=!1},d(n){D(e,n)}}}function rv(i,e,t){let{isMobile:n=!1}=e,{isActiveLive:o=!1}=e,{click:l}=e,r;return i.$$set=s=>{"isMobile"in s&&t(0,n=s.isMobile),"isActiveLive"in s&&t(1,o=s.isActiveLive),"click"in s&&t(2,l=s.click)},i.$$.update=()=>{i.$$.dirty&2&&t(3,r=o?"":re("tooltip_live"))},[n,o,l,r]}class oc extends ke{constructor(e){super(),ye(this,e,rv,lv,we,{isMobile:0,isActiveLive:1,click:2})}}function sv(i){Fe(i,"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 av(i){let e,t,n,o;const l=i[9].default,r=En(l,i,i[8],null);return{c(){e=w("div"),t=w("div"),r&&r.c(),u(t,"class","tooltip v-5ygsa2"),E(t,"active",i[0]),E(t,"pointer",i[1]),u(e,"class","tooltip-wrapper v-5ygsa2"),u(e,"style",n=`transform: translate(${i[5]}px, ${i[2]}px);`)},m(s,a){k(s,e,a),d(e,t),r&&r.m(t,null),i[10](t),i[11](e),o=!0},p(s,[a]){r&&r.p&&(!o||a&256)&&Ln(r,l,s,s[8],o?An(l,s[8],a,null):Vn(s[8]),null),(!o||a&1)&&E(t,"active",s[0]),(!o||a&2)&&E(t,"pointer",s[1]),(!o||a&36&&n!==(n=`transform: translate(${s[5]}px, ${s[2]}px);`))&&u(e,"style",n)},i(s){o||(m(r,s),o=!0)},o(s){p(r,s),o=!1},d(s){s&&y(e),r&&r.d(s),i[10](null),i[11](null)}}}function uv(i,e,t){let n,{$$slots:o={},$$scope:l}=e,{active:r=!1}=e,{pointer:s=!1}=e,{translateXPx:a=0}=e,{translateYPx:c=0}=e,{containerWidth:f}=e,h,g;function v(S){if(!g)return 0;const{width:T}=g.getBoundingClientRect(),C=T/2;return S<C?C:S>f-C?f-C:S}function b(S){Ke[S?"unshift":"push"](()=>{g=S,t(4,g)})}function A(S){Ke[S?"unshift":"push"](()=>{h=S,t(3,h)})}return i.$$set=S=>{"active"in S&&t(0,r=S.active),"pointer"in S&&t(1,s=S.pointer),"translateXPx"in S&&t(6,a=S.translateXPx),"translateYPx"in S&&t(2,c=S.translateYPx),"containerWidth"in S&&t(7,f=S.containerWidth),"$$scope"in S&&t(8,l=S.$$scope)},i.$$.update=()=>{i.$$.dirty&64&&t(5,n=v(a))},[r,s,c,h,g,n,a,f,l,o,b,A]}class cv extends ke{constructor(e){super(),ye(this,e,uv,av,we,{active:0,pointer:1,translateXPx:6,translateYPx:2,containerWidth:7},sv)}}const lc=(i,e,t)=>t.filter(n=>n.time<i*e).pop();function fv(i){Fe(i,"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 Hs(i){let e;function t(l,r){return l[2]&&l[10].completed===!1?mv:dv}let n=t(i),o=n(i);return{c(){o.c(),e=wt()},m(l,r){o.m(l,r),k(l,e,r)},p(l,r){n===(n=t(l))&&o?o.p(l,r):(o.d(1),o=n(l),o&&(o.c(),o.m(e.parentNode,e)))},d(l){l&&y(e),o.d(l)}}}function dv(i){let e=(i[10].text||"")+"",t;return{c(){t=je(e)},m(n,o){k(n,t,o)},p(n,o){o&1024&&e!==(e=(n[10].text||"")+"")&&$e(t,e)},d(n){n&&y(t)}}}function mv(i){let e=re("tooltip_episode_unfinished")+"",t;return{c(){t=je(e)},m(n,o){k(n,t,o)},p:Z,d(n){n&&y(t)}}}function hv(i){let e,t,n,o,l,r,s,a,c=i[10]&&Hs(i);return{c(){e=w("div"),t=w("div"),o=N(),l=w("div"),c&&c.c(),r=N(),s=w("div"),a=je(i[0]),u(t,"class","preview v-l51fc1"),u(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);`),u(l,"class","episode v-l51fc1"),u(s,"class","time v-l51fc1"),u(e,"class","timeline-preview v-l51fc1"),E(e,"mobile",i[1])},m(f,h){k(f,e,h),d(e,t),d(e,o),d(e,l),c&&c.m(l,null),d(e,r),d(e,s),d(s,a)},p(f,[h]){h&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(t,"style",n),f[10]?c?c.p(f,h):(c=Hs(f),c.c(),c.m(l,null)):c&&(c.d(1),c=null),h&1&&$e(a,f[0]),h&2&&E(e,"mobile",f[1])},i:Z,o:Z,d(f){f&&y(e),c&&c.d()}}}const Kn=150;function vv(i,e,t){let n,{time:o=""}=e,{isMobile:l=!1}=e,{videoEpisodes:r=[]}=e,{previewThumbsData:s}=e,{progress:a=0}=e,{duration:c=0}=e,{isInteractive:f=!1}=e;const g=Et().ui.rotateAlpha;q(i,g,H=>t(11,n=H));let v,b,A,S,T,C,I,z;function X(){let H=s.frameWidth,R=s.frameHeight;return H>Kn?(R=R/H*Kn,H=Kn):R>Kn&&(H=H/R*Kn,R=Kn),{width:H,height:R}}function $(H){let R;s.isUV?R=Math.floor(c*H/s.frequency):R=Math.min(s.countTotal,Math.max(0,Math.floor(s.countTotal*H)));const oe=Math.floor(R/s.countPerImage),se=Math.floor(R%s.countPerImage/s.countPerRow),L=R%s.countPerRow;let ce=Math.floor(s.countPerImage/s.countPerRow);!s.isUV&&oe===Math.floor(s.countTotal/s.countPerImage)&&(ce=Math.floor(s.countTotal%s.countPerImage/s.countPerRow),s.countTotal%s.countPerImage%s.countPerRow>0&&ce++);let J=s.countPerRow;!s.isUV&&oe===Math.floor(s.countTotal/s.countPerImage)&&s.countTotal%s.countPerImage>0&&(J=Math.min(s.countPerRow,s.countTotal%s.countPerImage));const U=v*J,_=b*ce,K=-L*v,ue=-se*b;return{imgSrc:s.links[oe],imgWidth:U,imgHeight:_,imgOffsetX:K,imgOffsetY:ue}}return i.$$set=H=>{"time"in H&&t(0,o=H.time),"isMobile"in H&&t(1,l=H.isMobile),"videoEpisodes"in H&&t(13,r=H.videoEpisodes),"previewThumbsData"in H&&t(14,s=H.previewThumbsData),"progress"in H&&t(15,a=H.progress),"duration"in H&&t(16,c=H.duration),"isInteractive"in H&&t(2,f=H.isInteractive)},i.$$.update=()=>{i.$$.dirty&32768&&t(5,{imgSrc:A,imgWidth:S,imgHeight:T,imgOffsetX:C,imgOffsetY:I}=$(a),A,(t(6,S),t(15,a)),(t(7,T),t(15,a)),(t(8,C),t(15,a)),(t(9,I),t(15,a))),i.$$.dirty&106496&&t(10,z=lc(a,c,r))},t(3,{width:v,height:b}=X(),v,t(4,b)),[o,l,f,v,b,A,S,T,C,I,z,n,g,r,s,a,c]}class pv extends ke{constructor(e){super(),ye(this,e,vv,hv,we,{time:0,isMobile:1,videoEpisodes:13,previewThumbsData:14,progress:15,duration:16,isInteractive:2},fv)}}function gv(i){Fe(i,"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 bv(i){let e,t;return{c(){e=w("span"),t=je(i[7]),u(e,"class","time v-5lzly8")},m(n,o){k(n,e,o),d(e,t)},p(n,o){o[0]&128&&$e(t,n[7])},i:Z,o:Z,d(n){n&&y(e)}}}function _v(i){let e,t;return e=new pv({props:{time:i[7],isMobile:i[10],videoEpisodes:i[3],previewThumbsData:i[21],progress:i[8],duration:i[1],isInteractive:i[23]}}),{c(){F(e.$$.fragment)},m(n,o){O(e,n,o),t=!0},p(n,o){const 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||(m(e.$$.fragment,n),t=!0)},o(n){p(e.$$.fragment,n),t=!1},d(n){D(e,n)}}}function wv(i){let e,t,n,o;const l=[_v,bv],r=[];function s(a,c){return a[14].features.timelinePreview&&a[21]&&!a[0]?0:1}return e=s(i),t=r[e]=l[e](i),{c(){t.c(),n=wt()},m(a,c){r[e].m(a,c),k(a,n,c),o=!0},p(a,c){let f=e;e=s(a),e===f?r[e].p(a,c):(ve(),p(r[f],1,1,()=>{r[f]=null}),pe(),t=r[e],t?t.p(a,c):(t=r[e]=l[e](a),t.c()),m(t,1),t.m(n.parentNode,n))},i(a){o||(m(t),o=!0)},o(a){p(t),o=!1},d(a){a&&y(n),r[e].d(a)}}}function yv(i){let e,t,n,o;const l=[i[9]];let r={$$slots:{default:[wv]},$$scope:{ctx:i}};for(let s=0;s<l.length;s+=1)r=V1(r,l[s]);return e=new cv({props:r}),n=new Zl({props:{isActiveLive:i[11],isMobile:i[10],ariaLabel:re("aria_timeline"),ariaValueMin:0,ariaValueMax:i[1],ariaValueNow:Math.round(i[6]*100),ariaValueText:re("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(ht.TIMELINE),hideHandel:i[2]}}),{c(){F(e.$$.fragment),t=N(),F(n.$$.fragment)},m(s,a){O(e,s,a),k(s,t,a),O(n,s,a),o=!0},p(s,a){const c=a[0]&512?Jc(l,[xc(s[9])]):{};a[0]&1419|a[1]&65536&&(c.$$scope={dirty:a,ctx:s}),e.$set(c);const f={};a[0]&2048&&(f.isActiveLive=s[11]),a[0]&1024&&(f.isMobile=s[10]),a[0]&2&&(f.ariaValueMax=s[1]),a[0]&64&&(f.ariaValueNow=Math.round(s[6]*100)),a[0]&48&&(f.ariaValueText=re("aria_timeline_value",{position:s[5],duration:s[4]})),a[0]&4096&&(f.loadedProgress=s[12]),a[0]&64&&(f.filledProgress=s[6]),a[0]&64&&(f.handleProgress=s[6]),a[0]&8&&(f.videoEpisodes=s[3]),a[0]&8192&&(f.disabled=s[13].has(ht.TIMELINE)),a[0]&4&&(f.hideHandel=s[2]),n.$set(f)},i(s){o||(m(e.$$.fragment,s),m(n.$$.fragment,s),o=!0)},o(s){p(e.$$.fragment,s),p(n.$$.fragment,s),o=!1},d(s){s&&y(t),D(e,s),D(n,s)}}}function kv(i,e,t){let n,o,l,r,s,a,c,f,h,g,v,{showTimeline:b=!1}=e;const A=Et(),S=tn(),T=A.state.bufferedProgress$;q(i,T,G=>t(12,g=G));const C=A.state.positionWithScrubbing$;q(i,C,G=>t(39,a=G));const I=A.state.duration$;q(i,I,G=>t(1,l=G));const z=A.state.isLive$;q(i,z,G=>t(0,o=G));const X=A.state.isActiveLive$;q(i,X,G=>t(11,h=G));const $=A.ui.isMobile;q(i,$,G=>t(10,f=G));const H=S.features.episodes?A.actions.internal.getVideoEpisodes():void 0,R=A.actions.internal.getPreviewThumbsData(),oe=A.state.interactiveEpisodes$;q(i,oe,G=>t(40,c=G));const se=A.state.isInteractive,L=A.state.isInteractiveTime$;q(i,L,G=>t(2,r=G));const ce=A.state.isInteractiveExpectation$;q(i,ce,G=>t(38,s=G));const J=A.actions.internal.correctSeekTimeToInteractive,U=A.ui.controls.disabledControls$;q(i,U,G=>t(13,v=G));let _,K,ue,_e,he=!1,ae="",Ee=0,Y=0,V=0,le;function x(G){return!J||!se?G:J(G*l)/l}function Ae(G){A.actions.internal.startScrubbing(x(G))}function B(G){r||A.actions.internal.progressScrubbing(x(G))}function ee(G){A.actions.internal.completeScrubbing(x(G)),t(34,he=!1)}function ze(G,j,qe){Se(G,j,qe),t(34,he=!0)}function Ce(G,j,qe){Se(G,j,qe),t(34,he=!0)}function ge(){t(34,he=!1)}function Se(G,j,qe){t(8,V=G),t(35,Ee=j),qe&&t(36,Y=qe),t(7,ae=Pe(G))}function Pe(G){const j=hn((o?1-G:G)*l);return o?`-${j}`:j}return i.$$set=G=>{"showTimeline"in G&&t(33,b=G.showTimeline)},i.$$.update=()=>{i.$$.dirty[1]&512&&t(3,_=se?c:H),i.$$.dirty[0]&2&&t(4,K=hn(l)),i.$$.dirty[1]&256&&t(5,ue=hn(a)),i.$$.dirty[0]&2|i.$$.dirty[1]&256&&t(6,_e=a/l),i.$$.dirty[0]&4|i.$$.dirty[1]&128&&t(37,le=s||r),i.$$.dirty[0]&1|i.$$.dirty[1]&124&&t(9,n={containerWidth:Y,translateXPx:Ee,translateYPx:se&&R?-36:-16,active:he&&b&&!le,pointer:!S.features.timelinePreview||!R||o})},[o,l,r,_,K,ue,_e,ae,V,n,f,h,g,v,S,T,C,I,z,X,$,R,oe,se,L,ce,U,Ae,B,ee,ze,Ce,ge,b,he,Ee,Y,le,s,a,c]}let Sv=class extends ke{constructor(e){super(),ye(this,e,kv,yv,we,{showTimeline:33},gv,[-1,-1])}};function Pv(i){let e,t;return e=new Zl({props:{ariaValueMin:0,ariaValueMax:i[0],ariaValueNow:Math.round(i[3]*100),ariaValueText:re("aria_timeline_value",{position:i[2],duration:i[1]}),filledProgress:i[3],isAds:!0,hideHandel:!0,squareBorders:i[4]}}),{c(){F(e.$$.fragment)},m(n,o){O(e,n,o),t=!0},p(n,[o]){const l={};o&1&&(l.ariaValueMax=n[0]),o&8&&(l.ariaValueNow=Math.round(n[3]*100)),o&6&&(l.ariaValueText=re("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||(m(e.$$.fragment,n),t=!0)},o(n){p(e.$$.fragment,n),t=!1},d(n){D(e,n)}}}function Cv(i,e,t){let n,{position:o=0}=e,{duration:l=0}=e;const s=Et().ui.isMobile;q(i,s,h=>t(4,n=h));let a,c,f;return i.$$set=h=>{"position"in h&&t(6,o=h.position),"duration"in h&&t(0,l=h.duration)},i.$$.update=()=>{i.$$.dirty&1&&t(1,a=hn(l)),i.$$.dirty&64&&t(2,c=hn(o)),i.$$.dirty&65&&t(3,f=o/l)},[l,a,c,f,n,s,o]}class rc extends ke{constructor(e){super(),ye(this,e,Cv,Pv,we,{position:6,duration:0})}}function Tv(i){Fe(i,"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 Ev(i){let e;return{c(){e=w("div"),u(e,"class","timeline-stub v-1gqonyf"),E(e,"mobile",i[2])},m(t,n){k(t,e,n)},p(t,n){n&4&&E(e,"mobile",t[2])},i:Z,o:Z,d(t){t&&y(e)}}}function Av(i){let e,t,n,o;const l=[Vv,Lv],r=[];function s(a,c){return a[0]?0:1}return t=s(i),n=r[t]=l[t](i),{c(){e=w("div"),n.c(),u(e,"class","timeline v-1gqonyf"),E(e,"mobile",i[2])},m(a,c){k(a,e,c),r[t].m(e,null),o=!0},p(a,c){let f=t;t=s(a),t===f?r[t].p(a,c):(ve(),p(r[f],1,1,()=>{r[f]=null}),pe(),n=r[t],n?n.p(a,c):(n=r[t]=l[t](a),n.c()),m(n,1),n.m(e,null)),(!o||c&4)&&E(e,"mobile",a[2])},i(a){o||(m(n),o=!0)},o(a){p(n),o=!1},d(a){a&&y(e),r[t].d()}}}function Lv(i){let e,t;return e=new Sv({props:{showTimeline:i[1]}}),{c(){F(e.$$.fragment)},m(n,o){O(e,n,o),t=!0},p(n,o){const l={};o&2&&(l.showTimeline=n[1]),e.$set(l)},i(n){t||(m(e.$$.fragment,n),t=!0)},o(n){p(e.$$.fragment,n),t=!1},d(n){D(e,n)}}}function Vv(i){let e,t;return e=new rc({props:{position:i[3],duration:i[4]}}),{c(){F(e.$$.fragment)},m(n,o){O(e,n,o),t=!0},p(n,o){const l={};o&8&&(l.position=n[3]),o&16&&(l.duration=n[4]),e.$set(l)},i(n){t||(m(e.$$.fragment,n),t=!0)},o(n){p(e.$$.fragment,n),t=!1},d(n){D(e,n)}}}function Iv(i){let e,t,n,o;const l=[Av,Ev],r=[];function s(a,c){return a[1]?0:1}return e=s(i),t=r[e]=l[e](i),{c(){t.c(),n=wt()},m(a,c){r[e].m(a,c),k(a,n,c),o=!0},p(a,[c]){let f=e;e=s(a),e===f?r[e].p(a,c):(ve(),p(r[f],1,1,()=>{r[f]=null}),pe(),t=r[e],t?t.p(a,c):(t=r[e]=l[e](a),t.c()),m(t,1),t.m(n.parentNode,n))},i(a){o||(m(t),o=!0)},o(a){p(t),o=!1},d(a){a&&y(n),r[e].d(a)}}}function zv(i,e,t){let n,o,l,r,{isAds:s=!1}=e,{canRewindLive:a}=e,{isRewindableLive:c}=e,{isHidden:f=!1}=e;const h=Et(),g=h.state.isLive$;q(i,g,T=>t(12,n=T));const v=h.ads.duration;q(i,v,T=>t(4,r=T));const b=h.ads.position;q(i,b,T=>t(3,l=T));const A=h.ui.isMobile;q(i,A,T=>t(2,o=T));let S;return i.$$set=T=>{"isAds"in T&&t(0,s=T.isAds),"canRewindLive"in T&&t(9,a=T.canRewindLive),"isRewindableLive"in T&&t(10,c=T.isRewindableLive),"isHidden"in T&&t(11,f=T.isHidden)},i.$$.update=()=>{i.$$.dirty&7681&&t(1,S=!f&&(!n||n&&a&&c||s))},[s,S,o,l,r,g,v,b,A,a,c,f,n]}class sc extends ke{constructor(e){super(),ye(this,e,zv,Iv,we,{isAds:0,canRewindLive:9,isRewindableLive:10,isHidden:11},Tv)}}function Mv(i){let e,t,n,o;return{c(){e=M("svg"),t=M("path"),n=M("path"),o=M("path"),u(t,"fill-rule","evenodd"),u(t,"clip-rule","evenodd"),u(t,"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(t,"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"),u(e,"xmlns","http://www.w3.org/2000/svg"),u(e,"aria-hidden","true"),u(e,"data-testid","episodes-icon")},m(l,r){k(l,e,r),d(e,t),d(e,n),d(e,o)},p:Z,i:Z,o:Z,d(l){l&&y(e)}}}class Nv extends ke{constructor(e){super(),ye(this,e,null,Mv,we,{})}}function Rv(i){let e,t;return{c(){e=M("svg"),t=M("path"),u(t,"opacity",".7"),u(t,"fill-rule","evenodd"),u(t,"clip-rule","evenodd"),u(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-.708Z"),u(t,"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){k(n,e,o),d(e,t)},p:Z,i:Z,o:Z,d(n){n&&y(e)}}}class Bv extends ke{constructor(e){super(),ye(this,e,null,Rv,we,{})}}function Ov(i){Fe(i,"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 Dv(i){let e,t,n,o;e=new Nv({});function l(a,c){if(a[2]===Dn.FULL)return Uv;if(a[2]===Dn.COUNT)return Hv}let r=l(i),s=r&&r(i);return{c(){F(e.$$.fragment),t=N(),s&&s.c(),n=wt()},m(a,c){O(e,a,c),k(a,t,c),s&&s.m(a,c),k(a,n,c),o=!0},p(a,c){r===(r=l(a))&&s?s.p(a,c):(s&&s.d(1),s=r&&r(a),s&&(s.c(),s.m(n.parentNode,n)))},i(a){o||(m(e.$$.fragment,a),o=!0)},o(a){p(e.$$.fragment,a),o=!1},d(a){a&&(y(t),y(n)),D(e,a),s&&s.d(a)}}}function Fv(i){let e,t,n,o,l,r;return l=new Bv({}),{c(){e=w("span"),t=je(i[1]),n=N(),o=w("div"),F(l.$$.fragment),u(e,"class","text mobile v-1yhs2ga"),u(o,"class","chevron-episodes v-1yhs2ga")},m(s,a){k(s,e,a),d(e,t),k(s,n,a),k(s,o,a),O(l,o,null),r=!0},p(s,a){(!r||a&2)&&$e(t,s[1])},i(s){r||(m(l.$$.fragment,s),r=!0)},o(s){p(l.$$.fragment,s),r=!1},d(s){s&&(y(e),y(n),y(o)),D(l)}}}function Hv(i){let e,t=i[0].length+"",n;return{c(){e=w("span"),n=je(t),u(e,"class","text count v-1yhs2ga")},m(o,l){k(o,e,l),d(e,n)},p(o,l){l&1&&t!==(t=o[0].length+"")&&$e(n,t)},d(o){o&&y(e)}}}function Uv(i){let e,t;return{c(){e=w("span"),t=je(i[1]),u(e,"class","text v-1yhs2ga")},m(n,o){k(n,e,o),d(e,t)},p(n,o){o&2&&$e(t,n[1])},d(n){n&&y(e)}}}function jv(i){let e,t,n,o;const l=[Fv,Dv],r=[];function s(a,c){return a[4]?0:1}return e=s(i),t=r[e]=l[e](i),{c(){t.c(),n=wt()},m(a,c){r[e].m(a,c),k(a,n,c),o=!0},p(a,c){let f=e;e=s(a),e===f?r[e].p(a,c):(ve(),p(r[f],1,1,()=>{r[f]=null}),pe(),t=r[e],t?t.p(a,c):(t=r[e]=l[e](a),t.c()),m(t,1),t.m(n.parentNode,n))},i(a){o||(m(t),o=!0)},o(a){p(t),o=!1},d(a){a&&y(n),r[e].d(a)}}}function Wv(i){let e,t;return e=new vi({props:{className:"w-max btn-full-opacity "+(i[4]?"px-0":""),testId:"btn-episodes",click:i[5],disabled:!i[6],ariaLabel:i[3],$$slots:{default:[jv]},$$scope:{ctx:i}}}),{c(){F(e.$$.fragment)},m(n,o){O(e,n,o),t=!0},p(n,[o]){const l={};o&16&&(l.className="w-max btn-full-opacity "+(n[4]?"px-0":"")),o&8&&(l.ariaLabel=n[3]),o&65559&&(l.$$scope={dirty:o,ctx:n}),e.$set(l)},i(n){t||(m(e.$$.fragment,n),t=!0)},o(n){p(e.$$.fragment,n),t=!1},d(n){D(e,n)}}}function qv(i,e,t){var I,z,X,$,H;let n,o,l,r,{position:s=0}=e,{duration:a=0}=e,{timeCodes:c=[]}=e;const f=Et(),h=(z=(I=f.callbacks)==null?void 0:I.onEpisodeChanged)!=null?z:ie.noop,g=($=(X=f.callbacks)==null?void 0:X.onEpisodeClicked)!=null?$:ie.noop,v=!!((H=f.callbacks)!=null&&H.onEpisodeClicked),b=f.ui.currentGridType$;q(i,b,R=>t(13,l=R));const A=f.ui.isMobile;q(i,A,R=>t(4,r=R));let S,T,C;return i.$$set=R=>{"position"in R&&t(9,s=R.position),"duration"in R&&t(10,a=R.duration),"timeCodes"in R&&t(0,c=R.timeCodes)},i.$$.update=()=>{if(i.$$.dirty&1536&&t(12,n=s/a),i.$$.dirty&7169){const R=lc(n,a,c);R&&(S==null?void 0:S.text)!==R.text&&(h(R),t(11,S=R))}i.$$.dirty&2048&&t(1,o=(S==null?void 0:S.text)||""),i.$$.dirty&8192&&(un(l,exports.GridTypes.XL)?t(2,T=Dn.FULL):un(l,exports.GridTypes.M)&&c3(l,exports.GridTypes.XL)?t(2,T=Dn.COUNT):t(2,T=Dn.SHORT)),i.$$.dirty&2&&t(3,C=`${re("tooltip_episodes")}: ${o}`)},[c,o,T,C,r,g,v,b,A,s,a,S,n,l]}class ac extends ke{constructor(e){super(),ye(this,e,qv,Wv,we,{position:9,duration:10,timeCodes:0},Ov)}}function Zv(i){let e,t,n;return{c(){e=M("svg"),t=M("path"),n=M("path"),u(t,"fill-rule","evenodd"),u(t,"clip-rule","evenodd"),u(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-.238Z"),u(t,"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,l){k(o,e,l),d(e,t),d(e,n)},p:Z,i:Z,o:Z,d(o){o&&y(e)}}}class Gv extends ke{constructor(e){super(),ye(this,e,null,Zv,we,{})}}function Kv(i){let e,t;return e=new Gv({}),{c(){F(e.$$.fragment)},m(n,o){O(e,n,o),t=!0},i(n){t||(m(e.$$.fragment,n),t=!0)},o(n){p(e.$$.fragment,n),t=!1},d(n){D(e,n)}}}function Yv(i){let e,t;return e=new vi({props:{className:i[0]?"hidden":"",testId:"btn-seek-to-interactive",ariaLabel:re("tooltip_interactive_seek"),disabled:i[1],click:i[2],$$slots:{default:[Kv]},$$scope:{ctx:i}}}),{c(){F(e.$$.fragment)},m(n,o){O(e,n,o),t=!0},p(n,[o]){const l={};o&1&&(l.className=n[0]?"hidden":""),o&2&&(l.disabled=n[1]),o&4&&(l.click=n[2]),o&8&&(l.$$scope={dirty:o,ctx:n}),e.$set(l)},i(n){t||(m(e.$$.fragment,n),t=!0)},o(n){p(e.$$.fragment,n),t=!1},d(n){D(e,n)}}}function Xv(i,e,t){let{hidden:n=!1}=e,{disabled:o=!1}=e,{click:l}=e;return i.$$set=r=>{"hidden"in r&&t(0,n=r.hidden),"disabled"in r&&t(1,o=r.disabled),"click"in r&&t(2,l=r.click)},[n,o,l]}class uc extends ke{constructor(e){super(),ye(this,e,Xv,Yv,we,{hidden:0,disabled:1,click:2})}}function Qv(i){let e,t,n;return{c(){e=M("svg"),t=M("path"),n=M("path"),u(t,"fill-rule","evenodd"),u(t,"clip-rule","evenodd"),u(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.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(t,"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"),E(n,"hidden",!i[0]),u(e,"width","24"),u(e,"height","24"),u(e,"fill","none"),u(e,"xmlns","http://www.w3.org/2000/svg")},m(o,l){k(o,e,l),d(e,t),d(e,n)},p(o,[l]){l&1&&E(n,"hidden",!o[0])},i:Z,o:Z,d(o){o&&y(e)}}}function Jv(i,e,t){let{isOpened:n=!1}=e;return i.$$set=o=>{"isOpened"in o&&t(0,n=o.isOpened)},[n]}class xv extends ke{constructor(e){super(),ye(this,e,Jv,Qv,we,{isOpened:0})}}function $v(i){let e,t;return e=new xv({props:{isOpened:i[2]}}),{c(){F(e.$$.fragment)},m(n,o){O(e,n,o),t=!0},p(n,o){const l={};o&4&&(l.isOpened=n[2]),e.$set(l)},i(n){t||(m(e.$$.fragment,n),t=!0)},o(n){p(e.$$.fragment,n),t=!1},d(n){D(e,n)}}}function ep(i){let e,t;return e=new vi({props:{className:i[0]?"hidden":"",testId:"btn-graph",disabled:i[1],ariaLabel:i[4],click:i[3],$$slots:{default:[$v]},$$scope:{ctx:i}}}),{c(){F(e.$$.fragment)},m(n,o){O(e,n,o),t=!0},p(n,[o]){const l={};o&1&&(l.className=n[0]?"hidden":""),o&2&&(l.disabled=n[1]),o&16&&(l.ariaLabel=n[4]),o&8&&(l.click=n[3]),o&36&&(l.$$scope={dirty:o,ctx:n}),e.$set(l)},i(n){t||(m(e.$$.fragment,n),t=!0)},o(n){p(e.$$.fragment,n),t=!1},d(n){D(e,n)}}}function tp(i,e,t){let{hidden:n=!1}=e,{disabled:o=!1}=e,{graphIsOpened:l=!1}=e,{click:r}=e,s;return i.$$set=a=>{"hidden"in a&&t(0,n=a.hidden),"disabled"in a&&t(1,o=a.disabled),"graphIsOpened"in a&&t(2,l=a.graphIsOpened),"click"in a&&t(3,r=a.click)},i.$$.update=()=>{i.$$.dirty&4&&t(4,s=re(l?"tooltip_interactive_graph_on":"tooltip_interactive_graph_off"))},[n,o,l,r,s]}class cc extends ke{constructor(e){super(),ye(this,e,tp,ep,we,{hidden:0,disabled:1,graphIsOpened:2,click:3})}}function ip(i){let e,t;return{c(){e=M("svg"),t=M("path"),u(t,"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(t,"fill","#fff"),u(e,"width","24"),u(e,"height","24"),u(e,"fill","none"),u(e,"xmlns","http://www.w3.org/2000/svg")},m(n,o){k(n,e,o),d(e,t)},p:Z,i:Z,o:Z,d(n){n&&y(e)}}}class np extends ke{constructor(e){super(),ye(this,e,null,ip,we,{})}}function op(i){Fe(i,"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 Us(i){let e;return{c(){e=w("div"),u(e,"class","icon-background-mobile v-1ot3duq")},m(t,n){k(t,e,n)},d(t){t&&y(e)}}}function lp(i){let e,t,n,o,l=i[0]&&Us();return n=new np({}),{c(){l&&l.c(),e=N(),t=w("div"),F(n.$$.fragment),u(t,"class","v-1ot3duq"),E(t,"mobile",i[0])},m(r,s){l&&l.m(r,s),k(r,e,s),k(r,t,s),O(n,t,null),o=!0},p(r,s){r[0]?l||(l=Us(),l.c(),l.m(e.parentNode,e)):l&&(l.d(1),l=null),(!o||s&1)&&E(t,"mobile",r[0])},i(r){o||(m(n.$$.fragment,r),o=!0)},o(r){p(n.$$.fragment,r),o=!1},d(r){r&&(y(e),y(t)),l&&l.d(r),D(n)}}}function rp(i){let e,t;return e=new vi({props:{className:(i[0]?"btn-m--play":"")+" "+i[2],testId:"btn-replay",ariaLabel:re("tooltip_restart"),disabled:i[1],click:i[3],$$slots:{default:[lp]},$$scope:{ctx:i}}}),{c(){F(e.$$.fragment)},m(n,o){O(e,n,o),t=!0},p(n,[o]){const l={};o&5&&(l.className=(n[0]?"btn-m--play":"")+" "+n[2]),o&2&&(l.disabled=n[1]),o&8&&(l.click=n[3]),o&17&&(l.$$scope={dirty:o,ctx:n}),e.$set(l)},i(n){t||(m(e.$$.fragment,n),t=!0)},o(n){p(e.$$.fragment,n),t=!1},d(n){D(e,n)}}}function sp(i,e,t){let{isMobile:n=!1}=e,{disabled:o=!1}=e,{className:l=""}=e,{click:r=ie.noop}=e;return i.$$set=s=>{"isMobile"in s&&t(0,n=s.isMobile),"disabled"in s&&t(1,o=s.disabled),"className"in s&&t(2,l=s.className),"click"in s&&t(3,r=s.click)},[n,o,l,r]}class Yl extends ke{constructor(e){super(),ye(this,e,sp,rp,we,{isMobile:0,disabled:1,className:2,click:3},op)}}function ap(i){let e,t;return{c(){e=M("svg"),t=M("path"),u(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.853l-5.478-3.349Z"),u(t,"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){k(n,e,o),d(e,t)},p:Z,i:Z,o:Z,d(n){n&&y(e)}}}class up extends ke{constructor(e){super(),ye(this,e,null,ap,we,{})}}function cp(i){let e,t;return e=new up({}),{c(){F(e.$$.fragment)},m(n,o){O(e,n,o),t=!0},i(n){t||(m(e.$$.fragment,n),t=!0)},o(n){p(e.$$.fragment,n),t=!1},d(n){D(e,n)}}}function fp(i){let e,t;return e=new vi({props:{className:i[0]?"hidden":"",testId:"btn-play-prev-chapter",ariaLabel:re("tooltip_interactive_go_back"),disabled:i[1],click:i[2],$$slots:{default:[cp]},$$scope:{ctx:i}}}),{c(){F(e.$$.fragment)},m(n,o){O(e,n,o),t=!0},p(n,[o]){const l={};o&1&&(l.className=n[0]?"hidden":""),o&2&&(l.disabled=n[1]),o&4&&(l.click=n[2]),o&8&&(l.$$scope={dirty:o,ctx:n}),e.$set(l)},i(n){t||(m(e.$$.fragment,n),t=!0)},o(n){p(e.$$.fragment,n),t=!1},d(n){D(e,n)}}}function dp(i,e,t){let{hidden:n=!1}=e,{disabled:o=!1}=e,{click:l}=e;return i.$$set=r=>{"hidden"in r&&t(0,n=r.hidden),"disabled"in r&&t(1,o=r.disabled),"click"in r&&t(2,l=r.click)},[n,o,l]}class fc extends ke{constructor(e){super(),ye(this,e,dp,fp,we,{hidden:0,disabled:1,click:2})}}function mp(i){Fe(i,"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 hp(i){let e,t,n,o;return{c(){e=w("img"),u(e,"class","icon v-1x1zctw"),or(e.src,t=i[0])||u(e,"src",t),u(e,"aria-hidden","true")},m(l,r){k(l,e,r),n||(o=Ve(e,"error",i[7]),n=!0)},p(l,r){r&1&&!or(e.src,t=l[0])&&u(e,"src",t)},d(l){l&&y(e),n=!1,o()}}}function vp(i){let e;return{c(){e=w("div"),e.innerHTML='<div class="inner v-1x1zctw"></div>',u(e,"class","icon error-stub v-1x1zctw")},m(t,n){k(t,e,n)},p:Z,d(t){t&&y(e)}}}function pp(i){let e;function t(l,r){return l[5]?vp:hp}let n=t(i),o=n(i);return{c(){o.c(),e=wt()},m(l,r){o.m(l,r),k(l,e,r)},p(l,r){n===(n=t(l))&&o?o.p(l,r):(o.d(1),o=n(l),o&&(o.c(),o.m(e.parentNode,e)))},d(l){l&&y(e),o.d(l)}}}function gp(i){let e,t;return e=new vi({props:{className:i[4]?"btn-full-opacity":"",ariaLabel:i[1],click:i[3],disabled:i[6],testId:i[2],$$slots:{default:[pp]},$$scope:{ctx:i}}}),{c(){F(e.$$.fragment)},m(n,o){O(e,n,o),t=!0},p(n,[o]){const 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||(m(e.$$.fragment,n),t=!0)},o(n){p(e.$$.fragment,n),t=!1},d(n){D(e,n)}}}function bp(i,e,t){let n,o,l,{iconUrl:r}=e,{ariaLabel:s}=e,{disabled:a=!1}=e,{testId:c}=e,{onClick:f=ie.noop}=e;const h=()=>{t(5,l=!0)};return i.$$set=g=>{"iconUrl"in g&&t(0,r=g.iconUrl),"ariaLabel"in g&&t(1,s=g.ariaLabel),"disabled"in g&&t(8,a=g.disabled),"testId"in g&&t(2,c=g.testId),"onClick"in g&&t(3,f=g.onClick)},i.$$.update=()=>{i.$$.dirty&8&&t(4,n=f===ie.noop),i.$$.dirty&272&&t(6,o=n||a)},t(5,l=!1),[r,s,c,f,n,l,o,h,a]}class dc extends ke{constructor(e){super(),ye(this,e,bp,gp,we,{iconUrl:0,ariaLabel:1,disabled:8,testId:2,onClick:3},mp)}}function _p(i){Fe(i,"v-1cwzjrb",".wrapper-bottom.v-1cwzjrb.v-1cwzjrb{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-1cwzjrb>.v-1cwzjrb{pointer-events:auto}.controls.v-1cwzjrb.v-1cwzjrb{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-1cwzjrb.v-1cwzjrb,.controls-right.v-1cwzjrb.v-1cwzjrb{display:flex;align-content:center}.controls-left.v-1cwzjrb.v-1cwzjrb{flex-grow:1;min-width:0}.controls-left.v-1cwzjrb > *:not(:first-child),.controls-right.v-1cwzjrb > *{margin-left:var(--controls-desktop-item-margin-left)}.controls-hidden.v-1cwzjrb.v-1cwzjrb{visibility:visible;transform:translateY(100%)}.wrapper-bottom.no-smooth.v-1cwzjrb.v-1cwzjrb{transition:none}.settings-menu.v-1cwzjrb.v-1cwzjrb{bottom:57px;right:18px;position:absolute;transition:opacity 0.2s, visibility 0.2s}")}function js(i,e,t){const n=i.slice();return n[166]=e[t].iconUrl,n[167]=e[t].ariaLabel,n[168]=e[t].testId,n[169]=e[t].onClick,n[170]=e[t].tooltip,n[172]=t,n}function Ws(i){let e,t,n;function o(r){i[137](r)}let l={disabled:!i[9],controlInfo:i[92].prevButton,tooltipContent:re("tooltip_previous"),$$slots:{default:[wp]},$$scope:{ctx:i}};return i[30]!==void 0&&(l.width=i[30]),e=new Zt({props:l}),Ke.push(()=>Ct(e,"width",o)),{c(){F(e.$$.fragment)},m(r,s){O(e,r,s),n=!0},p(r,s){const a={};s[0]&512&&(a.disabled=!r[9]),s[0]&4608|s[5]&262144&&(a.$$scope={dirty:s,ctx:r}),!t&&s[0]&1073741824&&(t=!0,a.width=r[30],Pt(()=>t=!1)),e.$set(a)},i(r){n||(m(e.$$.fragment,r),n=!0)},o(r){p(e.$$.fragment,r),n=!1},d(r){D(e,r)}}}function wp(i){let e,t;return e=new Qo({props:{click:i[12],type:"prev",disabled:!i[9],isMobile:!1}}),{c(){F(e.$$.fragment)},m(n,o){O(e,n,o),t=!0},p(n,o){const l={};o[0]&4096&&(l.click=n[12]),o[0]&512&&(l.disabled=!n[9]),e.$set(l)},i(n){t||(m(e.$$.fragment,n),t=!0)},o(n){p(e.$$.fragment,n),t=!1},d(n){D(e,n)}}}function qs(i){let e,t,n;function o(r){i[138](r)}let l={disabled:i[66],controlInfo:i[92].replayButton,tooltipContent:re("tooltip_restart"),$$slots:{default:[yp]},$$scope:{ctx:i}};return i[31]!==void 0&&(l.width=i[31]),e=new Zt({props:l}),Ke.push(()=>Ct(e,"width",o)),{c(){F(e.$$.fragment)},m(r,s){O(e,r,s),n=!0},p(r,s){const a={};s[2]&16&&(a.disabled=r[66]),s[2]&16|s[5]&262144&&(a.$$scope={dirty:s,ctx:r}),!t&&s[1]&1&&(t=!0,a.width=r[31],Pt(()=>t=!1)),e.$set(a)},i(r){n||(m(e.$$.fragment,r),n=!0)},o(r){p(e.$$.fragment,r),n=!1},d(r){D(e,r)}}}function yp(i){let e,t;return e=new Yl({props:{click:i[115],disabled:i[66]}}),{c(){F(e.$$.fragment)},m(n,o){O(e,n,o),t=!0},p(n,o){const l={};o[2]&16&&(l.disabled=n[66]),e.$set(l)},i(n){t||(m(e.$$.fragment,n),t=!0)},o(n){p(e.$$.fragment,n),t=!1},d(n){D(e,n)}}}function Zs(i){let e,t,n;function o(r){i[139](r)}let l={controlInfo:i[92].playButton,tooltipContent:i[57],disabled:i[67],$$slots:{default:[kp]},$$scope:{ctx:i}};return i[32]!==void 0&&(l.width=i[32]),e=new Zt({props:l}),Ke.push(()=>Ct(e,"width",o)),{c(){F(e.$$.fragment)},m(r,s){O(e,r,s),n=!0},p(r,s){const a={};s[1]&67108864&&(a.tooltipContent=r[57]),s[2]&32&&(a.disabled=r[67]),s[1]&2097152|s[2]&32|s[5]&262144&&(a.$$scope={dirty:s,ctx:r}),!t&&s[1]&2&&(t=!0,a.width=r[32],Pt(()=>t=!1)),e.$set(a)},i(r){n||(m(e.$$.fragment,r),n=!0)},o(r){p(e.$$.fragment,r),n=!1},d(r){D(e,r)}}}function kp(i){let e,t;return e=new Kl({props:{isMobile:!1,isPlaying:i[52],click:i[77],disabled:i[67]}}),{c(){F(e.$$.fragment)},m(n,o){O(e,n,o),t=!0},p(n,o){const l={};o[1]&2097152&&(l.isPlaying=n[52]),o[2]&32&&(l.disabled=n[67]),e.$set(l)},i(n){t||(m(e.$$.fragment,n),t=!0)},o(n){p(e.$$.fragment,n),t=!1},d(n){D(e,n)}}}function Gs(i){let e,t,n;function o(r){i[140](r)}let l={disabled:!i[8],controlInfo:i[92].nextButton,tooltipContent:re("tooltip_next"),$$slots:{default:[Sp]},$$scope:{ctx:i}};return i[33]!==void 0&&(l.width=i[33]),e=new Zt({props:l}),Ke.push(()=>Ct(e,"width",o)),{c(){F(e.$$.fragment)},m(r,s){O(e,r,s),n=!0},p(r,s){const a={};s[0]&256&&(a.disabled=!r[8]),s[0]&2304|s[5]&262144&&(a.$$scope={dirty:s,ctx:r}),!t&&s[1]&4&&(t=!0,a.width=r[33],Pt(()=>t=!1)),e.$set(a)},i(r){n||(m(e.$$.fragment,r),n=!0)},o(r){p(e.$$.fragment,r),n=!1},d(r){D(e,r)}}}function Sp(i){let e,t;return e=new Qo({props:{click:i[11],type:"next",disabled:!i[8],isMobile:!1}}),{c(){F(e.$$.fragment)},m(n,o){O(e,n,o),t=!0},p(n,o){const l={};o[0]&2048&&(l.click=n[11]),o[0]&256&&(l.disabled=!n[8]),e.$set(l)},i(n){t||(m(e.$$.fragment,n),t=!0)},o(n){p(e.$$.fragment,n),t=!1},d(n){D(e,n)}}}function Pp(i){let e,t,n,o,l=i[108]&&Cp(i),r=i[107]&&Ep(i),s=i[106]&&Lp(i);return{c(){l&&l.c(),e=N(),r&&r.c(),t=N(),s&&s.c(),n=wt()},m(a,c){l&&l.m(a,c),k(a,e,c),r&&r.m(a,c),k(a,t,c),s&&s.m(a,c),k(a,n,c),o=!0},p(a,c){a[108]&&l.p(a,c),a[107]&&r.p(a,c),a[106]&&s.p(a,c)},i(a){o||(m(l),m(r),m(s),o=!0)},o(a){p(l),p(r),p(s),o=!1},d(a){a&&(y(e),y(t),y(n)),l&&l.d(a),r&&r.d(a),s&&s.d(a)}}}function Cp(i){let e,t,n;function o(r){i[141](r)}let l={disabled:i[65],controlInfo:i[92].playPrevChapterButton,tooltipContent:re("tooltip_interactive_go_back"),disabledTooltipContent:i[110]&&re(i[110]),$$slots:{default:[Tp]},$$scope:{ctx:i}};return i[34]!==void 0&&(l.width=i[34]),e=new Zt({props:l}),Ke.push(()=>Ct(e,"width",o)),{c(){F(e.$$.fragment)},m(r,s){O(e,r,s),n=!0},p(r,s){const a={};s[2]&8&&(a.disabled=r[65]),s[0]&131072|s[2]&8|s[5]&262144&&(a.$$scope={dirty:s,ctx:r}),!t&&s[1]&8&&(t=!0,a.width=r[34],Pt(()=>t=!1)),e.$set(a)},i(r){n||(m(e.$$.fragment,r),n=!0)},o(r){p(e.$$.fragment,r),n=!1},d(r){D(e,r)}}}function Tp(i){let e,t;return e=new fc({props:{disabled:i[65],click:i[17]}}),{c(){F(e.$$.fragment)},m(n,o){O(e,n,o),t=!0},p(n,o){const l={};o[2]&8&&(l.disabled=n[65]),o[0]&131072&&(l.click=n[17]),e.$set(l)},i(n){t||(m(e.$$.fragment,n),t=!0)},o(n){p(e.$$.fragment,n),t=!1},d(n){D(e,n)}}}function Ep(i){let e,t,n;function o(r){i[142](r)}let l={disabled:i[68],controlInfo:i[92].seekToInteractiveButton,tooltipContent:re("tooltip_interactive_seek"),$$slots:{default:[Ap]},$$scope:{ctx:i}};return i[35]!==void 0&&(l.width=i[35]),e=new Zt({props:l}),Ke.push(()=>Ct(e,"width",o)),{c(){F(e.$$.fragment)},m(r,s){O(e,r,s),n=!0},p(r,s){const a={};s[2]&64&&(a.disabled=r[68]),s[0]&32768|s[2]&64|s[5]&262144&&(a.$$scope={dirty:s,ctx:r}),!t&&s[1]&16&&(t=!0,a.width=r[35],Pt(()=>t=!1)),e.$set(a)},i(r){n||(m(e.$$.fragment,r),n=!0)},o(r){p(e.$$.fragment,r),n=!1},d(r){D(e,r)}}}function Ap(i){let e,t;return e=new uc({props:{disabled:i[68],click:i[15]}}),{c(){F(e.$$.fragment)},m(n,o){O(e,n,o),t=!0},p(n,o){const l={};o[2]&64&&(l.disabled=n[68]),o[0]&32768&&(l.click=n[15]),e.$set(l)},i(n){t||(m(e.$$.fragment,n),t=!0)},o(n){p(e.$$.fragment,n),t=!1},d(n){D(e,n)}}}function Lp(i){let e,t,n;function o(r){i[143](r)}let l={controlInfo:i[92].interactiveGraphButton,tooltipContent:i[58],disabled:i[69],$$slots:{default:[Vp]},$$scope:{ctx:i}};return i[36]!==void 0&&(l.width=i[36]),e=new Zt({props:l}),Ke.push(()=>Ct(e,"width",o)),{c(){F(e.$$.fragment)},m(r,s){O(e,r,s),n=!0},p(r,s){const a={};s[1]&134217728&&(a.tooltipContent=r[58]),s[2]&128&&(a.disabled=r[69]),s[0]&65536|s[1]&524288|s[2]&128|s[5]&262144&&(a.$$scope={dirty:s,ctx:r}),!t&&s[1]&32&&(t=!0,a.width=r[36],Pt(()=>t=!1)),e.$set(a)},i(r){n||(m(e.$$.fragment,r),n=!0)},o(r){p(e.$$.fragment,r),n=!1},d(r){D(e,r)}}}function Vp(i){let e,t;return e=new cc({props:{click:i[16],graphIsOpened:i[50],disabled:i[69]}}),{c(){F(e.$$.fragment)},m(n,o){O(e,n,o),t=!0},p(n,o){const l={};o[0]&65536&&(l.click=n[16]),o[1]&524288&&(l.graphIsOpened=n[50]),o[2]&128&&(l.disabled=n[69]),e.$set(l)},i(n){t||(m(e.$$.fragment,n),t=!0)},o(n){p(e.$$.fragment,n),t=!1},d(n){D(e,n)}}}function Ks(i){let e,t,n;function o(r){i[144](r)}let l={controlInfo:i[92].liveButton,tooltipContent:i[59],$$slots:{default:[Ip]},$$scope:{ctx:i}};return i[37]!==void 0&&(l.width=i[37]),e=new Zt({props:l}),Ke.push(()=>Ct(e,"width",o)),{c(){F(e.$$.fragment)},m(r,s){O(e,r,s),n=!0},p(r,s){const a={};s[1]&268435456&&(a.tooltipContent=r[59]),s[0]&268435456|s[5]&262144&&(a.$$scope={dirty:s,ctx:r}),!t&&s[1]&64&&(t=!0,a.width=r[37],Pt(()=>t=!1)),e.$set(a)},i(r){n||(m(e.$$.fragment,r),n=!0)},o(r){p(e.$$.fragment,r),n=!1},d(r){D(e,r)}}}function Ip(i){let e,t;return e=new oc({props:{isActiveLive:i[28],click:i[112],isMobile:!1}}),{c(){F(e.$$.fragment)},m(n,o){O(e,n,o),t=!0},p(n,o){const l={};o[0]&268435456&&(l.isActiveLive=n[28]),e.$set(l)},i(n){t||(m(e.$$.fragment,n),t=!0)},o(n){p(e.$$.fragment,n),t=!1},d(n){D(e,n)}}}function Ys(i){let e,t,n;function o(r){i[145](r)}let l={isMobile:!1,showDuration:i[64],position:i[4]?i[71]:i[72],duration:i[4]?i[73]:i[74]};return i[38]!==void 0&&(l.width=i[38]),e=new Ju({props:l}),Ke.push(()=>Ct(e,"width",o)),{c(){F(e.$$.fragment)},m(r,s){O(e,r,s),n=!0},p(r,s){const a={};s[2]&4&&(a.showDuration=r[64]),s[0]&16|s[2]&1536&&(a.position=r[4]?r[71]:r[72]),s[0]&16|s[2]&6144&&(a.duration=r[4]?r[73]:r[74]),!t&&s[1]&128&&(t=!0,a.width=r[38],Pt(()=>t=!1)),e.$set(a)},i(r){n||(m(e.$$.fragment,r),n=!0)},o(r){p(e.$$.fragment,r),n=!1},d(r){D(e,r)}}}function Xs(i){let e,t;return e=new ac({props:{position:i[72],duration:i[74],timeCodes:i[93]}}),{c(){F(e.$$.fragment)},m(n,o){O(e,n,o),t=!0},p(n,o){const l={};o[2]&1024&&(l.position=n[72]),o[2]&4096&&(l.duration=n[74]),e.$set(l)},i(n){t||(m(e.$$.fragment,n),t=!0)},o(n){p(e.$$.fragment,n),t=!1},d(n){D(e,n)}}}function zp(i){let e,t,n=i[27]&&Xs(i);return{c(){n&&n.c(),e=wt()},m(o,l){n&&n.m(o,l),k(o,e,l),t=!0},p(o,l){o[27]?n?(n.p(o,l),l[0]&134217728&&m(n,1)):(n=Xs(o),n.c(),m(n,1),n.m(e.parentNode,e)):n&&(ve(),p(n,1,1,()=>{n=null}),pe())},i(o){t||(m(n),t=!0)},o(o){p(n),t=!1},d(o){o&&y(e),n&&n.d(o)}}}function Mp(i){var n;let e,t;return e=new dc({props:{iconUrl:i[166],ariaLabel:(n=i[167])!=null?n:i[170],testId:i[168],onClick:i[169]}}),{c(){F(e.$$.fragment)},m(o,l){O(e,o,l),t=!0},p(o,l){var s;const r={};l[1]&32768&&(r.iconUrl=o[166]),l[1]&32768&&(r.ariaLabel=(s=o[167])!=null?s:o[170]),l[1]&32768&&(r.testId=o[168]),l[1]&32768&&(r.onClick=o[169]),e.$set(r)},i(o){t||(m(e.$$.fragment,o),t=!0)},o(o){p(e.$$.fragment,o),t=!1},d(o){D(e,o)}}}function Qs(i){let e,t;return e=new Zt({props:{tooltipContent:i[170],controlInfo:i[92].additionalButtons[i[172]],width:40,$$slots:{default:[Mp]},$$scope:{ctx:i}}}),{c(){F(e.$$.fragment)},m(n,o){O(e,n,o),t=!0},p(n,o){const l={};o[1]&32768&&(l.tooltipContent=n[170]),o[1]&32768|o[5]&262144&&(l.$$scope={dirty:o,ctx:n}),e.$set(l)},i(n){t||(m(e.$$.fragment,n),t=!0)},o(n){p(e.$$.fragment,n),t=!1},d(n){D(e,n)}}}function Js(i){let e,t,n;function o(r){i[148](r)}let l={disabled:!i[6],controlInfo:i[92].vkLogo,tooltipContent:i[60],$$slots:{default:[Np]},$$scope:{ctx:i}};return i[40]!==void 0&&(l.width=i[40]),e=new Zt({props:l}),Ke.push(()=>Ct(e,"width",o)),{c(){F(e.$$.fragment)},m(r,s){O(e,r,s),n=!0},p(r,s){const a={};s[0]&64&&(a.disabled=!r[6]),s[1]&536870912&&(a.tooltipContent=r[60]),s[0]&192|s[5]&262144&&(a.$$scope={dirty:s,ctx:r}),!t&&s[1]&512&&(t=!0,a.width=r[40],Pt(()=>t=!1)),e.$set(a)},i(r){n||(m(e.$$.fragment,r),n=!0)},o(r){p(e.$$.fragment,r),n=!1},d(r){D(e,r)}}}function Np(i){let e,t;return e=new ic({props:{click:i[78],logoClickable:i[6],videoLogoUrl:i[7]}}),{c(){F(e.$$.fragment)},m(n,o){O(e,n,o),t=!0},p(n,o){const l={};o[0]&64&&(l.logoClickable=n[6]),o[0]&128&&(l.videoLogoUrl=n[7]),e.$set(l)},i(n){t||(m(e.$$.fragment,n),t=!0)},o(n){p(e.$$.fragment,n),t=!1},d(n){D(e,n)}}}function Rp(i){let e,t;return e=new g3({props:{isAudioAvailable:i[70],click:i[114]}}),{c(){F(e.$$.fragment)},m(n,o){O(e,n,o),t=!0},p(n,o){const l={};o[2]&256&&(l.isAudioAvailable=n[70]),e.$set(l)},i(n){t||(m(e.$$.fragment,n),t=!0)},o(n){p(e.$$.fragment,n),t=!1},d(n){D(e,n)}}}function xs(i){let e,t,n;function o(r){i[150](r)}let l={controlInfo:i[92].subtitles,tooltipContent:i[61],$$slots:{default:[Bp]},$$scope:{ctx:i}};return i[42]!==void 0&&(l.width=i[42]),e=new Zt({props:l}),Ke.push(()=>Ct(e,"width",o)),{c(){F(e.$$.fragment)},m(r,s){O(e,r,s),n=!0},p(r,s){const a={};s[1]&1073741824&&(a.tooltipContent=r[61]),s[0]&262144|s[5]&262144&&(a.$$scope={dirty:s,ctx:r}),!t&&s[1]&2048&&(t=!0,a.width=r[42],Pt(()=>t=!1)),e.$set(a)},i(r){n||(m(e.$$.fragment,r),n=!0)},o(r){p(e.$$.fragment,r),n=!1},d(r){D(e,r)}}}function Bp(i){let e,t;return e=new Ih({props:{isSubtitlesEnabled:i[18],click:i[79]}}),{c(){F(e.$$.fragment)},m(n,o){O(e,n,o),t=!0},p(n,o){const l={};o[0]&262144&&(l.isSubtitlesEnabled=n[18]),e.$set(l)},i(n){t||(m(e.$$.fragment,n),t=!0)},o(n){p(e.$$.fragment,n),t=!1},d(n){D(e,n)}}}function $s(i){var o;let e,t,n;return t=new Qu({props:{supportLink:i[10],playerControlsHeight:(o=i[56])==null?void 0:o.clientHeight,returnFocus:i[14]}}),{c(){e=w("div"),F(t.$$.fragment),u(e,"class","settings-menu v-1cwzjrb")},m(l,r){k(l,e,r),O(t,e,null),n=!0},p(l,r){var a;const s={};r[0]&1024&&(s.supportLink=l[10]),r[1]&33554432&&(s.playerControlsHeight=(a=l[56])==null?void 0:a.clientHeight),r[0]&16384&&(s.returnFocus=l[14]),t.$set(s)},i(l){n||(m(t.$$.fragment,l),n=!0)},o(l){p(t.$$.fragment,l),n=!1},d(l){l&&y(e),D(t)}}}function ea(i){let e,t,n;function o(r){i[151](r)}let l={controlInfo:i[92].settings,tooltipContent:i[76]?void 0:re("tooltip_settings_off"),$$slots:{default:[Op]},$$scope:{ctx:i}};return i[43]!==void 0&&(l.width=i[43]),e=new Zt({props:l}),Ke.push(()=>Ct(e,"width",o)),{c(){F(e.$$.fragment)},m(r,s){O(e,r,s),n=!0},p(r,s){const a={};s[2]&16384&&(a.tooltipContent=r[76]?void 0:re("tooltip_settings_off")),s[5]&262144&&(a.$$scope={dirty:s,ctx:r}),!t&&s[1]&4096&&(t=!0,a.width=r[43],Pt(()=>t=!1)),e.$set(a)},i(r){n||(m(e.$$.fragment,r),n=!0)},o(r){p(e.$$.fragment,r),n=!1},d(r){D(e,r)}}}function Op(i){let e,t;return e=new ql({}),{c(){F(e.$$.fragment)},m(n,o){O(e,n,o),t=!0},i(n){t||(m(e.$$.fragment,n),t=!0)},o(n){p(e.$$.fragment,n),t=!1},d(n){D(e,n)}}}function ta(i){let e,t,n;function o(r){i[152](r)}let l={controlInfo:i[92].fullscreen,tooltipContent:i[62],$$slots:{default:[Dp]},$$scope:{ctx:i}};return i[44]!==void 0&&(l.width=i[44]),e=new Zt({props:l}),Ke.push(()=>Ct(e,"width",o)),{c(){F(e.$$.fragment)},m(r,s){O(e,r,s),n=!0},p(r,s){const a={};s[2]&1&&(a.tooltipContent=r[62]),s[0]&8192|s[1]&262144|s[5]&262144&&(a.$$scope={dirty:s,ctx:r}),!t&&s[1]&8192&&(t=!0,a.width=r[44],Pt(()=>t=!1)),e.$set(a)},i(r){n||(m(e.$$.fragment,r),n=!0)},o(r){p(e.$$.fragment,r),n=!1},d(r){D(e,r)}}}function Dp(i){let e,t;return e=new ec({props:{click:i[13],isFullscreen:i[49]}}),{c(){F(e.$$.fragment)},m(n,o){O(e,n,o),t=!0},p(n,o){const l={};o[0]&8192&&(l.click=n[13]),o[1]&262144&&(l.isFullscreen=n[49]),e.$set(l)},i(n){t||(m(e.$$.fragment,n),t=!0)},o(n){p(e.$$.fragment,n),t=!1},d(n){D(e,n)}}}function ia(i){let e,t,n;function o(r){i[153](r)}let l={controlInfo:i[92].chromecast,tooltipContent:i[63],$$slots:{default:[Fp]},$$scope:{ctx:i}};return i[45]!==void 0&&(l.width=i[45]),e=new Zt({props:l}),Ke.push(()=>Ct(e,"width",o)),{c(){F(e.$$.fragment)},m(r,s){O(e,r,s),n=!0},p(r,s){const a={};s[2]&2&&(a.tooltipContent=r[63]),s[1]&131072|s[5]&262144&&(a.$$scope={dirty:s,ctx:r}),!t&&s[1]&16384&&(t=!0,a.width=r[45],Pt(()=>t=!1)),e.$set(a)},i(r){n||(m(e.$$.fragment,r),n=!0)},o(r){p(e.$$.fragment,r),n=!1},d(r){D(e,r)}}}function Fp(i){let e,t;return e=new nc({props:{isMobile:!1,state:i[48],click:i[111]}}),{c(){F(e.$$.fragment)},m(n,o){O(e,n,o),t=!0},p(n,o){const l={};o[1]&131072&&(l.state=n[48]),e.$set(l)},i(n){t||(m(e.$$.fragment,n),t=!0)},o(n){p(e.$$.fragment,n),t=!1},d(n){D(e,n)}}}function Hp(i){let e,t,n,o,l,r,s,a,c,f,h,g,v,b,A,S,T,C,I,z,X,$,H,R,oe,se,L,ce,J;t=new sc({props:{isHidden:!i[55],isAds:i[4],canRewindLive:i[5],isRewindableLive:i[51]}});let U=i[54]&&Ws(i),_=i[19]&&qs(i),K=i[20]&&Zs(i),ue=i[53]&&Gs(i),_e=i[105]&&Pp(i),he=!i[4]&&i[47]&&Ks(i),ae=i[26]&&Ys(i);function Ee(G){i[146](G)}let Y={className:"w-max",disabled:!i[27],controlInfo:i[92].episodes,tooltipContent:re("tooltip_episodes"),$$slots:{default:[zp]},$$scope:{ctx:i}};i[39]!==void 0&&(Y.width=i[39]),v=new Zt({props:Y}),Ke.push(()=>Ct(v,"width",Ee));let V=Wt(i[46]),le=[];for(let G=0;G<V.length;G+=1)le[G]=Qs(js(i,V,G));const x=G=>p(le[G],1,1,()=>{le[G]=null});let Ae=i[24]&&Js(i);function B(G){i[149](G)}let ee={$$slots:{default:[Rp]},$$scope:{ctx:i}};i[41]!==void 0&&(ee.width=i[41]),z=new Zt({props:ee}),Ke.push(()=>Ct(z,"width",B));let ze=i[22]&&xs(i),Ce=!i[75]&&!i[4]&&$s(i),ge=i[23]&&ea(i),Se=i[25]&&ta(i),Pe=i[21]&&ia(i);return{c(){e=w("div"),F(t.$$.fragment),n=N(),o=w("div"),l=w("div"),U&&U.c(),r=N(),_&&_.c(),s=N(),K&&K.c(),a=N(),ue&&ue.c(),c=N(),_e&&_e.c(),f=N(),he&&he.c(),h=N(),ae&&ae.c(),g=N(),F(v.$$.fragment),S=N(),T=w("div");for(let G=0;G<le.length;G+=1)le[G].c();C=N(),Ae&&Ae.c(),I=N(),F(z.$$.fragment),$=N(),ze&&ze.c(),H=N(),Ce&&Ce.c(),R=N(),ge&&ge.c(),oe=N(),Se&&Se.c(),se=N(),Pe&&Pe.c(),u(l,"class","controls-left v-1cwzjrb"),Fn(()=>i[147].call(l)),u(T,"class","controls-right v-1cwzjrb"),u(o,"class","controls v-1cwzjrb"),u(e,"class","wrapper-bottom v-1cwzjrb"),E(e,"hidden",i[1]),E(e,"controls-hidden",!i[3]),E(e,"no-smooth",i[2])},m(G,j){k(G,e,j),O(t,e,null),d(e,n),d(e,o),d(o,l),U&&U.m(l,null),d(l,r),_&&_.m(l,null),d(l,s),K&&K.m(l,null),d(l,a),ue&&ue.m(l,null),d(l,c),_e&&_e.m(l,null),d(l,f),he&&he.m(l,null),d(l,h),ae&&ae.m(l,null),d(l,g),O(v,l,null),A=Wo(l,i[147].bind(l)),d(o,S),d(o,T);for(let qe=0;qe<le.length;qe+=1)le[qe]&&le[qe].m(T,null);d(T,C),Ae&&Ae.m(T,null),d(T,I),O(z,T,null),d(T,$),ze&&ze.m(T,null),d(T,H),Ce&&Ce.m(T,null),d(T,R),ge&&ge.m(T,null),d(T,oe),Se&&Se.m(T,null),d(T,se),Pe&&Pe.m(T,null),i[154](o),i[155](e),L=!0,ce||(J=[Ve(e,"pointermove",i[113]),Ve(e,"pointerenter",i[113])],ce=!0)},p(G,j){const qe={};j[1]&16777216&&(qe.isHidden=!G[55]),j[0]&16&&(qe.isAds=G[4]),j[0]&32&&(qe.canRewindLive=G[5]),j[1]&1048576&&(qe.isRewindableLive=G[51]),t.$set(qe),G[54]?U?(U.p(G,j),j[1]&8388608&&m(U,1)):(U=Ws(G),U.c(),m(U,1),U.m(l,r)):U&&(ve(),p(U,1,1,()=>{U=null}),pe()),G[19]?_?(_.p(G,j),j[0]&524288&&m(_,1)):(_=qs(G),_.c(),m(_,1),_.m(l,s)):_&&(ve(),p(_,1,1,()=>{_=null}),pe()),G[20]?K?(K.p(G,j),j[0]&1048576&&m(K,1)):(K=Zs(G),K.c(),m(K,1),K.m(l,a)):K&&(ve(),p(K,1,1,()=>{K=null}),pe()),G[53]?ue?(ue.p(G,j),j[1]&4194304&&m(ue,1)):(ue=Gs(G),ue.c(),m(ue,1),ue.m(l,c)):ue&&(ve(),p(ue,1,1,()=>{ue=null}),pe()),G[105]&&_e.p(G,j),!G[4]&&G[47]?he?(he.p(G,j),j[0]&16|j[1]&65536&&m(he,1)):(he=Ks(G),he.c(),m(he,1),he.m(l,h)):he&&(ve(),p(he,1,1,()=>{he=null}),pe()),G[26]?ae?(ae.p(G,j),j[0]&67108864&&m(ae,1)):(ae=Ys(G),ae.c(),m(ae,1),ae.m(l,g)):ae&&(ve(),p(ae,1,1,()=>{ae=null}),pe());const tt={};if(j[0]&134217728&&(tt.disabled=!G[27]),j[0]&134217728|j[2]&5120|j[5]&262144&&(tt.$$scope={dirty:j,ctx:G}),!b&&j[1]&256&&(b=!0,tt.width=G[39],Pt(()=>b=!1)),v.$set(tt),j[1]&32768|j[2]&1073741824){V=Wt(G[46]);let We;for(We=0;We<V.length;We+=1){const Me=js(G,V,We);le[We]?(le[We].p(Me,j),m(le[We],1)):(le[We]=Qs(Me),le[We].c(),m(le[We],1),le[We].m(T,C))}for(ve(),We=V.length;We<le.length;We+=1)x(We);pe()}G[24]?Ae?(Ae.p(G,j),j[0]&16777216&&m(Ae,1)):(Ae=Js(G),Ae.c(),m(Ae,1),Ae.m(T,I)):Ae&&(ve(),p(Ae,1,1,()=>{Ae=null}),pe());const it={};j[2]&256|j[5]&262144&&(it.$$scope={dirty:j,ctx:G}),!X&&j[1]&1024&&(X=!0,it.width=G[41],Pt(()=>X=!1)),z.$set(it),G[22]?ze?(ze.p(G,j),j[0]&4194304&&m(ze,1)):(ze=xs(G),ze.c(),m(ze,1),ze.m(T,H)):ze&&(ve(),p(ze,1,1,()=>{ze=null}),pe()),!G[75]&&!G[4]?Ce?(Ce.p(G,j),j[0]&16|j[2]&8192&&m(Ce,1)):(Ce=$s(G),Ce.c(),m(Ce,1),Ce.m(T,R)):Ce&&(ve(),p(Ce,1,1,()=>{Ce=null}),pe()),G[23]?ge?(ge.p(G,j),j[0]&8388608&&m(ge,1)):(ge=ea(G),ge.c(),m(ge,1),ge.m(T,oe)):ge&&(ve(),p(ge,1,1,()=>{ge=null}),pe()),G[25]?Se?(Se.p(G,j),j[0]&33554432&&m(Se,1)):(Se=ta(G),Se.c(),m(Se,1),Se.m(T,se)):Se&&(ve(),p(Se,1,1,()=>{Se=null}),pe()),G[21]?Pe?(Pe.p(G,j),j[0]&2097152&&m(Pe,1)):(Pe=ia(G),Pe.c(),m(Pe,1),Pe.m(T,null)):Pe&&(ve(),p(Pe,1,1,()=>{Pe=null}),pe()),(!L||j[0]&2)&&E(e,"hidden",G[1]),(!L||j[0]&8)&&E(e,"controls-hidden",!G[3]),(!L||j[0]&4)&&E(e,"no-smooth",G[2])},i(G){if(!L){m(t.$$.fragment,G),m(U),m(_),m(K),m(ue),m(_e),m(he),m(ae),m(v.$$.fragment,G);for(let j=0;j<V.length;j+=1)m(le[j]);m(Ae),m(z.$$.fragment,G),m(ze),m(Ce),m(ge),m(Se),m(Pe),L=!0}},o(G){p(t.$$.fragment,G),p(U),p(_),p(K),p(ue),p(_e),p(he),p(ae),p(v.$$.fragment,G),le=le.filter(Boolean);for(let j=0;j<le.length;j+=1)p(le[j]);p(Ae),p(z.$$.fragment,G),p(ze),p(Ce),p(ge),p(Se),p(Pe),L=!1},d(G){G&&y(e),D(t),U&&U.d(),_&&_.d(),K&&K.d(),ue&&ue.d(),_e&&_e.d(),he&&he.d(),ae&&ae.d(),D(v),A(),fn(le,G),Ae&&Ae.d(),D(z),ze&&ze.d(),Ce&&Ce.d(),ge&&ge.d(),Se&&Se.d(),Pe&&Pe.d(),i[154](null),i[155](null),ce=!1,Gt(J)}}}function Up(i,e,t){var Xi,Ei;let n,o,l,r,s,a,c,f,h,g,v,b,A,S,T,C,I,z,X,$,H,R,oe,se,L,ce,J,U,_,K,{bottomHidden:ue}=e,{bottomNoSmooth:_e}=e,{showControls:he}=e,{controlsElementRef:ae=void 0}=e,{isAds:Ee=!1}=e,{canRewindLive:Y}=e,{logoClickable:V}=e,{logoHidden:le}=e,{videoLogoUrl:x}=e,{showNextPrevButtons:Ae}=e,{nextButtonActive:B}=e,{prevButtonActive:ee}=e,{isOneVideoPlaylist:ze=!1}=e,{supportLink:Ce}=e,{customFullscreenSupported:ge=!0}=e,{playNextVideo:Se}=e,{playPrevVideo:Pe}=e,{repeatPlaylist:G}=e,{toggleFullscreen:j}=e,{returnFocus:qe}=e,{seekToInteractive:tt}=e,{toggleGraph:it}=e,{playPrevChapter:We}=e;const Me=Et(),st=tn(),Mt=Me.actions.internal.toggleMuted,Ne=Me.actions.internal.togglePlay,Re=Me.actions.internal.pause,Rt=Me.actions.internal.toggleSubtitle,me=(Xi=Me.callbacks)==null?void 0:Xi.onAudioDoesNotExistHint,nt=(Ei=Me.callbacks)==null?void 0:Ei.onAudioDisabledHint,xe=Me.state.duration$;q(i,xe,ne=>t(74,U=ne));const Qe=Me.state.positionWithScrubbing$;q(i,Qe,ne=>t(72,ce=ne));const Ze=Me.state.playbackState$;q(i,Ze,ne=>t(127,S=ne));const et=Me.state.chromecastConnected$;q(i,et,ne=>t(75,_=ne));const He=Me.state.isAudioAvailable$;q(i,He,ne=>t(70,c=ne));const De=Me.state.isAudioDisabled,pt=Me.state.isEnded$;q(i,pt,ne=>t(133,H=ne));const at=Me.state.isLive$;q(i,at,ne=>t(47,g=ne));const Kt=Me.state.isActiveLive$;q(i,Kt,ne=>t(128,T=ne));const At=Me.state.isRewindableLive$;q(i,At,ne=>t(51,C=ne));const ot=Me.ui.isPictureInPictureActive$;q(i,ot,ne=>t(131,X=ne));const ti=Me.ui.pictureInPictureType$;q(i,ti,ne=>t(130,z=ne));const dt=Me.ui.settingsMenuVisible;q(i,dt,ne=>t(76,K=ne));const Xe=Me.ui.controls,Vt=Me.actions.internal.getVideoEpisodes(),ut=Me.state.chromecastState$;q(i,ut,ne=>t(48,v=ne));const pi=Me.state.availableSubtitlesList$;q(i,pi,ne=>t(132,$=ne));const de=Me.state.currentSubtitle$;q(i,de,ne=>t(134,R=ne));const Te=Xe.disabledControls$;q(i,Te,ne=>t(136,se=ne));const Ie=Me.ads.duration;q(i,Ie,ne=>t(73,J=ne));const Lt=Me.ads.position;q(i,Lt,ne=>t(71,L=ne));const ii=Me.ads.playbackState;q(i,ii,ne=>t(135,oe=ne));const Le=Me.ui.isFullscreen;q(i,Le,ne=>t(49,b=ne));const si=Me.ui.playerSize;q(i,si,ne=>t(129,I=ne));const ai=Me.ui.currentGridType$;q(i,ai,ne=>t(126,h=ne));const Ht=Me.ui.additionalButtons$;q(i,Ht,ne=>t(46,f=ne));const Ci=Me.actions.internal.replayInteractive,Yt=Me.state.isInteractive,Jt=Me.state.isInteractiveGraphEnabled,$i=Me.state.isSeekToInteractiveEnable,en=Me.state.isPlayPrevChapterEnabled,vt=Me.state.graphIsOpened$;q(i,vt,ne=>t(50,A=ne));const Ai=Me.state.playPrevChapterDisabledTooltip,Li=()=>Me.actions.internal.toggleChromecast(),nn=()=>Me.actions.internal.switchToActiveLive(),gt=ne=>{Me.ui.controls.tooltipPointerOffsetX.update(()=>ui?Math.min(Math.max(ne.x-ui.x,0),ui.width):0)};let ui;function Vi(){ui=ae==null?void 0:ae.getBoundingClientRect()}xi(()=>(window.addEventListener("resize",Vi),()=>{window.removeEventListener("resize",Vi)}));let Ii,gi,ci,zi,bi,Hi,Xt,ni,Mi,xt,Ut,fi,_i,Ui,di,wi,Ni,mi,Ri,yi,hi,Ti,jt,Qt,$t,oi,ji,Wi,li,Bi,Oi,ki,Si,Tt,Bt,qi,on,Zi,Ot,Gi,Di,It,fe,rn,Ki;function pn(ne,Nn){let ft=8;const ri=(Sn,Rn,Jo)=>{let Pn=Rn?Sn+Rn+(Sn?s0:0):Sn;return Jo.set({positionStartX:Sn,positionEndX:Pn,isDisplayed:Nn&&Sn!==Pn}),Pn};ft=ri(ft,ne.prevButtonWidth,Xe.prevButton),ft=ri(ft,ne.replayButtonWidth,Xe.replayButton),ft=ri(ft,ne.playButtonWidth,Xe.playButton),ft=ri(ft,ne.nextButtonWidth,Xe.nextButton),ft=ri(ft,ne.playPrevChapterWidth,Xe.playPrevChapterButton),ft=ri(ft,ne.seekToInteractiveWidth,Xe.seekToInteractiveButton),ft=ri(ft,ne.interactiveGraphWidth,Xe.interactiveGraphButton),ft=ri(ft,ne.liveButtonWidth,Xe.liveButton),ft=ri(ft,ne.timeWidth,Xe.time),ft=ri(ft,ne.episodesWidth,Xe.episodes),f.forEach((Sn,Rn)=>{ft=ri(ft,ne.additionalButtonWidths[Rn],Xe.additionalButtons[Rn])}),ft=ri(ft,ne.vkLogoWidth,Xe.vkLogo),ft=ri(ft,ne.volumeWidth,Xe.volume),ft=ri(ft,ne.subtitlesWidth,Xe.subtitles),ft=ri(ft,ne.settingsWidth,Xe.settings),ft=ri(ft,ne.fullscreenWidth,Xe.fullscreen),ri(ft,ne.chromecastWidth,Xe.chromecast)}function gn(){De?nt==null||nt():c?Mt():me==null||me()}const bn=Yt?Ci:ze?Ne:G;function Mn(ne){oi=ne,t(30,oi)}function Q(ne){ji=ne,t(31,ji)}function bt(ne){Wi=ne,t(32,Wi)}function sn(ne){li=ne,t(33,li)}function Yi(ne){Bi=ne,t(34,Bi)}function dn(ne){Oi=ne,t(35,Oi)}function an(ne){ki=ne,t(36,ki)}function io(ne){Si=ne,t(37,Si)}function no(ne){Tt=ne,t(38,Tt)}function oo(ne){Bt=ne,t(39,Bt)}function lo(){$t=this.clientWidth,t(29,$t)}function ro(ne){qi=ne,t(40,qi)}function so(ne){on=ne,t(41,on)}function ao(ne){Zi=ne,t(42,Zi)}function uo(ne){Ot=ne,t(43,Ot)}function co(ne){Gi=ne,t(44,Gi)}function fo(ne){Di=ne,t(45,Di)}function W(ne){Ke[ne?"unshift":"push"](()=>{wi=ne,t(56,wi)})}function St(ne){Ke[ne?"unshift":"push"](()=>{ae=ne,t(0,ae)})}return i.$$set=ne=>{"bottomHidden"in ne&&t(1,ue=ne.bottomHidden),"bottomNoSmooth"in ne&&t(2,_e=ne.bottomNoSmooth),"showControls"in ne&&t(3,he=ne.showControls),"controlsElementRef"in ne&&t(0,ae=ne.controlsElementRef),"isAds"in ne&&t(4,Ee=ne.isAds),"canRewindLive"in ne&&t(5,Y=ne.canRewindLive),"logoClickable"in ne&&t(6,V=ne.logoClickable),"logoHidden"in ne&&t(116,le=ne.logoHidden),"videoLogoUrl"in ne&&t(7,x=ne.videoLogoUrl),"showNextPrevButtons"in ne&&t(117,Ae=ne.showNextPrevButtons),"nextButtonActive"in ne&&t(8,B=ne.nextButtonActive),"prevButtonActive"in ne&&t(9,ee=ne.prevButtonActive),"isOneVideoPlaylist"in ne&&t(118,ze=ne.isOneVideoPlaylist),"supportLink"in ne&&t(10,Ce=ne.supportLink),"customFullscreenSupported"in ne&&t(119,ge=ne.customFullscreenSupported),"playNextVideo"in ne&&t(11,Se=ne.playNextVideo),"playPrevVideo"in ne&&t(12,Pe=ne.playPrevVideo),"repeatPlaylist"in ne&&t(120,G=ne.repeatPlaylist),"toggleFullscreen"in ne&&t(13,j=ne.toggleFullscreen),"returnFocus"in ne&&t(14,qe=ne.returnFocus),"seekToInteractive"in ne&&t(15,tt=ne.seekToInteractive),"toggleGraph"in ne&&t(16,it=ne.toggleGraph),"playPrevChapter"in ne&&t(17,We=ne.playPrevChapter)},i.$$.update=()=>{if(i.$$.dirty[4]&4096&&t(125,n=se.has(ht.EPISODE_BUTTON)),i.$$.dirty[4]&4096&&t(69,o=se.has(ht.GRAPH_BUTTON)),i.$$.dirty[4]&4096&&t(68,l=se.has(ht.SEEK_TO_INTERACTIVE_BUTTON)),i.$$.dirty[4]&4096&&t(67,r=se.has(ht.PLAY_BUTTON)),i.$$.dirty[4]&4096&&t(66,s=se.has(ht.REPLAY_BUTTON)),i.$$.dirty[4]&4096&&t(65,a=se.has(ht.PLAY_PREV_CHAPTER_BUTTON)),i.$$.dirty[0]&1&&ae&&Vi(),i.$$.dirty[0]&16|i.$$.dirty[4]&2056&&t(52,Ii=Ee?oe===qt.PLAYING:S===rt.PlaybackState.PLAYING),i.$$.dirty[4]&1024&&t(18,gi=R.value!=="off"),i.$$.dirty[0]&16|i.$$.dirty[4]&512&&t(19,ci=H&&!Ee||Yt),i.$$.dirty[0]&16|i.$$.dirty[4]&512&&t(20,zi=!H||Yt||Ee),i.$$.dirty[4]&4&&t(121,bi=un(h,exports.GridTypes.M)),i.$$.dirty[0]&272|i.$$.dirty[3]&16777216|i.$$.dirty[4]&4&&t(53,Hi=Ae&&un(h,exports.GridTypes.M)&&!Ee&&B),i.$$.dirty[0]&528|i.$$.dirty[3]&16777216|i.$$.dirty[4]&4&&t(54,Xt=Ae&&un(h,exports.GridTypes.M)&&!Ee&&ee),i.$$.dirty[1]&131072|i.$$.dirty[4]&196&&t(21,ni=v!==rt.ChromecastState.NOT_AVAILABLE&&!(X&&z===yn.DocumentPictureInPicture)&&un(h,exports.GridTypes.M)&&!Yt),i.$$.dirty[4]&260&&t(22,Mi=$.length>0&&un(h,exports.GridTypes.M)),i.$$.dirty[4]&4&&t(23,xt=un(h,exports.GridTypes.S)),i.$$.dirty[3]&8388608&&t(24,Ut=!le),i.$$.dirty[3]&75497472|i.$$.dirty[4]&196&&t(25,fi=st.features.fullscreen&&(le||un(h,exports.GridTypes.S))&&!(X&&z===yn.DocumentPictureInPicture)&&(Yt?ge:!0)),i.$$.dirty[0]&16|i.$$.dirty[1]&65536&&t(26,_i=(!g||Ee)&&!(st.features.interactiveHideTime&&Yt)),i.$$.dirty[4]&32&&t(55,Ui=I.width>100),i.$$.dirty[0]&16|i.$$.dirty[1]&65536|i.$$.dirty[3]&268435456|i.$$.dirty[4]&2&&t(27,di=!Ee&&!g&&!!(Vt!=null&&Vt.length)&&bi&&!n),i.$$.dirty[1]&1048576|i.$$.dirty[4]&16&&t(28,Ni=!C||T),i.$$.dirty[4]&8&&t(57,mi=S===rt.PlaybackState.PLAYING?re("tooltip_pause"):re("tooltip_play")),i.$$.dirty[1]&524288&&t(58,Ri=re(A?"tooltip_interactive_graph_on":"tooltip_interactive_graph_off")),i.$$.dirty[0]&268435456&&t(59,yi=Ni?"":re("tooltip_live")),i.$$.dirty[0]&262144&&t(61,Ti=re(gi?"tooltip_subtitles_on":"tooltip_subtitles_off")),i.$$.dirty[1]&262144&&t(62,jt=re(b?"tooltip_fullscreen_on":"tooltip_fullscreen_off")),i.$$.dirty[1]&131072&&t(63,Qt=v===rt.ChromecastState.CONNECTED?re("tooltip_chromecast_on"):re("tooltip_chromecast_off")),i.$$.dirty[0]&1207435264|i.$$.dirty[1]&131071&&t(122,It={prevButtonWidth:oi!=null?oi:0,replayButtonWidth:ci?ji:0,playButtonWidth:zi?Wi:0,nextButtonWidth:li!=null?li:0,playPrevChapterWidth:en?Bi:0,seekToInteractiveWidth:Yt?Oi:0,interactiveGraphWidth:Jt&&ki!=null?ki:0,liveButtonWidth:g&&Si?Si:0,timeWidth:_i?Tt:0,episodesWidth:Bt,vkLogoWidth:Ut?qi:0,volumeWidth:on,subtitlesWidth:Mi?Zi:0,settingsWidth:xt?Ot:0,fullscreenWidth:fi?Gi:0,chromecastWidth:ni?Di:0,additionalButtonWidths:f.length?f.reduce(ne=>[...ne,40],[]):[]}),i.$$.dirty[3]&1610612736&&(!fe||fe<It.timeWidth)&&t(123,fe=It.timeWidth),i.$$.dirty[0]&738197504|i.$$.dirty[3]&1610612736|i.$$.dirty[4]&4){let ne=0;di&&(un(h,exports.GridTypes.XL)?ne=It.timeWidth:ne=a0);const Nn=It.prevButtonWidth+It.playButtonWidth+It.nextButtonWidth+It.seekToInteractiveWidth+It.interactiveGraphWidth+It.liveButtonWidth+fe+ne;t(124,rn=_i&&$t>=Nn)}i.$$.dirty[4]&5&&t(64,Ki=rn&&un(h,exports.GridTypes.M)),i.$$.dirty[0]&8|i.$$.dirty[3]&536870912&&pn(It,he)},t(60,hi=st.logoType===$n.VK_VIDEO?re("tooltip_vk_video_logo"):re("tooltip_vk_logo")),[ae,ue,_e,he,Ee,Y,V,x,B,ee,Ce,Se,Pe,j,qe,tt,it,We,gi,ci,zi,ni,Mi,xt,Ut,fi,_i,di,Ni,$t,oi,ji,Wi,li,Bi,Oi,ki,Si,Tt,Bt,qi,on,Zi,Ot,Gi,Di,f,g,v,b,A,C,Ii,Hi,Xt,Ui,wi,mi,Ri,yi,hi,Ti,jt,Qt,Ki,a,s,r,l,o,c,L,ce,J,U,_,K,Ne,Re,Rt,xe,Qe,Ze,et,He,pt,at,Kt,At,ot,ti,dt,Xe,Vt,ut,pi,de,Te,Ie,Lt,ii,Le,si,ai,Ht,Yt,Jt,$i,en,vt,Ai,Li,nn,gt,gn,bn,le,Ae,ze,ge,G,bi,It,fe,rn,n,h,S,T,I,z,X,$,H,R,oe,se,Mn,Q,bt,sn,Yi,dn,an,io,no,oo,lo,ro,so,ao,uo,co,fo,W,St]}class jp extends ke{constructor(e){super(),ye(this,e,Up,Hp,we,{bottomHidden:1,bottomNoSmooth:2,showControls:3,controlsElementRef:0,isAds:4,canRewindLive:5,logoClickable:6,logoHidden:116,videoLogoUrl:7,showNextPrevButtons:117,nextButtonActive:8,prevButtonActive:9,isOneVideoPlaylist:118,supportLink:10,customFullscreenSupported:119,playNextVideo:11,playPrevVideo:12,repeatPlaylist:120,toggleFullscreen:13,returnFocus:14,seekToInteractive:15,toggleGraph:16,playPrevChapter:17},_p,[-1,-1,-1,-1,-1,-1])}}function Wp(i){let e,t,n,o;return{c(){e=M("svg"),t=M("g"),n=M("path"),o=M("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(t,"fill","none"),u(t,"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(l,r){k(l,e,r),d(e,t),d(t,n),d(t,o)},p:Z,i:Z,o:Z,d(l){l&&y(e)}}}class qp extends ke{constructor(e){super(),ye(this,e,null,Wp,we,{})}}function Zp(i){Fe(i,"v-d5iohe",".container.v-d5iohe{display:flex;align-items:center}.expanded.v-d5iohe{background-color:rgba(0, 0, 0, 0.56);border-radius:6px}.text.v-d5iohe{font-size:15px;margin-left:8px}")}function na(i){let e;return{c(){e=w("span"),e.textContent=`${re("mobile_unmute")}`,u(e,"class","text v-d5iohe")},m(t,n){k(t,e,n)},p:Z,d(t){t&&y(e)}}}function Gp(i){let e,t,n,o;var l=i[3];function r(a){return{}}l&&(t=vn(l,r()));let s=i[0]&&na();return{c(){e=w("div"),t&&F(t.$$.fragment),n=N(),s&&s.c(),u(e,"class","container v-d5iohe"),u(e,"aria-hidden","true"),E(e,"expanded",i[0])},m(a,c){k(a,e,c),t&&O(t,e,null),d(e,n),s&&s.m(e,null),o=!0},p(a,c){if(c&8&&l!==(l=a[3])){if(t){ve();const f=t;p(f.$$.fragment,1,0,()=>{D(f,1)}),pe()}l?(t=vn(l,r()),F(t.$$.fragment),m(t.$$.fragment,1),O(t,e,n)):t=null}a[0]?s?s.p(a,c):(s=na(),s.c(),s.m(e,null)):s&&(s.d(1),s=null),(!o||c&1)&&E(e,"expanded",a[0])},i(a){o||(t&&m(t.$$.fragment,a),o=!0)},o(a){t&&p(t.$$.fragment,a),o=!1},d(a){a&&y(e),t&&D(t),s&&s.d()}}}function Kp(i){let e,t;return e=new vi({props:{testId:i[0]?"btn-mobile-unmuted":"btn-mobile-muted",click:i[1],ariaLabel:i[2],$$slots:{default:[Gp]},$$scope:{ctx:i}}}),{c(){F(e.$$.fragment)},m(n,o){O(e,n,o),t=!0},p(n,[o]){const l={};o&1&&(l.testId=n[0]?"btn-mobile-unmuted":"btn-mobile-muted"),o&2&&(l.click=n[1]),o&4&&(l.ariaLabel=n[2]),o&41&&(l.$$scope={dirty:o,ctx:n}),e.$set(l)},i(n){t||(m(e.$$.fragment,n),t=!0)},o(n){p(e.$$.fragment,n),t=!1},d(n){D(e,n)}}}function Yp(i,e,t){let{muted:n=!1}=e,{expanded:o=!1}=e,{click:l=ie.noop}=e,r,s;return i.$$set=a=>{"muted"in a&&t(4,n=a.muted),"expanded"in a&&t(0,o=a.expanded),"click"in a&&t(1,l=a.click)},i.$$.update=()=>{i.$$.dirty&16&&t(2,r=re(n?"tooltip_volume":"tooltip_volume_muted")),i.$$.dirty&1&&t(3,s=o?Xo:qp)},[o,l,r,s,n]}class mc extends ke{constructor(e){super(),ye(this,e,Yp,Kp,we,{muted:4,expanded:0,click:1},Zp)}}function Xp(i){let e,t,n,o;return{c(){e=M("svg"),t=M("path"),n=M("path"),o=M("path"),u(t,"fill",i[1]),u(t,"clip-rule","evenodd"),u(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 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",i[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"),E(n,"hidden",!i[0]),u(o,"fill",i[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"),E(o,"hidden",i[0]),u(e,"width","24"),u(e,"height","24"),u(e,"fill","none"),u(e,"xmlns","http://www.w3.org/2000/svg")},m(l,r){k(l,e,r),d(e,t),d(e,n),d(e,o)},p(l,[r]){r&2&&u(t,"fill",l[1]),r&2&&u(n,"fill",l[1]),r&1&&E(n,"hidden",!l[0]),r&2&&u(o,"fill",l[1]),r&1&&E(o,"hidden",l[0])},i:Z,o:Z,d(l){l&&y(e)}}}function Qp(i,e,t){let n,{isActive:o=!1}=e;return i.$$set=l=>{"isActive"in l&&t(0,o=l.isActive)},i.$$.update=()=>{i.$$.dirty&1&&t(1,n=o?"#2688EB":"#fff")},[o,n]}class Jp extends ke{constructor(e){super(),ye(this,e,Qp,Xp,we,{isActive:0})}}function xp(i){let e,t;return e=new Jp({props:{isActive:i[0]}}),{c(){F(e.$$.fragment)},m(n,o){O(e,n,o),t=!0},p(n,o){const l={};o&1&&(l.isActive=n[0]),e.$set(l)},i(n){t||(m(e.$$.fragment,n),t=!0)},o(n){p(e.$$.fragment,n),t=!1},d(n){D(e,n)}}}function $p(i){let e,t;return e=new vi({props:{testId:"btn-pip",ariaLabel:re("menu_pip"),click:i[1],$$slots:{default:[xp]},$$scope:{ctx:i}}}),{c(){F(e.$$.fragment)},m(n,o){O(e,n,o),t=!0},p(n,[o]){const l={};o&2&&(l.click=n[1]),o&5&&(l.$$scope={dirty:o,ctx:n}),e.$set(l)},i(n){t||(m(e.$$.fragment,n),t=!0)},o(n){p(e.$$.fragment,n),t=!1},d(n){D(e,n)}}}function e5(i,e,t){let{isPictureInPictureActive:n=!1}=e,{click:o=ie.noop}=e;return i.$$set=l=>{"isPictureInPictureActive"in l&&t(0,n=l.isPictureInPictureActive),"click"in l&&t(1,o=l.click)},[n,o]}class t5 extends ke{constructor(e){super(),ye(this,e,e5,$p,we,{isPictureInPictureActive:0,click:1})}}function i5(i){Fe(i,"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 oa(i,e,t){const n=i.slice();return n[139]=e[t].iconUrl,n[140]=e[t].ariaLabel,n[141]=e[t].testId,n[142]=e[t].onClick,n[143]=e[t].tooltip,n}function la(i){let e,t,n,o,l,r,s,a,c,f,h,g,v,b,A,S,T,C=(!i[53]||i[55])&&ra(i),I=Wt(i[58]),z=[];for(let _=0;_<I.length;_+=1)z[_]=sa(oa(i,I,_));const X=_=>p(z[_],1,1,()=>{z[_]=null});let $=i[32]&&aa(i),H=i[33]&&ua(i),R=i[59]&&ca(),oe=i[35]&&fa(i),se=i[8]&&da(i),L=i[30]&&ma(i),ce=i[29]&&ha(i),J=i[8]&&va(i),U=i[97]&&!i[25]&&pa(i);return{c(){e=w("div"),t=N(),n=w("div"),C&&C.c(),o=N(),l=w("div");for(let _=0;_<z.length;_+=1)z[_].c();r=N(),$&&$.c(),s=N(),H&&H.c(),a=N(),R&&R.c(),c=N(),oe&&oe.c(),f=N(),h=w("div"),se&&se.c(),g=N(),L&&L.c(),v=N(),ce&&ce.c(),b=N(),J&&J.c(),A=N(),U&&U.c(),S=wt(),u(e,"class","overlay-mobile v-1tcstu3"),E(e,"hidden",!i[38]),u(n,"class","wrapper-top-left v-1tcstu3"),E(n,"hidden",!i[3]),E(n,"fullscreen",i[54]),u(l,"class","wrapper-top-right v-1tcstu3"),E(l,"hidden",!i[3]&&!i[23]),E(l,"fullscreen",i[54]),u(h,"class","wrapper-middle v-1tcstu3"),E(h,"hidden",!i[3]||i[25])},m(_,K){k(_,e,K),k(_,t,K),k(_,n,K),C&&C.m(n,null),k(_,o,K),k(_,l,K);for(let ue=0;ue<z.length;ue+=1)z[ue]&&z[ue].m(l,null);d(l,r),$&&$.m(l,null),d(l,s),H&&H.m(l,null),d(l,a),R&&R.m(l,null),d(l,c),oe&&oe.m(l,null),k(_,f,K),k(_,h,K),se&&se.m(h,null),d(h,g),L&&L.m(h,null),d(h,v),ce&&ce.m(h,null),d(h,b),J&&J.m(h,null),k(_,A,K),U&&U.m(_,K),k(_,S,K),T=!0},p(_,K){if((!T||K[1]&128)&&E(e,"hidden",!_[38]),!_[53]||_[55]?C?(C.p(_,K),K[1]&20971520&&m(C,1)):(C=ra(_),C.c(),m(C,1),C.m(n,null)):C&&(ve(),p(C,1,1,()=>{C=null}),pe()),(!T||K[0]&8)&&E(n,"hidden",!_[3]),(!T||K[1]&8388608)&&E(n,"fullscreen",_[54]),K[1]&134217728){I=Wt(_[58]);let ue;for(ue=0;ue<I.length;ue+=1){const _e=oa(_,I,ue);z[ue]?(z[ue].p(_e,K),m(z[ue],1)):(z[ue]=sa(_e),z[ue].c(),m(z[ue],1),z[ue].m(l,r))}for(ve(),ue=I.length;ue<z.length;ue+=1)X(ue);pe()}_[32]?$?($.p(_,K),K[1]&2&&m($,1)):($=aa(_),$.c(),m($,1),$.m(l,s)):$&&(ve(),p($,1,1,()=>{$=null}),pe()),_[33]?H?(H.p(_,K),K[1]&4&&m(H,1)):(H=ua(_),H.c(),m(H,1),H.m(l,a)):H&&(ve(),p(H,1,1,()=>{H=null}),pe()),_[59]?R?K[1]&268435456&&m(R,1):(R=ca(),R.c(),m(R,1),R.m(l,c)):R&&(ve(),p(R,1,1,()=>{R=null}),pe()),_[35]?oe?(oe.p(_,K),K[1]&16&&m(oe,1)):(oe=fa(_),oe.c(),m(oe,1),oe.m(l,null)):oe&&(ve(),p(oe,1,1,()=>{oe=null}),pe()),(!T||K[0]&8388616)&&E(l,"hidden",!_[3]&&!_[23]),(!T||K[1]&8388608)&&E(l,"fullscreen",_[54]),_[8]?se?(se.p(_,K),K[0]&256&&m(se,1)):(se=da(_),se.c(),m(se,1),se.m(h,g)):se&&(ve(),p(se,1,1,()=>{se=null}),pe()),_[30]?L?(L.p(_,K),K[0]&1073741824&&m(L,1)):(L=ma(_),L.c(),m(L,1),L.m(h,v)):L&&(ve(),p(L,1,1,()=>{L=null}),pe()),_[29]?ce?(ce.p(_,K),K[0]&536870912&&m(ce,1)):(ce=ha(_),ce.c(),m(ce,1),ce.m(h,b)):ce&&(ve(),p(ce,1,1,()=>{ce=null}),pe()),_[8]?J?(J.p(_,K),K[0]&256&&m(J,1)):(J=va(_),J.c(),m(J,1),J.m(h,null)):J&&(ve(),p(J,1,1,()=>{J=null}),pe()),(!T||K[0]&33554440)&&E(h,"hidden",!_[3]||_[25]),_[97]&&!_[25]?U?(U.p(_,K),K[0]&33554432&&m(U,1)):(U=pa(_),U.c(),m(U,1),U.m(S.parentNode,S)):U&&(ve(),p(U,1,1,()=>{U=null}),pe())},i(_){if(!T){m(C);for(let K=0;K<I.length;K+=1)m(z[K]);m($),m(H),m(R),m(oe),m(se),m(L),m(ce),m(J),m(U),T=!0}},o(_){p(C),z=z.filter(Boolean);for(let K=0;K<z.length;K+=1)p(z[K]);p($),p(H),p(R),p(oe),p(se),p(L),p(ce),p(J),p(U),T=!1},d(_){_&&(y(e),y(t),y(n),y(o),y(l),y(f),y(h),y(A),y(S)),C&&C.d(),fn(z,_),$&&$.d(),H&&H.d(),R&&R.d(),oe&&oe.d(),se&&se.d(),L&&L.d(),ce&&ce.d(),J&&J.d(),U&&U.d(_)}}}function ra(i){let e,t;return e=new mc({props:{muted:i[56],expanded:i[53]&&!i[72]&&i[57],click:i[106]}}),{c(){F(e.$$.fragment)},m(n,o){O(e,n,o),t=!0},p(n,o){const l={};o[1]&33554432&&(l.muted=n[56]),o[1]&71303168&&(l.expanded=n[53]&&!n[72]&&n[57]),e.$set(l)},i(n){t||(m(e.$$.fragment,n),t=!0)},o(n){p(e.$$.fragment,n),t=!1},d(n){D(e,n)}}}function sa(i){var n;let e,t;return e=new dc({props:{iconUrl:i[139],ariaLabel:(n=i[140])!=null?n:i[143],testId:i[141],onClick:i[142]}}),{c(){F(e.$$.fragment)},m(o,l){O(e,o,l),t=!0},p(o,l){var s;const r={};l[1]&134217728&&(r.iconUrl=o[139]),l[1]&134217728&&(r.ariaLabel=(s=o[140])!=null?s:o[143]),l[1]&134217728&&(r.testId=o[141]),l[1]&134217728&&(r.onClick=o[142]),e.$set(r)},i(o){t||(m(e.$$.fragment,o),t=!0)},o(o){p(e.$$.fragment,o),t=!1},d(o){D(e,o)}}}function aa(i){let e,t;return e=new nc({props:{isMobile:!0,click:i[102],state:i[24]}}),{c(){F(e.$$.fragment)},m(n,o){O(e,n,o),t=!0},p(n,o){const l={};o[0]&16777216&&(l.state=n[24]),e.$set(l)},i(n){t||(m(e.$$.fragment,n),t=!0)},o(n){p(e.$$.fragment,n),t=!1},d(n){D(e,n)}}}function ua(i){let e,t;return e=new t5({props:{click:i[105],isPictureInPictureActive:i[22]}}),{c(){F(e.$$.fragment)},m(n,o){O(e,n,o),t=!0},p(n,o){const l={};o[0]&4194304&&(l.isPictureInPictureActive=n[22]),e.$set(l)},i(n){t||(m(e.$$.fragment,n),t=!0)},o(n){p(e.$$.fragment,n),t=!1},d(n){D(e,n)}}}function ca(i){let e,t;return e=new ql({}),{c(){F(e.$$.fragment)},m(n,o){O(e,n,o),t=!0},i(n){t||(m(e.$$.fragment,n),t=!0)},o(n){p(e.$$.fragment,n),t=!1},d(n){D(e,n)}}}function fa(i){let e,t;return e=new ic({props:{click:i[66],logoClickable:i[6],videoLogoUrl:i[7]}}),{c(){F(e.$$.fragment)},m(n,o){O(e,n,o),t=!0},p(n,o){const l={};o[0]&64&&(l.logoClickable=n[6]),o[0]&128&&(l.videoLogoUrl=n[7]),e.$set(l)},i(n){t||(m(e.$$.fragment,n),t=!0)},o(n){p(e.$$.fragment,n),t=!1},d(n){D(e,n)}}}function da(i){let e,t;return e=new Qo({props:{click:i[13],type:"prev",disabled:!i[10],isMobile:!0}}),{c(){F(e.$$.fragment)},m(n,o){O(e,n,o),t=!0},p(n,o){const l={};o[0]&8192&&(l.click=n[13]),o[0]&1024&&(l.disabled=!n[10]),e.$set(l)},i(n){t||(m(e.$$.fragment,n),t=!0)},o(n){p(e.$$.fragment,n),t=!1},d(n){D(e,n)}}}function ma(i){let e,t;return e=new Kl({props:{disabled:i[50],click:i[65],isMobile:!0,isPlaying:i[27]}}),{c(){F(e.$$.fragment)},m(n,o){O(e,n,o),t=!0},p(n,o){const l={};o[1]&524288&&(l.disabled=n[50]),o[0]&134217728&&(l.isPlaying=n[27]),e.$set(l)},i(n){t||(m(e.$$.fragment,n),t=!0)},o(n){p(e.$$.fragment,n),t=!1},d(n){D(e,n)}}}function ha(i){let e,t;return e=new Yl({props:{disabled:i[49],click:i[107],isMobile:!0}}),{c(){F(e.$$.fragment)},m(n,o){O(e,n,o),t=!0},p(n,o){const l={};o[1]&262144&&(l.disabled=n[49]),e.$set(l)},i(n){t||(m(e.$$.fragment,n),t=!0)},o(n){p(e.$$.fragment,n),t=!1},d(n){D(e,n)}}}function va(i){let e,t;return e=new Qo({props:{click:i[12],type:"next",disabled:!i[9],isMobile:!0}}),{c(){F(e.$$.fragment)},m(n,o){O(e,n,o),t=!0},p(n,o){const l={};o[0]&4096&&(l.click=n[12]),o[0]&512&&(l.disabled=!n[9]),e.$set(l)},i(n){t||(m(e.$$.fragment,n),t=!0)},o(n){p(e.$$.fragment,n),t=!1},d(n){D(e,n)}}}function pa(i){let e,t,n,o,l=i[100]&&n5(i),r=i[98]&&o5(i),s=i[99]&&l5(i);return{c(){l&&l.c(),e=N(),r&&r.c(),t=N(),s&&s.c(),n=wt()},m(a,c){l&&l.m(a,c),k(a,e,c),r&&r.m(a,c),k(a,t,c),s&&s.m(a,c),k(a,n,c),o=!0},p(a,c){a[100]&&l.p(a,c),a[98]&&r.p(a,c),a[99]&&s.p(a,c)},i(a){o||(m(l),m(r),m(s),o=!0)},o(a){p(l),p(r),p(s),o=!1},d(a){a&&(y(e),y(t),y(n)),l&&l.d(a),r&&r.d(a),s&&s.d(a)}}}function n5(i){let e,t,n;return t=new fc({props:{hidden:!i[3],disabled:i[48],click:i[18]}}),{c(){e=w("div"),F(t.$$.fragment),u(e,"class","wrapper-middle-left v-1tcstu3"),E(e,"fullscreen",i[54]),E(e,"hidden",!i[3])},m(o,l){k(o,e,l),O(t,e,null),n=!0},p(o,l){const r={};l[0]&8&&(r.hidden=!o[3]),l[1]&131072&&(r.disabled=o[48]),l[0]&262144&&(r.click=o[18]),t.$set(r),(!n||l[1]&8388608)&&E(e,"fullscreen",o[54]),(!n||l[0]&8)&&E(e,"hidden",!o[3])},i(o){n||(m(t.$$.fragment,o),n=!0)},o(o){p(t.$$.fragment,o),n=!1},d(o){o&&y(e),D(t)}}}function o5(i){let e,t,n;return t=new cc({props:{hidden:!i[3]&&!i[60],disabled:i[52],click:i[17],graphIsOpened:i[60]}}),{c(){e=w("div"),F(t.$$.fragment),u(e,"class",jc(i[100]?"wrapper-middle-left-second":"wrapper-middle-left")+" v-1tcstu3"),E(e,"fullscreen",i[54]),E(e,"hidden",!i[3]&&!i[60])},m(o,l){k(o,e,l),O(t,e,null),n=!0},p(o,l){const r={};l[0]&8|l[1]&536870912&&(r.hidden=!o[3]&&!o[60]),l[1]&2097152&&(r.disabled=o[52]),l[0]&131072&&(r.click=o[17]),l[1]&536870912&&(r.graphIsOpened=o[60]),t.$set(r),(!n||l[1]&8388608)&&E(e,"fullscreen",o[54]),(!n||l[0]&8|l[1]&536870912)&&E(e,"hidden",!o[3]&&!o[60])},i(o){n||(m(t.$$.fragment,o),n=!0)},o(o){p(t.$$.fragment,o),n=!1},d(o){o&&y(e),D(t)}}}function l5(i){let e,t,n;return t=new uc({props:{hidden:!i[3],disabled:i[51],click:i[16]}}),{c(){e=w("div"),F(t.$$.fragment),u(e,"class","wrapper-middle-right v-1tcstu3"),E(e,"fullscreen",i[54]),E(e,"hidden",!i[3])},m(o,l){k(o,e,l),O(t,e,null),n=!0},p(o,l){const r={};l[0]&8&&(r.hidden=!o[3]),l[1]&1048576&&(r.disabled=o[51]),l[0]&65536&&(r.click=o[16]),t.$set(r),(!n||l[1]&8388608)&&E(e,"fullscreen",o[54]),(!n||l[0]&8)&&E(e,"hidden",!o[3])},i(o){n||(m(t.$$.fragment,o),n=!0)},o(o){p(t.$$.fragment,o),n=!1},d(o){o&&y(e),D(t)}}}function ga(i){let e,t,n,o,l,r=i[55]&&ba(i),s=i[28]&&_a(i);return o=new rc({props:{position:i[61],duration:i[62]}}),{c(){r&&r.c(),e=N(),s&&s.c(),t=N(),n=w("div"),F(o.$$.fragment),u(n,"class","wrapper-bottom ads-timeline-mobile v-1tcstu3"),E(n,"fullscreen",i[54])},m(a,c){r&&r.m(a,c),k(a,e,c),s&&s.m(a,c),k(a,t,c),k(a,n,c),O(o,n,null),l=!0},p(a,c){a[55]?r?(r.p(a,c),c[1]&16777216&&m(r,1)):(r=ba(a),r.c(),m(r,1),r.m(e.parentNode,e)):r&&(ve(),p(r,1,1,()=>{r=null}),pe()),a[28]?s?(s.p(a,c),c[0]&268435456&&m(s,1)):(s=_a(a),s.c(),m(s,1),s.m(t.parentNode,t)):s&&(ve(),p(s,1,1,()=>{s=null}),pe());const f={};c[1]&1073741824&&(f.position=a[61]),c[2]&1&&(f.duration=a[62]),o.$set(f),(!l||c[1]&8388608)&&E(n,"fullscreen",a[54])},i(a){l||(m(r),m(s),m(o.$$.fragment,a),l=!0)},o(a){p(r),p(s),p(o.$$.fragment,a),l=!1},d(a){a&&(y(e),y(t),y(n)),r&&r.d(a),s&&s.d(a),D(o)}}}function ba(i){let e,t,n;return t=new mc({props:{muted:i[56],expanded:!1,click:i[106]}}),{c(){e=w("div"),F(t.$$.fragment),u(e,"class","wrapper-top-right v-1tcstu3"),E(e,"fullscreen",i[54])},m(o,l){k(o,e,l),O(t,e,null),n=!0},p(o,l){const r={};l[1]&33554432&&(r.muted=o[56]),t.$set(r),(!n||l[1]&8388608)&&E(e,"fullscreen",o[54])},i(o){n||(m(t.$$.fragment,o),n=!0)},o(o){p(t.$$.fragment,o),n=!1},d(o){o&&y(e),D(t)}}}function _a(i){let e,t,n;return t=new Kl({props:{disabled:i[50],click:i[65],isMobile:!0,isPlaying:!i[28]}}),{c(){e=w("div"),F(t.$$.fragment),u(e,"class","wrapper-middle v-1tcstu3")},m(o,l){k(o,e,l),O(t,e,null),n=!0},p(o,l){const r={};l[1]&524288&&(r.disabled=o[50]),l[0]&268435456&&(r.isPlaying=!o[28]),t.$set(r)},i(o){n||(m(t.$$.fragment,o),n=!0)},o(o){p(t.$$.fragment,o),n=!1},d(o){o&&y(e),D(t)}}}function r5(i){let e,t,n;function o(r){i[122](r)}let l={disabled:i[49],controlInfo:i[85].replayButton,$$slots:{default:[s5]},$$scope:{ctx:i}};return i[42]!==void 0&&(l.width=i[42]),e=new Zt({props:l}),Ke.push(()=>Ct(e,"width",o)),{c(){F(e.$$.fragment)},m(r,s){O(e,r,s),n=!0},p(r,s){const a={};s[1]&262144&&(a.disabled=r[49]),s[1]&262144|s[4]&4194304&&(a.$$scope={dirty:s,ctx:r}),!t&&s[1]&2048&&(t=!0,a.width=r[42],Pt(()=>t=!1)),e.$set(a)},i(r){n||(m(e.$$.fragment,r),n=!0)},o(r){p(e.$$.fragment,r),n=!1},d(r){D(e,r)}}}function s5(i){let e,t;return e=new Yl({props:{disabled:i[49],click:i[96]}}),{c(){F(e.$$.fragment)},m(n,o){O(e,n,o),t=!0},p(n,o){const l={};o[1]&262144&&(l.disabled=n[49]),e.$set(l)},i(n){t||(m(e.$$.fragment,n),t=!0)},o(n){p(e.$$.fragment,n),t=!1},d(n){D(e,n)}}}function wa(i){let e,t,n;function o(r){i[123](r)}let l={controlInfo:i[85].liveButton,$$slots:{default:[a5]},$$scope:{ctx:i}};return i[43]!==void 0&&(l.width=i[43]),e=new Zt({props:l}),Ke.push(()=>Ct(e,"width",o)),{c(){F(e.$$.fragment)},m(r,s){O(e,r,s),n=!0},p(r,s){const a={};s[1]&1024|s[4]&4194304&&(a.$$scope={dirty:s,ctx:r}),!t&&s[1]&4096&&(t=!0,a.width=r[43],Pt(()=>t=!1)),e.$set(a)},i(r){n||(m(e.$$.fragment,r),n=!0)},o(r){p(e.$$.fragment,r),n=!1},d(r){D(e,r)}}}function a5(i){let e,t;return e=new oc({props:{isActiveLive:i[41],click:i[103],isMobile:!0}}),{c(){F(e.$$.fragment)},m(n,o){O(e,n,o),t=!0},p(n,o){const l={};o[1]&1024&&(l.isActiveLive=n[41]),e.$set(l)},i(n){t||(m(e.$$.fragment,n),t=!0)},o(n){p(e.$$.fragment,n),t=!1},d(n){D(e,n)}}}function ya(i){let e,t,n;function o(r){i[124](r)}let l={showDuration:i[31],position:i[4]?i[61]:i[63],duration:i[4]?i[62]:i[64],isMobile:!0};return i[44]!==void 0&&(l.width=i[44]),e=new Ju({props:l}),Ke.push(()=>Ct(e,"width",o)),{c(){F(e.$$.fragment)},m(r,s){O(e,r,s),n=!0},p(r,s){const a={};s[1]&1&&(a.showDuration=r[31]),s[0]&16|s[1]&1073741824|s[2]&2&&(a.position=r[4]?r[61]:r[63]),s[0]&16|s[2]&5&&(a.duration=r[4]?r[62]:r[64]),!t&&s[1]&8192&&(t=!0,a.width=r[44],Pt(()=>t=!1)),e.$set(a)},i(r){n||(m(e.$$.fragment,r),n=!0)},o(r){p(e.$$.fragment,r),n=!1},d(r){D(e,r)}}}function ka(i){let e,t,n,o;return n=new ac({props:{position:i[63],duration:i[64],timeCodes:i[86]}}),{c(){e=w("div"),e.textContent="\xB7",t=N(),F(n.$$.fragment),u(e,"aria-hidden","true")},m(l,r){k(l,e,r),k(l,t,r),O(n,l,r),o=!0},p(l,r){const s={};r[2]&2&&(s.position=l[63]),r[2]&4&&(s.duration=l[64]),n.$set(s)},i(l){o||(m(n.$$.fragment,l),o=!0)},o(l){p(n.$$.fragment,l),o=!1},d(l){l&&(y(e),y(t)),D(n,l)}}}function u5(i){let e,t,n=i[39]&&ka(i);return{c(){n&&n.c(),e=wt()},m(o,l){n&&n.m(o,l),k(o,e,l),t=!0},p(o,l){o[39]?n?(n.p(o,l),l[1]&256&&m(n,1)):(n=ka(o),n.c(),m(n,1),n.m(e.parentNode,e)):n&&(ve(),p(n,1,1,()=>{n=null}),pe())},i(o){t||(m(n),t=!0)},o(o){p(n),t=!1},d(o){o&&y(e),n&&n.d(o)}}}function Sa(i){let e,t,n;function o(r){i[126](r)}let l={controlInfo:i[85].settings,$$slots:{default:[c5]},$$scope:{ctx:i}};return i[46]!==void 0&&(l.width=i[46]),e=new Zt({props:l}),Ke.push(()=>Ct(e,"width",o)),{c(){F(e.$$.fragment)},m(r,s){O(e,r,s),n=!0},p(r,s){const a={};s[4]&4194304&&(a.$$scope={dirty:s,ctx:r}),!t&&s[1]&32768&&(t=!0,a.width=r[46],Pt(()=>t=!1)),e.$set(a)},i(r){n||(m(e.$$.fragment,r),n=!0)},o(r){p(e.$$.fragment,r),n=!1},d(r){D(e,r)}}}function c5(i){let e,t;return e=new ql({}),{c(){F(e.$$.fragment)},m(n,o){O(e,n,o),t=!0},i(n){t||(m(e.$$.fragment,n),t=!0)},o(n){p(e.$$.fragment,n),t=!1},d(n){D(e,n)}}}function Pa(i){let e,t,n;function o(r){i[127](r)}let l={controlInfo:i[85].fullscreen,$$slots:{default:[f5]},$$scope:{ctx:i}};return i[47]!==void 0&&(l.width=i[47]),e=new Zt({props:l}),Ke.push(()=>Ct(e,"width",o)),{c(){F(e.$$.fragment)},m(r,s){O(e,r,s),n=!0},p(r,s){const a={};s[0]&16384|s[1]&8388608|s[4]&4194304&&(a.$$scope={dirty:s,ctx:r}),!t&&s[1]&65536&&(t=!0,a.width=r[47],Pt(()=>t=!1)),e.$set(a)},i(r){n||(m(e.$$.fragment,r),n=!0)},o(r){p(e.$$.fragment,r),n=!1},d(r){D(e,r)}}}function f5(i){let e,t;return e=new ec({props:{click:i[14],isFullscreen:i[54]}}),{c(){F(e.$$.fragment)},m(n,o){O(e,n,o),t=!0},p(n,o){const l={};o[0]&16384&&(l.click=n[14]),o[1]&8388608&&(l.isFullscreen=n[54]),e.$set(l)},i(n){t||(m(e.$$.fragment,n),t=!0)},o(n){p(e.$$.fragment,n),t=!1},d(n){D(e,n)}}}function Ca(i){let e,t,n;return t=new Qu({props:{supportLink:i[11],returnFocus:i[15]}}),{c(){e=w("div"),F(t.$$.fragment),u(e,"class","settings-mobile v-1tcstu3")},m(o,l){k(o,e,l),O(t,e,null),n=!0},p(o,l){const r={};l[0]&2048&&(r.supportLink=o[11]),l[0]&32768&&(r.returnFocus=o[15]),t.$set(r)},i(o){n||(m(t.$$.fragment,o),n=!0)},o(o){p(t.$$.fragment,o),n=!1},d(o){o&&y(e),D(t)}}}function d5(i){let e,t,n,o,l,r,s,a,c,f,h,g,v,b,A,S,T,C,I,z=!i[4]&&la(i),X=i[4]&&i[26]!==qt.INACTIVE&&ga(i),$=i[97]&&r5(i),H=!i[4]&&i[20]&&wa(i),R=i[37]&&ya(i);function oe(U){i[125](U)}let se={className:"w-max",disabled:!i[39],controlInfo:i[85].episodes,$$slots:{default:[u5]},$$scope:{ctx:i}};i[45]!==void 0&&(se.width=i[45]),c=new Zt({props:se}),Ke.push(()=>Ct(c,"width",oe));let L=i[34]&&Sa(i),ce=i[36]&&Pa(i);b=new sc({props:{isAds:i[4],canRewindLive:i[5],isRewindableLive:i[19]}});let J=i[21]&&Ca(i);return{c(){z&&z.c(),e=N(),X&&X.c(),t=N(),n=w("div"),o=w("div"),l=w("div"),$&&$.c(),r=N(),H&&H.c(),s=N(),R&&R.c(),a=N(),F(c.$$.fragment),h=N(),L&&L.c(),g=N(),ce&&ce.c(),v=N(),F(b.$$.fragment),A=N(),J&&J.c(),S=wt(),u(l,"class","controls v-1tcstu3"),E(l,"mobile",!0),u(o,"class","controls-wrapper v-1tcstu3"),E(o,"fullscreen",i[54]),u(n,"class","wrapper-bottom v-1tcstu3"),E(n,"hidden",i[1]),E(n,"controls-hidden",!i[3]),E(n,"no-smooth",i[2]),E(n,"mobile",!0)},m(U,_){z&&z.m(U,_),k(U,e,_),X&&X.m(U,_),k(U,t,_),k(U,n,_),d(n,o),d(o,l),$&&$.m(l,null),d(l,r),H&&H.m(l,null),d(l,s),R&&R.m(l,null),d(l,a),O(c,l,null),d(l,h),L&&L.m(l,null),d(l,g),ce&&ce.m(l,null),i[128](l),d(o,v),O(b,o,null),i[129](n),k(U,A,_),J&&J.m(U,_),k(U,S,_),T=!0,C||(I=[Ve(n,"pointermove",i[104]),Ve(n,"pointerenter",i[104])],C=!0)},p(U,_){U[4]?z&&(ve(),p(z,1,1,()=>{z=null}),pe()):z?(z.p(U,_),_[0]&16&&m(z,1)):(z=la(U),z.c(),m(z,1),z.m(e.parentNode,e)),U[4]&&U[26]!==qt.INACTIVE?X?(X.p(U,_),_[0]&67108880&&m(X,1)):(X=ga(U),X.c(),m(X,1),X.m(t.parentNode,t)):X&&(ve(),p(X,1,1,()=>{X=null}),pe()),U[97]&&$.p(U,_),!U[4]&&U[20]?H?(H.p(U,_),_[0]&1048592&&m(H,1)):(H=wa(U),H.c(),m(H,1),H.m(l,s)):H&&(ve(),p(H,1,1,()=>{H=null}),pe()),U[37]?R?(R.p(U,_),_[1]&64&&m(R,1)):(R=ya(U),R.c(),m(R,1),R.m(l,a)):R&&(ve(),p(R,1,1,()=>{R=null}),pe());const K={};_[1]&256&&(K.disabled=!U[39]),_[1]&256|_[2]&6|_[4]&4194304&&(K.$$scope={dirty:_,ctx:U}),!f&&_[1]&16384&&(f=!0,K.width=U[45],Pt(()=>f=!1)),c.$set(K),U[34]?L?(L.p(U,_),_[1]&8&&m(L,1)):(L=Sa(U),L.c(),m(L,1),L.m(l,g)):L&&(ve(),p(L,1,1,()=>{L=null}),pe()),U[36]?ce?(ce.p(U,_),_[1]&32&&m(ce,1)):(ce=Pa(U),ce.c(),m(ce,1),ce.m(l,null)):ce&&(ve(),p(ce,1,1,()=>{ce=null}),pe());const ue={};_[0]&16&&(ue.isAds=U[4]),_[0]&32&&(ue.canRewindLive=U[5]),_[0]&524288&&(ue.isRewindableLive=U[19]),b.$set(ue),(!T||_[1]&8388608)&&E(o,"fullscreen",U[54]),(!T||_[0]&2)&&E(n,"hidden",U[1]),(!T||_[0]&8)&&E(n,"controls-hidden",!U[3]),(!T||_[0]&4)&&E(n,"no-smooth",U[2]),U[21]?J?(J.p(U,_),_[0]&2097152&&m(J,1)):(J=Ca(U),J.c(),m(J,1),J.m(S.parentNode,S)):J&&(ve(),p(J,1,1,()=>{J=null}),pe())},i(U){T||(m(z),m(X),m($),m(H),m(R),m(c.$$.fragment,U),m(L),m(ce),m(b.$$.fragment,U),m(J),T=!0)},o(U){p(z),p(X),p($),p(H),p(R),p(c.$$.fragment,U),p(L),p(ce),p(b.$$.fragment,U),p(J),T=!1},d(U){U&&(y(e),y(t),y(n),y(A),y(S)),z&&z.d(U),X&&X.d(U),$&&$.d(),H&&H.d(),R&&R.d(),D(c),L&&L.d(),ce&&ce.d(),i[128](null),D(b),i[129](null),J&&J.d(U),C=!1,Gt(I)}}}function m5(i,e,t){var Di,It;let n,o,l,r,s,a,c,f,h,g,v,b,A,S,T,C,I,z,X,$,H,R,oe,se,L,ce,J,U,_,K,ue,_e,he,{bottomHidden:ae}=e,{bottomNoSmooth:Ee}=e,{showControls:Y}=e,{controlsElementRef:V=void 0}=e,{isAds:le=!1}=e,{canRewindLive:x}=e,{logoClickable:Ae}=e,{logoHidden:B}=e,{videoLogoUrl:ee}=e,{showNextPrevButtons:ze}=e,{nextButtonActive:Ce}=e,{prevButtonActive:ge}=e,{isOneVideoPlaylist:Se=!1}=e,{supportLink:Pe}=e,{customFullscreenSupported:G=!0}=e,{playNextVideo:j}=e,{playPrevVideo:qe}=e,{repeatPlaylist:tt}=e,{toggleFullscreen:it}=e,{returnFocus:We}=e,{seekToInteractive:Me}=e,{toggleGraph:st}=e,{playPrevChapter:Mt}=e;const Ne=Et(),Re=tn(),Rt=Ne.actions.internal.toggleMuted,me=Ne.actions.internal.togglePlay,nt=Ne.actions.internal.pause,xe=(Di=Ne.callbacks)==null?void 0:Di.onAudioDoesNotExistHint,Qe=(It=Ne.callbacks)==null?void 0:It.onAudioDisabledHint,Ze=Ne.playerPhase;q(i,Ze,fe=>t(118,I=fe));const et=Ne.state.duration$;q(i,et,fe=>t(64,he=fe));const He=Ne.state.positionWithScrubbing$;q(i,He,fe=>t(63,_e=fe));const De=Ne.state.playbackState$;q(i,De,fe=>t(120,H=fe));const pt=Ne.state.isAudioAvailable$;q(i,pt,fe=>t(53,c=fe));const at=Ne.state.isAudioDisabled,Kt=Ne.state.isEnded$;q(i,Kt,fe=>t(119,X=fe));const At=Ne.state.isLive$;q(i,At,fe=>t(20,g=fe));const ot=Ne.state.muted$;q(i,ot,fe=>t(56,L=fe));const ti=Ne.state.isActiveLive$;q(i,ti,fe=>t(115,f=fe));const dt=Ne.state.isRewindableLive$;q(i,dt,fe=>t(19,h=fe));const Xe=Ne.ui.scrubbingInProgress;q(i,Xe,fe=>t(25,z=fe));const Vt=Ne.ui.mobileNotReportControlHidden$;q(i,Vt,fe=>t(23,T=fe));const ut=Ne.ui.isPictureInPictureActive$;q(i,ut,fe=>t(22,S=fe));const pi=Ne.ui.pictureInPictureType$;q(i,pi,fe=>t(117,A=fe));const de=Ne.ui.mobileUnmuteButtonExpanded;q(i,de,fe=>t(57,ce=fe));const Te=Ne.ui.mobileUnmuteButtonVisible;q(i,Te,fe=>t(55,se=fe));const Ie=Ne.ui.settingsMenuVisible;q(i,Ie,fe=>t(21,v=fe));const Lt=Ne.ui.controls,ii=Ne.actions.internal.getVideoEpisodes(),Le=Ne.webApi.pictureInPictureApi,si=Ne.state.chromecastState$;q(i,si,fe=>t(24,C=fe));const ai=Ne.state.crashed$;q(i,ai,fe=>t(59,U=fe));const Ht=Lt.disabledControls$;q(i,Ht,fe=>t(121,R=fe));const Ci=Ne.ads.duration;q(i,Ci,fe=>t(62,ue=fe));const Yt=Ne.ads.position;q(i,Yt,fe=>t(61,K=fe));const Jt=Ne.ads.playbackState;q(i,Jt,fe=>t(26,$=fe));const $i=Ne.ui.isFullscreen;q(i,$i,fe=>t(54,oe=fe));const en=Ne.ui.playerSize;q(i,en,fe=>t(116,b=fe));const vt=Ne.ui.additionalButtons$;q(i,vt,fe=>t(58,J=fe));const Ai=Ne.actions.internal.replayInteractive,Li=Ne.state.isInteractive,nn=Ne.state.isInteractiveGraphEnabled,gt=Ne.state.isSeekToInteractiveEnable,ui=Ne.state.isPlayPrevChapterEnabled,Vi=Ne.state.graphIsOpened$;q(i,Vi,fe=>t(60,_=fe));let Ii,gi,ci,zi,bi,Hi,Xt,ni,Mi,xt,Ut,fi,_i,Ui,di,wi,Ni,mi,Ri,yi,hi,Ti,jt,Qt;function $t(){Qt=V==null?void 0:V.getBoundingClientRect()}xi(()=>(window.addEventListener("resize",$t),()=>{window.removeEventListener("resize",$t)}));const oi=()=>Ne.actions.internal.toggleChromecast(),ji=()=>Ne.actions.internal.switchToActiveLive(),Wi=fe=>{Ne.ui.controls.tooltipPointerOffsetX.update(()=>Qt?Math.min(Math.max(fe.x-Qt.x,0),Qt.width):0)};function li(){at?Qe==null||Qe():c?Rt():xe==null||xe()}function Bi(){return Bn(this,null,function*(){Le!=null&&Le.isActive()?yield Le==null?void 0:Le.remove():yield Le==null?void 0:Le.request()})}function Oi(){!at&&c&&Te.set(!1),li()}const ki=Se?me:tt;function Si(fe){mi=fe,t(42,mi)}function Tt(fe){Ri=fe,t(43,Ri)}function Bt(fe){yi=fe,t(44,yi)}function qi(fe){hi=fe,t(45,hi)}function on(fe){Ti=fe,t(46,Ti)}function Zi(fe){jt=fe,t(47,jt)}function Ot(fe){Ke[fe?"unshift":"push"](()=>{wi=fe,t(40,wi)})}function Gi(fe){Ke[fe?"unshift":"push"](()=>{V=fe,t(0,V)})}return i.$$set=fe=>{"bottomHidden"in fe&&t(1,ae=fe.bottomHidden),"bottomNoSmooth"in fe&&t(2,Ee=fe.bottomNoSmooth),"showControls"in fe&&t(3,Y=fe.showControls),"controlsElementRef"in fe&&t(0,V=fe.controlsElementRef),"isAds"in fe&&t(4,le=fe.isAds),"canRewindLive"in fe&&t(5,x=fe.canRewindLive),"logoClickable"in fe&&t(6,Ae=fe.logoClickable),"logoHidden"in fe&&t(108,B=fe.logoHidden),"videoLogoUrl"in fe&&t(7,ee=fe.videoLogoUrl),"showNextPrevButtons"in fe&&t(8,ze=fe.showNextPrevButtons),"nextButtonActive"in fe&&t(9,Ce=fe.nextButtonActive),"prevButtonActive"in fe&&t(10,ge=fe.prevButtonActive),"isOneVideoPlaylist"in fe&&t(109,Se=fe.isOneVideoPlaylist),"supportLink"in fe&&t(11,Pe=fe.supportLink),"customFullscreenSupported"in fe&&t(110,G=fe.customFullscreenSupported),"playNextVideo"in fe&&t(12,j=fe.playNextVideo),"playPrevVideo"in fe&&t(13,qe=fe.playPrevVideo),"repeatPlaylist"in fe&&t(111,tt=fe.repeatPlaylist),"toggleFullscreen"in fe&&t(14,it=fe.toggleFullscreen),"returnFocus"in fe&&t(15,We=fe.returnFocus),"seekToInteractive"in fe&&t(16,Me=fe.seekToInteractive),"toggleGraph"in fe&&t(17,st=fe.toggleGraph),"playPrevChapter"in fe&&t(18,Mt=fe.playPrevChapter)},i.$$.update=()=>{if(i.$$.dirty[3]&268435456&&t(114,n=R.has(ht.EPISODE_BUTTON)),i.$$.dirty[3]&268435456&&t(52,o=R.has(ht.GRAPH_BUTTON)),i.$$.dirty[3]&268435456&&t(51,l=R.has(ht.SEEK_TO_INTERACTIVE_BUTTON)),i.$$.dirty[3]&268435456&&t(50,r=R.has(ht.PLAY_BUTTON)),i.$$.dirty[3]&268435456&&t(49,s=R.has(ht.REPLAY_BUTTON)),i.$$.dirty[3]&268435456&&t(48,a=R.has(ht.PLAY_PREV_CHAPTER_BUTTON)),i.$$.dirty[3]&134217728&&t(27,Ii=H===rt.PlaybackState.PLAYING),i.$$.dirty[0]&67108864&&t(28,gi=$===qt.PAUSED),i.$$.dirty[0]&16|i.$$.dirty[3]&67108864&&t(29,ci=X&&!le&&!Li),i.$$.dirty[0]&16|i.$$.dirty[3]&67108864&&t(30,zi=!X||le),i.$$.dirty[3]&8388608&&t(112,bi=b.width>300),i.$$.dirty[3]&8388608&&t(31,Hi=b.width>400),i.$$.dirty[0]&33554432&&t(113,Xt=z),i.$$.dirty[0]&29360128|i.$$.dirty[3]&16777216&&t(32,ni=C!==rt.ChromecastState.NOT_AVAILABLE&&!(S&&A===yn.DocumentPictureInPicture)&&!T&&!Li),i.$$.dirty[0]&25165824|i.$$.dirty[3]&51380224){const fe=I===Be.WaitingLive;t(33,Mi=!!Le&&C!==rt.ChromecastState.CONNECTED&&!T&&(A===yn.DocumentPictureInPicture&&fe||!fe)&&!Xt&&!Li)}i.$$.dirty[3]&1048576&&t(34,xt=!Xt),i.$$.dirty[3]&8421376&&t(35,Ut=!B&&b.width>350),i.$$.dirty[0]&4194304|i.$$.dirty[3]&17956864&&t(36,fi=Re.features.fullscreen&&!(S&&A===yn.DocumentPictureInPicture)&&(Li?G:!0)&&!Xt),i.$$.dirty[0]&1048592|i.$$.dirty[3]&9437184&&t(37,_i=(!g||le)&&b.width>260&&!Xt&&!(Re.features.interactiveHideTime&&Li)),i.$$.dirty[0]&2097160&&t(38,Ui=v||Y),i.$$.dirty[0]&1048592|i.$$.dirty[3]&3670016&&t(39,di=!le&&!g&&!!(ii!=null&&ii.length)&&bi&&!n&&!Xt),i.$$.dirty[0]&524288|i.$$.dirty[3]&4194304&&t(41,Ni=!h||f),i.$$.dirty[0]&1&&V&&$t()},[V,ae,Ee,Y,le,x,Ae,ee,ze,Ce,ge,Pe,j,qe,it,We,Me,st,Mt,h,g,v,S,T,C,z,$,Ii,gi,ci,zi,Hi,ni,Mi,xt,Ut,fi,_i,Ui,di,wi,Ni,mi,Ri,yi,hi,Ti,jt,a,s,r,l,o,c,oe,se,L,ce,J,U,_,K,ue,_e,he,me,nt,Ze,et,He,De,pt,at,Kt,At,ot,ti,dt,Xe,Vt,ut,pi,de,Te,Ie,Lt,ii,si,ai,Ht,Ci,Yt,Jt,$i,en,vt,Ai,Li,nn,gt,ui,Vi,oi,ji,Wi,Bi,Oi,ki,B,Se,G,tt,bi,Xt,n,f,b,A,I,X,H,R,Si,Tt,Bt,qi,on,Zi,Ot,Gi]}class h5 extends ke{constructor(e){super(),ye(this,e,m5,d5,we,{bottomHidden:1,bottomNoSmooth:2,showControls:3,controlsElementRef:0,isAds:4,canRewindLive:5,logoClickable:6,logoHidden:108,videoLogoUrl:7,showNextPrevButtons:8,nextButtonActive:9,prevButtonActive:10,isOneVideoPlaylist:109,supportLink:11,customFullscreenSupported:110,playNextVideo:12,playPrevVideo:13,repeatPlaylist:111,toggleFullscreen:14,returnFocus:15,seekToInteractive:16,toggleGraph:17,playPrevChapter:18},i5,[-1,-1,-1,-1,-1])}}function v5(i){let e,t,n;function o(r){i[26](r)}let l={bottomHidden:i[1],bottomNoSmooth:i[2],showControls:i[3],isAds:i[4],canRewindLive:i[5],logoClickable:i[6],logoHidden:i[7],videoLogoUrl: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 jp({props:l}),Ke.push(()=>Ct(e,"controlsElementRef",o)),{c(){F(e.$$.fragment)},m(r,s){O(e,r,s),n=!0},p(r,s){const a={};s&2&&(a.bottomHidden=r[1]),s&4&&(a.bottomNoSmooth=r[2]),s&8&&(a.showControls=r[3]),s&16&&(a.isAds=r[4]),s&32&&(a.canRewindLive=r[5]),s&64&&(a.logoClickable=r[6]),s&128&&(a.logoHidden=r[7]),s&256&&(a.videoLogoUrl=r[8]),s&512&&(a.showNextPrevButtons=r[9]),s&1024&&(a.nextButtonActive=r[10]),s&2048&&(a.prevButtonActive=r[11]),s&4096&&(a.isOneVideoPlaylist=r[12]),s&8192&&(a.supportLink=r[13]),s&16384&&(a.customFullscreenSupported=r[14]),s&32768&&(a.playNextVideo=r[15]),s&65536&&(a.playPrevVideo=r[16]),s&131072&&(a.repeatPlaylist=r[17]),s&262144&&(a.toggleFullscreen=r[18]),s&524288&&(a.returnFocus=r[19]),s&1048576&&(a.seekToInteractive=r[20]),s&2097152&&(a.toggleGraph=r[21]),s&4194304&&(a.playPrevChapter=r[22]),!t&&s&1&&(t=!0,a.controlsElementRef=r[0],Pt(()=>t=!1)),e.$set(a)},i(r){n||(m(e.$$.fragment,r),n=!0)},o(r){p(e.$$.fragment,r),n=!1},d(r){D(e,r)}}}function p5(i){let e,t,n;function o(r){i[25](r)}let l={bottomHidden:i[1],bottomNoSmooth:i[2],showControls:i[3],isAds:i[4],canRewindLive:i[5],logoClickable:i[6],logoHidden:i[7],videoLogoUrl: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 h5({props:l}),Ke.push(()=>Ct(e,"controlsElementRef",o)),{c(){F(e.$$.fragment)},m(r,s){O(e,r,s),n=!0},p(r,s){const a={};s&2&&(a.bottomHidden=r[1]),s&4&&(a.bottomNoSmooth=r[2]),s&8&&(a.showControls=r[3]),s&16&&(a.isAds=r[4]),s&32&&(a.canRewindLive=r[5]),s&64&&(a.logoClickable=r[6]),s&128&&(a.logoHidden=r[7]),s&256&&(a.videoLogoUrl=r[8]),s&512&&(a.showNextPrevButtons=r[9]),s&1024&&(a.nextButtonActive=r[10]),s&2048&&(a.prevButtonActive=r[11]),s&4096&&(a.isOneVideoPlaylist=r[12]),s&8192&&(a.supportLink=r[13]),s&16384&&(a.customFullscreenSupported=r[14]),s&32768&&(a.playNextVideo=r[15]),s&65536&&(a.playPrevVideo=r[16]),s&131072&&(a.repeatPlaylist=r[17]),s&262144&&(a.toggleFullscreen=r[18]),s&524288&&(a.returnFocus=r[19]),s&1048576&&(a.seekToInteractive=r[20]),s&2097152&&(a.toggleGraph=r[21]),s&4194304&&(a.playPrevChapter=r[22]),!t&&s&1&&(t=!0,a.controlsElementRef=r[0],Pt(()=>t=!1)),e.$set(a)},i(r){n||(m(e.$$.fragment,r),n=!0)},o(r){p(e.$$.fragment,r),n=!1},d(r){D(e,r)}}}function g5(i){let e,t,n,o;const l=[p5,v5],r=[];function s(a,c){return a[23]?0:1}return e=s(i),t=r[e]=l[e](i),{c(){t.c(),n=wt()},m(a,c){r[e].m(a,c),k(a,n,c),o=!0},p(a,[c]){let f=e;e=s(a),e===f?r[e].p(a,c):(ve(),p(r[f],1,1,()=>{r[f]=null}),pe(),t=r[e],t?t.p(a,c):(t=r[e]=l[e](a),t.c()),m(t,1),t.m(n.parentNode,n))},i(a){o||(m(t),o=!0)},o(a){p(t),o=!1},d(a){a&&y(n),r[e].d(a)}}}function b5(i,e,t){let n,{bottomHidden:o}=e,{bottomNoSmooth:l=!1}=e,{showControls:r}=e,{controlsElementRef:s=void 0}=e,{isAds:a=!1}=e,{canRewindLive:c}=e,{logoClickable:f}=e,{logoHidden:h}=e,{videoLogoUrl:g}=e,{showNextPrevButtons:v}=e,{nextButtonActive:b}=e,{prevButtonActive:A}=e,{isOneVideoPlaylist:S=!1}=e,{supportLink:T}=e,{customFullscreenSupported:C=!0}=e,{playNextVideo:I}=e,{playPrevVideo:z}=e,{repeatPlaylist:X}=e,{toggleFullscreen:$}=e,{returnFocus:H=ie.noop}=e,{seekToInteractive:R}=e,{toggleGraph:oe}=e,{playPrevChapter:se}=e;const ce=Et().ui.isMobile;q(i,ce,_=>t(23,n=_));function J(_){s=_,t(0,s)}function U(_){s=_,t(0,s)}return i.$$set=_=>{"bottomHidden"in _&&t(1,o=_.bottomHidden),"bottomNoSmooth"in _&&t(2,l=_.bottomNoSmooth),"showControls"in _&&t(3,r=_.showControls),"controlsElementRef"in _&&t(0,s=_.controlsElementRef),"isAds"in _&&t(4,a=_.isAds),"canRewindLive"in _&&t(5,c=_.canRewindLive),"logoClickable"in _&&t(6,f=_.logoClickable),"logoHidden"in _&&t(7,h=_.logoHidden),"videoLogoUrl"in _&&t(8,g=_.videoLogoUrl),"showNextPrevButtons"in _&&t(9,v=_.showNextPrevButtons),"nextButtonActive"in _&&t(10,b=_.nextButtonActive),"prevButtonActive"in _&&t(11,A=_.prevButtonActive),"isOneVideoPlaylist"in _&&t(12,S=_.isOneVideoPlaylist),"supportLink"in _&&t(13,T=_.supportLink),"customFullscreenSupported"in _&&t(14,C=_.customFullscreenSupported),"playNextVideo"in _&&t(15,I=_.playNextVideo),"playPrevVideo"in _&&t(16,z=_.playPrevVideo),"repeatPlaylist"in _&&t(17,X=_.repeatPlaylist),"toggleFullscreen"in _&&t(18,$=_.toggleFullscreen),"returnFocus"in _&&t(19,H=_.returnFocus),"seekToInteractive"in _&&t(20,R=_.seekToInteractive),"toggleGraph"in _&&t(21,oe=_.toggleGraph),"playPrevChapter"in _&&t(22,se=_.playPrevChapter)},[s,o,l,r,a,c,f,h,g,v,b,A,S,T,C,I,z,X,$,H,R,oe,se,n,ce,J,U]}class hc extends ke{constructor(e){super(),ye(this,e,b5,g5,we,{bottomHidden:1,bottomNoSmooth:2,showControls:3,controlsElementRef:0,isAds:4,canRewindLive:5,logoClickable:6,logoHidden:7,videoLogoUrl: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})}}function _5(i){Fe(i,"v-1ub874v",".reversed.v-1ub874v{transform:scaleX(-1)}")}function w5(i){let e,t,n,o,l,r,s,a,c,f,h,g,v;return{c(){e=M("svg"),t=M("g"),n=M("path"),o=M("path"),l=M("defs"),r=M("filter"),s=M("feFlood"),a=M("feColorMatrix"),c=M("feOffset"),f=M("feGaussianBlur"),h=M("feColorMatrix"),g=M("feBlend"),v=M("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(t,"filter","url(#a)"),u(s,"flood-opacity","0"),u(s,"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(h,"values","0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.16 0"),u(g,"in2","BackgroundImageFix"),u(g,"result","effect1_dropShadow_2260_100684"),u(v,"in","SourceGraphic"),u(v,"in2","effect1_dropShadow_2260_100684"),u(v,"result","shape"),u(r,"id","a"),u(r,"x","2.5"),u(r,"y","0"),u(r,"width","43.996"),u(r,"height","49.5"),u(r,"filterUnits","userSpaceOnUse"),u(r,"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"),E(e,"reversed",i[0])},m(b,A){k(b,e,A),d(e,t),d(t,n),d(t,o),d(e,l),d(l,r),d(r,s),d(r,a),d(r,c),d(r,f),d(r,h),d(r,g),d(r,v)},p(b,[A]){A&1&&E(e,"reversed",b[0])},i:Z,o:Z,d(b){b&&y(e)}}}function y5(i,e,t){let{reversed:n=!1}=e;return i.$$set=o=>{"reversed"in o&&t(0,n=o.reversed)},[n]}class k5 extends ke{constructor(e){super(),ye(this,e,y5,w5,we,{reversed:0},_5)}}function S5(i){let e,t,n,o,l,r,s,a,c,f,h,g,v,b,A;return{c(){e=M("svg"),t=M("g"),n=M("path"),o=M("path"),l=M("defs"),r=M("clipPath"),s=M("path"),a=M("filter"),c=M("feFlood"),f=M("feColorMatrix"),h=M("feOffset"),g=M("feGaussianBlur"),v=M("feColorMatrix"),b=M("feBlend"),A=M("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(t,"filter","url(#b)"),u(t,"clip-path","url(#a)"),u(s,"fill","#fff"),u(s,"d","M0 0h48v48H0z"),u(r,"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(g,"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(b,"in2","BackgroundImageFix"),u(b,"result","effect1_dropShadow_2260_104204"),u(A,"in","SourceGraphic"),u(A,"in2","effect1_dropShadow_2260_104204"),u(A,"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(S,T){k(S,e,T),d(e,t),d(t,n),d(t,o),d(e,l),d(l,r),d(r,s),d(l,a),d(a,c),d(a,f),d(a,h),d(a,g),d(a,v),d(a,b),d(a,A)},d(S){S&&y(e)}}}function P5(i){let e,t,n,o,l,r,s,a,c,f,h,g,v,b,A,S;return{c(){e=M("svg"),t=M("g"),n=M("path"),o=M("path"),l=M("path"),r=M("defs"),s=M("clipPath"),a=M("path"),c=M("filter"),f=M("feFlood"),h=M("feColorMatrix"),g=M("feOffset"),v=M("feGaussianBlur"),b=M("feColorMatrix"),A=M("feBlend"),S=M("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(l,"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(l,"stroke","#000"),u(l,"stroke-opacity",".12"),u(l,"stroke-width",".5"),u(t,"filter","url(#b)"),u(t,"clip-path","url(#a)"),u(a,"fill","#fff"),u(a,"d","M0 0h48v48H0z"),u(s,"id","a"),u(f,"flood-opacity","0"),u(f,"result","BackgroundImageFix"),u(h,"in","SourceAlpha"),u(h,"values","0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0"),u(h,"result","hardAlpha"),u(v,"stdDeviation","2.5"),u(b,"values","0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.16 0"),u(A,"in2","BackgroundImageFix"),u(A,"result","effect1_dropShadow_2260_104293"),u(S,"in","SourceGraphic"),u(S,"in2","effect1_dropShadow_2260_104293"),u(S,"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(T,C){k(T,e,C),d(e,t),d(t,n),d(t,o),d(t,l),d(e,r),d(r,s),d(s,a),d(r,c),d(c,f),d(c,h),d(c,g),d(c,v),d(c,b),d(c,A),d(c,S)},d(T){T&&y(e)}}}function C5(i){let e;function t(l,r){return l[0]?P5:S5}let n=t(i),o=n(i);return{c(){o.c(),e=wt()},m(l,r){o.m(l,r),k(l,e,r)},p(l,[r]){n!==(n=t(l))&&(o.d(1),o=n(l),o&&(o.c(),o.m(e.parentNode,e)))},i:Z,o:Z,d(l){l&&y(e),o.d(l)}}}function T5(i,e,t){let{isOff:n=!1}=e;return i.$$set=o=>{"isOff"in o&&t(0,n=o.isOff)},[n]}class vc extends ke{constructor(e){super(),ye(this,e,T5,C5,we,{isOff:0})}}function E5(i){Fe(i,"v-1ub874v",".reversed.v-1ub874v{transform:scaleX(-1)}")}function A5(i){let e,t,n,o,l,r,s,a,c,f,h,g,v;return{c(){e=M("svg"),t=M("g"),n=M("path"),o=M("path"),l=M("defs"),r=M("filter"),s=M("feFlood"),a=M("feColorMatrix"),c=M("feOffset"),f=M("feGaussianBlur"),h=M("feColorMatrix"),g=M("feBlend"),v=M("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(t,"filter","url(#a)"),u(s,"flood-opacity","0"),u(s,"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(h,"values","0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.16 0"),u(g,"in2","BackgroundImageFix"),u(g,"result","effect1_dropShadow_2260_106627"),u(v,"in","SourceGraphic"),u(v,"in2","effect1_dropShadow_2260_106627"),u(v,"result","shape"),u(r,"id","a"),u(r,"x","3.402"),u(r,"y","10.105"),u(r,"width","40.098"),u(r,"height","27.785"),u(r,"filterUnits","userSpaceOnUse"),u(r,"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"),E(e,"reversed",i[0])},m(b,A){k(b,e,A),d(e,t),d(t,n),d(t,o),d(e,l),d(l,r),d(r,s),d(r,a),d(r,c),d(r,f),d(r,h),d(r,g),d(r,v)},p(b,[A]){A&1&&E(e,"reversed",b[0])},i:Z,o:Z,d(b){b&&y(e)}}}function L5(i,e,t){let{reversed:n=!1}=e;return i.$$set=o=>{"reversed"in o&&t(0,n=o.reversed)},[n]}class V5 extends ke{constructor(e){super(),ye(this,e,L5,A5,we,{reversed:0},E5)}}function I5(i){Fe(i,"v-1ub874v",".reversed.v-1ub874v{transform:scaleX(-1)}")}function z5(i){let e,t,n,o,l,r,s,a,c,f,h,g,v;return{c(){e=M("svg"),t=M("g"),n=M("path"),o=M("path"),l=M("defs"),r=M("filter"),s=M("feFlood"),a=M("feColorMatrix"),c=M("feOffset"),f=M("feGaussianBlur"),h=M("feColorMatrix"),g=M("feBlend"),v=M("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(t,"filter","url(#a)"),u(s,"flood-opacity","0"),u(s,"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(h,"values","0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.16 0"),u(g,"in2","BackgroundImageFix"),u(g,"result","effect1_dropShadow_2340_106922"),u(v,"in","SourceGraphic"),u(v,"in2","effect1_dropShadow_2340_106922"),u(v,"result","shape"),u(r,"id","a"),u(r,"x","5.5"),u(r,"y","5.5"),u(r,"width","37"),u(r,"height","37"),u(r,"filterUnits","userSpaceOnUse"),u(r,"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"),E(e,"reversed",i[0])},m(b,A){k(b,e,A),d(e,t),d(t,n),d(t,o),d(e,l),d(l,r),d(r,s),d(r,a),d(r,c),d(r,f),d(r,h),d(r,g),d(r,v)},p(b,[A]){A&1&&E(e,"reversed",b[0])},i:Z,o:Z,d(b){b&&y(e)}}}function M5(i,e,t){let{reversed:n=!1}=e;return i.$$set=o=>{"reversed"in o&&t(0,n=o.reversed)},[n]}class N5 extends ke{constructor(e){super(),ye(this,e,M5,z5,we,{reversed:0},I5)}}function R5(i){Fe(i,"v-1ner72s",`.hot-key-helpers-container.v-1ner72s.v-1ner72s{position:absolute;top:calc(50% - 40px);left:calc(50% - 100px);width:200px;height:120px;display:flex;align-items:center;flex-direction:column;animation:v-1ner72s-fadeIn ease var(--controls-transition-duration);padding-top:14px;box-sizing:border-box}.hot-key-helpers-container.v-1ner72s>div.v-1ner72s{width:48px;height:48px;display:flex;justify-content:center;align-items:center}.hot-key-helpers-container.v-1ner72s svg[data-testid="volume-off-icon"],.hot-key-helpers-container.v-1ner72s svg[data-testid="volume-max-icon"]{transform:scale(2)}.hot-key-helpers-container.v-1ner72s svg[data-testid="play-icon"],.hot-key-helpers-container.v-1ner72s svg[data-testid="pause-icon"]{transform:scale(2.5)}.hot-key-helpers-container--left.v-1ner72s.v-1ner72s{left:calc(25% - 100px)}.hot-key-helpers-container--right.v-1ner72s.v-1ner72s{left:calc(75% - 100px)}.hot-key-helpers-text.v-1ner72s.v-1ner72s{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-1ner72s.v-1ner72s{visibility:hidden;animation:v-1ner72s-fadeOut ease var(--controls-transition-duration);width:0;height:0}@keyframes v-1ner72s-fadeIn{0%{opacity:0}100%{opacity:1}}@keyframes v-1ner72s-fadeOut{0%{opacity:1}100%{opacity:0}}`)}function Ta(i){let e,t=[Je.BACKWARD_SEEK,Je.FORWARD_SEEK].includes(i[4]),n,o,l,r,s,a=[Je.RATE_DOWN,Je.RATE_UP].includes(i[4]),c,f=[Je.EPISODE_PREV,Je.EPISODE_NEXT].includes(i[4]),h,g,v,b,A,S=t&&Ea(i),T=i[4]===Je.STOP&&Aa(),C=i[4]===Je.PLAY&&La(),I=i[4]===Je.SUBTITLES_OFF&&Va(),z=i[4]===Je.SUBTITLES_ON&&Ia(),X=a&&za(i),$=f&&Ma(i),H=i[4]===Je.MUTE&&Na(),R=i[4]===Je.VOLUME&&Ra(),oe=i[5]&&Ba(i);return{c(){e=w("div"),S&&S.c(),n=N(),T&&T.c(),o=N(),C&&C.c(),l=N(),I&&I.c(),r=N(),z&&z.c(),s=N(),X&&X.c(),c=N(),$&&$.c(),h=N(),H&&H.c(),g=N(),R&&R.c(),v=N(),oe&&oe.c(),b=wt(),u(e,"class","v-1ner72s")},m(se,L){k(se,e,L),S&&S.m(e,null),d(e,n),T&&T.m(e,null),d(e,o),C&&C.m(e,null),d(e,l),I&&I.m(e,null),d(e,r),z&&z.m(e,null),d(e,s),X&&X.m(e,null),d(e,c),$&&$.m(e,null),d(e,h),H&&H.m(e,null),d(e,g),R&&R.m(e,null),k(se,v,L),oe&&oe.m(se,L),k(se,b,L),A=!0},p(se,L){L&16&&(t=[Je.BACKWARD_SEEK,Je.FORWARD_SEEK].includes(se[4])),t?S?(S.p(se,L),L&16&&m(S,1)):(S=Ea(se),S.c(),m(S,1),S.m(e,n)):S&&(ve(),p(S,1,1,()=>{S=null}),pe()),se[4]===Je.STOP?T?L&16&&m(T,1):(T=Aa(),T.c(),m(T,1),T.m(e,o)):T&&(ve(),p(T,1,1,()=>{T=null}),pe()),se[4]===Je.PLAY?C?L&16&&m(C,1):(C=La(),C.c(),m(C,1),C.m(e,l)):C&&(ve(),p(C,1,1,()=>{C=null}),pe()),se[4]===Je.SUBTITLES_OFF?I?L&16&&m(I,1):(I=Va(),I.c(),m(I,1),I.m(e,r)):I&&(ve(),p(I,1,1,()=>{I=null}),pe()),se[4]===Je.SUBTITLES_ON?z?L&16&&m(z,1):(z=Ia(),z.c(),m(z,1),z.m(e,s)):z&&(ve(),p(z,1,1,()=>{z=null}),pe()),L&16&&(a=[Je.RATE_DOWN,Je.RATE_UP].includes(se[4])),a?X?(X.p(se,L),L&16&&m(X,1)):(X=za(se),X.c(),m(X,1),X.m(e,c)):X&&(ve(),p(X,1,1,()=>{X=null}),pe()),L&16&&(f=[Je.EPISODE_PREV,Je.EPISODE_NEXT].includes(se[4])),f?$?($.p(se,L),L&16&&m($,1)):($=Ma(se),$.c(),m($,1),$.m(e,h)):$&&(ve(),p($,1,1,()=>{$=null}),pe()),se[4]===Je.MUTE?H?L&16&&m(H,1):(H=Na(),H.c(),m(H,1),H.m(e,g)):H&&(ve(),p(H,1,1,()=>{H=null}),pe()),se[4]===Je.VOLUME?R?L&16&&m(R,1):(R=Ra(),R.c(),m(R,1),R.m(e,null)):R&&(ve(),p(R,1,1,()=>{R=null}),pe()),se[5]?oe?oe.p(se,L):(oe=Ba(se),oe.c(),oe.m(b.parentNode,b)):oe&&(oe.d(1),oe=null)},i(se){A||(m(S),m(T),m(C),m(I),m(z),m(X),m($),m(H),m(R),A=!0)},o(se){p(S),p(T),p(C),p(I),p(z),p(X),p($),p(H),p(R),A=!1},d(se){se&&(y(e),y(v),y(b)),S&&S.d(),T&&T.d(),C&&C.d(),I&&I.d(),z&&z.d(),X&&X.d(),$&&$.d(),H&&H.d(),R&&R.d(),oe&&oe.d(se)}}}function Ea(i){let e,t;return e=new k5({props:{reversed:i[4]===Je.FORWARD_SEEK}}),{c(){F(e.$$.fragment)},m(n,o){O(e,n,o),t=!0},p(n,o){const l={};o&16&&(l.reversed=n[4]===Je.FORWARD_SEEK),e.$set(l)},i(n){t||(m(e.$$.fragment,n),t=!0)},o(n){p(e.$$.fragment,n),t=!1},d(n){D(e,n)}}}function Aa(i){let e,t;return e=new tc({}),{c(){F(e.$$.fragment)},m(n,o){O(e,n,o),t=!0},i(n){t||(m(e.$$.fragment,n),t=!0)},o(n){p(e.$$.fragment,n),t=!1},d(n){D(e,n)}}}function La(i){let e,t;return e=new Gl({}),{c(){F(e.$$.fragment)},m(n,o){O(e,n,o),t=!0},i(n){t||(m(e.$$.fragment,n),t=!0)},o(n){p(e.$$.fragment,n),t=!1},d(n){D(e,n)}}}function Va(i){let e,t;return e=new vc({props:{isOff:!0}}),{c(){F(e.$$.fragment)},m(n,o){O(e,n,o),t=!0},i(n){t||(m(e.$$.fragment,n),t=!0)},o(n){p(e.$$.fragment,n),t=!1},d(n){D(e,n)}}}function Ia(i){let e,t;return e=new vc({}),{c(){F(e.$$.fragment)},m(n,o){O(e,n,o),t=!0},i(n){t||(m(e.$$.fragment,n),t=!0)},o(n){p(e.$$.fragment,n),t=!1},d(n){D(e,n)}}}function za(i){let e,t;return e=new V5({props:{reversed:i[4]===Je.RATE_UP}}),{c(){F(e.$$.fragment)},m(n,o){O(e,n,o),t=!0},p(n,o){const l={};o&16&&(l.reversed=n[4]===Je.RATE_UP),e.$set(l)},i(n){t||(m(e.$$.fragment,n),t=!0)},o(n){p(e.$$.fragment,n),t=!1},d(n){D(e,n)}}}function Ma(i){let e,t;return e=new N5({props:{reversed:i[4]===Je.EPISODE_NEXT}}),{c(){F(e.$$.fragment)},m(n,o){O(e,n,o),t=!0},p(n,o){const l={};o&16&&(l.reversed=n[4]===Je.EPISODE_NEXT),e.$set(l)},i(n){t||(m(e.$$.fragment,n),t=!0)},o(n){p(e.$$.fragment,n),t=!1},d(n){D(e,n)}}}function Na(i){let e,t;return e=new Xo({props:{volume:0}}),{c(){F(e.$$.fragment)},m(n,o){O(e,n,o),t=!0},i(n){t||(m(e.$$.fragment,n),t=!0)},o(n){p(e.$$.fragment,n),t=!1},d(n){D(e,n)}}}function Ra(i){let e,t;return e=new Xo({props:{volume:1}}),{c(){F(e.$$.fragment)},m(n,o){O(e,n,o),t=!0},i(n){t||(m(e.$$.fragment,n),t=!0)},o(n){p(e.$$.fragment,n),t=!1},d(n){D(e,n)}}}function Ba(i){let e,t;return{c(){e=w("span"),t=je(i[5]),u(e,"class","hot-key-helpers-text v-1ner72s")},m(n,o){k(n,e,o),d(e,t)},p(n,o){o&32&&$e(t,n[5])},d(n){n&&y(e)}}}function B5(i){let e,t,n=!i[1]&&i[4]&&Ta(i);return{c(){e=w("div"),n&&n.c(),u(e,"class","hot-key-helpers-container v-1ner72s"),E(e,"hidden",i[1]),E(e,"hot-key-helpers-container--left",i[2]),E(e,"hot-key-helpers-container--right",i[3])},m(o,l){k(o,e,l),n&&n.m(e,null),t=!0},p(o,[l]){!o[1]&&o[4]?n?(n.p(o,l),l&18&&m(n,1)):(n=Ta(o),n.c(),m(n,1),n.m(e,null)):n&&(ve(),p(n,1,1,()=>{n=null}),pe()),(!t||l&2)&&E(e,"hidden",o[1]),(!t||l&4)&&E(e,"hot-key-helpers-container--left",o[2]),(!t||l&8)&&E(e,"hot-key-helpers-container--right",o[3])},i(o){t||(m(n),t=!0)},o(o){p(n),t=!1},d(o){o&&y(e),n&&n.d()}}}function O5(i,e,t){let n,o=Z,l=()=>(o(),o=_o(r,g=>t(6,n=g)),r);i.$$.on_destroy.push(()=>o());let{data:r}=e;l();let s,a,c,f,h;return i.$$set=g=>{"data"in g&&l(t(0,r=g.data))},i.$$.update=()=>{i.$$.dirty&64&&(t(1,s=!n),t(2,a=(n==null?void 0:n.type)===Je.BACKWARD_SEEK),t(3,c=(n==null?void 0:n.type)===Je.FORWARD_SEEK),t(4,f=n==null?void 0:n.type),n!=null&&n.t?t(5,h=re(n.t.key,{value:n.t.value||""})):t(5,h=n==null?void 0:n.text))},[r,s,a,c,f,h,n]}class D5 extends ke{constructor(e){super(),ye(this,e,O5,B5,we,{data:0},R5)}}function F5(i){Fe(i,"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 H5(i){let e,t,n,o,l,r,s,a,c,f,h,g,v,b,A,S,T,C;return l=new Tn({props:{direction:"up"}}),a=new Tn({props:{direction:"up"}}),g=new Tn({props:{direction:"up"}}),A=new Tn({props:{direction:"up"}}),{c(){e=w("div"),t=w("div"),n=w("div"),o=w("div"),F(l.$$.fragment),r=N(),s=w("div"),F(a.$$.fragment),c=N(),f=w("div"),h=w("div"),F(g.$$.fragment),v=N(),b=w("div"),F(A.$$.fragment),u(o,"class","button button-up v-1yzc86r"),u(s,"class","button button-right v-1yzc86r"),u(n,"class","button-row v-1yzc86r"),u(h,"class","button button-left v-1yzc86r"),u(b,"class","button button-down v-1yzc86r"),u(f,"class","button-row v-1yzc86r"),u(t,"class","button-block v-1yzc86r"),u(e,"class","immersive-controls v-1yzc86r"),u(e,"tabindex","0"),u(e,"role","button"),E(e,"m-shifted",i[0])},m(I,z){k(I,e,z),d(e,t),d(t,n),d(n,o),O(l,o,null),d(n,r),d(n,s),O(a,s,null),d(t,c),d(t,f),d(f,h),O(g,h,null),d(f,v),d(f,b),O(A,b,null),S=!0,T||(C=[Ve(o,"mousedown",i[1]),Ve(o,"mouseup",i[5]),Ve(o,"mouseleave",i[5]),Ve(s,"mousedown",i[3]),Ve(s,"mouseup",i[5]),Ve(s,"mouseleave",i[5]),Ve(h,"mousedown",i[4]),Ve(h,"mouseup",i[5]),Ve(h,"mouseleave",i[5]),Ve(b,"mousedown",i[2]),Ve(b,"mouseup",i[5]),Ve(b,"mouseleave",i[5]),Ve(e,"keydown",i[6]),Ve(e,"keyup",i[7])],T=!0)},p(I,[z]){(!S||z&1)&&E(e,"m-shifted",I[0])},i(I){S||(m(l.$$.fragment,I),m(a.$$.fragment,I),m(g.$$.fragment,I),m(A.$$.fragment,I),S=!0)},o(I){p(l.$$.fragment,I),p(a.$$.fragment,I),p(g.$$.fragment,I),p(A.$$.fragment,I),S=!1},d(I){I&&y(e),D(l),D(a),D(g),D(A),T=!1,Gt(C)}}}function U5(i,e,t){let{isShifted:n=!1}=e;const o=Et(),l=new Set([Ge.ArrowUp,Ge.ArrowDown,Ge.ArrowLeft,Ge.ArrowRight]),r=()=>{o.actions.internal.startCameraManualRotation(0,1)},s=()=>{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),h=v=>{if(l.has(v.code))switch(v.preventDefault(),v.stopPropagation(),v.code){case Ge.ArrowUp:r();break;case Ge.ArrowDown:s();break;case Ge.ArrowLeft:c();break;case Ge.ArrowRight:a();break}},g=v=>{l.has(v.code)&&(v.preventDefault(),v.stopPropagation(),f())};return i.$$set=v=>{"isShifted"in v&&t(0,n=v.isShifted)},[n,r,s,a,c,f,h,g]}class pc extends ke{constructor(e){super(),ye(this,e,U5,H5,we,{isShifted:0},F5)}}function j5(i){Fe(i,"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 Oa(i,e,t){const n=i.slice();return n[16]=e[t].value,n}function Da(i,e,t){const n=i.slice();return n[16]=e[t].value,n[17]=e[t].timeAppeared,n}function Fa(i){let e,t;function n(r,s){return r[7]&&r[8]?Z5:r[5]?q5:W5}let o=n(i),l=o(i);return{c(){e=w("div"),t=w("span"),l.c(),u(t,"class","caption v-ovfyp5"),u(e,"class","subtitles-caption v-ovfyp5"),E(e,"mobile",i[3])},m(r,s){k(r,e,s),d(e,t),l.m(t,null)},p(r,s){o===(o=n(r))&&l?l.p(r,s):(l.d(1),l=o(r),l&&(l.c(),l.m(t,null))),s&8&&E(e,"mobile",r[3])},d(r){r&&y(e),l.d()}}}function W5(i){let e,t=Wt(i[1]),n=[];for(let o=0;o<t.length;o+=1)n[o]=Ha(Oa(i,t,o));return{c(){for(let o=0;o<n.length;o+=1)n[o].c();e=wt()},m(o,l){for(let r=0;r<n.length;r+=1)n[r]&&n[r].m(o,l);k(o,e,l)},p(o,l){if(l&18){t=Wt(o[1]);let r;for(r=0;r<t.length;r+=1){const s=Oa(o,t,r);n[r]?n[r].p(s,l):(n[r]=Ha(s),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&&y(e),fn(n,o)}}}function q5(i){let e,t,n=Wt(i[6]),o=[];for(let l=0;l<n.length;l+=1)o[l]=ja(Da(i,n,l));return{c(){e=w("span"),t=w("span");for(let l=0;l<o.length;l+=1)o[l].c();u(t,"class","caption-segment v-ovfyp5"),Ft(t,"font-size",i[4]+"px"),u(e,"class","caption-line v-ovfyp5")},m(l,r){k(l,e,r),d(e,t);for(let s=0;s<o.length;s+=1)o[s]&&o[s].m(t,null)},p(l,r){if(r&68){n=Wt(l[6]);let s;for(s=0;s<n.length;s+=1){const a=Da(l,n,s);o[s]?o[s].p(a,r):(o[s]=ja(a),o[s].c(),o[s].m(t,null))}for(;s<o.length;s+=1)o[s].d(1);o.length=n.length}r&16&&Ft(t,"font-size",l[4]+"px")},d(l){l&&y(e),fn(o,l)}}}function Z5(i){let e,t,n=re("subtitles_auto_caption")+"",o;return{c(){e=w("span"),t=w("span"),o=je(n),u(t,"class","caption-segment v-ovfyp5"),Ft(t,"font-size",i[4]+"px"),u(e,"class","caption-line v-ovfyp5")},m(l,r){k(l,e,r),d(e,t),d(t,o)},p(l,r){r&16&&Ft(t,"font-size",l[4]+"px")},d(l){l&&y(e)}}}function Ha(i){let e,t,n=i[16]+"",o,l;return{c(){e=w("span"),t=w("span"),o=je(n),l=N(),u(t,"class","caption-segment v-ovfyp5"),Ft(t,"font-size",i[4]+"px"),u(e,"class","caption-line v-ovfyp5")},m(r,s){k(r,e,s),d(e,t),d(t,o),d(e,l)},p(r,s){s&2&&n!==(n=r[16]+"")&&$e(o,n),s&16&&Ft(t,"font-size",r[4]+"px")},d(r){r&&y(e)}}}function Ua(i){let e=i[16]+"",t;return{c(){t=je(e)},m(n,o){k(n,t,o)},p(n,o){o&64&&e!==(e=n[16]+"")&&$e(t,e)},d(n){n&&y(t)}}}function ja(i){let e,t=(!i[17]||i[17]<=i[2])&&Ua(i);return{c(){t&&t.c(),e=wt()},m(n,o){t&&t.m(n,o),k(n,e,o)},p(n,o){!n[17]||n[17]<=n[2]?t?t.p(n,o):(t=Ua(n),t.c(),t.m(e.parentNode,e)):t&&(t.d(1),t=null)},d(n){n&&y(e),t&&t.d(n)}}}function G5(i){let e,t=i[1].length>0&&Fa(i);return{c(){e=w("div"),t&&t.c(),u(e,"class","subtitles-container v-ovfyp5"),E(e,"shifted",i[0]),E(e,"auto",i[5]&&!i[8])},m(n,o){k(n,e,o),t&&t.m(e,null)},p(n,[o]){n[1].length>0?t?t.p(n,o):(t=Fa(n),t.c(),t.m(e,null)):t&&(t.d(1),t=null),o&1&&E(e,"shifted",n[0]),o&288&&E(e,"auto",n[5]&&!n[8])},i:Z,o:Z,d(n){n&&y(e),t&&t.d()}}}function K5(i,e,t){let n,o,{shifted:l}=e,{captions:r}=e,{position:s}=e,{playerSize:a}=e,{isMobile:c=!1}=e;const f=Et(),h=tn(),g=f.state.currentSubtitle$;q(i,g,I=>t(12,n=I));const v=f.state.isAutoSubtitleCaptionVisible$;q(i,v,I=>t(8,o=I));let b,A,S,T,C;return xi(()=>{C=window.setTimeout(()=>{v.set(!1)},h.autoSubtitlesTimeout)}),qo(()=>{window.clearTimeout(C)}),i.$$set=I=>{"shifted"in I&&t(0,l=I.shifted),"captions"in I&&t(1,r=I.captions),"position"in I&&t(2,s=I.position),"playerSize"in I&&t(11,a=I.playerSize),"isMobile"in I&&t(3,c=I.isMobile)},i.$$.update=()=>{if(i.$$.dirty&2048){const I=a.width*.02;t(4,b=I<=h.minSubtitlesFontSize?h.minSubtitlesFontSize:I)}i.$$.dirty&2&&t(5,A=r.some(I=>I.type==="timestamp")),i.$$.dirty&2&&t(6,S=r.reduce((I,{type:z,value:X})=>(z==="timestamp"?I.push({timeAppeared:Number(X),value:""}):I.length===0?I.push({value:String(X)}):I[I.length-1].value=String(X),I),[])),i.$$.dirty&4096&&t(7,T=!!n.isAuto)},[l,r,s,c,b,A,S,T,o,g,v,a,n]}class gc extends ke{constructor(e){super(),ye(this,e,K5,G5,we,{shifted:0,captions:1,position:2,playerSize:11,isMobile:3},j5)}}function Y5(i){Fe(i,"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 Wa(i){let e,t,n;return{c(){e=w("div"),t=je("\u0412\u0438\u0434\u0435\u043E \u0432\u043E\u0441\u043F\u0440\u043E\u0438\u0437\u0432\u043E\u0434\u0438\u0442\u0441\u044F \u043D\u0430 "),n=je(i[1]),u(e,"class","text v-1o62kpz")},m(o,l){k(o,e,l),d(e,t),d(e,n)},p(o,l){l&2&&$e(n,o[1])},d(o){o&&y(e)}}}function X5(i){let e,t,n,o,l,r,s=i[1]&&Wa(i);return{c(){e=w("div"),t=w("div"),t.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=N(),s&&s.c(),u(t,"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('${i[0]||""}')`)},m(a,c){k(a,e,c),d(e,t),d(e,n),s&&s.m(e,null),l||(r=Ve(e,"click",i[2]),l=!0)},p(a,[c]){a[1]?s?s.p(a,c):(s=Wa(a),s.c(),s.m(e,null)):s&&(s.d(1),s=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:Z,o:Z,d(a){a&&y(e),s&&s.d(),l=!1,r()}}}function Q5(i,e,t){let{thumbUrl:n}=e,{chromecastDeviceName:o}=e;function l(r){go.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]}class bc extends ke{constructor(e){super(),ye(this,e,Q5,X5,we,{thumbUrl:0,chromecastDeviceName:1},Y5)}}function J5(i){let e,t;return{c(){e=M("svg"),t=M("path"),u(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 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(t,"fill","#fff"),u(t,"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){k(n,e,o),d(e,t)},p:Z,i:Z,o:Z,d(n){n&&y(e)}}}class x5 extends ke{constructor(e){super(),ye(this,e,null,J5,we,{})}}function $5(i){Fe(i,"v-zd9h6u",".container.v-zd9h6u{position:absolute;top:0;bottom:0;left:0;right:0;background:#000;display:flex;align-items:center;justify-content:center}")}function eg(i){let e,t,n;return t=new x5({}),{c(){e=w("div"),F(t.$$.fragment),u(e,"class","container v-zd9h6u")},m(o,l){k(o,e,l),O(t,e,null),n=!0},p:Z,i(o){n||(m(t.$$.fragment,o),n=!0)},o(o){p(t.$$.fragment,o),n=!1},d(o){o&&y(e),D(t)}}}class _c extends ke{constructor(e){super(),ye(this,e,null,eg,we,{},$5)}}function tg(i){Fe(i,"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 ig(i){let e,t,n,o,l,r,s,a,c;return l=new Gl({}),{c(){e=w("div"),t=w("div"),n=w("div"),o=N(),F(l.$$.fragment),u(n,"class","playButtonBackground v-17wno3"),u(t,"class","playButton v-17wno3"),u(e,"class","container v-17wno3"),u(e,"style",r=`background-color: #222; background-image: url('${i[0]||""}')`),E(e,"hidden",i[1])},m(f,h){k(f,e,h),d(e,t),d(t,n),d(t,o),O(l,t,null),s=!0,a||(c=Ve(e,"click",ct(function(){ln(i[2])&&i[2].apply(this,arguments)})),a=!0)},p(f,[h]){i=f,(!s||h&1&&r!==(r=`background-color: #222; background-image: url('${i[0]||""}')`))&&u(e,"style",r),(!s||h&2)&&E(e,"hidden",i[1])},i(f){s||(m(l.$$.fragment,f),s=!0)},o(f){p(l.$$.fragment,f),s=!1},d(f){f&&y(e),D(l),a=!1,c()}}}function ng(i,e,t){let{thumbUrl:n}=e,{hidden:o}=e,{startVideo:l}=e;return i.$$set=r=>{"thumbUrl"in r&&t(0,n=r.thumbUrl),"hidden"in r&&t(1,o=r.hidden),"startVideo"in r&&t(2,l=r.startVideo)},[n,o,l]}class wc extends ke{constructor(e){super(),ye(this,e,ng,ig,we,{thumbUrl:0,hidden:1,startVideo:2},tg)}}function og(i){Fe(i,"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 Gr(i){let e;return{c(){e=w("div"),u(e,"class","top-gradient-mobile v-354ajf")},m(t,n){C(t,e,n)},d(t){t&&y(e)}}}function Kr(i){let e,t;return e=new V4({props:{position:i[6],duration:i[7]}}),{c(){H(e.$$.fragment)},m(n,o){z(e,n,o),t=!0},p(n,o){const r={};o&64&&(r.position=n[6]),o&128&&(r.duration=n[7]),e.$set(r)},i(n){t||(h(e.$$.fragment,n),t=!0)},o(n){p(e.$$.fragment,n),t=!1},d(n){F(e,n)}}}function Yr(i){let e,t;return e=new D4({props:{position:i[6],secondsToWatchBeforeSkip:i[8],skipAd:i[10].actions.internal.skipAd}}),{c(){H(e.$$.fragment)},m(n,o){z(e,n,o),t=!0},p(n,o){const r={};o&64&&(r.position=n[6]),o&256&&(r.secondsToWatchBeforeSkip=n[8]),e.$set(r)},i(n){t||(h(e.$$.fragment,n),t=!0)},o(n){p(e.$$.fragment,n),t=!1},d(n){F(e,n)}}}function Xr(i){let e,t;return e=new E4({}),{c(){H(e.$$.fragment)},m(n,o){z(e,n,o),t=!0},i(n){t||(h(e.$$.fragment,n),t=!0)},o(n){p(e.$$.fragment,n),t=!1},d(n){F(e,n)}}}function Qr(i){let e,t;return e=new H4({}),{c(){H(e.$$.fragment)},m(n,o){z(e,n,o),t=!0},i(n){t||(h(e.$$.fragment,n),t=!0)},o(n){p(e.$$.fragment,n),t=!1},d(n){F(e,n)}}}function j4(i){let e,t,n,o,r,l,s,a,c=i[0]&&Gr(),f=i[3]&&Kr(i),d=i[4]&&Yr(i),g=i[9]&&Xr(),v=i[5]&&Qr();return{c(){e=w("div"),c&&c.c(),t=R(),n=w("video"),o=R(),f&&f.c(),r=R(),d&&d.c(),l=R(),g&&g.c(),s=R(),v&&v.c(),Ht(n,"width","100%"),Ht(n,"height","100%"),n.playsInline=!0,u(e,"class","container v-354ajf")},m(b,S){C(b,e,S),c&&c.m(e,null),m(e,t),m(e,n),i[22](n),m(e,o),f&&f.m(e,null),m(e,r),d&&d.m(e,null),m(e,l),g&&g.m(e,null),m(e,s),v&&v.m(e,null),i[23](e),a=!0},p(b,[S]){b[0]?c||(c=Gr(),c.c(),c.m(e,t)):c&&(c.d(1),c=null),b[3]?f?(f.p(b,S),S&8&&h(f,1)):(f=Kr(b),f.c(),h(f,1),f.m(e,r)):f&&(pe(),p(f,1,1,()=>{f=null}),ve()),b[4]?d?(d.p(b,S),S&16&&h(d,1)):(d=Yr(b),d.c(),h(d,1),d.m(e,l)):d&&(pe(),p(d,1,1,()=>{d=null}),ve()),b[9]?g?S&512&&h(g,1):(g=Xr(),g.c(),h(g,1),g.m(e,s)):g&&(pe(),p(g,1,1,()=>{g=null}),ve()),b[5]?v?S&32&&h(v,1):(v=Qr(),v.c(),h(v,1),v.m(e,null)):v&&(pe(),p(v,1,1,()=>{v=null}),ve())},i(b){a||(h(f),h(d),h(g),h(v),a=!0)},o(b){p(f),p(d),p(g),p(v),a=!1},d(b){b&&y(e),c&&c.d(),i[22](null),f&&f.d(),d&&d.d(),g&&g.d(),v&&v.d(),i[23](null)}}}function q4(i,e,t){let n,o,r,l,s,a,{adsSlotId:c=void 0}=e,{adsParams:f=void 0}=e,{adsPreviewParam:d=void 0}=e,{duration:g=0}=e;const v=Nt(),b=v.state.isEnded$;W(i,b,J=>t(9,a=J));const S=v.ui.isMobile;W(i,S,J=>t(0,o=J));let _,A,E=!1;const V=v.ads.playbackState;W(i,V,J=>t(21,n=J));const B=v.ads.canSkip,le=v.ads.duration;W(i,le,J=>t(7,l=J));const O=v.ads.position;W(i,O,J=>t(6,r=J));const q=v.ads.secondsToWatchBeforeSkip;W(i,q,J=>t(8,s=J));let D,me,ue;vn(()=>{const J=new AbortController;let T=()=>{J.abort()};const I=v.getAdmanWrapper();if(!c){I.onAdmanLoadingError();return}const{width:se,height:G}=ut(v.ui.playerSize),ye=ut(v.ui.isFullscreen),ae=ut(v.ui.isAutoplay),Y={width:se,height:G,isFullscreen:ye,isAutoplay:ae,adsContainer:_,adsVideoElement:A,slotId:c,params:f,previewParam:d,duration:g};return window.AdmanHTML?(I.initAdman(Y),E=!0):I.loadAdman(J.signal).then(()=>{I.initAdman(Y),E=!0}).catch(()=>{I.onAdmanLoadingError()}),()=>{!E&&T()}});function Z(J){Me[J?"unshift":"push"](()=>{A=J,t(2,A)})}function fe(J){Me[J?"unshift":"push"](()=>{_=J,t(1,_)})}return i.$$set=J=>{"adsSlotId"in J&&t(17,c=J.adsSlotId),"adsParams"in J&&t(18,f=J.adsParams),"adsPreviewParam"in J&&t(19,d=J.adsPreviewParam),"duration"in J&&t(20,g=J.duration)},i.$$.update=()=>{i.$$.dirty&2097152&&t(3,D=n!==Kt.INACTIVE),i.$$.dirty&2097152&&t(4,me=B&&n!==Kt.INACTIVE),i.$$.dirty&2097153&&t(5,ue=o&&n!==Kt.INACTIVE)},[o,_,A,D,me,ue,r,l,s,a,v,b,S,V,le,O,q,c,f,d,g,n,Z,fe]}class qu extends we{constructor(e){super(),ke(this,e,q4,j4,_e,{adsSlotId:17,adsParams:18,adsPreviewParam:19,duration:20},U4)}}function Z4(i){let e,t,n;return{c(){e=M("svg"),t=M("path"),n=M("path"),u(t,"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(t,"fill","none"),u(t,"stroke","#fff"),u(t,"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,r){C(o,e,r),m(e,t),m(e,n)},d(o){o&&y(e)}}}function W4(i){let e,t,n;return{c(){e=M("svg"),t=M("rect"),n=M("path"),u(t,"width","42"),u(t,"height","20"),u(t,"rx","5"),u(t,"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,r){C(o,e,r),m(e,t),m(e,n)},d(o){o&&y(e)}}}function G4(i){let e;function t(r,l){return r[0]?W4:Z4}let n=t(i),o=n(i);return{c(){o.c(),e=Et()},m(r,l){o.m(r,l),C(r,e,l)},p(r,[l]){n!==(n=t(r))&&(o.d(1),o=n(r),o&&(o.c(),o.m(e.parentNode,e)))},i:U,o:U,d(r){r&&y(e),o.d(r)}}}function K4(i,e,t){let{isActive:n=!1}=e;return i.$$set=o=>{"isActive"in o&&t(0,n=o.isActive)},[n]}class Zu extends we{constructor(e){super(),ke(this,e,K4,G4,_e,{isActive:0})}}function Y4(i){qe(i,"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 X4(i){let e=Cn(i[4]-i[3])+"",t;return{c(){t=je(e)},m(n,o){C(n,t,o)},p(n,o){o&24&&e!==(e=Cn(n[4]-n[3])+"")&&it(t,e)},i:U,o:U,d(n){n&&y(t)}}}function Q4(i){let e,t,n;return t=new Zu({props:{isActive:!0}}),{c(){e=w("div"),H(t.$$.fragment),u(e,"class","thumb-timer-live-icon v-7pnl2h")},m(o,r){C(o,e,r),z(t,e,null),n=!0},p:U,i(o){n||(h(t.$$.fragment,o),n=!0)},o(o){p(t.$$.fragment,o),n=!1},d(o){o&&y(e),F(t)}}}function J4(i){let e,t,n,o,r,l,s;const a=[Q4,X4],c=[];function f(d,g){return d[1]?0:1}return r=f(i),l=c[r]=a[r](i),{c(){e=w("div"),t=w("div"),t.innerHTML='<div class="col v-7pnl2h"></div> <div class="col v-7pnl2h"></div> <div class="col v-7pnl2h"></div>',n=R(),o=w("span"),l.c(),u(t,"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"),L(e,"live",i[1]),L(e,"hidden",i[0]),L(e,"playing",i[2])},m(d,g){C(d,e,g),m(e,t),m(e,n),m(e,o),c[r].m(o,null),s=!0},p(d,[g]){let v=r;r=f(d),r===v?c[r].p(d,g):(pe(),p(c[v],1,1,()=>{c[v]=null}),ve(),l=c[r],l?l.p(d,g):(l=c[r]=a[r](d),l.c()),h(l,1),l.m(o,null)),(!s||g&2)&&L(e,"live",d[1]),(!s||g&1)&&L(e,"hidden",d[0]),(!s||g&4)&&L(e,"playing",d[2])},i(d){s||(h(l),s=!0)},o(d){p(l),s=!1},d(d){d&&y(e),c[r].d()}}}function x4(i,e,t){let{isHidden:n=!1}=e,{isLive:o=!1}=e,{isPlaying:r=!1}=e,{position:l}=e,{duration:s}=e;return i.$$set=a=>{"isHidden"in a&&t(0,n=a.isHidden),"isLive"in a&&t(1,o=a.isLive),"isPlaying"in a&&t(2,r=a.isPlaying),"position"in a&&t(3,l=a.position),"duration"in a&&t(4,s=a.duration)},[n,o,r,l,s]}class Wu extends we{constructor(e){super(),ke(this,e,x4,J4,_e,{isHidden:0,isLive:1,isPlaying:2,position:3,duration:4},Y4)}}const Gl=i=>{if(document.queryCommandSupported&&document.queryCommandSupported("copy")){const 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)}}};function $4(i){qe(i,"v-gew86s","ul.v-gew86s{position:absolute;border-radius:3px;background:rgba(0, 0, 0, 0.88);transition:visibility .1s,opacity .1s;font-size:13px;list-style:none;margin:0;padding:0;max-height:100%;max-width:100%;overflow-x:hidden;overflow-y:auto}li.v-gew86s{padding:8px 20px;cursor:pointer;position:relative;display:block;color:rgba(255, 255, 255, 0.72);font-size:13px;white-space:nowrap}li.v-gew86s:hover{background:rgba(66, 66, 66, .5);color:var(--white)}")}function em(i){let e,t,n,o,r,l=!i[4]&&!i[14]&&Jr(i);return{c(){e=w("li"),e.textContent=`${re("menu_copy_video_link")}`,t=R(),l&&l.c(),n=Et(),u(e,"class","v-gew86s")},m(s,a){C(s,e,a),C(s,t,a),l&&l.m(s,a),C(s,n,a),o||(r=Se(e,"click",ht(i[28])),o=!0)},p(s,a){!s[4]&&!s[14]?l?l.p(s,a):(l=Jr(s),l.c(),l.m(n.parentNode,n)):l&&(l.d(1),l=null)},d(s){s&&(y(e),y(t),y(n)),l&&l.d(s),o=!1,r()}}}function Jr(i){let e,t,n;return{c(){e=w("li"),e.textContent=`${re("menu_copy_video_link_with_timestamp")}`,u(e,"class","v-gew86s")},m(o,r){C(o,e,r),t||(n=Se(e,"click",ht(i[29])),t=!0)},p:U,d(o){o&&y(e),t=!1,n()}}}function xr(i){let e,t,n;return{c(){e=w("li"),e.textContent=`${re("menu_pip")}`,u(e,"class","v-gew86s")},m(o,r){C(o,e,r),t||(n=Se(e,"click",ht(i[19])),t=!0)},p:U,d(o){o&&y(e),t=!1,n()}}}function tm(i){let e,t,n;return{c(){e=w("li"),e.textContent=`${re("menu_video_rotate")}`,u(e,"class","v-gew86s")},m(o,r){C(o,e,r),t||(n=Se(e,"click",ht(i[15])),t=!0)},p:U,d(o){o&&y(e),t=!1,n()}}}function $r(i){let e,t,n;return{c(){e=w("li"),e.textContent=`${re("menu_report")}`,u(e,"class","v-gew86s")},m(o,r){C(o,e,r),t||(n=Se(e,"click",ht(i[16])),t=!0)},p:U,d(o){o&&y(e),t=!1,n()}}}function im(i){var S;let e,t,n,o,r,l,s,a,c,f,d=i[8].features.copyVideoLink&&((S=i[7].callbacks)==null?void 0:S.onCopyVideoLink)&&em(i),g=i[9]&&i[5]!==ct.ChromecastState.CONNECTED&&!i[14]&&xr(i),v=i[8].features.videoRotate&&!i[14]&&tm(i),b=i[8].showSupport&&!i[6]&&$r(i);return{c(){e=w("ul"),d&&d.c(),t=R(),g&&g.c(),n=R(),v&&v.c(),o=R(),b&&b.c(),r=R(),l=w("li"),l.textContent=`${i[8].features.saveDebugInfoToFile?re("menu_save_debug"):re("menu_copy_debug")}`,s=R(),a=w("li"),a.textContent=`${re("menu_debug_overlay")}`,u(l,"class","v-gew86s"),u(a,"class","v-gew86s"),Ht(e,"top",i[2]+"px"),Ht(e,"left",i[1]+"px"),u(e,"class","v-gew86s"),L(e,"hidden",!i[0])},m(_,A){C(_,e,A),d&&d.m(e,null),m(e,t),g&&g.m(e,null),m(e,n),v&&v.m(e,null),m(e,o),b&&b.m(e,null),m(e,r),m(e,l),m(e,s),m(e,a),i[30](e),c||(f=[Se(l,"click",ht(i[17])),Se(a,"click",ht(i[18])),Se(e,"contextmenu",ui(i[27]))],c=!0)},p(_,A){var E;_[8].features.copyVideoLink&&((E=_[7].callbacks)!=null&&E.onCopyVideoLink)&&d.p(_,A),_[9]&&_[5]!==ct.ChromecastState.CONNECTED&&!_[14]?g?g.p(_,A):(g=xr(_),g.c(),g.m(e,n)):g&&(g.d(1),g=null),_[8].features.videoRotate&&!_[14]&&v.p(_,A),_[8].showSupport&&!_[6]?b?b.p(_,A):(b=$r(_),b.c(),b.m(e,r)):b&&(b.d(1),b=null),A[0]&4&&Ht(e,"top",_[2]+"px"),A[0]&2&&Ht(e,"left",_[1]+"px"),A[0]&1&&L(e,"hidden",!_[0])},i:U,o:U,d(_){_&&y(e),d&&d.d(),g&&g.d(),v&&v.d(),b&&b.d(),i[30](null),c=!1,Xt(f)}}}function nm(i,e,t){var Ne;let n,o,r,l,{visible:s=!1}=e,{supportLink:a}=e,{x:c=0}=e,{y:f=0}=e,{playerContainerRef:d=void 0}=e,{controlsContainerRef:g=void 0}=e,{returnFocus:v}=e,b=0,S=0;const _=Nt(),A=$i(),E=_.ui.contextMenuVisible,V=_.ui.debugPanelVisible,B=_.webApi.pictureInPictureApi,le=(Ne=_.webApi.pictureInPictureApi)==null?void 0:Ne.info.isActive$;W(i,le,N=>t(6,l=N));const O=_.state.chromecastState$;W(i,O,N=>t(5,r=N));const q=_.state.isLive$;W(i,q,N=>t(4,o=N));const D=_.state.positionExact$;W(i,D,N=>t(31,n=N));const me=_.state.isInteractive;let ue;const Z=(N,ce)=>{if(!ue||!d||!g)return;const k=ue.getBoundingClientRect(),$=d.getBoundingClientRect();t(1,b=N-$.left),t(2,S=ce-$.top),b+k.width>$.width&&t(1,b=$.width-k.width),S+k.height>$.height&&t(2,S=$.height-k.height),t(1,b=Math.max(b,0)),t(2,S=Math.max(S,0))},fe=()=>{E.set(!1),_.actions.internal.videoRotate()},J=()=>{window.open(a,"_blank"),E.set(!1),_.actions.internal.pause()},T=()=>{const N=_.actions.internal.getDebugTextData();if(A.features.saveDebugInfoToFile){const ce=new Blob([...N],{type:"plain/text"}),k=window.URL.createObjectURL(ce);Y1(k,"vk_player_debug_info","txt")}else Gl(_.actions.internal.getDebugTextData());E.set(!1),v==null||v()},I=()=>{V.set(!0),E.set(!1),v==null||v()},se=()=>Un(this,null,function*(){try{B!=null&&B.isActive()?yield B==null?void 0:B.remove():yield B==null?void 0:B.request()}finally{E.set(!1),v==null||v()}}),G=(N=!1)=>{var ce,k;if((ce=_.callbacks)!=null&&ce.onCopyVideoLink){const $=(k=_.callbacks)==null?void 0:k.onCopyVideoLink(N,n);$&&Gl($)}E.set(!1)};function ye(N){ao.call(this,i,N)}const ae=()=>G(),Y=()=>G(!0);function oe(N){Me[N?"unshift":"push"](()=>{ue=N,t(3,ue)})}return i.$$set=N=>{"visible"in N&&t(0,s=N.visible),"supportLink"in N&&t(21,a=N.supportLink),"x"in N&&t(22,c=N.x),"y"in N&&t(23,f=N.y),"playerContainerRef"in N&&t(24,d=N.playerContainerRef),"controlsContainerRef"in N&&t(25,g=N.controlsContainerRef),"returnFocus"in N&&t(26,v=N.returnFocus)},i.$$.update=()=>{i.$$.dirty[0]&12582912&&Z(c,f)},[s,b,S,ue,o,r,l,_,A,B,le,O,q,D,me,fe,J,T,I,se,G,a,c,f,d,g,v,ye,ae,Y,oe]}class om extends we{constructor(e){super(),ke(this,e,nm,im,_e,{visible:0,supportLink:21,x:22,y:23,playerContainerRef:24,controlsContainerRef:25,returnFocus:26},$4,[-1,-1])}}class lm{constructor(e){this.value=e,this.next=null}}class Ll{constructor(e){this.top=null,this.bottom=null,this.size=0,this.maxSize=e}push(e){const t=new lm(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(){const e=[];let t=this.bottom;for(;t;)e.push(t.value),t=t.next;return e}}function rm(i){qe(i,"v-1ssl9eb",".container.v-1ssl9eb{display:inline-block;width:120px;height:16px}canvas.v-1ssl9eb{transform:scale(1, -1);margin-top:2px}")}function sm(i){let e,t;return{c(){e=w("div"),t=w("canvas"),u(t,"class","v-1ssl9eb"),u(e,"class","container v-1ssl9eb")},m(n,o){C(n,e,o),m(e,t),i[3](t)},p:U,i:U,o:U,d(n){n&&y(e),i[3](null)}}}const Vl=16,Ml=120,es=60;function am(i,e,t,n,o){o===0&&(o=1),i.fillStyle="#fff",i.fillRect(e,t,n,o)}function um(i,e,t){let{values:n=[]}=e,o,r;const l=Ml/es;vn(()=>{t(0,o.width=Ml,o),t(0,o.height=Vl,o),t(2,r=o.getContext("2d"))});function s(a){Me[a?"unshift":"push"](()=>{o=a,t(0,o)})}return i.$$set=a=>{"values"in a&&t(1,n=a.values)},i.$$.update=()=>{if(i.$$.dirty&6&&r){let a=n[0];for(let f=1;f<n.length;f++)n[f]>a&&(a=n[f]);r.clearRect(0,0,Ml,Vl);let c=es-1;for(let f=n.length-1;f>=0;f--){const d=c*l,g=a>0?Vl*(n[f]/a):0;am(r,d,0,l,g),c--}}},[o,n,r,s]}class tr extends we{constructor(e){super(),ke(this,e,um,sm,_e,{values:1},rm)}}function cm(i){qe(i,"v-1gy2e68",".container.v-1gy2e68.v-1gy2e68.v-1gy2e68{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-1gy2e68.v-1gy2e68.v-1gy2e68{top:16px;left:16px}button.v-1gy2e68.v-1gy2e68.v-1gy2e68{position:absolute;right:5px;top:3px;cursor:pointer;outline:0;border:none;background-color:transparent;padding:0;color:#fff}.content.v-1gy2e68.v-1gy2e68.v-1gy2e68{padding:5px}.content.v-1gy2e68>div.v-1gy2e68>div.v-1gy2e68{display:inline-block;text-align:right;width:52px;padding:0 5px}")}function ts(i){let e,t,n,o,r=i[0].id+"",l;return{c(){e=w("div"),t=w("div"),t.textContent="Video id",n=R(),o=w("span"),l=je(r),u(t,"class","v-1gy2e68"),u(e,"class","v-1gy2e68")},m(s,a){C(s,e,a),m(e,t),m(e,n),m(e,o),m(o,l)},p(s,a){a&1&&r!==(r=s[0].id+"")&&it(l,r)},d(s){s&&y(e)}}}function is(i){let e,t,n,o,r=i[0].provider+"",l;return{c(){e=w("div"),t=w("div"),t.textContent="Provider",n=R(),o=w("span"),l=je(r),u(t,"class","v-1gy2e68"),u(e,"class","v-1gy2e68")},m(s,a){C(s,e,a),m(e,t),m(e,n),m(e,o),m(o,l)},p(s,a){a&1&&r!==(r=s[0].provider+"")&&it(l,r)},d(s){s&&y(e)}}}function ns(i){let e,t,n,o,r=i[0].viewport+"",l;return{c(){e=w("div"),t=w("div"),t.textContent="Viewport",n=R(),o=w("span"),l=je(r),u(t,"class","v-1gy2e68"),u(e,"class","v-1gy2e68")},m(s,a){C(s,e,a),m(e,t),m(e,n),m(e,o),m(o,l)},p(s,a){a&1&&r!==(r=s[0].viewport+"")&&it(l,r)},d(s){s&&y(e)}}}function os(i){let e,t,n,o,r=i[0].videoSize+"",l;return{c(){e=w("div"),t=w("div"),t.textContent="Video size",n=R(),o=w("span"),l=je(r),u(t,"class","v-1gy2e68"),u(e,"class","v-1gy2e68")},m(s,a){C(s,e,a),m(e,t),m(e,n),m(e,o),m(o,l)},p(s,a){a&1&&r!==(r=s[0].videoSize+"")&&it(l,r)},d(s){s&&y(e)}}}function ls(i){let e,t,n,o,r=i[0].cdn+"",l;return{c(){e=w("div"),t=w("div"),t.textContent="CDN host",n=R(),o=w("span"),l=je(r),u(t,"class","v-1gy2e68"),u(e,"class","v-1gy2e68")},m(s,a){C(s,e,a),m(e,t),m(e,n),m(e,o),m(o,l)},p(s,a){a&1&&r!==(r=s[0].cdn+"")&&it(l,r)},d(s){s&&y(e)}}}function rs(i){let e,t,n,o,r=i[0].volume+"",l,s;return{c(){e=w("div"),t=w("div"),t.textContent="Volume",n=R(),o=w("span"),l=je(r),s=je(" %"),u(t,"class","v-1gy2e68"),u(e,"class","v-1gy2e68")},m(a,c){C(a,e,c),m(e,t),m(e,n),m(e,o),m(o,l),m(o,s)},p(a,c){c&1&&r!==(r=a[0].volume+"")&&it(l,r)},d(a){a&&y(e)}}}function ss(i){let e,t,n,o,r=i[0].buffer.toFixed(2)+"",l,s;return{c(){e=w("div"),t=w("div"),t.textContent="Buffer",n=R(),o=w("span"),l=je(r),s=je(" s"),u(t,"class","v-1gy2e68"),u(e,"class","v-1gy2e68")},m(a,c){C(a,e,c),m(e,t),m(e,n),m(e,o),m(o,l),m(o,s)},p(a,c){c&1&&r!==(r=a[0].buffer.toFixed(2)+"")&&it(l,r)},d(a){a&&y(e)}}}function as(i){let e,t,n,o,r,l,s=i[0].speed.toFixed(2)+"",a,c,f;return o=new tr({props:{values:i[5]}}),{c(){e=w("div"),t=w("div"),t.textContent="Network",n=R(),H(o.$$.fragment),r=R(),l=w("span"),a=je(s),c=je(" Kbps"),u(t,"class","v-1gy2e68"),u(e,"class","v-1gy2e68")},m(d,g){C(d,e,g),m(e,t),m(e,n),z(o,e,null),m(e,r),m(e,l),m(l,a),m(l,c),f=!0},p(d,g){const v={};g&32&&(v.values=d[5]),o.$set(v),(!f||g&1)&&s!==(s=d[0].speed.toFixed(2)+"")&&it(a,s)},i(d){f||(h(o.$$.fragment,d),f=!0)},o(d){p(o.$$.fragment,d),f=!1},d(d){d&&y(e),F(o)}}}function us(i){let e,t,n,o,r,l,s=i[0].bitrate.toFixed(2)+"",a,c,f;return o=new tr({props:{values:i[6]}}),{c(){e=w("div"),t=w("div"),t.textContent="V bitrate",n=R(),H(o.$$.fragment),r=R(),l=w("span"),a=je(s),c=je(" Kbps"),u(t,"class","v-1gy2e68"),u(e,"class","v-1gy2e68")},m(d,g){C(d,e,g),m(e,t),m(e,n),z(o,e,null),m(e,r),m(e,l),m(l,a),m(l,c),f=!0},p(d,g){const v={};g&64&&(v.values=d[6]),o.$set(v),(!f||g&1)&&s!==(s=d[0].bitrate.toFixed(2)+"")&&it(a,s)},i(d){f||(h(o.$$.fragment,d),f=!0)},o(d){p(o.$$.fragment,d),f=!1},d(d){d&&y(e),F(o)}}}function fm(i){let e,t,n,o,r,l,s,a,c=i[0].version+"",f,d,g,v,b,S,_,A,E,V,B,le,O,q,D,me,ue,Z,fe,J,T,I,se,G,ye,ae,Y,oe,Ne,N,ce=i[0].id&&ts(i),k=i[0].provider&&is(i),$=i[0].viewport&&ns(i),Fe=i[0].videoSize&&os(i),Te=i[0].cdn&&ls(i),Ve=i[0].volume&&rs(i),Ae=i[0].buffer&&ss(i),be=i[0].speed&&as(i),Ee=i[0].bitrate&&us(i);return G=new tr({props:{values:i[4]}}),{c(){e=w("div"),t=w("button"),t.textContent="[x]",n=R(),o=w("div"),r=w("div"),l=w("div"),l.textContent="Version",s=R(),a=w("span"),f=je(c),d=R(),ce&&ce.c(),g=R(),k&&k.c(),v=R(),$&&$.c(),b=R(),Fe&&Fe.c(),S=R(),Te&&Te.c(),_=R(),Ve&&Ve.c(),A=R(),Ae&&Ae.c(),E=R(),V=w("div"),B=w("div"),B.textContent="Dropped",le=R(),O=w("span"),q=je(i[2]),D=je(" / "),me=je(i[1]),ue=je(" frames"),Z=R(),be&&be.c(),fe=R(),Ee&&Ee.c(),J=R(),T=w("div"),I=w("div"),I.textContent="FPS",se=R(),H(G.$$.fragment),ye=R(),ae=w("span"),Y=je(i[3]),u(t,"class","close v-1gy2e68"),u(t,"title","\u0437\u0430\u043A\u0440\u044B\u0442\u044C"),u(l,"class","v-1gy2e68"),u(r,"class","v-1gy2e68"),u(B,"class","v-1gy2e68"),u(V,"class","v-1gy2e68"),u(I,"class","v-1gy2e68"),u(T,"class","v-1gy2e68"),u(o,"class","content v-1gy2e68"),u(e,"class","container v-1gy2e68"),L(e,"container-mobile",i[7])},m(Pe,X){C(Pe,e,X),m(e,t),m(e,n),m(e,o),m(o,r),m(r,l),m(r,s),m(r,a),m(a,f),m(o,d),ce&&ce.m(o,null),m(o,g),k&&k.m(o,null),m(o,v),$&&$.m(o,null),m(o,b),Fe&&Fe.m(o,null),m(o,S),Te&&Te.m(o,null),m(o,_),Ve&&Ve.m(o,null),m(o,A),Ae&&Ae.m(o,null),m(o,E),m(o,V),m(V,B),m(V,le),m(V,O),m(O,q),m(O,D),m(O,me),m(O,ue),m(o,Z),be&&be.m(o,null),m(o,fe),Ee&&Ee.m(o,null),m(o,J),m(o,T),m(T,I),m(T,se),z(G,T,null),m(T,ye),m(T,ae),m(ae,Y),oe=!0,Ne||(N=Se(t,"click",ht(i[9])),Ne=!0)},p(Pe,[X]){(!oe||X&1)&&c!==(c=Pe[0].version+"")&&it(f,c),Pe[0].id?ce?ce.p(Pe,X):(ce=ts(Pe),ce.c(),ce.m(o,g)):ce&&(ce.d(1),ce=null),Pe[0].provider?k?k.p(Pe,X):(k=is(Pe),k.c(),k.m(o,v)):k&&(k.d(1),k=null),Pe[0].viewport?$?$.p(Pe,X):($=ns(Pe),$.c(),$.m(o,b)):$&&($.d(1),$=null),Pe[0].videoSize?Fe?Fe.p(Pe,X):(Fe=os(Pe),Fe.c(),Fe.m(o,S)):Fe&&(Fe.d(1),Fe=null),Pe[0].cdn?Te?Te.p(Pe,X):(Te=ls(Pe),Te.c(),Te.m(o,_)):Te&&(Te.d(1),Te=null),Pe[0].volume?Ve?Ve.p(Pe,X):(Ve=rs(Pe),Ve.c(),Ve.m(o,A)):Ve&&(Ve.d(1),Ve=null),Pe[0].buffer?Ae?Ae.p(Pe,X):(Ae=ss(Pe),Ae.c(),Ae.m(o,E)):Ae&&(Ae.d(1),Ae=null),(!oe||X&4)&&it(q,Pe[2]),(!oe||X&2)&&it(me,Pe[1]),Pe[0].speed?be?(be.p(Pe,X),X&1&&h(be,1)):(be=as(Pe),be.c(),h(be,1),be.m(o,fe)):be&&(pe(),p(be,1,1,()=>{be=null}),ve()),Pe[0].bitrate?Ee?(Ee.p(Pe,X),X&1&&h(Ee,1)):(Ee=us(Pe),Ee.c(),h(Ee,1),Ee.m(o,J)):Ee&&(pe(),p(Ee,1,1,()=>{Ee=null}),ve());const j={};X&16&&(j.values=Pe[4]),G.$set(j),(!oe||X&8)&&it(Y,Pe[3]),(!oe||X&128)&&L(e,"container-mobile",Pe[7])},i(Pe){oe||(h(be),h(Ee),h(G.$$.fragment,Pe),oe=!0)},o(Pe){p(be),p(Ee),p(G.$$.fragment,Pe),oe=!1},d(Pe){Pe&&y(e),ce&&ce.d(),k&&k.d(),$&&$.d(),Fe&&Fe.d(),Te&&Te.d(),Ve&&Ve.d(),Ae&&Ae.d(),be&&be.d(),Ee&&Ee.d(),F(G),Ne=!1,N()}}}function dm(i,e,t){let n;const o=Nt(),r=o.ui.debugPanelVisible,l=o.ui.isMobile;W(i,l,V=>t(7,n=V));const s=()=>{ne.safeStorage.remove(Hl),r.set(!1)};let a=o.actions.internal.getDebugPanelData(),c=o.actions.internal.getVideoElement(),f=0,d=0,g=0;const v=new Ll(60),b=new Ll(60),S=new Ll(60);let _=[],A=[],E=[];return vn(()=>{ne.safeStorage.set(Hl,"true"),o.actions.internal.startLogging(),c&&(t(2,d=c.getVideoPlaybackQuality().droppedVideoFrames),t(1,f=c.getVideoPlaybackQuality().totalVideoFrames));const V=window.setInterval(()=>{t(0,a=o.actions.internal.getDebugPanelData())},500);let B;return c&&(B=window.setInterval(()=>{if(c){t(2,d=c.getVideoPlaybackQuality().droppedVideoFrames);const le=c.getVideoPlaybackQuality().totalVideoFrames;t(3,g=le-f),t(1,f=le),v.push(g),a.speed&&b.push(a.speed),a.bitrate&&S.push(a.bitrate),t(4,_=v.getValuesFromBottom()),t(5,A=b.getValuesFromBottom()),t(6,E=S.getValuesFromBottom())}},1e3)),()=>{o.actions.internal.stopLogging(),clearInterval(V),B&&clearInterval(B)}}),[a,f,d,g,_,A,E,n,l,s]}class Gu extends we{constructor(e){super(),ke(this,e,dm,fm,_e,{},cm)}}function mm(i){qe(i,"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 hm(i){let e,t,n;return{c(){e=w("div"),u(e,"class","close v-1ome55p")},m(o,r){C(o,e,r),t||(n=Se(e,"click",ht(i[0])),t=!0)},p:U,i:U,o:U,d(o){o&&y(e),t=!1,n()}}}function pm(i){function e(t){ao.call(this,i,t)}return[e]}class vm extends we{constructor(e){super(),ke(this,e,pm,hm,_e,{},mm)}}function gm(i){qe(i,"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 bm(i){let e,t,n,o,r,l,s;return{c(){e=w("div"),t=w("canvas"),n=R(),o=M("svg"),r=M("g"),l=M("g"),s=M("path"),u(t,"class","timer-canvas v-8jhsry"),u(t,"width","100"),u(t,"height","100"),u(s,"class","_play"),u(s,"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(s,"fill","#fff"),u(l,"fill-rule","nonzero"),u(r,"fill","none"),u(r,"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){C(a,e,c),m(e,t),i[2](t),m(e,n),m(e,o),m(o,r),m(r,l),m(l,s)},p:U,i:U,o:U,d(a){a&&y(e),i[2](null)}}}const _m=5e3;function km(i,e,t){let{onTimerEnded:n=ne.noop}=e,o;vn(()=>{let l;const s=o.getContext("2d");if(!s)return;s.lineWidth=6,s.lineCap="round",s.strokeStyle="#fff";const a=Date.now(),c=()=>{const f=(Date.now()-a)/_m;f<1?(s.clearRect(0,0,100,100),s.beginPath(),s.arc(50,50,47,-Math.PI/2,-Math.PI/2+Math.PI*2*f),s.stroke(),l=requestAnimationFrame(c)):n()};return l=requestAnimationFrame(c),()=>{cancelAnimationFrame(l)}});function r(l){Me[l?"unshift":"push"](()=>{o=l,t(0,o)})}return i.$$set=l=>{"onTimerEnded"in l&&t(1,n=l.onTimerEnded)},[o,n,r]}class wm extends we{constructor(e){super(),ke(this,e,km,bm,_e,{onTimerEnded:1},gm)}}function ym(i){qe(i,"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 cs(i){let e,t;return e=new wm({props:{onTimerEnded:i[2]}}),{c(){H(e.$$.fragment)},m(n,o){z(e,n,o),t=!0},p(n,o){const r={};o&4&&(r.onTimerEnded=n[2]),e.$set(r)},i(n){t||(h(e.$$.fragment,n),t=!0)},o(n){p(e.$$.fragment,n),t=!1},d(n){F(e,n)}}}function Cm(i){let e,t,n,o,r,l,s,a,c,f,d,g,v,b,S,_,A,E,V,B,le;s=new vm({}),s.$on("click",i[4]);let O=i[3]&&cs(i);return{c(){e=w("div"),t=R(),n=w("div"),o=w("div"),r=w("div"),r.textContent="\u0441\u043B\u0435\u0434\u0443\u044E\u0449\u0435\u0435 \u0432\u0438\u0434\u0435\u043E",l=R(),H(s.$$.fragment),a=R(),c=w("div"),f=w("div"),d=w("div"),g=w("div"),v=R(),O&&O.c(),S=R(),_=w("div"),A=w("div"),E=je(i[0]),u(e,"class","overlay v-kisfwc"),u(r,"class","caption v-kisfwc"),u(o,"class","top v-kisfwc"),u(g,"class","thumb-overlay v-kisfwc"),u(d,"class","thumb v-kisfwc"),u(d,"style",b=`background-image: url('${i[1]}')`),u(f,"class","column v-kisfwc"),u(A,"class","title v-kisfwc"),u(_,"class","column v-kisfwc"),u(c,"class","row v-kisfwc"),u(n,"class","next-video v-kisfwc")},m(q,D){C(q,e,D),C(q,t,D),C(q,n,D),m(n,o),m(o,r),m(o,l),z(s,o,null),m(n,a),m(n,c),m(c,f),m(f,d),m(d,g),m(d,v),O&&O.m(d,null),m(c,S),m(c,_),m(_,A),m(A,E),V=!0,B||(le=Se(c,"click",function(){cn(i[2])&&i[2].apply(this,arguments)}),B=!0)},p(q,[D]){i=q,i[3]?O?(O.p(i,D),D&8&&h(O,1)):(O=cs(i),O.c(),h(O,1),O.m(d,null)):O&&(pe(),p(O,1,1,()=>{O=null}),ve()),(!V||D&2&&b!==(b=`background-image: url('${i[1]}')`))&&u(d,"style",b),(!V||D&1)&&it(E,i[0])},i(q){V||(h(s.$$.fragment,q),h(O),V=!0)},o(q){p(s.$$.fragment,q),p(O),V=!1},d(q){q&&(y(e),y(t),y(n)),F(s),O&&O.d(),B=!1,le()}}}function Pm(i,e,t){let{title:n}=e,{thumb:o}=e,{playNextVideo:r}=e,l=!0;const s=()=>t(3,l=!1);return i.$$set=a=>{"title"in a&&t(0,n=a.title),"thumb"in a&&t(1,o=a.thumb),"playNextVideo"in a&&t(2,r=a.playNextVideo)},[n,o,r,l,s]}class Sm extends we{constructor(e){super(),ke(this,e,Pm,Cm,_e,{title:0,thumb:1,playNextVideo:2},ym)}}const Ku=(i,e)=>Math.min(+(i+e).toFixed(2),1),Yu=(i,e)=>Math.max(+(i-e).toFixed(2),0),Xu=(i,e,t)=>{const n=Ku(e,t);e<1&&i.actions.internal.setVolume(n)},Qu=(i,e,t)=>{const n=Yu(e,t);e>0&&i.actions.internal.setVolume(n)};function Tm(i){qe(i,"v-10kkmxz",".keyboard-controls.v-10kkmxz{position:absolute;left:0;right:0;top:0;bottom:0}")}function Em(i){let e,t,n,o;const r=i[20].default,l=Bn(r,i,i[19],null);return{c(){e=w("div"),l&&l.c(),u(e,"class","keyboard-controls v-10kkmxz"),u(e,"tabindex","0")},m(s,a){C(s,e,a),l&&l.m(e,null),i[21](e),t=!0,n||(o=[Se(e,"keyup",i[12]),Se(e,"keydown",i[11])],n=!0)},p(s,a){l&&l.p&&(!t||a[0]&524288)&&Rn(l,r,s,s[19],t?Nn(r,s[19],a,null):On(s[19]),null)},i(s){t||(h(l,s),t=!0)},o(s){p(l,s),t=!1},d(s){s&&y(e),l&&l.d(s),i[21](null),n=!1,Xt(o)}}}function Am(i,e,t){let n,o,r,l,s,a,c,f,d,g,{$$slots:v={},$$scope:b}=e,{isAds:S}=e,{hideContextMenu:_}=e,{toggleFullscreen:A}=e,{showHotKeyHelpers:E}=e,{showKeyMap:V}=e;const B=Nt(),le=$i(),O=B.getLogger().createComponentLog("KeyboardControls component"),q=B.state.playbackState$;W(i,q,k=>t(25,o=k));const D=B.ads.playbackState;W(i,D,k=>t(24,n=k));const me=B.state.positionExact$;W(i,me,k=>t(30,c=k));const ue=B.state.duration$;W(i,ue,k=>t(29,a=k));const Z=B.state.volume$;W(i,Z,k=>t(33,g=k));const fe=B.ui.controls.disabledControls$;W(i,fe,k=>t(28,s=k));const J=B.state.muted$;W(i,J,k=>t(27,l=k));const T=B.state.currentSubtitle$;W(i,T,k=>t(26,r=k));const I=B.state.currentPlaybackRate$;W(i,I,k=>t(31,f=k));const se=B.state.availablePlaybackRates$;W(i,se,k=>t(32,d=k));let G=0,ye=!0,ae;const Y=()=>ae==null?void 0:ae.focus(),oe=k=>(k!==ye&&(ye=k,G=0),G+=1,(le.controls.seekStepKeyboard+le.controls.seekStepKeyboard*G)/1e3),Ne=k=>{_();const $=k.code,Fe=!Vf.has($);if(k.ctrlKey&&Fe||k.altKey&&Fe||k.metaKey)return;const Te=o===ct.PlaybackState.PLAYING||o===ct.PlaybackState.PAUSED,Ve=S&&(n===Kt.PAUSED||n===Kt.PLAYING),Ae=!Ve&&!s.has(_t.TIMELINE);if(Te||Ve)switch(O({message:`key down, code: ${$}`}),$){case Ge.KeyJ:case Ge.ArrowLeft:{if(!Ae)break;if(k.ctrlKey||k.altKey){const be=B.actions.internal.getPrevEpisode();B.actions.internal.seekToPrevEpisode(be),be&&E({type:tt.EPISODE_PREV,text:be.text}),k.preventDefault()}else{const be=k.shiftKey?oe(!1):le.controls.seekStepKeyboard/1e3,Ee=Math.max(c-be,0);c>0&&(B.actions.internal.seekTime(Ee,Tt.SeekAction.DOUBLE_TAP),E({type:tt.BACKWARD_SEEK,text:be.toString()}),k.preventDefault())}break}case Ge.KeyL:case Ge.ArrowRight:{if(!Ae)break;if(k.ctrlKey||k.altKey){const be=B.actions.internal.getNextEpisode();B.actions.internal.seekToNextEpisode(be),be&&E({type:tt.EPISODE_NEXT,text:be.text}),k.preventDefault()}else{const be=k.shiftKey?oe(!0):le.controls.seekStepKeyboard/1e3,Ee=Math.min(c+be,a);Math.round(c)<Math.round(a)&&(B.actions.internal.seekTime(Ee,Tt.SeekAction.DOUBLE_TAP),E({type:tt.FORWARD_SEEK,text:be.toString()}),k.preventDefault())}break}case Ge.ArrowUp:{const be=g,Ee=le.controls.volumeStepKeyboard,Pe=be<=1;if(Xu(B,be,Ee),Pe){const X=Math.round(Ku(be,Ee)*100).toString();E({type:tt.VOLUME,t:{key:"hotkey_helper_current_volume",value:X}})}k.preventDefault();break}case Ge.ArrowDown:{const be=g,Ee=le.controls.volumeStepKeyboard,Pe=be>=0;if(Qu(B,be,Ee),Pe){const X=Math.round(Yu(be,Ee)*100).toString();E({type:tt.VOLUME,t:{key:"hotkey_helper_current_volume",value:X}})}k.preventDefault();break}case Ge.Comma:{if(k.shiftKey){B.actions.internal.decrementPlaybackRate();const be=d.find(Ee=>Ee.value===f);E({type:tt.RATE_DOWN,text:be==null?void 0:be.displayValue}),k.preventDefault()}else{if(Ve||o!==ct.PlaybackState.PAUSED)break;const be=Math.max(c-le.controls.seekStepFrame/1e3,0);c>0&&(E({type:tt.BACKWARD_SEEK}),B.actions.internal.clearDelayedBufferingCheckTimeout(),B.actions.internal.seekTime(be,Tt.SeekAction.DOUBLE_TAP),k.preventDefault())}break}case Ge.Period:{if(k.shiftKey){B.actions.internal.incrementPlaybackRate();const be=d.find(Ee=>Ee.value===f);E({type:tt.RATE_UP,text:be==null?void 0:be.displayValue}),k.preventDefault()}else{if(Ve||o!==ct.PlaybackState.PAUSED)break;const be=Math.min(c+le.controls.seekStepFrame/1e3,a);c<a&&(E({type:tt.FORWARD_SEEK}),B.actions.internal.clearDelayedBufferingCheckTimeout(),B.actions.internal.seekTime(be,Tt.SeekAction.DOUBLE_TAP),k.preventDefault())}break}case Ge.KeyK:case Ge.Space:s.has(_t.PLAY_BUTTON)||(B.actions.internal.togglePlay(),E({type:o===ct.PlaybackState.PLAYING?tt.PLAY:tt.STOP})),k.preventDefault();break;case Ge.KeyM:{E({type:l?tt.VOLUME:tt.MUTE}),B.actions.internal.toggleMuted(),k.preventDefault();break}case Ge.KeyF:A(),k.preventDefault();break;case Ge.KeyC:B.actions.internal.toggleSubtitle(),r.value!=="off"?E({type:tt.SUBTITLES_ON,text:r==null?void 0:r.displayValue}):E({type:tt.SUBTITLES_OFF}),k.preventDefault();break;case Ge.KeyI:B.actions.internal.togglePictureInPicture(),k.preventDefault();break;case Ge.Digit1:case Ge.Numpad1:E(),B.actions.internal.seekToPercent(.1,Tt.SeekAction.DOUBLE_TAP),k.preventDefault();break;case Ge.Digit2:case Ge.Numpad2:E(),B.actions.internal.seekToPercent(.2,Tt.SeekAction.DOUBLE_TAP),k.preventDefault();break;case Ge.Digit3:case Ge.Numpad3:E(),B.actions.internal.seekToPercent(.3,Tt.SeekAction.DOUBLE_TAP),k.preventDefault();break;case Ge.Digit4:case Ge.Numpad4:E(),B.actions.internal.seekToPercent(.4,Tt.SeekAction.DOUBLE_TAP),k.preventDefault();break;case Ge.Digit5:case Ge.Numpad5:E(),B.actions.internal.seekToPercent(.5,Tt.SeekAction.DOUBLE_TAP),k.preventDefault();break;case Ge.Digit6:case Ge.Numpad6:E(),B.actions.internal.seekToPercent(.6,Tt.SeekAction.DOUBLE_TAP),k.preventDefault();break;case Ge.Digit7:case Ge.Numpad7:E(),B.actions.internal.seekToPercent(.7,Tt.SeekAction.DOUBLE_TAP),k.preventDefault();break;case Ge.Digit8:case Ge.Numpad8:E(),B.actions.internal.seekToPercent(.8,Tt.SeekAction.DOUBLE_TAP),k.preventDefault();break;case Ge.Digit9:case Ge.Numpad9:E(),B.actions.internal.seekToPercent(.9,Tt.SeekAction.DOUBLE_TAP),k.preventDefault();break;case Ge.Digit0:case Ge.Numpad0:E(),B.actions.internal.seekToPercent(0,Tt.SeekAction.DOUBLE_TAP),k.preventDefault();break;case Ge.Slash:{k.shiftKey&&le.features.hotKeyMapModal&&(V(),k.preventDefault());break}case Ge.ShiftLeft:case Ge.ShiftRight:k.preventDefault();break;default:ne.checkNever($);break}},N=k=>{const $=k.code;if(k.ctrlKey||k.altKey||k.metaKey)return;const Fe=o===ct.PlaybackState.PLAYING||o===ct.PlaybackState.PAUSED,Te=S&&(n===Kt.PAUSED||n===Kt.PLAYING);if(Fe||Te)switch($){case Ge.ShiftLeft:case Ge.ShiftRight:G=0;break}};function ce(k){Me[k?"unshift":"push"](()=>{ae=k,t(0,ae)})}return i.$$set=k=>{"isAds"in k&&t(13,S=k.isAds),"hideContextMenu"in k&&t(14,_=k.hideContextMenu),"toggleFullscreen"in k&&t(15,A=k.toggleFullscreen),"showHotKeyHelpers"in k&&t(16,E=k.showHotKeyHelpers),"showKeyMap"in k&&t(17,V=k.showKeyMap),"$$scope"in k&&t(19,b=k.$$scope)},[ae,q,D,me,ue,Z,fe,J,T,I,se,Ne,N,S,_,A,E,V,Y,b,v,ce]}class Im extends we{constructor(e){super(),ke(this,e,Am,Em,_e,{isAds:13,hideContextMenu:14,toggleFullscreen:15,showHotKeyHelpers:16,showKeyMap:17,focus:18},Tm,[-1,-1])}get focus(){return this.$$.ctx[18]}}function Lm(i){qe(i,"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 Vm(i){let e;return{c(){e=w("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(t,n){C(t,e,n)},p:U,i:U,o:U,d(t){t&&y(e)}}}class Ju extends we{constructor(e){super(),ke(this,e,null,Vm,_e,{},Lm)}}function Mm(i){let e,t,n,o,r,l,s,a,c,f,d,g,v;return{c(){e=M("svg"),t=M("g"),n=M("path"),o=M("path"),r=M("defs"),l=M("filter"),s=M("feFlood"),a=M("feColorMatrix"),c=M("feOffset"),f=M("feGaussianBlur"),d=M("feColorMatrix"),g=M("feBlend"),v=M("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(t,"filter","url(#a)"),u(s,"flood-opacity","0"),u(s,"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(d,"values","0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.16 0"),u(g,"in2","BackgroundImageFix"),u(g,"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(b,S){C(b,e,S),m(e,t),m(t,n),m(t,o),m(e,r),m(r,l),m(l,s),m(l,a),m(l,c),m(l,f),m(l,d),m(l,g),m(l,v)},p:U,i:U,o:U,d(b){b&&y(e)}}}class Bm extends we{constructor(e){super(),ke(this,e,null,Mm,_e,{})}}function Nm(i){qe(i,"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 Rm(i){let e,t,n,o,r,l,s,a,c,f;const d=i[9].default,g=Bn(d,i,i[8],null);return{c(){var v,b,S,_;e=w("button"),g&&g.c(),u(e,"class",t="btn "+i[1]+" v-1anemql"),u(e,"style",n=i[2]||null),e.disabled=o=(v=i[3])!=null?v:null,u(e,"aria-hidden",r=(b=i[5])!=null?b:null),u(e,"aria-label",l=(S=i[6])!=null?S:null),u(e,"data-testid",s=(_=i[4])!=null?_:null)},m(v,b){C(v,e,b),g&&g.m(e,null),i[11](e),a=!0,c||(f=[Se(e,"pointerdown",ht(ui(i[10]))),Se(e,"click",ht(ui(function(){cn(i[7])&&i[7].apply(this,arguments)})))],c=!0)},p(v,[b]){var S,_,A,E;i=v,g&&g.p&&(!a||b&256)&&Rn(g,d,i,i[8],a?Nn(d,i[8],b,null):On(i[8]),null),(!a||b&2&&t!==(t="btn "+i[1]+" v-1anemql"))&&u(e,"class",t),(!a||b&4&&n!==(n=i[2]||null))&&u(e,"style",n),(!a||b&8&&o!==(o=(S=i[3])!=null?S:null))&&(e.disabled=o),(!a||b&32&&r!==(r=(_=i[5])!=null?_:null))&&u(e,"aria-hidden",r),(!a||b&64&&l!==(l=(A=i[6])!=null?A:null))&&u(e,"aria-label",l),(!a||b&16&&s!==(s=(E=i[4])!=null?E:null))&&u(e,"data-testid",s)},i(v){a||(h(g,v),a=!0)},o(v){p(g,v),a=!1},d(v){v&&y(e),g&&g.d(v),i[11](null),c=!1,Xt(f)}}}function Om(i,e,t){let{$$slots:n={},$$scope:o}=e,{className:r=""}=e,{style:l=""}=e,{disabled:s=void 0}=e,{testId:a=void 0}=e,{ariaHidden:c=void 0}=e,{ariaLabel:f=void 0}=e,{ref:d=void 0}=e,{click:g=ne.noop}=e;function v(S){ao.call(this,i,S)}function b(S){Me[S?"unshift":"push"](()=>{d=S,t(0,d)})}return i.$$set=S=>{"className"in S&&t(1,r=S.className),"style"in S&&t(2,l=S.style),"disabled"in S&&t(3,s=S.disabled),"testId"in S&&t(4,a=S.testId),"ariaHidden"in S&&t(5,c=S.ariaHidden),"ariaLabel"in S&&t(6,f=S.ariaLabel),"ref"in S&&t(0,d=S.ref),"click"in S&&t(7,g=S.click),"$$scope"in S&&t(8,o=S.$$scope)},[d,r,l,s,a,c,f,g,o,n,v,b]}class ci extends we{constructor(e){super(),ke(this,e,Om,Rm,_e,{className:1,style:2,disabled:3,testId:4,ariaHidden:5,ariaLabel:6,ref:0,click:7},Nm)}}function Dm(i){qe(i,"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 fs(i){let e,t,n,o,r,l=i[2]&&ds(i);return{c(){e=w("div"),t=w("h3"),n=je(i[3]),o=R(),l&&l.c(),u(t,"class","modal-title v-1witlsj"),u(e,"class","modal-header v-1witlsj")},m(s,a){C(s,e,a),m(e,t),m(t,n),m(e,o),l&&l.m(e,null),r=!0},p(s,a){(!r||a&8)&&it(n,s[3]),s[2]?l?(l.p(s,a),a&4&&h(l,1)):(l=ds(s),l.c(),h(l,1),l.m(e,null)):l&&(pe(),p(l,1,1,()=>{l=null}),ve())},i(s){r||(h(l),r=!0)},o(s){p(l),r=!1},d(s){s&&y(e),l&&l.d()}}}function ds(i){let e,t;return e=new ci({props:{click:i[0],testId:"close-modal",style:"padding: 0; height: 24px; width: 24px",ariaLabel:re("hotkey_map_modal_close_btn_text"),$$slots:{default:[zm]},$$scope:{ctx:i}}}),{c(){H(e.$$.fragment)},m(n,o){z(e,n,o),t=!0},p(n,o){const r={};o&1&&(r.click=n[0]),o&32&&(r.$$scope={dirty:o,ctx:n}),e.$set(r)},i(n){t||(h(e.$$.fragment,n),t=!0)},o(n){p(e.$$.fragment,n),t=!1},d(n){F(e,n)}}}function zm(i){let e,t;return e=new Bm({}),{c(){H(e.$$.fragment)},m(n,o){z(e,n,o),t=!0},i(n){t||(h(e.$$.fragment,n),t=!0)},o(n){p(e.$$.fragment,n),t=!1},d(n){F(e,n)}}}function Fm(i){let e,t,n,o,r,l,s=i[1]&&fs(i);const a=i[4].default,c=Bn(a,i,i[5],null);return{c(){e=w("div"),t=w("div"),s&&s.c(),n=R(),o=w("div"),r=w("div"),c&&c.c(),u(r,"class","modal-main v-1witlsj"),u(o,"class","modal-scroll v-1witlsj"),u(t,"class","modal-container v-1witlsj"),u(e,"class","modal-overlay v-1witlsj")},m(f,d){C(f,e,d),m(e,t),s&&s.m(t,null),m(t,n),m(t,o),m(o,r),c&&c.m(r,null),l=!0},p(f,[d]){f[1]?s?(s.p(f,d),d&2&&h(s,1)):(s=fs(f),s.c(),h(s,1),s.m(t,n)):s&&(pe(),p(s,1,1,()=>{s=null}),ve()),c&&c.p&&(!l||d&32)&&Rn(c,a,f,f[5],l?Nn(a,f[5],d,null):On(f[5]),null)},i(f){l||(h(s),h(c,f),l=!0)},o(f){p(s),p(c,f),l=!1},d(f){f&&y(e),s&&s.d(),c&&c.d(f)}}}function Hm(i,e,t){let{$$slots:n={},$$scope:o}=e,{onClose:r}=e,{showHeader:l=!0}=e,{showCloseCross:s=!0}=e,{title:a}=e;return i.$$set=c=>{"onClose"in c&&t(0,r=c.onClose),"showHeader"in c&&t(1,l=c.showHeader),"showCloseCross"in c&&t(2,s=c.showCloseCross),"title"in c&&t(3,a=c.title),"$$scope"in c&&t(5,o=c.$$scope)},[r,l,s,a,n,o]}class Um extends we{constructor(e){super(),ke(this,e,Hm,Fm,_e,{onClose:0,showHeader:1,showCloseCross:2,title:3},Dm)}}const jm=new Set(["BR"]),ms=i=>{var e;const t=document.createElement("DIV");t.innerHTML=i;const n=t.querySelectorAll("*");let o=n.length;for(;o--;){const r=n[o],l=r.tagName;jm.has(l)||(e=r.parentElement)===null||e===void 0||e.removeChild(r)}return t.innerHTML};function qm(i){qe(i,"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 hs(i,e,t){const n=i.slice();return n[5]=e[t].title,n[6]=e[t].items,n}function ps(i,e,t){const n=i.slice();return n[9]=e[t].description,n[10]=e[t].value,n}function vs(i){let e,t,n=ms(i[9])+"",o,r,l=i[10]+"",s,a;return{c(){e=w("li"),t=w("span"),o=R(),r=w("span"),s=je(l),a=R(),u(t,"class","hot-key-map-item-description v-quklnq"),u(r,"class","hot-key-map-item-value v-quklnq"),u(e,"class","hot-key-map-item v-quklnq")},m(c,f){C(c,e,f),m(e,t),t.innerHTML=n,m(e,o),m(e,r),m(r,s),m(e,a)},p(c,f){f&1&&n!==(n=ms(c[9])+"")&&(t.innerHTML=n),f&1&&l!==(l=c[10]+"")&&it(s,l)},d(c){c&&y(e)}}}function gs(i){let e,t,n=i[5]+"",o,r,l,s,a=Gt(i[6]),c=[];for(let f=0;f<a.length;f+=1)c[f]=vs(ps(i,a,f));return{c(){e=w("div"),t=w("h5"),o=je(n),r=R(),l=w("ul");for(let f=0;f<c.length;f+=1)c[f].c();s=R(),u(t,"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,d){C(f,e,d),m(e,t),m(t,o),m(e,r),m(e,l);for(let g=0;g<c.length;g+=1)c[g]&&c[g].m(l,null);m(e,s)},p(f,d){if(d&1&&n!==(n=f[5]+"")&&it(o,n),d&1){a=Gt(f[6]);let g;for(g=0;g<a.length;g+=1){const v=ps(f,a,g);c[g]?c[g].p(v,d):(c[g]=vs(v),c[g].c(),c[g].m(l,null))}for(;g<c.length;g+=1)c[g].d(1);c.length=a.length}},d(f){f&&y(e),pn(c,f)}}}function Zm(i){let e,t=Gt(i[0].groups),n=[];for(let o=0;o<t.length;o+=1)n[o]=gs(hs(i,t,o));return{c(){e=w("div");for(let o=0;o<n.length;o+=1)n[o].c();u(e,"class","hot-key-map v-quklnq")},m(o,r){C(o,e,r);for(let l=0;l<n.length;l+=1)n[l]&&n[l].m(e,null)},p(o,r){if(r&1){t=Gt(o[0].groups);let l;for(l=0;l<t.length;l+=1){const s=hs(o,t,l);n[l]?n[l].p(s,r):(n[l]=gs(s),n[l].c(),n[l].m(e,null))}for(;l<n.length;l+=1)n[l].d(1);n.length=t.length}},d(o){o&&y(e),pn(n,o)}}}function Wm(i){let e,t;return e=new Um({props:{title:i[0].title,onClose:i[2],$$slots:{default:[Zm]},$$scope:{ctx:i}}}),{c(){H(e.$$.fragment)},m(n,o){z(e,n,o),t=!0},p(n,[o]){const r={};o&1&&(r.title=n[0].title),o&8193&&(r.$$scope={dirty:o,ctx:n}),e.$set(r)},i(n){t||(h(e.$$.fragment,n),t=!0)},o(n){p(e.$$.fragment,n),t=!1},d(n){F(e,n)}}}function Gm(i,e,t){let n;const o=Nt(),{data:r,show:l}=o.ui.modals.hotKeyMap;return W(i,r,a=>t(0,n=a)),[n,r,()=>{l.set(!1)}]}class Km extends we{constructor(e){super(),ke(this,e,Gm,Wm,_e,{},qm)}}function Ym(i){qe(i,"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 Xm(i){let e,t;const n=i[1].default,o=Bn(n,i,i[0],null);return{c(){e=w("div"),o&&o.c(),u(e,"class","pillow v-1oe0j8n")},m(r,l){C(r,e,l),o&&o.m(e,null),t=!0},p(r,[l]){o&&o.p&&(!t||l&1)&&Rn(o,n,r,r[0],t?Nn(n,r[0],l,null):On(r[0]),null)},i(r){t||(h(o,r),t=!0)},o(r){p(o,r),t=!1},d(r){r&&y(e),o&&o.d(r)}}}function Qm(i,e,t){let{$$slots:n={},$$scope:o}=e;return i.$$set=r=>{"$$scope"in r&&t(0,o=r.$$scope)},[o,n]}class Jm extends we{constructor(e){super(),ke(this,e,Qm,Xm,_e,{},Ym)}}function xm(i){let e,t,n;return{c(){e=M("svg"),t=M("path"),n=M("path"),u(t,"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(t,"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,r){C(o,e,r),m(e,t),m(e,n)},p:U,i:U,o:U,d(o){o&&y(e)}}}class $m extends we{constructor(e){super(),ke(this,e,null,xm,_e,{})}}function e3(i){let e,t,n;return{c(){e=M("svg"),t=M("path"),n=M("path"),u(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.537Z"),u(t,"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,r){C(o,e,r),m(e,t),m(e,n)},p:U,i:U,o:U,d(o){o&&y(e)}}}class t3 extends we{constructor(e){super(),ke(this,e,null,e3,_e,{})}}function i3(i){let e,t;return{c(){e=M("svg"),t=M("path"),u(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.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(t,"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){C(n,e,o),m(e,t)},p:U,i:U,o:U,d(n){n&&y(e)}}}class n3 extends we{constructor(e){super(),ke(this,e,null,i3,_e,{})}}function o3(i){let e,t;return{c(){e=M("svg"),t=M("path"),u(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.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(t,"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){C(n,e,o),m(e,t)},p:U,i:U,o:U,d(n){n&&y(e)}}}class xu extends we{constructor(e){super(),ke(this,e,null,o3,_e,{})}}function l3(i){let e,t,n;return{c(){e=M("svg"),t=M("path"),n=M("path"),u(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.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(t,"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,r){C(o,e,r),m(e,t),m(e,n)},p:U,i:U,o:U,d(o){o&&y(e)}}}class $u extends we{constructor(e){super(),ke(this,e,null,l3,_e,{})}}const mo=i=>{switch(i){case ct.VideoQuality.Q_720P:return n3;case ct.VideoQuality.Q_1080P:return xu;case ct.VideoQuality.Q_1440P:return $u;case ct.VideoQuality.Q_2160P:return $m;case ct.VideoQuality.Q_4320P:return t3}};function r3(i){qe(i,"v-15tafwa",".icon.v-15tafwa{position:relative;width:24px;height:24px}.icon.v-15tafwa .pillow{position:absolute;top:1px;right:-9px}.icon.triple.v-15tafwa .pillow{right:-13px}")}function s3(i){let e,t,n,o,r,l,s=i[1]&&bs(i);return{c(){e=w("div"),s&&s.c(),t=R(),n=M("svg"),o=M("path"),r=M("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(r,"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(r,"fill","#fff"),L(r,"hidden",!!i[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-15tafwa"),u(e,"aria-hidden","true"),L(e,"triple",i[2])},m(a,c){C(a,e,c),s&&s.m(e,null),m(e,t),m(e,n),m(n,o),m(n,r),l=!0},p(a,c){a[1]?s?(s.p(a,c),c&2&&h(s,1)):(s=bs(a),s.c(),h(s,1),s.m(e,t)):s&&(pe(),p(s,1,1,()=>{s=null}),ve()),(!l||c&2)&&L(r,"hidden",!!a[1]),(!l||c&4)&&L(e,"triple",a[2])},i(a){l||(h(s),l=!0)},o(a){p(s),l=!1},d(a){a&&y(e),s&&s.d()}}}function a3(i){let e,t;return{c(){e=M("svg"),t=M("path"),u(t,"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(t,"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){C(n,e,o),m(e,t)},p:U,i:U,o:U,d(n){n&&y(e)}}}function bs(i){let e,t;return e=new Jm({props:{$$slots:{default:[u3]},$$scope:{ctx:i}}}),{c(){H(e.$$.fragment)},m(n,o){z(e,n,o),t=!0},p(n,o){const r={};o&18&&(r.$$scope={dirty:o,ctx:n}),e.$set(r)},i(n){t||(h(e.$$.fragment,n),t=!0)},o(n){p(e.$$.fragment,n),t=!1},d(n){F(e,n)}}}function u3(i){let e,t,n;var o=i[1];function r(l){return{}}return o&&(e=Pn(o,r())),{c(){e&&H(e.$$.fragment),t=Et()},m(l,s){e&&z(e,l,s),C(l,t,s),n=!0},p(l,s){if(s&2&&o!==(o=l[1])){if(e){pe();const a=e;p(a.$$.fragment,1,0,()=>{F(a,1)}),ve()}o?(e=Pn(o,r()),H(e.$$.fragment),h(e.$$.fragment,1),z(e,t.parentNode,t)):e=null}},i(l){n||(e&&h(e.$$.fragment,l),n=!0)},o(l){e&&p(e.$$.fragment,l),n=!1},d(l){l&&y(t),e&&F(e,l)}}}function c3(i){let e,t,n,o;const r=[a3,s3],l=[];function s(a,c){return a[0]?0:1}return e=s(i),t=l[e]=r[e](i),{c(){t.c(),n=Et()},m(a,c){l[e].m(a,c),C(a,n,c),o=!0},p(a,[c]){let f=e;e=s(a),e===f?l[e].p(a,c):(pe(),p(l[f],1,1,()=>{l[f]=null}),ve(),t=l[e],t?t.p(a,c):(t=l[e]=r[e](a),t.c()),h(t,1),t.m(n.parentNode,n))},i(a){o||(h(t),o=!0)},o(a){p(t),o=!1},d(a){a&&y(n),l[e].d(a)}}}function f3(i,e,t){let n,{isMobile:o=!1}=e,{currentQuality:r=void 0}=e,l;return i.$$set=s=>{"isMobile"in s&&t(0,o=s.isMobile),"currentQuality"in s&&t(3,r=s.currentQuality)},i.$$.update=()=>{i.$$.dirty&8&&t(1,n=mo(r)),i.$$.dirty&2&&t(2,l=!!n&&[xu,$u].includes(n))},[o,n,l,r]}class ec extends we{constructor(e){super(),ke(this,e,f3,c3,_e,{isMobile:0,currentQuality:3},r3)}}function d3(i){let e,t;return{c(){e=M("svg"),t=M("path"),u(t,"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(t,"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){C(n,e,o),m(e,t)},p:U,i:U,o:U,d(n){n&&y(e)}}}class tc extends we{constructor(e){super(),ke(this,e,null,d3,_e,{})}}function m3(i){let e,t;return{c(){e=M("svg"),t=M("path"),u(t,"fill-rule","evenodd"),u(t,"clip-rule","evenodd"),u(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 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(t,"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){C(n,e,o),m(e,t)},p:U,i:U,o:U,d(n){n&&y(e)}}}class h3 extends we{constructor(e){super(),ke(this,e,null,m3,_e,{})}}function p3(i){let e,t;return{c(){e=M("svg"),t=M("path"),u(t,"fill-rule","evenodd"),u(t,"clip-rule","evenodd"),u(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.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(t,"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){C(n,e,o),m(e,t)},p:U,i:U,o:U,d(n){n&&y(e)}}}class v3 extends we{constructor(e){super(),ke(this,e,null,p3,_e,{})}}function g3(i){let e,t,n,o;return{c(){e=M("svg"),t=M("g"),n=M("path"),o=M("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(t,"fill","none"),u(t,"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(r,l){C(r,e,l),m(e,t),m(t,n),m(t,o)},p:U,i:U,o:U,d(r){r&&y(e)}}}class b3 extends we{constructor(e){super(),ke(this,e,null,g3,_e,{})}}function _3(i){qe(i,"v-2dg73m",".reverted.v-2dg73m{transform:rotate(180deg)}")}function k3(i){let e,t,n;return{c(){e=M("svg"),t=M("path"),u(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.272L5.773 8z"),u(t,"fill",i[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=i[2]?"chevron-icon--right":"chevron-icon--left"),u(e,"class","v-2dg73m"),L(e,"reverted",i[2])},m(o,r){C(o,e,r),m(e,t)},p(o,r){r&1&&u(t,"fill",o[0]),r&4&&n!==(n=o[2]?"chevron-icon--right":"chevron-icon--left")&&u(e,"data-testid",n),r&4&&L(e,"reverted",o[2])},d(o){o&&y(e)}}}function w3(i){let e,t,n;return{c(){e=M("svg"),t=M("path"),u(t,"fill-rule","evenodd"),u(t,"clip-rule","evenodd"),u(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.272Z"),u(t,"fill",i[0]),u(t,"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=i[2]?"chevron-icon--down":"chevron-icon--up"),u(e,"class","v-2dg73m"),L(e,"reverted",i[2])},m(o,r){C(o,e,r),m(e,t)},p(o,r){r&1&&u(t,"fill",o[0]),r&4&&n!==(n=o[2]?"chevron-icon--down":"chevron-icon--up")&&u(e,"data-testid",n),r&4&&L(e,"reverted",o[2])},d(o){o&&y(e)}}}function y3(i){let e;function t(r,l){return r[1]?w3:k3}let n=t(i),o=n(i);return{c(){o.c(),e=Et()},m(r,l){o.m(r,l),C(r,e,l)},p(r,[l]){n===(n=t(r))&&o?o.p(r,l):(o.d(1),o=n(r),o&&(o.c(),o.m(e.parentNode,e)))},i:U,o:U,d(r){r&&y(e),o.d(r)}}}function C3(i,e,t){let{direction:n="left"}=e,{color:o="#fff"}=e,r,l;return i.$$set=s=>{"direction"in s&&t(3,n=s.direction),"color"in s&&t(0,o=s.color)},i.$$.update=()=>{i.$$.dirty&8&&(t(1,r=["up","down"].includes(n)),t(2,l=["right","down"].includes(n)))},[o,r,l,n]}class Mn extends we{constructor(e){super(),ke(this,e,C3,y3,_e,{direction:3,color:0},_3)}}function P3(i){let e,t;return{c(){e=M("svg"),t=M("path"),u(t,"fill-rule","evenodd"),u(t,"clip-rule","evenodd"),u(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-.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(t,"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){C(n,e,o),m(e,t)},p:U,i:U,o:U,d(n){n&&y(e)}}}class S3 extends we{constructor(e){super(),ke(this,e,null,P3,_e,{})}}function T3(i){let e,t;return{c(){e=M("svg"),t=M("path"),u(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"),u(t,"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){C(n,e,o),m(e,t)},p:U,i:U,o:U,d(n){n&&y(e)}}}class Bo extends we{constructor(e){super(),ke(this,e,null,T3,_e,{})}}function E3(i){let e,t;return{c(){e=M("svg"),t=M("path"),u(t,"fill-rule","evenodd"),u(t,"clip-rule","evenodd"),u(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.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(t,"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){C(n,e,o),m(e,t)},p:U,i:U,o:U,d(n){n&&y(e)}}}class A3 extends we{constructor(e){super(),ke(this,e,null,E3,_e,{})}}function I3(i){let e,t;return{c(){e=M("svg"),t=M("path"),u(t,"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(t,"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){C(n,e,o),m(e,t)},p:U,i:U,o:U,d(n){n&&y(e)}}}class L3 extends we{constructor(e){super(),ke(this,e,null,I3,_e,{})}}function V3(i){qe(i,"v-79x8pk","ul.v-79x8pk.v-79x8pk{margin:0;padding:0}.menu.v-79x8pk.v-79x8pk{background-color:rgba(17, 17, 17, 0.8);border-radius:8px;line-height:40px;transition:opacity 0.2s, visibility 0.2s;overflow:hidden}.container-mobile.v-79x8pk.v-79x8pk{width:100%}.menu-desktop.v-79x8pk.v-79x8pk{position:absolute;right:0;bottom:0}.menu-mobile.v-79x8pk.v-79x8pk{width:100%;background:var(--mobile-settings-bg);font-size:15px;line-height:50px}.menu-mobile.hidden.v-79x8pk.v-79x8pk{display:none}.menu-subList.v-79x8pk.v-79x8pk{min-width:134px;padding-bottom:0}.menu-subList-subtitles.v-79x8pk.v-79x8pk{min-width:164px}.menu-subList-traffic-saving.v-79x8pk.v-79x8pk{min-width:286px}.item.v-79x8pk.v-79x8pk{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-79x8pk.v-79x8pk{padding:0 14px}.item-quality.item-mobile.v-79x8pk.v-79x8pk,.item-traffic-saving.item-mobile.v-79x8pk.v-79x8pk,.item-helper-text.item-mobile.v-79x8pk.v-79x8pk{flex-direction:row-reverse}.item-helper-text.v-79x8pk.v-79x8pk{cursor:auto;pointer-events:none;white-space:normal;padding:7px 24px 7px 18px}.item-helper-text.v-79x8pk span.v-79x8pk{color:rgba(255, 255, 255, 0.48);line-height:18px;text-align:end}.item-helper-text.item-mobile.v-79x8pk.v-79x8pk{padding:7px 14px}.item-helper-text.item-mobile.v-79x8pk span.v-79x8pk{text-align:start}.quality-title-mobile.v-79x8pk.v-79x8pk{flex-grow:1}.item.v-79x8pk.v-79x8pk:hover{background-color:rgba(255, 255, 255, 0.08)}.item-mobile.v-79x8pk.v-79x8pk:hover{background:var(--mobile-settings-bg)}.menu-subList.v-79x8pk .item.v-79x8pk{color:rgba(255, 255, 255, 0.9)}.menu-subList.v-79x8pk .item.v-79x8pk:last-child{margin-bottom:4px}.menu-icon-wrapper.v-79x8pk.v-79x8pk{width:24px;height:24px;display:flex;align-items:center;justify-content:center;margin-right:16px}.menu-title.v-79x8pk.v-79x8pk{flex-grow:1;margin-right:24px;overflow:hidden;text-overflow:ellipsis}.menu-value.v-79x8pk.v-79x8pk{position:relative;opacity:0.7}.menu-valueIcon.v-79x8pk.v-79x8pk{position:absolute;top:-10px;right:-18px;width:15px}.menu-valueIcon-list.v-79x8pk.v-79x8pk{position:absolute;top:-7px;width:15px;right:6px}.menu-valueIcon.v-79x8pk svg,.menu-valueIcon-list.v-79x8pk svg{color:var(--blue-light)}.menu-divider.v-79x8pk.v-79x8pk{background-color:rgba(255, 255, 255, 0.3);height:1px;margin-bottom:4px}.menu-header.v-79x8pk.v-79x8pk{color:var(--white);cursor:pointer;justify-content:space-between;display:flex}.itemIcon.v-79x8pk.v-79x8pk{margin-right:auto;padding-right:12px;opacity:0.9}.items.v-79x8pk.v-79x8pk::-webkit-scrollbar{width:8px}.items.v-79x8pk.v-79x8pk::-webkit-scrollbar-track{box-shadow:none;background-color:#3a3a3a;border-radius:4px}.items.v-79x8pk.v-79x8pk::-webkit-scrollbar-thumb{min-height:40px;border-radius:5px;background-color:#666;border:1px solid transparent;background-clip:padding-box}.items.v-79x8pk.v-79x8pk::-webkit-scrollbar-thumb:hover{background-color:#777}.items-mobile.v-79x8pk.v-79x8pk{overflow-y:auto;max-height:160px;text-align:left}.close.v-79x8pk.v-79x8pk{position:relative;width:12px;height:12px;padding:12px;margin-right:-12px}.close.v-79x8pk.v-79x8pk:before,.close.v-79x8pk.v-79x8pk:after{position:absolute;left:18px;content:' ';height:12px;width:2px;background-color:var(--white)}.close.v-79x8pk.v-79x8pk:before{transform:rotate(45deg)}.close.v-79x8pk.v-79x8pk:after{transform:rotate(-45deg)}")}function _s(i,e,t){const n=i.slice();return n[83]=e[t],n}function ks(i,e,t){const n=i.slice();return n[86]=e[t],n}function ws(i,e,t){const n=i.slice();return n[89]=e[t],n}function ys(i){let e,t,n,o,r,l,s,a;return{c(){e=w("div"),t=w("div"),t.textContent=`${re("submenu_settings")}`,n=R(),o=w("div"),r=R(),l=w("div"),u(o,"class","close v-79x8pk"),u(e,"class","item menu-header v-79x8pk"),L(e,"item-mobile",i[4]),u(l,"class","menu-divider v-79x8pk")},m(c,f){C(c,e,f),m(e,t),m(e,n),m(e,o),C(c,r,f),C(c,l,f),s||(a=Se(o,"click",ht(i[44])),s=!0)},p(c,f){f[0]&16&&L(e,"item-mobile",c[4])},d(c){c&&(y(e),y(r),y(l)),s=!1,a()}}}function Cs(i){let e,t,n,o,r,l,s,a,c,f,d,g;n=new ec({});let v=i[21]&&!i[4]&&Ps(i);return{c(){e=w("li"),t=w("div"),H(n.$$.fragment),o=R(),r=w("div"),r.textContent=`${re("menu_quality")}`,l=R(),s=w("div"),a=je(i[12]),c=R(),v&&v.c(),u(t,"class","menu-icon-wrapper v-79x8pk"),u(r,"class","menu-title v-79x8pk"),u(s,"class","menu-value v-79x8pk"),u(e,"class","item v-79x8pk"),u(e,"role","menuitemradio"),u(e,"tabindex","0"),L(e,"item-mobile",i[4])},m(b,S){C(b,e,S),m(e,t),z(n,t,null),m(e,o),m(e,r),m(e,l),m(e,s),m(s,a),m(s,c),v&&v.m(s,null),f=!0,d||(g=Se(e,"click",ht(i[45])),d=!0)},p(b,S){(!f||S[0]&4096)&&it(a,b[12]),b[21]&&!b[4]?v?(v.p(b,S),S[0]&2097168&&h(v,1)):(v=Ps(b),v.c(),h(v,1),v.m(s,null)):v&&(pe(),p(v,1,1,()=>{v=null}),ve()),(!f||S[0]&16)&&L(e,"item-mobile",b[4])},i(b){f||(h(n.$$.fragment,b),h(v),f=!0)},o(b){p(n.$$.fragment,b),p(v),f=!1},d(b){b&&y(e),F(n),v&&v.d(),d=!1,g()}}}function Ps(i){let e,t,n;var o=i[21];function r(l){return{}}return o&&(t=Pn(o,r())),{c(){e=w("div"),t&&H(t.$$.fragment),u(e,"class","menu-valueIcon v-79x8pk")},m(l,s){C(l,e,s),t&&z(t,e,null),n=!0},p(l,s){if(s[0]&2097152&&o!==(o=l[21])){if(t){pe();const a=t;p(a.$$.fragment,1,0,()=>{F(a,1)}),ve()}o?(t=Pn(o,r()),H(t.$$.fragment),h(t.$$.fragment,1),z(t,e,null)):t=null}},i(l){n||(t&&h(t.$$.fragment,l),n=!0)},o(l){t&&p(t.$$.fragment,l),n=!1},d(l){l&&y(e),t&&F(t)}}}function Ss(i){let e,t,n,o,r,l,s,a,c,f,d,g;return n=new b3({}),{c(){e=w("li"),t=w("div"),H(n.$$.fragment),o=R(),r=w("div"),r.textContent=`${re("menu_playback_rate")}`,l=R(),s=w("div"),a=je(i[22]),c=je("x"),u(t,"class","menu-icon-wrapper v-79x8pk"),u(r,"class","menu-title v-79x8pk"),u(s,"class","menu-value v-79x8pk"),u(e,"class","item v-79x8pk"),u(e,"role","menuitemradio"),u(e,"tabindex","0"),L(e,"item-mobile",i[4])},m(v,b){C(v,e,b),m(e,t),z(n,t,null),m(e,o),m(e,r),m(e,l),m(e,s),m(s,a),m(s,c),f=!0,d||(g=Se(e,"click",ht(i[49])),d=!0)},p(v,b){(!f||b[0]&4194304)&&it(a,v[22]),(!f||b[0]&16)&&L(e,"item-mobile",v[4])},i(v){f||(h(n.$$.fragment,v),f=!0)},o(v){p(n.$$.fragment,v),f=!1},d(v){v&&y(e),F(n),d=!1,g()}}}function Ts(i){let e,t,n,o,r,l,s,a=i[23].displayValue+"",c,f,d,g;return n=new tc({}),{c(){e=w("li"),t=w("div"),H(n.$$.fragment),o=R(),r=w("div"),r.textContent=`${re("subtitles_caption")}`,l=R(),s=w("div"),c=je(a),u(t,"class","menu-icon-wrapper v-79x8pk"),u(r,"class","menu-title v-79x8pk"),u(s,"class","menu-value v-79x8pk"),u(e,"class","item v-79x8pk"),u(e,"role","menuitemradio"),u(e,"tabindex","0"),L(e,"item-mobile",i[4])},m(v,b){C(v,e,b),m(e,t),z(n,t,null),m(e,o),m(e,r),m(e,l),m(e,s),m(s,c),f=!0,d||(g=Se(e,"click",ht(i[51])),d=!0)},p(v,b){(!f||b[0]&8388608)&&a!==(a=v[23].displayValue+"")&&it(c,a),(!f||b[0]&16)&&L(e,"item-mobile",v[4])},i(v){f||(h(n.$$.fragment,v),f=!0)},o(v){p(n.$$.fragment,v),f=!1},d(v){v&&y(e),F(n),d=!1,g()}}}function Es(i){let e,t,n,o,r,l,s,a=(i[24]?re("traffic_saving_on"):re("traffic_saving_off"))+"",c,f,d,g;return n=new v3({}),{c(){e=w("li"),t=w("div"),H(n.$$.fragment),o=R(),r=w("div"),r.textContent=`${re("menu_traffic_saving")}`,l=R(),s=w("div"),c=je(a),u(t,"class","menu-icon-wrapper v-79x8pk"),u(r,"class","menu-title v-79x8pk"),u(s,"class","menu-value v-79x8pk"),u(e,"class","item v-79x8pk"),u(e,"role","menuitemradio"),u(e,"tabindex","0"),L(e,"item-mobile",i[4])},m(v,b){C(v,e,b),m(e,t),z(n,t,null),m(e,o),m(e,r),m(e,l),m(e,s),m(s,c),f=!0,d||(g=Se(e,"click",ht(i[46])),d=!0)},p(v,b){(!f||b[0]&16777216)&&a!==(a=(v[24]?re("traffic_saving_on"):re("traffic_saving_off"))+"")&&it(c,a),(!f||b[0]&16)&&L(e,"item-mobile",v[4])},i(v){f||(h(n.$$.fragment,v),f=!0)},o(v){p(n.$$.fragment,v),f=!1},d(v){v&&y(e),F(n),d=!1,g()}}}function As(i){let e,t,n,o,r,l,s,a;return n=new h3({}),{c(){e=w("li"),t=w("div"),H(n.$$.fragment),o=R(),r=w("div"),r.textContent=`${re("download_video_caption")}`,u(t,"class","menu-icon-wrapper v-79x8pk"),u(r,"class","menu-title v-79x8pk"),u(e,"class","item v-79x8pk"),u(e,"role","menuitemradio"),u(e,"tabindex","0"),L(e,"item-mobile",i[4])},m(c,f){C(c,e,f),m(e,t),z(n,t,null),m(e,o),m(e,r),l=!0,s||(a=Se(e,"click",ht(i[54])),s=!0)},p(c,f){(!l||f[0]&16)&&L(e,"item-mobile",c[4])},i(c){l||(h(n.$$.fragment,c),l=!0)},o(c){p(n.$$.fragment,c),l=!1},d(c){c&&y(e),F(n),s=!1,a()}}}function Is(i){let e,t,n,o,r,l,s,a,c,f,d,g,v,b,S,_=i[26].showSupport&&M3(i);return o=new A3({}),f=new L3({}),{c(){_&&_.c(),e=R(),t=w("li"),n=w("div"),H(o.$$.fragment),r=R(),l=w("div"),l.textContent=`${re("menu_copy_debug")}`,s=R(),a=w("li"),c=w("div"),H(f.$$.fragment),d=R(),g=w("div"),g.textContent=`${re("menu_debug_overlay")}`,u(n,"class","menu-icon-wrapper v-79x8pk"),u(l,"class","menu-title v-79x8pk"),u(t,"class","item item-mobile v-79x8pk"),u(t,"role","menuitemradio"),u(t,"tabindex","0"),u(c,"class","menu-icon-wrapper v-79x8pk"),u(g,"class","menu-title v-79x8pk"),u(a,"class","item item-mobile v-79x8pk"),u(a,"role","menuitemradio"),u(a,"tabindex","0")},m(A,E){_&&_.m(A,E),C(A,e,E),C(A,t,E),m(t,n),z(o,n,null),m(t,r),m(t,l),C(A,s,E),C(A,a,E),m(a,c),z(f,c,null),m(a,d),m(a,g),v=!0,b||(S=[Se(t,"click",ht(i[56])),Se(a,"click",ht(i[57]))],b=!0)},p(A,E){A[26].showSupport&&_.p(A,E)},i(A){v||(h(_),h(o.$$.fragment,A),h(f.$$.fragment,A),v=!0)},o(A){p(_),p(o.$$.fragment,A),p(f.$$.fragment,A),v=!1},d(A){A&&(y(e),y(t),y(s),y(a)),_&&_.d(A),F(o),F(f),b=!1,Xt(S)}}}function M3(i){let e,t,n,o,r,l,s,a;return n=new S3({}),{c(){e=w("li"),t=w("div"),H(n.$$.fragment),o=R(),r=w("div"),r.textContent=`${re("menu_report")}`,u(t,"class","menu-icon-wrapper v-79x8pk"),u(r,"class","menu-title v-79x8pk"),u(e,"class","item item-mobile v-79x8pk"),u(e,"role","menuitemradio"),u(e,"tabindex","0")},m(c,f){C(c,e,f),m(e,t),z(n,t,null),m(e,o),m(e,r),l=!0,s||(a=Se(e,"click",ht(i[55])),s=!0)},p:U,i(c){l||(h(n.$$.fragment,c),l=!0)},o(c){p(n.$$.fragment,c),l=!1},d(c){c&&y(e),F(n),s=!1,a()}}}function Ls(i){let e,t,n;return t=new Bo({}),{c(){e=w("div"),H(t.$$.fragment),u(e,"class","itemIcon v-79x8pk")},m(o,r){C(o,e,r),z(t,e,null),n=!0},i(o){n||(h(t.$$.fragment,o),n=!0)},o(o){p(t.$$.fragment,o),n=!1},d(o){o&&y(e),F(t)}}}function Vs(i){let e,t,n;var o=mo(i[89].value);function r(l){return{}}return o&&(t=Pn(o,r())),{c(){e=w("div"),t&&H(t.$$.fragment),u(e,"class","menu-valueIcon-list v-79x8pk")},m(l,s){C(l,e,s),t&&z(t,e,null),n=!0},p(l,s){if(s[0]&32&&o!==(o=mo(l[89].value))){if(t){pe();const a=t;p(a.$$.fragment,1,0,()=>{F(a,1)}),ve()}o?(t=Pn(o,r()),H(t.$$.fragment),h(t.$$.fragment,1),z(t,e,null)):t=null}},i(l){n||(t&&h(t.$$.fragment,l),n=!0)},o(l){t&&p(t.$$.fragment,l),n=!1},d(l){l&&y(e),t&&F(t)}}}function Ms(i){let e,t,n,o=i[89].displayValue+"",r,l,s=!i[4]&&mo(i[89].value),a,c,f,d,g,v=i[89].selected&&Ls(),b=s&&Vs(i);function S(){return i[71](i[89])}return{c(){e=w("li"),v&&v.c(),t=R(),n=w("div"),r=je(o),l=R(),b&&b.c(),a=R(),u(n,"class","v-79x8pk"),L(n,"quality-title-mobile",i[4]),u(e,"class","item item-quality v-79x8pk"),u(e,"data-value",c=i[89].value),u(e,"role","menuitemradio"),u(e,"tabindex","0"),L(e,"item-mobile",i[4])},m(_,A){C(_,e,A),v&&v.m(e,null),m(e,t),m(e,n),m(n,r),m(e,l),b&&b.m(e,null),m(e,a),f=!0,d||(g=Se(e,"click",ht(S)),d=!0)},p(_,A){i=_,i[89].selected?v?A[0]&32&&h(v,1):(v=Ls(),v.c(),h(v,1),v.m(e,t)):v&&(pe(),p(v,1,1,()=>{v=null}),ve()),(!f||A[0]&32)&&o!==(o=i[89].displayValue+"")&&it(r,o),(!f||A[0]&16)&&L(n,"quality-title-mobile",i[4]),A[0]&48&&(s=!i[4]&&mo(i[89].value)),s?b?(b.p(i,A),A[0]&48&&h(b,1)):(b=Vs(i),b.c(),h(b,1),b.m(e,a)):b&&(pe(),p(b,1,1,()=>{b=null}),ve()),(!f||A[0]&32&&c!==(c=i[89].value))&&u(e,"data-value",c),(!f||A[0]&16)&&L(e,"item-mobile",i[4])},i(_){f||(h(v),h(b),f=!0)},o(_){p(v),p(b),f=!1},d(_){_&&y(e),v&&v.d(),b&&b.d(),d=!1,g()}}}function Bs(i){let e,t,n;return t=new Bo({}),{c(){e=w("div"),H(t.$$.fragment),u(e,"class","itemIcon v-79x8pk")},m(o,r){C(o,e,r),z(t,e,null),n=!0},i(o){n||(h(t.$$.fragment,o),n=!0)},o(o){p(t.$$.fragment,o),n=!1},d(o){o&&y(e),F(t)}}}function Ns(i){let e,t,n,o=i[86].displayValue+"",r,l,s,a,c,f,d=i[86].selected&&Bs();function g(){return i[73](i[86])}return{c(){e=w("li"),d&&d.c(),t=R(),n=w("div"),r=je(o),l=R(),u(n,"class","v-79x8pk"),L(n,"quality-title-mobile",i[4]),u(e,"class","item item-quality v-79x8pk"),u(e,"data-value",s=i[86].value),u(e,"role","menuitemradio"),u(e,"tabindex","0"),L(e,"item-mobile",i[4])},m(v,b){C(v,e,b),d&&d.m(e,null),m(e,t),m(e,n),m(n,r),m(e,l),a=!0,c||(f=Se(e,"click",ht(g)),c=!0)},p(v,b){i=v,i[86].selected?d?b[0]&33554432&&h(d,1):(d=Bs(),d.c(),h(d,1),d.m(e,t)):d&&(pe(),p(d,1,1,()=>{d=null}),ve()),(!a||b[0]&33554432)&&o!==(o=i[86].displayValue+"")&&it(r,o),(!a||b[0]&16)&&L(n,"quality-title-mobile",i[4]),(!a||b[0]&33554432&&s!==(s=i[86].value))&&u(e,"data-value",s),(!a||b[0]&16)&&L(e,"item-mobile",i[4])},i(v){a||(h(d),a=!0)},o(v){p(d),a=!1},d(v){v&&y(e),d&&d.d(),c=!1,f()}}}function Rs(i){let e,t,n;return t=new Bo({}),{c(){e=w("div"),H(t.$$.fragment),u(e,"class","itemIcon v-79x8pk")},m(o,r){C(o,e,r),z(t,e,null),n=!0},i(o){n||(h(t.$$.fragment,o),n=!0)},o(o){p(t.$$.fragment,o),n=!1},d(o){o&&y(e),F(t)}}}function Os(i){let e,t,n;return t=new Bo({}),{c(){e=w("div"),H(t.$$.fragment),u(e,"class","itemIcon v-79x8pk")},m(o,r){C(o,e,r),z(t,e,null),n=!0},i(o){n||(h(t.$$.fragment,o),n=!0)},o(o){p(t.$$.fragment,o),n=!1},d(o){o&&y(e),F(t)}}}function Ds(i){let e,t,n;return t=new Bo({}),{c(){e=w("div"),H(t.$$.fragment),u(e,"class","itemIcon v-79x8pk")},m(o,r){C(o,e,r),z(t,e,null),n=!0},i(o){n||(h(t.$$.fragment,o),n=!0)},o(o){p(t.$$.fragment,o),n=!1},d(o){o&&y(e),F(t)}}}function zs(i){let e,t,n,o=i[83].displayValue+"",r,l,s,a,c,f,d=i[83].selected&&Ds();function g(){return i[77](i[83])}return{c(){e=w("li"),d&&d.c(),t=R(),n=w("div"),r=je(o),l=R(),u(n,"class","v-79x8pk"),L(n,"quality-title-mobile",i[4]),u(e,"class","item item-quality v-79x8pk"),u(e,"data-value",s=i[83].value),u(e,"role","menuitemradio"),u(e,"tabindex","0"),L(e,"item-mobile",i[4])},m(v,b){C(v,e,b),d&&d.m(e,null),m(e,t),m(e,n),m(n,r),m(e,l),a=!0,c||(f=Se(e,"click",ht(g)),c=!0)},p(v,b){i=v,i[83].selected?d?b[0]&8&&h(d,1):(d=Ds(),d.c(),h(d,1),d.m(e,t)):d&&(pe(),p(d,1,1,()=>{d=null}),ve()),(!a||b[0]&8)&&o!==(o=i[83].displayValue+"")&&it(r,o),(!a||b[0]&16)&&L(n,"quality-title-mobile",i[4]),(!a||b[0]&8&&s!==(s=i[83].value))&&u(e,"data-value",s),(!a||b[0]&16)&&L(e,"item-mobile",i[4])},i(v){a||(h(d),a=!0)},o(v){p(d),a=!1},d(v){v&&y(e),d&&d.d(),c=!1,f()}}}function B3(i){let e,t,n,o,r,l,s,a,c,f,d,g,v,b,S,_,A,E,V,B,le,O,q,D,me,ue,Z,fe,J,T,I,se,G,ye,ae,Y,oe,Ne,N,ce,k,$,Fe,Te,Ve,Ae,be,Ee,Pe,X,j,He,We,rt,Ue,gt,pt,Ot,mt,Re,Dt,te,nt=i[4]&&ys(i),st=i[20]&&Cs(i),Ke=i[19]&&Ss(i),xe=i[18]&&Ts(i),$e=i[17]&&Es(i),et=i[16]&&As(i),ot=i[4]&&Is(i);v=new Mn({props:{direction:"left"}});let Vt=Gt(i[5]),lt=[];for(let de=0;de<Vt.length;de+=1)lt[de]=Ms(ws(i,Vt,de));const at=de=>p(lt[de],1,1,()=>{lt[de]=null});q=new Mn({props:{direction:"left"}});let Ye=Gt(i[25]),Xe=[];for(let de=0;de<Ye.length;de+=1)Xe[de]=Ns(ks(i,Ye,de));const xt=de=>p(Xe[de],1,1,()=>{Xe[de]=null});G=new Mn({props:{direction:"left"}});let kt=!i[24]&&Rs(),vt=i[24]&&Os();Ue=new Mn({props:{direction:"left"}});let Rt=Gt(i[3]),dt=[];for(let de=0;de<Rt.length;de+=1)dt[de]=zs(_s(i,Rt,de));const ni=de=>p(dt[de],1,1,()=>{dt[de]=null});return{c(){e=w("div"),t=w("div"),nt&&nt.c(),n=R(),o=w("ul"),st&&st.c(),r=R(),Ke&&Ke.c(),l=R(),xe&&xe.c(),s=R(),$e&&$e.c(),a=R(),et&&et.c(),c=R(),ot&&ot.c(),f=R(),d=w("div"),g=w("div"),H(v.$$.fragment),b=R(),S=w("div"),S.textContent=`${re("submenu_quality")}`,_=R(),A=w("div"),E=R(),V=w("ul");for(let de=0;de<lt.length;de+=1)lt[de].c();B=R(),le=w("div"),O=w("div"),H(q.$$.fragment),D=R(),me=w("div"),me.textContent=`${re("submenu_playback_rate")}`,ue=R(),Z=w("div"),fe=R(),J=w("ul");for(let de=0;de<Xe.length;de+=1)Xe[de].c();T=R(),I=w("div"),se=w("div"),H(G.$$.fragment),ye=R(),ae=w("div"),ae.textContent=`${re("submenu_traffic_saving")}`,Y=R(),oe=w("div"),Ne=R(),N=w("ul"),ce=w("li"),kt&&kt.c(),k=R(),$=w("div"),$.textContent=`${re("traffic_saving_disable")}`,Fe=R(),Te=w("li"),vt&&vt.c(),Ve=R(),Ae=w("div"),Ae.textContent=`${re("traffic_saving_enable")}`,be=R(),Ee=w("div"),Pe=R(),X=w("div"),j=w("span"),j.textContent=`${re("traffic_saving_helper_text")}`,He=R(),We=w("div"),rt=w("div"),H(Ue.$$.fragment),gt=R(),pt=w("div"),pt.textContent=`${re("subtitles_caption")}`,Ot=R(),mt=w("ul");for(let de=0;de<dt.length;de+=1)dt[de].c();u(o,"class","items v-79x8pk"),L(o,"items-mobile",i[4]),u(t,"class","menu v-79x8pk"),u(t,"role","menu"),L(t,"menu-desktop",!i[4]),L(t,"menu-mobile",i[4]),L(t,"hidden",!i[7]),u(g,"class","item menu-header v-79x8pk"),L(g,"item-mobile",i[4]),u(A,"class","menu-divider v-79x8pk"),u(V,"class","items v-79x8pk"),u(V,"style",i[13]),L(V,"items-mobile",i[4]),u(d,"class","menu menu-subList v-79x8pk"),L(d,"menu-desktop",!i[4]),L(d,"menu-mobile",i[4]),L(d,"hidden",!i[8]),u(O,"class","item menu-header v-79x8pk"),L(O,"item-mobile",i[4]),u(Z,"class","menu-divider v-79x8pk"),u(J,"class","items v-79x8pk"),u(J,"style",i[14]),L(J,"items-mobile",i[4]),u(le,"class","menu menu-subList v-79x8pk"),L(le,"menu-desktop",!i[4]),L(le,"menu-mobile",i[4]),L(le,"hidden",!i[9]),u(se,"class","item menu-header v-79x8pk"),L(se,"item-mobile",i[4]),u(oe,"class","menu-divider v-79x8pk"),u($,"class","v-79x8pk"),L($,"quality-title-mobile",i[4]),u(ce,"class","item item-traffic-saving v-79x8pk"),u(ce,"role","menuitemradio"),u(ce,"tabindex","0"),L(ce,"item-mobile",i[4]),u(Ae,"class","v-79x8pk"),L(Ae,"quality-title-mobile",i[4]),u(Te,"class","item item-traffic-saving v-79x8pk"),u(Te,"role","menuitemradio"),u(Te,"tabindex","0"),L(Te,"item-mobile",i[4]),u(N,"class","items v-79x8pk"),u(N,"style",i[15]),L(N,"items-mobile",i[4]),u(Ee,"class","menu-divider v-79x8pk"),u(j,"class","v-79x8pk"),u(X,"class","item item-helper-text v-79x8pk"),L(X,"item-mobile",i[4]),u(I,"class","menu menu-subList menu-subList-traffic-saving v-79x8pk"),L(I,"menu-desktop",!i[4]),L(I,"menu-mobile",i[4]),L(I,"hidden",!i[11]),u(rt,"class","item menu-header v-79x8pk"),L(rt,"item-mobile",i[4]),u(mt,"class","items v-79x8pk"),L(mt,"items-mobile",i[4]),u(We,"class","menu menu-subList menu-subList-subtitles v-79x8pk"),L(We,"menu-desktop",!i[4]),L(We,"menu-mobile",i[4]),L(We,"hidden",!i[10]),u(e,"class","v-79x8pk"),L(e,"hidden",!i[6]),L(e,"container-mobile",i[4])},m(de,Ce){C(de,e,Ce),m(e,t),nt&&nt.m(t,null),m(t,n),m(t,o),st&&st.m(o,null),m(o,r),Ke&&Ke.m(o,null),m(o,l),xe&&xe.m(o,null),m(o,s),$e&&$e.m(o,null),m(o,a),et&&et.m(o,null),m(o,c),ot&&ot.m(o,null),m(e,f),m(e,d),m(d,g),z(v,g,null),m(g,b),m(g,S),i[70](g),m(d,_),m(d,A),m(d,E),m(d,V);for(let Le=0;Le<lt.length;Le+=1)lt[Le]&<[Le].m(V,null);m(e,B),m(e,le),m(le,O),z(q,O,null),m(O,D),m(O,me),i[72](O),m(le,ue),m(le,Z),m(le,fe),m(le,J);for(let Le=0;Le<Xe.length;Le+=1)Xe[Le]&&Xe[Le].m(J,null);m(e,T),m(e,I),m(I,se),z(G,se,null),m(se,ye),m(se,ae),i[74](se),m(I,Y),m(I,oe),m(I,Ne),m(I,N),m(N,ce),kt&&kt.m(ce,null),m(ce,k),m(ce,$),m(N,Fe),m(N,Te),vt&&vt.m(Te,null),m(Te,Ve),m(Te,Ae),m(I,be),m(I,Ee),m(I,Pe),m(I,X),m(X,j),m(e,He),m(e,We),m(We,rt),z(Ue,rt,null),m(rt,gt),m(rt,pt),m(We,Ot),m(We,mt);for(let Le=0;Le<dt.length;Le+=1)dt[Le]&&dt[Le].m(mt,null);Re=!0,Dt||(te=[Se(g,"click",ht(i[53])),Se(O,"click",ht(i[53])),Se(se,"click",ht(i[53])),Se(ce,"click",ht(i[75])),Se(Te,"click",ht(i[76])),Se(rt,"click",ht(i[53]))],Dt=!0)},p(de,Ce){if(de[4]?nt?nt.p(de,Ce):(nt=ys(de),nt.c(),nt.m(t,n)):nt&&(nt.d(1),nt=null),de[20]?st?(st.p(de,Ce),Ce[0]&1048576&&h(st,1)):(st=Cs(de),st.c(),h(st,1),st.m(o,r)):st&&(pe(),p(st,1,1,()=>{st=null}),ve()),de[19]?Ke?(Ke.p(de,Ce),Ce[0]&524288&&h(Ke,1)):(Ke=Ss(de),Ke.c(),h(Ke,1),Ke.m(o,l)):Ke&&(pe(),p(Ke,1,1,()=>{Ke=null}),ve()),de[18]?xe?(xe.p(de,Ce),Ce[0]&262144&&h(xe,1)):(xe=Ts(de),xe.c(),h(xe,1),xe.m(o,s)):xe&&(pe(),p(xe,1,1,()=>{xe=null}),ve()),de[17]?$e?($e.p(de,Ce),Ce[0]&131072&&h($e,1)):($e=Es(de),$e.c(),h($e,1),$e.m(o,a)):$e&&(pe(),p($e,1,1,()=>{$e=null}),ve()),de[16]?et?(et.p(de,Ce),Ce[0]&65536&&h(et,1)):(et=As(de),et.c(),h(et,1),et.m(o,c)):et&&(pe(),p(et,1,1,()=>{et=null}),ve()),de[4]?ot?(ot.p(de,Ce),Ce[0]&16&&h(ot,1)):(ot=Is(de),ot.c(),h(ot,1),ot.m(o,null)):ot&&(pe(),p(ot,1,1,()=>{ot=null}),ve()),(!Re||Ce[0]&16)&&L(o,"items-mobile",de[4]),(!Re||Ce[0]&16)&&L(t,"menu-desktop",!de[4]),(!Re||Ce[0]&16)&&L(t,"menu-mobile",de[4]),(!Re||Ce[0]&128)&&L(t,"hidden",!de[7]),(!Re||Ce[0]&16)&&L(g,"item-mobile",de[4]),Ce[0]&48|Ce[1]&65536){Vt=Gt(de[5]);let Le;for(Le=0;Le<Vt.length;Le+=1){const Mt=ws(de,Vt,Le);lt[Le]?(lt[Le].p(Mt,Ce),h(lt[Le],1)):(lt[Le]=Ms(Mt),lt[Le].c(),h(lt[Le],1),lt[Le].m(V,null))}for(pe(),Le=Vt.length;Le<lt.length;Le+=1)at(Le);ve()}if((!Re||Ce[0]&8192)&&u(V,"style",de[13]),(!Re||Ce[0]&16)&&L(V,"items-mobile",de[4]),(!Re||Ce[0]&16)&&L(d,"menu-desktop",!de[4]),(!Re||Ce[0]&16)&&L(d,"menu-mobile",de[4]),(!Re||Ce[0]&256)&&L(d,"hidden",!de[8]),(!Re||Ce[0]&16)&&L(O,"item-mobile",de[4]),Ce[0]&33554448|Ce[1]&524288){Ye=Gt(de[25]);let Le;for(Le=0;Le<Ye.length;Le+=1){const Mt=ks(de,Ye,Le);Xe[Le]?(Xe[Le].p(Mt,Ce),h(Xe[Le],1)):(Xe[Le]=Ns(Mt),Xe[Le].c(),h(Xe[Le],1),Xe[Le].m(J,null))}for(pe(),Le=Ye.length;Le<Xe.length;Le+=1)xt(Le);ve()}if((!Re||Ce[0]&16384)&&u(J,"style",de[14]),(!Re||Ce[0]&16)&&L(J,"items-mobile",de[4]),(!Re||Ce[0]&16)&&L(le,"menu-desktop",!de[4]),(!Re||Ce[0]&16)&&L(le,"menu-mobile",de[4]),(!Re||Ce[0]&512)&&L(le,"hidden",!de[9]),(!Re||Ce[0]&16)&&L(se,"item-mobile",de[4]),de[24]?kt&&(pe(),p(kt,1,1,()=>{kt=null}),ve()):kt?Ce[0]&16777216&&h(kt,1):(kt=Rs(),kt.c(),h(kt,1),kt.m(ce,k)),(!Re||Ce[0]&16)&&L($,"quality-title-mobile",de[4]),(!Re||Ce[0]&16)&&L(ce,"item-mobile",de[4]),de[24]?vt?Ce[0]&16777216&&h(vt,1):(vt=Os(),vt.c(),h(vt,1),vt.m(Te,Ve)):vt&&(pe(),p(vt,1,1,()=>{vt=null}),ve()),(!Re||Ce[0]&16)&&L(Ae,"quality-title-mobile",de[4]),(!Re||Ce[0]&16)&&L(Te,"item-mobile",de[4]),(!Re||Ce[0]&32768)&&u(N,"style",de[15]),(!Re||Ce[0]&16)&&L(N,"items-mobile",de[4]),(!Re||Ce[0]&16)&&L(X,"item-mobile",de[4]),(!Re||Ce[0]&16)&&L(I,"menu-desktop",!de[4]),(!Re||Ce[0]&16)&&L(I,"menu-mobile",de[4]),(!Re||Ce[0]&2048)&&L(I,"hidden",!de[11]),(!Re||Ce[0]&16)&&L(rt,"item-mobile",de[4]),Ce[0]&24|Ce[1]&2097152){Rt=Gt(de[3]);let Le;for(Le=0;Le<Rt.length;Le+=1){const Mt=_s(de,Rt,Le);dt[Le]?(dt[Le].p(Mt,Ce),h(dt[Le],1)):(dt[Le]=zs(Mt),dt[Le].c(),h(dt[Le],1),dt[Le].m(mt,null))}for(pe(),Le=Rt.length;Le<dt.length;Le+=1)ni(Le);ve()}(!Re||Ce[0]&16)&&L(mt,"items-mobile",de[4]),(!Re||Ce[0]&16)&&L(We,"menu-desktop",!de[4]),(!Re||Ce[0]&16)&&L(We,"menu-mobile",de[4]),(!Re||Ce[0]&1024)&&L(We,"hidden",!de[10]),(!Re||Ce[0]&64)&&L(e,"hidden",!de[6]),(!Re||Ce[0]&16)&&L(e,"container-mobile",de[4])},i(de){if(!Re){h(st),h(Ke),h(xe),h($e),h(et),h(ot),h(v.$$.fragment,de);for(let Ce=0;Ce<Vt.length;Ce+=1)h(lt[Ce]);h(q.$$.fragment,de);for(let Ce=0;Ce<Ye.length;Ce+=1)h(Xe[Ce]);h(G.$$.fragment,de),h(kt),h(vt),h(Ue.$$.fragment,de);for(let Ce=0;Ce<Rt.length;Ce+=1)h(dt[Ce]);Re=!0}},o(de){p(st),p(Ke),p(xe),p($e),p(et),p(ot),p(v.$$.fragment,de),lt=lt.filter(Boolean);for(let Ce=0;Ce<lt.length;Ce+=1)p(lt[Ce]);p(q.$$.fragment,de),Xe=Xe.filter(Boolean);for(let Ce=0;Ce<Xe.length;Ce+=1)p(Xe[Ce]);p(G.$$.fragment,de),p(kt),p(vt),p(Ue.$$.fragment,de),dt=dt.filter(Boolean);for(let Ce=0;Ce<dt.length;Ce+=1)p(dt[Ce]);Re=!1},d(de){de&&y(e),nt&&nt.d(),st&&st.d(),Ke&&Ke.d(),xe&&xe.d(),$e&&$e.d(),et&&et.d(),ot&&ot.d(),F(v),i[70](null),pn(lt,de),F(q),i[72](null),pn(Xe,de),F(G),i[74](null),kt&&kt.d(),vt&&vt.d(),F(Ue),pn(dt,de),Dt=!1,Xt(te)}}}const Bl=18;function N3(i,e,t){let n,o,r,l,s,a,c,f,d,g,v,b,S,_,A,E,V,B,{supportLink:le}=e,{playerControlsHeight:O=0}=e,{returnFocus:q}=e;const D=Nt(),me=$i(),ue=D.state.currentQuality$;W(i,ue,Ie=>t(69,S=Ie));const Z=D.state.availableQualities$;W(i,Z,Ie=>t(5,b=Ie));const fe=D.state.autoQualityLimitingAvailable$;W(i,fe,Ie=>t(63,s=Ie));const J=D.state.isAutoQualityEnabled$;W(i,J,Ie=>t(68,v=Ie));const T=D.state.currentPlaybackRate$;W(i,T,Ie=>t(22,A=Ie));const I=D.state.availablePlaybackRates$;W(i,I,Ie=>t(25,B=Ie));const se=D.state.currentSubtitle$;W(i,se,Ie=>t(23,E=Ie));const G=D.state.availableSubtitlesList$;W(i,G,Ie=>t(3,l=Ie));const ye=D.state.canDownload,ae=D.state.hasMpegSources$;W(i,ae,Ie=>t(64,a=Ie));const Y=D.ui.settingsMenuVisible;W(i,Y,Ie=>t(6,_=Ie));const oe=D.ui.isMobile;W(i,oe,Ie=>t(4,f=Ie));const Ne=D.ui.mobileNotReportControlHidden$;W(i,Ne,Ie=>t(61,o=Ie));const N=D.state.canChangePlaybackSpeed$;W(i,N,Ie=>t(62,r=Ie));const ce=D.ui.isFullscreen;W(i,ce,Ie=>t(67,g=Ie));const k=D.state.trafficSavingEnabled$;W(i,k,Ie=>t(24,V=Ie));const $=D.ui.playerSize;W(i,$,Ie=>t(66,d=Ie));const Fe=D.ui.debugPanelVisible,Te=D.ui.playerSize;W(i,Te,Ie=>t(65,c=Ie));const Ve=D.actions.internal.downloadVideo;let Ae=!0,be=!1,Ee=!1,Pe=!1,X=!1;function j(){q==null||q(),Y.set(!1)}function He(){t(7,Ae=!1),t(8,be=!0)}function We(){t(7,Ae=!1),t(11,X=!0)}function rt(Ie){D.actions.internal.setQuality(Ie),j()}function Ue(Ie){D.actions.internal.setTrafficSavingEnabled(Ie),j()}function gt(){t(7,Ae=!1),t(9,Ee=!0)}function pt(Ie){D.actions.internal.setPlaybackRate(Ie),j()}function Ot(){t(7,Ae=!1),t(10,Pe=!0)}function mt(Ie){D.actions.internal.setSubtitle(Ie),j()}function Re(){t(7,Ae=!0),t(8,be=!1),t(9,Ee=!1),t(10,Pe=!1),t(11,X=!1)}function Dt(){Ve(),j()}function te(){window.open(le,"_blank"),j(),D.actions.internal.pause()}function nt(){Gl(D.actions.internal.getDebugTextData()),j()}function st(){Fe.set(!0),j()}function Ke(Ie,jt,Qt){if(!Ie)return"...";const wt=jt.find(Ci=>Ci.value===Ie),qt=wt?wt.displayValue:Ie;return Qt?Ie===ct.VideoQuality.INVARIANT?re("auto_quality_invariant"):re("auto_quality",{actual:qt}):qt}let xe,$e,et,ot,Vt,lt,at,Ye,Xe,xt,kt,vt;function Rt(Ie){Me[Ie?"unshift":"push"](()=>{$e=Ie,t(0,$e)})}const dt=Ie=>rt(Ie.value);function ni(Ie){Me[Ie?"unshift":"push"](()=>{et=Ie,t(1,et)})}const de=Ie=>pt(Ie.value);function Ce(Ie){Me[Ie?"unshift":"push"](()=>{ot=Ie,t(2,ot)})}const Le=()=>Ue(!1),Mt=()=>Ue(!0),$t=Ie=>mt(Ie);return i.$$set=Ie=>{"supportLink"in Ie&&t(58,le=Ie.supportLink),"playerControlsHeight"in Ie&&t(59,O=Ie.playerControlsHeight),"returnFocus"in Ie&&t(60,q=Ie.returnFocus)},i.$$.update=()=>{var Ie,jt,Qt;if(i.$$.dirty[0]&64&&_&&(t(7,Ae=!0),t(8,be=!1),t(9,Ee=!1),t(10,Pe=!1),t(11,X=!1)),i.$$.dirty[2]&128&&t(21,n=mo(S)),i.$$.dirty[0]&32|i.$$.dirty[2]&192&&t(12,xe=Ke(S,b,v)),i.$$.dirty[0]&17|i.$$.dirty[1]&268435456|i.$$.dirty[2]&56)if(f&&g)t(13,Vt=`max-height: ${Math.round(d.height*.6)}px`);else if(f)t(13,Vt="");else{const wt=c.height-Bl-((Ie=$e==null?void 0:$e.clientHeight)!=null?Ie:0)-O;t(13,Vt=`max-height: ${wt}px; overflow: auto;`)}if(i.$$.dirty[0]&18|i.$$.dirty[1]&268435456|i.$$.dirty[2]&8)if(f)t(14,lt="");else{const wt=c.height-Bl-((jt=et==null?void 0:et.clientHeight)!=null?jt:0)-O;t(14,lt=`max-height: ${wt}px; overflow: auto;`)}if(i.$$.dirty[0]&20|i.$$.dirty[1]&268435456|i.$$.dirty[2]&8)if(f)t(15,at="");else{const wt=c.height-Bl-((Qt=ot==null?void 0:ot.clientHeight)!=null?Qt:0)-O;t(15,at=`max-height: ${wt}px; overflow: auto;`)}i.$$.dirty[1]&1073741824|i.$$.dirty[2]&4&&t(16,Ye=ye&&a&&!o),i.$$.dirty[1]&1073741824|i.$$.dirty[2]&2&&t(17,Xe=me.features.trafficSaving&&!o&&s),i.$$.dirty[0]&8|i.$$.dirty[1]&1073741824&&t(18,xt=l.length>0&&!o),i.$$.dirty[1]&1073741824|i.$$.dirty[2]&1&&t(19,kt=!!r&&!o),i.$$.dirty[1]&1073741824&&t(20,vt=!o)},[$e,et,ot,l,f,b,_,Ae,be,Ee,Pe,X,xe,Vt,lt,at,Ye,Xe,xt,kt,vt,n,A,E,V,B,me,ue,Z,fe,J,T,I,se,G,ae,Y,oe,Ne,N,ce,k,$,Te,j,He,We,rt,Ue,gt,pt,Ot,mt,Re,Dt,te,nt,st,le,O,q,o,r,s,a,c,d,g,v,S,Rt,dt,ni,de,Ce,Le,Mt,$t]}class ic extends we{constructor(e){super(),ke(this,e,N3,B3,_e,{supportLink:58,playerControlsHeight:59,returnFocus:60},V3,[-1,-1,-1])}}function R3(i){qe(i,"v-d9t49t",".settings-icon-wrapper.v-d9t49t{position:relative;width:24px}")}function O3(i){let e,t,n;return t=new ec({props:{isMobile:i[1],currentQuality:i[2]}}),{c(){e=w("span"),H(t.$$.fragment),u(e,"class","settings-icon-wrapper v-d9t49t")},m(o,r){C(o,e,r),z(t,e,null),n=!0},p(o,r){const l={};r&2&&(l.isMobile=o[1]),r&4&&(l.currentQuality=o[2]),t.$set(l)},i(o){n||(h(t.$$.fragment,o),n=!0)},o(o){p(t.$$.fragment,o),n=!1},d(o){o&&y(e),F(t)}}}function D3(i){let e,t;return e=new ci({props:{testId:"btn-settings",click:i[6],ariaLabel:i[0],$$slots:{default:[O3]},$$scope:{ctx:i}}}),{c(){H(e.$$.fragment)},m(n,o){z(e,n,o),t=!0},p(n,[o]){const r={};o&1&&(r.ariaLabel=n[0]),o&518&&(r.$$scope={dirty:o,ctx:n}),e.$set(r)},i(n){t||(h(e.$$.fragment,n),t=!0)},o(n){p(e.$$.fragment,n),t=!1},d(n){F(e,n)}}}function z3(i,e,t){let n,o,r;const l=Nt(),s=l.state.currentQuality$;W(i,s,g=>t(2,r=g));const a=l.ui.settingsMenuVisible;W(i,a,g=>t(7,n=g));const c=l.ui.isMobile;W(i,c,g=>t(1,o=g));let f;function d(){a.set(!n)}return i.$$.update=()=>{i.$$.dirty&128&&t(0,f=re(n?"tooltip_settings_on":"tooltip_settings_off"))},[f,o,r,s,a,c,d,n]}class ir extends we{constructor(e){super(),ke(this,e,z3,D3,_e,{},R3)}}function F3(i){let e,t;return{c(){e=M("svg"),t=M("path"),u(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-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(t,"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){C(n,e,o),m(e,t)},p:U,i:U,o:U,d(n){n&&y(e)}}}class H3 extends we{constructor(e){super(),ke(this,e,null,F3,_e,{})}}function U3(i){let e,t;return e=new tc({}),{c(){H(e.$$.fragment)},m(n,o){z(e,n,o),t=!0},i(n){t||(h(e.$$.fragment,n),t=!0)},o(n){p(e.$$.fragment,n),t=!1},d(n){F(e,n)}}}function j3(i){let e,t;return e=new H3({}),{c(){H(e.$$.fragment)},m(n,o){z(e,n,o),t=!0},i(n){t||(h(e.$$.fragment,n),t=!0)},o(n){p(e.$$.fragment,n),t=!1},d(n){F(e,n)}}}function q3(i){let e,t,n,o;const r=[j3,U3],l=[];function s(a,c){return a[0]?0:1}return e=s(i),t=l[e]=r[e](i),{c(){t.c(),n=Et()},m(a,c){l[e].m(a,c),C(a,n,c),o=!0},p(a,c){let f=e;e=s(a),e!==f&&(pe(),p(l[f],1,1,()=>{l[f]=null}),ve(),t=l[e],t||(t=l[e]=r[e](a),t.c()),h(t,1),t.m(n.parentNode,n))},i(a){o||(h(t),o=!0)},o(a){p(t),o=!1},d(a){a&&y(n),l[e].d(a)}}}function Z3(i){let e,t;return e=new ci({props:{testId:"btn-Subtitles",ariaLabel:i[2],click:i[1],$$slots:{default:[q3]},$$scope:{ctx:i}}}),{c(){H(e.$$.fragment)},m(n,o){z(e,n,o),t=!0},p(n,[o]){const r={};o&4&&(r.ariaLabel=n[2]),o&2&&(r.click=n[1]),o&9&&(r.$$scope={dirty:o,ctx:n}),e.$set(r)},i(n){t||(h(e.$$.fragment,n),t=!0)},o(n){p(e.$$.fragment,n),t=!1},d(n){F(e,n)}}}function W3(i,e,t){let{isSubtitlesEnabled:n=!1}=e,{click:o}=e,r;return i.$$set=l=>{"isSubtitlesEnabled"in l&&t(0,n=l.isSubtitlesEnabled),"click"in l&&t(1,o=l.click)},i.$$.update=()=>{i.$$.dirty&1&&t(2,r=re(n?"tooltip_subtitles_on":"tooltip_subtitles_off"))},[n,o,r]}class G3 extends we{constructor(e){super(),ke(this,e,W3,Z3,_e,{isSubtitlesEnabled:0,click:1})}}function K3(i){qe(i,"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 Fs(i){let e,t;return{c(){e=w("span"),t=je(i[3]),u(e,"class","duration v-19o2urr")},m(n,o){C(n,e,o),m(e,t)},p(n,o){o&8&&it(t,n[3])},d(n){n&&y(e)}}}function Y3(i){let e,t,n,o,r=i[2]&&Fs(i);return{c(){e=w("div"),t=w("span"),n=je(i[4]),o=R(),r&&r.c(),u(t,"class","current v-19o2urr"),u(e,"class","time v-19o2urr"),L(e,"mobile",i[1])},m(l,s){C(l,e,s),m(e,t),m(t,n),m(e,o),r&&r.m(e,null),i[7](e)},p(l,[s]){s&16&&it(n,l[4]),l[2]?r?r.p(l,s):(r=Fs(l),r.c(),r.m(e,null)):r&&(r.d(1),r=null),s&2&&L(e,"mobile",l[1])},i:U,o:U,d(l){l&&y(e),r&&r.d(),i[7](null)}}}function X3(i,e,t){let{isMobile:n=!1}=e,{duration:o}=e,{position:r}=e,{showDuration:l=!0}=e,{ref:s}=e,a,c;function f(d){Me[d?"unshift":"push"](()=>{s=d,t(0,s)})}return i.$$set=d=>{"isMobile"in d&&t(1,n=d.isMobile),"duration"in d&&t(5,o=d.duration),"position"in d&&t(6,r=d.position),"showDuration"in d&&t(2,l=d.showDuration),"ref"in d&&t(0,s=d.ref)},i.$$.update=()=>{i.$$.dirty&32&&t(3,a=Cn(o)),i.$$.dirty&64&&t(4,c=Cn(r))},[s,n,l,a,c,o,r,f]}class nc extends we{constructor(e){super(),ke(this,e,X3,Y3,_e,{isMobile:1,duration:5,position:6,showDuration:2,ref:0},K3)}}function Q3(i){qe(i,"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 J3(i){let e,t,n,o,r,l;return{c(){e=M("svg"),t=M("g"),n=M("path"),o=M("path"),r=M("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(r,"class","cross v-1n5yyua"),u(r,"d","m20 10.763 2.381-2.382A.875.875 0 1 1 23.62 9.62L21.237 12l2.382 2.381a.875.875 0 1 1-1.238 1.238L20 13.237l-2.381 2.382a.875.875 0 1 1-1.238-1.238L18.763 12 16.38 9.619A.875.875 0 1 1 17.62 8.38zm-7.02 8.06c-.031 1.207-.67 1.609-1.828.62-1.719-1.469-3.609-3.194-4.242-3.721-.632-.529-1.645-.62-3.073-.62-1.427 0-1.815-.621-1.815-1.241s-.014-1.83-.014-2.001c0-.055.005-.086.014-.13.02-.095-.058-.973 0-1.59.085-.906.388-1.241 1.815-1.241 1.428 0 2.44-.092 3.073-.62.633-.529 2.523-2.253 4.242-3.722 1.158-.989 1.797-.587 1.829.62.043 1.607 0 3.85 0 6.683 0 2.83.043 5.356 0 6.963z"),u(t,"fill","#fff"),u(t,"fill-rule","evenodd"),u(e,"data-value",i[0]),u(e,"data-testid",l="volume-"+i[0]+"-icon"),u(e,"xmlns","http://www.w3.org/2000/svg"),u(e,"class","icon v-1n5yyua"),u(e,"aria-hidden","true")},m(s,a){C(s,e,a),m(e,t),m(t,n),m(t,o),m(t,r)},p(s,[a]){a&1&&u(e,"data-value",s[0]),a&1&&l!==(l="volume-"+s[0]+"-icon")&&u(e,"data-testid",l)},i:U,o:U,d(s){s&&y(e)}}}function x3(i,e,t){let{volume:n=1}=e,{muted:o=!1}=e;const r=(s,a)=>a?"off":s>.5?"max":s>.2?"mid":s>0?"min":"off";let l;return i.$$set=s=>{"volume"in s&&t(1,n=s.volume),"muted"in s&&t(2,o=s.muted)},i.$$.update=()=>{i.$$.dirty&6&&t(0,l=r(n,o))},[l,n,o]}class sl extends we{constructor(e){super(),ke(this,e,x3,J3,_e,{volume:1,muted:2},Q3)}}function $3(i){qe(i,"v-1jbbzcj",'.tooltip-wrapper.v-1jbbzcj{display:flex;flex-direction:column;min-width:0}.full-width.v-1jbbzcj{width:100%}.tooltip.v-1jbbzcj{position:absolute;opacity:0;visibility:hidden;transition:opacity 200ms, visibility 200ms;bottom:100%;left:0}.content.v-1jbbzcj{display:inline-block;padding:6px 10px;border-radius:3px;color:var(--white);background-color:rgba(41, 41, 41, .8)}.tooltip.active.v-1jbbzcj{opacity:1;visibility:visible}.tooltip-pointer.v-1jbbzcj{position:absolute;bottom:0;width:0;border-top:5px solid rgba(41, 41, 41, .8);border-right:5px solid transparent;border-left:5px solid transparent;content:" ";font-size:0;line-height:0}')}function Hs(i){let e,t,n,o,r,l,s;return{c(){e=w("div"),t=w("div"),n=je(i[1]),o=R(),r=w("div"),u(t,"class","content v-1jbbzcj"),u(r,"class","tooltip-pointer v-1jbbzcj"),u(r,"style",l=`transform: translate(${i[6]}px, ${i[8]}px);`),u(e,"class","tooltip v-1jbbzcj"),u(e,"style",s=`transform: translate(${i[5]}px, ${i[2]}px);`),L(e,"active",i[4])},m(a,c){C(a,e,c),m(e,t),m(t,n),m(e,o),m(e,r),i[17](e)},p(a,c){c&2&&it(n,a[1]),c&64&&l!==(l=`transform: translate(${a[6]}px, ${a[8]}px);`)&&u(r,"style",l),c&36&&s!==(s=`transform: translate(${a[5]}px, ${a[2]}px);`)&&u(e,"style",s),c&16&&L(e,"active",a[4])},d(a){a&&y(e),i[17](null)}}}function eh(i){let e,t,n,o,r;const l=i[16].default,s=Bn(l,i,i[15],null);let a=i[1]&&Hs(i);return{c(){e=w("div"),s&&s.c(),t=R(),a&&a.c(),u(e,"class","tooltip-wrapper v-1jbbzcj"),L(e,"full-width",i[3])},m(c,f){C(c,e,f),s&&s.m(e,null),m(e,t),a&&a.m(e,null),n=!0,o||(r=[Se(e,"mouseenter",function(){cn(i[7]?i[11]:ne.noop)&&(i[7]?i[11]:ne.noop).apply(this,arguments)}),Se(e,"mousemove",function(){cn(i[7]?i[11]:ne.noop)&&(i[7]?i[11]:ne.noop).apply(this,arguments)}),Se(e,"mouseleave",i[12]),Se(e,"mousedown",i[12]),Se(e,"mouseup",function(){cn(i[7]?i[11]:ne.noop)&&(i[7]?i[11]:ne.noop).apply(this,arguments)})],o=!0)},p(c,[f]){i=c,s&&s.p&&(!n||f&32768)&&Rn(s,l,i,i[15],n?Nn(l,i[15],f,null):On(i[15]),null),i[1]?a?a.p(i,f):(a=Hs(i),a.c(),a.m(e,null)):a&&(a.d(1),a=null),(!n||f&8)&&L(e,"full-width",i[3])},i(c){n||(h(s,c),n=!0)},o(c){p(s,c),n=!1},d(c){c&&y(e),s&&s.d(c),a&&a.d(),o=!1,Xt(r)}}}const Us=5,Xo=8;function th(i,e,t){let n,o,r,l,s=U,a=()=>(s(),s=Jt(d,I=>t(14,l=I)),d);i.$$.on_destroy.push(()=>s());let{$$slots:c={},$$scope:f}=e,{controlInfo:d=ze(void 0)}=e;a();let{tooltipContent:g=""}=e,{initialTranslateXPx:v=0}=e,{initialTranslateYPx:b=0}=e,{isFullWidth:S=!1}=e,_=!1,A=0,E=0,V=Us,B,le;const O=$i(),q=Nt(),D=q.ui.playerSize;W(i,D,I=>t(21,r=I));const me=q.ui.controls.tooltipPointerOffsetX;W(i,me,I=>t(20,o=I));const ue=()=>{t(4,_=!0);const I=le.clientWidth,se=r.width,G=o-I/2+v,ye=o-n;t(5,A=ye-I/2+v),t(6,E=I/2-Us);let ae=0;G<Xo&&(ae=Xo-G,t(6,E-=ae),t(5,A+=ae));let Y=0;G+I>se-Xo&&(Y=G+I-(se-Xo),t(6,E+=Y),t(5,A-=Y))},Z=()=>{t(4,_=!1)},fe=()=>{B||(B=window.setTimeout(ue,O.controls.hideTimeoutTooltips)),_&&ue()},J=()=>{Z(),window.clearTimeout(B),B=void 0};il(()=>window.clearTimeout(B));function T(I){Me[I?"unshift":"push"](()=>{le=I,t(7,le)})}return i.$$set=I=>{"controlInfo"in I&&a(t(0,d=I.controlInfo)),"tooltipContent"in I&&t(1,g=I.tooltipContent),"initialTranslateXPx"in I&&t(13,v=I.initialTranslateXPx),"initialTranslateYPx"in I&&t(2,b=I.initialTranslateYPx),"isFullWidth"in I&&t(3,S=I.isFullWidth),"$$scope"in I&&t(15,f=I.$$scope)},i.$$.update=()=>{var I;i.$$.dirty&16384&&(n=(I=l==null?void 0:l.left)!=null?I:0)},[d,g,b,S,_,A,E,le,V,D,me,fe,J,v,l,f,c,T]}class oc extends we{constructor(e){super(),ke(this,e,th,eh,_e,{controlInfo:0,tooltipContent:1,initialTranslateXPx:13,initialTranslateYPx:2,isFullWidth:3},$3)}}function ih(i){qe(i,"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 nh(i){let e;const t=i[17].default,n=Bn(t,i,i[22],null);return{c(){n&&n.c()},m(o,r){n&&n.m(o,r),e=!0},p(o,r){n&&n.p&&(!e||r&4194304)&&Rn(n,t,o,o[22],e?Nn(t,o[22],r,null):On(o[22]),null)},i(o){e||(h(n,o),e=!0)},o(o){p(n,o),e=!1},d(o){n&&n.d(o)}}}function oh(i){let e,t;return e=new oc({props:{controlInfo:i[5],tooltipContent:i[10],initialTranslateXPx:i[8],initialTranslateYPx:i[9],isFullWidth:i[4],$$slots:{default:[lh]},$$scope:{ctx:i}}}),{c(){H(e.$$.fragment)},m(n,o){z(e,n,o),t=!0},p(n,o){const r={};o&32&&(r.controlInfo=n[5]),o&1024&&(r.tooltipContent=n[10]),o&256&&(r.initialTranslateXPx=n[8]),o&512&&(r.initialTranslateYPx=n[9]),o&16&&(r.isFullWidth=n[4]),o&4194304&&(r.$$scope={dirty:o,ctx:n}),e.$set(r)},i(n){t||(h(e.$$.fragment,n),t=!0)},o(n){p(e.$$.fragment,n),t=!1},d(n){F(e,n)}}}function lh(i){let e;const t=i[17].default,n=Bn(t,i,i[22],null);return{c(){n&&n.c()},m(o,r){n&&n.m(o,r),e=!0},p(o,r){n&&n.p&&(!e||r&4194304)&&Rn(n,t,o,o[22],e?Nn(t,o[22],r,null):On(o[22]),null)},i(o){e||(h(n,o),e=!0)},o(o){p(n,o),e=!1},d(o){n&&n.d(o)}}}function rh(i){let e,t,n,o,r,l,s,a,c;const f=[oh,nh],d=[];function g(v,b){return v[3]&&v[6]&&!v[11]?0:1}return t=g(i),n=d[t]=f[t](i),{c(){e=w("div"),n.c(),u(e,"class",o="btn-container "+i[2]+" v-p9r045"),u(e,"aria-hidden",r=i[7]||null),uo(()=>i[21].call(e))},m(v,b){C(v,e,b),d[t].m(e,null),i[20](e),l=Kl(e,i[21].bind(e)),s=!0,a||(c=[Se(e,"pointerdown",ht(ui(i[18]))),Se(e,"click",ht(ui(i[19])))],a=!0)},p(v,[b]){let S=t;t=g(v),t===S?d[t].p(v,b):(pe(),p(d[S],1,1,()=>{d[S]=null}),ve(),n=d[t],n?n.p(v,b):(n=d[t]=f[t](v),n.c()),h(n,1),n.m(e,null)),(!s||b&4&&o!==(o="btn-container "+v[2]+" v-p9r045"))&&u(e,"class",o),(!s||b&128&&r!==(r=v[7]||null))&&u(e,"aria-hidden",r)},i(v){s||(h(n),s=!0)},o(v){p(n),s=!1},d(v){v&&y(e),d[t].d(),i[20](null),l(),a=!1,Xt(c)}}}function sh(i,e,t){let n,o,{$$slots:r={},$$scope:l}=e,{className:s=""}=e,{disabled:a=!1}=e,{hasTooltip:c=!0}=e,{ref:f=void 0}=e,{width:d=void 0}=e,{isFullWidthTooltip:g=!0}=e,{controlInfo:v=ze(void 0)}=e,{tooltipContent:b=""}=e,{disabledTooltipContent:S=re("tooltip_button_disabled")}=e,{isAriaHidden:_=!1}=e,{initialTranslateXPx:A=0}=e,{initialTranslateYPx:E=-18}=e;const V=Nt(),B=V.ui.isMobile;W(i,B,Z=>t(11,o=Z));const le=V.state.graphIsOpened$;W(i,le,Z=>t(16,n=Z));let O;function q(Z){ao.call(this,i,Z)}function D(Z){ao.call(this,i,Z)}function me(Z){Me[Z?"unshift":"push"](()=>{f=Z,t(0,f)})}function ue(){d=this.clientWidth,t(1,d)}return i.$$set=Z=>{"className"in Z&&t(2,s=Z.className),"disabled"in Z&&t(14,a=Z.disabled),"hasTooltip"in Z&&t(3,c=Z.hasTooltip),"ref"in Z&&t(0,f=Z.ref),"width"in Z&&t(1,d=Z.width),"isFullWidthTooltip"in Z&&t(4,g=Z.isFullWidthTooltip),"controlInfo"in Z&&t(5,v=Z.controlInfo),"tooltipContent"in Z&&t(6,b=Z.tooltipContent),"disabledTooltipContent"in Z&&t(15,S=Z.disabledTooltipContent),"isAriaHidden"in Z&&t(7,_=Z.isAriaHidden),"initialTranslateXPx"in Z&&t(8,A=Z.initialTranslateXPx),"initialTranslateYPx"in Z&&t(9,E=Z.initialTranslateYPx),"$$scope"in Z&&t(22,l=Z.$$scope)},i.$$.update=()=>{i.$$.dirty&114752&&(a?t(10,O=n?re("tooltip_disabled_when_graph_on"):S):t(10,O=b))},[f,d,s,c,g,v,b,_,A,E,O,o,B,le,a,S,n,r,q,D,me,ue,l]}class Yt extends we{constructor(e){super(),ke(this,e,sh,rh,_e,{className:2,disabled:14,hasTooltip:3,ref:0,width:1,isFullWidthTooltip:4,controlInfo:5,tooltipContent:6,disabledTooltipContent:15,isAriaHidden:7,initialTranslateXPx:8,initialTranslateYPx:9},ih)}}function ah(i){let e,t,n,o,r;return{c(){e=M("svg"),t=M("rect"),o=M("path"),u(t,"width","20"),u(t,"height","20"),u(t,"rx","10"),u(t,"fill","white"),u(t,"fill-opacity",n=i[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",r=i[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,s){C(l,e,s),m(e,t),m(e,o)},p(l,[s]){s&1&&n!==(n=l[0]?1:.24)&&u(t,"fill-opacity",n),s&1&&r!==(r=l[0]?"var(--interactive-episode-complete)":"white")&&u(o,"fill",r)},i:U,o:U,d(l){l&&y(e)}}}function uh(i,e,t){let{completed:n}=e;return i.$$set=o=>{"completed"in o&&t(0,n=o.completed)},[n]}class ch extends we{constructor(e){super(),ke(this,e,uh,ah,_e,{completed:0})}}function fh(i){qe(i,"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 dh(i){let e,t,n,o,r;return t=new ch({props:{completed:!!i[0].completed}}),{c(){e=w("div"),H(t.$$.fragment),u(e,"class","interactive-episode-icon v-bklhpe"),u(e,"style",n=`left: ${i[0].from+i[0].width/2}%`),uo(()=>i[3].call(e)),L(e,"disabled",i[1])},m(l,s){C(l,e,s),z(t,e,null),o=Kl(e,i[3].bind(e)),r=!0},p(l,s){const a={};s&1&&(a.completed=!!l[0].completed),t.$set(a),(!r||s&1&&n!==(n=`left: ${l[0].from+l[0].width/2}%`))&&u(e,"style",n),(!r||s&2)&&L(e,"disabled",l[1])},i(l){r||(h(t.$$.fragment,l),r=!0)},o(l){p(t.$$.fragment,l),r=!1},d(l){l&&y(e),F(t),o()}}}function mh(i){let e,t;return e=new Yt({props:{tooltipContent:re(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:[dh]},$$scope:{ctx:i}}}),{c(){H(e.$$.fragment)},m(n,o){z(e,n,o),t=!0},p(n,[o]){const r={};o&1&&(r.tooltipContent=re(n[0].completed?"tooltip_episode_finished":"tooltip_episode_unfinished")),o&2&&(r.disabled=n[1]),o&4&&(r.width=n[2]||0),o&23&&(r.$$scope={dirty:o,ctx:n}),e.$set(r)},i(n){t||(h(e.$$.fragment,n),t=!0)},o(n){p(e.$$.fragment,n),t=!1},d(n){F(e,n)}}}function hh(i,e,t){let{videoEpisode:n}=e,{disabled:o}=e,r;function l(){r=this.clientWidth,t(2,r)}return i.$$set=s=>{"videoEpisode"in s&&t(0,n=s.videoEpisode),"disabled"in s&&t(1,o=s.disabled)},[n,o,r,l]}class ph extends we{constructor(e){super(),ke(this,e,hh,mh,_e,{videoEpisode:0,disabled:1},fh)}}function vh(i){qe(i,"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 js(i,e,t){const n=i.slice();return n[2]=e[t],n}function qs(i){let e,t,n,o,r,l,s,a,c;return{c(){e=w("div"),t=w("div"),n=w("div"),r=R(),l=w("div"),a=R(),u(n,"class","video-episode-loaded v-1h9p3m2"),u(n,"style",o=`transform: translateX(${i[2].loadedWidth/i[2].width*100}%)`),u(l,"class","video-episode-filled v-1h9p3m2"),u(l,"style",s=`transform: translateX(${i[2].filledWidth/i[2].width*100}%)`),L(l,"mobile",i[1]),u(t,"class","video-episode-inner v-1h9p3m2"),u(e,"class","video-episode v-1h9p3m2"),u(e,"style",c=`left: ${i[2].from}%; width: ${i[2].width}%`),L(e,"mobile",i[1])},m(f,d){C(f,e,d),m(e,t),m(t,n),m(t,r),m(t,l),m(e,a)},p(f,d){d&1&&o!==(o=`transform: translateX(${f[2].loadedWidth/f[2].width*100}%)`)&&u(n,"style",o),d&1&&s!==(s=`transform: translateX(${f[2].filledWidth/f[2].width*100}%)`)&&u(l,"style",s),d&2&&L(l,"mobile",f[1]),d&1&&c!==(c=`left: ${f[2].from}%; width: ${f[2].width}%`)&&u(e,"style",c),d&2&&L(e,"mobile",f[1])},d(f){f&&y(e)}}}function gh(i){let e,t=Gt(i[0]),n=[];for(let o=0;o<t.length;o+=1)n[o]=qs(js(i,t,o));return{c(){e=w("div");for(let o=0;o<n.length;o+=1)n[o].c();u(e,"class","video-episodes-wrap v-1h9p3m2")},m(o,r){C(o,e,r);for(let l=0;l<n.length;l+=1)n[l]&&n[l].m(e,null)},p(o,[r]){if(r&3){t=Gt(o[0]);let l;for(l=0;l<t.length;l+=1){const s=js(o,t,l);n[l]?n[l].p(s,r):(n[l]=qs(s),n[l].c(),n[l].m(e,null))}for(;l<n.length;l+=1)n[l].d(1);n.length=t.length}},i:U,o:U,d(o){o&&y(e),pn(n,o)}}}function bh(i,e,t){let{videoEpisodes:n=[]}=e,{isMobile:o}=e;return i.$$set=r=>{"videoEpisodes"in r&&t(0,n=r.videoEpisodes),"isMobile"in r&&t(1,o=r.isMobile)},[n,o]}class _h extends we{constructor(e){super(),ke(this,e,bh,gh,_e,{videoEpisodes:0,isMobile:1},vh)}}function kh(i){qe(i,"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 Zs(i,e,t){const n=i.slice();return n[48]=e[t],n}function Ws(i){let e,t,n=Gt(i[21]),o=[];for(let l=0;l<n.length;l+=1)o[l]=Ks(Zs(i,n,l));const r=l=>p(o[l],1,1,()=>{o[l]=null});return{c(){e=w("div");for(let l=0;l<o.length;l+=1)o[l].c();u(e,"class","interactive-icons v-1golz1y"),L(e,"mobile",i[5]),L(e,"hidden",i[5]&&!i[20])},m(l,s){C(l,e,s);for(let a=0;a<o.length;a+=1)o[a]&&o[a].m(e,null);t=!0},p(l,s){if(s[0]&2097664){n=Gt(l[21]);let a;for(a=0;a<n.length;a+=1){const c=Zs(l,n,a);o[a]?(o[a].p(c,s),h(o[a],1)):(o[a]=Ks(c),o[a].c(),h(o[a],1),o[a].m(e,null))}for(pe(),a=n.length;a<o.length;a+=1)r(a);ve()}(!t||s[0]&32)&&L(e,"mobile",l[5]),(!t||s[0]&1048608)&&L(e,"hidden",l[5]&&!l[20])},i(l){if(!t){for(let s=0;s<n.length;s+=1)h(o[s]);t=!0}},o(l){o=o.filter(Boolean);for(let s=0;s<o.length;s+=1)p(o[s]);t=!1},d(l){l&&y(e),pn(o,l)}}}function Gs(i){let e,t;return e=new ph({props:{videoEpisode:i[48],disabled:i[9]}}),{c(){H(e.$$.fragment)},m(n,o){z(e,n,o),t=!0},p(n,o){const r={};o[0]&2097152&&(r.videoEpisode=n[48]),o[0]&512&&(r.disabled=n[9]),e.$set(r)},i(n){t||(h(e.$$.fragment,n),t=!0)},o(n){p(e.$$.fragment,n),t=!1},d(n){F(e,n)}}}function Ks(i){let e,t,n=i[48].interactive&&Gs(i);return{c(){n&&n.c(),e=Et()},m(o,r){n&&n.m(o,r),C(o,e,r),t=!0},p(o,r){o[48].interactive?n?(n.p(o,r),r[0]&2097152&&h(n,1)):(n=Gs(o),n.c(),h(n,1),n.m(e.parentNode,e)):n&&(pe(),p(n,1,1,()=>{n=null}),ve())},i(o){t||(h(n),t=!0)},o(o){p(n),t=!1},d(o){o&&y(e),n&&n.d(o)}}}function wh(i){let e,t,n,o,r,l;return{c(){e=w("div"),t=w("div"),o=R(),r=w("div"),u(t,"class","loaded v-1golz1y"),u(t,"style",n=`transform: translateX(${i[11]*100}%);`),u(r,"class","filled v-1golz1y"),u(r,"style",l=`transform: translateX(${i[12]*100}%);`),L(r,"active-live",i[4]),L(r,"ads",i[6]),u(e,"class","bars v-1golz1y")},m(s,a){C(s,e,a),m(e,t),m(e,o),m(e,r)},p(s,a){a[0]&2048&&n!==(n=`transform: translateX(${s[11]*100}%);`)&&u(t,"style",n),a[0]&4096&&l!==(l=`transform: translateX(${s[12]*100}%);`)&&u(r,"style",l),a[0]&16&&L(r,"active-live",s[4]),a[0]&64&&L(r,"ads",s[6])},i:U,o:U,d(s){s&&y(e)}}}function yh(i){let e,t;return e=new _h({props:{videoEpisodes:i[21],isMobile:i[5]}}),{c(){H(e.$$.fragment)},m(n,o){z(e,n,o),t=!0},p(n,o){const r={};o[0]&2097152&&(r.videoEpisodes=n[21]),o[0]&32&&(r.isMobile=n[5]),e.$set(r)},i(n){t||(h(e.$$.fragment,n),t=!0)},o(n){p(e.$$.fragment,n),t=!1},d(n){F(e,n)}}}function Ch(i){let e,t,n,o,r,l,s,a,c,f,d,g,v,b=i[8]&&Ws(i);const S=[yh,wh],_=[];function A(E,V){return E[21].length?0:1}return n=A(i),o=_[n]=S[n](i),{c(){var E;b&&b.c(),e=R(),t=w("div"),o.c(),r=R(),l=w("div"),s=w("div"),u(s,"class","handle v-1golz1y"),L(s,"active-live",i[4]),u(l,"class","handleWrap v-1golz1y"),u(l,"style",a=`transform: translateX(${i[13]*100}%);`),L(l,"hidden",i[10]),u(t,"class",c="slider "+i[0]+" v-1golz1y"),u(t,"aria-label",i[14]),u(t,"aria-valuemin",i[15]),u(t,"aria-valuemax",i[16]),u(t,"aria-valuenow",i[17]),u(t,"aria-valuetext",i[18]),u(t,"role","slider"),u(t,"tabindex","0"),u(t,"data-testid",f=(E=i[1])!=null?E:null),L(t,"disabled",i[9]),L(t,"slider-dragging",i[20]),L(t,"hidden",i[2]),L(t,"slider-vertical",i[3]),L(t,"no-handle",i[10]),L(t,"square",i[7])},m(E,V){b&&b.m(E,V),C(E,e,V),C(E,t,V),_[n].m(t,null),m(t,r),m(t,l),m(l,s),i[42](t),d=!0,g||(v=[Se(t,"pointerdown",ui(i[22])),Se(t,"pointermove",ui(i[23])),Se(t,"pointerup",ui(i[24])),Se(t,"pointerenter",ui(i[25])),Se(t,"pointerleave",ui(i[26])),Se(t,"click",ht(ne.noop)),Se(t,"wheel",i[27])],g=!0)},p(E,V){var le;E[8]?b?(b.p(E,V),V[0]&256&&h(b,1)):(b=Ws(E),b.c(),h(b,1),b.m(e.parentNode,e)):b&&(pe(),p(b,1,1,()=>{b=null}),ve());let B=n;n=A(E),n===B?_[n].p(E,V):(pe(),p(_[B],1,1,()=>{_[B]=null}),ve(),o=_[n],o?o.p(E,V):(o=_[n]=S[n](E),o.c()),h(o,1),o.m(t,r)),(!d||V[0]&16)&&L(s,"active-live",E[4]),(!d||V[0]&8192&&a!==(a=`transform: translateX(${E[13]*100}%);`))&&u(l,"style",a),(!d||V[0]&1024)&&L(l,"hidden",E[10]),(!d||V[0]&1&&c!==(c="slider "+E[0]+" v-1golz1y"))&&u(t,"class",c),(!d||V[0]&16384)&&u(t,"aria-label",E[14]),(!d||V[0]&32768)&&u(t,"aria-valuemin",E[15]),(!d||V[0]&65536)&&u(t,"aria-valuemax",E[16]),(!d||V[0]&131072)&&u(t,"aria-valuenow",E[17]),(!d||V[0]&262144)&&u(t,"aria-valuetext",E[18]),(!d||V[0]&2&&f!==(f=(le=E[1])!=null?le:null))&&u(t,"data-testid",f),(!d||V[0]&513)&&L(t,"disabled",E[9]),(!d||V[0]&1048577)&&L(t,"slider-dragging",E[20]),(!d||V[0]&5)&&L(t,"hidden",E[2]),(!d||V[0]&9)&&L(t,"slider-vertical",E[3]),(!d||V[0]&1025)&&L(t,"no-handle",E[10]),(!d||V[0]&129)&&L(t,"square",E[7])},i(E){d||(h(b),h(o),d=!0)},o(E){p(b),p(o),d=!1},d(E){E&&(y(e),y(t)),b&&b.d(E),_[n].d(),i[42](null),g=!1,Xt(v)}}}function Ph(i,e,t){let n,o,{className:r=""}=e,{testId:l=void 0}=e,{isHidden:s=!1}=e,{isVertical:a=!1}=e,{isActiveLive:c=!1}=e,{isMobile:f=!1}=e,{isAds:d=!1}=e,{squareBorders:g=!1}=e,{videoEpisodes:v=[]}=e,{withWheelHandler:b=!1}=e,{isInteractive:S=!1}=e,{disabled:_=!1}=e,{hideHandel:A=!1}=e,E,V,{onPointerDown:B=ne.noop}=e,{onHandleMove:le=ne.noop}=e,{onPointerUp:O=ne.noop}=e,{onPointerEnter:q=ne.noop}=e,{onPointerMove:D=ne.noop}=e,{onPointerLeave:me=ne.noop}=e,{onWheelUp:ue=ne.noop}=e,{onWheelDown:Z=ne.noop}=e,{onWheelLeft:fe=ne.noop}=e,{onWheelRight:J=ne.noop}=e,{loadedProgress:T=0}=e,{filledProgress:I=0}=e,{handleProgress:se=0}=e,{ariaLabel:G=""}=e,{ariaValueMin:ye=void 0}=e,{ariaValueMax:ae=void 0}=e,{ariaValueNow:Y=void 0}=e,{ariaValueText:oe=""}=e;const Ne=$i();let N=!1,ce;function k(j){if(N)return;t(20,N=!0),V=E.getBoundingClientRect();const He=be(j.clientX,j.clientY);B(He),E.setPointerCapture(j.pointerId)}function $(j){const He=be(j.clientX,j.clientY),We=Ee(j.clientX);D(He,We,V.width),N&&le(He)}function Fe(j){if(!N)return;t(20,N=!1);const He=be(j.clientX,j.clientY);O(He)}function Te(j){V=E.getBoundingClientRect();const He=be(j.clientX,j.clientY),We=Ee(j.clientX);q(He,We,V.width)}function Ve(){me()}function Ae(j){b&&(j.preventDefault(),j.deltaY<0?ue():j.deltaY>0?Z():j.deltaX>0?J():fe())}function be(j,He){return a?Math.max(0,Math.min(1,(V.height-(He-V.top))/V.height)):Math.min(Math.max(j-V.x,0),V.width)/V.width}function Ee(j){return Math.min(Math.max(j-V.x,0),V.width)}function Pe(j,He){const We=Ne.features.episodesClustering&&!S?Ne.episodeMinWidthPc:0,rt=[];let Ue=0,gt=0,pt=0;for(let Re=1;Re<v.length;Re++)gt=v[Re].time/ce*100,gt-Ue>We&&(rt.push({from:Ue,width:Math.max(0,gt-Ue),loadedWidth:Math.max(0,Math.min(gt,j)-Ue),filledWidth:Math.max(0,Math.min(gt,He)-Ue),interactive:v[Re-1].interactive,completed:v[Re-1].completed}),Ue=v[Re].time/ce*100,pt++);const Ot={from:Ue,width:Math.max(0,100-Ue),loadedWidth:Math.max(0,Math.min(j,100)-Ue),filledWidth:Math.max(0,Math.min(He,100)-Ue),interactive:v[pt].interactive,completed:v[pt].completed};100-Ue<We?(pt-=1,rt[pt].width+=100-Ue,rt[pt].loadedWidth+=Math.max(0,Math.min(j,100)-Ue),rt[pt].filledWidth+=Math.max(0,Math.min(He,100)-Ue)):rt[pt]=Ot;const mt=v[0].time;if(mt!==0){const Re=mt/ce*100;rt.unshift({from:0,width:Re,loadedWidth:Math.min(Re,j),filledWidth:Math.min(Re,He)})}return rt}function X(j){Me[j?"unshift":"push"](()=>{E=j,t(19,E)})}return i.$$set=j=>{"className"in j&&t(0,r=j.className),"testId"in j&&t(1,l=j.testId),"isHidden"in j&&t(2,s=j.isHidden),"isVertical"in j&&t(3,a=j.isVertical),"isActiveLive"in j&&t(4,c=j.isActiveLive),"isMobile"in j&&t(5,f=j.isMobile),"isAds"in j&&t(6,d=j.isAds),"squareBorders"in j&&t(7,g=j.squareBorders),"videoEpisodes"in j&&t(28,v=j.videoEpisodes),"withWheelHandler"in j&&t(29,b=j.withWheelHandler),"isInteractive"in j&&t(8,S=j.isInteractive),"disabled"in j&&t(9,_=j.disabled),"hideHandel"in j&&t(10,A=j.hideHandel),"onPointerDown"in j&&t(30,B=j.onPointerDown),"onHandleMove"in j&&t(31,le=j.onHandleMove),"onPointerUp"in j&&t(32,O=j.onPointerUp),"onPointerEnter"in j&&t(33,q=j.onPointerEnter),"onPointerMove"in j&&t(34,D=j.onPointerMove),"onPointerLeave"in j&&t(35,me=j.onPointerLeave),"onWheelUp"in j&&t(36,ue=j.onWheelUp),"onWheelDown"in j&&t(37,Z=j.onWheelDown),"onWheelLeft"in j&&t(38,fe=j.onWheelLeft),"onWheelRight"in j&&t(39,J=j.onWheelRight),"loadedProgress"in j&&t(11,T=j.loadedProgress),"filledProgress"in j&&t(12,I=j.filledProgress),"handleProgress"in j&&t(13,se=j.handleProgress),"ariaLabel"in j&&t(14,G=j.ariaLabel),"ariaValueMin"in j&&t(15,ye=j.ariaValueMin),"ariaValueMax"in j&&t(16,ae=j.ariaValueMax),"ariaValueNow"in j&&t(17,Y=j.ariaValueNow),"ariaValueText"in j&&t(18,oe=j.ariaValueText)},i.$$.update=()=>{var j;i.$$.dirty[0]&65536&&t(40,ce=ae!=null?ae:0),i.$$.dirty[0]&268435456|i.$$.dirty[1]&512&&t(41,n=((j=v[v.length-1])==null?void 0:j.time)<ce),i.$$.dirty[0]&268441600|i.$$.dirty[1]&1536&&t(21,o=v.length&&n&&ce?Pe(T*100,I*100):[])},[r,l,s,a,c,f,d,g,S,_,A,T,I,se,G,ye,ae,Y,oe,E,N,o,k,$,Fe,Te,Ve,Ae,v,b,B,le,O,q,D,me,ue,Z,fe,J,ce,n,X]}class nr extends we{constructor(e){super(),ke(this,e,Ph,Ch,_e,{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},kh,[-1,-1])}}const mn=(i,e)=>fo[i]>=fo[e],Sh=(i,e)=>fo[i]<fo[e],lc=(i,e)=>fo[i]<=fo[e],Th=i=>i>oo.L?exports.GridTypes.XL:i>oo.M?exports.GridTypes.L:i>oo.S?exports.GridTypes.M:i>oo.XS?exports.GridTypes.S:exports.GridTypes.XS;function Eh(i){qe(i,"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 Ah(i){let e,t;return e=new sl({props:{volume:i[4],muted:i[2]}}),{c(){H(e.$$.fragment)},m(n,o){z(e,n,o),t=!0},p(n,o){const r={};o[0]&16&&(r.volume=n[4]),o[0]&4&&(r.muted=n[2]),e.$set(r)},i(n){t||(h(e.$$.fragment,n),t=!0)},o(n){p(e.$$.fragment,n),t=!1},d(n){F(e,n)}}}function Ih(i){let e,t;return e=new ci({props:{className:"btn-full-opacity",disabled:!i[0],testId:i[3]?"btn-volume-vertical":"btn-volume-horizontal",ariaLabel:i[7],click:i[1],$$slots:{default:[Ah]},$$scope:{ctx:i}}}),{c(){H(e.$$.fragment)},m(n,o){z(e,n,o),t=!0},p(n,o){const r={};o[0]&1&&(r.disabled=!n[0]),o[0]&8&&(r.testId=n[3]?"btn-volume-vertical":"btn-volume-horizontal"),o[0]&128&&(r.ariaLabel=n[7]),o[0]&2&&(r.click=n[1]),o[0]&20|o[1]&2&&(r.$$scope={dirty:o,ctx:n}),e.$set(r)},i(n){t||(h(e.$$.fragment,n),t=!0)},o(n){p(e.$$.fragment,n),t=!1},d(n){F(e,n)}}}function Ys(i){let e,t,n;return t=new nr({props:{className:i[3]?"volumeBar-slider-vertical":"",isHidden:i[3]&&!i[5],isVertical:i[3],withWheelHandler:!0,onWheelUp:i[14],onWheelDown:i[15],onPointerDown:i[13],onHandleMove:i[16],onPointerUp:i[17],onPointerEnter:i[3]?i[18]:ne.noop,onPointerLeave:i[3]?i[19]:ne.noop,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[3]?"volume-slider-vertical":"volume-slider"}}),{c(){e=w("div"),H(t.$$.fragment),u(e,"class","volumeBar v-1l78lz9"),L(e,"volumeBar-vertical",i[3])},m(o,r){C(o,e,r),z(t,e,null),n=!0},p(o,r){const l={};r[0]&8&&(l.className=o[3]?"volumeBar-slider-vertical":""),r[0]&40&&(l.isHidden=o[3]&&!o[5]),r[0]&8&&(l.isVertical=o[3]),r[0]&8&&(l.onPointerEnter=o[3]?o[18]:ne.noop),r[0]&8&&(l.onPointerLeave=o[3]?o[19]:ne.noop),r[0]&256&&(l.ariaValueNow=Math.round(o[8]*100)),r[0]&256&&(l.ariaValueText=`${Math.round(o[8]*100)}%`),r[0]&256&&(l.filledProgress=o[8]),r[0]&256&&(l.handleProgress=o[8]),r[0]&8&&(l.testId=o[3]?"volume-slider-vertical":"volume-slider"),t.$set(l),(!n||r[0]&8)&&L(e,"volumeBar-vertical",o[3])},i(o){n||(h(t.$$.fragment,o),n=!0)},o(o){p(t.$$.fragment,o),n=!1},d(o){o&&y(e),F(t)}}}function Lh(i){let e,t,n,o,r,l;t=new oc({props:{controlInfo:i[11],tooltipContent:i[6],initialTranslateYPx:-18,$$slots:{default:[Ih]},$$scope:{ctx:i}}});let s=i[0]&&Ys(i);return{c(){e=w("div"),H(t.$$.fragment),n=R(),s&&s.c(),u(e,"class","volumeBar-container v-1l78lz9"),L(e,"vertical",i[3])},m(a,c){C(a,e,c),z(t,e,null),m(e,n),s&&s.m(e,null),o=!0,r||(l=[Se(e,"mouseenter",function(){cn(i[3]?i[20]:ne.noop)&&(i[3]?i[20]:ne.noop).apply(this,arguments)}),Se(e,"mouseleave",function(){cn(i[3]?i[21]:ne.noop)&&(i[3]?i[21]:ne.noop).apply(this,arguments)}),Se(e,"wheel",ui(i[22]))],r=!0)},p(a,c){i=a;const f={};c[0]&64&&(f.tooltipContent=i[6]),c[0]&159|c[1]&2&&(f.$$scope={dirty:c,ctx:i}),t.$set(f),i[0]?s?(s.p(i,c),c[0]&1&&h(s,1)):(s=Ys(i),s.c(),h(s,1),s.m(e,null)):s&&(pe(),p(s,1,1,()=>{s=null}),ve()),(!o||c[0]&8)&&L(e,"vertical",i[3])},i(a){o||(h(t.$$.fragment,a),h(s),o=!0)},o(a){p(t.$$.fragment,a),p(s),o=!1},d(a){a&&y(e),F(t),s&&s.d(),r=!1,Xt(l)}}}function Vh(i,e,t){let n,o,r,{isAudioAvailable:l=!0}=e,{click:s}=e;const a=Nt(),c=$i(),f=a.state.volume$;W(i,f,ae=>t(4,n=ae));const d=a.state.muted$;W(i,d,ae=>t(24,r=ae));const g=a.actions.internal.setVolume,v=a.ui.controls.volume,b=a.ui.currentGridType$;W(i,b,ae=>t(23,o=ae));let S=!1,_,A,E,V,B,le,O=1,q=!1;function D(ae){O=n,g(ae)}function me(){Xu(a,n,c.controls.volumeStepWheel)}function ue(){Qu(a,n,c.controls.volumeStepWheel)}function Z(ae){g(ae)}function fe(ae){const Y=ae;g(Y,Y===0?O:Y)}function J(){q=!0}function T(){q=!1,G()}function I(){clearTimeout(_),t(5,S=!0)}function se(){G()}function G(){_=window.setTimeout(()=>{q||t(5,S=!1)},c.controls.volumeBarTimeout)}function ye(ae){ae.deltaY<0?me():ae.deltaY>0&&ue()}return i.$$set=ae=>{"isAudioAvailable"in ae&&t(0,l=ae.isAudioAvailable),"click"in ae&&t(1,s=ae.click)},i.$$.update=()=>{i.$$.dirty[0]&16777217&&t(2,V=!l||r),i.$$.dirty[0]&8388608&&t(3,B=lc(o,exports.GridTypes.S)),i.$$.dirty[0]&12&&(B?t(6,A=""):t(6,A=re(V?"tooltip_volume":"tooltip_volume_muted")),t(7,E=re(V?"tooltip_volume":"tooltip_volume_muted"))),i.$$.dirty[0]&20&&t(8,le=V?0:n)},[l,s,V,B,n,S,A,E,le,f,d,v,b,D,me,ue,Z,fe,J,T,I,se,ye,o,r]}class Mh extends we{constructor(e){super(),ke(this,e,Vh,Lh,_e,{isAudioAvailable:0,click:1},Eh,[-1,-1])}}function Bh(i){let e;return{c(){e=M("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(t,n){C(t,e,n)},d(t){t&&y(e)}}}function Nh(i){let e;return{c(){e=M("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(t,n){C(t,e,n)},d(t){t&&y(e)}}}function Rh(i){let e,t,n;function o(s,a){return s[0]?Nh:Bh}let r=o(i),l=r(i);return{c(){e=M("svg"),t=M("g"),l.c(),u(t,"fill","#fff"),u(t,"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=i[0]?"close-fullscreen-icon":"open-fullscreen-icon")},m(s,a){C(s,e,a),m(e,t),l.m(t,null)},p(s,[a]){r!==(r=o(s))&&(l.d(1),l=r(s),l&&(l.c(),l.m(t,null))),a&1&&n!==(n=s[0]?"close-fullscreen-icon":"open-fullscreen-icon")&&u(e,"data-testid",n)},i:U,o:U,d(s){s&&y(e),l.d()}}}function Oh(i,e,t){let{isFullscreen:n=!1}=e;return i.$$set=o=>{"isFullscreen"in o&&t(0,n=o.isFullscreen)},[n]}class Dh extends we{constructor(e){super(),ke(this,e,Oh,Rh,_e,{isFullscreen:0})}}function zh(i){let e,t;return e=new Dh({props:{isFullscreen:i[0]}}),{c(){H(e.$$.fragment)},m(n,o){z(e,n,o),t=!0},p(n,o){const r={};o&1&&(r.isFullscreen=n[0]),e.$set(r)},i(n){t||(h(e.$$.fragment,n),t=!0)},o(n){p(e.$$.fragment,n),t=!1},d(n){F(e,n)}}}function Fh(i){let e,t;return e=new ci({props:{testId:"btn-fullscreen",ariaLabel:i[2],click:i[1],$$slots:{default:[zh]},$$scope:{ctx:i}}}),{c(){H(e.$$.fragment)},m(n,o){z(e,n,o),t=!0},p(n,[o]){const r={};o&4&&(r.ariaLabel=n[2]),o&2&&(r.click=n[1]),o&9&&(r.$$scope={dirty:o,ctx:n}),e.$set(r)},i(n){t||(h(e.$$.fragment,n),t=!0)},o(n){p(e.$$.fragment,n),t=!1},d(n){F(e,n)}}}function Hh(i,e,t){let{isFullscreen:n=!1}=e,{click:o=ne.noop}=e,r;return i.$$set=l=>{"isFullscreen"in l&&t(0,n=l.isFullscreen),"click"in l&&t(1,o=l.click)},i.$$.update=()=>{i.$$.dirty&1&&t(2,r=re(n?"tooltip_fullscreen_on":"tooltip_fullscreen_off"))},[n,o,r]}class rc extends we{constructor(e){super(),ke(this,e,Hh,Fh,_e,{isFullscreen:0,click:1})}}function Uh(i){let e,t;return{c(){e=M("svg"),t=M("path"),u(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.078l8.787 5.175z"),u(t,"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){C(n,e,o),m(e,t)},p:U,i:U,o:U,d(n){n&&y(e)}}}class or extends we{constructor(e){super(),ke(this,e,null,Uh,_e,{})}}function jh(i){let e,t;return{c(){e=M("svg"),t=M("path"),u(t,"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(t,"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){C(n,e,o),m(e,t)},p:U,i:U,o:U,d(n){n&&y(e)}}}class sc extends we{constructor(e){super(),ke(this,e,null,jh,_e,{})}}function qh(i){qe(i,"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 Xs(i){let e;return{c(){e=w("div"),u(e,"class","icon-background-mobile v-1ot3duq")},m(t,n){C(t,e,n)},d(t){t&&y(e)}}}function Zh(i){let e,t,n,o,r=i[1]&&Xs();var l=i[6];function s(a){return{}}return l&&(n=Pn(l,s())),{c(){r&&r.c(),e=R(),t=w("div"),n&&H(n.$$.fragment),u(t,"class","v-1ot3duq"),L(t,"mobile",i[1])},m(a,c){r&&r.m(a,c),C(a,e,c),C(a,t,c),n&&z(n,t,null),o=!0},p(a,c){if(a[1]?r||(r=Xs(),r.c(),r.m(e.parentNode,e)):r&&(r.d(1),r=null),c&64&&l!==(l=a[6])){if(n){pe();const f=n;p(f.$$.fragment,1,0,()=>{F(f,1)}),ve()}l?(n=Pn(l,s()),H(n.$$.fragment),h(n.$$.fragment,1),z(n,t,null)):n=null}(!o||c&2)&&L(t,"mobile",a[1])},i(a){o||(n&&h(n.$$.fragment,a),o=!0)},o(a){n&&p(n.$$.fragment,a),o=!1},d(a){a&&(y(e),y(t)),r&&r.d(a),n&&F(n)}}}function Wh(i){let e,t,n;function o(l){i[8](l)}let r={className:(i[1]?"btn-m--play":"")+" "+i[3],testId:"btn-play",click:i[4],disabled:i[2],ariaLabel:i[5],$$slots:{default:[Zh]},$$scope:{ctx:i}};return i[0]!==void 0&&(r.ref=i[0]),e=new ci({props:r}),Me.push(()=>Je(e,"ref",o)),{c(){H(e.$$.fragment)},m(l,s){z(e,l,s),n=!0},p(l,[s]){const a={};s&10&&(a.className=(l[1]?"btn-m--play":"")+" "+l[3]),s&16&&(a.click=l[4]),s&4&&(a.disabled=l[2]),s&32&&(a.ariaLabel=l[5]),s&578&&(a.$$scope={dirty:s,ctx:l}),!t&&s&1&&(t=!0,a.ref=l[0],Qe(()=>t=!1)),e.$set(a)},i(l){n||(h(e.$$.fragment,l),n=!0)},o(l){p(e.$$.fragment,l),n=!1},d(l){F(e,l)}}}function Gh(i,e,t){let n,{ref:o=void 0}=e,{isMobile:r=!1}=e,{isPlaying:l=!1}=e,{disabled:s=!1}=e,{className:a=""}=e,{click:c=ne.noop}=e,f;function d(g){o=g,t(0,o)}return i.$$set=g=>{"ref"in g&&t(0,o=g.ref),"isMobile"in g&&t(1,r=g.isMobile),"isPlaying"in g&&t(7,l=g.isPlaying),"disabled"in g&&t(2,s=g.disabled),"className"in g&&t(3,a=g.className),"click"in g&&t(4,c=g.click)},i.$$.update=()=>{i.$$.dirty&128&&t(5,f=re(l?"tooltip_pause":"tooltip_play")),i.$$.dirty&128&&t(6,n=l?sc:or)},[o,r,s,a,c,f,n,l,d]}class lr extends we{constructor(e){super(),ke(this,e,Gh,Wh,_e,{ref:0,isMobile:1,isPlaying:7,disabled:2,className:3,click:4},qh)}}function Kh(i){qe(i,"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 Yh(i){let e,t,n;return{c(){e=M("svg"),t=M("path"),u(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"),u(t,"fill","#fff"),u(e,"data-testid",n=i[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"),L(e,"prev",i[0]),L(e,"mobile",i[1])},m(o,r){C(o,e,r),m(e,t)},p(o,[r]){r&1&&n!==(n=o[0]?"prev-icon":"next-icon")&&u(e,"data-testid",n),r&1&&L(e,"prev",o[0]),r&2&&L(e,"mobile",o[1])},i:U,o:U,d(o){o&&y(e)}}}function Xh(i,e,t){let{isPrev:n=!1}=e,{isMobile:o=!1}=e;return i.$$set=r=>{"isPrev"in r&&t(0,n=r.isPrev),"isMobile"in r&&t(1,o=r.isMobile)},[n,o]}class Qh extends we{constructor(e){super(),ke(this,e,Xh,Yh,_e,{isPrev:0,isMobile:1},Kh)}}function Jh(i){let e,t;return e=new Qh({props:{isMobile:i[1],isPrev:i[3]==="prev"}}),{c(){H(e.$$.fragment)},m(n,o){z(e,n,o),t=!0},p(n,o){const r={};o&2&&(r.isMobile=n[1]),o&8&&(r.isPrev=n[3]==="prev"),e.$set(r)},i(n){t||(h(e.$$.fragment,n),t=!0)},o(n){p(e.$$.fragment,n),t=!1},d(n){F(e,n)}}}function xh(i){let e,t,n;function o(l){i[6](l)}let r={testId:"btn-"+i[3],disabled:i[2],ariaLabel:i[5],click:i[4],$$slots:{default:[Jh]},$$scope:{ctx:i}};return i[0]!==void 0&&(r.ref=i[0]),e=new ci({props:r}),Me.push(()=>Je(e,"ref",o)),{c(){H(e.$$.fragment)},m(l,s){z(e,l,s),n=!0},p(l,[s]){const a={};s&8&&(a.testId="btn-"+l[3]),s&4&&(a.disabled=l[2]),s&32&&(a.ariaLabel=l[5]),s&16&&(a.click=l[4]),s&138&&(a.$$scope={dirty:s,ctx:l}),!t&&s&1&&(t=!0,a.ref=l[0],Qe(()=>t=!1)),e.$set(a)},i(l){n||(h(e.$$.fragment,l),n=!0)},o(l){p(e.$$.fragment,l),n=!1},d(l){F(e,l)}}}function $h(i,e,t){let{ref:n=void 0}=e,{isMobile:o=!1}=e,{disabled:r=!1}=e,{type:l}=e,{click:s}=e,a;function c(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,r=f.disabled),"type"in f&&t(3,l=f.type),"click"in f&&t(4,s=f.click)},i.$$.update=()=>{i.$$.dirty&8&&t(5,a=re(l==="prev"?"tooltip_previous":"tooltip_next"))},[n,o,r,l,s,a,c]}class al extends we{constructor(e){super(),ke(this,e,$h,xh,_e,{ref:0,isMobile:1,disabled:2,type:3,click:4})}}function ep(i){let e,t;return{c(){e=M("svg"),t=M("path"),u(t,"fill-rule","evenodd"),u(t,"clip-rule","evenodd"),u(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.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(t,"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){C(n,e,o),m(e,t)},p:U,i:U,o:U,d(n){n&&y(e)}}}class tp extends we{constructor(e){super(),ke(this,e,null,ep,_e,{})}}function Qs(i){let e,t,n,o,r,l,s;return{c(){e=M("path"),t=M("path"),n=M("path"),o=M("path"),r=M("path"),l=M("path"),s=M("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(t,"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(t,"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(r,"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(r,"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(s,"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(s,"fill","white")},m(a,c){C(a,e,c),C(a,t,c),C(a,n,c),C(a,o,c),C(a,r,c),C(a,l,c),C(a,s,c)},d(a){a&&(y(e),y(t),y(n),y(o),y(r),y(l),y(s))}}}function ip(i){let e,t,n,o=!i[0]&&Qs();return{c(){e=M("svg"),t=M("path"),o&&o.c(),u(t,"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(t,"fill","white"),u(e,"width",i[1]),u(e,"height","20"),u(e,"viewBox",n="0 0 "+(i[1]+1)+" 20"),u(e,"fill","none"),u(e,"xmlns","http://www.w3.org/2000/svg"),u(e,"aria-hidden","true"),u(e,"data-testid",i[2])},m(r,l){C(r,e,l),m(e,t),o&&o.m(e,null)},p(r,[l]){r[0]?o&&(o.d(1),o=null):o||(o=Qs(),o.c(),o.m(e,null)),l&2&&u(e,"width",r[1]),l&2&&n!==(n="0 0 "+(r[1]+1)+" 20")&&u(e,"viewBox",n),l&4&&u(e,"data-testid",r[2])},i:U,o:U,d(r){r&&y(e),o&&o.d()}}}function np(i,e,t){let{short:n=!1}=e,o,r;return i.$$set=l=>{"short"in l&&t(0,n=l.short)},i.$$.update=()=>{i.$$.dirty&1&&(t(1,o=n?20:93),t(2,r=n?"vk-video-logo-icon--short":"vk-video-logo-icon"))},[n,o,r]}class op extends we{constructor(e){super(),ke(this,e,np,ip,_e,{short:0})}}function lp(i){let e,t;return e=new tp({}),{c(){H(e.$$.fragment)},m(n,o){z(e,n,o),t=!0},p:U,i(n){t||(h(e.$$.fragment,n),t=!0)},o(n){p(e.$$.fragment,n),t=!1},d(n){F(e,n)}}}function rp(i){let e,t;return e=new op({props:{short:i[4]}}),{c(){H(e.$$.fragment)},m(n,o){z(e,n,o),t=!0},p(n,o){const r={};o&16&&(r.short=n[4]),e.$set(r)},i(n){t||(h(e.$$.fragment,n),t=!0)},o(n){p(e.$$.fragment,n),t=!1},d(n){F(e,n)}}}function sp(i){let e,t,n,o;const r=[rp,lp],l=[];function s(a,c){return a[2]?0:1}return e=s(i),t=l[e]=r[e](i),{c(){t.c(),n=Et()},m(a,c){l[e].m(a,c),C(a,n,c),o=!0},p(a,c){let f=e;e=s(a),e===f?l[e].p(a,c):(pe(),p(l[f],1,1,()=>{l[f]=null}),ve(),t=l[e],t?t.p(a,c):(t=l[e]=r[e](a),t.c()),h(t,1),t.m(n.parentNode,n))},i(a){o||(h(t),o=!0)},o(a){p(t),o=!1},d(a){a&&y(n),l[e].d(a)}}}function ap(i){let e,t,n;function o(l){i[13](l)}let r={className:"btn-full-opacity",disabled:!i[1],click:i[8],testId:i[2]?"btn-vk-video-logo":"btn-vk-logo",ariaLabel:i[3],$$slots:{default:[sp]},$$scope:{ctx:i}};return i[0]!==void 0&&(r.ref=i[0]),e=new ci({props:r}),Me.push(()=>Je(e,"ref",o)),{c(){H(e.$$.fragment)},m(l,s){z(e,l,s),n=!0},p(l,[s]){const a={};s&2&&(a.disabled=!l[1]),s&4&&(a.testId=l[2]?"btn-vk-video-logo":"btn-vk-logo"),s&8&&(a.ariaLabel=l[3]),s&524308&&(a.$$scope={dirty:s,ctx:l}),!t&&s&1&&(t=!0,a.ref=l[0],Qe(()=>t=!1)),e.$set(a)},i(l){n||(h(e.$$.fragment,l),n=!0)},o(l){p(e.$$.fragment,l),n=!1},d(l){F(e,l)}}}function up(i,e,t){let n,o,r,{ref:l=void 0}=e,{logoClickable:s=!1}=e,{videoLogoUrl:a=void 0}=e,{click:c}=e;const f=$i(),{logoLink:d,addTimeToLogoLink:g}=f,v=Nt(),b=v.state.positionWithScrubbing$;W(i,b,O=>t(14,n=O));const S=v.ui.currentGridType$;W(i,S,O=>t(11,o=O));const _=v.ui.isMobile;W(i,_,O=>t(12,r=O));let A,E,V;const B=()=>{let O;if(E||!a)O=d;else{const q=Math.round(n);if(g&&q){const D=new URL(a);D.searchParams.append("t",ne.timeCodeToString(q)),O=D.toString()}else O=a}c(),window.open(O,"_blank")};function le(O){l=O,t(0,l)}return i.$$set=O=>{"ref"in O&&t(0,l=O.ref),"logoClickable"in O&&t(1,s=O.logoClickable),"videoLogoUrl"in O&&t(9,a=O.videoLogoUrl),"click"in O&&t(10,c=O.click)},i.$$.update=()=>{i.$$.dirty&6148&&t(4,V=(r||lc(o,exports.GridTypes.L))&&E)},t(3,A=f.logoType===co.VK_VIDEO?re("tooltip_vk_video_logo"):re("tooltip_vk_logo")),t(2,E=f.logoType===co.VK_VIDEO),[l,s,E,A,V,b,S,_,B,a,c,o,r,le]}class ac extends we{constructor(e){super(),ke(this,e,up,ap,_e,{ref:0,logoClickable:1,videoLogoUrl:9,click:10})}}function cp(i){qe(i,"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 fp(i){let e,t,n,o,r,l,s,a;return{c(){e=M("svg"),t=M("g"),n=M("path"),o=M("path"),r=M("path"),l=M("path"),s=M("path"),a=M("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(r,"class","wave wave3 v-8z1bf5"),u(r,"d","M1 10v2a9 9 0 0 1 9 9h2c0-6.08-4.93-11-11-11z"),u(r,"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(s,"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"),L(a,"hidden",!i[1]),u(t,"fill","none"),u(t,"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"),L(e,"connecting",i[2])},m(c,f){C(c,e,f),m(e,t),m(t,n),m(t,o),m(t,r),m(t,l),m(t,s),m(t,a)},p(c,f){f&2&&L(a,"hidden",!c[1]),f&4&&L(e,"connecting",c[2])},d(c){c&&y(e)}}}function dp(i){let e,t,n,o,r,l,s,a,c,f,d,g,v,b,S,_,A,E,V,B,le;return{c(){e=M("svg"),t=M("g"),n=M("mask"),o=M("path"),l=M("path"),s=M("path"),c=M("path"),f=M("defs"),d=M("clipPath"),g=M("path"),b=M("filter"),S=M("feFlood"),_=M("feColorMatrix"),A=M("feOffset"),E=M("feGaussianBlur"),V=M("feColorMatrix"),B=M("feBlend"),le=M("feBlend"),u(o,"fill",r=i[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(s,"fill-rule","evenodd"),u(s,"clip-rule","evenodd"),u(s,"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(s,"fill",a=i[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(t,"filter","url(#b)"),u(t,"clip-path","url(#a)"),u(g,"fill",v=i[1]?"#2688EB":"#fff"),u(g,"d","M0 0h24v24H0z"),u(d,"id","a"),u(S,"flood-opacity","0"),u(S,"result","BackgroundImageFix"),u(_,"in","SourceAlpha"),u(_,"values","0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0"),u(_,"result","hardAlpha"),u(E,"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(B,"in2","BackgroundImageFix"),u(B,"result","effect1_dropShadow_4085_178456"),u(le,"in","SourceGraphic"),u(le,"in2","effect1_dropShadow_4085_178456"),u(le,"result","shape"),u(b,"id","b"),u(b,"x","-3.4"),u(b,"y","-1.4"),u(b,"width","30.8"),u(b,"height","26.802"),u(b,"filterUnits","userSpaceOnUse"),u(b,"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(O,q){C(O,e,q),m(e,t),m(t,n),m(n,o),m(n,l),m(t,s),m(t,c),m(e,f),m(f,d),m(d,g),m(f,b),m(b,S),m(b,_),m(b,A),m(b,E),m(b,V),m(b,B),m(b,le)},p(O,q){q&2&&r!==(r=O[1]?"#2688EB":"#fff")&&u(o,"fill",r),q&2&&a!==(a=O[1]?"#2688EB":"#fff")&&u(s,"fill",a),q&2&&v!==(v=O[1]?"#2688EB":"#fff")&&u(g,"fill",v)},d(O){O&&y(e)}}}function mp(i){let e;function t(r,l){return r[0]?dp:fp}let n=t(i),o=n(i);return{c(){o.c(),e=Et()},m(r,l){o.m(r,l),C(r,e,l)},p(r,[l]){n===(n=t(r))&&o?o.p(r,l):(o.d(1),o=n(r),o&&(o.c(),o.m(e.parentNode,e)))},i:U,o:U,d(r){r&&y(e),o.d(r)}}}function hp(i,e,t){let{isMobile:n=!1}=e,{state:o}=e,r,l;return i.$$set=s=>{"isMobile"in s&&t(0,n=s.isMobile),"state"in s&&t(3,o=s.state)},i.$$.update=()=>{i.$$.dirty&8&&(t(2,l=o===ct.ChromecastState.CONNECTING),t(1,r=o===ct.ChromecastState.CONNECTED))},[n,r,l,o]}class pp extends we{constructor(e){super(),ke(this,e,hp,mp,_e,{isMobile:0,state:3},cp)}}function vp(i){let e,t;return e=new pp({props:{isMobile:i[1],state:i[2]}}),{c(){H(e.$$.fragment)},m(n,o){z(e,n,o),t=!0},p(n,o){const r={};o&2&&(r.isMobile=n[1]),o&4&&(r.state=n[2]),e.$set(r)},i(n){t||(h(e.$$.fragment,n),t=!0)},o(n){p(e.$$.fragment,n),t=!1},d(n){F(e,n)}}}function gp(i){let e,t,n;function o(l){i[5](l)}let r={ariaLabel:i[4],click:i[3],testId:"btn-chromecast",$$slots:{default:[vp]},$$scope:{ctx:i}};return i[0]!==void 0&&(r.ref=i[0]),e=new ci({props:r}),Me.push(()=>Je(e,"ref",o)),{c(){H(e.$$.fragment)},m(l,s){z(e,l,s),n=!0},p(l,[s]){const a={};s&16&&(a.ariaLabel=l[4]),s&8&&(a.click=l[3]),s&70&&(a.$$scope={dirty:s,ctx:l}),!t&&s&1&&(t=!0,a.ref=l[0],Qe(()=>t=!1)),e.$set(a)},i(l){n||(h(e.$$.fragment,l),n=!0)},o(l){p(e.$$.fragment,l),n=!1},d(l){F(e,l)}}}function bp(i,e,t){let{ref:n=void 0}=e,{isMobile:o=!1}=e,{state:r}=e,{click:l=ne.noop}=e,s;function a(c){n=c,t(0,n)}return i.$$set=c=>{"ref"in c&&t(0,n=c.ref),"isMobile"in c&&t(1,o=c.isMobile),"state"in c&&t(2,r=c.state),"click"in c&&t(3,l=c.click)},i.$$.update=()=>{i.$$.dirty&4&&t(4,s=r===ct.ChromecastState.CONNECTED?re("tooltip_chromecast_on"):re("tooltip_chromecast_off"))},[n,o,r,l,s,a]}class uc extends we{constructor(e){super(),ke(this,e,bp,gp,_e,{ref:0,isMobile:1,state:2,click:3})}}function _p(i){let e,t;return e=new Zu({props:{isActive:i[1]}}),{c(){H(e.$$.fragment)},m(n,o){z(e,n,o),t=!0},p(n,o){const r={};o&2&&(r.isActive=n[1]),e.$set(r)},i(n){t||(h(e.$$.fragment,n),t=!0)},o(n){p(e.$$.fragment,n),t=!1},d(n){F(e,n)}}}function kp(i){let e,t;return e=new ci({props:{className:i[0]?"":"btn--live btn-full-opacity",testId:i[1]?"btn-live":"btn-live-offset",disabled:i[1],ariaLabel:i[3],click:i[2],$$slots:{default:[_p]},$$scope:{ctx:i}}}),{c(){H(e.$$.fragment)},m(n,o){z(e,n,o),t=!0},p(n,[o]){const r={};o&1&&(r.className=n[0]?"":"btn--live btn-full-opacity"),o&2&&(r.testId=n[1]?"btn-live":"btn-live-offset"),o&2&&(r.disabled=n[1]),o&8&&(r.ariaLabel=n[3]),o&4&&(r.click=n[2]),o&18&&(r.$$scope={dirty:o,ctx:n}),e.$set(r)},i(n){t||(h(e.$$.fragment,n),t=!0)},o(n){p(e.$$.fragment,n),t=!1},d(n){F(e,n)}}}function wp(i,e,t){let{isMobile:n=!1}=e,{isActiveLive:o=!1}=e,{click:r}=e,l;return i.$$set=s=>{"isMobile"in s&&t(0,n=s.isMobile),"isActiveLive"in s&&t(1,o=s.isActiveLive),"click"in s&&t(2,r=s.click)},i.$$.update=()=>{i.$$.dirty&2&&t(3,l=o?"":re("tooltip_live"))},[n,o,r,l]}class cc extends we{constructor(e){super(),ke(this,e,wp,kp,_e,{isMobile:0,isActiveLive:1,click:2})}}function yp(i){qe(i,"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 Cp(i){let e,t,n,o;const r=i[9].default,l=Bn(r,i,i[8],null);return{c(){e=w("div"),t=w("div"),l&&l.c(),u(t,"class","tooltip v-5ygsa2"),L(t,"active",i[0]),L(t,"pointer",i[1]),u(e,"class","tooltip-wrapper v-5ygsa2"),u(e,"style",n=`transform: translate(${i[5]}px, ${i[2]}px);`)},m(s,a){C(s,e,a),m(e,t),l&&l.m(t,null),i[10](t),i[11](e),o=!0},p(s,[a]){l&&l.p&&(!o||a&256)&&Rn(l,r,s,s[8],o?Nn(r,s[8],a,null):On(s[8]),null),(!o||a&1)&&L(t,"active",s[0]),(!o||a&2)&&L(t,"pointer",s[1]),(!o||a&36&&n!==(n=`transform: translate(${s[5]}px, ${s[2]}px);`))&&u(e,"style",n)},i(s){o||(h(l,s),o=!0)},o(s){p(l,s),o=!1},d(s){s&&y(e),l&&l.d(s),i[10](null),i[11](null)}}}function Pp(i,e,t){let n,{$$slots:o={},$$scope:r}=e,{active:l=!1}=e,{pointer:s=!1}=e,{translateXPx:a=0}=e,{translateYPx:c=0}=e,{containerWidth:f}=e,d,g;function v(_){if(!g)return 0;const{width:A}=g.getBoundingClientRect(),E=A/2;return _<E?E:_>f-E?f-E:_}function b(_){Me[_?"unshift":"push"](()=>{g=_,t(4,g)})}function S(_){Me[_?"unshift":"push"](()=>{d=_,t(3,d)})}return i.$$set=_=>{"active"in _&&t(0,l=_.active),"pointer"in _&&t(1,s=_.pointer),"translateXPx"in _&&t(6,a=_.translateXPx),"translateYPx"in _&&t(2,c=_.translateYPx),"containerWidth"in _&&t(7,f=_.containerWidth),"$$scope"in _&&t(8,r=_.$$scope)},i.$$.update=()=>{i.$$.dirty&64&&t(5,n=v(a))},[l,s,c,d,g,n,a,f,r,o,b,S]}class Sp extends we{constructor(e){super(),ke(this,e,Pp,Cp,_e,{active:0,pointer:1,translateXPx:6,translateYPx:2,containerWidth:7},yp)}}const fc=(i,e,t)=>t.filter(n=>n.time<i*e).pop();function Tp(i){qe(i,"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 Js(i){let e;function t(r,l){return r[2]&&r[10].completed===!1?Ap:Ep}let n=t(i),o=n(i);return{c(){o.c(),e=Et()},m(r,l){o.m(r,l),C(r,e,l)},p(r,l){n===(n=t(r))&&o?o.p(r,l):(o.d(1),o=n(r),o&&(o.c(),o.m(e.parentNode,e)))},d(r){r&&y(e),o.d(r)}}}function Ep(i){let e=(i[10].text||"")+"",t;return{c(){t=je(e)},m(n,o){C(n,t,o)},p(n,o){o&1024&&e!==(e=(n[10].text||"")+"")&&it(t,e)},d(n){n&&y(t)}}}function Ap(i){let e=re("tooltip_episode_unfinished")+"",t;return{c(){t=je(e)},m(n,o){C(n,t,o)},p:U,d(n){n&&y(t)}}}function Ip(i){let e,t,n,o,r,l,s,a,c=i[10]&&Js(i);return{c(){e=w("div"),t=w("div"),o=R(),r=w("div"),c&&c.c(),l=R(),s=w("div"),a=je(i[0]),u(t,"class","preview v-l51fc1"),u(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);`),u(r,"class","episode v-l51fc1"),u(s,"class","time v-l51fc1"),u(e,"class","timeline-preview v-l51fc1"),L(e,"mobile",i[1])},m(f,d){C(f,e,d),m(e,t),m(e,o),m(e,r),c&&c.m(r,null),m(e,l),m(e,s),m(s,a)},p(f,[d]){d&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(t,"style",n),f[10]?c?c.p(f,d):(c=Js(f),c.c(),c.m(r,null)):c&&(c.d(1),c=null),d&1&&it(a,f[0]),d&2&&L(e,"mobile",f[1])},i:U,o:U,d(f){f&&y(e),c&&c.d()}}}const io=150;function Lp(i,e,t){let n,{time:o=""}=e,{isMobile:r=!1}=e,{videoEpisodes:l=[]}=e,{previewThumbsData:s}=e,{progress:a=0}=e,{duration:c=0}=e,{isInteractive:f=!1}=e;const g=Nt().ui.rotateAlpha;W(i,g,q=>t(11,n=q));let v,b,S,_,A,E,V,B;function le(){let q=s.frameWidth,D=s.frameHeight;return q>io?(D=D/q*io,q=io):D>io&&(q=q/D*io,D=io),{width:q,height:D}}function O(q){let D;s.isUV?D=Math.floor(c*q/s.frequency):D=Math.min(s.countTotal,Math.max(0,Math.floor(s.countTotal*q)));const me=Math.floor(D/s.countPerImage),ue=Math.floor(D%s.countPerImage/s.countPerRow),Z=D%s.countPerRow;let fe=Math.floor(s.countPerImage/s.countPerRow);!s.isUV&&me===Math.floor(s.countTotal/s.countPerImage)&&(fe=Math.floor(s.countTotal%s.countPerImage/s.countPerRow),s.countTotal%s.countPerImage%s.countPerRow>0&&fe++);let J=s.countPerRow;!s.isUV&&me===Math.floor(s.countTotal/s.countPerImage)&&s.countTotal%s.countPerImage>0&&(J=Math.min(s.countPerRow,s.countTotal%s.countPerImage));const T=v*J,I=b*fe,se=-Z*v,G=-ue*b;return{imgSrc:s.links[me],imgWidth:T,imgHeight:I,imgOffsetX:se,imgOffsetY:G}}return i.$$set=q=>{"time"in q&&t(0,o=q.time),"isMobile"in q&&t(1,r=q.isMobile),"videoEpisodes"in q&&t(13,l=q.videoEpisodes),"previewThumbsData"in q&&t(14,s=q.previewThumbsData),"progress"in q&&t(15,a=q.progress),"duration"in q&&t(16,c=q.duration),"isInteractive"in q&&t(2,f=q.isInteractive)},i.$$.update=()=>{i.$$.dirty&32768&&t(5,{imgSrc:S,imgWidth:_,imgHeight:A,imgOffsetX:E,imgOffsetY:V}=O(a),S,(t(6,_),t(15,a)),(t(7,A),t(15,a)),(t(8,E),t(15,a)),(t(9,V),t(15,a))),i.$$.dirty&106496&&t(10,B=fc(a,c,l))},t(3,{width:v,height:b}=le(),v,t(4,b)),[o,r,f,v,b,S,_,A,E,V,B,n,g,l,s,a,c]}class Vp extends we{constructor(e){super(),ke(this,e,Lp,Ip,_e,{time:0,isMobile:1,videoEpisodes:13,previewThumbsData:14,progress:15,duration:16,isInteractive:2},Tp)}}function Mp(i){qe(i,"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 Bp(i){let e,t;return{c(){e=w("span"),t=je(i[7]),u(e,"class","time v-5lzly8")},m(n,o){C(n,e,o),m(e,t)},p(n,o){o[0]&128&&it(t,n[7])},i:U,o:U,d(n){n&&y(e)}}}function Np(i){let e,t;return e=new Vp({props:{time:i[7],isMobile:i[10],videoEpisodes:i[3],previewThumbsData:i[21],progress:i[8],duration:i[1],isInteractive:i[23]}}),{c(){H(e.$$.fragment)},m(n,o){z(e,n,o),t=!0},p(n,o){const r={};o[0]&128&&(r.time=n[7]),o[0]&1024&&(r.isMobile=n[10]),o[0]&8&&(r.videoEpisodes=n[3]),o[0]&256&&(r.progress=n[8]),o[0]&2&&(r.duration=n[1]),e.$set(r)},i(n){t||(h(e.$$.fragment,n),t=!0)},o(n){p(e.$$.fragment,n),t=!1},d(n){F(e,n)}}}function Rp(i){let e,t,n,o;const r=[Np,Bp],l=[];function s(a,c){return a[14].features.timelinePreview&&a[21]&&!a[0]?0:1}return e=s(i),t=l[e]=r[e](i),{c(){t.c(),n=Et()},m(a,c){l[e].m(a,c),C(a,n,c),o=!0},p(a,c){let f=e;e=s(a),e===f?l[e].p(a,c):(pe(),p(l[f],1,1,()=>{l[f]=null}),ve(),t=l[e],t?t.p(a,c):(t=l[e]=r[e](a),t.c()),h(t,1),t.m(n.parentNode,n))},i(a){o||(h(t),o=!0)},o(a){p(t),o=!1},d(a){a&&y(n),l[e].d(a)}}}function Op(i){let e,t,n,o;const r=[i[9]];let l={$$slots:{default:[Rp]},$$scope:{ctx:i}};for(let s=0;s<r.length;s+=1)l=z1(l,r[s]);return e=new Sp({props:l}),n=new nr({props:{isActiveLive:i[11],isMobile:i[10],ariaLabel:re("aria_timeline"),ariaValueMin:0,ariaValueMax:i[1],ariaValueNow:Math.round(i[6]*100),ariaValueText:re("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(_t.TIMELINE),hideHandel:i[2]}}),{c(){H(e.$$.fragment),t=R(),H(n.$$.fragment)},m(s,a){z(e,s,a),C(s,t,a),z(n,s,a),o=!0},p(s,a){const c=a[0]&512?yf(r,[Cf(s[9])]):{};a[0]&1419|a[1]&65536&&(c.$$scope={dirty:a,ctx:s}),e.$set(c);const f={};a[0]&2048&&(f.isActiveLive=s[11]),a[0]&1024&&(f.isMobile=s[10]),a[0]&2&&(f.ariaValueMax=s[1]),a[0]&64&&(f.ariaValueNow=Math.round(s[6]*100)),a[0]&48&&(f.ariaValueText=re("aria_timeline_value",{position:s[5],duration:s[4]})),a[0]&4096&&(f.loadedProgress=s[12]),a[0]&64&&(f.filledProgress=s[6]),a[0]&64&&(f.handleProgress=s[6]),a[0]&8&&(f.videoEpisodes=s[3]),a[0]&8192&&(f.disabled=s[13].has(_t.TIMELINE)),a[0]&4&&(f.hideHandel=s[2]),n.$set(f)},i(s){o||(h(e.$$.fragment,s),h(n.$$.fragment,s),o=!0)},o(s){p(e.$$.fragment,s),p(n.$$.fragment,s),o=!1},d(s){s&&y(t),F(e,s),F(n,s)}}}function Dp(i,e,t){let n,o,r,l,s,a,c,f,d,g,v,{showTimeline:b=!1}=e;const S=Nt(),_=$i(),A=S.state.bufferedProgress$;W(i,A,X=>t(12,g=X));const E=S.state.positionWithScrubbing$;W(i,E,X=>t(39,a=X));const V=S.state.duration$;W(i,V,X=>t(1,r=X));const B=S.state.isLive$;W(i,B,X=>t(0,o=X));const le=S.state.isActiveLive$;W(i,le,X=>t(11,d=X));const O=S.ui.isMobile;W(i,O,X=>t(10,f=X));const q=_.features.episodes?S.actions.internal.getVideoEpisodes():void 0,D=S.actions.internal.getPreviewThumbsData(),me=S.state.interactiveEpisodes$;W(i,me,X=>t(40,c=X));const ue=S.state.isInteractive,Z=S.state.isInteractiveTime$;W(i,Z,X=>t(2,l=X));const fe=S.state.isInteractiveExpectation$;W(i,fe,X=>t(38,s=X));const J=S.actions.internal.correctSeekTimeToInteractive,T=S.ui.controls.disabledControls$;W(i,T,X=>t(13,v=X));let I,se,G,ye,ae=!1,Y="",oe=0,Ne=0,N=0,ce;function k(X){return!J||!ue?X:J(X*r)/r}function $(X){S.actions.internal.startScrubbing(k(X))}function Fe(X){l||S.actions.internal.progressScrubbing(k(X))}function Te(X){S.actions.internal.completeScrubbing(k(X)),t(34,ae=!1)}function Ve(X,j,He){Ee(X,j,He),t(34,ae=!0)}function Ae(X,j,He){Ee(X,j,He),t(34,ae=!0)}function be(){t(34,ae=!1)}function Ee(X,j,He){t(8,N=X),t(35,oe=j),He&&t(36,Ne=He),t(7,Y=Pe(X))}function Pe(X){const j=Cn((o?1-X:X)*r);return o?`-${j}`:j}return i.$$set=X=>{"showTimeline"in X&&t(33,b=X.showTimeline)},i.$$.update=()=>{i.$$.dirty[1]&512&&t(3,I=ue?c:q),i.$$.dirty[0]&2&&t(4,se=Cn(r)),i.$$.dirty[1]&256&&t(5,G=Cn(a)),i.$$.dirty[0]&2|i.$$.dirty[1]&256&&t(6,ye=a/r),i.$$.dirty[0]&4|i.$$.dirty[1]&128&&t(37,ce=s||l),i.$$.dirty[0]&1|i.$$.dirty[1]&124&&t(9,n={containerWidth:Ne,translateXPx:oe,translateYPx:ue&&D?-36:-16,active:ae&&b&&!ce,pointer:!_.features.timelinePreview||!D||o})},[o,r,l,I,se,G,ye,Y,N,n,f,d,g,v,_,A,E,V,B,le,O,D,me,ue,Z,fe,T,$,Fe,Te,Ve,Ae,be,b,ae,oe,Ne,ce,s,a,c]}let zp=class extends we{constructor(e){super(),ke(this,e,Dp,Op,_e,{showTimeline:33},Mp,[-1,-1])}};function Fp(i){let e,t;return e=new nr({props:{ariaValueMin:0,ariaValueMax:i[0],ariaValueNow:Math.round(i[3]*100),ariaValueText:re("aria_timeline_value",{position:i[2],duration:i[1]}),filledProgress:i[3],isAds:!0,hideHandel:!0,squareBorders:i[4]}}),{c(){H(e.$$.fragment)},m(n,o){z(e,n,o),t=!0},p(n,[o]){const r={};o&1&&(r.ariaValueMax=n[0]),o&8&&(r.ariaValueNow=Math.round(n[3]*100)),o&6&&(r.ariaValueText=re("aria_timeline_value",{position:n[2],duration:n[1]})),o&8&&(r.filledProgress=n[3]),o&16&&(r.squareBorders=n[4]),e.$set(r)},i(n){t||(h(e.$$.fragment,n),t=!0)},o(n){p(e.$$.fragment,n),t=!1},d(n){F(e,n)}}}function Hp(i,e,t){let n,{position:o=0}=e,{duration:r=0}=e;const s=Nt().ui.isMobile;W(i,s,d=>t(4,n=d));let a,c,f;return i.$$set=d=>{"position"in d&&t(6,o=d.position),"duration"in d&&t(0,r=d.duration)},i.$$.update=()=>{i.$$.dirty&1&&t(1,a=Cn(r)),i.$$.dirty&64&&t(2,c=Cn(o)),i.$$.dirty&65&&t(3,f=o/r)},[r,a,c,f,n,s,o]}class dc extends we{constructor(e){super(),ke(this,e,Hp,Fp,_e,{position:6,duration:0})}}function Up(i){qe(i,"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 jp(i){let e;return{c(){e=w("div"),u(e,"class","timeline-stub v-1gqonyf"),L(e,"mobile",i[2])},m(t,n){C(t,e,n)},p(t,n){n&4&&L(e,"mobile",t[2])},i:U,o:U,d(t){t&&y(e)}}}function qp(i){let e,t,n,o;const r=[Wp,Zp],l=[];function s(a,c){return a[0]?0:1}return t=s(i),n=l[t]=r[t](i),{c(){e=w("div"),n.c(),u(e,"class","timeline v-1gqonyf"),L(e,"mobile",i[2])},m(a,c){C(a,e,c),l[t].m(e,null),o=!0},p(a,c){let f=t;t=s(a),t===f?l[t].p(a,c):(pe(),p(l[f],1,1,()=>{l[f]=null}),ve(),n=l[t],n?n.p(a,c):(n=l[t]=r[t](a),n.c()),h(n,1),n.m(e,null)),(!o||c&4)&&L(e,"mobile",a[2])},i(a){o||(h(n),o=!0)},o(a){p(n),o=!1},d(a){a&&y(e),l[t].d()}}}function Zp(i){let e,t;return e=new zp({props:{showTimeline:i[1]}}),{c(){H(e.$$.fragment)},m(n,o){z(e,n,o),t=!0},p(n,o){const r={};o&2&&(r.showTimeline=n[1]),e.$set(r)},i(n){t||(h(e.$$.fragment,n),t=!0)},o(n){p(e.$$.fragment,n),t=!1},d(n){F(e,n)}}}function Wp(i){let e,t;return e=new dc({props:{position:i[3],duration:i[4]}}),{c(){H(e.$$.fragment)},m(n,o){z(e,n,o),t=!0},p(n,o){const r={};o&8&&(r.position=n[3]),o&16&&(r.duration=n[4]),e.$set(r)},i(n){t||(h(e.$$.fragment,n),t=!0)},o(n){p(e.$$.fragment,n),t=!1},d(n){F(e,n)}}}function Gp(i){let e,t,n,o;const r=[qp,jp],l=[];function s(a,c){return a[1]?0:1}return e=s(i),t=l[e]=r[e](i),{c(){t.c(),n=Et()},m(a,c){l[e].m(a,c),C(a,n,c),o=!0},p(a,[c]){let f=e;e=s(a),e===f?l[e].p(a,c):(pe(),p(l[f],1,1,()=>{l[f]=null}),ve(),t=l[e],t?t.p(a,c):(t=l[e]=r[e](a),t.c()),h(t,1),t.m(n.parentNode,n))},i(a){o||(h(t),o=!0)},o(a){p(t),o=!1},d(a){a&&y(n),l[e].d(a)}}}function Kp(i,e,t){let n,o,r,l,{isAds:s=!1}=e,{canRewindLive:a}=e,{isRewindableLive:c}=e,{isHidden:f=!1}=e;const d=Nt(),g=d.state.isLive$;W(i,g,A=>t(12,n=A));const v=d.ads.duration;W(i,v,A=>t(4,l=A));const b=d.ads.position;W(i,b,A=>t(3,r=A));const S=d.ui.isMobile;W(i,S,A=>t(2,o=A));let _;return i.$$set=A=>{"isAds"in A&&t(0,s=A.isAds),"canRewindLive"in A&&t(9,a=A.canRewindLive),"isRewindableLive"in A&&t(10,c=A.isRewindableLive),"isHidden"in A&&t(11,f=A.isHidden)},i.$$.update=()=>{i.$$.dirty&7681&&t(1,_=!f&&(!n||n&&a&&c||s))},[s,_,o,r,l,g,v,b,S,a,c,f,n]}class mc extends we{constructor(e){super(),ke(this,e,Kp,Gp,_e,{isAds:0,canRewindLive:9,isRewindableLive:10,isHidden:11},Up)}}function Yp(i){let e,t,n,o;return{c(){e=M("svg"),t=M("path"),n=M("path"),o=M("path"),u(t,"fill-rule","evenodd"),u(t,"clip-rule","evenodd"),u(t,"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(t,"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"),Ht(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(r,l){C(r,e,l),m(e,t),m(e,n),m(e,o)},p:U,i:U,o:U,d(r){r&&y(e)}}}class Xp extends we{constructor(e){super(),ke(this,e,null,Yp,_e,{})}}function Qp(i){let e,t;return{c(){e=M("svg"),t=M("path"),u(t,"opacity",".7"),u(t,"fill-rule","evenodd"),u(t,"clip-rule","evenodd"),u(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-.708Z"),u(t,"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){C(n,e,o),m(e,t)},p:U,i:U,o:U,d(n){n&&y(e)}}}class Jp extends we{constructor(e){super(),ke(this,e,null,Qp,_e,{})}}function xp(i){qe(i,"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 $p(i){let e,t,n,o;e=new Xp({});function r(a,c){if(a[2]===qn.FULL)return iv;if(a[2]===qn.COUNT)return tv}let l=r(i),s=l&&l(i);return{c(){H(e.$$.fragment),t=R(),s&&s.c(),n=Et()},m(a,c){z(e,a,c),C(a,t,c),s&&s.m(a,c),C(a,n,c),o=!0},p(a,c){l===(l=r(a))&&s?s.p(a,c):(s&&s.d(1),s=l&&l(a),s&&(s.c(),s.m(n.parentNode,n)))},i(a){o||(h(e.$$.fragment,a),o=!0)},o(a){p(e.$$.fragment,a),o=!1},d(a){a&&(y(t),y(n)),F(e,a),s&&s.d(a)}}}function ev(i){let e,t,n,o,r,l;return r=new Jp({}),{c(){e=w("span"),t=je(i[1]),n=R(),o=w("div"),H(r.$$.fragment),u(e,"class","text mobile v-1yhs2ga"),u(o,"class","chevron-episodes v-1yhs2ga")},m(s,a){C(s,e,a),m(e,t),C(s,n,a),C(s,o,a),z(r,o,null),l=!0},p(s,a){(!l||a&2)&&it(t,s[1])},i(s){l||(h(r.$$.fragment,s),l=!0)},o(s){p(r.$$.fragment,s),l=!1},d(s){s&&(y(e),y(n),y(o)),F(r)}}}function tv(i){let e,t=i[0].length+"",n;return{c(){e=w("span"),n=je(t),u(e,"class","text count v-1yhs2ga")},m(o,r){C(o,e,r),m(e,n)},p(o,r){r&1&&t!==(t=o[0].length+"")&&it(n,t)},d(o){o&&y(e)}}}function iv(i){let e,t;return{c(){e=w("span"),t=je(i[1]),u(e,"class","text v-1yhs2ga")},m(n,o){C(n,e,o),m(e,t)},p(n,o){o&2&&it(t,n[1])},d(n){n&&y(e)}}}function nv(i){let e,t,n,o;const r=[ev,$p],l=[];function s(a,c){return a[4]?0:1}return e=s(i),t=l[e]=r[e](i),{c(){t.c(),n=Et()},m(a,c){l[e].m(a,c),C(a,n,c),o=!0},p(a,c){let f=e;e=s(a),e===f?l[e].p(a,c):(pe(),p(l[f],1,1,()=>{l[f]=null}),ve(),t=l[e],t?t.p(a,c):(t=l[e]=r[e](a),t.c()),h(t,1),t.m(n.parentNode,n))},i(a){o||(h(t),o=!0)},o(a){p(t),o=!1},d(a){a&&y(n),l[e].d(a)}}}function ov(i){let e,t;return e=new ci({props:{className:"w-max btn-full-opacity "+(i[4]?"px-0":""),testId:"btn-episodes",click:i[5],disabled:!i[6],ariaLabel:i[3],$$slots:{default:[nv]},$$scope:{ctx:i}}}),{c(){H(e.$$.fragment)},m(n,o){z(e,n,o),t=!0},p(n,[o]){const r={};o&16&&(r.className="w-max btn-full-opacity "+(n[4]?"px-0":"")),o&8&&(r.ariaLabel=n[3]),o&65559&&(r.$$scope={dirty:o,ctx:n}),e.$set(r)},i(n){t||(h(e.$$.fragment,n),t=!0)},o(n){p(e.$$.fragment,n),t=!1},d(n){F(e,n)}}}function lv(i,e,t){var V,B,le,O,q;let n,o,r,l,{position:s=0}=e,{duration:a=0}=e,{timeCodes:c=[]}=e;const f=Nt(),d=(B=(V=f.callbacks)==null?void 0:V.onEpisodeChanged)!=null?B:ne.noop,g=(O=(le=f.callbacks)==null?void 0:le.onEpisodeClicked)!=null?O:ne.noop,v=!!((q=f.callbacks)!=null&&q.onEpisodeClicked),b=f.ui.currentGridType$;W(i,b,D=>t(13,r=D));const S=f.ui.isMobile;W(i,S,D=>t(4,l=D));let _,A,E;return i.$$set=D=>{"position"in D&&t(9,s=D.position),"duration"in D&&t(10,a=D.duration),"timeCodes"in D&&t(0,c=D.timeCodes)},i.$$.update=()=>{if(i.$$.dirty&1536&&t(12,n=s/a),i.$$.dirty&7169){const D=fc(n,a,c);D&&(_==null?void 0:_.text)!==D.text&&(d(D),t(11,_=D))}i.$$.dirty&2048&&t(1,o=(_==null?void 0:_.text)||""),i.$$.dirty&8192&&(mn(r,exports.GridTypes.XL)?t(2,A=qn.FULL):mn(r,exports.GridTypes.M)&&Sh(r,exports.GridTypes.XL)?t(2,A=qn.COUNT):t(2,A=qn.SHORT)),i.$$.dirty&2&&t(3,E=`${re("tooltip_episodes")}: ${o}`)},[c,o,A,E,l,g,v,b,S,s,a,_,n,r]}class hc extends we{constructor(e){super(),ke(this,e,lv,ov,_e,{position:9,duration:10,timeCodes:0},xp)}}function rv(i){let e,t,n;return{c(){e=M("svg"),t=M("path"),n=M("path"),u(t,"fill-rule","evenodd"),u(t,"clip-rule","evenodd"),u(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-.238Z"),u(t,"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,r){C(o,e,r),m(e,t),m(e,n)},p:U,i:U,o:U,d(o){o&&y(e)}}}class sv extends we{constructor(e){super(),ke(this,e,null,rv,_e,{})}}function av(i){let e,t;return e=new sv({}),{c(){H(e.$$.fragment)},m(n,o){z(e,n,o),t=!0},i(n){t||(h(e.$$.fragment,n),t=!0)},o(n){p(e.$$.fragment,n),t=!1},d(n){F(e,n)}}}function uv(i){let e,t,n;function o(l){i[4](l)}let r={className:i[1]?"hidden":"",testId:"btn-seek-to-interactive",ariaLabel:re("tooltip_interactive_seek"),disabled:i[2],click:i[3],$$slots:{default:[av]},$$scope:{ctx:i}};return i[0]!==void 0&&(r.ref=i[0]),e=new ci({props:r}),Me.push(()=>Je(e,"ref",o)),{c(){H(e.$$.fragment)},m(l,s){z(e,l,s),n=!0},p(l,[s]){const a={};s&2&&(a.className=l[1]?"hidden":""),s&4&&(a.disabled=l[2]),s&8&&(a.click=l[3]),s&32&&(a.$$scope={dirty:s,ctx:l}),!t&&s&1&&(t=!0,a.ref=l[0],Qe(()=>t=!1)),e.$set(a)},i(l){n||(h(e.$$.fragment,l),n=!0)},o(l){p(e.$$.fragment,l),n=!1},d(l){F(e,l)}}}function cv(i,e,t){let{ref:n=void 0}=e,{hidden:o=!1}=e,{disabled:r=!1}=e,{click:l}=e;function s(a){n=a,t(0,n)}return i.$$set=a=>{"ref"in a&&t(0,n=a.ref),"hidden"in a&&t(1,o=a.hidden),"disabled"in a&&t(2,r=a.disabled),"click"in a&&t(3,l=a.click)},[n,o,r,l,s]}class pc extends we{constructor(e){super(),ke(this,e,cv,uv,_e,{ref:0,hidden:1,disabled:2,click:3})}}function fv(i){let e,t,n;return{c(){e=M("svg"),t=M("path"),n=M("path"),u(t,"fill-rule","evenodd"),u(t,"clip-rule","evenodd"),u(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.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(t,"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"),L(n,"hidden",!i[0]),u(e,"width","24"),u(e,"height","24"),u(e,"fill","none"),u(e,"xmlns","http://www.w3.org/2000/svg")},m(o,r){C(o,e,r),m(e,t),m(e,n)},p(o,[r]){r&1&&L(n,"hidden",!o[0])},i:U,o:U,d(o){o&&y(e)}}}function dv(i,e,t){let{isOpened:n=!1}=e;return i.$$set=o=>{"isOpened"in o&&t(0,n=o.isOpened)},[n]}class mv extends we{constructor(e){super(),ke(this,e,dv,fv,_e,{isOpened:0})}}function hv(i){let e,t;return e=new mv({props:{isOpened:i[3]}}),{c(){H(e.$$.fragment)},m(n,o){z(e,n,o),t=!0},p(n,o){const r={};o&8&&(r.isOpened=n[3]),e.$set(r)},i(n){t||(h(e.$$.fragment,n),t=!0)},o(n){p(e.$$.fragment,n),t=!1},d(n){F(e,n)}}}function pv(i){let e,t,n;function o(l){i[6](l)}let r={className:i[1]?"hidden":"",testId:"btn-graph",disabled:i[2],ariaLabel:i[5],click:i[4],$$slots:{default:[hv]},$$scope:{ctx:i}};return i[0]!==void 0&&(r.ref=i[0]),e=new ci({props:r}),Me.push(()=>Je(e,"ref",o)),{c(){H(e.$$.fragment)},m(l,s){z(e,l,s),n=!0},p(l,[s]){const a={};s&2&&(a.className=l[1]?"hidden":""),s&4&&(a.disabled=l[2]),s&32&&(a.ariaLabel=l[5]),s&16&&(a.click=l[4]),s&136&&(a.$$scope={dirty:s,ctx:l}),!t&&s&1&&(t=!0,a.ref=l[0],Qe(()=>t=!1)),e.$set(a)},i(l){n||(h(e.$$.fragment,l),n=!0)},o(l){p(e.$$.fragment,l),n=!1},d(l){F(e,l)}}}function vv(i,e,t){let{ref:n=void 0}=e,{hidden:o=!1}=e,{disabled:r=!1}=e,{graphIsOpened:l=!1}=e,{click:s}=e,a;function c(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,r=f.disabled),"graphIsOpened"in f&&t(3,l=f.graphIsOpened),"click"in f&&t(4,s=f.click)},i.$$.update=()=>{i.$$.dirty&8&&t(5,a=re(l?"tooltip_interactive_graph_on":"tooltip_interactive_graph_off"))},[n,o,r,l,s,a,c]}class vc extends we{constructor(e){super(),ke(this,e,vv,pv,_e,{ref:0,hidden:1,disabled:2,graphIsOpened:3,click:4})}}function gv(i){let e,t;return{c(){e=M("svg"),t=M("path"),u(t,"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(t,"fill","#fff"),u(e,"width","24"),u(e,"height","24"),u(e,"fill","none"),u(e,"xmlns","http://www.w3.org/2000/svg")},m(n,o){C(n,e,o),m(e,t)},p:U,i:U,o:U,d(n){n&&y(e)}}}class bv extends we{constructor(e){super(),ke(this,e,null,gv,_e,{})}}function _v(i){qe(i,"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 xs(i){let e;return{c(){e=w("div"),u(e,"class","icon-background-mobile v-1ot3duq")},m(t,n){C(t,e,n)},d(t){t&&y(e)}}}function kv(i){let e,t,n,o,r=i[1]&&xs();return n=new bv({}),{c(){r&&r.c(),e=R(),t=w("div"),H(n.$$.fragment),u(t,"class","v-1ot3duq"),L(t,"mobile",i[1])},m(l,s){r&&r.m(l,s),C(l,e,s),C(l,t,s),z(n,t,null),o=!0},p(l,s){l[1]?r||(r=xs(),r.c(),r.m(e.parentNode,e)):r&&(r.d(1),r=null),(!o||s&2)&&L(t,"mobile",l[1])},i(l){o||(h(n.$$.fragment,l),o=!0)},o(l){p(n.$$.fragment,l),o=!1},d(l){l&&(y(e),y(t)),r&&r.d(l),F(n)}}}function wv(i){let e,t,n;function o(l){i[5](l)}let r={className:(i[1]?"btn-m--play":"")+" "+i[3],testId:"btn-replay",ariaLabel:re("tooltip_restart"),disabled:i[2],click:i[4],$$slots:{default:[kv]},$$scope:{ctx:i}};return i[0]!==void 0&&(r.ref=i[0]),e=new ci({props:r}),Me.push(()=>Je(e,"ref",o)),{c(){H(e.$$.fragment)},m(l,s){z(e,l,s),n=!0},p(l,[s]){const a={};s&10&&(a.className=(l[1]?"btn-m--play":"")+" "+l[3]),s&4&&(a.disabled=l[2]),s&16&&(a.click=l[4]),s&66&&(a.$$scope={dirty:s,ctx:l}),!t&&s&1&&(t=!0,a.ref=l[0],Qe(()=>t=!1)),e.$set(a)},i(l){n||(h(e.$$.fragment,l),n=!0)},o(l){p(e.$$.fragment,l),n=!1},d(l){F(e,l)}}}function yv(i,e,t){let{ref:n=void 0}=e,{isMobile:o=!1}=e,{disabled:r=!1}=e,{className:l=""}=e,{click:s=ne.noop}=e;function a(c){n=c,t(0,n)}return i.$$set=c=>{"ref"in c&&t(0,n=c.ref),"isMobile"in c&&t(1,o=c.isMobile),"disabled"in c&&t(2,r=c.disabled),"className"in c&&t(3,l=c.className),"click"in c&&t(4,s=c.click)},[n,o,r,l,s,a]}class rr extends we{constructor(e){super(),ke(this,e,yv,wv,_e,{ref:0,isMobile:1,disabled:2,className:3,click:4},_v)}}function Cv(i){let e,t;return{c(){e=M("svg"),t=M("path"),u(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.853l-5.478-3.349Z"),u(t,"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){C(n,e,o),m(e,t)},p:U,i:U,o:U,d(n){n&&y(e)}}}class Pv extends we{constructor(e){super(),ke(this,e,null,Cv,_e,{})}}function Sv(i){let e,t;return e=new Pv({}),{c(){H(e.$$.fragment)},m(n,o){z(e,n,o),t=!0},i(n){t||(h(e.$$.fragment,n),t=!0)},o(n){p(e.$$.fragment,n),t=!1},d(n){F(e,n)}}}function Tv(i){let e,t,n;function o(l){i[4](l)}let r={className:i[1]?"hidden":"",testId:"btn-play-prev-chapter",ariaLabel:re("tooltip_interactive_go_back"),disabled:i[2],click:i[3],$$slots:{default:[Sv]},$$scope:{ctx:i}};return i[0]!==void 0&&(r.ref=i[0]),e=new ci({props:r}),Me.push(()=>Je(e,"ref",o)),{c(){H(e.$$.fragment)},m(l,s){z(e,l,s),n=!0},p(l,[s]){const a={};s&2&&(a.className=l[1]?"hidden":""),s&4&&(a.disabled=l[2]),s&8&&(a.click=l[3]),s&32&&(a.$$scope={dirty:s,ctx:l}),!t&&s&1&&(t=!0,a.ref=l[0],Qe(()=>t=!1)),e.$set(a)},i(l){n||(h(e.$$.fragment,l),n=!0)},o(l){p(e.$$.fragment,l),n=!1},d(l){F(e,l)}}}function Ev(i,e,t){let{ref:n=void 0}=e,{hidden:o=!1}=e,{disabled:r=!1}=e,{click:l}=e;function s(a){n=a,t(0,n)}return i.$$set=a=>{"ref"in a&&t(0,n=a.ref),"hidden"in a&&t(1,o=a.hidden),"disabled"in a&&t(2,r=a.disabled),"click"in a&&t(3,l=a.click)},[n,o,r,l,s]}class gc extends we{constructor(e){super(),ke(this,e,Ev,Tv,_e,{ref:0,hidden:1,disabled:2,click:3})}}function Av(i){qe(i,"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 Iv(i){let e,t,n,o;return{c(){e=w("img"),u(e,"class","icon v-1x1zctw"),hr(e.src,t=i[0])||u(e,"src",t),u(e,"aria-hidden","true")},m(r,l){C(r,e,l),n||(o=Se(e,"error",i[7]),n=!0)},p(r,l){l&1&&!hr(e.src,t=r[0])&&u(e,"src",t)},d(r){r&&y(e),n=!1,o()}}}function Lv(i){let e;return{c(){e=w("div"),e.innerHTML='<div class="inner v-1x1zctw"></div>',u(e,"class","icon error-stub v-1x1zctw")},m(t,n){C(t,e,n)},p:U,d(t){t&&y(e)}}}function Vv(i){let e;function t(r,l){return r[5]?Lv:Iv}let n=t(i),o=n(i);return{c(){o.c(),e=Et()},m(r,l){o.m(r,l),C(r,e,l)},p(r,l){n===(n=t(r))&&o?o.p(r,l):(o.d(1),o=n(r),o&&(o.c(),o.m(e.parentNode,e)))},d(r){r&&y(e),o.d(r)}}}function Mv(i){let e,t;return e=new ci({props:{className:i[4]?"btn-full-opacity":"",ariaLabel:i[1],click:i[3],disabled:i[6],testId:i[2],$$slots:{default:[Vv]},$$scope:{ctx:i}}}),{c(){H(e.$$.fragment)},m(n,o){z(e,n,o),t=!0},p(n,[o]){const r={};o&16&&(r.className=n[4]?"btn-full-opacity":""),o&2&&(r.ariaLabel=n[1]),o&8&&(r.click=n[3]),o&64&&(r.disabled=n[6]),o&4&&(r.testId=n[2]),o&545&&(r.$$scope={dirty:o,ctx:n}),e.$set(r)},i(n){t||(h(e.$$.fragment,n),t=!0)},o(n){p(e.$$.fragment,n),t=!1},d(n){F(e,n)}}}function Bv(i,e,t){let n,o,r,{iconUrl:l}=e,{ariaLabel:s}=e,{disabled:a=!1}=e,{testId:c}=e,{onClick:f=ne.noop}=e;const d=()=>{t(5,r=!0)};return i.$$set=g=>{"iconUrl"in g&&t(0,l=g.iconUrl),"ariaLabel"in g&&t(1,s=g.ariaLabel),"disabled"in g&&t(8,a=g.disabled),"testId"in g&&t(2,c=g.testId),"onClick"in g&&t(3,f=g.onClick)},i.$$.update=()=>{i.$$.dirty&8&&t(4,n=f===ne.noop),i.$$.dirty&272&&t(6,o=n||a)},t(5,r=!1),[l,s,c,f,n,r,o,d,a]}class bc extends we{constructor(e){super(),ke(this,e,Bv,Mv,_e,{iconUrl:0,ariaLabel:1,disabled:8,testId:2,onClick:3},Av)}}class $s{constructor(){Object.defineProperty(this,"listeners",{value:{},writable:!0,configurable:!0})}addEventListener(e,t,n){e in this.listeners||(this.listeners[e]=[]),this.listeners[e].push({callback:t,options:n})}removeEventListener(e,t){if(!(e in this.listeners))return;const n=this.listeners[e];for(let o=0,r=n.length;o<r;o++)if(n[o].callback===t){n.splice(o,1);return}}dispatchEvent(e){if(!(e.type in this.listeners))return;const n=this.listeners[e.type].slice();for(let o=0,r=n.length;o<r;o++){const l=n[o];try{l.callback.call(this,e)}catch(s){Promise.resolve().then(()=>{throw s})}l.options&&l.options.once&&this.removeEventListener(e.type,l.callback)}return!e.defaultPrevented}}class _c extends $s{constructor(){super(),this.listeners||$s.call(this),Object.defineProperty(this,"aborted",{value:!1,writable:!0,configurable:!0}),Object.defineProperty(this,"onabort",{value:null,writable:!0,configurable:!0}),Object.defineProperty(this,"reason",{value:void 0,writable:!0,configurable:!0})}toString(){return"[object AbortSignal]"}dispatchEvent(e){e.type==="abort"&&(this.aborted=!0,typeof this.onabort=="function"&&this.onabort.call(this,e)),super.dispatchEvent(e)}}let Nv=class{constructor(){Object.defineProperty(this,"signal",{value:new _c,writable:!0,configurable:!0})}abort(e){let t;try{t=new Event("abort")}catch(o){typeof document!="undefined"?document.createEvent?(t=document.createEvent("Event"),t.initEvent("abort",!1,!1)):(t=document.createEventObject(),t.type="abort"):t={type:"abort",bubbles:!1,cancelable:!1}}let n=e;if(n===void 0)if(typeof document=="undefined")n=new Error("This operation was aborted"),n.name="AbortError";else try{n=new DOMException("signal is aborted without reason")}catch(o){n=new Error("This operation was aborted"),n.name="AbortError"}this.signal.reason=n,this.signal.dispatchEvent(t)}toString(){return"[object AbortController]"}};typeof Symbol!="undefined"&&Symbol.toStringTag&&(Nv.prototype[Symbol.toStringTag]="AbortController",_c.prototype[Symbol.toStringTag]="AbortSignal");function kc(i){return i.__FORCE_INSTALL_ABORTCONTROLLER_POLYFILL?(console.log("__FORCE_INSTALL_ABORTCONTROLLER_POLYFILL=true is set, will force install polyfill"),!0):typeof i.Request=="function"&&!i.Request.prototype.hasOwnProperty("signal")||!i.AbortController}function Rv(i){typeof i=="function"&&(i={fetch:i});const{fetch:e,Request:t=e.Request,AbortController:n,__FORCE_INSTALL_ABORTCONTROLLER_POLYFILL:o=!1}=i;if(!kc({fetch:e,Request:t,AbortController:n,__FORCE_INSTALL_ABORTCONTROLLER_POLYFILL:o}))return{fetch:e,Request:r};let r=t;(r&&!r.prototype.hasOwnProperty("signal")||o)&&(r=function(c,f){let d;f&&f.signal&&(d=f.signal,delete f.signal);const g=new t(c,f);return d&&Object.defineProperty(g,"signal",{writable:!1,enumerable:!1,configurable:!0,value:d}),g},r.prototype=t.prototype);const l=e;return{fetch:(a,c)=>{const f=r&&r.prototype.isPrototypeOf(a)?a.signal:c?c.signal:void 0;if(f){let d;try{d=new DOMException("Aborted","AbortError")}catch(v){d=new Error("Aborted"),d.name="AbortError"}if(f.aborted)return Promise.reject(d);const g=new Promise((v,b)=>{f.addEventListener("abort",()=>b(d),{once:!0})});return c&&c.signal&&delete c.signal,Promise.race([g,l(a,c)])}return l(a,c)},Request:r}}const sr=kc({fetch:window.fetch,Request:window.Request,AbortController:window.AbortController}),wc=sr?Rv({fetch:window.fetch,Request:window.Request,AbortController:window.AbortController}):void 0,Ov=sr?wc.fetch:window.fetch;sr?wc.Request:window.Request;const Dv=(i,e)=>i<400||e<225?5:i<640||e<360?0:i<960||e<540?1:i<1280||e<720?2:3,zv="//ad.mail.ru/static/admanhtml/rbadman-html5.min.js";class Fv{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 ne.Subject,started$:new ne.Subject,paused$:new ne.Subject,resumed$:new ne.Subject,ended$:new ne.Subject,skipped$:new ne.Subject,clicked$:new ne.Subject},this.loadAdman=n=>new Promise((o,r)=>{let l;const s=()=>{clearTimeout(l),delete window.admanAsyncInit,window.AdmanHTML?o():r()};ne.addScript(zv,n,this.loadTimeout).then(()=>{window.AdmanHTML?o():(window.admanAsyncInit=s,l=window.setTimeout(s,this.initTimeout))}).catch(()=>{r()})}),this.onAdsReady=()=>{this.log({message:"ads ready"}),this.startPreroll()},this.onAdStarted=(n,o)=>{ne.assertNonNullable(this.adsState),ne.assertNonNullable(this.playerState),ne.assertNonNullable(this.actions),this.log({message:`ad started, section: ${n}, banner: ${JSON.stringify(o)}`}),this.events.started$.next(n),o.muted&&(this.setVolume(0),this.actions.setMuted(!0),this.log({message:"ad muted start"}),ut(this.playerState.isMobile)&&this.playerState.mobileUnmuteButtonVisible.set(!0)),this.adsState.duration.set(o.duration),this.adsState.playbackState.set(Kt.PLAYING),this.adsState.canSkip.set(o.allowClose),this.adsState.secondsToWatchBeforeSkip.set(o.allowCloseDelay)},this.onAdTimeRemained=({currentTime:n})=>{ne.assertNonNullable(this.adsState),this.adsState.position.set(n)},this.onAdPaused=()=>{ne.assertNonNullable(this.adsState),this.log({message:"ad paused"}),this.adsState.playbackState.set(Kt.PAUSED)},this.onAdPlayed=()=>{ne.assertNonNullable(this.adsState),this.log({message:"ad played"}),this.adsState.playbackState.set(Kt.PLAYING)},this.onAdMidrollPoint=()=>{ne.assertNonNullable(this.adman),ne.assertNonNullable(this.actions),this.log({message:"midroll point"}),this.actions.switchFromVideoToAds(),this.currentAdSection=Tn.Midroll,this.adman.start(Tn.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=()=>{var n;this.log({message:"ad clicked"}),(n=this.videoElement)===null||n===void 0||n.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){const{width:t,height:n,isFullscreen:o,isAutoplay:r,adsContainer:l,adsVideoElement:s,slotId:a,params:c={},duration:f,previewParam:d}=e;let g;const v=this.playerState&&ut(this.playerState.vsid);v&&(g=parseInt(v,36));const b=Object.assign(Object.assign(Object.assign({dl:encodeURIComponent(window.location.href),autoplay:r,player_width:t,player_height:n,puid10:Dv(t,n),puid11:o?0:1,preview:d},g?{request_id:g}:{}),{duration:f}),c),S={slot:a,wrapper:l,videoEl:s,videoQuality:n,params:b,browser:{mobile:!1}},_=new window.AdmanHTML;_.setDebug(!1),_.onReady(this.onAdsReady),_.onStarted(this.onAdStarted),_.onPlayed(this.onAdPlayed),_.onPaused(this.onAdPaused),_.adMidrollPoint(this.onAdMidrollPoint),_.onClosed(this.onAdClosed),_.onSkipped(this.onAdSkipped),_.onClicked(this.onAdClicked),_.onTimeRemained(this.onAdTimeRemained),_.onCompleted(this.onAdCompleted),_.onError(this.onAdError),_.init(S),this.adman=_,this.videoElement=s,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}ne.assertNonNullable(this.actions),ne.assertNonNullable(this.adsState),ne.assertNonNullable(this.playerState);const t=this.currentAdSection===Tn.Postroll;this.adsState.playbackState.set(Kt.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(){ne.assertNonNullable(this.adsState),this.log({message:"toggle play"});const e=ut(this.adsState.playbackState);e===Kt.PLAYING?this.pause():e===Kt.PAUSED&&this.play()}setInitialVolume(e){this.log({message:`set initial volume ${e}`}),this.initialVolume=e}setVolume(e){var t;this.log({message:`set volume ${e}`}),(t=this.adman)===null||t===void 0||t.setVolume(e),this.videoElement&&(this.videoElement.volume=e)}setFullscreen(e){var t;this.log({message:`set fullscreen ${e}`}),(t=this.adman)===null||t===void 0||t.setFullscreen(e)}startPreroll(){ne.assertNonNullable(this.adman),this.log({message:"start preroll"}),this.setVolume(this.initialVolume),this.currentAdSection=Tn.Preroll,this.adman.start(Tn.Preroll)}startPostroll(){ne.assertNonNullable(this.adman),ne.assertNonNullable(this.actions),this.log({message:"start postroll"}),this.actions.switchFromVideoToAds(),this.currentAdSection=Tn.Postroll,this.adman.start(Tn.Postroll)}play(){ne.assertNonNullable(this.adman),this.log({message:"ad play"}),this.adman.resume(),this.events.resumed$.next()}pause(){ne.assertNonNullable(this.adman),this.log({message:"ad pause"}),this.adman.pause(),this.events.paused$.next()}skip(){ne.assertNonNullable(this.adman),this.log({message:"ad skip"}),this.adman.skip(),this.events.skipped$.next()}setPosition(e,t){var n;(n=this.adman)===null||n===void 0||n.setPosition(Math.floor(e),Math.floor(t))}destroy(){var e;this.log({message:"destroy"}),(e=this.adman)===null||e===void 0||e.destroy()}}const Hv=i=>{const 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:""};class Uv{constructor(){this.oneLineRegExp=/\r\n|\n|\r/,this.twoLinesRegExp=/\r\n\r\n|\n\n|\r\r/}parse(e){const t=[],n=e.split(this.twoLinesRegExp);for(const o of n){const r={startTime:0,endTime:0,texts:[],lang:""},l=o.split(this.oneLineRegExp);for(const s of l)if(!r.startTime&&!r.endTime){const a=new yc,{startTime:c,endTime:f}=a.parse(s);r.startTime=c,r.endTime=f}else if(s.trim()!==""){const a=new jv,{texts:c}=a.parse(s);r.texts=[...r.texts,...c]}(r.startTime||r.endTime)&&r.texts.length>0&&t.push(r)}return t}}class yc{constructor(){this.timeRegExp=/(\d{2})?:?(\d{2}):(\d{2}).(\d{2,3})/,this.timingRegExp=new RegExp(`${this.timeRegExp.source}( ?--> ?)${this.timeRegExp.source}`)}parse(e){const 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){const 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"){const r=Number(e)*60*60,l=Number(t)*60,s=Number(n),a=+`0.${o}`;return r+l+s+a}}class jv{constructor(){this.letterTagRegExp=/<[a-z]*>|<\/[a-z]*>/}parse(e){const t={texts:[]},o=e.replace(new RegExp(this.letterTagRegExp,"g"),"").split({[Symbol.split](l){let s=0;const a=[];for(;s<l.length;){const c=["<",">"].reduce((f,d)=>{const g=l.indexOf(d,s);return f===-1||f>g?g:f},-1);if(c===-1){a.push(l.substring(s));break}a.push(l.substring(s,c)),s=c+1}return a}}),r=new yc;for(const l of o)r.isTime(l)?t.texts.push({type:"timestamp",value:r.parseTime(l)}):t.texts.push({type:"text",value:l});return t}}let Vn,Ft,Nl=0,Rl=!1;const qv=(i,e,t)=>{var n;const o=i>=Nl,r=i<Nl,l=(f,d=0,g=0)=>f<d&&f<g,s=(f,d=0,g=0)=>f>=d&&f<=g,a=(f,d=0,g=0)=>f>d&&f>g,c=(n=t.find(({lang:f})=>f===e.value))===null||n===void 0?void 0:n.subtitles;if(Nl=i,r&&(Rl=!1),ne.isNonNullable(Vn)&&s(i,Vn.startTime,Vn.endTime)&&Vn.lang===e.value)return Vn;if(!ne.isNonNullable(Ft)&&(c!=null&&c.length)&&!Rl){const f=c.find(({startTime:d,endTime:g})=>s(i,d,g)||o&&l(i,d,g));Ft=f&&Object.assign(Object.assign({},f),{lang:e.value}),Vn=void 0,!ne.isNonNullable(Ft)&&c[c.length-1].endTime<i&&(Rl=!0);return}else{if(s(i,Ft==null?void 0:Ft.startTime,Ft==null?void 0:Ft.endTime))return Vn=Ft,Ft=void 0,Vn;(o&&a(i,Ft==null?void 0:Ft.startTime,Ft==null?void 0:Ft.endTime)||r&&l(i,Ft==null?void 0:Ft.startTime,Ft==null?void 0:Ft.endTime))&&(Ft=void 0)}},Ol={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"};let Qo=null;class Co{constructor(e,t){if(!Qo){const n=new Tt.OneStat(e,t),o=new ne.Subscription;Qo=Object.freeze({oneStat:n,statSubscription:o,destroy:()=>{n==null||n.destroy(),o==null||o.unsubscribe(),Qo=null}})}}static getInstance(){return Qo}}const Zv=({interfaceLanguage:i,videoId:e,isClip:t,isLiveCatchUpMode:n,statAuthToken:o,isAudioDisabled:r,canDownload:l,callbacks:s,webApi:a,videoEpisodes:c,previewThumbsData:f,uiConfig:d,coreConfig:g,player:v,disabledControls:b,isInteractive:S,interactiveRanges:_,replayInteractive:A,onDisabledPlayPrevChapterClick:E,onDisabledSeekToInteractiveClick:V,hasInteractiveBranches:B,playPrevChapterDisabledTooltip:le,additionalButtons:O,looped:q=!1})=>{var D,me,ue,Z;const fe=Object.assign(Object.assign({},g),{configName:[...(D=g.configName)!==null&&D!==void 0?D:[],"ui"],isAudioDisabled:r,live:Object.assign(Object.assign({},(me=g.live)!==null&&me!==void 0?me:{}),{isLiveCatchUpMode:!!n})}),J=d,T=v||new ct.Player(fe);T.setLooped(q);const I=new ne.Logger,se=new Fv(I,{loadTimeout:J.ads.loadTimeout,initTimeout:J.ads.initTimeout}),G=Co.getInstance(),ye=Wl.getInstance(),ae=a==null?void 0:a.pictureInPictureApi,Y=a==null?void 0:a.annotationsApi,oe=I.createComponentLog("Store");let Ne,N,ce={};const k=ne.getCurrentBrowser(),$=G?It(G.oneStat.vsid$):yn(void 0),Fe=ze(To()),Te=(ue=ae==null?void 0:ae.info.isActive$)!==null&&ue!==void 0?ue:new ne.ValueSubject(!1),Ve=ae==null?void 0:ae.info.type,Ae=ze(0),be=ze([]),Ee=ne.merge(T.events.fatalError$,T.events.managedError$).subscribe(P=>be.update(ie=>[...ie,P])),Pe=yn(!1,P=>{const ie=T.events.fatalError$.subscribe(()=>P(!0));return()=>ie.unsubscribe()}),X=P=>ji(void 0,void 0,void 0,function*(){var ie;const he=Object.values(ne.InterfaceLanguage).includes(P);if(J.downloadVKLanguages&&(he&&J.updateBuiltinLanguages||!Zr(P))){let De;try{De=yield ne.loadVKLangPack(P,If,Lf)}catch(ft){(ie=G==null?void 0:G.oneStat)===null||ie===void 0||ie.logError({errorType:"VKLangPack",fatal:!1}),ye==null||ye.report(ft,{errorType:"VKLangPack",fatal:!1})}De&&(qr({language:P,pack:De,fallback:J.defaultLanguage}),j.set(P))}Zr(P)&&j.set(P)}),j=ze(i);X(i);const He=(P,ie)=>{const he=ut(j);return Du(he,P,ie,J.defaultLanguage)},We=ze(Oe.Thumb),rt=ii([Pe,We],([P,ie])=>P?Oe.Crashed:ie),Ue=(()=>{const P=ze(new Set(b));return Object.assign(Object.assign({},P),{add:ie=>{P.update(he=>new Set([...he].concat(ie)))},remove:ie=>{P.update(he=>{const ge=[...he];return new Set(Array.isArray(ie)?ge.filter(De=>!ie.includes(De)):ge.filter(De=>De!==ie))})},includes:ie=>{const he=ut(P);return Array.isArray(ie)?ie.every(ge=>he.has(ge)):he.has(ie)}})})();oe({message:"create store"});const gt=P=>{oe({message:`init video, config: ${JSON.stringify(P)}`}),S?P.container.append(T.experimental.element$.getValue()):T.initVideo(P),P.subtitles&&T.setExternalTextTracks(P.subtitles),Ne=P},pt=new ne.Subject,Ot=P=>pt.next(P),mt=new ne.Subject,Re=new ne.Subject,Dt=new ne.Subject,te={actionRewind$:mt,actionSeek$:Re,inPiP$:Te,inFullscreen$:new ne.Observable(P=>Fe.subscribe(ie=>P.next(ie))),actionSetSubtitle$:Dt,nextMovie$:pt};if(G){const{oneStat:P,statSubscription:ie}=G;ie.add(P.attachTo(T)),ie.add(P.attachToUi(te)),ie.add(P.attachToAds(se.events)),P.authorize(o).catch(he=>{oe({message:`onestat auth error ${String(he)}`})})}if(ye){const P=new ne.Subscription,ie=(he,ge)=>P.add(he.subscribe(ge));if(ie(T.events.managedError$,he=>{ye.logIError(he)}),ie(T.events.fatalError$,he=>{ye.logIError(he,!0)}),G){const{oneStat:he}=G;ie(he.experimental.error$,ge=>{ye.logIError(ge)})}ye.sentrySubscription.add(P)}const nt=()=>{ne.isIOS()&&N&&C4(N)},st=new ne.Subscription().add(T.experimental.element$.subscribe(P=>{P&&(N=P,P.classList.add("player-media"),tl(ae)&&(ae.updateVideoElement(),ae.registryEventHandlers()),S&&P.setAttribute("pip","false"))})).add(T.events.ended$.subscribe(()=>{var P;nt(),(P=s==null?void 0:s.onEnded)===null||P===void 0||P.call(s)})).add(T.events.started$.subscribe(()=>ji(void 0,void 0,void 0,function*(){var P,ie;tl(ae)&&(yield ae==null?void 0:ae.revealPictureInPicture());const he=T.info.muted$.getValue();(P=s==null?void 0:s.onStarted)===null||P===void 0||P.call(s),(ie=ce.onStarted)===null||ie===void 0||ie.call(ce,he)}))).add(T.events.willSeek$.subscribe(({from:P,to:ie})=>{var he;(he=s==null?void 0:s.onSeek)===null||he===void 0||he.call(s,P,ie)})).add(T.info.position$.subscribe(P=>{var ie;const he=T.info.duration$.getValue();(ie=s==null?void 0:s.onTimeupdate)===null||ie===void 0||ie.call(s,he,P),se.setPosition(P,he)})).add(T.events.fatalError$.subscribe(()=>{var P;(P=s==null?void 0:s.onCrashed)===null||P===void 0||P.call(s)})).add(T.info.is3DVideo$.subscribe(P=>{Bt.ui.is3DVideo.set(P)})).add(T.info.isEnded$.subscribe(P=>{S&&(P?(ut(Yn)&&Ue.add(yo),Ue.add(_t.PLAY_BUTTON)):Ue.remove(_t.PLAY_BUTTON))})).add(T.info.liveTime$.subscribe(P=>{var ie;(ie=s==null?void 0:s.onLiveTime)===null||ie===void 0||ie.call(s,P)})),Ke=new ne.Subscription,xe=()=>{Ke.add(T.events.log$.subscribe(P=>{console.debug("%c sdk ","background:#9ddcf7;",`sdk component: ${P.component}`,P.message)})).add(I.log$.subscribe(P=>{console.debug("%c ui ","background:#f3da0b;",`ui component: ${P.component}.`,P.message)}))},$e=()=>{Ke.unsubscribe()},et=(P,ie)=>{T.startCameraManualRotation(P,ie)},ot=(P=!1)=>{T.stopCameraManualRotation(P)},Vt=(P,ie,he)=>{T.moveCameraFocusPX(P,ie,he)},lt=()=>{T.holdCamera()},at=()=>{T.releaseCamera()},Ye=yn(T.info.position$.getValue(),P=>{let ie,he;const ge=()=>{const De=T.info.playbackState$.getValue(),ft=T.info.isLive$.getValue(),At=T.info.duration$.getValue(),Ct=T.info.position$.getValue();if([ct.PlaybackState.PLAYING,ct.PlaybackState.PAUSED].includes(De)){const pi=ft?Ct-At:T.getExactTime();pi!==he&&P(pi),he=pi}ie=requestAnimationFrame(ge)};return ge(),()=>cancelAnimationFrame(ie)}),Xe=It(Te),xt=It(T.info.playbackState$),kt=It(T.info.currentBuffer$),vt=It(T.info.isEnded$),Rt=It(T.info.isLive$),dt=J.features.playbackRate?It(T.info.canChangePlaybackSpeed$):yn(!1),ni=It(T.info.liveBufferTime$),de=It(T.info.volume$),Ce=It(T.info.muted$),Le=Q1(T.info.autoQualityLimits$.pipe(ne.map(({max:P})=>P!==void 0)),((Z=T.info.autoQualityLimits$.getValue())===null||Z===void 0?void 0:Z.max)!==void 0),Mt=It(T.info.autoQualityLimitingAvailable$),$t=It(T.info.availableQualities$),Ie=It(T.info.availableQualitiesFps$),jt=It(T.info.chromecastState$),Qt=It(T.info.chromecastDeviceName$),wt=It(T.info.currentFormat$),qt=It(T.info.throughputEstimation$),Ci=It(T.info.videoBitrate$),qi=It(T.info.intrinsicVideoSize$),Zi=It(T.info.duration$),Wi=It(T.info.isAudioAvailable$);let bt=null;const Pi=T.info.isBuffering$,en=yn(Pi.getValue(),P=>{const ie=Pi.subscribe(he=>{he&&bt===null?bt=window.setTimeout(()=>{P(Pi.getValue()),bt=null},J.loaderDelay):P(he)});return()=>{ie.unsubscribe(),bt&&clearTimeout(bt)}}),Gi=()=>{bt&&clearTimeout(bt),bt=null},Pt=ii([Zi,Rt],([P,ie])=>ie?-P:P),Ri=ii([xt],([P])=>P===ct.PlaybackState.PLAYING),Ut=It(T.info.atLiveEdge$),Zt=It(T.info.atLiveDurationEdge$),Si=It(T.info.position$),Ti=ii([Si,Zi],([P,ie])=>isFinite(P)&&isFinite(ie)&&!!ie),vi=ii([jt],([P])=>P===ct.ChromecastState.CONNECTED),fi=ze(void 0),di=It(T.info.isAutoQualityEnabled$,P=>P&&fi.set(void 0)),gi=It(T.info.currentQuality$,()=>fi.set(void 0)),li=ii([fi,gi],([P,ie])=>P!=null?P:ie),Ei=ii([$t,Ie,di,li,wt],([P,ie,he,ge,De])=>{const ft=[];De!==ct.VideoFormat.MPEG&&ft.push({value:so.AUTO,displayValue:He("auto_quality_option"),selected:he});const At=P.filter(Ct=>Ct!==ne.VideoQuality.INVARIANT);for(const Ct of At){const pi=ie[Ct],Xn=Ct===ne.VideoQuality.INVARIANT?He("auto_quality_option"):Ct;ft.push({value:Ct,displayValue:`${Xn}${pi?Hv(pi):""}`,selected:he?!1:Ct===ge})}return ft}),ri=It(T.info.currentPlaybackRate$),bi=ii([ri,Ut,Zt],([P,ie,he])=>{const ge=he||S?1:J.controls.playbackRateMin,De=ie?1:J.controls.playbackRateMax,ft=J.controls.playbackRateStep,At=[];for(let Ct=ge;Ct<=De;Ct+=ft)At.push({value:Ct,displayValue:Ct===1?He("playback_rate_1"):He("playback_rate",{multiplier:Ct.toString(10)}),selected:P===Ct});return At}),Oi=J.features.subtitles?It(T.info.availableTextTracks$):yn([]),_i=ii([Oi],([P],ie)=>{const he=[],ge=[];for(const De of P)De.url&&he.push(Ov(De.url));Promise.allSettled(he).then(De=>{for(const[ft,At]of De.entries())At.status==="fulfilled"&&At.value.text().then(Ct=>{const pi=new Uv,Xn=P[ft].language,ul=!!P[ft].isAuto,Ho=pi.parse(Ct);Xn&&Ho&&ge.push({lang:Xn,subtitles:Ho,isAuto:ul}),ft===De.length-1&&ie(ge)})})}),Lt={displayValue:He("subtitles_off"),value:"off"},si=ze(Object.assign({},Lt)),Ai=ii([_i,si,_i],([P,ie])=>{if((P==null?void 0:P.length)>0){const he=[Object.assign(Object.assign({},Lt),{selected:(ie==null?void 0:ie.value)===Lt.value})];for(const{lang:ge,isAuto:De}of P)Ol[ge]&&he.push({displayValue:De?He("subtitles_auto",{language:Ol[ge]}):Ol[ge],value:ge,selected:(ie==null?void 0:ie.value)===ge,isAuto:De});return he}else return[]}),ki=ii([Ye,si,_i],([P,ie,he])=>{if(ie&&ie.value!==Lt.value)return qv(P,ie,he)}),wi=ii([ki],([P])=>P!=null&&P.texts?P.texts:[]),Di=ze(!0),Ze=ii([kt,Pt,Si,ni],([P,ie,he,ge])=>{var De;const ft=(De=P==null?void 0:P.end)!==null&&De!==void 0?De:0;if(!ge)return ft/ie;const Ct=-he+ge-ie;return(ft-Ct)/ie}),ai=It(T.info.availableSources$),zi=ii([ai],([P])=>Object.keys((P==null?void 0:P[ct.VideoFormat.MPEG])||{}).length>0),oi=()=>{var P,ie,he;const ge=Object.keys(((ie=(P=T.info.availableSources$)===null||P===void 0?void 0:P.getValue())===null||ie===void 0?void 0:ie[ct.VideoFormat.MPEG])||{}),De=ne.getHighestQuality(ge)||ne.VideoQuality.Q_144P;return(he=Ne.sources[ct.VideoFormat.MPEG])===null||he===void 0?void 0:he[De]},Ii=()=>{var P;const ie=oi();ie?Df(ie,((P=Ne==null?void 0:Ne.meta)===null||P===void 0?void 0:P.title)||"video"):oe({message:"There is no URL for download video"})},ei=()=>{oe({message:"toggle muted"});const P=T.info.muted$.getValue(),ge=!(T.info.volume$.getValue()===0||P);yi(ge)},Be=(P,ie=P,he=!1)=>{var ge,De,ft;const At=!he,Ct=T.info.muted$.getValue();oe({message:`set volume, volume: ${P}, preferredVolume: ${ie}, internalCall: ${At}`}),T.setVolume(P),se.setVolume(P),At&&((ge=s==null?void 0:s.onVolumeChange)===null||ge===void 0||ge.call(s,P)),br(ie),Ct?(T.setMuted(!1),At&&((De=s==null?void 0:s.onUnmute)===null||De===void 0||De.call(s)),hl(!1)):!Ct&&P===0&&(T.setMuted(!0),At&&((ft=s==null?void 0:s.onMute)===null||ft===void 0||ft.call(s)),hl(!0))},yi=(P,ie=!1)=>{var he,ge,De,ft;const At=!ie,Ct=T.info.volume$.getValue();if(oe({message:`set muted, currentVolume: ${Ct}, mute: ${P}, internalCall: ${At}`}),T.setMuted(P),se.setVolume(P?0:Ct),hl(P),At&&(P?(he=s==null?void 0:s.onMute)===null||he===void 0||he.call(s):(ge=s==null?void 0:s.onUnmute)===null||ge===void 0||ge.call(s)),Ct===0){let pi=(De=tu())!==null&&De!==void 0?De:J.volumeDefault;pi===0&&(pi=J.volumeMinRestore,br(pi)),T.setVolume(pi),se.setVolume(pi),At&&((ft=s==null?void 0:s.onVolumeChange)===null||ft===void 0||ft.call(s,pi))}},Ki=()=>{T.prepare()},Yi=()=>{var P,ie;if(ne.assertNonNullable(Bt),!ut(Bt.ui.controls.disabledControls$).has(_t.PLAY_BUTTON)){if(oe({message:"toggle play"}),ut(Bt.playerPhase)===Oe.Ads){se.togglePlay();return}if(T.info.playbackState$.getValue()!==ct.PlaybackState.PLAYING){if(T.info.isEnded$.getValue()){if(oe({message:"toggle play, video ended, seek to 0"}),mt.next(),Re.next(Tt.SeekAction.REWIND),S){A==null||A();return}T.seekTime(0)}oe({message:"toggle play, call player.play"}),T.play(),(P=s==null?void 0:s.onPlay)===null||P===void 0||P.call(s)}else oe({message:"toggle play, call player.pause"}),T.pause(),(ie=s==null?void 0:s.onPause)===null||ie===void 0||ie.call(s)}},tn=P=>{oe({message:`set quality, quality: ${P}`}),T.setAutoQuality(P===so.AUTO),P!==so.AUTO?(zf(e,P),fi.set(P),T.setQuality(P)):iu()},Xi=P=>{oe({message:`set trafficSavingEnabled, value: ${P}`}),T.setAutoQualityLimits({max:P?J.trafficSavingLimit:void 0}),Uf(P)},Li=P=>{T.setPlaybackRate(P)},Qi=()=>{const P=ut(bi),ie=P.findIndex(({selected:ge})=>ge);if(ie===P.length-1)return;const he=P[ie+1];Li(he.value)},Vi=()=>{const P=ut(bi),ie=P.findIndex(({selected:ge})=>ge);if(ie===0)return;const he=P[ie-1];Li(he.value)},zt=P=>{P&&P.value!==Lt.value&&Dt.next(P.isAuto?P.value+"_auto":P.value),si.set(P)},mi=()=>{const P=ut(Ai),ie=ut(si),he=ut(j);if((ie==null?void 0:ie.value)===Lt.value){const ge=P.filter(De=>De.value!==Lt.value).find(De=>De.value===he)||P[1];zt(ge!=null?ge:Object.assign({},Lt))}else zt(Object.assign(Object.assign({},Lt),{selected:!1}))},Mi=(P,ie,he=!0)=>{if(oe({message:`seek to time, time: ${P}`}),Re.next(ie),T.info.isLive$.getValue()){const ge=T.info.duration$.getValue(),De=Math.min(0,ge+P);T.seekTime(De,he)}else{if(ut(Yn))return;T.seekTime(wo(P),he)}},fn=P=>{oe({message:`seek to episode start time: ${P}`}),Mi(P,Tt.SeekAction.EPISODE,!0)},Wt=(P,ie)=>{oe({message:`seek to percent, percent: ${P}`});const he=Math.round(ut(Pt)*P);Mi(he,ie,!1)},nn=P=>{oe({message:`seek external, time: ${P}`}),Re.next(Tt.SeekAction.UNKNOWN),T.seekTime(T.info.isLive$.getValue()?-P:P)},on=P=>{var ie,he;oe({message:`set auto quality limitation. Max: ${(ie=P.max)!==null&&ie!==void 0?ie:"none"}. Min: ${(he=P.min)!==null&&he!==void 0?he:"none"}`}),T.setAutoQualityLimits(P)},Bi=P=>{oe({message:`seek external to episode start time: ${P}`}),Mi(P,Tt.SeekAction.EPISODE,!0)},gn=P=>{oe({message:`set playback rate to: ${P}`}),T.setPlaybackRate(P)},Ji=ze(void 0),hi=ze(!1),bn=P=>{oe({message:`start scrubbing, progress: ${P}`}),hi.set(!0),dn(P)},dn=P=>{Ji.set(P)};let ln,rn;const sn=()=>{Ji.set(void 0),hi.set(!1)},an=()=>{clearTimeout(rn),clearTimeout(ln),ln=window.setTimeout(()=>{sn()},500),N==null||N.removeEventListener("seeked",an)},_n=P=>{oe({message:`complete scrubbing, progress: ${P}`}),Wt(P,Tt.SeekAction.SLIDER),ut(Bt.ui.isMobile)&&ut(Bt.state.currentFormat$)===ct.VideoFormat.HLS?(N==null||N.addEventListener("seeked",an),rn=window.setTimeout(()=>{an()},300)):sn()},kn=ii([Ye,Pt,Ji],([P,ie,he],ge)=>{ge(ne.isNonNullable(he)?he*ie:P)}),x=ze({width:0,height:0}),yt=ii([x],([{width:P}],ie)=>{const he=Th(P);ie(he)}),ti=ze(!1),Fi=ii([yt,ti],([P,ie])=>ie?O.filter(he=>!he.hideOnMobile):O.filter(he=>{var ge;return!(!((ge=he.hideOnDesktopGridTypes)===null||ge===void 0)&&ge.includes(P))})),un=ii([ti,Pe],([P,ie],he)=>{he(P&&ie)}),Hi=()=>{Re.next(Tt.SeekAction.LIVE),oe({message:"switch to active live"}),T.seekTime(0),T.info.playbackState$.getValue()!==ct.PlaybackState.PLAYING&&Bt.actions.internal.togglePlay()},Sn=()=>se.skip(),ee=(P=!0)=>{ne.assertNonNullable(Bt),oe({message:`switch from ads to video, callPlay: ${P}`}),We.set(Oe.Video),P&&T.play()},Wn=()=>{ne.assertNonNullable(Bt),oe({message:"switch from video to ads"}),Bt.actions.internal.pause(),nt(),We.set(Oe.Ads)},ho=P=>{ne.assertNonNullable(Bt);const ie=P?Oe.WaitingLive:Oe.Thumb;We.set(ie)},po=P=>{ne.assertNonNullable(Bt);const ie=P?Oe.WaitingRecord:Oe.Thumb;We.set(ie)},vo=()=>(ne.assertNonNullable(Bt),Rf(T,Ne,Bt)),K=()=>(ne.assertNonNullable(Bt),Of(T,Ne,Bt)),St=()=>N,xi=()=>{oe({message:"toggle chromecast"}),T.toggleChromecast()},Ni=P=>{var ie;ne.assertNonNullable(Bt);const he=!P;if(ut(Bt.playerPhase)===Oe.Ads){oe({message:`pause ads, internalCall: ${he}`}),se.pause();return}oe({message:`pause video, internalCall: ${he}`}),he&&((ie=s==null?void 0:s.onPause)===null||ie===void 0||ie.call(s)),T.pause()},wn=P=>{var ie;ne.assertNonNullable(Bt);const he=!P;if(ut(Bt.playerPhase)===Oe.Ads){oe({message:`play ads, internalCall: ${he}`}),se.play();return}oe({message:`play video, internalCall: ${he}`}),he&&((ie=s==null?void 0:s.onPlay)===null||ie===void 0||ie.call(s)),T.play()},Fn=(P,ie)=>{ne.assertNonNullable(Bt),oe({message:`first start, show ads: ${P}, internalCall: ${!ie}`}),P?We.set(Oe.Ads):(We.set(Oe.Video),ie?T.play():Bt.actions.internal.togglePlay())},Gn=()=>(oe({message:"getting time codes"}),c),go=()=>{const P=Gn();if(!P||[0,1].includes(P.length))return;const ie=T.info.position$.getValue();return P.find(he=>he.time>ie)},No=P=>{let ie=P;ie||(ie=go()),ie&&(oe({message:"seek to next episode"}),Mi(ie.time,Tt.SeekAction.EPISODE,!0))},bo=()=>{const P=Gn();if(!P||[0,1].includes(P.length))return;const ie=T.info.position$.getValue(),he=P.findIndex(De=>De.time>ie),ge=he===-1?P.length-2:he-2;if(!(ge<0))return P[ge]},Ro=P=>{let ie=P;ie||(ie=bo()),ie&&(oe({message:"seek to prev episode"}),Mi(ie.time,Tt.SeekAction.EPISODE,!0))},Oo=()=>(oe({message:"getting preview thumbs data"}),f),_o=()=>ji(void 0,void 0,void 0,function*(){ae!=null&&ae.isActive()?yield ae==null?void 0:ae.remove():yield ae==null?void 0:ae.request()}),Do=(P=-90)=>{Ae.update(ie=>ie+P)},Hn=ze("tooltip_chapter_without_interactive"),Ln=ze(_),Kn=ii([Ln],([P=[]])=>{const ie=[];for(let he=0;he<P.length;he++){const{range:[ge,De],subjects:ft}=P[he];he===0&&ge!==0&&ie.push({time:0,text:""}),ie.push({time:ge/1e3,text:"",interactive:!0,completed:!ft.length}),De!==1/0&&ie.push({time:De/1e3,text:"",interactive:!1,completed:!ft.length})}return ie.length&&(ie.every(he=>he.completed)?Hn.set("tooltip_interactive_of_chapter_completed"):Hn.set("tooltip_disabled_when_interactive")),ie}),zo=P=>{const ie=ut(Ln);Ln.set(ie.map(he=>Object.assign(Object.assign({},he),{subjects:he.subjects.filter(ge=>ge!==P)})))},ko=ze(!1),Yn=ii([Si,Ln,ko],([P,ie,he])=>{if(!S)return!1;if(he)return!0;const ge=P*1e3,De=ie==null?void 0:ie.find(({range:[ft,At],subjects:Ct})=>ft<ge&&ge<At&&Ct.length);return De&&ut(hi)&&sn(),!!De}),wo=P=>{if(!S)return P;const ie=ut(Kn),he=ut(Pt),De=ut(Si)/he,ft=ie.find(At=>At.interactive&&!At.completed&&At.time>De);return typeof(ft==null?void 0:ft.time)=="number"?Math.min(P,ft.time-.05):P},Fo=()=>{clearTimeout(rn),clearTimeout(ln),st.unsubscribe(),Ke.unsubscribe(),T.destroy(),se.destroy(),G==null||G.destroy(),ye==null||ye.destroy(),Ee.unsubscribe()},Bt={interfaceLanguage$:j,initVideo:gt,videoId:e,isClip:t,playerPhase:rt,vsid:$,state:{positionExact$:Ye,positionWithScrubbing$:kn,duration$:Pt,playbackState$:xt,isPlaying$:Ri,isLoaderVisible:en,bufferedProgress$:Ze,isLive$:Rt,canChangePlaybackSpeed$:dt,isActiveLive$:Ut,isOldestAvailableLive$:Zt,isRewindableLive$:Ti,isEnded$:vt,muted$:Ce,volume$:de,trafficSavingEnabled$:Le,autoQualityLimitingAvailable$:Mt,currentQuality$:li,isAutoQualityEnabled$:di,availableQualities$:Ei,currentPlaybackRate$:ri,availablePlaybackRates$:bi,currentSubtitle$:si,availableSubtitlesList$:Ai,currentSubtitleCaptions$:wi,isAutoSubtitleCaptionVisible$:Di,chromecastState$:jt,chromecastDeviceName$:Qt,chromecastConnected$:vi,currentFormat$:wt,throughputEstimation$:qt,videoBitrate$:Ci,videoSize$:qi,errorLog$:be,crashed$:Pe,isAudioAvailable$:Wi,isAudioDisabled:!!r,canDownload:J.features.download&&!!l,availableSources$:ai,hasMpegSources$:zi,isInteractive:S,isInteractiveGraphEnabled:J.features.interactiveGraph,isSeekToInteractiveEnable:J.features.seekToInteractive,isPlayPrevChapterEnabled:J.features.interactivePlayPrevChapter,interactiveEpisodes$:Kn,isInteractiveTime$:Yn,graphIsOpened$:ze(!1),isInteractiveExpectation$:ko,hasInteractiveBranches:B,playPrevChapterDisabledTooltip:le,seekToInteractiveDisabledTooltip$:Hn},ui:{controlsVisible:ze(!1),touched:ze(!1),controls:{tooltipPointerOffsetX:ze(0),prevButton:ze(void 0),playButton:ze(void 0),replayButton:ze(void 0),nextButton:ze(void 0),playPrevChapterButton:ze(void 0),seekToInteractiveButton:ze(void 0),interactiveGraphButton:ze(void 0),liveButton:ze(void 0),time:ze(void 0),episodes:ze(void 0),volume:ze(void 0),subtitles:ze(void 0),settings:ze(void 0),chromecast:ze(void 0),pip:ze(void 0),fullscreen:ze(void 0),vkLogo:ze(void 0),additionalButtons:O.length?O.reduce(P=>[...P,ze(void 0)],[]):[],disabledControls$:Ue},modals:{hotKeyMap:{show:ze(!1),data:ze({title:"",closeBtnText:"",groups:[]})}},isFullscreen:Fe,rotateAlpha:Ae,isAutoplay:ze(!1),contextMenuVisible:ze(!1),debugPanelVisible:ze(!1),playerSize:x,isMobile:ti,mobileNotReportControlHidden$:un,mobileUnmuteButtonExpanded:ze(!1),mobileUnmuteButtonVisible:ze(!1),icon3DVideoVisible:ze(!1),settingsMenuVisible:ze(!1),scrubbingInProgress:hi,is3DVideo:ze(!1),isPictureInPictureActive$:Xe,pictureInPictureType$:yn(Ve),clientInfo$:yn(k),currentGridType$:yt,additionalButtons$:Fi,interactiveHideMobileControls:ze(!1)},ads:{position:ze(0),duration:ze(0),playbackState:ze(Kt.INACTIVE),canSkip:ze(!1),secondsToWatchBeforeSkip:ze(0),postrollPassed:ze(!1)},webApi:{pictureInPictureApi:ae,annotationsApi:Y},actions:{internal:{preload:Ki,firstStart:P=>Fn(P,!1),pause:()=>Ni(!1),togglePlay:Yi,toggleMuted:ei,setVolume:Be,setQuality:tn,setTrafficSavingEnabled:P=>Xi(P),setPlaybackRate:Li,incrementPlaybackRate:Qi,decrementPlaybackRate:Vi,setSubtitle:zt,toggleSubtitle:mi,togglePictureInPicture:_o,startScrubbing:bn,progressScrubbing:dn,completeScrubbing:_n,toggleChromecast:xi,switchToActiveLive:Hi,switchFromAdsToVideo:ee,switchFromVideoToAds:Wn,skipAd:Sn,setWaitingLive:ho,setWaitingRecord:po,getDebugTextData:vo,getDebugPanelData:K,getVideoElement:St,seekTime:(P,ie,he)=>Mi(P,ie,he),clearDelayedBufferingCheckTimeout:Gi,seekEpisodeStartTime:fn,seekToPercent:Wt,getNextEpisode:go,seekToNextEpisode:No,getPrevEpisode:bo,seekToPrevEpisode:Ro,startLogging:xe,stopLogging:$e,startCameraManualRotation:et,stopCameraManualRotation:ot,moveCameraFocusPX:Vt,holdCamera:lt,releaseCamera:at,getVideoEpisodes:Gn,getPreviewThumbsData:Oo,downloadVideo:Ii,addLanguage:qr,setLanguage:X,nextMovie:Ot,videoRotate:Do,completeInteractiveRange:zo,correctSeekTimeToInteractive:wo,replayInteractive:A,onDisabledPlayPrevChapterClick:E,onDisabledSeekToInteractiveClick:V},external:{firstStart:P=>Fn(P,!0),play:()=>wn(!0),pause:()=>Ni(!0),seekTime:P=>nn(P),seekEpisodeStartTime:P=>Bi(P),setPlaybackRate:P=>gn(P),setAutoQualityLimits:P=>on(P),setMuted:P=>yi(P,!0),setVolume:P=>Be(P,P,!0)}},callbacks:s,setUiCallbacks:P=>{ce=Object.assign({},P)},getAdmanWrapper:()=>se,getLogger:()=>I,destroy:Fo};return Bt},Cc=(i,e,t,n)=>{var o;if(!i)return;const r=i.getBoundingClientRect();for(const[l,s]of Object.entries(e))if(!["tooltipPointerOffsetX","disabledControls$","additionalButtons"].includes(l)){const a=(o=t[l])===null||o===void 0?void 0:o.getBoundingClientRect(),c=n&&!!a&&!!(a.right-a.left);s.set({positionStartX:0,positionEndX:0,left:c?Math.round(a.left-r.left):0,right:c?Math.round(a.right-r.left):0,top:c?Math.round(a.top-r.top):0,bottom:c?Math.round(a.bottom-r.top):0,isDisplayed:c})}};function Wv(i){qe(i,"v-1cwzjrb",".wrapper-bottom.v-1cwzjrb.v-1cwzjrb{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-1cwzjrb>.v-1cwzjrb{pointer-events:auto}.controls.v-1cwzjrb.v-1cwzjrb{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-1cwzjrb.v-1cwzjrb,.controls-right.v-1cwzjrb.v-1cwzjrb{display:flex;align-content:center}.controls-left.v-1cwzjrb.v-1cwzjrb{flex-grow:1;min-width:0}.controls-left.v-1cwzjrb > *:not(:first-child),.controls-right.v-1cwzjrb > *{margin-left:var(--controls-desktop-item-margin-left)}.controls-hidden.v-1cwzjrb.v-1cwzjrb{visibility:visible;transform:translateY(100%)}.wrapper-bottom.no-smooth.v-1cwzjrb.v-1cwzjrb{transition:none}.settings-menu.v-1cwzjrb.v-1cwzjrb{bottom:57px;right:18px;position:absolute;transition:opacity 0.2s, visibility 0.2s}")}function ea(i,e,t){const n=i.slice();return n[186]=e[t].iconUrl,n[187]=e[t].ariaLabel,n[188]=e[t].testId,n[189]=e[t].onClick,n[190]=e[t].tooltip,n[192]=t,n}function ta(i){let e,t,n;function o(l){i[156](l)}let r={disabled:!i[9],controlInfo:i[94].prevButton,tooltipContent:re("tooltip_previous"),$$slots:{default:[Gv]},$$scope:{ctx:i}};return i[23].prevButton!==void 0&&(r.ref=i[23].prevButton),e=new Yt({props:r}),Me.push(()=>Je(e,"ref",o)),{c(){H(e.$$.fragment)},m(l,s){z(e,l,s),n=!0},p(l,s){const a={};s[0]&512&&(a.disabled=!l[9]),s[0]&4608|s[6]&128&&(a.$$scope={dirty:s,ctx:l}),!t&&s[0]&8388608&&(t=!0,a.ref=l[23].prevButton,Qe(()=>t=!1)),e.$set(a)},i(l){n||(h(e.$$.fragment,l),n=!0)},o(l){p(e.$$.fragment,l),n=!1},d(l){F(e,l)}}}function Gv(i){let e,t;return e=new al({props:{click:i[12],type:"prev",disabled:!i[9],isMobile:!1}}),{c(){H(e.$$.fragment)},m(n,o){z(e,n,o),t=!0},p(n,o){const r={};o[0]&4096&&(r.click=n[12]),o[0]&512&&(r.disabled=!n[9]),e.$set(r)},i(n){t||(h(e.$$.fragment,n),t=!0)},o(n){p(e.$$.fragment,n),t=!1},d(n){F(e,n)}}}function ia(i){let e,t,n;function o(l){i[157](l)}let r={disabled:i[67],controlInfo:i[94].replayButton,tooltipContent:re("tooltip_restart"),$$slots:{default:[Kv]},$$scope:{ctx:i}};return i[23].replayButton!==void 0&&(r.ref=i[23].replayButton),e=new Yt({props:r}),Me.push(()=>Je(e,"ref",o)),{c(){H(e.$$.fragment)},m(l,s){z(e,l,s),n=!0},p(l,s){const a={};s[2]&32&&(a.disabled=l[67]),s[2]&32|s[6]&128&&(a.$$scope={dirty:s,ctx:l}),!t&&s[0]&8388608&&(t=!0,a.ref=l[23].replayButton,Qe(()=>t=!1)),e.$set(a)},i(l){n||(h(e.$$.fragment,l),n=!0)},o(l){p(e.$$.fragment,l),n=!1},d(l){F(e,l)}}}function Kv(i){let e,t;return e=new rr({props:{click:i[118],disabled:i[67]}}),{c(){H(e.$$.fragment)},m(n,o){z(e,n,o),t=!0},p(n,o){const r={};o[2]&32&&(r.disabled=n[67]),e.$set(r)},i(n){t||(h(e.$$.fragment,n),t=!0)},o(n){p(e.$$.fragment,n),t=!1},d(n){F(e,n)}}}function na(i){let e,t,n;function o(l){i[158](l)}let r={controlInfo:i[94].playButton,tooltipContent:i[42],disabled:i[68],$$slots:{default:[Yv]},$$scope:{ctx:i}};return i[23].playButton!==void 0&&(r.ref=i[23].playButton),e=new Yt({props:r}),Me.push(()=>Je(e,"ref",o)),{c(){H(e.$$.fragment)},m(l,s){z(e,l,s),n=!0},p(l,s){const a={};s[1]&2048&&(a.tooltipContent=l[42]),s[2]&64&&(a.disabled=l[68]),s[0]&1073741824|s[2]&64|s[6]&128&&(a.$$scope={dirty:s,ctx:l}),!t&&s[0]&8388608&&(t=!0,a.ref=l[23].playButton,Qe(()=>t=!1)),e.$set(a)},i(l){n||(h(e.$$.fragment,l),n=!0)},o(l){p(e.$$.fragment,l),n=!1},d(l){F(e,l)}}}function Yv(i){let e,t;return e=new lr({props:{isMobile:!1,isPlaying:i[30],click:i[79],disabled:i[68]}}),{c(){H(e.$$.fragment)},m(n,o){z(e,n,o),t=!0},p(n,o){const r={};o[0]&1073741824&&(r.isPlaying=n[30]),o[2]&64&&(r.disabled=n[68]),e.$set(r)},i(n){t||(h(e.$$.fragment,n),t=!0)},o(n){p(e.$$.fragment,n),t=!1},d(n){F(e,n)}}}function oa(i){let e,t,n;function o(l){i[159](l)}let r={disabled:!i[8],controlInfo:i[94].nextButton,tooltipContent:re("tooltip_next"),$$slots:{default:[Xv]},$$scope:{ctx:i}};return i[23].nextButton!==void 0&&(r.ref=i[23].nextButton),e=new Yt({props:r}),Me.push(()=>Je(e,"ref",o)),{c(){H(e.$$.fragment)},m(l,s){z(e,l,s),n=!0},p(l,s){const a={};s[0]&256&&(a.disabled=!l[8]),s[0]&2304|s[6]&128&&(a.$$scope={dirty:s,ctx:l}),!t&&s[0]&8388608&&(t=!0,a.ref=l[23].nextButton,Qe(()=>t=!1)),e.$set(a)},i(l){n||(h(e.$$.fragment,l),n=!0)},o(l){p(e.$$.fragment,l),n=!1},d(l){F(e,l)}}}function Xv(i){let e,t;return e=new al({props:{click:i[11],type:"next",disabled:!i[8],isMobile:!1}}),{c(){H(e.$$.fragment)},m(n,o){z(e,n,o),t=!0},p(n,o){const r={};o[0]&2048&&(r.click=n[11]),o[0]&256&&(r.disabled=!n[8]),e.$set(r)},i(n){t||(h(e.$$.fragment,n),t=!0)},o(n){p(e.$$.fragment,n),t=!1},d(n){F(e,n)}}}function Qv(i){let e,t,n,o,r=i[110]&&Jv(i),l=i[109]&&$v(i),s=i[108]&&t5(i);return{c(){r&&r.c(),e=R(),l&&l.c(),t=R(),s&&s.c(),n=Et()},m(a,c){r&&r.m(a,c),C(a,e,c),l&&l.m(a,c),C(a,t,c),s&&s.m(a,c),C(a,n,c),o=!0},p(a,c){a[110]&&r.p(a,c),a[109]&&l.p(a,c),a[108]&&s.p(a,c)},i(a){o||(h(r),h(l),h(s),o=!0)},o(a){p(r),p(l),p(s),o=!1},d(a){a&&(y(e),y(t),y(n)),r&&r.d(a),l&&l.d(a),s&&s.d(a)}}}function Jv(i){let e,t,n;function o(l){i[160](l)}let r={disabled:i[66],controlInfo:i[94].playPrevChapterButton,tooltipContent:re("tooltip_interactive_go_back"),disabledTooltipContent:re(i[112]),$$slots:{default:[xv]},$$scope:{ctx:i}};return i[23].playPrevChapterButton!==void 0&&(r.ref=i[23].playPrevChapterButton),e=new Yt({props:r}),Me.push(()=>Je(e,"ref",o)),{c(){H(e.$$.fragment)},m(l,s){z(e,l,s),n=!0},p(l,s){const a={};s[2]&16&&(a.disabled=l[66]),s[0]&131072|s[2]&16|s[6]&128&&(a.$$scope={dirty:s,ctx:l}),!t&&s[0]&8388608&&(t=!0,a.ref=l[23].playPrevChapterButton,Qe(()=>t=!1)),e.$set(a)},i(l){n||(h(e.$$.fragment,l),n=!0)},o(l){p(e.$$.fragment,l),n=!1},d(l){F(e,l)}}}function xv(i){let e,t;return e=new gc({props:{disabled:i[66],click:i[17]}}),{c(){H(e.$$.fragment)},m(n,o){z(e,n,o),t=!0},p(n,o){const r={};o[2]&16&&(r.disabled=n[66]),o[0]&131072&&(r.click=n[17]),e.$set(r)},i(n){t||(h(e.$$.fragment,n),t=!0)},o(n){p(e.$$.fragment,n),t=!1},d(n){F(e,n)}}}function $v(i){let e,t,n;function o(l){i[161](l)}let r={disabled:i[69],controlInfo:i[94].seekToInteractiveButton,tooltipContent:re("tooltip_interactive_seek"),disabledTooltipContent:re(i[72]),$$slots:{default:[e5]},$$scope:{ctx:i}};return i[23].seekToInteractiveButton!==void 0&&(r.ref=i[23].seekToInteractiveButton),e=new Yt({props:r}),Me.push(()=>Je(e,"ref",o)),{c(){H(e.$$.fragment)},m(l,s){z(e,l,s),n=!0},p(l,s){const a={};s[2]&128&&(a.disabled=l[69]),s[2]&1024&&(a.disabledTooltipContent=re(l[72])),s[0]&32768|s[2]&128|s[6]&128&&(a.$$scope={dirty:s,ctx:l}),!t&&s[0]&8388608&&(t=!0,a.ref=l[23].seekToInteractiveButton,Qe(()=>t=!1)),e.$set(a)},i(l){n||(h(e.$$.fragment,l),n=!0)},o(l){p(e.$$.fragment,l),n=!1},d(l){F(e,l)}}}function e5(i){let e,t;return e=new pc({props:{disabled:i[69],click:i[15]}}),{c(){H(e.$$.fragment)},m(n,o){z(e,n,o),t=!0},p(n,o){const r={};o[2]&128&&(r.disabled=n[69]),o[0]&32768&&(r.click=n[15]),e.$set(r)},i(n){t||(h(e.$$.fragment,n),t=!0)},o(n){p(e.$$.fragment,n),t=!1},d(n){F(e,n)}}}function t5(i){let e,t,n;function o(l){i[162](l)}let r={controlInfo:i[94].interactiveGraphButton,tooltipContent:i[43],disabled:i[70],$$slots:{default:[i5]},$$scope:{ctx:i}};return i[23].interactiveGraphButton!==void 0&&(r.ref=i[23].interactiveGraphButton),e=new Yt({props:r}),Me.push(()=>Je(e,"ref",o)),{c(){H(e.$$.fragment)},m(l,s){z(e,l,s),n=!0},p(l,s){const a={};s[1]&4096&&(a.tooltipContent=l[43]),s[2]&256&&(a.disabled=l[70]),s[0]&134283264|s[2]&256|s[6]&128&&(a.$$scope={dirty:s,ctx:l}),!t&&s[0]&8388608&&(t=!0,a.ref=l[23].interactiveGraphButton,Qe(()=>t=!1)),e.$set(a)},i(l){n||(h(e.$$.fragment,l),n=!0)},o(l){p(e.$$.fragment,l),n=!1},d(l){F(e,l)}}}function i5(i){let e,t;return e=new vc({props:{click:i[16],graphIsOpened:i[27],disabled:i[70]}}),{c(){H(e.$$.fragment)},m(n,o){z(e,n,o),t=!0},p(n,o){const r={};o[0]&65536&&(r.click=n[16]),o[0]&134217728&&(r.graphIsOpened=n[27]),o[2]&256&&(r.disabled=n[70]),e.$set(r)},i(n){t||(h(e.$$.fragment,n),t=!0)},o(n){p(e.$$.fragment,n),t=!1},d(n){F(e,n)}}}function la(i){let e,t,n;function o(l){i[163](l)}let r={controlInfo:i[94].liveButton,tooltipContent:i[44],$$slots:{default:[n5]},$$scope:{ctx:i}};return i[23].liveButton!==void 0&&(r.ref=i[23].liveButton),e=new Yt({props:r}),Me.push(()=>Je(e,"ref",o)),{c(){H(e.$$.fragment)},m(l,s){z(e,l,s),n=!0},p(l,s){const a={};s[1]&8192&&(a.tooltipContent=l[44]),s[0]&2097152|s[6]&128&&(a.$$scope={dirty:s,ctx:l}),!t&&s[0]&8388608&&(t=!0,a.ref=l[23].liveButton,Qe(()=>t=!1)),e.$set(a)},i(l){n||(h(e.$$.fragment,l),n=!0)},o(l){p(e.$$.fragment,l),n=!1},d(l){F(e,l)}}}function n5(i){let e,t;return e=new cc({props:{isActiveLive:i[21],click:i[115],isMobile:!1}}),{c(){H(e.$$.fragment)},m(n,o){z(e,n,o),t=!0},p(n,o){const r={};o[0]&2097152&&(r.isActiveLive=n[21]),e.$set(r)},i(n){t||(h(e.$$.fragment,n),t=!0)},o(n){p(e.$$.fragment,n),t=!1},d(n){F(e,n)}}}function ra(i){let e,t,n;function o(l){i[164](l)}let r={isMobile:!1,showDuration:i[49],position:i[4]?i[73]:i[74],duration:i[4]?i[75]:i[76]};return i[23].time!==void 0&&(r.ref=i[23].time),e=new nc({props:r}),Me.push(()=>Je(e,"ref",o)),{c(){H(e.$$.fragment)},m(l,s){z(e,l,s),n=!0},p(l,s){const a={};s[1]&262144&&(a.showDuration=l[49]),s[0]&16|s[2]&6144&&(a.position=l[4]?l[73]:l[74]),s[0]&16|s[2]&24576&&(a.duration=l[4]?l[75]:l[76]),!t&&s[0]&8388608&&(t=!0,a.ref=l[23].time,Qe(()=>t=!1)),e.$set(a)},i(l){n||(h(e.$$.fragment,l),n=!0)},o(l){p(e.$$.fragment,l),n=!1},d(l){F(e,l)}}}function sa(i){let e,t;return e=new hc({props:{position:i[74],duration:i[76],timeCodes:i[95]}}),{c(){H(e.$$.fragment)},m(n,o){z(e,n,o),t=!0},p(n,o){const r={};o[2]&4096&&(r.position=n[74]),o[2]&16384&&(r.duration=n[76]),e.$set(r)},i(n){t||(h(e.$$.fragment,n),t=!0)},o(n){p(e.$$.fragment,n),t=!1},d(n){F(e,n)}}}function o5(i){let e,t,n=i[20]&&sa(i);return{c(){n&&n.c(),e=Et()},m(o,r){n&&n.m(o,r),C(o,e,r),t=!0},p(o,r){o[20]?n?(n.p(o,r),r[0]&1048576&&h(n,1)):(n=sa(o),n.c(),h(n,1),n.m(e.parentNode,e)):n&&(pe(),p(n,1,1,()=>{n=null}),ve())},i(o){t||(h(n),t=!0)},o(o){p(n),t=!1},d(o){o&&y(e),n&&n.d(o)}}}function l5(i){var n;let e,t;return e=new bc({props:{iconUrl:i[186],ariaLabel:(n=i[187])!=null?n:i[190],testId:i[188],onClick:i[189]}}),{c(){H(e.$$.fragment)},m(o,r){z(e,o,r),t=!0},p(o,r){var s;const l={};r[0]&16777216&&(l.iconUrl=o[186]),r[0]&16777216&&(l.ariaLabel=(s=o[187])!=null?s:o[190]),r[0]&16777216&&(l.testId=o[188]),r[0]&16777216&&(l.onClick=o[189]),e.$set(l)},i(o){t||(h(e.$$.fragment,o),t=!0)},o(o){p(e.$$.fragment,o),t=!1},d(o){F(e,o)}}}function aa(i){let e,t;return e=new Yt({props:{tooltipContent:i[190],controlInfo:i[94].additionalButtons[i[192]],width:40,$$slots:{default:[l5]},$$scope:{ctx:i}}}),{c(){H(e.$$.fragment)},m(n,o){z(e,n,o),t=!0},p(n,o){const r={};o[0]&16777216&&(r.tooltipContent=n[190]),o[0]&16777216|o[6]&128&&(r.$$scope={dirty:o,ctx:n}),e.$set(r)},i(n){t||(h(e.$$.fragment,n),t=!0)},o(n){p(e.$$.fragment,n),t=!1},d(n){F(e,n)}}}function ua(i){let e,t,n;function o(l){i[167](l)}let r={disabled:!i[6],controlInfo:i[94].vkLogo,tooltipContent:i[45],$$slots:{default:[r5]},$$scope:{ctx:i}};return i[23].vkLogo!==void 0&&(r.ref=i[23].vkLogo),e=new Yt({props:r}),Me.push(()=>Je(e,"ref",o)),{c(){H(e.$$.fragment)},m(l,s){z(e,l,s),n=!0},p(l,s){const a={};s[0]&64&&(a.disabled=!l[6]),s[1]&16384&&(a.tooltipContent=l[45]),s[0]&192|s[6]&128&&(a.$$scope={dirty:s,ctx:l}),!t&&s[0]&8388608&&(t=!0,a.ref=l[23].vkLogo,Qe(()=>t=!1)),e.$set(a)},i(l){n||(h(e.$$.fragment,l),n=!0)},o(l){p(e.$$.fragment,l),n=!1},d(l){F(e,l)}}}function r5(i){let e,t;return e=new ac({props:{click:i[80],logoClickable:i[6],videoLogoUrl:i[7]}}),{c(){H(e.$$.fragment)},m(n,o){z(e,n,o),t=!0},p(n,o){const r={};o[0]&64&&(r.logoClickable=n[6]),o[0]&128&&(r.videoLogoUrl=n[7]),e.$set(r)},i(n){t||(h(e.$$.fragment,n),t=!0)},o(n){p(e.$$.fragment,n),t=!1},d(n){F(e,n)}}}function s5(i){let e,t;return e=new Mh({props:{isAudioAvailable:i[71],click:i[117]}}),{c(){H(e.$$.fragment)},m(n,o){z(e,n,o),t=!0},p(n,o){const r={};o[2]&512&&(r.isAudioAvailable=n[71]),e.$set(r)},i(n){t||(h(e.$$.fragment,n),t=!0)},o(n){p(e.$$.fragment,n),t=!1},d(n){F(e,n)}}}function ca(i){let e,t,n;function o(l){i[169](l)}let r={controlInfo:i[94].subtitles,tooltipContent:i[46],$$slots:{default:[a5]},$$scope:{ctx:i}};return i[23].subtitles!==void 0&&(r.ref=i[23].subtitles),e=new Yt({props:r}),Me.push(()=>Je(e,"ref",o)),{c(){H(e.$$.fragment)},m(l,s){z(e,l,s),n=!0},p(l,s){const a={};s[1]&32768&&(a.tooltipContent=l[46]),s[0]&262144|s[6]&128&&(a.$$scope={dirty:s,ctx:l}),!t&&s[0]&8388608&&(t=!0,a.ref=l[23].subtitles,Qe(()=>t=!1)),e.$set(a)},i(l){n||(h(e.$$.fragment,l),n=!0)},o(l){p(e.$$.fragment,l),n=!1},d(l){F(e,l)}}}function a5(i){let e,t;return e=new G3({props:{isSubtitlesEnabled:i[18],click:i[81]}}),{c(){H(e.$$.fragment)},m(n,o){z(e,n,o),t=!0},p(n,o){const r={};o[0]&262144&&(r.isSubtitlesEnabled=n[18]),e.$set(r)},i(n){t||(h(e.$$.fragment,n),t=!0)},o(n){p(e.$$.fragment,n),t=!1},d(n){F(e,n)}}}function fa(i){var o;let e,t,n;return t=new ic({props:{supportLink:i[10],playerControlsHeight:(o=i[41])==null?void 0:o.clientHeight,returnFocus:i[14]}}),{c(){e=w("div"),H(t.$$.fragment),u(e,"class","settings-menu v-1cwzjrb")},m(r,l){C(r,e,l),z(t,e,null),n=!0},p(r,l){var a;const s={};l[0]&1024&&(s.supportLink=r[10]),l[1]&1024&&(s.playerControlsHeight=(a=r[41])==null?void 0:a.clientHeight),l[0]&16384&&(s.returnFocus=r[14]),t.$set(s)},i(r){n||(h(t.$$.fragment,r),n=!0)},o(r){p(t.$$.fragment,r),n=!1},d(r){r&&y(e),F(t)}}}function da(i){let e,t,n;function o(l){i[170](l)}let r={controlInfo:i[94].settings,tooltipContent:i[78]?void 0:re("tooltip_settings_off"),$$slots:{default:[u5]},$$scope:{ctx:i}};return i[23].settings!==void 0&&(r.ref=i[23].settings),e=new Yt({props:r}),Me.push(()=>Je(e,"ref",o)),{c(){H(e.$$.fragment)},m(l,s){z(e,l,s),n=!0},p(l,s){const a={};s[2]&65536&&(a.tooltipContent=l[78]?void 0:re("tooltip_settings_off")),s[6]&128&&(a.$$scope={dirty:s,ctx:l}),!t&&s[0]&8388608&&(t=!0,a.ref=l[23].settings,Qe(()=>t=!1)),e.$set(a)},i(l){n||(h(e.$$.fragment,l),n=!0)},o(l){p(e.$$.fragment,l),n=!1},d(l){F(e,l)}}}function u5(i){let e,t;return e=new ir({}),{c(){H(e.$$.fragment)},m(n,o){z(e,n,o),t=!0},i(n){t||(h(e.$$.fragment,n),t=!0)},o(n){p(e.$$.fragment,n),t=!1},d(n){F(e,n)}}}function ma(i){let e,t,n;function o(l){i[171](l)}let r={controlInfo:i[94].fullscreen,tooltipContent:i[47],$$slots:{default:[c5]},$$scope:{ctx:i}};return i[23].fullscreen!==void 0&&(r.ref=i[23].fullscreen),e=new Yt({props:r}),Me.push(()=>Je(e,"ref",o)),{c(){H(e.$$.fragment)},m(l,s){z(e,l,s),n=!0},p(l,s){const a={};s[1]&65536&&(a.tooltipContent=l[47]),s[0]&67117056|s[6]&128&&(a.$$scope={dirty:s,ctx:l}),!t&&s[0]&8388608&&(t=!0,a.ref=l[23].fullscreen,Qe(()=>t=!1)),e.$set(a)},i(l){n||(h(e.$$.fragment,l),n=!0)},o(l){p(e.$$.fragment,l),n=!1},d(l){F(e,l)}}}function c5(i){let e,t;return e=new rc({props:{click:i[13],isFullscreen:i[26]}}),{c(){H(e.$$.fragment)},m(n,o){z(e,n,o),t=!0},p(n,o){const r={};o[0]&8192&&(r.click=n[13]),o[0]&67108864&&(r.isFullscreen=n[26]),e.$set(r)},i(n){t||(h(e.$$.fragment,n),t=!0)},o(n){p(e.$$.fragment,n),t=!1},d(n){F(e,n)}}}function ha(i){let e,t,n;function o(l){i[172](l)}let r={controlInfo:i[94].chromecast,tooltipContent:i[48],$$slots:{default:[f5]},$$scope:{ctx:i}};return i[23].chromecast!==void 0&&(r.ref=i[23].chromecast),e=new Yt({props:r}),Me.push(()=>Je(e,"ref",o)),{c(){H(e.$$.fragment)},m(l,s){z(e,l,s),n=!0},p(l,s){const a={};s[1]&131072&&(a.tooltipContent=l[48]),s[0]&33554432|s[6]&128&&(a.$$scope={dirty:s,ctx:l}),!t&&s[0]&8388608&&(t=!0,a.ref=l[23].chromecast,Qe(()=>t=!1)),e.$set(a)},i(l){n||(h(e.$$.fragment,l),n=!0)},o(l){p(e.$$.fragment,l),n=!1},d(l){F(e,l)}}}function f5(i){let e,t;return e=new uc({props:{isMobile:!1,state:i[25],click:i[114]}}),{c(){H(e.$$.fragment)},m(n,o){z(e,n,o),t=!0},p(n,o){const r={};o[0]&33554432&&(r.state=n[25]),e.$set(r)},i(n){t||(h(e.$$.fragment,n),t=!0)},o(n){p(e.$$.fragment,n),t=!1},d(n){F(e,n)}}}function d5(i){let e,t,n,o,r,l,s,a,c,f,d,g,v,b,S,_,A,E,V,B,le,O,q,D,me,ue,Z,fe,J;t=new mc({props:{isHidden:!i[40],isAds:i[4],canRewindLive:i[5],isRewindableLive:i[28]}});let T=i[34]&&ta(i),I=i[31]&&ia(i),se=i[32]&&na(i),G=i[33]&&oa(i),ye=i[107]&&Qv(i),ae=!i[4]&&i[29]&&la(i),Y=i[19]&&ra(i);function oe(X){i[165](X)}let Ne={className:"w-max",disabled:!i[20],controlInfo:i[94].episodes,tooltipContent:re("tooltip_episodes"),$$slots:{default:[o5]},$$scope:{ctx:i}};i[23].episodes!==void 0&&(Ne.ref=i[23].episodes),v=new Yt({props:Ne}),Me.push(()=>Je(v,"ref",oe));let N=Gt(i[24]),ce=[];for(let X=0;X<N.length;X+=1)ce[X]=aa(ea(i,N,X));const k=X=>p(ce[X],1,1,()=>{ce[X]=null});let $=i[38]&&ua(i);function Fe(X){i[168](X)}let Te={$$slots:{default:[s5]},$$scope:{ctx:i}};i[23].volume!==void 0&&(Te.ref=i[23].volume),B=new Yt({props:Te}),Me.push(()=>Je(B,"ref",Fe));let Ve=i[36]&&ca(i),Ae=!i[77]&&!i[4]&&fa(i),be=i[37]&&da(i),Ee=i[39]&&ma(i),Pe=i[35]&&ha(i);return{c(){e=w("div"),H(t.$$.fragment),n=R(),o=w("div"),r=w("div"),T&&T.c(),l=R(),I&&I.c(),s=R(),se&&se.c(),a=R(),G&&G.c(),c=R(),ye&&ye.c(),f=R(),ae&&ae.c(),d=R(),Y&&Y.c(),g=R(),H(v.$$.fragment),_=R(),A=w("div");for(let X=0;X<ce.length;X+=1)ce[X].c();E=R(),$&&$.c(),V=R(),H(B.$$.fragment),O=R(),Ve&&Ve.c(),q=R(),Ae&&Ae.c(),D=R(),be&&be.c(),me=R(),Ee&&Ee.c(),ue=R(),Pe&&Pe.c(),u(r,"class","controls-left v-1cwzjrb"),uo(()=>i[166].call(r)),u(A,"class","controls-right v-1cwzjrb"),u(o,"class","controls v-1cwzjrb"),u(e,"class","wrapper-bottom v-1cwzjrb"),L(e,"hidden",i[1]),L(e,"controls-hidden",!i[3]),L(e,"no-smooth",i[2])},m(X,j){C(X,e,j),z(t,e,null),m(e,n),m(e,o),m(o,r),T&&T.m(r,null),m(r,l),I&&I.m(r,null),m(r,s),se&&se.m(r,null),m(r,a),G&&G.m(r,null),m(r,c),ye&&ye.m(r,null),m(r,f),ae&&ae.m(r,null),m(r,d),Y&&Y.m(r,null),m(r,g),z(v,r,null),S=Kl(r,i[166].bind(r)),m(o,_),m(o,A);for(let He=0;He<ce.length;He+=1)ce[He]&&ce[He].m(A,null);m(A,E),$&&$.m(A,null),m(A,V),z(B,A,null),m(A,O),Ve&&Ve.m(A,null),m(A,q),Ae&&Ae.m(A,null),m(A,D),be&&be.m(A,null),m(A,me),Ee&&Ee.m(A,null),m(A,ue),Pe&&Pe.m(A,null),i[173](o),i[174](e),Z=!0,fe||(J=[Se(e,"pointermove",i[116]),Se(e,"pointerenter",i[116])],fe=!0)},p(X,j){const He={};j[1]&512&&(He.isHidden=!X[40]),j[0]&16&&(He.isAds=X[4]),j[0]&32&&(He.canRewindLive=X[5]),j[0]&268435456&&(He.isRewindableLive=X[28]),t.$set(He),X[34]?T?(T.p(X,j),j[1]&8&&h(T,1)):(T=ta(X),T.c(),h(T,1),T.m(r,l)):T&&(pe(),p(T,1,1,()=>{T=null}),ve()),X[31]?I?(I.p(X,j),j[1]&1&&h(I,1)):(I=ia(X),I.c(),h(I,1),I.m(r,s)):I&&(pe(),p(I,1,1,()=>{I=null}),ve()),X[32]?se?(se.p(X,j),j[1]&2&&h(se,1)):(se=na(X),se.c(),h(se,1),se.m(r,a)):se&&(pe(),p(se,1,1,()=>{se=null}),ve()),X[33]?G?(G.p(X,j),j[1]&4&&h(G,1)):(G=oa(X),G.c(),h(G,1),G.m(r,c)):G&&(pe(),p(G,1,1,()=>{G=null}),ve()),X[107]&&ye.p(X,j),!X[4]&&X[29]?ae?(ae.p(X,j),j[0]&536870928&&h(ae,1)):(ae=la(X),ae.c(),h(ae,1),ae.m(r,d)):ae&&(pe(),p(ae,1,1,()=>{ae=null}),ve()),X[19]?Y?(Y.p(X,j),j[0]&524288&&h(Y,1)):(Y=ra(X),Y.c(),h(Y,1),Y.m(r,g)):Y&&(pe(),p(Y,1,1,()=>{Y=null}),ve());const We={};if(j[0]&1048576&&(We.disabled=!X[20]),j[0]&1048576|j[2]&20480|j[6]&128&&(We.$$scope={dirty:j,ctx:X}),!b&&j[0]&8388608&&(b=!0,We.ref=X[23].episodes,Qe(()=>b=!1)),v.$set(We),j[0]&16777216|j[3]&2){N=Gt(X[24]);let Ue;for(Ue=0;Ue<N.length;Ue+=1){const gt=ea(X,N,Ue);ce[Ue]?(ce[Ue].p(gt,j),h(ce[Ue],1)):(ce[Ue]=aa(gt),ce[Ue].c(),h(ce[Ue],1),ce[Ue].m(A,E))}for(pe(),Ue=N.length;Ue<ce.length;Ue+=1)k(Ue);ve()}X[38]?$?($.p(X,j),j[1]&128&&h($,1)):($=ua(X),$.c(),h($,1),$.m(A,V)):$&&(pe(),p($,1,1,()=>{$=null}),ve());const rt={};j[2]&512|j[6]&128&&(rt.$$scope={dirty:j,ctx:X}),!le&&j[0]&8388608&&(le=!0,rt.ref=X[23].volume,Qe(()=>le=!1)),B.$set(rt),X[36]?Ve?(Ve.p(X,j),j[1]&32&&h(Ve,1)):(Ve=ca(X),Ve.c(),h(Ve,1),Ve.m(A,q)):Ve&&(pe(),p(Ve,1,1,()=>{Ve=null}),ve()),!X[77]&&!X[4]?Ae?(Ae.p(X,j),j[0]&16|j[2]&32768&&h(Ae,1)):(Ae=fa(X),Ae.c(),h(Ae,1),Ae.m(A,D)):Ae&&(pe(),p(Ae,1,1,()=>{Ae=null}),ve()),X[37]?be?(be.p(X,j),j[1]&64&&h(be,1)):(be=da(X),be.c(),h(be,1),be.m(A,me)):be&&(pe(),p(be,1,1,()=>{be=null}),ve()),X[39]?Ee?(Ee.p(X,j),j[1]&256&&h(Ee,1)):(Ee=ma(X),Ee.c(),h(Ee,1),Ee.m(A,ue)):Ee&&(pe(),p(Ee,1,1,()=>{Ee=null}),ve()),X[35]?Pe?(Pe.p(X,j),j[1]&16&&h(Pe,1)):(Pe=ha(X),Pe.c(),h(Pe,1),Pe.m(A,null)):Pe&&(pe(),p(Pe,1,1,()=>{Pe=null}),ve()),(!Z||j[0]&2)&&L(e,"hidden",X[1]),(!Z||j[0]&8)&&L(e,"controls-hidden",!X[3]),(!Z||j[0]&4)&&L(e,"no-smooth",X[2])},i(X){if(!Z){h(t.$$.fragment,X),h(T),h(I),h(se),h(G),h(ye),h(ae),h(Y),h(v.$$.fragment,X);for(let j=0;j<N.length;j+=1)h(ce[j]);h($),h(B.$$.fragment,X),h(Ve),h(Ae),h(be),h(Ee),h(Pe),Z=!0}},o(X){p(t.$$.fragment,X),p(T),p(I),p(se),p(G),p(ye),p(ae),p(Y),p(v.$$.fragment,X),ce=ce.filter(Boolean);for(let j=0;j<ce.length;j+=1)p(ce[j]);p($),p(B.$$.fragment,X),p(Ve),p(Ae),p(be),p(Ee),p(Pe),Z=!1},d(X){X&&y(e),F(t),T&&T.d(),I&&I.d(),se&&se.d(),G&&G.d(),ye&&ye.d(),ae&&ae.d(),Y&&Y.d(),F(v),S(),pn(ce,X),$&&$.d(),F(B),Ve&&Ve.d(),Ae&&Ae.d(),be&&be.d(),Ee&&Ee.d(),Pe&&Pe.d(),i[173](null),i[174](null),fe=!1,Xt(J)}}}function m5(i,e,t){var ar,ur;let n,o,r,l,s,a,c,f,d,g,v,b,S,_,A,E,V,B,le,O,q,D,me,ue,Z,fe,J,T=U,I=()=>(T(),T=Jt(D,Q=>t(131,J=Q)),D),se,G=U,ye=()=>(G(),G=Jt(q,Q=>t(132,se=Q)),q),ae,Y=U,oe=()=>(Y(),Y=Jt(O,Q=>t(133,ae=Q)),O),Ne,N=U,ce=()=>(N(),N=Jt(le,Q=>t(134,Ne=Q)),le),k,$=U,Fe=()=>($(),$=Jt(B,Q=>t(135,k=Q)),B),Te,Ve=U,Ae=()=>(Ve(),Ve=Jt(V,Q=>t(136,Te=Q)),V),be,Ee=U,Pe=()=>(Ee(),Ee=Jt(E,Q=>t(137,be=Q)),E),X,j=U,He=()=>(j(),j=Jt(A,Q=>t(138,X=Q)),A),We,rt=U,Ue=()=>(rt(),rt=Jt(_,Q=>t(139,We=Q)),_),gt,pt=U,Ot=()=>(pt(),pt=Jt(S,Q=>t(140,gt=Q)),S),mt,Re=U,Dt=()=>(Re(),Re=Jt(b,Q=>t(141,mt=Q)),b),te,nt=U,st=()=>(nt(),nt=Jt(v,Q=>t(142,te=Q)),v),Ke,xe=U,$e=()=>(xe(),xe=Jt(g,Q=>t(143,Ke=Q)),g),et,ot=U,Vt=()=>(ot(),ot=Jt(d,Q=>t(144,et=Q)),d),lt,at=U,Ye=()=>(at(),at=Jt(f,Q=>t(145,lt=Q)),f),Xe,xt=U,kt=()=>(xt(),xt=Jt(c,Q=>t(146,Xe=Q)),c),vt,Rt,dt,ni,de,Ce,Le,Mt,$t,Ie,jt,Qt,wt,qt,Ci,qi,Zi,Wi,bt,Pi,en;i.$$.on_destroy.push(()=>T()),i.$$.on_destroy.push(()=>G()),i.$$.on_destroy.push(()=>Y()),i.$$.on_destroy.push(()=>N()),i.$$.on_destroy.push(()=>$()),i.$$.on_destroy.push(()=>Ve()),i.$$.on_destroy.push(()=>Ee()),i.$$.on_destroy.push(()=>j()),i.$$.on_destroy.push(()=>rt()),i.$$.on_destroy.push(()=>pt()),i.$$.on_destroy.push(()=>Re()),i.$$.on_destroy.push(()=>nt()),i.$$.on_destroy.push(()=>xe()),i.$$.on_destroy.push(()=>ot()),i.$$.on_destroy.push(()=>at()),i.$$.on_destroy.push(()=>xt());let{bottomHidden:Gi}=e,{bottomNoSmooth:Pt}=e,{showControls:Ri}=e,{controlsElementRef:Ut=void 0}=e,{isAds:Zt=!1}=e,{canRewindLive:Si}=e,{logoClickable:Ti}=e,{logoHidden:vi}=e,{videoLogoUrl:fi}=e,{showNextPrevButtons:di}=e,{nextButtonActive:gi}=e,{prevButtonActive:li}=e,{isOneVideoPlaylist:Ei=!1}=e,{supportLink:ri}=e,{customFullscreenSupported:bi=!0}=e,{playNextVideo:Oi}=e,{playPrevVideo:_i}=e,{repeatPlaylist:Lt}=e,{toggleFullscreen:si}=e,{returnFocus:Ai}=e,{seekToInteractive:ki}=e,{toggleGraph:wi}=e,{playPrevChapter:Di}=e;const Ze=Nt(),ai=$i(),zi=Ze.actions.internal.toggleMuted,oi=Ze.actions.internal.togglePlay,Ii=Ze.actions.internal.pause,ei=Ze.actions.internal.toggleSubtitle,Be=(ar=Ze.callbacks)==null?void 0:ar.onAudioDoesNotExistHint,yi=(ur=Ze.callbacks)==null?void 0:ur.onAudioDisabledHint,Ki=Ze.state.duration$;W(i,Ki,Q=>t(76,bt=Q));const Yi=Ze.state.positionWithScrubbing$;W(i,Yi,Q=>t(74,Zi=Q));const tn=Ze.state.playbackState$;W(i,tn,Q=>t(147,ni=Q));const Xi=Ze.state.chromecastConnected$;W(i,Xi,Q=>t(77,Pi=Q));const Li=Ze.state.isAudioAvailable$;W(i,Li,Q=>t(71,me=Q));const Qi=Ze.state.isAudioDisabled,Vi=Ze.state.isEnded$;W(i,Vi,Q=>t(152,jt=Q));const zt=Ze.state.isLive$;W(i,zt,Q=>t(29,Le=Q));const mi=Ze.state.isActiveLive$;W(i,mi,Q=>t(148,de=Q));const Mi=Ze.state.isRewindableLive$;W(i,Mi,Q=>t(28,Ce=Q));const fn=Ze.ui.isPictureInPictureActive$;W(i,fn,Q=>t(150,$t=Q));const Wt=Ze.ui.pictureInPictureType$;W(i,Wt,Q=>t(149,Mt=Q));const nn=Ze.ui.settingsMenuVisible;W(i,nn,Q=>t(78,en=Q));const on=Ze.ui.controls,Bi=Ze.actions.internal.getVideoEpisodes(),gn=Ze.state.chromecastState$;W(i,gn,Q=>t(25,vt=Q));const Ji=Ze.state.availableSubtitlesList$;W(i,Ji,Q=>t(151,Ie=Q));const hi=Ze.state.currentSubtitle$;W(i,hi,Q=>t(153,Qt=Q));const bn=on.disabledControls$;W(i,bn,Q=>t(155,qt=Q));const dn=Ze.ads.duration;W(i,dn,Q=>t(75,Wi=Q));const ln=Ze.ads.position;W(i,ln,Q=>t(73,qi=Q));const rn=Ze.ads.playbackState;W(i,rn,Q=>t(154,wt=Q));const sn=Ze.ui.isFullscreen;W(i,sn,Q=>t(26,Rt=Q));const an=Ze.ui.playerSize;W(i,an,Q=>t(129,ue=Q));const _n=Ze.ui.currentGridType$;W(i,_n,Q=>t(130,Z=Q));const kn=Ze.ui.additionalButtons$;W(i,kn,Q=>t(24,fe=Q));const x=Ze.actions.internal.getVideoElement,yt=Ze.actions.internal.replayInteractive,ti=Ze.state.isInteractive,Fi=Ze.state.isInteractiveGraphEnabled,un=Ze.state.isSeekToInteractiveEnable,Hi=Ze.state.isPlayPrevChapterEnabled,Sn=Ze.state.graphIsOpened$;W(i,Sn,Q=>t(27,dt=Q));const ee=Ze.state.playPrevChapterDisabledTooltip,Wn=Ze.state.seekToInteractiveDisabledTooltip$;W(i,Wn,Q=>t(72,Ci=Q));const ho=()=>Ze.actions.internal.toggleChromecast(),po=()=>Ze.actions.internal.switchToActiveLive(),vo=Q=>{Ze.ui.controls.tooltipPointerOffsetX.update(()=>he?Math.min(Math.max(Q.x-he.x,0),he.width):0)};let K,St,xi,Ni,wn,Fn,Gn,go,No,bo,Ro,Oo,_o,Do,Hn,Ln,Kn,zo,ko,Yn,wo,Fo,Bt,P,ie,he;const ge={};let De,ft,At,Ct;const pi=ne.throttleFn(Cc,vr,{leading:!1}),Xn=ne.throttleFn(()=>{Ut&&(he=Ut.getBoundingClientRect())},vr,{leading:!1});function ul(){Qi?yi==null||yi():me?zi():Be==null||Be()}const Ho=ti?yt:Ei?oi:Lt;function Dc(Q){i.$$.not_equal(ge.prevButton,Q)&&(ge.prevButton=Q,t(23,ge))}function zc(Q){i.$$.not_equal(ge.replayButton,Q)&&(ge.replayButton=Q,t(23,ge))}function Fc(Q){i.$$.not_equal(ge.playButton,Q)&&(ge.playButton=Q,t(23,ge))}function Hc(Q){i.$$.not_equal(ge.nextButton,Q)&&(ge.nextButton=Q,t(23,ge))}function Uc(Q){i.$$.not_equal(ge.playPrevChapterButton,Q)&&(ge.playPrevChapterButton=Q,t(23,ge))}function jc(Q){i.$$.not_equal(ge.seekToInteractiveButton,Q)&&(ge.seekToInteractiveButton=Q,t(23,ge))}function qc(Q){i.$$.not_equal(ge.interactiveGraphButton,Q)&&(ge.interactiveGraphButton=Q,t(23,ge))}function Zc(Q){i.$$.not_equal(ge.liveButton,Q)&&(ge.liveButton=Q,t(23,ge))}function Wc(Q){i.$$.not_equal(ge.time,Q)&&(ge.time=Q,t(23,ge))}function Gc(Q){i.$$.not_equal(ge.episodes,Q)&&(ge.episodes=Q,t(23,ge))}function Kc(){ie=this.clientWidth,t(22,ie)}function Yc(Q){i.$$.not_equal(ge.vkLogo,Q)&&(ge.vkLogo=Q,t(23,ge))}function Xc(Q){i.$$.not_equal(ge.volume,Q)&&(ge.volume=Q,t(23,ge))}function Qc(Q){i.$$.not_equal(ge.subtitles,Q)&&(ge.subtitles=Q,t(23,ge))}function Jc(Q){i.$$.not_equal(ge.settings,Q)&&(ge.settings=Q,t(23,ge))}function xc(Q){i.$$.not_equal(ge.fullscreen,Q)&&(ge.fullscreen=Q,t(23,ge))}function $c(Q){i.$$.not_equal(ge.chromecast,Q)&&(ge.chromecast=Q,t(23,ge))}function ef(Q){Me[Q?"unshift":"push"](()=>{Ln=Q,t(41,Ln)})}function tf(Q){Me[Q?"unshift":"push"](()=>{Ut=Q,t(0,Ut)})}return i.$$set=Q=>{"bottomHidden"in Q&&t(1,Gi=Q.bottomHidden),"bottomNoSmooth"in Q&&t(2,Pt=Q.bottomNoSmooth),"showControls"in Q&&t(3,Ri=Q.showControls),"controlsElementRef"in Q&&t(0,Ut=Q.controlsElementRef),"isAds"in Q&&t(4,Zt=Q.isAds),"canRewindLive"in Q&&t(5,Si=Q.canRewindLive),"logoClickable"in Q&&t(6,Ti=Q.logoClickable),"logoHidden"in Q&&t(119,vi=Q.logoHidden),"videoLogoUrl"in Q&&t(7,fi=Q.videoLogoUrl),"showNextPrevButtons"in Q&&t(120,di=Q.showNextPrevButtons),"nextButtonActive"in Q&&t(8,gi=Q.nextButtonActive),"prevButtonActive"in Q&&t(9,li=Q.prevButtonActive),"isOneVideoPlaylist"in Q&&t(121,Ei=Q.isOneVideoPlaylist),"supportLink"in Q&&t(10,ri=Q.supportLink),"customFullscreenSupported"in Q&&t(122,bi=Q.customFullscreenSupported),"playNextVideo"in Q&&t(11,Oi=Q.playNextVideo),"playPrevVideo"in Q&&t(12,_i=Q.playPrevVideo),"repeatPlaylist"in Q&&t(123,Lt=Q.repeatPlaylist),"toggleFullscreen"in Q&&t(13,si=Q.toggleFullscreen),"returnFocus"in Q&&t(14,Ai=Q.returnFocus),"seekToInteractive"in Q&&t(15,ki=Q.seekToInteractive),"toggleGraph"in Q&&t(16,wi=Q.toggleGraph),"playPrevChapter"in Q&&t(17,Di=Q.playPrevChapter)},i.$$.update=()=>{if(i.$$.dirty[5]&1&&t(128,n=qt.has(_t.EPISODE_BUTTON)),i.$$.dirty[5]&1&&t(70,o=qt.has(_t.GRAPH_BUTTON)),i.$$.dirty[5]&1&&t(69,r=qt.has(_t.SEEK_TO_INTERACTIVE_BUTTON)),i.$$.dirty[5]&1&&t(68,l=qt.has(_t.PLAY_BUTTON)),i.$$.dirty[5]&1&&t(67,s=qt.has(_t.REPLAY_BUTTON)),i.$$.dirty[5]&1&&t(66,a=qt.has(_t.PLAY_PREV_CHAPTER_BUTTON)),i.$$.dirty[0]&16|i.$$.dirty[4]&1082130432&&t(30,K=Zt?wt===Kt.PLAYING:ni===ct.PlaybackState.PLAYING),i.$$.dirty[4]&536870912&&t(18,St=Qt.value!=="off"),i.$$.dirty[0]&16|i.$$.dirty[4]&268435456&&t(31,xi=jt&&!Zt||ti),i.$$.dirty[0]&16|i.$$.dirty[4]&268435456&&t(32,Ni=!jt||ti||Zt),i.$$.dirty[4]&64&&t(124,wn=mn(Z,exports.GridTypes.M)),i.$$.dirty[0]&272|i.$$.dirty[3]&134217728|i.$$.dirty[4]&64&&t(33,Fn=di&&mn(Z,exports.GridTypes.M)&&!Zt&&gi),i.$$.dirty[0]&528|i.$$.dirty[3]&134217728|i.$$.dirty[4]&64&&t(34,Gn=di&&mn(Z,exports.GridTypes.M)&&!Zt&&li),i.$$.dirty[0]&33554432|i.$$.dirty[4]&100663360&&t(35,go=vt!==ct.ChromecastState.NOT_AVAILABLE&&!($t&&Mt===An.DocumentPictureInPicture)&&mn(Z,exports.GridTypes.M)&&!ti),i.$$.dirty[4]&134217792&&t(36,No=Ie.length>0&&mn(Z,exports.GridTypes.M)),i.$$.dirty[4]&64&&t(37,bo=mn(Z,exports.GridTypes.S)),i.$$.dirty[3]&67108864&&t(38,Ro=!vi),i.$$.dirty[3]&603979776|i.$$.dirty[4]&100663360&&t(39,Oo=ai.features.fullscreen&&(vi||mn(Z,exports.GridTypes.S))&&!($t&&Mt===An.DocumentPictureInPicture)&&(ti?bi:!0)),i.$$.dirty[0]&536870928&&t(19,_o=(!Le||Zt)&&!(ai.features.interactiveHideTime&&ti)),i.$$.dirty[4]&32&&t(40,Do=ue.width>100),i.$$.dirty[0]&536870928|i.$$.dirty[4]&17&&t(20,Hn=!Zt&&!Le&&!!(Bi!=null&&Bi.length)&&wn&&!n),i.$$.dirty[0]&268435456|i.$$.dirty[4]&16777216&&t(21,Kn=!Ce||de),i.$$.dirty[4]&8388608&&t(42,zo=ni===ct.PlaybackState.PLAYING?re("tooltip_pause"):re("tooltip_play")),i.$$.dirty[0]&134217728&&t(43,ko=re(dt?"tooltip_interactive_graph_on":"tooltip_interactive_graph_off")),i.$$.dirty[0]&2097152&&t(44,Yn=Kn?"":re("tooltip_live")),i.$$.dirty[0]&262144&&t(46,Fo=re(St?"tooltip_subtitles_on":"tooltip_subtitles_off")),i.$$.dirty[0]&67108864&&t(47,Bt=re(Rt?"tooltip_fullscreen_on":"tooltip_fullscreen_off")),i.$$.dirty[0]&33554432&&t(48,P=vt===ct.ChromecastState.CONNECTED?re("tooltip_chromecast_on"):re("tooltip_chromecast_off")),i.$$.dirty[0]&16777216|i.$$.dirty[4]&8388480&&t(125,De={prevButton:Xe?Xe.right-Xe.left:0,replayButton:lt?lt.right-lt.left:0,playButton:et?et.right-et.left:0,nextButton:Ke?Ke.right-Ke.left:0,playPrevChapterButton:te?te.right-te.left:0,seekToInteractiveButton:mt?mt.right-mt.left:0,interactiveGraphButton:gt?gt.right-gt.left:0,liveButton:We?We.right-We.left:0,time:X?X.right-X.left:0,episodes:be?be.right-be.left:0,vkLogo:Te?Te.right-Te.left:0,volume:k?k.right-k.left:0,subtitles:Ne?Ne.right-Ne.left:0,settings:ae?ae.right-ae.left:0,fullscreen:se?se.right-se.left:0,chromecast:J?J.right-J.left:0,additionalButtons:fe.length?fe.reduce(Q=>[...Q,40],[]):[]}),i.$$.dirty[4]&6&&(!ft||ft<De.time)&&t(126,ft=De.time),i.$$.dirty[0]&5767168|i.$$.dirty[4]&70){let Q=0;Hn&&(mn(Z,exports.GridTypes.XL)?Q=De.time:Q=Mf);const nf=De.prevButton+De.playButton+De.nextButton+De.seekToInteractiveButton+De.interactiveGraphButton+De.liveButton+ft+Q;t(127,At=_o&&ie>=nf)}i.$$.dirty[4]&72&&t(49,Ct=At&&mn(Z,exports.GridTypes.M)),i.$$.dirty[0]&8388616|i.$$.dirty[4]&32&&(Xn(),pi(x(),on,ge,Ri))},t(45,wo=ai.logoType===co.VK_VIDEO?re("tooltip_vk_video_logo"):re("tooltip_vk_logo")),kt(t(65,{prevButton:c,replayButton:f,playButton:d,nextButton:g,playPrevChapterButton:v,seekToInteractiveButton:b,interactiveGraphButton:S,liveButton:_,time:A,episodes:E,vkLogo:V,volume:B,subtitles:le,settings:O,fullscreen:q,chromecast:D}=on,c,Ye(t(64,f)),Vt(t(63,d)),$e(t(62,g)),st(t(61,v)),Dt(t(60,b)),Ot(t(59,S)),Ue(t(58,_)),He(t(57,A)),Pe(t(56,E)),Ae(t(55,V)),Fe(t(54,B)),ce(t(53,le)),oe(t(52,O)),ye(t(51,q)),I(t(50,D)))),[Ut,Gi,Pt,Ri,Zt,Si,Ti,fi,gi,li,ri,Oi,_i,si,Ai,ki,wi,Di,St,_o,Hn,Kn,ie,ge,fe,vt,Rt,dt,Ce,Le,K,xi,Ni,Fn,Gn,go,No,bo,Ro,Oo,Do,Ln,zo,ko,Yn,wo,Fo,Bt,P,Ct,D,q,O,le,B,V,E,A,_,S,b,v,g,d,f,c,a,s,l,r,o,me,Ci,qi,Zi,Wi,bt,Pi,en,oi,Ii,ei,Ki,Yi,tn,Xi,Li,Vi,zt,mi,Mi,fn,Wt,nn,on,Bi,gn,Ji,hi,bn,dn,ln,rn,sn,an,_n,kn,ti,Fi,un,Hi,Sn,ee,Wn,ho,po,vo,ul,Ho,vi,di,Ei,bi,Lt,wn,De,ft,At,n,ue,Z,J,se,ae,Ne,k,Te,be,X,We,gt,mt,te,Ke,et,lt,Xe,ni,de,Mt,$t,Ie,jt,Qt,wt,qt,Dc,zc,Fc,Hc,Uc,jc,qc,Zc,Wc,Gc,Kc,Yc,Xc,Qc,Jc,xc,$c,ef,tf]}class h5 extends we{constructor(e){super(),ke(this,e,m5,d5,_e,{bottomHidden:1,bottomNoSmooth:2,showControls:3,controlsElementRef:0,isAds:4,canRewindLive:5,logoClickable:6,logoHidden:119,videoLogoUrl:7,showNextPrevButtons:120,nextButtonActive:8,prevButtonActive:9,isOneVideoPlaylist:121,supportLink:10,customFullscreenSupported:122,playNextVideo:11,playPrevVideo:12,repeatPlaylist:123,toggleFullscreen:13,returnFocus:14,seekToInteractive:15,toggleGraph:16,playPrevChapter:17},Wv,[-1,-1,-1,-1,-1,-1,-1])}}function p5(i){let e,t,n,o;return{c(){e=M("svg"),t=M("g"),n=M("path"),o=M("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(t,"fill","none"),u(t,"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(r,l){C(r,e,l),m(e,t),m(t,n),m(t,o)},p:U,i:U,o:U,d(r){r&&y(e)}}}class v5 extends we{constructor(e){super(),ke(this,e,null,p5,_e,{})}}function g5(i){qe(i,"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 pa(i){let e;return{c(){e=w("span"),e.textContent=`${re("mobile_unmute")}`,u(e,"class","text v-6gmlbk")},m(t,n){C(t,e,n)},p:U,d(t){t&&y(e)}}}function b5(i){let e,t,n,o;var r=i[4];function l(a){return{}}r&&(t=Pn(r,l()));let s=i[1]&&pa();return{c(){e=w("div"),t&&H(t.$$.fragment),n=R(),s&&s.c(),u(e,"class","container v-6gmlbk"),u(e,"aria-hidden","true"),L(e,"expanded",i[1])},m(a,c){C(a,e,c),t&&z(t,e,null),m(e,n),s&&s.m(e,null),o=!0},p(a,c){if(c&16&&r!==(r=a[4])){if(t){pe();const f=t;p(f.$$.fragment,1,0,()=>{F(f,1)}),ve()}r?(t=Pn(r,l()),H(t.$$.fragment),h(t.$$.fragment,1),z(t,e,n)):t=null}a[1]?s?s.p(a,c):(s=pa(),s.c(),s.m(e,null)):s&&(s.d(1),s=null),(!o||c&2)&&L(e,"expanded",a[1])},i(a){o||(t&&h(t.$$.fragment,a),o=!0)},o(a){t&&p(t.$$.fragment,a),o=!1},d(a){a&&y(e),t&&F(t),s&&s.d()}}}function _5(i){let e,t,n;function o(l){i[6](l)}let r={testId:i[1]?"btn-mobile-unmuted":"btn-mobile-muted",click:i[2],ariaLabel:i[3],$$slots:{default:[b5]},$$scope:{ctx:i}};return i[0]!==void 0&&(r.ref=i[0]),e=new ci({props:r}),Me.push(()=>Je(e,"ref",o)),{c(){H(e.$$.fragment)},m(l,s){z(e,l,s),n=!0},p(l,[s]){const a={};s&2&&(a.testId=l[1]?"btn-mobile-unmuted":"btn-mobile-muted"),s&4&&(a.click=l[2]),s&8&&(a.ariaLabel=l[3]),s&146&&(a.$$scope={dirty:s,ctx:l}),!t&&s&1&&(t=!0,a.ref=l[0],Qe(()=>t=!1)),e.$set(a)},i(l){n||(h(e.$$.fragment,l),n=!0)},o(l){p(e.$$.fragment,l),n=!1},d(l){F(e,l)}}}function k5(i,e,t){let{muted:n=!1}=e,{expanded:o=!1}=e,{click:r=ne.noop}=e,{ref:l=void 0}=e,s,a;function c(f){l=f,t(0,l)}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,r=f.click),"ref"in f&&t(0,l=f.ref)},i.$$.update=()=>{i.$$.dirty&32&&t(3,s=re(n?"tooltip_volume":"tooltip_volume_muted")),i.$$.dirty&2&&t(4,a=o?sl:v5)},[l,o,r,s,a,n,c]}class Pc extends we{constructor(e){super(),ke(this,e,k5,_5,_e,{muted:5,expanded:1,click:2,ref:0},g5)}}function w5(i){let e,t,n,o;return{c(){e=M("svg"),t=M("path"),n=M("path"),o=M("path"),u(t,"fill",i[1]),u(t,"clip-rule","evenodd"),u(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 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",i[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"),L(n,"hidden",!i[0]),u(o,"fill",i[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"),L(o,"hidden",i[0]),u(e,"width","24"),u(e,"height","24"),u(e,"fill","none"),u(e,"xmlns","http://www.w3.org/2000/svg")},m(r,l){C(r,e,l),m(e,t),m(e,n),m(e,o)},p(r,[l]){l&2&&u(t,"fill",r[1]),l&2&&u(n,"fill",r[1]),l&1&&L(n,"hidden",!r[0]),l&2&&u(o,"fill",r[1]),l&1&&L(o,"hidden",r[0])},i:U,o:U,d(r){r&&y(e)}}}function y5(i,e,t){let n,{isActive:o=!1}=e;return i.$$set=r=>{"isActive"in r&&t(0,o=r.isActive)},i.$$.update=()=>{i.$$.dirty&1&&t(1,n=o?"#2688EB":"#fff")},[o,n]}class C5 extends we{constructor(e){super(),ke(this,e,y5,w5,_e,{isActive:0})}}function P5(i){let e,t;return e=new C5({props:{isActive:i[1]}}),{c(){H(e.$$.fragment)},m(n,o){z(e,n,o),t=!0},p(n,o){const r={};o&2&&(r.isActive=n[1]),e.$set(r)},i(n){t||(h(e.$$.fragment,n),t=!0)},o(n){p(e.$$.fragment,n),t=!1},d(n){F(e,n)}}}function S5(i){let e,t,n;function o(l){i[3](l)}let r={testId:"btn-pip",ariaLabel:re("menu_pip"),click:i[2],$$slots:{default:[P5]},$$scope:{ctx:i}};return i[0]!==void 0&&(r.ref=i[0]),e=new ci({props:r}),Me.push(()=>Je(e,"ref",o)),{c(){H(e.$$.fragment)},m(l,s){z(e,l,s),n=!0},p(l,[s]){const a={};s&4&&(a.click=l[2]),s&18&&(a.$$scope={dirty:s,ctx:l}),!t&&s&1&&(t=!0,a.ref=l[0],Qe(()=>t=!1)),e.$set(a)},i(l){n||(h(e.$$.fragment,l),n=!0)},o(l){p(e.$$.fragment,l),n=!1},d(l){F(e,l)}}}function T5(i,e,t){let{ref:n=void 0}=e,{isPictureInPictureActive:o=!1}=e,{click:r=ne.noop}=e;function l(s){n=s,t(0,n)}return i.$$set=s=>{"ref"in s&&t(0,n=s.ref),"isPictureInPictureActive"in s&&t(1,o=s.isPictureInPictureActive),"click"in s&&t(2,r=s.click)},[n,o,r,l]}class E5 extends we{constructor(e){super(),ke(this,e,T5,S5,_e,{ref:0,isPictureInPictureActive:1,click:2})}}function A5(i){qe(i,"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 va(i,e,t){const n=i.slice();return n[157]=e[t].iconUrl,n[158]=e[t].ariaLabel,n[159]=e[t].testId,n[160]=e[t].onClick,n[161]=e[t].tooltip,n}function ga(i){let e,t,n,o,r,l,s,a,c,f,d,g,v,b,S,_,A,E=(!i[48]||i[50])&&ba(i),V=Gt(i[53]),B=[];for(let I=0;I<V.length;I+=1)B[I]=_a(va(i,V,I));const le=I=>p(B[I],1,1,()=>{B[I]=null});let O=i[33]&&ka(i),q=i[34]&&wa(i),D=i[54]&&ya(),me=i[36]&&Ca(i),ue=i[8]&&Pa(i),Z=i[31]&&Sa(i),fe=i[30]&&Ta(i),J=i[8]&&Ea(i),T=i[92]&&!i[26]&&Aa(i);return{c(){e=w("div"),t=R(),n=w("div"),E&&E.c(),o=R(),r=w("div");for(let I=0;I<B.length;I+=1)B[I].c();l=R(),O&&O.c(),s=R(),q&&q.c(),a=R(),D&&D.c(),c=R(),me&&me.c(),f=R(),d=w("div"),ue&&ue.c(),g=R(),Z&&Z.c(),v=R(),fe&&fe.c(),b=R(),J&&J.c(),S=R(),T&&T.c(),_=Et(),u(e,"class","overlay-mobile v-1tcstu3"),L(e,"hidden",!i[39]),u(n,"class","wrapper-top-left v-1tcstu3"),L(n,"hidden",!i[3]),L(n,"fullscreen",i[49]),u(r,"class","wrapper-top-right v-1tcstu3"),L(r,"hidden",!i[3]&&!i[24]),L(r,"fullscreen",i[49]),u(d,"class","wrapper-middle v-1tcstu3"),L(d,"hidden",!i[3]||i[26])},m(I,se){C(I,e,se),C(I,t,se),C(I,n,se),E&&E.m(n,null),C(I,o,se),C(I,r,se);for(let G=0;G<B.length;G+=1)B[G]&&B[G].m(r,null);m(r,l),O&&O.m(r,null),m(r,s),q&&q.m(r,null),m(r,a),D&&D.m(r,null),m(r,c),me&&me.m(r,null),C(I,f,se),C(I,d,se),ue&&ue.m(d,null),m(d,g),Z&&Z.m(d,null),m(d,v),fe&&fe.m(d,null),m(d,b),J&&J.m(d,null),C(I,S,se),T&&T.m(I,se),C(I,_,se),A=!0},p(I,se){if((!A||se[1]&256)&&L(e,"hidden",!I[39]),!I[48]||I[50]?E?(E.p(I,se),se[1]&655360&&h(E,1)):(E=ba(I),E.c(),h(E,1),E.m(n,null)):E&&(pe(),p(E,1,1,()=>{E=null}),ve()),(!A||se[0]&8)&&L(n,"hidden",!I[3]),(!A||se[1]&262144)&&L(n,"fullscreen",I[49]),se[1]&4194304){V=Gt(I[53]);let G;for(G=0;G<V.length;G+=1){const ye=va(I,V,G);B[G]?(B[G].p(ye,se),h(B[G],1)):(B[G]=_a(ye),B[G].c(),h(B[G],1),B[G].m(r,l))}for(pe(),G=V.length;G<B.length;G+=1)le(G);ve()}I[33]?O?(O.p(I,se),se[1]&4&&h(O,1)):(O=ka(I),O.c(),h(O,1),O.m(r,s)):O&&(pe(),p(O,1,1,()=>{O=null}),ve()),I[34]?q?(q.p(I,se),se[1]&8&&h(q,1)):(q=wa(I),q.c(),h(q,1),q.m(r,a)):q&&(pe(),p(q,1,1,()=>{q=null}),ve()),I[54]?D?se[1]&8388608&&h(D,1):(D=ya(),D.c(),h(D,1),D.m(r,c)):D&&(pe(),p(D,1,1,()=>{D=null}),ve()),I[36]?me?(me.p(I,se),se[1]&32&&h(me,1)):(me=Ca(I),me.c(),h(me,1),me.m(r,null)):me&&(pe(),p(me,1,1,()=>{me=null}),ve()),(!A||se[0]&16777224)&&L(r,"hidden",!I[3]&&!I[24]),(!A||se[1]&262144)&&L(r,"fullscreen",I[49]),I[8]?ue?(ue.p(I,se),se[0]&256&&h(ue,1)):(ue=Pa(I),ue.c(),h(ue,1),ue.m(d,g)):ue&&(pe(),p(ue,1,1,()=>{ue=null}),ve()),I[31]?Z?(Z.p(I,se),se[1]&1&&h(Z,1)):(Z=Sa(I),Z.c(),h(Z,1),Z.m(d,v)):Z&&(pe(),p(Z,1,1,()=>{Z=null}),ve()),I[30]?fe?(fe.p(I,se),se[0]&1073741824&&h(fe,1)):(fe=Ta(I),fe.c(),h(fe,1),fe.m(d,b)):fe&&(pe(),p(fe,1,1,()=>{fe=null}),ve()),I[8]?J?(J.p(I,se),se[0]&256&&h(J,1)):(J=Ea(I),J.c(),h(J,1),J.m(d,null)):J&&(pe(),p(J,1,1,()=>{J=null}),ve()),(!A||se[0]&67108872)&&L(d,"hidden",!I[3]||I[26]),I[92]&&!I[26]?T?(T.p(I,se),se[0]&67108864&&h(T,1)):(T=Aa(I),T.c(),h(T,1),T.m(_.parentNode,_)):T&&(pe(),p(T,1,1,()=>{T=null}),ve())},i(I){if(!A){h(E);for(let se=0;se<V.length;se+=1)h(B[se]);h(O),h(q),h(D),h(me),h(ue),h(Z),h(fe),h(J),h(T),A=!0}},o(I){p(E),B=B.filter(Boolean);for(let se=0;se<B.length;se+=1)p(B[se]);p(O),p(q),p(D),p(me),p(ue),p(Z),p(fe),p(J),p(T),A=!1},d(I){I&&(y(e),y(t),y(n),y(o),y(r),y(f),y(d),y(S),y(_)),E&&E.d(),pn(B,I),O&&O.d(),q&&q.d(),D&&D.d(),me&&me.d(),ue&&ue.d(),Z&&Z.d(),fe&&fe.d(),J&&J.d(),T&&T.d(I)}}}function ba(i){let e,t,n;function o(l){i[123](l)}let r={muted:i[51],expanded:i[48]&&!i[67]&&i[52],click:i[102]};return i[19].volume!==void 0&&(r.ref=i[19].volume),e=new Pc({props:r}),Me.push(()=>Je(e,"ref",o)),{c(){H(e.$$.fragment)},m(l,s){z(e,l,s),n=!0},p(l,s){const a={};s[1]&1048576&&(a.muted=l[51]),s[1]&2228224&&(a.expanded=l[48]&&!l[67]&&l[52]),!t&&s[0]&524288&&(t=!0,a.ref=l[19].volume,Qe(()=>t=!1)),e.$set(a)},i(l){n||(h(e.$$.fragment,l),n=!0)},o(l){p(e.$$.fragment,l),n=!1},d(l){F(e,l)}}}function _a(i){var n;let e,t;return e=new bc({props:{iconUrl:i[157],ariaLabel:(n=i[158])!=null?n:i[161],testId:i[159],onClick:i[160]}}),{c(){H(e.$$.fragment)},m(o,r){z(e,o,r),t=!0},p(o,r){var s;const l={};r[1]&4194304&&(l.iconUrl=o[157]),r[1]&4194304&&(l.ariaLabel=(s=o[158])!=null?s:o[161]),r[1]&4194304&&(l.testId=o[159]),r[1]&4194304&&(l.onClick=o[160]),e.$set(l)},i(o){t||(h(e.$$.fragment,o),t=!0)},o(o){p(e.$$.fragment,o),t=!1},d(o){F(e,o)}}}function ka(i){let e,t,n;function o(l){i[124](l)}let r={isMobile:!0,click:i[98],state:i[25]};return i[19].chromecast!==void 0&&(r.ref=i[19].chromecast),e=new uc({props:r}),Me.push(()=>Je(e,"ref",o)),{c(){H(e.$$.fragment)},m(l,s){z(e,l,s),n=!0},p(l,s){const a={};s[0]&33554432&&(a.state=l[25]),!t&&s[0]&524288&&(t=!0,a.ref=l[19].chromecast,Qe(()=>t=!1)),e.$set(a)},i(l){n||(h(e.$$.fragment,l),n=!0)},o(l){p(e.$$.fragment,l),n=!1},d(l){F(e,l)}}}function wa(i){let e,t,n;function o(l){i[125](l)}let r={click:i[101],isPictureInPictureActive:i[23]};return i[19].pip!==void 0&&(r.ref=i[19].pip),e=new E5({props:r}),Me.push(()=>Je(e,"ref",o)),{c(){H(e.$$.fragment)},m(l,s){z(e,l,s),n=!0},p(l,s){const a={};s[0]&8388608&&(a.isPictureInPictureActive=l[23]),!t&&s[0]&524288&&(t=!0,a.ref=l[19].pip,Qe(()=>t=!1)),e.$set(a)},i(l){n||(h(e.$$.fragment,l),n=!0)},o(l){p(e.$$.fragment,l),n=!1},d(l){F(e,l)}}}function ya(i){let e,t;return e=new ir({}),{c(){H(e.$$.fragment)},m(n,o){z(e,n,o),t=!0},i(n){t||(h(e.$$.fragment,n),t=!0)},o(n){p(e.$$.fragment,n),t=!1},d(n){F(e,n)}}}function Ca(i){let e,t,n;function o(l){i[126](l)}let r={click:i[61],logoClickable:i[6],videoLogoUrl:i[7]};return i[19].vkLogo!==void 0&&(r.ref=i[19].vkLogo),e=new ac({props:r}),Me.push(()=>Je(e,"ref",o)),{c(){H(e.$$.fragment)},m(l,s){z(e,l,s),n=!0},p(l,s){const a={};s[0]&64&&(a.logoClickable=l[6]),s[0]&128&&(a.videoLogoUrl=l[7]),!t&&s[0]&524288&&(t=!0,a.ref=l[19].vkLogo,Qe(()=>t=!1)),e.$set(a)},i(l){n||(h(e.$$.fragment,l),n=!0)},o(l){p(e.$$.fragment,l),n=!1},d(l){F(e,l)}}}function Pa(i){let e,t,n;function o(l){i[127](l)}let r={click:i[13],type:"prev",disabled:!i[10],isMobile:!0};return i[19].prevButton!==void 0&&(r.ref=i[19].prevButton),e=new al({props:r}),Me.push(()=>Je(e,"ref",o)),{c(){H(e.$$.fragment)},m(l,s){z(e,l,s),n=!0},p(l,s){const a={};s[0]&8192&&(a.click=l[13]),s[0]&1024&&(a.disabled=!l[10]),!t&&s[0]&524288&&(t=!0,a.ref=l[19].prevButton,Qe(()=>t=!1)),e.$set(a)},i(l){n||(h(e.$$.fragment,l),n=!0)},o(l){p(e.$$.fragment,l),n=!1},d(l){F(e,l)}}}function Sa(i){let e,t,n;function o(l){i[128](l)}let r={disabled:i[45],click:i[60],isMobile:!0,isPlaying:i[28]};return i[19].playButton!==void 0&&(r.ref=i[19].playButton),e=new lr({props:r}),Me.push(()=>Je(e,"ref",o)),{c(){H(e.$$.fragment)},m(l,s){z(e,l,s),n=!0},p(l,s){const a={};s[1]&16384&&(a.disabled=l[45]),s[0]&268435456&&(a.isPlaying=l[28]),!t&&s[0]&524288&&(t=!0,a.ref=l[19].playButton,Qe(()=>t=!1)),e.$set(a)},i(l){n||(h(e.$$.fragment,l),n=!0)},o(l){p(e.$$.fragment,l),n=!1},d(l){F(e,l)}}}function Ta(i){let e,t,n;function o(l){i[129](l)}let r={disabled:i[44],click:i[103],isMobile:!0};return i[19].replayButton!==void 0&&(r.ref=i[19].replayButton),e=new rr({props:r}),Me.push(()=>Je(e,"ref",o)),{c(){H(e.$$.fragment)},m(l,s){z(e,l,s),n=!0},p(l,s){const a={};s[1]&8192&&(a.disabled=l[44]),!t&&s[0]&524288&&(t=!0,a.ref=l[19].replayButton,Qe(()=>t=!1)),e.$set(a)},i(l){n||(h(e.$$.fragment,l),n=!0)},o(l){p(e.$$.fragment,l),n=!1},d(l){F(e,l)}}}function Ea(i){let e,t,n;function o(l){i[130](l)}let r={click:i[12],type:"next",disabled:!i[9],isMobile:!0};return i[19].nextButton!==void 0&&(r.ref=i[19].nextButton),e=new al({props:r}),Me.push(()=>Je(e,"ref",o)),{c(){H(e.$$.fragment)},m(l,s){z(e,l,s),n=!0},p(l,s){const a={};s[0]&4096&&(a.click=l[12]),s[0]&512&&(a.disabled=!l[9]),!t&&s[0]&524288&&(t=!0,a.ref=l[19].nextButton,Qe(()=>t=!1)),e.$set(a)},i(l){n||(h(e.$$.fragment,l),n=!0)},o(l){p(e.$$.fragment,l),n=!1},d(l){F(e,l)}}}function Aa(i){let e,t,n,o,r=i[95]&&I5(i),l=i[93]&&L5(i),s=i[94]&&V5(i);return{c(){r&&r.c(),e=R(),l&&l.c(),t=R(),s&&s.c(),n=Et()},m(a,c){r&&r.m(a,c),C(a,e,c),l&&l.m(a,c),C(a,t,c),s&&s.m(a,c),C(a,n,c),o=!0},p(a,c){a[95]&&r.p(a,c),a[93]&&l.p(a,c),a[94]&&s.p(a,c)},i(a){o||(h(r),h(l),h(s),o=!0)},o(a){p(r),p(l),p(s),o=!1},d(a){a&&(y(e),y(t),y(n)),r&&r.d(a),l&&l.d(a),s&&s.d(a)}}}function I5(i){let e,t,n,o,r,l;function s(c){i[131](c)}let a={hidden:!i[3],disabled:i[43],click:i[18]};return i[19].playPrevChapterButton!==void 0&&(a.ref=i[19].playPrevChapterButton),t=new gc({props:a}),Me.push(()=>Je(t,"ref",s)),{c(){e=w("div"),H(t.$$.fragment),u(e,"class","wrapper-middle-left v-1tcstu3"),L(e,"fullscreen",i[49]),L(e,"hidden",!i[3])},m(c,f){C(c,e,f),z(t,e,null),o=!0,r||(l=Se(e,"click",i[104]),r=!0)},p(c,f){const d={};f[0]&8&&(d.hidden=!c[3]),f[1]&4096&&(d.disabled=c[43]),f[0]&262144&&(d.click=c[18]),!n&&f[0]&524288&&(n=!0,d.ref=c[19].playPrevChapterButton,Qe(()=>n=!1)),t.$set(d),(!o||f[1]&262144)&&L(e,"fullscreen",c[49]),(!o||f[0]&8)&&L(e,"hidden",!c[3])},i(c){o||(h(t.$$.fragment,c),o=!0)},o(c){p(t.$$.fragment,c),o=!1},d(c){c&&y(e),F(t),r=!1,l()}}}function L5(i){let e,t,n,o;function r(s){i[132](s)}let l={hidden:!i[3]&&!i[55],disabled:i[47],click:i[17],graphIsOpened:i[55]};return i[19].interactiveGraphButton!==void 0&&(l.ref=i[19].interactiveGraphButton),t=new vc({props:l}),Me.push(()=>Je(t,"ref",r)),{c(){e=w("div"),H(t.$$.fragment),u(e,"class",mf(i[95]?"wrapper-middle-left-second":"wrapper-middle-left")+" v-1tcstu3"),L(e,"fullscreen",i[49]),L(e,"hidden",!i[3]&&!i[55])},m(s,a){C(s,e,a),z(t,e,null),o=!0},p(s,a){const c={};a[0]&8|a[1]&16777216&&(c.hidden=!s[3]&&!s[55]),a[1]&65536&&(c.disabled=s[47]),a[0]&131072&&(c.click=s[17]),a[1]&16777216&&(c.graphIsOpened=s[55]),!n&&a[0]&524288&&(n=!0,c.ref=s[19].interactiveGraphButton,Qe(()=>n=!1)),t.$set(c),(!o||a[1]&262144)&&L(e,"fullscreen",s[49]),(!o||a[0]&8|a[1]&16777216)&&L(e,"hidden",!s[3]&&!s[55])},i(s){o||(h(t.$$.fragment,s),o=!0)},o(s){p(t.$$.fragment,s),o=!1},d(s){s&&y(e),F(t)}}}function V5(i){let e,t,n,o,r,l;function s(c){i[133](c)}let a={hidden:!i[3],disabled:i[46],click:i[16]};return i[19].seekToInteractiveButton!==void 0&&(a.ref=i[19].seekToInteractiveButton),t=new pc({props:a}),Me.push(()=>Je(t,"ref",s)),{c(){e=w("div"),H(t.$$.fragment),u(e,"class","wrapper-middle-right v-1tcstu3"),L(e,"fullscreen",i[49]),L(e,"hidden",!i[3])},m(c,f){C(c,e,f),z(t,e,null),o=!0,r||(l=Se(e,"click",i[105]),r=!0)},p(c,f){const d={};f[0]&8&&(d.hidden=!c[3]),f[1]&32768&&(d.disabled=c[46]),f[0]&65536&&(d.click=c[16]),!n&&f[0]&524288&&(n=!0,d.ref=c[19].seekToInteractiveButton,Qe(()=>n=!1)),t.$set(d),(!o||f[1]&262144)&&L(e,"fullscreen",c[49]),(!o||f[0]&8)&&L(e,"hidden",!c[3])},i(c){o||(h(t.$$.fragment,c),o=!0)},o(c){p(t.$$.fragment,c),o=!1},d(c){c&&y(e),F(t),r=!1,l()}}}function Ia(i){let e,t,n,o,r,l=i[50]&&La(i),s=i[29]&&Va(i);return o=new dc({props:{position:i[56],duration:i[57]}}),{c(){l&&l.c(),e=R(),s&&s.c(),t=R(),n=w("div"),H(o.$$.fragment),u(n,"class","wrapper-bottom ads-timeline-mobile v-1tcstu3"),L(n,"fullscreen",i[49])},m(a,c){l&&l.m(a,c),C(a,e,c),s&&s.m(a,c),C(a,t,c),C(a,n,c),z(o,n,null),r=!0},p(a,c){a[50]?l?(l.p(a,c),c[1]&524288&&h(l,1)):(l=La(a),l.c(),h(l,1),l.m(e.parentNode,e)):l&&(pe(),p(l,1,1,()=>{l=null}),ve()),a[29]?s?(s.p(a,c),c[0]&536870912&&h(s,1)):(s=Va(a),s.c(),h(s,1),s.m(t.parentNode,t)):s&&(pe(),p(s,1,1,()=>{s=null}),ve());const f={};c[1]&33554432&&(f.position=a[56]),c[1]&67108864&&(f.duration=a[57]),o.$set(f),(!r||c[1]&262144)&&L(n,"fullscreen",a[49])},i(a){r||(h(l),h(s),h(o.$$.fragment,a),r=!0)},o(a){p(l),p(s),p(o.$$.fragment,a),r=!1},d(a){a&&(y(e),y(t),y(n)),l&&l.d(a),s&&s.d(a),F(o)}}}function La(i){let e,t,n,o;function r(s){i[134](s)}let l={muted:i[51],expanded:!1,click:i[102]};return i[19].volume!==void 0&&(l.ref=i[19].volume),t=new Pc({props:l}),Me.push(()=>Je(t,"ref",r)),{c(){e=w("div"),H(t.$$.fragment),u(e,"class","wrapper-top-right v-1tcstu3"),L(e,"fullscreen",i[49])},m(s,a){C(s,e,a),z(t,e,null),o=!0},p(s,a){const c={};a[1]&1048576&&(c.muted=s[51]),!n&&a[0]&524288&&(n=!0,c.ref=s[19].volume,Qe(()=>n=!1)),t.$set(c),(!o||a[1]&262144)&&L(e,"fullscreen",s[49])},i(s){o||(h(t.$$.fragment,s),o=!0)},o(s){p(t.$$.fragment,s),o=!1},d(s){s&&y(e),F(t)}}}function Va(i){let e,t,n,o;function r(s){i[135](s)}let l={disabled:i[45],click:i[60],isMobile:!0,isPlaying:!i[29]};return i[19].playButton!==void 0&&(l.ref=i[19].playButton),t=new lr({props:l}),Me.push(()=>Je(t,"ref",r)),{c(){e=w("div"),H(t.$$.fragment),u(e,"class","wrapper-middle v-1tcstu3")},m(s,a){C(s,e,a),z(t,e,null),o=!0},p(s,a){const c={};a[1]&16384&&(c.disabled=s[45]),a[0]&536870912&&(c.isPlaying=!s[29]),!n&&a[0]&524288&&(n=!0,c.ref=s[19].playButton,Qe(()=>n=!1)),t.$set(c)},i(s){o||(h(t.$$.fragment,s),o=!0)},o(s){p(t.$$.fragment,s),o=!1},d(s){s&&y(e),F(t)}}}function M5(i){let e,t,n;function o(l){i[136](l)}let r={disabled:i[44],controlInfo:i[80].replayButton,$$slots:{default:[B5]},$$scope:{ctx:i}};return i[19].replayButton!==void 0&&(r.ref=i[19].replayButton),e=new Yt({props:r}),Me.push(()=>Je(e,"ref",o)),{c(){H(e.$$.fragment)},m(l,s){z(e,l,s),n=!0},p(l,s){const a={};s[1]&8192&&(a.disabled=l[44]),s[1]&8192|s[5]&512&&(a.$$scope={dirty:s,ctx:l}),!t&&s[0]&524288&&(t=!0,a.ref=l[19].replayButton,Qe(()=>t=!1)),e.$set(a)},i(l){n||(h(e.$$.fragment,l),n=!0)},o(l){p(e.$$.fragment,l),n=!1},d(l){F(e,l)}}}function B5(i){let e,t;return e=new rr({props:{disabled:i[44],click:i[91]}}),{c(){H(e.$$.fragment)},m(n,o){z(e,n,o),t=!0},p(n,o){const r={};o[1]&8192&&(r.disabled=n[44]),e.$set(r)},i(n){t||(h(e.$$.fragment,n),t=!0)},o(n){p(e.$$.fragment,n),t=!1},d(n){F(e,n)}}}function Ma(i){let e,t,n;function o(l){i[137](l)}let r={controlInfo:i[80].liveButton,$$slots:{default:[N5]},$$scope:{ctx:i}};return i[19].liveButton!==void 0&&(r.ref=i[19].liveButton),e=new Yt({props:r}),Me.push(()=>Je(e,"ref",o)),{c(){H(e.$$.fragment)},m(l,s){z(e,l,s),n=!0},p(l,s){const a={};s[1]&2048|s[5]&512&&(a.$$scope={dirty:s,ctx:l}),!t&&s[0]&524288&&(t=!0,a.ref=l[19].liveButton,Qe(()=>t=!1)),e.$set(a)},i(l){n||(h(e.$$.fragment,l),n=!0)},o(l){p(e.$$.fragment,l),n=!1},d(l){F(e,l)}}}function N5(i){let e,t;return e=new cc({props:{isActiveLive:i[42],click:i[99],isMobile:!0}}),{c(){H(e.$$.fragment)},m(n,o){z(e,n,o),t=!0},p(n,o){const r={};o[1]&2048&&(r.isActiveLive=n[42]),e.$set(r)},i(n){t||(h(e.$$.fragment,n),t=!0)},o(n){p(e.$$.fragment,n),t=!1},d(n){F(e,n)}}}function Ba(i){let e,t,n;function o(l){i[138](l)}let r={showDuration:i[32],position:i[4]?i[56]:i[58],duration:i[4]?i[57]:i[59],isMobile:!0};return i[19].time!==void 0&&(r.ref=i[19].time),e=new nc({props:r}),Me.push(()=>Je(e,"ref",o)),{c(){H(e.$$.fragment)},m(l,s){z(e,l,s),n=!0},p(l,s){const a={};s[1]&2&&(a.showDuration=l[32]),s[0]&16|s[1]&167772160&&(a.position=l[4]?l[56]:l[58]),s[0]&16|s[1]&335544320&&(a.duration=l[4]?l[57]:l[59]),!t&&s[0]&524288&&(t=!0,a.ref=l[19].time,Qe(()=>t=!1)),e.$set(a)},i(l){n||(h(e.$$.fragment,l),n=!0)},o(l){p(e.$$.fragment,l),n=!1},d(l){F(e,l)}}}function Na(i){let e,t,n,o;return n=new hc({props:{position:i[58],duration:i[59],timeCodes:i[81]}}),{c(){e=w("div"),e.textContent="\xB7",t=R(),H(n.$$.fragment),u(e,"aria-hidden","true")},m(r,l){C(r,e,l),C(r,t,l),z(n,r,l),o=!0},p(r,l){const s={};l[1]&134217728&&(s.position=r[58]),l[1]&268435456&&(s.duration=r[59]),n.$set(s)},i(r){o||(h(n.$$.fragment,r),o=!0)},o(r){p(n.$$.fragment,r),o=!1},d(r){r&&(y(e),y(t)),F(n,r)}}}function R5(i){let e,t,n=i[40]&&Na(i);return{c(){n&&n.c(),e=Et()},m(o,r){n&&n.m(o,r),C(o,e,r),t=!0},p(o,r){o[40]?n?(n.p(o,r),r[1]&512&&h(n,1)):(n=Na(o),n.c(),h(n,1),n.m(e.parentNode,e)):n&&(pe(),p(n,1,1,()=>{n=null}),ve())},i(o){t||(h(n),t=!0)},o(o){p(n),t=!1},d(o){o&&y(e),n&&n.d(o)}}}function Ra(i){let e,t,n;function o(l){i[140](l)}let r={controlInfo:i[80].settings,$$slots:{default:[O5]},$$scope:{ctx:i}};return i[19].settings!==void 0&&(r.ref=i[19].settings),e=new Yt({props:r}),Me.push(()=>Je(e,"ref",o)),{c(){H(e.$$.fragment)},m(l,s){z(e,l,s),n=!0},p(l,s){const a={};s[5]&512&&(a.$$scope={dirty:s,ctx:l}),!t&&s[0]&524288&&(t=!0,a.ref=l[19].settings,Qe(()=>t=!1)),e.$set(a)},i(l){n||(h(e.$$.fragment,l),n=!0)},o(l){p(e.$$.fragment,l),n=!1},d(l){F(e,l)}}}function O5(i){let e,t;return e=new ir({}),{c(){H(e.$$.fragment)},m(n,o){z(e,n,o),t=!0},i(n){t||(h(e.$$.fragment,n),t=!0)},o(n){p(e.$$.fragment,n),t=!1},d(n){F(e,n)}}}function Oa(i){let e,t,n;function o(l){i[141](l)}let r={controlInfo:i[80].fullscreen,$$slots:{default:[D5]},$$scope:{ctx:i}};return i[19].fullscreen!==void 0&&(r.ref=i[19].fullscreen),e=new Yt({props:r}),Me.push(()=>Je(e,"ref",o)),{c(){H(e.$$.fragment)},m(l,s){z(e,l,s),n=!0},p(l,s){const a={};s[0]&16384|s[1]&262144|s[5]&512&&(a.$$scope={dirty:s,ctx:l}),!t&&s[0]&524288&&(t=!0,a.ref=l[19].fullscreen,Qe(()=>t=!1)),e.$set(a)},i(l){n||(h(e.$$.fragment,l),n=!0)},o(l){p(e.$$.fragment,l),n=!1},d(l){F(e,l)}}}function D5(i){let e,t;return e=new rc({props:{click:i[14],isFullscreen:i[49]}}),{c(){H(e.$$.fragment)},m(n,o){z(e,n,o),t=!0},p(n,o){const r={};o[0]&16384&&(r.click=n[14]),o[1]&262144&&(r.isFullscreen=n[49]),e.$set(r)},i(n){t||(h(e.$$.fragment,n),t=!0)},o(n){p(e.$$.fragment,n),t=!1},d(n){F(e,n)}}}function Da(i){let e,t,n;return t=new ic({props:{supportLink:i[11],returnFocus:i[15]}}),{c(){e=w("div"),H(t.$$.fragment),u(e,"class","settings-mobile v-1tcstu3")},m(o,r){C(o,e,r),z(t,e,null),n=!0},p(o,r){const l={};r[0]&2048&&(l.supportLink=o[11]),r[0]&32768&&(l.returnFocus=o[15]),t.$set(l)},i(o){n||(h(t.$$.fragment,o),n=!0)},o(o){p(t.$$.fragment,o),n=!1},d(o){o&&y(e),F(t)}}}function z5(i){let e,t,n,o,r,l,s,a,c,f,d,g,v,b,S,_,A,E,V,B=!i[4]&&ga(i),le=i[4]&&i[27]!==Kt.INACTIVE&&Ia(i),O=i[92]&&M5(i),q=!i[4]&&i[21]&&Ma(i),D=i[38]&&Ba(i);function me(T){i[139](T)}let ue={className:"w-max",disabled:!i[40],controlInfo:i[80].episodes,$$slots:{default:[R5]},$$scope:{ctx:i}};i[19].episodes!==void 0&&(ue.ref=i[19].episodes),c=new Yt({props:ue}),Me.push(()=>Je(c,"ref",me));let Z=i[35]&&Ra(i),fe=i[37]&&Oa(i);b=new mc({props:{isAds:i[4],canRewindLive:i[5],isRewindableLive:i[20]}});let J=i[22]&&Da(i);return{c(){B&&B.c(),e=R(),le&&le.c(),t=R(),n=w("div"),o=w("div"),r=w("div"),O&&O.c(),l=R(),q&&q.c(),s=R(),D&&D.c(),a=R(),H(c.$$.fragment),d=R(),Z&&Z.c(),g=R(),fe&&fe.c(),v=R(),H(b.$$.fragment),S=R(),J&&J.c(),_=Et(),u(r,"class","controls v-1tcstu3"),L(r,"mobile",!0),u(o,"class","controls-wrapper v-1tcstu3"),L(o,"fullscreen",i[49]),u(n,"class","wrapper-bottom v-1tcstu3"),L(n,"hidden",i[1]),L(n,"controls-hidden",!i[3]),L(n,"no-smooth",i[2]),L(n,"mobile",!0)},m(T,I){B&&B.m(T,I),C(T,e,I),le&&le.m(T,I),C(T,t,I),C(T,n,I),m(n,o),m(o,r),O&&O.m(r,null),m(r,l),q&&q.m(r,null),m(r,s),D&&D.m(r,null),m(r,a),z(c,r,null),m(r,d),Z&&Z.m(r,null),m(r,g),fe&&fe.m(r,null),i[142](r),m(o,v),z(b,o,null),i[143](n),C(T,S,I),J&&J.m(T,I),C(T,_,I),A=!0,E||(V=[Se(n,"pointermove",i[100]),Se(n,"pointerenter",i[100])],E=!0)},p(T,I){T[4]?B&&(pe(),p(B,1,1,()=>{B=null}),ve()):B?(B.p(T,I),I[0]&16&&h(B,1)):(B=ga(T),B.c(),h(B,1),B.m(e.parentNode,e)),T[4]&&T[27]!==Kt.INACTIVE?le?(le.p(T,I),I[0]&134217744&&h(le,1)):(le=Ia(T),le.c(),h(le,1),le.m(t.parentNode,t)):le&&(pe(),p(le,1,1,()=>{le=null}),ve()),T[92]&&O.p(T,I),!T[4]&&T[21]?q?(q.p(T,I),I[0]&2097168&&h(q,1)):(q=Ma(T),q.c(),h(q,1),q.m(r,s)):q&&(pe(),p(q,1,1,()=>{q=null}),ve()),T[38]?D?(D.p(T,I),I[1]&128&&h(D,1)):(D=Ba(T),D.c(),h(D,1),D.m(r,a)):D&&(pe(),p(D,1,1,()=>{D=null}),ve());const se={};I[1]&512&&(se.disabled=!T[40]),I[1]&402653696|I[5]&512&&(se.$$scope={dirty:I,ctx:T}),!f&&I[0]&524288&&(f=!0,se.ref=T[19].episodes,Qe(()=>f=!1)),c.$set(se),T[35]?Z?(Z.p(T,I),I[1]&16&&h(Z,1)):(Z=Ra(T),Z.c(),h(Z,1),Z.m(r,g)):Z&&(pe(),p(Z,1,1,()=>{Z=null}),ve()),T[37]?fe?(fe.p(T,I),I[1]&64&&h(fe,1)):(fe=Oa(T),fe.c(),h(fe,1),fe.m(r,null)):fe&&(pe(),p(fe,1,1,()=>{fe=null}),ve());const G={};I[0]&16&&(G.isAds=T[4]),I[0]&32&&(G.canRewindLive=T[5]),I[0]&1048576&&(G.isRewindableLive=T[20]),b.$set(G),(!A||I[1]&262144)&&L(o,"fullscreen",T[49]),(!A||I[0]&2)&&L(n,"hidden",T[1]),(!A||I[0]&8)&&L(n,"controls-hidden",!T[3]),(!A||I[0]&4)&&L(n,"no-smooth",T[2]),T[22]?J?(J.p(T,I),I[0]&4194304&&h(J,1)):(J=Da(T),J.c(),h(J,1),J.m(_.parentNode,_)):J&&(pe(),p(J,1,1,()=>{J=null}),ve())},i(T){A||(h(B),h(le),h(O),h(q),h(D),h(c.$$.fragment,T),h(Z),h(fe),h(b.$$.fragment,T),h(J),A=!0)},o(T){p(B),p(le),p(O),p(q),p(D),p(c.$$.fragment,T),p(Z),p(fe),p(b.$$.fragment,T),p(J),A=!1},d(T){T&&(y(e),y(t),y(n),y(S),y(_)),B&&B.d(T),le&&le.d(T),O&&O.d(),q&&q.d(),D&&D.d(),F(c),Z&&Z.d(),fe&&fe.d(),i[142](null),F(b),i[143](null),J&&J.d(T),E=!1,Xt(V)}}}function F5(i,e,t){var Hi,Sn;let n,o,r,l,s,a,c,f,d,g,v,b,S,_,A,E,V,B,le,O,q,D,me,ue,Z,fe,J,T,I,se,G,ye,ae,Y,{bottomHidden:oe}=e,{bottomNoSmooth:Ne}=e,{showControls:N}=e,{controlsElementRef:ce=void 0}=e,{isAds:k=!1}=e,{canRewindLive:$}=e,{logoClickable:Fe}=e,{logoHidden:Te}=e,{videoLogoUrl:Ve}=e,{showNextPrevButtons:Ae}=e,{nextButtonActive:be}=e,{prevButtonActive:Ee}=e,{isOneVideoPlaylist:Pe=!1}=e,{supportLink:X}=e,{customFullscreenSupported:j=!0}=e,{playNextVideo:He}=e,{playPrevVideo:We}=e,{repeatPlaylist:rt}=e,{toggleFullscreen:Ue}=e,{returnFocus:gt}=e,{seekToInteractive:pt}=e,{toggleGraph:Ot}=e,{playPrevChapter:mt}=e,{onDisabledPlayPrevChapterClick:Re}=e,{onDisabledSeekToInteractiveClick:Dt}=e;const te=Nt(),nt=$i(),st=te.actions.internal.toggleMuted,Ke=te.actions.internal.togglePlay,xe=te.actions.internal.pause,$e=(Hi=te.callbacks)==null?void 0:Hi.onAudioDoesNotExistHint,et=(Sn=te.callbacks)==null?void 0:Sn.onAudioDisabledHint,ot=te.playerPhase;W(i,ot,ee=>t(118,V=ee));const Vt=te.state.duration$;W(i,Vt,ee=>t(59,Y=ee));const lt=te.state.positionWithScrubbing$;W(i,lt,ee=>t(58,ae=ee));const at=te.state.playbackState$;W(i,at,ee=>t(120,q=ee));const Ye=te.state.isAudioAvailable$;W(i,Ye,ee=>t(48,c=ee));const Xe=te.state.isAudioDisabled,xt=te.state.isEnded$;W(i,xt,ee=>t(119,le=ee));const kt=te.state.isLive$;W(i,kt,ee=>t(21,v=ee));const vt=te.state.muted$;W(i,vt,ee=>t(51,fe=ee));const Rt=te.state.isActiveLive$;W(i,Rt,ee=>t(116,d=ee));const dt=te.state.isRewindableLive$;W(i,dt,ee=>t(20,g=ee));const ni=te.ui.scrubbingInProgress;W(i,ni,ee=>t(26,B=ee));const de=te.ui.mobileNotReportControlHidden$;W(i,de,ee=>t(24,A=ee));const Ce=te.ui.isPictureInPictureActive$;W(i,Ce,ee=>t(23,_=ee));const Le=te.ui.pictureInPictureType$;W(i,Le,ee=>t(117,S=ee));const Mt=te.ui.mobileUnmuteButtonExpanded;W(i,Mt,ee=>t(52,J=ee));const $t=te.ui.mobileUnmuteButtonVisible;W(i,$t,ee=>t(50,Z=ee));const Ie=te.ui.settingsMenuVisible;W(i,Ie,ee=>t(22,b=ee));const jt=te.ui.controls,Qt=te.actions.internal.getVideoEpisodes(),wt=te.webApi.pictureInPictureApi,qt=te.state.chromecastState$;W(i,qt,ee=>t(25,E=ee));const Ci=te.state.crashed$;W(i,Ci,ee=>t(54,I=ee));const qi=jt.disabledControls$;W(i,qi,ee=>t(121,D=ee));const Zi=te.ads.duration;W(i,Zi,ee=>t(57,ye=ee));const Wi=te.ads.position;W(i,Wi,ee=>t(56,G=ee));const bt=te.ads.playbackState;W(i,bt,ee=>t(27,O=ee));const Pi=te.ui.isFullscreen;W(i,Pi,ee=>t(49,ue=ee));const en=te.ui.playerSize;W(i,en,ee=>t(115,f=ee));const Gi=te.ui.additionalButtons$;W(i,Gi,ee=>t(53,T=ee));const Pt=te.actions.internal.getVideoElement,Ri=te.actions.internal.replayInteractive,Ut=te.state.isInteractive,Zt=te.state.isInteractiveGraphEnabled,Si=te.state.isSeekToInteractiveEnable,Ti=te.state.isPlayPrevChapterEnabled,vi=te.state.graphIsOpened$;W(i,vi,ee=>t(55,se=ee));const fi=te.state.seekToInteractiveDisabledTooltip$;W(i,fi,ee=>t(122,me=ee));let di,gi,li,Ei,ri,bi,Oi,_i,Lt,si,Ai,ki,wi,Di,Ze,ai,zi,oi,Ii,ei;const Be={},yi=Cc,Ki=()=>{ce&&(ei=ce.getBoundingClientRect())},Yi=()=>te.actions.internal.toggleChromecast(),tn=()=>te.actions.internal.switchToActiveLive(),Xi=ee=>{te.ui.controls.tooltipPointerOffsetX.update(()=>ei?Math.min(Math.max(ee.x-ei.x,0),ei.width):0)};function Li(){Xe?et==null||et():c?st():$e==null||$e()}function Qi(){return Un(this,null,function*(){wt!=null&&wt.isActive()?yield wt==null?void 0:wt.remove():yield wt==null?void 0:wt.request()})}function Vi(){!Xe&&c&&$t.set(!1),Li()}const zt=Pe?Ke:rt,mi=()=>{Re(di)},Mi=()=>{Dt(gi)};function fn(ee){i.$$.not_equal(Be.volume,ee)&&(Be.volume=ee,t(19,Be))}function Wt(ee){i.$$.not_equal(Be.chromecast,ee)&&(Be.chromecast=ee,t(19,Be))}function nn(ee){i.$$.not_equal(Be.pip,ee)&&(Be.pip=ee,t(19,Be))}function on(ee){i.$$.not_equal(Be.vkLogo,ee)&&(Be.vkLogo=ee,t(19,Be))}function Bi(ee){i.$$.not_equal(Be.prevButton,ee)&&(Be.prevButton=ee,t(19,Be))}function gn(ee){i.$$.not_equal(Be.playButton,ee)&&(Be.playButton=ee,t(19,Be))}function Ji(ee){i.$$.not_equal(Be.replayButton,ee)&&(Be.replayButton=ee,t(19,Be))}function hi(ee){i.$$.not_equal(Be.nextButton,ee)&&(Be.nextButton=ee,t(19,Be))}function bn(ee){i.$$.not_equal(Be.playPrevChapterButton,ee)&&(Be.playPrevChapterButton=ee,t(19,Be))}function dn(ee){i.$$.not_equal(Be.interactiveGraphButton,ee)&&(Be.interactiveGraphButton=ee,t(19,Be))}function ln(ee){i.$$.not_equal(Be.seekToInteractiveButton,ee)&&(Be.seekToInteractiveButton=ee,t(19,Be))}function rn(ee){i.$$.not_equal(Be.volume,ee)&&(Be.volume=ee,t(19,Be))}function sn(ee){i.$$.not_equal(Be.playButton,ee)&&(Be.playButton=ee,t(19,Be))}function an(ee){i.$$.not_equal(Be.replayButton,ee)&&(Be.replayButton=ee,t(19,Be))}function _n(ee){i.$$.not_equal(Be.liveButton,ee)&&(Be.liveButton=ee,t(19,Be))}function kn(ee){i.$$.not_equal(Be.time,ee)&&(Be.time=ee,t(19,Be))}function x(ee){i.$$.not_equal(Be.episodes,ee)&&(Be.episodes=ee,t(19,Be))}function yt(ee){i.$$.not_equal(Be.settings,ee)&&(Be.settings=ee,t(19,Be))}function ti(ee){i.$$.not_equal(Be.fullscreen,ee)&&(Be.fullscreen=ee,t(19,Be))}function Fi(ee){Me[ee?"unshift":"push"](()=>{oi=ee,t(41,oi)})}function un(ee){Me[ee?"unshift":"push"](()=>{ce=ee,t(0,ce)})}return i.$$set=ee=>{"bottomHidden"in ee&&t(1,oe=ee.bottomHidden),"bottomNoSmooth"in ee&&t(2,Ne=ee.bottomNoSmooth),"showControls"in ee&&t(3,N=ee.showControls),"controlsElementRef"in ee&&t(0,ce=ee.controlsElementRef),"isAds"in ee&&t(4,k=ee.isAds),"canRewindLive"in ee&&t(5,$=ee.canRewindLive),"logoClickable"in ee&&t(6,Fe=ee.logoClickable),"logoHidden"in ee&&t(106,Te=ee.logoHidden),"videoLogoUrl"in ee&&t(7,Ve=ee.videoLogoUrl),"showNextPrevButtons"in ee&&t(8,Ae=ee.showNextPrevButtons),"nextButtonActive"in ee&&t(9,be=ee.nextButtonActive),"prevButtonActive"in ee&&t(10,Ee=ee.prevButtonActive),"isOneVideoPlaylist"in ee&&t(107,Pe=ee.isOneVideoPlaylist),"supportLink"in ee&&t(11,X=ee.supportLink),"customFullscreenSupported"in ee&&t(108,j=ee.customFullscreenSupported),"playNextVideo"in ee&&t(12,He=ee.playNextVideo),"playPrevVideo"in ee&&t(13,We=ee.playPrevVideo),"repeatPlaylist"in ee&&t(109,rt=ee.repeatPlaylist),"toggleFullscreen"in ee&&t(14,Ue=ee.toggleFullscreen),"returnFocus"in ee&&t(15,gt=ee.returnFocus),"seekToInteractive"in ee&&t(16,pt=ee.seekToInteractive),"toggleGraph"in ee&&t(17,Ot=ee.toggleGraph),"playPrevChapter"in ee&&t(18,mt=ee.playPrevChapter),"onDisabledPlayPrevChapterClick"in ee&&t(110,Re=ee.onDisabledPlayPrevChapterClick),"onDisabledSeekToInteractiveClick"in ee&&t(111,Dt=ee.onDisabledSeekToInteractiveClick)},i.$$.update=()=>{if(i.$$.dirty[3]&536870912&&(gi=re(me)),i.$$.dirty[3]&268435456&&t(114,n=D.has(_t.EPISODE_BUTTON)),i.$$.dirty[3]&268435456&&t(47,o=D.has(_t.GRAPH_BUTTON)),i.$$.dirty[3]&268435456&&t(46,r=D.has(_t.SEEK_TO_INTERACTIVE_BUTTON)),i.$$.dirty[3]&268435456&&t(45,l=D.has(_t.PLAY_BUTTON)),i.$$.dirty[3]&268435456&&t(44,s=D.has(_t.REPLAY_BUTTON)),i.$$.dirty[3]&268435456&&t(43,a=D.has(_t.PLAY_PREV_CHAPTER_BUTTON)),i.$$.dirty[3]&134217728&&t(28,li=q===ct.PlaybackState.PLAYING),i.$$.dirty[0]&134217728&&t(29,Ei=O===Kt.PAUSED),i.$$.dirty[0]&16|i.$$.dirty[3]&67108864&&t(30,ri=le&&!k&&!Ut),i.$$.dirty[0]&16|i.$$.dirty[3]&67108864&&t(31,bi=!le||k),i.$$.dirty[3]&4194304&&t(112,Oi=f.width>300),i.$$.dirty[3]&4194304&&t(32,_i=f.width>400),i.$$.dirty[0]&67108864&&t(113,Lt=B),i.$$.dirty[0]&58720256|i.$$.dirty[3]&16777216&&t(33,si=E!==ct.ChromecastState.NOT_AVAILABLE&&!(_&&S===An.DocumentPictureInPicture)&&!A&&!Ut),i.$$.dirty[0]&50331648|i.$$.dirty[3]&51380224){const ee=V===Oe.WaitingLive;t(34,Ai=!!wt&&E!==ct.ChromecastState.CONNECTED&&!A&&(S===An.DocumentPictureInPicture&&ee||!ee)&&!Lt&&!Ut)}i.$$.dirty[3]&1048576&&t(35,ki=!Lt),i.$$.dirty[3]&4202496&&t(36,wi=!Te&&f.width>350),i.$$.dirty[0]&8388608|i.$$.dirty[3]&17858560&&t(37,Di=nt.features.fullscreen&&!(_&&S===An.DocumentPictureInPicture)&&(Ut?j:!0)&&!Lt),i.$$.dirty[0]&2097168|i.$$.dirty[3]&5242880&&t(38,Ze=(!v||k)&&f.width>260&&!Lt&&!(nt.features.interactiveHideTime&&Ut)),i.$$.dirty[0]&4194312&&t(39,ai=b||N),i.$$.dirty[0]&2097168|i.$$.dirty[3]&3670016&&t(40,zi=!k&&!v&&!!(Qt!=null&&Qt.length)&&Oi&&!n&&!Lt),i.$$.dirty[0]&1048576|i.$$.dirty[3]&8388608&&t(42,Ii=!g||d),i.$$.dirty[0]&524296|i.$$.dirty[3]&4194304&&(Ki(),yi(Pt(),jt,Be,N))},di=re(te.state.playPrevChapterDisabledTooltip),[ce,oe,Ne,N,k,$,Fe,Ve,Ae,be,Ee,X,He,We,Ue,gt,pt,Ot,mt,Be,g,v,b,_,A,E,B,O,li,Ei,ri,bi,_i,si,Ai,ki,wi,Di,Ze,ai,zi,oi,Ii,a,s,l,r,o,c,ue,Z,fe,J,T,I,se,G,ye,ae,Y,Ke,xe,ot,Vt,lt,at,Ye,Xe,xt,kt,vt,Rt,dt,ni,de,Ce,Le,Mt,$t,Ie,jt,Qt,qt,Ci,qi,Zi,Wi,bt,Pi,en,Gi,Ri,Ut,Zt,Si,Ti,vi,fi,Yi,tn,Xi,Qi,Vi,zt,mi,Mi,Te,Pe,j,rt,Re,Dt,Oi,Lt,n,f,d,S,V,le,q,D,me,fn,Wt,nn,on,Bi,gn,Ji,hi,bn,dn,ln,rn,sn,an,_n,kn,x,yt,ti,Fi,un]}class H5 extends we{constructor(e){super(),ke(this,e,F5,z5,_e,{bottomHidden:1,bottomNoSmooth:2,showControls:3,controlsElementRef:0,isAds:4,canRewindLive:5,logoClickable:6,logoHidden:106,videoLogoUrl:7,showNextPrevButtons:8,nextButtonActive:9,prevButtonActive:10,isOneVideoPlaylist:107,supportLink:11,customFullscreenSupported:108,playNextVideo:12,playPrevVideo:13,repeatPlaylist:109,toggleFullscreen:14,returnFocus:15,seekToInteractive:16,toggleGraph:17,playPrevChapter:18,onDisabledPlayPrevChapterClick:110,onDisabledSeekToInteractiveClick:111},A5,[-1,-1,-1,-1,-1,-1])}}function U5(i){let e,t,n;function o(l){i[28](l)}let r={bottomHidden:i[1],bottomNoSmooth:i[2],showControls:i[3],isAds:i[4],canRewindLive:i[5],logoClickable:i[6],logoHidden:i[7],videoLogoUrl:i[8],showNextPrevButtons:i[9],nextButtonActive:i[10],prevButtonActive:i[11],isOneVideoPlaylist:i[12],supportLink:i[13],customFullscreenSupported:i[14],playNextVideo:i[15],playPrevVideo:i[16],repeatPlaylist:i[17],toggleFullscreen:i[18],returnFocus:i[19],seekToInteractive:i[20],toggleGraph:i[21],playPrevChapter:i[22]};return i[0]!==void 0&&(r.controlsElementRef=i[0]),e=new h5({props:r}),Me.push(()=>Je(e,"controlsElementRef",o)),{c(){H(e.$$.fragment)},m(l,s){z(e,l,s),n=!0},p(l,s){const a={};s&2&&(a.bottomHidden=l[1]),s&4&&(a.bottomNoSmooth=l[2]),s&8&&(a.showControls=l[3]),s&16&&(a.isAds=l[4]),s&32&&(a.canRewindLive=l[5]),s&64&&(a.logoClickable=l[6]),s&128&&(a.logoHidden=l[7]),s&256&&(a.videoLogoUrl=l[8]),s&512&&(a.showNextPrevButtons=l[9]),s&1024&&(a.nextButtonActive=l[10]),s&2048&&(a.prevButtonActive=l[11]),s&4096&&(a.isOneVideoPlaylist=l[12]),s&8192&&(a.supportLink=l[13]),s&16384&&(a.customFullscreenSupported=l[14]),s&32768&&(a.playNextVideo=l[15]),s&65536&&(a.playPrevVideo=l[16]),s&131072&&(a.repeatPlaylist=l[17]),s&262144&&(a.toggleFullscreen=l[18]),s&524288&&(a.returnFocus=l[19]),s&1048576&&(a.seekToInteractive=l[20]),s&2097152&&(a.toggleGraph=l[21]),s&4194304&&(a.playPrevChapter=l[22]),!t&&s&1&&(t=!0,a.controlsElementRef=l[0],Qe(()=>t=!1)),e.$set(a)},i(l){n||(h(e.$$.fragment,l),n=!0)},o(l){p(e.$$.fragment,l),n=!1},d(l){F(e,l)}}}function j5(i){let e,t,n;function o(l){i[27](l)}let r={bottomHidden:i[1],bottomNoSmooth:i[2],showControls:i[3],isAds:i[4],canRewindLive:i[5],logoClickable:i[6],logoHidden:i[7],videoLogoUrl:i[8],showNextPrevButtons:i[9],nextButtonActive:i[10],prevButtonActive:i[11],isOneVideoPlaylist:i[12],supportLink:i[13],customFullscreenSupported:i[14],playNextVideo:i[15],playPrevVideo:i[16],repeatPlaylist:i[17],toggleFullscreen:i[18],returnFocus:i[19],seekToInteractive:i[20],toggleGraph:i[21],playPrevChapter:i[22],onDisabledPlayPrevChapterClick:i[23],onDisabledSeekToInteractiveClick:i[24]};return i[0]!==void 0&&(r.controlsElementRef=i[0]),e=new H5({props:r}),Me.push(()=>Je(e,"controlsElementRef",o)),{c(){H(e.$$.fragment)},m(l,s){z(e,l,s),n=!0},p(l,s){const a={};s&2&&(a.bottomHidden=l[1]),s&4&&(a.bottomNoSmooth=l[2]),s&8&&(a.showControls=l[3]),s&16&&(a.isAds=l[4]),s&32&&(a.canRewindLive=l[5]),s&64&&(a.logoClickable=l[6]),s&128&&(a.logoHidden=l[7]),s&256&&(a.videoLogoUrl=l[8]),s&512&&(a.showNextPrevButtons=l[9]),s&1024&&(a.nextButtonActive=l[10]),s&2048&&(a.prevButtonActive=l[11]),s&4096&&(a.isOneVideoPlaylist=l[12]),s&8192&&(a.supportLink=l[13]),s&16384&&(a.customFullscreenSupported=l[14]),s&32768&&(a.playNextVideo=l[15]),s&65536&&(a.playPrevVideo=l[16]),s&131072&&(a.repeatPlaylist=l[17]),s&262144&&(a.toggleFullscreen=l[18]),s&524288&&(a.returnFocus=l[19]),s&1048576&&(a.seekToInteractive=l[20]),s&2097152&&(a.toggleGraph=l[21]),s&4194304&&(a.playPrevChapter=l[22]),s&8388608&&(a.onDisabledPlayPrevChapterClick=l[23]),s&16777216&&(a.onDisabledSeekToInteractiveClick=l[24]),!t&&s&1&&(t=!0,a.controlsElementRef=l[0],Qe(()=>t=!1)),e.$set(a)},i(l){n||(h(e.$$.fragment,l),n=!0)},o(l){p(e.$$.fragment,l),n=!1},d(l){F(e,l)}}}function q5(i){let e,t,n,o;const r=[j5,U5],l=[];function s(a,c){return a[25]?0:1}return e=s(i),t=l[e]=r[e](i),{c(){t.c(),n=Et()},m(a,c){l[e].m(a,c),C(a,n,c),o=!0},p(a,[c]){let f=e;e=s(a),e===f?l[e].p(a,c):(pe(),p(l[f],1,1,()=>{l[f]=null}),ve(),t=l[e],t?t.p(a,c):(t=l[e]=r[e](a),t.c()),h(t,1),t.m(n.parentNode,n))},i(a){o||(h(t),o=!0)},o(a){p(t),o=!1},d(a){a&&y(n),l[e].d(a)}}}function Z5(i,e,t){let n,{bottomHidden:o}=e,{bottomNoSmooth:r=!1}=e,{showControls:l}=e,{controlsElementRef:s=void 0}=e,{isAds:a=!1}=e,{canRewindLive:c}=e,{logoClickable:f}=e,{logoHidden:d}=e,{videoLogoUrl:g}=e,{showNextPrevButtons:v}=e,{nextButtonActive:b}=e,{prevButtonActive:S}=e,{isOneVideoPlaylist:_=!1}=e,{supportLink:A}=e,{customFullscreenSupported:E=!0}=e,{playNextVideo:V}=e,{playPrevVideo:B}=e,{repeatPlaylist:le}=e,{toggleFullscreen:O}=e,{returnFocus:q=ne.noop}=e,{seekToInteractive:D}=e,{toggleGraph:me}=e,{playPrevChapter:ue}=e,{onDisabledPlayPrevChapterClick:Z=ne.noop}=e,{onDisabledSeekToInteractiveClick:fe=ne.noop}=e;const T=Nt().ui.isMobile;W(i,T,G=>t(25,n=G));function I(G){s=G,t(0,s)}function se(G){s=G,t(0,s)}return i.$$set=G=>{"bottomHidden"in G&&t(1,o=G.bottomHidden),"bottomNoSmooth"in G&&t(2,r=G.bottomNoSmooth),"showControls"in G&&t(3,l=G.showControls),"controlsElementRef"in G&&t(0,s=G.controlsElementRef),"isAds"in G&&t(4,a=G.isAds),"canRewindLive"in G&&t(5,c=G.canRewindLive),"logoClickable"in G&&t(6,f=G.logoClickable),"logoHidden"in G&&t(7,d=G.logoHidden),"videoLogoUrl"in G&&t(8,g=G.videoLogoUrl),"showNextPrevButtons"in G&&t(9,v=G.showNextPrevButtons),"nextButtonActive"in G&&t(10,b=G.nextButtonActive),"prevButtonActive"in G&&t(11,S=G.prevButtonActive),"isOneVideoPlaylist"in G&&t(12,_=G.isOneVideoPlaylist),"supportLink"in G&&t(13,A=G.supportLink),"customFullscreenSupported"in G&&t(14,E=G.customFullscreenSupported),"playNextVideo"in G&&t(15,V=G.playNextVideo),"playPrevVideo"in G&&t(16,B=G.playPrevVideo),"repeatPlaylist"in G&&t(17,le=G.repeatPlaylist),"toggleFullscreen"in G&&t(18,O=G.toggleFullscreen),"returnFocus"in G&&t(19,q=G.returnFocus),"seekToInteractive"in G&&t(20,D=G.seekToInteractive),"toggleGraph"in G&&t(21,me=G.toggleGraph),"playPrevChapter"in G&&t(22,ue=G.playPrevChapter),"onDisabledPlayPrevChapterClick"in G&&t(23,Z=G.onDisabledPlayPrevChapterClick),"onDisabledSeekToInteractiveClick"in G&&t(24,fe=G.onDisabledSeekToInteractiveClick)},[s,o,r,l,a,c,f,d,g,v,b,S,_,A,E,V,B,le,O,q,D,me,ue,Z,fe,n,T,I,se]}class Sc extends we{constructor(e){super(),ke(this,e,Z5,q5,_e,{bottomHidden:1,bottomNoSmooth:2,showControls:3,controlsElementRef:0,isAds:4,canRewindLive:5,logoClickable:6,logoHidden:7,videoLogoUrl: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 W5(i){qe(i,"v-1ub874v",".reversed.v-1ub874v{transform:scaleX(-1)}")}function G5(i){let e,t,n,o,r,l,s,a,c,f,d,g,v;return{c(){e=M("svg"),t=M("g"),n=M("path"),o=M("path"),r=M("defs"),l=M("filter"),s=M("feFlood"),a=M("feColorMatrix"),c=M("feOffset"),f=M("feGaussianBlur"),d=M("feColorMatrix"),g=M("feBlend"),v=M("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(t,"filter","url(#a)"),u(s,"flood-opacity","0"),u(s,"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(d,"values","0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.16 0"),u(g,"in2","BackgroundImageFix"),u(g,"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"),L(e,"reversed",i[0])},m(b,S){C(b,e,S),m(e,t),m(t,n),m(t,o),m(e,r),m(r,l),m(l,s),m(l,a),m(l,c),m(l,f),m(l,d),m(l,g),m(l,v)},p(b,[S]){S&1&&L(e,"reversed",b[0])},i:U,o:U,d(b){b&&y(e)}}}function K5(i,e,t){let{reversed:n=!1}=e;return i.$$set=o=>{"reversed"in o&&t(0,n=o.reversed)},[n]}class Y5 extends we{constructor(e){super(),ke(this,e,K5,G5,_e,{reversed:0},W5)}}function X5(i){let e,t,n,o,r,l,s,a,c,f,d,g,v,b,S;return{c(){e=M("svg"),t=M("g"),n=M("path"),o=M("path"),r=M("defs"),l=M("clipPath"),s=M("path"),a=M("filter"),c=M("feFlood"),f=M("feColorMatrix"),d=M("feOffset"),g=M("feGaussianBlur"),v=M("feColorMatrix"),b=M("feBlend"),S=M("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(t,"filter","url(#b)"),u(t,"clip-path","url(#a)"),u(s,"fill","#fff"),u(s,"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(g,"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(b,"in2","BackgroundImageFix"),u(b,"result","effect1_dropShadow_2260_104204"),u(S,"in","SourceGraphic"),u(S,"in2","effect1_dropShadow_2260_104204"),u(S,"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(_,A){C(_,e,A),m(e,t),m(t,n),m(t,o),m(e,r),m(r,l),m(l,s),m(r,a),m(a,c),m(a,f),m(a,d),m(a,g),m(a,v),m(a,b),m(a,S)},d(_){_&&y(e)}}}function Q5(i){let e,t,n,o,r,l,s,a,c,f,d,g,v,b,S,_;return{c(){e=M("svg"),t=M("g"),n=M("path"),o=M("path"),r=M("path"),l=M("defs"),s=M("clipPath"),a=M("path"),c=M("filter"),f=M("feFlood"),d=M("feColorMatrix"),g=M("feOffset"),v=M("feGaussianBlur"),b=M("feColorMatrix"),S=M("feBlend"),_=M("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(r,"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(r,"stroke","#000"),u(r,"stroke-opacity",".12"),u(r,"stroke-width",".5"),u(t,"filter","url(#b)"),u(t,"clip-path","url(#a)"),u(a,"fill","#fff"),u(a,"d","M0 0h48v48H0z"),u(s,"id","a"),u(f,"flood-opacity","0"),u(f,"result","BackgroundImageFix"),u(d,"in","SourceAlpha"),u(d,"values","0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0"),u(d,"result","hardAlpha"),u(v,"stdDeviation","2.5"),u(b,"values","0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.16 0"),u(S,"in2","BackgroundImageFix"),u(S,"result","effect1_dropShadow_2260_104293"),u(_,"in","SourceGraphic"),u(_,"in2","effect1_dropShadow_2260_104293"),u(_,"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(A,E){C(A,e,E),m(e,t),m(t,n),m(t,o),m(t,r),m(e,l),m(l,s),m(s,a),m(l,c),m(c,f),m(c,d),m(c,g),m(c,v),m(c,b),m(c,S),m(c,_)},d(A){A&&y(e)}}}function J5(i){let e;function t(r,l){return r[0]?Q5:X5}let n=t(i),o=n(i);return{c(){o.c(),e=Et()},m(r,l){o.m(r,l),C(r,e,l)},p(r,[l]){n!==(n=t(r))&&(o.d(1),o=n(r),o&&(o.c(),o.m(e.parentNode,e)))},i:U,o:U,d(r){r&&y(e),o.d(r)}}}function x5(i,e,t){let{isOff:n=!1}=e;return i.$$set=o=>{"isOff"in o&&t(0,n=o.isOff)},[n]}class Tc extends we{constructor(e){super(),ke(this,e,x5,J5,_e,{isOff:0})}}function $5(i){qe(i,"v-1ub874v",".reversed.v-1ub874v{transform:scaleX(-1)}")}function eg(i){let e,t,n,o,r,l,s,a,c,f,d,g,v;return{c(){e=M("svg"),t=M("g"),n=M("path"),o=M("path"),r=M("defs"),l=M("filter"),s=M("feFlood"),a=M("feColorMatrix"),c=M("feOffset"),f=M("feGaussianBlur"),d=M("feColorMatrix"),g=M("feBlend"),v=M("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(t,"filter","url(#a)"),u(s,"flood-opacity","0"),u(s,"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(d,"values","0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.16 0"),u(g,"in2","BackgroundImageFix"),u(g,"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"),L(e,"reversed",i[0])},m(b,S){C(b,e,S),m(e,t),m(t,n),m(t,o),m(e,r),m(r,l),m(l,s),m(l,a),m(l,c),m(l,f),m(l,d),m(l,g),m(l,v)},p(b,[S]){S&1&&L(e,"reversed",b[0])},i:U,o:U,d(b){b&&y(e)}}}function tg(i,e,t){let{reversed:n=!1}=e;return i.$$set=o=>{"reversed"in o&&t(0,n=o.reversed)},[n]}class ig extends we{constructor(e){super(),ke(this,e,tg,eg,_e,{reversed:0},$5)}}function ng(i){qe(i,"v-1ub874v",".reversed.v-1ub874v{transform:scaleX(-1)}")}function og(i){let e,t,n,o,r,l,s,a,c,f,d,g,v;return{c(){e=M("svg"),t=M("g"),n=M("path"),o=M("path"),r=M("defs"),l=M("filter"),s=M("feFlood"),a=M("feColorMatrix"),c=M("feOffset"),f=M("feGaussianBlur"),d=M("feColorMatrix"),g=M("feBlend"),v=M("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(t,"filter","url(#a)"),u(s,"flood-opacity","0"),u(s,"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(d,"values","0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.16 0"),u(g,"in2","BackgroundImageFix"),u(g,"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"),L(e,"reversed",i[0])},m(b,S){C(b,e,S),m(e,t),m(t,n),m(t,o),m(e,r),m(r,l),m(l,s),m(l,a),m(l,c),m(l,f),m(l,d),m(l,g),m(l,v)},p(b,[S]){S&1&&L(e,"reversed",b[0])},i:U,o:U,d(b){b&&y(e)}}}function lg(i,e,t){let{reversed:n=!1}=e;return i.$$set=o=>{"reversed"in o&&t(0,n=o.reversed)},[n]}class rg extends we{constructor(e){super(),ke(this,e,lg,og,_e,{reversed:0},ng)}}function sg(i){qe(i,"v-1lbk7aq",`.hot-key-helpers-container.v-1lbk7aq.v-1lbk7aq{position:absolute;top:calc(50% - 40px);left:calc(50% - 100px);width:200px;height:120px;display:flex;align-items:center;flex-direction:column;animation:v-1lbk7aq-fadeIn ease var(--controls-transition-duration);padding-top:14px;box-sizing:border-box}.hot-key-helpers-container.v-1lbk7aq>div.v-1lbk7aq{width:48px;height:48px;display:flex;justify-content:center;align-items:center}.hot-key-helpers-container.v-1lbk7aq svg[data-testid="volume-off-icon"],.hot-key-helpers-container.v-1lbk7aq svg[data-testid="volume-max-icon"]{transform:scale(2)}.hot-key-helpers-container.v-1lbk7aq svg[data-testid="play-icon"],.hot-key-helpers-container.v-1lbk7aq svg[data-testid="pause-icon"]{transform:scale(2.5)}.hot-key-helpers-container--left.v-1lbk7aq.v-1lbk7aq{left:calc(25% - 100px)}.hot-key-helpers-container--right.v-1lbk7aq.v-1lbk7aq{left:calc(75% - 100px)}.hot-key-helpers-text.v-1lbk7aq.v-1lbk7aq{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-1lbk7aq.v-1lbk7aq{visibility:hidden;animation:v-1lbk7aq-fadeOut ease var(--controls-transition-duration);width:0;height:0}@keyframes v-1lbk7aq-fadeIn{0%{opacity:0}100%{opacity:1}}@keyframes v-1lbk7aq-fadeOut{0%{opacity:1}100%{opacity:0}}`)}function za(i){let e,t=[tt.BACKWARD_SEEK,tt.FORWARD_SEEK].includes(i[4]),n,o,r,l,s,a=[tt.RATE_DOWN,tt.RATE_UP].includes(i[4]),c,f=[tt.EPISODE_PREV,tt.EPISODE_NEXT].includes(i[4]),d,g,v,b,S,_=t&&Fa(i),A=i[4]===tt.STOP&&Ha(),E=i[4]===tt.PLAY&&Ua(),V=i[4]===tt.SUBTITLES_OFF&&ja(),B=i[4]===tt.SUBTITLES_ON&&qa(),le=a&&Za(i),O=f&&Wa(i),q=i[4]===tt.MUTE&&Ga(),D=i[4]===tt.VOLUME&&Ka(),me=i[5]&&Ya(i);return{c(){e=w("div"),_&&_.c(),n=R(),A&&A.c(),o=R(),E&&E.c(),r=R(),V&&V.c(),l=R(),B&&B.c(),s=R(),le&&le.c(),c=R(),O&&O.c(),d=R(),q&&q.c(),g=R(),D&&D.c(),v=R(),me&&me.c(),b=Et(),u(e,"class","v-1lbk7aq")},m(ue,Z){C(ue,e,Z),_&&_.m(e,null),m(e,n),A&&A.m(e,null),m(e,o),E&&E.m(e,null),m(e,r),V&&V.m(e,null),m(e,l),B&&B.m(e,null),m(e,s),le&&le.m(e,null),m(e,c),O&&O.m(e,null),m(e,d),q&&q.m(e,null),m(e,g),D&&D.m(e,null),C(ue,v,Z),me&&me.m(ue,Z),C(ue,b,Z),S=!0},p(ue,Z){Z&16&&(t=[tt.BACKWARD_SEEK,tt.FORWARD_SEEK].includes(ue[4])),t?_?(_.p(ue,Z),Z&16&&h(_,1)):(_=Fa(ue),_.c(),h(_,1),_.m(e,n)):_&&(pe(),p(_,1,1,()=>{_=null}),ve()),ue[4]===tt.STOP?A?Z&16&&h(A,1):(A=Ha(),A.c(),h(A,1),A.m(e,o)):A&&(pe(),p(A,1,1,()=>{A=null}),ve()),ue[4]===tt.PLAY?E?Z&16&&h(E,1):(E=Ua(),E.c(),h(E,1),E.m(e,r)):E&&(pe(),p(E,1,1,()=>{E=null}),ve()),ue[4]===tt.SUBTITLES_OFF?V?Z&16&&h(V,1):(V=ja(),V.c(),h(V,1),V.m(e,l)):V&&(pe(),p(V,1,1,()=>{V=null}),ve()),ue[4]===tt.SUBTITLES_ON?B?Z&16&&h(B,1):(B=qa(),B.c(),h(B,1),B.m(e,s)):B&&(pe(),p(B,1,1,()=>{B=null}),ve()),Z&16&&(a=[tt.RATE_DOWN,tt.RATE_UP].includes(ue[4])),a?le?(le.p(ue,Z),Z&16&&h(le,1)):(le=Za(ue),le.c(),h(le,1),le.m(e,c)):le&&(pe(),p(le,1,1,()=>{le=null}),ve()),Z&16&&(f=[tt.EPISODE_PREV,tt.EPISODE_NEXT].includes(ue[4])),f?O?(O.p(ue,Z),Z&16&&h(O,1)):(O=Wa(ue),O.c(),h(O,1),O.m(e,d)):O&&(pe(),p(O,1,1,()=>{O=null}),ve()),ue[4]===tt.MUTE?q?Z&16&&h(q,1):(q=Ga(),q.c(),h(q,1),q.m(e,g)):q&&(pe(),p(q,1,1,()=>{q=null}),ve()),ue[4]===tt.VOLUME?D?Z&16&&h(D,1):(D=Ka(),D.c(),h(D,1),D.m(e,null)):D&&(pe(),p(D,1,1,()=>{D=null}),ve()),ue[5]?me?me.p(ue,Z):(me=Ya(ue),me.c(),me.m(b.parentNode,b)):me&&(me.d(1),me=null)},i(ue){S||(h(_),h(A),h(E),h(V),h(B),h(le),h(O),h(q),h(D),S=!0)},o(ue){p(_),p(A),p(E),p(V),p(B),p(le),p(O),p(q),p(D),S=!1},d(ue){ue&&(y(e),y(v),y(b)),_&&_.d(),A&&A.d(),E&&E.d(),V&&V.d(),B&&B.d(),le&&le.d(),O&&O.d(),q&&q.d(),D&&D.d(),me&&me.d(ue)}}}function Fa(i){let e,t;return e=new Y5({props:{reversed:i[4]===tt.FORWARD_SEEK}}),{c(){H(e.$$.fragment)},m(n,o){z(e,n,o),t=!0},p(n,o){const r={};o&16&&(r.reversed=n[4]===tt.FORWARD_SEEK),e.$set(r)},i(n){t||(h(e.$$.fragment,n),t=!0)},o(n){p(e.$$.fragment,n),t=!1},d(n){F(e,n)}}}function Ha(i){let e,t;return e=new sc({}),{c(){H(e.$$.fragment)},m(n,o){z(e,n,o),t=!0},i(n){t||(h(e.$$.fragment,n),t=!0)},o(n){p(e.$$.fragment,n),t=!1},d(n){F(e,n)}}}function Ua(i){let e,t;return e=new or({}),{c(){H(e.$$.fragment)},m(n,o){z(e,n,o),t=!0},i(n){t||(h(e.$$.fragment,n),t=!0)},o(n){p(e.$$.fragment,n),t=!1},d(n){F(e,n)}}}function ja(i){let e,t;return e=new Tc({props:{isOff:!0}}),{c(){H(e.$$.fragment)},m(n,o){z(e,n,o),t=!0},i(n){t||(h(e.$$.fragment,n),t=!0)},o(n){p(e.$$.fragment,n),t=!1},d(n){F(e,n)}}}function qa(i){let e,t;return e=new Tc({}),{c(){H(e.$$.fragment)},m(n,o){z(e,n,o),t=!0},i(n){t||(h(e.$$.fragment,n),t=!0)},o(n){p(e.$$.fragment,n),t=!1},d(n){F(e,n)}}}function Za(i){let e,t;return e=new ig({props:{reversed:i[4]===tt.RATE_UP}}),{c(){H(e.$$.fragment)},m(n,o){z(e,n,o),t=!0},p(n,o){const r={};o&16&&(r.reversed=n[4]===tt.RATE_UP),e.$set(r)},i(n){t||(h(e.$$.fragment,n),t=!0)},o(n){p(e.$$.fragment,n),t=!1},d(n){F(e,n)}}}function Wa(i){let e,t;return e=new rg({props:{reversed:i[4]===tt.EPISODE_NEXT}}),{c(){H(e.$$.fragment)},m(n,o){z(e,n,o),t=!0},p(n,o){const r={};o&16&&(r.reversed=n[4]===tt.EPISODE_NEXT),e.$set(r)},i(n){t||(h(e.$$.fragment,n),t=!0)},o(n){p(e.$$.fragment,n),t=!1},d(n){F(e,n)}}}function Ga(i){let e,t;return e=new sl({props:{volume:0}}),{c(){H(e.$$.fragment)},m(n,o){z(e,n,o),t=!0},i(n){t||(h(e.$$.fragment,n),t=!0)},o(n){p(e.$$.fragment,n),t=!1},d(n){F(e,n)}}}function Ka(i){let e,t;return e=new sl({props:{volume:1}}),{c(){H(e.$$.fragment)},m(n,o){z(e,n,o),t=!0},i(n){t||(h(e.$$.fragment,n),t=!0)},o(n){p(e.$$.fragment,n),t=!1},d(n){F(e,n)}}}function Ya(i){let e,t;return{c(){e=w("span"),t=je(i[5]),u(e,"class","hot-key-helpers-text v-1lbk7aq")},m(n,o){C(n,e,o),m(e,t)},p(n,o){o&32&&it(t,n[5])},d(n){n&&y(e)}}}function ag(i){let e,t,n=!i[1]&&i[4]&&za(i);return{c(){e=w("div"),n&&n.c(),u(e,"class","hot-key-helpers-container v-1lbk7aq"),L(e,"hidden",i[1]),L(e,"hot-key-helpers-container--left",i[2]),L(e,"hot-key-helpers-container--right",i[3])},m(o,r){C(o,e,r),n&&n.m(e,null),t=!0},p(o,[r]){!o[1]&&o[4]?n?(n.p(o,r),r&18&&h(n,1)):(n=za(o),n.c(),h(n,1),n.m(e,null)):n&&(pe(),p(n,1,1,()=>{n=null}),ve()),(!t||r&2)&&L(e,"hidden",o[1]),(!t||r&4)&&L(e,"hot-key-helpers-container--left",o[2]),(!t||r&8)&&L(e,"hot-key-helpers-container--right",o[3])},i(o){t||(h(n),t=!0)},o(o){p(n),t=!1},d(o){o&&y(e),n&&n.d()}}}function ug(i,e,t){let n,o=U,r=()=>(o(),o=Jt(l,g=>t(6,n=g)),l);i.$$.on_destroy.push(()=>o());let{data:l}=e;r();let s,a,c,f,d;return i.$$set=g=>{"data"in g&&r(t(0,l=g.data))},i.$$.update=()=>{i.$$.dirty&64&&(t(1,s=!n),t(2,a=(n==null?void 0:n.type)===tt.BACKWARD_SEEK),t(3,c=(n==null?void 0:n.type)===tt.FORWARD_SEEK),t(4,f=n==null?void 0:n.type),n!=null&&n.t?t(5,d=re(n.t.key,{value:n.t.value||""})):t(5,d=n==null?void 0:n.text))},[l,s,a,c,f,d,n]}class cg extends we{constructor(e){super(),ke(this,e,ug,ag,_e,{data:0},sg)}}function fg(i){qe(i,"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 dg(i){let e,t,n,o,r,l,s,a,c,f,d,g,v,b,S,_,A,E;return r=new Mn({props:{direction:"up"}}),a=new Mn({props:{direction:"up"}}),g=new Mn({props:{direction:"up"}}),S=new Mn({props:{direction:"up"}}),{c(){e=w("div"),t=w("div"),n=w("div"),o=w("div"),H(r.$$.fragment),l=R(),s=w("div"),H(a.$$.fragment),c=R(),f=w("div"),d=w("div"),H(g.$$.fragment),v=R(),b=w("div"),H(S.$$.fragment),u(o,"class","button button-up v-1yzc86r"),u(s,"class","button button-right v-1yzc86r"),u(n,"class","button-row v-1yzc86r"),u(d,"class","button button-left v-1yzc86r"),u(b,"class","button button-down v-1yzc86r"),u(f,"class","button-row v-1yzc86r"),u(t,"class","button-block v-1yzc86r"),u(e,"class","immersive-controls v-1yzc86r"),u(e,"tabindex","0"),u(e,"role","button"),L(e,"m-shifted",i[0])},m(V,B){C(V,e,B),m(e,t),m(t,n),m(n,o),z(r,o,null),m(n,l),m(n,s),z(a,s,null),m(t,c),m(t,f),m(f,d),z(g,d,null),m(f,v),m(f,b),z(S,b,null),_=!0,A||(E=[Se(o,"mousedown",i[1]),Se(o,"mouseup",i[5]),Se(o,"mouseleave",i[5]),Se(s,"mousedown",i[3]),Se(s,"mouseup",i[5]),Se(s,"mouseleave",i[5]),Se(d,"mousedown",i[4]),Se(d,"mouseup",i[5]),Se(d,"mouseleave",i[5]),Se(b,"mousedown",i[2]),Se(b,"mouseup",i[5]),Se(b,"mouseleave",i[5]),Se(e,"keydown",i[6]),Se(e,"keyup",i[7])],A=!0)},p(V,[B]){(!_||B&1)&&L(e,"m-shifted",V[0])},i(V){_||(h(r.$$.fragment,V),h(a.$$.fragment,V),h(g.$$.fragment,V),h(S.$$.fragment,V),_=!0)},o(V){p(r.$$.fragment,V),p(a.$$.fragment,V),p(g.$$.fragment,V),p(S.$$.fragment,V),_=!1},d(V){V&&y(e),F(r),F(a),F(g),F(S),A=!1,Xt(E)}}}function mg(i,e,t){let{isShifted:n=!1}=e;const o=Nt(),r=new Set([Ge.ArrowUp,Ge.ArrowDown,Ge.ArrowLeft,Ge.ArrowRight]),l=()=>{o.actions.internal.startCameraManualRotation(0,1)},s=()=>{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),d=v=>{if(r.has(v.code))switch(v.preventDefault(),v.stopPropagation(),v.code){case Ge.ArrowUp:l();break;case Ge.ArrowDown:s();break;case Ge.ArrowLeft:c();break;case Ge.ArrowRight:a();break}},g=v=>{r.has(v.code)&&(v.preventDefault(),v.stopPropagation(),f())};return i.$$set=v=>{"isShifted"in v&&t(0,n=v.isShifted)},[n,l,s,a,c,f,d,g]}class Ec extends we{constructor(e){super(),ke(this,e,mg,dg,_e,{isShifted:0},fg)}}function hg(i){qe(i,"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 Xa(i,e,t){const n=i.slice();return n[16]=e[t].value,n}function Qa(i,e,t){const n=i.slice();return n[16]=e[t].value,n[17]=e[t].timeAppeared,n}function Ja(i){let e,t;function n(l,s){return l[7]&&l[8]?gg:l[5]?vg:pg}let o=n(i),r=o(i);return{c(){e=w("div"),t=w("span"),r.c(),u(t,"class","caption v-ovfyp5"),u(e,"class","subtitles-caption v-ovfyp5"),L(e,"mobile",i[3])},m(l,s){C(l,e,s),m(e,t),r.m(t,null)},p(l,s){o===(o=n(l))&&r?r.p(l,s):(r.d(1),r=o(l),r&&(r.c(),r.m(t,null))),s&8&&L(e,"mobile",l[3])},d(l){l&&y(e),r.d()}}}function pg(i){let e,t=Gt(i[1]),n=[];for(let o=0;o<t.length;o+=1)n[o]=xa(Xa(i,t,o));return{c(){for(let o=0;o<n.length;o+=1)n[o].c();e=Et()},m(o,r){for(let l=0;l<n.length;l+=1)n[l]&&n[l].m(o,r);C(o,e,r)},p(o,r){if(r&18){t=Gt(o[1]);let l;for(l=0;l<t.length;l+=1){const s=Xa(o,t,l);n[l]?n[l].p(s,r):(n[l]=xa(s),n[l].c(),n[l].m(e.parentNode,e))}for(;l<n.length;l+=1)n[l].d(1);n.length=t.length}},d(o){o&&y(e),pn(n,o)}}}function vg(i){let e,t,n=Gt(i[6]),o=[];for(let r=0;r<n.length;r+=1)o[r]=e1(Qa(i,n,r));return{c(){e=w("span"),t=w("span");for(let r=0;r<o.length;r+=1)o[r].c();u(t,"class","caption-segment v-ovfyp5"),Ht(t,"font-size",i[4]+"px"),u(e,"class","caption-line v-ovfyp5")},m(r,l){C(r,e,l),m(e,t);for(let s=0;s<o.length;s+=1)o[s]&&o[s].m(t,null)},p(r,l){if(l&68){n=Gt(r[6]);let s;for(s=0;s<n.length;s+=1){const a=Qa(r,n,s);o[s]?o[s].p(a,l):(o[s]=e1(a),o[s].c(),o[s].m(t,null))}for(;s<o.length;s+=1)o[s].d(1);o.length=n.length}l&16&&Ht(t,"font-size",r[4]+"px")},d(r){r&&y(e),pn(o,r)}}}function gg(i){let e,t,n=re("subtitles_auto_caption")+"",o;return{c(){e=w("span"),t=w("span"),o=je(n),u(t,"class","caption-segment v-ovfyp5"),Ht(t,"font-size",i[4]+"px"),u(e,"class","caption-line v-ovfyp5")},m(r,l){C(r,e,l),m(e,t),m(t,o)},p(r,l){l&16&&Ht(t,"font-size",r[4]+"px")},d(r){r&&y(e)}}}function xa(i){let e,t,n=i[16]+"",o,r;return{c(){e=w("span"),t=w("span"),o=je(n),r=R(),u(t,"class","caption-segment v-ovfyp5"),Ht(t,"font-size",i[4]+"px"),u(e,"class","caption-line v-ovfyp5")},m(l,s){C(l,e,s),m(e,t),m(t,o),m(e,r)},p(l,s){s&2&&n!==(n=l[16]+"")&&it(o,n),s&16&&Ht(t,"font-size",l[4]+"px")},d(l){l&&y(e)}}}function $a(i){let e=i[16]+"",t;return{c(){t=je(e)},m(n,o){C(n,t,o)},p(n,o){o&64&&e!==(e=n[16]+"")&&it(t,e)},d(n){n&&y(t)}}}function e1(i){let e,t=(!i[17]||i[17]<=i[2])&&$a(i);return{c(){t&&t.c(),e=Et()},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=$a(n),t.c(),t.m(e.parentNode,e)):t&&(t.d(1),t=null)},d(n){n&&y(e),t&&t.d(n)}}}function bg(i){let e,t=i[1].length>0&&Ja(i);return{c(){e=w("div"),t&&t.c(),u(e,"class","subtitles-container v-ovfyp5"),L(e,"shifted",i[0]),L(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=Ja(n),t.c(),t.m(e,null)):t&&(t.d(1),t=null),o&1&&L(e,"shifted",n[0]),o&288&&L(e,"auto",n[5]&&!n[8])},i:U,o:U,d(n){n&&y(e),t&&t.d()}}}function _g(i,e,t){let n,o,{shifted:r}=e,{captions:l}=e,{position:s}=e,{playerSize:a}=e,{isMobile:c=!1}=e;const f=Nt(),d=$i(),g=f.state.currentSubtitle$;W(i,g,V=>t(12,n=V));const v=f.state.isAutoSubtitleCaptionVisible$;W(i,v,V=>t(8,o=V));let b,S,_,A,E;return vn(()=>{E=window.setTimeout(()=>{v.set(!1)},d.autoSubtitlesTimeout)}),il(()=>{window.clearTimeout(E)}),i.$$set=V=>{"shifted"in V&&t(0,r=V.shifted),"captions"in V&&t(1,l=V.captions),"position"in V&&t(2,s=V.position),"playerSize"in V&&t(11,a=V.playerSize),"isMobile"in V&&t(3,c=V.isMobile)},i.$$.update=()=>{if(i.$$.dirty&2048){const V=a.width*.02;t(4,b=V<=d.minSubtitlesFontSize?d.minSubtitlesFontSize:V)}i.$$.dirty&2&&t(5,S=l.some(V=>V.type==="timestamp")),i.$$.dirty&2&&t(6,_=l.reduce((V,{type:B,value:le})=>(B==="timestamp"?V.push({timeAppeared:Number(le),value:""}):V.length===0?V.push({value:String(le)}):V[V.length-1].value=String(le),V),[])),i.$$.dirty&4096&&t(7,A=!!n.isAuto)},[r,l,s,c,b,S,_,A,o,g,v,a,n]}class Ac extends we{constructor(e){super(),ke(this,e,_g,bg,_e,{shifted:0,captions:1,position:2,playerSize:11,isMobile:3},hg)}}function kg(i){qe(i,"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 t1(i){let e,t,n;return{c(){e=w("div"),t=je("\u0412\u0438\u0434\u0435\u043E \u0432\u043E\u0441\u043F\u0440\u043E\u0438\u0437\u0432\u043E\u0434\u0438\u0442\u0441\u044F \u043D\u0430 "),n=je(i[1]),u(e,"class","text v-1o62kpz")},m(o,r){C(o,e,r),m(e,t),m(e,n)},p(o,r){r&2&&it(n,o[1])},d(o){o&&y(e)}}}function wg(i){let e,t,n,o,r,l,s=i[1]&&t1(i);return{c(){e=w("div"),t=w("div"),t.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=R(),s&&s.c(),u(t,"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('${i[0]||""}')`)},m(a,c){C(a,e,c),m(e,t),m(e,n),s&&s.m(e,null),r||(l=Se(e,"click",i[2]),r=!0)},p(a,[c]){a[1]?s?s.p(a,c):(s=t1(a),s.c(),s.m(e,null)):s&&(s.d(1),s=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:U,o:U,d(a){a&&y(e),s&&s.d(),r=!1,l()}}}function yg(i,e,t){let{thumbUrl:n}=e,{chromecastDeviceName:o}=e;function r(l){ao.call(this,i,l)}return i.$$set=l=>{"thumbUrl"in l&&t(0,n=l.thumbUrl),"chromecastDeviceName"in l&&t(1,o=l.chromecastDeviceName)},[n,o,r]}class Ic extends we{constructor(e){super(),ke(this,e,yg,wg,_e,{thumbUrl:0,chromecastDeviceName:1},kg)}}function Cg(i){let e,t;return{c(){e=M("svg"),t=M("path"),u(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 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(t,"fill","#fff"),u(t,"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){C(n,e,o),m(e,t)},p:U,i:U,o:U,d(n){n&&y(e)}}}class Pg extends we{constructor(e){super(),ke(this,e,null,Cg,_e,{})}}function Sg(i){qe(i,"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 Tg(i){let e,t,n;return t=new Pg({}),{c(){e=w("div"),H(t.$$.fragment),u(e,"class","container v-13zpvm8")},m(o,r){C(o,e,r),z(t,e,null),n=!0},p:U,i(o){n||(h(t.$$.fragment,o),n=!0)},o(o){p(t.$$.fragment,o),n=!1},d(o){o&&y(e),F(t)}}}class Lc extends we{constructor(e){super(),ke(this,e,null,Tg,_e,{},Sg)}}function Eg(i){qe(i,"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 Ag(i){let e,t,n,o,r,l,s,a,c;return r=new or({}),{c(){e=w("div"),t=w("div"),n=w("div"),o=R(),H(r.$$.fragment),u(n,"class","playButtonBackground v-17wno3"),u(t,"class","playButton v-17wno3"),u(e,"class","container v-17wno3"),u(e,"style",l=`background-color: #222; background-image: url('${i[0]||""}')`),L(e,"hidden",i[1])},m(f,d){C(f,e,d),m(e,t),m(t,n),m(t,o),z(r,t,null),s=!0,a||(c=Se(e,"click",ht(function(){cn(i[2])&&i[2].apply(this,arguments)})),a=!0)},p(f,[d]){i=f,(!s||d&1&&l!==(l=`background-color: #222; background-image: url('${i[0]||""}')`))&&u(e,"style",l),(!s||d&2)&&L(e,"hidden",i[1])},i(f){s||(h(r.$$.fragment,f),s=!0)},o(f){p(r.$$.fragment,f),s=!1},d(f){f&&y(e),F(r),a=!1,c()}}}function Ig(i,e,t){let{thumbUrl:n}=e,{hidden:o}=e,{startVideo:r}=e;return i.$$set=l=>{"thumbUrl"in l&&t(0,n=l.thumbUrl),"hidden"in l&&t(1,o=l.hidden),"startVideo"in l&&t(2,r=l.startVideo)},[n,o,r]}class Vc extends we{constructor(e){super(),ke(this,e,Ig,Ag,_e,{thumbUrl:0,hidden:1,startVideo:2},Eg)}}function Lg(i){qe(i,"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(
|
|
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 lg(i){let e,t;return{c(){e=w("div"),t=je(i[0]),u(e,"class","title v-1bcvcf2"),E(e,"hidden",i[1])},m(n,o){k(n,e,o),d(e,t)},p(n,[o]){o&1&&$e(t,n[0]),o&2&&E(e,"hidden",n[1])},i:Z,o:Z,d(n){n&&y(e)}}}function rg(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]}class sg extends ke{constructor(e){super(),ye(this,e,rg,lg,we,{title:0,isHidden:1},og)}}function ag(i){Fe(i,"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 qa(i){let e,t,n,o,l,r,s;return{c(){e=w("div"),t=w("span"),n=je(i[0]),o=N(),l=w("span"),l.textContent=`${re("waiting_live_day_value")}`,r=N(),s=w("span"),s.textContent=`${re("waiting_live_colon")}`,u(t,"class","cell__value v-1qpxtfg"),u(l,"class","cell__unit v-1qpxtfg"),u(e,"class","timer__cell cell v-1qpxtfg"),u(s,"class","timer__points v-1qpxtfg")},m(a,c){k(a,e,c),d(e,t),d(t,n),d(e,o),d(e,l),k(a,r,c),k(a,s,c)},p(a,c){c&1&&$e(n,a[0])},d(a){a&&(y(e),y(r),y(s))}}}function Za(i){let e,t,n,o,l,r,s;return{c(){e=w("div"),t=w("span"),n=je(i[1]),o=N(),l=w("span"),l.textContent=`${re("waiting_live_hour_value")}`,r=N(),s=w("span"),s.textContent=`${re("waiting_live_colon")}`,u(t,"class","cell__value v-1qpxtfg"),u(l,"class","cell__unit v-1qpxtfg"),u(e,"class","timer__cell cell v-1qpxtfg"),u(s,"class","timer__points v-1qpxtfg")},m(a,c){k(a,e,c),d(e,t),d(t,n),d(e,o),d(e,l),k(a,r,c),k(a,s,c)},p(a,c){c&2&&$e(n,a[1])},d(a){a&&(y(e),y(r),y(s))}}}function Ga(i){let e,t,n,o,l,r,s;return{c(){e=w("div"),t=w("span"),n=je(i[2]),o=N(),l=w("span"),l.textContent=`${re("waiting_live_minute_value")}`,r=N(),s=w("span"),s.textContent=`${re("waiting_live_colon")}`,u(t,"class","cell__value v-1qpxtfg"),u(l,"class","cell__unit v-1qpxtfg"),u(e,"class","timer__cell cell v-1qpxtfg"),u(s,"class","timer__points v-1qpxtfg")},m(a,c){k(a,e,c),d(e,t),d(t,n),d(e,o),d(e,l),k(a,r,c),k(a,s,c)},p(a,c){c&4&&$e(n,a[2])},d(a){a&&(y(e),y(r),y(s))}}}function Ka(i){let e,t,n,o,l;return{c(){e=w("div"),t=w("span"),n=je(i[3]),o=N(),l=w("span"),l.textContent=`${re("waiting_live_second_value")}`,u(t,"class","cell__value v-1qpxtfg"),u(l,"class","cell__unit v-1qpxtfg"),u(e,"class","timer__cell cell v-1qpxtfg")},m(r,s){k(r,e,s),d(e,t),d(t,n),d(e,o),d(e,l)},p(r,s){s&8&&$e(n,r[3])},d(r){r&&y(e)}}}function ug(i){let e,t,n,o,l=i[0]&&qa(i),r=i[1]&&Za(i),s=i[2]&&Ga(i),a=i[3]&&Ka(i);return{c(){e=w("div"),l&&l.c(),t=N(),r&&r.c(),n=N(),s&&s.c(),o=N(),a&&a.c(),u(e,"class","timer__container v-1qpxtfg")},m(c,f){k(c,e,f),l&&l.m(e,null),d(e,t),r&&r.m(e,null),d(e,n),s&&s.m(e,null),d(e,o),a&&a.m(e,null)},p(c,[f]){c[0]?l?l.p(c,f):(l=qa(c),l.c(),l.m(e,t)):l&&(l.d(1),l=null),c[1]?r?r.p(c,f):(r=Za(c),r.c(),r.m(e,n)):r&&(r.d(1),r=null),c[2]?s?s.p(c,f):(s=Ga(c),s.c(),s.m(e,o)):s&&(s.d(1),s=null),c[3]?a?a.p(c,f):(a=Ka(c),a.c(),a.m(e,null)):a&&(a.d(1),a=null)},i:Z,o:Z,d(c){c&&y(e),l&&l.d(),r&&r.d(),s&&s.d(),a&&a.d()}}}function cg(i,e,t){let{startTime:n}=e,{onTimerOver:o}=e,l,r,s,a,c;const f=v=>String(v).padStart(2,"0"),h=v=>{const b=Math.floor(v/86400);b&&(v-=b*86400,t(0,l=f(b)));const A=Math.floor(v/3600);t(1,r=f(A));const S=Math.floor(v/60)%60;t(2,s=f(S));const T=v%60;t(3,a=f(T))},g=()=>{const v=Math.floor(Date.now()/1e3),b=n-v;h(b),b>=1?c=requestAnimationFrame(g):o()};return xi(()=>{c=requestAnimationFrame(g)}),qo(()=>{cancelAnimationFrame(c)}),i.$$set=v=>{"startTime"in v&&t(4,n=v.startTime),"onTimerOver"in v&&t(5,o=v.onTimerOver)},[l,r,s,a,n,o]}class fg extends ke{constructor(e){super(),ye(this,e,cg,ug,we,{startTime:4,onTimerOver:5},ag)}}function dg(i){let e,t,n,o,l;return{c(){e=M("svg"),t=M("path"),n=M("path"),o=M("path"),l=M("path"),u(t,"fill","#fefffe"),u(t,"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"),Ft(t,"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"),Ft(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"),Ft(o,"opacity",".985"),u(l,"fill","#fefffe"),u(l,"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"),Ft(l,"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"),Ft(e,"shape-rendering","geometricPrecision"),Ft(e,"text-rendering","geometricPrecision"),Ft(e,"image-rendering","optimizeQuality"),Ft(e,"fill-rule","evenodd"),Ft(e,"clip-rule","evenodd"),Ft(e,"width","100%"),Ft(e,"height","100%")},m(r,s){k(r,e,s),d(e,t),d(e,n),d(e,o),d(e,l)},p:Z,i:Z,o:Z,d(r){r&&y(e)}}}class mg extends ke{constructor(e){super(),ye(this,e,null,dg,we,{})}}function hg(i){Fe(i,"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 vg(i){let e,t,n,o,l;return o=new fg({props:{startTime:i[1]||0,onTimerOver:i[3]}}),{c(){e=w("div"),t=w("span"),t.textContent=`${re("waiting_live_timer_title")}`,n=N(),F(o.$$.fragment),u(t,"class","timer__title v-15pewff"),u(e,"class","waiting-timer timer v-15pewff")},m(r,s){k(r,e,s),d(e,t),d(e,n),O(o,e,null),l=!0},p(r,s){const a={};s&2&&(a.startTime=r[1]||0),s&4&&(a.onTimerOver=r[3]),o.$set(a)},i(r){l||(m(o.$$.fragment,r),l=!0)},o(r){p(o.$$.fragment,r),l=!1},d(r){r&&y(e),D(o)}}}function pg(i){let e,t,n,o,l,r;return n=new mg({}),{c(){e=w("div"),t=w("div"),F(n.$$.fragment),o=N(),l=w("span"),l.textContent=`${re("waiting_live_upcoming_title")}`,u(t,"class","upcoming-icon v-15pewff"),u(l,"class","upcoming__title v-15pewff"),u(e,"class","upcoming v-15pewff")},m(s,a){k(s,e,a),d(e,t),O(n,t,null),d(e,o),d(e,l),r=!0},p:Z,i(s){r||(m(n.$$.fragment,s),r=!0)},o(s){p(n.$$.fragment,s),r=!1},d(s){s&&y(e),D(n)}}}function gg(i){let e,t,n,o,l;const r=[pg,vg],s=[];function a(c,f){return c[2]?0:1}return t=a(i),n=s[t]=r[t](i),{c(){e=w("div"),n.c(),u(e,"class","waiting-container v-15pewff"),u(e,"style",o=`background-image: url(${i[2]?"":i[0]})`)},m(c,f){k(c,e,f),s[t].m(e,null),l=!0},p(c,[f]){let h=t;t=a(c),t===h?s[t].p(c,f):(ve(),p(s[h],1,1,()=>{s[h]=null}),pe(),n=s[t],n?n.p(c,f):(n=s[t]=r[t](c),n.c()),m(n,1),n.m(e,null)),(!l||f&5&&o!==(o=`background-image: url(${c[2]?"":c[0]})`))&&u(e,"style",o)},i(c){l||(m(n),l=!0)},o(c){p(n),l=!1},d(c){c&&y(e),s[t].d()}}}function bg(i,e,t){let n,{thumbUrl:o}=e,{startTime:l}=e;const r=()=>t(2,n=!0);return i.$$set=s=>{"thumbUrl"in s&&t(0,o=s.thumbUrl),"startTime"in s&&t(1,l=s.startTime)},i.$$.update=()=>{i.$$.dirty&2&&t(2,n=l===void 0||l<Math.floor(Date.now()/1e3))},[o,l,n,r]}class yc extends ke{constructor(e){super(),ye(this,e,bg,gg,we,{thumbUrl:0,startTime:1},hg)}}function _g(i){Fe(i,"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 wg(i){let e,t;return{c(){e=w("div"),t=w("p"),t.textContent=`${re("waiting_record_title")}`,u(t,"class","waiting-title v-1bcnzdw"),u(e,"class","waiting-container v-1bcnzdw")},m(n,o){k(n,e,o),d(e,t)},p:Z,i:Z,o:Z,d(n){n&&y(e)}}}class kc extends ke{constructor(e){super(),ye(this,e,null,wg,we,{},_g)}}const{window:yg}=M1;function kg(i){Fe(i,"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 Ya(i){var n;let e,t;return e=new yc({props:{thumbUrl:i[3],startTime:(n=i[5])==null?void 0:n.startTime}}),{c(){F(e.$$.fragment)},m(o,l){O(e,o,l),t=!0},p(o,l){var s;const r={};l[0]&8&&(r.thumbUrl=o[3]),l[0]&32&&(r.startTime=(s=o[5])==null?void 0:s.startTime),e.$set(r)},i(o){t||(m(e.$$.fragment,o),t=!0)},o(o){p(e.$$.fragment,o),t=!1},d(o){D(e,o)}}}function Xa(i){let e,t;return e=new kc({}),{c(){F(e.$$.fragment)},m(n,o){O(e,n,o),t=!0},i(n){t||(m(e.$$.fragment,n),t=!0)},o(n){p(e.$$.fragment,n),t=!1},d(n){D(e,n)}}}function Qa(i){let e,t,n;return t=new Bu({props:{adsSlotId:i[9],adsParams:i[10],adsPreviewParam:i[11],duration:i[12]}}),{c(){e=w("div"),F(t.$$.fragment),u(e,"class","ads-container v-1o4wf3x"),E(e,"hidden",i[35]!==Be.Ads)},m(o,l){k(o,e,l),O(t,e,null),n=!0},p(o,l){const r={};l[0]&512&&(r.adsSlotId=o[9]),l[0]&1024&&(r.adsParams=o[10]),l[0]&2048&&(r.adsPreviewParam=o[11]),l[0]&4096&&(r.duration=o[12]),t.$set(r),(!n||l[1]&16)&&E(e,"hidden",o[35]!==Be.Ads)},i(o){n||(m(t.$$.fragment,o),n=!0)},o(o){p(t.$$.fragment,o),n=!1},d(o){o&&y(e),D(t)}}}function Ja(i){let e,t;return e=new cm({props:{title:i[18],thumb:i[19],playNextVideo:i[23]}}),{c(){F(e.$$.fragment)},m(n,o){O(e,n,o),t=!0},p(n,o){const 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||(m(e.$$.fragment,n),t=!0)},o(n){p(e.$$.fragment,n),t=!1},d(n){D(e,n)}}}function xa(i){let e,t;return e=new sg({props:{title:i[2],isHidden:!i[33]}}),{c(){F(e.$$.fragment)},m(n,o){O(e,n,o),t=!0},p(n,o){const l={};o[0]&4&&(l.title=n[2]),o[1]&4&&(l.isHidden=!n[33]),e.$set(l)},i(n){t||(m(e.$$.fragment,n),t=!0)},o(n){p(e.$$.fragment,n),t=!1},d(n){D(e,n)}}}function $a(i){let e,t;return e=new pc({props:{isShifted:i[35]===Be.Video&&i[33]}}),{c(){F(e.$$.fragment)},m(n,o){O(e,n,o),t=!0},p(n,o){const l={};o[1]&20&&(l.isShifted=n[35]===Be.Video&&n[33]),e.$set(l)},i(n){t||(m(e.$$.fragment,n),t=!0)},o(n){p(e.$$.fragment,n),t=!1},d(n){D(e,n)}}}function e1(i){let e,t,n;return t=new J1({props:{ariaLabel:re("video360")}}),{c(){e=w("div"),F(t.$$.fragment),u(e,"class","spherical-video-icon v-1o4wf3x")},m(o,l){k(o,e,l),O(t,e,null),n=!0},p:Z,i(o){n||(m(t.$$.fragment,o),n=!0)},o(o){p(t.$$.fragment,o),n=!1},d(o){o&&y(e),D(t)}}}function t1(i){let e,t;return e=new bc({props:{thumbUrl:i[3],chromecastDeviceName:i[52]}}),{c(){F(e.$$.fragment)},m(n,o){O(e,n,o),t=!0},p(n,o){const l={};o[0]&8&&(l.thumbUrl=n[3]),o[1]&2097152&&(l.chromecastDeviceName=n[52]),e.$set(l)},i(n){t||(m(e.$$.fragment,n),t=!0)},o(n){p(e.$$.fragment,n),t=!1},d(n){D(e,n)}}}function i1(i){let e,t;return e=new gc({props:{shifted:i[33],captions:i[54],position:i[55],playerSize:i[31]}}),{c(){F(e.$$.fragment)},m(n,o){O(e,n,o),t=!0},p(n,o){const l={};o[1]&4&&(l.shifted=n[33]),o[1]&8388608&&(l.captions=n[54]),o[1]&16777216&&(l.position=n[55]),o[1]&1&&(l.playerSize=n[31]),e.$set(l)},i(n){t||(m(e.$$.fragment,n),t=!0)},o(n){p(e.$$.fragment,n),t=!1},d(n){D(e,n)}}}function n1(i){let e,t;return e=new Ou({props:{showControls:i[33]}}),{c(){F(e.$$.fragment)},m(n,o){O(e,n,o),t=!0},p(n,o){const l={};o[1]&4&&(l.showControls=n[33]),e.$set(l)},i(n){t||(m(e.$$.fragment,n),t=!0)},o(n){p(e.$$.fragment,n),t=!1},d(n){D(e,n)}}}function o1(i){let e,t,n,o,l;return t=new _c({}),{c(){e=w("div"),F(t.$$.fragment)},m(r,s){k(r,e,s),O(t,e,null),n=!0,o||(l=[Ve(e,"contextmenu",Pi(i[102])),Ve(e,"click",ct(i[113]))],o=!0)},p:Z,i(r){n||(m(t.$$.fragment,r),n=!0)},o(r){p(t.$$.fragment,r),n=!1},d(r){r&&y(e),D(t),o=!1,Gt(l)}}}function l1(i){let e,t;return e=new Zu({}),{c(){F(e.$$.fragment)},m(n,o){O(e,n,o),t=!0},i(n){t||(m(e.$$.fragment,n),t=!0)},o(n){p(e.$$.fragment,n),t=!1},d(n){D(e,n)}}}function r1(i){let e,t;return e=new zm({}),{c(){F(e.$$.fragment)},m(n,o){O(e,n,o),t=!0},i(n){t||(m(e.$$.fragment,n),t=!0)},o(n){p(e.$$.fragment,n),t=!1},d(n){D(e,n)}}}function s1(i){let e,t;return e=new Hu({}),{c(){F(e.$$.fragment)},m(n,o){O(e,n,o),t=!0},i(n){t||(m(e.$$.fragment,n),t=!0)},o(n){p(e.$$.fragment,n),t=!1},d(n){D(e,n)}}}function a1(i){let e,t,n,o,l,r,s,a,c,f,h,g,v,b,A,S,T,C,I,z,X,$,H,R,oe,se;e=new wc({props:{hidden:i[35]!==Be.Thumb||i[34]||i[90]&&i[6],thumbUrl:i[3],startVideo:i[29]}});let L=i[35]===Be.WaitingLive&&Ya(i),ce=i[35]===Be.WaitingRecord&&Xa(),J=i[8]&&i[22]&&Qa(i),U=i[30]&&i[18]&&i[19]&&Ja(i),_=i[43]&&xa(i),K=i[48]&&$a(i),ue=i[51]&&e1(),_e=i[36]&&t1(i),he=i[53].value!=="off"&&i1(i),ae=i[1].features.annotations&&n1(i),Ee=i[34]&&o1(i);function Y(B){i[141](B)}let V={bottomHidden:i[35]===Be.Thumb||i[35]===Be.WaitingLive||i[35]===Be.WaitingRecord,bottomNoSmooth:i[49],showControls:i[33],isAds:i[35]===Be.Ads,canRewindLive:i[7]&&i[56]!==0,logoClickable:i[13],logoHidden:i[14],videoLogoUrl:i[4],showNextPrevButtons:i[15],nextButtonActive:i[16],prevButtonActive:i[17],isOneVideoPlaylist:i[20],supportLink:i[21],customFullscreenSupported:Cg,playNextVideo:i[23],playPrevVideo:i[24],repeatPlaylist:i[25],toggleFullscreen:i[100],returnFocus:i[140],seekToInteractive:i[26],toggleGraph:i[27],playPrevChapter:i[28]};i[38]!==void 0&&(V.controlsElementRef=i[38]),b=new hc({props:V}),Ke.push(()=>Ct(b,"controlsElementRef",Y)),T=new Fu({props:{isLive:i[57],isHidden:!i[42],isPlaying:i[58],position:i[55],duration:i[59]}}),I=new D5({props:{data:i[98]}}),X=new W4({props:{supportLink:i[21],returnFocus:i[142],visible:i[47],playerContainerRef:i[37],controlsContainerRef:i[38],x:i[39],y:i[40]}});let le=i[41]&&l1(),x=i[60]&&r1(),Ae=i[61]&&s1();return{c(){F(e.$$.fragment),t=N(),L&&L.c(),n=N(),ce&&ce.c(),o=N(),J&&J.c(),l=N(),U&&U.c(),r=N(),_&&_.c(),s=N(),K&&K.c(),a=N(),ue&&ue.c(),c=N(),_e&&_e.c(),f=N(),he&&he.c(),h=N(),ae&&ae.c(),g=N(),Ee&&Ee.c(),v=N(),F(b.$$.fragment),S=N(),F(T.$$.fragment),C=N(),F(I.$$.fragment),z=N(),F(X.$$.fragment),$=N(),le&&le.c(),H=N(),x&&x.c(),R=N(),Ae&&Ae.c(),oe=wt()},m(B,ee){O(e,B,ee),k(B,t,ee),L&&L.m(B,ee),k(B,n,ee),ce&&ce.m(B,ee),k(B,o,ee),J&&J.m(B,ee),k(B,l,ee),U&&U.m(B,ee),k(B,r,ee),_&&_.m(B,ee),k(B,s,ee),K&&K.m(B,ee),k(B,a,ee),ue&&ue.m(B,ee),k(B,c,ee),_e&&_e.m(B,ee),k(B,f,ee),he&&he.m(B,ee),k(B,h,ee),ae&&ae.m(B,ee),k(B,g,ee),Ee&&Ee.m(B,ee),k(B,v,ee),O(b,B,ee),k(B,S,ee),O(T,B,ee),k(B,C,ee),O(I,B,ee),k(B,z,ee),O(X,B,ee),k(B,$,ee),le&&le.m(B,ee),k(B,H,ee),x&&x.m(B,ee),k(B,R,ee),Ae&&Ae.m(B,ee),k(B,oe,ee),se=!0},p(B,ee){const ze={};ee[0]&64|ee[1]&24&&(ze.hidden=B[35]!==Be.Thumb||B[34]||B[90]&&B[6]),ee[0]&8&&(ze.thumbUrl=B[3]),ee[0]&536870912&&(ze.startVideo=B[29]),e.$set(ze),B[35]===Be.WaitingLive?L?(L.p(B,ee),ee[1]&16&&m(L,1)):(L=Ya(B),L.c(),m(L,1),L.m(n.parentNode,n)):L&&(ve(),p(L,1,1,()=>{L=null}),pe()),B[35]===Be.WaitingRecord?ce?ee[1]&16&&m(ce,1):(ce=Xa(),ce.c(),m(ce,1),ce.m(o.parentNode,o)):ce&&(ve(),p(ce,1,1,()=>{ce=null}),pe()),B[8]&&B[22]?J?(J.p(B,ee),ee[0]&4194560&&m(J,1)):(J=Qa(B),J.c(),m(J,1),J.m(l.parentNode,l)):J&&(ve(),p(J,1,1,()=>{J=null}),pe()),B[30]&&B[18]&&B[19]?U?(U.p(B,ee),ee[0]&1074528256&&m(U,1)):(U=Ja(B),U.c(),m(U,1),U.m(r.parentNode,r)):U&&(ve(),p(U,1,1,()=>{U=null}),pe()),B[43]?_?(_.p(B,ee),ee[1]&4096&&m(_,1)):(_=xa(B),_.c(),m(_,1),_.m(s.parentNode,s)):_&&(ve(),p(_,1,1,()=>{_=null}),pe()),B[48]?K?(K.p(B,ee),ee[1]&131072&&m(K,1)):(K=$a(B),K.c(),m(K,1),K.m(a.parentNode,a)):K&&(ve(),p(K,1,1,()=>{K=null}),pe()),B[51]?ue?(ue.p(B,ee),ee[1]&1048576&&m(ue,1)):(ue=e1(),ue.c(),m(ue,1),ue.m(c.parentNode,c)):ue&&(ve(),p(ue,1,1,()=>{ue=null}),pe()),B[36]?_e?(_e.p(B,ee),ee[1]&32&&m(_e,1)):(_e=t1(B),_e.c(),m(_e,1),_e.m(f.parentNode,f)):_e&&(ve(),p(_e,1,1,()=>{_e=null}),pe()),B[53].value!=="off"?he?(he.p(B,ee),ee[1]&4194304&&m(he,1)):(he=i1(B),he.c(),m(he,1),he.m(h.parentNode,h)):he&&(ve(),p(he,1,1,()=>{he=null}),pe()),B[1].features.annotations?ae?(ae.p(B,ee),ee[0]&2&&m(ae,1)):(ae=n1(B),ae.c(),m(ae,1),ae.m(g.parentNode,g)):ae&&(ve(),p(ae,1,1,()=>{ae=null}),pe()),B[34]?Ee?(Ee.p(B,ee),ee[1]&8&&m(Ee,1)):(Ee=o1(B),Ee.c(),m(Ee,1),Ee.m(v.parentNode,v)):Ee&&(ve(),p(Ee,1,1,()=>{Ee=null}),pe());const Ce={};ee[1]&16&&(Ce.bottomHidden=B[35]===Be.Thumb||B[35]===Be.WaitingLive||B[35]===Be.WaitingRecord),ee[1]&262144&&(Ce.bottomNoSmooth=B[49]),ee[1]&4&&(Ce.showControls=B[33]),ee[1]&16&&(Ce.isAds=B[35]===Be.Ads),ee[0]&128|ee[1]&33554432&&(Ce.canRewindLive=B[7]&&B[56]!==0),ee[0]&8192&&(Ce.logoClickable=B[13]),ee[0]&16384&&(Ce.logoHidden=B[14]),ee[0]&16&&(Ce.videoLogoUrl=B[4]),ee[0]&32768&&(Ce.showNextPrevButtons=B[15]),ee[0]&65536&&(Ce.nextButtonActive=B[16]),ee[0]&131072&&(Ce.prevButtonActive=B[17]),ee[0]&1048576&&(Ce.isOneVideoPlaylist=B[20]),ee[0]&2097152&&(Ce.supportLink=B[21]),ee[0]&8388608&&(Ce.playNextVideo=B[23]),ee[0]&16777216&&(Ce.playPrevVideo=B[24]),ee[0]&33554432&&(Ce.repeatPlaylist=B[25]),ee[1]&32768&&(Ce.returnFocus=B[140]),ee[0]&67108864&&(Ce.seekToInteractive=B[26]),ee[0]&134217728&&(Ce.toggleGraph=B[27]),ee[0]&268435456&&(Ce.playPrevChapter=B[28]),!A&&ee[1]&128&&(A=!0,Ce.controlsElementRef=B[38],Pt(()=>A=!1)),b.$set(Ce);const ge={};ee[1]&67108864&&(ge.isLive=B[57]),ee[1]&2048&&(ge.isHidden=!B[42]),ee[1]&134217728&&(ge.isPlaying=B[58]),ee[1]&16777216&&(ge.position=B[55]),ee[1]&268435456&&(ge.duration=B[59]),T.$set(ge);const Se={};ee[0]&2097152&&(Se.supportLink=B[21]),ee[1]&32768&&(Se.returnFocus=B[142]),ee[1]&65536&&(Se.visible=B[47]),ee[1]&64&&(Se.playerContainerRef=B[37]),ee[1]&128&&(Se.controlsContainerRef=B[38]),ee[1]&256&&(Se.x=B[39]),ee[1]&512&&(Se.y=B[40]),X.$set(Se),B[41]?le?ee[1]&1024&&m(le,1):(le=l1(),le.c(),m(le,1),le.m(H.parentNode,H)):le&&(ve(),p(le,1,1,()=>{le=null}),pe()),B[60]?x?ee[1]&536870912&&m(x,1):(x=r1(),x.c(),m(x,1),x.m(R.parentNode,R)):x&&(ve(),p(x,1,1,()=>{x=null}),pe()),B[61]?Ae?ee[1]&1073741824&&m(Ae,1):(Ae=s1(),Ae.c(),m(Ae,1),Ae.m(oe.parentNode,oe)):Ae&&(ve(),p(Ae,1,1,()=>{Ae=null}),pe())},i(B){se||(m(e.$$.fragment,B),m(L),m(ce),m(J),m(U),m(_),m(K),m(ue),m(_e),m(he),m(ae),m(Ee),m(b.$$.fragment,B),m(T.$$.fragment,B),m(I.$$.fragment,B),m(X.$$.fragment,B),m(le),m(x),m(Ae),se=!0)},o(B){p(e.$$.fragment,B),p(L),p(ce),p(J),p(U),p(_),p(K),p(ue),p(_e),p(he),p(ae),p(Ee),p(b.$$.fragment,B),p(T.$$.fragment,B),p(I.$$.fragment,B),p(X.$$.fragment,B),p(le),p(x),p(Ae),se=!1},d(B){B&&(y(t),y(n),y(o),y(l),y(r),y(s),y(a),y(c),y(f),y(h),y(g),y(v),y(S),y(C),y(z),y($),y(H),y(R),y(oe)),D(e,B),L&&L.d(B),ce&&ce.d(B),J&&J.d(B),U&&U.d(B),_&&_.d(B),K&&K.d(B),ue&&ue.d(B),_e&&_e.d(B),he&&he.d(B),ae&&ae.d(B),Ee&&Ee.d(B),D(b,B),D(T,B),D(I,B),D(X,B),le&&le.d(B),x&&x.d(B),Ae&&Ae.d(B)}}}function Sg(i){let e,t,n,o,l=i[50],r,s,a,c,f=a1(i);return{c(){e=w("div"),t=w("div"),o=N(),f.c(),r=wt(),u(t,"class","video-container v-1o4wf3x"),u(t,"style",n=`transform: rotate(${i[32]}deg) scale(${i[45]})`),E(t,"fast-rotate",!i[1].isSmoothVideoRotate),u(e,"class","video-wrapper v-1o4wf3x"),E(e,"hidden",i[35]!==Be.Video),E(e,"nocursor",i[44])},m(h,g){k(h,e,g),d(e,t),i[139](t),k(h,o,g),f.m(h,g),k(h,r,g),s=!0,a||(c=[Ve(e,"contextmenu",Pi(i[102])),Ve(e,"mousedown",Pi(i[107])),Ve(e,"mouseup",Pi(i[108])),Ve(e,"click",Pi(i[110])),Ve(e,"dblclick",Pi(i[109]))],a=!0)},p(h,g){(!s||g[1]&16386&&n!==(n=`transform: rotate(${h[32]}deg) scale(${h[45]})`))&&u(t,"style",n),(!s||g[0]&2)&&E(t,"fast-rotate",!h[1].isSmoothVideoRotate),(!s||g[1]&16)&&E(e,"hidden",h[35]!==Be.Video),(!s||g[1]&8192)&&E(e,"nocursor",h[44]),g[1]&524288&&we(l,l=h[50])?(ve(),p(f,1,1,Z),pe(),f=a1(h),f.c(),m(f,1),f.m(r.parentNode,r)):f.p(h,g)},i(h){s||(m(f),s=!0)},o(h){p(f),s=!1},d(h){h&&(y(e),y(o),y(r)),i[139](null),f.d(h),a=!1,Gt(c)}}}function Pg(i){let e,t,n,o,l,r={toggleFullscreen:i[100],hideContextMenu:i[101],showHotKeyHelpers:i[111],showKeyMap:i[112],isAds:i[35]===Be.Ads,$$slots:{default:[Sg]},$$scope:{ctx:i}};return t=new hm({props:r}),i[143](t),{c(){e=w("div"),F(t.$$.fragment),u(e,"class","player-wrapper v-1o4wf3x")},m(s,a){k(s,e,a),O(t,e,null),i[144](e),n=!0,o||(l=[Ve(yg,"blur",i[101]),Ve(e,"mouseenter",i[103]),Ve(e,"mouseleave",i[105]),Ve(e,"mousemove",i[106]),Ve(e,"click",i[114],!0),Ve(e,"focusin",i[104],!0)],o=!0)},p(s,a){const c={};a[1]&16&&(c.isAds=s[35]===Be.Ads),a[0]&2147483647|a[1]&2147483647|a[5]&512&&(c.$$scope={dirty:a,ctx:s}),t.$set(c)},i(s){n||(m(t.$$.fragment,s),n=!0)},o(s){p(t.$$.fragment,s),n=!1},d(s){s&&y(e),i[143](null),D(t),i[144](null),o=!1,Gt(l)}}}let Cg=!0;function Sc(i){return i?i.offsetTop+Sc(i.offsetParent):0}function Tg(i,e,t){let n,o,l,r,s,a,c,f,h,g,v,b,A,S,T,C,I,z,X,$,H,R,oe,se,L,ce,J,U,_,K,ue,_e,he,ae,Ee,Y,{store:V}=e,{uiConfig:le}=e,{title:x}=e,{thumbUrl:Ae}=e,{videoLogoUrl:B}=e,{videoContainer:ee}=e,{interactiveContainer:ze}=e,{live:Ce}=e,{autoplay:ge}=e,{canRewindLive:Se}=e,{showAds:Pe}=e,{adsSlotId:G=void 0}=e,{adsParams:j=void 0}=e,{adsPreviewParam:qe=void 0}=e,{duration:tt=void 0}=e,{logoClickable:it}=e,{logoHidden:We}=e,{showNextPrevButtons:Me=!1}=e,{nextButtonActive:st=!1}=e,{prevButtonActive:Mt=!1}=e,{endScreenVideoTitle:Ne=void 0}=e,{endScreenVideoThumb:Re=void 0}=e,{isOneVideoPlaylist:Rt=!1}=e,{supportLink:me}=e,{outerContainerRef:nt=void 0}=e,{playerStarted:xe=!1}=e,{fullScreenTarget:Qe=void 0}=e,{showMiniTimer:Ze=!1}=e,{playNextVideo:et=ie.noop}=e,{playPrevVideo:He=ie.noop}=e,{repeatPlaylist:De=ie.noop}=e,{seekToInteractive:pt}=e,{toggleGraph:at}=e,{playPrevChapter:Kt}=e,{firstStart:At}=e;const ot=V.getLogger().createComponentLog("Root component"),ti=V.interfaceLanguage$;q(i,ti,W=>t(50,L=W));const dt=V.state.playbackState$;q(i,dt,W=>t(136,R=W));const Xe=V.ads.playbackState;q(i,Xe,W=>t(137,oe=W));const Vt=V.state.positionWithScrubbing$;q(i,Vt,W=>t(55,K=W));const ut=V.state.duration$;q(i,ut,W=>t(59,ae=W));const pi=V.playerPhase;q(i,pi,W=>t(35,I=W));const de=V.ui.isFullscreen;q(i,de,W=>t(127,c=W));const Te=V.ui.controlsVisible;q(i,Te,W=>t(33,b=W));const Ie=V.ui.settingsMenuVisible;q(i,Ie,W=>t(125,n=W));const Lt=V.ui.scrubbingInProgress;q(i,Lt,W=>t(128,g=W));const ii=V.ui.contextMenuVisible;q(i,ii,W=>t(47,o=W));const Le=V.ui.debugPanelVisible;q(i,Le,W=>t(61,Y=W));const si=V.state.isLoaderVisible;q(i,si,W=>t(138,se=W));const ai=V.state.isEnded$;q(i,ai,W=>t(126,r=W));const Ht=V.state.chromecastConnected$;q(i,Ht,W=>t(36,$=W));const Ci=V.state.chromecastDeviceName$;q(i,Ci,W=>t(52,J=W));const Yt=V.ads.postrollPassed;q(i,Yt,W=>t(131,T=W));const Jt=V.state.isLive$;q(i,Jt,W=>t(57,_e=W));const $i=V.state.isPlaying$;q(i,$i,W=>t(58,he=W));const en=V.state.crashed$;q(i,en,W=>t(34,S=W));const vt=V.webApi.pictureInPictureApi,Ai=V.state.currentSubtitle$;q(i,Ai,W=>t(53,U=W));const Li=V.state.currentSubtitleCaptions$;q(i,Li,W=>t(54,_=W));const nn=V.state.duration$;q(i,nn,W=>t(56,ue=W));const gt=V.state.graphIsOpened$;q(i,gt,W=>t(132,C=W));const ui=V.ui.playerSize;q(i,ui,W=>t(31,a=W));const Vi=V.ui.is3DVideo;q(i,Vi,W=>t(48,s=W));const Ii=V.ui.icon3DVideoVisible;q(i,Ii,W=>t(51,ce=W));const gi=V.ui.rotateAlpha;q(i,gi,W=>t(32,h=W));const ci=V.state.isInteractive,zi=V.state.isInteractiveTime$;q(i,zi,W=>t(129,v=W));const bi=V.state.isInteractiveExpectation$;q(i,bi,W=>t(135,H=W));const Hi=V.state.hasInteractiveBranches,Xt=V.ui.touched;q(i,Xt,W=>t(133,z=W));const ni=V.ui.modals.hotKeyMap.data;q(i,ni,W=>t(151,l=W));const Mi=V.ui.modals.hotKeyMap.show;q(i,Mi,W=>t(60,Ee=W));let xt,Ut,fi=0,_i=0,Ui,di,wi;ni.set(i4());let Ni;const mi=Ue(!1);q(i,mi,W=>t(49,f=W));let Ri;const yi=Ue(!1);q(i,yi,W=>t(134,X=W));const hi=Ue(),Ti=Ue(!1);q(i,Ti,W=>t(130,A=W));let jt=!1,Qt=!1,$t,oi,ji,Wi,li,Bi,Oi=!1,ki,Si=!1,Tt=null,Bt;vt==null||vt.setContext(B1());const qi=()=>{ge&&!ci&&Ot(le.controls.hideTimeout)};V.setUiCallbacks({onStarted:qi});const on=()=>{window.clearTimeout(Ui),yi.set(!1)},Zi=()=>{window.clearTimeout(di),hi.set(null)},Ot=W=>{on(),yi.set(!0),Ui=window.setTimeout(()=>yi.set(!1),W);const St=W-100;Ri=window.setTimeout(()=>{f&&mi.set(!1)},St>0?St:W)},Gi=(W,St)=>{Zi(),hi.set(St),di=window.setTimeout(()=>hi.set(null),W)},Di=Vi.subscribe(W=>{Ii.set(W),W&&(window.clearTimeout(wi),wi=window.setTimeout(()=>Ii.set(!1),le.controls.hide360IconTimeout))}),It=()=>Bn(this,null,function*(){var St,Xi,Ei,ne;const W=bo();if(W){Ot(le.controls.hideTimeoutFullscreen);try{yield vt==null?void 0:vt.remove()}catch(Nn){ot({message:String(Nn)})}}de.set(W),V.getAdmanWrapper().setFullscreen(W),c?(Xi=(St=V.callbacks)==null?void 0:St.onFullscreenEnter)==null||Xi.call(St):(ne=(Ei=V.callbacks)==null?void 0:Ei.onFullscreenExit)==null||ne.call(Ei)}),fe=W=>{const St=W;ui.set({width:St.target.width,height:St.target.height})};xi(()=>{var St;return Mu(It),jo(vt)&&(vt==null||vt.assignPlayerContainer(xt),vt==null||vt.updateVideoElement(),vt==null||vt.registryEventHandlers(),vt==null||vt.registryExternalEventHandlers({resize:fe})),ze&&((St=ee.parentElement)==null||St.insertBefore(ze,ee.nextSibling)),()=>{window.clearTimeout(Ui),window.clearTimeout(Ri),window.clearTimeout(di),window.clearTimeout(wi),Di(),vt==null||vt.dispose(),Nu(It)}});const rn=()=>Bn(this,null,function*(){if(bo())yield zu(document),ot({message:"exit fullscreen"});else{ot({message:"request fullscreen"});const W=nt!=null?nt:xt,St=W.getRootNode(),Xi=St instanceof ShadowRoot?St.host:St,Ei=Qe instanceof HTMLElement&&Qe.contains(Xi),ne=le.allowChangingFullscreenTarget&&Qe&&Ei?Qe:W;yield Iu(ne)}}),Ki=()=>{Ie.set(!1),ii.set(!1)},pn=W=>{ii.set(!0),t(39,fi=W.clientX),t(40,_i=W.clientY)};function gn(){Ti.set(!0),ci||Ot(le.controls.hideTimeoutCursor)}function bn(){ci||(mi.set(!0),Ot(le.controls.hideTimeoutCursor))}function Mn(){Ti.set(!1),t(121,Qt=!1),t(120,jt=!1),Si=!1,V.actions.internal.releaseCamera()}function Q(W){if(xt){const St=Sc(W.currentTarget),Xi=a.height,Ei=W.pageY-St;Ei<lr?t(121,Qt=!0):Ei>Xi-lr?t(120,jt=!0):(t(121,Qt=!1),n||t(120,jt=!1))}}function bt(W){Q(W),oi||Ot(le.controls.hideTimeoutCursor),s&&Si&&Tt&&V.actions.internal.moveCameraFocusPX(Tt.clientX-W.clientX,Tt.clientY-W.clientY,W.timeStamp-Tt.timeStamp),Tt=W}const sn=W=>{W.button===0&&(Si=!0,V.actions.internal.holdCamera()),Ot(le.controls.hideTimeoutCursor)},Yi=W=>{W.button===0&&(Tt=W,Si=!1,V.actions.internal.releaseCamera()),Ot(le.controls.hideTimeoutCursor)},dn=()=>{ot({message:"double click on video"}),rn(),Ot(le.controls.hideTimeoutCursor)},an=()=>{if(o||n){Ki();return}if(!(r&&!Hi)){if(Bt==null||Bt.focus(),!xe){At(),Ot(le.controls.hideTimeoutCursor);return}V.actions.internal.togglePlay(),Ot(le.controls.hideTimeoutCursor)}},io=W=>{Ki(),Xt.set(!0),Ot(le.controls.hideTimeout),W&&Gi(1e5,W)},no=()=>{var W,St;Ki(),(W=V.callbacks)!=null&&W.onOpenHotKeyMap?(St=V.callbacks)==null||St.onOpenHotKeyMap(l):Mi.update(Xi=>!Xi)},oo=()=>{if(o||n){Ki();return}},lo=()=>{Xt.set(!0)};function ro(W){Ke[W?"unshift":"push"](()=>{ee=W,t(0,ee)})}const so=()=>Bt==null?void 0:Bt.focus();function ao(W){Ut=W,t(38,Ut)}const uo=()=>Bt==null?void 0:Bt.focus();function co(W){Ke[W?"unshift":"push"](()=>{Bt=W,t(46,Bt)})}function fo(W){Ke[W?"unshift":"push"](()=>{xt=W,t(37,xt)})}return i.$$set=W=>{"store"in W&&t(115,V=W.store),"uiConfig"in W&&t(1,le=W.uiConfig),"title"in W&&t(2,x=W.title),"thumbUrl"in W&&t(3,Ae=W.thumbUrl),"videoLogoUrl"in W&&t(4,B=W.videoLogoUrl),"videoContainer"in W&&t(0,ee=W.videoContainer),"interactiveContainer"in W&&t(116,ze=W.interactiveContainer),"live"in W&&t(5,Ce=W.live),"autoplay"in W&&t(6,ge=W.autoplay),"canRewindLive"in W&&t(7,Se=W.canRewindLive),"showAds"in W&&t(8,Pe=W.showAds),"adsSlotId"in W&&t(9,G=W.adsSlotId),"adsParams"in W&&t(10,j=W.adsParams),"adsPreviewParam"in W&&t(11,qe=W.adsPreviewParam),"duration"in W&&t(12,tt=W.duration),"logoClickable"in W&&t(13,it=W.logoClickable),"logoHidden"in W&&t(14,We=W.logoHidden),"showNextPrevButtons"in W&&t(15,Me=W.showNextPrevButtons),"nextButtonActive"in W&&t(16,st=W.nextButtonActive),"prevButtonActive"in W&&t(17,Mt=W.prevButtonActive),"endScreenVideoTitle"in W&&t(18,Ne=W.endScreenVideoTitle),"endScreenVideoThumb"in W&&t(19,Re=W.endScreenVideoThumb),"isOneVideoPlaylist"in W&&t(20,Rt=W.isOneVideoPlaylist),"supportLink"in W&&t(21,me=W.supportLink),"outerContainerRef"in W&&t(117,nt=W.outerContainerRef),"playerStarted"in W&&t(22,xe=W.playerStarted),"fullScreenTarget"in W&&t(118,Qe=W.fullScreenTarget),"showMiniTimer"in W&&t(119,Ze=W.showMiniTimer),"playNextVideo"in W&&t(23,et=W.playNextVideo),"playPrevVideo"in W&&t(24,He=W.playPrevVideo),"repeatPlaylist"in W&&t(25,De=W.repeatPlaylist),"seekToInteractive"in W&&t(26,pt=W.seekToInteractive),"toggleGraph"in W&&t(27,at=W.toggleGraph),"playPrevChapter"in W&&t(28,Kt=W.playPrevChapter),"firstStart"in W&&t(29,At=W.firstStart)},i.$$.update=()=>{i.$$.dirty[1]&24|i.$$.dirty[4]&24576&&t(41,Ni=(I===Be.Video&&se||I===Be.Ads&&oe===qt.INACTIVE)&&!S),i.$$.dirty[4]&4096&&t(122,$t=R!==rt.PlaybackState.PLAYING),i.$$.dirty[3]&939524096|i.$$.dirty[4]&2080&&t(123,oi=v&&!(jt||Qt)&&!($t&&!H)),i.$$.dirty[1]&56|i.$$.dirty[3]&1610612736|i.$$.dirty[4]&1042&&Te.set(($t||n||g||$||X)&&!oi&&I===Be.Video&&!S),i.$$.dirty[0]&2|i.$$.dirty[1]&28|i.$$.dirty[3]&67108864|i.$$.dirty[4]&512&&t(42,ji=le.features.thumbTimer&&Ze&&I===Be.Video&&!b&&!S&&!ci&&(le.hideThumbTimerAfterTouch&&!z||!le.hideThumbTimerAfterTouch)),i.$$.dirty[1]&16|i.$$.dirty[4]&264&&t(43,Wi=I===Be.Video&&!C&&c),i.$$.dirty[0]&256|i.$$.dirty[1]&8|i.$$.dirty[4]&132&&t(30,li=(Pe&&T||!Pe)&&r&&!S),i.$$.dirty[0]&1073741824|i.$$.dirty[1]&4|i.$$.dirty[4]&96&&t(44,Bi=A&&!(b||li)&&!v),i.$$.dirty[0]&2|i.$$.dirty[4]&49&&(!g&&Oi&&!v&&Ot(le.controls.hideTimeoutCursor),t(124,Oi=g)),i.$$.dirty[0]&1|i.$$.dirty[1]&3&&t(45,ki=ee&&h%180?a.height/a.width:1)},[ee,le,x,Ae,B,Ce,ge,Se,Pe,G,j,qe,tt,it,We,Me,st,Mt,Ne,Re,Rt,me,xe,et,He,De,pt,at,Kt,At,li,a,h,b,S,I,$,xt,Ut,fi,_i,Ni,ji,Wi,Bi,ki,Bt,o,s,f,L,ce,J,U,_,K,ue,_e,he,ae,Ee,Y,ti,dt,Xe,Vt,ut,pi,de,Te,Ie,Lt,ii,Le,si,ai,Ht,Ci,Yt,Jt,$i,en,Ai,Li,nn,gt,ui,Vi,Ii,gi,ci,zi,bi,Xt,ni,Mi,mi,yi,hi,Ti,rn,Ki,pn,gn,bn,Mn,bt,sn,Yi,dn,an,io,no,oo,lo,V,ze,nt,Qe,Ze,jt,Qt,$t,oi,Oi,n,r,c,g,v,A,T,C,z,X,H,R,oe,se,ro,so,ao,uo,co,fo]}class Eg extends ke{constructor(e){super(),ye(this,e,Tg,Pg,we,{store:115,uiConfig:1,title:2,thumbUrl:3,videoLogoUrl:4,videoContainer:0,interactiveContainer:116,live:5,autoplay:6,canRewindLive:7,showAds:8,adsSlotId:9,adsParams:10,adsPreviewParam:11,duration:12,logoClickable:13,logoHidden:14,showNextPrevButtons:15,nextButtonActive:16,prevButtonActive:17,endScreenVideoTitle:18,endScreenVideoThumb:19,isOneVideoPlaylist:20,supportLink:21,outerContainerRef:117,playerStarted:22,fullScreenTarget:118,showMiniTimer:119,playNextVideo:23,playPrevVideo:24,repeatPlaylist:25,seekToInteractive:26,toggleGraph:27,playPrevChapter:28,firstStart:29},kg,[-1,-1,-1,-1,-1,-1])}}const Ag=i=>{if(!ie.isIOS(!0))return!1;const e=i.device===ie.CurrentClientDevice.iPad||(window==null?void 0:window.screen.width)>700,t=ie.getIOSVersion();return!e||e&&!!t&&t<16};function Lg(i){Fe(i,"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 u1(i){let e,t,n,o,l,r,s,a,c,f,h,g,v,b,A,S=re("doubletap_seek_step",{seconds:i[1].toFixed(0)})+"",T;return{c(){e=w("div"),n=N(),o=w("div"),l=w("div"),r=w("div"),a=N(),c=w("div"),h=N(),g=w("div"),b=N(),A=w("p"),T=je(S),u(e,"class",t="semicircle "+i[0]+" v-nhq2ld"),u(r,"class",s="triangle "+i[0]+" v-nhq2ld"),u(c,"class",f="triangle "+i[0]+" v-nhq2ld"),u(g,"class",v="triangle "+i[0]+" v-nhq2ld"),u(l,"class","triangles-wrapper v-nhq2ld"),u(A,"class","step-caption v-nhq2ld"),u(o,"class","info v-nhq2ld")},m(C,I){k(C,e,I),k(C,n,I),k(C,o,I),d(o,l),d(l,r),d(l,a),d(l,c),d(l,h),d(l,g),d(o,b),d(o,A),d(A,T)},p(C,I){I&1&&t!==(t="semicircle "+C[0]+" v-nhq2ld")&&u(e,"class",t),I&1&&s!==(s="triangle "+C[0]+" v-nhq2ld")&&u(r,"class",s),I&1&&f!==(f="triangle "+C[0]+" v-nhq2ld")&&u(c,"class",f),I&1&&v!==(v="triangle "+C[0]+" v-nhq2ld")&&u(g,"class",v),I&2&&S!==(S=re("doubletap_seek_step",{seconds:C[1].toFixed(0)})+"")&&$e(T,S)},d(C){C&&(y(e),y(n),y(o))}}}function Vg(i){let e,t,n,o,l=i[2]&&u1(i);return{c(){e=w("div"),l&&l.c(),u(e,"class",t="double-click-area "+i[0]+" v-nhq2ld")},m(r,s){k(r,e,s),l&&l.m(e,null),n||(o=Ve(e,"click",ct(i[3]())),n=!0)},p(r,[s]){r[2]?l?l.p(r,s):(l=u1(r),l.c(),l.m(e,null)):l&&(l.d(1),l=null),s&1&&t!==(t="double-click-area "+r[0]+" v-nhq2ld")&&u(e,"class",t)},i:Z,o:Z,d(r){r&&y(e),l&&l.d(),n=!1,o()}}}function Ig(i,e,t){let{side:n}=e,{seekStep:o}=e,{handleSingleFirstClick:l}=e,{handleSecondClick:r}=e,s=!1,a=0,c=0;const f=()=>{let g=0;return()=>{g+=1,g===1?a=window.setTimeout(()=>{l(),g=0},300):(window.clearTimeout(a),g=0,r(),t(2,s=!0),c=window.setTimeout(()=>{t(2,s=!1)},500))}};return qo(()=>{window.clearTimeout(a),window.clearTimeout(c)}),i.$$set=h=>{"side"in h&&t(0,n=h.side),"seekStep"in h&&t(1,o=h.seekStep),"handleSingleFirstClick"in h&&t(4,l=h.handleSingleFirstClick),"handleSecondClick"in h&&t(5,r=h.handleSecondClick)},[n,o,s,f,l,r]}class Pc extends ke{constructor(e){super(),ye(this,e,Ig,Vg,we,{side:0,seekStep:1,handleSingleFirstClick:4,handleSecondClick:5},Lg)}}function zg(i,e,t){let{playNextVideo:n}=e;return xi(()=>{n()}),i.$$set=o=>{"playNextVideo"in o&&t(0,n=o.playNextVideo)},[n]}class Mg extends ke{constructor(e){super(),ye(this,e,zg,null,we,{playNextVideo:0})}}const{window:Ng}=M1;function Rg(i){Fe(i,"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 c1(i){let e,t,n,o;e=new Pc({props:{side:"left",seekStep:i[1].controls.seekStepMobile/1e3,handleSingleFirstClick:i[98],handleSecondClick:i[126]}});let l=!i[47]&&f1(i);return{c(){F(e.$$.fragment),t=N(),l&&l.c(),n=wt()},m(r,s){O(e,r,s),k(r,t,s),l&&l.m(r,s),k(r,n,s),o=!0},p(r,s){const a={};s[0]&2&&(a.seekStep=r[1].controls.seekStepMobile/1e3),e.$set(a),r[47]?l&&(ve(),p(l,1,1,()=>{l=null}),pe()):l?(l.p(r,s),s[1]&65536&&m(l,1)):(l=f1(r),l.c(),m(l,1),l.m(n.parentNode,n))},i(r){o||(m(e.$$.fragment,r),m(l),o=!0)},o(r){p(e.$$.fragment,r),p(l),o=!1},d(r){r&&(y(t),y(n)),D(e,r),l&&l.d(r)}}}function f1(i){let e,t;return e=new Pc({props:{side:"right",seekStep:i[1].controls.seekStepMobile/1e3,handleSingleFirstClick:i[98],handleSecondClick:i[127]}}),{c(){F(e.$$.fragment)},m(n,o){O(e,n,o),t=!0},p(n,o){const l={};o[0]&2&&(l.seekStep=n[1].controls.seekStepMobile/1e3),e.$set(l)},i(n){t||(m(e.$$.fragment,n),t=!0)},o(n){p(e.$$.fragment,n),t=!1},d(n){D(e,n)}}}function d1(i){var n;let e,t;return e=new yc({props:{thumbUrl:i[2],startTime:(n=i[4])==null?void 0:n.startTime}}),{c(){F(e.$$.fragment)},m(o,l){O(e,o,l),t=!0},p(o,l){var s;const r={};l[0]&4&&(r.thumbUrl=o[2]),l[0]&16&&(r.startTime=(s=o[4])==null?void 0:s.startTime),e.$set(r)},i(o){t||(m(e.$$.fragment,o),t=!0)},o(o){p(e.$$.fragment,o),t=!1},d(o){D(e,o)}}}function m1(i){let e,t;return e=new kc({}),{c(){F(e.$$.fragment)},m(n,o){O(e,n,o),t=!0},i(n){t||(m(e.$$.fragment,n),t=!0)},o(n){p(e.$$.fragment,n),t=!1},d(n){D(e,n)}}}function h1(i){let e,t,n;return t=new Bu({props:{adsSlotId:i[8],adsParams:i[9],adsPreviewParam:i[10],duration:i[11]}}),{c(){e=w("div"),F(t.$$.fragment),u(e,"class","ads-container v-1jy89ut"),E(e,"hidden",i[33]!==Be.Ads)},m(o,l){k(o,e,l),O(t,e,null),n=!0},p(o,l){const 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]&4)&&E(e,"hidden",o[33]!==Be.Ads)},i(o){n||(m(t.$$.fragment,o),n=!0)},o(o){p(t.$$.fragment,o),n=!1},d(o){o&&y(e),D(t)}}}function v1(i){let e,t;return e=new Mg({props:{playNextVideo:i[22]}}),{c(){F(e.$$.fragment)},m(n,o){O(e,n,o),t=!0},p(n,o){const l={};o[0]&4194304&&(l.playNextVideo=n[22]),e.$set(l)},i(n){t||(m(e.$$.fragment,n),t=!0)},o(n){p(e.$$.fragment,n),t=!1},d(n){D(e,n)}}}function p1(i){let e,t;return e=new pc({}),{c(){F(e.$$.fragment)},m(n,o){O(e,n,o),t=!0},i(n){t||(m(e.$$.fragment,n),t=!0)},o(n){p(e.$$.fragment,n),t=!1},d(n){D(e,n)}}}function g1(i){let e,t,n;return t=new J1({props:{ariaLabel:re("video360")}}),{c(){e=w("div"),F(t.$$.fragment),u(e,"class","spherical-video-icon v-1jy89ut")},m(o,l){k(o,e,l),O(t,e,null),n=!0},p:Z,i(o){n||(m(t.$$.fragment,o),n=!0)},o(o){p(t.$$.fragment,o),n=!1},d(o){o&&y(e),D(t)}}}function b1(i){let e,t;return e=new bc({props:{thumbUrl:i[2],chromecastDeviceName:i[50]}}),{c(){F(e.$$.fragment)},m(n,o){O(e,n,o),t=!0},p(n,o){const l={};o[0]&4&&(l.thumbUrl=n[2]),o[1]&524288&&(l.chromecastDeviceName=n[50]),e.$set(l)},i(n){t||(m(e.$$.fragment,n),t=!0)},o(n){p(e.$$.fragment,n),t=!1},d(n){D(e,n)}}}function _1(i){let e,t;return e=new gc({props:{shifted:i[29],captions:i[52],position:i[43],playerSize:i[30],isMobile:!0}}),{c(){F(e.$$.fragment)},m(n,o){O(e,n,o),t=!0},p(n,o){const l={};o[0]&536870912&&(l.shifted=n[29]),o[1]&2097152&&(l.captions=n[52]),o[1]&4096&&(l.position=n[43]),o[0]&1073741824&&(l.playerSize=n[30]),e.$set(l)},i(n){t||(m(e.$$.fragment,n),t=!0)},o(n){p(e.$$.fragment,n),t=!1},d(n){D(e,n)}}}function w1(i){let e,t;return e=new Ou({props:{showControls:i[29]}}),{c(){F(e.$$.fragment)},m(n,o){O(e,n,o),t=!0},p(n,o){const l={};o[0]&536870912&&(l.showControls=n[29]),e.$set(l)},i(n){t||(m(e.$$.fragment,n),t=!0)},o(n){p(e.$$.fragment,n),t=!1},d(n){D(e,n)}}}function y1(i){let e,t,n,o,l;return t=new _c({}),{c(){e=w("div"),F(t.$$.fragment)},m(r,s){k(r,e,s),O(t,e,null),n=!0,o||(l=Ve(e,"click",ct(i[99])),o=!0)},p:Z,i(r){n||(m(t.$$.fragment,r),n=!0)},o(r){p(t.$$.fragment,r),n=!1},d(r){r&&y(e),D(t),o=!1,l()}}}function k1(i){let e,t;return e=new Zu({}),{c(){F(e.$$.fragment)},m(n,o){O(e,n,o),t=!0},i(n){t||(m(e.$$.fragment,n),t=!0)},o(n){p(e.$$.fragment,n),t=!1},d(n){D(e,n)}}}function S1(i){let e,t;return e=new Hu({}),{c(){F(e.$$.fragment)},m(n,o){O(e,n,o),t=!0},i(n){t||(m(e.$$.fragment,n),t=!0)},o(n){p(e.$$.fragment,n),t=!1},d(n){D(e,n)}}}function P1(i){let e,t,n=i[6]&&i[77]&&!i[46].has(ht.TIMELINE),o,l,r,s,a,c,f,h,g,v,b,A,S,T,C,I,z,X,$;e=new wc({props:{hidden:i[33]!==Be.Thumb||i[32]||i[88]&&i[5],thumbUrl:i[2],startVideo:i[28]}});let H=n&&c1(i),R=i[33]===Be.WaitingLive&&d1(i),oe=i[33]===Be.WaitingRecord&&m1(),se=i[7]&&i[21]&&h1(i),L=i[40]&&i[17]&&i[18]&&v1(i),ce=i[48]&&p1(),J=i[49]&&g1(),U=i[34]&&b1(i),_=i[51].value!=="off"&&_1(i),K=i[1].features.annotations&&w1(i),ue=i[32]&&y1(i);function _e(Y){i[128](Y)}let he={bottomHidden:i[33]===Be.Thumb||i[33]===Be.WaitingLive||i[33]===Be.WaitingRecord||i[33]===Be.Ads,showControls:i[29],bottomNoSmooth:i[44],isAds:i[33]===Be.Ads,canRewindLive:i[6]&&i[53]!==0,logoClickable:i[12],logoHidden:i[13],videoLogoUrl:i[3],showNextPrevButtons:i[14],nextButtonActive:i[15],prevButtonActive:i[16],isOneVideoPlaylist:i[19],supportLink:i[20],customFullscreenSupported:i[38],playNextVideo:i[22],playPrevVideo:i[23],repeatPlaylist:i[24],toggleFullscreen:i[96],seekToInteractive:i[25],toggleGraph:i[26],playPrevChapter:i[27]};i[36]!==void 0&&(he.controlsElementRef=i[36]),A=new hc({props:he}),Ke.push(()=>Ct(A,"controlsElementRef",_e)),C=new Fu({props:{isLive:i[54],isHidden:!i[39],isPlaying:i[55],position:i[43],duration:i[42]}});let ae=i[37]&&k1(),Ee=i[56]&&S1();return{c(){F(e.$$.fragment),t=N(),H&&H.c(),o=N(),R&&R.c(),l=N(),oe&&oe.c(),r=N(),se&&se.c(),s=N(),L&&L.c(),a=N(),ce&&ce.c(),c=N(),J&&J.c(),f=N(),U&&U.c(),h=N(),_&&_.c(),g=N(),K&&K.c(),v=N(),ue&&ue.c(),b=N(),F(A.$$.fragment),T=N(),F(C.$$.fragment),I=N(),ae&&ae.c(),z=N(),Ee&&Ee.c(),X=wt()},m(Y,V){O(e,Y,V),k(Y,t,V),H&&H.m(Y,V),k(Y,o,V),R&&R.m(Y,V),k(Y,l,V),oe&&oe.m(Y,V),k(Y,r,V),se&&se.m(Y,V),k(Y,s,V),L&&L.m(Y,V),k(Y,a,V),ce&&ce.m(Y,V),k(Y,c,V),J&&J.m(Y,V),k(Y,f,V),U&&U.m(Y,V),k(Y,h,V),_&&_.m(Y,V),k(Y,g,V),K&&K.m(Y,V),k(Y,v,V),ue&&ue.m(Y,V),k(Y,b,V),O(A,Y,V),k(Y,T,V),O(C,Y,V),k(Y,I,V),ae&&ae.m(Y,V),k(Y,z,V),Ee&&Ee.m(Y,V),k(Y,X,V),$=!0},p(Y,V){const le={};V[0]&32|V[1]&6&&(le.hidden=Y[33]!==Be.Thumb||Y[32]||Y[88]&&Y[5]),V[0]&4&&(le.thumbUrl=Y[2]),V[0]&268435456&&(le.startVideo=Y[28]),e.$set(le),V[0]&64|V[1]&32768&&(n=Y[6]&&Y[77]&&!Y[46].has(ht.TIMELINE)),n?H?(H.p(Y,V),V[0]&64|V[1]&32768&&m(H,1)):(H=c1(Y),H.c(),m(H,1),H.m(o.parentNode,o)):H&&(ve(),p(H,1,1,()=>{H=null}),pe()),Y[33]===Be.WaitingLive?R?(R.p(Y,V),V[1]&4&&m(R,1)):(R=d1(Y),R.c(),m(R,1),R.m(l.parentNode,l)):R&&(ve(),p(R,1,1,()=>{R=null}),pe()),Y[33]===Be.WaitingRecord?oe?V[1]&4&&m(oe,1):(oe=m1(),oe.c(),m(oe,1),oe.m(r.parentNode,r)):oe&&(ve(),p(oe,1,1,()=>{oe=null}),pe()),Y[7]&&Y[21]?se?(se.p(Y,V),V[0]&2097280&&m(se,1)):(se=h1(Y),se.c(),m(se,1),se.m(s.parentNode,s)):se&&(ve(),p(se,1,1,()=>{se=null}),pe()),Y[40]&&Y[17]&&Y[18]?L?(L.p(Y,V),V[0]&393216|V[1]&512&&m(L,1)):(L=v1(Y),L.c(),m(L,1),L.m(a.parentNode,a)):L&&(ve(),p(L,1,1,()=>{L=null}),pe()),Y[48]?ce?V[1]&131072&&m(ce,1):(ce=p1(),ce.c(),m(ce,1),ce.m(c.parentNode,c)):ce&&(ve(),p(ce,1,1,()=>{ce=null}),pe()),Y[49]?J?(J.p(Y,V),V[1]&262144&&m(J,1)):(J=g1(),J.c(),m(J,1),J.m(f.parentNode,f)):J&&(ve(),p(J,1,1,()=>{J=null}),pe()),Y[34]?U?(U.p(Y,V),V[1]&8&&m(U,1)):(U=b1(Y),U.c(),m(U,1),U.m(h.parentNode,h)):U&&(ve(),p(U,1,1,()=>{U=null}),pe()),Y[51].value!=="off"?_?(_.p(Y,V),V[1]&1048576&&m(_,1)):(_=_1(Y),_.c(),m(_,1),_.m(g.parentNode,g)):_&&(ve(),p(_,1,1,()=>{_=null}),pe()),Y[1].features.annotations?K?(K.p(Y,V),V[0]&2&&m(K,1)):(K=w1(Y),K.c(),m(K,1),K.m(v.parentNode,v)):K&&(ve(),p(K,1,1,()=>{K=null}),pe()),Y[32]?ue?(ue.p(Y,V),V[1]&2&&m(ue,1)):(ue=y1(Y),ue.c(),m(ue,1),ue.m(b.parentNode,b)):ue&&(ve(),p(ue,1,1,()=>{ue=null}),pe());const x={};V[1]&4&&(x.bottomHidden=Y[33]===Be.Thumb||Y[33]===Be.WaitingLive||Y[33]===Be.WaitingRecord||Y[33]===Be.Ads),V[0]&536870912&&(x.showControls=Y[29]),V[1]&8192&&(x.bottomNoSmooth=Y[44]),V[1]&4&&(x.isAds=Y[33]===Be.Ads),V[0]&64|V[1]&4194304&&(x.canRewindLive=Y[6]&&Y[53]!==0),V[0]&4096&&(x.logoClickable=Y[12]),V[0]&8192&&(x.logoHidden=Y[13]),V[0]&8&&(x.videoLogoUrl=Y[3]),V[0]&16384&&(x.showNextPrevButtons=Y[14]),V[0]&32768&&(x.nextButtonActive=Y[15]),V[0]&65536&&(x.prevButtonActive=Y[16]),V[0]&524288&&(x.isOneVideoPlaylist=Y[19]),V[0]&1048576&&(x.supportLink=Y[20]),V[1]&128&&(x.customFullscreenSupported=Y[38]),V[0]&4194304&&(x.playNextVideo=Y[22]),V[0]&8388608&&(x.playPrevVideo=Y[23]),V[0]&16777216&&(x.repeatPlaylist=Y[24]),V[0]&33554432&&(x.seekToInteractive=Y[25]),V[0]&67108864&&(x.toggleGraph=Y[26]),V[0]&134217728&&(x.playPrevChapter=Y[27]),!S&&V[1]&32&&(S=!0,x.controlsElementRef=Y[36],Pt(()=>S=!1)),A.$set(x);const Ae={};V[1]&8388608&&(Ae.isLive=Y[54]),V[1]&256&&(Ae.isHidden=!Y[39]),V[1]&16777216&&(Ae.isPlaying=Y[55]),V[1]&4096&&(Ae.position=Y[43]),V[1]&2048&&(Ae.duration=Y[42]),C.$set(Ae),Y[37]?ae?V[1]&64&&m(ae,1):(ae=k1(),ae.c(),m(ae,1),ae.m(z.parentNode,z)):ae&&(ve(),p(ae,1,1,()=>{ae=null}),pe()),Y[56]?Ee?V[1]&33554432&&m(Ee,1):(Ee=S1(),Ee.c(),m(Ee,1),Ee.m(X.parentNode,X)):Ee&&(ve(),p(Ee,1,1,()=>{Ee=null}),pe())},i(Y){$||(m(e.$$.fragment,Y),m(H),m(R),m(oe),m(se),m(L),m(ce),m(J),m(U),m(_),m(K),m(ue),m(A.$$.fragment,Y),m(C.$$.fragment,Y),m(ae),m(Ee),$=!0)},o(Y){p(e.$$.fragment,Y),p(H),p(R),p(oe),p(se),p(L),p(ce),p(J),p(U),p(_),p(K),p(ue),p(A.$$.fragment,Y),p(C.$$.fragment,Y),p(ae),p(Ee),$=!1},d(Y){Y&&(y(t),y(o),y(l),y(r),y(s),y(a),y(c),y(f),y(h),y(g),y(v),y(b),y(T),y(I),y(z),y(X)),D(e,Y),H&&H.d(Y),R&&R.d(Y),oe&&oe.d(Y),se&&se.d(Y),L&&L.d(Y),ce&&ce.d(Y),J&&J.d(Y),U&&U.d(Y),_&&_.d(Y),K&&K.d(Y),ue&&ue.d(Y),D(A,Y),D(C,Y),ae&&ae.d(Y),Ee&&Ee.d(Y)}}}function Bg(i){let e,t,n,o,l,r=i[45],s,a,c,f=P1(i);return{c(){e=w("div"),t=w("div"),n=w("div"),l=N(),f.c(),u(n,"class","video-container v-1jy89ut"),u(n,"style",o=`transform: rotate(${i[31]}deg) scale(${i[41]})`),E(n,"fast-rotate",!i[1].isSmoothVideoRotate),u(t,"class","video-wrapper v-1jy89ut"),E(t,"hidden",i[33]!==Be.Video),u(e,"class","player-wrapper v-1jy89ut")},m(h,g){k(h,e,g),d(e,t),d(t,n),i[125](n),d(e,l),f.m(e,null),i[129](e),s=!0,a||(c=[Ve(Ng,"blur",i[97]),Ve(t,"click",Pi(i[98])),Ve(e,"click",i[100],!0),Ve(e,"focusin",i[101],!0)],a=!0)},p(h,g){(!s||g[1]&1025&&o!==(o=`transform: rotate(${h[31]}deg) scale(${h[41]})`))&&u(n,"style",o),(!s||g[0]&2)&&E(n,"fast-rotate",!h[1].isSmoothVideoRotate),(!s||g[1]&4)&&E(t,"hidden",h[33]!==Be.Video),g[1]&16384&&we(r,r=h[45])?(ve(),p(f,1,1,Z),pe(),f=P1(h),f.c(),m(f,1),f.m(e,null)):f.p(h,g)},i(h){s||(m(f),s=!0)},o(h){p(f),s=!1},d(h){h&&y(e),i[125](null),f.d(h),i[129](null),a=!1,Gt(c)}}}function Og(i,e,t){let n,o,l,r,s,a,c,f,h,g,v,b,A,S,T,C,I,z,X,$,H,R,oe,se,L,ce,J,U,_,K,ue,_e,he,ae,Ee,Y,{store:V}=e,{uiConfig:le}=e,{thumbUrl:x}=e,{videoLogoUrl:Ae}=e,{videoContainer:B}=e,{interactiveContainer:ee}=e,{live:ze}=e,{autoplay:Ce}=e,{canRewindLive:ge}=e,{showAds:Se}=e,{adsSlotId:Pe=void 0}=e,{adsParams:G=void 0}=e,{adsPreviewParam:j=void 0}=e,{duration:qe=void 0}=e,{logoClickable:tt}=e,{logoHidden:it}=e,{showNextPrevButtons:We=!1}=e,{nextButtonActive:Me=!1}=e,{prevButtonActive:st=!1}=e,{endScreenVideoTitle:Mt=void 0}=e,{endScreenVideoThumb:Ne=void 0}=e,{isOneVideoPlaylist:Re=!1}=e,{supportLink:Rt}=e,{outerContainerRef:me=void 0}=e,{showMiniTimer:nt=!1}=e,{fullScreenTarget:xe=void 0}=e,{playerStarted:Qe=!1}=e,{playNextVideo:Ze=ie.noop}=e,{playPrevVideo:et=ie.noop}=e,{repeatPlaylist:He=ie.noop}=e,{seekToInteractive:De}=e,{toggleGraph:pt}=e,{playPrevChapter:at}=e,{firstStart:Kt}=e,{seekTime:At}=e;const ot=V.getLogger().createComponentLog("Root component"),ti=V.interfaceLanguage$;q(i,ti,Q=>t(45,L=Q));const dt=V.state.playbackState$;q(i,dt,Q=>t(122,R=Q));const Xe=V.ads.playbackState;q(i,Xe,Q=>t(123,oe=Q));const Vt=V.state.positionWithScrubbing$;q(i,Vt,Q=>t(43,r=Q));const ut=V.state.duration$;q(i,ut,Q=>t(42,l=Q));const pi=V.playerPhase;q(i,pi,Q=>t(33,z=Q));const de=V.ui.isFullscreen;q(i,de,Q=>t(135,a=Q));const Te=V.ui.controlsVisible;q(i,Te,Q=>t(29,o=Q));const Ie=V.ui.interactiveHideMobileControls;q(i,Ie,Q=>t(114,g=Q));const Lt=V.ui.settingsMenuVisible;q(i,Lt,Q=>t(113,n=Q));const ii=V.ui.scrubbingInProgress;q(i,ii,Q=>t(115,b=Q));const Le=V.ui.debugPanelVisible;q(i,Le,Q=>t(56,Y=Q));const si=V.state.isLoaderVisible;q(i,si,Q=>t(124,se=Q));const ai=V.state.isEnded$;q(i,ai,Q=>t(117,T=Q));const Ht=V.state.chromecastConnected$;q(i,Ht,Q=>t(34,X=Q));const Ci=V.state.chromecastDeviceName$;q(i,Ci,Q=>t(50,K=Q));const Yt=V.ads.postrollPassed;q(i,Yt,Q=>t(118,C=Q));const Jt=V.ui.mobileUnmuteButtonExpanded,$i=V.ui.mobileUnmuteButtonVisible,en=V.state.isLive$;q(i,en,Q=>t(54,ae=Q));const vt=V.state.isPlaying$;q(i,vt,Q=>t(55,Ee=Q));const Ai=V.state.isActiveLive$;q(i,Ai,Q=>t(47,J=Q));const Li=V.state.isRewindableLive$,nn=V.state.crashed$;q(i,nn,Q=>t(32,S=Q));const gt=V.webApi.pictureInPictureApi,ui=V.state.videoSize$;q(i,ui,Q=>t(136,f=Q));const Vi=V.state.currentSubtitle$;q(i,Vi,Q=>t(51,ue=Q));const Ii=V.state.currentSubtitleCaptions$;q(i,Ii,Q=>t(52,_e=Q));const gi=V.state.duration$;q(i,gi,Q=>t(53,he=Q));const ci=V.state.graphIsOpened$;q(i,ci,Q=>t(121,H=Q));const zi=V.ui.playerSize;q(i,zi,Q=>t(30,c=Q));const bi=V.ui.is3DVideo;q(i,bi,Q=>t(48,U=Q));const Hi=V.ui.icon3DVideoVisible;q(i,Hi,Q=>t(49,_=Q));const Xt=V.ui.rotateAlpha;q(i,Xt,Q=>t(31,v=Q));const ni=V.state.isInteractive,Mi=V.state.isInteractiveTime$;q(i,Mi,Q=>t(116,A=Q));const xt=V.state.isInteractiveExpectation$;q(i,xt,Q=>t(120,$=Q));const Ut=V.state.hasInteractiveBranches,fi=V.ui.controls.disabledControls$;q(i,fi,Q=>t(46,ce=Q));const _i=V.ui.touched;q(i,_i,Q=>t(119,I=Q));const Ui=V.ui.clientInfo$;q(i,Ui,Q=>t(134,s=Q));let di,wi,Ni,mi,Ri,yi;const hi=Ue(!1);q(i,hi,Q=>t(44,h=Q));let Ti,jt=!1,Qt,$t=!1,oi,ji=!0,Wi,li,Bi=!1,Oi;gt==null||gt.setContext(B1());const ki=Q=>{clearTimeout(mi),Q&&($i.set(!0),Jt.set(!0),mi=window.setTimeout(()=>{Jt.set(!1)},le.controls.collapseMobileUnmute),ni||Tt(le.controls.hideTimeoutMobile))};V.setUiCallbacks({onStarted:ki});const Si=()=>{window.clearTimeout(Ni),t(108,jt=!1),g&&Ie.set(!1)},Tt=Q=>{Si(),t(108,jt=!0),Ni=window.setTimeout(()=>t(108,jt=!1),Q);const bt=Q-100;Ti=window.setTimeout(()=>{h&&hi.set(!1)},bt>0?bt:Q)},Bt=bi.subscribe(Q=>{Hi.set(Q),Q&&(window.clearTimeout(Ri),Ri=window.setTimeout(()=>Hi.set(!1),le.controls.hide360IconTimeout))}),qi=()=>Bn(this,null,function*(){var bt,sn,Yi,dn;const Q=bo();if(Q){Tt(le.controls.hideTimeoutFullscreen);try{yield gt==null?void 0:gt.remove()}catch(an){ot({message:String(an)})}try{const an=f!=null&&f.width&&(f!=null&&f.height)?f:c;yield t4(an)}catch(an){ot({message:String(an)})}}de.set(Q),V.getAdmanWrapper().setFullscreen(Q),a?(sn=(bt=V.callbacks)==null?void 0:bt.onFullscreenEnter)==null||sn.call(bt):(dn=(Yi=V.callbacks)==null?void 0:Yi.onFullscreenExit)==null||dn.call(Yi)}),on=Q=>{const bt=Q;zi.set({width:bt.target.width,height:bt.target.height})};xi(()=>{var bt;return Mu(qi),jo(gt)&&(gt==null||gt.assignPlayerContainer(di),gt==null||gt.updateVideoElement(),gt==null||gt.registryEventHandlers(),gt==null||gt.registryExternalEventHandlers({resize:on})),t(38,ji=!Ag(s)),ee&&((bt=B.parentElement)==null||bt.insertBefore(ee,B.nextSibling)),()=>{window.clearTimeout(Ni),window.clearTimeout(Ti),window.clearTimeout(mi),window.clearTimeout(Ri),Bt(),gt==null||gt.dispose(),Nu(qi)}});const Zi=Q=>{let bt=r+(Q==="forward"?1:-1)*le.controls.seekStepMobile/1e3;bt<0?bt=0:bt>l&&(bt=l-1),t(110,$t=!0),At(bt)},Ot=()=>Bn(this,null,function*(){if(bo())yield zu(document),ot({message:"exit fullscreen"});else{ot({message:"request fullscreen"});const Q=me!=null?me:di,bt=Q.getRootNode(),sn=bt instanceof ShadowRoot?bt.host:bt,Yi=xe instanceof HTMLElement&&xe.contains(sn),dn=le.allowChangingFullscreenTarget&&xe&&Yi?xe:Q;yield Iu(dn)}}),Gi=()=>{Lt.set(!1)},Di=()=>{if(n){Gi();return}if(!Qe){Kt(),Tt(le.controls.hideTimeoutCursor);return}t(110,$t=!1),o?Si():Tt(le.controls.hideTimeoutMobile)},It=()=>{if(n){Gi();return}},fe=()=>{_i.set(!0)},rn=()=>{ni||(hi.set(!0),Tt(le.controls.hideTimeoutCursor))};function Ki(Q){Ke[Q?"unshift":"push"](()=>{B=Q,t(0,B)})}const pn=()=>Zi("backward"),gn=()=>Zi("forward");function bn(Q){wi=Q,t(36,wi)}function Mn(Q){Ke[Q?"unshift":"push"](()=>{di=Q,t(35,di)})}return i.$$set=Q=>{"store"in Q&&t(102,V=Q.store),"uiConfig"in Q&&t(1,le=Q.uiConfig),"thumbUrl"in Q&&t(2,x=Q.thumbUrl),"videoLogoUrl"in Q&&t(3,Ae=Q.videoLogoUrl),"videoContainer"in Q&&t(0,B=Q.videoContainer),"interactiveContainer"in Q&&t(103,ee=Q.interactiveContainer),"live"in Q&&t(4,ze=Q.live),"autoplay"in Q&&t(5,Ce=Q.autoplay),"canRewindLive"in Q&&t(6,ge=Q.canRewindLive),"showAds"in Q&&t(7,Se=Q.showAds),"adsSlotId"in Q&&t(8,Pe=Q.adsSlotId),"adsParams"in Q&&t(9,G=Q.adsParams),"adsPreviewParam"in Q&&t(10,j=Q.adsPreviewParam),"duration"in Q&&t(11,qe=Q.duration),"logoClickable"in Q&&t(12,tt=Q.logoClickable),"logoHidden"in Q&&t(13,it=Q.logoHidden),"showNextPrevButtons"in Q&&t(14,We=Q.showNextPrevButtons),"nextButtonActive"in Q&&t(15,Me=Q.nextButtonActive),"prevButtonActive"in Q&&t(16,st=Q.prevButtonActive),"endScreenVideoTitle"in Q&&t(17,Mt=Q.endScreenVideoTitle),"endScreenVideoThumb"in Q&&t(18,Ne=Q.endScreenVideoThumb),"isOneVideoPlaylist"in Q&&t(19,Re=Q.isOneVideoPlaylist),"supportLink"in Q&&t(20,Rt=Q.supportLink),"outerContainerRef"in Q&&t(104,me=Q.outerContainerRef),"showMiniTimer"in Q&&t(105,nt=Q.showMiniTimer),"fullScreenTarget"in Q&&t(106,xe=Q.fullScreenTarget),"playerStarted"in Q&&t(21,Qe=Q.playerStarted),"playNextVideo"in Q&&t(22,Ze=Q.playNextVideo),"playPrevVideo"in Q&&t(23,et=Q.playPrevVideo),"repeatPlaylist"in Q&&t(24,He=Q.repeatPlaylist),"seekToInteractive"in Q&&t(25,De=Q.seekToInteractive),"toggleGraph"in Q&&t(26,pt=Q.toggleGraph),"playPrevChapter"in Q&&t(27,at=Q.playPrevChapter),"firstStart"in Q&&t(28,Kt=Q.firstStart),"seekTime"in Q&&t(107,At=Q.seekTime)},i.$$.update=()=>{i.$$.dirty[1]&6|i.$$.dirty[3]&1073741824|i.$$.dirty[4]&1&&t(37,yi=(z===Be.Video&&se||z===Be.Ads&&oe===qt.INACTIVE)&&!S),i.$$.dirty[3]&536870912&&t(109,Qt=R!==rt.PlaybackState.PLAYING),i.$$.dirty[3]&421625856&&t(111,oi=H||g||!jt&&(T&&!!Ut||Qt&&$)),i.$$.dirty[1]&14|i.$$.dirty[3]&5734400&&Te.set((Qt||n||b||X||jt&&!$t)&&!oi&&z===Be.Video&&!S),i.$$.dirty[0]&536870914|i.$$.dirty[1]&6|i.$$.dirty[3]&67112960&&t(39,Wi=le.features.thumbTimer&&nt&&z===Be.Video&&!o&&!S&&!ni&&(le.hideThumbTimerAfterTouch&&!I||!le.hideThumbTimerAfterTouch)),i.$$.dirty[0]&128|i.$$.dirty[1]&2|i.$$.dirty[3]&50331648&&t(40,li=(Se&&C||!Se)&&T&&!S),i.$$.dirty[0]&2|i.$$.dirty[3]&13107200&&(!b&&Bi&&!A&&Tt(le.controls.hideTimeoutMobile),t(112,Bi=b)),i.$$.dirty[0]&1073741825|i.$$.dirty[1]&1&&t(41,Oi=B&&v%180?c.height/c.width:1)},[B,le,x,Ae,ze,Ce,ge,Se,Pe,G,j,qe,tt,it,We,Me,st,Mt,Ne,Re,Rt,Qe,Ze,et,He,De,pt,at,Kt,o,c,v,S,z,X,di,wi,yi,ji,Wi,li,Oi,l,r,h,L,ce,J,U,_,K,ue,_e,he,ae,Ee,Y,ti,dt,Xe,Vt,ut,pi,de,Te,Ie,Lt,ii,Le,si,ai,Ht,Ci,Yt,en,vt,Ai,Li,nn,ui,Vi,Ii,gi,ci,zi,bi,Hi,Xt,ni,Mi,xt,fi,_i,Ui,hi,Zi,Ot,Gi,Di,It,fe,rn,V,ee,me,nt,xe,At,jt,Qt,$t,oi,Bi,n,g,b,A,T,C,I,$,H,R,oe,se,Ki,pn,gn,bn,Mn]}class Dg extends ke{constructor(e){super(),ye(this,e,Og,Bg,we,{store:102,uiConfig:1,thumbUrl:2,videoLogoUrl:3,videoContainer:0,interactiveContainer:103,live:4,autoplay:5,canRewindLive:6,showAds:7,adsSlotId:8,adsParams:9,adsPreviewParam:10,duration:11,logoClickable:12,logoHidden:13,showNextPrevButtons:14,nextButtonActive:15,prevButtonActive:16,endScreenVideoTitle:17,endScreenVideoThumb:18,isOneVideoPlaylist:19,supportLink:20,outerContainerRef:104,showMiniTimer:105,fullScreenTarget:106,playerStarted:21,playNextVideo:22,playPrevVideo:23,repeatPlaylist:24,seekToInteractive:25,toggleGraph:26,playPrevChapter:27,firstStart:28,seekTime:107},Rg,[-1,-1,-1,-1,-1])}}function Fg(i){Fe(i,"v-237li0",`.root.v-237li0{--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;--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.v-1bcvcf2{visibility:hidden;transform:translateY(calc(var(--controls-gradient-height) * -1));opacity:0}`)}function Vg(i){let e,t;return{c(){e=w("div"),t=je(i[0]),u(e,"class","title v-1bcvcf2"),L(e,"hidden",i[1])},m(n,o){C(n,e,o),m(e,t)},p(n,[o]){o&1&&it(t,n[0]),o&2&&L(e,"hidden",n[1])},i:U,o:U,d(n){n&&y(e)}}}function Mg(i,e,t){let{title:n=""}=e,{isHidden:o=!1}=e;return i.$$set=r=>{"title"in r&&t(0,n=r.title),"isHidden"in r&&t(1,o=r.isHidden)},[n,o]}class Bg extends we{constructor(e){super(),ke(this,e,Mg,Vg,_e,{title:0,isHidden:1},Lg)}}function Ng(i){qe(i,"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 i1(i){let e,t,n,o,r,l,s;return{c(){e=w("div"),t=w("span"),n=je(i[0]),o=R(),r=w("span"),r.textContent=`${re("waiting_live_day_value")}`,l=R(),s=w("span"),s.textContent=`${re("waiting_live_colon")}`,u(t,"class","cell__value v-1qpxtfg"),u(r,"class","cell__unit v-1qpxtfg"),u(e,"class","timer__cell cell v-1qpxtfg"),u(s,"class","timer__points v-1qpxtfg")},m(a,c){C(a,e,c),m(e,t),m(t,n),m(e,o),m(e,r),C(a,l,c),C(a,s,c)},p(a,c){c&1&&it(n,a[0])},d(a){a&&(y(e),y(l),y(s))}}}function n1(i){let e,t,n,o,r,l,s;return{c(){e=w("div"),t=w("span"),n=je(i[1]),o=R(),r=w("span"),r.textContent=`${re("waiting_live_hour_value")}`,l=R(),s=w("span"),s.textContent=`${re("waiting_live_colon")}`,u(t,"class","cell__value v-1qpxtfg"),u(r,"class","cell__unit v-1qpxtfg"),u(e,"class","timer__cell cell v-1qpxtfg"),u(s,"class","timer__points v-1qpxtfg")},m(a,c){C(a,e,c),m(e,t),m(t,n),m(e,o),m(e,r),C(a,l,c),C(a,s,c)},p(a,c){c&2&&it(n,a[1])},d(a){a&&(y(e),y(l),y(s))}}}function o1(i){let e,t,n,o,r,l,s;return{c(){e=w("div"),t=w("span"),n=je(i[2]),o=R(),r=w("span"),r.textContent=`${re("waiting_live_minute_value")}`,l=R(),s=w("span"),s.textContent=`${re("waiting_live_colon")}`,u(t,"class","cell__value v-1qpxtfg"),u(r,"class","cell__unit v-1qpxtfg"),u(e,"class","timer__cell cell v-1qpxtfg"),u(s,"class","timer__points v-1qpxtfg")},m(a,c){C(a,e,c),m(e,t),m(t,n),m(e,o),m(e,r),C(a,l,c),C(a,s,c)},p(a,c){c&4&&it(n,a[2])},d(a){a&&(y(e),y(l),y(s))}}}function l1(i){let e,t,n,o,r;return{c(){e=w("div"),t=w("span"),n=je(i[3]),o=R(),r=w("span"),r.textContent=`${re("waiting_live_second_value")}`,u(t,"class","cell__value v-1qpxtfg"),u(r,"class","cell__unit v-1qpxtfg"),u(e,"class","timer__cell cell v-1qpxtfg")},m(l,s){C(l,e,s),m(e,t),m(t,n),m(e,o),m(e,r)},p(l,s){s&8&&it(n,l[3])},d(l){l&&y(e)}}}function Rg(i){let e,t,n,o,r=i[0]&&i1(i),l=i[1]&&n1(i),s=i[2]&&o1(i),a=i[3]&&l1(i);return{c(){e=w("div"),r&&r.c(),t=R(),l&&l.c(),n=R(),s&&s.c(),o=R(),a&&a.c(),u(e,"class","timer__container v-1qpxtfg")},m(c,f){C(c,e,f),r&&r.m(e,null),m(e,t),l&&l.m(e,null),m(e,n),s&&s.m(e,null),m(e,o),a&&a.m(e,null)},p(c,[f]){c[0]?r?r.p(c,f):(r=i1(c),r.c(),r.m(e,t)):r&&(r.d(1),r=null),c[1]?l?l.p(c,f):(l=n1(c),l.c(),l.m(e,n)):l&&(l.d(1),l=null),c[2]?s?s.p(c,f):(s=o1(c),s.c(),s.m(e,o)):s&&(s.d(1),s=null),c[3]?a?a.p(c,f):(a=l1(c),a.c(),a.m(e,null)):a&&(a.d(1),a=null)},i:U,o:U,d(c){c&&y(e),r&&r.d(),l&&l.d(),s&&s.d(),a&&a.d()}}}function Og(i,e,t){let{startTime:n}=e,{onTimerOver:o}=e,r,l,s,a,c;const f=v=>String(v).padStart(2,"0"),d=v=>{const b=Math.floor(v/86400);b&&(v-=b*86400,t(0,r=f(b)));const S=Math.floor(v/3600);t(1,l=f(S));const _=Math.floor(v/60)%60;t(2,s=f(_));const A=v%60;t(3,a=f(A))},g=()=>{const v=Math.floor(Date.now()/1e3),b=n-v;d(b),b>=1?c=requestAnimationFrame(g):o()};return vn(()=>{c=requestAnimationFrame(g)}),il(()=>{cancelAnimationFrame(c)}),i.$$set=v=>{"startTime"in v&&t(4,n=v.startTime),"onTimerOver"in v&&t(5,o=v.onTimerOver)},[r,l,s,a,n,o]}class Dg extends we{constructor(e){super(),ke(this,e,Og,Rg,_e,{startTime:4,onTimerOver:5},Ng)}}function zg(i){let e,t,n,o,r;return{c(){e=M("svg"),t=M("path"),n=M("path"),o=M("path"),r=M("path"),u(t,"fill","#fefffe"),u(t,"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"),Ht(t,"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"),Ht(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"),Ht(o,"opacity",".985"),u(r,"fill","#fefffe"),u(r,"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"),Ht(r,"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"),Ht(e,"shape-rendering","geometricPrecision"),Ht(e,"text-rendering","geometricPrecision"),Ht(e,"image-rendering","optimizeQuality"),Ht(e,"fill-rule","evenodd"),Ht(e,"clip-rule","evenodd"),Ht(e,"width","100%"),Ht(e,"height","100%")},m(l,s){C(l,e,s),m(e,t),m(e,n),m(e,o),m(e,r)},p:U,i:U,o:U,d(l){l&&y(e)}}}class Fg extends we{constructor(e){super(),ke(this,e,null,zg,_e,{})}}function Hg(i){qe(i,"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 Ug(i){let e,t,n,o,r;return o=new Dg({props:{startTime:i[1]||0,onTimerOver:i[3]}}),{c(){e=w("div"),t=w("span"),t.textContent=`${re("waiting_live_timer_title")}`,n=R(),H(o.$$.fragment),u(t,"class","timer__title v-15pewff"),u(e,"class","waiting-timer timer v-15pewff")},m(l,s){C(l,e,s),m(e,t),m(e,n),z(o,e,null),r=!0},p(l,s){const a={};s&2&&(a.startTime=l[1]||0),s&4&&(a.onTimerOver=l[3]),o.$set(a)},i(l){r||(h(o.$$.fragment,l),r=!0)},o(l){p(o.$$.fragment,l),r=!1},d(l){l&&y(e),F(o)}}}function jg(i){let e,t,n,o,r,l;return n=new Fg({}),{c(){e=w("div"),t=w("div"),H(n.$$.fragment),o=R(),r=w("span"),r.textContent=`${re("waiting_live_upcoming_title")}`,u(t,"class","upcoming-icon v-15pewff"),u(r,"class","upcoming__title v-15pewff"),u(e,"class","upcoming v-15pewff")},m(s,a){C(s,e,a),m(e,t),z(n,t,null),m(e,o),m(e,r),l=!0},p:U,i(s){l||(h(n.$$.fragment,s),l=!0)},o(s){p(n.$$.fragment,s),l=!1},d(s){s&&y(e),F(n)}}}function qg(i){let e,t,n,o,r;const l=[jg,Ug],s=[];function a(c,f){return c[2]?0:1}return t=a(i),n=s[t]=l[t](i),{c(){e=w("div"),n.c(),u(e,"class","waiting-container v-15pewff"),u(e,"style",o=`background-image: url(${i[2]?"":i[0]})`)},m(c,f){C(c,e,f),s[t].m(e,null),r=!0},p(c,[f]){let d=t;t=a(c),t===d?s[t].p(c,f):(pe(),p(s[d],1,1,()=>{s[d]=null}),ve(),n=s[t],n?n.p(c,f):(n=s[t]=l[t](c),n.c()),h(n,1),n.m(e,null)),(!r||f&5&&o!==(o=`background-image: url(${c[2]?"":c[0]})`))&&u(e,"style",o)},i(c){r||(h(n),r=!0)},o(c){p(n),r=!1},d(c){c&&y(e),s[t].d()}}}function Zg(i,e,t){let n,{thumbUrl:o}=e,{startTime:r}=e;const l=()=>t(2,n=!0);return i.$$set=s=>{"thumbUrl"in s&&t(0,o=s.thumbUrl),"startTime"in s&&t(1,r=s.startTime)},i.$$.update=()=>{i.$$.dirty&2&&t(2,n=r===void 0||r<Math.floor(Date.now()/1e3))},[o,r,n,l]}class Mc extends we{constructor(e){super(),ke(this,e,Zg,qg,_e,{thumbUrl:0,startTime:1},Hg)}}function Wg(i){qe(i,"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 Gg(i){let e,t;return{c(){e=w("div"),t=w("p"),t.textContent=`${re("waiting_record_title")}`,u(t,"class","waiting-title v-1bcnzdw"),u(e,"class","waiting-container v-1bcnzdw")},m(n,o){C(n,e,o),m(e,t)},p:U,i:U,o:U,d(n){n&&y(e)}}}class Bc extends we{constructor(e){super(),ke(this,e,null,Gg,_e,{},Wg)}}const{window:Kg}=U1;function Yg(i){qe(i,"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 r1(i){var n;let e,t;return e=new Mc({props:{thumbUrl:i[3],startTime:(n=i[5])==null?void 0:n.startTime}}),{c(){H(e.$$.fragment)},m(o,r){z(e,o,r),t=!0},p(o,r){var s;const l={};r[0]&8&&(l.thumbUrl=o[3]),r[0]&32&&(l.startTime=(s=o[5])==null?void 0:s.startTime),e.$set(l)},i(o){t||(h(e.$$.fragment,o),t=!0)},o(o){p(e.$$.fragment,o),t=!1},d(o){F(e,o)}}}function s1(i){let e,t;return e=new Bc({}),{c(){H(e.$$.fragment)},m(n,o){z(e,n,o),t=!0},i(n){t||(h(e.$$.fragment,n),t=!0)},o(n){p(e.$$.fragment,n),t=!1},d(n){F(e,n)}}}function a1(i){let e,t,n;return t=new qu({props:{adsSlotId:i[9],adsParams:i[10],adsPreviewParam:i[11],duration:i[12]}}),{c(){e=w("div"),H(t.$$.fragment),u(e,"class","ads-container v-1o4wf3x"),L(e,"hidden",i[35]!==Oe.Ads)},m(o,r){C(o,e,r),z(t,e,null),n=!0},p(o,r){const l={};r[0]&512&&(l.adsSlotId=o[9]),r[0]&1024&&(l.adsParams=o[10]),r[0]&2048&&(l.adsPreviewParam=o[11]),r[0]&4096&&(l.duration=o[12]),t.$set(l),(!n||r[1]&16)&&L(e,"hidden",o[35]!==Oe.Ads)},i(o){n||(h(t.$$.fragment,o),n=!0)},o(o){p(t.$$.fragment,o),n=!1},d(o){o&&y(e),F(t)}}}function u1(i){let e,t;return e=new Sm({props:{title:i[18],thumb:i[19],playNextVideo:i[23]}}),{c(){H(e.$$.fragment)},m(n,o){z(e,n,o),t=!0},p(n,o){const r={};o[0]&262144&&(r.title=n[18]),o[0]&524288&&(r.thumb=n[19]),o[0]&8388608&&(r.playNextVideo=n[23]),e.$set(r)},i(n){t||(h(e.$$.fragment,n),t=!0)},o(n){p(e.$$.fragment,n),t=!1},d(n){F(e,n)}}}function c1(i){let e,t;return e=new Bg({props:{title:i[2],isHidden:!i[33]}}),{c(){H(e.$$.fragment)},m(n,o){z(e,n,o),t=!0},p(n,o){const r={};o[0]&4&&(r.title=n[2]),o[1]&4&&(r.isHidden=!n[33]),e.$set(r)},i(n){t||(h(e.$$.fragment,n),t=!0)},o(n){p(e.$$.fragment,n),t=!1},d(n){F(e,n)}}}function f1(i){let e,t;return e=new Ec({props:{isShifted:i[35]===Oe.Video&&i[33]}}),{c(){H(e.$$.fragment)},m(n,o){z(e,n,o),t=!0},p(n,o){const r={};o[1]&20&&(r.isShifted=n[35]===Oe.Video&&n[33]),e.$set(r)},i(n){t||(h(e.$$.fragment,n),t=!0)},o(n){p(e.$$.fragment,n),t=!1},d(n){F(e,n)}}}function d1(i){let e,t,n;return t=new lu({props:{ariaLabel:re("video360")}}),{c(){e=w("div"),H(t.$$.fragment),u(e,"class","spherical-video-icon v-1o4wf3x")},m(o,r){C(o,e,r),z(t,e,null),n=!0},p:U,i(o){n||(h(t.$$.fragment,o),n=!0)},o(o){p(t.$$.fragment,o),n=!1},d(o){o&&y(e),F(t)}}}function m1(i){let e,t;return e=new Ic({props:{thumbUrl:i[3],chromecastDeviceName:i[52]}}),{c(){H(e.$$.fragment)},m(n,o){z(e,n,o),t=!0},p(n,o){const r={};o[0]&8&&(r.thumbUrl=n[3]),o[1]&2097152&&(r.chromecastDeviceName=n[52]),e.$set(r)},i(n){t||(h(e.$$.fragment,n),t=!0)},o(n){p(e.$$.fragment,n),t=!1},d(n){F(e,n)}}}function h1(i){let e,t;return e=new Ac({props:{shifted:i[33],captions:i[54],position:i[55],playerSize:i[31]}}),{c(){H(e.$$.fragment)},m(n,o){z(e,n,o),t=!0},p(n,o){const r={};o[1]&4&&(r.shifted=n[33]),o[1]&8388608&&(r.captions=n[54]),o[1]&16777216&&(r.position=n[55]),o[1]&1&&(r.playerSize=n[31]),e.$set(r)},i(n){t||(h(e.$$.fragment,n),t=!0)},o(n){p(e.$$.fragment,n),t=!1},d(n){F(e,n)}}}function p1(i){let e,t,n,o,r;return t=new Lc({}),{c(){e=w("div"),H(t.$$.fragment)},m(l,s){C(l,e,s),z(t,e,null),n=!0,o||(r=[Se(e,"contextmenu",ui(i[102])),Se(e,"click",ht(i[113]))],o=!0)},p:U,i(l){n||(h(t.$$.fragment,l),n=!0)},o(l){p(t.$$.fragment,l),n=!1},d(l){l&&y(e),F(t),o=!1,Xt(r)}}}function v1(i){let e,t;return e=new Ju({}),{c(){H(e.$$.fragment)},m(n,o){z(e,n,o),t=!0},i(n){t||(h(e.$$.fragment,n),t=!0)},o(n){p(e.$$.fragment,n),t=!1},d(n){F(e,n)}}}function g1(i){let e,t;return e=new Km({}),{c(){H(e.$$.fragment)},m(n,o){z(e,n,o),t=!0},i(n){t||(h(e.$$.fragment,n),t=!0)},o(n){p(e.$$.fragment,n),t=!1},d(n){F(e,n)}}}function b1(i){let e,t;return e=new Gu({}),{c(){H(e.$$.fragment)},m(n,o){z(e,n,o),t=!0},i(n){t||(h(e.$$.fragment,n),t=!0)},o(n){p(e.$$.fragment,n),t=!1},d(n){F(e,n)}}}function _1(i){let e,t,n,o,r,l,s,a,c,f,d,g,v,b,S,_,A,E,V,B,le,O,q,D,me;e=new Vc({props:{hidden:i[35]!==Oe.Thumb||i[34]||i[90]&&i[6],thumbUrl:i[3],startVideo:i[29]}});let ue=i[35]===Oe.WaitingLive&&r1(i),Z=i[35]===Oe.WaitingRecord&&s1(),fe=i[8]&&i[22]&&a1(i),J=i[30]&&i[18]&&i[19]&&u1(i),T=i[43]&&c1(i),I=i[48]&&f1(i),se=i[51]&&d1(),G=i[36]&&m1(i),ye=i[53].value!=="off"&&h1(i),ae=i[34]&&p1(i);function Y(k){i[141](k)}let oe={bottomHidden:i[35]===Oe.Thumb||i[35]===Oe.WaitingLive||i[35]===Oe.WaitingRecord,bottomNoSmooth:i[49],showControls:i[33],isAds:i[35]===Oe.Ads,canRewindLive:i[7]&&i[56]!==0,logoClickable:i[13],logoHidden:i[14],videoLogoUrl:i[4],showNextPrevButtons:i[15],nextButtonActive:i[16],prevButtonActive:i[17],isOneVideoPlaylist:i[20],supportLink:i[21],customFullscreenSupported:Jg,playNextVideo:i[23],playPrevVideo:i[24],repeatPlaylist:i[25],toggleFullscreen:i[100],returnFocus:i[140],seekToInteractive:i[26],toggleGraph:i[27],playPrevChapter:i[28]};i[38]!==void 0&&(oe.controlsElementRef=i[38]),v=new Sc({props:oe}),Me.push(()=>Je(v,"controlsElementRef",Y)),_=new Wu({props:{isLive:i[57],isHidden:!i[42],isPlaying:i[58],position:i[55],duration:i[59]}}),E=new cg({props:{data:i[98]}}),B=new om({props:{supportLink:i[21],returnFocus:i[142],visible:i[47],playerContainerRef:i[37],controlsContainerRef:i[38],x:i[39],y:i[40]}});let Ne=i[41]&&v1(),N=i[60]&&g1(),ce=i[61]&&b1();return{c(){H(e.$$.fragment),t=R(),ue&&ue.c(),n=R(),Z&&Z.c(),o=R(),fe&&fe.c(),r=R(),J&&J.c(),l=R(),T&&T.c(),s=R(),I&&I.c(),a=R(),se&&se.c(),c=R(),G&&G.c(),f=R(),ye&&ye.c(),d=R(),ae&&ae.c(),g=R(),H(v.$$.fragment),S=R(),H(_.$$.fragment),A=R(),H(E.$$.fragment),V=R(),H(B.$$.fragment),le=R(),Ne&&Ne.c(),O=R(),N&&N.c(),q=R(),ce&&ce.c(),D=Et()},m(k,$){z(e,k,$),C(k,t,$),ue&&ue.m(k,$),C(k,n,$),Z&&Z.m(k,$),C(k,o,$),fe&&fe.m(k,$),C(k,r,$),J&&J.m(k,$),C(k,l,$),T&&T.m(k,$),C(k,s,$),I&&I.m(k,$),C(k,a,$),se&&se.m(k,$),C(k,c,$),G&&G.m(k,$),C(k,f,$),ye&&ye.m(k,$),C(k,d,$),ae&&ae.m(k,$),C(k,g,$),z(v,k,$),C(k,S,$),z(_,k,$),C(k,A,$),z(E,k,$),C(k,V,$),z(B,k,$),C(k,le,$),Ne&&Ne.m(k,$),C(k,O,$),N&&N.m(k,$),C(k,q,$),ce&&ce.m(k,$),C(k,D,$),me=!0},p(k,$){const Fe={};$[0]&64|$[1]&24&&(Fe.hidden=k[35]!==Oe.Thumb||k[34]||k[90]&&k[6]),$[0]&8&&(Fe.thumbUrl=k[3]),$[0]&536870912&&(Fe.startVideo=k[29]),e.$set(Fe),k[35]===Oe.WaitingLive?ue?(ue.p(k,$),$[1]&16&&h(ue,1)):(ue=r1(k),ue.c(),h(ue,1),ue.m(n.parentNode,n)):ue&&(pe(),p(ue,1,1,()=>{ue=null}),ve()),k[35]===Oe.WaitingRecord?Z?$[1]&16&&h(Z,1):(Z=s1(),Z.c(),h(Z,1),Z.m(o.parentNode,o)):Z&&(pe(),p(Z,1,1,()=>{Z=null}),ve()),k[8]&&k[22]?fe?(fe.p(k,$),$[0]&4194560&&h(fe,1)):(fe=a1(k),fe.c(),h(fe,1),fe.m(r.parentNode,r)):fe&&(pe(),p(fe,1,1,()=>{fe=null}),ve()),k[30]&&k[18]&&k[19]?J?(J.p(k,$),$[0]&1074528256&&h(J,1)):(J=u1(k),J.c(),h(J,1),J.m(l.parentNode,l)):J&&(pe(),p(J,1,1,()=>{J=null}),ve()),k[43]?T?(T.p(k,$),$[1]&4096&&h(T,1)):(T=c1(k),T.c(),h(T,1),T.m(s.parentNode,s)):T&&(pe(),p(T,1,1,()=>{T=null}),ve()),k[48]?I?(I.p(k,$),$[1]&131072&&h(I,1)):(I=f1(k),I.c(),h(I,1),I.m(a.parentNode,a)):I&&(pe(),p(I,1,1,()=>{I=null}),ve()),k[51]?se?(se.p(k,$),$[1]&1048576&&h(se,1)):(se=d1(),se.c(),h(se,1),se.m(c.parentNode,c)):se&&(pe(),p(se,1,1,()=>{se=null}),ve()),k[36]?G?(G.p(k,$),$[1]&32&&h(G,1)):(G=m1(k),G.c(),h(G,1),G.m(f.parentNode,f)):G&&(pe(),p(G,1,1,()=>{G=null}),ve()),k[53].value!=="off"?ye?(ye.p(k,$),$[1]&4194304&&h(ye,1)):(ye=h1(k),ye.c(),h(ye,1),ye.m(d.parentNode,d)):ye&&(pe(),p(ye,1,1,()=>{ye=null}),ve()),k[34]?ae?(ae.p(k,$),$[1]&8&&h(ae,1)):(ae=p1(k),ae.c(),h(ae,1),ae.m(g.parentNode,g)):ae&&(pe(),p(ae,1,1,()=>{ae=null}),ve());const Te={};$[1]&16&&(Te.bottomHidden=k[35]===Oe.Thumb||k[35]===Oe.WaitingLive||k[35]===Oe.WaitingRecord),$[1]&262144&&(Te.bottomNoSmooth=k[49]),$[1]&4&&(Te.showControls=k[33]),$[1]&16&&(Te.isAds=k[35]===Oe.Ads),$[0]&128|$[1]&33554432&&(Te.canRewindLive=k[7]&&k[56]!==0),$[0]&8192&&(Te.logoClickable=k[13]),$[0]&16384&&(Te.logoHidden=k[14]),$[0]&16&&(Te.videoLogoUrl=k[4]),$[0]&32768&&(Te.showNextPrevButtons=k[15]),$[0]&65536&&(Te.nextButtonActive=k[16]),$[0]&131072&&(Te.prevButtonActive=k[17]),$[0]&1048576&&(Te.isOneVideoPlaylist=k[20]),$[0]&2097152&&(Te.supportLink=k[21]),$[0]&8388608&&(Te.playNextVideo=k[23]),$[0]&16777216&&(Te.playPrevVideo=k[24]),$[0]&33554432&&(Te.repeatPlaylist=k[25]),$[1]&32768&&(Te.returnFocus=k[140]),$[0]&67108864&&(Te.seekToInteractive=k[26]),$[0]&134217728&&(Te.toggleGraph=k[27]),$[0]&268435456&&(Te.playPrevChapter=k[28]),!b&&$[1]&128&&(b=!0,Te.controlsElementRef=k[38],Qe(()=>b=!1)),v.$set(Te);const Ve={};$[1]&67108864&&(Ve.isLive=k[57]),$[1]&2048&&(Ve.isHidden=!k[42]),$[1]&134217728&&(Ve.isPlaying=k[58]),$[1]&16777216&&(Ve.position=k[55]),$[1]&268435456&&(Ve.duration=k[59]),_.$set(Ve);const Ae={};$[0]&2097152&&(Ae.supportLink=k[21]),$[1]&32768&&(Ae.returnFocus=k[142]),$[1]&65536&&(Ae.visible=k[47]),$[1]&64&&(Ae.playerContainerRef=k[37]),$[1]&128&&(Ae.controlsContainerRef=k[38]),$[1]&256&&(Ae.x=k[39]),$[1]&512&&(Ae.y=k[40]),B.$set(Ae),k[41]?Ne?$[1]&1024&&h(Ne,1):(Ne=v1(),Ne.c(),h(Ne,1),Ne.m(O.parentNode,O)):Ne&&(pe(),p(Ne,1,1,()=>{Ne=null}),ve()),k[60]?N?$[1]&536870912&&h(N,1):(N=g1(),N.c(),h(N,1),N.m(q.parentNode,q)):N&&(pe(),p(N,1,1,()=>{N=null}),ve()),k[61]?ce?$[1]&1073741824&&h(ce,1):(ce=b1(),ce.c(),h(ce,1),ce.m(D.parentNode,D)):ce&&(pe(),p(ce,1,1,()=>{ce=null}),ve())},i(k){me||(h(e.$$.fragment,k),h(ue),h(Z),h(fe),h(J),h(T),h(I),h(se),h(G),h(ye),h(ae),h(v.$$.fragment,k),h(_.$$.fragment,k),h(E.$$.fragment,k),h(B.$$.fragment,k),h(Ne),h(N),h(ce),me=!0)},o(k){p(e.$$.fragment,k),p(ue),p(Z),p(fe),p(J),p(T),p(I),p(se),p(G),p(ye),p(ae),p(v.$$.fragment,k),p(_.$$.fragment,k),p(E.$$.fragment,k),p(B.$$.fragment,k),p(Ne),p(N),p(ce),me=!1},d(k){k&&(y(t),y(n),y(o),y(r),y(l),y(s),y(a),y(c),y(f),y(d),y(g),y(S),y(A),y(V),y(le),y(O),y(q),y(D)),F(e,k),ue&&ue.d(k),Z&&Z.d(k),fe&&fe.d(k),J&&J.d(k),T&&T.d(k),I&&I.d(k),se&&se.d(k),G&&G.d(k),ye&&ye.d(k),ae&&ae.d(k),F(v,k),F(_,k),F(E,k),F(B,k),Ne&&Ne.d(k),N&&N.d(k),ce&&ce.d(k)}}}function Xg(i){let e,t,n,o,r=i[50],l,s,a,c,f=_1(i);return{c(){e=w("div"),t=w("div"),o=R(),f.c(),l=Et(),u(t,"class","video-container v-1o4wf3x"),u(t,"style",n=`transform: rotate(${i[32]}deg) scale(${i[45]})`),L(t,"fast-rotate",!i[1].isSmoothVideoRotate),u(e,"class","video-wrapper v-1o4wf3x"),L(e,"hidden",i[35]!==Oe.Video),L(e,"nocursor",i[44])},m(d,g){C(d,e,g),m(e,t),i[139](t),C(d,o,g),f.m(d,g),C(d,l,g),s=!0,a||(c=[Se(e,"contextmenu",ui(i[102])),Se(e,"mousedown",ui(i[107])),Se(e,"mouseup",ui(i[108])),Se(e,"click",ui(i[110])),Se(e,"dblclick",ui(i[109]))],a=!0)},p(d,g){(!s||g[1]&16386&&n!==(n=`transform: rotate(${d[32]}deg) scale(${d[45]})`))&&u(t,"style",n),(!s||g[0]&2)&&L(t,"fast-rotate",!d[1].isSmoothVideoRotate),(!s||g[1]&16)&&L(e,"hidden",d[35]!==Oe.Video),(!s||g[1]&8192)&&L(e,"nocursor",d[44]),g[1]&524288&&_e(r,r=d[50])?(pe(),p(f,1,1,U),ve(),f=_1(d),f.c(),h(f,1),f.m(l.parentNode,l)):f.p(d,g)},i(d){s||(h(f),s=!0)},o(d){p(f),s=!1},d(d){d&&(y(e),y(o),y(l)),i[139](null),f.d(d),a=!1,Xt(c)}}}function Qg(i){let e,t,n,o,r,l={toggleFullscreen:i[100],hideContextMenu:i[101],showHotKeyHelpers:i[111],showKeyMap:i[112],isAds:i[35]===Oe.Ads,$$slots:{default:[Xg]},$$scope:{ctx:i}};return t=new Im({props:l}),i[143](t),{c(){e=w("div"),H(t.$$.fragment),u(e,"class","player-wrapper v-1o4wf3x")},m(s,a){C(s,e,a),z(t,e,null),i[144](e),n=!0,o||(r=[Se(Kg,"blur",i[101]),Se(e,"mouseenter",i[103]),Se(e,"mouseleave",i[105]),Se(e,"mousemove",i[106]),Se(e,"click",i[114],!0),Se(e,"focusin",i[104],!0)],o=!0)},p(s,a){const c={};a[1]&16&&(c.isAds=s[35]===Oe.Ads),a[0]&2147483647|a[1]&2147483647|a[5]&512&&(c.$$scope={dirty:a,ctx:s}),t.$set(c)},i(s){n||(h(t.$$.fragment,s),n=!0)},o(s){p(t.$$.fragment,s),n=!1},d(s){s&&y(e),i[143](null),F(t),i[144](null),o=!1,Xt(r)}}}let Jg=!0;function Nc(i){return i?i.offsetTop+Nc(i.offsetParent):0}function xg(i,e,t){let n,o,r,l,s,a,c,f,d,g,v,b,S,_,A,E,V,B,le,O,q,D,me,ue,Z,fe,J,T,I,se,G,ye,ae,Y,oe,Ne,{store:N}=e,{uiConfig:ce}=e,{title:k}=e,{thumbUrl:$}=e,{videoLogoUrl:Fe}=e,{videoContainer:Te}=e,{interactiveContainer:Ve}=e,{live:Ae}=e,{autoplay:be}=e,{canRewindLive:Ee}=e,{showAds:Pe}=e,{adsSlotId:X=void 0}=e,{adsParams:j=void 0}=e,{adsPreviewParam:He=void 0}=e,{duration:We=void 0}=e,{logoClickable:rt}=e,{logoHidden:Ue}=e,{showNextPrevButtons:gt=!1}=e,{nextButtonActive:pt=!1}=e,{prevButtonActive:Ot=!1}=e,{endScreenVideoTitle:mt=void 0}=e,{endScreenVideoThumb:Re=void 0}=e,{isOneVideoPlaylist:Dt=!1}=e,{supportLink:te}=e,{outerContainerRef:nt=void 0}=e,{playerStarted:st=!1}=e,{fullScreenTarget:Ke=void 0}=e,{showMiniTimer:xe=!1}=e,{playNextVideo:$e=ne.noop}=e,{playPrevVideo:et=ne.noop}=e,{repeatPlaylist:ot=ne.noop}=e,{seekToInteractive:Vt}=e,{toggleGraph:lt}=e,{playPrevChapter:at}=e,{firstStart:Ye}=e;const Xe=N.getLogger().createComponentLog("Root component"),xt=N.interfaceLanguage$;W(i,xt,K=>t(50,Z=K));const kt=N.state.playbackState$;W(i,kt,K=>t(136,D=K));const vt=N.ads.playbackState;W(i,vt,K=>t(137,me=K));const Rt=N.state.positionWithScrubbing$;W(i,Rt,K=>t(55,se=K));const dt=N.state.duration$;W(i,dt,K=>t(59,Y=K));const ni=N.playerPhase;W(i,ni,K=>t(35,V=K));const de=N.ui.isFullscreen;W(i,de,K=>t(127,c=K));const Ce=N.ui.controlsVisible;W(i,Ce,K=>t(33,b=K));const Le=N.ui.settingsMenuVisible;W(i,Le,K=>t(125,n=K));const Mt=N.ui.scrubbingInProgress;W(i,Mt,K=>t(128,g=K));const $t=N.ui.contextMenuVisible;W(i,$t,K=>t(47,o=K));const Ie=N.ui.debugPanelVisible;W(i,Ie,K=>t(61,Ne=K));const jt=N.state.isLoaderVisible;W(i,jt,K=>t(138,ue=K));const Qt=N.state.isEnded$;W(i,Qt,K=>t(126,l=K));const wt=N.state.chromecastConnected$;W(i,wt,K=>t(36,O=K));const qt=N.state.chromecastDeviceName$;W(i,qt,K=>t(52,J=K));const Ci=N.ads.postrollPassed;W(i,Ci,K=>t(131,A=K));const qi=N.state.isLive$;W(i,qi,K=>t(57,ye=K));const Zi=N.state.isPlaying$;W(i,Zi,K=>t(58,ae=K));const Wi=N.state.crashed$;W(i,Wi,K=>t(34,_=K));const bt=N.webApi.pictureInPictureApi,Pi=N.state.currentSubtitle$;W(i,Pi,K=>t(53,T=K));const en=N.state.currentSubtitleCaptions$;W(i,en,K=>t(54,I=K));const Gi=N.state.duration$;W(i,Gi,K=>t(56,G=K));const Pt=N.state.graphIsOpened$;W(i,Pt,K=>t(132,E=K));const Ri=N.ui.playerSize;W(i,Ri,K=>t(31,a=K));const Ut=N.ui.is3DVideo;W(i,Ut,K=>t(48,s=K));const Zt=N.ui.icon3DVideoVisible;W(i,Zt,K=>t(51,fe=K));const Si=N.ui.rotateAlpha;W(i,Si,K=>t(32,d=K));const Ti=N.state.isInteractive,vi=N.state.isInteractiveTime$;W(i,vi,K=>t(129,v=K));const fi=N.state.isInteractiveExpectation$;W(i,fi,K=>t(135,q=K));const di=N.state.hasInteractiveBranches,gi=N.ui.touched;W(i,gi,K=>t(133,B=K));const li=N.ui.modals.hotKeyMap.data;W(i,li,K=>t(151,r=K));const Ei=N.ui.modals.hotKeyMap.show;W(i,Ei,K=>t(60,oe=K));let ri,bi,Oi=0,_i=0,Lt,si,Ai;li.set(S4());let ki;const wi=ze(!1);W(i,wi,K=>t(49,f=K));let Di;const Ze=ze(!1);W(i,Ze,K=>t(134,le=K));const ai=ze(),zi=ze(!1);W(i,zi,K=>t(130,S=K));let oi=!1,Ii=!1,ei,Be,yi,Ki,Yi,tn,Xi=!1,Li,Qi=!1,Vi=null,zt;bt==null||bt.setContext(Z1());const mi=()=>{be&&!Ti&&Wt(ce.controls.hideTimeout)};N.setUiCallbacks({onStarted:mi});const Mi=()=>{window.clearTimeout(Lt),Ze.set(!1)},fn=()=>{window.clearTimeout(si),ai.set(null)},Wt=K=>{Mi(),Ze.set(!0),Lt=window.setTimeout(()=>Ze.set(!1),K);const St=K-100;Di=window.setTimeout(()=>{f&&wi.set(!1)},St>0?St:K)},nn=(K,St)=>{fn(),ai.set(St),si=window.setTimeout(()=>ai.set(null),K)},on=Ut.subscribe(K=>{Zt.set(K),K&&(window.clearTimeout(Ai),Ai=window.setTimeout(()=>Zt.set(!1),ce.controls.hide360IconTimeout))}),Bi=()=>Un(this,null,function*(){var St,xi,Ni,wn;const K=To();if(K){Wt(ce.controls.hideTimeoutFullscreen);try{yield bt==null?void 0:bt.remove()}catch(Fn){Xe({message:String(Fn)})}}de.set(K),N.getAdmanWrapper().setFullscreen(K),c?(xi=(St=N.callbacks)==null?void 0:St.onFullscreenEnter)==null||xi.call(St):(wn=(Ni=N.callbacks)==null?void 0:Ni.onFullscreenExit)==null||wn.call(Ni)}),gn=K=>{const St=K;Ri.set({width:St.target.width,height:St.target.height})};vn(()=>{var St;return Uu(Bi),tl(bt)&&(bt==null||bt.assignPlayerContainer(ri),bt==null||bt.registryExternalEventHandlers({resize:gn})),Ve&&((St=Te.parentElement)==null||St.insertBefore(Ve,Te.nextSibling)),()=>{window.clearTimeout(Lt),window.clearTimeout(Di),window.clearTimeout(si),window.clearTimeout(Ai),on(),bt==null||bt.dispose(),ju(Bi)}});const Ji=()=>Un(this,null,function*(){if(To())yield Hu(document),Xe({message:"exit fullscreen"});else{Xe({message:"request fullscreen"});const K=nt!=null?nt:ri,St=K.getRootNode(),xi=St instanceof ShadowRoot?St.host:St,Ni=Ke instanceof HTMLElement&&Ke.contains(xi),wn=ce.allowChangingFullscreenTarget&&Ke&&Ni?Ke:K;yield Fu(wn)}}),hi=()=>{Le.set(!1),$t.set(!1)},bn=K=>{$t.set(!0),t(39,Oi=K.clientX),t(40,_i=K.clientY)};function dn(){zi.set(!0),Ti||Wt(ce.controls.hideTimeoutCursor)}function ln(){Ti||(wi.set(!0),Wt(ce.controls.hideTimeoutCursor))}function rn(){zi.set(!1),t(121,Ii=!1),t(120,oi=!1),Qi=!1,N.actions.internal.releaseCamera()}function sn(K){if(ri){const St=Nc(K.currentTarget),xi=a.height,Ni=K.pageY-St;Ni<pr?t(121,Ii=!0):Ni>xi-pr?t(120,oi=!0):(t(121,Ii=!1),n||t(120,oi=!1))}}function an(K){sn(K),Be||Wt(ce.controls.hideTimeoutCursor),s&&Qi&&Vi&&N.actions.internal.moveCameraFocusPX(Vi.clientX-K.clientX,Vi.clientY-K.clientY,K.timeStamp-Vi.timeStamp),Vi=K}const _n=K=>{K.button===0&&(Qi=!0,N.actions.internal.holdCamera()),Wt(ce.controls.hideTimeoutCursor)},kn=K=>{K.button===0&&(Vi=K,Qi=!1,N.actions.internal.releaseCamera()),Wt(ce.controls.hideTimeoutCursor)},x=()=>{Xe({message:"double click on video"}),Ji(),Wt(ce.controls.hideTimeoutCursor)},yt=()=>{if(o||n){hi();return}if(!(l&&!di)){if(zt==null||zt.focus(),!st){Ye(),Wt(ce.controls.hideTimeoutCursor);return}N.actions.internal.togglePlay(),Wt(ce.controls.hideTimeoutCursor)}},ti=K=>{hi(),gi.set(!0),Wt(ce.controls.hideTimeout),K&&nn(ce.controls.hideHotKeyHelpers,K)},Fi=()=>{var K,St;hi(),(K=N.callbacks)!=null&&K.onOpenHotKeyMap?(St=N.callbacks)==null||St.onOpenHotKeyMap(r):Ei.update(xi=>!xi)},un=()=>{if(o||n){hi();return}},Hi=()=>{gi.set(!0)};function Sn(K){Me[K?"unshift":"push"](()=>{Te=K,t(0,Te)})}const ee=()=>zt==null?void 0:zt.focus();function Wn(K){bi=K,t(38,bi)}const ho=()=>zt==null?void 0:zt.focus();function po(K){Me[K?"unshift":"push"](()=>{zt=K,t(46,zt)})}function vo(K){Me[K?"unshift":"push"](()=>{ri=K,t(37,ri)})}return i.$$set=K=>{"store"in K&&t(115,N=K.store),"uiConfig"in K&&t(1,ce=K.uiConfig),"title"in K&&t(2,k=K.title),"thumbUrl"in K&&t(3,$=K.thumbUrl),"videoLogoUrl"in K&&t(4,Fe=K.videoLogoUrl),"videoContainer"in K&&t(0,Te=K.videoContainer),"interactiveContainer"in K&&t(116,Ve=K.interactiveContainer),"live"in K&&t(5,Ae=K.live),"autoplay"in K&&t(6,be=K.autoplay),"canRewindLive"in K&&t(7,Ee=K.canRewindLive),"showAds"in K&&t(8,Pe=K.showAds),"adsSlotId"in K&&t(9,X=K.adsSlotId),"adsParams"in K&&t(10,j=K.adsParams),"adsPreviewParam"in K&&t(11,He=K.adsPreviewParam),"duration"in K&&t(12,We=K.duration),"logoClickable"in K&&t(13,rt=K.logoClickable),"logoHidden"in K&&t(14,Ue=K.logoHidden),"showNextPrevButtons"in K&&t(15,gt=K.showNextPrevButtons),"nextButtonActive"in K&&t(16,pt=K.nextButtonActive),"prevButtonActive"in K&&t(17,Ot=K.prevButtonActive),"endScreenVideoTitle"in K&&t(18,mt=K.endScreenVideoTitle),"endScreenVideoThumb"in K&&t(19,Re=K.endScreenVideoThumb),"isOneVideoPlaylist"in K&&t(20,Dt=K.isOneVideoPlaylist),"supportLink"in K&&t(21,te=K.supportLink),"outerContainerRef"in K&&t(117,nt=K.outerContainerRef),"playerStarted"in K&&t(22,st=K.playerStarted),"fullScreenTarget"in K&&t(118,Ke=K.fullScreenTarget),"showMiniTimer"in K&&t(119,xe=K.showMiniTimer),"playNextVideo"in K&&t(23,$e=K.playNextVideo),"playPrevVideo"in K&&t(24,et=K.playPrevVideo),"repeatPlaylist"in K&&t(25,ot=K.repeatPlaylist),"seekToInteractive"in K&&t(26,Vt=K.seekToInteractive),"toggleGraph"in K&&t(27,lt=K.toggleGraph),"playPrevChapter"in K&&t(28,at=K.playPrevChapter),"firstStart"in K&&t(29,Ye=K.firstStart)},i.$$.update=()=>{i.$$.dirty[1]&24|i.$$.dirty[4]&24576&&t(41,ki=(V===Oe.Video&&ue||V===Oe.Ads&&me===Kt.INACTIVE)&&!_),i.$$.dirty[4]&4096&&t(122,ei=D!==ct.PlaybackState.PLAYING),i.$$.dirty[3]&939524096|i.$$.dirty[4]&2080&&t(123,Be=v&&!(oi||Ii)&&!(ei&&!q)),i.$$.dirty[1]&56|i.$$.dirty[3]&1610612736|i.$$.dirty[4]&1042&&Ce.set((ei||n||g||O||le)&&!Be&&V===Oe.Video&&!_),i.$$.dirty[0]&2|i.$$.dirty[1]&28|i.$$.dirty[3]&67108864|i.$$.dirty[4]&512&&t(42,yi=ce.features.thumbTimer&&xe&&V===Oe.Video&&!b&&!_&&!Ti&&(ce.hideThumbTimerAfterTouch&&!B||!ce.hideThumbTimerAfterTouch)),i.$$.dirty[1]&16|i.$$.dirty[4]&264&&t(43,Ki=V===Oe.Video&&!E&&c),i.$$.dirty[0]&256|i.$$.dirty[1]&8|i.$$.dirty[4]&132&&t(30,Yi=(Pe&&A||!Pe)&&l&&!_),i.$$.dirty[0]&1073741824|i.$$.dirty[1]&4|i.$$.dirty[4]&96&&t(44,tn=S&&!(b||Yi)&&!v),i.$$.dirty[0]&2|i.$$.dirty[4]&49&&(!g&&Xi&&!v&&Wt(ce.controls.hideTimeoutCursor),t(124,Xi=g)),i.$$.dirty[0]&1|i.$$.dirty[1]&3&&t(45,Li=Te&&d%180?a.height/a.width:1)},[Te,ce,k,$,Fe,Ae,be,Ee,Pe,X,j,He,We,rt,Ue,gt,pt,Ot,mt,Re,Dt,te,st,$e,et,ot,Vt,lt,at,Ye,Yi,a,d,b,_,V,O,ri,bi,Oi,_i,ki,yi,Ki,tn,Li,zt,o,s,f,Z,fe,J,T,I,se,G,ye,ae,Y,oe,Ne,xt,kt,vt,Rt,dt,ni,de,Ce,Le,Mt,$t,Ie,jt,Qt,wt,qt,Ci,qi,Zi,Wi,Pi,en,Gi,Pt,Ri,Ut,Zt,Si,Ti,vi,fi,gi,li,Ei,wi,Ze,ai,zi,Ji,hi,bn,dn,ln,rn,an,_n,kn,x,yt,ti,Fi,un,Hi,N,Ve,nt,Ke,xe,oi,Ii,ei,Be,Xi,n,l,c,g,v,S,A,E,B,le,q,D,me,ue,Sn,ee,Wn,ho,po,vo]}class $g extends we{constructor(e){super(),ke(this,e,xg,Qg,_e,{store:115,uiConfig:1,title:2,thumbUrl:3,videoLogoUrl:4,videoContainer:0,interactiveContainer:116,live:5,autoplay:6,canRewindLive:7,showAds:8,adsSlotId:9,adsParams:10,adsPreviewParam:11,duration:12,logoClickable:13,logoHidden:14,showNextPrevButtons:15,nextButtonActive:16,prevButtonActive:17,endScreenVideoTitle:18,endScreenVideoThumb:19,isOneVideoPlaylist:20,supportLink:21,outerContainerRef:117,playerStarted:22,fullScreenTarget:118,showMiniTimer:119,playNextVideo:23,playPrevVideo:24,repeatPlaylist:25,seekToInteractive:26,toggleGraph:27,playPrevChapter:28,firstStart:29},Yg,[-1,-1,-1,-1,-1,-1])}}const eb=i=>{if(!ne.isIOS(!0))return!1;const e=i.device===ne.CurrentClientDevice.iPad||(window==null?void 0:window.screen.width)>700,t=ne.getIOSVersion();return!e||e&&!!t&&t<16};function tb(i){qe(i,"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 k1(i){let e,t,n,o,r,l,s,a,c,f,d,g,v,b,S,_=re("doubletap_seek_step",{seconds:i[1].toFixed(0)})+"",A;return{c(){e=w("div"),n=R(),o=w("div"),r=w("div"),l=w("div"),a=R(),c=w("div"),d=R(),g=w("div"),b=R(),S=w("p"),A=je(_),u(e,"class",t="semicircle "+i[0]+" v-nhq2ld"),u(l,"class",s="triangle "+i[0]+" v-nhq2ld"),u(c,"class",f="triangle "+i[0]+" v-nhq2ld"),u(g,"class",v="triangle "+i[0]+" v-nhq2ld"),u(r,"class","triangles-wrapper v-nhq2ld"),u(S,"class","step-caption v-nhq2ld"),u(o,"class","info v-nhq2ld")},m(E,V){C(E,e,V),C(E,n,V),C(E,o,V),m(o,r),m(r,l),m(r,a),m(r,c),m(r,d),m(r,g),m(o,b),m(o,S),m(S,A)},p(E,V){V&1&&t!==(t="semicircle "+E[0]+" v-nhq2ld")&&u(e,"class",t),V&1&&s!==(s="triangle "+E[0]+" v-nhq2ld")&&u(l,"class",s),V&1&&f!==(f="triangle "+E[0]+" v-nhq2ld")&&u(c,"class",f),V&1&&v!==(v="triangle "+E[0]+" v-nhq2ld")&&u(g,"class",v),V&2&&_!==(_=re("doubletap_seek_step",{seconds:E[1].toFixed(0)})+"")&&it(A,_)},d(E){E&&(y(e),y(n),y(o))}}}function ib(i){let e,t,n,o,r=i[2]&&k1(i);return{c(){e=w("div"),r&&r.c(),u(e,"class",t="double-click-area "+i[0]+" v-nhq2ld")},m(l,s){C(l,e,s),r&&r.m(e,null),n||(o=Se(e,"click",ht(i[3]())),n=!0)},p(l,[s]){l[2]?r?r.p(l,s):(r=k1(l),r.c(),r.m(e,null)):r&&(r.d(1),r=null),s&1&&t!==(t="double-click-area "+l[0]+" v-nhq2ld")&&u(e,"class",t)},i:U,o:U,d(l){l&&y(e),r&&r.d(),n=!1,o()}}}function nb(i,e,t){let{side:n}=e,{seekStep:o}=e,{handleSingleFirstClick:r}=e,{handleSecondClick:l}=e,s=!1,a=0,c=0;const f=()=>{let g=0;return()=>{g+=1,g===1?a=window.setTimeout(()=>{r(),g=0},300):(window.clearTimeout(a),g=0,l(),t(2,s=!0),c=window.setTimeout(()=>{t(2,s=!1)},500))}};return il(()=>{window.clearTimeout(a),window.clearTimeout(c)}),i.$$set=d=>{"side"in d&&t(0,n=d.side),"seekStep"in d&&t(1,o=d.seekStep),"handleSingleFirstClick"in d&&t(4,r=d.handleSingleFirstClick),"handleSecondClick"in d&&t(5,l=d.handleSecondClick)},[n,o,s,f,r,l]}class Rc extends we{constructor(e){super(),ke(this,e,nb,ib,_e,{side:0,seekStep:1,handleSingleFirstClick:4,handleSecondClick:5},tb)}}function ob(i,e,t){let{playNextVideo:n}=e;return vn(()=>{n()}),i.$$set=o=>{"playNextVideo"in o&&t(0,n=o.playNextVideo)},[n]}class lb extends we{constructor(e){super(),ke(this,e,ob,null,_e,{playNextVideo:0})}}const{window:rb}=U1;function sb(i){qe(i,"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 w1(i){let e,t,n,o;e=new Rc({props:{side:"left",seekStep:i[1].controls.seekStepMobile/1e3,handleSingleFirstClick:i[98],handleSecondClick:i[128]}});let r=!i[47]&&y1(i);return{c(){H(e.$$.fragment),t=R(),r&&r.c(),n=Et()},m(l,s){z(e,l,s),C(l,t,s),r&&r.m(l,s),C(l,n,s),o=!0},p(l,s){const a={};s[0]&2&&(a.seekStep=l[1].controls.seekStepMobile/1e3),e.$set(a),l[47]?r&&(pe(),p(r,1,1,()=>{r=null}),ve()):r?(r.p(l,s),s[1]&65536&&h(r,1)):(r=y1(l),r.c(),h(r,1),r.m(n.parentNode,n))},i(l){o||(h(e.$$.fragment,l),h(r),o=!0)},o(l){p(e.$$.fragment,l),p(r),o=!1},d(l){l&&(y(t),y(n)),F(e,l),r&&r.d(l)}}}function y1(i){let e,t;return e=new Rc({props:{side:"right",seekStep:i[1].controls.seekStepMobile/1e3,handleSingleFirstClick:i[98],handleSecondClick:i[129]}}),{c(){H(e.$$.fragment)},m(n,o){z(e,n,o),t=!0},p(n,o){const r={};o[0]&2&&(r.seekStep=n[1].controls.seekStepMobile/1e3),e.$set(r)},i(n){t||(h(e.$$.fragment,n),t=!0)},o(n){p(e.$$.fragment,n),t=!1},d(n){F(e,n)}}}function C1(i){var n;let e,t;return e=new Mc({props:{thumbUrl:i[2],startTime:(n=i[4])==null?void 0:n.startTime}}),{c(){H(e.$$.fragment)},m(o,r){z(e,o,r),t=!0},p(o,r){var s;const l={};r[0]&4&&(l.thumbUrl=o[2]),r[0]&16&&(l.startTime=(s=o[4])==null?void 0:s.startTime),e.$set(l)},i(o){t||(h(e.$$.fragment,o),t=!0)},o(o){p(e.$$.fragment,o),t=!1},d(o){F(e,o)}}}function P1(i){let e,t;return e=new Bc({}),{c(){H(e.$$.fragment)},m(n,o){z(e,n,o),t=!0},i(n){t||(h(e.$$.fragment,n),t=!0)},o(n){p(e.$$.fragment,n),t=!1},d(n){F(e,n)}}}function S1(i){let e,t,n;return t=new qu({props:{adsSlotId:i[8],adsParams:i[9],adsPreviewParam:i[10],duration:i[11]}}),{c(){e=w("div"),H(t.$$.fragment),u(e,"class","ads-container v-1jy89ut"),L(e,"hidden",i[33]!==Oe.Ads)},m(o,r){C(o,e,r),z(t,e,null),n=!0},p(o,r){const l={};r[0]&256&&(l.adsSlotId=o[8]),r[0]&512&&(l.adsParams=o[9]),r[0]&1024&&(l.adsPreviewParam=o[10]),r[0]&2048&&(l.duration=o[11]),t.$set(l),(!n||r[1]&4)&&L(e,"hidden",o[33]!==Oe.Ads)},i(o){n||(h(t.$$.fragment,o),n=!0)},o(o){p(t.$$.fragment,o),n=!1},d(o){o&&y(e),F(t)}}}function T1(i){let e,t;return e=new lb({props:{playNextVideo:i[22]}}),{c(){H(e.$$.fragment)},m(n,o){z(e,n,o),t=!0},p(n,o){const r={};o[0]&4194304&&(r.playNextVideo=n[22]),e.$set(r)},i(n){t||(h(e.$$.fragment,n),t=!0)},o(n){p(e.$$.fragment,n),t=!1},d(n){F(e,n)}}}function E1(i){let e,t;return e=new Ec({}),{c(){H(e.$$.fragment)},m(n,o){z(e,n,o),t=!0},i(n){t||(h(e.$$.fragment,n),t=!0)},o(n){p(e.$$.fragment,n),t=!1},d(n){F(e,n)}}}function A1(i){let e,t,n;return t=new lu({props:{ariaLabel:re("video360")}}),{c(){e=w("div"),H(t.$$.fragment),u(e,"class","spherical-video-icon v-1jy89ut")},m(o,r){C(o,e,r),z(t,e,null),n=!0},p:U,i(o){n||(h(t.$$.fragment,o),n=!0)},o(o){p(t.$$.fragment,o),n=!1},d(o){o&&y(e),F(t)}}}function I1(i){let e,t;return e=new Ic({props:{thumbUrl:i[2],chromecastDeviceName:i[50]}}),{c(){H(e.$$.fragment)},m(n,o){z(e,n,o),t=!0},p(n,o){const r={};o[0]&4&&(r.thumbUrl=n[2]),o[1]&524288&&(r.chromecastDeviceName=n[50]),e.$set(r)},i(n){t||(h(e.$$.fragment,n),t=!0)},o(n){p(e.$$.fragment,n),t=!1},d(n){F(e,n)}}}function L1(i){let e,t;return e=new Ac({props:{shifted:i[29],captions:i[52],position:i[43],playerSize:i[30],isMobile:!0}}),{c(){H(e.$$.fragment)},m(n,o){z(e,n,o),t=!0},p(n,o){const r={};o[0]&536870912&&(r.shifted=n[29]),o[1]&2097152&&(r.captions=n[52]),o[1]&4096&&(r.position=n[43]),o[0]&1073741824&&(r.playerSize=n[30]),e.$set(r)},i(n){t||(h(e.$$.fragment,n),t=!0)},o(n){p(e.$$.fragment,n),t=!1},d(n){F(e,n)}}}function V1(i){let e,t,n,o,r;return t=new Lc({}),{c(){e=w("div"),H(t.$$.fragment)},m(l,s){C(l,e,s),z(t,e,null),n=!0,o||(r=Se(e,"click",ht(i[99])),o=!0)},p:U,i(l){n||(h(t.$$.fragment,l),n=!0)},o(l){p(t.$$.fragment,l),n=!1},d(l){l&&y(e),F(t),o=!1,r()}}}function M1(i){let e,t;return e=new Ju({}),{c(){H(e.$$.fragment)},m(n,o){z(e,n,o),t=!0},i(n){t||(h(e.$$.fragment,n),t=!0)},o(n){p(e.$$.fragment,n),t=!1},d(n){F(e,n)}}}function B1(i){let e,t;return e=new Gu({}),{c(){H(e.$$.fragment)},m(n,o){z(e,n,o),t=!0},i(n){t||(h(e.$$.fragment,n),t=!0)},o(n){p(e.$$.fragment,n),t=!1},d(n){F(e,n)}}}function N1(i){let e,t,n=i[6]&&i[77]&&!i[46].has(_t.TIMELINE),o,r,l,s,a,c,f,d,g,v,b,S,_,A,E,V,B,le;e=new Vc({props:{hidden:i[33]!==Oe.Thumb||i[32]||i[88]&&i[5],thumbUrl:i[2],startVideo:i[28]}});let O=n&&w1(i),q=i[33]===Oe.WaitingLive&&C1(i),D=i[33]===Oe.WaitingRecord&&P1(),me=i[7]&&i[21]&&S1(i),ue=i[40]&&i[17]&&i[18]&&T1(i),Z=i[48]&&E1(),fe=i[49]&&A1(),J=i[34]&&I1(i),T=i[51].value!=="off"&&L1(i),I=i[32]&&V1(i);function se(Y){i[130](Y)}let G={bottomHidden:i[33]===Oe.Thumb||i[33]===Oe.WaitingLive||i[33]===Oe.WaitingRecord||i[33]===Oe.Ads,showControls:i[29],bottomNoSmooth:i[44],isAds:i[33]===Oe.Ads,canRewindLive:i[6]&&i[53]!==0,logoClickable:i[12],logoHidden:i[13],videoLogoUrl:i[3],showNextPrevButtons:i[14],nextButtonActive:i[15],prevButtonActive:i[16],isOneVideoPlaylist:i[19],supportLink:i[20],customFullscreenSupported:i[38],playNextVideo:i[22],playPrevVideo:i[23],repeatPlaylist:i[24],toggleFullscreen:i[96],seekToInteractive:i[25],toggleGraph:i[26],playPrevChapter:i[27],onDisabledPlayPrevChapterClick:i[102],onDisabledSeekToInteractiveClick:i[103]};i[36]!==void 0&&(G.controlsElementRef=i[36]),b=new Sc({props:G}),Me.push(()=>Je(b,"controlsElementRef",se)),A=new Wu({props:{isLive:i[54],isHidden:!i[39],isPlaying:i[55],position:i[43],duration:i[42]}});let ye=i[37]&&M1(),ae=i[56]&&B1();return{c(){H(e.$$.fragment),t=R(),O&&O.c(),o=R(),q&&q.c(),r=R(),D&&D.c(),l=R(),me&&me.c(),s=R(),ue&&ue.c(),a=R(),Z&&Z.c(),c=R(),fe&&fe.c(),f=R(),J&&J.c(),d=R(),T&&T.c(),g=R(),I&&I.c(),v=R(),H(b.$$.fragment),_=R(),H(A.$$.fragment),E=R(),ye&&ye.c(),V=R(),ae&&ae.c(),B=Et()},m(Y,oe){z(e,Y,oe),C(Y,t,oe),O&&O.m(Y,oe),C(Y,o,oe),q&&q.m(Y,oe),C(Y,r,oe),D&&D.m(Y,oe),C(Y,l,oe),me&&me.m(Y,oe),C(Y,s,oe),ue&&ue.m(Y,oe),C(Y,a,oe),Z&&Z.m(Y,oe),C(Y,c,oe),fe&&fe.m(Y,oe),C(Y,f,oe),J&&J.m(Y,oe),C(Y,d,oe),T&&T.m(Y,oe),C(Y,g,oe),I&&I.m(Y,oe),C(Y,v,oe),z(b,Y,oe),C(Y,_,oe),z(A,Y,oe),C(Y,E,oe),ye&&ye.m(Y,oe),C(Y,V,oe),ae&&ae.m(Y,oe),C(Y,B,oe),le=!0},p(Y,oe){const Ne={};oe[0]&32|oe[1]&6&&(Ne.hidden=Y[33]!==Oe.Thumb||Y[32]||Y[88]&&Y[5]),oe[0]&4&&(Ne.thumbUrl=Y[2]),oe[0]&268435456&&(Ne.startVideo=Y[28]),e.$set(Ne),oe[0]&64|oe[1]&32768&&(n=Y[6]&&Y[77]&&!Y[46].has(_t.TIMELINE)),n?O?(O.p(Y,oe),oe[0]&64|oe[1]&32768&&h(O,1)):(O=w1(Y),O.c(),h(O,1),O.m(o.parentNode,o)):O&&(pe(),p(O,1,1,()=>{O=null}),ve()),Y[33]===Oe.WaitingLive?q?(q.p(Y,oe),oe[1]&4&&h(q,1)):(q=C1(Y),q.c(),h(q,1),q.m(r.parentNode,r)):q&&(pe(),p(q,1,1,()=>{q=null}),ve()),Y[33]===Oe.WaitingRecord?D?oe[1]&4&&h(D,1):(D=P1(),D.c(),h(D,1),D.m(l.parentNode,l)):D&&(pe(),p(D,1,1,()=>{D=null}),ve()),Y[7]&&Y[21]?me?(me.p(Y,oe),oe[0]&2097280&&h(me,1)):(me=S1(Y),me.c(),h(me,1),me.m(s.parentNode,s)):me&&(pe(),p(me,1,1,()=>{me=null}),ve()),Y[40]&&Y[17]&&Y[18]?ue?(ue.p(Y,oe),oe[0]&393216|oe[1]&512&&h(ue,1)):(ue=T1(Y),ue.c(),h(ue,1),ue.m(a.parentNode,a)):ue&&(pe(),p(ue,1,1,()=>{ue=null}),ve()),Y[48]?Z?oe[1]&131072&&h(Z,1):(Z=E1(),Z.c(),h(Z,1),Z.m(c.parentNode,c)):Z&&(pe(),p(Z,1,1,()=>{Z=null}),ve()),Y[49]?fe?(fe.p(Y,oe),oe[1]&262144&&h(fe,1)):(fe=A1(),fe.c(),h(fe,1),fe.m(f.parentNode,f)):fe&&(pe(),p(fe,1,1,()=>{fe=null}),ve()),Y[34]?J?(J.p(Y,oe),oe[1]&8&&h(J,1)):(J=I1(Y),J.c(),h(J,1),J.m(d.parentNode,d)):J&&(pe(),p(J,1,1,()=>{J=null}),ve()),Y[51].value!=="off"?T?(T.p(Y,oe),oe[1]&1048576&&h(T,1)):(T=L1(Y),T.c(),h(T,1),T.m(g.parentNode,g)):T&&(pe(),p(T,1,1,()=>{T=null}),ve()),Y[32]?I?(I.p(Y,oe),oe[1]&2&&h(I,1)):(I=V1(Y),I.c(),h(I,1),I.m(v.parentNode,v)):I&&(pe(),p(I,1,1,()=>{I=null}),ve());const N={};oe[1]&4&&(N.bottomHidden=Y[33]===Oe.Thumb||Y[33]===Oe.WaitingLive||Y[33]===Oe.WaitingRecord||Y[33]===Oe.Ads),oe[0]&536870912&&(N.showControls=Y[29]),oe[1]&8192&&(N.bottomNoSmooth=Y[44]),oe[1]&4&&(N.isAds=Y[33]===Oe.Ads),oe[0]&64|oe[1]&4194304&&(N.canRewindLive=Y[6]&&Y[53]!==0),oe[0]&4096&&(N.logoClickable=Y[12]),oe[0]&8192&&(N.logoHidden=Y[13]),oe[0]&8&&(N.videoLogoUrl=Y[3]),oe[0]&16384&&(N.showNextPrevButtons=Y[14]),oe[0]&32768&&(N.nextButtonActive=Y[15]),oe[0]&65536&&(N.prevButtonActive=Y[16]),oe[0]&524288&&(N.isOneVideoPlaylist=Y[19]),oe[0]&1048576&&(N.supportLink=Y[20]),oe[1]&128&&(N.customFullscreenSupported=Y[38]),oe[0]&4194304&&(N.playNextVideo=Y[22]),oe[0]&8388608&&(N.playPrevVideo=Y[23]),oe[0]&16777216&&(N.repeatPlaylist=Y[24]),oe[0]&33554432&&(N.seekToInteractive=Y[25]),oe[0]&67108864&&(N.toggleGraph=Y[26]),oe[0]&134217728&&(N.playPrevChapter=Y[27]),!S&&oe[1]&32&&(S=!0,N.controlsElementRef=Y[36],Qe(()=>S=!1)),b.$set(N);const ce={};oe[1]&8388608&&(ce.isLive=Y[54]),oe[1]&256&&(ce.isHidden=!Y[39]),oe[1]&16777216&&(ce.isPlaying=Y[55]),oe[1]&4096&&(ce.position=Y[43]),oe[1]&2048&&(ce.duration=Y[42]),A.$set(ce),Y[37]?ye?oe[1]&64&&h(ye,1):(ye=M1(),ye.c(),h(ye,1),ye.m(V.parentNode,V)):ye&&(pe(),p(ye,1,1,()=>{ye=null}),ve()),Y[56]?ae?oe[1]&33554432&&h(ae,1):(ae=B1(),ae.c(),h(ae,1),ae.m(B.parentNode,B)):ae&&(pe(),p(ae,1,1,()=>{ae=null}),ve())},i(Y){le||(h(e.$$.fragment,Y),h(O),h(q),h(D),h(me),h(ue),h(Z),h(fe),h(J),h(T),h(I),h(b.$$.fragment,Y),h(A.$$.fragment,Y),h(ye),h(ae),le=!0)},o(Y){p(e.$$.fragment,Y),p(O),p(q),p(D),p(me),p(ue),p(Z),p(fe),p(J),p(T),p(I),p(b.$$.fragment,Y),p(A.$$.fragment,Y),p(ye),p(ae),le=!1},d(Y){Y&&(y(t),y(o),y(r),y(l),y(s),y(a),y(c),y(f),y(d),y(g),y(v),y(_),y(E),y(V),y(B)),F(e,Y),O&&O.d(Y),q&&q.d(Y),D&&D.d(Y),me&&me.d(Y),ue&&ue.d(Y),Z&&Z.d(Y),fe&&fe.d(Y),J&&J.d(Y),T&&T.d(Y),I&&I.d(Y),F(b,Y),F(A,Y),ye&&ye.d(Y),ae&&ae.d(Y)}}}function ab(i){let e,t,n,o,r,l=i[45],s,a,c,f=N1(i);return{c(){e=w("div"),t=w("div"),n=w("div"),r=R(),f.c(),u(n,"class","video-container v-1jy89ut"),u(n,"style",o=`transform: rotate(${i[31]}deg) scale(${i[41]})`),L(n,"fast-rotate",!i[1].isSmoothVideoRotate),u(t,"class","video-wrapper v-1jy89ut"),L(t,"hidden",i[33]!==Oe.Video),u(e,"class","player-wrapper v-1jy89ut")},m(d,g){C(d,e,g),m(e,t),m(t,n),i[127](n),m(e,r),f.m(e,null),i[131](e),s=!0,a||(c=[Se(rb,"blur",i[97]),Se(t,"click",ui(i[98])),Se(e,"click",i[100],!0),Se(e,"focusin",i[101],!0)],a=!0)},p(d,g){(!s||g[1]&1025&&o!==(o=`transform: rotate(${d[31]}deg) scale(${d[41]})`))&&u(n,"style",o),(!s||g[0]&2)&&L(n,"fast-rotate",!d[1].isSmoothVideoRotate),(!s||g[1]&4)&&L(t,"hidden",d[33]!==Oe.Video),g[1]&16384&&_e(l,l=d[45])?(pe(),p(f,1,1,U),ve(),f=N1(d),f.c(),h(f,1),f.m(e,null)):f.p(d,g)},i(d){s||(h(f),s=!0)},o(d){p(f),s=!1},d(d){d&&y(e),i[127](null),f.d(d),i[131](null),a=!1,Xt(c)}}}function ub(i,e,t){let n,o,r,l,s,a,c,f,d,g,v,b,S,_,A,E,V,B,le,O,q,D,me,ue,Z,fe,J,T,I,se,G,ye,ae,Y,oe,Ne,{store:N}=e,{uiConfig:ce}=e,{thumbUrl:k}=e,{videoLogoUrl:$}=e,{videoContainer:Fe}=e,{interactiveContainer:Te}=e,{live:Ve}=e,{autoplay:Ae}=e,{canRewindLive:be}=e,{showAds:Ee}=e,{adsSlotId:Pe=void 0}=e,{adsParams:X=void 0}=e,{adsPreviewParam:j=void 0}=e,{duration:He=void 0}=e,{logoClickable:We}=e,{logoHidden:rt}=e,{showNextPrevButtons:Ue=!1}=e,{nextButtonActive:gt=!1}=e,{prevButtonActive:pt=!1}=e,{endScreenVideoTitle:Ot=void 0}=e,{endScreenVideoThumb:mt=void 0}=e,{isOneVideoPlaylist:Re=!1}=e,{supportLink:Dt}=e,{outerContainerRef:te=void 0}=e,{showMiniTimer:nt=!1}=e,{fullScreenTarget:st=void 0}=e,{playerStarted:Ke=!1}=e,{playNextVideo:xe=ne.noop}=e,{playPrevVideo:$e=ne.noop}=e,{repeatPlaylist:et=ne.noop}=e,{seekToInteractive:ot}=e,{toggleGraph:Vt}=e,{playPrevChapter:lt}=e,{firstStart:at}=e,{seekTime:Ye}=e;const Xe=N.getLogger().createComponentLog("Root component"),xt=N.interfaceLanguage$;W(i,xt,x=>t(45,Z=x));const kt=N.state.playbackState$;W(i,kt,x=>t(124,D=x));const vt=N.ads.playbackState;W(i,vt,x=>t(125,me=x));const Rt=N.state.positionWithScrubbing$;W(i,Rt,x=>t(43,l=x));const dt=N.state.duration$;W(i,dt,x=>t(42,r=x));const ni=N.playerPhase;W(i,ni,x=>t(33,B=x));const de=N.ui.isFullscreen;W(i,de,x=>t(137,a=x));const Ce=N.ui.controlsVisible;W(i,Ce,x=>t(29,o=x));const Le=N.ui.interactiveHideMobileControls;W(i,Le,x=>t(116,g=x));const Mt=N.ui.settingsMenuVisible;W(i,Mt,x=>t(115,n=x));const $t=N.ui.scrubbingInProgress;W(i,$t,x=>t(117,b=x));const Ie=N.ui.debugPanelVisible;W(i,Ie,x=>t(56,Ne=x));const jt=N.state.isLoaderVisible;W(i,jt,x=>t(126,ue=x));const Qt=N.state.isEnded$;W(i,Qt,x=>t(119,A=x));const wt=N.state.chromecastConnected$;W(i,wt,x=>t(34,le=x));const qt=N.state.chromecastDeviceName$;W(i,qt,x=>t(50,se=x));const Ci=N.ads.postrollPassed;W(i,Ci,x=>t(120,E=x));const qi=N.ui.mobileUnmuteButtonExpanded,Zi=N.ui.mobileUnmuteButtonVisible,Wi=N.state.isLive$;W(i,Wi,x=>t(54,Y=x));const bt=N.state.isPlaying$;W(i,bt,x=>t(55,oe=x));const Pi=N.state.isActiveLive$;W(i,Pi,x=>t(47,J=x));const en=N.state.isRewindableLive$,Gi=N.state.crashed$;W(i,Gi,x=>t(32,_=x));const Pt=N.webApi.pictureInPictureApi,Ri=N.state.videoSize$;W(i,Ri,x=>t(138,f=x));const Ut=N.state.currentSubtitle$;W(i,Ut,x=>t(51,G=x));const Zt=N.state.currentSubtitleCaptions$;W(i,Zt,x=>t(52,ye=x));const Si=N.state.duration$;W(i,Si,x=>t(53,ae=x));const Ti=N.state.graphIsOpened$;W(i,Ti,x=>t(123,q=x));const vi=N.ui.playerSize;W(i,vi,x=>t(30,c=x));const fi=N.ui.is3DVideo;W(i,fi,x=>t(48,T=x));const di=N.ui.icon3DVideoVisible;W(i,di,x=>t(49,I=x));const gi=N.ui.rotateAlpha;W(i,gi,x=>t(31,v=x));const li=N.state.isInteractive,Ei=N.state.isInteractiveTime$;W(i,Ei,x=>t(118,S=x));const ri=N.state.isInteractiveExpectation$;W(i,ri,x=>t(122,O=x));const bi=N.state.hasInteractiveBranches,Oi=N.ui.controls.disabledControls$;W(i,Oi,x=>t(46,fe=x));const _i=N.ui.touched;W(i,_i,x=>t(121,V=x));const Lt=N.ui.clientInfo$;W(i,Lt,x=>t(136,s=x));const si=N.actions.internal.onDisabledPlayPrevChapterClick,Ai=N.actions.internal.onDisabledSeekToInteractiveClick;let ki,wi,Di,Ze,ai,zi;const oi=ze(!1);W(i,oi,x=>t(44,d=x));let Ii,ei=!1,Be,yi=!1,Ki,Yi=!0,tn,Xi,Li=!1,Qi;Pt==null||Pt.setContext(Z1());const Vi=x=>{clearTimeout(Ze),x&&(Zi.set(!0),qi.set(!0),Ze=window.setTimeout(()=>{qi.set(!1)},ce.controls.collapseMobileUnmute),li||mi(ce.controls.hideTimeoutMobile))};N.setUiCallbacks({onStarted:Vi});const zt=()=>{window.clearTimeout(Di),t(110,ei=!1),g&&Le.set(!1)},mi=x=>{zt(),t(110,ei=!0),Di=window.setTimeout(()=>t(110,ei=!1),x);const yt=x-100;Ii=window.setTimeout(()=>{d&&oi.set(!1)},yt>0?yt:x)},Mi=fi.subscribe(x=>{di.set(x),x&&(window.clearTimeout(ai),ai=window.setTimeout(()=>di.set(!1),ce.controls.hide360IconTimeout))}),fn=()=>Un(this,null,function*(){var yt,ti,Fi,un;const x=To();if(x){mi(ce.controls.hideTimeoutFullscreen);try{yield Pt==null?void 0:Pt.remove()}catch(Hi){Xe({message:String(Hi)})}try{const Hi=f!=null&&f.width&&(f!=null&&f.height)?f:c;yield P4(Hi)}catch(Hi){Xe({message:String(Hi)})}}de.set(x),N.getAdmanWrapper().setFullscreen(x),a?(ti=(yt=N.callbacks)==null?void 0:yt.onFullscreenEnter)==null||ti.call(yt):(un=(Fi=N.callbacks)==null?void 0:Fi.onFullscreenExit)==null||un.call(Fi)}),Wt=x=>{const yt=x;vi.set({width:yt.target.width,height:yt.target.height})};vn(()=>{var yt;return Uu(fn),tl(Pt)&&(Pt==null||Pt.assignPlayerContainer(ki),Pt==null||Pt.registryExternalEventHandlers({resize:Wt})),t(38,Yi=!eb(s)),Te&&((yt=Fe.parentElement)==null||yt.insertBefore(Te,Fe.nextSibling)),()=>{window.clearTimeout(Di),window.clearTimeout(Ii),window.clearTimeout(Ze),window.clearTimeout(ai),Mi(),Pt==null||Pt.dispose(),ju(fn)}});const nn=x=>{let yt=l+(x==="forward"?1:-1)*ce.controls.seekStepMobile/1e3;yt<0?yt=0:yt>r&&(yt=r-1),t(112,yi=!0),Ye(yt)},on=()=>Un(this,null,function*(){if(To())yield Hu(document),Xe({message:"exit fullscreen"});else{Xe({message:"request fullscreen"});const x=te!=null?te:ki,yt=x.getRootNode(),ti=yt instanceof ShadowRoot?yt.host:yt,Fi=st instanceof HTMLElement&&st.contains(ti),un=ce.allowChangingFullscreenTarget&&st&&Fi?st:x;yield Fu(un)}}),Bi=()=>{Mt.set(!1)},gn=()=>{if(n){Bi();return}if(!Ke){at(),mi(ce.controls.hideTimeoutCursor);return}t(112,yi=!1),o?zt():mi(ce.controls.hideTimeoutMobile)},Ji=()=>{if(n){Bi();return}},hi=()=>{_i.set(!0)},bn=()=>{li||(oi.set(!0),mi(ce.controls.hideTimeoutCursor))},dn=x=>{si&&(si(x),mi(ce.controls.hideTimeoutMobile))},ln=x=>{Ai&&(Ai(x),mi(ce.controls.hideTimeoutMobile))};function rn(x){Me[x?"unshift":"push"](()=>{Fe=x,t(0,Fe)})}const sn=()=>nn("backward"),an=()=>nn("forward");function _n(x){wi=x,t(36,wi)}function kn(x){Me[x?"unshift":"push"](()=>{ki=x,t(35,ki)})}return i.$$set=x=>{"store"in x&&t(104,N=x.store),"uiConfig"in x&&t(1,ce=x.uiConfig),"thumbUrl"in x&&t(2,k=x.thumbUrl),"videoLogoUrl"in x&&t(3,$=x.videoLogoUrl),"videoContainer"in x&&t(0,Fe=x.videoContainer),"interactiveContainer"in x&&t(105,Te=x.interactiveContainer),"live"in x&&t(4,Ve=x.live),"autoplay"in x&&t(5,Ae=x.autoplay),"canRewindLive"in x&&t(6,be=x.canRewindLive),"showAds"in x&&t(7,Ee=x.showAds),"adsSlotId"in x&&t(8,Pe=x.adsSlotId),"adsParams"in x&&t(9,X=x.adsParams),"adsPreviewParam"in x&&t(10,j=x.adsPreviewParam),"duration"in x&&t(11,He=x.duration),"logoClickable"in x&&t(12,We=x.logoClickable),"logoHidden"in x&&t(13,rt=x.logoHidden),"showNextPrevButtons"in x&&t(14,Ue=x.showNextPrevButtons),"nextButtonActive"in x&&t(15,gt=x.nextButtonActive),"prevButtonActive"in x&&t(16,pt=x.prevButtonActive),"endScreenVideoTitle"in x&&t(17,Ot=x.endScreenVideoTitle),"endScreenVideoThumb"in x&&t(18,mt=x.endScreenVideoThumb),"isOneVideoPlaylist"in x&&t(19,Re=x.isOneVideoPlaylist),"supportLink"in x&&t(20,Dt=x.supportLink),"outerContainerRef"in x&&t(106,te=x.outerContainerRef),"showMiniTimer"in x&&t(107,nt=x.showMiniTimer),"fullScreenTarget"in x&&t(108,st=x.fullScreenTarget),"playerStarted"in x&&t(21,Ke=x.playerStarted),"playNextVideo"in x&&t(22,xe=x.playNextVideo),"playPrevVideo"in x&&t(23,$e=x.playPrevVideo),"repeatPlaylist"in x&&t(24,et=x.repeatPlaylist),"seekToInteractive"in x&&t(25,ot=x.seekToInteractive),"toggleGraph"in x&&t(26,Vt=x.toggleGraph),"playPrevChapter"in x&&t(27,lt=x.playPrevChapter),"firstStart"in x&&t(28,at=x.firstStart),"seekTime"in x&&t(109,Ye=x.seekTime)},i.$$.update=()=>{i.$$.dirty[1]&6|i.$$.dirty[4]&6&&t(37,zi=(B===Oe.Video&&ue||B===Oe.Ads&&me===Kt.INACTIVE)&&!_),i.$$.dirty[4]&1&&t(111,Be=D!==ct.PlaybackState.PLAYING),i.$$.dirty[3]&1686503424&&t(113,Ki=q||g||!ei&&(A&&!!bi||Be&&O)),i.$$.dirty[1]&14|i.$$.dirty[3]&22937600&&Ce.set((Be||n||b||le||ei&&!yi)&&!Ki&&B===Oe.Video&&!_),i.$$.dirty[0]&536870914|i.$$.dirty[1]&6|i.$$.dirty[3]&268451840&&t(39,tn=ce.features.thumbTimer&&nt&&B===Oe.Video&&!o&&!_&&!li&&(ce.hideThumbTimerAfterTouch&&!V||!ce.hideThumbTimerAfterTouch)),i.$$.dirty[0]&128|i.$$.dirty[1]&2|i.$$.dirty[3]&201326592&&t(40,Xi=(Ee&&E||!Ee)&&A&&!_),i.$$.dirty[0]&2|i.$$.dirty[3]&52428800&&(!b&&Li&&!S&&mi(ce.controls.hideTimeoutMobile),t(114,Li=b)),i.$$.dirty[0]&1073741825|i.$$.dirty[1]&1&&t(41,Qi=Fe&&v%180?c.height/c.width:1)},[Fe,ce,k,$,Ve,Ae,be,Ee,Pe,X,j,He,We,rt,Ue,gt,pt,Ot,mt,Re,Dt,Ke,xe,$e,et,ot,Vt,lt,at,o,c,v,_,B,le,ki,wi,zi,Yi,tn,Xi,Qi,r,l,d,Z,fe,J,T,I,se,G,ye,ae,Y,oe,Ne,xt,kt,vt,Rt,dt,ni,de,Ce,Le,Mt,$t,Ie,jt,Qt,wt,qt,Ci,Wi,bt,Pi,en,Gi,Ri,Ut,Zt,Si,Ti,vi,fi,di,gi,li,Ei,ri,Oi,_i,Lt,oi,nn,on,Bi,gn,Ji,hi,bn,dn,ln,N,Te,te,nt,st,Ye,ei,Be,yi,Ki,Li,n,g,b,S,A,E,V,O,q,D,me,ue,rn,sn,an,_n,kn]}class cb extends we{constructor(e){super(),ke(this,e,ub,ab,_e,{store:104,uiConfig:1,thumbUrl:2,videoLogoUrl:3,videoContainer:0,interactiveContainer:105,live:4,autoplay:5,canRewindLive:6,showAds:7,adsSlotId:8,adsParams:9,adsPreviewParam:10,duration:11,logoClickable:12,logoHidden:13,showNextPrevButtons:14,nextButtonActive:15,prevButtonActive:16,endScreenVideoTitle:17,endScreenVideoThumb:18,isOneVideoPlaylist:19,supportLink:20,outerContainerRef:106,showMiniTimer:107,fullScreenTarget:108,playerStarted:21,playNextVideo:22,playPrevVideo:23,repeatPlaylist:24,seekToInteractive:25,toggleGraph:26,playPrevChapter:27,firstStart:28,seekTime:109},sb,[-1,-1,-1,-1,-1])}}function fb(i){qe(i,"v-xu043z",`.root.v-xu043z{--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 @@
|
|
|
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{pointer-events:none}*:focus, *:focus-visible{outline:none}*:focus-visible{box-shadow:var(--focused-element-shadow)}.hidden{visibility:hidden;opacity:0}`)}function Hg(i){let e,t,n;function o(r){i[54](r)}let l={store:i[0],uiConfig:i[35],title:i[1],thumbUrl:i[2],videoLogoUrl:i[3],interactiveContainer:i[4],live:i[5],autoplay:i[6],canRewindLive:i[7],showAds:i[8],adsSlotId:i[9],adsParams:i[10],adsPreviewParam:i[11],duration:i[12],logoClickable:i[13],logoHidden:i[14],showNextPrevButtons:i[16],nextButtonActive:i[17],prevButtonActive:i[18],endScreenVideoTitle:i[19],endScreenVideoThumb:i[20],isOneVideoPlaylist:i[21],supportLink:i[22],outerContainerRef:i[23],fullScreenTarget:i[24],showMiniTimer:i[25],playerStarted:i[34],playNextVideo:i[26],playPrevVideo:i[27],repeatPlaylist:i[28],seekToInteractive:i[29],toggleGraph:i[30],playPrevChapter:i[31],firstStart:i[36]};return i[33]!==void 0&&(l.videoContainer=i[33]),e=new Eg({props:l}),Ke.push(()=>Ct(e,"videoContainer",o)),{c(){F(e.$$.fragment)},m(r,s){O(e,r,s),n=!0},p(r,s){const a={};s[0]&1&&(a.store=r[0]),s[0]&2&&(a.title=r[1]),s[0]&4&&(a.thumbUrl=r[2]),s[0]&8&&(a.videoLogoUrl=r[3]),s[0]&16&&(a.interactiveContainer=r[4]),s[0]&32&&(a.live=r[5]),s[0]&64&&(a.autoplay=r[6]),s[0]&128&&(a.canRewindLive=r[7]),s[0]&256&&(a.showAds=r[8]),s[0]&512&&(a.adsSlotId=r[9]),s[0]&1024&&(a.adsParams=r[10]),s[0]&2048&&(a.adsPreviewParam=r[11]),s[0]&4096&&(a.duration=r[12]),s[0]&8192&&(a.logoClickable=r[13]),s[0]&16384&&(a.logoHidden=r[14]),s[0]&65536&&(a.showNextPrevButtons=r[16]),s[0]&131072&&(a.nextButtonActive=r[17]),s[0]&262144&&(a.prevButtonActive=r[18]),s[0]&524288&&(a.endScreenVideoTitle=r[19]),s[0]&1048576&&(a.endScreenVideoThumb=r[20]),s[0]&2097152&&(a.isOneVideoPlaylist=r[21]),s[0]&4194304&&(a.supportLink=r[22]),s[0]&8388608&&(a.outerContainerRef=r[23]),s[0]&16777216&&(a.fullScreenTarget=r[24]),s[0]&33554432&&(a.showMiniTimer=r[25]),s[1]&8&&(a.playerStarted=r[34]),s[0]&67108864&&(a.playNextVideo=r[26]),s[0]&134217728&&(a.playPrevVideo=r[27]),s[0]&268435456&&(a.repeatPlaylist=r[28]),s[0]&536870912&&(a.seekToInteractive=r[29]),s[0]&1073741824&&(a.toggleGraph=r[30]),s[1]&1&&(a.playPrevChapter=r[31]),!t&&s[1]&4&&(t=!0,a.videoContainer=r[33],Pt(()=>t=!1)),e.$set(a)},i(r){n||(m(e.$$.fragment,r),n=!0)},o(r){p(e.$$.fragment,r),n=!1},d(r){D(e,r)}}}function Ug(i){let e,t,n;function o(r){i[53](r)}let l={store:i[0],uiConfig:i[35],thumbUrl:i[2],videoLogoUrl:i[3],interactiveContainer:i[4],live:i[5],autoplay:i[6],canRewindLive:i[7],showAds:i[8],adsSlotId:i[9],adsParams:i[10],adsPreviewParam:i[11],duration:i[12],logoClickable:i[13],logoHidden:i[14],showNextPrevButtons:i[16],nextButtonActive:i[17],prevButtonActive:i[18],endScreenVideoTitle:i[19],endScreenVideoThumb:i[20],isOneVideoPlaylist:i[21],supportLink:i[22],outerContainerRef:i[23],fullScreenTarget:i[24],showMiniTimer:i[25],playerStarted:i[34],playNextVideo:i[26],playPrevVideo:i[27],repeatPlaylist:i[28],seekToInteractive:i[29],toggleGraph:i[30],playPrevChapter:i[31],firstStart:i[36],seekTime:i[32]};return i[33]!==void 0&&(l.videoContainer=i[33]),e=new Dg({props:l}),Ke.push(()=>Ct(e,"videoContainer",o)),{c(){F(e.$$.fragment)},m(r,s){O(e,r,s),n=!0},p(r,s){const a={};s[0]&1&&(a.store=r[0]),s[0]&4&&(a.thumbUrl=r[2]),s[0]&8&&(a.videoLogoUrl=r[3]),s[0]&16&&(a.interactiveContainer=r[4]),s[0]&32&&(a.live=r[5]),s[0]&64&&(a.autoplay=r[6]),s[0]&128&&(a.canRewindLive=r[7]),s[0]&256&&(a.showAds=r[8]),s[0]&512&&(a.adsSlotId=r[9]),s[0]&1024&&(a.adsParams=r[10]),s[0]&2048&&(a.adsPreviewParam=r[11]),s[0]&4096&&(a.duration=r[12]),s[0]&8192&&(a.logoClickable=r[13]),s[0]&16384&&(a.logoHidden=r[14]),s[0]&65536&&(a.showNextPrevButtons=r[16]),s[0]&131072&&(a.nextButtonActive=r[17]),s[0]&262144&&(a.prevButtonActive=r[18]),s[0]&524288&&(a.endScreenVideoTitle=r[19]),s[0]&1048576&&(a.endScreenVideoThumb=r[20]),s[0]&2097152&&(a.isOneVideoPlaylist=r[21]),s[0]&4194304&&(a.supportLink=r[22]),s[0]&8388608&&(a.outerContainerRef=r[23]),s[0]&16777216&&(a.fullScreenTarget=r[24]),s[0]&33554432&&(a.showMiniTimer=r[25]),s[1]&8&&(a.playerStarted=r[34]),s[0]&67108864&&(a.playNextVideo=r[26]),s[0]&134217728&&(a.playPrevVideo=r[27]),s[0]&268435456&&(a.repeatPlaylist=r[28]),s[0]&536870912&&(a.seekToInteractive=r[29]),s[0]&1073741824&&(a.toggleGraph=r[30]),s[1]&1&&(a.playPrevChapter=r[31]),!t&&s[1]&4&&(t=!0,a.videoContainer=r[33],Pt(()=>t=!1)),e.$set(a)},i(r){n||(m(e.$$.fragment,r),n=!0)},o(r){p(e.$$.fragment,r),n=!1},d(r){D(e,r)}}}function jg(i){let e,t,n,o;const l=[Ug,Hg],r=[];function s(a,c){return a[15]?0:1}return t=s(i),n=r[t]=l[t](i),{c(){e=w("div"),n.c(),u(e,"class","root v-237li0")},m(a,c){k(a,e,c),r[t].m(e,null),o=!0},p(a,c){let f=t;t=s(a),t===f?r[t].p(a,c):(ve(),p(r[f],1,1,()=>{r[f]=null}),pe(),n=r[t],n?n.p(a,c):(n=r[t]=l[t](a),n.c()),m(n,1),n.m(e,null))},i(a){o||(m(n),o=!0)},o(a){p(n),o=!1},d(a){a&&y(e),r[t].d()}}}function Wg(i,e,t){let{sources:n}=e,{store:o}=e,{uiConfig:l}=e,{title:r}=e,{thumbUrl:s}=e,{videoLogoUrl:a}=e,{interactiveContainer:c}=e,{subtitles:f}=e,{live:h}=e,{preload:g}=e,{autoplay:v}=e,{volume:b=void 0}=e,{muted:A=void 0}=e,{fromTime:S}=e,{canRewindLive:T}=e,{showAds:C}=e,{adsSlotId:I=void 0}=e,{adsParams:z=void 0}=e,{adsPreviewParam:X=void 0}=e,{duration:$=void 0}=e,{logoClickable:H}=e,{logoHidden:R}=e,{isMobile:oe}=e,{showNextPrevButtons:se=!1}=e,{nextButtonActive:L=!1}=e,{prevButtonActive:ce=!1}=e,{endScreenVideoTitle:J=void 0}=e,{endScreenVideoThumb:U=void 0}=e,{isOneVideoPlaylist:_=!1}=e,{supportLink:K}=e,{outerContainerRef:ue=void 0}=e,{fullScreenTarget:_e=void 0}=e,{failoverHosts:he=void 0}=e,{showMiniTimer:ae=!1}=e,{playNextVideo:Ee=ie.noop}=e,{playPrevVideo:Y=ie.noop}=e,{repeatPlaylist:V=ie.noop}=e,{seekToInteractive:le=ie.noop}=e,{toggleGraph:x=ie.noop}=e,{playPrevChapter:Ae=ie.noop}=e;n0(l);const B=tn(),ee=o.ui.debugPanelVisible,ze=o.ui.playerSize;let Ce,ge=null,Se=!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}),c0(o);const Pe=(me=!1)=>{t(34,Se=!0),me?o.actions.external.firstStart(C):o.actions.internal.firstStart(C)};function G(me){var He;const nt=n||me;nt&&o.initVideo({container:Ce,sources:nt,failoverHosts:he,subtitles:f});const xe=ie.safeStorage.get(Ll)==="true";ee.set(xe),S>0&&o.actions.external.seekTime(S);const Qe=oe?B.volumeDefault:(He=b!=null?b:K1())!=null?He:B.volumeDefault,Ze=A!=null?A:p0();if(o.actions.external.setVolume(Qe),o.actions.external.setMuted(Ze),o.getAdmanWrapper().setInitialVolume(Ze?0:Qe),B.features.trafficSaving){const De=b0();De&&o.actions.internal.setTrafficSavingEnabled(De)}const et=v0(o.videoId);et&&o.actions.internal.setQuality(et),o.ui.isAutoplay.set(v),v?Pe():g&&B.features.preload&&o.actions.internal.preload()}const j=me=>{if(window.ResizeObserver){let nt,xe;ge=new ResizeObserver(ie.debounceFn(Qe=>{const Ze=Qe[0];if(Ze){if(Ze.contentBoxSize){const et=Array.isArray(Ze.contentBoxSize)?Ze.contentBoxSize[0]:Ze.contentBoxSize;nt=et.inlineSize,xe=et.blockSize}else Ze.contentRect&&(nt=Ze.contentRect.width,xe=Ze.contentRect.height);ze.set({width:nt,height:xe})}},D1)),ge.observe(me)}ze.set({width:me.clientWidth,height:me.clientHeight})};xi(()=>{if(j(Ce),(h==null?void 0:h.status)==="upcoming"||(h==null?void 0:h.status)==="waiting"){o.actions.internal.setWaitingLive(!0);return}if(((h==null?void 0:h.status)==="finished"||(h==null?void 0:h.status)==="postlive")&&!Object.keys(n||[]).length){o.actions.internal.setWaitingRecord(!0);return}return G(),()=>{ge==null||ge.disconnect(),o.destroy()}});function qe(){Se?o.actions.external.play():Pe(!0)}function tt(){o.actions.external.pause()}function it(me){oe||o.actions.external.setMuted(me)}function We(me){oe||me>=0&&me<=1&&o.actions.external.setVolume(me)}function Me(me){o.actions.internal.seekTime(me,_t.SeekAction.UNKNOWN)}function st(me){o.actions.external.seekEpisodeStartTime(me)}function Mt(me){o.actions.external.setPlaybackRate(me)}function Ne(me){o.actions.external.setAutoQualityLimits(me)}function Re(me){Ce=me,t(33,Ce)}function Rt(me){Ce=me,t(33,Ce)}return i.$$set=me=>{"sources"in me&&t(37,n=me.sources),"store"in me&&t(0,o=me.store),"uiConfig"in me&&t(38,l=me.uiConfig),"title"in me&&t(1,r=me.title),"thumbUrl"in me&&t(2,s=me.thumbUrl),"videoLogoUrl"in me&&t(3,a=me.videoLogoUrl),"interactiveContainer"in me&&t(4,c=me.interactiveContainer),"subtitles"in me&&t(39,f=me.subtitles),"live"in me&&t(5,h=me.live),"preload"in me&&t(40,g=me.preload),"autoplay"in me&&t(6,v=me.autoplay),"volume"in me&&t(41,b=me.volume),"muted"in me&&t(42,A=me.muted),"fromTime"in me&&t(43,S=me.fromTime),"canRewindLive"in me&&t(7,T=me.canRewindLive),"showAds"in me&&t(8,C=me.showAds),"adsSlotId"in me&&t(9,I=me.adsSlotId),"adsParams"in me&&t(10,z=me.adsParams),"adsPreviewParam"in me&&t(11,X=me.adsPreviewParam),"duration"in me&&t(12,$=me.duration),"logoClickable"in me&&t(13,H=me.logoClickable),"logoHidden"in me&&t(14,R=me.logoHidden),"isMobile"in me&&t(15,oe=me.isMobile),"showNextPrevButtons"in me&&t(16,se=me.showNextPrevButtons),"nextButtonActive"in me&&t(17,L=me.nextButtonActive),"prevButtonActive"in me&&t(18,ce=me.prevButtonActive),"endScreenVideoTitle"in me&&t(19,J=me.endScreenVideoTitle),"endScreenVideoThumb"in me&&t(20,U=me.endScreenVideoThumb),"isOneVideoPlaylist"in me&&t(21,_=me.isOneVideoPlaylist),"supportLink"in me&&t(22,K=me.supportLink),"outerContainerRef"in me&&t(23,ue=me.outerContainerRef),"fullScreenTarget"in me&&t(24,_e=me.fullScreenTarget),"failoverHosts"in me&&t(44,he=me.failoverHosts),"showMiniTimer"in me&&t(25,ae=me.showMiniTimer),"playNextVideo"in me&&t(26,Ee=me.playNextVideo),"playPrevVideo"in me&&t(27,Y=me.playPrevVideo),"repeatPlaylist"in me&&t(28,V=me.repeatPlaylist),"seekToInteractive"in me&&t(29,le=me.seekToInteractive),"toggleGraph"in me&&t(30,x=me.toggleGraph),"playPrevChapter"in me&&t(31,Ae=me.playPrevChapter)},i.$$.update=()=>{i.$$.dirty[0]&32769&&o.ui.isMobile.set(oe)},[o,r,s,a,c,h,v,T,C,I,z,X,$,H,R,oe,se,L,ce,J,U,_,K,ue,_e,ae,Ee,Y,V,le,x,Ae,Me,Ce,Se,B,Pe,n,l,f,g,b,A,S,he,G,qe,tt,it,We,st,Mt,Ne,Re,Rt]}class qg extends ke{constructor(e){super(),ye(this,e,Wg,jg,we,{sources:37,store:0,uiConfig:38,title:1,thumbUrl:2,videoLogoUrl:3,interactiveContainer:4,subtitles:39,live:5,preload:40,autoplay:6,volume:41,muted:42,fromTime:43,canRewindLive:7,showAds:8,adsSlotId:9,adsParams:10,adsPreviewParam:11,duration:12,logoClickable:13,logoHidden:14,isMobile:15,showNextPrevButtons:16,nextButtonActive:17,prevButtonActive:18,endScreenVideoTitle:19,endScreenVideoThumb:20,isOneVideoPlaylist:21,supportLink:22,outerContainerRef:23,fullScreenTarget:24,failoverHosts:44,showMiniTimer:25,playNextVideo:26,playPrevVideo:27,repeatPlaylist:28,seekToInteractive:29,toggleGraph:30,playPrevChapter:31,initVideo:45,play:46,pause:47,setMuted:48,setVolume:49,seekTime:32,seekEpisodeStartTime:50,setPlaybackRate:51,setAutoQualityLimits:52},Fg,[-1,-1])}get initVideo(){return this.$$.ctx[45]}get play(){return this.$$.ctx[46]}get pause(){return this.$$.ctx[47]}get setMuted(){return this.$$.ctx[48]}get setVolume(){return this.$$.ctx[49]}get seekTime(){return this.$$.ctx[32]}get seekEpisodeStartTime(){return this.$$.ctx[50]}get setPlaybackRate(){return this.$$.ctx[51]}get setAutoQualityLimits(){return this.$$.ctx[52]}}function Zg(i){let e,t;return{c(){e=M("svg"),t=M("path"),u(t,"fill",i[0]),u(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 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){k(n,e,o),d(e,t)},p(n,[o]){o&1&&u(t,"fill",n[0])},i:Z,o:Z,d(n){n&&y(e)}}}function Gg(i,e,t){let{isWhite:n=!1}=e,o;return i.$$set=l=>{"isWhite"in l&&t(1,n=l.isWhite)},i.$$.update=()=>{i.$$.dirty&2&&t(0,o=n?"#fff":"#909499")},[o,n]}class Kg extends ke{constructor(e){super(),ye(this,e,Gg,Zg,we,{isWhite:1})}}function Yg(i){Fe(i,"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 C1(i){let e,t;return{c(){e=w("div"),t=je(i[0]),u(e,"class","title v-1y9fytq")},m(n,o){k(n,e,o),d(e,t)},p(n,o){o&1&&$e(t,n[0])},d(n){n&&y(e)}}}function T1(i){let e,t;return e=new Kg({props:{isWhite:!!i[1]}}),{c(){F(e.$$.fragment)},m(n,o){O(e,n,o),t=!0},p(n,o){const l={};o&2&&(l.isWhite=!!n[1]),e.$set(l)},i(n){t||(m(e.$$.fragment,n),t=!0)},o(n){p(e.$$.fragment,n),t=!1},d(n){D(e,n)}}}function Xg(i){let e,t,n,o,l=i[0]&&C1(i),r=(!i[0]||!i[1])&&T1(i);return{c(){e=w("div"),l&&l.c(),t=N(),r&&r.c(),u(e,"class","playerStub v-1y9fytq"),u(e,"style",n=i[1]?`background-image: url('${i[1]}')`:"")},m(s,a){k(s,e,a),l&&l.m(e,null),d(e,t),r&&r.m(e,null),o=!0},p(s,[a]){s[0]?l?l.p(s,a):(l=C1(s),l.c(),l.m(e,t)):l&&(l.d(1),l=null),!s[0]||!s[1]?r?(r.p(s,a),a&3&&m(r,1)):(r=T1(s),r.c(),m(r,1),r.m(e,null)):r&&(ve(),p(r,1,1,()=>{r=null}),pe()),(!o||a&2&&n!==(n=s[1]?`background-image: url('${s[1]}')`:""))&&u(e,"style",n)},i(s){o||(m(r),o=!0)},o(s){p(r),o=!1},d(s){s&&y(e),l&&l.d(),r&&r.d()}}}function Qg(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]}class Jg extends ke{constructor(e){super(),ye(this,e,Qg,Xg,we,{title:0,thumbUrl:1},Yg)}}class E1{constructor(){Object.defineProperty(this,"listeners",{value:{},writable:!0,configurable:!0})}addEventListener(e,t,n){e in this.listeners||(this.listeners[e]=[]),this.listeners[e].push({callback:t,options:n})}removeEventListener(e,t){if(!(e in this.listeners))return;const n=this.listeners[e];for(let o=0,l=n.length;o<l;o++)if(n[o].callback===t){n.splice(o,1);return}}dispatchEvent(e){if(!(e.type in this.listeners))return;const n=this.listeners[e.type].slice();for(let o=0,l=n.length;o<l;o++){const r=n[o];try{r.callback.call(this,e)}catch(s){Promise.resolve().then(()=>{throw s})}r.options&&r.options.once&&this.removeEventListener(e.type,r.callback)}return!e.defaultPrevented}}class Cc extends E1{constructor(){super(),this.listeners||E1.call(this),Object.defineProperty(this,"aborted",{value:!1,writable:!0,configurable:!0}),Object.defineProperty(this,"onabort",{value:null,writable:!0,configurable:!0}),Object.defineProperty(this,"reason",{value:void 0,writable:!0,configurable:!0})}toString(){return"[object AbortSignal]"}dispatchEvent(e){e.type==="abort"&&(this.aborted=!0,typeof this.onabort=="function"&&this.onabort.call(this,e)),super.dispatchEvent(e)}}let xg=class{constructor(){Object.defineProperty(this,"signal",{value:new Cc,writable:!0,configurable:!0})}abort(e){let t;try{t=new Event("abort")}catch(o){typeof document!="undefined"?document.createEvent?(t=document.createEvent("Event"),t.initEvent("abort",!1,!1)):(t=document.createEventObject(),t.type="abort"):t={type:"abort",bubbles:!1,cancelable:!1}}let n=e;if(n===void 0)if(typeof document=="undefined")n=new Error("This operation was aborted"),n.name="AbortError";else try{n=new DOMException("signal is aborted without reason")}catch(o){n=new Error("This operation was aborted"),n.name="AbortError"}this.signal.reason=n,this.signal.dispatchEvent(t)}toString(){return"[object AbortController]"}};typeof Symbol!="undefined"&&Symbol.toStringTag&&(xg.prototype[Symbol.toStringTag]="AbortController",Cc.prototype[Symbol.toStringTag]="AbortSignal");function Tc(i){return i.__FORCE_INSTALL_ABORTCONTROLLER_POLYFILL?(console.log("__FORCE_INSTALL_ABORTCONTROLLER_POLYFILL=true is set, will force install polyfill"),!0):typeof i.Request=="function"&&!i.Request.prototype.hasOwnProperty("signal")||!i.AbortController}function $g(i){typeof i=="function"&&(i={fetch:i});const{fetch:e,Request:t=e.Request,AbortController:n,__FORCE_INSTALL_ABORTCONTROLLER_POLYFILL:o=!1}=i;if(!Tc({fetch:e,Request:t,AbortController:n,__FORCE_INSTALL_ABORTCONTROLLER_POLYFILL:o}))return{fetch:e,Request:l};let l=t;(l&&!l.prototype.hasOwnProperty("signal")||o)&&(l=function(c,f){let h;f&&f.signal&&(h=f.signal,delete f.signal);const g=new t(c,f);return h&&Object.defineProperty(g,"signal",{writable:!1,enumerable:!1,configurable:!0,value:h}),g},l.prototype=t.prototype);const r=e;return{fetch:(a,c)=>{const f=l&&l.prototype.isPrototypeOf(a)?a.signal:c?c.signal:void 0;if(f){let h;try{h=new DOMException("Aborted","AbortError")}catch(v){h=new Error("Aborted"),h.name="AbortError"}if(f.aborted)return Promise.reject(h);const g=new Promise((v,b)=>{f.addEventListener("abort",()=>b(h),{once:!0})});return c&&c.signal&&delete c.signal,Promise.race([g,r(a,c)])}return r(a,c)},Request:l}}const Xl=Tc({fetch:window.fetch,Request:window.Request,AbortController:window.AbortController}),Ec=Xl?$g({fetch:window.fetch,Request:window.Request,AbortController:window.AbortController}):void 0,e6=Xl?Ec.fetch:window.fetch;Xl?Ec.Request:window.Request;const t6=(i,e)=>i<400||e<225?5:i<640||e<360?0:i<960||e<540?1:i<1280||e<720?2:3,i6="//ad.mail.ru/static/admanhtml/rbadman-html5.min.js";class n6{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 ie.Subject,started$:new ie.Subject,paused$:new ie.Subject,resumed$:new ie.Subject,ended$:new ie.Subject,skipped$:new ie.Subject,clicked$:new ie.Subject},this.loadAdman=n=>new Promise((o,l)=>{let r;const s=()=>{clearTimeout(r),delete window.admanAsyncInit,window.AdmanHTML?o():l()};ie.addScript(i6,n,this.loadTimeout).then(()=>{window.AdmanHTML?o():(window.admanAsyncInit=s,r=window.setTimeout(s,this.initTimeout))}).catch(()=>{l()})}),this.onAdsReady=()=>{this.log({message:"ads ready"}),this.startPreroll()},this.onAdStarted=(n,o)=>{ie.assertNonNullable(this.adsState),ie.assertNonNullable(this.playerState),ie.assertNonNullable(this.actions),this.log({message:`ad started, section: ${n}, banner: ${JSON.stringify(o)}`}),this.events.started$.next(n),o.muted&&(this.setVolume(0),this.actions.setMuted(!0),this.log({message:"ad muted start"}),lt(this.playerState.isMobile)&&this.playerState.mobileUnmuteButtonVisible.set(!0)),this.adsState.duration.set(o.duration),this.adsState.playbackState.set(qt.PLAYING),this.adsState.canSkip.set(o.allowClose),this.adsState.secondsToWatchBeforeSkip.set(o.allowCloseDelay)},this.onAdTimeRemained=({currentTime:n})=>{ie.assertNonNullable(this.adsState),this.adsState.position.set(n)},this.onAdPaused=()=>{ie.assertNonNullable(this.adsState),this.log({message:"ad paused"}),this.adsState.playbackState.set(qt.PAUSED)},this.onAdPlayed=()=>{ie.assertNonNullable(this.adsState),this.log({message:"ad played"}),this.adsState.playbackState.set(qt.PLAYING)},this.onAdMidrollPoint=()=>{ie.assertNonNullable(this.adman),ie.assertNonNullable(this.actions),this.log({message:"midroll point"}),this.actions.switchFromVideoToAds(),this.currentAdSection=_n.Midroll,this.adman.start(_n.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=()=>{var n;this.log({message:"ad clicked"}),(n=this.videoElement)===null||n===void 0||n.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){const{width:t,height:n,isFullscreen:o,isAutoplay:l,adsContainer:r,adsVideoElement:s,slotId:a,params:c={},duration:f,previewParam:h}=e;let g;const v=this.playerState&<(this.playerState.vsid);v&&(g=parseInt(v,36));const b=Object.assign(Object.assign(Object.assign({dl:encodeURIComponent(window.location.href),autoplay:l,player_width:t,player_height:n,puid10:t6(t,n),puid11:o?0:1,preview:h},g?{request_id:g}:{}),{duration:f}),c),A={slot:a,wrapper:r,videoEl:s,videoQuality:n,params:b,browser:{mobile:!1}},S=new window.AdmanHTML;S.setDebug(!1),S.onReady(this.onAdsReady),S.onStarted(this.onAdStarted),S.onPlayed(this.onAdPlayed),S.onPaused(this.onAdPaused),S.adMidrollPoint(this.onAdMidrollPoint),S.onClosed(this.onAdClosed),S.onSkipped(this.onAdSkipped),S.onClicked(this.onAdClicked),S.onTimeRemained(this.onAdTimeRemained),S.onCompleted(this.onAdCompleted),S.onError(this.onAdError),S.init(A),this.adman=S,this.videoElement=s,this.events.slotRequested$.next(),this.log({message:`adman init, config: ${JSON.stringify(A)}`})}switchToVideo(e=!1){if(this.currentAdSection===null&&!e){this.log({message:"switch to video, no currentAdSection. can't switch"});return}ie.assertNonNullable(this.actions),ie.assertNonNullable(this.adsState),ie.assertNonNullable(this.playerState);const t=this.currentAdSection===_n.Postroll;this.adsState.playbackState.set(qt.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(){ie.assertNonNullable(this.adsState),this.log({message:"toggle play"});const e=lt(this.adsState.playbackState);e===qt.PLAYING?this.pause():e===qt.PAUSED&&this.play()}setInitialVolume(e){this.log({message:`set initial volume ${e}`}),this.initialVolume=e}setVolume(e){var t;this.log({message:`set volume ${e}`}),(t=this.adman)===null||t===void 0||t.setVolume(e),this.videoElement&&(this.videoElement.volume=e)}setFullscreen(e){var t;this.log({message:`set fullscreen ${e}`}),(t=this.adman)===null||t===void 0||t.setFullscreen(e)}startPreroll(){ie.assertNonNullable(this.adman),this.log({message:"start preroll"}),this.setVolume(this.initialVolume),this.currentAdSection=_n.Preroll,this.adman.start(_n.Preroll)}startPostroll(){ie.assertNonNullable(this.adman),ie.assertNonNullable(this.actions),this.log({message:"start postroll"}),this.actions.switchFromVideoToAds(),this.currentAdSection=_n.Postroll,this.adman.start(_n.Postroll)}play(){ie.assertNonNullable(this.adman),this.log({message:"ad play"}),this.adman.resume(),this.events.resumed$.next()}pause(){ie.assertNonNullable(this.adman),this.log({message:"ad pause"}),this.adman.pause(),this.events.paused$.next()}skip(){ie.assertNonNullable(this.adman),this.log({message:"ad skip"}),this.adman.skip(),this.events.skipped$.next()}setPosition(e,t){var n;(n=this.adman)===null||n===void 0||n.setPosition(Math.floor(e),Math.floor(t))}destroy(){var e;this.log({message:"destroy"}),(e=this.adman)===null||e===void 0||e.destroy()}}const o6=i=>{const 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:""};class l6{constructor(){this.oneLineRegExp=/\r\n|\n|\r/,this.twoLinesRegExp=/\r\n\r\n|\n\n|\r\r/}parse(e){const t=[],n=e.split(this.twoLinesRegExp);for(const o of n){const l={startTime:0,endTime:0,texts:[],lang:""},r=o.split(this.oneLineRegExp);for(const s of r)if(!l.startTime&&!l.endTime){const a=new Ac,{startTime:c,endTime:f}=a.parse(s);l.startTime=c,l.endTime=f}else if(s.trim()!==""){const a=new r6,{texts:c}=a.parse(s);l.texts=[...l.texts,...c]}(l.startTime||l.endTime)&&l.texts.length>0&&t.push(l)}return t}}class Ac{constructor(){this.timeRegExp=/(\d{2})?:?(\d{2}):(\d{2}).(\d{2,3})/,this.timingRegExp=new RegExp(`${this.timeRegExp.source}( ?--> ?)${this.timeRegExp.source}`)}parse(e){const 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){const 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"){const l=Number(e)*60*60,r=Number(t)*60,s=Number(n),a=+`0.${o}`;return l+r+s+a}}class r6{constructor(){this.letterTagRegExp=/<[a-z]*>|<\/[a-z]*>/}parse(e){const t={texts:[]},o=e.replace(new RegExp(this.letterTagRegExp,"g"),"").split({[Symbol.split](r){let s=0;const a=[];for(;s<r.length;){const c=["<",">"].reduce((f,h)=>{const g=r.indexOf(h,s);return f===-1||f>g?g:f},-1);if(c===-1){a.push(r.substring(s));break}a.push(r.substring(s,c)),s=c+1}return a}}),l=new Ac;for(const r of o)l.isTime(r)?t.texts.push({type:"timestamp",value:l.parseTime(r)}):t.texts.push({type:"text",value:r});return t}}let Cn,Nt,Sl=0,Pl=!1;const s6=(i,e,t)=>{var n;const o=i>=Sl,l=i<Sl,r=(f,h=0,g=0)=>f<h&&f<g,s=(f,h=0,g=0)=>f>=h&&f<=g,a=(f,h=0,g=0)=>f>h&&f>g,c=(n=t.find(({lang:f})=>f===e.value))===null||n===void 0?void 0:n.subtitles;if(Sl=i,l&&(Pl=!1),ie.isNonNullable(Cn)&&s(i,Cn.startTime,Cn.endTime)&&Cn.lang===e.value)return Cn;if(!ie.isNonNullable(Nt)&&(c!=null&&c.length)&&!Pl){const f=c.find(({startTime:h,endTime:g})=>s(i,h,g)||o&&r(i,h,g));Nt=f&&Object.assign(Object.assign({},f),{lang:e.value}),Cn=void 0,!ie.isNonNullable(Nt)&&c[c.length-1].endTime<i&&(Pl=!0);return}else{if(s(i,Nt==null?void 0:Nt.startTime,Nt==null?void 0:Nt.endTime))return Cn=Nt,Nt=void 0,Cn;(o&&a(i,Nt==null?void 0:Nt.startTime,Nt==null?void 0:Nt.endTime)||l&&r(i,Nt==null?void 0:Nt.startTime,Nt==null?void 0:Nt.endTime))&&(Nt=void 0)}},Cl={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"};let Oo=null;class ho{constructor(e,t){if(!Oo){const n=new _t.OneStat(e,t),o=new ie.Subscription;Oo=Object.freeze({oneStat:n,statSubscription:o,destroy:()=>{n==null||n.destroy(),o==null||o.unsubscribe(),Oo=null}})}}static getInstance(){return Oo}}const a6=({interfaceLanguage:i,videoId:e,isClip:t,isLiveCatchUpMode:n,statAuthToken:o,isAudioDisabled:l,canDownload:r,callbacks:s,webApi:a,videoEpisodes:c,previewThumbsData:f,uiConfig:h,coreConfig:g,player:v,disabledControls:b,isInteractive:A,interactiveRanges:S,replayInteractive:T,hasInteractiveBranches:C,playPrevChapterDisabledTooltip:I,additionalButtons:z})=>{var X,$,H,R;const oe=Object.assign(Object.assign({},g),{configName:[...(X=g.configName)!==null&&X!==void 0?X:[],"ui"],isAudioDisabled:l,live:Object.assign(Object.assign({},($=g.live)!==null&&$!==void 0?$:{}),{isLiveCatchUpMode:!!n})}),se=h,L=v||new rt.Player(oe),ce=new ie.Logger,J=new n6(ce,{loadTimeout:se.ads.loadTimeout,initTimeout:se.ads.initTimeout}),U=ho.getInstance(),_=Nl.getInstance(),K=a==null?void 0:a.pictureInPictureApi,ue=a==null?void 0:a.annotationsApi,_e=ce.createComponentLog("Store");let he,ae,Ee={};const Y=ie.getCurrentBrowser(),V=U?kt(U.oneStat.vsid$):mn(void 0),le=Ue(bo()),x=(H=K==null?void 0:K.info.isActive$)!==null&&H!==void 0?H:new ie.ValueSubject(!1),Ae=K==null?void 0:K.info.type,B=Ue(0),ee=Ue([]),ze=ie.merge(L.events.fatalError$,L.events.managedError$).subscribe(P=>ee.update(te=>[...te,P])),Ce=mn(!1,P=>{const te=L.events.fatalError$.subscribe(()=>P(!0));return()=>te.unsubscribe()}),ge=P=>Ji(void 0,void 0,void 0,function*(){var te;const be=Object.values(ie.InterfaceLanguage).includes(P);if(se.downloadVKLanguages&&(be&&se.updateBuiltinLanguages||!Mr(P))){let Ye;try{Ye=yield ie.loadVKLangPack(P,o0,l0)}catch(mt){(te=U==null?void 0:U.oneStat)===null||te===void 0||te.logError({errorType:"VKLangPack",fatal:!1}),_==null||_.report(mt,{errorType:"VKLangPack",fatal:!1})}Ye&&(zr({language:P,pack:Ye,fallback:se.defaultLanguage}),Se.set(P))}Mr(P)&&Se.set(P)}),Se=Ue(i);ge(i);const Pe=(P,te)=>{const be=lt(Se);return Lu(be,P,te,se.defaultLanguage)},G=Ue(Be.Thumb),j=ei([Ce,G],([P,te])=>P?Be.Crashed:te),qe=(()=>{const P=Ue(new Set(b));return Object.assign(Object.assign({},P),{add:te=>{P.update(be=>new Set([...be].concat(te)))},remove:te=>{P.update(be=>{const Oe=[...be];return new Set(Array.isArray(te)?Oe.filter(Ye=>!te.includes(Ye)):Oe.filter(Ye=>Ye!==te))})},includes:te=>{const be=lt(P);return Array.isArray(te)?te.every(Oe=>be.has(Oe)):be.has(te)}})})();_e({message:"create store"});const tt=P=>{_e({message:`init video, config: ${JSON.stringify(P)}`}),A?P.container.append(L.experimental.element$.getValue()):L.initVideo(P),P.subtitles&&L.setExternalTextTracks(P.subtitles),he=P},it=new ie.Subject,We=P=>it.next(P),Me=new ie.Subject,st=new ie.Subject,Mt=new ie.Subject,Ne={actionRewind$:Me,actionSeek$:st,inPiP$:x,inFullscreen$:new ie.Observable(P=>le.subscribe(te=>P.next(te))),actionSetSubtitle$:Mt,nextMovie$:it};if(U){const{oneStat:P,statSubscription:te}=U;te.add(P.attachTo(L)),te.add(P.attachToUi(Ne)),te.add(P.attachToAds(J.events)),P.authorize(o).catch(be=>{_e({message:`onestat auth error ${String(be)}`})})}if(_){const P=new ie.Subscription,te=(be,Oe)=>P.add(be.subscribe(Oe));if(te(L.events.managedError$,be=>{_.logIError(be)}),te(L.events.fatalError$,be=>{_.logIError(be,!0)}),U){const{oneStat:be}=U;te(be.experimental.error$,Oe=>{_.logIError(Oe)})}_.sentrySubscription.add(P)}const Re=()=>{ie.isIOS()&&ae&&e4(ae)},Rt=new ie.Subscription().add(L.experimental.element$.subscribe(P=>{P&&(ae=P,P.classList.add("player-media"),jo(K)&&K.updateVideoElement(),A&&P.setAttribute("pip","false"))})).add(L.events.ended$.subscribe(()=>{var P;Re(),(P=s==null?void 0:s.onEnded)===null||P===void 0||P.call(s)})).add(L.events.started$.subscribe(()=>Ji(void 0,void 0,void 0,function*(){var P,te;jo(K)&&(yield K==null?void 0:K.revealPictureInPicture());const be=L.info.muted$.getValue();(P=s==null?void 0:s.onStarted)===null||P===void 0||P.call(s),(te=Ee.onStarted)===null||te===void 0||te.call(Ee,be)}))).add(L.events.willSeek$.subscribe(({from:P,to:te})=>{var be;(be=s==null?void 0:s.onSeek)===null||be===void 0||be.call(s,P,te)})).add(L.info.position$.subscribe(P=>{var te;const be=L.info.duration$.getValue();(te=s==null?void 0:s.onTimeupdate)===null||te===void 0||te.call(s,be,P),J.setPosition(P,be)})).add(L.events.fatalError$.subscribe(()=>{var P;(P=s==null?void 0:s.onCrashed)===null||P===void 0||P.call(s)})).add(L.info.is3DVideo$.subscribe(P=>{Dt.ui.is3DVideo.set(P)})).add(L.info.isEnded$.subscribe(P=>{A&&(P?(lt(xo)&&qe.add(mo),qe.add(ht.PLAY_BUTTON)):qe.remove(ht.PLAY_BUTTON))})).add(L.info.liveTime$.subscribe(P=>{var te;(te=s==null?void 0:s.onLiveTime)===null||te===void 0||te.call(s,P)})),me=new ie.Subscription,nt=()=>{me.add(L.events.log$.subscribe(P=>{console.debug("%c sdk ","background:#9ddcf7;",`sdk component: ${P.component}`,P.message)})).add(ce.log$.subscribe(P=>{console.debug("%c ui ","background:#f3da0b;",`ui component: ${P.component}.`,P.message)}))},xe=()=>{me.unsubscribe()},Qe=(P,te)=>{L.startCameraManualRotation(P,te)},Ze=(P=!1)=>{L.stopCameraManualRotation(P)},et=(P,te,be)=>{L.moveCameraFocusPX(P,te,be)},He=()=>{L.holdCamera()},De=()=>{L.releaseCamera()},pt=mn(L.info.position$.getValue(),P=>{let te,be;const Oe=()=>{const Ye=L.info.playbackState$.getValue(),mt=L.info.isLive$.getValue(),zt=L.info.duration$.getValue(),yt=L.info.position$.getValue();if([rt.PlaybackState.PLAYING,rt.PlaybackState.PAUSED].includes(Ye)){const Fi=mt?yt-zt:L.getExactTime();Fi!==be&&P(Fi),be=Fi}te=requestAnimationFrame(Oe)};return Oe(),()=>cancelAnimationFrame(te)}),at=kt(x),Kt=kt(L.info.playbackState$),At=kt(L.info.currentBuffer$),ot=kt(L.info.isEnded$),ti=kt(L.info.isLive$),dt=se.features.playbackRate?kt(L.info.canChangePlaybackSpeed$):mn(!1),Xe=kt(L.info.liveBufferTime$),Vt=kt(L.info.volume$),ut=kt(L.info.muted$),pi=j1(L.info.autoQualityLimits$.pipe(ie.map(({max:P})=>P!==void 0)),((R=L.info.autoQualityLimits$.getValue())===null||R===void 0?void 0:R.max)!==void 0),de=kt(L.info.autoQualityLimitingAvailable$),Te=kt(L.info.availableQualities$),Ie=kt(L.info.availableQualitiesFps$),Lt=kt(L.info.chromecastState$),ii=kt(L.info.chromecastDeviceName$),Le=kt(L.info.currentFormat$),si=kt(L.info.throughputEstimation$),ai=kt(L.info.videoBitrate$),Ht=kt(L.info.intrinsicVideoSize$),Ci=kt(L.info.duration$),Yt=kt(L.info.isAudioAvailable$);let Jt=null;const $i=L.info.isBuffering$,en=mn($i.getValue(),P=>{const te=$i.subscribe(be=>{be&&Jt===null?Jt=window.setTimeout(()=>{P($i.getValue()),Jt=null},se.loaderDelay):P(be)});return()=>{te.unsubscribe(),Jt&&clearTimeout(Jt)}}),vt=()=>{Jt&&clearTimeout(Jt),Jt=null},Ai=ei([Ci,ti],([P,te])=>te?-P:P),Li=ei([Kt],([P])=>P===rt.PlaybackState.PLAYING),nn=kt(L.info.atLiveEdge$),gt=kt(L.info.atLiveDurationEdge$),ui=kt(L.info.position$),Vi=ei([ui,Ci],([P,te])=>isFinite(P)&&isFinite(te)&&!!te),Ii=ei([Lt],([P])=>P===rt.ChromecastState.CONNECTED),gi=Ue(void 0),ci=kt(L.info.isAutoQualityEnabled$,P=>P&&gi.set(void 0)),zi=kt(L.info.currentQuality$,()=>gi.set(void 0)),bi=ei([gi,zi],([P,te])=>P!=null?P:te),Hi=ei([Te,Ie,ci,bi,Le],([P,te,be,Oe,Ye])=>{const mt=[];Ye!==rt.VideoFormat.MPEG&&mt.push({value:xn.AUTO,displayValue:Pe("auto_quality_option"),selected:be});const zt=P.filter(yt=>yt!==ie.VideoQuality.INVARIANT);for(const yt of zt){const Fi=te[yt],Eo=yt===ie.VideoQuality.INVARIANT?Pe("auto_quality_option"):yt;mt.push({value:yt,displayValue:`${Eo}${Fi?o6(Fi):""}`,selected:be?!1:yt===Oe})}return mt}),Xt=kt(L.info.currentPlaybackRate$),ni=ei([Xt,nn,gt],([P,te,be])=>{const Oe=be||A?1:se.controls.playbackRateMin,Ye=te?1:se.controls.playbackRateMax,mt=se.controls.playbackRateStep,zt=[];for(let yt=Oe;yt<=Ye;yt+=mt)zt.push({value:yt,displayValue:yt===1?Pe("playback_rate_1"):Pe("playback_rate",{multiplier:yt.toString(10)}),selected:P===yt});return zt}),Mi=se.features.subtitles?kt(L.info.availableTextTracks$):mn([]),xt=ei([Mi],([P],te)=>{const be=[],Oe=[];for(const Ye of P)Ye.url&&be.push(e6(Ye.url));Promise.allSettled(be).then(Ye=>{for(const[mt,zt]of Ye.entries())zt.status==="fulfilled"&&zt.value.text().then(yt=>{const Fi=new l6,Eo=P[mt].language,zc=!!P[mt].isAuto,$l=Fi.parse(yt);Eo&&$l&&Oe.push({lang:Eo,subtitles:$l,isAuto:zc}),mt===Ye.length-1&&te(Oe)})})}),Ut={displayValue:Pe("subtitles_off"),value:"off"},fi=Ue(Object.assign({},Ut)),_i=ei([xt,fi,xt],([P,te])=>{if((P==null?void 0:P.length)>0){const be=[Object.assign(Object.assign({},Ut),{selected:(te==null?void 0:te.value)===Ut.value})];for(const{lang:Oe,isAuto:Ye}of P)Cl[Oe]&&be.push({displayValue:Ye?Pe("subtitles_auto",{language:Cl[Oe]}):Cl[Oe],value:Oe,selected:(te==null?void 0:te.value)===Oe,isAuto:Ye});return be}else return[]}),Ui=ei([pt,fi,xt],([P,te,be])=>{if(te&&te.value!==Ut.value)return s6(P,te,be)}),di=ei([Ui],([P])=>P!=null&&P.texts?P.texts:[]),wi=Ue(!0),Ni=ei([At,Ai,ui,Xe],([P,te,be,Oe])=>{var Ye;const mt=(Ye=P==null?void 0:P.end)!==null&&Ye!==void 0?Ye:0;if(!Oe)return mt/te;const yt=-be+Oe-te;return(mt-yt)/te}),mi=kt(L.info.availableSources$),Ri=ei([mi],([P])=>Object.keys((P==null?void 0:P[rt.VideoFormat.MPEG])||{}).length>0),yi=()=>{var P,te,be;const Oe=Object.keys(((te=(P=L.info.availableSources$)===null||P===void 0?void 0:P.getValue())===null||te===void 0?void 0:te[rt.VideoFormat.MPEG])||{}),Ye=ie.getHighestQuality(Oe)||ie.VideoQuality.Q_144P;return(be=he.sources[rt.VideoFormat.MPEG])===null||be===void 0?void 0:be[Ye]},hi=()=>{var P;const te=yi();te?m0(te,((P=he==null?void 0:he.meta)===null||P===void 0?void 0:P.title)||"video"):_e({message:"There is no URL for download video"})},Ti=()=>{_e({message:"toggle muted"});const P=L.info.muted$.getValue(),Oe=!(L.info.volume$.getValue()===0||P);Qt(Oe)},jt=(P,te=P,be=!1)=>{var Oe,Ye,mt;const zt=!be,yt=L.info.muted$.getValue();_e({message:`set volume, volume: ${P}, preferredVolume: ${te}, internalCall: ${zt}`}),L.setVolume(P),J.setVolume(P),zt&&((Oe=s==null?void 0:s.onVolumeChange)===null||Oe===void 0||Oe.call(s,P)),sr(te),yt?(L.setMuted(!1),zt&&((Ye=s==null?void 0:s.onUnmute)===null||Ye===void 0||Ye.call(s)),nl(!1)):!yt&&P===0&&(L.setMuted(!0),zt&&((mt=s==null?void 0:s.onMute)===null||mt===void 0||mt.call(s)),nl(!0))},Qt=(P,te=!1)=>{var be,Oe,Ye,mt;const zt=!te,yt=L.info.volume$.getValue();if(_e({message:`set muted, currentVolume: ${yt}, mute: ${P}, internalCall: ${zt}`}),L.setMuted(P),J.setVolume(P?0:yt),nl(P),zt&&(P?(be=s==null?void 0:s.onMute)===null||be===void 0||be.call(s):(Oe=s==null?void 0:s.onUnmute)===null||Oe===void 0||Oe.call(s)),yt===0){let Fi=(Ye=K1())!==null&&Ye!==void 0?Ye:se.volumeDefault;Fi===0&&(Fi=se.volumeMinRestore,sr(Fi)),L.setVolume(Fi),J.setVolume(Fi),zt&&((mt=s==null?void 0:s.onVolumeChange)===null||mt===void 0||mt.call(s,Fi))}},$t=()=>{L.prepare()},oi=()=>{var P,te;if(ie.assertNonNullable(Dt),!lt(Dt.ui.controls.disabledControls$).has(ht.PLAY_BUTTON)){if(_e({message:"toggle play"}),lt(Dt.playerPhase)===Be.Ads){J.togglePlay();return}if(L.info.playbackState$.getValue()!==rt.PlaybackState.PLAYING){if(L.info.isEnded$.getValue()){if(_e({message:"toggle play, video ended, seek to 0"}),Me.next(),st.next(_t.SeekAction.REWIND),A){T==null||T();return}L.seekTime(0)}_e({message:"toggle play, call player.play"}),L.play(),(P=s==null?void 0:s.onPlay)===null||P===void 0||P.call(s)}else _e({message:"toggle play, call player.pause"}),L.pause(),(te=s==null?void 0:s.onPause)===null||te===void 0||te.call(s)}},ji=P=>{_e({message:`set quality, quality: ${P}`}),L.setAutoQuality(P===xn.AUTO),P!==xn.AUTO?(h0(e,P),gi.set(P),L.setQuality(P)):Y1()},Wi=P=>{_e({message:`set trafficSavingEnabled, value: ${P}`}),L.setAutoQualityLimits({max:P?se.trafficSavingLimit:void 0}),g0(P)},li=P=>{L.setPlaybackRate(P)},Bi=()=>{const P=lt(ni),te=P.findIndex(({selected:Oe})=>Oe);if(te===P.length-1)return;const be=P[te+1];li(be.value)},Oi=()=>{const P=lt(ni),te=P.findIndex(({selected:Oe})=>Oe);if(te===0)return;const be=P[te-1];li(be.value)},ki=P=>{P&&P.value!==Ut.value&&Mt.next(P.isAuto?P.value+"_auto":P.value),fi.set(P)},Si=()=>{const P=lt(_i),te=lt(fi),be=lt(Se);if((te==null?void 0:te.value)===Ut.value){const Oe=P.filter(Ye=>Ye.value!==Ut.value).find(Ye=>Ye.value===be)||P[1];ki(Oe!=null?Oe:Object.assign({},Ut))}else ki(Object.assign(Object.assign({},Ut),{selected:!1}))},Tt=(P,te,be=!0)=>{if(_e({message:`seek to time, time: ${P}`}),st.next(te),L.info.isLive$.getValue()){const Oe=L.info.duration$.getValue(),Ye=Math.min(0,Oe+P);L.seekTime(Ye,be)}else{if(lt(xo))return;L.seekTime(xl(P),be)}},Bt=P=>{_e({message:`seek to episode start time: ${P}`}),Tt(P,_t.SeekAction.EPISODE,!0)},qi=(P,te)=>{_e({message:`seek to percent, percent: ${P}`});const be=Math.round(lt(Ai)*P);Tt(be,te,!1)},on=P=>{_e({message:`seek external, time: ${P}`}),st.next(_t.SeekAction.UNKNOWN),L.seekTime(L.info.isLive$.getValue()?-P:P)},Zi=P=>{var te,be;_e({message:`set auto quality limitation. Max: ${(te=P.max)!==null&&te!==void 0?te:"none"}. Min: ${(be=P.min)!==null&&be!==void 0?be:"none"}`}),L.setAutoQualityLimits(P)},Ot=P=>{_e({message:`seek external to episode start time: ${P}`}),Tt(P,_t.SeekAction.EPISODE,!0)},Gi=P=>{_e({message:`set playback rate to: ${P}`}),L.setPlaybackRate(P)},Di=Ue(void 0),It=Ue(!1),fe=P=>{_e({message:`start scrubbing, progress: ${P}`}),It.set(!0),rn(P)},rn=P=>{Di.set(P)};let Ki,pn;const gn=()=>{Di.set(void 0),It.set(!1)},bn=()=>{clearTimeout(pn),clearTimeout(Ki),Ki=window.setTimeout(()=>{gn()},500),ae==null||ae.removeEventListener("seeked",bn)},Mn=P=>{_e({message:`complete scrubbing, progress: ${P}`}),qi(P,_t.SeekAction.SLIDER),lt(Dt.ui.isMobile)&<(Dt.state.currentFormat$)===rt.VideoFormat.HLS?(ae==null||ae.addEventListener("seeked",bn),pn=window.setTimeout(()=>{bn()},300)):gn()},Q=ei([pt,Ai,Di],([P,te,be],Oe)=>{Oe(ie.isNonNullable(be)?be*te:P)}),bt=Ue({width:0,height:0}),sn=ei([bt],([{width:P}],te)=>{const be=f3(P);te(be)}),Yi=Ue(!1),dn=ei([sn,Yi],([P,te])=>te?z.filter(be=>!be.hideOnMobile):z.filter(be=>{var Oe;return!(!((Oe=be.hideOnDesktopGridTypes)===null||Oe===void 0)&&Oe.includes(P))})),an=ei([Yi,Ce],([P,te],be)=>{be(P&&te)}),io=()=>{st.next(_t.SeekAction.LIVE),_e({message:"switch to active live"}),L.seekTime(0),L.info.playbackState$.getValue()!==rt.PlaybackState.PLAYING&&Dt.actions.internal.togglePlay()},no=()=>J.skip(),oo=(P=!0)=>{ie.assertNonNullable(Dt),_e({message:`switch from ads to video, callPlay: ${P}`}),G.set(Be.Video),P&&L.play()},lo=()=>{ie.assertNonNullable(Dt),_e({message:"switch from video to ads"}),Dt.actions.internal.pause(),Re(),G.set(Be.Ads)},ro=P=>{ie.assertNonNullable(Dt);const te=P?Be.WaitingLive:Be.Thumb;G.set(te)},so=P=>{ie.assertNonNullable(Dt);const te=P?Be.WaitingRecord:Be.Thumb;G.set(te)},ao=()=>(ie.assertNonNullable(Dt),f0(L,he,Dt)),uo=()=>(ie.assertNonNullable(Dt),d0(L,he,Dt)),co=()=>ae,fo=()=>{_e({message:"toggle chromecast"}),L.toggleChromecast()},W=P=>{var te;ie.assertNonNullable(Dt);const be=!P;if(lt(Dt.playerPhase)===Be.Ads){_e({message:`pause ads, internalCall: ${be}`}),J.pause();return}_e({message:`pause video, internalCall: ${be}`}),be&&((te=s==null?void 0:s.onPause)===null||te===void 0||te.call(s)),L.pause()},St=P=>{var te;ie.assertNonNullable(Dt);const be=!P;if(lt(Dt.playerPhase)===Be.Ads){_e({message:`play ads, internalCall: ${be}`}),J.play();return}_e({message:`play video, internalCall: ${be}`}),be&&((te=s==null?void 0:s.onPlay)===null||te===void 0||te.call(s)),L.play()},Xi=(P,te)=>{ie.assertNonNullable(Dt),_e({message:`first start, show ads: ${P}, internalCall: ${!te}`}),P?G.set(Be.Ads):(G.set(Be.Video),te?L.play():Dt.actions.internal.togglePlay())},Ei=()=>(_e({message:"getting time codes"}),c),ne=()=>{const P=Ei();if(!P||[0,1].includes(P.length))return;const te=L.info.position$.getValue();return P.find(be=>be.time>te)},Nn=P=>{let te=P;te||(te=ne()),te&&(_e({message:"seek to next episode"}),Tt(te.time,_t.SeekAction.EPISODE,!0))},ft=()=>{const P=Ei();if(!P||[0,1].includes(P.length))return;const te=L.info.position$.getValue(),be=P.findIndex(Ye=>Ye.time>te),Oe=be===-1?P.length-2:be-2;if(!(Oe<0))return P[Oe]},ri=P=>{let te=P;te||(te=ft()),te&&(_e({message:"seek to prev episode"}),Tt(te.time,_t.SeekAction.EPISODE,!0))},Sn=()=>(_e({message:"getting preview thumbs data"}),f),Rn=()=>Ji(void 0,void 0,void 0,function*(){K!=null&&K.isActive()?yield K==null?void 0:K.remove():yield K==null?void 0:K.request()}),Jo=(P=-90)=>{B.update(te=>te+P)},Pn=Ue(S),Ql=ei([Pn],([P=[]])=>{const te=[];for(let be=0;be<P.length;be++){const{range:[Oe,Ye],subjects:mt}=P[be];be===0&&Oe!==0&&te.push({time:0,text:""}),te.push({time:Oe/1e3,text:"",interactive:!0,completed:!mt.length}),Ye!==1/0&&te.push({time:Ye/1e3,text:"",interactive:!1,completed:!mt.length})}return te}),Vc=P=>{const te=lt(Pn);Pn.set(te.map(be=>Object.assign(Object.assign({},be),{subjects:be.subjects.filter(Oe=>Oe!==P)})))},Jl=Ue(!1),xo=ei([ui,Pn,Jl],([P,te,be])=>{if(!A)return!1;if(be)return!0;const Oe=P*1e3,Ye=te==null?void 0:te.find(({range:[mt,zt],subjects:yt})=>mt<Oe&&Oe<zt&&yt.length);return Ye&<(It)&&gn(),!!Ye}),xl=P=>{if(!A)return P;const te=lt(Ql),be=lt(Ai),Ye=lt(ui)/be,mt=te.find(zt=>zt.interactive&&!zt.completed&&zt.time>Ye);return typeof(mt==null?void 0:mt.time)=="number"?Math.min(P,mt.time-.05):P},Ic=()=>{clearTimeout(pn),clearTimeout(Ki),Rt.unsubscribe(),me.unsubscribe(),L.destroy(),J.destroy(),U==null||U.destroy(),_==null||_.destroy(),ze.unsubscribe()},Dt={interfaceLanguage$:Se,initVideo:tt,videoId:e,isClip:t,playerPhase:j,vsid:V,state:{positionExact$:pt,positionWithScrubbing$:Q,duration$:Ai,playbackState$:Kt,isPlaying$:Li,isLoaderVisible:en,bufferedProgress$:Ni,isLive$:ti,canChangePlaybackSpeed$:dt,isActiveLive$:nn,isOldestAvailableLive$:gt,isRewindableLive$:Vi,isEnded$:ot,muted$:ut,volume$:Vt,trafficSavingEnabled$:pi,autoQualityLimitingAvailable$:de,currentQuality$:bi,isAutoQualityEnabled$:ci,availableQualities$:Hi,currentPlaybackRate$:Xt,availablePlaybackRates$:ni,currentSubtitle$:fi,availableSubtitlesList$:_i,currentSubtitleCaptions$:di,isAutoSubtitleCaptionVisible$:wi,chromecastState$:Lt,chromecastDeviceName$:ii,chromecastConnected$:Ii,currentFormat$:Le,throughputEstimation$:si,videoBitrate$:ai,videoSize$:Ht,errorLog$:ee,crashed$:Ce,isAudioAvailable$:Yt,isAudioDisabled:!!l,canDownload:se.features.download&&!!r,availableSources$:mi,hasMpegSources$:Ri,isInteractive:A,isInteractiveGraphEnabled:se.features.interactiveGraph,isSeekToInteractiveEnable:se.features.seekToInteractive,isPlayPrevChapterEnabled:se.features.interactivePlayPrevChapter,interactiveEpisodes$:Ql,isInteractiveTime$:xo,graphIsOpened$:Ue(!1),isInteractiveExpectation$:Jl,hasInteractiveBranches:C,playPrevChapterDisabledTooltip:I},ui:{controlsVisible:Ue(!1),touched:Ue(!1),controls:{tooltipPointerOffsetX:Ue(0),prevButton:Ue(void 0),playButton:Ue(void 0),replayButton:Ue(void 0),nextButton:Ue(void 0),playPrevChapterButton:Ue(void 0),seekToInteractiveButton:Ue(void 0),interactiveGraphButton:Ue(void 0),liveButton:Ue(void 0),time:Ue(void 0),episodes:Ue(void 0),volume:Ue(void 0),subtitles:Ue(void 0),settings:Ue(void 0),chromecast:Ue(void 0),fullscreen:Ue(void 0),vkLogo:Ue(void 0),additionalButtons:z.length?z.reduce(P=>[...P,Ue(void 0)],[]):[],disabledControls$:qe},modals:{hotKeyMap:{show:Ue(!1),data:Ue({title:"",closeBtnText:"",groups:[]})}},isFullscreen:le,rotateAlpha:B,isAutoplay:Ue(!1),contextMenuVisible:Ue(!1),debugPanelVisible:Ue(!1),playerSize:bt,isMobile:Yi,mobileNotReportControlHidden$:an,mobileUnmuteButtonExpanded:Ue(!1),mobileUnmuteButtonVisible:Ue(!1),icon3DVideoVisible:Ue(!1),settingsMenuVisible:Ue(!1),scrubbingInProgress:It,is3DVideo:Ue(!1),isPictureInPictureActive$:at,pictureInPictureType$:mn(Ae),clientInfo$:mn(Y),currentGridType$:sn,additionalButtons$:dn,interactiveHideMobileControls:Ue(!1)},ads:{position:Ue(0),duration:Ue(0),playbackState:Ue(qt.INACTIVE),canSkip:Ue(!1),secondsToWatchBeforeSkip:Ue(0),postrollPassed:Ue(!1)},webApi:{pictureInPictureApi:K,annotationsApi:ue},actions:{internal:{preload:$t,firstStart:P=>Xi(P,!1),pause:()=>W(!1),togglePlay:oi,toggleMuted:Ti,setVolume:jt,setQuality:ji,setTrafficSavingEnabled:P=>Wi(P),setPlaybackRate:li,incrementPlaybackRate:Bi,decrementPlaybackRate:Oi,setSubtitle:ki,toggleSubtitle:Si,togglePictureInPicture:Rn,startScrubbing:fe,progressScrubbing:rn,completeScrubbing:Mn,toggleChromecast:fo,switchToActiveLive:io,switchFromAdsToVideo:oo,switchFromVideoToAds:lo,skipAd:no,setWaitingLive:ro,setWaitingRecord:so,getDebugTextData:ao,getDebugPanelData:uo,getVideoElement:co,seekTime:(P,te,be)=>Tt(P,te,be),clearDelayedBufferingCheckTimeout:vt,seekEpisodeStartTime:Bt,seekToPercent:qi,getNextEpisode:ne,seekToNextEpisode:Nn,getPrevEpisode:ft,seekToPrevEpisode:ri,startLogging:nt,stopLogging:xe,startCameraManualRotation:Qe,stopCameraManualRotation:Ze,moveCameraFocusPX:et,holdCamera:He,releaseCamera:De,getVideoEpisodes:Ei,getPreviewThumbsData:Sn,downloadVideo:hi,addLanguage:zr,setLanguage:ge,nextMovie:We,videoRotate:Jo,completeInteractiveRange:Vc,correctSeekTimeToInteractive:xl,replayInteractive:T},external:{firstStart:P=>Xi(P,!0),play:()=>St(!0),pause:()=>W(!0),seekTime:P=>on(P),seekEpisodeStartTime:P=>Ot(P),setPlaybackRate:P=>Gi(P),setAutoQualityLimits:P=>Zi(P),setMuted:P=>Qt(P,!0),setVolume:P=>jt(P,P,!0)}},callbacks:s,setUiCallbacks:P=>{Ee=Object.assign({},P)},getAdmanWrapper:()=>J,getLogger:()=>ce,destroy:Ic};return Dt};class u6{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(){const 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(const[t,n]of e)try{navigator.mediaSession.setActionHandler(t,n)}catch(o){throw new Error(`The media session action "${t}" is not supported yet.`)}}}const c6=460,f6=280;class Lc{constructor(){this.info={isActive$:new ie.ValueSubject(!1),type:yn.DocumentPictureInPicture}}isSupported(){const e=ie.getCurrentBrowser().browser===ie.CurrentClientBrowser.Yandex,{isEmbed:t}=ie.detectEmbed();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}request(){var e,t;return Ji(this,void 0,void 0,function*(){if(!this.isSupported()||!this.playerDomElement||!this.playerParentShadowRoot)return;this.pipWindow=yield documentPictureInPicture.requestWindow({width:c6,height:f6,copyStyleSheets:!0}),this.pipWindow.document.body.style.margin="0";const n=[...this.playerParentShadowRoot.styleSheets].map(s=>[...s.cssRules].map(a=>a.cssText).join(" ")).filter(Boolean).join(`
|
|
51
|
-
`),o=document.createElement("style");o.textContent=n;const l=this.createStretchedContainer(),r=l.attachShadow({mode:"open"});r.append(o),r.append(this.playerDomElement),this.playerDummyElement=new Ru({target:this.playerParentShadowRoot,context:this.svelteContext}),(e=this.pipWindow)===null||e===void 0||e.document.body.append(l),this.info.isActive$.next(!0),(t=this.pipWindow)===null||t===void 0||t.addEventListener("unload",s=>{!this.playerDomElement||!this.playerParentShadowRoot||!this.playerDummyElement||(this.playerDummyElement.$destroy(),this.playerParentShadowRoot.append(this.playerDomElement),this.info.isActive$.next(!1))})})}remove(){return Ji(this,void 0,void 0,function*(){return new Promise(e=>{var t;(t=documentPictureInPicture.window)===null||t===void 0||t.close(),e()})})}dispose(){return Ji(this,void 0,void 0,function*(){yield this.remove()})}createStretchedContainer(){const e=document.createElement("div");return e.style.width="100%",e.style.height="100%",e}}function d6(i){return i instanceof Lc}class m6{static getLatestSupportedVersion(){const e=new jl,t=new Lc;if(t.isSupported())return t;if(e.isSupported())return e}}function A1(i,e){var t,n;const o=new Set([...Object.keys(i),...Object.keys(e)]),l={};for(const r of o)l[r]=(n=(t=e[r])!==null&&t!==void 0?t:i[r])!==null&&n!==void 0?n:void 0;return l}const L1="Inner error. Unexpectedly root annotation container null reference exception",h6="Annotation layer with such name already exists";class Tl extends Error{constructor(e){super(e),this.name="AnnotationError"}}class v6{constructor(){this.layers=new Map}registryRootContainer(e){this.detach(),this.rootAnnotationsContainer=e}addLayer(e){if(!this.rootAnnotationsContainer)throw new Tl(L1);if(this.layers.has(e))throw new Tl(h6);const t=document.createElement("div");return t.className="annotations-layer",t.style.width="100%",t.style.height="100%",t.style.position="absolute",t.style.left="0",t.style.top="0",this.rootAnnotationsContainer.append(t),this.layers.set(e,t),t}getLayer(e){return this.layers.get(e)}removeLayer(e){const t=this.layers.get(e);t&&this.layers.delete(e)&&t.remove()}clearLayer(e){const t=this.layers.get(e);for(;t!=null&&t.lastChild;)t.lastChild.remove()}detach(){for(const e of this.layers.values())e.remove()}reattach(){if(!this.rootAnnotationsContainer)throw new Tl(L1);for(const e of this.layers.values())this.rootAnnotationsContainer.append(e)}destroy(){this.detach(),this.layers.clear(),this.rootAnnotationsContainer=void 0}}const p6={preload:!0,autoplay:!1,repeat:!1,fromTime:0,canRewindLive:!0,showAds:!1,interfaceLanguage:ie.InterfaceLanguage.RU,logoClickable:!1,logoHidden:!1,isMobile:ie.isMobile(),isMediaSessionEnabled:!0,isPictureInPictureEnabled:!0,isAudioDisabled:!1,callbacks:{uiInfo:{}},tuningConfig:{configName:[]}};class g6 extends HTMLElement{constructor(){var e;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.interactiveProjectInfo=void 0,this.isInited=!1,this._shadowRoot=this.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.logger=new ie.Logger,this.log=this.logger.createComponentLog("VKVideoPlayer"),this.subscription=new ie.Subscription,this.graphMadePause=!1,!((e=window==null?void 0:window.videoPlayerConfig)===null||e===void 0)&&e.debugLogs&&this.subscription.add(this.logger.log$.subscribe(t=>{console.log("%c player web component ","background:#77dd77;",`${t.component}`,t.message)}))}connectedCallback(){var e,t;if(this.isInited)return;const n=(e=this.getAttribute("stub-title"))!==null&&e!==void 0?e:void 0,o=(t=this.getAttribute("stub-thumb-url"))!==null&&t!==void 0?t:void 0;this.svelteStubComponent=new Jg({target:this.playerContainer,props:{title:n,thumbUrl:o}})}disconnectedCallback(){var e,t,n,o,l;(e=this.annotationsApi)===null||e===void 0||e.destroy(),(t=this.svelteRootComponent)===null||t===void 0||t.$destroy(),(n=this.svelteStubComponent)===null||n===void 0||n.$destroy(),this.subscription.unsubscribe(),(o=this.unsubscribePlayerPhaseSubscription)===null||o===void 0||o.call(this),(l=this.interactiveController)===null||l===void 0||l.destroy()}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){var t;const n=(t=this.store)===null||t===void 0?void 0:t.ui.controls.disabledControls$;return(n==null?void 0:n.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,t={},n){var o,l,r,s,a,c,f,h,g,v;if(!this.videoConfig)return;const{albumId:b,statPlace:A,statUserSalt:S,statAuthToken:T,statTrackCode:C,refreshStatAuthToken:I,preload:z,autoplay:X,volume:$,muted:H,fromTime:R,canRewindLive:oe,supportLink:se,showAds:L,adsSlotId:ce,adsParams:J={},adsPreviewParam:U,interfaceLanguage:_,logoClickable:K,logoHidden:ue,isMobile:_e,isAudioDisabled:he,isLiveCatchUpMode:ae,fullScreenTarget:Ee,failoverHosts:Y,canDownload:V,callbacks:le,interactiveData:x,showThumbTimer:Ae,additionalButtons:B=[]}=A1(this.videoConfig,t),{sources:ee,title:ze,thumbUrl:Ce,videoLogoUrl:ge,unitedVideoId:Se,isClip:Pe=!1,duration:G,adsParams:j={},videoEpisodes:qe,previewThumbsData:tt,subtitles:it,live:We}=e,Me=Object.assign(Object.assign({},J),j),st=this.getNextVideoInfo(),Mt={sources:ee,title:ze,thumbUrl:Ce,subtitles:it,unitedVideoId:Se,isClip:Pe,live:We,albumId:b,statPlace:A,autoplay:X,muted:H,volume:$,fromTime:R,canRewindLive:oe,showAds:L,adsSlotId:ce,adsParams:Me,adsPreviewParam:U,duration:G,logoClickable:K,logoHidden:ue,isMobile:_e,showNextPrevButtons:this.needToShowNextPrevButtons(),nextButtonActive:this.isNextButtonActive(),prevButtonActive:this.isPrevButtonActive(),endScreenVideoTitle:st.nextVideoTitle,endScreenVideoThumb:st.nextVideoThumb,isOneVideoPlaylist:this.isOneVideoPlaylist()},Ne={pictureInPictureApi:this.pictureInPictureApi,annotationsApi:this.annotationsApi};this.log({message:`create player, props: ${JSON.stringify(Mt)}`});const Re=this.uiConfig.features.statistics&&!!Se,Rt=(o=this.videoConfig.videos[this.currentPlayingVideoIndex])===null||o===void 0?void 0:o.unitedVideoId;Re&&new ho(Object.assign({movieId:Se,albumId:b,place:A,trackCode:C,autoplay:(l=X&&!this.interactiveController)!==null&&l!==void 0?l:!1,mobile:_e,clip:Pe},Rt&&this.interactiveController&&!this.interactiveProjectInfo&&{projectId:Rt}),Object.assign({refreshAuthToken:I,userSalt:S,config:this.statistics.config},this.interactiveProjectInfo&&{vsid:this.interactiveProjectInfo.vsid})),this.uiConfig.features.sentry&&this.uiConfig.sentry.dsn&&new Nl(this.uiConfig.sentry,{version:Zo,env:u0},{movieId:Se,albumId:b,place:A,autoplay:(r=X&&!this.interactiveController)!==null&&r!==void 0?r:!1,mobile:_e,clip:Pe}),this.interactiveProjectInfo||(this.interactiveProjectInfo={id:Rt,vsid:(s=ho.getInstance())===null||s===void 0?void 0:s.oneStat.vsid$.getValue()}),this.statistics=Object.assign(Object.assign({},this.statistics),ho.getInstance()),this.sentry=Object.assign(Object.assign({},this.sentry),Nl.getInstance());const nt=!!x,xe=(a=this.interactiveController)===null||a===void 0?void 0:a.getInteractiveRanges(),Qe=[];let Ze;if(nt&&this.interactiveController){const He=this.interactiveController.state;He.isInitialChapter$.getValue()&&Qe.push(ht.REPLAY_BUTTON),this.interactiveController.getIsSeekable().getValue()||Qe.push(ht.SEEK_TO_INTERACTIVE_BUTTON),He.hasPrevChapter$.getValue()||(He.isInitialChapter$.getValue()?Ze="tooltip_interactive_go_back_disabled_first":He.lastChapterChangeWasInitiatedByInteractive$.getValue()?Ze="tooltip_interactive_go_back_disabled":Ze="tooltip_interactive_go_back_disabled_limit",Qe.push(ht.PLAY_PREV_CHAPTER_BUTTON))}const et=()=>{var He;const De=(n==null?void 0:n.info.isEnded$.getValue())&&((He=this.interactiveController)===null||He===void 0?void 0:He.state.isEndChapter$.getValue());le.onReplayInteractiveVideo&&!De?le.onReplayInteractiveVideo():this.replayInteractiveVideo()};this.store=a6({player:n,interfaceLanguage:_,videoId:Se,isClip:Pe,isLiveCatchUpMode:ae,isAudioDisabled:he,statAuthToken:T,callbacks:le,webApi:Ne,videoEpisodes:qe,previewThumbsData:tt,canDownload:V,uiConfig:this.uiConfig,coreConfig:this.coreConfig,disabledControls:Qe,isInteractive:nt,interactiveRanges:xe,replayInteractive:et,playPrevChapterDisabledTooltip:Ze,hasInteractiveBranches:!!(!((f=(c=this.interactiveController)===null||c===void 0?void 0:c.getChapterBranches())===null||f===void 0)&&f.length),additionalButtons:this.uiConfig.features.additionalButtons?B:[]}),this.subscription.add(this.store.state.currentFormat$.subscribe(He=>{var De;return(De=le==null?void 0:le.onCurrentFormatChanged)===null||De===void 0?void 0:De.call(le,He)})),this.subscription.add(this.store.state.throughputEstimation$.subscribe(He=>{var De;return(De=le==null?void 0:le.onThroughputEstimationChanged)===null||De===void 0?void 0:De.call(le,He)})),this.subscription.add(this.store.state.videoBitrate$.subscribe(He=>{var De;return(De=le==null?void 0:le.onVideoBitrateChanged)===null||De===void 0?void 0:De.call(le,He)})),this.subscription.add(this.store.state.isInteractiveTime$.subscribe(He=>{var De;const pt=(De=this.store)===null||De===void 0?void 0:De.ui.controls.disabledControls$;pt&&He&&!pt.includes(Vl)&&pt.add(Vl)})),this.videoConfig.isMobile&&this.interactiveController&&this.subscription.add(this.store.ui.controlsVisible.subscribe(He=>{var De;(De=this.interactiveController)===null||De===void 0||De.setDisabledControls(He)})),this.initMediaSession(),this.interactiveController&&Re&&this.initInteractivesStatistics(),this.svelteRootComponent=new qg({target:this.playerContainer,props:{interactiveContainer:this.interactiveContainer,sources:ee,store:this.store,uiConfig:this.uiConfig,title:ze,thumbUrl:Ce,videoLogoUrl:ge,subtitles:it,live:We,preload:z,autoplay:X,muted:H,volume:$,fromTime:R,canRewindLive:oe,supportLink:se,showAds:L,adsSlotId:ce,adsParams:Me,adsPreviewParam:U,duration:G,logoClickable:K,logoHidden:ue,isMobile:_e,failoverHosts:Y,fullScreenTarget:Ee,showMiniTimer:Ae,outerContainerRef:this.playerContainer,showNextPrevButtons:this.needToShowNextPrevButtons(),nextButtonActive:this.isNextButtonActive(),prevButtonActive:this.isPrevButtonActive(),endScreenVideoTitle:st.nextVideoTitle,endScreenVideoThumb:st.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,(v=(g=(h=this.videoConfig)===null||h===void 0?void 0:h.callbacks)===null||g===void 0?void 0:g.onInited)===null||v===void 0||v.call(g))}addPlayerInfoSubscriptions(){var e;if(this.isInited)return;const t=this.store,n=(e=this.videoConfig)===null||e===void 0?void 0:e.callbacks;n&&this.subscription.add(t.playerPhase.subscribe(l=>{var r;return(r=n.onPlayerPhaseChanged)===null||r===void 0?void 0:r.call(n,l)})).add(t.state.playbackState$.subscribe(l=>{var r;return(r=n.onPlaybackStateChanged)===null||r===void 0?void 0:r.call(n,l)})).add(t.state.isLive$.subscribe(l=>{var r;return(r=n.onIsLiveChanged)===null||r===void 0?void 0:r.call(n,l)})).add(t.state.isActiveLive$.subscribe(l=>{var r;return(r=n.onIsActiveLiveChanged)===null||r===void 0?void 0:r.call(n,l)})).add(t.state.isAudioAvailable$.subscribe(l=>{var r;return(r=n.onIsAudioAvailableChanged)===null||r===void 0?void 0:r.call(n,l)})).add(t.state.currentQuality$.subscribe(l=>{var r;return(r=n.onCurrentQualityChanged)===null||r===void 0?void 0:r.call(n,l)})).add(t.state.availableQualities$.subscribe(l=>{var r;return(r=n.onAvailableQualitiesChanged)===null||r===void 0?void 0:r.call(n,l.map(({value:s})=>s).filter(s=>s!==xn.AUTO))})).add(t.ui.isPictureInPictureActive$.subscribe(l=>{var r,s;return l?(r=n.onPiPEnter)===null||r===void 0?void 0:r.call(n):(s=n.onPiPExit)===null||s===void 0?void 0:s.call(n)}));const o=n==null?void 0:n.uiInfo;o&&this.subscription.add(t.ui.controlsVisible.subscribe(l=>{var r;return(r=o.onControlsVisibleChanged)===null||r===void 0?void 0:r.call(o,l)})).add(t.ui.isMobile.subscribe(l=>{var r;return(r=o.onIsMobileChanged)===null||r===void 0?void 0:r.call(o,l)})).add(t.ui.playerSize.subscribe(l=>{var r;return(r=o.onPlayerSizeChanged)===null||r===void 0?void 0:r.call(o,l)})).add(t.ui.controls.prevButton.subscribe(l=>{var r;return(r=o.onPrevButtonChanged)===null||r===void 0?void 0:r.call(o,l)})).add(t.ui.controls.playButton.subscribe(l=>{var r;return(r=o.onPlayButtonChanged)===null||r===void 0?void 0:r.call(o,l)})).add(t.ui.controls.replayButton.subscribe(l=>{var r;return(r=o.onReplayButtonChanged)===null||r===void 0?void 0:r.call(o,l)})).add(t.ui.controls.nextButton.subscribe(l=>{var r;return(r=o.onNextButtonChanged)===null||r===void 0?void 0:r.call(o,l)})).add(t.ui.controls.playPrevChapterButton.subscribe(l=>{var r;return(r=o.onPlayPrevChapterChanged)===null||r===void 0?void 0:r.call(o,l)})).add(t.ui.controls.seekToInteractiveButton.subscribe(l=>{var r;return(r=o.onSeekToInteractiveButtonChanged)===null||r===void 0?void 0:r.call(o,l)})).add(t.ui.controls.interactiveGraphButton.subscribe(l=>{var r;return(r=o.onGraphButtonChanged)===null||r===void 0?void 0:r.call(o,l)})).add(t.ui.controls.liveButton.subscribe(l=>{var r;return(r=o.onLiveButtonChanged)===null||r===void 0?void 0:r.call(o,l)})).add(t.ui.controls.time.subscribe(l=>{var r;return(r=o.onTimeUpdateChanged)===null||r===void 0?void 0:r.call(o,l)})).add(t.ui.controls.episodes.subscribe(l=>{var r;return(r=o.onEpisodesChanged)===null||r===void 0?void 0:r.call(o,l)})).add(t.ui.controls.volume.subscribe(l=>{var r;return(r=o.onVolumeChanged)===null||r===void 0?void 0:r.call(o,l)})).add(t.ui.controls.subtitles.subscribe(l=>{var r;return(r=o.onSubtitlesChanged)===null||r===void 0?void 0:r.call(o,l)})).add(t.ui.controls.settings.subscribe(l=>{var r;return(r=o.onSettingsChanged)===null||r===void 0?void 0:r.call(o,l)})).add(t.ui.controls.fullscreen.subscribe(l=>{var r;return(r=o.onFullscreenChanged)===null||r===void 0?void 0:r.call(o,l)})).add(t.ui.controls.chromecast.subscribe(l=>{var r;return(r=o.onChromecastChanged)===null||r===void 0?void 0:r.call(o,l)})).add(t.ui.controls.vkLogo.subscribe(l=>{var r;return(r=o.onVkLogoChanged)===null||r===void 0?void 0:r.call(o,l)}))}playNextVideo(){this.videoConfig&&(this.currentPlayingVideoIndex++,this.currentPlayingVideoIndex>=this.videoConfig.videos.length&&(this.currentPlayingVideoIndex=0),this.log({message:`play next video, index: ${this.currentPlayingVideoIndex}`}),this.createPlayerWithCurrentVideo())}playPrevVideo(){this.videoConfig&&(this.currentPlayingVideoIndex--,this.currentPlayingVideoIndex<0&&(this.currentPlayingVideoIndex=this.videoConfig.videos.length-1),this.log({message:`play prev video, index: ${this.currentPlayingVideoIndex}`}),this.createPlayerWithCurrentVideo())}repeatPlaylist(){this.currentPlayingVideoIndex=0,this.log({message:"repeat playlist"}),this.createPlayerWithCurrentVideo()}createPlayerWithCurrentVideo(e,t=!0){var n;if(!this.videoConfig)return;const o=this.videoConfig.videos[this.currentPlayingVideoIndex];if(!o){this.log({message:"no next video"});return}this.isInited&&ie.isNonNullable(o.unitedVideoId)&&this.store.actions.internal.nextMovie(o.unitedVideoId),(n=this.svelteRootComponent)===null||n===void 0||n.$destroy(),this.createPlayer(o,{autoplay:t,fromTime:0},e)}playPrevChapter(){var e;(e=this.interactiveController)===null||e===void 0||e.playPrevChapter()}seekToInteractive(){var e;const t=(e=this.interactiveController)===null||e===void 0?void 0:e.getNextInteractiveStartTime();typeof t=="number"&&this.seekTime(t/1e3)}toggleGraph(){var e,t;if(!this.isInited)return;const n=this.store,{isEnded$:o,playbackState$:l,graphIsOpened$:r}=n.state,{disabledControls$:s}=n.ui.controls,a=lt(o),c=lt(l);lt(r)?(r.set(!1),(e=this.interactiveController)===null||e===void 0||e.toggleGraphView(!1),s.remove(rr),!a&&this.graphMadePause&&this.play()):(this.graphMadePause=c==="playing",r.set(!0),(t=this.interactiveController)===null||t===void 0||t.toggleGraphView(!0),s.add(rr),!a&&this.graphMadePause&&this.pause())}initInteractives(){var e,t,n,o;return Ji(this,void 0,void 0,function*(){if(!((e=this.videoConfig)===null||e===void 0)&&e.interactiveData)try{const{Interactives:l,EVENT_NAMES:r,CustomError:s}=yield import("@vkontakte/videoplayer-interactive/es2015.cjs.js");this.interactiveContainer=document.createElement("div"),this.interactiveContainer.classList.add("interactiveContainer");const a=(t=this.store)===null||t===void 0?void 0:t.interfaceLanguage$,c=a?lt(a):this.videoConfig.interfaceLanguage,f=this.videoConfig.videos[0];this.interactiveController=new l({parentElement:this.interactiveContainer,fullscreenTargetElement:this.playerContainer,lang:c,graph:this.uiConfig.features.interactiveGraph,vkVideoLoader:this.videoConfig.interactiveData.videoLoader,lastFrame:this.uiConfig.features.interactiveLastFrame,permanentTextControls:this.uiConfig.features.interactiveTextPermanent,disableControlsOnPause:!this.videoConfig.isMobile}),this.uiConfig.features.seekToInteractive&&this.subscription.add(this.interactiveController.getIsSeekable().subscribe(g=>{if(!this.isInited)return;const v=this.store;g?v.ui.controls.disabledControls$.remove(ht.SEEK_TO_INTERACTIVE_BUTTON):v.ui.controls.disabledControls$.add(ht.SEEK_TO_INTERACTIVE_BUTTON)}));let h=!0;this.interactiveController.on(r.playerChanged,g=>{if(!this.videoConfig)return;this.videoConfig.videos[this.currentPlayingVideoIndex]=Object.assign(Object.assign({},g.config),f&&{title:f.title});const v=h?this.videoConfig.autoplay:!0;this.createPlayerWithCurrentVideo(g.player,v),h&&(h=!1)}),this.interactiveController.on(r.interactives,({type:g,subjectId:v,actionType:b})=>{var A,S,T,C;if(this.store&&(g==="container-removed"&&this.store.actions.internal.completeInteractiveRange(v),g==="range-ended"&&(lt(this.store.state.isInteractiveExpectation$)||this.store.ui.controls.disabledControls$.remove(mo)),g==="action-execution"&&b==="expect"&&(this.store.ui.controls.disabledControls$.add(mo),this.store.state.isInteractiveExpectation$.set(!0)),g==="action-choice"&&b==="setRandomBranch"&&(this.store.state.graphIsOpened$.set(!1),this.store.ui.controls.disabledControls$.remove(mo)),g==="action-execution"&&b==="after-expect"&&(this.store.ui.controls.disabledControls$.remove(mo),this.store.state.isInteractiveExpectation$.set(!1)),g==="action-choice-canceled")){const I=lt(this.store.state.isPlaying$)||lt(this.store.state.isInteractiveExpectation$);if(!((A=this.videoConfig)===null||A===void 0)&&A.isMobile&&I){this.store.ui.interactiveHideMobileControls.set(!0);return}(C=(S=this.videoConfig)===null||S===void 0?void 0:(T=S.callbacks).onDisabledInteractiveClick)===null||C===void 0||C.call(T)}}),!((o=(n=this.videoConfig)===null||n===void 0?void 0:n.callbacks)===null||o===void 0)&&o.onInteractiveHistoryChanged&&this.subscription.add(this.interactiveController.state.history$.subscribe(g=>{var v,b,A;g.length&&((A=(b=(v=this.videoConfig)===null||v===void 0?void 0:v.callbacks)===null||b===void 0?void 0:b.onInteractiveHistoryChanged)===null||A===void 0||A.call(b,g))})),this.interactiveController.on(r.errors,g=>{this.log({message:g.toString()})}),yield this.interactiveController.initSeamless({source:this.videoConfig.interactiveData.manifest,initialChapter:this.videoConfig.interactiveData.initChapterId,visitedChapters:this.videoConfig.interactiveData.visitedChapters,videosInfo:this.videoConfig.interactiveData.videosInfo})}catch(l){this.log({message:l.message})}})}initInteractivesStatistics(){var e,t;return Ji(this,void 0,void 0,function*(){const{statSubscription:n,oneStat:o}=this.statistics;if(!(!n||!o||!this.interactiveController))try{const{INTERACTIVE_CLICK_ACTIONS:l}=yield import("@vkontakte/videoplayer-interactive/es2015.cjs.js"),r={[l.GO_NEXT_BUTTON]:_t.InteractiveInterfaceClick.NEXT_BUTTON,[l.GO_NEXT_AREA]:_t.InteractiveInterfaceClick.NEXT_AREA,[l.WATCH_AGAIN]:_t.InteractiveInterfaceClick.WATCH_AGAIN,[l.OPEN_GRAPH]:_t.InteractiveInterfaceClick.GRAPH_SHOW,[l.CLOSE_GRAPH]:_t.InteractiveInterfaceClick.GRAPH_HIDE},{click$:s,nextMovie$:a}=this.interactiveController.getStatEvents(),c=new ie.Subject;s.subscribe(f=>{var h,g;f in r?c.next(r[f]):(o==null||o.logError({errorType:"InteractiveVideosAction",fatal:!1}),(g=(h=this.sentry).report)===null||g===void 0||g.call(h,new Error("InteractiveVideosAction"),{errorType:"InteractiveVideosAction",fatal:!1}))}),n.add(o.attachToInteractive({click$:c,nextMovie$:a}))}catch(l){o==null||o.logError({errorType:"InteractiveVideos",fatal:!1}),(t=(e=this.sentry).report)===null||t===void 0||t.call(e,l,{errorType:"InteractiveVideosAction",fatal:!1})}})}initPlayer(e,t={}){var n,o,l,r,s,a,c,f,h,g,v,b,A,S,T,C,I,z,X;if(!Array.isArray(e.videos)||e.videos.length===0&&!e.interactiveData)throw new Error("empty videos");this.videoConfig=A1(p6,ie.cloneDeepWith(e,$=>$ instanceof HTMLElement?$:void 0)),this.uiConfig=i0((n=t.ui)!==null&&n!==void 0?n:{}),this.coreConfig=(o=t.core)!==null&&o!==void 0?o:{configName:[]},this.statistics={config:(l=t.statistics)!==null&&l!==void 0?l:{}},this.sentry={config:(r=this.uiConfig.sentry)!==null&&r!==void 0?r:{}},ie.isNonNullable(this.videoConfig.isMediaSessionEnabled)&&(this.uiConfig.features.mediaSession=(s=this.videoConfig.isMediaSessionEnabled)!==null&&s!==void 0?s:!0),ie.isNonNullable(this.videoConfig.isPictureInPictureEnabled)&&(this.uiConfig.features.pip=(c=(a=this.uiConfig.features.pip)!==null&&a!==void 0?a:this.videoConfig.isPictureInPictureEnabled)!==null&&c!==void 0?c:!0,this.uiConfig.features.dpip=(h=(f=this.uiConfig.features.dpip)!==null&&f!==void 0?f:this.videoConfig.isPictureInPictureEnabled)!==null&&h!==void 0?h:!0),this.videoConfig.isMobile=(g=this.uiConfig.isMobile)!==null&&g!==void 0?g:this.videoConfig.isMobile,(z=this.videoConfig).autoplay&&(z.autoplay=this.uiConfig.features.autoplay),this.videoConfig.showAds=(v=this.uiConfig.ads.enable)!==null&&v!==void 0?v:this.videoConfig.showAds,this.videoConfig.adsSlotId=(b=this.uiConfig.ads.slot)!==null&&b!==void 0?b:this.videoConfig.adsSlotId,this.videoConfig.adsPreviewParam=(A=this.uiConfig.ads.preview)!==null&&A!==void 0?A:this.videoConfig.adsPreviewParam,this.videoConfig.logoHidden=!((S=this.uiConfig.showLogo)!==null&&S!==void 0?S:!this.videoConfig.logoHidden),(X=this.videoConfig).canRewindLive&&(X.canRewindLive=this.uiConfig.features.liveRewind),this.videoConfig.supportLink=(T=this.videoConfig.supportLink)!==null&&T!==void 0?T:this.uiConfig.supportLink,this.currentPlayingVideoIndex=0,this.uiConfig.features.pip&&(this.uiConfig.features.dpip?this.pictureInPictureApi=m6.getLatestSupportedVersion():this.pictureInPictureApi=new jl),this.mediaSessionApi=this.uiConfig.features.mediaSession?new u6:void 0,this.annotationsApi=this.uiConfig.features.annotations?new v6:void 0,(C=this.svelteStubComponent)===null||C===void 0||C.$destroy(),(I=this.svelteRootComponent)===null||I===void 0||I.$destroy(),this.interactiveController&&(this.interactiveController.destroy(),this.interactiveController=void 0,this.interactiveProjectInfo=void 0),e.interactiveData?this.initInteractives():this.createPlayer(e.videos[0]),d6(this.pictureInPictureApi)&&this.pictureInPictureApi.setPlayerDomElement(this.playerContainer,this._shadowRoot)}isOneVideoPlaylist(){return this.videoConfig?this.videoConfig.videos.length===1:!1}updateNextVideos(e){var t;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 n=this.getNextVideoInfo();(t=this.svelteRootComponent)===null||t===void 0||t.$set({showNextPrevButtons:this.needToShowNextPrevButtons(),nextButtonActive:this.isNextButtonActive(),prevButtonActive:this.isPrevButtonActive(),endScreenVideoTitle:n.nextVideoTitle,endScreenVideoThumb:n.nextVideoThumb,isOneVideoPlaylist:this.isOneVideoPlaylist()})}initMediaSession(){var e,t;this.mediaSessionApi&&((e=this.unsubscribePlayerPhaseSubscription)===null||e===void 0||e.call(this),this.unsubscribePlayerPhaseSubscription=(t=this.store)===null||t===void 0?void 0:t.playerPhase.subscribe(n=>{n===Be.Video?this.setupMediaSessionForVideo():n===Be.Ads&&this.setupMediaSessionForAds()}))}setupMediaSessionForVideo(){if(!(!this.videoConfig||!this.mediaSessionApi))try{const{title:e,thumbUrl:t}=Object.assign({},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:t}),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",t=[["play",()=>this.play()],["pause",()=>this.pause()]];this.mediaSessionApi.setMetaData({title:e}),this.mediaSessionApi.updateActionHandlers(t)}catch(e){this.log({message:e.message})}}play(){var e;this.isControlDisabled(ht.PLAY_BUTTON)||(this.log({message:"play"}),(e=this.svelteRootComponent)===null||e===void 0||e.play())}pause(){var e;this.log({message:"pause"}),(e=this.svelteRootComponent)===null||e===void 0||e.pause()}stop(){var e,t;if(!this.videoConfig)return;this.log({message:"stop"}),(e=this.svelteStubComponent)===null||e===void 0||e.$destroy();const n=this.videoConfig.videos[0];n&&((t=this.svelteRootComponent)===null||t===void 0||t.$destroy(),this.createPlayer(n))}setMuted(e){var t;this.log({message:`set muted, muted: ${e}`}),(t=this.svelteRootComponent)===null||t===void 0||t.setMuted(e)}setVolume(e){var t;this.log({message:`set volume, volume: ${e}`}),(t=this.svelteRootComponent)===null||t===void 0||t.setVolume(e)}setRepeat(e){var t;this.log({message:`set repeat, repeat: ${e}`}),this.needToRepeatPlaylist=e,(t=this.svelteRootComponent)===null||t===void 0||t.$set({showNextPrevButtons:this.needToShowNextPrevButtons(),nextButtonActive:this.isNextButtonActive(),prevButtonActive:this.isPrevButtonActive()})}seekTime(e){var t;this.isControlDisabled(ht.TIMELINE)||(this.log({message:`seek time, time: ${e}`}),(t=this.svelteRootComponent)===null||t===void 0||t.seekTime(e))}seekEpisodeStartTime(e){var t;this.log({message:`seek episode start time, time: ${e}`}),(t=this.svelteRootComponent)===null||t===void 0||t.seekEpisodeStartTime(e)}setPlaybackRate(e){var t;this.log({message:`set playback rate to: ${e}`}),(t=this.svelteRootComponent)===null||t===void 0||t.setPlaybackRate(e)}setAutoQualityLimits(e){var t,n,o;this.log({message:`set auto quality limitation. Max: ${(t=e.max)!==null&&t!==void 0?t:"none"}. Min: ${(n=e.min)!==null&&n!==void 0?n:"none"}`}),(o=this.svelteRootComponent)===null||o===void 0||o.setAutoQualityLimits(e)}addLanguage(e){var t;(t=this.store)===null||t===void 0||t.actions.internal.addLanguage(e)}setLanguage(e){var t;return Ji(this,void 0,void 0,function*(){yield(t=this.store)===null||t===void 0?void 0:t.actions.internal.setLanguage(e)})}setLiveStart(e){var t,n;this.log({message:"live started"}),(t=this.store)===null||t===void 0||t.actions.internal.setWaitingLive(!1),(n=this.svelteRootComponent)===null||n===void 0||n.initVideo(e),this.play()}setWaitRecord(){var e;this.log({message:"post live"}),(e=this.store)===null||e===void 0||e.actions.internal.setWaitingRecord(!0)}setLiveEnd(e){var t,n;this.log({message:"live ended"}),(t=this.store)===null||t===void 0||t.actions.internal.setWaitingRecord(!1),(n=this.svelteRootComponent)===null||n===void 0||n.$destroy(),this.createPlayer(e,{autoplay:!1})}getDeviceId(){var e,t;return(t=(e=ho.getInstance())===null||e===void 0?void 0:e.oneStat.getDeviceId())!==null&&t!==void 0?t:void 0}replayInteractiveVideo(){this.interactiveController&&this.interactiveController.setChapter()}}const b6=()=>{window.customElements.define("vk-video-player",g6)};Object.defineProperty(exports,"VideoFormat",{enumerable:!0,get:function(){return rt.VideoFormat}});Object.defineProperty(exports,"VideoQuality",{enumerable:!0,get:function(){return rt.VideoQuality}});Object.defineProperty(exports,"InterfaceLanguage",{enumerable:!0,get:function(){return ie.InterfaceLanguage}});Object.defineProperty(exports,"VKNumericLanguage",{enumerable:!0,get:function(){return ie.VKNumericLanguage}});Object.defineProperty(exports,"loadVKLangPack",{enumerable:!0,get:function(){return ie.loadVKLangPack}});exports.VERSION=Zo;exports.registerPlayerWebComponent=b6;
|
|
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{pointer-events:none}*:focus, *:focus-visible{outline:none}*:focus-visible{box-shadow:var(--focused-element-shadow)}.hidden{visibility:hidden;opacity:0}`)}function db(i){let e,t,n;function o(l){i[54](l)}let r={store:i[0],uiConfig:i[35],title:i[1],thumbUrl:i[2],videoLogoUrl:i[3],interactiveContainer:i[4],live:i[5],autoplay:i[6],canRewindLive:i[7],showAds:i[8],adsSlotId:i[9],adsParams:i[10],adsPreviewParam:i[11],duration:i[12],logoClickable:i[13],logoHidden:i[14],showNextPrevButtons:i[16],nextButtonActive:i[17],prevButtonActive:i[18],endScreenVideoTitle:i[19],endScreenVideoThumb:i[20],isOneVideoPlaylist:i[21],supportLink:i[22],outerContainerRef:i[23],fullScreenTarget:i[24],showMiniTimer:i[25],playerStarted:i[34],playNextVideo:i[26],playPrevVideo:i[27],repeatPlaylist:i[28],seekToInteractive:i[29],toggleGraph:i[30],playPrevChapter:i[31],firstStart:i[36]};return i[33]!==void 0&&(r.videoContainer=i[33]),e=new $g({props:r}),Me.push(()=>Je(e,"videoContainer",o)),{c(){H(e.$$.fragment)},m(l,s){z(e,l,s),n=!0},p(l,s){const a={};s[0]&1&&(a.store=l[0]),s[0]&2&&(a.title=l[1]),s[0]&4&&(a.thumbUrl=l[2]),s[0]&8&&(a.videoLogoUrl=l[3]),s[0]&16&&(a.interactiveContainer=l[4]),s[0]&32&&(a.live=l[5]),s[0]&64&&(a.autoplay=l[6]),s[0]&128&&(a.canRewindLive=l[7]),s[0]&256&&(a.showAds=l[8]),s[0]&512&&(a.adsSlotId=l[9]),s[0]&1024&&(a.adsParams=l[10]),s[0]&2048&&(a.adsPreviewParam=l[11]),s[0]&4096&&(a.duration=l[12]),s[0]&8192&&(a.logoClickable=l[13]),s[0]&16384&&(a.logoHidden=l[14]),s[0]&65536&&(a.showNextPrevButtons=l[16]),s[0]&131072&&(a.nextButtonActive=l[17]),s[0]&262144&&(a.prevButtonActive=l[18]),s[0]&524288&&(a.endScreenVideoTitle=l[19]),s[0]&1048576&&(a.endScreenVideoThumb=l[20]),s[0]&2097152&&(a.isOneVideoPlaylist=l[21]),s[0]&4194304&&(a.supportLink=l[22]),s[0]&8388608&&(a.outerContainerRef=l[23]),s[0]&16777216&&(a.fullScreenTarget=l[24]),s[0]&33554432&&(a.showMiniTimer=l[25]),s[1]&8&&(a.playerStarted=l[34]),s[0]&67108864&&(a.playNextVideo=l[26]),s[0]&134217728&&(a.playPrevVideo=l[27]),s[0]&268435456&&(a.repeatPlaylist=l[28]),s[0]&536870912&&(a.seekToInteractive=l[29]),s[0]&1073741824&&(a.toggleGraph=l[30]),s[1]&1&&(a.playPrevChapter=l[31]),!t&&s[1]&4&&(t=!0,a.videoContainer=l[33],Qe(()=>t=!1)),e.$set(a)},i(l){n||(h(e.$$.fragment,l),n=!0)},o(l){p(e.$$.fragment,l),n=!1},d(l){F(e,l)}}}function mb(i){let e,t,n;function o(l){i[53](l)}let r={store:i[0],uiConfig:i[35],thumbUrl:i[2],videoLogoUrl:i[3],interactiveContainer:i[4],live:i[5],autoplay:i[6],canRewindLive:i[7],showAds:i[8],adsSlotId:i[9],adsParams:i[10],adsPreviewParam:i[11],duration:i[12],logoClickable:i[13],logoHidden:i[14],showNextPrevButtons:i[16],nextButtonActive:i[17],prevButtonActive:i[18],endScreenVideoTitle:i[19],endScreenVideoThumb:i[20],isOneVideoPlaylist:i[21],supportLink:i[22],outerContainerRef:i[23],fullScreenTarget:i[24],showMiniTimer:i[25],playerStarted:i[34],playNextVideo:i[26],playPrevVideo:i[27],repeatPlaylist:i[28],seekToInteractive:i[29],toggleGraph:i[30],playPrevChapter:i[31],firstStart:i[36],seekTime:i[32]};return i[33]!==void 0&&(r.videoContainer=i[33]),e=new cb({props:r}),Me.push(()=>Je(e,"videoContainer",o)),{c(){H(e.$$.fragment)},m(l,s){z(e,l,s),n=!0},p(l,s){const a={};s[0]&1&&(a.store=l[0]),s[0]&4&&(a.thumbUrl=l[2]),s[0]&8&&(a.videoLogoUrl=l[3]),s[0]&16&&(a.interactiveContainer=l[4]),s[0]&32&&(a.live=l[5]),s[0]&64&&(a.autoplay=l[6]),s[0]&128&&(a.canRewindLive=l[7]),s[0]&256&&(a.showAds=l[8]),s[0]&512&&(a.adsSlotId=l[9]),s[0]&1024&&(a.adsParams=l[10]),s[0]&2048&&(a.adsPreviewParam=l[11]),s[0]&4096&&(a.duration=l[12]),s[0]&8192&&(a.logoClickable=l[13]),s[0]&16384&&(a.logoHidden=l[14]),s[0]&65536&&(a.showNextPrevButtons=l[16]),s[0]&131072&&(a.nextButtonActive=l[17]),s[0]&262144&&(a.prevButtonActive=l[18]),s[0]&524288&&(a.endScreenVideoTitle=l[19]),s[0]&1048576&&(a.endScreenVideoThumb=l[20]),s[0]&2097152&&(a.isOneVideoPlaylist=l[21]),s[0]&4194304&&(a.supportLink=l[22]),s[0]&8388608&&(a.outerContainerRef=l[23]),s[0]&16777216&&(a.fullScreenTarget=l[24]),s[0]&33554432&&(a.showMiniTimer=l[25]),s[1]&8&&(a.playerStarted=l[34]),s[0]&67108864&&(a.playNextVideo=l[26]),s[0]&134217728&&(a.playPrevVideo=l[27]),s[0]&268435456&&(a.repeatPlaylist=l[28]),s[0]&536870912&&(a.seekToInteractive=l[29]),s[0]&1073741824&&(a.toggleGraph=l[30]),s[1]&1&&(a.playPrevChapter=l[31]),!t&&s[1]&4&&(t=!0,a.videoContainer=l[33],Qe(()=>t=!1)),e.$set(a)},i(l){n||(h(e.$$.fragment,l),n=!0)},o(l){p(e.$$.fragment,l),n=!1},d(l){F(e,l)}}}function hb(i){let e,t,n,o;const r=[mb,db],l=[];function s(a,c){return a[15]?0:1}return t=s(i),n=l[t]=r[t](i),{c(){e=w("div"),n.c(),u(e,"class","root v-xu043z")},m(a,c){C(a,e,c),l[t].m(e,null),o=!0},p(a,c){let f=t;t=s(a),t===f?l[t].p(a,c):(pe(),p(l[f],1,1,()=>{l[f]=null}),ve(),n=l[t],n?n.p(a,c):(n=l[t]=r[t](a),n.c()),h(n,1),n.m(e,null))},i(a){o||(h(n),o=!0)},o(a){p(n),o=!1},d(a){a&&y(e),l[t].d()}}}function pb(i,e,t){let{sources:n}=e,{store:o}=e,{uiConfig:r}=e,{title:l}=e,{thumbUrl:s}=e,{videoLogoUrl:a}=e,{interactiveContainer:c}=e,{subtitles:f}=e,{live:d}=e,{preload:g}=e,{autoplay:v}=e,{volume:b=void 0}=e,{muted:S=void 0}=e,{fromTime:_}=e,{canRewindLive:A}=e,{showAds:E}=e,{adsSlotId:V=void 0}=e,{adsParams:B=void 0}=e,{adsPreviewParam:le=void 0}=e,{duration:O=void 0}=e,{logoClickable:q}=e,{logoHidden:D}=e,{isMobile:me}=e,{showNextPrevButtons:ue=!1}=e,{nextButtonActive:Z=!1}=e,{prevButtonActive:fe=!1}=e,{endScreenVideoTitle:J=void 0}=e,{endScreenVideoThumb:T=void 0}=e,{isOneVideoPlaylist:I=!1}=e,{supportLink:se}=e,{outerContainerRef:G=void 0}=e,{fullScreenTarget:ye=void 0}=e,{failoverHosts:ae=void 0}=e,{showMiniTimer:Y=!1}=e,{playNextVideo:oe=ne.noop}=e,{playPrevVideo:Ne=ne.noop}=e,{repeatPlaylist:N=ne.noop}=e,{seekToInteractive:ce=ne.noop}=e,{toggleGraph:k=ne.noop}=e,{playPrevChapter:$=ne.noop}=e;Af(r);const Fe=$i(),Te=o.ui.debugPanelVisible,Ve=o.ui.playerSize;let Ae,be=null,Ee=!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}),Nf(o);const Pe=(te=!1)=>{t(34,Ee=!0),te?o.actions.external.firstStart(E):o.actions.internal.firstStart(E)};function X(te){var et;const nt=n||te;nt&&o.initVideo({container:Ae,sources:nt,failoverHosts:ae,subtitles:f});const st=ne.safeStorage.get(Hl)==="true";Te.set(st),_>0&&o.actions.external.seekTime(_);const Ke=me?Fe.volumeDefault:(et=b!=null?b:tu())!=null?et:Fe.volumeDefault,xe=S!=null?S:Hf();if(o.actions.external.setVolume(Ke),o.actions.external.setMuted(xe),o.getAdmanWrapper().setInitialVolume(xe?0:Ke),Fe.features.trafficSaving){const ot=jf();ot&&o.actions.internal.setTrafficSavingEnabled(ot)}const $e=Ff(o.videoId);$e&&o.actions.internal.setQuality($e),o.ui.isAutoplay.set(v),v?Pe():g&&Fe.features.preload&&o.actions.internal.preload()}const j=te=>{if(window.ResizeObserver){let nt,st;be=new ResizeObserver(ne.throttleFn(Ke=>{const xe=Ke[0];if(xe){if(xe.contentBoxSize){const $e=Array.isArray(xe.contentBoxSize)?xe.contentBoxSize[0]:xe.contentBoxSize;nt=$e.inlineSize,st=$e.blockSize}else xe.contentRect&&(nt=xe.contentRect.width,st=xe.contentRect.height);Ve.set({width:nt,height:st})}},G1)),be.observe(te)}Ve.set({width:te.clientWidth,height:te.clientHeight})};vn(()=>{if(j(Ae),(d==null?void 0:d.status)==="upcoming"||(d==null?void 0:d.status)==="waiting"){o.actions.internal.setWaitingLive(!0);return}if(((d==null?void 0:d.status)==="finished"||(d==null?void 0:d.status)==="postlive")&&!Object.keys(n||[]).length){o.actions.internal.setWaitingRecord(!0);return}return X(),()=>{be==null||be.disconnect(),o.destroy()}});function He(){Ee?o.actions.external.play():Pe(!0)}function We(){o.actions.external.pause()}function rt(te){me||o.actions.external.setMuted(te)}function Ue(te){me||te>=0&&te<=1&&o.actions.external.setVolume(te)}function gt(te){o.actions.internal.seekTime(te,Tt.SeekAction.UNKNOWN)}function pt(te){o.actions.external.seekEpisodeStartTime(te)}function Ot(te){o.actions.external.setPlaybackRate(te)}function mt(te){o.actions.external.setAutoQualityLimits(te)}function Re(te){Ae=te,t(33,Ae)}function Dt(te){Ae=te,t(33,Ae)}return i.$$set=te=>{"sources"in te&&t(37,n=te.sources),"store"in te&&t(0,o=te.store),"uiConfig"in te&&t(38,r=te.uiConfig),"title"in te&&t(1,l=te.title),"thumbUrl"in te&&t(2,s=te.thumbUrl),"videoLogoUrl"in te&&t(3,a=te.videoLogoUrl),"interactiveContainer"in te&&t(4,c=te.interactiveContainer),"subtitles"in te&&t(39,f=te.subtitles),"live"in te&&t(5,d=te.live),"preload"in te&&t(40,g=te.preload),"autoplay"in te&&t(6,v=te.autoplay),"volume"in te&&t(41,b=te.volume),"muted"in te&&t(42,S=te.muted),"fromTime"in te&&t(43,_=te.fromTime),"canRewindLive"in te&&t(7,A=te.canRewindLive),"showAds"in te&&t(8,E=te.showAds),"adsSlotId"in te&&t(9,V=te.adsSlotId),"adsParams"in te&&t(10,B=te.adsParams),"adsPreviewParam"in te&&t(11,le=te.adsPreviewParam),"duration"in te&&t(12,O=te.duration),"logoClickable"in te&&t(13,q=te.logoClickable),"logoHidden"in te&&t(14,D=te.logoHidden),"isMobile"in te&&t(15,me=te.isMobile),"showNextPrevButtons"in te&&t(16,ue=te.showNextPrevButtons),"nextButtonActive"in te&&t(17,Z=te.nextButtonActive),"prevButtonActive"in te&&t(18,fe=te.prevButtonActive),"endScreenVideoTitle"in te&&t(19,J=te.endScreenVideoTitle),"endScreenVideoThumb"in te&&t(20,T=te.endScreenVideoThumb),"isOneVideoPlaylist"in te&&t(21,I=te.isOneVideoPlaylist),"supportLink"in te&&t(22,se=te.supportLink),"outerContainerRef"in te&&t(23,G=te.outerContainerRef),"fullScreenTarget"in te&&t(24,ye=te.fullScreenTarget),"failoverHosts"in te&&t(44,ae=te.failoverHosts),"showMiniTimer"in te&&t(25,Y=te.showMiniTimer),"playNextVideo"in te&&t(26,oe=te.playNextVideo),"playPrevVideo"in te&&t(27,Ne=te.playPrevVideo),"repeatPlaylist"in te&&t(28,N=te.repeatPlaylist),"seekToInteractive"in te&&t(29,ce=te.seekToInteractive),"toggleGraph"in te&&t(30,k=te.toggleGraph),"playPrevChapter"in te&&t(31,$=te.playPrevChapter)},i.$$.update=()=>{i.$$.dirty[0]&32769&&o.ui.isMobile.set(me)},[o,l,s,a,c,d,v,A,E,V,B,le,O,q,D,me,ue,Z,fe,J,T,I,se,G,ye,Y,oe,Ne,N,ce,k,$,gt,Ae,Ee,Fe,Pe,n,r,f,g,b,S,_,ae,X,He,We,rt,Ue,pt,Ot,mt,Re,Dt]}class vb extends we{constructor(e){super(),ke(this,e,pb,hb,_e,{sources:37,store:0,uiConfig:38,title:1,thumbUrl:2,videoLogoUrl:3,interactiveContainer:4,subtitles:39,live:5,preload:40,autoplay:6,volume:41,muted:42,fromTime:43,canRewindLive:7,showAds:8,adsSlotId:9,adsParams:10,adsPreviewParam:11,duration:12,logoClickable:13,logoHidden:14,isMobile:15,showNextPrevButtons:16,nextButtonActive:17,prevButtonActive:18,endScreenVideoTitle:19,endScreenVideoThumb:20,isOneVideoPlaylist:21,supportLink:22,outerContainerRef:23,fullScreenTarget:24,failoverHosts:44,showMiniTimer:25,playNextVideo:26,playPrevVideo:27,repeatPlaylist:28,seekToInteractive:29,toggleGraph:30,playPrevChapter:31,initVideo:45,play:46,pause:47,setMuted:48,setVolume:49,seekTime:32,seekEpisodeStartTime:50,setPlaybackRate:51,setAutoQualityLimits:52},fb,[-1,-1])}get initVideo(){return this.$$.ctx[45]}get play(){return this.$$.ctx[46]}get pause(){return this.$$.ctx[47]}get setMuted(){return this.$$.ctx[48]}get setVolume(){return this.$$.ctx[49]}get seekTime(){return this.$$.ctx[32]}get seekEpisodeStartTime(){return this.$$.ctx[50]}get setPlaybackRate(){return this.$$.ctx[51]}get setAutoQualityLimits(){return this.$$.ctx[52]}}function gb(i){let e,t;return{c(){e=M("svg"),t=M("path"),u(t,"fill",i[0]),u(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 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){C(n,e,o),m(e,t)},p(n,[o]){o&1&&u(t,"fill",n[0])},i:U,o:U,d(n){n&&y(e)}}}function bb(i,e,t){let{isWhite:n=!1}=e,o;return i.$$set=r=>{"isWhite"in r&&t(1,n=r.isWhite)},i.$$.update=()=>{i.$$.dirty&2&&t(0,o=n?"#fff":"#909499")},[o,n]}class _b extends we{constructor(e){super(),ke(this,e,bb,gb,_e,{isWhite:1})}}function kb(i){qe(i,"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 R1(i){let e,t;return{c(){e=w("div"),t=je(i[0]),u(e,"class","title v-1y9fytq")},m(n,o){C(n,e,o),m(e,t)},p(n,o){o&1&&it(t,n[0])},d(n){n&&y(e)}}}function O1(i){let e,t;return e=new _b({props:{isWhite:!!i[1]}}),{c(){H(e.$$.fragment)},m(n,o){z(e,n,o),t=!0},p(n,o){const r={};o&2&&(r.isWhite=!!n[1]),e.$set(r)},i(n){t||(h(e.$$.fragment,n),t=!0)},o(n){p(e.$$.fragment,n),t=!1},d(n){F(e,n)}}}function wb(i){let e,t,n,o,r=i[0]&&R1(i),l=(!i[0]||!i[1])&&O1(i);return{c(){e=w("div"),r&&r.c(),t=R(),l&&l.c(),u(e,"class","playerStub v-1y9fytq"),u(e,"style",n=i[1]?`background-image: url('${i[1]}')`:"")},m(s,a){C(s,e,a),r&&r.m(e,null),m(e,t),l&&l.m(e,null),o=!0},p(s,[a]){s[0]?r?r.p(s,a):(r=R1(s),r.c(),r.m(e,t)):r&&(r.d(1),r=null),!s[0]||!s[1]?l?(l.p(s,a),a&3&&h(l,1)):(l=O1(s),l.c(),h(l,1),l.m(e,null)):l&&(pe(),p(l,1,1,()=>{l=null}),ve()),(!o||a&2&&n!==(n=s[1]?`background-image: url('${s[1]}')`:""))&&u(e,"style",n)},i(s){o||(h(l),o=!0)},o(s){p(l),o=!1},d(s){s&&y(e),r&&r.d(),l&&l.d()}}}function yb(i,e,t){let{title:n}=e,{thumbUrl:o}=e;return i.$$set=r=>{"title"in r&&t(0,n=r.title),"thumbUrl"in r&&t(1,o=r.thumbUrl)},[n,o]}class Cb extends we{constructor(e){super(),ke(this,e,yb,wb,_e,{title:0,thumbUrl:1},kb)}}class Pb{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(){const 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(const[t,n]of e)try{navigator.mediaSession.setActionHandler(t,n)}catch(o){throw new Error(`The media session action "${t}" is not supported yet.`)}}}function Sb(i){let e,t,n,o;return{c(){e=M("svg"),t=M("g"),n=M("path"),o=M("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(t,"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(r,l){C(r,e,l),m(e,t),m(t,n),m(t,o)},p:U,i:U,o:U,d(r){r&&y(e)}}}class Tb extends we{constructor(e){super(),ke(this,e,null,Sb,_e,{})}}function Eb(i){qe(i,"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 Ab(i){let e,t,n,o,r,l,s;return n=new Tb({}),{c(){e=w("div"),t=w("div"),H(n.$$.fragment),o=R(),r=w("span"),l=je(i[0]),u(t,"class","dummy-image v-1pbsod4"),L(t,"desktop",!i[1]),u(r,"class","title v-1pbsod4"),u(e,"class","player-pip-dummy v-1pbsod4"),L(e,"is-pip-api",i[2])},m(a,c){C(a,e,c),m(e,t),z(n,t,null),m(e,o),m(e,r),m(r,l),s=!0},p(a,[c]){(!s||c&2)&&L(t,"desktop",!a[1]),(!s||c&1)&&it(l,a[0])},i(a){s||(h(n.$$.fragment,a),s=!0)},o(a){p(n.$$.fragment,a),s=!1},d(a){a&&y(e),F(n)}}}function Ib(i,e,t){let n,o;const r=Nt(),l=!!r.webApi.pictureInPictureApi,s=r.interfaceLanguage$;W(i,s,f=>t(5,n=f));const a=r.ui.isMobile;W(i,a,f=>t(1,o=f));let c;return i.$$.update=()=>{i.$$.dirty&32&&t(0,c=n&&re("pip_dummy_title"))},[c,o,l,s,a,n]}class Lb extends we{constructor(e){super(),ke(this,e,Ib,Ab,_e,{},Eb)}}const Vb=460,Mb=280;class Oc{constructor(){this.info={isActive$:new ne.ValueSubject(!1),type:An.DocumentPictureInPicture}}isSupported(){const e=ne.getCurrentBrowser().browser===ne.CurrentClientBrowser.Yandex,{isEmbed:t}=ne.detectEmbed();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}request(){var e,t;return ji(this,void 0,void 0,function*(){if(!this.isSupported()||!this.playerDomElement||!this.playerParentShadowRoot)return;this.pipWindow=yield documentPictureInPicture.requestWindow({width:Vb,height:Mb,copyStyleSheets:!0}),this.pipWindow.document.body.style.margin="0";const n=[...this.playerParentShadowRoot.styleSheets].map(s=>[...s.cssRules].map(a=>a.cssText).join(" ")).filter(Boolean).join(`
|
|
51
|
+
`),o=document.createElement("style");o.textContent=n;const r=this.createStretchedContainer(),l=r.attachShadow({mode:"open"});l.append(o),l.append(this.playerDomElement),this.playerDummyElement=new Lb({target:this.playerParentShadowRoot,context:this.svelteContext}),(e=this.pipWindow)===null||e===void 0||e.document.body.append(r),this.info.isActive$.next(!0),(t=this.pipWindow)===null||t===void 0||t.addEventListener("unload",s=>{!this.playerDomElement||!this.playerParentShadowRoot||!this.playerDummyElement||(this.playerDummyElement.$destroy(),this.playerParentShadowRoot.append(this.playerDomElement),this.info.isActive$.next(!1))})})}remove(){return ji(this,void 0,void 0,function*(){return new Promise(e=>{var t;(t=documentPictureInPicture.window)===null||t===void 0||t.close(),e()})})}dispose(){return ji(this,void 0,void 0,function*(){yield this.remove()})}createStretchedContainer(){const e=document.createElement("div");return e.style.width="100%",e.style.height="100%",e}}function Bb(i){return i instanceof Oc}class Nb{static getLatestSupportedVersion(){const e=new er,t=new Oc;if(t.isSupported())return t;if(e.isSupported())return e}}function D1(i,e){var t,n;const o=new Set([...Object.keys(i),...Object.keys(e)]),r={};for(const l of o)r[l]=(n=(t=e[l])!==null&&t!==void 0?t:i[l])!==null&&n!==void 0?n:void 0;return r}const Rb="Inner error. Unexpectedly root annotation container null reference exception",Ob="Annotation with such name already exists",Db="Annotation with such name does not exist";class Dl extends Error{constructor(e){super(e),this.name="AnnotationError"}}const zb="1",Fb=100;class Hb{constructor(e){this.annotations=new Map,this.subscriptions=new ne.Subscription,this.rootAnnotationsContainer=e;const t=ne.throttleFn(()=>{for(const n of this.annotations.values())this.isElementExceedsBoundaries(n,this.playerSize.width,this.playerSize.height)?n.style.visibility="hidden":n.style.visibility="visible"},Fb);this.subscriptions.add(ne.observeElementSize(this.rootAnnotationsContainer).subscribe(({width:n,height:o})=>{this.playerSize={width:n,height:o},t()})),this.mutationObserver=new MutationObserver(t),this.mutationObserver.observe(this.rootAnnotationsContainer,{attributes:!0,childList:!0,subtree:!0,characterData:!0})}add(e,t){var n;if(!this.rootAnnotationsContainer)throw new Dl(Rb);if(this.annotations.has(e))throw new Dl(Ob);t.style.zIndex=(n=t.style.zIndex)!==null&&n!==void 0?n:zb,t.style.position="absolute",this.rootAnnotationsContainer.append(t),this.annotations.set(e,t)}get(e){const t=this.annotations.get(e);if(!t)throw new Dl(Db);return t}remove(e){const t=this.get(e);this.annotations.delete(e)&&t.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,t,n){const o=e.offsetTop,r=e.offsetLeft,l=e.offsetWidth,s=e.offsetHeight;return o<0||r<0||r+l>t||o+s>n}registryRootContainer(e){}addLayer(e){return new HTMLElement}getLayer(e){}removeLayer(e){}clearLayer(e){}detach(){}reattach(){}}const Ub={preload:!0,autoplay:!1,repeat:!1,fromTime:0,canRewindLive:!0,showAds:!1,interfaceLanguage:ne.InterfaceLanguage.RU,logoClickable:!1,logoHidden:!1,isMobile:ne.isMobile(),isMediaSessionEnabled:!0,isPictureInPictureEnabled:!0,isAudioDisabled:!1,callbacks:{uiInfo:{}},tuningConfig:{configName:[]}};class jb extends HTMLElement{constructor(){var e;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.prevVsid=void 0,this.isInited=!1,this.logger=new ne.Logger,this.log=this.logger.createComponentLog("VKVideoPlayer"),this.subscription=new ne.Subscription,this.graphMadePause=!1,!((e=window==null?void 0:window.videoPlayerConfig)===null||e===void 0)&&e.debugLogs&&this.subscription.add(this.logger.log$.subscribe(t=>{console.log("%c player web component ","background:#77dd77;",`${t.component}`,t.message)}))}connectedCallback(){var e,t;if(this.isInited)return;this.initPlayerRootContainers();const n=(e=this.getAttribute("stub-title"))!==null&&e!==void 0?e:void 0,o=(t=this.getAttribute("stub-thumb-url"))!==null&&t!==void 0?t:void 0;this.svelteStubComponent=new Cb({target:this.playerContainer,props:{title:n,thumbUrl:o}})}disconnectedCallback(){var e,t,n,o,r;(e=this.annotationsApi)===null||e===void 0||e.destroy(),(t=this.svelteRootComponent)===null||t===void 0||t.$destroy(),(n=this.svelteStubComponent)===null||n===void 0||n.$destroy(),this.subscription.unsubscribe(),(o=this.unsubscribePlayerPhaseSubscription)===null||o===void 0||o.call(this),(r=this.interactiveController)===null||r===void 0||r.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){var t;const n=(t=this.store)===null||t===void 0?void 0:t.ui.controls.disabledControls$;return(n==null?void 0:n.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,t={},n){var o,r,l,s,a,c,f,d,g,v,b;if(!this.videoConfig)return;const{albumId:S,statPlace:_,statUserSalt:A,statAuthToken:E,statTrackCode:V,refreshStatAuthToken:B,preload:le,autoplay:O,volume:q,muted:D,fromTime:me,canRewindLive:ue,supportLink:Z,showAds:fe,adsSlotId:J,adsParams:T={},adsPreviewParam:I,interfaceLanguage:se,logoClickable:G,logoHidden:ye,isMobile:ae,isAudioDisabled:Y,isLiveCatchUpMode:oe,fullScreenTarget:Ne,failoverHosts:N,canDownload:ce,callbacks:k,interactiveData:$,showThumbTimer:Fe,additionalButtons:Te=[],repeat:Ve}=D1(this.videoConfig,t),{sources:Ae,title:be,thumbUrl:Ee,videoLogoUrl:Pe,unitedVideoId:X,isClip:j=!1,duration:He,adsParams:We={},videoEpisodes:rt,previewThumbsData:Ue,subtitles:gt,live:pt}=e,Ot=Object.assign(Object.assign({},T),We),mt=this.getNextVideoInfo(),Re={sources:Ae,title:be,thumbUrl:Ee,subtitles:gt,unitedVideoId:X,isClip:j,live:pt,albumId:S,statPlace:_,autoplay:O,muted:D,volume:q,fromTime:me,canRewindLive:ue,showAds:fe,adsSlotId:J,adsParams:Ot,adsPreviewParam:I,duration:He,logoClickable:G,logoHidden:ye,isMobile:ae,repeat:Ve,showNextPrevButtons:this.needToShowNextPrevButtons(),nextButtonActive:this.isNextButtonActive(),prevButtonActive:this.isPrevButtonActive(),endScreenVideoTitle:mt.nextVideoTitle,endScreenVideoThumb:mt.nextVideoThumb,isOneVideoPlaylist:this.isOneVideoPlaylist()},Dt={pictureInPictureApi:this.pictureInPictureApi,annotationsApi:this.annotationsApi};this.log({message:`create player, props: ${JSON.stringify(Re)}`});const te=this.uiConfig.features.statistics&&!!X,{pid:nt}=((r=(o=this.videoConfig)===null||o===void 0?void 0:o.interactiveData)===null||r===void 0?void 0:r.projectInfo)||{};te&&new Co(Object.assign({movieId:X,albumId:S,place:_,trackCode:V,autoplay:(l=O&&!this.interactiveController)!==null&&l!==void 0?l:!1,mobile:ae,clip:j},nt&&!this.isInited&&{projectId:Number(nt)}),Object.assign({refreshAuthToken:B,userSalt:A,config:this.statistics.config},this.interactiveController&&this.isInited&&{vsid:this.prevVsid})),this.uiConfig.features.sentry&&this.uiConfig.sentry.dsn&&new Wl(this.uiConfig.sentry,{version:nl,env:Bf},{movieId:X,albumId:S,place:_,autoplay:(s=O&&!this.interactiveController)!==null&&s!==void 0?s:!1,mobile:ae,clip:j}),this.interactiveController&&!this.isInited&&(this.prevVsid=(a=Co.getInstance())===null||a===void 0?void 0:a.oneStat.vsid$.getValue()),this.statistics=Object.assign(Object.assign({},this.statistics),Co.getInstance()),this.sentry=Object.assign(Object.assign({},this.sentry),Wl.getInstance());const Ke=!!$,xe=(c=this.interactiveController)===null||c===void 0?void 0:c.getInteractiveRanges(),$e=[];let et="tooltip_interactive_go_back_disabled_first";if(Ke&&this.interactiveController){const at=this.interactiveController.state,Ye=this.interactiveController.getHistoryState();at.isInitialChapter$.getValue()&&$e.push(_t.REPLAY_BUTTON),this.interactiveController.getIsSeekable().getValue()||$e.push(_t.SEEK_TO_INTERACTIVE_BUTTON),Ye.hasPrevChapter$.getValue()||(at.isInitialChapter$.getValue()||(at.lastChapterChangeWasInitiatedByInteractive$.getValue()?et="tooltip_interactive_go_back_disabled":et="tooltip_interactive_go_back_disabled_limit"),$e.push(_t.PLAY_PREV_CHAPTER_BUTTON))}const ot=()=>{var at;const Ye=(n==null?void 0:n.info.isEnded$.getValue())&&((at=this.interactiveController)===null||at===void 0?void 0:at.state.isEndChapter$.getValue());k.onReplayInteractiveVideo&&!Ye?k.onReplayInteractiveVideo():this.replayInteractiveVideo()},Vt=at=>{k.onDisabledPlayPrevChapterClick&&k.onDisabledPlayPrevChapterClick(at)},lt=at=>{k.onDisabledSeekToInteractiveClick&&k.onDisabledSeekToInteractiveClick(at)};this.store=Zv({player:n,interfaceLanguage:se,videoId:X,isClip:j,isLiveCatchUpMode:oe,isAudioDisabled:Y,statAuthToken:E,callbacks:k,webApi:Dt,videoEpisodes:rt,previewThumbsData:Ue,canDownload:ce,uiConfig:this.uiConfig,coreConfig:this.coreConfig,disabledControls:$e,isInteractive:Ke,interactiveRanges:xe,replayInteractive:ot,playPrevChapterDisabledTooltip:et,onDisabledPlayPrevChapterClick:Vt,onDisabledSeekToInteractiveClick:lt,hasInteractiveBranches:!!(!((d=(f=this.interactiveController)===null||f===void 0?void 0:f.getChapterBranches())===null||d===void 0)&&d.length),additionalButtons:this.uiConfig.features.additionalButtons?Te:[],looped:Ve&&this.videoConfig.videos.length===1}),this.subscription.add(this.store.state.currentFormat$.subscribe(at=>{var Ye;return(Ye=k==null?void 0:k.onCurrentFormatChanged)===null||Ye===void 0?void 0:Ye.call(k,at)})),this.subscription.add(this.store.state.throughputEstimation$.subscribe(at=>{var Ye;return(Ye=k==null?void 0:k.onThroughputEstimationChanged)===null||Ye===void 0?void 0:Ye.call(k,at)})),this.subscription.add(this.store.state.videoBitrate$.subscribe(at=>{var Ye;return(Ye=k==null?void 0:k.onVideoBitrateChanged)===null||Ye===void 0?void 0:Ye.call(k,at)})),this.subscription.add(this.store.state.isInteractiveTime$.subscribe(at=>{var Ye;const Xe=(Ye=this.store)===null||Ye===void 0?void 0:Ye.ui.controls.disabledControls$;Xe&&at&&!Xe.includes(Ul)&&Xe.add(Ul)})),this.videoConfig.isMobile&&this.interactiveController&&this.subscription.add(this.store.ui.controlsVisible.subscribe(at=>{var Ye;(Ye=this.interactiveController)===null||Ye===void 0||Ye.setDisabledControls(at)})),this.initMediaSession(),this.interactiveController&&te&&this.initInteractivesStatistics(),this.svelteRootComponent=new vb({target:this.playerContainer,props:{interactiveContainer:this.interactiveContainer,sources:Ae,store:this.store,uiConfig:this.uiConfig,title:be,thumbUrl:Ee,videoLogoUrl:Pe,subtitles:gt,live:pt,preload:le,autoplay:O,muted:D,volume:q,fromTime:me,canRewindLive:ue,supportLink:Z,showAds:fe,adsSlotId:J,adsParams:Ot,adsPreviewParam:I,duration:He,logoClickable:G,logoHidden:ye,isMobile:ae,failoverHosts:N,fullScreenTarget:Ne,showMiniTimer:Fe,outerContainerRef:this.rootContainer,showNextPrevButtons:this.needToShowNextPrevButtons(),nextButtonActive:this.isNextButtonActive(),prevButtonActive:this.isPrevButtonActive(),endScreenVideoTitle:mt.nextVideoTitle,endScreenVideoThumb:mt.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,(b=(v=(g=this.videoConfig)===null||g===void 0?void 0:g.callbacks)===null||v===void 0?void 0:v.onInited)===null||b===void 0||b.call(v))}addPlayerInfoSubscriptions(){var e;const t=this.store;if(!t)return;const n=(e=this.videoConfig)===null||e===void 0?void 0:e.callbacks;n&&this.subscription.add(t.playerPhase.subscribe(r=>{var l;return(l=n.onPlayerPhaseChanged)===null||l===void 0?void 0:l.call(n,r)})).add(t.state.playbackState$.subscribe(r=>{var l;return(l=n.onPlaybackStateChanged)===null||l===void 0?void 0:l.call(n,r)})).add(t.state.isLive$.subscribe(r=>{var l;return(l=n.onIsLiveChanged)===null||l===void 0?void 0:l.call(n,r)})).add(t.state.isActiveLive$.subscribe(r=>{var l;return(l=n.onIsActiveLiveChanged)===null||l===void 0?void 0:l.call(n,r)})).add(t.state.isAudioAvailable$.subscribe(r=>{var l;return(l=n.onIsAudioAvailableChanged)===null||l===void 0?void 0:l.call(n,r)})).add(t.state.currentQuality$.subscribe(r=>{var l;return(l=n.onCurrentQualityChanged)===null||l===void 0?void 0:l.call(n,r)})).add(t.state.availableQualities$.subscribe(r=>{var l;return(l=n.onAvailableQualitiesChanged)===null||l===void 0?void 0:l.call(n,r.map(({value:s})=>s).filter(s=>s!==so.AUTO))})).add(t.ui.isPictureInPictureActive$.subscribe(r=>{var l,s;return r?(l=n.onPiPEnter)===null||l===void 0?void 0:l.call(n):(s=n.onPiPExit)===null||s===void 0?void 0:s.call(n)}));const o=n==null?void 0:n.uiInfo;o&&this.subscription.add(t.ui.controlsVisible.subscribe(r=>{var l;return(l=o.onControlsVisibleChanged)===null||l===void 0?void 0:l.call(o,r)})).add(t.ui.isMobile.subscribe(r=>{var l;return(l=o.onIsMobileChanged)===null||l===void 0?void 0:l.call(o,r)})).add(t.ui.playerSize.subscribe(r=>{var l;return(l=o.onPlayerSizeChanged)===null||l===void 0?void 0:l.call(o,r)})).add(t.ui.controls.prevButton.subscribe(r=>{var l;return(l=o.onPrevButtonChanged)===null||l===void 0?void 0:l.call(o,r)})).add(t.ui.controls.playButton.subscribe(r=>{var l;return(l=o.onPlayButtonChanged)===null||l===void 0?void 0:l.call(o,r)})).add(t.ui.controls.replayButton.subscribe(r=>{var l;return(l=o.onReplayButtonChanged)===null||l===void 0?void 0:l.call(o,r)})).add(t.ui.controls.nextButton.subscribe(r=>{var l;return(l=o.onNextButtonChanged)===null||l===void 0?void 0:l.call(o,r)})).add(t.ui.controls.playPrevChapterButton.subscribe(r=>{var l;return(l=o.onPlayPrevChapterChanged)===null||l===void 0?void 0:l.call(o,r)})).add(t.ui.controls.seekToInteractiveButton.subscribe(r=>{var l;return(l=o.onSeekToInteractiveButtonChanged)===null||l===void 0?void 0:l.call(o,r)})).add(t.ui.controls.interactiveGraphButton.subscribe(r=>{var l;return(l=o.onGraphButtonChanged)===null||l===void 0?void 0:l.call(o,r)})).add(t.ui.controls.liveButton.subscribe(r=>{var l;return(l=o.onLiveButtonChanged)===null||l===void 0?void 0:l.call(o,r)})).add(t.ui.controls.time.subscribe(r=>{var l;return(l=o.onTimeUpdateChanged)===null||l===void 0?void 0:l.call(o,r)})).add(t.ui.controls.episodes.subscribe(r=>{var l;return(l=o.onEpisodesChanged)===null||l===void 0?void 0:l.call(o,r)})).add(t.ui.controls.volume.subscribe(r=>{var l;return(l=o.onVolumeChanged)===null||l===void 0?void 0:l.call(o,r)})).add(t.ui.controls.subtitles.subscribe(r=>{var l;return(l=o.onSubtitlesChanged)===null||l===void 0?void 0:l.call(o,r)})).add(t.ui.controls.settings.subscribe(r=>{var l;return(l=o.onSettingsChanged)===null||l===void 0?void 0:l.call(o,r)})).add(t.ui.controls.fullscreen.subscribe(r=>{var l;return(l=o.onFullscreenChanged)===null||l===void 0?void 0:l.call(o,r)})).add(t.ui.controls.chromecast.subscribe(r=>{var l;return(l=o.onChromecastChanged)===null||l===void 0?void 0:l.call(o,r)})).add(t.ui.controls.pip.subscribe(r=>{var l;return(l=o.onPipChanged)===null||l===void 0?void 0:l.call(o,r)})).add(t.ui.controls.vkLogo.subscribe(r=>{var l;return(l=o.onVkLogoChanged)===null||l===void 0?void 0:l.call(o,r)}))}playNextVideo(){var e;if(!this.videoConfig)return;let t=!0;if(!((e=this.videoConfig.callbacks)===null||e===void 0)&&e.onNextVideoClick)try{t=this.videoConfig.callbacks.onNextVideoClick()}catch(n){this.log({message:"onNextVideoClick callback failed to execute"})}t&&(this.currentPlayingVideoIndex++,this.currentPlayingVideoIndex>=this.videoConfig.videos.length&&(this.currentPlayingVideoIndex=0),this.log({message:`play next video, index: ${this.currentPlayingVideoIndex}`}),this.createPlayerWithCurrentVideo())}playPrevVideo(){var e;if(!this.videoConfig)return;let t=!0;if(!((e=this.videoConfig.callbacks)===null||e===void 0)&&e.onPrevVideoClick)try{t=this.videoConfig.callbacks.onPrevVideoClick()}catch(n){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(e,t=!0){var n;if(!this.videoConfig)return;const o=this.videoConfig.videos[this.currentPlayingVideoIndex];if(!o){this.log({message:"no next video"});return}this.isInited&&ne.isNonNullable(o.unitedVideoId)&&this.store.actions.internal.nextMovie(o.unitedVideoId),(n=this.svelteRootComponent)===null||n===void 0||n.$destroy(),this.createPlayer(o,{autoplay:t,fromTime:0},e)}playPrevChapter(){var e;(e=this.interactiveController)===null||e===void 0||e.playPrevChapter()}seekToInteractive(){var e;const t=(e=this.interactiveController)===null||e===void 0?void 0:e.getNextInteractiveStartTime();typeof t=="number"&&this.seekTime(t/1e3)}toggleGraph(){var e,t;if(!this.isInited)return;const n=this.store,{isEnded$:o,playbackState$:r,graphIsOpened$:l}=n.state,{disabledControls$:s}=n.ui.controls,a=ut(o),c=ut(r);ut(l)?(l.set(!1),(e=this.interactiveController)===null||e===void 0||e.toggleGraphView(!1),s.remove(gr),!a&&this.graphMadePause&&this.play()):(this.graphMadePause=c==="playing",l.set(!0),(t=this.interactiveController)===null||t===void 0||t.toggleGraphView(!0),s.add(gr),!a&&this.graphMadePause&&this.pause())}initInteractives(){var e,t,n,o;return ji(this,void 0,void 0,function*(){if(!((e=this.videoConfig)===null||e===void 0)&&e.interactiveData)try{const{Interactives:r,EVENT_NAMES:l,CustomError:s}=yield import("@vkontakte/videoplayer-interactive/es2015.cjs.js");this.interactiveContainer=document.createElement("div"),this.interactiveContainer.classList.add("interactiveContainer");const a=(t=this.store)===null||t===void 0?void 0:t.interfaceLanguage$,c=a?ut(a):this.videoConfig.interfaceLanguage,{projectInfo:f,historyApi:d,videoLoader:g}=this.videoConfig.interactiveData;this.interactiveController=new r({parentElement:this.interactiveContainer,fullscreenTargetElement:this.playerContainer,lang:c,graph:this.uiConfig.features.interactiveGraph,projectInfo:f,historyApi:d,vkVideoLoader:g,lastFrame:this.uiConfig.features.interactiveLastFrame,permanentTextControls:this.uiConfig.features.interactiveTextPermanent,initSeamless:!0,disableControlsOnPause:!this.videoConfig.isMobile}),yield this.interactiveController.setManifest(this.videoConfig.interactiveData.manifest),this.uiConfig.features.seekToInteractive&&this.subscription.add(this.interactiveController.getIsSeekable().subscribe(b=>{if(!this.isInited)return;const S=this.store;b?S.ui.controls.disabledControls$.remove(_t.SEEK_TO_INTERACTIVE_BUTTON):S.ui.controls.disabledControls$.add(_t.SEEK_TO_INTERACTIVE_BUTTON)}));let v=!0;if(this.interactiveController.on(l.playerChanged,b=>{if(!this.videoConfig)return;this.videoConfig.videos[this.currentPlayingVideoIndex]=Object.assign(Object.assign({},b.config),{title:f.title});const S=v?this.videoConfig.autoplay:!0;this.createPlayerWithCurrentVideo(b.player,S),v&&(v=!1)}),this.interactiveController.on(l.interactives,({type:b,subjectId:S,actionType:_})=>{var A,E,V,B;if(this.store&&(b==="container-removed"&&this.store.actions.internal.completeInteractiveRange(S),b==="range-ended"&&(ut(this.store.state.isInteractiveExpectation$)||this.store.ui.controls.disabledControls$.remove(yo)),b==="action-execution"&&_==="expect"&&(this.store.ui.controls.disabledControls$.add(yo),this.store.state.isInteractiveExpectation$.set(!0)),b==="action-choice"&&_==="setRandomBranch"&&(this.store.state.graphIsOpened$.set(!1),this.store.ui.controls.disabledControls$.remove(yo)),b==="action-execution"&&_==="after-expect"&&(this.store.ui.controls.disabledControls$.remove(yo),this.store.state.isInteractiveExpectation$.set(!1)),b==="action-choice-canceled")){const le=ut(this.store.state.isPlaying$)||ut(this.store.state.isInteractiveExpectation$);if(!((A=this.videoConfig)===null||A===void 0)&&A.isMobile&&le){this.store.ui.interactiveHideMobileControls.set(!0);return}(B=(E=this.videoConfig)===null||E===void 0?void 0:(V=E.callbacks).onDisabledInteractiveClick)===null||B===void 0||B.call(V)}}),!((o=(n=this.videoConfig)===null||n===void 0?void 0:n.callbacks)===null||o===void 0)&&o.onInteractiveHistoryChanged){const b=this.interactiveController.getHistoryState();this.subscription.add(b.history$.subscribe(S=>{var _,A,E;S.length&&((E=(A=(_=this.videoConfig)===null||_===void 0?void 0:_.callbacks)===null||A===void 0?void 0:A.onInteractiveHistoryChanged)===null||E===void 0||E.call(A,S))}))}this.interactiveController.on(l.errors,b=>{this.log({message:b.toString()})})}catch(r){this.log({message:r.message})}})}initInteractivesStatistics(){var e,t;return ji(this,void 0,void 0,function*(){const{statSubscription:n,oneStat:o}=this.statistics;if(!(!n||!o||!this.interactiveController))try{const{INTERACTIVE_CLICK_ACTIONS:r}=yield import("@vkontakte/videoplayer-interactive/es2015.cjs.js"),l={[r.GO_NEXT_BUTTON]:Tt.InteractiveInterfaceClick.NEXT_BUTTON,[r.GO_NEXT_AREA]:Tt.InteractiveInterfaceClick.NEXT_AREA,[r.WATCH_AGAIN]:Tt.InteractiveInterfaceClick.WATCH_AGAIN,[r.OPEN_GRAPH]:Tt.InteractiveInterfaceClick.GRAPH_SHOW,[r.CLOSE_GRAPH]:Tt.InteractiveInterfaceClick.GRAPH_HIDE},{click$:s,nextMovie$:a}=this.interactiveController.getStatEvents(),c=new ne.Subject;s.subscribe(f=>{var d,g;f in l?c.next(l[f]):(o==null||o.logError({errorType:"InteractiveVideosAction",fatal:!1}),(g=(d=this.sentry).report)===null||g===void 0||g.call(d,new Error("InteractiveVideosAction"),{errorType:"InteractiveVideosAction",fatal:!1}))}),n.add(o.attachToInteractive({click$:c,nextMovie$:a}))}catch(r){o==null||o.logError({errorType:"InteractiveVideos",fatal:!1}),(t=(e=this.sentry).report)===null||t===void 0||t.call(e,r,{errorType:"InteractiveVideosAction",fatal:!1})}})}initPlayer(e,t={}){var n,o,r,l,s,a,c,f,d,g,v,b,S,_,A,E,V,B,le;if(!Array.isArray(e.videos)||e.videos.length===0&&!e.interactiveData)throw new Error("empty videos");this.videoConfig=D1(Ub,ne.cloneDeepWith(e,O=>O instanceof HTMLElement?O:void 0)),this.uiConfig=Ef((n=t.ui)!==null&&n!==void 0?n:{}),this.coreConfig=(o=t.core)!==null&&o!==void 0?o:{configName:[]},this.statistics={config:(r=t.statistics)!==null&&r!==void 0?r:{}},this.sentry={config:(l=this.uiConfig.sentry)!==null&&l!==void 0?l:{}},ne.isNonNullable(this.videoConfig.isMediaSessionEnabled)&&(this.uiConfig.features.mediaSession=(s=this.videoConfig.isMediaSessionEnabled)!==null&&s!==void 0?s:!0),ne.isNonNullable(this.videoConfig.isPictureInPictureEnabled)&&(this.uiConfig.features.pip=(c=(a=this.uiConfig.features.pip)!==null&&a!==void 0?a:this.videoConfig.isPictureInPictureEnabled)!==null&&c!==void 0?c:!0,this.uiConfig.features.dpip=(d=(f=this.uiConfig.features.dpip)!==null&&f!==void 0?f:this.videoConfig.isPictureInPictureEnabled)!==null&&d!==void 0?d:!0),this.videoConfig.isMobile=(g=this.uiConfig.isMobile)!==null&&g!==void 0?g:this.videoConfig.isMobile,(B=this.videoConfig).autoplay&&(B.autoplay=this.uiConfig.features.autoplay),this.videoConfig.showAds=(v=this.uiConfig.ads.enable)!==null&&v!==void 0?v:this.videoConfig.showAds,this.videoConfig.adsSlotId=(b=this.uiConfig.ads.slot)!==null&&b!==void 0?b:this.videoConfig.adsSlotId,this.videoConfig.adsPreviewParam=(S=this.uiConfig.ads.preview)!==null&&S!==void 0?S:this.videoConfig.adsPreviewParam,this.videoConfig.logoHidden=!((_=this.uiConfig.showLogo)!==null&&_!==void 0?_:!this.videoConfig.logoHidden),(le=this.videoConfig).canRewindLive&&(le.canRewindLive=this.uiConfig.features.liveRewind),this.videoConfig.supportLink=(A=this.videoConfig.supportLink)!==null&&A!==void 0?A:this.uiConfig.supportLink,this.currentPlayingVideoIndex=0,this.needToRepeatPlaylist=this.videoConfig.repeat,this.uiConfig.features.pip&&(this.uiConfig.features.dpip?this.pictureInPictureApi=Nb.getLatestSupportedVersion():this.pictureInPictureApi=new er),this.mediaSessionApi=this.uiConfig.features.mediaSession?new Pb:void 0,this.annotationsApi=this.uiConfig.features.annotations?new Hb(this.rootContainer):void 0,(E=this.svelteStubComponent)===null||E===void 0||E.$destroy(),(V=this.svelteRootComponent)===null||V===void 0||V.$destroy(),this.isInited=!1,this.prevVsid=void 0,this.interactiveController&&(this.interactiveController.destroy(),this.interactiveController=void 0),e.interactiveData?this.initInteractives():this.createPlayer(e.videos[0]),Bb(this.pictureInPictureApi)&&this.pictureInPictureApi.setPlayerDomElement(this.playerContainer,this._shadowRoot)}isOneVideoPlaylist(){return this.videoConfig?this.videoConfig.videos.length===1:!1}updateNextVideos(e){var t;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 n=this.getNextVideoInfo();(t=this.svelteRootComponent)===null||t===void 0||t.$set({showNextPrevButtons:this.needToShowNextPrevButtons(),nextButtonActive:this.isNextButtonActive(),prevButtonActive:this.isPrevButtonActive(),endScreenVideoTitle:n.nextVideoTitle,endScreenVideoThumb:n.nextVideoThumb,isOneVideoPlaylist:this.isOneVideoPlaylist()})}initMediaSession(){var e,t;this.mediaSessionApi&&((e=this.unsubscribePlayerPhaseSubscription)===null||e===void 0||e.call(this),this.unsubscribePlayerPhaseSubscription=(t=this.store)===null||t===void 0?void 0:t.playerPhase.subscribe(n=>{n===Oe.Video?this.setupMediaSessionForVideo():n===Oe.Ads&&this.setupMediaSessionForAds()}))}setupMediaSessionForVideo(){if(!(!this.videoConfig||!this.mediaSessionApi))try{const{title:e,thumbUrl:t}=Object.assign({},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:t}),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",t=[["play",()=>this.play()],["pause",()=>this.pause()]];this.mediaSessionApi.setMetaData({title:e}),this.mediaSessionApi.updateActionHandlers(t)}catch(e){this.log({message:e.message})}}play(){var e;this.isControlDisabled(_t.PLAY_BUTTON)||(this.log({message:"play"}),(e=this.svelteRootComponent)===null||e===void 0||e.play())}pause(){var e;this.log({message:"pause"}),(e=this.svelteRootComponent)===null||e===void 0||e.pause()}stop(){var e,t;if(!this.videoConfig)return;this.log({message:"stop"}),(e=this.svelteStubComponent)===null||e===void 0||e.$destroy();const n=this.videoConfig.videos[0];n&&((t=this.svelteRootComponent)===null||t===void 0||t.$destroy(),this.createPlayer(n))}setMuted(e){var t;this.log({message:`set muted, muted: ${e}`}),(t=this.svelteRootComponent)===null||t===void 0||t.setMuted(e)}setVolume(e){var t;this.log({message:`set volume, volume: ${e}`}),(t=this.svelteRootComponent)===null||t===void 0||t.setVolume(e)}setRepeat(e){var t;this.log({message:`set repeat, repeat: ${e}`}),this.needToRepeatPlaylist=e,(t=this.svelteRootComponent)===null||t===void 0||t.$set({needToRepeatPlaylist:this.needToRepeatPlaylist,showNextPrevButtons:this.needToShowNextPrevButtons(),nextButtonActive:this.isNextButtonActive(),prevButtonActive:this.isPrevButtonActive()})}seekTime(e){var t;this.isControlDisabled(_t.TIMELINE)||(this.log({message:`seek time, time: ${e}`}),(t=this.svelteRootComponent)===null||t===void 0||t.seekTime(e))}seekEpisodeStartTime(e){var t;this.log({message:`seek episode start time, time: ${e}`}),(t=this.svelteRootComponent)===null||t===void 0||t.seekEpisodeStartTime(e)}setPlaybackRate(e){var t;this.log({message:`set playback rate to: ${e}`}),(t=this.svelteRootComponent)===null||t===void 0||t.setPlaybackRate(e)}setAutoQualityLimits(e){var t,n,o;this.log({message:`set auto quality limitation. Max: ${(t=e.max)!==null&&t!==void 0?t:"none"}. Min: ${(n=e.min)!==null&&n!==void 0?n:"none"}`}),(o=this.svelteRootComponent)===null||o===void 0||o.setAutoQualityLimits(e)}addLanguage(e){var t;(t=this.store)===null||t===void 0||t.actions.internal.addLanguage(e)}setLanguage(e){var t;return ji(this,void 0,void 0,function*(){yield(t=this.store)===null||t===void 0?void 0:t.actions.internal.setLanguage(e)})}setLiveStart(e){var t,n;this.log({message:"live started"}),(t=this.store)===null||t===void 0||t.actions.internal.setWaitingLive(!1),(n=this.svelteRootComponent)===null||n===void 0||n.initVideo(e),this.play()}setWaitRecord(){var e,t;this.log({message:"post live"}),(e=this.store)===null||e===void 0||e.actions.internal.setWaitingRecord(!0),(t=this.store)===null||t===void 0||t.destroy()}setLiveEnd(e){var t,n;this.log({message:"live ended"}),(t=this.store)===null||t===void 0||t.actions.internal.setWaitingRecord(!1),(n=this.svelteRootComponent)===null||n===void 0||n.$destroy(),this.createPlayer(e,{autoplay:!1})}getDeviceId(){var e,t;return(t=(e=Co.getInstance())===null||e===void 0?void 0:e.oneStat.getDeviceId())!==null&&t!==void 0?t:void 0}replayInteractiveVideo(){this.interactiveController&&this.interactiveController.setChapter()}}const qb=()=>{window.customElements.define("vk-video-player",jb)};Object.defineProperty(exports,"VideoFormat",{enumerable:!0,get:function(){return ct.VideoFormat}});Object.defineProperty(exports,"VideoQuality",{enumerable:!0,get:function(){return ct.VideoQuality}});Object.defineProperty(exports,"InterfaceLanguage",{enumerable:!0,get:function(){return ne.InterfaceLanguage}});Object.defineProperty(exports,"VKNumericLanguage",{enumerable:!0,get:function(){return ne.VKNumericLanguage}});Object.defineProperty(exports,"loadVKLangPack",{enumerable:!0,get:function(){return ne.loadVKLangPack}});exports.VERSION=nl;exports.registerPlayerWebComponent=qb;
|