@vkontakte/videoplayer 1.1.38-dev.f9474f22.0 → 1.1.38-dev.fb79366f.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 CHANGED
@@ -1,17 +1,17 @@
1
1
  /**
2
- * @vkontakte/videoplayer v1.1.38-dev.f9474f22.0
3
- * Mon, 15 Jul 2024 10:36:58 GMT
2
+ * @vkontakte/videoplayer v1.1.38-dev.fb79366f.0
3
+ * Tue, 23 Jul 2024 10:47:56 GMT
4
4
  * https://st.mycdn.me/static/vkontakte-videoplayer/1-1-38/doc/
5
5
  */
6
- "use strict";var A_=Object.create;var Pl=Object.defineProperty,L_=Object.defineProperties,B_=Object.getOwnPropertyDescriptor,R_=Object.getOwnPropertyDescriptors,D_=Object.getOwnPropertyNames,Of=Object.getOwnPropertySymbols,N_=Object.getPrototypeOf,Ff=Object.prototype.hasOwnProperty,O_=Object.prototype.propertyIsEnumerable;var ks=(i,e,t)=>e in i?Pl(i,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):i[e]=t,nt=(i,e)=>{for(var t in e||(e={}))Ff.call(e,t)&&ks(i,t,e[t]);if(Of)for(var t of Of(e))O_.call(e,t)&&ks(i,t,e[t]);return i},Lt=(i,e)=>L_(i,R_(e));var F_=(i,e)=>{for(var t in e)Pl(i,t,{get:e[t],enumerable:!0})},Hf=(i,e,t,n)=>{if(e&&typeof e=="object"||typeof e=="function")for(let o of D_(e))!Ff.call(i,o)&&o!==t&&Pl(i,o,{get:()=>e[o],enumerable:!(n=B_(e,o))||n.enumerable});return i};var zf=(i,e,t)=>(t=i!=null?A_(N_(i)):{},Hf(e||!i||!i.__esModule?Pl(t,"default",{value:i,enumerable:!0}):t,i)),H_=i=>Hf(Pl({},"__esModule",{value:!0}),i);var Wi=(i,e,t)=>(ks(i,typeof e!="symbol"?e+"":e,t),t);var ut=(i,e,t)=>new Promise((n,o)=>{var r=s=>{try{a(t.next(s))}catch(u){o(u)}},l=s=>{try{a(t.throw(s))}catch(u){o(u)}},a=s=>s.done?n(s.value):Promise.resolve(s.value).then(r,l);a((t=t.apply(i,e)).next())});var L6={};F_(L6,{GridTypes:()=>po,InterfaceLanguage:()=>wl.InterfaceLanguage,VERSION:()=>Bo,VKNumericLanguage:()=>wl.VKNumericLanguage,VideoFormat:()=>vs.VideoFormat,VideoQuality:()=>vs.VideoQuality,loadVKLangPack:()=>wl.loadVKLangPack,registerPlayerWebComponent:()=>A6});module.exports=H_(L6);function pe(){}function oe(i,e){for(let t in e)i[t]=e[t];return i}function Cs(i){return i()}function Xl(){return Object.create(null)}function ot(i){i.forEach(Cs)}function Ri(i){return typeof i=="function"}function U(i,e){return i!=i?e==e:i!==e||i&&typeof i=="object"||typeof i=="function"}var Zl;function Ss(i,e){return Zl||(Zl=document.createElement("a")),Zl.href=e,i===Zl.href}function qf(i){return Object.keys(i).length===0}function Qt(i,...e){if(i==null){for(let n of e)n(void 0);return pe}let t=i.subscribe(...e);return t.unsubscribe?()=>t.unsubscribe():t}function tt(i){let e;return Qt(i,t=>e=t)(),e}function F(i,e,t){i.$$.on_destroy.push(Qt(e,t))}function Ee(i,e,t,n){if(i){let o=Uf(i,e,t,n);return i[0](o)}}function Uf(i,e,t,n){return i[1]&&n?oe(t.ctx.slice(),i[1](n(e))):t.ctx}function Me(i,e,t,n){if(i[2]&&n){let o=i[2](n(t));if(e.dirty===void 0)return o;if(typeof o=="object"){let r=[],l=Math.max(e.dirty.length,o.length);for(let a=0;a<l;a+=1)r[a]=e.dirty[a]|o[a];return r}return e.dirty|o}return e.dirty}function Ve(i,e,t,n,o,r){if(o){let l=Uf(e,t,n,r);i.p(l,o)}}function Ae(i){if(i.ctx.length>32){let e=[],t=i.ctx.length/32;for(let n=0;n<t;n++)e[n]=-1;return e}return-1}function he(i){let e={};for(let t in i)t[0]!=="$"&&(e[t]=i[t]);return e}function Kf(i){return i==null?"":i}var Eo=typeof window!="undefined"?window:typeof globalThis!="undefined"?globalThis:global;var Jl=class i{constructor(e){Wi(this,"_listeners","WeakMap"in Eo?new WeakMap:void 0);Wi(this,"_observer");Wi(this,"options");this.options=e}observe(e,t){return this._listeners.set(e,t),this._getObserver().observe(e,this.options),()=>{this._listeners.delete(e),this._observer.unobserve(e)}}_getObserver(){var e;return(e=this._observer)!=null?e:this._observer=new ResizeObserver(t=>{var n;for(let o of t)i.entries.set(o.target,o),(n=this._listeners.get(o.target))==null||n(o)})}};Jl.entries="WeakMap"in Eo?new WeakMap:void 0;var jf=!1;function Wf(){jf=!0}function Gf(){jf=!1}function p(i,e){i.appendChild(e)}function Se(i,e,t){let n=Qf(i);if(!n.getElementById(e)){let o=T("style");o.id=e,o.textContent=t,U_(n,o)}}function Qf(i){if(!i)return document;let e=i.getRootNode?i.getRootNode():i.ownerDocument;return e&&e.host?e:i.ownerDocument}function U_(i,e){return p(i.head||i,e),e.sheet}function C(i,e,t){i.insertBefore(e,t||null)}function k(i){i.parentNode&&i.parentNode.removeChild(i)}function Gi(i,e){for(let t=0;t<i.length;t+=1)i[t]&&i[t].d(e)}function T(i){return document.createElement(i)}function N(i){return document.createElementNS("http://www.w3.org/2000/svg",i)}function De(i){return document.createTextNode(i)}function O(){return De(" ")}function rt(){return De("")}function de(i,e,t,n){return i.addEventListener(e,t,n),()=>i.removeEventListener(e,t,n)}function Dt(i){return function(e){return e.preventDefault(),i.call(this,e)}}function at(i){return function(e){return e.stopPropagation(),i.call(this,e)}}function f(i,e,t){t==null?i.removeAttribute(e):i.getAttribute(e)!==t&&i.setAttribute(e,t)}function ge(i,e){for(let t in e)f(i,t,e[t])}function Yf(i){return Array.from(i.childNodes)}function Ye(i,e){e=""+e,i.data!==e&&(i.data=e)}function vi(i,e,t,n){t==null?i.style.removeProperty(e):i.style.setProperty(e,t,n?"important":"")}var xl;function K_(){if(xl===void 0){xl=!1;try{typeof window!="undefined"&&window.parent&&window.parent.document}catch(i){xl=!0}}return xl}function Zo(i,e){getComputedStyle(i).position==="static"&&(i.style.position="relative");let n=T("iframe");n.setAttribute("style","display: block; position: absolute; top: 0; left: 0; width: 100%; height: 100%; overflow: hidden; border: 0; opacity: 0; pointer-events: none; z-index: -1;"),n.setAttribute("aria-hidden","true"),n.tabIndex=-1;let o=K_(),r;return o?(n.src="data:text/html,<script>onresize=function(){parent.postMessage(0,'*')}<\/script>",r=de(window,"message",l=>{l.source===n.contentWindow&&e()})):(n.src="about:blank",n.onload=()=>{r=de(n.contentWindow,"resize",e),e()}),p(i,n),()=>{(o||r&&n.contentWindow)&&r(),k(n)}}function z(i,e,t){i.classList.toggle(e,!!t)}function Zf(i){let e={};return i.childNodes.forEach(t=>{e[t.slot||"default"]=!0}),e}function Pn(i,e){return new i(e)}var mo;function oo(i){mo=i}function Xo(){if(!mo)throw new Error("Function called outside component initialization");return mo}function Nt(i){Xo().$$.on_mount.push(i)}function Wn(i){Xo().$$.on_destroy.push(i)}function Jo(i,e){return Xo().$$.context.set(i,e),e}function xo(i){return Xo().$$.context.get(i)}function Tl(){return Xo().$$.context}function Vn(i,e){let t=i.$$.callbacks[e.type];t&&t.slice().forEach(n=>n.call(this,e))}var Mo=[];var _e=[],el=[],Ts=[],Jf=Promise.resolve(),Is=!1;function Es(){Is||(Is=!0,Jf.then($l))}function Gn(){return Es(),Jf}function Qn(i){el.push(i)}function Fe(i){Ts.push(i)}var Ps=new Set,$o=0;function $l(){if($o!==0)return;let i=mo;do{try{for(;$o<Mo.length;){let e=Mo[$o];$o++,oo(e),Z_(e.$$)}}catch(e){throw Mo.length=0,$o=0,e}for(oo(null),Mo.length=0,$o=0;_e.length;)_e.pop()();for(let e=0;e<el.length;e+=1){let t=el[e];Ps.has(t)||(Ps.add(t),t())}el.length=0}while(Mo.length);for(;Ts.length;)Ts.pop()();Is=!1,Ps.clear(),oo(i)}function Z_(i){if(i.fragment!==null){i.update(),ot(i.before_update);let e=i.dirty;i.dirty=[-1],i.fragment&&i.fragment.p(i.ctx,e),i.after_update.forEach(Qn)}}function xf(i){let e=[],t=[];el.forEach(n=>i.indexOf(n)===-1?e.push(n):t.push(n)),t.forEach(n=>n()),el=e}var er=new Set,Vo;function fe(){Vo={r:0,c:[],p:Vo}}function ce(){Vo.r||ot(Vo.c),Vo=Vo.p}function d(i,e){i&&i.i&&(er.delete(i),i.i(e))}function _(i,e,t,n){if(i&&i.o){if(er.has(i))return;er.add(i),Vo.c.push(()=>{er.delete(i),n&&(t&&i.d(1),n())}),i.o(e)}else n&&n()}function It(i){return(i==null?void 0:i.length)!==void 0?i:Array.from(i)}function Le(i,e){let t={},n={},o={$$scope:1},r=i.length;for(;r--;){let l=i[r],a=e[r];if(a){for(let s in l)s in a||(n[s]=1);for(let s in a)o[s]||(t[s]=a[s],o[s]=1);i[r]=a}else for(let s in l)o[s]=1}for(let l in n)l in t||(t[l]=void 0);return t}function $f(i){return typeof i=="object"&&i!==null?i:{}}var X_=["allowfullscreen","allowpaymentrequest","async","autofocus","autoplay","checked","controls","default","defer","disabled","formnovalidate","hidden","inert","ismap","loop","multiple","muted","nomodule","novalidate","open","playsinline","readonly","required","reversed","selected"],J_=new Set([...X_]);function He(i,e,t){let n=i.$$.props[e];n!==void 0&&(i.$$.bound[n]=t,t(i.$$.ctx[n]))}function D(i){i&&i.c()}function B(i,e,t){let{fragment:n,after_update:o}=i.$$;n&&n.m(e,t),Qn(()=>{let r=i.$$.on_mount.map(Cs).filter(Ri);i.$$.on_destroy?i.$$.on_destroy.push(...r):ot(r),i.$$.on_mount=[]}),o.forEach(Qn)}function R(i,e){let t=i.$$;t.fragment!==null&&(xf(t.after_update),ot(t.on_destroy),t.fragment&&t.fragment.d(e),t.on_destroy=t.fragment=null,t.ctx=[])}function $_(i,e){i.$$.dirty[0]===-1&&(Mo.push(i),Es(),i.$$.dirty.fill(0)),i.$$.dirty[e/31|0]|=1<<e%31}function W(i,e,t,n,o,r,l,a=[-1]){let s=mo;oo(i);let u=i.$$={fragment:null,ctx:[],props:r,update:pe,not_equal:o,bound:Xl(),on_mount:[],on_destroy:[],on_disconnect:[],before_update:[],after_update:[],context:new Map(e.context||(s?s.$$.context:[])),callbacks:Xl(),dirty:a,skip_bound:!1,root:e.target||s.$$.root};l&&l(u.root);let c=!1;if(u.ctx=t?t(i,e.props||{},(m,h,...y)=>{let b=y.length?y[0]:h;return u.ctx&&o(u.ctx[m],u.ctx[m]=b)&&(!u.skip_bound&&u.bound[m]&&u.bound[m](b),c&&$_(i,m)),h}):[],u.update(),c=!0,ot(u.before_update),u.fragment=n?n(u.ctx):!1,e.target){if(e.hydrate){Wf();let m=Yf(e.target);u.fragment&&u.fragment.l(m),m.forEach(k)}else u.fragment&&u.fragment.c();e.intro&&d(i.$$.fragment),B(i,e.target,e.anchor),Gf(),$l()}oo(s)}var e2;typeof HTMLElement=="function"&&(e2=class extends HTMLElement{constructor(e,t,n){super();Wi(this,"$$componentCtor");Wi(this,"$$slots");Wi(this,"$$component");Wi(this,"$$connected",!1);Wi(this,"$$data",{});Wi(this,"$$reflecting",!1);Wi(this,"$$props_definition",{});Wi(this,"$$listeners",{});Wi(this,"$$listener_unsubscribe_fns",new Map);this.$$componentCtor=e,this.$$slots=t,n&&this.attachShadow({mode:"open"})}addEventListener(e,t,n){if(this.$$listeners[e]=this.$$listeners[e]||[],this.$$listeners[e].push(t),this.$$component){let o=this.$$component.$on(e,t);this.$$listener_unsubscribe_fns.set(t,o)}super.addEventListener(e,t,n)}removeEventListener(e,t,n){if(super.removeEventListener(e,t,n),this.$$component){let o=this.$$listener_unsubscribe_fns.get(t);o&&(o(),this.$$listener_unsubscribe_fns.delete(t))}}connectedCallback(){return ut(this,null,function*(){if(this.$$connected=!0,!this.$$component){let t=function(r){return()=>{let l;return{c:function(){l=document.createElement("slot"),r!=="default"&&l.setAttribute("name",r)},m:function(u,c){C(u,l,c)},d:function(u){u&&k(l)}}}};var e=t;if(yield Promise.resolve(),!this.$$connected)return;let n={},o=Zf(this);for(let r of this.$$slots)r in o&&(n[r]=[t(r)]);for(let r of this.attributes){let l=this.$$get_prop_name(r.name);l in this.$$data||(this.$$data[l]=ec(l,r.value,this.$$props_definition,"toProp"))}this.$$component=new this.$$componentCtor({target:this.shadowRoot||this,props:Lt(nt({},this.$$data),{$$slots:n,$$scope:{ctx:[]}})});for(let r in this.$$listeners)for(let l of this.$$listeners[r]){let a=this.$$component.$on(r,l);this.$$listener_unsubscribe_fns.set(l,a)}this.$$listeners={}}})}attributeChangedCallback(e,t,n){var o;this.$$reflecting||(e=this.$$get_prop_name(e),this.$$data[e]=ec(e,n,this.$$props_definition,"toProp"),(o=this.$$component)==null||o.$set({[e]:this.$$data[e]}))}disconnectedCallback(){this.$$connected=!1,Promise.resolve().then(()=>{this.$$connected||(this.$$component.$destroy(),this.$$component=void 0)})}$$get_prop_name(e){return Object.keys(this.$$props_definition).find(t=>this.$$props_definition[t].attribute===e||!this.$$props_definition[t].attribute&&t.toLowerCase()===e)||e}});function ec(i,e,t,n){var r;let o=(r=t[i])==null?void 0:r.type;if(e=o==="Boolean"&&typeof e!="boolean"?e!=null:e,!n||!t[i])return e;if(n==="toAttribute")switch(o){case"Object":case"Array":return e==null?null:JSON.stringify(e);case"Boolean":return e?"":null;case"Number":return e==null?null:e;default:return e}else switch(o){case"Object":case"Array":return e&&JSON.parse(e);case"Boolean":return e;case"Number":return e!=null?+e:e;default:return e}}var j=class{constructor(){Wi(this,"$$");Wi(this,"$$set")}$destroy(){R(this,1),this.$destroy=pe}$on(e,t){if(!Ri(t))return pe;let n=this.$$.callbacks[e]||(this.$$.callbacks[e]=[]);return n.push(t),()=>{let o=n.indexOf(t);o!==-1&&n.splice(o,1)}}$set(e){this.$$set&&!qf(e)&&(this.$$.skip_bound=!0,this.$$set(e),this.$$.skip_bound=!1)}};var tc="4";typeof window!="undefined"&&(window.__svelte||(window.__svelte={v:new Set})).v.add(tc);var FR=require("@vkontakte/videoplayer-core"),Yn=require("@vkontakte/videoplayer-shared"),Kp=require("@vkontakte/videoplayer-statistics");var tl=require("@vkontakte/videoplayer-shared");var t2={isMobile:void 0,defaultLanguage:tl.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:"vk_video",volumeDefault:1,volumeMinRestore:.05,loaderDelay:500,minSubtitlesFontSize:13,autoSubtitlesTimeout:2e3,allowChangingFullscreenTarget:!0,trafficSavingLimit:tl.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,interactiveTimeIndicator:!0,thumbTimer:!0,hotKeyMapModal:!0,hotKeyHelpers:!0,saveDebugInfoToFile:!1,additionalButtons:!0,contextMenuButton:!0,saveRate:!1},controls:{hideTimeout:500,hideTimeoutMobile:3e3,hideTimeoutInitial:200,hideTimeoutFullscreen:3e3,hideTimeoutCursor:3e3,hideTimeoutTooltips:1e3,collapseMobileUnmute:6e3,hide360IconTimeout:3e3,hideHotKeyHelpers:2e3,playbackRateMin:.25,playbackRateMax:2,playbackRateStep:.25,volumeStepKeyboard:.05,volumeStepWheel:.05,volumeBarTimeout:300,seekStepKeyboard:1e4,seekStepMobile:15e3,seekStepFrame:400},ads:{enable:void 0,initTimeout:2e3,loadTimeout:2e3,slot:void 0,preview:void 0},interactive:{historyMaxLength:100,noInteractionEventTimeout:3e4}},ic=i=>(0,tl.fillWithDefault)(i,t2),nc=i=>Jo("ui-config",i),Ut=()=>xo("ui-config");var Il="vk_player_debug_panel_opened";var oc="videoplayer",lc="videoplayer";var Jn={KeyF:"f",KeyK:"k",KeyC:"c",KeyM:"m"},rc=new Set(["ArrowLeft","ArrowRight","KeyL","KeyJ"]),sc=new Set(["Tab","Space","ArrowLeft","ArrowRight","ArrowUp","ArrowDown"]),ac=new Set(["ShiftRight","ShiftLeft"]);var uc=["TIMELINE"],El=[...uc,"GRAPH_BUTTON"],Ms=[...uc,"PLAY_BUTTON"],tr=[...El,"PLAY_BUTTON"];var po=(r=>(r.XS="xs",r.S="s",r.M="m",r.L="l",r.XL="xl",r))(po||{}),Lo={xs:0,s:1,m:2,l:3,xl:4};var il=[];function Nn(i,e){return{subscribe:Ne(i,e).subscribe}}function Ne(i,e=pe){let t,n=new Set;function o(a){if(U(i,a)&&(i=a,t)){let s=!il.length;for(let u of n)u[1](),il.push(u,i);if(s){for(let u=0;u<il.length;u+=2)il[u][0](il[u+1]);il.length=0}}}function r(a){o(a(i))}function l(a,s=pe){let u=[a,s];return n.add(u),n.size===1&&(t=e(o,r)||pe),a(i),()=>{n.delete(u),n.size===0&&t&&(t(),t=null)}}return{set:o,update:r,subscribe:l}}function Di(i,e,t){let n=!Array.isArray(i),o=n?[i]:i;if(!o.every(Boolean))throw new Error("derived() expects stores as input, got a falsy value");let r=e.length<2;return Nn(t,(l,a)=>{let s=!1,u=[],c=0,m=pe,h=()=>{if(c)return;m();let b=e(n?u[0]:u,l,a);r?l(b):m=Ri(b)?b:pe},y=o.map((b,S)=>Qt(b,w=>{u[S]=w,c&=~(1<<S),s&&h()},()=>{c|=1<<S}));return s=!0,h(),function(){ot(y),m(),s=!1}})}var Ml=require("@vkontakte/videoplayer-shared"),fc=require("@vkontakte/videoplayer-core"),cc=require("@vkontakte/videoplayer-statistics");var ir="prod",Bo="1.1.38-dev.f9474f22.0";var nr=(i,e,t)=>{let n=document.createElement("a");n.href=i,n.download=`${e}.${t}`,n.style.display="none",n.click()};var dc=Symbol("storeContext"),mc=Symbol("microStoresContext"),pc=(i,e)=>{Jo(dc,i),Jo(mc,e),ir==="dev"&&(window.app={store:i,microStores:e})},it=()=>{let i=xo(dc);return(0,Ml.assertNonNullable)(i,"Store context is empty!"),i},On=()=>{let i=xo(mc);return(0,Ml.assertNonNullable)(i,"MicroStores context is empty!"),i},Et=(i,e)=>Vs(i,i.getValue(),e),Vs=(i,e,t)=>Nn(e,n=>{let o=i.subscribe(r=>{n(r),t==null||t(r)});return()=>o.unsubscribe()}),_c=(i,e,t)=>{var b,S,w,P;let n=i.info,{width:o,height:r}=tt(t.ui.playerSize),l=(S=(b=n.throughputEstimation$.getValue())==null?void 0:b.toFixed(0))!=null?S:0,a=(P=(w=n.rttEstimation$.getValue())==null?void 0:w.toFixed(0))!=null?P:0,s=n.isAutoQualityEnabled$.getValue()?"auto":"manual",u=`${Bo} (core: ${fc.VERSION}, stat: ${cc.VERSION}, shared: ${Ml.VERSION})`,c=tt(t.state.errorLog$),m=c.length?`
7
- `+c.map((v,g)=>{var K;let I=`${g}) Type: ${v.id}
6
+ "use strict";var L_=Object.create;var Tl=Object.defineProperty,R_=Object.defineProperties,B_=Object.getOwnPropertyDescriptor,D_=Object.getOwnPropertyDescriptors,N_=Object.getOwnPropertyNames,Fc=Object.getOwnPropertySymbols,O_=Object.getPrototypeOf,Hc=Object.prototype.hasOwnProperty,F_=Object.prototype.propertyIsEnumerable;var Cs=(i,e,t)=>e in i?Tl(i,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):i[e]=t,ot=(i,e)=>{for(var t in e||(e={}))Hc.call(e,t)&&Cs(i,t,e[t]);if(Fc)for(var t of Fc(e))F_.call(e,t)&&Cs(i,t,e[t]);return i},Dt=(i,e)=>R_(i,D_(e));var H_=(i,e)=>{for(var t in e)Tl(i,t,{get:e[t],enumerable:!0})},zc=(i,e,t,n)=>{if(e&&typeof e=="object"||typeof e=="function")for(let o of N_(e))!Hc.call(i,o)&&o!==t&&Tl(i,o,{get:()=>e[o],enumerable:!(n=B_(e,o))||n.enumerable});return i};var Ss=(i,e,t)=>(t=i!=null?L_(O_(i)):{},zc(e||!i||!i.__esModule?Tl(t,"default",{value:i,enumerable:!0}):t,i)),z_=i=>zc(Tl({},"__esModule",{value:!0}),i);var Gi=(i,e,t)=>(Cs(i,typeof e!="symbol"?e+"":e,t),t);var ut=(i,e,t)=>new Promise((n,o)=>{var r=s=>{try{a(t.next(s))}catch(u){o(u)}},l=s=>{try{a(t.throw(s))}catch(u){o(u)}},a=s=>s.done?n(s.value):Promise.resolve(s.value).then(r,l);a((t=t.apply(i,e)).next())});var R6={};H_(R6,{GridTypes:()=>po,InterfaceLanguage:()=>kl.InterfaceLanguage,VERSION:()=>Bo,VKNumericLanguage:()=>kl.VKNumericLanguage,VideoFormat:()=>ys.VideoFormat,VideoQuality:()=>ys.VideoQuality,loadVKLangPack:()=>kl.loadVKLangPack,registerPlayerWebComponent:()=>L6});module.exports=z_(R6);function pe(){}function oe(i,e){for(let t in e)i[t]=e[t];return i}function Ts(i){return i()}function Jl(){return Object.create(null)}function lt(i){i.forEach(Ts)}function Vi(i){return typeof i=="function"}function U(i,e){return i!=i?e==e:i!==e||i&&typeof i=="object"||typeof i=="function"}var Xl;function Ps(i,e){return Xl||(Xl=document.createElement("a")),Xl.href=e,i===Xl.href}function qc(i){return Object.keys(i).length===0}function Xt(i,...e){if(i==null){for(let n of e)n(void 0);return pe}let t=i.subscribe(...e);return t.unsubscribe?()=>t.unsubscribe():t}function it(i){let e;return Xt(i,t=>e=t)(),e}function F(i,e,t){i.$$.on_destroy.push(Xt(e,t))}function Ee(i,e,t,n){if(i){let o=Uc(i,e,t,n);return i[0](o)}}function Uc(i,e,t,n){return i[1]&&n?oe(t.ctx.slice(),i[1](n(e))):t.ctx}function Me(i,e,t,n){if(i[2]&&n){let o=i[2](n(t));if(e.dirty===void 0)return o;if(typeof o=="object"){let r=[],l=Math.max(e.dirty.length,o.length);for(let a=0;a<l;a+=1)r[a]=e.dirty[a]|o[a];return r}return e.dirty|o}return e.dirty}function Ve(i,e,t,n,o,r){if(o){let l=Uc(e,t,n,r);i.p(l,o)}}function Ae(i){if(i.ctx.length>32){let e=[],t=i.ctx.length/32;for(let n=0;n<t;n++)e[n]=-1;return e}return-1}function he(i){let e={};for(let t in i)t[0]!=="$"&&(e[t]=i[t]);return e}function Kc(i){return i==null?"":i}var Mo=typeof window!="undefined"?window:typeof globalThis!="undefined"?globalThis:global;var xl=class i{constructor(e){Gi(this,"_listeners","WeakMap"in Mo?new WeakMap:void 0);Gi(this,"_observer");Gi(this,"options");this.options=e}observe(e,t){return this._listeners.set(e,t),this._getObserver().observe(e,this.options),()=>{this._listeners.delete(e),this._observer.unobserve(e)}}_getObserver(){var e;return(e=this._observer)!=null?e:this._observer=new ResizeObserver(t=>{var n;for(let o of t)i.entries.set(o.target,o),(n=this._listeners.get(o.target))==null||n(o)})}};xl.entries="WeakMap"in Mo?new WeakMap:void 0;var jc=!1;function Wc(){jc=!0}function Gc(){jc=!1}function p(i,e){i.appendChild(e)}function Te(i,e,t){let n=Qc(i);if(!n.getElementById(e)){let o=P("style");o.id=e,o.textContent=t,K_(n,o)}}function Qc(i){if(!i)return document;let e=i.getRootNode?i.getRootNode():i.ownerDocument;return e&&e.host?e:i.ownerDocument}function K_(i,e){return p(i.head||i,e),e.sheet}function C(i,e,t){i.insertBefore(e,t||null)}function k(i){i.parentNode&&i.parentNode.removeChild(i)}function Qi(i,e){for(let t=0;t<i.length;t+=1)i[t]&&i[t].d(e)}function P(i){return document.createElement(i)}function N(i){return document.createElementNS("http://www.w3.org/2000/svg",i)}function Be(i){return document.createTextNode(i)}function O(){return Be(" ")}function st(){return Be("")}function de(i,e,t,n){return i.addEventListener(e,t,n),()=>i.removeEventListener(e,t,n)}function Ot(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 c(i,e,t){t==null?i.removeAttribute(e):i.getAttribute(e)!==t&&i.setAttribute(e,t)}function ge(i,e){for(let t in e)c(i,t,e[t])}function Yc(i){return Array.from(i.childNodes)}function Ze(i,e){e=""+e,i.data!==e&&(i.data=e)}function gi(i,e,t,n){t==null?i.style.removeProperty(e):i.style.setProperty(e,t,n?"important":"")}var $l;function j_(){if($l===void 0){$l=!1;try{typeof window!="undefined"&&window.parent&&window.parent.document}catch(i){$l=!0}}return $l}function Xo(i,e){getComputedStyle(i).position==="static"&&(i.style.position="relative");let n=P("iframe");n.setAttribute("style","display: block; position: absolute; top: 0; left: 0; width: 100%; height: 100%; overflow: hidden; border: 0; opacity: 0; pointer-events: none; z-index: -1;"),n.setAttribute("aria-hidden","true"),n.tabIndex=-1;let o=j_(),r;return o?(n.src="data:text/html,<script>onresize=function(){parent.postMessage(0,'*')}<\/script>",r=de(window,"message",l=>{l.source===n.contentWindow&&e()})):(n.src="about:blank",n.onload=()=>{r=de(n.contentWindow,"resize",e),e()}),p(i,n),()=>{(o||r&&n.contentWindow)&&r(),k(n)}}function z(i,e,t){i.classList.toggle(e,!!t)}function Zc(i){let e={};return i.childNodes.forEach(t=>{e[t.slot||"default"]=!0}),e}function Pn(i,e){return new i(e)}var mo;function oo(i){mo=i}function Jo(){if(!mo)throw new Error("Function called outside component initialization");return mo}function Ft(i){Jo().$$.on_mount.push(i)}function Wn(i){Jo().$$.on_destroy.push(i)}function xo(i,e){return Jo().$$.context.set(i,e),e}function $o(i){return Jo().$$.context.get(i)}function Pl(){return Jo().$$.context}function An(i,e){let t=i.$$.callbacks[e.type];t&&t.slice().forEach(n=>n.call(this,e))}var Vo=[];var _e=[],tl=[],Es=[],Jc=Promise.resolve(),Ms=!1;function Vs(){Ms||(Ms=!0,Jc.then(er))}function Gn(){return Vs(),Jc}function Qn(i){tl.push(i)}function Oe(i){Es.push(i)}var Is=new Set,el=0;function er(){if(el!==0)return;let i=mo;do{try{for(;el<Vo.length;){let e=Vo[el];el++,oo(e),X_(e.$$)}}catch(e){throw Vo.length=0,el=0,e}for(oo(null),Vo.length=0,el=0;_e.length;)_e.pop()();for(let e=0;e<tl.length;e+=1){let t=tl[e];Is.has(t)||(Is.add(t),t())}tl.length=0}while(Vo.length);for(;Es.length;)Es.pop()();Ms=!1,Is.clear(),oo(i)}function X_(i){if(i.fragment!==null){i.update(),lt(i.before_update);let e=i.dirty;i.dirty=[-1],i.fragment&&i.fragment.p(i.ctx,e),i.after_update.forEach(Qn)}}function xc(i){let e=[],t=[];tl.forEach(n=>i.indexOf(n)===-1?e.push(n):t.push(n)),t.forEach(n=>n()),tl=e}var tr=new Set,Ao;function ce(){Ao={r:0,c:[],p:Ao}}function fe(){Ao.r||lt(Ao.c),Ao=Ao.p}function d(i,e){i&&i.i&&(tr.delete(i),i.i(e))}function _(i,e,t,n){if(i&&i.o){if(tr.has(i))return;tr.add(i),Ao.c.push(()=>{tr.delete(i),n&&(t&&i.d(1),n())}),i.o(e)}else n&&n()}function Vt(i){return(i==null?void 0:i.length)!==void 0?i:Array.from(i)}function Le(i,e){let t={},n={},o={$$scope:1},r=i.length;for(;r--;){let l=i[r],a=e[r];if(a){for(let s in l)s in a||(n[s]=1);for(let s in a)o[s]||(t[s]=a[s],o[s]=1);i[r]=a}else for(let s in l)o[s]=1}for(let l in n)l in t||(t[l]=void 0);return t}function $c(i){return typeof i=="object"&&i!==null?i:{}}var J_=["allowfullscreen","allowpaymentrequest","async","autofocus","autoplay","checked","controls","default","defer","disabled","formnovalidate","hidden","inert","ismap","loop","multiple","muted","nomodule","novalidate","open","playsinline","readonly","required","reversed","selected"],x_=new Set([...J_]);function Fe(i,e,t){let n=i.$$.props[e];n!==void 0&&(i.$$.bound[n]=t,t(i.$$.ctx[n]))}function D(i){i&&i.c()}function R(i,e,t){let{fragment:n,after_update:o}=i.$$;n&&n.m(e,t),Qn(()=>{let r=i.$$.on_mount.map(Ts).filter(Vi);i.$$.on_destroy?i.$$.on_destroy.push(...r):lt(r),i.$$.on_mount=[]}),o.forEach(Qn)}function B(i,e){let t=i.$$;t.fragment!==null&&(xc(t.after_update),lt(t.on_destroy),t.fragment&&t.fragment.d(e),t.on_destroy=t.fragment=null,t.ctx=[])}function e2(i,e){i.$$.dirty[0]===-1&&(Vo.push(i),Vs(),i.$$.dirty.fill(0)),i.$$.dirty[e/31|0]|=1<<e%31}function W(i,e,t,n,o,r,l,a=[-1]){let s=mo;oo(i);let u=i.$$={fragment:null,ctx:[],props:r,update:pe,not_equal:o,bound:Jl(),on_mount:[],on_destroy:[],on_disconnect:[],before_update:[],after_update:[],context:new Map(e.context||(s?s.$$.context:[])),callbacks:Jl(),dirty:a,skip_bound:!1,root:e.target||s.$$.root};l&&l(u.root);let f=!1;if(u.ctx=t?t(i,e.props||{},(m,h,...y)=>{let b=y.length?y[0]:h;return u.ctx&&o(u.ctx[m],u.ctx[m]=b)&&(!u.skip_bound&&u.bound[m]&&u.bound[m](b),f&&e2(i,m)),h}):[],u.update(),f=!0,lt(u.before_update),u.fragment=n?n(u.ctx):!1,e.target){if(e.hydrate){Wc();let m=Yc(e.target);u.fragment&&u.fragment.l(m),m.forEach(k)}else u.fragment&&u.fragment.c();e.intro&&d(i.$$.fragment),R(i,e.target,e.anchor),Gc(),er()}oo(s)}var t2;typeof HTMLElement=="function"&&(t2=class extends HTMLElement{constructor(e,t,n){super();Gi(this,"$$componentCtor");Gi(this,"$$slots");Gi(this,"$$component");Gi(this,"$$connected",!1);Gi(this,"$$data",{});Gi(this,"$$reflecting",!1);Gi(this,"$$props_definition",{});Gi(this,"$$listeners",{});Gi(this,"$$listener_unsubscribe_fns",new Map);this.$$componentCtor=e,this.$$slots=t,n&&this.attachShadow({mode:"open"})}addEventListener(e,t,n){if(this.$$listeners[e]=this.$$listeners[e]||[],this.$$listeners[e].push(t),this.$$component){let o=this.$$component.$on(e,t);this.$$listener_unsubscribe_fns.set(t,o)}super.addEventListener(e,t,n)}removeEventListener(e,t,n){if(super.removeEventListener(e,t,n),this.$$component){let o=this.$$listener_unsubscribe_fns.get(t);o&&(o(),this.$$listener_unsubscribe_fns.delete(t))}}connectedCallback(){return ut(this,null,function*(){if(this.$$connected=!0,!this.$$component){let t=function(r){return()=>{let l;return{c:function(){l=document.createElement("slot"),r!=="default"&&l.setAttribute("name",r)},m:function(u,f){C(u,l,f)},d:function(u){u&&k(l)}}}};var e=t;if(yield Promise.resolve(),!this.$$connected)return;let n={},o=Zc(this);for(let r of this.$$slots)r in o&&(n[r]=[t(r)]);for(let r of this.attributes){let l=this.$$get_prop_name(r.name);l in this.$$data||(this.$$data[l]=ef(l,r.value,this.$$props_definition,"toProp"))}this.$$component=new this.$$componentCtor({target:this.shadowRoot||this,props:Dt(ot({},this.$$data),{$$slots:n,$$scope:{ctx:[]}})});for(let r in this.$$listeners)for(let l of this.$$listeners[r]){let a=this.$$component.$on(r,l);this.$$listener_unsubscribe_fns.set(l,a)}this.$$listeners={}}})}attributeChangedCallback(e,t,n){var o;this.$$reflecting||(e=this.$$get_prop_name(e),this.$$data[e]=ef(e,n,this.$$props_definition,"toProp"),(o=this.$$component)==null||o.$set({[e]:this.$$data[e]}))}disconnectedCallback(){this.$$connected=!1,Promise.resolve().then(()=>{this.$$connected||(this.$$component.$destroy(),this.$$component=void 0)})}$$get_prop_name(e){return Object.keys(this.$$props_definition).find(t=>this.$$props_definition[t].attribute===e||!this.$$props_definition[t].attribute&&t.toLowerCase()===e)||e}});function ef(i,e,t,n){var r;let o=(r=t[i])==null?void 0:r.type;if(e=o==="Boolean"&&typeof e!="boolean"?e!=null:e,!n||!t[i])return e;if(n==="toAttribute")switch(o){case"Object":case"Array":return e==null?null:JSON.stringify(e);case"Boolean":return e?"":null;case"Number":return e==null?null:e;default:return e}else switch(o){case"Object":case"Array":return e&&JSON.parse(e);case"Boolean":return e;case"Number":return e!=null?+e:e;default:return e}}var j=class{constructor(){Gi(this,"$$");Gi(this,"$$set")}$destroy(){B(this,1),this.$destroy=pe}$on(e,t){if(!Vi(t))return pe;let n=this.$$.callbacks[e]||(this.$$.callbacks[e]=[]);return n.push(t),()=>{let o=n.indexOf(t);o!==-1&&n.splice(o,1)}}$set(e){this.$$set&&!qc(e)&&(this.$$.skip_bound=!0,this.$$set(e),this.$$.skip_bound=!1)}};var tf="4";typeof window!="undefined"&&(window.__svelte||(window.__svelte={v:new Set})).v.add(tf);var HB=require("@vkontakte/videoplayer-core"),Yn=require("@vkontakte/videoplayer-shared"),jp=require("@vkontakte/videoplayer-statistics");var il=require("@vkontakte/videoplayer-shared");var i2={isMobile:void 0,defaultLanguage:il.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:"vk_video",volumeDefault:1,volumeMinRestore:.05,loaderDelay:500,minSubtitlesFontSize:13,autoSubtitlesTimeout:2e3,allowChangingFullscreenTarget:!0,trafficSavingLimit:il.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,interactiveTimeIndicator:!0,thumbTimer:!0,hotKeyMapModal:!0,hotKeyHelpers:!0,saveDebugInfoToFile:!1,additionalButtons:!0,contextMenuButton:!0,saveRate:!1},controls:{hideTimeout:500,hideTimeoutMobile:3e3,hideTimeoutInitial:200,hideTimeoutFullscreen:3e3,hideTimeoutCursor:3e3,hideTimeoutTooltips:1e3,collapseMobileUnmute:6e3,hide360IconTimeout:3e3,hideHotKeyHelpers:2e3,playbackRateMin:.25,playbackRateMax:2,playbackRateStep:.25,volumeStepKeyboard:.05,volumeStepWheel:.05,volumeBarTimeout:300,seekStepKeyboard:1e4,seekStepMobile:15e3,seekStepFrame:400},ads:{enable:void 0,initTimeout:2e3,loadTimeout:2e3,slot:void 0,preview:void 0},interactive:{historyMaxLength:100,noInteractionEventTimeout:3e4}},nf=i=>(0,il.fillWithDefault)(i,i2),of=i=>xo("ui-config",i),Wt=()=>$o("ui-config");var Il="vk_player_debug_panel_opened";var lf="videoplayer",rf="videoplayer";var xn={KeyF:"f",KeyK:"k",KeyC:"c",KeyM:"m"},sf=new Set(["ArrowLeft","ArrowRight","KeyL","KeyJ"]),af=new Set(["Tab","Space","ArrowLeft","ArrowRight","ArrowUp","ArrowDown"]),uf=new Set(["ShiftRight","ShiftLeft"]);var cf=["TIMELINE"],El=[...cf,"GRAPH_BUTTON"],As=[...cf,"PLAY_BUTTON"],ir=[...El,"PLAY_BUTTON"];var po=(r=>(r.XS="xs",r.S="s",r.M="m",r.L="l",r.XL="xl",r))(po||{}),Ro={xs:0,s:1,m:2,l:3,xl:4};var nl=[];function On(i,e){return{subscribe:De(i,e).subscribe}}function De(i,e=pe){let t,n=new Set;function o(a){if(U(i,a)&&(i=a,t)){let s=!nl.length;for(let u of n)u[1](),nl.push(u,i);if(s){for(let u=0;u<nl.length;u+=2)nl[u][0](nl[u+1]);nl.length=0}}}function r(a){o(a(i))}function l(a,s=pe){let u=[a,s];return n.add(u),n.size===1&&(t=e(o,r)||pe),a(i),()=>{n.delete(u),n.size===0&&t&&(t(),t=null)}}return{set:o,update:r,subscribe:l}}function Ai(i,e,t){let n=!Array.isArray(i),o=n?[i]:i;if(!o.every(Boolean))throw new Error("derived() expects stores as input, got a falsy value");let r=e.length<2;return On(t,(l,a)=>{let s=!1,u=[],f=0,m=pe,h=()=>{if(f)return;m();let b=e(n?u[0]:u,l,a);r?l(b):m=Vi(b)?b:pe},y=o.map((b,S)=>Xt(b,w=>{u[S]=w,f&=~(1<<S),s&&h()},()=>{f|=1<<S}));return s=!0,h(),function(){lt(y),m(),s=!1}})}var Ml=require("@vkontakte/videoplayer-shared"),ff=require("@vkontakte/videoplayer-core"),df=require("@vkontakte/videoplayer-statistics");var nr="prod",Bo="1.1.38-dev.fb79366f.0";var or=(i,e,t)=>{let n=document.createElement("a");n.href=i,n.download=`${e}.${t}`,n.style.display="none",n.click()};var mf=Symbol("storeContext"),pf=Symbol("microStoresContext"),_f=(i,e)=>{xo(mf,i),xo(pf,e),nr==="dev"&&(window.app={store:i,microStores:e})},nt=()=>{let i=$o(mf);return(0,Ml.assertNonNullable)(i,"Store context is empty!"),i},Fn=()=>{let i=$o(pf);return(0,Ml.assertNonNullable)(i,"MicroStores context is empty!"),i},At=(i,e)=>Ls(i,i.getValue(),e),Ls=(i,e,t)=>On(e,n=>{let o=i.subscribe(r=>{n(r),t==null||t(r)});return()=>o.unsubscribe()}),hf=(i,e,t)=>{var b,S,w,T;let n=i.info,{width:o,height:r}=it(t.ui.playerSize),l=(S=(b=n.throughputEstimation$.getValue())==null?void 0:b.toFixed(0))!=null?S:0,a=(T=(w=n.rttEstimation$.getValue())==null?void 0:w.toFixed(0))!=null?T:0,s=n.isAutoQualityEnabled$.getValue()?"auto":"manual",u=`${Bo} (core: ${ff.VERSION}, stat: ${df.VERSION}, shared: ${Ml.VERSION})`,f=it(t.state.errorLog$),m=f.length?`
7
+ `+f.map((v,g)=>{var K;let I=`${g}) Type: ${v.id}
8
8
  `,A=`Message: ${v.message} (${v.thrown})
9
9
  `,q=`Trace: ${(K=v.thrown)==null?void 0:K.stack}
10
10
  `;return I+A+q}).join(`
11
- `):void 0,h=t.state.isAudioDisabled?"disabled":tt(t.state.isAudioAvailable$)?void 0:"unavailable",y={Version:u,Browser:navigator.userAgent,Config:i.experimental.tuningConfigName$.getValue().join(", "),"United video id":String(t.videoId),"Content host":n.hostname$.getValue(),"Connection type":n.httpConnectionType$.getValue()+(n.httpConnectionReused$.getValue()?" (reused)":""),Throughput:`${l}Kbps @ ${a}ms RTT`,Format:n.currentFormat$.getValue(),"Available Formats":Object.keys(e.sources).join(", "),Quality:`${s} ${n.currentQuality$.getValue()}`,"Available qualities":n.availableQualities$.getValue().join(", "),Audio:h,Position:`${tt(t.state.positionExact$)}s`,State:`${tt(t.playerPhase)} ${n.playbackState$.getValue()}`,"Player size":`${o}x${r}`,URL:window.location.href,Errors:m};return Object.entries(y).filter(([v,g])=>g!==void 0).map(([v,g])=>`${v}: ${g}`).join(`
12
- `)},hc=(i,e,t)=>{let n=i.info,{width:o,height:r}=tt(t.ui.playerSize),l={version:Bo,viewport:`${o}x${r}`,volume:Math.round(tt(t.state.volume$)*100)};l.id=t.videoId,n.currentFormat$.getValue()&&(l.provider=n.currentFormat$.getValue()),n.hostname$.getValue()&&(l.cdn=n.hostname$.getValue());let u=n.intrinsicVideoSize$.getValue();u&&(l.videoSize=`${u.width}x${u.height}`);let c=n.currentBuffer$.getValue();c&&(l.buffer=Math.max(c.end-tt(t.state.positionExact$),0));let m=n.throughputEstimation$.getValue();m&&(l.speed=m);let h=n.videoBitrate$.getValue();h&&(l.bitrate=h);let y=n.currentVideoSegmentLength$.getValue();y&&(l.currentVideoSegmentLength=y);let b=n.currentAudioSegmentLength$.getValue();return b&&(l.currentAudioSegmentLength=b),l},gc=(i,e)=>nr(i,e,"mp4");var wn=require("@vkontakte/videoplayer-shared"),t9=require("@vkontakte/videoplayer-core"),bc="vk_player_prefer_traffic_saving_enabled",vc="vk_player_preferred_volume",yc="vk_player_prefer_volume_mute",As="vk_player_preferred_quality",wc="vk_player_preferred_rate",kc=i=>i>1?1:i<0?0:i,Ls=i=>wn.safeStorage.set(vc,kc(i).toString(10)),or=()=>{let i=wn.safeStorage.get(vc);return(0,wn.isNullable)(i)?void 0:kc(parseFloat(i))},Cc=(i,e)=>wn.safeStorage.set(As,JSON.stringify({videoId:i,value:e})),Bs=()=>wn.safeStorage.remove(As),Sc=i=>{let e=wn.safeStorage.get(As);if((0,wn.isNullable)(e))return;let{videoId:t,value:n}=JSON.parse(e);if(i!==t){Bs();return}return n},Pc=(i,e)=>{e?wn.safeStorage.set(i,"true"):wn.safeStorage.remove(i)},Tc=i=>wn.safeStorage.get(i)==="true",lr=i=>Pc(yc,i),Ic=()=>Tc(yc),Ec=i=>Pc(bc,i),Mc=()=>Tc(bc),Vc=i=>wn.safeStorage.set(wc,JSON.stringify({rate:i})),Ac=()=>{let i=wn.safeStorage.get(wc);if((0,wn.isNullable)(i))return;let{rate:e}=JSON.parse(i);return e};var vp=require("@vkontakte/videoplayer-core"),ms=require("@vkontakte/videoplayer-shared");function i2(i){let e,t,n,o,r,l,a,s,u,c,m,h,y,b,S,w,P,v=i[2].default,g=Ee(v,i,i[1],null),I=[{xmlns:"http://www.w3.org/2000/svg"},{width:"76"},{height:"45"},{fill:"none"},{"data-testid":"video-360-icon"},{role:"img"},i[0]],A={};for(let q=0;q<I.length;q+=1)A=oe(A,I[q]);return{c(){e=N("svg"),g&&g.c(),t=N("g"),n=N("path"),o=N("path"),r=N("path"),l=N("path"),a=N("path"),s=N("defs"),u=N("filter"),c=N("feFlood"),m=N("feColorMatrix"),h=N("feOffset"),y=N("feGaussianBlur"),b=N("feColorMatrix"),S=N("feBlend"),w=N("feBlend"),f(n,"fill","#fff"),f(n,"fill-rule","evenodd"),f(n,"d","M67 9.489A3.49 3.49 0 0 1 63.511 13 3.493 3.493 0 0 1 60 9.489 3.49 3.49 0 0 1 63.511 6 3.484 3.484 0 0 1 67 9.489m-5.003 0c0 .834.68 1.514 1.514 1.514.812 0 1.492-.68 1.492-1.514 0-.812-.68-1.492-1.492-1.492-.834 0-1.514.68-1.514 1.492"),f(n,"clip-rule","evenodd"),f(o,"fill","#fff"),f(o,"d","M26.86 15.183c1.372-.492 2.534-1.711 2.534-3.61C29.394 8.922 27.185 7 24.07 7c-1.965 0-3.573.784-4.67 2.29l-.108.149a1.333 1.333 0 0 0 .268 1.855c.536.402 1.295.343 1.736-.162.09-.102.164-.19.205-.247.594-.81 1.431-1.306 2.5-1.306 1.534 0 2.604.915 2.604 2.251 0 1.36-1.093 2.275-2.651 2.275h-.583a1.231 1.231 0 0 0 0 2.462h.583c1.744 0 2.907.985 2.907 2.392 0 1.453-1.186 2.462-2.884 2.462-1.296 0-2.201-.552-2.883-1.603a10 10 0 0 0-.2-.287 1.403 1.403 0 0 0-2.052-.246c-.494.42-.65 1.13-.305 1.68.072.116.146.227.218.322C20.132 23.137 21.678 24 23.999 24c3.28 0 5.628-2.04 5.628-4.924 0-2.204-1.395-3.4-2.767-3.893"),f(r,"fill","#fff"),f(r,"fill-rule","evenodd"),f(r,"d","M37.732 12.675c-.465 0-1 .046-1.511.164l2.584-3.74a1.338 1.338 0 1 0-2.203-1.518l-3.753 5.469c-1.418 2.133-1.837 3.822-1.837 5.276 0 3.47 2.558 5.674 6.186 5.674 3.604 0 6.162-2.392 6.162-5.768 0-3.236-2.349-5.557-5.628-5.557m-.534 8.746c-1.977 0-3.326-1.267-3.326-3.142 0-1.853 1.349-3.142 3.326-3.142 1.953 0 3.302 1.29 3.302 3.142 0 1.875-1.35 3.142-3.302 3.142M58 15.512c0 5.041-2.697 8.441-6.627 8.441s-6.628-3.4-6.628-8.441 2.698-8.442 6.628-8.442S58 10.47 58 15.512m-10.348 0c0 3.564 1.488 5.862 3.72 5.862s3.721-2.298 3.721-5.862-1.488-5.862-3.72-5.862-3.72 2.298-3.72 5.862Z"),f(r,"clip-rule","evenodd"),f(l,"fill","#fff"),f(l,"d","M67 23.5c0-1.318-1.201-3.094-4.199-4.673a1.5 1.5 0 1 1 1.398-2.654C67.452 17.886 70 20.433 70 23.5c0 3.126-2.556 5.554-6.088 7.27-3.633 1.766-8.825 3.062-15.259 3.722a1.5 1.5 0 0 1-.306-2.984c6.248-.641 11.057-1.882 14.253-3.436C65.897 26.47 67 24.8 67 23.5M38.879 35H38c-9.64 0-17.447-1.133-22.9-3.018-2.72-.941-4.94-2.099-6.506-3.468C7.019 27.138 6 25.445 6 23.5c0-1.64.785-3.073 1.908-4.255 1.119-1.179 2.66-2.205 4.42-3.086a1.5 1.5 0 1 1 1.343 2.682c-1.584.793-2.794 1.634-3.588 2.47C9.293 22.143 9 22.873 9 23.5c0 .807.407 1.74 1.568 2.755 1.17 1.022 2.996 2.02 5.513 2.892C21.106 30.885 28.55 32 38 32h.879l-1.44-1.44a1.5 1.5 0 0 1 2.122-2.12l3.999 3.998.01.011a1.5 1.5 0 0 1 .317 1.624 1.5 1.5 0 0 1-.326.488l-4 4a1.5 1.5 0 0 1-2.122-2.122L38.88 35Z"),f(a,"stroke","#000"),f(a,"stroke-linecap","round"),f(a,"stroke-linejoin","round"),f(a,"stroke-opacity",".12"),f(a,"stroke-width",".5"),f(a,"d","m7.908 19.245-.181-.173c1.146-1.206 2.714-2.248 4.49-3.137a1.75 1.75 0 1 1 1.566 3.13c-1.57.786-2.752 1.61-3.519 2.418-.762.802-1.014 1.474-1.014 2.017 0 .713.357 1.583 1.483 2.567 1.136.993 2.93 1.978 5.43 2.843 4.99 1.726 12.403 2.84 21.837 2.84h.275l-1.012-1.013a1.75 1.75 0 1 1 2.474-2.474l4 3.998h0l.012.013s0 0 0 0c.162.165.284.354.368.556q0 0 0 0l-.23.096A1.5 1.5 0 0 1 44 33.5q-.002.306-.113.573L7.907 19.245Zm0 0-.181-.173C6.576 20.284 5.75 21.775 5.75 23.5c0 2.04 1.07 3.796 2.68 5.202 1.599 1.398 3.85 2.569 6.589 3.516C20.506 34.116 28.343 35.25 38 35.25h.275zm29.824-6.82c-.3 0-.63.018-.965.063l2.244-3.247c.728-1.054-.026-2.491-1.306-2.491-.524 0-1.014.258-1.31.69l-3.752 5.468h0l-.002.003c-1.442 2.17-1.879 3.905-1.879 5.415 0 1.8.665 3.288 1.815 4.324 1.147 1.033 2.757 1.6 4.62 1.6 3.727 0 6.413-2.488 6.413-6.018 0-3.377-2.464-5.807-5.878-5.807m25.779.825c2.07 0 3.739-1.67 3.739-3.761 0-2.07-1.67-3.739-3.739-3.739a3.74 3.74 0 0 0-3.761 3.739 3.743 3.743 0 0 0 3.761 3.761m0-2.497a1.267 1.267 0 0 1-1.264-1.264c0-.671.566-1.242 1.264-1.242.674 0 1.242.568 1.242 1.242 0 .698-.57 1.264-1.242 1.264m-33.634 8.323c0-2.043-1.139-3.272-2.388-3.895 1.208-.629 2.155-1.846 2.155-3.609 0-2.82-2.357-4.822-5.575-4.822-2.04 0-3.724.818-4.871 2.392l-.109.149a1.583 1.583 0 0 0 .32 2.203c.635.476 1.542.411 2.074-.197.09-.103.17-.198.219-.264.553-.755 1.318-1.204 2.297-1.204.72 0 1.309.214 1.715.564.403.347.64.84.64 1.437 0 .608-.242 1.107-.653 1.457-.415.353-1.017.568-1.748.568h-.583a1.481 1.481 0 0 0 0 2.962h.583c.826 0 1.493.233 1.948.61.451.375.709.902.709 1.532 0 .654-.265 1.2-.718 1.586-.455.388-1.116.626-1.916.626-.61 0-1.117-.13-1.548-.375s-.801-.614-1.125-1.114a11 11 0 0 0-.206-.296 1.653 1.653 0 0 0-2.417-.292c-.577.49-.774 1.335-.356 2.004.075.119.152.236.23.339.704.945 1.462 1.652 2.352 2.121.892.47 1.9.692 3.094.692 3.383 0 5.877-2.121 5.877-5.174m7.32 2.095c-.934 0-1.7-.299-2.232-.8-.53-.5-.843-1.217-.843-2.092 0-.863.313-1.581.844-2.085s1.298-.807 2.232-.807c.92 0 1.682.303 2.21.807.529.503.842 1.222.842 2.085 0 .875-.314 1.593-.84 2.093-.53.5-1.29.799-2.212.799Zm14.176 3.032c2.044 0 3.772-.887 4.983-2.425 1.208-1.534 1.894-3.703 1.894-6.266s-.686-4.732-1.894-6.266c-1.211-1.539-2.94-2.426-4.983-2.426-2.044 0-3.773.887-4.984 2.426-1.208 1.534-1.894 3.703-1.894 6.266s.686 4.732 1.894 6.266c1.211 1.538 2.94 2.425 4.984 2.425m0-3.08c-1.017 0-1.874-.518-2.487-1.478-.618-.968-.984-2.382-.984-4.133 0-1.752.366-3.166.984-4.133.613-.96 1.47-1.48 2.487-1.48s1.873.52 2.486 1.48c.618.967.984 2.381.984 4.133 0 1.751-.366 3.165-.984 4.133-.613.96-1.47 1.479-2.486 1.479Zm11.312-2.075c2.975 1.567 4.065 3.279 4.065 4.452 0 1.148-.983 2.756-4.259 4.347-3.16 1.536-7.937 2.773-14.17 3.412a1.75 1.75 0 0 0 .358 3.482c6.45-.662 11.673-1.963 15.342-3.746 3.551-1.725 6.229-4.216 6.229-7.495 0-3.213-2.661-5.825-5.935-7.548a1.75 1.75 0 1 0-1.63 3.096"),f(t,"filter","url(#a)"),f(c,"flood-opacity","0"),f(c,"result","BackgroundImageFix"),f(m,"in","SourceAlpha"),f(m,"result","hardAlpha"),f(m,"values","0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0"),f(y,"stdDeviation","2.5"),f(b,"values","0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.16 0"),f(S,"in2","BackgroundImageFix"),f(S,"result","effect1_dropShadow_618_12297"),f(w,"in","SourceGraphic"),f(w,"in2","effect1_dropShadow_618_12297"),f(w,"result","shape"),f(u,"id","a"),f(u,"width","75"),f(u,"height","44"),f(u,"x",".5"),f(u,"y",".5"),f(u,"color-interpolation-filters","sRGB"),f(u,"filterUnits","userSpaceOnUse"),ge(e,A)},m(q,K){C(q,e,K),g&&g.m(e,null),p(e,t),p(t,n),p(t,o),p(t,r),p(t,l),p(t,a),p(e,s),p(s,u),p(u,c),p(u,m),p(u,h),p(u,y),p(u,b),p(u,S),p(u,w),P=!0},p(q,[K]){g&&g.p&&(!P||K&2)&&Ve(g,v,q,q[1],P?Me(v,q[1],K,null):Ae(q[1]),null),ge(e,A=Le(I,[{xmlns:"http://www.w3.org/2000/svg"},{width:"76"},{height:"45"},{fill:"none"},{"data-testid":"video-360-icon"},{role:"img"},K&1&&q[0]]))},i(q){P||(d(g,q),P=!0)},o(q){_(g,q),P=!1},d(q){q&&k(e),g&&g.d(q)}}}function n2(i,e,t){let{$$slots:n={},$$scope:o}=e;return i.$$set=r=>{t(0,e=oe(oe({},e),he(r))),"$$scope"in r&&t(1,o=r.$$scope)},e=he(e),[e,o,n]}var Rs=class extends j{constructor(e){super(),W(this,e,n2,i2,U,{})}},rr=Rs;var nl=require("@vkontakte/videoplayer-shared");var o2={auto_quality_invariant:"\u0410\u0432\u0442\u043E",auto_quality:"\u0410\u0432\u0442\u043E ({actual})",auto_quality_option:"\u0410\u0432\u0442\u043E",menu_quality:"\u041A\u0430\u0447\u0435\u0441\u0442\u0432\u043E",menu_traffic_saving:"\u042D\u043A\u043E\u043D\u043E\u043C\u0438\u044F \u0434\u0430\u043D\u043D\u044B\u0445",menu_playback_rate:"\u0421\u043A\u043E\u0440\u043E\u0441\u0442\u044C",menu_report:"\u0421\u043E\u043E\u0431\u0449\u0438\u0442\u044C \u043E \u043F\u0440\u043E\u0431\u043B\u0435\u043C\u0435",menu_pip:"\u041A\u0430\u0440\u0442\u0438\u043D\u043A\u0430 \u0432 \u043A\u0430\u0440\u0442\u0438\u043D\u043A\u0435",menu_copy_video_link:"\u0421\u043A\u043E\u043F\u0438\u0440\u043E\u0432\u0430\u0442\u044C \u0441\u0441\u044B\u043B\u043A\u0443 \u043D\u0430 \u0432\u0438\u0434\u0435\u043E",menu_copy_video_link_with_timestamp:"\u0421\u043A\u043E\u043F\u0438\u0440\u043E\u0432\u0430\u0442\u044C \u0441\u0441\u044B\u043B\u043A\u0443 \u043D\u0430 \u043A\u0430\u0434\u0440",menu_video_rotate:"\u041F\u043E\u0432\u0435\u0440\u043D\u0443\u0442\u044C",menu_video_loop_on:"\u0412\u043A\u043B\u044E\u0447\u0438\u0442\u044C \u043F\u043E\u0432\u0442\u043E\u0440\u0435\u043D\u0438\u0435",menu_video_loop_off:"\u041E\u0442\u043A\u043B\u044E\u0447\u0438\u0442\u044C \u043F\u043E\u0432\u0442\u043E\u0440\u0435\u043D\u0438\u0435",menu_chromecast:"Chromecast \u0442\u0440\u0430\u043D\u0441\u043B\u044F\u0446\u0438\u044F",menu_copy_debug:"\u041A\u043E\u043F\u0438\u0440\u043E\u0432\u0430\u0442\u044C \u0434\u0430\u043D\u043D\u044B\u0435 \u0434\u043B\u044F \u0434\u0438\u0430\u0433\u043D\u043E\u0441\u0442\u0438\u043A\u0438",menu_save_debug:"\u0421\u043E\u0445\u0440\u0430\u043D\u0438\u0442\u044C \u0434\u0430\u043D\u043D\u044B\u0435 \u0434\u043B\u044F \u0434\u0438\u0430\u0433\u043D\u043E\u0441\u0442\u0438\u043A\u0438",menu_debug_overlay:"\u0422\u0435\u0445\u043D\u0438\u0447\u0435\u0441\u043A\u0430\u044F \u0438\u043D\u0444\u043E\u0440\u043C\u0430\u0446\u0438\u044F",pip_dummy_title:"\u0412\u0438\u0434\u0435\u043E \u0432\u043E\u0441\u043F\u0440\u043E\u0438\u0437\u0432\u043E\u0434\u0438\u0442\u0441\u044F \u0432 \u0440\u0435\u0436\u0438\u043C\u0435 \u043A\u0430\u0440\u0442\u0438\u043D\u043A\u0430 \u0432 \u043A\u0430\u0440\u0442\u0438\u043D\u043A\u0435",submenu_quality:"\u041A\u0430\u0447\u0435\u0441\u0442\u0432\u043E",submenu_playback_rate:"\u0421\u043A\u043E\u0440\u043E\u0441\u0442\u044C",submenu_settings:"\u041D\u0430\u0441\u0442\u0440\u043E\u0439\u043A\u0438",submenu_traffic_saving:"\u042D\u043A\u043E\u043D\u043E\u043C\u0438\u044F \u0434\u0430\u043D\u043D\u044B\u0445",mobile_unmute:"\u0412\u043A\u043B\u044E\u0447\u0438\u0442\u044C \u0437\u0432\u0443\u043A",playing_ads:"\u0420\u0435\u043A\u043B\u0430\u043C\u0430 {timeleft}",skip_ads_now:"\u041F\u0440\u043E\u043F\u0443\u0441\u0442\u0438\u0442\u044C \u0440\u0435\u043A\u043B\u0430\u043C\u0443",skip_ads_after:"\u041F\u0440\u043E\u043F\u0443\u0441\u0442\u0438\u0442\u044C \u0440\u0435\u043A\u043B\u0430\u043C\u0443 \u0447\u0435\u0440\u0435\u0437 {time}\u0441",visit_advertiser:"\u041F\u0435\u0440\u0435\u0439\u0442\u0438 \u043D\u0430 \u0441\u0430\u0439\u0442",aria_timeline:"\u041F\u043E\u043B\u0437\u0443\u043D\u043E\u043A \u0432\u0440\u0435\u043C\u0435\u043D\u043D\u043E\u0439 \u0448\u043A\u0430\u043B\u044B",aria_timeline_value:"{position} (\u043E\u0431\u0449\u0430\u044F \u0434\u043B\u0438\u0442\u0435\u043B\u044C\u043D\u043E\u0441\u0442\u044C {duration}",aria_open_settings:"\u041E\u0442\u043A\u0440\u044B\u0442\u044C \u043D\u0430\u0441\u0442\u0440\u043E\u0439\u043A\u0438 \u0432\u0438\u0434\u0435\u043E\u043F\u043B\u0435\u0435\u0440\u0430",doubletap_seek_step:"{seconds} \u0441\u0435\u043A\u0443\u043D\u0434",playback_rate_1:"\u041E\u0431\u044B\u0447\u043D\u0430\u044F",playback_rate:"{multiplier}x",video360:"\u043F\u0430\u043D\u043E\u0440\u0430\u043C\u043D\u043E\u0435 \u0432\u0438\u0434\u0435\u043E",subtitles_caption:"\u0421\u0443\u0431\u0442\u0438\u0442\u0440\u044B",subtitles_auto:"{language} (\u0410\u0432\u0442\u043E\u043C\u0430\u0442\u0438\u0447\u0435\u0441\u043A\u0438\u0435)",subtitles_off:"\u0412\u044B\u043A\u043B.",subtitles_auto_caption:"\u0410\u0432\u0442\u043E\u043C\u0430\u0442\u0438\u0447\u0435\u0441\u043A\u0438\u0435 \u0441\u0443\u0431\u0442\u0438\u0442\u0440\u044B",subtitles_turn_on:"\u0412\u043A\u043B\u044E\u0447\u0438\u0442\u044C \u0441\u0443\u0431\u0442\u0438\u0442\u0440\u044B",subtitles_turn_off:"\u0412\u044B\u043A\u043B\u044E\u0447\u0438\u0442\u044C \u0441\u0443\u0431\u0442\u0438\u0442\u0440\u044B",traffic_saving_off:"\u041E\u0442\u043A\u043B.",traffic_saving_on:"\u0412\u043A\u043B.",traffic_saving_disable:"\u041E\u0442\u043A\u043B\u044E\u0447\u0435\u043D\u0430",traffic_saving_enable:"\u0412\u043A\u043B\u044E\u0447\u0435\u043D\u0430",traffic_saving_helper_text:"\u041F\u0440\u0438 \u0432\u043A\u043B\u044E\u0447\u0435\u043D\u0438\u0438 \u043A\u0430\u0447\u0435\u0441\u0442\u0432\u043E \u0432\u0438\u0434\u0435\u043E \u0431\u0443\u0434\u0435\u0442 \u0441\u043D\u0438\u0436\u0435\u043D\u043E \u0434\u043B\u044F \u044D\u043A\u043E\u043D\u043E\u043C\u0438\u0438 \u0442\u0440\u0430\u0444\u0438\u043A\u0430",tooltip_button_disabled:"\u041A\u043D\u043E\u043F\u043A\u0430 \u043D\u0435\u0434\u043E\u0441\u0442\u0443\u043F\u043D\u0430",tooltip_previous:"\u041F\u0440\u0435\u0434\u044B\u0434\u0443\u0449\u0435\u0435 \u0432\u0438\u0434\u0435\u043E",tooltip_restart:"\u041D\u0430\u0447\u0430\u0442\u044C \u0437\u0430\u043D\u043E\u0432\u043E",tooltip_play:"\u0421\u043C\u043E\u0442\u0440\u0435\u0442\u044C",tooltip_pause:"\u041F\u0430\u0443\u0437\u0430",tooltip_next:"\u0421\u043B\u0435\u0434\u0443\u044E\u0449\u0435\u0435 \u0432\u0438\u0434\u0435\u043E",tooltip_interactive_go_back:"\u0412\u0435\u0440\u043D\u0443\u0442\u044C\u0441\u044F \u043A \u043F\u0440\u0435\u0434\u044B\u0434\u0443\u0449\u0435\u0439 \u0433\u043B\u0430\u0432\u0435",tooltip_interactive_go_back_disabled:"\u0418\u0441\u0442\u043E\u0440\u0438\u044F \u043F\u0440\u043E\u0445\u043E\u0436\u0434\u0435\u043D\u0438\u044F \u043D\u0435\u0434\u043E\u0441\u0442\u0443\u043F\u043D\u0430",tooltip_interactive_go_back_disabled_first:"\u0412\u044B \u0441\u043C\u043E\u0442\u0440\u0438\u0442\u0435 \u043F\u0435\u0440\u0432\u0443\u044E \u0433\u043B\u0430\u0432\u0443",tooltip_interactive_go_back_disabled_limit:"\u041B\u0438\u043C\u0438\u0442 \u0432\u043E\u0437\u0432\u0440\u0430\u0442\u043E\u0432 \u0438\u0441\u0447\u0435\u0440\u043F\u0430\u043D",tooltip_chapter_without_interactive:"\u0412 \u044D\u0442\u043E\u0439 \u0433\u043B\u0430\u0432\u0435 \u043D\u0435\u0442 \u0438\u043D\u0442\u0435\u0440\u0430\u043A\u0442\u0438\u0432\u0430",tooltip_interactive_of_chapter_completed:"\u0418\u043D\u0442\u0435\u0440\u0430\u043A\u0442\u0438\u0432\u044B \u044D\u0442\u043E\u0439 \u0433\u043B\u0430\u0432\u044B \u0443\u0436\u0435 \u043F\u0440\u043E\u0439\u0434\u0435\u043D\u044B",tooltip_interactive_seek:"\u041F\u0435\u0440\u0435\u0439\u0442\u0438 \u043A \u0438\u043D\u0442\u0435\u0440\u0430\u043A\u0442\u0438\u0432\u0443",tooltip_interactive_graph_off:"\u041F\u043E\u043A\u0430\u0437\u0430\u0442\u044C \u043A\u0430\u0440\u0442\u0443 \u0441\u044E\u0436\u0435\u0442\u0430",tooltip_interactive_graph_on:"\u0421\u043A\u0440\u044B\u0442\u044C \u043A\u0430\u0440\u0442\u0443 \u0441\u044E\u0436\u0435\u0442\u0430",tooltip_live:"\u041F\u0435\u0440\u0435\u043C\u043E\u0442\u0430\u0442\u044C \u043D\u0430 \u0430\u043A\u0442\u0443\u0430\u043B\u044C\u043D\u044B\u0439 \u043B\u0430\u0439\u0432",tooltip_episodes:"\u042D\u043F\u0438\u0437\u043E\u0434\u044B",tooltip_volume:"\u0412\u043A\u043B\u044E\u0447\u0438\u0442\u044C \u0437\u0432\u0443\u043A",tooltip_volume_muted:"\u0412\u044B\u043A\u043B\u044E\u0447\u0438\u0442\u044C \u0437\u0432\u0443\u043A",tooltip_subtitles_off:"\u0412\u043A\u043B\u044E\u0447\u0438\u0442\u044C \u0441\u0443\u0431\u0442\u0438\u0442\u0440\u044B",tooltip_subtitles_on:"\u0412\u044B\u043A\u043B\u044E\u0447\u0438\u0442\u044C \u0441\u0443\u0431\u0442\u0438\u0442\u0440\u044B",tooltip_settings_off:"\u041E\u0442\u043A\u0440\u044B\u0442\u044C \u043D\u0430\u0441\u0442\u0440\u043E\u0439\u043A\u0438",tooltip_settings_on:"\u0417\u0430\u043A\u0440\u044B\u0442\u044C \u043D\u0430\u0441\u0442\u0440\u043E\u0439\u043A\u0438",tooltip_fullscreen_off:"\u041D\u0430 \u0432\u0435\u0441\u044C \u044D\u043A\u0440\u0430\u043D",tooltip_fullscreen_on:"\u0412\u044B\u0439\u0442\u0438 \u0438\u0437 \u043F\u043E\u043B\u043D\u043E\u044D\u043A\u0440\u0430\u043D\u043D\u043E\u0433\u043E \u0440\u0435\u0436\u0438\u043C\u0430",tooltip_chromecast_off:"\u0412\u043A\u043B\u044E\u0447\u0438\u0442\u044C Chromecast",tooltip_chromecast_on:"\u0412\u044B\u043A\u043B\u044E\u0447\u0438\u0442\u044C Chromecast",tooltip_episode_finished:"\u0412\u044B \u0443\u0436\u0435 \u0441\u0434\u0435\u043B\u0430\u043B\u0438 \u0441\u0432\u043E\u0439 \u0432\u044B\u0431\u043E\u0440",tooltip_episode_unfinished:"\u041D\u0435 \u043F\u0440\u043E\u0439\u0434\u0435\u043D\u043E",tooltip_disabled_when_interactive:"\u0418\u043D\u0442\u0435\u0440\u0430\u043A\u0442\u0438\u0432 \u0443\u0436\u0435 \u0438\u0434\u0451\u0442",tooltip_disabled_when_graph_on:"\u041A\u043D\u043E\u043F\u043A\u0430 \u043D\u0435\u0434\u043E\u0441\u0442\u0443\u043F\u043D\u0430 \u0432\u043E \u0432\u0440\u0435\u043C\u044F \u043F\u0440\u043E\u0441\u043C\u043E\u0442\u0440\u0430 \u043A\u0430\u0440\u0442\u044B",tooltip_interactive_interaction_time_indicator:"\u041D\u0430\u0436\u043C\u0438\u0442\u0435 \u043D\u0430 \u044D\u043B\u0435\u043C\u0435\u043D\u0442 \u0438\u043D\u0442\u0435\u0440\u0430\u043A\u0442\u0438\u0432\u0430",tooltip_vk_logo:"\u041E\u0442\u043A\u0440\u044B\u0442\u044C \u0432 VK \u0412\u0438\u0434\u0435\u043E",tooltip_vk_video_logo:"\u041F\u0435\u0440\u0435\u0439\u0442\u0438 \u0432 VK \u0412\u0438\u0434\u0435\u043E",download_video_caption:"\u0421\u043A\u0430\u0447\u0430\u0442\u044C \u0432\u0438\u0434\u0435\u043E",hotkey_helper_current_volume:"{value} %",hotkey_map_modal_title:"\u0411\u044B\u0441\u0442\u0440\u044B\u0435 \u043A\u043B\u0430\u0432\u0438\u0448\u0438",hotkey_map_modal_close_btn_text:"\u0417\u0430\u043A\u0440\u044B\u0442\u044C",hotkey_map_group_title_common:"\u041E\u0431\u0449\u0438\u0435",hotkey_map_group_title_playback:"\u0412\u043E\u0441\u043F\u0440\u043E\u0438\u0437\u0432\u0435\u0434\u0435\u043D\u0438\u0435",hotkey_map_group_title_subtitles:"\u0421\u0443\u0431\u0442\u0438\u0442\u0440\u044B",hotkey_map_group_title_episodes:"\u042D\u043F\u0438\u0437\u043E\u0434\u044B",hotkey_map_item_mute_description:"\u0412\u043A\u043B\u044E\u0447\u0438\u0442\u044C \u0438\u043B\u0438 \u043E\u0442\u043A\u043B\u044E\u0447\u0438\u0442\u044C \u0437\u0432\u0443\u043A",hotkey_map_item_mute_value:"m",hotkey_map_item_volume_up_description:"\u0423\u0432\u0435\u043B\u0438\u0447\u0438\u0442\u044C \u0433\u0440\u043E\u043C\u043A\u043E\u0441\u0442\u044C",hotkey_map_item_volume_up_value:"\u0421\u0442\u0440\u0435\u043B\u043A\u0430 \u0432\u0432\u0435\u0440\u0445",hotkey_map_item_volume_down_description:"\u0423\u043C\u0435\u043D\u044C\u0448\u0438\u0442\u044C \u0433\u0440\u043E\u043C\u043A\u043E\u0441\u0442\u044C",hotkey_map_item_volume_down_value:"\u0421\u0442\u0440\u0435\u043B\u043A\u0430 \u0432\u043D\u0438\u0437",hotkey_map_item_pip_description:"\u0421\u0432\u0435\u0440\u043D\u0443\u0442\u044C \u0438\u043B\u0438 \u0440\u0430\u0437\u0432\u0435\u0440\u043D\u0443\u0442\u044C \u043C\u0438\u043D\u0438-\u043F\u0440\u043E\u0438\u0433\u0440\u044B\u0432\u0430\u0442\u0435\u043B\u044C",hotkey_map_item_pip_value:"i",hotkey_map_item_full_screen_description:"\u0412\u043A\u043B\u044E\u0447\u0438\u0442\u044C \u0438\u043B\u0438 \u0432\u044B\u043A\u043B\u044E\u0447\u0438\u0442\u044C \u043F\u043E\u043B\u043D\u043E\u044D\u043A\u0440\u0430\u043D\u043D\u044B\u0439 \u0440\u0435\u0436\u0438\u043C",hotkey_map_item_full_screen_value:"f",hotkey_map_item_show_context_menu_description:"\u0421\u043A\u0440\u044B\u0442\u044C \u0438\u043B\u0438 \u043F\u043E\u043A\u0430\u0437\u0430\u0442\u044C \u043A\u043E\u043D\u0442\u0435\u043A\u0441\u0442\u043D\u043E\u0435 \u043C\u0435\u043D\u044E",hotkey_map_item_show_context_menu_value:"Shift + !",hotkey_map_item_show_hotkey_map_description:"\u0421\u043A\u0440\u044B\u0442\u044C \u0438\u043B\u0438 \u043F\u043E\u043A\u0430\u0437\u0430\u0442\u044C \u0441\u043F\u0438\u0441\u043E\u043A \u0433\u043E\u0440\u044F\u0447\u0438\u0445 \u043A\u043B\u0430\u0432\u0438\u0448",hotkey_map_item_show_hotkey_map_value:"Shift + ?",hotkey_map_item_play_toggle_description:"\u041F\u0440\u0438\u043E\u0441\u0442\u0430\u043D\u043E\u0432\u0438\u0442\u044C \u0438\u043B\u0438 \u043F\u0440\u043E\u0434\u043E\u043B\u0436\u0438\u0442\u044C \u0432\u043E\u0441\u043F\u0440\u043E\u0438\u0437\u0432\u0435\u0434\u0435\u043D\u0438\u0435",hotkey_map_item_play_toggle_value:"\u041F\u0440\u043E\u0431\u0435\u043B (\u0438\u043B\u0438 k)",hotkey_map_item_seek_backward_description:"\u041F\u0435\u0440\u0435\u043C\u043E\u0442\u0430\u0442\u044C \u0440\u043E\u043B\u0438\u043A \u043D\u0430 10 \u0441\u0435\u043A\u0443\u043D\u0434 \u043D\u0430\u0437\u0430\u0434",hotkey_map_item_seek_backward_value:"\u0421\u0442\u0440\u0435\u043B\u043A\u0430 \u0432\u043B\u0435\u0432\u043E (\u0438\u043B\u0438 j)",hotkey_map_item_seek_forward_description:"\u041F\u0435\u0440\u0435\u043C\u043E\u0442\u0430\u0442\u044C \u0440\u043E\u043B\u0438\u043A \u043D\u0430 10 \u0441\u0435\u043A\u0443\u043D\u0434 \u0432\u043F\u0435\u0440\u0451\u0434",hotkey_map_item_seek_forward_value:"\u0421\u0442\u0440\u0435\u043B\u043A\u0430 \u0432\u043F\u0440\u0430\u0432\u043E (\u0438\u043B\u0438 l)",hotkey_map_item_fast_seek_backward_description:"\u0423\u0441\u043A\u043E\u0440\u0435\u043D\u043D\u0430\u044F \u043F\u0435\u0440\u0435\u043C\u043E\u0442\u043A\u0430 \u043D\u0430\u0437\u0430\u0434",hotkey_map_item_fast_seek_backward_value:"Shift + \u0421\u0442\u0440\u0435\u043B\u043A\u0430 \u0432\u043B\u0435\u0432\u043E",hotkey_map_item_fast_seek_forward_description:"\u0423\u0441\u043A\u043E\u0440\u0435\u043D\u043D\u0430\u044F \u043F\u0435\u0440\u0435\u043C\u043E\u0442\u043A\u0430 \u0432\u043F\u0435\u0440\u0451\u0434",hotkey_map_item_fast_seek_forward_value:"Shift + \u0421\u0442\u0440\u0435\u043B\u043A\u0430 \u0432\u043F\u0440\u0430\u0432\u043E",hotkey_map_item_rate_down_description:"\u0423\u043C\u0435\u043D\u044C\u0448\u0438\u0442\u044C \u0441\u043A\u043E\u0440\u043E\u0441\u0442\u044C \u0432\u043E\u0441\u043F\u0440\u043E\u0438\u0437\u0432\u0435\u0434\u0435\u043D\u0438\u044F",hotkey_map_item_rate_down_value:"< (Shift + ,)",hotkey_map_item_rate_up_description:"\u0423\u0432\u0435\u043B\u0438\u0447\u0438\u0442\u044C \u0441\u043A\u043E\u0440\u043E\u0441\u0442\u044C \u0432\u043E\u0441\u043F\u0440\u043E\u0438\u0437\u0432\u0435\u0434\u0435\u043D\u0438\u044F",hotkey_map_item_rate_up_value:"> (Shift + .)",hotkey_map_item_prev_frame_description:"\u041F\u0435\u0440\u0435\u0439\u0442\u0438 \u043A \u043F\u0440\u0435\u0434\u044B\u0434\u0443\u0449\u0435\u043C\u0443 \u043A\u0430\u0434\u0440\u0443 <br />(\u043A\u043E\u0433\u0434\u0430 \u0432\u043E\u0441\u043F\u0440\u043E\u0438\u0437\u0432\u0435\u0434\u0435\u043D\u0438\u0435 \u043F\u0440\u0438\u043E\u0441\u0442\u0430\u043D\u043E\u0432\u043B\u0435\u043D\u043E)",hotkey_map_item_prev_frame_value:",",hotkey_map_item_next_frame_description:"\u041F\u0435\u0440\u0435\u0439\u0442\u0438 \u043A \u0441\u043B\u0435\u0434\u0443\u044E\u0449\u0435\u043C\u0443 \u043A\u0430\u0434\u0440\u0443 <br />(\u043A\u043E\u0433\u0434\u0430 \u0432\u043E\u0441\u043F\u0440\u043E\u0438\u0437\u0432\u0435\u0434\u0435\u043D\u0438\u0435 \u043F\u0440\u0438\u043E\u0441\u0442\u0430\u043D\u043E\u0432\u043B\u0435\u043D\u043E)",hotkey_map_item_next_frame_value:".",hotkey_map_item_jump_seek_description:"\u041F\u0435\u0440\u0435\u0439\u0442\u0438 \u043A \u043E\u043F\u0440\u0435\u0434\u0435\u043B\u0451\u043D\u043D\u043E\u043C\u0443 \u043C\u043E\u043C\u0435\u043D\u0442\u0443 \u0432\u0438\u0434\u0435\u043E <br />(\u043D\u0430\u043F\u0440\u0438\u043C\u0435\u0440, \u043F\u0440\u0438 \u043D\u0430\u0436\u0430\u0442\u0438\u0438 \u043D\u0430 \u0446\u0438\u0444\u0440\u0443 \xAB7\xBB \u0440\u043E\u043B\u0438\u043A \u0431\u0443\u0434\u0435\u0442 \u043F\u0435\u0440\u0435\u043C\u043E\u0442\u0430\u043D \u0434\u043E \u0432\u0440\u0435\u043C\u0435\u043D\u043D\u043E\u0439 \u043E\u0442\u043C\u0435\u0442\u043A\u0438, \u043A\u043E\u0442\u043E\u0440\u0430\u044F \u0441\u043E\u043E\u0442\u0432\u0435\u0442\u0441\u0442\u0432\u0443\u0435\u0442 70% \u043E\u0442 \u0434\u043B\u0438\u0442\u0435\u043B\u044C\u043D\u043E\u0441\u0442\u0438 \u0432\u0438\u0434\u0435\u043E)",hotkey_map_item_jump_seek_value:"0, 1, 2, 3, 4, 5, 6, 7, 8, 9",hotkey_map_item_subtitles_toggle_description:"\u0412\u043A\u043B\u044E\u0447\u0438\u0442\u044C \u0438\u043B\u0438 \u043E\u0442\u043A\u043B\u044E\u0447\u0438\u0442\u044C \u0441\u0443\u0431\u0442\u0438\u0442\u0440\u044B",hotkey_map_item_subtitles_toggle_value:"c",hotkey_map_item_prev_episode_description:"\u041F\u0435\u0440\u0435\u0439\u0442\u0438 \u043A \u043F\u0440\u0435\u0434\u044B\u0434\u0443\u0449\u0435\u043C\u0443 \u044D\u043F\u0438\u0437\u043E\u0434\u0443",hotkey_map_item_prev_episode_pc_value:"Ctrl + \u0421\u0442\u0440\u0435\u043B\u043A\u0430 \u0432\u043B\u0435\u0432\u043E",hotkey_map_item_prev_episode_mac_value:"Option + \u0421\u0442\u0440\u0435\u043B\u043A\u0430 \u0432\u043B\u0435\u0432\u043E",hotkey_map_item_next_episode_description:"\u041F\u0435\u0440\u0435\u0439\u0442\u0438 \u043A \u0441\u043B\u0435\u0434\u0443\u044E\u0449\u0435\u043C\u0443 \u044D\u043F\u0438\u0437\u043E\u0434\u0443",hotkey_map_item_next_episode_pc_value:"Ctrl + \u0421\u0442\u0440\u0435\u043B\u043A\u0430 \u0432\u043F\u0440\u0430\u0432\u043E",hotkey_map_item_next_episode_mac_value:"Option + \u0421\u0442\u0440\u0435\u043B\u043A\u0430 \u0432\u043F\u0440\u0430\u0432\u043E",waiting_live_day_value:"\u0434\u043D",waiting_live_hour_value:"\u0447",waiting_live_minute_value:"\u043C\u0438\u043D",waiting_live_second_value:"\u0441\u0435\u043A",waiting_live_colon:":",waiting_live_upcoming_title:"\u0422\u0440\u0430\u043D\u0441\u043B\u044F\u0446\u0438\u044F \u0435\u0449\u0435 \u043D\u0435 \u043D\u0430\u0447\u0430\u043B\u0430\u0441\u044C",waiting_live_timer_title:"\u0414\u043E \u043D\u0430\u0447\u0430\u043B\u0430 \u0442\u0440\u0430\u043D\u0441\u043B\u044F\u0446\u0438\u0438 \u043E\u0441\u0442\u0430\u043B\u043E\u0441\u044C",waiting_record_title:"\u0422\u0440\u0430\u043D\u0441\u043B\u044F\u0446\u0438\u044F \u0437\u0430\u0432\u0435\u0440\u0448\u0438\u043B\u0430\u0441\u044C, \u0438 \u0437\u0430\u043F\u0438\u0441\u044C \u0441\u043A\u043E\u0440\u043E \u0441\u0442\u0430\u043D\u0435\u0442 \u0434\u043E\u0441\u0442\u0443\u043F\u043D\u0430",aria_label_video_player:"\u0412\u0438\u0434\u0435\u043E \u043F\u043B\u0435\u0435\u0440",aria_label_spherical_control:"\u041A\u043E\u043D\u0442\u0440\u043E\u043B\u043B\u0435\u0440 \u0434\u043B\u044F \u0441\u0444\u0435\u0440\u0438\u0447\u0435\u0441\u043A\u043E\u0433\u043E \u0432\u0438\u0434\u0435\u043E. \u0418\u0441\u043F\u043E\u043B\u044C\u0437\u0443\u0439\u0442\u0435 \u043A\u043B\u0430\u0432\u0438\u0448\u0438 \u0441\u043E \u0441\u0442\u0440\u0435\u043B\u043A\u0430\u043C\u0438 \u0434\u043B\u044F \u043F\u0430\u043D\u043E\u0440\u0430\u043C\u0438\u0440\u043E\u0432\u0430\u043D\u0438\u044F \u0432\u0438\u0434\u0435\u043E.",aria_label_debug_panel:"\u041E\u0431\u043B\u0430\u0441\u0442\u044C \u0441 \u0442\u0435\u0445\u043D\u0438\u0447\u0435\u0441\u043A\u043E\u0439 \u0438\u043D\u0444\u043E\u0440\u043C\u0430\u0446\u0438\u0435\u0439, \u0441\u0434\u0435\u043B\u0430\u0439\u0442\u0435 \u0441\u043A\u0440\u0438\u043D\u0448\u043E\u0442 \u0434\u043B\u044F \u0442\u0435\u0445\u043F\u043E\u0434\u0434\u0435\u0440\u0436\u043A\u0438",aria_label_new_tab_alert:"\u041E\u0442\u043A\u0440\u043E\u0435\u0442\u0441\u044F \u0432 \u043D\u043E\u0432\u043E\u0439 \u0432\u043A\u043B\u0430\u0434\u043A\u0435.",aria_label_context_menu_open:"\u041E\u0442\u043A\u0440\u044B\u0442\u044C \u043A\u043E\u043D\u0442\u0435\u043A\u0441\u0442\u043D\u043E\u0435 \u043C\u0435\u043D\u044E",aria_label_context_menu_close:"\u0417\u0430\u043A\u0440\u044B\u0442\u044C \u043A\u043E\u043D\u0442\u0435\u043A\u0441\u0442\u043D\u043E\u0435 \u043C\u0435\u043D\u044E",aria_label_menu_quality:"\u041A\u0430\u0447\u0435\u0441\u0442\u0432\u043E: {actual}",aria_label_menu_rate:"\u0421\u043A\u043E\u0440\u043E\u0441\u0442\u044C: {actual}",aria_label_menu_traffic_saving:"\u042D\u043A\u043E\u043D\u043E\u043C\u0438\u044F \u0434\u0430\u043D\u043D\u044B\u0445: {actual}",aria_label_menu_subtitle:"\u0421\u0443\u0431\u0442\u0438\u0442\u0440\u044B: {actual}",aria_label_menu_download:"\u0421\u043A\u0430\u0447\u0430\u0442\u044C \u0432\u0438\u0434\u0435\u043E",aria_label_menu_debug_overlay_enable:"\u0412\u043A\u043B\u044E\u0447\u0438\u0442\u044C \u043E\u0442\u043E\u0431\u0440\u0430\u0436\u0435\u043D\u0438\u0435 \u0442\u0435\u0445\u043D\u0438\u0447\u0435\u0441\u043A\u043E\u0439 \u0438\u043D\u0444\u043E\u0440\u043C\u0430\u0446\u0438\u0438",aria_label_menu_debug_overlay_disable:"\u0412\u044B\u043A\u043B\u044E\u0447\u0438\u0442\u044C \u043E\u0442\u043E\u0431\u0440\u0430\u0436\u0435\u043D\u0438\u0435 \u0442\u0435\u0445\u043D\u0438\u0447\u0435\u0441\u043A\u043E\u0439 \u0438\u043D\u0444\u043E\u0440\u043C\u0430\u0446\u0438\u0438",aria_label_menu_rotate:"\u041F\u043E\u0432\u0435\u0440\u043D\u0443\u0442\u044C \u0432\u0438\u0434\u0435\u043E \u043D\u0430 90 \u0433\u0440\u0430\u0434\u0443\u0441\u043E\u0432",aria_label_menu_loop:"\u041F\u0435\u0440\u0435\u043A\u043B\u044E\u0447\u0435\u043D\u0438\u0435 \u0440\u0435\u0436\u0438\u043C\u0430 \u043F\u043E\u0432\u0442\u043E\u0440\u0435\u043D\u0438\u044F",aria_label_submenu_back:"\u0412\u0435\u0440\u043D\u0443\u0442\u044C\u0441\u044F \u0432 \u043C\u0435\u043D\u044E \u043D\u0430\u0441\u0442\u0440\u043E\u0435\u043A",aria_label_submenu_traffic_saving_off:"\u0412\u044B\u043A\u043B\u044E\u0447\u0438\u0442\u044C \u0440\u0435\u0436\u0438\u043C \u044D\u043A\u043E\u043D\u043E\u043C\u0438\u0438 \u0434\u0430\u043D\u043D\u044B\u0445",aria_label_submenu_traffic_saving_on:"\u0412\u043A\u043B\u044E\u0447\u0438\u0442\u044C \u0440\u0435\u0436\u0438\u043C \u044D\u043A\u043E\u043D\u043E\u043C\u0438\u0438 \u0434\u0430\u043D\u043D\u044B\u0445"},Lc=o2;var l2={mobile_unmute:"Unmute",auto_quality_invariant:"Auto",auto_quality:"Auto ({actual})",auto_quality_option:"Auto",menu_quality:"Quality",menu_playback_rate:"Playback rate",menu_traffic_saving:"Data saving",menu_report:"Report a problem",menu_pip:"Picture in picture",menu_copy_video_link:"Copy video link",menu_copy_video_link_with_timestamp:"Copy link with timestamp",menu_video_rotate:"Rotate",menu_video_loop_on:"Enable loop",menu_video_loop_off:"Disable loop",menu_chromecast:"Chromecast stream",menu_copy_debug:"Copy debug info",menu_save_debug:"Save debug info",menu_debug_overlay:"Tech stats",pip_dummy_title:"Video plays in picture-in-picture mode",submenu_quality:"Quality",submenu_playback_rate:"Playback rate",submenu_traffic_saving:"Data saving",submenu_settings:"Settings",playing_ads:"Ads {timeleft}",skip_ads_after:"Skip ads",skip_ads_now:"Ads can be skipped in {time}s",visit_advertiser:"Visit site",aria_timeline:"Time scale slider",aria_timeline_value:"{position} out of {duration}",aria_open_settings:"Open video player settings",doubletap_seek_step:"{seconds} seconds",playback_rate_1:"Normal",playback_rate:"{multiplier}x",video360:"spherical video",subtitles_caption:"Subtitles",subtitles_auto:"{language} (Auto-generated)",subtitles_off:"Off",subtitles_auto_caption:"Auto subtitles",subtitles_turn_on:"Turn on subtitles",subtitles_turn_off:"Turn off subtitles",traffic_saving_off:"Off",traffic_saving_on:"On",traffic_saving_disable:"Disabled",traffic_saving_enable:"Enabled",traffic_saving_helper_text:"When turned on the video quality will be reduced to save data",tooltip_button_disabled:"Button disabled",tooltip_previous:"Previous video",tooltip_restart:"Watch again",tooltip_play:"Play",tooltip_pause:"Pause",tooltip_next:"Next video",tooltip_interactive_go_back:"Back to previous chapter",tooltip_interactive_go_back_disabled:"Interactive history unavailable",tooltip_interactive_go_back_disabled_first:"You're watching the first chapter",tooltip_interactive_go_back_disabled_limit:"Go-back limit exceeded",tooltip_chapter_without_interactive:"This chapter has no interactive segment",tooltip_interactive_of_chapter_completed:"Chapter's interactive segments already watched",tooltip_interactive_seek:"Go to interactive",tooltip_interactive_graph_off:"Show interactive graph",tooltip_interactive_graph_on:"Hide interactive graph",tooltip_live:"Go to the live edge",tooltip_episodes:"Episodes",tooltip_volume:"Turn volume off",tooltip_volume_muted:"Turn volume on",tooltip_subtitles_off:"Turn subtitles on",tooltip_subtitles_on:"Turn subtitles off",tooltip_settings_off:"Open settings",tooltip_settings_on:"Close settings",tooltip_fullscreen_off:"Enter fullscreen mode",tooltip_fullscreen_on:"Exit fullscreen mode",tooltip_chromecast_off:"Turn Chromecast on",tooltip_chromecast_on:"Turn Chromecast off",tooltip_episode_finished:"You have already viewed interactive episode",tooltip_episode_unfinished:"Interactive episode not finished",tooltip_disabled_when_interactive:"Interactive video in progress",tooltip_disabled_when_graph_on:"Button is disabled when graph is opened",tooltip_interactive_interaction_time_indicator:"Press the interactive element",tooltip_vk_logo:"Open in VK Video",tooltip_vk_video_logo:"Go to VK Video",download_video_caption:"Download video",hotkey_helper_current_volume:"{value} %",hotkey_map_modal_title:"Keyboard shortcuts",hotkey_map_modal_close_btn_text:"Close",hotkey_map_group_title_common:"Common",hotkey_map_group_title_playback:"Playback",hotkey_map_group_title_subtitles:"Subtitles",hotkey_map_group_title_episodes:"Episodes",hotkey_map_item_mute_description:"Toggle mute",hotkey_map_item_mute_value:"m",hotkey_map_item_volume_up_description:"Increase volume",hotkey_map_item_volume_up_value:"Arrow up",hotkey_map_item_volume_down_description:"Decrease volume",hotkey_map_item_volume_down_value:"Arrow down",hotkey_map_item_pip_description:"Toggle miniplayer",hotkey_map_item_pip_value:"i",hotkey_map_item_full_screen_description:"Toggle full screen",hotkey_map_item_full_screen_value:"f",hotkey_map_item_show_context_menu_description:"Hide or show context menu",hotkey_map_item_show_context_menu_value:"Shift + !",hotkey_map_item_show_hotkey_map_description:"Hide or show list of hotkeys",hotkey_map_item_show_hotkey_map_value:"Shift + ?",hotkey_map_item_play_toggle_description:"Toggle play/pause",hotkey_map_item_play_toggle_value:"Space (or k)",hotkey_map_item_seek_backward_description:"Rewind 10 seconds",hotkey_map_item_seek_backward_value:"Arrow left (or j)",hotkey_map_item_seek_forward_description:"Forward 10 seconds",hotkey_map_item_seek_forward_value:"Arrow right (or l)",hotkey_map_item_fast_seek_backward_description:"Fast rewind",hotkey_map_item_fast_seek_backward_value:"Shift + Arrow left",hotkey_map_item_fast_seek_forward_description:"Fast forward",hotkey_map_item_fast_seek_forward_value:"Shift + Arrow right",hotkey_map_item_rate_down_description:"Decrease playback rate",hotkey_map_item_rate_down_value:"< (Shift + ,)",hotkey_map_item_rate_up_description:"Increase playback rate",hotkey_map_item_rate_up_value:"> (Shift + .)",hotkey_map_item_prev_frame_description:"Previous frame (while paused)",hotkey_map_item_prev_frame_value:",",hotkey_map_item_next_frame_description:"Next frame (while paused)",hotkey_map_item_next_frame_value:".",hotkey_map_item_jump_seek_description:"Seek to specific point in the video (7 advances to 70% of duration)",hotkey_map_item_jump_seek_value:"0, 1, 2, 3, 4, 5, 6, 7, 8, 9",hotkey_map_item_subtitles_toggle_description:"Toggle captions ON/OFF",hotkey_map_item_subtitles_toggle_value:"c",hotkey_map_item_prev_episode_description:"Seek to previous episode",hotkey_map_item_prev_episode_pc_value:"Ctrl + Arrow left",hotkey_map_item_prev_episode_mac_value:"Option + Arrow left",hotkey_map_item_next_episode_description:"Seek to next episode",hotkey_map_item_next_episode_pc_value:"Ctrl + Arrow right",hotkey_map_item_next_episode_mac_value:"Option + Arrow right",waiting_live_day_value:"d",waiting_live_hour_value:"h",waiting_live_minute_value:"min",waiting_live_second_value:"sec",waiting_live_colon:":",waiting_live_upcoming_title:"The broadcast hasn't started yet",waiting_live_timer_title:"Before the start of the broadcast left",waiting_record_title:"The broadcast has ended and the recording will be available soon",aria_label_video_player:"Video player",aria_label_spherical_control:"Spherical video control. Use the arrow keys to pan the video.",aria_label_debug_panel:"Technical information area, take a screenshot for technical support",aria_label_new_tab_alert:"Opens in a new tab.",aria_label_context_menu_open:"Open context menu",aria_label_context_menu_close:"Close context menu",aria_label_menu_quality:"Quality: {actual}",aria_label_menu_rate:"Rate: {actual}",aria_label_menu_traffic_saving:"Data saving: {actual}",aria_label_menu_subtitle:"Subtitles: {actual}",aria_label_menu_download:"Download video",aria_label_menu_debug_overlay_enable:"Enable display of technical information",aria_label_menu_debug_overlay_disable:"Disable display of technical information",aria_label_menu_rotate:"Rotate video 90 degrees",aria_label_menu_loop:"Toggle loop",aria_label_submenu_back:"Return to settings menu",aria_label_submenu_traffic_saving_off:"Disable data saving mode",aria_label_submenu_traffic_saving_on:"Enable data saving mode"},Bc=l2;var lo=new Map;lo.set(nl.InterfaceLanguage.EN,Bc);lo.set(nl.InterfaceLanguage.RU,Lc);var Rc=new Map,Ds=({language:i,pack:e,fallback:t})=>{if(lo.has(i)){let n=lo.get(i);lo.set(i,nt(nt({},n),e))}else lo.set(i,e);Rc.set(i,t)},Ns=i=>lo.has(i),Os=(i,e,t,n)=>{var l;let o=lo.get(i),r=o==null?void 0:o[e];if((0,nl.isNullable)(r)){let a=(l=Rc.get(i))!=null?l:n,s=a?lo.get(a):void 0;r=s==null?void 0:s[e]}return(0,nl.isNullable)(r)?e+Object.values(t!=null?t:{}).join(" "):t?r.replaceAll(/{(\w+?)}/g,(a,s)=>{var u;return(u=t[s])!=null?u:""}):r},Y=(i,e)=>{let{interfaceLanguage$:t}=it(),n=tt(t),o=Ut();return Os(n,i,e,o.defaultLanguage)};var P9=require("@vkontakte/videoplayer-core");var ol;(function(i){i.fatal="fatal",i.error="error",i.warning="warning",i.log="log",i.info="info",i.debug="debug",i.critical="critical"})(ol||(ol={}));var r2=/^\s*at (?:(.*?) ?\()?((?:file|https?|blob|chrome-extension|address|native|eval|webpack|<anonymous>|[-a-z]+:|.*bundle|\/).*?)(?::(\d+))?(?::(\d+))?\)?\s*$/i,s2=/^\s*(.*?)(?:\((.*?)\))?(?:^|@)?((?:file|https?|blob|chrome|webpack|resource|moz-extension).*?:\/.*?|\[native code\]|[^@]*(?:bundle|\d+\.js))(?::(\d+))?(?::(\d+))?\s*$/i,a2=/^\s*at (?:((?:\[object object\])?.+) )?\(?((?:file|ms-appx|https?|webpack|blob):.*?):(\d+)(?::(\d+))?\)?\s*$/i,sr="?",u2="X-Sentry-Auth",f2=/^(?:(\w+):)\/\/(?:([\w-]+)(?::(\w+))?@)([\w.-]+)(?::(\d+))?\/(.+)/;function c2(i){if(!i.stack)return null;let e=[],t=i.stack.split(`
13
- `),n,o;for(let r=0;r<t.length;++r){if(n=r2.exec(t[r]))o={filename:n[2]&&n[2].indexOf("address at ")===0?n[2].substr(11):n[2],function:n[1]||sr,lineno:n[3]?+n[3]:null,colno:n[4]?+n[4]:null};else if(n=a2.exec(t[r]))o={filename:n[2],function:n[1]||sr,lineno:+n[3],colno:n[4]?+n[4]:null};else if(n=s2.exec(t[r]))r===0&&!n[5]&&i.columnNumber!==void 0&&(e[0].column=i.columnNumber+1),o={filename:n[3],function:n[1]||sr,lineno:n[4]?+n[4]:null,colno:n[5]?+n[5]:null};else continue;!o.function&&o.lineno&&(o.function=sr),e.push(o)}return e.length?{value:Dc(i),type:i.name,stacktrace:{frames:e.reverse()}}:null}function Dc(i){return(i&&i.message||"No error message").split(`
14
- `).filter(t=>!!t)[0]}function d2(i){try{let e=c2(i);if(e)return e}catch(e){}return{value:Dc(i),type:i&&i.name,stacktrace:{frames:[]}}}function m2(){return"xxxxxxxxxxxx4xxxyxxxxxxxxxxxxxxx".replace(/[xy]/g,i=>{let e=Math.random()*16|0;return(i==="x"?e:e&3|8).toString(16)})}var ar=class{constructor(e){if(e&&e.dsn){let t=f2.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 Lt(nt({},this.getRequestBlank()),{exception:{values:[d2(e)]}})}report(e){this.send(this.prepare(e))}send(e){!this.apiUrl||!e||this.createRequest(e)}createRequest(e){let t=new XMLHttpRequest;t.open("POST",this.apiUrl,!0),t.setRequestHeader("Content-type","application/json"),t.setRequestHeader(u2,this.authHeader||""),t.send(JSON.stringify(e))}getRequestBlank(){return{platform:"javascript",event_id:m2(),sdk:{name:"micro-sentry.javascript.core",version:"0.0.0"},timestamp:Date.now()/1e3,environment:this.environment}}};function Nc(i,e){return Object.prototype.toString.call(e)==="[object RegExp]"?e.test(i):typeof e=="string"?i.indexOf(e)!==-1:!1}function p2(){return window}var ur=class i extends ar{constructor(e,t=p2()){super(e),this.options=e,this.window=t,this.destroyed=!1,this._state={};let{plugins:n=[],beforeSend:o=u=>u,beforeBreadcrumb:r=u=>u,blacklistUrls:l=[],ignoreErrors:a=[],release:s=void 0}=this.options||{};this.plugins=n.map(u=>new u(this)),this.beforeSend=o,this.beforeBreadcrumb=r,this.blacklistUrls=l,this.ignoreErrors=a,this.release=s}get state(){return this._state}clearState(){this._state={}}setTags(e){return this.setKeyState("tags",nt({},e)),this}setTag(e,t){return this.extendState({tags:{[e]:t}}),this}setExtra(e,t){return this.extendState({extra:{[e]:t}}),this}setExtras(e){return this.setKeyState("extra",nt({},e)),this}setUser(e){return this.setKeyState("user",nt({},e)),this}clone(){let e=new i(Lt(nt({},this.options),{plugins:[]}));return e.extendState(this.state),e}withScope(e){let t=this.clone();e(t),t.destroy(),this.setBreadcrumbs(void 0)}addBreadcrumb(e){this.extendState({breadcrumbs:[nt({timestamp:Date.now()/1e3},this.beforeBreadcrumb(e))]})}setBreadcrumbs(e){this.setKeyState("breadcrumbs",e)}captureMessage(e,t){this.send(Lt(nt({},this.getRequestBlank()),{message:e,level:t}))}destroy(){this.destroyed=!0,this.plugins.forEach(e=>{e.destroy&&e.destroy()})}isIgnoredError(e){return this.ignoreErrors.length?this.getPossibleEventMessages(e).some(t=>this.ignoreErrors.some(n=>Nc(t,n))):!1}getRequestBlank(){return nt(Lt(nt({request:{url:this.window.location.toString(),headers:{"User-Agent":this.window.navigator.userAgent}}},super.getRequestBlank()),{sdk:{name:"micro-sentry.javascript.browser",version:"0.0.0"}}),this.state)}send(e){this.destroyed||this.isDeniedUrl(e)||this.isIgnoredError(e)||(super.send(this.beforeSend(nt({release:this.release},e))),this.setBreadcrumbs(void 0))}getPossibleEventMessages(e){if(e.message)return[e.message];if(e.exception)try{let{type:t="",value:n=""}=e.exception.values&&e.exception.values[0]||{};return[`${n}`,`${t}: ${n}`]}catch(t){return[]}return[]}isDeniedUrl(e){if(!this.blacklistUrls.length)return!1;let t=this.getEventFilterUrl(e);return t?this.blacklistUrls.some(n=>Nc(t,n)):!1}getEventFilterUrl(e){try{if(e.exception){let t=e.exception.values&&e.exception.values[0].stacktrace&&e.exception.values[0].stacktrace.frames;return t&&t[t.length-1].filename||null}return null}catch(t){return null}}extendState(e){this._state=Object.keys(e).reduce((t,n)=>{let o=this._state[n],r=Array.isArray(o)?o:null,l=e[n],a=Array.isArray(l)?l:null;return Lt(nt({},t),{[n]:r||a?[...r||[],...a||[]]:nt(nt({},typeof o!="string"?o:{}),typeof l!="string"?l:{})})},this._state)}setKeyState(e,t){this._state[e]=t}};var Ro=require("@vkontakte/videoplayer-shared");var fr=null,Do=class{constructor(e,t,n={}){!fr&&e.dsn&&(this.sentryClient=new ur({dsn:e.dsn,environment:t.env}),this.version=t.version,this.sentrySubscription=new Ro.Subscription,this.options=e,this.context=n,fr=this)}destroy(){var e,t;(e=this.sentryClient)==null||e.destroy(),(t=this.sentrySubscription)==null||t.unsubscribe(),fr=null}logIError(e,t=!1){e.thrown&&this.report(e.thrown,{fatal:t,errorType:e.id,category:e.category},{message:e.message,errorData:e.data})}report(e,t={},n={}){let{sentryClient:o,context:r,options:l}=this,{sampleRate:a=0,whiteErrorIdList:s,whiteErrorCategoryList:u=[],blackErrorIdList:c,blackErrorCategoryList:m}=l,{errorType:h,category:y}=t;if((0,Ro.isNonNullable)(y)&&m.includes(y)||(0,Ro.isNonNullable)(h)&&c.includes(h))return;if(Math.random()<=a||(0,Ro.isNonNullable)(y)&&u.includes(y)||(0,Ro.isNonNullable)(h)&&s.includes(h)){Object.keys(t).length&&o.setTags(nt({version:this.version},t)),(Object.keys(r).length||Object.keys(n).length)&&o.setExtras(nt(nt({},r),n));try{h&&o.captureMessage(h,t.fatal?ol.fatal:ol.error),o.report(e)}catch(S){console.error(S)}}}static getInstance(){return fr}};var cr=i=>{if(i.requestFullscreen)return i.requestFullscreen();if(i.msRequestFullscreen)return i.msRequestFullscreen();if(i.webkitRequestFullscreen)return i.webkitRequestFullscreen();if(i.mozRequestFullScreen)return i.mozRequestFullScreen();let e=i.querySelector("video");return e!=null&&e.webkitEnterFullscreen?e.webkitEnterFullscreen():Promise.reject()},dr=i=>i.exitFullscreen?i.exitFullscreen():i.msExitFullscreen?i.msExitFullscreen():i.webkitExitFullscreen?i.webkitExitFullscreen():i.mozCancelFullScreen?i.mozCancelFullScreen():Promise.reject(),Oc=i=>{let e=i;return e!=null&&e.webkitExitFullscreen?e==null?void 0:e.webkitExitFullscreen():Promise.reject()},_o=()=>{let i=document;return!!(i.fullscreenElement||i.mozFullScreenElement||i.webkitFullscreenElement||i.msFullscreenElement)},mr=i=>{document.addEventListener("fullscreenchange",i),document.addEventListener("webkitfullscreenchange",i),document.addEventListener("mozfullscreenchange",i),document.addEventListener("MSFullscreenChange",i)},pr=i=>{document.removeEventListener("fullscreenchange",i),document.removeEventListener("webkitfullscreenchange",i),document.removeEventListener("mozfullscreenchange",i),document.removeEventListener("MSFullscreenChange",i)},Fc=i=>{let e=window.screen;return(o=>ut(void 0,null,function*(){return e.orientation?e.orientation.lock(o):e.mozLockOrientation?e.mozLockOrientation(o):e.msLockOrientation?e.msLockOrientation(o):Promise.reject()}))(((o={width:0,height:0})=>o.width<=o.height?"portrait":"landscape")(i))};var Fs=require("@vkontakte/videoplayer-shared"),Hc=()=>({title:Y("hotkey_map_modal_title"),closeBtnText:Y("hotkey_map_modal_close_btn_text"),groups:[{title:Y("hotkey_map_group_title_common"),items:[{description:Y("hotkey_map_item_mute_description"),value:Y("hotkey_map_item_mute_value")},{description:Y("hotkey_map_item_volume_up_description"),value:Y("hotkey_map_item_volume_up_value")},{description:Y("hotkey_map_item_volume_down_description"),value:Y("hotkey_map_item_volume_down_value")},{description:Y("hotkey_map_item_pip_description"),value:Y("hotkey_map_item_pip_value")},{description:Y("hotkey_map_item_full_screen_description"),value:Y("hotkey_map_item_full_screen_value")},{description:Y("hotkey_map_item_show_context_menu_description"),value:Y("hotkey_map_item_show_context_menu_value")},{description:Y("hotkey_map_item_show_hotkey_map_description"),value:Y("hotkey_map_item_show_hotkey_map_value")}]},{title:Y("hotkey_map_group_title_playback"),items:[{description:Y("hotkey_map_item_play_toggle_description"),value:Y("hotkey_map_item_play_toggle_value")},{description:Y("hotkey_map_item_seek_backward_description"),value:Y("hotkey_map_item_seek_backward_value")},{description:Y("hotkey_map_item_seek_forward_description"),value:Y("hotkey_map_item_seek_forward_value")},{description:Y("hotkey_map_item_fast_seek_backward_description"),value:Y("hotkey_map_item_fast_seek_backward_value")},{description:Y("hotkey_map_item_fast_seek_forward_description"),value:Y("hotkey_map_item_fast_seek_forward_value")},{description:Y("hotkey_map_item_rate_down_description"),value:Y("hotkey_map_item_rate_down_value")},{description:Y("hotkey_map_item_rate_up_description"),value:Y("hotkey_map_item_rate_up_value")},{description:Y("hotkey_map_item_prev_frame_description"),value:Y("hotkey_map_item_prev_frame_value")},{description:Y("hotkey_map_item_next_frame_description"),value:Y("hotkey_map_item_next_frame_value")},{description:Y("hotkey_map_item_jump_seek_description"),value:Y("hotkey_map_item_jump_seek_value")}]},{title:Y("hotkey_map_group_title_subtitles"),items:[{description:Y("hotkey_map_item_subtitles_toggle_description"),value:Y("hotkey_map_item_subtitles_toggle_value")}]},{title:Y("hotkey_map_group_title_episodes"),items:[{description:Y("hotkey_map_item_prev_episode_description"),value:(0,Fs.isMacLike)()?Y("hotkey_map_item_prev_episode_mac_value"):Y("hotkey_map_item_prev_episode_pc_value")},{description:Y("hotkey_map_item_next_episode_description"),value:(0,Fs.isMacLike)()?Y("hotkey_map_item_next_episode_mac_value"):Y("hotkey_map_item_next_episode_pc_value")}]}]});var ho=require("@vkontakte/videoplayer-shared");var No=class{constructor(){this.isRequested=!1;this.videoElement=void 0;this.playerContainer=void 0;this.externalEventHandlers={};this.eventHandlers={enterpictureinpicture:this.onEnterPictureInPicture.bind(this),leavepictureinpicture:this.onLeavePictureInPicture.bind(this),resize:(0,ho.debounceFn)(this.onResize.bind(this),300)};this.info={isActive$:new ho.ValueSubject(this.isActive()),type:0}}isSupported(){let e=(0,ho.getCurrentBrowser)().browser===ho.CurrentClientBrowser.Yandex;return document.pictureInPictureEnabled&&!e}isActive(){return this.isSupported()&&!!document.pictureInPictureElement}setContext(e){this.svelteContext=e}revealPictureInPicture(){return ut(this,null,function*(){this.isRequested&&(this.unregistryEventHandlers(),yield this.request(),this.registryEventHandlers())})}request(){return ut(this,null,function*(){var e;if(!(!this.isSupported()||this.isActive()))try{yield(e=this.videoElement)==null?void 0:e.requestPictureInPicture()}catch(t){this.isRequested=!1}})}remove(){return ut(this,null,function*(){!this.isSupported()||!this.isActive()||(yield document.exitPictureInPicture())})}assignPlayerContainer(e){this.isSupported()&&(this.playerContainer=e)}updateVideoElement(){var e;this.isSupported()&&(this.videoElement=(e=this.playerContainer)==null?void 0:e.querySelector("video"))}registryEventHandlers(){var e,t;(e=this.videoElement)==null||e.addEventListener("enterpictureinpicture",this.eventHandlers.enterpictureinpicture),(t=this.videoElement)==null||t.addEventListener("leavepictureinpicture",this.eventHandlers.leavepictureinpicture)}registryExternalEventHandlers(e){this.externalEventHandlers=nt({},e)}unregistryEventHandlers(){var e,t;(e=this.videoElement)==null||e.removeEventListener("enterpictureinpicture",this.eventHandlers.enterpictureinpicture),(t=this.videoElement)==null||t.removeEventListener("leavepictureinpicture",this.eventHandlers.leavepictureinpicture)}dispose(){return ut(this,null,function*(){this.unregistryEventHandlers(),yield this.remove()})}onEnterPictureInPicture(e){var o,r;let n=e.pictureInPictureWindow;n&&(this.info.isActive$.next(!0),this.isRequested=!0,n.addEventListener("resize",this.eventHandlers.resize),(r=(o=this.externalEventHandlers).enterpictureinpicture)==null||r.call(o,e))}onLeavePictureInPicture(e){var o,r,l;let n=e.pictureInPictureWindow;this.info.isActive$.next(!1),this.isRequested=!1,n==null||n.removeEventListener("resize",this.eventHandlers.resize),(r=(o=this.externalEventHandlers).leavepictureinpicture)==null||r.call(o,e),(l=this.playerDummyElement)==null||l.$destroy()}onResize(e){var t,n;(n=(t=this.externalEventHandlers).resize)==null||n.call(t,e)}};function Oo(i){return i instanceof No}function _2(i){let e=it();return Nt(()=>{e.getAdmanWrapper().startPostroll()}),[]}var qs=class extends j{constructor(e){super(),W(this,e,_2,null,U,{})}},zc=qs;var qc=require("@vkontakte/videoplayer-shared");function h2(i){Se(i,"svelte-1k4i25s",".container.svelte-1k4i25s.svelte-1k4i25s{position:absolute;top:14px;right:16px;padding:6px 10px;font-size:13px;color:#fff;background:rgba(0, 0, 0, 0.56);border-radius:6px;transition:color .2s}.container-mobile.svelte-1k4i25s.svelte-1k4i25s{bottom:14px;top:unset;font-size:15px;max-width:142px}.icon.svelte-1k4i25s.svelte-1k4i25s{margin-left:4px;position:relative;top:2px;fill:var(--white);transition:fill .2s}.skip.svelte-1k4i25s.svelte-1k4i25s{width:86px}.skippable.svelte-1k4i25s.svelte-1k4i25s{cursor:pointer;color:var(--white)}.skippable.svelte-1k4i25s.svelte-1k4i25s:hover{color:rgba(255, 255, 255, .75)}.skippable.svelte-1k4i25s:hover .icon.svelte-1k4i25s{fill:rgba(255, 255, 255, .75)}")}function g2(i){let e=Y("skip_ads_after",{time:Math.ceil(i[1]-i[0]).toFixed(0)})+"",t;return{c(){t=De(e)},m(n,o){C(n,t,o)},p(n,o){o&3&&e!==(e=Y("skip_ads_after",{time:Math.ceil(n[1]-n[0]).toFixed(0)})+"")&&Ye(t,e)},d(n){n&&k(t)}}}function b2(i){let e,t=Y("skip_ads_now")+"",n,o,r,l,a,s;return{c(){e=T("div"),n=De(t),o=O(),r=N("svg"),l=N("path"),f(l,"fill-rule","evenodd"),f(l,"clip-rule","evenodd"),f(l,"d","M0.263627 0.263605C-0.0878444 0.615078 -0.0878429 1.18493 0.26363 1.5364L4.72723 5.99998L0.263627 10.4636C-0.0878444 10.8151 -0.0878429 11.3849 0.26363 11.7364C0.615103 12.0879 1.18495 12.0879 1.53642 11.7364L6.63642 6.63637C6.98789 6.2849 6.98789 5.71505 6.63642 5.36358L1.53642 0.263602C1.18495 -0.0878686 0.615098 -0.0878673 0.263627 0.263605Z"),f(r,"class","icon svelte-1k4i25s"),f(r,"width","7"),f(r,"height","12"),f(r,"viewBox","0 0 7 12"),f(r,"fill","none"),f(r,"xmlns","http://www.w3.org/2000/svg"),f(e,"class","skip svelte-1k4i25s")},m(u,c){C(u,e,c),p(e,n),p(e,o),p(e,r),p(r,l),a||(s=de(e,"click",at(function(){Ri(i[2])&&i[2].apply(this,arguments)})),a=!0)},p(u,c){i=u},d(u){u&&k(e),a=!1,s()}}}function v2(i){let e;function t(r,l){return r[3]?b2:g2}let n=t(i,-1),o=n(i);return{c(){e=T("div"),o.c(),f(e,"class","container svelte-1k4i25s"),z(e,"container-mobile",i[4]),z(e,"skippable",i[3])},m(r,l){C(r,e,l),o.m(e,null)},p(r,[l]){n===(n=t(r,l))&&o?o.p(r,l):(o.d(1),o=n(r),o&&(o.c(),o.m(e,null))),l&16&&z(e,"container-mobile",r[4]),l&8&&z(e,"skippable",r[3])},i:pe,o:pe,d(r){r&&k(e),o.d()}}}function y2(i,e,t){let n,{position:o=0}=e,{secondsToWatchBeforeSkip:r=0}=e,{skipAd:l=qc.noop}=e,s=it().ui.isMobile;F(i,s,c=>t(4,n=c));let u;return i.$$set=c=>{"position"in c&&t(0,o=c.position),"secondsToWatchBeforeSkip"in c&&t(1,r=c.secondsToWatchBeforeSkip),"skipAd"in c&&t(2,l=c.skipAd)},i.$$.update=()=>{if(i.$$.dirty&3)e:t(3,u=o>0&&o>=r)},[o,r,l,u,n,s]}var Us=class extends j{constructor(e){super(),W(this,e,y2,v2,U,{position:0,secondsToWatchBeforeSkip:1,skipAd:2},h2)}},Uc=Us;function w2(i){Se(i,"svelte-1wy3dql","button.svelte-1wy3dql{position:absolute;pointer-events:none;bottom:14px;left:16px;font-size:15px;background:white;border:none;padding:6px 10px;border-radius:6px;color:black}")}function k2(i){let e;return{c(){e=T("button"),e.textContent=`${Y("visit_advertiser")}`,f(e,"class","svelte-1wy3dql")},m(t,n){C(t,e,n)},p:pe,i:pe,o:pe,d(t){t&&k(e)}}}var Ks=class extends j{constructor(e){super(),W(this,e,null,k2,U,{},w2)}},Kc=Ks;function C2(i){Se(i,"svelte-354ajf",`.container.svelte-354ajf{width:100%;height:100%}.top-gradient-mobile.svelte-354ajf{position:absolute;width:100%;height:80px;top:0;left:0;pointer-events:none;background:linear-gradient(
11
+ `):void 0,h=t.state.isAudioDisabled?"disabled":it(t.state.isAudioAvailable$)?void 0:"unavailable",y={Version:u,Browser:navigator.userAgent,Config:i.experimental.tuningConfigName$.getValue().join(", "),"United video id":String(t.videoId),"Content host":n.hostname$.getValue(),"Connection type":n.httpConnectionType$.getValue()+(n.httpConnectionReused$.getValue()?" (reused)":""),Throughput:`${l}Kbps @ ${a}ms RTT`,Format:n.currentFormat$.getValue(),"Available Formats":Object.keys(e.sources).join(", "),Quality:`${s} ${n.currentQuality$.getValue()}`,"Available qualities":n.availableQualities$.getValue().join(", "),Audio:h,Position:`${it(t.state.positionExact$)}s`,State:`${it(t.playerPhase)} ${n.playbackState$.getValue()}`,"Player size":`${o}x${r}`,URL:window.location.href,Errors:m};return Object.entries(y).filter(([v,g])=>g!==void 0).map(([v,g])=>`${v}: ${g}`).join(`
12
+ `)},gf=(i,e,t)=>{let n=i.info,{width:o,height:r}=it(t.ui.playerSize),l={version:Bo,viewport:`${o}x${r}`,volume:Math.round(it(t.state.volume$)*100)};l.id=t.videoId,n.currentFormat$.getValue()&&(l.provider=n.currentFormat$.getValue()),n.hostname$.getValue()&&(l.cdn=n.hostname$.getValue());let u=n.intrinsicVideoSize$.getValue();u&&(l.videoSize=`${u.width}x${u.height}`);let f=n.currentBuffer$.getValue(),m=n.isLive$.getValue(),h=n.liveBufferTime$.getValue();f&&(m&&h?l.buffer=f.end-h:l.buffer=Math.max(f.end-it(t.state.positionExact$),0));let y=n.throughputEstimation$.getValue();y&&(l.speed=y);let b=n.videoBitrate$.getValue();b&&(l.bitrate=b);let S=n.currentVideoSegmentLength$.getValue();S&&(l.currentVideoSegmentLength=S);let w=n.currentAudioSegmentLength$.getValue();return w&&(l.currentAudioSegmentLength=w),l},bf=(i,e)=>or(i,e,"mp4");var wn=require("@vkontakte/videoplayer-shared"),i9=require("@vkontakte/videoplayer-core"),vf="vk_player_prefer_traffic_saving_enabled",yf="vk_player_preferred_volume",wf="vk_player_prefer_volume_mute",Rs="vk_player_preferred_quality",kf="vk_player_preferred_rate",Cf=i=>i>1?1:i<0?0:i,Bs=i=>wn.safeStorage.set(yf,Cf(i).toString(10)),lr=()=>{let i=wn.safeStorage.get(yf);return(0,wn.isNullable)(i)?void 0:Cf(parseFloat(i))},Sf=(i,e)=>wn.safeStorage.set(Rs,JSON.stringify({videoId:i,value:e})),Ds=()=>wn.safeStorage.remove(Rs),Tf=i=>{let e=wn.safeStorage.get(Rs);if((0,wn.isNullable)(e))return;let{videoId:t,value:n}=JSON.parse(e);if(i!==t){Ds();return}return n},Pf=(i,e)=>{e?wn.safeStorage.set(i,"true"):wn.safeStorage.remove(i)},If=i=>wn.safeStorage.get(i)==="true",rr=i=>Pf(wf,i),Ef=()=>If(wf),Mf=i=>Pf(vf,i),Vf=()=>If(vf),Af=i=>wn.safeStorage.set(kf,JSON.stringify({rate:i})),Lf=()=>{let i=wn.safeStorage.get(kf);if((0,wn.isNullable)(i))return;let{rate:e}=JSON.parse(i);return e};var yp=require("@vkontakte/videoplayer-core"),ps=require("@vkontakte/videoplayer-shared");function n2(i){let e,t,n,o,r,l,a,s,u,f,m,h,y,b,S,w,T,v=i[2].default,g=Ee(v,i,i[1],null),I=[{xmlns:"http://www.w3.org/2000/svg"},{width:"76"},{height:"45"},{fill:"none"},{"data-testid":"video-360-icon"},{role:"img"},i[0]],A={};for(let q=0;q<I.length;q+=1)A=oe(A,I[q]);return{c(){e=N("svg"),g&&g.c(),t=N("g"),n=N("path"),o=N("path"),r=N("path"),l=N("path"),a=N("path"),s=N("defs"),u=N("filter"),f=N("feFlood"),m=N("feColorMatrix"),h=N("feOffset"),y=N("feGaussianBlur"),b=N("feColorMatrix"),S=N("feBlend"),w=N("feBlend"),c(n,"fill","#fff"),c(n,"fill-rule","evenodd"),c(n,"d","M67 9.489A3.49 3.49 0 0 1 63.511 13 3.493 3.493 0 0 1 60 9.489 3.49 3.49 0 0 1 63.511 6 3.484 3.484 0 0 1 67 9.489m-5.003 0c0 .834.68 1.514 1.514 1.514.812 0 1.492-.68 1.492-1.514 0-.812-.68-1.492-1.492-1.492-.834 0-1.514.68-1.514 1.492"),c(n,"clip-rule","evenodd"),c(o,"fill","#fff"),c(o,"d","M26.86 15.183c1.372-.492 2.534-1.711 2.534-3.61C29.394 8.922 27.185 7 24.07 7c-1.965 0-3.573.784-4.67 2.29l-.108.149a1.333 1.333 0 0 0 .268 1.855c.536.402 1.295.343 1.736-.162.09-.102.164-.19.205-.247.594-.81 1.431-1.306 2.5-1.306 1.534 0 2.604.915 2.604 2.251 0 1.36-1.093 2.275-2.651 2.275h-.583a1.231 1.231 0 0 0 0 2.462h.583c1.744 0 2.907.985 2.907 2.392 0 1.453-1.186 2.462-2.884 2.462-1.296 0-2.201-.552-2.883-1.603a10 10 0 0 0-.2-.287 1.403 1.403 0 0 0-2.052-.246c-.494.42-.65 1.13-.305 1.68.072.116.146.227.218.322C20.132 23.137 21.678 24 23.999 24c3.28 0 5.628-2.04 5.628-4.924 0-2.204-1.395-3.4-2.767-3.893"),c(r,"fill","#fff"),c(r,"fill-rule","evenodd"),c(r,"d","M37.732 12.675c-.465 0-1 .046-1.511.164l2.584-3.74a1.338 1.338 0 1 0-2.203-1.518l-3.753 5.469c-1.418 2.133-1.837 3.822-1.837 5.276 0 3.47 2.558 5.674 6.186 5.674 3.604 0 6.162-2.392 6.162-5.768 0-3.236-2.349-5.557-5.628-5.557m-.534 8.746c-1.977 0-3.326-1.267-3.326-3.142 0-1.853 1.349-3.142 3.326-3.142 1.953 0 3.302 1.29 3.302 3.142 0 1.875-1.35 3.142-3.302 3.142M58 15.512c0 5.041-2.697 8.441-6.627 8.441s-6.628-3.4-6.628-8.441 2.698-8.442 6.628-8.442S58 10.47 58 15.512m-10.348 0c0 3.564 1.488 5.862 3.72 5.862s3.721-2.298 3.721-5.862-1.488-5.862-3.72-5.862-3.72 2.298-3.72 5.862Z"),c(r,"clip-rule","evenodd"),c(l,"fill","#fff"),c(l,"d","M67 23.5c0-1.318-1.201-3.094-4.199-4.673a1.5 1.5 0 1 1 1.398-2.654C67.452 17.886 70 20.433 70 23.5c0 3.126-2.556 5.554-6.088 7.27-3.633 1.766-8.825 3.062-15.259 3.722a1.5 1.5 0 0 1-.306-2.984c6.248-.641 11.057-1.882 14.253-3.436C65.897 26.47 67 24.8 67 23.5M38.879 35H38c-9.64 0-17.447-1.133-22.9-3.018-2.72-.941-4.94-2.099-6.506-3.468C7.019 27.138 6 25.445 6 23.5c0-1.64.785-3.073 1.908-4.255 1.119-1.179 2.66-2.205 4.42-3.086a1.5 1.5 0 1 1 1.343 2.682c-1.584.793-2.794 1.634-3.588 2.47C9.293 22.143 9 22.873 9 23.5c0 .807.407 1.74 1.568 2.755 1.17 1.022 2.996 2.02 5.513 2.892C21.106 30.885 28.55 32 38 32h.879l-1.44-1.44a1.5 1.5 0 0 1 2.122-2.12l3.999 3.998.01.011a1.5 1.5 0 0 1 .317 1.624 1.5 1.5 0 0 1-.326.488l-4 4a1.5 1.5 0 0 1-2.122-2.122L38.88 35Z"),c(a,"stroke","#000"),c(a,"stroke-linecap","round"),c(a,"stroke-linejoin","round"),c(a,"stroke-opacity",".12"),c(a,"stroke-width",".5"),c(a,"d","m7.908 19.245-.181-.173c1.146-1.206 2.714-2.248 4.49-3.137a1.75 1.75 0 1 1 1.566 3.13c-1.57.786-2.752 1.61-3.519 2.418-.762.802-1.014 1.474-1.014 2.017 0 .713.357 1.583 1.483 2.567 1.136.993 2.93 1.978 5.43 2.843 4.99 1.726 12.403 2.84 21.837 2.84h.275l-1.012-1.013a1.75 1.75 0 1 1 2.474-2.474l4 3.998h0l.012.013s0 0 0 0c.162.165.284.354.368.556q0 0 0 0l-.23.096A1.5 1.5 0 0 1 44 33.5q-.002.306-.113.573L7.907 19.245Zm0 0-.181-.173C6.576 20.284 5.75 21.775 5.75 23.5c0 2.04 1.07 3.796 2.68 5.202 1.599 1.398 3.85 2.569 6.589 3.516C20.506 34.116 28.343 35.25 38 35.25h.275zm29.824-6.82c-.3 0-.63.018-.965.063l2.244-3.247c.728-1.054-.026-2.491-1.306-2.491-.524 0-1.014.258-1.31.69l-3.752 5.468h0l-.002.003c-1.442 2.17-1.879 3.905-1.879 5.415 0 1.8.665 3.288 1.815 4.324 1.147 1.033 2.757 1.6 4.62 1.6 3.727 0 6.413-2.488 6.413-6.018 0-3.377-2.464-5.807-5.878-5.807m25.779.825c2.07 0 3.739-1.67 3.739-3.761 0-2.07-1.67-3.739-3.739-3.739a3.74 3.74 0 0 0-3.761 3.739 3.743 3.743 0 0 0 3.761 3.761m0-2.497a1.267 1.267 0 0 1-1.264-1.264c0-.671.566-1.242 1.264-1.242.674 0 1.242.568 1.242 1.242 0 .698-.57 1.264-1.242 1.264m-33.634 8.323c0-2.043-1.139-3.272-2.388-3.895 1.208-.629 2.155-1.846 2.155-3.609 0-2.82-2.357-4.822-5.575-4.822-2.04 0-3.724.818-4.871 2.392l-.109.149a1.583 1.583 0 0 0 .32 2.203c.635.476 1.542.411 2.074-.197.09-.103.17-.198.219-.264.553-.755 1.318-1.204 2.297-1.204.72 0 1.309.214 1.715.564.403.347.64.84.64 1.437 0 .608-.242 1.107-.653 1.457-.415.353-1.017.568-1.748.568h-.583a1.481 1.481 0 0 0 0 2.962h.583c.826 0 1.493.233 1.948.61.451.375.709.902.709 1.532 0 .654-.265 1.2-.718 1.586-.455.388-1.116.626-1.916.626-.61 0-1.117-.13-1.548-.375s-.801-.614-1.125-1.114a11 11 0 0 0-.206-.296 1.653 1.653 0 0 0-2.417-.292c-.577.49-.774 1.335-.356 2.004.075.119.152.236.23.339.704.945 1.462 1.652 2.352 2.121.892.47 1.9.692 3.094.692 3.383 0 5.877-2.121 5.877-5.174m7.32 2.095c-.934 0-1.7-.299-2.232-.8-.53-.5-.843-1.217-.843-2.092 0-.863.313-1.581.844-2.085s1.298-.807 2.232-.807c.92 0 1.682.303 2.21.807.529.503.842 1.222.842 2.085 0 .875-.314 1.593-.84 2.093-.53.5-1.29.799-2.212.799Zm14.176 3.032c2.044 0 3.772-.887 4.983-2.425 1.208-1.534 1.894-3.703 1.894-6.266s-.686-4.732-1.894-6.266c-1.211-1.539-2.94-2.426-4.983-2.426-2.044 0-3.773.887-4.984 2.426-1.208 1.534-1.894 3.703-1.894 6.266s.686 4.732 1.894 6.266c1.211 1.538 2.94 2.425 4.984 2.425m0-3.08c-1.017 0-1.874-.518-2.487-1.478-.618-.968-.984-2.382-.984-4.133 0-1.752.366-3.166.984-4.133.613-.96 1.47-1.48 2.487-1.48s1.873.52 2.486 1.48c.618.967.984 2.381.984 4.133 0 1.751-.366 3.165-.984 4.133-.613.96-1.47 1.479-2.486 1.479Zm11.312-2.075c2.975 1.567 4.065 3.279 4.065 4.452 0 1.148-.983 2.756-4.259 4.347-3.16 1.536-7.937 2.773-14.17 3.412a1.75 1.75 0 0 0 .358 3.482c6.45-.662 11.673-1.963 15.342-3.746 3.551-1.725 6.229-4.216 6.229-7.495 0-3.213-2.661-5.825-5.935-7.548a1.75 1.75 0 1 0-1.63 3.096"),c(t,"filter","url(#a)"),c(f,"flood-opacity","0"),c(f,"result","BackgroundImageFix"),c(m,"in","SourceAlpha"),c(m,"result","hardAlpha"),c(m,"values","0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0"),c(y,"stdDeviation","2.5"),c(b,"values","0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.16 0"),c(S,"in2","BackgroundImageFix"),c(S,"result","effect1_dropShadow_618_12297"),c(w,"in","SourceGraphic"),c(w,"in2","effect1_dropShadow_618_12297"),c(w,"result","shape"),c(u,"id","a"),c(u,"width","75"),c(u,"height","44"),c(u,"x",".5"),c(u,"y",".5"),c(u,"color-interpolation-filters","sRGB"),c(u,"filterUnits","userSpaceOnUse"),ge(e,A)},m(q,K){C(q,e,K),g&&g.m(e,null),p(e,t),p(t,n),p(t,o),p(t,r),p(t,l),p(t,a),p(e,s),p(s,u),p(u,f),p(u,m),p(u,h),p(u,y),p(u,b),p(u,S),p(u,w),T=!0},p(q,[K]){g&&g.p&&(!T||K&2)&&Ve(g,v,q,q[1],T?Me(v,q[1],K,null):Ae(q[1]),null),ge(e,A=Le(I,[{xmlns:"http://www.w3.org/2000/svg"},{width:"76"},{height:"45"},{fill:"none"},{"data-testid":"video-360-icon"},{role:"img"},K&1&&q[0]]))},i(q){T||(d(g,q),T=!0)},o(q){_(g,q),T=!1},d(q){q&&k(e),g&&g.d(q)}}}function o2(i,e,t){let{$$slots:n={},$$scope:o}=e;return i.$$set=r=>{t(0,e=oe(oe({},e),he(r))),"$$scope"in r&&t(1,o=r.$$scope)},e=he(e),[e,o,n]}var Ns=class extends j{constructor(e){super(),W(this,e,o2,n2,U,{})}},sr=Ns;var ol=require("@vkontakte/videoplayer-shared");var l2={auto_quality_invariant:"\u0410\u0432\u0442\u043E",auto_quality:"\u0410\u0432\u0442\u043E ({actual})",auto_quality_option:"\u0410\u0432\u0442\u043E",menu_quality:"\u041A\u0430\u0447\u0435\u0441\u0442\u0432\u043E",menu_traffic_saving:"\u042D\u043A\u043E\u043D\u043E\u043C\u0438\u044F \u0434\u0430\u043D\u043D\u044B\u0445",menu_playback_rate:"\u0421\u043A\u043E\u0440\u043E\u0441\u0442\u044C",menu_report:"\u0421\u043E\u043E\u0431\u0449\u0438\u0442\u044C \u043E \u043F\u0440\u043E\u0431\u043B\u0435\u043C\u0435",menu_pip:"\u041A\u0430\u0440\u0442\u0438\u043D\u043A\u0430 \u0432 \u043A\u0430\u0440\u0442\u0438\u043D\u043A\u0435",menu_copy_video_link:"\u0421\u043A\u043E\u043F\u0438\u0440\u043E\u0432\u0430\u0442\u044C \u0441\u0441\u044B\u043B\u043A\u0443 \u043D\u0430 \u0432\u0438\u0434\u0435\u043E",menu_copy_video_link_with_timestamp:"\u0421\u043A\u043E\u043F\u0438\u0440\u043E\u0432\u0430\u0442\u044C \u0441\u0441\u044B\u043B\u043A\u0443 \u043D\u0430 \u043A\u0430\u0434\u0440",menu_video_rotate:"\u041F\u043E\u0432\u0435\u0440\u043D\u0443\u0442\u044C",menu_video_loop_on:"\u0412\u043A\u043B\u044E\u0447\u0438\u0442\u044C \u043F\u043E\u0432\u0442\u043E\u0440\u0435\u043D\u0438\u0435",menu_video_loop_off:"\u041E\u0442\u043A\u043B\u044E\u0447\u0438\u0442\u044C \u043F\u043E\u0432\u0442\u043E\u0440\u0435\u043D\u0438\u0435",menu_chromecast:"Chromecast \u0442\u0440\u0430\u043D\u0441\u043B\u044F\u0446\u0438\u044F",menu_copy_debug:"\u041A\u043E\u043F\u0438\u0440\u043E\u0432\u0430\u0442\u044C \u0434\u0430\u043D\u043D\u044B\u0435 \u0434\u043B\u044F \u0434\u0438\u0430\u0433\u043D\u043E\u0441\u0442\u0438\u043A\u0438",menu_save_debug:"\u0421\u043E\u0445\u0440\u0430\u043D\u0438\u0442\u044C \u0434\u0430\u043D\u043D\u044B\u0435 \u0434\u043B\u044F \u0434\u0438\u0430\u0433\u043D\u043E\u0441\u0442\u0438\u043A\u0438",menu_debug_overlay:"\u0422\u0435\u0445\u043D\u0438\u0447\u0435\u0441\u043A\u0430\u044F \u0438\u043D\u0444\u043E\u0440\u043C\u0430\u0446\u0438\u044F",pip_dummy_title:"\u0412\u0438\u0434\u0435\u043E \u0432\u043E\u0441\u043F\u0440\u043E\u0438\u0437\u0432\u043E\u0434\u0438\u0442\u0441\u044F \u0432 \u0440\u0435\u0436\u0438\u043C\u0435 \u043A\u0430\u0440\u0442\u0438\u043D\u043A\u0430 \u0432 \u043A\u0430\u0440\u0442\u0438\u043D\u043A\u0435",submenu_quality:"\u041A\u0430\u0447\u0435\u0441\u0442\u0432\u043E",submenu_playback_rate:"\u0421\u043A\u043E\u0440\u043E\u0441\u0442\u044C",submenu_settings:"\u041D\u0430\u0441\u0442\u0440\u043E\u0439\u043A\u0438",submenu_traffic_saving:"\u042D\u043A\u043E\u043D\u043E\u043C\u0438\u044F \u0434\u0430\u043D\u043D\u044B\u0445",mobile_unmute:"\u0412\u043A\u043B\u044E\u0447\u0438\u0442\u044C \u0437\u0432\u0443\u043A",playing_ads:"\u0420\u0435\u043A\u043B\u0430\u043C\u0430 {timeleft}",skip_ads_now:"\u041F\u0440\u043E\u043F\u0443\u0441\u0442\u0438\u0442\u044C \u0440\u0435\u043A\u043B\u0430\u043C\u0443",skip_ads_after:"\u041F\u0440\u043E\u043F\u0443\u0441\u0442\u0438\u0442\u044C \u0440\u0435\u043A\u043B\u0430\u043C\u0443 \u0447\u0435\u0440\u0435\u0437 {time}\u0441",visit_advertiser:"\u041F\u0435\u0440\u0435\u0439\u0442\u0438 \u043D\u0430 \u0441\u0430\u0439\u0442",aria_timeline:"\u041F\u043E\u043B\u0437\u0443\u043D\u043E\u043A \u0432\u0440\u0435\u043C\u0435\u043D\u043D\u043E\u0439 \u0448\u043A\u0430\u043B\u044B",aria_timeline_value:"{position} (\u043E\u0431\u0449\u0430\u044F \u0434\u043B\u0438\u0442\u0435\u043B\u044C\u043D\u043E\u0441\u0442\u044C {duration}",aria_open_settings:"\u041E\u0442\u043A\u0440\u044B\u0442\u044C \u043D\u0430\u0441\u0442\u0440\u043E\u0439\u043A\u0438 \u0432\u0438\u0434\u0435\u043E\u043F\u043B\u0435\u0435\u0440\u0430",doubletap_seek_step:"{seconds} \u0441\u0435\u043A\u0443\u043D\u0434",playback_rate_1:"\u041E\u0431\u044B\u0447\u043D\u0430\u044F",playback_rate:"{multiplier}x",video360:"\u043F\u0430\u043D\u043E\u0440\u0430\u043C\u043D\u043E\u0435 \u0432\u0438\u0434\u0435\u043E",subtitles_caption:"\u0421\u0443\u0431\u0442\u0438\u0442\u0440\u044B",subtitles_auto:"{language} (\u0410\u0432\u0442\u043E\u043C\u0430\u0442\u0438\u0447\u0435\u0441\u043A\u0438\u0435)",subtitles_off:"\u0412\u044B\u043A\u043B.",subtitles_auto_caption:"\u0410\u0432\u0442\u043E\u043C\u0430\u0442\u0438\u0447\u0435\u0441\u043A\u0438\u0435 \u0441\u0443\u0431\u0442\u0438\u0442\u0440\u044B",subtitles_turn_on:"\u0412\u043A\u043B\u044E\u0447\u0438\u0442\u044C \u0441\u0443\u0431\u0442\u0438\u0442\u0440\u044B",subtitles_turn_off:"\u0412\u044B\u043A\u043B\u044E\u0447\u0438\u0442\u044C \u0441\u0443\u0431\u0442\u0438\u0442\u0440\u044B",traffic_saving_off:"\u041E\u0442\u043A\u043B.",traffic_saving_on:"\u0412\u043A\u043B.",traffic_saving_disable:"\u041E\u0442\u043A\u043B\u044E\u0447\u0435\u043D\u0430",traffic_saving_enable:"\u0412\u043A\u043B\u044E\u0447\u0435\u043D\u0430",traffic_saving_helper_text:"\u041F\u0440\u0438 \u0432\u043A\u043B\u044E\u0447\u0435\u043D\u0438\u0438 \u043A\u0430\u0447\u0435\u0441\u0442\u0432\u043E \u0432\u0438\u0434\u0435\u043E \u0431\u0443\u0434\u0435\u0442 \u0441\u043D\u0438\u0436\u0435\u043D\u043E \u0434\u043B\u044F \u044D\u043A\u043E\u043D\u043E\u043C\u0438\u0438 \u0442\u0440\u0430\u0444\u0438\u043A\u0430",tooltip_button_disabled:"\u041A\u043D\u043E\u043F\u043A\u0430 \u043D\u0435\u0434\u043E\u0441\u0442\u0443\u043F\u043D\u0430",tooltip_previous:"\u041F\u0440\u0435\u0434\u044B\u0434\u0443\u0449\u0435\u0435 \u0432\u0438\u0434\u0435\u043E",tooltip_restart:"\u041D\u0430\u0447\u0430\u0442\u044C \u0437\u0430\u043D\u043E\u0432\u043E",tooltip_play:"\u0421\u043C\u043E\u0442\u0440\u0435\u0442\u044C",tooltip_pause:"\u041F\u0430\u0443\u0437\u0430",tooltip_next:"\u0421\u043B\u0435\u0434\u0443\u044E\u0449\u0435\u0435 \u0432\u0438\u0434\u0435\u043E",tooltip_interactive_go_back:"\u0412\u0435\u0440\u043D\u0443\u0442\u044C\u0441\u044F \u043A \u043F\u0440\u0435\u0434\u044B\u0434\u0443\u0449\u0435\u0439 \u0433\u043B\u0430\u0432\u0435",tooltip_interactive_go_back_disabled:"\u0418\u0441\u0442\u043E\u0440\u0438\u044F \u043F\u0440\u043E\u0445\u043E\u0436\u0434\u0435\u043D\u0438\u044F \u043D\u0435\u0434\u043E\u0441\u0442\u0443\u043F\u043D\u0430",tooltip_interactive_go_back_disabled_first:"\u0412\u044B \u0441\u043C\u043E\u0442\u0440\u0438\u0442\u0435 \u043F\u0435\u0440\u0432\u0443\u044E \u0433\u043B\u0430\u0432\u0443",tooltip_interactive_go_back_disabled_limit:"\u041B\u0438\u043C\u0438\u0442 \u0432\u043E\u0437\u0432\u0440\u0430\u0442\u043E\u0432 \u0438\u0441\u0447\u0435\u0440\u043F\u0430\u043D",tooltip_chapter_without_interactive:"\u0412 \u044D\u0442\u043E\u0439 \u0433\u043B\u0430\u0432\u0435 \u043D\u0435\u0442 \u0438\u043D\u0442\u0435\u0440\u0430\u043A\u0442\u0438\u0432\u0430",tooltip_interactive_of_chapter_completed:"\u0418\u043D\u0442\u0435\u0440\u0430\u043A\u0442\u0438\u0432\u044B \u044D\u0442\u043E\u0439 \u0433\u043B\u0430\u0432\u044B \u0443\u0436\u0435 \u043F\u0440\u043E\u0439\u0434\u0435\u043D\u044B",tooltip_interactive_seek:"\u041F\u0435\u0440\u0435\u0439\u0442\u0438 \u043A \u0438\u043D\u0442\u0435\u0440\u0430\u043A\u0442\u0438\u0432\u0443",tooltip_interactive_graph_off:"\u041F\u043E\u043A\u0430\u0437\u0430\u0442\u044C \u043A\u0430\u0440\u0442\u0443 \u0441\u044E\u0436\u0435\u0442\u0430",tooltip_interactive_graph_on:"\u0421\u043A\u0440\u044B\u0442\u044C \u043A\u0430\u0440\u0442\u0443 \u0441\u044E\u0436\u0435\u0442\u0430",tooltip_live:"\u041F\u0435\u0440\u0435\u043C\u043E\u0442\u0430\u0442\u044C \u043D\u0430 \u0430\u043A\u0442\u0443\u0430\u043B\u044C\u043D\u044B\u0439 \u043B\u0430\u0439\u0432",tooltip_episodes:"\u042D\u043F\u0438\u0437\u043E\u0434\u044B",tooltip_volume:"\u0412\u043A\u043B\u044E\u0447\u0438\u0442\u044C \u0437\u0432\u0443\u043A",tooltip_volume_muted:"\u0412\u044B\u043A\u043B\u044E\u0447\u0438\u0442\u044C \u0437\u0432\u0443\u043A",tooltip_subtitles_off:"\u0412\u043A\u043B\u044E\u0447\u0438\u0442\u044C \u0441\u0443\u0431\u0442\u0438\u0442\u0440\u044B",tooltip_subtitles_on:"\u0412\u044B\u043A\u043B\u044E\u0447\u0438\u0442\u044C \u0441\u0443\u0431\u0442\u0438\u0442\u0440\u044B",tooltip_settings_off:"\u041E\u0442\u043A\u0440\u044B\u0442\u044C \u043D\u0430\u0441\u0442\u0440\u043E\u0439\u043A\u0438",tooltip_settings_on:"\u0417\u0430\u043A\u0440\u044B\u0442\u044C \u043D\u0430\u0441\u0442\u0440\u043E\u0439\u043A\u0438",tooltip_fullscreen_off:"\u041D\u0430 \u0432\u0435\u0441\u044C \u044D\u043A\u0440\u0430\u043D",tooltip_fullscreen_on:"\u0412\u044B\u0439\u0442\u0438 \u0438\u0437 \u043F\u043E\u043B\u043D\u043E\u044D\u043A\u0440\u0430\u043D\u043D\u043E\u0433\u043E \u0440\u0435\u0436\u0438\u043C\u0430",tooltip_chromecast_off:"\u0412\u043A\u043B\u044E\u0447\u0438\u0442\u044C Chromecast",tooltip_chromecast_on:"\u0412\u044B\u043A\u043B\u044E\u0447\u0438\u0442\u044C Chromecast",tooltip_episode_finished:"\u0412\u044B \u0443\u0436\u0435 \u0441\u0434\u0435\u043B\u0430\u043B\u0438 \u0441\u0432\u043E\u0439 \u0432\u044B\u0431\u043E\u0440",tooltip_episode_unfinished:"\u041D\u0435 \u043F\u0440\u043E\u0439\u0434\u0435\u043D\u043E",tooltip_disabled_when_interactive:"\u0418\u043D\u0442\u0435\u0440\u0430\u043A\u0442\u0438\u0432 \u0443\u0436\u0435 \u0438\u0434\u0451\u0442",tooltip_disabled_when_graph_on:"\u041A\u043D\u043E\u043F\u043A\u0430 \u043D\u0435\u0434\u043E\u0441\u0442\u0443\u043F\u043D\u0430 \u0432\u043E \u0432\u0440\u0435\u043C\u044F \u043F\u0440\u043E\u0441\u043C\u043E\u0442\u0440\u0430 \u043A\u0430\u0440\u0442\u044B",tooltip_interactive_interaction_time_indicator:"\u041D\u0430\u0436\u043C\u0438\u0442\u0435 \u043D\u0430 \u044D\u043B\u0435\u043C\u0435\u043D\u0442 \u0438\u043D\u0442\u0435\u0440\u0430\u043A\u0442\u0438\u0432\u0430",tooltip_vk_logo:"\u041E\u0442\u043A\u0440\u044B\u0442\u044C \u0432 VK \u0412\u0438\u0434\u0435\u043E",tooltip_vk_video_logo:"\u041F\u0435\u0440\u0435\u0439\u0442\u0438 \u0432 VK \u0412\u0438\u0434\u0435\u043E",download_video_caption:"\u0421\u043A\u0430\u0447\u0430\u0442\u044C \u0432\u0438\u0434\u0435\u043E",hotkey_helper_current_volume:"{value} %",hotkey_map_modal_title:"\u0411\u044B\u0441\u0442\u0440\u044B\u0435 \u043A\u043B\u0430\u0432\u0438\u0448\u0438",hotkey_map_modal_close_btn_text:"\u0417\u0430\u043A\u0440\u044B\u0442\u044C",hotkey_map_group_title_common:"\u041E\u0431\u0449\u0438\u0435",hotkey_map_group_title_playback:"\u0412\u043E\u0441\u043F\u0440\u043E\u0438\u0437\u0432\u0435\u0434\u0435\u043D\u0438\u0435",hotkey_map_group_title_subtitles:"\u0421\u0443\u0431\u0442\u0438\u0442\u0440\u044B",hotkey_map_group_title_episodes:"\u042D\u043F\u0438\u0437\u043E\u0434\u044B",hotkey_map_item_mute_description:"\u0412\u043A\u043B\u044E\u0447\u0438\u0442\u044C \u0438\u043B\u0438 \u043E\u0442\u043A\u043B\u044E\u0447\u0438\u0442\u044C \u0437\u0432\u0443\u043A",hotkey_map_item_mute_value:"m",hotkey_map_item_volume_up_description:"\u0423\u0432\u0435\u043B\u0438\u0447\u0438\u0442\u044C \u0433\u0440\u043E\u043C\u043A\u043E\u0441\u0442\u044C",hotkey_map_item_volume_up_value:"\u0421\u0442\u0440\u0435\u043B\u043A\u0430 \u0432\u0432\u0435\u0440\u0445",hotkey_map_item_volume_down_description:"\u0423\u043C\u0435\u043D\u044C\u0448\u0438\u0442\u044C \u0433\u0440\u043E\u043C\u043A\u043E\u0441\u0442\u044C",hotkey_map_item_volume_down_value:"\u0421\u0442\u0440\u0435\u043B\u043A\u0430 \u0432\u043D\u0438\u0437",hotkey_map_item_pip_description:"\u0421\u0432\u0435\u0440\u043D\u0443\u0442\u044C \u0438\u043B\u0438 \u0440\u0430\u0437\u0432\u0435\u0440\u043D\u0443\u0442\u044C \u043C\u0438\u043D\u0438-\u043F\u0440\u043E\u0438\u0433\u0440\u044B\u0432\u0430\u0442\u0435\u043B\u044C",hotkey_map_item_pip_value:"i",hotkey_map_item_full_screen_description:"\u0412\u043A\u043B\u044E\u0447\u0438\u0442\u044C \u0438\u043B\u0438 \u0432\u044B\u043A\u043B\u044E\u0447\u0438\u0442\u044C \u043F\u043E\u043B\u043D\u043E\u044D\u043A\u0440\u0430\u043D\u043D\u044B\u0439 \u0440\u0435\u0436\u0438\u043C",hotkey_map_item_full_screen_value:"f",hotkey_map_item_show_context_menu_description:"\u0421\u043A\u0440\u044B\u0442\u044C \u0438\u043B\u0438 \u043F\u043E\u043A\u0430\u0437\u0430\u0442\u044C \u043A\u043E\u043D\u0442\u0435\u043A\u0441\u0442\u043D\u043E\u0435 \u043C\u0435\u043D\u044E",hotkey_map_item_show_context_menu_value:"Shift + !",hotkey_map_item_show_hotkey_map_description:"\u0421\u043A\u0440\u044B\u0442\u044C \u0438\u043B\u0438 \u043F\u043E\u043A\u0430\u0437\u0430\u0442\u044C \u0441\u043F\u0438\u0441\u043E\u043A \u0433\u043E\u0440\u044F\u0447\u0438\u0445 \u043A\u043B\u0430\u0432\u0438\u0448",hotkey_map_item_show_hotkey_map_value:"Shift + ?",hotkey_map_item_play_toggle_description:"\u041F\u0440\u0438\u043E\u0441\u0442\u0430\u043D\u043E\u0432\u0438\u0442\u044C \u0438\u043B\u0438 \u043F\u0440\u043E\u0434\u043E\u043B\u0436\u0438\u0442\u044C \u0432\u043E\u0441\u043F\u0440\u043E\u0438\u0437\u0432\u0435\u0434\u0435\u043D\u0438\u0435",hotkey_map_item_play_toggle_value:"\u041F\u0440\u043E\u0431\u0435\u043B (\u0438\u043B\u0438 k)",hotkey_map_item_seek_backward_description:"\u041F\u0435\u0440\u0435\u043C\u043E\u0442\u0430\u0442\u044C \u0440\u043E\u043B\u0438\u043A \u043D\u0430 10 \u0441\u0435\u043A\u0443\u043D\u0434 \u043D\u0430\u0437\u0430\u0434",hotkey_map_item_seek_backward_value:"\u0421\u0442\u0440\u0435\u043B\u043A\u0430 \u0432\u043B\u0435\u0432\u043E (\u0438\u043B\u0438 j)",hotkey_map_item_seek_forward_description:"\u041F\u0435\u0440\u0435\u043C\u043E\u0442\u0430\u0442\u044C \u0440\u043E\u043B\u0438\u043A \u043D\u0430 10 \u0441\u0435\u043A\u0443\u043D\u0434 \u0432\u043F\u0435\u0440\u0451\u0434",hotkey_map_item_seek_forward_value:"\u0421\u0442\u0440\u0435\u043B\u043A\u0430 \u0432\u043F\u0440\u0430\u0432\u043E (\u0438\u043B\u0438 l)",hotkey_map_item_fast_seek_backward_description:"\u0423\u0441\u043A\u043E\u0440\u0435\u043D\u043D\u0430\u044F \u043F\u0435\u0440\u0435\u043C\u043E\u0442\u043A\u0430 \u043D\u0430\u0437\u0430\u0434",hotkey_map_item_fast_seek_backward_value:"Shift + \u0421\u0442\u0440\u0435\u043B\u043A\u0430 \u0432\u043B\u0435\u0432\u043E",hotkey_map_item_fast_seek_forward_description:"\u0423\u0441\u043A\u043E\u0440\u0435\u043D\u043D\u0430\u044F \u043F\u0435\u0440\u0435\u043C\u043E\u0442\u043A\u0430 \u0432\u043F\u0435\u0440\u0451\u0434",hotkey_map_item_fast_seek_forward_value:"Shift + \u0421\u0442\u0440\u0435\u043B\u043A\u0430 \u0432\u043F\u0440\u0430\u0432\u043E",hotkey_map_item_rate_down_description:"\u0423\u043C\u0435\u043D\u044C\u0448\u0438\u0442\u044C \u0441\u043A\u043E\u0440\u043E\u0441\u0442\u044C \u0432\u043E\u0441\u043F\u0440\u043E\u0438\u0437\u0432\u0435\u0434\u0435\u043D\u0438\u044F",hotkey_map_item_rate_down_value:"< (Shift + ,)",hotkey_map_item_rate_up_description:"\u0423\u0432\u0435\u043B\u0438\u0447\u0438\u0442\u044C \u0441\u043A\u043E\u0440\u043E\u0441\u0442\u044C \u0432\u043E\u0441\u043F\u0440\u043E\u0438\u0437\u0432\u0435\u0434\u0435\u043D\u0438\u044F",hotkey_map_item_rate_up_value:"> (Shift + .)",hotkey_map_item_prev_frame_description:"\u041F\u0435\u0440\u0435\u0439\u0442\u0438 \u043A \u043F\u0440\u0435\u0434\u044B\u0434\u0443\u0449\u0435\u043C\u0443 \u043A\u0430\u0434\u0440\u0443 <br />(\u043A\u043E\u0433\u0434\u0430 \u0432\u043E\u0441\u043F\u0440\u043E\u0438\u0437\u0432\u0435\u0434\u0435\u043D\u0438\u0435 \u043F\u0440\u0438\u043E\u0441\u0442\u0430\u043D\u043E\u0432\u043B\u0435\u043D\u043E)",hotkey_map_item_prev_frame_value:",",hotkey_map_item_next_frame_description:"\u041F\u0435\u0440\u0435\u0439\u0442\u0438 \u043A \u0441\u043B\u0435\u0434\u0443\u044E\u0449\u0435\u043C\u0443 \u043A\u0430\u0434\u0440\u0443 <br />(\u043A\u043E\u0433\u0434\u0430 \u0432\u043E\u0441\u043F\u0440\u043E\u0438\u0437\u0432\u0435\u0434\u0435\u043D\u0438\u0435 \u043F\u0440\u0438\u043E\u0441\u0442\u0430\u043D\u043E\u0432\u043B\u0435\u043D\u043E)",hotkey_map_item_next_frame_value:".",hotkey_map_item_jump_seek_description:"\u041F\u0435\u0440\u0435\u0439\u0442\u0438 \u043A \u043E\u043F\u0440\u0435\u0434\u0435\u043B\u0451\u043D\u043D\u043E\u043C\u0443 \u043C\u043E\u043C\u0435\u043D\u0442\u0443 \u0432\u0438\u0434\u0435\u043E <br />(\u043D\u0430\u043F\u0440\u0438\u043C\u0435\u0440, \u043F\u0440\u0438 \u043D\u0430\u0436\u0430\u0442\u0438\u0438 \u043D\u0430 \u0446\u0438\u0444\u0440\u0443 \xAB7\xBB \u0440\u043E\u043B\u0438\u043A \u0431\u0443\u0434\u0435\u0442 \u043F\u0435\u0440\u0435\u043C\u043E\u0442\u0430\u043D \u0434\u043E \u0432\u0440\u0435\u043C\u0435\u043D\u043D\u043E\u0439 \u043E\u0442\u043C\u0435\u0442\u043A\u0438, \u043A\u043E\u0442\u043E\u0440\u0430\u044F \u0441\u043E\u043E\u0442\u0432\u0435\u0442\u0441\u0442\u0432\u0443\u0435\u0442 70% \u043E\u0442 \u0434\u043B\u0438\u0442\u0435\u043B\u044C\u043D\u043E\u0441\u0442\u0438 \u0432\u0438\u0434\u0435\u043E)",hotkey_map_item_jump_seek_value:"0, 1, 2, 3, 4, 5, 6, 7, 8, 9",hotkey_map_item_subtitles_toggle_description:"\u0412\u043A\u043B\u044E\u0447\u0438\u0442\u044C \u0438\u043B\u0438 \u043E\u0442\u043A\u043B\u044E\u0447\u0438\u0442\u044C \u0441\u0443\u0431\u0442\u0438\u0442\u0440\u044B",hotkey_map_item_subtitles_toggle_value:"c",hotkey_map_item_prev_episode_description:"\u041F\u0435\u0440\u0435\u0439\u0442\u0438 \u043A \u043F\u0440\u0435\u0434\u044B\u0434\u0443\u0449\u0435\u043C\u0443 \u044D\u043F\u0438\u0437\u043E\u0434\u0443",hotkey_map_item_prev_episode_pc_value:"Ctrl + \u0421\u0442\u0440\u0435\u043B\u043A\u0430 \u0432\u043B\u0435\u0432\u043E",hotkey_map_item_prev_episode_mac_value:"Option + \u0421\u0442\u0440\u0435\u043B\u043A\u0430 \u0432\u043B\u0435\u0432\u043E",hotkey_map_item_next_episode_description:"\u041F\u0435\u0440\u0435\u0439\u0442\u0438 \u043A \u0441\u043B\u0435\u0434\u0443\u044E\u0449\u0435\u043C\u0443 \u044D\u043F\u0438\u0437\u043E\u0434\u0443",hotkey_map_item_next_episode_pc_value:"Ctrl + \u0421\u0442\u0440\u0435\u043B\u043A\u0430 \u0432\u043F\u0440\u0430\u0432\u043E",hotkey_map_item_next_episode_mac_value:"Option + \u0421\u0442\u0440\u0435\u043B\u043A\u0430 \u0432\u043F\u0440\u0430\u0432\u043E",waiting_live_day_value:"\u0434\u043D",waiting_live_hour_value:"\u0447",waiting_live_minute_value:"\u043C\u0438\u043D",waiting_live_second_value:"\u0441\u0435\u043A",waiting_live_colon:":",waiting_live_upcoming_title:"\u0422\u0440\u0430\u043D\u0441\u043B\u044F\u0446\u0438\u044F \u0435\u0449\u0435 \u043D\u0435 \u043D\u0430\u0447\u0430\u043B\u0430\u0441\u044C",waiting_live_timer_title:"\u0414\u043E \u043D\u0430\u0447\u0430\u043B\u0430 \u0442\u0440\u0430\u043D\u0441\u043B\u044F\u0446\u0438\u0438 \u043E\u0441\u0442\u0430\u043B\u043E\u0441\u044C",waiting_record_title:"\u0422\u0440\u0430\u043D\u0441\u043B\u044F\u0446\u0438\u044F \u0437\u0430\u0432\u0435\u0440\u0448\u0438\u043B\u0430\u0441\u044C, \u0438 \u0437\u0430\u043F\u0438\u0441\u044C \u0441\u043A\u043E\u0440\u043E \u0441\u0442\u0430\u043D\u0435\u0442 \u0434\u043E\u0441\u0442\u0443\u043F\u043D\u0430",aria_label_video_player:"\u0412\u0438\u0434\u0435\u043E \u043F\u043B\u0435\u0435\u0440",aria_label_spherical_control:"\u041A\u043E\u043D\u0442\u0440\u043E\u043B\u043B\u0435\u0440 \u0434\u043B\u044F \u0441\u0444\u0435\u0440\u0438\u0447\u0435\u0441\u043A\u043E\u0433\u043E \u0432\u0438\u0434\u0435\u043E. \u0418\u0441\u043F\u043E\u043B\u044C\u0437\u0443\u0439\u0442\u0435 \u043A\u043B\u0430\u0432\u0438\u0448\u0438 \u0441\u043E \u0441\u0442\u0440\u0435\u043B\u043A\u0430\u043C\u0438 \u0434\u043B\u044F \u043F\u0430\u043D\u043E\u0440\u0430\u043C\u0438\u0440\u043E\u0432\u0430\u043D\u0438\u044F \u0432\u0438\u0434\u0435\u043E.",aria_label_debug_panel:"\u041E\u0431\u043B\u0430\u0441\u0442\u044C \u0441 \u0442\u0435\u0445\u043D\u0438\u0447\u0435\u0441\u043A\u043E\u0439 \u0438\u043D\u0444\u043E\u0440\u043C\u0430\u0446\u0438\u0435\u0439, \u0441\u0434\u0435\u043B\u0430\u0439\u0442\u0435 \u0441\u043A\u0440\u0438\u043D\u0448\u043E\u0442 \u0434\u043B\u044F \u0442\u0435\u0445\u043F\u043E\u0434\u0434\u0435\u0440\u0436\u043A\u0438",aria_label_new_tab_alert:"\u041E\u0442\u043A\u0440\u043E\u0435\u0442\u0441\u044F \u0432 \u043D\u043E\u0432\u043E\u0439 \u0432\u043A\u043B\u0430\u0434\u043A\u0435.",aria_label_context_menu_open:"\u041E\u0442\u043A\u0440\u044B\u0442\u044C \u043A\u043E\u043D\u0442\u0435\u043A\u0441\u0442\u043D\u043E\u0435 \u043C\u0435\u043D\u044E",aria_label_context_menu_close:"\u0417\u0430\u043A\u0440\u044B\u0442\u044C \u043A\u043E\u043D\u0442\u0435\u043A\u0441\u0442\u043D\u043E\u0435 \u043C\u0435\u043D\u044E",aria_label_menu_quality:"\u041A\u0430\u0447\u0435\u0441\u0442\u0432\u043E: {actual}",aria_label_menu_rate:"\u0421\u043A\u043E\u0440\u043E\u0441\u0442\u044C: {actual}",aria_label_menu_traffic_saving:"\u042D\u043A\u043E\u043D\u043E\u043C\u0438\u044F \u0434\u0430\u043D\u043D\u044B\u0445: {actual}",aria_label_menu_subtitle:"\u0421\u0443\u0431\u0442\u0438\u0442\u0440\u044B: {actual}",aria_label_menu_download:"\u0421\u043A\u0430\u0447\u0430\u0442\u044C \u0432\u0438\u0434\u0435\u043E",aria_label_menu_debug_overlay_enable:"\u0412\u043A\u043B\u044E\u0447\u0438\u0442\u044C \u043E\u0442\u043E\u0431\u0440\u0430\u0436\u0435\u043D\u0438\u0435 \u0442\u0435\u0445\u043D\u0438\u0447\u0435\u0441\u043A\u043E\u0439 \u0438\u043D\u0444\u043E\u0440\u043C\u0430\u0446\u0438\u0438",aria_label_menu_debug_overlay_disable:"\u0412\u044B\u043A\u043B\u044E\u0447\u0438\u0442\u044C \u043E\u0442\u043E\u0431\u0440\u0430\u0436\u0435\u043D\u0438\u0435 \u0442\u0435\u0445\u043D\u0438\u0447\u0435\u0441\u043A\u043E\u0439 \u0438\u043D\u0444\u043E\u0440\u043C\u0430\u0446\u0438\u0438",aria_label_menu_rotate:"\u041F\u043E\u0432\u0435\u0440\u043D\u0443\u0442\u044C \u0432\u0438\u0434\u0435\u043E \u043D\u0430 90 \u0433\u0440\u0430\u0434\u0443\u0441\u043E\u0432",aria_label_menu_loop:"\u041F\u0435\u0440\u0435\u043A\u043B\u044E\u0447\u0435\u043D\u0438\u0435 \u0440\u0435\u0436\u0438\u043C\u0430 \u043F\u043E\u0432\u0442\u043E\u0440\u0435\u043D\u0438\u044F",aria_label_submenu_back:"\u0412\u0435\u0440\u043D\u0443\u0442\u044C\u0441\u044F \u0432 \u043C\u0435\u043D\u044E \u043D\u0430\u0441\u0442\u0440\u043E\u0435\u043A",aria_label_submenu_traffic_saving_off:"\u0412\u044B\u043A\u043B\u044E\u0447\u0438\u0442\u044C \u0440\u0435\u0436\u0438\u043C \u044D\u043A\u043E\u043D\u043E\u043C\u0438\u0438 \u0434\u0430\u043D\u043D\u044B\u0445",aria_label_submenu_traffic_saving_on:"\u0412\u043A\u043B\u044E\u0447\u0438\u0442\u044C \u0440\u0435\u0436\u0438\u043C \u044D\u043A\u043E\u043D\u043E\u043C\u0438\u0438 \u0434\u0430\u043D\u043D\u044B\u0445"},Rf=l2;var r2={mobile_unmute:"Unmute",auto_quality_invariant:"Auto",auto_quality:"Auto ({actual})",auto_quality_option:"Auto",menu_quality:"Quality",menu_playback_rate:"Playback rate",menu_traffic_saving:"Data saving",menu_report:"Report a problem",menu_pip:"Picture in picture",menu_copy_video_link:"Copy video link",menu_copy_video_link_with_timestamp:"Copy link with timestamp",menu_video_rotate:"Rotate",menu_video_loop_on:"Enable loop",menu_video_loop_off:"Disable loop",menu_chromecast:"Chromecast stream",menu_copy_debug:"Copy debug info",menu_save_debug:"Save debug info",menu_debug_overlay:"Tech stats",pip_dummy_title:"Video plays in picture-in-picture mode",submenu_quality:"Quality",submenu_playback_rate:"Playback rate",submenu_traffic_saving:"Data saving",submenu_settings:"Settings",playing_ads:"Ads {timeleft}",skip_ads_after:"Skip ads",skip_ads_now:"Ads can be skipped in {time}s",visit_advertiser:"Visit site",aria_timeline:"Time scale slider",aria_timeline_value:"{position} out of {duration}",aria_open_settings:"Open video player settings",doubletap_seek_step:"{seconds} seconds",playback_rate_1:"Normal",playback_rate:"{multiplier}x",video360:"spherical video",subtitles_caption:"Subtitles",subtitles_auto:"{language} (Auto-generated)",subtitles_off:"Off",subtitles_auto_caption:"Auto subtitles",subtitles_turn_on:"Turn on subtitles",subtitles_turn_off:"Turn off subtitles",traffic_saving_off:"Off",traffic_saving_on:"On",traffic_saving_disable:"Disabled",traffic_saving_enable:"Enabled",traffic_saving_helper_text:"When turned on the video quality will be reduced to save data",tooltip_button_disabled:"Button disabled",tooltip_previous:"Previous video",tooltip_restart:"Watch again",tooltip_play:"Play",tooltip_pause:"Pause",tooltip_next:"Next video",tooltip_interactive_go_back:"Back to previous chapter",tooltip_interactive_go_back_disabled:"Interactive history unavailable",tooltip_interactive_go_back_disabled_first:"You're watching the first chapter",tooltip_interactive_go_back_disabled_limit:"Go-back limit exceeded",tooltip_chapter_without_interactive:"This chapter has no interactive segment",tooltip_interactive_of_chapter_completed:"Chapter's interactive segments already watched",tooltip_interactive_seek:"Go to interactive",tooltip_interactive_graph_off:"Show interactive graph",tooltip_interactive_graph_on:"Hide interactive graph",tooltip_live:"Go to the live edge",tooltip_episodes:"Episodes",tooltip_volume:"Turn volume off",tooltip_volume_muted:"Turn volume on",tooltip_subtitles_off:"Turn subtitles on",tooltip_subtitles_on:"Turn subtitles off",tooltip_settings_off:"Open settings",tooltip_settings_on:"Close settings",tooltip_fullscreen_off:"Enter fullscreen mode",tooltip_fullscreen_on:"Exit fullscreen mode",tooltip_chromecast_off:"Turn Chromecast on",tooltip_chromecast_on:"Turn Chromecast off",tooltip_episode_finished:"You have already viewed interactive episode",tooltip_episode_unfinished:"Interactive episode not finished",tooltip_disabled_when_interactive:"Interactive video in progress",tooltip_disabled_when_graph_on:"Button is disabled when graph is opened",tooltip_interactive_interaction_time_indicator:"Press the interactive element",tooltip_vk_logo:"Open in VK Video",tooltip_vk_video_logo:"Go to VK Video",download_video_caption:"Download video",hotkey_helper_current_volume:"{value} %",hotkey_map_modal_title:"Keyboard shortcuts",hotkey_map_modal_close_btn_text:"Close",hotkey_map_group_title_common:"Common",hotkey_map_group_title_playback:"Playback",hotkey_map_group_title_subtitles:"Subtitles",hotkey_map_group_title_episodes:"Episodes",hotkey_map_item_mute_description:"Toggle mute",hotkey_map_item_mute_value:"m",hotkey_map_item_volume_up_description:"Increase volume",hotkey_map_item_volume_up_value:"Arrow up",hotkey_map_item_volume_down_description:"Decrease volume",hotkey_map_item_volume_down_value:"Arrow down",hotkey_map_item_pip_description:"Toggle miniplayer",hotkey_map_item_pip_value:"i",hotkey_map_item_full_screen_description:"Toggle full screen",hotkey_map_item_full_screen_value:"f",hotkey_map_item_show_context_menu_description:"Hide or show context menu",hotkey_map_item_show_context_menu_value:"Shift + !",hotkey_map_item_show_hotkey_map_description:"Hide or show list of hotkeys",hotkey_map_item_show_hotkey_map_value:"Shift + ?",hotkey_map_item_play_toggle_description:"Toggle play/pause",hotkey_map_item_play_toggle_value:"Space (or k)",hotkey_map_item_seek_backward_description:"Rewind 10 seconds",hotkey_map_item_seek_backward_value:"Arrow left (or j)",hotkey_map_item_seek_forward_description:"Forward 10 seconds",hotkey_map_item_seek_forward_value:"Arrow right (or l)",hotkey_map_item_fast_seek_backward_description:"Fast rewind",hotkey_map_item_fast_seek_backward_value:"Shift + Arrow left",hotkey_map_item_fast_seek_forward_description:"Fast forward",hotkey_map_item_fast_seek_forward_value:"Shift + Arrow right",hotkey_map_item_rate_down_description:"Decrease playback rate",hotkey_map_item_rate_down_value:"< (Shift + ,)",hotkey_map_item_rate_up_description:"Increase playback rate",hotkey_map_item_rate_up_value:"> (Shift + .)",hotkey_map_item_prev_frame_description:"Previous frame (while paused)",hotkey_map_item_prev_frame_value:",",hotkey_map_item_next_frame_description:"Next frame (while paused)",hotkey_map_item_next_frame_value:".",hotkey_map_item_jump_seek_description:"Seek to specific point in the video (7 advances to 70% of duration)",hotkey_map_item_jump_seek_value:"0, 1, 2, 3, 4, 5, 6, 7, 8, 9",hotkey_map_item_subtitles_toggle_description:"Toggle captions ON/OFF",hotkey_map_item_subtitles_toggle_value:"c",hotkey_map_item_prev_episode_description:"Seek to previous episode",hotkey_map_item_prev_episode_pc_value:"Ctrl + Arrow left",hotkey_map_item_prev_episode_mac_value:"Option + Arrow left",hotkey_map_item_next_episode_description:"Seek to next episode",hotkey_map_item_next_episode_pc_value:"Ctrl + Arrow right",hotkey_map_item_next_episode_mac_value:"Option + Arrow right",waiting_live_day_value:"d",waiting_live_hour_value:"h",waiting_live_minute_value:"min",waiting_live_second_value:"sec",waiting_live_colon:":",waiting_live_upcoming_title:"The broadcast hasn't started yet",waiting_live_timer_title:"Before the start of the broadcast left",waiting_record_title:"The broadcast has ended and the recording will be available soon",aria_label_video_player:"Video player",aria_label_spherical_control:"Spherical video control. Use the arrow keys to pan the video.",aria_label_debug_panel:"Technical information area, take a screenshot for technical support",aria_label_new_tab_alert:"Opens in a new tab.",aria_label_context_menu_open:"Open context menu",aria_label_context_menu_close:"Close context menu",aria_label_menu_quality:"Quality: {actual}",aria_label_menu_rate:"Rate: {actual}",aria_label_menu_traffic_saving:"Data saving: {actual}",aria_label_menu_subtitle:"Subtitles: {actual}",aria_label_menu_download:"Download video",aria_label_menu_debug_overlay_enable:"Enable display of technical information",aria_label_menu_debug_overlay_disable:"Disable display of technical information",aria_label_menu_rotate:"Rotate video 90 degrees",aria_label_menu_loop:"Toggle loop",aria_label_submenu_back:"Return to settings menu",aria_label_submenu_traffic_saving_off:"Disable data saving mode",aria_label_submenu_traffic_saving_on:"Enable data saving mode"},Bf=r2;var lo=new Map;lo.set(ol.InterfaceLanguage.EN,Bf);lo.set(ol.InterfaceLanguage.RU,Rf);var Df=new Map,Os=({language:i,pack:e,fallback:t})=>{if(lo.has(i)){let n=lo.get(i);lo.set(i,ot(ot({},n),e))}else lo.set(i,e);Df.set(i,t)},Fs=i=>lo.has(i),Hs=(i,e,t,n)=>{var l;let o=lo.get(i),r=o==null?void 0:o[e];if((0,ol.isNullable)(r)){let a=(l=Df.get(i))!=null?l:n,s=a?lo.get(a):void 0;r=s==null?void 0:s[e]}return(0,ol.isNullable)(r)?e+Object.values(t!=null?t:{}).join(" "):t?r.replaceAll(/{(\w+?)}/g,(a,s)=>{var u;return(u=t[s])!=null?u:""}):r},Q=(i,e)=>{let{interfaceLanguage$:t}=nt(),n=it(t),o=Wt();return Hs(n,i,e,o.defaultLanguage)};var P9=require("@vkontakte/videoplayer-core");var ll;(function(i){i.fatal="fatal",i.error="error",i.warning="warning",i.log="log",i.info="info",i.debug="debug",i.critical="critical"})(ll||(ll={}));var s2=/^\s*at (?:(.*?) ?\()?((?:file|https?|blob|chrome-extension|address|native|eval|webpack|<anonymous>|[-a-z]+:|.*bundle|\/).*?)(?::(\d+))?(?::(\d+))?\)?\s*$/i,a2=/^\s*(.*?)(?:\((.*?)\))?(?:^|@)?((?:file|https?|blob|chrome|webpack|resource|moz-extension).*?:\/.*?|\[native code\]|[^@]*(?:bundle|\d+\.js))(?::(\d+))?(?::(\d+))?\s*$/i,u2=/^\s*at (?:((?:\[object object\])?.+) )?\(?((?:file|ms-appx|https?|webpack|blob):.*?):(\d+)(?::(\d+))?\)?\s*$/i,ar="?",c2="X-Sentry-Auth",f2=/^(?:(\w+):)\/\/(?:([\w-]+)(?::(\w+))?@)([\w.-]+)(?::(\d+))?\/(.+)/;function d2(i){if(!i.stack)return null;let e=[],t=i.stack.split(`
13
+ `),n,o;for(let r=0;r<t.length;++r){if(n=s2.exec(t[r]))o={filename:n[2]&&n[2].indexOf("address at ")===0?n[2].substr(11):n[2],function:n[1]||ar,lineno:n[3]?+n[3]:null,colno:n[4]?+n[4]:null};else if(n=u2.exec(t[r]))o={filename:n[2],function:n[1]||ar,lineno:+n[3],colno:n[4]?+n[4]:null};else if(n=a2.exec(t[r]))r===0&&!n[5]&&i.columnNumber!==void 0&&(e[0].column=i.columnNumber+1),o={filename:n[3],function:n[1]||ar,lineno:n[4]?+n[4]:null,colno:n[5]?+n[5]:null};else continue;!o.function&&o.lineno&&(o.function=ar),e.push(o)}return e.length?{value:Nf(i),type:i.name,stacktrace:{frames:e.reverse()}}:null}function Nf(i){return(i&&i.message||"No error message").split(`
14
+ `).filter(t=>!!t)[0]}function m2(i){try{let e=d2(i);if(e)return e}catch(e){}return{value:Nf(i),type:i&&i.name,stacktrace:{frames:[]}}}function p2(){return"xxxxxxxxxxxx4xxxyxxxxxxxxxxxxxxx".replace(/[xy]/g,i=>{let e=Math.random()*16|0;return(i==="x"?e:e&3|8).toString(16)})}var ur=class{constructor(e){if(e&&e.dsn){let t=f2.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 Dt(ot({},this.getRequestBlank()),{exception:{values:[m2(e)]}})}report(e){this.send(this.prepare(e))}send(e){!this.apiUrl||!e||this.createRequest(e)}createRequest(e){let t=new XMLHttpRequest;t.open("POST",this.apiUrl,!0),t.setRequestHeader("Content-type","application/json"),t.setRequestHeader(c2,this.authHeader||""),t.send(JSON.stringify(e))}getRequestBlank(){return{platform:"javascript",event_id:p2(),sdk:{name:"micro-sentry.javascript.core",version:"0.0.0"},timestamp:Date.now()/1e3,environment:this.environment}}};function Of(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}var cr=class i extends ur{constructor(e,t=_2()){super(e),this.options=e,this.window=t,this.destroyed=!1,this._state={};let{plugins:n=[],beforeSend:o=u=>u,beforeBreadcrumb:r=u=>u,blacklistUrls:l=[],ignoreErrors:a=[],release:s=void 0}=this.options||{};this.plugins=n.map(u=>new u(this)),this.beforeSend=o,this.beforeBreadcrumb=r,this.blacklistUrls=l,this.ignoreErrors=a,this.release=s}get state(){return this._state}clearState(){this._state={}}setTags(e){return this.setKeyState("tags",ot({},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",ot({},e)),this}setUser(e){return this.setKeyState("user",ot({},e)),this}clone(){let e=new i(Dt(ot({},this.options),{plugins:[]}));return e.extendState(this.state),e}withScope(e){let t=this.clone();e(t),t.destroy(),this.setBreadcrumbs(void 0)}addBreadcrumb(e){this.extendState({breadcrumbs:[ot({timestamp:Date.now()/1e3},this.beforeBreadcrumb(e))]})}setBreadcrumbs(e){this.setKeyState("breadcrumbs",e)}captureMessage(e,t){this.send(Dt(ot({},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=>Of(t,n))):!1}getRequestBlank(){return ot(Dt(ot({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(ot({release:this.release},e))),this.setBreadcrumbs(void 0))}getPossibleEventMessages(e){if(e.message)return[e.message];if(e.exception)try{let{type:t="",value:n=""}=e.exception.values&&e.exception.values[0]||{};return[`${n}`,`${t}: ${n}`]}catch(t){return[]}return[]}isDeniedUrl(e){if(!this.blacklistUrls.length)return!1;let t=this.getEventFilterUrl(e);return t?this.blacklistUrls.some(n=>Of(t,n)):!1}getEventFilterUrl(e){try{if(e.exception){let t=e.exception.values&&e.exception.values[0].stacktrace&&e.exception.values[0].stacktrace.frames;return t&&t[t.length-1].filename||null}return null}catch(t){return null}}extendState(e){this._state=Object.keys(e).reduce((t,n)=>{let o=this._state[n],r=Array.isArray(o)?o:null,l=e[n],a=Array.isArray(l)?l:null;return Dt(ot({},t),{[n]:r||a?[...r||[],...a||[]]:ot(ot({},typeof o!="string"?o:{}),typeof l!="string"?l:{})})},this._state)}setKeyState(e,t){this._state[e]=t}};var Do=require("@vkontakte/videoplayer-shared");var fr=null,No=class{constructor(e,t,n={}){!fr&&e.dsn&&(this.sentryClient=new cr({dsn:e.dsn,environment:t.env}),this.version=t.version,this.sentrySubscription=new Do.Subscription,this.options=e,this.context=n,fr=this)}destroy(){var e,t;(e=this.sentryClient)==null||e.destroy(),(t=this.sentrySubscription)==null||t.unsubscribe(),fr=null}logIError(e,t=!1){e.thrown&&this.report(e.thrown,{fatal:t,errorType:e.id,category:e.category},{message:e.message,errorData:e.data})}report(e,t={},n={}){let{sentryClient:o,context:r,options:l}=this,{sampleRate:a=0,whiteErrorIdList:s,whiteErrorCategoryList:u=[],blackErrorIdList:f,blackErrorCategoryList:m}=l,{errorType:h,category:y}=t;if((0,Do.isNonNullable)(y)&&m.includes(y)||(0,Do.isNonNullable)(h)&&f.includes(h))return;if(Math.random()<=a||(0,Do.isNonNullable)(y)&&u.includes(y)||(0,Do.isNonNullable)(h)&&s.includes(h)){Object.keys(t).length&&o.setTags(ot({version:this.version},t)),(Object.keys(r).length||Object.keys(n).length)&&o.setExtras(ot(ot({},r),n));try{h&&o.captureMessage(h,t.fatal?ll.fatal:ll.error),o.report(e)}catch(S){console.error(S)}}}static getInstance(){return fr}};var dr=i=>{if(i.requestFullscreen)return i.requestFullscreen();if(i.msRequestFullscreen)return i.msRequestFullscreen();if(i.webkitRequestFullscreen)return i.webkitRequestFullscreen();if(i.mozRequestFullScreen)return i.mozRequestFullScreen();let e=i.querySelector("video");return e!=null&&e.webkitEnterFullscreen?e.webkitEnterFullscreen():Promise.reject()},mr=i=>i.exitFullscreen?i.exitFullscreen():i.msExitFullscreen?i.msExitFullscreen():i.webkitExitFullscreen?i.webkitExitFullscreen():i.mozCancelFullScreen?i.mozCancelFullScreen():Promise.reject(),Ff=i=>{let e=i;return e!=null&&e.webkitExitFullscreen?e==null?void 0:e.webkitExitFullscreen():Promise.reject()},Vl=()=>{let i=document;return i.fullscreenElement||i.mozFullScreenElement||i.webkitFullscreenElement||i.msFullscreenElement},_o=()=>!!Vl(),pr=i=>{document.addEventListener("fullscreenchange",i),document.addEventListener("webkitfullscreenchange",i),document.addEventListener("mozfullscreenchange",i),document.addEventListener("MSFullscreenChange",i)},_r=i=>{document.removeEventListener("fullscreenchange",i),document.removeEventListener("webkitfullscreenchange",i),document.removeEventListener("mozfullscreenchange",i),document.removeEventListener("MSFullscreenChange",i)},Hf=i=>{let e=window.screen;return(o=>ut(void 0,null,function*(){return e.orientation?e.orientation.lock(o):e.mozLockOrientation?e.mozLockOrientation(o):e.msLockOrientation?e.msLockOrientation(o):Promise.reject()}))(((o={width:0,height:0})=>o.width<=o.height?"portrait":"landscape")(i))};var zs=require("@vkontakte/videoplayer-shared"),zf=()=>({title:Q("hotkey_map_modal_title"),closeBtnText:Q("hotkey_map_modal_close_btn_text"),groups:[{title:Q("hotkey_map_group_title_common"),items:[{description:Q("hotkey_map_item_mute_description"),value:Q("hotkey_map_item_mute_value")},{description:Q("hotkey_map_item_volume_up_description"),value:Q("hotkey_map_item_volume_up_value")},{description:Q("hotkey_map_item_volume_down_description"),value:Q("hotkey_map_item_volume_down_value")},{description:Q("hotkey_map_item_pip_description"),value:Q("hotkey_map_item_pip_value")},{description:Q("hotkey_map_item_full_screen_description"),value:Q("hotkey_map_item_full_screen_value")},{description:Q("hotkey_map_item_show_context_menu_description"),value:Q("hotkey_map_item_show_context_menu_value")},{description:Q("hotkey_map_item_show_hotkey_map_description"),value:Q("hotkey_map_item_show_hotkey_map_value")}]},{title:Q("hotkey_map_group_title_playback"),items:[{description:Q("hotkey_map_item_play_toggle_description"),value:Q("hotkey_map_item_play_toggle_value")},{description:Q("hotkey_map_item_seek_backward_description"),value:Q("hotkey_map_item_seek_backward_value")},{description:Q("hotkey_map_item_seek_forward_description"),value:Q("hotkey_map_item_seek_forward_value")},{description:Q("hotkey_map_item_fast_seek_backward_description"),value:Q("hotkey_map_item_fast_seek_backward_value")},{description:Q("hotkey_map_item_fast_seek_forward_description"),value:Q("hotkey_map_item_fast_seek_forward_value")},{description:Q("hotkey_map_item_rate_down_description"),value:Q("hotkey_map_item_rate_down_value")},{description:Q("hotkey_map_item_rate_up_description"),value:Q("hotkey_map_item_rate_up_value")},{description:Q("hotkey_map_item_prev_frame_description"),value:Q("hotkey_map_item_prev_frame_value")},{description:Q("hotkey_map_item_next_frame_description"),value:Q("hotkey_map_item_next_frame_value")},{description:Q("hotkey_map_item_jump_seek_description"),value:Q("hotkey_map_item_jump_seek_value")}]},{title:Q("hotkey_map_group_title_subtitles"),items:[{description:Q("hotkey_map_item_subtitles_toggle_description"),value:Q("hotkey_map_item_subtitles_toggle_value")}]},{title:Q("hotkey_map_group_title_episodes"),items:[{description:Q("hotkey_map_item_prev_episode_description"),value:(0,zs.isMacLike)()?Q("hotkey_map_item_prev_episode_mac_value"):Q("hotkey_map_item_prev_episode_pc_value")},{description:Q("hotkey_map_item_next_episode_description"),value:(0,zs.isMacLike)()?Q("hotkey_map_item_next_episode_mac_value"):Q("hotkey_map_item_next_episode_pc_value")}]}]});var ho=require("@vkontakte/videoplayer-shared");var Oo=class{constructor(){this.isRequested=!1;this.videoElement=void 0;this.playerContainer=void 0;this.externalEventHandlers={};this.eventHandlers={enterpictureinpicture:this.onEnterPictureInPicture.bind(this),leavepictureinpicture:this.onLeavePictureInPicture.bind(this),resize:(0,ho.debounceFn)(this.onResize.bind(this),300)};this.info={isActive$:new ho.ValueSubject(this.isActive()),type:0}}isSupported(){let e=(0,ho.getCurrentBrowser)().browser===ho.CurrentClientBrowser.Yandex;return document.pictureInPictureEnabled&&!e}isActive(){return this.isSupported()&&!!document.pictureInPictureElement}setContext(e){this.svelteContext=e}revealPictureInPicture(){return ut(this,null,function*(){this.isRequested&&(this.unregistryEventHandlers(),yield this.request(),this.registryEventHandlers())})}request(){return ut(this,null,function*(){var e;if(!(!this.isSupported()||this.isActive()))try{yield(e=this.videoElement)==null?void 0:e.requestPictureInPicture()}catch(t){this.isRequested=!1}})}remove(){return ut(this,null,function*(){!this.isSupported()||!this.isActive()||(yield document.exitPictureInPicture())})}assignPlayerContainer(e){this.isSupported()&&(this.playerContainer=e)}updateVideoElement(){var e;this.isSupported()&&(this.videoElement=(e=this.playerContainer)==null?void 0:e.querySelector("video"))}registryEventHandlers(){var e,t;(e=this.videoElement)==null||e.addEventListener("enterpictureinpicture",this.eventHandlers.enterpictureinpicture),(t=this.videoElement)==null||t.addEventListener("leavepictureinpicture",this.eventHandlers.leavepictureinpicture)}registryExternalEventHandlers(e){this.externalEventHandlers=ot({},e)}unregistryEventHandlers(){var e,t;(e=this.videoElement)==null||e.removeEventListener("enterpictureinpicture",this.eventHandlers.enterpictureinpicture),(t=this.videoElement)==null||t.removeEventListener("leavepictureinpicture",this.eventHandlers.leavepictureinpicture)}dispose(){return ut(this,null,function*(){this.unregistryEventHandlers(),yield this.remove()})}onEnterPictureInPicture(e){var o,r;let n=e.pictureInPictureWindow;n&&(this.info.isActive$.next(!0),this.isRequested=!0,n.addEventListener("resize",this.eventHandlers.resize),(r=(o=this.externalEventHandlers).enterpictureinpicture)==null||r.call(o,e))}onLeavePictureInPicture(e){var o,r,l;let n=e.pictureInPictureWindow;this.info.isActive$.next(!1),this.isRequested=!1,n==null||n.removeEventListener("resize",this.eventHandlers.resize),(r=(o=this.externalEventHandlers).leavepictureinpicture)==null||r.call(o,e),(l=this.playerDummyElement)==null||l.$destroy()}onResize(e){var t,n;(n=(t=this.externalEventHandlers).resize)==null||n.call(t,e)}};function Fo(i){return i instanceof Oo}function h2(i){let e=nt();return Ft(()=>{e.getAdmanWrapper().startPostroll()}),[]}var Ks=class extends j{constructor(e){super(),W(this,e,h2,null,U,{})}},qf=Ks;var Uf=require("@vkontakte/videoplayer-shared");function g2(i){Te(i,"svelte-1k4i25s",".container.svelte-1k4i25s.svelte-1k4i25s{position:absolute;top:14px;right:16px;padding:6px 10px;font-size:13px;color:#fff;background:rgba(0, 0, 0, 0.56);border-radius:6px;transition:color .2s}.container-mobile.svelte-1k4i25s.svelte-1k4i25s{bottom:14px;top:unset;font-size:15px;max-width:142px}.icon.svelte-1k4i25s.svelte-1k4i25s{margin-left:4px;position:relative;top:2px;fill:var(--white);transition:fill .2s}.skip.svelte-1k4i25s.svelte-1k4i25s{width:86px}.skippable.svelte-1k4i25s.svelte-1k4i25s{cursor:pointer;color:var(--white)}.skippable.svelte-1k4i25s.svelte-1k4i25s:hover{color:rgba(255, 255, 255, .75)}.skippable.svelte-1k4i25s:hover .icon.svelte-1k4i25s{fill:rgba(255, 255, 255, .75)}")}function b2(i){let e=Q("skip_ads_after",{time:Math.ceil(i[1]-i[0]).toFixed(0)})+"",t;return{c(){t=Be(e)},m(n,o){C(n,t,o)},p(n,o){o&3&&e!==(e=Q("skip_ads_after",{time:Math.ceil(n[1]-n[0]).toFixed(0)})+"")&&Ze(t,e)},d(n){n&&k(t)}}}function v2(i){let e,t=Q("skip_ads_now")+"",n,o,r,l,a,s;return{c(){e=P("div"),n=Be(t),o=O(),r=N("svg"),l=N("path"),c(l,"fill-rule","evenodd"),c(l,"clip-rule","evenodd"),c(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"),c(r,"class","icon svelte-1k4i25s"),c(r,"width","7"),c(r,"height","12"),c(r,"viewBox","0 0 7 12"),c(r,"fill","none"),c(r,"xmlns","http://www.w3.org/2000/svg"),c(e,"class","skip svelte-1k4i25s")},m(u,f){C(u,e,f),p(e,n),p(e,o),p(e,r),p(r,l),a||(s=de(e,"click",ct(function(){Vi(i[2])&&i[2].apply(this,arguments)})),a=!0)},p(u,f){i=u},d(u){u&&k(e),a=!1,s()}}}function y2(i){let e;function t(r,l){return r[3]?v2:b2}let n=t(i,-1),o=n(i);return{c(){e=P("div"),o.c(),c(e,"class","container svelte-1k4i25s"),z(e,"container-mobile",i[4]),z(e,"skippable",i[3])},m(r,l){C(r,e,l),o.m(e,null)},p(r,[l]){n===(n=t(r,l))&&o?o.p(r,l):(o.d(1),o=n(r),o&&(o.c(),o.m(e,null))),l&16&&z(e,"container-mobile",r[4]),l&8&&z(e,"skippable",r[3])},i:pe,o:pe,d(r){r&&k(e),o.d()}}}function w2(i,e,t){let n,{position:o=0}=e,{secondsToWatchBeforeSkip:r=0}=e,{skipAd:l=Uf.noop}=e,s=nt().ui.isMobile;F(i,s,f=>t(4,n=f));let u;return i.$$set=f=>{"position"in f&&t(0,o=f.position),"secondsToWatchBeforeSkip"in f&&t(1,r=f.secondsToWatchBeforeSkip),"skipAd"in f&&t(2,l=f.skipAd)},i.$$.update=()=>{if(i.$$.dirty&3)e:t(3,u=o>0&&o>=r)},[o,r,l,u,n,s]}var js=class extends j{constructor(e){super(),W(this,e,w2,y2,U,{position:0,secondsToWatchBeforeSkip:1,skipAd:2},g2)}},Kf=js;function k2(i){Te(i,"svelte-1wy3dql","button.svelte-1wy3dql{position:absolute;pointer-events:none;bottom:14px;left:16px;font-size:15px;background:white;border:none;padding:6px 10px;border-radius:6px;color:black}")}function C2(i){let e;return{c(){e=P("button"),e.textContent=`${Q("visit_advertiser")}`,c(e,"class","svelte-1wy3dql")},m(t,n){C(t,e,n)},p:pe,i:pe,o:pe,d(t){t&&k(e)}}}var Ws=class extends j{constructor(e){super(),W(this,e,null,C2,U,{},k2)}},jf=Ws;function S2(i){Te(i,"svelte-354ajf",`.container.svelte-354ajf{width:100%;height:100%}.top-gradient-mobile.svelte-354ajf{position:absolute;width:100%;height:80px;top:0;left:0;pointer-events:none;background:linear-gradient(
15
15
  360deg,
16
16
  rgba(0, 0, 0, 0) 0%,
17
17
  rgba(0, 0, 0, 0.05) 12%,
@@ -21,15 +21,15 @@
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 jc(i){let e;return{c(){e=T("div"),f(e,"class","top-gradient-mobile svelte-354ajf")},m(t,n){C(t,e,n)},d(t){t&&k(e)}}}function Wc(i){let e,t;return e=new Uc({props:{position:i[5],secondsToWatchBeforeSkip:i[6],skipAd:i[8].actions.internal.skipAd}}),{c(){D(e.$$.fragment)},m(n,o){B(e,n,o),t=!0},p(n,o){let r={};o&32&&(r.position=n[5]),o&64&&(r.secondsToWatchBeforeSkip=n[6]),e.$set(r)},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){_(e.$$.fragment,n),t=!1},d(n){R(e,n)}}}function Gc(i){let e,t;return e=new zc({}),{c(){D(e.$$.fragment)},m(n,o){B(e,n,o),t=!0},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){_(e.$$.fragment,n),t=!1},d(n){R(e,n)}}}function Qc(i){let e,t;return e=new Kc({}),{c(){D(e.$$.fragment)},m(n,o){B(e,n,o),t=!0},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){_(e.$$.fragment,n),t=!1},d(n){R(e,n)}}}function S2(i){let e,t,n,o,r,l,a,s=i[0]&&jc(i),u=i[3]&&Wc(i),c=i[7]&&Gc(i),m=i[4]&&Qc(i);return{c(){e=T("div"),s&&s.c(),t=O(),n=T("video"),o=O(),u&&u.c(),r=O(),c&&c.c(),l=O(),m&&m.c(),vi(n,"width","100%"),vi(n,"height","100%"),n.playsInline=!0,f(e,"class","container svelte-354ajf")},m(h,y){C(h,e,y),s&&s.m(e,null),p(e,t),p(e,n),i[19](n),p(e,o),u&&u.m(e,null),p(e,r),c&&c.m(e,null),p(e,l),m&&m.m(e,null),i[20](e),a=!0},p(h,[y]){h[0]?s||(s=jc(h),s.c(),s.m(e,t)):s&&(s.d(1),s=null),h[3]?u?(u.p(h,y),y&8&&d(u,1)):(u=Wc(h),u.c(),d(u,1),u.m(e,r)):u&&(fe(),_(u,1,1,()=>{u=null}),ce()),h[7]?c?y&128&&d(c,1):(c=Gc(h),c.c(),d(c,1),c.m(e,l)):c&&(fe(),_(c,1,1,()=>{c=null}),ce()),h[4]?m?y&16&&d(m,1):(m=Qc(h),m.c(),d(m,1),m.m(e,null)):m&&(fe(),_(m,1,1,()=>{m=null}),ce())},i(h){a||(d(u),d(c),d(m),a=!0)},o(h){_(u),_(c),_(m),a=!1},d(h){h&&k(e),s&&s.d(),i[19](null),u&&u.d(),c&&c.d(),m&&m.d(),i[20](null)}}}function P2(i,e,t){let n,o,r,l,a,{adsSlotId:s=void 0}=e,{adsParams:u=void 0}=e,{adsPreviewParam:c=void 0}=e,{duration:m=0}=e,h=it(),y=h.state.isEnded$;F(i,y,H=>t(7,a=H));let b=h.ui.isMobile;F(i,b,H=>t(0,o=H));let S,w,P=!1,v=h.ads.playbackState;F(i,v,H=>t(18,n=H));let g=h.ads.canSkip,I=h.ads.position;F(i,I,H=>t(5,r=H));let A=h.ads.secondsToWatchBeforeSkip;F(i,A,H=>t(6,l=H));let q,K;Nt(()=>{let H=new AbortController,L=()=>{H.abort()},x=h.getAdmanWrapper();if(!s){x.onAdmanLoadingError();return}let{width:Q,height:J}=tt(h.ui.playerSize),E=tt(h.ui.isFullscreen),te=tt(h.ui.isAutoplay),M={width:Q,height:J,isFullscreen:E,isAutoplay:te,adsContainer:S,adsVideoElement:w,slotId:s,params:u,previewParam:c,duration:m};return window.AdmanHTML?(x.initAdman(M),P=!0):x.loadAdman(H.signal).then(()=>{x.initAdman(M),P=!0}).catch(()=>{x.onAdmanLoadingError()}),()=>{!P&&L()}});function re(H){_e[H?"unshift":"push"](()=>{w=H,t(2,w)})}function ae(H){_e[H?"unshift":"push"](()=>{S=H,t(1,S)})}return i.$$set=H=>{"adsSlotId"in H&&t(14,s=H.adsSlotId),"adsParams"in H&&t(15,u=H.adsParams),"adsPreviewParam"in H&&t(16,c=H.adsPreviewParam),"duration"in H&&t(17,m=H.duration)},i.$$.update=()=>{if(i.$$.dirty&262144)e:t(3,q=g&&n!=="inactive");if(i.$$.dirty&262145)e:t(4,K=o&&n!=="inactive")},[o,S,w,q,K,r,l,a,h,y,b,v,I,A,s,u,c,m,n,re,ae]}var js=class extends j{constructor(e){super(),W(this,e,P2,S2,U,{adsSlotId:14,adsParams:15,adsPreviewParam:16,duration:17},C2)}},_r=js;var An=i=>{if(!isFinite(i))return"00:00";let e=Math.round(i),t=Math.floor(e/(60*60));e-=t*3600;let n=Math.floor(e/60);return e-=n*60,(t>0?[t,n,e]:[n,e]).map(r=>r>9?String(r):`0${r}`).join(":")};function T2(i){let e,t,n,o,r=i[2].default,l=Ee(r,i,i[1],null),a=[{xmlns:"http://www.w3.org/2000/svg"},{width:"42"},{height:"20"},{"aria-hidden":"true"},{"data-testid":"live-icon"},{role:"img"},i[0]],s={};for(let u=0;u<a.length;u+=1)s=oe(s,a[u]);return{c(){e=N("svg"),l&&l.c(),t=N("path"),n=N("path"),f(t,"fill","none"),f(t,"stroke","#fff"),f(t,"stroke-width","2"),f(t,"d","M6.41 1A6.46 6.46 0 0 0 3 1.55 3.5 3.5 0 0 0 1.55 3 6.46 6.46 0 0 0 1 6.41v7.18A6.46 6.46 0 0 0 1.55 17 3.5 3.5 0 0 0 3 18.45a6.46 6.46 0 0 0 3.41.55h29.18a6.46 6.46 0 0 0 3.41-.55A3.5 3.5 0 0 0 40.45 17a6.46 6.46 0 0 0 .55-3.41V6.41A6.46 6.46 0 0 0 40.45 3 3.5 3.5 0 0 0 39 1.55 6.46 6.46 0 0 0 35.59 1z"),f(n,"fill","#f0f2f5"),f(n,"fill-rule","evenodd"),f(n,"d","M8 5a1 1 0 0 1 1 1v7h3a1 1 0 0 1 1 .88V14a1 1 0 0 1-1 1H8a1 1 0 0 1-1-.77v-.11A.5.5 0 0 1 7 14V6a1 1 0 0 1 .88-1zm8 0a1 1 0 0 1 1 1v8a1 1 0 0 1-.88 1H16a1 1 0 0 1-1-1V6a1 1 0 0 1 .88-1zm18 0a1 1 0 0 1 1 .88V6a1 1 0 0 1-1 1h-3v2h3a1 1 0 0 1 1 .88V10a1 1 0 0 1-1 1h-3v2h3a1 1 0 0 1 1 .88V14a1 1 0 0 1-1 1h-4a1 1 0 0 1-1-.77v-.11a.5.5 0 0 1 0-.12V6a1 1 0 0 1 .56-.9A1 1 0 0 1 30 5zm-8 0a1 1 0 0 1 1 1v.1a.9.9 0 0 1-.11.35l-2.47 7.57a1.48 1.48 0 0 1-1.32.98h-.2a1.48 1.48 0 0 1-1.31-.95l-2.47-7.57a.9.9 0 0 1-.12-.36V6a1 1 0 0 1 .88-1H20a1 1 0 0 1 1 1v-.1l2 6.4 2-6.4a1 1 0 0 1 1-.9"),ge(e,s)},m(u,c){C(u,e,c),l&&l.m(e,null),p(e,t),p(e,n),o=!0},p(u,[c]){l&&l.p&&(!o||c&2)&&Ve(l,r,u,u[1],o?Me(r,u[1],c,null):Ae(u[1]),null),ge(e,s=Le(a,[{xmlns:"http://www.w3.org/2000/svg"},{width:"42"},{height:"20"},{"aria-hidden":"true"},{"data-testid":"live-icon"},{role:"img"},c&1&&u[0]]))},i(u){o||(d(l,u),o=!0)},o(u){_(l,u),o=!1},d(u){u&&k(e),l&&l.d(u)}}}function I2(i,e,t){let{$$slots:n={},$$scope:o}=e;return i.$$set=r=>{t(0,e=oe(oe({},e),he(r))),"$$scope"in r&&t(1,o=r.$$scope)},e=he(e),[e,o,n]}var Ws=class extends j{constructor(e){super(),W(this,e,I2,T2,U,{})}},Yc=Ws;function E2(i){let e,t,n,o,r=i[2].default,l=Ee(r,i,i[1],null),a=[{xmlns:"http://www.w3.org/2000/svg"},{width:"42"},{height:"20"},{fill:"none"},{"aria-hidden":"true"},{"data-testid":"live-active-icon"},{role:"img"},i[0]],s={};for(let u=0;u<a.length;u+=1)s=oe(s,a[u]);return{c(){e=N("svg"),l&&l.c(),t=N("rect"),n=N("path"),f(t,"width","42"),f(t,"height","20"),f(t,"fill","#FF3347"),f(t,"rx","5"),f(n,"fill","#F2F3F5"),f(n,"fill-rule","evenodd"),f(n,"d","M8 5a1 1 0 0 0-1 1v8a1 1 0 0 0 1 1h4a1 1 0 1 0 0-2H9V6a1 1 0 0 0-1-1m7 1a1 1 0 1 1 2 0v8a1 1 0 1 1-2 0zm15-1a1 1 0 0 0-1 1v8a1 1 0 0 0 1 1h4a1 1 0 1 0 0-2h-3v-2h3a1 1 0 1 0 0-2h-3V7h3a1 1 0 1 0 0-2zm-8.325 9.31-2.55-7.824a1 1 0 0 1-.117-.363L19 6.1h.005a1 1 0 1 1 1.99-.199L21 5.9l2 6.4 2-6.4h.005a1 1 0 0 1 1.99.2H27l-.008.023a1 1 0 0 1-.118.363l-2.55 7.824a1 1 0 0 1-.95.69h-.748a1 1 0 0 1-.95-.69z"),f(n,"clip-rule","evenodd"),ge(e,s)},m(u,c){C(u,e,c),l&&l.m(e,null),p(e,t),p(e,n),o=!0},p(u,[c]){l&&l.p&&(!o||c&2)&&Ve(l,r,u,u[1],o?Me(r,u[1],c,null):Ae(u[1]),null),ge(e,s=Le(a,[{xmlns:"http://www.w3.org/2000/svg"},{width:"42"},{height:"20"},{fill:"none"},{"aria-hidden":"true"},{"data-testid":"live-active-icon"},{role:"img"},c&1&&u[0]]))},i(u){o||(d(l,u),o=!0)},o(u){_(l,u),o=!1},d(u){u&&k(e),l&&l.d(u)}}}function M2(i,e,t){let{$$slots:n={},$$scope:o}=e;return i.$$set=r=>{t(0,e=oe(oe({},e),he(r))),"$$scope"in r&&t(1,o=r.$$scope)},e=he(e),[e,o,n]}var Gs=class extends j{constructor(e){super(),W(this,e,M2,E2,U,{})}},Zc=Gs;function V2(i){let e,t;return e=new Yc({}),{c(){D(e.$$.fragment)},m(n,o){B(e,n,o),t=!0},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){_(e.$$.fragment,n),t=!1},d(n){R(e,n)}}}function A2(i){let e,t;return e=new Zc({}),{c(){D(e.$$.fragment)},m(n,o){B(e,n,o),t=!0},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){_(e.$$.fragment,n),t=!1},d(n){R(e,n)}}}function L2(i){let e,t,n,o,r=[A2,V2],l=[];function a(s,u){return s[0]?0:1}return e=a(i,-1),t=l[e]=r[e](i),{c(){t.c(),n=rt()},m(s,u){l[e].m(s,u),C(s,n,u),o=!0},p(s,[u]){let c=e;e=a(s,u),e!==c&&(fe(),_(l[c],1,1,()=>{l[c]=null}),ce(),t=l[e],t||(t=l[e]=r[e](s),t.c()),d(t,1),t.m(n.parentNode,n))},i(s){o||(d(t),o=!0)},o(s){_(t),o=!1},d(s){s&&k(n),l[e].d(s)}}}function B2(i,e,t){let{isActive:n=!1}=e;return i.$$set=o=>{"isActive"in o&&t(0,n=o.isActive)},[n]}var Qs=class extends j{constructor(e){super(),W(this,e,B2,L2,U,{isActive:0})}},hr=Qs;function R2(i){Se(i,"svelte-7pnl2h",".thumb-timer.svelte-7pnl2h.svelte-7pnl2h{position:absolute;z-index:2;bottom:0;right:0;margin:8px;padding:0 7px;border-radius:3px;background:var(--black-alpha-40);color:var(--white);font-size:12.5px;line-height:23px;height:23px;white-space:nowrap;transition:visibility var(--controls-transition-duration), opacity var(--controls-transition-duration)}.thumb-timer.live.svelte-7pnl2h.svelte-7pnl2h{font-size:0;line-height:20px;height:20px;border-radius:2px;background:var(--red)}.thumb-timer.hidden.svelte-7pnl2h.svelte-7pnl2h{visibility:hidden;opacity:0}.thumb-timer.svelte-7pnl2h.svelte-7pnl2h:after{content:'';display:inline-block;vertical-align:middle;height:100%}.thumb-timer-live-icon.svelte-7pnl2h.svelte-7pnl2h{display:inline-block;vertical-align:middle;width:42px;height:20px;margin:0 -7px}.thumb-timer-equalizer.svelte-7pnl2h.svelte-7pnl2h{display:inline-block;vertical-align:middle;position:relative;width:10px;height:10px;margin-top:-4px;margin-right:4px}.live.svelte-7pnl2h .thumb-timer-equalizer.svelte-7pnl2h{margin-top:-2px}.thumb-timer-equalizer.svelte-7pnl2h .col.svelte-7pnl2h{width:2px;height:10px;margin-right:2px;background:var(--white);position:absolute;bottom:0;transform-origin:50% 100%;animation:1.5s infinite linear alternate;animation-play-state:paused}.thumb-timer.playing.svelte-7pnl2h .thumb-timer-equalizer .col.svelte-7pnl2h{animation-play-state:running}.thumb-timer-equalizer.svelte-7pnl2h .col.svelte-7pnl2h:nth-child(1){left:0;animation-name:svelte-7pnl2h-thumb-timer-equalizer-col1}.thumb-timer-equalizer.svelte-7pnl2h .col.svelte-7pnl2h:nth-child(2){left:3px;animation-name:svelte-7pnl2h-thumb-timer-equalizer-col2}.thumb-timer-equalizer.svelte-7pnl2h .col.svelte-7pnl2h:nth-child(3){left:6px;animation-name:svelte-7pnl2h-thumb-timer-equalizer-col3}@keyframes svelte-7pnl2h-thumb-timer-equalizer-col1{0%{transform:scaleY(0.1)}25%{transform:scaleY(0.8)}50%{transform:scaleY(0.4)}75%{transform:scaleY(0.6)}100%{transform:scaleY(0.1)}}@keyframes svelte-7pnl2h-thumb-timer-equalizer-col2{0%{transform:scaleY(1)}25%{transform:scaleY(0.3)}50%{transform:scaleY(0.9)}75%{transform:scaleY(0.6)}100%{transform:scaleY(1)}}@keyframes svelte-7pnl2h-thumb-timer-equalizer-col3{0%{transform:scaleY(0.6)}25%{transform:scaleY(0.9)}50%{transform:scaleY(0.1)}75%{transform:scaleY(0.9)}100%{transform:scaleY(0.6)}}.thumb-timer-text.svelte-7pnl2h.svelte-7pnl2h{display:inline-block;text-align:right}")}function D2(i){let e=An(i[4]-i[3])+"",t;return{c(){t=De(e)},m(n,o){C(n,t,o)},p(n,o){o&24&&e!==(e=An(n[4]-n[3])+"")&&Ye(t,e)},i:pe,o:pe,d(n){n&&k(t)}}}function N2(i){let e,t,n;return t=new hr({props:{isActive:!0}}),{c(){e=T("div"),D(t.$$.fragment),f(e,"class","thumb-timer-live-icon svelte-7pnl2h")},m(o,r){C(o,e,r),B(t,e,null),n=!0},p:pe,i(o){n||(d(t.$$.fragment,o),n=!0)},o(o){_(t.$$.fragment,o),n=!1},d(o){o&&k(e),R(t)}}}function O2(i){let e,t,n,o,r,l,a,s=[N2,D2],u=[];function c(m,h){return m[1]?0:1}return r=c(i,-1),l=u[r]=s[r](i),{c(){e=T("div"),t=T("div"),t.innerHTML='<div class="col svelte-7pnl2h"></div> <div class="col svelte-7pnl2h"></div> <div class="col svelte-7pnl2h"></div>',n=O(),o=T("span"),l.c(),f(t,"class","thumb-timer-equalizer svelte-7pnl2h"),f(o,"class","thumb-timer-text svelte-7pnl2h"),f(e,"role","timer"),f(e,"class","thumb-timer svelte-7pnl2h"),f(e,"data-testid","thumb-timer"),z(e,"live",i[1]),z(e,"hidden",i[0]),z(e,"playing",i[2])},m(m,h){C(m,e,h),p(e,t),p(e,n),p(e,o),u[r].m(o,null),a=!0},p(m,[h]){let y=r;r=c(m,h),r===y?u[r].p(m,h):(fe(),_(u[y],1,1,()=>{u[y]=null}),ce(),l=u[r],l?l.p(m,h):(l=u[r]=s[r](m),l.c()),d(l,1),l.m(o,null)),(!a||h&2)&&z(e,"live",m[1]),(!a||h&1)&&z(e,"hidden",m[0]),(!a||h&4)&&z(e,"playing",m[2])},i(m){a||(d(l),a=!0)},o(m){_(l),a=!1},d(m){m&&k(e),u[r].d()}}}function F2(i,e,t){let{isHidden:n=!1}=e,{isLive:o=!1}=e,{isPlaying:r=!1}=e,{position:l}=e,{duration:a}=e;return i.$$set=s=>{"isHidden"in s&&t(0,n=s.isHidden),"isLive"in s&&t(1,o=s.isLive),"isPlaying"in s&&t(2,r=s.isPlaying),"position"in s&&t(3,l=s.position),"duration"in s&&t(4,a=s.duration)},[n,o,r,l,a]}var Ys=class extends j{constructor(e){super(),W(this,e,F2,O2,U,{isHidden:0,isLive:1,isPlaying:2,position:3,duration:4},R2)}},gr=Ys;var Vl=i=>{if(document.queryCommandSupported&&document.queryCommandSupported("copy")){let e=document.createElement("textarea");e.textContent=i,e.style.position="absolute",e.style.top="-9999px",document.body.appendChild(e),e.select();try{document.execCommand("copy")}finally{document.body.removeChild(e)}}};var Zs=require("@vkontakte/videoplayer-core");var Jc=require("@vkontakte/videoplayer-shared");var H2=(0,Jc.isAndroid)(),Ho=i=>{i.stopPropagation(),i.preventDefault()},z2=i=>{var t;let e=i.previousElementSibling;e||(e=(t=i.parentNode)==null?void 0:t.lastElementChild),e==null||e.focus()},q2=i=>{var t;let e=i.nextElementSibling;e||(e=(t=i.parentNode)==null?void 0:t.firstElementChild),e==null||e.focus()},U2=i=>{let e=i.code;return e==="Tab"&&!i.shiftKey||e==="ArrowDown"},K2=i=>{let e=i.code;return e==="Tab"||e==="ArrowUp"},xc=i=>i.code==="Escape",j2=i=>i.code==="ArrowLeft",$c=(i,e=!0)=>{let t=i.code;return["Enter","Space"].includes(t)||!e&&t==="ArrowRight"},e1=i=>{if(U2(i)){Ho(i),q2(i.target);return}K2(i)&&(Ho(i),z2(i.target))},rl=i=>(i==null?void 0:i.detail)===0||H2&&(i==null?void 0:i.pointerType)==="",sl=(i,e,t)=>ut(void 0,null,function*(){yield Gn(),i&&!i.classList.contains("opened")&&!e&&tt(t)&&(yield Gn(),t.set(!1),i.focus())}),t1=(i,e,t)=>ut(void 0,null,function*(){yield Gn(),i&&!e&&tt(t)&&(t.set(!1),i.focus())}),zo=(i,e,t)=>ut(void 0,null,function*(){yield Gn(),!!i&&e&&t&&setTimeout(()=>{i.firstChild.focus()},100)}),Al=(i,e,t)=>ut(void 0,null,function*(){!!i&&t&&(e.set(!1),setTimeout(()=>{i.focus()},100))}),br=(i,e)=>{e1(i),xc(i)&&(Ho(i),e())},Ll=(i,e,t)=>ut(void 0,null,function*(){if($c(i,!1)){Ho(i),e(),yield Gn();let n=t();n==null||n.focus()}}),Bl=(i,e,t,n)=>ut(void 0,null,function*(){if(e1(i),j2(i)){Ho(i),e(),t.set(!0);return}xc(i)&&(Ho(i),n())}),nn=(i,e)=>{$c(i)&&(Ho(i),e())},i1=i=>{let e=i.getBoundingClientRect(),t=-14,n=e.left+e.width,o=e.top+t;return{right:n,bottom:o}},n1=i=>{if(!i)return{top:0,left:0};let e=i.getBoundingClientRect(),t=-58,n=8,o=e.left+n;return{bottom:e.bottom+t,left:o}};var Rl=require("@vkontakte/videoplayer-shared");function W2(i){Se(i,"svelte-1vzqlps","ul.svelte-1vzqlps{position:absolute;border-radius:8px;background:rgba(0, 0, 0, 0.72);transition:visibility .1s,opacity .1s;list-style:none;margin:0;padding:6px 0;max-height:100%;max-width:100%;overflow-x:hidden;overflow-y:auto}li.svelte-1vzqlps{padding:8px 16px;cursor:pointer;position:relative;display:block;color:rgba(255, 255, 255, 0.72);font-size:13px;line-height:18px;letter-spacing:-0.14px;white-space:nowrap}li.svelte-1vzqlps:hover{background:rgba(66, 66, 66, .5);color:var(--white)}")}function o1(i){var L;let e,t,n,o,r,l,a,s,u,c=(i[10].features.saveDebugInfoToFile?Y("menu_save_debug"):Y("menu_copy_debug"))+"",m,h,y,b,S=Y("menu_debug_overlay")+"",w,P,v,g,I=i[10].features.copyVideoLink&&((L=i[9].callbacks)==null?void 0:L.onCopyVideoLink)&&G2(i),A=i[12]&&i[6]!==Zs.ChromecastState.CONNECTED&&!i[17]&&r1(i);function q(x,Q){return x[4]?Y2:Q2}let K=q(i,[-1,-1]),re=K(i),ae=i[10].features.videoRotate&&!i[17]&&Z2(i),H=i[10].showSupport&&!i[7]&&s1(i);return{c(){e=T("ul"),I&&I.c(),t=O(),A&&A.c(),n=O(),o=T("li"),re.c(),l=O(),ae&&ae.c(),a=O(),H&&H.c(),s=O(),u=T("li"),m=De(c),y=O(),b=T("li"),w=De(S),f(o,"tabindex","0"),f(o,"role","menuitem"),f(o,"aria-label",r=Y("aria_label_menu_loop")),f(o,"class","svelte-1vzqlps"),f(u,"tabindex","0"),f(u,"role","menuitem"),f(u,"aria-label",h=i[10].features.saveDebugInfoToFile?Y("menu_save_debug"):Y("menu_copy_debug")),f(u,"class","svelte-1vzqlps"),f(b,"tabindex","0"),f(b,"role","menuitem"),f(b,"aria-label",P=i[8]?Y("aria_label_menu_debug_overlay_disable"):Y("aria_label_menu_debug_overlay_enable")),f(b,"class","svelte-1vzqlps"),f(e,"role","menu"),vi(e,"top",i[3]+"px"),vi(e,"left",i[2]+"px"),f(e,"class","svelte-1vzqlps")},m(x,Q){C(x,e,Q),I&&I.m(e,null),p(e,t),A&&A.m(e,null),p(e,n),p(e,o),re.m(o,null),p(e,l),ae&&ae.m(e,null),p(e,a),H&&H.m(e,null),p(e,s),p(e,u),p(u,m),p(e,y),p(e,b),p(b,w),i[42](e),v||(g=[de(o,"click",at(i[24])),de(o,"keydown",i[30]),de(u,"click",at(i[21])),de(u,"keydown",i[32]),de(b,"click",at(i[22])),de(b,"keydown",i[33]),de(e,"contextmenu",Dt(i[39])),de(e,"keydown",i[26])],v=!0)},p(x,Q){var J;x[10].features.copyVideoLink&&((J=x[9].callbacks)!=null&&J.onCopyVideoLink)&&I.p(x,Q),x[12]&&x[6]!==Zs.ChromecastState.CONNECTED&&!x[17]?A?A.p(x,Q):(A=r1(x),A.c(),A.m(e,n)):A&&(A.d(1),A=null),K===(K=q(x,Q))&&re?re.p(x,Q):(re.d(1),re=K(x),re&&(re.c(),re.m(o,null))),x[10].features.videoRotate&&!x[17]&&ae.p(x,Q),x[10].showSupport&&!x[7]?H?H.p(x,Q):(H=s1(x),H.c(),H.m(e,s)):H&&(H.d(1),H=null),Q[0]&256&&P!==(P=x[8]?Y("aria_label_menu_debug_overlay_disable"):Y("aria_label_menu_debug_overlay_enable"))&&f(b,"aria-label",P),Q[0]&8&&vi(e,"top",x[3]+"px"),Q[0]&4&&vi(e,"left",x[2]+"px")},d(x){x&&k(e),I&&I.d(),A&&A.d(),re.d(),ae&&ae.d(),H&&H.d(),i[42](null),v=!1,ot(g)}}}function G2(i){let e,t=Y("menu_copy_video_link")+"",n,o,r,l,a,s,u=!i[5]&&!i[17]&&l1(i);return{c(){e=T("li"),n=De(t),r=O(),u&&u.c(),l=rt(),f(e,"tabindex","0"),f(e,"role","menuitem"),f(e,"aria-label",o=Y("menu_copy_video_link")),f(e,"class","svelte-1vzqlps")},m(c,m){C(c,e,m),p(e,n),C(c,r,m),u&&u.m(c,m),C(c,l,m),a||(s=[de(e,"click",at(i[40])),de(e,"keydown",i[27])],a=!0)},p(c,m){!c[5]&&!c[17]?u?u.p(c,m):(u=l1(c),u.c(),u.m(l.parentNode,l)):u&&(u.d(1),u=null)},d(c){c&&(k(e),k(r),k(l)),u&&u.d(c),a=!1,ot(s)}}}function l1(i){let e,t=Y("menu_copy_video_link_with_timestamp")+"",n,o,r,l;return{c(){e=T("li"),n=De(t),f(e,"tabindex","0"),f(e,"role","menuitem"),f(e,"aria-label",o=Y("menu_copy_video_link_with_timestamp")),f(e,"class","svelte-1vzqlps")},m(a,s){C(a,e,s),p(e,n),r||(l=[de(e,"click",at(i[41])),de(e,"keydown",i[28])],r=!0)},p:pe,d(a){a&&k(e),r=!1,ot(l)}}}function r1(i){let e,t=Y("menu_pip")+"",n,o,r,l;return{c(){e=T("li"),n=De(t),f(e,"tabindex","0"),f(e,"role","menuitem"),f(e,"aria-label",o=Y("menu_pip")),f(e,"class","svelte-1vzqlps")},m(a,s){C(a,e,s),p(e,n),r||(l=[de(e,"click",at(i[23])),de(e,"keydown",i[29])],r=!0)},p:pe,d(a){a&&k(e),r=!1,ot(l)}}}function Q2(i){let e=Y("menu_video_loop_on")+"",t;return{c(){t=De(e)},m(n,o){C(n,t,o)},p:pe,d(n){n&&k(t)}}}function Y2(i){let e=Y("menu_video_loop_off")+"",t;return{c(){t=De(e)},m(n,o){C(n,t,o)},p:pe,d(n){n&&k(t)}}}function Z2(i){let e,t=Y("menu_video_rotate")+"",n,o,r,l;return{c(){e=T("li"),n=De(t),f(e,"tabindex","0"),f(e,"role","menuitem"),f(e,"aria-label",o=Y("aria_label_menu_rotate")),f(e,"class","svelte-1vzqlps")},m(a,s){C(a,e,s),p(e,n),r||(l=[de(e,"click",at(i[19])),de(e,"keydown",i[30])],r=!0)},p:pe,d(a){a&&k(e),r=!1,ot(l)}}}function s1(i){let e,t=Y("menu_report")+"",n,o,r,l;return{c(){e=T("li"),n=De(t),f(e,"tabindex","0"),f(e,"role","menuitem"),f(e,"aria-label",o=`${Y("menu_report")}. ${Y("aria_label_new_tab_alert")}`),f(e,"class","svelte-1vzqlps")},m(a,s){C(a,e,s),p(e,n),r||(l=[de(e,"click",at(i[20])),de(e,"keydown",i[31])],r=!0)},p:pe,d(a){a&&k(e),r=!1,ot(l)}}}function X2(i){let e,t=i[1]&&o1(i);return{c(){t&&t.c(),e=rt()},m(n,o){t&&t.m(n,o),C(n,e,o)},p(n,o){n[1]?t?t.p(n,o):(t=o1(n),t.c(),t.m(e.parentNode,e)):t&&(t.d(1),t=null)},i:pe,o:pe,d(n){n&&k(e),t&&t.d(n)}}}function J2(i,e,t){var Te;let n,o,r,l,a,s,{visible:u=!1}=e,{supportLink:c}=e,{position:m={top:0,left:0}}=e,{playerContainerRef:h=void 0}=e,{controlsContainerRef:y=void 0}=e,{menuElementRef:b=void 0}=e,{returnFocus:S}=e,w=0,P=0,v=it(),g=Ut(),I=v.ui.contextMenu.visible$,A=v.ui.debugPanelVisible;F(i,A,Z=>t(8,s=Z));let q=v.webApi.pictureInPictureApi,K=(Te=v.webApi.pictureInPictureApi)==null?void 0:Te.info.isActive$;F(i,K,Z=>t(7,a=Z));let re=v.state.chromecastState$;F(i,re,Z=>t(6,l=Z));let ae=v.state.isLive$;F(i,ae,Z=>t(5,r=Z));let H=v.state.positionExact$;F(i,H,Z=>t(43,n=Z));let L=v.state.isInteractive,x=v.state.looped$;F(i,x,Z=>t(4,o=Z));let Q=()=>{I.set(!1)},J=(Z,Ce)=>{if(!b||!h||!y)return;let ue=b.getBoundingClientRect(),Ie=h.getBoundingClientRect();t(2,w=Z-Ie.left),t(3,P=Ce-Ie.top),w+ue.width>Ie.width&&t(2,w=Ie.width-ue.width),P+ue.height>Ie.height&&t(3,P=Ie.height-ue.height),t(2,w=Math.max(w,0)),t(3,P=Math.max(P,0))},E=()=>{Q(),v.actions.internal.videoRotate()},te=()=>{window.open(c,"_blank"),Q(),v.actions.internal.pause()},M=()=>{let Z=v.actions.internal.getDebugTextData();if(g.features.saveDebugInfoToFile){let Ce=new Blob([...Z],{type:"plain/text"}),ue=window.URL.createObjectURL(Ce);nr(ue,"vk_player_debug_info","txt")}else Vl(v.actions.internal.getDebugTextData());Q(),S==null||S()},ee=()=>{A.set(!0),Q(),S==null||S()},ke=()=>ut(this,null,function*(){try{q!=null&&q.isActive()?yield q==null?void 0:q.remove():yield q==null?void 0:q.request()}finally{Q(),S==null||S()}}),Qe=()=>{v.actions.internal.setLooped(!o),Q()},je=(Z=!1)=>{var Ce,ue;if((Ce=v.callbacks)!=null&&Ce.onCopyVideoLink){let Ie=(ue=v.callbacks)==null?void 0:ue.onCopyVideoLink(Z,n);Ie&&Vl(Ie)}Q()},$e=Z=>{br(Z,Q)},We=Z=>{nn(Z,()=>je())},ve=Z=>{nn(Z,()=>je(!0))},X=Z=>{nn(Z,()=>ke())},be=Z=>{nn(Z,()=>E())},Oe=Z=>{nn(Z,()=>te())},xe=Z=>{nn(Z,()=>M())},et=Z=>{nn(Z,()=>ee())};function ye(Z){Vn.call(this,i,Z)}let Be=()=>je(),Ue=()=>je(!0);function Xe(Z){_e[Z?"unshift":"push"](()=>{b=Z,t(0,b)})}return i.$$set=Z=>{"visible"in Z&&t(1,u=Z.visible),"supportLink"in Z&&t(34,c=Z.supportLink),"position"in Z&&t(35,m=Z.position),"playerContainerRef"in Z&&t(36,h=Z.playerContainerRef),"controlsContainerRef"in Z&&t(37,y=Z.controlsContainerRef),"menuElementRef"in Z&&t(0,b=Z.menuElementRef),"returnFocus"in Z&&t(38,S=Z.returnFocus)},i.$$.update=()=>{if(i.$$.dirty[0]&1|i.$$.dirty[1]&112){e:if(b&&h&&y){let{top:Z,left:Ce,bottom:ue,right:Ie}=m,Je=Ce!=null?Ce:0,ft=Z!=null?Z:0,ct=b.getBoundingClientRect();(0,Rl.isNullable)(Ce)&&!(0,Rl.isNullable)(Ie)&&(Je=Ie-ct.width),(0,Rl.isNullable)(Z)&&!(0,Rl.isNullable)(ue)&&(ft=ue-ct.height),Je=Math.max(Je,0),ft=Math.max(ft,0),J(Je,ft)}}},[b,u,w,P,o,r,l,a,s,v,g,A,q,K,re,ae,H,L,x,E,te,M,ee,ke,Qe,je,$e,We,ve,X,be,Oe,xe,et,c,m,h,y,S,ye,Be,Ue,Xe]}var Xs=class extends j{constructor(e){super(),W(this,e,J2,X2,U,{visible:1,supportLink:34,position:35,playerContainerRef:36,controlsContainerRef:37,menuElementRef:0,returnFocus:38},W2,[-1,-1])}},a1=Xs;var vr=class{constructor(e){this.value=e,this.next=null}};var al=class{constructor(e){this.top=null,this.bottom=null,this.size=0,this.maxSize=e}push(e){let t=new vr(e);this.top?(this.top.next=t,this.top=t):(this.top=t,this.bottom=t),this.size++,this.size>this.maxSize&&this.bottom&&(this.bottom=this.bottom.next)}getValuesFromBottom(){let e=[],t=this.bottom;for(;t;)e.push(t.value),t=t.next;return e}};function x2(i){Se(i,"svelte-1ssl9eb",".container.svelte-1ssl9eb{display:inline-block;width:120px;height:16px}canvas.svelte-1ssl9eb{transform:scale(1, -1);margin-top:2px}")}function $2(i){let e,t;return{c(){e=T("div"),t=T("canvas"),f(t,"class","svelte-1ssl9eb"),f(e,"class","container svelte-1ssl9eb")},m(n,o){C(n,e,o),p(e,t),i[3](t)},p:pe,i:pe,o:pe,d(n){n&&k(e),i[3](null)}}}var Js=16,xs=120,u1=60;function eh(i,e,t,n,o){o===0&&(o=1),i.fillStyle="#fff",i.fillRect(e,t,n,o)}function th(i,e,t){let{values:n=[]}=e,o,r,l=xs/u1;Nt(()=>{t(0,o.width=xs,o),t(0,o.height=Js,o),t(2,r=o.getContext("2d"))});function a(s){_e[s?"unshift":"push"](()=>{o=s,t(0,o)})}return i.$$set=s=>{"values"in s&&t(1,n=s.values)},i.$$.update=()=>{if(i.$$.dirty&6)e:{let s="";if(r){let u=n[0];for(let m=1;m<n.length;m++)n[m]>u&&(u=n[m]);r.clearRect(0,0,xs,Js);let c=u1-1;for(let m=n.length-1;m>=0;m--){let h=c*l,y=u>0?Js*(n[m]/u):0;eh(r,h,0,l,y),s=y+" "+s,c--}}}},[o,n,r,a]}var $s=class extends j{constructor(e){super(),W(this,e,th,$2,U,{values:1},x2)}},yr=$s;var ea=require("@vkontakte/videoplayer-shared");function ih(i){Se(i,"svelte-1fypj5i",".container.svelte-1fypj5i.svelte-1fypj5i.svelte-1fypj5i{background:rgba(28, 28, 28, 0.8);border-radius:4px;color:#fff;left:20px;position:absolute;top:45px;min-width:160px;font-size:10px;text-align:left}.container-mobile.svelte-1fypj5i.svelte-1fypj5i.svelte-1fypj5i{top:16px;left:16px}button.svelte-1fypj5i.svelte-1fypj5i.svelte-1fypj5i{position:absolute;right:5px;top:3px;cursor:pointer;outline:0;border:none;background-color:transparent;padding:0;color:#fff}.content.svelte-1fypj5i.svelte-1fypj5i.svelte-1fypj5i{padding:5px}.content.svelte-1fypj5i>div.svelte-1fypj5i>div.svelte-1fypj5i{display:inline-block;text-align:right;width:50px;padding:0 5px}")}function f1(i){let e,t,n,o,r=i[0].id+"",l;return{c(){e=T("div"),t=T("div"),t.textContent="Video id",n=O(),o=T("span"),l=De(r),f(t,"class","svelte-1fypj5i"),f(e,"class","svelte-1fypj5i")},m(a,s){C(a,e,s),p(e,t),p(e,n),p(e,o),p(o,l)},p(a,s){s&1&&r!==(r=a[0].id+"")&&Ye(l,r)},d(a){a&&k(e)}}}function c1(i){let e,t,n,o,r=i[0].provider+"",l;return{c(){e=T("div"),t=T("div"),t.textContent="Provider",n=O(),o=T("span"),l=De(r),f(t,"class","svelte-1fypj5i"),f(e,"class","svelte-1fypj5i")},m(a,s){C(a,e,s),p(e,t),p(e,n),p(e,o),p(o,l)},p(a,s){s&1&&r!==(r=a[0].provider+"")&&Ye(l,r)},d(a){a&&k(e)}}}function d1(i){let e,t,n,o,r=i[0].viewport+"",l;return{c(){e=T("div"),t=T("div"),t.textContent="Viewport",n=O(),o=T("span"),l=De(r),f(t,"class","svelte-1fypj5i"),f(e,"class","svelte-1fypj5i")},m(a,s){C(a,e,s),p(e,t),p(e,n),p(e,o),p(o,l)},p(a,s){s&1&&r!==(r=a[0].viewport+"")&&Ye(l,r)},d(a){a&&k(e)}}}function m1(i){let e,t,n,o,r=i[0].videoSize+"",l;return{c(){e=T("div"),t=T("div"),t.textContent="Video size",n=O(),o=T("span"),l=De(r),f(t,"class","svelte-1fypj5i"),f(e,"class","svelte-1fypj5i")},m(a,s){C(a,e,s),p(e,t),p(e,n),p(e,o),p(o,l)},p(a,s){s&1&&r!==(r=a[0].videoSize+"")&&Ye(l,r)},d(a){a&&k(e)}}}function p1(i){let e,t,n,o,r=i[0].cdn+"",l;return{c(){e=T("div"),t=T("div"),t.textContent="CDN host",n=O(),o=T("span"),l=De(r),f(t,"class","svelte-1fypj5i"),f(e,"class","svelte-1fypj5i")},m(a,s){C(a,e,s),p(e,t),p(e,n),p(e,o),p(o,l)},p(a,s){s&1&&r!==(r=a[0].cdn+"")&&Ye(l,r)},d(a){a&&k(e)}}}function _1(i){let e,t,n,o,r=i[0].volume+"",l,a;return{c(){e=T("div"),t=T("div"),t.textContent="Volume",n=O(),o=T("span"),l=De(r),a=De(" %"),f(t,"class","svelte-1fypj5i"),f(e,"class","svelte-1fypj5i")},m(s,u){C(s,e,u),p(e,t),p(e,n),p(e,o),p(o,l),p(o,a)},p(s,u){u&1&&r!==(r=s[0].volume+"")&&Ye(l,r)},d(s){s&&k(e)}}}function h1(i){let e,t,n,o,r=i[0].buffer.toFixed(2)+"",l,a;return{c(){e=T("div"),t=T("div"),t.textContent="Buffer",n=O(),o=T("span"),l=De(r),a=De(" s"),f(t,"class","svelte-1fypj5i"),f(e,"class","svelte-1fypj5i")},m(s,u){C(s,e,u),p(e,t),p(e,n),p(e,o),p(o,l),p(o,a)},p(s,u){u&1&&r!==(r=s[0].buffer.toFixed(2)+"")&&Ye(l,r)},d(s){s&&k(e)}}}function g1(i){let e,t,n,o,r=[{value:i[0].currentVideoSegmentLength,title:"Video"},{value:i[0].currentAudioSegmentLength,title:"Audio"}].filter(y1).map(w1).join(" / ")+"",l;return{c(){e=T("div"),t=T("div"),t.textContent="Segment",n=O(),o=T("span"),l=De(r),f(t,"class","svelte-1fypj5i"),f(e,"class","svelte-1fypj5i")},m(a,s){C(a,e,s),p(e,t),p(e,n),p(e,o),p(o,l)},p(a,s){s&1&&r!==(r=[{value:a[0].currentVideoSegmentLength,title:"Video"},{value:a[0].currentAudioSegmentLength,title:"Audio"}].filter(y1).map(w1).join(" / ")+"")&&Ye(l,r)},d(a){a&&k(e)}}}function b1(i){let e,t,n,o,r,l,a=i[0].speed.toFixed(2)+"",s,u,c;return o=new yr({props:{values:i[5]}}),{c(){e=T("div"),t=T("div"),t.textContent="Network",n=O(),D(o.$$.fragment),r=O(),l=T("span"),s=De(a),u=De(" Kbps"),f(t,"class","svelte-1fypj5i"),f(e,"class","svelte-1fypj5i")},m(m,h){C(m,e,h),p(e,t),p(e,n),B(o,e,null),p(e,r),p(e,l),p(l,s),p(l,u),c=!0},p(m,h){let y={};h&32&&(y.values=m[5]),o.$set(y),(!c||h&1)&&a!==(a=m[0].speed.toFixed(2)+"")&&Ye(s,a)},i(m){c||(d(o.$$.fragment,m),c=!0)},o(m){_(o.$$.fragment,m),c=!1},d(m){m&&k(e),R(o)}}}function v1(i){let e,t,n,o,r,l,a=i[0].bitrate.toFixed(2)+"",s,u,c;return o=new yr({props:{values:i[6]}}),{c(){e=T("div"),t=T("div"),t.textContent="V bitrate",n=O(),D(o.$$.fragment),r=O(),l=T("span"),s=De(a),u=De(" Kbps"),f(t,"class","svelte-1fypj5i"),f(e,"class","svelte-1fypj5i")},m(m,h){C(m,e,h),p(e,t),p(e,n),B(o,e,null),p(e,r),p(e,l),p(l,s),p(l,u),c=!0},p(m,h){let y={};h&64&&(y.values=m[6]),o.$set(y),(!c||h&1)&&a!==(a=m[0].bitrate.toFixed(2)+"")&&Ye(s,a)},i(m){c||(d(o.$$.fragment,m),c=!0)},o(m){_(o.$$.fragment,m),c=!1},d(m){m&&k(e),R(o)}}}function nh(i){let e,t,n,o,r,l,a,s,u=i[0].version+"",c,m,h,y,b,S,w,P,v,g,I,A,q,K,re,ae,H,L,x,Q,J,E,te,M,ee,ke,Qe,je,$e,We,ve,X,be=i[0].id&&f1(i),Oe=i[0].provider&&c1(i),xe=i[0].viewport&&d1(i),et=i[0].videoSize&&m1(i),ye=i[0].cdn&&p1(i),Be=i[0].volume&&_1(i),Ue=i[0].buffer&&h1(i),Xe=(i[0].currentVideoSegmentLength||i[0].currentAudioSegmentLength)&&g1(i),Te=i[0].speed&&b1(i),Z=i[0].bitrate&&v1(i);return ee=new yr({props:{values:i[4]}}),{c(){e=T("div"),t=T("button"),t.textContent="[x]",n=O(),o=T("div"),r=T("div"),l=T("div"),l.textContent="Version",a=O(),s=T("span"),c=De(u),m=O(),be&&be.c(),h=O(),Oe&&Oe.c(),y=O(),xe&&xe.c(),b=O(),et&&et.c(),S=O(),ye&&ye.c(),w=O(),Be&&Be.c(),P=O(),Ue&&Ue.c(),v=O(),Xe&&Xe.c(),g=O(),I=T("div"),A=T("div"),A.textContent="Dropped",q=O(),K=T("span"),re=De(i[2]),ae=De(" / "),H=De(i[1]),L=De(" frames"),x=O(),Te&&Te.c(),Q=O(),Z&&Z.c(),J=O(),E=T("div"),te=T("div"),te.textContent="FPS",M=O(),D(ee.$$.fragment),ke=O(),Qe=T("span"),je=De(i[3]),f(t,"class","close svelte-1fypj5i"),f(t,"title","\u0437\u0430\u043A\u0440\u044B\u0442\u044C"),f(l,"class","svelte-1fypj5i"),f(r,"class","svelte-1fypj5i"),f(A,"class","svelte-1fypj5i"),f(I,"class","svelte-1fypj5i"),f(te,"class","svelte-1fypj5i"),f(E,"class","svelte-1fypj5i"),f(o,"class","content svelte-1fypj5i"),f(e,"class","container svelte-1fypj5i"),f(e,"role","region"),f(e,"aria-label",$e=Y("aria_label_debug_panel")),z(e,"container-mobile",i[7])},m(Ce,ue){C(Ce,e,ue),p(e,t),p(e,n),p(e,o),p(o,r),p(r,l),p(r,a),p(r,s),p(s,c),p(o,m),be&&be.m(o,null),p(o,h),Oe&&Oe.m(o,null),p(o,y),xe&&xe.m(o,null),p(o,b),et&&et.m(o,null),p(o,S),ye&&ye.m(o,null),p(o,w),Be&&Be.m(o,null),p(o,P),Ue&&Ue.m(o,null),p(o,v),Xe&&Xe.m(o,null),p(o,g),p(o,I),p(I,A),p(I,q),p(I,K),p(K,re),p(K,ae),p(K,H),p(K,L),p(o,x),Te&&Te.m(o,null),p(o,Q),Z&&Z.m(o,null),p(o,J),p(o,E),p(E,te),p(E,M),B(ee,E,null),p(E,ke),p(E,Qe),p(Qe,je),We=!0,ve||(X=de(t,"click",at(i[9])),ve=!0)},p(Ce,[ue]){(!We||ue&1)&&u!==(u=Ce[0].version+"")&&Ye(c,u),Ce[0].id?be?be.p(Ce,ue):(be=f1(Ce),be.c(),be.m(o,h)):be&&(be.d(1),be=null),Ce[0].provider?Oe?Oe.p(Ce,ue):(Oe=c1(Ce),Oe.c(),Oe.m(o,y)):Oe&&(Oe.d(1),Oe=null),Ce[0].viewport?xe?xe.p(Ce,ue):(xe=d1(Ce),xe.c(),xe.m(o,b)):xe&&(xe.d(1),xe=null),Ce[0].videoSize?et?et.p(Ce,ue):(et=m1(Ce),et.c(),et.m(o,S)):et&&(et.d(1),et=null),Ce[0].cdn?ye?ye.p(Ce,ue):(ye=p1(Ce),ye.c(),ye.m(o,w)):ye&&(ye.d(1),ye=null),Ce[0].volume?Be?Be.p(Ce,ue):(Be=_1(Ce),Be.c(),Be.m(o,P)):Be&&(Be.d(1),Be=null),Ce[0].buffer?Ue?Ue.p(Ce,ue):(Ue=h1(Ce),Ue.c(),Ue.m(o,v)):Ue&&(Ue.d(1),Ue=null),Ce[0].currentVideoSegmentLength||Ce[0].currentAudioSegmentLength?Xe?Xe.p(Ce,ue):(Xe=g1(Ce),Xe.c(),Xe.m(o,g)):Xe&&(Xe.d(1),Xe=null),(!We||ue&4)&&Ye(re,Ce[2]),(!We||ue&2)&&Ye(H,Ce[1]),Ce[0].speed?Te?(Te.p(Ce,ue),ue&1&&d(Te,1)):(Te=b1(Ce),Te.c(),d(Te,1),Te.m(o,Q)):Te&&(fe(),_(Te,1,1,()=>{Te=null}),ce()),Ce[0].bitrate?Z?(Z.p(Ce,ue),ue&1&&d(Z,1)):(Z=v1(Ce),Z.c(),d(Z,1),Z.m(o,J)):Z&&(fe(),_(Z,1,1,()=>{Z=null}),ce());let Ie={};ue&16&&(Ie.values=Ce[4]),ee.$set(Ie),(!We||ue&8)&&Ye(je,Ce[3]),(!We||ue&128)&&z(e,"container-mobile",Ce[7])},i(Ce){We||(d(Te),d(Z),d(ee.$$.fragment,Ce),We=!0)},o(Ce){_(Te),_(Z),_(ee.$$.fragment,Ce),We=!1},d(Ce){Ce&&k(e),be&&be.d(),Oe&&Oe.d(),xe&&xe.d(),et&&et.d(),ye&&ye.d(),Be&&Be.d(),Ue&&Ue.d(),Xe&&Xe.d(),Te&&Te.d(),Z&&Z.d(),R(ee),ve=!1,X()}}}var y1=({value:i})=>i,w1=({value:i,title:e})=>`${e} ${((i!=null?i:0)/1e3).toFixed(2)} s`;function oh(i,e,t){let n,o=it(),r=o.ui.debugPanelVisible,l=o.ui.isMobile;F(i,l,g=>t(7,n=g));let a=()=>{ea.safeStorage.remove(Il),r.set(!1)},s=o.actions.internal.getDebugPanelData(),u=o.actions.internal.getVideoElement(),c=0,m=0,h=0,y=new al(60),b=new al(60),S=new al(60),w=[],P=[],v=[];return Nt(()=>{ea.safeStorage.set(Il,"true"),o.actions.internal.startLogging(),u&&(t(2,m=u.getVideoPlaybackQuality().droppedVideoFrames),t(1,c=u.getVideoPlaybackQuality().totalVideoFrames));let g=window.setInterval(()=>{t(0,s=o.actions.internal.getDebugPanelData())},500),I;return u&&(I=window.setInterval(()=>{if(u){t(2,m=u.getVideoPlaybackQuality().droppedVideoFrames);let A=u.getVideoPlaybackQuality().totalVideoFrames;t(3,h=A-c),t(1,c=A),y.push(h),s.speed&&b.push(s.speed),s.bitrate&&S.push(s.bitrate),t(4,w=y.getValuesFromBottom()),t(5,P=b.getValuesFromBottom()),t(6,v=S.getValuesFromBottom())}},1e3)),()=>{o.actions.internal.stopLogging(),clearInterval(g),I&&clearInterval(I)}}),[s,c,m,h,w,P,v,n,l,a]}var ta=class extends j{constructor(e){super(),W(this,e,oh,nh,U,{},ih)}},wr=ta;function lh(i){Se(i,"svelte-1ome55p",".close.svelte-1ome55p{cursor:pointer;opacity:0.8;transition:opacity 0.2s;position:relative;width:16px;height:16px}.close.svelte-1ome55p:hover{opacity:1}.close.svelte-1ome55p:before,.close.svelte-1ome55p:after{position:absolute;left:8px;content:' ';height:16px;width:2px;background-color:var(--white)}.close.svelte-1ome55p:before{transform:rotate(45deg)}.close.svelte-1ome55p:after{transform:rotate(-45deg)}")}function rh(i){let e,t,n;return{c(){e=T("div"),f(e,"class","close svelte-1ome55p")},m(o,r){C(o,e,r),t||(n=de(e,"click",at(i[0])),t=!0)},p:pe,i:pe,o:pe,d(o){o&&k(e),t=!1,n()}}}function sh(i){function e(t){Vn.call(this,i,t)}return[e]}var ia=class extends j{constructor(e){super(),W(this,e,sh,rh,U,{},lh)}},k1=ia;var C1=require("@vkontakte/videoplayer-shared");function ah(i){Se(i,"svelte-8jhsry",`.timer.svelte-8jhsry{border-radius:50%;transition:background .2s;background:rgba(31, 31, 31, .65);width:50px;height:50px;display:flex;align-items:center;justify-content:space-around}.timer.svelte-8jhsry:hover{background:rgba(31, 31, 31, .85)
25
- }.timer-canvas.svelte-8jhsry{width:50px;height:50px;position:absolute}.timer-play-icon.svelte-8jhsry{width:22px;height:26px}`)}function uh(i){let e,t,n,o,r,l,a;return{c(){e=T("div"),t=T("canvas"),n=O(),o=N("svg"),r=N("g"),l=N("g"),a=N("path"),f(t,"class","timer-canvas svelte-8jhsry"),f(t,"width","100"),f(t,"height","100"),f(a,"class","_play"),f(a,"d","m8.13340613 5.10548415 10.49681277 6.24354325c.3559987.2117494.472936.6720001.2611866 1.0279989-.0638111.1072809-.1533894.1969388-.2606135.2608453l-10.4968128 6.256187c-.35581027.2120659-.81616483.095538-1.02823068-.2602722-.06921066-.1161237-.10574852-.2487949-.10574852-.3839792v-12.49973035c0-.41421357.33578644-.75.75-.75.13495801 0 .26741554.03641567.38340613.1054073z"),f(a,"fill","#fff"),f(l,"fill-rule","nonzero"),f(r,"fill","none"),f(r,"fill-rule","evenodd"),f(o,"class","timer-play-icon svelte-8jhsry"),f(o,"viewBox","0 0 24 24"),f(o,"xmlns","http://www.w3.org/2000/svg"),f(e,"class","timer svelte-8jhsry")},m(s,u){C(s,e,u),p(e,t),i[2](t),p(e,n),p(e,o),p(o,r),p(r,l),p(l,a)},p:pe,i:pe,o:pe,d(s){s&&k(e),i[2](null)}}}var fh=5e3;function ch(i,e,t){let{onTimerEnded:n=C1.noop}=e,o;Nt(()=>{let l,a=o.getContext("2d");if(!a)return;a.lineWidth=6,a.lineCap="round",a.strokeStyle="#fff";let s=Date.now(),u=()=>{let c=(Date.now()-s)/fh;c<1?(a.clearRect(0,0,100,100),a.beginPath(),a.arc(50,50,47,-Math.PI/2,-Math.PI/2+Math.PI*2*c),a.stroke(),l=requestAnimationFrame(u)):n()};return l=requestAnimationFrame(u),()=>{cancelAnimationFrame(l)}});function r(l){_e[l?"unshift":"push"](()=>{o=l,t(0,o)})}return i.$$set=l=>{"onTimerEnded"in l&&t(1,n=l.onTimerEnded)},[o,n,r]}var na=class extends j{constructor(e){super(),W(this,e,ch,uh,U,{onTimerEnded:1},ah)}},S1=na;function dh(i){Se(i,"svelte-kisfwc",".overlay.svelte-kisfwc{width:100%;height:100%;background:rgba(0, 0, 0, 0.72);position:absolute}.next-video.svelte-kisfwc{position:absolute;top:50%;left:50%;transform:translate(-50%, -50%);display:flex;width:362px;flex-direction:column}.top.svelte-kisfwc{display:flex;justify-content:space-between}.caption.svelte-kisfwc{font-size:11px;font-weight:bold;color:var(--white);text-transform:uppercase;opacity:0.8}.row.svelte-kisfwc{height:102px;background:rgba(48, 48, 48, .8);cursor:pointer;margin-top:6px;display:flex;flex-direction:row;flex-wrap:wrap;width:100%}.column.svelte-kisfwc{display:flex;flex-direction:column;flex-basis:50%}.thumb.svelte-kisfwc{width:100%;height:100%;background:no-repeat center;background-size:cover;display:flex;align-items:center;position:relative;justify-content:space-around}.thumb-overlay.svelte-kisfwc{width:100%;height:100%;background:var(--black);opacity:0.3;position:absolute}.title.svelte-kisfwc{padding:10px 16px;font-size:12px;font-weight:bold;color:var(--white);line-height:1.6;max-height:52px;overflow:hidden}")}function P1(i){let e,t;return e=new S1({props:{onTimerEnded:i[2]}}),{c(){D(e.$$.fragment)},m(n,o){B(e,n,o),t=!0},p(n,o){let r={};o&4&&(r.onTimerEnded=n[2]),e.$set(r)},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){_(e.$$.fragment,n),t=!1},d(n){R(e,n)}}}function mh(i){let e,t,n,o,r,l,a,s,u,c,m,h,y,b,S,w,P,v,g,I,A;a=new k1({}),a.$on("click",i[4]);let q=i[3]&&P1(i);return{c(){e=T("div"),t=O(),n=T("div"),o=T("div"),r=T("div"),r.textContent="\u0441\u043B\u0435\u0434\u0443\u044E\u0449\u0435\u0435 \u0432\u0438\u0434\u0435\u043E",l=O(),D(a.$$.fragment),s=O(),u=T("div"),c=T("div"),m=T("div"),h=T("div"),y=O(),q&&q.c(),S=O(),w=T("div"),P=T("div"),v=De(i[0]),f(e,"class","overlay svelte-kisfwc"),f(r,"class","caption svelte-kisfwc"),f(o,"class","top svelte-kisfwc"),f(h,"class","thumb-overlay svelte-kisfwc"),f(m,"class","thumb svelte-kisfwc"),f(m,"style",b=`background-image: url('${i[1]}')`),f(c,"class","column svelte-kisfwc"),f(P,"class","title svelte-kisfwc"),f(w,"class","column svelte-kisfwc"),f(u,"class","row svelte-kisfwc"),f(n,"class","next-video svelte-kisfwc")},m(K,re){C(K,e,re),C(K,t,re),C(K,n,re),p(n,o),p(o,r),p(o,l),B(a,o,null),p(n,s),p(n,u),p(u,c),p(c,m),p(m,h),p(m,y),q&&q.m(m,null),p(u,S),p(u,w),p(w,P),p(P,v),g=!0,I||(A=de(u,"click",function(){Ri(i[2])&&i[2].apply(this,arguments)}),I=!0)},p(K,[re]){i=K,i[3]?q?(q.p(i,re),re&8&&d(q,1)):(q=P1(i),q.c(),d(q,1),q.m(m,null)):q&&(fe(),_(q,1,1,()=>{q=null}),ce()),(!g||re&2&&b!==(b=`background-image: url('${i[1]}')`))&&f(m,"style",b),(!g||re&1)&&Ye(v,i[0])},i(K){g||(d(a.$$.fragment,K),d(q),g=!0)},o(K){_(a.$$.fragment,K),_(q),g=!1},d(K){K&&(k(e),k(t),k(n)),R(a),q&&q.d(),I=!1,A()}}}function ph(i,e,t){let{title:n}=e,{thumb:o}=e,{playNextVideo:r}=e,l=!0,a=()=>t(3,l=!1);return i.$$set=s=>{"title"in s&&t(0,n=s.title),"thumb"in s&&t(1,o=s.thumb),"playNextVideo"in s&&t(2,r=s.playNextVideo)},[n,o,r,l,a]}var oa=class extends j{constructor(e){super(),W(this,e,ph,mh,U,{title:0,thumb:1,playNextVideo:2},dh)}},T1=oa;var vo=require("@vkontakte/videoplayer-core"),I1=require("@vkontakte/videoplayer-shared"),kn=require("@vkontakte/videoplayer-statistics");var la=(i,e)=>Math.min(+(i+e).toFixed(2),1),ra=(i,e)=>Math.max(+(i-e).toFixed(2),0),kr=(i,e,t)=>{let n=la(e,t);e<1&&i.actions.internal.setVolume(n)},Cr=(i,e,t)=>{let n=ra(e,t);e>0&&i.actions.internal.setVolume(n)};var bo=({isAudioDisabled:i,audioDisabledHintCallback:e,isAudioAvailable:t,audioIsNotExistHintCallback:n})=>i?(e==null||e(),!1):t?!0:(n==null||n(),!1);function hh(i){Se(i,"svelte-10kkmxz",".keyboard-controls.svelte-10kkmxz{position:absolute;left:0;right:0;top:0;bottom:0}")}function gh(i){let e,t,n,o,r,l=i[26].default,a=Ee(l,i,i[25],null);return{c(){e=T("div"),a&&a.c(),f(e,"class","keyboard-controls svelte-10kkmxz"),f(e,"tabindex","-1"),f(e,"role","region"),f(e,"aria-label",t=Y("aria_label_video_player"))},m(s,u){C(s,e,u),a&&a.m(e,null),i[27](e),n=!0,o||(r=[de(e,"keyup",i[17]),de(e,"keydown",i[16])],o=!0)},p(s,u){a&&a.p&&(!n||u[0]&33554432)&&Ve(a,l,s,s[25],n?Me(l,s[25],u,null):Ae(s[25]),null)},i(s){n||(d(a,s),n=!0)},o(s){_(a,s),n=!1},d(s){s&&k(e),a&&a.d(s),i[27](null),o=!1,ot(r)}}}function bh(i,e,t){var bt,vt;let n,o,r,l,a,s,u,c,m,h,y,b,S,w,P,{$$slots:v={},$$scope:g}=e,{isAds:I}=e,{hideContextMenu:A}=e,{toggleFullscreen:q}=e,{showHotKeyHelpers:K}=e,{showKeyMap:re}=e,{fakePlayButtonHandler:ae}=e,H=it(),L=Ut(),x=H.getLogger().createComponentLog("KeyboardControls component"),Q=H.state.playbackState$;F(i,Q,we=>t(31,o=we));let J=H.ads.playbackState;F(i,J,we=>t(30,n=we));let E=H.state.positionExact$;F(i,E,we=>t(41,b=we));let te=H.state.duration$;F(i,te,we=>t(40,y=we));let M=H.state.volume$;F(i,M,we=>t(44,P=we));let ee=H.ui.controls.disabledControls$;F(i,ee,we=>t(39,h=we));let ke=H.state.muted$;F(i,ke,we=>t(34,a=we));let Qe=H.state.currentSubtitle$;F(i,Qe,we=>t(33,l=we));let je=H.state.currentPlaybackRate$;F(i,je,we=>t(42,S=we));let $e=H.state.availablePlaybackRates$;F(i,$e,we=>t(43,w=we));let We=H.ui.contextMenu.openedByHotKey$,ve=H.ui.contextMenu.lastActiveElem$,X=H.ui.contextMenu.visible$,be=H.ui.contextMenu.position$,Oe=H.state.isEnded$;F(i,Oe,we=>t(36,u=we));let xe=H.ui.overlayContainer$;F(i,xe,we=>t(32,r=we));let et=(bt=H.callbacks)==null?void 0:bt.onAudioDoesNotExistHint,ye=(vt=H.callbacks)==null?void 0:vt.onAudioDisabledHint,Be=H.state.isAudioAvailable$;F(i,Be,we=>t(35,s=we));let Ue=H.state.isAudioDisabled,Xe=H.state.isInteractiveTime$;F(i,Xe,we=>t(38,m=we));let{showInteractiveTimeIndicatorTooltip$:Te}=On();F(i,Te,we=>t(37,c=we));let Z=0,Ce=!0,ue,Ie=()=>ue==null?void 0:ue.focus(),Je=we=>(we!==Ce&&(Ce=we,Z=0),Z+=1,(L.controls.seekStepKeyboard+L.controls.seekStepKeyboard*Z)/1e3),ft=we=>{var yt;let _t=we.target,Mt=(yt=_t==null?void 0:_t.getAttribute("role"))==null?void 0:yt.includes("menuitem"),Vt=_t.classList.contains("btn"),ze=we.code;if(Vt&&ze==="Space")return;let jt=sc.has(ze);if(Mt&&jt)return;let Ht=!rc.has(ze);if(we.ctrlKey&&Ht||we.altKey&&Ht||we.metaKey)return;let Wt=Mt&&ze==="Escape";ac.has(ze)||Wt||A();let $t=o===vo.PlaybackState.PLAYING||o===vo.PlaybackState.PAUSED,me=I&&(n==="paused"||n==="playing"),ht=!me&&!h.has("TIMELINE");if($t||me)switch(x({message:`key down, code: ${ze}`}),ze){case"KeyJ":case"ArrowLeft":{if(!ht)break;if(we.ctrlKey||we.altKey){let Re=H.actions.internal.getPrevEpisode();H.actions.internal.seekToPrevEpisode(Re),Re&&K({type:"EPISODE_PREV",text:Re.text}),we.preventDefault()}else{let Re=we.shiftKey?Je(!1):L.controls.seekStepKeyboard/1e3,qe=Math.max(b-Re,0);b>0&&(H.actions.internal.seekTime(qe,kn.SeekAction.DOUBLE_TAP),K({type:"BACKWARD_SEEK",text:Re.toString()}),we.preventDefault())}break}case"KeyL":case"ArrowRight":{if(!ht)break;if(we.ctrlKey||we.altKey){let Re=H.actions.internal.getNextEpisode();H.actions.internal.seekToNextEpisode(Re),Re&&K({type:"EPISODE_NEXT",text:Re.text}),we.preventDefault()}else{let Re=we.shiftKey?Je(!0):L.controls.seekStepKeyboard/1e3,qe=Math.min(b+Re,y);Math.round(b)<Math.round(y)&&(H.actions.internal.seekTime(qe,kn.SeekAction.DOUBLE_TAP),K({type:"FORWARD_SEEK",text:Re.toString()}),we.preventDefault())}break}case"ArrowUp":{if(bo({isAudioDisabled:Ue,audioDisabledHintCallback:ye,isAudioAvailable:s,audioIsNotExistHintCallback:et})){let Re=P,qe=L.controls.volumeStepKeyboard,kt=Re<=1;if(kr(H,Re,qe),kt){let zt=Math.round(la(Re,qe)*100).toString();K({type:"VOLUME",t:{key:"hotkey_helper_current_volume",value:zt}})}}we.preventDefault();break}case"ArrowDown":{if(bo({isAudioDisabled:Ue,audioDisabledHintCallback:ye,isAudioAvailable:s,audioIsNotExistHintCallback:et})){let Re=P,qe=L.controls.volumeStepKeyboard,kt=Re>=0;if(Cr(H,Re,qe),kt){let zt=Math.round(ra(Re,qe)*100).toString();K({type:"VOLUME",t:{key:"hotkey_helper_current_volume",value:zt}})}}we.preventDefault();break}case"Comma":{if(we.shiftKey){H.actions.internal.decrementPlaybackRate();let Re=w.find(qe=>qe.value===S);K({type:"RATE_DOWN",text:Re==null?void 0:Re.displayValue}),we.preventDefault()}else{if(me||o!==vo.PlaybackState.PAUSED)break;let Re=Math.max(b-L.controls.seekStepFrame/1e3,0);b>0&&(K({type:"BACKWARD_SEEK"}),H.actions.internal.clearDelayedBufferingCheckTimeout(),H.actions.internal.seekTime(Re,kn.SeekAction.DOUBLE_TAP),we.preventDefault())}break}case"Period":{if(we.shiftKey){H.actions.internal.incrementPlaybackRate();let Re=w.find(qe=>qe.value===S);K({type:"RATE_UP",text:Re==null?void 0:Re.displayValue}),we.preventDefault()}else{if(me||o!==vo.PlaybackState.PAUSED)break;let Re=Math.min(b+L.controls.seekStepFrame/1e3,y);b<y&&(K({type:"FORWARD_SEEK"}),H.actions.internal.clearDelayedBufferingCheckTimeout(),H.actions.internal.seekTime(Re,kn.SeekAction.DOUBLE_TAP),we.preventDefault())}break}case"KeyK":case"Space":if(!h.has("PLAY_BUTTON"))if(m&&c&&Te.set(!1),ae)ae();else{H.actions.internal.togglePlay();let Re="PLAY";o===vo.PlaybackState.PAUSED?Re="PAUSE":u&&(Re="REPLAY"),K({type:Re})}we.preventDefault();break;case"KeyM":{bo({isAudioDisabled:Ue,audioDisabledHintCallback:ye,isAudioAvailable:s,audioIsNotExistHintCallback:et})&&(K({type:a?"VOLUME":"MUTE"}),H.actions.internal.toggleMuted()),we.preventDefault();break}case"KeyF":q(),we.preventDefault();break;case"KeyC":H.actions.internal.toggleSubtitle(),l.value!=="off"?K({type:"SUBTITLES_ON",text:l==null?void 0:l.displayValue}):K({type:"SUBTITLES_OFF"}),we.preventDefault();break;case"KeyI":H.actions.internal.togglePictureInPicture(),we.preventDefault();break;case"Digit1":case"Numpad1":if(we.shiftKey){let Re=n1(r);be.set(Re),ve.set(_t),We.set(!0),X.set(!0),we.preventDefault();break}K(),H.actions.internal.seekToPercent(.1,kn.SeekAction.DOUBLE_TAP),we.preventDefault();break;case"Digit2":case"Numpad2":K(),H.actions.internal.seekToPercent(.2,kn.SeekAction.DOUBLE_TAP),we.preventDefault();break;case"Digit3":case"Numpad3":K(),H.actions.internal.seekToPercent(.3,kn.SeekAction.DOUBLE_TAP),we.preventDefault();break;case"Digit4":case"Numpad4":K(),H.actions.internal.seekToPercent(.4,kn.SeekAction.DOUBLE_TAP),we.preventDefault();break;case"Digit5":case"Numpad5":K(),H.actions.internal.seekToPercent(.5,kn.SeekAction.DOUBLE_TAP),we.preventDefault();break;case"Digit6":case"Numpad6":K(),H.actions.internal.seekToPercent(.6,kn.SeekAction.DOUBLE_TAP),we.preventDefault();break;case"Digit7":case"Numpad7":K(),H.actions.internal.seekToPercent(.7,kn.SeekAction.DOUBLE_TAP),we.preventDefault();break;case"Digit8":case"Numpad8":K(),H.actions.internal.seekToPercent(.8,kn.SeekAction.DOUBLE_TAP),we.preventDefault();break;case"Digit9":case"Numpad9":K(),H.actions.internal.seekToPercent(.9,kn.SeekAction.DOUBLE_TAP),we.preventDefault();break;case"Digit0":case"Numpad0":K(),H.actions.internal.seekToPercent(0,kn.SeekAction.DOUBLE_TAP),we.preventDefault();break;case"Slash":{we.shiftKey&&L.features.hotKeyMapModal&&(re(),we.preventDefault());break}case"ShiftLeft":case"ShiftRight":we.preventDefault();break;case"Tab":case"Escape":case"Enter":break;default:(0,I1.checkNever)(ze);break}},ct=we=>{let _t=we.code;if(we.ctrlKey||we.altKey||we.metaKey)return;let Mt=o===vo.PlaybackState.PLAYING||o===vo.PlaybackState.PAUSED,Vt=I&&(n==="paused"||n==="playing");if(Mt||Vt)switch(_t){case"ShiftLeft":case"ShiftRight":Z=0;break}};function dt(we){_e[we?"unshift":"push"](()=>{ue=we,t(0,ue)})}return i.$$set=we=>{"isAds"in we&&t(18,I=we.isAds),"hideContextMenu"in we&&t(19,A=we.hideContextMenu),"toggleFullscreen"in we&&t(20,q=we.toggleFullscreen),"showHotKeyHelpers"in we&&t(21,K=we.showHotKeyHelpers),"showKeyMap"in we&&t(22,re=we.showKeyMap),"fakePlayButtonHandler"in we&&t(23,ae=we.fakePlayButtonHandler),"$$scope"in we&&t(25,g=we.$$scope)},[ue,Q,J,E,te,M,ee,ke,Qe,je,$e,Oe,xe,Be,Xe,Te,ft,ct,I,A,q,K,re,ae,Ie,g,v,dt]}var sa=class extends j{constructor(e){super(),W(this,e,bh,gh,U,{isAds:18,hideContextMenu:19,toggleFullscreen:20,showHotKeyHelpers:21,showKeyMap:22,fakePlayButtonHandler:23,focus:24},hh,[-1,-1])}get focus(){return this.$$.ctx[24]}},E1=sa;function vh(i){Se(i,"svelte-8nkw5s",".container.svelte-8nkw5s.svelte-8nkw5s{position:absolute;top:50%;left:50%;transform:translate(-50%, -50%);pointer-events:none;display:flex}.dot.svelte-8nkw5s.svelte-8nkw5s:nth-child(1){animation-delay:calc(0 * 180ms)}.dot.svelte-8nkw5s.svelte-8nkw5s:nth-child(2){animation-delay:calc(1 * 180ms)}.dot.svelte-8nkw5s.svelte-8nkw5s:nth-child(3){animation-delay:calc(2 * 180ms)}@keyframes svelte-8nkw5s-dot_animation{0%{opacity:0.2}30%{opacity:1}100%{opacity:0.2}}.dot.svelte-8nkw5s.svelte-8nkw5s{border-radius:4px;width:8px;height:8px;background:var(--white);animation-duration:750ms;animation-name:svelte-8nkw5s-dot_animation;animation-iteration-count:infinite}.dot.svelte-8nkw5s+.dot.svelte-8nkw5s{margin-left:4px}")}function yh(i){let e;return{c(){e=T("div"),e.innerHTML='<div class="dot svelte-8nkw5s"></div> <div class="dot svelte-8nkw5s"></div> <div class="dot svelte-8nkw5s"></div>',f(e,"class","container svelte-8nkw5s")},m(t,n){C(t,e,n)},p:pe,i:pe,o:pe,d(t){t&&k(e)}}}var aa=class extends j{constructor(e){super(),W(this,e,null,yh,U,{},vh)}},Sr=aa;function wh(i){let e,t,n,o,r,l,a,s,u,c,m,h,y,b,S=i[2].default,w=Ee(S,i,i[1],null),P=[{xmlns:"http://www.w3.org/2000/svg"},{width:"24"},{height:"24"},{fill:"none"},{"aria-hidden":"true"},{"data-testid":"cross-icon"},{role:"img"},i[0]],v={};for(let g=0;g<P.length;g+=1)v=oe(v,P[g]);return{c(){e=N("svg"),w&&w.c(),t=N("g"),n=N("path"),o=N("path"),r=N("defs"),l=N("filter"),a=N("feFlood"),s=N("feColorMatrix"),u=N("feOffset"),c=N("feGaussianBlur"),m=N("feColorMatrix"),h=N("feBlend"),y=N("feBlend"),f(n,"fill","#fff"),f(n,"d","M7.536 6.264a.9.9 0 0 0-1.272 1.272L10.727 12l-4.463 4.464a.9.9 0 0 0 1.272 1.272L12 13.273l4.464 4.463a.9.9 0 1 0 1.272-1.272L13.273 12l4.463-4.464a.9.9 0 1 0-1.272-1.272L12 10.727z"),f(o,"stroke","#000"),f(o,"stroke-opacity",".12"),f(o,"stroke-width",".5"),f(o,"d","M7.713 6.087a1.15 1.15 0 1 0-1.626 1.626L10.374 12l-4.287 4.287a1.15 1.15 0 0 0 1.626 1.626L12 13.626l4.287 4.287a1.15 1.15 0 0 0 1.626-1.626L13.626 12l4.287-4.287a1.15 1.15 0 1 0-1.626-1.626L12 10.374z"),f(t,"filter","url(#a)"),f(a,"flood-opacity","0"),f(a,"result","BackgroundImageFix"),f(s,"in","SourceAlpha"),f(s,"result","hardAlpha"),f(s,"values","0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0"),f(c,"stdDeviation","2.5"),f(m,"values","0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.16 0"),f(h,"in2","BackgroundImageFix"),f(h,"result","effect1_dropShadow_2422_111980"),f(y,"in","SourceGraphic"),f(y,"in2","effect1_dropShadow_2422_111980"),f(y,"result","shape"),f(l,"id","a"),f(l,"width","23"),f(l,"height","23"),f(l,"x",".5"),f(l,"y",".5"),f(l,"color-interpolation-filters","sRGB"),f(l,"filterUnits","userSpaceOnUse"),ge(e,v)},m(g,I){C(g,e,I),w&&w.m(e,null),p(e,t),p(t,n),p(t,o),p(e,r),p(r,l),p(l,a),p(l,s),p(l,u),p(l,c),p(l,m),p(l,h),p(l,y),b=!0},p(g,[I]){w&&w.p&&(!b||I&2)&&Ve(w,S,g,g[1],b?Me(S,g[1],I,null):Ae(g[1]),null),ge(e,v=Le(P,[{xmlns:"http://www.w3.org/2000/svg"},{width:"24"},{height:"24"},{fill:"none"},{"aria-hidden":"true"},{"data-testid":"cross-icon"},{role:"img"},I&1&&g[0]]))},i(g){b||(d(w,g),b=!0)},o(g){_(w,g),b=!1},d(g){g&&k(e),w&&w.d(g)}}}function kh(i,e,t){let{$$slots:n={},$$scope:o}=e;return i.$$set=r=>{t(0,e=oe(oe({},e),he(r))),"$$scope"in r&&t(1,o=r.$$scope)},e=he(e),[e,o,n]}var ua=class extends j{constructor(e){super(),W(this,e,kh,wh,U,{})}},M1=ua;var xn=require("@vkontakte/videoplayer-shared");function Ch(i){Se(i,"svelte-1anemql",".btn.svelte-1anemql{padding:8px;margin:0;height:var(--controls-height);display:flex;flex-direction:row;align-items:center}.w-max.svelte-1anemql{width:100%}.btn--live.svelte-1anemql{padding:10px 4px}.btn-m.svelte-1anemql{position:absolute;left:12px;top:50%;transform:translateY(-50%);height:44px;width:44px;border-radius:12px;background-color:rgba(0, 0, 0, 0.56);transition:opacity var(--controls-transition-duration);display:flex;align-items:center;justify-content:center}.btn-m--play.svelte-1anemql{width:var(--big-play-size);height:var(--big-play-size);display:flex;align-items:center;justify-content:center;position:relative;padding:16px}.btn.svelte-1anemql:disabled{cursor:default;pointer-events:none}.btn.svelte-1anemql:not(.btn-full-opacity):disabled{opacity:0.4}.btn.svelte-1anemql:not(:disabled):hover{opacity:0.8}.pr-0.svelte-1anemql{padding-right:0}.pl-0.svelte-1anemql{padding-left:0}")}function Sh(i){let e,t,n,o,r,l,a,s,u,c,m,h,y=i[14].default,b=Ee(y,i,i[13],null);return{c(){var S,w,P,v,g,I;e=T("button"),b&&b.c(),f(e,"class",t="btn "+i[1]+" svelte-1anemql"),f(e,"style",n=i[2]||null),e.disabled=o=(S=i[3])!=null?S:null,f(e,"aria-hidden",r=(w=i[5])!=null?w:null),f(e,"aria-label",l=(P=i[6])!=null?P:null),f(e,"aria-keyshortcuts",a=(v=i[7])!=null?v:null),f(e,"aria-expanded",s=(g=i[8])!=null?g:null),f(e,"data-testid",u=(I=i[4])!=null?I:null),f(e,"tabindex",i[9])},m(S,w){C(S,e,w),b&&b.m(e,null),i[16](e),c=!0,m||(h=[de(e,"pointerdown",at(Dt(i[15]))),de(e,"click",at(Dt(function(){Ri(i[10]===xn.noop?null:i[10])&&(i[10]===xn.noop?null:i[10]).apply(this,arguments)}))),de(e,"focus",Dt(function(){Ri(i[11]===xn.noop?null:i[11])&&(i[11]===xn.noop?null:i[11]).apply(this,arguments)})),de(e,"blur",Dt(function(){Ri(i[12]===xn.noop?null:i[12])&&(i[12]===xn.noop?null:i[12]).apply(this,arguments)}))],m=!0)},p(S,[w]){var P,v,g,I,A,q;i=S,b&&b.p&&(!c||w&8192)&&Ve(b,y,i,i[13],c?Me(y,i[13],w,null):Ae(i[13]),null),(!c||w&2&&t!==(t="btn "+i[1]+" svelte-1anemql"))&&f(e,"class",t),(!c||w&4&&n!==(n=i[2]||null))&&f(e,"style",n),(!c||w&8&&o!==(o=(P=i[3])!=null?P:null))&&(e.disabled=o),(!c||w&32&&r!==(r=(v=i[5])!=null?v:null))&&f(e,"aria-hidden",r),(!c||w&64&&l!==(l=(g=i[6])!=null?g:null))&&f(e,"aria-label",l),(!c||w&128&&a!==(a=(I=i[7])!=null?I:null))&&f(e,"aria-keyshortcuts",a),(!c||w&256&&s!==(s=(A=i[8])!=null?A:null))&&f(e,"aria-expanded",s),(!c||w&16&&u!==(u=(q=i[4])!=null?q:null))&&f(e,"data-testid",u),(!c||w&512)&&f(e,"tabindex",i[9])},i(S){c||(d(b,S),c=!0)},o(S){_(b,S),c=!1},d(S){S&&k(e),b&&b.d(S),i[16](null),m=!1,ot(h)}}}function Ph(i,e,t){let{$$slots:n={},$$scope:o}=e,{className:r=""}=e,{style:l=""}=e,{disabled:a=void 0}=e,{testId:s=void 0}=e,{ariaHidden:u=void 0}=e,{ariaLabel:c=void 0}=e,{ref:m=void 0}=e,{ariaKeyShortCut:h=void 0}=e,{ariaExpanded:y=void 0}=e,{tabIndex:b=0}=e,{click:S=xn.noop}=e,{focus:w=xn.noop}=e,{blur:P=xn.noop}=e;function v(I){Vn.call(this,i,I)}function g(I){_e[I?"unshift":"push"](()=>{m=I,t(0,m)})}return i.$$set=I=>{"className"in I&&t(1,r=I.className),"style"in I&&t(2,l=I.style),"disabled"in I&&t(3,a=I.disabled),"testId"in I&&t(4,s=I.testId),"ariaHidden"in I&&t(5,u=I.ariaHidden),"ariaLabel"in I&&t(6,c=I.ariaLabel),"ref"in I&&t(0,m=I.ref),"ariaKeyShortCut"in I&&t(7,h=I.ariaKeyShortCut),"ariaExpanded"in I&&t(8,y=I.ariaExpanded),"tabIndex"in I&&t(9,b=I.tabIndex),"click"in I&&t(10,S=I.click),"focus"in I&&t(11,w=I.focus),"blur"in I&&t(12,P=I.blur),"$$scope"in I&&t(13,o=I.$$scope)},[m,r,l,a,s,u,c,h,y,b,S,w,P,o,n,v,g]}var fa=class extends j{constructor(e){super(),W(this,e,Ph,Sh,U,{className:1,style:2,disabled:3,testId:4,ariaHidden:5,ariaLabel:6,ref:0,ariaKeyShortCut:7,ariaExpanded:8,tabIndex:9,click:10,focus:11,blur:12},Ch)}},gt=fa;function Th(i){Se(i,"svelte-1witlsj",".modal-overlay.svelte-1witlsj{position:absolute;top:0;bottom:0;left:0;right:0;background:transparent;display:flex;align-items:center;justify-content:center}.modal-container.svelte-1witlsj{display:flex;flex-direction:column;width:calc(100% - 32px);max-width:600px;height:calc(100% - 24px);max-height:490px;background:var(--mobile-settings-bg);color:var(--white);border-radius:8px}.modal-header.svelte-1witlsj{box-sizing:border-box;display:flex;justify-content:space-between;align-items:start;height:40px;padding:8px 10px;border-bottom:1px solid var(--white-alpha-24)}.modal-title.svelte-1witlsj{margin:3px 0 0 6px;color:var(--white);font-feature-settings:'clig' off, 'liga' off;font-size:13px;font-style:normal;font-weight:600;line-height:16px}.modal-scroll.svelte-1witlsj{overflow-y:auto;overflow-x:hidden;margin:8px 4px 8px 0;height:100%}.modal-scroll.svelte-1witlsj::-webkit-scrollbar{width:8px}.modal-scroll.svelte-1witlsj::-webkit-scrollbar-track{box-shadow:none;background-color:transparent;border-radius:4px;margin-right:2px}.modal-scroll.svelte-1witlsj::-webkit-scrollbar-thumb{min-height:40px;border-radius:5px;background-color:#666;border:1px solid transparent;background-clip:padding-box}.modal-scroll.svelte-1witlsj::-webkit-scrollbar-thumb:hover{background-color:#777}.modal-main.svelte-1witlsj{margin:-8px -4px 0 0}")}function V1(i){let e,t,n,o,r,l=i[2]&&A1(i);return{c(){e=T("div"),t=T("h3"),n=De(i[3]),o=O(),l&&l.c(),f(t,"class","modal-title svelte-1witlsj"),f(e,"class","modal-header svelte-1witlsj")},m(a,s){C(a,e,s),p(e,t),p(t,n),p(e,o),l&&l.m(e,null),r=!0},p(a,s){(!r||s&8)&&Ye(n,a[3]),a[2]?l?(l.p(a,s),s&4&&d(l,1)):(l=A1(a),l.c(),d(l,1),l.m(e,null)):l&&(fe(),_(l,1,1,()=>{l=null}),ce())},i(a){r||(d(l),r=!0)},o(a){_(l),r=!1},d(a){a&&k(e),l&&l.d()}}}function A1(i){let e,t;return e=new gt({props:{click:i[0],testId:"close-modal",style:"padding: 0; height: 24px; width: 24px",ariaLabel:Y("hotkey_map_modal_close_btn_text"),$$slots:{default:[Ih]},$$scope:{ctx:i}}}),{c(){D(e.$$.fragment)},m(n,o){B(e,n,o),t=!0},p(n,o){let r={};o&1&&(r.click=n[0]),o&32&&(r.$$scope={dirty:o,ctx:n}),e.$set(r)},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){_(e.$$.fragment,n),t=!1},d(n){R(e,n)}}}function Ih(i){let e,t;return e=new M1({}),{c(){D(e.$$.fragment)},m(n,o){B(e,n,o),t=!0},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){_(e.$$.fragment,n),t=!1},d(n){R(e,n)}}}function Eh(i){let e,t,n,o,r,l,a=i[1]&&V1(i),s=i[4].default,u=Ee(s,i,i[5],null);return{c(){e=T("div"),t=T("div"),a&&a.c(),n=O(),o=T("div"),r=T("div"),u&&u.c(),f(r,"class","modal-main svelte-1witlsj"),f(o,"class","modal-scroll svelte-1witlsj"),f(t,"class","modal-container svelte-1witlsj"),f(e,"class","modal-overlay svelte-1witlsj")},m(c,m){C(c,e,m),p(e,t),a&&a.m(t,null),p(t,n),p(t,o),p(o,r),u&&u.m(r,null),l=!0},p(c,[m]){c[1]?a?(a.p(c,m),m&2&&d(a,1)):(a=V1(c),a.c(),d(a,1),a.m(t,n)):a&&(fe(),_(a,1,1,()=>{a=null}),ce()),u&&u.p&&(!l||m&32)&&Ve(u,s,c,c[5],l?Me(s,c[5],m,null):Ae(c[5]),null)},i(c){l||(d(a),d(u,c),l=!0)},o(c){_(a),_(u,c),l=!1},d(c){c&&k(e),a&&a.d(),u&&u.d(c)}}}function Mh(i,e,t){let{$$slots:n={},$$scope:o}=e,{onClose:r}=e,{showHeader:l=!0}=e,{showCloseCross:a=!0}=e,{title:s}=e;return i.$$set=u=>{"onClose"in u&&t(0,r=u.onClose),"showHeader"in u&&t(1,l=u.showHeader),"showCloseCross"in u&&t(2,a=u.showCloseCross),"title"in u&&t(3,s=u.title),"$$scope"in u&&t(5,o=u.$$scope)},[r,l,a,s,n,o]}var ca=class extends j{constructor(e){super(),W(this,e,Mh,Eh,U,{onClose:0,showHeader:1,showCloseCross:2,title:3},Th)}},L1=ca;var Vh=new Set(["BR"]),da=i=>{var o;let e=document.createElement("DIV");e.innerHTML=i;let t=e.querySelectorAll("*"),n=t.length;for(;n--;){let r=t[n],l=r.tagName;Vh.has(l)||(o=r.parentElement)==null||o.removeChild(r)}return e.innerHTML};function Ah(i){Se(i,"svelte-quklnq",".hot-key-map.svelte-quklnq{color:var(--black);box-sizing:border-box;overflow-x:hidden}.hot-key-map-group.svelte-quklnq{border-bottom:1px solid var(--white-alpha-24);margin:0 20px 0 16px}.hot-key-map-group.svelte-quklnq:last-child{border-bottom:none}.hot-key-map-group-title.svelte-quklnq{color:var(--white);font-feature-settings:'clig' off, 'liga' off;font-size:13px;font-style:normal;font-weight:600;line-height:16px}.hot-key-map-group-title.svelte-quklnq,.hot-key-map-item.svelte-quklnq{padding:12px 0;margin:0;width:100%}.hot-key-map-group-items.svelte-quklnq{box-sizing:border-box;list-style:none;padding:0;margin:0}.hot-key-map-item.svelte-quklnq{box-sizing:border-box;display:flex;justify-content:space-between;align-items:center;--videoplayer-hotkey-item-value-width:156px;--videoplayer-hotkey-item-value-padding-left:24px}.hot-key-map-item-description.svelte-quklnq{color:var(--white-alpha-72);width:calc(100% - var(--videoplayer-hotkey-item-value-width) - var(--videoplayer-hotkey-item-value-padding-left));max-width:388px}.hot-key-map-item-value.svelte-quklnq{color:var(--white);width:var(--videoplayer-hotkey-item-value-width);padding-left:var(--videoplayer-hotkey-item-value-padding-left);letter-spacing:-0.14px}.hot-key-map-item-description.svelte-quklnq,.hot-key-map-item-value.svelte-quklnq{font-feature-settings:'clig' off, 'liga' off;font-size:13px;font-style:normal;font-weight:400;line-height:16px}")}function B1(i,e,t){let n=i.slice();return n[5]=e[t].title,n[6]=e[t].items,n}function R1(i,e,t){let n=i.slice();return n[9]=e[t].description,n[10]=e[t].value,n}function D1(i){let e,t,n=da(i[9])+"",o,r,l=i[10]+"",a,s;return{c(){e=T("li"),t=T("span"),o=O(),r=T("span"),a=De(l),s=O(),f(t,"class","hot-key-map-item-description svelte-quklnq"),f(r,"class","hot-key-map-item-value svelte-quklnq"),f(e,"class","hot-key-map-item svelte-quklnq")},m(u,c){C(u,e,c),p(e,t),t.innerHTML=n,p(e,o),p(e,r),p(r,a),p(e,s)},p(u,c){c&1&&n!==(n=da(u[9])+"")&&(t.innerHTML=n),c&1&&l!==(l=u[10]+"")&&Ye(a,l)},d(u){u&&k(e)}}}function N1(i){let e,t,n=i[5]+"",o,r,l,a,s=It(i[6]),u=[];for(let c=0;c<s.length;c+=1)u[c]=D1(R1(i,s,c));return{c(){e=T("div"),t=T("h5"),o=De(n),r=O(),l=T("ul");for(let c=0;c<u.length;c+=1)u[c].c();a=O(),f(t,"class","hot-key-map-group-title svelte-quklnq"),f(l,"class","hot-key-map-group-items svelte-quklnq"),f(e,"class","hot-key-map-group svelte-quklnq")},m(c,m){C(c,e,m),p(e,t),p(t,o),p(e,r),p(e,l);for(let h=0;h<u.length;h+=1)u[h]&&u[h].m(l,null);p(e,a)},p(c,m){if(m&1&&n!==(n=c[5]+"")&&Ye(o,n),m&1){s=It(c[6]);let h;for(h=0;h<s.length;h+=1){let y=R1(c,s,h);u[h]?u[h].p(y,m):(u[h]=D1(y),u[h].c(),u[h].m(l,null))}for(;h<u.length;h+=1)u[h].d(1);u.length=s.length}},d(c){c&&k(e),Gi(u,c)}}}function Lh(i){let e,t=It(i[0].groups),n=[];for(let o=0;o<t.length;o+=1)n[o]=N1(B1(i,t,o));return{c(){e=T("div");for(let o=0;o<n.length;o+=1)n[o].c();f(e,"class","hot-key-map svelte-quklnq")},m(o,r){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=It(o[0].groups);let l;for(l=0;l<t.length;l+=1){let a=B1(o,t,l);n[l]?n[l].p(a,r):(n[l]=N1(a),n[l].c(),n[l].m(e,null))}for(;l<n.length;l+=1)n[l].d(1);n.length=t.length}},d(o){o&&k(e),Gi(n,o)}}}function Bh(i){let e,t;return e=new L1({props:{title:i[0].title,onClose:i[2],$$slots:{default:[Lh]},$$scope:{ctx:i}}}),{c(){D(e.$$.fragment)},m(n,o){B(e,n,o),t=!0},p(n,[o]){let r={};o&1&&(r.title=n[0].title),o&8193&&(r.$$scope={dirty:o,ctx:n}),e.$set(r)},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){_(e.$$.fragment,n),t=!1},d(n){R(e,n)}}}function Rh(i,e,t){let n,o=it(),{data:r,show:l}=o.ui.modals.hotKeyMap;return F(i,r,s=>t(0,n=s)),[n,r,()=>{l.set(!1)}]}var ma=class extends j{constructor(e){super(),W(this,e,Rh,Bh,U,{},Ah)}},O1=ma;var os=require("@vkontakte/videoplayer-shared");var Uo=require("@vkontakte/videoplayer-core");var Sd=require("@vkontakte/videoplayer-core");var Rk=require("@vkontakte/videoplayer-shared");function Dh(i){Se(i,"svelte-1oe0j8n",".pillow.svelte-1oe0j8n{background-color:#679FF8;color:var(--white);font-size:6px;font-weight:600;-webkit-font-smoothing:antialiased;padding:2px 4px;border-radius:12px}")}function Nh(i){let e,t,n=i[1].default,o=Ee(n,i,i[0],null);return{c(){e=T("div"),o&&o.c(),f(e,"class","pillow svelte-1oe0j8n")},m(r,l){C(r,e,l),o&&o.m(e,null),t=!0},p(r,[l]){o&&o.p&&(!t||l&1)&&Ve(o,n,r,r[0],t?Me(n,r[0],l,null):Ae(r[0]),null)},i(r){t||(d(o,r),t=!0)},o(r){_(o,r),t=!1},d(r){r&&k(e),o&&o.d(r)}}}function Oh(i,e,t){let{$$slots:n={},$$scope:o}=e;return i.$$set=r=>{"$$scope"in r&&t(0,o=r.$$scope)},[o,n]}var pa=class extends j{constructor(e){super(),W(this,e,Oh,Nh,U,{},Dh)}},F1=pa;var ul=require("@vkontakte/videoplayer-core");function Fh(i){let e,t,n,o,r=i[2].default,l=Ee(r,i,i[1],null),a=[{xmlns:"http://www.w3.org/2000/svg"},{width:"9"},{height:"5"},{fill:"none"},{role:"img"},i[0]],s={};for(let u=0;u<a.length;u+=1)s=oe(s,a[u]);return{c(){e=N("svg"),l&&l.c(),t=N("path"),n=N("path"),f(t,"fill","currentColor"),f(t,"d","M5.517 5c.325 0 .516-.198.516-.536v-.97l.492-.517 1.46 1.74c.16.205.304.283.516.283A.49.49 0 0 0 9 4.501c0-.14-.068-.287-.222-.478l-1.47-1.73L8.818.868C8.949.731 9 .618 9 .475A.474.474 0 0 0 8.515 0c-.171 0-.301.065-.445.222L6.064 2.25h-.03V.54c0-.342-.192-.54-.517-.54s-.516.198-.516.54v3.924c0 .338.191.536.516.536"),f(n,"fill","currentColor"),f(n,"fill-rule","evenodd"),f(n,"d","m2.551 1.052-1.51 2.052h1.51zM3.5 3.104V.832c0-.81-1.089-1.14-1.556-.48L.139 2.821a.75.75 0 0 0 .612 1.183h1.8v.55c0 .248.25.45.499.45a.45.45 0 0 0 .45-.45v-.55h.052a.45.45 0 0 0 0-.9z"),f(n,"clip-rule","evenodd"),ge(e,s)},m(u,c){C(u,e,c),l&&l.m(e,null),p(e,t),p(e,n),o=!0},p(u,[c]){l&&l.p&&(!o||c&2)&&Ve(l,r,u,u[1],o?Me(r,u[1],c,null):Ae(u[1]),null),ge(e,s=Le(a,[{xmlns:"http://www.w3.org/2000/svg"},{width:"9"},{height:"5"},{fill:"none"},{role:"img"},c&1&&u[0]]))},i(u){o||(d(l,u),o=!0)},o(u){_(l,u),o=!1},d(u){u&&k(e),l&&l.d(u)}}}function Hh(i,e,t){let{$$slots:n={},$$scope:o}=e;return i.$$set=r=>{t(0,e=oe(oe({},e),he(r))),"$$scope"in r&&t(1,o=r.$$scope)},e=he(e),[e,o,n]}var _a=class extends j{constructor(e){super(),W(this,e,Hh,Fh,U,{})}},H1=_a;function zh(i){let e,t,n,o,r=i[2].default,l=Ee(r,i,i[1],null),a=[{xmlns:"http://www.w3.org/2000/svg"},{width:"9"},{height:"5"},{fill:"none"},{role:"img"},i[0]],s={};for(let u=0;u<a.length;u+=1)s=oe(s,a[u]);return{c(){e=N("svg"),l&&l.c(),t=N("path"),n=N("path"),f(t,"fill","currentColor"),f(t,"d","M5.513 5c.323 0 .513-.198.513-.537v-.97l.49-.516L7.99 4.715c.16.205.302.284.513.284A.49.49 0 0 0 9 4.5c0-.14-.068-.287-.22-.478L7.293 2.293 8.82.868C8.949.731 9 .618 9 .475A.473.473 0 0 0 8.517 0c-.17 0-.299.065-.441.222L6.056 2.25h-.03V.54c0-.342-.19-.54-.513-.54S5 .198 5 .54v3.923c0 .339.19.537.513.537"),f(n,"fill","currentColor"),f(n,"fill-rule","evenodd"),f(n,"d","M2 0q-.53 0-.952.173a1.5 1.5 0 0 0-.654.484q-.23.312-.23.71c0 .423.208.756.613.995a1.46 1.46 0 0 0-.547.44q-.23.305-.23.71 0 .432.252.778l.001.001q.26.336.712.523Q1.418 5.001 2 5q.582 0 1.035-.186.451-.187.705-.524.26-.346.26-.777 0-.406-.23-.711a1.45 1.45 0 0 0-.552-.44c.409-.235.618-.569.618-.994a1.14 1.14 0 0 0-.238-.711 1.44 1.44 0 0 0-.653-.484A2.4 2.4 0 0 0 2 0m-.573.964C1.563.86 1.75.804 2 .804s.434.055.564.16h.001a.51.51 0 0 1 .204.43.52.52 0 0 1-.204.437c-.13.105-.315.161-.565.161s-.437-.056-.573-.161a.52.52 0 0 1-.203-.437q.002-.276.203-.43m-.345 2.522c0-.217.08-.381.233-.503.16-.122.385-.188.685-.188s.522.066.677.188q.24.181.24.503a.63.63 0 0 1-.24.523c-.155.122-.377.188-.677.188s-.524-.065-.684-.187a.64.64 0 0 1-.234-.524"),f(n,"clip-rule","evenodd"),ge(e,s)},m(u,c){C(u,e,c),l&&l.m(e,null),p(e,t),p(e,n),o=!0},p(u,[c]){l&&l.p&&(!o||c&2)&&Ve(l,r,u,u[1],o?Me(r,u[1],c,null):Ae(u[1]),null),ge(e,s=Le(a,[{xmlns:"http://www.w3.org/2000/svg"},{width:"9"},{height:"5"},{fill:"none"},{role:"img"},c&1&&u[0]]))},i(u){o||(d(l,u),o=!0)},o(u){_(l,u),o=!1},d(u){u&&k(e),l&&l.d(u)}}}function qh(i,e,t){let{$$slots:n={},$$scope:o}=e;return i.$$set=r=>{t(0,e=oe(oe({},e),he(r))),"$$scope"in r&&t(1,o=r.$$scope)},e=he(e),[e,o,n]}var ha=class extends j{constructor(e){super(),W(this,e,qh,zh,U,{})}},z1=ha;function Uh(i){let e,t,n,o=i[2].default,r=Ee(o,i,i[1],null),l=[{xmlns:"http://www.w3.org/2000/svg"},{width:"9"},{height:"5"},{fill:"none"},{role:"img"},i[0]],a={};for(let s=0;s<l.length;s+=1)a=oe(a,l[s]);return{c(){e=N("svg"),r&&r.c(),t=N("path"),f(t,"fill","currentColor"),f(t,"d","M5.516 5h1.107C8.103 5 9 4.065 9 2.5S8.103 0 6.623 0H5.516C5.191 0 5 .2 5 .537V4.46c0 .342.191.54.516.54m.516-.854V.852H6.5C7.41.852 8 1.468 8 2.5c0 1.066-.577 1.646-1.5 1.646zM.516 5c.325 0 .516-.198.516-.536V2.922h1.936v1.542c0 .338.191.536.516.536S4 4.802 4 4.464V.54C4 .198 3.809 0 3.484 0s-.516.198-.516.54v1.531H1.032V.54C1.032.198.841 0 .516 0S0 .198 0 .54v3.989C0 4.867.191 5 .516 5"),ge(e,a)},m(s,u){C(s,e,u),r&&r.m(e,null),p(e,t),n=!0},p(s,[u]){r&&r.p&&(!n||u&2)&&Ve(r,o,s,s[1],n?Me(o,s[1],u,null):Ae(s[1]),null),ge(e,a=Le(l,[{xmlns:"http://www.w3.org/2000/svg"},{width:"9"},{height:"5"},{fill:"none"},{role:"img"},u&1&&s[0]]))},i(s){n||(d(r,s),n=!0)},o(s){_(r,s),n=!1},d(s){s&&k(e),r&&r.d(s)}}}function Kh(i,e,t){let{$$slots:n={},$$scope:o}=e;return i.$$set=r=>{t(0,e=oe(oe({},e),he(r))),"$$scope"in r&&t(1,o=r.$$scope)},e=he(e),[e,o,n]}var ga=class extends j{constructor(e){super(),W(this,e,Kh,Uh,U,{})}},q1=ga;function jh(i){let e,t,n,o=i[2].default,r=Ee(o,i,i[1],null),l=[{xmlns:"http://www.w3.org/2000/svg"},{width:"13"},{height:"5"},{fill:"none"},{role:"img"},i[0]],a={};for(let s=0;s<l.length;s+=1)a=oe(a,l[s]);return{c(){e=N("svg"),r&&r.c(),t=N("path"),f(t,"fill","currentColor"),f(t,"d","M9.516 5h1.107C12.103 5 13 4.065 13 2.5S12.103 0 10.623 0H9.516C9.191 0 9 .2 9 .537V4.46c0 .342.191.54.516.54m.516-.854V.852h.468c.91 0 1.5.616 1.5 1.648 0 1.066-.577 1.646-1.5 1.646zM4.516 5c.325 0 .516-.198.516-.536V2.922h1.936v1.542c0 .338.191.536.516.536S8 4.802 8 4.464V.54C8 .198 7.809 0 7.484 0s-.516.198-.516.54v1.531H5.032V.54c0-.342-.191-.54-.516-.54S4 .198 4 .54v3.989c0 .338.191.471.516.471m-4 0c.325 0 .516-.198.516-.537V3h1.332c.27 0 .441-.154.441-.41 0-.253-.174-.407-.44-.407H1.031V.854h1.5c.28 0 .468-.16.468-.427C3 .161 2.815 0 2.532 0H.516C.191 0 0 .198 0 .537v3.926C0 4.802.191 5 .516 5"),ge(e,a)},m(s,u){C(s,e,u),r&&r.m(e,null),p(e,t),n=!0},p(s,[u]){r&&r.p&&(!n||u&2)&&Ve(r,o,s,s[1],n?Me(o,s[1],u,null):Ae(s[1]),null),ge(e,a=Le(l,[{xmlns:"http://www.w3.org/2000/svg"},{width:"13"},{height:"5"},{fill:"none"},{role:"img"},u&1&&s[0]]))},i(s){n||(d(r,s),n=!0)},o(s){_(r,s),n=!1},d(s){s&&k(e),r&&r.d(s)}}}function Wh(i,e,t){let{$$slots:n={},$$scope:o}=e;return i.$$set=r=>{t(0,e=oe(oe({},e),he(r))),"$$scope"in r&&t(1,o=r.$$scope)},e=he(e),[e,o,n]}var ba=class extends j{constructor(e){super(),W(this,e,Wh,jh,U,{})}},Pr=ba;function Gh(i){let e,t,n,o,r=i[2].default,l=Ee(r,i,i[1],null),a=[{xmlns:"http://www.w3.org/2000/svg"},{width:"15"},{height:"7"},{fill:"none"},{role:"img"},i[0]],s={};for(let u=0;u<a.length;u+=1)s=oe(s,a[u]);return{c(){e=N("svg"),l&&l.c(),t=N("path"),n=N("path"),f(t,"fill","currentColor"),f(t,"d","M11.516 5.75h1.107c1.48 0 2.377-.935 2.377-2.5s-.897-2.5-2.377-2.5h-1.107c-.325 0-.516.199-.516.537V5.21c0 .342.191.54.516.54m.516-.854V1.602h.468c.91 0 1.5.616 1.5 1.648 0 1.066-.577 1.646-1.5 1.646zm-5.516.854c.325 0 .516-.198.516-.536V3.672h1.936v1.542c0 .338.191.536.516.536S10 5.552 10 5.214V1.29c0-.342-.191-.54-.516-.54s-.516.198-.516.54v1.531H7.032V1.29c0-.342-.191-.54-.516-.54S6 .948 6 1.29v3.989c0 .338.191.471.516.471"),f(n,"fill","currentColor"),f(n,"fill-rule","evenodd"),f(n,"d","M3.338 5.659a4 4 0 0 1-.838.091C1.037 5.75 0 4.885 0 3.303 0 1.733 1.037.75 2.5.75 3.96.75 5 1.734 5 3.303c0 .863-.274 1.46-.778 1.88l.194.29a.5.5 0 0 1-.832.554zm-.52-.78-.234-.352a.5.5 0 1 1 .832-.554l.245.367c.184-.26.286-.615.286-1.037 0-1.036-.64-1.653-1.447-1.653-.81 0-1.447.617-1.447 1.653 0 1.032.637 1.596 1.447 1.596.08 0 .208-.007.318-.02"),f(n,"clip-rule","evenodd"),ge(e,s)},m(u,c){C(u,e,c),l&&l.m(e,null),p(e,t),p(e,n),o=!0},p(u,[c]){l&&l.p&&(!o||c&2)&&Ve(l,r,u,u[1],o?Me(r,u[1],c,null):Ae(u[1]),null),ge(e,s=Le(a,[{xmlns:"http://www.w3.org/2000/svg"},{width:"15"},{height:"7"},{fill:"none"},{role:"img"},c&1&&u[0]]))},i(u){o||(d(l,u),o=!0)},o(u){_(l,u),o=!1},d(u){u&&k(e),l&&l.d(u)}}}function Qh(i,e,t){let{$$slots:n={},$$scope:o}=e;return i.$$set=r=>{t(0,e=oe(oe({},e),he(r))),"$$scope"in r&&t(1,o=r.$$scope)},e=he(e),[e,o,n]}var va=class extends j{constructor(e){super(),W(this,e,Qh,Gh,U,{})}},Tr=va;var yo=i=>{switch(i){case ul.VideoQuality.Q_720P:return q1;case ul.VideoQuality.Q_1080P:return Pr;case ul.VideoQuality.Q_1440P:return Tr;case ul.VideoQuality.Q_2160P:return H1;case ul.VideoQuality.Q_4320P:return z1}};function Yh(i){let e,t,n,o=i[2].default,r=Ee(o,i,i[1],null),l=[{xmlns:"http://www.w3.org/2000/svg"},{width:"24"},{height:"24"},{fill:"none"},{"aria-hidden":"true"},{"data-testid":"settings-mobile-icon"},{role:"img"},i[0]],a={};for(let s=0;s<l.length;s+=1)a=oe(a,l[s]);return{c(){e=N("svg"),r&&r.c(),t=N("path"),f(t,"fill","#fff"),f(t,"d","M12.722 2.213c1.208.037 1.994.702 2.408 1.954l.065.215.051.191q.027.111.068.235l.058.159.034.017.069-.023.133-.051.156-.068c1.414-.658 2.502-.536 3.387.437l.125.145.82 1.017c.732.962.71 1.99-.004 3.1l-.125.187-.117.16a3 3 0 0 0-.142.205l-.07.115-.034.057.004.02.091.06.127.077.153.083c1.39.71 1.963 1.641 1.742 2.936l-.038.188-.244 1.058c-.158.685-.282 1.01-.77 1.454-.475.432-1.016.61-1.732.67l-.22.014-.198.006q-.116.002-.246.015l-.181.021.013.142.013.096.033.179c.323 1.526-.04 2.558-1.188 3.202l-.17.09-1.175.57c-1.102.495-2.099.242-3.02-.702l-.153-.164-.13-.15a3 3 0 0 0-.17-.186l-.097-.096-.05-.046-.09.087-.106.108-.118.133c-.952 1.134-1.957 1.54-3.176 1.067l-.175-.074-1.052-.51-.312-.16c-.476-.26-.743-.51-1.004-1.061-.275-.58-.294-1.15-.16-1.883l.044-.225q.024-.114.041-.242l.019-.172-.004-.004-.104-.014-.146-.013-.174-.008c-1.56-.028-2.484-.614-2.853-1.877l-.049-.185-.292-1.274c-.235-1.185.236-2.1 1.364-2.785l.194-.112.175-.093a3 3 0 0 0 .216-.12l.155-.102.004-.019-.063-.108-.08-.125-.103-.143c-.937-1.246-1.044-2.335-.276-3.404l.115-.153.824-1.013c.79-.915 1.8-1.107 3.034-.64l.208.083.181.081q.103.048.222.093l.136.048.036-.017.033-.089.045-.138.046-.166c.36-1.436 1.085-2.242 2.39-2.35l.19-.011h1.39Zm-.056 1.799h-1.333l-.14.01c-.285.037-.472.191-.652.832l-.041.156-.057.206a6.3 6.3 0 0 1-.468 1.134 6 6 0 0 0-1.147.558 6.5 6.5 0 0 1-1.16-.35l-.35-.154c-.248-.107-.435-.161-.583-.175l-.084-.003a.55.55 0 0 0-.408.193l-.068.074-.789.973-.095.125c-.183.264-.21.5.195 1.075l.228.316c.212.31.425.692.598 1.102q-.195.577-.27 1.201c-.334.29-.69.537-1.013.72l-.343.184c-.617.34-.695.563-.646.881l.013.075.28 1.22.04.152c.096.308.265.475.968.509l.388.014c.37.024.798.09 1.223.204q.337.526.776.968a6.3 6.3 0 0 1-.118 1.445c-.201.95-.014 1.102.383 1.3l1.126.547a.8.8 0 0 0 .337.089l.067-.006c.181-.028.382-.162.67-.485l.258-.295a6.5 6.5 0 0 1 .949-.837l.298.023L12 18l.302-.008.298-.022c.363.263.691.559.948.837l.258.295c.325.364.538.488.737.49l.066-.003a.8.8 0 0 0 .178-.046l.093-.039 1.126-.548.139-.073c.3-.175.42-.395.245-1.226a6.2 6.2 0 0 1-.117-1.445q.436-.442.775-.97a6.5 6.5 0 0 1 1.223-.202l.387-.014c.812-.04.912-.256 1.008-.66l.264-1.142c.09-.406.095-.643-.617-1.035l-.342-.183a6.4 6.4 0 0 1-1.014-.722 6 6 0 0 0-.27-1.201c.174-.41.386-.791.598-1.1l.228-.317c.406-.575.378-.81.195-1.075l-.045-.062-.787-.974c-.14-.171-.259-.294-.452-.322l-.076-.007c-.16-.003-.368.05-.667.178l-.35.155a6.4 6.4 0 0 1-1.158.348 6 6 0 0 0-1.15-.556 6.5 6.5 0 0 1-.454-1.093l-.113-.414c-.192-.678-.393-.805-.714-.828zM12 8.2a3.8 3.8 0 1 1 0 7.6 3.8 3.8 0 0 1 0-7.6m0 1.8a2 2 0 1 0 0 4 2 2 0 0 0 0-4"),ge(e,a)},m(s,u){C(s,e,u),r&&r.m(e,null),p(e,t),n=!0},p(s,[u]){r&&r.p&&(!n||u&2)&&Ve(r,o,s,s[1],n?Me(o,s[1],u,null):Ae(s[1]),null),ge(e,a=Le(l,[{xmlns:"http://www.w3.org/2000/svg"},{width:"24"},{height:"24"},{fill:"none"},{"aria-hidden":"true"},{"data-testid":"settings-mobile-icon"},{role:"img"},u&1&&s[0]]))},i(s){n||(d(r,s),n=!0)},o(s){_(r,s),n=!1},d(s){s&&k(e),r&&r.d(s)}}}function Zh(i,e,t){let{$$slots:n={},$$scope:o}=e;return i.$$set=r=>{t(0,e=oe(oe({},e),he(r))),"$$scope"in r&&t(1,o=r.$$scope)},e=he(e),[e,o,n]}var ya=class extends j{constructor(e){super(),W(this,e,Zh,Yh,U,{})}},U1=ya;function Xh(i){let e,t,n,o,r=i[2].default,l=Ee(r,i,i[1],null),a=[{xmlns:"http://www.w3.org/2000/svg"},{width:"24"},{height:"24"},{fill:"none"},{"data-testid":"settings-icon"},{role:"img"},i[0]],s={};for(let u=0;u<a.length;u+=1)s=oe(s,a[u]);return{c(){e=N("svg"),l&&l.c(),t=N("path"),n=N("path"),f(t,"fill","#fff"),f(t,"fill-rule","evenodd"),f(t,"d","M13.933 4.875a.6.6 0 0 0-.07-.658c-.327-.413-.45-.833-.574-1.253l-.039-.13C13 2 12.833 2 12.417 2h-.91c-.371.003-.6.052-.757.833-.148.738-.36 1.476-1.566 2.186a.5.5 0 0 1-.12.05c-1.27.324-1.905-.023-2.542-.37l-.12-.065c-.766-.412-.884-.294-1.178 0l-.643.644c-.26.264-.389.461.053 1.124.418.626.789 1.299.438 2.654a.5.5 0 0 1-.05.12c-.668 1.126-1.362 1.33-2.058 1.535l-.13.039C2 11 2 11.167 2 11.583v.91c.003.371.052.6.833.757.738.148 1.476.36 2.186 1.566a.5.5 0 0 1 .05.12c.324 1.27-.023 1.905-.37 2.542l-.065.12c-.412.766-.294.884 0 1.178l.644.643c.264.26.461.389 1.124-.053.626-.418 1.299-.789 2.654-.438q.063.016.12.05c1.126.668 1.33 1.362 1.535 2.058l.039.13c.25.834.417.834.833.834h.91c.371-.003.6-.052.757-.833.148-.738.36-1.476 1.566-2.186a.5.5 0 0 1 .12-.05c1.27-.324 1.905.023 2.542.37l.12.065c.766.412.884.294 1.178 0l.643-.644c.26-.264.389-.461-.053-1.124-.26-.39-.503-.799-.563-1.38a.6.6 0 0 0-.413-.519 7.5 7.5 0 0 1-1.918-.871.58.58 0 0 0-.758.134 4.75 4.75 0 1 1-3.163-7.68.58.58 0 0 0 .633-.44 7.5 7.5 0 0 1 .749-1.967"),f(t,"clip-rule","evenodd"),f(n,"fill","#fff"),f(n,"d","M13.25 2.833c.225.751.383 1.502 1.63 2.222 1.399.38 2.082.003 2.718-.42.663-.443.86-.315 1.124-.054l.644.643c.294.294.412.412 0 1.178-.372.69-.792 1.333-.418 2.726.72 1.255 1.47 1.472 2.219 1.622.78.156.83.386.833.757v.91c0 .416 0 .583-.833.833-.751.225-1.502.383-2.222 1.63-.38 1.399-.003 2.082.42 2.718.443.663.315.86.054 1.124l-.643.644c-.294.294-.412.412-1.178 0-.69-.372-1.333-.792-2.726-.418-1.255.72-1.472 1.47-1.622 2.219-.156.78-.386.83-.757.833h-.91c-.416 0-.583 0-.833-.833-.225-.751-.383-1.502-1.63-2.222-1.399-.38-2.082-.003-2.718.42-.663.443-.86.315-1.124.054l-.644-.643c-.294-.294-.412-.412 0-1.178.372-.69.792-1.333.418-2.726-.72-1.255-1.47-1.472-2.219-1.622-.78-.156-.83-.386-.833-.757v-.91c0-.416 0-.583.833-.833.751-.225 1.502-.383 2.222-1.63.38-1.399.003-2.082-.42-2.718-.443-.663-.315-.86-.054-1.124l.643-.644c.294-.294.412-.412 1.178 0 .69.372 1.333.792 2.726.418 1.255-.72 1.472-1.47 1.622-2.219.156-.78.386-.83.757-.833h.91c.416 0 .583 0 .833.833M12 7.25a4.75 4.75 0 1 0 0 9.5 4.75 4.75 0 0 0 0-9.5"),f(n,"class","_full"),ge(e,s)},m(u,c){C(u,e,c),l&&l.m(e,null),p(e,t),p(e,n),o=!0},p(u,[c]){l&&l.p&&(!o||c&2)&&Ve(l,r,u,u[1],o?Me(r,u[1],c,null):Ae(u[1]),null),ge(e,s=Le(a,[{xmlns:"http://www.w3.org/2000/svg"},{width:"24"},{height:"24"},{fill:"none"},{"data-testid":"settings-icon"},{role:"img"},c&1&&u[0]]))},i(u){o||(d(l,u),o=!0)},o(u){_(l,u),o=!1},d(u){u&&k(e),l&&l.d(u)}}}function Jh(i,e,t){let{$$slots:n={},$$scope:o}=e;return i.$$set=r=>{t(0,e=oe(oe({},e),he(r))),"$$scope"in r&&t(1,o=r.$$scope)},e=he(e),[e,o,n]}var wa=class extends j{constructor(e){super(),W(this,e,Jh,Xh,U,{})}},K1=wa;function xh(i){Se(i,"svelte-8t5w85",'.icon.svelte-8t5w85{display:flex;position:relative;width:24px;height:24px}.icon.svelte-8t5w85 .pillow{position:absolute;top:1px;right:-9px}.icon.triple.svelte-8t5w85 .pillow{right:-13px}.icon.svelte-8t5w85 svg[data-testid="settings-icon--labeled"] ._full{visibility:hidden;opacity:0}')}function $h(i){let e,t,n,o,r=i[1]&&j1(i);return n=new K1({props:{"data-testid":i[1]?"settings-icon--labeled":"settings-icon"}}),{c(){e=T("div"),r&&r.c(),t=O(),D(n.$$.fragment),f(e,"class","icon svelte-8t5w85"),f(e,"aria-hidden","true"),z(e,"triple",i[2])},m(l,a){C(l,e,a),r&&r.m(e,null),p(e,t),B(n,e,null),o=!0},p(l,a){l[1]?r?(r.p(l,a),a&2&&d(r,1)):(r=j1(l),r.c(),d(r,1),r.m(e,t)):r&&(fe(),_(r,1,1,()=>{r=null}),ce());let s={};a&2&&(s["data-testid"]=l[1]?"settings-icon--labeled":"settings-icon"),n.$set(s),(!o||a&4)&&z(e,"triple",l[2])},i(l){o||(d(r),d(n.$$.fragment,l),o=!0)},o(l){_(r),_(n.$$.fragment,l),o=!1},d(l){l&&k(e),r&&r.d(),R(n)}}}function eg(i){let e,t;return e=new U1({}),{c(){D(e.$$.fragment)},m(n,o){B(e,n,o),t=!0},p:pe,i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){_(e.$$.fragment,n),t=!1},d(n){R(e,n)}}}function j1(i){let e,t;return e=new F1({props:{$$slots:{default:[tg]},$$scope:{ctx:i}}}),{c(){D(e.$$.fragment)},m(n,o){B(e,n,o),t=!0},p(n,o){let r={};o&18&&(r.$$scope={dirty:o,ctx:n}),e.$set(r)},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){_(e.$$.fragment,n),t=!1},d(n){R(e,n)}}}function tg(i){let e,t,n;var o=i[1];function r(l){return{}}return o&&(e=Pn(o,r(i))),{c(){e&&D(e.$$.fragment),t=rt()},m(l,a){e&&B(e,l,a),C(l,t,a),n=!0},p(l,a){if(a&2&&o!==(o=l[1])){if(e){fe();let s=e;_(s.$$.fragment,1,0,()=>{R(s,1)}),ce()}o?(e=Pn(o,r(l)),D(e.$$.fragment),d(e.$$.fragment,1),B(e,t.parentNode,t)):e=null}},i(l){n||(e&&d(e.$$.fragment,l),n=!0)},o(l){e&&_(e.$$.fragment,l),n=!1},d(l){l&&k(t),e&&R(e,l)}}}function ig(i){let e,t,n,o,r=[eg,$h],l=[];function a(s,u){return s[0]?0:1}return e=a(i,-1),t=l[e]=r[e](i),{c(){t.c(),n=rt()},m(s,u){l[e].m(s,u),C(s,n,u),o=!0},p(s,[u]){let c=e;e=a(s,u),e===c?l[e].p(s,u):(fe(),_(l[c],1,1,()=>{l[c]=null}),ce(),t=l[e],t?t.p(s,u):(t=l[e]=r[e](s),t.c()),d(t,1),t.m(n.parentNode,n))},i(s){o||(d(t),o=!0)},o(s){_(t),o=!1},d(s){s&&k(n),l[e].d(s)}}}function ng(i,e,t){let n,{isMobile:o=!1}=e,{currentQuality:r=void 0}=e,l;return i.$$set=a=>{"isMobile"in a&&t(0,o=a.isMobile),"currentQuality"in a&&t(3,r=a.currentQuality)},i.$$.update=()=>{if(i.$$.dirty&8)e:t(1,n=yo(r));if(i.$$.dirty&2)e:t(2,l=!!n&&[Pr,Tr].includes(n))},[o,n,l,r]}var ka=class extends j{constructor(e){super(),W(this,e,ng,ig,U,{isMobile:0,currentQuality:3},xh)}},Ir=ka;function og(i){let e,t,n,o=i[2].default,r=Ee(o,i,i[1],null),l=[{xmlns:"http://www.w3.org/2000/svg"},{width:"22"},{height:"18"},{fill:"none"},{"aria-hidden":"true"},{"data-testid":"subtitle-empty-icon"},{role:"img"},i[0]],a={};for(let s=0;s<l.length;s+=1)a=oe(a,l[s]);return{c(){e=N("svg"),r&&r.c(),t=N("path"),f(t,"fill","#fff"),f(t,"d","M14.692.428c2.293 0 3.124.24 3.962.687a4.67 4.67 0 0 1 1.944 1.944c.449.839.687 1.67.687 3.962v3.958c0 2.292-.238 3.123-.687 3.961a4.67 4.67 0 0 1-1.944 1.944c-.838.449-1.67.687-3.962.687H7.307c-2.293 0-3.124-.238-3.962-.687A4.67 4.67 0 0 1 1.4 14.94c-.448-.838-.687-1.669-.687-3.961V7.02c0-2.292.239-3.123.687-3.962a4.67 4.67 0 0 1 1.944-1.944C4.183.667 5.015.428 7.307.428zm.243 1.716-7.628-.001c-1.832 0-2.484.126-3.154.484a2.96 2.96 0 0 0-1.24 1.24c-.343.64-.473 1.264-.484 2.912v4.2c0 1.83.125 2.483.483 3.153q.433.809 1.241 1.24c.67.36 1.322.485 3.154.485h7.385c1.832 0 2.484-.126 3.154-.484a2.96 2.96 0 0 0 1.24-1.241c.36-.67.485-1.322.485-3.153V7.02c0-1.831-.126-2.483-.484-3.153a2.96 2.96 0 0 0-1.241-1.24c-.64-.343-1.263-.473-2.911-.484ZM11 10.714a.857.857 0 1 1 0 1.714H5.857a.857.857 0 0 1 0-1.714zm5.142 0a.857.857 0 1 1 0 1.714h-1.714a.857.857 0 0 1 0-1.714zm0-3.428a.857.857 0 1 1 0 1.714H11a.857.857 0 1 1 0-1.714zm-8.571 0a.857.857 0 0 1 0 1.714H5.857a.857.857 0 0 1 0-1.714z"),ge(e,a)},m(s,u){C(s,e,u),r&&r.m(e,null),p(e,t),n=!0},p(s,[u]){r&&r.p&&(!n||u&2)&&Ve(r,o,s,s[1],n?Me(o,s[1],u,null):Ae(s[1]),null),ge(e,a=Le(l,[{xmlns:"http://www.w3.org/2000/svg"},{width:"22"},{height:"18"},{fill:"none"},{"aria-hidden":"true"},{"data-testid":"subtitle-empty-icon"},{role:"img"},u&1&&s[0]]))},i(s){n||(d(r,s),n=!0)},o(s){_(r,s),n=!1},d(s){s&&k(e),r&&r.d(s)}}}function lg(i,e,t){let{$$slots:n={},$$scope:o}=e;return i.$$set=r=>{t(0,e=oe(oe({},e),he(r))),"$$scope"in r&&t(1,o=r.$$scope)},e=he(e),[e,o,n]}var Ca=class extends j{constructor(e){super(),W(this,e,lg,og,U,{})}},Er=Ca;function rg(i){let e,t,n,o=i[2].default,r=Ee(o,i,i[1],null),l=[{xmlns:"http://www.w3.org/2000/svg"},{width:"16"},{height:"19"},{fill:"none"},{"aria-hidden":"true"},{"data-testid":"download-icon"},{role:"img"},i[0]],a={};for(let s=0;s<l.length;s+=1)a=oe(a,l[s]);return{c(){e=N("svg"),r&&r.c(),t=N("path"),f(t,"fill","#fff"),f(t,"fill-rule","evenodd"),f(t,"d","M8 0a.9.9 0 0 1 .9.9v10.927l4.564-4.563a.9.9 0 0 1 1.272 1.272l-6.1 6.1a.9.9 0 0 1-1.272 0l-6.1-6.1a.9.9 0 1 1 1.272-1.272L7.1 11.827V.9A.9.9 0 0 1 8 0M0 18a.9.9 0 0 1 .9-.9h14.2a.9.9 0 1 1 0 1.8H.9A.9.9 0 0 1 0 18"),f(t,"clip-rule","evenodd"),ge(e,a)},m(s,u){C(s,e,u),r&&r.m(e,null),p(e,t),n=!0},p(s,[u]){r&&r.p&&(!n||u&2)&&Ve(r,o,s,s[1],n?Me(o,s[1],u,null):Ae(s[1]),null),ge(e,a=Le(l,[{xmlns:"http://www.w3.org/2000/svg"},{width:"16"},{height:"19"},{fill:"none"},{"aria-hidden":"true"},{"data-testid":"download-icon"},{role:"img"},u&1&&s[0]]))},i(s){n||(d(r,s),n=!0)},o(s){_(r,s),n=!1},d(s){s&&k(e),r&&r.d(s)}}}function sg(i,e,t){let{$$slots:n={},$$scope:o}=e;return i.$$set=r=>{t(0,e=oe(oe({},e),he(r))),"$$scope"in r&&t(1,o=r.$$scope)},e=he(e),[e,o,n]}var Sa=class extends j{constructor(e){super(),W(this,e,sg,rg,U,{})}},W1=Sa;function ag(i){let e,t,n,o=i[2].default,r=Ee(o,i,i[1],null),l=[{xmlns:"http://www.w3.org/2000/svg"},{width:"18"},{height:"17"},{fill:"none"},{"aria-hidden":"true"},{"data-testid":"traffic-saving-icon"},{role:"img"},i[0]],a={};for(let s=0;s<l.length;s+=1)a=oe(a,l[s]);return{c(){e=N("svg"),r&&r.c(),t=N("path"),f(t,"fill","#fff"),f(t,"fill-rule","evenodd"),f(t,"d","M.1 6.5c0-2.24 0-3.36.436-4.216A4 4 0 0 1 2.284.536C3.139.1 4.259.1 6.5.1h5c2.24 0 3.36 0 4.216.436a4 4 0 0 1 1.748 1.748c.436.856.436 1.976.436 4.216s0 3.36-.436 4.216a4 4 0 0 1-1.748 1.748c-.836.426-1.925.436-4.064.436l.55 2.2H14.1a.9.9 0 0 1 0 1.8H3.9a.9.9 0 1 1 0-1.8h1.897l.55-2.2c-2.139 0-3.227-.01-4.063-.436a4 4 0 0 1-1.748-1.748C.1 9.86.1 8.74.1 6.5m11.4-4.6h-5c-1.15 0-1.904.002-2.481.049-.556.045-.786.124-.918.19a2.2 2.2 0 0 0-.962.962c-.067.132-.145.363-.19.918-.048.577-.05 1.331-.05 2.481s.002 1.904.05 2.48c.045.556.123.787.19.919a2.2 2.2 0 0 0 .962.961c.132.068.362.146.918.192.577.047 1.33.048 2.48.048h5c1.15 0 1.904-.001 2.481-.048.556-.046.787-.124.918-.192a2.2 2.2 0 0 0 .962-.961c.067-.132.146-.363.191-.918.047-.577.049-1.331.049-2.48s-.002-1.905-.049-2.482c-.045-.555-.124-.786-.191-.918a2.2 2.2 0 0 0-.962-.961c-.131-.067-.362-.146-.918-.191-.577-.048-1.33-.049-2.48-.049m-3.298 11-.55 2.2h2.695l-.55-2.2z"),f(t,"clip-rule","evenodd"),ge(e,a)},m(s,u){C(s,e,u),r&&r.m(e,null),p(e,t),n=!0},p(s,[u]){r&&r.p&&(!n||u&2)&&Ve(r,o,s,s[1],n?Me(o,s[1],u,null):Ae(s[1]),null),ge(e,a=Le(l,[{xmlns:"http://www.w3.org/2000/svg"},{width:"18"},{height:"17"},{fill:"none"},{"aria-hidden":"true"},{"data-testid":"traffic-saving-icon"},{role:"img"},u&1&&s[0]]))},i(s){n||(d(r,s),n=!0)},o(s){_(r,s),n=!1},d(s){s&&k(e),r&&r.d(s)}}}function ug(i,e,t){let{$$slots:n={},$$scope:o}=e;return i.$$set=r=>{t(0,e=oe(oe({},e),he(r))),"$$scope"in r&&t(1,o=r.$$scope)},e=he(e),[e,o,n]}var Pa=class extends j{constructor(e){super(),W(this,e,ug,ag,U,{})}},G1=Pa;function fg(i){let e,t,n,o,r,l=i[2].default,a=Ee(l,i,i[1],null),s=[{xmlns:"http://www.w3.org/2000/svg"},{width:"24"},{height:"24"},{"aria-hidden":"true"},{"data-testid":"play-speed-icon"},{role:"img"},i[0]],u={};for(let c=0;c<s.length;c+=1)u=oe(u,s[c]);return{c(){e=N("svg"),a&&a.c(),t=N("g"),n=N("path"),o=N("path"),f(n,"d","M0 0h24v24H0z"),f(o,"fill","#fff"),f(o,"fill-rule","nonzero"),f(o,"d","M11 4.07V2.05c-2.01.2-3.84 1-5.32 2.21L7.1 5.69A7.94 7.94 0 0 1 11 4.07M5.69 7.1 4.26 5.68A9.95 9.95 0 0 0 2.05 11h2.02c.18-1.46.76-2.79 1.62-3.9M2.05 13c.2 2.01 1 3.84 2.21 5.32l1.43-1.43A7.87 7.87 0 0 1 4.07 13zM11 21.95v-2.02a7.94 7.94 0 0 1-3.9-1.62l-1.42 1.43A10 10 0 0 0 11 21.95M22 12c0 5.16-3.92 9.42-8.95 9.95v-2.02C16.97 19.41 20 16.05 20 12s-3.03-7.41-6.95-7.93V2.05C18.08 2.58 22 6.84 22 12M10.688 8.576l4.746 2.736a.792.792 0 0 1 0 1.372l-4.746 2.737a.792.792 0 0 1-1.188-.686V9.262a.792.792 0 0 1 1.188-.686"),f(t,"fill","none"),f(t,"fill-rule","evenodd"),ge(e,u)},m(c,m){C(c,e,m),a&&a.m(e,null),p(e,t),p(t,n),p(t,o),r=!0},p(c,[m]){a&&a.p&&(!r||m&2)&&Ve(a,l,c,c[1],r?Me(l,c[1],m,null):Ae(c[1]),null),ge(e,u=Le(s,[{xmlns:"http://www.w3.org/2000/svg"},{width:"24"},{height:"24"},{"aria-hidden":"true"},{"data-testid":"play-speed-icon"},{role:"img"},m&1&&c[0]]))},i(c){r||(d(a,c),r=!0)},o(c){_(a,c),r=!1},d(c){c&&k(e),a&&a.d(c)}}}function cg(i,e,t){let{$$slots:n={},$$scope:o}=e;return i.$$set=r=>{t(0,e=oe(oe({},e),he(r))),"$$scope"in r&&t(1,o=r.$$scope)},e=he(e),[e,o,n]}var Ta=class extends j{constructor(e){super(),W(this,e,cg,fg,U,{})}},Q1=Ta;function dg(i){let e,t,n,o=i[2].default,r=Ee(o,i,i[1],null),l=[{xmlns:"http://www.w3.org/2000/svg"},{width:"12"},{height:"7"},{fill:"none"},{"aria-hidden":"true"},{role:"img"},i[0]],a={};for(let s=0;s<l.length;s+=1)a=oe(a,l[s]);return{c(){e=N("svg"),r&&r.c(),t=N("path"),f(t,"fill","#fff"),f(t,"fill-opacity",".72"),f(t,"fill-rule","evenodd"),f(t,"d","M11.736 6.736a.9.9 0 0 1-1.272 0L6 2.273 1.536 6.736A.9.9 0 1 1 .264 5.464l5.1-5.1a.9.9 0 0 1 1.272 0l5.1 5.1a.9.9 0 0 1 0 1.272"),f(t,"clip-rule","evenodd"),ge(e,a)},m(s,u){C(s,e,u),r&&r.m(e,null),p(e,t),n=!0},p(s,[u]){r&&r.p&&(!n||u&2)&&Ve(r,o,s,s[1],n?Me(o,s[1],u,null):Ae(s[1]),null),ge(e,a=Le(l,[{xmlns:"http://www.w3.org/2000/svg"},{width:"12"},{height:"7"},{fill:"none"},{"aria-hidden":"true"},{role:"img"},u&1&&s[0]]))},i(s){n||(d(r,s),n=!0)},o(s){_(r,s),n=!1},d(s){s&&k(e),r&&r.d(s)}}}function mg(i,e,t){let{$$slots:n={},$$scope:o}=e;return i.$$set=r=>{t(0,e=oe(oe({},e),he(r))),"$$scope"in r&&t(1,o=r.$$scope)},e=he(e),[e,o,n]}var Ia=class extends j{constructor(e){super(),W(this,e,mg,dg,U,{})}},Y1=Ia;function pg(i){let e,t,n,o=i[2].default,r=Ee(o,i,i[1],null),l=[{xmlns:"http://www.w3.org/2000/svg"},{width:"12"},{height:"16"},{fill:"none"},{"aria-hidden":"true"},{role:"img"},i[0]],a={};for(let s=0;s<l.length;s+=1)a=oe(a,l[s]);return{c(){e=N("svg"),r&&r.c(),t=N("path"),f(t,"fill","#fff"),f(t,"d","m5.773 8 3.363 3.364a.9.9 0 1 1-1.272 1.272l-4-4a.9.9 0 0 1 0-1.272l4-4a.9.9 0 0 1 1.272 1.272z"),ge(e,a)},m(s,u){C(s,e,u),r&&r.m(e,null),p(e,t),n=!0},p(s,[u]){r&&r.p&&(!n||u&2)&&Ve(r,o,s,s[1],n?Me(o,s[1],u,null):Ae(s[1]),null),ge(e,a=Le(l,[{xmlns:"http://www.w3.org/2000/svg"},{width:"12"},{height:"16"},{fill:"none"},{"aria-hidden":"true"},{role:"img"},u&1&&s[0]]))},i(s){n||(d(r,s),n=!0)},o(s){_(r,s),n=!1},d(s){s&&k(e),r&&r.d(s)}}}function _g(i,e,t){let{$$slots:n={},$$scope:o}=e;return i.$$set=r=>{t(0,e=oe(oe({},e),he(r))),"$$scope"in r&&t(1,o=r.$$scope)},e=he(e),[e,o,n]}var Ea=class extends j{constructor(e){super(),W(this,e,_g,pg,U,{})}},Z1=Ea;function hg(i){let e,t;return e=new Z1({props:{style:i[2],"data-testid":i[0]?"chevron-icon--right":"chevron-icon--left"}}),{c(){D(e.$$.fragment)},m(n,o){B(e,n,o),t=!0},p(n,o){let r={};o&4&&(r.style=n[2]),o&1&&(r["data-testid"]=n[0]?"chevron-icon--right":"chevron-icon--left"),e.$set(r)},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){_(e.$$.fragment,n),t=!1},d(n){R(e,n)}}}function gg(i){let e,t;return e=new Y1({props:{style:i[2],"data-testid":i[0]?"chevron-icon--down":"chevron-icon--up"}}),{c(){D(e.$$.fragment)},m(n,o){B(e,n,o),t=!0},p(n,o){let r={};o&4&&(r.style=n[2]),o&1&&(r["data-testid"]=n[0]?"chevron-icon--down":"chevron-icon--up"),e.$set(r)},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){_(e.$$.fragment,n),t=!1},d(n){R(e,n)}}}function bg(i){let e,t,n,o,r=[gg,hg],l=[];function a(s,u){return s[1]?0:1}return e=a(i,-1),t=l[e]=r[e](i),{c(){t.c(),n=rt()},m(s,u){l[e].m(s,u),C(s,n,u),o=!0},p(s,[u]){let c=e;e=a(s,u),e===c?l[e].p(s,u):(fe(),_(l[c],1,1,()=>{l[c]=null}),ce(),t=l[e],t?t.p(s,u):(t=l[e]=r[e](s),t.c()),d(t,1),t.m(n.parentNode,n))},i(s){o||(d(t),o=!0)},o(s){_(t),o=!1},d(s){s&&k(n),l[e].d(s)}}}function vg(i,e,t){let n,{direction:o="left"}=e,r,l;return i.$$set=a=>{"direction"in a&&t(3,o=a.direction)},i.$$.update=()=>{if(i.$$.dirty&8)e:t(1,r=["up","down"].includes(o)),t(0,l=["right","down"].includes(o));if(i.$$.dirty&1)e:t(2,n=l?"transform: rotate(180deg);":void 0)},[l,r,n,o]}var Ma=class extends j{constructor(e){super(),W(this,e,vg,bg,U,{direction:3})}},$n=Ma;function yg(i){let e,t,n,o=i[2].default,r=Ee(o,i,i[1],null),l=[{xmlns:"http://www.w3.org/2000/svg"},{width:"24"},{height:"24"},{fill:"none"},{"aria-hidden":"true"},{"data-testid":"report-icon"},{role:"img"},i[0]],a={};for(let s=0;s<l.length;s+=1)a=oe(a,l[s]);return{c(){e=N("svg"),r&&r.c(),t=N("path"),f(t,"fill","#fff"),f(t,"fill-rule","evenodd"),f(t,"d","M8.863 2.1h6.274c.674-.002 1.2.211 1.683.697l4.383 4.383c.478.476.699.998.697 1.683v6.274c.002.685-.22 1.207-.697 1.683l-4.383 4.383c-.476.478-.998.699-1.683.697H8.863c-.685.002-1.207-.22-1.683-.697L2.797 16.82c-.478-.476-.699-.998-.697-1.683V8.863c-.002-.685.22-1.207.697-1.683L7.18 2.797c.484-.486 1.009-.699 1.683-.697m-.445 2.005L4.105 8.418c-.18.18-.205.242-.205.495v6.174c0 .25.025.316.205.495l4.313 4.313c.179.179.24.205.495.205h6.174c.253 0 .316-.026.495-.205l4.313-4.313c.18-.18.205-.245.205-.495V8.913c0-.254-.026-.316-.205-.495l-4.313-4.313c-.18-.18-.242-.205-.495-.205H8.913c-.254 0-.319.029-.495.205M13 16a1 1 0 1 1-2 0 1 1 0 0 1 2 0m-.1-8.1a.9.9 0 0 0-1.8 0v5.2a.9.9 0 1 0 1.8 0z"),f(t,"clip-rule","evenodd"),ge(e,a)},m(s,u){C(s,e,u),r&&r.m(e,null),p(e,t),n=!0},p(s,[u]){r&&r.p&&(!n||u&2)&&Ve(r,o,s,s[1],n?Me(o,s[1],u,null):Ae(s[1]),null),ge(e,a=Le(l,[{xmlns:"http://www.w3.org/2000/svg"},{width:"24"},{height:"24"},{fill:"none"},{"aria-hidden":"true"},{"data-testid":"report-icon"},{role:"img"},u&1&&s[0]]))},i(s){n||(d(r,s),n=!0)},o(s){_(r,s),n=!1},d(s){s&&k(e),r&&r.d(s)}}}function wg(i,e,t){let{$$slots:n={},$$scope:o}=e;return i.$$set=r=>{t(0,e=oe(oe({},e),he(r))),"$$scope"in r&&t(1,o=r.$$scope)},e=he(e),[e,o,n]}var Va=class extends j{constructor(e){super(),W(this,e,wg,yg,U,{})}},X1=Va;function kg(i){let e,t,n,o=i[2].default,r=Ee(o,i,i[1],null),l=[{xmlns:"http://www.w3.org/2000/svg"},{width:"16"},{height:"16"},{"aria-hidden":"true"},{"data-testid":"check-mark-icon"},{role:"img"},i[0]],a={};for(let s=0;s<l.length;s+=1)a=oe(a,l[s]);return{c(){e=N("svg"),r&&r.c(),t=N("path"),f(t,"fill","#fff"),f(t,"d","M6 10.2 3.5 7.7a.99.99 0 0 0-1.4 1.4l3.2 3.2a1 1 0 0 0 1.4 0l7.6-7.6a.99.99 0 0 0-1.4-1.4z"),ge(e,a)},m(s,u){C(s,e,u),r&&r.m(e,null),p(e,t),n=!0},p(s,[u]){r&&r.p&&(!n||u&2)&&Ve(r,o,s,s[1],n?Me(o,s[1],u,null):Ae(s[1]),null),ge(e,a=Le(l,[{xmlns:"http://www.w3.org/2000/svg"},{width:"16"},{height:"16"},{"aria-hidden":"true"},{"data-testid":"check-mark-icon"},{role:"img"},u&1&&s[0]]))},i(s){n||(d(r,s),n=!0)},o(s){_(r,s),n=!1},d(s){s&&k(e),r&&r.d(s)}}}function Cg(i,e,t){let{$$slots:n={},$$scope:o}=e;return i.$$set=r=>{t(0,e=oe(oe({},e),he(r))),"$$scope"in r&&t(1,o=r.$$scope)},e=he(e),[e,o,n]}var Aa=class extends j{constructor(e){super(),W(this,e,Cg,kg,U,{})}},fl=Aa;function Sg(i){let e,t,n,o=i[2].default,r=Ee(o,i,i[1],null),l=[{xmlns:"http://www.w3.org/2000/svg"},{width:"24"},{height:"24"},{fill:"none"},{"aria-hidden":"true"},{"data-testid":"copy-icon"},{role:"img"},i[0]],a={};for(let s=0;s<l.length;s+=1)a=oe(a,l[s]);return{c(){e=N("svg"),r&&r.c(),t=N("path"),f(t,"fill","#fff"),f(t,"fill-rule","evenodd"),f(t,"d","M4 12.3V12c0-1.47.005-2.547.075-3.403.074-.904.216-1.482.454-1.949a4.85 4.85 0 0 1 2.12-2.12c.466-.237 1.044-.379 1.948-.453C9.51 4.001 10.675 4 12.3 4h4.512a2 2 0 0 0-.174-.49 2.4 2.4 0 0 0-1.048-1.048 2.4 2.4 0 0 0-.931-.239 14 14 0 0 0-1.026-.023H12.26c-1.576 0-2.814 0-3.81.081-1.014.083-1.856.255-2.62.644A6.65 6.65 0 0 0 2.926 5.83c-.389.763-.56 1.605-.644 2.62-.081.995-.081 2.233-.081 3.809v1.373c0 .392 0 .738.023 1.025.025.306.081.623.239.931a2.4 2.4 0 0 0 1.048 1.05c.162.082.326.136.49.173V12.3zM10.08 6h-.035c-.52 0-.964 0-1.329.03-.383.03-.755.097-1.112.276a2.9 2.9 0 0 0-1.298 1.298c-.179.357-.246.73-.277 1.112C6 9.081 6 9.524 6 10.046v7.909c0 .52 0 .964.03 1.329.03.382.097.755.276 1.112a2.9 2.9 0 0 0 1.298 1.298c.357.179.73.246 1.112.277.365.029.808.029 1.329.029h6.91c.52 0 .964 0 1.329-.03.382-.03.755-.097 1.112-.276a2.9 2.9 0 0 0 1.298-1.298c.179-.357.246-.73.277-1.112.029-.365.029-.808.029-1.33v-7.909c0-.52 0-.964-.03-1.329-.03-.382-.097-.755-.276-1.112a2.9 2.9 0 0 0-1.298-1.298c-.357-.179-.73-.246-1.112-.277C17.919 6 17.476 6 16.954 6zM8.408 7.916c.065-.032.179-.07.452-.093a18 18 0 0 1 1.22-.023h6.84c.565 0 .936 0 1.22.023.273.022.387.06.452.093a1.1 1.1 0 0 1 .492.492c.032.065.07.179.093.452.022.284.023.655.023 1.22v7.84c0 .565 0 .936-.023 1.22-.023.273-.06.387-.093.452a1.1 1.1 0 0 1-.492.492c-.065.032-.18.07-.452.093a18 18 0 0 1-1.22.023h-6.84c-.565 0-.936 0-1.22-.023-.273-.023-.387-.06-.452-.093a1.1 1.1 0 0 1-.492-.492c-.032-.065-.07-.18-.093-.452a17 17 0 0 1-.023-1.22v-7.84c0-.565 0-.936.023-1.22.022-.273.06-.387.093-.452a1.1 1.1 0 0 1 .492-.492"),f(t,"clip-rule","evenodd"),ge(e,a)},m(s,u){C(s,e,u),r&&r.m(e,null),p(e,t),n=!0},p(s,[u]){r&&r.p&&(!n||u&2)&&Ve(r,o,s,s[1],n?Me(o,s[1],u,null):Ae(s[1]),null),ge(e,a=Le(l,[{xmlns:"http://www.w3.org/2000/svg"},{width:"24"},{height:"24"},{fill:"none"},{"aria-hidden":"true"},{"data-testid":"copy-icon"},{role:"img"},u&1&&s[0]]))},i(s){n||(d(r,s),n=!0)},o(s){_(r,s),n=!1},d(s){s&&k(e),r&&r.d(s)}}}function Pg(i,e,t){let{$$slots:n={},$$scope:o}=e;return i.$$set=r=>{t(0,e=oe(oe({},e),he(r))),"$$scope"in r&&t(1,o=r.$$scope)},e=he(e),[e,o,n]}var La=class extends j{constructor(e){super(),W(this,e,Pg,Sg,U,{})}},J1=La;function Tg(i){let e,t,n,o=i[2].default,r=Ee(o,i,i[1],null),l=[{xmlns:"http://www.w3.org/2000/svg"},{width:"24"},{height:"24"},{fill:"none"},{"aria-hidden":"true"},{"data-testid":"info-icon"},{role:"img"},i[0]],a={};for(let s=0;s<l.length;s+=1)a=oe(a,l[s]);return{c(){e=N("svg"),r&&r.c(),t=N("path"),f(t,"fill","#fff"),f(t,"d","M12 20.105a8.105 8.105 0 1 0 0-16.21 8.105 8.105 0 0 0 0 16.21M12 22C6.477 22 2 17.523 2 12S6.477 2 12 2s10 4.477 10 10-4.477 10-10 10m0-12.372a1.316 1.316 0 1 1 0-2.632 1.316 1.316 0 0 1 0 2.632m-.947 2.822c0-.541.424-.98.947-.98s.947.439.947.98v3.83c0 .54-.424.98-.947.98s-.947-.44-.947-.98z"),ge(e,a)},m(s,u){C(s,e,u),r&&r.m(e,null),p(e,t),n=!0},p(s,[u]){r&&r.p&&(!n||u&2)&&Ve(r,o,s,s[1],n?Me(o,s[1],u,null):Ae(s[1]),null),ge(e,a=Le(l,[{xmlns:"http://www.w3.org/2000/svg"},{width:"24"},{height:"24"},{fill:"none"},{"aria-hidden":"true"},{"data-testid":"info-icon"},{role:"img"},u&1&&s[0]]))},i(s){n||(d(r,s),n=!0)},o(s){_(r,s),n=!1},d(s){s&&k(e),r&&r.d(s)}}}function Ig(i,e,t){let{$$slots:n={},$$scope:o}=e;return i.$$set=r=>{t(0,e=oe(oe({},e),he(r))),"$$scope"in r&&t(1,o=r.$$scope)},e=he(e),[e,o,n]}var Ba=class extends j{constructor(e){super(),W(this,e,Ig,Tg,U,{})}},x1=Ba;function Eg(i){Se(i,"svelte-8jolw5","ul.svelte-8jolw5.svelte-8jolw5{margin:0;padding:0}.menu.svelte-8jolw5.svelte-8jolw5{background-color:rgba(17, 17, 17, 0.8);border-radius:8px;line-height:40px;transition:opacity 0.2s, visibility 0.2s}.container-mobile.svelte-8jolw5.svelte-8jolw5{width:100%}.menu-desktop.svelte-8jolw5.svelte-8jolw5{position:absolute;right:0;bottom:0}.menu-mobile.svelte-8jolw5.svelte-8jolw5{width:100%;background:var(--mobile-settings-bg);font-size:15px;line-height:50px}.menu-mobile.hidden.svelte-8jolw5.svelte-8jolw5{display:none}.menu-subList.svelte-8jolw5.svelte-8jolw5{min-width:134px;padding-bottom:0}.menu-subList-subtitles.svelte-8jolw5.svelte-8jolw5{min-width:164px}.menu-subList-traffic-saving.svelte-8jolw5.svelte-8jolw5{min-width:286px}.item.svelte-8jolw5.svelte-8jolw5{align-items:center;color:var(--white);cursor:pointer;display:flex;justify-content:flex-end;padding:0 24px 0 18px;white-space:nowrap;position:relative}.item-mobile.svelte-8jolw5.svelte-8jolw5{padding:0 14px}.item-quality.item-mobile.svelte-8jolw5.svelte-8jolw5,.item-traffic-saving.item-mobile.svelte-8jolw5.svelte-8jolw5,.item-helper-text.item-mobile.svelte-8jolw5.svelte-8jolw5{flex-direction:row-reverse}.item-helper-text.svelte-8jolw5.svelte-8jolw5{cursor:auto;pointer-events:none;white-space:normal;padding:7px 24px 7px 18px}.item-helper-text.svelte-8jolw5 span.svelte-8jolw5{color:rgba(255, 255, 255, 0.48);line-height:18px;text-align:end}.item-helper-text.item-mobile.svelte-8jolw5.svelte-8jolw5{padding:7px 14px}.item-helper-text.item-mobile.svelte-8jolw5 span.svelte-8jolw5{text-align:start}.quality-title-mobile.svelte-8jolw5.svelte-8jolw5{flex-grow:1}.item.svelte-8jolw5.svelte-8jolw5:hover{background-color:rgba(255, 255, 255, 0.08)}.item.svelte-8jolw5.svelte-8jolw5:first-child{border-top-left-radius:8px;border-top-right-radius:8px}.item.svelte-8jolw5.svelte-8jolw5:last-child{border-bottom-left-radius:8px;border-bottom-right-radius:8px}.item-mobile.svelte-8jolw5.svelte-8jolw5:hover{background:var(--mobile-settings-bg)}.menu-subList.svelte-8jolw5 .item.svelte-8jolw5{color:rgba(255, 255, 255, 0.9)}.menu-subList.svelte-8jolw5 .item.svelte-8jolw5:last-child{margin-bottom:4px}.menu-icon-wrapper.svelte-8jolw5.svelte-8jolw5{width:24px;height:24px;display:flex;align-items:center;justify-content:center;margin-right:16px}.menu-title.svelte-8jolw5.svelte-8jolw5{flex-grow:1;margin-right:24px;overflow:hidden;text-overflow:ellipsis}.menu-value.svelte-8jolw5.svelte-8jolw5{position:relative;opacity:0.7}.menu-valueIcon.svelte-8jolw5.svelte-8jolw5{position:absolute;top:-10px;right:-18px;width:15px}.menu-valueIcon-list.svelte-8jolw5.svelte-8jolw5{position:absolute;top:-7px;width:15px;right:6px}.menu-valueIcon.svelte-8jolw5 svg,.menu-valueIcon-list.svelte-8jolw5 svg{color:var(--blue-light)}.menu-divider.svelte-8jolw5.svelte-8jolw5{background-color:rgba(255, 255, 255, 0.3);height:1px;margin-bottom:4px}.menu-header.svelte-8jolw5.svelte-8jolw5{color:var(--white);cursor:pointer;justify-content:space-between;display:flex}.itemIcon.svelte-8jolw5.svelte-8jolw5{margin-right:auto;padding-right:12px;opacity:0.9}.items.svelte-8jolw5.svelte-8jolw5::-webkit-scrollbar{width:8px}.items.svelte-8jolw5.svelte-8jolw5::-webkit-scrollbar-track{box-shadow:none;background-color:#3a3a3a;border-radius:4px}.items.svelte-8jolw5.svelte-8jolw5::-webkit-scrollbar-thumb{min-height:40px;border-radius:5px;background-color:#666;border:1px solid transparent;background-clip:padding-box}.items.svelte-8jolw5.svelte-8jolw5::-webkit-scrollbar-thumb:hover{background-color:#777}.items-mobile.svelte-8jolw5.svelte-8jolw5{overflow-y:auto;max-height:160px;text-align:left}.close.svelte-8jolw5.svelte-8jolw5{position:relative;width:12px;height:12px;padding:12px;margin-right:-12px}.close.svelte-8jolw5.svelte-8jolw5:before,.close.svelte-8jolw5.svelte-8jolw5:after{position:absolute;left:18px;content:' ';height:12px;width:2px;background-color:var(--white)}.close.svelte-8jolw5.svelte-8jolw5:before{transform:rotate(45deg)}.close.svelte-8jolw5.svelte-8jolw5:after{transform:rotate(-45deg)}")}function $1(i,e,t){let n=i.slice();return n[142]=e[t],n}function ed(i,e,t){let n=i.slice();return n[145]=e[t],n}function td(i,e,t){let n=i.slice();return n[148]=e[t],n}function id(i){let e,t,n,o,r,l,a,s,u,c,m,h,y=i[34]&&nd(i),b=i[25]&&od(i),S=i[24]&&rd(i),w=i[23]&&sd(i),P=i[22]&&ad(i),v=i[21]&&ud(i),g=i[34]&&fd(i);return{c(){e=T("div"),y&&y.c(),t=O(),n=T("ul"),b&&b.c(),o=O(),S&&S.c(),r=O(),w&&w.c(),l=O(),P&&P.c(),a=O(),v&&v.c(),s=O(),g&&g.c(),f(n,"class","items svelte-8jolw5"),f(n,"role","menu"),f(n,"style",u=i[73]()),z(n,"items-mobile",i[34]),f(e,"class","menu svelte-8jolw5"),z(e,"menu-desktop",!i[34]),z(e,"menu-mobile",i[34]),z(e,"hidden",!i[11])},m(I,A){C(I,e,A),y&&y.m(e,null),p(e,t),p(e,n),b&&b.m(n,null),p(n,o),S&&S.m(n,null),p(n,r),w&&w.m(n,null),p(n,l),P&&P.m(n,null),p(n,a),v&&v.m(n,null),p(n,s),g&&g.m(n,null),i[112](n),c=!0,m||(h=[de(e,"keydown",i[78]),de(e,"mouseenter",i[71]),de(e,"mouseleave",i[72])],m=!0)},p(I,A){I[34]?y?y.p(I,A):(y=nd(I),y.c(),y.m(e,t)):y&&(y.d(1),y=null),I[25]?b?(b.p(I,A),A[0]&33554432&&d(b,1)):(b=od(I),b.c(),d(b,1),b.m(n,o)):b&&(fe(),_(b,1,1,()=>{b=null}),ce()),I[24]?S?(S.p(I,A),A[0]&16777216&&d(S,1)):(S=rd(I),S.c(),d(S,1),S.m(n,r)):S&&(fe(),_(S,1,1,()=>{S=null}),ce()),I[23]?w?(w.p(I,A),A[0]&8388608&&d(w,1)):(w=sd(I),w.c(),d(w,1),w.m(n,l)):w&&(fe(),_(w,1,1,()=>{w=null}),ce()),I[22]?P?(P.p(I,A),A[0]&4194304&&d(P,1)):(P=ad(I),P.c(),d(P,1),P.m(n,a)):P&&(fe(),_(P,1,1,()=>{P=null}),ce()),I[21]?v?(v.p(I,A),A[0]&2097152&&d(v,1)):(v=ud(I),v.c(),d(v,1),v.m(n,s)):v&&(fe(),_(v,1,1,()=>{v=null}),ce()),I[34]?g?(g.p(I,A),A[1]&8&&d(g,1)):(g=fd(I),g.c(),d(g,1),g.m(n,null)):g&&(fe(),_(g,1,1,()=>{g=null}),ce()),(!c||A[1]&8)&&z(n,"items-mobile",I[34]),(!c||A[1]&8)&&z(e,"menu-desktop",!I[34]),(!c||A[1]&8)&&z(e,"menu-mobile",I[34]),(!c||A[0]&2048)&&z(e,"hidden",!I[11])},i(I){c||(d(b),d(S),d(w),d(P),d(v),d(g),c=!0)},o(I){_(b),_(S),_(w),_(P),_(v),_(g),c=!1},d(I){I&&k(e),y&&y.d(),b&&b.d(),S&&S.d(),w&&w.d(),P&&P.d(),v&&v.d(),g&&g.d(),i[112](null),m=!1,ot(h)}}}function nd(i){let e,t,n,o,r,l,a,s;return{c(){e=T("div"),t=T("div"),t.textContent=`${Y("submenu_settings")}`,n=O(),o=T("div"),r=O(),l=T("div"),f(o,"class","close svelte-8jolw5"),f(e,"class","item menu-header svelte-8jolw5"),z(e,"item-mobile",i[34]),f(l,"class","menu-divider svelte-8jolw5")},m(u,c){C(u,e,c),p(e,t),p(e,n),p(e,o),C(u,r,c),C(u,l,c),a||(s=de(o,"click",at(i[57])),a=!0)},p(u,c){c[1]&8&&z(e,"item-mobile",u[34])},d(u){u&&(k(e),k(r),k(l)),a=!1,s()}}}function od(i){let e,t,n,o,r,l,a,s,u,c,m,h,y;n=new Ir({});let b=i[33]&&!i[34]&&ld(i);return{c(){e=T("li"),t=T("div"),D(n.$$.fragment),o=O(),r=T("div"),r.textContent=`${Y("menu_quality")}`,l=O(),a=T("div"),s=De(i[16]),u=O(),b&&b.c(),f(t,"class","menu-icon-wrapper svelte-8jolw5"),f(r,"class","menu-title svelte-8jolw5"),f(a,"class","menu-value svelte-8jolw5"),f(e,"class","item svelte-8jolw5"),f(e,"role","menuitem"),f(e,"tabindex","0"),f(e,"aria-label",c=Y("aria_label_menu_quality",{actual:i[27]})),f(e,"aria-haspopup","true"),z(e,"item-mobile",i[34])},m(S,w){C(S,e,w),p(e,t),B(n,t,null),p(e,o),p(e,r),p(e,l),p(e,a),p(a,s),p(a,u),b&&b.m(a,null),i[108](e),m=!0,h||(y=[de(e,"click",at(i[58])),de(e,"keydown",i[79])],h=!0)},p(S,w){(!m||w[0]&65536)&&Ye(s,S[16]),S[33]&&!S[34]?b?(b.p(S,w),w[1]&12&&d(b,1)):(b=ld(S),b.c(),d(b,1),b.m(a,null)):b&&(fe(),_(b,1,1,()=>{b=null}),ce()),(!m||w[0]&134217728&&c!==(c=Y("aria_label_menu_quality",{actual:S[27]})))&&f(e,"aria-label",c),(!m||w[1]&8)&&z(e,"item-mobile",S[34])},i(S){m||(d(n.$$.fragment,S),d(b),m=!0)},o(S){_(n.$$.fragment,S),_(b),m=!1},d(S){S&&k(e),R(n),b&&b.d(),i[108](null),h=!1,ot(y)}}}function ld(i){let e,t,n;var o=i[33];function r(l){return{}}return o&&(t=Pn(o,r(i))),{c(){e=T("div"),t&&D(t.$$.fragment),f(e,"class","menu-valueIcon svelte-8jolw5")},m(l,a){C(l,e,a),t&&B(t,e,null),n=!0},p(l,a){if(a[1]&4&&o!==(o=l[33])){if(t){fe();let s=t;_(s.$$.fragment,1,0,()=>{R(s,1)}),ce()}o?(t=Pn(o,r(l)),D(t.$$.fragment),d(t.$$.fragment,1),B(t,e,null)):t=null}},i(l){n||(t&&d(t.$$.fragment,l),n=!0)},o(l){t&&_(t.$$.fragment,l),n=!1},d(l){l&&k(e),t&&R(t)}}}function rd(i){let e,t,n,o,r,l,a,s,u,c,m,h,y;return n=new Q1({}),{c(){e=T("li"),t=T("div"),D(n.$$.fragment),o=O(),r=T("div"),r.textContent=`${Y("menu_playback_rate")}`,l=O(),a=T("div"),s=De(i[9]),u=De("x"),f(t,"class","menu-icon-wrapper svelte-8jolw5"),f(r,"class","menu-title svelte-8jolw5"),f(a,"class","menu-value svelte-8jolw5"),f(e,"class","item svelte-8jolw5"),f(e,"role","menuitem"),f(e,"tabindex","0"),f(e,"aria-label",c=Y("aria_label_menu_rate",{actual:i[28]})),f(e,"aria-haspopup","true"),z(e,"item-mobile",i[34])},m(b,S){C(b,e,S),p(e,t),B(n,t,null),p(e,o),p(e,r),p(e,l),p(e,a),p(a,s),p(a,u),i[109](e),m=!0,h||(y=[de(e,"click",at(Dt(i[62]))),de(e,"keydown",i[82])],h=!0)},p(b,S){(!m||S[0]&512)&&Ye(s,b[9]),(!m||S[0]&268435456&&c!==(c=Y("aria_label_menu_rate",{actual:b[28]})))&&f(e,"aria-label",c),(!m||S[1]&8)&&z(e,"item-mobile",b[34])},i(b){m||(d(n.$$.fragment,b),m=!0)},o(b){_(n.$$.fragment,b),m=!1},d(b){b&&k(e),R(n),i[109](null),h=!1,ot(y)}}}function sd(i){let e,t,n,o,r,l,a,s=i[35].displayValue+"",u,c,m,h,y;return n=new Er({}),{c(){e=T("li"),t=T("div"),D(n.$$.fragment),o=O(),r=T("div"),r.textContent=`${Y("subtitles_caption")}`,l=O(),a=T("div"),u=De(s),f(t,"class","menu-icon-wrapper svelte-8jolw5"),f(r,"class","menu-title svelte-8jolw5"),f(a,"class","menu-value svelte-8jolw5"),f(e,"class","item svelte-8jolw5"),f(e,"role","menuitem"),f(e,"tabindex","0"),f(e,"aria-label",c=Y("aria_label_menu_subtitle",{actual:i[35].displayValue})),f(e,"aria-haspopup","true"),z(e,"item-mobile",i[34])},m(b,S){C(b,e,S),p(e,t),B(n,t,null),p(e,o),p(e,r),p(e,l),p(e,a),p(a,u),i[110](e),m=!0,h||(y=[de(e,"click",at(i[64])),de(e,"keydown",i[85])],h=!0)},p(b,S){(!m||S[1]&16)&&s!==(s=b[35].displayValue+"")&&Ye(u,s),(!m||S[1]&16&&c!==(c=Y("aria_label_menu_subtitle",{actual:b[35].displayValue})))&&f(e,"aria-label",c),(!m||S[1]&8)&&z(e,"item-mobile",b[34])},i(b){m||(d(n.$$.fragment,b),m=!0)},o(b){_(n.$$.fragment,b),m=!1},d(b){b&&k(e),R(n),i[110](null),h=!1,ot(y)}}}function ad(i){let e,t,n,o,r,l,a,s,u,c,m,h;return n=new G1({}),{c(){e=T("li"),t=T("div"),D(n.$$.fragment),o=O(),r=T("div"),r.textContent=`${Y("menu_traffic_saving")}`,l=O(),a=T("div"),s=De(i[26]),f(t,"class","menu-icon-wrapper svelte-8jolw5"),f(r,"class","menu-title svelte-8jolw5"),f(a,"class","menu-value svelte-8jolw5"),f(e,"class","item svelte-8jolw5"),f(e,"role","menuitem"),f(e,"tabindex","0"),f(e,"aria-label",u=Y("aria_label_menu_traffic_saving",{actual:i[26]})),f(e,"aria-haspopup","true"),z(e,"item-mobile",i[34])},m(y,b){C(y,e,b),p(e,t),B(n,t,null),p(e,o),p(e,r),p(e,l),p(e,a),p(a,s),i[111](e),c=!0,m||(h=[de(e,"click",at(i[59])),de(e,"keydown",i[88])],m=!0)},p(y,b){(!c||b[0]&67108864)&&Ye(s,y[26]),(!c||b[0]&67108864&&u!==(u=Y("aria_label_menu_traffic_saving",{actual:y[26]})))&&f(e,"aria-label",u),(!c||b[1]&8)&&z(e,"item-mobile",y[34])},i(y){c||(d(n.$$.fragment,y),c=!0)},o(y){_(n.$$.fragment,y),c=!1},d(y){y&&k(e),R(n),i[111](null),m=!1,ot(h)}}}function ud(i){let e,t,n,o,r,l,a,s,u;return n=new W1({}),{c(){e=T("li"),t=T("div"),D(n.$$.fragment),o=O(),r=T("div"),r.textContent=`${Y("download_video_caption")}`,f(t,"class","menu-icon-wrapper svelte-8jolw5"),f(r,"class","menu-title svelte-8jolw5"),f(e,"class","item svelte-8jolw5"),f(e,"role","menuitem"),f(e,"tabindex","0"),f(e,"aria-label",l=Y("aria_label_menu_download")),z(e,"item-mobile",i[34])},m(c,m){C(c,e,m),p(e,t),B(n,t,null),p(e,o),p(e,r),a=!0,s||(u=[de(e,"click",at(i[67])),de(e,"keydown",i[91])],s=!0)},p(c,m){(!a||m[1]&8)&&z(e,"item-mobile",c[34])},i(c){a||(d(n.$$.fragment,c),a=!0)},o(c){_(n.$$.fragment,c),a=!1},d(c){c&&k(e),R(n),s=!1,ot(u)}}}function fd(i){let e,t,n,o,r,l,a,s,u,c,m,h,y,b,S,w,P,v=i[37].showSupport&&Mg(i);return o=new J1({}),m=new x1({}),{c(){v&&v.c(),e=O(),t=T("li"),n=T("div"),D(o.$$.fragment),r=O(),l=T("div"),l.textContent=`${Y("menu_copy_debug")}`,s=O(),u=T("li"),c=T("div"),D(m.$$.fragment),h=O(),y=T("div"),y.textContent=`${Y("menu_debug_overlay")}`,f(n,"class","menu-icon-wrapper svelte-8jolw5"),f(l,"class","menu-title svelte-8jolw5"),f(t,"class","item item-mobile svelte-8jolw5"),f(t,"role","menuitem"),f(t,"tabindex","0"),f(t,"aria-label",a=Y("menu_copy_debug")),f(c,"class","menu-icon-wrapper svelte-8jolw5"),f(y,"class","menu-title svelte-8jolw5"),f(u,"class","item item-mobile svelte-8jolw5"),f(u,"role","menuitem"),f(u,"tabindex","0"),f(u,"aria-label",b=i[36]?Y("aria_label_menu_debug_overlay_disable"):Y("aria_label_menu_debug_overlay_enable"))},m(g,I){v&&v.m(g,I),C(g,e,I),C(g,t,I),p(t,n),B(o,n,null),p(t,r),p(t,l),C(g,s,I),C(g,u,I),p(u,c),B(m,c,null),p(u,h),p(u,y),S=!0,w||(P=[de(t,"click",at(i[69])),de(t,"keydown",i[93]),de(u,"click",at(i[70])),de(u,"keydown",i[94])],w=!0)},p(g,I){g[37].showSupport&&v.p(g,I),(!S||I[1]&32&&b!==(b=g[36]?Y("aria_label_menu_debug_overlay_disable"):Y("aria_label_menu_debug_overlay_enable")))&&f(u,"aria-label",b)},i(g){S||(d(v),d(o.$$.fragment,g),d(m.$$.fragment,g),S=!0)},o(g){_(v),_(o.$$.fragment,g),_(m.$$.fragment,g),S=!1},d(g){g&&(k(e),k(t),k(s),k(u)),v&&v.d(g),R(o),R(m),w=!1,ot(P)}}}function Mg(i){let e,t,n,o,r,l,a,s,u;return n=new X1({}),{c(){e=T("li"),t=T("div"),D(n.$$.fragment),o=O(),r=T("div"),r.textContent=`${Y("menu_report")}`,f(t,"class","menu-icon-wrapper svelte-8jolw5"),f(r,"class","menu-title svelte-8jolw5"),f(e,"class","item item-mobile svelte-8jolw5"),f(e,"role","menuitem"),f(e,"tabindex","0"),f(e,"aria-label",l=`${Y("menu_report")}. ${Y("aria_label_new_tab_alert")}`)},m(c,m){C(c,e,m),p(e,t),B(n,t,null),p(e,o),p(e,r),a=!0,s||(u=[de(e,"click",at(i[68])),de(e,"keydown",i[92])],s=!0)},p:pe,i(c){a||(d(n.$$.fragment,c),a=!0)},o(c){_(n.$$.fragment,c),a=!1},d(c){c&&k(e),R(n),s=!1,ot(u)}}}function cd(i){let e,t,n,o,r,l,a,s,u,c,m,h,y,b;n=new $n({props:{direction:"left"}});let S=It(i[8]),w=[];for(let v=0;v<S.length;v+=1)w[v]=pd(td(i,S,v));let P=v=>_(w[v],1,1,()=>{w[v]=null});return{c(){var v;e=T("div"),t=T("div"),D(n.$$.fragment),o=O(),r=T("div"),r.textContent=`${Y("submenu_quality")}`,a=O(),s=T("div"),u=O(),c=T("ul");for(let g=0;g<w.length;g+=1)w[g].c();f(t,"class","item menu-header svelte-8jolw5"),f(t,"aria-label",l=Y("aria_label_submenu_back")),z(t,"item-mobile",i[34]),f(s,"class","menu-divider svelte-8jolw5"),f(c,"class","items svelte-8jolw5"),f(c,"role","menu"),f(c,"style",m=i[73]((v=i[17])==null?void 0:v.clientHeight,!0)),z(c,"items-mobile",i[34]),f(e,"class","menu menu-subList svelte-8jolw5"),z(e,"menu-desktop",!i[34]),z(e,"menu-mobile",i[34])},m(v,g){C(v,e,g),p(e,t),B(n,t,null),p(t,o),p(t,r),i[113](t),p(e,a),p(e,s),p(e,u),p(e,c);for(let I=0;I<w.length;I+=1)w[I]&&w[I].m(c,null);i[116](c),h=!0,y||(b=[de(t,"click",at(i[66])),de(c,"keydown",i[80])],y=!0)},p(v,g){var I;if((!h||g[1]&8)&&z(t,"item-mobile",v[34]),g[0]&256|g[1]&536870920|g[2]&524288){S=It(v[8]);let A;for(A=0;A<S.length;A+=1){let q=td(v,S,A);w[A]?(w[A].p(q,g),d(w[A],1)):(w[A]=pd(q),w[A].c(),d(w[A],1),w[A].m(c,null))}for(fe(),A=S.length;A<w.length;A+=1)P(A);ce()}(!h||g[0]&131072&&m!==(m=v[73]((I=v[17])==null?void 0:I.clientHeight,!0)))&&f(c,"style",m),(!h||g[1]&8)&&z(c,"items-mobile",v[34]),(!h||g[1]&8)&&z(e,"menu-desktop",!v[34]),(!h||g[1]&8)&&z(e,"menu-mobile",v[34])},i(v){if(!h){d(n.$$.fragment,v);for(let g=0;g<S.length;g+=1)d(w[g]);h=!0}},o(v){_(n.$$.fragment,v),w=w.filter(Boolean);for(let g=0;g<w.length;g+=1)_(w[g]);h=!1},d(v){v&&k(e),R(n),i[113](null),Gi(w,v),i[116](null),y=!1,ot(b)}}}function dd(i){let e,t,n;return t=new fl({}),{c(){e=T("div"),D(t.$$.fragment),f(e,"class","itemIcon svelte-8jolw5")},m(o,r){C(o,e,r),B(t,e,null),n=!0},i(o){n||(d(t.$$.fragment,o),n=!0)},o(o){_(t.$$.fragment,o),n=!1},d(o){o&&k(e),R(t)}}}function md(i){let e,t,n;var o=yo(i[148].value);function r(l){return{}}return o&&(t=Pn(o,r(i))),{c(){e=T("div"),t&&D(t.$$.fragment),f(e,"class","menu-valueIcon-list svelte-8jolw5")},m(l,a){C(l,e,a),t&&B(t,e,null),n=!0},p(l,a){if(a[0]&256&&o!==(o=yo(l[148].value))){if(t){fe();let s=t;_(s.$$.fragment,1,0,()=>{R(s,1)}),ce()}o?(t=Pn(o,r(l)),D(t.$$.fragment),d(t.$$.fragment,1),B(t,e,null)):t=null}},i(l){n||(t&&d(t.$$.fragment,l),n=!0)},o(l){t&&_(t.$$.fragment,l),n=!1},d(l){l&&k(e),t&&R(t)}}}function pd(i){let e,t,n,o=i[148].displayValue+"",r,l,a=!i[34]&&yo(i[148].value),s,u,c,m,h,y,b=i[148].selected&&dd(i),S=a&&md(i);function w(){return i[114](i[148])}function P(...v){return i[115](i[148],...v)}return{c(){e=T("li"),b&&b.c(),t=O(),n=T("div"),r=De(o),l=O(),S&&S.c(),s=O(),f(n,"class","svelte-8jolw5"),z(n,"quality-title-mobile",i[34]),f(e,"class","item item-quality svelte-8jolw5"),f(e,"data-value",u=i[148].value),f(e,"role","menuitem"),f(e,"tabindex","0"),f(e,"aria-label",c=i[148].displayValue),z(e,"item-mobile",i[34])},m(v,g){C(v,e,g),b&&b.m(e,null),p(e,t),p(e,n),p(n,r),p(e,l),S&&S.m(e,null),p(e,s),m=!0,h||(y=[de(e,"click",at(w)),de(e,"keydown",P)],h=!0)},p(v,g){i=v,i[148].selected?b?g[0]&256&&d(b,1):(b=dd(i),b.c(),d(b,1),b.m(e,t)):b&&(fe(),_(b,1,1,()=>{b=null}),ce()),(!m||g[0]&256)&&o!==(o=i[148].displayValue+"")&&Ye(r,o),(!m||g[1]&8)&&z(n,"quality-title-mobile",i[34]),g[0]&256|g[1]&8&&(a=!i[34]&&yo(i[148].value)),a?S?(S.p(i,g),g[0]&256|g[1]&8&&d(S,1)):(S=md(i),S.c(),d(S,1),S.m(e,s)):S&&(fe(),_(S,1,1,()=>{S=null}),ce()),(!m||g[0]&256&&u!==(u=i[148].value))&&f(e,"data-value",u),(!m||g[0]&256&&c!==(c=i[148].displayValue))&&f(e,"aria-label",c),(!m||g[1]&8)&&z(e,"item-mobile",i[34])},i(v){m||(d(b),d(S),m=!0)},o(v){_(b),_(S),m=!1},d(v){v&&k(e),b&&b.d(),S&&S.d(),h=!1,ot(y)}}}function _d(i){let e,t,n,o,r,l,a,s,u,c,m,h,y,b;n=new $n({props:{direction:"left"}});let S=It(i[7]),w=[];for(let v=0;v<S.length;v+=1)w[v]=gd(ed(i,S,v));let P=v=>_(w[v],1,1,()=>{w[v]=null});return{c(){var v;e=T("div"),t=T("div"),D(n.$$.fragment),o=O(),r=T("div"),r.textContent=`${Y("submenu_playback_rate")}`,a=O(),s=T("div"),u=O(),c=T("ul");for(let g=0;g<w.length;g+=1)w[g].c();f(t,"class","item menu-header svelte-8jolw5"),f(t,"aria-label",l=Y("aria_label_submenu_back")),z(t,"item-mobile",i[34]),f(s,"class","menu-divider svelte-8jolw5"),f(c,"class","items svelte-8jolw5"),f(c,"role","menu"),f(c,"style",m=i[73]((v=i[18])==null?void 0:v.clientHeight,!0)),z(c,"items-mobile",i[34]),f(e,"class","menu menu-subList svelte-8jolw5"),z(e,"menu-desktop",!i[34]),z(e,"menu-mobile",i[34])},m(v,g){C(v,e,g),p(e,t),B(n,t,null),p(t,o),p(t,r),i[117](t),p(e,a),p(e,s),p(e,u),p(e,c);for(let I=0;I<w.length;I+=1)w[I]&&w[I].m(c,null);i[120](c),h=!0,y||(b=[de(t,"click",at(i[66])),de(c,"keydown",i[83])],y=!0)},p(v,g){var I;if((!h||g[1]&8)&&z(t,"item-mobile",v[34]),g[0]&128|g[1]&8|g[2]&4194306){S=It(v[7]);let A;for(A=0;A<S.length;A+=1){let q=ed(v,S,A);w[A]?(w[A].p(q,g),d(w[A],1)):(w[A]=gd(q),w[A].c(),d(w[A],1),w[A].m(c,null))}for(fe(),A=S.length;A<w.length;A+=1)P(A);ce()}(!h||g[0]&262144&&m!==(m=v[73]((I=v[18])==null?void 0:I.clientHeight,!0)))&&f(c,"style",m),(!h||g[1]&8)&&z(c,"items-mobile",v[34]),(!h||g[1]&8)&&z(e,"menu-desktop",!v[34]),(!h||g[1]&8)&&z(e,"menu-mobile",v[34])},i(v){if(!h){d(n.$$.fragment,v);for(let g=0;g<S.length;g+=1)d(w[g]);h=!0}},o(v){_(n.$$.fragment,v),w=w.filter(Boolean);for(let g=0;g<w.length;g+=1)_(w[g]);h=!1},d(v){v&&k(e),R(n),i[117](null),Gi(w,v),i[120](null),y=!1,ot(b)}}}function hd(i){let e,t,n;return t=new fl({}),{c(){e=T("div"),D(t.$$.fragment),f(e,"class","itemIcon svelte-8jolw5")},m(o,r){C(o,e,r),B(t,e,null),n=!0},i(o){n||(d(t.$$.fragment,o),n=!0)},o(o){_(t.$$.fragment,o),n=!1},d(o){o&&k(e),R(t)}}}function gd(i){let e,t,n,o=i[145].displayValue+"",r,l,a,s,u,c,m,h=i[145].selected&&hd(i);function y(){return i[118](i[145])}function b(...S){return i[119](i[145],...S)}return{c(){e=T("li"),h&&h.c(),t=O(),n=T("div"),r=De(o),l=O(),f(n,"class","svelte-8jolw5"),z(n,"quality-title-mobile",i[34]),f(e,"class","item item-quality svelte-8jolw5"),f(e,"data-value",a=i[145].value),f(e,"role","menuitem"),f(e,"tabindex","0"),f(e,"aria-label",s=i[145].displayValue),z(e,"item-mobile",i[34])},m(S,w){C(S,e,w),h&&h.m(e,null),p(e,t),p(e,n),p(n,r),p(e,l),u=!0,c||(m=[de(e,"click",at(y)),de(e,"keydown",b)],c=!0)},p(S,w){i=S,i[145].selected?h?w[0]&128&&d(h,1):(h=hd(i),h.c(),d(h,1),h.m(e,t)):h&&(fe(),_(h,1,1,()=>{h=null}),ce()),(!u||w[0]&128)&&o!==(o=i[145].displayValue+"")&&Ye(r,o),(!u||w[1]&8)&&z(n,"quality-title-mobile",i[34]),(!u||w[0]&128&&a!==(a=i[145].value))&&f(e,"data-value",a),(!u||w[0]&128&&s!==(s=i[145].displayValue))&&f(e,"aria-label",s),(!u||w[1]&8)&&z(e,"item-mobile",i[34])},i(S){u||(d(h),u=!0)},o(S){_(h),u=!1},d(S){S&&k(e),h&&h.d(),c=!1,ot(m)}}}function bd(i){let e,t,n,o,r,l,a,s,u,c,m,h,y,b,S,w,P,v,g,I,A,q,K,re,ae,H,L,x,Q;n=new $n({props:{direction:"left"}});let J=!i[5]&&vd(i),E=i[5]&&yd(i);return{c(){var te;e=T("div"),t=T("div"),D(n.$$.fragment),o=O(),r=T("div"),r.textContent=`${Y("submenu_traffic_saving")}`,a=O(),s=T("div"),u=O(),c=T("div"),m=T("ul"),h=T("li"),J&&J.c(),y=O(),b=T("div"),b.textContent=`${Y("traffic_saving_disable")}`,w=O(),P=T("li"),E&&E.c(),v=O(),g=T("div"),g.textContent=`${Y("traffic_saving_enable")}`,A=O(),q=T("div"),K=O(),re=T("div"),ae=T("span"),ae.textContent=`${Y("traffic_saving_helper_text")}`,f(t,"class","item menu-header svelte-8jolw5"),f(t,"aria-label",l=Y("aria_label_submenu_back")),z(t,"item-mobile",i[34]),f(s,"class","menu-divider svelte-8jolw5"),f(b,"class","svelte-8jolw5"),z(b,"quality-title-mobile",i[34]),f(h,"class","item item-traffic-saving svelte-8jolw5"),f(h,"role","menuitem"),f(h,"tabindex","0"),f(h,"aria-label",S=Y("aria_label_submenu_traffic_saving_off")),z(h,"item-mobile",i[34]),f(g,"class","svelte-8jolw5"),z(g,"quality-title-mobile",i[34]),f(P,"class","item item-traffic-saving svelte-8jolw5"),f(P,"role","menuitem"),f(P,"tabindex","0"),f(P,"aria-label",I=`${Y("aria_label_submenu_traffic_saving_on")}. ${Y("traffic_saving_helper_text")}`),z(P,"item-mobile",i[34]),f(m,"class","items svelte-8jolw5"),f(m,"role","menu"),z(m,"items-mobile",i[34]),f(q,"class","menu-divider svelte-8jolw5"),f(ae,"class","svelte-8jolw5"),f(re,"class","item item-helper-text svelte-8jolw5"),z(re,"item-mobile",i[34]),f(c,"style",H=i[73]((te=i[19])==null?void 0:te.clientHeight,!0)),f(e,"class","menu menu-subList menu-subList-traffic-saving svelte-8jolw5"),z(e,"menu-desktop",!i[34]),z(e,"menu-mobile",i[34])},m(te,M){C(te,e,M),p(e,t),B(n,t,null),p(t,o),p(t,r),i[121](t),p(e,a),p(e,s),p(e,u),p(e,c),p(c,m),p(m,h),J&&J.m(h,null),p(h,y),p(h,b),p(m,w),p(m,P),E&&E.m(P,null),p(P,v),p(P,g),i[126](m),p(c,A),p(c,q),p(c,K),p(c,re),p(re,ae),L=!0,x||(Q=[de(t,"click",at(i[66])),de(h,"click",at(i[122])),de(h,"keydown",i[123]),de(P,"click",at(i[124])),de(P,"keydown",i[125]),de(m,"keydown",i[89])],x=!0)},p(te,M){var ee;(!L||M[1]&8)&&z(t,"item-mobile",te[34]),te[5]?J&&(fe(),_(J,1,1,()=>{J=null}),ce()):J?M[0]&32&&d(J,1):(J=vd(te),J.c(),d(J,1),J.m(h,y)),(!L||M[1]&8)&&z(b,"quality-title-mobile",te[34]),(!L||M[1]&8)&&z(h,"item-mobile",te[34]),te[5]?E?M[0]&32&&d(E,1):(E=yd(te),E.c(),d(E,1),E.m(P,v)):E&&(fe(),_(E,1,1,()=>{E=null}),ce()),(!L||M[1]&8)&&z(g,"quality-title-mobile",te[34]),(!L||M[1]&8)&&z(P,"item-mobile",te[34]),(!L||M[1]&8)&&z(m,"items-mobile",te[34]),(!L||M[1]&8)&&z(re,"item-mobile",te[34]),(!L||M[0]&524288&&H!==(H=te[73]((ee=te[19])==null?void 0:ee.clientHeight,!0)))&&f(c,"style",H),(!L||M[1]&8)&&z(e,"menu-desktop",!te[34]),(!L||M[1]&8)&&z(e,"menu-mobile",te[34])},i(te){L||(d(n.$$.fragment,te),d(J),d(E),L=!0)},o(te){_(n.$$.fragment,te),_(J),_(E),L=!1},d(te){te&&k(e),R(n),i[121](null),J&&J.d(),E&&E.d(),i[126](null),x=!1,ot(Q)}}}function vd(i){let e,t,n;return t=new fl({}),{c(){e=T("div"),D(t.$$.fragment),f(e,"class","itemIcon svelte-8jolw5")},m(o,r){C(o,e,r),B(t,e,null),n=!0},i(o){n||(d(t.$$.fragment,o),n=!0)},o(o){_(t.$$.fragment,o),n=!1},d(o){o&&k(e),R(t)}}}function yd(i){let e,t,n;return t=new fl({}),{c(){e=T("div"),D(t.$$.fragment),f(e,"class","itemIcon svelte-8jolw5")},m(o,r){C(o,e,r),B(t,e,null),n=!0},i(o){n||(d(t.$$.fragment,o),n=!0)},o(o){_(t.$$.fragment,o),n=!1},d(o){o&&k(e),R(t)}}}function wd(i){let e,t,n,o,r,l,a,s,u,c,m,h;n=new $n({props:{direction:"left"}});let y=It(i[6]),b=[];for(let w=0;w<y.length;w+=1)b[w]=Cd($1(i,y,w));let S=w=>_(b[w],1,1,()=>{b[w]=null});return{c(){var w;e=T("div"),t=T("div"),D(n.$$.fragment),o=O(),r=T("div"),r.textContent=`${Y("subtitles_caption")}`,a=O(),s=T("ul");for(let P=0;P<b.length;P+=1)b[P].c();f(t,"class","item menu-header svelte-8jolw5"),f(t,"aria-label",l=Y("aria_label_submenu_back")),z(t,"item-mobile",i[34]),f(s,"class","items svelte-8jolw5"),f(s,"role","menu"),f(s,"style",u=i[73]((w=i[20])==null?void 0:w.clientHeight,!0)),z(s,"items-mobile",i[34]),f(e,"class","menu menu-subList menu-subList-subtitles svelte-8jolw5"),z(e,"menu-desktop",!i[34]),z(e,"menu-mobile",i[34])},m(w,P){C(w,e,P),p(e,t),B(n,t,null),p(t,o),p(t,r),i[127](t),p(e,a),p(e,s);for(let v=0;v<b.length;v+=1)b[v]&&b[v].m(s,null);i[130](s),c=!0,m||(h=[de(t,"click",at(i[66])),de(s,"keydown",i[86])],m=!0)},p(w,P){var v;if((!c||P[1]&8)&&z(t,"item-mobile",w[34]),P[0]&64|P[1]&8|P[2]&33554440){y=It(w[6]);let g;for(g=0;g<y.length;g+=1){let I=$1(w,y,g);b[g]?(b[g].p(I,P),d(b[g],1)):(b[g]=Cd(I),b[g].c(),d(b[g],1),b[g].m(s,null))}for(fe(),g=y.length;g<b.length;g+=1)S(g);ce()}(!c||P[0]&1048576&&u!==(u=w[73]((v=w[20])==null?void 0:v.clientHeight,!0)))&&f(s,"style",u),(!c||P[1]&8)&&z(s,"items-mobile",w[34]),(!c||P[1]&8)&&z(e,"menu-desktop",!w[34]),(!c||P[1]&8)&&z(e,"menu-mobile",w[34])},i(w){if(!c){d(n.$$.fragment,w);for(let P=0;P<y.length;P+=1)d(b[P]);c=!0}},o(w){_(n.$$.fragment,w),b=b.filter(Boolean);for(let P=0;P<b.length;P+=1)_(b[P]);c=!1},d(w){w&&k(e),R(n),i[127](null),Gi(b,w),i[130](null),m=!1,ot(h)}}}function kd(i){let e,t,n;return t=new fl({}),{c(){e=T("div"),D(t.$$.fragment),f(e,"class","itemIcon svelte-8jolw5")},m(o,r){C(o,e,r),B(t,e,null),n=!0},i(o){n||(d(t.$$.fragment,o),n=!0)},o(o){_(t.$$.fragment,o),n=!1},d(o){o&&k(e),R(t)}}}function Cd(i){let e,t,n,o=i[142].displayValue+"",r,l,a,s,u,c,m,h=i[142].selected&&kd(i);function y(){return i[128](i[142])}function b(...S){return i[129](i[142],...S)}return{c(){e=T("li"),h&&h.c(),t=O(),n=T("div"),r=De(o),l=O(),f(n,"class","svelte-8jolw5"),z(n,"quality-title-mobile",i[34]),f(e,"class","item item-quality svelte-8jolw5"),f(e,"data-value",a=i[142].value),f(e,"role","menuitem"),f(e,"tabindex","0"),f(e,"aria-label",s=i[142].displayValue),z(e,"item-mobile",i[34])},m(S,w){C(S,e,w),h&&h.m(e,null),p(e,t),p(e,n),p(n,r),p(e,l),u=!0,c||(m=[de(e,"click",at(y)),de(e,"keydown",b)],c=!0)},p(S,w){i=S,i[142].selected?h?w[0]&64&&d(h,1):(h=kd(i),h.c(),d(h,1),h.m(e,t)):h&&(fe(),_(h,1,1,()=>{h=null}),ce()),(!u||w[0]&64)&&o!==(o=i[142].displayValue+"")&&Ye(r,o),(!u||w[1]&8)&&z(n,"quality-title-mobile",i[34]),(!u||w[0]&64&&a!==(a=i[142].value))&&f(e,"data-value",a),(!u||w[0]&64&&s!==(s=i[142].displayValue))&&f(e,"aria-label",s),(!u||w[1]&8)&&z(e,"item-mobile",i[34])},i(S){u||(d(h),u=!0)},o(S){_(h),u=!1},d(S){S&&k(e),h&&h.d(),c=!1,ot(m)}}}function Vg(i){let e,t,n,o,r,l,a=i[10]&&id(i),s=i[12]&&cd(i),u=i[13]&&_d(i),c=i[15]&&bd(i),m=i[14]&&wd(i);return{c(){e=T("div"),a&&a.c(),t=O(),s&&s.c(),n=O(),u&&u.c(),o=O(),c&&c.c(),r=O(),m&&m.c(),f(e,"class","svelte-8jolw5"),z(e,"hidden",!i[10]),z(e,"container-mobile",i[34])},m(h,y){C(h,e,y),a&&a.m(e,null),p(e,t),s&&s.m(e,null),p(e,n),u&&u.m(e,null),p(e,o),c&&c.m(e,null),p(e,r),m&&m.m(e,null),l=!0},p(h,y){h[10]?a?(a.p(h,y),y[0]&1024&&d(a,1)):(a=id(h),a.c(),d(a,1),a.m(e,t)):a&&(fe(),_(a,1,1,()=>{a=null}),ce()),h[12]?s?(s.p(h,y),y[0]&4096&&d(s,1)):(s=cd(h),s.c(),d(s,1),s.m(e,n)):s&&(fe(),_(s,1,1,()=>{s=null}),ce()),h[13]?u?(u.p(h,y),y[0]&8192&&d(u,1)):(u=_d(h),u.c(),d(u,1),u.m(e,o)):u&&(fe(),_(u,1,1,()=>{u=null}),ce()),h[15]?c?(c.p(h,y),y[0]&32768&&d(c,1)):(c=bd(h),c.c(),d(c,1),c.m(e,r)):c&&(fe(),_(c,1,1,()=>{c=null}),ce()),h[14]?m?(m.p(h,y),y[0]&16384&&d(m,1)):(m=wd(h),m.c(),d(m,1),m.m(e,null)):m&&(fe(),_(m,1,1,()=>{m=null}),ce()),(!l||y[0]&1024)&&z(e,"hidden",!h[10]),(!l||y[1]&8)&&z(e,"container-mobile",h[34])},i(h){l||(d(a),d(s),d(u),d(c),d(m),l=!0)},o(h){_(a),_(s),_(u),_(c),_(m),l=!1},d(h){h&&k(e),a&&a.d(),s&&s.d(),u&&u.d(),c&&c.d(),m&&m.d()}}}var Ag=18;function Lg(i,e,t){let n,o,r,l,a,s,u,c,m,h,y,b,S,w,P,v,g,I,A,q,K,re,ae,H,{ref:L=void 0}=e,{supportLink:x}=e,{playerControlsHeight:Q=0}=e,{returnFocus:J}=e,E=it(),te=Ut(),M=E.state.currentQuality$;F(i,M,se=>t(102,S=se));let ee=E.state.availableQualities$;F(i,ee,se=>t(8,y=se));let ke=E.state.autoQualityLimitingAvailable$;F(i,ke,se=>t(106,g=se));let Qe=E.state.isAutoQualityEnabled$;F(i,Qe,se=>t(103,w=se));let je=E.state.currentPlaybackRate$;F(i,je,se=>t(9,b=se));let $e=E.state.availablePlaybackRates$;F(i,$e,se=>t(7,m=se));let We=E.state.currentSubtitle$;F(i,We,se=>t(35,ae=se));let ve=E.state.availableSubtitlesList$;F(i,ve,se=>t(6,u=se));let X=E.state.canDownload,be=E.state.hasMpegSources$;F(i,be,se=>t(107,I=se));let Oe=E.ui.settingsMenuVisible;F(i,Oe,se=>t(10,re=se));let xe=E.ui.settingsMenuOpenedByKeyboard;F(i,xe,se=>t(132,o=se));let et=E.ui.isMobile;F(i,et,se=>t(34,r=se));let ye=E.ui.mobileNotReportControlHidden$;F(i,ye,se=>t(104,P=se));let Be=E.state.canChangePlaybackSpeed$;F(i,Be,se=>t(105,v=se));let Ue=E.ui.isFullscreen;F(i,Ue,se=>t(135,K=se));let Xe=E.state.trafficSavingEnabled$;F(i,Xe,se=>t(5,a=se));let Te=E.ui.playerSize;F(i,Te,se=>t(134,q=se));let Z=E.ui.debugPanelVisible;F(i,Z,se=>t(36,H=se));let Ce=E.ui.playerSize;F(i,Ce,se=>t(133,A=se));let ue=E.state.isInteractiveTime$,Ie=E.actions.internal.downloadVideo,Je=E.actions.internal.closeSettingsMenu,ft=!0,ct=!1,dt=!1,bt=!1,vt=!1,we=!1;function _t(){o||J==null||J(),Je(),we=!1}function Mt(){t(11,ft=!1),t(12,ct=!0)}function Vt(){t(11,ft=!1),t(15,vt=!0)}function ze(se){E.actions.internal.setQuality(se),_t()}function jt(se){E.actions.internal.setTrafficSavingEnabled(se),_t()}function Ht(){t(11,ft=!1),t(13,dt=!0)}function Wt(se){E.actions.internal.setPlaybackRate(se),_t()}function $t(){t(11,ft=!1),t(14,bt=!0)}function me(se){E.actions.internal.setSubtitle(se),_t()}function ht(){t(11,ft=!0),t(12,ct=!1),t(13,dt=!1),t(14,bt=!1),t(15,vt=!1)}function yt(){Ie(),_t()}function Re(){window.open(x,"_blank"),_t(),E.actions.internal.pause()}function qe(){Vl(E.actions.internal.getDebugTextData()),_t()}function kt(){Z.set(!0),_t()}function zt(){we=!0}function ei(){we=!1}function mn(se,pt,gi){if(!se)return"...";let bi=pt.find(xt=>xt.value===se),ui=bi?bi.displayValue:se;return gi?se===Sd.VideoQuality.INVARIANT?Y("auto_quality_invariant"):Y("auto_quality",{actual:ui}):ui}let yi,wi,Ni,oi,ki;function pn(se=0,pt=!1){return r&&K&&pt?`max-height: ${Math.round(q.height*.6)}px`:r?"":`max-height: ${A.height-Ag-se-Q}px; overflow: auto;`}let Ci,Qi,fi,Oi,Si,Yi,Pi,ci,Bt,Rt,Ti=Ne(!1);F(i,Ti,se=>t(101,h=se));let Ii,Zt,di=Ne(!1);F(i,di,se=>t(100,c=se));let mi,wt,qt=Ne(!1);F(i,qt,se=>t(99,s=se));let St,Fi,li=Ne(!1);F(i,li,se=>t(98,l=se));let _n=se=>{br(se,Je)},hn=se=>ut(this,null,function*(){Ll(se,Mt,()=>{let pt=y.findIndex(gi=>gi.selected);return Rt.childNodes[pt]})}),ti=se=>ut(this,null,function*(){Bl(se,ht,Ti,Je)}),Ei=(se,pt)=>{nn(se,()=>ze(pt))},Zi=se=>ut(this,null,function*(){Ll(se,Ht,()=>{let pt=m.findIndex(gi=>gi.selected);return Zt.childNodes[pt]})}),Mi=se=>ut(this,null,function*(){Bl(se,ht,di,Je)}),pi=(se,pt)=>{nn(se,()=>Wt(pt))},Xt=se=>ut(this,null,function*(){Ll(se,$t,()=>{let pt=u.findIndex(gi=>gi.selected);return wt.childNodes[pt]})}),ii=se=>ut(this,null,function*(){Bl(se,ht,qt,Je)}),Vi=(se,pt)=>{nn(se,()=>me(pt))},ri=se=>ut(this,null,function*(){Ll(se,Vt,()=>{let pt=a?2:0;return Fi.childNodes[pt]})}),on=se=>ut(this,null,function*(){Bl(se,ht,li,Je)}),Ai=(se,pt)=>{nn(se,()=>jt(pt))},gn=se=>{nn(se,()=>yt())},bn=se=>{nn(se,()=>Re())},ln=se=>{nn(se,()=>qe())},Xi=se=>{nn(se,()=>kt())};Nt(()=>{let se=ue.subscribe(pt=>{pt&&!r&&!we&&!o&&_t()});return()=>{se()}});function Hi(se){_e[se?"unshift":"push"](()=>{Bt=se,t(1,Bt)})}function ni(se){_e[se?"unshift":"push"](()=>{Ii=se,t(2,Ii)})}function _i(se){_e[se?"unshift":"push"](()=>{mi=se,t(3,mi)})}function Li(se){_e[se?"unshift":"push"](()=>{St=se,t(4,St)})}function zi(se){_e[se?"unshift":"push"](()=>{L=se,t(0,L)})}function rn(se){_e[se?"unshift":"push"](()=>{wi=se,t(17,wi)})}let Bi=se=>ze(se.value),qi=(se,pt)=>Ei(pt,se.value);function Ui(se){_e[se?"unshift":"push"](()=>{Rt=se,t(29,Rt)})}function Ze(se){_e[se?"unshift":"push"](()=>{Ni=se,t(18,Ni)})}let Ji=se=>Wt(se.value),Jt=(se,pt)=>pi(pt,se.value);function Ke(se){_e[se?"unshift":"push"](()=>{Zt=se,t(30,Zt)})}function sn(se){_e[se?"unshift":"push"](()=>{oi=se,t(19,oi)})}let Ki=()=>jt(!1),xi=se=>Ai(se,!1),an=()=>jt(!0),$i=se=>Ai(se,!0);function Tn(se){_e[se?"unshift":"push"](()=>{Fi=se,t(32,Fi)})}function si(se){_e[se?"unshift":"push"](()=>{ki=se,t(20,ki)})}let ai=se=>me(se),en=(se,pt)=>Vi(pt,se);function hi(se){_e[se?"unshift":"push"](()=>{wt=se,t(31,wt)})}return i.$$set=se=>{"ref"in se&&t(0,L=se.ref),"supportLink"in se&&t(95,x=se.supportLink),"playerControlsHeight"in se&&t(96,Q=se.playerControlsHeight),"returnFocus"in se&&t(97,J=se.returnFocus)},i.$$.update=()=>{var se;if(i.$$.dirty[0]&1024)e:re&&(t(11,ft=!0),t(12,ct=!1),t(13,dt=!1),t(14,bt=!1),t(15,vt=!1));if(i.$$.dirty[3]&512)e:t(33,n=yo(S));if(i.$$.dirty[0]&256|i.$$.dirty[3]&1536)e:t(16,yi=mn(S,y,w));if(i.$$.dirty[3]&18432)e:t(21,Ci=X&&I&&!P);if(i.$$.dirty[3]&10240)e:t(22,Qi=te.features.trafficSaving&&!P&&g);if(i.$$.dirty[0]&64|i.$$.dirty[3]&2048)e:t(23,fi=u.length>0&&!P);if(i.$$.dirty[3]&6144)e:t(24,Oi=!!v&&!P);if(i.$$.dirty[3]&2048)e:t(25,Si=!P);if(i.$$.dirty[0]&32)e:t(26,Yi=a?Y("traffic_saving_on"):Y("traffic_saving_off"));if(i.$$.dirty[3]&1536)e:t(27,Pi=w?Y("auto_quality_option"):S);if(i.$$.dirty[0]&640)e:t(28,ci=(se=m.find(pt=>pt.value===b))==null?void 0:se.displayValue);if(i.$$.dirty[0]&2|i.$$.dirty[3]&256)e:Al(Bt,Ti,h);if(i.$$.dirty[0]&4|i.$$.dirty[3]&128)e:Al(Ii,di,c);if(i.$$.dirty[0]&8|i.$$.dirty[3]&64)e:Al(mi,qt,s);if(i.$$.dirty[0]&16|i.$$.dirty[3]&32)e:Al(St,li,l)},[L,Bt,Ii,mi,St,a,u,m,y,b,re,ft,ct,dt,bt,vt,yi,wi,Ni,oi,ki,Ci,Qi,fi,Oi,Si,Yi,Pi,ci,Rt,Zt,wt,Fi,n,r,ae,H,te,M,ee,ke,Qe,je,$e,We,ve,be,Oe,xe,et,ye,Be,Ue,Xe,Te,Z,Ce,_t,Mt,Vt,ze,jt,Ht,Wt,$t,me,ht,yt,Re,qe,kt,zt,ei,pn,Ti,di,qt,li,_n,hn,ti,Ei,Zi,Mi,pi,Xt,ii,Vi,ri,on,Ai,gn,bn,ln,Xi,x,Q,J,l,s,c,h,S,w,P,v,g,I,Hi,ni,_i,Li,zi,rn,Bi,qi,Ui,Ze,Ji,Jt,Ke,sn,Ki,xi,an,$i,Tn,si,ai,en,hi]}var Ra=class extends j{constructor(e){super(),W(this,e,Lg,Vg,U,{ref:0,supportLink:95,playerControlsHeight:96,returnFocus:97},Eg,[-1,-1,-1,-1,-1])}},Mr=Ra;function Bg(i){Se(i,"svelte-d9t49t",".settings-icon-wrapper.svelte-d9t49t{position:relative;width:24px}")}function Rg(i){let e,t,n;return t=new Ir({props:{isMobile:i[3],currentQuality:i[4]}}),{c(){e=T("span"),D(t.$$.fragment),f(e,"class","settings-icon-wrapper svelte-d9t49t")},m(o,r){C(o,e,r),B(t,e,null),n=!0},p(o,r){let l={};r&8&&(l.isMobile=o[3]),r&16&&(l.currentQuality=o[4]),t.$set(l)},i(o){n||(d(t.$$.fragment,o),n=!0)},o(o){_(t.$$.fragment,o),n=!1},d(o){o&&k(e),R(t)}}}function Dg(i){let e,t,n;function o(l){i[9](l)}let r={className:i[1]?"opened":"",testId:"btn-settings",click:i[8],ariaLabel:i[2],ariaExpanded:i[1],$$slots:{default:[Rg]},$$scope:{ctx:i}};return i[0]!==void 0&&(r.ref=i[0]),e=new gt({props:r}),_e.push(()=>He(e,"ref",o)),{c(){D(e.$$.fragment)},m(l,a){B(e,l,a),n=!0},p(l,[a]){let s={};a&2&&(s.className=l[1]?"opened":""),a&4&&(s.ariaLabel=l[2]),a&2&&(s.ariaExpanded=l[1]),a&4120&&(s.$$scope={dirty:a,ctx:l}),!t&&a&1&&(t=!0,s.ref=l[0],Fe(()=>t=!1)),e.$set(s)},i(l){n||(d(e.$$.fragment,l),n=!0)},o(l){_(e.$$.fragment,l),n=!1},d(l){R(e,l)}}}function Ng(i,e,t){let n,o,r,{ref:l=void 0}=e,a=it(),s=a.state.currentQuality$;F(i,s,S=>t(4,r=S));let u=a.ui.settingsMenuVisible;F(i,u,S=>t(1,n=S));let c=a.actions.internal.toggleSettingsMenu,m=a.ui.isMobile;F(i,m,S=>t(3,o=S));let h;function y(S){let w=rl(S);c(w)}function b(S){l=S,t(0,l)}return i.$$set=S=>{"ref"in S&&t(0,l=S.ref)},i.$$.update=()=>{if(i.$$.dirty&2)e:t(2,h=n?Y("tooltip_settings_on"):Y("tooltip_settings_off"))},[l,n,h,o,r,s,u,m,y,b]}var Da=class extends j{constructor(e){super(),W(this,e,Ng,Dg,U,{ref:0},Bg)}},Dl=Da;function Og(i){let e,t,n,o=i[2].default,r=Ee(o,i,i[1],null),l=[{xmlns:"http://www.w3.org/2000/svg"},{width:"22"},{height:"16"},{fill:"none"},{"aria-hidden":"true"},{"data-testid":"subtitle-pained-icon"},{role:"img"},i[0]],a={};for(let s=0;s<l.length;s+=1)a=oe(a,l[s]);return{c(){e=N("svg"),r&&r.c(),t=N("path"),f(t,"fill","#fff"),f(t,"d","M3 0h14a3 3 0 0 1 3 3v10a3 3 0 0 1-3 3H3a3 3 0 0 1-3-3V3a3 3 0 0 1 3-3m1 9h2a1 1 0 0 0 0-2H4a1 1 0 0 0 0 2m5 0h7a1 1 0 1 0 0-2H9a1 1 0 0 0 0 2m-5 4h7a1 1 0 1 0 0-2H4a1 1 0 1 0 0 2m10 0h2a1 1 0 1 0 0-2h-2a1 1 0 1 0 0 2"),ge(e,a)},m(s,u){C(s,e,u),r&&r.m(e,null),p(e,t),n=!0},p(s,[u]){r&&r.p&&(!n||u&2)&&Ve(r,o,s,s[1],n?Me(o,s[1],u,null):Ae(s[1]),null),ge(e,a=Le(l,[{xmlns:"http://www.w3.org/2000/svg"},{width:"22"},{height:"16"},{fill:"none"},{"aria-hidden":"true"},{"data-testid":"subtitle-pained-icon"},{role:"img"},u&1&&s[0]]))},i(s){n||(d(r,s),n=!0)},o(s){_(r,s),n=!1},d(s){s&&k(e),r&&r.d(s)}}}function Fg(i,e,t){let{$$slots:n={},$$scope:o}=e;return i.$$set=r=>{t(0,e=oe(oe({},e),he(r))),"$$scope"in r&&t(1,o=r.$$scope)},e=he(e),[e,o,n]}var Na=class extends j{constructor(e){super(),W(this,e,Fg,Og,U,{})}},Pd=Na;function Hg(i){let e,t;return e=new Er({}),{c(){D(e.$$.fragment)},m(n,o){B(e,n,o),t=!0},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){_(e.$$.fragment,n),t=!1},d(n){R(e,n)}}}function zg(i){let e,t;return e=new Pd({}),{c(){D(e.$$.fragment)},m(n,o){B(e,n,o),t=!0},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){_(e.$$.fragment,n),t=!1},d(n){R(e,n)}}}function qg(i){let e,t,n,o,r=[zg,Hg],l=[];function a(s,u){return s[0]?0:1}return e=a(i,-1),t=l[e]=r[e](i),{c(){t.c(),n=rt()},m(s,u){l[e].m(s,u),C(s,n,u),o=!0},p(s,u){let c=e;e=a(s,u),e!==c&&(fe(),_(l[c],1,1,()=>{l[c]=null}),ce(),t=l[e],t||(t=l[e]=r[e](s),t.c()),d(t,1),t.m(n.parentNode,n))},i(s){o||(d(t),o=!0)},o(s){_(t),o=!1},d(s){s&&k(n),l[e].d(s)}}}function Ug(i){let e,t;return e=new gt({props:{testId:"btn-Subtitles",ariaLabel:i[2],click:i[1],ariaKeyShortCut:Jn.KeyC,$$slots:{default:[qg]},$$scope:{ctx:i}}}),{c(){D(e.$$.fragment)},m(n,o){B(e,n,o),t=!0},p(n,[o]){let r={};o&4&&(r.ariaLabel=n[2]),o&2&&(r.click=n[1]),o&9&&(r.$$scope={dirty:o,ctx:n}),e.$set(r)},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){_(e.$$.fragment,n),t=!1},d(n){R(e,n)}}}function Kg(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=()=>{if(i.$$.dirty&1)e:t(2,r=n?Y("tooltip_subtitles_on"):Y("tooltip_subtitles_off"))},[n,o,r]}var Oa=class extends j{constructor(e){super(),W(this,e,Kg,Ug,U,{isSubtitlesEnabled:0,click:1})}},Td=Oa;function jg(i){Se(i,"svelte-19o2urr",".time.svelte-19o2urr{display:flex;align-items:center;font-weight:500;font-variant-numeric:tabular-nums;padding:12px 6px}.time.mobile.svelte-19o2urr{padding:0 0 0 8px}.current.svelte-19o2urr{position:relative}.duration.svelte-19o2urr{opacity:0.7}.duration.svelte-19o2urr:before{content:' / ';white-space:pre}")}function Id(i){let e,t;return{c(){e=T("span"),t=De(i[3]),f(e,"class","duration svelte-19o2urr")},m(n,o){C(n,e,o),p(e,t)},p(n,o){o&8&&Ye(t,n[3])},d(n){n&&k(e)}}}function Wg(i){let e,t,n,o,r=i[2]&&Id(i);return{c(){e=T("div"),t=T("span"),n=De(i[4]),o=O(),r&&r.c(),f(t,"class","current svelte-19o2urr"),f(e,"class","time svelte-19o2urr"),z(e,"mobile",i[1])},m(l,a){C(l,e,a),p(e,t),p(t,n),p(e,o),r&&r.m(e,null),i[7](e)},p(l,[a]){a&16&&Ye(n,l[4]),l[2]?r?r.p(l,a):(r=Id(l),r.c(),r.m(e,null)):r&&(r.d(1),r=null),a&2&&z(e,"mobile",l[1])},i:pe,o:pe,d(l){l&&k(e),r&&r.d(),i[7](null)}}}function Gg(i,e,t){let{isMobile:n=!1}=e,{duration:o}=e,{position:r}=e,{showDuration:l=!0}=e,{ref:a}=e,s,u;function c(m){_e[m?"unshift":"push"](()=>{a=m,t(0,a)})}return i.$$set=m=>{"isMobile"in m&&t(1,n=m.isMobile),"duration"in m&&t(5,o=m.duration),"position"in m&&t(6,r=m.position),"showDuration"in m&&t(2,l=m.showDuration),"ref"in m&&t(0,a=m.ref)},i.$$.update=()=>{if(i.$$.dirty&32)e:t(3,s=An(o));if(i.$$.dirty&64)e:t(4,u=An(r))},[a,n,l,s,u,o,r,c]}var Fa=class extends j{constructor(e){super(),W(this,e,Gg,Wg,U,{isMobile:1,duration:5,position:6,showDuration:2,ref:0},jg)}},Vr=Fa;var ro=require("@vkontakte/videoplayer-shared");function Qg(i){Se(i,"svelte-1n5yyua",".icon.svelte-1n5yyua.svelte-1n5yyua{display:block;width:24px;height:24px}.icon.svelte-1n5yyua .cross.svelte-1n5yyua{visibility:hidden}.icon[data-value='off'].svelte-1n5yyua .wave1.svelte-1n5yyua,.icon[data-value='off'].svelte-1n5yyua .wave2.svelte-1n5yyua{visibility:hidden}.icon[data-value='off'].svelte-1n5yyua .cross.svelte-1n5yyua{visibility:visible}.icon[data-value='mid'].svelte-1n5yyua .wave2.svelte-1n5yyua,.icon[data-value='min'].svelte-1n5yyua .wave2.svelte-1n5yyua{visibility:hidden}")}function Yg(i){let e,t,n,o,r,l;return{c(){e=N("svg"),t=N("g"),n=N("path"),o=N("path"),r=N("path"),f(n,"class","wave2 svelte-1n5yyua"),f(n,"d","M12.98 18.823c-.031 1.207-.67 1.609-1.828.62-1.719-1.469-3.609-3.194-4.242-3.721-.632-.529-1.645-.62-3.073-.62-1.427 0-1.815-.621-1.815-1.241s-.014-1.83-.014-2.001c0-.055.005-.086.014-.13.02-.095-.058-.973 0-1.59.085-.906.388-1.241 1.815-1.241 1.428 0 2.44-.092 3.073-.62.633-.529 2.523-2.253 4.242-3.722 1.158-.989 1.797-.587 1.829.62.043 1.607 0 3.85 0 6.683 0 2.83.043 5.356 0 6.963zm2.901-8.704A.875.875 0 1 1 17.12 8.88c.176.177.41.47.64.872.384.671.616 1.425.616 2.247s-.232 1.576-.615 2.247a4.23 4.23 0 0 1-.641.872.875.875 0 1 1-1.238-1.238c.074-.073.214-.249.36-.503.241-.423.384-.887.384-1.378s-.143-.955-.385-1.378a2.597 2.597 0 0 0-.359-.503zm3-2A.875.875 0 1 1 20.12 6.88c.263.264.62.74.966 1.432.517 1.033.843 2.255.89 3.716-.047 1.403-.373 2.625-.89 3.658-.346.692-.703 1.168-.966 1.432a.875.875 0 1 1-1.238-1.238c.138-.137.383-.464.639-.976.407-.814.667-1.79.705-2.876-.038-1.144-.298-2.12-.705-2.934-.256-.512-.501-.839-.639-.976z"),f(o,"class","wave1 svelte-1n5yyua"),f(o,"d","M12.98 18.823c-.031 1.207-.67 1.609-1.828.62-1.719-1.469-3.609-3.194-4.242-3.721-.632-.529-1.645-.62-3.073-.62-1.427 0-1.815-.621-1.815-1.241s-.014-1.83-.014-2.001c0-.055.005-.086.014-.13.02-.095-.058-.973 0-1.59.085-.906.388-1.241 1.815-1.241 1.428 0 2.44-.092 3.073-.62.633-.529 2.523-2.253 4.242-3.722 1.158-.989 1.797-.587 1.829.62.043 1.607 0 3.85 0 6.683 0 2.83.043 5.356 0 6.963zm2.901-8.704A.875.875 0 1 1 17.12 8.88c.176.177.41.47.64.872.384.671.616 1.425.616 2.247s-.232 1.576-.615 2.247a4.23 4.23 0 0 1-.641.872.875.875 0 1 1-1.238-1.238c.074-.073.214-.249.36-.503.241-.423.384-.887.384-1.378s-.143-.955-.385-1.378a2.597 2.597 0 0 0-.359-.503z"),f(r,"class","cross svelte-1n5yyua"),f(r,"d","m20 10.763 2.381-2.382A.875.875 0 1 1 23.62 9.62L21.237 12l2.382 2.381a.875.875 0 1 1-1.238 1.238L20 13.237l-2.381 2.382a.875.875 0 1 1-1.238-1.238L18.763 12 16.38 9.619A.875.875 0 1 1 17.62 8.38zm-7.02 8.06c-.031 1.207-.67 1.609-1.828.62-1.719-1.469-3.609-3.194-4.242-3.721-.632-.529-1.645-.62-3.073-.62-1.427 0-1.815-.621-1.815-1.241s-.014-1.83-.014-2.001c0-.055.005-.086.014-.13.02-.095-.058-.973 0-1.59.085-.906.388-1.241 1.815-1.241 1.428 0 2.44-.092 3.073-.62.633-.529 2.523-2.253 4.242-3.722 1.158-.989 1.797-.587 1.829.62.043 1.607 0 3.85 0 6.683 0 2.83.043 5.356 0 6.963z"),f(t,"fill","#fff"),f(t,"fill-rule","evenodd"),f(e,"data-value",i[0]),f(e,"data-testid",l="volume-"+i[0]+"-icon"),f(e,"xmlns","http://www.w3.org/2000/svg"),f(e,"class","icon svelte-1n5yyua"),f(e,"aria-hidden","true")},m(a,s){C(a,e,s),p(e,t),p(t,n),p(t,o),p(t,r)},p(a,[s]){s&1&&f(e,"data-value",a[0]),s&1&&l!==(l="volume-"+a[0]+"-icon")&&f(e,"data-testid",l)},i:pe,o:pe,d(a){a&&k(e)}}}function Zg(i,e,t){let{volume:n=1}=e,{muted:o=!1}=e,r=(a,s)=>s?"off":a>.5?"max":a>.2?"mid":a>0?"min":"off",l;return i.$$set=a=>{"volume"in a&&t(1,n=a.volume),"muted"in a&&t(2,o=a.muted)},i.$$.update=()=>{if(i.$$.dirty&6)e:t(0,l=r(n,o))},[l,n,o]}var Ha=class extends j{constructor(e){super(),W(this,e,Zg,Yg,U,{volume:1,muted:2},Qg)}},qo=Ha;var Fn=require("@vkontakte/videoplayer-shared");var Ad=require("@vkontakte/videoplayer-shared");var Vd=require("@vkontakte/videoplayer-shared");function Xg(i){let e,t,n=i[4].default,o=Ee(n,i,i[3],null);return{c(){e=T("div"),o&&o.c(),f(e,"class","overlay")},m(r,l){C(r,e,l),o&&o.m(e,null),i[5](e),t=!0},p(r,[l]){o&&o.p&&(!t||l&8)&&Ve(o,n,r,r[3],t?Me(n,r[3],l,null):Ae(r[3]),null)},i(r){t||(d(o,r),t=!0)},o(r){_(o,r),t=!1},d(r){r&&k(e),o&&o.d(r),i[5](null)}}}function Jg(i,e,t){let n,{$$slots:o={},$$scope:r}=e,a=it().ui.overlayContainer$;F(i,a,h=>t(2,n=h));let s,u=h=>{!h||!s||!h.contains(s)||h.removeChild(s)},c=h=>{!h||!s||h.contains(s)||h.appendChild(s)};Nt(()=>(c(n),()=>u(n)));function m(h){_e[h?"unshift":"push"](()=>{s=h,t(0,s)})}return i.$$set=h=>{"$$scope"in h&&t(3,r=h.$$scope)},i.$$.update=()=>{if(i.$$.dirty&4)e:c(n)},[s,a,n,r,o,m]}var za=class extends j{constructor(e){super(),W(this,e,Jg,Xg,U,{})}},Ed=za;function xg(i){Se(i,"svelte-tny135",'.tooltip-wrapper.svelte-tny135{display:flex;flex-direction:column;min-width:0}.full-width.svelte-tny135{width:100%}.tooltip.svelte-tny135{position:absolute;opacity:0;visibility:hidden;transition:opacity 200ms, visibility 200ms;bottom:100%;left:0}.content.svelte-tny135{display:inline-block;padding:6px 10px;border-radius:3px;color:var(--white);background-color:rgba(41, 41, 41, .8)}.tooltip.active.svelte-tny135{opacity:1;visibility:visible}.tooltip-pointer.svelte-tny135{position:absolute;bottom:0;width:0;border-top:5px solid rgba(41, 41, 41, .8);border-right:5px solid transparent;border-left:5px solid transparent;content:" ";font-size:0;line-height:0}.bottom-placement-pointer.svelte-tny135{top:0;bottom:auto}')}function Md(i){let e,t;return e=new Ed({props:{$$slots:{default:[$g]},$$scope:{ctx:i}}}),{c(){D(e.$$.fragment)},m(n,o){B(e,n,o),t=!0},p(n,o){let r={};o&2097395&&(r.$$scope={dirty:o,ctx:n}),e.$set(r)},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){_(e.$$.fragment,n),t=!1},d(n){R(e,n)}}}function $g(i){let e,t,n,o,r,l,a;return{c(){e=T("div"),t=T("div"),n=De(i[1]),o=O(),r=T("div"),f(t,"class","content svelte-tny135"),f(r,"class","tooltip-pointer svelte-tny135"),f(r,"style",l=`transform: translate(${i[5]}px, ${i[9]}px) rotate(${i[8]?0:"180deg"});`),z(r,"bottom-placement-pointer",!i[8]),f(e,"class","tooltip svelte-tny135"),f(e,"style",a=`transform: translate(${i[6]}px, ${i[7]}px);`),z(e,"active",i[0])},m(s,u){C(s,e,u),p(e,t),p(t,n),p(e,o),p(e,r),i[20](e)},p(s,u){u&2&&Ye(n,s[1]),u&32&&l!==(l=`transform: translate(${s[5]}px, ${s[9]}px) rotate(${s[8]?0:"180deg"});`)&&f(r,"style",l),u&192&&a!==(a=`transform: translate(${s[6]}px, ${s[7]}px);`)&&f(e,"style",a),u&1&&z(e,"active",s[0])},d(s){s&&k(e),i[20](null)}}}function eb(i){let e,t,n,o,r,l,a=i[18].default,s=Ee(a,i,i[21],null),u=i[1]&&Md(i);return{c(){e=T("div"),s&&s.c(),t=O(),u&&u.c(),n=rt(),f(e,"class","tooltip-wrapper svelte-tny135"),z(e,"full-width",i[2])},m(c,m){C(c,e,m),s&&s.m(e,null),i[19](e),C(c,t,m),u&&u.m(c,m),C(c,n,m),o=!0,r||(l=[de(e,"mouseenter",i[12]),de(e,"mousemove",i[12]),de(e,"mouseleave",i[13]),de(e,"mousedown",i[13]),de(e,"mouseup",i[12])],r=!0)},p(c,[m]){s&&s.p&&(!o||m&2097152)&&Ve(s,a,c,c[21],o?Me(a,c[21],m,null):Ae(c[21]),null),(!o||m&4)&&z(e,"full-width",c[2]),c[1]?u?(u.p(c,m),m&2&&d(u,1)):(u=Md(c),u.c(),d(u,1),u.m(n.parentNode,n)):u&&(fe(),_(u,1,1,()=>{u=null}),ce())},i(c){o||(d(s,c),d(u),o=!0)},o(c){_(s,c),_(u),o=!1},d(c){c&&(k(e),k(t),k(n)),s&&s.d(c),i[19](null),u&&u.d(c),r=!1,ot(l)}}}var Nl=5;function tb(i,e,t){let n,o,{$$slots:r={},$$scope:l}=e,{content:a=""}=e,{active:s=!1}=e,{translateX:u=0}=e,{translateY:c=0}=e,{isFullWidthWrapper:m=!1}=e,{placement:h="top"}=e,{onVisibilityChange:y=Vd.noop}=e,b=h==="top",S,w,P,v=0,g=b?Nl:-Nl,I=0,A=0,q=Ut(),K=it(),re=K.ui.playerSize;F(i,re,ee=>t(24,o=ee));let ae=K.ui.overlayContainer$;F(i,ae,ee=>t(23,n=ee));let H=K.getLogger().createComponentLog("Tooltip component"),L=()=>{if(!n||!w||!S)return;let ee=n.getBoundingClientRect(),ke=S.getBoundingClientRect(),Qe=ke.width,je=w.clientWidth,$e=o.width,We=(Qe-je)/2,ve=ke.left+u-ee.left,X=ve+We,be=ke.top+c-ee.top,Oe=je/2-Nl,xe=X<8,et=X+je>$e-8;xe&&(X=8,Oe=ve+ke.width/2-2.5*Nl),et&&(X=$e-8-je,Oe=ke.left-ee.left+ke.width/2-X-Nl),t(6,I=X),t(7,A=be),t(5,v=Oe)},x=()=>{try{if(!n||!S)return;L(),t(0,s=!0)}catch(ee){H({message:String(ee)})}},Q=()=>{t(0,s=!1)},J=()=>{w&&(P||(P=window.setTimeout(x,q.controls.hideTimeoutTooltips)),s&&x())},E=()=>{Q(),window.clearTimeout(P),P=void 0};Nt(L),Wn(()=>window.clearTimeout(P));function te(ee){_e[ee?"unshift":"push"](()=>{S=ee,t(3,S)})}function M(ee){_e[ee?"unshift":"push"](()=>{w=ee,t(4,w)})}return i.$$set=ee=>{"content"in ee&&t(1,a=ee.content),"active"in ee&&t(0,s=ee.active),"translateX"in ee&&t(14,u=ee.translateX),"translateY"in ee&&t(15,c=ee.translateY),"isFullWidthWrapper"in ee&&t(2,m=ee.isFullWidthWrapper),"placement"in ee&&t(16,h=ee.placement),"onVisibilityChange"in ee&&t(17,y=ee.onVisibilityChange),"$$scope"in ee&&t(21,l=ee.$$scope)},i.$$.update=()=>{if(i.$$.dirty&131073)e:y(s)},[s,a,m,S,w,v,I,A,b,g,re,ae,J,E,u,c,h,y,r,te,M,l]}var qa=class extends j{constructor(e){super(),W(this,e,tb,eb,U,{content:1,active:0,translateX:14,translateY:15,isFullWidthWrapper:2,placement:16,onVisibilityChange:17},xg)}},Ar=qa;function ib(i){Se(i,"svelte-p9r045",".btn-container.svelte-p9r045{position:relative;display:flex;align-items:center;height:100%;transition:var(--button-hover-transition);will-change:opacity;-webkit-tap-highlight-color:transparent}.w-max.svelte-p9r045{width:100%;min-width:0}")}function nb(i){let e,t=i[19].default,n=Ee(t,i,i[24],null);return{c(){n&&n.c()},m(o,r){n&&n.m(o,r),e=!0},p(o,r){n&&n.p&&(!e||r&16777216)&&Ve(n,t,o,o[24],e?Me(t,o[24],r,null):Ae(o[24]),null)},i(o){e||(d(n,o),e=!0)},o(o){_(n,o),e=!1},d(o){n&&n.d(o)}}}function ob(i){let e,t;return e=new Ar({props:{content:i[12],translateX:i[10],translateY:i[11],isFullWidthWrapper:i[4],active:i[6],placement:i[7],onVisibilityChange:i[9],$$slots:{default:[lb]},$$scope:{ctx:i}}}),{c(){D(e.$$.fragment)},m(n,o){B(e,n,o),t=!0},p(n,o){let r={};o&4096&&(r.content=n[12]),o&1024&&(r.translateX=n[10]),o&2048&&(r.translateY=n[11]),o&16&&(r.isFullWidthWrapper=n[4]),o&64&&(r.active=n[6]),o&128&&(r.placement=n[7]),o&512&&(r.onVisibilityChange=n[9]),o&16777216&&(r.$$scope={dirty:o,ctx:n}),e.$set(r)},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){_(e.$$.fragment,n),t=!1},d(n){R(e,n)}}}function lb(i){let e,t=i[19].default,n=Ee(t,i,i[24],null);return{c(){n&&n.c()},m(o,r){n&&n.m(o,r),e=!0},p(o,r){n&&n.p&&(!e||r&16777216)&&Ve(n,t,o,o[24],e?Me(t,o[24],r,null):Ae(o[24]),null)},i(o){e||(d(n,o),e=!0)},o(o){_(n,o),e=!1},d(o){n&&n.d(o)}}}function rb(i){let e,t,n,o,r,l,a,s,u,c=[ob,nb],m=[];function h(y,b){return y[3]&&y[5]&&!y[13]?0:1}return t=h(i,-1),n=m[t]=c[t](i),{c(){e=T("div"),n.c(),f(e,"class",o="btn-container "+i[2]+" svelte-p9r045"),f(e,"aria-hidden",r=i[8]||null),Qn(()=>i[23].call(e))},m(y,b){C(y,e,b),m[t].m(e,null),i[22](e),l=Zo(e,i[23].bind(e)),a=!0,s||(u=[de(e,"pointerdown",at(Dt(i[20]))),de(e,"click",at(Dt(i[21])))],s=!0)},p(y,[b]){let S=t;t=h(y,b),t===S?m[t].p(y,b):(fe(),_(m[S],1,1,()=>{m[S]=null}),ce(),n=m[t],n?n.p(y,b):(n=m[t]=c[t](y),n.c()),d(n,1),n.m(e,null)),(!a||b&4&&o!==(o="btn-container "+y[2]+" svelte-p9r045"))&&f(e,"class",o),(!a||b&256&&r!==(r=y[8]||null))&&f(e,"aria-hidden",r)},i(y){a||(d(n),a=!0)},o(y){_(n),a=!1},d(y){y&&k(e),m[t].d(),i[22](null),l(),s=!1,ot(u)}}}function sb(i,e,t){let n,o,{$$slots:r={},$$scope:l}=e,{className:a=""}=e,{disabled:s=!1}=e,{hasTooltip:u=!0}=e,{ref:c=void 0}=e,{width:m=void 0}=e,{isFullWidthTooltip:h=!0}=e,{tooltipContent:y=""}=e,{tooltipActive:b=!1}=e,{tooltipPlacement:S="top"}=e,{disabledTooltipContent:w=Y("tooltip_button_disabled")}=e,{isAriaHidden:P=!1}=e,{onTooltipVisibilityChange:v=Ad.noop}=e,{initialTranslateXPx:g=0}=e,{initialTranslateYPx:I=-18}=e,A=it(),q=A.ui.isMobile;F(i,q,Q=>t(13,o=Q));let K=A.state.graphIsOpened$;F(i,K,Q=>t(18,n=Q));let re;function ae(Q){Vn.call(this,i,Q)}function H(Q){Vn.call(this,i,Q)}function L(Q){_e[Q?"unshift":"push"](()=>{c=Q,t(0,c)})}function x(){m=this.clientWidth,t(1,m)}return i.$$set=Q=>{"className"in Q&&t(2,a=Q.className),"disabled"in Q&&t(16,s=Q.disabled),"hasTooltip"in Q&&t(3,u=Q.hasTooltip),"ref"in Q&&t(0,c=Q.ref),"width"in Q&&t(1,m=Q.width),"isFullWidthTooltip"in Q&&t(4,h=Q.isFullWidthTooltip),"tooltipContent"in Q&&t(5,y=Q.tooltipContent),"tooltipActive"in Q&&t(6,b=Q.tooltipActive),"tooltipPlacement"in Q&&t(7,S=Q.tooltipPlacement),"disabledTooltipContent"in Q&&t(17,w=Q.disabledTooltipContent),"isAriaHidden"in Q&&t(8,P=Q.isAriaHidden),"onTooltipVisibilityChange"in Q&&t(9,v=Q.onTooltipVisibilityChange),"initialTranslateXPx"in Q&&t(10,g=Q.initialTranslateXPx),"initialTranslateYPx"in Q&&t(11,I=Q.initialTranslateYPx),"$$scope"in Q&&t(24,l=Q.$$scope)},i.$$.update=()=>{if(i.$$.dirty&458784)e:s?t(12,re=n?Y("tooltip_disabled_when_graph_on"):w):t(12,re=y)},[c,m,a,u,h,y,b,S,P,v,g,I,re,o,q,K,s,w,n,r,ae,H,L,x,l]}var Ua=class extends j{constructor(e){super(),W(this,e,sb,rb,U,{className:2,disabled:16,hasTooltip:3,ref:0,width:1,isFullWidthTooltip:4,tooltipContent:5,tooltipActive:6,tooltipPlacement:7,disabledTooltipContent:17,isAriaHidden:8,onTooltipVisibilityChange:9,initialTranslateXPx:10,initialTranslateYPx:11},ib)}},Ft=Ua;function ab(i){let e,t,n,o,r,l;return{c(){e=N("svg"),t=N("rect"),o=N("path"),f(t,"width","20"),f(t,"height","20"),f(t,"rx","10"),f(t,"fill","white"),f(t,"fill-opacity",n=i[0]?1:.24),f(o,"d","M12.5259 8.68864L12.587 8.87536L12.3702 8.23648C12.236 7.84095 11.8295 7.60563 11.4192 7.68593C10.9471 7.77831 10.6508 8.24892 10.7718 8.71381L10.8968 9.19361L10.6671 8.33855C10.5566 7.92714 10.1475 7.67011 9.72832 7.74872C9.32282 7.82476 9.04808 8.18606 9.06319 8.57993L8.34064 5.64592C8.21338 5.12912 7.64646 4.85578 7.1621 5.07767C6.79216 5.24715 6.59467 5.65495 6.69131 6.0498L7.98547 11.3373L6.87 10.178C6.52545 9.81987 5.94024 9.86103 5.64933 10.2638C5.44455 10.5474 5.44907 10.9312 5.66048 11.2098L7.89246 14.1518C7.89246 14.1518 9.12075 15.9833 12.1932 15.3769C14.6243 14.8972 15.4434 12.7097 14.7748 10.4997L14.2213 8.20869C14.0975 7.69621 13.5537 7.40646 13.0585 7.58916C12.614 7.75319 12.3788 8.23875 12.5259 8.68864Z"),f(o,"fill",r=i[0]?"var(--interactive-episode-complete)":"white"),f(e,"width","20"),f(e,"height","20"),f(e,"viewBox","0 0 20 20"),f(e,"fill","none"),f(e,"xmlns","http://www.w3.org/2000/svg"),f(e,"aria-hidden","true"),f(e,"data-testid",l=(i[0],"interactive-episode-completed-icon"))},m(a,s){C(a,e,s),p(e,t),p(e,o)},p(a,[s]){s&1&&n!==(n=a[0]?1:.24)&&f(t,"fill-opacity",n),s&1&&r!==(r=a[0]?"var(--interactive-episode-complete)":"white")&&f(o,"fill",r),s&1&&l!==(l=(a[0],"interactive-episode-completed-icon"))&&f(e,"data-testid",l)},i:pe,o:pe,d(a){a&&k(e)}}}function ub(i,e,t){let{completed:n}=e;return i.$$set=o=>{"completed"in o&&t(0,n=o.completed)},[n]}var Ka=class extends j{constructor(e){super(),W(this,e,ub,ab,U,{completed:0})}},Lr=Ka;function fb(i){Se(i,"svelte-bklhpe",".interactive-episode-icon.svelte-bklhpe{width:20px;height:20px;position:absolute;transform:translateX(-50%);cursor:default}.interactive-episode-icon.disabled.svelte-bklhpe{pointer-events:none;opacity:0.4}")}function cb(i){let e,t,n,o,r;return t=new Lr({props:{completed:!!i[0].completed}}),{c(){e=T("div"),D(t.$$.fragment),f(e,"class","interactive-episode-icon svelte-bklhpe"),f(e,"style",n=`left: ${i[0].from+i[0].width/2}%`),Qn(()=>i[3].call(e)),z(e,"disabled",i[1])},m(l,a){C(l,e,a),B(t,e,null),o=Zo(e,i[3].bind(e)),r=!0},p(l,a){let s={};a&1&&(s.completed=!!l[0].completed),t.$set(s),(!r||a&1&&n!==(n=`left: ${l[0].from+l[0].width/2}%`))&&f(e,"style",n),(!r||a&2)&&z(e,"disabled",l[1])},i(l){r||(d(t.$$.fragment,l),r=!0)},o(l){_(t.$$.fragment,l),r=!1},d(l){l&&k(e),R(t),o()}}}function db(i){let e,t;return e=new Ft({props:{tooltipContent:Y(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:[cb]},$$scope:{ctx:i}}}),{c(){D(e.$$.fragment)},m(n,o){B(e,n,o),t=!0},p(n,[o]){let r={};o&1&&(r.tooltipContent=Y(n[0].completed?"tooltip_episode_finished":"tooltip_episode_unfinished")),o&2&&(r.disabled=n[1]),o&4&&(r.width=n[2]||0),o&23&&(r.$$scope={dirty:o,ctx:n}),e.$set(r)},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){_(e.$$.fragment,n),t=!1},d(n){R(e,n)}}}function mb(i,e,t){let{videoEpisode:n}=e,{disabled:o}=e,r;function l(){r=this.clientWidth,t(2,r)}return i.$$set=a=>{"videoEpisode"in a&&t(0,n=a.videoEpisode),"disabled"in a&&t(1,o=a.disabled)},[n,o,r,l]}var ja=class extends j{constructor(e){super(),W(this,e,mb,db,U,{videoEpisode:0,disabled:1},fb)}},Ld=ja;function pb(i){Se(i,"svelte-1h9p3m2",".video-episodes-wrap.svelte-1h9p3m2{position:absolute;width:100%;height:100%}.video-episode.svelte-1h9p3m2{position:absolute;height:calc(3 * var(--slider-height));box-sizing:border-box;margin-top:-5px;padding:var(--slider-height) var(--slider-video-episode-gap);transition:transform 0.2s}.video-episode.svelte-1h9p3m2:where(:hover, :active){transform:scaleY(1.5)}.video-episode-inner.svelte-1h9p3m2,.video-episode-loaded.svelte-1h9p3m2,.video-episode-filled.svelte-1h9p3m2{position:absolute;height:var(--slider-height);border-radius:var(--slider-radius)}.video-episode-inner.svelte-1h9p3m2{position:absolute;overflow:hidden;width:calc(100% - 2 * var(--slider-video-episode-gap));background:var(--slider-bg)}.video-episode-loaded.svelte-1h9p3m2{position:absolute;left:-100%;width:100%;height:100%;border-radius:var(--slider-radius);background:var(--slider-loaded-bg);transition:transform 0.2s}.video-episode-filled.svelte-1h9p3m2{position:absolute;left:-100%;width:100%;height:100%;border-radius:var(--slider-radius);background-color:var(--slider-filled-bg)}")}function Bd(i,e,t){let n=i.slice();return n[2]=e[t],n}function Rd(i){let e,t,n,o,r,l,a,s,u;return{c(){e=T("div"),t=T("div"),n=T("div"),r=O(),l=T("div"),s=O(),f(n,"class","video-episode-loaded svelte-1h9p3m2"),f(n,"style",o=`transform: translateX(${i[2].loadedWidth/i[2].width*100}%)`),f(l,"class","video-episode-filled svelte-1h9p3m2"),f(l,"style",a=`transform: translateX(${i[2].filledWidth/i[2].width*100}%)`),z(l,"mobile",i[1]),f(t,"class","video-episode-inner svelte-1h9p3m2"),f(e,"class","video-episode svelte-1h9p3m2"),f(e,"style",u=`left: ${i[2].from}%; width: ${i[2].width}%`),z(e,"mobile",i[1])},m(c,m){C(c,e,m),p(e,t),p(t,n),p(t,r),p(t,l),p(e,s)},p(c,m){m&1&&o!==(o=`transform: translateX(${c[2].loadedWidth/c[2].width*100}%)`)&&f(n,"style",o),m&1&&a!==(a=`transform: translateX(${c[2].filledWidth/c[2].width*100}%)`)&&f(l,"style",a),m&2&&z(l,"mobile",c[1]),m&1&&u!==(u=`left: ${c[2].from}%; width: ${c[2].width}%`)&&f(e,"style",u),m&2&&z(e,"mobile",c[1])},d(c){c&&k(e)}}}function _b(i){let e,t=It(i[0]),n=[];for(let o=0;o<t.length;o+=1)n[o]=Rd(Bd(i,t,o));return{c(){e=T("div");for(let o=0;o<n.length;o+=1)n[o].c();f(e,"class","video-episodes-wrap svelte-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=It(o[0]);let l;for(l=0;l<t.length;l+=1){let a=Bd(o,t,l);n[l]?n[l].p(a,r):(n[l]=Rd(a),n[l].c(),n[l].m(e,null))}for(;l<n.length;l+=1)n[l].d(1);n.length=t.length}},i:pe,o:pe,d(o){o&&k(e),Gi(n,o)}}}function hb(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]}var Wa=class extends j{constructor(e){super(),W(this,e,hb,_b,U,{videoEpisodes:0,isMobile:1},pb)}},Dd=Wa;function gb(i){Se(i,"svelte-1golz1y",".interactive-icons.svelte-1golz1y.svelte-1golz1y{position:absolute;width:calc(100% - 20px);top:-28px}.interactive-icons.mobile.svelte-1golz1y.svelte-1golz1y{top:-10px}.slider.svelte-1golz1y.svelte-1golz1y{position:relative;height:var(--slider-height);border-radius:var(--slider-radius);cursor:pointer;transition:visibility 0.2s, opacity 0.2s;will-change:opacity, transform;width:100%;touch-action:none;-webkit-tap-highlight-color:transparent}.no-handle.svelte-1golz1y.svelte-1golz1y{cursor:default}.slider.svelte-1golz1y.svelte-1golz1y:before{content:'';position:absolute;left:0;right:0;top:calc(-1 * (var(--controls-height) / 2 - var(--slider-height)) / 2);height:calc(var(--controls-height) / 2)}.bars.svelte-1golz1y.svelte-1golz1y{position:absolute;width:100%;height:100%;border-radius:var(--slider-radius);overflow:hidden;background:var(--slider-bg)}.loaded.svelte-1golz1y.svelte-1golz1y{position:absolute;left:-100%;width:100%;height:100%;border-radius:var(--slider-radius);background:var(--slider-loaded-bg);transition:transform 0.2s}.filled.svelte-1golz1y.svelte-1golz1y{position:absolute;left:-100%;width:100%;height:100%;border-radius:var(--slider-radius);background-color:var(--slider-filled-bg)}.slider.square.svelte-1golz1y.svelte-1golz1y,.slider.square.svelte-1golz1y>.bars.svelte-1golz1y,.slider.square.svelte-1golz1y .loaded.svelte-1golz1y,.slider.square.svelte-1golz1y .filled.svelte-1golz1y{border-radius:unset}.filled.active-live.svelte-1golz1y.svelte-1golz1y{background-color:var(--slider-filled-active-live-bg)}.filled.ads.svelte-1golz1y.svelte-1golz1y{background-color:var(--slider-filled-ads)}.handleWrap.svelte-1golz1y.svelte-1golz1y{position:absolute;left:-100%;width:100%}.handle.svelte-1golz1y.svelte-1golz1y{position:absolute;width:var(--slider-handle-size);height:var(--slider-handle-size);right:calc(-1 * var(--slider-handle-size) / 2);top:calc((var(--slider-height) - var(--slider-handle-size)) / 2);border-radius:50%;background-color:var(--slider-filled-bg);visibility:hidden;opacity:0;transform:scale(0);transition:opacity 0.2s, transform 0.2s, visibility 0.2s;will-change:opacity, transform}.handle.active-live.svelte-1golz1y.svelte-1golz1y{background-color:var(--slider-filled-active-live-bg)}.slider.svelte-1golz1y:hover .handle.svelte-1golz1y,.slider-dragging.svelte-1golz1y .handle.svelte-1golz1y{visibility:visible;opacity:1;transform:scale(1)}.slider-dragging.svelte-1golz1y .handle.svelte-1golz1y{transform:scale(1.3)}.slider-vertical.svelte-1golz1y.svelte-1golz1y{position:absolute;left:-8px;top:-18px;transform-origin:0 0;transform:rotate(-90deg)}.slider.disabled.svelte-1golz1y.svelte-1golz1y{cursor:default;pointer-events:none;opacity:0.4}")}function Nd(i,e,t){let n=i.slice();return n[48]=e[t],n}function Od(i){let e,t,n=It(i[21]),o=[];for(let l=0;l<n.length;l+=1)o[l]=Hd(Nd(i,n,l));let r=l=>_(o[l],1,1,()=>{o[l]=null});return{c(){e=T("div");for(let l=0;l<o.length;l+=1)o[l].c();f(e,"class","interactive-icons svelte-1golz1y"),z(e,"mobile",i[5]),z(e,"hidden",i[5]&&!i[20])},m(l,a){C(l,e,a);for(let s=0;s<o.length;s+=1)o[s]&&o[s].m(e,null);t=!0},p(l,a){if(a[0]&2097664){n=It(l[21]);let s;for(s=0;s<n.length;s+=1){let u=Nd(l,n,s);o[s]?(o[s].p(u,a),d(o[s],1)):(o[s]=Hd(u),o[s].c(),d(o[s],1),o[s].m(e,null))}for(fe(),s=n.length;s<o.length;s+=1)r(s);ce()}(!t||a[0]&32)&&z(e,"mobile",l[5]),(!t||a[0]&1048608)&&z(e,"hidden",l[5]&&!l[20])},i(l){if(!t){for(let a=0;a<n.length;a+=1)d(o[a]);t=!0}},o(l){o=o.filter(Boolean);for(let a=0;a<o.length;a+=1)_(o[a]);t=!1},d(l){l&&k(e),Gi(o,l)}}}function Fd(i){let e,t;return e=new Ld({props:{videoEpisode:i[48],disabled:i[9]}}),{c(){D(e.$$.fragment)},m(n,o){B(e,n,o),t=!0},p(n,o){let r={};o[0]&2097152&&(r.videoEpisode=n[48]),o[0]&512&&(r.disabled=n[9]),e.$set(r)},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){_(e.$$.fragment,n),t=!1},d(n){R(e,n)}}}function Hd(i){let e,t,n=i[48].interactive&&Fd(i);return{c(){n&&n.c(),e=rt()},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&&d(n,1)):(n=Fd(o),n.c(),d(n,1),n.m(e.parentNode,e)):n&&(fe(),_(n,1,1,()=>{n=null}),ce())},i(o){t||(d(n),t=!0)},o(o){_(n),t=!1},d(o){o&&k(e),n&&n.d(o)}}}function bb(i){let e,t,n,o,r,l;return{c(){e=T("div"),t=T("div"),o=O(),r=T("div"),f(t,"class","loaded svelte-1golz1y"),f(t,"style",n=`transform: translateX(${i[11]*100}%);`),f(r,"class","filled svelte-1golz1y"),f(r,"style",l=`transform: translateX(${i[12]*100}%);`),z(r,"active-live",i[4]),z(r,"ads",i[6]),f(e,"class","bars svelte-1golz1y")},m(a,s){C(a,e,s),p(e,t),p(e,o),p(e,r)},p(a,s){s[0]&2048&&n!==(n=`transform: translateX(${a[11]*100}%);`)&&f(t,"style",n),s[0]&4096&&l!==(l=`transform: translateX(${a[12]*100}%);`)&&f(r,"style",l),s[0]&16&&z(r,"active-live",a[4]),s[0]&64&&z(r,"ads",a[6])},i:pe,o:pe,d(a){a&&k(e)}}}function vb(i){let e,t;return e=new Dd({props:{videoEpisodes:i[21],isMobile:i[5]}}),{c(){D(e.$$.fragment)},m(n,o){B(e,n,o),t=!0},p(n,o){let r={};o[0]&2097152&&(r.videoEpisodes=n[21]),o[0]&32&&(r.isMobile=n[5]),e.$set(r)},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){_(e.$$.fragment,n),t=!1},d(n){R(e,n)}}}function yb(i){let e,t,n,o,r,l,a,s,u,c,m,h,y,b=i[8]&&Od(i),S=[vb,bb],w=[];function P(v,g){return v[21].length?0:1}return n=P(i,[-1,-1]),o=w[n]=S[n](i),{c(){var v;b&&b.c(),e=O(),t=T("div"),o.c(),r=O(),l=T("div"),a=T("div"),f(a,"class","handle svelte-1golz1y"),z(a,"active-live",i[4]),f(l,"class","handleWrap svelte-1golz1y"),f(l,"style",s=`transform: translateX(${i[13]*100}%);`),z(l,"hidden",i[10]),f(t,"class",u="slider "+i[0]+" svelte-1golz1y"),f(t,"aria-label",i[14]),f(t,"aria-valuemin",i[15]),f(t,"aria-valuemax",i[16]),f(t,"aria-valuenow",i[17]),f(t,"aria-valuetext",i[18]),f(t,"role","slider"),f(t,"tabindex","0"),f(t,"data-testid",c=(v=i[1])!=null?v:null),z(t,"disabled",i[9]),z(t,"slider-dragging",i[20]),z(t,"hidden",i[2]),z(t,"slider-vertical",i[3]),z(t,"no-handle",i[10]),z(t,"square",i[7])},m(v,g){b&&b.m(v,g),C(v,e,g),C(v,t,g),w[n].m(t,null),p(t,r),p(t,l),p(l,a),i[42](t),m=!0,h||(y=[de(t,"pointerdown",Dt(i[22])),de(t,"pointermove",Dt(i[23])),de(t,"pointerup",Dt(i[24])),de(t,"pointerenter",Dt(i[25])),de(t,"pointerleave",Dt(i[26])),de(t,"click",at(Fn.noop)),de(t,"wheel",i[27])],h=!0)},p(v,g){var A;v[8]?b?(b.p(v,g),g[0]&256&&d(b,1)):(b=Od(v),b.c(),d(b,1),b.m(e.parentNode,e)):b&&(fe(),_(b,1,1,()=>{b=null}),ce());let I=n;n=P(v,g),n===I?w[n].p(v,g):(fe(),_(w[I],1,1,()=>{w[I]=null}),ce(),o=w[n],o?o.p(v,g):(o=w[n]=S[n](v),o.c()),d(o,1),o.m(t,r)),(!m||g[0]&16)&&z(a,"active-live",v[4]),(!m||g[0]&8192&&s!==(s=`transform: translateX(${v[13]*100}%);`))&&f(l,"style",s),(!m||g[0]&1024)&&z(l,"hidden",v[10]),(!m||g[0]&1&&u!==(u="slider "+v[0]+" svelte-1golz1y"))&&f(t,"class",u),(!m||g[0]&16384)&&f(t,"aria-label",v[14]),(!m||g[0]&32768)&&f(t,"aria-valuemin",v[15]),(!m||g[0]&65536)&&f(t,"aria-valuemax",v[16]),(!m||g[0]&131072)&&f(t,"aria-valuenow",v[17]),(!m||g[0]&262144)&&f(t,"aria-valuetext",v[18]),(!m||g[0]&2&&c!==(c=(A=v[1])!=null?A:null))&&f(t,"data-testid",c),(!m||g[0]&513)&&z(t,"disabled",v[9]),(!m||g[0]&1048577)&&z(t,"slider-dragging",v[20]),(!m||g[0]&5)&&z(t,"hidden",v[2]),(!m||g[0]&9)&&z(t,"slider-vertical",v[3]),(!m||g[0]&1025)&&z(t,"no-handle",v[10]),(!m||g[0]&129)&&z(t,"square",v[7])},i(v){m||(d(b),d(o),m=!0)},o(v){_(b),_(o),m=!1},d(v){v&&(k(e),k(t)),b&&b.d(v),w[n].d(),i[42](null),h=!1,ot(y)}}}function wb(i,e,t){let n,o,{className:r=""}=e,{testId:l=void 0}=e,{isHidden:a=!1}=e,{isVertical:s=!1}=e,{isActiveLive:u=!1}=e,{isMobile:c=!1}=e,{isAds:m=!1}=e,{squareBorders:h=!1}=e,{videoEpisodes:y=[]}=e,{withWheelHandler:b=!1}=e,{isInteractive:S=!1}=e,{disabled:w=!1}=e,{hideHandel:P=!1}=e,v,g,{onPointerDown:I=Fn.noop}=e,{onHandleMove:A=Fn.noop}=e,{onPointerUp:q=Fn.noop}=e,{onPointerEnter:K=Fn.noop}=e,{onPointerMove:re=Fn.noop}=e,{onPointerLeave:ae=Fn.noop}=e,{onWheelUp:H=Fn.noop}=e,{onWheelDown:L=Fn.noop}=e,{onWheelLeft:x=Fn.noop}=e,{onWheelRight:Q=Fn.noop}=e,{loadedProgress:J=0}=e,{filledProgress:E=0}=e,{handleProgress:te=0}=e,{ariaLabel:M=""}=e,{ariaValueMin:ee=void 0}=e,{ariaValueMax:ke=void 0}=e,{ariaValueNow:Qe=void 0}=e,{ariaValueText:je=""}=e,$e=Ut(),We=!1,ve;function X(Z){if(We)return;t(20,We=!0),g=v.getBoundingClientRect();let Ce=Be(Z.clientX,Z.clientY);I(Ce),v.setPointerCapture(Z.pointerId)}function be(Z){let Ce=Be(Z.clientX,Z.clientY),ue=Ue(Z.clientX);re(Ce,ue,g.width),We&&A(Ce)}function Oe(Z){if(!We)return;t(20,We=!1);let Ce=Be(Z.clientX,Z.clientY);q(Ce)}function xe(Z){g=v.getBoundingClientRect();let Ce=Be(Z.clientX,Z.clientY),ue=Ue(Z.clientX);K(Ce,ue,g.width)}function et(){ae()}function ye(Z){b&&(Z.preventDefault(),Z.deltaY<0?H():Z.deltaY>0?L():Z.deltaX>0?Q():x())}function Be(Z,Ce){return s?Math.max(0,Math.min(1,(g.height-(Ce-g.top))/g.height)):Math.min(Math.max(Z-g.x,0),g.width)/g.width}function Ue(Z){return Math.min(Math.max(Z-g.x,0),g.width)}function Xe(Z,Ce){let ue=$e.features.episodesClustering&&!S?$e.episodeMinWidthPc:0,Ie=[],Je=0,ft=0,ct=0;for(let vt=1;vt<y.length;vt++)ft=y[vt].time/ve*100,ft-Je>ue&&(Ie.push({from:Je,width:Math.max(0,ft-Je),loadedWidth:Math.max(0,Math.min(ft,Z)-Je),filledWidth:Math.max(0,Math.min(ft,Ce)-Je),interactive:y[vt-1].interactive,completed:y[vt-1].completed}),Je=y[vt].time/ve*100,ct++);let dt={from:Je,width:Math.max(0,100-Je),loadedWidth:Math.max(0,Math.min(Z,100)-Je),filledWidth:Math.max(0,Math.min(Ce,100)-Je),interactive:y[ct].interactive,completed:y[ct].completed};100-Je<ue?(ct-=1,Ie[ct].width+=100-Je,Ie[ct].loadedWidth+=Math.max(0,Math.min(Z,100)-Je),Ie[ct].filledWidth+=Math.max(0,Math.min(Ce,100)-Je)):Ie[ct]=dt;let bt=y[0].time;if(bt!==0){let vt=bt/ve*100;Ie.unshift({from:0,width:vt,loadedWidth:Math.min(vt,Z),filledWidth:Math.min(vt,Ce)})}return Ie}function Te(Z){_e[Z?"unshift":"push"](()=>{v=Z,t(19,v)})}return i.$$set=Z=>{"className"in Z&&t(0,r=Z.className),"testId"in Z&&t(1,l=Z.testId),"isHidden"in Z&&t(2,a=Z.isHidden),"isVertical"in Z&&t(3,s=Z.isVertical),"isActiveLive"in Z&&t(4,u=Z.isActiveLive),"isMobile"in Z&&t(5,c=Z.isMobile),"isAds"in Z&&t(6,m=Z.isAds),"squareBorders"in Z&&t(7,h=Z.squareBorders),"videoEpisodes"in Z&&t(28,y=Z.videoEpisodes),"withWheelHandler"in Z&&t(29,b=Z.withWheelHandler),"isInteractive"in Z&&t(8,S=Z.isInteractive),"disabled"in Z&&t(9,w=Z.disabled),"hideHandel"in Z&&t(10,P=Z.hideHandel),"onPointerDown"in Z&&t(30,I=Z.onPointerDown),"onHandleMove"in Z&&t(31,A=Z.onHandleMove),"onPointerUp"in Z&&t(32,q=Z.onPointerUp),"onPointerEnter"in Z&&t(33,K=Z.onPointerEnter),"onPointerMove"in Z&&t(34,re=Z.onPointerMove),"onPointerLeave"in Z&&t(35,ae=Z.onPointerLeave),"onWheelUp"in Z&&t(36,H=Z.onWheelUp),"onWheelDown"in Z&&t(37,L=Z.onWheelDown),"onWheelLeft"in Z&&t(38,x=Z.onWheelLeft),"onWheelRight"in Z&&t(39,Q=Z.onWheelRight),"loadedProgress"in Z&&t(11,J=Z.loadedProgress),"filledProgress"in Z&&t(12,E=Z.filledProgress),"handleProgress"in Z&&t(13,te=Z.handleProgress),"ariaLabel"in Z&&t(14,M=Z.ariaLabel),"ariaValueMin"in Z&&t(15,ee=Z.ariaValueMin),"ariaValueMax"in Z&&t(16,ke=Z.ariaValueMax),"ariaValueNow"in Z&&t(17,Qe=Z.ariaValueNow),"ariaValueText"in Z&&t(18,je=Z.ariaValueText)},i.$$.update=()=>{var Z;if(i.$$.dirty[0]&65536)e:t(40,ve=ke!=null?ke:0);if(i.$$.dirty[0]&268435456|i.$$.dirty[1]&512)e:t(41,n=((Z=y[y.length-1])==null?void 0:Z.time)<ve);if(i.$$.dirty[0]&268441600|i.$$.dirty[1]&1536)e:t(21,o=y.length&&n&&ve?Xe(J*100,E*100):[])},[r,l,a,s,u,c,m,h,S,w,P,J,E,te,M,ee,ke,Qe,je,v,We,o,X,be,Oe,xe,et,ye,y,b,I,A,q,K,re,ae,H,L,x,Q,ve,n,Te]}var Ga=class extends j{constructor(e){super(),W(this,e,wb,yb,U,{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},gb,[-1,-1])}},cl=Ga;var Ln=(i,e)=>Lo[i]>=Lo[e],zd=(i,e)=>Lo[i]<Lo[e],Br=(i,e)=>Lo[i]<=Lo[e],qd=i=>i>699?"xl":i>599?"l":i>509?"m":i>320?"s":"xs";function kb(i){Se(i,"svelte-1l78lz9",".volumeBar-container.svelte-1l78lz9{display:flex;align-items:center}.volumeBar-container.vertical.svelte-1l78lz9,.vertical.svelte-1l78lz9 .tooltip-wrapper,.vertical.svelte-1l78lz9 .btn{width:40px}.volumeBar.svelte-1l78lz9{display:flex;align-items:center;margin:0 8px;position:relative;width:70px}.volumeBar-slider-vertical{width:50px !important}.volumeBar-vertical.svelte-1l78lz9{padding:0 8px 0 0;width:0}")}function Cb(i){let e,t;return e=new qo({props:{volume:i[3],muted:i[1]}}),{c(){D(e.$$.fragment)},m(n,o){B(e,n,o),t=!0},p(n,o){let r={};o[0]&8&&(r.volume=n[3]),o[0]&2&&(r.muted=n[1]),e.$set(r)},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){_(e.$$.fragment,n),t=!1},d(n){R(e,n)}}}function Sb(i){let e,t;return e=new gt({props:{className:"btn-full-opacity",disabled:i[9],testId:i[2]?"btn-volume-vertical":"btn-volume-horizontal",ariaLabel:i[7],click:i[0],ariaKeyShortCut:Jn.KeyM,$$slots:{default:[Cb]},$$scope:{ctx:i}}}),{c(){D(e.$$.fragment)},m(n,o){B(e,n,o),t=!0},p(n,o){let r={};o[0]&512&&(r.disabled=n[9]),o[0]&4&&(r.testId=n[2]?"btn-volume-vertical":"btn-volume-horizontal"),o[0]&128&&(r.ariaLabel=n[7]),o[0]&1&&(r.click=n[0]),o[0]&10|o[1]&32&&(r.$$scope={dirty:o,ctx:n}),e.$set(r)},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){_(e.$$.fragment,n),t=!1},d(n){R(e,n)}}}function Ud(i){let e,t,n;return t=new cl({props:{className:i[2]?"volumeBar-slider-vertical":"",isHidden:i[2]&&!i[5],isVertical:i[2],withWheelHandler:!0,onWheelUp:i[15],onWheelDown:i[16],onPointerDown:i[14],onHandleMove:i[17],onPointerUp:i[18],onPointerEnter:i[2]?i[19]:ro.noop,onPointerLeave:i[2]?i[20]:ro.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[2]?"volume-slider-vertical":"volume-slider"}}),{c(){e=T("div"),D(t.$$.fragment),f(e,"class","volumeBar svelte-1l78lz9"),z(e,"volumeBar-vertical",i[2])},m(o,r){C(o,e,r),B(t,e,null),n=!0},p(o,r){let l={};r[0]&4&&(l.className=o[2]?"volumeBar-slider-vertical":""),r[0]&36&&(l.isHidden=o[2]&&!o[5]),r[0]&4&&(l.isVertical=o[2]),r[0]&4&&(l.onPointerEnter=o[2]?o[19]:ro.noop),r[0]&4&&(l.onPointerLeave=o[2]?o[20]:ro.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]&4&&(l.testId=o[2]?"volume-slider-vertical":"volume-slider"),t.$set(l),(!n||r[0]&4)&&z(e,"volumeBar-vertical",o[2])},i(o){n||(d(t.$$.fragment,o),n=!0)},o(o){_(t.$$.fragment,o),n=!1},d(o){o&&k(e),R(t)}}}function Pb(i){let e,t,n,o,r,l;t=new Ar({props:{content:i[6],translateY:-18,$$slots:{default:[Sb]},$$scope:{ctx:i}}});let a=i[4]&&Ud(i);return{c(){e=T("div"),D(t.$$.fragment),n=O(),a&&a.c(),f(e,"class","volumeBar-container svelte-1l78lz9"),z(e,"vertical",i[2])},m(s,u){C(s,e,u),B(t,e,null),p(e,n),a&&a.m(e,null),o=!0,r||(l=[de(e,"mouseenter",function(){Ri(i[2]?i[21]:ro.noop)&&(i[2]?i[21]:ro.noop).apply(this,arguments)}),de(e,"mouseleave",function(){Ri(i[2]?i[22]:ro.noop)&&(i[2]?i[22]:ro.noop).apply(this,arguments)}),de(e,"wheel",Dt(i[23]))],r=!0)},p(s,u){i=s;let c={};u[0]&64&&(c.content=i[6]),u[0]&655|u[1]&32&&(c.$$scope={dirty:u,ctx:i}),t.$set(c),i[4]?a?(a.p(i,u),u[0]&16&&d(a,1)):(a=Ud(i),a.c(),d(a,1),a.m(e,null)):a&&(fe(),_(a,1,1,()=>{a=null}),ce()),(!o||u[0]&4)&&z(e,"vertical",i[2])},i(s){o||(d(t.$$.fragment,s),d(a),o=!0)},o(s){_(t.$$.fragment,s),_(a),o=!1},d(s){s&&k(e),R(t),a&&a.d(),r=!1,ot(l)}}}function Tb(i,e,t){var We,ve;let n,o,r,l,{click:a}=e,s=it(),u=Ut(),c=s.state.volume$;F(i,c,X=>t(3,n=X));let m=s.state.muted$;F(i,m,X=>t(25,l=X));let h=s.actions.internal.setVolume,y=s.ui.currentGridType$;F(i,y,X=>t(24,r=X));let b=(We=s.callbacks)==null?void 0:We.onAudioDoesNotExistHint,S=(ve=s.callbacks)==null?void 0:ve.onAudioDisabledHint,w=s.state.isAudioAvailable$;F(i,w,X=>t(4,o=X));let P=s.state.isAudioDisabled,v=!1,g,I,A,q,K,re,ae=1,H=!1,L=!1;function x(X){ae=n,h(X)}function Q(){kr(s,n,u.controls.volumeStepWheel)}function J(){Cr(s,n,u.controls.volumeStepWheel)}function E(X){h(X)}function te(X){let be=X;h(be,be===0?ae:be)}function M(){H=!0}function ee(){H=!1,je()}function ke(){clearTimeout(g),t(5,v=!0)}function Qe(){je()}function je(){g=window.setTimeout(()=>{H||t(5,v=!1)},u.controls.volumeBarTimeout)}function $e(X){X.deltaY<0?Q():X.deltaY>0&&J()}return i.$$set=X=>{"click"in X&&t(0,a=X.click)},i.$$.update=()=>{if(i.$$.dirty[0]&33554448)e:t(1,q=!o||l);if(i.$$.dirty[0]&16777216)e:t(2,K=Br(r,"s"));if(i.$$.dirty[0]&6)e:K?t(6,I=""):t(6,I=q?Y("tooltip_volume"):Y("tooltip_volume_muted")),t(7,A=q?Y("tooltip_volume"):Y("tooltip_volume_muted"));if(i.$$.dirty[0]&10)e:t(8,re=q?0:n);if(i.$$.dirty[0]&16)e:t(9,L=P&&!S||!o&&!b)},[a,q,K,n,o,v,I,A,re,L,c,m,y,w,x,Q,J,E,te,M,ee,ke,Qe,$e,r,l]}var Qa=class extends j{constructor(e){super(),W(this,e,Tb,Pb,U,{click:0},kb,[-1,-1])}},Kd=Qa;var Gd=require("@vkontakte/videoplayer-shared");function Ib(i){let e,t,n,o,r,l=i[2].default,a=Ee(l,i,i[1],null),s=[{xmlns:"http://www.w3.org/2000/svg"},{width:"24"},{height:"24"},{"aria-hidden":"true"},{role:"img"},i[0]],u={};for(let c=0;c<s.length;c+=1)u=oe(u,s[c]);return{c(){e=N("svg"),a&&a.c(),t=N("g"),n=N("path"),o=N("path"),f(n,"d","M4.58 13.979a.99.99 0 0 1 .99-.99h4.451a.99.99 0 0 1 .99.99v4.452a.99.99 0 0 1-1.98 0v-2.05l-3.319 3.322a1 1 0 0 1-1.414 0v-.001a1 1 0 0 1 0-1.414l3.32-3.32H5.57a.99.99 0 0 1-.99-.99m10.388-6.36 3.32-3.322a1 1 0 0 1 1.414 0v.001a1 1 0 0 1 0 1.414l-3.32 3.32h2.049a.99.99 0 0 1 0 1.979h-4.442a1 1 0 0 1-1-1V5.569a.99.99 0 1 1 1.98 0z"),f(n,"class","_exit"),f(o,"d","M10.5 19a1 1 0 0 1-1 1H5a1 1 0 0 1-1-1v-4.5a1 1 0 0 1 2 0v2.072l3.363-3.365a1 1 0 0 1 1.414 0l.016.016a1 1 0 0 1 0 1.414L7.429 18H9.5a1 1 0 0 1 1 1M18 7.429l-3.363 3.364a1 1 0 0 1-1.414 0l-.016-.016a1 1 0 0 1 0-1.414L16.571 6H14.5a1 1 0 0 1 0-2H19a1 1 0 0 1 1 1v4.5a1 1 0 0 1-2 0z"),f(o,"class","_enter"),f(t,"fill","#fff"),f(t,"fill-rule","evenodd"),ge(e,u)},m(c,m){C(c,e,m),a&&a.m(e,null),p(e,t),p(t,n),p(t,o),r=!0},p(c,[m]){a&&a.p&&(!r||m&2)&&Ve(a,l,c,c[1],r?Me(l,c[1],m,null):Ae(c[1]),null),ge(e,u=Le(s,[{xmlns:"http://www.w3.org/2000/svg"},{width:"24"},{height:"24"},{"aria-hidden":"true"},{role:"img"},m&1&&c[0]]))},i(c){r||(d(a,c),r=!0)},o(c){_(a,c),r=!1},d(c){c&&k(e),a&&a.d(c)}}}function Eb(i,e,t){let{$$slots:n={},$$scope:o}=e;return i.$$set=r=>{t(0,e=oe(oe({},e),he(r))),"$$scope"in r&&t(1,o=r.$$scope)},e=he(e),[e,o,n]}var Ya=class extends j{constructor(e){super(),W(this,e,Eb,Ib,U,{})}},jd=Ya;function Mb(i){Se(i,"svelte-17t966y",'svg[data-testid="close-fullscreen-icon"] ._enter,svg[data-testid="open-fullscreen-icon"] ._exit{visibility:hidden;opacity:0}')}function Vb(i){let e,t;return e=new jd({props:{"data-testid":i[0]?"close-fullscreen-icon":"open-fullscreen-icon"}}),{c(){D(e.$$.fragment)},m(n,o){B(e,n,o),t=!0},p(n,[o]){let r={};o&1&&(r["data-testid"]=n[0]?"close-fullscreen-icon":"open-fullscreen-icon"),e.$set(r)},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){_(e.$$.fragment,n),t=!1},d(n){R(e,n)}}}function Ab(i,e,t){let{isFullscreen:n=!1}=e;return i.$$set=o=>{"isFullscreen"in o&&t(0,n=o.isFullscreen)},[n]}var Za=class extends j{constructor(e){super(),W(this,e,Ab,Vb,U,{isFullscreen:0},Mb)}},Wd=Za;function Lb(i){let e,t;return e=new Wd({props:{isFullscreen:i[0]}}),{c(){D(e.$$.fragment)},m(n,o){B(e,n,o),t=!0},p(n,o){let r={};o&1&&(r.isFullscreen=n[0]),e.$set(r)},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){_(e.$$.fragment,n),t=!1},d(n){R(e,n)}}}function Bb(i){let e,t;return e=new gt({props:{testId:"btn-fullscreen",ariaLabel:i[2],click:i[1],ariaKeyShortCut:Jn.KeyF,$$slots:{default:[Lb]},$$scope:{ctx:i}}}),{c(){D(e.$$.fragment)},m(n,o){B(e,n,o),t=!0},p(n,[o]){let r={};o&4&&(r.ariaLabel=n[2]),o&2&&(r.click=n[1]),o&9&&(r.$$scope={dirty:o,ctx:n}),e.$set(r)},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){_(e.$$.fragment,n),t=!1},d(n){R(e,n)}}}function Rb(i,e,t){let{isFullscreen:n=!1}=e,{click:o=Gd.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=()=>{if(i.$$.dirty&1)e:t(2,r=n?Y("tooltip_fullscreen_on"):Y("tooltip_fullscreen_off"))},[n,o,r]}var Xa=class extends j{constructor(e){super(),W(this,e,Rb,Bb,U,{isFullscreen:0,click:1})}},Rr=Xa;function Db(i){let e,t,n,o=i[2].default,r=Ee(o,i,i[1],null),l=[{xmlns:"http://www.w3.org/2000/svg"},{width:"24"},{height:"24"},{fill:"none"},{"aria-hidden":"true"},{"data-testid":"play-icon"},{role:"img"},i[0]],a={};for(let s=0;s<l.length;s+=1)a=oe(a,l[s]);return{c(){e=N("svg"),r&&r.c(),t=N("path"),f(t,"fill","#fff"),f(t,"d","M17.671 10.923c.82.483.82 1.67 0 2.154l-8.787 5.175A1.25 1.25 0 0 1 7 17.174V6.826a1.25 1.25 0 0 1 1.884-1.078z"),ge(e,a)},m(s,u){C(s,e,u),r&&r.m(e,null),p(e,t),n=!0},p(s,[u]){r&&r.p&&(!n||u&2)&&Ve(r,o,s,s[1],n?Me(o,s[1],u,null):Ae(s[1]),null),ge(e,a=Le(l,[{xmlns:"http://www.w3.org/2000/svg"},{width:"24"},{height:"24"},{fill:"none"},{"aria-hidden":"true"},{"data-testid":"play-icon"},{role:"img"},u&1&&s[0]]))},i(s){n||(d(r,s),n=!0)},o(s){_(r,s),n=!1},d(s){s&&k(e),r&&r.d(s)}}}function Nb(i,e,t){let{$$slots:n={},$$scope:o}=e;return i.$$set=r=>{t(0,e=oe(oe({},e),he(r))),"$$scope"in r&&t(1,o=r.$$scope)},e=he(e),[e,o,n]}var Ja=class extends j{constructor(e){super(),W(this,e,Nb,Db,U,{})}},dl=Ja;function Ob(i){let e,t,n,o=i[2].default,r=Ee(o,i,i[1],null),l=[{xmlns:"http://www.w3.org/2000/svg"},{width:"24"},{height:"24"},{fill:"none"},{"aria-hidden":"true"},{"data-testid":"pause-icon"},{role:"img"},i[0]],a={};for(let s=0;s<l.length;s+=1)a=oe(a,l[s]);return{c(){e=N("svg"),r&&r.c(),t=N("path"),f(t,"fill","#fff"),f(t,"d","M8.712 5c.448 0 .61.047.774.134a.9.9 0 0 1 .38.38c.087.164.134.326.134.774v11.424c0 .448-.047.61-.134.774a.9.9 0 0 1-.38.38c-.164.087-.326.134-.774.134H6.788c-.448 0-.61-.047-.774-.134a.9.9 0 0 1-.38-.38c-.087-.164-.134-.326-.134-.774V6.288c0-.448.047-.61.134-.774a.9.9 0 0 1 .38-.38C6.178 5.047 6.34 5 6.788 5zm8 0c.448 0 .61.047.774.134a.9.9 0 0 1 .38.38c.087.164.134.326.134.774v11.424c0 .448-.047.61-.134.774a.9.9 0 0 1-.38.38c-.164.087-.326.134-.774.134h-1.924c-.448 0-.61-.047-.774-.134a.9.9 0 0 1-.38-.38c-.087-.164-.134-.326-.134-.774V6.288c0-.448.047-.61.134-.774a.9.9 0 0 1 .38-.38c.164-.087.326-.134.774-.134z"),ge(e,a)},m(s,u){C(s,e,u),r&&r.m(e,null),p(e,t),n=!0},p(s,[u]){r&&r.p&&(!n||u&2)&&Ve(r,o,s,s[1],n?Me(o,s[1],u,null):Ae(s[1]),null),ge(e,a=Le(l,[{xmlns:"http://www.w3.org/2000/svg"},{width:"24"},{height:"24"},{fill:"none"},{"aria-hidden":"true"},{"data-testid":"pause-icon"},{role:"img"},u&1&&s[0]]))},i(s){n||(d(r,s),n=!0)},o(s){_(r,s),n=!1},d(s){s&&k(e),r&&r.d(s)}}}function Fb(i,e,t){let{$$slots:n={},$$scope:o}=e;return i.$$set=r=>{t(0,e=oe(oe({},e),he(r))),"$$scope"in r&&t(1,o=r.$$scope)},e=he(e),[e,o,n]}var xa=class extends j{constructor(e){super(),W(this,e,Fb,Ob,U,{})}},Dr=xa;var Yd=require("@vkontakte/videoplayer-shared");function Hb(i){Se(i,"svelte-1ot3duq",".mobile.svelte-1ot3duq{position:relative;display:flex;align-items:center;justify-content:center}.mobile.svelte-1ot3duq svg{transform:scale(2)}.icon-background-mobile.svelte-1ot3duq{position:absolute;top:16px;left:16px;border-radius:var(--big-play-radius);background-color:var(--big-play-bg-color);width:calc(100% - 32px);height:calc(100% - 32px)}")}function Qd(i){let e;return{c(){e=T("div"),f(e,"class","icon-background-mobile svelte-1ot3duq")},m(t,n){C(t,e,n)},d(t){t&&k(e)}}}function zb(i){let e,t,n,o,r=i[1]&&Qd(i);var l=i[8];function a(s){return{}}return l&&(n=Pn(l,a(i))),{c(){r&&r.c(),e=O(),t=T("div"),n&&D(n.$$.fragment),f(t,"class","svelte-1ot3duq"),z(t,"mobile",i[1])},m(s,u){r&&r.m(s,u),C(s,e,u),C(s,t,u),n&&B(n,t,null),o=!0},p(s,u){if(s[1]?r||(r=Qd(s),r.c(),r.m(e.parentNode,e)):r&&(r.d(1),r=null),u&256&&l!==(l=s[8])){if(n){fe();let c=n;_(c.$$.fragment,1,0,()=>{R(c,1)}),ce()}l?(n=Pn(l,a(s)),D(n.$$.fragment),d(n.$$.fragment,1),B(n,t,null)):n=null}(!o||u&2)&&z(t,"mobile",s[1])},i(s){o||(n&&d(n.$$.fragment,s),o=!0)},o(s){n&&_(n.$$.fragment,s),o=!1},d(s){s&&(k(e),k(t)),r&&r.d(s),n&&R(n)}}}function qb(i){let e,t,n;function o(l){i[13](l)}let r={className:(i[1]?"btn-m--play":"")+" "+i[3],testId:"btn-play",click:i[5]?i[6]:i[4],disabled:i[2],ariaLabel:i[7],ariaKeyShortCut:Jn.KeyK,$$slots:{default:[zb]},$$scope:{ctx:i}};return i[0]!==void 0&&(r.ref=i[0]),e=new gt({props:r}),_e.push(()=>He(e,"ref",o)),{c(){D(e.$$.fragment)},m(l,a){B(e,l,a),n=!0},p(l,[a]){let s={};a&10&&(s.className=(l[1]?"btn-m--play":"")+" "+l[3]),a&112&&(s.click=l[5]?l[6]:l[4]),a&4&&(s.disabled=l[2]),a&128&&(s.ariaLabel=l[7]),a&33026&&(s.$$scope={dirty:a,ctx:l}),!t&&a&1&&(t=!0,s.ref=l[0],Fe(()=>t=!1)),e.$set(s)},i(l){n||(d(e.$$.fragment,l),n=!0)},o(l){_(e.$$.fragment,l),n=!1},d(l){R(e,l)}}}function Ub(i,e,t){let n,o,{fakeIsPlaying$:r}=On();F(i,r,v=>t(12,o=v));let{ref:l=void 0}=e,{isMobile:a=!1}=e,{isPlaying:s=!1}=e,{disabled:u=!1}=e,{className:c=""}=e,{click:m=Yd.noop}=e,{toggle:h}=r,y,b,S,w;function P(v){l=v,t(0,l)}i.$$set=v=>{"ref"in v&&t(0,l=v.ref),"isMobile"in v&&t(1,a=v.isMobile),"isPlaying"in v&&t(10,s=v.isPlaying),"disabled"in v&&t(2,u=v.disabled),"className"in v&&t(3,c=v.className),"click"in v&&t(4,m=v.click)},i.$$.update=()=>{if(i.$$.dirty&4096)e:t(5,b=o!==null);if(i.$$.dirty&5152)e:t(11,S=b?o:s);if(i.$$.dirty&2048)e:t(7,w=S?Y("tooltip_pause"):Y("tooltip_play"));if(i.$$.dirty&2048)e:t(8,n=S?Dr:dl)};e:t(6,y=h);return[l,a,u,c,m,b,y,w,n,r,s,S,o,P]}var $a=class extends j{constructor(e){super(),W(this,e,Ub,qb,U,{ref:0,isMobile:1,isPlaying:10,disabled:2,className:3,click:4},Hb)}},Ol=$a;function Kb(i){let e,t,n,o=i[2].default,r=Ee(o,i,i[1],null),l=[{xmlns:"http://www.w3.org/2000/svg"},{width:"26"},{height:"24"},{fill:"none"},{"aria-hidden":"true"},{role:"img"},i[0]],a={};for(let s=0;s<l.length;s+=1)a=oe(a,l[s]);return{c(){e=N("svg"),r&&r.c(),t=N("path"),f(t,"fill","#fff"),f(t,"d","M16 10.835V7.5a1 1 0 1 1 2 0v9a1 1 0 0 1-2 0v-3.335l-8.149 4.67C7.03 18.304 6 17.715 6 16.772V7.227c0-.943 1.029-1.533 1.851-1.061L16 10.834z"),ge(e,a)},m(s,u){C(s,e,u),r&&r.m(e,null),p(e,t),n=!0},p(s,[u]){r&&r.p&&(!n||u&2)&&Ve(r,o,s,s[1],n?Me(o,s[1],u,null):Ae(s[1]),null),ge(e,a=Le(l,[{xmlns:"http://www.w3.org/2000/svg"},{width:"26"},{height:"24"},{fill:"none"},{"aria-hidden":"true"},{role:"img"},u&1&&s[0]]))},i(s){n||(d(r,s),n=!0)},o(s){_(r,s),n=!1},d(s){s&&k(e),r&&r.d(s)}}}function jb(i,e,t){let{$$slots:n={},$$scope:o}=e;return i.$$set=r=>{t(0,e=oe(oe({},e),he(r))),"$$scope"in r&&t(1,o=r.$$scope)},e=he(e),[e,o,n]}var eu=class extends j{constructor(e){super(),W(this,e,jb,Kb,U,{})}},Zd=eu;function Wb(i){let e,t;return e=new Zd({props:{style:i[1],"data-testid":i[0]?"prev-icon":"next-icon"}}),{c(){D(e.$$.fragment)},m(n,o){B(e,n,o),t=!0},p(n,[o]){let r={};o&2&&(r.style=n[1]),o&1&&(r["data-testid"]=n[0]?"prev-icon":"next-icon"),e.$set(r)},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){_(e.$$.fragment,n),t=!1},d(n){R(e,n)}}}function Gb(i,e,t){let{isPrev:n=!1}=e,{isMobile:o=!1}=e,r;return i.$$set=l=>{"isPrev"in l&&t(0,n=l.isPrev),"isMobile"in l&&t(2,o=l.isMobile)},i.$$.update=()=>{if(i.$$.dirty&5)e:n&&o?t(1,r="transform: scaleX(-1) scale(1.3333);"):n?t(1,r="transform: scaleX(-1);"):o?t(1,r="transform: scale(1.3333);"):t(1,r=void 0)},[n,r,o]}var tu=class extends j{constructor(e){super(),W(this,e,Gb,Wb,U,{isPrev:0,isMobile:2})}},Xd=tu;function Qb(i){let e,t;return e=new Xd({props:{isMobile:i[1],isPrev:i[3]==="prev"}}),{c(){D(e.$$.fragment)},m(n,o){B(e,n,o),t=!0},p(n,o){let r={};o&2&&(r.isMobile=n[1]),o&8&&(r.isPrev=n[3]==="prev"),e.$set(r)},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){_(e.$$.fragment,n),t=!1},d(n){R(e,n)}}}function Yb(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:[Qb]},$$scope:{ctx:i}};return i[0]!==void 0&&(r.ref=i[0]),e=new gt({props:r}),_e.push(()=>He(e,"ref",o)),{c(){D(e.$$.fragment)},m(l,a){B(e,l,a),n=!0},p(l,[a]){let s={};a&8&&(s.testId="btn-"+l[3]),a&4&&(s.disabled=l[2]),a&32&&(s.ariaLabel=l[5]),a&16&&(s.click=l[4]),a&138&&(s.$$scope={dirty:a,ctx:l}),!t&&a&1&&(t=!0,s.ref=l[0],Fe(()=>t=!1)),e.$set(s)},i(l){n||(d(e.$$.fragment,l),n=!0)},o(l){_(e.$$.fragment,l),n=!1},d(l){R(e,l)}}}function Zb(i,e,t){let{ref:n=void 0}=e,{isMobile:o=!1}=e,{disabled:r=!1}=e,{type:l}=e,{click:a}=e,s;function u(c){n=c,t(0,n)}return i.$$set=c=>{"ref"in c&&t(0,n=c.ref),"isMobile"in c&&t(1,o=c.isMobile),"disabled"in c&&t(2,r=c.disabled),"type"in c&&t(3,l=c.type),"click"in c&&t(4,a=c.click)},i.$$.update=()=>{if(i.$$.dirty&8)e:t(5,s=l==="prev"?Y("tooltip_previous"):Y("tooltip_next"))},[n,o,r,l,a,s,u]}var iu=class extends j{constructor(e){super(),W(this,e,Zb,Yb,U,{ref:0,isMobile:1,disabled:2,type:3,click:4})}},ml=iu;function Xb(i){let e,t,n,o=i[2].default,r=Ee(o,i,i[1],null),l=[{xmlns:"http://www.w3.org/2000/svg"},{width:"24"},{height:"24"},{fill:"none"},{"aria-hidden":"true"},{"data-testid":"vk-logo-icon"},{role:"img"},i[0]],a={};for(let s=0;s<l.length;s+=1)a=oe(a,l[s]);return{c(){e=N("svg"),r&&r.c(),t=N("path"),f(t,"fill","#fff"),f(t,"fill-rule","evenodd"),f(t,"d","M4.265 4.265C3 5.531 3 7.567 3 11.64v.72c0 4.073 0 6.11 1.265 7.375C5.531 21 7.567 21 11.64 21h.72c4.073 0 6.11 0 7.375-1.265C21 18.469 21 16.433 21 12.36v-.72c0-4.073 0-6.11-1.265-7.375C18.469 3 16.433 3 12.36 3h-.72C7.567 3 5.53 3 4.265 4.265M6 8.5c.096 4.682 2.556 7.5 6.61 7.5h.235v-2.679c1.476.15 2.577 1.254 3.026 2.679H18c-.578-2.132-2.075-3.31-3.005-3.76.93-.558 2.246-1.908 2.556-3.74h-1.937c-.406 1.49-1.615 2.84-2.77 2.968V8.5h-1.968v5.197c-1.197-.3-2.759-1.757-2.823-5.197z"),f(t,"clip-rule","evenodd"),ge(e,a)},m(s,u){C(s,e,u),r&&r.m(e,null),p(e,t),n=!0},p(s,[u]){r&&r.p&&(!n||u&2)&&Ve(r,o,s,s[1],n?Me(o,s[1],u,null):Ae(s[1]),null),ge(e,a=Le(l,[{xmlns:"http://www.w3.org/2000/svg"},{width:"24"},{height:"24"},{fill:"none"},{"aria-hidden":"true"},{"data-testid":"vk-logo-icon"},{role:"img"},u&1&&s[0]]))},i(s){n||(d(r,s),n=!0)},o(s){_(r,s),n=!1},d(s){s&&k(e),r&&r.d(s)}}}function Jb(i,e,t){let{$$slots:n={},$$scope:o}=e;return i.$$set=r=>{t(0,e=oe(oe({},e),he(r))),"$$scope"in r&&t(1,o=r.$$scope)},e=he(e),[e,o,n]}var nu=class extends j{constructor(e){super(),W(this,e,Jb,Xb,U,{})}},Jd=nu;function xb(i){let e,t,n,o,r,l,a=i[2].default,s=Ee(a,i,i[1],null),u=[{xmlns:"http://www.w3.org/2000/svg"},{width:"95"},{height:"24"},{fill:"none"},{"aria-hidden":"true"},{role:"img"},i[0]],c={};for(let m=0;m<u.length;m+=1)c=oe(c,u[m]);return{c(){e=N("svg"),s&&s.c(),t=N("path"),n=N("path"),o=N("path"),r=N("path"),f(t,"fill","#fff"),f(t,"d","M32.55 17.042h2.494L38.707 7h-1.81l-2.936 8.276h-.286L30.84 7H29zM48.075 17.042l-4.619-5.199L47.718 7h-2.11l-3.563 4.088h-.413V7h-1.71v10.042h1.71V12.74h.427l3.764 4.302z"),f(n,"fill","#fff"),f(n,"d","M57.888 11.886c.883-.342 1.44-1.125 1.44-2.151C59.327 8.14 58.001 7 56.062 7h-3.92v10.042h4.205c1.953 0 3.279-1.14 3.279-2.806 0-1.168-.656-2.037-1.74-2.35m-4.034-3.39h2.21c.911 0 1.539.555 1.539 1.381 0 .812-.628 1.368-1.54 1.368h-2.21zm2.494 7.05h-2.494V12.74h2.494c.898 0 1.525.57 1.525 1.396 0 .84-.627 1.41-1.525 1.41M61.188 17.042h2.323l2.766-5.498h.228v5.498h1.568V9.635h-2.324l-2.765 5.498h-.228V9.635h-1.568zM69.146 19.25h1.64v-2.208h5.33v2.208h1.64v-3.703h-1.283V9.635h-5.431l-.37 3.79c-.13 1.338-.528 2.121-1.34 2.121h-.186zm2.494-3.703c.4-.385.57-1.04.685-2.151l.228-2.265h2.28v4.416zM86.025 13.253c0-2.136-1.597-3.76-3.849-3.76s-3.848 1.61-3.848 3.846 1.596 3.846 3.848 3.846c1.54 0 2.994-.727 3.55-2.137l-1.54-.256c-.356.527-1.04.897-1.91.897-1.254 0-2.081-.77-2.238-1.909h5.958c.015-.156.029-.327.029-.527m-3.849-2.336c1.027 0 1.796.655 2.067 1.581h-4.105c.27-.954 1.04-1.58 2.038-1.58M90.837 17.185c2.324 0 3.963-1.596 3.963-3.846s-1.64-3.846-3.963-3.846-3.962 1.595-3.962 3.846c0 2.25 1.639 3.846 3.962 3.846m0-1.496c-1.34 0-2.252-.954-2.252-2.35s.912-2.35 2.252-2.35 2.252.954 2.252 2.35-.912 2.35-2.252 2.35"),f(n,"class","_ru"),f(o,"fill","#fff"),f(o,"d","M35.02 17.36h-2.484L29 7.422h1.832l2.826 8.188h.284l2.925-8.188h1.803zM43.43 12.215l4.6 5.144h-2.243l-3.749-4.256h-.426v4.256h-1.704V7.423h1.704v4.045h.412l3.55-4.045h2.101zM56.808 17.36h-2.485l-3.536-9.937h1.832l2.826 8.188h.284l2.925-8.188h1.803zM63.257 17.36h-1.633v-7.33h1.633zm-.809-8.373q-.455 0-.738-.268a.97.97 0 0 1-.284-.718.97.97 0 0 1 .284-.72q.297-.28.738-.281.44 0 .724.282a.97.97 0 0 1 .284.719.97.97 0 0 1-.284.718q-.284.268-.724.268M68.382 17.5q-1.037 0-1.86-.48a3.5 3.5 0 0 1-1.293-1.352q-.454-.874-.454-1.973t.454-1.96a3.37 3.37 0 0 1 1.293-1.352 3.55 3.55 0 0 1 1.86-.494q.894 0 1.59.367.696.352 1.136.888V7.423h1.633v9.936h-1.22l-.342-1.184a4 4 0 0 1-1.164.944q-.71.381-1.633.381m.397-1.452q1.038 0 1.676-.648.654-.663.653-1.705 0-1.044-.653-1.692-.639-.662-1.675-.662-1.023 0-1.662.662-.639.649-.639 1.692t.64 1.705q.638.648 1.66.648M81.929 13.61q0 .211-.029.522h-5.935q.113.86.71 1.38.597.508 1.52.508.624 0 1.121-.24.51-.24.781-.648l1.534.254a3 3 0 0 1-1.378 1.564q-.965.55-2.158.55-1.108 0-1.988-.48a3.6 3.6 0 0 1-1.363-1.352q-.483-.874-.483-1.973t.483-1.96a3.5 3.5 0 0 1 1.363-1.352q.88-.495 1.988-.494 1.107 0 1.974.494.88.478 1.363 1.339.497.845.497 1.888M78.095 11.3q-.738 0-1.292.423-.54.422-.739 1.141h4.09a2.17 2.17 0 0 0-.767-1.127q-.54-.437-1.292-.437M86.751 17.5q-1.136 0-2.044-.48a3.66 3.66 0 0 1-1.406-1.352q-.497-.874-.497-1.973t.497-1.96q.511-.873 1.406-1.352.909-.495 2.044-.494 1.137 0 2.031.494a3.4 3.4 0 0 1 1.406 1.353q.51.86.511 1.959 0 1.098-.511 1.973a3.53 3.53 0 0 1-1.406 1.353q-.894.48-2.03.479m0-1.48q.995 0 1.62-.634.624-.648.624-1.691t-.625-1.678q-.624-.648-1.619-.648-.993 0-1.618.648-.625.634-.625 1.678 0 1.043.625 1.69.625.636 1.618.635"),f(o,"class","_en"),f(r,"fill","#fff"),f(r,"fill-rule","evenodd"),f(r,"d","M7 8.6c0-1.96 0-2.94.381-3.689a3.5 3.5 0 0 1 1.53-1.53C9.66 3 10.64 3 12.6 3h1.36c2.464 0 3.696 0 4.638.48a4.4 4.4 0 0 1 1.922 1.922c.48.942.48 2.174.48 4.638v3.92c0 2.464 0 3.696-.48 4.638a4.4 4.4 0 0 1-1.922 1.922c-.942.48-2.174.48-4.638.48H12.6c-1.96 0-2.94 0-3.689-.381a3.5 3.5 0 0 1-1.53-1.53C7 18.34 7 17.36 7 15.4zm9.265 1.744c.901.539 1.352.808 1.505 1.157.133.304.133.65 0 .954-.153.349-.604.618-1.505 1.157l-2.386 1.425c-.943.563-1.414.844-1.802.807a1.2 1.2 0 0 1-.847-.48C11 15.05 11 14.5 11 13.403v-2.85c0-1.098 0-1.647.23-1.96.201-.274.51-.45.847-.481.388-.037.86.244 1.802.807zM5 9.04c0-2.464 0-3.696.48-4.638a4.4 4.4 0 0 1 .955-1.253 3.7 3.7 0 0 0-1.033.33A4.4 4.4 0 0 0 3.48 5.403C3 6.344 3 7.576 3 10.04v3.92c0 2.464 0 3.696.48 4.638a4.4 4.4 0 0 0 1.922 1.922c.304.155.637.26 1.033.33a4.4 4.4 0 0 1-.955-1.252C5 18.656 5 17.424 5 14.96z"),f(r,"clip-rule","evenodd"),ge(e,c)},m(m,h){C(m,e,h),s&&s.m(e,null),p(e,t),p(e,n),p(e,o),p(e,r),l=!0},p(m,[h]){s&&s.p&&(!l||h&2)&&Ve(s,a,m,m[1],l?Me(a,m[1],h,null):Ae(m[1]),null),ge(e,c=Le(u,[{xmlns:"http://www.w3.org/2000/svg"},{width:"95"},{height:"24"},{fill:"none"},{"aria-hidden":"true"},{role:"img"},h&1&&m[0]]))},i(m){l||(d(s,m),l=!0)},o(m){_(s,m),l=!1},d(m){m&&k(e),s&&s.d(m)}}}function $b(i,e,t){let{$$slots:n={},$$scope:o}=e;return i.$$set=r=>{t(0,e=oe(oe({},e),he(r))),"$$scope"in r&&t(1,o=r.$$scope)},e=he(e),[e,o,n]}var ou=class extends j{constructor(e){super(),W(this,e,$b,xb,U,{})}},xd=ou;function e4(i){Se(i,"svelte-1nhjml",'svg[data-testid="vk-video-logo-icon--short"] ._ru,svg[data-testid="vk-video-logo-icon--short"] ._en,svg[data-testid="vk-video-logo-icon"] ._en,svg[data-testid="vk-video-logo-icon--en"] ._ru{visibility:hidden;opacity:0}')}function t4(i){let e,t;return e=new xd({props:{width:i[0],height:"24",viewBox:"0 0 "+(i[0]+1)+" 24","data-testid":i[1]}}),{c(){D(e.$$.fragment)},m(n,o){B(e,n,o),t=!0},p(n,[o]){let r={};o&1&&(r.width=n[0]),o&1&&(r.viewBox="0 0 "+(n[0]+1)+" 24"),o&2&&(r["data-testid"]=n[1]),e.$set(r)},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){_(e.$$.fragment,n),t=!1},d(n){R(e,n)}}}var i4="vk-video-logo-icon--short";function n4(i,e,t){let{short:n=!1}=e,{isCyrillic:o=!0}=e,r,l;return i.$$set=a=>{"short"in a&&t(2,n=a.short),"isCyrillic"in a&&t(3,o=a.isCyrillic)},i.$$.update=()=>{if(i.$$.dirty&12)e:t(0,r=n?21:95),t(1,l=n?i4:"vk-video-logo-icon"),!o&&!n&&(t(0,r=91),t(1,l="vk-video-logo-icon--en"))},[r,l,n,o]}var lu=class extends j{constructor(e){super(),W(this,e,n4,t4,U,{short:2,isCyrillic:3},e4)}},$d=lu;var em=require("@vkontakte/videoplayer-shared");function l4(i){let e,t;return e=new Jd({}),{c(){D(e.$$.fragment)},m(n,o){B(e,n,o),t=!0},p:pe,i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){_(e.$$.fragment,n),t=!1},d(n){R(e,n)}}}function r4(i){let e,t;return e=new $d({props:{short:i[4],isCyrillic:i[5]}}),{c(){D(e.$$.fragment)},m(n,o){B(e,n,o),t=!0},p(n,o){let r={};o&16&&(r.short=n[4]),o&32&&(r.isCyrillic=n[5]),e.$set(r)},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){_(e.$$.fragment,n),t=!1},d(n){R(e,n)}}}function s4(i){let e,t,n,o,r=[r4,l4],l=[];function a(s,u){return s[2]?0:1}return e=a(i,-1),t=l[e]=r[e](i),{c(){t.c(),n=rt()},m(s,u){l[e].m(s,u),C(s,n,u),o=!0},p(s,u){let c=e;e=a(s,u),e===c?l[e].p(s,u):(fe(),_(l[c],1,1,()=>{l[c]=null}),ce(),t=l[e],t?t.p(s,u):(t=l[e]=r[e](s),t.c()),d(t,1),t.m(n.parentNode,n))},i(s){o||(d(t),o=!0)},o(s){_(t),o=!1},d(s){s&&k(n),l[e].d(s)}}}function a4(i){let e,t,n;function o(l){i[15](l)}let r={className:"btn-full-opacity",disabled:!i[1],click:i[9],testId:i[2]?"btn-vk-video-logo":"btn-vk-logo",ariaLabel:i[3],$$slots:{default:[s4]},$$scope:{ctx:i}};return i[0]!==void 0&&(r.ref=i[0]),e=new gt({props:r}),_e.push(()=>He(e,"ref",o)),{c(){D(e.$$.fragment)},m(l,a){B(e,l,a),n=!0},p(l,[a]){let s={};a&2&&(s.disabled=!l[1]),a&4&&(s.testId=l[2]?"btn-vk-video-logo":"btn-vk-logo"),a&8&&(s.ariaLabel=l[3]),a&262196&&(s.$$scope={dirty:a,ctx:l}),!t&&a&1&&(t=!0,s.ref=l[0],Fe(()=>t=!1)),e.$set(s)},i(l){n||(d(e.$$.fragment,l),n=!0)},o(l){_(e.$$.fragment,l),n=!1},d(l){R(e,l)}}}function u4(i,e,t){let n,o,r,l,{ref:a=void 0}=e,{logoClickable:s=!1}=e,{targetUrl:u=""}=e,{click:c}=e,m=Ut(),h=it(),y=h.ui.currentGridType$;F(i,y,A=>t(13,r=A));let b=h.ui.isMobile;F(i,b,A=>t(14,l=A));let S=h.interfaceLanguage$;F(i,S,A=>t(12,o=A));let w,P,v,g=()=>{var A,q;c(),(q=(A=h.callbacks)==null?void 0:A.onLogoClicked)==null||q.call(A),u&&window.open(u,"_blank")};function I(A){a=A,t(0,a)}i.$$set=A=>{"ref"in A&&t(0,a=A.ref),"logoClickable"in A&&t(1,s=A.logoClickable),"targetUrl"in A&&t(10,u=A.targetUrl),"click"in A&&t(11,c=A.click)},i.$$.update=()=>{if(i.$$.dirty&24580)e:t(4,v=(l||Br(r,"l"))&&P);if(i.$$.dirty&4096)e:t(5,n=o===em.InterfaceLanguage.RU)};e:t(3,w=m.logoType==="vk_video"?Y("tooltip_vk_video_logo"):Y("tooltip_vk_logo"));e:t(2,P=m.logoType==="vk_video"||m.logoType==="vk_video_mobile");return[a,s,P,w,v,n,y,b,S,g,u,c,o,r,l,I]}var ru=class extends j{constructor(e){super(),W(this,e,u4,a4,U,{ref:0,logoClickable:1,targetUrl:10,click:11})}},Nr=ru;var im=require("@vkontakte/videoplayer-core");var su=require("@vkontakte/videoplayer-core");function f4(i){Se(i,"svelte-8z1bf5",".connecting.svelte-8z1bf5 .wave.svelte-8z1bf5{animation-duration:1s;animation-iteration-count:infinite}.connecting.svelte-8z1bf5 .wave1.svelte-8z1bf5{animation-name:svelte-8z1bf5-wave1}.connecting.svelte-8z1bf5 .wave2.svelte-8z1bf5{animation-name:svelte-8z1bf5-wave2}.connecting.svelte-8z1bf5 .wave3.svelte-8z1bf5{animation-name:svelte-8z1bf5-wave3}@keyframes svelte-8z1bf5-wave1{0%{opacity:0.3}33%{opacity:1}66%{opacity:1}100%{opacity:1}}@keyframes svelte-8z1bf5-wave2{0%{opacity:0.3}33%{opacity:0.3}66%{opacity:1}100%{opacity:1}}@keyframes svelte-8z1bf5-wave3{0%{opacity:0.3}33%{opacity:0.3}66%{opacity:0.3}100%{opacity:1}}")}function c4(i){let e,t,n,o,r,l,a,s;return{c(){e=N("svg"),t=N("g"),n=N("path"),o=N("path"),r=N("path"),l=N("path"),a=N("path"),s=N("path"),f(n,"class","wave wave1 svelte-8z1bf5"),f(n,"d","M1 18v3h3c0-1.66-1.34-3-3-3z"),f(n,"fill","#fff"),f(o,"class","wave wave2 svelte-8z1bf5"),f(o,"d","M1 14v2c2.76 0 5 2.24 5 5h2c0-3.87-3.13-7-7-7z"),f(o,"fill","#fff"),f(r,"class","wave wave3 svelte-8z1bf5"),f(r,"d","M1 10v2a9 9 0 0 1 9 9h2c0-6.08-4.93-11-11-11z"),f(r,"fill","#fff"),f(l,"d","M21 3H3c-1.1 0-2 .9-2 2v3h2V5h18v14h-7v2h7c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2z"),f(l,"fill","#fff"),f(a,"d","M0 0h24v24H0z"),f(s,"d","M5.667 7.44H18.5v9.167h-5.161a11.947 11.947 0 0 0-7.673-7.672V7.44Z"),f(s,"fill","#fff"),z(s,"hidden",!i[1]),f(t,"fill","none"),f(t,"fill-rule","evenodd"),f(e,"width","24"),f(e,"height","24"),f(e,"xmlns","http://www.w3.org/2000/svg"),f(e,"aria-hidden","true"),f(e,"data-testid","chromecast-icon"),f(e,"class","svelte-8z1bf5"),z(e,"connecting",i[2])},m(u,c){C(u,e,c),p(e,t),p(t,n),p(t,o),p(t,r),p(t,l),p(t,a),p(t,s)},p(u,c){c&2&&z(s,"hidden",!u[1]),c&4&&z(e,"connecting",u[2])},d(u){u&&k(e)}}}function d4(i){let e,t,n,o,r,l,a,s,u,c,m,h,y,b,S,w,P,v,g,I,A;return{c(){e=N("svg"),t=N("g"),n=N("mask"),o=N("path"),l=N("path"),a=N("path"),u=N("path"),c=N("defs"),m=N("clipPath"),h=N("path"),b=N("filter"),S=N("feFlood"),w=N("feColorMatrix"),P=N("feOffset"),v=N("feGaussianBlur"),g=N("feColorMatrix"),I=N("feBlend"),A=N("feBlend"),f(o,"fill",r=i[1]?"#2688EB":"#fff"),f(o,"d","M1.1 3.1h22v18h-22z"),f(l,"fill-rule","evenodd"),f(l,"clip-rule","evenodd"),f(l,"d","M16.2 5.9c.855 0 1.442 0 1.897.038.445.036.683.103.856.19a2.1 2.1 0 0 1 .918.919c.088.172.155.411.191.856.037.455.038 1.042.038 1.897v4.4c0 .855 0 1.442-.038 1.897-.036.445-.103.683-.19.856a2.1 2.1 0 0 1-.919.918c-.172.088-.411.155-.856.191-.455.037-1.042.038-1.897.038H15a.9.9 0 0 0 0 1.8h1.238c.808 0 1.469 0 2.006-.044.556-.045 1.058-.142 1.527-.381a3.9 3.9 0 0 0 1.704-1.704c.239-.47.336-.971.381-1.527.044-.537.044-1.198.044-2.006V9.762c0-.808 0-1.469-.044-2.006-.045-.556-.142-1.058-.381-1.527a3.9 3.9 0 0 0-1.704-1.704c-.47-.239-.971-.336-1.527-.381-.537-.044-1.198-.044-2.006-.044H6a3.901 3.901 0 0 0-3.678 2.6.9.9 0 0 0 1.697.6A2.101 2.101 0 0 1 6 5.9h10.2ZM3.069 11.52a6.9 6.9 0 0 1 7.413 7.413.9.9 0 0 0 1.795.137 8.7 8.7 0 0 0-9.344-9.344.9.9 0 0 0 .136 1.794Zm.533 3.58c-.161 0-.32.011-.474.034a.9.9 0 1 1-.256-1.782A5.1 5.1 0 0 1 8.65 19.13a.9.9 0 1 1-1.782-.256A3.3 3.3 0 0 0 3.602 15.1Zm-1.5 3.3a1.5 1.5 0 1 1 3 0 1.5 1.5 0 0 1-3 0Z"),f(n,"id","c"),f(n,"maskUnits","userSpaceOnUse"),f(n,"x","1.1"),f(n,"y","3.1"),f(n,"width","22"),f(n,"height","18"),f(n,"fill","#000"),f(a,"fill-rule","evenodd"),f(a,"clip-rule","evenodd"),f(a,"d","M16.2 5.9c.855 0 1.442 0 1.897.038.445.036.683.103.856.19a2.1 2.1 0 0 1 .918.919c.088.172.155.411.191.856.037.455.038 1.042.038 1.897v4.4c0 .855 0 1.442-.038 1.897-.036.445-.103.683-.19.856a2.1 2.1 0 0 1-.919.918c-.172.088-.411.155-.856.191-.455.037-1.042.038-1.897.038H15a.9.9 0 0 0 0 1.8h1.238c.808 0 1.469 0 2.006-.044.556-.045 1.058-.142 1.527-.381a3.9 3.9 0 0 0 1.704-1.704c.239-.47.336-.971.381-1.527.044-.537.044-1.198.044-2.006V9.762c0-.808 0-1.469-.044-2.006-.045-.556-.142-1.058-.381-1.527a3.9 3.9 0 0 0-1.704-1.704c-.47-.239-.971-.336-1.527-.381-.537-.044-1.198-.044-2.006-.044H6a3.901 3.901 0 0 0-3.678 2.6.9.9 0 0 0 1.697.6A2.101 2.101 0 0 1 6 5.9h10.2ZM3.069 11.52a6.9 6.9 0 0 1 7.413 7.413.9.9 0 0 0 1.795.137 8.7 8.7 0 0 0-9.344-9.344.9.9 0 0 0 .136 1.794Zm.533 3.58c-.161 0-.32.011-.474.034a.9.9 0 1 1-.256-1.782A5.1 5.1 0 0 1 8.65 19.13a.9.9 0 1 1-1.782-.256A3.3 3.3 0 0 0 3.602 15.1Zm-1.5 3.3a1.5 1.5 0 1 1 3 0 1.5 1.5 0 0 1-3 0Z"),f(a,"fill",s=i[1]?"#2688EB":"#fff"),f(u,"d","m18.097 5.938-.04.498.04-.498Zm.856.19-.227.446.227-.445Zm.918.919-.445.227.445-.227Zm.191.856-.498.04.498-.04Zm0 8.194-.498-.04.498.04Zm-.19.856-.446-.227.445.227Zm-.919.918-.227-.445.227.445Zm-.856.191.04.498-.04-.498Zm-1.86 1.838v-.5.5Zm2.007-.044.04.498-.04-.498Zm1.527-.381-.227-.446.227.446Zm1.704-1.704.445.227-.445-.227Zm.381-1.527.498.04-.498-.04Zm.044-2.006h-.5.5Zm0-4.476h-.5.5Zm-.044-2.006.498-.04-.498.04Zm-.381-1.527.445-.227-.445.227ZM19.77 4.525l-.227.446.227-.446Zm-1.527-.381.04-.498-.04.498ZM16.238 4.1v.5-.5ZM6 4.1v-.5.5ZM2.322 6.7l-.471-.167.471.167Zm1.697.6-.471-.167.471.167ZM6 5.9v-.5.5Zm-2.931 5.62-.038-.498.038.498Zm7.413 7.413.498.038-.498-.038Zm1.795.137.498.038-.498-.038ZM2.931 9.725l-.038-.498.038.498Zm-.829.966.499-.038-.499.038Zm1.025 4.443-.071-.495.071.495Zm-1.019-.763.495-.071-.495.07Zm.763-1.02.071.496-.07-.495ZM8.65 19.13l.495.072-.495-.072Zm-1.019.764-.07.494.07-.494Zm-.763-1.02.495.072-.495-.071ZM18.138 5.44c-.48-.04-1.091-.04-1.938-.04v1c.863 0 1.426.001 1.856.036l.082-.996Zm1.042.243c-.255-.13-.567-.205-1.042-.243l-.082.996c.414.034.58.092.67.138l.454-.89Zm1.137 1.137a2.6 2.6 0 0 0-1.137-1.137l-.454.891a1.6 1.6 0 0 1 .7.7l.89-.454Zm.244 1.042c-.04-.475-.114-.787-.244-1.042l-.891.454c.046.09.104.256.138.67l.997-.082ZM20.6 9.8c0-.846 0-1.458-.04-1.938l-.996.082c.035.43.036.993.036 1.856h1Zm0 4.4V9.8h-1v4.4h1Zm-.04 1.938c.04-.48.04-1.092.04-1.938h-1c0 .863-.001 1.426-.036 1.856l.997.082Zm-.243 1.042c.13-.255.205-.567.244-1.042l-.997-.082c-.034.414-.092.58-.138.67l.89.454Zm-1.137 1.137a2.6 2.6 0 0 0 1.137-1.137l-.891-.454a1.6 1.6 0 0 1-.7.7l.454.89Zm-1.042.244c.475-.04.787-.114 1.042-.244l-.454-.891c-.09.046-.256.104-.67.138l.082.997ZM16.2 18.6c.847 0 1.458 0 1.938-.04l-.082-.996c-.43.035-.993.036-1.856.036v1Zm-1.2 0h1.2v-1H15v1Zm-.4.4c0-.22.18-.4.4-.4v-1a1.4 1.4 0 0 0-1.4 1.4h1Zm.4.4a.4.4 0 0 1-.4-.4h-1a1.4 1.4 0 0 0 1.4 1.4v-1Zm1.238 0H15v1h1.238v-1Zm1.965-.042c-.512.042-1.15.042-1.965.042v1c.8 0 1.484 0 2.046-.045l-.081-.997Zm1.34-.329c-.386.198-.815.286-1.34.329l.081.997c.587-.049 1.163-.154 1.714-.435l-.454-.89Zm1.486-1.485a3.4 3.4 0 0 1-1.485 1.485l.454.891a4.4 4.4 0 0 0 1.922-1.922l-.89-.454Zm.329-1.341c-.043.525-.131.954-.329 1.34l.891.455c.281-.552.386-1.127.434-1.714l-.996-.081Zm.042-1.965c0 .815 0 1.453-.042 1.965l.997.081c.045-.561.045-1.246.045-2.046h-1Zm0 0h1-1Zm0-4.476v4.476h1V9.762h-1Zm0 0h1-1Zm-.042-1.965c.042.512.042 1.15.042 1.965h1c0-.8 0-1.484-.045-2.046l-.997.081Zm-.329-1.34c.198.386.286.815.329 1.34l.997-.081c-.049-.587-.154-1.162-.435-1.714l-.89.454ZM19.544 4.97a3.4 3.4 0 0 1 1.485 1.485l.891-.454a4.4 4.4 0 0 0-1.922-1.922l-.454.89Zm-1.341-.329c.525.043.954.132 1.34.329l.455-.891c-.552-.281-1.127-.387-1.714-.434l-.081.996ZM16.238 4.6c.815 0 1.453 0 1.965.042l.081-.996c-.562-.046-1.246-.046-2.046-.046v1Zm0 0v-1 1ZM6 4.6h10.238v-1H6v1Zm0-1v1-1Zm0 0a4.401 4.401 0 0 0-4.15 2.933l.944.334A3.401 3.401 0 0 1 6 4.6v-1ZM1.85 6.533a1.4 1.4 0 0 0 .854 1.787l.333-.943a.4.4 0 0 1-.243-.51l-.943-.334Zm.854 1.787a1.4 1.4 0 0 0 1.787-.853l-.943-.334a.4.4 0 0 1-.51.244l-.334.943Zm1.787-.853A1.601 1.601 0 0 1 6 6.4v-1c-1.131 0-2.095.722-2.452 1.733l.943.334ZM16.2 5.4H6v1h10.2v-1ZM3.602 11c-.192 0-.383.007-.571.022l.076.997A6.53 6.53 0 0 1 3.602 12v-1Zm7.4 7.4a7.4 7.4 0 0 0-7.4-7.4v1a6.4 6.4 0 0 1 6.4 6.4h1Zm-.022.571c.015-.188.022-.379.022-.571h-1c0 .167-.006.332-.019.495l.997.076Zm.369.43a.4.4 0 0 1-.369-.43l-.997-.076a1.4 1.4 0 0 0 1.29 1.502l.076-.997Zm.429-.37a.4.4 0 0 1-.43.37l-.075.996a1.4 1.4 0 0 0 1.502-1.29l-.997-.075Zm.024-.631c0 .213-.008.423-.024.632l.997.076c.018-.234.027-.47.027-.708h-1Zm-8.2-8.2a8.2 8.2 0 0 1 8.2 8.2h1a9.2 9.2 0 0 0-9.2-9.2v1Zm-.632.024c.209-.016.42-.024.632-.024v-1c-.238 0-.474.01-.708.027l.076.997Zm-.368.43a.4.4 0 0 1 .368-.43l-.076-.997a1.4 1.4 0 0 0-1.29 1.502l.998-.076Zm.429.368a.4.4 0 0 1-.43-.369l-.996.076a1.4 1.4 0 0 0 1.502 1.29l-.076-.997Zm.168 4.607c.13-.02.265-.029.403-.029v-1c-.185 0-.367.013-.545.039l.142.99Zm-1.585-1.187A1.4 1.4 0 0 0 3.2 15.629l-.142-.99a.4.4 0 0 1-.453-.34l-.99.143Zm1.187-1.585a1.4 1.4 0 0 0-1.187 1.585l.99-.142a.4.4 0 0 1 .34-.453l-.143-.99Zm.801-.057c-.271 0-.538.02-.8.057l.141.99c.216-.031.436-.047.659-.047v-1Zm5.6 5.6a5.6 5.6 0 0 0-5.6-5.6v1a4.6 4.6 0 0 1 4.6 4.6h1Zm-.057.8c.038-.262.057-.529.057-.8h-1c0 .223-.016.443-.047.659l.99.142ZM7.56 20.389A1.4 1.4 0 0 0 9.145 19.2l-.99-.142a.4.4 0 0 1-.453.34l-.142.99Zm-1.187-1.585a1.4 1.4 0 0 0 1.187 1.584l.142-.99a.4.4 0 0 1-.339-.452l-.99-.142Zm.029-.403c0 .138-.01.272-.029.403l.99.142c.026-.178.039-.36.039-.545h-1Zm-2.8-2.8a2.8 2.8 0 0 1 2.8 2.8h1a3.8 3.8 0 0 0-3.8-3.8v1Zm0 .8a2 2 0 0 0-2 2h1a1 1 0 0 1 1-1v-1Zm2 2a2 2 0 0 0-2-2v1a1 1 0 0 1 1 1h1Zm-2 2a2 2 0 0 0 2-2h-1a1 1 0 0 1-1 1v1Zm-2-2a2 2 0 0 0 2 2v-1a1 1 0 0 1-1-1h-1Z"),f(u,"fill","#000"),f(u,"fill-opacity",".12"),f(u,"mask","url(#c)"),f(t,"filter","url(#b)"),f(t,"clip-path","url(#a)"),f(h,"fill",y=i[1]?"#2688EB":"#fff"),f(h,"d","M0 0h24v24H0z"),f(m,"id","a"),f(S,"flood-opacity","0"),f(S,"result","BackgroundImageFix"),f(w,"in","SourceAlpha"),f(w,"values","0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0"),f(w,"result","hardAlpha"),f(v,"stdDeviation","2.5"),f(g,"values","0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.16 0"),f(I,"in2","BackgroundImageFix"),f(I,"result","effect1_dropShadow_4085_178456"),f(A,"in","SourceGraphic"),f(A,"in2","effect1_dropShadow_4085_178456"),f(A,"result","shape"),f(b,"id","b"),f(b,"x","-3.4"),f(b,"y","-1.4"),f(b,"width","30.8"),f(b,"height","26.802"),f(b,"filterUnits","userSpaceOnUse"),f(b,"color-interpolation-filters","sRGB"),f(e,"width","24"),f(e,"height","24"),f(e,"fill","none"),f(e,"xmlns","http://www.w3.org/2000/svg"),f(e,"aria-hidden","true"),f(e,"data-testid","chromecast-mobile-icon")},m(q,K){C(q,e,K),p(e,t),p(t,n),p(n,o),p(n,l),p(t,a),p(t,u),p(e,c),p(c,m),p(m,h),p(c,b),p(b,S),p(b,w),p(b,P),p(b,v),p(b,g),p(b,I),p(b,A)},p(q,K){K&2&&r!==(r=q[1]?"#2688EB":"#fff")&&f(o,"fill",r),K&2&&s!==(s=q[1]?"#2688EB":"#fff")&&f(a,"fill",s),K&2&&y!==(y=q[1]?"#2688EB":"#fff")&&f(h,"fill",y)},d(q){q&&k(e)}}}function m4(i){let e;function t(r,l){return r[0]?d4:c4}let n=t(i,-1),o=n(i);return{c(){o.c(),e=rt()},m(r,l){o.m(r,l),C(r,e,l)},p(r,[l]){n===(n=t(r,l))&&o?o.p(r,l):(o.d(1),o=n(r),o&&(o.c(),o.m(e.parentNode,e)))},i:pe,o:pe,d(r){r&&k(e),o.d(r)}}}function p4(i,e,t){let{isMobile:n=!1}=e,{state:o}=e,r,l;return i.$$set=a=>{"isMobile"in a&&t(0,n=a.isMobile),"state"in a&&t(3,o=a.state)},i.$$.update=()=>{if(i.$$.dirty&8)e:t(2,l=o===su.ChromecastState.CONNECTING),t(1,r=o===su.ChromecastState.CONNECTED)},[n,r,l,o]}var au=class extends j{constructor(e){super(),W(this,e,p4,m4,U,{isMobile:0,state:3},f4)}},tm=au;var nm=require("@vkontakte/videoplayer-shared");function _4(i){let e,t;return e=new tm({props:{isMobile:i[1],state:i[2]}}),{c(){D(e.$$.fragment)},m(n,o){B(e,n,o),t=!0},p(n,o){let r={};o&2&&(r.isMobile=n[1]),o&4&&(r.state=n[2]),e.$set(r)},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){_(e.$$.fragment,n),t=!1},d(n){R(e,n)}}}function h4(i){let e,t,n;function o(l){i[5](l)}let r={ariaLabel:i[4],click:i[3],testId:"btn-chromecast",$$slots:{default:[_4]},$$scope:{ctx:i}};return i[0]!==void 0&&(r.ref=i[0]),e=new gt({props:r}),_e.push(()=>He(e,"ref",o)),{c(){D(e.$$.fragment)},m(l,a){B(e,l,a),n=!0},p(l,[a]){let s={};a&16&&(s.ariaLabel=l[4]),a&8&&(s.click=l[3]),a&70&&(s.$$scope={dirty:a,ctx:l}),!t&&a&1&&(t=!0,s.ref=l[0],Fe(()=>t=!1)),e.$set(s)},i(l){n||(d(e.$$.fragment,l),n=!0)},o(l){_(e.$$.fragment,l),n=!1},d(l){R(e,l)}}}function g4(i,e,t){let{ref:n=void 0}=e,{isMobile:o=!1}=e,{state:r}=e,{click:l=nm.noop}=e,a;function s(u){n=u,t(0,n)}return i.$$set=u=>{"ref"in u&&t(0,n=u.ref),"isMobile"in u&&t(1,o=u.isMobile),"state"in u&&t(2,r=u.state),"click"in u&&t(3,l=u.click)},i.$$.update=()=>{if(i.$$.dirty&4)e:t(4,a=r===im.ChromecastState.CONNECTED?Y("tooltip_chromecast_on"):Y("tooltip_chromecast_off"))},[n,o,r,l,a,s]}var uu=class extends j{constructor(e){super(),W(this,e,g4,h4,U,{ref:0,isMobile:1,state:2,click:3})}},Or=uu;var Fr=require("@vkontakte/videoplayer-core");function b4(i){let e,t;return e=new hr({props:{isActive:i[1]}}),{c(){D(e.$$.fragment)},m(n,o){B(e,n,o),t=!0},p(n,o){let r={};o&2&&(r.isActive=n[1]),e.$set(r)},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){_(e.$$.fragment,n),t=!1},d(n){R(e,n)}}}function v4(i){let e,t;return e=new gt({props:{className:i[0]?"":"btn--live btn-full-opacity",testId:i[1]?"btn-live":"btn-live-offset",disabled:i[1]&&i[3]===Fr.PlaybackState.PLAYING,ariaLabel:i[2],click:i[4],$$slots:{default:[b4]},$$scope:{ctx:i}}}),{c(){D(e.$$.fragment)},m(n,o){B(e,n,o),t=!0},p(n,[o]){let r={};o&1&&(r.className=n[0]?"":"btn--live btn-full-opacity"),o&2&&(r.testId=n[1]?"btn-live":"btn-live-offset"),o&10&&(r.disabled=n[1]&&n[3]===Fr.PlaybackState.PLAYING),o&4&&(r.ariaLabel=n[2]),o&16&&(r.click=n[4]),o&514&&(r.$$scope={dirty:o,ctx:n}),e.$set(r)},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){_(e.$$.fragment,n),t=!1},d(n){R(e,n)}}}function y4(i,e,t){let n,{isMobile:o=!1}=e,{isActiveLive:r=!1}=e,{ariaLabel:l=""}=e,a=it(),s=a.state.playbackState$;F(i,s,h=>t(3,n=h));let u=a.actions.internal.switchToActiveLive,c=a.actions.internal.togglePlay,m;return i.$$set=h=>{"isMobile"in h&&t(0,o=h.isMobile),"isActiveLive"in h&&t(1,r=h.isActiveLive),"ariaLabel"in h&&t(2,l=h.ariaLabel)},i.$$.update=()=>{if(i.$$.dirty&10)e:t(4,m=()=>{if(!r){u();return}n===Fr.PlaybackState.PAUSED&&c()})},[o,r,l,n,m,s]}var fu=class extends j{constructor(e){super(),W(this,e,y4,v4,U,{isMobile:0,isActiveLive:1,ariaLabel:2})}},Hr=fu;function w4(i){Se(i,"svelte-5ygsa2",'.tooltip-wrapper.svelte-5ygsa2{position:relative;display:block}.tooltip.svelte-5ygsa2{position:absolute;opacity:0;visibility:hidden;transition:opacity 200ms, visibility 200ms;bottom:100%;transform:translateX(-50%)}.pointer.svelte-5ygsa2:after{position:absolute;bottom:0;left:50%;width:0;border-top:5px solid rgba(41, 41, 41, .8);border-right:5px solid transparent;border-left:5px solid transparent;content:" ";font-size:0;line-height:0;transform:translate(-50%, 5px)}.tooltip.active.svelte-5ygsa2{opacity:1;visibility:visible}')}function k4(i){let e,t,n,o,r=i[9].default,l=Ee(r,i,i[8],null);return{c(){e=T("div"),t=T("div"),l&&l.c(),f(t,"class","tooltip svelte-5ygsa2"),z(t,"active",i[0]),z(t,"pointer",i[1]),f(e,"class","tooltip-wrapper svelte-5ygsa2"),f(e,"style",n=`transform: translate(${i[5]}px, ${i[2]}px);`)},m(a,s){C(a,e,s),p(e,t),l&&l.m(t,null),i[10](t),i[11](e),o=!0},p(a,[s]){l&&l.p&&(!o||s&256)&&Ve(l,r,a,a[8],o?Me(r,a[8],s,null):Ae(a[8]),null),(!o||s&1)&&z(t,"active",a[0]),(!o||s&2)&&z(t,"pointer",a[1]),(!o||s&36&&n!==(n=`transform: translate(${a[5]}px, ${a[2]}px);`))&&f(e,"style",n)},i(a){o||(d(l,a),o=!0)},o(a){_(l,a),o=!1},d(a){a&&k(e),l&&l.d(a),i[10](null),i[11](null)}}}function C4(i,e,t){let n,{$$slots:o={},$$scope:r}=e,{active:l=!1}=e,{pointer:a=!1}=e,{translateXPx:s=0}=e,{translateYPx:u=0}=e,{containerWidth:c}=e,m,h;function y(w){if(!h)return 0;let{width:P}=h.getBoundingClientRect(),v=P/2;return w<v?v:w>c-v?c-v:w}function b(w){_e[w?"unshift":"push"](()=>{h=w,t(4,h)})}function S(w){_e[w?"unshift":"push"](()=>{m=w,t(3,m)})}return i.$$set=w=>{"active"in w&&t(0,l=w.active),"pointer"in w&&t(1,a=w.pointer),"translateXPx"in w&&t(6,s=w.translateXPx),"translateYPx"in w&&t(2,u=w.translateYPx),"containerWidth"in w&&t(7,c=w.containerWidth),"$$scope"in w&&t(8,r=w.$$scope)},i.$$.update=()=>{if(i.$$.dirty&64)e:t(5,n=y(s))},[l,a,u,m,h,n,s,c,r,o,b,S]}var cu=class extends j{constructor(e){super(),W(this,e,C4,k4,U,{active:0,pointer:1,translateXPx:6,translateYPx:2,containerWidth:7},w4)}},om=cu;var zr=(i,e,t)=>t.filter(n=>n.time<i*e).pop();function S4(i){Se(i,"svelte-l51fc1",".timeline-preview.svelte-l51fc1{bottom:18px;border-radius:2px;pointer-events:none}.timeline-preview.mobile.svelte-l51fc1{bottom:72px}.preview.svelte-l51fc1{margin-bottom:10px;background-color:var(--timeline-preview-bg);box-shadow:0 0 2px var(--timeline-preview-shadow), 0 8px 24px var(--timeline-preview-shadow);border-radius:8px;border:1px solid var(--white)}.episode.svelte-l51fc1{margin-top:10px;margin-bottom:4px;font-size:13px;line-height:16px;text-shadow:0 8px 24px var(--timeline-preview-shadow), 0 0 2px var(--timeline-preview-shadow);max-width:150px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;text-align:center;font-weight:500}.time.svelte-l51fc1{font-size:13px;line-height:16px;text-align:center;color:var(--slider-filled-bg);text-shadow:0 8px 24px var(--timeline-preview-shadow), 0 0 2px var(--timeline-preview-shadow);font-weight:500}")}function lm(i){let e;function t(r,l){return r[2]&&r[10].completed===!1?T4:P4}let n=t(i,-1),o=n(i);return{c(){o.c(),e=rt()},m(r,l){o.m(r,l),C(r,e,l)},p(r,l){n===(n=t(r,l))&&o?o.p(r,l):(o.d(1),o=n(r),o&&(o.c(),o.m(e.parentNode,e)))},d(r){r&&k(e),o.d(r)}}}function P4(i){let e=(i[10].text||"")+"",t;return{c(){t=De(e)},m(n,o){C(n,t,o)},p(n,o){o&1024&&e!==(e=(n[10].text||"")+"")&&Ye(t,e)},d(n){n&&k(t)}}}function T4(i){let e=Y("tooltip_episode_unfinished")+"",t;return{c(){t=De(e)},m(n,o){C(n,t,o)},p:pe,d(n){n&&k(t)}}}function rm(i){let e,t;return{c(){e=T("div"),t=De(i[0]),f(e,"class","time svelte-l51fc1")},m(n,o){C(n,e,o),p(e,t)},p(n,o){o&1&&Ye(t,n[0])},d(n){n&&k(e)}}}function I4(i){let e,t,n,o,r,l,a=i[10]&&lm(i),s=!i[2]&&rm(i);return{c(){e=T("div"),t=T("div"),o=O(),r=T("div"),a&&a.c(),l=O(),s&&s.c(),f(t,"class","preview svelte-l51fc1"),f(t,"style",n=`width: ${i[3]}px; height: ${i[4]}px; background-image: url(${i[5]}); background-size: ${i[6]}px ${i[7]}px; background-position: ${i[8]}px ${i[9]}px; transform: translateY(${i[11]%180?-35:0}px) rotate(${i[11]}deg);`),f(r,"class","episode svelte-l51fc1"),f(e,"class","timeline-preview svelte-l51fc1"),z(e,"mobile",i[1])},m(u,c){C(u,e,c),p(e,t),p(e,o),p(e,r),a&&a.m(r,null),p(e,l),s&&s.m(e,null)},p(u,[c]){c&3064&&n!==(n=`width: ${u[3]}px; height: ${u[4]}px; background-image: url(${u[5]}); background-size: ${u[6]}px ${u[7]}px; background-position: ${u[8]}px ${u[9]}px; transform: translateY(${u[11]%180?-35:0}px) rotate(${u[11]}deg);`)&&f(t,"style",n),u[10]?a?a.p(u,c):(a=lm(u),a.c(),a.m(r,null)):a&&(a.d(1),a=null),u[2]?s&&(s.d(1),s=null):s?s.p(u,c):(s=rm(u),s.c(),s.m(e,null)),c&2&&z(e,"mobile",u[1])},i:pe,o:pe,d(u){u&&k(e),a&&a.d(),s&&s.d()}}}var pl=150;function E4(i,e,t){let n,{time:o=""}=e,{isMobile:r=!1}=e,{videoEpisodes:l=[]}=e,{previewThumbsData:a}=e,{progress:s=0}=e,{duration:u=0}=e,{isInteractive:c=!1}=e,h=it().ui.rotateAlpha;F(i,h,K=>t(11,n=K));let y,b,S,w,P,v,g,I;function A(){let K=a.frameWidth,re=a.frameHeight;return K>pl?(re=re/K*pl,K=pl):re>pl&&(K=K/re*pl,re=pl),{width:K,height:re}}function q(K){let re;a.isUV?re=Math.floor(u*K/a.frequency):re=Math.min(a.countTotal,Math.max(0,Math.floor(a.countTotal*K)));let ae=Math.floor(re/a.countPerImage),H=Math.floor(re%a.countPerImage/a.countPerRow),L=re%a.countPerRow,x=Math.floor(a.countPerImage/a.countPerRow);!a.isUV&&ae===Math.floor(a.countTotal/a.countPerImage)&&(x=Math.floor(a.countTotal%a.countPerImage/a.countPerRow),a.countTotal%a.countPerImage%a.countPerRow>0&&x++);let Q=a.countPerRow;!a.isUV&&ae===Math.floor(a.countTotal/a.countPerImage)&&a.countTotal%a.countPerImage>0&&(Q=Math.min(a.countPerRow,a.countTotal%a.countPerImage));let J=y*Q,E=b*x,te=-L*y,M=-H*b;return{imgSrc:a.links[ae],imgWidth:J,imgHeight:E,imgOffsetX:te,imgOffsetY:M}}i.$$set=K=>{"time"in K&&t(0,o=K.time),"isMobile"in K&&t(1,r=K.isMobile),"videoEpisodes"in K&&t(13,l=K.videoEpisodes),"previewThumbsData"in K&&t(14,a=K.previewThumbsData),"progress"in K&&t(15,s=K.progress),"duration"in K&&t(16,u=K.duration),"isInteractive"in K&&t(2,c=K.isInteractive)},i.$$.update=()=>{if(i.$$.dirty&32768)e:t(5,{imgSrc:S,imgWidth:w,imgHeight:P,imgOffsetX:v,imgOffsetY:g}=q(s),S,(t(6,w),t(15,s)),(t(7,P),t(15,s)),(t(8,v),t(15,s)),(t(9,g),t(15,s)));if(i.$$.dirty&106496)e:t(10,I=zr(s,u,l))};e:t(3,{width:y,height:b}=A(),y,t(4,b));return[o,r,c,y,b,S,w,P,v,g,I,n,h,l,a,s,u]}var du=class extends j{constructor(e){super(),W(this,e,E4,I4,U,{time:0,isMobile:1,videoEpisodes:13,previewThumbsData:14,progress:15,duration:16,isInteractive:2},S4)}},sm=du;function M4(i){Se(i,"svelte-5lzly8",".time.svelte-5lzly8{display:inline-block;padding:6px 10px;border-radius:3px;color:var(--white);background-color:rgba(41, 41, 41, .8)}")}function V4(i){let e,t;return{c(){e=T("span"),t=De(i[7]),f(e,"class","time svelte-5lzly8")},m(n,o){C(n,e,o),p(e,t)},p(n,o){o[0]&128&&Ye(t,n[7])},i:pe,o:pe,d(n){n&&k(e)}}}function A4(i){let e,t;return e=new sm({props:{time:i[7],isMobile:i[10],videoEpisodes:i[3],previewThumbsData:i[21],progress:i[8],duration:i[1],isInteractive:i[23]}}),{c(){D(e.$$.fragment)},m(n,o){B(e,n,o),t=!0},p(n,o){let 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||(d(e.$$.fragment,n),t=!0)},o(n){_(e.$$.fragment,n),t=!1},d(n){R(e,n)}}}function L4(i){let e,t,n,o,r=[A4,V4],l=[];function a(s,u){return s[14].features.timelinePreview&&s[21]&&!s[0]?0:1}return e=a(i,[-1,-1]),t=l[e]=r[e](i),{c(){t.c(),n=rt()},m(s,u){l[e].m(s,u),C(s,n,u),o=!0},p(s,u){let c=e;e=a(s,u),e===c?l[e].p(s,u):(fe(),_(l[c],1,1,()=>{l[c]=null}),ce(),t=l[e],t?t.p(s,u):(t=l[e]=r[e](s),t.c()),d(t,1),t.m(n.parentNode,n))},i(s){o||(d(t),o=!0)},o(s){_(t),o=!1},d(s){s&&k(n),l[e].d(s)}}}function B4(i){let e,t,n,o,r=[i[9]],l={$$slots:{default:[L4]},$$scope:{ctx:i}};for(let a=0;a<r.length;a+=1)l=oe(l,r[a]);return e=new om({props:l}),n=new cl({props:{isActiveLive:i[11],isMobile:i[10],ariaLabel:Y("aria_timeline"),ariaValueMin:0,ariaValueMax:i[1],ariaValueNow:Math.round(i[6]*100),ariaValueText:Y("aria_timeline_value",{position:i[5],duration:i[4]}),loadedProgress:i[12],filledProgress:i[6],handleProgress:i[6],videoEpisodes:i[3],onPointerDown:i[27],onHandleMove:i[28],onPointerMove:i[31],onPointerUp:i[29],onPointerEnter:i[30],onPointerLeave:i[32],isInteractive:i[23],disabled:i[13].has("TIMELINE"),hideHandel:i[2]}}),{c(){D(e.$$.fragment),t=O(),D(n.$$.fragment)},m(a,s){B(e,a,s),C(a,t,s),B(n,a,s),o=!0},p(a,s){let u=s[0]&512?Le(r,[$f(a[9])]):{};s[0]&1419|s[1]&65536&&(u.$$scope={dirty:s,ctx:a}),e.$set(u);let c={};s[0]&2048&&(c.isActiveLive=a[11]),s[0]&1024&&(c.isMobile=a[10]),s[0]&2&&(c.ariaValueMax=a[1]),s[0]&64&&(c.ariaValueNow=Math.round(a[6]*100)),s[0]&48&&(c.ariaValueText=Y("aria_timeline_value",{position:a[5],duration:a[4]})),s[0]&4096&&(c.loadedProgress=a[12]),s[0]&64&&(c.filledProgress=a[6]),s[0]&64&&(c.handleProgress=a[6]),s[0]&8&&(c.videoEpisodes=a[3]),s[0]&8192&&(c.disabled=a[13].has("TIMELINE")),s[0]&4&&(c.hideHandel=a[2]),n.$set(c)},i(a){o||(d(e.$$.fragment,a),d(n.$$.fragment,a),o=!0)},o(a){_(e.$$.fragment,a),_(n.$$.fragment,a),o=!1},d(a){a&&k(t),R(e,a),R(n,a)}}}function R4(i,e,t){let n,o,r,l,a,s,u,c,m,h,y,{showTimeline:b=!1}=e,S=it(),w=Ut(),P=S.state.bufferedProgress$;F(i,P,Te=>t(12,h=Te));let v=S.state.positionWithScrubbing$;F(i,v,Te=>t(39,s=Te));let g=S.state.duration$;F(i,g,Te=>t(1,r=Te));let I=S.state.isLive$;F(i,I,Te=>t(0,o=Te));let A=S.state.isActiveLive$;F(i,A,Te=>t(11,m=Te));let q=S.ui.isMobile;F(i,q,Te=>t(10,c=Te));let K=w.features.episodes?S.actions.internal.getVideoEpisodes():void 0,re=S.actions.internal.getPreviewThumbsData(),ae=S.state.interactiveEpisodes$;F(i,ae,Te=>t(40,u=Te));let H=S.state.isInteractive,L=S.state.isInteractiveTime$;F(i,L,Te=>t(2,l=Te));let x=S.state.isInteractiveExpectation$;F(i,x,Te=>t(38,a=Te));let Q=S.actions.internal.correctSeekTimeToInteractive,J=S.ui.controls.disabledControls$;F(i,J,Te=>t(13,y=Te));let E,te,M,ee,ke=!1,Qe="",je=0,$e=0,We=0,ve;function X(Te){return!Q||!H?Te:Q(Te*r)/r}function be(Te){S.actions.internal.startScrubbing(X(Te))}function Oe(Te){l||S.actions.internal.progressScrubbing(X(Te))}function xe(Te){S.actions.internal.completeScrubbing(X(Te)),t(34,ke=!1)}function et(Te,Z,Ce){Ue(Te,Z,Ce),t(34,ke=!0)}function ye(Te,Z,Ce){Ue(Te,Z,Ce),t(34,ke=!0)}function Be(){t(34,ke=!1)}function Ue(Te,Z,Ce){t(8,We=X(Te)),t(35,je=Z),Ce&&t(36,$e=Ce),t(7,Qe=Xe(Te))}function Xe(Te){let Z=An((o?1-Te:Te)*r);return o?`-${Z}`:Z}return i.$$set=Te=>{"showTimeline"in Te&&t(33,b=Te.showTimeline)},i.$$.update=()=>{if(i.$$.dirty[1]&512)e:t(3,E=H?u:K);if(i.$$.dirty[0]&2)e:t(4,te=An(r));if(i.$$.dirty[1]&256)e:t(5,M=An(s));if(i.$$.dirty[0]&2|i.$$.dirty[1]&256)e:t(6,ee=s/r);if(i.$$.dirty[0]&4|i.$$.dirty[1]&128)e:t(37,ve=a||l);if(i.$$.dirty[0]&1|i.$$.dirty[1]&124)e:t(9,n={containerWidth:$e,translateXPx:je,translateYPx:H&&re?-36:-16,active:ke&&b&&!ve,pointer:!w.features.timelinePreview||!re||o})},[o,r,l,E,te,M,ee,Qe,We,n,c,m,h,y,w,P,v,g,I,A,q,re,ae,H,L,x,J,be,Oe,xe,et,ye,Be,b,ke,je,$e,ve,a,s,u]}var mu=class extends j{constructor(e){super(),W(this,e,R4,B4,U,{showTimeline:33},M4,[-1,-1])}},am=mu;function D4(i){let e,t;return e=new cl({props:{ariaValueMin:0,ariaValueMax:i[0],ariaValueNow:Math.round(i[3]*100),ariaValueText:Y("aria_timeline_value",{position:i[2],duration:i[1]}),filledProgress:i[3],isAds:!0,hideHandel:!0,squareBorders:i[4]}}),{c(){D(e.$$.fragment)},m(n,o){B(e,n,o),t=!0},p(n,[o]){let r={};o&1&&(r.ariaValueMax=n[0]),o&8&&(r.ariaValueNow=Math.round(n[3]*100)),o&6&&(r.ariaValueText=Y("aria_timeline_value",{position:n[2],duration:n[1]})),o&8&&(r.filledProgress=n[3]),o&16&&(r.squareBorders=n[4]),e.$set(r)},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){_(e.$$.fragment,n),t=!1},d(n){R(e,n)}}}function N4(i,e,t){let n,{position:o=0}=e,{duration:r=0}=e,a=it().ui.isMobile;F(i,a,m=>t(4,n=m));let s,u,c;return i.$$set=m=>{"position"in m&&t(6,o=m.position),"duration"in m&&t(0,r=m.duration)},i.$$.update=()=>{if(i.$$.dirty&1)e:t(1,s=An(r));if(i.$$.dirty&64)e:t(2,u=An(o));if(i.$$.dirty&65)e:t(3,c=o/r)},[r,s,u,c,n,a,o]}var pu=class extends j{constructor(e){super(),W(this,e,N4,D4,U,{position:6,duration:0})}},qr=pu;function O4(i){Se(i,"svelte-1gqonyf",".timeline.svelte-1gqonyf{position:relative;pointer-events:all;display:flex;align-items:center;bottom:0;width:100%;min-width:86px;padding:3px 10px 4px;box-sizing:border-box}.timeline.mobile.svelte-1gqonyf{height:16px;padding:6px 12px 7px;margin-top:6px}.timeline-stub.svelte-1gqonyf{width:100%;min-width:20px}.timeline-stub.mobile.svelte-1gqonyf{height:8px}")}function F4(i){let e;return{c(){e=T("div"),f(e,"class","timeline-stub svelte-1gqonyf"),z(e,"mobile",i[2])},m(t,n){C(t,e,n)},p(t,n){n&4&&z(e,"mobile",t[2])},i:pe,o:pe,d(t){t&&k(e)}}}function H4(i){let e,t,n,o,r=[q4,z4],l=[];function a(s,u){return s[0]?0:1}return t=a(i,-1),n=l[t]=r[t](i),{c(){e=T("div"),n.c(),f(e,"class","timeline svelte-1gqonyf"),z(e,"mobile",i[2])},m(s,u){C(s,e,u),l[t].m(e,null),o=!0},p(s,u){let c=t;t=a(s,u),t===c?l[t].p(s,u):(fe(),_(l[c],1,1,()=>{l[c]=null}),ce(),n=l[t],n?n.p(s,u):(n=l[t]=r[t](s),n.c()),d(n,1),n.m(e,null)),(!o||u&4)&&z(e,"mobile",s[2])},i(s){o||(d(n),o=!0)},o(s){_(n),o=!1},d(s){s&&k(e),l[t].d()}}}function z4(i){let e,t;return e=new am({props:{showTimeline:i[1]}}),{c(){D(e.$$.fragment)},m(n,o){B(e,n,o),t=!0},p(n,o){let r={};o&2&&(r.showTimeline=n[1]),e.$set(r)},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){_(e.$$.fragment,n),t=!1},d(n){R(e,n)}}}function q4(i){let e,t;return e=new qr({props:{position:i[3],duration:i[4]}}),{c(){D(e.$$.fragment)},m(n,o){B(e,n,o),t=!0},p(n,o){let r={};o&8&&(r.position=n[3]),o&16&&(r.duration=n[4]),e.$set(r)},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){_(e.$$.fragment,n),t=!1},d(n){R(e,n)}}}function U4(i){let e,t,n,o,r=[H4,F4],l=[];function a(s,u){return s[1]?0:1}return e=a(i,-1),t=l[e]=r[e](i),{c(){t.c(),n=rt()},m(s,u){l[e].m(s,u),C(s,n,u),o=!0},p(s,[u]){let c=e;e=a(s,u),e===c?l[e].p(s,u):(fe(),_(l[c],1,1,()=>{l[c]=null}),ce(),t=l[e],t?t.p(s,u):(t=l[e]=r[e](s),t.c()),d(t,1),t.m(n.parentNode,n))},i(s){o||(d(t),o=!0)},o(s){_(t),o=!1},d(s){s&&k(n),l[e].d(s)}}}function K4(i,e,t){let n,o,r,l,{isAds:a=!1}=e,{canRewindLive:s}=e,{isRewindableLive:u}=e,{isHidden:c=!1}=e,m=it(),h=m.state.isLive$;F(i,h,P=>t(12,n=P));let y=m.ads.duration;F(i,y,P=>t(4,l=P));let b=m.ads.position;F(i,b,P=>t(3,r=P));let S=m.ui.isMobile;F(i,S,P=>t(2,o=P));let w;return i.$$set=P=>{"isAds"in P&&t(0,a=P.isAds),"canRewindLive"in P&&t(9,s=P.canRewindLive),"isRewindableLive"in P&&t(10,u=P.isRewindableLive),"isHidden"in P&&t(11,c=P.isHidden)},i.$$.update=()=>{if(i.$$.dirty&7681)e:t(1,w=!c&&(!n||n&&s&&u||a))},[a,w,o,r,l,h,y,b,S,s,u,c,n]}var _u=class extends j{constructor(e){super(),W(this,e,K4,U4,U,{isAds:0,canRewindLive:9,isRewindableLive:10,isHidden:11},O4)}},Ur=_u;var cm=require("@vkontakte/videoplayer-shared");function j4(i){let e,t,n,o,r,l=i[2].default,a=Ee(l,i,i[1],null),s=[{xmlns:"http://www.w3.org/2000/svg"},{width:"24"},{height:"24"},{fill:"none"},{"aria-hidden":"true"},{"data-testid":"episodes-icon"},{style:"flex-shrink:0"},{role:"img"},i[0]],u={};for(let c=0;c<s.length;c+=1)u=oe(u,s[c]);return{c(){e=N("svg"),a&&a.c(),t=N("path"),n=N("path"),o=N("path"),f(t,"fill","#fff"),f(t,"fill-rule","evenodd"),f(t,"d","m21.616 16.495-.012.07c-.156.852-.282 1.541-.427 2.093-.148.569-.333 1.063-.64 1.5a4.4 4.4 0 0 1-2.507 1.732c-.52.133-1.046.131-1.63.069-.568-.06-1.257-.187-2.11-.343l-4.34-.794c-.853-.156-1.542-.282-2.094-.426-.568-.149-1.062-.334-1.5-.642a4.4 4.4 0 0 1-1.731-2.507c-.133-.518-.131-1.045-.069-1.63.06-.567.187-1.257.343-2.11l.012-.068c.156-.853.282-1.542.427-2.095.148-.568.333-1.062.641-1.5a4.4 4.4 0 0 1 2.507-1.731c.518-.133 1.045-.131 1.63-.069.567.06 1.256.187 2.109.343l4.34.794c.853.156 1.542.282 2.094.426.568.149 1.062.334 1.5.642a4.4 4.4 0 0 1 1.731 2.506c.133.52.131 1.046.069 1.63-.06.568-.187 1.258-.343 2.11m-1.446-2.3c.052-.483.035-.769-.022-.993a2.6 2.6 0 0 0-1.023-1.481c-.19-.133-.45-.25-.921-.373-.48-.125-1.102-.24-1.997-.404l-4.272-.781c-.895-.164-1.518-.277-2.01-.33-.483-.051-.769-.035-.993.023-.6.153-1.125.516-1.481 1.023-.133.19-.25.45-.373.92-.125.48-.24 1.103-.403 1.998s-.277 1.518-.33 2.01c-.051.484-.035.77.023.994.153.6.516 1.125 1.023 1.481.189.133.45.25.92.373.48.125 1.102.24 1.997.404l4.272.781c.895.164 1.518.277 2.01.33.483.051.77.035.993-.023a2.6 2.6 0 0 0 1.481-1.023c.133-.19.25-.45.373-.92.125-.48.24-1.103.403-1.998s.278-1.518.33-2.01Z"),f(t,"clip-rule","evenodd"),f(n,"fill","#fff"),f(n,"fill-rule","evenodd"),f(n,"d","M18.187 7.488a.9.9 0 0 1-1.045-.727c-.145-.807-.199-1.086-.28-1.296A2.6 2.6 0 0 0 14.504 3.8c-.224-.006-.505.036-1.315.169l-5.846.962c-1.366.224-1.834.313-2.174.492A2.6 2.6 0 0 0 3.837 7.18c-.08.376-.039.85.114 2.226l.011.1a.9.9 0 1 1-1.787.198l-.01-.093-.019-.17c-.129-1.147-.217-1.937-.068-2.636A4.4 4.4 0 0 1 4.332 3.83c.633-.333 1.417-.461 2.556-.648l.163-.027 5.846-.961.098-.016c.674-.111 1.138-.188 1.556-.177a4.4 4.4 0 0 1 3.99 2.819c.15.39.234.853.355 1.526l.017.097a.9.9 0 0 1-.726 1.045"),f(n,"clip-rule","evenodd"),f(o,"fill","#fff"),f(o,"d","M12.724 12.414a.415.415 0 0 0-.69.231l-.72 4.18a.4.4 0 0 0 .025.221c.085.21.327.311.539.226l3.669-1.467a.406.406 0 0 0 .127-.68z"),ge(e,u)},m(c,m){C(c,e,m),a&&a.m(e,null),p(e,t),p(e,n),p(e,o),r=!0},p(c,[m]){a&&a.p&&(!r||m&2)&&Ve(a,l,c,c[1],r?Me(l,c[1],m,null):Ae(c[1]),null),ge(e,u=Le(s,[{xmlns:"http://www.w3.org/2000/svg"},{width:"24"},{height:"24"},{fill:"none"},{"aria-hidden":"true"},{"data-testid":"episodes-icon"},{style:"flex-shrink:0"},{role:"img"},m&1&&c[0]]))},i(c){r||(d(a,c),r=!0)},o(c){_(a,c),r=!1},d(c){c&&k(e),a&&a.d(c)}}}function W4(i,e,t){let{$$slots:n={},$$scope:o}=e;return i.$$set=r=>{t(0,e=oe(oe({},e),he(r))),"$$scope"in r&&t(1,o=r.$$scope)},e=he(e),[e,o,n]}var hu=class extends j{constructor(e){super(),W(this,e,W4,j4,U,{})}},um=hu;function G4(i){let e,t,n,o=i[2].default,r=Ee(o,i,i[1],null),l=[{xmlns:"http://www.w3.org/2000/svg"},{width:"12"},{height:"13"},{fill:"none"},{"aria-hidden":"true"},{"data-testid":"chevron-light-icon"},{role:"img"},i[0]],a={};for(let s=0;s<l.length;s+=1)a=oe(a,l[s]);return{c(){e=N("svg"),r&&r.c(),t=N("path"),f(t,"fill","#fff"),f(t,"fill-rule","evenodd"),f(t,"d","M4.146 3.146a.5.5 0 0 1 .708 0l3 3a.5.5 0 0 1 0 .708l-3 3a.5.5 0 0 1-.708-.708L6.793 6.5 4.146 3.854a.5.5 0 0 1 0-.708"),f(t,"clip-rule","evenodd"),f(t,"opacity",".7"),ge(e,a)},m(s,u){C(s,e,u),r&&r.m(e,null),p(e,t),n=!0},p(s,[u]){r&&r.p&&(!n||u&2)&&Ve(r,o,s,s[1],n?Me(o,s[1],u,null):Ae(s[1]),null),ge(e,a=Le(l,[{xmlns:"http://www.w3.org/2000/svg"},{width:"12"},{height:"13"},{fill:"none"},{"aria-hidden":"true"},{"data-testid":"chevron-light-icon"},{role:"img"},u&1&&s[0]]))},i(s){n||(d(r,s),n=!0)},o(s){_(r,s),n=!1},d(s){s&&k(e),r&&r.d(s)}}}function Q4(i,e,t){let{$$slots:n={},$$scope:o}=e;return i.$$set=r=>{t(0,e=oe(oe({},e),he(r))),"$$scope"in r&&t(1,o=r.$$scope)},e=he(e),[e,o,n]}var gu=class extends j{constructor(e){super(),W(this,e,Q4,G4,U,{})}},fm=gu;function Y4(i){Se(i,"svelte-1yhs2ga",".text.svelte-1yhs2ga{padding:0 8px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.text.count.svelte-1yhs2ga{overflow:visible}.text.mobile.svelte-1yhs2ga{padding:0 3px 0 4px}.chevron-episodes.svelte-1yhs2ga{margin-bottom:-4px}")}function Z4(i){let e,t,n,o;e=new um({});function r(s,u){if(s[4]==="FULL")return x4;if(s[4]==="COUNT")return J4}let l=r(i,-1),a=l&&l(i);return{c(){D(e.$$.fragment),t=O(),a&&a.c(),n=rt()},m(s,u){B(e,s,u),C(s,t,u),a&&a.m(s,u),C(s,n,u),o=!0},p(s,u){l===(l=r(s,u))&&a?a.p(s,u):(a&&a.d(1),a=l&&l(s),a&&(a.c(),a.m(n.parentNode,n)))},i(s){o||(d(e.$$.fragment,s),o=!0)},o(s){_(e.$$.fragment,s),o=!1},d(s){s&&(k(t),k(n)),R(e,s),a&&a.d(s)}}}function X4(i){let e,t,n,o,r,l;return r=new fm({}),{c(){e=T("span"),t=De(i[2]),n=O(),o=T("div"),D(r.$$.fragment),f(e,"class","text mobile svelte-1yhs2ga"),f(o,"class","chevron-episodes svelte-1yhs2ga")},m(a,s){C(a,e,s),p(e,t),C(a,n,s),C(a,o,s),B(r,o,null),l=!0},p(a,s){(!l||s&4)&&Ye(t,a[2])},i(a){l||(d(r.$$.fragment,a),l=!0)},o(a){_(r.$$.fragment,a),l=!1},d(a){a&&(k(e),k(n),k(o)),R(r)}}}function J4(i){let e,t=i[0].length+"",n;return{c(){e=T("span"),n=De(t),f(e,"class","text count svelte-1yhs2ga")},m(o,r){C(o,e,r),p(e,n)},p(o,r){r&1&&t!==(t=o[0].length+"")&&Ye(n,t)},d(o){o&&k(e)}}}function x4(i){let e,t;return{c(){e=T("span"),t=De(i[2]),f(e,"class","text svelte-1yhs2ga")},m(n,o){C(n,e,o),p(e,t)},p(n,o){o&4&&Ye(t,n[2])},d(n){n&&k(e)}}}function $4(i){let e,t,n,o,r=[X4,Z4],l=[];function a(s,u){return s[6]?0:1}return e=a(i,-1),t=l[e]=r[e](i),{c(){t.c(),n=rt()},m(s,u){l[e].m(s,u),C(s,n,u),o=!0},p(s,u){let c=e;e=a(s,u),e===c?l[e].p(s,u):(fe(),_(l[c],1,1,()=>{l[c]=null}),ce(),t=l[e],t?t.p(s,u):(t=l[e]=r[e](s),t.c()),d(t,1),t.m(n.parentNode,n))},i(s){o||(d(t),o=!0)},o(s){_(t),o=!1},d(s){s&&k(n),l[e].d(s)}}}function ev(i){let e,t,n;function o(l){i[19](l)}let r={className:"w-max btn-full-opacity "+(i[6]?"px-0":""),testId:"btn-episodes",click:i[12],disabled:!i[7],ariaExpanded:i[3],ariaLabel:i[5],$$slots:{default:[$4]},$$scope:{ctx:i}};return i[1]!==void 0&&(r.ref=i[1]),e=new gt({props:r}),_e.push(()=>He(e,"ref",o)),{c(){D(e.$$.fragment)},m(l,a){B(e,l,a),n=!0},p(l,[a]){let s={};a&64&&(s.className="w-max btn-full-opacity "+(l[6]?"px-0":"")),a&8&&(s.ariaExpanded=l[3]),a&32&&(s.ariaLabel=l[5]),a&8388693&&(s.$$scope={dirty:a,ctx:l}),!t&&a&2&&(t=!0,s.ref=l[1],Fe(()=>t=!1)),e.$set(s)},i(l){n||(d(e.$$.fragment,l),n=!0)},o(l){_(e.$$.fragment,l),n=!1},d(l){R(e,l)}}}function tv(i,e,t){var H,L,x;let n,o,r,l,a,s,{position:u=0}=e,{duration:c=0}=e,{timeCodes:m=[]}=e,h=it(),y=(L=(H=h.callbacks)==null?void 0:H.onEpisodeChanged)!=null?L:cm.noop,b=!!((x=h.callbacks)!=null&&x.onEpisodeClicked),S=h.ui.currentGridType$;F(i,S,Q=>t(18,a=Q));let w=h.ui.episodes.openedByKeyboard$;F(i,w,Q=>t(17,l=Q));let P=h.ui.episodes.panelOpened$;F(i,P,Q=>t(3,r=Q));let v=h.ui.isMobile;F(i,v,Q=>t(6,s=Q));let g,I=Q=>{var E,te,M;if(!!((E=h.callbacks)!=null&&E.onEpisodeClicked)){let ee=rl(Q);w.set(ee),P.set(!0),(M=(te=h.callbacks)==null?void 0:te.onEpisodeClicked)==null||M.call(te,ee)}},A,q,K,re=(Q,J,E)=>ut(this,null,function*(){yield Gn(),(Q==null?void 0:Q.getAttribute("aria-expanded"))==="false"&&J&&!E&&(w.set(!1),Q.focus())});function ae(Q){g=Q,t(1,g)}return i.$$set=Q=>{"position"in Q&&t(13,u=Q.position),"duration"in Q&&t(14,c=Q.duration),"timeCodes"in Q&&t(0,m=Q.timeCodes)},i.$$.update=()=>{if(i.$$.dirty&24576)e:t(16,n=u/c);if(i.$$.dirty&114689)e:{let Q=zr(n,c,m);Q&&(A==null?void 0:A.text)!==Q.text&&(y(Q),t(15,A=Q))}if(i.$$.dirty&32768)e:t(2,o=(A==null?void 0:A.text)||"");if(i.$$.dirty&262144)e:Ln(a,"xl")?t(4,q="FULL"):Ln(a,"m")&&zd(a,"xl")?t(4,q="COUNT"):t(4,q="SHORT");if(i.$$.dirty&4)e:t(5,K=`${Y("tooltip_episodes")}: ${o}`);if(i.$$.dirty&131082)e:re(g,l,r)},[m,g,o,r,q,K,s,b,S,w,P,v,I,u,c,A,n,l,a,ae]}var bu=class extends j{constructor(e){super(),W(this,e,tv,ev,U,{position:13,duration:14,timeCodes:0},Y4)}},Kr=bu;function iv(i){let e,t,n,o,r=i[2].default,l=Ee(r,i,i[1],null),a=[{xmlns:"http://www.w3.org/2000/svg"},{width:"24"},{height:"24"},{fill:"none"},{"aria-hidden":"true"},{"data-testid":"seek-to-interactive-icon"},{role:"img"},i[0]],s={};for(let u=0;u<a.length;u+=1)s=oe(s,a[u]);return{c(){e=N("svg"),l&&l.c(),t=N("path"),n=N("path"),f(t,"fill","#fff"),f(t,"fill-rule","evenodd"),f(t,"d","M16.726 4.845C16.187 4.8 15.496 4.8 14.5 4.8H7.9a.9.9 0 1 1 0-1.8h6.639c.947 0 1.713 0 2.333.05.64.053 1.204.163 1.726.43a4.4 4.4 0 0 1 1.923 1.922c.266.523.377 1.087.429 1.726.05.62.05 1.386.05 2.334v5.076c0 .948 0 1.714-.05 2.334-.052.64-.163 1.203-.43 1.726a4.4 4.4 0 0 1-1.922 1.922c-.522.267-1.086.377-1.726.43-.62.05-1.386.05-2.333.05H7.9a.9.9 0 1 1 0-1.8h6.6c.995 0 1.687 0 2.226-.045.528-.043.828-.123 1.055-.238a2.6 2.6 0 0 0 1.136-1.137c.115-.226.195-.527.239-1.055.044-.538.044-1.23.044-2.225v-5c0-.995 0-1.687-.044-2.226-.043-.527-.124-.828-.239-1.054a2.6 2.6 0 0 0-1.136-1.137c-.227-.115-.527-.195-1.055-.238"),f(t,"clip-rule","evenodd"),f(n,"fill","#fff"),f(n,"d","M7.76 11.169V8.908c0-.708.704-1.143 1.252-.774l4.594 3.093c.525.353.525 1.193 0 1.546l-4.594 3.093c-.548.369-1.252-.066-1.252-.774v-2.261l-4.508 3.035C2.704 16.235 2 15.8 2 15.091V8.908c0-.708.704-1.143 1.252-.774z"),ge(e,s)},m(u,c){C(u,e,c),l&&l.m(e,null),p(e,t),p(e,n),o=!0},p(u,[c]){l&&l.p&&(!o||c&2)&&Ve(l,r,u,u[1],o?Me(r,u[1],c,null):Ae(u[1]),null),ge(e,s=Le(a,[{xmlns:"http://www.w3.org/2000/svg"},{width:"24"},{height:"24"},{fill:"none"},{"aria-hidden":"true"},{"data-testid":"seek-to-interactive-icon"},{role:"img"},c&1&&u[0]]))},i(u){o||(d(l,u),o=!0)},o(u){_(l,u),o=!1},d(u){u&&k(e),l&&l.d(u)}}}function nv(i,e,t){let{$$slots:n={},$$scope:o}=e;return i.$$set=r=>{t(0,e=oe(oe({},e),he(r))),"$$scope"in r&&t(1,o=r.$$scope)},e=he(e),[e,o,n]}var vu=class extends j{constructor(e){super(),W(this,e,nv,iv,U,{})}},dm=vu;function ov(i){let e,t;return e=new dm({}),{c(){D(e.$$.fragment)},m(n,o){B(e,n,o),t=!0},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){_(e.$$.fragment,n),t=!1},d(n){R(e,n)}}}function lv(i){let e,t,n;function o(l){i[4](l)}let r={className:i[1]?"hidden":"",testId:"btn-seek-to-interactive",ariaLabel:Y("tooltip_interactive_seek"),disabled:i[2],click:i[3],$$slots:{default:[ov]},$$scope:{ctx:i}};return i[0]!==void 0&&(r.ref=i[0]),e=new gt({props:r}),_e.push(()=>He(e,"ref",o)),{c(){D(e.$$.fragment)},m(l,a){B(e,l,a),n=!0},p(l,[a]){let s={};a&2&&(s.className=l[1]?"hidden":""),a&4&&(s.disabled=l[2]),a&8&&(s.click=l[3]),a&32&&(s.$$scope={dirty:a,ctx:l}),!t&&a&1&&(t=!0,s.ref=l[0],Fe(()=>t=!1)),e.$set(s)},i(l){n||(d(e.$$.fragment,l),n=!0)},o(l){_(e.$$.fragment,l),n=!1},d(l){R(e,l)}}}function rv(i,e,t){let{ref:n=void 0}=e,{hidden:o=!1}=e,{disabled:r=!1}=e,{click:l}=e;function a(s){n=s,t(0,n)}return i.$$set=s=>{"ref"in s&&t(0,n=s.ref),"hidden"in s&&t(1,o=s.hidden),"disabled"in s&&t(2,r=s.disabled),"click"in s&&t(3,l=s.click)},[n,o,r,l,a]}var yu=class extends j{constructor(e){super(),W(this,e,rv,lv,U,{ref:0,hidden:1,disabled:2,click:3})}},jr=yu;function sv(i){let e,t,n,o,r=i[2].default,l=Ee(r,i,i[1],null),a=[{xmlns:"http://www.w3.org/2000/svg"},{width:"24"},{height:"24"},{fill:"none"},{"aria-hidden":"true"},{role:"img"},i[0]],s={};for(let u=0;u<a.length;u+=1)s=oe(s,a[u]);return{c(){e=N("svg"),l&&l.c(),t=N("path"),n=N("path"),f(t,"fill","#fff"),f(t,"fill-rule","evenodd"),f(t,"d","M16.777 3h1.419c.31 0 .596 0 .834.02.258.02.539.068.817.21.397.2.72.523.923.918.141.277.19.557.21.814.02.237.02.521.02.83V7.19c0 .31 0 .594-.02.831-.02.256-.069.537-.21.813a2.1 2.1 0 0 1-.923.92c-.278.14-.56.188-.817.21-.238.019-.524.019-.834.019h-1.419c-.31 0-.596 0-.834-.02a2.15 2.15 0 0 1-.817-.21 2.1 2.1 0 0 1-.923-.919 2.1 2.1 0 0 1-.21-.813 8 8 0 0 1-.02-.63l-2.198-.002c-.495-.001-.81 0-1.05.018-.23.019-.309.05-.343.067a.8.8 0 0 0-.352.35c-.017.034-.049.113-.068.341-.02.24-.02.554-.02 1.046v5.57c0 .49 0 .804.02 1.043.019.228.05.306.068.34.077.15.2.273.35.35.035.017.113.049.342.067.24.02.555.021 1.048.022l2.203.003a8 8 0 0 1 .02-.627c.02-.256.069-.537.21-.813.203-.396.526-.718.923-.92.278-.14.56-.189.817-.21.238-.019.524-.019.834-.019h1.419c.31 0 .596 0 .834.02.258.02.539.068.817.21.397.201.72.523.923.919.141.276.19.557.21.813.02.237.02.522.02.831v1.397c0 .31 0 .594-.02.831-.02.256-.069.537-.21.814a2.1 2.1 0 0 1-.923.919c-.278.14-.56.189-.817.21-.238.019-.524.019-.834.019h-1.419c-.31 0-.596 0-.834-.02a2.15 2.15 0 0 1-.817-.21 2.1 2.1 0 0 1-.923-.918 2.1 2.1 0 0 1-.21-.814 8 8 0 0 1-.02-.63l-2.24-.002c-.449 0-.839-.001-1.16-.028-.341-.028-.684-.09-1.016-.259a2.6 2.6 0 0 1-1.14-1.137c-.17-.33-.231-.672-.259-1.011-.026-.321-.026-.71-.026-1.156v-1.921H2.905A.903.903 0 0 1 2 11.992c0-.498.405-.901.905-.901h5.227V9.177c0-.448 0-.837.026-1.159.028-.34.09-.682.26-1.013a2.6 2.6 0 0 1 1.144-1.138c.332-.168.676-.23 1.017-.257.323-.025.714-.025 1.164-.024l2.23.003a8 8 0 0 1 .02-.627c.02-.257.069-.537.21-.814.203-.395.526-.717.923-.919.278-.14.56-.189.817-.21C16.18 3 16.467 3 16.777 3m-.833 1.837a1 1 0 0 1 .146-.02 10 10 0 0 1 .72-.014h1.354c.353 0 .563 0 .719.013a1 1 0 0 1 .146.021.3.3 0 0 1 .126.126 1 1 0 0 1 .021.145c.013.156.014.365.014.716v1.334c0 .352 0 .561-.014.716a1 1 0 0 1-.02.146.3.3 0 0 1-.127.125 1 1 0 0 1-.146.022c-.156.012-.366.013-.719.013H16.81c-.353 0-.563 0-.719-.013a1 1 0 0 1-.146-.022.3.3 0 0 1-.126-.125 1 1 0 0 1-.021-.146 10 10 0 0 1-.014-.716V5.824c0-.351.001-.56.014-.716a1 1 0 0 1 .021-.145.3.3 0 0 1 .126-.126Zm0 11.018a1 1 0 0 1 .146-.022c.156-.012.366-.013.72-.013h1.354c.353 0 .563 0 .719.013a1 1 0 0 1 .146.022.3.3 0 0 1 .126.125 1 1 0 0 1 .021.146c.013.155.014.364.014.716v1.334c0 .351 0 .56-.014.716a1 1 0 0 1-.02.145.3.3 0 0 1-.127.126 1 1 0 0 1-.146.02c-.156.014-.366.014-.719.014H16.81c-.353 0-.563 0-.719-.013a1 1 0 0 1-.146-.021.3.3 0 0 1-.126-.126 1 1 0 0 1-.021-.145 10 10 0 0 1-.014-.716v-1.334c0-.352.001-.561.014-.716a1 1 0 0 1 .021-.146.3.3 0 0 1 .126-.125Z"),f(t,"clip-rule","evenodd"),f(n,"fill","#fff"),f(n,"fill-rule","evenodd"),f(n,"d","M15.2 5.899v1.203c0 .594 0 .892.115 1.119.102.2.265.362.464.463.227.116.525.116 1.12.116H18.1c.595 0 .892 0 1.12-.116.199-.101.361-.264.463-.463.116-.227.116-.525.116-1.12V5.9c0-.595 0-.892-.116-1.12a1.06 1.06 0 0 0-.464-.463c-.227-.116-.524-.116-1.119-.116h-1.203c-.594 0-.892 0-1.119.116-.2.102-.362.264-.464.464-.115.227-.115.524-.115 1.119Zm-.051 11.03v1.143c0 .605 0 .908.118 1.139.103.203.268.368.472.472.23.117.533.117 1.138.117H18.1c.605 0 .907 0 1.138-.117a1.08 1.08 0 0 0 .472-.472c.118-.231.118-.534.118-1.139v-1.144c0-.605 0-.907-.118-1.138a1.08 1.08 0 0 0-.472-.472c-.231-.118-.534-.118-1.138-.118h-1.224c-.605 0-.907 0-1.138.118a1.08 1.08 0 0 0-.472.472c-.118.23-.118.533-.118 1.138Z"),f(n,"class","_closed"),f(n,"clip-rule","evenodd"),ge(e,s)},m(u,c){C(u,e,c),l&&l.m(e,null),p(e,t),p(e,n),o=!0},p(u,[c]){l&&l.p&&(!o||c&2)&&Ve(l,r,u,u[1],o?Me(r,u[1],c,null):Ae(u[1]),null),ge(e,s=Le(a,[{xmlns:"http://www.w3.org/2000/svg"},{width:"24"},{height:"24"},{fill:"none"},{"aria-hidden":"true"},{role:"img"},c&1&&u[0]]))},i(u){o||(d(l,u),o=!0)},o(u){_(l,u),o=!1},d(u){u&&k(e),l&&l.d(u)}}}function av(i,e,t){let{$$slots:n={},$$scope:o}=e;return i.$$set=r=>{t(0,e=oe(oe({},e),he(r))),"$$scope"in r&&t(1,o=r.$$scope)},e=he(e),[e,o,n]}var wu=class extends j{constructor(e){super(),W(this,e,av,sv,U,{})}},mm=wu;function uv(i){Se(i,"svelte-17ceof5",'svg[data-testid="graph-open-icon"] ._closed{visibility:hidden;opacity:0}')}function fv(i){let e,t;return e=new mm({props:{"data-testid":i[0]?"graph-close-icon":"graph-open-icon"}}),{c(){D(e.$$.fragment)},m(n,o){B(e,n,o),t=!0},p(n,[o]){let r={};o&1&&(r["data-testid"]=n[0]?"graph-close-icon":"graph-open-icon"),e.$set(r)},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){_(e.$$.fragment,n),t=!1},d(n){R(e,n)}}}function cv(i,e,t){let{isOpened:n=!1}=e;return i.$$set=o=>{"isOpened"in o&&t(0,n=o.isOpened)},[n]}var ku=class extends j{constructor(e){super(),W(this,e,cv,fv,U,{isOpened:0},uv)}},pm=ku;function dv(i){let e,t;return e=new pm({props:{isOpened:i[3]}}),{c(){D(e.$$.fragment)},m(n,o){B(e,n,o),t=!0},p(n,o){let r={};o&8&&(r.isOpened=n[3]),e.$set(r)},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){_(e.$$.fragment,n),t=!1},d(n){R(e,n)}}}function mv(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:[dv]},$$scope:{ctx:i}};return i[0]!==void 0&&(r.ref=i[0]),e=new gt({props:r}),_e.push(()=>He(e,"ref",o)),{c(){D(e.$$.fragment)},m(l,a){B(e,l,a),n=!0},p(l,[a]){let s={};a&2&&(s.className=l[1]?"hidden":""),a&4&&(s.disabled=l[2]),a&32&&(s.ariaLabel=l[5]),a&16&&(s.click=l[4]),a&136&&(s.$$scope={dirty:a,ctx:l}),!t&&a&1&&(t=!0,s.ref=l[0],Fe(()=>t=!1)),e.$set(s)},i(l){n||(d(e.$$.fragment,l),n=!0)},o(l){_(e.$$.fragment,l),n=!1},d(l){R(e,l)}}}function pv(i,e,t){let{ref:n=void 0}=e,{hidden:o=!1}=e,{disabled:r=!1}=e,{graphIsOpened:l=!1}=e,{click:a}=e,s;function u(c){n=c,t(0,n)}return i.$$set=c=>{"ref"in c&&t(0,n=c.ref),"hidden"in c&&t(1,o=c.hidden),"disabled"in c&&t(2,r=c.disabled),"graphIsOpened"in c&&t(3,l=c.graphIsOpened),"click"in c&&t(4,a=c.click)},i.$$.update=()=>{if(i.$$.dirty&8)e:t(5,s=l?Y("tooltip_interactive_graph_on"):Y("tooltip_interactive_graph_off"))},[n,o,r,l,a,s,u]}var Cu=class extends j{constructor(e){super(),W(this,e,pv,mv,U,{ref:0,hidden:1,disabled:2,graphIsOpened:3,click:4})}},Wr=Cu;function _v(i){let e,t,n,o=i[2].default,r=Ee(o,i,i[1],null),l=[{xmlns:"http://www.w3.org/2000/svg"},{width:"24"},{height:"24"},{fill:"none"},{"aria-hidden":"true"},{"data-testid":"replay-icon"},{role:"img"},i[0]],a={};for(let s=0;s<l.length;s+=1)a=oe(a,l[s]);return{c(){e=N("svg"),r&&r.c(),t=N("path"),f(t,"fill","#fff"),f(t,"d","M12 9.096a.4.4 0 0 1-.67.296L7.044 5.493a.67.67 0 0 1 0-.986L11.33.608a.4.4 0 0 1 .67.296V4a8 8 0 1 1-8 8 1 1 0 1 1 2 0 6 6 0 1 0 6-6z"),ge(e,a)},m(s,u){C(s,e,u),r&&r.m(e,null),p(e,t),n=!0},p(s,[u]){r&&r.p&&(!n||u&2)&&Ve(r,o,s,s[1],n?Me(o,s[1],u,null):Ae(s[1]),null),ge(e,a=Le(l,[{xmlns:"http://www.w3.org/2000/svg"},{width:"24"},{height:"24"},{fill:"none"},{"aria-hidden":"true"},{"data-testid":"replay-icon"},{role:"img"},u&1&&s[0]]))},i(s){n||(d(r,s),n=!0)},o(s){_(r,s),n=!1},d(s){s&&k(e),r&&r.d(s)}}}function hv(i,e,t){let{$$slots:n={},$$scope:o}=e;return i.$$set=r=>{t(0,e=oe(oe({},e),he(r))),"$$scope"in r&&t(1,o=r.$$scope)},e=he(e),[e,o,n]}var Su=class extends j{constructor(e){super(),W(this,e,hv,_v,U,{})}},Gr=Su;var hm=require("@vkontakte/videoplayer-shared");function gv(i){Se(i,"svelte-1ot3duq",".mobile.svelte-1ot3duq{position:relative;display:flex;align-items:center;justify-content:center}.mobile.svelte-1ot3duq svg{transform:scale(2)}.icon-background-mobile.svelte-1ot3duq{position:absolute;top:16px;left:16px;border-radius:var(--big-play-radius);background-color:var(--big-play-bg-color);width:calc(100% - 32px);height:calc(100% - 32px)}")}function _m(i){let e;return{c(){e=T("div"),f(e,"class","icon-background-mobile svelte-1ot3duq")},m(t,n){C(t,e,n)},d(t){t&&k(e)}}}function bv(i){let e,t,n,o,r=i[1]&&_m(i);return n=new Gr({}),{c(){r&&r.c(),e=O(),t=T("div"),D(n.$$.fragment),f(t,"class","svelte-1ot3duq"),z(t,"mobile",i[1])},m(l,a){r&&r.m(l,a),C(l,e,a),C(l,t,a),B(n,t,null),o=!0},p(l,a){l[1]?r||(r=_m(l),r.c(),r.m(e.parentNode,e)):r&&(r.d(1),r=null),(!o||a&2)&&z(t,"mobile",l[1])},i(l){o||(d(n.$$.fragment,l),o=!0)},o(l){_(n.$$.fragment,l),o=!1},d(l){l&&(k(e),k(t)),r&&r.d(l),R(n)}}}function vv(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:Y("tooltip_restart"),disabled:i[2],click:i[4],ariaKeyShortCut:Jn.KeyK,$$slots:{default:[bv]},$$scope:{ctx:i}};return i[0]!==void 0&&(r.ref=i[0]),e=new gt({props:r}),_e.push(()=>He(e,"ref",o)),{c(){D(e.$$.fragment)},m(l,a){B(e,l,a),n=!0},p(l,[a]){let s={};a&10&&(s.className=(l[1]?"btn-m--play":"")+" "+l[3]),a&4&&(s.disabled=l[2]),a&16&&(s.click=l[4]),a&66&&(s.$$scope={dirty:a,ctx:l}),!t&&a&1&&(t=!0,s.ref=l[0],Fe(()=>t=!1)),e.$set(s)},i(l){n||(d(e.$$.fragment,l),n=!0)},o(l){_(e.$$.fragment,l),n=!1},d(l){R(e,l)}}}function yv(i,e,t){let{ref:n=void 0}=e,{isMobile:o=!1}=e,{disabled:r=!1}=e,{className:l=""}=e,{click:a=hm.noop}=e;function s(u){n=u,t(0,n)}return i.$$set=u=>{"ref"in u&&t(0,n=u.ref),"isMobile"in u&&t(1,o=u.isMobile),"disabled"in u&&t(2,r=u.disabled),"className"in u&&t(3,l=u.className),"click"in u&&t(4,a=u.click)},[n,o,r,l,a,s]}var Pu=class extends j{constructor(e){super(),W(this,e,yv,vv,U,{ref:0,isMobile:1,disabled:2,className:3,click:4},gv)}},Fl=Pu;function wv(i){let e,t,n,o=i[2].default,r=Ee(o,i,i[1],null),l=[{xmlns:"http://www.w3.org/2000/svg"},{width:"24"},{height:"24"},{fill:"none"},{"data-testid":"play-prev-chapter-icon"},{role:"img"},i[0]],a={};for(let s=0;s<l.length;s+=1)a=oe(a,l[s]);return{c(){e=N("svg"),r&&r.c(),t=N("path"),f(t,"fill","#fff"),f(t,"d","M12.583 12.917v2.496a1 1 0 0 1-1.522.853l-5.583-3.413a1 1 0 0 1 0-1.706l5.583-3.413a1 1 0 0 1 1.522.853v2.496l5.478-3.349a1 1 0 0 1 1.522.853v6.826a1 1 0 0 1-1.522.853z"),ge(e,a)},m(s,u){C(s,e,u),r&&r.m(e,null),p(e,t),n=!0},p(s,[u]){r&&r.p&&(!n||u&2)&&Ve(r,o,s,s[1],n?Me(o,s[1],u,null):Ae(s[1]),null),ge(e,a=Le(l,[{xmlns:"http://www.w3.org/2000/svg"},{width:"24"},{height:"24"},{fill:"none"},{"data-testid":"play-prev-chapter-icon"},{role:"img"},u&1&&s[0]]))},i(s){n||(d(r,s),n=!0)},o(s){_(r,s),n=!1},d(s){s&&k(e),r&&r.d(s)}}}function kv(i,e,t){let{$$slots:n={},$$scope:o}=e;return i.$$set=r=>{t(0,e=oe(oe({},e),he(r))),"$$scope"in r&&t(1,o=r.$$scope)},e=he(e),[e,o,n]}var Tu=class extends j{constructor(e){super(),W(this,e,kv,wv,U,{})}},gm=Tu;function Cv(i){let e,t;return e=new gm({}),{c(){D(e.$$.fragment)},m(n,o){B(e,n,o),t=!0},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){_(e.$$.fragment,n),t=!1},d(n){R(e,n)}}}function Sv(i){let e,t,n;function o(l){i[4](l)}let r={className:i[1]?"hidden":"",testId:"btn-play-prev-chapter",ariaLabel:Y("tooltip_interactive_go_back"),disabled:i[2],click:i[3],$$slots:{default:[Cv]},$$scope:{ctx:i}};return i[0]!==void 0&&(r.ref=i[0]),e=new gt({props:r}),_e.push(()=>He(e,"ref",o)),{c(){D(e.$$.fragment)},m(l,a){B(e,l,a),n=!0},p(l,[a]){let s={};a&2&&(s.className=l[1]?"hidden":""),a&4&&(s.disabled=l[2]),a&8&&(s.click=l[3]),a&32&&(s.$$scope={dirty:a,ctx:l}),!t&&a&1&&(t=!0,s.ref=l[0],Fe(()=>t=!1)),e.$set(s)},i(l){n||(d(e.$$.fragment,l),n=!0)},o(l){_(e.$$.fragment,l),n=!1},d(l){R(e,l)}}}function Pv(i,e,t){let{ref:n=void 0}=e,{hidden:o=!1}=e,{disabled:r=!1}=e,{click:l}=e;function a(s){n=s,t(0,n)}return i.$$set=s=>{"ref"in s&&t(0,n=s.ref),"hidden"in s&&t(1,o=s.hidden),"disabled"in s&&t(2,r=s.disabled),"click"in s&&t(3,l=s.click)},[n,o,r,l,a]}var Iu=class extends j{constructor(e){super(),W(this,e,Pv,Sv,U,{ref:0,hidden:1,disabled:2,click:3})}},Qr=Iu;var Eu=require("@vkontakte/videoplayer-shared");function Tv(i){Se(i,"svelte-1x1zctw",".icon.svelte-1x1zctw{width:24px !important;height:24px !important;;}.error-stub.svelte-1x1zctw{display:flex;justify-content:center;align-items:center}.inner.svelte-1x1zctw{width:16px;height:16px;background-color:var(--white)}")}function Iv(i){let e,t,n,o;return{c(){e=T("img"),f(e,"class","icon svelte-1x1zctw"),Ss(e.src,t=i[0])||f(e,"src",t),f(e,"aria-hidden","true")},m(r,l){C(r,e,l),n||(o=de(e,"error",i[7]),n=!0)},p(r,l){l&1&&!Ss(e.src,t=r[0])&&f(e,"src",t)},d(r){r&&k(e),n=!1,o()}}}function Ev(i){let e;return{c(){e=T("div"),e.innerHTML='<div class="inner svelte-1x1zctw"></div>',f(e,"class","icon error-stub svelte-1x1zctw")},m(t,n){C(t,e,n)},p:pe,d(t){t&&k(e)}}}function Mv(i){let e;function t(r,l){return r[5]?Ev:Iv}let n=t(i,-1),o=n(i);return{c(){o.c(),e=rt()},m(r,l){o.m(r,l),C(r,e,l)},p(r,l){n===(n=t(r,l))&&o?o.p(r,l):(o.d(1),o=n(r),o&&(o.c(),o.m(e.parentNode,e)))},d(r){r&&k(e),o.d(r)}}}function Vv(i){let e,t;return e=new gt({props:{className:i[4]?"btn-full-opacity":"",ariaLabel:i[1],click:i[3],disabled:i[6],testId:i[2],$$slots:{default:[Mv]},$$scope:{ctx:i}}}),{c(){D(e.$$.fragment)},m(n,o){B(e,n,o),t=!0},p(n,[o]){let r={};o&16&&(r.className=n[4]?"btn-full-opacity":""),o&2&&(r.ariaLabel=n[1]),o&8&&(r.click=n[3]),o&64&&(r.disabled=n[6]),o&4&&(r.testId=n[2]),o&545&&(r.$$scope={dirty:o,ctx:n}),e.$set(r)},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){_(e.$$.fragment,n),t=!1},d(n){R(e,n)}}}function Av(i,e,t){let n,o,r,{iconUrl:l}=e,{ariaLabel:a}=e,{disabled:s=!1}=e,{testId:u}=e,{onClick:c=Eu.noop}=e,m=()=>{t(5,r=!0)};i.$$set=h=>{"iconUrl"in h&&t(0,l=h.iconUrl),"ariaLabel"in h&&t(1,a=h.ariaLabel),"disabled"in h&&t(8,s=h.disabled),"testId"in h&&t(2,u=h.testId),"onClick"in h&&t(3,c=h.onClick)},i.$$.update=()=>{if(i.$$.dirty&8)e:t(4,n=c===Eu.noop);if(i.$$.dirty&272)e:t(6,o=n||s)};e:t(5,r=!1);return[l,a,u,c,n,r,o,m,s]}var Mu=class extends j{constructor(e){super(),W(this,e,Av,Vv,U,{iconUrl:0,ariaLabel:1,disabled:8,testId:2,onClick:3},Tv)}},Yr=Mu;var Um=require("@vkontakte/videoplayer-shared");var cn=require("@vkontakte/videoplayer-core"),QE=require("@vkontakte/videoplayer-shared"),mt=require("@vkontakte/videoplayer-shared"),so=require("@vkontakte/videoplayer-statistics"),YE=require("@vkontakte/videoplayer-interactive");var Ot=require("@vkontakte/videoplayer-shared");var bm=(i,e)=>i<400||e<225?5:i<640||e<360?0:i<960||e<540?1:i<1280||e<720?2:3;var Lv="//ad.mail.ru/static/admanhtml/rbadman-html5.min.js",Zr=class{constructor(e,t){this.adman=null;this.initialVolume=1;this.videoElement=null;this.currentAdSection=null;this.actions=null;this.adsState=null;this.playerState=null;this.events={slotRequested$:new Ot.Subject,started$:new Ot.Subject,paused$:new Ot.Subject,resumed$:new Ot.Subject,ended$:new Ot.Subject,skipped$:new Ot.Subject,clicked$:new Ot.Subject};this.loadAdman=e=>new Promise((t,n)=>{let o,r=()=>{clearTimeout(o),delete window.admanAsyncInit,window.AdmanHTML?t():n()};(0,Ot.addScript)(Lv,e,this.loadTimeout).then(()=>{window.AdmanHTML?t():(window.admanAsyncInit=r,o=window.setTimeout(r,this.initTimeout))}).catch(()=>{n()})});this.onAdsReady=()=>{this.log({message:"ads ready"}),this.startPreroll()};this.onAdStarted=(e,t)=>{(0,Ot.assertNonNullable)(this.adsState),(0,Ot.assertNonNullable)(this.playerState),(0,Ot.assertNonNullable)(this.actions),this.log({message:`ad started, section: ${e}, banner: ${JSON.stringify(t)}`}),this.events.started$.next(e),t.muted&&(this.setVolume(0),this.actions.setMuted(!0),this.log({message:"ad muted start"}),tt(this.playerState.isMobile)&&this.playerState.mobileUnmuteButtonVisible.set(!0)),this.adsState.duration.set(t.duration),this.adsState.playbackState.set("playing"),this.adsState.canSkip.set(t.allowClose),this.adsState.secondsToWatchBeforeSkip.set(t.allowCloseDelay)};this.onAdTimeRemained=({currentTime:e})=>{(0,Ot.assertNonNullable)(this.adsState),this.adsState.position.set(e)};this.onAdPaused=()=>{(0,Ot.assertNonNullable)(this.adsState),this.log({message:"ad paused"}),this.adsState.playbackState.set("paused")};this.onAdPlayed=()=>{(0,Ot.assertNonNullable)(this.adsState),this.log({message:"ad played"}),this.adsState.playbackState.set("playing")};this.onAdMidrollPoint=()=>{(0,Ot.assertNonNullable)(this.adman),(0,Ot.assertNonNullable)(this.actions),this.log({message:"midroll point"}),this.actions.switchFromVideoToAds(),this.currentAdSection="midroll",this.adman.start("midroll")};this.onAdSkipped=()=>{this.log({message:"ad skipped"}),this.switchToVideo()};this.onAdClosed=()=>{this.log({message:"ad closed"}),this.switchToVideo()};this.onAdCompleted=()=>{this.log({message:"ad completed"}),this.events.ended$.next(),this.switchToVideo()};this.onAdClicked=()=>{var e;this.log({message:"ad clicked"}),(e=this.videoElement)==null||e.pause(),this.events.clicked$.next()};this.onAdError=()=>{this.log({message:"ad error"}),this.switchToVideo(!0)};this.log=e.createComponentLog("AdmanWrapper"),this.loadTimeout=t.loadTimeout,this.initTimeout=t.initTimeout}init(e,t,n){this.actions=e,this.adsState=t,this.playerState=n}onAdmanLoadingError(){this.log({message:"adman loading error"}),this.switchToVideo(!0)}initAdman(e){let{width:t,height:n,isFullscreen:o,isAutoplay:r,adsContainer:l,adsVideoElement:a,slotId:s,params:u={},duration:c,previewParam:m}=e,h,y=this.playerState&&tt(this.playerState.vsid);y&&(h=parseInt(y,36));let b=nt(Lt(nt({dl:encodeURIComponent(window.location.href),autoplay:r,player_width:t,player_height:n,puid10:bm(t,n),puid11:o?0:1,preview:m},h?{request_id:h}:{}),{duration:c}),u),S={slot:s,wrapper:l,videoEl:a,videoQuality:n,params:b,browser:{mobile:!1}},w=new window.AdmanHTML;w.setDebug(!1),w.onReady(this.onAdsReady),w.onStarted(this.onAdStarted),w.onPlayed(this.onAdPlayed),w.onPaused(this.onAdPaused),w.adMidrollPoint(this.onAdMidrollPoint),w.onClosed(this.onAdClosed),w.onSkipped(this.onAdSkipped),w.onClicked(this.onAdClicked),w.onTimeRemained(this.onAdTimeRemained),w.onCompleted(this.onAdCompleted),w.onError(this.onAdError),w.init(S),this.adman=w,this.videoElement=a,this.events.slotRequested$.next(),this.log({message:`adman init, config: ${JSON.stringify(S)}`})}switchToVideo(e=!1){if(this.currentAdSection===null&&!e){this.log({message:"switch to video, no currentAdSection. can't switch"});return}(0,Ot.assertNonNullable)(this.actions),(0,Ot.assertNonNullable)(this.adsState),(0,Ot.assertNonNullable)(this.playerState);let t=this.currentAdSection==="postroll";this.adsState.playbackState.set("inactive"),this.currentAdSection=null,this.playerState.mobileUnmuteButtonVisible.set(!1),this.log({message:`switch to video, isPostroll: ${t}`}),t&&(this.adsState.postrollPassed.set(!0),this.log({message:"postroll passed"})),this.actions.switchFromAdsToVideo(!t)}togglePlay(){(0,Ot.assertNonNullable)(this.adsState),this.log({message:"toggle play"});let e=tt(this.adsState.playbackState);e==="playing"?this.pause():e==="paused"&&this.play()}setInitialVolume(e){this.log({message:`set initial volume ${e}`}),this.initialVolume=e}setVolume(e){var t;this.log({message:`set volume ${e}`}),(t=this.adman)==null||t.setVolume(e),this.videoElement&&(this.videoElement.volume=e)}setFullscreen(e){var t;this.log({message:`set fullscreen ${e}`}),(t=this.adman)==null||t.setFullscreen(e)}startPreroll(){(0,Ot.assertNonNullable)(this.adman),this.log({message:"start preroll"}),this.setVolume(this.initialVolume),this.currentAdSection="preroll",this.adman.start("preroll")}startPostroll(){(0,Ot.assertNonNullable)(this.adman),(0,Ot.assertNonNullable)(this.actions),this.log({message:"start postroll"}),this.actions.switchFromVideoToAds(),this.currentAdSection="postroll",this.adman.start("postroll")}play(){(0,Ot.assertNonNullable)(this.adman),this.log({message:"ad play"}),this.adman.resume(),this.events.resumed$.next()}pause(){(0,Ot.assertNonNullable)(this.adman),this.log({message:"ad pause"}),this.adman.pause(),this.events.paused$.next()}skip(){(0,Ot.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.setPosition(Math.floor(e),Math.floor(t))}destroy(){var e;this.log({message:"destroy"}),(e=this.adman)==null||e.destroy()}};var vm=i=>{let e=Math.round(i);return isNaN(e)||e<40?"":e>=40&&e<55?50:e>=55&&e<90?60:e>=90&&e<180?120:e>=180?240:""};var Vu=class{constructor(){this.oneLineRegExp=/\r\n|\n|\r/;this.twoLinesRegExp=/\r\n\r\n|\n\n|\r\r/}parse(e){let t=[],n=e.split(this.twoLinesRegExp);for(let o of n){let r={startTime:0,endTime:0,texts:[],lang:""},l=o.split(this.oneLineRegExp);for(let a of l)if(!r.startTime&&!r.endTime){let s=new Xr,{startTime:u,endTime:c}=s.parse(a);r.startTime=u,r.endTime=c}else if(a.trim()!==""){let s=new Au,{texts:u}=s.parse(a);r.texts=[...r.texts,...u]}(r.startTime||r.endTime)&&r.texts.length>0&&t.push(r)}return t}},Xr=class{constructor(){this.timeRegExp=/(\d{2})?:?(\d{2}):(\d{2}).(\d{2,3})/;this.timingRegExp=new RegExp(`${this.timeRegExp.source}( ?--> ?)${this.timeRegExp.source}`)}parse(e){let t={startTime:0,endTime:0},n=this.timingRegExp.exec(e);return n&&(t.startTime=this.calcTime(n[1],n[2],n[3],n[4]),t.endTime=this.calcTime(n[6],n[7],n[8],n[9])),t}parseTime(e){let t=this.timeRegExp.exec(e);return t?this.calcTime(t[1],t[2],t[3],t[4]):0}isTime(e){return this.timeRegExp.test(e)}calcTime(e="0",t="0",n="0",o="0"){let r=Number(e)*60*60,l=Number(t)*60,a=Number(n),s=+`0.${o}`;return r+l+a+s}},Au=class{constructor(){this.letterTagRegExp=/<[a-z]*>|<\/[a-z]*>/}parse(e){let t={texts:[]},o=e.replace(new RegExp(this.letterTagRegExp,"g"),"").split({[Symbol.split](l){let a=0,s=[];for(;a<l.length;){let u=["<",">"].reduce((c,m)=>{let h=l.indexOf(m,a);return c===-1||c>h?h:c},-1);if(u===-1){s.push(l.substring(a));break}s.push(l.substring(a,u)),a=u+1}return s}}),r=new Xr;for(let l of o)r.isTime(l)?t.texts.push({type:"timestamp",value:r.parseTime(l)}):t.texts.push({type:"text",value:l});return t}},ym=Vu;var Jr=require("@vkontakte/videoplayer-shared");var wo,Yt,Lu=0,Bu=!1,wm=(i,e,t)=>{var u;let n=i>=Lu,o=i<Lu,r=(c,m=0,h=0)=>c<m&&c<h,l=(c,m=0,h=0)=>c>=m&&c<=h,a=(c,m=0,h=0)=>c>m&&c>h,s=(u=t.find(({lang:c})=>c===e.value))==null?void 0:u.subtitles;if(Lu=i,o&&(Bu=!1),(0,Jr.isNonNullable)(wo)&&l(i,wo.startTime,wo.endTime)&&wo.lang===e.value)return wo;if(!(0,Jr.isNonNullable)(Yt)&&(s!=null&&s.length)&&!Bu){let c=s.find(({startTime:m,endTime:h})=>l(i,m,h)||n&&r(i,m,h));Yt=c&&Lt(nt({},c),{lang:e.value}),wo=void 0,!(0,Jr.isNonNullable)(Yt)&&s[s.length-1].endTime<i&&(Bu=!0);return}else{if(l(i,Yt==null?void 0:Yt.startTime,Yt==null?void 0:Yt.endTime))return wo=Yt,Yt=void 0,wo;(n&&a(i,Yt==null?void 0:Yt.startTime,Yt==null?void 0:Yt.endTime)||o&&r(i,Yt==null?void 0:Yt.startTime,Yt==null?void 0:Yt.endTime))&&(Yt=void 0)}};var xr={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"};var km=require("@vkontakte/videoplayer-shared"),Cm=require("@vkontakte/videoplayer-statistics"),$r=class{constructor(e,t){this.oneStat=new Cm.OneStat(e,t),this.statSubscription=new km.Subscription}destroy(){this.oneStat.destroy(),this.statSubscription.unsubscribe()}};var Sm=({interfaceLanguage:i,videoId:e,isClip:t,isLiveCatchUpMode:n,statAuthToken:o,isAudioDisabled:r,canDownload:l,callbacks:a,webApi:s,videoEpisodes:u,previewThumbsData:c,uiConfig:m,coreConfig:h,player:y,disabledControls:b,isInteractive:S,interactiveRanges$:w,isInteractiveTime$:P,replayInteractive:v,hasInteractiveBranches:g,playPrevChapterDisabledTooltip:I,additionalButtons:A,looped:q=!1,statistics:K,saveRate:re})=>{var Ct,fn,tn,Dn;let ae=Lt(nt({},h),{configName:[...(Ct=h.configName)!=null?Ct:[],"ui"],isAudioDisabled:r,live:Lt(nt({},(fn=h.live)!=null?fn:{}),{isLiveCatchUpMode:!!n})}),H=m,L=y||new cn.Player(ae),x=new mt.Logger,Q=new Zr(x,{loadTimeout:H.ads.loadTimeout,initTimeout:H.ads.initTimeout}),J=Do.getInstance(),E=s==null?void 0:s.pictureInPictureApi,te=s==null?void 0:s.annotationsApi,M=x.createComponentLog("Store"),ee,ke,Qe={},je=(0,mt.getCurrentBrowser)(),$e=K?Et(K.oneStat.vsid$):Nn(void 0),We=Ne(_o()),ve=(tn=E==null?void 0:E.info.isActive$)!=null?tn:new mt.ValueSubject(!1),X=E==null?void 0:E.info.type,be=Ne(0),Oe=Ne([]),xe=(0,mt.merge)(L.events.fatalError$,L.events.managedError$).subscribe(V=>Oe.update(le=>[...le,V])),et=Nn(!1,V=>{let le=L.events.fatalError$.subscribe(()=>V(!0));return()=>le.unsubscribe()}),ye=V=>ut(void 0,null,function*(){var Ge;let le=Object.values(mt.InterfaceLanguage).includes(V);if(H.downloadVKLanguages&&(le&&H.updateBuiltinLanguages||!Ns(V))){let st;try{st=yield(0,mt.loadVKLangPack)(V,oc,lc)}catch(Tt){(Ge=K==null?void 0:K.oneStat)==null||Ge.logError({errorType:"VKLangPack",fatal:!1}),J==null||J.report(Tt,{errorType:"VKLangPack",fatal:!1})}st&&(Ds({language:V,pack:st,fallback:H.defaultLanguage}),Be.set(V))}Ns(V)&&Be.set(V)}),Be=Ne(i);ye(i);let Ue=(V,le)=>{let Pe=tt(Be);return Os(Pe,V,le,H.defaultLanguage)},Xe=Ne("thumb"),Te=(()=>{let V=Di([et,Xe],([le,Pe])=>le?"crashed":Pe);return Lt(nt({},V),{is:le=>tt(V)===le})})(),Z=(()=>{let V=Ne(new Set(b));return Lt(nt({},V),{add:le=>{V.update(Pe=>new Set([...Pe].concat(le)))},remove:le=>{V.update(Pe=>{let Ge=[...Pe];return new Set(Array.isArray(le)?Ge.filter(st=>!le.includes(st)):Ge.filter(st=>st!==le))})},includes:le=>{let Pe=tt(V);return Array.isArray(le)?le.every(Ge=>Pe.has(Ge)):Pe.has(le)}})})();M({message:"create store"});let Ce=V=>{let le=V.container;le.append(L.experimental.element$.getValue()),bt=new MutationObserver(Pe=>{let{removedNodes:Ge}=Pe[0];Ge.length&&le.append(L.experimental.element$.getValue())}),bt.observe(le,{childList:!0})},ue=V=>{M({message:`init video, config: ${JSON.stringify(V)}`}),S?Ce(V):L.initVideo(V),V.subtitles&&L.setExternalTextTracks(V.subtitles),ee=V},Ie=new mt.Subject,Je=V=>Ie.next(V),ft=new mt.Subject,ct=new mt.Subject,dt=new mt.Subject,bt=null,vt={actionRewind$:ft,actionSeek$:ct,inPiP$:ve,inFullscreen$:new mt.Observable(V=>We.subscribe(le=>V.next(le))),actionSetSubtitle$:dt,nextMovie$:Ie};if(K){let{oneStat:V,statSubscription:le}=K;le.add(V.attachTo(L)),le.add(V.attachToUi(vt)),le.add(V.attachToAds(Q.events)),V.authorize(o).catch(Pe=>{M({message:`onestat auth error ${String(Pe)}`})})}if(J){let V=new mt.Subscription,le=(Pe,Ge)=>V.add(Pe.subscribe(Ge));if(le(L.events.managedError$,Pe=>{J.logIError(Pe)}),le(L.events.fatalError$,Pe=>{J.logIError(Pe,!0)}),K){let{oneStat:Pe}=K;le(Pe.experimental.error$,Ge=>{J.logIError(Ge)})}J.sentrySubscription.add(V)}let we=()=>{(0,mt.isIOS)()&&ke&&Oc(ke)},_t=new mt.Subscription().add(L.experimental.element$.subscribe(V=>{V&&(ke=V,V.classList.add("player-media"),Oo(E)&&(E.updateVideoElement(),E.registryEventHandlers()),S&&V.setAttribute("pip","false"))})).add(L.events.ended$.subscribe(()=>{var V;we(),(V=a==null?void 0:a.onEnded)==null||V.call(a)})).add(L.events.started$.subscribe(()=>ut(void 0,null,function*(){var le,Pe;Oo(E)&&(yield E==null?void 0:E.revealPictureInPicture());let V=L.info.muted$.getValue();(le=a==null?void 0:a.onStarted)==null||le.call(a),(Pe=Qe.onStarted)==null||Pe.call(Qe,V)}))).add(L.events.willSeek$.subscribe(({from:V,to:le})=>{var Pe;(Pe=a==null?void 0:a.onSeek)==null||Pe.call(a,V,le)})).add(L.info.position$.subscribe(V=>{var Pe;let le=L.info.duration$.getValue();(Pe=a==null?void 0:a.onTimeupdate)==null||Pe.call(a,le,V),Q.setPosition(V,le)})).add(L.events.fatalError$.subscribe(()=>{var V;(V=a==null?void 0:a.onCrashed)==null||V.call(a)})).add(L.events.firstBytes$.subscribe(()=>{G.state.isFirstBytes$.set(!0)})).add(L.info.is3DVideo$.subscribe(V=>{G.ui.is3DVideo.set(V)})).add(L.info.isEnded$.subscribe(V=>{S&&(V?(P!=null&&P.getValue()&&Z.add(tr),Z.add("PLAY_BUTTON")):Z.remove("PLAY_BUTTON"))})).add(L.info.liveTime$.subscribe(V=>{var le;(le=a==null?void 0:a.onLiveTime)==null||le.call(a,V)})).add(L.info.isStalled$.subscribe(V=>{var le;(le=a==null?void 0:a.onStalledChanged)==null||le.call(a,V)})).add(Q.events.started$.subscribe(()=>{var V,le;(le=(V=a==null?void 0:a.adsInfo)==null?void 0:V.onStarted)==null||le.call(V)})).add(Q.events.ended$.subscribe(()=>{var V,le;(le=(V=a==null?void 0:a.adsInfo)==null?void 0:V.onCompleted)==null||le.call(V)})),Mt=new mt.Subscription,Vt=()=>{Mt.add(L.events.log$.subscribe(V=>{console.debug("%c sdk ","background:#9ddcf7;",`sdk component: ${V.component}`,V.message)})).add(x.log$.subscribe(V=>{console.debug("%c ui ","background:#f3da0b;",`ui component: ${V.component}.`,V.message)}))},ze=()=>{Mt.unsubscribe()},jt=(V,le)=>{L.startCameraManualRotation(V,le)},Ht=(V=!1)=>{L.stopCameraManualRotation(V)},Wt=(V,le,Pe)=>{L.moveCameraFocusPX(V,le,Pe)},$t=()=>{L.holdCamera()},me=()=>{L.releaseCamera()},ht=Nn(L.info.position$.getValue(),V=>{let le,Pe,Ge=()=>{let st=L.info.playbackState$.getValue(),Tt=L.info.isLive$.getValue(),Kt=L.info.duration$.getValue(),At=L.info.position$.getValue();if([cn.PlaybackState.PLAYING,cn.PlaybackState.PAUSED].includes(st)){let ji=Tt?At-Kt:L.getExactTime();ji!==Pe&&V(ji),Pe=ji}le=requestAnimationFrame(Ge)};return Ge(),()=>cancelAnimationFrame(le)}),yt=Et(ve),Re=Et(L.info.playbackState$),qe=Et(L.info.currentBuffer$),kt=Et(L.info.isEnded$),zt=Et(L.info.isLive$),ei=H.features.playbackRate?Et(L.info.canChangePlaybackSpeed$):Nn(!1),mn=Et(L.info.liveBufferTime$),yi=Et(L.info.volume$),wi=Et(L.info.muted$),Ni=Vs(L.info.autoQualityLimits$.pipe((0,mt.map)(({max:V})=>V!==void 0)),((Dn=L.info.autoQualityLimits$.getValue())==null?void 0:Dn.max)!==void 0),oi=Et(L.info.autoQualityLimitingAvailable$),ki=Et(L.info.availableQualities$),pn=Et(L.info.availableQualitiesFps$),Ci=Et(L.info.chromecastState$),Qi=Et(L.info.chromecastDeviceName$),fi=Et(L.info.currentFormat$),Oi=Et(L.info.throughputEstimation$),Si=Et(L.info.videoBitrate$),Yi=Et(L.info.intrinsicVideoSize$),Pi=Et(L.info.duration$),ci=Et(L.info.isAudioAvailable$),Bt=null,Rt=L.info.isBuffering$,Ti=Nn(Rt.getValue(),V=>{let le=Rt.subscribe(Pe=>{Pe&&Bt===null?Bt=window.setTimeout(()=>{V(Rt.getValue()),Bt=null},H.loaderDelay):V(Pe)});return()=>{le.unsubscribe(),Bt&&clearTimeout(Bt)}}),Ii=()=>{Bt&&clearTimeout(Bt),Bt=null},Zt=Di([Pi,zt],([V,le])=>le?-V:V),di=Di([Re],([V])=>V===cn.PlaybackState.PLAYING),mi=Et(L.info.atLiveEdge$),wt=Et(L.info.atLiveDurationEdge$),qt=Et(L.info.position$),St=Di([qt,Pi],([V,le])=>isFinite(V)&&isFinite(le)&&!!le),Fi=Di([Ci],([V])=>V===cn.ChromecastState.CONNECTED),li=Ne(void 0),_n=Et(L.info.isAutoQualityEnabled$,V=>V&&li.set(void 0)),hn=Et(L.info.currentQuality$,()=>li.set(void 0)),ti=Di([li,hn],([V,le])=>V!=null?V:le),Ei=Di([ki,pn,_n,ti,fi],([V,le,Pe,Ge,st])=>{let Tt=[];st!==cn.VideoFormat.MPEG&&Tt.push({value:"auto",displayValue:Ue("auto_quality_option"),selected:Pe});let Kt=V.filter(At=>At!==mt.VideoQuality.INVARIANT);for(let At of Kt){let ji=le[At],Io=At===mt.VideoQuality.INVARIANT?Ue("auto_quality_option"):At;Tt.push({value:At,displayValue:`${Io}${ji?vm(ji):""}`,selected:Pe?!1:At===Ge})}return Tt}),Zi=Et(L.info.currentPlaybackRate$),Mi=Di([Zi,mi,wt],([V,le,Pe])=>{let Ge=Pe||S?1:H.controls.playbackRateMin,st=le?1:H.controls.playbackRateMax,Tt=H.controls.playbackRateStep,Kt=[];for(let At=Ge;At<=st;At+=Tt)Kt.push({value:At,displayValue:At===1?Ue("playback_rate_1"):Ue("playback_rate",{multiplier:At.toString(10)}),selected:V===At});return Kt}),pi=H.features.subtitles?Et(L.info.availableTextTracks$):Nn([]),Xt=Di([pi],([V],le)=>{let Pe=[],Ge=[];for(let st of V)st.url&&Pe.push(fetch(st.url));Promise.allSettled(Pe).then(st=>{for(let[Tt,Kt]of st.entries())Kt.status==="fulfilled"&&Kt.value.text().then(At=>{let ji=new ym,Io=V[Tt].language,Cl=!!V[Tt].isAuto,jl=ji.parse(At);Io&&jl&&Ge.push({lang:Io,subtitles:jl,isAuto:Cl}),Tt===st.length-1&&le(Ge)})})}),ii={displayValue:Ue("subtitles_off"),value:"off"},Vi=Ne(nt({},ii)),ri=Di([Xt,Vi,Xt],([V,le])=>{if((V==null?void 0:V.length)>0){let Pe=[Lt(nt({},ii),{selected:(le==null?void 0:le.value)===ii.value})];for(let{lang:Ge,isAuto:st}of V)xr[Ge]&&Pe.push({displayValue:st?Ue("subtitles_auto",{language:xr[Ge]}):xr[Ge],value:Ge,selected:(le==null?void 0:le.value)===Ge,isAuto:st});return Pe}else return[]}),on=Di([ht,Vi,Xt],([V,le,Pe])=>{if(le&&le.value!==ii.value)return wm(V,le,Pe)}),Ai=Di([on],([V])=>V!=null&&V.texts?V.texts:[]),gn=Ne(!0),bn=Di([qe,Zt,qt,mn],([V,le,Pe,Ge])=>{var At;let st=(At=V==null?void 0:V.end)!=null?At:0;if(!Ge)return st/le;let Kt=-Pe+Ge-le;return(st-Kt)/le}),ln=Et(L.info.availableSources$),Xi=Di([ln],([V])=>Object.keys((V==null?void 0:V[cn.VideoFormat.MPEG])||{}).length>0),Hi=()=>{var Pe,Ge,st;let V=Object.keys(((Ge=(Pe=L.info.availableSources$)==null?void 0:Pe.getValue())==null?void 0:Ge[cn.VideoFormat.MPEG])||{}),le=(0,mt.getHighestQuality)(V)||mt.VideoQuality.Q_144P;return(st=ee.sources[cn.VideoFormat.MPEG])==null?void 0:st[le]},ni=()=>{var le;let V=Hi();V?gc(V,((le=ee==null?void 0:ee.meta)==null?void 0:le.title)||"video"):M({message:"There is no URL for download video"})},_i=()=>{M({message:"toggle muted"});let V=L.info.muted$.getValue(),Ge=!(L.info.volume$.getValue()===0||V);qi(Ge)},Li=()=>{G.ui.settingsMenuVisible.set(!1)},zi=V=>{G.ui.settingsMenuOpenedByKeyboard.set(!!V),G.ui.settingsMenuVisible.set(!0)},rn=V=>{tt(G.ui.settingsMenuVisible)?Li():zi(V)},Bi=(V,le=V,Pe=!1)=>{var Tt,Kt,At;let Ge=!Pe,st=L.info.muted$.getValue();M({message:`set volume, volume: ${V}, preferredVolume: ${le}, internalCall: ${Ge}`}),L.setVolume(V),Q.setVolume(V),Ge&&((Tt=a==null?void 0:a.onVolumeChange)==null||Tt.call(a,V)),Ls(le),st?(L.setMuted(!1),Ge&&((Kt=a==null?void 0:a.onUnmute)==null||Kt.call(a)),lr(!1)):!st&&V===0&&(L.setMuted(!0),Ge&&((At=a==null?void 0:a.onMute)==null||At.call(a)),lr(!0))},qi=(V,le=!1)=>{var st,Tt,Kt,At;let Pe=!le,Ge=L.info.volume$.getValue();if(M({message:`set muted, currentVolume: ${Ge}, mute: ${V}, internalCall: ${Pe}`}),L.setMuted(V),Q.setVolume(V?0:Ge),lr(V),Pe&&(V?(st=a==null?void 0:a.onMute)==null||st.call(a):(Tt=a==null?void 0:a.onUnmute)==null||Tt.call(a)),Ge===0){let ji=(Kt=or())!=null?Kt:H.volumeDefault;ji===0&&(ji=H.volumeMinRestore,Ls(ji)),L.setVolume(ji),Q.setVolume(ji),Pe&&((At=a==null?void 0:a.onVolumeChange)==null||At.call(a,ji))}},Ui=Ne(!1),Ze=V=>{Ui.set(V),L.setLooped(V)};Ze(q);let Ji=()=>{L.prepare()},Jt=()=>{var le,Pe;if((0,mt.assertNonNullable)(G),!tt(G.ui.controls.disabledControls$).has("PLAY_BUTTON")){if(M({message:"toggle play"}),tt(G.playerPhase)==="ads"){Q.togglePlay();return}if(L.info.playbackState$.getValue()!==cn.PlaybackState.PLAYING){if(L.info.isEnded$.getValue()){if(M({message:"toggle play, video ended, seek to 0"}),ft.next(),ct.next(so.SeekAction.REWIND),S){v==null||v();return}L.seekTime(0)}M({message:"toggle play, call player.play"}),L.play(),(le=a==null?void 0:a.onPlay)==null||le.call(a)}else M({message:"toggle play, call player.pause"}),L.pause(),(Pe=a==null?void 0:a.onPause)==null||Pe.call(a)}},Ke=V=>{M({message:`set quality, quality: ${V}`}),L.setAutoQuality(V==="auto"),V!=="auto"?(Cc(e,V),li.set(V),L.setQuality(V)):Bs()},sn=V=>{M({message:`set trafficSavingEnabled, value: ${V}`}),L.setAutoQualityLimits({max:V?H.trafficSavingLimit:void 0}),Ec(V)},Ki=V=>{L.setPlaybackRate(V),H.features.saveRate&&re&&!L.info.isLive$.getValue()&&Vc(V)},xi=()=>{let V=tt(Mi),le=V.findIndex(({selected:Ge})=>Ge);if(le===V.length-1)return;let Pe=V[le+1];Ki(Pe.value)},an=()=>{let V=tt(Mi),le=V.findIndex(({selected:Ge})=>Ge);if(le===0)return;let Pe=V[le-1];Ki(Pe.value)},$i=V=>{V&&V.value!==ii.value&&dt.next(V.isAuto?V.value+"_auto":V.value),Vi.set(V)},Tn=()=>{let V=tt(ri),le=tt(Vi),Pe=tt(Be);if((le==null?void 0:le.value)===ii.value){let Ge=V.filter(st=>st.value!==ii.value).find(st=>st.value===Pe)||V[1];$i(Ge!=null?Ge:nt({},ii))}else $i(Lt(nt({},ii),{selected:!1}))},si=(V,le,Pe=!0)=>{if(M({message:`seek to time, time: ${V}`}),ct.next(le),L.info.isLive$.getValue()){let Ge=L.info.duration$.getValue(),st=Math.min(0,Ge+V);L.seekTime(st,Pe)}else{if(P!=null&&P.getValue())return;L.seekTime(Po(V),Pe)}},ai=V=>{M({message:`seek to episode start time: ${V}`}),si(V,so.SeekAction.EPISODE,!0)},en=(V,le)=>{M({message:`seek to percent, percent: ${V}`});let Pe=Math.round(tt(Zt)*V);si(Pe,le,!1)},hi=V=>{M({message:`seek external, time: ${V}`}),ct.next(so.SeekAction.UNKNOWN),L.seekTime(L.info.isLive$.getValue()?-V:V)},se=V=>{var le,Pe;M({message:`set auto quality limitation. Max: ${(le=V.max)!=null?le:"none"}. Min: ${(Pe=V.min)!=null?Pe:"none"}`}),L.setAutoQualityLimits(V)},pt=V=>{M({message:`seek external to episode start time: ${V}`}),si(V,so.SeekAction.EPISODE,!0)},gi=V=>{M({message:`set playback rate to: ${V}`}),L.setPlaybackRate(V)},bi=Ne(void 0),ui=Ne(!1),xt=V=>{M({message:`start scrubbing, progress: ${V}`}),ui.set(!0),Hn(V)},Hn=V=>{bi.set(V)},Bn,In,Gt=()=>{bi.set(void 0),ui.set(!1)},Cn=()=>{clearTimeout(In),clearTimeout(Bn),Bn=window.setTimeout(()=>{Gt()},500),ke==null||ke.removeEventListener("seeked",Cn)},Zn=V=>{M({message:`complete scrubbing, progress: ${V}`}),en(V,so.SeekAction.SLIDER),tt(G.ui.isMobile)&&tt(G.state.currentFormat$)===cn.VideoFormat.HLS?(ke==null||ke.addEventListener("seeked",Cn),In=window.setTimeout(()=>{Cn()},300)):Gt()},zn=Di([ht,Zt,bi],([V,le,Pe],Ge)=>{Ge((0,mt.isNonNullable)(Pe)?Pe*le:V)}),qn=Ne({width:0,height:0}),Rn=Di([qn],([{width:V}],le)=>{let Pe=qd(V);le(Pe)}),un=Ne(!1),Un=Di([Rn,un],([V,le])=>le?A.filter(Pe=>!Pe.hideOnMobile):A.filter(Pe=>{var Ge;return!((Ge=Pe.hideOnDesktopGridTypes)!=null&&Ge.includes(V))})),Kn=Di([un,et],([V,le],Pe)=>{Pe(V&&le)}),ne=()=>{ct.next(so.SeekAction.LIVE),M({message:"switch to active live"}),L.seekTime(0),L.info.playbackState$.getValue()!==cn.PlaybackState.PLAYING&&G.actions.internal.togglePlay()},Pt=()=>Q.skip(),En=(V=!0)=>{(0,mt.assertNonNullable)(G),M({message:`switch from ads to video, callPlay: ${V}`}),Xe.set("video"),V&&L.play()},vn=()=>{(0,mt.assertNonNullable)(G),M({message:"switch from video to ads"}),G.actions.internal.pause(),we(),Xe.set("ads")},Mn=V=>{(0,mt.assertNonNullable)(G);let le=V?"waitingLive":"thumb";Xe.set(le)},Sn=V=>{(0,mt.assertNonNullable)(G);let le=V?"waitingRecord":"thumb";Xe.set(le)},ao=()=>((0,mt.assertNonNullable)(G),_c(L,ee,G)),uo=()=>((0,mt.assertNonNullable)(G),hc(L,ee,G)),Co=()=>ke,fo=()=>{M({message:"toggle chromecast"}),L.toggleChromecast()},yn=V=>{var Pe;(0,mt.assertNonNullable)(G);let le=!V;if(tt(G.playerPhase)==="ads"){M({message:`pause ads, internalCall: ${le}`}),Q.pause();return}M({message:`pause video, internalCall: ${le}`}),le&&((Pe=a==null?void 0:a.onPause)==null||Pe.call(a)),L.pause()},ie=V=>{var Pe;(0,mt.assertNonNullable)(G);let le=!V;if(tt(G.playerPhase)==="ads"){M({message:`play ads, internalCall: ${le}`}),Q.play();return}M({message:`play video, internalCall: ${le}`}),le&&((Pe=a==null?void 0:a.onPlay)==null||Pe.call(a)),L.play()},co=(V,le)=>{(0,mt.assertNonNullable)(G),M({message:`first start, show ads: ${V}, internalCall: ${!le}`}),V?Xe.set("ads"):(Xe.set("video"),le?L.play():G.actions.internal.togglePlay())},to=()=>(M({message:"getting time codes"}),u),So=()=>{let V=to();if(!V||[0,1].includes(V.length))return;let le=L.info.position$.getValue();return V.find(Pe=>Pe.time>le)},io=V=>{let le=V;le||(le=So()),le&&(M({message:"seek to next episode"}),si(le.time,so.SeekAction.EPISODE,!0))},no=()=>{let V=to();if(!V||[0,1].includes(V.length))return;let le=L.info.position$.getValue(),Pe=V.findIndex(st=>st.time>le),Ge=Pe===-1?V.length-2:Pe-2;if(!(Ge<0))return V[Ge]},jo=V=>{let le=V;le||(le=no()),le&&(M({message:"seek to prev episode"}),si(le.time,so.SeekAction.EPISODE,!0))},Wo=()=>(M({message:"getting preview thumbs data"}),c),kl=()=>ut(void 0,null,function*(){E!=null&&E.isActive()?yield E==null?void 0:E.remove():yield E==null?void 0:E.request()}),Go=(V=-90)=>{be.update(le=>le+V)},Xn=Ne([]);w==null||w.subscribe(V=>{let le=[];for(let Pe=0;Pe<V.length;Pe++){let{range:[Ge,st],subjects:Tt}=V[Pe];Pe===0&&Ge!==0&&le.push({time:0,text:"",interactive:!1,completed:!0}),le.push({time:Ge/1e3,text:"",interactive:!0,completed:!Tt.length}),st!==1/0&&le.push({time:st/1e3,text:"",interactive:!1,completed:!0})}Xn.set(le)});let Qo=Ne(!1);P==null||P.subscribe(V=>{V&&tt(ui)&&Gt()});let Po=V=>{if(!S)return V;let le=tt(Xn),Pe=tt(Zt),st=tt(qt)/Pe,Tt=le.find(Kt=>Kt.interactive&&!Kt.completed&&Kt.time>st);return typeof(Tt==null?void 0:Tt.time)=="number"?Math.min(V,Tt.time-.05):V},To=()=>{G.ui.episodes.panelOpened$.set(!1)},Yo=()=>{clearTimeout(In),clearTimeout(Bn),_t.unsubscribe(),Mt.unsubscribe(),L.destroy(),Q.destroy(),K==null||K.destroy(),J==null||J.destroy(),xe.unsubscribe(),bt==null||bt.disconnect(),bt=null},G={interfaceLanguage$:Be,initVideo:ue,videoId:e,isClip:t,playerPhase:Te,vsid:$e,state:{positionExact$:ht,positionWithScrubbing$:zn,duration$:Zt,playbackState$:Re,isPlaying$:di,isLoaderVisible:Ti,bufferedProgress$:bn,isLive$:zt,canChangePlaybackSpeed$:ei,isActiveLive$:mi,isOldestAvailableLive$:wt,isRewindableLive$:St,isEnded$:kt,muted$:wi,volume$:yi,trafficSavingEnabled$:Ni,autoQualityLimitingAvailable$:oi,currentQuality$:ti,isAutoQualityEnabled$:_n,availableQualities$:Ei,currentPlaybackRate$:Zi,availablePlaybackRates$:Mi,currentSubtitle$:Vi,availableSubtitlesList$:ri,currentSubtitleCaptions$:Ai,isAutoSubtitleCaptionVisible$:gn,chromecastState$:Ci,chromecastDeviceName$:Qi,chromecastConnected$:Fi,currentFormat$:fi,throughputEstimation$:Oi,videoBitrate$:Si,videoSize$:Yi,errorLog$:Oe,crashed$:et,isAudioAvailable$:ci,isAudioDisabled:!!r,canDownload:H.features.download&&!!l,availableSources$:ln,hasMpegSources$:Xi,isInteractive:S,showInteractiveGraph:H.features.interactiveGraph,showSeekToInteractive:H.features.seekToInteractive,showPlayPrevChapter:H.features.interactivePlayPrevChapter,showInteractiveTimeIndicator:H.features.interactiveTimeIndicator&&!!tt(Xn).length,interactiveEpisodes$:Xn,isInteractiveTime$:P?Et(P):Ne(!1),graphIsOpened$:Ne(!1),isInteractiveExpectation$:Qo,hasInteractiveBranches:g,playPrevChapterDisabledTooltip:I,looped$:Ui,isFirstBytes$:Ne(!1)},ui:{controlsVisible:Ne(!1),touched:Ne(!1),controls:{prevButton:Ne(void 0),playButton:Ne(void 0),replayButton:Ne(void 0),nextButton:Ne(void 0),playPrevChapterButton:Ne(void 0),seekToInteractiveButton:Ne(void 0),interactiveGraphButton:Ne(void 0),liveButton:Ne(void 0),time:Ne(void 0),episodes:Ne(void 0),volume:Ne(void 0),subtitles:Ne(void 0),settings:Ne(void 0),context:Ne(void 0),chromecast:Ne(void 0),pip:Ne(void 0),fullscreen:Ne(void 0),vkLogo:Ne(void 0),interactiveTimeIndicator:Ne(void 0),additionalButtons:A.length?A.reduce(V=>[...V,Ne(void 0)],[]):[],disabledControls$:Z},modals:{hotKeyMap:{show:Ne(!1),data:Ne({title:"",closeBtnText:"",groups:[]})}},isFullscreen:We,rotateAlpha:be,isAutoplay:Ne(!1),debugPanelVisible:Ne(!1),episodes:{panelOpened$:Ne(!1),openedByKeyboard$:Ne(!1)},contextMenu:{visible$:Ne(!1),btnRef$:Ne(void 0),openedByBtnKeyboard$:Ne(!1),openedByHotKey$:Ne(!1),lastActiveElem$:Ne(void 0),showContextMenuBtn$:Ne(!1),position$:Ne({top:0,left:0})},playerSize:qn,isMobile:un,mobileNotReportControlHidden$:Kn,mobileUnmuteButtonExpanded:Ne(!1),mobileUnmuteButtonVisible:Ne(!1),icon3DVideoVisible:Ne(!1),settingsMenuVisible:Ne(!1),settingsMenuOpenedByKeyboard:Ne(!1),scrubbingInProgress:ui,is3DVideo:Ne(!1),isPictureInPictureActive$:yt,pictureInPictureType$:Nn(X),clientInfo$:Nn(je),currentGridType$:Rn,additionalButtons$:Un,interactiveHideMobileControls:Ne(!1),overlayContainer$:Ne(void 0),startedByKeyboard$:Ne(!1)},ads:{position:Ne(0),duration:Ne(0),playbackState:Ne("inactive"),canSkip:Ne(!1),secondsToWatchBeforeSkip:Ne(0),postrollPassed:Ne(!1)},webApi:{pictureInPictureApi:E,annotationsApi:te},actions:{internal:{preload:Ji,firstStart:V=>co(V,!1),pause:()=>yn(!1),togglePlay:Jt,toggleMuted:_i,toggleSettingsMenu:rn,openSettingsMenu:zi,closeSettingsMenu:Li,setVolume:Bi,setQuality:Ke,setTrafficSavingEnabled:V=>sn(V),setPlaybackRate:Ki,incrementPlaybackRate:xi,decrementPlaybackRate:an,setSubtitle:$i,toggleSubtitle:Tn,togglePictureInPicture:kl,startScrubbing:xt,progressScrubbing:Hn,completeScrubbing:Zn,toggleChromecast:fo,switchToActiveLive:ne,switchFromAdsToVideo:En,switchFromVideoToAds:vn,skipAd:Pt,setWaitingLive:Mn,setWaitingRecord:Sn,getDebugTextData:ao,getDebugPanelData:uo,getVideoElement:Co,seekTime:(V,le,Pe)=>si(V,le,Pe),clearDelayedBufferingCheckTimeout:Ii,seekEpisodeStartTime:ai,seekToPercent:en,getNextEpisode:So,seekToNextEpisode:io,getPrevEpisode:no,seekToPrevEpisode:jo,startLogging:Vt,stopLogging:ze,startCameraManualRotation:jt,stopCameraManualRotation:Ht,moveCameraFocusPX:Wt,holdCamera:$t,releaseCamera:me,getVideoEpisodes:to,getPreviewThumbsData:Wo,downloadVideo:ni,addLanguage:Ds,setLanguage:ye,nextMovie:Je,videoRotate:Go,correctSeekTimeToInteractive:Po,replayInteractive:v,setLooped:Ze},external:{firstStart:V=>co(V,!0),play:()=>ie(!0),pause:()=>yn(!0),seekTime:V=>hi(V),seekEpisodeStartTime:V=>pt(V),setPlaybackRate:V=>gi(V),setAutoQualityLimits:V=>se(V),setMuted:V=>qi(V,!0),setVolume:V=>Bi(V,V,!0),returnFocusToEpisodes:To}},callbacks:a,setUiCallbacks:V=>{Qe=nt({},V)},getAdmanWrapper:()=>Q,getLogger:()=>x,destroy:Yo};return G};var ts=(i,e,t,n)=>{var a;if(!i)return;let o=["tooltipPointerOffsetX","disabledControls$","additionalButtons"],r=["interactiveTimeIndicator"],l=i.getBoundingClientRect();for(let[s,u]of Object.entries(e))if(!["tooltipPointerOffsetX","disabledControls$","additionalButtons"].includes(s)){let c=(a=t[s])==null?void 0:a.getBoundingClientRect(),m=(n||r.includes(s))&&!!c&&!!(c.right-c.left);u.set({positionStartX:0,positionEndX:0,left:m?Math.round(c.left-l.left):0,right:m?Math.round(c.right-l.left):0,top:m?Math.round(c.top-l.top):0,bottom:m?Math.round(c.bottom-l.top):0,isDisplayed:m})}};var is=(i,e,t)=>ut(void 0,null,function*(){yield Gn(),e&&t&&(t.focus(),i.set(!1))});function Rv(i){let e,t,n,o=i[2].default,r=Ee(o,i,i[1],null),l=[{xmlns:"http://www.w3.org/2000/svg"},{width:"24"},{height:"24"},{fill:"none"},{"aria-hidden":"true"},{"data-testid":"dots-icon"},{role:"img"},i[0]],a={};for(let s=0;s<l.length;s+=1)a=oe(a,l[s]);return{c(){e=N("svg"),r&&r.c(),t=N("path"),f(t,"fill","#fff"),f(t,"d","M18 10c1.1 0 2 .9 2 2s-.9 2-2 2-2-.9-2-2 .9-2 2-2m-6 4c-1.1 0-2-.9-2-2s.9-2 2-2 2 .9 2 2-.9 2-2 2m-6 0c-1.1 0-2-.9-2-2s.9-2 2-2 2 .9 2 2-.9 2-2 2"),ge(e,a)},m(s,u){C(s,e,u),r&&r.m(e,null),p(e,t),n=!0},p(s,[u]){r&&r.p&&(!n||u&2)&&Ve(r,o,s,s[1],n?Me(o,s[1],u,null):Ae(s[1]),null),ge(e,a=Le(l,[{xmlns:"http://www.w3.org/2000/svg"},{width:"24"},{height:"24"},{fill:"none"},{"aria-hidden":"true"},{"data-testid":"dots-icon"},{role:"img"},u&1&&s[0]]))},i(s){n||(d(r,s),n=!0)},o(s){_(r,s),n=!1},d(s){s&&k(e),r&&r.d(s)}}}function Dv(i,e,t){let{$$slots:n={},$$scope:o}=e;return i.$$set=r=>{t(0,e=oe(oe({},e),he(r))),"$$scope"in r&&t(1,o=r.$$scope)},e=he(e),[e,o,n]}var Ru=class extends j{constructor(e){super(),W(this,e,Dv,Rv,U,{})}},Pm=Ru;function Nv(i){let e,t;return e=new Pm({}),{c(){D(e.$$.fragment)},m(n,o){B(e,n,o),t=!0},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){_(e.$$.fragment,n),t=!1},d(n){R(e,n)}}}function Ov(i){let e,t,n;function o(l){i[8](l)}let r={className:i[3]?"opened":"",testId:"btn-context-menu",disabled:i[0],ariaLabel:i[1],click:i[5],focus:i[6],blur:i[7],ariaExpanded:i[3],$$slots:{default:[Nv]},$$scope:{ctx:i}};return i[2]!==void 0&&(r.ref=i[2]),e=new gt({props:r}),_e.push(()=>He(e,"ref",o)),{c(){D(e.$$.fragment)},m(l,a){B(e,l,a),n=!0},p(l,[a]){let s={};a&8&&(s.className=l[3]?"opened":""),a&1&&(s.disabled=l[0]),a&2&&(s.ariaLabel=l[1]),a&8&&(s.ariaExpanded=l[3]),a&16384&&(s.$$scope={dirty:a,ctx:l}),!t&&a&4&&(t=!0,s.ref=l[2],Fe(()=>t=!1)),e.$set(s)},i(l){n||(d(e.$$.fragment,l),n=!0)},o(l){_(e.$$.fragment,l),n=!1},d(l){R(e,l)}}}function Fv(i,e,t){let n,{disabled:o=!1}=e,{ariaLabel:r=""}=e,l=it(),a=l.ui.contextMenu.visible$;F(i,a,P=>t(3,n=P));let s=l.ui.contextMenu.openedByBtnKeyboard$,u=l.ui.contextMenu.showContextMenuBtn$,c=l.ui.contextMenu.position$,m=l.ui.contextMenu.btnRef$,h,y=P=>{let v=rl(P),g=i1(h);c.set(g),s.set(v),a.set(!n)},b=()=>{u.set(!0)},S=()=>{u.set(!1)};function w(P){h=P,t(2,h)}return i.$$set=P=>{"disabled"in P&&t(0,o=P.disabled),"ariaLabel"in P&&t(1,r=P.ariaLabel)},i.$$.update=()=>{if(i.$$.dirty&4)e:h&&m.set(h)},[o,r,h,n,a,y,b,S,w]}var Du=class extends j{constructor(e){super(),W(this,e,Fv,Ov,U,{disabled:0,ariaLabel:1})}},Tm=Du;function Hv(i){Se(i,"svelte-17imlp9",".interactive-episode-icon-animated.svelte-17imlp9{position:absolute;top:16px;right:16px;width:32px;height:32px;transition:0.3s;opacity:1}.invisible.svelte-17imlp9{opacity:0;visibility:hidden}.fullscreen.svelte-17imlp9:not(.mobile){width:40px;top:19px;right:23px;height:40px}.mobile.svelte-17imlp9{width:28px;height:28px;top:12px;right:14px}.fullscreen.mobile.svelte-17imlp9{width:32px;height:32px}@media screen and (orientation: portrait){.interactive-episode-icon-animated.mobile.fullscreen.svelte-17imlp9{top:40px;right:16px}}@keyframes svelte-17imlp9-pulse{0%{transform:scale(1);border-width:1px;opacity:0}10%{opacity:1}50%{transform:scale(1.5);border-width:1px;opacity:0.5}100%{transform:scale(1.5);border-width:0.5px;opacity:0}}.pulse.svelte-17imlp9{display:block;content:'';border:1px solid #fff;position:absolute;top:0;left:0;right:0;bottom:0;border-radius:100%;transform:scale(1.8);animation:1s svelte-17imlp9-pulse infinite;transition:0.3s;pointer-events:none}.pulse.paused.svelte-17imlp9{animation-play-state:paused}.interactive-episode-icon-animated svg{width:100%;height:100%}.ref-block.svelte-17imlp9{position:absolute;top:0;width:100%;height:100%;visibility:hidden}.hidden.svelte-17imlp9{display:none}")}function zv(i){let e,t;return e=new Lr({props:{completed:!0}}),{c(){D(e.$$.fragment)},m(n,o){B(e,n,o),t=!0},p:pe,i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){_(e.$$.fragment,n),t=!1},d(n){R(e,n)}}}function qv(i){let e,t,n,o,r,l,a,s,u,c;function m(y){i[22](y)}let h={tooltipContent:Y("tooltip_interactive_interaction_time_indicator"),tooltipActive:i[5],initialTranslateYPx:72,tooltipPlacement:"bottom",onTooltipVisibilityChange:i[13],$$slots:{default:[zv]},$$scope:{ctx:i}};return i[0]!==void 0&&(h.ref=i[0]),t=new Ft({props:h}),_e.push(()=>He(t,"ref",m)),t.$on("click",i[14]),{c(){e=T("div"),D(t.$$.fragment),o=O(),r=T("div"),l=O(),a=T("div"),f(r,"class","ref-block svelte-17imlp9"),z(r,"hidden",i[1]),f(a,"class","pulse svelte-17imlp9"),z(a,"paused",i[4]),f(e,"class","interactive-episode-icon-animated svelte-17imlp9"),z(e,"mobile",i[2]),z(e,"fullscreen",i[6]),z(e,"invisible",i[1])},m(y,b){C(y,e,b),B(t,e,null),p(e,o),p(e,r),i[23](r),p(e,l),p(e,a),i[24](a),s=!0,u||(c=[de(e,"mousemove",at(i[21])),de(e,"mouseleave",i[15])],u=!0)},p(y,b){let S={};b[0]&32&&(S.tooltipActive=y[5]),b[1]&1&&(S.$$scope={dirty:b,ctx:y}),!n&&b[0]&1&&(n=!0,S.ref=y[0],Fe(()=>n=!1)),t.$set(S),(!s||b[0]&2)&&z(r,"hidden",y[1]),(!s||b[0]&16)&&z(a,"paused",y[4]),(!s||b[0]&4)&&z(e,"mobile",y[2]),(!s||b[0]&64)&&z(e,"fullscreen",y[6]),(!s||b[0]&2)&&z(e,"invisible",y[1])},i(y){s||(d(t.$$.fragment,y),s=!0)},o(y){_(t.$$.fragment,y),s=!1},d(y){y&&k(e),R(t),i[23](null),i[24](null),u=!1,ot(c)}}}function Uv(i,e,t){var ee;let n,o,r,l,a,s,{ref:u=void 0}=e,c,m=it(),h=On(),{interactiveControlsOpacity$:y}=h;F(i,y,ke=>t(18,o=ke));let b=m.ui.isMobile;F(i,b,ke=>t(2,a=ke));let S=m.ui.isFullscreen;F(i,S,ke=>t(6,s=ke));let w=m.state.isInteractiveTime$;F(i,w,ke=>t(19,r=ke));let P=h.showInteractiveTimeIndicatorTooltip$;F(i,P,ke=>t(17,n=ke));let v=m.ui.controlsVisible;F(i,v,ke=>t(20,l=ke));let g=(ee=m.callbacks)==null?void 0:ee.onInteractiveTimeIndicatorClick,I,A,q,K=()=>{t(4,q=!0)},re=()=>{ae(),c==null||c.addEventListener("animationiteration",K,{once:!0})},ae=()=>{t(4,q=!1),c==null||c.removeEventListener("animationiteration",K)},H=ke=>{P.set(ke)},L,x=()=>{A||(P.set(!0),g==null||g())};Wn(()=>{P.clearTimeout(),ae()});let Q=()=>{P.set(!1)};function J(ke){Vn.call(this,i,ke)}function E(ke){u=ke,t(0,u)}function te(ke){_e[ke?"unshift":"push"](()=>{u=ke,t(0,u)})}function M(ke){_e[ke?"unshift":"push"](()=>{c=ke,t(3,c)})}return i.$$set=ke=>{"ref"in ke&&t(0,u=ke.ref)},i.$$.update=()=>{if(i.$$.dirty[0]&1048580)e:t(16,I=!a&&l);if(i.$$.dirty[0]&851968)e:t(1,A=!r||!!o||I);if(i.$$.dirty[0]&2)e:t(4,q=A);if(i.$$.dirty[0]&131074)e:t(5,L=n&&!A);if(i.$$.dirty[0]&131072)e:n?re():ae()},[u,A,a,c,q,L,s,y,b,S,w,P,v,H,x,Q,I,n,o,r,l,J,E,te,M]}var Nu=class extends j{constructor(e){super(),W(this,e,Uv,qv,U,{ref:0},Hv,[-1,-1])}},ns=Nu;function jv(i){Se(i,"svelte-st0uzk",".wrapper-bottom.svelte-st0uzk.svelte-st0uzk{pointer-events:none;position:absolute;width:100%;bottom:0;left:0;height:var(--controls-gradient-height);background:var(--controls-gradient);transition:transform var(--controls-transition-duration) var(--controls-transition-fn);display:flex;flex-direction:column;justify-content:flex-end;box-sizing:border-box}.wrapper-bottom.svelte-st0uzk>.svelte-st0uzk{pointer-events:auto}.controls.svelte-st0uzk.svelte-st0uzk{width:100%;display:flex;align-items:center;justify-content:space-between;height:var(--controls-height);white-space:nowrap;font-size:13px;transition:transform var(--controls-transition-duration) var(--controls-transition-fn);will-change:transform;padding:0 8px 4px;box-sizing:border-box}.controls-left.svelte-st0uzk.svelte-st0uzk,.controls-right.svelte-st0uzk.svelte-st0uzk{display:flex;align-content:center}.controls-left.svelte-st0uzk.svelte-st0uzk{flex-grow:1;min-width:0;overflow:hidden}.controls-left.svelte-st0uzk > *:not(:first-child),.controls-right.svelte-st0uzk > *{margin-left:var(--controls-desktop-item-margin-left)}.controls-hidden.svelte-st0uzk.svelte-st0uzk{visibility:visible;transform:translateY(100%)}.wrapper-bottom.no-smooth.svelte-st0uzk.svelte-st0uzk{transition:none}.settings-menu.svelte-st0uzk.svelte-st0uzk{bottom:57px;right:18px;position:absolute;transition:opacity 0.2s, visibility 0.2s}")}function Im(i,e,t){let n=i.slice();return n[209]=e[t].iconUrl,n[210]=e[t].ariaLabel,n[211]=e[t].testId,n[212]=e[t].onClick,n[213]=e[t].tooltip,n}function Em(i){let e,t,n;function o(l){i[173](l)}let r={disabled:!i[9],tooltipContent:Y("tooltip_previous"),$$slots:{default:[Wv]},$$scope:{ctx:i}};return i[23].prevButton!==void 0&&(r.ref=i[23].prevButton),e=new Ft({props:r}),_e.push(()=>He(e,"ref",o)),{c(){D(e.$$.fragment)},m(l,a){B(e,l,a),n=!0},p(l,a){let s={};a[0]&512&&(s.disabled=!l[9]),a[0]&4608|a[6]&1073741824&&(s.$$scope={dirty:a,ctx:l}),!t&&a[0]&8388608&&(t=!0,s.ref=l[23].prevButton,Fe(()=>t=!1)),e.$set(s)},i(l){n||(d(e.$$.fragment,l),n=!0)},o(l){_(e.$$.fragment,l),n=!1},d(l){R(e,l)}}}function Wv(i){let e,t;return e=new ml({props:{click:i[12],type:"prev",disabled:!i[9],isMobile:!1}}),{c(){D(e.$$.fragment)},m(n,o){B(e,n,o),t=!0},p(n,o){let r={};o[0]&4096&&(r.click=n[12]),o[0]&512&&(r.disabled=!n[9]),e.$set(r)},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){_(e.$$.fragment,n),t=!1},d(n){R(e,n)}}}function Mm(i){let e,t,n;function o(l){i[174](l)}let r={disabled:i[74],tooltipContent:Y("tooltip_restart"),$$slots:{default:[Gv]},$$scope:{ctx:i}};return i[23].replayButton!==void 0&&(r.ref=i[23].replayButton),e=new Ft({props:r}),_e.push(()=>He(e,"ref",o)),{c(){D(e.$$.fragment)},m(l,a){B(e,l,a),n=!0},p(l,a){let s={};a[2]&4096&&(s.disabled=l[74]),a[2]&4096|a[6]&1073741824&&(s.$$scope={dirty:a,ctx:l}),!t&&a[0]&8388608&&(t=!0,s.ref=l[23].replayButton,Fe(()=>t=!1)),e.$set(s)},i(l){n||(d(e.$$.fragment,l),n=!0)},o(l){_(e.$$.fragment,l),n=!1},d(l){R(e,l)}}}function Gv(i){let e,t;return e=new Fl({props:{click:i[128],disabled:i[74]}}),{c(){D(e.$$.fragment)},m(n,o){B(e,n,o),t=!0},p(n,o){let r={};o[2]&4096&&(r.disabled=n[74]),e.$set(r)},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){_(e.$$.fragment,n),t=!1},d(n){R(e,n)}}}function Vm(i){let e,t,n;function o(l){i[176](l)}let r={tooltipContent:i[47],disabled:i[75],$$slots:{default:[Qv]},$$scope:{ctx:i}};return i[23].playButton!==void 0&&(r.ref=i[23].playButton),e=new Ft({props:r}),_e.push(()=>He(e,"ref",o)),{c(){D(e.$$.fragment)},m(l,a){B(e,l,a),n=!0},p(l,a){let s={};a[1]&65536&&(s.tooltipContent=l[47]),a[2]&8192&&(s.disabled=l[75]),a[0]&67108864|a[1]&8|a[2]&8192|a[6]&1073741824&&(s.$$scope={dirty:a,ctx:l}),!t&&a[0]&8388608&&(t=!0,s.ref=l[23].playButton,Fe(()=>t=!1)),e.$set(s)},i(l){n||(d(e.$$.fragment,l),n=!0)},o(l){_(e.$$.fragment,l),n=!1},d(l){R(e,l)}}}function Qv(i){let e,t,n;function o(l){i[175](l)}let r={isMobile:!1,isPlaying:i[34],click:i[85],disabled:i[75]};return i[26]!==void 0&&(r.ref=i[26]),e=new Ol({props:r}),_e.push(()=>He(e,"ref",o)),{c(){D(e.$$.fragment)},m(l,a){B(e,l,a),n=!0},p(l,a){let s={};a[1]&8&&(s.isPlaying=l[34]),a[2]&8192&&(s.disabled=l[75]),!t&&a[0]&67108864&&(t=!0,s.ref=l[26],Fe(()=>t=!1)),e.$set(s)},i(l){n||(d(e.$$.fragment,l),n=!0)},o(l){_(e.$$.fragment,l),n=!1},d(l){R(e,l)}}}function Am(i){let e,t,n;function o(l){i[177](l)}let r={disabled:!i[8],tooltipContent:Y("tooltip_next"),$$slots:{default:[Yv]},$$scope:{ctx:i}};return i[23].nextButton!==void 0&&(r.ref=i[23].nextButton),e=new Ft({props:r}),_e.push(()=>He(e,"ref",o)),{c(){D(e.$$.fragment)},m(l,a){B(e,l,a),n=!0},p(l,a){let s={};a[0]&256&&(s.disabled=!l[8]),a[0]&2304|a[6]&1073741824&&(s.$$scope={dirty:a,ctx:l}),!t&&a[0]&8388608&&(t=!0,s.ref=l[23].nextButton,Fe(()=>t=!1)),e.$set(s)},i(l){n||(d(e.$$.fragment,l),n=!0)},o(l){_(e.$$.fragment,l),n=!1},d(l){R(e,l)}}}function Yv(i){let e,t;return e=new ml({props:{click:i[11],type:"next",disabled:!i[8],isMobile:!1}}),{c(){D(e.$$.fragment)},m(n,o){B(e,n,o),t=!0},p(n,o){let r={};o[0]&2048&&(r.click=n[11]),o[0]&256&&(r.disabled=!n[8]),e.$set(r)},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){_(e.$$.fragment,n),t=!1},d(n){R(e,n)}}}function Zv(i){let e,t,n,o,r=i[121]&&Xv(i),l=i[120]&&xv(i),a=i[119]&&e3(i);return{c(){r&&r.c(),e=O(),l&&l.c(),t=O(),a&&a.c(),n=rt()},m(s,u){r&&r.m(s,u),C(s,e,u),l&&l.m(s,u),C(s,t,u),a&&a.m(s,u),C(s,n,u),o=!0},p(s,u){s[121]&&r.p(s,u),s[120]&&l.p(s,u),s[119]&&a.p(s,u)},i(s){o||(d(r),d(l),d(a),o=!0)},o(s){_(r),_(l),_(a),o=!1},d(s){s&&(k(e),k(t),k(n)),r&&r.d(s),l&&l.d(s),a&&a.d(s)}}}function Xv(i){let e,t,n;function o(l){i[178](l)}let r={disabled:i[73],tooltipContent:Y("tooltip_interactive_go_back"),disabledTooltipContent:Y(i[124]),$$slots:{default:[Jv]},$$scope:{ctx:i}};return i[23].playPrevChapterButton!==void 0&&(r.ref=i[23].playPrevChapterButton),e=new Ft({props:r}),_e.push(()=>He(e,"ref",o)),{c(){D(e.$$.fragment)},m(l,a){B(e,l,a),n=!0},p(l,a){let s={};a[2]&2048&&(s.disabled=l[73]),a[0]&131072|a[2]&2048|a[6]&1073741824&&(s.$$scope={dirty:a,ctx:l}),!t&&a[0]&8388608&&(t=!0,s.ref=l[23].playPrevChapterButton,Fe(()=>t=!1)),e.$set(s)},i(l){n||(d(e.$$.fragment,l),n=!0)},o(l){_(e.$$.fragment,l),n=!1},d(l){R(e,l)}}}function Jv(i){let e,t;return e=new Qr({props:{disabled:i[73],click:i[17]}}),{c(){D(e.$$.fragment)},m(n,o){B(e,n,o),t=!0},p(n,o){let r={};o[2]&2048&&(r.disabled=n[73]),o[0]&131072&&(r.click=n[17]),e.$set(r)},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){_(e.$$.fragment,n),t=!1},d(n){R(e,n)}}}function xv(i){let e,t,n;function o(l){i[179](l)}let r={disabled:i[76],tooltipContent:Y("tooltip_interactive_seek"),disabledTooltipContent:Y(i[78]),$$slots:{default:[$v]},$$scope:{ctx:i}};return i[23].seekToInteractiveButton!==void 0&&(r.ref=i[23].seekToInteractiveButton),e=new Ft({props:r}),_e.push(()=>He(e,"ref",o)),{c(){D(e.$$.fragment)},m(l,a){B(e,l,a),n=!0},p(l,a){let s={};a[2]&16384&&(s.disabled=l[76]),a[2]&65536&&(s.disabledTooltipContent=Y(l[78])),a[0]&32768|a[2]&16384|a[6]&1073741824&&(s.$$scope={dirty:a,ctx:l}),!t&&a[0]&8388608&&(t=!0,s.ref=l[23].seekToInteractiveButton,Fe(()=>t=!1)),e.$set(s)},i(l){n||(d(e.$$.fragment,l),n=!0)},o(l){_(e.$$.fragment,l),n=!1},d(l){R(e,l)}}}function $v(i){let e,t;return e=new jr({props:{disabled:i[76],click:i[15]}}),{c(){D(e.$$.fragment)},m(n,o){B(e,n,o),t=!0},p(n,o){let r={};o[2]&16384&&(r.disabled=n[76]),o[0]&32768&&(r.click=n[15]),e.$set(r)},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){_(e.$$.fragment,n),t=!1},d(n){R(e,n)}}}function e3(i){let e,t,n;function o(l){i[180](l)}let r={tooltipContent:i[48],disabled:i[77],$$slots:{default:[t3]},$$scope:{ctx:i}};return i[23].interactiveGraphButton!==void 0&&(r.ref=i[23].interactiveGraphButton),e=new Ft({props:r}),_e.push(()=>He(e,"ref",o)),{c(){D(e.$$.fragment)},m(l,a){B(e,l,a),n=!0},p(l,a){let s={};a[1]&131072&&(s.tooltipContent=l[48]),a[2]&32768&&(s.disabled=l[77]),a[0]&65536|a[1]&1|a[2]&32768|a[6]&1073741824&&(s.$$scope={dirty:a,ctx:l}),!t&&a[0]&8388608&&(t=!0,s.ref=l[23].interactiveGraphButton,Fe(()=>t=!1)),e.$set(s)},i(l){n||(d(e.$$.fragment,l),n=!0)},o(l){_(e.$$.fragment,l),n=!1},d(l){R(e,l)}}}function t3(i){let e,t;return e=new Wr({props:{click:i[16],graphIsOpened:i[31],disabled:i[77]}}),{c(){D(e.$$.fragment)},m(n,o){B(e,n,o),t=!0},p(n,o){let r={};o[0]&65536&&(r.click=n[16]),o[1]&1&&(r.graphIsOpened=n[31]),o[2]&32768&&(r.disabled=n[77]),e.$set(r)},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){_(e.$$.fragment,n),t=!1},d(n){R(e,n)}}}function Lm(i){let e,t,n;function o(l){i[181](l)}let r={tooltipContent:i[50],$$slots:{default:[i3]},$$scope:{ctx:i}};return i[23].liveButton!==void 0&&(r.ref=i[23].liveButton),e=new Ft({props:r}),_e.push(()=>He(e,"ref",o)),{c(){D(e.$$.fragment)},m(l,a){B(e,l,a),n=!0},p(l,a){let s={};a[1]&524288&&(s.tooltipContent=l[50]),a[0]&2097152|a[1]&524288|a[6]&1073741824&&(s.$$scope={dirty:a,ctx:l}),!t&&a[0]&8388608&&(t=!0,s.ref=l[23].liveButton,Fe(()=>t=!1)),e.$set(s)},i(l){n||(d(e.$$.fragment,l),n=!0)},o(l){_(e.$$.fragment,l),n=!1},d(l){R(e,l)}}}function i3(i){let e,t;return e=new Hr({props:{isActiveLive:i[21],isMobile:!1,ariaLabel:i[50]}}),{c(){D(e.$$.fragment)},m(n,o){B(e,n,o),t=!0},p(n,o){let r={};o[0]&2097152&&(r.isActiveLive=n[21]),o[1]&524288&&(r.ariaLabel=n[50]),e.$set(r)},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){_(e.$$.fragment,n),t=!1},d(n){R(e,n)}}}function Bm(i){let e,t,n;function o(l){i[182](l)}let r={isMobile:!1,showDuration:i[55],position:i[4]?i[79]:i[80],duration:i[4]?i[81]:i[82]};return i[23].time!==void 0&&(r.ref=i[23].time),e=new Vr({props:r}),_e.push(()=>He(e,"ref",o)),{c(){D(e.$$.fragment)},m(l,a){B(e,l,a),n=!0},p(l,a){let s={};a[1]&16777216&&(s.showDuration=l[55]),a[0]&16|a[2]&393216&&(s.position=l[4]?l[79]:l[80]),a[0]&16|a[2]&1572864&&(s.duration=l[4]?l[81]:l[82]),!t&&a[0]&8388608&&(t=!0,s.ref=l[23].time,Fe(()=>t=!1)),e.$set(s)},i(l){n||(d(e.$$.fragment,l),n=!0)},o(l){_(e.$$.fragment,l),n=!1},d(l){R(e,l)}}}function Rm(i){let e,t;return e=new Kr({props:{position:i[80],duration:i[82],timeCodes:i[101]}}),{c(){D(e.$$.fragment)},m(n,o){B(e,n,o),t=!0},p(n,o){let r={};o[2]&262144&&(r.position=n[80]),o[2]&1048576&&(r.duration=n[82]),e.$set(r)},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){_(e.$$.fragment,n),t=!1},d(n){R(e,n)}}}function n3(i){let e,t,n=i[20]&&Rm(i);return{c(){n&&n.c(),e=rt()},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&&d(n,1)):(n=Rm(o),n.c(),d(n,1),n.m(e.parentNode,e)):n&&(fe(),_(n,1,1,()=>{n=null}),ce())},i(o){t||(d(n),t=!0)},o(o){_(n),t=!1},d(o){o&&k(e),n&&n.d(o)}}}function o3(i){var n;let e,t;return e=new Yr({props:{iconUrl:i[209],ariaLabel:(n=i[210])!=null?n:i[213],testId:i[211],onClick:i[212]}}),{c(){D(e.$$.fragment)},m(o,r){B(e,o,r),t=!0},p(o,r){var a;let l={};r[0]&268435456&&(l.iconUrl=o[209]),r[0]&268435456&&(l.ariaLabel=(a=o[210])!=null?a:o[213]),r[0]&268435456&&(l.testId=o[211]),r[0]&268435456&&(l.onClick=o[212]),e.$set(l)},i(o){t||(d(e.$$.fragment,o),t=!0)},o(o){_(e.$$.fragment,o),t=!1},d(o){R(e,o)}}}function Dm(i){let e,t;return e=new Ft({props:{tooltipContent:i[213],width:40,$$slots:{default:[o3]},$$scope:{ctx:i}}}),{c(){D(e.$$.fragment)},m(n,o){B(e,n,o),t=!0},p(n,o){let r={};o[0]&268435456&&(r.tooltipContent=n[213]),o[0]&268435456|o[6]&1073741824&&(r.$$scope={dirty:o,ctx:n}),e.$set(r)},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){_(e.$$.fragment,n),t=!1},d(n){R(e,n)}}}function Nm(i){let e,t,n;function o(l){i[185](l)}let r={disabled:!i[6],tooltipContent:i[51],$$slots:{default:[l3]},$$scope:{ctx:i}};return i[23].vkLogo!==void 0&&(r.ref=i[23].vkLogo),e=new Ft({props:r}),_e.push(()=>He(e,"ref",o)),{c(){D(e.$$.fragment)},m(l,a){B(e,l,a),n=!0},p(l,a){let s={};a[0]&64&&(s.disabled=!l[6]),a[1]&1048576&&(s.tooltipContent=l[51]),a[0]&192|a[6]&1073741824&&(s.$$scope={dirty:a,ctx:l}),!t&&a[0]&8388608&&(t=!0,s.ref=l[23].vkLogo,Fe(()=>t=!1)),e.$set(s)},i(l){n||(d(e.$$.fragment,l),n=!0)},o(l){_(e.$$.fragment,l),n=!1},d(l){R(e,l)}}}function l3(i){let e,t;return e=new Nr({props:{click:i[86],targetUrl:i[7],logoClickable:i[6]}}),{c(){D(e.$$.fragment)},m(n,o){B(e,n,o),t=!0},p(n,o){let r={};o[0]&128&&(r.targetUrl=n[7]),o[0]&64&&(r.logoClickable=n[6]),e.$set(r)},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){_(e.$$.fragment,n),t=!1},d(n){R(e,n)}}}function r3(i){let e,t;return e=new Kd({props:{click:i[127]}}),{c(){D(e.$$.fragment)},m(n,o){B(e,n,o),t=!0},p:pe,i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){_(e.$$.fragment,n),t=!1},d(n){R(e,n)}}}function Om(i){let e,t,n;function o(l){i[187](l)}let r={tooltipContent:i[52],$$slots:{default:[s3]},$$scope:{ctx:i}};return i[23].subtitles!==void 0&&(r.ref=i[23].subtitles),e=new Ft({props:r}),_e.push(()=>He(e,"ref",o)),{c(){D(e.$$.fragment)},m(l,a){B(e,l,a),n=!0},p(l,a){let s={};a[1]&2097152&&(s.tooltipContent=l[52]),a[0]&262144|a[6]&1073741824&&(s.$$scope={dirty:a,ctx:l}),!t&&a[0]&8388608&&(t=!0,s.ref=l[23].subtitles,Fe(()=>t=!1)),e.$set(s)},i(l){n||(d(e.$$.fragment,l),n=!0)},o(l){_(e.$$.fragment,l),n=!1},d(l){R(e,l)}}}function s3(i){let e,t;return e=new Td({props:{isSubtitlesEnabled:i[18],click:i[87]}}),{c(){D(e.$$.fragment)},m(n,o){B(e,n,o),t=!0},p(n,o){let r={};o[0]&262144&&(r.isSubtitlesEnabled=n[18]),e.$set(r)},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){_(e.$$.fragment,n),t=!1},d(n){R(e,n)}}}function Fm(i){var a;let e,t,n,o;function r(s){i[188](s)}let l={supportLink:i[10],playerControlsHeight:(a=i[46])==null?void 0:a.clientHeight,returnFocus:i[14]};return i[24]!==void 0&&(l.ref=i[24]),t=new Mr({props:l}),_e.push(()=>He(t,"ref",r)),{c(){e=T("div"),D(t.$$.fragment),f(e,"class","settings-menu svelte-st0uzk")},m(s,u){C(s,e,u),B(t,e,null),o=!0},p(s,u){var m;let c={};u[0]&1024&&(c.supportLink=s[10]),u[1]&32768&&(c.playerControlsHeight=(m=s[46])==null?void 0:m.clientHeight),u[0]&16384&&(c.returnFocus=s[14]),!n&&u[0]&16777216&&(n=!0,c.ref=s[24],Fe(()=>n=!1)),t.$set(c)},i(s){o||(d(t.$$.fragment,s),o=!0)},o(s){_(t.$$.fragment,s),o=!1},d(s){s&&k(e),R(t)}}}function Hm(i){let e,t,n;function o(l){i[190](l)}let r={tooltipContent:i[27]?void 0:Y("tooltip_settings_off"),$$slots:{default:[a3]},$$scope:{ctx:i}};return i[23].settings!==void 0&&(r.ref=i[23].settings),e=new Ft({props:r}),_e.push(()=>He(e,"ref",o)),{c(){D(e.$$.fragment)},m(l,a){B(e,l,a),n=!0},p(l,a){let s={};a[0]&134217728&&(s.tooltipContent=l[27]?void 0:Y("tooltip_settings_off")),a[0]&33554432|a[6]&1073741824&&(s.$$scope={dirty:a,ctx:l}),!t&&a[0]&8388608&&(t=!0,s.ref=l[23].settings,Fe(()=>t=!1)),e.$set(s)},i(l){n||(d(e.$$.fragment,l),n=!0)},o(l){_(e.$$.fragment,l),n=!1},d(l){R(e,l)}}}function a3(i){let e,t,n;function o(l){i[189](l)}let r={};return i[25]!==void 0&&(r.ref=i[25]),e=new Dl({props:r}),_e.push(()=>He(e,"ref",o)),{c(){D(e.$$.fragment)},m(l,a){B(e,l,a),n=!0},p(l,a){let s={};!t&&a[0]&33554432&&(t=!0,s.ref=l[25],Fe(()=>t=!1)),e.$set(s)},i(l){n||(d(e.$$.fragment,l),n=!0)},o(l){_(e.$$.fragment,l),n=!1},d(l){R(e,l)}}}function u3(i){let e,t,n;function o(l){i[191](l)}let r={className:i[41]?"":"out-of-view",tooltipContent:i[49],$$slots:{default:[f3]},$$scope:{ctx:i}};return i[23].context!==void 0&&(r.ref=i[23].context),e=new Ft({props:r}),_e.push(()=>He(e,"ref",o)),{c(){D(e.$$.fragment)},m(l,a){B(e,l,a),n=!0},p(l,a){let s={};a[1]&1024&&(s.className=l[41]?"":"out-of-view"),a[1]&262144&&(s.tooltipContent=l[49]),a[1]&262144|a[6]&1073741824&&(s.$$scope={dirty:a,ctx:l}),!t&&a[0]&8388608&&(t=!0,s.ref=l[23].context,Fe(()=>t=!1)),e.$set(s)},i(l){n||(d(e.$$.fragment,l),n=!0)},o(l){_(e.$$.fragment,l),n=!1},d(l){R(e,l)}}}function f3(i){let e,t;return e=new Tm({props:{ariaLabel:i[49]}}),{c(){D(e.$$.fragment)},m(n,o){B(e,n,o),t=!0},p(n,o){let r={};o[1]&262144&&(r.ariaLabel=n[49]),e.$set(r)},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){_(e.$$.fragment,n),t=!1},d(n){R(e,n)}}}function zm(i){let e,t,n;function o(l){i[192](l)}let r={tooltipContent:i[53],$$slots:{default:[c3]},$$scope:{ctx:i}};return i[23].fullscreen!==void 0&&(r.ref=i[23].fullscreen),e=new Ft({props:r}),_e.push(()=>He(e,"ref",o)),{c(){D(e.$$.fragment)},m(l,a){B(e,l,a),n=!0},p(l,a){let s={};a[1]&4194304&&(s.tooltipContent=l[53]),a[0]&1073750016|a[6]&1073741824&&(s.$$scope={dirty:a,ctx:l}),!t&&a[0]&8388608&&(t=!0,s.ref=l[23].fullscreen,Fe(()=>t=!1)),e.$set(s)},i(l){n||(d(e.$$.fragment,l),n=!0)},o(l){_(e.$$.fragment,l),n=!1},d(l){R(e,l)}}}function c3(i){let e,t;return e=new Rr({props:{click:i[13],isFullscreen:i[30]}}),{c(){D(e.$$.fragment)},m(n,o){B(e,n,o),t=!0},p(n,o){let r={};o[0]&8192&&(r.click=n[13]),o[0]&1073741824&&(r.isFullscreen=n[30]),e.$set(r)},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){_(e.$$.fragment,n),t=!1},d(n){R(e,n)}}}function qm(i){let e,t,n;function o(l){i[193](l)}let r={tooltipContent:i[54],$$slots:{default:[d3]},$$scope:{ctx:i}};return i[23].chromecast!==void 0&&(r.ref=i[23].chromecast),e=new Ft({props:r}),_e.push(()=>He(e,"ref",o)),{c(){D(e.$$.fragment)},m(l,a){B(e,l,a),n=!0},p(l,a){let s={};a[1]&8388608&&(s.tooltipContent=l[54]),a[0]&536870912|a[6]&1073741824&&(s.$$scope={dirty:a,ctx:l}),!t&&a[0]&8388608&&(t=!0,s.ref=l[23].chromecast,Fe(()=>t=!1)),e.$set(s)},i(l){n||(d(e.$$.fragment,l),n=!0)},o(l){_(e.$$.fragment,l),n=!1},d(l){R(e,l)}}}function d3(i){let e,t;return e=new Or({props:{isMobile:!1,state:i[29],click:i[126]}}),{c(){D(e.$$.fragment)},m(n,o){B(e,n,o),t=!0},p(n,o){let r={};o[0]&536870912&&(r.state=n[29]),e.$set(r)},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){_(e.$$.fragment,n),t=!1},d(n){R(e,n)}}}function m3(i){let e,t,n;function o(l){i[196](l)}let r={};return i[23].interactiveTimeIndicator!==void 0&&(r.ref=i[23].interactiveTimeIndicator),e=new ns({props:r}),_e.push(()=>He(e,"ref",o)),{c(){D(e.$$.fragment)},m(l,a){B(e,l,a),n=!0},p(l,a){let s={};!t&&a[0]&8388608&&(t=!0,s.ref=l[23].interactiveTimeIndicator,Fe(()=>t=!1)),e.$set(s)},i(l){n||(d(e.$$.fragment,l),n=!0)},o(l){_(e.$$.fragment,l),n=!1},d(l){R(e,l)}}}function p3(i){let e,t,n,o,r,l,a,s,u,c,m,h,y,b,S,w,P,v,g,I,A,q,K,re,ae,H,L,x,Q,J;t=new Ur({props:{isHidden:!i[45],isAds:i[4],canRewindLive:i[5],isRewindableLive:i[32]}});let E=i[38]&&Em(i),te=i[35]&&Mm(i),M=i[36]&&Vm(i),ee=i[37]&&Am(i),ke=i[117]&&Zv(i),Qe=!i[4]&&i[33]&&Lm(i),je=i[19]&&Bm(i);function $e(ue){i[183](ue)}let We={className:"w-max",disabled:!i[20],tooltipContent:Y("tooltip_episodes"),$$slots:{default:[n3]},$$scope:{ctx:i}};i[23].episodes!==void 0&&(We.ref=i[23].episodes),y=new Ft({props:We}),_e.push(()=>He(y,"ref",$e));let ve=It(i[28]),X=[];for(let ue=0;ue<ve.length;ue+=1)X[ue]=Dm(Im(i,ve,ue));let be=ue=>_(X[ue],1,1,()=>{X[ue]=null}),Oe=i[43]&&!i[4]&&Nm(i);function xe(ue){i[186](ue)}let et={$$slots:{default:[r3]},$$scope:{ctx:i}};i[23].volume!==void 0&&(et.ref=i[23].volume),I=new Ft({props:et}),_e.push(()=>He(I,"ref",xe));let ye=i[40]&&Om(i),Be=!i[83]&&!i[4]&&Fm(i),Ue=i[42]&&!i[4]&&Hm(i),Xe=i[84].features.contextMenuButton&&u3(i),Te=i[44]&&zm(i),Z=i[39]&&qm(i),Ce=i[122]&&m3(i);return{c(){e=T("div"),D(t.$$.fragment),n=O(),o=T("div"),r=T("div"),E&&E.c(),l=O(),te&&te.c(),a=O(),M&&M.c(),s=O(),ee&&ee.c(),u=O(),ke&&ke.c(),c=O(),Qe&&Qe.c(),m=O(),je&&je.c(),h=O(),D(y.$$.fragment),w=O(),P=T("div");for(let ue=0;ue<X.length;ue+=1)X[ue].c();v=O(),Oe&&Oe.c(),g=O(),D(I.$$.fragment),q=O(),ye&&ye.c(),K=O(),Be&&Be.c(),re=O(),Ue&&Ue.c(),ae=O(),Xe&&Xe.c(),H=O(),Te&&Te.c(),L=O(),Z&&Z.c(),x=O(),Ce&&Ce.c(),Q=rt(),f(r,"class","controls-left svelte-st0uzk"),Qn(()=>i[184].call(r)),f(P,"class","controls-right svelte-st0uzk"),f(o,"class","controls svelte-st0uzk"),f(e,"class","wrapper-bottom svelte-st0uzk"),z(e,"hidden",i[1]),z(e,"controls-hidden",!i[3]),z(e,"no-smooth",i[2])},m(ue,Ie){C(ue,e,Ie),B(t,e,null),p(e,n),p(e,o),p(o,r),E&&E.m(r,null),p(r,l),te&&te.m(r,null),p(r,a),M&&M.m(r,null),p(r,s),ee&&ee.m(r,null),p(r,u),ke&&ke.m(r,null),p(r,c),Qe&&Qe.m(r,null),p(r,m),je&&je.m(r,null),p(r,h),B(y,r,null),S=Zo(r,i[184].bind(r)),p(o,w),p(o,P);for(let Je=0;Je<X.length;Je+=1)X[Je]&&X[Je].m(P,null);p(P,v),Oe&&Oe.m(P,null),p(P,g),B(I,P,null),p(P,q),ye&&ye.m(P,null),p(P,K),Be&&Be.m(P,null),p(P,re),Ue&&Ue.m(P,null),p(P,ae),Xe&&Xe.m(P,null),p(P,H),Te&&Te.m(P,null),p(P,L),Z&&Z.m(P,null),i[194](o),i[195](e),C(ue,x,Ie),Ce&&Ce.m(ue,Ie),C(ue,Q,Ie),J=!0},p(ue,Ie){let Je={};Ie[1]&16384&&(Je.isHidden=!ue[45]),Ie[0]&16&&(Je.isAds=ue[4]),Ie[0]&32&&(Je.canRewindLive=ue[5]),Ie[1]&2&&(Je.isRewindableLive=ue[32]),t.$set(Je),ue[38]?E?(E.p(ue,Ie),Ie[1]&128&&d(E,1)):(E=Em(ue),E.c(),d(E,1),E.m(r,l)):E&&(fe(),_(E,1,1,()=>{E=null}),ce()),ue[35]?te?(te.p(ue,Ie),Ie[1]&16&&d(te,1)):(te=Mm(ue),te.c(),d(te,1),te.m(r,a)):te&&(fe(),_(te,1,1,()=>{te=null}),ce()),ue[36]?M?(M.p(ue,Ie),Ie[1]&32&&d(M,1)):(M=Vm(ue),M.c(),d(M,1),M.m(r,s)):M&&(fe(),_(M,1,1,()=>{M=null}),ce()),ue[37]?ee?(ee.p(ue,Ie),Ie[1]&64&&d(ee,1)):(ee=Am(ue),ee.c(),d(ee,1),ee.m(r,u)):ee&&(fe(),_(ee,1,1,()=>{ee=null}),ce()),ue[117]&&ke.p(ue,Ie),!ue[4]&&ue[33]?Qe?(Qe.p(ue,Ie),Ie[0]&16|Ie[1]&4&&d(Qe,1)):(Qe=Lm(ue),Qe.c(),d(Qe,1),Qe.m(r,m)):Qe&&(fe(),_(Qe,1,1,()=>{Qe=null}),ce()),ue[19]?je?(je.p(ue,Ie),Ie[0]&524288&&d(je,1)):(je=Bm(ue),je.c(),d(je,1),je.m(r,h)):je&&(fe(),_(je,1,1,()=>{je=null}),ce());let ft={};if(Ie[0]&1048576&&(ft.disabled=!ue[20]),Ie[0]&1048576|Ie[2]&1310720|Ie[6]&1073741824&&(ft.$$scope={dirty:Ie,ctx:ue}),!b&&Ie[0]&8388608&&(b=!0,ft.ref=ue[23].episodes,Fe(()=>b=!1)),y.$set(ft),Ie[0]&268435456){ve=It(ue[28]);let dt;for(dt=0;dt<ve.length;dt+=1){let bt=Im(ue,ve,dt);X[dt]?(X[dt].p(bt,Ie),d(X[dt],1)):(X[dt]=Dm(bt),X[dt].c(),d(X[dt],1),X[dt].m(P,v))}for(fe(),dt=ve.length;dt<X.length;dt+=1)be(dt);ce()}ue[43]&&!ue[4]?Oe?(Oe.p(ue,Ie),Ie[0]&16|Ie[1]&4096&&d(Oe,1)):(Oe=Nm(ue),Oe.c(),d(Oe,1),Oe.m(P,g)):Oe&&(fe(),_(Oe,1,1,()=>{Oe=null}),ce());let ct={};Ie[6]&1073741824&&(ct.$$scope={dirty:Ie,ctx:ue}),!A&&Ie[0]&8388608&&(A=!0,ct.ref=ue[23].volume,Fe(()=>A=!1)),I.$set(ct),ue[40]?ye?(ye.p(ue,Ie),Ie[1]&512&&d(ye,1)):(ye=Om(ue),ye.c(),d(ye,1),ye.m(P,K)):ye&&(fe(),_(ye,1,1,()=>{ye=null}),ce()),!ue[83]&&!ue[4]?Be?(Be.p(ue,Ie),Ie[0]&16|Ie[2]&2097152&&d(Be,1)):(Be=Fm(ue),Be.c(),d(Be,1),Be.m(P,re)):Be&&(fe(),_(Be,1,1,()=>{Be=null}),ce()),ue[42]&&!ue[4]?Ue?(Ue.p(ue,Ie),Ie[0]&16|Ie[1]&2048&&d(Ue,1)):(Ue=Hm(ue),Ue.c(),d(Ue,1),Ue.m(P,ae)):Ue&&(fe(),_(Ue,1,1,()=>{Ue=null}),ce()),ue[84].features.contextMenuButton&&Xe.p(ue,Ie),ue[44]?Te?(Te.p(ue,Ie),Ie[1]&8192&&d(Te,1)):(Te=zm(ue),Te.c(),d(Te,1),Te.m(P,L)):Te&&(fe(),_(Te,1,1,()=>{Te=null}),ce()),ue[39]?Z?(Z.p(ue,Ie),Ie[1]&256&&d(Z,1)):(Z=qm(ue),Z.c(),d(Z,1),Z.m(P,null)):Z&&(fe(),_(Z,1,1,()=>{Z=null}),ce()),(!J||Ie[0]&2)&&z(e,"hidden",ue[1]),(!J||Ie[0]&8)&&z(e,"controls-hidden",!ue[3]),(!J||Ie[0]&4)&&z(e,"no-smooth",ue[2]),ue[122]&&Ce.p(ue,Ie)},i(ue){if(!J){d(t.$$.fragment,ue),d(E),d(te),d(M),d(ee),d(ke),d(Qe),d(je),d(y.$$.fragment,ue);for(let Ie=0;Ie<ve.length;Ie+=1)d(X[Ie]);d(Oe),d(I.$$.fragment,ue),d(ye),d(Be),d(Ue),d(Xe),d(Te),d(Z),d(Ce),J=!0}},o(ue){_(t.$$.fragment,ue),_(E),_(te),_(M),_(ee),_(ke),_(Qe),_(je),_(y.$$.fragment,ue),X=X.filter(Boolean);for(let Ie=0;Ie<X.length;Ie+=1)_(X[Ie]);_(Oe),_(I.$$.fragment,ue),_(ye),_(Be),_(Ue),_(Xe),_(Te),_(Z),_(Ce),J=!1},d(ue){ue&&(k(e),k(x),k(Q)),R(t),E&&E.d(),te&&te.d(),M&&M.d(),ee&&ee.d(),ke&&ke.d(),Qe&&Qe.d(),je&&je.d(),R(y),S(),Gi(X,ue),Oe&&Oe.d(),R(I),ye&&ye.d(),Be&&Be.d(),Ue&&Ue.d(),Xe&&Xe.d(),Te&&Te.d(),Z&&Z.d(),i[194](null),i[195](null),Ce&&Ce.d(ue)}}}function _3(i,e,t){var Df,Nf;let n,o,r,l,a,s,u,c,m,h,y,b,S,w,P,v,g,I,A,q,K,re,ae,H,L,x,Q,J,E,te,M,ee,ke=pe,Qe=()=>(ke(),ke=Qt(ae,$=>t(144,ee=$)),ae),je,$e=pe,We=()=>($e(),$e=Qt(re,$=>t(145,je=$)),re),ve,X=pe,be=()=>(X(),X=Qt(K,$=>t(146,ve=$)),K),Oe,xe=pe,et=()=>(xe(),xe=Qt(q,$=>t(147,Oe=$)),q),ye,Be=pe,Ue=()=>(Be(),Be=Qt(A,$=>t(148,ye=$)),A),Xe,Te=pe,Z=()=>(Te(),Te=Qt(I,$=>t(149,Xe=$)),I),Ce,ue=pe,Ie=()=>(ue(),ue=Qt(g,$=>t(150,Ce=$)),g),Je,ft=pe,ct=()=>(ft(),ft=Qt(v,$=>t(151,Je=$)),v),dt,bt=pe,vt=()=>(bt(),bt=Qt(P,$=>t(152,dt=$)),P),we,_t=pe,Mt=()=>(_t(),_t=Qt(w,$=>t(153,we=$)),w),Vt,ze=pe,jt=()=>(ze(),ze=Qt(S,$=>t(154,Vt=$)),S),Ht,Wt=pe,$t=()=>(Wt(),Wt=Qt(b,$=>t(155,Ht=$)),b),me,ht=pe,yt=()=>(ht(),ht=Qt(y,$=>t(156,me=$)),y),Re,qe=pe,kt=()=>(qe(),qe=Qt(h,$=>t(157,Re=$)),h),zt,ei=pe,mn=()=>(ei(),ei=Qt(m,$=>t(158,zt=$)),m),yi,wi=pe,Ni=()=>(wi(),wi=Qt(c,$=>t(159,yi=$)),c),oi,ki=pe,pn=()=>(ki(),ki=Qt(u,$=>t(160,oi=$)),u),Ci,Qi,fi,Oi,Si,Yi,Pi,ci,Bt,Rt,Ti,Ii,Zt,di,mi,wt,qt,St,Fi,li,_n,hn,ti;i.$$.on_destroy.push(()=>ke()),i.$$.on_destroy.push(()=>$e()),i.$$.on_destroy.push(()=>X()),i.$$.on_destroy.push(()=>xe()),i.$$.on_destroy.push(()=>Be()),i.$$.on_destroy.push(()=>Te()),i.$$.on_destroy.push(()=>ue()),i.$$.on_destroy.push(()=>ft()),i.$$.on_destroy.push(()=>bt()),i.$$.on_destroy.push(()=>_t()),i.$$.on_destroy.push(()=>ze()),i.$$.on_destroy.push(()=>Wt()),i.$$.on_destroy.push(()=>ht()),i.$$.on_destroy.push(()=>qe()),i.$$.on_destroy.push(()=>ei()),i.$$.on_destroy.push(()=>wi()),i.$$.on_destroy.push(()=>ki());let{bottomHidden:Ei}=e,{bottomNoSmooth:Zi}=e,{showControls:Mi}=e,{controlsElementRef:pi=void 0}=e,{isAds:Xt=!1}=e,{canRewindLive:ii}=e,{logoClickable:Vi}=e,{logoHidden:ri}=e,{logoTargetUrl:on=""}=e,{showNextPrevButtons:Ai}=e,{nextButtonActive:gn}=e,{prevButtonActive:bn}=e,{isOneVideoPlaylist:ln=!1}=e,{supportLink:Xi}=e,{customFullscreenSupported:Hi=!0}=e,{playNextVideo:ni}=e,{playPrevVideo:_i}=e,{repeatPlaylist:Li}=e,{toggleFullscreen:zi}=e,{returnFocus:rn}=e,{seekToInteractive:Bi}=e,{toggleGraph:qi}=e,{playPrevChapter:Ui}=e,Ze=it(),Ji=On(),Jt=Ut(),Ke=Ze.actions.internal.toggleMuted,sn=Ze.actions.internal.togglePlay,Ki=Ze.actions.internal.pause,xi=Ze.actions.internal.toggleSubtitle,an=(Df=Ze.callbacks)==null?void 0:Df.onAudioDoesNotExistHint,$i=(Nf=Ze.callbacks)==null?void 0:Nf.onAudioDisabledHint,Tn=Ze.state.duration$;F(i,Tn,$=>t(82,hn=$));let si=Ze.state.positionWithScrubbing$;F(i,si,$=>t(80,li=$));let ai=Ze.state.playbackState$;F(i,ai,$=>t(161,fi=$));let en=Ze.state.chromecastConnected$;F(i,en,$=>t(83,ti=$));let hi=Ze.state.isAudioAvailable$;F(i,hi,$=>t(197,H=$));let se=Ze.state.isAudioDisabled,pt=Ze.state.isEnded$;F(i,pt,$=>t(169,di=$));let gi=Ze.state.isLive$;F(i,gi,$=>t(33,ci=$));let bi=Ze.state.isActiveLive$;F(i,bi,$=>t(163,Yi=$));let ui=Ze.state.isRewindableLive$;F(i,ui,$=>t(32,Pi=$));let xt=Ze.ui.isPictureInPictureActive$;F(i,xt,$=>t(165,Rt=$));let Hn=Ze.ui.pictureInPictureType$;F(i,Hn,$=>t(164,Bt=$));let Bn=Ze.ui.settingsMenuVisible;F(i,Bn,$=>t(27,Q=$));let In=Ze.ui.settingsMenuOpenedByKeyboard;F(i,In,$=>t(140,x=$));let Gt=Ze.ui.controls,Cn=Ze.actions.internal.getVideoEpisodes(),Zn=Ze.state.chromecastState$;F(i,Zn,$=>t(29,Ci=$));let zn=Ze.state.availableSubtitlesList$;F(i,zn,$=>t(168,Zt=$));let qn=Ze.state.currentSubtitle$;F(i,qn,$=>t(170,mi=$));let Rn=Gt.disabledControls$;F(i,Rn,$=>t(172,qt=$));let un=Ze.ui.contextMenu.visible$;F(i,un,$=>t(162,Oi=$));let Un=Ze.ui.contextMenu.showContextMenuBtn$;F(i,Un,$=>t(166,Ti=$));let Kn=Ze.ui.contextMenu.openedByBtnKeyboard$;F(i,Kn,$=>t(167,Ii=$));let ne=Ze.ui.startedByKeyboard$;F(i,ne,$=>t(139,L=$));let Pt=Ze.ads.duration;F(i,Pt,$=>t(81,_n=$));let En=Ze.ads.position;F(i,En,$=>t(79,Fi=$));let vn=Ze.ads.playbackState;F(i,vn,$=>t(171,wt=$));let Mn=Ze.ui.isFullscreen;F(i,Mn,$=>t(30,Qi=$));let Sn=Ze.ui.playerSize;F(i,Sn,$=>t(142,E=$));let ao=Ze.ui.currentGridType$;F(i,ao,$=>t(143,te=$));let uo=Ze.ui.additionalButtons$;F(i,uo,$=>t(28,M=$));let Co=Ze.actions.internal.getVideoElement,fo=Ze.actions.internal.replayInteractive,yn=Ze.state.isInteractive,ie=Ze.state.isInteractiveTime$;F(i,ie,$=>t(141,J=$));let co=Ze.state.showInteractiveGraph,to=Ze.state.showSeekToInteractive,So=Ze.state.showPlayPrevChapter,io=Ze.state.showInteractiveTimeIndicator,no=Ze.state.graphIsOpened$;F(i,no,$=>t(31,Si=$));let jo=Ze.state.playPrevChapterDisabledTooltip,Wo=Ji.seekToInteractiveDisabledTooltip$;F(i,Wo,$=>t(78,St=$));let kl=()=>Ze.actions.internal.toggleChromecast(),Go,Xn,Qo,Po,To,Yo,G,Ct,fn,tn,Dn,V,le,Pe,Ge,st,Tt,Kt,At,ji,Io,Cl="",jl=($,ws)=>{if(!$){t(50,Cl=Y("tooltip_live"));return}ws===Uo.PlaybackState.PAUSED&&t(50,Cl=Y("tooltip_play"))},Vf,Af,Lf,Bf,Wl,lt={},jn,Sl,ys,Rf,o_=(0,Um.throttleFn)(ts,260,{leading:!1}),Gl,Ql,Yl;function l_(){bo({isAudioDisabled:se,audioDisabledHintCallback:$i,isAudioAvailable:H,audioIsNotExistHintCallback:an})&&Ke()}let r_=yn?fo:ln?sn:Li;function s_($){i.$$.not_equal(lt.prevButton,$)&&(lt.prevButton=$,t(23,lt))}function a_($){i.$$.not_equal(lt.replayButton,$)&&(lt.replayButton=$,t(23,lt))}function u_($){Yl=$,t(26,Yl)}function f_($){i.$$.not_equal(lt.playButton,$)&&(lt.playButton=$,t(23,lt))}function c_($){i.$$.not_equal(lt.nextButton,$)&&(lt.nextButton=$,t(23,lt))}function d_($){i.$$.not_equal(lt.playPrevChapterButton,$)&&(lt.playPrevChapterButton=$,t(23,lt))}function m_($){i.$$.not_equal(lt.seekToInteractiveButton,$)&&(lt.seekToInteractiveButton=$,t(23,lt))}function p_($){i.$$.not_equal(lt.interactiveGraphButton,$)&&(lt.interactiveGraphButton=$,t(23,lt))}function __($){i.$$.not_equal(lt.liveButton,$)&&(lt.liveButton=$,t(23,lt))}function h_($){i.$$.not_equal(lt.time,$)&&(lt.time=$,t(23,lt))}function g_($){i.$$.not_equal(lt.episodes,$)&&(lt.episodes=$,t(23,lt))}function b_(){Wl=this.clientWidth,t(22,Wl)}function v_($){i.$$.not_equal(lt.vkLogo,$)&&(lt.vkLogo=$,t(23,lt))}function y_($){i.$$.not_equal(lt.volume,$)&&(lt.volume=$,t(23,lt))}function w_($){i.$$.not_equal(lt.subtitles,$)&&(lt.subtitles=$,t(23,lt))}function k_($){Gl=$,t(24,Gl)}function C_($){Ql=$,t(25,Ql)}function S_($){i.$$.not_equal(lt.settings,$)&&(lt.settings=$,t(23,lt))}function P_($){i.$$.not_equal(lt.context,$)&&(lt.context=$,t(23,lt))}function T_($){i.$$.not_equal(lt.fullscreen,$)&&(lt.fullscreen=$,t(23,lt))}function I_($){i.$$.not_equal(lt.chromecast,$)&&(lt.chromecast=$,t(23,lt))}function E_($){_e[$?"unshift":"push"](()=>{Tt=$,t(46,Tt)})}function M_($){_e[$?"unshift":"push"](()=>{pi=$,t(0,pi)})}function V_($){i.$$.not_equal(lt.interactiveTimeIndicator,$)&&(lt.interactiveTimeIndicator=$,t(23,lt))}i.$$set=$=>{"bottomHidden"in $&&t(1,Ei=$.bottomHidden),"bottomNoSmooth"in $&&t(2,Zi=$.bottomNoSmooth),"showControls"in $&&t(3,Mi=$.showControls),"controlsElementRef"in $&&t(0,pi=$.controlsElementRef),"isAds"in $&&t(4,Xt=$.isAds),"canRewindLive"in $&&t(5,ii=$.canRewindLive),"logoClickable"in $&&t(6,Vi=$.logoClickable),"logoHidden"in $&&t(129,ri=$.logoHidden),"logoTargetUrl"in $&&t(7,on=$.logoTargetUrl),"showNextPrevButtons"in $&&t(130,Ai=$.showNextPrevButtons),"nextButtonActive"in $&&t(8,gn=$.nextButtonActive),"prevButtonActive"in $&&t(9,bn=$.prevButtonActive),"isOneVideoPlaylist"in $&&t(131,ln=$.isOneVideoPlaylist),"supportLink"in $&&t(10,Xi=$.supportLink),"customFullscreenSupported"in $&&t(132,Hi=$.customFullscreenSupported),"playNextVideo"in $&&t(11,ni=$.playNextVideo),"playPrevVideo"in $&&t(12,_i=$.playPrevVideo),"repeatPlaylist"in $&&t(133,Li=$.repeatPlaylist),"toggleFullscreen"in $&&t(13,zi=$.toggleFullscreen),"returnFocus"in $&&t(14,rn=$.returnFocus),"seekToInteractive"in $&&t(15,Bi=$.seekToInteractive),"toggleGraph"in $&&t(16,qi=$.toggleGraph),"playPrevChapter"in $&&t(17,Ui=$.playPrevChapter)},i.$$.update=()=>{if(i.$$.dirty[5]&131072)e:t(138,n=qt.has("EPISODE_BUTTON"));if(i.$$.dirty[5]&131072)e:t(77,o=qt.has("GRAPH_BUTTON"));if(i.$$.dirty[5]&131072)e:t(76,r=qt.has("SEEK_TO_INTERACTIVE_BUTTON"));if(i.$$.dirty[5]&131072)e:t(75,l=qt.has("PLAY_BUTTON"));if(i.$$.dirty[5]&131072)e:t(74,a=qt.has("REPLAY_BUTTON"));if(i.$$.dirty[5]&131072)e:t(73,s=qt.has("PLAY_PREV_CHAPTER_BUTTON"));if(i.$$.dirty[0]&16|i.$$.dirty[5]&65600)e:t(34,Go=Xt?wt==="playing":fi===Uo.PlaybackState.PLAYING);if(i.$$.dirty[5]&32768)e:t(18,Xn=mi.value!=="off");if(i.$$.dirty[0]&16|i.$$.dirty[5]&16384)e:t(35,Qo=di&&!Xt||yn);if(i.$$.dirty[0]&16|i.$$.dirty[5]&16384)e:t(36,Po=!di||yn||Xt);if(i.$$.dirty[4]&524288)e:t(134,To=Ln(te,"m"));if(i.$$.dirty[0]&272|i.$$.dirty[4]&524352)e:t(37,Yo=Ai&&Ln(te,"m")&&!Xt&&gn);if(i.$$.dirty[0]&528|i.$$.dirty[4]&524352)e:t(38,G=Ai&&Ln(te,"m")&&!Xt&&bn);if(i.$$.dirty[0]&536870912|i.$$.dirty[4]&524288|i.$$.dirty[5]&1536)e:t(39,Ct=Ci!==Uo.ChromecastState.NOT_AVAILABLE&&!(Rt&&Bt===1)&&Ln(te,"m")&&!yn);if(i.$$.dirty[4]&524288|i.$$.dirty[5]&8192)e:t(40,fn=Zt.length>0&&Ln(te,"m"));if(i.$$.dirty[5]&6144)e:t(41,tn=Ii||Ti);if(i.$$.dirty[4]&524288)e:t(42,Dn=Ln(te,"s"));if(i.$$.dirty[4]&32)e:t(43,V=!ri);if(i.$$.dirty[4]&524576|i.$$.dirty[5]&1536)e:t(44,le=Jt.features.fullscreen&&(ri||Ln(te,"s"))&&!(Rt&&Bt===1)&&(yn?Hi:!0));if(i.$$.dirty[0]&16|i.$$.dirty[1]&4)e:t(19,Pe=(!ci||Xt)&&!(Jt.features.interactiveHideTime&&yn));if(i.$$.dirty[4]&262144)e:t(45,Ge=E.width>100);if(i.$$.dirty[0]&16|i.$$.dirty[1]&4|i.$$.dirty[4]&17408)e:t(20,st=!Xt&&!ci&&!!(Cn!=null&&Cn.length)&&To&&!n);if(i.$$.dirty[1]&2|i.$$.dirty[5]&256)e:t(21,Kt=!Pi||Yi);if(i.$$.dirty[5]&64)e:t(47,At=fi===Uo.PlaybackState.PLAYING?Y("tooltip_pause"):Y("tooltip_play"));if(i.$$.dirty[1]&1)e:t(48,ji=Si?Y("tooltip_interactive_graph_on"):Y("tooltip_interactive_graph_off"));if(i.$$.dirty[5]&128)e:t(49,Io=Oi?Y("aria_label_context_menu_close"):Y("aria_label_context_menu_open"));if(i.$$.dirty[0]&2097152|i.$$.dirty[5]&64)e:jl(Kt,fi);if(i.$$.dirty[0]&262144)e:t(52,Af=Xn?Y("tooltip_subtitles_on"):Y("tooltip_subtitles_off"));if(i.$$.dirty[0]&1073741824)e:t(53,Lf=Qi?Y("tooltip_fullscreen_on"):Y("tooltip_fullscreen_off"));if(i.$$.dirty[0]&536870912)e:t(54,Bf=Ci===Uo.ChromecastState.CONNECTED?Y("tooltip_chromecast_on"):Y("tooltip_chromecast_off"));if(i.$$.dirty[0]&268435456|i.$$.dirty[4]&2146435072|i.$$.dirty[5]&63)e:t(135,jn={prevButton:oi?oi.right-oi.left:0,replayButton:yi?yi.right-yi.left:0,playButton:zt?zt.right-zt.left:0,nextButton:Re?Re.right-Re.left:0,playPrevChapterButton:me?me.right-me.left:0,seekToInteractiveButton:Ht?Ht.right-Ht.left:0,interactiveGraphButton:Vt?Vt.right-Vt.left:0,liveButton:we?we.right-we.left:0,time:dt?dt.right-dt.left:0,episodes:Je?Je.right-Je.left:0,vkLogo:Ce?Ce.right-Ce.left:0,volume:Xe?Xe.right-Xe.left:0,subtitles:ye?ye.right-ye.left:0,settings:Oe?Oe.right-Oe.left:0,context:ve?ve.right-ve.left:0,fullscreen:je?je.right-je.left:0,chromecast:ee?ee.right-ee.left:0,additionalButtons:M.length?M.reduce($=>[...$,40],[]):[]});if(i.$$.dirty[4]&6144)e:(!Sl||Sl<jn.time)&&t(136,Sl=jn.time);if(i.$$.dirty[0]&5767168|i.$$.dirty[4]&530432)e:{let $=0;st&&(Ln(te,"xl")?$=jn.time:$=60);let ws=jn.prevButton+jn.playButton+jn.nextButton+jn.seekToInteractiveButton+jn.interactiveGraphButton+jn.liveButton+Sl+$;t(137,ys=Pe&&Wl>=ws)}if(i.$$.dirty[4]&532480)e:t(55,Rf=ys&&Ln(te,"m"));if(i.$$.dirty[0]&8388616|i.$$.dirty[4]&393216)e:o_(Co(),Gt,lt,Mi);if(i.$$.dirty[0]&167772160)e:sl(Ql,Q,In);if(i.$$.dirty[0]&150994944|i.$$.dirty[4]&65536)e:zo(Gl,Q,x);if(i.$$.dirty[0]&67108864|i.$$.dirty[4]&32768)e:is(ne,L,Yl)};e:t(51,Vf=Jt.logoType==="vk_video"?Y("tooltip_vk_video_logo"):Y("tooltip_vk_logo"));e:pn(t(72,{prevButton:u,replayButton:c,playButton:m,nextButton:h,playPrevChapterButton:y,seekToInteractiveButton:b,interactiveGraphButton:S,liveButton:w,time:P,episodes:v,vkLogo:g,volume:I,subtitles:A,settings:q,context:K,fullscreen:re,chromecast:ae}=Gt,u,Ni(t(71,c)),mn(t(70,m)),kt(t(69,h)),yt(t(68,y)),$t(t(67,b)),jt(t(66,S)),Mt(t(65,w)),vt(t(64,P)),ct(t(63,v)),Ie(t(62,g)),Z(t(61,I)),Ue(t(60,A)),et(t(59,q)),be(t(58,K)),We(t(57,re)),Qe(t(56,ae))));return[pi,Ei,Zi,Mi,Xt,ii,Vi,on,gn,bn,Xi,ni,_i,zi,rn,Bi,qi,Ui,Xn,Pe,st,Kt,Wl,lt,Gl,Ql,Yl,Q,M,Ci,Qi,Si,Pi,ci,Go,Qo,Po,Yo,G,Ct,fn,tn,Dn,V,le,Ge,Tt,At,ji,Io,Cl,Vf,Af,Lf,Bf,Rf,ae,re,K,q,A,I,g,v,P,w,S,b,y,h,m,c,u,s,a,l,r,o,St,Fi,li,_n,hn,ti,Jt,sn,Ki,xi,Tn,si,ai,en,hi,pt,gi,bi,ui,xt,Hn,Bn,In,Cn,Zn,zn,qn,Rn,un,Un,Kn,ne,Pt,En,vn,Mn,Sn,ao,uo,yn,ie,co,to,So,io,no,jo,Wo,kl,l_,r_,ri,Ai,ln,Hi,Li,To,jn,Sl,ys,n,L,x,J,E,te,ee,je,ve,Oe,ye,Xe,Ce,Je,dt,we,Vt,Ht,me,Re,zt,yi,oi,fi,Oi,Yi,Bt,Rt,Ti,Ii,Zt,di,mi,wt,qt,s_,a_,u_,f_,c_,d_,m_,p_,__,h_,g_,b_,v_,y_,w_,k_,C_,S_,P_,T_,I_,E_,M_,V_]}var Ou=class extends j{constructor(e){super(),W(this,e,_3,p3,U,{bottomHidden:1,bottomNoSmooth:2,showControls:3,controlsElementRef:0,isAds:4,canRewindLive:5,logoClickable:6,logoHidden:129,logoTargetUrl:7,showNextPrevButtons:130,nextButtonActive:8,prevButtonActive:9,isOneVideoPlaylist:131,supportLink:10,customFullscreenSupported:132,playNextVideo:11,playPrevVideo:12,repeatPlaylist:133,toggleFullscreen:13,returnFocus:14,seekToInteractive:15,toggleGraph:16,playPrevChapter:17},jv,[-1,-1,-1,-1,-1,-1,-1])}},Km=Ou;var _l=require("@vkontakte/videoplayer-core");function h3(i){let e,t,n,o,r,l=i[2].default,a=Ee(l,i,i[1],null),s=[{xmlns:"http://www.w3.org/2000/svg"},{width:"24"},{height:"24"},{"aria-hidden":"true"},{"data-testid":"muted-icon"},{role:"img"},i[0]],u={};for(let c=0;c<s.length;c+=1)u=oe(u,s[c]);return{c(){e=N("svg"),a&&a.c(),t=N("g"),n=N("path"),o=N("path"),f(n,"d","M0 0h24v24H0z"),f(o,"fill","#fff"),f(o,"d","M8.695 8.105 5.301 4.71a1 1 0 0 1 1.414-1.415L20.7 17.285a1 1 0 0 1-1.414 1.415L16 15.41V20a1 1 0 0 1-1 1c-.641 0-1.258-.25-1.72-.695L7.79 15H5a2 2 0 0 1-2-2v-2a2 2 0 0 1 2-2h2.765zm2.88-2.77 1.704-1.642A2.48 2.48 0 0 1 15 3a1 1 0 0 1 1 1v5.76l-4.426-4.426Z"),f(t,"fill","none"),f(t,"fill-rule","evenodd"),ge(e,u)},m(c,m){C(c,e,m),a&&a.m(e,null),p(e,t),p(t,n),p(t,o),r=!0},p(c,[m]){a&&a.p&&(!r||m&2)&&Ve(a,l,c,c[1],r?Me(l,c[1],m,null):Ae(c[1]),null),ge(e,u=Le(s,[{xmlns:"http://www.w3.org/2000/svg"},{width:"24"},{height:"24"},{"aria-hidden":"true"},{"data-testid":"muted-icon"},{role:"img"},m&1&&c[0]]))},i(c){r||(d(a,c),r=!0)},o(c){_(a,c),r=!1},d(c){c&&k(e),a&&a.d(c)}}}function g3(i,e,t){let{$$slots:n={},$$scope:o}=e;return i.$$set=r=>{t(0,e=oe(oe({},e),he(r))),"$$scope"in r&&t(1,o=r.$$scope)},e=he(e),[e,o,n]}var Hu=class extends j{constructor(e){super(),W(this,e,g3,h3,U,{})}},jm=Hu;var Gm=require("@vkontakte/videoplayer-shared");function b3(i){Se(i,"svelte-6gmlbk",".container.svelte-6gmlbk{display:flex;align-items:center}.expanded.svelte-6gmlbk{background-color:rgba(0, 0, 0, 0.56);border-radius:6px}.text.svelte-6gmlbk{font-size:15px;margin-left:8px}")}function Wm(i){let e;return{c(){e=T("span"),e.textContent=`${Y("mobile_unmute")}`,f(e,"class","text svelte-6gmlbk")},m(t,n){C(t,e,n)},p:pe,d(t){t&&k(e)}}}function v3(i){let e,t,n,o;var r=i[4];function l(s){return{}}r&&(t=Pn(r,l(i)));let a=i[1]&&Wm(i);return{c(){e=T("div"),t&&D(t.$$.fragment),n=O(),a&&a.c(),f(e,"class","container svelte-6gmlbk"),f(e,"aria-hidden","true"),z(e,"expanded",i[1])},m(s,u){C(s,e,u),t&&B(t,e,null),p(e,n),a&&a.m(e,null),o=!0},p(s,u){if(u&16&&r!==(r=s[4])){if(t){fe();let c=t;_(c.$$.fragment,1,0,()=>{R(c,1)}),ce()}r?(t=Pn(r,l(s)),D(t.$$.fragment),d(t.$$.fragment,1),B(t,e,n)):t=null}s[1]?a?a.p(s,u):(a=Wm(s),a.c(),a.m(e,null)):a&&(a.d(1),a=null),(!o||u&2)&&z(e,"expanded",s[1])},i(s){o||(t&&d(t.$$.fragment,s),o=!0)},o(s){t&&_(t.$$.fragment,s),o=!1},d(s){s&&k(e),t&&R(t),a&&a.d()}}}function y3(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:[v3]},$$scope:{ctx:i}};return i[0]!==void 0&&(r.ref=i[0]),e=new gt({props:r}),_e.push(()=>He(e,"ref",o)),{c(){D(e.$$.fragment)},m(l,a){B(e,l,a),n=!0},p(l,[a]){let s={};a&2&&(s.testId=l[1]?"btn-mobile-unmuted":"btn-mobile-muted"),a&4&&(s.click=l[2]),a&8&&(s.ariaLabel=l[3]),a&146&&(s.$$scope={dirty:a,ctx:l}),!t&&a&1&&(t=!0,s.ref=l[0],Fe(()=>t=!1)),e.$set(s)},i(l){n||(d(e.$$.fragment,l),n=!0)},o(l){_(e.$$.fragment,l),n=!1},d(l){R(e,l)}}}function w3(i,e,t){let{muted:n=!1}=e,{expanded:o=!1}=e,{click:r=Gm.noop}=e,{ref:l=void 0}=e,a,s;function u(c){l=c,t(0,l)}return i.$$set=c=>{"muted"in c&&t(5,n=c.muted),"expanded"in c&&t(1,o=c.expanded),"click"in c&&t(2,r=c.click),"ref"in c&&t(0,l=c.ref)},i.$$.update=()=>{if(i.$$.dirty&32)e:t(3,a=n?Y("tooltip_volume"):Y("tooltip_volume_muted"));if(i.$$.dirty&2)e:t(4,s=o?qo:jm)},[l,o,r,a,s,n,u]}var zu=class extends j{constructor(e){super(),W(this,e,w3,y3,U,{muted:5,expanded:1,click:2,ref:0},b3)}},qu=zu;function k3(i){let e,t,n,o,r,l=i[2].default,a=Ee(l,i,i[1],null),s=[{xmlns:"http://www.w3.org/2000/svg"},{width:"24"},{height:"24"},{fill:"none"},{role:"img"},i[0]],u={};for(let c=0;c<s.length;c+=1)u=oe(u,s[c]);return{c(){e=N("svg"),a&&a.c(),t=N("path"),n=N("path"),o=N("path"),f(t,"fill","currentColor"),f(t,"d","M7.662 4h6.676c.808 0 1.469 0 2.006.044.556.045 1.058.142 1.526.381a3.9 3.9 0 0 1 1.705 1.704c.239.47.336.971.381 1.527C20 8.193 20 8.854 20 9.662V11.1a.9.9 0 0 1-1.8 0V9.7c0-.855 0-1.442-.038-1.897-.036-.445-.103-.684-.19-.856a2.1 2.1 0 0 0-.919-.918c-.172-.088-.411-.155-.856-.191C15.742 5.8 15.155 5.8 14.3 5.8H7.7c-.855 0-1.442 0-1.897.038-.445.036-.684.103-.856.19a2.1 2.1 0 0 0-.918.919c-.088.172-.155.411-.191.856C3.8 8.258 3.8 8.845 3.8 9.7v2.646c0 .855 0 1.442.038 1.897.036.445.103.683.19.856a2.1 2.1 0 0 0 .919.918c.172.088.411.155.856.191.455.037 1.042.038 1.897.038h2.4a.9.9 0 0 1 0 1.8H7.662c-.808 0-1.469 0-2.006-.044-.556-.045-1.058-.142-1.527-.381a3.9 3.9 0 0 1-1.704-1.704c-.239-.47-.336-.972-.381-1.527C2 13.852 2 13.192 2 12.384V9.662c0-.808 0-1.469.044-2.006.045-.556.142-1.058.381-1.527A3.9 3.9 0 0 1 4.13 4.425c.47-.239.971-.336 1.527-.381C6.193 4 6.854 4 7.662 4M13 16.8c0-.98 0-1.47.19-1.845a1.75 1.75 0 0 1 .766-.764C14.33 14 14.82 14 15.8 14h3.4c.98 0 1.47 0 1.845.19.329.168.596.436.764.766.191.374.191.864.191 1.844v.4c0 .98 0 1.47-.19 1.845a1.75 1.75 0 0 1-.765.764C20.67 20 20.18 20 19.2 20h-3.4c-.98 0-1.47 0-1.845-.19a1.75 1.75 0 0 1-.764-.765C13 18.67 13 18.18 13 17.2z"),f(t,"clip-rule","evenodd"),f(n,"fill","currentColor"),f(n,"d","m11.643 12.37-.007-.006L9.073 9.8H10.1a.9.9 0 1 0 0-1.8H6.9a.9.9 0 0 0-.9.9v3.2a.9.9 0 0 0 1.8 0v-1.022l2.53 2.524.134.134a.9.9 0 0 0 1.272-1.272z"),f(n,"class","hidden-not-active"),f(o,"fill","currentColor"),f(o,"d","m6.357 9.63.007.006L8.927 12.2H7.9a.9.9 0 1 0 0 1.8h3.2a.9.9 0 0 0 .9-.9V9.9a.9.9 0 0 0-1.8 0v1.022L7.67 8.397l-.134-.133a.9.9 0 0 0-1.272 1.272z"),f(o,"class","hidden-active"),ge(e,u)},m(c,m){C(c,e,m),a&&a.m(e,null),p(e,t),p(e,n),p(e,o),r=!0},p(c,[m]){a&&a.p&&(!r||m&2)&&Ve(a,l,c,c[1],r?Me(l,c[1],m,null):Ae(c[1]),null),ge(e,u=Le(s,[{xmlns:"http://www.w3.org/2000/svg"},{width:"24"},{height:"24"},{fill:"none"},{role:"img"},m&1&&c[0]]))},i(c){r||(d(a,c),r=!0)},o(c){_(a,c),r=!1},d(c){c&&k(e),a&&a.d(c)}}}function C3(i,e,t){let{$$slots:n={},$$scope:o}=e;return i.$$set=r=>{t(0,e=oe(oe({},e),he(r))),"$$scope"in r&&t(1,o=r.$$scope)},e=he(e),[e,o,n]}var Uu=class extends j{constructor(e){super(),W(this,e,C3,k3,U,{})}},Qm=Uu;function S3(i){Se(i,"svelte-sba75o",'svg[data-testid="pip-icon--active"] .hidden-not-active,svg[data-testid="pip-icon"] .hidden-active{visibility:hidden;opacity:0}')}function P3(i){let e,t;return e=new Qm({props:{style:i[1],"data-testid":i[0]?"pip-icon--active":"pip-icon"}}),{c(){D(e.$$.fragment)},m(n,o){B(e,n,o),t=!0},p(n,[o]){let r={};o&2&&(r.style=n[1]),o&1&&(r["data-testid"]=n[0]?"pip-icon--active":"pip-icon"),e.$set(r)},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){_(e.$$.fragment,n),t=!1},d(n){R(e,n)}}}function T3(i,e,t){let n,{isActive:o=!1}=e;return i.$$set=r=>{"isActive"in r&&t(0,o=r.isActive)},i.$$.update=()=>{if(i.$$.dirty&1)e:t(1,n=o?"color: #2688EB;":"color: #fff;")},[o,n]}var Ku=class extends j{constructor(e){super(),W(this,e,T3,P3,U,{isActive:0},S3)}},Ym=Ku;var Zm=require("@vkontakte/videoplayer-shared");function I3(i){let e,t;return e=new Ym({props:{isActive:i[1]}}),{c(){D(e.$$.fragment)},m(n,o){B(e,n,o),t=!0},p(n,o){let r={};o&2&&(r.isActive=n[1]),e.$set(r)},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){_(e.$$.fragment,n),t=!1},d(n){R(e,n)}}}function E3(i){let e,t,n;function o(l){i[3](l)}let r={testId:"btn-pip",ariaLabel:Y("menu_pip"),click:i[2],$$slots:{default:[I3]},$$scope:{ctx:i}};return i[0]!==void 0&&(r.ref=i[0]),e=new gt({props:r}),_e.push(()=>He(e,"ref",o)),{c(){D(e.$$.fragment)},m(l,a){B(e,l,a),n=!0},p(l,[a]){let s={};a&4&&(s.click=l[2]),a&18&&(s.$$scope={dirty:a,ctx:l}),!t&&a&1&&(t=!0,s.ref=l[0],Fe(()=>t=!1)),e.$set(s)},i(l){n||(d(e.$$.fragment,l),n=!0)},o(l){_(e.$$.fragment,l),n=!1},d(l){R(e,l)}}}function M3(i,e,t){let{ref:n=void 0}=e,{isPictureInPictureActive:o=!1}=e,{click:r=Zm.noop}=e;function l(a){n=a,t(0,n)}return i.$$set=a=>{"ref"in a&&t(0,n=a.ref),"isPictureInPictureActive"in a&&t(1,o=a.isPictureInPictureActive),"click"in a&&t(2,r=a.click)},[n,o,r,l]}var ju=class extends j{constructor(e){super(),W(this,e,M3,E3,U,{ref:0,isPictureInPictureActive:1,click:2})}},Xm=ju;var v0=require("@vkontakte/videoplayer-shared");function V3(i){Se(i,"svelte-1tcstu3",".wrapper-bottom.svelte-1tcstu3.svelte-1tcstu3{pointer-events:none;position:absolute;width:100%;bottom:0;left:0;height:var(--controls-gradient-height);background:var(--controls-gradient);transition:transform var(--controls-transition-duration) var(--controls-transition-fn);display:flex;flex-direction:column;justify-content:flex-end;box-sizing:border-box;padding:0 4px 8px}.wrapper-bottom.svelte-1tcstu3>.svelte-1tcstu3{pointer-events:auto}.wrapper-bottom.ads-timeline-mobile.svelte-1tcstu3.svelte-1tcstu3{height:9px;padding:0 4px 4px}.wrapper-middle.svelte-1tcstu3.svelte-1tcstu3{position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);transition:opacity var(--controls-transition-duration);display:flex;align-items:center}.wrapper-top-right.svelte-1tcstu3.svelte-1tcstu3{position:absolute;top:4px;right:8px;transition:opacity var(--controls-transition-duration);display:flex}.wrapper-top-left.svelte-1tcstu3.svelte-1tcstu3{position:absolute;top:4px;left:8px}.wrapper-middle-left.svelte-1tcstu3.svelte-1tcstu3,.wrapper-middle-left-second.svelte-1tcstu3.svelte-1tcstu3,.wrapper-middle-right.svelte-1tcstu3.svelte-1tcstu3{position:absolute;top:50%;transform:translateY(-50%);height:44px;width:44px;border-radius:12px;background-color:rgba(0, 0, 0, 0.56);transition:opacity var(--controls-transition-duration);display:flex;align-items:center;justify-content:center}.wrapper-middle-left.svelte-1tcstu3.svelte-1tcstu3{left:12px}.wrapper-middle-left-second.svelte-1tcstu3.svelte-1tcstu3{left:64px}.wrapper-middle-right.svelte-1tcstu3.svelte-1tcstu3{right:12px}.controls.svelte-1tcstu3.svelte-1tcstu3{width:100%;display:flex;align-items:center;height:var(--controls-height);white-space:nowrap;font-size:13px;transition:transform var(--controls-transition-duration) var(--controls-transition-fn);will-change:transform;padding:0 4px;box-sizing:border-box}.controls.svelte-1tcstu3 > *:not(:first-child){margin-left:8px}.hidden.svelte-1tcstu3.svelte-1tcstu3{visibility:hidden;opacity:0}.controls-hidden.svelte-1tcstu3.svelte-1tcstu3{visibility:visible;transform:translateY(100%)}.wrapper-bottom.no-smooth.svelte-1tcstu3.svelte-1tcstu3{transition:none}.settings-mobile.svelte-1tcstu3.svelte-1tcstu3{position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);transition:opacity var(--controls-transition-duration);display:flex;align-items:center;max-width:320px;width:90%}.overlay-mobile.svelte-1tcstu3.svelte-1tcstu3{position:absolute;top:0;left:0;width:100%;height:100%;background-color:rgba(0, 0, 0, .3);pointer-events:none;transition:opacity var(--controls-transition-duration)}@media screen and (orientation: portrait){.wrapper-top-right.fullscreen.svelte-1tcstu3.svelte-1tcstu3{top:16px}.wrapper-top-left.fullscreen.svelte-1tcstu3.svelte-1tcstu3{top:16px}.controls-wrapper.fullscreen.svelte-1tcstu3.svelte-1tcstu3{position:absolute;bottom:30px;width:calc(100% - 8px)}}@media screen and (orientation: landscape){.wrapper-top-left.fullscreen.svelte-1tcstu3.svelte-1tcstu3{top:12px;left:44px}.wrapper-top-right.fullscreen.svelte-1tcstu3.svelte-1tcstu3{top:12px;right:44px}.wrapper-middle-left.fullscreen.svelte-1tcstu3.svelte-1tcstu3{left:44px}.wrapper-middle-left-second.fullscreen.svelte-1tcstu3.svelte-1tcstu3{left:96px}.wrapper-middle-right.fullscreen.svelte-1tcstu3.svelte-1tcstu3{right:44px}.controls-wrapper.fullscreen.svelte-1tcstu3.svelte-1tcstu3{position:absolute;left:36px;right:36px;bottom:32px;width:calc(100% - 72px)}}")}function Jm(i,e,t){let n=i.slice();return n[169]=e[t].iconUrl,n[170]=e[t].ariaLabel,n[171]=e[t].testId,n[172]=e[t].onClick,n[173]=e[t].tooltip,n}function xm(i){let e,t,n,o,r,l,a,s,u,c,m,h,y,b,S,w,P,v=(!i[51]||i[53])&&$m(i),g=It(i[56]),I=[];for(let E=0;E<g.length;E+=1)I[E]=e0(Jm(i,g,E));let A=E=>_(I[E],1,1,()=>{I[E]=null}),q=i[36]&&t0(i),K=i[37]&&i0(i),re=i[57]&&n0(i),ae=i[39]&&o0(i),H=i[8]&&l0(i),L=i[34]&&r0(i),x=i[33]&&s0(i),Q=i[8]&&a0(i),J=i[96]&&!i[29]&&u0(i);return{c(){e=T("div"),t=O(),n=T("div"),v&&v.c(),o=O(),r=T("div");for(let E=0;E<I.length;E+=1)I[E].c();l=O(),q&&q.c(),a=O(),K&&K.c(),s=O(),re&&re.c(),u=O(),ae&&ae.c(),c=O(),m=T("div"),H&&H.c(),h=O(),L&&L.c(),y=O(),x&&x.c(),b=O(),Q&&Q.c(),S=O(),J&&J.c(),w=rt(),f(e,"class","overlay-mobile svelte-1tcstu3"),z(e,"hidden",!i[42]),f(n,"class","wrapper-top-left svelte-1tcstu3"),z(n,"hidden",!i[3]),z(n,"fullscreen",i[52]),f(r,"class","wrapper-top-right svelte-1tcstu3"),z(r,"hidden",!i[3]&&!i[27]),z(r,"fullscreen",i[52]),f(m,"class","wrapper-middle svelte-1tcstu3"),z(m,"hidden",!i[3]||i[29])},m(E,te){C(E,e,te),C(E,t,te),C(E,n,te),v&&v.m(n,null),C(E,o,te),C(E,r,te);for(let M=0;M<I.length;M+=1)I[M]&&I[M].m(r,null);p(r,l),q&&q.m(r,null),p(r,a),K&&K.m(r,null),p(r,s),re&&re.m(r,null),p(r,u),ae&&ae.m(r,null),C(E,c,te),C(E,m,te),H&&H.m(m,null),p(m,h),L&&L.m(m,null),p(m,y),x&&x.m(m,null),p(m,b),Q&&Q.m(m,null),C(E,S,te),J&&J.m(E,te),C(E,w,te),P=!0},p(E,te){if((!P||te[1]&2048)&&z(e,"hidden",!E[42]),!E[51]||E[53]?v?(v.p(E,te),te[1]&5242880&&d(v,1)):(v=$m(E),v.c(),d(v,1),v.m(n,null)):v&&(fe(),_(v,1,1,()=>{v=null}),ce()),(!P||te[0]&8)&&z(n,"hidden",!E[3]),(!P||te[1]&2097152)&&z(n,"fullscreen",E[52]),te[1]&33554432){g=It(E[56]);let M;for(M=0;M<g.length;M+=1){let ee=Jm(E,g,M);I[M]?(I[M].p(ee,te),d(I[M],1)):(I[M]=e0(ee),I[M].c(),d(I[M],1),I[M].m(r,l))}for(fe(),M=g.length;M<I.length;M+=1)A(M);ce()}E[36]?q?(q.p(E,te),te[1]&32&&d(q,1)):(q=t0(E),q.c(),d(q,1),q.m(r,a)):q&&(fe(),_(q,1,1,()=>{q=null}),ce()),E[37]?K?(K.p(E,te),te[1]&64&&d(K,1)):(K=i0(E),K.c(),d(K,1),K.m(r,s)):K&&(fe(),_(K,1,1,()=>{K=null}),ce()),E[57]?re?(re.p(E,te),te[1]&67108864&&d(re,1)):(re=n0(E),re.c(),d(re,1),re.m(r,u)):re&&(fe(),_(re,1,1,()=>{re=null}),ce()),E[39]?ae?(ae.p(E,te),te[1]&256&&d(ae,1)):(ae=o0(E),ae.c(),d(ae,1),ae.m(r,null)):ae&&(fe(),_(ae,1,1,()=>{ae=null}),ce()),(!P||te[0]&134217736)&&z(r,"hidden",!E[3]&&!E[27]),(!P||te[1]&2097152)&&z(r,"fullscreen",E[52]),E[8]?H?(H.p(E,te),te[0]&256&&d(H,1)):(H=l0(E),H.c(),d(H,1),H.m(m,h)):H&&(fe(),_(H,1,1,()=>{H=null}),ce()),E[34]?L?(L.p(E,te),te[1]&8&&d(L,1)):(L=r0(E),L.c(),d(L,1),L.m(m,y)):L&&(fe(),_(L,1,1,()=>{L=null}),ce()),E[33]?x?(x.p(E,te),te[1]&4&&d(x,1)):(x=s0(E),x.c(),d(x,1),x.m(m,b)):x&&(fe(),_(x,1,1,()=>{x=null}),ce()),E[8]?Q?(Q.p(E,te),te[0]&256&&d(Q,1)):(Q=a0(E),Q.c(),d(Q,1),Q.m(m,null)):Q&&(fe(),_(Q,1,1,()=>{Q=null}),ce()),(!P||te[0]&536870920)&&z(m,"hidden",!E[3]||E[29]),E[96]&&!E[29]?J?(J.p(E,te),te[0]&536870912&&d(J,1)):(J=u0(E),J.c(),d(J,1),J.m(w.parentNode,w)):J&&(fe(),_(J,1,1,()=>{J=null}),ce())},i(E){if(!P){d(v);for(let te=0;te<g.length;te+=1)d(I[te]);d(q),d(K),d(re),d(ae),d(H),d(L),d(x),d(Q),d(J),P=!0}},o(E){_(v),I=I.filter(Boolean);for(let te=0;te<I.length;te+=1)_(I[te]);_(q),_(K),_(re),_(ae),_(H),_(L),_(x),_(Q),_(J),P=!1},d(E){E&&(k(e),k(t),k(n),k(o),k(r),k(c),k(m),k(S),k(w)),v&&v.d(),Gi(I,E),q&&q.d(),K&&K.d(),re&&re.d(),ae&&ae.d(),H&&H.d(),L&&L.d(),x&&x.d(),Q&&Q.d(),J&&J.d(E)}}}function $m(i){let e,t,n;function o(l){i[130](l)}let r={muted:i[54],expanded:i[51]&&!i[70]&&i[55],click:i[106]};return i[20].volume!==void 0&&(r.ref=i[20].volume),e=new qu({props:r}),_e.push(()=>He(e,"ref",o)),{c(){D(e.$$.fragment)},m(l,a){B(e,l,a),n=!0},p(l,a){let s={};a[1]&8388608&&(s.muted=l[54]),a[1]&17825792&&(s.expanded=l[51]&&!l[70]&&l[55]),!t&&a[0]&1048576&&(t=!0,s.ref=l[20].volume,Fe(()=>t=!1)),e.$set(s)},i(l){n||(d(e.$$.fragment,l),n=!0)},o(l){_(e.$$.fragment,l),n=!1},d(l){R(e,l)}}}function e0(i){var n;let e,t;return e=new Yr({props:{iconUrl:i[169],ariaLabel:(n=i[170])!=null?n:i[173],testId:i[171],onClick:i[172]}}),{c(){D(e.$$.fragment)},m(o,r){B(e,o,r),t=!0},p(o,r){var a;let l={};r[1]&33554432&&(l.iconUrl=o[169]),r[1]&33554432&&(l.ariaLabel=(a=o[170])!=null?a:o[173]),r[1]&33554432&&(l.testId=o[171]),r[1]&33554432&&(l.onClick=o[172]),e.$set(l)},i(o){t||(d(e.$$.fragment,o),t=!0)},o(o){_(e.$$.fragment,o),t=!1},d(o){R(e,o)}}}function t0(i){let e,t,n;function o(l){i[131](l)}let r={isMobile:!0,click:i[104],state:i[28]};return i[20].chromecast!==void 0&&(r.ref=i[20].chromecast),e=new Or({props:r}),_e.push(()=>He(e,"ref",o)),{c(){D(e.$$.fragment)},m(l,a){B(e,l,a),n=!0},p(l,a){let s={};a[0]&268435456&&(s.state=l[28]),!t&&a[0]&1048576&&(t=!0,s.ref=l[20].chromecast,Fe(()=>t=!1)),e.$set(s)},i(l){n||(d(e.$$.fragment,l),n=!0)},o(l){_(e.$$.fragment,l),n=!1},d(l){R(e,l)}}}function i0(i){let e,t,n;function o(l){i[132](l)}let r={click:i[105],isPictureInPictureActive:i[26]};return i[20].pip!==void 0&&(r.ref=i[20].pip),e=new Xm({props:r}),_e.push(()=>He(e,"ref",o)),{c(){D(e.$$.fragment)},m(l,a){B(e,l,a),n=!0},p(l,a){let s={};a[0]&67108864&&(s.isPictureInPictureActive=l[26]),!t&&a[0]&1048576&&(t=!0,s.ref=l[20].pip,Fe(()=>t=!1)),e.$set(s)},i(l){n||(d(e.$$.fragment,l),n=!0)},o(l){_(e.$$.fragment,l),n=!1},d(l){R(e,l)}}}function n0(i){let e,t,n;function o(l){i[133](l)}let r={};return i[22]!==void 0&&(r.ref=i[22]),e=new Dl({props:r}),_e.push(()=>He(e,"ref",o)),{c(){D(e.$$.fragment)},m(l,a){B(e,l,a),n=!0},p(l,a){let s={};!t&&a[0]&4194304&&(t=!0,s.ref=l[22],Fe(()=>t=!1)),e.$set(s)},i(l){n||(d(e.$$.fragment,l),n=!0)},o(l){_(e.$$.fragment,l),n=!1},d(l){R(e,l)}}}function o0(i){let e,t,n;function o(l){i[134](l)}let r={click:i[64],targetUrl:i[7],logoClickable:i[6]};return i[20].vkLogo!==void 0&&(r.ref=i[20].vkLogo),e=new Nr({props:r}),_e.push(()=>He(e,"ref",o)),{c(){D(e.$$.fragment)},m(l,a){B(e,l,a),n=!0},p(l,a){let s={};a[0]&128&&(s.targetUrl=l[7]),a[0]&64&&(s.logoClickable=l[6]),!t&&a[0]&1048576&&(t=!0,s.ref=l[20].vkLogo,Fe(()=>t=!1)),e.$set(s)},i(l){n||(d(e.$$.fragment,l),n=!0)},o(l){_(e.$$.fragment,l),n=!1},d(l){R(e,l)}}}function l0(i){let e,t,n;function o(l){i[135](l)}let r={click:i[13],type:"prev",disabled:!i[10],isMobile:!0};return i[20].prevButton!==void 0&&(r.ref=i[20].prevButton),e=new ml({props:r}),_e.push(()=>He(e,"ref",o)),{c(){D(e.$$.fragment)},m(l,a){B(e,l,a),n=!0},p(l,a){let s={};a[0]&8192&&(s.click=l[13]),a[0]&1024&&(s.disabled=!l[10]),!t&&a[0]&1048576&&(t=!0,s.ref=l[20].prevButton,Fe(()=>t=!1)),e.$set(s)},i(l){n||(d(e.$$.fragment,l),n=!0)},o(l){_(e.$$.fragment,l),n=!1},d(l){R(e,l)}}}function r0(i){let e,t,n;function o(l){i[136](l)}let r={disabled:i[49],click:i[63],isMobile:!0,isPlaying:i[31]};return i[20].playButton!==void 0&&(r.ref=i[20].playButton),e=new Ol({props:r}),_e.push(()=>He(e,"ref",o)),{c(){D(e.$$.fragment)},m(l,a){B(e,l,a),n=!0},p(l,a){let s={};a[1]&262144&&(s.disabled=l[49]),a[1]&1&&(s.isPlaying=l[31]),!t&&a[0]&1048576&&(t=!0,s.ref=l[20].playButton,Fe(()=>t=!1)),e.$set(s)},i(l){n||(d(e.$$.fragment,l),n=!0)},o(l){_(e.$$.fragment,l),n=!1},d(l){R(e,l)}}}function s0(i){let e,t,n;function o(l){i[137](l)}let r={disabled:i[48],click:i[107],isMobile:!0};return i[20].replayButton!==void 0&&(r.ref=i[20].replayButton),e=new Fl({props:r}),_e.push(()=>He(e,"ref",o)),{c(){D(e.$$.fragment)},m(l,a){B(e,l,a),n=!0},p(l,a){let s={};a[1]&131072&&(s.disabled=l[48]),!t&&a[0]&1048576&&(t=!0,s.ref=l[20].replayButton,Fe(()=>t=!1)),e.$set(s)},i(l){n||(d(e.$$.fragment,l),n=!0)},o(l){_(e.$$.fragment,l),n=!1},d(l){R(e,l)}}}function a0(i){let e,t,n;function o(l){i[138](l)}let r={click:i[12],type:"next",disabled:!i[9],isMobile:!0};return i[20].nextButton!==void 0&&(r.ref=i[20].nextButton),e=new ml({props:r}),_e.push(()=>He(e,"ref",o)),{c(){D(e.$$.fragment)},m(l,a){B(e,l,a),n=!0},p(l,a){let s={};a[0]&4096&&(s.click=l[12]),a[0]&512&&(s.disabled=!l[9]),!t&&a[0]&1048576&&(t=!0,s.ref=l[20].nextButton,Fe(()=>t=!1)),e.$set(s)},i(l){n||(d(e.$$.fragment,l),n=!0)},o(l){_(e.$$.fragment,l),n=!1},d(l){R(e,l)}}}function u0(i){let e,t,n,o,r=i[100]&&A3(i),l=i[98]&&L3(i),a=i[99]&&B3(i);return{c(){r&&r.c(),e=O(),l&&l.c(),t=O(),a&&a.c(),n=rt()},m(s,u){r&&r.m(s,u),C(s,e,u),l&&l.m(s,u),C(s,t,u),a&&a.m(s,u),C(s,n,u),o=!0},p(s,u){s[100]&&r.p(s,u),s[98]&&l.p(s,u),s[99]&&a.p(s,u)},i(s){o||(d(r),d(l),d(a),o=!0)},o(s){_(r),_(l),_(a),o=!1},d(s){s&&(k(e),k(t),k(n)),r&&r.d(s),l&&l.d(s),a&&a.d(s)}}}function A3(i){let e,t,n,o,r,l;function a(u){i[139](u)}let s={hidden:!i[3],disabled:i[47],click:i[18]};return i[20].playPrevChapterButton!==void 0&&(s.ref=i[20].playPrevChapterButton),t=new Qr({props:s}),_e.push(()=>He(t,"ref",a)),{c(){e=T("div"),D(t.$$.fragment),f(e,"class","wrapper-middle-left svelte-1tcstu3"),z(e,"fullscreen",i[52]),z(e,"hidden",!i[3])},m(u,c){C(u,e,c),B(t,e,null),o=!0,r||(l=de(e,"click",i[108]),r=!0)},p(u,c){let m={};c[0]&8&&(m.hidden=!u[3]),c[1]&65536&&(m.disabled=u[47]),c[0]&262144&&(m.click=u[18]),!n&&c[0]&1048576&&(n=!0,m.ref=u[20].playPrevChapterButton,Fe(()=>n=!1)),t.$set(m),(!o||c[1]&2097152)&&z(e,"fullscreen",u[52]),(!o||c[0]&8)&&z(e,"hidden",!u[3])},i(u){o||(d(t.$$.fragment,u),o=!0)},o(u){_(t.$$.fragment,u),o=!1},d(u){u&&k(e),R(t),r=!1,l()}}}function L3(i){let e,t,n,o,r;function l(s){i[140](s)}let a={hidden:!i[3]&&!i[58],disabled:i[50],click:i[17],graphIsOpened:i[58]};return i[20].interactiveGraphButton!==void 0&&(a.ref=i[20].interactiveGraphButton),t=new Wr({props:a}),_e.push(()=>He(t,"ref",l)),{c(){e=T("div"),D(t.$$.fragment),f(e,"class",o=Kf(i[100]?"wrapper-middle-left-second":"wrapper-middle-left")+" svelte-1tcstu3"),z(e,"fullscreen",i[52]),z(e,"hidden",!i[3]&&!i[58])},m(s,u){C(s,e,u),B(t,e,null),r=!0},p(s,u){let c={};u[0]&8|u[1]&134217728&&(c.hidden=!s[3]&&!s[58]),u[1]&524288&&(c.disabled=s[50]),u[0]&131072&&(c.click=s[17]),u[1]&134217728&&(c.graphIsOpened=s[58]),!n&&u[0]&1048576&&(n=!0,c.ref=s[20].interactiveGraphButton,Fe(()=>n=!1)),t.$set(c),(!r||u[1]&2097152)&&z(e,"fullscreen",s[52]),(!r||u[0]&8|u[1]&134217728)&&z(e,"hidden",!s[3]&&!s[58])},i(s){r||(d(t.$$.fragment,s),r=!0)},o(s){_(t.$$.fragment,s),r=!1},d(s){s&&k(e),R(t)}}}function B3(i){let e,t,n,o,r,l;function a(u){i[141](u)}let s={hidden:!i[3],disabled:i[46],click:i[16]};return i[20].seekToInteractiveButton!==void 0&&(s.ref=i[20].seekToInteractiveButton),t=new jr({props:s}),_e.push(()=>He(t,"ref",a)),{c(){e=T("div"),D(t.$$.fragment),f(e,"class","wrapper-middle-right svelte-1tcstu3"),z(e,"fullscreen",i[52]),z(e,"hidden",!i[3])},m(u,c){C(u,e,c),B(t,e,null),o=!0,r||(l=de(e,"click",i[109]),r=!0)},p(u,c){let m={};c[0]&8&&(m.hidden=!u[3]),c[1]&32768&&(m.disabled=u[46]),c[0]&65536&&(m.click=u[16]),!n&&c[0]&1048576&&(n=!0,m.ref=u[20].seekToInteractiveButton,Fe(()=>n=!1)),t.$set(m),(!o||c[1]&2097152)&&z(e,"fullscreen",u[52]),(!o||c[0]&8)&&z(e,"hidden",!u[3])},i(u){o||(d(t.$$.fragment,u),o=!0)},o(u){_(t.$$.fragment,u),o=!1},d(u){u&&k(e),R(t),r=!1,l()}}}function f0(i){let e,t,n,o,r,l=i[53]&&c0(i),a=i[32]&&d0(i);return o=new qr({props:{position:i[59],duration:i[60]}}),{c(){l&&l.c(),e=O(),a&&a.c(),t=O(),n=T("div"),D(o.$$.fragment),f(n,"class","wrapper-bottom ads-timeline-mobile svelte-1tcstu3"),z(n,"fullscreen",i[52])},m(s,u){l&&l.m(s,u),C(s,e,u),a&&a.m(s,u),C(s,t,u),C(s,n,u),B(o,n,null),r=!0},p(s,u){s[53]?l?(l.p(s,u),u[1]&4194304&&d(l,1)):(l=c0(s),l.c(),d(l,1),l.m(e.parentNode,e)):l&&(fe(),_(l,1,1,()=>{l=null}),ce()),s[32]?a?(a.p(s,u),u[1]&2&&d(a,1)):(a=d0(s),a.c(),d(a,1),a.m(t.parentNode,t)):a&&(fe(),_(a,1,1,()=>{a=null}),ce());let c={};u[1]&268435456&&(c.position=s[59]),u[1]&536870912&&(c.duration=s[60]),o.$set(c),(!r||u[1]&2097152)&&z(n,"fullscreen",s[52])},i(s){r||(d(l),d(a),d(o.$$.fragment,s),r=!0)},o(s){_(l),_(a),_(o.$$.fragment,s),r=!1},d(s){s&&(k(e),k(t),k(n)),l&&l.d(s),a&&a.d(s),R(o)}}}function c0(i){let e,t,n,o;function r(a){i[142](a)}let l={muted:i[54],expanded:!1,click:i[106]};return i[20].volume!==void 0&&(l.ref=i[20].volume),t=new qu({props:l}),_e.push(()=>He(t,"ref",r)),{c(){e=T("div"),D(t.$$.fragment),f(e,"class","wrapper-top-right svelte-1tcstu3"),z(e,"fullscreen",i[52])},m(a,s){C(a,e,s),B(t,e,null),o=!0},p(a,s){let u={};s[1]&8388608&&(u.muted=a[54]),!n&&s[0]&1048576&&(n=!0,u.ref=a[20].volume,Fe(()=>n=!1)),t.$set(u),(!o||s[1]&2097152)&&z(e,"fullscreen",a[52])},i(a){o||(d(t.$$.fragment,a),o=!0)},o(a){_(t.$$.fragment,a),o=!1},d(a){a&&k(e),R(t)}}}function d0(i){let e,t,n,o;function r(a){i[143](a)}let l={disabled:i[49],click:i[63],isMobile:!0,isPlaying:!i[32]};return i[20].playButton!==void 0&&(l.ref=i[20].playButton),t=new Ol({props:l}),_e.push(()=>He(t,"ref",r)),{c(){e=T("div"),D(t.$$.fragment),f(e,"class","wrapper-middle svelte-1tcstu3")},m(a,s){C(a,e,s),B(t,e,null),o=!0},p(a,s){let u={};s[1]&262144&&(u.disabled=a[49]),s[1]&2&&(u.isPlaying=!a[32]),!n&&s[0]&1048576&&(n=!0,u.ref=a[20].playButton,Fe(()=>n=!1)),t.$set(u)},i(a){o||(d(t.$$.fragment,a),o=!0)},o(a){_(t.$$.fragment,a),o=!1},d(a){a&&k(e),R(t)}}}function R3(i){let e,t,n;function o(l){i[144](l)}let r={disabled:i[48],$$slots:{default:[D3]},$$scope:{ctx:i}};return i[20].replayButton!==void 0&&(r.ref=i[20].replayButton),e=new Ft({props:r}),_e.push(()=>He(e,"ref",o)),{c(){D(e.$$.fragment)},m(l,a){B(e,l,a),n=!0},p(l,a){let s={};a[1]&131072&&(s.disabled=l[48]),a[1]&131072|a[5]&2097152&&(s.$$scope={dirty:a,ctx:l}),!t&&a[0]&1048576&&(t=!0,s.ref=l[20].replayButton,Fe(()=>t=!1)),e.$set(s)},i(l){n||(d(e.$$.fragment,l),n=!0)},o(l){_(e.$$.fragment,l),n=!1},d(l){R(e,l)}}}function D3(i){let e,t;return e=new Fl({props:{disabled:i[48],click:i[95]}}),{c(){D(e.$$.fragment)},m(n,o){B(e,n,o),t=!0},p(n,o){let r={};o[1]&131072&&(r.disabled=n[48]),e.$set(r)},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){_(e.$$.fragment,n),t=!1},d(n){R(e,n)}}}function m0(i){let e,t,n;function o(l){i[145](l)}let r={$$slots:{default:[N3]},$$scope:{ctx:i}};return i[20].liveButton!==void 0&&(r.ref=i[20].liveButton),e=new Ft({props:r}),_e.push(()=>He(e,"ref",o)),{c(){D(e.$$.fragment)},m(l,a){B(e,l,a),n=!0},p(l,a){let s={};a[0]&524288|a[1]&16384|a[5]&2097152&&(s.$$scope={dirty:a,ctx:l}),!t&&a[0]&1048576&&(t=!0,s.ref=l[20].liveButton,Fe(()=>t=!1)),e.$set(s)},i(l){n||(d(e.$$.fragment,l),n=!0)},o(l){_(e.$$.fragment,l),n=!1},d(l){R(e,l)}}}function N3(i){let e,t;return e=new Hr({props:{isActiveLive:i[19],isMobile:!0,ariaLabel:i[45]}}),{c(){D(e.$$.fragment)},m(n,o){B(e,n,o),t=!0},p(n,o){let r={};o[0]&524288&&(r.isActiveLive=n[19]),o[1]&16384&&(r.ariaLabel=n[45]),e.$set(r)},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){_(e.$$.fragment,n),t=!1},d(n){R(e,n)}}}function p0(i){let e,t,n;function o(l){i[146](l)}let r={showDuration:i[35],position:i[4]?i[59]:i[61],duration:i[4]?i[60]:i[62],isMobile:!0};return i[20].time!==void 0&&(r.ref=i[20].time),e=new Vr({props:r}),_e.push(()=>He(e,"ref",o)),{c(){D(e.$$.fragment)},m(l,a){B(e,l,a),n=!0},p(l,a){let s={};a[1]&16&&(s.showDuration=l[35]),a[0]&16|a[1]&1342177280&&(s.position=l[4]?l[59]:l[61]),a[0]&16|a[1]&536870912|a[2]&1&&(s.duration=l[4]?l[60]:l[62]),!t&&a[0]&1048576&&(t=!0,s.ref=l[20].time,Fe(()=>t=!1)),e.$set(s)},i(l){n||(d(e.$$.fragment,l),n=!0)},o(l){_(e.$$.fragment,l),n=!1},d(l){R(e,l)}}}function _0(i){let e,t,n,o;return n=new Kr({props:{position:i[61],duration:i[62],timeCodes:i[84]}}),{c(){e=T("div"),e.textContent="\xB7",t=O(),D(n.$$.fragment),f(e,"aria-hidden","true")},m(r,l){C(r,e,l),C(r,t,l),B(n,r,l),o=!0},p(r,l){let a={};l[1]&1073741824&&(a.position=r[61]),l[2]&1&&(a.duration=r[62]),n.$set(a)},i(r){o||(d(n.$$.fragment,r),o=!0)},o(r){_(n.$$.fragment,r),o=!1},d(r){r&&(k(e),k(t)),R(n,r)}}}function O3(i){let e,t,n=i[43]&&_0(i);return{c(){n&&n.c(),e=rt()},m(o,r){n&&n.m(o,r),C(o,e,r),t=!0},p(o,r){o[43]?n?(n.p(o,r),r[1]&4096&&d(n,1)):(n=_0(o),n.c(),d(n,1),n.m(e.parentNode,e)):n&&(fe(),_(n,1,1,()=>{n=null}),ce())},i(o){t||(d(n),t=!0)},o(o){_(n),t=!1},d(o){o&&k(e),n&&n.d(o)}}}function h0(i){let e,t,n;function o(l){i[149](l)}let r={$$slots:{default:[F3]},$$scope:{ctx:i}};return i[20].settings!==void 0&&(r.ref=i[20].settings),e=new Ft({props:r}),_e.push(()=>He(e,"ref",o)),{c(){D(e.$$.fragment)},m(l,a){B(e,l,a),n=!0},p(l,a){let s={};a[0]&4194304|a[5]&2097152&&(s.$$scope={dirty:a,ctx:l}),!t&&a[0]&1048576&&(t=!0,s.ref=l[20].settings,Fe(()=>t=!1)),e.$set(s)},i(l){n||(d(e.$$.fragment,l),n=!0)},o(l){_(e.$$.fragment,l),n=!1},d(l){R(e,l)}}}function F3(i){let e,t,n;function o(l){i[148](l)}let r={};return i[22]!==void 0&&(r.ref=i[22]),e=new Dl({props:r}),_e.push(()=>He(e,"ref",o)),{c(){D(e.$$.fragment)},m(l,a){B(e,l,a),n=!0},p(l,a){let s={};!t&&a[0]&4194304&&(t=!0,s.ref=l[22],Fe(()=>t=!1)),e.$set(s)},i(l){n||(d(e.$$.fragment,l),n=!0)},o(l){_(e.$$.fragment,l),n=!1},d(l){R(e,l)}}}function g0(i){let e,t,n;function o(l){i[150](l)}let r={$$slots:{default:[H3]},$$scope:{ctx:i}};return i[20].fullscreen!==void 0&&(r.ref=i[20].fullscreen),e=new Ft({props:r}),_e.push(()=>He(e,"ref",o)),{c(){D(e.$$.fragment)},m(l,a){B(e,l,a),n=!0},p(l,a){let s={};a[0]&16384|a[1]&2097152|a[5]&2097152&&(s.$$scope={dirty:a,ctx:l}),!t&&a[0]&1048576&&(t=!0,s.ref=l[20].fullscreen,Fe(()=>t=!1)),e.$set(s)},i(l){n||(d(e.$$.fragment,l),n=!0)},o(l){_(e.$$.fragment,l),n=!1},d(l){R(e,l)}}}function H3(i){let e,t;return e=new Rr({props:{click:i[14],isFullscreen:i[52]}}),{c(){D(e.$$.fragment)},m(n,o){B(e,n,o),t=!0},p(n,o){let r={};o[0]&16384&&(r.click=n[14]),o[1]&2097152&&(r.isFullscreen=n[52]),e.$set(r)},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){_(e.$$.fragment,n),t=!1},d(n){R(e,n)}}}function b0(i){let e,t,n,o;function r(a){i[153](a)}let l={supportLink:i[11],returnFocus:i[15]};return i[21]!==void 0&&(l.ref=i[21]),t=new Mr({props:l}),_e.push(()=>He(t,"ref",r)),{c(){e=T("div"),D(t.$$.fragment),f(e,"class","settings-mobile svelte-1tcstu3")},m(a,s){C(a,e,s),B(t,e,null),o=!0},p(a,s){let u={};s[0]&2048&&(u.supportLink=a[11]),s[0]&32768&&(u.returnFocus=a[15]),!n&&s[0]&2097152&&(n=!0,u.ref=a[21],Fe(()=>n=!1)),t.$set(u)},i(a){o||(d(t.$$.fragment,a),o=!0)},o(a){_(t.$$.fragment,a),o=!1},d(a){a&&k(e),R(t)}}}function z3(i){let e,t,n;function o(l){i[154](l)}let r={};return i[20].interactiveTimeIndicator!==void 0&&(r.ref=i[20].interactiveTimeIndicator),e=new ns({props:r}),_e.push(()=>He(e,"ref",o)),{c(){D(e.$$.fragment)},m(l,a){B(e,l,a),n=!0},p(l,a){let s={};!t&&a[0]&1048576&&(t=!0,s.ref=l[20].interactiveTimeIndicator,Fe(()=>t=!1)),e.$set(s)},i(l){n||(d(e.$$.fragment,l),n=!0)},o(l){_(e.$$.fragment,l),n=!1},d(l){R(e,l)}}}function q3(i){let e,t,n,o,r,l,a,s,u,c,m,h,y,b,S,w,P,v,g=!i[4]&&xm(i),I=i[4]&&i[30]!=="inactive"&&f0(i),A=i[96]&&R3(i),q=!i[4]&&i[25]&&m0(i),K=i[41]&&p0(i);function re(J){i[147](J)}let ae={className:"w-max",disabled:!i[43],$$slots:{default:[O3]},$$scope:{ctx:i}};i[20].episodes!==void 0&&(ae.ref=i[20].episodes),u=new Ft({props:ae}),_e.push(()=>He(u,"ref",re));let H=i[38]&&h0(i),L=i[40]&&g0(i);b=new Ur({props:{isAds:i[4],canRewindLive:i[5],isRewindableLive:i[24]}});let x=i[23]&&b0(i),Q=i[101]&&z3(i);return{c(){g&&g.c(),e=O(),I&&I.c(),t=O(),n=T("div"),o=T("div"),r=T("div"),A&&A.c(),l=O(),q&&q.c(),a=O(),K&&K.c(),s=O(),D(u.$$.fragment),m=O(),H&&H.c(),h=O(),L&&L.c(),y=O(),D(b.$$.fragment),S=O(),x&&x.c(),w=O(),Q&&Q.c(),P=rt(),f(r,"class","controls svelte-1tcstu3"),z(r,"mobile",!0),f(o,"class","controls-wrapper svelte-1tcstu3"),z(o,"fullscreen",i[52]),f(n,"class","wrapper-bottom svelte-1tcstu3"),z(n,"hidden",i[1]),z(n,"controls-hidden",!i[3]),z(n,"no-smooth",i[2]),z(n,"mobile",!0)},m(J,E){g&&g.m(J,E),C(J,e,E),I&&I.m(J,E),C(J,t,E),C(J,n,E),p(n,o),p(o,r),A&&A.m(r,null),p(r,l),q&&q.m(r,null),p(r,a),K&&K.m(r,null),p(r,s),B(u,r,null),p(r,m),H&&H.m(r,null),p(r,h),L&&L.m(r,null),i[151](r),p(o,y),B(b,o,null),i[152](n),C(J,S,E),x&&x.m(J,E),C(J,w,E),Q&&Q.m(J,E),C(J,P,E),v=!0},p(J,E){J[4]?g&&(fe(),_(g,1,1,()=>{g=null}),ce()):g?(g.p(J,E),E[0]&16&&d(g,1)):(g=xm(J),g.c(),d(g,1),g.m(e.parentNode,e)),J[4]&&J[30]!=="inactive"?I?(I.p(J,E),E[0]&1073741840&&d(I,1)):(I=f0(J),I.c(),d(I,1),I.m(t.parentNode,t)):I&&(fe(),_(I,1,1,()=>{I=null}),ce()),J[96]&&A.p(J,E),!J[4]&&J[25]?q?(q.p(J,E),E[0]&33554448&&d(q,1)):(q=m0(J),q.c(),d(q,1),q.m(r,a)):q&&(fe(),_(q,1,1,()=>{q=null}),ce()),J[41]?K?(K.p(J,E),E[1]&1024&&d(K,1)):(K=p0(J),K.c(),d(K,1),K.m(r,s)):K&&(fe(),_(K,1,1,()=>{K=null}),ce());let te={};E[1]&4096&&(te.disabled=!J[43]),E[1]&1073745920|E[2]&1|E[5]&2097152&&(te.$$scope={dirty:E,ctx:J}),!c&&E[0]&1048576&&(c=!0,te.ref=J[20].episodes,Fe(()=>c=!1)),u.$set(te),J[38]?H?(H.p(J,E),E[1]&128&&d(H,1)):(H=h0(J),H.c(),d(H,1),H.m(r,h)):H&&(fe(),_(H,1,1,()=>{H=null}),ce()),J[40]?L?(L.p(J,E),E[1]&512&&d(L,1)):(L=g0(J),L.c(),d(L,1),L.m(r,null)):L&&(fe(),_(L,1,1,()=>{L=null}),ce());let M={};E[0]&16&&(M.isAds=J[4]),E[0]&32&&(M.canRewindLive=J[5]),E[0]&16777216&&(M.isRewindableLive=J[24]),b.$set(M),(!v||E[1]&2097152)&&z(o,"fullscreen",J[52]),(!v||E[0]&2)&&z(n,"hidden",J[1]),(!v||E[0]&8)&&z(n,"controls-hidden",!J[3]),(!v||E[0]&4)&&z(n,"no-smooth",J[2]),J[23]?x?(x.p(J,E),E[0]&8388608&&d(x,1)):(x=b0(J),x.c(),d(x,1),x.m(w.parentNode,w)):x&&(fe(),_(x,1,1,()=>{x=null}),ce()),J[101]&&Q.p(J,E)},i(J){v||(d(g),d(I),d(A),d(q),d(K),d(u.$$.fragment,J),d(H),d(L),d(b.$$.fragment,J),d(x),d(Q),v=!0)},o(J){_(g),_(I),_(A),_(q),_(K),_(u.$$.fragment,J),_(H),_(L),_(b.$$.fragment,J),_(x),_(Q),v=!1},d(J){J&&(k(e),k(t),k(n),k(S),k(w),k(P)),g&&g.d(J),I&&I.d(J),A&&A.d(),q&&q.d(),K&&K.d(),R(u),H&&H.d(),L&&L.d(),i[151](null),R(b),i[152](null),x&&x.d(J),Q&&Q.d(J)}}}function U3(i,e,t){var fo,yn;let n,o,r,l,a,s,u,c,m,h,y,b,S,w,P,v,g,I,A,q,K,re,ae,H,L,x,Q,J,E,te,M,ee,ke,Qe,je,$e,We,{bottomHidden:ve}=e,{bottomNoSmooth:X}=e,{showControls:be}=e,{controlsElementRef:Oe=void 0}=e,{isAds:xe=!1}=e,{canRewindLive:et}=e,{logoClickable:ye}=e,{logoHidden:Be}=e,{logoTargetUrl:Ue=""}=e,{showNextPrevButtons:Xe}=e,{nextButtonActive:Te}=e,{prevButtonActive:Z}=e,{isOneVideoPlaylist:Ce=!1}=e,{supportLink:ue}=e,{customFullscreenSupported:Ie=!0}=e,{playNextVideo:Je}=e,{playPrevVideo:ft}=e,{repeatPlaylist:ct}=e,{toggleFullscreen:dt}=e,{returnFocus:bt}=e,{seekToInteractive:vt}=e,{toggleGraph:we}=e,{playPrevChapter:_t}=e,{onDisabledPlayPrevChapterClick:Mt}=e,{onDisabledSeekToInteractiveClick:Vt}=e,ze=it(),jt=On(),Ht=Ut(),Wt=ze.actions.internal.toggleMuted,$t=ze.actions.internal.togglePlay,me=ze.actions.internal.pause,ht=(fo=ze.callbacks)==null?void 0:fo.onAudioDoesNotExistHint,yt=(yn=ze.callbacks)==null?void 0:yn.onAudioDisabledHint,Re=ze.playerPhase;F(i,Re,ie=>t(126,K=ie));let qe=ze.state.duration$;F(i,qe,ie=>t(62,We=ie));let kt=ze.state.positionWithScrubbing$;F(i,kt,ie=>t(61,$e=ie));let zt=ze.state.playbackState$;F(i,zt,ie=>t(121,h=ie));let ei=ze.state.isAudioAvailable$;F(i,ei,ie=>t(51,y=ie));let mn=ze.state.isAudioDisabled,yi=ze.state.isEnded$;F(i,yi,ie=>t(127,ae=ie));let wi=ze.state.isLive$;F(i,wi,ie=>t(25,v=ie));let Ni=ze.state.muted$;F(i,Ni,ie=>t(54,E=ie));let oi=ze.state.isActiveLive$;F(i,oi,ie=>t(124,w=ie));let ki=ze.state.isRewindableLive$;F(i,ki,ie=>t(24,P=ie));let pn=ze.ui.scrubbingInProgress;F(i,pn,ie=>t(29,re=ie));let Ci=ze.ui.mobileNotReportControlHidden$;F(i,Ci,ie=>t(27,A=ie));let Qi=ze.ui.isPictureInPictureActive$;F(i,Qi,ie=>t(26,I=ie));let fi=ze.ui.pictureInPictureType$;F(i,fi,ie=>t(125,g=ie));let Oi=ze.ui.mobileUnmuteButtonExpanded;F(i,Oi,ie=>t(55,te=ie));let Si=ze.ui.mobileUnmuteButtonVisible;F(i,Si,ie=>t(53,J=ie));let Yi=ze.ui.settingsMenuVisible;F(i,Yi,ie=>t(23,m=ie));let Pi=ze.ui.settingsMenuOpenedByKeyboard;F(i,Pi,ie=>t(120,c=ie));let ci=ze.ui.controls,Bt=ze.actions.internal.getVideoEpisodes(),Rt=ze.webApi.pictureInPictureApi,Ti=ze.state.chromecastState$;F(i,Ti,ie=>t(28,q=ie));let Ii=ze.state.crashed$;F(i,Ii,ie=>t(57,ee=ie));let Zt=ci.disabledControls$;F(i,Zt,ie=>t(128,L=ie));let di=ze.ui.startedByKeyboard$;F(i,di,ie=>t(119,u=ie));let mi=ze.ads.duration;F(i,mi,ie=>t(60,je=ie));let wt=ze.ads.position;F(i,wt,ie=>t(59,Qe=ie));let qt=ze.ads.playbackState;F(i,qt,ie=>t(30,H=ie));let St=ze.ui.isFullscreen;F(i,St,ie=>t(52,Q=ie));let Fi=ze.ui.playerSize;F(i,Fi,ie=>t(123,S=ie));let li=ze.ui.additionalButtons$;F(i,li,ie=>t(56,M=ie));let _n=ze.actions.internal.getVideoElement,hn=ze.actions.internal.replayInteractive,ti=ze.state.isInteractive,Ei=ze.state.isInteractiveTime$;F(i,Ei,ie=>t(122,b=ie));let Zi=ze.state.showInteractiveGraph,Mi=ze.state.showSeekToInteractive,pi=ze.state.showPlayPrevChapter,Xt=ze.state.showInteractiveTimeIndicator,ii=ze.state.graphIsOpened$;F(i,ii,ie=>t(58,ke=ie));let Vi=jt.seekToInteractiveDisabledTooltip$;F(i,Vi,ie=>t(129,x=ie));let ri,on,Ai,gn,bn,ln,Xi,Hi,ni,_i,Li,zi,rn,Bi,qi,Ui,Ze,Ji,Jt,Ke={},sn=(0,v0.throttleFn)(ts,260,{leading:!1}),Ki=()=>ze.actions.internal.toggleChromecast();function xi(){bo({isAudioDisabled:mn,audioDisabledHintCallback:yt,isAudioAvailable:y,audioIsNotExistHintCallback:ht})&&Wt()}function an(){return ut(this,null,function*(){Rt!=null&&Rt.isActive()?yield Rt==null?void 0:Rt.remove():yield Rt==null?void 0:Rt.request()})}function $i(){!mn&&y&&Si.set(!1),xi()}let Tn=Ce?$t:ct,si="",ai=(ie,co)=>{if(!ie){t(45,si=Y("tooltip_live"));return}co===_l.PlaybackState.PAUSED&&t(45,si=Y("tooltip_play"))},en,hi,se=()=>{s&&Mt(ri)},pt=()=>{r&&Vt(on)};function gi(ie){i.$$.not_equal(Ke.volume,ie)&&(Ke.volume=ie,t(20,Ke))}function bi(ie){i.$$.not_equal(Ke.chromecast,ie)&&(Ke.chromecast=ie,t(20,Ke))}function ui(ie){i.$$.not_equal(Ke.pip,ie)&&(Ke.pip=ie,t(20,Ke))}function xt(ie){hi=ie,t(22,hi)}function Hn(ie){i.$$.not_equal(Ke.vkLogo,ie)&&(Ke.vkLogo=ie,t(20,Ke))}function Bn(ie){i.$$.not_equal(Ke.prevButton,ie)&&(Ke.prevButton=ie,t(20,Ke))}function In(ie){i.$$.not_equal(Ke.playButton,ie)&&(Ke.playButton=ie,t(20,Ke))}function Gt(ie){i.$$.not_equal(Ke.replayButton,ie)&&(Ke.replayButton=ie,t(20,Ke))}function Cn(ie){i.$$.not_equal(Ke.nextButton,ie)&&(Ke.nextButton=ie,t(20,Ke))}function Zn(ie){i.$$.not_equal(Ke.playPrevChapterButton,ie)&&(Ke.playPrevChapterButton=ie,t(20,Ke))}function zn(ie){i.$$.not_equal(Ke.interactiveGraphButton,ie)&&(Ke.interactiveGraphButton=ie,t(20,Ke))}function qn(ie){i.$$.not_equal(Ke.seekToInteractiveButton,ie)&&(Ke.seekToInteractiveButton=ie,t(20,Ke))}function Rn(ie){i.$$.not_equal(Ke.volume,ie)&&(Ke.volume=ie,t(20,Ke))}function un(ie){i.$$.not_equal(Ke.playButton,ie)&&(Ke.playButton=ie,t(20,Ke))}function Un(ie){i.$$.not_equal(Ke.replayButton,ie)&&(Ke.replayButton=ie,t(20,Ke))}function Kn(ie){i.$$.not_equal(Ke.liveButton,ie)&&(Ke.liveButton=ie,t(20,Ke))}function ne(ie){i.$$.not_equal(Ke.time,ie)&&(Ke.time=ie,t(20,Ke))}function Pt(ie){i.$$.not_equal(Ke.episodes,ie)&&(Ke.episodes=ie,t(20,Ke))}function En(ie){hi=ie,t(22,hi)}function vn(ie){i.$$.not_equal(Ke.settings,ie)&&(Ke.settings=ie,t(20,Ke))}function Mn(ie){i.$$.not_equal(Ke.fullscreen,ie)&&(Ke.fullscreen=ie,t(20,Ke))}function Sn(ie){_e[ie?"unshift":"push"](()=>{Ji=ie,t(44,Ji)})}function ao(ie){_e[ie?"unshift":"push"](()=>{Oe=ie,t(0,Oe)})}function uo(ie){en=ie,t(21,en)}function Co(ie){i.$$.not_equal(Ke.interactiveTimeIndicator,ie)&&(Ke.interactiveTimeIndicator=ie,t(20,Ke))}i.$$set=ie=>{"bottomHidden"in ie&&t(1,ve=ie.bottomHidden),"bottomNoSmooth"in ie&&t(2,X=ie.bottomNoSmooth),"showControls"in ie&&t(3,be=ie.showControls),"controlsElementRef"in ie&&t(0,Oe=ie.controlsElementRef),"isAds"in ie&&t(4,xe=ie.isAds),"canRewindLive"in ie&&t(5,et=ie.canRewindLive),"logoClickable"in ie&&t(6,ye=ie.logoClickable),"logoHidden"in ie&&t(110,Be=ie.logoHidden),"logoTargetUrl"in ie&&t(7,Ue=ie.logoTargetUrl),"showNextPrevButtons"in ie&&t(8,Xe=ie.showNextPrevButtons),"nextButtonActive"in ie&&t(9,Te=ie.nextButtonActive),"prevButtonActive"in ie&&t(10,Z=ie.prevButtonActive),"isOneVideoPlaylist"in ie&&t(111,Ce=ie.isOneVideoPlaylist),"supportLink"in ie&&t(11,ue=ie.supportLink),"customFullscreenSupported"in ie&&t(112,Ie=ie.customFullscreenSupported),"playNextVideo"in ie&&t(12,Je=ie.playNextVideo),"playPrevVideo"in ie&&t(13,ft=ie.playPrevVideo),"repeatPlaylist"in ie&&t(113,ct=ie.repeatPlaylist),"toggleFullscreen"in ie&&t(14,dt=ie.toggleFullscreen),"returnFocus"in ie&&t(15,bt=ie.returnFocus),"seekToInteractive"in ie&&t(16,vt=ie.seekToInteractive),"toggleGraph"in ie&&t(17,we=ie.toggleGraph),"playPrevChapter"in ie&&t(18,_t=ie.playPrevChapter),"onDisabledPlayPrevChapterClick"in ie&&t(114,Mt=ie.onDisabledPlayPrevChapterClick),"onDisabledSeekToInteractiveClick"in ie&&t(115,Vt=ie.onDisabledSeekToInteractiveClick)},i.$$.update=()=>{if(i.$$.dirty[4]&32)e:on=Y(x);if(i.$$.dirty[4]&16)e:t(118,n=L.has("EPISODE_BUTTON"));if(i.$$.dirty[4]&16)e:t(50,o=L.has("GRAPH_BUTTON"));if(i.$$.dirty[4]&16)e:t(46,r=L.has("SEEK_TO_INTERACTIVE_BUTTON"));if(i.$$.dirty[4]&16)e:t(49,l=L.has("PLAY_BUTTON"));if(i.$$.dirty[4]&16)e:t(48,a=L.has("REPLAY_BUTTON"));if(i.$$.dirty[4]&16)e:t(47,s=L.has("PLAY_PREV_CHAPTER_BUTTON"));if(i.$$.dirty[3]&268435456)e:t(31,Ai=h===_l.PlaybackState.PLAYING);if(i.$$.dirty[0]&1073741824)e:t(32,gn=H==="paused");if(i.$$.dirty[0]&16|i.$$.dirty[4]&8)e:t(33,bn=ae&&!xe&&!ti);if(i.$$.dirty[0]&16|i.$$.dirty[4]&8)e:t(34,ln=!ae||xe);if(i.$$.dirty[3]&1073741824)e:t(116,Xi=S.width>300);if(i.$$.dirty[3]&1073741824)e:t(35,Hi=S.width>400);if(i.$$.dirty[0]&536870912)e:t(117,ni=re);if(i.$$.dirty[0]&469762048|i.$$.dirty[4]&2)e:t(36,_i=q!==_l.ChromecastState.NOT_AVAILABLE&&!(I&&g===1)&&!A&&!ti);if(i.$$.dirty[0]&402653184|i.$$.dirty[3]&16777216|i.$$.dirty[4]&6)e:{let ie=K==="waitingLive";t(37,Li=!!Rt&&q!==_l.ChromecastState.CONNECTED&&!A&&(g===1&&ie||!ie)&&!ni&&!ti)}if(i.$$.dirty[3]&16777216)e:t(38,zi=!ni);if(i.$$.dirty[3]&1073872896)e:t(39,rn=!Be&&S.width>350);if(i.$$.dirty[0]&67108864|i.$$.dirty[3]&17301504|i.$$.dirty[4]&2)e:t(40,Bi=Ht.features.fullscreen&&!(I&&g===1)&&(ti?Ie:!0)&&!ni);if(i.$$.dirty[0]&33554448|i.$$.dirty[3]&1090519040)e:t(41,qi=(!v||xe)&&S.width>260&&!ni&&!(Ht.features.interactiveHideTime&&ti));if(i.$$.dirty[0]&8388616)e:t(42,Ui=m||be);if(i.$$.dirty[0]&33554448|i.$$.dirty[3]&58720256)e:t(43,Ze=!xe&&!v&&!!(Bt!=null&&Bt.length)&&Xi&&!n&&!ni);if(i.$$.dirty[0]&16777216|i.$$.dirty[4]&1)e:t(19,Jt=!P||w);if(i.$$.dirty[0]&1048584|i.$$.dirty[3]&1610612736)e:sn(_n(),ci,Ke,be);if(i.$$.dirty[0]&524288|i.$$.dirty[3]&268435456)e:ai(Jt,h);if(i.$$.dirty[0]&12582912)e:sl(hi,m,Pi);if(i.$$.dirty[0]&10485760|i.$$.dirty[3]&134217728)e:zo(en,m,c);if(i.$$.dirty[0]&1048576|i.$$.dirty[3]&67108864)e:is(di,u,Ke.playButton)};e:ri=Y(ze.state.playPrevChapterDisabledTooltip);return[Oe,ve,X,be,xe,et,ye,Ue,Xe,Te,Z,ue,Je,ft,dt,bt,vt,we,_t,Jt,Ke,en,hi,m,P,v,I,A,q,re,H,Ai,gn,bn,ln,Hi,_i,Li,zi,rn,Bi,qi,Ui,Ze,Ji,si,r,s,a,l,o,y,Q,J,E,te,M,ee,ke,Qe,je,$e,We,$t,me,Re,qe,kt,zt,ei,mn,yi,wi,Ni,oi,ki,pn,Ci,Qi,fi,Oi,Si,Yi,Pi,Bt,Ti,Ii,Zt,di,mi,wt,qt,St,Fi,li,hn,ti,Ei,Zi,Mi,pi,Xt,ii,Vi,Ki,an,$i,Tn,se,pt,Be,Ce,Ie,ct,Mt,Vt,Xi,ni,n,u,c,h,b,S,w,g,K,ae,L,x,gi,bi,ui,xt,Hn,Bn,In,Gt,Cn,Zn,zn,qn,Rn,un,Un,Kn,ne,Pt,En,vn,Mn,Sn,ao,uo,Co]}var Wu=class extends j{constructor(e){super(),W(this,e,U3,q3,U,{bottomHidden:1,bottomNoSmooth:2,showControls:3,controlsElementRef:0,isAds:4,canRewindLive:5,logoClickable:6,logoHidden:110,logoTargetUrl:7,showNextPrevButtons:8,nextButtonActive:9,prevButtonActive:10,isOneVideoPlaylist:111,supportLink:11,customFullscreenSupported:112,playNextVideo:12,playPrevVideo:13,repeatPlaylist:113,toggleFullscreen:14,returnFocus:15,seekToInteractive:16,toggleGraph:17,playPrevChapter:18,onDisabledPlayPrevChapterClick:114,onDisabledSeekToInteractiveClick:115},V3,[-1,-1,-1,-1,-1,-1])}},y0=Wu;function K3(i){let e,t,n;function o(l){i[28](l)}let r={bottomHidden:i[1],bottomNoSmooth:i[2],showControls:i[3],isAds:i[4],canRewindLive:i[5],logoClickable:i[6],logoHidden:i[7],logoTargetUrl:i[8],showNextPrevButtons:i[9],nextButtonActive:i[10],prevButtonActive:i[11],isOneVideoPlaylist:i[12],supportLink:i[13],customFullscreenSupported:i[14],playNextVideo:i[15],playPrevVideo:i[16],repeatPlaylist:i[17],toggleFullscreen:i[18],returnFocus:i[19],seekToInteractive:i[20],toggleGraph:i[21],playPrevChapter:i[22]};return i[0]!==void 0&&(r.controlsElementRef=i[0]),e=new Km({props:r}),_e.push(()=>He(e,"controlsElementRef",o)),{c(){D(e.$$.fragment)},m(l,a){B(e,l,a),n=!0},p(l,a){let s={};a&2&&(s.bottomHidden=l[1]),a&4&&(s.bottomNoSmooth=l[2]),a&8&&(s.showControls=l[3]),a&16&&(s.isAds=l[4]),a&32&&(s.canRewindLive=l[5]),a&64&&(s.logoClickable=l[6]),a&128&&(s.logoHidden=l[7]),a&256&&(s.logoTargetUrl=l[8]),a&512&&(s.showNextPrevButtons=l[9]),a&1024&&(s.nextButtonActive=l[10]),a&2048&&(s.prevButtonActive=l[11]),a&4096&&(s.isOneVideoPlaylist=l[12]),a&8192&&(s.supportLink=l[13]),a&16384&&(s.customFullscreenSupported=l[14]),a&32768&&(s.playNextVideo=l[15]),a&65536&&(s.playPrevVideo=l[16]),a&131072&&(s.repeatPlaylist=l[17]),a&262144&&(s.toggleFullscreen=l[18]),a&524288&&(s.returnFocus=l[19]),a&1048576&&(s.seekToInteractive=l[20]),a&2097152&&(s.toggleGraph=l[21]),a&4194304&&(s.playPrevChapter=l[22]),!t&&a&1&&(t=!0,s.controlsElementRef=l[0],Fe(()=>t=!1)),e.$set(s)},i(l){n||(d(e.$$.fragment,l),n=!0)},o(l){_(e.$$.fragment,l),n=!1},d(l){R(e,l)}}}function j3(i){let e,t,n;function o(l){i[27](l)}let r={bottomHidden:i[1],bottomNoSmooth:i[2],showControls:i[3],isAds:i[4],canRewindLive:i[5],logoClickable:i[6],logoHidden:i[7],logoTargetUrl:i[8],showNextPrevButtons:i[9],nextButtonActive:i[10],prevButtonActive:i[11],isOneVideoPlaylist:i[12],supportLink:i[13],customFullscreenSupported:i[14],playNextVideo:i[15],playPrevVideo:i[16],repeatPlaylist:i[17],toggleFullscreen:i[18],returnFocus:i[19],seekToInteractive:i[20],toggleGraph:i[21],playPrevChapter:i[22],onDisabledPlayPrevChapterClick:i[23],onDisabledSeekToInteractiveClick:i[24]};return i[0]!==void 0&&(r.controlsElementRef=i[0]),e=new y0({props:r}),_e.push(()=>He(e,"controlsElementRef",o)),{c(){D(e.$$.fragment)},m(l,a){B(e,l,a),n=!0},p(l,a){let s={};a&2&&(s.bottomHidden=l[1]),a&4&&(s.bottomNoSmooth=l[2]),a&8&&(s.showControls=l[3]),a&16&&(s.isAds=l[4]),a&32&&(s.canRewindLive=l[5]),a&64&&(s.logoClickable=l[6]),a&128&&(s.logoHidden=l[7]),a&256&&(s.logoTargetUrl=l[8]),a&512&&(s.showNextPrevButtons=l[9]),a&1024&&(s.nextButtonActive=l[10]),a&2048&&(s.prevButtonActive=l[11]),a&4096&&(s.isOneVideoPlaylist=l[12]),a&8192&&(s.supportLink=l[13]),a&16384&&(s.customFullscreenSupported=l[14]),a&32768&&(s.playNextVideo=l[15]),a&65536&&(s.playPrevVideo=l[16]),a&131072&&(s.repeatPlaylist=l[17]),a&262144&&(s.toggleFullscreen=l[18]),a&524288&&(s.returnFocus=l[19]),a&1048576&&(s.seekToInteractive=l[20]),a&2097152&&(s.toggleGraph=l[21]),a&4194304&&(s.playPrevChapter=l[22]),a&8388608&&(s.onDisabledPlayPrevChapterClick=l[23]),a&16777216&&(s.onDisabledSeekToInteractiveClick=l[24]),!t&&a&1&&(t=!0,s.controlsElementRef=l[0],Fe(()=>t=!1)),e.$set(s)},i(l){n||(d(e.$$.fragment,l),n=!0)},o(l){_(e.$$.fragment,l),n=!1},d(l){R(e,l)}}}function W3(i){let e,t,n,o,r=[j3,K3],l=[];function a(s,u){return s[25]?0:1}return e=a(i,-1),t=l[e]=r[e](i),{c(){t.c(),n=rt()},m(s,u){l[e].m(s,u),C(s,n,u),o=!0},p(s,[u]){let c=e;e=a(s,u),e===c?l[e].p(s,u):(fe(),_(l[c],1,1,()=>{l[c]=null}),ce(),t=l[e],t?t.p(s,u):(t=l[e]=r[e](s),t.c()),d(t,1),t.m(n.parentNode,n))},i(s){o||(d(t),o=!0)},o(s){_(t),o=!1},d(s){s&&k(n),l[e].d(s)}}}function G3(i,e,t){let n,{bottomHidden:o}=e,{bottomNoSmooth:r=!1}=e,{showControls:l}=e,{controlsElementRef:a=void 0}=e,{isAds:s=!1}=e,{canRewindLive:u}=e,{logoClickable:c}=e,{logoHidden:m}=e,{logoTargetUrl:h=""}=e,{showNextPrevButtons:y}=e,{nextButtonActive:b}=e,{prevButtonActive:S}=e,{isOneVideoPlaylist:w=!1}=e,{supportLink:P}=e,{customFullscreenSupported:v=!0}=e,{playNextVideo:g}=e,{playPrevVideo:I}=e,{repeatPlaylist:A}=e,{toggleFullscreen:q}=e,{returnFocus:K=os.noop}=e,{seekToInteractive:re}=e,{toggleGraph:ae}=e,{playPrevChapter:H}=e,{onDisabledPlayPrevChapterClick:L=os.noop}=e,{onDisabledSeekToInteractiveClick:x=os.noop}=e,J=it().ui.isMobile;F(i,J,M=>t(25,n=M));function E(M){a=M,t(0,a)}function te(M){a=M,t(0,a)}return i.$$set=M=>{"bottomHidden"in M&&t(1,o=M.bottomHidden),"bottomNoSmooth"in M&&t(2,r=M.bottomNoSmooth),"showControls"in M&&t(3,l=M.showControls),"controlsElementRef"in M&&t(0,a=M.controlsElementRef),"isAds"in M&&t(4,s=M.isAds),"canRewindLive"in M&&t(5,u=M.canRewindLive),"logoClickable"in M&&t(6,c=M.logoClickable),"logoHidden"in M&&t(7,m=M.logoHidden),"logoTargetUrl"in M&&t(8,h=M.logoTargetUrl),"showNextPrevButtons"in M&&t(9,y=M.showNextPrevButtons),"nextButtonActive"in M&&t(10,b=M.nextButtonActive),"prevButtonActive"in M&&t(11,S=M.prevButtonActive),"isOneVideoPlaylist"in M&&t(12,w=M.isOneVideoPlaylist),"supportLink"in M&&t(13,P=M.supportLink),"customFullscreenSupported"in M&&t(14,v=M.customFullscreenSupported),"playNextVideo"in M&&t(15,g=M.playNextVideo),"playPrevVideo"in M&&t(16,I=M.playPrevVideo),"repeatPlaylist"in M&&t(17,A=M.repeatPlaylist),"toggleFullscreen"in M&&t(18,q=M.toggleFullscreen),"returnFocus"in M&&t(19,K=M.returnFocus),"seekToInteractive"in M&&t(20,re=M.seekToInteractive),"toggleGraph"in M&&t(21,ae=M.toggleGraph),"playPrevChapter"in M&&t(22,H=M.playPrevChapter),"onDisabledPlayPrevChapterClick"in M&&t(23,L=M.onDisabledPlayPrevChapterClick),"onDisabledSeekToInteractiveClick"in M&&t(24,x=M.onDisabledSeekToInteractiveClick)},[a,o,r,l,s,u,c,m,h,y,b,S,w,P,v,g,I,A,q,K,re,ae,H,L,x,n,J,E,te]}var Gu=class extends j{constructor(e){super(),W(this,e,G3,W3,U,{bottomHidden:1,bottomNoSmooth:2,showControls:3,controlsElementRef:0,isAds:4,canRewindLive:5,logoClickable:6,logoHidden:7,logoTargetUrl:8,showNextPrevButtons:9,nextButtonActive:10,prevButtonActive:11,isOneVideoPlaylist:12,supportLink:13,customFullscreenSupported:14,playNextVideo:15,playPrevVideo:16,repeatPlaylist:17,toggleFullscreen:18,returnFocus:19,seekToInteractive:20,toggleGraph:21,playPrevChapter:22,onDisabledPlayPrevChapterClick:23,onDisabledSeekToInteractiveClick:24})}},ls=Gu;function Q3(i){let e,t,n,o,r,l,a,s,u,c,m,h,y,b,S=i[2].default,w=Ee(S,i,i[1],null),P=[{xmlns:"http://www.w3.org/2000/svg"},{width:"48"},{height:"51"},{fill:"none"},{"aria-hidden":"true"},{"data-testid":"seek-icon"},{role:"img"},i[0]],v={};for(let g=0;g<P.length;g+=1)v=oe(v,P[g]);return{c(){e=N("svg"),w&&w.c(),t=N("g"),n=N("path"),o=N("path"),r=N("defs"),l=N("filter"),a=N("feFlood"),s=N("feColorMatrix"),u=N("feOffset"),c=N("feGaussianBlur"),m=N("feColorMatrix"),h=N("feBlend"),y=N("feBlend"),f(n,"fill","#fff"),f(n,"d","M15.537 10.534a1.157 1.157 0 0 0 .003 1.96l7.658 4.823c.78.491 1.798-.065 1.798-.981v-3.3c7.265.512 13 6.568 13 13.964 0 7.732-6.268 14-14 14-5.98 0-11.088-3.75-13.093-9.032a1.5 1.5 0 0 0-2.805 1.064C10.531 39.441 16.73 44 23.996 44c9.39 0 17-7.611 17-17 0-9.053-7.076-16.453-16-16.971V6.664c0-.918-1.021-1.473-1.8-.98z"),f(o,"stroke","#000"),f(o,"stroke-opacity",".12"),f(o,"stroke-width",".5"),f(o,"d","M15.404 10.322a1.407 1.407 0 0 0 .003 2.384l7.657 4.823c.944.594 2.182-.076 2.182-1.193v-3.03c7.008.631 12.5 6.522 12.5 13.694 0 7.594-6.156 13.75-13.75 13.75-5.873 0-10.89-3.683-12.86-8.871a1.75 1.75 0 1 0-3.272 1.242c2.469 6.503 8.758 11.129 16.132 11.129 9.527 0 17.25-7.723 17.25-17.25 0-9.107-7.056-16.565-16-17.205V6.664c0-1.118-1.241-1.788-2.184-1.19z"),f(t,"filter","url(#a)"),f(a,"flood-opacity","0"),f(a,"result","BackgroundImageFix"),f(s,"in","SourceAlpha"),f(s,"result","hardAlpha"),f(s,"values","0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0"),f(c,"stdDeviation","2.5"),f(m,"values","0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.16 0"),f(h,"in2","BackgroundImageFix"),f(h,"result","effect1_dropShadow_2260_100684"),f(y,"in","SourceGraphic"),f(y,"in2","effect1_dropShadow_2260_100684"),f(y,"result","shape"),f(l,"id","a"),f(l,"width","43.996"),f(l,"height","49.5"),f(l,"x","2.5"),f(l,"y","0"),f(l,"color-interpolation-filters","sRGB"),f(l,"filterUnits","userSpaceOnUse"),ge(e,v)},m(g,I){C(g,e,I),w&&w.m(e,null),p(e,t),p(t,n),p(t,o),p(e,r),p(r,l),p(l,a),p(l,s),p(l,u),p(l,c),p(l,m),p(l,h),p(l,y),b=!0},p(g,[I]){w&&w.p&&(!b||I&2)&&Ve(w,S,g,g[1],b?Me(S,g[1],I,null):Ae(g[1]),null),ge(e,v=Le(P,[{xmlns:"http://www.w3.org/2000/svg"},{width:"48"},{height:"51"},{fill:"none"},{"aria-hidden":"true"},{"data-testid":"seek-icon"},{role:"img"},I&1&&g[0]]))},i(g){b||(d(w,g),b=!0)},o(g){_(w,g),b=!1},d(g){g&&k(e),w&&w.d(g)}}}function Y3(i,e,t){let{$$slots:n={},$$scope:o}=e;return i.$$set=r=>{t(0,e=oe(oe({},e),he(r))),"$$scope"in r&&t(1,o=r.$$scope)},e=he(e),[e,o,n]}var Qu=class extends j{constructor(e){super(),W(this,e,Y3,Q3,U,{})}},w0=Qu;function Z3(i){let e,t;return e=new w0({props:{style:i[0]}}),{c(){D(e.$$.fragment)},m(n,o){B(e,n,o),t=!0},p(n,[o]){let r={};o&1&&(r.style=n[0]),e.$set(r)},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){_(e.$$.fragment,n),t=!1},d(n){R(e,n)}}}function X3(i,e,t){let n,{reversed:o=!1}=e;return i.$$set=r=>{"reversed"in r&&t(1,o=r.reversed)},i.$$.update=()=>{if(i.$$.dirty&2)e:t(0,n=o?"transform: scaleX(-1);":void 0)},[n,o]}var Yu=class extends j{constructor(e){super(),W(this,e,X3,Z3,U,{reversed:1})}},k0=Yu;function J3(i){let e,t,n,o,r,l,a,s,u,c,m,h,y,b,S,w,P=i[2].default,v=Ee(P,i,i[1],null),g=[{xmlns:"http://www.w3.org/2000/svg"},{width:"48"},{height:"48"},{fill:"none"},{"aria-hidden":"true"},{"data-testid":"subtitles-on-icon"},{role:"img"},i[0]],I={};for(let A=0;A<g.length;A+=1)I=oe(I,g[A]);return{c(){e=N("svg"),v&&v.c(),t=N("g"),n=N("path"),o=N("path"),r=N("defs"),l=N("clipPath"),a=N("path"),s=N("filter"),u=N("feFlood"),c=N("feColorMatrix"),m=N("feOffset"),h=N("feGaussianBlur"),y=N("feColorMatrix"),b=N("feBlend"),S=N("feBlend"),f(n,"fill","#fff"),f(n,"fill-rule","evenodd"),f(n,"d","M28.167 7h-8.334c-2.463 0-4.404 0-5.966.128-1.594.13-2.925.4-4.134 1.016a10.5 10.5 0 0 0-4.589 4.59c-.616 1.208-.886 2.54-1.016 4.133C4 18.429 4 20.37 4 22.833v2.334c0 2.463 0 4.404.128 5.966.13 1.594.4 2.925 1.016 4.134a10.5 10.5 0 0 0 4.59 4.589c1.208.616 2.54.886 4.133 1.016 1.562.128 3.502.128 5.966.128h8.334c2.463 0 4.404 0 5.966-.128 1.594-.13 2.925-.4 4.134-1.016a10.5 10.5 0 0 0 4.589-4.59c.616-1.208.886-2.54 1.016-4.133.128-1.562.128-3.502.128-5.966v-2.334c0-2.463 0-4.404-.128-5.966-.13-1.594-.4-2.925-1.016-4.134a10.5 10.5 0 0 0-4.59-4.589c-1.208-.616-2.54-.886-4.133-1.016C32.571 7 30.63 7 28.167 7M13.5 28a1.5 1.5 0 0 0 0 3h11a1.5 1.5 0 0 0 0-3zM12 22a1.5 1.5 0 0 1 1.5-1.5h4a1.5 1.5 0 0 1 0 3h-4A1.5 1.5 0 0 1 12 22m18.5 6a1.5 1.5 0 0 0 0 3h4a1.5 1.5 0 0 0 0-3zM22 22a1.5 1.5 0 0 1 1.5-1.5h11a1.5 1.5 0 0 1 0 3h-11A1.5 1.5 0 0 1 22 22"),f(n,"clip-rule","evenodd"),f(o,"stroke","#000"),f(o,"stroke-opacity",".12"),f(o,"stroke-width",".5"),f(o,"d","M28.167 6.75h-8.344c-2.455 0-4.405 0-5.977.128-1.609.132-2.976.407-4.226 1.044a10.75 10.75 0 0 0-4.698 4.698c-.637 1.25-.912 2.617-1.044 4.226-.128 1.572-.128 3.522-.128 5.977v2.354c0 2.455 0 4.405.128 5.977.132 1.609.407 2.976 1.044 4.226a10.75 10.75 0 0 0 4.698 4.698c1.25.637 2.617.912 4.226 1.044 1.572.128 3.522.128 5.977.128h8.354c2.455 0 4.404 0 5.977-.128 1.609-.132 2.976-.407 4.226-1.044a10.75 10.75 0 0 0 4.698-4.698c.637-1.25.912-2.617 1.044-4.226.128-1.573.128-3.522.128-5.977v-2.354c0-2.455 0-4.405-.128-5.977-.132-1.609-.407-2.976-1.044-4.226a10.75 10.75 0 0 0-4.698-4.698c-1.25-.637-2.617-.912-4.226-1.044-1.572-.128-3.522-.128-5.977-.128zM12.25 29.5c0-.69.56-1.25 1.25-1.25h11a1.25 1.25 0 1 1 0 2.5h-11c-.69 0-1.25-.56-1.25-1.25Zm0-7.5c0-.69.56-1.25 1.25-1.25h4a1.25 1.25 0 1 1 0 2.5h-4c-.69 0-1.25-.56-1.25-1.25Zm17 7.5c0-.69.56-1.25 1.25-1.25h4a1.25 1.25 0 1 1 0 2.5h-4c-.69 0-1.25-.56-1.25-1.25Zm-7-7.5c0-.69.56-1.25 1.25-1.25h11a1.25 1.25 0 1 1 0 2.5h-11c-.69 0-1.25-.56-1.25-1.25Z"),f(t,"clip-path","url(#c)"),f(t,"filter","url(#a)"),f(a,"fill","#fff"),f(a,"d","M0 0h48v48H0z"),f(l,"id","c"),f(u,"flood-opacity","0"),f(u,"result","BackgroundImageFix"),f(c,"in","SourceAlpha"),f(c,"result","hardAlpha"),f(c,"values","0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0"),f(h,"stdDeviation","2.5"),f(y,"values","0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.16 0"),f(b,"in2","BackgroundImageFix"),f(b,"result","effect1_dropShadow_2260_104204"),f(S,"in","SourceGraphic"),f(S,"in2","effect1_dropShadow_2260_104204"),f(S,"result","shape"),f(s,"id","a"),f(s,"width","51"),f(s,"height","45"),f(s,"x","-1.5"),f(s,"y","1.5"),f(s,"color-interpolation-filters","sRGB"),f(s,"filterUnits","userSpaceOnUse"),ge(e,I)},m(A,q){C(A,e,q),v&&v.m(e,null),p(e,t),p(t,n),p(t,o),p(e,r),p(r,l),p(l,a),p(r,s),p(s,u),p(s,c),p(s,m),p(s,h),p(s,y),p(s,b),p(s,S),w=!0},p(A,[q]){v&&v.p&&(!w||q&2)&&Ve(v,P,A,A[1],w?Me(P,A[1],q,null):Ae(A[1]),null),ge(e,I=Le(g,[{xmlns:"http://www.w3.org/2000/svg"},{width:"48"},{height:"48"},{fill:"none"},{"aria-hidden":"true"},{"data-testid":"subtitles-on-icon"},{role:"img"},q&1&&A[0]]))},i(A){w||(d(v,A),w=!0)},o(A){_(v,A),w=!1},d(A){A&&k(e),v&&v.d(A)}}}function x3(i,e,t){let{$$slots:n={},$$scope:o}=e;return i.$$set=r=>{t(0,e=oe(oe({},e),he(r))),"$$scope"in r&&t(1,o=r.$$scope)},e=he(e),[e,o,n]}var Zu=class extends j{constructor(e){super(),W(this,e,x3,J3,U,{})}},C0=Zu;function $3(i){let e,t,n,o,r,l,a,s,u,c,m,h,y,b,S,w,P,v=i[2].default,g=Ee(v,i,i[1],null),I=[{xmlns:"http://www.w3.org/2000/svg"},{width:"48"},{height:"48"},{fill:"none"},{"aria-hidden":"true"},{"data-testid":"subtitles-off-icon"},{role:"img"},i[0]],A={};for(let q=0;q<I.length;q+=1)A=oe(A,I[q]);return{c(){e=N("svg"),g&&g.c(),t=N("g"),n=N("path"),o=N("path"),r=N("path"),l=N("defs"),a=N("clipPath"),s=N("path"),u=N("filter"),c=N("feFlood"),m=N("feColorMatrix"),h=N("feOffset"),y=N("feGaussianBlur"),b=N("feColorMatrix"),S=N("feBlend"),w=N("feBlend"),f(n,"fill","#fff"),f(n,"fill-rule","evenodd"),f(n,"d","M6.56 4.44a1.5 1.5 0 1 0-2.12 2.12l3.088 3.09a10.5 10.5 0 0 0-2.384 3.083c-.616 1.21-.886 2.54-1.016 4.134C4 18.429 4 20.369 4 22.833v2.334c0 2.463 0 4.404.128 5.966.13 1.594.4 2.925 1.016 4.134a10.5 10.5 0 0 0 4.59 4.589c1.208.616 2.54.886 4.133 1.016 1.562.128 3.502.128 5.966.128h8.334c2.463 0 4.404 0 5.966-.128 1.437-.117 2.66-.348 3.773-.844l3.533 3.533a1.5 1.5 0 0 0 2.122-2.122l-37-37ZM13.5 28a1.5 1.5 0 0 0 0 3h11a1.5 1.5 0 0 0 0-3zM12 22a1.5 1.5 0 0 1 1.5-1.5h4a1.5 1.5 0 0 1 0 3h-4A1.5 1.5 0 0 1 12 22"),f(n,"clip-rule","evenodd"),f(o,"fill","#fff"),f(o,"d","M34.5 23.5h-4.639l12.552 12.551q.237-.381.443-.784c.616-1.21.886-2.54 1.016-4.134.128-1.562.128-3.502.128-5.966v-2.334c0-2.463 0-4.404-.128-5.966-.13-1.594-.4-2.925-1.016-4.134a10.5 10.5 0 0 0-4.59-4.589c-1.208-.616-2.54-.886-4.133-1.016C32.571 7 30.63 7 28.167 7h-8.334c-2.463 0-4.404 0-5.966.128l-.347.03L26.86 20.5h7.64a1.5 1.5 0 0 1 0 3"),f(r,"stroke","#000"),f(r,"stroke-opacity",".12"),f(r,"stroke-width",".5"),f(r,"d","M29.861 23.25h-.603l.427.427 12.55 12.551.223.223.167-.268q.243-.39.453-.803c.637-1.25.912-2.617 1.044-4.226.128-1.573.128-3.522.128-5.977v-2.354c0-2.455 0-4.405-.128-5.977-.132-1.609-.407-2.976-1.044-4.226a10.75 10.75 0 0 0-4.698-4.698c-1.25-.637-2.617-.912-4.226-1.044-1.572-.128-3.522-.128-5.977-.128h-8.354c-2.455 0-4.405 0-5.977.128q-.177.014-.35.032l-.527.051.374.374 13.341 13.342.074.073H34.5a1.25 1.25 0 1 1 0 2.5zM6.737 4.263a1.75 1.75 0 0 0-2.474 2.474l2.903 2.904a10.8 10.8 0 0 0-2.244 2.979c-.637 1.25-.912 2.617-1.044 4.226-.128 1.572-.128 3.522-.128 5.977v2.354c0 2.455 0 4.405.128 5.977.132 1.609.407 2.976 1.044 4.226a10.75 10.75 0 0 0 4.698 4.698c1.25.637 2.617.912 4.226 1.044 1.572.128 3.522.128 5.977.128h8.354c2.455 0 4.404 0 5.977-.128 1.384-.114 2.59-.333 3.696-.797l3.413 3.412a1.75 1.75 0 1 0 2.474-2.474zM12.25 29.5c0-.69.56-1.25 1.25-1.25h11a1.25 1.25 0 1 1 0 2.5h-11c-.69 0-1.25-.56-1.25-1.25Zm0-7.5c0-.69.56-1.25 1.25-1.25h4a1.25 1.25 0 1 1 0 2.5h-4c-.69 0-1.25-.56-1.25-1.25Z"),f(t,"clip-path","url(#c)"),f(t,"filter","url(#a)"),f(s,"fill","#fff"),f(s,"d","M0 0h48v48H0z"),f(a,"id","c"),f(c,"flood-opacity","0"),f(c,"result","BackgroundImageFix"),f(m,"in","SourceAlpha"),f(m,"result","hardAlpha"),f(m,"values","0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0"),f(y,"stdDeviation","2.5"),f(b,"values","0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.16 0"),f(S,"in2","BackgroundImageFix"),f(S,"result","effect1_dropShadow_2260_104293"),f(w,"in","SourceGraphic"),f(w,"in2","effect1_dropShadow_2260_104293"),f(w,"result","shape"),f(u,"id","a"),f(u,"width","51"),f(u,"height","51"),f(u,"x","-1.5"),f(u,"y","-1.5"),f(u,"color-interpolation-filters","sRGB"),f(u,"filterUnits","userSpaceOnUse"),ge(e,A)},m(q,K){C(q,e,K),g&&g.m(e,null),p(e,t),p(t,n),p(t,o),p(t,r),p(e,l),p(l,a),p(a,s),p(l,u),p(u,c),p(u,m),p(u,h),p(u,y),p(u,b),p(u,S),p(u,w),P=!0},p(q,[K]){g&&g.p&&(!P||K&2)&&Ve(g,v,q,q[1],P?Me(v,q[1],K,null):Ae(q[1]),null),ge(e,A=Le(I,[{xmlns:"http://www.w3.org/2000/svg"},{width:"48"},{height:"48"},{fill:"none"},{"aria-hidden":"true"},{"data-testid":"subtitles-off-icon"},{role:"img"},K&1&&q[0]]))},i(q){P||(d(g,q),P=!0)},o(q){_(g,q),P=!1},d(q){q&&k(e),g&&g.d(q)}}}function e5(i,e,t){let{$$slots:n={},$$scope:o}=e;return i.$$set=r=>{t(0,e=oe(oe({},e),he(r))),"$$scope"in r&&t(1,o=r.$$scope)},e=he(e),[e,o,n]}var Xu=class extends j{constructor(e){super(),W(this,e,e5,$3,U,{})}},S0=Xu;function t5(i){let e,t;return e=new C0({}),{c(){D(e.$$.fragment)},m(n,o){B(e,n,o),t=!0},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){_(e.$$.fragment,n),t=!1},d(n){R(e,n)}}}function i5(i){let e,t;return e=new S0({}),{c(){D(e.$$.fragment)},m(n,o){B(e,n,o),t=!0},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){_(e.$$.fragment,n),t=!1},d(n){R(e,n)}}}function n5(i){let e,t,n,o,r=[i5,t5],l=[];function a(s,u){return s[0]?0:1}return e=a(i,-1),t=l[e]=r[e](i),{c(){t.c(),n=rt()},m(s,u){l[e].m(s,u),C(s,n,u),o=!0},p(s,[u]){let c=e;e=a(s,u),e!==c&&(fe(),_(l[c],1,1,()=>{l[c]=null}),ce(),t=l[e],t||(t=l[e]=r[e](s),t.c()),d(t,1),t.m(n.parentNode,n))},i(s){o||(d(t),o=!0)},o(s){_(t),o=!1},d(s){s&&k(n),l[e].d(s)}}}function o5(i,e,t){let{isOff:n=!1}=e;return i.$$set=o=>{"isOff"in o&&t(0,n=o.isOff)},[n]}var Ju=class extends j{constructor(e){super(),W(this,e,o5,n5,U,{isOff:0})}},xu=Ju;function l5(i){let e,t,n,o,r,l,a,s,u,c,m,h,y,b,S=i[2].default,w=Ee(S,i,i[1],null),P=[{xmlns:"http://www.w3.org/2000/svg"},{width:"48"},{height:"48"},{fill:"none"},{"aria-hidden":"true"},{"data-testid":"rate-change-icon"},{role:"img"},i[0]],v={};for(let g=0;g<P.length;g+=1)v=oe(v,P[g]);return{c(){e=N("svg"),w&&w.c(),t=N("g"),n=N("path"),o=N("path"),r=N("defs"),l=N("filter"),a=N("feFlood"),s=N("feColorMatrix"),u=N("feOffset"),c=N("feGaussianBlur"),m=N("feColorMatrix"),h=N("feBlend"),y=N("feBlend"),f(n,"fill","#fff"),f(n,"d","M24 22.677v-5.87a1.2 1.2 0 0 0-1.792-1.045L9.51 22.955a1.2 1.2 0 0 0 0 2.088l12.697 7.192a1.2 1.2 0 0 0 1.791-1.044v-5.873l12.21 6.916A1.2 1.2 0 0 0 38 31.19V16.805a1.2 1.2 0 0 0-1.791-1.044z"),f(o,"stroke","#000"),f(o,"stroke-opacity",".12"),f(o,"stroke-width",".5"),f(o,"d","M24.25 16.806v5.442l11.835-6.704a1.45 1.45 0 0 1 2.165 1.261V31.19a1.45 1.45 0 0 1-2.165 1.262L24.25 25.747v5.444a1.45 1.45 0 0 1-2.164 1.262L9.388 25.26a1.45 1.45 0 0 1 0-2.523l12.697-7.192a1.45 1.45 0 0 1 2.164 1.261Z"),f(t,"filter","url(#a)"),f(a,"flood-opacity","0"),f(a,"result","BackgroundImageFix"),f(s,"in","SourceAlpha"),f(s,"result","hardAlpha"),f(s,"values","0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0"),f(c,"stdDeviation","2.5"),f(m,"values","0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.16 0"),f(h,"in2","BackgroundImageFix"),f(h,"result","effect1_dropShadow_2260_106627"),f(y,"in","SourceGraphic"),f(y,"in2","effect1_dropShadow_2260_106627"),f(y,"result","shape"),f(l,"id","a"),f(l,"width","40.098"),f(l,"height","27.785"),f(l,"x","3.402"),f(l,"y","10.105"),f(l,"color-interpolation-filters","sRGB"),f(l,"filterUnits","userSpaceOnUse"),ge(e,v)},m(g,I){C(g,e,I),w&&w.m(e,null),p(e,t),p(t,n),p(t,o),p(e,r),p(r,l),p(l,a),p(l,s),p(l,u),p(l,c),p(l,m),p(l,h),p(l,y),b=!0},p(g,[I]){w&&w.p&&(!b||I&2)&&Ve(w,S,g,g[1],b?Me(S,g[1],I,null):Ae(g[1]),null),ge(e,v=Le(P,[{xmlns:"http://www.w3.org/2000/svg"},{width:"48"},{height:"48"},{fill:"none"},{"aria-hidden":"true"},{"data-testid":"rate-change-icon"},{role:"img"},I&1&&g[0]]))},i(g){b||(d(w,g),b=!0)},o(g){_(w,g),b=!1},d(g){g&&k(e),w&&w.d(g)}}}function r5(i,e,t){let{$$slots:n={},$$scope:o}=e;return i.$$set=r=>{t(0,e=oe(oe({},e),he(r))),"$$scope"in r&&t(1,o=r.$$scope)},e=he(e),[e,o,n]}var $u=class extends j{constructor(e){super(),W(this,e,r5,l5,U,{})}},P0=$u;function s5(i){let e,t;return e=new P0({props:{style:i[0]}}),{c(){D(e.$$.fragment)},m(n,o){B(e,n,o),t=!0},p(n,[o]){let r={};o&1&&(r.style=n[0]),e.$set(r)},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){_(e.$$.fragment,n),t=!1},d(n){R(e,n)}}}function a5(i,e,t){let n,{reversed:o=!1}=e;return i.$$set=r=>{"reversed"in r&&t(1,o=r.reversed)},i.$$.update=()=>{if(i.$$.dirty&2)e:t(0,n=o?"transform: scaleX(-1);":void 0)},[n,o]}var ef=class extends j{constructor(e){super(),W(this,e,a5,s5,U,{reversed:1})}},T0=ef;function u5(i){let e,t,n,o,r,l,a,s,u,c,m,h,y,b,S=i[2].default,w=Ee(S,i,i[1],null),P=[{xmlns:"http://www.w3.org/2000/svg"},{width:"48"},{height:"48"},{fill:"none"},{"aria-hidden":"true"},{"data-testid":"episodes-seek-icon"},{role:"img"},i[0]],v={};for(let g=0;g<P.length;g+=1)v=oe(v,P[g]);return{c(){e=N("svg"),w&&w.c(),t=N("g"),n=N("path"),o=N("path"),r=N("defs"),l=N("filter"),a=N("feFlood"),s=N("feColorMatrix"),u=N("feOffset"),c=N("feGaussianBlur"),m=N("feColorMatrix"),h=N("feBlend"),y=N("feBlend"),f(n,"fill","#fff"),f(n,"d","M14 21.817c.631-.505 1.627-1.054 3.084-1.857l13.009-7.172c2.268-1.25 3.402-1.875 4.332-1.778a2.9 2.9 0 0 1 2.026 1.134c.549.73.549 1.991.549 4.511v14.69c0 2.52 0 3.78-.549 4.51a2.9 2.9 0 0 1-2.026 1.135c-.93.097-2.064-.528-4.332-1.778L17.084 28.04c-1.457-.803-2.453-1.352-3.084-1.857V34.5a1.5 1.5 0 0 1-3 0v-21a1.5 1.5 0 0 1 3 0z"),f(o,"stroke","#000"),f(o,"stroke-opacity",".12"),f(o,"stroke-width",".5"),f(o,"d","m16.964 19.74-.029.016c-1.162.641-2.046 1.129-2.685 1.567V13.5a1.75 1.75 0 1 0-3.5 0v21a1.75 1.75 0 1 0 3.5 0v-7.823c.639.438 1.523.926 2.685 1.567l.029.015 13.008 7.172.012.006c1.124.62 1.983 1.093 2.676 1.398.695.306 1.26.46 1.791.404a3.16 3.16 0 0 0 2.2-1.233c.317-.421.46-.976.53-1.711.069-.733.069-1.688.069-2.936V16.641c0-1.248 0-2.203-.07-2.936-.07-.735-.212-1.29-.529-1.711a3.16 3.16 0 0 0-2.2-1.233c-.53-.055-1.096.098-1.79.404-.694.305-1.553.778-2.677 1.398l-.012.006z"),f(t,"filter","url(#a)"),f(a,"flood-opacity","0"),f(a,"result","BackgroundImageFix"),f(s,"in","SourceAlpha"),f(s,"result","hardAlpha"),f(s,"values","0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0"),f(c,"stdDeviation","2.5"),f(m,"values","0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.16 0"),f(h,"in2","BackgroundImageFix"),f(h,"result","effect1_dropShadow_2340_106922"),f(y,"in","SourceGraphic"),f(y,"in2","effect1_dropShadow_2340_106922"),f(y,"result","shape"),f(l,"id","a"),f(l,"width","37"),f(l,"height","37"),f(l,"x","5.5"),f(l,"y","5.5"),f(l,"color-interpolation-filters","sRGB"),f(l,"filterUnits","userSpaceOnUse"),ge(e,v)},m(g,I){C(g,e,I),w&&w.m(e,null),p(e,t),p(t,n),p(t,o),p(e,r),p(r,l),p(l,a),p(l,s),p(l,u),p(l,c),p(l,m),p(l,h),p(l,y),b=!0},p(g,[I]){w&&w.p&&(!b||I&2)&&Ve(w,S,g,g[1],b?Me(S,g[1],I,null):Ae(g[1]),null),ge(e,v=Le(P,[{xmlns:"http://www.w3.org/2000/svg"},{width:"48"},{height:"48"},{fill:"none"},{"aria-hidden":"true"},{"data-testid":"episodes-seek-icon"},{role:"img"},I&1&&g[0]]))},i(g){b||(d(w,g),b=!0)},o(g){_(w,g),b=!1},d(g){g&&k(e),w&&w.d(g)}}}function f5(i,e,t){let{$$slots:n={},$$scope:o}=e;return i.$$set=r=>{t(0,e=oe(oe({},e),he(r))),"$$scope"in r&&t(1,o=r.$$scope)},e=he(e),[e,o,n]}var tf=class extends j{constructor(e){super(),W(this,e,f5,u5,U,{})}},I0=tf;function c5(i){let e,t;return e=new I0({props:{style:i[0]}}),{c(){D(e.$$.fragment)},m(n,o){B(e,n,o),t=!0},p(n,[o]){let r={};o&1&&(r.style=n[0]),e.$set(r)},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){_(e.$$.fragment,n),t=!1},d(n){R(e,n)}}}function d5(i,e,t){let n,{reversed:o=!1}=e;return i.$$set=r=>{"reversed"in r&&t(1,o=r.reversed)},i.$$.update=()=>{if(i.$$.dirty&2)e:t(0,n=o?"transform: scaleX(-1);":void 0)},[n,o]}var nf=class extends j{constructor(e){super(),W(this,e,d5,c5,U,{reversed:1})}},E0=nf;function m5(i){Se(i,"svelte-4ftgwp",`.hot-key-helpers-container.svelte-4ftgwp.svelte-4ftgwp{position:absolute;top:calc(50% - 40px);left:calc(50% - 100px);width:200px;height:120px;display:flex;align-items:center;flex-direction:column;animation:svelte-4ftgwp-fadeIn ease var(--controls-transition-duration);padding-top:14px;box-sizing:border-box}.hot-key-helpers-container.svelte-4ftgwp>div.svelte-4ftgwp{width:48px;height:48px;display:flex;justify-content:center;align-items:center}.hot-key-helpers-container.svelte-4ftgwp svg[data-testid="volume-off-icon"],.hot-key-helpers-container.svelte-4ftgwp svg[data-testid="volume-max-icon"]{transform:scale(2)}.hot-key-helpers-container.svelte-4ftgwp svg[data-testid="replay-icon"],.hot-key-helpers-container.svelte-4ftgwp svg[data-testid="play-icon"],.hot-key-helpers-container.svelte-4ftgwp svg[data-testid="pause-icon"]{transform:scale(2.5)}.hot-key-helpers-container--left.svelte-4ftgwp.svelte-4ftgwp{left:calc(25% - 100px)}.hot-key-helpers-container--right.svelte-4ftgwp.svelte-4ftgwp{left:calc(75% - 100px)}.hot-key-helpers-text.svelte-4ftgwp.svelte-4ftgwp{text-align:center;font-feature-settings:'clig' off, 'liga' off;text-shadow:0px 0px 5px rgba(0, 0, 0, 0.16);font-size:15px;font-style:normal;font-weight:600;line-height:20px;letter-spacing:-0.105px;width:100%;max-height:40px;margin-top:4px;display:-webkit-box;text-overflow:ellipsis;white-space:pre-wrap;overflow:hidden;-webkit-line-clamp:2;-webkit-box-orient:vertical}.hidden.svelte-4ftgwp.svelte-4ftgwp{visibility:hidden;animation:svelte-4ftgwp-fadeOut ease var(--controls-transition-duration);width:0;height:0}@keyframes svelte-4ftgwp-fadeIn{0%{opacity:0}100%{opacity:1}}@keyframes svelte-4ftgwp-fadeOut{0%{opacity:1}100%{opacity:0}}`)}function M0(i){let e,t=["BACKWARD_SEEK","FORWARD_SEEK"].includes(i[4]),n,o,r,l,a,s,u=["RATE_DOWN","RATE_UP"].includes(i[4]),c,m=["EPISODE_PREV","EPISODE_NEXT"].includes(i[4]),h,y,b,S,w,P=t&&V0(i),v=i[4]==="PAUSE"&&A0(i),g=i[4]==="PLAY"&&L0(i),I=i[4]==="REPLAY"&&B0(i),A=i[4]==="SUBTITLES_OFF"&&R0(i),q=i[4]==="SUBTITLES_ON"&&D0(i),K=u&&N0(i),re=m&&O0(i),ae=i[4]==="MUTE"&&F0(i),H=i[4]==="VOLUME"&&H0(i),L=i[5]&&z0(i);return{c(){e=T("div"),P&&P.c(),n=O(),v&&v.c(),o=O(),g&&g.c(),r=O(),I&&I.c(),l=O(),A&&A.c(),a=O(),q&&q.c(),s=O(),K&&K.c(),c=O(),re&&re.c(),h=O(),ae&&ae.c(),y=O(),H&&H.c(),b=O(),L&&L.c(),S=rt(),f(e,"class","svelte-4ftgwp")},m(x,Q){C(x,e,Q),P&&P.m(e,null),p(e,n),v&&v.m(e,null),p(e,o),g&&g.m(e,null),p(e,r),I&&I.m(e,null),p(e,l),A&&A.m(e,null),p(e,a),q&&q.m(e,null),p(e,s),K&&K.m(e,null),p(e,c),re&&re.m(e,null),p(e,h),ae&&ae.m(e,null),p(e,y),H&&H.m(e,null),C(x,b,Q),L&&L.m(x,Q),C(x,S,Q),w=!0},p(x,Q){Q&16&&(t=["BACKWARD_SEEK","FORWARD_SEEK"].includes(x[4])),t?P?(P.p(x,Q),Q&16&&d(P,1)):(P=V0(x),P.c(),d(P,1),P.m(e,n)):P&&(fe(),_(P,1,1,()=>{P=null}),ce()),x[4]==="PAUSE"?v?Q&16&&d(v,1):(v=A0(x),v.c(),d(v,1),v.m(e,o)):v&&(fe(),_(v,1,1,()=>{v=null}),ce()),x[4]==="PLAY"?g?Q&16&&d(g,1):(g=L0(x),g.c(),d(g,1),g.m(e,r)):g&&(fe(),_(g,1,1,()=>{g=null}),ce()),x[4]==="REPLAY"?I?Q&16&&d(I,1):(I=B0(x),I.c(),d(I,1),I.m(e,l)):I&&(fe(),_(I,1,1,()=>{I=null}),ce()),x[4]==="SUBTITLES_OFF"?A?Q&16&&d(A,1):(A=R0(x),A.c(),d(A,1),A.m(e,a)):A&&(fe(),_(A,1,1,()=>{A=null}),ce()),x[4]==="SUBTITLES_ON"?q?Q&16&&d(q,1):(q=D0(x),q.c(),d(q,1),q.m(e,s)):q&&(fe(),_(q,1,1,()=>{q=null}),ce()),Q&16&&(u=["RATE_DOWN","RATE_UP"].includes(x[4])),u?K?(K.p(x,Q),Q&16&&d(K,1)):(K=N0(x),K.c(),d(K,1),K.m(e,c)):K&&(fe(),_(K,1,1,()=>{K=null}),ce()),Q&16&&(m=["EPISODE_PREV","EPISODE_NEXT"].includes(x[4])),m?re?(re.p(x,Q),Q&16&&d(re,1)):(re=O0(x),re.c(),d(re,1),re.m(e,h)):re&&(fe(),_(re,1,1,()=>{re=null}),ce()),x[4]==="MUTE"?ae?Q&16&&d(ae,1):(ae=F0(x),ae.c(),d(ae,1),ae.m(e,y)):ae&&(fe(),_(ae,1,1,()=>{ae=null}),ce()),x[4]==="VOLUME"?H?Q&16&&d(H,1):(H=H0(x),H.c(),d(H,1),H.m(e,null)):H&&(fe(),_(H,1,1,()=>{H=null}),ce()),x[5]?L?L.p(x,Q):(L=z0(x),L.c(),L.m(S.parentNode,S)):L&&(L.d(1),L=null)},i(x){w||(d(P),d(v),d(g),d(I),d(A),d(q),d(K),d(re),d(ae),d(H),w=!0)},o(x){_(P),_(v),_(g),_(I),_(A),_(q),_(K),_(re),_(ae),_(H),w=!1},d(x){x&&(k(e),k(b),k(S)),P&&P.d(),v&&v.d(),g&&g.d(),I&&I.d(),A&&A.d(),q&&q.d(),K&&K.d(),re&&re.d(),ae&&ae.d(),H&&H.d(),L&&L.d(x)}}}function V0(i){let e,t;return e=new k0({props:{reversed:i[4]==="FORWARD_SEEK"}}),{c(){D(e.$$.fragment)},m(n,o){B(e,n,o),t=!0},p(n,o){let r={};o&16&&(r.reversed=n[4]==="FORWARD_SEEK"),e.$set(r)},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){_(e.$$.fragment,n),t=!1},d(n){R(e,n)}}}function A0(i){let e,t;return e=new Dr({}),{c(){D(e.$$.fragment)},m(n,o){B(e,n,o),t=!0},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){_(e.$$.fragment,n),t=!1},d(n){R(e,n)}}}function L0(i){let e,t;return e=new dl({}),{c(){D(e.$$.fragment)},m(n,o){B(e,n,o),t=!0},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){_(e.$$.fragment,n),t=!1},d(n){R(e,n)}}}function B0(i){let e,t;return e=new Gr({}),{c(){D(e.$$.fragment)},m(n,o){B(e,n,o),t=!0},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){_(e.$$.fragment,n),t=!1},d(n){R(e,n)}}}function R0(i){let e,t;return e=new xu({props:{isOff:!0}}),{c(){D(e.$$.fragment)},m(n,o){B(e,n,o),t=!0},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){_(e.$$.fragment,n),t=!1},d(n){R(e,n)}}}function D0(i){let e,t;return e=new xu({}),{c(){D(e.$$.fragment)},m(n,o){B(e,n,o),t=!0},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){_(e.$$.fragment,n),t=!1},d(n){R(e,n)}}}function N0(i){let e,t;return e=new T0({props:{reversed:i[4]==="RATE_UP"}}),{c(){D(e.$$.fragment)},m(n,o){B(e,n,o),t=!0},p(n,o){let r={};o&16&&(r.reversed=n[4]==="RATE_UP"),e.$set(r)},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){_(e.$$.fragment,n),t=!1},d(n){R(e,n)}}}function O0(i){let e,t;return e=new E0({props:{reversed:i[4]==="EPISODE_NEXT"}}),{c(){D(e.$$.fragment)},m(n,o){B(e,n,o),t=!0},p(n,o){let r={};o&16&&(r.reversed=n[4]==="EPISODE_NEXT"),e.$set(r)},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){_(e.$$.fragment,n),t=!1},d(n){R(e,n)}}}function F0(i){let e,t;return e=new qo({props:{volume:0}}),{c(){D(e.$$.fragment)},m(n,o){B(e,n,o),t=!0},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){_(e.$$.fragment,n),t=!1},d(n){R(e,n)}}}function H0(i){let e,t;return e=new qo({props:{volume:1}}),{c(){D(e.$$.fragment)},m(n,o){B(e,n,o),t=!0},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){_(e.$$.fragment,n),t=!1},d(n){R(e,n)}}}function z0(i){let e,t;return{c(){e=T("span"),t=De(i[5]),f(e,"class","hot-key-helpers-text svelte-4ftgwp")},m(n,o){C(n,e,o),p(e,t)},p(n,o){o&32&&Ye(t,n[5])},d(n){n&&k(e)}}}function p5(i){let e,t,n=!i[1]&&i[4]&&M0(i);return{c(){e=T("div"),n&&n.c(),f(e,"class","hot-key-helpers-container svelte-4ftgwp"),z(e,"hidden",i[1]),z(e,"hot-key-helpers-container--left",i[2]),z(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&&d(n,1)):(n=M0(o),n.c(),d(n,1),n.m(e,null)):n&&(fe(),_(n,1,1,()=>{n=null}),ce()),(!t||r&2)&&z(e,"hidden",o[1]),(!t||r&4)&&z(e,"hot-key-helpers-container--left",o[2]),(!t||r&8)&&z(e,"hot-key-helpers-container--right",o[3])},i(o){t||(d(n),t=!0)},o(o){_(n),t=!1},d(o){o&&k(e),n&&n.d()}}}function _5(i,e,t){let n,o=pe,r=()=>(o(),o=Qt(l,h=>t(6,n=h)),l);i.$$.on_destroy.push(()=>o());let{data:l}=e;r();let a,s,u,c,m;return i.$$set=h=>{"data"in h&&r(t(0,l=h.data))},i.$$.update=()=>{if(i.$$.dirty&64)e:t(1,a=!n),t(2,s=(n==null?void 0:n.type)==="BACKWARD_SEEK"),t(3,u=(n==null?void 0:n.type)==="FORWARD_SEEK"),t(4,c=n==null?void 0:n.type),n!=null&&n.t?t(5,m=Y(n.t.key,{value:n.t.value||""})):t(5,m=n==null?void 0:n.text)},[l,a,s,u,c,m,n]}var of=class extends j{constructor(e){super(),W(this,e,_5,p5,U,{data:0},m5)}},q0=of;function h5(i){Se(i,"svelte-1yzc86r",".immersive-controls.svelte-1yzc86r{position:absolute;display:flex;flex-direction:row;top:10px;left:10px;width:56px;height:56px;background-color:rgba(0, 0, 0, .56);border-radius:8px;transition-property:top, left;transition-duration:var(--controls-transition-duration);transition-timing-function:var(--controls-transition-fn)}.immersive-controls.m-shifted.svelte-1yzc86r{top:50px;left:20px}.button-block.svelte-1yzc86r{width:40px;height:40px;margin:auto auto;transform:rotate(45deg)}.button-row.svelte-1yzc86r{display:flex;flex-direction:row;position:relative}.button.svelte-1yzc86r{width:20px;height:20px;text-align:center;cursor:pointer}.button.svelte-1yzc86r svg{opacity:0.7;transition:opacity linear 0.2s}.button.button-up.svelte-1yzc86r svg{transform:rotate(-45deg) translate(-1px, -1px)}.button.button-right.svelte-1yzc86r svg{transform:rotate(45deg) translate(1px, -1px)}.button.button-down.svelte-1yzc86r svg{transform:rotate(135deg) translate(1px, -3px)}.button.button-left.svelte-1yzc86r svg{transform:rotate(-135deg) translate(-1px, -3px)}.button.svelte-1yzc86r:hover svg{opacity:1}")}function g5(i){let e,t,n,o,r,l,a,s,u,c,m,h,y,b,S,w,P,v,g;return r=new $n({props:{direction:"up"}}),s=new $n({props:{direction:"up"}}),h=new $n({props:{direction:"up"}}),S=new $n({props:{direction:"up"}}),{c(){e=T("div"),t=T("div"),n=T("div"),o=T("div"),D(r.$$.fragment),l=O(),a=T("div"),D(s.$$.fragment),u=O(),c=T("div"),m=T("div"),D(h.$$.fragment),y=O(),b=T("div"),D(S.$$.fragment),f(o,"class","button button-up svelte-1yzc86r"),f(a,"class","button button-right svelte-1yzc86r"),f(n,"class","button-row svelte-1yzc86r"),f(m,"class","button button-left svelte-1yzc86r"),f(b,"class","button button-down svelte-1yzc86r"),f(c,"class","button-row svelte-1yzc86r"),f(t,"class","button-block svelte-1yzc86r"),f(t,"aria-hidden","true"),f(e,"class","immersive-controls svelte-1yzc86r"),f(e,"tabindex","0"),f(e,"role","button"),f(e,"aria-label",w=Y("aria_label_spherical_control")),z(e,"m-shifted",i[0])},m(I,A){C(I,e,A),p(e,t),p(t,n),p(n,o),B(r,o,null),p(n,l),p(n,a),B(s,a,null),p(t,u),p(t,c),p(c,m),B(h,m,null),p(c,y),p(c,b),B(S,b,null),P=!0,v||(g=[de(o,"mousedown",i[1]),de(o,"mouseup",i[5]),de(o,"mouseleave",i[5]),de(a,"mousedown",i[3]),de(a,"mouseup",i[5]),de(a,"mouseleave",i[5]),de(m,"mousedown",i[4]),de(m,"mouseup",i[5]),de(m,"mouseleave",i[5]),de(b,"mousedown",i[2]),de(b,"mouseup",i[5]),de(b,"mouseleave",i[5]),de(e,"keydown",i[6]),de(e,"keyup",i[7])],v=!0)},p(I,[A]){(!P||A&1)&&z(e,"m-shifted",I[0])},i(I){P||(d(r.$$.fragment,I),d(s.$$.fragment,I),d(h.$$.fragment,I),d(S.$$.fragment,I),P=!0)},o(I){_(r.$$.fragment,I),_(s.$$.fragment,I),_(h.$$.fragment,I),_(S.$$.fragment,I),P=!1},d(I){I&&k(e),R(r),R(s),R(h),R(S),v=!1,ot(g)}}}function b5(i,e,t){let{isShifted:n=!1}=e,o=it(),r=new Set(["ArrowUp","ArrowDown","ArrowLeft","ArrowRight"]),l=()=>{o.actions.internal.startCameraManualRotation(0,1)},a=()=>{o.actions.internal.startCameraManualRotation(0,-1)},s=()=>{o.actions.internal.startCameraManualRotation(1,0)},u=()=>{o.actions.internal.startCameraManualRotation(-1,0)},c=()=>(o.actions.internal.stopCameraManualRotation(),null),m=y=>{if(r.has(y.code))switch(y.preventDefault(),y.stopPropagation(),y.code){case"ArrowUp":l();break;case"ArrowDown":a();break;case"ArrowLeft":u();break;case"ArrowRight":s();break}},h=y=>{r.has(y.code)&&(y.preventDefault(),y.stopPropagation(),c())};return i.$$set=y=>{"isShifted"in y&&t(0,n=y.isShifted)},[n,l,a,s,u,c,m,h]}var lf=class extends j{constructor(e){super(),W(this,e,b5,g5,U,{isShifted:0},h5)}},rs=lf;function v5(i){Se(i,"svelte-ovfyp5",".subtitles-container.svelte-ovfyp5.svelte-ovfyp5{position:absolute;top:0;left:0;width:100%;height:100%;pointer-events:none;transition:transform var(--controls-transition-duration)}.subtitles-container.shifted.svelte-ovfyp5.svelte-ovfyp5{transform:translateY(calc(var(--controls-height) * -1))}.subtitles-caption.svelte-ovfyp5.svelte-ovfyp5{position:absolute;left:4%;right:4%;bottom:4%;display:flex;justify-content:center}.subtitles-caption.mobile.svelte-ovfyp5.svelte-ovfyp5{bottom:8%}.subtitles-container.auto.svelte-ovfyp5 .subtitles-caption.svelte-ovfyp5{left:24%;right:24%}.caption.svelte-ovfyp5.svelte-ovfyp5{display:block;overflow-wrap:normal;padding:4px 8px;border-radius:4px;background:rgba(0, 0, 0, 0.4)}.subtitles-container.auto.svelte-ovfyp5 .caption.svelte-ovfyp5{width:100%}.caption-line.svelte-ovfyp5.svelte-ovfyp5{display:block;text-align:center}.subtitles-container.auto.svelte-ovfyp5 .caption-line.svelte-ovfyp5{text-align:left}.caption-segment.svelte-ovfyp5.svelte-ovfyp5{display:inline-block;line-height:1.2;font-size:13px;color:var(--white);white-space:pre-wrap}")}function U0(i,e,t){let n=i.slice();return n[16]=e[t].value,n}function K0(i,e,t){let n=i.slice();return n[16]=e[t].value,n[17]=e[t].timeAppeared,n}function j0(i){let e,t;function n(l,a){return l[7]&&l[8]?k5:l[5]?w5:y5}let o=n(i,-1),r=o(i);return{c(){e=T("div"),t=T("span"),r.c(),f(t,"class","caption svelte-ovfyp5"),f(e,"class","subtitles-caption svelte-ovfyp5"),z(e,"mobile",i[3])},m(l,a){C(l,e,a),p(e,t),r.m(t,null)},p(l,a){o===(o=n(l,a))&&r?r.p(l,a):(r.d(1),r=o(l),r&&(r.c(),r.m(t,null))),a&8&&z(e,"mobile",l[3])},d(l){l&&k(e),r.d()}}}function y5(i){let e,t=It(i[1]),n=[];for(let o=0;o<t.length;o+=1)n[o]=W0(U0(i,t,o));return{c(){for(let o=0;o<n.length;o+=1)n[o].c();e=rt()},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=It(o[1]);let l;for(l=0;l<t.length;l+=1){let a=U0(o,t,l);n[l]?n[l].p(a,r):(n[l]=W0(a),n[l].c(),n[l].m(e.parentNode,e))}for(;l<n.length;l+=1)n[l].d(1);n.length=t.length}},d(o){o&&k(e),Gi(n,o)}}}function w5(i){let e,t,n=It(i[6]),o=[];for(let r=0;r<n.length;r+=1)o[r]=Q0(K0(i,n,r));return{c(){e=T("span"),t=T("span");for(let r=0;r<o.length;r+=1)o[r].c();f(t,"class","caption-segment svelte-ovfyp5"),vi(t,"font-size",i[4]+"px"),f(e,"class","caption-line svelte-ovfyp5")},m(r,l){C(r,e,l),p(e,t);for(let a=0;a<o.length;a+=1)o[a]&&o[a].m(t,null)},p(r,l){if(l&68){n=It(r[6]);let a;for(a=0;a<n.length;a+=1){let s=K0(r,n,a);o[a]?o[a].p(s,l):(o[a]=Q0(s),o[a].c(),o[a].m(t,null))}for(;a<o.length;a+=1)o[a].d(1);o.length=n.length}l&16&&vi(t,"font-size",r[4]+"px")},d(r){r&&k(e),Gi(o,r)}}}function k5(i){let e,t,n=Y("subtitles_auto_caption")+"",o;return{c(){e=T("span"),t=T("span"),o=De(n),f(t,"class","caption-segment svelte-ovfyp5"),vi(t,"font-size",i[4]+"px"),f(e,"class","caption-line svelte-ovfyp5")},m(r,l){C(r,e,l),p(e,t),p(t,o)},p(r,l){l&16&&vi(t,"font-size",r[4]+"px")},d(r){r&&k(e)}}}function W0(i){let e,t,n=i[16]+"",o,r;return{c(){e=T("span"),t=T("span"),o=De(n),r=O(),f(t,"class","caption-segment svelte-ovfyp5"),vi(t,"font-size",i[4]+"px"),f(e,"class","caption-line svelte-ovfyp5")},m(l,a){C(l,e,a),p(e,t),p(t,o),p(e,r)},p(l,a){a&2&&n!==(n=l[16]+"")&&Ye(o,n),a&16&&vi(t,"font-size",l[4]+"px")},d(l){l&&k(e)}}}function G0(i){let e=i[16]+"",t;return{c(){t=De(e)},m(n,o){C(n,t,o)},p(n,o){o&64&&e!==(e=n[16]+"")&&Ye(t,e)},d(n){n&&k(t)}}}function Q0(i){let e,t=(!i[17]||i[17]<=i[2])&&G0(i);return{c(){t&&t.c(),e=rt()},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=G0(n),t.c(),t.m(e.parentNode,e)):t&&(t.d(1),t=null)},d(n){n&&k(e),t&&t.d(n)}}}function C5(i){let e,t=i[1].length>0&&j0(i);return{c(){e=T("div"),t&&t.c(),f(e,"class","subtitles-container svelte-ovfyp5"),z(e,"shifted",i[0]),z(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=j0(n),t.c(),t.m(e,null)):t&&(t.d(1),t=null),o&1&&z(e,"shifted",n[0]),o&288&&z(e,"auto",n[5]&&!n[8])},i:pe,o:pe,d(n){n&&k(e),t&&t.d()}}}function S5(i,e,t){let n,o,{shifted:r}=e,{captions:l}=e,{position:a}=e,{playerSize:s}=e,{isMobile:u=!1}=e,c=it(),m=Ut(),h=c.state.currentSubtitle$;F(i,h,g=>t(12,n=g));let y=c.state.isAutoSubtitleCaptionVisible$;F(i,y,g=>t(8,o=g));let b,S,w,P,v;return Nt(()=>{v=window.setTimeout(()=>{y.set(!1)},m.autoSubtitlesTimeout)}),Wn(()=>{window.clearTimeout(v)}),i.$$set=g=>{"shifted"in g&&t(0,r=g.shifted),"captions"in g&&t(1,l=g.captions),"position"in g&&t(2,a=g.position),"playerSize"in g&&t(11,s=g.playerSize),"isMobile"in g&&t(3,u=g.isMobile)},i.$$.update=()=>{if(i.$$.dirty&2048)e:{let g=s.width*.02;t(4,b=g<=m.minSubtitlesFontSize?m.minSubtitlesFontSize:g)}if(i.$$.dirty&2)e:t(5,S=l.some(g=>g.type==="timestamp"));if(i.$$.dirty&2)e:t(6,w=l.reduce((g,{type:I,value:A})=>(I==="timestamp"?g.push({timeAppeared:Number(A),value:""}):g.length===0?g.push({value:String(A)}):g[g.length-1].value=String(A),g),[]));if(i.$$.dirty&4096)e:t(7,P=!!n.isAuto)},[r,l,a,u,b,S,w,P,o,h,y,s,n]}var rf=class extends j{constructor(e){super(),W(this,e,S5,C5,U,{shifted:0,captions:1,position:2,playerSize:11,isMobile:3},v5)}},ss=rf;function P5(i){Se(i,"svelte-1o62kpz",".wrapper.svelte-1o62kpz{height:100%;background-position:center;background-size:cover;display:flex;align-items:center;justify-content:center;font-size:16px;flex-direction:column}.icon_wrapper.svelte-1o62kpz{display:flex;flex-direction:column;align-items:center;width:400px}.icon.svelte-1o62kpz{width:50px;height:50px}.text.svelte-1o62kpz{margin-top:20px}")}function Y0(i){let e,t,n;return{c(){e=T("div"),t=De("\u0412\u0438\u0434\u0435\u043E \u0432\u043E\u0441\u043F\u0440\u043E\u0438\u0437\u0432\u043E\u0434\u0438\u0442\u0441\u044F \u043D\u0430 "),n=De(i[1]),f(e,"class","text svelte-1o62kpz")},m(o,r){C(o,e,r),p(e,t),p(e,n)},p(o,r){r&2&&Ye(n,o[1])},d(o){o&&k(e)}}}function T5(i){let e,t,n,o,r,l,a=i[1]&&Y0(i);return{c(){e=T("div"),t=T("div"),t.innerHTML='<svg class="icon svelte-1o62kpz" width="22" height="22" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><g fill="none" fill-rule="evenodd"><path d="M1 18v3h3c0-1.66-1.34-3-3-3zm0-4v2c2.76 0 5 2.24 5 5h2c0-3.87-3.13-7-7-7zm0-4v2a9 9 0 0 1 9 9h2c0-6.08-4.93-11-11-11zm20-7H3c-1.1 0-2 .9-2 2v3h2V5h18v14h-7v2h7c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2z" fill="#fff"></path><path d="M0 0h24v24H0z"></path></g></svg>',n=O(),a&&a.c(),f(t,"class","icon_wrapper svelte-1o62kpz"),f(e,"class","wrapper svelte-1o62kpz"),f(e,"style",o=`background-image: linear-gradient(0deg, rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)), url('${i[0]||""}')`)},m(s,u){C(s,e,u),p(e,t),p(e,n),a&&a.m(e,null),r||(l=de(e,"click",i[2]),r=!0)},p(s,[u]){s[1]?a?a.p(s,u):(a=Y0(s),a.c(),a.m(e,null)):a&&(a.d(1),a=null),u&1&&o!==(o=`background-image: linear-gradient(0deg, rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)), url('${s[0]||""}')`)&&f(e,"style",o)},i:pe,o:pe,d(s){s&&k(e),a&&a.d(),r=!1,l()}}}function I5(i,e,t){let{thumbUrl:n}=e,{chromecastDeviceName:o}=e;function r(l){Vn.call(this,i,l)}return i.$$set=l=>{"thumbUrl"in l&&t(0,n=l.thumbUrl),"chromecastDeviceName"in l&&t(1,o=l.chromecastDeviceName)},[n,o,r]}var sf=class extends j{constructor(e){super(),W(this,e,I5,T5,U,{thumbUrl:0,chromecastDeviceName:1},P5)}},as=sf;function E5(i){let e,t,n,o=i[2].default,r=Ee(o,i,i[1],null),l=[{xmlns:"http://www.w3.org/2000/svg"},{width:"200"},{height:"200"},{"aria-hidden":"true"},{"data-testid":"error-icon"},{viewBox:"460 190 130 90"},{role:"img"},i[0]],a={};for(let s=0;s<l.length;s+=1)a=oe(a,l[s]);return{c(){e=N("svg"),r&&r.c(),t=N("path"),f(t,"fill","#fff"),f(t,"fill-rule","evenodd"),f(t,"d","M460 193.998a3.997 3.997 0 0 1 3.997-3.998h122.006a4.003 4.003 0 0 1 3.997 3.998v82.004a3.997 3.997 0 0 1-3.997 3.998H463.997a4.003 4.003 0 0 1-3.997-3.998zm6 2.993c0-.546.45-.99.99-.99h4.02c.546 0 .99.45.99.99v4.02c0 .546-.45.99-.99.99h-4.02a.995.995 0 0 1-.99-.99zm0 12c0-.546.45-.99.99-.99h4.02c.546 0 .99.45.99.99v4.02c0 .546-.45.99-.99.99h-4.02a.995.995 0 0 1-.99-.99zm0 12c0-.546.45-.99.99-.99h4.02c.546 0 .99.45.99.99v4.02c0 .546-.45.99-.99.99h-4.02a.995.995 0 0 1-.99-.99zm0 12c0-.546.45-.99.99-.99h4.02c.546 0 .99.45.99.99v4.02c0 .546-.45.99-.99.99h-4.02a.995.995 0 0 1-.99-.99zm0 12c0-.546.45-.99.99-.99h4.02c.546 0 .99.45.99.99v4.02c0 .546-.45.99-.99.99h-4.02a.995.995 0 0 1-.99-.99zm0 12c0-.546.45-.99.99-.99h4.02c.546 0 .99.45.99.99v4.02c0 .546-.45.99-.99.99h-4.02a.995.995 0 0 1-.99-.99zm0 12c0-.546.45-.99.99-.99h4.02c.546 0 .99.45.99.99v4.02c0 .546-.45.99-.99.99h-4.02a.995.995 0 0 1-.99-.99zm112-72c0-.546.45-.99.99-.99h4.02c.546 0 .99.45.99.99v4.02c0 .546-.45.99-.99.99h-4.02a.995.995 0 0 1-.99-.99zm0 12c0-.546.45-.99.99-.99h4.02c.546 0 .99.45.99.99v4.02c0 .546-.45.99-.99.99h-4.02a.995.995 0 0 1-.99-.99zm0 12c0-.546.45-.99.99-.99h4.02c.546 0 .99.45.99.99v4.02c0 .546-.45.99-.99.99h-4.02a.995.995 0 0 1-.99-.99zm0 12c0-.546.45-.99.99-.99h4.02c.546 0 .99.45.99.99v4.02c0 .546-.45.99-.99.99h-4.02a.995.995 0 0 1-.99-.99zm0 12c0-.546.45-.99.99-.99h4.02c.546 0 .99.45.99.99v4.02c0 .546-.45.99-.99.99h-4.02a.995.995 0 0 1-.99-.99zm0 12c0-.546.45-.99.99-.99h4.02c.546 0 .99.45.99.99v4.02c0 .546-.45.99-.99.99h-4.02a.995.995 0 0 1-.99-.99zm0 12c0-.546.45-.99.99-.99h4.02c.546 0 .99.45.99.99v4.02c0 .546-.45.99-.99.99h-4.02a.995.995 0 0 1-.99-.99zM507 232a6 6 0 1 0 0-12 6 6 0 0 0 0 12m36 0a6 6 0 1 0 0-12 6 6 0 0 0 0 12m-18.05 15c6.05 0 11.624 4.446 11.944 4.65 2.106 1.35 3.252.772 3.957.156s1.15-2.806-1.044-4.657c-1.735-1.48-5.806-5.16-14.856-5.15s-12.95 3.5-14.792 5.185c-1.84 1.685-2.288 3.498-.973 4.657s2.315 1.158 4.357-.327c-.007.007 5.357-4.515 11.408-4.515z"),ge(e,a)},m(s,u){C(s,e,u),r&&r.m(e,null),p(e,t),n=!0},p(s,[u]){r&&r.p&&(!n||u&2)&&Ve(r,o,s,s[1],n?Me(o,s[1],u,null):Ae(s[1]),null),ge(e,a=Le(l,[{xmlns:"http://www.w3.org/2000/svg"},{width:"200"},{height:"200"},{"aria-hidden":"true"},{"data-testid":"error-icon"},{viewBox:"460 190 130 90"},{role:"img"},u&1&&s[0]]))},i(s){n||(d(r,s),n=!0)},o(s){_(r,s),n=!1},d(s){s&&k(e),r&&r.d(s)}}}function M5(i,e,t){let{$$slots:n={},$$scope:o}=e;return i.$$set=r=>{t(0,e=oe(oe({},e),he(r))),"$$scope"in r&&t(1,o=r.$$scope)},e=he(e),[e,o,n]}var af=class extends j{constructor(e){super(),W(this,e,M5,E5,U,{})}},Z0=af;function V5(i){Se(i,"svelte-13zpvm8",".container.svelte-13zpvm8{position:absolute;top:0;bottom:0;left:0;right:0;background:#000;display:flex;align-items:center;justify-content:center}")}function A5(i){let e,t,n;return t=new Z0({}),{c(){e=T("div"),D(t.$$.fragment),f(e,"class","container svelte-13zpvm8")},m(o,r){C(o,e,r),B(t,e,null),n=!0},p:pe,i(o){n||(d(t.$$.fragment,o),n=!0)},o(o){_(t.$$.fragment,o),n=!1},d(o){o&&k(e),R(t)}}}var uf=class extends j{constructor(e){super(),W(this,e,null,A5,U,{},V5)}},us=uf;function L5(i){Se(i,"svelte-17wno3",".container.svelte-17wno3.svelte-17wno3{position:absolute;top:0;bottom:0;left:0;right:0;background-position:center;background-size:cover;cursor:pointer;transition:opacity 0.2s, visibility 0.2s;will-change:opacity}.container.hidden.svelte-17wno3.svelte-17wno3{opacity:0;visibility:hidden}.playButton.svelte-17wno3.svelte-17wno3{position:absolute;top:0;bottom:0;left:0;right:0;margin:auto;width:var(--big-play-size);height:var(--big-play-size);display:flex;align-items:center;justify-content:center}.playButtonBackground.svelte-17wno3.svelte-17wno3{position:absolute;top:0;bottom:0;left:0;right:0;border-radius:var(--big-play-radius);background-color:var(--big-play-bg-color);transition:background 0.2s, transform 0.2s;transition-timing-function:ease-out;will-change:background, transform}.container.svelte-17wno3:hover .playButtonBackground.svelte-17wno3{background-color:var(--big-play-hover-bg-color);transform:scale(1.15)}.playButton.svelte-17wno3 svg{transform:scale(2)}")}function B5(i){let e,t,n,o,r,l,a,s,u,c;return r=new dl({}),{c(){e=T("div"),t=T("div"),n=T("div"),o=O(),D(r.$$.fragment),f(n,"class","playButtonBackground svelte-17wno3"),f(t,"class","playButton svelte-17wno3"),f(t,"tabindex","0"),f(t,"role","button"),f(t,"aria-label",l=Y("tooltip_play")),f(e,"class","container svelte-17wno3"),f(e,"style",a=`background-color: #222; background-image: url('${i[0]||""}')`),z(e,"hidden",i[1])},m(m,h){C(m,e,h),p(e,t),p(t,n),p(t,o),B(r,t,null),s=!0,u||(c=[de(t,"keydown",i[3]),de(e,"click",at(function(){Ri(i[2])&&i[2].apply(this,arguments)}))],u=!0)},p(m,[h]){i=m,(!s||h&1&&a!==(a=`background-color: #222; background-image: url('${i[0]||""}')`))&&f(e,"style",a),(!s||h&2)&&z(e,"hidden",i[1])},i(m){s||(d(r.$$.fragment,m),s=!0)},o(m){_(r.$$.fragment,m),s=!1},d(m){m&&k(e),R(r),u=!1,ot(c)}}}function R5(i,e,t){let{thumbUrl:n}=e,{hidden:o}=e,{startVideo:r}=e,a=it().ui.startedByKeyboard$,s=u=>{let c=u.code;["Enter","Space"].includes(c)&&(u.stopPropagation(),u.preventDefault(),a.set(!0),r())};return i.$$set=u=>{"thumbUrl"in u&&t(0,n=u.thumbUrl),"hidden"in u&&t(1,o=u.hidden),"startVideo"in u&&t(2,r=u.startVideo)},[n,o,r,s]}var ff=class extends j{constructor(e){super(),W(this,e,R5,B5,U,{thumbUrl:0,hidden:1,startVideo:2,handlePressKey:3},L5)}get handlePressKey(){return this.$$.ctx[3]}},fs=ff;function D5(i){Se(i,"svelte-1bcvcf2",`.title.svelte-1bcvcf2{position:absolute;pointer-events:none;left:0;top:0;width:100%;height:var(--controls-gradient-height);font-size:15px;color:var(--white);box-sizing:border-box;padding:18px 20px 10px;overflow:hidden;white-space:nowrap;text-overflow:ellipsis;transition-property:visibility, transform, opacity;transition-duration:var(--controls-transition-duration);transition-timing-function:var(--controls-transition-fn);will-change:transform, opacity;background:linear-gradient(
24
+ )}`)}function Wf(i){let e;return{c(){e=P("div"),c(e,"class","top-gradient-mobile svelte-354ajf")},m(t,n){C(t,e,n)},d(t){t&&k(e)}}}function Gf(i){let e,t;return e=new Kf({props:{position:i[5],secondsToWatchBeforeSkip:i[6],skipAd:i[8].actions.internal.skipAd}}),{c(){D(e.$$.fragment)},m(n,o){R(e,n,o),t=!0},p(n,o){let r={};o&32&&(r.position=n[5]),o&64&&(r.secondsToWatchBeforeSkip=n[6]),e.$set(r)},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){_(e.$$.fragment,n),t=!1},d(n){B(e,n)}}}function Qf(i){let e,t;return e=new qf({}),{c(){D(e.$$.fragment)},m(n,o){R(e,n,o),t=!0},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){_(e.$$.fragment,n),t=!1},d(n){B(e,n)}}}function Yf(i){let e,t;return e=new jf({}),{c(){D(e.$$.fragment)},m(n,o){R(e,n,o),t=!0},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){_(e.$$.fragment,n),t=!1},d(n){B(e,n)}}}function T2(i){let e,t,n,o,r,l,a,s=i[0]&&Wf(i),u=i[3]&&Gf(i),f=i[7]&&Qf(i),m=i[4]&&Yf(i);return{c(){e=P("div"),s&&s.c(),t=O(),n=P("video"),o=O(),u&&u.c(),r=O(),f&&f.c(),l=O(),m&&m.c(),gi(n,"width","100%"),gi(n,"height","100%"),n.playsInline=!0,c(e,"class","container svelte-354ajf")},m(h,y){C(h,e,y),s&&s.m(e,null),p(e,t),p(e,n),i[19](n),p(e,o),u&&u.m(e,null),p(e,r),f&&f.m(e,null),p(e,l),m&&m.m(e,null),i[20](e),a=!0},p(h,[y]){h[0]?s||(s=Wf(h),s.c(),s.m(e,t)):s&&(s.d(1),s=null),h[3]?u?(u.p(h,y),y&8&&d(u,1)):(u=Gf(h),u.c(),d(u,1),u.m(e,r)):u&&(ce(),_(u,1,1,()=>{u=null}),fe()),h[7]?f?y&128&&d(f,1):(f=Qf(h),f.c(),d(f,1),f.m(e,l)):f&&(ce(),_(f,1,1,()=>{f=null}),fe()),h[4]?m?y&16&&d(m,1):(m=Yf(h),m.c(),d(m,1),m.m(e,null)):m&&(ce(),_(m,1,1,()=>{m=null}),fe())},i(h){a||(d(u),d(f),d(m),a=!0)},o(h){_(u),_(f),_(m),a=!1},d(h){h&&k(e),s&&s.d(),i[19](null),u&&u.d(),f&&f.d(),m&&m.d(),i[20](null)}}}function P2(i,e,t){let n,o,r,l,a,{adsSlotId:s=void 0}=e,{adsParams:u=void 0}=e,{adsPreviewParam:f=void 0}=e,{duration:m=0}=e,h=nt(),y=h.state.isEnded$;F(i,y,H=>t(7,a=H));let b=h.ui.isMobile;F(i,b,H=>t(0,o=H));let S,w,T=!1,v=h.ads.playbackState;F(i,v,H=>t(18,n=H));let g=h.ads.canSkip,I=h.ads.position;F(i,I,H=>t(5,r=H));let A=h.ads.secondsToWatchBeforeSkip;F(i,A,H=>t(6,l=H));let q,K;Ft(()=>{let H=new AbortController,L=()=>{H.abort()},x=h.getAdmanWrapper();if(!s){x.onAdmanLoadingError();return}let{width:G,height:J}=it(h.ui.playerSize),E=it(h.ui.isFullscreen),te=it(h.ui.isAutoplay),M={width:G,height:J,isFullscreen:E,isAutoplay:te,adsContainer:S,adsVideoElement:w,slotId:s,params:u,previewParam:f,duration:m};return window.AdmanHTML?(x.initAdman(M),T=!0):x.loadAdman(H.signal).then(()=>{x.initAdman(M),T=!0}).catch(()=>{x.onAdmanLoadingError()}),()=>{!T&&L()}});function re(H){_e[H?"unshift":"push"](()=>{w=H,t(2,w)})}function ae(H){_e[H?"unshift":"push"](()=>{S=H,t(1,S)})}return i.$$set=H=>{"adsSlotId"in H&&t(14,s=H.adsSlotId),"adsParams"in H&&t(15,u=H.adsParams),"adsPreviewParam"in H&&t(16,f=H.adsPreviewParam),"duration"in H&&t(17,m=H.duration)},i.$$.update=()=>{if(i.$$.dirty&262144)e:t(3,q=g&&n!=="inactive");if(i.$$.dirty&262145)e:t(4,K=o&&n!=="inactive")},[o,S,w,q,K,r,l,a,h,y,b,v,I,A,s,u,f,m,n,re,ae]}var Gs=class extends j{constructor(e){super(),W(this,e,P2,T2,U,{adsSlotId:14,adsParams:15,adsPreviewParam:16,duration:17},S2)}},hr=Gs;var Ln=i=>{if(!isFinite(i))return"00:00";let e=Math.round(i),t=Math.floor(e/(60*60));e-=t*3600;let n=Math.floor(e/60);return e-=n*60,(t>0?[t,n,e]:[n,e]).map(r=>r>9?String(r):`0${r}`).join(":")};function I2(i){let e,t,n,o,r=i[2].default,l=Ee(r,i,i[1],null),a=[{xmlns:"http://www.w3.org/2000/svg"},{width:"42"},{height:"20"},{"aria-hidden":"true"},{"data-testid":"live-icon"},{role:"img"},i[0]],s={};for(let u=0;u<a.length;u+=1)s=oe(s,a[u]);return{c(){e=N("svg"),l&&l.c(),t=N("path"),n=N("path"),c(t,"fill","none"),c(t,"stroke","#fff"),c(t,"stroke-width","2"),c(t,"d","M6.41 1A6.46 6.46 0 0 0 3 1.55 3.5 3.5 0 0 0 1.55 3 6.46 6.46 0 0 0 1 6.41v7.18A6.46 6.46 0 0 0 1.55 17 3.5 3.5 0 0 0 3 18.45a6.46 6.46 0 0 0 3.41.55h29.18a6.46 6.46 0 0 0 3.41-.55A3.5 3.5 0 0 0 40.45 17a6.46 6.46 0 0 0 .55-3.41V6.41A6.46 6.46 0 0 0 40.45 3 3.5 3.5 0 0 0 39 1.55 6.46 6.46 0 0 0 35.59 1z"),c(n,"fill","#f0f2f5"),c(n,"fill-rule","evenodd"),c(n,"d","M8 5a1 1 0 0 1 1 1v7h3a1 1 0 0 1 1 .88V14a1 1 0 0 1-1 1H8a1 1 0 0 1-1-.77v-.11A.5.5 0 0 1 7 14V6a1 1 0 0 1 .88-1zm8 0a1 1 0 0 1 1 1v8a1 1 0 0 1-.88 1H16a1 1 0 0 1-1-1V6a1 1 0 0 1 .88-1zm18 0a1 1 0 0 1 1 .88V6a1 1 0 0 1-1 1h-3v2h3a1 1 0 0 1 1 .88V10a1 1 0 0 1-1 1h-3v2h3a1 1 0 0 1 1 .88V14a1 1 0 0 1-1 1h-4a1 1 0 0 1-1-.77v-.11a.5.5 0 0 1 0-.12V6a1 1 0 0 1 .56-.9A1 1 0 0 1 30 5zm-8 0a1 1 0 0 1 1 1v.1a.9.9 0 0 1-.11.35l-2.47 7.57a1.48 1.48 0 0 1-1.32.98h-.2a1.48 1.48 0 0 1-1.31-.95l-2.47-7.57a.9.9 0 0 1-.12-.36V6a1 1 0 0 1 .88-1H20a1 1 0 0 1 1 1v-.1l2 6.4 2-6.4a1 1 0 0 1 1-.9"),ge(e,s)},m(u,f){C(u,e,f),l&&l.m(e,null),p(e,t),p(e,n),o=!0},p(u,[f]){l&&l.p&&(!o||f&2)&&Ve(l,r,u,u[1],o?Me(r,u[1],f,null):Ae(u[1]),null),ge(e,s=Le(a,[{xmlns:"http://www.w3.org/2000/svg"},{width:"42"},{height:"20"},{"aria-hidden":"true"},{"data-testid":"live-icon"},{role:"img"},f&1&&u[0]]))},i(u){o||(d(l,u),o=!0)},o(u){_(l,u),o=!1},d(u){u&&k(e),l&&l.d(u)}}}function E2(i,e,t){let{$$slots:n={},$$scope:o}=e;return i.$$set=r=>{t(0,e=oe(oe({},e),he(r))),"$$scope"in r&&t(1,o=r.$$scope)},e=he(e),[e,o,n]}var Qs=class extends j{constructor(e){super(),W(this,e,E2,I2,U,{})}},Zf=Qs;function M2(i){let e,t,n,o,r=i[2].default,l=Ee(r,i,i[1],null),a=[{xmlns:"http://www.w3.org/2000/svg"},{width:"42"},{height:"20"},{fill:"none"},{"aria-hidden":"true"},{"data-testid":"live-active-icon"},{role:"img"},i[0]],s={};for(let u=0;u<a.length;u+=1)s=oe(s,a[u]);return{c(){e=N("svg"),l&&l.c(),t=N("rect"),n=N("path"),c(t,"width","42"),c(t,"height","20"),c(t,"fill","#FF3347"),c(t,"rx","5"),c(n,"fill","#F2F3F5"),c(n,"fill-rule","evenodd"),c(n,"d","M8 5a1 1 0 0 0-1 1v8a1 1 0 0 0 1 1h4a1 1 0 1 0 0-2H9V6a1 1 0 0 0-1-1m7 1a1 1 0 1 1 2 0v8a1 1 0 1 1-2 0zm15-1a1 1 0 0 0-1 1v8a1 1 0 0 0 1 1h4a1 1 0 1 0 0-2h-3v-2h3a1 1 0 1 0 0-2h-3V7h3a1 1 0 1 0 0-2zm-8.325 9.31-2.55-7.824a1 1 0 0 1-.117-.363L19 6.1h.005a1 1 0 1 1 1.99-.199L21 5.9l2 6.4 2-6.4h.005a1 1 0 0 1 1.99.2H27l-.008.023a1 1 0 0 1-.118.363l-2.55 7.824a1 1 0 0 1-.95.69h-.748a1 1 0 0 1-.95-.69z"),c(n,"clip-rule","evenodd"),ge(e,s)},m(u,f){C(u,e,f),l&&l.m(e,null),p(e,t),p(e,n),o=!0},p(u,[f]){l&&l.p&&(!o||f&2)&&Ve(l,r,u,u[1],o?Me(r,u[1],f,null):Ae(u[1]),null),ge(e,s=Le(a,[{xmlns:"http://www.w3.org/2000/svg"},{width:"42"},{height:"20"},{fill:"none"},{"aria-hidden":"true"},{"data-testid":"live-active-icon"},{role:"img"},f&1&&u[0]]))},i(u){o||(d(l,u),o=!0)},o(u){_(l,u),o=!1},d(u){u&&k(e),l&&l.d(u)}}}function V2(i,e,t){let{$$slots:n={},$$scope:o}=e;return i.$$set=r=>{t(0,e=oe(oe({},e),he(r))),"$$scope"in r&&t(1,o=r.$$scope)},e=he(e),[e,o,n]}var Ys=class extends j{constructor(e){super(),W(this,e,V2,M2,U,{})}},Xf=Ys;function A2(i){let e,t;return e=new Zf({}),{c(){D(e.$$.fragment)},m(n,o){R(e,n,o),t=!0},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){_(e.$$.fragment,n),t=!1},d(n){B(e,n)}}}function L2(i){let e,t;return e=new Xf({}),{c(){D(e.$$.fragment)},m(n,o){R(e,n,o),t=!0},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){_(e.$$.fragment,n),t=!1},d(n){B(e,n)}}}function R2(i){let e,t,n,o,r=[L2,A2],l=[];function a(s,u){return s[0]?0:1}return e=a(i,-1),t=l[e]=r[e](i),{c(){t.c(),n=st()},m(s,u){l[e].m(s,u),C(s,n,u),o=!0},p(s,[u]){let f=e;e=a(s,u),e!==f&&(ce(),_(l[f],1,1,()=>{l[f]=null}),fe(),t=l[e],t||(t=l[e]=r[e](s),t.c()),d(t,1),t.m(n.parentNode,n))},i(s){o||(d(t),o=!0)},o(s){_(t),o=!1},d(s){s&&k(n),l[e].d(s)}}}function B2(i,e,t){let{isActive:n=!1}=e;return i.$$set=o=>{"isActive"in o&&t(0,n=o.isActive)},[n]}var Zs=class extends j{constructor(e){super(),W(this,e,B2,R2,U,{isActive:0})}},gr=Zs;function D2(i){Te(i,"svelte-7pnl2h",".thumb-timer.svelte-7pnl2h.svelte-7pnl2h{position:absolute;z-index:2;bottom:0;right:0;margin:8px;padding:0 7px;border-radius:3px;background:var(--black-alpha-40);color:var(--white);font-size:12.5px;line-height:23px;height:23px;white-space:nowrap;transition:visibility var(--controls-transition-duration), opacity var(--controls-transition-duration)}.thumb-timer.live.svelte-7pnl2h.svelte-7pnl2h{font-size:0;line-height:20px;height:20px;border-radius:2px;background:var(--red)}.thumb-timer.hidden.svelte-7pnl2h.svelte-7pnl2h{visibility:hidden;opacity:0}.thumb-timer.svelte-7pnl2h.svelte-7pnl2h:after{content:'';display:inline-block;vertical-align:middle;height:100%}.thumb-timer-live-icon.svelte-7pnl2h.svelte-7pnl2h{display:inline-block;vertical-align:middle;width:42px;height:20px;margin:0 -7px}.thumb-timer-equalizer.svelte-7pnl2h.svelte-7pnl2h{display:inline-block;vertical-align:middle;position:relative;width:10px;height:10px;margin-top:-4px;margin-right:4px}.live.svelte-7pnl2h .thumb-timer-equalizer.svelte-7pnl2h{margin-top:-2px}.thumb-timer-equalizer.svelte-7pnl2h .col.svelte-7pnl2h{width:2px;height:10px;margin-right:2px;background:var(--white);position:absolute;bottom:0;transform-origin:50% 100%;animation:1.5s infinite linear alternate;animation-play-state:paused}.thumb-timer.playing.svelte-7pnl2h .thumb-timer-equalizer .col.svelte-7pnl2h{animation-play-state:running}.thumb-timer-equalizer.svelte-7pnl2h .col.svelte-7pnl2h:nth-child(1){left:0;animation-name:svelte-7pnl2h-thumb-timer-equalizer-col1}.thumb-timer-equalizer.svelte-7pnl2h .col.svelte-7pnl2h:nth-child(2){left:3px;animation-name:svelte-7pnl2h-thumb-timer-equalizer-col2}.thumb-timer-equalizer.svelte-7pnl2h .col.svelte-7pnl2h:nth-child(3){left:6px;animation-name:svelte-7pnl2h-thumb-timer-equalizer-col3}@keyframes svelte-7pnl2h-thumb-timer-equalizer-col1{0%{transform:scaleY(0.1)}25%{transform:scaleY(0.8)}50%{transform:scaleY(0.4)}75%{transform:scaleY(0.6)}100%{transform:scaleY(0.1)}}@keyframes svelte-7pnl2h-thumb-timer-equalizer-col2{0%{transform:scaleY(1)}25%{transform:scaleY(0.3)}50%{transform:scaleY(0.9)}75%{transform:scaleY(0.6)}100%{transform:scaleY(1)}}@keyframes svelte-7pnl2h-thumb-timer-equalizer-col3{0%{transform:scaleY(0.6)}25%{transform:scaleY(0.9)}50%{transform:scaleY(0.1)}75%{transform:scaleY(0.9)}100%{transform:scaleY(0.6)}}.thumb-timer-text.svelte-7pnl2h.svelte-7pnl2h{display:inline-block;text-align:right}")}function N2(i){let e=Ln(i[4]-i[3])+"",t;return{c(){t=Be(e)},m(n,o){C(n,t,o)},p(n,o){o&24&&e!==(e=Ln(n[4]-n[3])+"")&&Ze(t,e)},i:pe,o:pe,d(n){n&&k(t)}}}function O2(i){let e,t,n;return t=new gr({props:{isActive:!0}}),{c(){e=P("div"),D(t.$$.fragment),c(e,"class","thumb-timer-live-icon svelte-7pnl2h")},m(o,r){C(o,e,r),R(t,e,null),n=!0},p:pe,i(o){n||(d(t.$$.fragment,o),n=!0)},o(o){_(t.$$.fragment,o),n=!1},d(o){o&&k(e),B(t)}}}function F2(i){let e,t,n,o,r,l,a,s=[O2,N2],u=[];function f(m,h){return m[1]?0:1}return r=f(i,-1),l=u[r]=s[r](i),{c(){e=P("div"),t=P("div"),t.innerHTML='<div class="col svelte-7pnl2h"></div> <div class="col svelte-7pnl2h"></div> <div class="col svelte-7pnl2h"></div>',n=O(),o=P("span"),l.c(),c(t,"class","thumb-timer-equalizer svelte-7pnl2h"),c(o,"class","thumb-timer-text svelte-7pnl2h"),c(e,"role","timer"),c(e,"class","thumb-timer svelte-7pnl2h"),c(e,"data-testid","thumb-timer"),z(e,"live",i[1]),z(e,"hidden",i[0]),z(e,"playing",i[2])},m(m,h){C(m,e,h),p(e,t),p(e,n),p(e,o),u[r].m(o,null),a=!0},p(m,[h]){let y=r;r=f(m,h),r===y?u[r].p(m,h):(ce(),_(u[y],1,1,()=>{u[y]=null}),fe(),l=u[r],l?l.p(m,h):(l=u[r]=s[r](m),l.c()),d(l,1),l.m(o,null)),(!a||h&2)&&z(e,"live",m[1]),(!a||h&1)&&z(e,"hidden",m[0]),(!a||h&4)&&z(e,"playing",m[2])},i(m){a||(d(l),a=!0)},o(m){_(l),a=!1},d(m){m&&k(e),u[r].d()}}}function H2(i,e,t){let{isHidden:n=!1}=e,{isLive:o=!1}=e,{isPlaying:r=!1}=e,{position:l}=e,{duration:a}=e;return i.$$set=s=>{"isHidden"in s&&t(0,n=s.isHidden),"isLive"in s&&t(1,o=s.isLive),"isPlaying"in s&&t(2,r=s.isPlaying),"position"in s&&t(3,l=s.position),"duration"in s&&t(4,a=s.duration)},[n,o,r,l,a]}var Xs=class extends j{constructor(e){super(),W(this,e,H2,F2,U,{isHidden:0,isLive:1,isPlaying:2,position:3,duration:4},D2)}},br=Xs;var Al=i=>{if(document.queryCommandSupported&&document.queryCommandSupported("copy")){let e=document.createElement("textarea");e.textContent=i,e.style.position="absolute",e.style.top="-9999px",document.body.appendChild(e),e.select();try{document.execCommand("copy")}finally{document.body.removeChild(e)}}};var Js=require("@vkontakte/videoplayer-core");var xf=require("@vkontakte/videoplayer-shared");var z2=(0,xf.isAndroid)(),zo=i=>{i.stopPropagation(),i.preventDefault()},q2=i=>{var t;let e=i.previousElementSibling;e||(e=(t=i.parentNode)==null?void 0:t.lastElementChild),e==null||e.focus()},U2=i=>{var t;let e=i.nextElementSibling;e||(e=(t=i.parentNode)==null?void 0:t.firstElementChild),e==null||e.focus()},K2=i=>{let e=i.code;return e==="Tab"&&!i.shiftKey||e==="ArrowDown"},j2=i=>{let e=i.code;return e==="Tab"||e==="ArrowUp"},$f=i=>i.code==="Escape",W2=i=>i.code==="ArrowLeft",e1=(i,e=!0)=>{let t=i.code;return["Enter","Space"].includes(t)||!e&&t==="ArrowRight"},t1=i=>{if(K2(i)){zo(i),U2(i.target);return}j2(i)&&(zo(i),q2(i.target))},sl=i=>(i==null?void 0:i.detail)===0||z2&&(i==null?void 0:i.pointerType)==="",al=(i,e,t)=>ut(void 0,null,function*(){yield Gn(),i&&!i.classList.contains("opened")&&!e&&it(t)&&(yield Gn(),t.set(!1),i.focus())}),i1=(i,e,t)=>ut(void 0,null,function*(){yield Gn(),i&&!e&&it(t)&&(t.set(!1),i.focus())}),qo=(i,e,t)=>ut(void 0,null,function*(){yield Gn(),!!i&&e&&t&&setTimeout(()=>{i.firstChild.focus()},100)}),Ll=(i,e,t)=>ut(void 0,null,function*(){!!i&&t&&(e.set(!1),setTimeout(()=>{i.focus()},100))}),vr=(i,e)=>{t1(i),$f(i)&&(zo(i),e())},Rl=(i,e,t)=>ut(void 0,null,function*(){if(e1(i,!1)){zo(i),e(),yield Gn();let n=t();n==null||n.focus()}}),Bl=(i,e,t,n)=>ut(void 0,null,function*(){if(t1(i),W2(i)){zo(i),e(),t.set(!0);return}$f(i)&&(zo(i),n())}),an=(i,e)=>{e1(i)&&(zo(i),e())},n1=i=>{let e=i.getBoundingClientRect(),t=-14,n=e.left+e.width,o=e.top+t;return{right:n,bottom:o}},o1=i=>{if(!i)return{top:0,left:0};let e=i.getBoundingClientRect(),t=-58,n=8,o=e.left+n;return{bottom:e.bottom+t,left:o}};var Dl=require("@vkontakte/videoplayer-shared");function G2(i){Te(i,"svelte-1vzqlps","ul.svelte-1vzqlps{position:absolute;border-radius:8px;background:rgba(0, 0, 0, 0.72);transition:visibility .1s,opacity .1s;list-style:none;margin:0;padding:6px 0;max-height:100%;max-width:100%;overflow-x:hidden;overflow-y:auto}li.svelte-1vzqlps{padding:8px 16px;cursor:pointer;position:relative;display:block;color:rgba(255, 255, 255, 0.72);font-size:13px;line-height:18px;letter-spacing:-0.14px;white-space:nowrap}li.svelte-1vzqlps:hover{background:rgba(66, 66, 66, .5);color:var(--white)}")}function l1(i){var L;let e,t,n,o,r,l,a,s,u,f=(i[10].features.saveDebugInfoToFile?Q("menu_save_debug"):Q("menu_copy_debug"))+"",m,h,y,b,S=Q("menu_debug_overlay")+"",w,T,v,g,I=i[10].features.copyVideoLink&&((L=i[9].callbacks)==null?void 0:L.onCopyVideoLink)&&Q2(i),A=i[12]&&i[6]!==Js.ChromecastState.CONNECTED&&!i[17]&&s1(i);function q(x,G){return x[4]?Z2:Y2}let K=q(i,[-1,-1]),re=K(i),ae=i[10].features.videoRotate&&!i[17]&&X2(i),H=i[10].showSupport&&!i[7]&&a1(i);return{c(){e=P("ul"),I&&I.c(),t=O(),A&&A.c(),n=O(),o=P("li"),re.c(),l=O(),ae&&ae.c(),a=O(),H&&H.c(),s=O(),u=P("li"),m=Be(f),y=O(),b=P("li"),w=Be(S),c(o,"tabindex","0"),c(o,"role","menuitem"),c(o,"aria-label",r=Q("aria_label_menu_loop")),c(o,"class","svelte-1vzqlps"),c(u,"tabindex","0"),c(u,"role","menuitem"),c(u,"aria-label",h=i[10].features.saveDebugInfoToFile?Q("menu_save_debug"):Q("menu_copy_debug")),c(u,"class","svelte-1vzqlps"),c(b,"tabindex","0"),c(b,"role","menuitem"),c(b,"aria-label",T=i[8]?Q("aria_label_menu_debug_overlay_disable"):Q("aria_label_menu_debug_overlay_enable")),c(b,"class","svelte-1vzqlps"),c(e,"role","menu"),gi(e,"top",i[3]+"px"),gi(e,"left",i[2]+"px"),c(e,"class","svelte-1vzqlps")},m(x,G){C(x,e,G),I&&I.m(e,null),p(e,t),A&&A.m(e,null),p(e,n),p(e,o),re.m(o,null),p(e,l),ae&&ae.m(e,null),p(e,a),H&&H.m(e,null),p(e,s),p(e,u),p(u,m),p(e,y),p(e,b),p(b,w),i[42](e),v||(g=[de(o,"click",ct(i[24])),de(o,"keydown",i[30]),de(u,"click",ct(i[21])),de(u,"keydown",i[32]),de(b,"click",ct(i[22])),de(b,"keydown",i[33]),de(e,"contextmenu",Ot(i[39])),de(e,"keydown",i[26])],v=!0)},p(x,G){var J;x[10].features.copyVideoLink&&((J=x[9].callbacks)!=null&&J.onCopyVideoLink)&&I.p(x,G),x[12]&&x[6]!==Js.ChromecastState.CONNECTED&&!x[17]?A?A.p(x,G):(A=s1(x),A.c(),A.m(e,n)):A&&(A.d(1),A=null),K===(K=q(x,G))&&re?re.p(x,G):(re.d(1),re=K(x),re&&(re.c(),re.m(o,null))),x[10].features.videoRotate&&!x[17]&&ae.p(x,G),x[10].showSupport&&!x[7]?H?H.p(x,G):(H=a1(x),H.c(),H.m(e,s)):H&&(H.d(1),H=null),G[0]&256&&T!==(T=x[8]?Q("aria_label_menu_debug_overlay_disable"):Q("aria_label_menu_debug_overlay_enable"))&&c(b,"aria-label",T),G[0]&8&&gi(e,"top",x[3]+"px"),G[0]&4&&gi(e,"left",x[2]+"px")},d(x){x&&k(e),I&&I.d(),A&&A.d(),re.d(),ae&&ae.d(),H&&H.d(),i[42](null),v=!1,lt(g)}}}function Q2(i){let e,t=Q("menu_copy_video_link")+"",n,o,r,l,a,s,u=!i[5]&&!i[17]&&r1(i);return{c(){e=P("li"),n=Be(t),r=O(),u&&u.c(),l=st(),c(e,"tabindex","0"),c(e,"role","menuitem"),c(e,"aria-label",o=Q("menu_copy_video_link")),c(e,"class","svelte-1vzqlps")},m(f,m){C(f,e,m),p(e,n),C(f,r,m),u&&u.m(f,m),C(f,l,m),a||(s=[de(e,"click",ct(i[40])),de(e,"keydown",i[27])],a=!0)},p(f,m){!f[5]&&!f[17]?u?u.p(f,m):(u=r1(f),u.c(),u.m(l.parentNode,l)):u&&(u.d(1),u=null)},d(f){f&&(k(e),k(r),k(l)),u&&u.d(f),a=!1,lt(s)}}}function r1(i){let e,t=Q("menu_copy_video_link_with_timestamp")+"",n,o,r,l;return{c(){e=P("li"),n=Be(t),c(e,"tabindex","0"),c(e,"role","menuitem"),c(e,"aria-label",o=Q("menu_copy_video_link_with_timestamp")),c(e,"class","svelte-1vzqlps")},m(a,s){C(a,e,s),p(e,n),r||(l=[de(e,"click",ct(i[41])),de(e,"keydown",i[28])],r=!0)},p:pe,d(a){a&&k(e),r=!1,lt(l)}}}function s1(i){let e,t=Q("menu_pip")+"",n,o,r,l;return{c(){e=P("li"),n=Be(t),c(e,"tabindex","0"),c(e,"role","menuitem"),c(e,"aria-label",o=Q("menu_pip")),c(e,"class","svelte-1vzqlps")},m(a,s){C(a,e,s),p(e,n),r||(l=[de(e,"click",ct(i[23])),de(e,"keydown",i[29])],r=!0)},p:pe,d(a){a&&k(e),r=!1,lt(l)}}}function Y2(i){let e=Q("menu_video_loop_on")+"",t;return{c(){t=Be(e)},m(n,o){C(n,t,o)},p:pe,d(n){n&&k(t)}}}function Z2(i){let e=Q("menu_video_loop_off")+"",t;return{c(){t=Be(e)},m(n,o){C(n,t,o)},p:pe,d(n){n&&k(t)}}}function X2(i){let e,t=Q("menu_video_rotate")+"",n,o,r,l;return{c(){e=P("li"),n=Be(t),c(e,"tabindex","0"),c(e,"role","menuitem"),c(e,"aria-label",o=Q("aria_label_menu_rotate")),c(e,"class","svelte-1vzqlps")},m(a,s){C(a,e,s),p(e,n),r||(l=[de(e,"click",ct(i[19])),de(e,"keydown",i[30])],r=!0)},p:pe,d(a){a&&k(e),r=!1,lt(l)}}}function a1(i){let e,t=Q("menu_report")+"",n,o,r,l;return{c(){e=P("li"),n=Be(t),c(e,"tabindex","0"),c(e,"role","menuitem"),c(e,"aria-label",o=`${Q("menu_report")}. ${Q("aria_label_new_tab_alert")}`),c(e,"class","svelte-1vzqlps")},m(a,s){C(a,e,s),p(e,n),r||(l=[de(e,"click",ct(i[20])),de(e,"keydown",i[31])],r=!0)},p:pe,d(a){a&&k(e),r=!1,lt(l)}}}function J2(i){let e,t=i[1]&&l1(i);return{c(){t&&t.c(),e=st()},m(n,o){t&&t.m(n,o),C(n,e,o)},p(n,o){n[1]?t?t.p(n,o):(t=l1(n),t.c(),t.m(e.parentNode,e)):t&&(t.d(1),t=null)},i:pe,o:pe,d(n){n&&k(e),t&&t.d(n)}}}function x2(i,e,t){var Ce;let n,o,r,l,a,s,{visible:u=!1}=e,{supportLink:f}=e,{position:m={top:0,left:0}}=e,{playerContainerRef:h=void 0}=e,{controlsContainerRef:y=void 0}=e,{menuElementRef:b=void 0}=e,{returnFocus:S}=e,w=0,T=0,v=nt(),g=Wt(),I=v.ui.contextMenu.visible$,A=v.ui.debugPanelVisible;F(i,A,Z=>t(8,s=Z));let q=v.webApi.pictureInPictureApi,K=(Ce=v.webApi.pictureInPictureApi)==null?void 0:Ce.info.isActive$;F(i,K,Z=>t(7,a=Z));let re=v.state.chromecastState$;F(i,re,Z=>t(6,l=Z));let ae=v.state.isLive$;F(i,ae,Z=>t(5,r=Z));let H=v.state.positionExact$;F(i,H,Z=>t(43,n=Z));let L=v.state.isInteractive,x=v.state.looped$;F(i,x,Z=>t(4,o=Z));let G=()=>{I.set(!1)},J=(Z,Pe)=>{if(!b||!h||!y)return;let ue=b.getBoundingClientRect(),Ie=h.getBoundingClientRect();t(2,w=Z-Ie.left),t(3,T=Pe-Ie.top),w+ue.width>Ie.width&&t(2,w=Ie.width-ue.width),T+ue.height>Ie.height&&t(3,T=Ie.height-ue.height),t(2,w=Math.max(w,0)),t(3,T=Math.max(T,0))},E=()=>{G(),v.actions.internal.videoRotate()},te=()=>{window.open(f,"_blank"),G(),v.actions.internal.pause()},M=()=>{let Z=v.actions.internal.getDebugTextData();if(g.features.saveDebugInfoToFile){let Pe=new Blob([...Z],{type:"plain/text"}),ue=window.URL.createObjectURL(Pe);or(ue,"vk_player_debug_info","txt")}else Al(v.actions.internal.getDebugTextData());G(),S==null||S()},ee=()=>{A.set(!0),G(),S==null||S()},ke=()=>ut(this,null,function*(){try{q!=null&&q.isActive()?yield q==null?void 0:q.remove():yield q==null?void 0:q.request()}finally{G(),S==null||S()}}),Ge=()=>{v.actions.internal.setLooped(!o),G()},Ke=(Z=!1)=>{var Pe,ue;if((Pe=v.callbacks)!=null&&Pe.onCopyVideoLink){let Ie=(ue=v.callbacks)==null?void 0:ue.onCopyVideoLink(Z,n);Ie&&Al(Ie)}G()},Je=Z=>{vr(Z,G)},We=Z=>{an(Z,()=>Ke())},ve=Z=>{an(Z,()=>Ke(!0))},X=Z=>{an(Z,()=>ke())},be=Z=>{an(Z,()=>E())},Ne=Z=>{an(Z,()=>te())},xe=Z=>{an(Z,()=>M())},et=Z=>{an(Z,()=>ee())};function ye(Z){An.call(this,i,Z)}let Re=()=>Ke(),je=()=>Ke(!0);function Xe(Z){_e[Z?"unshift":"push"](()=>{b=Z,t(0,b)})}return i.$$set=Z=>{"visible"in Z&&t(1,u=Z.visible),"supportLink"in Z&&t(34,f=Z.supportLink),"position"in Z&&t(35,m=Z.position),"playerContainerRef"in Z&&t(36,h=Z.playerContainerRef),"controlsContainerRef"in Z&&t(37,y=Z.controlsContainerRef),"menuElementRef"in Z&&t(0,b=Z.menuElementRef),"returnFocus"in Z&&t(38,S=Z.returnFocus)},i.$$.update=()=>{if(i.$$.dirty[0]&1|i.$$.dirty[1]&112){e:if(b&&h&&y){let{top:Z,left:Pe,bottom:ue,right:Ie}=m,Ye=Pe!=null?Pe:0,ft=Z!=null?Z:0,mt=b.getBoundingClientRect();(0,Dl.isNullable)(Pe)&&!(0,Dl.isNullable)(Ie)&&(Ye=Ie-mt.width),(0,Dl.isNullable)(Z)&&!(0,Dl.isNullable)(ue)&&(ft=ue-mt.height),Ye=Math.max(Ye,0),ft=Math.max(ft,0),J(Ye,ft)}}},[b,u,w,T,o,r,l,a,s,v,g,A,q,K,re,ae,H,L,x,E,te,M,ee,ke,Ge,Ke,Je,We,ve,X,be,Ne,xe,et,f,m,h,y,S,ye,Re,je,Xe]}var xs=class extends j{constructor(e){super(),W(this,e,x2,J2,U,{visible:1,supportLink:34,position:35,playerContainerRef:36,controlsContainerRef:37,menuElementRef:0,returnFocus:38},G2,[-1,-1])}},u1=xs;var yr=class{constructor(e){this.value=e,this.next=null}};var ul=class{constructor(e){this.top=null,this.bottom=null,this.size=0,this.maxSize=e}push(e){let t=new yr(e);this.top?(this.top.next=t,this.top=t):(this.top=t,this.bottom=t),this.size++,this.size>this.maxSize&&this.bottom&&(this.bottom=this.bottom.next)}getValuesFromBottom(){let e=[],t=this.bottom;for(;t;)e.push(t.value),t=t.next;return e}};function $2(i){Te(i,"svelte-1ssl9eb",".container.svelte-1ssl9eb{display:inline-block;width:120px;height:16px}canvas.svelte-1ssl9eb{transform:scale(1, -1);margin-top:2px}")}function eh(i){let e,t;return{c(){e=P("div"),t=P("canvas"),c(t,"class","svelte-1ssl9eb"),c(e,"class","container svelte-1ssl9eb")},m(n,o){C(n,e,o),p(e,t),i[3](t)},p:pe,i:pe,o:pe,d(n){n&&k(e),i[3](null)}}}var $s=16,ea=120,c1=60;function th(i,e,t,n,o){o===0&&(o=1),i.fillStyle="#fff",i.fillRect(e,t,n,o)}function ih(i,e,t){let{values:n=[]}=e,o,r,l=ea/c1;Ft(()=>{t(0,o.width=ea,o),t(0,o.height=$s,o),t(2,r=o.getContext("2d"))});function a(s){_e[s?"unshift":"push"](()=>{o=s,t(0,o)})}return i.$$set=s=>{"values"in s&&t(1,n=s.values)},i.$$.update=()=>{if(i.$$.dirty&6)e:{let s="";if(r){let u=n[0];for(let m=1;m<n.length;m++)n[m]>u&&(u=n[m]);r.clearRect(0,0,ea,$s);let f=c1-1;for(let m=n.length-1;m>=0;m--){let h=f*l,y=u>0?$s*(n[m]/u):0;th(r,h,0,l,y),s=y+" "+s,f--}}}},[o,n,r,a]}var ta=class extends j{constructor(e){super(),W(this,e,ih,eh,U,{values:1},$2)}},wr=ta;var ia=require("@vkontakte/videoplayer-shared");function nh(i){Te(i,"svelte-1fypj5i",".container.svelte-1fypj5i.svelte-1fypj5i.svelte-1fypj5i{background:rgba(28, 28, 28, 0.8);border-radius:4px;color:#fff;left:20px;position:absolute;top:45px;min-width:160px;font-size:10px;text-align:left}.container-mobile.svelte-1fypj5i.svelte-1fypj5i.svelte-1fypj5i{top:16px;left:16px}button.svelte-1fypj5i.svelte-1fypj5i.svelte-1fypj5i{position:absolute;right:5px;top:3px;cursor:pointer;outline:0;border:none;background-color:transparent;padding:0;color:#fff}.content.svelte-1fypj5i.svelte-1fypj5i.svelte-1fypj5i{padding:5px}.content.svelte-1fypj5i>div.svelte-1fypj5i>div.svelte-1fypj5i{display:inline-block;text-align:right;width:50px;padding:0 5px}")}function f1(i){let e,t,n,o,r=i[0].id+"",l;return{c(){e=P("div"),t=P("div"),t.textContent="Video id",n=O(),o=P("span"),l=Be(r),c(t,"class","svelte-1fypj5i"),c(e,"class","svelte-1fypj5i")},m(a,s){C(a,e,s),p(e,t),p(e,n),p(e,o),p(o,l)},p(a,s){s&1&&r!==(r=a[0].id+"")&&Ze(l,r)},d(a){a&&k(e)}}}function d1(i){let e,t,n,o,r=i[0].provider+"",l;return{c(){e=P("div"),t=P("div"),t.textContent="Provider",n=O(),o=P("span"),l=Be(r),c(t,"class","svelte-1fypj5i"),c(e,"class","svelte-1fypj5i")},m(a,s){C(a,e,s),p(e,t),p(e,n),p(e,o),p(o,l)},p(a,s){s&1&&r!==(r=a[0].provider+"")&&Ze(l,r)},d(a){a&&k(e)}}}function m1(i){let e,t,n,o,r=i[0].viewport+"",l;return{c(){e=P("div"),t=P("div"),t.textContent="Viewport",n=O(),o=P("span"),l=Be(r),c(t,"class","svelte-1fypj5i"),c(e,"class","svelte-1fypj5i")},m(a,s){C(a,e,s),p(e,t),p(e,n),p(e,o),p(o,l)},p(a,s){s&1&&r!==(r=a[0].viewport+"")&&Ze(l,r)},d(a){a&&k(e)}}}function p1(i){let e,t,n,o,r=i[0].videoSize+"",l;return{c(){e=P("div"),t=P("div"),t.textContent="Video size",n=O(),o=P("span"),l=Be(r),c(t,"class","svelte-1fypj5i"),c(e,"class","svelte-1fypj5i")},m(a,s){C(a,e,s),p(e,t),p(e,n),p(e,o),p(o,l)},p(a,s){s&1&&r!==(r=a[0].videoSize+"")&&Ze(l,r)},d(a){a&&k(e)}}}function _1(i){let e,t,n,o,r=i[0].cdn+"",l;return{c(){e=P("div"),t=P("div"),t.textContent="CDN host",n=O(),o=P("span"),l=Be(r),c(t,"class","svelte-1fypj5i"),c(e,"class","svelte-1fypj5i")},m(a,s){C(a,e,s),p(e,t),p(e,n),p(e,o),p(o,l)},p(a,s){s&1&&r!==(r=a[0].cdn+"")&&Ze(l,r)},d(a){a&&k(e)}}}function h1(i){let e,t,n,o,r=i[0].volume+"",l,a;return{c(){e=P("div"),t=P("div"),t.textContent="Volume",n=O(),o=P("span"),l=Be(r),a=Be(" %"),c(t,"class","svelte-1fypj5i"),c(e,"class","svelte-1fypj5i")},m(s,u){C(s,e,u),p(e,t),p(e,n),p(e,o),p(o,l),p(o,a)},p(s,u){u&1&&r!==(r=s[0].volume+"")&&Ze(l,r)},d(s){s&&k(e)}}}function g1(i){let e,t,n,o,r=i[0].buffer.toFixed(2)+"",l,a;return{c(){e=P("div"),t=P("div"),t.textContent="Buffer",n=O(),o=P("span"),l=Be(r),a=Be(" s"),c(t,"class","svelte-1fypj5i"),c(e,"class","svelte-1fypj5i")},m(s,u){C(s,e,u),p(e,t),p(e,n),p(e,o),p(o,l),p(o,a)},p(s,u){u&1&&r!==(r=s[0].buffer.toFixed(2)+"")&&Ze(l,r)},d(s){s&&k(e)}}}function b1(i){let e,t,n,o,r=[{value:i[0].currentVideoSegmentLength,title:"Video"},{value:i[0].currentAudioSegmentLength,title:"Audio"}].filter(w1).map(k1).join(" / ")+"",l;return{c(){e=P("div"),t=P("div"),t.textContent="Segment",n=O(),o=P("span"),l=Be(r),c(t,"class","svelte-1fypj5i"),c(e,"class","svelte-1fypj5i")},m(a,s){C(a,e,s),p(e,t),p(e,n),p(e,o),p(o,l)},p(a,s){s&1&&r!==(r=[{value:a[0].currentVideoSegmentLength,title:"Video"},{value:a[0].currentAudioSegmentLength,title:"Audio"}].filter(w1).map(k1).join(" / ")+"")&&Ze(l,r)},d(a){a&&k(e)}}}function v1(i){let e,t,n,o,r,l,a=i[0].speed.toFixed(2)+"",s,u,f;return o=new wr({props:{values:i[5]}}),{c(){e=P("div"),t=P("div"),t.textContent="Network",n=O(),D(o.$$.fragment),r=O(),l=P("span"),s=Be(a),u=Be(" Kbps"),c(t,"class","svelte-1fypj5i"),c(e,"class","svelte-1fypj5i")},m(m,h){C(m,e,h),p(e,t),p(e,n),R(o,e,null),p(e,r),p(e,l),p(l,s),p(l,u),f=!0},p(m,h){let y={};h&32&&(y.values=m[5]),o.$set(y),(!f||h&1)&&a!==(a=m[0].speed.toFixed(2)+"")&&Ze(s,a)},i(m){f||(d(o.$$.fragment,m),f=!0)},o(m){_(o.$$.fragment,m),f=!1},d(m){m&&k(e),B(o)}}}function y1(i){let e,t,n,o,r,l,a=i[0].bitrate.toFixed(2)+"",s,u,f;return o=new wr({props:{values:i[6]}}),{c(){e=P("div"),t=P("div"),t.textContent="V bitrate",n=O(),D(o.$$.fragment),r=O(),l=P("span"),s=Be(a),u=Be(" Kbps"),c(t,"class","svelte-1fypj5i"),c(e,"class","svelte-1fypj5i")},m(m,h){C(m,e,h),p(e,t),p(e,n),R(o,e,null),p(e,r),p(e,l),p(l,s),p(l,u),f=!0},p(m,h){let y={};h&64&&(y.values=m[6]),o.$set(y),(!f||h&1)&&a!==(a=m[0].bitrate.toFixed(2)+"")&&Ze(s,a)},i(m){f||(d(o.$$.fragment,m),f=!0)},o(m){_(o.$$.fragment,m),f=!1},d(m){m&&k(e),B(o)}}}function oh(i){let e,t,n,o,r,l,a,s,u=i[0].version+"",f,m,h,y,b,S,w,T,v,g,I,A,q,K,re,ae,H,L,x,G,J,E,te,M,ee,ke,Ge,Ke,Je,We,ve,X,be=i[0].id&&f1(i),Ne=i[0].provider&&d1(i),xe=i[0].viewport&&m1(i),et=i[0].videoSize&&p1(i),ye=i[0].cdn&&_1(i),Re=i[0].volume&&h1(i),je=i[0].buffer&&g1(i),Xe=(i[0].currentVideoSegmentLength||i[0].currentAudioSegmentLength)&&b1(i),Ce=i[0].speed&&v1(i),Z=i[0].bitrate&&y1(i);return ee=new wr({props:{values:i[4]}}),{c(){e=P("div"),t=P("button"),t.textContent="[x]",n=O(),o=P("div"),r=P("div"),l=P("div"),l.textContent="Version",a=O(),s=P("span"),f=Be(u),m=O(),be&&be.c(),h=O(),Ne&&Ne.c(),y=O(),xe&&xe.c(),b=O(),et&&et.c(),S=O(),ye&&ye.c(),w=O(),Re&&Re.c(),T=O(),je&&je.c(),v=O(),Xe&&Xe.c(),g=O(),I=P("div"),A=P("div"),A.textContent="Dropped",q=O(),K=P("span"),re=Be(i[2]),ae=Be(" / "),H=Be(i[1]),L=Be(" frames"),x=O(),Ce&&Ce.c(),G=O(),Z&&Z.c(),J=O(),E=P("div"),te=P("div"),te.textContent="FPS",M=O(),D(ee.$$.fragment),ke=O(),Ge=P("span"),Ke=Be(i[3]),c(t,"class","close svelte-1fypj5i"),c(t,"title","\u0437\u0430\u043A\u0440\u044B\u0442\u044C"),c(l,"class","svelte-1fypj5i"),c(r,"class","svelte-1fypj5i"),c(A,"class","svelte-1fypj5i"),c(I,"class","svelte-1fypj5i"),c(te,"class","svelte-1fypj5i"),c(E,"class","svelte-1fypj5i"),c(o,"class","content svelte-1fypj5i"),c(e,"class","container svelte-1fypj5i"),c(e,"role","region"),c(e,"aria-label",Je=Q("aria_label_debug_panel")),z(e,"container-mobile",i[7])},m(Pe,ue){C(Pe,e,ue),p(e,t),p(e,n),p(e,o),p(o,r),p(r,l),p(r,a),p(r,s),p(s,f),p(o,m),be&&be.m(o,null),p(o,h),Ne&&Ne.m(o,null),p(o,y),xe&&xe.m(o,null),p(o,b),et&&et.m(o,null),p(o,S),ye&&ye.m(o,null),p(o,w),Re&&Re.m(o,null),p(o,T),je&&je.m(o,null),p(o,v),Xe&&Xe.m(o,null),p(o,g),p(o,I),p(I,A),p(I,q),p(I,K),p(K,re),p(K,ae),p(K,H),p(K,L),p(o,x),Ce&&Ce.m(o,null),p(o,G),Z&&Z.m(o,null),p(o,J),p(o,E),p(E,te),p(E,M),R(ee,E,null),p(E,ke),p(E,Ge),p(Ge,Ke),We=!0,ve||(X=de(t,"click",ct(i[9])),ve=!0)},p(Pe,[ue]){(!We||ue&1)&&u!==(u=Pe[0].version+"")&&Ze(f,u),Pe[0].id?be?be.p(Pe,ue):(be=f1(Pe),be.c(),be.m(o,h)):be&&(be.d(1),be=null),Pe[0].provider?Ne?Ne.p(Pe,ue):(Ne=d1(Pe),Ne.c(),Ne.m(o,y)):Ne&&(Ne.d(1),Ne=null),Pe[0].viewport?xe?xe.p(Pe,ue):(xe=m1(Pe),xe.c(),xe.m(o,b)):xe&&(xe.d(1),xe=null),Pe[0].videoSize?et?et.p(Pe,ue):(et=p1(Pe),et.c(),et.m(o,S)):et&&(et.d(1),et=null),Pe[0].cdn?ye?ye.p(Pe,ue):(ye=_1(Pe),ye.c(),ye.m(o,w)):ye&&(ye.d(1),ye=null),Pe[0].volume?Re?Re.p(Pe,ue):(Re=h1(Pe),Re.c(),Re.m(o,T)):Re&&(Re.d(1),Re=null),Pe[0].buffer?je?je.p(Pe,ue):(je=g1(Pe),je.c(),je.m(o,v)):je&&(je.d(1),je=null),Pe[0].currentVideoSegmentLength||Pe[0].currentAudioSegmentLength?Xe?Xe.p(Pe,ue):(Xe=b1(Pe),Xe.c(),Xe.m(o,g)):Xe&&(Xe.d(1),Xe=null),(!We||ue&4)&&Ze(re,Pe[2]),(!We||ue&2)&&Ze(H,Pe[1]),Pe[0].speed?Ce?(Ce.p(Pe,ue),ue&1&&d(Ce,1)):(Ce=v1(Pe),Ce.c(),d(Ce,1),Ce.m(o,G)):Ce&&(ce(),_(Ce,1,1,()=>{Ce=null}),fe()),Pe[0].bitrate?Z?(Z.p(Pe,ue),ue&1&&d(Z,1)):(Z=y1(Pe),Z.c(),d(Z,1),Z.m(o,J)):Z&&(ce(),_(Z,1,1,()=>{Z=null}),fe());let Ie={};ue&16&&(Ie.values=Pe[4]),ee.$set(Ie),(!We||ue&8)&&Ze(Ke,Pe[3]),(!We||ue&128)&&z(e,"container-mobile",Pe[7])},i(Pe){We||(d(Ce),d(Z),d(ee.$$.fragment,Pe),We=!0)},o(Pe){_(Ce),_(Z),_(ee.$$.fragment,Pe),We=!1},d(Pe){Pe&&k(e),be&&be.d(),Ne&&Ne.d(),xe&&xe.d(),et&&et.d(),ye&&ye.d(),Re&&Re.d(),je&&je.d(),Xe&&Xe.d(),Ce&&Ce.d(),Z&&Z.d(),B(ee),ve=!1,X()}}}var w1=({value:i})=>i,k1=({value:i,title:e})=>`${e} ${((i!=null?i:0)/1e3).toFixed(2)} s`;function lh(i,e,t){let n,o=nt(),r=o.ui.debugPanelVisible,l=o.ui.isMobile;F(i,l,g=>t(7,n=g));let a=()=>{ia.safeStorage.remove(Il),r.set(!1)},s=o.actions.internal.getDebugPanelData(),u=o.actions.internal.getVideoElement(),f=0,m=0,h=0,y=new ul(60),b=new ul(60),S=new ul(60),w=[],T=[],v=[];return Ft(()=>{ia.safeStorage.set(Il,"true"),o.actions.internal.startLogging(),u&&(t(2,m=u.getVideoPlaybackQuality().droppedVideoFrames),t(1,f=u.getVideoPlaybackQuality().totalVideoFrames));let g=window.setInterval(()=>{t(0,s=o.actions.internal.getDebugPanelData())},500),I;return u&&(I=window.setInterval(()=>{if(u){t(2,m=u.getVideoPlaybackQuality().droppedVideoFrames);let A=u.getVideoPlaybackQuality().totalVideoFrames;t(3,h=A-f),t(1,f=A),y.push(h),s.speed&&b.push(s.speed),s.bitrate&&S.push(s.bitrate),t(4,w=y.getValuesFromBottom()),t(5,T=b.getValuesFromBottom()),t(6,v=S.getValuesFromBottom())}},1e3)),()=>{o.actions.internal.stopLogging(),clearInterval(g),I&&clearInterval(I)}}),[s,f,m,h,w,T,v,n,l,a]}var na=class extends j{constructor(e){super(),W(this,e,lh,oh,U,{},nh)}},kr=na;function rh(i){Te(i,"svelte-1ome55p",".close.svelte-1ome55p{cursor:pointer;opacity:0.8;transition:opacity 0.2s;position:relative;width:16px;height:16px}.close.svelte-1ome55p:hover{opacity:1}.close.svelte-1ome55p:before,.close.svelte-1ome55p:after{position:absolute;left:8px;content:' ';height:16px;width:2px;background-color:var(--white)}.close.svelte-1ome55p:before{transform:rotate(45deg)}.close.svelte-1ome55p:after{transform:rotate(-45deg)}")}function sh(i){let e,t,n;return{c(){e=P("div"),c(e,"class","close svelte-1ome55p")},m(o,r){C(o,e,r),t||(n=de(e,"click",ct(i[0])),t=!0)},p:pe,i:pe,o:pe,d(o){o&&k(e),t=!1,n()}}}function ah(i){function e(t){An.call(this,i,t)}return[e]}var oa=class extends j{constructor(e){super(),W(this,e,ah,sh,U,{},rh)}},C1=oa;var S1=require("@vkontakte/videoplayer-shared");function uh(i){Te(i,"svelte-8jhsry",`.timer.svelte-8jhsry{border-radius:50%;transition:background .2s;background:rgba(31, 31, 31, .65);width:50px;height:50px;display:flex;align-items:center;justify-content:space-around}.timer.svelte-8jhsry:hover{background:rgba(31, 31, 31, .85)
25
+ }.timer-canvas.svelte-8jhsry{width:50px;height:50px;position:absolute}.timer-play-icon.svelte-8jhsry{width:22px;height:26px}`)}function ch(i){let e,t,n,o,r,l,a;return{c(){e=P("div"),t=P("canvas"),n=O(),o=N("svg"),r=N("g"),l=N("g"),a=N("path"),c(t,"class","timer-canvas svelte-8jhsry"),c(t,"width","100"),c(t,"height","100"),c(a,"class","_play"),c(a,"d","m8.13340613 5.10548415 10.49681277 6.24354325c.3559987.2117494.472936.6720001.2611866 1.0279989-.0638111.1072809-.1533894.1969388-.2606135.2608453l-10.4968128 6.256187c-.35581027.2120659-.81616483.095538-1.02823068-.2602722-.06921066-.1161237-.10574852-.2487949-.10574852-.3839792v-12.49973035c0-.41421357.33578644-.75.75-.75.13495801 0 .26741554.03641567.38340613.1054073z"),c(a,"fill","#fff"),c(l,"fill-rule","nonzero"),c(r,"fill","none"),c(r,"fill-rule","evenodd"),c(o,"class","timer-play-icon svelte-8jhsry"),c(o,"viewBox","0 0 24 24"),c(o,"xmlns","http://www.w3.org/2000/svg"),c(e,"class","timer svelte-8jhsry")},m(s,u){C(s,e,u),p(e,t),i[2](t),p(e,n),p(e,o),p(o,r),p(r,l),p(l,a)},p:pe,i:pe,o:pe,d(s){s&&k(e),i[2](null)}}}var fh=5e3;function dh(i,e,t){let{onTimerEnded:n=S1.noop}=e,o;Ft(()=>{let l,a=o.getContext("2d");if(!a)return;a.lineWidth=6,a.lineCap="round",a.strokeStyle="#fff";let s=Date.now(),u=()=>{let f=(Date.now()-s)/fh;f<1?(a.clearRect(0,0,100,100),a.beginPath(),a.arc(50,50,47,-Math.PI/2,-Math.PI/2+Math.PI*2*f),a.stroke(),l=requestAnimationFrame(u)):n()};return l=requestAnimationFrame(u),()=>{cancelAnimationFrame(l)}});function r(l){_e[l?"unshift":"push"](()=>{o=l,t(0,o)})}return i.$$set=l=>{"onTimerEnded"in l&&t(1,n=l.onTimerEnded)},[o,n,r]}var la=class extends j{constructor(e){super(),W(this,e,dh,ch,U,{onTimerEnded:1},uh)}},T1=la;function mh(i){Te(i,"svelte-kisfwc",".overlay.svelte-kisfwc{width:100%;height:100%;background:rgba(0, 0, 0, 0.72);position:absolute}.next-video.svelte-kisfwc{position:absolute;top:50%;left:50%;transform:translate(-50%, -50%);display:flex;width:362px;flex-direction:column}.top.svelte-kisfwc{display:flex;justify-content:space-between}.caption.svelte-kisfwc{font-size:11px;font-weight:bold;color:var(--white);text-transform:uppercase;opacity:0.8}.row.svelte-kisfwc{height:102px;background:rgba(48, 48, 48, .8);cursor:pointer;margin-top:6px;display:flex;flex-direction:row;flex-wrap:wrap;width:100%}.column.svelte-kisfwc{display:flex;flex-direction:column;flex-basis:50%}.thumb.svelte-kisfwc{width:100%;height:100%;background:no-repeat center;background-size:cover;display:flex;align-items:center;position:relative;justify-content:space-around}.thumb-overlay.svelte-kisfwc{width:100%;height:100%;background:var(--black);opacity:0.3;position:absolute}.title.svelte-kisfwc{padding:10px 16px;font-size:12px;font-weight:bold;color:var(--white);line-height:1.6;max-height:52px;overflow:hidden}")}function P1(i){let e,t;return e=new T1({props:{onTimerEnded:i[2]}}),{c(){D(e.$$.fragment)},m(n,o){R(e,n,o),t=!0},p(n,o){let r={};o&4&&(r.onTimerEnded=n[2]),e.$set(r)},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){_(e.$$.fragment,n),t=!1},d(n){B(e,n)}}}function ph(i){let e,t,n,o,r,l,a,s,u,f,m,h,y,b,S,w,T,v,g,I,A;a=new C1({}),a.$on("click",i[4]);let q=i[3]&&P1(i);return{c(){e=P("div"),t=O(),n=P("div"),o=P("div"),r=P("div"),r.textContent="\u0441\u043B\u0435\u0434\u0443\u044E\u0449\u0435\u0435 \u0432\u0438\u0434\u0435\u043E",l=O(),D(a.$$.fragment),s=O(),u=P("div"),f=P("div"),m=P("div"),h=P("div"),y=O(),q&&q.c(),S=O(),w=P("div"),T=P("div"),v=Be(i[0]),c(e,"class","overlay svelte-kisfwc"),c(r,"class","caption svelte-kisfwc"),c(o,"class","top svelte-kisfwc"),c(h,"class","thumb-overlay svelte-kisfwc"),c(m,"class","thumb svelte-kisfwc"),c(m,"style",b=`background-image: url('${i[1]}')`),c(f,"class","column svelte-kisfwc"),c(T,"class","title svelte-kisfwc"),c(w,"class","column svelte-kisfwc"),c(u,"class","row svelte-kisfwc"),c(n,"class","next-video svelte-kisfwc")},m(K,re){C(K,e,re),C(K,t,re),C(K,n,re),p(n,o),p(o,r),p(o,l),R(a,o,null),p(n,s),p(n,u),p(u,f),p(f,m),p(m,h),p(m,y),q&&q.m(m,null),p(u,S),p(u,w),p(w,T),p(T,v),g=!0,I||(A=de(u,"click",function(){Vi(i[2])&&i[2].apply(this,arguments)}),I=!0)},p(K,[re]){i=K,i[3]?q?(q.p(i,re),re&8&&d(q,1)):(q=P1(i),q.c(),d(q,1),q.m(m,null)):q&&(ce(),_(q,1,1,()=>{q=null}),fe()),(!g||re&2&&b!==(b=`background-image: url('${i[1]}')`))&&c(m,"style",b),(!g||re&1)&&Ze(v,i[0])},i(K){g||(d(a.$$.fragment,K),d(q),g=!0)},o(K){_(a.$$.fragment,K),_(q),g=!1},d(K){K&&(k(e),k(t),k(n)),B(a),q&&q.d(),I=!1,A()}}}function _h(i,e,t){let{title:n}=e,{thumb:o}=e,{playNextVideo:r}=e,l=!0,a=()=>t(3,l=!1);return i.$$set=s=>{"title"in s&&t(0,n=s.title),"thumb"in s&&t(1,o=s.thumb),"playNextVideo"in s&&t(2,r=s.playNextVideo)},[n,o,r,l,a]}var ra=class extends j{constructor(e){super(),W(this,e,_h,ph,U,{title:0,thumb:1,playNextVideo:2},mh)}},I1=ra;var vo=require("@vkontakte/videoplayer-core"),E1=require("@vkontakte/videoplayer-shared"),kn=require("@vkontakte/videoplayer-statistics");var sa=(i,e)=>Math.min(+(i+e).toFixed(2),1),aa=(i,e)=>Math.max(+(i-e).toFixed(2),0),Cr=(i,e,t)=>{let n=sa(e,t);e<1&&i.actions.internal.setVolume(n)},Sr=(i,e,t)=>{let n=aa(e,t);e>0&&i.actions.internal.setVolume(n)};var bo=({isAudioDisabled:i,audioDisabledHintCallback:e,isAudioAvailable:t,audioIsNotExistHintCallback:n})=>i?(e==null||e(),!1):t?!0:(n==null||n(),!1);function gh(i){Te(i,"svelte-10kkmxz",".keyboard-controls.svelte-10kkmxz{position:absolute;left:0;right:0;top:0;bottom:0}")}function bh(i){let e,t,n,o,r,l=i[26].default,a=Ee(l,i,i[25],null);return{c(){e=P("div"),a&&a.c(),c(e,"class","keyboard-controls svelte-10kkmxz"),c(e,"tabindex","-1"),c(e,"role","region"),c(e,"aria-label",t=Q("aria_label_video_player"))},m(s,u){C(s,e,u),a&&a.m(e,null),i[27](e),n=!0,o||(r=[de(e,"keyup",i[17]),de(e,"keydown",i[16])],o=!0)},p(s,u){a&&a.p&&(!n||u[0]&33554432)&&Ve(a,l,s,s[25],n?Me(l,s[25],u,null):Ae(s[25]),null)},i(s){n||(d(a,s),n=!0)},o(s){_(a,s),n=!1},d(s){s&&k(e),a&&a.d(s),i[27](null),o=!1,lt(r)}}}function vh(i,e,t){var bt,wt;let n,o,r,l,a,s,u,f,m,h,y,b,S,w,T,{$$slots:v={},$$scope:g}=e,{isAds:I}=e,{hideContextMenu:A}=e,{toggleFullscreen:q}=e,{showHotKeyHelpers:K}=e,{showKeyMap:re}=e,{fakePlayButtonHandler:ae}=e,H=nt(),L=Wt(),x=H.getLogger().createComponentLog("KeyboardControls component"),G=H.state.playbackState$;F(i,G,we=>t(31,o=we));let J=H.ads.playbackState;F(i,J,we=>t(30,n=we));let E=H.state.positionExact$;F(i,E,we=>t(41,b=we));let te=H.state.duration$;F(i,te,we=>t(40,y=we));let M=H.state.volume$;F(i,M,we=>t(44,T=we));let ee=H.ui.controls.disabledControls$;F(i,ee,we=>t(39,h=we));let ke=H.state.muted$;F(i,ke,we=>t(34,a=we));let Ge=H.state.currentSubtitle$;F(i,Ge,we=>t(33,l=we));let Ke=H.state.currentPlaybackRate$;F(i,Ke,we=>t(42,S=we));let Je=H.state.availablePlaybackRates$;F(i,Je,we=>t(43,w=we));let We=H.ui.contextMenu.openedByHotKey$,ve=H.ui.contextMenu.lastActiveElem$,X=H.ui.contextMenu.visible$,be=H.ui.contextMenu.position$,Ne=H.state.isEnded$;F(i,Ne,we=>t(36,u=we));let xe=H.ui.overlayContainer$;F(i,xe,we=>t(32,r=we));let et=(bt=H.callbacks)==null?void 0:bt.onAudioDoesNotExistHint,ye=(wt=H.callbacks)==null?void 0:wt.onAudioDisabledHint,Re=H.state.isAudioAvailable$;F(i,Re,we=>t(35,s=we));let je=H.state.isAudioDisabled,Xe=H.state.isInteractiveTime$;F(i,Xe,we=>t(38,m=we));let{showInteractiveTimeIndicatorTooltip$:Ce}=Fn();F(i,Ce,we=>t(37,f=we));let Z=0,Pe=!0,ue,Ie=()=>ue==null?void 0:ue.focus(),Ye=we=>(we!==Pe&&(Pe=we,Z=0),Z+=1,(L.controls.seekStepKeyboard+L.controls.seekStepKeyboard*Z)/1e3),ft=we=>{var me;let vt=we.target,Nt=(me=vt==null?void 0:vt.getAttribute("role"))==null?void 0:me.includes("menuitem"),Et=vt.classList.contains("btn"),qe=we.code;if(Et&&qe==="Space")return;let Kt=af.has(qe);if(Nt&&Kt)return;let zt=!sf.has(qe);if(we.ctrlKey&&zt||we.altKey&&zt||we.metaKey)return;let Zt=Nt&&qe==="Escape";uf.has(qe)||Zt||A();let ti=o===vo.PlaybackState.PLAYING||o===vo.PlaybackState.PAUSED,Lt=I&&(n==="paused"||n==="playing"),Tt=!Lt&&!h.has("TIMELINE");if(ti||Lt)switch(x({message:`key down, code: ${qe}`}),qe){case"KeyJ":case"ArrowLeft":{if(!Tt)break;if(we.ctrlKey||we.altKey){let Ue=H.actions.internal.getPrevEpisode();H.actions.internal.seekToPrevEpisode(Ue),Ue&&K({type:"EPISODE_PREV",text:Ue.text}),we.preventDefault()}else{let Ue=we.shiftKey?Ye(!1):L.controls.seekStepKeyboard/1e3,Qe=Math.max(b-Ue,0);b>0&&(H.actions.internal.seekTime(Qe,kn.SeekAction.DOUBLE_TAP),K({type:"BACKWARD_SEEK",text:Ue.toString()}),we.preventDefault())}break}case"KeyL":case"ArrowRight":{if(!Tt)break;if(we.ctrlKey||we.altKey){let Ue=H.actions.internal.getNextEpisode();H.actions.internal.seekToNextEpisode(Ue),Ue&&K({type:"EPISODE_NEXT",text:Ue.text}),we.preventDefault()}else{let Ue=we.shiftKey?Ye(!0):L.controls.seekStepKeyboard/1e3,Qe=Math.min(b+Ue,y);Math.round(b)<Math.round(y)&&(H.actions.internal.seekTime(Qe,kn.SeekAction.DOUBLE_TAP),K({type:"FORWARD_SEEK",text:Ue.toString()}),we.preventDefault())}break}case"ArrowUp":{if(bo({isAudioDisabled:je,audioDisabledHintCallback:ye,isAudioAvailable:s,audioIsNotExistHintCallback:et})){let Ue=T,Qe=L.controls.volumeStepKeyboard,tt=Ue<=1;if(Cr(H,Ue,Qe),tt){let _t=Math.round(sa(Ue,Qe)*100).toString();K({type:"VOLUME",t:{key:"hotkey_helper_current_volume",value:_t}})}}we.preventDefault();break}case"ArrowDown":{if(bo({isAudioDisabled:je,audioDisabledHintCallback:ye,isAudioAvailable:s,audioIsNotExistHintCallback:et})){let Ue=T,Qe=L.controls.volumeStepKeyboard,tt=Ue>=0;if(Sr(H,Ue,Qe),tt){let _t=Math.round(aa(Ue,Qe)*100).toString();K({type:"VOLUME",t:{key:"hotkey_helper_current_volume",value:_t}})}}we.preventDefault();break}case"Comma":{if(we.shiftKey){H.actions.internal.decrementPlaybackRate();let Ue=w.find(Qe=>Qe.value===S);K({type:"RATE_DOWN",text:Ue==null?void 0:Ue.displayValue}),we.preventDefault()}else{if(Lt||o!==vo.PlaybackState.PAUSED)break;let Ue=Math.max(b-L.controls.seekStepFrame/1e3,0);b>0&&(K({type:"BACKWARD_SEEK"}),H.actions.internal.clearDelayedBufferingCheckTimeout(),H.actions.internal.seekTime(Ue,kn.SeekAction.DOUBLE_TAP),we.preventDefault())}break}case"Period":{if(we.shiftKey){H.actions.internal.incrementPlaybackRate();let Ue=w.find(Qe=>Qe.value===S);K({type:"RATE_UP",text:Ue==null?void 0:Ue.displayValue}),we.preventDefault()}else{if(Lt||o!==vo.PlaybackState.PAUSED)break;let Ue=Math.min(b+L.controls.seekStepFrame/1e3,y);b<y&&(K({type:"FORWARD_SEEK"}),H.actions.internal.clearDelayedBufferingCheckTimeout(),H.actions.internal.seekTime(Ue,kn.SeekAction.DOUBLE_TAP),we.preventDefault())}break}case"KeyK":case"Space":if(!h.has("PLAY_BUTTON"))if(m&&f&&Ce.set(!1),ae)ae();else{H.actions.internal.togglePlay();let Ue="PLAY";o===vo.PlaybackState.PAUSED?Ue="PAUSE":u&&(Ue="REPLAY"),K({type:Ue})}we.preventDefault();break;case"KeyM":{bo({isAudioDisabled:je,audioDisabledHintCallback:ye,isAudioAvailable:s,audioIsNotExistHintCallback:et})&&(K({type:a?"VOLUME":"MUTE"}),H.actions.internal.toggleMuted()),we.preventDefault();break}case"KeyF":q(),we.preventDefault();break;case"KeyC":H.actions.internal.toggleSubtitle(),l.value!=="off"?K({type:"SUBTITLES_ON",text:l==null?void 0:l.displayValue}):K({type:"SUBTITLES_OFF"}),we.preventDefault();break;case"KeyI":H.actions.internal.togglePictureInPicture(),we.preventDefault();break;case"Digit1":case"Numpad1":if(we.shiftKey){let Ue=o1(r);be.set(Ue),ve.set(vt),We.set(!0),X.set(!0),we.preventDefault();break}K(),H.actions.internal.seekToPercent(.1,kn.SeekAction.DOUBLE_TAP),we.preventDefault();break;case"Digit2":case"Numpad2":K(),H.actions.internal.seekToPercent(.2,kn.SeekAction.DOUBLE_TAP),we.preventDefault();break;case"Digit3":case"Numpad3":K(),H.actions.internal.seekToPercent(.3,kn.SeekAction.DOUBLE_TAP),we.preventDefault();break;case"Digit4":case"Numpad4":K(),H.actions.internal.seekToPercent(.4,kn.SeekAction.DOUBLE_TAP),we.preventDefault();break;case"Digit5":case"Numpad5":K(),H.actions.internal.seekToPercent(.5,kn.SeekAction.DOUBLE_TAP),we.preventDefault();break;case"Digit6":case"Numpad6":K(),H.actions.internal.seekToPercent(.6,kn.SeekAction.DOUBLE_TAP),we.preventDefault();break;case"Digit7":case"Numpad7":K(),H.actions.internal.seekToPercent(.7,kn.SeekAction.DOUBLE_TAP),we.preventDefault();break;case"Digit8":case"Numpad8":K(),H.actions.internal.seekToPercent(.8,kn.SeekAction.DOUBLE_TAP),we.preventDefault();break;case"Digit9":case"Numpad9":K(),H.actions.internal.seekToPercent(.9,kn.SeekAction.DOUBLE_TAP),we.preventDefault();break;case"Digit0":case"Numpad0":K(),H.actions.internal.seekToPercent(0,kn.SeekAction.DOUBLE_TAP),we.preventDefault();break;case"Slash":{we.shiftKey&&L.features.hotKeyMapModal&&(re(),we.preventDefault());break}case"ShiftLeft":case"ShiftRight":we.preventDefault();break;case"Tab":case"Escape":case"Enter":break;default:(0,E1.checkNever)(qe);break}},mt=we=>{let vt=we.code;if(we.ctrlKey||we.altKey||we.metaKey)return;let Nt=o===vo.PlaybackState.PLAYING||o===vo.PlaybackState.PAUSED,Et=I&&(n==="paused"||n==="playing");if(Nt||Et)switch(vt){case"ShiftLeft":case"ShiftRight":Z=0;break}};function dt(we){_e[we?"unshift":"push"](()=>{ue=we,t(0,ue)})}return i.$$set=we=>{"isAds"in we&&t(18,I=we.isAds),"hideContextMenu"in we&&t(19,A=we.hideContextMenu),"toggleFullscreen"in we&&t(20,q=we.toggleFullscreen),"showHotKeyHelpers"in we&&t(21,K=we.showHotKeyHelpers),"showKeyMap"in we&&t(22,re=we.showKeyMap),"fakePlayButtonHandler"in we&&t(23,ae=we.fakePlayButtonHandler),"$$scope"in we&&t(25,g=we.$$scope)},[ue,G,J,E,te,M,ee,ke,Ge,Ke,Je,Ne,xe,Re,Xe,Ce,ft,mt,I,A,q,K,re,ae,Ie,g,v,dt]}var ua=class extends j{constructor(e){super(),W(this,e,vh,bh,U,{isAds:18,hideContextMenu:19,toggleFullscreen:20,showHotKeyHelpers:21,showKeyMap:22,fakePlayButtonHandler:23,focus:24},gh,[-1,-1])}get focus(){return this.$$.ctx[24]}},M1=ua;function yh(i){Te(i,"svelte-8nkw5s",".container.svelte-8nkw5s.svelte-8nkw5s{position:absolute;top:50%;left:50%;transform:translate(-50%, -50%);pointer-events:none;display:flex}.dot.svelte-8nkw5s.svelte-8nkw5s:nth-child(1){animation-delay:calc(0 * 180ms)}.dot.svelte-8nkw5s.svelte-8nkw5s:nth-child(2){animation-delay:calc(1 * 180ms)}.dot.svelte-8nkw5s.svelte-8nkw5s:nth-child(3){animation-delay:calc(2 * 180ms)}@keyframes svelte-8nkw5s-dot_animation{0%{opacity:0.2}30%{opacity:1}100%{opacity:0.2}}.dot.svelte-8nkw5s.svelte-8nkw5s{border-radius:4px;width:8px;height:8px;background:var(--white);animation-duration:750ms;animation-name:svelte-8nkw5s-dot_animation;animation-iteration-count:infinite}.dot.svelte-8nkw5s+.dot.svelte-8nkw5s{margin-left:4px}")}function wh(i){let e;return{c(){e=P("div"),e.innerHTML='<div class="dot svelte-8nkw5s"></div> <div class="dot svelte-8nkw5s"></div> <div class="dot svelte-8nkw5s"></div>',c(e,"class","container svelte-8nkw5s")},m(t,n){C(t,e,n)},p:pe,i:pe,o:pe,d(t){t&&k(e)}}}var ca=class extends j{constructor(e){super(),W(this,e,null,wh,U,{},yh)}},Tr=ca;function kh(i){let e,t,n,o,r,l,a,s,u,f,m,h,y,b,S=i[2].default,w=Ee(S,i,i[1],null),T=[{xmlns:"http://www.w3.org/2000/svg"},{width:"24"},{height:"24"},{fill:"none"},{"aria-hidden":"true"},{"data-testid":"cross-icon"},{role:"img"},i[0]],v={};for(let g=0;g<T.length;g+=1)v=oe(v,T[g]);return{c(){e=N("svg"),w&&w.c(),t=N("g"),n=N("path"),o=N("path"),r=N("defs"),l=N("filter"),a=N("feFlood"),s=N("feColorMatrix"),u=N("feOffset"),f=N("feGaussianBlur"),m=N("feColorMatrix"),h=N("feBlend"),y=N("feBlend"),c(n,"fill","#fff"),c(n,"d","M7.536 6.264a.9.9 0 0 0-1.272 1.272L10.727 12l-4.463 4.464a.9.9 0 0 0 1.272 1.272L12 13.273l4.464 4.463a.9.9 0 1 0 1.272-1.272L13.273 12l4.463-4.464a.9.9 0 1 0-1.272-1.272L12 10.727z"),c(o,"stroke","#000"),c(o,"stroke-opacity",".12"),c(o,"stroke-width",".5"),c(o,"d","M7.713 6.087a1.15 1.15 0 1 0-1.626 1.626L10.374 12l-4.287 4.287a1.15 1.15 0 0 0 1.626 1.626L12 13.626l4.287 4.287a1.15 1.15 0 0 0 1.626-1.626L13.626 12l4.287-4.287a1.15 1.15 0 1 0-1.626-1.626L12 10.374z"),c(t,"filter","url(#a)"),c(a,"flood-opacity","0"),c(a,"result","BackgroundImageFix"),c(s,"in","SourceAlpha"),c(s,"result","hardAlpha"),c(s,"values","0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0"),c(f,"stdDeviation","2.5"),c(m,"values","0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.16 0"),c(h,"in2","BackgroundImageFix"),c(h,"result","effect1_dropShadow_2422_111980"),c(y,"in","SourceGraphic"),c(y,"in2","effect1_dropShadow_2422_111980"),c(y,"result","shape"),c(l,"id","a"),c(l,"width","23"),c(l,"height","23"),c(l,"x",".5"),c(l,"y",".5"),c(l,"color-interpolation-filters","sRGB"),c(l,"filterUnits","userSpaceOnUse"),ge(e,v)},m(g,I){C(g,e,I),w&&w.m(e,null),p(e,t),p(t,n),p(t,o),p(e,r),p(r,l),p(l,a),p(l,s),p(l,u),p(l,f),p(l,m),p(l,h),p(l,y),b=!0},p(g,[I]){w&&w.p&&(!b||I&2)&&Ve(w,S,g,g[1],b?Me(S,g[1],I,null):Ae(g[1]),null),ge(e,v=Le(T,[{xmlns:"http://www.w3.org/2000/svg"},{width:"24"},{height:"24"},{fill:"none"},{"aria-hidden":"true"},{"data-testid":"cross-icon"},{role:"img"},I&1&&g[0]]))},i(g){b||(d(w,g),b=!0)},o(g){_(w,g),b=!1},d(g){g&&k(e),w&&w.d(g)}}}function Ch(i,e,t){let{$$slots:n={},$$scope:o}=e;return i.$$set=r=>{t(0,e=oe(oe({},e),he(r))),"$$scope"in r&&t(1,o=r.$$scope)},e=he(e),[e,o,n]}var fa=class extends j{constructor(e){super(),W(this,e,Ch,kh,U,{})}},V1=fa;var $n=require("@vkontakte/videoplayer-shared");function Sh(i){Te(i,"svelte-1anemql",".btn.svelte-1anemql{padding:8px;margin:0;height:var(--controls-height);display:flex;flex-direction:row;align-items:center}.w-max.svelte-1anemql{width:100%}.btn--live.svelte-1anemql{padding:10px 4px}.btn-m.svelte-1anemql{position:absolute;left:12px;top:50%;transform:translateY(-50%);height:44px;width:44px;border-radius:12px;background-color:rgba(0, 0, 0, 0.56);transition:opacity var(--controls-transition-duration);display:flex;align-items:center;justify-content:center}.btn-m--play.svelte-1anemql{width:var(--big-play-size);height:var(--big-play-size);display:flex;align-items:center;justify-content:center;position:relative;padding:16px}.btn.svelte-1anemql:disabled{cursor:default;pointer-events:none}.btn.svelte-1anemql:not(.btn-full-opacity):disabled{opacity:0.4}.btn.svelte-1anemql:not(:disabled):hover{opacity:0.8}.pr-0.svelte-1anemql{padding-right:0}.pl-0.svelte-1anemql{padding-left:0}")}function Th(i){let e,t,n,o,r,l,a,s,u,f,m,h,y=i[14].default,b=Ee(y,i,i[13],null);return{c(){var S,w,T,v,g,I;e=P("button"),b&&b.c(),c(e,"class",t="btn "+i[1]+" svelte-1anemql"),c(e,"style",n=i[2]||null),e.disabled=o=(S=i[3])!=null?S:null,c(e,"aria-hidden",r=(w=i[5])!=null?w:null),c(e,"aria-label",l=(T=i[6])!=null?T:null),c(e,"aria-keyshortcuts",a=(v=i[7])!=null?v:null),c(e,"aria-expanded",s=(g=i[8])!=null?g:null),c(e,"data-testid",u=(I=i[4])!=null?I:null),c(e,"tabindex",i[9])},m(S,w){C(S,e,w),b&&b.m(e,null),i[16](e),f=!0,m||(h=[de(e,"pointerdown",ct(Ot(i[15]))),de(e,"click",ct(Ot(function(){Vi(i[10]===$n.noop?null:i[10])&&(i[10]===$n.noop?null:i[10]).apply(this,arguments)}))),de(e,"focus",Ot(function(){Vi(i[11]===$n.noop?null:i[11])&&(i[11]===$n.noop?null:i[11]).apply(this,arguments)})),de(e,"blur",Ot(function(){Vi(i[12]===$n.noop?null:i[12])&&(i[12]===$n.noop?null:i[12]).apply(this,arguments)}))],m=!0)},p(S,[w]){var T,v,g,I,A,q;i=S,b&&b.p&&(!f||w&8192)&&Ve(b,y,i,i[13],f?Me(y,i[13],w,null):Ae(i[13]),null),(!f||w&2&&t!==(t="btn "+i[1]+" svelte-1anemql"))&&c(e,"class",t),(!f||w&4&&n!==(n=i[2]||null))&&c(e,"style",n),(!f||w&8&&o!==(o=(T=i[3])!=null?T:null))&&(e.disabled=o),(!f||w&32&&r!==(r=(v=i[5])!=null?v:null))&&c(e,"aria-hidden",r),(!f||w&64&&l!==(l=(g=i[6])!=null?g:null))&&c(e,"aria-label",l),(!f||w&128&&a!==(a=(I=i[7])!=null?I:null))&&c(e,"aria-keyshortcuts",a),(!f||w&256&&s!==(s=(A=i[8])!=null?A:null))&&c(e,"aria-expanded",s),(!f||w&16&&u!==(u=(q=i[4])!=null?q:null))&&c(e,"data-testid",u),(!f||w&512)&&c(e,"tabindex",i[9])},i(S){f||(d(b,S),f=!0)},o(S){_(b,S),f=!1},d(S){S&&k(e),b&&b.d(S),i[16](null),m=!1,lt(h)}}}function Ph(i,e,t){let{$$slots:n={},$$scope:o}=e,{className:r=""}=e,{style:l=""}=e,{disabled:a=void 0}=e,{testId:s=void 0}=e,{ariaHidden:u=void 0}=e,{ariaLabel:f=void 0}=e,{ref:m=void 0}=e,{ariaKeyShortCut:h=void 0}=e,{ariaExpanded:y=void 0}=e,{tabIndex:b=0}=e,{click:S=$n.noop}=e,{focus:w=$n.noop}=e,{blur:T=$n.noop}=e;function v(I){An.call(this,i,I)}function g(I){_e[I?"unshift":"push"](()=>{m=I,t(0,m)})}return i.$$set=I=>{"className"in I&&t(1,r=I.className),"style"in I&&t(2,l=I.style),"disabled"in I&&t(3,a=I.disabled),"testId"in I&&t(4,s=I.testId),"ariaHidden"in I&&t(5,u=I.ariaHidden),"ariaLabel"in I&&t(6,f=I.ariaLabel),"ref"in I&&t(0,m=I.ref),"ariaKeyShortCut"in I&&t(7,h=I.ariaKeyShortCut),"ariaExpanded"in I&&t(8,y=I.ariaExpanded),"tabIndex"in I&&t(9,b=I.tabIndex),"click"in I&&t(10,S=I.click),"focus"in I&&t(11,w=I.focus),"blur"in I&&t(12,T=I.blur),"$$scope"in I&&t(13,o=I.$$scope)},[m,r,l,a,s,u,f,h,y,b,S,w,T,o,n,v,g]}var da=class extends j{constructor(e){super(),W(this,e,Ph,Th,U,{className:1,style:2,disabled:3,testId:4,ariaHidden:5,ariaLabel:6,ref:0,ariaKeyShortCut:7,ariaExpanded:8,tabIndex:9,click:10,focus:11,blur:12},Sh)}},yt=da;function Ih(i){Te(i,"svelte-1witlsj",".modal-overlay.svelte-1witlsj{position:absolute;top:0;bottom:0;left:0;right:0;background:transparent;display:flex;align-items:center;justify-content:center}.modal-container.svelte-1witlsj{display:flex;flex-direction:column;width:calc(100% - 32px);max-width:600px;height:calc(100% - 24px);max-height:490px;background:var(--mobile-settings-bg);color:var(--white);border-radius:8px}.modal-header.svelte-1witlsj{box-sizing:border-box;display:flex;justify-content:space-between;align-items:start;height:40px;padding:8px 10px;border-bottom:1px solid var(--white-alpha-24)}.modal-title.svelte-1witlsj{margin:3px 0 0 6px;color:var(--white);font-feature-settings:'clig' off, 'liga' off;font-size:13px;font-style:normal;font-weight:600;line-height:16px}.modal-scroll.svelte-1witlsj{overflow-y:auto;overflow-x:hidden;margin:8px 4px 8px 0;height:100%}.modal-scroll.svelte-1witlsj::-webkit-scrollbar{width:8px}.modal-scroll.svelte-1witlsj::-webkit-scrollbar-track{box-shadow:none;background-color:transparent;border-radius:4px;margin-right:2px}.modal-scroll.svelte-1witlsj::-webkit-scrollbar-thumb{min-height:40px;border-radius:5px;background-color:#666;border:1px solid transparent;background-clip:padding-box}.modal-scroll.svelte-1witlsj::-webkit-scrollbar-thumb:hover{background-color:#777}.modal-main.svelte-1witlsj{margin:-8px -4px 0 0}")}function A1(i){let e,t,n,o,r,l=i[2]&&L1(i);return{c(){e=P("div"),t=P("h3"),n=Be(i[3]),o=O(),l&&l.c(),c(t,"class","modal-title svelte-1witlsj"),c(e,"class","modal-header svelte-1witlsj")},m(a,s){C(a,e,s),p(e,t),p(t,n),p(e,o),l&&l.m(e,null),r=!0},p(a,s){(!r||s&8)&&Ze(n,a[3]),a[2]?l?(l.p(a,s),s&4&&d(l,1)):(l=L1(a),l.c(),d(l,1),l.m(e,null)):l&&(ce(),_(l,1,1,()=>{l=null}),fe())},i(a){r||(d(l),r=!0)},o(a){_(l),r=!1},d(a){a&&k(e),l&&l.d()}}}function L1(i){let e,t;return e=new yt({props:{click:i[0],testId:"close-modal",style:"padding: 0; height: 24px; width: 24px",ariaLabel:Q("hotkey_map_modal_close_btn_text"),$$slots:{default:[Eh]},$$scope:{ctx:i}}}),{c(){D(e.$$.fragment)},m(n,o){R(e,n,o),t=!0},p(n,o){let r={};o&1&&(r.click=n[0]),o&32&&(r.$$scope={dirty:o,ctx:n}),e.$set(r)},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){_(e.$$.fragment,n),t=!1},d(n){B(e,n)}}}function Eh(i){let e,t;return e=new V1({}),{c(){D(e.$$.fragment)},m(n,o){R(e,n,o),t=!0},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){_(e.$$.fragment,n),t=!1},d(n){B(e,n)}}}function Mh(i){let e,t,n,o,r,l,a=i[1]&&A1(i),s=i[4].default,u=Ee(s,i,i[5],null);return{c(){e=P("div"),t=P("div"),a&&a.c(),n=O(),o=P("div"),r=P("div"),u&&u.c(),c(r,"class","modal-main svelte-1witlsj"),c(o,"class","modal-scroll svelte-1witlsj"),c(t,"class","modal-container svelte-1witlsj"),c(e,"class","modal-overlay svelte-1witlsj")},m(f,m){C(f,e,m),p(e,t),a&&a.m(t,null),p(t,n),p(t,o),p(o,r),u&&u.m(r,null),l=!0},p(f,[m]){f[1]?a?(a.p(f,m),m&2&&d(a,1)):(a=A1(f),a.c(),d(a,1),a.m(t,n)):a&&(ce(),_(a,1,1,()=>{a=null}),fe()),u&&u.p&&(!l||m&32)&&Ve(u,s,f,f[5],l?Me(s,f[5],m,null):Ae(f[5]),null)},i(f){l||(d(a),d(u,f),l=!0)},o(f){_(a),_(u,f),l=!1},d(f){f&&k(e),a&&a.d(),u&&u.d(f)}}}function Vh(i,e,t){let{$$slots:n={},$$scope:o}=e,{onClose:r}=e,{showHeader:l=!0}=e,{showCloseCross:a=!0}=e,{title:s}=e;return i.$$set=u=>{"onClose"in u&&t(0,r=u.onClose),"showHeader"in u&&t(1,l=u.showHeader),"showCloseCross"in u&&t(2,a=u.showCloseCross),"title"in u&&t(3,s=u.title),"$$scope"in u&&t(5,o=u.$$scope)},[r,l,a,s,n,o]}var ma=class extends j{constructor(e){super(),W(this,e,Vh,Mh,U,{onClose:0,showHeader:1,showCloseCross:2,title:3},Ih)}},R1=ma;var Ah=new Set(["BR"]),pa=i=>{var o;let e=document.createElement("DIV");e.innerHTML=i;let t=e.querySelectorAll("*"),n=t.length;for(;n--;){let r=t[n],l=r.tagName;Ah.has(l)||(o=r.parentElement)==null||o.removeChild(r)}return e.innerHTML};function Lh(i){Te(i,"svelte-quklnq",".hot-key-map.svelte-quklnq{color:var(--black);box-sizing:border-box;overflow-x:hidden}.hot-key-map-group.svelte-quklnq{border-bottom:1px solid var(--white-alpha-24);margin:0 20px 0 16px}.hot-key-map-group.svelte-quklnq:last-child{border-bottom:none}.hot-key-map-group-title.svelte-quklnq{color:var(--white);font-feature-settings:'clig' off, 'liga' off;font-size:13px;font-style:normal;font-weight:600;line-height:16px}.hot-key-map-group-title.svelte-quklnq,.hot-key-map-item.svelte-quklnq{padding:12px 0;margin:0;width:100%}.hot-key-map-group-items.svelte-quklnq{box-sizing:border-box;list-style:none;padding:0;margin:0}.hot-key-map-item.svelte-quklnq{box-sizing:border-box;display:flex;justify-content:space-between;align-items:center;--videoplayer-hotkey-item-value-width:156px;--videoplayer-hotkey-item-value-padding-left:24px}.hot-key-map-item-description.svelte-quklnq{color:var(--white-alpha-72);width:calc(100% - var(--videoplayer-hotkey-item-value-width) - var(--videoplayer-hotkey-item-value-padding-left));max-width:388px}.hot-key-map-item-value.svelte-quklnq{color:var(--white);width:var(--videoplayer-hotkey-item-value-width);padding-left:var(--videoplayer-hotkey-item-value-padding-left);letter-spacing:-0.14px}.hot-key-map-item-description.svelte-quklnq,.hot-key-map-item-value.svelte-quklnq{font-feature-settings:'clig' off, 'liga' off;font-size:13px;font-style:normal;font-weight:400;line-height:16px}")}function B1(i,e,t){let n=i.slice();return n[5]=e[t].title,n[6]=e[t].items,n}function D1(i,e,t){let n=i.slice();return n[9]=e[t].description,n[10]=e[t].value,n}function N1(i){let e,t,n=pa(i[9])+"",o,r,l=i[10]+"",a,s;return{c(){e=P("li"),t=P("span"),o=O(),r=P("span"),a=Be(l),s=O(),c(t,"class","hot-key-map-item-description svelte-quklnq"),c(r,"class","hot-key-map-item-value svelte-quklnq"),c(e,"class","hot-key-map-item svelte-quklnq")},m(u,f){C(u,e,f),p(e,t),t.innerHTML=n,p(e,o),p(e,r),p(r,a),p(e,s)},p(u,f){f&1&&n!==(n=pa(u[9])+"")&&(t.innerHTML=n),f&1&&l!==(l=u[10]+"")&&Ze(a,l)},d(u){u&&k(e)}}}function O1(i){let e,t,n=i[5]+"",o,r,l,a,s=Vt(i[6]),u=[];for(let f=0;f<s.length;f+=1)u[f]=N1(D1(i,s,f));return{c(){e=P("div"),t=P("h5"),o=Be(n),r=O(),l=P("ul");for(let f=0;f<u.length;f+=1)u[f].c();a=O(),c(t,"class","hot-key-map-group-title svelte-quklnq"),c(l,"class","hot-key-map-group-items svelte-quklnq"),c(e,"class","hot-key-map-group svelte-quklnq")},m(f,m){C(f,e,m),p(e,t),p(t,o),p(e,r),p(e,l);for(let h=0;h<u.length;h+=1)u[h]&&u[h].m(l,null);p(e,a)},p(f,m){if(m&1&&n!==(n=f[5]+"")&&Ze(o,n),m&1){s=Vt(f[6]);let h;for(h=0;h<s.length;h+=1){let y=D1(f,s,h);u[h]?u[h].p(y,m):(u[h]=N1(y),u[h].c(),u[h].m(l,null))}for(;h<u.length;h+=1)u[h].d(1);u.length=s.length}},d(f){f&&k(e),Qi(u,f)}}}function Rh(i){let e,t=Vt(i[0].groups),n=[];for(let o=0;o<t.length;o+=1)n[o]=O1(B1(i,t,o));return{c(){e=P("div");for(let o=0;o<n.length;o+=1)n[o].c();c(e,"class","hot-key-map svelte-quklnq")},m(o,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=Vt(o[0].groups);let l;for(l=0;l<t.length;l+=1){let a=B1(o,t,l);n[l]?n[l].p(a,r):(n[l]=O1(a),n[l].c(),n[l].m(e,null))}for(;l<n.length;l+=1)n[l].d(1);n.length=t.length}},d(o){o&&k(e),Qi(n,o)}}}function Bh(i){let e,t;return e=new R1({props:{title:i[0].title,onClose:i[2],$$slots:{default:[Rh]},$$scope:{ctx:i}}}),{c(){D(e.$$.fragment)},m(n,o){R(e,n,o),t=!0},p(n,[o]){let r={};o&1&&(r.title=n[0].title),o&8193&&(r.$$scope={dirty:o,ctx:n}),e.$set(r)},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){_(e.$$.fragment,n),t=!1},d(n){B(e,n)}}}function Dh(i,e,t){let n,o=nt(),{data:r,show:l}=o.ui.modals.hotKeyMap;return F(i,r,s=>t(0,n=s)),[n,r,()=>{l.set(!1)}]}var _a=class extends j{constructor(e){super(),W(this,e,Dh,Bh,U,{},Lh)}},F1=_a;var ls=require("@vkontakte/videoplayer-shared");var Ko=require("@vkontakte/videoplayer-core");var Td=require("@vkontakte/videoplayer-core");var Dk=require("@vkontakte/videoplayer-shared");function Nh(i){Te(i,"svelte-1oe0j8n",".pillow.svelte-1oe0j8n{background-color:#679FF8;color:var(--white);font-size:6px;font-weight:600;-webkit-font-smoothing:antialiased;padding:2px 4px;border-radius:12px}")}function Oh(i){let e,t,n=i[1].default,o=Ee(n,i,i[0],null);return{c(){e=P("div"),o&&o.c(),c(e,"class","pillow svelte-1oe0j8n")},m(r,l){C(r,e,l),o&&o.m(e,null),t=!0},p(r,[l]){o&&o.p&&(!t||l&1)&&Ve(o,n,r,r[0],t?Me(n,r[0],l,null):Ae(r[0]),null)},i(r){t||(d(o,r),t=!0)},o(r){_(o,r),t=!1},d(r){r&&k(e),o&&o.d(r)}}}function Fh(i,e,t){let{$$slots:n={},$$scope:o}=e;return i.$$set=r=>{"$$scope"in r&&t(0,o=r.$$scope)},[o,n]}var ha=class extends j{constructor(e){super(),W(this,e,Fh,Oh,U,{},Nh)}},H1=ha;var cl=require("@vkontakte/videoplayer-core");function Hh(i){let e,t,n,o,r=i[2].default,l=Ee(r,i,i[1],null),a=[{xmlns:"http://www.w3.org/2000/svg"},{width:"9"},{height:"5"},{fill:"none"},{role:"img"},i[0]],s={};for(let u=0;u<a.length;u+=1)s=oe(s,a[u]);return{c(){e=N("svg"),l&&l.c(),t=N("path"),n=N("path"),c(t,"fill","currentColor"),c(t,"d","M5.517 5c.325 0 .516-.198.516-.536v-.97l.492-.517 1.46 1.74c.16.205.304.283.516.283A.49.49 0 0 0 9 4.501c0-.14-.068-.287-.222-.478l-1.47-1.73L8.818.868C8.949.731 9 .618 9 .475A.474.474 0 0 0 8.515 0c-.171 0-.301.065-.445.222L6.064 2.25h-.03V.54c0-.342-.192-.54-.517-.54s-.516.198-.516.54v3.924c0 .338.191.536.516.536"),c(n,"fill","currentColor"),c(n,"fill-rule","evenodd"),c(n,"d","m2.551 1.052-1.51 2.052h1.51zM3.5 3.104V.832c0-.81-1.089-1.14-1.556-.48L.139 2.821a.75.75 0 0 0 .612 1.183h1.8v.55c0 .248.25.45.499.45a.45.45 0 0 0 .45-.45v-.55h.052a.45.45 0 0 0 0-.9z"),c(n,"clip-rule","evenodd"),ge(e,s)},m(u,f){C(u,e,f),l&&l.m(e,null),p(e,t),p(e,n),o=!0},p(u,[f]){l&&l.p&&(!o||f&2)&&Ve(l,r,u,u[1],o?Me(r,u[1],f,null):Ae(u[1]),null),ge(e,s=Le(a,[{xmlns:"http://www.w3.org/2000/svg"},{width:"9"},{height:"5"},{fill:"none"},{role:"img"},f&1&&u[0]]))},i(u){o||(d(l,u),o=!0)},o(u){_(l,u),o=!1},d(u){u&&k(e),l&&l.d(u)}}}function zh(i,e,t){let{$$slots:n={},$$scope:o}=e;return i.$$set=r=>{t(0,e=oe(oe({},e),he(r))),"$$scope"in r&&t(1,o=r.$$scope)},e=he(e),[e,o,n]}var ga=class extends j{constructor(e){super(),W(this,e,zh,Hh,U,{})}},z1=ga;function qh(i){let e,t,n,o,r=i[2].default,l=Ee(r,i,i[1],null),a=[{xmlns:"http://www.w3.org/2000/svg"},{width:"9"},{height:"5"},{fill:"none"},{role:"img"},i[0]],s={};for(let u=0;u<a.length;u+=1)s=oe(s,a[u]);return{c(){e=N("svg"),l&&l.c(),t=N("path"),n=N("path"),c(t,"fill","currentColor"),c(t,"d","M5.513 5c.323 0 .513-.198.513-.537v-.97l.49-.516L7.99 4.715c.16.205.302.284.513.284A.49.49 0 0 0 9 4.5c0-.14-.068-.287-.22-.478L7.293 2.293 8.82.868C8.949.731 9 .618 9 .475A.473.473 0 0 0 8.517 0c-.17 0-.299.065-.441.222L6.056 2.25h-.03V.54c0-.342-.19-.54-.513-.54S5 .198 5 .54v3.923c0 .339.19.537.513.537"),c(n,"fill","currentColor"),c(n,"fill-rule","evenodd"),c(n,"d","M2 0q-.53 0-.952.173a1.5 1.5 0 0 0-.654.484q-.23.312-.23.71c0 .423.208.756.613.995a1.46 1.46 0 0 0-.547.44q-.23.305-.23.71 0 .432.252.778l.001.001q.26.336.712.523Q1.418 5.001 2 5q.582 0 1.035-.186.451-.187.705-.524.26-.346.26-.777 0-.406-.23-.711a1.45 1.45 0 0 0-.552-.44c.409-.235.618-.569.618-.994a1.14 1.14 0 0 0-.238-.711 1.44 1.44 0 0 0-.653-.484A2.4 2.4 0 0 0 2 0m-.573.964C1.563.86 1.75.804 2 .804s.434.055.564.16h.001a.51.51 0 0 1 .204.43.52.52 0 0 1-.204.437c-.13.105-.315.161-.565.161s-.437-.056-.573-.161a.52.52 0 0 1-.203-.437q.002-.276.203-.43m-.345 2.522c0-.217.08-.381.233-.503.16-.122.385-.188.685-.188s.522.066.677.188q.24.181.24.503a.63.63 0 0 1-.24.523c-.155.122-.377.188-.677.188s-.524-.065-.684-.187a.64.64 0 0 1-.234-.524"),c(n,"clip-rule","evenodd"),ge(e,s)},m(u,f){C(u,e,f),l&&l.m(e,null),p(e,t),p(e,n),o=!0},p(u,[f]){l&&l.p&&(!o||f&2)&&Ve(l,r,u,u[1],o?Me(r,u[1],f,null):Ae(u[1]),null),ge(e,s=Le(a,[{xmlns:"http://www.w3.org/2000/svg"},{width:"9"},{height:"5"},{fill:"none"},{role:"img"},f&1&&u[0]]))},i(u){o||(d(l,u),o=!0)},o(u){_(l,u),o=!1},d(u){u&&k(e),l&&l.d(u)}}}function Uh(i,e,t){let{$$slots:n={},$$scope:o}=e;return i.$$set=r=>{t(0,e=oe(oe({},e),he(r))),"$$scope"in r&&t(1,o=r.$$scope)},e=he(e),[e,o,n]}var ba=class extends j{constructor(e){super(),W(this,e,Uh,qh,U,{})}},q1=ba;function Kh(i){let e,t,n,o=i[2].default,r=Ee(o,i,i[1],null),l=[{xmlns:"http://www.w3.org/2000/svg"},{width:"9"},{height:"5"},{fill:"none"},{role:"img"},i[0]],a={};for(let s=0;s<l.length;s+=1)a=oe(a,l[s]);return{c(){e=N("svg"),r&&r.c(),t=N("path"),c(t,"fill","currentColor"),c(t,"d","M5.516 5h1.107C8.103 5 9 4.065 9 2.5S8.103 0 6.623 0H5.516C5.191 0 5 .2 5 .537V4.46c0 .342.191.54.516.54m.516-.854V.852H6.5C7.41.852 8 1.468 8 2.5c0 1.066-.577 1.646-1.5 1.646zM.516 5c.325 0 .516-.198.516-.536V2.922h1.936v1.542c0 .338.191.536.516.536S4 4.802 4 4.464V.54C4 .198 3.809 0 3.484 0s-.516.198-.516.54v1.531H1.032V.54C1.032.198.841 0 .516 0S0 .198 0 .54v3.989C0 4.867.191 5 .516 5"),ge(e,a)},m(s,u){C(s,e,u),r&&r.m(e,null),p(e,t),n=!0},p(s,[u]){r&&r.p&&(!n||u&2)&&Ve(r,o,s,s[1],n?Me(o,s[1],u,null):Ae(s[1]),null),ge(e,a=Le(l,[{xmlns:"http://www.w3.org/2000/svg"},{width:"9"},{height:"5"},{fill:"none"},{role:"img"},u&1&&s[0]]))},i(s){n||(d(r,s),n=!0)},o(s){_(r,s),n=!1},d(s){s&&k(e),r&&r.d(s)}}}function jh(i,e,t){let{$$slots:n={},$$scope:o}=e;return i.$$set=r=>{t(0,e=oe(oe({},e),he(r))),"$$scope"in r&&t(1,o=r.$$scope)},e=he(e),[e,o,n]}var va=class extends j{constructor(e){super(),W(this,e,jh,Kh,U,{})}},U1=va;function Wh(i){let e,t,n,o=i[2].default,r=Ee(o,i,i[1],null),l=[{xmlns:"http://www.w3.org/2000/svg"},{width:"13"},{height:"5"},{fill:"none"},{role:"img"},i[0]],a={};for(let s=0;s<l.length;s+=1)a=oe(a,l[s]);return{c(){e=N("svg"),r&&r.c(),t=N("path"),c(t,"fill","currentColor"),c(t,"d","M9.516 5h1.107C12.103 5 13 4.065 13 2.5S12.103 0 10.623 0H9.516C9.191 0 9 .2 9 .537V4.46c0 .342.191.54.516.54m.516-.854V.852h.468c.91 0 1.5.616 1.5 1.648 0 1.066-.577 1.646-1.5 1.646zM4.516 5c.325 0 .516-.198.516-.536V2.922h1.936v1.542c0 .338.191.536.516.536S8 4.802 8 4.464V.54C8 .198 7.809 0 7.484 0s-.516.198-.516.54v1.531H5.032V.54c0-.342-.191-.54-.516-.54S4 .198 4 .54v3.989c0 .338.191.471.516.471m-4 0c.325 0 .516-.198.516-.537V3h1.332c.27 0 .441-.154.441-.41 0-.253-.174-.407-.44-.407H1.031V.854h1.5c.28 0 .468-.16.468-.427C3 .161 2.815 0 2.532 0H.516C.191 0 0 .198 0 .537v3.926C0 4.802.191 5 .516 5"),ge(e,a)},m(s,u){C(s,e,u),r&&r.m(e,null),p(e,t),n=!0},p(s,[u]){r&&r.p&&(!n||u&2)&&Ve(r,o,s,s[1],n?Me(o,s[1],u,null):Ae(s[1]),null),ge(e,a=Le(l,[{xmlns:"http://www.w3.org/2000/svg"},{width:"13"},{height:"5"},{fill:"none"},{role:"img"},u&1&&s[0]]))},i(s){n||(d(r,s),n=!0)},o(s){_(r,s),n=!1},d(s){s&&k(e),r&&r.d(s)}}}function Gh(i,e,t){let{$$slots:n={},$$scope:o}=e;return i.$$set=r=>{t(0,e=oe(oe({},e),he(r))),"$$scope"in r&&t(1,o=r.$$scope)},e=he(e),[e,o,n]}var ya=class extends j{constructor(e){super(),W(this,e,Gh,Wh,U,{})}},Pr=ya;function Qh(i){let e,t,n,o,r=i[2].default,l=Ee(r,i,i[1],null),a=[{xmlns:"http://www.w3.org/2000/svg"},{width:"15"},{height:"7"},{fill:"none"},{role:"img"},i[0]],s={};for(let u=0;u<a.length;u+=1)s=oe(s,a[u]);return{c(){e=N("svg"),l&&l.c(),t=N("path"),n=N("path"),c(t,"fill","currentColor"),c(t,"d","M11.516 5.75h1.107c1.48 0 2.377-.935 2.377-2.5s-.897-2.5-2.377-2.5h-1.107c-.325 0-.516.199-.516.537V5.21c0 .342.191.54.516.54m.516-.854V1.602h.468c.91 0 1.5.616 1.5 1.648 0 1.066-.577 1.646-1.5 1.646zm-5.516.854c.325 0 .516-.198.516-.536V3.672h1.936v1.542c0 .338.191.536.516.536S10 5.552 10 5.214V1.29c0-.342-.191-.54-.516-.54s-.516.198-.516.54v1.531H7.032V1.29c0-.342-.191-.54-.516-.54S6 .948 6 1.29v3.989c0 .338.191.471.516.471"),c(n,"fill","currentColor"),c(n,"fill-rule","evenodd"),c(n,"d","M3.338 5.659a4 4 0 0 1-.838.091C1.037 5.75 0 4.885 0 3.303 0 1.733 1.037.75 2.5.75 3.96.75 5 1.734 5 3.303c0 .863-.274 1.46-.778 1.88l.194.29a.5.5 0 0 1-.832.554zm-.52-.78-.234-.352a.5.5 0 1 1 .832-.554l.245.367c.184-.26.286-.615.286-1.037 0-1.036-.64-1.653-1.447-1.653-.81 0-1.447.617-1.447 1.653 0 1.032.637 1.596 1.447 1.596.08 0 .208-.007.318-.02"),c(n,"clip-rule","evenodd"),ge(e,s)},m(u,f){C(u,e,f),l&&l.m(e,null),p(e,t),p(e,n),o=!0},p(u,[f]){l&&l.p&&(!o||f&2)&&Ve(l,r,u,u[1],o?Me(r,u[1],f,null):Ae(u[1]),null),ge(e,s=Le(a,[{xmlns:"http://www.w3.org/2000/svg"},{width:"15"},{height:"7"},{fill:"none"},{role:"img"},f&1&&u[0]]))},i(u){o||(d(l,u),o=!0)},o(u){_(l,u),o=!1},d(u){u&&k(e),l&&l.d(u)}}}function Yh(i,e,t){let{$$slots:n={},$$scope:o}=e;return i.$$set=r=>{t(0,e=oe(oe({},e),he(r))),"$$scope"in r&&t(1,o=r.$$scope)},e=he(e),[e,o,n]}var wa=class extends j{constructor(e){super(),W(this,e,Yh,Qh,U,{})}},Ir=wa;var yo=i=>{switch(i){case cl.VideoQuality.Q_720P:return U1;case cl.VideoQuality.Q_1080P:return Pr;case cl.VideoQuality.Q_1440P:return Ir;case cl.VideoQuality.Q_2160P:return z1;case cl.VideoQuality.Q_4320P:return q1}};function Zh(i){let e,t,n,o=i[2].default,r=Ee(o,i,i[1],null),l=[{xmlns:"http://www.w3.org/2000/svg"},{width:"24"},{height:"24"},{fill:"none"},{"aria-hidden":"true"},{"data-testid":"settings-mobile-icon"},{role:"img"},i[0]],a={};for(let s=0;s<l.length;s+=1)a=oe(a,l[s]);return{c(){e=N("svg"),r&&r.c(),t=N("path"),c(t,"fill","#fff"),c(t,"d","M12.722 2.213c1.208.037 1.994.702 2.408 1.954l.065.215.051.191q.027.111.068.235l.058.159.034.017.069-.023.133-.051.156-.068c1.414-.658 2.502-.536 3.387.437l.125.145.82 1.017c.732.962.71 1.99-.004 3.1l-.125.187-.117.16a3 3 0 0 0-.142.205l-.07.115-.034.057.004.02.091.06.127.077.153.083c1.39.71 1.963 1.641 1.742 2.936l-.038.188-.244 1.058c-.158.685-.282 1.01-.77 1.454-.475.432-1.016.61-1.732.67l-.22.014-.198.006q-.116.002-.246.015l-.181.021.013.142.013.096.033.179c.323 1.526-.04 2.558-1.188 3.202l-.17.09-1.175.57c-1.102.495-2.099.242-3.02-.702l-.153-.164-.13-.15a3 3 0 0 0-.17-.186l-.097-.096-.05-.046-.09.087-.106.108-.118.133c-.952 1.134-1.957 1.54-3.176 1.067l-.175-.074-1.052-.51-.312-.16c-.476-.26-.743-.51-1.004-1.061-.275-.58-.294-1.15-.16-1.883l.044-.225q.024-.114.041-.242l.019-.172-.004-.004-.104-.014-.146-.013-.174-.008c-1.56-.028-2.484-.614-2.853-1.877l-.049-.185-.292-1.274c-.235-1.185.236-2.1 1.364-2.785l.194-.112.175-.093a3 3 0 0 0 .216-.12l.155-.102.004-.019-.063-.108-.08-.125-.103-.143c-.937-1.246-1.044-2.335-.276-3.404l.115-.153.824-1.013c.79-.915 1.8-1.107 3.034-.64l.208.083.181.081q.103.048.222.093l.136.048.036-.017.033-.089.045-.138.046-.166c.36-1.436 1.085-2.242 2.39-2.35l.19-.011h1.39Zm-.056 1.799h-1.333l-.14.01c-.285.037-.472.191-.652.832l-.041.156-.057.206a6.3 6.3 0 0 1-.468 1.134 6 6 0 0 0-1.147.558 6.5 6.5 0 0 1-1.16-.35l-.35-.154c-.248-.107-.435-.161-.583-.175l-.084-.003a.55.55 0 0 0-.408.193l-.068.074-.789.973-.095.125c-.183.264-.21.5.195 1.075l.228.316c.212.31.425.692.598 1.102q-.195.577-.27 1.201c-.334.29-.69.537-1.013.72l-.343.184c-.617.34-.695.563-.646.881l.013.075.28 1.22.04.152c.096.308.265.475.968.509l.388.014c.37.024.798.09 1.223.204q.337.526.776.968a6.3 6.3 0 0 1-.118 1.445c-.201.95-.014 1.102.383 1.3l1.126.547a.8.8 0 0 0 .337.089l.067-.006c.181-.028.382-.162.67-.485l.258-.295a6.5 6.5 0 0 1 .949-.837l.298.023L12 18l.302-.008.298-.022c.363.263.691.559.948.837l.258.295c.325.364.538.488.737.49l.066-.003a.8.8 0 0 0 .178-.046l.093-.039 1.126-.548.139-.073c.3-.175.42-.395.245-1.226a6.2 6.2 0 0 1-.117-1.445q.436-.442.775-.97a6.5 6.5 0 0 1 1.223-.202l.387-.014c.812-.04.912-.256 1.008-.66l.264-1.142c.09-.406.095-.643-.617-1.035l-.342-.183a6.4 6.4 0 0 1-1.014-.722 6 6 0 0 0-.27-1.201c.174-.41.386-.791.598-1.1l.228-.317c.406-.575.378-.81.195-1.075l-.045-.062-.787-.974c-.14-.171-.259-.294-.452-.322l-.076-.007c-.16-.003-.368.05-.667.178l-.35.155a6.4 6.4 0 0 1-1.158.348 6 6 0 0 0-1.15-.556 6.5 6.5 0 0 1-.454-1.093l-.113-.414c-.192-.678-.393-.805-.714-.828zM12 8.2a3.8 3.8 0 1 1 0 7.6 3.8 3.8 0 0 1 0-7.6m0 1.8a2 2 0 1 0 0 4 2 2 0 0 0 0-4"),ge(e,a)},m(s,u){C(s,e,u),r&&r.m(e,null),p(e,t),n=!0},p(s,[u]){r&&r.p&&(!n||u&2)&&Ve(r,o,s,s[1],n?Me(o,s[1],u,null):Ae(s[1]),null),ge(e,a=Le(l,[{xmlns:"http://www.w3.org/2000/svg"},{width:"24"},{height:"24"},{fill:"none"},{"aria-hidden":"true"},{"data-testid":"settings-mobile-icon"},{role:"img"},u&1&&s[0]]))},i(s){n||(d(r,s),n=!0)},o(s){_(r,s),n=!1},d(s){s&&k(e),r&&r.d(s)}}}function Xh(i,e,t){let{$$slots:n={},$$scope:o}=e;return i.$$set=r=>{t(0,e=oe(oe({},e),he(r))),"$$scope"in r&&t(1,o=r.$$scope)},e=he(e),[e,o,n]}var ka=class extends j{constructor(e){super(),W(this,e,Xh,Zh,U,{})}},K1=ka;function Jh(i){let e,t,n,o,r=i[2].default,l=Ee(r,i,i[1],null),a=[{xmlns:"http://www.w3.org/2000/svg"},{width:"24"},{height:"24"},{fill:"none"},{"data-testid":"settings-icon"},{role:"img"},i[0]],s={};for(let u=0;u<a.length;u+=1)s=oe(s,a[u]);return{c(){e=N("svg"),l&&l.c(),t=N("path"),n=N("path"),c(t,"fill","#fff"),c(t,"fill-rule","evenodd"),c(t,"d","M13.933 4.875a.6.6 0 0 0-.07-.658c-.327-.413-.45-.833-.574-1.253l-.039-.13C13 2 12.833 2 12.417 2h-.91c-.371.003-.6.052-.757.833-.148.738-.36 1.476-1.566 2.186a.5.5 0 0 1-.12.05c-1.27.324-1.905-.023-2.542-.37l-.12-.065c-.766-.412-.884-.294-1.178 0l-.643.644c-.26.264-.389.461.053 1.124.418.626.789 1.299.438 2.654a.5.5 0 0 1-.05.12c-.668 1.126-1.362 1.33-2.058 1.535l-.13.039C2 11 2 11.167 2 11.583v.91c.003.371.052.6.833.757.738.148 1.476.36 2.186 1.566a.5.5 0 0 1 .05.12c.324 1.27-.023 1.905-.37 2.542l-.065.12c-.412.766-.294.884 0 1.178l.644.643c.264.26.461.389 1.124-.053.626-.418 1.299-.789 2.654-.438q.063.016.12.05c1.126.668 1.33 1.362 1.535 2.058l.039.13c.25.834.417.834.833.834h.91c.371-.003.6-.052.757-.833.148-.738.36-1.476 1.566-2.186a.5.5 0 0 1 .12-.05c1.27-.324 1.905.023 2.542.37l.12.065c.766.412.884.294 1.178 0l.643-.644c.26-.264.389-.461-.053-1.124-.26-.39-.503-.799-.563-1.38a.6.6 0 0 0-.413-.519 7.5 7.5 0 0 1-1.918-.871.58.58 0 0 0-.758.134 4.75 4.75 0 1 1-3.163-7.68.58.58 0 0 0 .633-.44 7.5 7.5 0 0 1 .749-1.967"),c(t,"clip-rule","evenodd"),c(n,"fill","#fff"),c(n,"d","M13.25 2.833c.225.751.383 1.502 1.63 2.222 1.399.38 2.082.003 2.718-.42.663-.443.86-.315 1.124-.054l.644.643c.294.294.412.412 0 1.178-.372.69-.792 1.333-.418 2.726.72 1.255 1.47 1.472 2.219 1.622.78.156.83.386.833.757v.91c0 .416 0 .583-.833.833-.751.225-1.502.383-2.222 1.63-.38 1.399-.003 2.082.42 2.718.443.663.315.86.054 1.124l-.643.644c-.294.294-.412.412-1.178 0-.69-.372-1.333-.792-2.726-.418-1.255.72-1.472 1.47-1.622 2.219-.156.78-.386.83-.757.833h-.91c-.416 0-.583 0-.833-.833-.225-.751-.383-1.502-1.63-2.222-1.399-.38-2.082-.003-2.718.42-.663.443-.86.315-1.124.054l-.644-.643c-.294-.294-.412-.412 0-1.178.372-.69.792-1.333.418-2.726-.72-1.255-1.47-1.472-2.219-1.622-.78-.156-.83-.386-.833-.757v-.91c0-.416 0-.583.833-.833.751-.225 1.502-.383 2.222-1.63.38-1.399.003-2.082-.42-2.718-.443-.663-.315-.86-.054-1.124l.643-.644c.294-.294.412-.412 1.178 0 .69.372 1.333.792 2.726.418 1.255-.72 1.472-1.47 1.622-2.219.156-.78.386-.83.757-.833h.91c.416 0 .583 0 .833.833M12 7.25a4.75 4.75 0 1 0 0 9.5 4.75 4.75 0 0 0 0-9.5"),c(n,"class","_full"),ge(e,s)},m(u,f){C(u,e,f),l&&l.m(e,null),p(e,t),p(e,n),o=!0},p(u,[f]){l&&l.p&&(!o||f&2)&&Ve(l,r,u,u[1],o?Me(r,u[1],f,null):Ae(u[1]),null),ge(e,s=Le(a,[{xmlns:"http://www.w3.org/2000/svg"},{width:"24"},{height:"24"},{fill:"none"},{"data-testid":"settings-icon"},{role:"img"},f&1&&u[0]]))},i(u){o||(d(l,u),o=!0)},o(u){_(l,u),o=!1},d(u){u&&k(e),l&&l.d(u)}}}function xh(i,e,t){let{$$slots:n={},$$scope:o}=e;return i.$$set=r=>{t(0,e=oe(oe({},e),he(r))),"$$scope"in r&&t(1,o=r.$$scope)},e=he(e),[e,o,n]}var Ca=class extends j{constructor(e){super(),W(this,e,xh,Jh,U,{})}},j1=Ca;function $h(i){Te(i,"svelte-8t5w85",'.icon.svelte-8t5w85{display:flex;position:relative;width:24px;height:24px}.icon.svelte-8t5w85 .pillow{position:absolute;top:1px;right:-9px}.icon.triple.svelte-8t5w85 .pillow{right:-13px}.icon.svelte-8t5w85 svg[data-testid="settings-icon--labeled"] ._full{visibility:hidden;opacity:0}')}function eg(i){let e,t,n,o,r=i[1]&&W1(i);return n=new j1({props:{"data-testid":i[1]?"settings-icon--labeled":"settings-icon"}}),{c(){e=P("div"),r&&r.c(),t=O(),D(n.$$.fragment),c(e,"class","icon svelte-8t5w85"),c(e,"aria-hidden","true"),z(e,"triple",i[2])},m(l,a){C(l,e,a),r&&r.m(e,null),p(e,t),R(n,e,null),o=!0},p(l,a){l[1]?r?(r.p(l,a),a&2&&d(r,1)):(r=W1(l),r.c(),d(r,1),r.m(e,t)):r&&(ce(),_(r,1,1,()=>{r=null}),fe());let s={};a&2&&(s["data-testid"]=l[1]?"settings-icon--labeled":"settings-icon"),n.$set(s),(!o||a&4)&&z(e,"triple",l[2])},i(l){o||(d(r),d(n.$$.fragment,l),o=!0)},o(l){_(r),_(n.$$.fragment,l),o=!1},d(l){l&&k(e),r&&r.d(),B(n)}}}function tg(i){let e,t;return e=new K1({}),{c(){D(e.$$.fragment)},m(n,o){R(e,n,o),t=!0},p:pe,i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){_(e.$$.fragment,n),t=!1},d(n){B(e,n)}}}function W1(i){let e,t;return e=new H1({props:{$$slots:{default:[ig]},$$scope:{ctx:i}}}),{c(){D(e.$$.fragment)},m(n,o){R(e,n,o),t=!0},p(n,o){let r={};o&18&&(r.$$scope={dirty:o,ctx:n}),e.$set(r)},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){_(e.$$.fragment,n),t=!1},d(n){B(e,n)}}}function ig(i){let e,t,n;var o=i[1];function r(l){return{}}return o&&(e=Pn(o,r(i))),{c(){e&&D(e.$$.fragment),t=st()},m(l,a){e&&R(e,l,a),C(l,t,a),n=!0},p(l,a){if(a&2&&o!==(o=l[1])){if(e){ce();let s=e;_(s.$$.fragment,1,0,()=>{B(s,1)}),fe()}o?(e=Pn(o,r(l)),D(e.$$.fragment),d(e.$$.fragment,1),R(e,t.parentNode,t)):e=null}},i(l){n||(e&&d(e.$$.fragment,l),n=!0)},o(l){e&&_(e.$$.fragment,l),n=!1},d(l){l&&k(t),e&&B(e,l)}}}function ng(i){let e,t,n,o,r=[tg,eg],l=[];function a(s,u){return s[0]?0:1}return e=a(i,-1),t=l[e]=r[e](i),{c(){t.c(),n=st()},m(s,u){l[e].m(s,u),C(s,n,u),o=!0},p(s,[u]){let f=e;e=a(s,u),e===f?l[e].p(s,u):(ce(),_(l[f],1,1,()=>{l[f]=null}),fe(),t=l[e],t?t.p(s,u):(t=l[e]=r[e](s),t.c()),d(t,1),t.m(n.parentNode,n))},i(s){o||(d(t),o=!0)},o(s){_(t),o=!1},d(s){s&&k(n),l[e].d(s)}}}function og(i,e,t){let n,{isMobile:o=!1}=e,{currentQuality:r=void 0}=e,l;return i.$$set=a=>{"isMobile"in a&&t(0,o=a.isMobile),"currentQuality"in a&&t(3,r=a.currentQuality)},i.$$.update=()=>{if(i.$$.dirty&8)e:t(1,n=yo(r));if(i.$$.dirty&2)e:t(2,l=!!n&&[Pr,Ir].includes(n))},[o,n,l,r]}var Sa=class extends j{constructor(e){super(),W(this,e,og,ng,U,{isMobile:0,currentQuality:3},$h)}},Er=Sa;function lg(i){let e,t,n,o=i[2].default,r=Ee(o,i,i[1],null),l=[{xmlns:"http://www.w3.org/2000/svg"},{width:"22"},{height:"18"},{fill:"none"},{"aria-hidden":"true"},{"data-testid":"subtitle-empty-icon"},{role:"img"},i[0]],a={};for(let s=0;s<l.length;s+=1)a=oe(a,l[s]);return{c(){e=N("svg"),r&&r.c(),t=N("path"),c(t,"fill","#fff"),c(t,"d","M14.692.428c2.293 0 3.124.24 3.962.687a4.67 4.67 0 0 1 1.944 1.944c.449.839.687 1.67.687 3.962v3.958c0 2.292-.238 3.123-.687 3.961a4.67 4.67 0 0 1-1.944 1.944c-.838.449-1.67.687-3.962.687H7.307c-2.293 0-3.124-.238-3.962-.687A4.67 4.67 0 0 1 1.4 14.94c-.448-.838-.687-1.669-.687-3.961V7.02c0-2.292.239-3.123.687-3.962a4.67 4.67 0 0 1 1.944-1.944C4.183.667 5.015.428 7.307.428zm.243 1.716-7.628-.001c-1.832 0-2.484.126-3.154.484a2.96 2.96 0 0 0-1.24 1.24c-.343.64-.473 1.264-.484 2.912v4.2c0 1.83.125 2.483.483 3.153q.433.809 1.241 1.24c.67.36 1.322.485 3.154.485h7.385c1.832 0 2.484-.126 3.154-.484a2.96 2.96 0 0 0 1.24-1.241c.36-.67.485-1.322.485-3.153V7.02c0-1.831-.126-2.483-.484-3.153a2.96 2.96 0 0 0-1.241-1.24c-.64-.343-1.263-.473-2.911-.484ZM11 10.714a.857.857 0 1 1 0 1.714H5.857a.857.857 0 0 1 0-1.714zm5.142 0a.857.857 0 1 1 0 1.714h-1.714a.857.857 0 0 1 0-1.714zm0-3.428a.857.857 0 1 1 0 1.714H11a.857.857 0 1 1 0-1.714zm-8.571 0a.857.857 0 0 1 0 1.714H5.857a.857.857 0 0 1 0-1.714z"),ge(e,a)},m(s,u){C(s,e,u),r&&r.m(e,null),p(e,t),n=!0},p(s,[u]){r&&r.p&&(!n||u&2)&&Ve(r,o,s,s[1],n?Me(o,s[1],u,null):Ae(s[1]),null),ge(e,a=Le(l,[{xmlns:"http://www.w3.org/2000/svg"},{width:"22"},{height:"18"},{fill:"none"},{"aria-hidden":"true"},{"data-testid":"subtitle-empty-icon"},{role:"img"},u&1&&s[0]]))},i(s){n||(d(r,s),n=!0)},o(s){_(r,s),n=!1},d(s){s&&k(e),r&&r.d(s)}}}function rg(i,e,t){let{$$slots:n={},$$scope:o}=e;return i.$$set=r=>{t(0,e=oe(oe({},e),he(r))),"$$scope"in r&&t(1,o=r.$$scope)},e=he(e),[e,o,n]}var Ta=class extends j{constructor(e){super(),W(this,e,rg,lg,U,{})}},Mr=Ta;function sg(i){let e,t,n,o=i[2].default,r=Ee(o,i,i[1],null),l=[{xmlns:"http://www.w3.org/2000/svg"},{width:"16"},{height:"19"},{fill:"none"},{"aria-hidden":"true"},{"data-testid":"download-icon"},{role:"img"},i[0]],a={};for(let s=0;s<l.length;s+=1)a=oe(a,l[s]);return{c(){e=N("svg"),r&&r.c(),t=N("path"),c(t,"fill","#fff"),c(t,"fill-rule","evenodd"),c(t,"d","M8 0a.9.9 0 0 1 .9.9v10.927l4.564-4.563a.9.9 0 0 1 1.272 1.272l-6.1 6.1a.9.9 0 0 1-1.272 0l-6.1-6.1a.9.9 0 1 1 1.272-1.272L7.1 11.827V.9A.9.9 0 0 1 8 0M0 18a.9.9 0 0 1 .9-.9h14.2a.9.9 0 1 1 0 1.8H.9A.9.9 0 0 1 0 18"),c(t,"clip-rule","evenodd"),ge(e,a)},m(s,u){C(s,e,u),r&&r.m(e,null),p(e,t),n=!0},p(s,[u]){r&&r.p&&(!n||u&2)&&Ve(r,o,s,s[1],n?Me(o,s[1],u,null):Ae(s[1]),null),ge(e,a=Le(l,[{xmlns:"http://www.w3.org/2000/svg"},{width:"16"},{height:"19"},{fill:"none"},{"aria-hidden":"true"},{"data-testid":"download-icon"},{role:"img"},u&1&&s[0]]))},i(s){n||(d(r,s),n=!0)},o(s){_(r,s),n=!1},d(s){s&&k(e),r&&r.d(s)}}}function ag(i,e,t){let{$$slots:n={},$$scope:o}=e;return i.$$set=r=>{t(0,e=oe(oe({},e),he(r))),"$$scope"in r&&t(1,o=r.$$scope)},e=he(e),[e,o,n]}var Pa=class extends j{constructor(e){super(),W(this,e,ag,sg,U,{})}},G1=Pa;function ug(i){let e,t,n,o=i[2].default,r=Ee(o,i,i[1],null),l=[{xmlns:"http://www.w3.org/2000/svg"},{width:"18"},{height:"17"},{fill:"none"},{"aria-hidden":"true"},{"data-testid":"traffic-saving-icon"},{role:"img"},i[0]],a={};for(let s=0;s<l.length;s+=1)a=oe(a,l[s]);return{c(){e=N("svg"),r&&r.c(),t=N("path"),c(t,"fill","#fff"),c(t,"fill-rule","evenodd"),c(t,"d","M.1 6.5c0-2.24 0-3.36.436-4.216A4 4 0 0 1 2.284.536C3.139.1 4.259.1 6.5.1h5c2.24 0 3.36 0 4.216.436a4 4 0 0 1 1.748 1.748c.436.856.436 1.976.436 4.216s0 3.36-.436 4.216a4 4 0 0 1-1.748 1.748c-.836.426-1.925.436-4.064.436l.55 2.2H14.1a.9.9 0 0 1 0 1.8H3.9a.9.9 0 1 1 0-1.8h1.897l.55-2.2c-2.139 0-3.227-.01-4.063-.436a4 4 0 0 1-1.748-1.748C.1 9.86.1 8.74.1 6.5m11.4-4.6h-5c-1.15 0-1.904.002-2.481.049-.556.045-.786.124-.918.19a2.2 2.2 0 0 0-.962.962c-.067.132-.145.363-.19.918-.048.577-.05 1.331-.05 2.481s.002 1.904.05 2.48c.045.556.123.787.19.919a2.2 2.2 0 0 0 .962.961c.132.068.362.146.918.192.577.047 1.33.048 2.48.048h5c1.15 0 1.904-.001 2.481-.048.556-.046.787-.124.918-.192a2.2 2.2 0 0 0 .962-.961c.067-.132.146-.363.191-.918.047-.577.049-1.331.049-2.48s-.002-1.905-.049-2.482c-.045-.555-.124-.786-.191-.918a2.2 2.2 0 0 0-.962-.961c-.131-.067-.362-.146-.918-.191-.577-.048-1.33-.049-2.48-.049m-3.298 11-.55 2.2h2.695l-.55-2.2z"),c(t,"clip-rule","evenodd"),ge(e,a)},m(s,u){C(s,e,u),r&&r.m(e,null),p(e,t),n=!0},p(s,[u]){r&&r.p&&(!n||u&2)&&Ve(r,o,s,s[1],n?Me(o,s[1],u,null):Ae(s[1]),null),ge(e,a=Le(l,[{xmlns:"http://www.w3.org/2000/svg"},{width:"18"},{height:"17"},{fill:"none"},{"aria-hidden":"true"},{"data-testid":"traffic-saving-icon"},{role:"img"},u&1&&s[0]]))},i(s){n||(d(r,s),n=!0)},o(s){_(r,s),n=!1},d(s){s&&k(e),r&&r.d(s)}}}function cg(i,e,t){let{$$slots:n={},$$scope:o}=e;return i.$$set=r=>{t(0,e=oe(oe({},e),he(r))),"$$scope"in r&&t(1,o=r.$$scope)},e=he(e),[e,o,n]}var Ia=class extends j{constructor(e){super(),W(this,e,cg,ug,U,{})}},Q1=Ia;function fg(i){let e,t,n,o,r,l=i[2].default,a=Ee(l,i,i[1],null),s=[{xmlns:"http://www.w3.org/2000/svg"},{width:"24"},{height:"24"},{"aria-hidden":"true"},{"data-testid":"play-speed-icon"},{role:"img"},i[0]],u={};for(let f=0;f<s.length;f+=1)u=oe(u,s[f]);return{c(){e=N("svg"),a&&a.c(),t=N("g"),n=N("path"),o=N("path"),c(n,"d","M0 0h24v24H0z"),c(o,"fill","#fff"),c(o,"fill-rule","nonzero"),c(o,"d","M11 4.07V2.05c-2.01.2-3.84 1-5.32 2.21L7.1 5.69A7.94 7.94 0 0 1 11 4.07M5.69 7.1 4.26 5.68A9.95 9.95 0 0 0 2.05 11h2.02c.18-1.46.76-2.79 1.62-3.9M2.05 13c.2 2.01 1 3.84 2.21 5.32l1.43-1.43A7.87 7.87 0 0 1 4.07 13zM11 21.95v-2.02a7.94 7.94 0 0 1-3.9-1.62l-1.42 1.43A10 10 0 0 0 11 21.95M22 12c0 5.16-3.92 9.42-8.95 9.95v-2.02C16.97 19.41 20 16.05 20 12s-3.03-7.41-6.95-7.93V2.05C18.08 2.58 22 6.84 22 12M10.688 8.576l4.746 2.736a.792.792 0 0 1 0 1.372l-4.746 2.737a.792.792 0 0 1-1.188-.686V9.262a.792.792 0 0 1 1.188-.686"),c(t,"fill","none"),c(t,"fill-rule","evenodd"),ge(e,u)},m(f,m){C(f,e,m),a&&a.m(e,null),p(e,t),p(t,n),p(t,o),r=!0},p(f,[m]){a&&a.p&&(!r||m&2)&&Ve(a,l,f,f[1],r?Me(l,f[1],m,null):Ae(f[1]),null),ge(e,u=Le(s,[{xmlns:"http://www.w3.org/2000/svg"},{width:"24"},{height:"24"},{"aria-hidden":"true"},{"data-testid":"play-speed-icon"},{role:"img"},m&1&&f[0]]))},i(f){r||(d(a,f),r=!0)},o(f){_(a,f),r=!1},d(f){f&&k(e),a&&a.d(f)}}}function dg(i,e,t){let{$$slots:n={},$$scope:o}=e;return i.$$set=r=>{t(0,e=oe(oe({},e),he(r))),"$$scope"in r&&t(1,o=r.$$scope)},e=he(e),[e,o,n]}var Ea=class extends j{constructor(e){super(),W(this,e,dg,fg,U,{})}},Y1=Ea;function mg(i){let e,t,n,o=i[2].default,r=Ee(o,i,i[1],null),l=[{xmlns:"http://www.w3.org/2000/svg"},{width:"12"},{height:"7"},{fill:"none"},{"aria-hidden":"true"},{role:"img"},i[0]],a={};for(let s=0;s<l.length;s+=1)a=oe(a,l[s]);return{c(){e=N("svg"),r&&r.c(),t=N("path"),c(t,"fill","#fff"),c(t,"fill-opacity",".72"),c(t,"fill-rule","evenodd"),c(t,"d","M11.736 6.736a.9.9 0 0 1-1.272 0L6 2.273 1.536 6.736A.9.9 0 1 1 .264 5.464l5.1-5.1a.9.9 0 0 1 1.272 0l5.1 5.1a.9.9 0 0 1 0 1.272"),c(t,"clip-rule","evenodd"),ge(e,a)},m(s,u){C(s,e,u),r&&r.m(e,null),p(e,t),n=!0},p(s,[u]){r&&r.p&&(!n||u&2)&&Ve(r,o,s,s[1],n?Me(o,s[1],u,null):Ae(s[1]),null),ge(e,a=Le(l,[{xmlns:"http://www.w3.org/2000/svg"},{width:"12"},{height:"7"},{fill:"none"},{"aria-hidden":"true"},{role:"img"},u&1&&s[0]]))},i(s){n||(d(r,s),n=!0)},o(s){_(r,s),n=!1},d(s){s&&k(e),r&&r.d(s)}}}function pg(i,e,t){let{$$slots:n={},$$scope:o}=e;return i.$$set=r=>{t(0,e=oe(oe({},e),he(r))),"$$scope"in r&&t(1,o=r.$$scope)},e=he(e),[e,o,n]}var Ma=class extends j{constructor(e){super(),W(this,e,pg,mg,U,{})}},Z1=Ma;function _g(i){let e,t,n,o=i[2].default,r=Ee(o,i,i[1],null),l=[{xmlns:"http://www.w3.org/2000/svg"},{width:"12"},{height:"16"},{fill:"none"},{"aria-hidden":"true"},{role:"img"},i[0]],a={};for(let s=0;s<l.length;s+=1)a=oe(a,l[s]);return{c(){e=N("svg"),r&&r.c(),t=N("path"),c(t,"fill","#fff"),c(t,"d","m5.773 8 3.363 3.364a.9.9 0 1 1-1.272 1.272l-4-4a.9.9 0 0 1 0-1.272l4-4a.9.9 0 0 1 1.272 1.272z"),ge(e,a)},m(s,u){C(s,e,u),r&&r.m(e,null),p(e,t),n=!0},p(s,[u]){r&&r.p&&(!n||u&2)&&Ve(r,o,s,s[1],n?Me(o,s[1],u,null):Ae(s[1]),null),ge(e,a=Le(l,[{xmlns:"http://www.w3.org/2000/svg"},{width:"12"},{height:"16"},{fill:"none"},{"aria-hidden":"true"},{role:"img"},u&1&&s[0]]))},i(s){n||(d(r,s),n=!0)},o(s){_(r,s),n=!1},d(s){s&&k(e),r&&r.d(s)}}}function hg(i,e,t){let{$$slots:n={},$$scope:o}=e;return i.$$set=r=>{t(0,e=oe(oe({},e),he(r))),"$$scope"in r&&t(1,o=r.$$scope)},e=he(e),[e,o,n]}var Va=class extends j{constructor(e){super(),W(this,e,hg,_g,U,{})}},X1=Va;function gg(i){let e,t;return e=new X1({props:{style:i[2],"data-testid":i[0]?"chevron-icon--right":"chevron-icon--left"}}),{c(){D(e.$$.fragment)},m(n,o){R(e,n,o),t=!0},p(n,o){let r={};o&4&&(r.style=n[2]),o&1&&(r["data-testid"]=n[0]?"chevron-icon--right":"chevron-icon--left"),e.$set(r)},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){_(e.$$.fragment,n),t=!1},d(n){B(e,n)}}}function bg(i){let e,t;return e=new Z1({props:{style:i[2],"data-testid":i[0]?"chevron-icon--down":"chevron-icon--up"}}),{c(){D(e.$$.fragment)},m(n,o){R(e,n,o),t=!0},p(n,o){let r={};o&4&&(r.style=n[2]),o&1&&(r["data-testid"]=n[0]?"chevron-icon--down":"chevron-icon--up"),e.$set(r)},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){_(e.$$.fragment,n),t=!1},d(n){B(e,n)}}}function vg(i){let e,t,n,o,r=[bg,gg],l=[];function a(s,u){return s[1]?0:1}return e=a(i,-1),t=l[e]=r[e](i),{c(){t.c(),n=st()},m(s,u){l[e].m(s,u),C(s,n,u),o=!0},p(s,[u]){let f=e;e=a(s,u),e===f?l[e].p(s,u):(ce(),_(l[f],1,1,()=>{l[f]=null}),fe(),t=l[e],t?t.p(s,u):(t=l[e]=r[e](s),t.c()),d(t,1),t.m(n.parentNode,n))},i(s){o||(d(t),o=!0)},o(s){_(t),o=!1},d(s){s&&k(n),l[e].d(s)}}}function yg(i,e,t){let n,{direction:o="left"}=e,r,l;return i.$$set=a=>{"direction"in a&&t(3,o=a.direction)},i.$$.update=()=>{if(i.$$.dirty&8)e:t(1,r=["up","down"].includes(o)),t(0,l=["right","down"].includes(o));if(i.$$.dirty&1)e:t(2,n=l?"transform: rotate(180deg);":void 0)},[l,r,n,o]}var Aa=class extends j{constructor(e){super(),W(this,e,yg,vg,U,{direction:3})}},eo=Aa;function wg(i){let e,t,n,o=i[2].default,r=Ee(o,i,i[1],null),l=[{xmlns:"http://www.w3.org/2000/svg"},{width:"24"},{height:"24"},{fill:"none"},{"aria-hidden":"true"},{"data-testid":"report-icon"},{role:"img"},i[0]],a={};for(let s=0;s<l.length;s+=1)a=oe(a,l[s]);return{c(){e=N("svg"),r&&r.c(),t=N("path"),c(t,"fill","#fff"),c(t,"fill-rule","evenodd"),c(t,"d","M8.863 2.1h6.274c.674-.002 1.2.211 1.683.697l4.383 4.383c.478.476.699.998.697 1.683v6.274c.002.685-.22 1.207-.697 1.683l-4.383 4.383c-.476.478-.998.699-1.683.697H8.863c-.685.002-1.207-.22-1.683-.697L2.797 16.82c-.478-.476-.699-.998-.697-1.683V8.863c-.002-.685.22-1.207.697-1.683L7.18 2.797c.484-.486 1.009-.699 1.683-.697m-.445 2.005L4.105 8.418c-.18.18-.205.242-.205.495v6.174c0 .25.025.316.205.495l4.313 4.313c.179.179.24.205.495.205h6.174c.253 0 .316-.026.495-.205l4.313-4.313c.18-.18.205-.245.205-.495V8.913c0-.254-.026-.316-.205-.495l-4.313-4.313c-.18-.18-.242-.205-.495-.205H8.913c-.254 0-.319.029-.495.205M13 16a1 1 0 1 1-2 0 1 1 0 0 1 2 0m-.1-8.1a.9.9 0 0 0-1.8 0v5.2a.9.9 0 1 0 1.8 0z"),c(t,"clip-rule","evenodd"),ge(e,a)},m(s,u){C(s,e,u),r&&r.m(e,null),p(e,t),n=!0},p(s,[u]){r&&r.p&&(!n||u&2)&&Ve(r,o,s,s[1],n?Me(o,s[1],u,null):Ae(s[1]),null),ge(e,a=Le(l,[{xmlns:"http://www.w3.org/2000/svg"},{width:"24"},{height:"24"},{fill:"none"},{"aria-hidden":"true"},{"data-testid":"report-icon"},{role:"img"},u&1&&s[0]]))},i(s){n||(d(r,s),n=!0)},o(s){_(r,s),n=!1},d(s){s&&k(e),r&&r.d(s)}}}function kg(i,e,t){let{$$slots:n={},$$scope:o}=e;return i.$$set=r=>{t(0,e=oe(oe({},e),he(r))),"$$scope"in r&&t(1,o=r.$$scope)},e=he(e),[e,o,n]}var La=class extends j{constructor(e){super(),W(this,e,kg,wg,U,{})}},J1=La;function Cg(i){let e,t,n,o=i[2].default,r=Ee(o,i,i[1],null),l=[{xmlns:"http://www.w3.org/2000/svg"},{width:"16"},{height:"16"},{"aria-hidden":"true"},{"data-testid":"check-mark-icon"},{role:"img"},i[0]],a={};for(let s=0;s<l.length;s+=1)a=oe(a,l[s]);return{c(){e=N("svg"),r&&r.c(),t=N("path"),c(t,"fill","#fff"),c(t,"d","M6 10.2 3.5 7.7a.99.99 0 0 0-1.4 1.4l3.2 3.2a1 1 0 0 0 1.4 0l7.6-7.6a.99.99 0 0 0-1.4-1.4z"),ge(e,a)},m(s,u){C(s,e,u),r&&r.m(e,null),p(e,t),n=!0},p(s,[u]){r&&r.p&&(!n||u&2)&&Ve(r,o,s,s[1],n?Me(o,s[1],u,null):Ae(s[1]),null),ge(e,a=Le(l,[{xmlns:"http://www.w3.org/2000/svg"},{width:"16"},{height:"16"},{"aria-hidden":"true"},{"data-testid":"check-mark-icon"},{role:"img"},u&1&&s[0]]))},i(s){n||(d(r,s),n=!0)},o(s){_(r,s),n=!1},d(s){s&&k(e),r&&r.d(s)}}}function Sg(i,e,t){let{$$slots:n={},$$scope:o}=e;return i.$$set=r=>{t(0,e=oe(oe({},e),he(r))),"$$scope"in r&&t(1,o=r.$$scope)},e=he(e),[e,o,n]}var Ra=class extends j{constructor(e){super(),W(this,e,Sg,Cg,U,{})}},fl=Ra;function Tg(i){let e,t,n,o=i[2].default,r=Ee(o,i,i[1],null),l=[{xmlns:"http://www.w3.org/2000/svg"},{width:"24"},{height:"24"},{fill:"none"},{"aria-hidden":"true"},{"data-testid":"copy-icon"},{role:"img"},i[0]],a={};for(let s=0;s<l.length;s+=1)a=oe(a,l[s]);return{c(){e=N("svg"),r&&r.c(),t=N("path"),c(t,"fill","#fff"),c(t,"fill-rule","evenodd"),c(t,"d","M4 12.3V12c0-1.47.005-2.547.075-3.403.074-.904.216-1.482.454-1.949a4.85 4.85 0 0 1 2.12-2.12c.466-.237 1.044-.379 1.948-.453C9.51 4.001 10.675 4 12.3 4h4.512a2 2 0 0 0-.174-.49 2.4 2.4 0 0 0-1.048-1.048 2.4 2.4 0 0 0-.931-.239 14 14 0 0 0-1.026-.023H12.26c-1.576 0-2.814 0-3.81.081-1.014.083-1.856.255-2.62.644A6.65 6.65 0 0 0 2.926 5.83c-.389.763-.56 1.605-.644 2.62-.081.995-.081 2.233-.081 3.809v1.373c0 .392 0 .738.023 1.025.025.306.081.623.239.931a2.4 2.4 0 0 0 1.048 1.05c.162.082.326.136.49.173V12.3zM10.08 6h-.035c-.52 0-.964 0-1.329.03-.383.03-.755.097-1.112.276a2.9 2.9 0 0 0-1.298 1.298c-.179.357-.246.73-.277 1.112C6 9.081 6 9.524 6 10.046v7.909c0 .52 0 .964.03 1.329.03.382.097.755.276 1.112a2.9 2.9 0 0 0 1.298 1.298c.357.179.73.246 1.112.277.365.029.808.029 1.329.029h6.91c.52 0 .964 0 1.329-.03.382-.03.755-.097 1.112-.276a2.9 2.9 0 0 0 1.298-1.298c.179-.357.246-.73.277-1.112.029-.365.029-.808.029-1.33v-7.909c0-.52 0-.964-.03-1.329-.03-.382-.097-.755-.276-1.112a2.9 2.9 0 0 0-1.298-1.298c-.357-.179-.73-.246-1.112-.277C17.919 6 17.476 6 16.954 6zM8.408 7.916c.065-.032.179-.07.452-.093a18 18 0 0 1 1.22-.023h6.84c.565 0 .936 0 1.22.023.273.022.387.06.452.093a1.1 1.1 0 0 1 .492.492c.032.065.07.179.093.452.022.284.023.655.023 1.22v7.84c0 .565 0 .936-.023 1.22-.023.273-.06.387-.093.452a1.1 1.1 0 0 1-.492.492c-.065.032-.18.07-.452.093a18 18 0 0 1-1.22.023h-6.84c-.565 0-.936 0-1.22-.023-.273-.023-.387-.06-.452-.093a1.1 1.1 0 0 1-.492-.492c-.032-.065-.07-.18-.093-.452a17 17 0 0 1-.023-1.22v-7.84c0-.565 0-.936.023-1.22.022-.273.06-.387.093-.452a1.1 1.1 0 0 1 .492-.492"),c(t,"clip-rule","evenodd"),ge(e,a)},m(s,u){C(s,e,u),r&&r.m(e,null),p(e,t),n=!0},p(s,[u]){r&&r.p&&(!n||u&2)&&Ve(r,o,s,s[1],n?Me(o,s[1],u,null):Ae(s[1]),null),ge(e,a=Le(l,[{xmlns:"http://www.w3.org/2000/svg"},{width:"24"},{height:"24"},{fill:"none"},{"aria-hidden":"true"},{"data-testid":"copy-icon"},{role:"img"},u&1&&s[0]]))},i(s){n||(d(r,s),n=!0)},o(s){_(r,s),n=!1},d(s){s&&k(e),r&&r.d(s)}}}function Pg(i,e,t){let{$$slots:n={},$$scope:o}=e;return i.$$set=r=>{t(0,e=oe(oe({},e),he(r))),"$$scope"in r&&t(1,o=r.$$scope)},e=he(e),[e,o,n]}var Ba=class extends j{constructor(e){super(),W(this,e,Pg,Tg,U,{})}},x1=Ba;function Ig(i){let e,t,n,o=i[2].default,r=Ee(o,i,i[1],null),l=[{xmlns:"http://www.w3.org/2000/svg"},{width:"24"},{height:"24"},{fill:"none"},{"aria-hidden":"true"},{"data-testid":"info-icon"},{role:"img"},i[0]],a={};for(let s=0;s<l.length;s+=1)a=oe(a,l[s]);return{c(){e=N("svg"),r&&r.c(),t=N("path"),c(t,"fill","#fff"),c(t,"d","M12 20.105a8.105 8.105 0 1 0 0-16.21 8.105 8.105 0 0 0 0 16.21M12 22C6.477 22 2 17.523 2 12S6.477 2 12 2s10 4.477 10 10-4.477 10-10 10m0-12.372a1.316 1.316 0 1 1 0-2.632 1.316 1.316 0 0 1 0 2.632m-.947 2.822c0-.541.424-.98.947-.98s.947.439.947.98v3.83c0 .54-.424.98-.947.98s-.947-.44-.947-.98z"),ge(e,a)},m(s,u){C(s,e,u),r&&r.m(e,null),p(e,t),n=!0},p(s,[u]){r&&r.p&&(!n||u&2)&&Ve(r,o,s,s[1],n?Me(o,s[1],u,null):Ae(s[1]),null),ge(e,a=Le(l,[{xmlns:"http://www.w3.org/2000/svg"},{width:"24"},{height:"24"},{fill:"none"},{"aria-hidden":"true"},{"data-testid":"info-icon"},{role:"img"},u&1&&s[0]]))},i(s){n||(d(r,s),n=!0)},o(s){_(r,s),n=!1},d(s){s&&k(e),r&&r.d(s)}}}function Eg(i,e,t){let{$$slots:n={},$$scope:o}=e;return i.$$set=r=>{t(0,e=oe(oe({},e),he(r))),"$$scope"in r&&t(1,o=r.$$scope)},e=he(e),[e,o,n]}var Da=class extends j{constructor(e){super(),W(this,e,Eg,Ig,U,{})}},$1=Da;function Mg(i){Te(i,"svelte-8jolw5","ul.svelte-8jolw5.svelte-8jolw5{margin:0;padding:0}.menu.svelte-8jolw5.svelte-8jolw5{background-color:rgba(17, 17, 17, 0.8);border-radius:8px;line-height:40px;transition:opacity 0.2s, visibility 0.2s}.container-mobile.svelte-8jolw5.svelte-8jolw5{width:100%}.menu-desktop.svelte-8jolw5.svelte-8jolw5{position:absolute;right:0;bottom:0}.menu-mobile.svelte-8jolw5.svelte-8jolw5{width:100%;background:var(--mobile-settings-bg);font-size:15px;line-height:50px}.menu-mobile.hidden.svelte-8jolw5.svelte-8jolw5{display:none}.menu-subList.svelte-8jolw5.svelte-8jolw5{min-width:134px;padding-bottom:0}.menu-subList-subtitles.svelte-8jolw5.svelte-8jolw5{min-width:164px}.menu-subList-traffic-saving.svelte-8jolw5.svelte-8jolw5{min-width:286px}.item.svelte-8jolw5.svelte-8jolw5{align-items:center;color:var(--white);cursor:pointer;display:flex;justify-content:flex-end;padding:0 24px 0 18px;white-space:nowrap;position:relative}.item-mobile.svelte-8jolw5.svelte-8jolw5{padding:0 14px}.item-quality.item-mobile.svelte-8jolw5.svelte-8jolw5,.item-traffic-saving.item-mobile.svelte-8jolw5.svelte-8jolw5,.item-helper-text.item-mobile.svelte-8jolw5.svelte-8jolw5{flex-direction:row-reverse}.item-helper-text.svelte-8jolw5.svelte-8jolw5{cursor:auto;pointer-events:none;white-space:normal;padding:7px 24px 7px 18px}.item-helper-text.svelte-8jolw5 span.svelte-8jolw5{color:rgba(255, 255, 255, 0.48);line-height:18px;text-align:end}.item-helper-text.item-mobile.svelte-8jolw5.svelte-8jolw5{padding:7px 14px}.item-helper-text.item-mobile.svelte-8jolw5 span.svelte-8jolw5{text-align:start}.quality-title-mobile.svelte-8jolw5.svelte-8jolw5{flex-grow:1}.item.svelte-8jolw5.svelte-8jolw5:hover{background-color:rgba(255, 255, 255, 0.08)}.item.svelte-8jolw5.svelte-8jolw5:first-child{border-top-left-radius:8px;border-top-right-radius:8px}.item.svelte-8jolw5.svelte-8jolw5:last-child{border-bottom-left-radius:8px;border-bottom-right-radius:8px}.item-mobile.svelte-8jolw5.svelte-8jolw5:hover{background:var(--mobile-settings-bg)}.menu-subList.svelte-8jolw5 .item.svelte-8jolw5{color:rgba(255, 255, 255, 0.9)}.menu-subList.svelte-8jolw5 .item.svelte-8jolw5:last-child{margin-bottom:4px}.menu-icon-wrapper.svelte-8jolw5.svelte-8jolw5{width:24px;height:24px;display:flex;align-items:center;justify-content:center;margin-right:16px}.menu-title.svelte-8jolw5.svelte-8jolw5{flex-grow:1;margin-right:24px;overflow:hidden;text-overflow:ellipsis}.menu-value.svelte-8jolw5.svelte-8jolw5{position:relative;opacity:0.7}.menu-valueIcon.svelte-8jolw5.svelte-8jolw5{position:absolute;top:-10px;right:-18px;width:15px}.menu-valueIcon-list.svelte-8jolw5.svelte-8jolw5{position:absolute;top:-7px;width:15px;right:6px}.menu-valueIcon.svelte-8jolw5 svg,.menu-valueIcon-list.svelte-8jolw5 svg{color:var(--blue-light)}.menu-divider.svelte-8jolw5.svelte-8jolw5{background-color:rgba(255, 255, 255, 0.3);height:1px;margin-bottom:4px}.menu-header.svelte-8jolw5.svelte-8jolw5{color:var(--white);cursor:pointer;justify-content:space-between;display:flex}.itemIcon.svelte-8jolw5.svelte-8jolw5{margin-right:auto;padding-right:12px;opacity:0.9}.items.svelte-8jolw5.svelte-8jolw5::-webkit-scrollbar{width:8px}.items.svelte-8jolw5.svelte-8jolw5::-webkit-scrollbar-track{box-shadow:none;background-color:#3a3a3a;border-radius:4px}.items.svelte-8jolw5.svelte-8jolw5::-webkit-scrollbar-thumb{min-height:40px;border-radius:5px;background-color:#666;border:1px solid transparent;background-clip:padding-box}.items.svelte-8jolw5.svelte-8jolw5::-webkit-scrollbar-thumb:hover{background-color:#777}.items-mobile.svelte-8jolw5.svelte-8jolw5{overflow-y:auto;max-height:160px;text-align:left}.close.svelte-8jolw5.svelte-8jolw5{position:relative;width:12px;height:12px;padding:12px;margin-right:-12px}.close.svelte-8jolw5.svelte-8jolw5:before,.close.svelte-8jolw5.svelte-8jolw5:after{position:absolute;left:18px;content:' ';height:12px;width:2px;background-color:var(--white)}.close.svelte-8jolw5.svelte-8jolw5:before{transform:rotate(45deg)}.close.svelte-8jolw5.svelte-8jolw5:after{transform:rotate(-45deg)}")}function ed(i,e,t){let n=i.slice();return n[142]=e[t],n}function td(i,e,t){let n=i.slice();return n[145]=e[t],n}function id(i,e,t){let n=i.slice();return n[148]=e[t],n}function nd(i){let e,t,n,o,r,l,a,s,u,f,m,h,y=i[34]&&od(i),b=i[25]&&ld(i),S=i[24]&&sd(i),w=i[23]&&ad(i),T=i[22]&&ud(i),v=i[21]&&cd(i),g=i[34]&&fd(i);return{c(){e=P("div"),y&&y.c(),t=O(),n=P("ul"),b&&b.c(),o=O(),S&&S.c(),r=O(),w&&w.c(),l=O(),T&&T.c(),a=O(),v&&v.c(),s=O(),g&&g.c(),c(n,"class","items svelte-8jolw5"),c(n,"role","menu"),c(n,"style",u=i[73]()),z(n,"items-mobile",i[34]),c(e,"class","menu svelte-8jolw5"),z(e,"menu-desktop",!i[34]),z(e,"menu-mobile",i[34]),z(e,"hidden",!i[11])},m(I,A){C(I,e,A),y&&y.m(e,null),p(e,t),p(e,n),b&&b.m(n,null),p(n,o),S&&S.m(n,null),p(n,r),w&&w.m(n,null),p(n,l),T&&T.m(n,null),p(n,a),v&&v.m(n,null),p(n,s),g&&g.m(n,null),i[112](n),f=!0,m||(h=[de(e,"keydown",i[78]),de(e,"mouseenter",i[71]),de(e,"mouseleave",i[72])],m=!0)},p(I,A){I[34]?y?y.p(I,A):(y=od(I),y.c(),y.m(e,t)):y&&(y.d(1),y=null),I[25]?b?(b.p(I,A),A[0]&33554432&&d(b,1)):(b=ld(I),b.c(),d(b,1),b.m(n,o)):b&&(ce(),_(b,1,1,()=>{b=null}),fe()),I[24]?S?(S.p(I,A),A[0]&16777216&&d(S,1)):(S=sd(I),S.c(),d(S,1),S.m(n,r)):S&&(ce(),_(S,1,1,()=>{S=null}),fe()),I[23]?w?(w.p(I,A),A[0]&8388608&&d(w,1)):(w=ad(I),w.c(),d(w,1),w.m(n,l)):w&&(ce(),_(w,1,1,()=>{w=null}),fe()),I[22]?T?(T.p(I,A),A[0]&4194304&&d(T,1)):(T=ud(I),T.c(),d(T,1),T.m(n,a)):T&&(ce(),_(T,1,1,()=>{T=null}),fe()),I[21]?v?(v.p(I,A),A[0]&2097152&&d(v,1)):(v=cd(I),v.c(),d(v,1),v.m(n,s)):v&&(ce(),_(v,1,1,()=>{v=null}),fe()),I[34]?g?(g.p(I,A),A[1]&8&&d(g,1)):(g=fd(I),g.c(),d(g,1),g.m(n,null)):g&&(ce(),_(g,1,1,()=>{g=null}),fe()),(!f||A[1]&8)&&z(n,"items-mobile",I[34]),(!f||A[1]&8)&&z(e,"menu-desktop",!I[34]),(!f||A[1]&8)&&z(e,"menu-mobile",I[34]),(!f||A[0]&2048)&&z(e,"hidden",!I[11])},i(I){f||(d(b),d(S),d(w),d(T),d(v),d(g),f=!0)},o(I){_(b),_(S),_(w),_(T),_(v),_(g),f=!1},d(I){I&&k(e),y&&y.d(),b&&b.d(),S&&S.d(),w&&w.d(),T&&T.d(),v&&v.d(),g&&g.d(),i[112](null),m=!1,lt(h)}}}function od(i){let e,t,n,o,r,l,a,s;return{c(){e=P("div"),t=P("div"),t.textContent=`${Q("submenu_settings")}`,n=O(),o=P("div"),r=O(),l=P("div"),c(o,"class","close svelte-8jolw5"),c(e,"class","item menu-header svelte-8jolw5"),z(e,"item-mobile",i[34]),c(l,"class","menu-divider svelte-8jolw5")},m(u,f){C(u,e,f),p(e,t),p(e,n),p(e,o),C(u,r,f),C(u,l,f),a||(s=de(o,"click",ct(i[57])),a=!0)},p(u,f){f[1]&8&&z(e,"item-mobile",u[34])},d(u){u&&(k(e),k(r),k(l)),a=!1,s()}}}function ld(i){let e,t,n,o,r,l,a,s,u,f,m,h,y;n=new Er({});let b=i[33]&&!i[34]&&rd(i);return{c(){e=P("li"),t=P("div"),D(n.$$.fragment),o=O(),r=P("div"),r.textContent=`${Q("menu_quality")}`,l=O(),a=P("div"),s=Be(i[16]),u=O(),b&&b.c(),c(t,"class","menu-icon-wrapper svelte-8jolw5"),c(r,"class","menu-title svelte-8jolw5"),c(a,"class","menu-value svelte-8jolw5"),c(e,"class","item svelte-8jolw5"),c(e,"role","menuitem"),c(e,"tabindex","0"),c(e,"aria-label",f=Q("aria_label_menu_quality",{actual:i[27]})),c(e,"aria-haspopup","true"),z(e,"item-mobile",i[34])},m(S,w){C(S,e,w),p(e,t),R(n,t,null),p(e,o),p(e,r),p(e,l),p(e,a),p(a,s),p(a,u),b&&b.m(a,null),i[108](e),m=!0,h||(y=[de(e,"click",ct(i[58])),de(e,"keydown",i[79])],h=!0)},p(S,w){(!m||w[0]&65536)&&Ze(s,S[16]),S[33]&&!S[34]?b?(b.p(S,w),w[1]&12&&d(b,1)):(b=rd(S),b.c(),d(b,1),b.m(a,null)):b&&(ce(),_(b,1,1,()=>{b=null}),fe()),(!m||w[0]&134217728&&f!==(f=Q("aria_label_menu_quality",{actual:S[27]})))&&c(e,"aria-label",f),(!m||w[1]&8)&&z(e,"item-mobile",S[34])},i(S){m||(d(n.$$.fragment,S),d(b),m=!0)},o(S){_(n.$$.fragment,S),_(b),m=!1},d(S){S&&k(e),B(n),b&&b.d(),i[108](null),h=!1,lt(y)}}}function rd(i){let e,t,n;var o=i[33];function r(l){return{}}return o&&(t=Pn(o,r(i))),{c(){e=P("div"),t&&D(t.$$.fragment),c(e,"class","menu-valueIcon svelte-8jolw5")},m(l,a){C(l,e,a),t&&R(t,e,null),n=!0},p(l,a){if(a[1]&4&&o!==(o=l[33])){if(t){ce();let s=t;_(s.$$.fragment,1,0,()=>{B(s,1)}),fe()}o?(t=Pn(o,r(l)),D(t.$$.fragment),d(t.$$.fragment,1),R(t,e,null)):t=null}},i(l){n||(t&&d(t.$$.fragment,l),n=!0)},o(l){t&&_(t.$$.fragment,l),n=!1},d(l){l&&k(e),t&&B(t)}}}function sd(i){let e,t,n,o,r,l,a,s,u,f,m,h,y;return n=new Y1({}),{c(){e=P("li"),t=P("div"),D(n.$$.fragment),o=O(),r=P("div"),r.textContent=`${Q("menu_playback_rate")}`,l=O(),a=P("div"),s=Be(i[9]),u=Be("x"),c(t,"class","menu-icon-wrapper svelte-8jolw5"),c(r,"class","menu-title svelte-8jolw5"),c(a,"class","menu-value svelte-8jolw5"),c(e,"class","item svelte-8jolw5"),c(e,"role","menuitem"),c(e,"tabindex","0"),c(e,"aria-label",f=Q("aria_label_menu_rate",{actual:i[28]})),c(e,"aria-haspopup","true"),z(e,"item-mobile",i[34])},m(b,S){C(b,e,S),p(e,t),R(n,t,null),p(e,o),p(e,r),p(e,l),p(e,a),p(a,s),p(a,u),i[109](e),m=!0,h||(y=[de(e,"click",ct(Ot(i[62]))),de(e,"keydown",i[82])],h=!0)},p(b,S){(!m||S[0]&512)&&Ze(s,b[9]),(!m||S[0]&268435456&&f!==(f=Q("aria_label_menu_rate",{actual:b[28]})))&&c(e,"aria-label",f),(!m||S[1]&8)&&z(e,"item-mobile",b[34])},i(b){m||(d(n.$$.fragment,b),m=!0)},o(b){_(n.$$.fragment,b),m=!1},d(b){b&&k(e),B(n),i[109](null),h=!1,lt(y)}}}function ad(i){let e,t,n,o,r,l,a,s=i[35].displayValue+"",u,f,m,h,y;return n=new Mr({}),{c(){e=P("li"),t=P("div"),D(n.$$.fragment),o=O(),r=P("div"),r.textContent=`${Q("subtitles_caption")}`,l=O(),a=P("div"),u=Be(s),c(t,"class","menu-icon-wrapper svelte-8jolw5"),c(r,"class","menu-title svelte-8jolw5"),c(a,"class","menu-value svelte-8jolw5"),c(e,"class","item svelte-8jolw5"),c(e,"role","menuitem"),c(e,"tabindex","0"),c(e,"aria-label",f=Q("aria_label_menu_subtitle",{actual:i[35].displayValue})),c(e,"aria-haspopup","true"),z(e,"item-mobile",i[34])},m(b,S){C(b,e,S),p(e,t),R(n,t,null),p(e,o),p(e,r),p(e,l),p(e,a),p(a,u),i[110](e),m=!0,h||(y=[de(e,"click",ct(i[64])),de(e,"keydown",i[85])],h=!0)},p(b,S){(!m||S[1]&16)&&s!==(s=b[35].displayValue+"")&&Ze(u,s),(!m||S[1]&16&&f!==(f=Q("aria_label_menu_subtitle",{actual:b[35].displayValue})))&&c(e,"aria-label",f),(!m||S[1]&8)&&z(e,"item-mobile",b[34])},i(b){m||(d(n.$$.fragment,b),m=!0)},o(b){_(n.$$.fragment,b),m=!1},d(b){b&&k(e),B(n),i[110](null),h=!1,lt(y)}}}function ud(i){let e,t,n,o,r,l,a,s,u,f,m,h;return n=new Q1({}),{c(){e=P("li"),t=P("div"),D(n.$$.fragment),o=O(),r=P("div"),r.textContent=`${Q("menu_traffic_saving")}`,l=O(),a=P("div"),s=Be(i[26]),c(t,"class","menu-icon-wrapper svelte-8jolw5"),c(r,"class","menu-title svelte-8jolw5"),c(a,"class","menu-value svelte-8jolw5"),c(e,"class","item svelte-8jolw5"),c(e,"role","menuitem"),c(e,"tabindex","0"),c(e,"aria-label",u=Q("aria_label_menu_traffic_saving",{actual:i[26]})),c(e,"aria-haspopup","true"),z(e,"item-mobile",i[34])},m(y,b){C(y,e,b),p(e,t),R(n,t,null),p(e,o),p(e,r),p(e,l),p(e,a),p(a,s),i[111](e),f=!0,m||(h=[de(e,"click",ct(i[59])),de(e,"keydown",i[88])],m=!0)},p(y,b){(!f||b[0]&67108864)&&Ze(s,y[26]),(!f||b[0]&67108864&&u!==(u=Q("aria_label_menu_traffic_saving",{actual:y[26]})))&&c(e,"aria-label",u),(!f||b[1]&8)&&z(e,"item-mobile",y[34])},i(y){f||(d(n.$$.fragment,y),f=!0)},o(y){_(n.$$.fragment,y),f=!1},d(y){y&&k(e),B(n),i[111](null),m=!1,lt(h)}}}function cd(i){let e,t,n,o,r,l,a,s,u;return n=new G1({}),{c(){e=P("li"),t=P("div"),D(n.$$.fragment),o=O(),r=P("div"),r.textContent=`${Q("download_video_caption")}`,c(t,"class","menu-icon-wrapper svelte-8jolw5"),c(r,"class","menu-title svelte-8jolw5"),c(e,"class","item svelte-8jolw5"),c(e,"role","menuitem"),c(e,"tabindex","0"),c(e,"aria-label",l=Q("aria_label_menu_download")),z(e,"item-mobile",i[34])},m(f,m){C(f,e,m),p(e,t),R(n,t,null),p(e,o),p(e,r),a=!0,s||(u=[de(e,"click",ct(i[67])),de(e,"keydown",i[91])],s=!0)},p(f,m){(!a||m[1]&8)&&z(e,"item-mobile",f[34])},i(f){a||(d(n.$$.fragment,f),a=!0)},o(f){_(n.$$.fragment,f),a=!1},d(f){f&&k(e),B(n),s=!1,lt(u)}}}function fd(i){let e,t,n,o,r,l,a,s,u,f,m,h,y,b,S,w,T,v=i[37].showSupport&&Vg(i);return o=new x1({}),m=new $1({}),{c(){v&&v.c(),e=O(),t=P("li"),n=P("div"),D(o.$$.fragment),r=O(),l=P("div"),l.textContent=`${Q("menu_copy_debug")}`,s=O(),u=P("li"),f=P("div"),D(m.$$.fragment),h=O(),y=P("div"),y.textContent=`${Q("menu_debug_overlay")}`,c(n,"class","menu-icon-wrapper svelte-8jolw5"),c(l,"class","menu-title svelte-8jolw5"),c(t,"class","item item-mobile svelte-8jolw5"),c(t,"role","menuitem"),c(t,"tabindex","0"),c(t,"aria-label",a=Q("menu_copy_debug")),c(f,"class","menu-icon-wrapper svelte-8jolw5"),c(y,"class","menu-title svelte-8jolw5"),c(u,"class","item item-mobile svelte-8jolw5"),c(u,"role","menuitem"),c(u,"tabindex","0"),c(u,"aria-label",b=i[36]?Q("aria_label_menu_debug_overlay_disable"):Q("aria_label_menu_debug_overlay_enable"))},m(g,I){v&&v.m(g,I),C(g,e,I),C(g,t,I),p(t,n),R(o,n,null),p(t,r),p(t,l),C(g,s,I),C(g,u,I),p(u,f),R(m,f,null),p(u,h),p(u,y),S=!0,w||(T=[de(t,"click",ct(i[69])),de(t,"keydown",i[93]),de(u,"click",ct(i[70])),de(u,"keydown",i[94])],w=!0)},p(g,I){g[37].showSupport&&v.p(g,I),(!S||I[1]&32&&b!==(b=g[36]?Q("aria_label_menu_debug_overlay_disable"):Q("aria_label_menu_debug_overlay_enable")))&&c(u,"aria-label",b)},i(g){S||(d(v),d(o.$$.fragment,g),d(m.$$.fragment,g),S=!0)},o(g){_(v),_(o.$$.fragment,g),_(m.$$.fragment,g),S=!1},d(g){g&&(k(e),k(t),k(s),k(u)),v&&v.d(g),B(o),B(m),w=!1,lt(T)}}}function Vg(i){let e,t,n,o,r,l,a,s,u;return n=new J1({}),{c(){e=P("li"),t=P("div"),D(n.$$.fragment),o=O(),r=P("div"),r.textContent=`${Q("menu_report")}`,c(t,"class","menu-icon-wrapper svelte-8jolw5"),c(r,"class","menu-title svelte-8jolw5"),c(e,"class","item item-mobile svelte-8jolw5"),c(e,"role","menuitem"),c(e,"tabindex","0"),c(e,"aria-label",l=`${Q("menu_report")}. ${Q("aria_label_new_tab_alert")}`)},m(f,m){C(f,e,m),p(e,t),R(n,t,null),p(e,o),p(e,r),a=!0,s||(u=[de(e,"click",ct(i[68])),de(e,"keydown",i[92])],s=!0)},p:pe,i(f){a||(d(n.$$.fragment,f),a=!0)},o(f){_(n.$$.fragment,f),a=!1},d(f){f&&k(e),B(n),s=!1,lt(u)}}}function dd(i){let e,t,n,o,r,l,a,s,u,f,m,h,y,b;n=new eo({props:{direction:"left"}});let S=Vt(i[8]),w=[];for(let v=0;v<S.length;v+=1)w[v]=_d(id(i,S,v));let T=v=>_(w[v],1,1,()=>{w[v]=null});return{c(){var v;e=P("div"),t=P("div"),D(n.$$.fragment),o=O(),r=P("div"),r.textContent=`${Q("submenu_quality")}`,a=O(),s=P("div"),u=O(),f=P("ul");for(let g=0;g<w.length;g+=1)w[g].c();c(t,"class","item menu-header svelte-8jolw5"),c(t,"aria-label",l=Q("aria_label_submenu_back")),z(t,"item-mobile",i[34]),c(s,"class","menu-divider svelte-8jolw5"),c(f,"class","items svelte-8jolw5"),c(f,"role","menu"),c(f,"style",m=i[73]((v=i[17])==null?void 0:v.clientHeight,!0)),z(f,"items-mobile",i[34]),c(e,"class","menu menu-subList svelte-8jolw5"),z(e,"menu-desktop",!i[34]),z(e,"menu-mobile",i[34])},m(v,g){C(v,e,g),p(e,t),R(n,t,null),p(t,o),p(t,r),i[113](t),p(e,a),p(e,s),p(e,u),p(e,f);for(let I=0;I<w.length;I+=1)w[I]&&w[I].m(f,null);i[116](f),h=!0,y||(b=[de(t,"click",ct(i[66])),de(f,"keydown",i[80])],y=!0)},p(v,g){var I;if((!h||g[1]&8)&&z(t,"item-mobile",v[34]),g[0]&256|g[1]&536870920|g[2]&524288){S=Vt(v[8]);let A;for(A=0;A<S.length;A+=1){let q=id(v,S,A);w[A]?(w[A].p(q,g),d(w[A],1)):(w[A]=_d(q),w[A].c(),d(w[A],1),w[A].m(f,null))}for(ce(),A=S.length;A<w.length;A+=1)T(A);fe()}(!h||g[0]&131072&&m!==(m=v[73]((I=v[17])==null?void 0:I.clientHeight,!0)))&&c(f,"style",m),(!h||g[1]&8)&&z(f,"items-mobile",v[34]),(!h||g[1]&8)&&z(e,"menu-desktop",!v[34]),(!h||g[1]&8)&&z(e,"menu-mobile",v[34])},i(v){if(!h){d(n.$$.fragment,v);for(let g=0;g<S.length;g+=1)d(w[g]);h=!0}},o(v){_(n.$$.fragment,v),w=w.filter(Boolean);for(let g=0;g<w.length;g+=1)_(w[g]);h=!1},d(v){v&&k(e),B(n),i[113](null),Qi(w,v),i[116](null),y=!1,lt(b)}}}function md(i){let e,t,n;return t=new fl({}),{c(){e=P("div"),D(t.$$.fragment),c(e,"class","itemIcon svelte-8jolw5")},m(o,r){C(o,e,r),R(t,e,null),n=!0},i(o){n||(d(t.$$.fragment,o),n=!0)},o(o){_(t.$$.fragment,o),n=!1},d(o){o&&k(e),B(t)}}}function pd(i){let e,t,n;var o=yo(i[148].value);function r(l){return{}}return o&&(t=Pn(o,r(i))),{c(){e=P("div"),t&&D(t.$$.fragment),c(e,"class","menu-valueIcon-list svelte-8jolw5")},m(l,a){C(l,e,a),t&&R(t,e,null),n=!0},p(l,a){if(a[0]&256&&o!==(o=yo(l[148].value))){if(t){ce();let s=t;_(s.$$.fragment,1,0,()=>{B(s,1)}),fe()}o?(t=Pn(o,r(l)),D(t.$$.fragment),d(t.$$.fragment,1),R(t,e,null)):t=null}},i(l){n||(t&&d(t.$$.fragment,l),n=!0)},o(l){t&&_(t.$$.fragment,l),n=!1},d(l){l&&k(e),t&&B(t)}}}function _d(i){let e,t,n,o=i[148].displayValue+"",r,l,a=!i[34]&&yo(i[148].value),s,u,f,m,h,y,b=i[148].selected&&md(i),S=a&&pd(i);function w(){return i[114](i[148])}function T(...v){return i[115](i[148],...v)}return{c(){e=P("li"),b&&b.c(),t=O(),n=P("div"),r=Be(o),l=O(),S&&S.c(),s=O(),c(n,"class","svelte-8jolw5"),z(n,"quality-title-mobile",i[34]),c(e,"class","item item-quality svelte-8jolw5"),c(e,"data-value",u=i[148].value),c(e,"role","menuitem"),c(e,"tabindex","0"),c(e,"aria-label",f=i[148].displayValue),z(e,"item-mobile",i[34])},m(v,g){C(v,e,g),b&&b.m(e,null),p(e,t),p(e,n),p(n,r),p(e,l),S&&S.m(e,null),p(e,s),m=!0,h||(y=[de(e,"click",ct(w)),de(e,"keydown",T)],h=!0)},p(v,g){i=v,i[148].selected?b?g[0]&256&&d(b,1):(b=md(i),b.c(),d(b,1),b.m(e,t)):b&&(ce(),_(b,1,1,()=>{b=null}),fe()),(!m||g[0]&256)&&o!==(o=i[148].displayValue+"")&&Ze(r,o),(!m||g[1]&8)&&z(n,"quality-title-mobile",i[34]),g[0]&256|g[1]&8&&(a=!i[34]&&yo(i[148].value)),a?S?(S.p(i,g),g[0]&256|g[1]&8&&d(S,1)):(S=pd(i),S.c(),d(S,1),S.m(e,s)):S&&(ce(),_(S,1,1,()=>{S=null}),fe()),(!m||g[0]&256&&u!==(u=i[148].value))&&c(e,"data-value",u),(!m||g[0]&256&&f!==(f=i[148].displayValue))&&c(e,"aria-label",f),(!m||g[1]&8)&&z(e,"item-mobile",i[34])},i(v){m||(d(b),d(S),m=!0)},o(v){_(b),_(S),m=!1},d(v){v&&k(e),b&&b.d(),S&&S.d(),h=!1,lt(y)}}}function hd(i){let e,t,n,o,r,l,a,s,u,f,m,h,y,b;n=new eo({props:{direction:"left"}});let S=Vt(i[7]),w=[];for(let v=0;v<S.length;v+=1)w[v]=bd(td(i,S,v));let T=v=>_(w[v],1,1,()=>{w[v]=null});return{c(){var v;e=P("div"),t=P("div"),D(n.$$.fragment),o=O(),r=P("div"),r.textContent=`${Q("submenu_playback_rate")}`,a=O(),s=P("div"),u=O(),f=P("ul");for(let g=0;g<w.length;g+=1)w[g].c();c(t,"class","item menu-header svelte-8jolw5"),c(t,"aria-label",l=Q("aria_label_submenu_back")),z(t,"item-mobile",i[34]),c(s,"class","menu-divider svelte-8jolw5"),c(f,"class","items svelte-8jolw5"),c(f,"role","menu"),c(f,"style",m=i[73]((v=i[18])==null?void 0:v.clientHeight,!0)),z(f,"items-mobile",i[34]),c(e,"class","menu menu-subList svelte-8jolw5"),z(e,"menu-desktop",!i[34]),z(e,"menu-mobile",i[34])},m(v,g){C(v,e,g),p(e,t),R(n,t,null),p(t,o),p(t,r),i[117](t),p(e,a),p(e,s),p(e,u),p(e,f);for(let I=0;I<w.length;I+=1)w[I]&&w[I].m(f,null);i[120](f),h=!0,y||(b=[de(t,"click",ct(i[66])),de(f,"keydown",i[83])],y=!0)},p(v,g){var I;if((!h||g[1]&8)&&z(t,"item-mobile",v[34]),g[0]&128|g[1]&8|g[2]&4194306){S=Vt(v[7]);let A;for(A=0;A<S.length;A+=1){let q=td(v,S,A);w[A]?(w[A].p(q,g),d(w[A],1)):(w[A]=bd(q),w[A].c(),d(w[A],1),w[A].m(f,null))}for(ce(),A=S.length;A<w.length;A+=1)T(A);fe()}(!h||g[0]&262144&&m!==(m=v[73]((I=v[18])==null?void 0:I.clientHeight,!0)))&&c(f,"style",m),(!h||g[1]&8)&&z(f,"items-mobile",v[34]),(!h||g[1]&8)&&z(e,"menu-desktop",!v[34]),(!h||g[1]&8)&&z(e,"menu-mobile",v[34])},i(v){if(!h){d(n.$$.fragment,v);for(let g=0;g<S.length;g+=1)d(w[g]);h=!0}},o(v){_(n.$$.fragment,v),w=w.filter(Boolean);for(let g=0;g<w.length;g+=1)_(w[g]);h=!1},d(v){v&&k(e),B(n),i[117](null),Qi(w,v),i[120](null),y=!1,lt(b)}}}function gd(i){let e,t,n;return t=new fl({}),{c(){e=P("div"),D(t.$$.fragment),c(e,"class","itemIcon svelte-8jolw5")},m(o,r){C(o,e,r),R(t,e,null),n=!0},i(o){n||(d(t.$$.fragment,o),n=!0)},o(o){_(t.$$.fragment,o),n=!1},d(o){o&&k(e),B(t)}}}function bd(i){let e,t,n,o=i[145].displayValue+"",r,l,a,s,u,f,m,h=i[145].selected&&gd(i);function y(){return i[118](i[145])}function b(...S){return i[119](i[145],...S)}return{c(){e=P("li"),h&&h.c(),t=O(),n=P("div"),r=Be(o),l=O(),c(n,"class","svelte-8jolw5"),z(n,"quality-title-mobile",i[34]),c(e,"class","item item-quality svelte-8jolw5"),c(e,"data-value",a=i[145].value),c(e,"role","menuitem"),c(e,"tabindex","0"),c(e,"aria-label",s=i[145].displayValue),z(e,"item-mobile",i[34])},m(S,w){C(S,e,w),h&&h.m(e,null),p(e,t),p(e,n),p(n,r),p(e,l),u=!0,f||(m=[de(e,"click",ct(y)),de(e,"keydown",b)],f=!0)},p(S,w){i=S,i[145].selected?h?w[0]&128&&d(h,1):(h=gd(i),h.c(),d(h,1),h.m(e,t)):h&&(ce(),_(h,1,1,()=>{h=null}),fe()),(!u||w[0]&128)&&o!==(o=i[145].displayValue+"")&&Ze(r,o),(!u||w[1]&8)&&z(n,"quality-title-mobile",i[34]),(!u||w[0]&128&&a!==(a=i[145].value))&&c(e,"data-value",a),(!u||w[0]&128&&s!==(s=i[145].displayValue))&&c(e,"aria-label",s),(!u||w[1]&8)&&z(e,"item-mobile",i[34])},i(S){u||(d(h),u=!0)},o(S){_(h),u=!1},d(S){S&&k(e),h&&h.d(),f=!1,lt(m)}}}function vd(i){let e,t,n,o,r,l,a,s,u,f,m,h,y,b,S,w,T,v,g,I,A,q,K,re,ae,H,L,x,G;n=new eo({props:{direction:"left"}});let J=!i[5]&&yd(i),E=i[5]&&wd(i);return{c(){var te;e=P("div"),t=P("div"),D(n.$$.fragment),o=O(),r=P("div"),r.textContent=`${Q("submenu_traffic_saving")}`,a=O(),s=P("div"),u=O(),f=P("div"),m=P("ul"),h=P("li"),J&&J.c(),y=O(),b=P("div"),b.textContent=`${Q("traffic_saving_disable")}`,w=O(),T=P("li"),E&&E.c(),v=O(),g=P("div"),g.textContent=`${Q("traffic_saving_enable")}`,A=O(),q=P("div"),K=O(),re=P("div"),ae=P("span"),ae.textContent=`${Q("traffic_saving_helper_text")}`,c(t,"class","item menu-header svelte-8jolw5"),c(t,"aria-label",l=Q("aria_label_submenu_back")),z(t,"item-mobile",i[34]),c(s,"class","menu-divider svelte-8jolw5"),c(b,"class","svelte-8jolw5"),z(b,"quality-title-mobile",i[34]),c(h,"class","item item-traffic-saving svelte-8jolw5"),c(h,"role","menuitem"),c(h,"tabindex","0"),c(h,"aria-label",S=Q("aria_label_submenu_traffic_saving_off")),z(h,"item-mobile",i[34]),c(g,"class","svelte-8jolw5"),z(g,"quality-title-mobile",i[34]),c(T,"class","item item-traffic-saving svelte-8jolw5"),c(T,"role","menuitem"),c(T,"tabindex","0"),c(T,"aria-label",I=`${Q("aria_label_submenu_traffic_saving_on")}. ${Q("traffic_saving_helper_text")}`),z(T,"item-mobile",i[34]),c(m,"class","items svelte-8jolw5"),c(m,"role","menu"),z(m,"items-mobile",i[34]),c(q,"class","menu-divider svelte-8jolw5"),c(ae,"class","svelte-8jolw5"),c(re,"class","item item-helper-text svelte-8jolw5"),z(re,"item-mobile",i[34]),c(f,"style",H=i[73]((te=i[19])==null?void 0:te.clientHeight,!0)),c(e,"class","menu menu-subList menu-subList-traffic-saving svelte-8jolw5"),z(e,"menu-desktop",!i[34]),z(e,"menu-mobile",i[34])},m(te,M){C(te,e,M),p(e,t),R(n,t,null),p(t,o),p(t,r),i[121](t),p(e,a),p(e,s),p(e,u),p(e,f),p(f,m),p(m,h),J&&J.m(h,null),p(h,y),p(h,b),p(m,w),p(m,T),E&&E.m(T,null),p(T,v),p(T,g),i[126](m),p(f,A),p(f,q),p(f,K),p(f,re),p(re,ae),L=!0,x||(G=[de(t,"click",ct(i[66])),de(h,"click",ct(i[122])),de(h,"keydown",i[123]),de(T,"click",ct(i[124])),de(T,"keydown",i[125]),de(m,"keydown",i[89])],x=!0)},p(te,M){var ee;(!L||M[1]&8)&&z(t,"item-mobile",te[34]),te[5]?J&&(ce(),_(J,1,1,()=>{J=null}),fe()):J?M[0]&32&&d(J,1):(J=yd(te),J.c(),d(J,1),J.m(h,y)),(!L||M[1]&8)&&z(b,"quality-title-mobile",te[34]),(!L||M[1]&8)&&z(h,"item-mobile",te[34]),te[5]?E?M[0]&32&&d(E,1):(E=wd(te),E.c(),d(E,1),E.m(T,v)):E&&(ce(),_(E,1,1,()=>{E=null}),fe()),(!L||M[1]&8)&&z(g,"quality-title-mobile",te[34]),(!L||M[1]&8)&&z(T,"item-mobile",te[34]),(!L||M[1]&8)&&z(m,"items-mobile",te[34]),(!L||M[1]&8)&&z(re,"item-mobile",te[34]),(!L||M[0]&524288&&H!==(H=te[73]((ee=te[19])==null?void 0:ee.clientHeight,!0)))&&c(f,"style",H),(!L||M[1]&8)&&z(e,"menu-desktop",!te[34]),(!L||M[1]&8)&&z(e,"menu-mobile",te[34])},i(te){L||(d(n.$$.fragment,te),d(J),d(E),L=!0)},o(te){_(n.$$.fragment,te),_(J),_(E),L=!1},d(te){te&&k(e),B(n),i[121](null),J&&J.d(),E&&E.d(),i[126](null),x=!1,lt(G)}}}function yd(i){let e,t,n;return t=new fl({}),{c(){e=P("div"),D(t.$$.fragment),c(e,"class","itemIcon svelte-8jolw5")},m(o,r){C(o,e,r),R(t,e,null),n=!0},i(o){n||(d(t.$$.fragment,o),n=!0)},o(o){_(t.$$.fragment,o),n=!1},d(o){o&&k(e),B(t)}}}function wd(i){let e,t,n;return t=new fl({}),{c(){e=P("div"),D(t.$$.fragment),c(e,"class","itemIcon svelte-8jolw5")},m(o,r){C(o,e,r),R(t,e,null),n=!0},i(o){n||(d(t.$$.fragment,o),n=!0)},o(o){_(t.$$.fragment,o),n=!1},d(o){o&&k(e),B(t)}}}function kd(i){let e,t,n,o,r,l,a,s,u,f,m,h;n=new eo({props:{direction:"left"}});let y=Vt(i[6]),b=[];for(let w=0;w<y.length;w+=1)b[w]=Sd(ed(i,y,w));let S=w=>_(b[w],1,1,()=>{b[w]=null});return{c(){var w;e=P("div"),t=P("div"),D(n.$$.fragment),o=O(),r=P("div"),r.textContent=`${Q("subtitles_caption")}`,a=O(),s=P("ul");for(let T=0;T<b.length;T+=1)b[T].c();c(t,"class","item menu-header svelte-8jolw5"),c(t,"aria-label",l=Q("aria_label_submenu_back")),z(t,"item-mobile",i[34]),c(s,"class","items svelte-8jolw5"),c(s,"role","menu"),c(s,"style",u=i[73]((w=i[20])==null?void 0:w.clientHeight,!0)),z(s,"items-mobile",i[34]),c(e,"class","menu menu-subList menu-subList-subtitles svelte-8jolw5"),z(e,"menu-desktop",!i[34]),z(e,"menu-mobile",i[34])},m(w,T){C(w,e,T),p(e,t),R(n,t,null),p(t,o),p(t,r),i[127](t),p(e,a),p(e,s);for(let v=0;v<b.length;v+=1)b[v]&&b[v].m(s,null);i[130](s),f=!0,m||(h=[de(t,"click",ct(i[66])),de(s,"keydown",i[86])],m=!0)},p(w,T){var v;if((!f||T[1]&8)&&z(t,"item-mobile",w[34]),T[0]&64|T[1]&8|T[2]&33554440){y=Vt(w[6]);let g;for(g=0;g<y.length;g+=1){let I=ed(w,y,g);b[g]?(b[g].p(I,T),d(b[g],1)):(b[g]=Sd(I),b[g].c(),d(b[g],1),b[g].m(s,null))}for(ce(),g=y.length;g<b.length;g+=1)S(g);fe()}(!f||T[0]&1048576&&u!==(u=w[73]((v=w[20])==null?void 0:v.clientHeight,!0)))&&c(s,"style",u),(!f||T[1]&8)&&z(s,"items-mobile",w[34]),(!f||T[1]&8)&&z(e,"menu-desktop",!w[34]),(!f||T[1]&8)&&z(e,"menu-mobile",w[34])},i(w){if(!f){d(n.$$.fragment,w);for(let T=0;T<y.length;T+=1)d(b[T]);f=!0}},o(w){_(n.$$.fragment,w),b=b.filter(Boolean);for(let T=0;T<b.length;T+=1)_(b[T]);f=!1},d(w){w&&k(e),B(n),i[127](null),Qi(b,w),i[130](null),m=!1,lt(h)}}}function Cd(i){let e,t,n;return t=new fl({}),{c(){e=P("div"),D(t.$$.fragment),c(e,"class","itemIcon svelte-8jolw5")},m(o,r){C(o,e,r),R(t,e,null),n=!0},i(o){n||(d(t.$$.fragment,o),n=!0)},o(o){_(t.$$.fragment,o),n=!1},d(o){o&&k(e),B(t)}}}function Sd(i){let e,t,n,o=i[142].displayValue+"",r,l,a,s,u,f,m,h=i[142].selected&&Cd(i);function y(){return i[128](i[142])}function b(...S){return i[129](i[142],...S)}return{c(){e=P("li"),h&&h.c(),t=O(),n=P("div"),r=Be(o),l=O(),c(n,"class","svelte-8jolw5"),z(n,"quality-title-mobile",i[34]),c(e,"class","item item-quality svelte-8jolw5"),c(e,"data-value",a=i[142].value),c(e,"role","menuitem"),c(e,"tabindex","0"),c(e,"aria-label",s=i[142].displayValue),z(e,"item-mobile",i[34])},m(S,w){C(S,e,w),h&&h.m(e,null),p(e,t),p(e,n),p(n,r),p(e,l),u=!0,f||(m=[de(e,"click",ct(y)),de(e,"keydown",b)],f=!0)},p(S,w){i=S,i[142].selected?h?w[0]&64&&d(h,1):(h=Cd(i),h.c(),d(h,1),h.m(e,t)):h&&(ce(),_(h,1,1,()=>{h=null}),fe()),(!u||w[0]&64)&&o!==(o=i[142].displayValue+"")&&Ze(r,o),(!u||w[1]&8)&&z(n,"quality-title-mobile",i[34]),(!u||w[0]&64&&a!==(a=i[142].value))&&c(e,"data-value",a),(!u||w[0]&64&&s!==(s=i[142].displayValue))&&c(e,"aria-label",s),(!u||w[1]&8)&&z(e,"item-mobile",i[34])},i(S){u||(d(h),u=!0)},o(S){_(h),u=!1},d(S){S&&k(e),h&&h.d(),f=!1,lt(m)}}}function Ag(i){let e,t,n,o,r,l,a=i[10]&&nd(i),s=i[12]&&dd(i),u=i[13]&&hd(i),f=i[15]&&vd(i),m=i[14]&&kd(i);return{c(){e=P("div"),a&&a.c(),t=O(),s&&s.c(),n=O(),u&&u.c(),o=O(),f&&f.c(),r=O(),m&&m.c(),c(e,"class","svelte-8jolw5"),z(e,"hidden",!i[10]),z(e,"container-mobile",i[34])},m(h,y){C(h,e,y),a&&a.m(e,null),p(e,t),s&&s.m(e,null),p(e,n),u&&u.m(e,null),p(e,o),f&&f.m(e,null),p(e,r),m&&m.m(e,null),l=!0},p(h,y){h[10]?a?(a.p(h,y),y[0]&1024&&d(a,1)):(a=nd(h),a.c(),d(a,1),a.m(e,t)):a&&(ce(),_(a,1,1,()=>{a=null}),fe()),h[12]?s?(s.p(h,y),y[0]&4096&&d(s,1)):(s=dd(h),s.c(),d(s,1),s.m(e,n)):s&&(ce(),_(s,1,1,()=>{s=null}),fe()),h[13]?u?(u.p(h,y),y[0]&8192&&d(u,1)):(u=hd(h),u.c(),d(u,1),u.m(e,o)):u&&(ce(),_(u,1,1,()=>{u=null}),fe()),h[15]?f?(f.p(h,y),y[0]&32768&&d(f,1)):(f=vd(h),f.c(),d(f,1),f.m(e,r)):f&&(ce(),_(f,1,1,()=>{f=null}),fe()),h[14]?m?(m.p(h,y),y[0]&16384&&d(m,1)):(m=kd(h),m.c(),d(m,1),m.m(e,null)):m&&(ce(),_(m,1,1,()=>{m=null}),fe()),(!l||y[0]&1024)&&z(e,"hidden",!h[10]),(!l||y[1]&8)&&z(e,"container-mobile",h[34])},i(h){l||(d(a),d(s),d(u),d(f),d(m),l=!0)},o(h){_(a),_(s),_(u),_(f),_(m),l=!1},d(h){h&&k(e),a&&a.d(),s&&s.d(),u&&u.d(),f&&f.d(),m&&m.d()}}}var Lg=18;function Rg(i,e,t){let n,o,r,l,a,s,u,f,m,h,y,b,S,w,T,v,g,I,A,q,K,re,ae,H,{ref:L=void 0}=e,{supportLink:x}=e,{playerControlsHeight:G=0}=e,{returnFocus:J}=e,E=nt(),te=Wt(),M=E.state.currentQuality$;F(i,M,se=>t(102,S=se));let ee=E.state.availableQualities$;F(i,ee,se=>t(8,y=se));let ke=E.state.autoQualityLimitingAvailable$;F(i,ke,se=>t(106,g=se));let Ge=E.state.isAutoQualityEnabled$;F(i,Ge,se=>t(103,w=se));let Ke=E.state.currentPlaybackRate$;F(i,Ke,se=>t(9,b=se));let Je=E.state.availablePlaybackRates$;F(i,Je,se=>t(7,m=se));let We=E.state.currentSubtitle$;F(i,We,se=>t(35,ae=se));let ve=E.state.availableSubtitlesList$;F(i,ve,se=>t(6,u=se));let X=E.state.canDownload,be=E.state.hasMpegSources$;F(i,be,se=>t(107,I=se));let Ne=E.ui.settingsMenuVisible;F(i,Ne,se=>t(10,re=se));let xe=E.ui.settingsMenuOpenedByKeyboard;F(i,xe,se=>t(132,o=se));let et=E.ui.isMobile;F(i,et,se=>t(34,r=se));let ye=E.ui.mobileNotReportControlHidden$;F(i,ye,se=>t(104,T=se));let Re=E.state.canChangePlaybackSpeed$;F(i,Re,se=>t(105,v=se));let je=E.ui.isFullscreen;F(i,je,se=>t(135,K=se));let Xe=E.state.trafficSavingEnabled$;F(i,Xe,se=>t(5,a=se));let Ce=E.ui.playerSize;F(i,Ce,se=>t(134,q=se));let Z=E.ui.debugPanelVisible;F(i,Z,se=>t(36,H=se));let Pe=E.ui.playerSize;F(i,Pe,se=>t(133,A=se));let ue=E.state.isInteractiveTime$,Ie=E.actions.internal.downloadVideo,Ye=E.actions.internal.closeSettingsMenu,ft=!0,mt=!1,dt=!1,bt=!1,wt=!1,we=!1;function vt(){o||J==null||J(),Ye(),we=!1}function Nt(){t(11,ft=!1),t(12,mt=!0)}function Et(){t(11,ft=!1),t(15,wt=!0)}function qe(se){E.actions.internal.setQuality(se),vt()}function Kt(se){E.actions.internal.setTrafficSavingEnabled(se),vt()}function zt(){t(11,ft=!1),t(13,dt=!0)}function Zt(se){E.actions.internal.setPlaybackRate(se),vt()}function ti(){t(11,ft=!1),t(14,bt=!0)}function Lt(se){E.actions.internal.setSubtitle(se),vt()}function Tt(){t(11,ft=!0),t(12,mt=!1),t(13,dt=!1),t(14,bt=!1),t(15,wt=!1)}function me(){Ie(),vt()}function Ue(){window.open(x,"_blank"),vt(),E.actions.internal.pause()}function Qe(){Al(E.actions.internal.getDebugTextData()),vt()}function tt(){Z.set(!0),vt()}function _t(){we=!0}function ii(){we=!1}function Li(se,ht,ei){if(!se)return"...";let rn=ht.find(Mi=>Mi.value===se),Ei=rn?rn.displayValue:se;return ei?se===Td.VideoQuality.INVARIANT?Q("auto_quality_invariant"):Q("auto_quality",{actual:Ei}):Ei}let Gt,Ri,Yi,ni,vi;function _n(se=0,ht=!1){return r&&K&&ht?`max-height: ${Math.round(q.height*.6)}px`:r?"":`max-height: ${A.height-Lg-se-G}px; overflow: auto;`}let fi,Zi,di,Xi,yi,Bi,wi,Di,Mt,Rt,Ni=De(!1);F(i,Ni,se=>t(101,h=se));let ki,xt,si=De(!1);F(i,si,se=>t(100,f=se));let Ci,mi,gt=De(!1);F(i,gt,se=>t(99,s=se));let Oi,Pt,ai=De(!1);F(i,ai,se=>t(98,l=se));let hn=se=>{vr(se,Ye)},Cn=se=>ut(this,null,function*(){Rl(se,Nt,()=>{let ht=y.findIndex(ei=>ei.selected);return Rt.childNodes[ht]})}),ui=se=>ut(this,null,function*(){Bl(se,Tt,Ni,Ye)}),Fi=(se,ht)=>{an(se,()=>qe(ht))},Hi=se=>ut(this,null,function*(){Rl(se,zt,()=>{let ht=m.findIndex(ei=>ei.selected);return xt.childNodes[ht]})}),Si=se=>ut(this,null,function*(){Bl(se,Tt,si,Ye)}),Ti=(se,ht)=>{an(se,()=>Zt(ht))},jt=se=>ut(this,null,function*(){Rl(se,ti,()=>{let ht=u.findIndex(ei=>ei.selected);return mi.childNodes[ht]})}),$t=se=>ut(this,null,function*(){Bl(se,Tt,gt,Ye)}),Pi=(se,ht)=>{an(se,()=>Lt(ht))},Ji=se=>ut(this,null,function*(){Rl(se,Et,()=>{let ht=a?2:0;return Pt.childNodes[ht]})}),zi=se=>ut(this,null,function*(){Bl(se,Tt,ai,Ye)}),pi=(se,ht)=>{an(se,()=>Kt(ht))},un=se=>{an(se,()=>me())},gn=se=>{an(se,()=>Ue())},cn=se=>{an(se,()=>Qe())},bn=se=>{an(se,()=>tt())};Ft(()=>{let se=ue.subscribe(ht=>{ht&&!r&&!we&&!o&&vt()});return()=>{se()}});function xi(se){_e[se?"unshift":"push"](()=>{Mt=se,t(1,Mt)})}function oi(se){_e[se?"unshift":"push"](()=>{ki=se,t(2,ki)})}function $i(se){_e[se?"unshift":"push"](()=>{Ci=se,t(3,Ci)})}function li(se){_e[se?"unshift":"push"](()=>{Oi=se,t(4,Oi)})}function qi(se){_e[se?"unshift":"push"](()=>{L=se,t(0,L)})}function en(se){_e[se?"unshift":"push"](()=>{Ri=se,t(17,Ri)})}let tn=se=>qe(se.value),Ii=(se,ht)=>Fi(ht,se.value);function Ui(se){_e[se?"unshift":"push"](()=>{Rt=se,t(29,Rt)})}function $e(se){_e[se?"unshift":"push"](()=>{Yi=se,t(18,Yi)})}let ci=se=>Zt(se.value),_i=(se,ht)=>Ti(ht,se.value);function ze(se){_e[se?"unshift":"push"](()=>{xt=se,t(30,xt)})}function nn(se){_e[se?"unshift":"push"](()=>{ni=se,t(19,ni)})}let on=()=>Kt(!1),fn=se=>pi(se,!1),ln=()=>Kt(!0),Ki=se=>pi(se,!0);function dn(se){_e[se?"unshift":"push"](()=>{Pt=se,t(32,Pt)})}function hi(se){_e[se?"unshift":"push"](()=>{vi=se,t(20,vi)})}let Sn=se=>Lt(se),Qt=(se,ht)=>Pi(ht,se);function ji(se){_e[se?"unshift":"push"](()=>{mi=se,t(31,mi)})}return i.$$set=se=>{"ref"in se&&t(0,L=se.ref),"supportLink"in se&&t(95,x=se.supportLink),"playerControlsHeight"in se&&t(96,G=se.playerControlsHeight),"returnFocus"in se&&t(97,J=se.returnFocus)},i.$$.update=()=>{var se;if(i.$$.dirty[0]&1024)e:re&&(t(11,ft=!0),t(12,mt=!1),t(13,dt=!1),t(14,bt=!1),t(15,wt=!1));if(i.$$.dirty[3]&512)e:t(33,n=yo(S));if(i.$$.dirty[0]&256|i.$$.dirty[3]&1536)e:t(16,Gt=Li(S,y,w));if(i.$$.dirty[3]&18432)e:t(21,fi=X&&I&&!T);if(i.$$.dirty[3]&10240)e:t(22,Zi=te.features.trafficSaving&&!T&&g);if(i.$$.dirty[0]&64|i.$$.dirty[3]&2048)e:t(23,di=u.length>0&&!T);if(i.$$.dirty[3]&6144)e:t(24,Xi=!!v&&!T);if(i.$$.dirty[3]&2048)e:t(25,yi=!T);if(i.$$.dirty[0]&32)e:t(26,Bi=a?Q("traffic_saving_on"):Q("traffic_saving_off"));if(i.$$.dirty[3]&1536)e:t(27,wi=w?Q("auto_quality_option"):S);if(i.$$.dirty[0]&640)e:t(28,Di=(se=m.find(ht=>ht.value===b))==null?void 0:se.displayValue);if(i.$$.dirty[0]&2|i.$$.dirty[3]&256)e:Ll(Mt,Ni,h);if(i.$$.dirty[0]&4|i.$$.dirty[3]&128)e:Ll(ki,si,f);if(i.$$.dirty[0]&8|i.$$.dirty[3]&64)e:Ll(Ci,gt,s);if(i.$$.dirty[0]&16|i.$$.dirty[3]&32)e:Ll(Oi,ai,l)},[L,Mt,ki,Ci,Oi,a,u,m,y,b,re,ft,mt,dt,bt,wt,Gt,Ri,Yi,ni,vi,fi,Zi,di,Xi,yi,Bi,wi,Di,Rt,xt,mi,Pt,n,r,ae,H,te,M,ee,ke,Ge,Ke,Je,We,ve,be,Ne,xe,et,ye,Re,je,Xe,Ce,Z,Pe,vt,Nt,Et,qe,Kt,zt,Zt,ti,Lt,Tt,me,Ue,Qe,tt,_t,ii,_n,Ni,si,gt,ai,hn,Cn,ui,Fi,Hi,Si,Ti,jt,$t,Pi,Ji,zi,pi,un,gn,cn,bn,x,G,J,l,s,f,h,S,w,T,v,g,I,xi,oi,$i,li,qi,en,tn,Ii,Ui,$e,ci,_i,ze,nn,on,fn,ln,Ki,dn,hi,Sn,Qt,ji]}var Na=class extends j{constructor(e){super(),W(this,e,Rg,Ag,U,{ref:0,supportLink:95,playerControlsHeight:96,returnFocus:97},Mg,[-1,-1,-1,-1,-1])}},Vr=Na;function Bg(i){Te(i,"svelte-d9t49t",".settings-icon-wrapper.svelte-d9t49t{position:relative;width:24px}")}function Dg(i){let e,t,n;return t=new Er({props:{isMobile:i[3],currentQuality:i[4]}}),{c(){e=P("span"),D(t.$$.fragment),c(e,"class","settings-icon-wrapper svelte-d9t49t")},m(o,r){C(o,e,r),R(t,e,null),n=!0},p(o,r){let l={};r&8&&(l.isMobile=o[3]),r&16&&(l.currentQuality=o[4]),t.$set(l)},i(o){n||(d(t.$$.fragment,o),n=!0)},o(o){_(t.$$.fragment,o),n=!1},d(o){o&&k(e),B(t)}}}function Ng(i){let e,t,n;function o(l){i[9](l)}let r={className:i[1]?"opened":"",testId:"btn-settings",click:i[8],ariaLabel:i[2],ariaExpanded:i[1],$$slots:{default:[Dg]},$$scope:{ctx:i}};return i[0]!==void 0&&(r.ref=i[0]),e=new yt({props:r}),_e.push(()=>Fe(e,"ref",o)),{c(){D(e.$$.fragment)},m(l,a){R(e,l,a),n=!0},p(l,[a]){let s={};a&2&&(s.className=l[1]?"opened":""),a&4&&(s.ariaLabel=l[2]),a&2&&(s.ariaExpanded=l[1]),a&4120&&(s.$$scope={dirty:a,ctx:l}),!t&&a&1&&(t=!0,s.ref=l[0],Oe(()=>t=!1)),e.$set(s)},i(l){n||(d(e.$$.fragment,l),n=!0)},o(l){_(e.$$.fragment,l),n=!1},d(l){B(e,l)}}}function Og(i,e,t){let n,o,r,{ref:l=void 0}=e,a=nt(),s=a.state.currentQuality$;F(i,s,S=>t(4,r=S));let u=a.ui.settingsMenuVisible;F(i,u,S=>t(1,n=S));let f=a.actions.internal.toggleSettingsMenu,m=a.ui.isMobile;F(i,m,S=>t(3,o=S));let h;function y(S){let w=sl(S);f(w)}function b(S){l=S,t(0,l)}return i.$$set=S=>{"ref"in S&&t(0,l=S.ref)},i.$$.update=()=>{if(i.$$.dirty&2)e:t(2,h=n?Q("tooltip_settings_on"):Q("tooltip_settings_off"))},[l,n,h,o,r,s,u,m,y,b]}var Oa=class extends j{constructor(e){super(),W(this,e,Og,Ng,U,{ref:0},Bg)}},Nl=Oa;function Fg(i){let e,t,n,o=i[2].default,r=Ee(o,i,i[1],null),l=[{xmlns:"http://www.w3.org/2000/svg"},{width:"22"},{height:"16"},{fill:"none"},{"aria-hidden":"true"},{"data-testid":"subtitle-pained-icon"},{role:"img"},i[0]],a={};for(let s=0;s<l.length;s+=1)a=oe(a,l[s]);return{c(){e=N("svg"),r&&r.c(),t=N("path"),c(t,"fill","#fff"),c(t,"d","M3 0h14a3 3 0 0 1 3 3v10a3 3 0 0 1-3 3H3a3 3 0 0 1-3-3V3a3 3 0 0 1 3-3m1 9h2a1 1 0 0 0 0-2H4a1 1 0 0 0 0 2m5 0h7a1 1 0 1 0 0-2H9a1 1 0 0 0 0 2m-5 4h7a1 1 0 1 0 0-2H4a1 1 0 1 0 0 2m10 0h2a1 1 0 1 0 0-2h-2a1 1 0 1 0 0 2"),ge(e,a)},m(s,u){C(s,e,u),r&&r.m(e,null),p(e,t),n=!0},p(s,[u]){r&&r.p&&(!n||u&2)&&Ve(r,o,s,s[1],n?Me(o,s[1],u,null):Ae(s[1]),null),ge(e,a=Le(l,[{xmlns:"http://www.w3.org/2000/svg"},{width:"22"},{height:"16"},{fill:"none"},{"aria-hidden":"true"},{"data-testid":"subtitle-pained-icon"},{role:"img"},u&1&&s[0]]))},i(s){n||(d(r,s),n=!0)},o(s){_(r,s),n=!1},d(s){s&&k(e),r&&r.d(s)}}}function Hg(i,e,t){let{$$slots:n={},$$scope:o}=e;return i.$$set=r=>{t(0,e=oe(oe({},e),he(r))),"$$scope"in r&&t(1,o=r.$$scope)},e=he(e),[e,o,n]}var Fa=class extends j{constructor(e){super(),W(this,e,Hg,Fg,U,{})}},Pd=Fa;function zg(i){let e,t;return e=new Mr({}),{c(){D(e.$$.fragment)},m(n,o){R(e,n,o),t=!0},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){_(e.$$.fragment,n),t=!1},d(n){B(e,n)}}}function qg(i){let e,t;return e=new Pd({}),{c(){D(e.$$.fragment)},m(n,o){R(e,n,o),t=!0},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){_(e.$$.fragment,n),t=!1},d(n){B(e,n)}}}function Ug(i){let e,t,n,o,r=[qg,zg],l=[];function a(s,u){return s[0]?0:1}return e=a(i,-1),t=l[e]=r[e](i),{c(){t.c(),n=st()},m(s,u){l[e].m(s,u),C(s,n,u),o=!0},p(s,u){let f=e;e=a(s,u),e!==f&&(ce(),_(l[f],1,1,()=>{l[f]=null}),fe(),t=l[e],t||(t=l[e]=r[e](s),t.c()),d(t,1),t.m(n.parentNode,n))},i(s){o||(d(t),o=!0)},o(s){_(t),o=!1},d(s){s&&k(n),l[e].d(s)}}}function Kg(i){let e,t;return e=new yt({props:{testId:"btn-Subtitles",ariaLabel:i[2],click:i[1],ariaKeyShortCut:xn.KeyC,$$slots:{default:[Ug]},$$scope:{ctx:i}}}),{c(){D(e.$$.fragment)},m(n,o){R(e,n,o),t=!0},p(n,[o]){let r={};o&4&&(r.ariaLabel=n[2]),o&2&&(r.click=n[1]),o&9&&(r.$$scope={dirty:o,ctx:n}),e.$set(r)},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){_(e.$$.fragment,n),t=!1},d(n){B(e,n)}}}function jg(i,e,t){let{isSubtitlesEnabled:n=!1}=e,{click:o}=e,r;return i.$$set=l=>{"isSubtitlesEnabled"in l&&t(0,n=l.isSubtitlesEnabled),"click"in l&&t(1,o=l.click)},i.$$.update=()=>{if(i.$$.dirty&1)e:t(2,r=n?Q("tooltip_subtitles_on"):Q("tooltip_subtitles_off"))},[n,o,r]}var Ha=class extends j{constructor(e){super(),W(this,e,jg,Kg,U,{isSubtitlesEnabled:0,click:1})}},Id=Ha;function Wg(i){Te(i,"svelte-19o2urr",".time.svelte-19o2urr{display:flex;align-items:center;font-weight:500;font-variant-numeric:tabular-nums;padding:12px 6px}.time.mobile.svelte-19o2urr{padding:0 0 0 8px}.current.svelte-19o2urr{position:relative}.duration.svelte-19o2urr{opacity:0.7}.duration.svelte-19o2urr:before{content:' / ';white-space:pre}")}function Ed(i){let e,t;return{c(){e=P("span"),t=Be(i[3]),c(e,"class","duration svelte-19o2urr")},m(n,o){C(n,e,o),p(e,t)},p(n,o){o&8&&Ze(t,n[3])},d(n){n&&k(e)}}}function Gg(i){let e,t,n,o,r=i[2]&&Ed(i);return{c(){e=P("div"),t=P("span"),n=Be(i[4]),o=O(),r&&r.c(),c(t,"class","current svelte-19o2urr"),c(e,"class","time svelte-19o2urr"),z(e,"mobile",i[1])},m(l,a){C(l,e,a),p(e,t),p(t,n),p(e,o),r&&r.m(e,null),i[7](e)},p(l,[a]){a&16&&Ze(n,l[4]),l[2]?r?r.p(l,a):(r=Ed(l),r.c(),r.m(e,null)):r&&(r.d(1),r=null),a&2&&z(e,"mobile",l[1])},i:pe,o:pe,d(l){l&&k(e),r&&r.d(),i[7](null)}}}function Qg(i,e,t){let{isMobile:n=!1}=e,{duration:o}=e,{position:r}=e,{showDuration:l=!0}=e,{ref:a}=e,s,u;function f(m){_e[m?"unshift":"push"](()=>{a=m,t(0,a)})}return i.$$set=m=>{"isMobile"in m&&t(1,n=m.isMobile),"duration"in m&&t(5,o=m.duration),"position"in m&&t(6,r=m.position),"showDuration"in m&&t(2,l=m.showDuration),"ref"in m&&t(0,a=m.ref)},i.$$.update=()=>{if(i.$$.dirty&32)e:t(3,s=Ln(o));if(i.$$.dirty&64)e:t(4,u=Ln(r))},[a,n,l,s,u,o,r,f]}var za=class extends j{constructor(e){super(),W(this,e,Qg,Gg,U,{isMobile:1,duration:5,position:6,showDuration:2,ref:0},Wg)}},Ar=za;var ro=require("@vkontakte/videoplayer-shared");function Yg(i){Te(i,"svelte-1n5yyua",".icon.svelte-1n5yyua.svelte-1n5yyua{display:block;width:24px;height:24px}.icon.svelte-1n5yyua .cross.svelte-1n5yyua{visibility:hidden}.icon[data-value='off'].svelte-1n5yyua .wave1.svelte-1n5yyua,.icon[data-value='off'].svelte-1n5yyua .wave2.svelte-1n5yyua{visibility:hidden}.icon[data-value='off'].svelte-1n5yyua .cross.svelte-1n5yyua{visibility:visible}.icon[data-value='mid'].svelte-1n5yyua .wave2.svelte-1n5yyua,.icon[data-value='min'].svelte-1n5yyua .wave2.svelte-1n5yyua{visibility:hidden}")}function Zg(i){let e,t,n,o,r,l;return{c(){e=N("svg"),t=N("g"),n=N("path"),o=N("path"),r=N("path"),c(n,"class","wave2 svelte-1n5yyua"),c(n,"d","M12.98 18.823c-.031 1.207-.67 1.609-1.828.62-1.719-1.469-3.609-3.194-4.242-3.721-.632-.529-1.645-.62-3.073-.62-1.427 0-1.815-.621-1.815-1.241s-.014-1.83-.014-2.001c0-.055.005-.086.014-.13.02-.095-.058-.973 0-1.59.085-.906.388-1.241 1.815-1.241 1.428 0 2.44-.092 3.073-.62.633-.529 2.523-2.253 4.242-3.722 1.158-.989 1.797-.587 1.829.62.043 1.607 0 3.85 0 6.683 0 2.83.043 5.356 0 6.963zm2.901-8.704A.875.875 0 1 1 17.12 8.88c.176.177.41.47.64.872.384.671.616 1.425.616 2.247s-.232 1.576-.615 2.247a4.23 4.23 0 0 1-.641.872.875.875 0 1 1-1.238-1.238c.074-.073.214-.249.36-.503.241-.423.384-.887.384-1.378s-.143-.955-.385-1.378a2.597 2.597 0 0 0-.359-.503zm3-2A.875.875 0 1 1 20.12 6.88c.263.264.62.74.966 1.432.517 1.033.843 2.255.89 3.716-.047 1.403-.373 2.625-.89 3.658-.346.692-.703 1.168-.966 1.432a.875.875 0 1 1-1.238-1.238c.138-.137.383-.464.639-.976.407-.814.667-1.79.705-2.876-.038-1.144-.298-2.12-.705-2.934-.256-.512-.501-.839-.639-.976z"),c(o,"class","wave1 svelte-1n5yyua"),c(o,"d","M12.98 18.823c-.031 1.207-.67 1.609-1.828.62-1.719-1.469-3.609-3.194-4.242-3.721-.632-.529-1.645-.62-3.073-.62-1.427 0-1.815-.621-1.815-1.241s-.014-1.83-.014-2.001c0-.055.005-.086.014-.13.02-.095-.058-.973 0-1.59.085-.906.388-1.241 1.815-1.241 1.428 0 2.44-.092 3.073-.62.633-.529 2.523-2.253 4.242-3.722 1.158-.989 1.797-.587 1.829.62.043 1.607 0 3.85 0 6.683 0 2.83.043 5.356 0 6.963zm2.901-8.704A.875.875 0 1 1 17.12 8.88c.176.177.41.47.64.872.384.671.616 1.425.616 2.247s-.232 1.576-.615 2.247a4.23 4.23 0 0 1-.641.872.875.875 0 1 1-1.238-1.238c.074-.073.214-.249.36-.503.241-.423.384-.887.384-1.378s-.143-.955-.385-1.378a2.597 2.597 0 0 0-.359-.503z"),c(r,"class","cross svelte-1n5yyua"),c(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"),c(t,"fill","#fff"),c(t,"fill-rule","evenodd"),c(e,"data-value",i[0]),c(e,"data-testid",l="volume-"+i[0]+"-icon"),c(e,"xmlns","http://www.w3.org/2000/svg"),c(e,"class","icon svelte-1n5yyua"),c(e,"aria-hidden","true")},m(a,s){C(a,e,s),p(e,t),p(t,n),p(t,o),p(t,r)},p(a,[s]){s&1&&c(e,"data-value",a[0]),s&1&&l!==(l="volume-"+a[0]+"-icon")&&c(e,"data-testid",l)},i:pe,o:pe,d(a){a&&k(e)}}}function Xg(i,e,t){let{volume:n=1}=e,{muted:o=!1}=e,r=(a,s)=>s?"off":a>.5?"max":a>.2?"mid":a>0?"min":"off",l;return i.$$set=a=>{"volume"in a&&t(1,n=a.volume),"muted"in a&&t(2,o=a.muted)},i.$$.update=()=>{if(i.$$.dirty&6)e:t(0,l=r(n,o))},[l,n,o]}var qa=class extends j{constructor(e){super(),W(this,e,Xg,Zg,U,{volume:1,muted:2},Yg)}},Uo=qa;var Hn=require("@vkontakte/videoplayer-shared");var Ld=require("@vkontakte/videoplayer-shared");var Ad=require("@vkontakte/videoplayer-shared");function Jg(i){let e,t,n=i[4].default,o=Ee(n,i,i[3],null);return{c(){e=P("div"),o&&o.c(),c(e,"class","overlay")},m(r,l){C(r,e,l),o&&o.m(e,null),i[5](e),t=!0},p(r,[l]){o&&o.p&&(!t||l&8)&&Ve(o,n,r,r[3],t?Me(n,r[3],l,null):Ae(r[3]),null)},i(r){t||(d(o,r),t=!0)},o(r){_(o,r),t=!1},d(r){r&&k(e),o&&o.d(r),i[5](null)}}}function xg(i,e,t){let n,{$$slots:o={},$$scope:r}=e,a=nt().ui.overlayContainer$;F(i,a,h=>t(2,n=h));let s,u=h=>{!h||!s||!h.contains(s)||h.removeChild(s)},f=h=>{!h||!s||h.contains(s)||h.appendChild(s)};Ft(()=>(f(n),()=>u(n)));function m(h){_e[h?"unshift":"push"](()=>{s=h,t(0,s)})}return i.$$set=h=>{"$$scope"in h&&t(3,r=h.$$scope)},i.$$.update=()=>{if(i.$$.dirty&4)e:f(n)},[s,a,n,r,o,m]}var Ua=class extends j{constructor(e){super(),W(this,e,xg,Jg,U,{})}},Md=Ua;function $g(i){Te(i,"svelte-tny135",'.tooltip-wrapper.svelte-tny135{display:flex;flex-direction:column;min-width:0}.full-width.svelte-tny135{width:100%}.tooltip.svelte-tny135{position:absolute;opacity:0;visibility:hidden;transition:opacity 200ms, visibility 200ms;bottom:100%;left:0}.content.svelte-tny135{display:inline-block;padding:6px 10px;border-radius:3px;color:var(--white);background-color:rgba(41, 41, 41, .8)}.tooltip.active.svelte-tny135{opacity:1;visibility:visible}.tooltip-pointer.svelte-tny135{position:absolute;bottom:0;width:0;border-top:5px solid rgba(41, 41, 41, .8);border-right:5px solid transparent;border-left:5px solid transparent;content:" ";font-size:0;line-height:0}.bottom-placement-pointer.svelte-tny135{top:0;bottom:auto}')}function Vd(i){let e,t;return e=new Md({props:{$$slots:{default:[eb]},$$scope:{ctx:i}}}),{c(){D(e.$$.fragment)},m(n,o){R(e,n,o),t=!0},p(n,o){let r={};o&2097395&&(r.$$scope={dirty:o,ctx:n}),e.$set(r)},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){_(e.$$.fragment,n),t=!1},d(n){B(e,n)}}}function eb(i){let e,t,n,o,r,l,a;return{c(){e=P("div"),t=P("div"),n=Be(i[1]),o=O(),r=P("div"),c(t,"class","content svelte-tny135"),c(r,"class","tooltip-pointer svelte-tny135"),c(r,"style",l=`transform: translate(${i[5]}px, ${i[9]}px) rotate(${i[8]?0:"180deg"});`),z(r,"bottom-placement-pointer",!i[8]),c(e,"class","tooltip svelte-tny135"),c(e,"style",a=`transform: translate(${i[6]}px, ${i[7]}px);`),z(e,"active",i[0])},m(s,u){C(s,e,u),p(e,t),p(t,n),p(e,o),p(e,r),i[20](e)},p(s,u){u&2&&Ze(n,s[1]),u&32&&l!==(l=`transform: translate(${s[5]}px, ${s[9]}px) rotate(${s[8]?0:"180deg"});`)&&c(r,"style",l),u&192&&a!==(a=`transform: translate(${s[6]}px, ${s[7]}px);`)&&c(e,"style",a),u&1&&z(e,"active",s[0])},d(s){s&&k(e),i[20](null)}}}function tb(i){let e,t,n,o,r,l,a=i[18].default,s=Ee(a,i,i[21],null),u=i[1]&&Vd(i);return{c(){e=P("div"),s&&s.c(),t=O(),u&&u.c(),n=st(),c(e,"class","tooltip-wrapper svelte-tny135"),z(e,"full-width",i[2])},m(f,m){C(f,e,m),s&&s.m(e,null),i[19](e),C(f,t,m),u&&u.m(f,m),C(f,n,m),o=!0,r||(l=[de(e,"mouseenter",i[12]),de(e,"mousemove",i[12]),de(e,"mouseleave",i[13]),de(e,"mousedown",i[13]),de(e,"mouseup",i[12])],r=!0)},p(f,[m]){s&&s.p&&(!o||m&2097152)&&Ve(s,a,f,f[21],o?Me(a,f[21],m,null):Ae(f[21]),null),(!o||m&4)&&z(e,"full-width",f[2]),f[1]?u?(u.p(f,m),m&2&&d(u,1)):(u=Vd(f),u.c(),d(u,1),u.m(n.parentNode,n)):u&&(ce(),_(u,1,1,()=>{u=null}),fe())},i(f){o||(d(s,f),d(u),o=!0)},o(f){_(s,f),_(u),o=!1},d(f){f&&(k(e),k(t),k(n)),s&&s.d(f),i[19](null),u&&u.d(f),r=!1,lt(l)}}}var Ol=5;function ib(i,e,t){let n,o,{$$slots:r={},$$scope:l}=e,{content:a=""}=e,{active:s=!1}=e,{translateX:u=0}=e,{translateY:f=0}=e,{isFullWidthWrapper:m=!1}=e,{placement:h="top"}=e,{onVisibilityChange:y=Ad.noop}=e,b=h==="top",S,w,T,v=0,g=b?Ol:-Ol,I=0,A=0,q=Wt(),K=nt(),re=K.ui.playerSize;F(i,re,ee=>t(24,o=ee));let ae=K.ui.overlayContainer$;F(i,ae,ee=>t(23,n=ee));let H=K.getLogger().createComponentLog("Tooltip component"),L=()=>{if(!n||!w||!S)return;let ee=n.getBoundingClientRect(),ke=S.getBoundingClientRect(),Ge=ke.width,Ke=w.clientWidth,Je=o.width,We=(Ge-Ke)/2,ve=ke.left+u-ee.left,X=ve+We,be=ke.top+f-ee.top,Ne=Ke/2-Ol,xe=X<8,et=X+Ke>Je-8;xe&&(X=8,Ne=ve+ke.width/2-2.5*Ol),et&&(X=Je-8-Ke,Ne=ke.left-ee.left+ke.width/2-X-Ol),t(6,I=X),t(7,A=be),t(5,v=Ne)},x=()=>{try{if(!n||!S)return;L(),t(0,s=!0)}catch(ee){H({message:String(ee)})}},G=()=>{t(0,s=!1)},J=()=>{w&&(T||(T=window.setTimeout(x,q.controls.hideTimeoutTooltips)),s&&x())},E=()=>{G(),window.clearTimeout(T),T=void 0};Ft(L),Wn(()=>window.clearTimeout(T));function te(ee){_e[ee?"unshift":"push"](()=>{S=ee,t(3,S)})}function M(ee){_e[ee?"unshift":"push"](()=>{w=ee,t(4,w)})}return i.$$set=ee=>{"content"in ee&&t(1,a=ee.content),"active"in ee&&t(0,s=ee.active),"translateX"in ee&&t(14,u=ee.translateX),"translateY"in ee&&t(15,f=ee.translateY),"isFullWidthWrapper"in ee&&t(2,m=ee.isFullWidthWrapper),"placement"in ee&&t(16,h=ee.placement),"onVisibilityChange"in ee&&t(17,y=ee.onVisibilityChange),"$$scope"in ee&&t(21,l=ee.$$scope)},i.$$.update=()=>{if(i.$$.dirty&131073)e:y(s)},[s,a,m,S,w,v,I,A,b,g,re,ae,J,E,u,f,h,y,r,te,M,l]}var Ka=class extends j{constructor(e){super(),W(this,e,ib,tb,U,{content:1,active:0,translateX:14,translateY:15,isFullWidthWrapper:2,placement:16,onVisibilityChange:17},$g)}},Lr=Ka;function nb(i){Te(i,"svelte-p9r045",".btn-container.svelte-p9r045{position:relative;display:flex;align-items:center;height:100%;transition:var(--button-hover-transition);will-change:opacity;-webkit-tap-highlight-color:transparent}.w-max.svelte-p9r045{width:100%;min-width:0}")}function ob(i){let e,t=i[19].default,n=Ee(t,i,i[24],null);return{c(){n&&n.c()},m(o,r){n&&n.m(o,r),e=!0},p(o,r){n&&n.p&&(!e||r&16777216)&&Ve(n,t,o,o[24],e?Me(t,o[24],r,null):Ae(o[24]),null)},i(o){e||(d(n,o),e=!0)},o(o){_(n,o),e=!1},d(o){n&&n.d(o)}}}function lb(i){let e,t;return e=new Lr({props:{content:i[12],translateX:i[10],translateY:i[11],isFullWidthWrapper:i[4],active:i[6],placement:i[7],onVisibilityChange:i[9],$$slots:{default:[rb]},$$scope:{ctx:i}}}),{c(){D(e.$$.fragment)},m(n,o){R(e,n,o),t=!0},p(n,o){let r={};o&4096&&(r.content=n[12]),o&1024&&(r.translateX=n[10]),o&2048&&(r.translateY=n[11]),o&16&&(r.isFullWidthWrapper=n[4]),o&64&&(r.active=n[6]),o&128&&(r.placement=n[7]),o&512&&(r.onVisibilityChange=n[9]),o&16777216&&(r.$$scope={dirty:o,ctx:n}),e.$set(r)},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){_(e.$$.fragment,n),t=!1},d(n){B(e,n)}}}function rb(i){let e,t=i[19].default,n=Ee(t,i,i[24],null);return{c(){n&&n.c()},m(o,r){n&&n.m(o,r),e=!0},p(o,r){n&&n.p&&(!e||r&16777216)&&Ve(n,t,o,o[24],e?Me(t,o[24],r,null):Ae(o[24]),null)},i(o){e||(d(n,o),e=!0)},o(o){_(n,o),e=!1},d(o){n&&n.d(o)}}}function sb(i){let e,t,n,o,r,l,a,s,u,f=[lb,ob],m=[];function h(y,b){return y[3]&&y[5]&&!y[13]?0:1}return t=h(i,-1),n=m[t]=f[t](i),{c(){e=P("div"),n.c(),c(e,"class",o="btn-container "+i[2]+" svelte-p9r045"),c(e,"aria-hidden",r=i[8]||null),Qn(()=>i[23].call(e))},m(y,b){C(y,e,b),m[t].m(e,null),i[22](e),l=Xo(e,i[23].bind(e)),a=!0,s||(u=[de(e,"pointerdown",ct(Ot(i[20]))),de(e,"click",ct(Ot(i[21])))],s=!0)},p(y,[b]){let S=t;t=h(y,b),t===S?m[t].p(y,b):(ce(),_(m[S],1,1,()=>{m[S]=null}),fe(),n=m[t],n?n.p(y,b):(n=m[t]=f[t](y),n.c()),d(n,1),n.m(e,null)),(!a||b&4&&o!==(o="btn-container "+y[2]+" svelte-p9r045"))&&c(e,"class",o),(!a||b&256&&r!==(r=y[8]||null))&&c(e,"aria-hidden",r)},i(y){a||(d(n),a=!0)},o(y){_(n),a=!1},d(y){y&&k(e),m[t].d(),i[22](null),l(),s=!1,lt(u)}}}function ab(i,e,t){let n,o,{$$slots:r={},$$scope:l}=e,{className:a=""}=e,{disabled:s=!1}=e,{hasTooltip:u=!0}=e,{ref:f=void 0}=e,{width:m=void 0}=e,{isFullWidthTooltip:h=!0}=e,{tooltipContent:y=""}=e,{tooltipActive:b=!1}=e,{tooltipPlacement:S="top"}=e,{disabledTooltipContent:w=Q("tooltip_button_disabled")}=e,{isAriaHidden:T=!1}=e,{onTooltipVisibilityChange:v=Ld.noop}=e,{initialTranslateXPx:g=0}=e,{initialTranslateYPx:I=-18}=e,A=nt(),q=A.ui.isMobile;F(i,q,G=>t(13,o=G));let K=A.state.graphIsOpened$;F(i,K,G=>t(18,n=G));let re;function ae(G){An.call(this,i,G)}function H(G){An.call(this,i,G)}function L(G){_e[G?"unshift":"push"](()=>{f=G,t(0,f)})}function x(){m=this.clientWidth,t(1,m)}return i.$$set=G=>{"className"in G&&t(2,a=G.className),"disabled"in G&&t(16,s=G.disabled),"hasTooltip"in G&&t(3,u=G.hasTooltip),"ref"in G&&t(0,f=G.ref),"width"in G&&t(1,m=G.width),"isFullWidthTooltip"in G&&t(4,h=G.isFullWidthTooltip),"tooltipContent"in G&&t(5,y=G.tooltipContent),"tooltipActive"in G&&t(6,b=G.tooltipActive),"tooltipPlacement"in G&&t(7,S=G.tooltipPlacement),"disabledTooltipContent"in G&&t(17,w=G.disabledTooltipContent),"isAriaHidden"in G&&t(8,T=G.isAriaHidden),"onTooltipVisibilityChange"in G&&t(9,v=G.onTooltipVisibilityChange),"initialTranslateXPx"in G&&t(10,g=G.initialTranslateXPx),"initialTranslateYPx"in G&&t(11,I=G.initialTranslateYPx),"$$scope"in G&&t(24,l=G.$$scope)},i.$$.update=()=>{if(i.$$.dirty&458784)e:s?t(12,re=n?Q("tooltip_disabled_when_graph_on"):w):t(12,re=y)},[f,m,a,u,h,y,b,S,T,v,g,I,re,o,q,K,s,w,n,r,ae,H,L,x,l]}var ja=class extends j{constructor(e){super(),W(this,e,ab,sb,U,{className:2,disabled:16,hasTooltip:3,ref:0,width:1,isFullWidthTooltip:4,tooltipContent:5,tooltipActive:6,tooltipPlacement:7,disabledTooltipContent:17,isAriaHidden:8,onTooltipVisibilityChange:9,initialTranslateXPx:10,initialTranslateYPx:11},nb)}},Ut=ja;function ub(i){let e,t,n,o,r,l;return{c(){e=N("svg"),t=N("rect"),o=N("path"),c(t,"width","20"),c(t,"height","20"),c(t,"rx","10"),c(t,"fill","white"),c(t,"fill-opacity",n=i[0]?1:.24),c(o,"d","M12.5259 8.68864L12.587 8.87536L12.3702 8.23648C12.236 7.84095 11.8295 7.60563 11.4192 7.68593C10.9471 7.77831 10.6508 8.24892 10.7718 8.71381L10.8968 9.19361L10.6671 8.33855C10.5566 7.92714 10.1475 7.67011 9.72832 7.74872C9.32282 7.82476 9.04808 8.18606 9.06319 8.57993L8.34064 5.64592C8.21338 5.12912 7.64646 4.85578 7.1621 5.07767C6.79216 5.24715 6.59467 5.65495 6.69131 6.0498L7.98547 11.3373L6.87 10.178C6.52545 9.81987 5.94024 9.86103 5.64933 10.2638C5.44455 10.5474 5.44907 10.9312 5.66048 11.2098L7.89246 14.1518C7.89246 14.1518 9.12075 15.9833 12.1932 15.3769C14.6243 14.8972 15.4434 12.7097 14.7748 10.4997L14.2213 8.20869C14.0975 7.69621 13.5537 7.40646 13.0585 7.58916C12.614 7.75319 12.3788 8.23875 12.5259 8.68864Z"),c(o,"fill",r=i[0]?"var(--interactive-episode-complete)":"white"),c(e,"width","20"),c(e,"height","20"),c(e,"viewBox","0 0 20 20"),c(e,"fill","none"),c(e,"xmlns","http://www.w3.org/2000/svg"),c(e,"aria-hidden","true"),c(e,"data-testid",l=(i[0],"interactive-episode-completed-icon"))},m(a,s){C(a,e,s),p(e,t),p(e,o)},p(a,[s]){s&1&&n!==(n=a[0]?1:.24)&&c(t,"fill-opacity",n),s&1&&r!==(r=a[0]?"var(--interactive-episode-complete)":"white")&&c(o,"fill",r),s&1&&l!==(l=(a[0],"interactive-episode-completed-icon"))&&c(e,"data-testid",l)},i:pe,o:pe,d(a){a&&k(e)}}}function cb(i,e,t){let{completed:n}=e;return i.$$set=o=>{"completed"in o&&t(0,n=o.completed)},[n]}var Wa=class extends j{constructor(e){super(),W(this,e,cb,ub,U,{completed:0})}},Rr=Wa;function fb(i){Te(i,"svelte-bklhpe",".interactive-episode-icon.svelte-bklhpe{width:20px;height:20px;position:absolute;transform:translateX(-50%);cursor:default}.interactive-episode-icon.disabled.svelte-bklhpe{pointer-events:none;opacity:0.4}")}function db(i){let e,t,n,o,r;return t=new Rr({props:{completed:!!i[0].completed}}),{c(){e=P("div"),D(t.$$.fragment),c(e,"class","interactive-episode-icon svelte-bklhpe"),c(e,"style",n=`left: ${i[0].from+i[0].width/2}%`),Qn(()=>i[3].call(e)),z(e,"disabled",i[1])},m(l,a){C(l,e,a),R(t,e,null),o=Xo(e,i[3].bind(e)),r=!0},p(l,a){let s={};a&1&&(s.completed=!!l[0].completed),t.$set(s),(!r||a&1&&n!==(n=`left: ${l[0].from+l[0].width/2}%`))&&c(e,"style",n),(!r||a&2)&&z(e,"disabled",l[1])},i(l){r||(d(t.$$.fragment,l),r=!0)},o(l){_(t.$$.fragment,l),r=!1},d(l){l&&k(e),B(t),o()}}}function mb(i){let e,t;return e=new Ut({props:{tooltipContent:Q(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:[db]},$$scope:{ctx:i}}}),{c(){D(e.$$.fragment)},m(n,o){R(e,n,o),t=!0},p(n,[o]){let r={};o&1&&(r.tooltipContent=Q(n[0].completed?"tooltip_episode_finished":"tooltip_episode_unfinished")),o&2&&(r.disabled=n[1]),o&4&&(r.width=n[2]||0),o&23&&(r.$$scope={dirty:o,ctx:n}),e.$set(r)},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){_(e.$$.fragment,n),t=!1},d(n){B(e,n)}}}function pb(i,e,t){let{videoEpisode:n}=e,{disabled:o}=e,r;function l(){r=this.clientWidth,t(2,r)}return i.$$set=a=>{"videoEpisode"in a&&t(0,n=a.videoEpisode),"disabled"in a&&t(1,o=a.disabled)},[n,o,r,l]}var Ga=class extends j{constructor(e){super(),W(this,e,pb,mb,U,{videoEpisode:0,disabled:1},fb)}},Rd=Ga;function _b(i){Te(i,"svelte-1h9p3m2",".video-episodes-wrap.svelte-1h9p3m2{position:absolute;width:100%;height:100%}.video-episode.svelte-1h9p3m2{position:absolute;height:calc(3 * var(--slider-height));box-sizing:border-box;margin-top:-5px;padding:var(--slider-height) var(--slider-video-episode-gap);transition:transform 0.2s}.video-episode.svelte-1h9p3m2:where(:hover, :active){transform:scaleY(1.5)}.video-episode-inner.svelte-1h9p3m2,.video-episode-loaded.svelte-1h9p3m2,.video-episode-filled.svelte-1h9p3m2{position:absolute;height:var(--slider-height);border-radius:var(--slider-radius)}.video-episode-inner.svelte-1h9p3m2{position:absolute;overflow:hidden;width:calc(100% - 2 * var(--slider-video-episode-gap));background:var(--slider-bg)}.video-episode-loaded.svelte-1h9p3m2{position:absolute;left:-100%;width:100%;height:100%;border-radius:var(--slider-radius);background:var(--slider-loaded-bg);transition:transform 0.2s}.video-episode-filled.svelte-1h9p3m2{position:absolute;left:-100%;width:100%;height:100%;border-radius:var(--slider-radius);background-color:var(--slider-filled-bg)}")}function Bd(i,e,t){let n=i.slice();return n[2]=e[t],n}function Dd(i){let e,t,n,o,r,l,a,s,u;return{c(){e=P("div"),t=P("div"),n=P("div"),r=O(),l=P("div"),s=O(),c(n,"class","video-episode-loaded svelte-1h9p3m2"),c(n,"style",o=`transform: translateX(${i[2].loadedWidth/i[2].width*100}%)`),c(l,"class","video-episode-filled svelte-1h9p3m2"),c(l,"style",a=`transform: translateX(${i[2].filledWidth/i[2].width*100}%)`),z(l,"mobile",i[1]),c(t,"class","video-episode-inner svelte-1h9p3m2"),c(e,"class","video-episode svelte-1h9p3m2"),c(e,"style",u=`left: ${i[2].from}%; width: ${i[2].width}%`),z(e,"mobile",i[1])},m(f,m){C(f,e,m),p(e,t),p(t,n),p(t,r),p(t,l),p(e,s)},p(f,m){m&1&&o!==(o=`transform: translateX(${f[2].loadedWidth/f[2].width*100}%)`)&&c(n,"style",o),m&1&&a!==(a=`transform: translateX(${f[2].filledWidth/f[2].width*100}%)`)&&c(l,"style",a),m&2&&z(l,"mobile",f[1]),m&1&&u!==(u=`left: ${f[2].from}%; width: ${f[2].width}%`)&&c(e,"style",u),m&2&&z(e,"mobile",f[1])},d(f){f&&k(e)}}}function hb(i){let e,t=Vt(i[0]),n=[];for(let o=0;o<t.length;o+=1)n[o]=Dd(Bd(i,t,o));return{c(){e=P("div");for(let o=0;o<n.length;o+=1)n[o].c();c(e,"class","video-episodes-wrap svelte-1h9p3m2")},m(o,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=Vt(o[0]);let l;for(l=0;l<t.length;l+=1){let a=Bd(o,t,l);n[l]?n[l].p(a,r):(n[l]=Dd(a),n[l].c(),n[l].m(e,null))}for(;l<n.length;l+=1)n[l].d(1);n.length=t.length}},i:pe,o:pe,d(o){o&&k(e),Qi(n,o)}}}function gb(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]}var Qa=class extends j{constructor(e){super(),W(this,e,gb,hb,U,{videoEpisodes:0,isMobile:1},_b)}},Nd=Qa;function bb(i){Te(i,"svelte-1golz1y",".interactive-icons.svelte-1golz1y.svelte-1golz1y{position:absolute;width:calc(100% - 20px);top:-28px}.interactive-icons.mobile.svelte-1golz1y.svelte-1golz1y{top:-10px}.slider.svelte-1golz1y.svelte-1golz1y{position:relative;height:var(--slider-height);border-radius:var(--slider-radius);cursor:pointer;transition:visibility 0.2s, opacity 0.2s;will-change:opacity, transform;width:100%;touch-action:none;-webkit-tap-highlight-color:transparent}.no-handle.svelte-1golz1y.svelte-1golz1y{cursor:default}.slider.svelte-1golz1y.svelte-1golz1y:before{content:'';position:absolute;left:0;right:0;top:calc(-1 * (var(--controls-height) / 2 - var(--slider-height)) / 2);height:calc(var(--controls-height) / 2)}.bars.svelte-1golz1y.svelte-1golz1y{position:absolute;width:100%;height:100%;border-radius:var(--slider-radius);overflow:hidden;background:var(--slider-bg)}.loaded.svelte-1golz1y.svelte-1golz1y{position:absolute;left:-100%;width:100%;height:100%;border-radius:var(--slider-radius);background:var(--slider-loaded-bg);transition:transform 0.2s}.filled.svelte-1golz1y.svelte-1golz1y{position:absolute;left:-100%;width:100%;height:100%;border-radius:var(--slider-radius);background-color:var(--slider-filled-bg)}.slider.square.svelte-1golz1y.svelte-1golz1y,.slider.square.svelte-1golz1y>.bars.svelte-1golz1y,.slider.square.svelte-1golz1y .loaded.svelte-1golz1y,.slider.square.svelte-1golz1y .filled.svelte-1golz1y{border-radius:unset}.filled.active-live.svelte-1golz1y.svelte-1golz1y{background-color:var(--slider-filled-active-live-bg)}.filled.ads.svelte-1golz1y.svelte-1golz1y{background-color:var(--slider-filled-ads)}.handleWrap.svelte-1golz1y.svelte-1golz1y{position:absolute;left:-100%;width:100%}.handle.svelte-1golz1y.svelte-1golz1y{position:absolute;width:var(--slider-handle-size);height:var(--slider-handle-size);right:calc(-1 * var(--slider-handle-size) / 2);top:calc((var(--slider-height) - var(--slider-handle-size)) / 2);border-radius:50%;background-color:var(--slider-filled-bg);visibility:hidden;opacity:0;transform:scale(0);transition:opacity 0.2s, transform 0.2s, visibility 0.2s;will-change:opacity, transform}.handle.active-live.svelte-1golz1y.svelte-1golz1y{background-color:var(--slider-filled-active-live-bg)}.slider.svelte-1golz1y:hover .handle.svelte-1golz1y,.slider-dragging.svelte-1golz1y .handle.svelte-1golz1y{visibility:visible;opacity:1;transform:scale(1)}.slider-dragging.svelte-1golz1y .handle.svelte-1golz1y{transform:scale(1.3)}.slider-vertical.svelte-1golz1y.svelte-1golz1y{position:absolute;left:-8px;top:-18px;transform-origin:0 0;transform:rotate(-90deg)}.slider.disabled.svelte-1golz1y.svelte-1golz1y{cursor:default;pointer-events:none;opacity:0.4}")}function Od(i,e,t){let n=i.slice();return n[48]=e[t],n}function Fd(i){let e,t,n=Vt(i[21]),o=[];for(let l=0;l<n.length;l+=1)o[l]=zd(Od(i,n,l));let r=l=>_(o[l],1,1,()=>{o[l]=null});return{c(){e=P("div");for(let l=0;l<o.length;l+=1)o[l].c();c(e,"class","interactive-icons svelte-1golz1y"),z(e,"mobile",i[5]),z(e,"hidden",i[5]&&!i[20])},m(l,a){C(l,e,a);for(let s=0;s<o.length;s+=1)o[s]&&o[s].m(e,null);t=!0},p(l,a){if(a[0]&2097664){n=Vt(l[21]);let s;for(s=0;s<n.length;s+=1){let u=Od(l,n,s);o[s]?(o[s].p(u,a),d(o[s],1)):(o[s]=zd(u),o[s].c(),d(o[s],1),o[s].m(e,null))}for(ce(),s=n.length;s<o.length;s+=1)r(s);fe()}(!t||a[0]&32)&&z(e,"mobile",l[5]),(!t||a[0]&1048608)&&z(e,"hidden",l[5]&&!l[20])},i(l){if(!t){for(let a=0;a<n.length;a+=1)d(o[a]);t=!0}},o(l){o=o.filter(Boolean);for(let a=0;a<o.length;a+=1)_(o[a]);t=!1},d(l){l&&k(e),Qi(o,l)}}}function Hd(i){let e,t;return e=new Rd({props:{videoEpisode:i[48],disabled:i[9]}}),{c(){D(e.$$.fragment)},m(n,o){R(e,n,o),t=!0},p(n,o){let r={};o[0]&2097152&&(r.videoEpisode=n[48]),o[0]&512&&(r.disabled=n[9]),e.$set(r)},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){_(e.$$.fragment,n),t=!1},d(n){B(e,n)}}}function zd(i){let e,t,n=i[48].interactive&&Hd(i);return{c(){n&&n.c(),e=st()},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&&d(n,1)):(n=Hd(o),n.c(),d(n,1),n.m(e.parentNode,e)):n&&(ce(),_(n,1,1,()=>{n=null}),fe())},i(o){t||(d(n),t=!0)},o(o){_(n),t=!1},d(o){o&&k(e),n&&n.d(o)}}}function vb(i){let e,t,n,o,r,l;return{c(){e=P("div"),t=P("div"),o=O(),r=P("div"),c(t,"class","loaded svelte-1golz1y"),c(t,"style",n=`transform: translateX(${i[11]*100}%);`),c(r,"class","filled svelte-1golz1y"),c(r,"style",l=`transform: translateX(${i[12]*100}%);`),z(r,"active-live",i[4]),z(r,"ads",i[6]),c(e,"class","bars svelte-1golz1y")},m(a,s){C(a,e,s),p(e,t),p(e,o),p(e,r)},p(a,s){s[0]&2048&&n!==(n=`transform: translateX(${a[11]*100}%);`)&&c(t,"style",n),s[0]&4096&&l!==(l=`transform: translateX(${a[12]*100}%);`)&&c(r,"style",l),s[0]&16&&z(r,"active-live",a[4]),s[0]&64&&z(r,"ads",a[6])},i:pe,o:pe,d(a){a&&k(e)}}}function yb(i){let e,t;return e=new Nd({props:{videoEpisodes:i[21],isMobile:i[5]}}),{c(){D(e.$$.fragment)},m(n,o){R(e,n,o),t=!0},p(n,o){let r={};o[0]&2097152&&(r.videoEpisodes=n[21]),o[0]&32&&(r.isMobile=n[5]),e.$set(r)},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){_(e.$$.fragment,n),t=!1},d(n){B(e,n)}}}function wb(i){let e,t,n,o,r,l,a,s,u,f,m,h,y,b=i[8]&&Fd(i),S=[yb,vb],w=[];function T(v,g){return v[21].length?0:1}return n=T(i,[-1,-1]),o=w[n]=S[n](i),{c(){var v;b&&b.c(),e=O(),t=P("div"),o.c(),r=O(),l=P("div"),a=P("div"),c(a,"class","handle svelte-1golz1y"),z(a,"active-live",i[4]),c(l,"class","handleWrap svelte-1golz1y"),c(l,"style",s=`transform: translateX(${i[13]*100}%);`),z(l,"hidden",i[10]),c(t,"class",u="slider "+i[0]+" svelte-1golz1y"),c(t,"aria-label",i[14]),c(t,"aria-valuemin",i[15]),c(t,"aria-valuemax",i[16]),c(t,"aria-valuenow",i[17]),c(t,"aria-valuetext",i[18]),c(t,"role","slider"),c(t,"tabindex","0"),c(t,"data-testid",f=(v=i[1])!=null?v:null),z(t,"disabled",i[9]),z(t,"slider-dragging",i[20]),z(t,"hidden",i[2]),z(t,"slider-vertical",i[3]),z(t,"no-handle",i[10]),z(t,"square",i[7])},m(v,g){b&&b.m(v,g),C(v,e,g),C(v,t,g),w[n].m(t,null),p(t,r),p(t,l),p(l,a),i[42](t),m=!0,h||(y=[de(t,"pointerdown",Ot(i[22])),de(t,"pointermove",Ot(i[23])),de(t,"pointerup",Ot(i[24])),de(t,"pointerenter",Ot(i[25])),de(t,"pointerleave",Ot(i[26])),de(t,"click",ct(Hn.noop)),de(t,"wheel",i[27])],h=!0)},p(v,g){var A;v[8]?b?(b.p(v,g),g[0]&256&&d(b,1)):(b=Fd(v),b.c(),d(b,1),b.m(e.parentNode,e)):b&&(ce(),_(b,1,1,()=>{b=null}),fe());let I=n;n=T(v,g),n===I?w[n].p(v,g):(ce(),_(w[I],1,1,()=>{w[I]=null}),fe(),o=w[n],o?o.p(v,g):(o=w[n]=S[n](v),o.c()),d(o,1),o.m(t,r)),(!m||g[0]&16)&&z(a,"active-live",v[4]),(!m||g[0]&8192&&s!==(s=`transform: translateX(${v[13]*100}%);`))&&c(l,"style",s),(!m||g[0]&1024)&&z(l,"hidden",v[10]),(!m||g[0]&1&&u!==(u="slider "+v[0]+" svelte-1golz1y"))&&c(t,"class",u),(!m||g[0]&16384)&&c(t,"aria-label",v[14]),(!m||g[0]&32768)&&c(t,"aria-valuemin",v[15]),(!m||g[0]&65536)&&c(t,"aria-valuemax",v[16]),(!m||g[0]&131072)&&c(t,"aria-valuenow",v[17]),(!m||g[0]&262144)&&c(t,"aria-valuetext",v[18]),(!m||g[0]&2&&f!==(f=(A=v[1])!=null?A:null))&&c(t,"data-testid",f),(!m||g[0]&513)&&z(t,"disabled",v[9]),(!m||g[0]&1048577)&&z(t,"slider-dragging",v[20]),(!m||g[0]&5)&&z(t,"hidden",v[2]),(!m||g[0]&9)&&z(t,"slider-vertical",v[3]),(!m||g[0]&1025)&&z(t,"no-handle",v[10]),(!m||g[0]&129)&&z(t,"square",v[7])},i(v){m||(d(b),d(o),m=!0)},o(v){_(b),_(o),m=!1},d(v){v&&(k(e),k(t)),b&&b.d(v),w[n].d(),i[42](null),h=!1,lt(y)}}}function kb(i,e,t){let n,o,{className:r=""}=e,{testId:l=void 0}=e,{isHidden:a=!1}=e,{isVertical:s=!1}=e,{isActiveLive:u=!1}=e,{isMobile:f=!1}=e,{isAds:m=!1}=e,{squareBorders:h=!1}=e,{videoEpisodes:y=[]}=e,{withWheelHandler:b=!1}=e,{isInteractive:S=!1}=e,{disabled:w=!1}=e,{hideHandel:T=!1}=e,v,g,{onPointerDown:I=Hn.noop}=e,{onHandleMove:A=Hn.noop}=e,{onPointerUp:q=Hn.noop}=e,{onPointerEnter:K=Hn.noop}=e,{onPointerMove:re=Hn.noop}=e,{onPointerLeave:ae=Hn.noop}=e,{onWheelUp:H=Hn.noop}=e,{onWheelDown:L=Hn.noop}=e,{onWheelLeft:x=Hn.noop}=e,{onWheelRight:G=Hn.noop}=e,{loadedProgress:J=0}=e,{filledProgress:E=0}=e,{handleProgress:te=0}=e,{ariaLabel:M=""}=e,{ariaValueMin:ee=void 0}=e,{ariaValueMax:ke=void 0}=e,{ariaValueNow:Ge=void 0}=e,{ariaValueText:Ke=""}=e,Je=Wt(),We=!1,ve;function X(Z){if(We)return;t(20,We=!0),g=v.getBoundingClientRect();let Pe=Re(Z.clientX,Z.clientY);I(Pe),v.setPointerCapture(Z.pointerId)}function be(Z){let Pe=Re(Z.clientX,Z.clientY),ue=je(Z.clientX);re(Pe,ue,g.width),We&&A(Pe)}function Ne(Z){if(!We)return;t(20,We=!1);let Pe=Re(Z.clientX,Z.clientY);q(Pe)}function xe(Z){g=v.getBoundingClientRect();let Pe=Re(Z.clientX,Z.clientY),ue=je(Z.clientX);K(Pe,ue,g.width)}function et(){ae()}function ye(Z){b&&(Z.preventDefault(),Z.deltaY<0?H():Z.deltaY>0?L():Z.deltaX>0?G():x())}function Re(Z,Pe){return s?Math.max(0,Math.min(1,(g.height-(Pe-g.top))/g.height)):Math.min(Math.max(Z-g.x,0),g.width)/g.width}function je(Z){return Math.min(Math.max(Z-g.x,0),g.width)}function Xe(Z,Pe){let ue=Je.features.episodesClustering&&!S?Je.episodeMinWidthPc:0,Ie=[],Ye=0,ft=0,mt=0;for(let wt=1;wt<y.length;wt++)ft=y[wt].time/ve*100,ft-Ye>ue&&(Ie.push({from:Ye,width:Math.max(0,ft-Ye),loadedWidth:Math.max(0,Math.min(ft,Z)-Ye),filledWidth:Math.max(0,Math.min(ft,Pe)-Ye),interactive:y[wt-1].interactive,completed:y[wt-1].completed}),Ye=y[wt].time/ve*100,mt++);let dt={from:Ye,width:Math.max(0,100-Ye),loadedWidth:Math.max(0,Math.min(Z,100)-Ye),filledWidth:Math.max(0,Math.min(Pe,100)-Ye),interactive:y[mt].interactive,completed:y[mt].completed};100-Ye<ue?(mt-=1,Ie[mt].width+=100-Ye,Ie[mt].loadedWidth+=Math.max(0,Math.min(Z,100)-Ye),Ie[mt].filledWidth+=Math.max(0,Math.min(Pe,100)-Ye)):Ie[mt]=dt;let bt=y[0].time;if(bt!==0){let wt=bt/ve*100;Ie.unshift({from:0,width:wt,loadedWidth:Math.min(wt,Z),filledWidth:Math.min(wt,Pe)})}return Ie}function Ce(Z){_e[Z?"unshift":"push"](()=>{v=Z,t(19,v)})}return i.$$set=Z=>{"className"in Z&&t(0,r=Z.className),"testId"in Z&&t(1,l=Z.testId),"isHidden"in Z&&t(2,a=Z.isHidden),"isVertical"in Z&&t(3,s=Z.isVertical),"isActiveLive"in Z&&t(4,u=Z.isActiveLive),"isMobile"in Z&&t(5,f=Z.isMobile),"isAds"in Z&&t(6,m=Z.isAds),"squareBorders"in Z&&t(7,h=Z.squareBorders),"videoEpisodes"in Z&&t(28,y=Z.videoEpisodes),"withWheelHandler"in Z&&t(29,b=Z.withWheelHandler),"isInteractive"in Z&&t(8,S=Z.isInteractive),"disabled"in Z&&t(9,w=Z.disabled),"hideHandel"in Z&&t(10,T=Z.hideHandel),"onPointerDown"in Z&&t(30,I=Z.onPointerDown),"onHandleMove"in Z&&t(31,A=Z.onHandleMove),"onPointerUp"in Z&&t(32,q=Z.onPointerUp),"onPointerEnter"in Z&&t(33,K=Z.onPointerEnter),"onPointerMove"in Z&&t(34,re=Z.onPointerMove),"onPointerLeave"in Z&&t(35,ae=Z.onPointerLeave),"onWheelUp"in Z&&t(36,H=Z.onWheelUp),"onWheelDown"in Z&&t(37,L=Z.onWheelDown),"onWheelLeft"in Z&&t(38,x=Z.onWheelLeft),"onWheelRight"in Z&&t(39,G=Z.onWheelRight),"loadedProgress"in Z&&t(11,J=Z.loadedProgress),"filledProgress"in Z&&t(12,E=Z.filledProgress),"handleProgress"in Z&&t(13,te=Z.handleProgress),"ariaLabel"in Z&&t(14,M=Z.ariaLabel),"ariaValueMin"in Z&&t(15,ee=Z.ariaValueMin),"ariaValueMax"in Z&&t(16,ke=Z.ariaValueMax),"ariaValueNow"in Z&&t(17,Ge=Z.ariaValueNow),"ariaValueText"in Z&&t(18,Ke=Z.ariaValueText)},i.$$.update=()=>{var Z;if(i.$$.dirty[0]&65536)e:t(40,ve=ke!=null?ke:0);if(i.$$.dirty[0]&268435456|i.$$.dirty[1]&512)e:t(41,n=((Z=y[y.length-1])==null?void 0:Z.time)<ve);if(i.$$.dirty[0]&268441600|i.$$.dirty[1]&1536)e:t(21,o=y.length&&n&&ve?Xe(J*100,E*100):[])},[r,l,a,s,u,f,m,h,S,w,T,J,E,te,M,ee,ke,Ge,Ke,v,We,o,X,be,Ne,xe,et,ye,y,b,I,A,q,K,re,ae,H,L,x,G,ve,n,Ce]}var Ya=class extends j{constructor(e){super(),W(this,e,kb,wb,U,{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},bb,[-1,-1])}},dl=Ya;var Rn=(i,e)=>Ro[i]>=Ro[e],qd=(i,e)=>Ro[i]<Ro[e],Br=(i,e)=>Ro[i]<=Ro[e],Ud=i=>i>699?"xl":i>599?"l":i>509?"m":i>320?"s":"xs";function Cb(i){Te(i,"svelte-1l78lz9",".volumeBar-container.svelte-1l78lz9{display:flex;align-items:center}.volumeBar-container.vertical.svelte-1l78lz9,.vertical.svelte-1l78lz9 .tooltip-wrapper,.vertical.svelte-1l78lz9 .btn{width:40px}.volumeBar.svelte-1l78lz9{display:flex;align-items:center;margin:0 8px;position:relative;width:70px}.volumeBar-slider-vertical{width:50px !important}.volumeBar-vertical.svelte-1l78lz9{padding:0 8px 0 0;width:0}")}function Sb(i){let e,t;return e=new Uo({props:{volume:i[3],muted:i[1]}}),{c(){D(e.$$.fragment)},m(n,o){R(e,n,o),t=!0},p(n,o){let r={};o[0]&8&&(r.volume=n[3]),o[0]&2&&(r.muted=n[1]),e.$set(r)},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){_(e.$$.fragment,n),t=!1},d(n){B(e,n)}}}function Tb(i){let e,t;return e=new yt({props:{className:"btn-full-opacity",disabled:i[9],testId:i[2]?"btn-volume-vertical":"btn-volume-horizontal",ariaLabel:i[7],click:i[0],ariaKeyShortCut:xn.KeyM,$$slots:{default:[Sb]},$$scope:{ctx:i}}}),{c(){D(e.$$.fragment)},m(n,o){R(e,n,o),t=!0},p(n,o){let r={};o[0]&512&&(r.disabled=n[9]),o[0]&4&&(r.testId=n[2]?"btn-volume-vertical":"btn-volume-horizontal"),o[0]&128&&(r.ariaLabel=n[7]),o[0]&1&&(r.click=n[0]),o[0]&10|o[1]&32&&(r.$$scope={dirty:o,ctx:n}),e.$set(r)},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){_(e.$$.fragment,n),t=!1},d(n){B(e,n)}}}function Kd(i){let e,t,n;return t=new dl({props:{className:i[2]?"volumeBar-slider-vertical":"",isHidden:i[2]&&!i[5],isVertical:i[2],withWheelHandler:!0,onWheelUp:i[15],onWheelDown:i[16],onPointerDown:i[14],onHandleMove:i[17],onPointerUp:i[18],onPointerEnter:i[2]?i[19]:ro.noop,onPointerLeave:i[2]?i[20]:ro.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[2]?"volume-slider-vertical":"volume-slider"}}),{c(){e=P("div"),D(t.$$.fragment),c(e,"class","volumeBar svelte-1l78lz9"),z(e,"volumeBar-vertical",i[2])},m(o,r){C(o,e,r),R(t,e,null),n=!0},p(o,r){let l={};r[0]&4&&(l.className=o[2]?"volumeBar-slider-vertical":""),r[0]&36&&(l.isHidden=o[2]&&!o[5]),r[0]&4&&(l.isVertical=o[2]),r[0]&4&&(l.onPointerEnter=o[2]?o[19]:ro.noop),r[0]&4&&(l.onPointerLeave=o[2]?o[20]:ro.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]&4&&(l.testId=o[2]?"volume-slider-vertical":"volume-slider"),t.$set(l),(!n||r[0]&4)&&z(e,"volumeBar-vertical",o[2])},i(o){n||(d(t.$$.fragment,o),n=!0)},o(o){_(t.$$.fragment,o),n=!1},d(o){o&&k(e),B(t)}}}function Pb(i){let e,t,n,o,r,l;t=new Lr({props:{content:i[6],translateY:-18,$$slots:{default:[Tb]},$$scope:{ctx:i}}});let a=i[4]&&Kd(i);return{c(){e=P("div"),D(t.$$.fragment),n=O(),a&&a.c(),c(e,"class","volumeBar-container svelte-1l78lz9"),z(e,"vertical",i[2])},m(s,u){C(s,e,u),R(t,e,null),p(e,n),a&&a.m(e,null),o=!0,r||(l=[de(e,"mouseenter",function(){Vi(i[2]?i[21]:ro.noop)&&(i[2]?i[21]:ro.noop).apply(this,arguments)}),de(e,"mouseleave",function(){Vi(i[2]?i[22]:ro.noop)&&(i[2]?i[22]:ro.noop).apply(this,arguments)}),de(e,"wheel",Ot(i[23]))],r=!0)},p(s,u){i=s;let f={};u[0]&64&&(f.content=i[6]),u[0]&655|u[1]&32&&(f.$$scope={dirty:u,ctx:i}),t.$set(f),i[4]?a?(a.p(i,u),u[0]&16&&d(a,1)):(a=Kd(i),a.c(),d(a,1),a.m(e,null)):a&&(ce(),_(a,1,1,()=>{a=null}),fe()),(!o||u[0]&4)&&z(e,"vertical",i[2])},i(s){o||(d(t.$$.fragment,s),d(a),o=!0)},o(s){_(t.$$.fragment,s),_(a),o=!1},d(s){s&&k(e),B(t),a&&a.d(),r=!1,lt(l)}}}function Ib(i,e,t){var We,ve;let n,o,r,l,{click:a}=e,s=nt(),u=Wt(),f=s.state.volume$;F(i,f,X=>t(3,n=X));let m=s.state.muted$;F(i,m,X=>t(25,l=X));let h=s.actions.internal.setVolume,y=s.ui.currentGridType$;F(i,y,X=>t(24,r=X));let b=(We=s.callbacks)==null?void 0:We.onAudioDoesNotExistHint,S=(ve=s.callbacks)==null?void 0:ve.onAudioDisabledHint,w=s.state.isAudioAvailable$;F(i,w,X=>t(4,o=X));let T=s.state.isAudioDisabled,v=!1,g,I,A,q,K,re,ae=1,H=!1,L=!1;function x(X){ae=n,h(X)}function G(){Cr(s,n,u.controls.volumeStepWheel)}function J(){Sr(s,n,u.controls.volumeStepWheel)}function E(X){h(X)}function te(X){let be=X;h(be,be===0?ae:be)}function M(){H=!0}function ee(){H=!1,Ke()}function ke(){clearTimeout(g),t(5,v=!0)}function Ge(){Ke()}function Ke(){g=window.setTimeout(()=>{H||t(5,v=!1)},u.controls.volumeBarTimeout)}function Je(X){X.deltaY<0?G():X.deltaY>0&&J()}return i.$$set=X=>{"click"in X&&t(0,a=X.click)},i.$$.update=()=>{if(i.$$.dirty[0]&33554448)e:t(1,q=!o||l);if(i.$$.dirty[0]&16777216)e:t(2,K=Br(r,"s"));if(i.$$.dirty[0]&6)e:K?t(6,I=""):t(6,I=q?Q("tooltip_volume"):Q("tooltip_volume_muted")),t(7,A=q?Q("tooltip_volume"):Q("tooltip_volume_muted"));if(i.$$.dirty[0]&10)e:t(8,re=q?0:n);if(i.$$.dirty[0]&16)e:t(9,L=T&&!S||!o&&!b)},[a,q,K,n,o,v,I,A,re,L,f,m,y,w,x,G,J,E,te,M,ee,ke,Ge,Je,r,l]}var Za=class extends j{constructor(e){super(),W(this,e,Ib,Pb,U,{click:0},Cb,[-1,-1])}},jd=Za;var Qd=require("@vkontakte/videoplayer-shared");function Eb(i){let e,t,n,o,r,l=i[2].default,a=Ee(l,i,i[1],null),s=[{xmlns:"http://www.w3.org/2000/svg"},{width:"24"},{height:"24"},{"aria-hidden":"true"},{role:"img"},i[0]],u={};for(let f=0;f<s.length;f+=1)u=oe(u,s[f]);return{c(){e=N("svg"),a&&a.c(),t=N("g"),n=N("path"),o=N("path"),c(n,"d","M4.58 13.979a.99.99 0 0 1 .99-.99h4.451a.99.99 0 0 1 .99.99v4.452a.99.99 0 0 1-1.98 0v-2.05l-3.319 3.322a1 1 0 0 1-1.414 0v-.001a1 1 0 0 1 0-1.414l3.32-3.32H5.57a.99.99 0 0 1-.99-.99m10.388-6.36 3.32-3.322a1 1 0 0 1 1.414 0v.001a1 1 0 0 1 0 1.414l-3.32 3.32h2.049a.99.99 0 0 1 0 1.979h-4.442a1 1 0 0 1-1-1V5.569a.99.99 0 1 1 1.98 0z"),c(n,"class","_exit"),c(o,"d","M10.5 19a1 1 0 0 1-1 1H5a1 1 0 0 1-1-1v-4.5a1 1 0 0 1 2 0v2.072l3.363-3.365a1 1 0 0 1 1.414 0l.016.016a1 1 0 0 1 0 1.414L7.429 18H9.5a1 1 0 0 1 1 1M18 7.429l-3.363 3.364a1 1 0 0 1-1.414 0l-.016-.016a1 1 0 0 1 0-1.414L16.571 6H14.5a1 1 0 0 1 0-2H19a1 1 0 0 1 1 1v4.5a1 1 0 0 1-2 0z"),c(o,"class","_enter"),c(t,"fill","#fff"),c(t,"fill-rule","evenodd"),ge(e,u)},m(f,m){C(f,e,m),a&&a.m(e,null),p(e,t),p(t,n),p(t,o),r=!0},p(f,[m]){a&&a.p&&(!r||m&2)&&Ve(a,l,f,f[1],r?Me(l,f[1],m,null):Ae(f[1]),null),ge(e,u=Le(s,[{xmlns:"http://www.w3.org/2000/svg"},{width:"24"},{height:"24"},{"aria-hidden":"true"},{role:"img"},m&1&&f[0]]))},i(f){r||(d(a,f),r=!0)},o(f){_(a,f),r=!1},d(f){f&&k(e),a&&a.d(f)}}}function Mb(i,e,t){let{$$slots:n={},$$scope:o}=e;return i.$$set=r=>{t(0,e=oe(oe({},e),he(r))),"$$scope"in r&&t(1,o=r.$$scope)},e=he(e),[e,o,n]}var Xa=class extends j{constructor(e){super(),W(this,e,Mb,Eb,U,{})}},Wd=Xa;function Vb(i){Te(i,"svelte-17t966y",'svg[data-testid="close-fullscreen-icon"] ._enter,svg[data-testid="open-fullscreen-icon"] ._exit{visibility:hidden;opacity:0}')}function Ab(i){let e,t;return e=new Wd({props:{"data-testid":i[0]?"close-fullscreen-icon":"open-fullscreen-icon"}}),{c(){D(e.$$.fragment)},m(n,o){R(e,n,o),t=!0},p(n,[o]){let r={};o&1&&(r["data-testid"]=n[0]?"close-fullscreen-icon":"open-fullscreen-icon"),e.$set(r)},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){_(e.$$.fragment,n),t=!1},d(n){B(e,n)}}}function Lb(i,e,t){let{isFullscreen:n=!1}=e;return i.$$set=o=>{"isFullscreen"in o&&t(0,n=o.isFullscreen)},[n]}var Ja=class extends j{constructor(e){super(),W(this,e,Lb,Ab,U,{isFullscreen:0},Vb)}},Gd=Ja;function Rb(i){let e,t;return e=new Gd({props:{isFullscreen:i[0]}}),{c(){D(e.$$.fragment)},m(n,o){R(e,n,o),t=!0},p(n,o){let r={};o&1&&(r.isFullscreen=n[0]),e.$set(r)},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){_(e.$$.fragment,n),t=!1},d(n){B(e,n)}}}function Bb(i){let e,t;return e=new yt({props:{testId:"btn-fullscreen",ariaLabel:i[2],click:i[1],ariaKeyShortCut:xn.KeyF,$$slots:{default:[Rb]},$$scope:{ctx:i}}}),{c(){D(e.$$.fragment)},m(n,o){R(e,n,o),t=!0},p(n,[o]){let r={};o&4&&(r.ariaLabel=n[2]),o&2&&(r.click=n[1]),o&9&&(r.$$scope={dirty:o,ctx:n}),e.$set(r)},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){_(e.$$.fragment,n),t=!1},d(n){B(e,n)}}}function Db(i,e,t){let{isFullscreen:n=!1}=e,{click:o=Qd.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=()=>{if(i.$$.dirty&1)e:t(2,r=n?Q("tooltip_fullscreen_on"):Q("tooltip_fullscreen_off"))},[n,o,r]}var xa=class extends j{constructor(e){super(),W(this,e,Db,Bb,U,{isFullscreen:0,click:1})}},Dr=xa;function Nb(i){let e,t,n,o=i[2].default,r=Ee(o,i,i[1],null),l=[{xmlns:"http://www.w3.org/2000/svg"},{width:"24"},{height:"24"},{fill:"none"},{"aria-hidden":"true"},{"data-testid":"play-icon"},{role:"img"},i[0]],a={};for(let s=0;s<l.length;s+=1)a=oe(a,l[s]);return{c(){e=N("svg"),r&&r.c(),t=N("path"),c(t,"fill","#fff"),c(t,"d","M17.671 10.923c.82.483.82 1.67 0 2.154l-8.787 5.175A1.25 1.25 0 0 1 7 17.174V6.826a1.25 1.25 0 0 1 1.884-1.078z"),ge(e,a)},m(s,u){C(s,e,u),r&&r.m(e,null),p(e,t),n=!0},p(s,[u]){r&&r.p&&(!n||u&2)&&Ve(r,o,s,s[1],n?Me(o,s[1],u,null):Ae(s[1]),null),ge(e,a=Le(l,[{xmlns:"http://www.w3.org/2000/svg"},{width:"24"},{height:"24"},{fill:"none"},{"aria-hidden":"true"},{"data-testid":"play-icon"},{role:"img"},u&1&&s[0]]))},i(s){n||(d(r,s),n=!0)},o(s){_(r,s),n=!1},d(s){s&&k(e),r&&r.d(s)}}}function Ob(i,e,t){let{$$slots:n={},$$scope:o}=e;return i.$$set=r=>{t(0,e=oe(oe({},e),he(r))),"$$scope"in r&&t(1,o=r.$$scope)},e=he(e),[e,o,n]}var $a=class extends j{constructor(e){super(),W(this,e,Ob,Nb,U,{})}},ml=$a;function Fb(i){let e,t,n,o=i[2].default,r=Ee(o,i,i[1],null),l=[{xmlns:"http://www.w3.org/2000/svg"},{width:"24"},{height:"24"},{fill:"none"},{"aria-hidden":"true"},{"data-testid":"pause-icon"},{role:"img"},i[0]],a={};for(let s=0;s<l.length;s+=1)a=oe(a,l[s]);return{c(){e=N("svg"),r&&r.c(),t=N("path"),c(t,"fill","#fff"),c(t,"d","M8.712 5c.448 0 .61.047.774.134a.9.9 0 0 1 .38.38c.087.164.134.326.134.774v11.424c0 .448-.047.61-.134.774a.9.9 0 0 1-.38.38c-.164.087-.326.134-.774.134H6.788c-.448 0-.61-.047-.774-.134a.9.9 0 0 1-.38-.38c-.087-.164-.134-.326-.134-.774V6.288c0-.448.047-.61.134-.774a.9.9 0 0 1 .38-.38C6.178 5.047 6.34 5 6.788 5zm8 0c.448 0 .61.047.774.134a.9.9 0 0 1 .38.38c.087.164.134.326.134.774v11.424c0 .448-.047.61-.134.774a.9.9 0 0 1-.38.38c-.164.087-.326.134-.774.134h-1.924c-.448 0-.61-.047-.774-.134a.9.9 0 0 1-.38-.38c-.087-.164-.134-.326-.134-.774V6.288c0-.448.047-.61.134-.774a.9.9 0 0 1 .38-.38c.164-.087.326-.134.774-.134z"),ge(e,a)},m(s,u){C(s,e,u),r&&r.m(e,null),p(e,t),n=!0},p(s,[u]){r&&r.p&&(!n||u&2)&&Ve(r,o,s,s[1],n?Me(o,s[1],u,null):Ae(s[1]),null),ge(e,a=Le(l,[{xmlns:"http://www.w3.org/2000/svg"},{width:"24"},{height:"24"},{fill:"none"},{"aria-hidden":"true"},{"data-testid":"pause-icon"},{role:"img"},u&1&&s[0]]))},i(s){n||(d(r,s),n=!0)},o(s){_(r,s),n=!1},d(s){s&&k(e),r&&r.d(s)}}}function Hb(i,e,t){let{$$slots:n={},$$scope:o}=e;return i.$$set=r=>{t(0,e=oe(oe({},e),he(r))),"$$scope"in r&&t(1,o=r.$$scope)},e=he(e),[e,o,n]}var eu=class extends j{constructor(e){super(),W(this,e,Hb,Fb,U,{})}},Nr=eu;var Zd=require("@vkontakte/videoplayer-shared");function zb(i){Te(i,"svelte-1ot3duq",".mobile.svelte-1ot3duq{position:relative;display:flex;align-items:center;justify-content:center}.mobile.svelte-1ot3duq svg{transform:scale(2)}.icon-background-mobile.svelte-1ot3duq{position:absolute;top:16px;left:16px;border-radius:var(--big-play-radius);background-color:var(--big-play-bg-color);width:calc(100% - 32px);height:calc(100% - 32px)}")}function Yd(i){let e;return{c(){e=P("div"),c(e,"class","icon-background-mobile svelte-1ot3duq")},m(t,n){C(t,e,n)},d(t){t&&k(e)}}}function qb(i){let e,t,n,o,r=i[1]&&Yd(i);var l=i[8];function a(s){return{}}return l&&(n=Pn(l,a(i))),{c(){r&&r.c(),e=O(),t=P("div"),n&&D(n.$$.fragment),c(t,"class","svelte-1ot3duq"),z(t,"mobile",i[1])},m(s,u){r&&r.m(s,u),C(s,e,u),C(s,t,u),n&&R(n,t,null),o=!0},p(s,u){if(s[1]?r||(r=Yd(s),r.c(),r.m(e.parentNode,e)):r&&(r.d(1),r=null),u&256&&l!==(l=s[8])){if(n){ce();let f=n;_(f.$$.fragment,1,0,()=>{B(f,1)}),fe()}l?(n=Pn(l,a(s)),D(n.$$.fragment),d(n.$$.fragment,1),R(n,t,null)):n=null}(!o||u&2)&&z(t,"mobile",s[1])},i(s){o||(n&&d(n.$$.fragment,s),o=!0)},o(s){n&&_(n.$$.fragment,s),o=!1},d(s){s&&(k(e),k(t)),r&&r.d(s),n&&B(n)}}}function Ub(i){let e,t,n;function o(l){i[13](l)}let r={className:(i[1]?"btn-m--play":"")+" "+i[3],testId:"btn-play",click:i[5]?i[6]:i[4],disabled:i[2],ariaLabel:i[7],ariaKeyShortCut:xn.KeyK,$$slots:{default:[qb]},$$scope:{ctx:i}};return i[0]!==void 0&&(r.ref=i[0]),e=new yt({props:r}),_e.push(()=>Fe(e,"ref",o)),{c(){D(e.$$.fragment)},m(l,a){R(e,l,a),n=!0},p(l,[a]){let s={};a&10&&(s.className=(l[1]?"btn-m--play":"")+" "+l[3]),a&112&&(s.click=l[5]?l[6]:l[4]),a&4&&(s.disabled=l[2]),a&128&&(s.ariaLabel=l[7]),a&33026&&(s.$$scope={dirty:a,ctx:l}),!t&&a&1&&(t=!0,s.ref=l[0],Oe(()=>t=!1)),e.$set(s)},i(l){n||(d(e.$$.fragment,l),n=!0)},o(l){_(e.$$.fragment,l),n=!1},d(l){B(e,l)}}}function Kb(i,e,t){let n,o,{fakeIsPlaying$:r}=Fn();F(i,r,v=>t(12,o=v));let{ref:l=void 0}=e,{isMobile:a=!1}=e,{isPlaying:s=!1}=e,{disabled:u=!1}=e,{className:f=""}=e,{click:m=Zd.noop}=e,{toggle:h}=r,y,b,S,w;function T(v){l=v,t(0,l)}i.$$set=v=>{"ref"in v&&t(0,l=v.ref),"isMobile"in v&&t(1,a=v.isMobile),"isPlaying"in v&&t(10,s=v.isPlaying),"disabled"in v&&t(2,u=v.disabled),"className"in v&&t(3,f=v.className),"click"in v&&t(4,m=v.click)},i.$$.update=()=>{if(i.$$.dirty&4096)e:t(5,b=o!==null);if(i.$$.dirty&5152)e:t(11,S=b?o:s);if(i.$$.dirty&2048)e:t(7,w=S?Q("tooltip_pause"):Q("tooltip_play"));if(i.$$.dirty&2048)e:t(8,n=S?Nr:ml)};e:t(6,y=h);return[l,a,u,f,m,b,y,w,n,r,s,S,o,T]}var tu=class extends j{constructor(e){super(),W(this,e,Kb,Ub,U,{ref:0,isMobile:1,isPlaying:10,disabled:2,className:3,click:4},zb)}},Fl=tu;function jb(i){let e,t,n,o=i[2].default,r=Ee(o,i,i[1],null),l=[{xmlns:"http://www.w3.org/2000/svg"},{width:"26"},{height:"24"},{fill:"none"},{"aria-hidden":"true"},{role:"img"},i[0]],a={};for(let s=0;s<l.length;s+=1)a=oe(a,l[s]);return{c(){e=N("svg"),r&&r.c(),t=N("path"),c(t,"fill","#fff"),c(t,"d","M16 10.835V7.5a1 1 0 1 1 2 0v9a1 1 0 0 1-2 0v-3.335l-8.149 4.67C7.03 18.304 6 17.715 6 16.772V7.227c0-.943 1.029-1.533 1.851-1.061L16 10.834z"),ge(e,a)},m(s,u){C(s,e,u),r&&r.m(e,null),p(e,t),n=!0},p(s,[u]){r&&r.p&&(!n||u&2)&&Ve(r,o,s,s[1],n?Me(o,s[1],u,null):Ae(s[1]),null),ge(e,a=Le(l,[{xmlns:"http://www.w3.org/2000/svg"},{width:"26"},{height:"24"},{fill:"none"},{"aria-hidden":"true"},{role:"img"},u&1&&s[0]]))},i(s){n||(d(r,s),n=!0)},o(s){_(r,s),n=!1},d(s){s&&k(e),r&&r.d(s)}}}function Wb(i,e,t){let{$$slots:n={},$$scope:o}=e;return i.$$set=r=>{t(0,e=oe(oe({},e),he(r))),"$$scope"in r&&t(1,o=r.$$scope)},e=he(e),[e,o,n]}var iu=class extends j{constructor(e){super(),W(this,e,Wb,jb,U,{})}},Xd=iu;function Gb(i){let e,t;return e=new Xd({props:{style:i[1],"data-testid":i[0]?"prev-icon":"next-icon"}}),{c(){D(e.$$.fragment)},m(n,o){R(e,n,o),t=!0},p(n,[o]){let r={};o&2&&(r.style=n[1]),o&1&&(r["data-testid"]=n[0]?"prev-icon":"next-icon"),e.$set(r)},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){_(e.$$.fragment,n),t=!1},d(n){B(e,n)}}}function Qb(i,e,t){let{isPrev:n=!1}=e,{isMobile:o=!1}=e,r;return i.$$set=l=>{"isPrev"in l&&t(0,n=l.isPrev),"isMobile"in l&&t(2,o=l.isMobile)},i.$$.update=()=>{if(i.$$.dirty&5)e:n&&o?t(1,r="transform: scaleX(-1) scale(1.3333);"):n?t(1,r="transform: scaleX(-1);"):o?t(1,r="transform: scale(1.3333);"):t(1,r=void 0)},[n,r,o]}var nu=class extends j{constructor(e){super(),W(this,e,Qb,Gb,U,{isPrev:0,isMobile:2})}},Jd=nu;function Yb(i){let e,t;return e=new Jd({props:{isMobile:i[1],isPrev:i[3]==="prev"}}),{c(){D(e.$$.fragment)},m(n,o){R(e,n,o),t=!0},p(n,o){let r={};o&2&&(r.isMobile=n[1]),o&8&&(r.isPrev=n[3]==="prev"),e.$set(r)},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){_(e.$$.fragment,n),t=!1},d(n){B(e,n)}}}function Zb(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:[Yb]},$$scope:{ctx:i}};return i[0]!==void 0&&(r.ref=i[0]),e=new yt({props:r}),_e.push(()=>Fe(e,"ref",o)),{c(){D(e.$$.fragment)},m(l,a){R(e,l,a),n=!0},p(l,[a]){let s={};a&8&&(s.testId="btn-"+l[3]),a&4&&(s.disabled=l[2]),a&32&&(s.ariaLabel=l[5]),a&16&&(s.click=l[4]),a&138&&(s.$$scope={dirty:a,ctx:l}),!t&&a&1&&(t=!0,s.ref=l[0],Oe(()=>t=!1)),e.$set(s)},i(l){n||(d(e.$$.fragment,l),n=!0)},o(l){_(e.$$.fragment,l),n=!1},d(l){B(e,l)}}}function Xb(i,e,t){let{ref:n=void 0}=e,{isMobile:o=!1}=e,{disabled:r=!1}=e,{type:l}=e,{click:a}=e,s;function u(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,a=f.click)},i.$$.update=()=>{if(i.$$.dirty&8)e:t(5,s=l==="prev"?Q("tooltip_previous"):Q("tooltip_next"))},[n,o,r,l,a,s,u]}var ou=class extends j{constructor(e){super(),W(this,e,Xb,Zb,U,{ref:0,isMobile:1,disabled:2,type:3,click:4})}},pl=ou;function Jb(i){let e,t,n,o=i[2].default,r=Ee(o,i,i[1],null),l=[{xmlns:"http://www.w3.org/2000/svg"},{width:"24"},{height:"24"},{fill:"none"},{"aria-hidden":"true"},{"data-testid":"vk-logo-icon"},{role:"img"},i[0]],a={};for(let s=0;s<l.length;s+=1)a=oe(a,l[s]);return{c(){e=N("svg"),r&&r.c(),t=N("path"),c(t,"fill","#fff"),c(t,"fill-rule","evenodd"),c(t,"d","M4.265 4.265C3 5.531 3 7.567 3 11.64v.72c0 4.073 0 6.11 1.265 7.375C5.531 21 7.567 21 11.64 21h.72c4.073 0 6.11 0 7.375-1.265C21 18.469 21 16.433 21 12.36v-.72c0-4.073 0-6.11-1.265-7.375C18.469 3 16.433 3 12.36 3h-.72C7.567 3 5.53 3 4.265 4.265M6 8.5c.096 4.682 2.556 7.5 6.61 7.5h.235v-2.679c1.476.15 2.577 1.254 3.026 2.679H18c-.578-2.132-2.075-3.31-3.005-3.76.93-.558 2.246-1.908 2.556-3.74h-1.937c-.406 1.49-1.615 2.84-2.77 2.968V8.5h-1.968v5.197c-1.197-.3-2.759-1.757-2.823-5.197z"),c(t,"clip-rule","evenodd"),ge(e,a)},m(s,u){C(s,e,u),r&&r.m(e,null),p(e,t),n=!0},p(s,[u]){r&&r.p&&(!n||u&2)&&Ve(r,o,s,s[1],n?Me(o,s[1],u,null):Ae(s[1]),null),ge(e,a=Le(l,[{xmlns:"http://www.w3.org/2000/svg"},{width:"24"},{height:"24"},{fill:"none"},{"aria-hidden":"true"},{"data-testid":"vk-logo-icon"},{role:"img"},u&1&&s[0]]))},i(s){n||(d(r,s),n=!0)},o(s){_(r,s),n=!1},d(s){s&&k(e),r&&r.d(s)}}}function xb(i,e,t){let{$$slots:n={},$$scope:o}=e;return i.$$set=r=>{t(0,e=oe(oe({},e),he(r))),"$$scope"in r&&t(1,o=r.$$scope)},e=he(e),[e,o,n]}var lu=class extends j{constructor(e){super(),W(this,e,xb,Jb,U,{})}},xd=lu;function $b(i){let e,t,n,o,r,l,a=i[2].default,s=Ee(a,i,i[1],null),u=[{xmlns:"http://www.w3.org/2000/svg"},{width:"95"},{height:"24"},{fill:"none"},{"aria-hidden":"true"},{role:"img"},i[0]],f={};for(let m=0;m<u.length;m+=1)f=oe(f,u[m]);return{c(){e=N("svg"),s&&s.c(),t=N("path"),n=N("path"),o=N("path"),r=N("path"),c(t,"fill","#fff"),c(t,"d","M32.55 17.042h2.494L38.707 7h-1.81l-2.936 8.276h-.286L30.84 7H29zM48.075 17.042l-4.619-5.199L47.718 7h-2.11l-3.563 4.088h-.413V7h-1.71v10.042h1.71V12.74h.427l3.764 4.302z"),c(n,"fill","#fff"),c(n,"d","M57.888 11.886c.883-.342 1.44-1.125 1.44-2.151C59.327 8.14 58.001 7 56.062 7h-3.92v10.042h4.205c1.953 0 3.279-1.14 3.279-2.806 0-1.168-.656-2.037-1.74-2.35m-4.034-3.39h2.21c.911 0 1.539.555 1.539 1.381 0 .812-.628 1.368-1.54 1.368h-2.21zm2.494 7.05h-2.494V12.74h2.494c.898 0 1.525.57 1.525 1.396 0 .84-.627 1.41-1.525 1.41M61.188 17.042h2.323l2.766-5.498h.228v5.498h1.568V9.635h-2.324l-2.765 5.498h-.228V9.635h-1.568zM69.146 19.25h1.64v-2.208h5.33v2.208h1.64v-3.703h-1.283V9.635h-5.431l-.37 3.79c-.13 1.338-.528 2.121-1.34 2.121h-.186zm2.494-3.703c.4-.385.57-1.04.685-2.151l.228-2.265h2.28v4.416zM86.025 13.253c0-2.136-1.597-3.76-3.849-3.76s-3.848 1.61-3.848 3.846 1.596 3.846 3.848 3.846c1.54 0 2.994-.727 3.55-2.137l-1.54-.256c-.356.527-1.04.897-1.91.897-1.254 0-2.081-.77-2.238-1.909h5.958c.015-.156.029-.327.029-.527m-3.849-2.336c1.027 0 1.796.655 2.067 1.581h-4.105c.27-.954 1.04-1.58 2.038-1.58M90.837 17.185c2.324 0 3.963-1.596 3.963-3.846s-1.64-3.846-3.963-3.846-3.962 1.595-3.962 3.846c0 2.25 1.639 3.846 3.962 3.846m0-1.496c-1.34 0-2.252-.954-2.252-2.35s.912-2.35 2.252-2.35 2.252.954 2.252 2.35-.912 2.35-2.252 2.35"),c(n,"class","_ru"),c(o,"fill","#fff"),c(o,"d","M35.02 17.36h-2.484L29 7.422h1.832l2.826 8.188h.284l2.925-8.188h1.803zM43.43 12.215l4.6 5.144h-2.243l-3.749-4.256h-.426v4.256h-1.704V7.423h1.704v4.045h.412l3.55-4.045h2.101zM56.808 17.36h-2.485l-3.536-9.937h1.832l2.826 8.188h.284l2.925-8.188h1.803zM63.257 17.36h-1.633v-7.33h1.633zm-.809-8.373q-.455 0-.738-.268a.97.97 0 0 1-.284-.718.97.97 0 0 1 .284-.72q.297-.28.738-.281.44 0 .724.282a.97.97 0 0 1 .284.719.97.97 0 0 1-.284.718q-.284.268-.724.268M68.382 17.5q-1.037 0-1.86-.48a3.5 3.5 0 0 1-1.293-1.352q-.454-.874-.454-1.973t.454-1.96a3.37 3.37 0 0 1 1.293-1.352 3.55 3.55 0 0 1 1.86-.494q.894 0 1.59.367.696.352 1.136.888V7.423h1.633v9.936h-1.22l-.342-1.184a4 4 0 0 1-1.164.944q-.71.381-1.633.381m.397-1.452q1.038 0 1.676-.648.654-.663.653-1.705 0-1.044-.653-1.692-.639-.662-1.675-.662-1.023 0-1.662.662-.639.649-.639 1.692t.64 1.705q.638.648 1.66.648M81.929 13.61q0 .211-.029.522h-5.935q.113.86.71 1.38.597.508 1.52.508.624 0 1.121-.24.51-.24.781-.648l1.534.254a3 3 0 0 1-1.378 1.564q-.965.55-2.158.55-1.108 0-1.988-.48a3.6 3.6 0 0 1-1.363-1.352q-.483-.874-.483-1.973t.483-1.96a3.5 3.5 0 0 1 1.363-1.352q.88-.495 1.988-.494 1.107 0 1.974.494.88.478 1.363 1.339.497.845.497 1.888M78.095 11.3q-.738 0-1.292.423-.54.422-.739 1.141h4.09a2.17 2.17 0 0 0-.767-1.127q-.54-.437-1.292-.437M86.751 17.5q-1.136 0-2.044-.48a3.66 3.66 0 0 1-1.406-1.352q-.497-.874-.497-1.973t.497-1.96q.511-.873 1.406-1.352.909-.495 2.044-.494 1.137 0 2.031.494a3.4 3.4 0 0 1 1.406 1.353q.51.86.511 1.959 0 1.098-.511 1.973a3.53 3.53 0 0 1-1.406 1.353q-.894.48-2.03.479m0-1.48q.995 0 1.62-.634.624-.648.624-1.691t-.625-1.678q-.624-.648-1.619-.648-.993 0-1.618.648-.625.634-.625 1.678 0 1.043.625 1.69.625.636 1.618.635"),c(o,"class","_en"),c(r,"fill","#fff"),c(r,"fill-rule","evenodd"),c(r,"d","M7 8.6c0-1.96 0-2.94.381-3.689a3.5 3.5 0 0 1 1.53-1.53C9.66 3 10.64 3 12.6 3h1.36c2.464 0 3.696 0 4.638.48a4.4 4.4 0 0 1 1.922 1.922c.48.942.48 2.174.48 4.638v3.92c0 2.464 0 3.696-.48 4.638a4.4 4.4 0 0 1-1.922 1.922c-.942.48-2.174.48-4.638.48H12.6c-1.96 0-2.94 0-3.689-.381a3.5 3.5 0 0 1-1.53-1.53C7 18.34 7 17.36 7 15.4zm9.265 1.744c.901.539 1.352.808 1.505 1.157.133.304.133.65 0 .954-.153.349-.604.618-1.505 1.157l-2.386 1.425c-.943.563-1.414.844-1.802.807a1.2 1.2 0 0 1-.847-.48C11 15.05 11 14.5 11 13.403v-2.85c0-1.098 0-1.647.23-1.96.201-.274.51-.45.847-.481.388-.037.86.244 1.802.807zM5 9.04c0-2.464 0-3.696.48-4.638a4.4 4.4 0 0 1 .955-1.253 3.7 3.7 0 0 0-1.033.33A4.4 4.4 0 0 0 3.48 5.403C3 6.344 3 7.576 3 10.04v3.92c0 2.464 0 3.696.48 4.638a4.4 4.4 0 0 0 1.922 1.922c.304.155.637.26 1.033.33a4.4 4.4 0 0 1-.955-1.252C5 18.656 5 17.424 5 14.96z"),c(r,"clip-rule","evenodd"),ge(e,f)},m(m,h){C(m,e,h),s&&s.m(e,null),p(e,t),p(e,n),p(e,o),p(e,r),l=!0},p(m,[h]){s&&s.p&&(!l||h&2)&&Ve(s,a,m,m[1],l?Me(a,m[1],h,null):Ae(m[1]),null),ge(e,f=Le(u,[{xmlns:"http://www.w3.org/2000/svg"},{width:"95"},{height:"24"},{fill:"none"},{"aria-hidden":"true"},{role:"img"},h&1&&m[0]]))},i(m){l||(d(s,m),l=!0)},o(m){_(s,m),l=!1},d(m){m&&k(e),s&&s.d(m)}}}function e4(i,e,t){let{$$slots:n={},$$scope:o}=e;return i.$$set=r=>{t(0,e=oe(oe({},e),he(r))),"$$scope"in r&&t(1,o=r.$$scope)},e=he(e),[e,o,n]}var ru=class extends j{constructor(e){super(),W(this,e,e4,$b,U,{})}},$d=ru;function t4(i){Te(i,"svelte-1nhjml",'svg[data-testid="vk-video-logo-icon--short"] ._ru,svg[data-testid="vk-video-logo-icon--short"] ._en,svg[data-testid="vk-video-logo-icon"] ._en,svg[data-testid="vk-video-logo-icon--en"] ._ru{visibility:hidden;opacity:0}')}function i4(i){let e,t;return e=new $d({props:{width:i[0],height:"24",viewBox:"0 0 "+(i[0]+1)+" 24","data-testid":i[1]}}),{c(){D(e.$$.fragment)},m(n,o){R(e,n,o),t=!0},p(n,[o]){let r={};o&1&&(r.width=n[0]),o&1&&(r.viewBox="0 0 "+(n[0]+1)+" 24"),o&2&&(r["data-testid"]=n[1]),e.$set(r)},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){_(e.$$.fragment,n),t=!1},d(n){B(e,n)}}}var n4="vk-video-logo-icon--short";function o4(i,e,t){let{short:n=!1}=e,{isCyrillic:o=!0}=e,r,l;return i.$$set=a=>{"short"in a&&t(2,n=a.short),"isCyrillic"in a&&t(3,o=a.isCyrillic)},i.$$.update=()=>{if(i.$$.dirty&12)e:t(0,r=n?21:95),t(1,l=n?n4:"vk-video-logo-icon"),!o&&!n&&(t(0,r=91),t(1,l="vk-video-logo-icon--en"))},[r,l,n,o]}var su=class extends j{constructor(e){super(),W(this,e,o4,i4,U,{short:2,isCyrillic:3},t4)}},em=su;var tm=require("@vkontakte/videoplayer-shared");function r4(i){let e,t;return e=new xd({}),{c(){D(e.$$.fragment)},m(n,o){R(e,n,o),t=!0},p:pe,i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){_(e.$$.fragment,n),t=!1},d(n){B(e,n)}}}function s4(i){let e,t;return e=new em({props:{short:i[4],isCyrillic:i[5]}}),{c(){D(e.$$.fragment)},m(n,o){R(e,n,o),t=!0},p(n,o){let r={};o&16&&(r.short=n[4]),o&32&&(r.isCyrillic=n[5]),e.$set(r)},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){_(e.$$.fragment,n),t=!1},d(n){B(e,n)}}}function a4(i){let e,t,n,o,r=[s4,r4],l=[];function a(s,u){return s[2]?0:1}return e=a(i,-1),t=l[e]=r[e](i),{c(){t.c(),n=st()},m(s,u){l[e].m(s,u),C(s,n,u),o=!0},p(s,u){let f=e;e=a(s,u),e===f?l[e].p(s,u):(ce(),_(l[f],1,1,()=>{l[f]=null}),fe(),t=l[e],t?t.p(s,u):(t=l[e]=r[e](s),t.c()),d(t,1),t.m(n.parentNode,n))},i(s){o||(d(t),o=!0)},o(s){_(t),o=!1},d(s){s&&k(n),l[e].d(s)}}}function u4(i){let e,t,n;function o(l){i[15](l)}let r={className:"btn-full-opacity",disabled:!i[1],click:i[9],testId:i[2]?"btn-vk-video-logo":"btn-vk-logo",ariaLabel:i[3],$$slots:{default:[a4]},$$scope:{ctx:i}};return i[0]!==void 0&&(r.ref=i[0]),e=new yt({props:r}),_e.push(()=>Fe(e,"ref",o)),{c(){D(e.$$.fragment)},m(l,a){R(e,l,a),n=!0},p(l,[a]){let s={};a&2&&(s.disabled=!l[1]),a&4&&(s.testId=l[2]?"btn-vk-video-logo":"btn-vk-logo"),a&8&&(s.ariaLabel=l[3]),a&262196&&(s.$$scope={dirty:a,ctx:l}),!t&&a&1&&(t=!0,s.ref=l[0],Oe(()=>t=!1)),e.$set(s)},i(l){n||(d(e.$$.fragment,l),n=!0)},o(l){_(e.$$.fragment,l),n=!1},d(l){B(e,l)}}}function c4(i,e,t){let n,o,r,l,{ref:a=void 0}=e,{logoClickable:s=!1}=e,{targetUrl:u=""}=e,{click:f}=e,m=Wt(),h=nt(),y=h.ui.currentGridType$;F(i,y,A=>t(13,r=A));let b=h.ui.isMobile;F(i,b,A=>t(14,l=A));let S=h.interfaceLanguage$;F(i,S,A=>t(12,o=A));let w,T,v,g=()=>{var A,q;f(),(q=(A=h.callbacks)==null?void 0:A.onLogoClicked)==null||q.call(A),u&&window.open(u,"_blank")};function I(A){a=A,t(0,a)}i.$$set=A=>{"ref"in A&&t(0,a=A.ref),"logoClickable"in A&&t(1,s=A.logoClickable),"targetUrl"in A&&t(10,u=A.targetUrl),"click"in A&&t(11,f=A.click)},i.$$.update=()=>{if(i.$$.dirty&24580)e:t(4,v=(l||Br(r,"l"))&&T);if(i.$$.dirty&4096)e:t(5,n=o===tm.InterfaceLanguage.RU)};e:t(3,w=m.logoType==="vk_video"?Q("tooltip_vk_video_logo"):Q("tooltip_vk_logo"));e:t(2,T=m.logoType==="vk_video"||m.logoType==="vk_video_mobile");return[a,s,T,w,v,n,y,b,S,g,u,f,o,r,l,I]}var au=class extends j{constructor(e){super(),W(this,e,c4,u4,U,{ref:0,logoClickable:1,targetUrl:10,click:11})}},Or=au;var nm=require("@vkontakte/videoplayer-core");var uu=require("@vkontakte/videoplayer-core");function f4(i){Te(i,"svelte-8z1bf5",".connecting.svelte-8z1bf5 .wave.svelte-8z1bf5{animation-duration:1s;animation-iteration-count:infinite}.connecting.svelte-8z1bf5 .wave1.svelte-8z1bf5{animation-name:svelte-8z1bf5-wave1}.connecting.svelte-8z1bf5 .wave2.svelte-8z1bf5{animation-name:svelte-8z1bf5-wave2}.connecting.svelte-8z1bf5 .wave3.svelte-8z1bf5{animation-name:svelte-8z1bf5-wave3}@keyframes svelte-8z1bf5-wave1{0%{opacity:0.3}33%{opacity:1}66%{opacity:1}100%{opacity:1}}@keyframes svelte-8z1bf5-wave2{0%{opacity:0.3}33%{opacity:0.3}66%{opacity:1}100%{opacity:1}}@keyframes svelte-8z1bf5-wave3{0%{opacity:0.3}33%{opacity:0.3}66%{opacity:0.3}100%{opacity:1}}")}function d4(i){let e,t,n,o,r,l,a,s;return{c(){e=N("svg"),t=N("g"),n=N("path"),o=N("path"),r=N("path"),l=N("path"),a=N("path"),s=N("path"),c(n,"class","wave wave1 svelte-8z1bf5"),c(n,"d","M1 18v3h3c0-1.66-1.34-3-3-3z"),c(n,"fill","#fff"),c(o,"class","wave wave2 svelte-8z1bf5"),c(o,"d","M1 14v2c2.76 0 5 2.24 5 5h2c0-3.87-3.13-7-7-7z"),c(o,"fill","#fff"),c(r,"class","wave wave3 svelte-8z1bf5"),c(r,"d","M1 10v2a9 9 0 0 1 9 9h2c0-6.08-4.93-11-11-11z"),c(r,"fill","#fff"),c(l,"d","M21 3H3c-1.1 0-2 .9-2 2v3h2V5h18v14h-7v2h7c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2z"),c(l,"fill","#fff"),c(a,"d","M0 0h24v24H0z"),c(s,"d","M5.667 7.44H18.5v9.167h-5.161a11.947 11.947 0 0 0-7.673-7.672V7.44Z"),c(s,"fill","#fff"),z(s,"hidden",!i[1]),c(t,"fill","none"),c(t,"fill-rule","evenodd"),c(e,"width","24"),c(e,"height","24"),c(e,"xmlns","http://www.w3.org/2000/svg"),c(e,"aria-hidden","true"),c(e,"data-testid","chromecast-icon"),c(e,"class","svelte-8z1bf5"),z(e,"connecting",i[2])},m(u,f){C(u,e,f),p(e,t),p(t,n),p(t,o),p(t,r),p(t,l),p(t,a),p(t,s)},p(u,f){f&2&&z(s,"hidden",!u[1]),f&4&&z(e,"connecting",u[2])},d(u){u&&k(e)}}}function m4(i){let e,t,n,o,r,l,a,s,u,f,m,h,y,b,S,w,T,v,g,I,A;return{c(){e=N("svg"),t=N("g"),n=N("mask"),o=N("path"),l=N("path"),a=N("path"),u=N("path"),f=N("defs"),m=N("clipPath"),h=N("path"),b=N("filter"),S=N("feFlood"),w=N("feColorMatrix"),T=N("feOffset"),v=N("feGaussianBlur"),g=N("feColorMatrix"),I=N("feBlend"),A=N("feBlend"),c(o,"fill",r=i[1]?"#2688EB":"#fff"),c(o,"d","M1.1 3.1h22v18h-22z"),c(l,"fill-rule","evenodd"),c(l,"clip-rule","evenodd"),c(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"),c(n,"id","c"),c(n,"maskUnits","userSpaceOnUse"),c(n,"x","1.1"),c(n,"y","3.1"),c(n,"width","22"),c(n,"height","18"),c(n,"fill","#000"),c(a,"fill-rule","evenodd"),c(a,"clip-rule","evenodd"),c(a,"d","M16.2 5.9c.855 0 1.442 0 1.897.038.445.036.683.103.856.19a2.1 2.1 0 0 1 .918.919c.088.172.155.411.191.856.037.455.038 1.042.038 1.897v4.4c0 .855 0 1.442-.038 1.897-.036.445-.103.683-.19.856a2.1 2.1 0 0 1-.919.918c-.172.088-.411.155-.856.191-.455.037-1.042.038-1.897.038H15a.9.9 0 0 0 0 1.8h1.238c.808 0 1.469 0 2.006-.044.556-.045 1.058-.142 1.527-.381a3.9 3.9 0 0 0 1.704-1.704c.239-.47.336-.971.381-1.527.044-.537.044-1.198.044-2.006V9.762c0-.808 0-1.469-.044-2.006-.045-.556-.142-1.058-.381-1.527a3.9 3.9 0 0 0-1.704-1.704c-.47-.239-.971-.336-1.527-.381-.537-.044-1.198-.044-2.006-.044H6a3.901 3.901 0 0 0-3.678 2.6.9.9 0 0 0 1.697.6A2.101 2.101 0 0 1 6 5.9h10.2ZM3.069 11.52a6.9 6.9 0 0 1 7.413 7.413.9.9 0 0 0 1.795.137 8.7 8.7 0 0 0-9.344-9.344.9.9 0 0 0 .136 1.794Zm.533 3.58c-.161 0-.32.011-.474.034a.9.9 0 1 1-.256-1.782A5.1 5.1 0 0 1 8.65 19.13a.9.9 0 1 1-1.782-.256A3.3 3.3 0 0 0 3.602 15.1Zm-1.5 3.3a1.5 1.5 0 1 1 3 0 1.5 1.5 0 0 1-3 0Z"),c(a,"fill",s=i[1]?"#2688EB":"#fff"),c(u,"d","m18.097 5.938-.04.498.04-.498Zm.856.19-.227.446.227-.445Zm.918.919-.445.227.445-.227Zm.191.856-.498.04.498-.04Zm0 8.194-.498-.04.498.04Zm-.19.856-.446-.227.445.227Zm-.919.918-.227-.445.227.445Zm-.856.191.04.498-.04-.498Zm-1.86 1.838v-.5.5Zm2.007-.044.04.498-.04-.498Zm1.527-.381-.227-.446.227.446Zm1.704-1.704.445.227-.445-.227Zm.381-1.527.498.04-.498-.04Zm.044-2.006h-.5.5Zm0-4.476h-.5.5Zm-.044-2.006.498-.04-.498.04Zm-.381-1.527.445-.227-.445.227ZM19.77 4.525l-.227.446.227-.446Zm-1.527-.381.04-.498-.04.498ZM16.238 4.1v.5-.5ZM6 4.1v-.5.5ZM2.322 6.7l-.471-.167.471.167Zm1.697.6-.471-.167.471.167ZM6 5.9v-.5.5Zm-2.931 5.62-.038-.498.038.498Zm7.413 7.413.498.038-.498-.038Zm1.795.137.498.038-.498-.038ZM2.931 9.725l-.038-.498.038.498Zm-.829.966.499-.038-.499.038Zm1.025 4.443-.071-.495.071.495Zm-1.019-.763.495-.071-.495.07Zm.763-1.02.071.496-.07-.495ZM8.65 19.13l.495.072-.495-.072Zm-1.019.764-.07.494.07-.494Zm-.763-1.02.495.072-.495-.071ZM18.138 5.44c-.48-.04-1.091-.04-1.938-.04v1c.863 0 1.426.001 1.856.036l.082-.996Zm1.042.243c-.255-.13-.567-.205-1.042-.243l-.082.996c.414.034.58.092.67.138l.454-.89Zm1.137 1.137a2.6 2.6 0 0 0-1.137-1.137l-.454.891a1.6 1.6 0 0 1 .7.7l.89-.454Zm.244 1.042c-.04-.475-.114-.787-.244-1.042l-.891.454c.046.09.104.256.138.67l.997-.082ZM20.6 9.8c0-.846 0-1.458-.04-1.938l-.996.082c.035.43.036.993.036 1.856h1Zm0 4.4V9.8h-1v4.4h1Zm-.04 1.938c.04-.48.04-1.092.04-1.938h-1c0 .863-.001 1.426-.036 1.856l.997.082Zm-.243 1.042c.13-.255.205-.567.244-1.042l-.997-.082c-.034.414-.092.58-.138.67l.89.454Zm-1.137 1.137a2.6 2.6 0 0 0 1.137-1.137l-.891-.454a1.6 1.6 0 0 1-.7.7l.454.89Zm-1.042.244c.475-.04.787-.114 1.042-.244l-.454-.891c-.09.046-.256.104-.67.138l.082.997ZM16.2 18.6c.847 0 1.458 0 1.938-.04l-.082-.996c-.43.035-.993.036-1.856.036v1Zm-1.2 0h1.2v-1H15v1Zm-.4.4c0-.22.18-.4.4-.4v-1a1.4 1.4 0 0 0-1.4 1.4h1Zm.4.4a.4.4 0 0 1-.4-.4h-1a1.4 1.4 0 0 0 1.4 1.4v-1Zm1.238 0H15v1h1.238v-1Zm1.965-.042c-.512.042-1.15.042-1.965.042v1c.8 0 1.484 0 2.046-.045l-.081-.997Zm1.34-.329c-.386.198-.815.286-1.34.329l.081.997c.587-.049 1.163-.154 1.714-.435l-.454-.89Zm1.486-1.485a3.4 3.4 0 0 1-1.485 1.485l.454.891a4.4 4.4 0 0 0 1.922-1.922l-.89-.454Zm.329-1.341c-.043.525-.131.954-.329 1.34l.891.455c.281-.552.386-1.127.434-1.714l-.996-.081Zm.042-1.965c0 .815 0 1.453-.042 1.965l.997.081c.045-.561.045-1.246.045-2.046h-1Zm0 0h1-1Zm0-4.476v4.476h1V9.762h-1Zm0 0h1-1Zm-.042-1.965c.042.512.042 1.15.042 1.965h1c0-.8 0-1.484-.045-2.046l-.997.081Zm-.329-1.34c.198.386.286.815.329 1.34l.997-.081c-.049-.587-.154-1.162-.435-1.714l-.89.454ZM19.544 4.97a3.4 3.4 0 0 1 1.485 1.485l.891-.454a4.4 4.4 0 0 0-1.922-1.922l-.454.89Zm-1.341-.329c.525.043.954.132 1.34.329l.455-.891c-.552-.281-1.127-.387-1.714-.434l-.081.996ZM16.238 4.6c.815 0 1.453 0 1.965.042l.081-.996c-.562-.046-1.246-.046-2.046-.046v1Zm0 0v-1 1ZM6 4.6h10.238v-1H6v1Zm0-1v1-1Zm0 0a4.401 4.401 0 0 0-4.15 2.933l.944.334A3.401 3.401 0 0 1 6 4.6v-1ZM1.85 6.533a1.4 1.4 0 0 0 .854 1.787l.333-.943a.4.4 0 0 1-.243-.51l-.943-.334Zm.854 1.787a1.4 1.4 0 0 0 1.787-.853l-.943-.334a.4.4 0 0 1-.51.244l-.334.943Zm1.787-.853A1.601 1.601 0 0 1 6 6.4v-1c-1.131 0-2.095.722-2.452 1.733l.943.334ZM16.2 5.4H6v1h10.2v-1ZM3.602 11c-.192 0-.383.007-.571.022l.076.997A6.53 6.53 0 0 1 3.602 12v-1Zm7.4 7.4a7.4 7.4 0 0 0-7.4-7.4v1a6.4 6.4 0 0 1 6.4 6.4h1Zm-.022.571c.015-.188.022-.379.022-.571h-1c0 .167-.006.332-.019.495l.997.076Zm.369.43a.4.4 0 0 1-.369-.43l-.997-.076a1.4 1.4 0 0 0 1.29 1.502l.076-.997Zm.429-.37a.4.4 0 0 1-.43.37l-.075.996a1.4 1.4 0 0 0 1.502-1.29l-.997-.075Zm.024-.631c0 .213-.008.423-.024.632l.997.076c.018-.234.027-.47.027-.708h-1Zm-8.2-8.2a8.2 8.2 0 0 1 8.2 8.2h1a9.2 9.2 0 0 0-9.2-9.2v1Zm-.632.024c.209-.016.42-.024.632-.024v-1c-.238 0-.474.01-.708.027l.076.997Zm-.368.43a.4.4 0 0 1 .368-.43l-.076-.997a1.4 1.4 0 0 0-1.29 1.502l.998-.076Zm.429.368a.4.4 0 0 1-.43-.369l-.996.076a1.4 1.4 0 0 0 1.502 1.29l-.076-.997Zm.168 4.607c.13-.02.265-.029.403-.029v-1c-.185 0-.367.013-.545.039l.142.99Zm-1.585-1.187A1.4 1.4 0 0 0 3.2 15.629l-.142-.99a.4.4 0 0 1-.453-.34l-.99.143Zm1.187-1.585a1.4 1.4 0 0 0-1.187 1.585l.99-.142a.4.4 0 0 1 .34-.453l-.143-.99Zm.801-.057c-.271 0-.538.02-.8.057l.141.99c.216-.031.436-.047.659-.047v-1Zm5.6 5.6a5.6 5.6 0 0 0-5.6-5.6v1a4.6 4.6 0 0 1 4.6 4.6h1Zm-.057.8c.038-.262.057-.529.057-.8h-1c0 .223-.016.443-.047.659l.99.142ZM7.56 20.389A1.4 1.4 0 0 0 9.145 19.2l-.99-.142a.4.4 0 0 1-.453.34l-.142.99Zm-1.187-1.585a1.4 1.4 0 0 0 1.187 1.584l.142-.99a.4.4 0 0 1-.339-.452l-.99-.142Zm.029-.403c0 .138-.01.272-.029.403l.99.142c.026-.178.039-.36.039-.545h-1Zm-2.8-2.8a2.8 2.8 0 0 1 2.8 2.8h1a3.8 3.8 0 0 0-3.8-3.8v1Zm0 .8a2 2 0 0 0-2 2h1a1 1 0 0 1 1-1v-1Zm2 2a2 2 0 0 0-2-2v1a1 1 0 0 1 1 1h1Zm-2 2a2 2 0 0 0 2-2h-1a1 1 0 0 1-1 1v1Zm-2-2a2 2 0 0 0 2 2v-1a1 1 0 0 1-1-1h-1Z"),c(u,"fill","#000"),c(u,"fill-opacity",".12"),c(u,"mask","url(#c)"),c(t,"filter","url(#b)"),c(t,"clip-path","url(#a)"),c(h,"fill",y=i[1]?"#2688EB":"#fff"),c(h,"d","M0 0h24v24H0z"),c(m,"id","a"),c(S,"flood-opacity","0"),c(S,"result","BackgroundImageFix"),c(w,"in","SourceAlpha"),c(w,"values","0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0"),c(w,"result","hardAlpha"),c(v,"stdDeviation","2.5"),c(g,"values","0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.16 0"),c(I,"in2","BackgroundImageFix"),c(I,"result","effect1_dropShadow_4085_178456"),c(A,"in","SourceGraphic"),c(A,"in2","effect1_dropShadow_4085_178456"),c(A,"result","shape"),c(b,"id","b"),c(b,"x","-3.4"),c(b,"y","-1.4"),c(b,"width","30.8"),c(b,"height","26.802"),c(b,"filterUnits","userSpaceOnUse"),c(b,"color-interpolation-filters","sRGB"),c(e,"width","24"),c(e,"height","24"),c(e,"fill","none"),c(e,"xmlns","http://www.w3.org/2000/svg"),c(e,"aria-hidden","true"),c(e,"data-testid","chromecast-mobile-icon")},m(q,K){C(q,e,K),p(e,t),p(t,n),p(n,o),p(n,l),p(t,a),p(t,u),p(e,f),p(f,m),p(m,h),p(f,b),p(b,S),p(b,w),p(b,T),p(b,v),p(b,g),p(b,I),p(b,A)},p(q,K){K&2&&r!==(r=q[1]?"#2688EB":"#fff")&&c(o,"fill",r),K&2&&s!==(s=q[1]?"#2688EB":"#fff")&&c(a,"fill",s),K&2&&y!==(y=q[1]?"#2688EB":"#fff")&&c(h,"fill",y)},d(q){q&&k(e)}}}function p4(i){let e;function t(r,l){return r[0]?m4:d4}let n=t(i,-1),o=n(i);return{c(){o.c(),e=st()},m(r,l){o.m(r,l),C(r,e,l)},p(r,[l]){n===(n=t(r,l))&&o?o.p(r,l):(o.d(1),o=n(r),o&&(o.c(),o.m(e.parentNode,e)))},i:pe,o:pe,d(r){r&&k(e),o.d(r)}}}function _4(i,e,t){let{isMobile:n=!1}=e,{state:o}=e,r,l;return i.$$set=a=>{"isMobile"in a&&t(0,n=a.isMobile),"state"in a&&t(3,o=a.state)},i.$$.update=()=>{if(i.$$.dirty&8)e:t(2,l=o===uu.ChromecastState.CONNECTING),t(1,r=o===uu.ChromecastState.CONNECTED)},[n,r,l,o]}var cu=class extends j{constructor(e){super(),W(this,e,_4,p4,U,{isMobile:0,state:3},f4)}},im=cu;var om=require("@vkontakte/videoplayer-shared");function h4(i){let e,t;return e=new im({props:{isMobile:i[1],state:i[2]}}),{c(){D(e.$$.fragment)},m(n,o){R(e,n,o),t=!0},p(n,o){let r={};o&2&&(r.isMobile=n[1]),o&4&&(r.state=n[2]),e.$set(r)},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){_(e.$$.fragment,n),t=!1},d(n){B(e,n)}}}function g4(i){let e,t,n;function o(l){i[5](l)}let r={ariaLabel:i[4],click:i[3],testId:"btn-chromecast",$$slots:{default:[h4]},$$scope:{ctx:i}};return i[0]!==void 0&&(r.ref=i[0]),e=new yt({props:r}),_e.push(()=>Fe(e,"ref",o)),{c(){D(e.$$.fragment)},m(l,a){R(e,l,a),n=!0},p(l,[a]){let s={};a&16&&(s.ariaLabel=l[4]),a&8&&(s.click=l[3]),a&70&&(s.$$scope={dirty:a,ctx:l}),!t&&a&1&&(t=!0,s.ref=l[0],Oe(()=>t=!1)),e.$set(s)},i(l){n||(d(e.$$.fragment,l),n=!0)},o(l){_(e.$$.fragment,l),n=!1},d(l){B(e,l)}}}function b4(i,e,t){let{ref:n=void 0}=e,{isMobile:o=!1}=e,{state:r}=e,{click:l=om.noop}=e,a;function s(u){n=u,t(0,n)}return i.$$set=u=>{"ref"in u&&t(0,n=u.ref),"isMobile"in u&&t(1,o=u.isMobile),"state"in u&&t(2,r=u.state),"click"in u&&t(3,l=u.click)},i.$$.update=()=>{if(i.$$.dirty&4)e:t(4,a=r===nm.ChromecastState.CONNECTED?Q("tooltip_chromecast_on"):Q("tooltip_chromecast_off"))},[n,o,r,l,a,s]}var fu=class extends j{constructor(e){super(),W(this,e,b4,g4,U,{ref:0,isMobile:1,state:2,click:3})}},Fr=fu;var Hr=require("@vkontakte/videoplayer-core");function v4(i){let e,t;return e=new gr({props:{isActive:i[1]}}),{c(){D(e.$$.fragment)},m(n,o){R(e,n,o),t=!0},p(n,o){let r={};o&2&&(r.isActive=n[1]),e.$set(r)},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){_(e.$$.fragment,n),t=!1},d(n){B(e,n)}}}function y4(i){let e,t;return e=new yt({props:{className:i[0]?"":"btn--live btn-full-opacity",testId:i[1]?"btn-live":"btn-live-offset",disabled:i[1]&&i[3]===Hr.PlaybackState.PLAYING,ariaLabel:i[2],click:i[4],$$slots:{default:[v4]},$$scope:{ctx:i}}}),{c(){D(e.$$.fragment)},m(n,o){R(e,n,o),t=!0},p(n,[o]){let r={};o&1&&(r.className=n[0]?"":"btn--live btn-full-opacity"),o&2&&(r.testId=n[1]?"btn-live":"btn-live-offset"),o&10&&(r.disabled=n[1]&&n[3]===Hr.PlaybackState.PLAYING),o&4&&(r.ariaLabel=n[2]),o&16&&(r.click=n[4]),o&514&&(r.$$scope={dirty:o,ctx:n}),e.$set(r)},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){_(e.$$.fragment,n),t=!1},d(n){B(e,n)}}}function w4(i,e,t){let n,{isMobile:o=!1}=e,{isActiveLive:r=!1}=e,{ariaLabel:l=""}=e,a=nt(),s=a.state.playbackState$;F(i,s,h=>t(3,n=h));let u=a.actions.internal.switchToActiveLive,f=a.actions.internal.togglePlay,m;return i.$$set=h=>{"isMobile"in h&&t(0,o=h.isMobile),"isActiveLive"in h&&t(1,r=h.isActiveLive),"ariaLabel"in h&&t(2,l=h.ariaLabel)},i.$$.update=()=>{if(i.$$.dirty&10)e:t(4,m=()=>{if(!r){u();return}n===Hr.PlaybackState.PAUSED&&f()})},[o,r,l,n,m,s]}var du=class extends j{constructor(e){super(),W(this,e,w4,y4,U,{isMobile:0,isActiveLive:1,ariaLabel:2})}},zr=du;function k4(i){Te(i,"svelte-5ygsa2",'.tooltip-wrapper.svelte-5ygsa2{position:relative;display:block}.tooltip.svelte-5ygsa2{position:absolute;opacity:0;visibility:hidden;transition:opacity 200ms, visibility 200ms;bottom:100%;transform:translateX(-50%)}.pointer.svelte-5ygsa2:after{position:absolute;bottom:0;left:50%;width:0;border-top:5px solid rgba(41, 41, 41, .8);border-right:5px solid transparent;border-left:5px solid transparent;content:" ";font-size:0;line-height:0;transform:translate(-50%, 5px)}.tooltip.active.svelte-5ygsa2{opacity:1;visibility:visible}')}function C4(i){let e,t,n,o,r=i[9].default,l=Ee(r,i,i[8],null);return{c(){e=P("div"),t=P("div"),l&&l.c(),c(t,"class","tooltip svelte-5ygsa2"),z(t,"active",i[0]),z(t,"pointer",i[1]),c(e,"class","tooltip-wrapper svelte-5ygsa2"),c(e,"style",n=`transform: translate(${i[5]}px, ${i[2]}px);`)},m(a,s){C(a,e,s),p(e,t),l&&l.m(t,null),i[10](t),i[11](e),o=!0},p(a,[s]){l&&l.p&&(!o||s&256)&&Ve(l,r,a,a[8],o?Me(r,a[8],s,null):Ae(a[8]),null),(!o||s&1)&&z(t,"active",a[0]),(!o||s&2)&&z(t,"pointer",a[1]),(!o||s&36&&n!==(n=`transform: translate(${a[5]}px, ${a[2]}px);`))&&c(e,"style",n)},i(a){o||(d(l,a),o=!0)},o(a){_(l,a),o=!1},d(a){a&&k(e),l&&l.d(a),i[10](null),i[11](null)}}}function S4(i,e,t){let n,{$$slots:o={},$$scope:r}=e,{active:l=!1}=e,{pointer:a=!1}=e,{translateXPx:s=0}=e,{translateYPx:u=0}=e,{containerWidth:f}=e,m,h;function y(w){if(!h)return 0;let{width:T}=h.getBoundingClientRect(),v=T/2;return w<v?v:w>f-v?f-v:w}function b(w){_e[w?"unshift":"push"](()=>{h=w,t(4,h)})}function S(w){_e[w?"unshift":"push"](()=>{m=w,t(3,m)})}return i.$$set=w=>{"active"in w&&t(0,l=w.active),"pointer"in w&&t(1,a=w.pointer),"translateXPx"in w&&t(6,s=w.translateXPx),"translateYPx"in w&&t(2,u=w.translateYPx),"containerWidth"in w&&t(7,f=w.containerWidth),"$$scope"in w&&t(8,r=w.$$scope)},i.$$.update=()=>{if(i.$$.dirty&64)e:t(5,n=y(s))},[l,a,u,m,h,n,s,f,r,o,b,S]}var mu=class extends j{constructor(e){super(),W(this,e,S4,C4,U,{active:0,pointer:1,translateXPx:6,translateYPx:2,containerWidth:7},k4)}},lm=mu;var qr=(i,e,t)=>t.filter(n=>n.time<i*e).pop();function T4(i){Te(i,"svelte-l51fc1",".timeline-preview.svelte-l51fc1{bottom:18px;border-radius:2px;pointer-events:none}.timeline-preview.mobile.svelte-l51fc1{bottom:72px}.preview.svelte-l51fc1{margin-bottom:10px;background-color:var(--timeline-preview-bg);box-shadow:0 0 2px var(--timeline-preview-shadow), 0 8px 24px var(--timeline-preview-shadow);border-radius:8px;border:1px solid var(--white)}.episode.svelte-l51fc1{margin-top:10px;margin-bottom:4px;font-size:13px;line-height:16px;text-shadow:0 8px 24px var(--timeline-preview-shadow), 0 0 2px var(--timeline-preview-shadow);max-width:150px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;text-align:center;font-weight:500}.time.svelte-l51fc1{font-size:13px;line-height:16px;text-align:center;color:var(--slider-filled-bg);text-shadow:0 8px 24px var(--timeline-preview-shadow), 0 0 2px var(--timeline-preview-shadow);font-weight:500}")}function rm(i){let e;function t(r,l){return r[2]&&r[10].completed===!1?I4:P4}let n=t(i,-1),o=n(i);return{c(){o.c(),e=st()},m(r,l){o.m(r,l),C(r,e,l)},p(r,l){n===(n=t(r,l))&&o?o.p(r,l):(o.d(1),o=n(r),o&&(o.c(),o.m(e.parentNode,e)))},d(r){r&&k(e),o.d(r)}}}function P4(i){let e=(i[10].text||"")+"",t;return{c(){t=Be(e)},m(n,o){C(n,t,o)},p(n,o){o&1024&&e!==(e=(n[10].text||"")+"")&&Ze(t,e)},d(n){n&&k(t)}}}function I4(i){let e=Q("tooltip_episode_unfinished")+"",t;return{c(){t=Be(e)},m(n,o){C(n,t,o)},p:pe,d(n){n&&k(t)}}}function sm(i){let e,t;return{c(){e=P("div"),t=Be(i[0]),c(e,"class","time svelte-l51fc1")},m(n,o){C(n,e,o),p(e,t)},p(n,o){o&1&&Ze(t,n[0])},d(n){n&&k(e)}}}function E4(i){let e,t,n,o,r,l,a=i[10]&&rm(i),s=!i[2]&&sm(i);return{c(){e=P("div"),t=P("div"),o=O(),r=P("div"),a&&a.c(),l=O(),s&&s.c(),c(t,"class","preview svelte-l51fc1"),c(t,"style",n=`width: ${i[3]}px; height: ${i[4]}px; background-image: url(${i[5]}); background-size: ${i[6]}px ${i[7]}px; background-position: ${i[8]}px ${i[9]}px; transform: translateY(${i[11]%180?-35:0}px) rotate(${i[11]}deg);`),c(r,"class","episode svelte-l51fc1"),c(e,"class","timeline-preview svelte-l51fc1"),z(e,"mobile",i[1])},m(u,f){C(u,e,f),p(e,t),p(e,o),p(e,r),a&&a.m(r,null),p(e,l),s&&s.m(e,null)},p(u,[f]){f&3064&&n!==(n=`width: ${u[3]}px; height: ${u[4]}px; background-image: url(${u[5]}); background-size: ${u[6]}px ${u[7]}px; background-position: ${u[8]}px ${u[9]}px; transform: translateY(${u[11]%180?-35:0}px) rotate(${u[11]}deg);`)&&c(t,"style",n),u[10]?a?a.p(u,f):(a=rm(u),a.c(),a.m(r,null)):a&&(a.d(1),a=null),u[2]?s&&(s.d(1),s=null):s?s.p(u,f):(s=sm(u),s.c(),s.m(e,null)),f&2&&z(e,"mobile",u[1])},i:pe,o:pe,d(u){u&&k(e),a&&a.d(),s&&s.d()}}}var _l=150;function M4(i,e,t){let n,{time:o=""}=e,{isMobile:r=!1}=e,{videoEpisodes:l=[]}=e,{previewThumbsData:a}=e,{progress:s=0}=e,{duration:u=0}=e,{isInteractive:f=!1}=e,h=nt().ui.rotateAlpha;F(i,h,K=>t(11,n=K));let y,b,S,w,T,v,g,I;function A(){let K=a.frameWidth,re=a.frameHeight;return K>_l?(re=re/K*_l,K=_l):re>_l&&(K=K/re*_l,re=_l),{width:K,height:re}}function q(K){let re;a.isUV?re=Math.floor(u*K/a.frequency):re=Math.min(a.countTotal,Math.max(0,Math.floor(a.countTotal*K)));let ae=Math.floor(re/a.countPerImage),H=Math.floor(re%a.countPerImage/a.countPerRow),L=re%a.countPerRow,x=Math.floor(a.countPerImage/a.countPerRow);!a.isUV&&ae===Math.floor(a.countTotal/a.countPerImage)&&(x=Math.floor(a.countTotal%a.countPerImage/a.countPerRow),a.countTotal%a.countPerImage%a.countPerRow>0&&x++);let G=a.countPerRow;!a.isUV&&ae===Math.floor(a.countTotal/a.countPerImage)&&a.countTotal%a.countPerImage>0&&(G=Math.min(a.countPerRow,a.countTotal%a.countPerImage));let J=y*G,E=b*x,te=-L*y,M=-H*b;return{imgSrc:a.links[ae],imgWidth:J,imgHeight:E,imgOffsetX:te,imgOffsetY:M}}i.$$set=K=>{"time"in K&&t(0,o=K.time),"isMobile"in K&&t(1,r=K.isMobile),"videoEpisodes"in K&&t(13,l=K.videoEpisodes),"previewThumbsData"in K&&t(14,a=K.previewThumbsData),"progress"in K&&t(15,s=K.progress),"duration"in K&&t(16,u=K.duration),"isInteractive"in K&&t(2,f=K.isInteractive)},i.$$.update=()=>{if(i.$$.dirty&32768)e:t(5,{imgSrc:S,imgWidth:w,imgHeight:T,imgOffsetX:v,imgOffsetY:g}=q(s),S,(t(6,w),t(15,s)),(t(7,T),t(15,s)),(t(8,v),t(15,s)),(t(9,g),t(15,s)));if(i.$$.dirty&106496)e:t(10,I=qr(s,u,l))};e:t(3,{width:y,height:b}=A(),y,t(4,b));return[o,r,f,y,b,S,w,T,v,g,I,n,h,l,a,s,u]}var pu=class extends j{constructor(e){super(),W(this,e,M4,E4,U,{time:0,isMobile:1,videoEpisodes:13,previewThumbsData:14,progress:15,duration:16,isInteractive:2},T4)}},am=pu;function V4(i){Te(i,"svelte-5lzly8",".time.svelte-5lzly8{display:inline-block;padding:6px 10px;border-radius:3px;color:var(--white);background-color:rgba(41, 41, 41, .8)}")}function A4(i){let e,t;return{c(){e=P("span"),t=Be(i[7]),c(e,"class","time svelte-5lzly8")},m(n,o){C(n,e,o),p(e,t)},p(n,o){o[0]&128&&Ze(t,n[7])},i:pe,o:pe,d(n){n&&k(e)}}}function L4(i){let e,t;return e=new am({props:{time:i[7],isMobile:i[10],videoEpisodes:i[3],previewThumbsData:i[21],progress:i[8],duration:i[1],isInteractive:i[23]}}),{c(){D(e.$$.fragment)},m(n,o){R(e,n,o),t=!0},p(n,o){let 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||(d(e.$$.fragment,n),t=!0)},o(n){_(e.$$.fragment,n),t=!1},d(n){B(e,n)}}}function R4(i){let e,t,n,o,r=[L4,A4],l=[];function a(s,u){return s[14].features.timelinePreview&&s[21]&&!s[0]?0:1}return e=a(i,[-1,-1]),t=l[e]=r[e](i),{c(){t.c(),n=st()},m(s,u){l[e].m(s,u),C(s,n,u),o=!0},p(s,u){let f=e;e=a(s,u),e===f?l[e].p(s,u):(ce(),_(l[f],1,1,()=>{l[f]=null}),fe(),t=l[e],t?t.p(s,u):(t=l[e]=r[e](s),t.c()),d(t,1),t.m(n.parentNode,n))},i(s){o||(d(t),o=!0)},o(s){_(t),o=!1},d(s){s&&k(n),l[e].d(s)}}}function B4(i){let e,t,n,o,r=[i[9]],l={$$slots:{default:[R4]},$$scope:{ctx:i}};for(let a=0;a<r.length;a+=1)l=oe(l,r[a]);return e=new lm({props:l}),n=new dl({props:{isActiveLive:i[11],isMobile:i[10],ariaLabel:Q("aria_timeline"),ariaValueMin:0,ariaValueMax:i[1],ariaValueNow:Math.round(i[6]*100),ariaValueText:Q("aria_timeline_value",{position:i[5],duration:i[4]}),loadedProgress:i[12],filledProgress:i[6],handleProgress:i[6],videoEpisodes:i[3],onPointerDown:i[27],onHandleMove:i[28],onPointerMove:i[31],onPointerUp:i[29],onPointerEnter:i[30],onPointerLeave:i[32],isInteractive:i[23],disabled:i[13].has("TIMELINE"),hideHandel:i[2]}}),{c(){D(e.$$.fragment),t=O(),D(n.$$.fragment)},m(a,s){R(e,a,s),C(a,t,s),R(n,a,s),o=!0},p(a,s){let u=s[0]&512?Le(r,[$c(a[9])]):{};s[0]&1419|s[1]&65536&&(u.$$scope={dirty:s,ctx:a}),e.$set(u);let f={};s[0]&2048&&(f.isActiveLive=a[11]),s[0]&1024&&(f.isMobile=a[10]),s[0]&2&&(f.ariaValueMax=a[1]),s[0]&64&&(f.ariaValueNow=Math.round(a[6]*100)),s[0]&48&&(f.ariaValueText=Q("aria_timeline_value",{position:a[5],duration:a[4]})),s[0]&4096&&(f.loadedProgress=a[12]),s[0]&64&&(f.filledProgress=a[6]),s[0]&64&&(f.handleProgress=a[6]),s[0]&8&&(f.videoEpisodes=a[3]),s[0]&8192&&(f.disabled=a[13].has("TIMELINE")),s[0]&4&&(f.hideHandel=a[2]),n.$set(f)},i(a){o||(d(e.$$.fragment,a),d(n.$$.fragment,a),o=!0)},o(a){_(e.$$.fragment,a),_(n.$$.fragment,a),o=!1},d(a){a&&k(t),B(e,a),B(n,a)}}}function D4(i,e,t){let n,o,r,l,a,s,u,f,m,h,y,{showTimeline:b=!1}=e,S=nt(),w=Wt(),T=S.state.bufferedProgress$;F(i,T,Ce=>t(12,h=Ce));let v=S.state.positionWithScrubbing$;F(i,v,Ce=>t(39,s=Ce));let g=S.state.duration$;F(i,g,Ce=>t(1,r=Ce));let I=S.state.isLive$;F(i,I,Ce=>t(0,o=Ce));let A=S.state.isActiveLive$;F(i,A,Ce=>t(11,m=Ce));let q=S.ui.isMobile;F(i,q,Ce=>t(10,f=Ce));let K=w.features.episodes?S.actions.internal.getVideoEpisodes():void 0,re=S.actions.internal.getPreviewThumbsData(),ae=S.state.interactiveEpisodes$;F(i,ae,Ce=>t(40,u=Ce));let H=S.state.isInteractive,L=S.state.isInteractiveTime$;F(i,L,Ce=>t(2,l=Ce));let x=S.state.isInteractiveExpectation$;F(i,x,Ce=>t(38,a=Ce));let G=S.actions.internal.correctSeekTimeToInteractive,J=S.ui.controls.disabledControls$;F(i,J,Ce=>t(13,y=Ce));let E,te,M,ee,ke=!1,Ge="",Ke=0,Je=0,We=0,ve;function X(Ce){return!G||!H?Ce:G(Ce*r)/r}function be(Ce){S.actions.internal.startScrubbing(X(Ce))}function Ne(Ce){l||S.actions.internal.progressScrubbing(X(Ce))}function xe(Ce){S.actions.internal.completeScrubbing(X(Ce)),t(34,ke=!1)}function et(Ce,Z,Pe){je(Ce,Z,Pe),t(34,ke=!0)}function ye(Ce,Z,Pe){je(Ce,Z,Pe),t(34,ke=!0)}function Re(){t(34,ke=!1)}function je(Ce,Z,Pe){t(8,We=X(Ce)),t(35,Ke=Z),Pe&&t(36,Je=Pe),t(7,Ge=Xe(Ce))}function Xe(Ce){let Z=Ln((o?1-Ce:Ce)*r);return o?`-${Z}`:Z}return i.$$set=Ce=>{"showTimeline"in Ce&&t(33,b=Ce.showTimeline)},i.$$.update=()=>{if(i.$$.dirty[1]&512)e:t(3,E=H?u:K);if(i.$$.dirty[0]&2)e:t(4,te=Ln(r));if(i.$$.dirty[1]&256)e:t(5,M=Ln(s));if(i.$$.dirty[0]&2|i.$$.dirty[1]&256)e:t(6,ee=s/r);if(i.$$.dirty[0]&4|i.$$.dirty[1]&128)e:t(37,ve=a||l);if(i.$$.dirty[0]&1|i.$$.dirty[1]&124)e:t(9,n={containerWidth:Je,translateXPx:Ke,translateYPx:H&&re?-36:-16,active:ke&&b&&!ve,pointer:!w.features.timelinePreview||!re||o})},[o,r,l,E,te,M,ee,Ge,We,n,f,m,h,y,w,T,v,g,I,A,q,re,ae,H,L,x,J,be,Ne,xe,et,ye,Re,b,ke,Ke,Je,ve,a,s,u]}var _u=class extends j{constructor(e){super(),W(this,e,D4,B4,U,{showTimeline:33},V4,[-1,-1])}},um=_u;function N4(i){let e,t;return e=new dl({props:{ariaValueMin:0,ariaValueMax:i[0],ariaValueNow:Math.round(i[3]*100),ariaValueText:Q("aria_timeline_value",{position:i[2],duration:i[1]}),filledProgress:i[3],isAds:!0,hideHandel:!0,squareBorders:i[4]}}),{c(){D(e.$$.fragment)},m(n,o){R(e,n,o),t=!0},p(n,[o]){let r={};o&1&&(r.ariaValueMax=n[0]),o&8&&(r.ariaValueNow=Math.round(n[3]*100)),o&6&&(r.ariaValueText=Q("aria_timeline_value",{position:n[2],duration:n[1]})),o&8&&(r.filledProgress=n[3]),o&16&&(r.squareBorders=n[4]),e.$set(r)},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){_(e.$$.fragment,n),t=!1},d(n){B(e,n)}}}function O4(i,e,t){let n,{position:o=0}=e,{duration:r=0}=e,a=nt().ui.isMobile;F(i,a,m=>t(4,n=m));let s,u,f;return i.$$set=m=>{"position"in m&&t(6,o=m.position),"duration"in m&&t(0,r=m.duration)},i.$$.update=()=>{if(i.$$.dirty&1)e:t(1,s=Ln(r));if(i.$$.dirty&64)e:t(2,u=Ln(o));if(i.$$.dirty&65)e:t(3,f=o/r)},[r,s,u,f,n,a,o]}var hu=class extends j{constructor(e){super(),W(this,e,O4,N4,U,{position:6,duration:0})}},Ur=hu;function F4(i){Te(i,"svelte-1gqonyf",".timeline.svelte-1gqonyf{position:relative;pointer-events:all;display:flex;align-items:center;bottom:0;width:100%;min-width:86px;padding:3px 10px 4px;box-sizing:border-box}.timeline.mobile.svelte-1gqonyf{height:16px;padding:6px 12px 7px;margin-top:6px}.timeline-stub.svelte-1gqonyf{width:100%;min-width:20px}.timeline-stub.mobile.svelte-1gqonyf{height:8px}")}function H4(i){let e;return{c(){e=P("div"),c(e,"class","timeline-stub svelte-1gqonyf"),z(e,"mobile",i[2])},m(t,n){C(t,e,n)},p(t,n){n&4&&z(e,"mobile",t[2])},i:pe,o:pe,d(t){t&&k(e)}}}function z4(i){let e,t,n,o,r=[U4,q4],l=[];function a(s,u){return s[0]?0:1}return t=a(i,-1),n=l[t]=r[t](i),{c(){e=P("div"),n.c(),c(e,"class","timeline svelte-1gqonyf"),z(e,"mobile",i[2])},m(s,u){C(s,e,u),l[t].m(e,null),o=!0},p(s,u){let f=t;t=a(s,u),t===f?l[t].p(s,u):(ce(),_(l[f],1,1,()=>{l[f]=null}),fe(),n=l[t],n?n.p(s,u):(n=l[t]=r[t](s),n.c()),d(n,1),n.m(e,null)),(!o||u&4)&&z(e,"mobile",s[2])},i(s){o||(d(n),o=!0)},o(s){_(n),o=!1},d(s){s&&k(e),l[t].d()}}}function q4(i){let e,t;return e=new um({props:{showTimeline:i[1]}}),{c(){D(e.$$.fragment)},m(n,o){R(e,n,o),t=!0},p(n,o){let r={};o&2&&(r.showTimeline=n[1]),e.$set(r)},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){_(e.$$.fragment,n),t=!1},d(n){B(e,n)}}}function U4(i){let e,t;return e=new Ur({props:{position:i[3],duration:i[4]}}),{c(){D(e.$$.fragment)},m(n,o){R(e,n,o),t=!0},p(n,o){let r={};o&8&&(r.position=n[3]),o&16&&(r.duration=n[4]),e.$set(r)},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){_(e.$$.fragment,n),t=!1},d(n){B(e,n)}}}function K4(i){let e,t,n,o,r=[z4,H4],l=[];function a(s,u){return s[1]?0:1}return e=a(i,-1),t=l[e]=r[e](i),{c(){t.c(),n=st()},m(s,u){l[e].m(s,u),C(s,n,u),o=!0},p(s,[u]){let f=e;e=a(s,u),e===f?l[e].p(s,u):(ce(),_(l[f],1,1,()=>{l[f]=null}),fe(),t=l[e],t?t.p(s,u):(t=l[e]=r[e](s),t.c()),d(t,1),t.m(n.parentNode,n))},i(s){o||(d(t),o=!0)},o(s){_(t),o=!1},d(s){s&&k(n),l[e].d(s)}}}function j4(i,e,t){let n,o,r,l,{isAds:a=!1}=e,{canRewindLive:s}=e,{isRewindableLive:u}=e,{isHidden:f=!1}=e,m=nt(),h=m.state.isLive$;F(i,h,T=>t(12,n=T));let y=m.ads.duration;F(i,y,T=>t(4,l=T));let b=m.ads.position;F(i,b,T=>t(3,r=T));let S=m.ui.isMobile;F(i,S,T=>t(2,o=T));let w;return i.$$set=T=>{"isAds"in T&&t(0,a=T.isAds),"canRewindLive"in T&&t(9,s=T.canRewindLive),"isRewindableLive"in T&&t(10,u=T.isRewindableLive),"isHidden"in T&&t(11,f=T.isHidden)},i.$$.update=()=>{if(i.$$.dirty&7681)e:t(1,w=!f&&(!n||n&&s&&u||a))},[a,w,o,r,l,h,y,b,S,s,u,f,n]}var gu=class extends j{constructor(e){super(),W(this,e,j4,K4,U,{isAds:0,canRewindLive:9,isRewindableLive:10,isHidden:11},F4)}},Kr=gu;var dm=require("@vkontakte/videoplayer-shared");function W4(i){let e,t,n,o,r,l=i[2].default,a=Ee(l,i,i[1],null),s=[{xmlns:"http://www.w3.org/2000/svg"},{width:"24"},{height:"24"},{fill:"none"},{"aria-hidden":"true"},{"data-testid":"episodes-icon"},{style:"flex-shrink:0"},{role:"img"},i[0]],u={};for(let f=0;f<s.length;f+=1)u=oe(u,s[f]);return{c(){e=N("svg"),a&&a.c(),t=N("path"),n=N("path"),o=N("path"),c(t,"fill","#fff"),c(t,"fill-rule","evenodd"),c(t,"d","m21.616 16.495-.012.07c-.156.852-.282 1.541-.427 2.093-.148.569-.333 1.063-.64 1.5a4.4 4.4 0 0 1-2.507 1.732c-.52.133-1.046.131-1.63.069-.568-.06-1.257-.187-2.11-.343l-4.34-.794c-.853-.156-1.542-.282-2.094-.426-.568-.149-1.062-.334-1.5-.642a4.4 4.4 0 0 1-1.731-2.507c-.133-.518-.131-1.045-.069-1.63.06-.567.187-1.257.343-2.11l.012-.068c.156-.853.282-1.542.427-2.095.148-.568.333-1.062.641-1.5a4.4 4.4 0 0 1 2.507-1.731c.518-.133 1.045-.131 1.63-.069.567.06 1.256.187 2.109.343l4.34.794c.853.156 1.542.282 2.094.426.568.149 1.062.334 1.5.642a4.4 4.4 0 0 1 1.731 2.506c.133.52.131 1.046.069 1.63-.06.568-.187 1.258-.343 2.11m-1.446-2.3c.052-.483.035-.769-.022-.993a2.6 2.6 0 0 0-1.023-1.481c-.19-.133-.45-.25-.921-.373-.48-.125-1.102-.24-1.997-.404l-4.272-.781c-.895-.164-1.518-.277-2.01-.33-.483-.051-.769-.035-.993.023-.6.153-1.125.516-1.481 1.023-.133.19-.25.45-.373.92-.125.48-.24 1.103-.403 1.998s-.277 1.518-.33 2.01c-.051.484-.035.77.023.994.153.6.516 1.125 1.023 1.481.189.133.45.25.92.373.48.125 1.102.24 1.997.404l4.272.781c.895.164 1.518.277 2.01.33.483.051.77.035.993-.023a2.6 2.6 0 0 0 1.481-1.023c.133-.19.25-.45.373-.92.125-.48.24-1.103.403-1.998s.278-1.518.33-2.01Z"),c(t,"clip-rule","evenodd"),c(n,"fill","#fff"),c(n,"fill-rule","evenodd"),c(n,"d","M18.187 7.488a.9.9 0 0 1-1.045-.727c-.145-.807-.199-1.086-.28-1.296A2.6 2.6 0 0 0 14.504 3.8c-.224-.006-.505.036-1.315.169l-5.846.962c-1.366.224-1.834.313-2.174.492A2.6 2.6 0 0 0 3.837 7.18c-.08.376-.039.85.114 2.226l.011.1a.9.9 0 1 1-1.787.198l-.01-.093-.019-.17c-.129-1.147-.217-1.937-.068-2.636A4.4 4.4 0 0 1 4.332 3.83c.633-.333 1.417-.461 2.556-.648l.163-.027 5.846-.961.098-.016c.674-.111 1.138-.188 1.556-.177a4.4 4.4 0 0 1 3.99 2.819c.15.39.234.853.355 1.526l.017.097a.9.9 0 0 1-.726 1.045"),c(n,"clip-rule","evenodd"),c(o,"fill","#fff"),c(o,"d","M12.724 12.414a.415.415 0 0 0-.69.231l-.72 4.18a.4.4 0 0 0 .025.221c.085.21.327.311.539.226l3.669-1.467a.406.406 0 0 0 .127-.68z"),ge(e,u)},m(f,m){C(f,e,m),a&&a.m(e,null),p(e,t),p(e,n),p(e,o),r=!0},p(f,[m]){a&&a.p&&(!r||m&2)&&Ve(a,l,f,f[1],r?Me(l,f[1],m,null):Ae(f[1]),null),ge(e,u=Le(s,[{xmlns:"http://www.w3.org/2000/svg"},{width:"24"},{height:"24"},{fill:"none"},{"aria-hidden":"true"},{"data-testid":"episodes-icon"},{style:"flex-shrink:0"},{role:"img"},m&1&&f[0]]))},i(f){r||(d(a,f),r=!0)},o(f){_(a,f),r=!1},d(f){f&&k(e),a&&a.d(f)}}}function G4(i,e,t){let{$$slots:n={},$$scope:o}=e;return i.$$set=r=>{t(0,e=oe(oe({},e),he(r))),"$$scope"in r&&t(1,o=r.$$scope)},e=he(e),[e,o,n]}var bu=class extends j{constructor(e){super(),W(this,e,G4,W4,U,{})}},cm=bu;function Q4(i){let e,t,n,o=i[2].default,r=Ee(o,i,i[1],null),l=[{xmlns:"http://www.w3.org/2000/svg"},{width:"12"},{height:"13"},{fill:"none"},{"aria-hidden":"true"},{"data-testid":"chevron-light-icon"},{role:"img"},i[0]],a={};for(let s=0;s<l.length;s+=1)a=oe(a,l[s]);return{c(){e=N("svg"),r&&r.c(),t=N("path"),c(t,"fill","#fff"),c(t,"fill-rule","evenodd"),c(t,"d","M4.146 3.146a.5.5 0 0 1 .708 0l3 3a.5.5 0 0 1 0 .708l-3 3a.5.5 0 0 1-.708-.708L6.793 6.5 4.146 3.854a.5.5 0 0 1 0-.708"),c(t,"clip-rule","evenodd"),c(t,"opacity",".7"),ge(e,a)},m(s,u){C(s,e,u),r&&r.m(e,null),p(e,t),n=!0},p(s,[u]){r&&r.p&&(!n||u&2)&&Ve(r,o,s,s[1],n?Me(o,s[1],u,null):Ae(s[1]),null),ge(e,a=Le(l,[{xmlns:"http://www.w3.org/2000/svg"},{width:"12"},{height:"13"},{fill:"none"},{"aria-hidden":"true"},{"data-testid":"chevron-light-icon"},{role:"img"},u&1&&s[0]]))},i(s){n||(d(r,s),n=!0)},o(s){_(r,s),n=!1},d(s){s&&k(e),r&&r.d(s)}}}function Y4(i,e,t){let{$$slots:n={},$$scope:o}=e;return i.$$set=r=>{t(0,e=oe(oe({},e),he(r))),"$$scope"in r&&t(1,o=r.$$scope)},e=he(e),[e,o,n]}var vu=class extends j{constructor(e){super(),W(this,e,Y4,Q4,U,{})}},fm=vu;function Z4(i){Te(i,"svelte-1yhs2ga",".text.svelte-1yhs2ga{padding:0 8px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.text.count.svelte-1yhs2ga{overflow:visible}.text.mobile.svelte-1yhs2ga{padding:0 3px 0 4px}.chevron-episodes.svelte-1yhs2ga{margin-bottom:-4px}")}function X4(i){let e,t,n,o;e=new cm({});function r(s,u){if(s[4]==="FULL")return $4;if(s[4]==="COUNT")return x4}let l=r(i,-1),a=l&&l(i);return{c(){D(e.$$.fragment),t=O(),a&&a.c(),n=st()},m(s,u){R(e,s,u),C(s,t,u),a&&a.m(s,u),C(s,n,u),o=!0},p(s,u){l===(l=r(s,u))&&a?a.p(s,u):(a&&a.d(1),a=l&&l(s),a&&(a.c(),a.m(n.parentNode,n)))},i(s){o||(d(e.$$.fragment,s),o=!0)},o(s){_(e.$$.fragment,s),o=!1},d(s){s&&(k(t),k(n)),B(e,s),a&&a.d(s)}}}function J4(i){let e,t,n,o,r,l;return r=new fm({}),{c(){e=P("span"),t=Be(i[2]),n=O(),o=P("div"),D(r.$$.fragment),c(e,"class","text mobile svelte-1yhs2ga"),c(o,"class","chevron-episodes svelte-1yhs2ga")},m(a,s){C(a,e,s),p(e,t),C(a,n,s),C(a,o,s),R(r,o,null),l=!0},p(a,s){(!l||s&4)&&Ze(t,a[2])},i(a){l||(d(r.$$.fragment,a),l=!0)},o(a){_(r.$$.fragment,a),l=!1},d(a){a&&(k(e),k(n),k(o)),B(r)}}}function x4(i){let e,t=i[0].length+"",n;return{c(){e=P("span"),n=Be(t),c(e,"class","text count svelte-1yhs2ga")},m(o,r){C(o,e,r),p(e,n)},p(o,r){r&1&&t!==(t=o[0].length+"")&&Ze(n,t)},d(o){o&&k(e)}}}function $4(i){let e,t;return{c(){e=P("span"),t=Be(i[2]),c(e,"class","text svelte-1yhs2ga")},m(n,o){C(n,e,o),p(e,t)},p(n,o){o&4&&Ze(t,n[2])},d(n){n&&k(e)}}}function ev(i){let e,t,n,o,r=[J4,X4],l=[];function a(s,u){return s[6]?0:1}return e=a(i,-1),t=l[e]=r[e](i),{c(){t.c(),n=st()},m(s,u){l[e].m(s,u),C(s,n,u),o=!0},p(s,u){let f=e;e=a(s,u),e===f?l[e].p(s,u):(ce(),_(l[f],1,1,()=>{l[f]=null}),fe(),t=l[e],t?t.p(s,u):(t=l[e]=r[e](s),t.c()),d(t,1),t.m(n.parentNode,n))},i(s){o||(d(t),o=!0)},o(s){_(t),o=!1},d(s){s&&k(n),l[e].d(s)}}}function tv(i){let e,t,n;function o(l){i[19](l)}let r={className:"w-max btn-full-opacity "+(i[6]?"px-0":""),testId:"btn-episodes",click:i[12],disabled:!i[7],ariaExpanded:i[3],ariaLabel:i[5],$$slots:{default:[ev]},$$scope:{ctx:i}};return i[1]!==void 0&&(r.ref=i[1]),e=new yt({props:r}),_e.push(()=>Fe(e,"ref",o)),{c(){D(e.$$.fragment)},m(l,a){R(e,l,a),n=!0},p(l,[a]){let s={};a&64&&(s.className="w-max btn-full-opacity "+(l[6]?"px-0":"")),a&8&&(s.ariaExpanded=l[3]),a&32&&(s.ariaLabel=l[5]),a&8388693&&(s.$$scope={dirty:a,ctx:l}),!t&&a&2&&(t=!0,s.ref=l[1],Oe(()=>t=!1)),e.$set(s)},i(l){n||(d(e.$$.fragment,l),n=!0)},o(l){_(e.$$.fragment,l),n=!1},d(l){B(e,l)}}}function iv(i,e,t){var H,L,x;let n,o,r,l,a,s,{position:u=0}=e,{duration:f=0}=e,{timeCodes:m=[]}=e,h=nt(),y=(L=(H=h.callbacks)==null?void 0:H.onEpisodeChanged)!=null?L:dm.noop,b=!!((x=h.callbacks)!=null&&x.onEpisodeClicked),S=h.ui.currentGridType$;F(i,S,G=>t(18,a=G));let w=h.ui.episodes.openedByKeyboard$;F(i,w,G=>t(17,l=G));let T=h.ui.episodes.panelOpened$;F(i,T,G=>t(3,r=G));let v=h.ui.isMobile;F(i,v,G=>t(6,s=G));let g,I=G=>{var E,te,M;if(!!((E=h.callbacks)!=null&&E.onEpisodeClicked)){let ee=sl(G);w.set(ee),T.set(!0),(M=(te=h.callbacks)==null?void 0:te.onEpisodeClicked)==null||M.call(te,ee)}},A,q,K,re=(G,J,E)=>ut(this,null,function*(){yield Gn(),(G==null?void 0:G.getAttribute("aria-expanded"))==="false"&&J&&!E&&(w.set(!1),G.focus())});function ae(G){g=G,t(1,g)}return i.$$set=G=>{"position"in G&&t(13,u=G.position),"duration"in G&&t(14,f=G.duration),"timeCodes"in G&&t(0,m=G.timeCodes)},i.$$.update=()=>{if(i.$$.dirty&24576)e:t(16,n=u/f);if(i.$$.dirty&114689)e:{let G=qr(n,f,m);G&&(A==null?void 0:A.text)!==G.text&&(y(G),t(15,A=G))}if(i.$$.dirty&32768)e:t(2,o=(A==null?void 0:A.text)||"");if(i.$$.dirty&262144)e:Rn(a,"xl")?t(4,q="FULL"):Rn(a,"m")&&qd(a,"xl")?t(4,q="COUNT"):t(4,q="SHORT");if(i.$$.dirty&4)e:t(5,K=`${Q("tooltip_episodes")}: ${o}`);if(i.$$.dirty&131082)e:re(g,l,r)},[m,g,o,r,q,K,s,b,S,w,T,v,I,u,f,A,n,l,a,ae]}var yu=class extends j{constructor(e){super(),W(this,e,iv,tv,U,{position:13,duration:14,timeCodes:0},Z4)}},jr=yu;function nv(i){let e,t,n,o,r=i[2].default,l=Ee(r,i,i[1],null),a=[{xmlns:"http://www.w3.org/2000/svg"},{width:"24"},{height:"24"},{fill:"none"},{"aria-hidden":"true"},{"data-testid":"seek-to-interactive-icon"},{role:"img"},i[0]],s={};for(let u=0;u<a.length;u+=1)s=oe(s,a[u]);return{c(){e=N("svg"),l&&l.c(),t=N("path"),n=N("path"),c(t,"fill","#fff"),c(t,"fill-rule","evenodd"),c(t,"d","M16.726 4.845C16.187 4.8 15.496 4.8 14.5 4.8H7.9a.9.9 0 1 1 0-1.8h6.639c.947 0 1.713 0 2.333.05.64.053 1.204.163 1.726.43a4.4 4.4 0 0 1 1.923 1.922c.266.523.377 1.087.429 1.726.05.62.05 1.386.05 2.334v5.076c0 .948 0 1.714-.05 2.334-.052.64-.163 1.203-.43 1.726a4.4 4.4 0 0 1-1.922 1.922c-.522.267-1.086.377-1.726.43-.62.05-1.386.05-2.333.05H7.9a.9.9 0 1 1 0-1.8h6.6c.995 0 1.687 0 2.226-.045.528-.043.828-.123 1.055-.238a2.6 2.6 0 0 0 1.136-1.137c.115-.226.195-.527.239-1.055.044-.538.044-1.23.044-2.225v-5c0-.995 0-1.687-.044-2.226-.043-.527-.124-.828-.239-1.054a2.6 2.6 0 0 0-1.136-1.137c-.227-.115-.527-.195-1.055-.238"),c(t,"clip-rule","evenodd"),c(n,"fill","#fff"),c(n,"d","M7.76 11.169V8.908c0-.708.704-1.143 1.252-.774l4.594 3.093c.525.353.525 1.193 0 1.546l-4.594 3.093c-.548.369-1.252-.066-1.252-.774v-2.261l-4.508 3.035C2.704 16.235 2 15.8 2 15.091V8.908c0-.708.704-1.143 1.252-.774z"),ge(e,s)},m(u,f){C(u,e,f),l&&l.m(e,null),p(e,t),p(e,n),o=!0},p(u,[f]){l&&l.p&&(!o||f&2)&&Ve(l,r,u,u[1],o?Me(r,u[1],f,null):Ae(u[1]),null),ge(e,s=Le(a,[{xmlns:"http://www.w3.org/2000/svg"},{width:"24"},{height:"24"},{fill:"none"},{"aria-hidden":"true"},{"data-testid":"seek-to-interactive-icon"},{role:"img"},f&1&&u[0]]))},i(u){o||(d(l,u),o=!0)},o(u){_(l,u),o=!1},d(u){u&&k(e),l&&l.d(u)}}}function ov(i,e,t){let{$$slots:n={},$$scope:o}=e;return i.$$set=r=>{t(0,e=oe(oe({},e),he(r))),"$$scope"in r&&t(1,o=r.$$scope)},e=he(e),[e,o,n]}var wu=class extends j{constructor(e){super(),W(this,e,ov,nv,U,{})}},mm=wu;function lv(i){let e,t;return e=new mm({}),{c(){D(e.$$.fragment)},m(n,o){R(e,n,o),t=!0},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){_(e.$$.fragment,n),t=!1},d(n){B(e,n)}}}function rv(i){let e,t,n;function o(l){i[4](l)}let r={className:i[1]?"hidden":"",testId:"btn-seek-to-interactive",ariaLabel:Q("tooltip_interactive_seek"),disabled:i[2],click:i[3],$$slots:{default:[lv]},$$scope:{ctx:i}};return i[0]!==void 0&&(r.ref=i[0]),e=new yt({props:r}),_e.push(()=>Fe(e,"ref",o)),{c(){D(e.$$.fragment)},m(l,a){R(e,l,a),n=!0},p(l,[a]){let s={};a&2&&(s.className=l[1]?"hidden":""),a&4&&(s.disabled=l[2]),a&8&&(s.click=l[3]),a&32&&(s.$$scope={dirty:a,ctx:l}),!t&&a&1&&(t=!0,s.ref=l[0],Oe(()=>t=!1)),e.$set(s)},i(l){n||(d(e.$$.fragment,l),n=!0)},o(l){_(e.$$.fragment,l),n=!1},d(l){B(e,l)}}}function sv(i,e,t){let{ref:n=void 0}=e,{hidden:o=!1}=e,{disabled:r=!1}=e,{click:l}=e;function a(s){n=s,t(0,n)}return i.$$set=s=>{"ref"in s&&t(0,n=s.ref),"hidden"in s&&t(1,o=s.hidden),"disabled"in s&&t(2,r=s.disabled),"click"in s&&t(3,l=s.click)},[n,o,r,l,a]}var ku=class extends j{constructor(e){super(),W(this,e,sv,rv,U,{ref:0,hidden:1,disabled:2,click:3})}},Wr=ku;function av(i){let e,t,n,o,r=i[2].default,l=Ee(r,i,i[1],null),a=[{xmlns:"http://www.w3.org/2000/svg"},{width:"24"},{height:"24"},{fill:"none"},{"aria-hidden":"true"},{role:"img"},i[0]],s={};for(let u=0;u<a.length;u+=1)s=oe(s,a[u]);return{c(){e=N("svg"),l&&l.c(),t=N("path"),n=N("path"),c(t,"fill","#fff"),c(t,"fill-rule","evenodd"),c(t,"d","M16.777 3h1.419c.31 0 .596 0 .834.02.258.02.539.068.817.21.397.2.72.523.923.918.141.277.19.557.21.814.02.237.02.521.02.83V7.19c0 .31 0 .594-.02.831-.02.256-.069.537-.21.813a2.1 2.1 0 0 1-.923.92c-.278.14-.56.188-.817.21-.238.019-.524.019-.834.019h-1.419c-.31 0-.596 0-.834-.02a2.15 2.15 0 0 1-.817-.21 2.1 2.1 0 0 1-.923-.919 2.1 2.1 0 0 1-.21-.813 8 8 0 0 1-.02-.63l-2.198-.002c-.495-.001-.81 0-1.05.018-.23.019-.309.05-.343.067a.8.8 0 0 0-.352.35c-.017.034-.049.113-.068.341-.02.24-.02.554-.02 1.046v5.57c0 .49 0 .804.02 1.043.019.228.05.306.068.34.077.15.2.273.35.35.035.017.113.049.342.067.24.02.555.021 1.048.022l2.203.003a8 8 0 0 1 .02-.627c.02-.256.069-.537.21-.813.203-.396.526-.718.923-.92.278-.14.56-.189.817-.21.238-.019.524-.019.834-.019h1.419c.31 0 .596 0 .834.02.258.02.539.068.817.21.397.201.72.523.923.919.141.276.19.557.21.813.02.237.02.522.02.831v1.397c0 .31 0 .594-.02.831-.02.256-.069.537-.21.814a2.1 2.1 0 0 1-.923.919c-.278.14-.56.189-.817.21-.238.019-.524.019-.834.019h-1.419c-.31 0-.596 0-.834-.02a2.15 2.15 0 0 1-.817-.21 2.1 2.1 0 0 1-.923-.918 2.1 2.1 0 0 1-.21-.814 8 8 0 0 1-.02-.63l-2.24-.002c-.449 0-.839-.001-1.16-.028-.341-.028-.684-.09-1.016-.259a2.6 2.6 0 0 1-1.14-1.137c-.17-.33-.231-.672-.259-1.011-.026-.321-.026-.71-.026-1.156v-1.921H2.905A.903.903 0 0 1 2 11.992c0-.498.405-.901.905-.901h5.227V9.177c0-.448 0-.837.026-1.159.028-.34.09-.682.26-1.013a2.6 2.6 0 0 1 1.144-1.138c.332-.168.676-.23 1.017-.257.323-.025.714-.025 1.164-.024l2.23.003a8 8 0 0 1 .02-.627c.02-.257.069-.537.21-.814.203-.395.526-.717.923-.919.278-.14.56-.189.817-.21C16.18 3 16.467 3 16.777 3m-.833 1.837a1 1 0 0 1 .146-.02 10 10 0 0 1 .72-.014h1.354c.353 0 .563 0 .719.013a1 1 0 0 1 .146.021.3.3 0 0 1 .126.126 1 1 0 0 1 .021.145c.013.156.014.365.014.716v1.334c0 .352 0 .561-.014.716a1 1 0 0 1-.02.146.3.3 0 0 1-.127.125 1 1 0 0 1-.146.022c-.156.012-.366.013-.719.013H16.81c-.353 0-.563 0-.719-.013a1 1 0 0 1-.146-.022.3.3 0 0 1-.126-.125 1 1 0 0 1-.021-.146 10 10 0 0 1-.014-.716V5.824c0-.351.001-.56.014-.716a1 1 0 0 1 .021-.145.3.3 0 0 1 .126-.126Zm0 11.018a1 1 0 0 1 .146-.022c.156-.012.366-.013.72-.013h1.354c.353 0 .563 0 .719.013a1 1 0 0 1 .146.022.3.3 0 0 1 .126.125 1 1 0 0 1 .021.146c.013.155.014.364.014.716v1.334c0 .351 0 .56-.014.716a1 1 0 0 1-.02.145.3.3 0 0 1-.127.126 1 1 0 0 1-.146.02c-.156.014-.366.014-.719.014H16.81c-.353 0-.563 0-.719-.013a1 1 0 0 1-.146-.021.3.3 0 0 1-.126-.126 1 1 0 0 1-.021-.145 10 10 0 0 1-.014-.716v-1.334c0-.352.001-.561.014-.716a1 1 0 0 1 .021-.146.3.3 0 0 1 .126-.125Z"),c(t,"clip-rule","evenodd"),c(n,"fill","#fff"),c(n,"fill-rule","evenodd"),c(n,"d","M15.2 5.899v1.203c0 .594 0 .892.115 1.119.102.2.265.362.464.463.227.116.525.116 1.12.116H18.1c.595 0 .892 0 1.12-.116.199-.101.361-.264.463-.463.116-.227.116-.525.116-1.12V5.9c0-.595 0-.892-.116-1.12a1.06 1.06 0 0 0-.464-.463c-.227-.116-.524-.116-1.119-.116h-1.203c-.594 0-.892 0-1.119.116-.2.102-.362.264-.464.464-.115.227-.115.524-.115 1.119Zm-.051 11.03v1.143c0 .605 0 .908.118 1.139.103.203.268.368.472.472.23.117.533.117 1.138.117H18.1c.605 0 .907 0 1.138-.117a1.08 1.08 0 0 0 .472-.472c.118-.231.118-.534.118-1.139v-1.144c0-.605 0-.907-.118-1.138a1.08 1.08 0 0 0-.472-.472c-.231-.118-.534-.118-1.138-.118h-1.224c-.605 0-.907 0-1.138.118a1.08 1.08 0 0 0-.472.472c-.118.23-.118.533-.118 1.138Z"),c(n,"class","_closed"),c(n,"clip-rule","evenodd"),ge(e,s)},m(u,f){C(u,e,f),l&&l.m(e,null),p(e,t),p(e,n),o=!0},p(u,[f]){l&&l.p&&(!o||f&2)&&Ve(l,r,u,u[1],o?Me(r,u[1],f,null):Ae(u[1]),null),ge(e,s=Le(a,[{xmlns:"http://www.w3.org/2000/svg"},{width:"24"},{height:"24"},{fill:"none"},{"aria-hidden":"true"},{role:"img"},f&1&&u[0]]))},i(u){o||(d(l,u),o=!0)},o(u){_(l,u),o=!1},d(u){u&&k(e),l&&l.d(u)}}}function uv(i,e,t){let{$$slots:n={},$$scope:o}=e;return i.$$set=r=>{t(0,e=oe(oe({},e),he(r))),"$$scope"in r&&t(1,o=r.$$scope)},e=he(e),[e,o,n]}var Cu=class extends j{constructor(e){super(),W(this,e,uv,av,U,{})}},pm=Cu;function cv(i){Te(i,"svelte-17ceof5",'svg[data-testid="graph-open-icon"] ._closed{visibility:hidden;opacity:0}')}function fv(i){let e,t;return e=new pm({props:{"data-testid":i[0]?"graph-close-icon":"graph-open-icon"}}),{c(){D(e.$$.fragment)},m(n,o){R(e,n,o),t=!0},p(n,[o]){let r={};o&1&&(r["data-testid"]=n[0]?"graph-close-icon":"graph-open-icon"),e.$set(r)},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){_(e.$$.fragment,n),t=!1},d(n){B(e,n)}}}function dv(i,e,t){let{isOpened:n=!1}=e;return i.$$set=o=>{"isOpened"in o&&t(0,n=o.isOpened)},[n]}var Su=class extends j{constructor(e){super(),W(this,e,dv,fv,U,{isOpened:0},cv)}},_m=Su;function mv(i){let e,t;return e=new _m({props:{isOpened:i[3]}}),{c(){D(e.$$.fragment)},m(n,o){R(e,n,o),t=!0},p(n,o){let r={};o&8&&(r.isOpened=n[3]),e.$set(r)},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){_(e.$$.fragment,n),t=!1},d(n){B(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:[mv]},$$scope:{ctx:i}};return i[0]!==void 0&&(r.ref=i[0]),e=new yt({props:r}),_e.push(()=>Fe(e,"ref",o)),{c(){D(e.$$.fragment)},m(l,a){R(e,l,a),n=!0},p(l,[a]){let s={};a&2&&(s.className=l[1]?"hidden":""),a&4&&(s.disabled=l[2]),a&32&&(s.ariaLabel=l[5]),a&16&&(s.click=l[4]),a&136&&(s.$$scope={dirty:a,ctx:l}),!t&&a&1&&(t=!0,s.ref=l[0],Oe(()=>t=!1)),e.$set(s)},i(l){n||(d(e.$$.fragment,l),n=!0)},o(l){_(e.$$.fragment,l),n=!1},d(l){B(e,l)}}}function _v(i,e,t){let{ref:n=void 0}=e,{hidden:o=!1}=e,{disabled:r=!1}=e,{graphIsOpened:l=!1}=e,{click:a}=e,s;function u(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,a=f.click)},i.$$.update=()=>{if(i.$$.dirty&8)e:t(5,s=l?Q("tooltip_interactive_graph_on"):Q("tooltip_interactive_graph_off"))},[n,o,r,l,a,s,u]}var Tu=class extends j{constructor(e){super(),W(this,e,_v,pv,U,{ref:0,hidden:1,disabled:2,graphIsOpened:3,click:4})}},Gr=Tu;function hv(i){let e,t,n,o=i[2].default,r=Ee(o,i,i[1],null),l=[{xmlns:"http://www.w3.org/2000/svg"},{width:"24"},{height:"24"},{fill:"none"},{"aria-hidden":"true"},{"data-testid":"replay-icon"},{role:"img"},i[0]],a={};for(let s=0;s<l.length;s+=1)a=oe(a,l[s]);return{c(){e=N("svg"),r&&r.c(),t=N("path"),c(t,"fill","#fff"),c(t,"d","M12 9.096a.4.4 0 0 1-.67.296L7.044 5.493a.67.67 0 0 1 0-.986L11.33.608a.4.4 0 0 1 .67.296V4a8 8 0 1 1-8 8 1 1 0 1 1 2 0 6 6 0 1 0 6-6z"),ge(e,a)},m(s,u){C(s,e,u),r&&r.m(e,null),p(e,t),n=!0},p(s,[u]){r&&r.p&&(!n||u&2)&&Ve(r,o,s,s[1],n?Me(o,s[1],u,null):Ae(s[1]),null),ge(e,a=Le(l,[{xmlns:"http://www.w3.org/2000/svg"},{width:"24"},{height:"24"},{fill:"none"},{"aria-hidden":"true"},{"data-testid":"replay-icon"},{role:"img"},u&1&&s[0]]))},i(s){n||(d(r,s),n=!0)},o(s){_(r,s),n=!1},d(s){s&&k(e),r&&r.d(s)}}}function gv(i,e,t){let{$$slots:n={},$$scope:o}=e;return i.$$set=r=>{t(0,e=oe(oe({},e),he(r))),"$$scope"in r&&t(1,o=r.$$scope)},e=he(e),[e,o,n]}var Pu=class extends j{constructor(e){super(),W(this,e,gv,hv,U,{})}},Qr=Pu;var gm=require("@vkontakte/videoplayer-shared");function bv(i){Te(i,"svelte-1ot3duq",".mobile.svelte-1ot3duq{position:relative;display:flex;align-items:center;justify-content:center}.mobile.svelte-1ot3duq svg{transform:scale(2)}.icon-background-mobile.svelte-1ot3duq{position:absolute;top:16px;left:16px;border-radius:var(--big-play-radius);background-color:var(--big-play-bg-color);width:calc(100% - 32px);height:calc(100% - 32px)}")}function hm(i){let e;return{c(){e=P("div"),c(e,"class","icon-background-mobile svelte-1ot3duq")},m(t,n){C(t,e,n)},d(t){t&&k(e)}}}function vv(i){let e,t,n,o,r=i[1]&&hm(i);return n=new Qr({}),{c(){r&&r.c(),e=O(),t=P("div"),D(n.$$.fragment),c(t,"class","svelte-1ot3duq"),z(t,"mobile",i[1])},m(l,a){r&&r.m(l,a),C(l,e,a),C(l,t,a),R(n,t,null),o=!0},p(l,a){l[1]?r||(r=hm(l),r.c(),r.m(e.parentNode,e)):r&&(r.d(1),r=null),(!o||a&2)&&z(t,"mobile",l[1])},i(l){o||(d(n.$$.fragment,l),o=!0)},o(l){_(n.$$.fragment,l),o=!1},d(l){l&&(k(e),k(t)),r&&r.d(l),B(n)}}}function yv(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:Q("tooltip_restart"),disabled:i[2],click:i[4],ariaKeyShortCut:xn.KeyK,$$slots:{default:[vv]},$$scope:{ctx:i}};return i[0]!==void 0&&(r.ref=i[0]),e=new yt({props:r}),_e.push(()=>Fe(e,"ref",o)),{c(){D(e.$$.fragment)},m(l,a){R(e,l,a),n=!0},p(l,[a]){let s={};a&10&&(s.className=(l[1]?"btn-m--play":"")+" "+l[3]),a&4&&(s.disabled=l[2]),a&16&&(s.click=l[4]),a&66&&(s.$$scope={dirty:a,ctx:l}),!t&&a&1&&(t=!0,s.ref=l[0],Oe(()=>t=!1)),e.$set(s)},i(l){n||(d(e.$$.fragment,l),n=!0)},o(l){_(e.$$.fragment,l),n=!1},d(l){B(e,l)}}}function wv(i,e,t){let{ref:n=void 0}=e,{isMobile:o=!1}=e,{disabled:r=!1}=e,{className:l=""}=e,{click:a=gm.noop}=e;function s(u){n=u,t(0,n)}return i.$$set=u=>{"ref"in u&&t(0,n=u.ref),"isMobile"in u&&t(1,o=u.isMobile),"disabled"in u&&t(2,r=u.disabled),"className"in u&&t(3,l=u.className),"click"in u&&t(4,a=u.click)},[n,o,r,l,a,s]}var Iu=class extends j{constructor(e){super(),W(this,e,wv,yv,U,{ref:0,isMobile:1,disabled:2,className:3,click:4},bv)}},Hl=Iu;function kv(i){let e,t,n,o=i[2].default,r=Ee(o,i,i[1],null),l=[{xmlns:"http://www.w3.org/2000/svg"},{width:"24"},{height:"24"},{fill:"none"},{"data-testid":"play-prev-chapter-icon"},{role:"img"},i[0]],a={};for(let s=0;s<l.length;s+=1)a=oe(a,l[s]);return{c(){e=N("svg"),r&&r.c(),t=N("path"),c(t,"fill","#fff"),c(t,"d","M12.583 12.917v2.496a1 1 0 0 1-1.522.853l-5.583-3.413a1 1 0 0 1 0-1.706l5.583-3.413a1 1 0 0 1 1.522.853v2.496l5.478-3.349a1 1 0 0 1 1.522.853v6.826a1 1 0 0 1-1.522.853z"),ge(e,a)},m(s,u){C(s,e,u),r&&r.m(e,null),p(e,t),n=!0},p(s,[u]){r&&r.p&&(!n||u&2)&&Ve(r,o,s,s[1],n?Me(o,s[1],u,null):Ae(s[1]),null),ge(e,a=Le(l,[{xmlns:"http://www.w3.org/2000/svg"},{width:"24"},{height:"24"},{fill:"none"},{"data-testid":"play-prev-chapter-icon"},{role:"img"},u&1&&s[0]]))},i(s){n||(d(r,s),n=!0)},o(s){_(r,s),n=!1},d(s){s&&k(e),r&&r.d(s)}}}function Cv(i,e,t){let{$$slots:n={},$$scope:o}=e;return i.$$set=r=>{t(0,e=oe(oe({},e),he(r))),"$$scope"in r&&t(1,o=r.$$scope)},e=he(e),[e,o,n]}var Eu=class extends j{constructor(e){super(),W(this,e,Cv,kv,U,{})}},bm=Eu;function Sv(i){let e,t;return e=new bm({}),{c(){D(e.$$.fragment)},m(n,o){R(e,n,o),t=!0},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){_(e.$$.fragment,n),t=!1},d(n){B(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:Q("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 yt({props:r}),_e.push(()=>Fe(e,"ref",o)),{c(){D(e.$$.fragment)},m(l,a){R(e,l,a),n=!0},p(l,[a]){let s={};a&2&&(s.className=l[1]?"hidden":""),a&4&&(s.disabled=l[2]),a&8&&(s.click=l[3]),a&32&&(s.$$scope={dirty:a,ctx:l}),!t&&a&1&&(t=!0,s.ref=l[0],Oe(()=>t=!1)),e.$set(s)},i(l){n||(d(e.$$.fragment,l),n=!0)},o(l){_(e.$$.fragment,l),n=!1},d(l){B(e,l)}}}function Pv(i,e,t){let{ref:n=void 0}=e,{hidden:o=!1}=e,{disabled:r=!1}=e,{click:l}=e;function a(s){n=s,t(0,n)}return i.$$set=s=>{"ref"in s&&t(0,n=s.ref),"hidden"in s&&t(1,o=s.hidden),"disabled"in s&&t(2,r=s.disabled),"click"in s&&t(3,l=s.click)},[n,o,r,l,a]}var Mu=class extends j{constructor(e){super(),W(this,e,Pv,Tv,U,{ref:0,hidden:1,disabled:2,click:3})}},Yr=Mu;var Vu=require("@vkontakte/videoplayer-shared");function Iv(i){Te(i,"svelte-1x1zctw",".icon.svelte-1x1zctw{width:24px !important;height:24px !important;;}.error-stub.svelte-1x1zctw{display:flex;justify-content:center;align-items:center}.inner.svelte-1x1zctw{width:16px;height:16px;background-color:var(--white)}")}function Ev(i){let e,t,n,o;return{c(){e=P("img"),c(e,"class","icon svelte-1x1zctw"),Ps(e.src,t=i[0])||c(e,"src",t),c(e,"aria-hidden","true")},m(r,l){C(r,e,l),n||(o=de(e,"error",i[7]),n=!0)},p(r,l){l&1&&!Ps(e.src,t=r[0])&&c(e,"src",t)},d(r){r&&k(e),n=!1,o()}}}function Mv(i){let e;return{c(){e=P("div"),e.innerHTML='<div class="inner svelte-1x1zctw"></div>',c(e,"class","icon error-stub svelte-1x1zctw")},m(t,n){C(t,e,n)},p:pe,d(t){t&&k(e)}}}function Vv(i){let e;function t(r,l){return r[5]?Mv:Ev}let n=t(i,-1),o=n(i);return{c(){o.c(),e=st()},m(r,l){o.m(r,l),C(r,e,l)},p(r,l){n===(n=t(r,l))&&o?o.p(r,l):(o.d(1),o=n(r),o&&(o.c(),o.m(e.parentNode,e)))},d(r){r&&k(e),o.d(r)}}}function Av(i){let e,t;return e=new yt({props:{className:i[4]?"btn-full-opacity":"",ariaLabel:i[1],click:i[3],disabled:i[6],testId:i[2],$$slots:{default:[Vv]},$$scope:{ctx:i}}}),{c(){D(e.$$.fragment)},m(n,o){R(e,n,o),t=!0},p(n,[o]){let r={};o&16&&(r.className=n[4]?"btn-full-opacity":""),o&2&&(r.ariaLabel=n[1]),o&8&&(r.click=n[3]),o&64&&(r.disabled=n[6]),o&4&&(r.testId=n[2]),o&545&&(r.$$scope={dirty:o,ctx:n}),e.$set(r)},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){_(e.$$.fragment,n),t=!1},d(n){B(e,n)}}}function Lv(i,e,t){let n,o,r,{iconUrl:l}=e,{ariaLabel:a}=e,{disabled:s=!1}=e,{testId:u}=e,{onClick:f=Vu.noop}=e,m=()=>{t(5,r=!0)};i.$$set=h=>{"iconUrl"in h&&t(0,l=h.iconUrl),"ariaLabel"in h&&t(1,a=h.ariaLabel),"disabled"in h&&t(8,s=h.disabled),"testId"in h&&t(2,u=h.testId),"onClick"in h&&t(3,f=h.onClick)},i.$$.update=()=>{if(i.$$.dirty&8)e:t(4,n=f===Vu.noop);if(i.$$.dirty&272)e:t(6,o=n||s)};e:t(5,r=!1);return[l,a,u,f,n,r,o,m,s]}var Au=class extends j{constructor(e){super(),W(this,e,Lv,Av,U,{iconUrl:0,ariaLabel:1,disabled:8,testId:2,onClick:3},Iv)}},Zr=Au;var Km=require("@vkontakte/videoplayer-shared");var pn=require("@vkontakte/videoplayer-core"),YE=require("@vkontakte/videoplayer-shared"),pt=require("@vkontakte/videoplayer-shared"),so=require("@vkontakte/videoplayer-statistics"),ZE=require("@vkontakte/videoplayer-interactive");var Ht=require("@vkontakte/videoplayer-shared");var vm=(i,e)=>i<400||e<225?5:i<640||e<360?0:i<960||e<540?1:i<1280||e<720?2:3;var Rv="//ad.mail.ru/static/admanhtml/rbadman-html5.min.js",Xr=class{constructor(e,t){this.adman=null;this.initialVolume=1;this.videoElement=null;this.currentAdSection=null;this.actions=null;this.adsState=null;this.playerState=null;this.events={slotRequested$:new Ht.Subject,started$:new Ht.Subject,paused$:new Ht.Subject,resumed$:new Ht.Subject,ended$:new Ht.Subject,skipped$:new Ht.Subject,clicked$:new Ht.Subject};this.loadAdman=e=>new Promise((t,n)=>{let o,r=()=>{clearTimeout(o),delete window.admanAsyncInit,window.AdmanHTML?t():n()};(0,Ht.addScript)(Rv,e,this.loadTimeout).then(()=>{window.AdmanHTML?t():(window.admanAsyncInit=r,o=window.setTimeout(r,this.initTimeout))}).catch(()=>{n()})});this.onAdsReady=()=>{this.log({message:"ads ready"}),this.startPreroll()};this.onAdStarted=(e,t)=>{(0,Ht.assertNonNullable)(this.adsState),(0,Ht.assertNonNullable)(this.playerState),(0,Ht.assertNonNullable)(this.actions),this.log({message:`ad started, section: ${e}, banner: ${JSON.stringify(t)}`}),this.events.started$.next(e),t.muted&&(this.setVolume(0),this.actions.setMuted(!0),this.log({message:"ad muted start"}),it(this.playerState.isMobile)&&this.playerState.mobileUnmuteButtonVisible.set(!0)),this.adsState.duration.set(t.duration),this.adsState.playbackState.set("playing"),this.adsState.canSkip.set(t.allowClose),this.adsState.secondsToWatchBeforeSkip.set(t.allowCloseDelay)};this.onAdTimeRemained=({currentTime:e})=>{(0,Ht.assertNonNullable)(this.adsState),this.adsState.position.set(e)};this.onAdPaused=()=>{(0,Ht.assertNonNullable)(this.adsState),this.log({message:"ad paused"}),this.adsState.playbackState.set("paused")};this.onAdPlayed=()=>{(0,Ht.assertNonNullable)(this.adsState),this.log({message:"ad played"}),this.adsState.playbackState.set("playing")};this.onAdMidrollPoint=()=>{(0,Ht.assertNonNullable)(this.adman),(0,Ht.assertNonNullable)(this.actions),this.log({message:"midroll point"}),this.actions.switchFromVideoToAds(),this.currentAdSection="midroll",this.adman.start("midroll")};this.onAdSkipped=()=>{this.log({message:"ad skipped"}),this.switchToVideo()};this.onAdClosed=()=>{this.log({message:"ad closed"}),this.switchToVideo()};this.onAdCompleted=()=>{this.log({message:"ad completed"}),this.events.ended$.next(),this.switchToVideo()};this.onAdClicked=()=>{var e;this.log({message:"ad clicked"}),(e=this.videoElement)==null||e.pause(),this.events.clicked$.next()};this.onAdError=()=>{this.log({message:"ad error"}),this.switchToVideo(!0)};this.log=e.createComponentLog("AdmanWrapper"),this.loadTimeout=t.loadTimeout,this.initTimeout=t.initTimeout}init(e,t,n){this.actions=e,this.adsState=t,this.playerState=n}onAdmanLoadingError(){this.log({message:"adman loading error"}),this.switchToVideo(!0)}initAdman(e){let{width:t,height:n,isFullscreen:o,isAutoplay:r,adsContainer:l,adsVideoElement:a,slotId:s,params:u={},duration:f,previewParam:m}=e,h,y=this.playerState&&it(this.playerState.vsid);y&&(h=parseInt(y,36));let b=ot(Dt(ot({dl:encodeURIComponent(window.location.href),autoplay:r,player_width:t,player_height:n,puid10:vm(t,n),puid11:o?0:1,preview:m},h?{request_id:h}:{}),{duration:f}),u),S={slot:s,wrapper:l,videoEl:a,videoQuality:n,params:b,browser:{mobile:!1}},w=new window.AdmanHTML;w.setDebug(!1),w.onReady(this.onAdsReady),w.onStarted(this.onAdStarted),w.onPlayed(this.onAdPlayed),w.onPaused(this.onAdPaused),w.adMidrollPoint(this.onAdMidrollPoint),w.onClosed(this.onAdClosed),w.onSkipped(this.onAdSkipped),w.onClicked(this.onAdClicked),w.onTimeRemained(this.onAdTimeRemained),w.onCompleted(this.onAdCompleted),w.onError(this.onAdError),w.init(S),this.adman=w,this.videoElement=a,this.events.slotRequested$.next(),this.log({message:`adman init, config: ${JSON.stringify(S)}`})}switchToVideo(e=!1){if(this.currentAdSection===null&&!e){this.log({message:"switch to video, no currentAdSection. can't switch"});return}(0,Ht.assertNonNullable)(this.actions),(0,Ht.assertNonNullable)(this.adsState),(0,Ht.assertNonNullable)(this.playerState);let t=this.currentAdSection==="postroll";this.adsState.playbackState.set("inactive"),this.currentAdSection=null,this.playerState.mobileUnmuteButtonVisible.set(!1),this.log({message:`switch to video, isPostroll: ${t}`}),t&&(this.adsState.postrollPassed.set(!0),this.log({message:"postroll passed"})),this.actions.switchFromAdsToVideo(!t)}togglePlay(){(0,Ht.assertNonNullable)(this.adsState),this.log({message:"toggle play"});let e=it(this.adsState.playbackState);e==="playing"?this.pause():e==="paused"&&this.play()}setInitialVolume(e){this.log({message:`set initial volume ${e}`}),this.initialVolume=e}setVolume(e){var t;this.log({message:`set volume ${e}`}),(t=this.adman)==null||t.setVolume(e),this.videoElement&&(this.videoElement.volume=e)}setFullscreen(e){var t;this.log({message:`set fullscreen ${e}`}),(t=this.adman)==null||t.setFullscreen(e)}startPreroll(){(0,Ht.assertNonNullable)(this.adman),this.log({message:"start preroll"}),this.setVolume(this.initialVolume),this.currentAdSection="preroll",this.adman.start("preroll")}startPostroll(){(0,Ht.assertNonNullable)(this.adman),(0,Ht.assertNonNullable)(this.actions),this.log({message:"start postroll"}),this.actions.switchFromVideoToAds(),this.currentAdSection="postroll",this.adman.start("postroll")}play(){(0,Ht.assertNonNullable)(this.adman),this.log({message:"ad play"}),this.adman.resume(),this.events.resumed$.next()}pause(){(0,Ht.assertNonNullable)(this.adman),this.log({message:"ad pause"}),this.adman.pause(),this.events.paused$.next()}skip(){(0,Ht.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.setPosition(Math.floor(e),Math.floor(t))}destroy(){var e;this.log({message:"destroy"}),(e=this.adman)==null||e.destroy()}};var ym=i=>{let e=Math.round(i);return isNaN(e)||e<40?"":e>=40&&e<55?50:e>=55&&e<90?60:e>=90&&e<180?120:e>=180?240:""};var Lu=class{constructor(){this.oneLineRegExp=/\r\n|\n|\r/;this.twoLinesRegExp=/\r\n\r\n|\n\n|\r\r/}parse(e){let t=[],n=e.split(this.twoLinesRegExp);for(let o of n){let r={startTime:0,endTime:0,texts:[],lang:""},l=o.split(this.oneLineRegExp);for(let a of l)if(!r.startTime&&!r.endTime){let s=new Jr,{startTime:u,endTime:f}=s.parse(a);r.startTime=u,r.endTime=f}else if(a.trim()!==""){let s=new Ru,{texts:u}=s.parse(a);r.texts=[...r.texts,...u]}(r.startTime||r.endTime)&&r.texts.length>0&&t.push(r)}return t}},Jr=class{constructor(){this.timeRegExp=/(\d{2})?:?(\d{2}):(\d{2}).(\d{2,3})/;this.timingRegExp=new RegExp(`${this.timeRegExp.source}( ?--> ?)${this.timeRegExp.source}`)}parse(e){let t={startTime:0,endTime:0},n=this.timingRegExp.exec(e);return n&&(t.startTime=this.calcTime(n[1],n[2],n[3],n[4]),t.endTime=this.calcTime(n[6],n[7],n[8],n[9])),t}parseTime(e){let t=this.timeRegExp.exec(e);return t?this.calcTime(t[1],t[2],t[3],t[4]):0}isTime(e){return this.timeRegExp.test(e)}calcTime(e="0",t="0",n="0",o="0"){let r=Number(e)*60*60,l=Number(t)*60,a=Number(n),s=+`0.${o}`;return r+l+a+s}},Ru=class{constructor(){this.letterTagRegExp=/<[a-z]*>|<\/[a-z]*>/}parse(e){let t={texts:[]},o=e.replace(new RegExp(this.letterTagRegExp,"g"),"").split({[Symbol.split](l){let a=0,s=[];for(;a<l.length;){let u=["<",">"].reduce((f,m)=>{let h=l.indexOf(m,a);return f===-1||f>h?h:f},-1);if(u===-1){s.push(l.substring(a));break}s.push(l.substring(a,u)),a=u+1}return s}}),r=new Jr;for(let l of o)r.isTime(l)?t.texts.push({type:"timestamp",value:r.parseTime(l)}):t.texts.push({type:"text",value:l});return t}},wm=Lu;var xr=require("@vkontakte/videoplayer-shared");var wo,Jt,Bu=0,Du=!1,km=(i,e,t)=>{var u;let n=i>=Bu,o=i<Bu,r=(f,m=0,h=0)=>f<m&&f<h,l=(f,m=0,h=0)=>f>=m&&f<=h,a=(f,m=0,h=0)=>f>m&&f>h,s=(u=t.find(({lang:f})=>f===e.value))==null?void 0:u.subtitles;if(Bu=i,o&&(Du=!1),(0,xr.isNonNullable)(wo)&&l(i,wo.startTime,wo.endTime)&&wo.lang===e.value)return wo;if(!(0,xr.isNonNullable)(Jt)&&(s!=null&&s.length)&&!Du){let f=s.find(({startTime:m,endTime:h})=>l(i,m,h)||n&&r(i,m,h));Jt=f&&Dt(ot({},f),{lang:e.value}),wo=void 0,!(0,xr.isNonNullable)(Jt)&&s[s.length-1].endTime<i&&(Du=!0);return}else{if(l(i,Jt==null?void 0:Jt.startTime,Jt==null?void 0:Jt.endTime))return wo=Jt,Jt=void 0,wo;(n&&a(i,Jt==null?void 0:Jt.startTime,Jt==null?void 0:Jt.endTime)||o&&r(i,Jt==null?void 0:Jt.startTime,Jt==null?void 0:Jt.endTime))&&(Jt=void 0)}};var $r={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"};var Cm=require("@vkontakte/videoplayer-shared"),Sm=require("@vkontakte/videoplayer-statistics"),es=class{constructor(e,t){this.oneStat=new Sm.OneStat(e,t),this.statSubscription=new Cm.Subscription}destroy(){this.oneStat.destroy(),this.statSubscription.unsubscribe()}};var Tm=({interfaceLanguage:i,videoId:e,isClip:t,isLiveCatchUpMode:n,statAuthToken:o,isAudioDisabled:r,canDownload:l,callbacks:a,webApi:s,videoEpisodes:u,previewThumbsData:f,uiConfig:m,coreConfig:h,player:y,disabledControls:b,isInteractive:S,interactiveRanges$:w,isInteractiveTime$:T,replayInteractive:v,hasInteractiveBranches:g,playPrevChapterDisabledTooltip:I,additionalButtons:A,looped:q=!1,statistics:K,saveRate:re})=>{var Io,Y,Ct,mn;let ae=Dt(ot({},h),{configName:[...(Io=h.configName)!=null?Io:[],"ui"],isAudioDisabled:r,live:Dt(ot({},(Y=h.live)!=null?Y:{}),{isLiveCatchUpMode:!!n})}),H=m,L=y||new pn.Player(ae),x=new pt.Logger,G=new Xr(x,{loadTimeout:H.ads.loadTimeout,initTimeout:H.ads.initTimeout}),J=No.getInstance(),E=s==null?void 0:s.pictureInPictureApi,te=s==null?void 0:s.annotationsApi,M=x.createComponentLog("Store"),ee,ke,Ge={},Ke=(0,pt.getCurrentBrowser)(),Je=K?At(K.oneStat.vsid$):On(void 0),We=De(_o()),ve=(Ct=E==null?void 0:E.info.isActive$)!=null?Ct:new pt.ValueSubject(!1),X=E==null?void 0:E.info.type,be=De(0),Ne=De([]),xe=(0,pt.merge)(L.events.fatalError$,L.events.managedError$).subscribe(V=>Ne.update(le=>[...le,V])),et=On(!1,V=>{let le=L.events.fatalError$.subscribe(()=>V(!0));return()=>le.unsubscribe()}),ye=V=>ut(void 0,null,function*(){var He;let le=Object.values(pt.InterfaceLanguage).includes(V);if(H.downloadVKLanguages&&(le&&H.updateBuiltinLanguages||!Fs(V))){let at;try{at=yield(0,pt.loadVKLangPack)(V,lf,rf)}catch(St){(He=K==null?void 0:K.oneStat)==null||He.logError({errorType:"VKLangPack",fatal:!1}),J==null||J.report(St,{errorType:"VKLangPack",fatal:!1})}at&&(Os({language:V,pack:at,fallback:H.defaultLanguage}),Re.set(V))}Fs(V)&&Re.set(V)}),Re=De(i);ye(i);let je=(V,le)=>{let Se=it(Re);return Hs(Se,V,le,H.defaultLanguage)},Xe=De("thumb"),Ce=(()=>{let V=Ai([et,Xe],([le,Se])=>le?"crashed":Se);return Dt(ot({},V),{is:le=>it(V)===le})})(),Z=(()=>{let V=De(new Set(b));return Dt(ot({},V),{add:le=>{V.update(Se=>new Set([...Se].concat(le)))},remove:le=>{V.update(Se=>{let He=[...Se];return new Set(Array.isArray(le)?He.filter(at=>!le.includes(at)):He.filter(at=>at!==le))})},includes:le=>{let Se=it(V);return Array.isArray(le)?le.every(He=>Se.has(He)):Se.has(le)}})})();M({message:"create store"});let Pe=V=>{let le=V.container;le.append(L.experimental.element$.getValue()),bt=new MutationObserver(Se=>{let{removedNodes:He}=Se[0];He.length&&le.append(L.experimental.element$.getValue())}),bt.observe(le,{childList:!0})},ue=V=>{M({message:`init video, config: ${JSON.stringify(V)}`}),S?Pe(V):L.initVideo(V),V.subtitles&&L.setExternalTextTracks(V.subtitles),ee=V},Ie=new pt.Subject,Ye=V=>Ie.next(V),ft=new pt.Subject,mt=new pt.Subject,dt=new pt.Subject,bt=null,wt={actionRewind$:ft,actionSeek$:mt,inPiP$:ve,inFullscreen$:new pt.Observable(V=>We.subscribe(le=>V.next(le))),actionSetSubtitle$:dt,nextMovie$:Ie};if(K){let{oneStat:V,statSubscription:le}=K;le.add(V.attachTo(L)),le.add(V.attachToUi(wt)),le.add(V.attachToAds(G.events)),V.authorize(o).catch(Se=>{M({message:`onestat auth error ${String(Se)}`})})}if(J){let V=new pt.Subscription,le=(Se,He)=>V.add(Se.subscribe(He));if(le(L.events.managedError$,Se=>{J.logIError(Se)}),le(L.events.fatalError$,Se=>{J.logIError(Se,!0)}),K){let{oneStat:Se}=K;le(Se.experimental.error$,He=>{J.logIError(He)})}J.sentrySubscription.add(V)}let we=()=>{(0,pt.isIOS)()&&ke&&Ff(ke)},vt=new pt.Subscription().add(L.experimental.element$.subscribe(V=>{V&&(ke=V,V.classList.add("player-media"),Fo(E)&&(E.updateVideoElement(),E.registryEventHandlers()),S&&V.setAttribute("pip","false"))})).add(L.events.ended$.subscribe(()=>{var V;we(),(V=a==null?void 0:a.onEnded)==null||V.call(a)})).add(L.events.started$.subscribe(()=>ut(void 0,null,function*(){var le,Se;Fo(E)&&(yield E==null?void 0:E.revealPictureInPicture());let V=L.info.muted$.getValue();(le=a==null?void 0:a.onStarted)==null||le.call(a),(Se=Ge.onStarted)==null||Se.call(Ge,V)}))).add(L.events.willSeek$.subscribe(({from:V,to:le})=>{var Se;(Se=a==null?void 0:a.onSeek)==null||Se.call(a,V,le)})).add(L.info.position$.subscribe(V=>{var Se;let le=L.info.duration$.getValue();(Se=a==null?void 0:a.onTimeupdate)==null||Se.call(a,le,V),G.setPosition(V,le)})).add(L.events.fatalError$.subscribe(()=>{var V;(V=a==null?void 0:a.onCrashed)==null||V.call(a)})).add(L.events.firstBytes$.subscribe(()=>{kt.state.isFirstBytes$.set(!0)})).add(L.info.is3DVideo$.subscribe(V=>{kt.ui.is3DVideo.set(V)})).add(L.info.isEnded$.subscribe(V=>{S&&(V?(T!=null&&T.getValue()&&Z.add(ir),Z.add("PLAY_BUTTON")):Z.remove("PLAY_BUTTON"))})).add(L.info.liveTime$.subscribe(V=>{var le;(le=a==null?void 0:a.onLiveTime)==null||le.call(a,V)})).add(L.info.isStalled$.subscribe(V=>{var le;(le=a==null?void 0:a.onStalledChanged)==null||le.call(a,V)})).add(G.events.started$.subscribe(()=>{var V,le;(le=(V=a==null?void 0:a.adsInfo)==null?void 0:V.onStarted)==null||le.call(V)})).add(G.events.ended$.subscribe(()=>{var V,le;(le=(V=a==null?void 0:a.adsInfo)==null?void 0:V.onCompleted)==null||le.call(V)})),Nt=new pt.Subscription,Et=()=>{Nt.add(L.events.log$.subscribe(V=>{console.debug("%c sdk ","background:#9ddcf7;",`sdk component: ${V.component}`,V.message)})).add(x.log$.subscribe(V=>{console.debug("%c ui ","background:#f3da0b;",`ui component: ${V.component}.`,V.message)}))},qe=()=>{Nt.unsubscribe()},Kt=(V,le)=>{L.startCameraManualRotation(V,le)},zt=(V=!1)=>{L.stopCameraManualRotation(V)},Zt=(V,le,Se)=>{L.moveCameraFocusPX(V,le,Se)},ti=()=>{L.holdCamera()},Lt=()=>{L.releaseCamera()},Tt=On(L.info.position$.getValue(),V=>{let le,Se,He=()=>{let at=L.info.playbackState$.getValue(),St=L.info.isLive$.getValue(),qt=L.info.duration$.getValue(),Bt=L.info.position$.getValue();if([pn.PlaybackState.PLAYING,pn.PlaybackState.PAUSED].includes(at)){let Wi=St?Bt-qt:L.getExactTime();Wi!==Se&&V(Wi),Se=Wi}le=requestAnimationFrame(He)};return He(),()=>cancelAnimationFrame(le)}),me=At(ve),Ue=At(L.info.playbackState$),Qe=At(L.info.currentBuffer$),tt=At(L.info.isEnded$),_t=At(L.info.isLive$),ii=H.features.playbackRate?At(L.info.canChangePlaybackSpeed$):On(!1),Li=At(L.info.liveBufferTime$),Gt=At(L.info.volume$),Ri=At(L.info.muted$),Yi=Ls(L.info.autoQualityLimits$.pipe((0,pt.map)(({max:V})=>V!==void 0)),((mn=L.info.autoQualityLimits$.getValue())==null?void 0:mn.max)!==void 0),ni=At(L.info.autoQualityLimitingAvailable$),vi=At(L.info.availableQualities$),_n=At(L.info.availableQualitiesFps$),fi=At(L.info.chromecastState$),Zi=At(L.info.chromecastDeviceName$),di=At(L.info.currentFormat$),Xi=At(L.info.throughputEstimation$),yi=At(L.info.videoBitrate$),Bi=At(L.info.intrinsicVideoSize$),wi=At(L.info.duration$),Di=At(L.info.isAudioAvailable$),Mt=null,Rt=L.info.isBuffering$,Ni=On(Rt.getValue(),V=>{let le=Rt.subscribe(Se=>{Se&&Mt===null?Mt=window.setTimeout(()=>{V(Rt.getValue()),Mt=null},H.loaderDelay):V(Se)});return()=>{le.unsubscribe(),Mt&&clearTimeout(Mt)}}),ki=()=>{Mt&&clearTimeout(Mt),Mt=null},xt=Ai([wi,_t],([V,le])=>le?-V:V),si=Ai([Ue],([V])=>V===pn.PlaybackState.PLAYING),Ci=At(L.info.atLiveEdge$),mi=At(L.info.atLiveDurationEdge$),gt=At(L.info.position$),Oi=Ai([gt,wi],([V,le])=>isFinite(V)&&isFinite(le)&&!!le),Pt=Ai([fi],([V])=>V===pn.ChromecastState.CONNECTED),ai=De(void 0),hn=At(L.info.isAutoQualityEnabled$,V=>V&&ai.set(void 0)),Cn=At(L.info.currentQuality$,()=>ai.set(void 0)),ui=Ai([ai,Cn],([V,le])=>V!=null?V:le),Fi=Ai([vi,_n,hn,ui,di],([V,le,Se,He,at])=>{let St=[];at!==pn.VideoFormat.MPEG&&St.push({value:"auto",displayValue:je("auto_quality_option"),selected:Se});let qt=V.filter(Bt=>Bt!==pt.VideoQuality.INVARIANT);for(let Bt of qt){let Wi=le[Bt],Eo=Bt===pt.VideoQuality.INVARIANT?je("auto_quality_option"):Bt;St.push({value:Bt,displayValue:`${Eo}${Wi?ym(Wi):""}`,selected:Se?!1:Bt===He})}return St}),Hi=At(L.info.currentPlaybackRate$),Si=Ai([Hi,Ci,mi],([V,le,Se])=>{let He=Se||S?1:H.controls.playbackRateMin,at=le?1:H.controls.playbackRateMax,St=H.controls.playbackRateStep,qt=[];for(let Bt=He;Bt<=at;Bt+=St)qt.push({value:Bt,displayValue:Bt===1?je("playback_rate_1"):je("playback_rate",{multiplier:Bt.toString(10)}),selected:V===Bt});return qt}),Ti=H.features.subtitles?At(L.info.availableTextTracks$):On([]),jt=Ai([Ti],([V],le)=>{let Se=[],He=[];for(let at of V)at.url&&Se.push(fetch(at.url));Promise.allSettled(Se).then(at=>{for(let[St,qt]of at.entries())qt.status==="fulfilled"&&qt.value.text().then(Bt=>{let Wi=new wm,Eo=V[St].language,Cl=!!V[St].isAuto,Wl=Wi.parse(Bt);Eo&&Wl&&He.push({lang:Eo,subtitles:Wl,isAuto:Cl}),St===at.length-1&&le(He)})})}),$t={displayValue:je("subtitles_off"),value:"off"},Pi=De(ot({},$t)),Ji=Ai([jt,Pi,jt],([V,le])=>{if((V==null?void 0:V.length)>0){let Se=[Dt(ot({},$t),{selected:(le==null?void 0:le.value)===$t.value})];for(let{lang:He,isAuto:at}of V)$r[He]&&Se.push({displayValue:at?je("subtitles_auto",{language:$r[He]}):$r[He],value:He,selected:(le==null?void 0:le.value)===He,isAuto:at});return Se}else return[]}),zi=Ai([Tt,Pi,jt],([V,le,Se])=>{if(le&&le.value!==$t.value)return km(V,le,Se)}),pi=Ai([zi],([V])=>V!=null&&V.texts?V.texts:[]),un=De(!0),gn=Ai([Qe,xt,gt,Li],([V,le,Se,He])=>{var Bt;let at=(Bt=V==null?void 0:V.end)!=null?Bt:0;if(!He)return at/le;let qt=-Se+He-le;return(at-qt)/le}),cn=At(L.info.availableSources$),bn=Ai([cn],([V])=>Object.keys((V==null?void 0:V[pn.VideoFormat.MPEG])||{}).length>0),xi=()=>{var Se,He,at;let V=Object.keys(((He=(Se=L.info.availableSources$)==null?void 0:Se.getValue())==null?void 0:He[pn.VideoFormat.MPEG])||{}),le=(0,pt.getHighestQuality)(V)||pt.VideoQuality.Q_144P;return(at=ee.sources[pn.VideoFormat.MPEG])==null?void 0:at[le]},oi=()=>{var le;let V=xi();V?bf(V,((le=ee==null?void 0:ee.meta)==null?void 0:le.title)||"video"):M({message:"There is no URL for download video"})},$i=()=>{M({message:"toggle muted"});let V=L.info.muted$.getValue(),He=!(L.info.volume$.getValue()===0||V);Ii(He)},li=()=>{kt.ui.settingsMenuVisible.set(!1)},qi=V=>{kt.ui.settingsMenuOpenedByKeyboard.set(!!V),kt.ui.settingsMenuVisible.set(!0)},en=V=>{it(kt.ui.settingsMenuVisible)?li():qi(V)},tn=(V,le=V,Se=!1)=>{var St,qt,Bt;let He=!Se,at=L.info.muted$.getValue();M({message:`set volume, volume: ${V}, preferredVolume: ${le}, internalCall: ${He}`}),L.setVolume(V),G.setVolume(V),He&&((St=a==null?void 0:a.onVolumeChange)==null||St.call(a,V)),Bs(le),at?(L.setMuted(!1),He&&((qt=a==null?void 0:a.onUnmute)==null||qt.call(a)),rr(!1)):!at&&V===0&&(L.setMuted(!0),He&&((Bt=a==null?void 0:a.onMute)==null||Bt.call(a)),rr(!0))},Ii=(V,le=!1)=>{var at,St,qt,Bt;let Se=!le,He=L.info.volume$.getValue();if(M({message:`set muted, currentVolume: ${He}, mute: ${V}, internalCall: ${Se}`}),L.setMuted(V),G.setVolume(V?0:He),rr(V),Se&&(V?(at=a==null?void 0:a.onMute)==null||at.call(a):(St=a==null?void 0:a.onUnmute)==null||St.call(a)),He===0){let Wi=(qt=lr())!=null?qt:H.volumeDefault;Wi===0&&(Wi=H.volumeMinRestore,Bs(Wi)),L.setVolume(Wi),G.setVolume(Wi),Se&&((Bt=a==null?void 0:a.onVolumeChange)==null||Bt.call(a,Wi))}},Ui=De(!1),$e=V=>{Ui.set(V),L.setLooped(V)};$e(q);let ci=()=>{L.prepare()},_i=()=>{if((0,pt.assertNonNullable)(kt),it(kt.ui.controls.disabledControls$).has("PLAY_BUTTON"))return;if(M({message:"toggle play"}),it(kt.playerPhase)==="ads"){G.togglePlay();return}let le=()=>{var He;M({message:"toggle play, call player.play"}),L.play(),(He=a==null?void 0:a.onPlay)==null||He.call(a)},Se=()=>{var He;M({message:"toggle play, call player.pause"}),L.pause(),(He=a==null?void 0:a.onPause)==null||He.call(a)};if(L.info.isEnded$.getValue()){if(M({message:"toggle play, video ended, seek to 0"}),ft.next(),mt.next(so.SeekAction.REWIND),S){v==null||v();return}L.seekTime(0),le()}else L.info.playbackState$.getValue()!==pn.PlaybackState.PLAYING?le():Se()},ze=V=>{M({message:`set quality, quality: ${V}`}),L.setAutoQuality(V==="auto"),V!=="auto"?(Sf(e,V),ai.set(V),L.setQuality(V)):Ds()},nn=V=>{M({message:`set trafficSavingEnabled, value: ${V}`}),L.setAutoQualityLimits({max:V?H.trafficSavingLimit:void 0}),Mf(V)},on=V=>{L.setPlaybackRate(V),H.features.saveRate&&re&&!L.info.isLive$.getValue()&&Af(V)},fn=()=>{let V=it(Si),le=V.findIndex(({selected:He})=>He);if(le===V.length-1)return;let Se=V[le+1];on(Se.value)},ln=()=>{let V=it(Si),le=V.findIndex(({selected:He})=>He);if(le===0)return;let Se=V[le-1];on(Se.value)},Ki=V=>{V&&V.value!==$t.value&&dt.next(V.isAuto?V.value+"_auto":V.value),Pi.set(V)},dn=()=>{let V=it(Ji),le=it(Pi),Se=it(Re);if((le==null?void 0:le.value)===$t.value){let He=V.filter(at=>at.value!==$t.value).find(at=>at.value===Se)||V[1];Ki(He!=null?He:ot({},$t))}else Ki(Dt(ot({},$t),{selected:!1}))},hi=(V,le,Se=!0)=>{if(M({message:`seek to time, time: ${V}`}),mt.next(le),L.info.isLive$.getValue()){let He=L.info.duration$.getValue(),at=Math.min(0,He+V);L.seekTime(at,Se)}else{if(T!=null&&T.getValue())return;L.seekTime(To(V),Se)}},Sn=V=>{M({message:`seek to episode start time: ${V}`}),hi(V,so.SeekAction.EPISODE,!0)},Qt=(V,le)=>{M({message:`seek to percent, percent: ${V}`});let Se=Math.round(it(xt)*V);hi(Se,le,!1)},ji=V=>{M({message:`seek external, time: ${V}`}),mt.next(so.SeekAction.UNKNOWN),L.seekTime(L.info.isLive$.getValue()?-V:V)},se=V=>{var le,Se;M({message:`set auto quality limitation. Max: ${(le=V.max)!=null?le:"none"}. Min: ${(Se=V.min)!=null?Se:"none"}`}),L.setAutoQualityLimits(V)},ht=V=>{M({message:`seek external to episode start time: ${V}`}),hi(V,so.SeekAction.EPISODE,!0)},ei=V=>{M({message:`set playback rate to: ${V}`}),L.setPlaybackRate(V)},rn=De(void 0),Ei=De(!1),Mi=V=>{M({message:`start scrubbing, progress: ${V}`}),Ei.set(!0),ri(V)},ri=V=>{rn.set(V)},Bn,In,En=()=>{rn.set(void 0),Ei.set(!1)},Yt=()=>{clearTimeout(In),clearTimeout(Bn),Bn=window.setTimeout(()=>{En()},500),ke==null||ke.removeEventListener("seeked",Yt)},Zn=V=>{M({message:`complete scrubbing, progress: ${V}`}),Qt(V,so.SeekAction.SLIDER),it(kt.ui.isMobile)&&it(kt.state.currentFormat$)===pn.VideoFormat.HLS?(ke==null||ke.addEventListener("seeked",Yt),In=window.setTimeout(()=>{Yt()},300)):En()},Xn=Ai([Tt,xt,rn],([V,le,Se],He)=>{He((0,pt.isNonNullable)(Se)?Se*le:V)}),Dn=De({width:0,height:0}),zn=Ai([Dn],([{width:V}],le)=>{let Se=Ud(V);le(Se)}),Mn=De(!1),qn=Ai([zn,Mn],([V,le])=>le?A.filter(Se=>!Se.hideOnMobile):A.filter(Se=>{var He;return!((He=Se.hideOnDesktopGridTypes)!=null&&He.includes(V))})),Tn=Ai([Mn,et],([V,le],Se)=>{Se(V&&le)}),Nn=()=>{mt.next(so.SeekAction.LIVE),M({message:"switch to active live"}),L.seekTime(0),L.info.playbackState$.getValue()!==pn.PlaybackState.PLAYING&&kt.actions.internal.togglePlay()},Un=()=>G.skip(),ne=(V=!0)=>{(0,pt.assertNonNullable)(kt),M({message:`switch from ads to video, callPlay: ${V}`}),Xe.set("video"),V&&L.play()},It=()=>{(0,pt.assertNonNullable)(kt),M({message:"switch from video to ads"}),kt.actions.internal.pause(),we(),Xe.set("ads")},Vn=V=>{(0,pt.assertNonNullable)(kt);let le=V?"waitingLive":"thumb";Xe.set(le)},vn=V=>{(0,pt.assertNonNullable)(kt);let le=V?"waitingRecord":"thumb";Xe.set(le)},Kn=()=>((0,pt.assertNonNullable)(kt),hf(L,ee,kt)),sn=()=>((0,pt.assertNonNullable)(kt),gf(L,ee,kt)),io=()=>ke,ao=()=>{M({message:"toggle chromecast"}),L.toggleChromecast()},yn=V=>{var Se;(0,pt.assertNonNullable)(kt);let le=!V;if(it(kt.playerPhase)==="ads"){M({message:`pause ads, internalCall: ${le}`}),G.pause();return}M({message:`pause video, internalCall: ${le}`}),le&&((Se=a==null?void 0:a.onPause)==null||Se.call(a)),L.pause()},ie=V=>{var Se;(0,pt.assertNonNullable)(kt);let le=!V;if(it(kt.playerPhase)==="ads"){M({message:`play ads, internalCall: ${le}`}),G.play();return}M({message:`play video, internalCall: ${le}`}),le&&((Se=a==null?void 0:a.onPlay)==null||Se.call(a)),L.play()},uo=(V,le)=>{(0,pt.assertNonNullable)(kt),M({message:`first start, show ads: ${V}, internalCall: ${!le}`}),V?Xe.set("ads"):(Xe.set("video"),le?L.play():kt.actions.internal.togglePlay())},Co=()=>(M({message:"getting time codes"}),u),Wo=()=>{let V=Co();if(!V||[0,1].includes(V.length))return;let le=L.info.position$.getValue();return V.find(Se=>Se.time>le)},So=V=>{let le=V;le||(le=Wo()),le&&(M({message:"seek to next episode"}),hi(le.time,so.SeekAction.EPISODE,!0))},co=()=>{let V=Co();if(!V||[0,1].includes(V.length))return;let le=L.info.position$.getValue(),Se=V.findIndex(at=>at.time>le),He=Se===-1?V.length-2:Se-2;if(!(He<0))return V[He]},no=V=>{let le=V;le||(le=co()),le&&(M({message:"seek to prev episode"}),hi(le.time,so.SeekAction.EPISODE,!0))},fo=()=>(M({message:"getting preview thumbs data"}),f),Go=()=>ut(void 0,null,function*(){E!=null&&E.isActive()?yield E==null?void 0:E.remove():yield E==null?void 0:E.request()}),Qo=(V=-90)=>{be.update(le=>le+V)},Jn=De([]);w==null||w.subscribe(V=>{let le=[];for(let Se=0;Se<V.length;Se++){let{range:[He,at],subjects:St}=V[Se];Se===0&&He!==0&&le.push({time:0,text:"",interactive:!1,completed:!0}),le.push({time:He/1e3,text:"",interactive:!0,completed:!St.length}),at!==1/0&&le.push({time:at/1e3,text:"",interactive:!1,completed:!0})}Jn.set(le)});let Yo=De(!1);T==null||T.subscribe(V=>{V&&it(Ei)&&En()});let To=V=>{if(!S)return V;let le=it(Jn),Se=it(xt),at=it(gt)/Se,St=le.find(qt=>qt.interactive&&!qt.completed&&qt.time>at);return typeof(St==null?void 0:St.time)=="number"?Math.min(V,St.time-.05):V},Po=()=>{kt.ui.episodes.panelOpened$.set(!1)},Zo=()=>{clearTimeout(In),clearTimeout(Bn),vt.unsubscribe(),Nt.unsubscribe(),L.destroy(),G.destroy(),K==null||K.destroy(),J==null||J.destroy(),xe.unsubscribe(),bt==null||bt.disconnect(),bt=null},kt={interfaceLanguage$:Re,initVideo:ue,videoId:e,isClip:t,playerPhase:Ce,vsid:Je,state:{positionExact$:Tt,positionWithScrubbing$:Xn,duration$:xt,playbackState$:Ue,isPlaying$:si,isLoaderVisible:Ni,bufferedProgress$:gn,isLive$:_t,canChangePlaybackSpeed$:ii,isActiveLive$:Ci,isOldestAvailableLive$:mi,isRewindableLive$:Oi,isEnded$:tt,muted$:Ri,volume$:Gt,trafficSavingEnabled$:Yi,autoQualityLimitingAvailable$:ni,currentQuality$:ui,isAutoQualityEnabled$:hn,availableQualities$:Fi,currentPlaybackRate$:Hi,availablePlaybackRates$:Si,currentSubtitle$:Pi,availableSubtitlesList$:Ji,currentSubtitleCaptions$:pi,isAutoSubtitleCaptionVisible$:un,chromecastState$:fi,chromecastDeviceName$:Zi,chromecastConnected$:Pt,currentFormat$:di,throughputEstimation$:Xi,videoBitrate$:yi,videoSize$:Bi,errorLog$:Ne,crashed$:et,isAudioAvailable$:Di,isAudioDisabled:!!r,canDownload:H.features.download&&!!l,availableSources$:cn,hasMpegSources$:bn,isInteractive:S,showInteractiveGraph:H.features.interactiveGraph,showSeekToInteractive:H.features.seekToInteractive,showPlayPrevChapter:H.features.interactivePlayPrevChapter,showInteractiveTimeIndicator:H.features.interactiveTimeIndicator&&!!it(Jn).length,interactiveEpisodes$:Jn,isInteractiveTime$:T?At(T):De(!1),graphIsOpened$:De(!1),isInteractiveExpectation$:Yo,hasInteractiveBranches:g,playPrevChapterDisabledTooltip:I,looped$:Ui,isFirstBytes$:De(!1)},ui:{controlsVisible:De(!1),touched:De(!1),controls:{prevButton:De(void 0),playButton:De(void 0),replayButton:De(void 0),nextButton:De(void 0),playPrevChapterButton:De(void 0),seekToInteractiveButton:De(void 0),interactiveGraphButton:De(void 0),liveButton:De(void 0),time:De(void 0),episodes:De(void 0),volume:De(void 0),subtitles:De(void 0),settings:De(void 0),context:De(void 0),chromecast:De(void 0),pip:De(void 0),fullscreen:De(void 0),vkLogo:De(void 0),interactiveTimeIndicator:De(void 0),additionalButtons:A.length?A.reduce(V=>[...V,De(void 0)],[]):[],disabledControls$:Z},modals:{hotKeyMap:{show:De(!1),data:De({title:"",closeBtnText:"",groups:[]})}},isFullscreen:We,rotateAlpha:be,isAutoplay:De(!1),debugPanelVisible:De(!1),episodes:{panelOpened$:De(!1),openedByKeyboard$:De(!1)},contextMenu:{visible$:De(!1),btnRef$:De(void 0),openedByBtnKeyboard$:De(!1),openedByHotKey$:De(!1),lastActiveElem$:De(void 0),showContextMenuBtn$:De(!1),position$:De({top:0,left:0})},playerSize:Dn,isMobile:Mn,mobileNotReportControlHidden$:Tn,mobileUnmuteButtonExpanded:De(!1),mobileUnmuteButtonVisible:De(!1),icon3DVideoVisible:De(!1),settingsMenuVisible:De(!1),settingsMenuOpenedByKeyboard:De(!1),scrubbingInProgress:Ei,is3DVideo:De(!1),isPictureInPictureActive$:me,pictureInPictureType$:On(X),clientInfo$:On(Ke),currentGridType$:zn,additionalButtons$:qn,interactiveHideMobileControls:De(!1),overlayContainer$:De(void 0),startedByKeyboard$:De(!1)},ads:{position:De(0),duration:De(0),playbackState:De("inactive"),canSkip:De(!1),secondsToWatchBeforeSkip:De(0),postrollPassed:De(!1)},webApi:{pictureInPictureApi:E,annotationsApi:te},actions:{internal:{preload:ci,firstStart:V=>uo(V,!1),pause:()=>yn(!1),togglePlay:_i,toggleMuted:$i,toggleSettingsMenu:en,openSettingsMenu:qi,closeSettingsMenu:li,setVolume:tn,setQuality:ze,setTrafficSavingEnabled:V=>nn(V),setPlaybackRate:on,incrementPlaybackRate:fn,decrementPlaybackRate:ln,setSubtitle:Ki,toggleSubtitle:dn,togglePictureInPicture:Go,startScrubbing:Mi,progressScrubbing:ri,completeScrubbing:Zn,toggleChromecast:ao,switchToActiveLive:Nn,switchFromAdsToVideo:ne,switchFromVideoToAds:It,skipAd:Un,setWaitingLive:Vn,setWaitingRecord:vn,getDebugTextData:Kn,getDebugPanelData:sn,getVideoElement:io,seekTime:(V,le,Se)=>hi(V,le,Se),clearDelayedBufferingCheckTimeout:ki,seekEpisodeStartTime:Sn,seekToPercent:Qt,getNextEpisode:Wo,seekToNextEpisode:So,getPrevEpisode:co,seekToPrevEpisode:no,startLogging:Et,stopLogging:qe,startCameraManualRotation:Kt,stopCameraManualRotation:zt,moveCameraFocusPX:Zt,holdCamera:ti,releaseCamera:Lt,getVideoEpisodes:Co,getPreviewThumbsData:fo,downloadVideo:oi,addLanguage:Os,setLanguage:ye,nextMovie:Ye,videoRotate:Qo,correctSeekTimeToInteractive:To,replayInteractive:v,setLooped:$e},external:{firstStart:V=>uo(V,!0),play:()=>ie(!0),pause:()=>yn(!0),seekTime:V=>ji(V),seekEpisodeStartTime:V=>ht(V),setPlaybackRate:V=>ei(V),setAutoQualityLimits:V=>se(V),setMuted:V=>Ii(V,!0),setVolume:V=>tn(V,V,!0),returnFocusToEpisodes:Po}},callbacks:a,setUiCallbacks:V=>{Ge=ot({},V)},getAdmanWrapper:()=>G,getLogger:()=>x,destroy:Zo};return kt};var is=(i,e,t,n)=>{var a;if(!i)return;let o=["tooltipPointerOffsetX","disabledControls$","additionalButtons"],r=["interactiveTimeIndicator"],l=i.getBoundingClientRect();for(let[s,u]of Object.entries(e))if(!["tooltipPointerOffsetX","disabledControls$","additionalButtons"].includes(s)){let f=(a=t[s])==null?void 0:a.getBoundingClientRect(),m=(n||r.includes(s))&&!!f&&!!(f.right-f.left);u.set({positionStartX:0,positionEndX:0,left:m?Math.round(f.left-l.left):0,right:m?Math.round(f.right-l.left):0,top:m?Math.round(f.top-l.top):0,bottom:m?Math.round(f.bottom-l.top):0,isDisplayed:m})}};var ns=(i,e,t)=>ut(void 0,null,function*(){yield Gn(),e&&t&&(t.focus(),i.set(!1))});function Dv(i){let e,t,n,o=i[2].default,r=Ee(o,i,i[1],null),l=[{xmlns:"http://www.w3.org/2000/svg"},{width:"24"},{height:"24"},{fill:"none"},{"aria-hidden":"true"},{"data-testid":"dots-icon"},{role:"img"},i[0]],a={};for(let s=0;s<l.length;s+=1)a=oe(a,l[s]);return{c(){e=N("svg"),r&&r.c(),t=N("path"),c(t,"fill","#fff"),c(t,"d","M18 10c1.1 0 2 .9 2 2s-.9 2-2 2-2-.9-2-2 .9-2 2-2m-6 4c-1.1 0-2-.9-2-2s.9-2 2-2 2 .9 2 2-.9 2-2 2m-6 0c-1.1 0-2-.9-2-2s.9-2 2-2 2 .9 2 2-.9 2-2 2"),ge(e,a)},m(s,u){C(s,e,u),r&&r.m(e,null),p(e,t),n=!0},p(s,[u]){r&&r.p&&(!n||u&2)&&Ve(r,o,s,s[1],n?Me(o,s[1],u,null):Ae(s[1]),null),ge(e,a=Le(l,[{xmlns:"http://www.w3.org/2000/svg"},{width:"24"},{height:"24"},{fill:"none"},{"aria-hidden":"true"},{"data-testid":"dots-icon"},{role:"img"},u&1&&s[0]]))},i(s){n||(d(r,s),n=!0)},o(s){_(r,s),n=!1},d(s){s&&k(e),r&&r.d(s)}}}function Nv(i,e,t){let{$$slots:n={},$$scope:o}=e;return i.$$set=r=>{t(0,e=oe(oe({},e),he(r))),"$$scope"in r&&t(1,o=r.$$scope)},e=he(e),[e,o,n]}var Nu=class extends j{constructor(e){super(),W(this,e,Nv,Dv,U,{})}},Pm=Nu;function Ov(i){let e,t;return e=new Pm({}),{c(){D(e.$$.fragment)},m(n,o){R(e,n,o),t=!0},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){_(e.$$.fragment,n),t=!1},d(n){B(e,n)}}}function Fv(i){let e,t,n;function o(l){i[8](l)}let r={className:i[3]?"opened":"",testId:"btn-context-menu",disabled:i[0],ariaLabel:i[1],click:i[5],focus:i[6],blur:i[7],ariaExpanded:i[3],$$slots:{default:[Ov]},$$scope:{ctx:i}};return i[2]!==void 0&&(r.ref=i[2]),e=new yt({props:r}),_e.push(()=>Fe(e,"ref",o)),{c(){D(e.$$.fragment)},m(l,a){R(e,l,a),n=!0},p(l,[a]){let s={};a&8&&(s.className=l[3]?"opened":""),a&1&&(s.disabled=l[0]),a&2&&(s.ariaLabel=l[1]),a&8&&(s.ariaExpanded=l[3]),a&16384&&(s.$$scope={dirty:a,ctx:l}),!t&&a&4&&(t=!0,s.ref=l[2],Oe(()=>t=!1)),e.$set(s)},i(l){n||(d(e.$$.fragment,l),n=!0)},o(l){_(e.$$.fragment,l),n=!1},d(l){B(e,l)}}}function Hv(i,e,t){let n,{disabled:o=!1}=e,{ariaLabel:r=""}=e,l=nt(),a=l.ui.contextMenu.visible$;F(i,a,T=>t(3,n=T));let s=l.ui.contextMenu.openedByBtnKeyboard$,u=l.ui.contextMenu.showContextMenuBtn$,f=l.ui.contextMenu.position$,m=l.ui.contextMenu.btnRef$,h,y=T=>{let v=sl(T),g=n1(h);f.set(g),s.set(v),a.set(!n)},b=()=>{u.set(!0)},S=()=>{u.set(!1)};function w(T){h=T,t(2,h)}return i.$$set=T=>{"disabled"in T&&t(0,o=T.disabled),"ariaLabel"in T&&t(1,r=T.ariaLabel)},i.$$.update=()=>{if(i.$$.dirty&4)e:h&&m.set(h)},[o,r,h,n,a,y,b,S,w]}var Ou=class extends j{constructor(e){super(),W(this,e,Hv,Fv,U,{disabled:0,ariaLabel:1})}},Im=Ou;function zv(i){Te(i,"svelte-17imlp9",".interactive-episode-icon-animated.svelte-17imlp9{position:absolute;top:16px;right:16px;width:32px;height:32px;transition:0.3s;opacity:1}.invisible.svelte-17imlp9{opacity:0;visibility:hidden}.fullscreen.svelte-17imlp9:not(.mobile){width:40px;top:19px;right:23px;height:40px}.mobile.svelte-17imlp9{width:28px;height:28px;top:12px;right:14px}.fullscreen.mobile.svelte-17imlp9{width:32px;height:32px}@media screen and (orientation: portrait){.interactive-episode-icon-animated.mobile.fullscreen.svelte-17imlp9{top:40px;right:16px}}@keyframes svelte-17imlp9-pulse{0%{transform:scale(1);border-width:1px;opacity:0}10%{opacity:1}50%{transform:scale(1.5);border-width:1px;opacity:0.5}100%{transform:scale(1.5);border-width:0.5px;opacity:0}}.pulse.svelte-17imlp9{display:block;content:'';border:1px solid #fff;position:absolute;top:0;left:0;right:0;bottom:0;border-radius:100%;transform:scale(1.8);animation:1s svelte-17imlp9-pulse infinite;transition:0.3s;pointer-events:none}.pulse.paused.svelte-17imlp9{animation-play-state:paused}.interactive-episode-icon-animated svg{width:100%;height:100%}.ref-block.svelte-17imlp9{position:absolute;top:0;width:100%;height:100%;visibility:hidden}.hidden.svelte-17imlp9{display:none}")}function qv(i){let e,t;return e=new Rr({props:{completed:!0}}),{c(){D(e.$$.fragment)},m(n,o){R(e,n,o),t=!0},p:pe,i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){_(e.$$.fragment,n),t=!1},d(n){B(e,n)}}}function Uv(i){let e,t,n,o,r,l,a,s,u,f;function m(y){i[22](y)}let h={tooltipContent:Q("tooltip_interactive_interaction_time_indicator"),tooltipActive:i[5],initialTranslateYPx:72,tooltipPlacement:"bottom",onTooltipVisibilityChange:i[13],$$slots:{default:[qv]},$$scope:{ctx:i}};return i[0]!==void 0&&(h.ref=i[0]),t=new Ut({props:h}),_e.push(()=>Fe(t,"ref",m)),t.$on("click",i[14]),{c(){e=P("div"),D(t.$$.fragment),o=O(),r=P("div"),l=O(),a=P("div"),c(r,"class","ref-block svelte-17imlp9"),z(r,"hidden",i[1]),c(a,"class","pulse svelte-17imlp9"),z(a,"paused",i[4]),c(e,"class","interactive-episode-icon-animated svelte-17imlp9"),z(e,"mobile",i[2]),z(e,"fullscreen",i[6]),z(e,"invisible",i[1])},m(y,b){C(y,e,b),R(t,e,null),p(e,o),p(e,r),i[23](r),p(e,l),p(e,a),i[24](a),s=!0,u||(f=[de(e,"mousemove",ct(i[21])),de(e,"mouseleave",i[15])],u=!0)},p(y,b){let S={};b[0]&32&&(S.tooltipActive=y[5]),b[1]&1&&(S.$$scope={dirty:b,ctx:y}),!n&&b[0]&1&&(n=!0,S.ref=y[0],Oe(()=>n=!1)),t.$set(S),(!s||b[0]&2)&&z(r,"hidden",y[1]),(!s||b[0]&16)&&z(a,"paused",y[4]),(!s||b[0]&4)&&z(e,"mobile",y[2]),(!s||b[0]&64)&&z(e,"fullscreen",y[6]),(!s||b[0]&2)&&z(e,"invisible",y[1])},i(y){s||(d(t.$$.fragment,y),s=!0)},o(y){_(t.$$.fragment,y),s=!1},d(y){y&&k(e),B(t),i[23](null),i[24](null),u=!1,lt(f)}}}function Kv(i,e,t){var ee;let n,o,r,l,a,s,{ref:u=void 0}=e,f,m=nt(),h=Fn(),{interactiveControlsOpacity$:y}=h;F(i,y,ke=>t(18,o=ke));let b=m.ui.isMobile;F(i,b,ke=>t(2,a=ke));let S=m.ui.isFullscreen;F(i,S,ke=>t(6,s=ke));let w=m.state.isInteractiveTime$;F(i,w,ke=>t(19,r=ke));let T=h.showInteractiveTimeIndicatorTooltip$;F(i,T,ke=>t(17,n=ke));let v=m.ui.controlsVisible;F(i,v,ke=>t(20,l=ke));let g=(ee=m.callbacks)==null?void 0:ee.onInteractiveTimeIndicatorClick,I,A,q,K=()=>{t(4,q=!0)},re=()=>{ae(),f==null||f.addEventListener("animationiteration",K,{once:!0})},ae=()=>{t(4,q=!1),f==null||f.removeEventListener("animationiteration",K)},H=ke=>{T.set(ke)},L,x=()=>{A||(T.set(!0),g==null||g())};Wn(()=>{T.clearTimeout(),ae()});let G=()=>{T.set(!1)};function J(ke){An.call(this,i,ke)}function E(ke){u=ke,t(0,u)}function te(ke){_e[ke?"unshift":"push"](()=>{u=ke,t(0,u)})}function M(ke){_e[ke?"unshift":"push"](()=>{f=ke,t(3,f)})}return i.$$set=ke=>{"ref"in ke&&t(0,u=ke.ref)},i.$$.update=()=>{if(i.$$.dirty[0]&1048580)e:t(16,I=!a&&l);if(i.$$.dirty[0]&851968)e:t(1,A=!r||!!o||I);if(i.$$.dirty[0]&2)e:t(4,q=A);if(i.$$.dirty[0]&131074)e:t(5,L=n&&!A);if(i.$$.dirty[0]&131072)e:n?re():ae()},[u,A,a,f,q,L,s,y,b,S,w,T,v,H,x,G,I,n,o,r,l,J,E,te,M]}var Fu=class extends j{constructor(e){super(),W(this,e,Kv,Uv,U,{ref:0},zv,[-1,-1])}},os=Fu;function Wv(i){Te(i,"svelte-st0uzk",".wrapper-bottom.svelte-st0uzk.svelte-st0uzk{pointer-events:none;position:absolute;width:100%;bottom:0;left:0;height:var(--controls-gradient-height);background:var(--controls-gradient);transition:transform var(--controls-transition-duration) var(--controls-transition-fn);display:flex;flex-direction:column;justify-content:flex-end;box-sizing:border-box}.wrapper-bottom.svelte-st0uzk>.svelte-st0uzk{pointer-events:auto}.controls.svelte-st0uzk.svelte-st0uzk{width:100%;display:flex;align-items:center;justify-content:space-between;height:var(--controls-height);white-space:nowrap;font-size:13px;transition:transform var(--controls-transition-duration) var(--controls-transition-fn);will-change:transform;padding:0 8px 4px;box-sizing:border-box}.controls-left.svelte-st0uzk.svelte-st0uzk,.controls-right.svelte-st0uzk.svelte-st0uzk{display:flex;align-content:center}.controls-left.svelte-st0uzk.svelte-st0uzk{flex-grow:1;min-width:0;overflow:hidden}.controls-left.svelte-st0uzk > *:not(:first-child),.controls-right.svelte-st0uzk > *{margin-left:var(--controls-desktop-item-margin-left)}.controls-hidden.svelte-st0uzk.svelte-st0uzk{visibility:visible;transform:translateY(100%)}.wrapper-bottom.no-smooth.svelte-st0uzk.svelte-st0uzk{transition:none}.settings-menu.svelte-st0uzk.svelte-st0uzk{bottom:57px;right:18px;position:absolute;transition:opacity 0.2s, visibility 0.2s}")}function Em(i,e,t){let n=i.slice();return n[209]=e[t].iconUrl,n[210]=e[t].ariaLabel,n[211]=e[t].testId,n[212]=e[t].onClick,n[213]=e[t].tooltip,n}function Mm(i){let e,t,n;function o(l){i[173](l)}let r={disabled:!i[9],tooltipContent:Q("tooltip_previous"),$$slots:{default:[Gv]},$$scope:{ctx:i}};return i[23].prevButton!==void 0&&(r.ref=i[23].prevButton),e=new Ut({props:r}),_e.push(()=>Fe(e,"ref",o)),{c(){D(e.$$.fragment)},m(l,a){R(e,l,a),n=!0},p(l,a){let s={};a[0]&512&&(s.disabled=!l[9]),a[0]&4608|a[6]&1073741824&&(s.$$scope={dirty:a,ctx:l}),!t&&a[0]&8388608&&(t=!0,s.ref=l[23].prevButton,Oe(()=>t=!1)),e.$set(s)},i(l){n||(d(e.$$.fragment,l),n=!0)},o(l){_(e.$$.fragment,l),n=!1},d(l){B(e,l)}}}function Gv(i){let e,t;return e=new pl({props:{click:i[12],type:"prev",disabled:!i[9],isMobile:!1}}),{c(){D(e.$$.fragment)},m(n,o){R(e,n,o),t=!0},p(n,o){let r={};o[0]&4096&&(r.click=n[12]),o[0]&512&&(r.disabled=!n[9]),e.$set(r)},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){_(e.$$.fragment,n),t=!1},d(n){B(e,n)}}}function Vm(i){let e,t,n;function o(l){i[174](l)}let r={disabled:i[74],tooltipContent:Q("tooltip_restart"),$$slots:{default:[Qv]},$$scope:{ctx:i}};return i[23].replayButton!==void 0&&(r.ref=i[23].replayButton),e=new Ut({props:r}),_e.push(()=>Fe(e,"ref",o)),{c(){D(e.$$.fragment)},m(l,a){R(e,l,a),n=!0},p(l,a){let s={};a[2]&4096&&(s.disabled=l[74]),a[2]&4096|a[6]&1073741824&&(s.$$scope={dirty:a,ctx:l}),!t&&a[0]&8388608&&(t=!0,s.ref=l[23].replayButton,Oe(()=>t=!1)),e.$set(s)},i(l){n||(d(e.$$.fragment,l),n=!0)},o(l){_(e.$$.fragment,l),n=!1},d(l){B(e,l)}}}function Qv(i){let e,t;return e=new Hl({props:{click:i[128],disabled:i[74]}}),{c(){D(e.$$.fragment)},m(n,o){R(e,n,o),t=!0},p(n,o){let r={};o[2]&4096&&(r.disabled=n[74]),e.$set(r)},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){_(e.$$.fragment,n),t=!1},d(n){B(e,n)}}}function Am(i){let e,t,n;function o(l){i[176](l)}let r={tooltipContent:i[47],disabled:i[75],$$slots:{default:[Yv]},$$scope:{ctx:i}};return i[23].playButton!==void 0&&(r.ref=i[23].playButton),e=new Ut({props:r}),_e.push(()=>Fe(e,"ref",o)),{c(){D(e.$$.fragment)},m(l,a){R(e,l,a),n=!0},p(l,a){let s={};a[1]&65536&&(s.tooltipContent=l[47]),a[2]&8192&&(s.disabled=l[75]),a[0]&67108864|a[1]&8|a[2]&8192|a[6]&1073741824&&(s.$$scope={dirty:a,ctx:l}),!t&&a[0]&8388608&&(t=!0,s.ref=l[23].playButton,Oe(()=>t=!1)),e.$set(s)},i(l){n||(d(e.$$.fragment,l),n=!0)},o(l){_(e.$$.fragment,l),n=!1},d(l){B(e,l)}}}function Yv(i){let e,t,n;function o(l){i[175](l)}let r={isMobile:!1,isPlaying:i[34],click:i[85],disabled:i[75]};return i[26]!==void 0&&(r.ref=i[26]),e=new Fl({props:r}),_e.push(()=>Fe(e,"ref",o)),{c(){D(e.$$.fragment)},m(l,a){R(e,l,a),n=!0},p(l,a){let s={};a[1]&8&&(s.isPlaying=l[34]),a[2]&8192&&(s.disabled=l[75]),!t&&a[0]&67108864&&(t=!0,s.ref=l[26],Oe(()=>t=!1)),e.$set(s)},i(l){n||(d(e.$$.fragment,l),n=!0)},o(l){_(e.$$.fragment,l),n=!1},d(l){B(e,l)}}}function Lm(i){let e,t,n;function o(l){i[177](l)}let r={disabled:!i[8],tooltipContent:Q("tooltip_next"),$$slots:{default:[Zv]},$$scope:{ctx:i}};return i[23].nextButton!==void 0&&(r.ref=i[23].nextButton),e=new Ut({props:r}),_e.push(()=>Fe(e,"ref",o)),{c(){D(e.$$.fragment)},m(l,a){R(e,l,a),n=!0},p(l,a){let s={};a[0]&256&&(s.disabled=!l[8]),a[0]&2304|a[6]&1073741824&&(s.$$scope={dirty:a,ctx:l}),!t&&a[0]&8388608&&(t=!0,s.ref=l[23].nextButton,Oe(()=>t=!1)),e.$set(s)},i(l){n||(d(e.$$.fragment,l),n=!0)},o(l){_(e.$$.fragment,l),n=!1},d(l){B(e,l)}}}function Zv(i){let e,t;return e=new pl({props:{click:i[11],type:"next",disabled:!i[8],isMobile:!1}}),{c(){D(e.$$.fragment)},m(n,o){R(e,n,o),t=!0},p(n,o){let r={};o[0]&2048&&(r.click=n[11]),o[0]&256&&(r.disabled=!n[8]),e.$set(r)},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){_(e.$$.fragment,n),t=!1},d(n){B(e,n)}}}function Xv(i){let e,t,n,o,r=i[121]&&Jv(i),l=i[120]&&$v(i),a=i[119]&&t3(i);return{c(){r&&r.c(),e=O(),l&&l.c(),t=O(),a&&a.c(),n=st()},m(s,u){r&&r.m(s,u),C(s,e,u),l&&l.m(s,u),C(s,t,u),a&&a.m(s,u),C(s,n,u),o=!0},p(s,u){s[121]&&r.p(s,u),s[120]&&l.p(s,u),s[119]&&a.p(s,u)},i(s){o||(d(r),d(l),d(a),o=!0)},o(s){_(r),_(l),_(a),o=!1},d(s){s&&(k(e),k(t),k(n)),r&&r.d(s),l&&l.d(s),a&&a.d(s)}}}function Jv(i){let e,t,n;function o(l){i[178](l)}let r={disabled:i[73],tooltipContent:Q("tooltip_interactive_go_back"),disabledTooltipContent:Q(i[124]),$$slots:{default:[xv]},$$scope:{ctx:i}};return i[23].playPrevChapterButton!==void 0&&(r.ref=i[23].playPrevChapterButton),e=new Ut({props:r}),_e.push(()=>Fe(e,"ref",o)),{c(){D(e.$$.fragment)},m(l,a){R(e,l,a),n=!0},p(l,a){let s={};a[2]&2048&&(s.disabled=l[73]),a[0]&131072|a[2]&2048|a[6]&1073741824&&(s.$$scope={dirty:a,ctx:l}),!t&&a[0]&8388608&&(t=!0,s.ref=l[23].playPrevChapterButton,Oe(()=>t=!1)),e.$set(s)},i(l){n||(d(e.$$.fragment,l),n=!0)},o(l){_(e.$$.fragment,l),n=!1},d(l){B(e,l)}}}function xv(i){let e,t;return e=new Yr({props:{disabled:i[73],click:i[17]}}),{c(){D(e.$$.fragment)},m(n,o){R(e,n,o),t=!0},p(n,o){let r={};o[2]&2048&&(r.disabled=n[73]),o[0]&131072&&(r.click=n[17]),e.$set(r)},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){_(e.$$.fragment,n),t=!1},d(n){B(e,n)}}}function $v(i){let e,t,n;function o(l){i[179](l)}let r={disabled:i[76],tooltipContent:Q("tooltip_interactive_seek"),disabledTooltipContent:Q(i[78]),$$slots:{default:[e3]},$$scope:{ctx:i}};return i[23].seekToInteractiveButton!==void 0&&(r.ref=i[23].seekToInteractiveButton),e=new Ut({props:r}),_e.push(()=>Fe(e,"ref",o)),{c(){D(e.$$.fragment)},m(l,a){R(e,l,a),n=!0},p(l,a){let s={};a[2]&16384&&(s.disabled=l[76]),a[2]&65536&&(s.disabledTooltipContent=Q(l[78])),a[0]&32768|a[2]&16384|a[6]&1073741824&&(s.$$scope={dirty:a,ctx:l}),!t&&a[0]&8388608&&(t=!0,s.ref=l[23].seekToInteractiveButton,Oe(()=>t=!1)),e.$set(s)},i(l){n||(d(e.$$.fragment,l),n=!0)},o(l){_(e.$$.fragment,l),n=!1},d(l){B(e,l)}}}function e3(i){let e,t;return e=new Wr({props:{disabled:i[76],click:i[15]}}),{c(){D(e.$$.fragment)},m(n,o){R(e,n,o),t=!0},p(n,o){let r={};o[2]&16384&&(r.disabled=n[76]),o[0]&32768&&(r.click=n[15]),e.$set(r)},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){_(e.$$.fragment,n),t=!1},d(n){B(e,n)}}}function t3(i){let e,t,n;function o(l){i[180](l)}let r={tooltipContent:i[48],disabled:i[77],$$slots:{default:[i3]},$$scope:{ctx:i}};return i[23].interactiveGraphButton!==void 0&&(r.ref=i[23].interactiveGraphButton),e=new Ut({props:r}),_e.push(()=>Fe(e,"ref",o)),{c(){D(e.$$.fragment)},m(l,a){R(e,l,a),n=!0},p(l,a){let s={};a[1]&131072&&(s.tooltipContent=l[48]),a[2]&32768&&(s.disabled=l[77]),a[0]&65536|a[1]&1|a[2]&32768|a[6]&1073741824&&(s.$$scope={dirty:a,ctx:l}),!t&&a[0]&8388608&&(t=!0,s.ref=l[23].interactiveGraphButton,Oe(()=>t=!1)),e.$set(s)},i(l){n||(d(e.$$.fragment,l),n=!0)},o(l){_(e.$$.fragment,l),n=!1},d(l){B(e,l)}}}function i3(i){let e,t;return e=new Gr({props:{click:i[16],graphIsOpened:i[31],disabled:i[77]}}),{c(){D(e.$$.fragment)},m(n,o){R(e,n,o),t=!0},p(n,o){let r={};o[0]&65536&&(r.click=n[16]),o[1]&1&&(r.graphIsOpened=n[31]),o[2]&32768&&(r.disabled=n[77]),e.$set(r)},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){_(e.$$.fragment,n),t=!1},d(n){B(e,n)}}}function Rm(i){let e,t,n;function o(l){i[181](l)}let r={tooltipContent:i[50],$$slots:{default:[n3]},$$scope:{ctx:i}};return i[23].liveButton!==void 0&&(r.ref=i[23].liveButton),e=new Ut({props:r}),_e.push(()=>Fe(e,"ref",o)),{c(){D(e.$$.fragment)},m(l,a){R(e,l,a),n=!0},p(l,a){let s={};a[1]&524288&&(s.tooltipContent=l[50]),a[0]&2097152|a[1]&524288|a[6]&1073741824&&(s.$$scope={dirty:a,ctx:l}),!t&&a[0]&8388608&&(t=!0,s.ref=l[23].liveButton,Oe(()=>t=!1)),e.$set(s)},i(l){n||(d(e.$$.fragment,l),n=!0)},o(l){_(e.$$.fragment,l),n=!1},d(l){B(e,l)}}}function n3(i){let e,t;return e=new zr({props:{isActiveLive:i[21],isMobile:!1,ariaLabel:i[50]}}),{c(){D(e.$$.fragment)},m(n,o){R(e,n,o),t=!0},p(n,o){let r={};o[0]&2097152&&(r.isActiveLive=n[21]),o[1]&524288&&(r.ariaLabel=n[50]),e.$set(r)},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){_(e.$$.fragment,n),t=!1},d(n){B(e,n)}}}function Bm(i){let e,t,n;function o(l){i[182](l)}let r={isMobile:!1,showDuration:i[55],position:i[4]?i[79]:i[80],duration:i[4]?i[81]:i[82]};return i[23].time!==void 0&&(r.ref=i[23].time),e=new Ar({props:r}),_e.push(()=>Fe(e,"ref",o)),{c(){D(e.$$.fragment)},m(l,a){R(e,l,a),n=!0},p(l,a){let s={};a[1]&16777216&&(s.showDuration=l[55]),a[0]&16|a[2]&393216&&(s.position=l[4]?l[79]:l[80]),a[0]&16|a[2]&1572864&&(s.duration=l[4]?l[81]:l[82]),!t&&a[0]&8388608&&(t=!0,s.ref=l[23].time,Oe(()=>t=!1)),e.$set(s)},i(l){n||(d(e.$$.fragment,l),n=!0)},o(l){_(e.$$.fragment,l),n=!1},d(l){B(e,l)}}}function Dm(i){let e,t;return e=new jr({props:{position:i[80],duration:i[82],timeCodes:i[101]}}),{c(){D(e.$$.fragment)},m(n,o){R(e,n,o),t=!0},p(n,o){let r={};o[2]&262144&&(r.position=n[80]),o[2]&1048576&&(r.duration=n[82]),e.$set(r)},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){_(e.$$.fragment,n),t=!1},d(n){B(e,n)}}}function o3(i){let e,t,n=i[20]&&Dm(i);return{c(){n&&n.c(),e=st()},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&&d(n,1)):(n=Dm(o),n.c(),d(n,1),n.m(e.parentNode,e)):n&&(ce(),_(n,1,1,()=>{n=null}),fe())},i(o){t||(d(n),t=!0)},o(o){_(n),t=!1},d(o){o&&k(e),n&&n.d(o)}}}function l3(i){var n;let e,t;return e=new Zr({props:{iconUrl:i[209],ariaLabel:(n=i[210])!=null?n:i[213],testId:i[211],onClick:i[212]}}),{c(){D(e.$$.fragment)},m(o,r){R(e,o,r),t=!0},p(o,r){var a;let l={};r[0]&268435456&&(l.iconUrl=o[209]),r[0]&268435456&&(l.ariaLabel=(a=o[210])!=null?a:o[213]),r[0]&268435456&&(l.testId=o[211]),r[0]&268435456&&(l.onClick=o[212]),e.$set(l)},i(o){t||(d(e.$$.fragment,o),t=!0)},o(o){_(e.$$.fragment,o),t=!1},d(o){B(e,o)}}}function Nm(i){let e,t;return e=new Ut({props:{tooltipContent:i[213],width:40,$$slots:{default:[l3]},$$scope:{ctx:i}}}),{c(){D(e.$$.fragment)},m(n,o){R(e,n,o),t=!0},p(n,o){let r={};o[0]&268435456&&(r.tooltipContent=n[213]),o[0]&268435456|o[6]&1073741824&&(r.$$scope={dirty:o,ctx:n}),e.$set(r)},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){_(e.$$.fragment,n),t=!1},d(n){B(e,n)}}}function Om(i){let e,t,n;function o(l){i[185](l)}let r={disabled:!i[6],tooltipContent:i[51],$$slots:{default:[r3]},$$scope:{ctx:i}};return i[23].vkLogo!==void 0&&(r.ref=i[23].vkLogo),e=new Ut({props:r}),_e.push(()=>Fe(e,"ref",o)),{c(){D(e.$$.fragment)},m(l,a){R(e,l,a),n=!0},p(l,a){let s={};a[0]&64&&(s.disabled=!l[6]),a[1]&1048576&&(s.tooltipContent=l[51]),a[0]&192|a[6]&1073741824&&(s.$$scope={dirty:a,ctx:l}),!t&&a[0]&8388608&&(t=!0,s.ref=l[23].vkLogo,Oe(()=>t=!1)),e.$set(s)},i(l){n||(d(e.$$.fragment,l),n=!0)},o(l){_(e.$$.fragment,l),n=!1},d(l){B(e,l)}}}function r3(i){let e,t;return e=new Or({props:{click:i[86],targetUrl:i[7],logoClickable:i[6]}}),{c(){D(e.$$.fragment)},m(n,o){R(e,n,o),t=!0},p(n,o){let r={};o[0]&128&&(r.targetUrl=n[7]),o[0]&64&&(r.logoClickable=n[6]),e.$set(r)},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){_(e.$$.fragment,n),t=!1},d(n){B(e,n)}}}function s3(i){let e,t;return e=new jd({props:{click:i[127]}}),{c(){D(e.$$.fragment)},m(n,o){R(e,n,o),t=!0},p:pe,i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){_(e.$$.fragment,n),t=!1},d(n){B(e,n)}}}function Fm(i){let e,t,n;function o(l){i[187](l)}let r={tooltipContent:i[52],$$slots:{default:[a3]},$$scope:{ctx:i}};return i[23].subtitles!==void 0&&(r.ref=i[23].subtitles),e=new Ut({props:r}),_e.push(()=>Fe(e,"ref",o)),{c(){D(e.$$.fragment)},m(l,a){R(e,l,a),n=!0},p(l,a){let s={};a[1]&2097152&&(s.tooltipContent=l[52]),a[0]&262144|a[6]&1073741824&&(s.$$scope={dirty:a,ctx:l}),!t&&a[0]&8388608&&(t=!0,s.ref=l[23].subtitles,Oe(()=>t=!1)),e.$set(s)},i(l){n||(d(e.$$.fragment,l),n=!0)},o(l){_(e.$$.fragment,l),n=!1},d(l){B(e,l)}}}function a3(i){let e,t;return e=new Id({props:{isSubtitlesEnabled:i[18],click:i[87]}}),{c(){D(e.$$.fragment)},m(n,o){R(e,n,o),t=!0},p(n,o){let r={};o[0]&262144&&(r.isSubtitlesEnabled=n[18]),e.$set(r)},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){_(e.$$.fragment,n),t=!1},d(n){B(e,n)}}}function Hm(i){var a;let e,t,n,o;function r(s){i[188](s)}let l={supportLink:i[10],playerControlsHeight:(a=i[46])==null?void 0:a.clientHeight,returnFocus:i[14]};return i[24]!==void 0&&(l.ref=i[24]),t=new Vr({props:l}),_e.push(()=>Fe(t,"ref",r)),{c(){e=P("div"),D(t.$$.fragment),c(e,"class","settings-menu svelte-st0uzk")},m(s,u){C(s,e,u),R(t,e,null),o=!0},p(s,u){var m;let f={};u[0]&1024&&(f.supportLink=s[10]),u[1]&32768&&(f.playerControlsHeight=(m=s[46])==null?void 0:m.clientHeight),u[0]&16384&&(f.returnFocus=s[14]),!n&&u[0]&16777216&&(n=!0,f.ref=s[24],Oe(()=>n=!1)),t.$set(f)},i(s){o||(d(t.$$.fragment,s),o=!0)},o(s){_(t.$$.fragment,s),o=!1},d(s){s&&k(e),B(t)}}}function zm(i){let e,t,n;function o(l){i[190](l)}let r={tooltipContent:i[27]?void 0:Q("tooltip_settings_off"),$$slots:{default:[u3]},$$scope:{ctx:i}};return i[23].settings!==void 0&&(r.ref=i[23].settings),e=new Ut({props:r}),_e.push(()=>Fe(e,"ref",o)),{c(){D(e.$$.fragment)},m(l,a){R(e,l,a),n=!0},p(l,a){let s={};a[0]&134217728&&(s.tooltipContent=l[27]?void 0:Q("tooltip_settings_off")),a[0]&33554432|a[6]&1073741824&&(s.$$scope={dirty:a,ctx:l}),!t&&a[0]&8388608&&(t=!0,s.ref=l[23].settings,Oe(()=>t=!1)),e.$set(s)},i(l){n||(d(e.$$.fragment,l),n=!0)},o(l){_(e.$$.fragment,l),n=!1},d(l){B(e,l)}}}function u3(i){let e,t,n;function o(l){i[189](l)}let r={};return i[25]!==void 0&&(r.ref=i[25]),e=new Nl({props:r}),_e.push(()=>Fe(e,"ref",o)),{c(){D(e.$$.fragment)},m(l,a){R(e,l,a),n=!0},p(l,a){let s={};!t&&a[0]&33554432&&(t=!0,s.ref=l[25],Oe(()=>t=!1)),e.$set(s)},i(l){n||(d(e.$$.fragment,l),n=!0)},o(l){_(e.$$.fragment,l),n=!1},d(l){B(e,l)}}}function c3(i){let e,t,n;function o(l){i[191](l)}let r={className:i[41]?"":"out-of-view",tooltipContent:i[49],$$slots:{default:[f3]},$$scope:{ctx:i}};return i[23].context!==void 0&&(r.ref=i[23].context),e=new Ut({props:r}),_e.push(()=>Fe(e,"ref",o)),{c(){D(e.$$.fragment)},m(l,a){R(e,l,a),n=!0},p(l,a){let s={};a[1]&1024&&(s.className=l[41]?"":"out-of-view"),a[1]&262144&&(s.tooltipContent=l[49]),a[1]&262144|a[6]&1073741824&&(s.$$scope={dirty:a,ctx:l}),!t&&a[0]&8388608&&(t=!0,s.ref=l[23].context,Oe(()=>t=!1)),e.$set(s)},i(l){n||(d(e.$$.fragment,l),n=!0)},o(l){_(e.$$.fragment,l),n=!1},d(l){B(e,l)}}}function f3(i){let e,t;return e=new Im({props:{ariaLabel:i[49]}}),{c(){D(e.$$.fragment)},m(n,o){R(e,n,o),t=!0},p(n,o){let r={};o[1]&262144&&(r.ariaLabel=n[49]),e.$set(r)},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){_(e.$$.fragment,n),t=!1},d(n){B(e,n)}}}function qm(i){let e,t,n;function o(l){i[192](l)}let r={tooltipContent:i[53],$$slots:{default:[d3]},$$scope:{ctx:i}};return i[23].fullscreen!==void 0&&(r.ref=i[23].fullscreen),e=new Ut({props:r}),_e.push(()=>Fe(e,"ref",o)),{c(){D(e.$$.fragment)},m(l,a){R(e,l,a),n=!0},p(l,a){let s={};a[1]&4194304&&(s.tooltipContent=l[53]),a[0]&1073750016|a[6]&1073741824&&(s.$$scope={dirty:a,ctx:l}),!t&&a[0]&8388608&&(t=!0,s.ref=l[23].fullscreen,Oe(()=>t=!1)),e.$set(s)},i(l){n||(d(e.$$.fragment,l),n=!0)},o(l){_(e.$$.fragment,l),n=!1},d(l){B(e,l)}}}function d3(i){let e,t;return e=new Dr({props:{click:i[13],isFullscreen:i[30]}}),{c(){D(e.$$.fragment)},m(n,o){R(e,n,o),t=!0},p(n,o){let r={};o[0]&8192&&(r.click=n[13]),o[0]&1073741824&&(r.isFullscreen=n[30]),e.$set(r)},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){_(e.$$.fragment,n),t=!1},d(n){B(e,n)}}}function Um(i){let e,t,n;function o(l){i[193](l)}let r={tooltipContent:i[54],$$slots:{default:[m3]},$$scope:{ctx:i}};return i[23].chromecast!==void 0&&(r.ref=i[23].chromecast),e=new Ut({props:r}),_e.push(()=>Fe(e,"ref",o)),{c(){D(e.$$.fragment)},m(l,a){R(e,l,a),n=!0},p(l,a){let s={};a[1]&8388608&&(s.tooltipContent=l[54]),a[0]&536870912|a[6]&1073741824&&(s.$$scope={dirty:a,ctx:l}),!t&&a[0]&8388608&&(t=!0,s.ref=l[23].chromecast,Oe(()=>t=!1)),e.$set(s)},i(l){n||(d(e.$$.fragment,l),n=!0)},o(l){_(e.$$.fragment,l),n=!1},d(l){B(e,l)}}}function m3(i){let e,t;return e=new Fr({props:{isMobile:!1,state:i[29],click:i[126]}}),{c(){D(e.$$.fragment)},m(n,o){R(e,n,o),t=!0},p(n,o){let r={};o[0]&536870912&&(r.state=n[29]),e.$set(r)},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){_(e.$$.fragment,n),t=!1},d(n){B(e,n)}}}function p3(i){let e,t,n;function o(l){i[196](l)}let r={};return i[23].interactiveTimeIndicator!==void 0&&(r.ref=i[23].interactiveTimeIndicator),e=new os({props:r}),_e.push(()=>Fe(e,"ref",o)),{c(){D(e.$$.fragment)},m(l,a){R(e,l,a),n=!0},p(l,a){let s={};!t&&a[0]&8388608&&(t=!0,s.ref=l[23].interactiveTimeIndicator,Oe(()=>t=!1)),e.$set(s)},i(l){n||(d(e.$$.fragment,l),n=!0)},o(l){_(e.$$.fragment,l),n=!1},d(l){B(e,l)}}}function _3(i){let e,t,n,o,r,l,a,s,u,f,m,h,y,b,S,w,T,v,g,I,A,q,K,re,ae,H,L,x,G,J;t=new Kr({props:{isHidden:!i[45],isAds:i[4],canRewindLive:i[5],isRewindableLive:i[32]}});let E=i[38]&&Mm(i),te=i[35]&&Vm(i),M=i[36]&&Am(i),ee=i[37]&&Lm(i),ke=i[117]&&Xv(i),Ge=!i[4]&&i[33]&&Rm(i),Ke=i[19]&&Bm(i);function Je(ue){i[183](ue)}let We={className:"w-max",disabled:!i[20],tooltipContent:Q("tooltip_episodes"),$$slots:{default:[o3]},$$scope:{ctx:i}};i[23].episodes!==void 0&&(We.ref=i[23].episodes),y=new Ut({props:We}),_e.push(()=>Fe(y,"ref",Je));let ve=Vt(i[28]),X=[];for(let ue=0;ue<ve.length;ue+=1)X[ue]=Nm(Em(i,ve,ue));let be=ue=>_(X[ue],1,1,()=>{X[ue]=null}),Ne=i[43]&&!i[4]&&Om(i);function xe(ue){i[186](ue)}let et={$$slots:{default:[s3]},$$scope:{ctx:i}};i[23].volume!==void 0&&(et.ref=i[23].volume),I=new Ut({props:et}),_e.push(()=>Fe(I,"ref",xe));let ye=i[40]&&Fm(i),Re=!i[83]&&!i[4]&&Hm(i),je=i[42]&&!i[4]&&zm(i),Xe=i[84].features.contextMenuButton&&c3(i),Ce=i[44]&&qm(i),Z=i[39]&&Um(i),Pe=i[122]&&p3(i);return{c(){e=P("div"),D(t.$$.fragment),n=O(),o=P("div"),r=P("div"),E&&E.c(),l=O(),te&&te.c(),a=O(),M&&M.c(),s=O(),ee&&ee.c(),u=O(),ke&&ke.c(),f=O(),Ge&&Ge.c(),m=O(),Ke&&Ke.c(),h=O(),D(y.$$.fragment),w=O(),T=P("div");for(let ue=0;ue<X.length;ue+=1)X[ue].c();v=O(),Ne&&Ne.c(),g=O(),D(I.$$.fragment),q=O(),ye&&ye.c(),K=O(),Re&&Re.c(),re=O(),je&&je.c(),ae=O(),Xe&&Xe.c(),H=O(),Ce&&Ce.c(),L=O(),Z&&Z.c(),x=O(),Pe&&Pe.c(),G=st(),c(r,"class","controls-left svelte-st0uzk"),Qn(()=>i[184].call(r)),c(T,"class","controls-right svelte-st0uzk"),c(o,"class","controls svelte-st0uzk"),c(e,"class","wrapper-bottom svelte-st0uzk"),z(e,"hidden",i[1]),z(e,"controls-hidden",!i[3]),z(e,"no-smooth",i[2])},m(ue,Ie){C(ue,e,Ie),R(t,e,null),p(e,n),p(e,o),p(o,r),E&&E.m(r,null),p(r,l),te&&te.m(r,null),p(r,a),M&&M.m(r,null),p(r,s),ee&&ee.m(r,null),p(r,u),ke&&ke.m(r,null),p(r,f),Ge&&Ge.m(r,null),p(r,m),Ke&&Ke.m(r,null),p(r,h),R(y,r,null),S=Xo(r,i[184].bind(r)),p(o,w),p(o,T);for(let Ye=0;Ye<X.length;Ye+=1)X[Ye]&&X[Ye].m(T,null);p(T,v),Ne&&Ne.m(T,null),p(T,g),R(I,T,null),p(T,q),ye&&ye.m(T,null),p(T,K),Re&&Re.m(T,null),p(T,re),je&&je.m(T,null),p(T,ae),Xe&&Xe.m(T,null),p(T,H),Ce&&Ce.m(T,null),p(T,L),Z&&Z.m(T,null),i[194](o),i[195](e),C(ue,x,Ie),Pe&&Pe.m(ue,Ie),C(ue,G,Ie),J=!0},p(ue,Ie){let Ye={};Ie[1]&16384&&(Ye.isHidden=!ue[45]),Ie[0]&16&&(Ye.isAds=ue[4]),Ie[0]&32&&(Ye.canRewindLive=ue[5]),Ie[1]&2&&(Ye.isRewindableLive=ue[32]),t.$set(Ye),ue[38]?E?(E.p(ue,Ie),Ie[1]&128&&d(E,1)):(E=Mm(ue),E.c(),d(E,1),E.m(r,l)):E&&(ce(),_(E,1,1,()=>{E=null}),fe()),ue[35]?te?(te.p(ue,Ie),Ie[1]&16&&d(te,1)):(te=Vm(ue),te.c(),d(te,1),te.m(r,a)):te&&(ce(),_(te,1,1,()=>{te=null}),fe()),ue[36]?M?(M.p(ue,Ie),Ie[1]&32&&d(M,1)):(M=Am(ue),M.c(),d(M,1),M.m(r,s)):M&&(ce(),_(M,1,1,()=>{M=null}),fe()),ue[37]?ee?(ee.p(ue,Ie),Ie[1]&64&&d(ee,1)):(ee=Lm(ue),ee.c(),d(ee,1),ee.m(r,u)):ee&&(ce(),_(ee,1,1,()=>{ee=null}),fe()),ue[117]&&ke.p(ue,Ie),!ue[4]&&ue[33]?Ge?(Ge.p(ue,Ie),Ie[0]&16|Ie[1]&4&&d(Ge,1)):(Ge=Rm(ue),Ge.c(),d(Ge,1),Ge.m(r,m)):Ge&&(ce(),_(Ge,1,1,()=>{Ge=null}),fe()),ue[19]?Ke?(Ke.p(ue,Ie),Ie[0]&524288&&d(Ke,1)):(Ke=Bm(ue),Ke.c(),d(Ke,1),Ke.m(r,h)):Ke&&(ce(),_(Ke,1,1,()=>{Ke=null}),fe());let ft={};if(Ie[0]&1048576&&(ft.disabled=!ue[20]),Ie[0]&1048576|Ie[2]&1310720|Ie[6]&1073741824&&(ft.$$scope={dirty:Ie,ctx:ue}),!b&&Ie[0]&8388608&&(b=!0,ft.ref=ue[23].episodes,Oe(()=>b=!1)),y.$set(ft),Ie[0]&268435456){ve=Vt(ue[28]);let dt;for(dt=0;dt<ve.length;dt+=1){let bt=Em(ue,ve,dt);X[dt]?(X[dt].p(bt,Ie),d(X[dt],1)):(X[dt]=Nm(bt),X[dt].c(),d(X[dt],1),X[dt].m(T,v))}for(ce(),dt=ve.length;dt<X.length;dt+=1)be(dt);fe()}ue[43]&&!ue[4]?Ne?(Ne.p(ue,Ie),Ie[0]&16|Ie[1]&4096&&d(Ne,1)):(Ne=Om(ue),Ne.c(),d(Ne,1),Ne.m(T,g)):Ne&&(ce(),_(Ne,1,1,()=>{Ne=null}),fe());let mt={};Ie[6]&1073741824&&(mt.$$scope={dirty:Ie,ctx:ue}),!A&&Ie[0]&8388608&&(A=!0,mt.ref=ue[23].volume,Oe(()=>A=!1)),I.$set(mt),ue[40]?ye?(ye.p(ue,Ie),Ie[1]&512&&d(ye,1)):(ye=Fm(ue),ye.c(),d(ye,1),ye.m(T,K)):ye&&(ce(),_(ye,1,1,()=>{ye=null}),fe()),!ue[83]&&!ue[4]?Re?(Re.p(ue,Ie),Ie[0]&16|Ie[2]&2097152&&d(Re,1)):(Re=Hm(ue),Re.c(),d(Re,1),Re.m(T,re)):Re&&(ce(),_(Re,1,1,()=>{Re=null}),fe()),ue[42]&&!ue[4]?je?(je.p(ue,Ie),Ie[0]&16|Ie[1]&2048&&d(je,1)):(je=zm(ue),je.c(),d(je,1),je.m(T,ae)):je&&(ce(),_(je,1,1,()=>{je=null}),fe()),ue[84].features.contextMenuButton&&Xe.p(ue,Ie),ue[44]?Ce?(Ce.p(ue,Ie),Ie[1]&8192&&d(Ce,1)):(Ce=qm(ue),Ce.c(),d(Ce,1),Ce.m(T,L)):Ce&&(ce(),_(Ce,1,1,()=>{Ce=null}),fe()),ue[39]?Z?(Z.p(ue,Ie),Ie[1]&256&&d(Z,1)):(Z=Um(ue),Z.c(),d(Z,1),Z.m(T,null)):Z&&(ce(),_(Z,1,1,()=>{Z=null}),fe()),(!J||Ie[0]&2)&&z(e,"hidden",ue[1]),(!J||Ie[0]&8)&&z(e,"controls-hidden",!ue[3]),(!J||Ie[0]&4)&&z(e,"no-smooth",ue[2]),ue[122]&&Pe.p(ue,Ie)},i(ue){if(!J){d(t.$$.fragment,ue),d(E),d(te),d(M),d(ee),d(ke),d(Ge),d(Ke),d(y.$$.fragment,ue);for(let Ie=0;Ie<ve.length;Ie+=1)d(X[Ie]);d(Ne),d(I.$$.fragment,ue),d(ye),d(Re),d(je),d(Xe),d(Ce),d(Z),d(Pe),J=!0}},o(ue){_(t.$$.fragment,ue),_(E),_(te),_(M),_(ee),_(ke),_(Ge),_(Ke),_(y.$$.fragment,ue),X=X.filter(Boolean);for(let Ie=0;Ie<X.length;Ie+=1)_(X[Ie]);_(Ne),_(I.$$.fragment,ue),_(ye),_(Re),_(je),_(Xe),_(Ce),_(Z),_(Pe),J=!1},d(ue){ue&&(k(e),k(x),k(G)),B(t),E&&E.d(),te&&te.d(),M&&M.d(),ee&&ee.d(),ke&&ke.d(),Ge&&Ge.d(),Ke&&Ke.d(),B(y),S(),Qi(X,ue),Ne&&Ne.d(),B(I),ye&&ye.d(),Re&&Re.d(),je&&je.d(),Xe&&Xe.d(),Ce&&Ce.d(),Z&&Z.d(),i[194](null),i[195](null),Pe&&Pe.d(ue)}}}function h3(i,e,t){var Nc,Oc;let n,o,r,l,a,s,u,f,m,h,y,b,S,w,T,v,g,I,A,q,K,re,ae,H,L,x,G,J,E,te,M,ee,ke=pe,Ge=()=>(ke(),ke=Xt(ae,$=>t(144,ee=$)),ae),Ke,Je=pe,We=()=>(Je(),Je=Xt(re,$=>t(145,Ke=$)),re),ve,X=pe,be=()=>(X(),X=Xt(K,$=>t(146,ve=$)),K),Ne,xe=pe,et=()=>(xe(),xe=Xt(q,$=>t(147,Ne=$)),q),ye,Re=pe,je=()=>(Re(),Re=Xt(A,$=>t(148,ye=$)),A),Xe,Ce=pe,Z=()=>(Ce(),Ce=Xt(I,$=>t(149,Xe=$)),I),Pe,ue=pe,Ie=()=>(ue(),ue=Xt(g,$=>t(150,Pe=$)),g),Ye,ft=pe,mt=()=>(ft(),ft=Xt(v,$=>t(151,Ye=$)),v),dt,bt=pe,wt=()=>(bt(),bt=Xt(T,$=>t(152,dt=$)),T),we,vt=pe,Nt=()=>(vt(),vt=Xt(w,$=>t(153,we=$)),w),Et,qe=pe,Kt=()=>(qe(),qe=Xt(S,$=>t(154,Et=$)),S),zt,Zt=pe,ti=()=>(Zt(),Zt=Xt(b,$=>t(155,zt=$)),b),Lt,Tt=pe,me=()=>(Tt(),Tt=Xt(y,$=>t(156,Lt=$)),y),Ue,Qe=pe,tt=()=>(Qe(),Qe=Xt(h,$=>t(157,Ue=$)),h),_t,ii=pe,Li=()=>(ii(),ii=Xt(m,$=>t(158,_t=$)),m),Gt,Ri=pe,Yi=()=>(Ri(),Ri=Xt(f,$=>t(159,Gt=$)),f),ni,vi=pe,_n=()=>(vi(),vi=Xt(u,$=>t(160,ni=$)),u),fi,Zi,di,Xi,yi,Bi,wi,Di,Mt,Rt,Ni,ki,xt,si,Ci,mi,gt,Oi,Pt,ai,hn,Cn,ui;i.$$.on_destroy.push(()=>ke()),i.$$.on_destroy.push(()=>Je()),i.$$.on_destroy.push(()=>X()),i.$$.on_destroy.push(()=>xe()),i.$$.on_destroy.push(()=>Re()),i.$$.on_destroy.push(()=>Ce()),i.$$.on_destroy.push(()=>ue()),i.$$.on_destroy.push(()=>ft()),i.$$.on_destroy.push(()=>bt()),i.$$.on_destroy.push(()=>vt()),i.$$.on_destroy.push(()=>qe()),i.$$.on_destroy.push(()=>Zt()),i.$$.on_destroy.push(()=>Tt()),i.$$.on_destroy.push(()=>Qe()),i.$$.on_destroy.push(()=>ii()),i.$$.on_destroy.push(()=>Ri()),i.$$.on_destroy.push(()=>vi());let{bottomHidden:Fi}=e,{bottomNoSmooth:Hi}=e,{showControls:Si}=e,{controlsElementRef:Ti=void 0}=e,{isAds:jt=!1}=e,{canRewindLive:$t}=e,{logoClickable:Pi}=e,{logoHidden:Ji}=e,{logoTargetUrl:zi=""}=e,{showNextPrevButtons:pi}=e,{nextButtonActive:un}=e,{prevButtonActive:gn}=e,{isOneVideoPlaylist:cn=!1}=e,{supportLink:bn}=e,{customFullscreenSupported:xi=!0}=e,{playNextVideo:oi}=e,{playPrevVideo:$i}=e,{repeatPlaylist:li}=e,{toggleFullscreen:qi}=e,{returnFocus:en}=e,{seekToInteractive:tn}=e,{toggleGraph:Ii}=e,{playPrevChapter:Ui}=e,$e=nt(),ci=Fn(),_i=Wt(),ze=$e.actions.internal.toggleMuted,nn=$e.actions.internal.togglePlay,on=$e.actions.internal.pause,fn=$e.actions.internal.toggleSubtitle,ln=(Nc=$e.callbacks)==null?void 0:Nc.onAudioDoesNotExistHint,Ki=(Oc=$e.callbacks)==null?void 0:Oc.onAudioDisabledHint,dn=$e.state.duration$;F(i,dn,$=>t(82,Cn=$));let hi=$e.state.positionWithScrubbing$;F(i,hi,$=>t(80,ai=$));let Sn=$e.state.playbackState$;F(i,Sn,$=>t(161,di=$));let Qt=$e.state.chromecastConnected$;F(i,Qt,$=>t(83,ui=$));let ji=$e.state.isAudioAvailable$;F(i,ji,$=>t(197,H=$));let se=$e.state.isAudioDisabled,ht=$e.state.isEnded$;F(i,ht,$=>t(169,si=$));let ei=$e.state.isLive$;F(i,ei,$=>t(33,Di=$));let rn=$e.state.isActiveLive$;F(i,rn,$=>t(163,Bi=$));let Ei=$e.state.isRewindableLive$;F(i,Ei,$=>t(32,wi=$));let Mi=$e.ui.isPictureInPictureActive$;F(i,Mi,$=>t(165,Rt=$));let ri=$e.ui.pictureInPictureType$;F(i,ri,$=>t(164,Mt=$));let Bn=$e.ui.settingsMenuVisible;F(i,Bn,$=>t(27,G=$));let In=$e.ui.settingsMenuOpenedByKeyboard;F(i,In,$=>t(140,x=$));let En=$e.ui.controls,Yt=$e.actions.internal.getVideoEpisodes(),Zn=$e.state.chromecastState$;F(i,Zn,$=>t(29,fi=$));let Xn=$e.state.availableSubtitlesList$;F(i,Xn,$=>t(168,xt=$));let Dn=$e.state.currentSubtitle$;F(i,Dn,$=>t(170,Ci=$));let zn=En.disabledControls$;F(i,zn,$=>t(172,gt=$));let Mn=$e.ui.contextMenu.visible$;F(i,Mn,$=>t(162,Xi=$));let qn=$e.ui.contextMenu.showContextMenuBtn$;F(i,qn,$=>t(166,Ni=$));let Tn=$e.ui.contextMenu.openedByBtnKeyboard$;F(i,Tn,$=>t(167,ki=$));let Nn=$e.ui.startedByKeyboard$;F(i,Nn,$=>t(139,L=$));let Un=$e.ads.duration;F(i,Un,$=>t(81,hn=$));let ne=$e.ads.position;F(i,ne,$=>t(79,Pt=$));let It=$e.ads.playbackState;F(i,It,$=>t(171,mi=$));let Vn=$e.ui.isFullscreen;F(i,Vn,$=>t(30,Zi=$));let vn=$e.ui.playerSize;F(i,vn,$=>t(142,E=$));let Kn=$e.ui.currentGridType$;F(i,Kn,$=>t(143,te=$));let sn=$e.ui.additionalButtons$;F(i,sn,$=>t(28,M=$));let io=$e.actions.internal.getVideoElement,ao=$e.actions.internal.replayInteractive,yn=$e.state.isInteractive,ie=$e.state.isInteractiveTime$;F(i,ie,$=>t(141,J=$));let uo=$e.state.showInteractiveGraph,Co=$e.state.showSeekToInteractive,Wo=$e.state.showPlayPrevChapter,So=$e.state.showInteractiveTimeIndicator,co=$e.state.graphIsOpened$;F(i,co,$=>t(31,yi=$));let no=$e.state.playPrevChapterDisabledTooltip,fo=ci.seekToInteractiveDisabledTooltip$;F(i,fo,$=>t(78,Oi=$));let Go=()=>$e.actions.internal.toggleChromecast(),Qo,Jn,Yo,To,Po,Zo,kt,Io,Y,Ct,mn,V,le,Se,He,at,St,qt,Bt,Wi,Eo,Cl="",Wl=($,ks)=>{if(!$){t(50,Cl=Q("tooltip_live"));return}ks===Ko.PlaybackState.PAUSED&&t(50,Cl=Q("tooltip_play"))},Ac,Lc,Rc,Bc,Gl,rt={},jn,Sl,ws,Dc,l_=(0,Km.throttleFn)(is,260,{leading:!1}),Ql,Yl,Zl;function r_(){bo({isAudioDisabled:se,audioDisabledHintCallback:Ki,isAudioAvailable:H,audioIsNotExistHintCallback:ln})&&ze()}let s_=yn?ao:cn?nn:li;function a_($){i.$$.not_equal(rt.prevButton,$)&&(rt.prevButton=$,t(23,rt))}function u_($){i.$$.not_equal(rt.replayButton,$)&&(rt.replayButton=$,t(23,rt))}function c_($){Zl=$,t(26,Zl)}function f_($){i.$$.not_equal(rt.playButton,$)&&(rt.playButton=$,t(23,rt))}function d_($){i.$$.not_equal(rt.nextButton,$)&&(rt.nextButton=$,t(23,rt))}function m_($){i.$$.not_equal(rt.playPrevChapterButton,$)&&(rt.playPrevChapterButton=$,t(23,rt))}function p_($){i.$$.not_equal(rt.seekToInteractiveButton,$)&&(rt.seekToInteractiveButton=$,t(23,rt))}function __($){i.$$.not_equal(rt.interactiveGraphButton,$)&&(rt.interactiveGraphButton=$,t(23,rt))}function h_($){i.$$.not_equal(rt.liveButton,$)&&(rt.liveButton=$,t(23,rt))}function g_($){i.$$.not_equal(rt.time,$)&&(rt.time=$,t(23,rt))}function b_($){i.$$.not_equal(rt.episodes,$)&&(rt.episodes=$,t(23,rt))}function v_(){Gl=this.clientWidth,t(22,Gl)}function y_($){i.$$.not_equal(rt.vkLogo,$)&&(rt.vkLogo=$,t(23,rt))}function w_($){i.$$.not_equal(rt.volume,$)&&(rt.volume=$,t(23,rt))}function k_($){i.$$.not_equal(rt.subtitles,$)&&(rt.subtitles=$,t(23,rt))}function C_($){Ql=$,t(24,Ql)}function S_($){Yl=$,t(25,Yl)}function T_($){i.$$.not_equal(rt.settings,$)&&(rt.settings=$,t(23,rt))}function P_($){i.$$.not_equal(rt.context,$)&&(rt.context=$,t(23,rt))}function I_($){i.$$.not_equal(rt.fullscreen,$)&&(rt.fullscreen=$,t(23,rt))}function E_($){i.$$.not_equal(rt.chromecast,$)&&(rt.chromecast=$,t(23,rt))}function M_($){_e[$?"unshift":"push"](()=>{St=$,t(46,St)})}function V_($){_e[$?"unshift":"push"](()=>{Ti=$,t(0,Ti)})}function A_($){i.$$.not_equal(rt.interactiveTimeIndicator,$)&&(rt.interactiveTimeIndicator=$,t(23,rt))}i.$$set=$=>{"bottomHidden"in $&&t(1,Fi=$.bottomHidden),"bottomNoSmooth"in $&&t(2,Hi=$.bottomNoSmooth),"showControls"in $&&t(3,Si=$.showControls),"controlsElementRef"in $&&t(0,Ti=$.controlsElementRef),"isAds"in $&&t(4,jt=$.isAds),"canRewindLive"in $&&t(5,$t=$.canRewindLive),"logoClickable"in $&&t(6,Pi=$.logoClickable),"logoHidden"in $&&t(129,Ji=$.logoHidden),"logoTargetUrl"in $&&t(7,zi=$.logoTargetUrl),"showNextPrevButtons"in $&&t(130,pi=$.showNextPrevButtons),"nextButtonActive"in $&&t(8,un=$.nextButtonActive),"prevButtonActive"in $&&t(9,gn=$.prevButtonActive),"isOneVideoPlaylist"in $&&t(131,cn=$.isOneVideoPlaylist),"supportLink"in $&&t(10,bn=$.supportLink),"customFullscreenSupported"in $&&t(132,xi=$.customFullscreenSupported),"playNextVideo"in $&&t(11,oi=$.playNextVideo),"playPrevVideo"in $&&t(12,$i=$.playPrevVideo),"repeatPlaylist"in $&&t(133,li=$.repeatPlaylist),"toggleFullscreen"in $&&t(13,qi=$.toggleFullscreen),"returnFocus"in $&&t(14,en=$.returnFocus),"seekToInteractive"in $&&t(15,tn=$.seekToInteractive),"toggleGraph"in $&&t(16,Ii=$.toggleGraph),"playPrevChapter"in $&&t(17,Ui=$.playPrevChapter)},i.$$.update=()=>{if(i.$$.dirty[5]&131072)e:t(138,n=gt.has("EPISODE_BUTTON"));if(i.$$.dirty[5]&131072)e:t(77,o=gt.has("GRAPH_BUTTON"));if(i.$$.dirty[5]&131072)e:t(76,r=gt.has("SEEK_TO_INTERACTIVE_BUTTON"));if(i.$$.dirty[5]&131072)e:t(75,l=gt.has("PLAY_BUTTON"));if(i.$$.dirty[5]&131072)e:t(74,a=gt.has("REPLAY_BUTTON"));if(i.$$.dirty[5]&131072)e:t(73,s=gt.has("PLAY_PREV_CHAPTER_BUTTON"));if(i.$$.dirty[0]&16|i.$$.dirty[5]&65600)e:t(34,Qo=jt?mi==="playing":di===Ko.PlaybackState.PLAYING);if(i.$$.dirty[5]&32768)e:t(18,Jn=Ci.value!=="off");if(i.$$.dirty[0]&16|i.$$.dirty[5]&16384)e:t(35,Yo=si&&!jt||yn);if(i.$$.dirty[0]&16|i.$$.dirty[5]&16384)e:t(36,To=!si||yn||jt);if(i.$$.dirty[4]&524288)e:t(134,Po=Rn(te,"m"));if(i.$$.dirty[0]&272|i.$$.dirty[4]&524352)e:t(37,Zo=pi&&Rn(te,"m")&&!jt&&un);if(i.$$.dirty[0]&528|i.$$.dirty[4]&524352)e:t(38,kt=pi&&Rn(te,"m")&&!jt&&gn);if(i.$$.dirty[0]&536870912|i.$$.dirty[4]&524288|i.$$.dirty[5]&1536)e:t(39,Io=fi!==Ko.ChromecastState.NOT_AVAILABLE&&!(Rt&&Mt===1)&&Rn(te,"m")&&!yn);if(i.$$.dirty[4]&524288|i.$$.dirty[5]&8192)e:t(40,Y=xt.length>0&&Rn(te,"m"));if(i.$$.dirty[5]&6144)e:t(41,Ct=ki||Ni);if(i.$$.dirty[4]&524288)e:t(42,mn=Rn(te,"s"));if(i.$$.dirty[4]&32)e:t(43,V=!Ji);if(i.$$.dirty[4]&524576|i.$$.dirty[5]&1536)e:t(44,le=_i.features.fullscreen&&(Ji||Rn(te,"s"))&&!(Rt&&Mt===1)&&(yn?xi:!0));if(i.$$.dirty[0]&16|i.$$.dirty[1]&4)e:t(19,Se=(!Di||jt)&&!(_i.features.interactiveHideTime&&yn));if(i.$$.dirty[4]&262144)e:t(45,He=E.width>100);if(i.$$.dirty[0]&16|i.$$.dirty[1]&4|i.$$.dirty[4]&17408)e:t(20,at=!jt&&!Di&&!!(Yt!=null&&Yt.length)&&Po&&!n);if(i.$$.dirty[1]&2|i.$$.dirty[5]&256)e:t(21,qt=!wi||Bi);if(i.$$.dirty[5]&64)e:t(47,Bt=di===Ko.PlaybackState.PLAYING?Q("tooltip_pause"):Q("tooltip_play"));if(i.$$.dirty[1]&1)e:t(48,Wi=yi?Q("tooltip_interactive_graph_on"):Q("tooltip_interactive_graph_off"));if(i.$$.dirty[5]&128)e:t(49,Eo=Xi?Q("aria_label_context_menu_close"):Q("aria_label_context_menu_open"));if(i.$$.dirty[0]&2097152|i.$$.dirty[5]&64)e:Wl(qt,di);if(i.$$.dirty[0]&262144)e:t(52,Lc=Jn?Q("tooltip_subtitles_on"):Q("tooltip_subtitles_off"));if(i.$$.dirty[0]&1073741824)e:t(53,Rc=Zi?Q("tooltip_fullscreen_on"):Q("tooltip_fullscreen_off"));if(i.$$.dirty[0]&536870912)e:t(54,Bc=fi===Ko.ChromecastState.CONNECTED?Q("tooltip_chromecast_on"):Q("tooltip_chromecast_off"));if(i.$$.dirty[0]&268435456|i.$$.dirty[4]&2146435072|i.$$.dirty[5]&63)e:t(135,jn={prevButton:ni?ni.right-ni.left:0,replayButton:Gt?Gt.right-Gt.left:0,playButton:_t?_t.right-_t.left:0,nextButton:Ue?Ue.right-Ue.left:0,playPrevChapterButton:Lt?Lt.right-Lt.left:0,seekToInteractiveButton:zt?zt.right-zt.left:0,interactiveGraphButton:Et?Et.right-Et.left:0,liveButton:we?we.right-we.left:0,time:dt?dt.right-dt.left:0,episodes:Ye?Ye.right-Ye.left:0,vkLogo:Pe?Pe.right-Pe.left:0,volume:Xe?Xe.right-Xe.left:0,subtitles:ye?ye.right-ye.left:0,settings:Ne?Ne.right-Ne.left:0,context:ve?ve.right-ve.left:0,fullscreen:Ke?Ke.right-Ke.left:0,chromecast:ee?ee.right-ee.left:0,additionalButtons:M.length?M.reduce($=>[...$,40],[]):[]});if(i.$$.dirty[4]&6144)e:(!Sl||Sl<jn.time)&&t(136,Sl=jn.time);if(i.$$.dirty[0]&5767168|i.$$.dirty[4]&530432)e:{let $=0;at&&(Rn(te,"xl")?$=jn.time:$=60);let ks=jn.prevButton+jn.playButton+jn.nextButton+jn.seekToInteractiveButton+jn.interactiveGraphButton+jn.liveButton+Sl+$;t(137,ws=Se&&Gl>=ks)}if(i.$$.dirty[4]&532480)e:t(55,Dc=ws&&Rn(te,"m"));if(i.$$.dirty[0]&8388616|i.$$.dirty[4]&393216)e:l_(io(),En,rt,Si);if(i.$$.dirty[0]&167772160)e:al(Yl,G,In);if(i.$$.dirty[0]&150994944|i.$$.dirty[4]&65536)e:qo(Ql,G,x);if(i.$$.dirty[0]&67108864|i.$$.dirty[4]&32768)e:ns(Nn,L,Zl)};e:t(51,Ac=_i.logoType==="vk_video"?Q("tooltip_vk_video_logo"):Q("tooltip_vk_logo"));e:_n(t(72,{prevButton:u,replayButton:f,playButton:m,nextButton:h,playPrevChapterButton:y,seekToInteractiveButton:b,interactiveGraphButton:S,liveButton:w,time:T,episodes:v,vkLogo:g,volume:I,subtitles:A,settings:q,context:K,fullscreen:re,chromecast:ae}=En,u,Yi(t(71,f)),Li(t(70,m)),tt(t(69,h)),me(t(68,y)),ti(t(67,b)),Kt(t(66,S)),Nt(t(65,w)),wt(t(64,T)),mt(t(63,v)),Ie(t(62,g)),Z(t(61,I)),je(t(60,A)),et(t(59,q)),be(t(58,K)),We(t(57,re)),Ge(t(56,ae))));return[Ti,Fi,Hi,Si,jt,$t,Pi,zi,un,gn,bn,oi,$i,qi,en,tn,Ii,Ui,Jn,Se,at,qt,Gl,rt,Ql,Yl,Zl,G,M,fi,Zi,yi,wi,Di,Qo,Yo,To,Zo,kt,Io,Y,Ct,mn,V,le,He,St,Bt,Wi,Eo,Cl,Ac,Lc,Rc,Bc,Dc,ae,re,K,q,A,I,g,v,T,w,S,b,y,h,m,f,u,s,a,l,r,o,Oi,Pt,ai,hn,Cn,ui,_i,nn,on,fn,dn,hi,Sn,Qt,ji,ht,ei,rn,Ei,Mi,ri,Bn,In,Yt,Zn,Xn,Dn,zn,Mn,qn,Tn,Nn,Un,ne,It,Vn,vn,Kn,sn,yn,ie,uo,Co,Wo,So,co,no,fo,Go,r_,s_,Ji,pi,cn,xi,li,Po,jn,Sl,ws,n,L,x,J,E,te,ee,Ke,ve,Ne,ye,Xe,Pe,Ye,dt,we,Et,zt,Lt,Ue,_t,Gt,ni,di,Xi,Bi,Mt,Rt,Ni,ki,xt,si,Ci,mi,gt,a_,u_,c_,f_,d_,m_,p_,__,h_,g_,b_,v_,y_,w_,k_,C_,S_,T_,P_,I_,E_,M_,V_,A_]}var Hu=class extends j{constructor(e){super(),W(this,e,h3,_3,U,{bottomHidden:1,bottomNoSmooth:2,showControls:3,controlsElementRef:0,isAds:4,canRewindLive:5,logoClickable:6,logoHidden:129,logoTargetUrl:7,showNextPrevButtons:130,nextButtonActive:8,prevButtonActive:9,isOneVideoPlaylist:131,supportLink:10,customFullscreenSupported:132,playNextVideo:11,playPrevVideo:12,repeatPlaylist:133,toggleFullscreen:13,returnFocus:14,seekToInteractive:15,toggleGraph:16,playPrevChapter:17},Wv,[-1,-1,-1,-1,-1,-1,-1])}},jm=Hu;var hl=require("@vkontakte/videoplayer-core");function g3(i){let e,t,n,o,r,l=i[2].default,a=Ee(l,i,i[1],null),s=[{xmlns:"http://www.w3.org/2000/svg"},{width:"24"},{height:"24"},{"aria-hidden":"true"},{"data-testid":"muted-icon"},{role:"img"},i[0]],u={};for(let f=0;f<s.length;f+=1)u=oe(u,s[f]);return{c(){e=N("svg"),a&&a.c(),t=N("g"),n=N("path"),o=N("path"),c(n,"d","M0 0h24v24H0z"),c(o,"fill","#fff"),c(o,"d","M8.695 8.105 5.301 4.71a1 1 0 0 1 1.414-1.415L20.7 17.285a1 1 0 0 1-1.414 1.415L16 15.41V20a1 1 0 0 1-1 1c-.641 0-1.258-.25-1.72-.695L7.79 15H5a2 2 0 0 1-2-2v-2a2 2 0 0 1 2-2h2.765zm2.88-2.77 1.704-1.642A2.48 2.48 0 0 1 15 3a1 1 0 0 1 1 1v5.76l-4.426-4.426Z"),c(t,"fill","none"),c(t,"fill-rule","evenodd"),ge(e,u)},m(f,m){C(f,e,m),a&&a.m(e,null),p(e,t),p(t,n),p(t,o),r=!0},p(f,[m]){a&&a.p&&(!r||m&2)&&Ve(a,l,f,f[1],r?Me(l,f[1],m,null):Ae(f[1]),null),ge(e,u=Le(s,[{xmlns:"http://www.w3.org/2000/svg"},{width:"24"},{height:"24"},{"aria-hidden":"true"},{"data-testid":"muted-icon"},{role:"img"},m&1&&f[0]]))},i(f){r||(d(a,f),r=!0)},o(f){_(a,f),r=!1},d(f){f&&k(e),a&&a.d(f)}}}function b3(i,e,t){let{$$slots:n={},$$scope:o}=e;return i.$$set=r=>{t(0,e=oe(oe({},e),he(r))),"$$scope"in r&&t(1,o=r.$$scope)},e=he(e),[e,o,n]}var qu=class extends j{constructor(e){super(),W(this,e,b3,g3,U,{})}},Wm=qu;var Qm=require("@vkontakte/videoplayer-shared");function v3(i){Te(i,"svelte-6gmlbk",".container.svelte-6gmlbk{display:flex;align-items:center}.expanded.svelte-6gmlbk{background-color:rgba(0, 0, 0, 0.56);border-radius:6px}.text.svelte-6gmlbk{font-size:15px;margin-left:8px}")}function Gm(i){let e;return{c(){e=P("span"),e.textContent=`${Q("mobile_unmute")}`,c(e,"class","text svelte-6gmlbk")},m(t,n){C(t,e,n)},p:pe,d(t){t&&k(e)}}}function y3(i){let e,t,n,o;var r=i[4];function l(s){return{}}r&&(t=Pn(r,l(i)));let a=i[1]&&Gm(i);return{c(){e=P("div"),t&&D(t.$$.fragment),n=O(),a&&a.c(),c(e,"class","container svelte-6gmlbk"),c(e,"aria-hidden","true"),z(e,"expanded",i[1])},m(s,u){C(s,e,u),t&&R(t,e,null),p(e,n),a&&a.m(e,null),o=!0},p(s,u){if(u&16&&r!==(r=s[4])){if(t){ce();let f=t;_(f.$$.fragment,1,0,()=>{B(f,1)}),fe()}r?(t=Pn(r,l(s)),D(t.$$.fragment),d(t.$$.fragment,1),R(t,e,n)):t=null}s[1]?a?a.p(s,u):(a=Gm(s),a.c(),a.m(e,null)):a&&(a.d(1),a=null),(!o||u&2)&&z(e,"expanded",s[1])},i(s){o||(t&&d(t.$$.fragment,s),o=!0)},o(s){t&&_(t.$$.fragment,s),o=!1},d(s){s&&k(e),t&&B(t),a&&a.d()}}}function w3(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:[y3]},$$scope:{ctx:i}};return i[0]!==void 0&&(r.ref=i[0]),e=new yt({props:r}),_e.push(()=>Fe(e,"ref",o)),{c(){D(e.$$.fragment)},m(l,a){R(e,l,a),n=!0},p(l,[a]){let s={};a&2&&(s.testId=l[1]?"btn-mobile-unmuted":"btn-mobile-muted"),a&4&&(s.click=l[2]),a&8&&(s.ariaLabel=l[3]),a&146&&(s.$$scope={dirty:a,ctx:l}),!t&&a&1&&(t=!0,s.ref=l[0],Oe(()=>t=!1)),e.$set(s)},i(l){n||(d(e.$$.fragment,l),n=!0)},o(l){_(e.$$.fragment,l),n=!1},d(l){B(e,l)}}}function k3(i,e,t){let{muted:n=!1}=e,{expanded:o=!1}=e,{click:r=Qm.noop}=e,{ref:l=void 0}=e,a,s;function u(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=()=>{if(i.$$.dirty&32)e:t(3,a=n?Q("tooltip_volume"):Q("tooltip_volume_muted"));if(i.$$.dirty&2)e:t(4,s=o?Uo:Wm)},[l,o,r,a,s,n,u]}var Uu=class extends j{constructor(e){super(),W(this,e,k3,w3,U,{muted:5,expanded:1,click:2,ref:0},v3)}},Ku=Uu;function C3(i){let e,t,n,o,r,l=i[2].default,a=Ee(l,i,i[1],null),s=[{xmlns:"http://www.w3.org/2000/svg"},{width:"24"},{height:"24"},{fill:"none"},{role:"img"},i[0]],u={};for(let f=0;f<s.length;f+=1)u=oe(u,s[f]);return{c(){e=N("svg"),a&&a.c(),t=N("path"),n=N("path"),o=N("path"),c(t,"fill","currentColor"),c(t,"d","M7.662 4h6.676c.808 0 1.469 0 2.006.044.556.045 1.058.142 1.526.381a3.9 3.9 0 0 1 1.705 1.704c.239.47.336.971.381 1.527C20 8.193 20 8.854 20 9.662V11.1a.9.9 0 0 1-1.8 0V9.7c0-.855 0-1.442-.038-1.897-.036-.445-.103-.684-.19-.856a2.1 2.1 0 0 0-.919-.918c-.172-.088-.411-.155-.856-.191C15.742 5.8 15.155 5.8 14.3 5.8H7.7c-.855 0-1.442 0-1.897.038-.445.036-.684.103-.856.19a2.1 2.1 0 0 0-.918.919c-.088.172-.155.411-.191.856C3.8 8.258 3.8 8.845 3.8 9.7v2.646c0 .855 0 1.442.038 1.897.036.445.103.683.19.856a2.1 2.1 0 0 0 .919.918c.172.088.411.155.856.191.455.037 1.042.038 1.897.038h2.4a.9.9 0 0 1 0 1.8H7.662c-.808 0-1.469 0-2.006-.044-.556-.045-1.058-.142-1.527-.381a3.9 3.9 0 0 1-1.704-1.704c-.239-.47-.336-.972-.381-1.527C2 13.852 2 13.192 2 12.384V9.662c0-.808 0-1.469.044-2.006.045-.556.142-1.058.381-1.527A3.9 3.9 0 0 1 4.13 4.425c.47-.239.971-.336 1.527-.381C6.193 4 6.854 4 7.662 4M13 16.8c0-.98 0-1.47.19-1.845a1.75 1.75 0 0 1 .766-.764C14.33 14 14.82 14 15.8 14h3.4c.98 0 1.47 0 1.845.19.329.168.596.436.764.766.191.374.191.864.191 1.844v.4c0 .98 0 1.47-.19 1.845a1.75 1.75 0 0 1-.765.764C20.67 20 20.18 20 19.2 20h-3.4c-.98 0-1.47 0-1.845-.19a1.75 1.75 0 0 1-.764-.765C13 18.67 13 18.18 13 17.2z"),c(t,"clip-rule","evenodd"),c(n,"fill","currentColor"),c(n,"d","m11.643 12.37-.007-.006L9.073 9.8H10.1a.9.9 0 1 0 0-1.8H6.9a.9.9 0 0 0-.9.9v3.2a.9.9 0 0 0 1.8 0v-1.022l2.53 2.524.134.134a.9.9 0 0 0 1.272-1.272z"),c(n,"class","hidden-not-active"),c(o,"fill","currentColor"),c(o,"d","m6.357 9.63.007.006L8.927 12.2H7.9a.9.9 0 1 0 0 1.8h3.2a.9.9 0 0 0 .9-.9V9.9a.9.9 0 0 0-1.8 0v1.022L7.67 8.397l-.134-.133a.9.9 0 0 0-1.272 1.272z"),c(o,"class","hidden-active"),ge(e,u)},m(f,m){C(f,e,m),a&&a.m(e,null),p(e,t),p(e,n),p(e,o),r=!0},p(f,[m]){a&&a.p&&(!r||m&2)&&Ve(a,l,f,f[1],r?Me(l,f[1],m,null):Ae(f[1]),null),ge(e,u=Le(s,[{xmlns:"http://www.w3.org/2000/svg"},{width:"24"},{height:"24"},{fill:"none"},{role:"img"},m&1&&f[0]]))},i(f){r||(d(a,f),r=!0)},o(f){_(a,f),r=!1},d(f){f&&k(e),a&&a.d(f)}}}function S3(i,e,t){let{$$slots:n={},$$scope:o}=e;return i.$$set=r=>{t(0,e=oe(oe({},e),he(r))),"$$scope"in r&&t(1,o=r.$$scope)},e=he(e),[e,o,n]}var ju=class extends j{constructor(e){super(),W(this,e,S3,C3,U,{})}},Ym=ju;function T3(i){Te(i,"svelte-sba75o",'svg[data-testid="pip-icon--active"] .hidden-not-active,svg[data-testid="pip-icon"] .hidden-active{visibility:hidden;opacity:0}')}function P3(i){let e,t;return e=new Ym({props:{style:i[1],"data-testid":i[0]?"pip-icon--active":"pip-icon"}}),{c(){D(e.$$.fragment)},m(n,o){R(e,n,o),t=!0},p(n,[o]){let r={};o&2&&(r.style=n[1]),o&1&&(r["data-testid"]=n[0]?"pip-icon--active":"pip-icon"),e.$set(r)},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){_(e.$$.fragment,n),t=!1},d(n){B(e,n)}}}function I3(i,e,t){let n,{isActive:o=!1}=e;return i.$$set=r=>{"isActive"in r&&t(0,o=r.isActive)},i.$$.update=()=>{if(i.$$.dirty&1)e:t(1,n=o?"color: #2688EB;":"color: #fff;")},[o,n]}var Wu=class extends j{constructor(e){super(),W(this,e,I3,P3,U,{isActive:0},T3)}},Zm=Wu;var Xm=require("@vkontakte/videoplayer-shared");function E3(i){let e,t;return e=new Zm({props:{isActive:i[1]}}),{c(){D(e.$$.fragment)},m(n,o){R(e,n,o),t=!0},p(n,o){let r={};o&2&&(r.isActive=n[1]),e.$set(r)},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){_(e.$$.fragment,n),t=!1},d(n){B(e,n)}}}function M3(i){let e,t,n;function o(l){i[3](l)}let r={testId:"btn-pip",ariaLabel:Q("menu_pip"),click:i[2],$$slots:{default:[E3]},$$scope:{ctx:i}};return i[0]!==void 0&&(r.ref=i[0]),e=new yt({props:r}),_e.push(()=>Fe(e,"ref",o)),{c(){D(e.$$.fragment)},m(l,a){R(e,l,a),n=!0},p(l,[a]){let s={};a&4&&(s.click=l[2]),a&18&&(s.$$scope={dirty:a,ctx:l}),!t&&a&1&&(t=!0,s.ref=l[0],Oe(()=>t=!1)),e.$set(s)},i(l){n||(d(e.$$.fragment,l),n=!0)},o(l){_(e.$$.fragment,l),n=!1},d(l){B(e,l)}}}function V3(i,e,t){let{ref:n=void 0}=e,{isPictureInPictureActive:o=!1}=e,{click:r=Xm.noop}=e;function l(a){n=a,t(0,n)}return i.$$set=a=>{"ref"in a&&t(0,n=a.ref),"isPictureInPictureActive"in a&&t(1,o=a.isPictureInPictureActive),"click"in a&&t(2,r=a.click)},[n,o,r,l]}var Gu=class extends j{constructor(e){super(),W(this,e,V3,M3,U,{ref:0,isPictureInPictureActive:1,click:2})}},Jm=Gu;var y0=require("@vkontakte/videoplayer-shared");function A3(i){Te(i,"svelte-1tcstu3",".wrapper-bottom.svelte-1tcstu3.svelte-1tcstu3{pointer-events:none;position:absolute;width:100%;bottom:0;left:0;height:var(--controls-gradient-height);background:var(--controls-gradient);transition:transform var(--controls-transition-duration) var(--controls-transition-fn);display:flex;flex-direction:column;justify-content:flex-end;box-sizing:border-box;padding:0 4px 8px}.wrapper-bottom.svelte-1tcstu3>.svelte-1tcstu3{pointer-events:auto}.wrapper-bottom.ads-timeline-mobile.svelte-1tcstu3.svelte-1tcstu3{height:9px;padding:0 4px 4px}.wrapper-middle.svelte-1tcstu3.svelte-1tcstu3{position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);transition:opacity var(--controls-transition-duration);display:flex;align-items:center}.wrapper-top-right.svelte-1tcstu3.svelte-1tcstu3{position:absolute;top:4px;right:8px;transition:opacity var(--controls-transition-duration);display:flex}.wrapper-top-left.svelte-1tcstu3.svelte-1tcstu3{position:absolute;top:4px;left:8px}.wrapper-middle-left.svelte-1tcstu3.svelte-1tcstu3,.wrapper-middle-left-second.svelte-1tcstu3.svelte-1tcstu3,.wrapper-middle-right.svelte-1tcstu3.svelte-1tcstu3{position:absolute;top:50%;transform:translateY(-50%);height:44px;width:44px;border-radius:12px;background-color:rgba(0, 0, 0, 0.56);transition:opacity var(--controls-transition-duration);display:flex;align-items:center;justify-content:center}.wrapper-middle-left.svelte-1tcstu3.svelte-1tcstu3{left:12px}.wrapper-middle-left-second.svelte-1tcstu3.svelte-1tcstu3{left:64px}.wrapper-middle-right.svelte-1tcstu3.svelte-1tcstu3{right:12px}.controls.svelte-1tcstu3.svelte-1tcstu3{width:100%;display:flex;align-items:center;height:var(--controls-height);white-space:nowrap;font-size:13px;transition:transform var(--controls-transition-duration) var(--controls-transition-fn);will-change:transform;padding:0 4px;box-sizing:border-box}.controls.svelte-1tcstu3 > *:not(:first-child){margin-left:8px}.hidden.svelte-1tcstu3.svelte-1tcstu3{visibility:hidden;opacity:0}.controls-hidden.svelte-1tcstu3.svelte-1tcstu3{visibility:visible;transform:translateY(100%)}.wrapper-bottom.no-smooth.svelte-1tcstu3.svelte-1tcstu3{transition:none}.settings-mobile.svelte-1tcstu3.svelte-1tcstu3{position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);transition:opacity var(--controls-transition-duration);display:flex;align-items:center;max-width:320px;width:90%}.overlay-mobile.svelte-1tcstu3.svelte-1tcstu3{position:absolute;top:0;left:0;width:100%;height:100%;background-color:rgba(0, 0, 0, .3);pointer-events:none;transition:opacity var(--controls-transition-duration)}@media screen and (orientation: portrait){.wrapper-top-right.fullscreen.svelte-1tcstu3.svelte-1tcstu3{top:16px}.wrapper-top-left.fullscreen.svelte-1tcstu3.svelte-1tcstu3{top:16px}.controls-wrapper.fullscreen.svelte-1tcstu3.svelte-1tcstu3{position:absolute;bottom:30px;width:calc(100% - 8px)}}@media screen and (orientation: landscape){.wrapper-top-left.fullscreen.svelte-1tcstu3.svelte-1tcstu3{top:12px;left:44px}.wrapper-top-right.fullscreen.svelte-1tcstu3.svelte-1tcstu3{top:12px;right:44px}.wrapper-middle-left.fullscreen.svelte-1tcstu3.svelte-1tcstu3{left:44px}.wrapper-middle-left-second.fullscreen.svelte-1tcstu3.svelte-1tcstu3{left:96px}.wrapper-middle-right.fullscreen.svelte-1tcstu3.svelte-1tcstu3{right:44px}.controls-wrapper.fullscreen.svelte-1tcstu3.svelte-1tcstu3{position:absolute;left:36px;right:36px;bottom:32px;width:calc(100% - 72px)}}")}function xm(i,e,t){let n=i.slice();return n[169]=e[t].iconUrl,n[170]=e[t].ariaLabel,n[171]=e[t].testId,n[172]=e[t].onClick,n[173]=e[t].tooltip,n}function $m(i){let e,t,n,o,r,l,a,s,u,f,m,h,y,b,S,w,T,v=(!i[51]||i[53])&&e0(i),g=Vt(i[56]),I=[];for(let E=0;E<g.length;E+=1)I[E]=t0(xm(i,g,E));let A=E=>_(I[E],1,1,()=>{I[E]=null}),q=i[36]&&i0(i),K=i[37]&&n0(i),re=i[57]&&o0(i),ae=i[39]&&l0(i),H=i[8]&&r0(i),L=i[34]&&s0(i),x=i[33]&&a0(i),G=i[8]&&u0(i),J=i[96]&&!i[29]&&c0(i);return{c(){e=P("div"),t=O(),n=P("div"),v&&v.c(),o=O(),r=P("div");for(let E=0;E<I.length;E+=1)I[E].c();l=O(),q&&q.c(),a=O(),K&&K.c(),s=O(),re&&re.c(),u=O(),ae&&ae.c(),f=O(),m=P("div"),H&&H.c(),h=O(),L&&L.c(),y=O(),x&&x.c(),b=O(),G&&G.c(),S=O(),J&&J.c(),w=st(),c(e,"class","overlay-mobile svelte-1tcstu3"),z(e,"hidden",!i[42]),c(n,"class","wrapper-top-left svelte-1tcstu3"),z(n,"hidden",!i[3]),z(n,"fullscreen",i[52]),c(r,"class","wrapper-top-right svelte-1tcstu3"),z(r,"hidden",!i[3]&&!i[27]),z(r,"fullscreen",i[52]),c(m,"class","wrapper-middle svelte-1tcstu3"),z(m,"hidden",!i[3]||i[29])},m(E,te){C(E,e,te),C(E,t,te),C(E,n,te),v&&v.m(n,null),C(E,o,te),C(E,r,te);for(let M=0;M<I.length;M+=1)I[M]&&I[M].m(r,null);p(r,l),q&&q.m(r,null),p(r,a),K&&K.m(r,null),p(r,s),re&&re.m(r,null),p(r,u),ae&&ae.m(r,null),C(E,f,te),C(E,m,te),H&&H.m(m,null),p(m,h),L&&L.m(m,null),p(m,y),x&&x.m(m,null),p(m,b),G&&G.m(m,null),C(E,S,te),J&&J.m(E,te),C(E,w,te),T=!0},p(E,te){if((!T||te[1]&2048)&&z(e,"hidden",!E[42]),!E[51]||E[53]?v?(v.p(E,te),te[1]&5242880&&d(v,1)):(v=e0(E),v.c(),d(v,1),v.m(n,null)):v&&(ce(),_(v,1,1,()=>{v=null}),fe()),(!T||te[0]&8)&&z(n,"hidden",!E[3]),(!T||te[1]&2097152)&&z(n,"fullscreen",E[52]),te[1]&33554432){g=Vt(E[56]);let M;for(M=0;M<g.length;M+=1){let ee=xm(E,g,M);I[M]?(I[M].p(ee,te),d(I[M],1)):(I[M]=t0(ee),I[M].c(),d(I[M],1),I[M].m(r,l))}for(ce(),M=g.length;M<I.length;M+=1)A(M);fe()}E[36]?q?(q.p(E,te),te[1]&32&&d(q,1)):(q=i0(E),q.c(),d(q,1),q.m(r,a)):q&&(ce(),_(q,1,1,()=>{q=null}),fe()),E[37]?K?(K.p(E,te),te[1]&64&&d(K,1)):(K=n0(E),K.c(),d(K,1),K.m(r,s)):K&&(ce(),_(K,1,1,()=>{K=null}),fe()),E[57]?re?(re.p(E,te),te[1]&67108864&&d(re,1)):(re=o0(E),re.c(),d(re,1),re.m(r,u)):re&&(ce(),_(re,1,1,()=>{re=null}),fe()),E[39]?ae?(ae.p(E,te),te[1]&256&&d(ae,1)):(ae=l0(E),ae.c(),d(ae,1),ae.m(r,null)):ae&&(ce(),_(ae,1,1,()=>{ae=null}),fe()),(!T||te[0]&134217736)&&z(r,"hidden",!E[3]&&!E[27]),(!T||te[1]&2097152)&&z(r,"fullscreen",E[52]),E[8]?H?(H.p(E,te),te[0]&256&&d(H,1)):(H=r0(E),H.c(),d(H,1),H.m(m,h)):H&&(ce(),_(H,1,1,()=>{H=null}),fe()),E[34]?L?(L.p(E,te),te[1]&8&&d(L,1)):(L=s0(E),L.c(),d(L,1),L.m(m,y)):L&&(ce(),_(L,1,1,()=>{L=null}),fe()),E[33]?x?(x.p(E,te),te[1]&4&&d(x,1)):(x=a0(E),x.c(),d(x,1),x.m(m,b)):x&&(ce(),_(x,1,1,()=>{x=null}),fe()),E[8]?G?(G.p(E,te),te[0]&256&&d(G,1)):(G=u0(E),G.c(),d(G,1),G.m(m,null)):G&&(ce(),_(G,1,1,()=>{G=null}),fe()),(!T||te[0]&536870920)&&z(m,"hidden",!E[3]||E[29]),E[96]&&!E[29]?J?(J.p(E,te),te[0]&536870912&&d(J,1)):(J=c0(E),J.c(),d(J,1),J.m(w.parentNode,w)):J&&(ce(),_(J,1,1,()=>{J=null}),fe())},i(E){if(!T){d(v);for(let te=0;te<g.length;te+=1)d(I[te]);d(q),d(K),d(re),d(ae),d(H),d(L),d(x),d(G),d(J),T=!0}},o(E){_(v),I=I.filter(Boolean);for(let te=0;te<I.length;te+=1)_(I[te]);_(q),_(K),_(re),_(ae),_(H),_(L),_(x),_(G),_(J),T=!1},d(E){E&&(k(e),k(t),k(n),k(o),k(r),k(f),k(m),k(S),k(w)),v&&v.d(),Qi(I,E),q&&q.d(),K&&K.d(),re&&re.d(),ae&&ae.d(),H&&H.d(),L&&L.d(),x&&x.d(),G&&G.d(),J&&J.d(E)}}}function e0(i){let e,t,n;function o(l){i[130](l)}let r={muted:i[54],expanded:i[51]&&!i[70]&&i[55],click:i[106]};return i[20].volume!==void 0&&(r.ref=i[20].volume),e=new Ku({props:r}),_e.push(()=>Fe(e,"ref",o)),{c(){D(e.$$.fragment)},m(l,a){R(e,l,a),n=!0},p(l,a){let s={};a[1]&8388608&&(s.muted=l[54]),a[1]&17825792&&(s.expanded=l[51]&&!l[70]&&l[55]),!t&&a[0]&1048576&&(t=!0,s.ref=l[20].volume,Oe(()=>t=!1)),e.$set(s)},i(l){n||(d(e.$$.fragment,l),n=!0)},o(l){_(e.$$.fragment,l),n=!1},d(l){B(e,l)}}}function t0(i){var n;let e,t;return e=new Zr({props:{iconUrl:i[169],ariaLabel:(n=i[170])!=null?n:i[173],testId:i[171],onClick:i[172]}}),{c(){D(e.$$.fragment)},m(o,r){R(e,o,r),t=!0},p(o,r){var a;let l={};r[1]&33554432&&(l.iconUrl=o[169]),r[1]&33554432&&(l.ariaLabel=(a=o[170])!=null?a:o[173]),r[1]&33554432&&(l.testId=o[171]),r[1]&33554432&&(l.onClick=o[172]),e.$set(l)},i(o){t||(d(e.$$.fragment,o),t=!0)},o(o){_(e.$$.fragment,o),t=!1},d(o){B(e,o)}}}function i0(i){let e,t,n;function o(l){i[131](l)}let r={isMobile:!0,click:i[104],state:i[28]};return i[20].chromecast!==void 0&&(r.ref=i[20].chromecast),e=new Fr({props:r}),_e.push(()=>Fe(e,"ref",o)),{c(){D(e.$$.fragment)},m(l,a){R(e,l,a),n=!0},p(l,a){let s={};a[0]&268435456&&(s.state=l[28]),!t&&a[0]&1048576&&(t=!0,s.ref=l[20].chromecast,Oe(()=>t=!1)),e.$set(s)},i(l){n||(d(e.$$.fragment,l),n=!0)},o(l){_(e.$$.fragment,l),n=!1},d(l){B(e,l)}}}function n0(i){let e,t,n;function o(l){i[132](l)}let r={click:i[105],isPictureInPictureActive:i[26]};return i[20].pip!==void 0&&(r.ref=i[20].pip),e=new Jm({props:r}),_e.push(()=>Fe(e,"ref",o)),{c(){D(e.$$.fragment)},m(l,a){R(e,l,a),n=!0},p(l,a){let s={};a[0]&67108864&&(s.isPictureInPictureActive=l[26]),!t&&a[0]&1048576&&(t=!0,s.ref=l[20].pip,Oe(()=>t=!1)),e.$set(s)},i(l){n||(d(e.$$.fragment,l),n=!0)},o(l){_(e.$$.fragment,l),n=!1},d(l){B(e,l)}}}function o0(i){let e,t,n;function o(l){i[133](l)}let r={};return i[22]!==void 0&&(r.ref=i[22]),e=new Nl({props:r}),_e.push(()=>Fe(e,"ref",o)),{c(){D(e.$$.fragment)},m(l,a){R(e,l,a),n=!0},p(l,a){let s={};!t&&a[0]&4194304&&(t=!0,s.ref=l[22],Oe(()=>t=!1)),e.$set(s)},i(l){n||(d(e.$$.fragment,l),n=!0)},o(l){_(e.$$.fragment,l),n=!1},d(l){B(e,l)}}}function l0(i){let e,t,n;function o(l){i[134](l)}let r={click:i[64],targetUrl:i[7],logoClickable:i[6]};return i[20].vkLogo!==void 0&&(r.ref=i[20].vkLogo),e=new Or({props:r}),_e.push(()=>Fe(e,"ref",o)),{c(){D(e.$$.fragment)},m(l,a){R(e,l,a),n=!0},p(l,a){let s={};a[0]&128&&(s.targetUrl=l[7]),a[0]&64&&(s.logoClickable=l[6]),!t&&a[0]&1048576&&(t=!0,s.ref=l[20].vkLogo,Oe(()=>t=!1)),e.$set(s)},i(l){n||(d(e.$$.fragment,l),n=!0)},o(l){_(e.$$.fragment,l),n=!1},d(l){B(e,l)}}}function r0(i){let e,t,n;function o(l){i[135](l)}let r={click:i[13],type:"prev",disabled:!i[10],isMobile:!0};return i[20].prevButton!==void 0&&(r.ref=i[20].prevButton),e=new pl({props:r}),_e.push(()=>Fe(e,"ref",o)),{c(){D(e.$$.fragment)},m(l,a){R(e,l,a),n=!0},p(l,a){let s={};a[0]&8192&&(s.click=l[13]),a[0]&1024&&(s.disabled=!l[10]),!t&&a[0]&1048576&&(t=!0,s.ref=l[20].prevButton,Oe(()=>t=!1)),e.$set(s)},i(l){n||(d(e.$$.fragment,l),n=!0)},o(l){_(e.$$.fragment,l),n=!1},d(l){B(e,l)}}}function s0(i){let e,t,n;function o(l){i[136](l)}let r={disabled:i[49],click:i[63],isMobile:!0,isPlaying:i[31]};return i[20].playButton!==void 0&&(r.ref=i[20].playButton),e=new Fl({props:r}),_e.push(()=>Fe(e,"ref",o)),{c(){D(e.$$.fragment)},m(l,a){R(e,l,a),n=!0},p(l,a){let s={};a[1]&262144&&(s.disabled=l[49]),a[1]&1&&(s.isPlaying=l[31]),!t&&a[0]&1048576&&(t=!0,s.ref=l[20].playButton,Oe(()=>t=!1)),e.$set(s)},i(l){n||(d(e.$$.fragment,l),n=!0)},o(l){_(e.$$.fragment,l),n=!1},d(l){B(e,l)}}}function a0(i){let e,t,n;function o(l){i[137](l)}let r={disabled:i[48],click:i[107],isMobile:!0};return i[20].replayButton!==void 0&&(r.ref=i[20].replayButton),e=new Hl({props:r}),_e.push(()=>Fe(e,"ref",o)),{c(){D(e.$$.fragment)},m(l,a){R(e,l,a),n=!0},p(l,a){let s={};a[1]&131072&&(s.disabled=l[48]),!t&&a[0]&1048576&&(t=!0,s.ref=l[20].replayButton,Oe(()=>t=!1)),e.$set(s)},i(l){n||(d(e.$$.fragment,l),n=!0)},o(l){_(e.$$.fragment,l),n=!1},d(l){B(e,l)}}}function u0(i){let e,t,n;function o(l){i[138](l)}let r={click:i[12],type:"next",disabled:!i[9],isMobile:!0};return i[20].nextButton!==void 0&&(r.ref=i[20].nextButton),e=new pl({props:r}),_e.push(()=>Fe(e,"ref",o)),{c(){D(e.$$.fragment)},m(l,a){R(e,l,a),n=!0},p(l,a){let s={};a[0]&4096&&(s.click=l[12]),a[0]&512&&(s.disabled=!l[9]),!t&&a[0]&1048576&&(t=!0,s.ref=l[20].nextButton,Oe(()=>t=!1)),e.$set(s)},i(l){n||(d(e.$$.fragment,l),n=!0)},o(l){_(e.$$.fragment,l),n=!1},d(l){B(e,l)}}}function c0(i){let e,t,n,o,r=i[100]&&L3(i),l=i[98]&&R3(i),a=i[99]&&B3(i);return{c(){r&&r.c(),e=O(),l&&l.c(),t=O(),a&&a.c(),n=st()},m(s,u){r&&r.m(s,u),C(s,e,u),l&&l.m(s,u),C(s,t,u),a&&a.m(s,u),C(s,n,u),o=!0},p(s,u){s[100]&&r.p(s,u),s[98]&&l.p(s,u),s[99]&&a.p(s,u)},i(s){o||(d(r),d(l),d(a),o=!0)},o(s){_(r),_(l),_(a),o=!1},d(s){s&&(k(e),k(t),k(n)),r&&r.d(s),l&&l.d(s),a&&a.d(s)}}}function L3(i){let e,t,n,o,r,l;function a(u){i[139](u)}let s={hidden:!i[3],disabled:i[47],click:i[18]};return i[20].playPrevChapterButton!==void 0&&(s.ref=i[20].playPrevChapterButton),t=new Yr({props:s}),_e.push(()=>Fe(t,"ref",a)),{c(){e=P("div"),D(t.$$.fragment),c(e,"class","wrapper-middle-left svelte-1tcstu3"),z(e,"fullscreen",i[52]),z(e,"hidden",!i[3])},m(u,f){C(u,e,f),R(t,e,null),o=!0,r||(l=de(e,"click",i[108]),r=!0)},p(u,f){let m={};f[0]&8&&(m.hidden=!u[3]),f[1]&65536&&(m.disabled=u[47]),f[0]&262144&&(m.click=u[18]),!n&&f[0]&1048576&&(n=!0,m.ref=u[20].playPrevChapterButton,Oe(()=>n=!1)),t.$set(m),(!o||f[1]&2097152)&&z(e,"fullscreen",u[52]),(!o||f[0]&8)&&z(e,"hidden",!u[3])},i(u){o||(d(t.$$.fragment,u),o=!0)},o(u){_(t.$$.fragment,u),o=!1},d(u){u&&k(e),B(t),r=!1,l()}}}function R3(i){let e,t,n,o,r;function l(s){i[140](s)}let a={hidden:!i[3]&&!i[58],disabled:i[50],click:i[17],graphIsOpened:i[58]};return i[20].interactiveGraphButton!==void 0&&(a.ref=i[20].interactiveGraphButton),t=new Gr({props:a}),_e.push(()=>Fe(t,"ref",l)),{c(){e=P("div"),D(t.$$.fragment),c(e,"class",o=Kc(i[100]?"wrapper-middle-left-second":"wrapper-middle-left")+" svelte-1tcstu3"),z(e,"fullscreen",i[52]),z(e,"hidden",!i[3]&&!i[58])},m(s,u){C(s,e,u),R(t,e,null),r=!0},p(s,u){let f={};u[0]&8|u[1]&134217728&&(f.hidden=!s[3]&&!s[58]),u[1]&524288&&(f.disabled=s[50]),u[0]&131072&&(f.click=s[17]),u[1]&134217728&&(f.graphIsOpened=s[58]),!n&&u[0]&1048576&&(n=!0,f.ref=s[20].interactiveGraphButton,Oe(()=>n=!1)),t.$set(f),(!r||u[1]&2097152)&&z(e,"fullscreen",s[52]),(!r||u[0]&8|u[1]&134217728)&&z(e,"hidden",!s[3]&&!s[58])},i(s){r||(d(t.$$.fragment,s),r=!0)},o(s){_(t.$$.fragment,s),r=!1},d(s){s&&k(e),B(t)}}}function B3(i){let e,t,n,o,r,l;function a(u){i[141](u)}let s={hidden:!i[3],disabled:i[46],click:i[16]};return i[20].seekToInteractiveButton!==void 0&&(s.ref=i[20].seekToInteractiveButton),t=new Wr({props:s}),_e.push(()=>Fe(t,"ref",a)),{c(){e=P("div"),D(t.$$.fragment),c(e,"class","wrapper-middle-right svelte-1tcstu3"),z(e,"fullscreen",i[52]),z(e,"hidden",!i[3])},m(u,f){C(u,e,f),R(t,e,null),o=!0,r||(l=de(e,"click",i[109]),r=!0)},p(u,f){let m={};f[0]&8&&(m.hidden=!u[3]),f[1]&32768&&(m.disabled=u[46]),f[0]&65536&&(m.click=u[16]),!n&&f[0]&1048576&&(n=!0,m.ref=u[20].seekToInteractiveButton,Oe(()=>n=!1)),t.$set(m),(!o||f[1]&2097152)&&z(e,"fullscreen",u[52]),(!o||f[0]&8)&&z(e,"hidden",!u[3])},i(u){o||(d(t.$$.fragment,u),o=!0)},o(u){_(t.$$.fragment,u),o=!1},d(u){u&&k(e),B(t),r=!1,l()}}}function f0(i){let e,t,n,o,r,l=i[53]&&d0(i),a=i[32]&&m0(i);return o=new Ur({props:{position:i[59],duration:i[60]}}),{c(){l&&l.c(),e=O(),a&&a.c(),t=O(),n=P("div"),D(o.$$.fragment),c(n,"class","wrapper-bottom ads-timeline-mobile svelte-1tcstu3"),z(n,"fullscreen",i[52])},m(s,u){l&&l.m(s,u),C(s,e,u),a&&a.m(s,u),C(s,t,u),C(s,n,u),R(o,n,null),r=!0},p(s,u){s[53]?l?(l.p(s,u),u[1]&4194304&&d(l,1)):(l=d0(s),l.c(),d(l,1),l.m(e.parentNode,e)):l&&(ce(),_(l,1,1,()=>{l=null}),fe()),s[32]?a?(a.p(s,u),u[1]&2&&d(a,1)):(a=m0(s),a.c(),d(a,1),a.m(t.parentNode,t)):a&&(ce(),_(a,1,1,()=>{a=null}),fe());let f={};u[1]&268435456&&(f.position=s[59]),u[1]&536870912&&(f.duration=s[60]),o.$set(f),(!r||u[1]&2097152)&&z(n,"fullscreen",s[52])},i(s){r||(d(l),d(a),d(o.$$.fragment,s),r=!0)},o(s){_(l),_(a),_(o.$$.fragment,s),r=!1},d(s){s&&(k(e),k(t),k(n)),l&&l.d(s),a&&a.d(s),B(o)}}}function d0(i){let e,t,n,o;function r(a){i[142](a)}let l={muted:i[54],expanded:!1,click:i[106]};return i[20].volume!==void 0&&(l.ref=i[20].volume),t=new Ku({props:l}),_e.push(()=>Fe(t,"ref",r)),{c(){e=P("div"),D(t.$$.fragment),c(e,"class","wrapper-top-right svelte-1tcstu3"),z(e,"fullscreen",i[52])},m(a,s){C(a,e,s),R(t,e,null),o=!0},p(a,s){let u={};s[1]&8388608&&(u.muted=a[54]),!n&&s[0]&1048576&&(n=!0,u.ref=a[20].volume,Oe(()=>n=!1)),t.$set(u),(!o||s[1]&2097152)&&z(e,"fullscreen",a[52])},i(a){o||(d(t.$$.fragment,a),o=!0)},o(a){_(t.$$.fragment,a),o=!1},d(a){a&&k(e),B(t)}}}function m0(i){let e,t,n,o;function r(a){i[143](a)}let l={disabled:i[49],click:i[63],isMobile:!0,isPlaying:!i[32]};return i[20].playButton!==void 0&&(l.ref=i[20].playButton),t=new Fl({props:l}),_e.push(()=>Fe(t,"ref",r)),{c(){e=P("div"),D(t.$$.fragment),c(e,"class","wrapper-middle svelte-1tcstu3")},m(a,s){C(a,e,s),R(t,e,null),o=!0},p(a,s){let u={};s[1]&262144&&(u.disabled=a[49]),s[1]&2&&(u.isPlaying=!a[32]),!n&&s[0]&1048576&&(n=!0,u.ref=a[20].playButton,Oe(()=>n=!1)),t.$set(u)},i(a){o||(d(t.$$.fragment,a),o=!0)},o(a){_(t.$$.fragment,a),o=!1},d(a){a&&k(e),B(t)}}}function D3(i){let e,t,n;function o(l){i[144](l)}let r={disabled:i[48],$$slots:{default:[N3]},$$scope:{ctx:i}};return i[20].replayButton!==void 0&&(r.ref=i[20].replayButton),e=new Ut({props:r}),_e.push(()=>Fe(e,"ref",o)),{c(){D(e.$$.fragment)},m(l,a){R(e,l,a),n=!0},p(l,a){let s={};a[1]&131072&&(s.disabled=l[48]),a[1]&131072|a[5]&2097152&&(s.$$scope={dirty:a,ctx:l}),!t&&a[0]&1048576&&(t=!0,s.ref=l[20].replayButton,Oe(()=>t=!1)),e.$set(s)},i(l){n||(d(e.$$.fragment,l),n=!0)},o(l){_(e.$$.fragment,l),n=!1},d(l){B(e,l)}}}function N3(i){let e,t;return e=new Hl({props:{disabled:i[48],click:i[95]}}),{c(){D(e.$$.fragment)},m(n,o){R(e,n,o),t=!0},p(n,o){let r={};o[1]&131072&&(r.disabled=n[48]),e.$set(r)},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){_(e.$$.fragment,n),t=!1},d(n){B(e,n)}}}function p0(i){let e,t,n;function o(l){i[145](l)}let r={$$slots:{default:[O3]},$$scope:{ctx:i}};return i[20].liveButton!==void 0&&(r.ref=i[20].liveButton),e=new Ut({props:r}),_e.push(()=>Fe(e,"ref",o)),{c(){D(e.$$.fragment)},m(l,a){R(e,l,a),n=!0},p(l,a){let s={};a[0]&524288|a[1]&16384|a[5]&2097152&&(s.$$scope={dirty:a,ctx:l}),!t&&a[0]&1048576&&(t=!0,s.ref=l[20].liveButton,Oe(()=>t=!1)),e.$set(s)},i(l){n||(d(e.$$.fragment,l),n=!0)},o(l){_(e.$$.fragment,l),n=!1},d(l){B(e,l)}}}function O3(i){let e,t;return e=new zr({props:{isActiveLive:i[19],isMobile:!0,ariaLabel:i[45]}}),{c(){D(e.$$.fragment)},m(n,o){R(e,n,o),t=!0},p(n,o){let r={};o[0]&524288&&(r.isActiveLive=n[19]),o[1]&16384&&(r.ariaLabel=n[45]),e.$set(r)},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){_(e.$$.fragment,n),t=!1},d(n){B(e,n)}}}function _0(i){let e,t,n;function o(l){i[146](l)}let r={showDuration:i[35],position:i[4]?i[59]:i[61],duration:i[4]?i[60]:i[62],isMobile:!0};return i[20].time!==void 0&&(r.ref=i[20].time),e=new Ar({props:r}),_e.push(()=>Fe(e,"ref",o)),{c(){D(e.$$.fragment)},m(l,a){R(e,l,a),n=!0},p(l,a){let s={};a[1]&16&&(s.showDuration=l[35]),a[0]&16|a[1]&1342177280&&(s.position=l[4]?l[59]:l[61]),a[0]&16|a[1]&536870912|a[2]&1&&(s.duration=l[4]?l[60]:l[62]),!t&&a[0]&1048576&&(t=!0,s.ref=l[20].time,Oe(()=>t=!1)),e.$set(s)},i(l){n||(d(e.$$.fragment,l),n=!0)},o(l){_(e.$$.fragment,l),n=!1},d(l){B(e,l)}}}function h0(i){let e,t,n,o;return n=new jr({props:{position:i[61],duration:i[62],timeCodes:i[84]}}),{c(){e=P("div"),e.textContent="\xB7",t=O(),D(n.$$.fragment),c(e,"aria-hidden","true")},m(r,l){C(r,e,l),C(r,t,l),R(n,r,l),o=!0},p(r,l){let a={};l[1]&1073741824&&(a.position=r[61]),l[2]&1&&(a.duration=r[62]),n.$set(a)},i(r){o||(d(n.$$.fragment,r),o=!0)},o(r){_(n.$$.fragment,r),o=!1},d(r){r&&(k(e),k(t)),B(n,r)}}}function F3(i){let e,t,n=i[43]&&h0(i);return{c(){n&&n.c(),e=st()},m(o,r){n&&n.m(o,r),C(o,e,r),t=!0},p(o,r){o[43]?n?(n.p(o,r),r[1]&4096&&d(n,1)):(n=h0(o),n.c(),d(n,1),n.m(e.parentNode,e)):n&&(ce(),_(n,1,1,()=>{n=null}),fe())},i(o){t||(d(n),t=!0)},o(o){_(n),t=!1},d(o){o&&k(e),n&&n.d(o)}}}function g0(i){let e,t,n;function o(l){i[149](l)}let r={$$slots:{default:[H3]},$$scope:{ctx:i}};return i[20].settings!==void 0&&(r.ref=i[20].settings),e=new Ut({props:r}),_e.push(()=>Fe(e,"ref",o)),{c(){D(e.$$.fragment)},m(l,a){R(e,l,a),n=!0},p(l,a){let s={};a[0]&4194304|a[5]&2097152&&(s.$$scope={dirty:a,ctx:l}),!t&&a[0]&1048576&&(t=!0,s.ref=l[20].settings,Oe(()=>t=!1)),e.$set(s)},i(l){n||(d(e.$$.fragment,l),n=!0)},o(l){_(e.$$.fragment,l),n=!1},d(l){B(e,l)}}}function H3(i){let e,t,n;function o(l){i[148](l)}let r={};return i[22]!==void 0&&(r.ref=i[22]),e=new Nl({props:r}),_e.push(()=>Fe(e,"ref",o)),{c(){D(e.$$.fragment)},m(l,a){R(e,l,a),n=!0},p(l,a){let s={};!t&&a[0]&4194304&&(t=!0,s.ref=l[22],Oe(()=>t=!1)),e.$set(s)},i(l){n||(d(e.$$.fragment,l),n=!0)},o(l){_(e.$$.fragment,l),n=!1},d(l){B(e,l)}}}function b0(i){let e,t,n;function o(l){i[150](l)}let r={$$slots:{default:[z3]},$$scope:{ctx:i}};return i[20].fullscreen!==void 0&&(r.ref=i[20].fullscreen),e=new Ut({props:r}),_e.push(()=>Fe(e,"ref",o)),{c(){D(e.$$.fragment)},m(l,a){R(e,l,a),n=!0},p(l,a){let s={};a[0]&16384|a[1]&2097152|a[5]&2097152&&(s.$$scope={dirty:a,ctx:l}),!t&&a[0]&1048576&&(t=!0,s.ref=l[20].fullscreen,Oe(()=>t=!1)),e.$set(s)},i(l){n||(d(e.$$.fragment,l),n=!0)},o(l){_(e.$$.fragment,l),n=!1},d(l){B(e,l)}}}function z3(i){let e,t;return e=new Dr({props:{click:i[14],isFullscreen:i[52]}}),{c(){D(e.$$.fragment)},m(n,o){R(e,n,o),t=!0},p(n,o){let r={};o[0]&16384&&(r.click=n[14]),o[1]&2097152&&(r.isFullscreen=n[52]),e.$set(r)},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){_(e.$$.fragment,n),t=!1},d(n){B(e,n)}}}function v0(i){let e,t,n,o;function r(a){i[153](a)}let l={supportLink:i[11],returnFocus:i[15]};return i[21]!==void 0&&(l.ref=i[21]),t=new Vr({props:l}),_e.push(()=>Fe(t,"ref",r)),{c(){e=P("div"),D(t.$$.fragment),c(e,"class","settings-mobile svelte-1tcstu3")},m(a,s){C(a,e,s),R(t,e,null),o=!0},p(a,s){let u={};s[0]&2048&&(u.supportLink=a[11]),s[0]&32768&&(u.returnFocus=a[15]),!n&&s[0]&2097152&&(n=!0,u.ref=a[21],Oe(()=>n=!1)),t.$set(u)},i(a){o||(d(t.$$.fragment,a),o=!0)},o(a){_(t.$$.fragment,a),o=!1},d(a){a&&k(e),B(t)}}}function q3(i){let e,t,n;function o(l){i[154](l)}let r={};return i[20].interactiveTimeIndicator!==void 0&&(r.ref=i[20].interactiveTimeIndicator),e=new os({props:r}),_e.push(()=>Fe(e,"ref",o)),{c(){D(e.$$.fragment)},m(l,a){R(e,l,a),n=!0},p(l,a){let s={};!t&&a[0]&1048576&&(t=!0,s.ref=l[20].interactiveTimeIndicator,Oe(()=>t=!1)),e.$set(s)},i(l){n||(d(e.$$.fragment,l),n=!0)},o(l){_(e.$$.fragment,l),n=!1},d(l){B(e,l)}}}function U3(i){let e,t,n,o,r,l,a,s,u,f,m,h,y,b,S,w,T,v,g=!i[4]&&$m(i),I=i[4]&&i[30]!=="inactive"&&f0(i),A=i[96]&&D3(i),q=!i[4]&&i[25]&&p0(i),K=i[41]&&_0(i);function re(J){i[147](J)}let ae={className:"w-max",disabled:!i[43],$$slots:{default:[F3]},$$scope:{ctx:i}};i[20].episodes!==void 0&&(ae.ref=i[20].episodes),u=new Ut({props:ae}),_e.push(()=>Fe(u,"ref",re));let H=i[38]&&g0(i),L=i[40]&&b0(i);b=new Kr({props:{isAds:i[4],canRewindLive:i[5],isRewindableLive:i[24]}});let x=i[23]&&v0(i),G=i[101]&&q3(i);return{c(){g&&g.c(),e=O(),I&&I.c(),t=O(),n=P("div"),o=P("div"),r=P("div"),A&&A.c(),l=O(),q&&q.c(),a=O(),K&&K.c(),s=O(),D(u.$$.fragment),m=O(),H&&H.c(),h=O(),L&&L.c(),y=O(),D(b.$$.fragment),S=O(),x&&x.c(),w=O(),G&&G.c(),T=st(),c(r,"class","controls svelte-1tcstu3"),z(r,"mobile",!0),c(o,"class","controls-wrapper svelte-1tcstu3"),z(o,"fullscreen",i[52]),c(n,"class","wrapper-bottom svelte-1tcstu3"),z(n,"hidden",i[1]),z(n,"controls-hidden",!i[3]),z(n,"no-smooth",i[2]),z(n,"mobile",!0)},m(J,E){g&&g.m(J,E),C(J,e,E),I&&I.m(J,E),C(J,t,E),C(J,n,E),p(n,o),p(o,r),A&&A.m(r,null),p(r,l),q&&q.m(r,null),p(r,a),K&&K.m(r,null),p(r,s),R(u,r,null),p(r,m),H&&H.m(r,null),p(r,h),L&&L.m(r,null),i[151](r),p(o,y),R(b,o,null),i[152](n),C(J,S,E),x&&x.m(J,E),C(J,w,E),G&&G.m(J,E),C(J,T,E),v=!0},p(J,E){J[4]?g&&(ce(),_(g,1,1,()=>{g=null}),fe()):g?(g.p(J,E),E[0]&16&&d(g,1)):(g=$m(J),g.c(),d(g,1),g.m(e.parentNode,e)),J[4]&&J[30]!=="inactive"?I?(I.p(J,E),E[0]&1073741840&&d(I,1)):(I=f0(J),I.c(),d(I,1),I.m(t.parentNode,t)):I&&(ce(),_(I,1,1,()=>{I=null}),fe()),J[96]&&A.p(J,E),!J[4]&&J[25]?q?(q.p(J,E),E[0]&33554448&&d(q,1)):(q=p0(J),q.c(),d(q,1),q.m(r,a)):q&&(ce(),_(q,1,1,()=>{q=null}),fe()),J[41]?K?(K.p(J,E),E[1]&1024&&d(K,1)):(K=_0(J),K.c(),d(K,1),K.m(r,s)):K&&(ce(),_(K,1,1,()=>{K=null}),fe());let te={};E[1]&4096&&(te.disabled=!J[43]),E[1]&1073745920|E[2]&1|E[5]&2097152&&(te.$$scope={dirty:E,ctx:J}),!f&&E[0]&1048576&&(f=!0,te.ref=J[20].episodes,Oe(()=>f=!1)),u.$set(te),J[38]?H?(H.p(J,E),E[1]&128&&d(H,1)):(H=g0(J),H.c(),d(H,1),H.m(r,h)):H&&(ce(),_(H,1,1,()=>{H=null}),fe()),J[40]?L?(L.p(J,E),E[1]&512&&d(L,1)):(L=b0(J),L.c(),d(L,1),L.m(r,null)):L&&(ce(),_(L,1,1,()=>{L=null}),fe());let M={};E[0]&16&&(M.isAds=J[4]),E[0]&32&&(M.canRewindLive=J[5]),E[0]&16777216&&(M.isRewindableLive=J[24]),b.$set(M),(!v||E[1]&2097152)&&z(o,"fullscreen",J[52]),(!v||E[0]&2)&&z(n,"hidden",J[1]),(!v||E[0]&8)&&z(n,"controls-hidden",!J[3]),(!v||E[0]&4)&&z(n,"no-smooth",J[2]),J[23]?x?(x.p(J,E),E[0]&8388608&&d(x,1)):(x=v0(J),x.c(),d(x,1),x.m(w.parentNode,w)):x&&(ce(),_(x,1,1,()=>{x=null}),fe()),J[101]&&G.p(J,E)},i(J){v||(d(g),d(I),d(A),d(q),d(K),d(u.$$.fragment,J),d(H),d(L),d(b.$$.fragment,J),d(x),d(G),v=!0)},o(J){_(g),_(I),_(A),_(q),_(K),_(u.$$.fragment,J),_(H),_(L),_(b.$$.fragment,J),_(x),_(G),v=!1},d(J){J&&(k(e),k(t),k(n),k(S),k(w),k(T)),g&&g.d(J),I&&I.d(J),A&&A.d(),q&&q.d(),K&&K.d(),B(u),H&&H.d(),L&&L.d(),i[151](null),B(b),i[152](null),x&&x.d(J),G&&G.d(J)}}}function K3(i,e,t){var ao,yn;let n,o,r,l,a,s,u,f,m,h,y,b,S,w,T,v,g,I,A,q,K,re,ae,H,L,x,G,J,E,te,M,ee,ke,Ge,Ke,Je,We,{bottomHidden:ve}=e,{bottomNoSmooth:X}=e,{showControls:be}=e,{controlsElementRef:Ne=void 0}=e,{isAds:xe=!1}=e,{canRewindLive:et}=e,{logoClickable:ye}=e,{logoHidden:Re}=e,{logoTargetUrl:je=""}=e,{showNextPrevButtons:Xe}=e,{nextButtonActive:Ce}=e,{prevButtonActive:Z}=e,{isOneVideoPlaylist:Pe=!1}=e,{supportLink:ue}=e,{customFullscreenSupported:Ie=!0}=e,{playNextVideo:Ye}=e,{playPrevVideo:ft}=e,{repeatPlaylist:mt}=e,{toggleFullscreen:dt}=e,{returnFocus:bt}=e,{seekToInteractive:wt}=e,{toggleGraph:we}=e,{playPrevChapter:vt}=e,{onDisabledPlayPrevChapterClick:Nt}=e,{onDisabledSeekToInteractiveClick:Et}=e,qe=nt(),Kt=Fn(),zt=Wt(),Zt=qe.actions.internal.toggleMuted,ti=qe.actions.internal.togglePlay,Lt=qe.actions.internal.pause,Tt=(ao=qe.callbacks)==null?void 0:ao.onAudioDoesNotExistHint,me=(yn=qe.callbacks)==null?void 0:yn.onAudioDisabledHint,Ue=qe.playerPhase;F(i,Ue,ie=>t(126,K=ie));let Qe=qe.state.duration$;F(i,Qe,ie=>t(62,We=ie));let tt=qe.state.positionWithScrubbing$;F(i,tt,ie=>t(61,Je=ie));let _t=qe.state.playbackState$;F(i,_t,ie=>t(121,h=ie));let ii=qe.state.isAudioAvailable$;F(i,ii,ie=>t(51,y=ie));let Li=qe.state.isAudioDisabled,Gt=qe.state.isEnded$;F(i,Gt,ie=>t(127,ae=ie));let Ri=qe.state.isLive$;F(i,Ri,ie=>t(25,v=ie));let Yi=qe.state.muted$;F(i,Yi,ie=>t(54,E=ie));let ni=qe.state.isActiveLive$;F(i,ni,ie=>t(124,w=ie));let vi=qe.state.isRewindableLive$;F(i,vi,ie=>t(24,T=ie));let _n=qe.ui.scrubbingInProgress;F(i,_n,ie=>t(29,re=ie));let fi=qe.ui.mobileNotReportControlHidden$;F(i,fi,ie=>t(27,A=ie));let Zi=qe.ui.isPictureInPictureActive$;F(i,Zi,ie=>t(26,I=ie));let di=qe.ui.pictureInPictureType$;F(i,di,ie=>t(125,g=ie));let Xi=qe.ui.mobileUnmuteButtonExpanded;F(i,Xi,ie=>t(55,te=ie));let yi=qe.ui.mobileUnmuteButtonVisible;F(i,yi,ie=>t(53,J=ie));let Bi=qe.ui.settingsMenuVisible;F(i,Bi,ie=>t(23,m=ie));let wi=qe.ui.settingsMenuOpenedByKeyboard;F(i,wi,ie=>t(120,f=ie));let Di=qe.ui.controls,Mt=qe.actions.internal.getVideoEpisodes(),Rt=qe.webApi.pictureInPictureApi,Ni=qe.state.chromecastState$;F(i,Ni,ie=>t(28,q=ie));let ki=qe.state.crashed$;F(i,ki,ie=>t(57,ee=ie));let xt=Di.disabledControls$;F(i,xt,ie=>t(128,L=ie));let si=qe.ui.startedByKeyboard$;F(i,si,ie=>t(119,u=ie));let Ci=qe.ads.duration;F(i,Ci,ie=>t(60,Ke=ie));let mi=qe.ads.position;F(i,mi,ie=>t(59,Ge=ie));let gt=qe.ads.playbackState;F(i,gt,ie=>t(30,H=ie));let Oi=qe.ui.isFullscreen;F(i,Oi,ie=>t(52,G=ie));let Pt=qe.ui.playerSize;F(i,Pt,ie=>t(123,S=ie));let ai=qe.ui.additionalButtons$;F(i,ai,ie=>t(56,M=ie));let hn=qe.actions.internal.getVideoElement,Cn=qe.actions.internal.replayInteractive,ui=qe.state.isInteractive,Fi=qe.state.isInteractiveTime$;F(i,Fi,ie=>t(122,b=ie));let Hi=qe.state.showInteractiveGraph,Si=qe.state.showSeekToInteractive,Ti=qe.state.showPlayPrevChapter,jt=qe.state.showInteractiveTimeIndicator,$t=qe.state.graphIsOpened$;F(i,$t,ie=>t(58,ke=ie));let Pi=Kt.seekToInteractiveDisabledTooltip$;F(i,Pi,ie=>t(129,x=ie));let Ji,zi,pi,un,gn,cn,bn,xi,oi,$i,li,qi,en,tn,Ii,Ui,$e,ci,_i,ze={},nn=(0,y0.throttleFn)(is,260,{leading:!1}),on=()=>qe.actions.internal.toggleChromecast();function fn(){bo({isAudioDisabled:Li,audioDisabledHintCallback:me,isAudioAvailable:y,audioIsNotExistHintCallback:Tt})&&Zt()}function ln(){return ut(this,null,function*(){Rt!=null&&Rt.isActive()?yield Rt==null?void 0:Rt.remove():yield Rt==null?void 0:Rt.request()})}function Ki(){!Li&&y&&yi.set(!1),fn()}let dn=Pe?ti:mt,hi="",Sn=(ie,uo)=>{if(!ie){t(45,hi=Q("tooltip_live"));return}uo===hl.PlaybackState.PAUSED&&t(45,hi=Q("tooltip_play"))},Qt,ji,se=()=>{s&&Nt(Ji)},ht=()=>{r&&Et(zi)};function ei(ie){i.$$.not_equal(ze.volume,ie)&&(ze.volume=ie,t(20,ze))}function rn(ie){i.$$.not_equal(ze.chromecast,ie)&&(ze.chromecast=ie,t(20,ze))}function Ei(ie){i.$$.not_equal(ze.pip,ie)&&(ze.pip=ie,t(20,ze))}function Mi(ie){ji=ie,t(22,ji)}function ri(ie){i.$$.not_equal(ze.vkLogo,ie)&&(ze.vkLogo=ie,t(20,ze))}function Bn(ie){i.$$.not_equal(ze.prevButton,ie)&&(ze.prevButton=ie,t(20,ze))}function In(ie){i.$$.not_equal(ze.playButton,ie)&&(ze.playButton=ie,t(20,ze))}function En(ie){i.$$.not_equal(ze.replayButton,ie)&&(ze.replayButton=ie,t(20,ze))}function Yt(ie){i.$$.not_equal(ze.nextButton,ie)&&(ze.nextButton=ie,t(20,ze))}function Zn(ie){i.$$.not_equal(ze.playPrevChapterButton,ie)&&(ze.playPrevChapterButton=ie,t(20,ze))}function Xn(ie){i.$$.not_equal(ze.interactiveGraphButton,ie)&&(ze.interactiveGraphButton=ie,t(20,ze))}function Dn(ie){i.$$.not_equal(ze.seekToInteractiveButton,ie)&&(ze.seekToInteractiveButton=ie,t(20,ze))}function zn(ie){i.$$.not_equal(ze.volume,ie)&&(ze.volume=ie,t(20,ze))}function Mn(ie){i.$$.not_equal(ze.playButton,ie)&&(ze.playButton=ie,t(20,ze))}function qn(ie){i.$$.not_equal(ze.replayButton,ie)&&(ze.replayButton=ie,t(20,ze))}function Tn(ie){i.$$.not_equal(ze.liveButton,ie)&&(ze.liveButton=ie,t(20,ze))}function Nn(ie){i.$$.not_equal(ze.time,ie)&&(ze.time=ie,t(20,ze))}function Un(ie){i.$$.not_equal(ze.episodes,ie)&&(ze.episodes=ie,t(20,ze))}function ne(ie){ji=ie,t(22,ji)}function It(ie){i.$$.not_equal(ze.settings,ie)&&(ze.settings=ie,t(20,ze))}function Vn(ie){i.$$.not_equal(ze.fullscreen,ie)&&(ze.fullscreen=ie,t(20,ze))}function vn(ie){_e[ie?"unshift":"push"](()=>{ci=ie,t(44,ci)})}function Kn(ie){_e[ie?"unshift":"push"](()=>{Ne=ie,t(0,Ne)})}function sn(ie){Qt=ie,t(21,Qt)}function io(ie){i.$$.not_equal(ze.interactiveTimeIndicator,ie)&&(ze.interactiveTimeIndicator=ie,t(20,ze))}i.$$set=ie=>{"bottomHidden"in ie&&t(1,ve=ie.bottomHidden),"bottomNoSmooth"in ie&&t(2,X=ie.bottomNoSmooth),"showControls"in ie&&t(3,be=ie.showControls),"controlsElementRef"in ie&&t(0,Ne=ie.controlsElementRef),"isAds"in ie&&t(4,xe=ie.isAds),"canRewindLive"in ie&&t(5,et=ie.canRewindLive),"logoClickable"in ie&&t(6,ye=ie.logoClickable),"logoHidden"in ie&&t(110,Re=ie.logoHidden),"logoTargetUrl"in ie&&t(7,je=ie.logoTargetUrl),"showNextPrevButtons"in ie&&t(8,Xe=ie.showNextPrevButtons),"nextButtonActive"in ie&&t(9,Ce=ie.nextButtonActive),"prevButtonActive"in ie&&t(10,Z=ie.prevButtonActive),"isOneVideoPlaylist"in ie&&t(111,Pe=ie.isOneVideoPlaylist),"supportLink"in ie&&t(11,ue=ie.supportLink),"customFullscreenSupported"in ie&&t(112,Ie=ie.customFullscreenSupported),"playNextVideo"in ie&&t(12,Ye=ie.playNextVideo),"playPrevVideo"in ie&&t(13,ft=ie.playPrevVideo),"repeatPlaylist"in ie&&t(113,mt=ie.repeatPlaylist),"toggleFullscreen"in ie&&t(14,dt=ie.toggleFullscreen),"returnFocus"in ie&&t(15,bt=ie.returnFocus),"seekToInteractive"in ie&&t(16,wt=ie.seekToInteractive),"toggleGraph"in ie&&t(17,we=ie.toggleGraph),"playPrevChapter"in ie&&t(18,vt=ie.playPrevChapter),"onDisabledPlayPrevChapterClick"in ie&&t(114,Nt=ie.onDisabledPlayPrevChapterClick),"onDisabledSeekToInteractiveClick"in ie&&t(115,Et=ie.onDisabledSeekToInteractiveClick)},i.$$.update=()=>{if(i.$$.dirty[4]&32)e:zi=Q(x);if(i.$$.dirty[4]&16)e:t(118,n=L.has("EPISODE_BUTTON"));if(i.$$.dirty[4]&16)e:t(50,o=L.has("GRAPH_BUTTON"));if(i.$$.dirty[4]&16)e:t(46,r=L.has("SEEK_TO_INTERACTIVE_BUTTON"));if(i.$$.dirty[4]&16)e:t(49,l=L.has("PLAY_BUTTON"));if(i.$$.dirty[4]&16)e:t(48,a=L.has("REPLAY_BUTTON"));if(i.$$.dirty[4]&16)e:t(47,s=L.has("PLAY_PREV_CHAPTER_BUTTON"));if(i.$$.dirty[3]&268435456)e:t(31,pi=h===hl.PlaybackState.PLAYING);if(i.$$.dirty[0]&1073741824)e:t(32,un=H==="paused");if(i.$$.dirty[0]&16|i.$$.dirty[4]&8)e:t(33,gn=ae&&!xe&&!ui);if(i.$$.dirty[0]&16|i.$$.dirty[4]&8)e:t(34,cn=!ae||xe);if(i.$$.dirty[3]&1073741824)e:t(116,bn=S.width>300);if(i.$$.dirty[3]&1073741824)e:t(35,xi=S.width>400);if(i.$$.dirty[0]&536870912)e:t(117,oi=re);if(i.$$.dirty[0]&469762048|i.$$.dirty[4]&2)e:t(36,$i=q!==hl.ChromecastState.NOT_AVAILABLE&&!(I&&g===1)&&!A&&!ui);if(i.$$.dirty[0]&402653184|i.$$.dirty[3]&16777216|i.$$.dirty[4]&6)e:{let ie=K==="waitingLive";t(37,li=!!Rt&&q!==hl.ChromecastState.CONNECTED&&!A&&(g===1&&ie||!ie)&&!oi&&!ui)}if(i.$$.dirty[3]&16777216)e:t(38,qi=!oi);if(i.$$.dirty[3]&1073872896)e:t(39,en=!Re&&S.width>350);if(i.$$.dirty[0]&67108864|i.$$.dirty[3]&17301504|i.$$.dirty[4]&2)e:t(40,tn=zt.features.fullscreen&&!(I&&g===1)&&(ui?Ie:!0)&&!oi);if(i.$$.dirty[0]&33554448|i.$$.dirty[3]&1090519040)e:t(41,Ii=(!v||xe)&&S.width>260&&!oi&&!(zt.features.interactiveHideTime&&ui));if(i.$$.dirty[0]&8388616)e:t(42,Ui=m||be);if(i.$$.dirty[0]&33554448|i.$$.dirty[3]&58720256)e:t(43,$e=!xe&&!v&&!!(Mt!=null&&Mt.length)&&bn&&!n&&!oi);if(i.$$.dirty[0]&16777216|i.$$.dirty[4]&1)e:t(19,_i=!T||w);if(i.$$.dirty[0]&1048584|i.$$.dirty[3]&1610612736)e:nn(hn(),Di,ze,be);if(i.$$.dirty[0]&524288|i.$$.dirty[3]&268435456)e:Sn(_i,h);if(i.$$.dirty[0]&12582912)e:al(ji,m,wi);if(i.$$.dirty[0]&10485760|i.$$.dirty[3]&134217728)e:qo(Qt,m,f);if(i.$$.dirty[0]&1048576|i.$$.dirty[3]&67108864)e:ns(si,u,ze.playButton)};e:Ji=Q(qe.state.playPrevChapterDisabledTooltip);return[Ne,ve,X,be,xe,et,ye,je,Xe,Ce,Z,ue,Ye,ft,dt,bt,wt,we,vt,_i,ze,Qt,ji,m,T,v,I,A,q,re,H,pi,un,gn,cn,xi,$i,li,qi,en,tn,Ii,Ui,$e,ci,hi,r,s,a,l,o,y,G,J,E,te,M,ee,ke,Ge,Ke,Je,We,ti,Lt,Ue,Qe,tt,_t,ii,Li,Gt,Ri,Yi,ni,vi,_n,fi,Zi,di,Xi,yi,Bi,wi,Mt,Ni,ki,xt,si,Ci,mi,gt,Oi,Pt,ai,Cn,ui,Fi,Hi,Si,Ti,jt,$t,Pi,on,ln,Ki,dn,se,ht,Re,Pe,Ie,mt,Nt,Et,bn,oi,n,u,f,h,b,S,w,g,K,ae,L,x,ei,rn,Ei,Mi,ri,Bn,In,En,Yt,Zn,Xn,Dn,zn,Mn,qn,Tn,Nn,Un,ne,It,Vn,vn,Kn,sn,io]}var Qu=class extends j{constructor(e){super(),W(this,e,K3,U3,U,{bottomHidden:1,bottomNoSmooth:2,showControls:3,controlsElementRef:0,isAds:4,canRewindLive:5,logoClickable:6,logoHidden:110,logoTargetUrl:7,showNextPrevButtons:8,nextButtonActive:9,prevButtonActive:10,isOneVideoPlaylist:111,supportLink:11,customFullscreenSupported:112,playNextVideo:12,playPrevVideo:13,repeatPlaylist:113,toggleFullscreen:14,returnFocus:15,seekToInteractive:16,toggleGraph:17,playPrevChapter:18,onDisabledPlayPrevChapterClick:114,onDisabledSeekToInteractiveClick:115},A3,[-1,-1,-1,-1,-1,-1])}},w0=Qu;function j3(i){let e,t,n;function o(l){i[28](l)}let r={bottomHidden:i[1],bottomNoSmooth:i[2],showControls:i[3],isAds:i[4],canRewindLive:i[5],logoClickable:i[6],logoHidden:i[7],logoTargetUrl:i[8],showNextPrevButtons:i[9],nextButtonActive:i[10],prevButtonActive:i[11],isOneVideoPlaylist:i[12],supportLink:i[13],customFullscreenSupported:i[14],playNextVideo:i[15],playPrevVideo:i[16],repeatPlaylist:i[17],toggleFullscreen:i[18],returnFocus:i[19],seekToInteractive:i[20],toggleGraph:i[21],playPrevChapter:i[22]};return i[0]!==void 0&&(r.controlsElementRef=i[0]),e=new jm({props:r}),_e.push(()=>Fe(e,"controlsElementRef",o)),{c(){D(e.$$.fragment)},m(l,a){R(e,l,a),n=!0},p(l,a){let s={};a&2&&(s.bottomHidden=l[1]),a&4&&(s.bottomNoSmooth=l[2]),a&8&&(s.showControls=l[3]),a&16&&(s.isAds=l[4]),a&32&&(s.canRewindLive=l[5]),a&64&&(s.logoClickable=l[6]),a&128&&(s.logoHidden=l[7]),a&256&&(s.logoTargetUrl=l[8]),a&512&&(s.showNextPrevButtons=l[9]),a&1024&&(s.nextButtonActive=l[10]),a&2048&&(s.prevButtonActive=l[11]),a&4096&&(s.isOneVideoPlaylist=l[12]),a&8192&&(s.supportLink=l[13]),a&16384&&(s.customFullscreenSupported=l[14]),a&32768&&(s.playNextVideo=l[15]),a&65536&&(s.playPrevVideo=l[16]),a&131072&&(s.repeatPlaylist=l[17]),a&262144&&(s.toggleFullscreen=l[18]),a&524288&&(s.returnFocus=l[19]),a&1048576&&(s.seekToInteractive=l[20]),a&2097152&&(s.toggleGraph=l[21]),a&4194304&&(s.playPrevChapter=l[22]),!t&&a&1&&(t=!0,s.controlsElementRef=l[0],Oe(()=>t=!1)),e.$set(s)},i(l){n||(d(e.$$.fragment,l),n=!0)},o(l){_(e.$$.fragment,l),n=!1},d(l){B(e,l)}}}function W3(i){let e,t,n;function o(l){i[27](l)}let r={bottomHidden:i[1],bottomNoSmooth:i[2],showControls:i[3],isAds:i[4],canRewindLive:i[5],logoClickable:i[6],logoHidden:i[7],logoTargetUrl:i[8],showNextPrevButtons:i[9],nextButtonActive:i[10],prevButtonActive:i[11],isOneVideoPlaylist:i[12],supportLink:i[13],customFullscreenSupported:i[14],playNextVideo:i[15],playPrevVideo:i[16],repeatPlaylist:i[17],toggleFullscreen:i[18],returnFocus:i[19],seekToInteractive:i[20],toggleGraph:i[21],playPrevChapter:i[22],onDisabledPlayPrevChapterClick:i[23],onDisabledSeekToInteractiveClick:i[24]};return i[0]!==void 0&&(r.controlsElementRef=i[0]),e=new w0({props:r}),_e.push(()=>Fe(e,"controlsElementRef",o)),{c(){D(e.$$.fragment)},m(l,a){R(e,l,a),n=!0},p(l,a){let s={};a&2&&(s.bottomHidden=l[1]),a&4&&(s.bottomNoSmooth=l[2]),a&8&&(s.showControls=l[3]),a&16&&(s.isAds=l[4]),a&32&&(s.canRewindLive=l[5]),a&64&&(s.logoClickable=l[6]),a&128&&(s.logoHidden=l[7]),a&256&&(s.logoTargetUrl=l[8]),a&512&&(s.showNextPrevButtons=l[9]),a&1024&&(s.nextButtonActive=l[10]),a&2048&&(s.prevButtonActive=l[11]),a&4096&&(s.isOneVideoPlaylist=l[12]),a&8192&&(s.supportLink=l[13]),a&16384&&(s.customFullscreenSupported=l[14]),a&32768&&(s.playNextVideo=l[15]),a&65536&&(s.playPrevVideo=l[16]),a&131072&&(s.repeatPlaylist=l[17]),a&262144&&(s.toggleFullscreen=l[18]),a&524288&&(s.returnFocus=l[19]),a&1048576&&(s.seekToInteractive=l[20]),a&2097152&&(s.toggleGraph=l[21]),a&4194304&&(s.playPrevChapter=l[22]),a&8388608&&(s.onDisabledPlayPrevChapterClick=l[23]),a&16777216&&(s.onDisabledSeekToInteractiveClick=l[24]),!t&&a&1&&(t=!0,s.controlsElementRef=l[0],Oe(()=>t=!1)),e.$set(s)},i(l){n||(d(e.$$.fragment,l),n=!0)},o(l){_(e.$$.fragment,l),n=!1},d(l){B(e,l)}}}function G3(i){let e,t,n,o,r=[W3,j3],l=[];function a(s,u){return s[25]?0:1}return e=a(i,-1),t=l[e]=r[e](i),{c(){t.c(),n=st()},m(s,u){l[e].m(s,u),C(s,n,u),o=!0},p(s,[u]){let f=e;e=a(s,u),e===f?l[e].p(s,u):(ce(),_(l[f],1,1,()=>{l[f]=null}),fe(),t=l[e],t?t.p(s,u):(t=l[e]=r[e](s),t.c()),d(t,1),t.m(n.parentNode,n))},i(s){o||(d(t),o=!0)},o(s){_(t),o=!1},d(s){s&&k(n),l[e].d(s)}}}function Q3(i,e,t){let n,{bottomHidden:o}=e,{bottomNoSmooth:r=!1}=e,{showControls:l}=e,{controlsElementRef:a=void 0}=e,{isAds:s=!1}=e,{canRewindLive:u}=e,{logoClickable:f}=e,{logoHidden:m}=e,{logoTargetUrl:h=""}=e,{showNextPrevButtons:y}=e,{nextButtonActive:b}=e,{prevButtonActive:S}=e,{isOneVideoPlaylist:w=!1}=e,{supportLink:T}=e,{customFullscreenSupported:v=!0}=e,{playNextVideo:g}=e,{playPrevVideo:I}=e,{repeatPlaylist:A}=e,{toggleFullscreen:q}=e,{returnFocus:K=ls.noop}=e,{seekToInteractive:re}=e,{toggleGraph:ae}=e,{playPrevChapter:H}=e,{onDisabledPlayPrevChapterClick:L=ls.noop}=e,{onDisabledSeekToInteractiveClick:x=ls.noop}=e,J=nt().ui.isMobile;F(i,J,M=>t(25,n=M));function E(M){a=M,t(0,a)}function te(M){a=M,t(0,a)}return i.$$set=M=>{"bottomHidden"in M&&t(1,o=M.bottomHidden),"bottomNoSmooth"in M&&t(2,r=M.bottomNoSmooth),"showControls"in M&&t(3,l=M.showControls),"controlsElementRef"in M&&t(0,a=M.controlsElementRef),"isAds"in M&&t(4,s=M.isAds),"canRewindLive"in M&&t(5,u=M.canRewindLive),"logoClickable"in M&&t(6,f=M.logoClickable),"logoHidden"in M&&t(7,m=M.logoHidden),"logoTargetUrl"in M&&t(8,h=M.logoTargetUrl),"showNextPrevButtons"in M&&t(9,y=M.showNextPrevButtons),"nextButtonActive"in M&&t(10,b=M.nextButtonActive),"prevButtonActive"in M&&t(11,S=M.prevButtonActive),"isOneVideoPlaylist"in M&&t(12,w=M.isOneVideoPlaylist),"supportLink"in M&&t(13,T=M.supportLink),"customFullscreenSupported"in M&&t(14,v=M.customFullscreenSupported),"playNextVideo"in M&&t(15,g=M.playNextVideo),"playPrevVideo"in M&&t(16,I=M.playPrevVideo),"repeatPlaylist"in M&&t(17,A=M.repeatPlaylist),"toggleFullscreen"in M&&t(18,q=M.toggleFullscreen),"returnFocus"in M&&t(19,K=M.returnFocus),"seekToInteractive"in M&&t(20,re=M.seekToInteractive),"toggleGraph"in M&&t(21,ae=M.toggleGraph),"playPrevChapter"in M&&t(22,H=M.playPrevChapter),"onDisabledPlayPrevChapterClick"in M&&t(23,L=M.onDisabledPlayPrevChapterClick),"onDisabledSeekToInteractiveClick"in M&&t(24,x=M.onDisabledSeekToInteractiveClick)},[a,o,r,l,s,u,f,m,h,y,b,S,w,T,v,g,I,A,q,K,re,ae,H,L,x,n,J,E,te]}var Yu=class extends j{constructor(e){super(),W(this,e,Q3,G3,U,{bottomHidden:1,bottomNoSmooth:2,showControls:3,controlsElementRef:0,isAds:4,canRewindLive:5,logoClickable:6,logoHidden:7,logoTargetUrl:8,showNextPrevButtons:9,nextButtonActive:10,prevButtonActive:11,isOneVideoPlaylist:12,supportLink:13,customFullscreenSupported:14,playNextVideo:15,playPrevVideo:16,repeatPlaylist:17,toggleFullscreen:18,returnFocus:19,seekToInteractive:20,toggleGraph:21,playPrevChapter:22,onDisabledPlayPrevChapterClick:23,onDisabledSeekToInteractiveClick:24})}},rs=Yu;function Y3(i){let e,t,n,o,r,l,a,s,u,f,m,h,y,b,S=i[2].default,w=Ee(S,i,i[1],null),T=[{xmlns:"http://www.w3.org/2000/svg"},{width:"48"},{height:"51"},{fill:"none"},{"aria-hidden":"true"},{"data-testid":"seek-icon"},{role:"img"},i[0]],v={};for(let g=0;g<T.length;g+=1)v=oe(v,T[g]);return{c(){e=N("svg"),w&&w.c(),t=N("g"),n=N("path"),o=N("path"),r=N("defs"),l=N("filter"),a=N("feFlood"),s=N("feColorMatrix"),u=N("feOffset"),f=N("feGaussianBlur"),m=N("feColorMatrix"),h=N("feBlend"),y=N("feBlend"),c(n,"fill","#fff"),c(n,"d","M15.537 10.534a1.157 1.157 0 0 0 .003 1.96l7.658 4.823c.78.491 1.798-.065 1.798-.981v-3.3c7.265.512 13 6.568 13 13.964 0 7.732-6.268 14-14 14-5.98 0-11.088-3.75-13.093-9.032a1.5 1.5 0 0 0-2.805 1.064C10.531 39.441 16.73 44 23.996 44c9.39 0 17-7.611 17-17 0-9.053-7.076-16.453-16-16.971V6.664c0-.918-1.021-1.473-1.8-.98z"),c(o,"stroke","#000"),c(o,"stroke-opacity",".12"),c(o,"stroke-width",".5"),c(o,"d","M15.404 10.322a1.407 1.407 0 0 0 .003 2.384l7.657 4.823c.944.594 2.182-.076 2.182-1.193v-3.03c7.008.631 12.5 6.522 12.5 13.694 0 7.594-6.156 13.75-13.75 13.75-5.873 0-10.89-3.683-12.86-8.871a1.75 1.75 0 1 0-3.272 1.242c2.469 6.503 8.758 11.129 16.132 11.129 9.527 0 17.25-7.723 17.25-17.25 0-9.107-7.056-16.565-16-17.205V6.664c0-1.118-1.241-1.788-2.184-1.19z"),c(t,"filter","url(#a)"),c(a,"flood-opacity","0"),c(a,"result","BackgroundImageFix"),c(s,"in","SourceAlpha"),c(s,"result","hardAlpha"),c(s,"values","0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0"),c(f,"stdDeviation","2.5"),c(m,"values","0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.16 0"),c(h,"in2","BackgroundImageFix"),c(h,"result","effect1_dropShadow_2260_100684"),c(y,"in","SourceGraphic"),c(y,"in2","effect1_dropShadow_2260_100684"),c(y,"result","shape"),c(l,"id","a"),c(l,"width","43.996"),c(l,"height","49.5"),c(l,"x","2.5"),c(l,"y","0"),c(l,"color-interpolation-filters","sRGB"),c(l,"filterUnits","userSpaceOnUse"),ge(e,v)},m(g,I){C(g,e,I),w&&w.m(e,null),p(e,t),p(t,n),p(t,o),p(e,r),p(r,l),p(l,a),p(l,s),p(l,u),p(l,f),p(l,m),p(l,h),p(l,y),b=!0},p(g,[I]){w&&w.p&&(!b||I&2)&&Ve(w,S,g,g[1],b?Me(S,g[1],I,null):Ae(g[1]),null),ge(e,v=Le(T,[{xmlns:"http://www.w3.org/2000/svg"},{width:"48"},{height:"51"},{fill:"none"},{"aria-hidden":"true"},{"data-testid":"seek-icon"},{role:"img"},I&1&&g[0]]))},i(g){b||(d(w,g),b=!0)},o(g){_(w,g),b=!1},d(g){g&&k(e),w&&w.d(g)}}}function Z3(i,e,t){let{$$slots:n={},$$scope:o}=e;return i.$$set=r=>{t(0,e=oe(oe({},e),he(r))),"$$scope"in r&&t(1,o=r.$$scope)},e=he(e),[e,o,n]}var Zu=class extends j{constructor(e){super(),W(this,e,Z3,Y3,U,{})}},k0=Zu;function X3(i){let e,t;return e=new k0({props:{style:i[0]}}),{c(){D(e.$$.fragment)},m(n,o){R(e,n,o),t=!0},p(n,[o]){let r={};o&1&&(r.style=n[0]),e.$set(r)},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){_(e.$$.fragment,n),t=!1},d(n){B(e,n)}}}function J3(i,e,t){let n,{reversed:o=!1}=e;return i.$$set=r=>{"reversed"in r&&t(1,o=r.reversed)},i.$$.update=()=>{if(i.$$.dirty&2)e:t(0,n=o?"transform: scaleX(-1);":void 0)},[n,o]}var Xu=class extends j{constructor(e){super(),W(this,e,J3,X3,U,{reversed:1})}},C0=Xu;function x3(i){let e,t,n,o,r,l,a,s,u,f,m,h,y,b,S,w,T=i[2].default,v=Ee(T,i,i[1],null),g=[{xmlns:"http://www.w3.org/2000/svg"},{width:"48"},{height:"48"},{fill:"none"},{"aria-hidden":"true"},{"data-testid":"subtitles-on-icon"},{role:"img"},i[0]],I={};for(let A=0;A<g.length;A+=1)I=oe(I,g[A]);return{c(){e=N("svg"),v&&v.c(),t=N("g"),n=N("path"),o=N("path"),r=N("defs"),l=N("clipPath"),a=N("path"),s=N("filter"),u=N("feFlood"),f=N("feColorMatrix"),m=N("feOffset"),h=N("feGaussianBlur"),y=N("feColorMatrix"),b=N("feBlend"),S=N("feBlend"),c(n,"fill","#fff"),c(n,"fill-rule","evenodd"),c(n,"d","M28.167 7h-8.334c-2.463 0-4.404 0-5.966.128-1.594.13-2.925.4-4.134 1.016a10.5 10.5 0 0 0-4.589 4.59c-.616 1.208-.886 2.54-1.016 4.133C4 18.429 4 20.37 4 22.833v2.334c0 2.463 0 4.404.128 5.966.13 1.594.4 2.925 1.016 4.134a10.5 10.5 0 0 0 4.59 4.589c1.208.616 2.54.886 4.133 1.016 1.562.128 3.502.128 5.966.128h8.334c2.463 0 4.404 0 5.966-.128 1.594-.13 2.925-.4 4.134-1.016a10.5 10.5 0 0 0 4.589-4.59c.616-1.208.886-2.54 1.016-4.133.128-1.562.128-3.502.128-5.966v-2.334c0-2.463 0-4.404-.128-5.966-.13-1.594-.4-2.925-1.016-4.134a10.5 10.5 0 0 0-4.59-4.589c-1.208-.616-2.54-.886-4.133-1.016C32.571 7 30.63 7 28.167 7M13.5 28a1.5 1.5 0 0 0 0 3h11a1.5 1.5 0 0 0 0-3zM12 22a1.5 1.5 0 0 1 1.5-1.5h4a1.5 1.5 0 0 1 0 3h-4A1.5 1.5 0 0 1 12 22m18.5 6a1.5 1.5 0 0 0 0 3h4a1.5 1.5 0 0 0 0-3zM22 22a1.5 1.5 0 0 1 1.5-1.5h11a1.5 1.5 0 0 1 0 3h-11A1.5 1.5 0 0 1 22 22"),c(n,"clip-rule","evenodd"),c(o,"stroke","#000"),c(o,"stroke-opacity",".12"),c(o,"stroke-width",".5"),c(o,"d","M28.167 6.75h-8.344c-2.455 0-4.405 0-5.977.128-1.609.132-2.976.407-4.226 1.044a10.75 10.75 0 0 0-4.698 4.698c-.637 1.25-.912 2.617-1.044 4.226-.128 1.572-.128 3.522-.128 5.977v2.354c0 2.455 0 4.405.128 5.977.132 1.609.407 2.976 1.044 4.226a10.75 10.75 0 0 0 4.698 4.698c1.25.637 2.617.912 4.226 1.044 1.572.128 3.522.128 5.977.128h8.354c2.455 0 4.404 0 5.977-.128 1.609-.132 2.976-.407 4.226-1.044a10.75 10.75 0 0 0 4.698-4.698c.637-1.25.912-2.617 1.044-4.226.128-1.573.128-3.522.128-5.977v-2.354c0-2.455 0-4.405-.128-5.977-.132-1.609-.407-2.976-1.044-4.226a10.75 10.75 0 0 0-4.698-4.698c-1.25-.637-2.617-.912-4.226-1.044-1.572-.128-3.522-.128-5.977-.128zM12.25 29.5c0-.69.56-1.25 1.25-1.25h11a1.25 1.25 0 1 1 0 2.5h-11c-.69 0-1.25-.56-1.25-1.25Zm0-7.5c0-.69.56-1.25 1.25-1.25h4a1.25 1.25 0 1 1 0 2.5h-4c-.69 0-1.25-.56-1.25-1.25Zm17 7.5c0-.69.56-1.25 1.25-1.25h4a1.25 1.25 0 1 1 0 2.5h-4c-.69 0-1.25-.56-1.25-1.25Zm-7-7.5c0-.69.56-1.25 1.25-1.25h11a1.25 1.25 0 1 1 0 2.5h-11c-.69 0-1.25-.56-1.25-1.25Z"),c(t,"clip-path","url(#c)"),c(t,"filter","url(#a)"),c(a,"fill","#fff"),c(a,"d","M0 0h48v48H0z"),c(l,"id","c"),c(u,"flood-opacity","0"),c(u,"result","BackgroundImageFix"),c(f,"in","SourceAlpha"),c(f,"result","hardAlpha"),c(f,"values","0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0"),c(h,"stdDeviation","2.5"),c(y,"values","0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.16 0"),c(b,"in2","BackgroundImageFix"),c(b,"result","effect1_dropShadow_2260_104204"),c(S,"in","SourceGraphic"),c(S,"in2","effect1_dropShadow_2260_104204"),c(S,"result","shape"),c(s,"id","a"),c(s,"width","51"),c(s,"height","45"),c(s,"x","-1.5"),c(s,"y","1.5"),c(s,"color-interpolation-filters","sRGB"),c(s,"filterUnits","userSpaceOnUse"),ge(e,I)},m(A,q){C(A,e,q),v&&v.m(e,null),p(e,t),p(t,n),p(t,o),p(e,r),p(r,l),p(l,a),p(r,s),p(s,u),p(s,f),p(s,m),p(s,h),p(s,y),p(s,b),p(s,S),w=!0},p(A,[q]){v&&v.p&&(!w||q&2)&&Ve(v,T,A,A[1],w?Me(T,A[1],q,null):Ae(A[1]),null),ge(e,I=Le(g,[{xmlns:"http://www.w3.org/2000/svg"},{width:"48"},{height:"48"},{fill:"none"},{"aria-hidden":"true"},{"data-testid":"subtitles-on-icon"},{role:"img"},q&1&&A[0]]))},i(A){w||(d(v,A),w=!0)},o(A){_(v,A),w=!1},d(A){A&&k(e),v&&v.d(A)}}}function $3(i,e,t){let{$$slots:n={},$$scope:o}=e;return i.$$set=r=>{t(0,e=oe(oe({},e),he(r))),"$$scope"in r&&t(1,o=r.$$scope)},e=he(e),[e,o,n]}var Ju=class extends j{constructor(e){super(),W(this,e,$3,x3,U,{})}},S0=Ju;function e5(i){let e,t,n,o,r,l,a,s,u,f,m,h,y,b,S,w,T,v=i[2].default,g=Ee(v,i,i[1],null),I=[{xmlns:"http://www.w3.org/2000/svg"},{width:"48"},{height:"48"},{fill:"none"},{"aria-hidden":"true"},{"data-testid":"subtitles-off-icon"},{role:"img"},i[0]],A={};for(let q=0;q<I.length;q+=1)A=oe(A,I[q]);return{c(){e=N("svg"),g&&g.c(),t=N("g"),n=N("path"),o=N("path"),r=N("path"),l=N("defs"),a=N("clipPath"),s=N("path"),u=N("filter"),f=N("feFlood"),m=N("feColorMatrix"),h=N("feOffset"),y=N("feGaussianBlur"),b=N("feColorMatrix"),S=N("feBlend"),w=N("feBlend"),c(n,"fill","#fff"),c(n,"fill-rule","evenodd"),c(n,"d","M6.56 4.44a1.5 1.5 0 1 0-2.12 2.12l3.088 3.09a10.5 10.5 0 0 0-2.384 3.083c-.616 1.21-.886 2.54-1.016 4.134C4 18.429 4 20.369 4 22.833v2.334c0 2.463 0 4.404.128 5.966.13 1.594.4 2.925 1.016 4.134a10.5 10.5 0 0 0 4.59 4.589c1.208.616 2.54.886 4.133 1.016 1.562.128 3.502.128 5.966.128h8.334c2.463 0 4.404 0 5.966-.128 1.437-.117 2.66-.348 3.773-.844l3.533 3.533a1.5 1.5 0 0 0 2.122-2.122l-37-37ZM13.5 28a1.5 1.5 0 0 0 0 3h11a1.5 1.5 0 0 0 0-3zM12 22a1.5 1.5 0 0 1 1.5-1.5h4a1.5 1.5 0 0 1 0 3h-4A1.5 1.5 0 0 1 12 22"),c(n,"clip-rule","evenodd"),c(o,"fill","#fff"),c(o,"d","M34.5 23.5h-4.639l12.552 12.551q.237-.381.443-.784c.616-1.21.886-2.54 1.016-4.134.128-1.562.128-3.502.128-5.966v-2.334c0-2.463 0-4.404-.128-5.966-.13-1.594-.4-2.925-1.016-4.134a10.5 10.5 0 0 0-4.59-4.589c-1.208-.616-2.54-.886-4.133-1.016C32.571 7 30.63 7 28.167 7h-8.334c-2.463 0-4.404 0-5.966.128l-.347.03L26.86 20.5h7.64a1.5 1.5 0 0 1 0 3"),c(r,"stroke","#000"),c(r,"stroke-opacity",".12"),c(r,"stroke-width",".5"),c(r,"d","M29.861 23.25h-.603l.427.427 12.55 12.551.223.223.167-.268q.243-.39.453-.803c.637-1.25.912-2.617 1.044-4.226.128-1.573.128-3.522.128-5.977v-2.354c0-2.455 0-4.405-.128-5.977-.132-1.609-.407-2.976-1.044-4.226a10.75 10.75 0 0 0-4.698-4.698c-1.25-.637-2.617-.912-4.226-1.044-1.572-.128-3.522-.128-5.977-.128h-8.354c-2.455 0-4.405 0-5.977.128q-.177.014-.35.032l-.527.051.374.374 13.341 13.342.074.073H34.5a1.25 1.25 0 1 1 0 2.5zM6.737 4.263a1.75 1.75 0 0 0-2.474 2.474l2.903 2.904a10.8 10.8 0 0 0-2.244 2.979c-.637 1.25-.912 2.617-1.044 4.226-.128 1.572-.128 3.522-.128 5.977v2.354c0 2.455 0 4.405.128 5.977.132 1.609.407 2.976 1.044 4.226a10.75 10.75 0 0 0 4.698 4.698c1.25.637 2.617.912 4.226 1.044 1.572.128 3.522.128 5.977.128h8.354c2.455 0 4.404 0 5.977-.128 1.384-.114 2.59-.333 3.696-.797l3.413 3.412a1.75 1.75 0 1 0 2.474-2.474zM12.25 29.5c0-.69.56-1.25 1.25-1.25h11a1.25 1.25 0 1 1 0 2.5h-11c-.69 0-1.25-.56-1.25-1.25Zm0-7.5c0-.69.56-1.25 1.25-1.25h4a1.25 1.25 0 1 1 0 2.5h-4c-.69 0-1.25-.56-1.25-1.25Z"),c(t,"clip-path","url(#c)"),c(t,"filter","url(#a)"),c(s,"fill","#fff"),c(s,"d","M0 0h48v48H0z"),c(a,"id","c"),c(f,"flood-opacity","0"),c(f,"result","BackgroundImageFix"),c(m,"in","SourceAlpha"),c(m,"result","hardAlpha"),c(m,"values","0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0"),c(y,"stdDeviation","2.5"),c(b,"values","0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.16 0"),c(S,"in2","BackgroundImageFix"),c(S,"result","effect1_dropShadow_2260_104293"),c(w,"in","SourceGraphic"),c(w,"in2","effect1_dropShadow_2260_104293"),c(w,"result","shape"),c(u,"id","a"),c(u,"width","51"),c(u,"height","51"),c(u,"x","-1.5"),c(u,"y","-1.5"),c(u,"color-interpolation-filters","sRGB"),c(u,"filterUnits","userSpaceOnUse"),ge(e,A)},m(q,K){C(q,e,K),g&&g.m(e,null),p(e,t),p(t,n),p(t,o),p(t,r),p(e,l),p(l,a),p(a,s),p(l,u),p(u,f),p(u,m),p(u,h),p(u,y),p(u,b),p(u,S),p(u,w),T=!0},p(q,[K]){g&&g.p&&(!T||K&2)&&Ve(g,v,q,q[1],T?Me(v,q[1],K,null):Ae(q[1]),null),ge(e,A=Le(I,[{xmlns:"http://www.w3.org/2000/svg"},{width:"48"},{height:"48"},{fill:"none"},{"aria-hidden":"true"},{"data-testid":"subtitles-off-icon"},{role:"img"},K&1&&q[0]]))},i(q){T||(d(g,q),T=!0)},o(q){_(g,q),T=!1},d(q){q&&k(e),g&&g.d(q)}}}function t5(i,e,t){let{$$slots:n={},$$scope:o}=e;return i.$$set=r=>{t(0,e=oe(oe({},e),he(r))),"$$scope"in r&&t(1,o=r.$$scope)},e=he(e),[e,o,n]}var xu=class extends j{constructor(e){super(),W(this,e,t5,e5,U,{})}},T0=xu;function i5(i){let e,t;return e=new S0({}),{c(){D(e.$$.fragment)},m(n,o){R(e,n,o),t=!0},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){_(e.$$.fragment,n),t=!1},d(n){B(e,n)}}}function n5(i){let e,t;return e=new T0({}),{c(){D(e.$$.fragment)},m(n,o){R(e,n,o),t=!0},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){_(e.$$.fragment,n),t=!1},d(n){B(e,n)}}}function o5(i){let e,t,n,o,r=[n5,i5],l=[];function a(s,u){return s[0]?0:1}return e=a(i,-1),t=l[e]=r[e](i),{c(){t.c(),n=st()},m(s,u){l[e].m(s,u),C(s,n,u),o=!0},p(s,[u]){let f=e;e=a(s,u),e!==f&&(ce(),_(l[f],1,1,()=>{l[f]=null}),fe(),t=l[e],t||(t=l[e]=r[e](s),t.c()),d(t,1),t.m(n.parentNode,n))},i(s){o||(d(t),o=!0)},o(s){_(t),o=!1},d(s){s&&k(n),l[e].d(s)}}}function l5(i,e,t){let{isOff:n=!1}=e;return i.$$set=o=>{"isOff"in o&&t(0,n=o.isOff)},[n]}var $u=class extends j{constructor(e){super(),W(this,e,l5,o5,U,{isOff:0})}},ec=$u;function r5(i){let e,t,n,o,r,l,a,s,u,f,m,h,y,b,S=i[2].default,w=Ee(S,i,i[1],null),T=[{xmlns:"http://www.w3.org/2000/svg"},{width:"48"},{height:"48"},{fill:"none"},{"aria-hidden":"true"},{"data-testid":"rate-change-icon"},{role:"img"},i[0]],v={};for(let g=0;g<T.length;g+=1)v=oe(v,T[g]);return{c(){e=N("svg"),w&&w.c(),t=N("g"),n=N("path"),o=N("path"),r=N("defs"),l=N("filter"),a=N("feFlood"),s=N("feColorMatrix"),u=N("feOffset"),f=N("feGaussianBlur"),m=N("feColorMatrix"),h=N("feBlend"),y=N("feBlend"),c(n,"fill","#fff"),c(n,"d","M24 22.677v-5.87a1.2 1.2 0 0 0-1.792-1.045L9.51 22.955a1.2 1.2 0 0 0 0 2.088l12.697 7.192a1.2 1.2 0 0 0 1.791-1.044v-5.873l12.21 6.916A1.2 1.2 0 0 0 38 31.19V16.805a1.2 1.2 0 0 0-1.791-1.044z"),c(o,"stroke","#000"),c(o,"stroke-opacity",".12"),c(o,"stroke-width",".5"),c(o,"d","M24.25 16.806v5.442l11.835-6.704a1.45 1.45 0 0 1 2.165 1.261V31.19a1.45 1.45 0 0 1-2.165 1.262L24.25 25.747v5.444a1.45 1.45 0 0 1-2.164 1.262L9.388 25.26a1.45 1.45 0 0 1 0-2.523l12.697-7.192a1.45 1.45 0 0 1 2.164 1.261Z"),c(t,"filter","url(#a)"),c(a,"flood-opacity","0"),c(a,"result","BackgroundImageFix"),c(s,"in","SourceAlpha"),c(s,"result","hardAlpha"),c(s,"values","0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0"),c(f,"stdDeviation","2.5"),c(m,"values","0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.16 0"),c(h,"in2","BackgroundImageFix"),c(h,"result","effect1_dropShadow_2260_106627"),c(y,"in","SourceGraphic"),c(y,"in2","effect1_dropShadow_2260_106627"),c(y,"result","shape"),c(l,"id","a"),c(l,"width","40.098"),c(l,"height","27.785"),c(l,"x","3.402"),c(l,"y","10.105"),c(l,"color-interpolation-filters","sRGB"),c(l,"filterUnits","userSpaceOnUse"),ge(e,v)},m(g,I){C(g,e,I),w&&w.m(e,null),p(e,t),p(t,n),p(t,o),p(e,r),p(r,l),p(l,a),p(l,s),p(l,u),p(l,f),p(l,m),p(l,h),p(l,y),b=!0},p(g,[I]){w&&w.p&&(!b||I&2)&&Ve(w,S,g,g[1],b?Me(S,g[1],I,null):Ae(g[1]),null),ge(e,v=Le(T,[{xmlns:"http://www.w3.org/2000/svg"},{width:"48"},{height:"48"},{fill:"none"},{"aria-hidden":"true"},{"data-testid":"rate-change-icon"},{role:"img"},I&1&&g[0]]))},i(g){b||(d(w,g),b=!0)},o(g){_(w,g),b=!1},d(g){g&&k(e),w&&w.d(g)}}}function s5(i,e,t){let{$$slots:n={},$$scope:o}=e;return i.$$set=r=>{t(0,e=oe(oe({},e),he(r))),"$$scope"in r&&t(1,o=r.$$scope)},e=he(e),[e,o,n]}var tc=class extends j{constructor(e){super(),W(this,e,s5,r5,U,{})}},P0=tc;function a5(i){let e,t;return e=new P0({props:{style:i[0]}}),{c(){D(e.$$.fragment)},m(n,o){R(e,n,o),t=!0},p(n,[o]){let r={};o&1&&(r.style=n[0]),e.$set(r)},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){_(e.$$.fragment,n),t=!1},d(n){B(e,n)}}}function u5(i,e,t){let n,{reversed:o=!1}=e;return i.$$set=r=>{"reversed"in r&&t(1,o=r.reversed)},i.$$.update=()=>{if(i.$$.dirty&2)e:t(0,n=o?"transform: scaleX(-1);":void 0)},[n,o]}var ic=class extends j{constructor(e){super(),W(this,e,u5,a5,U,{reversed:1})}},I0=ic;function c5(i){let e,t,n,o,r,l,a,s,u,f,m,h,y,b,S=i[2].default,w=Ee(S,i,i[1],null),T=[{xmlns:"http://www.w3.org/2000/svg"},{width:"48"},{height:"48"},{fill:"none"},{"aria-hidden":"true"},{"data-testid":"episodes-seek-icon"},{role:"img"},i[0]],v={};for(let g=0;g<T.length;g+=1)v=oe(v,T[g]);return{c(){e=N("svg"),w&&w.c(),t=N("g"),n=N("path"),o=N("path"),r=N("defs"),l=N("filter"),a=N("feFlood"),s=N("feColorMatrix"),u=N("feOffset"),f=N("feGaussianBlur"),m=N("feColorMatrix"),h=N("feBlend"),y=N("feBlend"),c(n,"fill","#fff"),c(n,"d","M14 21.817c.631-.505 1.627-1.054 3.084-1.857l13.009-7.172c2.268-1.25 3.402-1.875 4.332-1.778a2.9 2.9 0 0 1 2.026 1.134c.549.73.549 1.991.549 4.511v14.69c0 2.52 0 3.78-.549 4.51a2.9 2.9 0 0 1-2.026 1.135c-.93.097-2.064-.528-4.332-1.778L17.084 28.04c-1.457-.803-2.453-1.352-3.084-1.857V34.5a1.5 1.5 0 0 1-3 0v-21a1.5 1.5 0 0 1 3 0z"),c(o,"stroke","#000"),c(o,"stroke-opacity",".12"),c(o,"stroke-width",".5"),c(o,"d","m16.964 19.74-.029.016c-1.162.641-2.046 1.129-2.685 1.567V13.5a1.75 1.75 0 1 0-3.5 0v21a1.75 1.75 0 1 0 3.5 0v-7.823c.639.438 1.523.926 2.685 1.567l.029.015 13.008 7.172.012.006c1.124.62 1.983 1.093 2.676 1.398.695.306 1.26.46 1.791.404a3.16 3.16 0 0 0 2.2-1.233c.317-.421.46-.976.53-1.711.069-.733.069-1.688.069-2.936V16.641c0-1.248 0-2.203-.07-2.936-.07-.735-.212-1.29-.529-1.711a3.16 3.16 0 0 0-2.2-1.233c-.53-.055-1.096.098-1.79.404-.694.305-1.553.778-2.677 1.398l-.012.006z"),c(t,"filter","url(#a)"),c(a,"flood-opacity","0"),c(a,"result","BackgroundImageFix"),c(s,"in","SourceAlpha"),c(s,"result","hardAlpha"),c(s,"values","0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0"),c(f,"stdDeviation","2.5"),c(m,"values","0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.16 0"),c(h,"in2","BackgroundImageFix"),c(h,"result","effect1_dropShadow_2340_106922"),c(y,"in","SourceGraphic"),c(y,"in2","effect1_dropShadow_2340_106922"),c(y,"result","shape"),c(l,"id","a"),c(l,"width","37"),c(l,"height","37"),c(l,"x","5.5"),c(l,"y","5.5"),c(l,"color-interpolation-filters","sRGB"),c(l,"filterUnits","userSpaceOnUse"),ge(e,v)},m(g,I){C(g,e,I),w&&w.m(e,null),p(e,t),p(t,n),p(t,o),p(e,r),p(r,l),p(l,a),p(l,s),p(l,u),p(l,f),p(l,m),p(l,h),p(l,y),b=!0},p(g,[I]){w&&w.p&&(!b||I&2)&&Ve(w,S,g,g[1],b?Me(S,g[1],I,null):Ae(g[1]),null),ge(e,v=Le(T,[{xmlns:"http://www.w3.org/2000/svg"},{width:"48"},{height:"48"},{fill:"none"},{"aria-hidden":"true"},{"data-testid":"episodes-seek-icon"},{role:"img"},I&1&&g[0]]))},i(g){b||(d(w,g),b=!0)},o(g){_(w,g),b=!1},d(g){g&&k(e),w&&w.d(g)}}}function f5(i,e,t){let{$$slots:n={},$$scope:o}=e;return i.$$set=r=>{t(0,e=oe(oe({},e),he(r))),"$$scope"in r&&t(1,o=r.$$scope)},e=he(e),[e,o,n]}var nc=class extends j{constructor(e){super(),W(this,e,f5,c5,U,{})}},E0=nc;function d5(i){let e,t;return e=new E0({props:{style:i[0]}}),{c(){D(e.$$.fragment)},m(n,o){R(e,n,o),t=!0},p(n,[o]){let r={};o&1&&(r.style=n[0]),e.$set(r)},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){_(e.$$.fragment,n),t=!1},d(n){B(e,n)}}}function m5(i,e,t){let n,{reversed:o=!1}=e;return i.$$set=r=>{"reversed"in r&&t(1,o=r.reversed)},i.$$.update=()=>{if(i.$$.dirty&2)e:t(0,n=o?"transform: scaleX(-1);":void 0)},[n,o]}var oc=class extends j{constructor(e){super(),W(this,e,m5,d5,U,{reversed:1})}},M0=oc;function p5(i){Te(i,"svelte-4ftgwp",`.hot-key-helpers-container.svelte-4ftgwp.svelte-4ftgwp{position:absolute;top:calc(50% - 40px);left:calc(50% - 100px);width:200px;height:120px;display:flex;align-items:center;flex-direction:column;animation:svelte-4ftgwp-fadeIn ease var(--controls-transition-duration);padding-top:14px;box-sizing:border-box}.hot-key-helpers-container.svelte-4ftgwp>div.svelte-4ftgwp{width:48px;height:48px;display:flex;justify-content:center;align-items:center}.hot-key-helpers-container.svelte-4ftgwp svg[data-testid="volume-off-icon"],.hot-key-helpers-container.svelte-4ftgwp svg[data-testid="volume-max-icon"]{transform:scale(2)}.hot-key-helpers-container.svelte-4ftgwp svg[data-testid="replay-icon"],.hot-key-helpers-container.svelte-4ftgwp svg[data-testid="play-icon"],.hot-key-helpers-container.svelte-4ftgwp svg[data-testid="pause-icon"]{transform:scale(2.5)}.hot-key-helpers-container--left.svelte-4ftgwp.svelte-4ftgwp{left:calc(25% - 100px)}.hot-key-helpers-container--right.svelte-4ftgwp.svelte-4ftgwp{left:calc(75% - 100px)}.hot-key-helpers-text.svelte-4ftgwp.svelte-4ftgwp{text-align:center;font-feature-settings:'clig' off, 'liga' off;text-shadow:0px 0px 5px rgba(0, 0, 0, 0.16);font-size:15px;font-style:normal;font-weight:600;line-height:20px;letter-spacing:-0.105px;width:100%;max-height:40px;margin-top:4px;display:-webkit-box;text-overflow:ellipsis;white-space:pre-wrap;overflow:hidden;-webkit-line-clamp:2;-webkit-box-orient:vertical}.hidden.svelte-4ftgwp.svelte-4ftgwp{visibility:hidden;animation:svelte-4ftgwp-fadeOut ease var(--controls-transition-duration);width:0;height:0}@keyframes svelte-4ftgwp-fadeIn{0%{opacity:0}100%{opacity:1}}@keyframes svelte-4ftgwp-fadeOut{0%{opacity:1}100%{opacity:0}}`)}function V0(i){let e,t=["BACKWARD_SEEK","FORWARD_SEEK"].includes(i[4]),n,o,r,l,a,s,u=["RATE_DOWN","RATE_UP"].includes(i[4]),f,m=["EPISODE_PREV","EPISODE_NEXT"].includes(i[4]),h,y,b,S,w,T=t&&A0(i),v=i[4]==="PAUSE"&&L0(i),g=i[4]==="PLAY"&&R0(i),I=i[4]==="REPLAY"&&B0(i),A=i[4]==="SUBTITLES_OFF"&&D0(i),q=i[4]==="SUBTITLES_ON"&&N0(i),K=u&&O0(i),re=m&&F0(i),ae=i[4]==="MUTE"&&H0(i),H=i[4]==="VOLUME"&&z0(i),L=i[5]&&q0(i);return{c(){e=P("div"),T&&T.c(),n=O(),v&&v.c(),o=O(),g&&g.c(),r=O(),I&&I.c(),l=O(),A&&A.c(),a=O(),q&&q.c(),s=O(),K&&K.c(),f=O(),re&&re.c(),h=O(),ae&&ae.c(),y=O(),H&&H.c(),b=O(),L&&L.c(),S=st(),c(e,"class","svelte-4ftgwp")},m(x,G){C(x,e,G),T&&T.m(e,null),p(e,n),v&&v.m(e,null),p(e,o),g&&g.m(e,null),p(e,r),I&&I.m(e,null),p(e,l),A&&A.m(e,null),p(e,a),q&&q.m(e,null),p(e,s),K&&K.m(e,null),p(e,f),re&&re.m(e,null),p(e,h),ae&&ae.m(e,null),p(e,y),H&&H.m(e,null),C(x,b,G),L&&L.m(x,G),C(x,S,G),w=!0},p(x,G){G&16&&(t=["BACKWARD_SEEK","FORWARD_SEEK"].includes(x[4])),t?T?(T.p(x,G),G&16&&d(T,1)):(T=A0(x),T.c(),d(T,1),T.m(e,n)):T&&(ce(),_(T,1,1,()=>{T=null}),fe()),x[4]==="PAUSE"?v?G&16&&d(v,1):(v=L0(x),v.c(),d(v,1),v.m(e,o)):v&&(ce(),_(v,1,1,()=>{v=null}),fe()),x[4]==="PLAY"?g?G&16&&d(g,1):(g=R0(x),g.c(),d(g,1),g.m(e,r)):g&&(ce(),_(g,1,1,()=>{g=null}),fe()),x[4]==="REPLAY"?I?G&16&&d(I,1):(I=B0(x),I.c(),d(I,1),I.m(e,l)):I&&(ce(),_(I,1,1,()=>{I=null}),fe()),x[4]==="SUBTITLES_OFF"?A?G&16&&d(A,1):(A=D0(x),A.c(),d(A,1),A.m(e,a)):A&&(ce(),_(A,1,1,()=>{A=null}),fe()),x[4]==="SUBTITLES_ON"?q?G&16&&d(q,1):(q=N0(x),q.c(),d(q,1),q.m(e,s)):q&&(ce(),_(q,1,1,()=>{q=null}),fe()),G&16&&(u=["RATE_DOWN","RATE_UP"].includes(x[4])),u?K?(K.p(x,G),G&16&&d(K,1)):(K=O0(x),K.c(),d(K,1),K.m(e,f)):K&&(ce(),_(K,1,1,()=>{K=null}),fe()),G&16&&(m=["EPISODE_PREV","EPISODE_NEXT"].includes(x[4])),m?re?(re.p(x,G),G&16&&d(re,1)):(re=F0(x),re.c(),d(re,1),re.m(e,h)):re&&(ce(),_(re,1,1,()=>{re=null}),fe()),x[4]==="MUTE"?ae?G&16&&d(ae,1):(ae=H0(x),ae.c(),d(ae,1),ae.m(e,y)):ae&&(ce(),_(ae,1,1,()=>{ae=null}),fe()),x[4]==="VOLUME"?H?G&16&&d(H,1):(H=z0(x),H.c(),d(H,1),H.m(e,null)):H&&(ce(),_(H,1,1,()=>{H=null}),fe()),x[5]?L?L.p(x,G):(L=q0(x),L.c(),L.m(S.parentNode,S)):L&&(L.d(1),L=null)},i(x){w||(d(T),d(v),d(g),d(I),d(A),d(q),d(K),d(re),d(ae),d(H),w=!0)},o(x){_(T),_(v),_(g),_(I),_(A),_(q),_(K),_(re),_(ae),_(H),w=!1},d(x){x&&(k(e),k(b),k(S)),T&&T.d(),v&&v.d(),g&&g.d(),I&&I.d(),A&&A.d(),q&&q.d(),K&&K.d(),re&&re.d(),ae&&ae.d(),H&&H.d(),L&&L.d(x)}}}function A0(i){let e,t;return e=new C0({props:{reversed:i[4]==="FORWARD_SEEK"}}),{c(){D(e.$$.fragment)},m(n,o){R(e,n,o),t=!0},p(n,o){let r={};o&16&&(r.reversed=n[4]==="FORWARD_SEEK"),e.$set(r)},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){_(e.$$.fragment,n),t=!1},d(n){B(e,n)}}}function L0(i){let e,t;return e=new Nr({}),{c(){D(e.$$.fragment)},m(n,o){R(e,n,o),t=!0},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){_(e.$$.fragment,n),t=!1},d(n){B(e,n)}}}function R0(i){let e,t;return e=new ml({}),{c(){D(e.$$.fragment)},m(n,o){R(e,n,o),t=!0},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){_(e.$$.fragment,n),t=!1},d(n){B(e,n)}}}function B0(i){let e,t;return e=new Qr({}),{c(){D(e.$$.fragment)},m(n,o){R(e,n,o),t=!0},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){_(e.$$.fragment,n),t=!1},d(n){B(e,n)}}}function D0(i){let e,t;return e=new ec({props:{isOff:!0}}),{c(){D(e.$$.fragment)},m(n,o){R(e,n,o),t=!0},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){_(e.$$.fragment,n),t=!1},d(n){B(e,n)}}}function N0(i){let e,t;return e=new ec({}),{c(){D(e.$$.fragment)},m(n,o){R(e,n,o),t=!0},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){_(e.$$.fragment,n),t=!1},d(n){B(e,n)}}}function O0(i){let e,t;return e=new I0({props:{reversed:i[4]==="RATE_UP"}}),{c(){D(e.$$.fragment)},m(n,o){R(e,n,o),t=!0},p(n,o){let r={};o&16&&(r.reversed=n[4]==="RATE_UP"),e.$set(r)},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){_(e.$$.fragment,n),t=!1},d(n){B(e,n)}}}function F0(i){let e,t;return e=new M0({props:{reversed:i[4]==="EPISODE_NEXT"}}),{c(){D(e.$$.fragment)},m(n,o){R(e,n,o),t=!0},p(n,o){let r={};o&16&&(r.reversed=n[4]==="EPISODE_NEXT"),e.$set(r)},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){_(e.$$.fragment,n),t=!1},d(n){B(e,n)}}}function H0(i){let e,t;return e=new Uo({props:{volume:0}}),{c(){D(e.$$.fragment)},m(n,o){R(e,n,o),t=!0},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){_(e.$$.fragment,n),t=!1},d(n){B(e,n)}}}function z0(i){let e,t;return e=new Uo({props:{volume:1}}),{c(){D(e.$$.fragment)},m(n,o){R(e,n,o),t=!0},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){_(e.$$.fragment,n),t=!1},d(n){B(e,n)}}}function q0(i){let e,t;return{c(){e=P("span"),t=Be(i[5]),c(e,"class","hot-key-helpers-text svelte-4ftgwp")},m(n,o){C(n,e,o),p(e,t)},p(n,o){o&32&&Ze(t,n[5])},d(n){n&&k(e)}}}function _5(i){let e,t,n=!i[1]&&i[4]&&V0(i);return{c(){e=P("div"),n&&n.c(),c(e,"class","hot-key-helpers-container svelte-4ftgwp"),z(e,"hidden",i[1]),z(e,"hot-key-helpers-container--left",i[2]),z(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&&d(n,1)):(n=V0(o),n.c(),d(n,1),n.m(e,null)):n&&(ce(),_(n,1,1,()=>{n=null}),fe()),(!t||r&2)&&z(e,"hidden",o[1]),(!t||r&4)&&z(e,"hot-key-helpers-container--left",o[2]),(!t||r&8)&&z(e,"hot-key-helpers-container--right",o[3])},i(o){t||(d(n),t=!0)},o(o){_(n),t=!1},d(o){o&&k(e),n&&n.d()}}}function h5(i,e,t){let n,o=pe,r=()=>(o(),o=Xt(l,h=>t(6,n=h)),l);i.$$.on_destroy.push(()=>o());let{data:l}=e;r();let a,s,u,f,m;return i.$$set=h=>{"data"in h&&r(t(0,l=h.data))},i.$$.update=()=>{if(i.$$.dirty&64)e:t(1,a=!n),t(2,s=(n==null?void 0:n.type)==="BACKWARD_SEEK"),t(3,u=(n==null?void 0:n.type)==="FORWARD_SEEK"),t(4,f=n==null?void 0:n.type),n!=null&&n.t?t(5,m=Q(n.t.key,{value:n.t.value||""})):t(5,m=n==null?void 0:n.text)},[l,a,s,u,f,m,n]}var lc=class extends j{constructor(e){super(),W(this,e,h5,_5,U,{data:0},p5)}},U0=lc;function g5(i){Te(i,"svelte-1yzc86r",".immersive-controls.svelte-1yzc86r{position:absolute;display:flex;flex-direction:row;top:10px;left:10px;width:56px;height:56px;background-color:rgba(0, 0, 0, .56);border-radius:8px;transition-property:top, left;transition-duration:var(--controls-transition-duration);transition-timing-function:var(--controls-transition-fn)}.immersive-controls.m-shifted.svelte-1yzc86r{top:50px;left:20px}.button-block.svelte-1yzc86r{width:40px;height:40px;margin:auto auto;transform:rotate(45deg)}.button-row.svelte-1yzc86r{display:flex;flex-direction:row;position:relative}.button.svelte-1yzc86r{width:20px;height:20px;text-align:center;cursor:pointer}.button.svelte-1yzc86r svg{opacity:0.7;transition:opacity linear 0.2s}.button.button-up.svelte-1yzc86r svg{transform:rotate(-45deg) translate(-1px, -1px)}.button.button-right.svelte-1yzc86r svg{transform:rotate(45deg) translate(1px, -1px)}.button.button-down.svelte-1yzc86r svg{transform:rotate(135deg) translate(1px, -3px)}.button.button-left.svelte-1yzc86r svg{transform:rotate(-135deg) translate(-1px, -3px)}.button.svelte-1yzc86r:hover svg{opacity:1}")}function b5(i){let e,t,n,o,r,l,a,s,u,f,m,h,y,b,S,w,T,v,g;return r=new eo({props:{direction:"up"}}),s=new eo({props:{direction:"up"}}),h=new eo({props:{direction:"up"}}),S=new eo({props:{direction:"up"}}),{c(){e=P("div"),t=P("div"),n=P("div"),o=P("div"),D(r.$$.fragment),l=O(),a=P("div"),D(s.$$.fragment),u=O(),f=P("div"),m=P("div"),D(h.$$.fragment),y=O(),b=P("div"),D(S.$$.fragment),c(o,"class","button button-up svelte-1yzc86r"),c(a,"class","button button-right svelte-1yzc86r"),c(n,"class","button-row svelte-1yzc86r"),c(m,"class","button button-left svelte-1yzc86r"),c(b,"class","button button-down svelte-1yzc86r"),c(f,"class","button-row svelte-1yzc86r"),c(t,"class","button-block svelte-1yzc86r"),c(t,"aria-hidden","true"),c(e,"class","immersive-controls svelte-1yzc86r"),c(e,"tabindex","0"),c(e,"role","button"),c(e,"aria-label",w=Q("aria_label_spherical_control")),z(e,"m-shifted",i[0])},m(I,A){C(I,e,A),p(e,t),p(t,n),p(n,o),R(r,o,null),p(n,l),p(n,a),R(s,a,null),p(t,u),p(t,f),p(f,m),R(h,m,null),p(f,y),p(f,b),R(S,b,null),T=!0,v||(g=[de(o,"mousedown",i[1]),de(o,"mouseup",i[5]),de(o,"mouseleave",i[5]),de(a,"mousedown",i[3]),de(a,"mouseup",i[5]),de(a,"mouseleave",i[5]),de(m,"mousedown",i[4]),de(m,"mouseup",i[5]),de(m,"mouseleave",i[5]),de(b,"mousedown",i[2]),de(b,"mouseup",i[5]),de(b,"mouseleave",i[5]),de(e,"keydown",i[6]),de(e,"keyup",i[7])],v=!0)},p(I,[A]){(!T||A&1)&&z(e,"m-shifted",I[0])},i(I){T||(d(r.$$.fragment,I),d(s.$$.fragment,I),d(h.$$.fragment,I),d(S.$$.fragment,I),T=!0)},o(I){_(r.$$.fragment,I),_(s.$$.fragment,I),_(h.$$.fragment,I),_(S.$$.fragment,I),T=!1},d(I){I&&k(e),B(r),B(s),B(h),B(S),v=!1,lt(g)}}}function v5(i,e,t){let{isShifted:n=!1}=e,o=nt(),r=new Set(["ArrowUp","ArrowDown","ArrowLeft","ArrowRight"]),l=()=>{o.actions.internal.startCameraManualRotation(0,1)},a=()=>{o.actions.internal.startCameraManualRotation(0,-1)},s=()=>{o.actions.internal.startCameraManualRotation(1,0)},u=()=>{o.actions.internal.startCameraManualRotation(-1,0)},f=()=>(o.actions.internal.stopCameraManualRotation(),null),m=y=>{if(r.has(y.code))switch(y.preventDefault(),y.stopPropagation(),y.code){case"ArrowUp":l();break;case"ArrowDown":a();break;case"ArrowLeft":u();break;case"ArrowRight":s();break}},h=y=>{r.has(y.code)&&(y.preventDefault(),y.stopPropagation(),f())};return i.$$set=y=>{"isShifted"in y&&t(0,n=y.isShifted)},[n,l,a,s,u,f,m,h]}var rc=class extends j{constructor(e){super(),W(this,e,v5,b5,U,{isShifted:0},g5)}},ss=rc;function y5(i){Te(i,"svelte-ovfyp5",".subtitles-container.svelte-ovfyp5.svelte-ovfyp5{position:absolute;top:0;left:0;width:100%;height:100%;pointer-events:none;transition:transform var(--controls-transition-duration)}.subtitles-container.shifted.svelte-ovfyp5.svelte-ovfyp5{transform:translateY(calc(var(--controls-height) * -1))}.subtitles-caption.svelte-ovfyp5.svelte-ovfyp5{position:absolute;left:4%;right:4%;bottom:4%;display:flex;justify-content:center}.subtitles-caption.mobile.svelte-ovfyp5.svelte-ovfyp5{bottom:8%}.subtitles-container.auto.svelte-ovfyp5 .subtitles-caption.svelte-ovfyp5{left:24%;right:24%}.caption.svelte-ovfyp5.svelte-ovfyp5{display:block;overflow-wrap:normal;padding:4px 8px;border-radius:4px;background:rgba(0, 0, 0, 0.4)}.subtitles-container.auto.svelte-ovfyp5 .caption.svelte-ovfyp5{width:100%}.caption-line.svelte-ovfyp5.svelte-ovfyp5{display:block;text-align:center}.subtitles-container.auto.svelte-ovfyp5 .caption-line.svelte-ovfyp5{text-align:left}.caption-segment.svelte-ovfyp5.svelte-ovfyp5{display:inline-block;line-height:1.2;font-size:13px;color:var(--white);white-space:pre-wrap}")}function K0(i,e,t){let n=i.slice();return n[16]=e[t].value,n}function j0(i,e,t){let n=i.slice();return n[16]=e[t].value,n[17]=e[t].timeAppeared,n}function W0(i){let e,t;function n(l,a){return l[7]&&l[8]?C5:l[5]?k5:w5}let o=n(i,-1),r=o(i);return{c(){e=P("div"),t=P("span"),r.c(),c(t,"class","caption svelte-ovfyp5"),c(e,"class","subtitles-caption svelte-ovfyp5"),z(e,"mobile",i[3])},m(l,a){C(l,e,a),p(e,t),r.m(t,null)},p(l,a){o===(o=n(l,a))&&r?r.p(l,a):(r.d(1),r=o(l),r&&(r.c(),r.m(t,null))),a&8&&z(e,"mobile",l[3])},d(l){l&&k(e),r.d()}}}function w5(i){let e,t=Vt(i[1]),n=[];for(let o=0;o<t.length;o+=1)n[o]=G0(K0(i,t,o));return{c(){for(let o=0;o<n.length;o+=1)n[o].c();e=st()},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=Vt(o[1]);let l;for(l=0;l<t.length;l+=1){let a=K0(o,t,l);n[l]?n[l].p(a,r):(n[l]=G0(a),n[l].c(),n[l].m(e.parentNode,e))}for(;l<n.length;l+=1)n[l].d(1);n.length=t.length}},d(o){o&&k(e),Qi(n,o)}}}function k5(i){let e,t,n=Vt(i[6]),o=[];for(let r=0;r<n.length;r+=1)o[r]=Y0(j0(i,n,r));return{c(){e=P("span"),t=P("span");for(let r=0;r<o.length;r+=1)o[r].c();c(t,"class","caption-segment svelte-ovfyp5"),gi(t,"font-size",i[4]+"px"),c(e,"class","caption-line svelte-ovfyp5")},m(r,l){C(r,e,l),p(e,t);for(let a=0;a<o.length;a+=1)o[a]&&o[a].m(t,null)},p(r,l){if(l&68){n=Vt(r[6]);let a;for(a=0;a<n.length;a+=1){let s=j0(r,n,a);o[a]?o[a].p(s,l):(o[a]=Y0(s),o[a].c(),o[a].m(t,null))}for(;a<o.length;a+=1)o[a].d(1);o.length=n.length}l&16&&gi(t,"font-size",r[4]+"px")},d(r){r&&k(e),Qi(o,r)}}}function C5(i){let e,t,n=Q("subtitles_auto_caption")+"",o;return{c(){e=P("span"),t=P("span"),o=Be(n),c(t,"class","caption-segment svelte-ovfyp5"),gi(t,"font-size",i[4]+"px"),c(e,"class","caption-line svelte-ovfyp5")},m(r,l){C(r,e,l),p(e,t),p(t,o)},p(r,l){l&16&&gi(t,"font-size",r[4]+"px")},d(r){r&&k(e)}}}function G0(i){let e,t,n=i[16]+"",o,r;return{c(){e=P("span"),t=P("span"),o=Be(n),r=O(),c(t,"class","caption-segment svelte-ovfyp5"),gi(t,"font-size",i[4]+"px"),c(e,"class","caption-line svelte-ovfyp5")},m(l,a){C(l,e,a),p(e,t),p(t,o),p(e,r)},p(l,a){a&2&&n!==(n=l[16]+"")&&Ze(o,n),a&16&&gi(t,"font-size",l[4]+"px")},d(l){l&&k(e)}}}function Q0(i){let e=i[16]+"",t;return{c(){t=Be(e)},m(n,o){C(n,t,o)},p(n,o){o&64&&e!==(e=n[16]+"")&&Ze(t,e)},d(n){n&&k(t)}}}function Y0(i){let e,t=(!i[17]||i[17]<=i[2])&&Q0(i);return{c(){t&&t.c(),e=st()},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=Q0(n),t.c(),t.m(e.parentNode,e)):t&&(t.d(1),t=null)},d(n){n&&k(e),t&&t.d(n)}}}function S5(i){let e,t=i[1].length>0&&W0(i);return{c(){e=P("div"),t&&t.c(),c(e,"class","subtitles-container svelte-ovfyp5"),z(e,"shifted",i[0]),z(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=W0(n),t.c(),t.m(e,null)):t&&(t.d(1),t=null),o&1&&z(e,"shifted",n[0]),o&288&&z(e,"auto",n[5]&&!n[8])},i:pe,o:pe,d(n){n&&k(e),t&&t.d()}}}function T5(i,e,t){let n,o,{shifted:r}=e,{captions:l}=e,{position:a}=e,{playerSize:s}=e,{isMobile:u=!1}=e,f=nt(),m=Wt(),h=f.state.currentSubtitle$;F(i,h,g=>t(12,n=g));let y=f.state.isAutoSubtitleCaptionVisible$;F(i,y,g=>t(8,o=g));let b,S,w,T,v;return Ft(()=>{v=window.setTimeout(()=>{y.set(!1)},m.autoSubtitlesTimeout)}),Wn(()=>{window.clearTimeout(v)}),i.$$set=g=>{"shifted"in g&&t(0,r=g.shifted),"captions"in g&&t(1,l=g.captions),"position"in g&&t(2,a=g.position),"playerSize"in g&&t(11,s=g.playerSize),"isMobile"in g&&t(3,u=g.isMobile)},i.$$.update=()=>{if(i.$$.dirty&2048)e:{let g=s.width*.02;t(4,b=g<=m.minSubtitlesFontSize?m.minSubtitlesFontSize:g)}if(i.$$.dirty&2)e:t(5,S=l.some(g=>g.type==="timestamp"));if(i.$$.dirty&2)e:t(6,w=l.reduce((g,{type:I,value:A})=>(I==="timestamp"?g.push({timeAppeared:Number(A),value:""}):g.length===0?g.push({value:String(A)}):g[g.length-1].value=String(A),g),[]));if(i.$$.dirty&4096)e:t(7,T=!!n.isAuto)},[r,l,a,u,b,S,w,T,o,h,y,s,n]}var sc=class extends j{constructor(e){super(),W(this,e,T5,S5,U,{shifted:0,captions:1,position:2,playerSize:11,isMobile:3},y5)}},as=sc;function P5(i){Te(i,"svelte-1o62kpz",".wrapper.svelte-1o62kpz{height:100%;background-position:center;background-size:cover;display:flex;align-items:center;justify-content:center;font-size:16px;flex-direction:column}.icon_wrapper.svelte-1o62kpz{display:flex;flex-direction:column;align-items:center;width:400px}.icon.svelte-1o62kpz{width:50px;height:50px}.text.svelte-1o62kpz{margin-top:20px}")}function Z0(i){let e,t,n;return{c(){e=P("div"),t=Be("\u0412\u0438\u0434\u0435\u043E \u0432\u043E\u0441\u043F\u0440\u043E\u0438\u0437\u0432\u043E\u0434\u0438\u0442\u0441\u044F \u043D\u0430 "),n=Be(i[1]),c(e,"class","text svelte-1o62kpz")},m(o,r){C(o,e,r),p(e,t),p(e,n)},p(o,r){r&2&&Ze(n,o[1])},d(o){o&&k(e)}}}function I5(i){let e,t,n,o,r,l,a=i[1]&&Z0(i);return{c(){e=P("div"),t=P("div"),t.innerHTML='<svg class="icon svelte-1o62kpz" width="22" height="22" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><g fill="none" fill-rule="evenodd"><path d="M1 18v3h3c0-1.66-1.34-3-3-3zm0-4v2c2.76 0 5 2.24 5 5h2c0-3.87-3.13-7-7-7zm0-4v2a9 9 0 0 1 9 9h2c0-6.08-4.93-11-11-11zm20-7H3c-1.1 0-2 .9-2 2v3h2V5h18v14h-7v2h7c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2z" fill="#fff"></path><path d="M0 0h24v24H0z"></path></g></svg>',n=O(),a&&a.c(),c(t,"class","icon_wrapper svelte-1o62kpz"),c(e,"class","wrapper svelte-1o62kpz"),c(e,"style",o=`background-image: linear-gradient(0deg, rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)), url('${i[0]||""}')`)},m(s,u){C(s,e,u),p(e,t),p(e,n),a&&a.m(e,null),r||(l=de(e,"click",i[2]),r=!0)},p(s,[u]){s[1]?a?a.p(s,u):(a=Z0(s),a.c(),a.m(e,null)):a&&(a.d(1),a=null),u&1&&o!==(o=`background-image: linear-gradient(0deg, rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)), url('${s[0]||""}')`)&&c(e,"style",o)},i:pe,o:pe,d(s){s&&k(e),a&&a.d(),r=!1,l()}}}function E5(i,e,t){let{thumbUrl:n}=e,{chromecastDeviceName:o}=e;function r(l){An.call(this,i,l)}return i.$$set=l=>{"thumbUrl"in l&&t(0,n=l.thumbUrl),"chromecastDeviceName"in l&&t(1,o=l.chromecastDeviceName)},[n,o,r]}var ac=class extends j{constructor(e){super(),W(this,e,E5,I5,U,{thumbUrl:0,chromecastDeviceName:1},P5)}},us=ac;function M5(i){let e,t,n,o=i[2].default,r=Ee(o,i,i[1],null),l=[{xmlns:"http://www.w3.org/2000/svg"},{width:"200"},{height:"200"},{"aria-hidden":"true"},{"data-testid":"error-icon"},{viewBox:"460 190 130 90"},{role:"img"},i[0]],a={};for(let s=0;s<l.length;s+=1)a=oe(a,l[s]);return{c(){e=N("svg"),r&&r.c(),t=N("path"),c(t,"fill","#fff"),c(t,"fill-rule","evenodd"),c(t,"d","M460 193.998a3.997 3.997 0 0 1 3.997-3.998h122.006a4.003 4.003 0 0 1 3.997 3.998v82.004a3.997 3.997 0 0 1-3.997 3.998H463.997a4.003 4.003 0 0 1-3.997-3.998zm6 2.993c0-.546.45-.99.99-.99h4.02c.546 0 .99.45.99.99v4.02c0 .546-.45.99-.99.99h-4.02a.995.995 0 0 1-.99-.99zm0 12c0-.546.45-.99.99-.99h4.02c.546 0 .99.45.99.99v4.02c0 .546-.45.99-.99.99h-4.02a.995.995 0 0 1-.99-.99zm0 12c0-.546.45-.99.99-.99h4.02c.546 0 .99.45.99.99v4.02c0 .546-.45.99-.99.99h-4.02a.995.995 0 0 1-.99-.99zm0 12c0-.546.45-.99.99-.99h4.02c.546 0 .99.45.99.99v4.02c0 .546-.45.99-.99.99h-4.02a.995.995 0 0 1-.99-.99zm0 12c0-.546.45-.99.99-.99h4.02c.546 0 .99.45.99.99v4.02c0 .546-.45.99-.99.99h-4.02a.995.995 0 0 1-.99-.99zm0 12c0-.546.45-.99.99-.99h4.02c.546 0 .99.45.99.99v4.02c0 .546-.45.99-.99.99h-4.02a.995.995 0 0 1-.99-.99zm0 12c0-.546.45-.99.99-.99h4.02c.546 0 .99.45.99.99v4.02c0 .546-.45.99-.99.99h-4.02a.995.995 0 0 1-.99-.99zm112-72c0-.546.45-.99.99-.99h4.02c.546 0 .99.45.99.99v4.02c0 .546-.45.99-.99.99h-4.02a.995.995 0 0 1-.99-.99zm0 12c0-.546.45-.99.99-.99h4.02c.546 0 .99.45.99.99v4.02c0 .546-.45.99-.99.99h-4.02a.995.995 0 0 1-.99-.99zm0 12c0-.546.45-.99.99-.99h4.02c.546 0 .99.45.99.99v4.02c0 .546-.45.99-.99.99h-4.02a.995.995 0 0 1-.99-.99zm0 12c0-.546.45-.99.99-.99h4.02c.546 0 .99.45.99.99v4.02c0 .546-.45.99-.99.99h-4.02a.995.995 0 0 1-.99-.99zm0 12c0-.546.45-.99.99-.99h4.02c.546 0 .99.45.99.99v4.02c0 .546-.45.99-.99.99h-4.02a.995.995 0 0 1-.99-.99zm0 12c0-.546.45-.99.99-.99h4.02c.546 0 .99.45.99.99v4.02c0 .546-.45.99-.99.99h-4.02a.995.995 0 0 1-.99-.99zm0 12c0-.546.45-.99.99-.99h4.02c.546 0 .99.45.99.99v4.02c0 .546-.45.99-.99.99h-4.02a.995.995 0 0 1-.99-.99zM507 232a6 6 0 1 0 0-12 6 6 0 0 0 0 12m36 0a6 6 0 1 0 0-12 6 6 0 0 0 0 12m-18.05 15c6.05 0 11.624 4.446 11.944 4.65 2.106 1.35 3.252.772 3.957.156s1.15-2.806-1.044-4.657c-1.735-1.48-5.806-5.16-14.856-5.15s-12.95 3.5-14.792 5.185c-1.84 1.685-2.288 3.498-.973 4.657s2.315 1.158 4.357-.327c-.007.007 5.357-4.515 11.408-4.515z"),ge(e,a)},m(s,u){C(s,e,u),r&&r.m(e,null),p(e,t),n=!0},p(s,[u]){r&&r.p&&(!n||u&2)&&Ve(r,o,s,s[1],n?Me(o,s[1],u,null):Ae(s[1]),null),ge(e,a=Le(l,[{xmlns:"http://www.w3.org/2000/svg"},{width:"200"},{height:"200"},{"aria-hidden":"true"},{"data-testid":"error-icon"},{viewBox:"460 190 130 90"},{role:"img"},u&1&&s[0]]))},i(s){n||(d(r,s),n=!0)},o(s){_(r,s),n=!1},d(s){s&&k(e),r&&r.d(s)}}}function V5(i,e,t){let{$$slots:n={},$$scope:o}=e;return i.$$set=r=>{t(0,e=oe(oe({},e),he(r))),"$$scope"in r&&t(1,o=r.$$scope)},e=he(e),[e,o,n]}var uc=class extends j{constructor(e){super(),W(this,e,V5,M5,U,{})}},X0=uc;function A5(i){Te(i,"svelte-13zpvm8",".container.svelte-13zpvm8{position:absolute;top:0;bottom:0;left:0;right:0;background:#000;display:flex;align-items:center;justify-content:center}")}function L5(i){let e,t,n;return t=new X0({}),{c(){e=P("div"),D(t.$$.fragment),c(e,"class","container svelte-13zpvm8")},m(o,r){C(o,e,r),R(t,e,null),n=!0},p:pe,i(o){n||(d(t.$$.fragment,o),n=!0)},o(o){_(t.$$.fragment,o),n=!1},d(o){o&&k(e),B(t)}}}var cc=class extends j{constructor(e){super(),W(this,e,null,L5,U,{},A5)}},cs=cc;function R5(i){Te(i,"svelte-17wno3",".container.svelte-17wno3.svelte-17wno3{position:absolute;top:0;bottom:0;left:0;right:0;background-position:center;background-size:cover;cursor:pointer;transition:opacity 0.2s, visibility 0.2s;will-change:opacity}.container.hidden.svelte-17wno3.svelte-17wno3{opacity:0;visibility:hidden}.playButton.svelte-17wno3.svelte-17wno3{position:absolute;top:0;bottom:0;left:0;right:0;margin:auto;width:var(--big-play-size);height:var(--big-play-size);display:flex;align-items:center;justify-content:center}.playButtonBackground.svelte-17wno3.svelte-17wno3{position:absolute;top:0;bottom:0;left:0;right:0;border-radius:var(--big-play-radius);background-color:var(--big-play-bg-color);transition:background 0.2s, transform 0.2s;transition-timing-function:ease-out;will-change:background, transform}.container.svelte-17wno3:hover .playButtonBackground.svelte-17wno3{background-color:var(--big-play-hover-bg-color);transform:scale(1.15)}.playButton.svelte-17wno3 svg{transform:scale(2)}")}function B5(i){let e,t,n,o,r,l,a,s,u,f;return r=new ml({}),{c(){e=P("div"),t=P("div"),n=P("div"),o=O(),D(r.$$.fragment),c(n,"class","playButtonBackground svelte-17wno3"),c(t,"class","playButton svelte-17wno3"),c(t,"tabindex","0"),c(t,"role","button"),c(t,"aria-label",l=Q("tooltip_play")),c(e,"class","container svelte-17wno3"),c(e,"style",a=`background-color: #222; background-image: url('${i[0]||""}')`),z(e,"hidden",i[1])},m(m,h){C(m,e,h),p(e,t),p(t,n),p(t,o),R(r,t,null),s=!0,u||(f=[de(t,"keydown",i[3]),de(e,"click",ct(function(){Vi(i[2])&&i[2].apply(this,arguments)}))],u=!0)},p(m,[h]){i=m,(!s||h&1&&a!==(a=`background-color: #222; background-image: url('${i[0]||""}')`))&&c(e,"style",a),(!s||h&2)&&z(e,"hidden",i[1])},i(m){s||(d(r.$$.fragment,m),s=!0)},o(m){_(r.$$.fragment,m),s=!1},d(m){m&&k(e),B(r),u=!1,lt(f)}}}function D5(i,e,t){let{thumbUrl:n}=e,{hidden:o}=e,{startVideo:r}=e,a=nt().ui.startedByKeyboard$,s=u=>{let f=u.code;["Enter","Space"].includes(f)&&(u.stopPropagation(),u.preventDefault(),a.set(!0),r())};return i.$$set=u=>{"thumbUrl"in u&&t(0,n=u.thumbUrl),"hidden"in u&&t(1,o=u.hidden),"startVideo"in u&&t(2,r=u.startVideo)},[n,o,r,s]}var fc=class extends j{constructor(e){super(),W(this,e,D5,B5,U,{thumbUrl:0,hidden:1,startVideo:2,handlePressKey:3},R5)}get handlePressKey(){return this.$$.ctx[3]}},fs=fc;function N5(i){Te(i,"svelte-1bcvcf2",`.title.svelte-1bcvcf2{position:absolute;pointer-events:none;left:0;top:0;width:100%;height:var(--controls-gradient-height);font-size:15px;color:var(--white);box-sizing:border-box;padding:18px 20px 10px;overflow:hidden;white-space:nowrap;text-overflow:ellipsis;transition-property:visibility, transform, opacity;transition-duration:var(--controls-transition-duration);transition-timing-function:var(--controls-transition-fn);will-change:transform, opacity;background:linear-gradient(
26
26
  0deg,
27
27
  rgba(0, 0, 0, 0) 0%,
28
28
  rgba(0, 0, 0, 0.02) 19%,
29
29
  rgba(0, 0, 0, 0.10) 34%,
30
30
  rgba(0, 0, 0, 0.40) 60%,
31
31
  rgba(0, 0, 0, 0.60) 100%
32
- )}.hidden.svelte-1bcvcf2{visibility:hidden;transform:translateY(calc(var(--controls-gradient-height) * -1));opacity:0}`)}function N5(i){let e,t;return{c(){e=T("div"),t=De(i[0]),f(e,"class","title svelte-1bcvcf2"),z(e,"hidden",i[1])},m(n,o){C(n,e,o),p(e,t)},p(n,[o]){o&1&&Ye(t,n[0]),o&2&&z(e,"hidden",n[1])},i:pe,o:pe,d(n){n&&k(e)}}}function O5(i,e,t){let{title:n=""}=e,{isHidden:o=!1}=e;return i.$$set=r=>{"title"in r&&t(0,n=r.title),"isHidden"in r&&t(1,o=r.isHidden)},[n,o]}var cf=class extends j{constructor(e){super(),W(this,e,O5,N5,U,{title:0,isHidden:1},D5)}},X0=cf;function F5(i){Se(i,"svelte-1qpxtfg",".timer__container.svelte-1qpxtfg{display:flex;align-items:flex-start;justify-content:center}.cell.svelte-1qpxtfg{display:flex;flex-direction:column;align-items:center;width:62px}.cell__value.svelte-1qpxtfg{font-size:48px;line-height:1.2;font-weight:700}.cell__unit.svelte-1qpxtfg{font-size:14px;line-height:1.2;font-weight:400}.timer__points.svelte-1qpxtfg{display:inline-block;margin:0 8px;font-size:42px;line-height:1.2;font-weight:600}")}function J0(i){let e,t,n,o,r,l,a;return{c(){e=T("div"),t=T("span"),n=De(i[0]),o=O(),r=T("span"),r.textContent=`${Y("waiting_live_day_value")}`,l=O(),a=T("span"),a.textContent=`${Y("waiting_live_colon")}`,f(t,"class","cell__value svelte-1qpxtfg"),f(r,"class","cell__unit svelte-1qpxtfg"),f(e,"class","timer__cell cell svelte-1qpxtfg"),f(a,"class","timer__points svelte-1qpxtfg")},m(s,u){C(s,e,u),p(e,t),p(t,n),p(e,o),p(e,r),C(s,l,u),C(s,a,u)},p(s,u){u&1&&Ye(n,s[0])},d(s){s&&(k(e),k(l),k(a))}}}function x0(i){let e,t,n,o,r,l,a;return{c(){e=T("div"),t=T("span"),n=De(i[1]),o=O(),r=T("span"),r.textContent=`${Y("waiting_live_hour_value")}`,l=O(),a=T("span"),a.textContent=`${Y("waiting_live_colon")}`,f(t,"class","cell__value svelte-1qpxtfg"),f(r,"class","cell__unit svelte-1qpxtfg"),f(e,"class","timer__cell cell svelte-1qpxtfg"),f(a,"class","timer__points svelte-1qpxtfg")},m(s,u){C(s,e,u),p(e,t),p(t,n),p(e,o),p(e,r),C(s,l,u),C(s,a,u)},p(s,u){u&2&&Ye(n,s[1])},d(s){s&&(k(e),k(l),k(a))}}}function $0(i){let e,t,n,o,r,l,a;return{c(){e=T("div"),t=T("span"),n=De(i[2]),o=O(),r=T("span"),r.textContent=`${Y("waiting_live_minute_value")}`,l=O(),a=T("span"),a.textContent=`${Y("waiting_live_colon")}`,f(t,"class","cell__value svelte-1qpxtfg"),f(r,"class","cell__unit svelte-1qpxtfg"),f(e,"class","timer__cell cell svelte-1qpxtfg"),f(a,"class","timer__points svelte-1qpxtfg")},m(s,u){C(s,e,u),p(e,t),p(t,n),p(e,o),p(e,r),C(s,l,u),C(s,a,u)},p(s,u){u&4&&Ye(n,s[2])},d(s){s&&(k(e),k(l),k(a))}}}function ep(i){let e,t,n,o,r;return{c(){e=T("div"),t=T("span"),n=De(i[3]),o=O(),r=T("span"),r.textContent=`${Y("waiting_live_second_value")}`,f(t,"class","cell__value svelte-1qpxtfg"),f(r,"class","cell__unit svelte-1qpxtfg"),f(e,"class","timer__cell cell svelte-1qpxtfg")},m(l,a){C(l,e,a),p(e,t),p(t,n),p(e,o),p(e,r)},p(l,a){a&8&&Ye(n,l[3])},d(l){l&&k(e)}}}function H5(i){let e,t,n,o,r=i[0]&&J0(i),l=i[1]&&x0(i),a=i[2]&&$0(i),s=i[3]&&ep(i);return{c(){e=T("div"),r&&r.c(),t=O(),l&&l.c(),n=O(),a&&a.c(),o=O(),s&&s.c(),f(e,"class","timer__container svelte-1qpxtfg")},m(u,c){C(u,e,c),r&&r.m(e,null),p(e,t),l&&l.m(e,null),p(e,n),a&&a.m(e,null),p(e,o),s&&s.m(e,null)},p(u,[c]){u[0]?r?r.p(u,c):(r=J0(u),r.c(),r.m(e,t)):r&&(r.d(1),r=null),u[1]?l?l.p(u,c):(l=x0(u),l.c(),l.m(e,n)):l&&(l.d(1),l=null),u[2]?a?a.p(u,c):(a=$0(u),a.c(),a.m(e,o)):a&&(a.d(1),a=null),u[3]?s?s.p(u,c):(s=ep(u),s.c(),s.m(e,null)):s&&(s.d(1),s=null)},i:pe,o:pe,d(u){u&&k(e),r&&r.d(),l&&l.d(),a&&a.d(),s&&s.d()}}}function z5(i,e,t){let{startTime:n}=e,{onTimerOver:o}=e,r,l,a,s,u,c=y=>String(y).padStart(2,"0"),m=y=>{let b=Math.floor(y/86400);b&&(y-=b*86400,t(0,r=c(b)));let S=Math.floor(y/3600);t(1,l=c(S));let w=Math.floor(y/60)%60;t(2,a=c(w));let P=y%60;t(3,s=c(P))},h=()=>{let y=Math.floor(Date.now()/1e3),b=n-y;m(b),b>=1?u=requestAnimationFrame(h):o()};return Nt(()=>{u=requestAnimationFrame(h)}),Wn(()=>{cancelAnimationFrame(u)}),i.$$set=y=>{"startTime"in y&&t(4,n=y.startTime),"onTimerOver"in y&&t(5,o=y.onTimerOver)},[r,l,a,s,n,o]}var df=class extends j{constructor(e){super(),W(this,e,z5,H5,U,{startTime:4,onTimerOver:5},F5)}},tp=df;function q5(i){let e,t,n,o,r,l,a=i[2].default,s=Ee(a,i,i[1],null),u=[{xmlns:"http://www.w3.org/2000/svg"},{"aria-hidden":"true"},{"data-testid":"podcast-icon"},{style:"shape-rendering:geometricPrecision;text-rendering:geometricPrecision;image-rendering:optimizeQuality;fill-rule:evenodd;clip-rule:evenodd;width:100%;height:100%"},{viewBox:"0 0 400 400"},{role:"img"},i[0]],c={};for(let m=0;m<u.length;m+=1)c=oe(c,u[m]);return{c(){e=N("svg"),s&&s.c(),t=N("path"),n=N("path"),o=N("path"),r=N("path"),f(t,"fill","#fefffe"),f(t,"d","M179.5-.5h40q127.56 18.67 171.5 140 5.724 19.896 8.5 40v40q-5.549 51.6-35.5 94-9.626-12.614-24.5-18.5-1.526-1.574-.5-3.5 39.742-61.7 23-133Q329.24 50.25 217.5 33 112.126 26.56 55 114.5q-40.395 74.102-9 152a152.3 152.3 0 0 0 14 25q1.026 1.926-.5 3.5-14.874 5.886-24.5 18.5-29.95-42.4-35.5-94v-40Q18.17 51.94 139.5 8q19.896-5.724 40-8.5"),vi(t,"opacity",".965"),f(n,"fill","#fefffe"),f(n,"d","M183.5 63.5q86.294-5.475 133.5 66 32.442 60.138 8 124a186.7 186.7 0 0 1-17.5 29.5 633 633 0 0 1-38-7q54.668-57.264 19.5-128.5Q252.733 91.244 185.5 97q-74.25 14.25-88.5 88.5-5.916 53.38 32.5 90.5a1150 1150 0 0 0-36 7.5q-2.294-.044-3.5-2-43.947-63.646-16-136 32.799-70.278 109.5-82"),vi(n,"opacity",".965"),f(o,"fill","#fefffe"),f(o,"d","M187.5 127.5q66.786-4.422 83.5 60 5.146 66.825-59.5 83.5-66.825 5.146-83.5-59.5-4.844-66.856 59.5-84"),vi(o,"opacity",".985"),f(r,"fill","#fefffe"),f(r,"d","M219.5 399.5h-40q-67.453-7.982-117-54a31.7 31.7 0 0 1 3.5-10q8.539-9.646 20.5-14.5 54.786-19.435 113-17.5 58.214-1.935 113 17.5 11.962 4.854 20.5 14.5a31.7 31.7 0 0 1 3.5 10q-49.547 46.018-117 54"),vi(r,"opacity",".986"),ge(e,c)},m(m,h){C(m,e,h),s&&s.m(e,null),p(e,t),p(e,n),p(e,o),p(e,r),l=!0},p(m,[h]){s&&s.p&&(!l||h&2)&&Ve(s,a,m,m[1],l?Me(a,m[1],h,null):Ae(m[1]),null),ge(e,c=Le(u,[{xmlns:"http://www.w3.org/2000/svg"},{"aria-hidden":"true"},{"data-testid":"podcast-icon"},{style:"shape-rendering:geometricPrecision;text-rendering:geometricPrecision;image-rendering:optimizeQuality;fill-rule:evenodd;clip-rule:evenodd;width:100%;height:100%"},{viewBox:"0 0 400 400"},{role:"img"},h&1&&m[0]]))},i(m){l||(d(s,m),l=!0)},o(m){_(s,m),l=!1},d(m){m&&k(e),s&&s.d(m)}}}function U5(i,e,t){let{$$slots:n={},$$scope:o}=e;return i.$$set=r=>{t(0,e=oe(oe({},e),he(r))),"$$scope"in r&&t(1,o=r.$$scope)},e=he(e),[e,o,n]}var mf=class extends j{constructor(e){super(),W(this,e,U5,q5,U,{})}},ip=mf;function K5(i){Se(i,"svelte-15pewff",".waiting-container.svelte-15pewff{position:absolute;top:0;left:0;width:100%;height:100%;background-color:var(--black);background-position:center;background-size:cover;background-repeat:no-repeat}.waiting-container.svelte-15pewff::before{content:'';position:absolute;top:0;left:0;width:100%;height:100%;background-color:rgba(0, 0, 0, 0.56);z-index:1}.upcoming.svelte-15pewff{position:absolute;top:50%;left:0;width:100%;transform:translateY(-50%);display:flex;flex-direction:column;align-items:center;justify-content:center;z-index:0}.upcoming-icon.svelte-15pewff{width:20%;max-width:200px;margin-bottom:20px}.upcoming__title.svelte-15pewff{font-size:14px;line-height:1.2;font-weight:400}.waiting-timer.svelte-15pewff{position:absolute;top:50%;left:50%;transform:translate(-50%, -50%);z-index:2}.timer.svelte-15pewff{display:flex;flex-direction:column;align-items:center;justify-content:center}.timer__title.svelte-15pewff{display:inline-block;vertical-align:middle;margin-bottom:12px;font-size:14px;line-height:1.2;font-weight:400}")}function j5(i){let e,t,n,o,r;return o=new tp({props:{startTime:i[1]||0,onTimerOver:i[3]}}),{c(){e=T("div"),t=T("span"),t.textContent=`${Y("waiting_live_timer_title")}`,n=O(),D(o.$$.fragment),f(t,"class","timer__title svelte-15pewff"),f(e,"class","waiting-timer timer svelte-15pewff")},m(l,a){C(l,e,a),p(e,t),p(e,n),B(o,e,null),r=!0},p(l,a){let s={};a&2&&(s.startTime=l[1]||0),a&4&&(s.onTimerOver=l[3]),o.$set(s)},i(l){r||(d(o.$$.fragment,l),r=!0)},o(l){_(o.$$.fragment,l),r=!1},d(l){l&&k(e),R(o)}}}function W5(i){let e,t,n,o,r,l;return n=new ip({}),{c(){e=T("div"),t=T("div"),D(n.$$.fragment),o=O(),r=T("span"),r.textContent=`${Y("waiting_live_upcoming_title")}`,f(t,"class","upcoming-icon svelte-15pewff"),f(r,"class","upcoming__title svelte-15pewff"),f(e,"class","upcoming svelte-15pewff")},m(a,s){C(a,e,s),p(e,t),B(n,t,null),p(e,o),p(e,r),l=!0},p:pe,i(a){l||(d(n.$$.fragment,a),l=!0)},o(a){_(n.$$.fragment,a),l=!1},d(a){a&&k(e),R(n)}}}function G5(i){let e,t,n,o,r,l=[W5,j5],a=[];function s(u,c){return u[2]?0:1}return t=s(i,-1),n=a[t]=l[t](i),{c(){e=T("div"),n.c(),f(e,"class","waiting-container svelte-15pewff"),f(e,"style",o=`background-image: url(${i[2]?"":i[0]})`)},m(u,c){C(u,e,c),a[t].m(e,null),r=!0},p(u,[c]){let m=t;t=s(u,c),t===m?a[t].p(u,c):(fe(),_(a[m],1,1,()=>{a[m]=null}),ce(),n=a[t],n?n.p(u,c):(n=a[t]=l[t](u),n.c()),d(n,1),n.m(e,null)),(!r||c&5&&o!==(o=`background-image: url(${u[2]?"":u[0]})`))&&f(e,"style",o)},i(u){r||(d(n),r=!0)},o(u){_(n),r=!1},d(u){u&&k(e),a[t].d()}}}function Q5(i,e,t){let n,{thumbUrl:o}=e,{startTime:r}=e,l=()=>t(2,n=!0);return i.$$set=a=>{"thumbUrl"in a&&t(0,o=a.thumbUrl),"startTime"in a&&t(1,r=a.startTime)},i.$$.update=()=>{if(i.$$.dirty&2)e:t(2,n=r===void 0||r<Math.floor(Date.now()/1e3))},[o,r,n,l]}var pf=class extends j{constructor(e){super(),W(this,e,Q5,G5,U,{thumbUrl:0,startTime:1},K5)}},cs=pf;function Y5(i){Se(i,"svelte-1bcnzdw",".waiting-container.svelte-1bcnzdw{position:absolute;top:0;left:0;width:100%;height:100%;display:flex;align-items:center;justify-content:center;background-color:var(--black)}.waiting-title.svelte-1bcnzdw{padding:20px;text-align:center;font-size:20px;line-height:1.2;font-weight:400}")}function Z5(i){let e,t;return{c(){e=T("div"),t=T("p"),t.textContent=`${Y("waiting_record_title")}`,f(t,"class","waiting-title svelte-1bcnzdw"),f(e,"class","waiting-container svelte-1bcnzdw")},m(n,o){C(n,e,o),p(e,t)},p:pe,i:pe,o:pe,d(n){n&&k(e)}}}var _f=class extends j{constructor(e){super(),W(this,e,null,Z5,U,{},Y5)}},ds=_f;var{window:X5}=Eo;function J5(i){Se(i,"svelte-1o4wf3x",".player-wrapper.svelte-1o4wf3x{position:absolute;width:100%;height:100%}.player-wrapper.svelte-1o4wf3x .player-media{position:absolute;left:0;top:0;width:100%;height:100%;background:var(--black);transition:transform 0.2s ease-in-out}.spherical-video-icon.svelte-1o4wf3x{display:inline-block;position:absolute;top:calc(50% - 23px);left:calc(50% - 38px)}.video-wrapper.svelte-1o4wf3x,.video-container.svelte-1o4wf3x,.ads-container.svelte-1o4wf3x{position:absolute;width:100%;height:100%;left:0;top:0}.video-wrapper.svelte-1o4wf3x{z-index:var(--video-container-z-index);background:var(--black)}.video-container.svelte-1o4wf3x{z-index:var(--video-container-z-index);transition:var(--rotate-transition-duration) ease all}.video-container.fast-rotate.svelte-1o4wf3x{transition:none}.nocursor.svelte-1o4wf3x{cursor:none}.ads-container.svelte-1o4wf3x{background:var(--black)}")}function op(i){var n;let e,t;return e=new cs({props:{thumbUrl:i[3],startTime:(n=i[4])==null?void 0:n.startTime}}),{c(){D(e.$$.fragment)},m(o,r){B(e,o,r),t=!0},p(o,r){var a;let l={};r[0]&8&&(l.thumbUrl=o[3]),r[0]&16&&(l.startTime=(a=o[4])==null?void 0:a.startTime),e.$set(l)},i(o){t||(d(e.$$.fragment,o),t=!0)},o(o){_(e.$$.fragment,o),t=!1},d(o){R(e,o)}}}function lp(i){let e,t;return e=new ds({}),{c(){D(e.$$.fragment)},m(n,o){B(e,n,o),t=!0},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){_(e.$$.fragment,n),t=!1},d(n){R(e,n)}}}function rp(i){let e,t,n;return t=new _r({props:{adsSlotId:i[8],adsParams:i[9],adsPreviewParam:i[10],duration:i[11]}}),{c(){e=T("div"),D(t.$$.fragment),f(e,"class","ads-container svelte-1o4wf3x"),z(e,"hidden",i[38]!=="ads")},m(o,r){C(o,e,r),B(t,e,null),n=!0},p(o,r){let l={};r[0]&256&&(l.adsSlotId=o[8]),r[0]&512&&(l.adsParams=o[9]),r[0]&1024&&(l.adsPreviewParam=o[10]),r[0]&2048&&(l.duration=o[11]),t.$set(l),(!n||r[1]&128)&&z(e,"hidden",o[38]!=="ads")},i(o){n||(d(t.$$.fragment,o),n=!0)},o(o){_(t.$$.fragment,o),n=!1},d(o){o&&k(e),R(t)}}}function sp(i){let e,t;return e=new T1({props:{title:i[18],thumb:i[19],playNextVideo:i[23]}}),{c(){D(e.$$.fragment)},m(n,o){B(e,n,o),t=!0},p(n,o){let r={};o[0]&262144&&(r.title=n[18]),o[0]&524288&&(r.thumb=n[19]),o[0]&8388608&&(r.playNextVideo=n[23]),e.$set(r)},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){_(e.$$.fragment,n),t=!1},d(n){R(e,n)}}}function ap(i){let e,t;return e=new X0({props:{title:i[2],isHidden:!i[36]}}),{c(){D(e.$$.fragment)},m(n,o){B(e,n,o),t=!0},p(n,o){let r={};o[0]&4&&(r.title=n[2]),o[1]&32&&(r.isHidden=!n[36]),e.$set(r)},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){_(e.$$.fragment,n),t=!1},d(n){R(e,n)}}}function up(i){let e,t;return e=new rs({props:{isShifted:i[38]==="video"&&i[36]}}),{c(){D(e.$$.fragment)},m(n,o){B(e,n,o),t=!0},p(n,o){let r={};o[1]&160&&(r.isShifted=n[38]==="video"&&n[36]),e.$set(r)},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){_(e.$$.fragment,n),t=!1},d(n){R(e,n)}}}function fp(i){let e,t,n;return t=new rr({props:{"aria-label":Y("video360")}}),{c(){e=T("div"),D(t.$$.fragment),f(e,"class","spherical-video-icon svelte-1o4wf3x")},m(o,r){C(o,e,r),B(t,e,null),n=!0},p:pe,i(o){n||(d(t.$$.fragment,o),n=!0)},o(o){_(t.$$.fragment,o),n=!1},d(o){o&&k(e),R(t)}}}function cp(i){let e,t;return e=new as({props:{thumbUrl:i[3],chromecastDeviceName:i[53]}}),{c(){D(e.$$.fragment)},m(n,o){B(e,n,o),t=!0},p(n,o){let r={};o[0]&8&&(r.thumbUrl=n[3]),o[1]&4194304&&(r.chromecastDeviceName=n[53]),e.$set(r)},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){_(e.$$.fragment,n),t=!1},d(n){R(e,n)}}}function dp(i){let e,t;return e=new ss({props:{shifted:i[36],captions:i[55],position:i[56],playerSize:i[34]}}),{c(){D(e.$$.fragment)},m(n,o){B(e,n,o),t=!0},p(n,o){let r={};o[1]&32&&(r.shifted=n[36]),o[1]&16777216&&(r.captions=n[55]),o[1]&33554432&&(r.position=n[56]),o[1]&8&&(r.playerSize=n[34]),e.$set(r)},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){_(e.$$.fragment,n),t=!1},d(n){R(e,n)}}}function mp(i){let e,t,n,o,r;return t=new us({}),{c(){e=T("div"),D(t.$$.fragment)},m(l,a){C(l,e,a),B(t,e,null),n=!0,o||(r=[de(e,"contextmenu",Dt(i[108])),de(e,"click",at(i[119]))],o=!0)},p:pe,i(l){n||(d(t.$$.fragment,l),n=!0)},o(l){_(t.$$.fragment,l),n=!1},d(l){l&&k(e),R(t),o=!1,ot(r)}}}function pp(i){let e,t,n;function o(l){i[156](l)}let r={bottomHidden:i[38]==="thumb"||i[38]==="waitingLive"||i[38]==="waitingRecord",bottomNoSmooth:i[50],showControls:i[36],isAds:i[38]==="ads",canRewindLive:i[6]&&i[57]!==0,logoClickable:i[12],logoHidden:i[13],logoTargetUrl:i[14],showNextPrevButtons:i[15],nextButtonActive:i[16],prevButtonActive:i[17],isOneVideoPlaylist:i[20],supportLink:i[21],customFullscreenSupported:yp,playNextVideo:i[23],playPrevVideo:i[24],repeatPlaylist:i[25],toggleFullscreen:i[106],returnFocus:i[155],seekToInteractive:i[26],toggleGraph:i[27],playPrevChapter:i[28]};return i[41]!==void 0&&(r.controlsElementRef=i[41]),e=new ls({props:r}),_e.push(()=>He(e,"controlsElementRef",o)),{c(){D(e.$$.fragment)},m(l,a){B(e,l,a),n=!0},p(l,a){let s={};a[1]&128&&(s.bottomHidden=l[38]==="thumb"||l[38]==="waitingLive"||l[38]==="waitingRecord"),a[1]&524288&&(s.bottomNoSmooth=l[50]),a[1]&32&&(s.showControls=l[36]),a[1]&128&&(s.isAds=l[38]==="ads"),a[0]&64|a[1]&67108864&&(s.canRewindLive=l[6]&&l[57]!==0),a[0]&4096&&(s.logoClickable=l[12]),a[0]&8192&&(s.logoHidden=l[13]),a[0]&16384&&(s.logoTargetUrl=l[14]),a[0]&32768&&(s.showNextPrevButtons=l[15]),a[0]&65536&&(s.nextButtonActive=l[16]),a[0]&131072&&(s.prevButtonActive=l[17]),a[0]&1048576&&(s.isOneVideoPlaylist=l[20]),a[0]&2097152&&(s.supportLink=l[21]),a[0]&8388608&&(s.playNextVideo=l[23]),a[0]&16777216&&(s.playPrevVideo=l[24]),a[0]&33554432&&(s.repeatPlaylist=l[25]),a[1]&131072&&(s.returnFocus=l[155]),a[0]&67108864&&(s.seekToInteractive=l[26]),a[0]&134217728&&(s.toggleGraph=l[27]),a[0]&268435456&&(s.playPrevChapter=l[28]),!t&&a[1]&1024&&(t=!0,s.controlsElementRef=l[41],Fe(()=>t=!1)),e.$set(s)},i(l){n||(d(e.$$.fragment,l),n=!0)},o(l){_(e.$$.fragment,l),n=!1},d(l){R(e,l)}}}function _p(i){let e,t;return e=new Sr({}),{c(){D(e.$$.fragment)},m(n,o){B(e,n,o),t=!0},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){_(e.$$.fragment,n),t=!1},d(n){R(e,n)}}}function hp(i){let e,t;return e=new O1({}),{c(){D(e.$$.fragment)},m(n,o){B(e,n,o),t=!0},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){_(e.$$.fragment,n),t=!1},d(n){R(e,n)}}}function gp(i){let e,t;return e=new wr({}),{c(){D(e.$$.fragment)},m(n,o){B(e,n,o),t=!0},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){_(e.$$.fragment,n),t=!1},d(n){R(e,n)}}}function bp(i){let e,t,n,o,r,l,a,s,u,c,m,h,y,b,S,w,P,v,g,I,A,q,K,re;e=new fs({props:{hidden:i[38]!=="thumb"||i[37]||i[92]&&i[5],thumbUrl:i[3],startVideo:i[29]}});let ae=i[38]==="waitingLive"&&op(i),H=i[38]==="waitingRecord"&&lp(i),L=i[7]&&i[22]&&rp(i),x=i[31]&&i[18]&&i[19]&&sp(i),Q=i[44]&&ap(i),J=i[49]&&up(i),E=i[52]&&fp(i),te=i[39]&&cp(i),M=i[54].value!=="off"&&dp(i),ee=i[37]&&mp(i),ke=i[22]&&pp(i);b=new gr({props:{isLive:i[58],isHidden:!i[43],isPlaying:i[59],position:i[56],duration:i[60]}}),w=new q0({props:{data:i[103]}});function Qe(X){i[158](X)}let je={supportLink:i[21],returnFocus:i[157],visible:i[33],playerContainerRef:i[40],controlsContainerRef:i[41],position:i[61]};i[32]!==void 0&&(je.menuElementRef=i[32]),v=new a1({props:je}),_e.push(()=>He(v,"menuElementRef",Qe));let $e=i[42]&&_p(i),We=i[62]&&hp(i),ve=i[63]&&gp(i);return{c(){D(e.$$.fragment),t=O(),ae&&ae.c(),n=O(),H&&H.c(),o=O(),L&&L.c(),r=O(),x&&x.c(),l=O(),Q&&Q.c(),a=O(),J&&J.c(),s=O(),E&&E.c(),u=O(),te&&te.c(),c=O(),M&&M.c(),m=O(),ee&&ee.c(),h=O(),ke&&ke.c(),y=O(),D(b.$$.fragment),S=O(),D(w.$$.fragment),P=O(),D(v.$$.fragment),I=O(),$e&&$e.c(),A=O(),We&&We.c(),q=O(),ve&&ve.c(),K=rt()},m(X,be){B(e,X,be),C(X,t,be),ae&&ae.m(X,be),C(X,n,be),H&&H.m(X,be),C(X,o,be),L&&L.m(X,be),C(X,r,be),x&&x.m(X,be),C(X,l,be),Q&&Q.m(X,be),C(X,a,be),J&&J.m(X,be),C(X,s,be),E&&E.m(X,be),C(X,u,be),te&&te.m(X,be),C(X,c,be),M&&M.m(X,be),C(X,m,be),ee&&ee.m(X,be),C(X,h,be),ke&&ke.m(X,be),C(X,y,be),B(b,X,be),C(X,S,be),B(w,X,be),C(X,P,be),B(v,X,be),C(X,I,be),$e&&$e.m(X,be),C(X,A,be),We&&We.m(X,be),C(X,q,be),ve&&ve.m(X,be),C(X,K,be),re=!0},p(X,be){let Oe={};be[0]&32|be[1]&192&&(Oe.hidden=X[38]!=="thumb"||X[37]||X[92]&&X[5]),be[0]&8&&(Oe.thumbUrl=X[3]),be[0]&536870912&&(Oe.startVideo=X[29]),e.$set(Oe),X[38]==="waitingLive"?ae?(ae.p(X,be),be[1]&128&&d(ae,1)):(ae=op(X),ae.c(),d(ae,1),ae.m(n.parentNode,n)):ae&&(fe(),_(ae,1,1,()=>{ae=null}),ce()),X[38]==="waitingRecord"?H?be[1]&128&&d(H,1):(H=lp(X),H.c(),d(H,1),H.m(o.parentNode,o)):H&&(fe(),_(H,1,1,()=>{H=null}),ce()),X[7]&&X[22]?L?(L.p(X,be),be[0]&4194432&&d(L,1)):(L=rp(X),L.c(),d(L,1),L.m(r.parentNode,r)):L&&(fe(),_(L,1,1,()=>{L=null}),ce()),X[31]&&X[18]&&X[19]?x?(x.p(X,be),be[0]&786432|be[1]&1&&d(x,1)):(x=sp(X),x.c(),d(x,1),x.m(l.parentNode,l)):x&&(fe(),_(x,1,1,()=>{x=null}),ce()),X[44]?Q?(Q.p(X,be),be[1]&8192&&d(Q,1)):(Q=ap(X),Q.c(),d(Q,1),Q.m(a.parentNode,a)):Q&&(fe(),_(Q,1,1,()=>{Q=null}),ce()),X[49]?J?(J.p(X,be),be[1]&262144&&d(J,1)):(J=up(X),J.c(),d(J,1),J.m(s.parentNode,s)):J&&(fe(),_(J,1,1,()=>{J=null}),ce()),X[52]?E?(E.p(X,be),be[1]&2097152&&d(E,1)):(E=fp(X),E.c(),d(E,1),E.m(u.parentNode,u)):E&&(fe(),_(E,1,1,()=>{E=null}),ce()),X[39]?te?(te.p(X,be),be[1]&256&&d(te,1)):(te=cp(X),te.c(),d(te,1),te.m(c.parentNode,c)):te&&(fe(),_(te,1,1,()=>{te=null}),ce()),X[54].value!=="off"?M?(M.p(X,be),be[1]&8388608&&d(M,1)):(M=dp(X),M.c(),d(M,1),M.m(m.parentNode,m)):M&&(fe(),_(M,1,1,()=>{M=null}),ce()),X[37]?ee?(ee.p(X,be),be[1]&64&&d(ee,1)):(ee=mp(X),ee.c(),d(ee,1),ee.m(h.parentNode,h)):ee&&(fe(),_(ee,1,1,()=>{ee=null}),ce()),X[22]?ke?(ke.p(X,be),be[0]&4194304&&d(ke,1)):(ke=pp(X),ke.c(),d(ke,1),ke.m(y.parentNode,y)):ke&&(fe(),_(ke,1,1,()=>{ke=null}),ce());let xe={};be[1]&134217728&&(xe.isLive=X[58]),be[1]&4096&&(xe.isHidden=!X[43]),be[1]&268435456&&(xe.isPlaying=X[59]),be[1]&33554432&&(xe.position=X[56]),be[1]&536870912&&(xe.duration=X[60]),b.$set(xe);let et={};be[0]&2097152&&(et.supportLink=X[21]),be[1]&131072&&(et.returnFocus=X[157]),be[1]&4&&(et.visible=X[33]),be[1]&512&&(et.playerContainerRef=X[40]),be[1]&1024&&(et.controlsContainerRef=X[41]),be[1]&1073741824&&(et.position=X[61]),!g&&be[1]&2&&(g=!0,et.menuElementRef=X[32],Fe(()=>g=!1)),v.$set(et),X[42]?$e?be[1]&2048&&d($e,1):($e=_p(X),$e.c(),d($e,1),$e.m(A.parentNode,A)):$e&&(fe(),_($e,1,1,()=>{$e=null}),ce()),X[62]?We?be[2]&1&&d(We,1):(We=hp(X),We.c(),d(We,1),We.m(q.parentNode,q)):We&&(fe(),_(We,1,1,()=>{We=null}),ce()),X[63]?ve?be[2]&2&&d(ve,1):(ve=gp(X),ve.c(),d(ve,1),ve.m(K.parentNode,K)):ve&&(fe(),_(ve,1,1,()=>{ve=null}),ce())},i(X){re||(d(e.$$.fragment,X),d(ae),d(H),d(L),d(x),d(Q),d(J),d(E),d(te),d(M),d(ee),d(ke),d(b.$$.fragment,X),d(w.$$.fragment,X),d(v.$$.fragment,X),d($e),d(We),d(ve),re=!0)},o(X){_(e.$$.fragment,X),_(ae),_(H),_(L),_(x),_(Q),_(J),_(E),_(te),_(M),_(ee),_(ke),_(b.$$.fragment,X),_(w.$$.fragment,X),_(v.$$.fragment,X),_($e),_(We),_(ve),re=!1},d(X){X&&(k(t),k(n),k(o),k(r),k(l),k(a),k(s),k(u),k(c),k(m),k(h),k(y),k(S),k(P),k(I),k(A),k(q),k(K)),R(e,X),ae&&ae.d(X),H&&H.d(X),L&&L.d(X),x&&x.d(X),Q&&Q.d(X),J&&J.d(X),E&&E.d(X),te&&te.d(X),M&&M.d(X),ee&&ee.d(X),ke&&ke.d(X),R(b,X),R(w,X),R(v,X),$e&&$e.d(X),We&&We.d(X),ve&&ve.d(X)}}}function x5(i){let e,t,n,o,r=i[51],l,a,s,u,c=bp(i);return{c(){e=T("div"),t=T("div"),o=O(),c.c(),l=rt(),f(t,"class","video-container svelte-1o4wf3x"),f(t,"style",n=`transform: rotate(${i[35]}deg) scale(${i[46]})`),z(t,"fast-rotate",!i[1].isSmoothVideoRotate),f(e,"class","video-wrapper svelte-1o4wf3x"),z(e,"hidden",i[38]!=="video"),z(e,"nocursor",i[45])},m(m,h){C(m,e,h),p(e,t),i[154](t),C(m,o,h),c.m(m,h),C(m,l,h),a=!0,s||(u=[de(e,"contextmenu",Dt(i[108])),de(e,"mousedown",Dt(i[113])),de(e,"mouseup",Dt(i[114])),de(e,"click",Dt(i[116])),de(e,"dblclick",Dt(i[115]))],s=!0)},p(m,h){(!a||h[1]&32784&&n!==(n=`transform: rotate(${m[35]}deg) scale(${m[46]})`))&&f(t,"style",n),(!a||h[0]&2)&&z(t,"fast-rotate",!m[1].isSmoothVideoRotate),(!a||h[1]&128)&&z(e,"hidden",m[38]!=="video"),(!a||h[1]&16384)&&z(e,"nocursor",m[45]),h[1]&1048576&&U(r,r=m[51])?(fe(),_(c,1,1,pe),ce(),c=bp(m),c.c(),d(c,1),c.m(l.parentNode,l)):c.p(m,h)},i(m){a||(d(c),a=!0)},o(m){_(c),a=!1},d(m){m&&(k(e),k(o),k(l)),i[154](null),c.d(m),s=!1,ot(u)}}}function $5(i){let e,t,n,o,r,l,a,s={toggleFullscreen:i[106],hideContextMenu:i[107],showHotKeyHelpers:i[117],showKeyMap:i[118],isAds:i[38]==="ads",fakePlayButtonHandler:i[47]?i[105]:void 0,$$slots:{default:[x5]},$$scope:{ctx:i}};return t=new E1({props:s}),i[159](t),{c(){e=T("div"),D(t.$$.fragment),n=O(),o=T("div"),f(o,"class","overlay-container"),f(e,"class","player-wrapper svelte-1o4wf3x")},m(u,c){C(u,e,c),B(t,e,null),p(e,n),p(e,o),i[160](o),i[161](e),r=!0,l||(a=[de(X5,"blur",i[107]),de(e,"mouseenter",i[109]),de(e,"mouseleave",i[111]),de(e,"mousemove",i[112]),de(e,"click",i[120],!0),de(e,"focusin",i[110],!0)],l=!0)},p(u,c){let m={};c[1]&128&&(m.isAds=u[38]==="ads"),c[1]&65536&&(m.fakePlayButtonHandler=u[47]?u[105]:void 0),c[0]&1073741823|c[1]&2147418111|c[2]&3|c[6]&1&&(m.$$scope={dirty:c,ctx:u}),t.$set(m)},i(u){r||(d(t.$$.fragment,u),r=!0)},o(u){_(t.$$.fragment,u),r=!1},d(u){u&&k(e),i[159](null),R(t),i[160](null),i[161](null),l=!1,ot(a)}}}var yp=!0;function hf(i){return i?i.offsetTop+hf(i.offsetParent):0}function wp(i){return i?i.offsetLeft+wp(i.offsetParent):0}function e6(i,e,t){let n,o,r,l,a,s,u,c,m,h,y,b,S,w,P,v,g,I,A,q,K,re,ae,H,L,x,Q,J,E,te,M,ee,ke,Qe,je,$e,We,ve,X,be,Oe,xe,et,{store:ye}=e,{uiConfig:Be}=e,{title:Ue}=e,{thumbUrl:Xe}=e,{videoContainer:Te}=e,{interactiveContainer:Z}=e,{live:Ce}=e,{autoplay:ue}=e,{canRewindLive:Ie}=e,{showAds:Je}=e,{adsSlotId:ft=void 0}=e,{adsParams:ct=void 0}=e,{adsPreviewParam:dt=void 0}=e,{duration:bt=void 0}=e,{logoClickable:vt}=e,{logoHidden:we}=e,{logoTargetUrl:_t=""}=e,{showNextPrevButtons:Mt=!1}=e,{nextButtonActive:Vt=!1}=e,{prevButtonActive:ze=!1}=e,{endScreenVideoTitle:jt=void 0}=e,{endScreenVideoThumb:Ht=void 0}=e,{isOneVideoPlaylist:Wt=!1}=e,{supportLink:$t}=e,{outerContainerRef:me=void 0}=e,{playerStarted:ht=!1}=e,{fullScreenTarget:yt=void 0}=e,{showMiniTimer:Re=!1}=e,{playNextVideo:qe=ms.noop}=e,{playPrevVideo:kt=ms.noop}=e,{repeatPlaylist:zt=ms.noop}=e,{seekToInteractive:ei}=e,{toggleGraph:mn}=e,{playPrevChapter:yi}=e,{firstStart:wi}=e,Ni=ye.getLogger().createComponentLog("Root component"),oi=ye.interfaceLanguage$;F(i,oi,G=>t(51,M=G));let ki=ye.state.playbackState$;F(i,ki,G=>t(151,J=G));let pn=ye.ads.playbackState;F(i,pn,G=>t(152,E=G));let Ci=ye.state.positionWithScrubbing$;F(i,Ci,G=>t(56,$e=G));let Qi=ye.state.duration$;F(i,Qi,G=>t(60,be=G));let fi=ye.playerPhase;F(i,fi,G=>t(38,ae=G));let Oi=ye.ui.isFullscreen;F(i,Oi,G=>t(141,b=G));let Si=ye.ui.controlsVisible;F(i,Si,G=>t(36,I=G));let Yi=ye.ui.settingsMenuVisible;F(i,Yi,G=>t(139,s=G));let Pi=ye.ui.scrubbingInProgress;F(i,Pi,G=>t(143,v=G));let ci=ye.ui.contextMenu.visible$;F(i,ci,G=>t(33,n=G));let Bt=ye.ui.debugPanelVisible;F(i,Bt,G=>t(63,et=G));let Rt=ye.state.isLoaderVisible;F(i,Rt,G=>t(153,te=G));let Ti=ye.state.isEnded$;F(i,Ti,G=>t(140,c=G));let Ii=ye.state.chromecastConnected$;F(i,Ii,G=>t(39,x=G));let Zt=ye.state.chromecastDeviceName$;F(i,Zt,G=>t(53,ke=G));let di=ye.ads.postrollPassed;F(i,di,G=>t(146,K=G));let mi=ye.state.isLive$;F(i,mi,G=>t(58,ve=G));let wt=ye.state.isPlaying$;F(i,wt,G=>t(59,X=G));let qt=ye.state.crashed$;F(i,qt,G=>t(37,q=G));let St=ye.webApi.pictureInPictureApi,Fi=ye.state.currentSubtitle$;F(i,Fi,G=>t(54,Qe=G));let li=ye.state.currentSubtitleCaptions$;F(i,li,G=>t(55,je=G));let _n=ye.state.duration$;F(i,_n,G=>t(57,We=G));let hn=ye.state.graphIsOpened$;F(i,hn,G=>t(147,re=G));let ti=ye.ui.playerSize;F(i,ti,G=>t(34,h=G));let Ei=ye.ui.is3DVideo;F(i,Ei,G=>t(49,m=G));let Zi=ye.ui.icon3DVideoVisible;F(i,Zi,G=>t(52,ee=G));let Mi=ye.ui.rotateAlpha;F(i,Mi,G=>t(35,P=G));let pi=ye.state.isInteractive,Xt=ye.state.isInteractiveTime$;F(i,Xt,G=>t(144,g=G));let ii=ye.state.isInteractiveExpectation$;F(i,ii,G=>t(150,Q=G));let Vi=ye.state.hasInteractiveBranches,ri=ye.ui.touched;F(i,ri,G=>t(148,H=G));let on=ye.ui.modals.hotKeyMap.data;F(i,on,G=>t(168,u=G));let Ai=ye.ui.modals.hotKeyMap.show;F(i,Ai,G=>t(62,xe=G));let gn=ye.ui.overlayContainer$,bn=ye.ui.controls.interactiveTimeIndicator;F(i,bn,G=>t(169,y=G));let ln=ye.state.showInteractiveTimeIndicator,Xi=ye.ui.contextMenu.position$;F(i,Xi,G=>t(61,Oe=G));let Hi=ye.actions.internal.closeSettingsMenu,{fakeIsPlaying$:ni}=On();F(i,ni,G=>t(142,w=G));let _i,Li,zi,rn,Bi;on.set(Hc());let qi,Ui,Ze=Ne(!1);F(i,Ze,G=>t(50,S=G));let Ji,Jt=Ne(!1);F(i,Jt,G=>t(149,L=G));let Ke=Ne(),sn=Ne(!1);F(i,sn,G=>t(145,A=G));let Ki=!1,xi=!1,an,$i,Tn,si,ai,en,hi=!1,se,pt=!1,{toggle:gi}=ni,bi=!1,ui=null,xt;St==null||St.setContext(Tl());let Hn=()=>{ue&&!pi&&Gt(Be.controls.hideTimeout)};ye.setUiCallbacks({onStarted:Hn});let Bn=()=>{window.clearTimeout(zi),Jt.set(!1)},In=()=>{window.clearTimeout(rn),Ke.set(null)},Gt=G=>{Bn(),Jt.set(!0),zi=window.setTimeout(()=>Jt.set(!1),G);let Ct=G-100;Ji=window.setTimeout(()=>{S&&Ze.set(!1)},Ct>0?Ct:G)},Cn=(G,Ct)=>{In(),Ke.set(Ct),rn=window.setTimeout(()=>Ke.set(null),G)},Zn=Ei.subscribe(G=>{Zi.set(G),G&&(window.clearTimeout(Bi),Bi=window.setTimeout(()=>Zi.set(!1),Be.controls.hide360IconTimeout))}),zn=()=>ut(this,null,function*(){var Ct,fn,tn,Dn;let G=_o();if(G){Gt(Be.controls.hideTimeoutFullscreen);try{yield St==null?void 0:St.remove()}catch(V){Ni({message:String(V)})}}Oi.set(G),ye.getAdmanWrapper().setFullscreen(G),b?(fn=(Ct=ye.callbacks)==null?void 0:Ct.onFullscreenEnter)==null||fn.call(Ct):(Dn=(tn=ye.callbacks)==null?void 0:tn.onFullscreenExit)==null||Dn.call(tn)}),qn=G=>{let Ct=G;ti.set({width:Ct.target.width,height:Ct.target.height})};Nt(()=>{var Ct;return mr(zn),Oo(St)&&(St==null||St.assignPlayerContainer(_i),St==null||St.registryExternalEventHandlers({resize:qn})),Z&&((Ct=Te.parentElement)==null||Ct.insertBefore(Z,Te.nextSibling)),()=>{window.clearTimeout(zi),window.clearTimeout(Ji),window.clearTimeout(rn),window.clearTimeout(Bi),Zn(),St==null||St.dispose(),pr(zn)}});let Rn=()=>ut(this,null,function*(){if(_o())yield dr(document),Ni({message:"exit fullscreen"});else{Ni({message:"request fullscreen"});let G=me!=null?me:_i,Ct=G.getRootNode(),fn=Ct instanceof ShadowRoot?Ct.host:Ct,tn=yt instanceof HTMLElement&&yt.contains(fn),Dn=Be.allowChangingFullscreenTarget&&yt&&tn?yt:G;yield cr(Dn)}}),un=()=>{Hi(),ci.set(!1)},Un=G=>{ci.set(!0),Xi.set({left:G.clientX,top:G.clientY})};function Kn(){sn.set(!0),pi||Gt(Be.controls.hideTimeoutCursor)}function ne(){pi||(Ze.set(!0),Gt(Be.controls.hideTimeoutCursor))}function Pt(){sn.set(!1),t(131,xi=!1),t(130,Ki=!1),bi=!1,ye.actions.internal.releaseCamera()}function En(G){if(y&&ln){let Ct=G.currentTarget,fn=hf(Ct),tn=wp(Ct),Dn=G.pageX-tn,V=G.pageY-fn,{left:le,bottom:Pe,right:Ge}=y,st=Ge-le;return Dn>=le-st&&V<=Pe+st}}function vn(G){if(_i){let Ct=hf(G.currentTarget),fn=h.height,tn=G.pageY-Ct;if(En(G)){t(131,xi=!1);return}tn<40?t(131,xi=!0):tn>fn-40?t(130,Ki=!0):(t(131,xi=!1),s||t(130,Ki=!1))}}function Mn(G){vn(G),$i||Gt(Be.controls.hideTimeoutCursor),m&&bi&&ui&&ye.actions.internal.moveCameraFocusPX(ui.clientX-G.clientX,ui.clientY-G.clientY,G.timeStamp-ui.timeStamp),ui=G}let Sn=G=>{G.button===0&&(bi=!0,ye.actions.internal.holdCamera()),Gt(Be.controls.hideTimeoutCursor)},ao=G=>{G.button===0&&(ui=G,bi=!1,ye.actions.internal.releaseCamera()),Gt(Be.controls.hideTimeoutCursor)},uo=()=>{yp&&(Ni({message:"double click on video"}),Rn(),Gt(Be.controls.hideTimeoutCursor))},Co=()=>{if(n||s){un();return}if(!(c&&!Vi)){if(pt)return gi();if(xt==null||xt.focus(),!ht){wi(),Gt(Be.controls.hideTimeoutCursor);return}ye.actions.internal.togglePlay(),Gt(Be.controls.hideTimeoutCursor)}},fo=G=>{un(),ri.set(!0),Gt(Be.controls.hideTimeout),G&&Cn(Be.controls.hideHotKeyHelpers,G)},yn=()=>{var G,Ct;un(),(G=ye.callbacks)!=null&&G.onOpenHotKeyMap?(Ct=ye.callbacks)==null||Ct.onOpenHotKeyMap(u):Ai.update(fn=>!fn)},ie=()=>{if(n||s){un();return}},co=()=>{ri.set(!0)},to=ye.ui.contextMenu.openedByBtnKeyboard$;F(i,to,G=>t(138,a=G));let So=ye.ui.contextMenu.btnRef$;F(i,So,G=>t(137,l=G));let io,no=ye.ui.contextMenu.openedByHotKey$;F(i,no,G=>t(136,r=G));let jo=ye.ui.contextMenu.lastActiveElem$;F(i,jo,G=>t(135,o=G));function Wo(G){_e[G?"unshift":"push"](()=>{Te=G,t(0,Te)})}let kl=()=>xt==null?void 0:xt.focus();function Go(G){Li=G,t(41,Li)}let Xn=()=>xt==null?void 0:xt.focus();function Qo(G){io=G,t(32,io)}function Po(G){_e[G?"unshift":"push"](()=>{xt=G,t(48,xt)})}function To(G){_e[G?"unshift":"push"](()=>{Ui=G,t(30,Ui)})}function Yo(G){_e[G?"unshift":"push"](()=>{_i=G,t(40,_i)})}return i.$$set=G=>{"store"in G&&t(125,ye=G.store),"uiConfig"in G&&t(1,Be=G.uiConfig),"title"in G&&t(2,Ue=G.title),"thumbUrl"in G&&t(3,Xe=G.thumbUrl),"videoContainer"in G&&t(0,Te=G.videoContainer),"interactiveContainer"in G&&t(126,Z=G.interactiveContainer),"live"in G&&t(4,Ce=G.live),"autoplay"in G&&t(5,ue=G.autoplay),"canRewindLive"in G&&t(6,Ie=G.canRewindLive),"showAds"in G&&t(7,Je=G.showAds),"adsSlotId"in G&&t(8,ft=G.adsSlotId),"adsParams"in G&&t(9,ct=G.adsParams),"adsPreviewParam"in G&&t(10,dt=G.adsPreviewParam),"duration"in G&&t(11,bt=G.duration),"logoClickable"in G&&t(12,vt=G.logoClickable),"logoHidden"in G&&t(13,we=G.logoHidden),"logoTargetUrl"in G&&t(14,_t=G.logoTargetUrl),"showNextPrevButtons"in G&&t(15,Mt=G.showNextPrevButtons),"nextButtonActive"in G&&t(16,Vt=G.nextButtonActive),"prevButtonActive"in G&&t(17,ze=G.prevButtonActive),"endScreenVideoTitle"in G&&t(18,jt=G.endScreenVideoTitle),"endScreenVideoThumb"in G&&t(19,Ht=G.endScreenVideoThumb),"isOneVideoPlaylist"in G&&t(20,Wt=G.isOneVideoPlaylist),"supportLink"in G&&t(21,$t=G.supportLink),"outerContainerRef"in G&&t(127,me=G.outerContainerRef),"playerStarted"in G&&t(22,ht=G.playerStarted),"fullScreenTarget"in G&&t(128,yt=G.fullScreenTarget),"showMiniTimer"in G&&t(129,Re=G.showMiniTimer),"playNextVideo"in G&&t(23,qe=G.playNextVideo),"playPrevVideo"in G&&t(24,kt=G.playPrevVideo),"repeatPlaylist"in G&&t(25,zt=G.repeatPlaylist),"seekToInteractive"in G&&t(26,ei=G.seekToInteractive),"toggleGraph"in G&&t(27,mn=G.toggleGraph),"playPrevChapter"in G&&t(28,yi=G.playPrevChapter),"firstStart"in G&&t(29,wi=G.firstStart)},i.$$.update=()=>{if(i.$$.dirty[1]&192|i.$$.dirty[4]&805306368)e:t(42,qi=(ae==="video"&&te||ae==="ads"&&E==="inactive")&&!q);if(i.$$.dirty[0]&1073741824)e:gn.set(Ui);if(i.$$.dirty[4]&134217728)e:t(132,an=J!==vp.PlaybackState.PLAYING);if(i.$$.dirty[4]&68190656)e:t(133,$i=g&&!s&&!(Ki||xi)&&!(an&&!Q));if(i.$$.dirty[1]&448|i.$$.dirty[4]&34112256)e:Si.set((an||s||v||x||L)&&!$i&&(ae==="video"||ae==="ads")&&!q);if(i.$$.dirty[0]&2|i.$$.dirty[1]&224|i.$$.dirty[4]&16777248)e:t(43,Tn=Be.features.thumbTimer&&Re&&ae==="video"&&!I&&!q&&!pi&&(Be.hideThumbTimerAfterTouch&&!H||!Be.hideThumbTimerAfterTouch));if(i.$$.dirty[1]&128|i.$$.dirty[4]&8519680)e:t(44,si=ae==="video"&&!re&&b);if(i.$$.dirty[0]&128|i.$$.dirty[1]&64|i.$$.dirty[4]&4259840)e:t(31,ai=(Je&&K||!Je)&&c&&!q);if(i.$$.dirty[1]&33|i.$$.dirty[4]&3145728)e:t(45,en=A&&!(I||ai)&&!g);if(i.$$.dirty[0]&2|i.$$.dirty[4]&1573888)e:!v&&hi&&!g&&Gt(Be.controls.hideTimeoutCursor),t(134,hi=v);if(i.$$.dirty[0]&1|i.$$.dirty[1]&24)e:t(46,se=Te&&P%180?h.height/h.width:1);if(i.$$.dirty[4]&262144)e:t(47,pt=w!==null);if(i.$$.dirty[1]&6|i.$$.dirty[4]&16384)e:zo(io,n,a);if(i.$$.dirty[1]&4|i.$$.dirty[4]&8192)e:{let G=l;G&&sl(G,n,to)}if(i.$$.dirty[1]&6|i.$$.dirty[4]&4096)e:zo(io,n,r);if(i.$$.dirty[1]&4|i.$$.dirty[4]&2048)e:{let G=o;G&&t1(G,n,no)}},[Te,Be,Ue,Xe,Ce,ue,Ie,Je,ft,ct,dt,bt,vt,we,_t,Mt,Vt,ze,jt,Ht,Wt,$t,ht,qe,kt,zt,ei,mn,yi,wi,Ui,ai,io,n,h,P,I,q,ae,x,_i,Li,qi,Tn,si,en,se,pt,xt,m,S,M,ee,ke,Qe,je,$e,We,ve,X,be,Oe,xe,et,oi,ki,pn,Ci,Qi,fi,Oi,Si,Yi,Pi,ci,Bt,Rt,Ti,Ii,Zt,di,mi,wt,qt,Fi,li,_n,hn,ti,Ei,Zi,Mi,pi,Xt,ii,ri,on,Ai,bn,Xi,ni,Ze,Jt,Ke,sn,gi,Rn,un,Un,Kn,ne,Pt,Mn,Sn,ao,uo,Co,fo,yn,ie,co,to,So,no,jo,ye,Z,me,yt,Re,Ki,xi,an,$i,hi,o,r,l,a,s,c,b,w,v,g,A,K,re,H,L,Q,J,E,te,Wo,kl,Go,Xn,Qo,Po,To,Yo]}var gf=class extends j{constructor(e){super(),W(this,e,e6,$5,U,{store:125,uiConfig:1,title:2,thumbUrl:3,videoContainer:0,interactiveContainer:126,live:4,autoplay:5,canRewindLive:6,showAds:7,adsSlotId:8,adsParams:9,adsPreviewParam:10,duration:11,logoClickable:12,logoHidden:13,logoTargetUrl:14,showNextPrevButtons:15,nextButtonActive:16,prevButtonActive:17,endScreenVideoTitle:18,endScreenVideoThumb:19,isOneVideoPlaylist:20,supportLink:21,outerContainerRef:127,playerStarted:22,fullScreenTarget:128,showMiniTimer:129,playNextVideo:23,playPrevVideo:24,repeatPlaylist:25,seekToInteractive:26,toggleGraph:27,playPrevChapter:28,firstStart:29},J5,[-1,-1,-1,-1,-1,-1,-1])}},kp=gf;var qp=require("@vkontakte/videoplayer-core"),Ko=require("@vkontakte/videoplayer-shared");var hl=require("@vkontakte/videoplayer-shared"),Cp=i=>{if(!(0,hl.isIOS)(!0))return!1;let e=i.device===hl.CurrentClientDevice.iPad||(window==null?void 0:window.screen.width)>700,t=(0,hl.getIOSVersion)();return!e||e&&!!t&&t<16};function t6(i){Se(i,"svelte-nhq2ld",".double-click-area.svelte-nhq2ld{position:absolute;top:0;height:100%;width:25%;overflow:hidden}.double-click-area.left.svelte-nhq2ld{left:0}.double-click-area.right.svelte-nhq2ld{right:0}.semicircle.svelte-nhq2ld{position:absolute;top:0;width:100%;height:100%;background-color:rgba(0, 0, 0, 0.5)}.semicircle.left.svelte-nhq2ld{left:0;border-top-right-radius:50%;border-bottom-right-radius:50%}.semicircle.right.svelte-nhq2ld{right:0;border-top-left-radius:50%;border-bottom-left-radius:50%}.info.svelte-nhq2ld{position:absolute;top:50%;left:50%;transform:translate(-50%, -50%);display:flex;flex-direction:column;align-items:center;justify-content:center}.triangles-wrapper.svelte-nhq2ld{position:relative;display:flex;margin-bottom:10px;justify-content:center}.triangle.svelte-nhq2ld{width:0;height:0;border-top:6px solid transparent;border-bottom:6px solid transparent;animation:svelte-nhq2ld-blink 500ms infinite;opacity:0}.triangle.right.svelte-nhq2ld:nth-child(1),.triangle.left.svelte-nhq2ld:nth-child(3){animation-delay:0ms}.triangle.right.svelte-nhq2ld:nth-child(2),.triangle.left.svelte-nhq2ld:nth-child(2){animation-delay:100ms}.triangle.right.svelte-nhq2ld:nth-child(3),.triangle.left.svelte-nhq2ld:nth-child(1){animation-delay:200ms}@keyframes svelte-nhq2ld-blink{0%{opacity:0}50%{opacity:1}100%{opacity:0}}.triangle.left.svelte-nhq2ld{border-right:8px solid var(--white)}.triangle.right.svelte-nhq2ld{border-left:8px solid var(--white)}.triangle.svelte-nhq2ld:not(:last-child){margin-right:5px}.step-caption.svelte-nhq2ld{margin:0;text-align:center;font-size:12px;line-height:1;color:var(--white)}")}function Sp(i){let e,t,n,o,r,l,a,s,u,c,m,h,y,b,S,w=Y("doubletap_seek_step",{seconds:i[1].toFixed(0)})+"",P;return{c(){e=T("div"),n=O(),o=T("div"),r=T("div"),l=T("div"),s=O(),u=T("div"),m=O(),h=T("div"),b=O(),S=T("p"),P=De(w),f(e,"class",t="semicircle "+i[0]+" svelte-nhq2ld"),f(l,"class",a="triangle "+i[0]+" svelte-nhq2ld"),f(u,"class",c="triangle "+i[0]+" svelte-nhq2ld"),f(h,"class",y="triangle "+i[0]+" svelte-nhq2ld"),f(r,"class","triangles-wrapper svelte-nhq2ld"),f(S,"class","step-caption svelte-nhq2ld"),f(o,"class","info svelte-nhq2ld")},m(v,g){C(v,e,g),C(v,n,g),C(v,o,g),p(o,r),p(r,l),p(r,s),p(r,u),p(r,m),p(r,h),p(o,b),p(o,S),p(S,P)},p(v,g){g&1&&t!==(t="semicircle "+v[0]+" svelte-nhq2ld")&&f(e,"class",t),g&1&&a!==(a="triangle "+v[0]+" svelte-nhq2ld")&&f(l,"class",a),g&1&&c!==(c="triangle "+v[0]+" svelte-nhq2ld")&&f(u,"class",c),g&1&&y!==(y="triangle "+v[0]+" svelte-nhq2ld")&&f(h,"class",y),g&2&&w!==(w=Y("doubletap_seek_step",{seconds:v[1].toFixed(0)})+"")&&Ye(P,w)},d(v){v&&(k(e),k(n),k(o))}}}function i6(i){let e,t,n,o,r=i[2]&&Sp(i);return{c(){e=T("div"),r&&r.c(),f(e,"class",t="double-click-area "+i[0]+" svelte-nhq2ld")},m(l,a){C(l,e,a),r&&r.m(e,null),n||(o=de(e,"click",at(i[3]())),n=!0)},p(l,[a]){l[2]?r?r.p(l,a):(r=Sp(l),r.c(),r.m(e,null)):r&&(r.d(1),r=null),a&1&&t!==(t="double-click-area "+l[0]+" svelte-nhq2ld")&&f(e,"class",t)},i:pe,o:pe,d(l){l&&k(e),r&&r.d(),n=!1,o()}}}function n6(i,e,t){let{side:n}=e,{seekStep:o}=e,{handleSingleFirstClick:r}=e,{handleSecondClick:l}=e,a=!1,s=0,u=0,c=()=>{let h=0;return()=>{h+=1,h===1?s=window.setTimeout(()=>{r(),h=0},300):(window.clearTimeout(s),h=0,l(),t(2,a=!0),u=window.setTimeout(()=>{t(2,a=!1)},500))}};return Wn(()=>{window.clearTimeout(s),window.clearTimeout(u)}),i.$$set=m=>{"side"in m&&t(0,n=m.side),"seekStep"in m&&t(1,o=m.seekStep),"handleSingleFirstClick"in m&&t(4,r=m.handleSingleFirstClick),"handleSecondClick"in m&&t(5,l=m.handleSecondClick)},[n,o,a,c,r,l]}var bf=class extends j{constructor(e){super(),W(this,e,n6,i6,U,{side:0,seekStep:1,handleSingleFirstClick:4,handleSecondClick:5},t6)}},vf=bf;function o6(i,e,t){let{playNextVideo:n}=e;return Nt(()=>{n()}),i.$$set=o=>{"playNextVideo"in o&&t(0,n=o.playNextVideo)},[n]}var yf=class extends j{constructor(e){super(),W(this,e,o6,null,U,{playNextVideo:0})}},Pp=yf;var{window:l6}=Eo;function r6(i){Se(i,"svelte-1jy89ut",".player-wrapper.svelte-1jy89ut{position:absolute;width:100%;height:100%}.player-wrapper.svelte-1jy89ut .player-media{position:absolute;left:0;top:0;width:100%;height:100%;background:var(--black);transition:transform 0.2s ease-in-out}.spherical-video-icon.svelte-1jy89ut{display:inline-block;position:absolute;top:calc(50% - 23px);left:calc(50% - 38px)}.video-wrapper.svelte-1jy89ut,.video-container.svelte-1jy89ut,.ads-container.svelte-1jy89ut{position:absolute;width:100%;height:100%;left:0;top:0}.video-wrapper.svelte-1jy89ut{z-index:var(--video-container-z-index);background:var(--black)}.video-container.svelte-1jy89ut{z-index:var(--video-container-z-index);transition:var(--rotate-transition-duration) ease all}.video-container.fast-rotate.svelte-1jy89ut{transition:none}.ads-container.svelte-1jy89ut{background:var(--black)}")}function Tp(i){let e,t,n,o;e=new vf({props:{side:"left",seekStep:i[1].controls.seekStepMobile/1e3,handleSingleFirstClick:i[100],handleSecondClick:i[130]}});let r=!i[48]&&Ip(i);return{c(){D(e.$$.fragment),t=O(),r&&r.c(),n=rt()},m(l,a){B(e,l,a),C(l,t,a),r&&r.m(l,a),C(l,n,a),o=!0},p(l,a){let s={};a[0]&2&&(s.seekStep=l[1].controls.seekStepMobile/1e3),e.$set(s),l[48]?r&&(fe(),_(r,1,1,()=>{r=null}),ce()):r?(r.p(l,a),a[1]&131072&&d(r,1)):(r=Ip(l),r.c(),d(r,1),r.m(n.parentNode,n))},i(l){o||(d(e.$$.fragment,l),d(r),o=!0)},o(l){_(e.$$.fragment,l),_(r),o=!1},d(l){l&&(k(t),k(n)),R(e,l),r&&r.d(l)}}}function Ip(i){let e,t;return e=new vf({props:{side:"right",seekStep:i[1].controls.seekStepMobile/1e3,handleSingleFirstClick:i[100],handleSecondClick:i[131]}}),{c(){D(e.$$.fragment)},m(n,o){B(e,n,o),t=!0},p(n,o){let r={};o[0]&2&&(r.seekStep=n[1].controls.seekStepMobile/1e3),e.$set(r)},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){_(e.$$.fragment,n),t=!1},d(n){R(e,n)}}}function Ep(i){var n;let e,t;return e=new cs({props:{thumbUrl:i[2],startTime:(n=i[3])==null?void 0:n.startTime}}),{c(){D(e.$$.fragment)},m(o,r){B(e,o,r),t=!0},p(o,r){var a;let l={};r[0]&4&&(l.thumbUrl=o[2]),r[0]&8&&(l.startTime=(a=o[3])==null?void 0:a.startTime),e.$set(l)},i(o){t||(d(e.$$.fragment,o),t=!0)},o(o){_(e.$$.fragment,o),t=!1},d(o){R(e,o)}}}function Mp(i){let e,t;return e=new ds({}),{c(){D(e.$$.fragment)},m(n,o){B(e,n,o),t=!0},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){_(e.$$.fragment,n),t=!1},d(n){R(e,n)}}}function Vp(i){let e,t,n;return t=new _r({props:{adsSlotId:i[7],adsParams:i[8],adsPreviewParam:i[9],duration:i[10]}}),{c(){e=T("div"),D(t.$$.fragment),f(e,"class","ads-container svelte-1jy89ut"),z(e,"hidden",i[34]!=="ads")},m(o,r){C(o,e,r),B(t,e,null),n=!0},p(o,r){let l={};r[0]&128&&(l.adsSlotId=o[7]),r[0]&256&&(l.adsParams=o[8]),r[0]&512&&(l.adsPreviewParam=o[9]),r[0]&1024&&(l.duration=o[10]),t.$set(l),(!n||r[1]&8)&&z(e,"hidden",o[34]!=="ads")},i(o){n||(d(t.$$.fragment,o),n=!0)},o(o){_(t.$$.fragment,o),n=!1},d(o){o&&k(e),R(t)}}}function Ap(i){let e,t;return e=new Pp({props:{playNextVideo:i[22]}}),{c(){D(e.$$.fragment)},m(n,o){B(e,n,o),t=!0},p(n,o){let r={};o[0]&4194304&&(r.playNextVideo=n[22]),e.$set(r)},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){_(e.$$.fragment,n),t=!1},d(n){R(e,n)}}}function Lp(i){let e,t;return e=new rs({}),{c(){D(e.$$.fragment)},m(n,o){B(e,n,o),t=!0},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){_(e.$$.fragment,n),t=!1},d(n){R(e,n)}}}function Bp(i){let e,t,n;return t=new rr({props:{"aria-label":Y("video360")}}),{c(){e=T("div"),D(t.$$.fragment),f(e,"class","spherical-video-icon svelte-1jy89ut")},m(o,r){C(o,e,r),B(t,e,null),n=!0},p:pe,i(o){n||(d(t.$$.fragment,o),n=!0)},o(o){_(t.$$.fragment,o),n=!1},d(o){o&&k(e),R(t)}}}function Rp(i){let e,t;return e=new as({props:{thumbUrl:i[2],chromecastDeviceName:i[51]}}),{c(){D(e.$$.fragment)},m(n,o){B(e,n,o),t=!0},p(n,o){let r={};o[0]&4&&(r.thumbUrl=n[2]),o[1]&1048576&&(r.chromecastDeviceName=n[51]),e.$set(r)},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){_(e.$$.fragment,n),t=!1},d(n){R(e,n)}}}function Dp(i){let e,t;return e=new ss({props:{shifted:i[30],captions:i[53],position:i[44],playerSize:i[31],isMobile:!0}}),{c(){D(e.$$.fragment)},m(n,o){B(e,n,o),t=!0},p(n,o){let r={};o[0]&1073741824&&(r.shifted=n[30]),o[1]&4194304&&(r.captions=n[53]),o[1]&8192&&(r.position=n[44]),o[1]&1&&(r.playerSize=n[31]),e.$set(r)},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){_(e.$$.fragment,n),t=!1},d(n){R(e,n)}}}function Np(i){let e,t,n,o,r;return t=new us({}),{c(){e=T("div"),D(t.$$.fragment)},m(l,a){C(l,e,a),B(t,e,null),n=!0,o||(r=de(e,"click",at(i[101])),o=!0)},p:pe,i(l){n||(d(t.$$.fragment,l),n=!0)},o(l){_(t.$$.fragment,l),n=!1},d(l){l&&k(e),R(t),o=!1,r()}}}function Op(i){let e,t,n;function o(l){i[132](l)}let r={bottomHidden:i[34]==="thumb"||i[34]==="waitingLive"||i[34]==="waitingRecord"||i[34]==="ads",showControls:i[30],bottomNoSmooth:i[45],isAds:i[34]==="ads",canRewindLive:i[5]&&i[54]!==0,logoClickable:i[11],logoHidden:i[12],logoTargetUrl:i[13],showNextPrevButtons:i[14],nextButtonActive:i[15],prevButtonActive:i[16],isOneVideoPlaylist:i[19],supportLink:i[20],customFullscreenSupported:i[39],playNextVideo:i[22],playPrevVideo:i[23],repeatPlaylist:i[24],toggleFullscreen:i[98],seekToInteractive:i[25],toggleGraph:i[26],playPrevChapter:i[27],onDisabledPlayPrevChapterClick:i[104],onDisabledSeekToInteractiveClick:i[105]};return i[37]!==void 0&&(r.controlsElementRef=i[37]),e=new ls({props:r}),_e.push(()=>He(e,"controlsElementRef",o)),{c(){D(e.$$.fragment)},m(l,a){B(e,l,a),n=!0},p(l,a){let s={};a[1]&8&&(s.bottomHidden=l[34]==="thumb"||l[34]==="waitingLive"||l[34]==="waitingRecord"||l[34]==="ads"),a[0]&1073741824&&(s.showControls=l[30]),a[1]&16384&&(s.bottomNoSmooth=l[45]),a[1]&8&&(s.isAds=l[34]==="ads"),a[0]&32|a[1]&8388608&&(s.canRewindLive=l[5]&&l[54]!==0),a[0]&2048&&(s.logoClickable=l[11]),a[0]&4096&&(s.logoHidden=l[12]),a[0]&8192&&(s.logoTargetUrl=l[13]),a[0]&16384&&(s.showNextPrevButtons=l[14]),a[0]&32768&&(s.nextButtonActive=l[15]),a[0]&65536&&(s.prevButtonActive=l[16]),a[0]&524288&&(s.isOneVideoPlaylist=l[19]),a[0]&1048576&&(s.supportLink=l[20]),a[1]&256&&(s.customFullscreenSupported=l[39]),a[0]&4194304&&(s.playNextVideo=l[22]),a[0]&8388608&&(s.playPrevVideo=l[23]),a[0]&16777216&&(s.repeatPlaylist=l[24]),a[0]&33554432&&(s.seekToInteractive=l[25]),a[0]&67108864&&(s.toggleGraph=l[26]),a[0]&134217728&&(s.playPrevChapter=l[27]),!t&&a[1]&64&&(t=!0,s.controlsElementRef=l[37],Fe(()=>t=!1)),e.$set(s)},i(l){n||(d(e.$$.fragment,l),n=!0)},o(l){_(e.$$.fragment,l),n=!1},d(l){R(e,l)}}}function Fp(i){let e,t;return e=new Sr({}),{c(){D(e.$$.fragment)},m(n,o){B(e,n,o),t=!0},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){_(e.$$.fragment,n),t=!1},d(n){R(e,n)}}}function Hp(i){let e,t;return e=new wr({}),{c(){D(e.$$.fragment)},m(n,o){B(e,n,o),t=!0},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){_(e.$$.fragment,n),t=!1},d(n){R(e,n)}}}function zp(i){let e,t,n=i[5]&&i[78]&&!i[47].has("TIMELINE"),o,r,l,a,s,u,c,m,h,y,b,S,w,P,v,g;e=new fs({props:{hidden:i[34]!=="thumb"||i[33]||i[89]&&i[4],thumbUrl:i[2],startVideo:i[28]}});let I=n&&Tp(i),A=i[34]==="waitingLive"&&Ep(i),q=i[34]==="waitingRecord"&&Mp(i),K=i[6]&&i[21]&&Vp(i),re=i[41]&&i[17]&&i[18]&&Ap(i),ae=i[49]&&Lp(i),H=i[50]&&Bp(i),L=i[35]&&Rp(i),x=i[52].value!=="off"&&Dp(i),Q=i[33]&&Np(i),J=i[21]&&Op(i);S=new gr({props:{isLive:i[55],isHidden:!i[40],isPlaying:i[56],position:i[44],duration:i[43]}});let E=i[38]&&Fp(i),te=i[57]&&Hp(i);return{c(){D(e.$$.fragment),t=O(),I&&I.c(),o=O(),A&&A.c(),r=O(),q&&q.c(),l=O(),K&&K.c(),a=O(),re&&re.c(),s=O(),ae&&ae.c(),u=O(),H&&H.c(),c=O(),L&&L.c(),m=O(),x&&x.c(),h=O(),Q&&Q.c(),y=O(),J&&J.c(),b=O(),D(S.$$.fragment),w=O(),E&&E.c(),P=O(),te&&te.c(),v=rt()},m(M,ee){B(e,M,ee),C(M,t,ee),I&&I.m(M,ee),C(M,o,ee),A&&A.m(M,ee),C(M,r,ee),q&&q.m(M,ee),C(M,l,ee),K&&K.m(M,ee),C(M,a,ee),re&&re.m(M,ee),C(M,s,ee),ae&&ae.m(M,ee),C(M,u,ee),H&&H.m(M,ee),C(M,c,ee),L&&L.m(M,ee),C(M,m,ee),x&&x.m(M,ee),C(M,h,ee),Q&&Q.m(M,ee),C(M,y,ee),J&&J.m(M,ee),C(M,b,ee),B(S,M,ee),C(M,w,ee),E&&E.m(M,ee),C(M,P,ee),te&&te.m(M,ee),C(M,v,ee),g=!0},p(M,ee){let ke={};ee[0]&16|ee[1]&12&&(ke.hidden=M[34]!=="thumb"||M[33]||M[89]&&M[4]),ee[0]&4&&(ke.thumbUrl=M[2]),ee[0]&268435456&&(ke.startVideo=M[28]),e.$set(ke),ee[0]&32|ee[1]&65536&&(n=M[5]&&M[78]&&!M[47].has("TIMELINE")),n?I?(I.p(M,ee),ee[0]&32|ee[1]&65536&&d(I,1)):(I=Tp(M),I.c(),d(I,1),I.m(o.parentNode,o)):I&&(fe(),_(I,1,1,()=>{I=null}),ce()),M[34]==="waitingLive"?A?(A.p(M,ee),ee[1]&8&&d(A,1)):(A=Ep(M),A.c(),d(A,1),A.m(r.parentNode,r)):A&&(fe(),_(A,1,1,()=>{A=null}),ce()),M[34]==="waitingRecord"?q?ee[1]&8&&d(q,1):(q=Mp(M),q.c(),d(q,1),q.m(l.parentNode,l)):q&&(fe(),_(q,1,1,()=>{q=null}),ce()),M[6]&&M[21]?K?(K.p(M,ee),ee[0]&2097216&&d(K,1)):(K=Vp(M),K.c(),d(K,1),K.m(a.parentNode,a)):K&&(fe(),_(K,1,1,()=>{K=null}),ce()),M[41]&&M[17]&&M[18]?re?(re.p(M,ee),ee[0]&393216|ee[1]&1024&&d(re,1)):(re=Ap(M),re.c(),d(re,1),re.m(s.parentNode,s)):re&&(fe(),_(re,1,1,()=>{re=null}),ce()),M[49]?ae?ee[1]&262144&&d(ae,1):(ae=Lp(M),ae.c(),d(ae,1),ae.m(u.parentNode,u)):ae&&(fe(),_(ae,1,1,()=>{ae=null}),ce()),M[50]?H?(H.p(M,ee),ee[1]&524288&&d(H,1)):(H=Bp(M),H.c(),d(H,1),H.m(c.parentNode,c)):H&&(fe(),_(H,1,1,()=>{H=null}),ce()),M[35]?L?(L.p(M,ee),ee[1]&16&&d(L,1)):(L=Rp(M),L.c(),d(L,1),L.m(m.parentNode,m)):L&&(fe(),_(L,1,1,()=>{L=null}),ce()),M[52].value!=="off"?x?(x.p(M,ee),ee[1]&2097152&&d(x,1)):(x=Dp(M),x.c(),d(x,1),x.m(h.parentNode,h)):x&&(fe(),_(x,1,1,()=>{x=null}),ce()),M[33]?Q?(Q.p(M,ee),ee[1]&4&&d(Q,1)):(Q=Np(M),Q.c(),d(Q,1),Q.m(y.parentNode,y)):Q&&(fe(),_(Q,1,1,()=>{Q=null}),ce()),M[21]?J?(J.p(M,ee),ee[0]&2097152&&d(J,1)):(J=Op(M),J.c(),d(J,1),J.m(b.parentNode,b)):J&&(fe(),_(J,1,1,()=>{J=null}),ce());let Qe={};ee[1]&16777216&&(Qe.isLive=M[55]),ee[1]&512&&(Qe.isHidden=!M[40]),ee[1]&33554432&&(Qe.isPlaying=M[56]),ee[1]&8192&&(Qe.position=M[44]),ee[1]&4096&&(Qe.duration=M[43]),S.$set(Qe),M[38]?E?ee[1]&128&&d(E,1):(E=Fp(M),E.c(),d(E,1),E.m(P.parentNode,P)):E&&(fe(),_(E,1,1,()=>{E=null}),ce()),M[57]?te?ee[1]&67108864&&d(te,1):(te=Hp(M),te.c(),d(te,1),te.m(v.parentNode,v)):te&&(fe(),_(te,1,1,()=>{te=null}),ce())},i(M){g||(d(e.$$.fragment,M),d(I),d(A),d(q),d(K),d(re),d(ae),d(H),d(L),d(x),d(Q),d(J),d(S.$$.fragment,M),d(E),d(te),g=!0)},o(M){_(e.$$.fragment,M),_(I),_(A),_(q),_(K),_(re),_(ae),_(H),_(L),_(x),_(Q),_(J),_(S.$$.fragment,M),_(E),_(te),g=!1},d(M){M&&(k(t),k(o),k(r),k(l),k(a),k(s),k(u),k(c),k(m),k(h),k(y),k(b),k(w),k(P),k(v)),R(e,M),I&&I.d(M),A&&A.d(M),q&&q.d(M),K&&K.d(M),re&&re.d(M),ae&&ae.d(M),H&&H.d(M),L&&L.d(M),x&&x.d(M),Q&&Q.d(M),J&&J.d(M),R(S,M),E&&E.d(M),te&&te.d(M)}}}function s6(i){let e,t,n,o,r,l=i[46],a,s,u,c,m,h,y=zp(i);return{c(){e=T("div"),t=T("div"),n=T("div"),r=O(),y.c(),a=O(),s=T("div"),f(n,"class","video-container svelte-1jy89ut"),f(n,"style",o=`transform: rotate(${i[32]}deg) scale(${i[42]})`),z(n,"fast-rotate",!i[1].isSmoothVideoRotate),f(t,"class","video-wrapper svelte-1jy89ut"),z(t,"hidden",i[34]!=="video"),f(s,"class","overlay-container"),f(e,"class","player-wrapper svelte-1jy89ut"),f(e,"role","region"),f(e,"aria-label",u=Y("aria_label_video_player")),f(e,"tabindex","-1")},m(b,S){C(b,e,S),p(e,t),p(t,n),i[129](n),p(e,r),y.m(e,null),p(e,a),p(e,s),i[133](s),i[134](e),c=!0,m||(h=[de(l6,"blur",i[99]),de(t,"click",Dt(i[100])),de(e,"click",i[102],!0),de(e,"focusin",i[103],!0)],m=!0)},p(b,S){(!c||S[1]&2050&&o!==(o=`transform: rotate(${b[32]}deg) scale(${b[42]})`))&&f(n,"style",o),(!c||S[0]&2)&&z(n,"fast-rotate",!b[1].isSmoothVideoRotate),(!c||S[1]&8)&&z(t,"hidden",b[34]!=="video"),S[1]&32768&&U(l,l=b[46])?(fe(),_(y,1,1,pe),ce(),y=zp(b),y.c(),d(y,1),y.m(e,a)):y.p(b,S)},i(b){c||(d(y),c=!0)},o(b){_(y),c=!1},d(b){b&&k(e),i[129](null),y.d(b),i[133](null),i[134](null),m=!1,ot(h)}}}function a6(i,e,t){var Un,Kn;let n,o,r,l,a,s,u,c,m,h,y,b,S,w,P,v,g,I,A,q,K,re,ae,H,L,x,Q,J,E,te,M,ee,ke,Qe,je,$e,We,{store:ve}=e,{uiConfig:X}=e,{thumbUrl:be}=e,{videoContainer:Oe}=e,{interactiveContainer:xe}=e,{live:et}=e,{autoplay:ye}=e,{canRewindLive:Be}=e,{showAds:Ue}=e,{adsSlotId:Xe=void 0}=e,{adsParams:Te=void 0}=e,{adsPreviewParam:Z=void 0}=e,{duration:Ce=void 0}=e,{logoClickable:ue}=e,{logoHidden:Ie}=e,{logoTargetUrl:Je=""}=e,{showNextPrevButtons:ft=!1}=e,{nextButtonActive:ct=!1}=e,{prevButtonActive:dt=!1}=e,{endScreenVideoTitle:bt=void 0}=e,{endScreenVideoThumb:vt=void 0}=e,{isOneVideoPlaylist:we=!1}=e,{supportLink:_t}=e,{outerContainerRef:Mt=void 0}=e,{showMiniTimer:Vt=!1}=e,{fullScreenTarget:ze=void 0}=e,{playerStarted:jt=!1}=e,{playNextVideo:Ht=Ko.noop}=e,{playPrevVideo:Wt=Ko.noop}=e,{repeatPlaylist:$t=Ko.noop}=e,{seekToInteractive:me}=e,{toggleGraph:ht}=e,{playPrevChapter:yt}=e,{firstStart:Re}=e,{seekTime:qe}=e,kt=ve.getLogger().createComponentLog("Root component"),zt=ve.interfaceLanguage$;F(i,zt,ne=>t(46,x=ne));let ei=ve.state.playbackState$;F(i,ei,ne=>t(126,ae=ne));let mn=ve.ads.playbackState;F(i,mn,ne=>t(127,H=ne));let yi=ve.state.positionWithScrubbing$;F(i,yi,ne=>t(44,a=ne));let wi=ve.state.duration$;F(i,wi,ne=>t(43,l=ne));let Ni=ve.playerPhase;F(i,Ni,ne=>t(34,A=ne));let oi=ve.ui.isFullscreen;F(i,oi,ne=>t(141,u=ne));let ki=ve.ui.controlsVisible;F(i,ki,ne=>t(30,o=ne));let pn=ve.ui.interactiveHideMobileControls;F(i,pn,ne=>t(118,y=ne));let Ci=ve.ui.settingsMenuVisible;F(i,Ci,ne=>t(117,n=ne));let Qi=ve.ui.scrubbingInProgress;F(i,Qi,ne=>t(119,S=ne));let fi=ve.ui.debugPanelVisible;F(i,fi,ne=>t(57,We=ne));let Oi=ve.state.isLoaderVisible;F(i,Oi,ne=>t(128,L=ne));let Si=ve.state.isEnded$;F(i,Si,ne=>t(121,v=ne));let Yi=ve.state.chromecastConnected$;F(i,Yi,ne=>t(35,q=ne));let Pi=ve.state.chromecastDeviceName$;F(i,Pi,ne=>t(51,M=ne));let ci=ve.ads.postrollPassed;F(i,ci,ne=>t(122,g=ne));let Bt=ve.ui.mobileUnmuteButtonExpanded,Rt=ve.ui.mobileUnmuteButtonVisible,Ti=ve.state.isLive$;F(i,Ti,ne=>t(55,je=ne));let Ii=ve.state.isPlaying$;F(i,Ii,ne=>t(56,$e=ne));let Zt=ve.state.isActiveLive$;F(i,Zt,ne=>t(48,J=ne));let di=ve.state.isRewindableLive$,mi=ve.state.crashed$;F(i,mi,ne=>t(33,P=ne));let wt=ve.webApi.pictureInPictureApi,qt=ve.state.videoSize$;F(i,qt,ne=>t(142,m=ne));let St=ve.state.currentSubtitle$;F(i,St,ne=>t(52,ee=ne));let Fi=ve.state.currentSubtitleCaptions$;F(i,Fi,ne=>t(53,ke=ne));let li=ve.state.duration$;F(i,li,ne=>t(54,Qe=ne));let _n=ve.state.graphIsOpened$;F(i,_n,ne=>t(125,re=ne));let hn=ve.ui.playerSize;F(i,hn,ne=>t(31,c=ne));let ti=ve.ui.is3DVideo;F(i,ti,ne=>t(49,E=ne));let Ei=ve.ui.icon3DVideoVisible;F(i,Ei,ne=>t(50,te=ne));let Zi=ve.ui.rotateAlpha;F(i,Zi,ne=>t(32,b=ne));let Mi=ve.state.isInteractive,pi=ve.state.isInteractiveTime$;F(i,pi,ne=>t(120,w=ne));let Xt=ve.state.isInteractiveExpectation$;F(i,Xt,ne=>t(124,K=ne));let ii=ve.state.hasInteractiveBranches,Vi=ve.ui.controls.disabledControls$;F(i,Vi,ne=>t(47,Q=ne));let ri=ve.ui.touched;F(i,ri,ne=>t(123,I=ne));let on=ve.ui.clientInfo$;F(i,on,ne=>t(140,s=ne));let Ai=ve.ui.overlayContainer$,gn=ve.state.isFirstBytes$;F(i,gn,ne=>t(139,r=ne));let bn=ve.actions.internal.closeSettingsMenu,ln=(Un=ve.callbacks)==null?void 0:Un.onDisabledPlayPrevChapterClick,Xi=(Kn=ve.callbacks)==null?void 0:Kn.onDisabledSeekToInteractiveClick,Hi,ni,_i,Li,zi,rn,Bi,qi=Ne(!1);F(i,qi,ne=>t(45,h=ne));let Ui,Ze=!1,Ji,Jt=!1,Ke,sn=!0,Ki,xi,an=!1,$i;wt==null||wt.setContext(Tl());let Tn=ne=>{clearTimeout(Li),ne&&(Rt.set(!0),Bt.set(!0),Li=window.setTimeout(()=>{Bt.set(!1)},X.controls.collapseMobileUnmute),Mi||ai(X.controls.hideTimeoutMobile))};ve.setUiCallbacks({onStarted:Tn});let si=()=>{window.clearTimeout(_i),t(112,Ze=!1),y&&pn.set(!1)},ai=ne=>{si(),t(112,Ze=!0),_i=window.setTimeout(()=>t(112,Ze=!1),ne);let Pt=ne-100;Ui=window.setTimeout(()=>{h&&qi.set(!1)},Pt>0?Pt:ne)},en=ti.subscribe(ne=>{Ei.set(ne),ne&&(window.clearTimeout(zi),zi=window.setTimeout(()=>Ei.set(!1),X.controls.hide360IconTimeout))}),hi=()=>ut(this,null,function*(){var Pt,En,vn,Mn;let ne=_o();if(ne){ai(X.controls.hideTimeoutFullscreen);try{yield wt==null?void 0:wt.remove()}catch(Sn){kt({message:String(Sn)})}try{let Sn=m!=null&&m.width&&(m!=null&&m.height)?m:c;yield Fc(Sn)}catch(Sn){kt({message:String(Sn)})}}oi.set(ne),ve.getAdmanWrapper().setFullscreen(ne),u?(En=(Pt=ve.callbacks)==null?void 0:Pt.onFullscreenEnter)==null||En.call(Pt):(Mn=(vn=ve.callbacks)==null?void 0:vn.onFullscreenExit)==null||Mn.call(vn)}),se=ne=>{let Pt=ne;hn.set({width:Pt.target.width,height:Pt.target.height})};Nt(()=>{var Pt;return mr(hi),Oo(wt)&&(wt==null||wt.assignPlayerContainer(Hi),wt==null||wt.registryExternalEventHandlers({resize:se})),t(39,sn=!Cp(s)),xe&&((Pt=Oe.parentElement)==null||Pt.insertBefore(xe,Oe.nextSibling)),()=>{window.clearTimeout(_i),window.clearTimeout(Ui),window.clearTimeout(Li),window.clearTimeout(zi),en(),wt==null||wt.dispose(),pr(hi)}});let pt=ne=>{let Pt=a+(ne==="forward"?1:-1)*X.controls.seekStepMobile/1e3;Pt<0?Pt=0:Pt>l&&(Pt=l-1),t(114,Jt=!0),qe(Pt)},gi=()=>ut(this,null,function*(){if(_o())yield dr(document),kt({message:"exit fullscreen"});else{if(kt({message:"request fullscreen"}),(0,Ko.isIOS)()&&!r)return;let ne=(0,Ko.isIOS)()||!Mt?Hi:Mt,Pt=ne.getRootNode(),En=Pt instanceof ShadowRoot?Pt.host:Pt,vn=ze instanceof HTMLElement&&ze.contains(En),Mn=X.allowChangingFullscreenTarget&&ze&&vn?ze:ne;yield cr(Mn)}}),bi=()=>{bn()},ui=()=>{if(n){bi();return}if(!jt){Re(),ai(X.controls.hideTimeoutCursor);return}t(114,Jt=!1),o?si():ai(X.controls.hideTimeoutMobile)},xt=()=>{if(n){bi();return}},Hn=()=>{ri.set(!0)},Bn=()=>{Mi||(qi.set(!0),ai(X.controls.hideTimeoutCursor))},In=ne=>{ln&&(ln(ne),ai(X.controls.hideTimeoutMobile))},Gt=ne=>{Xi&&(Xi(ne),ai(X.controls.hideTimeoutMobile))};function Cn(ne){_e[ne?"unshift":"push"](()=>{Oe=ne,t(0,Oe)})}let Zn=()=>pt("backward"),zn=()=>pt("forward");function qn(ne){ni=ne,t(37,ni)}function Rn(ne){_e[ne?"unshift":"push"](()=>{Bi=ne,t(29,Bi)})}function un(ne){_e[ne?"unshift":"push"](()=>{Hi=ne,t(36,Hi)})}return i.$$set=ne=>{"store"in ne&&t(106,ve=ne.store),"uiConfig"in ne&&t(1,X=ne.uiConfig),"thumbUrl"in ne&&t(2,be=ne.thumbUrl),"videoContainer"in ne&&t(0,Oe=ne.videoContainer),"interactiveContainer"in ne&&t(107,xe=ne.interactiveContainer),"live"in ne&&t(3,et=ne.live),"autoplay"in ne&&t(4,ye=ne.autoplay),"canRewindLive"in ne&&t(5,Be=ne.canRewindLive),"showAds"in ne&&t(6,Ue=ne.showAds),"adsSlotId"in ne&&t(7,Xe=ne.adsSlotId),"adsParams"in ne&&t(8,Te=ne.adsParams),"adsPreviewParam"in ne&&t(9,Z=ne.adsPreviewParam),"duration"in ne&&t(10,Ce=ne.duration),"logoClickable"in ne&&t(11,ue=ne.logoClickable),"logoHidden"in ne&&t(12,Ie=ne.logoHidden),"logoTargetUrl"in ne&&t(13,Je=ne.logoTargetUrl),"showNextPrevButtons"in ne&&t(14,ft=ne.showNextPrevButtons),"nextButtonActive"in ne&&t(15,ct=ne.nextButtonActive),"prevButtonActive"in ne&&t(16,dt=ne.prevButtonActive),"endScreenVideoTitle"in ne&&t(17,bt=ne.endScreenVideoTitle),"endScreenVideoThumb"in ne&&t(18,vt=ne.endScreenVideoThumb),"isOneVideoPlaylist"in ne&&t(19,we=ne.isOneVideoPlaylist),"supportLink"in ne&&t(20,_t=ne.supportLink),"outerContainerRef"in ne&&t(108,Mt=ne.outerContainerRef),"showMiniTimer"in ne&&t(109,Vt=ne.showMiniTimer),"fullScreenTarget"in ne&&t(110,ze=ne.fullScreenTarget),"playerStarted"in ne&&t(21,jt=ne.playerStarted),"playNextVideo"in ne&&t(22,Ht=ne.playNextVideo),"playPrevVideo"in ne&&t(23,Wt=ne.playPrevVideo),"repeatPlaylist"in ne&&t(24,$t=ne.repeatPlaylist),"seekToInteractive"in ne&&t(25,me=ne.seekToInteractive),"toggleGraph"in ne&&t(26,ht=ne.toggleGraph),"playPrevChapter"in ne&&t(27,yt=ne.playPrevChapter),"firstStart"in ne&&t(28,Re=ne.firstStart),"seekTime"in ne&&t(111,qe=ne.seekTime)},i.$$.update=()=>{if(i.$$.dirty[1]&12|i.$$.dirty[4]&24)e:t(38,rn=(A==="video"&&L||A==="ads"&&H==="inactive")&&!P);if(i.$$.dirty[0]&536870912)e:Ai.set(Bi);if(i.$$.dirty[4]&4)e:t(113,Ji=ae!==qp.PlaybackState.PLAYING);if(i.$$.dirty[3]&303562752|i.$$.dirty[4]&3)e:t(115,Ke=re||y||!Ze&&(v&&!!ii||Ji&&K));if(i.$$.dirty[1]&28|i.$$.dirty[3]&91750400)e:ki.set((Ji||n||S||q||Ze&&!Jt)&&!Ke&&A==="video"&&!P);if(i.$$.dirty[0]&1073741826|i.$$.dirty[1]&12|i.$$.dirty[3]&1073807360)e:t(40,Ki=X.features.thumbTimer&&Vt&&A==="video"&&!o&&!P&&!Mi&&(X.hideThumbTimerAfterTouch&&!I||!X.hideThumbTimerAfterTouch));if(i.$$.dirty[0]&64|i.$$.dirty[1]&4|i.$$.dirty[3]&805306368)e:t(41,xi=(Ue&&g||!Ue)&&v&&!P);if(i.$$.dirty[0]&2|i.$$.dirty[3]&209715200)e:!S&&an&&!w&&ai(X.controls.hideTimeoutMobile),t(116,an=S);if(i.$$.dirty[0]&1|i.$$.dirty[1]&3)e:t(42,$i=Oe&&b%180?c.height/c.width:1)},[Oe,X,be,et,ye,Be,Ue,Xe,Te,Z,Ce,ue,Ie,Je,ft,ct,dt,bt,vt,we,_t,jt,Ht,Wt,$t,me,ht,yt,Re,Bi,o,c,b,P,A,q,Hi,ni,rn,sn,Ki,xi,$i,l,a,h,x,Q,J,E,te,M,ee,ke,Qe,je,$e,We,zt,ei,mn,yi,wi,Ni,oi,ki,pn,Ci,Qi,fi,Oi,Si,Yi,Pi,ci,Ti,Ii,Zt,di,mi,qt,St,Fi,li,_n,hn,ti,Ei,Zi,Mi,pi,Xt,Vi,ri,on,gn,qi,pt,gi,bi,ui,xt,Hn,Bn,In,Gt,ve,xe,Mt,Vt,ze,qe,Ze,Ji,Jt,Ke,an,n,y,S,w,v,g,I,K,re,ae,H,L,Cn,Zn,zn,qn,Rn,un]}var wf=class extends j{constructor(e){super(),W(this,e,a6,s6,U,{store:106,uiConfig:1,thumbUrl:2,videoContainer:0,interactiveContainer:107,live:3,autoplay:4,canRewindLive:5,showAds:6,adsSlotId:7,adsParams:8,adsPreviewParam:9,duration:10,logoClickable:11,logoHidden:12,logoTargetUrl:13,showNextPrevButtons:14,nextButtonActive:15,prevButtonActive:16,endScreenVideoTitle:17,endScreenVideoThumb:18,isOneVideoPlaylist:19,supportLink:20,outerContainerRef:108,showMiniTimer:109,fullScreenTarget:110,playerStarted:21,playNextVideo:22,playPrevVideo:23,repeatPlaylist:24,seekToInteractive:25,toggleGraph:26,playPrevChapter:27,firstStart:28,seekTime:111},r6,[-1,-1,-1,-1,-1,-1])}},Up=wf;function u6(i){Se(i,"svelte-cghoty",`.root.svelte-cghoty{--white:#fff;--black:#000;--red:#ff3347;--blue-light:#70c1ff;--black-alpha-40:rgba(0, 0, 0, 0.40);--white-alpha-24:rgba(255, 255, 255, 0.24);--white-alpha-72:rgba(255, 255, 255, 0.72);--devider-gray:#dce1e6;--text-gray:#626d7a;--controls-height:40px;--controls-gradient-height:100px;--controls-transition-duration:0.25s;--controls-transition-fn:cubic-bezier(0.455, 0.03, 0.515, 0.955);--controls-desktop-item-margin-left:4px;--focused:var(--white);--focused-element-shadow:inset 0 0 0 2px var(--focused);--focused-slider-shadow:0 0 0 2px var(--focused);--big-play-size:96px;--big-play-radius:50%;--big-play-bg-color:rgba(0, 0, 0, 0.5);--big-play-hover-bg-color:rgba(0, 0, 0, 0.6);--big-play-icon-width:38px;--big-play-icon-height:33px;--interactive-episode-complete:rgba(92, 156, 230, 1);--slider-height:5px;--slider-video-episode-gap:1.5px;--slider-radius:calc(var(--slider-height) / 2);--slider-handle-size:13px;--slider-bg:rgba(255, 255, 255, 0.4);--slider-loaded-bg:rgba(255, 255, 255, 0.4);--slider-filled-bg:var(--white);--slider-filled-active-live-bg:var(--red);--slider-filled-ads:rgba(103, 165, 235, 1);--slider-disabled-color:rgba(248, 248, 248, 0.31);--controls-gradient:linear-gradient(
32
+ )}.hidden.svelte-1bcvcf2{visibility:hidden;transform:translateY(calc(var(--controls-gradient-height) * -1));opacity:0}`)}function O5(i){let e,t;return{c(){e=P("div"),t=Be(i[0]),c(e,"class","title svelte-1bcvcf2"),z(e,"hidden",i[1])},m(n,o){C(n,e,o),p(e,t)},p(n,[o]){o&1&&Ze(t,n[0]),o&2&&z(e,"hidden",n[1])},i:pe,o:pe,d(n){n&&k(e)}}}function F5(i,e,t){let{title:n=""}=e,{isHidden:o=!1}=e;return i.$$set=r=>{"title"in r&&t(0,n=r.title),"isHidden"in r&&t(1,o=r.isHidden)},[n,o]}var dc=class extends j{constructor(e){super(),W(this,e,F5,O5,U,{title:0,isHidden:1},N5)}},J0=dc;function H5(i){Te(i,"svelte-1qpxtfg",".timer__container.svelte-1qpxtfg{display:flex;align-items:flex-start;justify-content:center}.cell.svelte-1qpxtfg{display:flex;flex-direction:column;align-items:center;width:62px}.cell__value.svelte-1qpxtfg{font-size:48px;line-height:1.2;font-weight:700}.cell__unit.svelte-1qpxtfg{font-size:14px;line-height:1.2;font-weight:400}.timer__points.svelte-1qpxtfg{display:inline-block;margin:0 8px;font-size:42px;line-height:1.2;font-weight:600}")}function x0(i){let e,t,n,o,r,l,a;return{c(){e=P("div"),t=P("span"),n=Be(i[0]),o=O(),r=P("span"),r.textContent=`${Q("waiting_live_day_value")}`,l=O(),a=P("span"),a.textContent=`${Q("waiting_live_colon")}`,c(t,"class","cell__value svelte-1qpxtfg"),c(r,"class","cell__unit svelte-1qpxtfg"),c(e,"class","timer__cell cell svelte-1qpxtfg"),c(a,"class","timer__points svelte-1qpxtfg")},m(s,u){C(s,e,u),p(e,t),p(t,n),p(e,o),p(e,r),C(s,l,u),C(s,a,u)},p(s,u){u&1&&Ze(n,s[0])},d(s){s&&(k(e),k(l),k(a))}}}function $0(i){let e,t,n,o,r,l,a;return{c(){e=P("div"),t=P("span"),n=Be(i[1]),o=O(),r=P("span"),r.textContent=`${Q("waiting_live_hour_value")}`,l=O(),a=P("span"),a.textContent=`${Q("waiting_live_colon")}`,c(t,"class","cell__value svelte-1qpxtfg"),c(r,"class","cell__unit svelte-1qpxtfg"),c(e,"class","timer__cell cell svelte-1qpxtfg"),c(a,"class","timer__points svelte-1qpxtfg")},m(s,u){C(s,e,u),p(e,t),p(t,n),p(e,o),p(e,r),C(s,l,u),C(s,a,u)},p(s,u){u&2&&Ze(n,s[1])},d(s){s&&(k(e),k(l),k(a))}}}function ep(i){let e,t,n,o,r,l,a;return{c(){e=P("div"),t=P("span"),n=Be(i[2]),o=O(),r=P("span"),r.textContent=`${Q("waiting_live_minute_value")}`,l=O(),a=P("span"),a.textContent=`${Q("waiting_live_colon")}`,c(t,"class","cell__value svelte-1qpxtfg"),c(r,"class","cell__unit svelte-1qpxtfg"),c(e,"class","timer__cell cell svelte-1qpxtfg"),c(a,"class","timer__points svelte-1qpxtfg")},m(s,u){C(s,e,u),p(e,t),p(t,n),p(e,o),p(e,r),C(s,l,u),C(s,a,u)},p(s,u){u&4&&Ze(n,s[2])},d(s){s&&(k(e),k(l),k(a))}}}function tp(i){let e,t,n,o,r;return{c(){e=P("div"),t=P("span"),n=Be(i[3]),o=O(),r=P("span"),r.textContent=`${Q("waiting_live_second_value")}`,c(t,"class","cell__value svelte-1qpxtfg"),c(r,"class","cell__unit svelte-1qpxtfg"),c(e,"class","timer__cell cell svelte-1qpxtfg")},m(l,a){C(l,e,a),p(e,t),p(t,n),p(e,o),p(e,r)},p(l,a){a&8&&Ze(n,l[3])},d(l){l&&k(e)}}}function z5(i){let e,t,n,o,r=i[0]&&x0(i),l=i[1]&&$0(i),a=i[2]&&ep(i),s=i[3]&&tp(i);return{c(){e=P("div"),r&&r.c(),t=O(),l&&l.c(),n=O(),a&&a.c(),o=O(),s&&s.c(),c(e,"class","timer__container svelte-1qpxtfg")},m(u,f){C(u,e,f),r&&r.m(e,null),p(e,t),l&&l.m(e,null),p(e,n),a&&a.m(e,null),p(e,o),s&&s.m(e,null)},p(u,[f]){u[0]?r?r.p(u,f):(r=x0(u),r.c(),r.m(e,t)):r&&(r.d(1),r=null),u[1]?l?l.p(u,f):(l=$0(u),l.c(),l.m(e,n)):l&&(l.d(1),l=null),u[2]?a?a.p(u,f):(a=ep(u),a.c(),a.m(e,o)):a&&(a.d(1),a=null),u[3]?s?s.p(u,f):(s=tp(u),s.c(),s.m(e,null)):s&&(s.d(1),s=null)},i:pe,o:pe,d(u){u&&k(e),r&&r.d(),l&&l.d(),a&&a.d(),s&&s.d()}}}function q5(i,e,t){let{startTime:n}=e,{onTimerOver:o}=e,r,l,a,s,u,f=y=>String(y).padStart(2,"0"),m=y=>{let b=Math.floor(y/86400);b&&(y-=b*86400,t(0,r=f(b)));let S=Math.floor(y/3600);t(1,l=f(S));let w=Math.floor(y/60)%60;t(2,a=f(w));let T=y%60;t(3,s=f(T))},h=()=>{let y=Math.floor(Date.now()/1e3),b=n-y;m(b),b>=1?u=requestAnimationFrame(h):o()};return Ft(()=>{u=requestAnimationFrame(h)}),Wn(()=>{cancelAnimationFrame(u)}),i.$$set=y=>{"startTime"in y&&t(4,n=y.startTime),"onTimerOver"in y&&t(5,o=y.onTimerOver)},[r,l,a,s,n,o]}var mc=class extends j{constructor(e){super(),W(this,e,q5,z5,U,{startTime:4,onTimerOver:5},H5)}},ip=mc;function U5(i){let e,t,n,o,r,l,a=i[2].default,s=Ee(a,i,i[1],null),u=[{xmlns:"http://www.w3.org/2000/svg"},{"aria-hidden":"true"},{"data-testid":"podcast-icon"},{style:"shape-rendering:geometricPrecision;text-rendering:geometricPrecision;image-rendering:optimizeQuality;fill-rule:evenodd;clip-rule:evenodd;width:100%;height:100%"},{viewBox:"0 0 400 400"},{role:"img"},i[0]],f={};for(let m=0;m<u.length;m+=1)f=oe(f,u[m]);return{c(){e=N("svg"),s&&s.c(),t=N("path"),n=N("path"),o=N("path"),r=N("path"),c(t,"fill","#fefffe"),c(t,"d","M179.5-.5h40q127.56 18.67 171.5 140 5.724 19.896 8.5 40v40q-5.549 51.6-35.5 94-9.626-12.614-24.5-18.5-1.526-1.574-.5-3.5 39.742-61.7 23-133Q329.24 50.25 217.5 33 112.126 26.56 55 114.5q-40.395 74.102-9 152a152.3 152.3 0 0 0 14 25q1.026 1.926-.5 3.5-14.874 5.886-24.5 18.5-29.95-42.4-35.5-94v-40Q18.17 51.94 139.5 8q19.896-5.724 40-8.5"),gi(t,"opacity",".965"),c(n,"fill","#fefffe"),c(n,"d","M183.5 63.5q86.294-5.475 133.5 66 32.442 60.138 8 124a186.7 186.7 0 0 1-17.5 29.5 633 633 0 0 1-38-7q54.668-57.264 19.5-128.5Q252.733 91.244 185.5 97q-74.25 14.25-88.5 88.5-5.916 53.38 32.5 90.5a1150 1150 0 0 0-36 7.5q-2.294-.044-3.5-2-43.947-63.646-16-136 32.799-70.278 109.5-82"),gi(n,"opacity",".965"),c(o,"fill","#fefffe"),c(o,"d","M187.5 127.5q66.786-4.422 83.5 60 5.146 66.825-59.5 83.5-66.825 5.146-83.5-59.5-4.844-66.856 59.5-84"),gi(o,"opacity",".985"),c(r,"fill","#fefffe"),c(r,"d","M219.5 399.5h-40q-67.453-7.982-117-54a31.7 31.7 0 0 1 3.5-10q8.539-9.646 20.5-14.5 54.786-19.435 113-17.5 58.214-1.935 113 17.5 11.962 4.854 20.5 14.5a31.7 31.7 0 0 1 3.5 10q-49.547 46.018-117 54"),gi(r,"opacity",".986"),ge(e,f)},m(m,h){C(m,e,h),s&&s.m(e,null),p(e,t),p(e,n),p(e,o),p(e,r),l=!0},p(m,[h]){s&&s.p&&(!l||h&2)&&Ve(s,a,m,m[1],l?Me(a,m[1],h,null):Ae(m[1]),null),ge(e,f=Le(u,[{xmlns:"http://www.w3.org/2000/svg"},{"aria-hidden":"true"},{"data-testid":"podcast-icon"},{style:"shape-rendering:geometricPrecision;text-rendering:geometricPrecision;image-rendering:optimizeQuality;fill-rule:evenodd;clip-rule:evenodd;width:100%;height:100%"},{viewBox:"0 0 400 400"},{role:"img"},h&1&&m[0]]))},i(m){l||(d(s,m),l=!0)},o(m){_(s,m),l=!1},d(m){m&&k(e),s&&s.d(m)}}}function K5(i,e,t){let{$$slots:n={},$$scope:o}=e;return i.$$set=r=>{t(0,e=oe(oe({},e),he(r))),"$$scope"in r&&t(1,o=r.$$scope)},e=he(e),[e,o,n]}var pc=class extends j{constructor(e){super(),W(this,e,K5,U5,U,{})}},np=pc;function j5(i){Te(i,"svelte-15pewff",".waiting-container.svelte-15pewff{position:absolute;top:0;left:0;width:100%;height:100%;background-color:var(--black);background-position:center;background-size:cover;background-repeat:no-repeat}.waiting-container.svelte-15pewff::before{content:'';position:absolute;top:0;left:0;width:100%;height:100%;background-color:rgba(0, 0, 0, 0.56);z-index:1}.upcoming.svelte-15pewff{position:absolute;top:50%;left:0;width:100%;transform:translateY(-50%);display:flex;flex-direction:column;align-items:center;justify-content:center;z-index:0}.upcoming-icon.svelte-15pewff{width:20%;max-width:200px;margin-bottom:20px}.upcoming__title.svelte-15pewff{font-size:14px;line-height:1.2;font-weight:400}.waiting-timer.svelte-15pewff{position:absolute;top:50%;left:50%;transform:translate(-50%, -50%);z-index:2}.timer.svelte-15pewff{display:flex;flex-direction:column;align-items:center;justify-content:center}.timer__title.svelte-15pewff{display:inline-block;vertical-align:middle;margin-bottom:12px;font-size:14px;line-height:1.2;font-weight:400}")}function W5(i){let e,t,n,o,r;return o=new ip({props:{startTime:i[1]||0,onTimerOver:i[3]}}),{c(){e=P("div"),t=P("span"),t.textContent=`${Q("waiting_live_timer_title")}`,n=O(),D(o.$$.fragment),c(t,"class","timer__title svelte-15pewff"),c(e,"class","waiting-timer timer svelte-15pewff")},m(l,a){C(l,e,a),p(e,t),p(e,n),R(o,e,null),r=!0},p(l,a){let s={};a&2&&(s.startTime=l[1]||0),a&4&&(s.onTimerOver=l[3]),o.$set(s)},i(l){r||(d(o.$$.fragment,l),r=!0)},o(l){_(o.$$.fragment,l),r=!1},d(l){l&&k(e),B(o)}}}function G5(i){let e,t,n,o,r,l;return n=new np({}),{c(){e=P("div"),t=P("div"),D(n.$$.fragment),o=O(),r=P("span"),r.textContent=`${Q("waiting_live_upcoming_title")}`,c(t,"class","upcoming-icon svelte-15pewff"),c(r,"class","upcoming__title svelte-15pewff"),c(e,"class","upcoming svelte-15pewff")},m(a,s){C(a,e,s),p(e,t),R(n,t,null),p(e,o),p(e,r),l=!0},p:pe,i(a){l||(d(n.$$.fragment,a),l=!0)},o(a){_(n.$$.fragment,a),l=!1},d(a){a&&k(e),B(n)}}}function Q5(i){let e,t,n,o,r,l=[G5,W5],a=[];function s(u,f){return u[2]?0:1}return t=s(i,-1),n=a[t]=l[t](i),{c(){e=P("div"),n.c(),c(e,"class","waiting-container svelte-15pewff"),c(e,"style",o=`background-image: url(${i[2]?"":i[0]})`)},m(u,f){C(u,e,f),a[t].m(e,null),r=!0},p(u,[f]){let m=t;t=s(u,f),t===m?a[t].p(u,f):(ce(),_(a[m],1,1,()=>{a[m]=null}),fe(),n=a[t],n?n.p(u,f):(n=a[t]=l[t](u),n.c()),d(n,1),n.m(e,null)),(!r||f&5&&o!==(o=`background-image: url(${u[2]?"":u[0]})`))&&c(e,"style",o)},i(u){r||(d(n),r=!0)},o(u){_(n),r=!1},d(u){u&&k(e),a[t].d()}}}function Y5(i,e,t){let n,{thumbUrl:o}=e,{startTime:r}=e,l=()=>t(2,n=!0);return i.$$set=a=>{"thumbUrl"in a&&t(0,o=a.thumbUrl),"startTime"in a&&t(1,r=a.startTime)},i.$$.update=()=>{if(i.$$.dirty&2)e:t(2,n=r===void 0||r<Math.floor(Date.now()/1e3))},[o,r,n,l]}var _c=class extends j{constructor(e){super(),W(this,e,Y5,Q5,U,{thumbUrl:0,startTime:1},j5)}},ds=_c;function Z5(i){Te(i,"svelte-1bcnzdw",".waiting-container.svelte-1bcnzdw{position:absolute;top:0;left:0;width:100%;height:100%;display:flex;align-items:center;justify-content:center;background-color:var(--black)}.waiting-title.svelte-1bcnzdw{padding:20px;text-align:center;font-size:20px;line-height:1.2;font-weight:400}")}function X5(i){let e,t;return{c(){e=P("div"),t=P("p"),t.textContent=`${Q("waiting_record_title")}`,c(t,"class","waiting-title svelte-1bcnzdw"),c(e,"class","waiting-container svelte-1bcnzdw")},m(n,o){C(n,e,o),p(e,t)},p:pe,i:pe,o:pe,d(n){n&&k(e)}}}var hc=class extends j{constructor(e){super(),W(this,e,null,X5,U,{},Z5)}},ms=hc;var{window:J5}=Mo;function x5(i){Te(i,"svelte-1o4wf3x",".player-wrapper.svelte-1o4wf3x{position:absolute;width:100%;height:100%}.player-wrapper.svelte-1o4wf3x .player-media{position:absolute;left:0;top:0;width:100%;height:100%;background:var(--black);transition:transform 0.2s ease-in-out}.spherical-video-icon.svelte-1o4wf3x{display:inline-block;position:absolute;top:calc(50% - 23px);left:calc(50% - 38px)}.video-wrapper.svelte-1o4wf3x,.video-container.svelte-1o4wf3x,.ads-container.svelte-1o4wf3x{position:absolute;width:100%;height:100%;left:0;top:0}.video-wrapper.svelte-1o4wf3x{z-index:var(--video-container-z-index);background:var(--black)}.video-container.svelte-1o4wf3x{z-index:var(--video-container-z-index);transition:var(--rotate-transition-duration) ease all}.video-container.fast-rotate.svelte-1o4wf3x{transition:none}.nocursor.svelte-1o4wf3x{cursor:none}.ads-container.svelte-1o4wf3x{background:var(--black)}")}function lp(i){var n;let e,t;return e=new ds({props:{thumbUrl:i[3],startTime:(n=i[4])==null?void 0:n.startTime}}),{c(){D(e.$$.fragment)},m(o,r){R(e,o,r),t=!0},p(o,r){var a;let l={};r[0]&8&&(l.thumbUrl=o[3]),r[0]&16&&(l.startTime=(a=o[4])==null?void 0:a.startTime),e.$set(l)},i(o){t||(d(e.$$.fragment,o),t=!0)},o(o){_(e.$$.fragment,o),t=!1},d(o){B(e,o)}}}function rp(i){let e,t;return e=new ms({}),{c(){D(e.$$.fragment)},m(n,o){R(e,n,o),t=!0},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){_(e.$$.fragment,n),t=!1},d(n){B(e,n)}}}function sp(i){let e,t,n;return t=new hr({props:{adsSlotId:i[8],adsParams:i[9],adsPreviewParam:i[10],duration:i[11]}}),{c(){e=P("div"),D(t.$$.fragment),c(e,"class","ads-container svelte-1o4wf3x"),z(e,"hidden",i[38]!=="ads")},m(o,r){C(o,e,r),R(t,e,null),n=!0},p(o,r){let l={};r[0]&256&&(l.adsSlotId=o[8]),r[0]&512&&(l.adsParams=o[9]),r[0]&1024&&(l.adsPreviewParam=o[10]),r[0]&2048&&(l.duration=o[11]),t.$set(l),(!n||r[1]&128)&&z(e,"hidden",o[38]!=="ads")},i(o){n||(d(t.$$.fragment,o),n=!0)},o(o){_(t.$$.fragment,o),n=!1},d(o){o&&k(e),B(t)}}}function ap(i){let e,t;return e=new I1({props:{title:i[18],thumb:i[19],playNextVideo:i[23]}}),{c(){D(e.$$.fragment)},m(n,o){R(e,n,o),t=!0},p(n,o){let r={};o[0]&262144&&(r.title=n[18]),o[0]&524288&&(r.thumb=n[19]),o[0]&8388608&&(r.playNextVideo=n[23]),e.$set(r)},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){_(e.$$.fragment,n),t=!1},d(n){B(e,n)}}}function up(i){let e,t;return e=new J0({props:{title:i[2],isHidden:!i[36]}}),{c(){D(e.$$.fragment)},m(n,o){R(e,n,o),t=!0},p(n,o){let r={};o[0]&4&&(r.title=n[2]),o[1]&32&&(r.isHidden=!n[36]),e.$set(r)},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){_(e.$$.fragment,n),t=!1},d(n){B(e,n)}}}function cp(i){let e,t;return e=new ss({props:{isShifted:i[38]==="video"&&i[36]}}),{c(){D(e.$$.fragment)},m(n,o){R(e,n,o),t=!0},p(n,o){let r={};o[1]&160&&(r.isShifted=n[38]==="video"&&n[36]),e.$set(r)},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){_(e.$$.fragment,n),t=!1},d(n){B(e,n)}}}function fp(i){let e,t,n;return t=new sr({props:{"aria-label":Q("video360")}}),{c(){e=P("div"),D(t.$$.fragment),c(e,"class","spherical-video-icon svelte-1o4wf3x")},m(o,r){C(o,e,r),R(t,e,null),n=!0},p:pe,i(o){n||(d(t.$$.fragment,o),n=!0)},o(o){_(t.$$.fragment,o),n=!1},d(o){o&&k(e),B(t)}}}function dp(i){let e,t;return e=new us({props:{thumbUrl:i[3],chromecastDeviceName:i[53]}}),{c(){D(e.$$.fragment)},m(n,o){R(e,n,o),t=!0},p(n,o){let r={};o[0]&8&&(r.thumbUrl=n[3]),o[1]&4194304&&(r.chromecastDeviceName=n[53]),e.$set(r)},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){_(e.$$.fragment,n),t=!1},d(n){B(e,n)}}}function mp(i){let e,t;return e=new as({props:{shifted:i[36],captions:i[55],position:i[56],playerSize:i[34]}}),{c(){D(e.$$.fragment)},m(n,o){R(e,n,o),t=!0},p(n,o){let r={};o[1]&32&&(r.shifted=n[36]),o[1]&16777216&&(r.captions=n[55]),o[1]&33554432&&(r.position=n[56]),o[1]&8&&(r.playerSize=n[34]),e.$set(r)},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){_(e.$$.fragment,n),t=!1},d(n){B(e,n)}}}function pp(i){let e,t,n,o,r;return t=new cs({}),{c(){e=P("div"),D(t.$$.fragment)},m(l,a){C(l,e,a),R(t,e,null),n=!0,o||(r=[de(e,"contextmenu",Ot(i[108])),de(e,"click",ct(i[119]))],o=!0)},p:pe,i(l){n||(d(t.$$.fragment,l),n=!0)},o(l){_(t.$$.fragment,l),n=!1},d(l){l&&k(e),B(t),o=!1,lt(r)}}}function _p(i){let e,t,n;function o(l){i[157](l)}let r={bottomHidden:i[38]==="thumb"||i[38]==="waitingLive"||i[38]==="waitingRecord",bottomNoSmooth:i[50],showControls:i[36],isAds:i[38]==="ads",canRewindLive:i[6]&&i[57]!==0,logoClickable:i[12],logoHidden:i[13],logoTargetUrl:i[14],showNextPrevButtons:i[15],nextButtonActive:i[16],prevButtonActive:i[17],isOneVideoPlaylist:i[20],supportLink:i[21],customFullscreenSupported:wp,playNextVideo:i[23],playPrevVideo:i[24],repeatPlaylist:i[25],toggleFullscreen:i[106],returnFocus:i[156],seekToInteractive:i[26],toggleGraph:i[27],playPrevChapter:i[28]};return i[41]!==void 0&&(r.controlsElementRef=i[41]),e=new rs({props:r}),_e.push(()=>Fe(e,"controlsElementRef",o)),{c(){D(e.$$.fragment)},m(l,a){R(e,l,a),n=!0},p(l,a){let s={};a[1]&128&&(s.bottomHidden=l[38]==="thumb"||l[38]==="waitingLive"||l[38]==="waitingRecord"),a[1]&524288&&(s.bottomNoSmooth=l[50]),a[1]&32&&(s.showControls=l[36]),a[1]&128&&(s.isAds=l[38]==="ads"),a[0]&64|a[1]&67108864&&(s.canRewindLive=l[6]&&l[57]!==0),a[0]&4096&&(s.logoClickable=l[12]),a[0]&8192&&(s.logoHidden=l[13]),a[0]&16384&&(s.logoTargetUrl=l[14]),a[0]&32768&&(s.showNextPrevButtons=l[15]),a[0]&65536&&(s.nextButtonActive=l[16]),a[0]&131072&&(s.prevButtonActive=l[17]),a[0]&1048576&&(s.isOneVideoPlaylist=l[20]),a[0]&2097152&&(s.supportLink=l[21]),a[0]&8388608&&(s.playNextVideo=l[23]),a[0]&16777216&&(s.playPrevVideo=l[24]),a[0]&33554432&&(s.repeatPlaylist=l[25]),a[1]&131072&&(s.returnFocus=l[156]),a[0]&67108864&&(s.seekToInteractive=l[26]),a[0]&134217728&&(s.toggleGraph=l[27]),a[0]&268435456&&(s.playPrevChapter=l[28]),!t&&a[1]&1024&&(t=!0,s.controlsElementRef=l[41],Oe(()=>t=!1)),e.$set(s)},i(l){n||(d(e.$$.fragment,l),n=!0)},o(l){_(e.$$.fragment,l),n=!1},d(l){B(e,l)}}}function hp(i){let e,t;return e=new Tr({}),{c(){D(e.$$.fragment)},m(n,o){R(e,n,o),t=!0},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){_(e.$$.fragment,n),t=!1},d(n){B(e,n)}}}function gp(i){let e,t;return e=new F1({}),{c(){D(e.$$.fragment)},m(n,o){R(e,n,o),t=!0},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){_(e.$$.fragment,n),t=!1},d(n){B(e,n)}}}function bp(i){let e,t;return e=new kr({}),{c(){D(e.$$.fragment)},m(n,o){R(e,n,o),t=!0},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){_(e.$$.fragment,n),t=!1},d(n){B(e,n)}}}function vp(i){let e,t,n,o,r,l,a,s,u,f,m,h,y,b,S,w,T,v,g,I,A,q,K,re;e=new fs({props:{hidden:i[38]!=="thumb"||i[37]||i[92]&&i[5],thumbUrl:i[3],startVideo:i[29]}});let ae=i[38]==="waitingLive"&&lp(i),H=i[38]==="waitingRecord"&&rp(i),L=i[7]&&i[22]&&sp(i),x=i[31]&&i[18]&&i[19]&&ap(i),G=i[44]&&up(i),J=i[49]&&cp(i),E=i[52]&&fp(i),te=i[39]&&dp(i),M=i[54].value!=="off"&&mp(i),ee=i[37]&&pp(i),ke=i[22]&&_p(i);b=new br({props:{isLive:i[58],isHidden:!i[43],isPlaying:i[59],position:i[56],duration:i[60]}}),w=new U0({props:{data:i[103]}});function Ge(X){i[159](X)}let Ke={supportLink:i[21],returnFocus:i[158],visible:i[33],playerContainerRef:i[40],controlsContainerRef:i[41],position:i[61]};i[32]!==void 0&&(Ke.menuElementRef=i[32]),v=new u1({props:Ke}),_e.push(()=>Fe(v,"menuElementRef",Ge));let Je=i[42]&&hp(i),We=i[62]&&gp(i),ve=i[63]&&bp(i);return{c(){D(e.$$.fragment),t=O(),ae&&ae.c(),n=O(),H&&H.c(),o=O(),L&&L.c(),r=O(),x&&x.c(),l=O(),G&&G.c(),a=O(),J&&J.c(),s=O(),E&&E.c(),u=O(),te&&te.c(),f=O(),M&&M.c(),m=O(),ee&&ee.c(),h=O(),ke&&ke.c(),y=O(),D(b.$$.fragment),S=O(),D(w.$$.fragment),T=O(),D(v.$$.fragment),I=O(),Je&&Je.c(),A=O(),We&&We.c(),q=O(),ve&&ve.c(),K=st()},m(X,be){R(e,X,be),C(X,t,be),ae&&ae.m(X,be),C(X,n,be),H&&H.m(X,be),C(X,o,be),L&&L.m(X,be),C(X,r,be),x&&x.m(X,be),C(X,l,be),G&&G.m(X,be),C(X,a,be),J&&J.m(X,be),C(X,s,be),E&&E.m(X,be),C(X,u,be),te&&te.m(X,be),C(X,f,be),M&&M.m(X,be),C(X,m,be),ee&&ee.m(X,be),C(X,h,be),ke&&ke.m(X,be),C(X,y,be),R(b,X,be),C(X,S,be),R(w,X,be),C(X,T,be),R(v,X,be),C(X,I,be),Je&&Je.m(X,be),C(X,A,be),We&&We.m(X,be),C(X,q,be),ve&&ve.m(X,be),C(X,K,be),re=!0},p(X,be){let Ne={};be[0]&32|be[1]&192&&(Ne.hidden=X[38]!=="thumb"||X[37]||X[92]&&X[5]),be[0]&8&&(Ne.thumbUrl=X[3]),be[0]&536870912&&(Ne.startVideo=X[29]),e.$set(Ne),X[38]==="waitingLive"?ae?(ae.p(X,be),be[1]&128&&d(ae,1)):(ae=lp(X),ae.c(),d(ae,1),ae.m(n.parentNode,n)):ae&&(ce(),_(ae,1,1,()=>{ae=null}),fe()),X[38]==="waitingRecord"?H?be[1]&128&&d(H,1):(H=rp(X),H.c(),d(H,1),H.m(o.parentNode,o)):H&&(ce(),_(H,1,1,()=>{H=null}),fe()),X[7]&&X[22]?L?(L.p(X,be),be[0]&4194432&&d(L,1)):(L=sp(X),L.c(),d(L,1),L.m(r.parentNode,r)):L&&(ce(),_(L,1,1,()=>{L=null}),fe()),X[31]&&X[18]&&X[19]?x?(x.p(X,be),be[0]&786432|be[1]&1&&d(x,1)):(x=ap(X),x.c(),d(x,1),x.m(l.parentNode,l)):x&&(ce(),_(x,1,1,()=>{x=null}),fe()),X[44]?G?(G.p(X,be),be[1]&8192&&d(G,1)):(G=up(X),G.c(),d(G,1),G.m(a.parentNode,a)):G&&(ce(),_(G,1,1,()=>{G=null}),fe()),X[49]?J?(J.p(X,be),be[1]&262144&&d(J,1)):(J=cp(X),J.c(),d(J,1),J.m(s.parentNode,s)):J&&(ce(),_(J,1,1,()=>{J=null}),fe()),X[52]?E?(E.p(X,be),be[1]&2097152&&d(E,1)):(E=fp(X),E.c(),d(E,1),E.m(u.parentNode,u)):E&&(ce(),_(E,1,1,()=>{E=null}),fe()),X[39]?te?(te.p(X,be),be[1]&256&&d(te,1)):(te=dp(X),te.c(),d(te,1),te.m(f.parentNode,f)):te&&(ce(),_(te,1,1,()=>{te=null}),fe()),X[54].value!=="off"?M?(M.p(X,be),be[1]&8388608&&d(M,1)):(M=mp(X),M.c(),d(M,1),M.m(m.parentNode,m)):M&&(ce(),_(M,1,1,()=>{M=null}),fe()),X[37]?ee?(ee.p(X,be),be[1]&64&&d(ee,1)):(ee=pp(X),ee.c(),d(ee,1),ee.m(h.parentNode,h)):ee&&(ce(),_(ee,1,1,()=>{ee=null}),fe()),X[22]?ke?(ke.p(X,be),be[0]&4194304&&d(ke,1)):(ke=_p(X),ke.c(),d(ke,1),ke.m(y.parentNode,y)):ke&&(ce(),_(ke,1,1,()=>{ke=null}),fe());let xe={};be[1]&134217728&&(xe.isLive=X[58]),be[1]&4096&&(xe.isHidden=!X[43]),be[1]&268435456&&(xe.isPlaying=X[59]),be[1]&33554432&&(xe.position=X[56]),be[1]&536870912&&(xe.duration=X[60]),b.$set(xe);let et={};be[0]&2097152&&(et.supportLink=X[21]),be[1]&131072&&(et.returnFocus=X[158]),be[1]&4&&(et.visible=X[33]),be[1]&512&&(et.playerContainerRef=X[40]),be[1]&1024&&(et.controlsContainerRef=X[41]),be[1]&1073741824&&(et.position=X[61]),!g&&be[1]&2&&(g=!0,et.menuElementRef=X[32],Oe(()=>g=!1)),v.$set(et),X[42]?Je?be[1]&2048&&d(Je,1):(Je=hp(X),Je.c(),d(Je,1),Je.m(A.parentNode,A)):Je&&(ce(),_(Je,1,1,()=>{Je=null}),fe()),X[62]?We?be[2]&1&&d(We,1):(We=gp(X),We.c(),d(We,1),We.m(q.parentNode,q)):We&&(ce(),_(We,1,1,()=>{We=null}),fe()),X[63]?ve?be[2]&2&&d(ve,1):(ve=bp(X),ve.c(),d(ve,1),ve.m(K.parentNode,K)):ve&&(ce(),_(ve,1,1,()=>{ve=null}),fe())},i(X){re||(d(e.$$.fragment,X),d(ae),d(H),d(L),d(x),d(G),d(J),d(E),d(te),d(M),d(ee),d(ke),d(b.$$.fragment,X),d(w.$$.fragment,X),d(v.$$.fragment,X),d(Je),d(We),d(ve),re=!0)},o(X){_(e.$$.fragment,X),_(ae),_(H),_(L),_(x),_(G),_(J),_(E),_(te),_(M),_(ee),_(ke),_(b.$$.fragment,X),_(w.$$.fragment,X),_(v.$$.fragment,X),_(Je),_(We),_(ve),re=!1},d(X){X&&(k(t),k(n),k(o),k(r),k(l),k(a),k(s),k(u),k(f),k(m),k(h),k(y),k(S),k(T),k(I),k(A),k(q),k(K)),B(e,X),ae&&ae.d(X),H&&H.d(X),L&&L.d(X),x&&x.d(X),G&&G.d(X),J&&J.d(X),E&&E.d(X),te&&te.d(X),M&&M.d(X),ee&&ee.d(X),ke&&ke.d(X),B(b,X),B(w,X),B(v,X),Je&&Je.d(X),We&&We.d(X),ve&&ve.d(X)}}}function $5(i){let e,t,n,o,r=i[51],l,a,s,u,f=vp(i);return{c(){e=P("div"),t=P("div"),o=O(),f.c(),l=st(),c(t,"class","video-container svelte-1o4wf3x"),c(t,"style",n=`transform: rotate(${i[35]}deg) scale(${i[46]})`),z(t,"fast-rotate",!i[1].isSmoothVideoRotate),c(e,"class","video-wrapper svelte-1o4wf3x"),z(e,"hidden",i[38]!=="video"),z(e,"nocursor",i[45])},m(m,h){C(m,e,h),p(e,t),i[155](t),C(m,o,h),f.m(m,h),C(m,l,h),a=!0,s||(u=[de(e,"contextmenu",Ot(i[108])),de(e,"mousedown",Ot(i[113])),de(e,"mouseup",Ot(i[114])),de(e,"click",Ot(i[116])),de(e,"dblclick",Ot(i[115]))],s=!0)},p(m,h){(!a||h[1]&32784&&n!==(n=`transform: rotate(${m[35]}deg) scale(${m[46]})`))&&c(t,"style",n),(!a||h[0]&2)&&z(t,"fast-rotate",!m[1].isSmoothVideoRotate),(!a||h[1]&128)&&z(e,"hidden",m[38]!=="video"),(!a||h[1]&16384)&&z(e,"nocursor",m[45]),h[1]&1048576&&U(r,r=m[51])?(ce(),_(f,1,1,pe),fe(),f=vp(m),f.c(),d(f,1),f.m(l.parentNode,l)):f.p(m,h)},i(m){a||(d(f),a=!0)},o(m){_(f),a=!1},d(m){m&&(k(e),k(o),k(l)),i[155](null),f.d(m),s=!1,lt(u)}}}function e6(i){let e,t,n,o,r,l,a,s={toggleFullscreen:i[106],hideContextMenu:i[107],showHotKeyHelpers:i[117],showKeyMap:i[118],isAds:i[38]==="ads",fakePlayButtonHandler:i[47]?i[105]:void 0,$$slots:{default:[$5]},$$scope:{ctx:i}};return t=new M1({props:s}),i[160](t),{c(){e=P("div"),D(t.$$.fragment),n=O(),o=P("div"),c(o,"class","overlay-container"),c(e,"class","player-wrapper svelte-1o4wf3x")},m(u,f){C(u,e,f),R(t,e,null),p(e,n),p(e,o),i[161](o),i[162](e),r=!0,l||(a=[de(J5,"blur",i[107]),de(e,"mouseenter",i[109]),de(e,"mouseleave",i[111]),de(e,"mousemove",i[112]),de(e,"click",i[120],!0),de(e,"focusin",i[110],!0)],l=!0)},p(u,f){let m={};f[1]&128&&(m.isAds=u[38]==="ads"),f[1]&65536&&(m.fakePlayButtonHandler=u[47]?u[105]:void 0),f[0]&1073741823|f[1]&2147418111|f[2]&3|f[6]&4&&(m.$$scope={dirty:f,ctx:u}),t.$set(m)},i(u){r||(d(t.$$.fragment,u),r=!0)},o(u){_(t.$$.fragment,u),r=!1},d(u){u&&k(e),i[160](null),B(t),i[161](null),i[162](null),l=!1,lt(a)}}}var wp=!0;function gc(i){return i?i.offsetTop+gc(i.offsetParent):0}function kp(i){return i?i.offsetLeft+kp(i.offsetParent):0}function t6(i,e,t){let n,o,r,l,a,s,u,f,m,h,y,b,S,w,T,v,g,I,A,q,K,re,ae,H,L,x,G,J,E,te,M,ee,ke,Ge,Ke,Je,We,ve,X,be,Ne,xe,et,{store:ye}=e,{uiConfig:Re}=e,{title:je}=e,{thumbUrl:Xe}=e,{videoContainer:Ce}=e,{interactiveContainer:Z}=e,{live:Pe}=e,{autoplay:ue}=e,{canRewindLive:Ie}=e,{showAds:Ye}=e,{adsSlotId:ft=void 0}=e,{adsParams:mt=void 0}=e,{adsPreviewParam:dt=void 0}=e,{duration:bt=void 0}=e,{logoClickable:wt}=e,{logoHidden:we}=e,{logoTargetUrl:vt=""}=e,{showNextPrevButtons:Nt=!1}=e,{nextButtonActive:Et=!1}=e,{prevButtonActive:qe=!1}=e,{endScreenVideoTitle:Kt=void 0}=e,{endScreenVideoThumb:zt=void 0}=e,{isOneVideoPlaylist:Zt=!1}=e,{supportLink:ti}=e,{shadowRootContainer:Lt=void 0}=e,{outerContainerRef:Tt=void 0}=e,{playerStarted:me=!1}=e,{fullScreenTarget:Ue=void 0}=e,{showMiniTimer:Qe=!1}=e,{playNextVideo:tt=ps.noop}=e,{playPrevVideo:_t=ps.noop}=e,{repeatPlaylist:ii=ps.noop}=e,{seekToInteractive:Li}=e,{toggleGraph:Gt}=e,{playPrevChapter:Ri}=e,{firstStart:Yi}=e,ni=ye.getLogger().createComponentLog("Root component"),vi=ye.interfaceLanguage$;F(i,vi,Y=>t(51,M=Y));let _n=ye.state.playbackState$;F(i,_n,Y=>t(152,J=Y));let fi=ye.ads.playbackState;F(i,fi,Y=>t(153,E=Y));let Zi=ye.state.positionWithScrubbing$;F(i,Zi,Y=>t(56,Je=Y));let di=ye.state.duration$;F(i,di,Y=>t(60,be=Y));let Xi=ye.playerPhase;F(i,Xi,Y=>t(38,ae=Y));let yi=ye.ui.isFullscreen;F(i,yi,Y=>t(142,b=Y));let Bi=ye.ui.controlsVisible;F(i,Bi,Y=>t(36,I=Y));let wi=ye.ui.settingsMenuVisible;F(i,wi,Y=>t(140,s=Y));let Di=ye.ui.scrubbingInProgress;F(i,Di,Y=>t(144,v=Y));let Mt=ye.ui.contextMenu.visible$;F(i,Mt,Y=>t(33,n=Y));let Rt=ye.ui.debugPanelVisible;F(i,Rt,Y=>t(63,et=Y));let Ni=ye.state.isLoaderVisible;F(i,Ni,Y=>t(154,te=Y));let ki=ye.state.isEnded$;F(i,ki,Y=>t(141,f=Y));let xt=ye.state.chromecastConnected$;F(i,xt,Y=>t(39,x=Y));let si=ye.state.chromecastDeviceName$;F(i,si,Y=>t(53,ke=Y));let Ci=ye.ads.postrollPassed;F(i,Ci,Y=>t(147,K=Y));let mi=ye.state.isLive$;F(i,mi,Y=>t(58,ve=Y));let gt=ye.state.isPlaying$;F(i,gt,Y=>t(59,X=Y));let Oi=ye.state.crashed$;F(i,Oi,Y=>t(37,q=Y));let Pt=ye.webApi.pictureInPictureApi,ai=ye.state.currentSubtitle$;F(i,ai,Y=>t(54,Ge=Y));let hn=ye.state.currentSubtitleCaptions$;F(i,hn,Y=>t(55,Ke=Y));let Cn=ye.state.duration$;F(i,Cn,Y=>t(57,We=Y));let ui=ye.state.graphIsOpened$;F(i,ui,Y=>t(148,re=Y));let Fi=ye.ui.playerSize;F(i,Fi,Y=>t(34,h=Y));let Hi=ye.ui.is3DVideo;F(i,Hi,Y=>t(49,m=Y));let Si=ye.ui.icon3DVideoVisible;F(i,Si,Y=>t(52,ee=Y));let Ti=ye.ui.rotateAlpha;F(i,Ti,Y=>t(35,T=Y));let jt=ye.state.isInteractive,$t=ye.state.isInteractiveTime$;F(i,$t,Y=>t(145,g=Y));let Pi=ye.state.isInteractiveExpectation$;F(i,Pi,Y=>t(151,G=Y));let Ji=ye.state.hasInteractiveBranches,zi=ye.ui.touched;F(i,zi,Y=>t(149,H=Y));let pi=ye.ui.modals.hotKeyMap.data;F(i,pi,Y=>t(169,u=Y));let un=ye.ui.modals.hotKeyMap.show;F(i,un,Y=>t(62,xe=Y));let gn=ye.ui.overlayContainer$,cn=ye.ui.controls.interactiveTimeIndicator;F(i,cn,Y=>t(170,y=Y));let bn=ye.state.showInteractiveTimeIndicator,xi=ye.ui.contextMenu.position$;F(i,xi,Y=>t(61,Ne=Y));let oi=ye.actions.internal.closeSettingsMenu,{fakeIsPlaying$:$i}=Fn();F(i,$i,Y=>t(143,w=Y));let li,qi,en,tn,Ii;pi.set(zf());let Ui,$e,ci=De(!1);F(i,ci,Y=>t(50,S=Y));let _i,ze=De(!1);F(i,ze,Y=>t(150,L=Y));let nn=De(),on=De(!1);F(i,on,Y=>t(146,A=Y));let fn=!1,ln=!1,Ki,dn,hi,Sn,Qt,ji,se=!1,ht,ei=!1,{toggle:rn}=$i,Ei=!1,Mi=null,ri;Pt==null||Pt.setContext(Pl());let Bn=()=>{ue&&!jt&&Yt(Re.controls.hideTimeout)};ye.setUiCallbacks({onStarted:Bn});let In=()=>{window.clearTimeout(en),ze.set(!1)},En=()=>{window.clearTimeout(tn),nn.set(null)},Yt=Y=>{In(),ze.set(!0),en=window.setTimeout(()=>ze.set(!1),Y);let Ct=Y-100;_i=window.setTimeout(()=>{S&&ci.set(!1)},Ct>0?Ct:Y)},Zn=(Y,Ct)=>{En(),nn.set(Ct),tn=window.setTimeout(()=>nn.set(null),Y)},Xn=Hi.subscribe(Y=>{Si.set(Y),Y&&(window.clearTimeout(Ii),Ii=window.setTimeout(()=>Si.set(!1),Re.controls.hide360IconTimeout))}),Dn=()=>ut(this,null,function*(){var Ct,mn,V,le;let Y=_o();if(Y){let Se=Vl(),He=Mn();Y=Se===He||Se===Lt}if(Y){Yt(Re.controls.hideTimeoutFullscreen);try{yield Pt==null?void 0:Pt.remove()}catch(Se){ni({message:String(Se)})}}yi.set(Y),ye.getAdmanWrapper().setFullscreen(Y),b?(mn=(Ct=ye.callbacks)==null?void 0:Ct.onFullscreenEnter)==null||mn.call(Ct):(le=(V=ye.callbacks)==null?void 0:V.onFullscreenExit)==null||le.call(V)}),zn=Y=>{let Ct=Y;Fi.set({width:Ct.target.width,height:Ct.target.height})};Ft(()=>{var Ct;return pr(Dn),Fo(Pt)&&(Pt==null||Pt.assignPlayerContainer(li),Pt==null||Pt.registryExternalEventHandlers({resize:zn})),Z&&((Ct=Ce.parentElement)==null||Ct.insertBefore(Z,Ce.nextSibling)),()=>{window.clearTimeout(en),window.clearTimeout(_i),window.clearTimeout(tn),window.clearTimeout(Ii),Xn(),Pt==null||Pt.dispose(),_r(Dn)}});let Mn=()=>{let Y=Tt!=null?Tt:li,Ct=Y.getRootNode(),mn=Ct instanceof ShadowRoot?Ct.host:Ct,V=Ue instanceof HTMLElement&&Ue.contains(mn);return Re.allowChangingFullscreenTarget&&Ue&&V?Ue:Y},qn=()=>ut(this,null,function*(){_o()?(yield mr(document),ni({message:"exit fullscreen"})):(ni({message:"request fullscreen"}),yield dr(Mn()))}),Tn=()=>{oi(),Mt.set(!1)},Nn=Y=>{Mt.set(!0),xi.set({left:Y.clientX,top:Y.clientY})};function Un(){on.set(!0),jt||Yt(Re.controls.hideTimeoutCursor)}function ne(){jt||(ci.set(!0),Yt(Re.controls.hideTimeoutCursor))}function It(){on.set(!1),t(132,ln=!1),t(131,fn=!1),Ei=!1,ye.actions.internal.releaseCamera()}function Vn(Y){if(y&&bn){let Ct=Y.currentTarget,mn=gc(Ct),V=kp(Ct),le=Y.pageX-V,Se=Y.pageY-mn,{left:He,bottom:at,right:St}=y,qt=St-He;return le>=He-qt&&Se<=at+qt}}function vn(Y){if(li){let Ct=gc(Y.currentTarget),mn=h.height,V=Y.pageY-Ct;if(Vn(Y)){t(132,ln=!1);return}V<40?t(132,ln=!0):V>mn-40?t(131,fn=!0):(t(132,ln=!1),s||t(131,fn=!1))}}function Kn(Y){vn(Y),dn||Yt(Re.controls.hideTimeoutCursor),m&&Ei&&Mi&&ye.actions.internal.moveCameraFocusPX(Mi.clientX-Y.clientX,Mi.clientY-Y.clientY,Y.timeStamp-Mi.timeStamp),Mi=Y}let sn=Y=>{Y.button===0&&(Ei=!0,ye.actions.internal.holdCamera()),Yt(Re.controls.hideTimeoutCursor)},io=Y=>{Y.button===0&&(Mi=Y,Ei=!1,ye.actions.internal.releaseCamera()),Yt(Re.controls.hideTimeoutCursor)},ao=()=>{wp&&(ni({message:"double click on video"}),qn(),Yt(Re.controls.hideTimeoutCursor))},yn=()=>{if(n||s){Tn();return}if(!(f&&!Ji)){if(ei)return rn();if(ri==null||ri.focus(),!me){Yi(),Yt(Re.controls.hideTimeoutCursor);return}ye.actions.internal.togglePlay(),Yt(Re.controls.hideTimeoutCursor)}},ie=Y=>{Tn(),zi.set(!0),Yt(Re.controls.hideTimeout),Y&&Zn(Re.controls.hideHotKeyHelpers,Y)},uo=()=>{var Y,Ct;Tn(),(Y=ye.callbacks)!=null&&Y.onOpenHotKeyMap?(Ct=ye.callbacks)==null||Ct.onOpenHotKeyMap(u):un.update(mn=>!mn)},Co=()=>{if(n||s){Tn();return}},Wo=()=>{zi.set(!0)},So=ye.ui.contextMenu.openedByBtnKeyboard$;F(i,So,Y=>t(139,a=Y));let co=ye.ui.contextMenu.btnRef$;F(i,co,Y=>t(138,l=Y));let no,fo=ye.ui.contextMenu.openedByHotKey$;F(i,fo,Y=>t(137,r=Y));let Go=ye.ui.contextMenu.lastActiveElem$;F(i,Go,Y=>t(136,o=Y));function Qo(Y){_e[Y?"unshift":"push"](()=>{Ce=Y,t(0,Ce)})}let Jn=()=>ri==null?void 0:ri.focus();function Yo(Y){qi=Y,t(41,qi)}let To=()=>ri==null?void 0:ri.focus();function Po(Y){no=Y,t(32,no)}function Zo(Y){_e[Y?"unshift":"push"](()=>{ri=Y,t(48,ri)})}function kt(Y){_e[Y?"unshift":"push"](()=>{$e=Y,t(30,$e)})}function Io(Y){_e[Y?"unshift":"push"](()=>{li=Y,t(40,li)})}return i.$$set=Y=>{"store"in Y&&t(125,ye=Y.store),"uiConfig"in Y&&t(1,Re=Y.uiConfig),"title"in Y&&t(2,je=Y.title),"thumbUrl"in Y&&t(3,Xe=Y.thumbUrl),"videoContainer"in Y&&t(0,Ce=Y.videoContainer),"interactiveContainer"in Y&&t(126,Z=Y.interactiveContainer),"live"in Y&&t(4,Pe=Y.live),"autoplay"in Y&&t(5,ue=Y.autoplay),"canRewindLive"in Y&&t(6,Ie=Y.canRewindLive),"showAds"in Y&&t(7,Ye=Y.showAds),"adsSlotId"in Y&&t(8,ft=Y.adsSlotId),"adsParams"in Y&&t(9,mt=Y.adsParams),"adsPreviewParam"in Y&&t(10,dt=Y.adsPreviewParam),"duration"in Y&&t(11,bt=Y.duration),"logoClickable"in Y&&t(12,wt=Y.logoClickable),"logoHidden"in Y&&t(13,we=Y.logoHidden),"logoTargetUrl"in Y&&t(14,vt=Y.logoTargetUrl),"showNextPrevButtons"in Y&&t(15,Nt=Y.showNextPrevButtons),"nextButtonActive"in Y&&t(16,Et=Y.nextButtonActive),"prevButtonActive"in Y&&t(17,qe=Y.prevButtonActive),"endScreenVideoTitle"in Y&&t(18,Kt=Y.endScreenVideoTitle),"endScreenVideoThumb"in Y&&t(19,zt=Y.endScreenVideoThumb),"isOneVideoPlaylist"in Y&&t(20,Zt=Y.isOneVideoPlaylist),"supportLink"in Y&&t(21,ti=Y.supportLink),"shadowRootContainer"in Y&&t(127,Lt=Y.shadowRootContainer),"outerContainerRef"in Y&&t(128,Tt=Y.outerContainerRef),"playerStarted"in Y&&t(22,me=Y.playerStarted),"fullScreenTarget"in Y&&t(129,Ue=Y.fullScreenTarget),"showMiniTimer"in Y&&t(130,Qe=Y.showMiniTimer),"playNextVideo"in Y&&t(23,tt=Y.playNextVideo),"playPrevVideo"in Y&&t(24,_t=Y.playPrevVideo),"repeatPlaylist"in Y&&t(25,ii=Y.repeatPlaylist),"seekToInteractive"in Y&&t(26,Li=Y.seekToInteractive),"toggleGraph"in Y&&t(27,Gt=Y.toggleGraph),"playPrevChapter"in Y&&t(28,Ri=Y.playPrevChapter),"firstStart"in Y&&t(29,Yi=Y.firstStart)},i.$$.update=()=>{if(i.$$.dirty[1]&192|i.$$.dirty[4]&1610612736)e:t(42,Ui=(ae==="video"&&te||ae==="ads"&&E==="inactive")&&!q);if(i.$$.dirty[0]&1073741824)e:gn.set($e);if(i.$$.dirty[4]&268435456)e:t(133,Ki=J!==yp.PlaybackState.PLAYING);if(i.$$.dirty[4]&136381312)e:t(134,dn=g&&!s&&!(fn||ln)&&!(Ki&&!G));if(i.$$.dirty[1]&448|i.$$.dirty[4]&68224512)e:Bi.set((Ki||s||v||x||L)&&!dn&&(ae==="video"||ae==="ads")&&!q);if(i.$$.dirty[0]&2|i.$$.dirty[1]&224|i.$$.dirty[4]&33554496)e:t(43,hi=Re.features.thumbTimer&&Qe&&ae==="video"&&!I&&!q&&!jt&&(Re.hideThumbTimerAfterTouch&&!H||!Re.hideThumbTimerAfterTouch));if(i.$$.dirty[1]&128|i.$$.dirty[4]&17039360)e:t(44,Sn=ae==="video"&&!re&&b);if(i.$$.dirty[0]&128|i.$$.dirty[1]&64|i.$$.dirty[4]&8519680)e:t(31,Qt=(Ye&&K||!Ye)&&f&&!q);if(i.$$.dirty[1]&33|i.$$.dirty[4]&6291456)e:t(45,ji=A&&!(I||Qt)&&!g);if(i.$$.dirty[0]&2|i.$$.dirty[4]&3147776)e:!v&&se&&!g&&Yt(Re.controls.hideTimeoutCursor),t(135,se=v);if(i.$$.dirty[0]&1|i.$$.dirty[1]&24)e:t(46,ht=Ce&&T%180?h.height/h.width:1);if(i.$$.dirty[4]&524288)e:t(47,ei=w!==null);if(i.$$.dirty[1]&6|i.$$.dirty[4]&32768)e:qo(no,n,a);if(i.$$.dirty[1]&4|i.$$.dirty[4]&16384)e:{let Y=l;Y&&al(Y,n,So)}if(i.$$.dirty[1]&6|i.$$.dirty[4]&8192)e:qo(no,n,r);if(i.$$.dirty[1]&4|i.$$.dirty[4]&4096)e:{let Y=o;Y&&i1(Y,n,fo)}},[Ce,Re,je,Xe,Pe,ue,Ie,Ye,ft,mt,dt,bt,wt,we,vt,Nt,Et,qe,Kt,zt,Zt,ti,me,tt,_t,ii,Li,Gt,Ri,Yi,$e,Qt,no,n,h,T,I,q,ae,x,li,qi,Ui,hi,Sn,ji,ht,ei,ri,m,S,M,ee,ke,Ge,Ke,Je,We,ve,X,be,Ne,xe,et,vi,_n,fi,Zi,di,Xi,yi,Bi,wi,Di,Mt,Rt,Ni,ki,xt,si,Ci,mi,gt,Oi,ai,hn,Cn,ui,Fi,Hi,Si,Ti,jt,$t,Pi,zi,pi,un,cn,xi,$i,ci,ze,nn,on,rn,qn,Tn,Nn,Un,ne,It,Kn,sn,io,ao,yn,ie,uo,Co,Wo,So,co,fo,Go,ye,Z,Lt,Tt,Ue,Qe,fn,ln,Ki,dn,se,o,r,l,a,s,f,b,w,v,g,A,K,re,H,L,G,J,E,te,Qo,Jn,Yo,To,Po,Zo,kt,Io]}var bc=class extends j{constructor(e){super(),W(this,e,t6,e6,U,{store:125,uiConfig:1,title:2,thumbUrl:3,videoContainer:0,interactiveContainer:126,live:4,autoplay:5,canRewindLive:6,showAds:7,adsSlotId:8,adsParams:9,adsPreviewParam:10,duration:11,logoClickable:12,logoHidden:13,logoTargetUrl:14,showNextPrevButtons:15,nextButtonActive:16,prevButtonActive:17,endScreenVideoTitle:18,endScreenVideoThumb:19,isOneVideoPlaylist:20,supportLink:21,shadowRootContainer:127,outerContainerRef:128,playerStarted:22,fullScreenTarget:129,showMiniTimer:130,playNextVideo:23,playPrevVideo:24,repeatPlaylist:25,seekToInteractive:26,toggleGraph:27,playPrevChapter:28,firstStart:29},x5,[-1,-1,-1,-1,-1,-1,-1])}},Cp=bc;var Up=require("@vkontakte/videoplayer-core"),jo=require("@vkontakte/videoplayer-shared");var gl=require("@vkontakte/videoplayer-shared"),Sp=i=>{if(!(0,gl.isIOS)(!0))return!1;let e=i.device===gl.CurrentClientDevice.iPad||(window==null?void 0:window.screen.width)>700,t=(0,gl.getIOSVersion)();return!e||e&&!!t&&t<16};function i6(i){Te(i,"svelte-nhq2ld",".double-click-area.svelte-nhq2ld{position:absolute;top:0;height:100%;width:25%;overflow:hidden}.double-click-area.left.svelte-nhq2ld{left:0}.double-click-area.right.svelte-nhq2ld{right:0}.semicircle.svelte-nhq2ld{position:absolute;top:0;width:100%;height:100%;background-color:rgba(0, 0, 0, 0.5)}.semicircle.left.svelte-nhq2ld{left:0;border-top-right-radius:50%;border-bottom-right-radius:50%}.semicircle.right.svelte-nhq2ld{right:0;border-top-left-radius:50%;border-bottom-left-radius:50%}.info.svelte-nhq2ld{position:absolute;top:50%;left:50%;transform:translate(-50%, -50%);display:flex;flex-direction:column;align-items:center;justify-content:center}.triangles-wrapper.svelte-nhq2ld{position:relative;display:flex;margin-bottom:10px;justify-content:center}.triangle.svelte-nhq2ld{width:0;height:0;border-top:6px solid transparent;border-bottom:6px solid transparent;animation:svelte-nhq2ld-blink 500ms infinite;opacity:0}.triangle.right.svelte-nhq2ld:nth-child(1),.triangle.left.svelte-nhq2ld:nth-child(3){animation-delay:0ms}.triangle.right.svelte-nhq2ld:nth-child(2),.triangle.left.svelte-nhq2ld:nth-child(2){animation-delay:100ms}.triangle.right.svelte-nhq2ld:nth-child(3),.triangle.left.svelte-nhq2ld:nth-child(1){animation-delay:200ms}@keyframes svelte-nhq2ld-blink{0%{opacity:0}50%{opacity:1}100%{opacity:0}}.triangle.left.svelte-nhq2ld{border-right:8px solid var(--white)}.triangle.right.svelte-nhq2ld{border-left:8px solid var(--white)}.triangle.svelte-nhq2ld:not(:last-child){margin-right:5px}.step-caption.svelte-nhq2ld{margin:0;text-align:center;font-size:12px;line-height:1;color:var(--white)}")}function Tp(i){let e,t,n,o,r,l,a,s,u,f,m,h,y,b,S,w=Q("doubletap_seek_step",{seconds:i[1].toFixed(0)})+"",T;return{c(){e=P("div"),n=O(),o=P("div"),r=P("div"),l=P("div"),s=O(),u=P("div"),m=O(),h=P("div"),b=O(),S=P("p"),T=Be(w),c(e,"class",t="semicircle "+i[0]+" svelte-nhq2ld"),c(l,"class",a="triangle "+i[0]+" svelte-nhq2ld"),c(u,"class",f="triangle "+i[0]+" svelte-nhq2ld"),c(h,"class",y="triangle "+i[0]+" svelte-nhq2ld"),c(r,"class","triangles-wrapper svelte-nhq2ld"),c(S,"class","step-caption svelte-nhq2ld"),c(o,"class","info svelte-nhq2ld")},m(v,g){C(v,e,g),C(v,n,g),C(v,o,g),p(o,r),p(r,l),p(r,s),p(r,u),p(r,m),p(r,h),p(o,b),p(o,S),p(S,T)},p(v,g){g&1&&t!==(t="semicircle "+v[0]+" svelte-nhq2ld")&&c(e,"class",t),g&1&&a!==(a="triangle "+v[0]+" svelte-nhq2ld")&&c(l,"class",a),g&1&&f!==(f="triangle "+v[0]+" svelte-nhq2ld")&&c(u,"class",f),g&1&&y!==(y="triangle "+v[0]+" svelte-nhq2ld")&&c(h,"class",y),g&2&&w!==(w=Q("doubletap_seek_step",{seconds:v[1].toFixed(0)})+"")&&Ze(T,w)},d(v){v&&(k(e),k(n),k(o))}}}function n6(i){let e,t,n,o,r=i[2]&&Tp(i);return{c(){e=P("div"),r&&r.c(),c(e,"class",t="double-click-area "+i[0]+" svelte-nhq2ld")},m(l,a){C(l,e,a),r&&r.m(e,null),n||(o=de(e,"click",ct(i[3]())),n=!0)},p(l,[a]){l[2]?r?r.p(l,a):(r=Tp(l),r.c(),r.m(e,null)):r&&(r.d(1),r=null),a&1&&t!==(t="double-click-area "+l[0]+" svelte-nhq2ld")&&c(e,"class",t)},i:pe,o:pe,d(l){l&&k(e),r&&r.d(),n=!1,o()}}}function o6(i,e,t){let{side:n}=e,{seekStep:o}=e,{handleSingleFirstClick:r}=e,{handleSecondClick:l}=e,a=!1,s=0,u=0,f=()=>{let h=0;return()=>{h+=1,h===1?s=window.setTimeout(()=>{r(),h=0},300):(window.clearTimeout(s),h=0,l(),t(2,a=!0),u=window.setTimeout(()=>{t(2,a=!1)},500))}};return Wn(()=>{window.clearTimeout(s),window.clearTimeout(u)}),i.$$set=m=>{"side"in m&&t(0,n=m.side),"seekStep"in m&&t(1,o=m.seekStep),"handleSingleFirstClick"in m&&t(4,r=m.handleSingleFirstClick),"handleSecondClick"in m&&t(5,l=m.handleSecondClick)},[n,o,a,f,r,l]}var vc=class extends j{constructor(e){super(),W(this,e,o6,n6,U,{side:0,seekStep:1,handleSingleFirstClick:4,handleSecondClick:5},i6)}},yc=vc;function l6(i,e,t){let{playNextVideo:n}=e;return Ft(()=>{n()}),i.$$set=o=>{"playNextVideo"in o&&t(0,n=o.playNextVideo)},[n]}var wc=class extends j{constructor(e){super(),W(this,e,l6,null,U,{playNextVideo:0})}},Pp=wc;var{window:r6}=Mo;function s6(i){Te(i,"svelte-1jy89ut",".player-wrapper.svelte-1jy89ut{position:absolute;width:100%;height:100%}.player-wrapper.svelte-1jy89ut .player-media{position:absolute;left:0;top:0;width:100%;height:100%;background:var(--black);transition:transform 0.2s ease-in-out}.spherical-video-icon.svelte-1jy89ut{display:inline-block;position:absolute;top:calc(50% - 23px);left:calc(50% - 38px)}.video-wrapper.svelte-1jy89ut,.video-container.svelte-1jy89ut,.ads-container.svelte-1jy89ut{position:absolute;width:100%;height:100%;left:0;top:0}.video-wrapper.svelte-1jy89ut{z-index:var(--video-container-z-index);background:var(--black)}.video-container.svelte-1jy89ut{z-index:var(--video-container-z-index);transition:var(--rotate-transition-duration) ease all}.video-container.fast-rotate.svelte-1jy89ut{transition:none}.ads-container.svelte-1jy89ut{background:var(--black)}")}function Ip(i){let e,t,n,o;e=new yc({props:{side:"left",seekStep:i[1].controls.seekStepMobile/1e3,handleSingleFirstClick:i[100],handleSecondClick:i[131]}});let r=!i[48]&&Ep(i);return{c(){D(e.$$.fragment),t=O(),r&&r.c(),n=st()},m(l,a){R(e,l,a),C(l,t,a),r&&r.m(l,a),C(l,n,a),o=!0},p(l,a){let s={};a[0]&2&&(s.seekStep=l[1].controls.seekStepMobile/1e3),e.$set(s),l[48]?r&&(ce(),_(r,1,1,()=>{r=null}),fe()):r?(r.p(l,a),a[1]&131072&&d(r,1)):(r=Ep(l),r.c(),d(r,1),r.m(n.parentNode,n))},i(l){o||(d(e.$$.fragment,l),d(r),o=!0)},o(l){_(e.$$.fragment,l),_(r),o=!1},d(l){l&&(k(t),k(n)),B(e,l),r&&r.d(l)}}}function Ep(i){let e,t;return e=new yc({props:{side:"right",seekStep:i[1].controls.seekStepMobile/1e3,handleSingleFirstClick:i[100],handleSecondClick:i[132]}}),{c(){D(e.$$.fragment)},m(n,o){R(e,n,o),t=!0},p(n,o){let r={};o[0]&2&&(r.seekStep=n[1].controls.seekStepMobile/1e3),e.$set(r)},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){_(e.$$.fragment,n),t=!1},d(n){B(e,n)}}}function Mp(i){var n;let e,t;return e=new ds({props:{thumbUrl:i[2],startTime:(n=i[3])==null?void 0:n.startTime}}),{c(){D(e.$$.fragment)},m(o,r){R(e,o,r),t=!0},p(o,r){var a;let l={};r[0]&4&&(l.thumbUrl=o[2]),r[0]&8&&(l.startTime=(a=o[3])==null?void 0:a.startTime),e.$set(l)},i(o){t||(d(e.$$.fragment,o),t=!0)},o(o){_(e.$$.fragment,o),t=!1},d(o){B(e,o)}}}function Vp(i){let e,t;return e=new ms({}),{c(){D(e.$$.fragment)},m(n,o){R(e,n,o),t=!0},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){_(e.$$.fragment,n),t=!1},d(n){B(e,n)}}}function Ap(i){let e,t,n;return t=new hr({props:{adsSlotId:i[7],adsParams:i[8],adsPreviewParam:i[9],duration:i[10]}}),{c(){e=P("div"),D(t.$$.fragment),c(e,"class","ads-container svelte-1jy89ut"),z(e,"hidden",i[34]!=="ads")},m(o,r){C(o,e,r),R(t,e,null),n=!0},p(o,r){let l={};r[0]&128&&(l.adsSlotId=o[7]),r[0]&256&&(l.adsParams=o[8]),r[0]&512&&(l.adsPreviewParam=o[9]),r[0]&1024&&(l.duration=o[10]),t.$set(l),(!n||r[1]&8)&&z(e,"hidden",o[34]!=="ads")},i(o){n||(d(t.$$.fragment,o),n=!0)},o(o){_(t.$$.fragment,o),n=!1},d(o){o&&k(e),B(t)}}}function Lp(i){let e,t;return e=new Pp({props:{playNextVideo:i[22]}}),{c(){D(e.$$.fragment)},m(n,o){R(e,n,o),t=!0},p(n,o){let r={};o[0]&4194304&&(r.playNextVideo=n[22]),e.$set(r)},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){_(e.$$.fragment,n),t=!1},d(n){B(e,n)}}}function Rp(i){let e,t;return e=new ss({}),{c(){D(e.$$.fragment)},m(n,o){R(e,n,o),t=!0},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){_(e.$$.fragment,n),t=!1},d(n){B(e,n)}}}function Bp(i){let e,t,n;return t=new sr({props:{"aria-label":Q("video360")}}),{c(){e=P("div"),D(t.$$.fragment),c(e,"class","spherical-video-icon svelte-1jy89ut")},m(o,r){C(o,e,r),R(t,e,null),n=!0},p:pe,i(o){n||(d(t.$$.fragment,o),n=!0)},o(o){_(t.$$.fragment,o),n=!1},d(o){o&&k(e),B(t)}}}function Dp(i){let e,t;return e=new us({props:{thumbUrl:i[2],chromecastDeviceName:i[51]}}),{c(){D(e.$$.fragment)},m(n,o){R(e,n,o),t=!0},p(n,o){let r={};o[0]&4&&(r.thumbUrl=n[2]),o[1]&1048576&&(r.chromecastDeviceName=n[51]),e.$set(r)},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){_(e.$$.fragment,n),t=!1},d(n){B(e,n)}}}function Np(i){let e,t;return e=new as({props:{shifted:i[30],captions:i[53],position:i[44],playerSize:i[31],isMobile:!0}}),{c(){D(e.$$.fragment)},m(n,o){R(e,n,o),t=!0},p(n,o){let r={};o[0]&1073741824&&(r.shifted=n[30]),o[1]&4194304&&(r.captions=n[53]),o[1]&8192&&(r.position=n[44]),o[1]&1&&(r.playerSize=n[31]),e.$set(r)},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){_(e.$$.fragment,n),t=!1},d(n){B(e,n)}}}function Op(i){let e,t,n,o,r;return t=new cs({}),{c(){e=P("div"),D(t.$$.fragment)},m(l,a){C(l,e,a),R(t,e,null),n=!0,o||(r=de(e,"click",ct(i[101])),o=!0)},p:pe,i(l){n||(d(t.$$.fragment,l),n=!0)},o(l){_(t.$$.fragment,l),n=!1},d(l){l&&k(e),B(t),o=!1,r()}}}function Fp(i){let e,t,n;function o(l){i[133](l)}let r={bottomHidden:i[34]==="thumb"||i[34]==="waitingLive"||i[34]==="waitingRecord"||i[34]==="ads",showControls:i[30],bottomNoSmooth:i[45],isAds:i[34]==="ads",canRewindLive:i[5]&&i[54]!==0,logoClickable:i[11],logoHidden:i[12],logoTargetUrl:i[13],showNextPrevButtons:i[14],nextButtonActive:i[15],prevButtonActive:i[16],isOneVideoPlaylist:i[19],supportLink:i[20],customFullscreenSupported:i[39],playNextVideo:i[22],playPrevVideo:i[23],repeatPlaylist:i[24],toggleFullscreen:i[98],seekToInteractive:i[25],toggleGraph:i[26],playPrevChapter:i[27],onDisabledPlayPrevChapterClick:i[104],onDisabledSeekToInteractiveClick:i[105]};return i[37]!==void 0&&(r.controlsElementRef=i[37]),e=new rs({props:r}),_e.push(()=>Fe(e,"controlsElementRef",o)),{c(){D(e.$$.fragment)},m(l,a){R(e,l,a),n=!0},p(l,a){let s={};a[1]&8&&(s.bottomHidden=l[34]==="thumb"||l[34]==="waitingLive"||l[34]==="waitingRecord"||l[34]==="ads"),a[0]&1073741824&&(s.showControls=l[30]),a[1]&16384&&(s.bottomNoSmooth=l[45]),a[1]&8&&(s.isAds=l[34]==="ads"),a[0]&32|a[1]&8388608&&(s.canRewindLive=l[5]&&l[54]!==0),a[0]&2048&&(s.logoClickable=l[11]),a[0]&4096&&(s.logoHidden=l[12]),a[0]&8192&&(s.logoTargetUrl=l[13]),a[0]&16384&&(s.showNextPrevButtons=l[14]),a[0]&32768&&(s.nextButtonActive=l[15]),a[0]&65536&&(s.prevButtonActive=l[16]),a[0]&524288&&(s.isOneVideoPlaylist=l[19]),a[0]&1048576&&(s.supportLink=l[20]),a[1]&256&&(s.customFullscreenSupported=l[39]),a[0]&4194304&&(s.playNextVideo=l[22]),a[0]&8388608&&(s.playPrevVideo=l[23]),a[0]&16777216&&(s.repeatPlaylist=l[24]),a[0]&33554432&&(s.seekToInteractive=l[25]),a[0]&67108864&&(s.toggleGraph=l[26]),a[0]&134217728&&(s.playPrevChapter=l[27]),!t&&a[1]&64&&(t=!0,s.controlsElementRef=l[37],Oe(()=>t=!1)),e.$set(s)},i(l){n||(d(e.$$.fragment,l),n=!0)},o(l){_(e.$$.fragment,l),n=!1},d(l){B(e,l)}}}function Hp(i){let e,t;return e=new Tr({}),{c(){D(e.$$.fragment)},m(n,o){R(e,n,o),t=!0},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){_(e.$$.fragment,n),t=!1},d(n){B(e,n)}}}function zp(i){let e,t;return e=new kr({}),{c(){D(e.$$.fragment)},m(n,o){R(e,n,o),t=!0},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){_(e.$$.fragment,n),t=!1},d(n){B(e,n)}}}function qp(i){let e,t,n=i[5]&&i[78]&&!i[47].has("TIMELINE"),o,r,l,a,s,u,f,m,h,y,b,S,w,T,v,g;e=new fs({props:{hidden:i[34]!=="thumb"||i[33]||i[89]&&i[4],thumbUrl:i[2],startVideo:i[28]}});let I=n&&Ip(i),A=i[34]==="waitingLive"&&Mp(i),q=i[34]==="waitingRecord"&&Vp(i),K=i[6]&&i[21]&&Ap(i),re=i[41]&&i[17]&&i[18]&&Lp(i),ae=i[49]&&Rp(i),H=i[50]&&Bp(i),L=i[35]&&Dp(i),x=i[52].value!=="off"&&Np(i),G=i[33]&&Op(i),J=i[21]&&Fp(i);S=new br({props:{isLive:i[55],isHidden:!i[40],isPlaying:i[56],position:i[44],duration:i[43]}});let E=i[38]&&Hp(i),te=i[57]&&zp(i);return{c(){D(e.$$.fragment),t=O(),I&&I.c(),o=O(),A&&A.c(),r=O(),q&&q.c(),l=O(),K&&K.c(),a=O(),re&&re.c(),s=O(),ae&&ae.c(),u=O(),H&&H.c(),f=O(),L&&L.c(),m=O(),x&&x.c(),h=O(),G&&G.c(),y=O(),J&&J.c(),b=O(),D(S.$$.fragment),w=O(),E&&E.c(),T=O(),te&&te.c(),v=st()},m(M,ee){R(e,M,ee),C(M,t,ee),I&&I.m(M,ee),C(M,o,ee),A&&A.m(M,ee),C(M,r,ee),q&&q.m(M,ee),C(M,l,ee),K&&K.m(M,ee),C(M,a,ee),re&&re.m(M,ee),C(M,s,ee),ae&&ae.m(M,ee),C(M,u,ee),H&&H.m(M,ee),C(M,f,ee),L&&L.m(M,ee),C(M,m,ee),x&&x.m(M,ee),C(M,h,ee),G&&G.m(M,ee),C(M,y,ee),J&&J.m(M,ee),C(M,b,ee),R(S,M,ee),C(M,w,ee),E&&E.m(M,ee),C(M,T,ee),te&&te.m(M,ee),C(M,v,ee),g=!0},p(M,ee){let ke={};ee[0]&16|ee[1]&12&&(ke.hidden=M[34]!=="thumb"||M[33]||M[89]&&M[4]),ee[0]&4&&(ke.thumbUrl=M[2]),ee[0]&268435456&&(ke.startVideo=M[28]),e.$set(ke),ee[0]&32|ee[1]&65536&&(n=M[5]&&M[78]&&!M[47].has("TIMELINE")),n?I?(I.p(M,ee),ee[0]&32|ee[1]&65536&&d(I,1)):(I=Ip(M),I.c(),d(I,1),I.m(o.parentNode,o)):I&&(ce(),_(I,1,1,()=>{I=null}),fe()),M[34]==="waitingLive"?A?(A.p(M,ee),ee[1]&8&&d(A,1)):(A=Mp(M),A.c(),d(A,1),A.m(r.parentNode,r)):A&&(ce(),_(A,1,1,()=>{A=null}),fe()),M[34]==="waitingRecord"?q?ee[1]&8&&d(q,1):(q=Vp(M),q.c(),d(q,1),q.m(l.parentNode,l)):q&&(ce(),_(q,1,1,()=>{q=null}),fe()),M[6]&&M[21]?K?(K.p(M,ee),ee[0]&2097216&&d(K,1)):(K=Ap(M),K.c(),d(K,1),K.m(a.parentNode,a)):K&&(ce(),_(K,1,1,()=>{K=null}),fe()),M[41]&&M[17]&&M[18]?re?(re.p(M,ee),ee[0]&393216|ee[1]&1024&&d(re,1)):(re=Lp(M),re.c(),d(re,1),re.m(s.parentNode,s)):re&&(ce(),_(re,1,1,()=>{re=null}),fe()),M[49]?ae?ee[1]&262144&&d(ae,1):(ae=Rp(M),ae.c(),d(ae,1),ae.m(u.parentNode,u)):ae&&(ce(),_(ae,1,1,()=>{ae=null}),fe()),M[50]?H?(H.p(M,ee),ee[1]&524288&&d(H,1)):(H=Bp(M),H.c(),d(H,1),H.m(f.parentNode,f)):H&&(ce(),_(H,1,1,()=>{H=null}),fe()),M[35]?L?(L.p(M,ee),ee[1]&16&&d(L,1)):(L=Dp(M),L.c(),d(L,1),L.m(m.parentNode,m)):L&&(ce(),_(L,1,1,()=>{L=null}),fe()),M[52].value!=="off"?x?(x.p(M,ee),ee[1]&2097152&&d(x,1)):(x=Np(M),x.c(),d(x,1),x.m(h.parentNode,h)):x&&(ce(),_(x,1,1,()=>{x=null}),fe()),M[33]?G?(G.p(M,ee),ee[1]&4&&d(G,1)):(G=Op(M),G.c(),d(G,1),G.m(y.parentNode,y)):G&&(ce(),_(G,1,1,()=>{G=null}),fe()),M[21]?J?(J.p(M,ee),ee[0]&2097152&&d(J,1)):(J=Fp(M),J.c(),d(J,1),J.m(b.parentNode,b)):J&&(ce(),_(J,1,1,()=>{J=null}),fe());let Ge={};ee[1]&16777216&&(Ge.isLive=M[55]),ee[1]&512&&(Ge.isHidden=!M[40]),ee[1]&33554432&&(Ge.isPlaying=M[56]),ee[1]&8192&&(Ge.position=M[44]),ee[1]&4096&&(Ge.duration=M[43]),S.$set(Ge),M[38]?E?ee[1]&128&&d(E,1):(E=Hp(M),E.c(),d(E,1),E.m(T.parentNode,T)):E&&(ce(),_(E,1,1,()=>{E=null}),fe()),M[57]?te?ee[1]&67108864&&d(te,1):(te=zp(M),te.c(),d(te,1),te.m(v.parentNode,v)):te&&(ce(),_(te,1,1,()=>{te=null}),fe())},i(M){g||(d(e.$$.fragment,M),d(I),d(A),d(q),d(K),d(re),d(ae),d(H),d(L),d(x),d(G),d(J),d(S.$$.fragment,M),d(E),d(te),g=!0)},o(M){_(e.$$.fragment,M),_(I),_(A),_(q),_(K),_(re),_(ae),_(H),_(L),_(x),_(G),_(J),_(S.$$.fragment,M),_(E),_(te),g=!1},d(M){M&&(k(t),k(o),k(r),k(l),k(a),k(s),k(u),k(f),k(m),k(h),k(y),k(b),k(w),k(T),k(v)),B(e,M),I&&I.d(M),A&&A.d(M),q&&q.d(M),K&&K.d(M),re&&re.d(M),ae&&ae.d(M),H&&H.d(M),L&&L.d(M),x&&x.d(M),G&&G.d(M),J&&J.d(M),B(S,M),E&&E.d(M),te&&te.d(M)}}}function a6(i){let e,t,n,o,r,l=i[46],a,s,u,f,m,h,y=qp(i);return{c(){e=P("div"),t=P("div"),n=P("div"),r=O(),y.c(),a=O(),s=P("div"),c(n,"class","video-container svelte-1jy89ut"),c(n,"style",o=`transform: rotate(${i[32]}deg) scale(${i[42]})`),z(n,"fast-rotate",!i[1].isSmoothVideoRotate),c(t,"class","video-wrapper svelte-1jy89ut"),z(t,"hidden",i[34]!=="video"),c(s,"class","overlay-container"),c(e,"class","player-wrapper svelte-1jy89ut"),c(e,"role","region"),c(e,"aria-label",u=Q("aria_label_video_player")),c(e,"tabindex","-1")},m(b,S){C(b,e,S),p(e,t),p(t,n),i[130](n),p(e,r),y.m(e,null),p(e,a),p(e,s),i[134](s),i[135](e),f=!0,m||(h=[de(r6,"blur",i[99]),de(t,"click",Ot(i[100])),de(e,"click",i[102],!0),de(e,"focusin",i[103],!0)],m=!0)},p(b,S){(!f||S[1]&2050&&o!==(o=`transform: rotate(${b[32]}deg) scale(${b[42]})`))&&c(n,"style",o),(!f||S[0]&2)&&z(n,"fast-rotate",!b[1].isSmoothVideoRotate),(!f||S[1]&8)&&z(t,"hidden",b[34]!=="video"),S[1]&32768&&U(l,l=b[46])?(ce(),_(y,1,1,pe),fe(),y=qp(b),y.c(),d(y,1),y.m(e,a)):y.p(b,S)},i(b){f||(d(y),f=!0)},o(b){_(y),f=!1},d(b){b&&k(e),i[130](null),y.d(b),i[134](null),i[135](null),m=!1,lt(h)}}}function u6(i,e,t){var Nn,Un;let n,o,r,l,a,s,u,f,m,h,y,b,S,w,T,v,g,I,A,q,K,re,ae,H,L,x,G,J,E,te,M,ee,ke,Ge,Ke,Je,We,{store:ve}=e,{uiConfig:X}=e,{thumbUrl:be}=e,{videoContainer:Ne}=e,{interactiveContainer:xe}=e,{live:et}=e,{autoplay:ye}=e,{canRewindLive:Re}=e,{showAds:je}=e,{adsSlotId:Xe=void 0}=e,{adsParams:Ce=void 0}=e,{adsPreviewParam:Z=void 0}=e,{duration:Pe=void 0}=e,{logoClickable:ue}=e,{logoHidden:Ie}=e,{logoTargetUrl:Ye=""}=e,{showNextPrevButtons:ft=!1}=e,{nextButtonActive:mt=!1}=e,{prevButtonActive:dt=!1}=e,{endScreenVideoTitle:bt=void 0}=e,{endScreenVideoThumb:wt=void 0}=e,{isOneVideoPlaylist:we=!1}=e,{supportLink:vt}=e,{shadowRootContainer:Nt=void 0}=e,{outerContainerRef:Et=void 0}=e,{showMiniTimer:qe=!1}=e,{fullScreenTarget:Kt=void 0}=e,{playerStarted:zt=!1}=e,{playNextVideo:Zt=jo.noop}=e,{playPrevVideo:ti=jo.noop}=e,{repeatPlaylist:Lt=jo.noop}=e,{seekToInteractive:Tt}=e,{toggleGraph:me}=e,{playPrevChapter:Ue}=e,{firstStart:Qe}=e,{seekTime:tt}=e,_t=ve.getLogger().createComponentLog("Root component"),ii=ve.interfaceLanguage$;F(i,ii,ne=>t(46,x=ne));let Li=ve.state.playbackState$;F(i,Li,ne=>t(127,ae=ne));let Gt=ve.ads.playbackState;F(i,Gt,ne=>t(128,H=ne));let Ri=ve.state.positionWithScrubbing$;F(i,Ri,ne=>t(44,a=ne));let Yi=ve.state.duration$;F(i,Yi,ne=>t(43,l=ne));let ni=ve.playerPhase;F(i,ni,ne=>t(34,A=ne));let vi=ve.ui.isFullscreen;F(i,vi,ne=>t(142,u=ne));let _n=ve.ui.controlsVisible;F(i,_n,ne=>t(30,o=ne));let fi=ve.ui.interactiveHideMobileControls;F(i,fi,ne=>t(119,y=ne));let Zi=ve.ui.settingsMenuVisible;F(i,Zi,ne=>t(118,n=ne));let di=ve.ui.scrubbingInProgress;F(i,di,ne=>t(120,S=ne));let Xi=ve.ui.debugPanelVisible;F(i,Xi,ne=>t(57,We=ne));let yi=ve.state.isLoaderVisible;F(i,yi,ne=>t(129,L=ne));let Bi=ve.state.isEnded$;F(i,Bi,ne=>t(122,v=ne));let wi=ve.state.chromecastConnected$;F(i,wi,ne=>t(35,q=ne));let Di=ve.state.chromecastDeviceName$;F(i,Di,ne=>t(51,M=ne));let Mt=ve.ads.postrollPassed;F(i,Mt,ne=>t(123,g=ne));let Rt=ve.ui.mobileUnmuteButtonExpanded,Ni=ve.ui.mobileUnmuteButtonVisible,ki=ve.state.isLive$;F(i,ki,ne=>t(55,Ke=ne));let xt=ve.state.isPlaying$;F(i,xt,ne=>t(56,Je=ne));let si=ve.state.isActiveLive$;F(i,si,ne=>t(48,J=ne));let Ci=ve.state.isRewindableLive$,mi=ve.state.crashed$;F(i,mi,ne=>t(33,T=ne));let gt=ve.webApi.pictureInPictureApi,Oi=ve.state.videoSize$;F(i,Oi,ne=>t(143,m=ne));let Pt=ve.state.currentSubtitle$;F(i,Pt,ne=>t(52,ee=ne));let ai=ve.state.currentSubtitleCaptions$;F(i,ai,ne=>t(53,ke=ne));let hn=ve.state.duration$;F(i,hn,ne=>t(54,Ge=ne));let Cn=ve.state.graphIsOpened$;F(i,Cn,ne=>t(126,re=ne));let ui=ve.ui.playerSize;F(i,ui,ne=>t(31,f=ne));let Fi=ve.ui.is3DVideo;F(i,Fi,ne=>t(49,E=ne));let Hi=ve.ui.icon3DVideoVisible;F(i,Hi,ne=>t(50,te=ne));let Si=ve.ui.rotateAlpha;F(i,Si,ne=>t(32,b=ne));let Ti=ve.state.isInteractive,jt=ve.state.isInteractiveTime$;F(i,jt,ne=>t(121,w=ne));let $t=ve.state.isInteractiveExpectation$;F(i,$t,ne=>t(125,K=ne));let Pi=ve.state.hasInteractiveBranches,Ji=ve.ui.controls.disabledControls$;F(i,Ji,ne=>t(47,G=ne));let zi=ve.ui.touched;F(i,zi,ne=>t(124,I=ne));let pi=ve.ui.clientInfo$;F(i,pi,ne=>t(141,s=ne));let un=ve.ui.overlayContainer$,gn=ve.state.isFirstBytes$;F(i,gn,ne=>t(140,r=ne));let cn=ve.actions.internal.closeSettingsMenu,bn=(Nn=ve.callbacks)==null?void 0:Nn.onDisabledPlayPrevChapterClick,xi=(Un=ve.callbacks)==null?void 0:Un.onDisabledSeekToInteractiveClick,oi,$i,li,qi,en,tn,Ii,Ui=De(!1);F(i,Ui,ne=>t(45,h=ne));let $e,ci=!1,_i,ze=!1,nn,on=!0,fn,ln,Ki=!1,dn;gt==null||gt.setContext(Pl());let hi=ne=>{clearTimeout(qi),ne&&(Ni.set(!0),Rt.set(!0),qi=window.setTimeout(()=>{Rt.set(!1)},X.controls.collapseMobileUnmute),Ti||Qt(X.controls.hideTimeoutMobile))};ve.setUiCallbacks({onStarted:hi});let Sn=()=>{window.clearTimeout(li),t(113,ci=!1),y&&fi.set(!1)},Qt=ne=>{Sn(),t(113,ci=!0),li=window.setTimeout(()=>t(113,ci=!1),ne);let It=ne-100;$e=window.setTimeout(()=>{h&&Ui.set(!1)},It>0?It:ne)},ji=Fi.subscribe(ne=>{Hi.set(ne),ne&&(window.clearTimeout(en),en=window.setTimeout(()=>Hi.set(!1),X.controls.hide360IconTimeout))}),se=()=>ut(this,null,function*(){var It,Vn,vn,Kn;let ne=_o();if(ne){let sn=Vl(),io=rn();ne=sn===io||sn===Nt}if(ne){Qt(X.controls.hideTimeoutFullscreen);try{yield gt==null?void 0:gt.remove()}catch(sn){_t({message:String(sn)})}try{let sn=m!=null&&m.width&&(m!=null&&m.height)?m:f;yield Hf(sn)}catch(sn){_t({message:String(sn)})}}vi.set(ne),ve.getAdmanWrapper().setFullscreen(ne),u?(Vn=(It=ve.callbacks)==null?void 0:It.onFullscreenEnter)==null||Vn.call(It):(Kn=(vn=ve.callbacks)==null?void 0:vn.onFullscreenExit)==null||Kn.call(vn)}),ht=ne=>{let It=ne;ui.set({width:It.target.width,height:It.target.height})};Ft(()=>{var It;return pr(se),Fo(gt)&&(gt==null||gt.assignPlayerContainer(oi),gt==null||gt.registryExternalEventHandlers({resize:ht})),t(39,on=!Sp(s)),xe&&((It=Ne.parentElement)==null||It.insertBefore(xe,Ne.nextSibling)),()=>{window.clearTimeout(li),window.clearTimeout($e),window.clearTimeout(qi),window.clearTimeout(en),ji(),gt==null||gt.dispose(),_r(se)}});let ei=ne=>{let It=a+(ne==="forward"?1:-1)*X.controls.seekStepMobile/1e3;It<0?It=0:It>l&&(It=l-1),t(115,ze=!0),tt(It)},rn=()=>{let ne=(0,jo.isIOS)()||!Et?oi:Et,It=ne.getRootNode(),Vn=It instanceof ShadowRoot?It.host:It,vn=Kt instanceof HTMLElement&&Kt.contains(Vn);return X.allowChangingFullscreenTarget&&Kt&&vn?Kt:ne},Ei=()=>ut(this,null,function*(){if(_o())yield mr(document),_t({message:"exit fullscreen"});else{if(_t({message:"request fullscreen"}),(0,jo.isIOS)()&&!r)return;yield dr(rn())}}),Mi=()=>{cn()},ri=()=>{if(n){Mi();return}if(!zt){Qe(),Qt(X.controls.hideTimeoutCursor);return}t(115,ze=!1),o?Sn():Qt(X.controls.hideTimeoutMobile)},Bn=()=>{if(n){Mi();return}},In=()=>{zi.set(!0)},En=()=>{Ti||(Ui.set(!0),Qt(X.controls.hideTimeoutCursor))},Yt=ne=>{bn&&(bn(ne),Qt(X.controls.hideTimeoutMobile))},Zn=ne=>{xi&&(xi(ne),Qt(X.controls.hideTimeoutMobile))};function Xn(ne){_e[ne?"unshift":"push"](()=>{Ne=ne,t(0,Ne)})}let Dn=()=>ei("backward"),zn=()=>ei("forward");function Mn(ne){$i=ne,t(37,$i)}function qn(ne){_e[ne?"unshift":"push"](()=>{Ii=ne,t(29,Ii)})}function Tn(ne){_e[ne?"unshift":"push"](()=>{oi=ne,t(36,oi)})}return i.$$set=ne=>{"store"in ne&&t(106,ve=ne.store),"uiConfig"in ne&&t(1,X=ne.uiConfig),"thumbUrl"in ne&&t(2,be=ne.thumbUrl),"videoContainer"in ne&&t(0,Ne=ne.videoContainer),"interactiveContainer"in ne&&t(107,xe=ne.interactiveContainer),"live"in ne&&t(3,et=ne.live),"autoplay"in ne&&t(4,ye=ne.autoplay),"canRewindLive"in ne&&t(5,Re=ne.canRewindLive),"showAds"in ne&&t(6,je=ne.showAds),"adsSlotId"in ne&&t(7,Xe=ne.adsSlotId),"adsParams"in ne&&t(8,Ce=ne.adsParams),"adsPreviewParam"in ne&&t(9,Z=ne.adsPreviewParam),"duration"in ne&&t(10,Pe=ne.duration),"logoClickable"in ne&&t(11,ue=ne.logoClickable),"logoHidden"in ne&&t(12,Ie=ne.logoHidden),"logoTargetUrl"in ne&&t(13,Ye=ne.logoTargetUrl),"showNextPrevButtons"in ne&&t(14,ft=ne.showNextPrevButtons),"nextButtonActive"in ne&&t(15,mt=ne.nextButtonActive),"prevButtonActive"in ne&&t(16,dt=ne.prevButtonActive),"endScreenVideoTitle"in ne&&t(17,bt=ne.endScreenVideoTitle),"endScreenVideoThumb"in ne&&t(18,wt=ne.endScreenVideoThumb),"isOneVideoPlaylist"in ne&&t(19,we=ne.isOneVideoPlaylist),"supportLink"in ne&&t(20,vt=ne.supportLink),"shadowRootContainer"in ne&&t(108,Nt=ne.shadowRootContainer),"outerContainerRef"in ne&&t(109,Et=ne.outerContainerRef),"showMiniTimer"in ne&&t(110,qe=ne.showMiniTimer),"fullScreenTarget"in ne&&t(111,Kt=ne.fullScreenTarget),"playerStarted"in ne&&t(21,zt=ne.playerStarted),"playNextVideo"in ne&&t(22,Zt=ne.playNextVideo),"playPrevVideo"in ne&&t(23,ti=ne.playPrevVideo),"repeatPlaylist"in ne&&t(24,Lt=ne.repeatPlaylist),"seekToInteractive"in ne&&t(25,Tt=ne.seekToInteractive),"toggleGraph"in ne&&t(26,me=ne.toggleGraph),"playPrevChapter"in ne&&t(27,Ue=ne.playPrevChapter),"firstStart"in ne&&t(28,Qe=ne.firstStart),"seekTime"in ne&&t(112,tt=ne.seekTime)},i.$$.update=()=>{if(i.$$.dirty[1]&12|i.$$.dirty[4]&48)e:t(38,tn=(A==="video"&&L||A==="ads"&&H==="inactive")&&!T);if(i.$$.dirty[0]&536870912)e:un.set(Ii);if(i.$$.dirty[4]&8)e:t(114,_i=ae!==Up.PlaybackState.PLAYING);if(i.$$.dirty[3]&607125504|i.$$.dirty[4]&6)e:t(116,nn=re||y||!ci&&(v&&!!Pi||_i&&K));if(i.$$.dirty[1]&28|i.$$.dirty[3]&183500800)e:_n.set((_i||n||S||q||ci&&!ze)&&!nn&&A==="video"&&!T);if(i.$$.dirty[0]&1073741826|i.$$.dirty[1]&12|i.$$.dirty[3]&131072|i.$$.dirty[4]&1)e:t(40,fn=X.features.thumbTimer&&qe&&A==="video"&&!o&&!T&&!Ti&&(X.hideThumbTimerAfterTouch&&!I||!X.hideThumbTimerAfterTouch));if(i.$$.dirty[0]&64|i.$$.dirty[1]&4|i.$$.dirty[3]&1610612736)e:t(41,ln=(je&&g||!je)&&v&&!T);if(i.$$.dirty[0]&2|i.$$.dirty[3]&419430400)e:!S&&Ki&&!w&&Qt(X.controls.hideTimeoutMobile),t(117,Ki=S);if(i.$$.dirty[0]&1|i.$$.dirty[1]&3)e:t(42,dn=Ne&&b%180?f.height/f.width:1)},[Ne,X,be,et,ye,Re,je,Xe,Ce,Z,Pe,ue,Ie,Ye,ft,mt,dt,bt,wt,we,vt,zt,Zt,ti,Lt,Tt,me,Ue,Qe,Ii,o,f,b,T,A,q,oi,$i,tn,on,fn,ln,dn,l,a,h,x,G,J,E,te,M,ee,ke,Ge,Ke,Je,We,ii,Li,Gt,Ri,Yi,ni,vi,_n,fi,Zi,di,Xi,yi,Bi,wi,Di,Mt,ki,xt,si,Ci,mi,Oi,Pt,ai,hn,Cn,ui,Fi,Hi,Si,Ti,jt,$t,Ji,zi,pi,gn,Ui,ei,Ei,Mi,ri,Bn,In,En,Yt,Zn,ve,xe,Nt,Et,qe,Kt,tt,ci,_i,ze,nn,Ki,n,y,S,w,v,g,I,K,re,ae,H,L,Xn,Dn,zn,Mn,qn,Tn]}var kc=class extends j{constructor(e){super(),W(this,e,u6,a6,U,{store:106,uiConfig:1,thumbUrl:2,videoContainer:0,interactiveContainer:107,live:3,autoplay:4,canRewindLive:5,showAds:6,adsSlotId:7,adsParams:8,adsPreviewParam:9,duration:10,logoClickable:11,logoHidden:12,logoTargetUrl:13,showNextPrevButtons:14,nextButtonActive:15,prevButtonActive:16,endScreenVideoTitle:17,endScreenVideoThumb:18,isOneVideoPlaylist:19,supportLink:20,shadowRootContainer:108,outerContainerRef:109,showMiniTimer:110,fullScreenTarget:111,playerStarted:21,playNextVideo:22,playPrevVideo:23,repeatPlaylist:24,seekToInteractive:25,toggleGraph:26,playPrevChapter:27,firstStart:28,seekTime:112},s6,[-1,-1,-1,-1,-1,-1])}},Kp=kc;function c6(i){Te(i,"svelte-cghoty",`.root.svelte-cghoty{--white:#fff;--black:#000;--red:#ff3347;--blue-light:#70c1ff;--black-alpha-40:rgba(0, 0, 0, 0.40);--white-alpha-24:rgba(255, 255, 255, 0.24);--white-alpha-72:rgba(255, 255, 255, 0.72);--devider-gray:#dce1e6;--text-gray:#626d7a;--controls-height:40px;--controls-gradient-height:100px;--controls-transition-duration:0.25s;--controls-transition-fn:cubic-bezier(0.455, 0.03, 0.515, 0.955);--controls-desktop-item-margin-left:4px;--focused:var(--white);--focused-element-shadow:inset 0 0 0 2px var(--focused);--focused-slider-shadow:0 0 0 2px var(--focused);--big-play-size:96px;--big-play-radius:50%;--big-play-bg-color:rgba(0, 0, 0, 0.5);--big-play-hover-bg-color:rgba(0, 0, 0, 0.6);--big-play-icon-width:38px;--big-play-icon-height:33px;--interactive-episode-complete:rgba(92, 156, 230, 1);--slider-height:5px;--slider-video-episode-gap:1.5px;--slider-radius:calc(var(--slider-height) / 2);--slider-handle-size:13px;--slider-bg:rgba(255, 255, 255, 0.4);--slider-loaded-bg:rgba(255, 255, 255, 0.4);--slider-filled-bg:var(--white);--slider-filled-active-live-bg:var(--red);--slider-filled-ads:rgba(103, 165, 235, 1);--slider-disabled-color:rgba(248, 248, 248, 0.31);--controls-gradient:linear-gradient(
33
33
  180deg,
34
34
  rgba(0, 0, 0, 0.00) 0%,
35
35
  rgba(0, 0, 0, 0.01) 6.67%,
@@ -47,5 +47,5 @@
47
47
  rgba(0, 0, 0, 0.96) 86.67%,
48
48
  rgba(0, 0, 0, 0.99) 93.33%,
49
49
  #000 100%
50
- );--timeline-preview-shadow:rgba(0, 0, 0, 0.08);--timeline-preview-bg:rgba(34, 34, 34, 1);--mobile-settings-bg:#2C2D2E;--button-hover-transition:opacity 0.2s;--video-container-z-index:0;--rotate-transition-duration:0.25s;position:relative;width:100%;height:100%;color:var(--white);font-size:12px;line-height:normal;overflow:hidden;outline:0;user-select:none;font-family:-apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;background:var(--black)}button{border:none;margin:0;padding:0;width:auto;overflow:visible;background:transparent;color:inherit;font:inherit;line-height:normal;-webkit-font-smoothing:inherit;-moz-osx-font-smoothing:inherit;-webkit-appearance:none;cursor:pointer}svg:not(.interactiveContainer svg){pointer-events:none}*:focus, *:focus-visible{outline:none}*:focus-visible{box-shadow:var(--focused-element-shadow)}.hidden{visibility:hidden;opacity:0}.overlay-container{pointer-events:none;top:0;left:0;height:100%;width:100%;position:fixed;z-index:10000}.out-of-view{position:absolute !important;left:-1000vh !important}`)}function f6(i){let e,t,n;function o(l){i[59](l)}let r={store:i[0],uiConfig:i[34],title:i[1],thumbUrl:i[2],interactiveContainer:i[3],live:i[4],autoplay:i[5],canRewindLive:i[6],showAds:i[7],adsSlotId:i[8],adsParams:i[9],adsPreviewParam:i[10],duration:i[11],logoClickable:i[12],logoHidden:i[13],logoTargetUrl:i[35],showNextPrevButtons:i[15],nextButtonActive:i[16],prevButtonActive:i[17],endScreenVideoTitle:i[18],endScreenVideoThumb:i[19],isOneVideoPlaylist:i[20],supportLink:i[21],outerContainerRef:i[22],fullScreenTarget:i[23],showMiniTimer:i[24],playerStarted:i[33],playNextVideo:i[25],playPrevVideo:i[26],repeatPlaylist:i[27],seekToInteractive:i[28],toggleGraph:i[29],playPrevChapter:i[30],firstStart:i[37]};return i[32]!==void 0&&(r.videoContainer=i[32]),e=new kp({props:r}),_e.push(()=>He(e,"videoContainer",o)),{c(){D(e.$$.fragment)},m(l,a){B(e,l,a),n=!0},p(l,a){let s={};a[0]&1&&(s.store=l[0]),a[0]&2&&(s.title=l[1]),a[0]&4&&(s.thumbUrl=l[2]),a[0]&8&&(s.interactiveContainer=l[3]),a[0]&16&&(s.live=l[4]),a[0]&32&&(s.autoplay=l[5]),a[0]&64&&(s.canRewindLive=l[6]),a[0]&128&&(s.showAds=l[7]),a[0]&256&&(s.adsSlotId=l[8]),a[0]&512&&(s.adsParams=l[9]),a[0]&1024&&(s.adsPreviewParam=l[10]),a[0]&2048&&(s.duration=l[11]),a[0]&4096&&(s.logoClickable=l[12]),a[0]&8192&&(s.logoHidden=l[13]),a[0]&32768&&(s.showNextPrevButtons=l[15]),a[0]&65536&&(s.nextButtonActive=l[16]),a[0]&131072&&(s.prevButtonActive=l[17]),a[0]&262144&&(s.endScreenVideoTitle=l[18]),a[0]&524288&&(s.endScreenVideoThumb=l[19]),a[0]&1048576&&(s.isOneVideoPlaylist=l[20]),a[0]&2097152&&(s.supportLink=l[21]),a[0]&4194304&&(s.outerContainerRef=l[22]),a[0]&8388608&&(s.fullScreenTarget=l[23]),a[0]&16777216&&(s.showMiniTimer=l[24]),a[1]&4&&(s.playerStarted=l[33]),a[0]&33554432&&(s.playNextVideo=l[25]),a[0]&67108864&&(s.playPrevVideo=l[26]),a[0]&134217728&&(s.repeatPlaylist=l[27]),a[0]&268435456&&(s.seekToInteractive=l[28]),a[0]&536870912&&(s.toggleGraph=l[29]),a[0]&1073741824&&(s.playPrevChapter=l[30]),!t&&a[1]&2&&(t=!0,s.videoContainer=l[32],Fe(()=>t=!1)),e.$set(s)},i(l){n||(d(e.$$.fragment,l),n=!0)},o(l){_(e.$$.fragment,l),n=!1},d(l){R(e,l)}}}function c6(i){let e,t,n;function o(l){i[58](l)}let r={store:i[0],uiConfig:i[34],thumbUrl:i[2],interactiveContainer:i[3],live:i[4],autoplay:i[5],canRewindLive:i[6],showAds:i[7],adsSlotId:i[8],adsParams:i[9],adsPreviewParam:i[10],duration:i[11],logoClickable:i[12],logoHidden:i[13],logoTargetUrl:i[35],showNextPrevButtons:i[15],nextButtonActive:i[16],prevButtonActive:i[17],endScreenVideoTitle:i[18],endScreenVideoThumb:i[19],isOneVideoPlaylist:i[20],supportLink:i[21],outerContainerRef:i[22],fullScreenTarget:i[23],showMiniTimer:i[24],playerStarted:i[33],playNextVideo:i[25],playPrevVideo:i[26],repeatPlaylist:i[27],seekToInteractive:i[28],toggleGraph:i[29],playPrevChapter:i[30],firstStart:i[37],seekTime:i[31]};return i[32]!==void 0&&(r.videoContainer=i[32]),e=new Up({props:r}),_e.push(()=>He(e,"videoContainer",o)),{c(){D(e.$$.fragment)},m(l,a){B(e,l,a),n=!0},p(l,a){let s={};a[0]&1&&(s.store=l[0]),a[0]&4&&(s.thumbUrl=l[2]),a[0]&8&&(s.interactiveContainer=l[3]),a[0]&16&&(s.live=l[4]),a[0]&32&&(s.autoplay=l[5]),a[0]&64&&(s.canRewindLive=l[6]),a[0]&128&&(s.showAds=l[7]),a[0]&256&&(s.adsSlotId=l[8]),a[0]&512&&(s.adsParams=l[9]),a[0]&1024&&(s.adsPreviewParam=l[10]),a[0]&2048&&(s.duration=l[11]),a[0]&4096&&(s.logoClickable=l[12]),a[0]&8192&&(s.logoHidden=l[13]),a[0]&32768&&(s.showNextPrevButtons=l[15]),a[0]&65536&&(s.nextButtonActive=l[16]),a[0]&131072&&(s.prevButtonActive=l[17]),a[0]&262144&&(s.endScreenVideoTitle=l[18]),a[0]&524288&&(s.endScreenVideoThumb=l[19]),a[0]&1048576&&(s.isOneVideoPlaylist=l[20]),a[0]&2097152&&(s.supportLink=l[21]),a[0]&4194304&&(s.outerContainerRef=l[22]),a[0]&8388608&&(s.fullScreenTarget=l[23]),a[0]&16777216&&(s.showMiniTimer=l[24]),a[1]&4&&(s.playerStarted=l[33]),a[0]&33554432&&(s.playNextVideo=l[25]),a[0]&67108864&&(s.playPrevVideo=l[26]),a[0]&134217728&&(s.repeatPlaylist=l[27]),a[0]&268435456&&(s.seekToInteractive=l[28]),a[0]&536870912&&(s.toggleGraph=l[29]),a[0]&1073741824&&(s.playPrevChapter=l[30]),!t&&a[1]&2&&(t=!0,s.videoContainer=l[32],Fe(()=>t=!1)),e.$set(s)},i(l){n||(d(e.$$.fragment,l),n=!0)},o(l){_(e.$$.fragment,l),n=!1},d(l){R(e,l)}}}function d6(i){let e,t,n,o,r=[c6,f6],l=[];function a(s,u){return s[14]?0:1}return t=a(i,[-1,-1,-1]),n=l[t]=r[t](i),{c(){e=T("div"),n.c(),f(e,"class","root svelte-cghoty")},m(s,u){C(s,e,u),l[t].m(e,null),o=!0},p(s,u){let c=t;t=a(s,u),t===c?l[t].p(s,u):(fe(),_(l[c],1,1,()=>{l[c]=null}),ce(),n=l[t],n?n.p(s,u):(n=l[t]=r[t](s),n.c()),d(n,1),n.m(e,null))},i(s){o||(d(n),o=!0)},o(s){_(n),o=!1},d(s){s&&k(e),l[t].d()}}}function m6(i,e,t){let n,{sources:o}=e,{store:r}=e,{microStoresRoot:l}=e,{videoConfig:a}=e,{uiConfig:s}=e,{title:u}=e,{thumbUrl:c}=e,{interactiveContainer:m}=e,{subtitles:h}=e,{live:y}=e,{preload:b}=e,{autoplay:S}=e,{volume:w=void 0}=e,{muted:P=void 0}=e,{fromTime:v}=e,{canRewindLive:g}=e,{showAds:I}=e,{adsSlotId:A=void 0}=e,{adsParams:q=void 0}=e,{adsPreviewParam:K=void 0}=e,{duration:re=void 0}=e,{logoClickable:ae}=e,{logoHidden:H}=e,{isMobile:L}=e,{showNextPrevButtons:x=!1}=e,{nextButtonActive:Q=!1}=e,{prevButtonActive:J=!1}=e,{endScreenVideoTitle:E=void 0}=e,{endScreenVideoThumb:te=void 0}=e,{isOneVideoPlaylist:M=!1}=e,{supportLink:ee}=e,{outerContainerRef:ke=void 0}=e,{fullScreenTarget:Qe=void 0}=e,{failoverHosts:je=void 0}=e,{showMiniTimer:$e=!1}=e,{saveRate:We}=e,{playNextVideo:ve=Yn.noop}=e,{playPrevVideo:X=Yn.noop}=e,{repeatPlaylist:be=Yn.noop}=e,{seekToInteractive:Oe=Yn.noop}=e,{toggleGraph:xe=Yn.noop}=e,{playPrevChapter:et=Yn.noop}=e,{subscribers:ye,stores:Be}=l;nc(s);let Ue=Ut(),Xe=s.logoLink,Te=r.ui.debugPanelVisible,Z=r.ui.playerSize,Ce=r.state.isLive$;F(i,Ce,me=>t(61,n=me));let ue,Ie=null,Je=!1;r.getAdmanWrapper().init({switchFromAdsToVideo:r.actions.internal.switchFromAdsToVideo,switchFromVideoToAds:r.actions.internal.switchFromVideoToAds,setMuted:r.actions.external.setMuted},r.ads,{isMobile:r.ui.isMobile,mobileUnmuteButtonVisible:r.ui.mobileUnmuteButtonVisible,vsid:r.vsid}),pc(r,Be);let ft=(me=!1)=>{t(33,Je=!0),me?r.actions.external.firstStart(I):r.actions.internal.firstStart(I)};function ct(me){var zt;let ht=o||me;ht&&r.initVideo({container:ue,sources:ht,failoverHosts:je,subtitles:h});let yt=Yn.safeStorage.get(Il)==="true";Te.set(yt),v>0&&r.actions.external.seekTime(v);let Re=L?Ue.volumeDefault:(zt=w!=null?w:or())!=null?zt:Ue.volumeDefault,qe=P!=null?P:Ic();if(r.actions.external.setVolume(Re),r.actions.external.setMuted(qe),r.getAdmanWrapper().setInitialVolume(qe?0:Re),Ue.features.trafficSaving){let ei=Mc();ei&&r.actions.internal.setTrafficSavingEnabled(ei)}if(Ue.features.saveRate&&We){let ei=Ac();ei&&!n&&r.actions.internal.setPlaybackRate(ei)}let kt=Sc(r.videoId);kt&&r.actions.internal.setQuality(kt),r.ui.isAutoplay.set(S),S?ft():b&&Ue.features.preload&&r.actions.internal.preload()}let dt=me=>{if(window.ResizeObserver){let ht,yt;Ie=new ResizeObserver((0,Yn.throttleFn)(Re=>{let qe=Re[0];if(qe){if(qe.contentBoxSize){let kt=Array.isArray(qe.contentBoxSize)?qe.contentBoxSize[0]:qe.contentBoxSize;ht=kt.inlineSize,yt=kt.blockSize}else qe.contentRect&&(ht=qe.contentRect.width,yt=qe.contentRect.height);Z.set({width:ht,height:yt})}},300)),Ie.observe(me)}Z.set({width:me.clientWidth,height:me.clientHeight})};Nt(()=>{dt(ue);let me=ye.map(yt=>yt.init({store:r,microStores:Be,config:a}));if((y==null?void 0:y.status)==="upcoming"||(y==null?void 0:y.status)==="waiting"){r.actions.internal.setWaitingLive(!0);return}if(((y==null?void 0:y.status)==="finished"||(y==null?void 0:y.status)==="postlive")&&!Object.keys(o||[]).length){r.actions.internal.setWaitingRecord(!0);return}return ct(),()=>{Ie==null||Ie.disconnect(),me.forEach(yt=>yt.unsubscribe()),r.destroy()}});function bt(){Je?r.actions.external.play():ft(!0)}function vt(){r.actions.external.pause()}function we(me){L||r.actions.external.setMuted(me)}function _t(me){L||me>=0&&me<=1&&r.actions.external.setVolume(me)}function Mt(me){r.actions.internal.seekTime(me,Kp.SeekAction.UNKNOWN)}function Vt(me){r.actions.external.seekEpisodeStartTime(me)}function ze(){r.actions.external.returnFocusToEpisodes()}function jt(me){r.actions.external.setPlaybackRate(me)}function Ht(me){r.actions.external.setAutoQualityLimits(me)}function Wt(me){ue=me,t(32,ue)}function $t(me){ue=me,t(32,ue)}return i.$$set=me=>{"sources"in me&&t(38,o=me.sources),"store"in me&&t(0,r=me.store),"microStoresRoot"in me&&t(39,l=me.microStoresRoot),"videoConfig"in me&&t(40,a=me.videoConfig),"uiConfig"in me&&t(41,s=me.uiConfig),"title"in me&&t(1,u=me.title),"thumbUrl"in me&&t(2,c=me.thumbUrl),"interactiveContainer"in me&&t(3,m=me.interactiveContainer),"subtitles"in me&&t(42,h=me.subtitles),"live"in me&&t(4,y=me.live),"preload"in me&&t(43,b=me.preload),"autoplay"in me&&t(5,S=me.autoplay),"volume"in me&&t(44,w=me.volume),"muted"in me&&t(45,P=me.muted),"fromTime"in me&&t(46,v=me.fromTime),"canRewindLive"in me&&t(6,g=me.canRewindLive),"showAds"in me&&t(7,I=me.showAds),"adsSlotId"in me&&t(8,A=me.adsSlotId),"adsParams"in me&&t(9,q=me.adsParams),"adsPreviewParam"in me&&t(10,K=me.adsPreviewParam),"duration"in me&&t(11,re=me.duration),"logoClickable"in me&&t(12,ae=me.logoClickable),"logoHidden"in me&&t(13,H=me.logoHidden),"isMobile"in me&&t(14,L=me.isMobile),"showNextPrevButtons"in me&&t(15,x=me.showNextPrevButtons),"nextButtonActive"in me&&t(16,Q=me.nextButtonActive),"prevButtonActive"in me&&t(17,J=me.prevButtonActive),"endScreenVideoTitle"in me&&t(18,E=me.endScreenVideoTitle),"endScreenVideoThumb"in me&&t(19,te=me.endScreenVideoThumb),"isOneVideoPlaylist"in me&&t(20,M=me.isOneVideoPlaylist),"supportLink"in me&&t(21,ee=me.supportLink),"outerContainerRef"in me&&t(22,ke=me.outerContainerRef),"fullScreenTarget"in me&&t(23,Qe=me.fullScreenTarget),"failoverHosts"in me&&t(47,je=me.failoverHosts),"showMiniTimer"in me&&t(24,$e=me.showMiniTimer),"saveRate"in me&&t(48,We=me.saveRate),"playNextVideo"in me&&t(25,ve=me.playNextVideo),"playPrevVideo"in me&&t(26,X=me.playPrevVideo),"repeatPlaylist"in me&&t(27,be=me.repeatPlaylist),"seekToInteractive"in me&&t(28,Oe=me.seekToInteractive),"toggleGraph"in me&&t(29,xe=me.toggleGraph),"playPrevChapter"in me&&t(30,et=me.playPrevChapter)},i.$$.update=()=>{if(i.$$.dirty[0]&16385)e:r.ui.isMobile.set(L)},[r,u,c,m,y,S,g,I,A,q,K,re,ae,H,L,x,Q,J,E,te,M,ee,ke,Qe,$e,ve,X,be,Oe,xe,et,Mt,ue,Je,Ue,Xe,Ce,ft,o,l,a,s,h,b,w,P,v,je,We,ct,bt,vt,we,_t,Vt,ze,jt,Ht,Wt,$t]}var kf=class extends j{constructor(e){super(),W(this,e,m6,d6,U,{sources:38,store:0,microStoresRoot:39,videoConfig:40,uiConfig:41,title:1,thumbUrl:2,interactiveContainer:3,subtitles:42,live:4,preload:43,autoplay:5,volume:44,muted:45,fromTime:46,canRewindLive:6,showAds:7,adsSlotId:8,adsParams:9,adsPreviewParam:10,duration:11,logoClickable:12,logoHidden:13,isMobile:14,showNextPrevButtons:15,nextButtonActive:16,prevButtonActive:17,endScreenVideoTitle:18,endScreenVideoThumb:19,isOneVideoPlaylist:20,supportLink:21,outerContainerRef:22,fullScreenTarget:23,failoverHosts:47,showMiniTimer:24,saveRate:48,playNextVideo:25,playPrevVideo:26,repeatPlaylist:27,seekToInteractive:28,toggleGraph:29,playPrevChapter:30,initVideo:49,play:50,pause:51,setMuted:52,setVolume:53,seekTime:31,seekEpisodeStartTime:54,returnFocusToEpisodes:55,setPlaybackRate:56,setAutoQualityLimits:57},u6,[-1,-1,-1])}get initVideo(){return this.$$.ctx[49]}get play(){return this.$$.ctx[50]}get pause(){return this.$$.ctx[51]}get setMuted(){return this.$$.ctx[52]}get setVolume(){return this.$$.ctx[53]}get seekTime(){return this.$$.ctx[31]}get seekEpisodeStartTime(){return this.$$.ctx[54]}get returnFocusToEpisodes(){return this.$$.ctx[55]}get setPlaybackRate(){return this.$$.ctx[56]}get setAutoQualityLimits(){return this.$$.ctx[57]}},jp=kf;function p6(i){let e,t,n,o=i[2].default,r=Ee(o,i,i[1],null),l=[{xmlns:"http://www.w3.org/2000/svg"},{width:"57"},{height:"60"},{fill:"none"},{"aria-hidden":"true"},{"data-testid":"stub-icon"},{role:"img"},i[0]],a={};for(let s=0;s<l.length;s+=1)a=oe(a,l[s]);return{c(){e=N("svg"),r&&r.c(),t=N("path"),f(t,"fill","currentColor"),f(t,"d","M38.245 6c3.566 0 4.859.371 6.162 1.069a7.27 7.27 0 0 1 3.025 3.024c.697 1.303 1.068 2.597 1.068 6.163v23.489c0 3.566-.371 4.859-1.069 6.162a7.27 7.27 0 0 1-3.024 3.025C43.104 49.629 41.811 50 38.245 50h-19.49c-3.565 0-4.859-.371-6.162-1.069a7.27 7.27 0 0 1-3.024-3.024C8.87 44.604 8.5 43.311 8.5 39.745v-23.49c0-3.565.371-4.859 1.069-6.162a7.27 7.27 0 0 1 3.024-3.024C13.896 6.37 15.19 6 18.756 6zm.314 3H18.756c-2.799 0-3.761.186-4.749.714a4.27 4.27 0 0 0-1.793 1.793c-.508.95-.7 1.876-.713 4.434L11.5 39.744c0 2.799.186 3.761.714 4.749a4.27 4.27 0 0 0 1.793 1.793c.988.528 1.95.714 4.749.714h19.489c2.798 0 3.76-.186 4.748-.714a4.27 4.27 0 0 0 1.793-1.793c.528-.988.714-1.95.714-4.748v-23.49c0-2.798-.186-3.76-.714-4.748a4.27 4.27 0 0 0-1.793-1.793c-.95-.508-1.876-.7-4.434-.713zM19.22 38c.445 0 .607.046.77.134a.9.9 0 0 1 .377.378c.088.163.134.324.134.77v1.436c0 .446-.046.607-.134.77a.9.9 0 0 1-.378.378c-.162.088-.324.134-.77.134h-1.436c-.446 0-.608-.046-.77-.134a.9.9 0 0 1-.378-.378c-.088-.163-.134-.324-.134-.77v-1.436c0-.446.046-.607.134-.77a.9.9 0 0 1 .378-.378c.162-.088.324-.134.77-.134h1.436zm20 0c.445 0 .606.046.77.134a.9.9 0 0 1 .377.378c.088.163.134.324.134.77v1.436c0 .446-.046.607-.134.77a.9.9 0 0 1-.378.378c-.163.088-.324.134-.77.134h-1.436c-.446 0-.607-.046-.77-.134a.9.9 0 0 1-.378-.378c-.088-.163-.134-.324-.134-.77v-1.436c0-.446.046-.607.134-.77a.9.9 0 0 1 .378-.378c.163-.088.324-.134.77-.134zm-20-8c.445 0 .607.046.77.134a.9.9 0 0 1 .377.378c.088.162.134.324.134.77v1.436c0 .446-.046.607-.134.77a.9.9 0 0 1-.378.378c-.162.088-.324.134-.77.134h-1.436c-.446 0-.608-.046-.77-.134a.9.9 0 0 1-.378-.378c-.088-.163-.134-.324-.134-.77v-1.436c0-.446.046-.608.134-.77a.9.9 0 0 1 .378-.378c.162-.088.324-.134.77-.134h1.436zm20 0c.445 0 .606.046.77.134a.9.9 0 0 1 .377.378c.088.162.134.324.134.77v1.436c0 .446-.046.607-.134.77a.9.9 0 0 1-.378.378c-.163.088-.324.134-.77.134h-1.436c-.446 0-.607-.046-.77-.134a.9.9 0 0 1-.378-.378c-.088-.163-.134-.324-.134-.77v-1.436c0-.446.046-.608.134-.77a.9.9 0 0 1 .378-.378c.163-.088.324-.134.77-.134zm-20-8c.445 0 .607.046.77.134a.9.9 0 0 1 .377.378c.088.162.134.324.134.77v1.436c0 .446-.046.608-.134.77a.9.9 0 0 1-.378.378c-.162.088-.324.134-.77.134h-1.436c-.446 0-.608-.046-.77-.134a.9.9 0 0 1-.378-.378c-.088-.162-.134-.324-.134-.77v-1.436c0-.446.046-.608.134-.77a.9.9 0 0 1 .378-.378c.162-.088.324-.134.77-.134h1.436zm20 0c.445 0 .606.046.77.134a.9.9 0 0 1 .377.378c.088.162.134.324.134.77v1.436c0 .446-.046.608-.134.77a.9.9 0 0 1-.378.378c-.163.088-.324.134-.77.134h-1.436c-.446 0-.607-.046-.77-.134a.9.9 0 0 1-.378-.378c-.088-.162-.134-.324-.134-.77v-1.436c0-.446.046-.608.134-.77a.9.9 0 0 1 .378-.378c.163-.088.324-.134.77-.134zm-20-8c.445 0 .607.046.77.134a.9.9 0 0 1 .377.378c.088.162.134.324.134.77v1.436c0 .446-.046.608-.134.77a.9.9 0 0 1-.378.378c-.162.088-.324.134-.77.134h-1.436c-.446 0-.608-.046-.77-.134a.9.9 0 0 1-.378-.378c-.088-.162-.134-.324-.134-.77v-1.436c0-.446.046-.607.134-.77a.9.9 0 0 1 .378-.378c.162-.088.324-.134.77-.134h1.436zm20 0c.445 0 .606.046.77.134a.9.9 0 0 1 .377.378c.088.162.134.324.134.77v1.436c0 .446-.046.608-.134.77a.9.9 0 0 1-.378.378c-.163.088-.324.134-.77.134h-1.436c-.446 0-.607-.046-.77-.134a.9.9 0 0 1-.378-.378c-.088-.162-.134-.324-.134-.77v-1.436c0-.446.046-.607.134-.77a.9.9 0 0 1 .378-.378c.163-.088.324-.134.77-.134z"),ge(e,a)},m(s,u){C(s,e,u),r&&r.m(e,null),p(e,t),n=!0},p(s,[u]){r&&r.p&&(!n||u&2)&&Ve(r,o,s,s[1],n?Me(o,s[1],u,null):Ae(s[1]),null),ge(e,a=Le(l,[{xmlns:"http://www.w3.org/2000/svg"},{width:"57"},{height:"60"},{fill:"none"},{"aria-hidden":"true"},{"data-testid":"stub-icon"},{role:"img"},u&1&&s[0]]))},i(s){n||(d(r,s),n=!0)},o(s){_(r,s),n=!1},d(s){s&&k(e),r&&r.d(s)}}}function _6(i,e,t){let{$$slots:n={},$$scope:o}=e;return i.$$set=r=>{t(0,e=oe(oe({},e),he(r))),"$$scope"in r&&t(1,o=r.$$scope)},e=he(e),[e,o,n]}var Cf=class extends j{constructor(e){super(),W(this,e,_6,p6,U,{})}},Wp=Cf;function h6(i){let e,t;return e=new Wp({props:{style:i[0]}}),{c(){D(e.$$.fragment)},m(n,o){B(e,n,o),t=!0},p(n,[o]){let r={};o&1&&(r.style=n[0]),e.$set(r)},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){_(e.$$.fragment,n),t=!1},d(n){R(e,n)}}}function g6(i,e,t){let n,{isWhite:o=!1}=e;return i.$$set=r=>{"isWhite"in r&&t(1,o=r.isWhite)},i.$$.update=()=>{if(i.$$.dirty&2)e:t(0,n=o?"color: #fff;":"color: #909499;")},[n,o]}var Sf=class extends j{constructor(e){super(),W(this,e,g6,h6,U,{isWhite:1})}},Gp=Sf;function b6(i){Se(i,"svelte-1y9fytq",".playerStub.svelte-1y9fytq{width:100%;height:100%;background-color:#222;display:flex;justify-content:center;align-items:center;position:relative;background-position:center;background-size:cover;font-family:-apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif}.title.svelte-1y9fytq{position:absolute;left:0;top:0;width:100%;font-size:15px;color:#fff;box-sizing:border-box;padding:18px 20px 10px;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}")}function Qp(i){let e,t;return{c(){e=T("div"),t=De(i[0]),f(e,"class","title svelte-1y9fytq")},m(n,o){C(n,e,o),p(e,t)},p(n,o){o&1&&Ye(t,n[0])},d(n){n&&k(e)}}}function Yp(i){let e,t;return e=new Gp({props:{isWhite:!!i[1]}}),{c(){D(e.$$.fragment)},m(n,o){B(e,n,o),t=!0},p(n,o){let r={};o&2&&(r.isWhite=!!n[1]),e.$set(r)},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){_(e.$$.fragment,n),t=!1},d(n){R(e,n)}}}function v6(i){let e,t,n,o,r=i[0]&&Qp(i),l=(!i[0]||!i[1])&&Yp(i);return{c(){e=T("div"),r&&r.c(),t=O(),l&&l.c(),f(e,"class","playerStub svelte-1y9fytq"),f(e,"style",n=i[1]?`background-image: url('${i[1]}')`:"")},m(a,s){C(a,e,s),r&&r.m(e,null),p(e,t),l&&l.m(e,null),o=!0},p(a,[s]){a[0]?r?r.p(a,s):(r=Qp(a),r.c(),r.m(e,t)):r&&(r.d(1),r=null),!a[0]||!a[1]?l?(l.p(a,s),s&3&&d(l,1)):(l=Yp(a),l.c(),d(l,1),l.m(e,null)):l&&(fe(),_(l,1,1,()=>{l=null}),ce()),(!o||s&2&&n!==(n=a[1]?`background-image: url('${a[1]}')`:""))&&f(e,"style",n)},i(a){o||(d(l),o=!0)},o(a){_(l),o=!1},d(a){a&&k(e),r&&r.d(),l&&l.d()}}}function y6(i,e,t){let{title:n}=e,{thumbUrl:o}=e;return i.$$set=r=>{"title"in r&&t(0,n=r.title),"thumbUrl"in r&&t(1,o=r.thumbUrl)},[n,o]}var Pf=class extends j{constructor(e){super(),W(this,e,y6,v6,U,{title:0,thumbUrl:1},b6)}},Zp=Pf;var dn=require("@vkontakte/videoplayer-shared"),iN=require("@vkontakte/videoplayer-core"),yl=require("@vkontakte/videoplayer-statistics");var ps=class{isSupported(){return"mediaSession"in navigator}setMetaData({title:e,artist:t="",thumbUrl:n=""}){this.isSupported()&&(navigator.mediaSession.metadata=new MediaMetadata({title:e,artist:t,artwork:[{src:n,sizes:"96x96",type:"image/png"},{src:n,sizes:"128x128",type:"image/png"},{src:n,sizes:"192x192",type:"image/png"},{src:n,sizes:"256x256",type:"image/png"},{src:n,sizes:"384x384",type:"image/png"},{src:n,sizes:"512x512",type:"image/png"}]}))}updateActionHandlers(e){this.resetActionHandlers(),this.setActionHandlers(e)}resetActionHandlers(){let e=[["play",null],["pause",null],["stop",null],["nexttrack",null],["previoustrack",null],["seekto",t=>null],["seekbackward",t=>null],["seekforward",t=>null]];this.setActionHandlers(e)}setActionHandlers(e){if(this.isSupported())for(let[t,n]of e)try{navigator.mediaSession.setActionHandler(t,n)}catch(o){throw new Error(`The media session action "${t}" is not supported yet.`)}}};var ko=require("@vkontakte/videoplayer-shared");function w6(i){let e,t,n,o,r,l=i[2].default,a=Ee(l,i,i[1],null),s=[{xmlns:"http://www.w3.org/2000/svg"},{width:"57"},{height:"56"},{fill:"none"},{"aria-label":"dummy-image"},{"data-testid":"pip-dummy-icon"},{role:"img"},i[0]],u={};for(let c=0;c<s.length;c+=1)u=oe(u,s[c]);return{c(){e=N("svg"),a&&a.c(),t=N("g"),n=N("path"),o=N("path"),f(n,"d","m30.744 4 .744.005c2.981.046 4.526.385 6.127 1.24a8.77 8.77 0 0 1 3.475 3.347l.174.312.15.292c.772 1.553 1.066 3.18 1.085 6.251v9.045a1.5 1.5 0 0 1-3 .016l-.008-9.651c-.04-2.032-.228-3.12-.627-4.035l-.126-.27-.13-.252A5.77 5.77 0 0 0 36.2 7.891c-1.187-.635-2.339-.873-5.115-.89L22.255 7c-2.737 0-4.003.2-5.071.698l-.133.064-.251.13a5.77 5.77 0 0 0-2.409 2.408c-.635 1.187-.873 2.339-.89 5.114l-.001 20.83c0 2.738.2 4.004.698 5.072l.064.133.13.251a5.77 5.77 0 0 0 2.408 2.409c1.1.588 2.134.825 4.438.88l.323.006 3.695.005H26a1.5 1.5 0 0 1 0 3h-.756l-3.718-.005c-2.989-.047-4.526-.377-6.14-1.24a8.77 8.77 0 0 1-3.476-3.347l-.174-.312-.15-.292c-.731-1.472-1.036-3.016-1.08-5.803l-.006-.756v-20.49l.005-.743c.046-2.981.385-4.526 1.24-6.127a8.77 8.77 0 0 1 3.347-3.475l.312-.174.292-.15c1.472-.731 3.016-1.036 5.803-1.08L22.256 4z"),f(o,"d","M30.5 33.8c0-1.68 0-2.52.327-3.162a3 3 0 0 1 1.311-1.311C32.78 29 33.62 29 35.3 29h6.4c1.68 0 2.52 0 3.162.327a3 3 0 0 1 1.311 1.311c.327.642.327 1.482.327 3.162v13.4c0 1.68 0 2.52-.327 3.162a3 3 0 0 1-1.311 1.311C44.22 52 43.38 52 41.7 52h-6.4c-1.68 0-2.52 0-3.162-.327a3 3 0 0 1-1.311-1.311C30.5 49.72 30.5 48.88 30.5 47.2z"),f(t,"fill","#fff"),ge(e,u)},m(c,m){C(c,e,m),a&&a.m(e,null),p(e,t),p(t,n),p(t,o),r=!0},p(c,[m]){a&&a.p&&(!r||m&2)&&Ve(a,l,c,c[1],r?Me(l,c[1],m,null):Ae(c[1]),null),ge(e,u=Le(s,[{xmlns:"http://www.w3.org/2000/svg"},{width:"57"},{height:"56"},{fill:"none"},{"aria-label":"dummy-image"},{"data-testid":"pip-dummy-icon"},{role:"img"},m&1&&c[0]]))},i(c){r||(d(a,c),r=!0)},o(c){_(a,c),r=!1},d(c){c&&k(e),a&&a.d(c)}}}function k6(i,e,t){let{$$slots:n={},$$scope:o}=e;return i.$$set=r=>{t(0,e=oe(oe({},e),he(r))),"$$scope"in r&&t(1,o=r.$$scope)},e=he(e),[e,o,n]}var Tf=class extends j{constructor(e){super(),W(this,e,k6,w6,U,{})}},Xp=Tf;function C6(i){Se(i,"svelte-1pbsod4",".player-pip-dummy.svelte-1pbsod4{width:100%;height:100%;background-color:#19191A;display:flex;flex-direction:column;justify-content:center;align-items:center;font-family:-apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif}.player-pip-dummy.is-pip-api.svelte-1pbsod4{position:relative}.dummy-image.svelte-1pbsod4 svg{transform:scale(1.07143)}.dummy-image.desktop.svelte-1pbsod4{transform:scale(1.07143) rotate(-90deg) rotateY(180deg)}.title.svelte-1pbsod4{font-size:16px;color:#fff;padding:18px 20px 10px;text-align:center}")}function S6(i){let e,t,n,o,r,l,a;return n=new Xp({}),{c(){e=T("div"),t=T("div"),D(n.$$.fragment),o=O(),r=T("span"),l=De(i[0]),f(t,"class","dummy-image svelte-1pbsod4"),z(t,"desktop",!i[1]),f(r,"class","title svelte-1pbsod4"),f(e,"class","player-pip-dummy svelte-1pbsod4"),z(e,"is-pip-api",i[2])},m(s,u){C(s,e,u),p(e,t),B(n,t,null),p(e,o),p(e,r),p(r,l),a=!0},p(s,[u]){(!a||u&2)&&z(t,"desktop",!s[1]),(!a||u&1)&&Ye(l,s[0])},i(s){a||(d(n.$$.fragment,s),a=!0)},o(s){_(n.$$.fragment,s),a=!1},d(s){s&&k(e),R(n)}}}function P6(i,e,t){let n,o,r=it(),l=!!r.webApi.pictureInPictureApi,a=r.interfaceLanguage$;F(i,a,c=>t(5,n=c));let s=r.ui.isMobile;F(i,s,c=>t(1,o=c));let u;return i.$$.update=()=>{if(i.$$.dirty&32)e:t(0,u=n&&Y("pip_dummy_title"))},[u,o,l,a,s,n]}var If=class extends j{constructor(e){super(),W(this,e,P6,S6,U,{},C6)}},Jp=If;var T6=460,I6=280,Hl=class{constructor(){this.info={isActive$:new ko.ValueSubject(!1),type:1}}isSupported(){let e=(0,ko.getCurrentBrowser)().browser===ko.CurrentClientBrowser.Yandex,{isEmbed:t}=(0,ko.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(){return ut(this,null,function*(){var r,l;if(!this.isSupported()||!this.playerDomElement||!this.playerParentShadowRoot)return;this.pipWindow=yield documentPictureInPicture.requestWindow({width:T6,height:I6,copyStyleSheets:!0}),this.pipWindow.document.body.style.margin="0";let e=[...this.playerParentShadowRoot.styleSheets].map(a=>[...a.cssRules].map(s=>s.cssText).join(" ")).filter(Boolean).join(`
51
- `),t=document.createElement("style");t.textContent=e;let n=this.createStretchedContainer(),o=n.attachShadow({mode:"open"});o.append(t),o.append(this.playerDomElement),this.playerDummyElement=new Jp({target:this.playerParentShadowRoot,context:this.svelteContext}),(r=this.pipWindow)==null||r.document.body.append(n),this.info.isActive$.next(!0),(l=this.pipWindow)==null||l.addEventListener("unload",a=>{!this.playerDomElement||!this.playerParentShadowRoot||!this.playerDummyElement||(this.playerDummyElement.$destroy(),this.playerParentShadowRoot.append(this.playerDomElement),this.info.isActive$.next(!1))})})}remove(){return ut(this,null,function*(){return new Promise(e=>{var t;(t=documentPictureInPicture.window)==null||t.close(),e()})})}dispose(){return ut(this,null,function*(){yield this.remove()})}createStretchedContainer(){let e=document.createElement("div");return e.style.width="100%",e.style.height="100%",e}};function xp(i){return i instanceof Hl}var _s=class{static getLatestSupportedVersion(){let e=new No,t=new Hl;if(t.isSupported())return t;if(e.isSupported())return e}};function Ef(i,e){var o,r;let t=new Set([...Object.keys(i),...Object.keys(e)]),n={};for(let l of t)n[l]=(r=(o=e[l])!=null?o:i[l])!=null?r:void 0;return n}var $p="Inner error. Unexpectedly root annotation container null reference exception",e_="Annotation with such name already exists",t_="Annotation with such name does not exist";var gl=class extends Error{constructor(e){super(e),this.name="AnnotationError"}};var bl=require("@vkontakte/videoplayer-shared"),E6="1",M6=100,hs=class{constructor(e){this.annotations=new Map;this.subscriptions=new bl.Subscription;this.rootAnnotationsContainer=e;let t=(0,bl.throttleFn)(()=>{for(let n of this.annotations.values())this.isElementExceedsBoundaries(n,this.playerSize.width,this.playerSize.height)?n.style.visibility="hidden":n.style.visibility="visible"},M6);this.subscriptions.add((0,bl.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 gl($p);if(this.annotations.has(e))throw new gl(e_);t.style.zIndex=(n=t.style.zIndex)!=null?n:E6,t.style.position="absolute",this.rootAnnotationsContainer.append(t),this.annotations.set(e,t)}get(e){let t=this.annotations.get(e);if(!t)throw new gl(t_);return t}remove(e){let t=this.get(e);this.annotations.delete(e)&&t.remove()}clear(){for(let e in this.annotations.keys())this.remove(e)}destroy(){this.annotations.clear(),this.subscriptions.unsubscribe(),this.mutationObserver.disconnect(),this.rootAnnotationsContainer=null}isElementExceedsBoundaries(e,t,n){let o=e.offsetTop,r=e.offsetLeft,l=e.offsetWidth,a=e.offsetHeight;return o<0||r<0||r+l>t||o+a>n}registryRootContainer(e){}addLayer(e){return new HTMLElement}getLayer(e){}removeLayer(e){}clearLayer(e){}detach(){}reattach(){}};var vl=require("@vkontakte/videoplayer-shared"),eo=class{init({store:e,microStores:t,config:n}){return(0,vl.assertNonNullable)(e),(0,vl.assertNonNullable)(t),(0,vl.assertNonNullable)(n),this.subscription=new vl.Subscription,this.subscription}};var zl=class extends eo{constructor(){super(...arguments);this.stateName="fakeIsPlaying$";this.state$=Lt(nt({},Ne(null)),{toggle:()=>this.state$.update(t=>!t)})}init(t){let n=super.init(t),{isInteractiveExpectation$:o}=t.store.state;return n.add(o.subscribe(r=>{this.state$.set(r?!0:null)})),n}};var ql=class extends eo{constructor(){super(...arguments);this.stateName="interactiveControlsOpacity$";this.state$=Lt(nt({},Ne(null)),{toggle:()=>this.state$.update(t=>!t)})}init(t){let n=super.init(t),{microStores:o,store:r}=t,{fakeIsPlaying$:l}=o,{isInteractiveExpectation$:a,isPlaying$:s}=r.state,{controlsVisible:u,isMobile:c}=r.ui,m=tt(c),h=()=>m&&tt(u);return n.add(u.subscribe(y=>{if(!m)return;let b=tt(l);tt(s)?this.state$.set(y):b!==null&&this.state$.set(!b||y)})),n.add(s.subscribe(y=>{this.state$.set(!y||h())})),n.add(l.subscribe(y=>{if(y===null)return;let b=tt(a);if(h()){this.state$.set(!0);return}b&&this.state$.set(!y)})),n}};var Ul=class extends eo{constructor(){super(...arguments);this.stateName="seekToInteractiveDisabledTooltip$";this.state$=Ne("tooltip_chapter_without_interactive")}init(t){let n=super.init(t),{store:o}=t;return n.add(o.state.interactiveEpisodes$.subscribe(r=>{r.length&&(r.every(l=>l.completed)?this.state$.set("tooltip_interactive_of_chapter_completed"):this.state$.set("tooltip_disabled_when_interactive"))})),n}};var i_=require("@vkontakte/videoplayer-shared");var Mf=Ne(!1),gs=null,Kl=class extends eo{constructor(){super(...arguments);this.stateName="showInteractiveTimeIndicatorTooltip$";this.state$=Lt(nt({},Mf),{set:(t,n=!1)=>{t!==tt(Mf)&&(this.clearTimeout(),Mf.set(t),!t&&gs&&(gs=!1),t&&n&&(this.timeout=setTimeout(()=>{this.state$.set(!1)},3e3)))},clearTimeout:()=>this.clearTimeout()})}init(t){let n=super.init(t),{store:o,config:r}=t,{isInteractiveTime$:l,isPlaying$:a}=o.state,s=o.ui.controlsVisible,{interactiveTimeIndicator:u}=o.ui.controls;n.add(s.subscribe(m=>{tt(l)&&m&&this.state$.set(!1)}));let c=(r==null?void 0:r.interactiveData)||{tooltipHelpHintActive:!1};return n.add((0,i_.combine)({isPlaying$:a,isInteractiveTime$:l,interactiveTimeIndicator:u}).subscribe(({isPlaying$:m,isInteractiveTime$:h,interactiveTimeIndicator:y})=>{var b,S;if(!(!m||!(y!=null&&y.isDisplayed))){if(!h)return this.state$.set(!1);c.tooltipHelpHintActive&&gs===null&&(gs=!0,c.tooltipHelpHintActive=!1,this.state$.set(!0),(S=(b=o.callbacks)==null?void 0:b.onInteractiveTimeIndicatorHintDeactivated)==null||S.call(b))}})),n}clearTimeout(){window.clearTimeout(this.timeout)}};var n_=()=>[zl,ql,Ul,Kl].reduce(({subscribers:i,stores:e},t)=>{let n=new t;return{subscribers:[...i,n],stores:Lt(nt({},e),{[n.stateName]:n.state$})}},{subscribers:[],stores:{}});var V6={preload:!0,autoplay:!1,repeat:!1,fromTime:0,canRewindLive:!0,showAds:!1,interfaceLanguage:dn.InterfaceLanguage.RU,logoClickable:!1,logoHidden:!1,isMobile:(0,dn.isMobile)(),isMediaSessionEnabled:!0,isPictureInPictureEnabled:!0,isAudioDisabled:!1,callbacks:{uiInfo:{}},tuningConfig:{configName:[]},saveRate:!0},bs=class extends HTMLElement{constructor(){var t;super();this.currentPlayingVideoIndex=0;this.needToRepeatPlaylist=!1;this.videoConfig=void 0;this.pictureInPictureApi=void 0;this.mediaSessionApi=void 0;this.unsubscribePlayerPhaseSubscription=void 0;this.annotationsApi=void 0;this.prevIsid=void 0;this.isInited=!1;this.logger=new dn.Logger,this.log=this.logger.createComponentLog("VKVideoPlayer"),this.subscription=new dn.Subscription,this.graphMadePause=!1,(t=window==null?void 0:window.videoPlayerConfig)!=null&&t.debugLogs&&this.subscription.add(this.logger.log$.subscribe(n=>{console.log("%c player web component ","background:#77dd77;",`${n.component}`,n.message)}))}connectedCallback(){var o,r;if(this.isInited)return;this.initPlayerRootContainers();let t=(o=this.getAttribute("stub-title"))!=null?o:void 0,n=(r=this.getAttribute("stub-thumb-url"))!=null?r:void 0;this.svelteStubComponent=new Zp({target:this.playerContainer,props:{title:t,thumbUrl:n}})}disconnectedCallback(){var t,n,o,r,l;(t=this.annotationsApi)==null||t.destroy(),(n=this.svelteRootComponent)==null||n.$destroy(),(o=this.svelteStubComponent)==null||o.$destroy(),this.subscription.unsubscribe(),(r=this.unsubscribePlayerPhaseSubscription)==null||r.call(this),(l=this.interactiveController)==null||l.destroy()}initPlayerRootContainers(){this.rootContainer=document.createElement("div"),this.rootContainer.style.position="relative",this.rootContainer.className="root-container",this.rootContainer.style.width="100%",this.rootContainer.style.height="100%";let t=document.createElement("div");t.style.position="absolute",t.className="shadow-root-container",t.style.width="100%",t.style.height="100%",this._shadowRoot=t.attachShadow({mode:"open"}),this.playerContainer=document.createElement("div"),this.playerContainer.style.all="initial",this.playerContainer.style.display="block",this.playerContainer.style.contain="strict",this.playerContainer.style.width="100%",this.playerContainer.style.height="100%",this._shadowRoot.append(this.playerContainer),this.rootContainer.append(t),this.append(this.rootContainer)}needToShowNextPrevButtons(){return this.videoConfig?this.videoConfig.videos.length>1:!1}isNextButtonActive(){return this.videoConfig?this.needToShowNextPrevButtons()&&(this.currentPlayingVideoIndex<this.videoConfig.videos.length-1||this.needToRepeatPlaylist):!1}isPrevButtonActive(){return this.videoConfig?this.needToShowNextPrevButtons()&&(this.currentPlayingVideoIndex>0||this.needToRepeatPlaylist):!1}isControlDisabled(t){var o;let n=(o=this.store)==null?void 0:o.ui.controls.disabledControls$;return(n==null?void 0:n.includes(t))||!1}getNextVideoInfo(){if(!this.videoConfig)return{nextVideoTitle:void 0,nextVideoThumb:void 0};let t=this.videoConfig.videos[this.currentPlayingVideoIndex+1]||{};return{nextVideoTitle:t.title,nextVideoThumb:t.thumbUrl}}createPlayer(t,n={},o){var vt,we,_t,Mt,Vt,ze,jt,Ht,Wt,$t,me,ht,yt;if(!this.videoConfig)return;let{albumId:r,statPlace:l,statUserSalt:a,statAuthToken:s,statTrackCode:u,refreshStatAuthToken:c,preload:m,autoplay:h,volume:y,muted:b,fromTime:S,canRewindLive:w,supportLink:P,showAds:v,adsSlotId:g,adsParams:I={},adsPreviewParam:A,interfaceLanguage:q,logoClickable:K,logoHidden:re,isMobile:ae,isAudioDisabled:H,isLiveCatchUpMode:L,fullScreenTarget:x,failoverHosts:Q,canDownload:J,callbacks:E,interactiveData:te,showThumbTimer:M,additionalButtons:ee=[],repeat:ke,saveRate:Qe}=Ef(this.videoConfig,n),{sources:je,title:$e,thumbUrl:We,unitedVideoId:ve,isClip:X=!1,duration:be,adsParams:Oe={},videoEpisodes:xe,previewThumbsData:et,subtitles:ye,live:Be}=t,Ue=nt(nt({},I),Oe),Xe=this.getNextVideoInfo(),Te={sources:je,title:$e,thumbUrl:We,subtitles:ye,unitedVideoId:ve,isClip:X,live:Be,albumId:r,statPlace:l,autoplay:h,muted:b,volume:y,fromTime:S,canRewindLive:w,showAds:v,adsSlotId:g,adsParams:Ue,adsPreviewParam:A,duration:be,logoClickable:K,logoHidden:re,isMobile:ae,repeat:ke,showNextPrevButtons:this.needToShowNextPrevButtons(),nextButtonActive:this.isNextButtonActive(),prevButtonActive:this.isPrevButtonActive(),endScreenVideoTitle:Xe.nextVideoTitle,endScreenVideoThumb:Xe.nextVideoThumb,isOneVideoPlaylist:this.isOneVideoPlaylist()},Z={pictureInPictureApi:this.pictureInPictureApi,annotationsApi:this.annotationsApi};this.log({message:`create player, props: ${JSON.stringify(Te)}`});let Ce=this.uiConfig.features.statistics&&!!ve,{pid:ue}=((we=(vt=this.videoConfig)==null?void 0:vt.interactiveData)==null?void 0:we.projectInfo)||{};Ce&&(this.statistics=new $r(nt({movieId:ve,albumId:r,place:l,trackCode:u,autoplay:(_t=h&&!this.interactiveController)!=null?_t:!1,mobile:ae,clip:X,refDomain:this.videoConfig.refDomain},ue&&!this.isInited&&{projectId:Number(ue)}),nt({refreshAuthToken:c,userSalt:a,config:this.statisticsConfig},this.interactiveController&&{useIsid:!0,isid:this.prevIsid}))),this.uiConfig.features.sentry&&this.uiConfig.sentry.dsn&&new Do(this.uiConfig.sentry,{version:Bo,env:ir},{movieId:ve,albumId:r,place:l,autoplay:(Mt=h&&!this.interactiveController)!=null?Mt:!1,mobile:ae,clip:X}),this.interactiveController&&((ze=this.prevIsid)!=null||(this.prevIsid=(Vt=this.statistics)==null?void 0:Vt.oneStat.isid$.getValue())),this.sentry=nt(nt({},this.sentry),Do.getInstance());let Je=!!te,ft=[],ct="tooltip_interactive_go_back_disabled_first";if(Je&&this.interactiveController){let Re=this.interactiveController.state.isInitialChapter$.getValue(),qe=this.interactiveController.getHistoryState();Re&&ft.push("REPLAY_BUTTON"),this.interactiveController.getIsSeekable().getValue()||ft.push("SEEK_TO_INTERACTIVE_BUTTON"),qe.hasPrevChapter$.getValue()||(ft.push("PLAY_PREV_CHAPTER_BUTTON"),Re||(qe.isGoBackLimited$.getValue()?ct="tooltip_interactive_go_back_disabled_limit":ct="tooltip_interactive_go_back_disabled"))}let dt=()=>{var qe;this.isInited=!1,this.prevIsid=void 0;let Re=(o==null?void 0:o.info.isEnded$.getValue())&&((qe=this.interactiveController)==null?void 0:qe.state.isEndChapter$.getValue());E.onReplayInteractiveVideo&&!Re?E.onReplayInteractiveVideo():this.replayInteractiveVideo()};this.store=Sm({player:o,interfaceLanguage:q,videoId:ve,isClip:X,isLiveCatchUpMode:L,isAudioDisabled:H,statAuthToken:s,callbacks:E,webApi:Z,videoEpisodes:xe,previewThumbsData:et,canDownload:J,uiConfig:this.uiConfig,coreConfig:this.coreConfig,disabledControls:ft,isInteractive:Je,saveRate:Qe,interactiveRanges$:(jt=this.interactiveController)==null?void 0:jt.state.interactiveRanges$,isInteractiveTime$:(Ht=this.interactiveController)==null?void 0:Ht.state.isInteractiveTime$,replayInteractive:dt,playPrevChapterDisabledTooltip:ct,hasInteractiveBranches:!!(($t=(Wt=this.interactiveController)==null?void 0:Wt.getChapterBranches())!=null&&$t.length),additionalButtons:this.uiConfig.features.additionalButtons?ee:[],looped:ke&&this.videoConfig.videos.length===1,statistics:this.statistics});let{stores:bt}=this.microStoresRoot=n_();this.subscription.add(this.store.state.currentFormat$.subscribe(Re=>{var qe;return(qe=E==null?void 0:E.onCurrentFormatChanged)==null?void 0:qe.call(E,Re)})),this.subscription.add(bt.interactiveControlsOpacity$.subscribe(Re=>{var qe;Re!==null&&((qe=this==null?void 0:this.interactiveController)==null||qe.setDisabledControls(Re))})),this.subscription.add(this.store.state.throughputEstimation$.subscribe(Re=>{var qe;return(qe=E==null?void 0:E.onThroughputEstimationChanged)==null?void 0:qe.call(E,Re)})),this.subscription.add(this.store.state.trafficSavingEnabled$.subscribe(Re=>{var qe;return(qe=E==null?void 0:E.onTrafficSavingEnabledChanged)==null?void 0:qe.call(E,Re)})),this.subscription.add(this.store.state.currentPlaybackRate$.subscribe(Re=>{var qe;return(qe=E==null?void 0:E.onCurrentPlaybackRateChanged)==null?void 0:qe.call(E,Re)})),this.subscription.add(this.store.state.volume$.subscribe(Re=>{var qe;return(qe=E==null?void 0:E.onVolumeChange)==null?void 0:qe.call(E,Re)})),this.subscription.add(this.store.state.muted$.subscribe(Re=>{var qe,kt;return Re?(qe=E==null?void 0:E.onMute)==null?void 0:qe.call(E):(kt=E==null?void 0:E.onUnmute)==null?void 0:kt.call(E)})),this.subscription.add(this.store.state.videoBitrate$.subscribe(Re=>{var qe;return(qe=E==null?void 0:E.onVideoBitrateChanged)==null?void 0:qe.call(E,Re)})),this.subscription.add(this.store.state.isInteractiveTime$.subscribe(Re=>{var kt;let qe=(kt=this.store)==null?void 0:kt.ui.controls.disabledControls$;qe&&(Re&&!qe.includes(El)&&qe.add(El),Re||qe.remove(El))})),this.initMediaSession(),this.interactiveController&&Ce&&this.initInteractivesStatistics(),this.svelteRootComponent=new jp({target:this.playerContainer,props:{interactiveContainer:this.interactiveContainer,sources:je,store:this.store,microStoresRoot:this.microStoresRoot,videoConfig:this.videoConfig,uiConfig:this.uiConfig,title:$e,thumbUrl:We,subtitles:ye,live:Be,preload:m,autoplay:h,muted:b,volume:y,fromTime:S,canRewindLive:w,supportLink:P,showAds:v,adsSlotId:g,adsParams:Ue,adsPreviewParam:A,duration:be,logoClickable:K,logoHidden:re,isMobile:ae,failoverHosts:Q,fullScreenTarget:x,saveRate:Qe,showMiniTimer:M,outerContainerRef:this.rootContainer,showNextPrevButtons:this.needToShowNextPrevButtons(),nextButtonActive:this.isNextButtonActive(),prevButtonActive:this.isPrevButtonActive(),endScreenVideoTitle:Xe.nextVideoTitle,endScreenVideoThumb:Xe.nextVideoThumb,isOneVideoPlaylist:this.isOneVideoPlaylist(),playNextVideo:()=>this.playNextVideo(),playPrevVideo:()=>this.playPrevVideo(),repeatPlaylist:()=>this.repeatPlaylist(),playPrevChapter:()=>this.playPrevChapter(),seekToInteractive:()=>this.seekToInteractive(),toggleGraph:()=>this.toggleGraph()}}),this.addPlayerInfoSubscriptions(),this.isInited||(this.isInited=!0,(yt=(ht=(me=this.videoConfig)==null?void 0:me.callbacks)==null?void 0:ht.onInited)==null||yt.call(ht))}addPlayerInfoSubscriptions(){var r;let t=this.store;if(!t)return;let n=(r=this.videoConfig)==null?void 0:r.callbacks;n&&this.subscription.add(t.playerPhase.subscribe(l=>{var a;return(a=n.onPlayerPhaseChanged)==null?void 0:a.call(n,l)})).add(t.state.playbackState$.subscribe(l=>{var a;return(a=n.onPlaybackStateChanged)==null?void 0:a.call(n,l)})).add(t.state.isLive$.subscribe(l=>{var a;return(a=n.onIsLiveChanged)==null?void 0:a.call(n,l)})).add(t.state.isActiveLive$.subscribe(l=>{var a;return(a=n.onIsActiveLiveChanged)==null?void 0:a.call(n,l)})).add(t.state.isAudioAvailable$.subscribe(l=>{var a;return(a=n.onIsAudioAvailableChanged)==null?void 0:a.call(n,l)})).add(t.state.currentQuality$.subscribe(l=>{var a;return(a=n.onCurrentQualityChanged)==null?void 0:a.call(n,l)})).add(t.state.availableQualities$.subscribe(l=>{var a;return(a=n.onAvailableQualitiesChanged)==null?void 0:a.call(n,l.map(({value:s})=>s).filter(s=>s!=="auto"))})).add(t.ui.isPictureInPictureActive$.subscribe(l=>{var a,s;return l?(a=n.onPiPEnter)==null?void 0:a.call(n):(s=n.onPiPExit)==null?void 0:s.call(n)}));let o=n==null?void 0:n.uiInfo;o&&this.subscription.add(t.ui.controlsVisible.subscribe(l=>{var a;return(a=o.onControlsVisibleChanged)==null?void 0:a.call(o,l)})).add(t.ui.isMobile.subscribe(l=>{var a;return(a=o.onIsMobileChanged)==null?void 0:a.call(o,l)})).add(t.ui.playerSize.subscribe(l=>{var a;return(a=o.onPlayerSizeChanged)==null?void 0:a.call(o,l)})).add(t.ui.controls.prevButton.subscribe(l=>{var a;return(a=o.onPrevButtonChanged)==null?void 0:a.call(o,l)})).add(t.ui.controls.playButton.subscribe(l=>{var a;return(a=o.onPlayButtonChanged)==null?void 0:a.call(o,l)})).add(t.ui.controls.replayButton.subscribe(l=>{var a;return(a=o.onReplayButtonChanged)==null?void 0:a.call(o,l)})).add(t.ui.controls.nextButton.subscribe(l=>{var a;return(a=o.onNextButtonChanged)==null?void 0:a.call(o,l)})).add(t.ui.controls.playPrevChapterButton.subscribe(l=>{var a;return(a=o.onPlayPrevChapterChanged)==null?void 0:a.call(o,l)})).add(t.ui.controls.seekToInteractiveButton.subscribe(l=>{var a;return(a=o.onSeekToInteractiveButtonChanged)==null?void 0:a.call(o,l)})).add(t.ui.controls.interactiveGraphButton.subscribe(l=>{var a;return(a=o.onGraphButtonChanged)==null?void 0:a.call(o,l)})).add(t.ui.controls.liveButton.subscribe(l=>{var a;return(a=o.onLiveButtonChanged)==null?void 0:a.call(o,l)})).add(t.ui.controls.time.subscribe(l=>{var a;return(a=o.onTimeUpdateChanged)==null?void 0:a.call(o,l)})).add(t.ui.controls.episodes.subscribe(l=>{var a;return(a=o.onEpisodesChanged)==null?void 0:a.call(o,l)})).add(t.ui.controls.subtitles.subscribe(l=>{var a;return(a=o.onSubtitlesChanged)==null?void 0:a.call(o,l)})).add(t.ui.controls.settings.subscribe(l=>{var a;return(a=o.onSettingsChanged)==null?void 0:a.call(o,l)})).add(t.ui.controls.fullscreen.subscribe(l=>{var a;return(a=o.onFullscreenChanged)==null?void 0:a.call(o,l)})).add(t.ui.controls.chromecast.subscribe(l=>{var a;return(a=o.onChromecastChanged)==null?void 0:a.call(o,l)})).add(t.ui.controls.pip.subscribe(l=>{var a;return(a=o.onPipChanged)==null?void 0:a.call(o,l)})).add(t.ui.controls.vkLogo.subscribe(l=>{var a;return(a=o.onVkLogoChanged)==null?void 0:a.call(o,l)})).add(t.ui.controls.interactiveTimeIndicator.subscribe(l=>{var a;return(a=o.onInteractiveTimeIndicatorChanged)==null?void 0:a.call(o,l)}))}playNextVideo(){var n;if(!this.videoConfig)return;let t=!0;if((n=this.videoConfig.callbacks)!=null&&n.onNextVideoClick)try{t=this.videoConfig.callbacks.onNextVideoClick()}catch(o){this.log({message:"onNextVideoClick callback failed to execute"})}t&&(this.currentPlayingVideoIndex++,this.currentPlayingVideoIndex>=this.videoConfig.videos.length&&(this.currentPlayingVideoIndex=0),this.log({message:`play next video, index: ${this.currentPlayingVideoIndex}`}),this.createPlayerWithCurrentVideo())}playPrevVideo(){var n;if(!this.videoConfig)return;let t=!0;if((n=this.videoConfig.callbacks)!=null&&n.onPrevVideoClick)try{t=this.videoConfig.callbacks.onPrevVideoClick()}catch(o){this.log({message:"onPrevVideoClick callback failed to execute"})}t&&(this.currentPlayingVideoIndex--,this.currentPlayingVideoIndex<0&&(this.currentPlayingVideoIndex=this.videoConfig.videos.length-1),this.log({message:`play prev video, index: ${this.currentPlayingVideoIndex}`}),this.createPlayerWithCurrentVideo())}repeatPlaylist(){this.currentPlayingVideoIndex=0,this.log({message:"repeat playlist"}),this.createPlayerWithCurrentVideo()}createPlayerWithCurrentVideo(t,n=!0){var r;if(!this.videoConfig)return;let o=this.videoConfig.videos[this.currentPlayingVideoIndex];if(!o){this.log({message:"no next video"});return}this.isInited&&(0,dn.isNonNullable)(o.unitedVideoId)&&this.store.actions.internal.nextMovie(o.unitedVideoId),(r=this.svelteRootComponent)==null||r.$destroy(),this.createPlayer(o,{autoplay:n,fromTime:0},t)}playPrevChapter(){var t;(t=this.interactiveController)==null||t.playPrevChapter()}seekToInteractive(){var n;let t=(n=this.interactiveController)==null?void 0:n.getNextInteractiveStartTime();typeof t=="number"&&this.seekTime(t/1e3)}toggleGraph(){var c,m;if(!this.isInited)return;let t=this.store,{isEnded$:n,playbackState$:o,graphIsOpened$:r}=t.state,{disabledControls$:l}=t.ui.controls,a=tt(n),s=tt(o);tt(r)?(r.set(!1),(c=this.interactiveController)==null||c.toggleGraphView(!1),l.remove(Ms),!a&&this.graphMadePause&&this.play()):(this.graphMadePause=s==="playing",r.set(!0),(m=this.interactiveController)==null||m.toggleGraphView(!0),l.add(Ms),!a&&this.graphMadePause&&this.pause())}initInteractives(){return ut(this,null,function*(){var t,n,o,r;if((t=this.videoConfig)!=null&&t.interactiveData)try{let{Interactives:l,EVENT_NAMES:a,CustomError:s}=yield import("@vkontakte/videoplayer-interactive");this.interactiveContainer=document.createElement("div"),this.interactiveContainer.classList.add("interactiveContainer");let u=(n=this.store)==null?void 0:n.interfaceLanguage$,c=u?tt(u):this.videoConfig.interfaceLanguage,{projectInfo:m,initChapterId:h,historyApi:y,videoLoader:b}=this.videoConfig.interactiveData;this.interactiveController=new l({parentElement:this.interactiveContainer,fullscreenTargetElement:this.playerContainer,lang:c,graph:this.uiConfig.features.interactiveGraph,projectInfo:m,initChapterId:h,historyApi:y,vkVideoLoader:b,lastFrame:this.uiConfig.features.interactiveLastFrame,permanentTextControls:this.uiConfig.features.interactiveTextPermanent,initSeamless:!0,config:this.uiConfig.interactive,coreConfig:this.coreConfig});let{isInteractiveExpectation$:S}=this.interactiveController.state;this.uiConfig.features.seekToInteractive&&this.subscription.add(this.interactiveController.getIsSeekable().subscribe(P=>{if(!this.isInited)return;let v=this.store;P?v.ui.controls.disabledControls$.remove("SEEK_TO_INTERACTIVE_BUTTON"):v.ui.controls.disabledControls$.add("SEEK_TO_INTERACTIVE_BUTTON")})),this.subscription.add(S.subscribe(P=>{this.store&&this.store.state.isInteractiveExpectation$.set(P)}));let w=!0;if(this.interactiveController.on(a.playerChanged,P=>{if(!this.videoConfig)return;this.videoConfig.videos[this.currentPlayingVideoIndex]=Lt(nt({},P.config),{title:(m==null?void 0:m.title)||P.config.title});let v=w?this.videoConfig.autoplay:!0;this.createPlayerWithCurrentVideo(P.player,v),w&&(w=!1)}),this.interactiveController.on(a.interactives,({type:P,actionType:v})=>{var I,A,q,K;if(!this.store)return;let g=S.getValue();if(P==="action-choice"&&v==="setRandomBranch"&&(this.store.state.graphIsOpened$.set(!1),this.store.ui.controls.disabledControls$.remove(tr)),P==="action-choice-canceled"){let re=tt(this.store.state.isPlaying$)||g;if((I=this.videoConfig)!=null&&I.isMobile&&re){this.store.ui.interactiveHideMobileControls.set(!0);return}(K=(A=this.videoConfig)==null?void 0:(q=A.callbacks).onDisabledInteractiveClick)==null||K.call(q)}}),yield this.interactiveController.setManifest(this.videoConfig.interactiveData.manifest),(r=(o=this.videoConfig)==null?void 0:o.callbacks)!=null&&r.onInteractiveHistoryChanged){let P=this.interactiveController.getHistoryState();this.subscription.add(P.history$.subscribe(v=>{var g,I,A;v.length&&((A=(I=(g=this.videoConfig)==null?void 0:g.callbacks)==null?void 0:I.onInteractiveHistoryChanged)==null||A.call(I,v))}))}this.uiConfig.features.interactiveTimeIndicator&&this.subscription.add(this.interactiveController.events.noInteraction$.subscribe(()=>{var P,v,g,I;(P=this.microStoresRoot)==null||P.stores.showInteractiveTimeIndicatorTooltip$.set(!0,!0),(I=(v=this.videoConfig)==null?void 0:(g=v.callbacks).onInteractiveTimeIndicatorClick)==null||I.call(g)})),this.interactiveController.on(a.errors,P=>{this.log({message:P.toString()})})}catch(l){this.log({message:l.message})}})}initInteractivesStatistics(){return ut(this,null,function*(){var o,r;let{statSubscription:t,oneStat:n}=this.statistics;if(!(!t||!n||!this.interactiveController))try{let{INTERACTIVE_CLICK_ACTIONS:l}=yield import("@vkontakte/videoplayer-interactive"),a={[l.GO_NEXT_BUTTON]:yl.InteractiveInterfaceClick.NEXT_BUTTON,[l.GO_NEXT_AREA]:yl.InteractiveInterfaceClick.NEXT_AREA,[l.WATCH_AGAIN]:yl.InteractiveInterfaceClick.WATCH_AGAIN,[l.OPEN_GRAPH]:yl.InteractiveInterfaceClick.GRAPH_SHOW,[l.CLOSE_GRAPH]:yl.InteractiveInterfaceClick.GRAPH_HIDE},{click$:s,nextMovie$:u}=this.interactiveController.getStatEvents(),c=new dn.Subject;s.subscribe(m=>{var h,y;m in a?c.next(a[m]):(n==null||n.logError({errorType:"InteractiveVideosAction",fatal:!1}),(y=(h=this.sentry).report)==null||y.call(h,new Error("InteractiveVideosAction"),{errorType:"InteractiveVideosAction",fatal:!1}))}),t.add(n.attachToInteractive({click$:c,nextMovie$:u}))}catch(l){n==null||n.logError({errorType:"InteractiveVideos",fatal:!1}),(r=(o=this.sentry).report)==null||r.call(o,l,{errorType:"InteractiveVideosAction",fatal:!1})}})}initPlayer(t,n={}){var o,r,l,a,s,u,c,m,h,y,b,S,w,P,v,g,I,A,q;if(!Array.isArray(t.videos)||t.videos.length===0&&!t.interactiveData)throw new Error("empty videos");this.videoConfig=Ef(V6,(0,dn.cloneDeepWith)(t,K=>K instanceof HTMLElement?K:void 0)),this.uiConfig=ic((o=n.ui)!=null?o:{}),this.coreConfig=(r=n.core)!=null?r:{configName:[]},this.statisticsConfig=(l=n.statistics)!=null?l:{},this.sentry={config:(a=this.uiConfig.sentry)!=null?a:{}},(0,dn.isNonNullable)(this.videoConfig.isMediaSessionEnabled)&&(this.uiConfig.features.mediaSession=(s=this.videoConfig.isMediaSessionEnabled)!=null?s:!0),(0,dn.isNonNullable)(this.videoConfig.isPictureInPictureEnabled)&&(this.uiConfig.features.pip=(c=(u=this.uiConfig.features.pip)!=null?u:this.videoConfig.isPictureInPictureEnabled)!=null?c:!0,this.uiConfig.features.dpip=(h=(m=this.uiConfig.features.dpip)!=null?m:this.videoConfig.isPictureInPictureEnabled)!=null?h:!0),this.videoConfig.isMobile=(y=this.uiConfig.isMobile)!=null?y:this.videoConfig.isMobile,(b=this.videoConfig).autoplay&&(b.autoplay=this.uiConfig.features.autoplay),this.videoConfig.showAds=(S=this.uiConfig.ads.enable)!=null?S:this.videoConfig.showAds,this.videoConfig.adsSlotId=(w=this.uiConfig.ads.slot)!=null?w:this.videoConfig.adsSlotId,this.videoConfig.adsPreviewParam=(P=this.uiConfig.ads.preview)!=null?P:this.videoConfig.adsPreviewParam,this.videoConfig.logoHidden=!((v=this.uiConfig.showLogo)!=null?v:!this.videoConfig.logoHidden),(g=this.videoConfig).canRewindLive&&(g.canRewindLive=this.uiConfig.features.liveRewind),this.videoConfig.supportLink=(I=this.videoConfig.supportLink)!=null?I:this.uiConfig.supportLink,this.currentPlayingVideoIndex=0,this.needToRepeatPlaylist=this.videoConfig.repeat,this.uiConfig.features.pip&&(this.uiConfig.features.dpip?this.pictureInPictureApi=_s.getLatestSupportedVersion():this.pictureInPictureApi=new No),this.mediaSessionApi=this.uiConfig.features.mediaSession?new ps:void 0,this.annotationsApi=this.uiConfig.features.annotations?new hs(this.rootContainer):void 0,(A=this.svelteStubComponent)==null||A.$destroy(),(q=this.svelteRootComponent)==null||q.$destroy(),this.isInited=!1,this.prevIsid=void 0,this.interactiveController&&(this.interactiveController.destroy(),this.interactiveController=void 0),t.interactiveData?this.initInteractives():this.createPlayer(t.videos[0]),xp(this.pictureInPictureApi)&&this.pictureInPictureApi.setPlayerDomElement(this.playerContainer,this._shadowRoot)}isOneVideoPlaylist(){return this.videoConfig?this.videoConfig.videos.length===1:!1}updateNextVideos(t){var o;if(!this.videoConfig)return;this.log({message:`update next videos, videos: ${JSON.stringify(t)}`}),this.videoConfig.videos.splice(this.currentPlayingVideoIndex+1),this.videoConfig.videos.push(...t);let n=this.getNextVideoInfo();(o=this.svelteRootComponent)==null||o.$set({showNextPrevButtons:this.needToShowNextPrevButtons(),nextButtonActive:this.isNextButtonActive(),prevButtonActive:this.isPrevButtonActive(),endScreenVideoTitle:n.nextVideoTitle,endScreenVideoThumb:n.nextVideoThumb,isOneVideoPlaylist:this.isOneVideoPlaylist()})}initMediaSession(){var t,n;this.mediaSessionApi&&((t=this.unsubscribePlayerPhaseSubscription)==null||t.call(this),this.unsubscribePlayerPhaseSubscription=(n=this.store)==null?void 0:n.playerPhase.subscribe(o=>{o==="video"?this.setupMediaSessionForVideo():o==="ads"&&this.setupMediaSessionForAds()}))}setupMediaSessionForVideo(){if(!(!this.videoConfig||!this.mediaSessionApi))try{let{title:t,thumbUrl:n}=nt({},this.videoConfig.videos[this.currentPlayingVideoIndex]),o=[["play",()=>this.play()],["pause",()=>this.pause()],["seekto",r=>this.seekTime(r.seekTime)]];this.videoConfig.videos.length>1&&(this.currentPlayingVideoIndex<this.videoConfig.videos.length-1&&o.push(["nexttrack",()=>this.playNextVideo()]),this.currentPlayingVideoIndex>0&&o.push(["previoustrack",()=>this.playPrevVideo()])),this.mediaSessionApi.setMetaData({title:t,thumbUrl:n}),this.mediaSessionApi.updateActionHandlers(o)}catch(t){this.log({message:t.message})}}setupMediaSessionForAds(){if(!(!this.videoConfig||!this.mediaSessionApi))try{let t="\u0420\u0435\u043A\u043B\u0430\u043C\u0430",n=[["play",()=>this.play()],["pause",()=>this.pause()]];this.mediaSessionApi.setMetaData({title:t}),this.mediaSessionApi.updateActionHandlers(n)}catch(t){this.log({message:t.message})}}play(){var t,n;this.isControlDisabled("PLAY_BUTTON")||(t=this.store)!=null&&t.playerPhase.is("waitingLive")||(this.log({message:"play"}),(n=this.svelteRootComponent)==null||n.play())}pause(){var t;this.log({message:"pause"}),(t=this.svelteRootComponent)==null||t.pause()}stop(){var n,o;if(!this.videoConfig)return;this.log({message:"stop"}),(n=this.svelteStubComponent)==null||n.$destroy();let t=this.videoConfig.videos[0];t&&((o=this.svelteRootComponent)==null||o.$destroy(),this.createPlayer(t))}setMuted(t){var n;this.log({message:`set muted, muted: ${t}`}),(n=this.svelteRootComponent)==null||n.setMuted(t)}setVolume(t){var n;this.log({message:`set volume, volume: ${t}`}),(n=this.svelteRootComponent)==null||n.setVolume(t)}setRepeat(t){var n;this.log({message:`set repeat, repeat: ${t}`}),this.needToRepeatPlaylist=t,(n=this.svelteRootComponent)==null||n.$set({needToRepeatPlaylist:this.needToRepeatPlaylist,showNextPrevButtons:this.needToShowNextPrevButtons(),nextButtonActive:this.isNextButtonActive(),prevButtonActive:this.isPrevButtonActive()})}seekTime(t){var n;this.isControlDisabled("TIMELINE")||(this.log({message:`seek time, time: ${t}`}),(n=this.svelteRootComponent)==null||n.seekTime(t))}seekEpisodeStartTime(t){var n;this.log({message:`seek episode start time, time: ${t}`}),(n=this.svelteRootComponent)==null||n.seekEpisodeStartTime(t)}returnFocusToEpisodes(){var t;this.log({message:"return focus to episodes button"}),(t=this.svelteRootComponent)==null||t.returnFocusToEpisodes()}setPlaybackRate(t){var n;this.log({message:`set playback rate to: ${t}`}),(n=this.svelteRootComponent)==null||n.setPlaybackRate(t)}setAutoQualityLimits(t){var n,o,r;this.log({message:`set auto quality limitation. Max: ${(n=t.max)!=null?n:"none"}. Min: ${(o=t.min)!=null?o:"none"}`}),(r=this.svelteRootComponent)==null||r.setAutoQualityLimits(t)}addLanguage(t){var n;(n=this.store)==null||n.actions.internal.addLanguage(t)}setLanguage(t){return ut(this,null,function*(){var n;yield(n=this.store)==null?void 0:n.actions.internal.setLanguage(t)})}setLiveStart(t){var n,o;this.log({message:"live started"}),(n=this.store)==null||n.actions.internal.setWaitingLive(!1),(o=this.svelteRootComponent)==null||o.initVideo(t),this.play()}setWaitRecord(){var t,n;this.log({message:"post live"}),(t=this.store)==null||t.actions.internal.setWaitingRecord(!0),(n=this.store)==null||n.destroy()}setLiveEnd(t){var n,o;this.log({message:"live ended"}),(n=this.store)==null||n.actions.internal.setWaitingRecord(!1),(o=this.svelteRootComponent)==null||o.$destroy(),this.createPlayer(t,{autoplay:!1})}getDeviceId(){var t,n;return(n=(t=this.statistics)==null?void 0:t.oneStat.getDeviceId())!=null?n:void 0}replayInteractiveVideo(){this.interactiveController&&this.interactiveController.setChapter()}showInteractiveIndicatorTooltip(t,n=!1){var o;(o=this.microStoresRoot)==null||o.stores.showInteractiveTimeIndicatorTooltip$.set(t,n)}switchToActiveLive(){var t;(t=this.store)==null||t.actions.internal.switchToActiveLive()}};var wl=require("@vkontakte/videoplayer-shared"),vs=require("@vkontakte/videoplayer-core"),A6=()=>{window.customElements.define("vk-video-player",bs)};
50
+ );--timeline-preview-shadow:rgba(0, 0, 0, 0.08);--timeline-preview-bg:rgba(34, 34, 34, 1);--mobile-settings-bg:#2C2D2E;--button-hover-transition:opacity 0.2s;--video-container-z-index:0;--rotate-transition-duration:0.25s;position:relative;width:100%;height:100%;color:var(--white);font-size:12px;line-height:normal;overflow:hidden;outline:0;user-select:none;font-family:-apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;background:var(--black)}button{border:none;margin:0;padding:0;width:auto;overflow:visible;background:transparent;color:inherit;font:inherit;line-height:normal;-webkit-font-smoothing:inherit;-moz-osx-font-smoothing:inherit;-webkit-appearance:none;cursor:pointer}svg:not(.interactiveContainer svg){pointer-events:none}*:focus, *:focus-visible{outline:none}*:focus-visible{box-shadow:var(--focused-element-shadow)}.hidden{visibility:hidden;opacity:0}.overlay-container{pointer-events:none;top:0;left:0;height:100%;width:100%;position:fixed;z-index:10000}.out-of-view{position:absolute !important;left:-1000vh !important}`)}function f6(i){let e,t,n;function o(l){i[61](l)}let r={store:i[0],uiConfig:i[35],title:i[1],thumbUrl:i[2],interactiveContainer:i[3],live:i[4],autoplay:i[5],canRewindLive:i[6],showAds:i[7],adsSlotId:i[8],adsParams:i[9],adsPreviewParam:i[10],duration:i[11],logoClickable:i[12],logoHidden:i[13],logoTargetUrl:i[36],showNextPrevButtons:i[15],nextButtonActive:i[16],prevButtonActive:i[17],endScreenVideoTitle:i[18],endScreenVideoThumb:i[19],isOneVideoPlaylist:i[20],supportLink:i[21],shadowRootContainer:i[22],outerContainerRef:i[23],fullScreenTarget:i[24],showMiniTimer:i[25],playerStarted:i[34],playNextVideo:i[26],playPrevVideo:i[27],repeatPlaylist:i[28],seekToInteractive:i[29],toggleGraph:i[30],playPrevChapter:i[31],firstStart:i[38]};return i[33]!==void 0&&(r.videoContainer=i[33]),e=new Cp({props:r}),_e.push(()=>Fe(e,"videoContainer",o)),{c(){D(e.$$.fragment)},m(l,a){R(e,l,a),n=!0},p(l,a){let s={};a[0]&1&&(s.store=l[0]),a[0]&2&&(s.title=l[1]),a[0]&4&&(s.thumbUrl=l[2]),a[0]&8&&(s.interactiveContainer=l[3]),a[0]&16&&(s.live=l[4]),a[0]&32&&(s.autoplay=l[5]),a[0]&64&&(s.canRewindLive=l[6]),a[0]&128&&(s.showAds=l[7]),a[0]&256&&(s.adsSlotId=l[8]),a[0]&512&&(s.adsParams=l[9]),a[0]&1024&&(s.adsPreviewParam=l[10]),a[0]&2048&&(s.duration=l[11]),a[0]&4096&&(s.logoClickable=l[12]),a[0]&8192&&(s.logoHidden=l[13]),a[0]&32768&&(s.showNextPrevButtons=l[15]),a[0]&65536&&(s.nextButtonActive=l[16]),a[0]&131072&&(s.prevButtonActive=l[17]),a[0]&262144&&(s.endScreenVideoTitle=l[18]),a[0]&524288&&(s.endScreenVideoThumb=l[19]),a[0]&1048576&&(s.isOneVideoPlaylist=l[20]),a[0]&2097152&&(s.supportLink=l[21]),a[0]&4194304&&(s.shadowRootContainer=l[22]),a[0]&8388608&&(s.outerContainerRef=l[23]),a[0]&16777216&&(s.fullScreenTarget=l[24]),a[0]&33554432&&(s.showMiniTimer=l[25]),a[1]&8&&(s.playerStarted=l[34]),a[0]&67108864&&(s.playNextVideo=l[26]),a[0]&134217728&&(s.playPrevVideo=l[27]),a[0]&268435456&&(s.repeatPlaylist=l[28]),a[0]&536870912&&(s.seekToInteractive=l[29]),a[0]&1073741824&&(s.toggleGraph=l[30]),a[1]&1&&(s.playPrevChapter=l[31]),!t&&a[1]&4&&(t=!0,s.videoContainer=l[33],Oe(()=>t=!1)),e.$set(s)},i(l){n||(d(e.$$.fragment,l),n=!0)},o(l){_(e.$$.fragment,l),n=!1},d(l){B(e,l)}}}function d6(i){let e,t,n;function o(l){i[60](l)}let r={store:i[0],uiConfig:i[35],thumbUrl:i[2],interactiveContainer:i[3],live:i[4],autoplay:i[5],canRewindLive:i[6],showAds:i[7],adsSlotId:i[8],adsParams:i[9],adsPreviewParam:i[10],duration:i[11],logoClickable:i[12],logoHidden:i[13],logoTargetUrl:i[36],showNextPrevButtons:i[15],nextButtonActive:i[16],prevButtonActive:i[17],endScreenVideoTitle:i[18],endScreenVideoThumb:i[19],isOneVideoPlaylist:i[20],supportLink:i[21],shadowRootContainer:i[22],outerContainerRef:i[23],fullScreenTarget:i[24],showMiniTimer:i[25],playerStarted:i[34],playNextVideo:i[26],playPrevVideo:i[27],repeatPlaylist:i[28],seekToInteractive:i[29],toggleGraph:i[30],playPrevChapter:i[31],firstStart:i[38],seekTime:i[32]};return i[33]!==void 0&&(r.videoContainer=i[33]),e=new Kp({props:r}),_e.push(()=>Fe(e,"videoContainer",o)),{c(){D(e.$$.fragment)},m(l,a){R(e,l,a),n=!0},p(l,a){let s={};a[0]&1&&(s.store=l[0]),a[0]&4&&(s.thumbUrl=l[2]),a[0]&8&&(s.interactiveContainer=l[3]),a[0]&16&&(s.live=l[4]),a[0]&32&&(s.autoplay=l[5]),a[0]&64&&(s.canRewindLive=l[6]),a[0]&128&&(s.showAds=l[7]),a[0]&256&&(s.adsSlotId=l[8]),a[0]&512&&(s.adsParams=l[9]),a[0]&1024&&(s.adsPreviewParam=l[10]),a[0]&2048&&(s.duration=l[11]),a[0]&4096&&(s.logoClickable=l[12]),a[0]&8192&&(s.logoHidden=l[13]),a[0]&32768&&(s.showNextPrevButtons=l[15]),a[0]&65536&&(s.nextButtonActive=l[16]),a[0]&131072&&(s.prevButtonActive=l[17]),a[0]&262144&&(s.endScreenVideoTitle=l[18]),a[0]&524288&&(s.endScreenVideoThumb=l[19]),a[0]&1048576&&(s.isOneVideoPlaylist=l[20]),a[0]&2097152&&(s.supportLink=l[21]),a[0]&4194304&&(s.shadowRootContainer=l[22]),a[0]&8388608&&(s.outerContainerRef=l[23]),a[0]&16777216&&(s.fullScreenTarget=l[24]),a[0]&33554432&&(s.showMiniTimer=l[25]),a[1]&8&&(s.playerStarted=l[34]),a[0]&67108864&&(s.playNextVideo=l[26]),a[0]&134217728&&(s.playPrevVideo=l[27]),a[0]&268435456&&(s.repeatPlaylist=l[28]),a[0]&536870912&&(s.seekToInteractive=l[29]),a[0]&1073741824&&(s.toggleGraph=l[30]),a[1]&1&&(s.playPrevChapter=l[31]),!t&&a[1]&4&&(t=!0,s.videoContainer=l[33],Oe(()=>t=!1)),e.$set(s)},i(l){n||(d(e.$$.fragment,l),n=!0)},o(l){_(e.$$.fragment,l),n=!1},d(l){B(e,l)}}}function m6(i){let e,t,n,o,r=[d6,f6],l=[];function a(s,u){return s[14]?0:1}return t=a(i,[-1,-1,-1]),n=l[t]=r[t](i),{c(){e=P("div"),n.c(),c(e,"class","root svelte-cghoty")},m(s,u){C(s,e,u),l[t].m(e,null),o=!0},p(s,u){let f=t;t=a(s,u),t===f?l[t].p(s,u):(ce(),_(l[f],1,1,()=>{l[f]=null}),fe(),n=l[t],n?n.p(s,u):(n=l[t]=r[t](s),n.c()),d(n,1),n.m(e,null))},i(s){o||(d(n),o=!0)},o(s){_(n),o=!1},d(s){s&&k(e),l[t].d()}}}function p6(i,e,t){let n,{sources:o}=e,{store:r}=e,{microStoresRoot:l}=e,{videoConfig:a}=e,{uiConfig:s}=e,{title:u}=e,{thumbUrl:f}=e,{interactiveContainer:m}=e,{subtitles:h}=e,{live:y}=e,{preload:b}=e,{autoplay:S}=e,{volume:w=void 0}=e,{muted:T=void 0}=e,{fromTime:v}=e,{canRewindLive:g}=e,{showAds:I}=e,{adsSlotId:A=void 0}=e,{adsParams:q=void 0}=e,{adsPreviewParam:K=void 0}=e,{duration:re=void 0}=e,{logoClickable:ae}=e,{logoHidden:H}=e,{isMobile:L}=e,{showNextPrevButtons:x=!1}=e,{nextButtonActive:G=!1}=e,{prevButtonActive:J=!1}=e,{endScreenVideoTitle:E=void 0}=e,{endScreenVideoThumb:te=void 0}=e,{isOneVideoPlaylist:M=!1}=e,{supportLink:ee}=e,{shadowRootContainer:ke=void 0}=e,{outerContainerRef:Ge=void 0}=e,{fullScreenTarget:Ke=void 0}=e,{failoverHosts:Je=void 0}=e,{showMiniTimer:We=!1}=e,{saveRate:ve}=e,{playNextVideo:X=Yn.noop}=e,{playPrevVideo:be=Yn.noop}=e,{repeatPlaylist:Ne=Yn.noop}=e,{seekToInteractive:xe=Yn.noop}=e,{toggleGraph:et=Yn.noop}=e,{playPrevChapter:ye=Yn.noop}=e,{volumeMultiplier:Re}=e,{subscribers:je,stores:Xe}=l;of(s);let Ce=Wt(),Z=s.logoLink,Pe=r.ui.debugPanelVisible,ue=r.ui.playerSize,Ie=r.state.isLive$;F(i,Ie,me=>t(63,n=me));let Ye,ft=null,mt=!1;r.getAdmanWrapper().init({switchFromAdsToVideo:r.actions.internal.switchFromAdsToVideo,switchFromVideoToAds:r.actions.internal.switchFromVideoToAds,setMuted:r.actions.external.setMuted},r.ads,{isMobile:r.ui.isMobile,mobileUnmuteButtonVisible:r.ui.mobileUnmuteButtonVisible,vsid:r.vsid}),_f(r,Xe);let dt=(me=!1)=>{t(34,mt=!0),me?r.actions.external.firstStart(I):r.actions.internal.firstStart(I)};function bt(me){var Li;let Ue=o||me;Ue&&r.initVideo({container:Ye,sources:Ue,failoverHosts:Je,subtitles:h,volumeMultiplier:Re});let Qe=Yn.safeStorage.get(Il)==="true";Pe.set(Qe),v>0&&r.actions.external.seekTime(v);let tt=L?Ce.volumeDefault:(Li=w!=null?w:lr())!=null?Li:Ce.volumeDefault,_t=T!=null?T:Ef();if(r.actions.external.setVolume(tt),r.actions.external.setMuted(_t),r.getAdmanWrapper().setInitialVolume(_t?0:tt),Ce.features.trafficSaving){let Gt=Vf();Gt&&r.actions.internal.setTrafficSavingEnabled(Gt)}if(Ce.features.saveRate&&ve){let Gt=Lf();Gt&&!n&&r.actions.internal.setPlaybackRate(Gt)}let ii=Tf(r.videoId);ii&&r.actions.internal.setQuality(ii),r.ui.isAutoplay.set(S),S?dt():b&&Ce.features.preload&&r.actions.internal.preload()}let wt=me=>{if(window.ResizeObserver){let Ue,Qe;ft=new ResizeObserver((0,Yn.throttleFn)(tt=>{let _t=tt[0];if(_t){if(_t.contentBoxSize){let ii=Array.isArray(_t.contentBoxSize)?_t.contentBoxSize[0]:_t.contentBoxSize;Ue=ii.inlineSize,Qe=ii.blockSize}else _t.contentRect&&(Ue=_t.contentRect.width,Qe=_t.contentRect.height);ue.set({width:Ue,height:Qe})}},300)),ft.observe(me)}ue.set({width:me.clientWidth,height:me.clientHeight})};Ft(()=>{wt(Ye);let me=je.map(Qe=>Qe.init({store:r,microStores:Xe,config:a}));if((y==null?void 0:y.status)==="upcoming"||(y==null?void 0:y.status)==="waiting"){r.actions.internal.setWaitingLive(!0);return}if(((y==null?void 0:y.status)==="finished"||(y==null?void 0:y.status)==="postlive")&&!Object.keys(o||[]).length){r.actions.internal.setWaitingRecord(!0);return}return bt(),()=>{ft==null||ft.disconnect(),me.forEach(Qe=>Qe.unsubscribe()),r.destroy()}});function we(){mt?r.actions.external.play():dt(!0)}function vt(){r.actions.external.pause()}function Nt(me){L||r.actions.external.setMuted(me)}function Et(me){L||me>=0&&me<=1&&r.actions.external.setVolume(me)}function qe(me){r.actions.internal.seekTime(me,jp.SeekAction.UNKNOWN)}function Kt(me){r.actions.external.seekEpisodeStartTime(me)}function zt(){r.actions.external.returnFocusToEpisodes()}function Zt(me){r.actions.external.setPlaybackRate(me)}function ti(me){r.actions.external.setAutoQualityLimits(me)}function Lt(me){Ye=me,t(33,Ye)}function Tt(me){Ye=me,t(33,Ye)}return i.$$set=me=>{"sources"in me&&t(39,o=me.sources),"store"in me&&t(0,r=me.store),"microStoresRoot"in me&&t(40,l=me.microStoresRoot),"videoConfig"in me&&t(41,a=me.videoConfig),"uiConfig"in me&&t(42,s=me.uiConfig),"title"in me&&t(1,u=me.title),"thumbUrl"in me&&t(2,f=me.thumbUrl),"interactiveContainer"in me&&t(3,m=me.interactiveContainer),"subtitles"in me&&t(43,h=me.subtitles),"live"in me&&t(4,y=me.live),"preload"in me&&t(44,b=me.preload),"autoplay"in me&&t(5,S=me.autoplay),"volume"in me&&t(45,w=me.volume),"muted"in me&&t(46,T=me.muted),"fromTime"in me&&t(47,v=me.fromTime),"canRewindLive"in me&&t(6,g=me.canRewindLive),"showAds"in me&&t(7,I=me.showAds),"adsSlotId"in me&&t(8,A=me.adsSlotId),"adsParams"in me&&t(9,q=me.adsParams),"adsPreviewParam"in me&&t(10,K=me.adsPreviewParam),"duration"in me&&t(11,re=me.duration),"logoClickable"in me&&t(12,ae=me.logoClickable),"logoHidden"in me&&t(13,H=me.logoHidden),"isMobile"in me&&t(14,L=me.isMobile),"showNextPrevButtons"in me&&t(15,x=me.showNextPrevButtons),"nextButtonActive"in me&&t(16,G=me.nextButtonActive),"prevButtonActive"in me&&t(17,J=me.prevButtonActive),"endScreenVideoTitle"in me&&t(18,E=me.endScreenVideoTitle),"endScreenVideoThumb"in me&&t(19,te=me.endScreenVideoThumb),"isOneVideoPlaylist"in me&&t(20,M=me.isOneVideoPlaylist),"supportLink"in me&&t(21,ee=me.supportLink),"shadowRootContainer"in me&&t(22,ke=me.shadowRootContainer),"outerContainerRef"in me&&t(23,Ge=me.outerContainerRef),"fullScreenTarget"in me&&t(24,Ke=me.fullScreenTarget),"failoverHosts"in me&&t(48,Je=me.failoverHosts),"showMiniTimer"in me&&t(25,We=me.showMiniTimer),"saveRate"in me&&t(49,ve=me.saveRate),"playNextVideo"in me&&t(26,X=me.playNextVideo),"playPrevVideo"in me&&t(27,be=me.playPrevVideo),"repeatPlaylist"in me&&t(28,Ne=me.repeatPlaylist),"seekToInteractive"in me&&t(29,xe=me.seekToInteractive),"toggleGraph"in me&&t(30,et=me.toggleGraph),"playPrevChapter"in me&&t(31,ye=me.playPrevChapter),"volumeMultiplier"in me&&t(50,Re=me.volumeMultiplier)},i.$$.update=()=>{if(i.$$.dirty[0]&16385)e:r.ui.isMobile.set(L)},[r,u,f,m,y,S,g,I,A,q,K,re,ae,H,L,x,G,J,E,te,M,ee,ke,Ge,Ke,We,X,be,Ne,xe,et,ye,qe,Ye,mt,Ce,Z,Ie,dt,o,l,a,s,h,b,w,T,v,Je,ve,Re,bt,we,vt,Nt,Et,Kt,zt,Zt,ti,Lt,Tt]}var Cc=class extends j{constructor(e){super(),W(this,e,p6,m6,U,{sources:39,store:0,microStoresRoot:40,videoConfig:41,uiConfig:42,title:1,thumbUrl:2,interactiveContainer:3,subtitles:43,live:4,preload:44,autoplay:5,volume:45,muted:46,fromTime:47,canRewindLive:6,showAds:7,adsSlotId:8,adsParams:9,adsPreviewParam:10,duration:11,logoClickable:12,logoHidden:13,isMobile:14,showNextPrevButtons:15,nextButtonActive:16,prevButtonActive:17,endScreenVideoTitle:18,endScreenVideoThumb:19,isOneVideoPlaylist:20,supportLink:21,shadowRootContainer:22,outerContainerRef:23,fullScreenTarget:24,failoverHosts:48,showMiniTimer:25,saveRate:49,playNextVideo:26,playPrevVideo:27,repeatPlaylist:28,seekToInteractive:29,toggleGraph:30,playPrevChapter:31,volumeMultiplier:50,initVideo:51,play:52,pause:53,setMuted:54,setVolume:55,seekTime:32,seekEpisodeStartTime:56,returnFocusToEpisodes:57,setPlaybackRate:58,setAutoQualityLimits:59},c6,[-1,-1,-1])}get initVideo(){return this.$$.ctx[51]}get play(){return this.$$.ctx[52]}get pause(){return this.$$.ctx[53]}get setMuted(){return this.$$.ctx[54]}get setVolume(){return this.$$.ctx[55]}get seekTime(){return this.$$.ctx[32]}get seekEpisodeStartTime(){return this.$$.ctx[56]}get returnFocusToEpisodes(){return this.$$.ctx[57]}get setPlaybackRate(){return this.$$.ctx[58]}get setAutoQualityLimits(){return this.$$.ctx[59]}},Wp=Cc;function _6(i){let e,t,n,o=i[2].default,r=Ee(o,i,i[1],null),l=[{xmlns:"http://www.w3.org/2000/svg"},{width:"57"},{height:"60"},{fill:"none"},{"aria-hidden":"true"},{"data-testid":"stub-icon"},{role:"img"},i[0]],a={};for(let s=0;s<l.length;s+=1)a=oe(a,l[s]);return{c(){e=N("svg"),r&&r.c(),t=N("path"),c(t,"fill","currentColor"),c(t,"d","M38.245 6c3.566 0 4.859.371 6.162 1.069a7.27 7.27 0 0 1 3.025 3.024c.697 1.303 1.068 2.597 1.068 6.163v23.489c0 3.566-.371 4.859-1.069 6.162a7.27 7.27 0 0 1-3.024 3.025C43.104 49.629 41.811 50 38.245 50h-19.49c-3.565 0-4.859-.371-6.162-1.069a7.27 7.27 0 0 1-3.024-3.024C8.87 44.604 8.5 43.311 8.5 39.745v-23.49c0-3.565.371-4.859 1.069-6.162a7.27 7.27 0 0 1 3.024-3.024C13.896 6.37 15.19 6 18.756 6zm.314 3H18.756c-2.799 0-3.761.186-4.749.714a4.27 4.27 0 0 0-1.793 1.793c-.508.95-.7 1.876-.713 4.434L11.5 39.744c0 2.799.186 3.761.714 4.749a4.27 4.27 0 0 0 1.793 1.793c.988.528 1.95.714 4.749.714h19.489c2.798 0 3.76-.186 4.748-.714a4.27 4.27 0 0 0 1.793-1.793c.528-.988.714-1.95.714-4.748v-23.49c0-2.798-.186-3.76-.714-4.748a4.27 4.27 0 0 0-1.793-1.793c-.95-.508-1.876-.7-4.434-.713zM19.22 38c.445 0 .607.046.77.134a.9.9 0 0 1 .377.378c.088.163.134.324.134.77v1.436c0 .446-.046.607-.134.77a.9.9 0 0 1-.378.378c-.162.088-.324.134-.77.134h-1.436c-.446 0-.608-.046-.77-.134a.9.9 0 0 1-.378-.378c-.088-.163-.134-.324-.134-.77v-1.436c0-.446.046-.607.134-.77a.9.9 0 0 1 .378-.378c.162-.088.324-.134.77-.134h1.436zm20 0c.445 0 .606.046.77.134a.9.9 0 0 1 .377.378c.088.163.134.324.134.77v1.436c0 .446-.046.607-.134.77a.9.9 0 0 1-.378.378c-.163.088-.324.134-.77.134h-1.436c-.446 0-.607-.046-.77-.134a.9.9 0 0 1-.378-.378c-.088-.163-.134-.324-.134-.77v-1.436c0-.446.046-.607.134-.77a.9.9 0 0 1 .378-.378c.163-.088.324-.134.77-.134zm-20-8c.445 0 .607.046.77.134a.9.9 0 0 1 .377.378c.088.162.134.324.134.77v1.436c0 .446-.046.607-.134.77a.9.9 0 0 1-.378.378c-.162.088-.324.134-.77.134h-1.436c-.446 0-.608-.046-.77-.134a.9.9 0 0 1-.378-.378c-.088-.163-.134-.324-.134-.77v-1.436c0-.446.046-.608.134-.77a.9.9 0 0 1 .378-.378c.162-.088.324-.134.77-.134h1.436zm20 0c.445 0 .606.046.77.134a.9.9 0 0 1 .377.378c.088.162.134.324.134.77v1.436c0 .446-.046.607-.134.77a.9.9 0 0 1-.378.378c-.163.088-.324.134-.77.134h-1.436c-.446 0-.607-.046-.77-.134a.9.9 0 0 1-.378-.378c-.088-.163-.134-.324-.134-.77v-1.436c0-.446.046-.608.134-.77a.9.9 0 0 1 .378-.378c.163-.088.324-.134.77-.134zm-20-8c.445 0 .607.046.77.134a.9.9 0 0 1 .377.378c.088.162.134.324.134.77v1.436c0 .446-.046.608-.134.77a.9.9 0 0 1-.378.378c-.162.088-.324.134-.77.134h-1.436c-.446 0-.608-.046-.77-.134a.9.9 0 0 1-.378-.378c-.088-.162-.134-.324-.134-.77v-1.436c0-.446.046-.608.134-.77a.9.9 0 0 1 .378-.378c.162-.088.324-.134.77-.134h1.436zm20 0c.445 0 .606.046.77.134a.9.9 0 0 1 .377.378c.088.162.134.324.134.77v1.436c0 .446-.046.608-.134.77a.9.9 0 0 1-.378.378c-.163.088-.324.134-.77.134h-1.436c-.446 0-.607-.046-.77-.134a.9.9 0 0 1-.378-.378c-.088-.162-.134-.324-.134-.77v-1.436c0-.446.046-.608.134-.77a.9.9 0 0 1 .378-.378c.163-.088.324-.134.77-.134zm-20-8c.445 0 .607.046.77.134a.9.9 0 0 1 .377.378c.088.162.134.324.134.77v1.436c0 .446-.046.608-.134.77a.9.9 0 0 1-.378.378c-.162.088-.324.134-.77.134h-1.436c-.446 0-.608-.046-.77-.134a.9.9 0 0 1-.378-.378c-.088-.162-.134-.324-.134-.77v-1.436c0-.446.046-.607.134-.77a.9.9 0 0 1 .378-.378c.162-.088.324-.134.77-.134h1.436zm20 0c.445 0 .606.046.77.134a.9.9 0 0 1 .377.378c.088.162.134.324.134.77v1.436c0 .446-.046.608-.134.77a.9.9 0 0 1-.378.378c-.163.088-.324.134-.77.134h-1.436c-.446 0-.607-.046-.77-.134a.9.9 0 0 1-.378-.378c-.088-.162-.134-.324-.134-.77v-1.436c0-.446.046-.607.134-.77a.9.9 0 0 1 .378-.378c.163-.088.324-.134.77-.134z"),ge(e,a)},m(s,u){C(s,e,u),r&&r.m(e,null),p(e,t),n=!0},p(s,[u]){r&&r.p&&(!n||u&2)&&Ve(r,o,s,s[1],n?Me(o,s[1],u,null):Ae(s[1]),null),ge(e,a=Le(l,[{xmlns:"http://www.w3.org/2000/svg"},{width:"57"},{height:"60"},{fill:"none"},{"aria-hidden":"true"},{"data-testid":"stub-icon"},{role:"img"},u&1&&s[0]]))},i(s){n||(d(r,s),n=!0)},o(s){_(r,s),n=!1},d(s){s&&k(e),r&&r.d(s)}}}function h6(i,e,t){let{$$slots:n={},$$scope:o}=e;return i.$$set=r=>{t(0,e=oe(oe({},e),he(r))),"$$scope"in r&&t(1,o=r.$$scope)},e=he(e),[e,o,n]}var Sc=class extends j{constructor(e){super(),W(this,e,h6,_6,U,{})}},Gp=Sc;function g6(i){let e,t;return e=new Gp({props:{style:i[0]}}),{c(){D(e.$$.fragment)},m(n,o){R(e,n,o),t=!0},p(n,[o]){let r={};o&1&&(r.style=n[0]),e.$set(r)},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){_(e.$$.fragment,n),t=!1},d(n){B(e,n)}}}function b6(i,e,t){let n,{isWhite:o=!1}=e;return i.$$set=r=>{"isWhite"in r&&t(1,o=r.isWhite)},i.$$.update=()=>{if(i.$$.dirty&2)e:t(0,n=o?"color: #fff;":"color: #909499;")},[n,o]}var Tc=class extends j{constructor(e){super(),W(this,e,b6,g6,U,{isWhite:1})}},Qp=Tc;function v6(i){Te(i,"svelte-1y9fytq",".playerStub.svelte-1y9fytq{width:100%;height:100%;background-color:#222;display:flex;justify-content:center;align-items:center;position:relative;background-position:center;background-size:cover;font-family:-apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif}.title.svelte-1y9fytq{position:absolute;left:0;top:0;width:100%;font-size:15px;color:#fff;box-sizing:border-box;padding:18px 20px 10px;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}")}function Yp(i){let e,t;return{c(){e=P("div"),t=Be(i[0]),c(e,"class","title svelte-1y9fytq")},m(n,o){C(n,e,o),p(e,t)},p(n,o){o&1&&Ze(t,n[0])},d(n){n&&k(e)}}}function Zp(i){let e,t;return e=new Qp({props:{isWhite:!!i[1]}}),{c(){D(e.$$.fragment)},m(n,o){R(e,n,o),t=!0},p(n,o){let r={};o&2&&(r.isWhite=!!n[1]),e.$set(r)},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){_(e.$$.fragment,n),t=!1},d(n){B(e,n)}}}function y6(i){let e,t,n,o,r=i[0]&&Yp(i),l=(!i[0]||!i[1])&&Zp(i);return{c(){e=P("div"),r&&r.c(),t=O(),l&&l.c(),c(e,"class","playerStub svelte-1y9fytq"),c(e,"style",n=i[1]?`background-image: url('${i[1]}')`:"")},m(a,s){C(a,e,s),r&&r.m(e,null),p(e,t),l&&l.m(e,null),o=!0},p(a,[s]){a[0]?r?r.p(a,s):(r=Yp(a),r.c(),r.m(e,t)):r&&(r.d(1),r=null),!a[0]||!a[1]?l?(l.p(a,s),s&3&&d(l,1)):(l=Zp(a),l.c(),d(l,1),l.m(e,null)):l&&(ce(),_(l,1,1,()=>{l=null}),fe()),(!o||s&2&&n!==(n=a[1]?`background-image: url('${a[1]}')`:""))&&c(e,"style",n)},i(a){o||(d(l),o=!0)},o(a){_(l),o=!1},d(a){a&&k(e),r&&r.d(),l&&l.d()}}}function w6(i,e,t){let{title:n}=e,{thumbUrl:o}=e;return i.$$set=r=>{"title"in r&&t(0,n=r.title),"thumbUrl"in r&&t(1,o=r.thumbUrl)},[n,o]}var Pc=class extends j{constructor(e){super(),W(this,e,w6,y6,U,{title:0,thumbUrl:1},v6)}},Xp=Pc;var bi=require("@vkontakte/videoplayer-shared"),nN=require("@vkontakte/videoplayer-core"),wl=require("@vkontakte/videoplayer-statistics");var _s=class{isSupported(){return"mediaSession"in navigator}setMetaData({title:e,artist:t="",thumbUrl:n=""}){this.isSupported()&&(navigator.mediaSession.metadata=new MediaMetadata({title:e,artist:t,artwork:[{src:n,sizes:"96x96",type:"image/png"},{src:n,sizes:"128x128",type:"image/png"},{src:n,sizes:"192x192",type:"image/png"},{src:n,sizes:"256x256",type:"image/png"},{src:n,sizes:"384x384",type:"image/png"},{src:n,sizes:"512x512",type:"image/png"}]}))}updateActionHandlers(e){this.resetActionHandlers(),this.setActionHandlers(e)}resetActionHandlers(){let e=[["play",null],["pause",null],["stop",null],["nexttrack",null],["previoustrack",null],["seekto",t=>null],["seekbackward",t=>null],["seekforward",t=>null]];this.setActionHandlers(e)}setActionHandlers(e){if(this.isSupported())for(let[t,n]of e)try{navigator.mediaSession.setActionHandler(t,n)}catch(o){throw new Error(`The media session action "${t}" is not supported yet.`)}}};var ko=require("@vkontakte/videoplayer-shared");function k6(i){let e,t,n,o,r,l=i[2].default,a=Ee(l,i,i[1],null),s=[{xmlns:"http://www.w3.org/2000/svg"},{width:"57"},{height:"56"},{fill:"none"},{"aria-label":"dummy-image"},{"data-testid":"pip-dummy-icon"},{role:"img"},i[0]],u={};for(let f=0;f<s.length;f+=1)u=oe(u,s[f]);return{c(){e=N("svg"),a&&a.c(),t=N("g"),n=N("path"),o=N("path"),c(n,"d","m30.744 4 .744.005c2.981.046 4.526.385 6.127 1.24a8.77 8.77 0 0 1 3.475 3.347l.174.312.15.292c.772 1.553 1.066 3.18 1.085 6.251v9.045a1.5 1.5 0 0 1-3 .016l-.008-9.651c-.04-2.032-.228-3.12-.627-4.035l-.126-.27-.13-.252A5.77 5.77 0 0 0 36.2 7.891c-1.187-.635-2.339-.873-5.115-.89L22.255 7c-2.737 0-4.003.2-5.071.698l-.133.064-.251.13a5.77 5.77 0 0 0-2.409 2.408c-.635 1.187-.873 2.339-.89 5.114l-.001 20.83c0 2.738.2 4.004.698 5.072l.064.133.13.251a5.77 5.77 0 0 0 2.408 2.409c1.1.588 2.134.825 4.438.88l.323.006 3.695.005H26a1.5 1.5 0 0 1 0 3h-.756l-3.718-.005c-2.989-.047-4.526-.377-6.14-1.24a8.77 8.77 0 0 1-3.476-3.347l-.174-.312-.15-.292c-.731-1.472-1.036-3.016-1.08-5.803l-.006-.756v-20.49l.005-.743c.046-2.981.385-4.526 1.24-6.127a8.77 8.77 0 0 1 3.347-3.475l.312-.174.292-.15c1.472-.731 3.016-1.036 5.803-1.08L22.256 4z"),c(o,"d","M30.5 33.8c0-1.68 0-2.52.327-3.162a3 3 0 0 1 1.311-1.311C32.78 29 33.62 29 35.3 29h6.4c1.68 0 2.52 0 3.162.327a3 3 0 0 1 1.311 1.311c.327.642.327 1.482.327 3.162v13.4c0 1.68 0 2.52-.327 3.162a3 3 0 0 1-1.311 1.311C44.22 52 43.38 52 41.7 52h-6.4c-1.68 0-2.52 0-3.162-.327a3 3 0 0 1-1.311-1.311C30.5 49.72 30.5 48.88 30.5 47.2z"),c(t,"fill","#fff"),ge(e,u)},m(f,m){C(f,e,m),a&&a.m(e,null),p(e,t),p(t,n),p(t,o),r=!0},p(f,[m]){a&&a.p&&(!r||m&2)&&Ve(a,l,f,f[1],r?Me(l,f[1],m,null):Ae(f[1]),null),ge(e,u=Le(s,[{xmlns:"http://www.w3.org/2000/svg"},{width:"57"},{height:"56"},{fill:"none"},{"aria-label":"dummy-image"},{"data-testid":"pip-dummy-icon"},{role:"img"},m&1&&f[0]]))},i(f){r||(d(a,f),r=!0)},o(f){_(a,f),r=!1},d(f){f&&k(e),a&&a.d(f)}}}function C6(i,e,t){let{$$slots:n={},$$scope:o}=e;return i.$$set=r=>{t(0,e=oe(oe({},e),he(r))),"$$scope"in r&&t(1,o=r.$$scope)},e=he(e),[e,o,n]}var Ic=class extends j{constructor(e){super(),W(this,e,C6,k6,U,{})}},Jp=Ic;function S6(i){Te(i,"svelte-1pbsod4",".player-pip-dummy.svelte-1pbsod4{width:100%;height:100%;background-color:#19191A;display:flex;flex-direction:column;justify-content:center;align-items:center;font-family:-apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif}.player-pip-dummy.is-pip-api.svelte-1pbsod4{position:relative}.dummy-image.svelte-1pbsod4 svg{transform:scale(1.07143)}.dummy-image.desktop.svelte-1pbsod4{transform:scale(1.07143) rotate(-90deg) rotateY(180deg)}.title.svelte-1pbsod4{font-size:16px;color:#fff;padding:18px 20px 10px;text-align:center}")}function T6(i){let e,t,n,o,r,l,a;return n=new Jp({}),{c(){e=P("div"),t=P("div"),D(n.$$.fragment),o=O(),r=P("span"),l=Be(i[0]),c(t,"class","dummy-image svelte-1pbsod4"),z(t,"desktop",!i[1]),c(r,"class","title svelte-1pbsod4"),c(e,"class","player-pip-dummy svelte-1pbsod4"),z(e,"is-pip-api",i[2])},m(s,u){C(s,e,u),p(e,t),R(n,t,null),p(e,o),p(e,r),p(r,l),a=!0},p(s,[u]){(!a||u&2)&&z(t,"desktop",!s[1]),(!a||u&1)&&Ze(l,s[0])},i(s){a||(d(n.$$.fragment,s),a=!0)},o(s){_(n.$$.fragment,s),a=!1},d(s){s&&k(e),B(n)}}}function P6(i,e,t){let n,o,r=nt(),l=!!r.webApi.pictureInPictureApi,a=r.interfaceLanguage$;F(i,a,f=>t(5,n=f));let s=r.ui.isMobile;F(i,s,f=>t(1,o=f));let u;return i.$$.update=()=>{if(i.$$.dirty&32)e:t(0,u=n&&Q("pip_dummy_title"))},[u,o,l,a,s,n]}var Ec=class extends j{constructor(e){super(),W(this,e,P6,T6,U,{},S6)}},xp=Ec;var I6=460,E6=280,zl=class{constructor(){this.info={isActive$:new ko.ValueSubject(!1),type:1}}isSupported(){let e=(0,ko.getCurrentBrowser)().browser===ko.CurrentClientBrowser.Yandex,{isEmbed:t}=(0,ko.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(){return ut(this,null,function*(){var r,l;if(!this.isSupported()||!this.playerDomElement||!this.playerParentShadowRoot)return;this.pipWindow=yield documentPictureInPicture.requestWindow({width:I6,height:E6,copyStyleSheets:!0}),this.pipWindow.document.body.style.margin="0";let e=[...this.playerParentShadowRoot.styleSheets].map(a=>[...a.cssRules].map(s=>s.cssText).join(" ")).filter(Boolean).join(`
51
+ `),t=document.createElement("style");t.textContent=e;let n=this.createStretchedContainer(),o=n.attachShadow({mode:"open"});o.append(t),o.append(this.playerDomElement),this.playerDummyElement=new xp({target:this.playerParentShadowRoot,context:this.svelteContext}),(r=this.pipWindow)==null||r.document.body.append(n),this.info.isActive$.next(!0),(l=this.pipWindow)==null||l.addEventListener("unload",a=>{!this.playerDomElement||!this.playerParentShadowRoot||!this.playerDummyElement||(this.playerDummyElement.$destroy(),this.playerParentShadowRoot.append(this.playerDomElement),this.info.isActive$.next(!1))})})}remove(){return ut(this,null,function*(){return new Promise(e=>{var t;(t=documentPictureInPicture.window)==null||t.close(),e()})})}dispose(){return ut(this,null,function*(){yield this.remove()})}createStretchedContainer(){let e=document.createElement("div");return e.style.width="100%",e.style.height="100%",e}};function $p(i){return i instanceof zl}var hs=class{static getLatestSupportedVersion(){let e=new Oo,t=new zl;if(t.isSupported())return t;if(e.isSupported())return e}};function Mc(i,e){var o,r;let t=new Set([...Object.keys(i),...Object.keys(e)]),n={};for(let l of t)n[l]=(r=(o=e[l])!=null?o:i[l])!=null?r:void 0;return n}var e_="Inner error. Unexpectedly root annotation container null reference exception",t_="Annotation with such name already exists",i_="Annotation with such name does not exist";var bl=class extends Error{constructor(e){super(e),this.name="AnnotationError"}};var vl=require("@vkontakte/videoplayer-shared"),M6="1",V6=100,gs=class{constructor(e){this.annotations=new Map;this.subscriptions=new vl.Subscription;this.rootAnnotationsContainer=e;let t=(0,vl.throttleFn)(()=>{for(let n of this.annotations.values())this.isElementExceedsBoundaries(n,this.playerSize.width,this.playerSize.height)?n.style.visibility="hidden":n.style.visibility="visible"},V6);this.subscriptions.add((0,vl.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 bl(e_);if(this.annotations.has(e))throw new bl(t_);t.style.zIndex=(n=t.style.zIndex)!=null?n:M6,t.style.position="absolute",this.rootAnnotationsContainer.append(t),this.annotations.set(e,t)}get(e){let t=this.annotations.get(e);if(!t)throw new bl(i_);return t}remove(e){let t=this.get(e);this.annotations.delete(e)&&t.remove()}clear(){for(let e in this.annotations.keys())this.remove(e)}destroy(){this.annotations.clear(),this.subscriptions.unsubscribe(),this.mutationObserver.disconnect(),this.rootAnnotationsContainer=null}isElementExceedsBoundaries(e,t,n){let o=e.offsetTop,r=e.offsetLeft,l=e.offsetWidth,a=e.offsetHeight;return o<0||r<0||r+l>t||o+a>n}registryRootContainer(e){}addLayer(e){return new HTMLElement}getLayer(e){}removeLayer(e){}clearLayer(e){}detach(){}reattach(){}};var yl=require("@vkontakte/videoplayer-shared"),to=class{init({store:e,microStores:t,config:n}){return(0,yl.assertNonNullable)(e),(0,yl.assertNonNullable)(t),(0,yl.assertNonNullable)(n),this.subscription=new yl.Subscription,this.subscription}};var ql=class extends to{constructor(){super(...arguments);this.stateName="fakeIsPlaying$";this.state$=Dt(ot({},De(null)),{toggle:()=>this.state$.update(t=>!t)})}init(t){let n=super.init(t),{isInteractiveExpectation$:o}=t.store.state;return n.add(o.subscribe(r=>{this.state$.set(r?!0:null)})),n}};var Ul=class extends to{constructor(){super(...arguments);this.stateName="interactiveControlsOpacity$";this.state$=Dt(ot({},De(null)),{toggle:()=>this.state$.update(t=>!t)})}init(t){let n=super.init(t),{microStores:o,store:r}=t,{fakeIsPlaying$:l}=o,{isInteractiveExpectation$:a,isPlaying$:s}=r.state,{controlsVisible:u,isMobile:f}=r.ui,m=it(f),h=()=>m&&it(u);return n.add(u.subscribe(y=>{if(!m)return;let b=it(l);it(s)?this.state$.set(y):b!==null&&this.state$.set(!b||y)})),n.add(s.subscribe(y=>{this.state$.set(!y||h())})),n.add(l.subscribe(y=>{if(y===null)return;let b=it(a);if(h()){this.state$.set(!0);return}b&&this.state$.set(!y)})),n}};var Kl=class extends to{constructor(){super(...arguments);this.stateName="seekToInteractiveDisabledTooltip$";this.state$=De("tooltip_chapter_without_interactive")}init(t){let n=super.init(t),{store:o}=t;return n.add(o.state.interactiveEpisodes$.subscribe(r=>{r.length&&(r.every(l=>l.completed)?this.state$.set("tooltip_interactive_of_chapter_completed"):this.state$.set("tooltip_disabled_when_interactive"))})),n}};var n_=require("@vkontakte/videoplayer-shared");var Vc=De(!1),bs=null,jl=class extends to{constructor(){super(...arguments);this.stateName="showInteractiveTimeIndicatorTooltip$";this.state$=Dt(ot({},Vc),{set:(t,n=!1)=>{t!==it(Vc)&&(this.clearTimeout(),Vc.set(t),!t&&bs&&(bs=!1),t&&n&&(this.timeout=setTimeout(()=>{this.state$.set(!1)},3e3)))},clearTimeout:()=>this.clearTimeout()})}init(t){let n=super.init(t),{store:o,config:r}=t,{isInteractiveTime$:l,isPlaying$:a}=o.state,s=o.ui.controlsVisible,{interactiveTimeIndicator:u}=o.ui.controls;n.add(s.subscribe(m=>{it(l)&&m&&this.state$.set(!1)}));let f=(r==null?void 0:r.interactiveData)||{tooltipHelpHintActive:!1};return n.add((0,n_.combine)({isPlaying$:a,isInteractiveTime$:l,interactiveTimeIndicator:u}).subscribe(({isPlaying$:m,isInteractiveTime$:h,interactiveTimeIndicator:y})=>{var b,S;if(!(!m||!(y!=null&&y.isDisplayed))){if(!h)return this.state$.set(!1);f.tooltipHelpHintActive&&bs===null&&(bs=!0,f.tooltipHelpHintActive=!1,this.state$.set(!0),(S=(b=o.callbacks)==null?void 0:b.onInteractiveTimeIndicatorHintDeactivated)==null||S.call(b))}})),n}clearTimeout(){window.clearTimeout(this.timeout)}};var o_=()=>[ql,Ul,Kl,jl].reduce(({subscribers:i,stores:e},t)=>{let n=new t;return{subscribers:[...i,n],stores:Dt(ot({},e),{[n.stateName]:n.state$})}},{subscribers:[],stores:{}});var A6={preload:!0,autoplay:!1,repeat:!1,fromTime:0,canRewindLive:!0,showAds:!1,interfaceLanguage:bi.InterfaceLanguage.RU,logoClickable:!1,logoHidden:!1,isMobile:(0,bi.isMobile)(),isMediaSessionEnabled:!0,isPictureInPictureEnabled:!0,isAudioDisabled:!1,callbacks:{uiInfo:{}},tuningConfig:{configName:[]},saveRate:!0,volumeMultiplier:1},vs=class extends HTMLElement{constructor(){var t;super();this.currentPlayingVideoIndex=0;this.needToRepeatPlaylist=!1;this.videoConfig=void 0;this.pictureInPictureApi=void 0;this.mediaSessionApi=void 0;this.unsubscribePlayerPhaseSubscription=void 0;this.annotationsApi=void 0;this.prevIsid=void 0;this.isInited=!1;this.logger=new bi.Logger,this.log=this.logger.createComponentLog("VKVideoPlayer"),this.subscription=new bi.Subscription,this.graphMadePause=!1,(t=window==null?void 0:window.videoPlayerConfig)!=null&&t.debugLogs&&this.subscription.add(this.logger.log$.subscribe(n=>{console.log("%c player web component ","background:#77dd77;",`${n.component}`,n.message)}))}connectedCallback(){var o,r;if(this.isInited)return;this.initPlayerRootContainers();let t=(o=this.getAttribute("stub-title"))!=null?o:void 0,n=(r=this.getAttribute("stub-thumb-url"))!=null?r:void 0;this.svelteStubComponent=new Xp({target:this.playerContainer,props:{title:t,thumbUrl:n}})}disconnectedCallback(){var t,n,o,r,l;(t=this.annotationsApi)==null||t.destroy(),(n=this.svelteRootComponent)==null||n.$destroy(),(o=this.svelteStubComponent)==null||o.$destroy(),this.subscription.unsubscribe(),(r=this.unsubscribePlayerPhaseSubscription)==null||r.call(this),(l=this.interactiveController)==null||l.destroy()}initPlayerRootContainers(){this.rootContainer=document.createElement("div"),this.rootContainer.style.position="relative",this.rootContainer.className="root-container",this.rootContainer.style.width="100%",this.rootContainer.style.height="100%";let t=document.createElement("div");t.style.position="absolute",t.className="shadow-root-container",t.style.width="100%",t.style.height="100%",this.shadowRootContainer=t,this._shadowRoot=t.attachShadow({mode:"open"}),this.playerContainer=document.createElement("div"),this.playerContainer.style.all="initial",this.playerContainer.style.display="block",this.playerContainer.style.contain="strict",this.playerContainer.style.width="100%",this.playerContainer.style.height="100%",this._shadowRoot.append(this.playerContainer),this.rootContainer.append(t),this.append(this.rootContainer)}needToShowNextPrevButtons(){return this.videoConfig?this.videoConfig.videos.length>1:!1}isNextButtonActive(){return this.videoConfig?this.needToShowNextPrevButtons()&&(this.currentPlayingVideoIndex<this.videoConfig.videos.length-1||this.needToRepeatPlaylist):!1}isPrevButtonActive(){return this.videoConfig?this.needToShowNextPrevButtons()&&(this.currentPlayingVideoIndex>0||this.needToRepeatPlaylist):!1}isControlDisabled(t){var o;let n=(o=this.store)==null?void 0:o.ui.controls.disabledControls$;return(n==null?void 0:n.includes(t))||!1}getNextVideoInfo(){if(!this.videoConfig)return{nextVideoTitle:void 0,nextVideoThumb:void 0};let t=this.videoConfig.videos[this.currentPlayingVideoIndex+1]||{};return{nextVideoTitle:t.title,nextVideoThumb:t.thumbUrl}}createPlayer(t,n={},o){var we,vt,Nt,Et,qe,Kt,zt,Zt,ti,Lt,Tt,me,Ue;if(!this.videoConfig)return;let{albumId:r,statPlace:l,statUserSalt:a,statAuthToken:s,statTrackCode:u,refreshStatAuthToken:f,preload:m,autoplay:h,volume:y,muted:b,fromTime:S,canRewindLive:w,supportLink:T,showAds:v,adsSlotId:g,adsParams:I={},adsPreviewParam:A,interfaceLanguage:q,logoClickable:K,logoHidden:re,isMobile:ae,isAudioDisabled:H,isLiveCatchUpMode:L,fullScreenTarget:x,failoverHosts:G,canDownload:J,callbacks:E,interactiveData:te,showThumbTimer:M,additionalButtons:ee=[],repeat:ke,saveRate:Ge,volumeMultiplier:Ke}=Mc(this.videoConfig,n),{sources:Je,title:We,thumbUrl:ve,unitedVideoId:X,isClip:be=!1,duration:Ne,adsParams:xe={},videoEpisodes:et,previewThumbsData:ye,subtitles:Re,live:je}=t,Xe=ot(ot({},I),xe),Ce=this.getNextVideoInfo(),Z={sources:Je,title:We,thumbUrl:ve,subtitles:Re,unitedVideoId:X,isClip:be,live:je,albumId:r,statPlace:l,autoplay:h,muted:b,volume:y,fromTime:S,canRewindLive:w,showAds:v,adsSlotId:g,adsParams:Xe,adsPreviewParam:A,duration:Ne,logoClickable:K,logoHidden:re,isMobile:ae,repeat:ke,showNextPrevButtons:this.needToShowNextPrevButtons(),nextButtonActive:this.isNextButtonActive(),prevButtonActive:this.isPrevButtonActive(),endScreenVideoTitle:Ce.nextVideoTitle,endScreenVideoThumb:Ce.nextVideoThumb,isOneVideoPlaylist:this.isOneVideoPlaylist()},Pe={pictureInPictureApi:this.pictureInPictureApi,annotationsApi:this.annotationsApi};this.log({message:`create player, props: ${JSON.stringify(Z)}`});let ue=this.uiConfig.features.statistics&&!!X,{pid:Ie}=((vt=(we=this.videoConfig)==null?void 0:we.interactiveData)==null?void 0:vt.projectInfo)||{};ue&&(this.statistics=new es(ot({movieId:X,albumId:r,place:l,trackCode:u,autoplay:(Nt=h&&!this.interactiveController)!=null?Nt:!1,mobile:ae,clip:be,refDomain:this.videoConfig.refDomain},Ie&&!this.isInited&&{projectId:Number(Ie)}),ot({refreshAuthToken:f,userSalt:a,config:this.statisticsConfig},this.interactiveController&&{useIsid:!0,isid:this.prevIsid}))),this.uiConfig.features.sentry&&this.uiConfig.sentry.dsn&&new No(this.uiConfig.sentry,{version:Bo,env:nr},{movieId:X,albumId:r,place:l,autoplay:(Et=h&&!this.interactiveController)!=null?Et:!1,mobile:ae,clip:be}),this.interactiveController&&((Kt=this.prevIsid)!=null||(this.prevIsid=(qe=this.statistics)==null?void 0:qe.oneStat.isid$.getValue())),this.sentry=ot(ot({},this.sentry),No.getInstance());let ft=!!te,mt=[],dt="tooltip_interactive_go_back_disabled_first";if(ft&&this.interactiveController){let Qe=this.interactiveController.state.isInitialChapter$.getValue(),tt=this.interactiveController.getHistoryState();Qe&&mt.push("REPLAY_BUTTON"),this.interactiveController.getIsSeekable().getValue()||mt.push("SEEK_TO_INTERACTIVE_BUTTON"),tt.hasPrevChapter$.getValue()||(mt.push("PLAY_PREV_CHAPTER_BUTTON"),Qe||(tt.isGoBackLimited$.getValue()?dt="tooltip_interactive_go_back_disabled_limit":dt="tooltip_interactive_go_back_disabled"))}let bt=()=>{var tt;this.isInited=!1,this.prevIsid=void 0;let Qe=(o==null?void 0:o.info.isEnded$.getValue())&&((tt=this.interactiveController)==null?void 0:tt.state.isEndChapter$.getValue());E.onReplayInteractiveVideo&&!Qe?E.onReplayInteractiveVideo():this.replayInteractiveVideo()};this.store=Tm({player:o,interfaceLanguage:q,videoId:X,isClip:be,isLiveCatchUpMode:L,isAudioDisabled:H,statAuthToken:s,callbacks:E,webApi:Pe,videoEpisodes:et,previewThumbsData:ye,canDownload:J,uiConfig:this.uiConfig,coreConfig:this.coreConfig,disabledControls:mt,isInteractive:ft,saveRate:Ge,interactiveRanges$:(zt=this.interactiveController)==null?void 0:zt.state.interactiveRanges$,isInteractiveTime$:(Zt=this.interactiveController)==null?void 0:Zt.state.isInteractiveTime$,replayInteractive:bt,playPrevChapterDisabledTooltip:dt,hasInteractiveBranches:!!((Lt=(ti=this.interactiveController)==null?void 0:ti.getChapterBranches())!=null&&Lt.length),additionalButtons:this.uiConfig.features.additionalButtons?ee:[],looped:ke&&this.videoConfig.videos.length===1,statistics:this.statistics});let{stores:wt}=this.microStoresRoot=o_();this.subscription.add(this.store.state.currentFormat$.subscribe(Qe=>{var tt;return(tt=E==null?void 0:E.onCurrentFormatChanged)==null?void 0:tt.call(E,Qe)})),this.subscription.add(wt.interactiveControlsOpacity$.subscribe(Qe=>{var tt;Qe!==null&&((tt=this==null?void 0:this.interactiveController)==null||tt.setDisabledControls(Qe))})),this.subscription.add(this.store.state.throughputEstimation$.subscribe(Qe=>{var tt;return(tt=E==null?void 0:E.onThroughputEstimationChanged)==null?void 0:tt.call(E,Qe)})),this.subscription.add(this.store.state.trafficSavingEnabled$.subscribe(Qe=>{var tt;return(tt=E==null?void 0:E.onTrafficSavingEnabledChanged)==null?void 0:tt.call(E,Qe)})),this.subscription.add(this.store.state.currentPlaybackRate$.subscribe(Qe=>{var tt;return(tt=E==null?void 0:E.onCurrentPlaybackRateChanged)==null?void 0:tt.call(E,Qe)})),this.subscription.add(this.store.state.volume$.subscribe(Qe=>{var tt;return(tt=E==null?void 0:E.onVolumeChange)==null?void 0:tt.call(E,Qe)})),this.subscription.add(this.store.state.muted$.subscribe(Qe=>{var tt,_t;return Qe?(tt=E==null?void 0:E.onMute)==null?void 0:tt.call(E):(_t=E==null?void 0:E.onUnmute)==null?void 0:_t.call(E)})),this.subscription.add(this.store.state.videoBitrate$.subscribe(Qe=>{var tt;return(tt=E==null?void 0:E.onVideoBitrateChanged)==null?void 0:tt.call(E,Qe)})),this.subscription.add(this.store.state.isInteractiveTime$.subscribe(Qe=>{var _t;let tt=(_t=this.store)==null?void 0:_t.ui.controls.disabledControls$;tt&&(Qe&&!tt.includes(El)&&tt.add(El),Qe||tt.remove(El))})),this.subscription.add(this.store.ui.isFullscreen.subscribe(Qe=>ut(this,null,function*(){if(!((0,bi.getCurrentBrowser)().browser===bi.CurrentClientBrowser.SamsungBrowser)||!Qe)return;document.fullscreenElement===this.shadowRootContainer&&this.initPlayer(this.videoConfig)}))),this.initMediaSession(),this.interactiveController&&ue&&this.initInteractivesStatistics(),this.svelteRootComponent=new Wp({target:this.playerContainer,props:{interactiveContainer:this.interactiveContainer,sources:Je,store:this.store,microStoresRoot:this.microStoresRoot,videoConfig:this.videoConfig,uiConfig:this.uiConfig,title:We,thumbUrl:ve,subtitles:Re,live:je,preload:m,autoplay:h,muted:b,volume:y,fromTime:S,canRewindLive:w,supportLink:T,showAds:v,adsSlotId:g,adsParams:Xe,adsPreviewParam:A,duration:Ne,logoClickable:K,logoHidden:re,isMobile:ae,failoverHosts:G,fullScreenTarget:x,saveRate:Ge,shadowRootContainer:this.shadowRootContainer,showMiniTimer:M,outerContainerRef:this.rootContainer,showNextPrevButtons:this.needToShowNextPrevButtons(),nextButtonActive:this.isNextButtonActive(),prevButtonActive:this.isPrevButtonActive(),endScreenVideoTitle:Ce.nextVideoTitle,endScreenVideoThumb:Ce.nextVideoThumb,isOneVideoPlaylist:this.isOneVideoPlaylist(),playNextVideo:()=>this.playNextVideo(),playPrevVideo:()=>this.playPrevVideo(),repeatPlaylist:()=>this.repeatPlaylist(),playPrevChapter:()=>this.playPrevChapter(),seekToInteractive:()=>this.seekToInteractive(),toggleGraph:()=>this.toggleGraph(),volumeMultiplier:Ke}}),this.addPlayerInfoSubscriptions(),this.isInited||(this.isInited=!0,(Ue=(me=(Tt=this.videoConfig)==null?void 0:Tt.callbacks)==null?void 0:me.onInited)==null||Ue.call(me))}addPlayerInfoSubscriptions(){var r;let t=this.store;if(!t)return;let n=(r=this.videoConfig)==null?void 0:r.callbacks;n&&this.subscription.add(t.playerPhase.subscribe(l=>{var a;return(a=n.onPlayerPhaseChanged)==null?void 0:a.call(n,l)})).add(t.state.playbackState$.subscribe(l=>{var a;return(a=n.onPlaybackStateChanged)==null?void 0:a.call(n,l)})).add(t.state.isLive$.subscribe(l=>{var a;return(a=n.onIsLiveChanged)==null?void 0:a.call(n,l)})).add(t.state.isActiveLive$.subscribe(l=>{var a;return(a=n.onIsActiveLiveChanged)==null?void 0:a.call(n,l)})).add(t.state.isAudioAvailable$.subscribe(l=>{var a;return(a=n.onIsAudioAvailableChanged)==null?void 0:a.call(n,l)})).add(t.state.currentQuality$.subscribe(l=>{var a;return(a=n.onCurrentQualityChanged)==null?void 0:a.call(n,l)})).add(t.state.availableQualities$.subscribe(l=>{var a;return(a=n.onAvailableQualitiesChanged)==null?void 0:a.call(n,l.map(({value:s})=>s).filter(s=>s!=="auto"))})).add(t.ui.isPictureInPictureActive$.subscribe(l=>{var a,s;return l?(a=n.onPiPEnter)==null?void 0:a.call(n):(s=n.onPiPExit)==null?void 0:s.call(n)}));let o=n==null?void 0:n.uiInfo;o&&this.subscription.add(t.ui.controlsVisible.subscribe(l=>{var a;return(a=o.onControlsVisibleChanged)==null?void 0:a.call(o,l)})).add(t.ui.isMobile.subscribe(l=>{var a;return(a=o.onIsMobileChanged)==null?void 0:a.call(o,l)})).add(t.ui.playerSize.subscribe(l=>{var a;return(a=o.onPlayerSizeChanged)==null?void 0:a.call(o,l)})).add(t.ui.controls.prevButton.subscribe(l=>{var a;return(a=o.onPrevButtonChanged)==null?void 0:a.call(o,l)})).add(t.ui.controls.playButton.subscribe(l=>{var a;return(a=o.onPlayButtonChanged)==null?void 0:a.call(o,l)})).add(t.ui.controls.replayButton.subscribe(l=>{var a;return(a=o.onReplayButtonChanged)==null?void 0:a.call(o,l)})).add(t.ui.controls.nextButton.subscribe(l=>{var a;return(a=o.onNextButtonChanged)==null?void 0:a.call(o,l)})).add(t.ui.controls.playPrevChapterButton.subscribe(l=>{var a;return(a=o.onPlayPrevChapterChanged)==null?void 0:a.call(o,l)})).add(t.ui.controls.seekToInteractiveButton.subscribe(l=>{var a;return(a=o.onSeekToInteractiveButtonChanged)==null?void 0:a.call(o,l)})).add(t.ui.controls.interactiveGraphButton.subscribe(l=>{var a;return(a=o.onGraphButtonChanged)==null?void 0:a.call(o,l)})).add(t.ui.controls.liveButton.subscribe(l=>{var a;return(a=o.onLiveButtonChanged)==null?void 0:a.call(o,l)})).add(t.ui.controls.time.subscribe(l=>{var a;return(a=o.onTimeUpdateChanged)==null?void 0:a.call(o,l)})).add(t.ui.controls.episodes.subscribe(l=>{var a;return(a=o.onEpisodesChanged)==null?void 0:a.call(o,l)})).add(t.ui.controls.subtitles.subscribe(l=>{var a;return(a=o.onSubtitlesChanged)==null?void 0:a.call(o,l)})).add(t.ui.controls.settings.subscribe(l=>{var a;return(a=o.onSettingsChanged)==null?void 0:a.call(o,l)})).add(t.ui.controls.fullscreen.subscribe(l=>{var a;return(a=o.onFullscreenChanged)==null?void 0:a.call(o,l)})).add(t.ui.controls.chromecast.subscribe(l=>{var a;return(a=o.onChromecastChanged)==null?void 0:a.call(o,l)})).add(t.ui.controls.pip.subscribe(l=>{var a;return(a=o.onPipChanged)==null?void 0:a.call(o,l)})).add(t.ui.controls.vkLogo.subscribe(l=>{var a;return(a=o.onVkLogoChanged)==null?void 0:a.call(o,l)})).add(t.ui.controls.interactiveTimeIndicator.subscribe(l=>{var a;return(a=o.onInteractiveTimeIndicatorChanged)==null?void 0:a.call(o,l)}))}playNextVideo(){var n;if(!this.videoConfig)return;let t=!0;if((n=this.videoConfig.callbacks)!=null&&n.onNextVideoClick)try{t=this.videoConfig.callbacks.onNextVideoClick()}catch(o){this.log({message:"onNextVideoClick callback failed to execute"})}t&&(this.currentPlayingVideoIndex++,this.currentPlayingVideoIndex>=this.videoConfig.videos.length&&(this.currentPlayingVideoIndex=0),this.log({message:`play next video, index: ${this.currentPlayingVideoIndex}`}),this.createPlayerWithCurrentVideo())}playPrevVideo(){var n;if(!this.videoConfig)return;let t=!0;if((n=this.videoConfig.callbacks)!=null&&n.onPrevVideoClick)try{t=this.videoConfig.callbacks.onPrevVideoClick()}catch(o){this.log({message:"onPrevVideoClick callback failed to execute"})}t&&(this.currentPlayingVideoIndex--,this.currentPlayingVideoIndex<0&&(this.currentPlayingVideoIndex=this.videoConfig.videos.length-1),this.log({message:`play prev video, index: ${this.currentPlayingVideoIndex}`}),this.createPlayerWithCurrentVideo())}repeatPlaylist(){this.currentPlayingVideoIndex=0,this.log({message:"repeat playlist"}),this.createPlayerWithCurrentVideo()}createPlayerWithCurrentVideo(t,n=!0){var r;if(!this.videoConfig)return;let o=this.videoConfig.videos[this.currentPlayingVideoIndex];if(!o){this.log({message:"no next video"});return}this.isInited&&(0,bi.isNonNullable)(o.unitedVideoId)&&this.store.actions.internal.nextMovie(o.unitedVideoId),(r=this.svelteRootComponent)==null||r.$destroy(),this.createPlayer(o,{autoplay:n,fromTime:0},t)}playPrevChapter(){var t;(t=this.interactiveController)==null||t.playPrevChapter()}seekToInteractive(){var n;let t=(n=this.interactiveController)==null?void 0:n.getNextInteractiveStartTime();typeof t=="number"&&this.seekTime(t/1e3)}toggleGraph(){var f,m;if(!this.isInited)return;let t=this.store,{isEnded$:n,playbackState$:o,graphIsOpened$:r}=t.state,{disabledControls$:l}=t.ui.controls,a=it(n),s=it(o);it(r)?(r.set(!1),(f=this.interactiveController)==null||f.toggleGraphView(!1),l.remove(As),!a&&this.graphMadePause&&this.play()):(this.graphMadePause=s==="playing",r.set(!0),(m=this.interactiveController)==null||m.toggleGraphView(!0),l.add(As),!a&&this.graphMadePause&&this.pause())}initInteractives(){return ut(this,null,function*(){var t,n,o,r;if((t=this.videoConfig)!=null&&t.interactiveData)try{let{Interactives:l,EVENT_NAMES:a,CustomError:s}=yield import("@vkontakte/videoplayer-interactive");this.interactiveContainer=document.createElement("div"),this.interactiveContainer.classList.add("interactiveContainer");let u=(n=this.store)==null?void 0:n.interfaceLanguage$,f=u?it(u):this.videoConfig.interfaceLanguage,{projectInfo:m,initChapterId:h,historyApi:y,videoLoader:b}=this.videoConfig.interactiveData;this.interactiveController=new l({parentElement:this.interactiveContainer,fullscreenTargetElement:this.playerContainer,lang:f,graph:this.uiConfig.features.interactiveGraph,projectInfo:m,initChapterId:h,historyApi:y,vkVideoLoader:b,lastFrame:this.uiConfig.features.interactiveLastFrame,permanentTextControls:this.uiConfig.features.interactiveTextPermanent,initSeamless:!0,config:this.uiConfig.interactive,coreConfig:this.coreConfig});let{isInteractiveExpectation$:S}=this.interactiveController.state;this.uiConfig.features.seekToInteractive&&this.subscription.add(this.interactiveController.getIsSeekable().subscribe(T=>{if(!this.isInited)return;let v=this.store;T?v.ui.controls.disabledControls$.remove("SEEK_TO_INTERACTIVE_BUTTON"):v.ui.controls.disabledControls$.add("SEEK_TO_INTERACTIVE_BUTTON")})),this.subscription.add(S.subscribe(T=>{this.store&&this.store.state.isInteractiveExpectation$.set(T)}));let w=!0;if(this.interactiveController.on(a.playerChanged,T=>{if(!this.videoConfig)return;this.videoConfig.videos[this.currentPlayingVideoIndex]=Dt(ot({},T.config),{title:(m==null?void 0:m.title)||T.config.title});let v=w?this.videoConfig.autoplay:!0;this.createPlayerWithCurrentVideo(T.player,v),w&&(w=!1)}),this.interactiveController.on(a.interactives,({type:T,actionType:v})=>{var I,A,q,K;if(!this.store)return;let g=S.getValue();if(T==="action-choice"&&v==="setRandomBranch"&&(this.store.state.graphIsOpened$.set(!1),this.store.ui.controls.disabledControls$.remove(ir)),T==="action-choice-canceled"){let re=it(this.store.state.isPlaying$)||g;if((I=this.videoConfig)!=null&&I.isMobile&&re){this.store.ui.interactiveHideMobileControls.set(!0);return}(K=(A=this.videoConfig)==null?void 0:(q=A.callbacks).onDisabledInteractiveClick)==null||K.call(q)}}),yield this.interactiveController.setManifest(this.videoConfig.interactiveData.manifest),(r=(o=this.videoConfig)==null?void 0:o.callbacks)!=null&&r.onInteractiveHistoryChanged){let T=this.interactiveController.getHistoryState();this.subscription.add(T.history$.subscribe(v=>{var g,I,A;v.length&&((A=(I=(g=this.videoConfig)==null?void 0:g.callbacks)==null?void 0:I.onInteractiveHistoryChanged)==null||A.call(I,v))}))}this.uiConfig.features.interactiveTimeIndicator&&this.subscription.add(this.interactiveController.events.noInteraction$.subscribe(()=>{var T,v,g,I;(T=this.microStoresRoot)==null||T.stores.showInteractiveTimeIndicatorTooltip$.set(!0,!0),(I=(v=this.videoConfig)==null?void 0:(g=v.callbacks).onInteractiveTimeIndicatorClick)==null||I.call(g)})),this.interactiveController.on(a.errors,T=>{this.log({message:T.toString()})})}catch(l){this.log({message:l.message})}})}initInteractivesStatistics(){return ut(this,null,function*(){var o,r;let{statSubscription:t,oneStat:n}=this.statistics;if(!(!t||!n||!this.interactiveController))try{let{INTERACTIVE_CLICK_ACTIONS:l}=yield import("@vkontakte/videoplayer-interactive"),a={[l.GO_NEXT_BUTTON]:wl.InteractiveInterfaceClick.NEXT_BUTTON,[l.GO_NEXT_AREA]:wl.InteractiveInterfaceClick.NEXT_AREA,[l.WATCH_AGAIN]:wl.InteractiveInterfaceClick.WATCH_AGAIN,[l.OPEN_GRAPH]:wl.InteractiveInterfaceClick.GRAPH_SHOW,[l.CLOSE_GRAPH]:wl.InteractiveInterfaceClick.GRAPH_HIDE},{click$:s,nextMovie$:u}=this.interactiveController.getStatEvents(),f=new bi.Subject;s.subscribe(m=>{var h,y;m in a?f.next(a[m]):(n==null||n.logError({errorType:"InteractiveVideosAction",fatal:!1}),(y=(h=this.sentry).report)==null||y.call(h,new Error("InteractiveVideosAction"),{errorType:"InteractiveVideosAction",fatal:!1}))}),t.add(n.attachToInteractive({click$:f,nextMovie$:u}))}catch(l){n==null||n.logError({errorType:"InteractiveVideos",fatal:!1}),(r=(o=this.sentry).report)==null||r.call(o,l,{errorType:"InteractiveVideosAction",fatal:!1})}})}initPlayer(t,n={}){var o,r,l,a,s,u,f,m,h,y,b,S,w,T,v,g,I,A,q;if(!Array.isArray(t.videos)||t.videos.length===0&&!t.interactiveData)throw new Error("empty videos");this.videoConfig=Mc(A6,(0,bi.cloneDeepWith)(t,K=>K instanceof HTMLElement?K:void 0)),this.uiConfig=nf((o=n.ui)!=null?o:{}),this.coreConfig=(r=n.core)!=null?r:{configName:[]},this.statisticsConfig=(l=n.statistics)!=null?l:{},this.sentry={config:(a=this.uiConfig.sentry)!=null?a:{}},(0,bi.isNonNullable)(this.videoConfig.isMediaSessionEnabled)&&(this.uiConfig.features.mediaSession=(s=this.videoConfig.isMediaSessionEnabled)!=null?s:!0),(0,bi.isNonNullable)(this.videoConfig.isPictureInPictureEnabled)&&(this.uiConfig.features.pip=(f=(u=this.uiConfig.features.pip)!=null?u:this.videoConfig.isPictureInPictureEnabled)!=null?f:!0,this.uiConfig.features.dpip=(h=(m=this.uiConfig.features.dpip)!=null?m:this.videoConfig.isPictureInPictureEnabled)!=null?h:!0),this.videoConfig.isMobile=(y=this.uiConfig.isMobile)!=null?y:this.videoConfig.isMobile,(b=this.videoConfig).autoplay&&(b.autoplay=this.uiConfig.features.autoplay),this.videoConfig.showAds=(S=this.uiConfig.ads.enable)!=null?S:this.videoConfig.showAds,this.videoConfig.adsSlotId=(w=this.uiConfig.ads.slot)!=null?w:this.videoConfig.adsSlotId,this.videoConfig.adsPreviewParam=(T=this.uiConfig.ads.preview)!=null?T:this.videoConfig.adsPreviewParam,this.videoConfig.logoHidden=!((v=this.uiConfig.showLogo)!=null?v:!this.videoConfig.logoHidden),(g=this.videoConfig).canRewindLive&&(g.canRewindLive=this.uiConfig.features.liveRewind),this.videoConfig.supportLink=(I=this.videoConfig.supportLink)!=null?I:this.uiConfig.supportLink,this.currentPlayingVideoIndex=0,this.needToRepeatPlaylist=this.videoConfig.repeat,this.uiConfig.features.pip&&(this.uiConfig.features.dpip?this.pictureInPictureApi=hs.getLatestSupportedVersion():this.pictureInPictureApi=new Oo),this.mediaSessionApi=this.uiConfig.features.mediaSession?new _s:void 0,this.annotationsApi=this.uiConfig.features.annotations?new gs(this.rootContainer):void 0,(A=this.svelteStubComponent)==null||A.$destroy(),(q=this.svelteRootComponent)==null||q.$destroy(),this.isInited=!1,this.prevIsid=void 0,this.interactiveController&&(this.interactiveController.destroy(),this.interactiveController=void 0),t.interactiveData?this.initInteractives():this.createPlayer(t.videos[0]),$p(this.pictureInPictureApi)&&this.pictureInPictureApi.setPlayerDomElement(this.playerContainer,this._shadowRoot)}isOneVideoPlaylist(){return this.videoConfig?this.videoConfig.videos.length===1:!1}updateNextVideos(t){var o;if(!this.videoConfig)return;this.log({message:`update next videos, videos: ${JSON.stringify(t)}`}),this.videoConfig.videos.splice(this.currentPlayingVideoIndex+1),this.videoConfig.videos.push(...t);let n=this.getNextVideoInfo();(o=this.svelteRootComponent)==null||o.$set({showNextPrevButtons:this.needToShowNextPrevButtons(),nextButtonActive:this.isNextButtonActive(),prevButtonActive:this.isPrevButtonActive(),endScreenVideoTitle:n.nextVideoTitle,endScreenVideoThumb:n.nextVideoThumb,isOneVideoPlaylist:this.isOneVideoPlaylist()})}initMediaSession(){var t,n;this.mediaSessionApi&&((t=this.unsubscribePlayerPhaseSubscription)==null||t.call(this),this.unsubscribePlayerPhaseSubscription=(n=this.store)==null?void 0:n.playerPhase.subscribe(o=>{o==="video"?this.setupMediaSessionForVideo():o==="ads"&&this.setupMediaSessionForAds()}))}setupMediaSessionForVideo(){if(!(!this.videoConfig||!this.mediaSessionApi))try{let{title:t,thumbUrl:n}=ot({},this.videoConfig.videos[this.currentPlayingVideoIndex]),o=[["play",()=>this.play()],["pause",()=>this.pause()],["seekto",r=>this.seekTime(r.seekTime)]];this.videoConfig.videos.length>1&&(this.currentPlayingVideoIndex<this.videoConfig.videos.length-1&&o.push(["nexttrack",()=>this.playNextVideo()]),this.currentPlayingVideoIndex>0&&o.push(["previoustrack",()=>this.playPrevVideo()])),this.mediaSessionApi.setMetaData({title:t,thumbUrl:n}),this.mediaSessionApi.updateActionHandlers(o)}catch(t){this.log({message:t.message})}}setupMediaSessionForAds(){if(!(!this.videoConfig||!this.mediaSessionApi))try{let t="\u0420\u0435\u043A\u043B\u0430\u043C\u0430",n=[["play",()=>this.play()],["pause",()=>this.pause()]];this.mediaSessionApi.setMetaData({title:t}),this.mediaSessionApi.updateActionHandlers(n)}catch(t){this.log({message:t.message})}}play(){var t,n;this.isControlDisabled("PLAY_BUTTON")||(t=this.store)!=null&&t.playerPhase.is("waitingLive")||(this.log({message:"play"}),(n=this.svelteRootComponent)==null||n.play())}pause(){var t;this.log({message:"pause"}),(t=this.svelteRootComponent)==null||t.pause()}stop(){var n,o;if(!this.videoConfig)return;this.log({message:"stop"}),(n=this.svelteStubComponent)==null||n.$destroy();let t=this.videoConfig.videos[0];t&&((o=this.svelteRootComponent)==null||o.$destroy(),this.createPlayer(t))}setMuted(t){var n;this.log({message:`set muted, muted: ${t}`}),(n=this.svelteRootComponent)==null||n.setMuted(t)}setVolume(t){var n;this.log({message:`set volume, volume: ${t}`}),(n=this.svelteRootComponent)==null||n.setVolume(t)}setRepeat(t){var n;this.log({message:`set repeat, repeat: ${t}`}),this.needToRepeatPlaylist=t,(n=this.svelteRootComponent)==null||n.$set({needToRepeatPlaylist:this.needToRepeatPlaylist,showNextPrevButtons:this.needToShowNextPrevButtons(),nextButtonActive:this.isNextButtonActive(),prevButtonActive:this.isPrevButtonActive()})}seekTime(t){var n;this.isControlDisabled("TIMELINE")||(this.log({message:`seek time, time: ${t}`}),(n=this.svelteRootComponent)==null||n.seekTime(t))}seekEpisodeStartTime(t){var n;this.log({message:`seek episode start time, time: ${t}`}),(n=this.svelteRootComponent)==null||n.seekEpisodeStartTime(t)}returnFocusToEpisodes(){var t;this.log({message:"return focus to episodes button"}),(t=this.svelteRootComponent)==null||t.returnFocusToEpisodes()}setPlaybackRate(t){var n;this.log({message:`set playback rate to: ${t}`}),(n=this.svelteRootComponent)==null||n.setPlaybackRate(t)}setAutoQualityLimits(t){var n,o,r;this.log({message:`set auto quality limitation. Max: ${(n=t.max)!=null?n:"none"}. Min: ${(o=t.min)!=null?o:"none"}`}),(r=this.svelteRootComponent)==null||r.setAutoQualityLimits(t)}addLanguage(t){var n;(n=this.store)==null||n.actions.internal.addLanguage(t)}setLanguage(t){return ut(this,null,function*(){var n;yield(n=this.store)==null?void 0:n.actions.internal.setLanguage(t)})}setLiveStart(t){var n,o;this.log({message:"live started"}),(n=this.store)==null||n.actions.internal.setWaitingLive(!1),(o=this.svelteRootComponent)==null||o.initVideo(t),this.play()}setWaitRecord(){var t,n;this.log({message:"post live"}),(t=this.store)==null||t.actions.internal.setWaitingRecord(!0),(n=this.store)==null||n.destroy()}setLiveEnd(t){var n,o;this.log({message:"live ended"}),(n=this.store)==null||n.actions.internal.setWaitingRecord(!1),(o=this.svelteRootComponent)==null||o.$destroy(),this.createPlayer(t,{autoplay:!1})}getDeviceId(){var t,n;return(n=(t=this.statistics)==null?void 0:t.oneStat.getDeviceId())!=null?n:void 0}replayInteractiveVideo(){this.interactiveController&&this.interactiveController.setChapter()}replayInteractiveChapter(t){return ut(this,null,function*(){var n,o;if(this.interactiveController&&((n=this.store)!=null&&n.state.positionExact$)){let{EVENT_NAMES:r}=yield import("@vkontakte/videoplayer-interactive"),l=it(this.store.state.positionExact$),a=(o=this.interactiveController)==null?void 0:o.getNextInteractiveStartTime();this.interactiveController.once(r.playerChanged,()=>{typeof a=="number"&&l>=a?this.seekTime(l):this.seekTime(l),t==null||t()}),yield this.interactiveController.setChapter({chapterId:this.interactiveController.getCurrentChapter().chapterId,pushToHistory:!1})}})}showInteractiveIndicatorTooltip(t,n=!1){var o;(o=this.microStoresRoot)==null||o.stores.showInteractiveTimeIndicatorTooltip$.set(t,n)}switchToActiveLive(){var t;(t=this.store)==null||t.actions.internal.switchToActiveLive()}};var kl=require("@vkontakte/videoplayer-shared"),ys=require("@vkontakte/videoplayer-core"),L6=()=>{window.customElements.define("vk-video-player",vs)};