@vkontakte/videoplayer 1.1.45-dev.ed9f7b58.0 → 1.1.45-dev.ee5cb46f.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/esnext.cjs.js CHANGED
@@ -1,17 +1,17 @@
1
1
  /**
2
- * @vkontakte/videoplayer v1.1.45-dev.ed9f7b58.0
3
- * Wed, 25 Sep 2024 12:11:26 GMT
2
+ * @vkontakte/videoplayer v1.1.45-dev.ee5cb46f.0
3
+ * Thu, 26 Sep 2024 16:12:31 GMT
4
4
  * https://st.mycdn.me/static/vkontakte-videoplayer/1-1-45/doc/
5
5
  */
6
- "use strict";var Z_=Object.create;var al=Object.defineProperty;var X_=Object.getOwnPropertyDescriptor;var J_=Object.getOwnPropertyNames;var $_=Object.getPrototypeOf,eg=Object.prototype.hasOwnProperty;var tg=(i,e)=>{for(var t in e)al(i,t,{get:e[t],enumerable:!0})},af=(i,e,t,n)=>{if(e&&typeof e=="object"||typeof e=="function")for(let o of J_(e))!eg.call(i,o)&&o!==t&&al(i,o,{get:()=>e[o],enumerable:!(n=X_(e,o))||n.enumerable});return i};var uf=(i,e,t)=>(t=i!=null?Z_($_(i)):{},af(e||!i||!i.__esModule?al(t,"default",{value:i,enumerable:!0}):t,i)),ig=i=>af(al({},"__esModule",{value:!0}),i);var z8={};tg(z8,{GridTypes:()=>oo,InterfaceLanguage:()=>Or.InterfaceLanguage,MenuItemType:()=>xr,VERSION:()=>No,VKNumericLanguage:()=>Or.VKNumericLanguage,VideoFormat:()=>Ds.VideoFormat,VideoQuality:()=>Ds.VideoQuality,loadVKLangPack:()=>Or.loadVKLangPack,registerPlayerWebComponent:()=>H8});module.exports=ig(z8);function ge(){}function ne(i,e){for(let t in e)i[t]=e[t];return i}function qs(i){return i()}function cl(){return Object.create(null)}function at(i){i.forEach(qs)}function Wt(i){return typeof i=="function"}function R(i,e){return i!=i?e==e:i!==e||i&&typeof i=="object"||typeof i=="function"}var ul;function io(i,e){return i===e?!0:(ul||(ul=document.createElement("a")),ul.href=e,i===ul.href)}function cf(i){return Object.keys(i).length===0}function Ft(i,...e){if(i==null){for(let n of e)n(void 0);return ge}let t=i.subscribe(...e);return t.unsubscribe?()=>t.unsubscribe():t}function Je(i){let e;return Ft(i,t=>e=t)(),e}function N(i,e,t){i.$$.on_destroy.push(Ft(e,t))}function Ee(i,e,t,n){if(i){let o=ff(i,e,t,n);return i[0](o)}}function ff(i,e,t,n){return i[1]&&n?ne(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 l=[],r=Math.max(e.dirty.length,o.length);for(let a=0;a<r;a+=1)l[a]=e.dirty[a]|o[a];return l}return e.dirty|o}return e.dirty}function Ae(i,e,t,n,o,l){if(o){let r=ff(e,t,n,l);i.p(r,o)}}function Le(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 ve(i){let e={};for(let t in i)t[0]!=="$"&&(e[t]=i[t]);return e}function df(i){return i??""}var Lo=typeof window<"u"?window:typeof globalThis<"u"?globalThis:global;var fl=class i{_listeners="WeakMap"in Lo?new WeakMap:void 0;_observer=void 0;options;constructor(e){this.options=e}observe(e,t){return this._listeners.set(e,t),this._getObserver().observe(e,this.options),()=>{this._listeners.delete(e),this._observer.unobserve(e)}}_getObserver(){return this._observer??(this._observer=new ResizeObserver(e=>{for(let t of e)i.entries.set(t.target,t),this._listeners.get(t.target)?.(t)}))}};fl.entries="WeakMap"in Lo?new WeakMap:void 0;var mf=!1;function pf(){mf=!0}function _f(){mf=!1}function _(i,e){i.appendChild(e)}function Ce(i,e,t){let n=gf(i);if(!n.getElementById(e)){let o=I("style");o.id=e,o.textContent=t,rg(n,o)}}function gf(i){if(!i)return document;let e=i.getRootNode?i.getRootNode():i.ownerDocument;return e&&e.host?e:i.ownerDocument}function rg(i,e){return _(i.head||i,e),e.sheet}function v(i,e,t){i.insertBefore(e,t||null)}function b(i){i.parentNode&&i.parentNode.removeChild(i)}function $t(i,e){for(let t=0;t<i.length;t+=1)i[t]&&i[t].d(e)}function I(i){return document.createElement(i)}function V(i){return document.createElementNS("http://www.w3.org/2000/svg",i)}function Ne(i){return document.createTextNode(i)}function H(){return Ne(" ")}function $e(){return Ne("")}function Pe(i,e,t,n){return i.addEventListener(e,t,n),()=>i.removeEventListener(e,t,n)}function Gt(i){return function(e){return e.preventDefault(),i.call(this,e)}}function mt(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 ye(i,e){for(let t in e)c(i,t,e[t])}function hf(i){return Array.from(i.childNodes)}function Ge(i,e){e=""+e,i.data!==e&&(i.data=e)}function ni(i,e,t,n){t==null?i.style.removeProperty(e):i.style.setProperty(e,t,n?"important":"")}var dl;function lg(){if(dl===void 0){dl=!1;try{typeof window<"u"&&window.parent&&window.parent.document}catch{dl=!0}}return dl}function ar(i,e){getComputedStyle(i).position==="static"&&(i.style.position="relative");let n=I("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=lg(),l;return o?(n.src="data:text/html,<script>onresize=function(){parent.postMessage(0,'*')}<\/script>",l=Pe(window,"message",r=>{r.source===n.contentWindow&&e()})):(n.src="about:blank",n.onload=()=>{l=Pe(n.contentWindow,"resize",e),e()}),_(i,n),()=>{(o||l&&n.contentWindow)&&l(),b(n)}}function G(i,e,t){i.classList.toggle(e,!!t)}function bf(i){let e={};return i.childNodes.forEach(t=>{e[t.slot||"default"]=!0}),e}function Rt(i,e){return new i(e)}var ho;function no(i){ho=i}function ur(){if(!ho)throw new Error("Function called outside component initialization");return ho}function It(i){ur().$$.on_mount.push(i)}function Fn(i){ur().$$.on_destroy.push(i)}function cr(i,e){return ur().$$.context.set(i,e),e}function fr(i){return ur().$$.context.get(i)}function zr(){return ur().$$.context}function Cn(i,e){let t=i.$$.callbacks[e.type];t&&t.slice().forEach(n=>n.call(this,e))}var Vo=[];var he=[],mr=[],zs=[],yf=Promise.resolve(),Us=!1;function Ws(){Us||(Us=!0,yf.then(ml))}function qn(){return Ws(),yf}function Hn(i){mr.push(i)}function Oe(i){zs.push(i)}var Hs=new Set,dr=0;function ml(){if(dr!==0)return;let i=ho;do{try{for(;dr<Vo.length;){let e=Vo[dr];dr++,no(e),dg(e.$$)}}catch(e){throw Vo.length=0,dr=0,e}for(no(null),Vo.length=0,dr=0;he.length;)he.pop()();for(let e=0;e<mr.length;e+=1){let t=mr[e];Hs.has(t)||(Hs.add(t),t())}mr.length=0}while(Vo.length);for(;zs.length;)zs.pop()();Us=!1,Hs.clear(),no(i)}function dg(i){if(i.fragment!==null){i.update(),at(i.before_update);let e=i.dirty;i.dirty=[-1],i.fragment&&i.fragment.p(i.ctx,e),i.after_update.forEach(Hn)}}function kf(i){let e=[],t=[];mr.forEach(n=>i.indexOf(n)===-1?e.push(n):t.push(n)),t.forEach(n=>n()),mr=e}var pl=new Set,Ro;function ce(){Ro={r:0,c:[],p:Ro}}function fe(){Ro.r||at(Ro.c),Ro=Ro.p}function d(i,e){i&&i.i&&(pl.delete(i),i.i(e))}function m(i,e,t,n){if(i&&i.o){if(pl.has(i))return;pl.add(i),Ro.c.push(()=>{pl.delete(i),n&&(t&&i.d(1),n())}),i.o(e)}else n&&n()}function gt(i){return i?.length!==void 0?i:Array.from(i)}function De(i,e){let t={},n={},o={$$scope:1},l=i.length;for(;l--;){let r=i[l],a=e[l];if(a){for(let s in r)s in a||(n[s]=1);for(let s in a)o[s]||(t[s]=a[s],o[s]=1);i[l]=a}else for(let s in r)o[s]=1}for(let r in n)r in t||(t[r]=void 0);return t}function Ur(i){return typeof i=="object"&&i!==null?i:{}}var mg=["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"],pg=new Set([...mg]);function Fe(i,e,t){let n=i.$$.props[e];n!==void 0&&(i.$$.bound[n]=t,t(i.$$.ctx[n]))}function A(i){i&&i.c()}function E(i,e,t){let{fragment:n,after_update:o}=i.$$;n&&n.m(e,t),Hn(()=>{let l=i.$$.on_mount.map(qs).filter(Wt);i.$$.on_destroy?i.$$.on_destroy.push(...l):at(l),i.$$.on_mount=[]}),o.forEach(Hn)}function M(i,e){let t=i.$$;t.fragment!==null&&(kf(t.after_update),at(t.on_destroy),t.fragment&&t.fragment.d(e),t.on_destroy=t.fragment=null,t.ctx=[])}function gg(i,e){i.$$.dirty[0]===-1&&(Vo.push(i),Ws(),i.$$.dirty.fill(0)),i.$$.dirty[e/31|0]|=1<<e%31}function D(i,e,t,n,o,l,r=null,a=[-1]){let s=ho;no(i);let u=i.$$={fragment:null,ctx:[],props:l,update:ge,not_equal:o,bound:cl(),on_mount:[],on_destroy:[],on_disconnect:[],before_update:[],after_update:[],context:new Map(e.context||(s?s.$$.context:[])),callbacks:cl(),dirty:a,skip_bound:!1,root:e.target||s.$$.root};r&&r(u.root);let f=!1;if(u.ctx=t?t(i,e.props||{},(p,g,...y)=>{let h=y.length?y[0]:g;return u.ctx&&o(u.ctx[p],u.ctx[p]=h)&&(!u.skip_bound&&u.bound[p]&&u.bound[p](h),f&&gg(i,p)),g}):[],u.update(),f=!0,at(u.before_update),u.fragment=n?n(u.ctx):!1,e.target){if(e.hydrate){pf();let p=hf(e.target);u.fragment&&u.fragment.l(p),p.forEach(b)}else u.fragment&&u.fragment.c();e.intro&&d(i.$$.fragment),E(i,e.target,e.anchor),_f(),ml()}no(s)}var hg;typeof HTMLElement=="function"&&(hg=class extends HTMLElement{$$ctor;$$s;$$c;$$cn=!1;$$d={};$$r=!1;$$p_d={};$$l={};$$l_u=new Map;constructor(i,e,t){super(),this.$$ctor=i,this.$$s=e,t&&this.attachShadow({mode:"open"})}addEventListener(i,e,t){if(this.$$l[i]=this.$$l[i]||[],this.$$l[i].push(e),this.$$c){let n=this.$$c.$on(i,e);this.$$l_u.set(e,n)}super.addEventListener(i,e,t)}removeEventListener(i,e,t){if(super.removeEventListener(i,e,t),this.$$c){let n=this.$$l_u.get(e);n&&(n(),this.$$l_u.delete(e))}}async connectedCallback(){if(this.$$cn=!0,!this.$$c){let e=function(l){return()=>{let r;return{c:function(){r=I("slot"),l!=="default"&&c(r,"name",l)},m:function(u,f){v(u,r,f)},d:function(u){u&&b(r)}}}};var i=e;if(await Promise.resolve(),!this.$$cn||this.$$c)return;let t={},n=bf(this);for(let l of this.$$s)l in n&&(t[l]=[e(l)]);for(let l of this.attributes){let r=this.$$g_p(l.name);r in this.$$d||(this.$$d[r]=Ks(r,l.value,this.$$p_d,"toProp"))}for(let l in this.$$p_d)!(l in this.$$d)&&this[l]!==void 0&&(this.$$d[l]=this[l],delete this[l]);this.$$c=new this.$$ctor({target:this.shadowRoot||this,props:{...this.$$d,$$slots:t,$$scope:{ctx:[]}}});let o=()=>{this.$$r=!0;for(let l in this.$$p_d)if(this.$$d[l]=this.$$c.$$.ctx[this.$$c.$$.props[l]],this.$$p_d[l].reflect){let r=Ks(l,this.$$d[l],this.$$p_d,"toAttribute");r==null?this.removeAttribute(this.$$p_d[l].attribute||l):this.setAttribute(this.$$p_d[l].attribute||l,r)}this.$$r=!1};this.$$c.$$.after_update.push(o),o();for(let l in this.$$l)for(let r of this.$$l[l]){let a=this.$$c.$on(l,r);this.$$l_u.set(r,a)}this.$$l={}}}attributeChangedCallback(i,e,t){this.$$r||(i=this.$$g_p(i),this.$$d[i]=Ks(i,t,this.$$p_d,"toProp"),this.$$c?.$set({[i]:this.$$d[i]}))}disconnectedCallback(){this.$$cn=!1,Promise.resolve().then(()=>{!this.$$cn&&this.$$c&&(this.$$c.$destroy(),this.$$c=void 0)})}$$g_p(i){return Object.keys(this.$$p_d).find(e=>this.$$p_d[e].attribute===i||!this.$$p_d[e].attribute&&e.toLowerCase()===i)||i}});function Ks(i,e,t,n){let o=t[i]?.type;if(e=o==="Boolean"&&typeof e!="boolean"?e!=null:e,!n||!t[i])return e;if(n==="toAttribute")switch(o){case"Object":case"Array":return e==null?null:JSON.stringify(e);case"Boolean":return e?"":null;case"Number":return e??null;default:return e}else switch(o){case"Object":case"Array":return e&&JSON.parse(e);case"Boolean":return e;case"Number":return e!=null?+e:e;default:return e}}var B=class{$$=void 0;$$set=void 0;$destroy(){M(this,1),this.$destroy=ge}$on(e,t){if(!Wt(t))return ge;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&&!cf(e)&&(this.$$.skip_bound=!0,this.$$set(e),this.$$.skip_bound=!1)}};var wf="4";typeof window<"u"&&(window.__svelte||(window.__svelte={v:new Set})).v.add(wf);var cO=require("@vkontakte/videoplayer-core"),Wn=require("@vkontakte/videoplayer-shared"),__=require("@vkontakte/videoplayer-statistics");var pr=require("@vkontakte/videoplayer-shared");var bg={isMobile:void 0,defaultLanguage:pr.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:pr.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,annotationsInside:!1,pip:!0,dpip:!0,download:!0,liveRewind:!0,playbackRate:!0,trafficSaving:!0,episodesClustering:!0,copyVideoLink:!0,videoRotate:!0,interactiveGraph:!1,seekToInteractive:!0,interactiveLastFrame:!1,interactiveTextPermanent:!0,interactiveHideTime:!0,interactivePlayPrevChapter:!0,interactiveTimeIndicator:!0,thumbTimer:!0,hotKeyMapModal:!0,hotKeyHelpers:!0,saveDebugInfoToFile:!1,saveTraceInfoToFile:!1,additionalButtons:!0,additionalSettingsMenuItems:!0,additionalContextMenuItems:!0,contextMenuButton:!0,audioLanguages:!1,saveRate:!1,fullscreenInternalTargetPlayerContainer:!1},controls:{showOnStartupAtAutoplay:!0,hideTimeout:500,hideTimeoutMobile:3e3,hideTimeoutInitial:200,hideTimeoutFullscreen:3e3,hideTimeoutCursor:3e3,hideTimeoutTooltips:1e3,collapseMobileUnmute:6e3,hide360IconTimeout:3e3,hideHotKeyHelpers:2e3,playbackRateMin:.25,playbackRateMax:2,playbackRateStep:.25,volumeStepKeyboard:.05,volumeStepWheel:.05,volumeBarTimeout:300,seekStepKeyboard:1e4,seekStepMobile:15e3,seekStepFrame:400},ads:{enable:void 0,initTimeout:2e3,loadTimeout:2e3,runtimeTimeout:5e3,slot:void 0,preview:void 0},interactive:{historyMaxLength:100,noInteractionEventTimeout:3e4}},Cf=i=>(0,pr.fillWithDefault)(i,bg),Sf=i=>cr("ui-config",i),Bt=()=>fr("ui-config");var Wr="vk_player_debug_panel_opened";var If="videoplayer",Tf="videoplayer";var Xn={KeyF:"f",KeyK:"k",KeyC:"c",KeyM:"m"},Pf=new Set(["ArrowLeft","ArrowRight","KeyL","KeyJ"]),Ef=new Set(["Tab","Space","ArrowLeft","ArrowRight","ArrowUp","ArrowDown"]),Mf=new Set(["ShiftRight","ShiftLeft"]);var Af=["TIMELINE"],Kr=[...Af,"GRAPH_BUTTON"],Gs=[...Af,"PLAY_BUTTON"],_l=[...Kr,"PLAY_BUTTON"];var oo=(l=>(l.XS="xs",l.S="s",l.M="m",l.L="l",l.XL="xl",l))(oo||{}),Do={xs:0,s:1,m:2,l:3,xl:4};var _r=[];function En(i,e){return{subscribe:He(i,e).subscribe}}function He(i,e=ge){let t,n=new Set;function o(a){if(R(i,a)&&(i=a,t)){let s=!_r.length;for(let u of n)u[1](),_r.push(u,i);if(s){for(let u=0;u<_r.length;u+=2)_r[u][0](_r[u+1]);_r.length=0}}}function l(a){o(a(i))}function r(a,s=ge){let u=[a,s];return n.add(u),n.size===1&&(t=e(o,l)||ge),a(i),()=>{n.delete(u),n.size===0&&t&&(t(),t=null)}}return{set:o,update:l,subscribe:r}}function ei(i,e,t){let n=!Array.isArray(i),o=n?[i]:i;if(!o.every(Boolean))throw new Error("derived() expects stores as input, got a falsy value");let l=e.length<2;return En(t,(r,a)=>{let s=!1,u=[],f=0,p=ge,g=()=>{if(f)return;p();let h=e(n?u[0]:u,r,a);l?r(h):p=Wt(h)?h:ge},y=o.map((h,C)=>Ft(h,w=>{u[C]=w,f&=~(1<<C),s&&g()},()=>{f|=1<<C}));return s=!0,g(),function(){at(y),p(),s=!1}})}var Gr=require("@vkontakte/videoplayer-shared"),Lf=require("@vkontakte/videoplayer-core"),Vf=require("@vkontakte/videoplayer-statistics");var gl="prod",No="1.1.45-dev.ed9f7b58.0";var Oo=(i,e,t)=>{let n=document.createElement("a");n.href=i,n.download=`${e}.${t}`,n.style.display="none",n.click()};var Rf=Symbol("storeContext"),Bf=Symbol("microStoresContext"),Df=(i,e)=>{cr(Rf,i),cr(Bf,e),gl==="dev"&&(window.app={store:i,microStores:e})},nt=()=>{let i=fr(Rf);return(0,Gr.assertNonNullable)(i,"Store context is empty!"),i},Mn=()=>{let i=fr(Bf);return(0,Gr.assertNonNullable)(i,"MicroStores context is empty!"),i},ht=(i,e)=>js(i,i.getValue(),e),js=(i,e,t)=>En(e,n=>{let o=i.subscribe(l=>{n(l),t?.(l)});return()=>o.unsubscribe()}),Nf=(i,e,t)=>{let n=i.info,{width:o,height:l}=Je(t.ui.playerSize),r=n.throughputEstimation$.getValue()?.toFixed(0)??0,a=n.rttEstimation$.getValue()?.toFixed(0)??0,s=n.isAutoQualityEnabled$.getValue()?"auto":"manual",u=`${No} (core: ${Lf.VERSION}, stat: ${Vf.VERSION}, shared: ${Gr.VERSION})`,f=Je(t.state.errorLog$),p=f.length?`
6
+ "use strict";var X_=Object.create;var ul=Object.defineProperty;var J_=Object.getOwnPropertyDescriptor;var $_=Object.getOwnPropertyNames;var eg=Object.getPrototypeOf,tg=Object.prototype.hasOwnProperty;var ig=(i,e)=>{for(var t in e)ul(i,t,{get:e[t],enumerable:!0})},uf=(i,e,t,n)=>{if(e&&typeof e=="object"||typeof e=="function")for(let o of $_(e))!tg.call(i,o)&&o!==t&&ul(i,o,{get:()=>e[o],enumerable:!(n=J_(e,o))||n.enumerable});return i};var cf=(i,e,t)=>(t=i!=null?X_(eg(i)):{},uf(e||!i||!i.__esModule?ul(t,"default",{value:i,enumerable:!0}):t,i)),ng=i=>uf(ul({},"__esModule",{value:!0}),i);var U8={};ig(U8,{GridTypes:()=>_o,InterfaceLanguage:()=>Br.InterfaceLanguage,MenuItemType:()=>Yr,VERSION:()=>Do,VKNumericLanguage:()=>Br.VKNumericLanguage,VideoFormat:()=>Ns.VideoFormat,VideoQuality:()=>Ns.VideoQuality,loadVKLangPack:()=>Br.loadVKLangPack,registerPlayerWebComponent:()=>H8});module.exports=ng(U8);function he(){}function ne(i,e){for(let t in e)i[t]=e[t];return i}function Hs(i){return i()}function fl(){return Object.create(null)}function at(i){i.forEach(Hs)}function zt(i){return typeof i=="function"}function R(i,e){return i!=i?e==e:i!==e||i&&typeof i=="object"||typeof i=="function"}var cl;function oo(i,e){return i===e?!0:(cl||(cl=document.createElement("a")),cl.href=e,i===cl.href)}function ff(i){return Object.keys(i).length===0}function Wt(i,...e){if(i==null){for(let n of e)n(void 0);return he}let t=i.subscribe(...e);return t.unsubscribe?()=>t.unsubscribe():t}function Xe(i){let e;return Wt(i,t=>e=t)(),e}function O(i,e,t){i.$$.on_destroy.push(Wt(e,t))}function Ee(i,e,t,n){if(i){let o=df(i,e,t,n);return i[0](o)}}function df(i,e,t,n){return i[1]&&n?ne(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 l=[],r=Math.max(e.dirty.length,o.length);for(let a=0;a<r;a+=1)l[a]=e.dirty[a]|o[a];return l}return e.dirty|o}return e.dirty}function Ae(i,e,t,n,o,l){if(o){let r=df(e,t,n,l);i.p(r,o)}}function Le(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 ve(i){let e={};for(let t in i)t[0]!=="$"&&(e[t]=i[t]);return e}function mf(i){return i??""}function or(i){return i&&zt(i.destroy)?i.destroy:he}var Ao=typeof window<"u"?window:typeof globalThis<"u"?globalThis:global;var dl=class i{_listeners="WeakMap"in Ao?new WeakMap:void 0;_observer=void 0;options;constructor(e){this.options=e}observe(e,t){return this._listeners.set(e,t),this._getObserver().observe(e,this.options),()=>{this._listeners.delete(e),this._observer.unobserve(e)}}_getObserver(){return this._observer??(this._observer=new ResizeObserver(e=>{for(let t of e)i.entries.set(t.target,t),this._listeners.get(t.target)?.(t)}))}};dl.entries="WeakMap"in Ao?new WeakMap:void 0;var pf=!1;function _f(){pf=!0}function gf(){pf=!1}function _(i,e){i.appendChild(e)}function Ce(i,e,t){let n=hf(i);if(!n.getElementById(e)){let o=I("style");o.id=e,o.textContent=t,lg(n,o)}}function hf(i){if(!i)return document;let e=i.getRootNode?i.getRootNode():i.ownerDocument;return e&&e.host?e:i.ownerDocument}function lg(i,e){return _(i.head||i,e),e.sheet}function v(i,e,t){i.insertBefore(e,t||null)}function b(i){i.parentNode&&i.parentNode.removeChild(i)}function Jt(i,e){for(let t=0;t<i.length;t+=1)i[t]&&i[t].d(e)}function I(i){return document.createElement(i)}function V(i){return document.createElementNS("http://www.w3.org/2000/svg",i)}function De(i){return document.createTextNode(i)}function H(){return De(" ")}function it(){return De("")}function Te(i,e,t,n){return i.addEventListener(e,t,n),()=>i.removeEventListener(e,t,n)}function Yt(i){return function(e){return e.preventDefault(),i.call(this,e)}}function _t(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 ye(i,e){for(let t in e)c(i,t,e[t])}function bf(i){return Array.from(i.childNodes)}function xe(i,e){e=""+e,i.data!==e&&(i.data=e)}function ii(i,e,t,n){t==null?i.style.removeProperty(e):i.style.setProperty(e,t,n?"important":"")}function j(i,e,t){i.classList.toggle(e,!!t)}function vf(i){let e={};return i.childNodes.forEach(t=>{e[t.slot||"default"]=!0}),e}function Dt(i,e){return new i(e)}var po;function ro(i){po=i}function rr(){if(!po)throw new Error("Function called outside component initialization");return po}function Et(i){rr().$$.on_mount.push(i)}function Nn(i){rr().$$.on_destroy.push(i)}function lr(i,e){return rr().$$.context.set(i,e),e}function sr(i){return rr().$$.context.get(i)}function Ur(){return rr().$$.context}function Cn(i,e){let t=i.$$.callbacks[e.type];t&&t.slice().forEach(n=>n.call(this,e))}var Lo=[];var be=[],ur=[],zs=[],kf=Promise.resolve(),Ws=!1;function Ks(){Ws||(Ws=!0,kf.then(ml))}function On(){return Ks(),kf}function zr(i){ur.push(i)}function Ne(i){zs.push(i)}var Us=new Set,ar=0;function ml(){if(ar!==0)return;let i=po;do{try{for(;ar<Lo.length;){let e=Lo[ar];ar++,ro(e),dg(e.$$)}}catch(e){throw Lo.length=0,ar=0,e}for(ro(null),Lo.length=0,ar=0;be.length;)be.pop()();for(let e=0;e<ur.length;e+=1){let t=ur[e];Us.has(t)||(Us.add(t),t())}ur.length=0}while(Lo.length);for(;zs.length;)zs.pop()();Ws=!1,Us.clear(),ro(i)}function dg(i){if(i.fragment!==null){i.update(),at(i.before_update);let e=i.dirty;i.dirty=[-1],i.fragment&&i.fragment.p(i.ctx,e),i.after_update.forEach(zr)}}function wf(i){let e=[],t=[];ur.forEach(n=>i.indexOf(n)===-1?e.push(n):t.push(n)),t.forEach(n=>n()),ur=e}var pl=new Set,Vo;function ae(){Vo={r:0,c:[],p:Vo}}function ue(){Vo.r||at(Vo.c),Vo=Vo.p}function d(i,e){i&&i.i&&(pl.delete(i),i.i(e))}function m(i,e,t,n){if(i&&i.o){if(pl.has(i))return;pl.add(i),Vo.c.push(()=>{pl.delete(i),n&&(t&&i.d(1),n())}),i.o(e)}else n&&n()}function ht(i){return i?.length!==void 0?i:Array.from(i)}function Be(i,e){let t={},n={},o={$$scope:1},l=i.length;for(;l--;){let r=i[l],a=e[l];if(a){for(let s in r)s in a||(n[s]=1);for(let s in a)o[s]||(t[s]=a[s],o[s]=1);i[l]=a}else for(let s in r)o[s]=1}for(let r in n)r in t||(t[r]=void 0);return t}function Wr(i){return typeof i=="object"&&i!==null?i:{}}var mg=["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"],pg=new Set([...mg]);function Oe(i,e,t){let n=i.$$.props[e];n!==void 0&&(i.$$.bound[n]=t,t(i.$$.ctx[n]))}function A(i){i&&i.c()}function E(i,e,t){let{fragment:n,after_update:o}=i.$$;n&&n.m(e,t),zr(()=>{let l=i.$$.on_mount.map(Hs).filter(zt);i.$$.on_destroy?i.$$.on_destroy.push(...l):at(l),i.$$.on_mount=[]}),o.forEach(zr)}function M(i,e){let t=i.$$;t.fragment!==null&&(wf(t.after_update),at(t.on_destroy),t.fragment&&t.fragment.d(e),t.on_destroy=t.fragment=null,t.ctx=[])}function gg(i,e){i.$$.dirty[0]===-1&&(Lo.push(i),Ks(),i.$$.dirty.fill(0)),i.$$.dirty[e/31|0]|=1<<e%31}function D(i,e,t,n,o,l,r=null,a=[-1]){let s=po;ro(i);let u=i.$$={fragment:null,ctx:[],props:l,update:he,not_equal:o,bound:fl(),on_mount:[],on_destroy:[],on_disconnect:[],before_update:[],after_update:[],context:new Map(e.context||(s?s.$$.context:[])),callbacks:fl(),dirty:a,skip_bound:!1,root:e.target||s.$$.root};r&&r(u.root);let f=!1;if(u.ctx=t?t(i,e.props||{},(p,g,...y)=>{let h=y.length?y[0]:g;return u.ctx&&o(u.ctx[p],u.ctx[p]=h)&&(!u.skip_bound&&u.bound[p]&&u.bound[p](h),f&&gg(i,p)),g}):[],u.update(),f=!0,at(u.before_update),u.fragment=n?n(u.ctx):!1,e.target){if(e.hydrate){_f();let p=bf(e.target);u.fragment&&u.fragment.l(p),p.forEach(b)}else u.fragment&&u.fragment.c();e.intro&&d(i.$$.fragment),E(i,e.target,e.anchor),gf(),ml()}ro(s)}var hg;typeof HTMLElement=="function"&&(hg=class extends HTMLElement{$$ctor;$$s;$$c;$$cn=!1;$$d={};$$r=!1;$$p_d={};$$l={};$$l_u=new Map;constructor(i,e,t){super(),this.$$ctor=i,this.$$s=e,t&&this.attachShadow({mode:"open"})}addEventListener(i,e,t){if(this.$$l[i]=this.$$l[i]||[],this.$$l[i].push(e),this.$$c){let n=this.$$c.$on(i,e);this.$$l_u.set(e,n)}super.addEventListener(i,e,t)}removeEventListener(i,e,t){if(super.removeEventListener(i,e,t),this.$$c){let n=this.$$l_u.get(e);n&&(n(),this.$$l_u.delete(e))}}async connectedCallback(){if(this.$$cn=!0,!this.$$c){let e=function(l){return()=>{let r;return{c:function(){r=I("slot"),l!=="default"&&c(r,"name",l)},m:function(u,f){v(u,r,f)},d:function(u){u&&b(r)}}}};var i=e;if(await Promise.resolve(),!this.$$cn||this.$$c)return;let t={},n=vf(this);for(let l of this.$$s)l in n&&(t[l]=[e(l)]);for(let l of this.attributes){let r=this.$$g_p(l.name);r in this.$$d||(this.$$d[r]=js(r,l.value,this.$$p_d,"toProp"))}for(let l in this.$$p_d)!(l in this.$$d)&&this[l]!==void 0&&(this.$$d[l]=this[l],delete this[l]);this.$$c=new this.$$ctor({target:this.shadowRoot||this,props:{...this.$$d,$$slots:t,$$scope:{ctx:[]}}});let o=()=>{this.$$r=!0;for(let l in this.$$p_d)if(this.$$d[l]=this.$$c.$$.ctx[this.$$c.$$.props[l]],this.$$p_d[l].reflect){let r=js(l,this.$$d[l],this.$$p_d,"toAttribute");r==null?this.removeAttribute(this.$$p_d[l].attribute||l):this.setAttribute(this.$$p_d[l].attribute||l,r)}this.$$r=!1};this.$$c.$$.after_update.push(o),o();for(let l in this.$$l)for(let r of this.$$l[l]){let a=this.$$c.$on(l,r);this.$$l_u.set(r,a)}this.$$l={}}}attributeChangedCallback(i,e,t){this.$$r||(i=this.$$g_p(i),this.$$d[i]=js(i,t,this.$$p_d,"toProp"),this.$$c?.$set({[i]:this.$$d[i]}))}disconnectedCallback(){this.$$cn=!1,Promise.resolve().then(()=>{!this.$$cn&&this.$$c&&(this.$$c.$destroy(),this.$$c=void 0)})}$$g_p(i){return Object.keys(this.$$p_d).find(e=>this.$$p_d[e].attribute===i||!this.$$p_d[e].attribute&&e.toLowerCase()===i)||i}});function js(i,e,t,n){let o=t[i]?.type;if(e=o==="Boolean"&&typeof e!="boolean"?e!=null:e,!n||!t[i])return e;if(n==="toAttribute")switch(o){case"Object":case"Array":return e==null?null:JSON.stringify(e);case"Boolean":return e?"":null;case"Number":return e??null;default:return e}else switch(o){case"Object":case"Array":return e&&JSON.parse(e);case"Boolean":return e;case"Number":return e!=null?+e:e;default:return e}}var B=class{$$=void 0;$$set=void 0;$destroy(){M(this,1),this.$destroy=he}$on(e,t){if(!zt(t))return he;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&&!ff(e)&&(this.$$.skip_bound=!0,this.$$set(e),this.$$.skip_bound=!1)}};var Cf="4";typeof window<"u"&&(window.__svelte||(window.__svelte={v:new Set})).v.add(Cf);var mO=require("@vkontakte/videoplayer-core"),Hn=require("@vkontakte/videoplayer-shared"),g_=require("@vkontakte/videoplayer-statistics");var cr=require("@vkontakte/videoplayer-shared");var bg={isMobile:void 0,defaultLanguage:cr.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:cr.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,annotationsInside:!1,pip:!0,dpip:!0,download:!0,liveRewind:!0,playbackRate:!0,trafficSaving:!0,episodesClustering:!0,copyVideoLink:!0,videoRotate:!0,interactiveGraph:!1,seekToInteractive:!0,interactiveLastFrame:!1,interactiveTextPermanent:!0,interactiveHideTime:!0,interactivePlayPrevChapter:!0,interactiveTimeIndicator:!0,thumbTimer:!0,hotKeyMapModal:!0,hotKeyHelpers:!0,saveDebugInfoToFile:!1,saveTraceInfoToFile:!1,additionalButtons:!0,additionalSettingsMenuItems:!0,additionalContextMenuItems:!0,contextMenuButton:!0,audioLanguages:!1,saveRate:!1,fullscreenInternalTargetPlayerContainer:!1},controls:{showOnStartupAtAutoplay:!0,hideTimeout:500,hideTimeoutMobile:3e3,hideTimeoutInitial:200,hideTimeoutFullscreen:3e3,hideTimeoutCursor:3e3,hideTimeoutTooltips:1e3,collapseMobileUnmute:6e3,hide360IconTimeout:3e3,hideHotKeyHelpers:2e3,playbackRateMin:.25,playbackRateMax:2,playbackRateStep:.25,volumeStepKeyboard:.05,volumeStepWheel:.05,volumeBarTimeout:300,seekStepKeyboard:1e4,seekStepMobile:15e3,seekStepFrame:400},ads:{enable:void 0,initTimeout:2e3,loadTimeout:2e3,runtimeTimeout:5e3,slot:void 0,preview:void 0},interactive:{historyMaxLength:100,noInteractionEventTimeout:3e4}},Sf=i=>(0,cr.fillWithDefault)(i,bg),If=i=>lr("ui-config",i),Nt=()=>sr("ui-config");var Kr="vk_player_debug_panel_opened";var Tf="videoplayer",Pf="videoplayer";var Zn={KeyF:"f",KeyK:"k",KeyC:"c",KeyM:"m"},Ef=new Set(["ArrowLeft","ArrowRight","KeyL","KeyJ"]),Mf=new Set(["Tab","Space","ArrowLeft","ArrowRight","ArrowUp","ArrowDown"]),Af=new Set(["ShiftRight","ShiftLeft"]);var Lf=["TIMELINE"],jr=[...Lf,"GRAPH_BUTTON"],Gs=[...Lf,"PLAY_BUTTON"],_l=[...jr,"PLAY_BUTTON"];var _o=(l=>(l.XS="xs",l.S="s",l.M="m",l.L="l",l.XL="xl",l))(_o||{}),Bo={xs:0,s:1,m:2,l:3,xl:4};var fr=[];function Mn(i,e){return{subscribe:Fe(i,e).subscribe}}function Fe(i,e=he){let t,n=new Set;function o(a){if(R(i,a)&&(i=a,t)){let s=!fr.length;for(let u of n)u[1](),fr.push(u,i);if(s){for(let u=0;u<fr.length;u+=2)fr[u][0](fr[u+1]);fr.length=0}}}function l(a){o(a(i))}function r(a,s=he){let u=[a,s];return n.add(u),n.size===1&&(t=e(o,l)||he),a(i),()=>{n.delete(u),n.size===0&&t&&(t(),t=null)}}return{set:o,update:l,subscribe:r}}function $t(i,e,t){let n=!Array.isArray(i),o=n?[i]:i;if(!o.every(Boolean))throw new Error("derived() expects stores as input, got a falsy value");let l=e.length<2;return Mn(t,(r,a)=>{let s=!1,u=[],f=0,p=he,g=()=>{if(f)return;p();let h=e(n?u[0]:u,r,a);l?r(h):p=zt(h)?h:he},y=o.map((h,C)=>Wt(h,w=>{u[C]=w,f&=~(1<<C),s&&g()},()=>{f|=1<<C}));return s=!0,g(),function(){at(y),p(),s=!1}})}var Gr=require("@vkontakte/videoplayer-shared"),Vf=require("@vkontakte/videoplayer-core"),Rf=require("@vkontakte/videoplayer-statistics");var gl="prod",Do="1.1.45-dev.ee5cb46f.0";var No=(i,e,t)=>{let n=document.createElement("a");n.href=i,n.download=`${e}.${t}`,n.style.display="none",n.click()};var Bf=Symbol("storeContext"),Df=Symbol("microStoresContext"),Nf=(i,e)=>{lr(Bf,i),lr(Df,e),gl==="dev"&&(window.app={store:i,microStores:e})},ot=()=>{let i=sr(Bf);return(0,Gr.assertNonNullable)(i,"Store context is empty!"),i},An=()=>{let i=sr(Df);return(0,Gr.assertNonNullable)(i,"MicroStores context is empty!"),i},bt=(i,e)=>xs(i,i.getValue(),e),xs=(i,e,t)=>Mn(e,n=>{let o=i.subscribe(l=>{n(l),t?.(l)});return()=>o.unsubscribe()}),Of=(i,e,t)=>{let n=i.info,{width:o,height:l}=Xe(t.ui.playerSize),r=n.throughputEstimation$.getValue()?.toFixed(0)??0,a=n.rttEstimation$.getValue()?.toFixed(0)??0,s=n.isAutoQualityEnabled$.getValue()?"auto":"manual",u=`${Do} (core: ${Vf.VERSION}, stat: ${Rf.VERSION}, shared: ${Gr.VERSION})`,f=Xe(t.state.errorLog$),p=f.length?`
7
7
  `+f.map((F,T)=>{let k=`${T}) Type: ${F.id}
8
8
  `,P=`Message: ${F.message} (${F.thrown})
9
- `,x=`Trace: ${F.thrown?.stack}
10
- `;return k+P+x}).join(`
11
- `):void 0,g=t.state.isAudioDisabled?"disabled":Je(t.state.isAudioAvailable$)?void 0:"unavailable",y=i.info.currentVideoStream$.getValue(),h=i.info.currentAudioStream$.getValue(),C=[];y&&C.push(`Video: ${y?.codec??""}`+(y?.hdr?" (HDR)":"")),h&&C.push(`Audio: ${h?.codec??""}`+(h?.language?` (${h.language})`:""));let w={Version:u,Browser:navigator.userAgent,Config:i.experimental.tuningConfigName$.getValue().join(", "),"United video id":String(t.videoId),VSID:Je(t.vsid),"Content host":n.hostname$.getValue(),"Connection type":n.httpConnectionType$.getValue()+(n.httpConnectionReused$.getValue()?" (reused)":""),Throughput:`${r}Kbps @ ${a}ms RTT`,Format:n.currentFormat$.getValue(),"Available Formats":Object.keys(e.sources).join(", "),Streams:C.join(", "),Quality:`${s} ${n.currentQuality$.getValue()}`,"Available qualities":n.availableQualities$.getValue().join(", "),Audio:g,Position:`${Je(t.state.positionExact$)}s`,State:`${Je(t.playerPhase)} ${n.playbackState$.getValue()}`,"Player size":`${o}x${l}`,URL:window.location.href,Errors:p};return Object.entries(w).filter(([F,T])=>T!==void 0).map(([F,T])=>`${F}: ${T}`).join(`
12
- `)},Of=(i,e,t)=>{let n=i.info,{width:o,height:l}=Je(t.ui.playerSize),r={version:No,viewport:`${o}x${l}`,volume:Math.round(Je(t.state.volume$)*100)};r.id=t.videoId,n.currentFormat$.getValue()&&(r.provider=n.currentFormat$.getValue()),n.hostname$.getValue()&&(r.cdn=n.hostname$.getValue());let u=n.intrinsicVideoSize$.getValue();u&&(r.videoSize=`${u.width}x${u.height}`);let f=n.currentBuffer$.getValue(),p=n.isLive$.getValue(),g=n.liveBufferTime$.getValue();f&&(p&&g?r.buffer=f.end-g:r.buffer=Math.max(f.end-Je(t.state.positionExact$),0));let y=n.throughputEstimation$.getValue();y&&(r.speed=y);let h=n.videoBitrate$.getValue();h&&(r.bitrate=h);let C=n.currentVideoSegmentLength$.getValue();C&&(r.currentVideoSegmentLength=C);let w=n.currentAudioSegmentLength$.getValue();w&&(r.currentAudioSegmentLength=w);let F=Je(t.vsid);typeof F=="string"&&(r.vsid=F);let T=i.info.currentVideoStream$.getValue()?.codec;T&&(r.videoCodec=T);let k=i.info.currentAudioStream$.getValue()?.codec;k&&(r.audioCodec=k),i.info.currentVideoStream$.getValue()?.hdr&&(r.hdr=!0);let x=i.info.currentAudioStream$.getValue()?.language;return x&&(r.audioLanguage=x),r},Ff=(i,e)=>Oo(i,e,"mp4");var Pi=require("@vkontakte/videoplayer-shared"),l9=require("@vkontakte/videoplayer-core"),qf="vk_player_prefer_traffic_saving_enabled",Hf="vk_player_preferred_volume",zf="vk_player_prefer_volume_mute",xs="vk_player_preferred_quality",Uf="vk_player_preferred_stream_language",Wf="vk_player_preferred_rate",Kf=i=>i>1?1:i<0?0:i,Ys=i=>Pi.safeStorage.set(Hf,Kf(i).toString(10)),hl=()=>{let i=Pi.safeStorage.get(Hf);return(0,Pi.isNullable)(i)?void 0:Kf(parseFloat(i))},Gf=(i,e)=>Pi.safeStorage.set(xs,JSON.stringify({videoId:i,value:e})),Qs=()=>Pi.safeStorage.remove(xs),jf=i=>{let e=Pi.safeStorage.get(xs);if((0,Pi.isNullable)(e))return;let{videoId:t,value:n}=JSON.parse(e);if(i!==t){Qs();return}return n},xf=(i,e)=>{e?Pi.safeStorage.set(i,"true"):Pi.safeStorage.remove(i)},Yf=i=>Pi.safeStorage.get(i)==="true",bl=i=>xf(zf,i),Qf=()=>Yf(zf),Zf=i=>xf(qf,i),Xf=()=>Yf(qf),Jf=()=>Pi.safeStorage.get(Uf),Zs=i=>Pi.safeStorage.set(Uf,i),$f=i=>Pi.safeStorage.set(Wf,JSON.stringify({rate:i})),ed=()=>{let i=Pi.safeStorage.get(Wf);if((0,Pi.isNullable)(i))return;let{rate:e}=JSON.parse(i);return e};var K0=require("@vkontakte/videoplayer-core"),Es=require("@vkontakte/videoplayer-shared");function vg(i){let e,t,n,o,l,r,a,s,u,f,p,g,y,h,C,w,F,T=i[2].default,k=Ee(T,i,i[1],null),P=[{xmlns:"http://www.w3.org/2000/svg"},{width:"76"},{height:"45"},{fill:"none"},{"data-testid":"video-360-icon"},{role:"img"},i[0]],x={};for(let W=0;W<P.length;W+=1)x=ne(x,P[W]);return{c(){e=V("svg"),k&&k.c(),t=V("g"),n=V("path"),o=V("path"),l=V("path"),r=V("path"),a=V("path"),s=V("defs"),u=V("filter"),f=V("feFlood"),p=V("feColorMatrix"),g=V("feOffset"),y=V("feGaussianBlur"),h=V("feColorMatrix"),C=V("feBlend"),w=V("feBlend"),c(n,"fill","#fff"),c(n,"fill-rule","evenodd"),c(n,"d","M67 9.489A3.49 3.49 0 0 1 63.511 13 3.493 3.493 0 0 1 60 9.489 3.49 3.49 0 0 1 63.511 6 3.484 3.484 0 0 1 67 9.489m-5.003 0c0 .834.68 1.514 1.514 1.514.812 0 1.492-.68 1.492-1.514 0-.812-.68-1.492-1.492-1.492-.834 0-1.514.68-1.514 1.492"),c(n,"clip-rule","evenodd"),c(o,"fill","#fff"),c(o,"d","M26.86 15.183c1.372-.492 2.534-1.711 2.534-3.61C29.394 8.922 27.185 7 24.07 7c-1.965 0-3.573.784-4.67 2.29l-.108.149a1.333 1.333 0 0 0 .268 1.855c.536.402 1.295.343 1.736-.162.09-.102.164-.19.205-.247.594-.81 1.431-1.306 2.5-1.306 1.534 0 2.604.915 2.604 2.251 0 1.36-1.093 2.275-2.651 2.275h-.583a1.231 1.231 0 0 0 0 2.462h.583c1.744 0 2.907.985 2.907 2.392 0 1.453-1.186 2.462-2.884 2.462-1.296 0-2.201-.552-2.883-1.603a10 10 0 0 0-.2-.287 1.403 1.403 0 0 0-2.052-.246c-.494.42-.65 1.13-.305 1.68.072.116.146.227.218.322C20.132 23.137 21.678 24 23.999 24c3.28 0 5.628-2.04 5.628-4.924 0-2.204-1.395-3.4-2.767-3.893"),c(l,"fill","#fff"),c(l,"fill-rule","evenodd"),c(l,"d","M37.732 12.675c-.465 0-1 .046-1.511.164l2.584-3.74a1.338 1.338 0 1 0-2.203-1.518l-3.753 5.469c-1.418 2.133-1.837 3.822-1.837 5.276 0 3.47 2.558 5.674 6.186 5.674 3.604 0 6.162-2.392 6.162-5.768 0-3.236-2.349-5.557-5.628-5.557m-.534 8.746c-1.977 0-3.326-1.267-3.326-3.142 0-1.853 1.349-3.142 3.326-3.142 1.953 0 3.302 1.29 3.302 3.142 0 1.875-1.35 3.142-3.302 3.142M58 15.512c0 5.041-2.697 8.441-6.627 8.441s-6.628-3.4-6.628-8.441 2.698-8.442 6.628-8.442S58 10.47 58 15.512m-10.348 0c0 3.564 1.488 5.862 3.72 5.862s3.721-2.298 3.721-5.862-1.488-5.862-3.72-5.862-3.72 2.298-3.72 5.862Z"),c(l,"clip-rule","evenodd"),c(r,"fill","#fff"),c(r,"d","M67 23.5c0-1.318-1.201-3.094-4.199-4.673a1.5 1.5 0 1 1 1.398-2.654C67.452 17.886 70 20.433 70 23.5c0 3.126-2.556 5.554-6.088 7.27-3.633 1.766-8.825 3.062-15.259 3.722a1.5 1.5 0 0 1-.306-2.984c6.248-.641 11.057-1.882 14.253-3.436C65.897 26.47 67 24.8 67 23.5M38.879 35H38c-9.64 0-17.447-1.133-22.9-3.018-2.72-.941-4.94-2.099-6.506-3.468C7.019 27.138 6 25.445 6 23.5c0-1.64.785-3.073 1.908-4.255 1.119-1.179 2.66-2.205 4.42-3.086a1.5 1.5 0 1 1 1.343 2.682c-1.584.793-2.794 1.634-3.588 2.47C9.293 22.143 9 22.873 9 23.5c0 .807.407 1.74 1.568 2.755 1.17 1.022 2.996 2.02 5.513 2.892C21.106 30.885 28.55 32 38 32h.879l-1.44-1.44a1.5 1.5 0 0 1 2.122-2.12l3.999 3.998.01.011a1.5 1.5 0 0 1 .317 1.624 1.5 1.5 0 0 1-.326.488l-4 4a1.5 1.5 0 0 1-2.122-2.122L38.88 35Z"),c(a,"stroke","#000"),c(a,"stroke-linecap","round"),c(a,"stroke-linejoin","round"),c(a,"stroke-opacity",".12"),c(a,"stroke-width",".5"),c(a,"d","m7.908 19.245-.181-.173c1.146-1.206 2.714-2.248 4.49-3.137a1.75 1.75 0 1 1 1.566 3.13c-1.57.786-2.752 1.61-3.519 2.418-.762.802-1.014 1.474-1.014 2.017 0 .713.357 1.583 1.483 2.567 1.136.993 2.93 1.978 5.43 2.843 4.99 1.726 12.403 2.84 21.837 2.84h.275l-1.012-1.013a1.75 1.75 0 1 1 2.474-2.474l4 3.998h0l.012.013s0 0 0 0c.162.165.284.354.368.556q0 0 0 0l-.23.096A1.5 1.5 0 0 1 44 33.5q-.002.306-.113.573L7.907 19.245Zm0 0-.181-.173C6.576 20.284 5.75 21.775 5.75 23.5c0 2.04 1.07 3.796 2.68 5.202 1.599 1.398 3.85 2.569 6.589 3.516C20.506 34.116 28.343 35.25 38 35.25h.275zm29.824-6.82c-.3 0-.63.018-.965.063l2.244-3.247c.728-1.054-.026-2.491-1.306-2.491-.524 0-1.014.258-1.31.69l-3.752 5.468h0l-.002.003c-1.442 2.17-1.879 3.905-1.879 5.415 0 1.8.665 3.288 1.815 4.324 1.147 1.033 2.757 1.6 4.62 1.6 3.727 0 6.413-2.488 6.413-6.018 0-3.377-2.464-5.807-5.878-5.807m25.779.825c2.07 0 3.739-1.67 3.739-3.761 0-2.07-1.67-3.739-3.739-3.739a3.74 3.74 0 0 0-3.761 3.739 3.743 3.743 0 0 0 3.761 3.761m0-2.497a1.267 1.267 0 0 1-1.264-1.264c0-.671.566-1.242 1.264-1.242.674 0 1.242.568 1.242 1.242 0 .698-.57 1.264-1.242 1.264m-33.634 8.323c0-2.043-1.139-3.272-2.388-3.895 1.208-.629 2.155-1.846 2.155-3.609 0-2.82-2.357-4.822-5.575-4.822-2.04 0-3.724.818-4.871 2.392l-.109.149a1.583 1.583 0 0 0 .32 2.203c.635.476 1.542.411 2.074-.197.09-.103.17-.198.219-.264.553-.755 1.318-1.204 2.297-1.204.72 0 1.309.214 1.715.564.403.347.64.84.64 1.437 0 .608-.242 1.107-.653 1.457-.415.353-1.017.568-1.748.568h-.583a1.481 1.481 0 0 0 0 2.962h.583c.826 0 1.493.233 1.948.61.451.375.709.902.709 1.532 0 .654-.265 1.2-.718 1.586-.455.388-1.116.626-1.916.626-.61 0-1.117-.13-1.548-.375s-.801-.614-1.125-1.114a11 11 0 0 0-.206-.296 1.653 1.653 0 0 0-2.417-.292c-.577.49-.774 1.335-.356 2.004.075.119.152.236.23.339.704.945 1.462 1.652 2.352 2.121.892.47 1.9.692 3.094.692 3.383 0 5.877-2.121 5.877-5.174m7.32 2.095c-.934 0-1.7-.299-2.232-.8-.53-.5-.843-1.217-.843-2.092 0-.863.313-1.581.844-2.085s1.298-.807 2.232-.807c.92 0 1.682.303 2.21.807.529.503.842 1.222.842 2.085 0 .875-.314 1.593-.84 2.093-.53.5-1.29.799-2.212.799Zm14.176 3.032c2.044 0 3.772-.887 4.983-2.425 1.208-1.534 1.894-3.703 1.894-6.266s-.686-4.732-1.894-6.266c-1.211-1.539-2.94-2.426-4.983-2.426-2.044 0-3.773.887-4.984 2.426-1.208 1.534-1.894 3.703-1.894 6.266s.686 4.732 1.894 6.266c1.211 1.538 2.94 2.425 4.984 2.425m0-3.08c-1.017 0-1.874-.518-2.487-1.478-.618-.968-.984-2.382-.984-4.133 0-1.752.366-3.166.984-4.133.613-.96 1.47-1.48 2.487-1.48s1.873.52 2.486 1.48c.618.967.984 2.381.984 4.133 0 1.751-.366 3.165-.984 4.133-.613.96-1.47 1.479-2.486 1.479Zm11.312-2.075c2.975 1.567 4.065 3.279 4.065 4.452 0 1.148-.983 2.756-4.259 4.347-3.16 1.536-7.937 2.773-14.17 3.412a1.75 1.75 0 0 0 .358 3.482c6.45-.662 11.673-1.963 15.342-3.746 3.551-1.725 6.229-4.216 6.229-7.495 0-3.213-2.661-5.825-5.935-7.548a1.75 1.75 0 1 0-1.63 3.096"),c(t,"filter","url(#a)"),c(f,"flood-opacity","0"),c(f,"result","BackgroundImageFix"),c(p,"in","SourceAlpha"),c(p,"result","hardAlpha"),c(p,"values","0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0"),c(y,"stdDeviation","2.5"),c(h,"values","0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.16 0"),c(C,"in2","BackgroundImageFix"),c(C,"result","effect1_dropShadow_618_12297"),c(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"),ye(e,x)},m(W,z){v(W,e,z),k&&k.m(e,null),_(e,t),_(t,n),_(t,o),_(t,l),_(t,r),_(t,a),_(e,s),_(s,u),_(u,f),_(u,p),_(u,g),_(u,y),_(u,h),_(u,C),_(u,w),F=!0},p(W,[z]){k&&k.p&&(!F||z&2)&&Ae(k,T,W,W[1],F?Me(T,W[1],z,null):Le(W[1]),null),ye(e,x=De(P,[{xmlns:"http://www.w3.org/2000/svg"},{width:"76"},{height:"45"},{fill:"none"},{"data-testid":"video-360-icon"},{role:"img"},z&1&&W[0]]))},i(W){F||(d(k,W),F=!0)},o(W){m(k,W),F=!1},d(W){W&&b(e),k&&k.d(W)}}}function yg(i,e,t){let{$$slots:n={},$$scope:o}=e;return i.$$set=l=>{t(0,e=ne(ne({},e),ve(l))),"$$scope"in l&&t(1,o=l.$$scope)},e=ve(e),[e,o,n]}var Xs=class extends B{constructor(e){super(),D(this,e,yg,vg,R,{})}},vl=Xs;var gr=require("@vkontakte/videoplayer-shared");var kg={auto_quality_invariant:"\u0410\u0432\u0442\u043E",auto_quality:"\u0410\u0432\u0442\u043E ({actual})",auto_quality_option:"\u0410\u0432\u0442\u043E",menu_quality:"\u041A\u0430\u0447\u0435\u0441\u0442\u0432\u043E",menu_traffic_saving:"\u042D\u043A\u043E\u043D\u043E\u043C\u0438\u044F \u0434\u0430\u043D\u043D\u044B\u0445",menu_playback_rate:"\u0421\u043A\u043E\u0440\u043E\u0441\u0442\u044C",menu_report:"\u0421\u043E\u043E\u0431\u0449\u0438\u0442\u044C \u043E \u043F\u0440\u043E\u0431\u043B\u0435\u043C\u0435",menu_pip:"\u041A\u0430\u0440\u0442\u0438\u043D\u043A\u0430 \u0432 \u043A\u0430\u0440\u0442\u0438\u043D\u043A\u0435",menu_copy_video_link:"\u0421\u043A\u043E\u043F\u0438\u0440\u043E\u0432\u0430\u0442\u044C \u0441\u0441\u044B\u043B\u043A\u0443 \u043D\u0430 \u0432\u0438\u0434\u0435\u043E",menu_copy_video_link_with_timestamp:"\u0421\u043A\u043E\u043F\u0438\u0440\u043E\u0432\u0430\u0442\u044C \u0441\u0441\u044B\u043B\u043A\u0443 \u043D\u0430 \u043A\u0430\u0434\u0440",menu_video_rotate:"\u041F\u043E\u0432\u0435\u0440\u043D\u0443\u0442\u044C",menu_video_loop_on:"\u0412\u043A\u043B\u044E\u0447\u0438\u0442\u044C \u043F\u043E\u0432\u0442\u043E\u0440\u0435\u043D\u0438\u0435",menu_video_loop_off:"\u041E\u0442\u043A\u043B\u044E\u0447\u0438\u0442\u044C \u043F\u043E\u0432\u0442\u043E\u0440\u0435\u043D\u0438\u0435",menu_chromecast:"Chromecast \u0442\u0440\u0430\u043D\u0441\u043B\u044F\u0446\u0438\u044F",menu_copy_debug:"\u041A\u043E\u043F\u0438\u0440\u043E\u0432\u0430\u0442\u044C \u0434\u0430\u043D\u043D\u044B\u0435 \u0434\u043B\u044F \u0434\u0438\u0430\u0433\u043D\u043E\u0441\u0442\u0438\u043A\u0438",menu_save_debug:"\u0421\u043E\u0445\u0440\u0430\u043D\u0438\u0442\u044C \u0434\u0430\u043D\u043D\u044B\u0435 \u0434\u043B\u044F \u0434\u0438\u0430\u0433\u043D\u043E\u0441\u0442\u0438\u043A\u0438",menu_debug_overlay:"\u0422\u0435\u0445\u043D\u0438\u0447\u0435\u0441\u043A\u0430\u044F \u0438\u043D\u0444\u043E\u0440\u043C\u0430\u0446\u0438\u044F",menu_copy_embed_code:"\u041A\u043E\u043F\u0438\u0440\u043E\u0432\u0430\u0442\u044C \u043A\u043E\u0434 \u0434\u043B\u044F \u0432\u0441\u0442\u0440\u0430\u0438\u0432\u0430\u043D\u0438\u044F",menu_audio_languages:"\u0417\u0432\u0443\u043A\u043E\u0432\u0430\u044F \u0434\u043E\u0440\u043E\u0436\u043A\u0430",audio_stream_display_language_label:"{label} ({language})",audio_stream_display_language_label_index:"{label} {index} ({language})",audio_stream_display_label_index:"{label} {index}",audio_stream_display_language_index:"{language} {index}",audio_stream_display_unknown:"\u0414\u043E\u0440\u043E\u0436\u043A\u0430 {index}",pip_dummy_title:"\u0412\u0438\u0434\u0435\u043E \u0432\u043E\u0441\u043F\u0440\u043E\u0438\u0437\u0432\u043E\u0434\u0438\u0442\u0441\u044F \u0432 \u0440\u0435\u0436\u0438\u043C\u0435 \u043A\u0430\u0440\u0442\u0438\u043D\u043A\u0430 \u0432 \u043A\u0430\u0440\u0442\u0438\u043D\u043A\u0435",submenu_quality:"\u041A\u0430\u0447\u0435\u0441\u0442\u0432\u043E",submenu_playback_rate:"\u0421\u043A\u043E\u0440\u043E\u0441\u0442\u044C",submenu_settings:"\u041D\u0430\u0441\u0442\u0440\u043E\u0439\u043A\u0438",submenu_traffic_saving:"\u042D\u043A\u043E\u043D\u043E\u043C\u0438\u044F \u0434\u0430\u043D\u043D\u044B\u0445",submenu_audio_languages:"\u0417\u0432\u0443\u043A\u043E\u0432\u0430\u044F \u0434\u043E\u0440\u043E\u0436\u043A\u0430",mobile_unmute:"\u0412\u043A\u043B\u044E\u0447\u0438\u0442\u044C \u0437\u0432\u0443\u043A",playing_ads:"\u0420\u0435\u043A\u043B\u0430\u043C\u0430 {timeleft}",skip_ads_now:"\u041F\u0440\u043E\u043F\u0443\u0441\u0442\u0438\u0442\u044C \u0440\u0435\u043A\u043B\u0430\u043C\u0443",skip_ads_after:"\u041F\u0440\u043E\u043F\u0443\u0441\u0442\u0438\u0442\u044C \u0440\u0435\u043A\u043B\u0430\u043C\u0443 \u0447\u0435\u0440\u0435\u0437 {time}\u0441",visit_advertiser:"\u041F\u0435\u0440\u0435\u0439\u0442\u0438 \u043D\u0430 \u0441\u0430\u0439\u0442",aria_timeline:"\u041F\u043E\u043B\u0437\u0443\u043D\u043E\u043A \u0432\u0440\u0435\u043C\u0435\u043D\u043D\u043E\u0439 \u0448\u043A\u0430\u043B\u044B",aria_timeline_value:"{position} (\u043E\u0431\u0449\u0430\u044F \u0434\u043B\u0438\u0442\u0435\u043B\u044C\u043D\u043E\u0441\u0442\u044C {duration}",aria_open_settings:"\u041E\u0442\u043A\u0440\u044B\u0442\u044C \u043D\u0430\u0441\u0442\u0440\u043E\u0439\u043A\u0438 \u0432\u0438\u0434\u0435\u043E\u043F\u043B\u0435\u0435\u0440\u0430",doubletap_seek_step:"{seconds} \u0441\u0435\u043A\u0443\u043D\u0434",playback_rate_1:"\u041E\u0431\u044B\u0447\u043D\u0430\u044F",playback_rate:"{multiplier}x",video360:"\u043F\u0430\u043D\u043E\u0440\u0430\u043C\u043D\u043E\u0435 \u0432\u0438\u0434\u0435\u043E",subtitles_caption:"\u0421\u0443\u0431\u0442\u0438\u0442\u0440\u044B",subtitles_auto:"{language} (\u0410\u0432\u0442\u043E\u043C\u0430\u0442\u0438\u0447\u0435\u0441\u043A\u0438\u0435)",subtitles_off:"\u0412\u044B\u043A\u043B.",subtitles_auto_caption:"\u0410\u0432\u0442\u043E\u043C\u0430\u0442\u0438\u0447\u0435\u0441\u043A\u0438\u0435 \u0441\u0443\u0431\u0442\u0438\u0442\u0440\u044B",subtitles_turn_on:"\u0412\u043A\u043B\u044E\u0447\u0438\u0442\u044C \u0441\u0443\u0431\u0442\u0438\u0442\u0440\u044B",subtitles_turn_off:"\u0412\u044B\u043A\u043B\u044E\u0447\u0438\u0442\u044C \u0441\u0443\u0431\u0442\u0438\u0442\u0440\u044B",traffic_saving_off:"\u041E\u0442\u043A\u043B.",traffic_saving_on:"\u0412\u043A\u043B.",traffic_saving_disable:"\u041E\u0442\u043A\u043B\u044E\u0447\u0435\u043D\u0430",traffic_saving_enable:"\u0412\u043A\u043B\u044E\u0447\u0435\u043D\u0430",traffic_saving_helper_text:"\u041F\u0440\u0438 \u0432\u043A\u043B\u044E\u0447\u0435\u043D\u0438\u0438 \u043A\u0430\u0447\u0435\u0441\u0442\u0432\u043E \u0432\u0438\u0434\u0435\u043E \u0431\u0443\u0434\u0435\u0442 \u0441\u043D\u0438\u0436\u0435\u043D\u043E \u0434\u043B\u044F \u044D\u043A\u043E\u043D\u043E\u043C\u0438\u0438 \u0442\u0440\u0430\u0444\u0438\u043A\u0430",tooltip_button_disabled:"\u041A\u043D\u043E\u043F\u043A\u0430 \u043D\u0435\u0434\u043E\u0441\u0442\u0443\u043F\u043D\u0430",tooltip_previous:"\u041F\u0440\u0435\u0434\u044B\u0434\u0443\u0449\u0435\u0435 \u0432\u0438\u0434\u0435\u043E",tooltip_restart:"\u041D\u0430\u0447\u0430\u0442\u044C \u0437\u0430\u043D\u043E\u0432\u043E",tooltip_play:"\u0421\u043C\u043E\u0442\u0440\u0435\u0442\u044C",tooltip_pause:"\u041F\u0430\u0443\u0437\u0430",tooltip_next:"\u0421\u043B\u0435\u0434\u0443\u044E\u0449\u0435\u0435 \u0432\u0438\u0434\u0435\u043E",tooltip_interactive_go_back:"\u0412\u0435\u0440\u043D\u0443\u0442\u044C\u0441\u044F \u043A \u043F\u0440\u0435\u0434\u044B\u0434\u0443\u0449\u0435\u0439 \u0433\u043B\u0430\u0432\u0435",tooltip_interactive_go_back_disabled:"\u0418\u0441\u0442\u043E\u0440\u0438\u044F \u043F\u0440\u043E\u0445\u043E\u0436\u0434\u0435\u043D\u0438\u044F \u043D\u0435\u0434\u043E\u0441\u0442\u0443\u043F\u043D\u0430",tooltip_interactive_go_back_disabled_first:"\u0412\u044B \u0441\u043C\u043E\u0442\u0440\u0438\u0442\u0435 \u043F\u0435\u0440\u0432\u0443\u044E \u0433\u043B\u0430\u0432\u0443",tooltip_interactive_go_back_disabled_limit:"\u041B\u0438\u043C\u0438\u0442 \u0432\u043E\u0437\u0432\u0440\u0430\u0442\u043E\u0432 \u0438\u0441\u0447\u0435\u0440\u043F\u0430\u043D",tooltip_chapter_without_interactive:"\u0412 \u044D\u0442\u043E\u0439 \u0433\u043B\u0430\u0432\u0435 \u043D\u0435\u0442 \u0438\u043D\u0442\u0435\u0440\u0430\u043A\u0442\u0438\u0432\u0430",tooltip_interactive_of_chapter_completed:"\u0418\u043D\u0442\u0435\u0440\u0430\u043A\u0442\u0438\u0432\u044B \u044D\u0442\u043E\u0439 \u0433\u043B\u0430\u0432\u044B \u0443\u0436\u0435 \u043F\u0440\u043E\u0439\u0434\u0435\u043D\u044B",tooltip_interactive_seek:"\u041F\u0435\u0440\u0435\u0439\u0442\u0438 \u043A \u0438\u043D\u0442\u0435\u0440\u0430\u043A\u0442\u0438\u0432\u0443",tooltip_interactive_graph_off:"\u041F\u043E\u043A\u0430\u0437\u0430\u0442\u044C \u043A\u0430\u0440\u0442\u0443 \u0441\u044E\u0436\u0435\u0442\u0430",tooltip_interactive_graph_on:"\u0421\u043A\u0440\u044B\u0442\u044C \u043A\u0430\u0440\u0442\u0443 \u0441\u044E\u0436\u0435\u0442\u0430",tooltip_live:"\u041F\u0435\u0440\u0435\u043C\u043E\u0442\u0430\u0442\u044C \u043D\u0430 \u0430\u043A\u0442\u0443\u0430\u043B\u044C\u043D\u044B\u0439 \u043B\u0430\u0439\u0432",tooltip_episodes:"\u042D\u043F\u0438\u0437\u043E\u0434\u044B",tooltip_volume:"\u0412\u043A\u043B\u044E\u0447\u0438\u0442\u044C \u0437\u0432\u0443\u043A",tooltip_volume_muted:"\u0412\u044B\u043A\u043B\u044E\u0447\u0438\u0442\u044C \u0437\u0432\u0443\u043A",tooltip_subtitles_off:"\u0412\u043A\u043B\u044E\u0447\u0438\u0442\u044C \u0441\u0443\u0431\u0442\u0438\u0442\u0440\u044B",tooltip_subtitles_on:"\u0412\u044B\u043A\u043B\u044E\u0447\u0438\u0442\u044C \u0441\u0443\u0431\u0442\u0438\u0442\u0440\u044B",tooltip_settings_off:"\u041E\u0442\u043A\u0440\u044B\u0442\u044C \u043D\u0430\u0441\u0442\u0440\u043E\u0439\u043A\u0438",tooltip_settings_on:"\u0417\u0430\u043A\u0440\u044B\u0442\u044C \u043D\u0430\u0441\u0442\u0440\u043E\u0439\u043A\u0438",tooltip_fullscreen_off:"\u041D\u0430 \u0432\u0435\u0441\u044C \u044D\u043A\u0440\u0430\u043D",tooltip_fullscreen_on:"\u0412\u044B\u0439\u0442\u0438 \u0438\u0437 \u043F\u043E\u043B\u043D\u043E\u044D\u043A\u0440\u0430\u043D\u043D\u043E\u0433\u043E \u0440\u0435\u0436\u0438\u043C\u0430",tooltip_chromecast_off:"\u0412\u043A\u043B\u044E\u0447\u0438\u0442\u044C Chromecast",tooltip_chromecast_on:"\u0412\u044B\u043A\u043B\u044E\u0447\u0438\u0442\u044C Chromecast",tooltip_episode_finished:"\u0412\u044B \u0443\u0436\u0435 \u0441\u0434\u0435\u043B\u0430\u043B\u0438 \u0441\u0432\u043E\u0439 \u0432\u044B\u0431\u043E\u0440",tooltip_episode_unfinished:"\u041D\u0435 \u043F\u0440\u043E\u0439\u0434\u0435\u043D\u043E",tooltip_disabled_when_interactive:"\u0418\u043D\u0442\u0435\u0440\u0430\u043A\u0442\u0438\u0432 \u0443\u0436\u0435 \u0438\u0434\u0451\u0442",tooltip_disabled_when_graph_on:"\u041A\u043D\u043E\u043F\u043A\u0430 \u043D\u0435\u0434\u043E\u0441\u0442\u0443\u043F\u043D\u0430 \u0432\u043E \u0432\u0440\u0435\u043C\u044F \u043F\u0440\u043E\u0441\u043C\u043E\u0442\u0440\u0430 \u043A\u0430\u0440\u0442\u044B",tooltip_interactive_interaction_time_indicator:"\u041D\u0430\u0436\u043C\u0438\u0442\u0435 \u043D\u0430 \u044D\u043B\u0435\u043C\u0435\u043D\u0442 \u0438\u043D\u0442\u0435\u0440\u0430\u043A\u0442\u0438\u0432\u0430",tooltip_vk_logo:"\u041E\u0442\u043A\u0440\u044B\u0442\u044C \u0432 VK \u0412\u0438\u0434\u0435\u043E",tooltip_vk_video_logo:"\u041F\u0435\u0440\u0435\u0439\u0442\u0438 \u0432 VK \u0412\u0438\u0434\u0435\u043E",download_video_caption:"\u0421\u043A\u0430\u0447\u0430\u0442\u044C \u0432\u0438\u0434\u0435\u043E",hotkey_helper_current_volume:"{value} %",hotkey_map_modal_title:"\u0411\u044B\u0441\u0442\u0440\u044B\u0435 \u043A\u043B\u0430\u0432\u0438\u0448\u0438",hotkey_map_modal_close_btn_text:"\u0417\u0430\u043A\u0440\u044B\u0442\u044C",hotkey_map_group_title_common:"\u041E\u0431\u0449\u0438\u0435",hotkey_map_group_title_playback:"\u0412\u043E\u0441\u043F\u0440\u043E\u0438\u0437\u0432\u0435\u0434\u0435\u043D\u0438\u0435",hotkey_map_group_title_subtitles:"\u0421\u0443\u0431\u0442\u0438\u0442\u0440\u044B",hotkey_map_group_title_episodes:"\u042D\u043F\u0438\u0437\u043E\u0434\u044B",hotkey_map_item_mute_description:"\u0412\u043A\u043B\u044E\u0447\u0438\u0442\u044C \u0438\u043B\u0438 \u043E\u0442\u043A\u043B\u044E\u0447\u0438\u0442\u044C \u0437\u0432\u0443\u043A",hotkey_map_item_mute_value:"m",hotkey_map_item_volume_up_description:"\u0423\u0432\u0435\u043B\u0438\u0447\u0438\u0442\u044C \u0433\u0440\u043E\u043C\u043A\u043E\u0441\u0442\u044C",hotkey_map_item_volume_up_value:"\u0421\u0442\u0440\u0435\u043B\u043A\u0430 \u0432\u0432\u0435\u0440\u0445",hotkey_map_item_volume_down_description:"\u0423\u043C\u0435\u043D\u044C\u0448\u0438\u0442\u044C \u0433\u0440\u043E\u043C\u043A\u043E\u0441\u0442\u044C",hotkey_map_item_volume_down_value:"\u0421\u0442\u0440\u0435\u043B\u043A\u0430 \u0432\u043D\u0438\u0437",hotkey_map_item_pip_description:"\u0421\u0432\u0435\u0440\u043D\u0443\u0442\u044C \u0438\u043B\u0438 \u0440\u0430\u0437\u0432\u0435\u0440\u043D\u0443\u0442\u044C \u043C\u0438\u043D\u0438-\u043F\u0440\u043E\u0438\u0433\u0440\u044B\u0432\u0430\u0442\u0435\u043B\u044C",hotkey_map_item_pip_value:"i",hotkey_map_item_full_screen_description:"\u0412\u043A\u043B\u044E\u0447\u0438\u0442\u044C \u0438\u043B\u0438 \u0432\u044B\u043A\u043B\u044E\u0447\u0438\u0442\u044C \u043F\u043E\u043B\u043D\u043E\u044D\u043A\u0440\u0430\u043D\u043D\u044B\u0439 \u0440\u0435\u0436\u0438\u043C",hotkey_map_item_full_screen_value:"f",hotkey_map_item_show_context_menu_description:"\u0421\u043A\u0440\u044B\u0442\u044C \u0438\u043B\u0438 \u043F\u043E\u043A\u0430\u0437\u0430\u0442\u044C \u043A\u043E\u043D\u0442\u0435\u043A\u0441\u0442\u043D\u043E\u0435 \u043C\u0435\u043D\u044E",hotkey_map_item_show_context_menu_value:"Shift + !",hotkey_map_item_show_hotkey_map_description:"\u0421\u043A\u0440\u044B\u0442\u044C \u0438\u043B\u0438 \u043F\u043E\u043A\u0430\u0437\u0430\u0442\u044C \u0441\u043F\u0438\u0441\u043E\u043A \u0433\u043E\u0440\u044F\u0447\u0438\u0445 \u043A\u043B\u0430\u0432\u0438\u0448",hotkey_map_item_show_hotkey_map_value:"Shift + ?",hotkey_map_item_play_toggle_description:"\u041F\u0440\u0438\u043E\u0441\u0442\u0430\u043D\u043E\u0432\u0438\u0442\u044C \u0438\u043B\u0438 \u043F\u0440\u043E\u0434\u043E\u043B\u0436\u0438\u0442\u044C \u0432\u043E\u0441\u043F\u0440\u043E\u0438\u0437\u0432\u0435\u0434\u0435\u043D\u0438\u0435",hotkey_map_item_play_toggle_value:"\u041F\u0440\u043E\u0431\u0435\u043B (\u0438\u043B\u0438 k)",hotkey_map_item_seek_backward_description:"\u041F\u0435\u0440\u0435\u043C\u043E\u0442\u0430\u0442\u044C \u0440\u043E\u043B\u0438\u043A \u043D\u0430 10 \u0441\u0435\u043A\u0443\u043D\u0434 \u043D\u0430\u0437\u0430\u0434",hotkey_map_item_seek_backward_value:"\u0421\u0442\u0440\u0435\u043B\u043A\u0430 \u0432\u043B\u0435\u0432\u043E (\u0438\u043B\u0438 j)",hotkey_map_item_seek_forward_description:"\u041F\u0435\u0440\u0435\u043C\u043E\u0442\u0430\u0442\u044C \u0440\u043E\u043B\u0438\u043A \u043D\u0430 10 \u0441\u0435\u043A\u0443\u043D\u0434 \u0432\u043F\u0435\u0440\u0451\u0434",hotkey_map_item_seek_forward_value:"\u0421\u0442\u0440\u0435\u043B\u043A\u0430 \u0432\u043F\u0440\u0430\u0432\u043E (\u0438\u043B\u0438 l)",hotkey_map_item_fast_seek_backward_description:"\u0423\u0441\u043A\u043E\u0440\u0435\u043D\u043D\u0430\u044F \u043F\u0435\u0440\u0435\u043C\u043E\u0442\u043A\u0430 \u043D\u0430\u0437\u0430\u0434",hotkey_map_item_fast_seek_backward_value:"Shift + \u0421\u0442\u0440\u0435\u043B\u043A\u0430 \u0432\u043B\u0435\u0432\u043E",hotkey_map_item_fast_seek_forward_description:"\u0423\u0441\u043A\u043E\u0440\u0435\u043D\u043D\u0430\u044F \u043F\u0435\u0440\u0435\u043C\u043E\u0442\u043A\u0430 \u0432\u043F\u0435\u0440\u0451\u0434",hotkey_map_item_fast_seek_forward_value:"Shift + \u0421\u0442\u0440\u0435\u043B\u043A\u0430 \u0432\u043F\u0440\u0430\u0432\u043E",hotkey_map_item_rate_down_description:"\u0423\u043C\u0435\u043D\u044C\u0448\u0438\u0442\u044C \u0441\u043A\u043E\u0440\u043E\u0441\u0442\u044C \u0432\u043E\u0441\u043F\u0440\u043E\u0438\u0437\u0432\u0435\u0434\u0435\u043D\u0438\u044F",hotkey_map_item_rate_down_value:"< (Shift + ,)",hotkey_map_item_rate_up_description:"\u0423\u0432\u0435\u043B\u0438\u0447\u0438\u0442\u044C \u0441\u043A\u043E\u0440\u043E\u0441\u0442\u044C \u0432\u043E\u0441\u043F\u0440\u043E\u0438\u0437\u0432\u0435\u0434\u0435\u043D\u0438\u044F",hotkey_map_item_rate_up_value:"> (Shift + .)",hotkey_map_item_prev_frame_description:"\u041F\u0435\u0440\u0435\u0439\u0442\u0438 \u043A \u043F\u0440\u0435\u0434\u044B\u0434\u0443\u0449\u0435\u043C\u0443 \u043A\u0430\u0434\u0440\u0443 <br />(\u043A\u043E\u0433\u0434\u0430 \u0432\u043E\u0441\u043F\u0440\u043E\u0438\u0437\u0432\u0435\u0434\u0435\u043D\u0438\u0435 \u043F\u0440\u0438\u043E\u0441\u0442\u0430\u043D\u043E\u0432\u043B\u0435\u043D\u043E)",hotkey_map_item_prev_frame_value:",",hotkey_map_item_next_frame_description:"\u041F\u0435\u0440\u0435\u0439\u0442\u0438 \u043A \u0441\u043B\u0435\u0434\u0443\u044E\u0449\u0435\u043C\u0443 \u043A\u0430\u0434\u0440\u0443 <br />(\u043A\u043E\u0433\u0434\u0430 \u0432\u043E\u0441\u043F\u0440\u043E\u0438\u0437\u0432\u0435\u0434\u0435\u043D\u0438\u0435 \u043F\u0440\u0438\u043E\u0441\u0442\u0430\u043D\u043E\u0432\u043B\u0435\u043D\u043E)",hotkey_map_item_next_frame_value:".",hotkey_map_item_jump_seek_description:"\u041F\u0435\u0440\u0435\u0439\u0442\u0438 \u043A \u043E\u043F\u0440\u0435\u0434\u0435\u043B\u0451\u043D\u043D\u043E\u043C\u0443 \u043C\u043E\u043C\u0435\u043D\u0442\u0443 \u0432\u0438\u0434\u0435\u043E <br />(\u043D\u0430\u043F\u0440\u0438\u043C\u0435\u0440, \u043F\u0440\u0438 \u043D\u0430\u0436\u0430\u0442\u0438\u0438 \u043D\u0430 \u0446\u0438\u0444\u0440\u0443 \xAB7\xBB \u0440\u043E\u043B\u0438\u043A \u0431\u0443\u0434\u0435\u0442 \u043F\u0435\u0440\u0435\u043C\u043E\u0442\u0430\u043D \u0434\u043E \u0432\u0440\u0435\u043C\u0435\u043D\u043D\u043E\u0439 \u043E\u0442\u043C\u0435\u0442\u043A\u0438, \u043A\u043E\u0442\u043E\u0440\u0430\u044F \u0441\u043E\u043E\u0442\u0432\u0435\u0442\u0441\u0442\u0432\u0443\u0435\u0442 70% \u043E\u0442 \u0434\u043B\u0438\u0442\u0435\u043B\u044C\u043D\u043E\u0441\u0442\u0438 \u0432\u0438\u0434\u0435\u043E)",hotkey_map_item_jump_seek_value:"0, 1, 2, 3, 4, 5, 6, 7, 8, 9",hotkey_map_item_subtitles_toggle_description:"\u0412\u043A\u043B\u044E\u0447\u0438\u0442\u044C \u0438\u043B\u0438 \u043E\u0442\u043A\u043B\u044E\u0447\u0438\u0442\u044C \u0441\u0443\u0431\u0442\u0438\u0442\u0440\u044B",hotkey_map_item_subtitles_toggle_value:"c",hotkey_map_item_prev_episode_description:"\u041F\u0435\u0440\u0435\u0439\u0442\u0438 \u043A \u043F\u0440\u0435\u0434\u044B\u0434\u0443\u0449\u0435\u043C\u0443 \u044D\u043F\u0438\u0437\u043E\u0434\u0443",hotkey_map_item_prev_episode_pc_value:"Ctrl + \u0421\u0442\u0440\u0435\u043B\u043A\u0430 \u0432\u043B\u0435\u0432\u043E",hotkey_map_item_prev_episode_mac_value:"Option + \u0421\u0442\u0440\u0435\u043B\u043A\u0430 \u0432\u043B\u0435\u0432\u043E",hotkey_map_item_next_episode_description:"\u041F\u0435\u0440\u0435\u0439\u0442\u0438 \u043A \u0441\u043B\u0435\u0434\u0443\u044E\u0449\u0435\u043C\u0443 \u044D\u043F\u0438\u0437\u043E\u0434\u0443",hotkey_map_item_next_episode_pc_value:"Ctrl + \u0421\u0442\u0440\u0435\u043B\u043A\u0430 \u0432\u043F\u0440\u0430\u0432\u043E",hotkey_map_item_next_episode_mac_value:"Option + \u0421\u0442\u0440\u0435\u043B\u043A\u0430 \u0432\u043F\u0440\u0430\u0432\u043E",waiting_live_day_value:"\u0434\u043D",waiting_live_hour_value:"\u0447",waiting_live_minute_value:"\u043C\u0438\u043D",waiting_live_second_value:"\u0441\u0435\u043A",waiting_live_colon:":",waiting_live_upcoming_title:"\u0422\u0440\u0430\u043D\u0441\u043B\u044F\u0446\u0438\u044F \u0435\u0449\u0435 \u043D\u0435 \u043D\u0430\u0447\u0430\u043B\u0430\u0441\u044C",waiting_live_timer_title:"\u0414\u043E \u043D\u0430\u0447\u0430\u043B\u0430 \u0442\u0440\u0430\u043D\u0441\u043B\u044F\u0446\u0438\u0438 \u043E\u0441\u0442\u0430\u043B\u043E\u0441\u044C",waiting_live_recover_title:"\u0422\u0440\u0430\u043D\u0441\u043B\u044F\u0446\u0438\u044F \u043F\u0440\u0438\u043E\u0441\u0442\u0430\u043D\u043E\u0432\u043B\u0435\u043D\u0430 - \u043E\u043D\u0430 \u043F\u0440\u043E\u0434\u043E\u043B\u0436\u0438\u0442\u0441\u044F, \u043A\u043E\u0433\u0434\u0430 \u0430\u0432\u0442\u043E\u0440 \u0432\u0435\u0440\u043D\u0451\u0442\u0441\u044F",waiting_record_title:"\u0422\u0440\u0430\u043D\u0441\u043B\u044F\u0446\u0438\u044F \u0437\u0430\u0432\u0435\u0440\u0448\u0435\u043D\u0430 - \u0437\u0430\u043F\u0438\u0441\u044C \u043F\u043E\u044F\u0432\u0438\u0442\u0441\u044F \u043F\u043E\u0437\u0436\u0435",aria_label_video_player:"\u0412\u0438\u0434\u0435\u043E \u043F\u043B\u0435\u0435\u0440",aria_label_spherical_control:"\u041A\u043E\u043D\u0442\u0440\u043E\u043B\u043B\u0435\u0440 \u0434\u043B\u044F \u0441\u0444\u0435\u0440\u0438\u0447\u0435\u0441\u043A\u043E\u0433\u043E \u0432\u0438\u0434\u0435\u043E. \u0418\u0441\u043F\u043E\u043B\u044C\u0437\u0443\u0439\u0442\u0435 \u043A\u043B\u0430\u0432\u0438\u0448\u0438 \u0441\u043E \u0441\u0442\u0440\u0435\u043B\u043A\u0430\u043C\u0438 \u0434\u043B\u044F \u043F\u0430\u043D\u043E\u0440\u0430\u043C\u0438\u0440\u043E\u0432\u0430\u043D\u0438\u044F \u0432\u0438\u0434\u0435\u043E.",aria_label_debug_panel:"\u041E\u0431\u043B\u0430\u0441\u0442\u044C \u0441 \u0442\u0435\u0445\u043D\u0438\u0447\u0435\u0441\u043A\u043E\u0439 \u0438\u043D\u0444\u043E\u0440\u043C\u0430\u0446\u0438\u0435\u0439, \u0441\u0434\u0435\u043B\u0430\u0439\u0442\u0435 \u0441\u043A\u0440\u0438\u043D\u0448\u043E\u0442 \u0434\u043B\u044F \u0442\u0435\u0445\u043F\u043E\u0434\u0434\u0435\u0440\u0436\u043A\u0438",aria_label_new_tab_alert:"\u041E\u0442\u043A\u0440\u043E\u0435\u0442\u0441\u044F \u0432 \u043D\u043E\u0432\u043E\u0439 \u0432\u043A\u043B\u0430\u0434\u043A\u0435.",aria_label_context_menu_open:"\u041E\u0442\u043A\u0440\u044B\u0442\u044C \u043A\u043E\u043D\u0442\u0435\u043A\u0441\u0442\u043D\u043E\u0435 \u043C\u0435\u043D\u044E",aria_label_context_menu_close:"\u0417\u0430\u043A\u0440\u044B\u0442\u044C \u043A\u043E\u043D\u0442\u0435\u043A\u0441\u0442\u043D\u043E\u0435 \u043C\u0435\u043D\u044E",aria_label_menu_quality:"\u041A\u0430\u0447\u0435\u0441\u0442\u0432\u043E: {actual}",aria_label_menu_audio_languages:"\u042F\u0437\u044B\u043A \u0430\u0443\u0434\u0438\u043E: {actual}",aria_label_menu_rate:"\u0421\u043A\u043E\u0440\u043E\u0441\u0442\u044C: {actual}",aria_label_menu_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"},td=kg;var wg={mobile_unmute:"Unmute",auto_quality_invariant:"Auto",auto_quality:"Auto ({actual})",auto_quality_option:"Auto",menu_quality:"Quality",menu_playback_rate:"Playback rate",menu_traffic_saving:"Data saving",menu_report:"Report a problem",menu_pip:"Picture in picture",menu_copy_video_link:"Copy video link",menu_copy_video_link_with_timestamp:"Copy link with timestamp",menu_video_rotate:"Rotate",menu_video_loop_on:"Enable loop",menu_video_loop_off:"Disable loop",menu_chromecast:"Chromecast stream",menu_copy_debug:"Copy debug info",menu_save_debug:"Save debug info",menu_debug_overlay:"Tech stats",menu_copy_embed_code:"Copy embed code",menu_audio_languages:"Audio track",audio_stream_display_language_label:"{label} ({language})",audio_stream_display_language_label_index:"{label} {index} ({language})",audio_stream_display_label_index:"{label} {index}",audio_stream_display_language_index:"{language} {index}",audio_stream_display_unknown:"Audio track {index}",pip_dummy_title:"Video plays in picture-in-picture mode",submenu_quality:"Quality",submenu_playback_rate:"Playback rate",submenu_traffic_saving:"Data saving",submenu_settings:"Settings",submenu_audio_languages:"Audio track",playing_ads:"Ads {timeleft}",skip_ads_after:"Skip ads",skip_ads_now:"Ads can be skipped in {time}s",visit_advertiser:"Visit site",aria_timeline:"Time scale slider",aria_timeline_value:"{position} out of {duration}",aria_open_settings:"Open video player settings",doubletap_seek_step:"{seconds} seconds",playback_rate_1:"Normal",playback_rate:"{multiplier}x",video360:"spherical video",subtitles_caption:"Subtitles",subtitles_auto:"{language} (Auto-generated)",subtitles_off:"Off",subtitles_auto_caption:"Auto subtitles",subtitles_turn_on:"Turn on subtitles",subtitles_turn_off:"Turn off subtitles",traffic_saving_off:"Off",traffic_saving_on:"On",traffic_saving_disable:"Disabled",traffic_saving_enable:"Enabled",traffic_saving_helper_text:"When turned on the video quality will be reduced to save data",tooltip_button_disabled:"Button disabled",tooltip_previous:"Previous video",tooltip_restart:"Watch again",tooltip_play:"Play",tooltip_pause:"Pause",tooltip_next:"Next video",tooltip_interactive_go_back:"Back to previous chapter",tooltip_interactive_go_back_disabled:"Interactive history unavailable",tooltip_interactive_go_back_disabled_first:"You're watching the first chapter",tooltip_interactive_go_back_disabled_limit:"Go-back limit exceeded",tooltip_chapter_without_interactive:"This chapter has no interactive segment",tooltip_interactive_of_chapter_completed:"Chapter's interactive segments already watched",tooltip_interactive_seek:"Go to interactive",tooltip_interactive_graph_off:"Show interactive graph",tooltip_interactive_graph_on:"Hide interactive graph",tooltip_live:"Go to the live edge",tooltip_episodes:"Episodes",tooltip_volume:"Turn volume off",tooltip_volume_muted:"Turn volume on",tooltip_subtitles_off:"Turn subtitles on",tooltip_subtitles_on:"Turn subtitles off",tooltip_settings_off:"Open settings",tooltip_settings_on:"Close settings",tooltip_fullscreen_off:"Enter fullscreen mode",tooltip_fullscreen_on:"Exit fullscreen mode",tooltip_chromecast_off:"Turn Chromecast on",tooltip_chromecast_on:"Turn Chromecast off",tooltip_episode_finished:"You have already viewed interactive episode",tooltip_episode_unfinished:"Interactive episode not finished",tooltip_disabled_when_interactive:"Interactive video in progress",tooltip_disabled_when_graph_on:"Button is disabled when graph is opened",tooltip_interactive_interaction_time_indicator:"Press the interactive element",tooltip_vk_logo:"Open in VK Video",tooltip_vk_video_logo:"Go to VK Video",download_video_caption:"Download video",hotkey_helper_current_volume:"{value} %",hotkey_map_modal_title:"Keyboard shortcuts",hotkey_map_modal_close_btn_text:"Close",hotkey_map_group_title_common:"Common",hotkey_map_group_title_playback:"Playback",hotkey_map_group_title_subtitles:"Subtitles",hotkey_map_group_title_episodes:"Episodes",hotkey_map_item_mute_description:"Toggle mute",hotkey_map_item_mute_value:"m",hotkey_map_item_volume_up_description:"Increase volume",hotkey_map_item_volume_up_value:"Arrow up",hotkey_map_item_volume_down_description:"Decrease volume",hotkey_map_item_volume_down_value:"Arrow down",hotkey_map_item_pip_description:"Toggle miniplayer",hotkey_map_item_pip_value:"i",hotkey_map_item_full_screen_description:"Toggle full screen",hotkey_map_item_full_screen_value:"f",hotkey_map_item_show_context_menu_description:"Hide or show context menu",hotkey_map_item_show_context_menu_value:"Shift + !",hotkey_map_item_show_hotkey_map_description:"Hide or show list of hotkeys",hotkey_map_item_show_hotkey_map_value:"Shift + ?",hotkey_map_item_play_toggle_description:"Toggle play/pause",hotkey_map_item_play_toggle_value:"Space (or k)",hotkey_map_item_seek_backward_description:"Rewind 10 seconds",hotkey_map_item_seek_backward_value:"Arrow left (or j)",hotkey_map_item_seek_forward_description:"Forward 10 seconds",hotkey_map_item_seek_forward_value:"Arrow right (or l)",hotkey_map_item_fast_seek_backward_description:"Fast rewind",hotkey_map_item_fast_seek_backward_value:"Shift + Arrow left",hotkey_map_item_fast_seek_forward_description:"Fast forward",hotkey_map_item_fast_seek_forward_value:"Shift + Arrow right",hotkey_map_item_rate_down_description:"Decrease playback rate",hotkey_map_item_rate_down_value:"< (Shift + ,)",hotkey_map_item_rate_up_description:"Increase playback rate",hotkey_map_item_rate_up_value:"> (Shift + .)",hotkey_map_item_prev_frame_description:"Previous frame (while paused)",hotkey_map_item_prev_frame_value:",",hotkey_map_item_next_frame_description:"Next frame (while paused)",hotkey_map_item_next_frame_value:".",hotkey_map_item_jump_seek_description:"Seek to specific point in the video (7 advances to 70% of duration)",hotkey_map_item_jump_seek_value:"0, 1, 2, 3, 4, 5, 6, 7, 8, 9",hotkey_map_item_subtitles_toggle_description:"Toggle captions ON/OFF",hotkey_map_item_subtitles_toggle_value:"c",hotkey_map_item_prev_episode_description:"Seek to previous episode",hotkey_map_item_prev_episode_pc_value:"Ctrl + Arrow left",hotkey_map_item_prev_episode_mac_value:"Option + Arrow left",hotkey_map_item_next_episode_description:"Seek to next episode",hotkey_map_item_next_episode_pc_value:"Ctrl + Arrow right",hotkey_map_item_next_episode_mac_value:"Option + Arrow right",waiting_live_day_value:"d",waiting_live_hour_value:"h",waiting_live_minute_value:"min",waiting_live_second_value:"sec",waiting_live_colon:":",waiting_live_upcoming_title:"The broadcast hasn't started yet",waiting_live_timer_title:"Before the start of the broadcast left",waiting_live_recover_title:"The broadcast has been paused - it will resume when the author returns",waiting_record_title:"The broadcast completed - recording will appear later",aria_label_video_player:"Video player",aria_label_spherical_control:"Spherical video control. Use the arrow keys to pan the video.",aria_label_debug_panel:"Technical information area, take a screenshot for technical support",aria_label_new_tab_alert:"Opens in a new tab.",aria_label_context_menu_open:"Open context menu",aria_label_context_menu_close:"Close context menu",aria_label_menu_quality:"Quality: {actual}",aria_label_menu_audio_languages:"Audio language: {actual}",aria_label_menu_rate:"Rate: {actual}",aria_label_menu_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"},id=wg;var ro=new Map;ro.set(gr.InterfaceLanguage.EN,id);ro.set(gr.InterfaceLanguage.RU,td);var nd=new Map,Js=({language:i,pack:e,fallback:t})=>{if(ro.has(i)){let n=ro.get(i);ro.set(i,{...n,...e})}else ro.set(i,e);nd.set(i,t)},$s=i=>ro.has(i),ea=(i,e,t,n)=>{let l=ro.get(i)?.[e];if((0,gr.isNullable)(l)){let r=nd.get(i)??n;l=(r?ro.get(r):void 0)?.[e]}return(0,gr.isNullable)(l)?e+Object.values(t??{}).join(" "):t?l.replaceAll(/{(\w+?)}/g,(r,a)=>t[a]??""):l},U=(i,e)=>{let{interfaceLanguage$:t}=nt(),n=Je(t),o=Bt();return ea(n,i,e,o.defaultLanguage)};var T9=require("@vkontakte/videoplayer-core");var hr;(function(i){i.fatal="fatal",i.error="error",i.warning="warning",i.log="log",i.info="info",i.debug="debug",i.critical="critical"})(hr||(hr={}));var Cg=/^\s*at (?:(.*?) ?\()?((?:file|https?|blob|chrome-extension|address|native|eval|webpack|<anonymous>|[-a-z]+:|.*bundle|\/).*?)(?::(\d+))?(?::(\d+))?\)?\s*$/i,Sg=/^\s*(.*?)(?:\((.*?)\))?(?:^|@)?((?:file|https?|blob|chrome|webpack|resource|moz-extension).*?:\/.*?|\[native code\]|[^@]*(?:bundle|\d+\.js))(?::(\d+))?(?::(\d+))?\s*$/i,Ig=/^\s*at (?:((?:\[object object\])?.+) )?\(?((?:file|ms-appx|https?|webpack|blob):.*?):(\d+)(?::(\d+))?\)?\s*$/i,yl="?",Tg="X-Sentry-Auth",Pg=/^(?:(\w+):)\/\/(?:([\w-]+)(?::(\w+))?@)([\w.-]+)(?::(\d+))?\/(.+)/;function Eg(i){if(!i.stack)return null;let e=[],t=i.stack.split(`
13
- `),n,o;for(let l=0;l<t.length;++l){if(n=Cg.exec(t[l]))o={filename:n[2]&&n[2].indexOf("address at ")===0?n[2].substr(11):n[2],function:n[1]||yl,lineno:n[3]?+n[3]:null,colno:n[4]?+n[4]:null};else if(n=Ig.exec(t[l]))o={filename:n[2],function:n[1]||yl,lineno:+n[3],colno:n[4]?+n[4]:null};else if(n=Sg.exec(t[l]))l===0&&!n[5]&&i.columnNumber!==void 0&&(e[0].column=i.columnNumber+1),o={filename:n[3],function:n[1]||yl,lineno:n[4]?+n[4]:null,colno:n[5]?+n[5]:null};else continue;!o.function&&o.lineno&&(o.function=yl),e.push(o)}return e.length?{value:od(i),type:i.name,stacktrace:{frames:e.reverse()}}:null}function od(i){return(i&&i.message||"No error message").split(`
14
- `).filter(t=>!!t)[0]}function Mg(i){try{let e=Eg(i);if(e)return e}catch{}return{value:od(i),type:i&&i.name,stacktrace:{frames:[]}}}function Ag(){return"xxxxxxxxxxxx4xxxyxxxxxxxxxxxxxxx".replace(/[xy]/g,i=>{let e=Math.random()*16|0;return(i==="x"?e:e&3|8).toString(16)})}var kl=class{constructor(e){if(e&&e.dsn){let t=Pg.exec(e.dsn),n=t?t.slice(1):[],o=n[5].split("/"),l=o.slice(0,-1).join("/");this.apiUrl=n[0]+"://"+n[3]+(n[4]?":"+n[4]:"")+(l?"/"+l:"")+"/api/"+o.pop()+"/store/",this.authHeader="Sentry sentry_version=7,sentry_key="+n[1]+(n[2]?",sentry_secret="+n[2]:"")}this.environment=e&&e.environment}prepare(e){return{...this.getRequestBlank(),exception:{values:[Mg(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(Tg,this.authHeader||""),t.send(JSON.stringify(e))}getRequestBlank(){return{platform:"javascript",event_id:Ag(),sdk:{name:"micro-sentry.javascript.core",version:"0.0.0"},timestamp:Date.now()/1e3,environment:this.environment}}};function rd(i,e){return Object.prototype.toString.call(e)==="[object RegExp]"?e.test(i):typeof e=="string"?i.indexOf(e)!==-1:!1}function Lg(){return window}var wl=class i extends kl{constructor(e,t=Lg()){super(e),this.options=e,this.window=t,this.destroyed=!1,this._state={};let{plugins:n=[],beforeSend:o=u=>u,beforeBreadcrumb:l=u=>u,blacklistUrls:r=[],ignoreErrors:a=[],release:s=void 0}=this.options||{};this.plugins=n.map(u=>new u(this)),this.beforeSend=o,this.beforeBreadcrumb=l,this.blacklistUrls=r,this.ignoreErrors=a,this.release=s}get state(){return this._state}clearState(){this._state={}}setTags(e){return this.setKeyState("tags",{...e}),this}setTag(e,t){return this.extendState({tags:{[e]:t}}),this}setExtra(e,t){return this.extendState({extra:{[e]:t}}),this}setExtras(e){return this.setKeyState("extra",{...e}),this}setUser(e){return this.setKeyState("user",{...e}),this}clone(){let e=new i({...this.options,plugins:[]});return e.extendState(this.state),e}withScope(e){let t=this.clone();e(t),t.destroy(),this.setBreadcrumbs(void 0)}addBreadcrumb(e){this.extendState({breadcrumbs:[{timestamp:Date.now()/1e3,...this.beforeBreadcrumb(e)}]})}setBreadcrumbs(e){this.setKeyState("breadcrumbs",e)}captureMessage(e,t){this.send({...this.getRequestBlank(),message:e,level:t})}destroy(){this.destroyed=!0,this.plugins.forEach(e=>{e.destroy&&e.destroy()})}isIgnoredError(e){return this.ignoreErrors.length?this.getPossibleEventMessages(e).some(t=>this.ignoreErrors.some(n=>rd(t,n))):!1}getRequestBlank(){return{request:{url:this.window.location.toString(),headers:{"User-Agent":this.window.navigator.userAgent}},...super.getRequestBlank(),sdk:{name:"micro-sentry.javascript.browser",version:"0.0.0"},...this.state}}send(e){this.destroyed||this.isDeniedUrl(e)||this.isIgnoredError(e)||(super.send(this.beforeSend({release:this.release,...e})),this.setBreadcrumbs(void 0))}getPossibleEventMessages(e){if(e.message)return[e.message];if(e.exception)try{let{type:t="",value:n=""}=e.exception.values&&e.exception.values[0]||{};return[`${n}`,`${t}: ${n}`]}catch{return[]}return[]}isDeniedUrl(e){if(!this.blacklistUrls.length)return!1;let t=this.getEventFilterUrl(e);return t?this.blacklistUrls.some(n=>rd(t,n)):!1}getEventFilterUrl(e){try{if(e.exception){let t=e.exception.values&&e.exception.values[0].stacktrace&&e.exception.values[0].stacktrace.frames;return t&&t[t.length-1].filename||null}return null}catch{return null}}extendState(e){this._state=Object.keys(e).reduce((t,n)=>{let o=this._state[n],l=Array.isArray(o)?o:null,r=e[n],a=Array.isArray(r)?r:null;return{...t,[n]:l||a?[...l||[],...a||[]]:{...typeof o!="string"?o:{},...typeof r!="string"?r:{}}}},this._state)}setKeyState(e,t){this._state[e]=t}};var Fo=require("@vkontakte/videoplayer-shared");var Cl=null,qo=class{constructor(e,t,n={}){!Cl&&e.dsn&&(this.sentryClient=new wl({dsn:e.dsn,environment:t.env}),this.version=t.version,this.sentrySubscription=new Fo.Subscription,this.options=e,this.context=n,Cl=this)}destroy(){this.sentryClient?.destroy(),this.sentrySubscription?.unsubscribe(),Cl=null}logIError(e,t=!1){e.thrown&&this.report(e.thrown,{fatal:t,errorType:e.id,category:e.category},{message:e.message,errorData:e.data})}report(e,t={},n={}){let{sentryClient:o,context:l,options:r}=this,{sampleRate:a=0,whiteErrorIdList:s,whiteErrorCategoryList:u=[],blackErrorIdList:f,blackErrorCategoryList:p}=r,{errorType:g,category:y}=t;if((0,Fo.isNonNullable)(y)&&p.includes(y)||(0,Fo.isNonNullable)(g)&&f.includes(g))return;if(Math.random()<=a||(0,Fo.isNonNullable)(y)&&u.includes(y)||(0,Fo.isNonNullable)(g)&&s.includes(g)){Object.keys(t).length&&o.setTags({version:this.version,...t}),(Object.keys(l).length||Object.keys(n).length)&&o.setExtras({...l,...n});try{g&&o.captureMessage(g,t.fatal?hr.fatal:hr.error),o.report(e)}catch(C){console.error(C)}}}static getInstance(){return Cl}};var Sl=i=>{if(i.requestFullscreen)return i.requestFullscreen();if(i.msRequestFullscreen)return i.msRequestFullscreen();if(i.webkitRequestFullscreen)return i.webkitRequestFullscreen();if(i.mozRequestFullScreen)return i.mozRequestFullScreen();let e=i.querySelector("video");return e?.webkitEnterFullscreen?e.webkitEnterFullscreen():Promise.reject()},Il=i=>i.exitFullscreen?i.exitFullscreen():i.msExitFullscreen?i.msExitFullscreen():i.webkitExitFullscreen?i.webkitExitFullscreen():i.mozCancelFullScreen?i.mozCancelFullScreen():Promise.reject(),ld=i=>{let e=i;return e?.webkitExitFullscreen?e?.webkitExitFullscreen():Promise.reject()},jr=()=>{let i=document;return i.fullscreenElement||i.mozFullScreenElement||i.webkitFullscreenElement||i.msFullscreenElement},bo=()=>!!jr(),Tl=i=>{document.addEventListener("fullscreenchange",i),document.addEventListener("webkitfullscreenchange",i),document.addEventListener("mozfullscreenchange",i),document.addEventListener("MSFullscreenChange",i)},Pl=i=>{document.removeEventListener("fullscreenchange",i),document.removeEventListener("webkitfullscreenchange",i),document.removeEventListener("mozfullscreenchange",i),document.removeEventListener("MSFullscreenChange",i)},sd=i=>{let e=window.screen;return(async o=>e.orientation?e.orientation.lock(o):e.mozLockOrientation?e.mozLockOrientation(o):e.msLockOrientation?e.msLockOrientation(o):Promise.reject())(((o={width:0,height:0})=>o.width<=o.height?"portrait":"landscape")(i))};var ta=require("@vkontakte/videoplayer-shared"),ad=()=>({title:U("hotkey_map_modal_title"),closeBtnText:U("hotkey_map_modal_close_btn_text"),groups:[{title:U("hotkey_map_group_title_common"),items:[{description:U("hotkey_map_item_mute_description"),value:U("hotkey_map_item_mute_value")},{description:U("hotkey_map_item_volume_up_description"),value:U("hotkey_map_item_volume_up_value")},{description:U("hotkey_map_item_volume_down_description"),value:U("hotkey_map_item_volume_down_value")},{description:U("hotkey_map_item_pip_description"),value:U("hotkey_map_item_pip_value")},{description:U("hotkey_map_item_full_screen_description"),value:U("hotkey_map_item_full_screen_value")},{description:U("hotkey_map_item_show_context_menu_description"),value:U("hotkey_map_item_show_context_menu_value")},{description:U("hotkey_map_item_show_hotkey_map_description"),value:U("hotkey_map_item_show_hotkey_map_value")}]},{title:U("hotkey_map_group_title_playback"),items:[{description:U("hotkey_map_item_play_toggle_description"),value:U("hotkey_map_item_play_toggle_value")},{description:U("hotkey_map_item_seek_backward_description"),value:U("hotkey_map_item_seek_backward_value")},{description:U("hotkey_map_item_seek_forward_description"),value:U("hotkey_map_item_seek_forward_value")},{description:U("hotkey_map_item_fast_seek_backward_description"),value:U("hotkey_map_item_fast_seek_backward_value")},{description:U("hotkey_map_item_fast_seek_forward_description"),value:U("hotkey_map_item_fast_seek_forward_value")},{description:U("hotkey_map_item_rate_down_description"),value:U("hotkey_map_item_rate_down_value")},{description:U("hotkey_map_item_rate_up_description"),value:U("hotkey_map_item_rate_up_value")},{description:U("hotkey_map_item_prev_frame_description"),value:U("hotkey_map_item_prev_frame_value")},{description:U("hotkey_map_item_next_frame_description"),value:U("hotkey_map_item_next_frame_value")},{description:U("hotkey_map_item_jump_seek_description"),value:U("hotkey_map_item_jump_seek_value")}]},{title:U("hotkey_map_group_title_subtitles"),items:[{description:U("hotkey_map_item_subtitles_toggle_description"),value:U("hotkey_map_item_subtitles_toggle_value")}]},{title:U("hotkey_map_group_title_episodes"),items:[{description:U("hotkey_map_item_prev_episode_description"),value:ta.clientChecker.isApple?U("hotkey_map_item_prev_episode_mac_value"):U("hotkey_map_item_prev_episode_pc_value")},{description:U("hotkey_map_item_next_episode_description"),value:ta.clientChecker.isApple?U("hotkey_map_item_next_episode_mac_value"):U("hotkey_map_item_next_episode_pc_value")}]}]});var br=require("@vkontakte/videoplayer-shared");var Ho=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,br.debounceFn)(this.onResize.bind(this),300)};this.info={isActive$:new br.ValueSubject(this.isActive()),type:0}}isSupported(){return document.pictureInPictureEnabled&&!br.clientChecker.isYandex}isActive(){return this.isSupported()&&!!document.pictureInPictureElement}setContext(e){this.svelteContext=e}async revealPictureInPicture(){this.isRequested&&(this.unregistryEventHandlers(),await this.request(),this.registryEventHandlers())}async request(){if(!(!this.isSupported()||this.isActive()))try{await this.videoElement?.requestPictureInPicture()}catch{this.isRequested=!1}}async remove(){!this.isSupported()||!this.isActive()||await document.exitPictureInPicture()}assignPlayerContainer(e){this.isSupported()&&(this.playerContainer=e)}updateVideoElement(){this.isSupported()&&(this.videoElement=this.playerContainer?.querySelector("video"))}registryEventHandlers(){this.videoElement?.addEventListener("enterpictureinpicture",this.eventHandlers.enterpictureinpicture),this.videoElement?.addEventListener("leavepictureinpicture",this.eventHandlers.leavepictureinpicture)}registryExternalEventHandlers(e){this.externalEventHandlers={...e}}unregistryEventHandlers(){this.videoElement?.removeEventListener("enterpictureinpicture",this.eventHandlers.enterpictureinpicture),this.videoElement?.removeEventListener("leavepictureinpicture",this.eventHandlers.leavepictureinpicture)}async dispose(){this.unregistryEventHandlers(),await this.remove()}onEnterPictureInPicture(e){let n=e.pictureInPictureWindow;n&&(this.info.isActive$.next(!0),this.isRequested=!0,n.addEventListener("resize",this.eventHandlers.resize),this.externalEventHandlers.enterpictureinpicture?.(e))}onLeavePictureInPicture(e){let n=e.pictureInPictureWindow;this.info.isActive$.next(!1),this.isRequested=!1,n?.removeEventListener("resize",this.eventHandlers.resize),this.externalEventHandlers.leavepictureinpicture?.(e),this.playerDummyElement?.$destroy()}onResize(e){this.externalEventHandlers.resize?.(e)}};function zo(i){return i instanceof Ho}function Vg(i){let e=nt();return It(()=>{e.getAdmanWrapper().startPostroll()}),[]}var oa=class extends B{constructor(e){super(),D(this,e,Vg,null,R,{})}},ud=oa;var cd=require("@vkontakte/videoplayer-shared");function Rg(i){Ce(i,"svelte-1k4i25s",".container.svelte-1k4i25s.svelte-1k4i25s{position:absolute;top:14px;right:16px;padding:6px 10px;font-size:13px;color:#fff;background:rgba(0, 0, 0, 0.56);border-radius:6px;transition:color .2s}.container-mobile.svelte-1k4i25s.svelte-1k4i25s{bottom:14px;top:unset;font-size:15px;max-width:142px}.icon.svelte-1k4i25s.svelte-1k4i25s{margin-left:4px;position:relative;top:2px;fill:var(--white);transition:fill .2s}.skip.svelte-1k4i25s.svelte-1k4i25s{width:86px}.skippable.svelte-1k4i25s.svelte-1k4i25s{cursor:pointer;color:var(--white)}.skippable.svelte-1k4i25s.svelte-1k4i25s:hover{color:rgba(255, 255, 255, .75)}.skippable.svelte-1k4i25s:hover .icon.svelte-1k4i25s{fill:rgba(255, 255, 255, .75)}")}function Bg(i){let e=U("skip_ads_after",{time:Math.ceil(i[1]-i[0]).toFixed(0)})+"",t;return{c(){t=Ne(e)},m(n,o){v(n,t,o)},p(n,o){o&3&&e!==(e=U("skip_ads_after",{time:Math.ceil(n[1]-n[0]).toFixed(0)})+"")&&Ge(t,e)},d(n){n&&b(t)}}}function Dg(i){let e,t=U("skip_ads_now")+"",n,o,l,r,a,s;return{c(){e=I("div"),n=Ne(t),o=H(),l=V("svg"),r=V("path"),c(r,"fill-rule","evenodd"),c(r,"clip-rule","evenodd"),c(r,"d","M0.263627 0.263605C-0.0878444 0.615078 -0.0878429 1.18493 0.26363 1.5364L4.72723 5.99998L0.263627 10.4636C-0.0878444 10.8151 -0.0878429 11.3849 0.26363 11.7364C0.615103 12.0879 1.18495 12.0879 1.53642 11.7364L6.63642 6.63637C6.98789 6.2849 6.98789 5.71505 6.63642 5.36358L1.53642 0.263602C1.18495 -0.0878686 0.615098 -0.0878673 0.263627 0.263605Z"),c(l,"class","icon svelte-1k4i25s"),c(l,"width","7"),c(l,"height","12"),c(l,"viewBox","0 0 7 12"),c(l,"fill","none"),c(l,"xmlns","http://www.w3.org/2000/svg"),c(e,"class","skip svelte-1k4i25s")},m(u,f){v(u,e,f),_(e,n),_(e,o),_(e,l),_(l,r),a||(s=Pe(e,"click",mt(function(){Wt(i[2])&&i[2].apply(this,arguments)})),a=!0)},p(u,f){i=u},d(u){u&&b(e),a=!1,s()}}}function Ng(i){let e;function t(l,r){return l[3]?Dg:Bg}let n=t(i,-1),o=n(i);return{c(){e=I("div"),o.c(),c(e,"class","container svelte-1k4i25s"),G(e,"container-mobile",i[4]),G(e,"skippable",i[3])},m(l,r){v(l,e,r),o.m(e,null)},p(l,[r]){n===(n=t(l,r))&&o?o.p(l,r):(o.d(1),o=n(l),o&&(o.c(),o.m(e,null))),r&16&&G(e,"container-mobile",l[4]),r&8&&G(e,"skippable",l[3])},i:ge,o:ge,d(l){l&&b(e),o.d()}}}function Og(i,e,t){let n,{position:o=0}=e,{secondsToWatchBeforeSkip:l=0}=e,{skipAd:r=cd.noop}=e,s=nt().ui.isMobile;N(i,s,f=>t(4,n=f));let u;return i.$$set=f=>{"position"in f&&t(0,o=f.position),"secondsToWatchBeforeSkip"in f&&t(1,l=f.secondsToWatchBeforeSkip),"skipAd"in f&&t(2,r=f.skipAd)},i.$$.update=()=>{i.$$.dirty&3&&t(3,u=o>0&&o>=l)},[o,l,r,u,n,s]}var ra=class extends B{constructor(e){super(),D(this,e,Og,Ng,R,{position:0,secondsToWatchBeforeSkip:1,skipAd:2},Rg)}},fd=ra;function Fg(i){Ce(i,"svelte-1wy3dql","button.svelte-1wy3dql{position:absolute;pointer-events:none;bottom:14px;left:16px;font-size:15px;background:white;border:none;padding:6px 10px;border-radius:6px;color:black}")}function qg(i){let e;return{c(){e=I("button"),e.textContent=`${U("visit_advertiser")}`,c(e,"class","svelte-1wy3dql")},m(t,n){v(t,e,n)},p:ge,i:ge,o:ge,d(t){t&&b(e)}}}var la=class extends B{constructor(e){super(),D(this,e,null,qg,R,{},Fg)}},dd=la;function Hg(i){Ce(i,"svelte-354ajf",`.container.svelte-354ajf{width:100%;height:100%}.top-gradient-mobile.svelte-354ajf{position:absolute;width:100%;height:80px;top:0;left:0;pointer-events:none;background:linear-gradient(
9
+ `,G=`Trace: ${F.thrown?.stack}
10
+ `;return k+P+G}).join(`
11
+ `):void 0,g=t.state.isAudioDisabled?"disabled":Xe(t.state.isAudioAvailable$)?void 0:"unavailable",y=i.info.currentVideoStream$.getValue(),h=i.info.currentAudioStream$.getValue(),C=[];y&&C.push(`Video: ${y?.codec??""}`+(y?.hdr?" (HDR)":"")),h&&C.push(`Audio: ${h?.codec??""}`+(h?.language?` (${h.language})`:""));let w={Version:u,Browser:navigator.userAgent,Config:i.experimental.tuningConfigName$.getValue().join(", "),"United video id":String(t.videoId),VSID:Xe(t.vsid),"Content host":n.hostname$.getValue(),"Connection type":n.httpConnectionType$.getValue()+(n.httpConnectionReused$.getValue()?" (reused)":""),Throughput:`${r}Kbps @ ${a}ms RTT`,Format:n.currentFormat$.getValue(),"Available Formats":Object.keys(e.sources).join(", "),Streams:C.join(", "),Quality:`${s} ${n.currentQuality$.getValue()}`,"Available qualities":n.availableQualities$.getValue().join(", "),Audio:g,Position:`${Xe(t.state.positionExact$)}s`,State:`${Xe(t.playerPhase)} ${n.playbackState$.getValue()}`,"Player size":`${o}x${l}`,URL:window.location.href,Errors:p};return Object.entries(w).filter(([F,T])=>T!==void 0).map(([F,T])=>`${F}: ${T}`).join(`
12
+ `)},Ff=(i,e,t)=>{let n=i.info,{width:o,height:l}=Xe(t.ui.playerSize),r={version:Do,viewport:`${o}x${l}`,volume:Math.round(Xe(t.state.volume$)*100)};r.id=t.videoId,n.currentFormat$.getValue()&&(r.provider=n.currentFormat$.getValue()),n.hostname$.getValue()&&(r.cdn=n.hostname$.getValue());let u=n.intrinsicVideoSize$.getValue();u&&(r.videoSize=`${u.width}x${u.height}`);let f=n.currentBuffer$.getValue(),p=n.isLive$.getValue(),g=n.liveBufferTime$.getValue();f&&(p&&g?r.buffer=f.end-g:r.buffer=Math.max(f.end-Xe(t.state.positionExact$),0));let y=n.throughputEstimation$.getValue();y&&(r.speed=y);let h=n.videoBitrate$.getValue();h&&(r.bitrate=h);let C=n.currentVideoSegmentLength$.getValue();C&&(r.currentVideoSegmentLength=C);let w=n.currentAudioSegmentLength$.getValue();w&&(r.currentAudioSegmentLength=w);let F=Xe(t.vsid);typeof F=="string"&&(r.vsid=F);let T=i.info.currentVideoStream$.getValue()?.codec;T&&(r.videoCodec=T);let k=i.info.currentAudioStream$.getValue()?.codec;k&&(r.audioCodec=k),i.info.currentVideoStream$.getValue()?.hdr&&(r.hdr=!0);let G=i.info.currentAudioStream$.getValue()?.language;return G&&(r.audioLanguage=G),r},qf=(i,e)=>No(i,e,"mp4");var Ti=require("@vkontakte/videoplayer-shared"),l9=require("@vkontakte/videoplayer-core"),Hf="vk_player_prefer_traffic_saving_enabled",Uf="vk_player_preferred_volume",zf="vk_player_prefer_volume_mute",Ys="vk_player_preferred_quality",Wf="vk_player_preferred_stream_language",Kf="vk_player_preferred_rate",jf=i=>i>1?1:i<0?0:i,Qs=i=>Ti.safeStorage.set(Uf,jf(i).toString(10)),hl=()=>{let i=Ti.safeStorage.get(Uf);return(0,Ti.isNullable)(i)?void 0:jf(parseFloat(i))},Gf=(i,e)=>Ti.safeStorage.set(Ys,JSON.stringify({videoId:i,value:e})),Zs=()=>Ti.safeStorage.remove(Ys),xf=i=>{let e=Ti.safeStorage.get(Ys);if((0,Ti.isNullable)(e))return;let{videoId:t,value:n}=JSON.parse(e);if(i!==t){Zs();return}return n},Yf=(i,e)=>{e?Ti.safeStorage.set(i,"true"):Ti.safeStorage.remove(i)},Qf=i=>Ti.safeStorage.get(i)==="true",bl=i=>Yf(zf,i),Zf=()=>Qf(zf),Xf=i=>Yf(Hf,i),Jf=()=>Qf(Hf),$f=()=>Ti.safeStorage.get(Wf),Xs=i=>Ti.safeStorage.set(Wf,i),ed=i=>Ti.safeStorage.set(Kf,JSON.stringify({rate:i})),td=()=>{let i=Ti.safeStorage.get(Kf);if((0,Ti.isNullable)(i))return;let{rate:e}=JSON.parse(i);return e};var j0=require("@vkontakte/videoplayer-core"),Ms=require("@vkontakte/videoplayer-shared");function vg(i){let e,t,n,o,l,r,a,s,u,f,p,g,y,h,C,w,F,T=i[2].default,k=Ee(T,i,i[1],null),P=[{xmlns:"http://www.w3.org/2000/svg"},{width:"76"},{height:"45"},{fill:"none"},{"data-testid":"video-360-icon"},{role:"img"},i[0]],G={};for(let W=0;W<P.length;W+=1)G=ne(G,P[W]);return{c(){e=V("svg"),k&&k.c(),t=V("g"),n=V("path"),o=V("path"),l=V("path"),r=V("path"),a=V("path"),s=V("defs"),u=V("filter"),f=V("feFlood"),p=V("feColorMatrix"),g=V("feOffset"),y=V("feGaussianBlur"),h=V("feColorMatrix"),C=V("feBlend"),w=V("feBlend"),c(n,"fill","#fff"),c(n,"fill-rule","evenodd"),c(n,"d","M67 9.489A3.49 3.49 0 0 1 63.511 13 3.493 3.493 0 0 1 60 9.489 3.49 3.49 0 0 1 63.511 6 3.484 3.484 0 0 1 67 9.489m-5.003 0c0 .834.68 1.514 1.514 1.514.812 0 1.492-.68 1.492-1.514 0-.812-.68-1.492-1.492-1.492-.834 0-1.514.68-1.514 1.492"),c(n,"clip-rule","evenodd"),c(o,"fill","#fff"),c(o,"d","M26.86 15.183c1.372-.492 2.534-1.711 2.534-3.61C29.394 8.922 27.185 7 24.07 7c-1.965 0-3.573.784-4.67 2.29l-.108.149a1.333 1.333 0 0 0 .268 1.855c.536.402 1.295.343 1.736-.162.09-.102.164-.19.205-.247.594-.81 1.431-1.306 2.5-1.306 1.534 0 2.604.915 2.604 2.251 0 1.36-1.093 2.275-2.651 2.275h-.583a1.231 1.231 0 0 0 0 2.462h.583c1.744 0 2.907.985 2.907 2.392 0 1.453-1.186 2.462-2.884 2.462-1.296 0-2.201-.552-2.883-1.603a10 10 0 0 0-.2-.287 1.403 1.403 0 0 0-2.052-.246c-.494.42-.65 1.13-.305 1.68.072.116.146.227.218.322C20.132 23.137 21.678 24 23.999 24c3.28 0 5.628-2.04 5.628-4.924 0-2.204-1.395-3.4-2.767-3.893"),c(l,"fill","#fff"),c(l,"fill-rule","evenodd"),c(l,"d","M37.732 12.675c-.465 0-1 .046-1.511.164l2.584-3.74a1.338 1.338 0 1 0-2.203-1.518l-3.753 5.469c-1.418 2.133-1.837 3.822-1.837 5.276 0 3.47 2.558 5.674 6.186 5.674 3.604 0 6.162-2.392 6.162-5.768 0-3.236-2.349-5.557-5.628-5.557m-.534 8.746c-1.977 0-3.326-1.267-3.326-3.142 0-1.853 1.349-3.142 3.326-3.142 1.953 0 3.302 1.29 3.302 3.142 0 1.875-1.35 3.142-3.302 3.142M58 15.512c0 5.041-2.697 8.441-6.627 8.441s-6.628-3.4-6.628-8.441 2.698-8.442 6.628-8.442S58 10.47 58 15.512m-10.348 0c0 3.564 1.488 5.862 3.72 5.862s3.721-2.298 3.721-5.862-1.488-5.862-3.72-5.862-3.72 2.298-3.72 5.862Z"),c(l,"clip-rule","evenodd"),c(r,"fill","#fff"),c(r,"d","M67 23.5c0-1.318-1.201-3.094-4.199-4.673a1.5 1.5 0 1 1 1.398-2.654C67.452 17.886 70 20.433 70 23.5c0 3.126-2.556 5.554-6.088 7.27-3.633 1.766-8.825 3.062-15.259 3.722a1.5 1.5 0 0 1-.306-2.984c6.248-.641 11.057-1.882 14.253-3.436C65.897 26.47 67 24.8 67 23.5M38.879 35H38c-9.64 0-17.447-1.133-22.9-3.018-2.72-.941-4.94-2.099-6.506-3.468C7.019 27.138 6 25.445 6 23.5c0-1.64.785-3.073 1.908-4.255 1.119-1.179 2.66-2.205 4.42-3.086a1.5 1.5 0 1 1 1.343 2.682c-1.584.793-2.794 1.634-3.588 2.47C9.293 22.143 9 22.873 9 23.5c0 .807.407 1.74 1.568 2.755 1.17 1.022 2.996 2.02 5.513 2.892C21.106 30.885 28.55 32 38 32h.879l-1.44-1.44a1.5 1.5 0 0 1 2.122-2.12l3.999 3.998.01.011a1.5 1.5 0 0 1 .317 1.624 1.5 1.5 0 0 1-.326.488l-4 4a1.5 1.5 0 0 1-2.122-2.122L38.88 35Z"),c(a,"stroke","#000"),c(a,"stroke-linecap","round"),c(a,"stroke-linejoin","round"),c(a,"stroke-opacity",".12"),c(a,"stroke-width",".5"),c(a,"d","m7.908 19.245-.181-.173c1.146-1.206 2.714-2.248 4.49-3.137a1.75 1.75 0 1 1 1.566 3.13c-1.57.786-2.752 1.61-3.519 2.418-.762.802-1.014 1.474-1.014 2.017 0 .713.357 1.583 1.483 2.567 1.136.993 2.93 1.978 5.43 2.843 4.99 1.726 12.403 2.84 21.837 2.84h.275l-1.012-1.013a1.75 1.75 0 1 1 2.474-2.474l4 3.998h0l.012.013s0 0 0 0c.162.165.284.354.368.556q0 0 0 0l-.23.096A1.5 1.5 0 0 1 44 33.5q-.002.306-.113.573L7.907 19.245Zm0 0-.181-.173C6.576 20.284 5.75 21.775 5.75 23.5c0 2.04 1.07 3.796 2.68 5.202 1.599 1.398 3.85 2.569 6.589 3.516C20.506 34.116 28.343 35.25 38 35.25h.275zm29.824-6.82c-.3 0-.63.018-.965.063l2.244-3.247c.728-1.054-.026-2.491-1.306-2.491-.524 0-1.014.258-1.31.69l-3.752 5.468h0l-.002.003c-1.442 2.17-1.879 3.905-1.879 5.415 0 1.8.665 3.288 1.815 4.324 1.147 1.033 2.757 1.6 4.62 1.6 3.727 0 6.413-2.488 6.413-6.018 0-3.377-2.464-5.807-5.878-5.807m25.779.825c2.07 0 3.739-1.67 3.739-3.761 0-2.07-1.67-3.739-3.739-3.739a3.74 3.74 0 0 0-3.761 3.739 3.743 3.743 0 0 0 3.761 3.761m0-2.497a1.267 1.267 0 0 1-1.264-1.264c0-.671.566-1.242 1.264-1.242.674 0 1.242.568 1.242 1.242 0 .698-.57 1.264-1.242 1.264m-33.634 8.323c0-2.043-1.139-3.272-2.388-3.895 1.208-.629 2.155-1.846 2.155-3.609 0-2.82-2.357-4.822-5.575-4.822-2.04 0-3.724.818-4.871 2.392l-.109.149a1.583 1.583 0 0 0 .32 2.203c.635.476 1.542.411 2.074-.197.09-.103.17-.198.219-.264.553-.755 1.318-1.204 2.297-1.204.72 0 1.309.214 1.715.564.403.347.64.84.64 1.437 0 .608-.242 1.107-.653 1.457-.415.353-1.017.568-1.748.568h-.583a1.481 1.481 0 0 0 0 2.962h.583c.826 0 1.493.233 1.948.61.451.375.709.902.709 1.532 0 .654-.265 1.2-.718 1.586-.455.388-1.116.626-1.916.626-.61 0-1.117-.13-1.548-.375s-.801-.614-1.125-1.114a11 11 0 0 0-.206-.296 1.653 1.653 0 0 0-2.417-.292c-.577.49-.774 1.335-.356 2.004.075.119.152.236.23.339.704.945 1.462 1.652 2.352 2.121.892.47 1.9.692 3.094.692 3.383 0 5.877-2.121 5.877-5.174m7.32 2.095c-.934 0-1.7-.299-2.232-.8-.53-.5-.843-1.217-.843-2.092 0-.863.313-1.581.844-2.085s1.298-.807 2.232-.807c.92 0 1.682.303 2.21.807.529.503.842 1.222.842 2.085 0 .875-.314 1.593-.84 2.093-.53.5-1.29.799-2.212.799Zm14.176 3.032c2.044 0 3.772-.887 4.983-2.425 1.208-1.534 1.894-3.703 1.894-6.266s-.686-4.732-1.894-6.266c-1.211-1.539-2.94-2.426-4.983-2.426-2.044 0-3.773.887-4.984 2.426-1.208 1.534-1.894 3.703-1.894 6.266s.686 4.732 1.894 6.266c1.211 1.538 2.94 2.425 4.984 2.425m0-3.08c-1.017 0-1.874-.518-2.487-1.478-.618-.968-.984-2.382-.984-4.133 0-1.752.366-3.166.984-4.133.613-.96 1.47-1.48 2.487-1.48s1.873.52 2.486 1.48c.618.967.984 2.381.984 4.133 0 1.751-.366 3.165-.984 4.133-.613.96-1.47 1.479-2.486 1.479Zm11.312-2.075c2.975 1.567 4.065 3.279 4.065 4.452 0 1.148-.983 2.756-4.259 4.347-3.16 1.536-7.937 2.773-14.17 3.412a1.75 1.75 0 0 0 .358 3.482c6.45-.662 11.673-1.963 15.342-3.746 3.551-1.725 6.229-4.216 6.229-7.495 0-3.213-2.661-5.825-5.935-7.548a1.75 1.75 0 1 0-1.63 3.096"),c(t,"filter","url(#a)"),c(f,"flood-opacity","0"),c(f,"result","BackgroundImageFix"),c(p,"in","SourceAlpha"),c(p,"result","hardAlpha"),c(p,"values","0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0"),c(y,"stdDeviation","2.5"),c(h,"values","0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.16 0"),c(C,"in2","BackgroundImageFix"),c(C,"result","effect1_dropShadow_618_12297"),c(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"),ye(e,G)},m(W,z){v(W,e,z),k&&k.m(e,null),_(e,t),_(t,n),_(t,o),_(t,l),_(t,r),_(t,a),_(e,s),_(s,u),_(u,f),_(u,p),_(u,g),_(u,y),_(u,h),_(u,C),_(u,w),F=!0},p(W,[z]){k&&k.p&&(!F||z&2)&&Ae(k,T,W,W[1],F?Me(T,W[1],z,null):Le(W[1]),null),ye(e,G=Be(P,[{xmlns:"http://www.w3.org/2000/svg"},{width:"76"},{height:"45"},{fill:"none"},{"data-testid":"video-360-icon"},{role:"img"},z&1&&W[0]]))},i(W){F||(d(k,W),F=!0)},o(W){m(k,W),F=!1},d(W){W&&b(e),k&&k.d(W)}}}function yg(i,e,t){let{$$slots:n={},$$scope:o}=e;return i.$$set=l=>{t(0,e=ne(ne({},e),ve(l))),"$$scope"in l&&t(1,o=l.$$scope)},e=ve(e),[e,o,n]}var Js=class extends B{constructor(e){super(),D(this,e,yg,vg,R,{})}},vl=Js;var dr=require("@vkontakte/videoplayer-shared");var kg={auto_quality_invariant:"\u0410\u0432\u0442\u043E",auto_quality:"\u0410\u0432\u0442\u043E ({actual})",auto_quality_option:"\u0410\u0432\u0442\u043E",menu_quality:"\u041A\u0430\u0447\u0435\u0441\u0442\u0432\u043E",menu_traffic_saving:"\u042D\u043A\u043E\u043D\u043E\u043C\u0438\u044F \u0434\u0430\u043D\u043D\u044B\u0445",menu_playback_rate:"\u0421\u043A\u043E\u0440\u043E\u0441\u0442\u044C",menu_report:"\u0421\u043E\u043E\u0431\u0449\u0438\u0442\u044C \u043E \u043F\u0440\u043E\u0431\u043B\u0435\u043C\u0435",menu_pip:"\u041A\u0430\u0440\u0442\u0438\u043D\u043A\u0430 \u0432 \u043A\u0430\u0440\u0442\u0438\u043D\u043A\u0435",menu_copy_video_link:"\u0421\u043A\u043E\u043F\u0438\u0440\u043E\u0432\u0430\u0442\u044C \u0441\u0441\u044B\u043B\u043A\u0443 \u043D\u0430 \u0432\u0438\u0434\u0435\u043E",menu_copy_video_link_with_timestamp:"\u0421\u043A\u043E\u043F\u0438\u0440\u043E\u0432\u0430\u0442\u044C \u0441\u0441\u044B\u043B\u043A\u0443 \u043D\u0430 \u043A\u0430\u0434\u0440",menu_video_rotate:"\u041F\u043E\u0432\u0435\u0440\u043D\u0443\u0442\u044C",menu_video_loop_on:"\u0412\u043A\u043B\u044E\u0447\u0438\u0442\u044C \u043F\u043E\u0432\u0442\u043E\u0440\u0435\u043D\u0438\u0435",menu_video_loop_off:"\u041E\u0442\u043A\u043B\u044E\u0447\u0438\u0442\u044C \u043F\u043E\u0432\u0442\u043E\u0440\u0435\u043D\u0438\u0435",menu_chromecast:"Chromecast \u0442\u0440\u0430\u043D\u0441\u043B\u044F\u0446\u0438\u044F",menu_copy_debug:"\u041A\u043E\u043F\u0438\u0440\u043E\u0432\u0430\u0442\u044C \u0434\u0430\u043D\u043D\u044B\u0435 \u0434\u043B\u044F \u0434\u0438\u0430\u0433\u043D\u043E\u0441\u0442\u0438\u043A\u0438",menu_save_debug:"\u0421\u043E\u0445\u0440\u0430\u043D\u0438\u0442\u044C \u0434\u0430\u043D\u043D\u044B\u0435 \u0434\u043B\u044F \u0434\u0438\u0430\u0433\u043D\u043E\u0441\u0442\u0438\u043A\u0438",menu_debug_overlay:"\u0422\u0435\u0445\u043D\u0438\u0447\u0435\u0441\u043A\u0430\u044F \u0438\u043D\u0444\u043E\u0440\u043C\u0430\u0446\u0438\u044F",menu_copy_embed_code:"\u041A\u043E\u043F\u0438\u0440\u043E\u0432\u0430\u0442\u044C \u043A\u043E\u0434 \u0434\u043B\u044F \u0432\u0441\u0442\u0440\u0430\u0438\u0432\u0430\u043D\u0438\u044F",menu_audio_languages:"\u0417\u0432\u0443\u043A\u043E\u0432\u0430\u044F \u0434\u043E\u0440\u043E\u0436\u043A\u0430",audio_stream_display_language_label:"{label} ({language})",audio_stream_display_language_label_index:"{label} {index} ({language})",audio_stream_display_label_index:"{label} {index}",audio_stream_display_language_index:"{language} {index}",audio_stream_display_unknown:"\u0414\u043E\u0440\u043E\u0436\u043A\u0430 {index}",pip_dummy_title:"\u0412\u0438\u0434\u0435\u043E \u0432\u043E\u0441\u043F\u0440\u043E\u0438\u0437\u0432\u043E\u0434\u0438\u0442\u0441\u044F \u0432 \u0440\u0435\u0436\u0438\u043C\u0435 \u043A\u0430\u0440\u0442\u0438\u043D\u043A\u0430 \u0432 \u043A\u0430\u0440\u0442\u0438\u043D\u043A\u0435",submenu_quality:"\u041A\u0430\u0447\u0435\u0441\u0442\u0432\u043E",submenu_playback_rate:"\u0421\u043A\u043E\u0440\u043E\u0441\u0442\u044C",submenu_settings:"\u041D\u0430\u0441\u0442\u0440\u043E\u0439\u043A\u0438",submenu_traffic_saving:"\u042D\u043A\u043E\u043D\u043E\u043C\u0438\u044F \u0434\u0430\u043D\u043D\u044B\u0445",submenu_audio_languages:"\u0417\u0432\u0443\u043A\u043E\u0432\u0430\u044F \u0434\u043E\u0440\u043E\u0436\u043A\u0430",mobile_unmute:"\u0412\u043A\u043B\u044E\u0447\u0438\u0442\u044C \u0437\u0432\u0443\u043A",playing_ads:"\u0420\u0435\u043A\u043B\u0430\u043C\u0430 {timeleft}",skip_ads_now:"\u041F\u0440\u043E\u043F\u0443\u0441\u0442\u0438\u0442\u044C \u0440\u0435\u043A\u043B\u0430\u043C\u0443",skip_ads_after:"\u041F\u0440\u043E\u043F\u0443\u0441\u0442\u0438\u0442\u044C \u0440\u0435\u043A\u043B\u0430\u043C\u0443 \u0447\u0435\u0440\u0435\u0437 {time}\u0441",visit_advertiser:"\u041F\u0435\u0440\u0435\u0439\u0442\u0438 \u043D\u0430 \u0441\u0430\u0439\u0442",aria_timeline:"\u041F\u043E\u043B\u0437\u0443\u043D\u043E\u043A \u0432\u0440\u0435\u043C\u0435\u043D\u043D\u043E\u0439 \u0448\u043A\u0430\u043B\u044B",aria_timeline_value:"{position} (\u043E\u0431\u0449\u0430\u044F \u0434\u043B\u0438\u0442\u0435\u043B\u044C\u043D\u043E\u0441\u0442\u044C {duration}",aria_open_settings:"\u041E\u0442\u043A\u0440\u044B\u0442\u044C \u043D\u0430\u0441\u0442\u0440\u043E\u0439\u043A\u0438 \u0432\u0438\u0434\u0435\u043E\u043F\u043B\u0435\u0435\u0440\u0430",doubletap_seek_step:"{seconds} \u0441\u0435\u043A\u0443\u043D\u0434",playback_rate_1:"\u041E\u0431\u044B\u0447\u043D\u0430\u044F",playback_rate:"{multiplier}x",video360:"\u043F\u0430\u043D\u043E\u0440\u0430\u043C\u043D\u043E\u0435 \u0432\u0438\u0434\u0435\u043E",subtitles_caption:"\u0421\u0443\u0431\u0442\u0438\u0442\u0440\u044B",subtitles_auto:"{language} (\u0410\u0432\u0442\u043E\u043C\u0430\u0442\u0438\u0447\u0435\u0441\u043A\u0438\u0435)",subtitles_off:"\u0412\u044B\u043A\u043B.",subtitles_auto_caption:"\u0410\u0432\u0442\u043E\u043C\u0430\u0442\u0438\u0447\u0435\u0441\u043A\u0438\u0435 \u0441\u0443\u0431\u0442\u0438\u0442\u0440\u044B",subtitles_turn_on:"\u0412\u043A\u043B\u044E\u0447\u0438\u0442\u044C \u0441\u0443\u0431\u0442\u0438\u0442\u0440\u044B",subtitles_turn_off:"\u0412\u044B\u043A\u043B\u044E\u0447\u0438\u0442\u044C \u0441\u0443\u0431\u0442\u0438\u0442\u0440\u044B",traffic_saving_off:"\u041E\u0442\u043A\u043B.",traffic_saving_on:"\u0412\u043A\u043B.",traffic_saving_disable:"\u041E\u0442\u043A\u043B\u044E\u0447\u0435\u043D\u0430",traffic_saving_enable:"\u0412\u043A\u043B\u044E\u0447\u0435\u043D\u0430",traffic_saving_helper_text:"\u041F\u0440\u0438 \u0432\u043A\u043B\u044E\u0447\u0435\u043D\u0438\u0438 \u043A\u0430\u0447\u0435\u0441\u0442\u0432\u043E \u0432\u0438\u0434\u0435\u043E \u0431\u0443\u0434\u0435\u0442 \u0441\u043D\u0438\u0436\u0435\u043D\u043E \u0434\u043B\u044F \u044D\u043A\u043E\u043D\u043E\u043C\u0438\u0438 \u0442\u0440\u0430\u0444\u0438\u043A\u0430",tooltip_button_disabled:"\u041A\u043D\u043E\u043F\u043A\u0430 \u043D\u0435\u0434\u043E\u0441\u0442\u0443\u043F\u043D\u0430",tooltip_previous:"\u041F\u0440\u0435\u0434\u044B\u0434\u0443\u0449\u0435\u0435 \u0432\u0438\u0434\u0435\u043E",tooltip_restart:"\u041D\u0430\u0447\u0430\u0442\u044C \u0437\u0430\u043D\u043E\u0432\u043E",tooltip_play:"\u0421\u043C\u043E\u0442\u0440\u0435\u0442\u044C",tooltip_pause:"\u041F\u0430\u0443\u0437\u0430",tooltip_next:"\u0421\u043B\u0435\u0434\u0443\u044E\u0449\u0435\u0435 \u0432\u0438\u0434\u0435\u043E",tooltip_interactive_go_back:"\u0412\u0435\u0440\u043D\u0443\u0442\u044C\u0441\u044F \u043A \u043F\u0440\u0435\u0434\u044B\u0434\u0443\u0449\u0435\u0439 \u0433\u043B\u0430\u0432\u0435",tooltip_interactive_go_back_disabled:"\u0418\u0441\u0442\u043E\u0440\u0438\u044F \u043F\u0440\u043E\u0445\u043E\u0436\u0434\u0435\u043D\u0438\u044F \u043D\u0435\u0434\u043E\u0441\u0442\u0443\u043F\u043D\u0430",tooltip_interactive_go_back_disabled_first:"\u0412\u044B \u0441\u043C\u043E\u0442\u0440\u0438\u0442\u0435 \u043F\u0435\u0440\u0432\u0443\u044E \u0433\u043B\u0430\u0432\u0443",tooltip_interactive_go_back_disabled_limit:"\u041B\u0438\u043C\u0438\u0442 \u0432\u043E\u0437\u0432\u0440\u0430\u0442\u043E\u0432 \u0438\u0441\u0447\u0435\u0440\u043F\u0430\u043D",tooltip_chapter_without_interactive:"\u0412 \u044D\u0442\u043E\u0439 \u0433\u043B\u0430\u0432\u0435 \u043D\u0435\u0442 \u0438\u043D\u0442\u0435\u0440\u0430\u043A\u0442\u0438\u0432\u0430",tooltip_interactive_of_chapter_completed:"\u0418\u043D\u0442\u0435\u0440\u0430\u043A\u0442\u0438\u0432\u044B \u044D\u0442\u043E\u0439 \u0433\u043B\u0430\u0432\u044B \u0443\u0436\u0435 \u043F\u0440\u043E\u0439\u0434\u0435\u043D\u044B",tooltip_interactive_seek:"\u041F\u0435\u0440\u0435\u0439\u0442\u0438 \u043A \u0438\u043D\u0442\u0435\u0440\u0430\u043A\u0442\u0438\u0432\u0443",tooltip_interactive_graph_off:"\u041F\u043E\u043A\u0430\u0437\u0430\u0442\u044C \u043A\u0430\u0440\u0442\u0443 \u0441\u044E\u0436\u0435\u0442\u0430",tooltip_interactive_graph_on:"\u0421\u043A\u0440\u044B\u0442\u044C \u043A\u0430\u0440\u0442\u0443 \u0441\u044E\u0436\u0435\u0442\u0430",tooltip_live:"\u041F\u0435\u0440\u0435\u043C\u043E\u0442\u0430\u0442\u044C \u043D\u0430 \u0430\u043A\u0442\u0443\u0430\u043B\u044C\u043D\u044B\u0439 \u043B\u0430\u0439\u0432",tooltip_episodes:"\u042D\u043F\u0438\u0437\u043E\u0434\u044B",tooltip_volume:"\u0412\u043A\u043B\u044E\u0447\u0438\u0442\u044C \u0437\u0432\u0443\u043A",tooltip_volume_muted:"\u0412\u044B\u043A\u043B\u044E\u0447\u0438\u0442\u044C \u0437\u0432\u0443\u043A",tooltip_subtitles_off:"\u0412\u043A\u043B\u044E\u0447\u0438\u0442\u044C \u0441\u0443\u0431\u0442\u0438\u0442\u0440\u044B",tooltip_subtitles_on:"\u0412\u044B\u043A\u043B\u044E\u0447\u0438\u0442\u044C \u0441\u0443\u0431\u0442\u0438\u0442\u0440\u044B",tooltip_settings_off:"\u041E\u0442\u043A\u0440\u044B\u0442\u044C \u043D\u0430\u0441\u0442\u0440\u043E\u0439\u043A\u0438",tooltip_settings_on:"\u0417\u0430\u043A\u0440\u044B\u0442\u044C \u043D\u0430\u0441\u0442\u0440\u043E\u0439\u043A\u0438",tooltip_fullscreen_off:"\u041D\u0430 \u0432\u0435\u0441\u044C \u044D\u043A\u0440\u0430\u043D",tooltip_fullscreen_on:"\u0412\u044B\u0439\u0442\u0438 \u0438\u0437 \u043F\u043E\u043B\u043D\u043E\u044D\u043A\u0440\u0430\u043D\u043D\u043E\u0433\u043E \u0440\u0435\u0436\u0438\u043C\u0430",tooltip_chromecast_off:"\u0412\u043A\u043B\u044E\u0447\u0438\u0442\u044C Chromecast",tooltip_chromecast_on:"\u0412\u044B\u043A\u043B\u044E\u0447\u0438\u0442\u044C Chromecast",tooltip_episode_finished:"\u0412\u044B \u0443\u0436\u0435 \u0441\u0434\u0435\u043B\u0430\u043B\u0438 \u0441\u0432\u043E\u0439 \u0432\u044B\u0431\u043E\u0440",tooltip_episode_unfinished:"\u041D\u0435 \u043F\u0440\u043E\u0439\u0434\u0435\u043D\u043E",tooltip_disabled_when_interactive:"\u0418\u043D\u0442\u0435\u0440\u0430\u043A\u0442\u0438\u0432 \u0443\u0436\u0435 \u0438\u0434\u0451\u0442",tooltip_disabled_when_graph_on:"\u041A\u043D\u043E\u043F\u043A\u0430 \u043D\u0435\u0434\u043E\u0441\u0442\u0443\u043F\u043D\u0430 \u0432\u043E \u0432\u0440\u0435\u043C\u044F \u043F\u0440\u043E\u0441\u043C\u043E\u0442\u0440\u0430 \u043A\u0430\u0440\u0442\u044B",tooltip_interactive_interaction_time_indicator:"\u041D\u0430\u0436\u043C\u0438\u0442\u0435 \u043D\u0430 \u044D\u043B\u0435\u043C\u0435\u043D\u0442 \u0438\u043D\u0442\u0435\u0440\u0430\u043A\u0442\u0438\u0432\u0430",tooltip_vk_logo:"\u041E\u0442\u043A\u0440\u044B\u0442\u044C \u0432 VK \u0412\u0438\u0434\u0435\u043E",tooltip_vk_video_logo:"\u041F\u0435\u0440\u0435\u0439\u0442\u0438 \u0432 VK \u0412\u0438\u0434\u0435\u043E",download_video_caption:"\u0421\u043A\u0430\u0447\u0430\u0442\u044C \u0432\u0438\u0434\u0435\u043E",hotkey_helper_current_volume:"{value} %",hotkey_map_modal_title:"\u0411\u044B\u0441\u0442\u0440\u044B\u0435 \u043A\u043B\u0430\u0432\u0438\u0448\u0438",hotkey_map_modal_close_btn_text:"\u0417\u0430\u043A\u0440\u044B\u0442\u044C",hotkey_map_group_title_common:"\u041E\u0431\u0449\u0438\u0435",hotkey_map_group_title_playback:"\u0412\u043E\u0441\u043F\u0440\u043E\u0438\u0437\u0432\u0435\u0434\u0435\u043D\u0438\u0435",hotkey_map_group_title_subtitles:"\u0421\u0443\u0431\u0442\u0438\u0442\u0440\u044B",hotkey_map_group_title_episodes:"\u042D\u043F\u0438\u0437\u043E\u0434\u044B",hotkey_map_item_mute_description:"\u0412\u043A\u043B\u044E\u0447\u0438\u0442\u044C \u0438\u043B\u0438 \u043E\u0442\u043A\u043B\u044E\u0447\u0438\u0442\u044C \u0437\u0432\u0443\u043A",hotkey_map_item_mute_value:"m",hotkey_map_item_volume_up_description:"\u0423\u0432\u0435\u043B\u0438\u0447\u0438\u0442\u044C \u0433\u0440\u043E\u043C\u043A\u043E\u0441\u0442\u044C",hotkey_map_item_volume_up_value:"\u0421\u0442\u0440\u0435\u043B\u043A\u0430 \u0432\u0432\u0435\u0440\u0445",hotkey_map_item_volume_down_description:"\u0423\u043C\u0435\u043D\u044C\u0448\u0438\u0442\u044C \u0433\u0440\u043E\u043C\u043A\u043E\u0441\u0442\u044C",hotkey_map_item_volume_down_value:"\u0421\u0442\u0440\u0435\u043B\u043A\u0430 \u0432\u043D\u0438\u0437",hotkey_map_item_pip_description:"\u0421\u0432\u0435\u0440\u043D\u0443\u0442\u044C \u0438\u043B\u0438 \u0440\u0430\u0437\u0432\u0435\u0440\u043D\u0443\u0442\u044C \u043C\u0438\u043D\u0438-\u043F\u0440\u043E\u0438\u0433\u0440\u044B\u0432\u0430\u0442\u0435\u043B\u044C",hotkey_map_item_pip_value:"i",hotkey_map_item_full_screen_description:"\u0412\u043A\u043B\u044E\u0447\u0438\u0442\u044C \u0438\u043B\u0438 \u0432\u044B\u043A\u043B\u044E\u0447\u0438\u0442\u044C \u043F\u043E\u043B\u043D\u043E\u044D\u043A\u0440\u0430\u043D\u043D\u044B\u0439 \u0440\u0435\u0436\u0438\u043C",hotkey_map_item_full_screen_value:"f",hotkey_map_item_show_context_menu_description:"\u0421\u043A\u0440\u044B\u0442\u044C \u0438\u043B\u0438 \u043F\u043E\u043A\u0430\u0437\u0430\u0442\u044C \u043A\u043E\u043D\u0442\u0435\u043A\u0441\u0442\u043D\u043E\u0435 \u043C\u0435\u043D\u044E",hotkey_map_item_show_context_menu_value:"Shift + !",hotkey_map_item_show_hotkey_map_description:"\u0421\u043A\u0440\u044B\u0442\u044C \u0438\u043B\u0438 \u043F\u043E\u043A\u0430\u0437\u0430\u0442\u044C \u0441\u043F\u0438\u0441\u043E\u043A \u0433\u043E\u0440\u044F\u0447\u0438\u0445 \u043A\u043B\u0430\u0432\u0438\u0448",hotkey_map_item_show_hotkey_map_value:"Shift + ?",hotkey_map_item_play_toggle_description:"\u041F\u0440\u0438\u043E\u0441\u0442\u0430\u043D\u043E\u0432\u0438\u0442\u044C \u0438\u043B\u0438 \u043F\u0440\u043E\u0434\u043E\u043B\u0436\u0438\u0442\u044C \u0432\u043E\u0441\u043F\u0440\u043E\u0438\u0437\u0432\u0435\u0434\u0435\u043D\u0438\u0435",hotkey_map_item_play_toggle_value:"\u041F\u0440\u043E\u0431\u0435\u043B (\u0438\u043B\u0438 k)",hotkey_map_item_seek_backward_description:"\u041F\u0435\u0440\u0435\u043C\u043E\u0442\u0430\u0442\u044C \u0440\u043E\u043B\u0438\u043A \u043D\u0430 10 \u0441\u0435\u043A\u0443\u043D\u0434 \u043D\u0430\u0437\u0430\u0434",hotkey_map_item_seek_backward_value:"\u0421\u0442\u0440\u0435\u043B\u043A\u0430 \u0432\u043B\u0435\u0432\u043E (\u0438\u043B\u0438 j)",hotkey_map_item_seek_forward_description:"\u041F\u0435\u0440\u0435\u043C\u043E\u0442\u0430\u0442\u044C \u0440\u043E\u043B\u0438\u043A \u043D\u0430 10 \u0441\u0435\u043A\u0443\u043D\u0434 \u0432\u043F\u0435\u0440\u0451\u0434",hotkey_map_item_seek_forward_value:"\u0421\u0442\u0440\u0435\u043B\u043A\u0430 \u0432\u043F\u0440\u0430\u0432\u043E (\u0438\u043B\u0438 l)",hotkey_map_item_fast_seek_backward_description:"\u0423\u0441\u043A\u043E\u0440\u0435\u043D\u043D\u0430\u044F \u043F\u0435\u0440\u0435\u043C\u043E\u0442\u043A\u0430 \u043D\u0430\u0437\u0430\u0434",hotkey_map_item_fast_seek_backward_value:"Shift + \u0421\u0442\u0440\u0435\u043B\u043A\u0430 \u0432\u043B\u0435\u0432\u043E",hotkey_map_item_fast_seek_forward_description:"\u0423\u0441\u043A\u043E\u0440\u0435\u043D\u043D\u0430\u044F \u043F\u0435\u0440\u0435\u043C\u043E\u0442\u043A\u0430 \u0432\u043F\u0435\u0440\u0451\u0434",hotkey_map_item_fast_seek_forward_value:"Shift + \u0421\u0442\u0440\u0435\u043B\u043A\u0430 \u0432\u043F\u0440\u0430\u0432\u043E",hotkey_map_item_rate_down_description:"\u0423\u043C\u0435\u043D\u044C\u0448\u0438\u0442\u044C \u0441\u043A\u043E\u0440\u043E\u0441\u0442\u044C \u0432\u043E\u0441\u043F\u0440\u043E\u0438\u0437\u0432\u0435\u0434\u0435\u043D\u0438\u044F",hotkey_map_item_rate_down_value:"< (Shift + ,)",hotkey_map_item_rate_up_description:"\u0423\u0432\u0435\u043B\u0438\u0447\u0438\u0442\u044C \u0441\u043A\u043E\u0440\u043E\u0441\u0442\u044C \u0432\u043E\u0441\u043F\u0440\u043E\u0438\u0437\u0432\u0435\u0434\u0435\u043D\u0438\u044F",hotkey_map_item_rate_up_value:"> (Shift + .)",hotkey_map_item_prev_frame_description:"\u041F\u0435\u0440\u0435\u0439\u0442\u0438 \u043A \u043F\u0440\u0435\u0434\u044B\u0434\u0443\u0449\u0435\u043C\u0443 \u043A\u0430\u0434\u0440\u0443 <br />(\u043A\u043E\u0433\u0434\u0430 \u0432\u043E\u0441\u043F\u0440\u043E\u0438\u0437\u0432\u0435\u0434\u0435\u043D\u0438\u0435 \u043F\u0440\u0438\u043E\u0441\u0442\u0430\u043D\u043E\u0432\u043B\u0435\u043D\u043E)",hotkey_map_item_prev_frame_value:",",hotkey_map_item_next_frame_description:"\u041F\u0435\u0440\u0435\u0439\u0442\u0438 \u043A \u0441\u043B\u0435\u0434\u0443\u044E\u0449\u0435\u043C\u0443 \u043A\u0430\u0434\u0440\u0443 <br />(\u043A\u043E\u0433\u0434\u0430 \u0432\u043E\u0441\u043F\u0440\u043E\u0438\u0437\u0432\u0435\u0434\u0435\u043D\u0438\u0435 \u043F\u0440\u0438\u043E\u0441\u0442\u0430\u043D\u043E\u0432\u043B\u0435\u043D\u043E)",hotkey_map_item_next_frame_value:".",hotkey_map_item_jump_seek_description:"\u041F\u0435\u0440\u0435\u0439\u0442\u0438 \u043A \u043E\u043F\u0440\u0435\u0434\u0435\u043B\u0451\u043D\u043D\u043E\u043C\u0443 \u043C\u043E\u043C\u0435\u043D\u0442\u0443 \u0432\u0438\u0434\u0435\u043E <br />(\u043D\u0430\u043F\u0440\u0438\u043C\u0435\u0440, \u043F\u0440\u0438 \u043D\u0430\u0436\u0430\u0442\u0438\u0438 \u043D\u0430 \u0446\u0438\u0444\u0440\u0443 \xAB7\xBB \u0440\u043E\u043B\u0438\u043A \u0431\u0443\u0434\u0435\u0442 \u043F\u0435\u0440\u0435\u043C\u043E\u0442\u0430\u043D \u0434\u043E \u0432\u0440\u0435\u043C\u0435\u043D\u043D\u043E\u0439 \u043E\u0442\u043C\u0435\u0442\u043A\u0438, \u043A\u043E\u0442\u043E\u0440\u0430\u044F \u0441\u043E\u043E\u0442\u0432\u0435\u0442\u0441\u0442\u0432\u0443\u0435\u0442 70% \u043E\u0442 \u0434\u043B\u0438\u0442\u0435\u043B\u044C\u043D\u043E\u0441\u0442\u0438 \u0432\u0438\u0434\u0435\u043E)",hotkey_map_item_jump_seek_value:"0, 1, 2, 3, 4, 5, 6, 7, 8, 9",hotkey_map_item_subtitles_toggle_description:"\u0412\u043A\u043B\u044E\u0447\u0438\u0442\u044C \u0438\u043B\u0438 \u043E\u0442\u043A\u043B\u044E\u0447\u0438\u0442\u044C \u0441\u0443\u0431\u0442\u0438\u0442\u0440\u044B",hotkey_map_item_subtitles_toggle_value:"c",hotkey_map_item_prev_episode_description:"\u041F\u0435\u0440\u0435\u0439\u0442\u0438 \u043A \u043F\u0440\u0435\u0434\u044B\u0434\u0443\u0449\u0435\u043C\u0443 \u044D\u043F\u0438\u0437\u043E\u0434\u0443",hotkey_map_item_prev_episode_pc_value:"Ctrl + \u0421\u0442\u0440\u0435\u043B\u043A\u0430 \u0432\u043B\u0435\u0432\u043E",hotkey_map_item_prev_episode_mac_value:"Option + \u0421\u0442\u0440\u0435\u043B\u043A\u0430 \u0432\u043B\u0435\u0432\u043E",hotkey_map_item_next_episode_description:"\u041F\u0435\u0440\u0435\u0439\u0442\u0438 \u043A \u0441\u043B\u0435\u0434\u0443\u044E\u0449\u0435\u043C\u0443 \u044D\u043F\u0438\u0437\u043E\u0434\u0443",hotkey_map_item_next_episode_pc_value:"Ctrl + \u0421\u0442\u0440\u0435\u043B\u043A\u0430 \u0432\u043F\u0440\u0430\u0432\u043E",hotkey_map_item_next_episode_mac_value:"Option + \u0421\u0442\u0440\u0435\u043B\u043A\u0430 \u0432\u043F\u0440\u0430\u0432\u043E",waiting_live_day_value:"\u0434\u043D",waiting_live_hour_value:"\u0447",waiting_live_minute_value:"\u043C\u0438\u043D",waiting_live_second_value:"\u0441\u0435\u043A",waiting_live_colon:":",waiting_live_upcoming_title:"\u0422\u0440\u0430\u043D\u0441\u043B\u044F\u0446\u0438\u044F \u0435\u0449\u0435 \u043D\u0435 \u043D\u0430\u0447\u0430\u043B\u0430\u0441\u044C",waiting_live_timer_title:"\u0414\u043E \u043D\u0430\u0447\u0430\u043B\u0430 \u0442\u0440\u0430\u043D\u0441\u043B\u044F\u0446\u0438\u0438 \u043E\u0441\u0442\u0430\u043B\u043E\u0441\u044C",waiting_live_recover_title:"\u0422\u0440\u0430\u043D\u0441\u043B\u044F\u0446\u0438\u044F \u043F\u0440\u0438\u043E\u0441\u0442\u0430\u043D\u043E\u0432\u043B\u0435\u043D\u0430 - \u043E\u043D\u0430 \u043F\u0440\u043E\u0434\u043E\u043B\u0436\u0438\u0442\u0441\u044F, \u043A\u043E\u0433\u0434\u0430 \u0430\u0432\u0442\u043E\u0440 \u0432\u0435\u0440\u043D\u0451\u0442\u0441\u044F",waiting_record_title:"\u0422\u0440\u0430\u043D\u0441\u043B\u044F\u0446\u0438\u044F \u0437\u0430\u0432\u0435\u0440\u0448\u0435\u043D\u0430 - \u0437\u0430\u043F\u0438\u0441\u044C \u043F\u043E\u044F\u0432\u0438\u0442\u0441\u044F \u043F\u043E\u0437\u0436\u0435",aria_label_video_player:"\u0412\u0438\u0434\u0435\u043E \u043F\u043B\u0435\u0435\u0440",aria_label_spherical_control:"\u041A\u043E\u043D\u0442\u0440\u043E\u043B\u043B\u0435\u0440 \u0434\u043B\u044F \u0441\u0444\u0435\u0440\u0438\u0447\u0435\u0441\u043A\u043E\u0433\u043E \u0432\u0438\u0434\u0435\u043E. \u0418\u0441\u043F\u043E\u043B\u044C\u0437\u0443\u0439\u0442\u0435 \u043A\u043B\u0430\u0432\u0438\u0448\u0438 \u0441\u043E \u0441\u0442\u0440\u0435\u043B\u043A\u0430\u043C\u0438 \u0434\u043B\u044F \u043F\u0430\u043D\u043E\u0440\u0430\u043C\u0438\u0440\u043E\u0432\u0430\u043D\u0438\u044F \u0432\u0438\u0434\u0435\u043E.",aria_label_debug_panel:"\u041E\u0431\u043B\u0430\u0441\u0442\u044C \u0441 \u0442\u0435\u0445\u043D\u0438\u0447\u0435\u0441\u043A\u043E\u0439 \u0438\u043D\u0444\u043E\u0440\u043C\u0430\u0446\u0438\u0435\u0439, \u0441\u0434\u0435\u043B\u0430\u0439\u0442\u0435 \u0441\u043A\u0440\u0438\u043D\u0448\u043E\u0442 \u0434\u043B\u044F \u0442\u0435\u0445\u043F\u043E\u0434\u0434\u0435\u0440\u0436\u043A\u0438",aria_label_new_tab_alert:"\u041E\u0442\u043A\u0440\u043E\u0435\u0442\u0441\u044F \u0432 \u043D\u043E\u0432\u043E\u0439 \u0432\u043A\u043B\u0430\u0434\u043A\u0435.",aria_label_context_menu_open:"\u041E\u0442\u043A\u0440\u044B\u0442\u044C \u043A\u043E\u043D\u0442\u0435\u043A\u0441\u0442\u043D\u043E\u0435 \u043C\u0435\u043D\u044E",aria_label_context_menu_close:"\u0417\u0430\u043A\u0440\u044B\u0442\u044C \u043A\u043E\u043D\u0442\u0435\u043A\u0441\u0442\u043D\u043E\u0435 \u043C\u0435\u043D\u044E",aria_label_menu_quality:"\u041A\u0430\u0447\u0435\u0441\u0442\u0432\u043E: {actual}",aria_label_menu_audio_languages:"\u042F\u0437\u044B\u043A \u0430\u0443\u0434\u0438\u043E: {actual}",aria_label_menu_rate:"\u0421\u043A\u043E\u0440\u043E\u0441\u0442\u044C: {actual}",aria_label_menu_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"},id=kg;var wg={mobile_unmute:"Unmute",auto_quality_invariant:"Auto",auto_quality:"Auto ({actual})",auto_quality_option:"Auto",menu_quality:"Quality",menu_playback_rate:"Playback rate",menu_traffic_saving:"Data saving",menu_report:"Report a problem",menu_pip:"Picture in picture",menu_copy_video_link:"Copy video link",menu_copy_video_link_with_timestamp:"Copy link with timestamp",menu_video_rotate:"Rotate",menu_video_loop_on:"Enable loop",menu_video_loop_off:"Disable loop",menu_chromecast:"Chromecast stream",menu_copy_debug:"Copy debug info",menu_save_debug:"Save debug info",menu_debug_overlay:"Tech stats",menu_copy_embed_code:"Copy embed code",menu_audio_languages:"Audio track",audio_stream_display_language_label:"{label} ({language})",audio_stream_display_language_label_index:"{label} {index} ({language})",audio_stream_display_label_index:"{label} {index}",audio_stream_display_language_index:"{language} {index}",audio_stream_display_unknown:"Audio track {index}",pip_dummy_title:"Video plays in picture-in-picture mode",submenu_quality:"Quality",submenu_playback_rate:"Playback rate",submenu_traffic_saving:"Data saving",submenu_settings:"Settings",submenu_audio_languages:"Audio track",playing_ads:"Ads {timeleft}",skip_ads_after:"Skip ads",skip_ads_now:"Ads can be skipped in {time}s",visit_advertiser:"Visit site",aria_timeline:"Time scale slider",aria_timeline_value:"{position} out of {duration}",aria_open_settings:"Open video player settings",doubletap_seek_step:"{seconds} seconds",playback_rate_1:"Normal",playback_rate:"{multiplier}x",video360:"spherical video",subtitles_caption:"Subtitles",subtitles_auto:"{language} (Auto-generated)",subtitles_off:"Off",subtitles_auto_caption:"Auto subtitles",subtitles_turn_on:"Turn on subtitles",subtitles_turn_off:"Turn off subtitles",traffic_saving_off:"Off",traffic_saving_on:"On",traffic_saving_disable:"Disabled",traffic_saving_enable:"Enabled",traffic_saving_helper_text:"When turned on the video quality will be reduced to save data",tooltip_button_disabled:"Button disabled",tooltip_previous:"Previous video",tooltip_restart:"Watch again",tooltip_play:"Play",tooltip_pause:"Pause",tooltip_next:"Next video",tooltip_interactive_go_back:"Back to previous chapter",tooltip_interactive_go_back_disabled:"Interactive history unavailable",tooltip_interactive_go_back_disabled_first:"You're watching the first chapter",tooltip_interactive_go_back_disabled_limit:"Go-back limit exceeded",tooltip_chapter_without_interactive:"This chapter has no interactive segment",tooltip_interactive_of_chapter_completed:"Chapter's interactive segments already watched",tooltip_interactive_seek:"Go to interactive",tooltip_interactive_graph_off:"Show interactive graph",tooltip_interactive_graph_on:"Hide interactive graph",tooltip_live:"Go to the live edge",tooltip_episodes:"Episodes",tooltip_volume:"Turn volume off",tooltip_volume_muted:"Turn volume on",tooltip_subtitles_off:"Turn subtitles on",tooltip_subtitles_on:"Turn subtitles off",tooltip_settings_off:"Open settings",tooltip_settings_on:"Close settings",tooltip_fullscreen_off:"Enter fullscreen mode",tooltip_fullscreen_on:"Exit fullscreen mode",tooltip_chromecast_off:"Turn Chromecast on",tooltip_chromecast_on:"Turn Chromecast off",tooltip_episode_finished:"You have already viewed interactive episode",tooltip_episode_unfinished:"Interactive episode not finished",tooltip_disabled_when_interactive:"Interactive video in progress",tooltip_disabled_when_graph_on:"Button is disabled when graph is opened",tooltip_interactive_interaction_time_indicator:"Press the interactive element",tooltip_vk_logo:"Open in VK Video",tooltip_vk_video_logo:"Go to VK Video",download_video_caption:"Download video",hotkey_helper_current_volume:"{value} %",hotkey_map_modal_title:"Keyboard shortcuts",hotkey_map_modal_close_btn_text:"Close",hotkey_map_group_title_common:"Common",hotkey_map_group_title_playback:"Playback",hotkey_map_group_title_subtitles:"Subtitles",hotkey_map_group_title_episodes:"Episodes",hotkey_map_item_mute_description:"Toggle mute",hotkey_map_item_mute_value:"m",hotkey_map_item_volume_up_description:"Increase volume",hotkey_map_item_volume_up_value:"Arrow up",hotkey_map_item_volume_down_description:"Decrease volume",hotkey_map_item_volume_down_value:"Arrow down",hotkey_map_item_pip_description:"Toggle miniplayer",hotkey_map_item_pip_value:"i",hotkey_map_item_full_screen_description:"Toggle full screen",hotkey_map_item_full_screen_value:"f",hotkey_map_item_show_context_menu_description:"Hide or show context menu",hotkey_map_item_show_context_menu_value:"Shift + !",hotkey_map_item_show_hotkey_map_description:"Hide or show list of hotkeys",hotkey_map_item_show_hotkey_map_value:"Shift + ?",hotkey_map_item_play_toggle_description:"Toggle play/pause",hotkey_map_item_play_toggle_value:"Space (or k)",hotkey_map_item_seek_backward_description:"Rewind 10 seconds",hotkey_map_item_seek_backward_value:"Arrow left (or j)",hotkey_map_item_seek_forward_description:"Forward 10 seconds",hotkey_map_item_seek_forward_value:"Arrow right (or l)",hotkey_map_item_fast_seek_backward_description:"Fast rewind",hotkey_map_item_fast_seek_backward_value:"Shift + Arrow left",hotkey_map_item_fast_seek_forward_description:"Fast forward",hotkey_map_item_fast_seek_forward_value:"Shift + Arrow right",hotkey_map_item_rate_down_description:"Decrease playback rate",hotkey_map_item_rate_down_value:"< (Shift + ,)",hotkey_map_item_rate_up_description:"Increase playback rate",hotkey_map_item_rate_up_value:"> (Shift + .)",hotkey_map_item_prev_frame_description:"Previous frame (while paused)",hotkey_map_item_prev_frame_value:",",hotkey_map_item_next_frame_description:"Next frame (while paused)",hotkey_map_item_next_frame_value:".",hotkey_map_item_jump_seek_description:"Seek to specific point in the video (7 advances to 70% of duration)",hotkey_map_item_jump_seek_value:"0, 1, 2, 3, 4, 5, 6, 7, 8, 9",hotkey_map_item_subtitles_toggle_description:"Toggle captions ON/OFF",hotkey_map_item_subtitles_toggle_value:"c",hotkey_map_item_prev_episode_description:"Seek to previous episode",hotkey_map_item_prev_episode_pc_value:"Ctrl + Arrow left",hotkey_map_item_prev_episode_mac_value:"Option + Arrow left",hotkey_map_item_next_episode_description:"Seek to next episode",hotkey_map_item_next_episode_pc_value:"Ctrl + Arrow right",hotkey_map_item_next_episode_mac_value:"Option + Arrow right",waiting_live_day_value:"d",waiting_live_hour_value:"h",waiting_live_minute_value:"min",waiting_live_second_value:"sec",waiting_live_colon:":",waiting_live_upcoming_title:"The broadcast hasn't started yet",waiting_live_timer_title:"Before the start of the broadcast left",waiting_live_recover_title:"The broadcast has been paused - it will resume when the author returns",waiting_record_title:"The broadcast completed - recording will appear later",aria_label_video_player:"Video player",aria_label_spherical_control:"Spherical video control. Use the arrow keys to pan the video.",aria_label_debug_panel:"Technical information area, take a screenshot for technical support",aria_label_new_tab_alert:"Opens in a new tab.",aria_label_context_menu_open:"Open context menu",aria_label_context_menu_close:"Close context menu",aria_label_menu_quality:"Quality: {actual}",aria_label_menu_audio_languages:"Audio language: {actual}",aria_label_menu_rate:"Rate: {actual}",aria_label_menu_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"},nd=wg;var lo=new Map;lo.set(dr.InterfaceLanguage.EN,nd);lo.set(dr.InterfaceLanguage.RU,id);var od=new Map,$s=({language:i,pack:e,fallback:t})=>{if(lo.has(i)){let n=lo.get(i);lo.set(i,{...n,...e})}else lo.set(i,e);od.set(i,t)},ea=i=>lo.has(i),ta=(i,e,t,n)=>{let l=lo.get(i)?.[e];if((0,dr.isNullable)(l)){let r=od.get(i)??n;l=(r?lo.get(r):void 0)?.[e]}return(0,dr.isNullable)(l)?e+Object.values(t??{}).join(" "):t?l.replaceAll(/{(\w+?)}/g,(r,a)=>t[a]??""):l},U=(i,e)=>{let{interfaceLanguage$:t}=ot(),n=Xe(t),o=Nt();return ta(n,i,e,o.defaultLanguage)};var T9=require("@vkontakte/videoplayer-core");var mr;(function(i){i.fatal="fatal",i.error="error",i.warning="warning",i.log="log",i.info="info",i.debug="debug",i.critical="critical"})(mr||(mr={}));var Cg=/^\s*at (?:(.*?) ?\()?((?:file|https?|blob|chrome-extension|address|native|eval|webpack|<anonymous>|[-a-z]+:|.*bundle|\/).*?)(?::(\d+))?(?::(\d+))?\)?\s*$/i,Sg=/^\s*(.*?)(?:\((.*?)\))?(?:^|@)?((?:file|https?|blob|chrome|webpack|resource|moz-extension).*?:\/.*?|\[native code\]|[^@]*(?:bundle|\d+\.js))(?::(\d+))?(?::(\d+))?\s*$/i,Ig=/^\s*at (?:((?:\[object object\])?.+) )?\(?((?:file|ms-appx|https?|webpack|blob):.*?):(\d+)(?::(\d+))?\)?\s*$/i,yl="?",Tg="X-Sentry-Auth",Pg=/^(?:(\w+):)\/\/(?:([\w-]+)(?::(\w+))?@)([\w.-]+)(?::(\d+))?\/(.+)/;function Eg(i){if(!i.stack)return null;let e=[],t=i.stack.split(`
13
+ `),n,o;for(let l=0;l<t.length;++l){if(n=Cg.exec(t[l]))o={filename:n[2]&&n[2].indexOf("address at ")===0?n[2].substr(11):n[2],function:n[1]||yl,lineno:n[3]?+n[3]:null,colno:n[4]?+n[4]:null};else if(n=Ig.exec(t[l]))o={filename:n[2],function:n[1]||yl,lineno:+n[3],colno:n[4]?+n[4]:null};else if(n=Sg.exec(t[l]))l===0&&!n[5]&&i.columnNumber!==void 0&&(e[0].column=i.columnNumber+1),o={filename:n[3],function:n[1]||yl,lineno:n[4]?+n[4]:null,colno:n[5]?+n[5]:null};else continue;!o.function&&o.lineno&&(o.function=yl),e.push(o)}return e.length?{value:rd(i),type:i.name,stacktrace:{frames:e.reverse()}}:null}function rd(i){return(i&&i.message||"No error message").split(`
14
+ `).filter(t=>!!t)[0]}function Mg(i){try{let e=Eg(i);if(e)return e}catch{}return{value:rd(i),type:i&&i.name,stacktrace:{frames:[]}}}function Ag(){return"xxxxxxxxxxxx4xxxyxxxxxxxxxxxxxxx".replace(/[xy]/g,i=>{let e=Math.random()*16|0;return(i==="x"?e:e&3|8).toString(16)})}var kl=class{constructor(e){if(e&&e.dsn){let t=Pg.exec(e.dsn),n=t?t.slice(1):[],o=n[5].split("/"),l=o.slice(0,-1).join("/");this.apiUrl=n[0]+"://"+n[3]+(n[4]?":"+n[4]:"")+(l?"/"+l:"")+"/api/"+o.pop()+"/store/",this.authHeader="Sentry sentry_version=7,sentry_key="+n[1]+(n[2]?",sentry_secret="+n[2]:"")}this.environment=e&&e.environment}prepare(e){return{...this.getRequestBlank(),exception:{values:[Mg(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(Tg,this.authHeader||""),t.send(JSON.stringify(e))}getRequestBlank(){return{platform:"javascript",event_id:Ag(),sdk:{name:"micro-sentry.javascript.core",version:"0.0.0"},timestamp:Date.now()/1e3,environment:this.environment}}};function ld(i,e){return Object.prototype.toString.call(e)==="[object RegExp]"?e.test(i):typeof e=="string"?i.indexOf(e)!==-1:!1}function Lg(){return window}var wl=class i extends kl{constructor(e,t=Lg()){super(e),this.options=e,this.window=t,this.destroyed=!1,this._state={};let{plugins:n=[],beforeSend:o=u=>u,beforeBreadcrumb:l=u=>u,blacklistUrls:r=[],ignoreErrors:a=[],release:s=void 0}=this.options||{};this.plugins=n.map(u=>new u(this)),this.beforeSend=o,this.beforeBreadcrumb=l,this.blacklistUrls=r,this.ignoreErrors=a,this.release=s}get state(){return this._state}clearState(){this._state={}}setTags(e){return this.setKeyState("tags",{...e}),this}setTag(e,t){return this.extendState({tags:{[e]:t}}),this}setExtra(e,t){return this.extendState({extra:{[e]:t}}),this}setExtras(e){return this.setKeyState("extra",{...e}),this}setUser(e){return this.setKeyState("user",{...e}),this}clone(){let e=new i({...this.options,plugins:[]});return e.extendState(this.state),e}withScope(e){let t=this.clone();e(t),t.destroy(),this.setBreadcrumbs(void 0)}addBreadcrumb(e){this.extendState({breadcrumbs:[{timestamp:Date.now()/1e3,...this.beforeBreadcrumb(e)}]})}setBreadcrumbs(e){this.setKeyState("breadcrumbs",e)}captureMessage(e,t){this.send({...this.getRequestBlank(),message:e,level:t})}destroy(){this.destroyed=!0,this.plugins.forEach(e=>{e.destroy&&e.destroy()})}isIgnoredError(e){return this.ignoreErrors.length?this.getPossibleEventMessages(e).some(t=>this.ignoreErrors.some(n=>ld(t,n))):!1}getRequestBlank(){return{request:{url:this.window.location.toString(),headers:{"User-Agent":this.window.navigator.userAgent}},...super.getRequestBlank(),sdk:{name:"micro-sentry.javascript.browser",version:"0.0.0"},...this.state}}send(e){this.destroyed||this.isDeniedUrl(e)||this.isIgnoredError(e)||(super.send(this.beforeSend({release:this.release,...e})),this.setBreadcrumbs(void 0))}getPossibleEventMessages(e){if(e.message)return[e.message];if(e.exception)try{let{type:t="",value:n=""}=e.exception.values&&e.exception.values[0]||{};return[`${n}`,`${t}: ${n}`]}catch{return[]}return[]}isDeniedUrl(e){if(!this.blacklistUrls.length)return!1;let t=this.getEventFilterUrl(e);return t?this.blacklistUrls.some(n=>ld(t,n)):!1}getEventFilterUrl(e){try{if(e.exception){let t=e.exception.values&&e.exception.values[0].stacktrace&&e.exception.values[0].stacktrace.frames;return t&&t[t.length-1].filename||null}return null}catch{return null}}extendState(e){this._state=Object.keys(e).reduce((t,n)=>{let o=this._state[n],l=Array.isArray(o)?o:null,r=e[n],a=Array.isArray(r)?r:null;return{...t,[n]:l||a?[...l||[],...a||[]]:{...typeof o!="string"?o:{},...typeof r!="string"?r:{}}}},this._state)}setKeyState(e,t){this._state[e]=t}};var Oo=require("@vkontakte/videoplayer-shared");var Cl=null,Fo=class{constructor(e,t,n={}){!Cl&&e.dsn&&(this.sentryClient=new wl({dsn:e.dsn,environment:t.env}),this.version=t.version,this.sentrySubscription=new Oo.Subscription,this.options=e,this.context=n,Cl=this)}destroy(){this.sentryClient?.destroy(),this.sentrySubscription?.unsubscribe(),Cl=null}logIError(e,t=!1){e.thrown&&this.report(e.thrown,{fatal:t,errorType:e.id,category:e.category},{message:e.message,errorData:e.data})}report(e,t={},n={}){let{sentryClient:o,context:l,options:r}=this,{sampleRate:a=0,whiteErrorIdList:s,whiteErrorCategoryList:u=[],blackErrorIdList:f,blackErrorCategoryList:p}=r,{errorType:g,category:y}=t;if((0,Oo.isNonNullable)(y)&&p.includes(y)||(0,Oo.isNonNullable)(g)&&f.includes(g))return;if(Math.random()<=a||(0,Oo.isNonNullable)(y)&&u.includes(y)||(0,Oo.isNonNullable)(g)&&s.includes(g)){Object.keys(t).length&&o.setTags({version:this.version,...t}),(Object.keys(l).length||Object.keys(n).length)&&o.setExtras({...l,...n});try{g&&o.captureMessage(g,t.fatal?mr.fatal:mr.error),o.report(e)}catch(C){console.error(C)}}}static getInstance(){return Cl}};var Sl=i=>{if(i.requestFullscreen)return i.requestFullscreen();if(i.msRequestFullscreen)return i.msRequestFullscreen();if(i.webkitRequestFullscreen)return i.webkitRequestFullscreen();if(i.mozRequestFullScreen)return i.mozRequestFullScreen();let e=i.querySelector("video");return e?.webkitEnterFullscreen?e.webkitEnterFullscreen():Promise.reject()},Il=i=>i.exitFullscreen?i.exitFullscreen():i.msExitFullscreen?i.msExitFullscreen():i.webkitExitFullscreen?i.webkitExitFullscreen():i.mozCancelFullScreen?i.mozCancelFullScreen():Promise.reject(),sd=i=>{let e=i;return e?.webkitExitFullscreen?e?.webkitExitFullscreen():Promise.reject()},xr=()=>{let i=document;return i.fullscreenElement||i.mozFullScreenElement||i.webkitFullscreenElement||i.msFullscreenElement},go=()=>!!xr(),Tl=i=>{document.addEventListener("fullscreenchange",i),document.addEventListener("webkitfullscreenchange",i),document.addEventListener("mozfullscreenchange",i),document.addEventListener("MSFullscreenChange",i)},Pl=i=>{document.removeEventListener("fullscreenchange",i),document.removeEventListener("webkitfullscreenchange",i),document.removeEventListener("mozfullscreenchange",i),document.removeEventListener("MSFullscreenChange",i)},ad=i=>{let e=window.screen;return(async o=>e.orientation?e.orientation.lock(o):e.mozLockOrientation?e.mozLockOrientation(o):e.msLockOrientation?e.msLockOrientation(o):Promise.reject())(((o={width:0,height:0})=>o.width<=o.height?"portrait":"landscape")(i))};var ia=require("@vkontakte/videoplayer-shared"),ud=()=>({title:U("hotkey_map_modal_title"),closeBtnText:U("hotkey_map_modal_close_btn_text"),groups:[{title:U("hotkey_map_group_title_common"),items:[{description:U("hotkey_map_item_mute_description"),value:U("hotkey_map_item_mute_value")},{description:U("hotkey_map_item_volume_up_description"),value:U("hotkey_map_item_volume_up_value")},{description:U("hotkey_map_item_volume_down_description"),value:U("hotkey_map_item_volume_down_value")},{description:U("hotkey_map_item_pip_description"),value:U("hotkey_map_item_pip_value")},{description:U("hotkey_map_item_full_screen_description"),value:U("hotkey_map_item_full_screen_value")},{description:U("hotkey_map_item_show_context_menu_description"),value:U("hotkey_map_item_show_context_menu_value")},{description:U("hotkey_map_item_show_hotkey_map_description"),value:U("hotkey_map_item_show_hotkey_map_value")}]},{title:U("hotkey_map_group_title_playback"),items:[{description:U("hotkey_map_item_play_toggle_description"),value:U("hotkey_map_item_play_toggle_value")},{description:U("hotkey_map_item_seek_backward_description"),value:U("hotkey_map_item_seek_backward_value")},{description:U("hotkey_map_item_seek_forward_description"),value:U("hotkey_map_item_seek_forward_value")},{description:U("hotkey_map_item_fast_seek_backward_description"),value:U("hotkey_map_item_fast_seek_backward_value")},{description:U("hotkey_map_item_fast_seek_forward_description"),value:U("hotkey_map_item_fast_seek_forward_value")},{description:U("hotkey_map_item_rate_down_description"),value:U("hotkey_map_item_rate_down_value")},{description:U("hotkey_map_item_rate_up_description"),value:U("hotkey_map_item_rate_up_value")},{description:U("hotkey_map_item_prev_frame_description"),value:U("hotkey_map_item_prev_frame_value")},{description:U("hotkey_map_item_next_frame_description"),value:U("hotkey_map_item_next_frame_value")},{description:U("hotkey_map_item_jump_seek_description"),value:U("hotkey_map_item_jump_seek_value")}]},{title:U("hotkey_map_group_title_subtitles"),items:[{description:U("hotkey_map_item_subtitles_toggle_description"),value:U("hotkey_map_item_subtitles_toggle_value")}]},{title:U("hotkey_map_group_title_episodes"),items:[{description:U("hotkey_map_item_prev_episode_description"),value:ia.clientChecker.isApple?U("hotkey_map_item_prev_episode_mac_value"):U("hotkey_map_item_prev_episode_pc_value")},{description:U("hotkey_map_item_next_episode_description"),value:ia.clientChecker.isApple?U("hotkey_map_item_next_episode_mac_value"):U("hotkey_map_item_next_episode_pc_value")}]}]});var pr=require("@vkontakte/videoplayer-shared");var qo=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,pr.debounceFn)(this.onResize.bind(this),300)};this.info={isActive$:new pr.ValueSubject(this.isActive()),type:0}}isSupported(){return document.pictureInPictureEnabled&&!pr.clientChecker.isYandex}isActive(){return this.isSupported()&&!!document.pictureInPictureElement}setContext(e){this.svelteContext=e}async revealPictureInPicture(){this.isRequested&&(this.unregistryEventHandlers(),await this.request(),this.registryEventHandlers())}async request(){if(!(!this.isSupported()||this.isActive()))try{await this.videoElement?.requestPictureInPicture()}catch{this.isRequested=!1}}async remove(){!this.isSupported()||!this.isActive()||await document.exitPictureInPicture()}assignPlayerContainer(e){this.isSupported()&&(this.playerContainer=e)}updateVideoElement(){this.isSupported()&&(this.videoElement=this.playerContainer?.querySelector("video"))}registryEventHandlers(){this.videoElement?.addEventListener("enterpictureinpicture",this.eventHandlers.enterpictureinpicture),this.videoElement?.addEventListener("leavepictureinpicture",this.eventHandlers.leavepictureinpicture)}registryExternalEventHandlers(e){this.externalEventHandlers={...e}}unregistryEventHandlers(){this.videoElement?.removeEventListener("enterpictureinpicture",this.eventHandlers.enterpictureinpicture),this.videoElement?.removeEventListener("leavepictureinpicture",this.eventHandlers.leavepictureinpicture)}async dispose(){this.unregistryEventHandlers(),await this.remove()}onEnterPictureInPicture(e){let n=e.pictureInPictureWindow;n&&(this.info.isActive$.next(!0),this.isRequested=!0,n.addEventListener("resize",this.eventHandlers.resize),this.externalEventHandlers.enterpictureinpicture?.(e))}onLeavePictureInPicture(e){let n=e.pictureInPictureWindow;this.info.isActive$.next(!1),this.isRequested=!1,n?.removeEventListener("resize",this.eventHandlers.resize),this.externalEventHandlers.leavepictureinpicture?.(e),this.playerDummyElement?.$destroy()}onResize(e){this.externalEventHandlers.resize?.(e)}};function Ho(i){return i instanceof qo}function Vg(i){let e=ot();return Et(()=>{e.getAdmanWrapper().startPostroll()}),[]}var ra=class extends B{constructor(e){super(),D(this,e,Vg,null,R,{})}},cd=ra;var fd=require("@vkontakte/videoplayer-shared");function Rg(i){Ce(i,"svelte-1k4i25s",".container.svelte-1k4i25s.svelte-1k4i25s{position:absolute;top:14px;right:16px;padding:6px 10px;font-size:13px;color:#fff;background:rgba(0, 0, 0, 0.56);border-radius:6px;transition:color .2s}.container-mobile.svelte-1k4i25s.svelte-1k4i25s{bottom:14px;top:unset;font-size:15px;max-width:142px}.icon.svelte-1k4i25s.svelte-1k4i25s{margin-left:4px;position:relative;top:2px;fill:var(--white);transition:fill .2s}.skip.svelte-1k4i25s.svelte-1k4i25s{width:86px}.skippable.svelte-1k4i25s.svelte-1k4i25s{cursor:pointer;color:var(--white)}.skippable.svelte-1k4i25s.svelte-1k4i25s:hover{color:rgba(255, 255, 255, .75)}.skippable.svelte-1k4i25s:hover .icon.svelte-1k4i25s{fill:rgba(255, 255, 255, .75)}")}function Bg(i){let e=U("skip_ads_after",{time:Math.ceil(i[1]-i[0]).toFixed(0)})+"",t;return{c(){t=De(e)},m(n,o){v(n,t,o)},p(n,o){o&3&&e!==(e=U("skip_ads_after",{time:Math.ceil(n[1]-n[0]).toFixed(0)})+"")&&xe(t,e)},d(n){n&&b(t)}}}function Dg(i){let e,t=U("skip_ads_now")+"",n,o,l,r,a,s;return{c(){e=I("div"),n=De(t),o=H(),l=V("svg"),r=V("path"),c(r,"fill-rule","evenodd"),c(r,"clip-rule","evenodd"),c(r,"d","M0.263627 0.263605C-0.0878444 0.615078 -0.0878429 1.18493 0.26363 1.5364L4.72723 5.99998L0.263627 10.4636C-0.0878444 10.8151 -0.0878429 11.3849 0.26363 11.7364C0.615103 12.0879 1.18495 12.0879 1.53642 11.7364L6.63642 6.63637C6.98789 6.2849 6.98789 5.71505 6.63642 5.36358L1.53642 0.263602C1.18495 -0.0878686 0.615098 -0.0878673 0.263627 0.263605Z"),c(l,"class","icon svelte-1k4i25s"),c(l,"width","7"),c(l,"height","12"),c(l,"viewBox","0 0 7 12"),c(l,"fill","none"),c(l,"xmlns","http://www.w3.org/2000/svg"),c(e,"class","skip svelte-1k4i25s")},m(u,f){v(u,e,f),_(e,n),_(e,o),_(e,l),_(l,r),a||(s=Te(e,"click",_t(function(){zt(i[2])&&i[2].apply(this,arguments)})),a=!0)},p(u,f){i=u},d(u){u&&b(e),a=!1,s()}}}function Ng(i){let e;function t(l,r){return l[3]?Dg:Bg}let n=t(i,-1),o=n(i);return{c(){e=I("div"),o.c(),c(e,"class","container svelte-1k4i25s"),j(e,"container-mobile",i[4]),j(e,"skippable",i[3])},m(l,r){v(l,e,r),o.m(e,null)},p(l,[r]){n===(n=t(l,r))&&o?o.p(l,r):(o.d(1),o=n(l),o&&(o.c(),o.m(e,null))),r&16&&j(e,"container-mobile",l[4]),r&8&&j(e,"skippable",l[3])},i:he,o:he,d(l){l&&b(e),o.d()}}}function Og(i,e,t){let n,{position:o=0}=e,{secondsToWatchBeforeSkip:l=0}=e,{skipAd:r=fd.noop}=e,s=ot().ui.isMobile;O(i,s,f=>t(4,n=f));let u;return i.$$set=f=>{"position"in f&&t(0,o=f.position),"secondsToWatchBeforeSkip"in f&&t(1,l=f.secondsToWatchBeforeSkip),"skipAd"in f&&t(2,r=f.skipAd)},i.$$.update=()=>{i.$$.dirty&3&&t(3,u=o>0&&o>=l)},[o,l,r,u,n,s]}var la=class extends B{constructor(e){super(),D(this,e,Og,Ng,R,{position:0,secondsToWatchBeforeSkip:1,skipAd:2},Rg)}},dd=la;function Fg(i){Ce(i,"svelte-1wy3dql","button.svelte-1wy3dql{position:absolute;pointer-events:none;bottom:14px;left:16px;font-size:15px;background:white;border:none;padding:6px 10px;border-radius:6px;color:black}")}function qg(i){let e;return{c(){e=I("button"),e.textContent=`${U("visit_advertiser")}`,c(e,"class","svelte-1wy3dql")},m(t,n){v(t,e,n)},p:he,i:he,o:he,d(t){t&&b(e)}}}var sa=class extends B{constructor(e){super(),D(this,e,null,qg,R,{},Fg)}},md=sa;function Hg(i){Ce(i,"svelte-354ajf",`.container.svelte-354ajf{width:100%;height:100%}.top-gradient-mobile.svelte-354ajf{position:absolute;width:100%;height:80px;top:0;left:0;pointer-events:none;background:linear-gradient(
15
15
  360deg,
16
16
  rgba(0, 0, 0, 0) 0%,
17
17
  rgba(0, 0, 0, 0.05) 12%,
@@ -21,17 +21,17 @@
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 md(i){let e;return{c(){e=I("div"),c(e,"class","top-gradient-mobile svelte-354ajf")},m(t,n){v(t,e,n)},d(t){t&&b(e)}}}function pd(i){let e,t;return e=new fd({props:{position:i[5],secondsToWatchBeforeSkip:i[6],skipAd:i[8].actions.internal.skipAd}}),{c(){A(e.$$.fragment)},m(n,o){E(e,n,o),t=!0},p(n,o){let l={};o&32&&(l.position=n[5]),o&64&&(l.secondsToWatchBeforeSkip=n[6]),e.$set(l)},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){m(e.$$.fragment,n),t=!1},d(n){M(e,n)}}}function _d(i){let e,t;return e=new ud({}),{c(){A(e.$$.fragment)},m(n,o){E(e,n,o),t=!0},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){m(e.$$.fragment,n),t=!1},d(n){M(e,n)}}}function gd(i){let e,t;return e=new dd({}),{c(){A(e.$$.fragment)},m(n,o){E(e,n,o),t=!0},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){m(e.$$.fragment,n),t=!1},d(n){M(e,n)}}}function zg(i){let e,t,n,o,l,r,a,s=i[0]&&md(i),u=i[3]&&pd(i),f=i[7]&&_d(i),p=i[4]&&gd(i);return{c(){e=I("div"),s&&s.c(),t=H(),n=I("video"),o=H(),u&&u.c(),l=H(),f&&f.c(),r=H(),p&&p.c(),ni(n,"width","100%"),ni(n,"height","100%"),n.playsInline=!0,c(e,"class","container svelte-354ajf")},m(g,y){v(g,e,y),s&&s.m(e,null),_(e,t),_(e,n),i[19](n),_(e,o),u&&u.m(e,null),_(e,l),f&&f.m(e,null),_(e,r),p&&p.m(e,null),i[20](e),a=!0},p(g,[y]){g[0]?s||(s=md(g),s.c(),s.m(e,t)):s&&(s.d(1),s=null),g[3]?u?(u.p(g,y),y&8&&d(u,1)):(u=pd(g),u.c(),d(u,1),u.m(e,l)):u&&(ce(),m(u,1,1,()=>{u=null}),fe()),g[7]?f?y&128&&d(f,1):(f=_d(g),f.c(),d(f,1),f.m(e,r)):f&&(ce(),m(f,1,1,()=>{f=null}),fe()),g[4]?p?y&16&&d(p,1):(p=gd(g),p.c(),d(p,1),p.m(e,null)):p&&(ce(),m(p,1,1,()=>{p=null}),fe())},i(g){a||(d(u),d(f),d(p),a=!0)},o(g){m(u),m(f),m(p),a=!1},d(g){g&&b(e),s&&s.d(),i[19](null),u&&u.d(),f&&f.d(),p&&p.d(),i[20](null)}}}function Ug(i,e,t){let n,o,l,r,a,{adsSlotId:s=void 0}=e,{adsParams:u=void 0}=e,{adsPreviewParam:f=void 0}=e,{duration:p=0}=e,g=nt(),y=g.state.isEnded$;N(i,y,L=>t(7,a=L));let h=g.ui.isMobile;N(i,h,L=>t(0,o=L));let C,w,F=!1,T=g.ads.playbackState;N(i,T,L=>t(18,n=L));let k=g.ads.canSkip,P=g.ads.position;N(i,P,L=>t(5,l=L));let x=g.ads.secondsToWatchBeforeSkip;N(i,x,L=>t(6,r=L));let W,z;It(()=>{let L=g.getAdmanWrapper();if(!s){L.onAdmanLoadingError();return}let oe=new AbortController,re=()=>{oe.abort()},{width:X,height:Te}=Je(g.ui.playerSize),q=Je(g.ui.isFullscreen),O=Je(g.ui.isAutoplay),K={width:X,height:Te,isFullscreen:q,isAutoplay:O,adsContainer:C,adsVideoElement:w,slotId:s,params:u,previewParam:f,duration:p};return window.AdmanHTML?(L.initAdman(K),F=!0):L.loadAdman(oe.signal).then(()=>{L.initAdman(K),F=!0}).catch(()=>{L.onAdmanLoadingError()}),()=>{!F&&re()}});function se(L){he[L?"unshift":"push"](()=>{w=L,t(2,w)})}function de(L){he[L?"unshift":"push"](()=>{C=L,t(1,C)})}return i.$$set=L=>{"adsSlotId"in L&&t(14,s=L.adsSlotId),"adsParams"in L&&t(15,u=L.adsParams),"adsPreviewParam"in L&&t(16,f=L.adsPreviewParam),"duration"in L&&t(17,p=L.duration)},i.$$.update=()=>{i.$$.dirty&262144&&t(3,W=k&&n!=="inactive"),i.$$.dirty&262145&&t(4,z=o&&n!=="inactive")},[o,C,w,W,z,l,r,a,g,y,h,T,P,x,s,u,f,p,n,se,de]}var sa=class extends B{constructor(e){super(),D(this,e,Ug,zg,R,{adsSlotId:14,adsParams:15,adsPreviewParam:16,duration:17},Hg)}},El=sa;var Sn=i=>{if(!isFinite(i))return"00:00";let e=Math.round(i),t=Math.floor(e/(60*60));e-=t*3600;let n=Math.floor(e/60);return e-=n*60,(t>0?[t,n,e]:[n,e]).map(l=>l>9?String(l):`0${l}`).join(":")};function Wg(i){let e,t,n,o,l=i[2].default,r=Ee(l,i,i[1],null),a=[{xmlns:"http://www.w3.org/2000/svg"},{width:"42"},{height:"20"},{"aria-hidden":"true"},{"data-testid":"live-icon"},{role:"img"},i[0]],s={};for(let u=0;u<a.length;u+=1)s=ne(s,a[u]);return{c(){e=V("svg"),r&&r.c(),t=V("path"),n=V("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"),ye(e,s)},m(u,f){v(u,e,f),r&&r.m(e,null),_(e,t),_(e,n),o=!0},p(u,[f]){r&&r.p&&(!o||f&2)&&Ae(r,l,u,u[1],o?Me(l,u[1],f,null):Le(u[1]),null),ye(e,s=De(a,[{xmlns:"http://www.w3.org/2000/svg"},{width:"42"},{height:"20"},{"aria-hidden":"true"},{"data-testid":"live-icon"},{role:"img"},f&1&&u[0]]))},i(u){o||(d(r,u),o=!0)},o(u){m(r,u),o=!1},d(u){u&&b(e),r&&r.d(u)}}}function Kg(i,e,t){let{$$slots:n={},$$scope:o}=e;return i.$$set=l=>{t(0,e=ne(ne({},e),ve(l))),"$$scope"in l&&t(1,o=l.$$scope)},e=ve(e),[e,o,n]}var aa=class extends B{constructor(e){super(),D(this,e,Kg,Wg,R,{})}},hd=aa;function Gg(i){let e,t,n,o,l=i[2].default,r=Ee(l,i,i[1],null),a=[{xmlns:"http://www.w3.org/2000/svg"},{width:"42"},{height:"20"},{fill:"none"},{"aria-hidden":"true"},{"data-testid":"live-active-icon"},{role:"img"},i[0]],s={};for(let u=0;u<a.length;u+=1)s=ne(s,a[u]);return{c(){e=V("svg"),r&&r.c(),t=V("rect"),n=V("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"),ye(e,s)},m(u,f){v(u,e,f),r&&r.m(e,null),_(e,t),_(e,n),o=!0},p(u,[f]){r&&r.p&&(!o||f&2)&&Ae(r,l,u,u[1],o?Me(l,u[1],f,null):Le(u[1]),null),ye(e,s=De(a,[{xmlns:"http://www.w3.org/2000/svg"},{width:"42"},{height:"20"},{fill:"none"},{"aria-hidden":"true"},{"data-testid":"live-active-icon"},{role:"img"},f&1&&u[0]]))},i(u){o||(d(r,u),o=!0)},o(u){m(r,u),o=!1},d(u){u&&b(e),r&&r.d(u)}}}function jg(i,e,t){let{$$slots:n={},$$scope:o}=e;return i.$$set=l=>{t(0,e=ne(ne({},e),ve(l))),"$$scope"in l&&t(1,o=l.$$scope)},e=ve(e),[e,o,n]}var ua=class extends B{constructor(e){super(),D(this,e,jg,Gg,R,{})}},bd=ua;function xg(i){let e,t;return e=new hd({}),{c(){A(e.$$.fragment)},m(n,o){E(e,n,o),t=!0},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){m(e.$$.fragment,n),t=!1},d(n){M(e,n)}}}function Yg(i){let e,t;return e=new bd({}),{c(){A(e.$$.fragment)},m(n,o){E(e,n,o),t=!0},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){m(e.$$.fragment,n),t=!1},d(n){M(e,n)}}}function Qg(i){let e,t,n,o,l=[Yg,xg],r=[];function a(s,u){return s[0]?0:1}return e=a(i,-1),t=r[e]=l[e](i),{c(){t.c(),n=$e()},m(s,u){r[e].m(s,u),v(s,n,u),o=!0},p(s,[u]){let f=e;e=a(s,u),e!==f&&(ce(),m(r[f],1,1,()=>{r[f]=null}),fe(),t=r[e],t||(t=r[e]=l[e](s),t.c()),d(t,1),t.m(n.parentNode,n))},i(s){o||(d(t),o=!0)},o(s){m(t),o=!1},d(s){s&&b(n),r[e].d(s)}}}function Zg(i,e,t){let{isActive:n=!1}=e;return i.$$set=o=>{"isActive"in o&&t(0,n=o.isActive)},[n]}var ca=class extends B{constructor(e){super(),D(this,e,Zg,Qg,R,{isActive:0})}},Ml=ca;function Xg(i){Ce(i,"svelte-i7xnqb",".thumb-timer.svelte-i7xnqb.svelte-i7xnqb{position:absolute;z-index:var(--thumb-timer-z-index);bottom:0;right:0;margin:8px;padding:0 7px;border-radius:3px;background:var(--black-alpha-40);color:var(--white);font-size:12.5px;line-height:23px;height:23px;white-space:nowrap;transition:visibility var(--controls-transition-duration), opacity var(--controls-transition-duration)}.thumb-timer.live.svelte-i7xnqb.svelte-i7xnqb{font-size:0;line-height:20px;height:20px;border-radius:2px;background:var(--red)}.thumb-timer.hidden.svelte-i7xnqb.svelte-i7xnqb{visibility:hidden;opacity:0}.thumb-timer.svelte-i7xnqb.svelte-i7xnqb:after{content:'';display:inline-block;vertical-align:middle;height:100%}.thumb-timer-live-icon.svelte-i7xnqb.svelte-i7xnqb{display:inline-block;vertical-align:middle;width:42px;height:20px;margin:0 -7px}.thumb-timer-equalizer.svelte-i7xnqb.svelte-i7xnqb{display:inline-block;vertical-align:middle;position:relative;width:10px;height:10px;margin-top:-4px;margin-right:4px}.live.svelte-i7xnqb .thumb-timer-equalizer.svelte-i7xnqb{margin-top:-2px}.thumb-timer-equalizer.svelte-i7xnqb .col.svelte-i7xnqb{width:2px;height:10px;margin-right:2px;background:var(--white);position:absolute;bottom:0;transform-origin:50% 100%;animation:1.5s infinite linear alternate;animation-play-state:paused}.thumb-timer.playing.svelte-i7xnqb .thumb-timer-equalizer .col.svelte-i7xnqb{animation-play-state:running}.thumb-timer-equalizer.svelte-i7xnqb .col.svelte-i7xnqb:nth-child(1){left:0;animation-name:svelte-i7xnqb-thumb-timer-equalizer-col1}.thumb-timer-equalizer.svelte-i7xnqb .col.svelte-i7xnqb:nth-child(2){left:3px;animation-name:svelte-i7xnqb-thumb-timer-equalizer-col2}.thumb-timer-equalizer.svelte-i7xnqb .col.svelte-i7xnqb:nth-child(3){left:6px;animation-name:svelte-i7xnqb-thumb-timer-equalizer-col3}@keyframes svelte-i7xnqb-thumb-timer-equalizer-col1{0%{transform:scaleY(0.1)}25%{transform:scaleY(0.8)}50%{transform:scaleY(0.4)}75%{transform:scaleY(0.6)}100%{transform:scaleY(0.1)}}@keyframes svelte-i7xnqb-thumb-timer-equalizer-col2{0%{transform:scaleY(1)}25%{transform:scaleY(0.3)}50%{transform:scaleY(0.9)}75%{transform:scaleY(0.6)}100%{transform:scaleY(1)}}@keyframes svelte-i7xnqb-thumb-timer-equalizer-col3{0%{transform:scaleY(0.6)}25%{transform:scaleY(0.9)}50%{transform:scaleY(0.1)}75%{transform:scaleY(0.9)}100%{transform:scaleY(0.6)}}.thumb-timer-text.svelte-i7xnqb.svelte-i7xnqb{display:inline-block;text-align:right}")}function Jg(i){let e=Sn(i[4]-i[3])+"",t;return{c(){t=Ne(e)},m(n,o){v(n,t,o)},p(n,o){o&24&&e!==(e=Sn(n[4]-n[3])+"")&&Ge(t,e)},i:ge,o:ge,d(n){n&&b(t)}}}function $g(i){let e,t,n;return t=new Ml({props:{isActive:!0}}),{c(){e=I("div"),A(t.$$.fragment),c(e,"class","thumb-timer-live-icon svelte-i7xnqb")},m(o,l){v(o,e,l),E(t,e,null),n=!0},p:ge,i(o){n||(d(t.$$.fragment,o),n=!0)},o(o){m(t.$$.fragment,o),n=!1},d(o){o&&b(e),M(t)}}}function eh(i){let e,t,n,o,l,r,a,s=[$g,Jg],u=[];function f(p,g){return p[1]?0:1}return l=f(i,-1),r=u[l]=s[l](i),{c(){e=I("div"),t=I("div"),t.innerHTML='<div class="col svelte-i7xnqb"></div> <div class="col svelte-i7xnqb"></div> <div class="col svelte-i7xnqb"></div>',n=H(),o=I("span"),r.c(),c(t,"class","thumb-timer-equalizer svelte-i7xnqb"),c(o,"class","thumb-timer-text svelte-i7xnqb"),c(e,"role","timer"),c(e,"class","thumb-timer svelte-i7xnqb"),c(e,"data-testid","thumb-timer"),G(e,"live",i[1]),G(e,"hidden",i[0]),G(e,"playing",i[2])},m(p,g){v(p,e,g),_(e,t),_(e,n),_(e,o),u[l].m(o,null),a=!0},p(p,[g]){let y=l;l=f(p,g),l===y?u[l].p(p,g):(ce(),m(u[y],1,1,()=>{u[y]=null}),fe(),r=u[l],r?r.p(p,g):(r=u[l]=s[l](p),r.c()),d(r,1),r.m(o,null)),(!a||g&2)&&G(e,"live",p[1]),(!a||g&1)&&G(e,"hidden",p[0]),(!a||g&4)&&G(e,"playing",p[2])},i(p){a||(d(r),a=!0)},o(p){m(r),a=!1},d(p){p&&b(e),u[l].d()}}}function th(i,e,t){let{isHidden:n=!1}=e,{isLive:o=!1}=e,{isPlaying:l=!1}=e,{position:r}=e,{duration:a}=e;return i.$$set=s=>{"isHidden"in s&&t(0,n=s.isHidden),"isLive"in s&&t(1,o=s.isLive),"isPlaying"in s&&t(2,l=s.isPlaying),"position"in s&&t(3,r=s.position),"duration"in s&&t(4,a=s.duration)},[n,o,l,r,a]}var fa=class extends B{constructor(e){super(),D(this,e,th,eh,R,{isHidden:0,isLive:1,isPlaying:2,position:3,duration:4},Xg)}},Al=fa;var vr=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 Vd=require("@vkontakte/videoplayer-core");var da=require("@vkontakte/videoplayer-shared"),Jn=i=>{i.stopPropagation(),i.preventDefault()},nh=i=>{let e=i.previousElementSibling;e||(e=i.parentNode?.lastElementChild),e?.focus()},oh=i=>{let e=i.nextElementSibling;e||(e=i.parentNode?.firstElementChild),e?.focus()},rh=i=>{let e=i.code;return e==="Tab"&&!i.shiftKey||e==="ArrowDown"},lh=i=>{let e=i.code;return e==="Tab"||e==="ArrowUp"},vd=i=>i.code==="Escape",sh=i=>i.code==="ArrowLeft",ma=(i,e=[])=>{let t=i.code;return["Enter","Space",...e].includes(t)},yd=i=>{if(rh(i)){Jn(i),oh(i.target);return}lh(i)&&(Jn(i),nh(i.target))},yr=i=>!da.clientChecker.isAndroid&&i?.detail===0||da.clientChecker.isAndroid&&i?.pointerType==="",kr=async(i,e,t)=>{await qn(),i&&!i.classList.contains("opened")&&!e&&Je(t)&&(await qn(),t.set(!1),i.focus())},kd=async(i,e,t)=>{await qn(),i&&!e&&Je(t)&&(t.set(!1),i.focus())},Wo=async(i,e,t)=>{await qn(),!!i&&e&&t&&i.children[0]?.focus()},wd=async i=>{!!i&&setTimeout(()=>{i.focus()},100)},Ll=(i,e)=>{yd(i),vd(i)&&(Jn(i),e())},Cd=async(i,e,t)=>{ma(i,["ArrowRight"])&&(Jn(i),e(),await qn(),t()?.focus())},Sd=async(i,e,{itemIdReturnCase:t,id:n},o)=>{if(yd(i),sh(i)){Jn(i),e(),t.set(n);return}vd(i)&&(Jn(i),o())},wr=(i,e)=>{ma(i)&&(Jn(i),e())},Id=(i,e,t)=>{if(ma(i))Jn(i),t(!e);else{let n=i.code;if(n==="ArrowLeft"&&e){t(!1),Jn(i);return}n==="ArrowRight"&&!e&&(t(!0),Jn(i))}},Td=i=>{let e=i.getBoundingClientRect(),t=-14,n=e.left+e.width,o=e.top+t;return{right:n,bottom:o}},Pd=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 Ko=require("@vkontakte/videoplayer-shared");var xr=(n=>(n.OPEN_SUB_MENU="OPEN_SUB_MENU",n.CLICK="CLICK",n.SWITCH="SWITCH",n))(xr||{});var zn={"copy-link":100,"copy-link-timestamp":200,"copy-embed-code":300,pip:400,"video-loop":500,rotate:600,report:700,"save-debug":800,"save-trace":900,"debug-info":1e3};var pa=require("@vkontakte/videoplayer-shared");function uh(i){Ce(i,"svelte-1hm4mm9",".item.svelte-1hm4mm9{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}.item.svelte-1hm4mm9:hover{background:rgba(66, 66, 66, .5);color:var(--white)}")}function ch(i){let e,t,n,o,l;return{c(){e=I("li"),t=Ne(i[1]),c(e,"class","item svelte-1hm4mm9"),c(e,"role","menuitem"),c(e,"tabindex","0"),c(e,"aria-label",n=i[2]??i[1]),c(e,"data-testid",i[0])},m(r,a){v(r,e,a),_(e,t),o||(l=[Pe(e,"click",mt(i[3])),Pe(e,"keydown",i[4])],o=!0)},p(r,[a]){a&2&&Ge(t,r[1]),a&6&&n!==(n=r[2]??r[1])&&c(e,"aria-label",n),a&1&&c(e,"data-testid",r[0])},i:ge,o:ge,d(r){r&&b(e),o=!1,at(l)}}}function fh(i,e,t){let{id:n}=e,{onClick:o=pa.noop}=e,{closeContextMenu:l=pa.noop}=e,{label:r}=e,{ariaLabel:a}=e,s=()=>{o(),l()},u=f=>{wr(f,()=>s())};return i.$$set=f=>{"id"in f&&t(0,n=f.id),"onClick"in f&&t(5,o=f.onClick),"closeContextMenu"in f&&t(6,l=f.closeContextMenu),"label"in f&&t(1,r=f.label),"ariaLabel"in f&&t(2,a=f.ariaLabel)},[n,r,a,s,u,o,l]}var _a=class extends B{constructor(e){super(),D(this,e,fh,ch,R,{id:0,onClick:5,closeContextMenu:6,label:1,ariaLabel:2},uh)}},Ed=_a;function dh(i){Ce(i,"svelte-1p5ukkp","ul.svelte-1p5ukkp{position:absolute;z-index:var(--context-menu-z-index);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}")}function Md(i,e,t){let n=i.slice();return n[52]=e[t],n}function Ad(i){let e,t,n,o,l=gt(i[2]),r=[];for(let s=0;s<l.length;s+=1)r[s]=Ld(Md(i,l,s));let a=s=>m(r[s],1,1,()=>{r[s]=null});return{c(){e=I("ul");for(let s=0;s<r.length;s+=1)r[s].c();c(e,"role","menu"),ni(e,"top",i[4]+"px"),ni(e,"left",i[3]+"px"),c(e,"class","svelte-1p5ukkp")},m(s,u){v(s,e,u);for(let f=0;f<r.length;f+=1)r[f]&&r[f].m(e,null);i[34](e),t=!0,n||(o=[Pe(e,"contextmenu",Gt(i[33])),Pe(e,"keydown",i[13])],n=!0)},p(s,u){if(u[0]&4100){l=gt(s[2]);let f;for(f=0;f<l.length;f+=1){let p=Md(s,l,f);r[f]?(r[f].p(p,u),d(r[f],1)):(r[f]=Ld(p),r[f].c(),d(r[f],1),r[f].m(e,null))}for(ce(),f=l.length;f<r.length;f+=1)a(f);fe()}(!t||u[0]&16)&&ni(e,"top",s[4]+"px"),(!t||u[0]&8)&&ni(e,"left",s[3]+"px")},i(s){if(!t){for(let u=0;u<l.length;u+=1)d(r[u]);t=!0}},o(s){r=r.filter(Boolean);for(let u=0;u<r.length;u+=1)m(r[u]);t=!1},d(s){s&&b(e),$t(r,s),i[34](null),n=!1,at(o)}}}function Ld(i){let e,t;return e=new Ed({props:{id:i[52].id,label:i[52].label,ariaLabel:i[52].ariaLabel,onClick:i[52].onClick,closeContextMenu:i[12]}}),{c(){A(e.$$.fragment)},m(n,o){E(e,n,o),t=!0},p(n,o){let l={};o[0]&4&&(l.id=n[52].id),o[0]&4&&(l.label=n[52].label),o[0]&4&&(l.ariaLabel=n[52].ariaLabel),o[0]&4&&(l.onClick=n[52].onClick),e.$set(l)},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){m(e.$$.fragment,n),t=!1},d(n){M(e,n)}}}function mh(i){let e,t,n=i[1]&&Ad(i);return{c(){n&&n.c(),e=$e()},m(o,l){n&&n.m(o,l),v(o,e,l),t=!0},p(o,l){o[1]?n?(n.p(o,l),l[0]&2&&d(n,1)):(n=Ad(o),n.c(),d(n,1),n.m(e.parentNode,e)):n&&(ce(),m(n,1,1,()=>{n=null}),fe())},i(o){t||(d(n),t=!0)},o(o){m(n),t=!1},d(o){o&&b(e),n&&n.d(o)}}}function ph(i,e,t){let n,o,l,r,a,s,u,f,p,g,y,h,C,w,F,{visible:T=!1}=e,{supportLink:k}=e,{position:P={top:0,left:0}}=e,{playerContainerRef:x=void 0}=e,{controlsContainerRef:W=void 0}=e,{menuElementRef:z=void 0}=e,{returnFocus:se}=e,de=0,L=0,oe=nt(),re=Bt(),X=oe.ui.contextMenu.visible$,Te=oe.ui.debugPanelVisible;N(i,Te,Ie=>t(28,g=Ie));let q=oe.ui.additionalContextMenuItems$;N(i,q,Ie=>t(27,p=Ie));let O=oe.webApi.pictureInPictureApi,K=oe.webApi.pictureInPictureApi?.info.isActive$;N(i,K,Ie=>t(30,C=Ie));let le=oe.actions.internal.togglePictureInPicture,ee=oe.state.chromecastState$;N(i,ee,Ie=>t(31,w=Ie));let ue=oe.state.isLive$;N(i,ue,Ie=>t(32,F=Ie));let ze=oe.state.positionExact$;N(i,ze,Ie=>t(35,h=Ie));let Re=oe.state.isInteractive,ke=oe.state.looped$;N(i,ke,Ie=>t(29,y=Ie));let Ve=()=>{X.set(!1),se?.()},Qe=(Ie,$)=>{if(!z||!x||!W)return;let be=z.getBoundingClientRect(),ot=x.getBoundingClientRect();t(3,de=Ie-ot.left),t(4,L=$-ot.top),de+be.width>ot.width&&t(3,de=ot.width-be.width),L+be.height>ot.height&&t(4,L=ot.height-be.height),t(3,de=Math.max(de,0)),t(4,L=Math.max(L,0))},tt=()=>{oe.actions.internal.videoRotate()},j=()=>{(0,Ko.isValidURL)(k)&&window.open(k,"_blank"),oe.actions.internal.reportProblem(),oe.actions.internal.pause()},ae=()=>{let Ie=oe.actions.internal.getDebugTextData();if(re.features.saveDebugInfoToFile){let $=new Blob([...Ie],{type:"plain/text"}),be=window.URL.createObjectURL($);Oo(be,"vk_player_debug_info","txt")}else vr(oe.actions.internal.getDebugTextData())},Ze=()=>{let Ie=oe.actions.internal.getTraceTextData(),$=new Blob([...Ie],{type:"application/json"}),be=window.URL.createObjectURL($);Oo(be,"vk_player_trace_info","json")},_e=()=>{Te.set(!0)},Ue=async()=>{try{le()}finally{se?.()}},st=()=>{oe.actions.internal.setLooped(!y)},je=()=>{if(l){let Ie=oe.callbacks?.onCopyEmbedCodeClicked?.();Ie&&vr(Ie)}},qe=(Ie=!1)=>{if(oe.callbacks?.onCopyVideoLink){let $=oe.callbacks?.onCopyVideoLink(Ie,h);$&&vr($)}},Xe=Ie=>{Ll(Ie,Ve)},Ye=[];function Q(Ie){Cn.call(this,i,Ie)}function Be(Ie){he[Ie?"unshift":"push"](()=>{z=Ie,t(0,z)})}return i.$$set=Ie=>{"visible"in Ie&&t(1,T=Ie.visible),"supportLink"in Ie&&t(14,k=Ie.supportLink),"position"in Ie&&t(15,P=Ie.position),"playerContainerRef"in Ie&&t(16,x=Ie.playerContainerRef),"controlsContainerRef"in Ie&&t(17,W=Ie.controlsContainerRef),"menuElementRef"in Ie&&t(0,z=Ie.menuElementRef),"returnFocus"in Ie&&t(18,se=Ie.returnFocus)},i.$$.update=()=>{if(i.$$.dirty[0]&67108864|i.$$.dirty[1]&2&&t(25,o=n&&!F&&!Re),i.$$.dirty[1]&1&&t(23,r=O&&w!==Vd.ChromecastState.CONNECTED&&!Re),i.$$.dirty[0]&1073741824&&t(21,s=re.showSupport&&!C),i.$$.dirty[0]&229377&&z&&x&&W){let{top:Ie,left:$,bottom:be,right:ot}=P,me=$??0,_t=Ie??0,We=z.getBoundingClientRect();(0,Ko.isNullable)($)&&!(0,Ko.isNullable)(ot)&&(me=ot-We.width),(0,Ko.isNullable)(Ie)&&!(0,Ko.isNullable)(be)&&(_t=be-We.height),me=Math.max(me,0),_t=Math.max(_t,0),Qe(me,_t)}i.$$.dirty[0]&1073217540&&(t(2,Ye=[]),n&&Ye.push({id:"copy-link",weight:zn["copy-link"],label:U("menu_copy_video_link"),onClick:()=>qe()}),o&&Ye.push({id:"copy-link-timestamp",weight:zn["copy-link-timestamp"],label:U("menu_copy_video_link_with_timestamp"),onClick:()=>qe(!0)}),l&&Ye.push({id:"copy-embed-code",weight:zn["copy-embed-code"],label:U("menu_copy_embed_code"),onClick:je}),r&&Ye.push({id:"pip",weight:zn.pip,label:U("menu_pip"),onClick:Ue}),Ye.push({id:"video-loop",weight:zn["video-loop"],label:y?U("menu_video_loop_off"):U("menu_video_loop_on"),ariaLabel:U("aria_label_menu_loop"),onClick:st}),a&&Ye.push({id:"rotate",weight:zn.rotate,label:U("menu_video_rotate"),ariaLabel:U("aria_label_menu_rotate"),onClick:tt}),s&&Ye.push({id:"report",weight:zn.report,label:U("menu_report"),ariaLabel:`${U("menu_report")}. ${U("aria_label_new_tab_alert")}`,onClick:j}),Ye.push({id:"save-debug",weight:zn["save-debug"],label:f,onClick:ae}),u&&Ye.push({id:"save-trace",weight:zn["save-trace"],label:U("menu_save_debug"),onClick:Ze}),Ye.push({id:"debug-info",weight:zn["debug-info"],label:U("menu_debug_overlay"),ariaLabel:g?U("aria_label_menu_debug_overlay_disable"):U("aria_label_menu_debug_overlay_enable"),onClick:_e}),t(2,Ye=[...Ye,...p].sort((Ie,$)=>Ie.weight-$.weight)))},t(26,n=re.features.copyVideoLink&&oe.callbacks?.onCopyVideoLink),t(24,l=!!oe.callbacks?.onCopyEmbedCodeClicked),t(22,a=re.features.videoRotate&&!Re),t(19,u=re.features.saveTraceInfoToFile),t(20,f=re.features.saveDebugInfoToFile?U("menu_save_debug"):U("menu_copy_debug")),[z,T,Ye,de,L,Te,q,K,ee,ue,ze,ke,Ve,Xe,k,P,x,W,se,u,f,s,a,r,l,o,n,p,g,y,C,w,F,Q,Be]}var ga=class extends B{constructor(e){super(),D(this,e,ph,mh,R,{visible:1,supportLink:14,position:15,playerContainerRef:16,controlsContainerRef:17,menuElementRef:0,returnFocus:18},dh,[-1,-1])}},Rd=ga;var Vl=class{constructor(e){this.value=e,this.next=null}};var Cr=class{constructor(e){this.top=null,this.bottom=null,this.size=0,this.maxSize=e}push(e){let t=new Vl(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 _h(i){Ce(i,"svelte-1ssl9eb",".container.svelte-1ssl9eb{display:inline-block;width:120px;height:16px}canvas.svelte-1ssl9eb{transform:scale(1, -1);margin-top:2px}")}function gh(i){let e,t;return{c(){e=I("div"),t=I("canvas"),c(t,"class","svelte-1ssl9eb"),c(e,"class","container svelte-1ssl9eb")},m(n,o){v(n,e,o),_(e,t),i[3](t)},p:ge,i:ge,o:ge,d(n){n&&b(e),i[3](null)}}}var ha=16,ba=120,Bd=60;function hh(i,e,t,n,o){o===0&&(o=1),i.fillStyle="#fff",i.fillRect(e,t,n,o)}function bh(i,e,t){let{values:n=[]}=e,o,l,r=ba/Bd;It(()=>{t(0,o.width=ba,o),t(0,o.height=ha,o),t(2,l=o.getContext("2d"))});function a(s){he[s?"unshift":"push"](()=>{o=s,t(0,o)})}return i.$$set=s=>{"values"in s&&t(1,n=s.values)},i.$$.update=()=>{if(i.$$.dirty&6){let s="";if(l){let u=n[0];for(let p=1;p<n.length;p++)n[p]>u&&(u=n[p]);l.clearRect(0,0,ba,ha);let f=Bd-1;for(let p=n.length-1;p>=0;p--){let g=f*r,y=u>0?ha*(n[p]/u):0;hh(l,g,0,r,y),s=y+" "+s,f--}}}},[o,n,l,a]}var va=class extends B{constructor(e){super(),D(this,e,bh,gh,R,{values:1},_h)}},Rl=va;var ya=require("@vkontakte/videoplayer-shared");function vh(i){Ce(i,"svelte-k5ymwy",".container.svelte-k5ymwy.svelte-k5ymwy.svelte-k5ymwy{background:rgba(28, 28, 28, 0.8);border-radius:4px;color:#fff;left:20px;position:absolute;z-index:var(--debug-panel-z-index);top:45px;min-width:160px;font-size:10px;text-align:left}.container-mobile.svelte-k5ymwy.svelte-k5ymwy.svelte-k5ymwy{top:16px;left:16px}button.svelte-k5ymwy.svelte-k5ymwy.svelte-k5ymwy{position:absolute;right:5px;top:3px;cursor:pointer;outline:0;border:none;background-color:transparent;padding:0;color:#fff}.content.svelte-k5ymwy.svelte-k5ymwy.svelte-k5ymwy{padding:5px}.content.svelte-k5ymwy>div.svelte-k5ymwy>div.svelte-k5ymwy{display:inline-block;text-align:right;width:50px;padding:0 5px}")}function Dd(i){let e,t,n,o,l=i[0].id+"",r;return{c(){e=I("div"),t=I("div"),t.textContent="Video id",n=H(),o=I("span"),r=Ne(l),c(t,"class","svelte-k5ymwy"),c(e,"class","svelte-k5ymwy")},m(a,s){v(a,e,s),_(e,t),_(e,n),_(e,o),_(o,r)},p(a,s){s&1&&l!==(l=a[0].id+"")&&Ge(r,l)},d(a){a&&b(e)}}}function Nd(i){let e,t,n,o,l=i[0].vsid+"",r;return{c(){e=I("div"),t=I("div"),t.textContent="VSID",n=H(),o=I("span"),r=Ne(l),c(t,"class","svelte-k5ymwy"),c(e,"class","svelte-k5ymwy")},m(a,s){v(a,e,s),_(e,t),_(e,n),_(e,o),_(o,r)},p(a,s){s&1&&l!==(l=a[0].vsid+"")&&Ge(r,l)},d(a){a&&b(e)}}}function Od(i){let e,t,n,o,l=i[0].provider+"",r;return{c(){e=I("div"),t=I("div"),t.textContent="Provider",n=H(),o=I("span"),r=Ne(l),c(t,"class","svelte-k5ymwy"),c(e,"class","svelte-k5ymwy")},m(a,s){v(a,e,s),_(e,t),_(e,n),_(e,o),_(o,r)},p(a,s){s&1&&l!==(l=a[0].provider+"")&&Ge(r,l)},d(a){a&&b(e)}}}function Fd(i){let e,t,n,o,l,r=(i[0].videoCodec||"")+"",a,s,u=i[0].hdr?"(HDR)":"",f,p,g=(i[0].audioCodec||"")+"",y,h,C=i[0].audioLanguage?`(${i[0].audioLanguage})`:"",w;return{c(){e=I("div"),t=I("div"),t.textContent="Streams",n=H(),o=I("span"),l=Ne("Video: "),a=Ne(r),s=H(),f=Ne(u),p=Ne(`
24
+ )}`)}function pd(i){let e;return{c(){e=I("div"),c(e,"class","top-gradient-mobile svelte-354ajf")},m(t,n){v(t,e,n)},d(t){t&&b(e)}}}function _d(i){let e,t;return e=new dd({props:{position:i[5],secondsToWatchBeforeSkip:i[6],skipAd:i[8].actions.internal.skipAd}}),{c(){A(e.$$.fragment)},m(n,o){E(e,n,o),t=!0},p(n,o){let l={};o&32&&(l.position=n[5]),o&64&&(l.secondsToWatchBeforeSkip=n[6]),e.$set(l)},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){m(e.$$.fragment,n),t=!1},d(n){M(e,n)}}}function gd(i){let e,t;return e=new cd({}),{c(){A(e.$$.fragment)},m(n,o){E(e,n,o),t=!0},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){m(e.$$.fragment,n),t=!1},d(n){M(e,n)}}}function hd(i){let e,t;return e=new md({}),{c(){A(e.$$.fragment)},m(n,o){E(e,n,o),t=!0},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){m(e.$$.fragment,n),t=!1},d(n){M(e,n)}}}function Ug(i){let e,t,n,o,l,r,a,s=i[0]&&pd(i),u=i[3]&&_d(i),f=i[7]&&gd(i),p=i[4]&&hd(i);return{c(){e=I("div"),s&&s.c(),t=H(),n=I("video"),o=H(),u&&u.c(),l=H(),f&&f.c(),r=H(),p&&p.c(),ii(n,"width","100%"),ii(n,"height","100%"),n.playsInline=!0,c(e,"class","container svelte-354ajf")},m(g,y){v(g,e,y),s&&s.m(e,null),_(e,t),_(e,n),i[19](n),_(e,o),u&&u.m(e,null),_(e,l),f&&f.m(e,null),_(e,r),p&&p.m(e,null),i[20](e),a=!0},p(g,[y]){g[0]?s||(s=pd(g),s.c(),s.m(e,t)):s&&(s.d(1),s=null),g[3]?u?(u.p(g,y),y&8&&d(u,1)):(u=_d(g),u.c(),d(u,1),u.m(e,l)):u&&(ae(),m(u,1,1,()=>{u=null}),ue()),g[7]?f?y&128&&d(f,1):(f=gd(g),f.c(),d(f,1),f.m(e,r)):f&&(ae(),m(f,1,1,()=>{f=null}),ue()),g[4]?p?y&16&&d(p,1):(p=hd(g),p.c(),d(p,1),p.m(e,null)):p&&(ae(),m(p,1,1,()=>{p=null}),ue())},i(g){a||(d(u),d(f),d(p),a=!0)},o(g){m(u),m(f),m(p),a=!1},d(g){g&&b(e),s&&s.d(),i[19](null),u&&u.d(),f&&f.d(),p&&p.d(),i[20](null)}}}function zg(i,e,t){let n,o,l,r,a,{adsSlotId:s=void 0}=e,{adsParams:u=void 0}=e,{adsPreviewParam:f=void 0}=e,{duration:p=0}=e,g=ot(),y=g.state.isEnded$;O(i,y,L=>t(7,a=L));let h=g.ui.isMobile;O(i,h,L=>t(0,o=L));let C,w,F=!1,T=g.ads.playbackState;O(i,T,L=>t(18,n=L));let k=g.ads.canSkip,P=g.ads.position;O(i,P,L=>t(5,l=L));let G=g.ads.secondsToWatchBeforeSkip;O(i,G,L=>t(6,r=L));let W,z;Et(()=>{let L=g.getAdmanWrapper();if(!s){L.onAdmanLoadingError();return}let te=new AbortController,re=()=>{te.abort()},{width:X,height:Pe}=Xe(g.ui.playerSize),q=Xe(g.ui.isFullscreen),N=Xe(g.ui.isAutoplay),K={width:X,height:Pe,isFullscreen:q,isAutoplay:N,adsContainer:C,adsVideoElement:w,slotId:s,params:u,previewParam:f,duration:p};return window.AdmanHTML?(L.initAdman(K),F=!0):L.loadAdman(te.signal).then(()=>{L.initAdman(K),F=!0}).catch(()=>{L.onAdmanLoadingError()}),()=>{!F&&re()}});function le(L){be[L?"unshift":"push"](()=>{w=L,t(2,w)})}function de(L){be[L?"unshift":"push"](()=>{C=L,t(1,C)})}return i.$$set=L=>{"adsSlotId"in L&&t(14,s=L.adsSlotId),"adsParams"in L&&t(15,u=L.adsParams),"adsPreviewParam"in L&&t(16,f=L.adsPreviewParam),"duration"in L&&t(17,p=L.duration)},i.$$.update=()=>{i.$$.dirty&262144&&t(3,W=k&&n!=="inactive"),i.$$.dirty&262145&&t(4,z=o&&n!=="inactive")},[o,C,w,W,z,l,r,a,g,y,h,T,P,G,s,u,f,p,n,le,de]}var aa=class extends B{constructor(e){super(),D(this,e,zg,Ug,R,{adsSlotId:14,adsParams:15,adsPreviewParam:16,duration:17},Hg)}},El=aa;var Sn=i=>{if(!isFinite(i))return"00:00";let e=Math.round(i),t=Math.floor(e/(60*60));e-=t*3600;let n=Math.floor(e/60);return e-=n*60,(t>0?[t,n,e]:[n,e]).map(l=>l>9?String(l):`0${l}`).join(":")};function Wg(i){let e,t,n,o,l=i[2].default,r=Ee(l,i,i[1],null),a=[{xmlns:"http://www.w3.org/2000/svg"},{width:"42"},{height:"20"},{"aria-hidden":"true"},{"data-testid":"live-icon"},{role:"img"},i[0]],s={};for(let u=0;u<a.length;u+=1)s=ne(s,a[u]);return{c(){e=V("svg"),r&&r.c(),t=V("path"),n=V("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"),ye(e,s)},m(u,f){v(u,e,f),r&&r.m(e,null),_(e,t),_(e,n),o=!0},p(u,[f]){r&&r.p&&(!o||f&2)&&Ae(r,l,u,u[1],o?Me(l,u[1],f,null):Le(u[1]),null),ye(e,s=Be(a,[{xmlns:"http://www.w3.org/2000/svg"},{width:"42"},{height:"20"},{"aria-hidden":"true"},{"data-testid":"live-icon"},{role:"img"},f&1&&u[0]]))},i(u){o||(d(r,u),o=!0)},o(u){m(r,u),o=!1},d(u){u&&b(e),r&&r.d(u)}}}function Kg(i,e,t){let{$$slots:n={},$$scope:o}=e;return i.$$set=l=>{t(0,e=ne(ne({},e),ve(l))),"$$scope"in l&&t(1,o=l.$$scope)},e=ve(e),[e,o,n]}var ua=class extends B{constructor(e){super(),D(this,e,Kg,Wg,R,{})}},bd=ua;function jg(i){let e,t,n,o,l=i[2].default,r=Ee(l,i,i[1],null),a=[{xmlns:"http://www.w3.org/2000/svg"},{width:"42"},{height:"20"},{fill:"none"},{"aria-hidden":"true"},{"data-testid":"live-active-icon"},{role:"img"},i[0]],s={};for(let u=0;u<a.length;u+=1)s=ne(s,a[u]);return{c(){e=V("svg"),r&&r.c(),t=V("rect"),n=V("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"),ye(e,s)},m(u,f){v(u,e,f),r&&r.m(e,null),_(e,t),_(e,n),o=!0},p(u,[f]){r&&r.p&&(!o||f&2)&&Ae(r,l,u,u[1],o?Me(l,u[1],f,null):Le(u[1]),null),ye(e,s=Be(a,[{xmlns:"http://www.w3.org/2000/svg"},{width:"42"},{height:"20"},{fill:"none"},{"aria-hidden":"true"},{"data-testid":"live-active-icon"},{role:"img"},f&1&&u[0]]))},i(u){o||(d(r,u),o=!0)},o(u){m(r,u),o=!1},d(u){u&&b(e),r&&r.d(u)}}}function Gg(i,e,t){let{$$slots:n={},$$scope:o}=e;return i.$$set=l=>{t(0,e=ne(ne({},e),ve(l))),"$$scope"in l&&t(1,o=l.$$scope)},e=ve(e),[e,o,n]}var ca=class extends B{constructor(e){super(),D(this,e,Gg,jg,R,{})}},vd=ca;function xg(i){let e,t;return e=new bd({}),{c(){A(e.$$.fragment)},m(n,o){E(e,n,o),t=!0},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){m(e.$$.fragment,n),t=!1},d(n){M(e,n)}}}function Yg(i){let e,t;return e=new vd({}),{c(){A(e.$$.fragment)},m(n,o){E(e,n,o),t=!0},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){m(e.$$.fragment,n),t=!1},d(n){M(e,n)}}}function Qg(i){let e,t,n,o,l=[Yg,xg],r=[];function a(s,u){return s[0]?0:1}return e=a(i,-1),t=r[e]=l[e](i),{c(){t.c(),n=it()},m(s,u){r[e].m(s,u),v(s,n,u),o=!0},p(s,[u]){let f=e;e=a(s,u),e!==f&&(ae(),m(r[f],1,1,()=>{r[f]=null}),ue(),t=r[e],t||(t=r[e]=l[e](s),t.c()),d(t,1),t.m(n.parentNode,n))},i(s){o||(d(t),o=!0)},o(s){m(t),o=!1},d(s){s&&b(n),r[e].d(s)}}}function Zg(i,e,t){let{isActive:n=!1}=e;return i.$$set=o=>{"isActive"in o&&t(0,n=o.isActive)},[n]}var fa=class extends B{constructor(e){super(),D(this,e,Zg,Qg,R,{isActive:0})}},Ml=fa;function Xg(i){Ce(i,"svelte-i7xnqb",".thumb-timer.svelte-i7xnqb.svelte-i7xnqb{position:absolute;z-index:var(--thumb-timer-z-index);bottom:0;right:0;margin:8px;padding:0 7px;border-radius:3px;background:var(--black-alpha-40);color:var(--white);font-size:12.5px;line-height:23px;height:23px;white-space:nowrap;transition:visibility var(--controls-transition-duration), opacity var(--controls-transition-duration)}.thumb-timer.live.svelte-i7xnqb.svelte-i7xnqb{font-size:0;line-height:20px;height:20px;border-radius:2px;background:var(--red)}.thumb-timer.hidden.svelte-i7xnqb.svelte-i7xnqb{visibility:hidden;opacity:0}.thumb-timer.svelte-i7xnqb.svelte-i7xnqb:after{content:'';display:inline-block;vertical-align:middle;height:100%}.thumb-timer-live-icon.svelte-i7xnqb.svelte-i7xnqb{display:inline-block;vertical-align:middle;width:42px;height:20px;margin:0 -7px}.thumb-timer-equalizer.svelte-i7xnqb.svelte-i7xnqb{display:inline-block;vertical-align:middle;position:relative;width:10px;height:10px;margin-top:-4px;margin-right:4px}.live.svelte-i7xnqb .thumb-timer-equalizer.svelte-i7xnqb{margin-top:-2px}.thumb-timer-equalizer.svelte-i7xnqb .col.svelte-i7xnqb{width:2px;height:10px;margin-right:2px;background:var(--white);position:absolute;bottom:0;transform-origin:50% 100%;animation:1.5s infinite linear alternate;animation-play-state:paused}.thumb-timer.playing.svelte-i7xnqb .thumb-timer-equalizer .col.svelte-i7xnqb{animation-play-state:running}.thumb-timer-equalizer.svelte-i7xnqb .col.svelte-i7xnqb:nth-child(1){left:0;animation-name:svelte-i7xnqb-thumb-timer-equalizer-col1}.thumb-timer-equalizer.svelte-i7xnqb .col.svelte-i7xnqb:nth-child(2){left:3px;animation-name:svelte-i7xnqb-thumb-timer-equalizer-col2}.thumb-timer-equalizer.svelte-i7xnqb .col.svelte-i7xnqb:nth-child(3){left:6px;animation-name:svelte-i7xnqb-thumb-timer-equalizer-col3}@keyframes svelte-i7xnqb-thumb-timer-equalizer-col1{0%{transform:scaleY(0.1)}25%{transform:scaleY(0.8)}50%{transform:scaleY(0.4)}75%{transform:scaleY(0.6)}100%{transform:scaleY(0.1)}}@keyframes svelte-i7xnqb-thumb-timer-equalizer-col2{0%{transform:scaleY(1)}25%{transform:scaleY(0.3)}50%{transform:scaleY(0.9)}75%{transform:scaleY(0.6)}100%{transform:scaleY(1)}}@keyframes svelte-i7xnqb-thumb-timer-equalizer-col3{0%{transform:scaleY(0.6)}25%{transform:scaleY(0.9)}50%{transform:scaleY(0.1)}75%{transform:scaleY(0.9)}100%{transform:scaleY(0.6)}}.thumb-timer-text.svelte-i7xnqb.svelte-i7xnqb{display:inline-block;text-align:right}")}function Jg(i){let e=Sn(i[4]-i[3])+"",t;return{c(){t=De(e)},m(n,o){v(n,t,o)},p(n,o){o&24&&e!==(e=Sn(n[4]-n[3])+"")&&xe(t,e)},i:he,o:he,d(n){n&&b(t)}}}function $g(i){let e,t,n;return t=new Ml({props:{isActive:!0}}),{c(){e=I("div"),A(t.$$.fragment),c(e,"class","thumb-timer-live-icon svelte-i7xnqb")},m(o,l){v(o,e,l),E(t,e,null),n=!0},p:he,i(o){n||(d(t.$$.fragment,o),n=!0)},o(o){m(t.$$.fragment,o),n=!1},d(o){o&&b(e),M(t)}}}function eh(i){let e,t,n,o,l,r,a,s=[$g,Jg],u=[];function f(p,g){return p[1]?0:1}return l=f(i,-1),r=u[l]=s[l](i),{c(){e=I("div"),t=I("div"),t.innerHTML='<div class="col svelte-i7xnqb"></div> <div class="col svelte-i7xnqb"></div> <div class="col svelte-i7xnqb"></div>',n=H(),o=I("span"),r.c(),c(t,"class","thumb-timer-equalizer svelte-i7xnqb"),c(o,"class","thumb-timer-text svelte-i7xnqb"),c(e,"role","timer"),c(e,"class","thumb-timer svelte-i7xnqb"),c(e,"data-testid","thumb-timer"),j(e,"live",i[1]),j(e,"hidden",i[0]),j(e,"playing",i[2])},m(p,g){v(p,e,g),_(e,t),_(e,n),_(e,o),u[l].m(o,null),a=!0},p(p,[g]){let y=l;l=f(p,g),l===y?u[l].p(p,g):(ae(),m(u[y],1,1,()=>{u[y]=null}),ue(),r=u[l],r?r.p(p,g):(r=u[l]=s[l](p),r.c()),d(r,1),r.m(o,null)),(!a||g&2)&&j(e,"live",p[1]),(!a||g&1)&&j(e,"hidden",p[0]),(!a||g&4)&&j(e,"playing",p[2])},i(p){a||(d(r),a=!0)},o(p){m(r),a=!1},d(p){p&&b(e),u[l].d()}}}function th(i,e,t){let{isHidden:n=!1}=e,{isLive:o=!1}=e,{isPlaying:l=!1}=e,{position:r}=e,{duration:a}=e;return i.$$set=s=>{"isHidden"in s&&t(0,n=s.isHidden),"isLive"in s&&t(1,o=s.isLive),"isPlaying"in s&&t(2,l=s.isPlaying),"position"in s&&t(3,r=s.position),"duration"in s&&t(4,a=s.duration)},[n,o,l,r,a]}var da=class extends B{constructor(e){super(),D(this,e,th,eh,R,{isHidden:0,isLive:1,isPlaying:2,position:3,duration:4},Xg)}},Al=da;var _r=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 Rd=require("@vkontakte/videoplayer-core");var ma=require("@vkontakte/videoplayer-shared"),Xn=i=>{i.stopPropagation(),i.preventDefault()},nh=i=>{let e=i.previousElementSibling;e||(e=i.parentNode?.lastElementChild),e?.focus()},oh=i=>{let e=i.nextElementSibling;e||(e=i.parentNode?.firstElementChild),e?.focus()},rh=i=>{let e=i.code;return e==="Tab"&&!i.shiftKey||e==="ArrowDown"},lh=i=>{let e=i.code;return e==="Tab"||e==="ArrowUp"},yd=i=>i.code==="Escape",sh=i=>i.code==="ArrowLeft",pa=(i,e=[])=>{let t=i.code;return["Enter","Space",...e].includes(t)},kd=i=>{if(rh(i)){Xn(i),oh(i.target);return}lh(i)&&(Xn(i),nh(i.target))},gr=i=>!ma.clientChecker.isAndroid&&i?.detail===0||ma.clientChecker.isAndroid&&i?.pointerType==="",hr=async(i,e,t)=>{await On(),i&&!i.classList.contains("opened")&&!e&&Xe(t)&&(await On(),t.set(!1),i.focus())},wd=async(i,e,t)=>{await On(),i&&!e&&Xe(t)&&(t.set(!1),i.focus())},zo=async(i,e,t)=>{await On(),!!i&&e&&t&&i.children[0]?.focus()},Cd=async i=>{!!i&&setTimeout(()=>{i.focus()},100)},Ll=(i,e)=>{kd(i),yd(i)&&(Xn(i),e())},Sd=async(i,e,t)=>{pa(i,["ArrowRight"])&&(Xn(i),e(),await On(),t()?.focus())},Id=async(i,e,{itemIdReturnCase:t,id:n},o)=>{if(kd(i),sh(i)){Xn(i),e(),t.set(n);return}yd(i)&&(Xn(i),o())},br=(i,e)=>{pa(i)&&(Xn(i),e())},Td=(i,e,t)=>{if(pa(i))Xn(i),t(!e);else{let n=i.code;if(n==="ArrowLeft"&&e){t(!1),Xn(i);return}n==="ArrowRight"&&!e&&(t(!0),Xn(i))}},Pd=i=>{let e=i.getBoundingClientRect(),t=-14,n=e.left+e.width,o=e.top+t;return{right:n,bottom:o}},Ed=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 Wo=require("@vkontakte/videoplayer-shared");var Yr=(n=>(n.OPEN_SUB_MENU="OPEN_SUB_MENU",n.CLICK="CLICK",n.SWITCH="SWITCH",n))(Yr||{});var Fn={"copy-link":100,"copy-link-timestamp":200,"copy-embed-code":300,pip:400,"video-loop":500,rotate:600,report:700,"save-debug":800,"save-trace":900,"debug-info":1e3};var _a=require("@vkontakte/videoplayer-shared");function uh(i){Ce(i,"svelte-1hm4mm9",".item.svelte-1hm4mm9{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}.item.svelte-1hm4mm9:hover{background:rgba(66, 66, 66, .5);color:var(--white)}")}function ch(i){let e,t,n,o,l;return{c(){e=I("li"),t=De(i[1]),c(e,"class","item svelte-1hm4mm9"),c(e,"role","menuitem"),c(e,"tabindex","0"),c(e,"aria-label",n=i[2]??i[1]),c(e,"data-testid",i[0])},m(r,a){v(r,e,a),_(e,t),o||(l=[Te(e,"click",_t(i[3])),Te(e,"keydown",i[4])],o=!0)},p(r,[a]){a&2&&xe(t,r[1]),a&6&&n!==(n=r[2]??r[1])&&c(e,"aria-label",n),a&1&&c(e,"data-testid",r[0])},i:he,o:he,d(r){r&&b(e),o=!1,at(l)}}}function fh(i,e,t){let{id:n}=e,{onClick:o=_a.noop}=e,{closeContextMenu:l=_a.noop}=e,{label:r}=e,{ariaLabel:a}=e,s=()=>{o(),l()},u=f=>{br(f,()=>s())};return i.$$set=f=>{"id"in f&&t(0,n=f.id),"onClick"in f&&t(5,o=f.onClick),"closeContextMenu"in f&&t(6,l=f.closeContextMenu),"label"in f&&t(1,r=f.label),"ariaLabel"in f&&t(2,a=f.ariaLabel)},[n,r,a,s,u,o,l]}var ga=class extends B{constructor(e){super(),D(this,e,fh,ch,R,{id:0,onClick:5,closeContextMenu:6,label:1,ariaLabel:2},uh)}},Md=ga;function dh(i){Ce(i,"svelte-1p5ukkp","ul.svelte-1p5ukkp{position:absolute;z-index:var(--context-menu-z-index);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}")}function Ad(i,e,t){let n=i.slice();return n[52]=e[t],n}function Ld(i){let e,t,n,o,l=ht(i[2]),r=[];for(let s=0;s<l.length;s+=1)r[s]=Vd(Ad(i,l,s));let a=s=>m(r[s],1,1,()=>{r[s]=null});return{c(){e=I("ul");for(let s=0;s<r.length;s+=1)r[s].c();c(e,"role","menu"),ii(e,"top",i[4]+"px"),ii(e,"left",i[3]+"px"),c(e,"class","svelte-1p5ukkp")},m(s,u){v(s,e,u);for(let f=0;f<r.length;f+=1)r[f]&&r[f].m(e,null);i[34](e),t=!0,n||(o=[Te(e,"contextmenu",Yt(i[33])),Te(e,"keydown",i[13])],n=!0)},p(s,u){if(u[0]&4100){l=ht(s[2]);let f;for(f=0;f<l.length;f+=1){let p=Ad(s,l,f);r[f]?(r[f].p(p,u),d(r[f],1)):(r[f]=Vd(p),r[f].c(),d(r[f],1),r[f].m(e,null))}for(ae(),f=l.length;f<r.length;f+=1)a(f);ue()}(!t||u[0]&16)&&ii(e,"top",s[4]+"px"),(!t||u[0]&8)&&ii(e,"left",s[3]+"px")},i(s){if(!t){for(let u=0;u<l.length;u+=1)d(r[u]);t=!0}},o(s){r=r.filter(Boolean);for(let u=0;u<r.length;u+=1)m(r[u]);t=!1},d(s){s&&b(e),Jt(r,s),i[34](null),n=!1,at(o)}}}function Vd(i){let e,t;return e=new Md({props:{id:i[52].id,label:i[52].label,ariaLabel:i[52].ariaLabel,onClick:i[52].onClick,closeContextMenu:i[12]}}),{c(){A(e.$$.fragment)},m(n,o){E(e,n,o),t=!0},p(n,o){let l={};o[0]&4&&(l.id=n[52].id),o[0]&4&&(l.label=n[52].label),o[0]&4&&(l.ariaLabel=n[52].ariaLabel),o[0]&4&&(l.onClick=n[52].onClick),e.$set(l)},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){m(e.$$.fragment,n),t=!1},d(n){M(e,n)}}}function mh(i){let e,t,n=i[1]&&Ld(i);return{c(){n&&n.c(),e=it()},m(o,l){n&&n.m(o,l),v(o,e,l),t=!0},p(o,l){o[1]?n?(n.p(o,l),l[0]&2&&d(n,1)):(n=Ld(o),n.c(),d(n,1),n.m(e.parentNode,e)):n&&(ae(),m(n,1,1,()=>{n=null}),ue())},i(o){t||(d(n),t=!0)},o(o){m(n),t=!1},d(o){o&&b(e),n&&n.d(o)}}}function ph(i,e,t){let n,o,l,r,a,s,u,f,p,g,y,h,C,w,F,{visible:T=!1}=e,{supportLink:k}=e,{position:P={top:0,left:0}}=e,{playerContainerRef:G=void 0}=e,{controlsContainerRef:W=void 0}=e,{menuElementRef:z=void 0}=e,{returnFocus:le}=e,de=0,L=0,te=ot(),re=Nt(),X=te.ui.contextMenu.visible$,Pe=te.ui.debugPanelVisible;O(i,Pe,we=>t(28,g=we));let q=te.ui.additionalContextMenuItems$;O(i,q,we=>t(27,p=we));let N=te.webApi.pictureInPictureApi,K=te.webApi.pictureInPictureApi?.info.isActive$;O(i,K,we=>t(30,C=we));let ce=te.actions.internal.togglePictureInPicture,oe=te.state.chromecastState$;O(i,oe,we=>t(31,w=we));let se=te.state.isLive$;O(i,se,we=>t(32,F=we));let qe=te.state.positionExact$;O(i,qe,we=>t(35,h=we));let Ve=te.state.isInteractive,ke=te.state.looped$;O(i,ke,we=>t(29,y=we));let Re=()=>{X.set(!1),le?.()},ze=(we,Ie)=>{if(!z||!G||!W)return;let Ke=z.getBoundingClientRect(),me=G.getBoundingClientRect();t(3,de=we-me.left),t(4,L=Ie-me.top),de+Ke.width>me.width&&t(3,de=me.width-Ke.width),L+Ke.height>me.height&&t(4,L=me.height-Ke.height),t(3,de=Math.max(de,0)),t(4,L=Math.max(L,0))},je=()=>{te.actions.internal.videoRotate()},Y=()=>{(0,Wo.isValidURL)(k)&&window.open(k,"_blank"),te.actions.internal.reportProblem(),te.actions.internal.pause()},fe=()=>{let we=te.actions.internal.getDebugTextData();if(re.features.saveDebugInfoToFile){let Ie=new Blob([...we],{type:"plain/text"}),Ke=window.URL.createObjectURL(Ie);No(Ke,"vk_player_debug_info","txt")}else _r(te.actions.internal.getDebugTextData())},Ze=()=>{let we=te.actions.internal.getTraceTextData(),Ie=new Blob([...we],{type:"application/json"}),Ke=window.URL.createObjectURL(Ie);No(Ke,"vk_player_trace_info","json")},_e=()=>{Pe.set(!0)},Ue=async()=>{try{ce()}finally{le?.()}},tt=()=>{te.actions.internal.setLooped(!y)},rt=()=>{if(l){let we=te.callbacks?.onCopyEmbedCodeClicked?.();we&&_r(we)}},Je=(we=!1)=>{if(te.callbacks?.onCopyVideoLink){let Ie=te.callbacks?.onCopyVideoLink(we,h);Ie&&_r(Ie)}},Ye=we=>{Ll(we,Re)},We=[];function J(we){Cn.call(this,i,we)}function He(we){be[we?"unshift":"push"](()=>{z=we,t(0,z)})}return i.$$set=we=>{"visible"in we&&t(1,T=we.visible),"supportLink"in we&&t(14,k=we.supportLink),"position"in we&&t(15,P=we.position),"playerContainerRef"in we&&t(16,G=we.playerContainerRef),"controlsContainerRef"in we&&t(17,W=we.controlsContainerRef),"menuElementRef"in we&&t(0,z=we.menuElementRef),"returnFocus"in we&&t(18,le=we.returnFocus)},i.$$.update=()=>{if(i.$$.dirty[0]&67108864|i.$$.dirty[1]&2&&t(25,o=n&&!F&&!Ve),i.$$.dirty[1]&1&&t(23,r=N&&w!==Rd.ChromecastState.CONNECTED&&!Ve),i.$$.dirty[0]&1073741824&&t(21,s=re.showSupport&&!C),i.$$.dirty[0]&229377&&z&&G&&W){let{top:we,left:Ie,bottom:Ke,right:me}=P,$=Ie??0,dt=we??0,mt=z.getBoundingClientRect();(0,Wo.isNullable)(Ie)&&!(0,Wo.isNullable)(me)&&($=me-mt.width),(0,Wo.isNullable)(we)&&!(0,Wo.isNullable)(Ke)&&(dt=Ke-mt.height),$=Math.max($,0),dt=Math.max(dt,0),ze($,dt)}i.$$.dirty[0]&1073217540&&(t(2,We=[]),n&&We.push({id:"copy-link",weight:Fn["copy-link"],label:U("menu_copy_video_link"),onClick:()=>Je()}),o&&We.push({id:"copy-link-timestamp",weight:Fn["copy-link-timestamp"],label:U("menu_copy_video_link_with_timestamp"),onClick:()=>Je(!0)}),l&&We.push({id:"copy-embed-code",weight:Fn["copy-embed-code"],label:U("menu_copy_embed_code"),onClick:rt}),r&&We.push({id:"pip",weight:Fn.pip,label:U("menu_pip"),onClick:Ue}),We.push({id:"video-loop",weight:Fn["video-loop"],label:y?U("menu_video_loop_off"):U("menu_video_loop_on"),ariaLabel:U("aria_label_menu_loop"),onClick:tt}),a&&We.push({id:"rotate",weight:Fn.rotate,label:U("menu_video_rotate"),ariaLabel:U("aria_label_menu_rotate"),onClick:je}),s&&We.push({id:"report",weight:Fn.report,label:U("menu_report"),ariaLabel:`${U("menu_report")}. ${U("aria_label_new_tab_alert")}`,onClick:Y}),We.push({id:"save-debug",weight:Fn["save-debug"],label:f,onClick:fe}),u&&We.push({id:"save-trace",weight:Fn["save-trace"],label:U("menu_save_debug"),onClick:Ze}),We.push({id:"debug-info",weight:Fn["debug-info"],label:U("menu_debug_overlay"),ariaLabel:g?U("aria_label_menu_debug_overlay_disable"):U("aria_label_menu_debug_overlay_enable"),onClick:_e}),t(2,We=[...We,...p].sort((we,Ie)=>we.weight-Ie.weight)))},t(26,n=re.features.copyVideoLink&&te.callbacks?.onCopyVideoLink),t(24,l=!!te.callbacks?.onCopyEmbedCodeClicked),t(22,a=re.features.videoRotate&&!Ve),t(19,u=re.features.saveTraceInfoToFile),t(20,f=re.features.saveDebugInfoToFile?U("menu_save_debug"):U("menu_copy_debug")),[z,T,We,de,L,Pe,q,K,oe,se,qe,ke,Re,Ye,k,P,G,W,le,u,f,s,a,r,l,o,n,p,g,y,C,w,F,J,He]}var ha=class extends B{constructor(e){super(),D(this,e,ph,mh,R,{visible:1,supportLink:14,position:15,playerContainerRef:16,controlsContainerRef:17,menuElementRef:0,returnFocus:18},dh,[-1,-1])}},Bd=ha;var Vl=class{constructor(e){this.value=e,this.next=null}};var vr=class{constructor(e){this.top=null,this.bottom=null,this.size=0,this.maxSize=e}push(e){let t=new Vl(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 _h(i){Ce(i,"svelte-1ssl9eb",".container.svelte-1ssl9eb{display:inline-block;width:120px;height:16px}canvas.svelte-1ssl9eb{transform:scale(1, -1);margin-top:2px}")}function gh(i){let e,t;return{c(){e=I("div"),t=I("canvas"),c(t,"class","svelte-1ssl9eb"),c(e,"class","container svelte-1ssl9eb")},m(n,o){v(n,e,o),_(e,t),i[3](t)},p:he,i:he,o:he,d(n){n&&b(e),i[3](null)}}}var ba=16,va=120,Dd=60;function hh(i,e,t,n,o){o===0&&(o=1),i.fillStyle="#fff",i.fillRect(e,t,n,o)}function bh(i,e,t){let{values:n=[]}=e,o,l,r=va/Dd;Et(()=>{t(0,o.width=va,o),t(0,o.height=ba,o),t(2,l=o.getContext("2d"))});function a(s){be[s?"unshift":"push"](()=>{o=s,t(0,o)})}return i.$$set=s=>{"values"in s&&t(1,n=s.values)},i.$$.update=()=>{if(i.$$.dirty&6){let s="";if(l){let u=n[0];for(let p=1;p<n.length;p++)n[p]>u&&(u=n[p]);l.clearRect(0,0,va,ba);let f=Dd-1;for(let p=n.length-1;p>=0;p--){let g=f*r,y=u>0?ba*(n[p]/u):0;hh(l,g,0,r,y),s=y+" "+s,f--}}}},[o,n,l,a]}var ya=class extends B{constructor(e){super(),D(this,e,bh,gh,R,{values:1},_h)}},Rl=ya;var ka=require("@vkontakte/videoplayer-shared");function vh(i){Ce(i,"svelte-k5ymwy",".container.svelte-k5ymwy.svelte-k5ymwy.svelte-k5ymwy{background:rgba(28, 28, 28, 0.8);border-radius:4px;color:#fff;left:20px;position:absolute;z-index:var(--debug-panel-z-index);top:45px;min-width:160px;font-size:10px;text-align:left}.container-mobile.svelte-k5ymwy.svelte-k5ymwy.svelte-k5ymwy{top:16px;left:16px}button.svelte-k5ymwy.svelte-k5ymwy.svelte-k5ymwy{position:absolute;right:5px;top:3px;cursor:pointer;outline:0;border:none;background-color:transparent;padding:0;color:#fff}.content.svelte-k5ymwy.svelte-k5ymwy.svelte-k5ymwy{padding:5px}.content.svelte-k5ymwy>div.svelte-k5ymwy>div.svelte-k5ymwy{display:inline-block;text-align:right;width:50px;padding:0 5px}")}function Nd(i){let e,t,n,o,l=i[0].id+"",r;return{c(){e=I("div"),t=I("div"),t.textContent="Video id",n=H(),o=I("span"),r=De(l),c(t,"class","svelte-k5ymwy"),c(e,"class","svelte-k5ymwy")},m(a,s){v(a,e,s),_(e,t),_(e,n),_(e,o),_(o,r)},p(a,s){s&1&&l!==(l=a[0].id+"")&&xe(r,l)},d(a){a&&b(e)}}}function Od(i){let e,t,n,o,l=i[0].vsid+"",r;return{c(){e=I("div"),t=I("div"),t.textContent="VSID",n=H(),o=I("span"),r=De(l),c(t,"class","svelte-k5ymwy"),c(e,"class","svelte-k5ymwy")},m(a,s){v(a,e,s),_(e,t),_(e,n),_(e,o),_(o,r)},p(a,s){s&1&&l!==(l=a[0].vsid+"")&&xe(r,l)},d(a){a&&b(e)}}}function Fd(i){let e,t,n,o,l=i[0].provider+"",r;return{c(){e=I("div"),t=I("div"),t.textContent="Provider",n=H(),o=I("span"),r=De(l),c(t,"class","svelte-k5ymwy"),c(e,"class","svelte-k5ymwy")},m(a,s){v(a,e,s),_(e,t),_(e,n),_(e,o),_(o,r)},p(a,s){s&1&&l!==(l=a[0].provider+"")&&xe(r,l)},d(a){a&&b(e)}}}function qd(i){let e,t,n,o,l,r=(i[0].videoCodec||"")+"",a,s,u=i[0].hdr?"(HDR)":"",f,p,g=(i[0].audioCodec||"")+"",y,h,C=i[0].audioLanguage?`(${i[0].audioLanguage})`:"",w;return{c(){e=I("div"),t=I("div"),t.textContent="Streams",n=H(),o=I("span"),l=De("Video: "),a=De(r),s=H(),f=De(u),p=De(`
25
25
  &
26
- Audio: `),y=Ne(g),h=H(),w=Ne(C),c(t,"class","svelte-k5ymwy"),c(e,"class","svelte-k5ymwy")},m(F,T){v(F,e,T),_(e,t),_(e,n),_(e,o),_(o,l),_(o,a),_(o,s),_(o,f),_(o,p),_(o,y),_(o,h),_(o,w)},p(F,T){T&1&&r!==(r=(F[0].videoCodec||"")+"")&&Ge(a,r),T&1&&u!==(u=F[0].hdr?"(HDR)":"")&&Ge(f,u),T&1&&g!==(g=(F[0].audioCodec||"")+"")&&Ge(y,g),T&1&&C!==(C=F[0].audioLanguage?`(${F[0].audioLanguage})`:"")&&Ge(w,C)},d(F){F&&b(e)}}}function qd(i){let e,t,n,o,l=i[0].viewport+"",r;return{c(){e=I("div"),t=I("div"),t.textContent="Viewport",n=H(),o=I("span"),r=Ne(l),c(t,"class","svelte-k5ymwy"),c(e,"class","svelte-k5ymwy")},m(a,s){v(a,e,s),_(e,t),_(e,n),_(e,o),_(o,r)},p(a,s){s&1&&l!==(l=a[0].viewport+"")&&Ge(r,l)},d(a){a&&b(e)}}}function Hd(i){let e,t,n,o,l=i[0].videoSize+"",r;return{c(){e=I("div"),t=I("div"),t.textContent="Video size",n=H(),o=I("span"),r=Ne(l),c(t,"class","svelte-k5ymwy"),c(e,"class","svelte-k5ymwy")},m(a,s){v(a,e,s),_(e,t),_(e,n),_(e,o),_(o,r)},p(a,s){s&1&&l!==(l=a[0].videoSize+"")&&Ge(r,l)},d(a){a&&b(e)}}}function zd(i){let e,t,n,o,l=i[0].cdn+"",r;return{c(){e=I("div"),t=I("div"),t.textContent="CDN host",n=H(),o=I("span"),r=Ne(l),c(t,"class","svelte-k5ymwy"),c(e,"class","svelte-k5ymwy")},m(a,s){v(a,e,s),_(e,t),_(e,n),_(e,o),_(o,r)},p(a,s){s&1&&l!==(l=a[0].cdn+"")&&Ge(r,l)},d(a){a&&b(e)}}}function Ud(i){let e,t,n,o,l=i[0].volume+"",r,a;return{c(){e=I("div"),t=I("div"),t.textContent="Volume",n=H(),o=I("span"),r=Ne(l),a=Ne(" %"),c(t,"class","svelte-k5ymwy"),c(e,"class","svelte-k5ymwy")},m(s,u){v(s,e,u),_(e,t),_(e,n),_(e,o),_(o,r),_(o,a)},p(s,u){u&1&&l!==(l=s[0].volume+"")&&Ge(r,l)},d(s){s&&b(e)}}}function Wd(i){let e,t,n,o,l=i[0].buffer.toFixed(2)+"",r,a;return{c(){e=I("div"),t=I("div"),t.textContent="Buffer",n=H(),o=I("span"),r=Ne(l),a=Ne(" s"),c(t,"class","svelte-k5ymwy"),c(e,"class","svelte-k5ymwy")},m(s,u){v(s,e,u),_(e,t),_(e,n),_(e,o),_(o,r),_(o,a)},p(s,u){u&1&&l!==(l=s[0].buffer.toFixed(2)+"")&&Ge(r,l)},d(s){s&&b(e)}}}function Kd(i){let e,t,n,o,l=[{value:i[0].currentVideoSegmentLength,title:"Video:"},{value:i[0].currentAudioSegmentLength,title:"Audio:"}].filter(xd).map(Yd).join(" & ")+"",r;return{c(){e=I("div"),t=I("div"),t.textContent="Segment",n=H(),o=I("span"),r=Ne(l),c(t,"class","svelte-k5ymwy"),c(e,"class","svelte-k5ymwy")},m(a,s){v(a,e,s),_(e,t),_(e,n),_(e,o),_(o,r)},p(a,s){s&1&&l!==(l=[{value:a[0].currentVideoSegmentLength,title:"Video:"},{value:a[0].currentAudioSegmentLength,title:"Audio:"}].filter(xd).map(Yd).join(" & ")+"")&&Ge(r,l)},d(a){a&&b(e)}}}function Gd(i){let e,t,n,o,l,r,a=i[0].speed.toFixed(2)+"",s,u,f;return o=new Rl({props:{values:i[5]}}),{c(){e=I("div"),t=I("div"),t.textContent="Network",n=H(),A(o.$$.fragment),l=H(),r=I("span"),s=Ne(a),u=Ne(" Kbps"),c(t,"class","svelte-k5ymwy"),c(e,"class","svelte-k5ymwy")},m(p,g){v(p,e,g),_(e,t),_(e,n),E(o,e,null),_(e,l),_(e,r),_(r,s),_(r,u),f=!0},p(p,g){let y={};g&32&&(y.values=p[5]),o.$set(y),(!f||g&1)&&a!==(a=p[0].speed.toFixed(2)+"")&&Ge(s,a)},i(p){f||(d(o.$$.fragment,p),f=!0)},o(p){m(o.$$.fragment,p),f=!1},d(p){p&&b(e),M(o)}}}function jd(i){let e,t,n,o,l,r,a=i[0].bitrate.toFixed(2)+"",s,u,f;return o=new Rl({props:{values:i[6]}}),{c(){e=I("div"),t=I("div"),t.textContent="V bitrate",n=H(),A(o.$$.fragment),l=H(),r=I("span"),s=Ne(a),u=Ne(" Kbps"),c(t,"class","svelte-k5ymwy"),c(e,"class","svelte-k5ymwy")},m(p,g){v(p,e,g),_(e,t),_(e,n),E(o,e,null),_(e,l),_(e,r),_(r,s),_(r,u),f=!0},p(p,g){let y={};g&64&&(y.values=p[6]),o.$set(y),(!f||g&1)&&a!==(a=p[0].bitrate.toFixed(2)+"")&&Ge(s,a)},i(p){f||(d(o.$$.fragment,p),f=!0)},o(p){m(o.$$.fragment,p),f=!1},d(p){p&&b(e),M(o)}}}function yh(i){let e,t,n,o,l,r,a,s,u=i[0].version+"",f,p,g,y,h,C,w,F,T,k,P,x,W,z,se,de,L,oe,re,X,Te,q,O,K,le,ee,ue,ze,Re,ke,Ve,Qe,tt,j,ae=i[0].id&&Dd(i),Ze=i[0].vsid&&Nd(i),_e=i[0].provider&&Od(i),Ue=(i[0].videoCodec||i[0].audioCodec)&&Fd(i),st=i[0].viewport&&qd(i),je=i[0].videoSize&&Hd(i),qe=i[0].cdn&&zd(i),Xe=i[0].volume&&Ud(i),Ye=i[0].buffer&&Wd(i),Q=(i[0].currentVideoSegmentLength||i[0].currentAudioSegmentLength)&&Kd(i),Be=i[0].speed&&Gd(i),Ie=i[0].bitrate&&jd(i);return ue=new Rl({props:{values:i[4]}}),{c(){e=I("div"),t=I("button"),t.textContent="[x]",n=H(),o=I("div"),l=I("div"),r=I("div"),r.textContent="Version",a=H(),s=I("span"),f=Ne(u),p=H(),ae&&ae.c(),g=H(),Ze&&Ze.c(),y=H(),_e&&_e.c(),h=H(),Ue&&Ue.c(),C=H(),st&&st.c(),w=H(),je&&je.c(),F=H(),qe&&qe.c(),T=H(),Xe&&Xe.c(),k=H(),Ye&&Ye.c(),P=H(),Q&&Q.c(),x=H(),W=I("div"),z=I("div"),z.textContent="Dropped",se=H(),de=I("span"),L=Ne(i[2]),oe=Ne(" / "),re=Ne(i[1]),X=Ne(" frames"),Te=H(),Be&&Be.c(),q=H(),Ie&&Ie.c(),O=H(),K=I("div"),le=I("div"),le.textContent="FPS",ee=H(),A(ue.$$.fragment),ze=H(),Re=I("span"),ke=Ne(i[3]),c(t,"class","close svelte-k5ymwy"),c(t,"title","\u0437\u0430\u043A\u0440\u044B\u0442\u044C"),c(r,"class","svelte-k5ymwy"),c(l,"class","svelte-k5ymwy"),c(z,"class","svelte-k5ymwy"),c(W,"class","svelte-k5ymwy"),c(le,"class","svelte-k5ymwy"),c(K,"class","svelte-k5ymwy"),c(o,"class","content svelte-k5ymwy"),c(e,"class","container svelte-k5ymwy"),c(e,"role","region"),c(e,"aria-label",Ve=U("aria_label_debug_panel")),G(e,"container-mobile",i[7])},m($,be){v($,e,be),_(e,t),_(e,n),_(e,o),_(o,l),_(l,r),_(l,a),_(l,s),_(s,f),_(o,p),ae&&ae.m(o,null),_(o,g),Ze&&Ze.m(o,null),_(o,y),_e&&_e.m(o,null),_(o,h),Ue&&Ue.m(o,null),_(o,C),st&&st.m(o,null),_(o,w),je&&je.m(o,null),_(o,F),qe&&qe.m(o,null),_(o,T),Xe&&Xe.m(o,null),_(o,k),Ye&&Ye.m(o,null),_(o,P),Q&&Q.m(o,null),_(o,x),_(o,W),_(W,z),_(W,se),_(W,de),_(de,L),_(de,oe),_(de,re),_(de,X),_(o,Te),Be&&Be.m(o,null),_(o,q),Ie&&Ie.m(o,null),_(o,O),_(o,K),_(K,le),_(K,ee),E(ue,K,null),_(K,ze),_(K,Re),_(Re,ke),Qe=!0,tt||(j=Pe(t,"click",mt(i[9])),tt=!0)},p($,[be]){(!Qe||be&1)&&u!==(u=$[0].version+"")&&Ge(f,u),$[0].id?ae?ae.p($,be):(ae=Dd($),ae.c(),ae.m(o,g)):ae&&(ae.d(1),ae=null),$[0].vsid?Ze?Ze.p($,be):(Ze=Nd($),Ze.c(),Ze.m(o,y)):Ze&&(Ze.d(1),Ze=null),$[0].provider?_e?_e.p($,be):(_e=Od($),_e.c(),_e.m(o,h)):_e&&(_e.d(1),_e=null),$[0].videoCodec||$[0].audioCodec?Ue?Ue.p($,be):(Ue=Fd($),Ue.c(),Ue.m(o,C)):Ue&&(Ue.d(1),Ue=null),$[0].viewport?st?st.p($,be):(st=qd($),st.c(),st.m(o,w)):st&&(st.d(1),st=null),$[0].videoSize?je?je.p($,be):(je=Hd($),je.c(),je.m(o,F)):je&&(je.d(1),je=null),$[0].cdn?qe?qe.p($,be):(qe=zd($),qe.c(),qe.m(o,T)):qe&&(qe.d(1),qe=null),$[0].volume?Xe?Xe.p($,be):(Xe=Ud($),Xe.c(),Xe.m(o,k)):Xe&&(Xe.d(1),Xe=null),$[0].buffer?Ye?Ye.p($,be):(Ye=Wd($),Ye.c(),Ye.m(o,P)):Ye&&(Ye.d(1),Ye=null),$[0].currentVideoSegmentLength||$[0].currentAudioSegmentLength?Q?Q.p($,be):(Q=Kd($),Q.c(),Q.m(o,x)):Q&&(Q.d(1),Q=null),(!Qe||be&4)&&Ge(L,$[2]),(!Qe||be&2)&&Ge(re,$[1]),$[0].speed?Be?(Be.p($,be),be&1&&d(Be,1)):(Be=Gd($),Be.c(),d(Be,1),Be.m(o,q)):Be&&(ce(),m(Be,1,1,()=>{Be=null}),fe()),$[0].bitrate?Ie?(Ie.p($,be),be&1&&d(Ie,1)):(Ie=jd($),Ie.c(),d(Ie,1),Ie.m(o,O)):Ie&&(ce(),m(Ie,1,1,()=>{Ie=null}),fe());let ot={};be&16&&(ot.values=$[4]),ue.$set(ot),(!Qe||be&8)&&Ge(ke,$[3]),(!Qe||be&128)&&G(e,"container-mobile",$[7])},i($){Qe||(d(Be),d(Ie),d(ue.$$.fragment,$),Qe=!0)},o($){m(Be),m(Ie),m(ue.$$.fragment,$),Qe=!1},d($){$&&b(e),ae&&ae.d(),Ze&&Ze.d(),_e&&_e.d(),Ue&&Ue.d(),st&&st.d(),je&&je.d(),qe&&qe.d(),Xe&&Xe.d(),Ye&&Ye.d(),Q&&Q.d(),Be&&Be.d(),Ie&&Ie.d(),M(ue),tt=!1,j()}}}var xd=({value:i})=>i,Yd=({value:i,title:e})=>`${e} ${((i??0)/1e3).toFixed(2)} s`;function kh(i,e,t){let n,o=nt(),l=o.ui.debugPanelVisible,r=o.ui.isMobile;N(i,r,k=>t(7,n=k));let a=()=>{ya.safeStorage.remove(Wr),l.set(!1)},s=o.actions.internal.getDebugPanelData(),u=o.actions.internal.getVideoElement(),f=0,p=0,g=0,y=new Cr(60),h=new Cr(60),C=new Cr(60),w=[],F=[],T=[];return It(()=>{ya.safeStorage.set(Wr,"true"),o.actions.internal.startLogging(),u&&(t(2,p=u.getVideoPlaybackQuality().droppedVideoFrames),t(1,f=u.getVideoPlaybackQuality().totalVideoFrames));let k=window.setInterval(()=>{t(0,s=o.actions.internal.getDebugPanelData())},500),P;return u&&(P=window.setInterval(()=>{if(u){t(2,p=u.getVideoPlaybackQuality().droppedVideoFrames);let x=u.getVideoPlaybackQuality().totalVideoFrames;t(3,g=x-f),t(1,f=x),y.push(g),s.speed&&h.push(s.speed),s.bitrate&&C.push(s.bitrate),t(4,w=y.getValuesFromBottom()),t(5,F=h.getValuesFromBottom()),t(6,T=C.getValuesFromBottom())}},1e3)),()=>{o.actions.internal.stopLogging(),clearInterval(k),P&&clearInterval(P)}}),[s,f,p,g,w,F,T,n,r,a]}var ka=class extends B{constructor(e){super(),D(this,e,kh,yh,R,{},vh)}},Bl=ka;function wh(i){Ce(i,"svelte-1ome55p",".close.svelte-1ome55p{cursor:pointer;opacity:0.8;transition:opacity 0.2s;position:relative;width:16px;height:16px}.close.svelte-1ome55p:hover{opacity:1}.close.svelte-1ome55p:before,.close.svelte-1ome55p:after{position:absolute;left:8px;content:' ';height:16px;width:2px;background-color:var(--white)}.close.svelte-1ome55p:before{transform:rotate(45deg)}.close.svelte-1ome55p:after{transform:rotate(-45deg)}")}function Ch(i){let e,t,n;return{c(){e=I("div"),c(e,"class","close svelte-1ome55p")},m(o,l){v(o,e,l),t||(n=Pe(e,"click",mt(i[0])),t=!0)},p:ge,i:ge,o:ge,d(o){o&&b(e),t=!1,n()}}}function Sh(i){function e(t){Cn.call(this,i,t)}return[e]}var wa=class extends B{constructor(e){super(),D(this,e,Sh,Ch,R,{},wh)}},Qd=wa;var Zd=require("@vkontakte/videoplayer-shared");function Ih(i){Ce(i,"svelte-8jhsry",`.timer.svelte-8jhsry{border-radius:50%;transition:background .2s;background:rgba(31, 31, 31, .65);width:50px;height:50px;display:flex;align-items:center;justify-content:space-around}.timer.svelte-8jhsry:hover{background:rgba(31, 31, 31, .85)
27
- }.timer-canvas.svelte-8jhsry{width:50px;height:50px;position:absolute}.timer-play-icon.svelte-8jhsry{width:22px;height:26px}`)}function Th(i){let e,t,n,o,l,r,a;return{c(){e=I("div"),t=I("canvas"),n=H(),o=V("svg"),l=V("g"),r=V("g"),a=V("path"),c(t,"class","timer-canvas svelte-8jhsry"),c(t,"width","100"),c(t,"height","100"),c(a,"class","_play"),c(a,"d","m8.13340613 5.10548415 10.49681277 6.24354325c.3559987.2117494.472936.6720001.2611866 1.0279989-.0638111.1072809-.1533894.1969388-.2606135.2608453l-10.4968128 6.256187c-.35581027.2120659-.81616483.095538-1.02823068-.2602722-.06921066-.1161237-.10574852-.2487949-.10574852-.3839792v-12.49973035c0-.41421357.33578644-.75.75-.75.13495801 0 .26741554.03641567.38340613.1054073z"),c(a,"fill","#fff"),c(r,"fill-rule","nonzero"),c(l,"fill","none"),c(l,"fill-rule","evenodd"),c(o,"class","timer-play-icon svelte-8jhsry"),c(o,"viewBox","0 0 24 24"),c(o,"xmlns","http://www.w3.org/2000/svg"),c(e,"class","timer svelte-8jhsry")},m(s,u){v(s,e,u),_(e,t),i[2](t),_(e,n),_(e,o),_(o,l),_(l,r),_(r,a)},p:ge,i:ge,o:ge,d(s){s&&b(e),i[2](null)}}}var Ph=5e3;function Eh(i,e,t){let{onTimerEnded:n=Zd.noop}=e,o;It(()=>{let r,a=o.getContext("2d");if(!a)return;a.lineWidth=6,a.lineCap="round",a.strokeStyle="#fff";let s=Date.now(),u=()=>{let f=(Date.now()-s)/Ph;f<1?(a.clearRect(0,0,100,100),a.beginPath(),a.arc(50,50,47,-Math.PI/2,-Math.PI/2+Math.PI*2*f),a.stroke(),r=requestAnimationFrame(u)):n()};return r=requestAnimationFrame(u),()=>{cancelAnimationFrame(r)}});function l(r){he[r?"unshift":"push"](()=>{o=r,t(0,o)})}return i.$$set=r=>{"onTimerEnded"in r&&t(1,n=r.onTimerEnded)},[o,n,l]}var Ca=class extends B{constructor(e){super(),D(this,e,Eh,Th,R,{onTimerEnded:1},Ih)}},Xd=Ca;function Mh(i){Ce(i,"svelte-kisfwc",".overlay.svelte-kisfwc{width:100%;height:100%;background:rgba(0, 0, 0, 0.72);position:absolute}.next-video.svelte-kisfwc{position:absolute;top:50%;left:50%;transform:translate(-50%, -50%);display:flex;width:362px;flex-direction:column}.top.svelte-kisfwc{display:flex;justify-content:space-between}.caption.svelte-kisfwc{font-size:11px;font-weight:bold;color:var(--white);text-transform:uppercase;opacity:0.8}.row.svelte-kisfwc{height:102px;background:rgba(48, 48, 48, .8);cursor:pointer;margin-top:6px;display:flex;flex-direction:row;flex-wrap:wrap;width:100%}.column.svelte-kisfwc{display:flex;flex-direction:column;flex-basis:50%}.thumb.svelte-kisfwc{width:100%;height:100%;background:no-repeat center;background-size:cover;display:flex;align-items:center;position:relative;justify-content:space-around}.thumb-overlay.svelte-kisfwc{width:100%;height:100%;background:var(--black);opacity:0.3;position:absolute}.title.svelte-kisfwc{padding:10px 16px;font-size:12px;font-weight:bold;color:var(--white);line-height:1.6;max-height:52px;overflow:hidden}")}function Jd(i){let e,t;return e=new Xd({props:{onTimerEnded:i[2]}}),{c(){A(e.$$.fragment)},m(n,o){E(e,n,o),t=!0},p(n,o){let l={};o&4&&(l.onTimerEnded=n[2]),e.$set(l)},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){m(e.$$.fragment,n),t=!1},d(n){M(e,n)}}}function Ah(i){let e,t,n,o,l,r,a,s,u,f,p,g,y,h,C,w,F,T,k,P,x;a=new Qd({}),a.$on("click",i[4]);let W=i[3]&&Jd(i);return{c(){e=I("div"),t=H(),n=I("div"),o=I("div"),l=I("div"),l.textContent="\u0441\u043B\u0435\u0434\u0443\u044E\u0449\u0435\u0435 \u0432\u0438\u0434\u0435\u043E",r=H(),A(a.$$.fragment),s=H(),u=I("div"),f=I("div"),p=I("div"),g=I("div"),y=H(),W&&W.c(),C=H(),w=I("div"),F=I("div"),T=Ne(i[0]),c(e,"class","overlay svelte-kisfwc"),c(l,"class","caption svelte-kisfwc"),c(o,"class","top svelte-kisfwc"),c(g,"class","thumb-overlay svelte-kisfwc"),c(p,"class","thumb svelte-kisfwc"),c(p,"style",h=`background-image: url('${i[1]}')`),c(f,"class","column svelte-kisfwc"),c(F,"class","title svelte-kisfwc"),c(w,"class","column svelte-kisfwc"),c(u,"class","row svelte-kisfwc"),c(n,"class","next-video svelte-kisfwc")},m(z,se){v(z,e,se),v(z,t,se),v(z,n,se),_(n,o),_(o,l),_(o,r),E(a,o,null),_(n,s),_(n,u),_(u,f),_(f,p),_(p,g),_(p,y),W&&W.m(p,null),_(u,C),_(u,w),_(w,F),_(F,T),k=!0,P||(x=Pe(u,"click",function(){Wt(i[2])&&i[2].apply(this,arguments)}),P=!0)},p(z,[se]){i=z,i[3]?W?(W.p(i,se),se&8&&d(W,1)):(W=Jd(i),W.c(),d(W,1),W.m(p,null)):W&&(ce(),m(W,1,1,()=>{W=null}),fe()),(!k||se&2&&h!==(h=`background-image: url('${i[1]}')`))&&c(p,"style",h),(!k||se&1)&&Ge(T,i[0])},i(z){k||(d(a.$$.fragment,z),d(W),k=!0)},o(z){m(a.$$.fragment,z),m(W),k=!1},d(z){z&&(b(e),b(t),b(n)),M(a),W&&W.d(),P=!1,x()}}}function Lh(i,e,t){let{title:n}=e,{thumb:o}=e,{playNextVideo:l}=e,r=!0,a=()=>t(3,r=!1);return i.$$set=s=>{"title"in s&&t(0,n=s.title),"thumb"in s&&t(1,o=s.thumb),"playNextVideo"in s&&t(2,l=s.playNextVideo)},[n,o,l,r,a]}var Sa=class extends B{constructor(e){super(),D(this,e,Lh,Ah,R,{title:0,thumb:1,playNextVideo:2},Mh)}},$d=Sa;var wo=require("@vkontakte/videoplayer-core"),e1=require("@vkontakte/videoplayer-shared"),Xi=require("@vkontakte/videoplayer-statistics");var Ia=(i,e)=>Math.min(+(i+e).toFixed(2),1),Ta=(i,e)=>Math.max(+(i-e).toFixed(2),0),Dl=(i,e,t)=>{let n=Ia(e,t);e<1&&i.actions.internal.setVolume(n)},Nl=(i,e,t)=>{let n=Ta(e,t);e>0&&i.actions.internal.setVolume(n)};var ko=({isAudioDisabled:i,audioDisabledHintCallback:e,isAudioAvailable:t,audioIsNotExistHintCallback:n})=>i?(e?.(),!1):t?!0:(n?.(),!1);function Rh(i){Ce(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,l,r=i[26].default,a=Ee(r,i,i[25],null);return{c(){e=I("div"),a&&a.c(),c(e,"class","keyboard-controls svelte-10kkmxz"),c(e,"tabindex","-1"),c(e,"role","region"),c(e,"aria-label",t=U("aria_label_video_player"))},m(s,u){v(s,e,u),a&&a.m(e,null),i[27](e),n=!0,o||(l=[Pe(e,"keyup",i[17]),Pe(e,"keydown",i[16])],o=!0)},p(s,u){a&&a.p&&(!n||u[0]&33554432)&&Ae(a,r,s,s[25],n?Me(r,s[25],u,null):Le(s[25]),null)},i(s){n||(d(a,s),n=!0)},o(s){m(a,s),n=!1},d(s){s&&b(e),a&&a.d(s),i[27](null),o=!1,at(l)}}}function Dh(i,e,t){let n,o,l,r,a,s,u,f,p,g,y,h,C,w,F,{$$slots:T={},$$scope:k}=e,{isAds:P}=e,{hideContextMenu:x}=e,{toggleFullscreen:W}=e,{showHotKeyHelpers:z}=e,{showKeyMap:se}=e,{fakePlayButtonHandler:de}=e,L=nt(),oe=Bt(),re=L.getLogger().createComponentLog("KeyboardControls component"),X=L.state.playbackState$;N(i,X,me=>t(31,o=me));let Te=L.ads.playbackState;N(i,Te,me=>t(30,n=me));let q=L.state.positionExact$;N(i,q,me=>t(41,h=me));let O=L.state.duration$;N(i,O,me=>t(40,y=me));let K=L.state.volume$;N(i,K,me=>t(44,F=me));let le=L.ui.controls.disabledControls$;N(i,le,me=>t(39,g=me));let ee=L.state.muted$;N(i,ee,me=>t(34,a=me));let ue=L.state.currentSubtitle$;N(i,ue,me=>t(33,r=me));let ze=L.state.currentPlaybackRate$;N(i,ze,me=>t(42,C=me));let Re=L.state.availablePlaybackRates$;N(i,Re,me=>t(43,w=me));let ke=L.ui.contextMenu.openedByHotKey$,Ve=L.ui.contextMenu.lastActiveElem$,Qe=L.ui.contextMenu.visible$,tt=L.ui.contextMenu.position$,j=L.state.isEnded$;N(i,j,me=>t(36,u=me));let ae=L.ui.overlayContainer$;N(i,ae,me=>t(32,l=me));let Ze=L.callbacks?.onAudioDoesNotExistHint,_e=L.callbacks?.onAudioDisabledHint,Ue=L.state.isAudioAvailable$;N(i,Ue,me=>t(35,s=me));let st=L.state.isAudioDisabled,je=L.state.isInteractiveTime$;N(i,je,me=>t(38,p=me));let{showInteractiveTimeIndicatorTooltip$:qe}=Mn();N(i,qe,me=>t(37,f=me));let Xe=0,Ye=!0,Q,Be=()=>Q?.focus(),Ie=me=>(me!==Ye&&(Ye=me,Xe=0),Xe+=1,(oe.controls.seekStepKeyboard+oe.controls.seekStepKeyboard*Xe)/1e3),$=me=>{let _t=me.target,We=_t?.getAttribute("role")?.includes("menuitem"),ut=_t.classList.contains("btn"),Tt=me.code;if(ut&&Tt==="Space")return;let At=Ef.has(Tt);if(We&&At)return;let Lt=!Pf.has(Tt);if(me.ctrlKey&&Lt||me.altKey&&Lt||me.metaKey)return;let et=We&&Tt==="Escape";Mf.has(Tt)||et||x();let Pt=o===wo.PlaybackState.PLAYING||o===wo.PlaybackState.PAUSED,Dt=P&&(n==="paused"||n==="playing"),ci=!Dt&&!g.has("TIMELINE");if(Pt||Dt)switch(re({message:`key down, code: ${Tt}`}),Tt){case"KeyJ":case"ArrowLeft":{if(!ci)break;if(me.ctrlKey||me.altKey){let lt=L.actions.internal.getPrevEpisode();L.actions.internal.seekToPrevEpisode(lt),lt&&z({type:"EPISODE_PREV",text:lt.text}),me.preventDefault()}else{let lt=me.shiftKey?Ie(!1):oe.controls.seekStepKeyboard/1e3,yt=Math.max(h-lt,0);h>0&&(L.actions.internal.seekTime(yt,Xi.SeekAction.DOUBLE_TAP),z({type:"BACKWARD_SEEK",text:lt.toString()}),me.preventDefault())}break}case"KeyL":case"ArrowRight":{if(!ci)break;if(me.ctrlKey||me.altKey){let lt=L.actions.internal.getNextEpisode();L.actions.internal.seekToNextEpisode(lt),lt&&z({type:"EPISODE_NEXT",text:lt.text}),me.preventDefault()}else{let lt=me.shiftKey?Ie(!0):oe.controls.seekStepKeyboard/1e3,yt=Math.min(h+lt,y);Math.round(h)<Math.round(y)&&(L.actions.internal.seekTime(yt,Xi.SeekAction.DOUBLE_TAP),z({type:"FORWARD_SEEK",text:lt.toString()}),me.preventDefault())}break}case"ArrowUp":{if(ko({isAudioDisabled:st,audioDisabledHintCallback:_e,isAudioAvailable:s,audioIsNotExistHintCallback:Ze})){let lt=F,yt=oe.controls.volumeStepKeyboard,we=lt<=1;if(Dl(L,lt,yt),we){let bt=Math.round(Ia(lt,yt)*100).toString();z({type:"VOLUME",t:{key:"hotkey_helper_current_volume",value:bt}})}}me.preventDefault();break}case"ArrowDown":{if(ko({isAudioDisabled:st,audioDisabledHintCallback:_e,isAudioAvailable:s,audioIsNotExistHintCallback:Ze})){let lt=F,yt=oe.controls.volumeStepKeyboard,we=lt>=0;if(Nl(L,lt,yt),we){let bt=Math.round(Ta(lt,yt)*100).toString();z({type:"VOLUME",t:{key:"hotkey_helper_current_volume",value:bt}})}}me.preventDefault();break}case"Comma":{if(me.shiftKey){L.actions.internal.decrementPlaybackRate();let lt=w.find(yt=>yt.value===C);z({type:"RATE_DOWN",text:lt?.displayValue}),me.preventDefault()}else{if(Dt||o!==wo.PlaybackState.PAUSED)break;let lt=Math.max(h-oe.controls.seekStepFrame/1e3,0);h>0&&(z({type:"BACKWARD_SEEK"}),L.actions.internal.clearDelayedBufferingCheckTimeout(),L.actions.internal.seekTime(lt,Xi.SeekAction.DOUBLE_TAP),me.preventDefault())}break}case"Period":{if(me.shiftKey){L.actions.internal.incrementPlaybackRate();let lt=w.find(yt=>yt.value===C);z({type:"RATE_UP",text:lt?.displayValue}),me.preventDefault()}else{if(Dt||o!==wo.PlaybackState.PAUSED)break;let lt=Math.min(h+oe.controls.seekStepFrame/1e3,y);h<y&&(z({type:"FORWARD_SEEK"}),L.actions.internal.clearDelayedBufferingCheckTimeout(),L.actions.internal.seekTime(lt,Xi.SeekAction.DOUBLE_TAP),me.preventDefault())}break}case"KeyK":case"Space":if(!g.has("PLAY_BUTTON"))if(p&&f&&qe.set(!1),de)de();else{L.actions.internal.togglePlay();let lt="PLAY";o===wo.PlaybackState.PAUSED?lt="PAUSE":u&&(lt="REPLAY"),z({type:lt})}me.preventDefault();break;case"KeyM":{ko({isAudioDisabled:st,audioDisabledHintCallback:_e,isAudioAvailable:s,audioIsNotExistHintCallback:Ze})&&(z({type:a?"VOLUME":"MUTE"}),L.actions.internal.toggleMuted()),me.preventDefault();break}case"KeyF":W(),me.preventDefault();break;case"KeyC":L.actions.internal.toggleSubtitle(),r.value!=="off"?z({type:"SUBTITLES_ON",text:r?.displayValue}):z({type:"SUBTITLES_OFF"}),me.preventDefault();break;case"KeyI":L.actions.internal.togglePictureInPicture(),me.preventDefault();break;case"Digit1":case"Numpad1":if(me.shiftKey){let lt=Pd(l);tt.set(lt),Ve.set(_t),ke.set(!0),Qe.set(!0),me.preventDefault();break}z(),L.actions.internal.seekToPercent(.1,Xi.SeekAction.DOUBLE_TAP),me.preventDefault();break;case"Digit2":case"Numpad2":z(),L.actions.internal.seekToPercent(.2,Xi.SeekAction.DOUBLE_TAP),me.preventDefault();break;case"Digit3":case"Numpad3":z(),L.actions.internal.seekToPercent(.3,Xi.SeekAction.DOUBLE_TAP),me.preventDefault();break;case"Digit4":case"Numpad4":z(),L.actions.internal.seekToPercent(.4,Xi.SeekAction.DOUBLE_TAP),me.preventDefault();break;case"Digit5":case"Numpad5":z(),L.actions.internal.seekToPercent(.5,Xi.SeekAction.DOUBLE_TAP),me.preventDefault();break;case"Digit6":case"Numpad6":z(),L.actions.internal.seekToPercent(.6,Xi.SeekAction.DOUBLE_TAP),me.preventDefault();break;case"Digit7":case"Numpad7":z(),L.actions.internal.seekToPercent(.7,Xi.SeekAction.DOUBLE_TAP),me.preventDefault();break;case"Digit8":case"Numpad8":z(),L.actions.internal.seekToPercent(.8,Xi.SeekAction.DOUBLE_TAP),me.preventDefault();break;case"Digit9":case"Numpad9":z(),L.actions.internal.seekToPercent(.9,Xi.SeekAction.DOUBLE_TAP),me.preventDefault();break;case"Digit0":case"Numpad0":z(),L.actions.internal.seekToPercent(0,Xi.SeekAction.DOUBLE_TAP),me.preventDefault();break;case"Slash":{me.shiftKey&&oe.features.hotKeyMapModal&&(se(),me.preventDefault());break}case"ShiftLeft":case"ShiftRight":me.preventDefault();break;case"Tab":case"Escape":case"Enter":break;default:(0,e1.checkNever)(Tt);break}},be=me=>{let _t=me.code;if(me.ctrlKey||me.altKey||me.metaKey)return;let We=o===wo.PlaybackState.PLAYING||o===wo.PlaybackState.PAUSED,ut=P&&(n==="paused"||n==="playing");if(We||ut)switch(_t){case"ShiftLeft":case"ShiftRight":Xe=0;break}};function ot(me){he[me?"unshift":"push"](()=>{Q=me,t(0,Q)})}return i.$$set=me=>{"isAds"in me&&t(18,P=me.isAds),"hideContextMenu"in me&&t(19,x=me.hideContextMenu),"toggleFullscreen"in me&&t(20,W=me.toggleFullscreen),"showHotKeyHelpers"in me&&t(21,z=me.showHotKeyHelpers),"showKeyMap"in me&&t(22,se=me.showKeyMap),"fakePlayButtonHandler"in me&&t(23,de=me.fakePlayButtonHandler),"$$scope"in me&&t(25,k=me.$$scope)},[Q,X,Te,q,O,K,le,ee,ue,ze,Re,j,ae,Ue,je,qe,$,be,P,x,W,z,se,de,Be,k,T,ot]}var Pa=class extends B{constructor(e){super(),D(this,e,Dh,Bh,R,{isAds:18,hideContextMenu:19,toggleFullscreen:20,showHotKeyHelpers:21,showKeyMap:22,fakePlayButtonHandler:23,focus:24},Rh,[-1,-1])}get focus(){return this.$$.ctx[24]}},t1=Pa;function Nh(i){Ce(i,"svelte-8nkw5s",".container.svelte-8nkw5s.svelte-8nkw5s{position:absolute;top:50%;left:50%;transform:translate(-50%, -50%);pointer-events:none;display:flex}.dot.svelte-8nkw5s.svelte-8nkw5s:nth-child(1){animation-delay:calc(0 * 180ms)}.dot.svelte-8nkw5s.svelte-8nkw5s:nth-child(2){animation-delay:calc(1 * 180ms)}.dot.svelte-8nkw5s.svelte-8nkw5s:nth-child(3){animation-delay:calc(2 * 180ms)}@keyframes svelte-8nkw5s-dot_animation{0%{opacity:0.2}30%{opacity:1}100%{opacity:0.2}}.dot.svelte-8nkw5s.svelte-8nkw5s{border-radius:4px;width:8px;height:8px;background:var(--white);animation-duration:750ms;animation-name:svelte-8nkw5s-dot_animation;animation-iteration-count:infinite}.dot.svelte-8nkw5s+.dot.svelte-8nkw5s{margin-left:4px}")}function Oh(i){let e,t,n,o,l,r;return{c(){e=I("div"),t=I("div"),n=H(),o=I("div"),l=H(),r=I("div"),c(t,"class","dot svelte-8nkw5s"),c(o,"class","dot svelte-8nkw5s"),c(r,"class","dot svelte-8nkw5s"),c(e,"class","container svelte-8nkw5s"),c(e,"style",i[0])},m(a,s){v(a,e,s),_(e,t),_(e,n),_(e,o),_(e,l),_(e,r)},p(a,[s]){s&1&&c(e,"style",a[0])},i:ge,o:ge,d(a){a&&b(e)}}}function Fh(i,e,t){let{style:n=""}=e;return i.$$set=o=>{"style"in o&&t(0,n=o.style)},[n]}var Ea=class extends B{constructor(e){super(),D(this,e,Fh,Oh,R,{style:0},Nh)}},Sr=Ea;function qh(i){let e,t,n,o,l,r,a,s,u,f,p,g,y,h,C=i[2].default,w=Ee(C,i,i[1],null),F=[{xmlns:"http://www.w3.org/2000/svg"},{width:"24"},{height:"24"},{fill:"none"},{"aria-hidden":"true"},{"data-testid":"cross-icon"},{role:"img"},i[0]],T={};for(let k=0;k<F.length;k+=1)T=ne(T,F[k]);return{c(){e=V("svg"),w&&w.c(),t=V("g"),n=V("path"),o=V("path"),l=V("defs"),r=V("filter"),a=V("feFlood"),s=V("feColorMatrix"),u=V("feOffset"),f=V("feGaussianBlur"),p=V("feColorMatrix"),g=V("feBlend"),y=V("feBlend"),c(n,"fill","#fff"),c(n,"d","M7.536 6.264a.9.9 0 0 0-1.272 1.272L10.727 12l-4.463 4.464a.9.9 0 0 0 1.272 1.272L12 13.273l4.464 4.463a.9.9 0 1 0 1.272-1.272L13.273 12l4.463-4.464a.9.9 0 1 0-1.272-1.272L12 10.727z"),c(o,"stroke","#000"),c(o,"stroke-opacity",".12"),c(o,"stroke-width",".5"),c(o,"d","M7.713 6.087a1.15 1.15 0 1 0-1.626 1.626L10.374 12l-4.287 4.287a1.15 1.15 0 0 0 1.626 1.626L12 13.626l4.287 4.287a1.15 1.15 0 0 0 1.626-1.626L13.626 12l4.287-4.287a1.15 1.15 0 1 0-1.626-1.626L12 10.374z"),c(t,"filter","url(#a)"),c(a,"flood-opacity","0"),c(a,"result","BackgroundImageFix"),c(s,"in","SourceAlpha"),c(s,"result","hardAlpha"),c(s,"values","0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0"),c(f,"stdDeviation","2.5"),c(p,"values","0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.16 0"),c(g,"in2","BackgroundImageFix"),c(g,"result","effect1_dropShadow_2422_111980"),c(y,"in","SourceGraphic"),c(y,"in2","effect1_dropShadow_2422_111980"),c(y,"result","shape"),c(r,"id","a"),c(r,"width","23"),c(r,"height","23"),c(r,"x",".5"),c(r,"y",".5"),c(r,"color-interpolation-filters","sRGB"),c(r,"filterUnits","userSpaceOnUse"),ye(e,T)},m(k,P){v(k,e,P),w&&w.m(e,null),_(e,t),_(t,n),_(t,o),_(e,l),_(l,r),_(r,a),_(r,s),_(r,u),_(r,f),_(r,p),_(r,g),_(r,y),h=!0},p(k,[P]){w&&w.p&&(!h||P&2)&&Ae(w,C,k,k[1],h?Me(C,k[1],P,null):Le(k[1]),null),ye(e,T=De(F,[{xmlns:"http://www.w3.org/2000/svg"},{width:"24"},{height:"24"},{fill:"none"},{"aria-hidden":"true"},{"data-testid":"cross-icon"},{role:"img"},P&1&&k[0]]))},i(k){h||(d(w,k),h=!0)},o(k){m(w,k),h=!1},d(k){k&&b(e),w&&w.d(k)}}}function Hh(i,e,t){let{$$slots:n={},$$scope:o}=e;return i.$$set=l=>{t(0,e=ne(ne({},e),ve(l))),"$$scope"in l&&t(1,o=l.$$scope)},e=ve(e),[e,o,n]}var Ma=class extends B{constructor(e){super(),D(this,e,Hh,qh,R,{})}},i1=Ma;var $n=require("@vkontakte/videoplayer-shared");function zh(i){Ce(i,"svelte-1anemql",".btn.svelte-1anemql{padding:8px;margin:0;height:var(--controls-height);display:flex;flex-direction:row;align-items:center}.w-max.svelte-1anemql{width:100%}.btn--live.svelte-1anemql{padding:10px 4px}.btn-m.svelte-1anemql{position:absolute;left:12px;top:50%;transform:translateY(-50%);height:44px;width:44px;border-radius:12px;background-color:rgba(0, 0, 0, 0.56);transition:opacity var(--controls-transition-duration);display:flex;align-items:center;justify-content:center}.btn-m--play.svelte-1anemql{width:var(--big-play-size);height:var(--big-play-size);display:flex;align-items:center;justify-content:center;position:relative;padding:16px}.btn.svelte-1anemql:disabled{cursor:default;pointer-events:none}.btn.svelte-1anemql:not(.btn-full-opacity):disabled{opacity:0.4}.btn.svelte-1anemql:not(:disabled):hover{opacity:0.8}.pr-0.svelte-1anemql{padding-right:0}.pl-0.svelte-1anemql{padding-left:0}")}function Uh(i){let e,t,n,o,l,r,a,s,u,f,p,g,y=i[14].default,h=Ee(y,i,i[13],null);return{c(){e=I("button"),h&&h.c(),c(e,"class",t="btn "+i[1]+" svelte-1anemql"),c(e,"style",n=i[2]||null),e.disabled=o=i[3]??null,c(e,"aria-hidden",l=i[5]??null),c(e,"aria-label",r=i[6]??null),c(e,"aria-keyshortcuts",a=i[7]??null),c(e,"aria-expanded",s=i[8]??null),c(e,"data-testid",u=i[4]??null),c(e,"tabindex",i[9])},m(C,w){v(C,e,w),h&&h.m(e,null),i[16](e),f=!0,p||(g=[Pe(e,"pointerdown",mt(i[15])),Pe(e,"click",mt(function(){Wt(i[10]===$n.noop?null:i[10])&&(i[10]===$n.noop?null:i[10]).apply(this,arguments)})),Pe(e,"focus",Gt(function(){Wt(i[11]===$n.noop?null:i[11])&&(i[11]===$n.noop?null:i[11]).apply(this,arguments)})),Pe(e,"blur",Gt(function(){Wt(i[12]===$n.noop?null:i[12])&&(i[12]===$n.noop?null:i[12]).apply(this,arguments)}))],p=!0)},p(C,[w]){i=C,h&&h.p&&(!f||w&8192)&&Ae(h,y,i,i[13],f?Me(y,i[13],w,null):Le(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=i[3]??null))&&(e.disabled=o),(!f||w&32&&l!==(l=i[5]??null))&&c(e,"aria-hidden",l),(!f||w&64&&r!==(r=i[6]??null))&&c(e,"aria-label",r),(!f||w&128&&a!==(a=i[7]??null))&&c(e,"aria-keyshortcuts",a),(!f||w&256&&s!==(s=i[8]??null))&&c(e,"aria-expanded",s),(!f||w&16&&u!==(u=i[4]??null))&&c(e,"data-testid",u),(!f||w&512)&&c(e,"tabindex",i[9])},i(C){f||(d(h,C),f=!0)},o(C){m(h,C),f=!1},d(C){C&&b(e),h&&h.d(C),i[16](null),p=!1,at(g)}}}function Wh(i,e,t){let{$$slots:n={},$$scope:o}=e,{className:l=""}=e,{style:r=""}=e,{disabled:a=void 0}=e,{testId:s=void 0}=e,{ariaHidden:u=void 0}=e,{ariaLabel:f=void 0}=e,{ref:p=void 0}=e,{ariaKeyShortCut:g=void 0}=e,{ariaExpanded:y=void 0}=e,{tabIndex:h=0}=e,{click:C=$n.noop}=e,{focus:w=$n.noop}=e,{blur:F=$n.noop}=e;function T(P){Cn.call(this,i,P)}function k(P){he[P?"unshift":"push"](()=>{p=P,t(0,p)})}return i.$$set=P=>{"className"in P&&t(1,l=P.className),"style"in P&&t(2,r=P.style),"disabled"in P&&t(3,a=P.disabled),"testId"in P&&t(4,s=P.testId),"ariaHidden"in P&&t(5,u=P.ariaHidden),"ariaLabel"in P&&t(6,f=P.ariaLabel),"ref"in P&&t(0,p=P.ref),"ariaKeyShortCut"in P&&t(7,g=P.ariaKeyShortCut),"ariaExpanded"in P&&t(8,y=P.ariaExpanded),"tabIndex"in P&&t(9,h=P.tabIndex),"click"in P&&t(10,C=P.click),"focus"in P&&t(11,w=P.focus),"blur"in P&&t(12,F=P.blur),"$$scope"in P&&t(13,o=P.$$scope)},[p,l,r,a,s,u,f,g,y,h,C,w,F,o,n,T,k]}var Aa=class extends B{constructor(e){super(),D(this,e,Wh,Uh,R,{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},zh)}},pt=Aa;function Kh(i){Ce(i,"svelte-1witlsj",".modal-overlay.svelte-1witlsj{position:absolute;top:0;bottom:0;left:0;right:0;background:transparent;display:flex;align-items:center;justify-content:center}.modal-container.svelte-1witlsj{display:flex;flex-direction:column;width:calc(100% - 32px);max-width:600px;height:calc(100% - 24px);max-height:490px;background:var(--mobile-settings-bg);color:var(--white);border-radius:8px}.modal-header.svelte-1witlsj{box-sizing:border-box;display:flex;justify-content:space-between;align-items:start;height:40px;padding:8px 10px;border-bottom:1px solid var(--white-alpha-24)}.modal-title.svelte-1witlsj{margin:3px 0 0 6px;color:var(--white);font-feature-settings:'clig' off, 'liga' off;font-size:13px;font-style:normal;font-weight:600;line-height:16px}.modal-scroll.svelte-1witlsj{overflow-y:auto;overflow-x:hidden;margin:8px 4px 8px 0;height:100%}.modal-scroll.svelte-1witlsj::-webkit-scrollbar{width:8px}.modal-scroll.svelte-1witlsj::-webkit-scrollbar-track{box-shadow:none;background-color:transparent;border-radius:4px;margin-right:2px}.modal-scroll.svelte-1witlsj::-webkit-scrollbar-thumb{min-height:40px;border-radius:5px;background-color:#666;border:1px solid transparent;background-clip:padding-box}.modal-scroll.svelte-1witlsj::-webkit-scrollbar-thumb:hover{background-color:#777}.modal-main.svelte-1witlsj{margin:-8px -4px 0 0}")}function n1(i){let e,t,n,o,l,r=i[2]&&o1(i);return{c(){e=I("div"),t=I("h3"),n=Ne(i[3]),o=H(),r&&r.c(),c(t,"class","modal-title svelte-1witlsj"),c(e,"class","modal-header svelte-1witlsj")},m(a,s){v(a,e,s),_(e,t),_(t,n),_(e,o),r&&r.m(e,null),l=!0},p(a,s){(!l||s&8)&&Ge(n,a[3]),a[2]?r?(r.p(a,s),s&4&&d(r,1)):(r=o1(a),r.c(),d(r,1),r.m(e,null)):r&&(ce(),m(r,1,1,()=>{r=null}),fe())},i(a){l||(d(r),l=!0)},o(a){m(r),l=!1},d(a){a&&b(e),r&&r.d()}}}function o1(i){let e,t;return e=new pt({props:{click:i[0],testId:"close-modal",style:"padding: 0; height: 24px; width: 24px",ariaLabel:U("hotkey_map_modal_close_btn_text"),$$slots:{default:[Gh]},$$scope:{ctx:i}}}),{c(){A(e.$$.fragment)},m(n,o){E(e,n,o),t=!0},p(n,o){let l={};o&1&&(l.click=n[0]),o&32&&(l.$$scope={dirty:o,ctx:n}),e.$set(l)},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){m(e.$$.fragment,n),t=!1},d(n){M(e,n)}}}function Gh(i){let e,t;return e=new i1({}),{c(){A(e.$$.fragment)},m(n,o){E(e,n,o),t=!0},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){m(e.$$.fragment,n),t=!1},d(n){M(e,n)}}}function jh(i){let e,t,n,o,l,r,a=i[1]&&n1(i),s=i[4].default,u=Ee(s,i,i[5],null);return{c(){e=I("div"),t=I("div"),a&&a.c(),n=H(),o=I("div"),l=I("div"),u&&u.c(),c(l,"class","modal-main svelte-1witlsj"),c(o,"class","modal-scroll svelte-1witlsj"),c(t,"class","modal-container svelte-1witlsj"),c(e,"class","modal-overlay svelte-1witlsj")},m(f,p){v(f,e,p),_(e,t),a&&a.m(t,null),_(t,n),_(t,o),_(o,l),u&&u.m(l,null),r=!0},p(f,[p]){f[1]?a?(a.p(f,p),p&2&&d(a,1)):(a=n1(f),a.c(),d(a,1),a.m(t,n)):a&&(ce(),m(a,1,1,()=>{a=null}),fe()),u&&u.p&&(!r||p&32)&&Ae(u,s,f,f[5],r?Me(s,f[5],p,null):Le(f[5]),null)},i(f){r||(d(a),d(u,f),r=!0)},o(f){m(a),m(u,f),r=!1},d(f){f&&b(e),a&&a.d(),u&&u.d(f)}}}function xh(i,e,t){let{$$slots:n={},$$scope:o}=e,{onClose:l}=e,{showHeader:r=!0}=e,{showCloseCross:a=!0}=e,{title:s}=e;return i.$$set=u=>{"onClose"in u&&t(0,l=u.onClose),"showHeader"in u&&t(1,r=u.showHeader),"showCloseCross"in u&&t(2,a=u.showCloseCross),"title"in u&&t(3,s=u.title),"$$scope"in u&&t(5,o=u.$$scope)},[l,r,a,s,n,o]}var La=class extends B{constructor(e){super(),D(this,e,xh,jh,R,{onClose:0,showHeader:1,showCloseCross:2,title:3},Kh)}},r1=La;var Yh=new Set(["BR"]),Va=i=>{let e=document.createElement("DIV");e.innerHTML=i;let t=e.querySelectorAll("*"),n=t.length;for(;n--;){let o=t[n],l=o.tagName;Yh.has(l)||o.parentElement?.removeChild(o)}return e.innerHTML};function Qh(i){Ce(i,"svelte-quklnq",".hot-key-map.svelte-quklnq{color:var(--black);box-sizing:border-box;overflow-x:hidden}.hot-key-map-group.svelte-quklnq{border-bottom:1px solid var(--white-alpha-24);margin:0 20px 0 16px}.hot-key-map-group.svelte-quklnq:last-child{border-bottom:none}.hot-key-map-group-title.svelte-quklnq{color:var(--white);font-feature-settings:'clig' off, 'liga' off;font-size:13px;font-style:normal;font-weight:600;line-height:16px}.hot-key-map-group-title.svelte-quklnq,.hot-key-map-item.svelte-quklnq{padding:12px 0;margin:0;width:100%}.hot-key-map-group-items.svelte-quklnq{box-sizing:border-box;list-style:none;padding:0;margin:0}.hot-key-map-item.svelte-quklnq{box-sizing:border-box;display:flex;justify-content:space-between;align-items:center;--videoplayer-hotkey-item-value-width:156px;--videoplayer-hotkey-item-value-padding-left:24px}.hot-key-map-item-description.svelte-quklnq{color:var(--white-alpha-72);width:calc(100% - var(--videoplayer-hotkey-item-value-width) - var(--videoplayer-hotkey-item-value-padding-left));max-width:388px}.hot-key-map-item-value.svelte-quklnq{color:var(--white);width:var(--videoplayer-hotkey-item-value-width);padding-left:var(--videoplayer-hotkey-item-value-padding-left);letter-spacing:-0.14px}.hot-key-map-item-description.svelte-quklnq,.hot-key-map-item-value.svelte-quklnq{font-feature-settings:'clig' off, 'liga' off;font-size:13px;font-style:normal;font-weight:400;line-height:16px}")}function l1(i,e,t){let n=i.slice();return n[5]=e[t].title,n[6]=e[t].items,n}function s1(i,e,t){let n=i.slice();return n[9]=e[t].description,n[10]=e[t].value,n}function a1(i){let e,t,n=Va(i[9])+"",o,l,r=i[10]+"",a,s;return{c(){e=I("li"),t=I("span"),o=H(),l=I("span"),a=Ne(r),s=H(),c(t,"class","hot-key-map-item-description svelte-quklnq"),c(l,"class","hot-key-map-item-value svelte-quklnq"),c(e,"class","hot-key-map-item svelte-quklnq")},m(u,f){v(u,e,f),_(e,t),t.innerHTML=n,_(e,o),_(e,l),_(l,a),_(e,s)},p(u,f){f&1&&n!==(n=Va(u[9])+"")&&(t.innerHTML=n),f&1&&r!==(r=u[10]+"")&&Ge(a,r)},d(u){u&&b(e)}}}function u1(i){let e,t,n=i[5]+"",o,l,r,a,s=gt(i[6]),u=[];for(let f=0;f<s.length;f+=1)u[f]=a1(s1(i,s,f));return{c(){e=I("div"),t=I("h5"),o=Ne(n),l=H(),r=I("ul");for(let f=0;f<u.length;f+=1)u[f].c();a=H(),c(t,"class","hot-key-map-group-title svelte-quklnq"),c(r,"class","hot-key-map-group-items svelte-quklnq"),c(e,"class","hot-key-map-group svelte-quklnq")},m(f,p){v(f,e,p),_(e,t),_(t,o),_(e,l),_(e,r);for(let g=0;g<u.length;g+=1)u[g]&&u[g].m(r,null);_(e,a)},p(f,p){if(p&1&&n!==(n=f[5]+"")&&Ge(o,n),p&1){s=gt(f[6]);let g;for(g=0;g<s.length;g+=1){let y=s1(f,s,g);u[g]?u[g].p(y,p):(u[g]=a1(y),u[g].c(),u[g].m(r,null))}for(;g<u.length;g+=1)u[g].d(1);u.length=s.length}},d(f){f&&b(e),$t(u,f)}}}function Zh(i){let e,t=gt(i[0].groups),n=[];for(let o=0;o<t.length;o+=1)n[o]=u1(l1(i,t,o));return{c(){e=I("div");for(let o=0;o<n.length;o+=1)n[o].c();c(e,"class","hot-key-map svelte-quklnq")},m(o,l){v(o,e,l);for(let r=0;r<n.length;r+=1)n[r]&&n[r].m(e,null)},p(o,l){if(l&1){t=gt(o[0].groups);let r;for(r=0;r<t.length;r+=1){let a=l1(o,t,r);n[r]?n[r].p(a,l):(n[r]=u1(a),n[r].c(),n[r].m(e,null))}for(;r<n.length;r+=1)n[r].d(1);n.length=t.length}},d(o){o&&b(e),$t(n,o)}}}function Xh(i){let e,t;return e=new r1({props:{title:i[0].title,onClose:i[2],$$slots:{default:[Zh]},$$scope:{ctx:i}}}),{c(){A(e.$$.fragment)},m(n,o){E(e,n,o),t=!0},p(n,[o]){let l={};o&1&&(l.title=n[0].title),o&8193&&(l.$$scope={dirty:o,ctx:n}),e.$set(l)},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){m(e.$$.fragment,n),t=!1},d(n){M(e,n)}}}function Jh(i,e,t){let n,o=nt(),{data:l,show:r}=o.ui.modals.hotKeyMap;return N(i,l,s=>t(0,n=s)),[n,l,()=>{r.set(!1)}]}var Ra=class extends B{constructor(e){super(),D(this,e,Jh,Xh,R,{},Qh)}},c1=Ra;var ys=require("@vkontakte/videoplayer-shared");var Yo=require("@vkontakte/videoplayer-core");var Go={ru:"\u0420\u0443\u0441\u0441\u043A\u0438\u0439",en:"English",uk:"\u0423\u043A\u0440\u0430\u0457\u043D\u0441\u044C\u043A\u0430",be:"\u0411\u0435\u043B\u0430\u0440\u0443\u0441\u043A\u0430\u044F (\u0442\u0430\u0440\u0430\u0448\u043A\u0435\u0432i\u0446\u0430)",es:"Espa\xF1ol",fi:"Suomi",de:"Deutsch",it:"Italiano",bg:"\u0411\u044A\u043B\u0433\u0430\u0440\u0441\u043A\u0438",hr:"Hrvatski",hu:"Magyar",sr:"\u0421\u0440\u043F\u0441\u043A\u0438",pt:"Portugu\xEAs",el:"\u0395\u03BB\u03BB\u03B7\u03BD\u03B9\u03BA\u03AC",pl:"Polski",fr:"Fran\xE7ais",ko:"\uD55C\uAD6D\uC5B4","zh-CN":"\u6C49\u8BED",lt:"Lietuvi\u0173",ja:"\u65E5\u672C\u8A9E",cs:"\u010Ce\u0161tina",et:"Eesti",tt:"\u0422\u0430\u0442\u0430\u0440\u0447\u0430",ba:"\u0411\u0430\u0448\u04A1\u043E\u0440\u0442\u0441\u0430",cv:"\u0427\u0103\u0432\u0430\u0448\u043B\u0430",sk:"Sloven\u010Dina",ro:"Rom\xE2n\u0103",no:"Norsk",lv:"Latvie\u0161u",az:"Az\u0259rbaycan dili",hy:"\u0540\u0561\u0575\u0565\u0580\u0565\u0576",sv:"Svenska",nl:"Nederlands",tk:"T\xFCrkmen",ka:"\u10E5\u10D0\u10E0\u10D7\u10E3\u10DA\u10D8",da:"Dansk",uz:"O\u2018zbek",th:"\u0E20\u0E32\u0E29\u0E32\u0E44\u0E17\u0E22",id:"Bahasa Indonesia",tg:"\u0422\u043E\u04B7\u0438\u043A\u04E3",sl:"Sloven\u0161\u010Dina",bs:"Bosanski","pt-BR":"Portugu\xEAs brasileiro",fa:"\u0641\u0627\u0631\u0633\u06CC",vi:"Ti\u1EBFng Vi\u1EC7t",hi:"\u0939\u093F\u0928\u094D\u0926\u0940",si:"\u0DC3\u0DD2\u0D82\u0DC4\u0DBD",bn:"\u09AC\u09BE\u0982\u09B2\u09BE",tl:"Tagalog",mn:"\u041C\u043E\u043D\u0433\u043E\u043B",my:"\u1017\u1019\u102C\u1005\u102C",tr:"T\xFCrk\xE7e",ne:"\u0928\u0947\u092A\u093E\u0932\u0940",ur:"\u0627\u0631\u062F\u0648",ky:"\u041A\u044B\u0440\u0433\u044B\u0437 \u0442\u0438\u043B\u0438",pa:"\u067E\u0646\u062C\u0627\u0628\u06CC",os:"\u0418\u0440\u043E\u043D",kn:"\u0C95\u0CA8\u0CCD\u0CA8\u0CA1",sw:"Kiswahili",kk:"\u049A\u0430\u0437\u0430\u049B\u0448\u0430",ar:"\u0627\u0644\u0639\u0631\u0628\u064A\u0629",he:"\u05E2\u05D1\u05E8\u05D9\u05EA",ab:"\u0410\u04A7\u0441\u0448\u04D9\u0430",eu:"Euskara",eo:"Esperanto"},f1={abk:"as",ara:"ar",aze:"az",bak:"ba",bel:"be",ben:"bn",bos:"bs",bul:"bg",ces:"cs",chv:"cv",dan:"da",deu:"de",ell:"el",eng:"en",epo:"eo",est:"et",eus:"eu",fas:"fa",fin:"fi",fra:"fr",heb:"he",hin:"hi",hrv:"hr",hun:"hu",hye:"hy",ind:"id",ita:"it",jpn:"ja",kan:"kn",kat:"ka",kaz:"kk",kir:"ky",kor:"ko",lav:"lv",lit:"lt",mon:"mn",mya:"my",nep:"ne",nld:"nl",nor:"no",oss:"os",pan:"pa",pol:"pl",por:"pt",ron:"ro",rus:"ru",sin:"si",slk:"sk",slv:"sl",spa:"es",srp:"sr",swa:"sw",swe:"sv",tat:"tt",tgk:"tg",tgl:"tl",tha:"th",tuk:"tk",tur:"tr",ukr:"uk",urd:"ur",uzb:"uz",vie:"vi"};var $h=i=>Go[i]??Go[f1[i]]??void 0,Ol=(i,e)=>String(e.findIndex(t=>t.id===i.id)+1),Fl=(i,e)=>{if(!i)return"";let{language:t,label:n}=i,o;if(t==="und"?o=void 0:t&&(o=$h(t)??t),n&&t&&o){let r=e.filter(a=>a.label===n&&a.language===t);if(r.length===1)return U("audio_stream_display_language_label",{language:o,label:n});{let a=Ol(i,r);return U("audio_stream_display_language_label_index",{language:o,label:n,index:a})}}if(n){let r=e.filter(a=>a.label===n);if(r.length===1)return n;{let a=Ol(i,r);return U("audio_stream_display_label_index",{label:n,index:a})}}if(t&&o){let r=e.filter(a=>a.language===t);if(r.length===1)return o;{let a=Ol(i,r);return U("audio_stream_display_language_index",{language:o,index:a})}}let l=Ol(i,e);return U("audio_stream_display_unknown",{index:l})};function eb(i){let e,t,n,o=i[2].default,l=Ee(o,i,i[1],null),r=[{xmlns:"http://www.w3.org/2000/svg"},{width:"16"},{height:"16"},{"aria-hidden":"true"},{"data-testid":"check-mark-icon"},{role:"img"},i[0]],a={};for(let s=0;s<r.length;s+=1)a=ne(a,r[s]);return{c(){e=V("svg"),l&&l.c(),t=V("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"),ye(e,a)},m(s,u){v(s,e,u),l&&l.m(e,null),_(e,t),n=!0},p(s,[u]){l&&l.p&&(!n||u&2)&&Ae(l,o,s,s[1],n?Me(o,s[1],u,null):Le(s[1]),null),ye(e,a=De(r,[{xmlns:"http://www.w3.org/2000/svg"},{width:"16"},{height:"16"},{"aria-hidden":"true"},{"data-testid":"check-mark-icon"},{role:"img"},u&1&&s[0]]))},i(s){n||(d(l,s),n=!0)},o(s){m(l,s),n=!1},d(s){s&&b(e),l&&l.d(s)}}}function tb(i,e,t){let{$$slots:n={},$$scope:o}=e;return i.$$set=l=>{t(0,e=ne(ne({},e),ve(l))),"$$scope"in l&&t(1,o=l.$$scope)},e=ve(e),[e,o,n]}var Ba=class extends B{constructor(e){super(),D(this,e,tb,eb,R,{})}},d1=Ba;function ib(i){Ce(i,"svelte-124aexk",".select-icon.svelte-124aexk{margin-right:auto;padding-right:12px;opacity:0.9;position:relative;top:3px}")}function m1(i){let e,t,n;return t=new d1({}),{c(){e=I("div"),A(t.$$.fragment),c(e,"class","select-icon svelte-124aexk")},m(o,l){v(o,e,l),E(t,e,null),n=!0},i(o){n||(d(t.$$.fragment,o),n=!0)},o(o){m(t.$$.fragment,o),n=!1},d(o){o&&b(e),M(t)}}}function nb(i){let e,t=(i[1].label??i[1].value)+"",n;return{c(){e=I("div"),n=Ne(t),c(e,"class","menu-item-value"),G(e,"submenu-value-mobile",i[0])},m(o,l){v(o,e,l),_(e,n)},p(o,l){l&2&&t!==(t=(o[1].label??o[1].value)+"")&&Ge(n,t),l&1&&G(e,"submenu-value-mobile",o[0])},i:ge,o:ge,d(o){o&&b(e)}}}function ob(i){let e,t,n,o=[i[1].valueComponentParams??{}];var l=i[1].valueComponent;function r(a,s){let u={};for(let f=0;f<o.length;f+=1)u=ne(u,o[f]);return s!==void 0&&s&2&&(u=ne(u,De(o,[Ur(a[1].valueComponentParams??{})]))),{props:u}}return l&&(e=Rt(l,r(i))),{c(){e&&A(e.$$.fragment),t=$e()},m(a,s){e&&E(e,a,s),v(a,t,s),n=!0},p(a,s){if(s&2&&l!==(l=a[1].valueComponent)){if(e){ce();let u=e;m(u.$$.fragment,1,0,()=>{M(u,1)}),fe()}l?(e=Rt(l,r(a,s)),A(e.$$.fragment),d(e.$$.fragment,1),E(e,t.parentNode,t)):e=null}else if(l){let u=s&2?De(o,[Ur(a[1].valueComponentParams??{})]):{};e.$set(u)}},i(a){n||(e&&d(e.$$.fragment,a),n=!0)},o(a){e&&m(e.$$.fragment,a),n=!1},d(a){a&&b(t),e&&M(e,a)}}}function rb(i){let e,t,n,o,l,r,a,s,u,f=i[1].selected&&m1(i),p=[ob,nb],g=[];function y(h,C){return h[1].valueComponent?0:1}return n=y(i,-1),o=g[n]=p[n](i),{c(){e=I("li"),f&&f.c(),t=H(),o.c(),c(e,"class","item"),c(e,"data-value",l=i[1].dataValue??i[1].value),c(e,"role","menuitem"),c(e,"tabindex","0"),c(e,"aria-label",r=i[1].ariaLabel??i[1].label??i[1].value.toString()),G(e,"mobile",i[0])},m(h,C){v(h,e,C),f&&f.m(e,null),_(e,t),g[n].m(e,null),a=!0,s||(u=[Pe(e,"click",mt(i[4])),Pe(e,"keydown",i[5])],s=!0)},p(h,[C]){h[1].selected?f?C&2&&d(f,1):(f=m1(h),f.c(),d(f,1),f.m(e,t)):f&&(ce(),m(f,1,1,()=>{f=null}),fe());let w=n;n=y(h,C),n===w?g[n].p(h,C):(ce(),m(g[w],1,1,()=>{g[w]=null}),fe(),o=g[n],o?o.p(h,C):(o=g[n]=p[n](h),o.c()),d(o,1),o.m(e,null)),(!a||C&2&&l!==(l=h[1].dataValue??h[1].value))&&c(e,"data-value",l),(!a||C&2&&r!==(r=h[1].ariaLabel??h[1].label??h[1].value.toString()))&&c(e,"aria-label",r),(!a||C&1)&&G(e,"mobile",h[0])},i(h){a||(d(f),d(o),a=!0)},o(h){m(f),m(o),a=!1},d(h){h&&b(e),f&&f.d(),g[n].d(),s=!1,at(u)}}}function lb(i,e,t){let{isMobile:n=!1}=e,{item:o}=e,{selectItem:l}=e,r=(u,f)=>{wr(u,()=>l(f))},a=()=>l(o.value),s=u=>r(u,o.value);return i.$$set=u=>{"isMobile"in u&&t(0,n=u.isMobile),"item"in u&&t(1,o=u.item),"selectItem"in u&&t(2,l=u.selectItem)},[n,o,l,r,a,s]}var Da=class extends B{constructor(e){super(),D(this,e,lb,rb,R,{isMobile:0,item:1,selectItem:2},ib)}},p1=Da;function sb(i){let e,t,n,o=i[2].default,l=Ee(o,i,i[1],null),r=[{xmlns:"http://www.w3.org/2000/svg"},{width:"12"},{height:"7"},{fill:"none"},{"aria-hidden":"true"},{role:"img"},i[0]],a={};for(let s=0;s<r.length;s+=1)a=ne(a,r[s]);return{c(){e=V("svg"),l&&l.c(),t=V("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"),ye(e,a)},m(s,u){v(s,e,u),l&&l.m(e,null),_(e,t),n=!0},p(s,[u]){l&&l.p&&(!n||u&2)&&Ae(l,o,s,s[1],n?Me(o,s[1],u,null):Le(s[1]),null),ye(e,a=De(r,[{xmlns:"http://www.w3.org/2000/svg"},{width:"12"},{height:"7"},{fill:"none"},{"aria-hidden":"true"},{role:"img"},u&1&&s[0]]))},i(s){n||(d(l,s),n=!0)},o(s){m(l,s),n=!1},d(s){s&&b(e),l&&l.d(s)}}}function ab(i,e,t){let{$$slots:n={},$$scope:o}=e;return i.$$set=l=>{t(0,e=ne(ne({},e),ve(l))),"$$scope"in l&&t(1,o=l.$$scope)},e=ve(e),[e,o,n]}var Na=class extends B{constructor(e){super(),D(this,e,ab,sb,R,{})}},_1=Na;function ub(i){let e,t,n,o=i[2].default,l=Ee(o,i,i[1],null),r=[{xmlns:"http://www.w3.org/2000/svg"},{width:"12"},{height:"16"},{fill:"none"},{"aria-hidden":"true"},{role:"img"},i[0]],a={};for(let s=0;s<r.length;s+=1)a=ne(a,r[s]);return{c(){e=V("svg"),l&&l.c(),t=V("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"),ye(e,a)},m(s,u){v(s,e,u),l&&l.m(e,null),_(e,t),n=!0},p(s,[u]){l&&l.p&&(!n||u&2)&&Ae(l,o,s,s[1],n?Me(o,s[1],u,null):Le(s[1]),null),ye(e,a=De(r,[{xmlns:"http://www.w3.org/2000/svg"},{width:"12"},{height:"16"},{fill:"none"},{"aria-hidden":"true"},{role:"img"},u&1&&s[0]]))},i(s){n||(d(l,s),n=!0)},o(s){m(l,s),n=!1},d(s){s&&b(e),l&&l.d(s)}}}function cb(i,e,t){let{$$slots:n={},$$scope:o}=e;return i.$$set=l=>{t(0,e=ne(ne({},e),ve(l))),"$$scope"in l&&t(1,o=l.$$scope)},e=ve(e),[e,o,n]}var Oa=class extends B{constructor(e){super(),D(this,e,cb,ub,R,{})}},g1=Oa;function fb(i){let e,t;return e=new g1({props:{style:i[2],"data-testid":i[0]?"chevron-icon--right":"chevron-icon--left"}}),{c(){A(e.$$.fragment)},m(n,o){E(e,n,o),t=!0},p(n,o){let l={};o&4&&(l.style=n[2]),o&1&&(l["data-testid"]=n[0]?"chevron-icon--right":"chevron-icon--left"),e.$set(l)},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){m(e.$$.fragment,n),t=!1},d(n){M(e,n)}}}function db(i){let e,t;return e=new _1({props:{style:i[2],"data-testid":i[0]?"chevron-icon--down":"chevron-icon--up"}}),{c(){A(e.$$.fragment)},m(n,o){E(e,n,o),t=!0},p(n,o){let l={};o&4&&(l.style=n[2]),o&1&&(l["data-testid"]=n[0]?"chevron-icon--down":"chevron-icon--up"),e.$set(l)},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){m(e.$$.fragment,n),t=!1},d(n){M(e,n)}}}function mb(i){let e,t,n,o,l=[db,fb],r=[];function a(s,u){return s[1]?0:1}return e=a(i,-1),t=r[e]=l[e](i),{c(){t.c(),n=$e()},m(s,u){r[e].m(s,u),v(s,n,u),o=!0},p(s,[u]){let f=e;e=a(s,u),e===f?r[e].p(s,u):(ce(),m(r[f],1,1,()=>{r[f]=null}),fe(),t=r[e],t?t.p(s,u):(t=r[e]=l[e](s),t.c()),d(t,1),t.m(n.parentNode,n))},i(s){o||(d(t),o=!0)},o(s){m(t),o=!1},d(s){s&&b(n),r[e].d(s)}}}function pb(i,e,t){let n,{direction:o="left"}=e,l,r;return i.$$set=a=>{"direction"in a&&t(3,o=a.direction)},i.$$.update=()=>{i.$$.dirty&8&&(t(1,l=["up","down"].includes(o)),t(0,r=["right","down"].includes(o))),i.$$.dirty&1&&t(2,n=r?"transform: rotate(180deg);":void 0)},[r,l,n,o]}var Fa=class extends B{constructor(e){super(),D(this,e,pb,mb,R,{direction:3})}},jo=Fa;var Un={"quality-settings":100,"audio-language-settings":200,"playback-rate-settings":300,"subtitles-settings":400,"traffic-saving-settings":500,download:600,report:700,"copy-data":800,"save-trace-info":900,"debug-info":1e3};function gb(i){Ce(i,"svelte-1mrc4z3",'.sub-menu.svelte-1mrc4z3.svelte-1mrc4z3{line-height:32px;padding-bottom:0;padding-top:42px}.sub-menu.mobile.svelte-1mrc4z3.svelte-1mrc4z3{padding-top:58px}.sub-menu.svelte-1mrc4z3 .item{padding:0 12px}.sub-menu.svelte-1mrc4z3 .item.mobile{padding:0 14px}.sub-menu.svelte-1mrc4z3 .item.header.svelte-1mrc4z3{padding-top:6px;box-sizing:border-box;width:100%;justify-content:space-between;column-gap:12px;border-bottom:var(--divider-border);position:absolute;top:0}.sub-menu[data-testid="sub-menu-quality-settings"].svelte-1mrc4z3 .header.svelte-1mrc4z3{padding-right:34px}')}function h1(i,e,t){let n=i.slice();return n[23]=e[t],n}function b1(i){let e,t;return e=new p1({props:{item:i[23],isMobile:i[2],selectItem:i[7]}}),{c(){A(e.$$.fragment)},m(n,o){E(e,n,o),t=!0},p(n,o){let l={};o&64&&(l.item=n[23]),o&4&&(l.isMobile=n[2]),o&128&&(l.selectItem=n[7]),e.$set(l)},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){m(e.$$.fragment,n),t=!1},d(n){M(e,n)}}}function hb(i){let e,t,n,o,l,r,a,s,u,f,p,g,y,h;o=new jo({props:{direction:"left"}});let C=gt(i[6]),w=[];for(let T=0;T<C.length;T+=1)w[T]=b1(h1(i,C,T));let F=T=>m(w[T],1,1,()=>{w[T]=null});return{c(){e=I("div"),t=I("ul"),n=I("li"),A(o.$$.fragment),l=H(),r=I("div"),a=Ne(i[5]),s=H();for(let T=0;T<w.length;T+=1)w[T].c();c(n,"class","item header svelte-1mrc4z3"),c(n,"role","menuitem"),c(n,"tabindex","0"),c(n,"data-testid","return-to-settings-menu"),c(n,"aria-label",i[4]),G(n,"mobile",i[2]),c(t,"class","items"),c(t,"role","menu"),c(t,"style",u=i[13](i[9]?.clientHeight)),G(t,"mobile",i[2]),c(e,"class","sub-menu menu svelte-1mrc4z3"),c(e,"data-testid",f=`sub-menu-${i[1]}`),c(e,"style",p=`min-width: ${i[8]}px`),G(e,"desktop",!i[2]),G(e,"mobile",i[2])},m(T,k){v(T,e,k),_(e,t),_(t,n),E(o,n,null),_(n,l),_(n,r),_(r,a),i[18](n),_(t,s);for(let P=0;P<w.length;P+=1)w[P]&&w[P].m(t,null);i[19](t),g=!0,y||(h=[Pe(n,"click",mt(function(){Wt(i[3])&&i[3].apply(this,arguments)})),Pe(t,"keydown",i[12])],y=!0)},p(T,[k]){if(i=T,(!g||k&32)&&Ge(a,i[5]),(!g||k&16)&&c(n,"aria-label",i[4]),(!g||k&4)&&G(n,"mobile",i[2]),k&196){C=gt(i[6]);let P;for(P=0;P<C.length;P+=1){let x=h1(i,C,P);w[P]?(w[P].p(x,k),d(w[P],1)):(w[P]=b1(x),w[P].c(),d(w[P],1),w[P].m(t,null))}for(ce(),P=C.length;P<w.length;P+=1)F(P);fe()}(!g||k&512&&u!==(u=i[13](i[9]?.clientHeight)))&&c(t,"style",u),(!g||k&4)&&G(t,"mobile",i[2]),(!g||k&2&&f!==(f=`sub-menu-${i[1]}`))&&c(e,"data-testid",f),(!g||k&256&&p!==(p=`min-width: ${i[8]}px`))&&c(e,"style",p),(!g||k&4)&&G(e,"desktop",!i[2]),(!g||k&4)&&G(e,"mobile",i[2])},i(T){if(!g){d(o.$$.fragment,T);for(let k=0;k<C.length;k+=1)d(w[k]);g=!0}},o(T){m(o.$$.fragment,T),w=w.filter(Boolean);for(let k=0;k<w.length;k+=1)m(w[k]);g=!1},d(T){T&&b(e),M(o),i[18](null),$t(w,T),i[19](null),y=!1,at(h)}}}function bb(i,e,t){let n,o,{id:l}=e,{isMobile:r=!1}=e,{playerControlsHeight:a=0}=e,{returnFromSubMenu:s}=e,{ariaLabelReturnFromSubMenu:u=U("aria_label_submenu_back")}=e,{title:f}=e,{listRef:p}=e,{closeSettingsMenu:g}=e,{backToMainSettings:y}=e,{itemIdReturnCase:h}=e,{items:C}=e,{selectItem:w}=e,{minWidth:F}=e,T=nt(),k=T.ui.isFullscreen;N(i,k,L=>t(21,o=L));let P=T.ui.playerSize;N(i,P,L=>t(20,n=L));let x,W=L=>{Sd(L,y,{itemIdReturnCase:h,id:l},g)},z=(L=0)=>r&&o?`max-height: ${Math.round(n.height*.6)}px`:r?"":`max-height: ${n.height-32-L-a}px; overflow: auto;`;function se(L){he[L?"unshift":"push"](()=>{x=L,t(9,x)})}function de(L){he[L?"unshift":"push"](()=>{p=L,t(0,p)})}return i.$$set=L=>{"id"in L&&t(1,l=L.id),"isMobile"in L&&t(2,r=L.isMobile),"playerControlsHeight"in L&&t(14,a=L.playerControlsHeight),"returnFromSubMenu"in L&&t(3,s=L.returnFromSubMenu),"ariaLabelReturnFromSubMenu"in L&&t(4,u=L.ariaLabelReturnFromSubMenu),"title"in L&&t(5,f=L.title),"listRef"in L&&t(0,p=L.listRef),"closeSettingsMenu"in L&&t(15,g=L.closeSettingsMenu),"backToMainSettings"in L&&t(16,y=L.backToMainSettings),"itemIdReturnCase"in L&&t(17,h=L.itemIdReturnCase),"items"in L&&t(6,C=L.items),"selectItem"in L&&t(7,w=L.selectItem),"minWidth"in L&&t(8,F=L.minWidth)},[p,l,r,s,u,f,C,w,F,x,k,P,W,z,a,g,y,h,se,de]}var qa=class extends B{constructor(e){super(),D(this,e,bb,hb,R,{id:1,isMobile:2,playerControlsHeight:14,returnFromSubMenu:3,ariaLabelReturnFromSubMenu:4,title:5,listRef:0,closeSettingsMenu:15,backToMainSettings:16,itemIdReturnCase:17,items:6,selectItem:7,minWidth:8},gb)}},v1=qa;var y1=require("@vkontakte/videoplayer-shared");function vb(i){let e,t,n,o;return{c(){e=I("img"),c(e,"class","icon"),io(e.src,t=i[0])||c(e,"src",t),c(e,"aria-hidden","true")},m(l,r){v(l,e,r),n||(o=Pe(e,"error",i[2]),n=!0)},p(l,r){r&1&&!io(e.src,t=l[0])&&c(e,"src",t)},d(l){l&&b(e),n=!1,o()}}}function yb(i){let e;return{c(){e=I("div"),e.innerHTML='<div class="inner"></div>',c(e,"class","icon icon-error-stub")},m(t,n){v(t,e,n)},p:ge,d(t){t&&b(e)}}}function kb(i){let e;function t(l,r){return l[1]?yb:vb}let n=t(i,-1),o=n(i);return{c(){o.c(),e=$e()},m(l,r){o.m(l,r),v(l,e,r)},p(l,[r]){n===(n=t(l,r))&&o?o.p(l,r):(o.d(1),o=n(l),o&&(o.c(),o.m(e.parentNode,e)))},i:ge,o:ge,d(l){l&&b(e),o.d(l)}}}function wb(i,e,t){let n,{icon:o}=e,l=()=>{t(1,n=!0)};return i.$$set=r=>{"icon"in r&&t(0,o=r.icon)},t(1,n=!1),[o,n,l]}var za=class extends B{constructor(e){super(),D(this,e,wb,kb,R,{icon:0})}},ql=za;function Cb(i){Ce(i,"svelte-1ikfjte",".value.svelte-1ikfjte{position:relative;opacity:0.7;overflow:hidden;text-overflow:ellipsis}")}function Sb(i){let e,t,n;var o=i[8];function l(r,a){return{}}return o&&(e=Rt(o,l(i))),{c(){e&&A(e.$$.fragment),t=$e()},m(r,a){e&&E(e,r,a),v(r,t,a),n=!0},p(r,a){if(a&256&&o!==(o=r[8])){if(e){ce();let s=e;m(s.$$.fragment,1,0,()=>{M(s,1)}),fe()}o?(e=Rt(o,l(r,a)),A(e.$$.fragment),d(e.$$.fragment,1),E(e,t.parentNode,t)):e=null}},i(r){n||(e&&d(e.$$.fragment,r),n=!0)},o(r){e&&m(e.$$.fragment,r),n=!1},d(r){r&&b(t),e&&M(e,r)}}}function Ib(i){let e,t;return e=new ql({props:{icon:i[8]}}),{c(){A(e.$$.fragment)},m(n,o){E(e,n,o),t=!0},p(n,o){let l={};o&256&&(l.icon=n[8]),e.$set(l)},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){m(e.$$.fragment,n),t=!1},d(n){M(e,n)}}}function Tb(i){let e,t;return{c(){e=I("div"),t=Ne(i[6]),c(e,"class","value svelte-1ikfjte")},m(n,o){v(n,e,o),_(e,t)},p(n,o){o&64&&Ge(t,n[6])},i:ge,o:ge,d(n){n&&b(e)}}}function Pb(i){let e,t,n;var o=i[7];function l(r,a){return{}}return o&&(e=Rt(o,l(i))),{c(){e&&A(e.$$.fragment),t=$e()},m(r,a){e&&E(e,r,a),v(r,t,a),n=!0},p(r,a){if(a&128&&o!==(o=r[7])){if(e){ce();let s=e;m(s.$$.fragment,1,0,()=>{M(s,1)}),fe()}o?(e=Rt(o,l(r,a)),A(e.$$.fragment),d(e.$$.fragment,1),E(e,t.parentNode,t)):e=null}},i(r){n||(e&&d(e.$$.fragment,r),n=!0)},o(r){e&&m(e.$$.fragment,r),n=!1},d(r){r&&b(t),e&&M(e,r)}}}function Eb(i){let e,t,n,o,l,r,a,s,u,f,p,g,y,h=[Ib,Sb],C=[];function w(P,x){return typeof P[8]=="string"?0:1}n=w(i,-1),o=C[n]=h[n](i);let F=[Pb,Tb],T=[];function k(P,x){return P[7]?0:1}return u=k(i,-1),f=T[u]=F[u](i),{c(){e=I("li"),t=I("div"),o.c(),l=H(),r=I("div"),a=Ne(i[4]),s=H(),f.c(),c(t,"class","icon-wrapper"),c(r,"class","label"),c(e,"class","item"),c(e,"role","menuitem"),c(e,"tabindex","0"),c(e,"aria-label",i[5]),c(e,"aria-haspopup","true"),c(e,"data-testid",i[1]),G(e,"mobile",i[2])},m(P,x){v(P,e,x),_(e,t),C[n].m(t,null),_(e,l),_(e,r),_(r,a),_(e,s),T[u].m(e,null),i[11](e),p=!0,g||(y=[Pe(e,"click",mt(function(){Wt(i[3])&&i[3].apply(this,arguments)})),Pe(e,"keydown",i[9])],g=!0)},p(P,[x]){i=P;let W=n;n=w(i,x),n===W?C[n].p(i,x):(ce(),m(C[W],1,1,()=>{C[W]=null}),fe(),o=C[n],o?o.p(i,x):(o=C[n]=h[n](i),o.c()),d(o,1),o.m(t,null)),(!p||x&16)&&Ge(a,i[4]);let z=u;u=k(i,x),u===z?T[u].p(i,x):(ce(),m(T[z],1,1,()=>{T[z]=null}),fe(),f=T[u],f?f.p(i,x):(f=T[u]=F[u](i),f.c()),d(f,1),f.m(e,null)),(!p||x&32)&&c(e,"aria-label",i[5]),(!p||x&2)&&c(e,"data-testid",i[1]),(!p||x&4)&&G(e,"mobile",i[2])},i(P){p||(d(o),d(f),p=!0)},o(P){m(o),m(f),p=!1},d(P){P&&b(e),C[n].d(),T[u].d(),i[11](null),g=!1,at(y)}}}function Mb(i,e,t){let{id:n}=e,{isMobile:o=!1}=e,{onClick:l=y1.noop}=e,{getSubItemForFocus:r}=e,{label:a}=e,{ariaLabel:s}=e,{value:u}=e,{valueComponent:f=void 0}=e,{ref:p}=e,{icon:g}=e,y=C=>Cd(C,l,r);function h(C){he[C?"unshift":"push"](()=>{p=C,t(0,p)})}return i.$$set=C=>{"id"in C&&t(1,n=C.id),"isMobile"in C&&t(2,o=C.isMobile),"onClick"in C&&t(3,l=C.onClick),"getSubItemForFocus"in C&&t(10,r=C.getSubItemForFocus),"label"in C&&t(4,a=C.label),"ariaLabel"in C&&t(5,s=C.ariaLabel),"value"in C&&t(6,u=C.value),"valueComponent"in C&&t(7,f=C.valueComponent),"ref"in C&&t(0,p=C.ref),"icon"in C&&t(8,g=C.icon)},[p,n,o,l,a,s,u,f,g,y,r,h]}var Ua=class extends B{constructor(e){super(),D(this,e,Mb,Eb,R,{id:1,isMobile:2,onClick:3,getSubItemForFocus:10,label:4,ariaLabel:5,value:6,valueComponent:7,ref:0,icon:8},Cb)}},k1=Ua;var US=require("@vkontakte/videoplayer-shared");function Ab(i){Ce(i,"svelte-1oe0j8n",".pillow.svelte-1oe0j8n{background-color:#679FF8;color:var(--white);font-size:6px;font-weight:600;-webkit-font-smoothing:antialiased;padding:2px 4px;border-radius:12px}")}function Lb(i){let e,t,n=i[1].default,o=Ee(n,i,i[0],null);return{c(){e=I("div"),o&&o.c(),c(e,"class","pillow svelte-1oe0j8n")},m(l,r){v(l,e,r),o&&o.m(e,null),t=!0},p(l,[r]){o&&o.p&&(!t||r&1)&&Ae(o,n,l,l[0],t?Me(n,l[0],r,null):Le(l[0]),null)},i(l){t||(d(o,l),t=!0)},o(l){m(o,l),t=!1},d(l){l&&b(e),o&&o.d(l)}}}function Vb(i,e,t){let{$$slots:n={},$$scope:o}=e;return i.$$set=l=>{"$$scope"in l&&t(0,o=l.$$scope)},[o,n]}var Wa=class extends B{constructor(e){super(),D(this,e,Vb,Lb,R,{},Ab)}},w1=Wa;var Ir=require("@vkontakte/videoplayer-shared");function Rb(i){let e,t,n,o,l=i[2].default,r=Ee(l,i,i[1],null),a=[{xmlns:"http://www.w3.org/2000/svg"},{width:"9"},{height:"5"},{fill:"none"},{role:"img"},i[0]],s={};for(let u=0;u<a.length;u+=1)s=ne(s,a[u]);return{c(){e=V("svg"),r&&r.c(),t=V("path"),n=V("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"),ye(e,s)},m(u,f){v(u,e,f),r&&r.m(e,null),_(e,t),_(e,n),o=!0},p(u,[f]){r&&r.p&&(!o||f&2)&&Ae(r,l,u,u[1],o?Me(l,u[1],f,null):Le(u[1]),null),ye(e,s=De(a,[{xmlns:"http://www.w3.org/2000/svg"},{width:"9"},{height:"5"},{fill:"none"},{role:"img"},f&1&&u[0]]))},i(u){o||(d(r,u),o=!0)},o(u){m(r,u),o=!1},d(u){u&&b(e),r&&r.d(u)}}}function Bb(i,e,t){let{$$slots:n={},$$scope:o}=e;return i.$$set=l=>{t(0,e=ne(ne({},e),ve(l))),"$$scope"in l&&t(1,o=l.$$scope)},e=ve(e),[e,o,n]}var Ka=class extends B{constructor(e){super(),D(this,e,Bb,Rb,R,{})}},C1=Ka;function Db(i){let e,t,n,o,l=i[2].default,r=Ee(l,i,i[1],null),a=[{xmlns:"http://www.w3.org/2000/svg"},{width:"9"},{height:"5"},{fill:"none"},{role:"img"},i[0]],s={};for(let u=0;u<a.length;u+=1)s=ne(s,a[u]);return{c(){e=V("svg"),r&&r.c(),t=V("path"),n=V("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"),ye(e,s)},m(u,f){v(u,e,f),r&&r.m(e,null),_(e,t),_(e,n),o=!0},p(u,[f]){r&&r.p&&(!o||f&2)&&Ae(r,l,u,u[1],o?Me(l,u[1],f,null):Le(u[1]),null),ye(e,s=De(a,[{xmlns:"http://www.w3.org/2000/svg"},{width:"9"},{height:"5"},{fill:"none"},{role:"img"},f&1&&u[0]]))},i(u){o||(d(r,u),o=!0)},o(u){m(r,u),o=!1},d(u){u&&b(e),r&&r.d(u)}}}function Nb(i,e,t){let{$$slots:n={},$$scope:o}=e;return i.$$set=l=>{t(0,e=ne(ne({},e),ve(l))),"$$scope"in l&&t(1,o=l.$$scope)},e=ve(e),[e,o,n]}var Ga=class extends B{constructor(e){super(),D(this,e,Nb,Db,R,{})}},S1=Ga;function Ob(i){let e,t,n,o=i[2].default,l=Ee(o,i,i[1],null),r=[{xmlns:"http://www.w3.org/2000/svg"},{width:"9"},{height:"5"},{fill:"none"},{role:"img"},i[0]],a={};for(let s=0;s<r.length;s+=1)a=ne(a,r[s]);return{c(){e=V("svg"),l&&l.c(),t=V("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"),ye(e,a)},m(s,u){v(s,e,u),l&&l.m(e,null),_(e,t),n=!0},p(s,[u]){l&&l.p&&(!n||u&2)&&Ae(l,o,s,s[1],n?Me(o,s[1],u,null):Le(s[1]),null),ye(e,a=De(r,[{xmlns:"http://www.w3.org/2000/svg"},{width:"9"},{height:"5"},{fill:"none"},{role:"img"},u&1&&s[0]]))},i(s){n||(d(l,s),n=!0)},o(s){m(l,s),n=!1},d(s){s&&b(e),l&&l.d(s)}}}function Fb(i,e,t){let{$$slots:n={},$$scope:o}=e;return i.$$set=l=>{t(0,e=ne(ne({},e),ve(l))),"$$scope"in l&&t(1,o=l.$$scope)},e=ve(e),[e,o,n]}var ja=class extends B{constructor(e){super(),D(this,e,Fb,Ob,R,{})}},I1=ja;function qb(i){let e,t,n,o=i[2].default,l=Ee(o,i,i[1],null),r=[{xmlns:"http://www.w3.org/2000/svg"},{width:"13"},{height:"5"},{fill:"none"},{role:"img"},i[0]],a={};for(let s=0;s<r.length;s+=1)a=ne(a,r[s]);return{c(){e=V("svg"),l&&l.c(),t=V("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"),ye(e,a)},m(s,u){v(s,e,u),l&&l.m(e,null),_(e,t),n=!0},p(s,[u]){l&&l.p&&(!n||u&2)&&Ae(l,o,s,s[1],n?Me(o,s[1],u,null):Le(s[1]),null),ye(e,a=De(r,[{xmlns:"http://www.w3.org/2000/svg"},{width:"13"},{height:"5"},{fill:"none"},{role:"img"},u&1&&s[0]]))},i(s){n||(d(l,s),n=!0)},o(s){m(l,s),n=!1},d(s){s&&b(e),l&&l.d(s)}}}function Hb(i,e,t){let{$$slots:n={},$$scope:o}=e;return i.$$set=l=>{t(0,e=ne(ne({},e),ve(l))),"$$scope"in l&&t(1,o=l.$$scope)},e=ve(e),[e,o,n]}var xa=class extends B{constructor(e){super(),D(this,e,Hb,qb,R,{})}},Hl=xa;function zb(i){let e,t,n,o,l=i[2].default,r=Ee(l,i,i[1],null),a=[{xmlns:"http://www.w3.org/2000/svg"},{width:"15"},{height:"7"},{fill:"none"},{role:"img"},i[0]],s={};for(let u=0;u<a.length;u+=1)s=ne(s,a[u]);return{c(){e=V("svg"),r&&r.c(),t=V("path"),n=V("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"),ye(e,s)},m(u,f){v(u,e,f),r&&r.m(e,null),_(e,t),_(e,n),o=!0},p(u,[f]){r&&r.p&&(!o||f&2)&&Ae(r,l,u,u[1],o?Me(l,u[1],f,null):Le(u[1]),null),ye(e,s=De(a,[{xmlns:"http://www.w3.org/2000/svg"},{width:"15"},{height:"7"},{fill:"none"},{role:"img"},f&1&&u[0]]))},i(u){o||(d(r,u),o=!0)},o(u){m(r,u),o=!1},d(u){u&&b(e),r&&r.d(u)}}}function Ub(i,e,t){let{$$slots:n={},$$scope:o}=e;return i.$$set=l=>{t(0,e=ne(ne({},e),ve(l))),"$$scope"in l&&t(1,o=l.$$scope)},e=ve(e),[e,o,n]}var Ya=class extends B{constructor(e){super(),D(this,e,Ub,zb,R,{})}},zl=Ya;var Ul=i=>{switch(i){case Ir.VideoQuality.Q_720P:return I1;case Ir.VideoQuality.Q_1080P:return Hl;case Ir.VideoQuality.Q_1440P:return zl;case Ir.VideoQuality.Q_2160P:return C1;case Ir.VideoQuality.Q_4320P:return S1}};function Wb(i){let e,t,n,o=i[2].default,l=Ee(o,i,i[1],null),r=[{xmlns:"http://www.w3.org/2000/svg"},{width:"24"},{height:"24"},{fill:"none"},{"aria-hidden":"true"},{"data-testid":"settings-mobile-icon"},{role:"img"},i[0]],a={};for(let s=0;s<r.length;s+=1)a=ne(a,r[s]);return{c(){e=V("svg"),l&&l.c(),t=V("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"),ye(e,a)},m(s,u){v(s,e,u),l&&l.m(e,null),_(e,t),n=!0},p(s,[u]){l&&l.p&&(!n||u&2)&&Ae(l,o,s,s[1],n?Me(o,s[1],u,null):Le(s[1]),null),ye(e,a=De(r,[{xmlns:"http://www.w3.org/2000/svg"},{width:"24"},{height:"24"},{fill:"none"},{"aria-hidden":"true"},{"data-testid":"settings-mobile-icon"},{role:"img"},u&1&&s[0]]))},i(s){n||(d(l,s),n=!0)},o(s){m(l,s),n=!1},d(s){s&&b(e),l&&l.d(s)}}}function Kb(i,e,t){let{$$slots:n={},$$scope:o}=e;return i.$$set=l=>{t(0,e=ne(ne({},e),ve(l))),"$$scope"in l&&t(1,o=l.$$scope)},e=ve(e),[e,o,n]}var Qa=class extends B{constructor(e){super(),D(this,e,Kb,Wb,R,{})}},T1=Qa;function Gb(i){let e,t,n,o,l=i[2].default,r=Ee(l,i,i[1],null),a=[{xmlns:"http://www.w3.org/2000/svg"},{width:"24"},{height:"24"},{fill:"none"},{"data-testid":"settings-icon"},{role:"img"},i[0]],s={};for(let u=0;u<a.length;u+=1)s=ne(s,a[u]);return{c(){e=V("svg"),r&&r.c(),t=V("path"),n=V("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"),ye(e,s)},m(u,f){v(u,e,f),r&&r.m(e,null),_(e,t),_(e,n),o=!0},p(u,[f]){r&&r.p&&(!o||f&2)&&Ae(r,l,u,u[1],o?Me(l,u[1],f,null):Le(u[1]),null),ye(e,s=De(a,[{xmlns:"http://www.w3.org/2000/svg"},{width:"24"},{height:"24"},{fill:"none"},{"data-testid":"settings-icon"},{role:"img"},f&1&&u[0]]))},i(u){o||(d(r,u),o=!0)},o(u){m(r,u),o=!1},d(u){u&&b(e),r&&r.d(u)}}}function jb(i,e,t){let{$$slots:n={},$$scope:o}=e;return i.$$set=l=>{t(0,e=ne(ne({},e),ve(l))),"$$scope"in l&&t(1,o=l.$$scope)},e=ve(e),[e,o,n]}var Za=class extends B{constructor(e){super(),D(this,e,jb,Gb,R,{})}},P1=Za;function xb(i){Ce(i,"svelte-8t5w85",'.icon.svelte-8t5w85{display:flex;position:relative;width:24px;height:24px}.icon.svelte-8t5w85 .pillow{position:absolute;top:1px;right:-9px}.icon.triple.svelte-8t5w85 .pillow{right:-13px}.icon.svelte-8t5w85 svg[data-testid="settings-icon--labeled"] ._full{visibility:hidden;opacity:0}')}function Yb(i){let e,t,n,o,l=i[1]&&E1(i);return n=new P1({props:{"data-testid":i[1]?"settings-icon--labeled":"settings-icon"}}),{c(){e=I("div"),l&&l.c(),t=H(),A(n.$$.fragment),c(e,"class","icon svelte-8t5w85"),c(e,"aria-hidden","true"),G(e,"triple",i[2])},m(r,a){v(r,e,a),l&&l.m(e,null),_(e,t),E(n,e,null),o=!0},p(r,a){r[1]?l?(l.p(r,a),a&2&&d(l,1)):(l=E1(r),l.c(),d(l,1),l.m(e,t)):l&&(ce(),m(l,1,1,()=>{l=null}),fe());let s={};a&2&&(s["data-testid"]=r[1]?"settings-icon--labeled":"settings-icon"),n.$set(s),(!o||a&4)&&G(e,"triple",r[2])},i(r){o||(d(l),d(n.$$.fragment,r),o=!0)},o(r){m(l),m(n.$$.fragment,r),o=!1},d(r){r&&b(e),l&&l.d(),M(n)}}}function Qb(i){let e,t;return e=new T1({}),{c(){A(e.$$.fragment)},m(n,o){E(e,n,o),t=!0},p:ge,i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){m(e.$$.fragment,n),t=!1},d(n){M(e,n)}}}function E1(i){let e,t;return e=new w1({props:{$$slots:{default:[Zb]},$$scope:{ctx:i}}}),{c(){A(e.$$.fragment)},m(n,o){E(e,n,o),t=!0},p(n,o){let l={};o&18&&(l.$$scope={dirty:o,ctx:n}),e.$set(l)},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){m(e.$$.fragment,n),t=!1},d(n){M(e,n)}}}function Zb(i){let e,t,n;var o=i[1];function l(r,a){return{}}return o&&(e=Rt(o,l(i))),{c(){e&&A(e.$$.fragment),t=$e()},m(r,a){e&&E(e,r,a),v(r,t,a),n=!0},p(r,a){if(a&2&&o!==(o=r[1])){if(e){ce();let s=e;m(s.$$.fragment,1,0,()=>{M(s,1)}),fe()}o?(e=Rt(o,l(r,a)),A(e.$$.fragment),d(e.$$.fragment,1),E(e,t.parentNode,t)):e=null}},i(r){n||(e&&d(e.$$.fragment,r),n=!0)},o(r){e&&m(e.$$.fragment,r),n=!1},d(r){r&&b(t),e&&M(e,r)}}}function Xb(i){let e,t,n,o,l=[Qb,Yb],r=[];function a(s,u){return s[0]?0:1}return e=a(i,-1),t=r[e]=l[e](i),{c(){t.c(),n=$e()},m(s,u){r[e].m(s,u),v(s,n,u),o=!0},p(s,[u]){let f=e;e=a(s,u),e===f?r[e].p(s,u):(ce(),m(r[f],1,1,()=>{r[f]=null}),fe(),t=r[e],t?t.p(s,u):(t=r[e]=l[e](s),t.c()),d(t,1),t.m(n.parentNode,n))},i(s){o||(d(t),o=!0)},o(s){m(t),o=!1},d(s){s&&b(n),r[e].d(s)}}}function Jb(i,e,t){let n,{isMobile:o=!1}=e,{currentQuality:l=void 0}=e,r;return i.$$set=a=>{"isMobile"in a&&t(0,o=a.isMobile),"currentQuality"in a&&t(3,l=a.currentQuality)},i.$$.update=()=>{i.$$.dirty&8&&t(1,n=Ul(l)),i.$$.dirty&2&&t(2,r=!!n&&[Hl,zl].includes(n))},[o,n,r,l]}var Xa=class extends B{constructor(e){super(),D(this,e,Jb,Xb,R,{isMobile:0,currentQuality:3},xb)}},Wl=Xa;function $b(i){let e,t,n,o=i[2].default,l=Ee(o,i,i[1],null),r=[{xmlns:"http://www.w3.org/2000/svg"},{width:"22"},{height:"18"},{fill:"none"},{"aria-hidden":"true"},{"data-testid":"subtitle-empty-icon"},{role:"img"},i[0]],a={};for(let s=0;s<r.length;s+=1)a=ne(a,r[s]);return{c(){e=V("svg"),l&&l.c(),t=V("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"),ye(e,a)},m(s,u){v(s,e,u),l&&l.m(e,null),_(e,t),n=!0},p(s,[u]){l&&l.p&&(!n||u&2)&&Ae(l,o,s,s[1],n?Me(o,s[1],u,null):Le(s[1]),null),ye(e,a=De(r,[{xmlns:"http://www.w3.org/2000/svg"},{width:"22"},{height:"18"},{fill:"none"},{"aria-hidden":"true"},{"data-testid":"subtitle-empty-icon"},{role:"img"},u&1&&s[0]]))},i(s){n||(d(l,s),n=!0)},o(s){m(l,s),n=!1},d(s){s&&b(e),l&&l.d(s)}}}function e2(i,e,t){let{$$slots:n={},$$scope:o}=e;return i.$$set=l=>{t(0,e=ne(ne({},e),ve(l))),"$$scope"in l&&t(1,o=l.$$scope)},e=ve(e),[e,o,n]}var Ja=class extends B{constructor(e){super(),D(this,e,e2,$b,R,{})}},Kl=Ja;function t2(i){let e,t,n,o=i[2].default,l=Ee(o,i,i[1],null),r=[{xmlns:"http://www.w3.org/2000/svg"},{width:"16"},{height:"19"},{fill:"none"},{"aria-hidden":"true"},{"data-testid":"download-icon"},{role:"img"},i[0]],a={};for(let s=0;s<r.length;s+=1)a=ne(a,r[s]);return{c(){e=V("svg"),l&&l.c(),t=V("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"),ye(e,a)},m(s,u){v(s,e,u),l&&l.m(e,null),_(e,t),n=!0},p(s,[u]){l&&l.p&&(!n||u&2)&&Ae(l,o,s,s[1],n?Me(o,s[1],u,null):Le(s[1]),null),ye(e,a=De(r,[{xmlns:"http://www.w3.org/2000/svg"},{width:"16"},{height:"19"},{fill:"none"},{"aria-hidden":"true"},{"data-testid":"download-icon"},{role:"img"},u&1&&s[0]]))},i(s){n||(d(l,s),n=!0)},o(s){m(l,s),n=!1},d(s){s&&b(e),l&&l.d(s)}}}function i2(i,e,t){let{$$slots:n={},$$scope:o}=e;return i.$$set=l=>{t(0,e=ne(ne({},e),ve(l))),"$$scope"in l&&t(1,o=l.$$scope)},e=ve(e),[e,o,n]}var $a=class extends B{constructor(e){super(),D(this,e,i2,t2,R,{})}},M1=$a;function n2(i){let e,t,n,o=i[2].default,l=Ee(o,i,i[1],null),r=[{xmlns:"http://www.w3.org/2000/svg"},{width:"18"},{height:"17"},{fill:"none"},{"aria-hidden":"true"},{"data-testid":"traffic-saving-icon"},{role:"img"},i[0]],a={};for(let s=0;s<r.length;s+=1)a=ne(a,r[s]);return{c(){e=V("svg"),l&&l.c(),t=V("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"),ye(e,a)},m(s,u){v(s,e,u),l&&l.m(e,null),_(e,t),n=!0},p(s,[u]){l&&l.p&&(!n||u&2)&&Ae(l,o,s,s[1],n?Me(o,s[1],u,null):Le(s[1]),null),ye(e,a=De(r,[{xmlns:"http://www.w3.org/2000/svg"},{width:"18"},{height:"17"},{fill:"none"},{"aria-hidden":"true"},{"data-testid":"traffic-saving-icon"},{role:"img"},u&1&&s[0]]))},i(s){n||(d(l,s),n=!0)},o(s){m(l,s),n=!1},d(s){s&&b(e),l&&l.d(s)}}}function o2(i,e,t){let{$$slots:n={},$$scope:o}=e;return i.$$set=l=>{t(0,e=ne(ne({},e),ve(l))),"$$scope"in l&&t(1,o=l.$$scope)},e=ve(e),[e,o,n]}var eu=class extends B{constructor(e){super(),D(this,e,o2,n2,R,{})}},A1=eu;function r2(i){let e,t,n,o,l,r=i[2].default,a=Ee(r,i,i[1],null),s=[{xmlns:"http://www.w3.org/2000/svg"},{width:"24"},{height:"24"},{"aria-hidden":"true"},{"data-testid":"play-speed-icon"},{role:"img"},i[0]],u={};for(let f=0;f<s.length;f+=1)u=ne(u,s[f]);return{c(){e=V("svg"),a&&a.c(),t=V("g"),n=V("path"),o=V("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"),ye(e,u)},m(f,p){v(f,e,p),a&&a.m(e,null),_(e,t),_(t,n),_(t,o),l=!0},p(f,[p]){a&&a.p&&(!l||p&2)&&Ae(a,r,f,f[1],l?Me(r,f[1],p,null):Le(f[1]),null),ye(e,u=De(s,[{xmlns:"http://www.w3.org/2000/svg"},{width:"24"},{height:"24"},{"aria-hidden":"true"},{"data-testid":"play-speed-icon"},{role:"img"},p&1&&f[0]]))},i(f){l||(d(a,f),l=!0)},o(f){m(a,f),l=!1},d(f){f&&b(e),a&&a.d(f)}}}function l2(i,e,t){let{$$slots:n={},$$scope:o}=e;return i.$$set=l=>{t(0,e=ne(ne({},e),ve(l))),"$$scope"in l&&t(1,o=l.$$scope)},e=ve(e),[e,o,n]}var tu=class extends B{constructor(e){super(),D(this,e,l2,r2,R,{})}},L1=tu;function s2(i){let e,t,n,o=i[2].default,l=Ee(o,i,i[1],null),r=[{xmlns:"http://www.w3.org/2000/svg"},{width:"18"},{height:"15"},{fill:"none"},{"aria-hidden":"true"},{"data-testid":"audio-languages-icon"},{role:"img"},i[0]],a={};for(let s=0;s<r.length;s+=1)a=ne(a,r[s]);return{c(){e=V("svg"),l&&l.c(),t=V("path"),c(t,"fill","#fff"),c(t,"d","M8.295 14.247c1.87 1.896 5.505.02 5.505-3.548V5.645l2.399-.697A2.74 2.74 0 0 0 18 2.364l-.01-1.72a.75.75 0 0 0-.906-.623l-.267.061c-.941.215-1.886.431-2.807.721-1.332.45-2.03 1.614-2.01 3.077V9c-3.887.196-5.639 3.286-3.705 5.247M.9.1a.9.9 0 0 0 0 1.8h8.197a.9.9 0 0 0 0-1.8zM.9 5.1a.9.9 0 1 0 0 1.8h7.196a.9.9 0 0 0 0-1.8zM0 11a.9.9 0 0 1 .9-.9h4.183a.9.9 0 1 1 0 1.8H.9A.9.9 0 0 1 0 11"),ye(e,a)},m(s,u){v(s,e,u),l&&l.m(e,null),_(e,t),n=!0},p(s,[u]){l&&l.p&&(!n||u&2)&&Ae(l,o,s,s[1],n?Me(o,s[1],u,null):Le(s[1]),null),ye(e,a=De(r,[{xmlns:"http://www.w3.org/2000/svg"},{width:"18"},{height:"15"},{fill:"none"},{"aria-hidden":"true"},{"data-testid":"audio-languages-icon"},{role:"img"},u&1&&s[0]]))},i(s){n||(d(l,s),n=!0)},o(s){m(l,s),n=!1},d(s){s&&b(e),l&&l.d(s)}}}function a2(i,e,t){let{$$slots:n={},$$scope:o}=e;return i.$$set=l=>{t(0,e=ne(ne({},e),ve(l))),"$$scope"in l&&t(1,o=l.$$scope)},e=ve(e),[e,o,n]}var iu=class extends B{constructor(e){super(),D(this,e,a2,s2,R,{})}},V1=iu;function u2(i){let e,t,n,o=i[2].default,l=Ee(o,i,i[1],null),r=[{xmlns:"http://www.w3.org/2000/svg"},{width:"24"},{height:"24"},{fill:"none"},{"aria-hidden":"true"},{"data-testid":"copy-icon"},{role:"img"},i[0]],a={};for(let s=0;s<r.length;s+=1)a=ne(a,r[s]);return{c(){e=V("svg"),l&&l.c(),t=V("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"),ye(e,a)},m(s,u){v(s,e,u),l&&l.m(e,null),_(e,t),n=!0},p(s,[u]){l&&l.p&&(!n||u&2)&&Ae(l,o,s,s[1],n?Me(o,s[1],u,null):Le(s[1]),null),ye(e,a=De(r,[{xmlns:"http://www.w3.org/2000/svg"},{width:"24"},{height:"24"},{fill:"none"},{"aria-hidden":"true"},{"data-testid":"copy-icon"},{role:"img"},u&1&&s[0]]))},i(s){n||(d(l,s),n=!0)},o(s){m(l,s),n=!1},d(s){s&&b(e),l&&l.d(s)}}}function c2(i,e,t){let{$$slots:n={},$$scope:o}=e;return i.$$set=l=>{t(0,e=ne(ne({},e),ve(l))),"$$scope"in l&&t(1,o=l.$$scope)},e=ve(e),[e,o,n]}var nu=class extends B{constructor(e){super(),D(this,e,c2,u2,R,{})}},ou=nu;function f2(i){let e,t,n,o=i[2].default,l=Ee(o,i,i[1],null),r=[{xmlns:"http://www.w3.org/2000/svg"},{width:"24"},{height:"24"},{fill:"none"},{"aria-hidden":"true"},{"data-testid":"info-icon"},{role:"img"},i[0]],a={};for(let s=0;s<r.length;s+=1)a=ne(a,r[s]);return{c(){e=V("svg"),l&&l.c(),t=V("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"),ye(e,a)},m(s,u){v(s,e,u),l&&l.m(e,null),_(e,t),n=!0},p(s,[u]){l&&l.p&&(!n||u&2)&&Ae(l,o,s,s[1],n?Me(o,s[1],u,null):Le(s[1]),null),ye(e,a=De(r,[{xmlns:"http://www.w3.org/2000/svg"},{width:"24"},{height:"24"},{fill:"none"},{"aria-hidden":"true"},{"data-testid":"info-icon"},{role:"img"},u&1&&s[0]]))},i(s){n||(d(l,s),n=!0)},o(s){m(l,s),n=!1},d(s){s&&b(e),l&&l.d(s)}}}function d2(i,e,t){let{$$slots:n={},$$scope:o}=e;return i.$$set=l=>{t(0,e=ne(ne({},e),ve(l))),"$$scope"in l&&t(1,o=l.$$scope)},e=ve(e),[e,o,n]}var ru=class extends B{constructor(e){super(),D(this,e,d2,f2,R,{})}},R1=ru;function m2(i){let e,t,n,o=i[2].default,l=Ee(o,i,i[1],null),r=[{xmlns:"http://www.w3.org/2000/svg"},{width:"24"},{height:"24"},{fill:"none"},{"aria-hidden":"true"},{"data-testid":"report-icon"},{role:"img"},i[0]],a={};for(let s=0;s<r.length;s+=1)a=ne(a,r[s]);return{c(){e=V("svg"),l&&l.c(),t=V("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"),ye(e,a)},m(s,u){v(s,e,u),l&&l.m(e,null),_(e,t),n=!0},p(s,[u]){l&&l.p&&(!n||u&2)&&Ae(l,o,s,s[1],n?Me(o,s[1],u,null):Le(s[1]),null),ye(e,a=De(r,[{xmlns:"http://www.w3.org/2000/svg"},{width:"24"},{height:"24"},{fill:"none"},{"aria-hidden":"true"},{"data-testid":"report-icon"},{role:"img"},u&1&&s[0]]))},i(s){n||(d(l,s),n=!0)},o(s){m(l,s),n=!1},d(s){s&&b(e),l&&l.d(s)}}}function p2(i,e,t){let{$$slots:n={},$$scope:o}=e;return i.$$set=l=>{t(0,e=ne(ne({},e),ve(l))),"$$scope"in l&&t(1,o=l.$$scope)},e=ve(e),[e,o,n]}var lu=class extends B{constructor(e){super(),D(this,e,p2,m2,R,{})}},B1=lu;var CI=require("@vkontakte/videoplayer-core");function _2(i){Ce(i,"svelte-1a7qwh6",".menu-item-value.svelte-1a7qwh6.svelte-1a7qwh6{position:relative;padding-right:22px}.menu-item-value.svelte-1a7qwh6 span.svelte-1a7qwh6{opacity:0.7}.menu-item-value.sub.svelte-1a7qwh6 span.svelte-1a7qwh6{opacity:1}.quality-icon.svelte-1a7qwh6.svelte-1a7qwh6{position:absolute;top:-8px;right:2px;width:15px}.quality-icon.svelte-1a7qwh6 svg{color:var(--blue-light)}")}function D1(i){let e,t,n;var o=i[3];function l(r,a){return{}}return o&&(t=Rt(o,l(i))),{c(){e=I("div"),t&&A(t.$$.fragment),c(e,"class","quality-icon svelte-1a7qwh6")},m(r,a){v(r,e,a),t&&E(t,e,null),n=!0},p(r,a){if(a&8&&o!==(o=r[3])){if(t){ce();let s=t;m(s.$$.fragment,1,0,()=>{M(s,1)}),fe()}o?(t=Rt(o,l(r,a)),A(t.$$.fragment),d(t.$$.fragment,1),E(t,e,null)):t=null}},i(r){n||(t&&d(t.$$.fragment,r),n=!0)},o(r){t&&m(t.$$.fragment,r),n=!1},d(r){r&&b(e),t&&M(t)}}}function g2(i){let e,t,n,o,l,r=i[3]&&!i[1]&&D1(i);return{c(){e=I("div"),t=I("span"),n=Ne(i[0]),o=H(),r&&r.c(),c(t,"class","svelte-1a7qwh6"),c(e,"class","menu-item-value svelte-1a7qwh6"),G(e,"sub",i[2])},m(a,s){v(a,e,s),_(e,t),_(t,n),_(e,o),r&&r.m(e,null),l=!0},p(a,[s]){(!l||s&1)&&Ge(n,a[0]),a[3]&&!a[1]?r?(r.p(a,s),s&10&&d(r,1)):(r=D1(a),r.c(),d(r,1),r.m(e,null)):r&&(ce(),m(r,1,1,()=>{r=null}),fe()),(!l||s&4)&&G(e,"sub",a[2])},i(a){l||(d(r),l=!0)},o(a){m(r),l=!1},d(a){a&&b(e),r&&r.d()}}}function h2(i,e,t){let n,{quality:o}=e,{label:l}=e,{isMobile:r}=e,{isSubCase:a=!1}=e;return i.$$set=s=>{"quality"in s&&t(4,o=s.quality),"label"in s&&t(0,l=s.label),"isMobile"in s&&t(1,r=s.isMobile),"isSubCase"in s&&t(2,a=s.isSubCase)},i.$$.update=()=>{i.$$.dirty&16&&t(3,n=Ul(o))},[l,r,a,n,o]}var su=class extends B{constructor(e){super(),D(this,e,h2,g2,R,{quality:4,label:0,isMobile:1,isSubCase:2},_2)}},Gl=su;var N1=require("@vkontakte/videoplayer-core");var jl=(i,e,t)=>{if(!i)return"...";let n=e.find(l=>l.value===i),o=n?n.displayValue:i;return t?i===N1.VideoQuality.INVARIANT?U("auto_quality_invariant"):U("auto_quality",{actual:o}):o};function b2(i){Ce(i,"svelte-vk2gx4",".menu-item-value-wrapper.svelte-vk2gx4{right:-22px;position:relative}")}function v2(i){let e,t,n;return t=new Gl({props:{quality:i[0],label:i[1],isMobile:i[2]}}),{c(){e=I("div"),A(t.$$.fragment),c(e,"class","menu-item-value-wrapper svelte-vk2gx4")},m(o,l){v(o,e,l),E(t,e,null),n=!0},p(o,[l]){let r={};l&1&&(r.quality=o[0]),l&2&&(r.label=o[1]),l&4&&(r.isMobile=o[2]),t.$set(r)},i(o){n||(d(t.$$.fragment,o),n=!0)},o(o){m(t.$$.fragment,o),n=!1},d(o){o&&b(e),M(t)}}}function y2(i,e,t){let n,o,l,r,a=nt(),s=a.state.currentQuality$;N(i,s,y=>t(0,l=y));let u=a.state.availableQualities$;N(i,u,y=>t(8,o=y));let f=a.state.isAutoQualityEnabled$;N(i,f,y=>t(7,n=y));let p=a.ui.isMobile;N(i,p,y=>t(2,r=y));let g;return i.$$.update=()=>{i.$$.dirty&385&&t(1,g=jl(l,o,n))},[l,g,r,s,u,f,p,n,o]}var au=class extends B{constructor(e){super(),D(this,e,y2,v2,R,{},b2)}},O1=au;var uu=require("@vkontakte/videoplayer-shared");function k2(i){let e,t,n;var o=i[4];function l(r,a){return{}}return o&&(e=Rt(o,l(i))),{c(){e&&A(e.$$.fragment),t=$e()},m(r,a){e&&E(e,r,a),v(r,t,a),n=!0},p(r,a){if(a&16&&o!==(o=r[4])){if(e){ce();let s=e;m(s.$$.fragment,1,0,()=>{M(s,1)}),fe()}o?(e=Rt(o,l(r,a)),A(e.$$.fragment),d(e.$$.fragment,1),E(e,t.parentNode,t)):e=null}},i(r){n||(e&&d(e.$$.fragment,r),n=!0)},o(r){e&&m(e.$$.fragment,r),n=!1},d(r){r&&b(t),e&&M(e,r)}}}function w2(i){let e;function t(l,r){return l[5]?S2:C2}let n=t(i,-1),o=n(i);return{c(){o.c(),e=$e()},m(l,r){o.m(l,r),v(l,e,r)},p(l,r){n===(n=t(l,r))&&o?o.p(l,r):(o.d(1),o=n(l),o&&(o.c(),o.m(e.parentNode,e)))},i:ge,o:ge,d(l){l&&b(e),o.d(l)}}}function C2(i){let e,t,n,o;return{c(){e=I("img"),c(e,"class","icon"),io(e.src,t=i[4])||c(e,"src",t),c(e,"aria-hidden","true")},m(l,r){v(l,e,r),n||(o=Pe(e,"error",i[6]),n=!0)},p(l,r){r&16&&!io(e.src,t=l[4])&&c(e,"src",t)},d(l){l&&b(e),n=!1,o()}}}function S2(i){let e;return{c(){e=I("div"),e.innerHTML='<div class="inner"></div>',c(e,"class","icon icon-error-stub")},m(t,n){v(t,e,n)},p:ge,d(t){t&&b(e)}}}function I2(i){let e,t,n,o,l,r,a,s,u,f,p,g=[w2,k2],y=[];function h(C,w){return typeof C[4]=="string"?0:1}return n=h(i,-1),o=y[n]=g[n](i),{c(){e=I("li"),t=I("div"),o.c(),l=H(),r=I("div"),a=Ne(i[2]),c(t,"class","icon-wrapper"),c(r,"class","label"),c(e,"class","item"),c(e,"role","menuitem"),c(e,"tabindex","0"),c(e,"aria-label",s=i[3]??i[2]),c(e,"data-testid",i[0]),G(e,"mobile",i[1])},m(C,w){v(C,e,w),_(e,t),y[n].m(t,null),_(e,l),_(e,r),_(r,a),u=!0,f||(p=[Pe(e,"click",mt(i[7])),Pe(e,"keydown",i[8])],f=!0)},p(C,[w]){let F=n;n=h(C,w),n===F?y[n].p(C,w):(ce(),m(y[F],1,1,()=>{y[F]=null}),fe(),o=y[n],o?o.p(C,w):(o=y[n]=g[n](C),o.c()),d(o,1),o.m(t,null)),(!u||w&4)&&Ge(a,C[2]),(!u||w&12&&s!==(s=C[3]??C[2]))&&c(e,"aria-label",s),(!u||w&1)&&c(e,"data-testid",C[0]),(!u||w&2)&&G(e,"mobile",C[1])},i(C){u||(d(o),u=!0)},o(C){m(o),u=!1},d(C){C&&b(e),y[n].d(),f=!1,at(p)}}}function T2(i,e,t){let n,{id:o}=e,{isMobile:l=!1}=e,{onClick:r=uu.noop}=e,{closeSettings:a=uu.noop}=e,{label:s}=e,{ariaLabel:u}=e,{icon:f}=e,p=()=>{t(5,n=!0)},g=()=>{r(),a()},y=h=>{wr(h,()=>g())};return i.$$set=h=>{"id"in h&&t(0,o=h.id),"isMobile"in h&&t(1,l=h.isMobile),"onClick"in h&&t(9,r=h.onClick),"closeSettings"in h&&t(10,a=h.closeSettings),"label"in h&&t(2,s=h.label),"ariaLabel"in h&&t(3,u=h.ariaLabel),"icon"in h&&t(4,f=h.icon)},t(5,n=!1),[o,l,s,u,f,n,p,g,y,r,a]}var cu=class extends B{constructor(e){super(),D(this,e,T2,I2,R,{id:0,isMobile:1,onClick:9,closeSettings:10,label:2,ariaLabel:3,icon:4})}},F1=cu;var W1=require("@vkontakte/videoplayer-shared");function P2(i){Ce(i,"svelte-17wbjko",'.toggle_wrap.svelte-17wbjko{min-height:15px;padding:0;font-size:12px;line-height:15px;cursor:pointer;user-select:none}.toggle.svelte-17wbjko{float:right;margin-top:3px;width:28px;height:9px;border-radius:45px;background-color:var(--toggle-color-separator);cursor:pointer}.toggle.svelte-17wbjko::after{content:"";float:left;position:relative;width:15px;height:15px;border-radius:50%;background-color:var(--toggle-color-off);top:-3px;left:0;transition:left .1s ease}.toggle.on.svelte-17wbjko::after{background-color:var(--toggle-color-on);left:13px}.toggle-label.svelte-17wbjko{overflow:hidden}')}function E2(i){let e,t,n,o;return{c(){e=I("div"),t=I("div"),n=H(),o=I("div"),c(t,"class","toggle svelte-17wbjko"),G(t,"on",i[0]),c(o,"class","toggle-label svelte-17wbjko"),c(e,"class","toggle_wrap svelte-17wbjko")},m(l,r){v(l,e,r),_(e,t),_(e,n),_(e,o)},p(l,[r]){r&1&&G(t,"on",l[0])},i:ge,o:ge,d(l){l&&b(e)}}}function M2(i,e,t){let{enabled:n=!1}=e;return i.$$set=o=>{"enabled"in o&&t(0,n=o.enabled)},[n]}var fu=class extends B{constructor(e){super(),D(this,e,M2,E2,R,{enabled:0},P2)}},q1=fu;var U1=require("@vkontakte/videoplayer-shared");function A2(i){let e,t,n=i[4].default,o=Ee(n,i,i[3],null);return{c(){e=I("div"),o&&o.c(),c(e,"class","overlay")},m(l,r){v(l,e,r),o&&o.m(e,null),i[5](e),t=!0},p(l,[r]){o&&o.p&&(!t||r&8)&&Ae(o,n,l,l[3],t?Me(n,l[3],r,null):Le(l[3]),null)},i(l){t||(d(o,l),t=!0)},o(l){m(o,l),t=!1},d(l){l&&b(e),o&&o.d(l),i[5](null)}}}function L2(i,e,t){let n,{$$slots:o={},$$scope:l}=e,a=nt().ui.overlayContainer$;N(i,a,g=>t(2,n=g));let s,u=g=>{!g||!s||!g.contains(s)||g.removeChild(s)},f=g=>{!g||!s||g.contains(s)||g.appendChild(s)};It(()=>(f(n),()=>u(n)));function p(g){he[g?"unshift":"push"](()=>{s=g,t(0,s)})}return i.$$set=g=>{"$$scope"in g&&t(3,l=g.$$scope)},i.$$.update=()=>{i.$$.dirty&4&&f(n)},[s,a,n,l,o,p]}var du=class extends B{constructor(e){super(),D(this,e,L2,A2,R,{})}},H1=du;function V2(i){Ce(i,"svelte-1jbbzcj",'.tooltip-wrapper.svelte-1jbbzcj{display:flex;flex-direction:column;min-width:0}.full-width.svelte-1jbbzcj{width:100%}.tooltip.svelte-1jbbzcj{position:absolute;opacity:0;visibility:hidden;transition:opacity 200ms, visibility 200ms;bottom:100%;left:0}.content.svelte-1jbbzcj{display:inline-block;padding:6px 10px;border-radius:3px;color:var(--white);background-color:rgba(41, 41, 41, .8)}.tooltip.active.svelte-1jbbzcj{opacity:1;visibility:visible}.tooltip-pointer.svelte-1jbbzcj{position:absolute;bottom:0;width:0;border-top:5px solid rgba(41, 41, 41, .8);border-right:5px solid transparent;border-left:5px solid transparent;content:" ";font-size:0;line-height:0}')}function z1(i){let e,t;return e=new H1({props:{$$slots:{default:[R2]},$$scope:{ctx:i}}}),{c(){A(e.$$.fragment)},m(n,o){E(e,n,o),t=!0},p(n,o){let l={};o[0]&16777445&&(l.$$scope={dirty:o,ctx:n}),e.$set(l)},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){m(e.$$.fragment,n),t=!1},d(n){M(e,n)}}}function R2(i){let e,t,n,o,l;return{c(){e=I("div"),t=I("div"),n=Ne(i[2]),o=H(),l=I("div"),c(t,"class","content svelte-1jbbzcj"),c(l,"class","tooltip-pointer svelte-1jbbzcj"),c(l,"style",i[7]),c(e,"class","tooltip svelte-1jbbzcj"),c(e,"style",i[6]),G(e,"active",i[0])},m(r,a){v(r,e,a),_(e,t),_(t,n),_(e,o),_(e,l),i[23](e)},p(r,a){a[0]&4&&Ge(n,r[2]),a[0]&128&&c(l,"style",r[7]),a[0]&64&&c(e,"style",r[6]),a[0]&1&&G(e,"active",r[0])},d(r){r&&b(e),i[23](null)}}}function B2(i){let e,t,n,o,l,r,a=i[21].default,s=Ee(a,i,i[24],null),u=i[2]&&!i[1]&&z1(i);return{c(){e=I("div"),s&&s.c(),t=H(),u&&u.c(),n=$e(),c(e,"class","tooltip-wrapper svelte-1jbbzcj"),G(e,"full-width",i[3])},m(f,p){v(f,e,p),s&&s.m(e,null),i[22](e),v(f,t,p),u&&u.m(f,p),v(f,n,p),o=!0,l||(r=[Pe(e,"mouseenter",i[10]),Pe(e,"mousemove",i[10]),Pe(e,"mouseleave",i[11]),Pe(e,"mousedown",i[11]),Pe(e,"mouseup",i[10])],l=!0)},p(f,p){s&&s.p&&(!o||p[0]&16777216)&&Ae(s,a,f,f[24],o?Me(a,f[24],p,null):Le(f[24]),null),(!o||p[0]&8)&&G(e,"full-width",f[3]),f[2]&&!f[1]?u?(u.p(f,p),p[0]&6&&d(u,1)):(u=z1(f),u.c(),d(u,1),u.m(n.parentNode,n)):u&&(ce(),m(u,1,1,()=>{u=null}),fe())},i(f){o||(d(s,f),d(u),o=!0)},o(f){m(s,f),m(u),o=!1},d(f){f&&(b(e),b(t),b(n)),s&&s.d(f),i[22](null),u&&u.d(f),l=!1,at(r)}}}var lo=5;function D2(i,e,t){let n,o,{$$slots:l={},$$scope:r}=e,{isMobile:a=!1}=e,{content:s=""}=e,{active:u=!1}=e,{translateX:f=0}=e,{translateY:p=0}=e,{isFullWidthWrapper:g=!1}=e,{maxTooltipWidth:y=void 0}=e,{placement:h="top"}=e,{onVisibilityChange:C=U1.noop}=e,w,F,T,k=0,P=0,x=0,W=0,z=Bt(),se=nt(),de=se.ui.playerSize;N(i,de,j=>t(27,o=j));let L=se.ui.overlayContainer$;N(i,L,j=>t(26,n=j));let oe=se.getLogger().createComponentLog("Tooltip component"),re=()=>{if(!n||!F||!w)return;t(18,P=lo);let j=n.getBoundingClientRect(),ae=w.getBoundingClientRect(),Ze=ae.width,_e=F.clientWidth,Ue=o.width,st=(Ze-_e)/2,je=ae.left+f-j.left,qe=je+st,Xe=ae.top+p-j.top,Ye=_e/2-lo,Q=qe<8,Be=qe+_e>Ue-8;Q&&(qe=8,Ye=je+ae.width/2-2.5*lo),Be&&(qe=Ue-8-_e,Ye=ae.left-j.left+ae.width/2-qe-lo),t(19,x=qe),t(20,W=Xe),t(17,k=Ye)},X=()=>{!n||!F||!w||t(18,P=-lo)},Te=()=>{if(!n||!F||!w)return;t(17,k=lo);let j=n.getBoundingClientRect(),ae=w.getBoundingClientRect(),Ze=ae.height,_e=F.clientHeight,Ue=(Ze-_e)/2+_e,st=ae.left+f-j.left-F.clientWidth,je=2,qe=st-lo;qe<8&&(qe=8);let Ye=ae.top+p-j.top+Ue,Q=je-Ue/2,Be=je-lo;t(19,x=qe),t(20,W=Ye),t(18,P=Q),t(17,k=Be)},q=()=>{!n||!F||!w||t(17,k=-lo)},O=()=>{switch(h){case"top":re();break;case"bottom":X();break;case"left":Te();break;default:q()}},K=()=>{try{if(!n||!w)return;O(),t(0,u=!0)}catch(j){oe({message:String(j)})}},le=()=>{t(0,u=!1)},ee=()=>{F&&(T||(T=window.setTimeout(K,z.controls.hideTimeoutTooltips)),u&&K())},ue=()=>{le(),window.clearTimeout(T),T=void 0},ze=(j,ae)=>{let Ze="";switch(h){case"top":Ze=`transform: translate(${j}px, ${ae}px);`;break;case"bottom":Ze=`transform: translate(${j}px, ${ae}px); top: auto; bottom: 100%;`;break;case"left":Ze=`transform: translate(${j}px, ${ae}px); left: 0; right: auto;`;break;default:Ze=`transform: translate(${j}px, ${ae}px);`}return Ze+=` max-width: ${y===void 0?"auto":`${y}px`};`,Ze},Re=(j,ae)=>{let Ze="";switch(h){case"top":Ze=`transform: translate(${j}px, ${ae}px) rotate(0); top: auto; bottom: 0;`;break;case"bottom":Ze=`transform: translate(${j}px, ${ae}px) rotate(180deg); top: 0; bottom: auto;`;break;case"left":Ze=`transform: translate(${j}px, ${ae}px) rotate(-90deg); left: 100%; top: auto; bottom: 0;`;break;default:Ze=`transform: translate(${j}px, ${ae}px) rotate(90deg); right: 100%; top: auto; bottom: 0;`}return Ze},ke,Ve;It(O),Fn(()=>window.clearTimeout(T));function Qe(j){he[j?"unshift":"push"](()=>{w=j,t(4,w)})}function tt(j){he[j?"unshift":"push"](()=>{F=j,t(5,F)})}return i.$$set=j=>{"isMobile"in j&&t(1,a=j.isMobile),"content"in j&&t(2,s=j.content),"active"in j&&t(0,u=j.active),"translateX"in j&&t(12,f=j.translateX),"translateY"in j&&t(13,p=j.translateY),"isFullWidthWrapper"in j&&t(3,g=j.isFullWidthWrapper),"maxTooltipWidth"in j&&t(14,y=j.maxTooltipWidth),"placement"in j&&t(15,h=j.placement),"onVisibilityChange"in j&&t(16,C=j.onVisibilityChange),"$$scope"in j&&t(24,r=j.$$scope)},i.$$.update=()=>{i.$$.dirty[0]&65537&&C(u),i.$$.dirty[0]&1966080&&(t(6,ke=ze(x,W)),t(7,Ve=Re(k,P)))},[u,a,s,g,w,F,ke,Ve,de,L,ee,ue,f,p,y,h,C,k,P,x,W,l,Qe,tt,r]}var mu=class extends B{constructor(e){super(),D(this,e,D2,B2,R,{isMobile:1,content:2,active:0,translateX:12,translateY:13,isFullWidthWrapper:3,maxTooltipWidth:14,placement:15,onVisibilityChange:16},V2,[-1,-1])}},Tr=mu;function N2(i){let e,t,n;var o=i[4];function l(r,a){return{}}return o&&(e=Rt(o,l(i))),{c(){e&&A(e.$$.fragment),t=$e()},m(r,a){e&&E(e,r,a),v(r,t,a),n=!0},p(r,a){if(a&16&&o!==(o=r[4])){if(e){ce();let s=e;m(s.$$.fragment,1,0,()=>{M(s,1)}),fe()}o?(e=Rt(o,l(r,a)),A(e.$$.fragment),d(e.$$.fragment,1),E(e,t.parentNode,t)):e=null}},i(r){n||(e&&d(e.$$.fragment,r),n=!0)},o(r){e&&m(e.$$.fragment,r),n=!1},d(r){r&&b(t),e&&M(e,r)}}}function O2(i){let e,t;return e=new ql({props:{icon:i[4]}}),{c(){A(e.$$.fragment)},m(n,o){E(e,n,o),t=!0},p(n,o){let l={};o&16&&(l.icon=n[4]),e.$set(l)},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){m(e.$$.fragment,n),t=!1},d(n){M(e,n)}}}function F2(i){let e,t,n,o,l,r,a,s,u,f,p=[O2,N2],g=[];function y(h,C){return typeof h[4]=="string"?0:1}return n=y(i,-1),o=g[n]=p[n](i),u=new q1({props:{enabled:i[5]}}),{c(){e=I("div"),t=I("div"),o.c(),l=H(),r=I("div"),a=Ne(i[2]),s=H(),A(u.$$.fragment),c(t,"class","icon-wrapper"),c(r,"class","label"),c(e,"class","switch-wrapper"),G(e,"mobile",i[1])},m(h,C){v(h,e,C),_(e,t),g[n].m(t,null),_(e,l),_(e,r),_(r,a),_(e,s),E(u,e,null),f=!0},p(h,C){let w=n;n=y(h,C),n===w?g[n].p(h,C):(ce(),m(g[w],1,1,()=>{g[w]=null}),fe(),o=g[n],o?o.p(h,C):(o=g[n]=p[n](h),o.c()),d(o,1),o.m(t,null)),(!f||C&4)&&Ge(a,h[2]);let F={};C&32&&(F.enabled=h[5]),u.$set(F),(!f||C&2)&&G(e,"mobile",h[1])},i(h){f||(d(o),d(u.$$.fragment,h),f=!0)},o(h){m(o),m(u.$$.fragment,h),f=!1},d(h){h&&b(e),g[n].d(),M(u)}}}function q2(i){let e,t,n,o,l,r;return t=new Tr({props:{content:i[6],isMobile:i[1],placement:"left",translateX:10,isFullWidthWrapper:!0,maxTooltipWidth:i[7],$$slots:{default:[F2]},$$scope:{ctx:i}}}),{c(){e=I("li"),A(t.$$.fragment),c(e,"class","item switch-item"),c(e,"role","menuitem"),c(e,"tabindex","0"),c(e,"aria-label",n=i[3]??i[2]),c(e,"data-testid",i[0]),G(e,"mobile",i[1])},m(a,s){v(a,e,s),E(t,e,null),o=!0,l||(r=[Pe(e,"click",mt(i[9])),Pe(e,"keydown",i[8])],l=!0)},p(a,[s]){let u={};s&64&&(u.content=a[6]),s&2&&(u.isMobile=a[1]),s&128&&(u.maxTooltipWidth=a[7]),s&2102&&(u.$$scope={dirty:s,ctx:a}),t.$set(u),(!o||s&12&&n!==(n=a[3]??a[2]))&&c(e,"aria-label",n),(!o||s&1)&&c(e,"data-testid",a[0]),(!o||s&2)&&G(e,"mobile",a[1])},i(a){o||(d(t.$$.fragment,a),o=!0)},o(a){m(t.$$.fragment,a),o=!1},d(a){a&&b(e),M(t),l=!1,at(r)}}}function H2(i,e,t){let{id:n}=e,{isMobile:o=!1}=e,{onClick:l=W1.noop}=e,{label:r}=e,{ariaLabel:a}=e,{icon:s}=e,{enabled:u=!1}=e,{tooltipText:f=void 0}=e,{maxTooltipWidth:p=void 0}=e,g=h=>{Id(h,u,C=>l(C))},y=()=>l(!u);return i.$$set=h=>{"id"in h&&t(0,n=h.id),"isMobile"in h&&t(1,o=h.isMobile),"onClick"in h&&t(10,l=h.onClick),"label"in h&&t(2,r=h.label),"ariaLabel"in h&&t(3,a=h.ariaLabel),"icon"in h&&t(4,s=h.icon),"enabled"in h&&t(5,u=h.enabled),"tooltipText"in h&&t(6,f=h.tooltipText),"maxTooltipWidth"in h&&t(7,p=h.maxTooltipWidth)},[n,o,r,a,s,u,f,p,g,y,l]}var pu=class extends B{constructor(e){super(),D(this,e,H2,q2,R,{id:0,isMobile:1,onClick:10,label:2,ariaLabel:3,icon:4,enabled:5,tooltipText:6,maxTooltipWidth:7})}},K1=pu;var $1=require("@vkontakte/videoplayer-shared");function z2(i){Ce(i,"svelte-pezdbw",".settings-menu-container.mobile.svelte-pezdbw.svelte-pezdbw{width:100%}.settings-menu-container.svelte-pezdbw ul{margin:0;padding:0;list-style-type:none}.settings-menu-container.svelte-pezdbw .menu{background-color:var(--settings-bg);border-radius:var(--settings-radius);transition:opacity 0.2s, visibility 0.2s;overflow:hidden}.settings-menu-container.svelte-pezdbw .menu .item:first-child:not(.mobile){padding-top:6px;border-top-right-radius:var(--settings-radius);border-top-left-radius:var(--settings-radius)}.settings-menu-container.svelte-pezdbw .menu .item:last-child{padding-bottom:6px;border-bottom-right-radius:var(--settings-radius);border-bottom-left-radius:var(--settings-radius)}.settings-menu-container.svelte-pezdbw .menu.desktop{position:absolute;right:0;bottom:0}.settings-menu.svelte-pezdbw.svelte-pezdbw{line-height:40px}.settings-menu.desktop.svelte-pezdbw.svelte-pezdbw{min-width:300px}.settings-menu-container.svelte-pezdbw .menu.mobile{width:100%;background:var(--mobile-settings-bg);font-size:15px;line-height:50px}.settings-menu-container.svelte-pezdbw .menu.mobile.hidden{display:none}.settings-menu-container.svelte-pezdbw .menu .item:not(.switch-item),.settings-menu-container.svelte-pezdbw .menu .switch-wrapper{align-items:center;color:var(--white);cursor:pointer;display:flex;justify-content:flex-end;white-space:nowrap;position:relative}.settings-menu-container.svelte-pezdbw .menu .item:hover{background-color:var(--settings-item-bg-hover)}.settings-menu-container.svelte-pezdbw .menu .item.mobile:hover{background:var(--mobile-settings-bg)}.settings-menu.svelte-pezdbw .item:not(.switch-item),.settings-menu.svelte-pezdbw .switch-wrapper{padding:0 32px 0 18px}.settings-menu.svelte-pezdbw .item.mobile:not(.switch-item),.settings-menu.svelte-pezdbw .switch-wrapper.mobile{padding:0 14px}.settings-menu.svelte-pezdbw .icon-wrapper{width:24px;min-width:24px;height:24px;display:flex;align-items:center;justify-content:center;margin-right:16px}.settings-menu.svelte-pezdbw .label{flex-grow:1;margin-right:24px;overflow:hidden;text-overflow:ellipsis}.settings-menu.svelte-pezdbw .header.svelte-pezdbw{color:var(--white);cursor:pointer;justify-content:space-between;column-gap:12px;display:flex;border-bottom:var(--divider-border);margin-bottom:4px}.settings-menu-container.svelte-pezdbw .items::-webkit-scrollbar{width:8px}.settings-menu-container.svelte-pezdbw .items::-webkit-scrollbar-track{box-shadow:none;background-color:#3a3a3a;border-radius:4px}.settings-menu-container.svelte-pezdbw .items::-webkit-scrollbar-thumb{min-height:40px;border-radius:5px;background-color:#666;border:1px solid transparent;background-clip:padding-box}.settings-menu-container.svelte-pezdbw .items::-webkit-scrollbar-thumb:hover{background-color:#777}.settings-menu-container.svelte-pezdbw .items.mobile{overflow-y:auto;overflow-x:hidden;max-height:160px;text-align:left}.close.svelte-pezdbw.svelte-pezdbw{position:relative;width:12px;height:12px;padding:12px;margin-right:-12px}.close.svelte-pezdbw.svelte-pezdbw:before,.close.svelte-pezdbw.svelte-pezdbw:after{position:absolute;left:18px;content:' ';height:12px;width:2px;background-color:var(--white)}.close.svelte-pezdbw.svelte-pezdbw:before{transform:rotate(45deg)}.close.svelte-pezdbw.svelte-pezdbw:after{transform:rotate(-45deg)}")}function j1(i,e,t){let n=i.slice();return n[89]=e[t],n[90]=e,n[91]=t,n}function x1(i,e,t){let n=i.slice();return n[89]=e[t],n[92]=e,n[93]=t,n}function Y1(i){let e,t,n,o,l,r,a,s=i[5]&&Q1(i),u=gt(i[4]),f=[];for(let g=0;g<u.length;g+=1)f[g]=Z1(x1(i,u,g));let p=g=>m(f[g],1,1,()=>{f[g]=null});return{c(){e=I("div"),s&&s.c(),t=H(),n=I("ul");for(let g=0;g<f.length;g+=1)f[g].c();c(n,"class","items"),c(n,"role","menu"),c(n,"style",o=i[34]()),G(n,"mobile",i[5]),c(e,"class","settings-menu menu svelte-pezdbw"),c(e,"data-testid","settings-menu"),G(e,"desktop",!i[5]),G(e,"mobile",i[5]),G(e,"hidden",!i[6])},m(g,y){v(g,e,y),s&&s.m(e,null),_(e,t),_(e,n);for(let h=0;h<f.length;h+=1)f[h]&&f[h].m(n,null);i[68](n),l=!0,r||(a=[Pe(e,"keydown",i[36]),Pe(e,"mouseenter",i[32]),Pe(e,"mouseleave",i[33])],r=!0)},p(g,y){if(g[5]?s?s.p(g,y):(s=Q1(g),s.c(),s.m(e,t)):s&&(s.d(1),s=null),y[0]&1610612788){u=gt(g[4]);let h;for(h=0;h<u.length;h+=1){let C=x1(g,u,h);f[h]?(f[h].p(C,y),d(f[h],1)):(f[h]=Z1(C),f[h].c(),d(f[h],1),f[h].m(n,null))}for(ce(),h=u.length;h<f.length;h+=1)p(h);fe()}(!l||y[0]&32)&&G(n,"mobile",g[5]),(!l||y[0]&32)&&G(e,"desktop",!g[5]),(!l||y[0]&32)&&G(e,"mobile",g[5]),(!l||y[0]&64)&&G(e,"hidden",!g[6])},i(g){if(!l){for(let y=0;y<u.length;y+=1)d(f[y]);l=!0}},o(g){f=f.filter(Boolean);for(let y=0;y<f.length;y+=1)m(f[y]);l=!1},d(g){g&&b(e),s&&s.d(),$t(f,g),i[68](null),r=!1,at(a)}}}function Q1(i){let e,t,n,o,l,r;return{c(){e=I("div"),t=I("div"),t.textContent=`${U("submenu_settings")}`,n=H(),o=I("div"),c(o,"class","close svelte-pezdbw"),c(e,"class","item header svelte-pezdbw"),G(e,"mobile",i[5])},m(a,s){v(a,e,s),_(e,t),_(e,n),_(e,o),l||(r=Pe(o,"click",mt(i[30])),l=!0)},p(a,s){s[0]&32&&G(e,"mobile",a[5])},d(a){a&&b(e),l=!1,r()}}}function U2(i){let e,t;return e=new K1({props:{isMobile:i[5],id:i[89].id,onClick:i[89].onClick,icon:i[89].icon,label:i[89].label,ariaLabel:i[89].ariaLabel,enabled:i[89].enabled,tooltipText:i[89].tooltipText,maxTooltipWidth:i[89].maxTooltipWidth}}),{c(){A(e.$$.fragment)},m(n,o){E(e,n,o),t=!0},p(n,o){let l={};o[0]&32&&(l.isMobile=n[5]),o[0]&16&&(l.id=n[89].id),o[0]&16&&(l.onClick=n[89].onClick),o[0]&16&&(l.icon=n[89].icon),o[0]&16&&(l.label=n[89].label),o[0]&16&&(l.ariaLabel=n[89].ariaLabel),o[0]&16&&(l.enabled=n[89].enabled),o[0]&16&&(l.tooltipText=n[89].tooltipText),o[0]&16&&(l.maxTooltipWidth=n[89].maxTooltipWidth),e.$set(l)},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){m(e.$$.fragment,n),t=!1},d(n){M(e,n)}}}function W2(i){let e,t;return e=new F1({props:{isMobile:i[5],id:i[89].id,onClick:i[89].onClick,icon:i[89].icon,label:i[89].label,ariaLabel:i[89].ariaLabel,closeSettings:i[30]}}),{c(){A(e.$$.fragment)},m(n,o){E(e,n,o),t=!0},p(n,o){let l={};o[0]&32&&(l.isMobile=n[5]),o[0]&16&&(l.id=n[89].id),o[0]&16&&(l.onClick=n[89].onClick),o[0]&16&&(l.icon=n[89].icon),o[0]&16&&(l.label=n[89].label),o[0]&16&&(l.ariaLabel=n[89].ariaLabel),e.$set(l)},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){m(e.$$.fragment,n),t=!1},d(n){M(e,n)}}}function K2(i){let e,t,n;function o(){return i[66](i[89])}function l(a){i[67](a,i[89])}let r={isMobile:i[5],id:i[89].id,icon:i[89].icon,label:i[89].label,ariaLabel:i[89].ariaLabel,value:i[89].value,valueComponent:i[89].valueComponent,onClick:o,getSubItemForFocus:i[89].getSubItemForFocus};return i[2][i[89].id]!==void 0&&(r.ref=i[2][i[89].id]),e=new k1({props:r}),he.push(()=>Fe(e,"ref",l)),{c(){A(e.$$.fragment)},m(a,s){E(e,a,s),n=!0},p(a,s){i=a;let u={};s[0]&32&&(u.isMobile=i[5]),s[0]&16&&(u.id=i[89].id),s[0]&16&&(u.icon=i[89].icon),s[0]&16&&(u.label=i[89].label),s[0]&16&&(u.ariaLabel=i[89].ariaLabel),s[0]&16&&(u.value=i[89].value),s[0]&16&&(u.valueComponent=i[89].valueComponent),s[0]&16&&(u.onClick=o),s[0]&16&&(u.getSubItemForFocus=i[89].getSubItemForFocus),!t&&s[0]&20&&(t=!0,u.ref=i[2][i[89].id],Oe(()=>t=!1)),e.$set(u)},i(a){n||(d(e.$$.fragment,a),n=!0)},o(a){m(e.$$.fragment,a),n=!1},d(a){M(e,a)}}}function Z1(i){let e,t,n,o,l=[K2,W2,U2],r=[];function a(s,u){return s[89].type==="OPEN_SUB_MENU"?0:s[89].type==="CLICK"?1:s[89].type==="SWITCH"?2:-1}return~(e=a(i,[-1,-1,-1,-1]))&&(t=r[e]=l[e](i)),{c(){t&&t.c(),n=$e()},m(s,u){~e&&r[e].m(s,u),v(s,n,u),o=!0},p(s,u){let f=e;e=a(s,u),e===f?~e&&r[e].p(s,u):(t&&(ce(),m(r[f],1,1,()=>{r[f]=null}),fe()),~e?(t=r[e],t?t.p(s,u):(t=r[e]=l[e](s),t.c()),d(t,1),t.m(n.parentNode,n)):t=null)},i(s){o||(d(t),o=!0)},o(s){m(t),o=!1},d(s){s&&b(n),~e&&r[e].d(s)}}}function X1(i){let e,t,n;function o(r){i[69](r,i[89])}let l={isMobile:i[5],playerControlsHeight:i[1],returnFromSubMenu:i[89].subMenu.returnFromSubMenu??i[31],id:i[89].id,title:i[89].subMenu.title,closeSettingsMenu:i[89].subMenu.closeSettingsMenu,backToMainSettings:i[89].subMenu.backToMainSettings,itemIdReturnCase:i[89].subMenu.itemIdReturnCase,items:i[89].subMenu.items,selectItem:i[89].subMenu.selectItem,minWidth:i[89].subMenu.minWidth??137};return i[3][i[89].id]!==void 0&&(l.listRef=i[3][i[89].id]),e=new v1({props:l}),he.push(()=>Fe(e,"listRef",o)),{c(){A(e.$$.fragment)},m(r,a){E(e,r,a),n=!0},p(r,a){i=r;let s={};a[0]&32&&(s.isMobile=i[5]),a[0]&2&&(s.playerControlsHeight=i[1]),a[0]&16&&(s.returnFromSubMenu=i[89].subMenu.returnFromSubMenu??i[31]),a[0]&16&&(s.id=i[89].id),a[0]&16&&(s.title=i[89].subMenu.title),a[0]&16&&(s.closeSettingsMenu=i[89].subMenu.closeSettingsMenu),a[0]&16&&(s.backToMainSettings=i[89].subMenu.backToMainSettings),a[0]&16&&(s.itemIdReturnCase=i[89].subMenu.itemIdReturnCase),a[0]&16&&(s.items=i[89].subMenu.items),a[0]&16&&(s.selectItem=i[89].subMenu.selectItem),a[0]&16&&(s.minWidth=i[89].subMenu.minWidth??137),!t&&a[0]&24&&(t=!0,s.listRef=i[3][i[89].id],Oe(()=>t=!1)),e.$set(s)},i(r){n||(d(e.$$.fragment,r),n=!0)},o(r){m(e.$$.fragment,r),n=!1},d(r){M(e,r)}}}function J1(i){let e,t,n=i[89].type==="OPEN_SUB_MENU"&&i[89].subMenu?.show&&X1(i);return{c(){n&&n.c(),e=$e()},m(o,l){n&&n.m(o,l),v(o,e,l),t=!0},p(o,l){o[89].type==="OPEN_SUB_MENU"&&o[89].subMenu?.show?n?(n.p(o,l),l[0]&16&&d(n,1)):(n=X1(o),n.c(),d(n,1),n.m(e.parentNode,e)):n&&(ce(),m(n,1,1,()=>{n=null}),fe())},i(o){t||(d(n),t=!0)},o(o){m(n),t=!1},d(o){o&&b(e),n&&n.d(o)}}}function G2(i){let e,t,n,o=i[7]&&Y1(i),l=gt(i[4]),r=[];for(let s=0;s<l.length;s+=1)r[s]=J1(j1(i,l,s));let a=s=>m(r[s],1,1,()=>{r[s]=null});return{c(){e=I("div"),o&&o.c(),t=H();for(let s=0;s<r.length;s+=1)r[s].c();c(e,"class","settings-menu-container svelte-pezdbw"),G(e,"hidden",!i[7]),G(e,"mobile",i[5])},m(s,u){v(s,e,u),o&&o.m(e,null),_(e,t);for(let f=0;f<r.length;f+=1)r[f]&&r[f].m(e,null);n=!0},p(s,u){if(s[7]?o?(o.p(s,u),u[0]&128&&d(o,1)):(o=Y1(s),o.c(),d(o,1),o.m(e,t)):o&&(ce(),m(o,1,1,()=>{o=null}),fe()),u[0]&58|u[1]&1){l=gt(s[4]);let f;for(f=0;f<l.length;f+=1){let p=j1(s,l,f);r[f]?(r[f].p(p,u),d(r[f],1)):(r[f]=J1(p),r[f].c(),d(r[f],1),r[f].m(e,null))}for(ce(),f=l.length;f<r.length;f+=1)a(f);fe()}(!n||u[0]&128)&&G(e,"hidden",!s[7]),(!n||u[0]&32)&&G(e,"mobile",s[5])},i(s){if(!n){d(o);for(let u=0;u<l.length;u+=1)d(r[u]);n=!0}},o(s){m(o),r=r.filter(Boolean);for(let u=0;u<r.length;u+=1)m(r[u]);n=!1},d(s){s&&b(e),o&&o.d(),$t(r,s)}}}function j2(i,e,t){let n,o,l,r,a,s,u,f,p,g,y,h,C,w,F,T,k,P,x,W,z,se,de,L,{ref:oe=void 0}=e,{supportLink:re}=e,{playerControlsHeight:X=0}=e,{returnFocus:Te}=e,q=nt(),O=Bt(),K=q.state.audioStream$;N(i,K,pe=>t(57,w=pe));let le=q.state.availableAudioStreams$;N(i,le,pe=>t(56,C=pe));let ee=q.state.currentQuality$;N(i,ee,pe=>t(60,k=pe));let ue=q.state.availableQualities$;N(i,ue,pe=>t(58,F=pe));let ze=q.state.autoQualityLimitingAvailable$;N(i,ze,pe=>t(64,z=pe));let Re=q.state.isAutoQualityEnabled$;N(i,Re,pe=>t(61,P=pe));let ke=q.state.currentPlaybackRate$;N(i,ke,pe=>t(55,h=pe));let Ve=q.state.availablePlaybackRates$;N(i,Ve,pe=>t(54,y=pe));let Qe=q.state.currentSubtitle$;N(i,Qe,pe=>t(53,g=pe));let tt=q.state.availableSubtitlesList$;N(i,tt,pe=>t(51,f=pe));let j=q.state.canDownload,ae=q.state.hasMpegSources$;N(i,ae,pe=>t(65,se=pe));let Ze=q.ui.settingsMenuVisible;N(i,Ze,pe=>t(7,L=pe));let _e=q.ui.settingsMenuOpenedByKeyboard;N(i,_e,pe=>t(71,l=pe));let Ue=q.ui.isMobile;N(i,Ue,pe=>t(5,r=pe));let st=q.ui.mobileNotReportControlHidden$;N(i,st,pe=>t(62,x=pe));let je=q.state.canChangePlaybackSpeed$;N(i,je,pe=>t(63,W=pe));let qe=q.state.trafficSavingEnabled$;N(i,qe,pe=>t(50,u=pe));let Xe=q.ui.playerSize;N(i,Xe,pe=>t(72,de=pe));let Ye=q.ui.debugPanelVisible;N(i,Ye,pe=>t(49,s=pe));let Q=q.state.isInteractiveTime$,Be=q.ui.additionalSettingsMenuItems$;N(i,Be,pe=>t(48,a=pe));let Ie=q.actions.internal.downloadVideo,$=q.actions.internal.closeSettingsMenu,be=!0,ot=He({});N(i,ot,pe=>t(52,p=pe));let me=!1;function _t(pe){t(6,be=!1);let dt=p;dt[pe]=!0,ot.set(dt)}function We(){l||Te?.(),Pt(),$(),me=!1}function ut(pe){q.actions.internal.setQuality(pe),We()}function Tt(pe){q.actions.internal.setAudioStream(pe),We()}function At(pe){q.actions.internal.setTrafficSavingEnabled(pe)}function Lt(pe){q.actions.internal.setPlaybackRate(pe),We()}function et(pe){q.actions.internal.setSubtitle(pe),We()}function Pt(){t(6,be=!0);let pe=p;Object.keys(pe).forEach(dt=>{pe[dt]=!1}),ot.set(pe)}function Dt(){Ie()}function ci(){(0,$1.isValidURL)(re)&&window.open(re,"_blank"),q.actions.internal.reportProblem(),q.actions.internal.pause()}function lt(){vr(q.actions.internal.getDebugTextData())}let yt=()=>{let pe=q.actions.internal.getTraceTextData(),dt=new Blob([...pe],{type:"application/json"}),Li=window.URL.createObjectURL(dt);Oo(Li,"vk_player_trace_info","json")};function we(){Ye.set(!s)}function bt(){me=!0}function Et(){me=!1}function jt(){return r?`max-height: ${Math.round(de.height*.6)}px`:`max-height: ${de.height-32-X}px; overflow: auto;`}let vt,Nt,qt,xt,fi,di,Ht,zt=He();N(i,zt,pe=>t(59,T=pe));let oi={},Ot={},Ei=pe=>{Ll(pe,$)},Ct=[];It(()=>{let pe=Q.subscribe(dt=>{dt&&!r&&!me&&!l&&We()});return()=>{pe()}});let Mi=pe=>_t(pe.id);function hi(pe,dt){i.$$.not_equal(oi[dt.id],pe)&&(oi[dt.id]=pe,t(2,oi))}function ri(pe){he[pe?"unshift":"push"](()=>{oe=pe,t(0,oe)})}function Ai(pe,dt){i.$$.not_equal(Ot[dt.id],pe)&&(Ot[dt.id]=pe,t(3,Ot))}return i.$$set=pe=>{"ref"in pe&&t(0,oe=pe.ref),"supportLink"in pe&&t(37,re=pe.supportLink),"playerControlsHeight"in pe&&t(1,X=pe.playerControlsHeight),"returnFocus"in pe&&t(38,Te=pe.returnFocus)},i.$$.update=()=>{if(i.$$.dirty[1]&1744830464&&t(46,n=jl(k,F,P)),i.$$.dirty[2]&9&&t(39,vt=j&&se&&!x),i.$$.dirty[2]&5&&t(40,Nt=O.features.trafficSaving&&!x&&z),i.$$.dirty[1]&1048576|i.$$.dirty[2]&1&&t(41,qt=f.length>0&&!x),i.$$.dirty[2]&3&&t(42,xt=!!W&&!x),i.$$.dirty[1]&33554432|i.$$.dirty[2]&1&&t(43,fi=O.features.audioLanguages&&C.length>=2&&!x),i.$$.dirty[2]&1&&t(47,o=!x),i.$$.dirty[1]&1610612736&&t(44,di=P?U("auto_quality_option"):k),i.$$.dirty[1]&25165824&&t(45,Ht=y.find(pe=>pe.value===h)?.displayValue),i.$$.dirty[0]&4|i.$$.dirty[1]&268435456){let pe=T;pe&&(wd(oi[pe]),zt.set(void 0))}i.$$.dirty[0]&56|i.$$.dirty[1]&268435200&&(t(4,Ct=[]),o&&Ct.push({id:"quality-settings",weight:Un["quality-settings"],type:"OPEN_SUB_MENU",getSubItemForFocus:()=>{let pe=F.findIndex(dt=>dt.selected);return Ot["quality-settings"].children[pe+1]},ariaLabel:U("aria_label_menu_quality",{actual:di}),icon:Wl,label:U("menu_quality"),value:n,valueComponent:O1,subMenu:{show:p["quality-settings"],title:U("submenu_quality"),closeSettingsMenu:$,backToMainSettings:Pt,itemIdReturnCase:zt,selectItem:ut,items:F.map(pe=>({value:pe.value,valueComponent:Gl,valueComponentParams:{quality:pe.value,label:pe.displayValue,isMobile:r,isSubCase:!0},selected:pe.selected,label:pe.displayValue}))}}),fi&&Ct.push({id:"audio-language-settings",weight:Un["audio-language-settings"],type:"OPEN_SUB_MENU",getSubItemForFocus:()=>{let pe=C.findIndex(dt=>dt.id===w?.id);return Ot["audio-language-settings"].children[pe+1]},ariaLabel:U("aria_label_menu_audio_languages",{actual:Fl(w,C)}),icon:V1,label:U("menu_audio_languages"),value:Fl(w,C),subMenu:{show:p["audio-language-settings"],title:U("submenu_audio_languages"),closeSettingsMenu:$,backToMainSettings:Pt,itemIdReturnCase:zt,selectItem:Tt,items:C.map(pe=>({value:pe,dataValue:pe.id,selected:pe.id===w?.id,label:Fl(pe,C)}))}}),xt&&Ct.push({id:"playback-rate-settings",weight:Un["playback-rate-settings"],type:"OPEN_SUB_MENU",getSubItemForFocus:()=>{let pe=y.findIndex(dt=>dt.selected);return Ot["playback-rate-settings"].children[pe+1]},ariaLabel:U("aria_label_menu_rate",{actual:Ht}),icon:L1,label:U("menu_playback_rate"),value:`${h}x`,subMenu:{show:p["playback-rate-settings"],title:U("submenu_playback_rate"),closeSettingsMenu:$,backToMainSettings:Pt,itemIdReturnCase:zt,selectItem:Lt,items:y.map(pe=>({value:pe.value,selected:pe.selected,label:pe.displayValue}))}}),qt&&Ct.push({id:"subtitles-settings",weight:Un["subtitles-settings"],type:"OPEN_SUB_MENU",getSubItemForFocus:()=>{let pe=f.findIndex(dt=>dt.selected);return Ot["subtitles-settings"].children[pe+1]},ariaLabel:U("aria_label_menu_subtitle",{actual:g.displayValue}),icon:Kl,label:U("subtitles_caption"),value:g.displayValue,subMenu:{show:p["subtitles-settings"],minWidth:164,title:U("subtitles_caption"),closeSettingsMenu:$,backToMainSettings:Pt,itemIdReturnCase:zt,selectItem:et,items:f.map(pe=>({value:pe,selected:pe.selected,label:pe.displayValue}))}}),Nt&&Ct.push({id:"traffic-saving-settings",weight:Un["traffic-saving-settings"],type:"SWITCH",onClick:At,ariaLabel:u?U("aria_label_submenu_traffic_saving_off"):`${U("aria_label_submenu_traffic_saving_on")}. ${U("traffic_saving_helper_text")}`,icon:A1,label:U("menu_traffic_saving"),enabled:u,tooltipText:U("traffic_saving_helper_text"),maxTooltipWidth:175}),vt&&Ct.push({id:"download",weight:Un.download,type:"CLICK",onClick:Dt,label:U("download_video_caption"),ariaLabel:U("aria_label_menu_download"),icon:M1}),O.showSupport&&Ct.push({id:"report",weight:Un.report,type:"CLICK",onClick:ci,label:U("menu_report"),ariaLabel:`${U("menu_report")}. ${U("aria_label_new_tab_alert")}`,icon:B1,isHiddenFor:["desktop"]}),Ct.push({id:"copy-data",weight:Un["copy-data"],type:"CLICK",onClick:lt,label:U("menu_copy_debug"),ariaLabel:U("menu_copy_debug"),icon:ou,isHiddenFor:["desktop"]}),O.features.saveTraceInfoToFile&&Ct.push({id:"save-trace-info",weight:Un["save-trace-info"],type:"CLICK",onClick:yt,label:U("menu_save_debug"),ariaLabel:U("menu_save_debug"),icon:ou,isHiddenFor:["desktop"]}),Ct.push({id:"debug-info",weight:Un["debug-info"],type:"CLICK",onClick:we,label:s?U("aria_label_menu_debug_overlay_disable"):U("aria_label_menu_debug_overlay_enable"),ariaLabel:U("menu_debug_overlay"),icon:R1,isHiddenFor:["desktop"]}),t(4,Ct=[...Ct,...a.map(pe=>({...pe,isAdditional:!0}))].filter(pe=>!pe.isHiddenFor?.length||!pe.isHiddenFor?.includes("desktop")&&!r||!pe.isHiddenFor?.includes("mobile")&&r).sort((pe,dt)=>pe.weight-dt.weight)))},[oe,X,oi,Ot,Ct,r,be,L,K,le,ee,ue,ze,Re,ke,Ve,Qe,tt,ae,Ze,_e,Ue,st,je,qe,Xe,Ye,Be,ot,_t,We,Pt,bt,Et,jt,zt,Ei,re,Te,vt,Nt,qt,xt,fi,di,Ht,n,o,a,s,u,f,p,g,y,h,C,w,F,T,k,P,x,W,z,se,Mi,hi,ri,Ai]}var _u=class extends B{constructor(e){super(),D(this,e,j2,G2,R,{ref:0,supportLink:37,playerControlsHeight:1,returnFocus:38},z2,[-1,-1,-1,-1])}},xl=_u;function x2(i){Ce(i,"svelte-d9t49t",".settings-icon-wrapper.svelte-d9t49t{position:relative;width:24px}")}function Y2(i){let e,t,n;return t=new Wl({props:{isMobile:i[3],currentQuality:i[4]}}),{c(){e=I("span"),A(t.$$.fragment),c(e,"class","settings-icon-wrapper svelte-d9t49t")},m(o,l){v(o,e,l),E(t,e,null),n=!0},p(o,l){let r={};l&8&&(r.isMobile=o[3]),l&16&&(r.currentQuality=o[4]),t.$set(r)},i(o){n||(d(t.$$.fragment,o),n=!0)},o(o){m(t.$$.fragment,o),n=!1},d(o){o&&b(e),M(t)}}}function Q2(i){let e,t,n;function o(r){i[9](r)}let l={className:i[1]?"opened":"",testId:"btn-settings",click:i[8],ariaLabel:i[2],ariaExpanded:i[1],$$slots:{default:[Y2]},$$scope:{ctx:i}};return i[0]!==void 0&&(l.ref=i[0]),e=new pt({props:l}),he.push(()=>Fe(e,"ref",o)),{c(){A(e.$$.fragment)},m(r,a){E(e,r,a),n=!0},p(r,[a]){let s={};a&2&&(s.className=r[1]?"opened":""),a&4&&(s.ariaLabel=r[2]),a&2&&(s.ariaExpanded=r[1]),a&4120&&(s.$$scope={dirty:a,ctx:r}),!t&&a&1&&(t=!0,s.ref=r[0],Oe(()=>t=!1)),e.$set(s)},i(r){n||(d(e.$$.fragment,r),n=!0)},o(r){m(e.$$.fragment,r),n=!1},d(r){M(e,r)}}}function Z2(i,e,t){let n,o,l,{ref:r=void 0}=e,a=nt(),s=a.state.currentQuality$;N(i,s,C=>t(4,l=C));let u=a.ui.settingsMenuVisible;N(i,u,C=>t(1,n=C));let f=a.actions.internal.toggleSettingsMenu,p=a.ui.isMobile;N(i,p,C=>t(3,o=C));let g;function y(C){let w=yr(C);f(w)}function h(C){r=C,t(0,r)}return i.$$set=C=>{"ref"in C&&t(0,r=C.ref)},i.$$.update=()=>{i.$$.dirty&2&&t(2,g=n?U("tooltip_settings_on"):U("tooltip_settings_off"))},[r,n,g,o,l,s,u,p,y,h]}var gu=class extends B{constructor(e){super(),D(this,e,Z2,Q2,R,{ref:0},x2)}},Yr=gu;function X2(i){let e,t,n,o=i[2].default,l=Ee(o,i,i[1],null),r=[{xmlns:"http://www.w3.org/2000/svg"},{width:"22"},{height:"16"},{fill:"none"},{"aria-hidden":"true"},{"data-testid":"subtitle-pained-icon"},{role:"img"},i[0]],a={};for(let s=0;s<r.length;s+=1)a=ne(a,r[s]);return{c(){e=V("svg"),l&&l.c(),t=V("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"),ye(e,a)},m(s,u){v(s,e,u),l&&l.m(e,null),_(e,t),n=!0},p(s,[u]){l&&l.p&&(!n||u&2)&&Ae(l,o,s,s[1],n?Me(o,s[1],u,null):Le(s[1]),null),ye(e,a=De(r,[{xmlns:"http://www.w3.org/2000/svg"},{width:"22"},{height:"16"},{fill:"none"},{"aria-hidden":"true"},{"data-testid":"subtitle-pained-icon"},{role:"img"},u&1&&s[0]]))},i(s){n||(d(l,s),n=!0)},o(s){m(l,s),n=!1},d(s){s&&b(e),l&&l.d(s)}}}function J2(i,e,t){let{$$slots:n={},$$scope:o}=e;return i.$$set=l=>{t(0,e=ne(ne({},e),ve(l))),"$$scope"in l&&t(1,o=l.$$scope)},e=ve(e),[e,o,n]}var hu=class extends B{constructor(e){super(),D(this,e,J2,X2,R,{})}},em=hu;function $2(i){let e,t;return e=new Kl({}),{c(){A(e.$$.fragment)},m(n,o){E(e,n,o),t=!0},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){m(e.$$.fragment,n),t=!1},d(n){M(e,n)}}}function ev(i){let e,t;return e=new em({}),{c(){A(e.$$.fragment)},m(n,o){E(e,n,o),t=!0},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){m(e.$$.fragment,n),t=!1},d(n){M(e,n)}}}function tv(i){let e,t,n,o,l=[ev,$2],r=[];function a(s,u){return s[0]?0:1}return e=a(i,-1),t=r[e]=l[e](i),{c(){t.c(),n=$e()},m(s,u){r[e].m(s,u),v(s,n,u),o=!0},p(s,u){let f=e;e=a(s,u),e!==f&&(ce(),m(r[f],1,1,()=>{r[f]=null}),fe(),t=r[e],t||(t=r[e]=l[e](s),t.c()),d(t,1),t.m(n.parentNode,n))},i(s){o||(d(t),o=!0)},o(s){m(t),o=!1},d(s){s&&b(n),r[e].d(s)}}}function iv(i){let e,t;return e=new pt({props:{testId:"btn-Subtitles",ariaLabel:i[2],click:i[1],ariaKeyShortCut:Xn.KeyC,$$slots:{default:[tv]},$$scope:{ctx:i}}}),{c(){A(e.$$.fragment)},m(n,o){E(e,n,o),t=!0},p(n,[o]){let l={};o&4&&(l.ariaLabel=n[2]),o&2&&(l.click=n[1]),o&9&&(l.$$scope={dirty:o,ctx:n}),e.$set(l)},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){m(e.$$.fragment,n),t=!1},d(n){M(e,n)}}}function nv(i,e,t){let{isSubtitlesEnabled:n=!1}=e,{click:o}=e,l;return i.$$set=r=>{"isSubtitlesEnabled"in r&&t(0,n=r.isSubtitlesEnabled),"click"in r&&t(1,o=r.click)},i.$$.update=()=>{i.$$.dirty&1&&t(2,l=n?U("tooltip_subtitles_on"):U("tooltip_subtitles_off"))},[n,o,l]}var bu=class extends B{constructor(e){super(),D(this,e,nv,iv,R,{isSubtitlesEnabled:0,click:1})}},tm=bu;function ov(i){Ce(i,"svelte-19o2urr",".time.svelte-19o2urr{display:flex;align-items:center;font-weight:500;font-variant-numeric:tabular-nums;padding:12px 6px}.time.mobile.svelte-19o2urr{padding:0 0 0 8px}.current.svelte-19o2urr{position:relative}.duration.svelte-19o2urr{opacity:0.7}.duration.svelte-19o2urr:before{content:' / ';white-space:pre}")}function im(i){let e,t;return{c(){e=I("span"),t=Ne(i[3]),c(e,"class","duration svelte-19o2urr")},m(n,o){v(n,e,o),_(e,t)},p(n,o){o&8&&Ge(t,n[3])},d(n){n&&b(e)}}}function rv(i){let e,t,n,o,l=i[2]&&im(i);return{c(){e=I("div"),t=I("span"),n=Ne(i[4]),o=H(),l&&l.c(),c(t,"class","current svelte-19o2urr"),c(e,"class","time svelte-19o2urr"),G(e,"mobile",i[1])},m(r,a){v(r,e,a),_(e,t),_(t,n),_(e,o),l&&l.m(e,null),i[7](e)},p(r,[a]){a&16&&Ge(n,r[4]),r[2]?l?l.p(r,a):(l=im(r),l.c(),l.m(e,null)):l&&(l.d(1),l=null),a&2&&G(e,"mobile",r[1])},i:ge,o:ge,d(r){r&&b(e),l&&l.d(),i[7](null)}}}function lv(i,e,t){let{isMobile:n=!1}=e,{duration:o}=e,{position:l}=e,{showDuration:r=!0}=e,{ref:a}=e,s,u;function f(p){he[p?"unshift":"push"](()=>{a=p,t(0,a)})}return i.$$set=p=>{"isMobile"in p&&t(1,n=p.isMobile),"duration"in p&&t(5,o=p.duration),"position"in p&&t(6,l=p.position),"showDuration"in p&&t(2,r=p.showDuration),"ref"in p&&t(0,a=p.ref)},i.$$.update=()=>{i.$$.dirty&32&&t(3,s=Sn(o)),i.$$.dirty&64&&t(4,u=Sn(l))},[a,n,r,s,u,o,l,f]}var vu=class extends B{constructor(e){super(),D(this,e,lv,rv,R,{isMobile:1,duration:5,position:6,showDuration:2,ref:0},ov)}},Yl=vu;var so=require("@vkontakte/videoplayer-shared");function sv(i){Ce(i,"svelte-1n5yyua",".icon.svelte-1n5yyua.svelte-1n5yyua{display:block;width:24px;height:24px}.icon.svelte-1n5yyua .cross.svelte-1n5yyua{visibility:hidden}.icon[data-value='off'].svelte-1n5yyua .wave1.svelte-1n5yyua,.icon[data-value='off'].svelte-1n5yyua .wave2.svelte-1n5yyua{visibility:hidden}.icon[data-value='off'].svelte-1n5yyua .cross.svelte-1n5yyua{visibility:visible}.icon[data-value='mid'].svelte-1n5yyua .wave2.svelte-1n5yyua,.icon[data-value='min'].svelte-1n5yyua .wave2.svelte-1n5yyua{visibility:hidden}")}function av(i){let e,t,n,o,l,r;return{c(){e=V("svg"),t=V("g"),n=V("path"),o=V("path"),l=V("path"),c(n,"class","wave2 svelte-1n5yyua"),c(n,"d","M12.98 18.823c-.031 1.207-.67 1.609-1.828.62-1.719-1.469-3.609-3.194-4.242-3.721-.632-.529-1.645-.62-3.073-.62-1.427 0-1.815-.621-1.815-1.241s-.014-1.83-.014-2.001c0-.055.005-.086.014-.13.02-.095-.058-.973 0-1.59.085-.906.388-1.241 1.815-1.241 1.428 0 2.44-.092 3.073-.62.633-.529 2.523-2.253 4.242-3.722 1.158-.989 1.797-.587 1.829.62.043 1.607 0 3.85 0 6.683 0 2.83.043 5.356 0 6.963zm2.901-8.704A.875.875 0 1 1 17.12 8.88c.176.177.41.47.64.872.384.671.616 1.425.616 2.247s-.232 1.576-.615 2.247a4.23 4.23 0 0 1-.641.872.875.875 0 1 1-1.238-1.238c.074-.073.214-.249.36-.503.241-.423.384-.887.384-1.378s-.143-.955-.385-1.378a2.597 2.597 0 0 0-.359-.503zm3-2A.875.875 0 1 1 20.12 6.88c.263.264.62.74.966 1.432.517 1.033.843 2.255.89 3.716-.047 1.403-.373 2.625-.89 3.658-.346.692-.703 1.168-.966 1.432a.875.875 0 1 1-1.238-1.238c.138-.137.383-.464.639-.976.407-.814.667-1.79.705-2.876-.038-1.144-.298-2.12-.705-2.934-.256-.512-.501-.839-.639-.976z"),c(o,"class","wave1 svelte-1n5yyua"),c(o,"d","M12.98 18.823c-.031 1.207-.67 1.609-1.828.62-1.719-1.469-3.609-3.194-4.242-3.721-.632-.529-1.645-.62-3.073-.62-1.427 0-1.815-.621-1.815-1.241s-.014-1.83-.014-2.001c0-.055.005-.086.014-.13.02-.095-.058-.973 0-1.59.085-.906.388-1.241 1.815-1.241 1.428 0 2.44-.092 3.073-.62.633-.529 2.523-2.253 4.242-3.722 1.158-.989 1.797-.587 1.829.62.043 1.607 0 3.85 0 6.683 0 2.83.043 5.356 0 6.963zm2.901-8.704A.875.875 0 1 1 17.12 8.88c.176.177.41.47.64.872.384.671.616 1.425.616 2.247s-.232 1.576-.615 2.247a4.23 4.23 0 0 1-.641.872.875.875 0 1 1-1.238-1.238c.074-.073.214-.249.36-.503.241-.423.384-.887.384-1.378s-.143-.955-.385-1.378a2.597 2.597 0 0 0-.359-.503z"),c(l,"class","cross svelte-1n5yyua"),c(l,"d","m20 10.763 2.381-2.382A.875.875 0 1 1 23.62 9.62L21.237 12l2.382 2.381a.875.875 0 1 1-1.238 1.238L20 13.237l-2.381 2.382a.875.875 0 1 1-1.238-1.238L18.763 12 16.38 9.619A.875.875 0 1 1 17.62 8.38zm-7.02 8.06c-.031 1.207-.67 1.609-1.828.62-1.719-1.469-3.609-3.194-4.242-3.721-.632-.529-1.645-.62-3.073-.62-1.427 0-1.815-.621-1.815-1.241s-.014-1.83-.014-2.001c0-.055.005-.086.014-.13.02-.095-.058-.973 0-1.59.085-.906.388-1.241 1.815-1.241 1.428 0 2.44-.092 3.073-.62.633-.529 2.523-2.253 4.242-3.722 1.158-.989 1.797-.587 1.829.62.043 1.607 0 3.85 0 6.683 0 2.83.043 5.356 0 6.963z"),c(t,"fill","#fff"),c(t,"fill-rule","evenodd"),c(e,"data-value",i[0]),c(e,"data-testid",r="volume-"+i[0]+"-icon"),c(e,"xmlns","http://www.w3.org/2000/svg"),c(e,"class","icon svelte-1n5yyua"),c(e,"aria-hidden","true")},m(a,s){v(a,e,s),_(e,t),_(t,n),_(t,o),_(t,l)},p(a,[s]){s&1&&c(e,"data-value",a[0]),s&1&&r!==(r="volume-"+a[0]+"-icon")&&c(e,"data-testid",r)},i:ge,o:ge,d(a){a&&b(e)}}}function uv(i,e,t){let{volume:n=1}=e,{muted:o=!1}=e,l=(a,s)=>s?"off":a>.5?"max":a>.2?"mid":a>0?"min":"off",r;return i.$$set=a=>{"volume"in a&&t(1,n=a.volume),"muted"in a&&t(2,o=a.muted)},i.$$.update=()=>{i.$$.dirty&6&&t(0,r=l(n,o))},[r,n,o]}var yu=class extends B{constructor(e){super(),D(this,e,uv,av,R,{volume:1,muted:2},sv)}},xo=yu;var An=require("@vkontakte/videoplayer-shared");var nm=require("@vkontakte/videoplayer-shared");function cv(i){Ce(i,"svelte-p9r045",".btn-container.svelte-p9r045{position:relative;display:flex;align-items:center;height:100%;transition:var(--button-hover-transition);will-change:opacity;-webkit-tap-highlight-color:transparent}.w-max.svelte-p9r045{width:100%;min-width:0}")}function fv(i){let e,t=i[19].default,n=Ee(t,i,i[24],null);return{c(){n&&n.c()},m(o,l){n&&n.m(o,l),e=!0},p(o,l){n&&n.p&&(!e||l&16777216)&&Ae(n,t,o,o[24],e?Me(t,o[24],l,null):Le(o[24]),null)},i(o){e||(d(n,o),e=!0)},o(o){m(n,o),e=!1},d(o){n&&n.d(o)}}}function dv(i){let e,t;return e=new Tr({props:{content:i[11],translateX:i[9],translateY:i[10],isFullWidthWrapper:i[4],active:i[5],placement:i[6],onVisibilityChange:i[8],$$slots:{default:[mv]},$$scope:{ctx:i}}}),{c(){A(e.$$.fragment)},m(n,o){E(e,n,o),t=!0},p(n,o){let l={};o&2048&&(l.content=n[11]),o&512&&(l.translateX=n[9]),o&1024&&(l.translateY=n[10]),o&16&&(l.isFullWidthWrapper=n[4]),o&32&&(l.active=n[5]),o&64&&(l.placement=n[6]),o&256&&(l.onVisibilityChange=n[8]),o&16777216&&(l.$$scope={dirty:o,ctx:n}),e.$set(l)},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){m(e.$$.fragment,n),t=!1},d(n){M(e,n)}}}function mv(i){let e,t=i[19].default,n=Ee(t,i,i[24],null);return{c(){n&&n.c()},m(o,l){n&&n.m(o,l),e=!0},p(o,l){n&&n.p&&(!e||l&16777216)&&Ae(n,t,o,o[24],e?Me(t,o[24],l,null):Le(o[24]),null)},i(o){e||(d(n,o),e=!0)},o(o){m(n,o),e=!1},d(o){n&&n.d(o)}}}function pv(i){let e,t,n,o,l,r,a,s,u,f=[dv,fv],p=[];function g(y,h){return y[3]&&y[11]&&!y[12]?0:1}return t=g(i,-1),n=p[t]=f[t](i),{c(){e=I("div"),n.c(),c(e,"class",o="btn-container "+i[2]+" svelte-p9r045"),c(e,"aria-hidden",l=i[7]||null),Hn(()=>i[23].call(e))},m(y,h){v(y,e,h),p[t].m(e,null),i[22](e),r=ar(e,i[23].bind(e)),a=!0,s||(u=[Pe(e,"pointerdown",mt(i[20])),Pe(e,"click",mt(i[21]))],s=!0)},p(y,[h]){let C=t;t=g(y,h),t===C?p[t].p(y,h):(ce(),m(p[C],1,1,()=>{p[C]=null}),fe(),n=p[t],n?n.p(y,h):(n=p[t]=f[t](y),n.c()),d(n,1),n.m(e,null)),(!a||h&4&&o!==(o="btn-container "+y[2]+" svelte-p9r045"))&&c(e,"class",o),(!a||h&128&&l!==(l=y[7]||null))&&c(e,"aria-hidden",l)},i(y){a||(d(n),a=!0)},o(y){m(n),a=!1},d(y){y&&b(e),p[t].d(),i[22](null),r(),s=!1,at(u)}}}function _v(i,e,t){let n,o,{$$slots:l={},$$scope:r}=e,{className:a=""}=e,{disabled:s=!1}=e,{hasTooltip:u=!0}=e,{ref:f=void 0}=e,{width:p=void 0}=e,{isFullWidthTooltip:g=!0}=e,{tooltipContent:y=""}=e,{tooltipActive:h=!1}=e,{tooltipPlacement:C="top"}=e,{disabledTooltipContent:w=U("tooltip_button_disabled")}=e,{isAriaHidden:F=!1}=e,{onTooltipVisibilityChange:T=nm.noop}=e,{initialTranslateXPx:k=0}=e,{initialTranslateYPx:P=-18}=e,x=nt(),W=x.ui.isMobile;N(i,W,X=>t(12,o=X));let z=x.state.graphIsOpened$;N(i,z,X=>t(18,n=X));let se;function de(X){Cn.call(this,i,X)}function L(X){Cn.call(this,i,X)}function oe(X){he[X?"unshift":"push"](()=>{f=X,t(0,f)})}function re(){p=this.clientWidth,t(1,p)}return i.$$set=X=>{"className"in X&&t(2,a=X.className),"disabled"in X&&t(15,s=X.disabled),"hasTooltip"in X&&t(3,u=X.hasTooltip),"ref"in X&&t(0,f=X.ref),"width"in X&&t(1,p=X.width),"isFullWidthTooltip"in X&&t(4,g=X.isFullWidthTooltip),"tooltipContent"in X&&t(16,y=X.tooltipContent),"tooltipActive"in X&&t(5,h=X.tooltipActive),"tooltipPlacement"in X&&t(6,C=X.tooltipPlacement),"disabledTooltipContent"in X&&t(17,w=X.disabledTooltipContent),"isAriaHidden"in X&&t(7,F=X.isAriaHidden),"onTooltipVisibilityChange"in X&&t(8,T=X.onTooltipVisibilityChange),"initialTranslateXPx"in X&&t(9,k=X.initialTranslateXPx),"initialTranslateYPx"in X&&t(10,P=X.initialTranslateYPx),"$$scope"in X&&t(24,r=X.$$scope)},i.$$.update=()=>{i.$$.dirty&491520&&(s?t(11,se=n?U("tooltip_disabled_when_graph_on"):w):t(11,se=y))},[f,p,a,u,g,h,C,F,T,k,P,se,o,W,z,s,y,w,n,l,de,L,oe,re,r]}var ku=class extends B{constructor(e){super(),D(this,e,_v,pv,R,{className:2,disabled:15,hasTooltip:3,ref:0,width:1,isFullWidthTooltip:4,tooltipContent:16,tooltipActive:5,tooltipPlacement:6,disabledTooltipContent:17,isAriaHidden:7,onTooltipVisibilityChange:8,initialTranslateXPx:9,initialTranslateYPx:10},cv)}},Mt=ku;function gv(i){let e,t,n,o,l,r;return{c(){e=V("svg"),t=V("rect"),o=V("path"),c(t,"width","20"),c(t,"height","20"),c(t,"rx","10"),c(t,"fill","white"),c(t,"fill-opacity",n=i[0]?1:.24),c(o,"d","M12.5259 8.68864L12.587 8.87536L12.3702 8.23648C12.236 7.84095 11.8295 7.60563 11.4192 7.68593C10.9471 7.77831 10.6508 8.24892 10.7718 8.71381L10.8968 9.19361L10.6671 8.33855C10.5566 7.92714 10.1475 7.67011 9.72832 7.74872C9.32282 7.82476 9.04808 8.18606 9.06319 8.57993L8.34064 5.64592C8.21338 5.12912 7.64646 4.85578 7.1621 5.07767C6.79216 5.24715 6.59467 5.65495 6.69131 6.0498L7.98547 11.3373L6.87 10.178C6.52545 9.81987 5.94024 9.86103 5.64933 10.2638C5.44455 10.5474 5.44907 10.9312 5.66048 11.2098L7.89246 14.1518C7.89246 14.1518 9.12075 15.9833 12.1932 15.3769C14.6243 14.8972 15.4434 12.7097 14.7748 10.4997L14.2213 8.20869C14.0975 7.69621 13.5537 7.40646 13.0585 7.58916C12.614 7.75319 12.3788 8.23875 12.5259 8.68864Z"),c(o,"fill",l=i[0]?"var(--interactive-episode-complete)":"white"),c(e,"width","20"),c(e,"height","20"),c(e,"viewBox","0 0 20 20"),c(e,"fill","none"),c(e,"xmlns","http://www.w3.org/2000/svg"),c(e,"aria-hidden","true"),c(e,"data-testid",r=(i[0],"interactive-episode-completed-icon"))},m(a,s){v(a,e,s),_(e,t),_(e,o)},p(a,[s]){s&1&&n!==(n=a[0]?1:.24)&&c(t,"fill-opacity",n),s&1&&l!==(l=a[0]?"var(--interactive-episode-complete)":"white")&&c(o,"fill",l),s&1&&r!==(r=(a[0],"interactive-episode-completed-icon"))&&c(e,"data-testid",r)},i:ge,o:ge,d(a){a&&b(e)}}}function hv(i,e,t){let{completed:n}=e;return i.$$set=o=>{"completed"in o&&t(0,n=o.completed)},[n]}var wu=class extends B{constructor(e){super(),D(this,e,hv,gv,R,{completed:0})}},Ql=wu;function bv(i){Ce(i,"svelte-bklhpe",".interactive-episode-icon.svelte-bklhpe{width:20px;height:20px;position:absolute;transform:translateX(-50%);cursor:default}.interactive-episode-icon.disabled.svelte-bklhpe{pointer-events:none;opacity:0.4}")}function vv(i){let e,t,n,o,l;return t=new Ql({props:{completed:!!i[0].completed}}),{c(){e=I("div"),A(t.$$.fragment),c(e,"class","interactive-episode-icon svelte-bklhpe"),c(e,"style",n=`left: ${i[0].from+i[0].width/2}%`),Hn(()=>i[3].call(e)),G(e,"disabled",i[1])},m(r,a){v(r,e,a),E(t,e,null),o=ar(e,i[3].bind(e)),l=!0},p(r,a){let s={};a&1&&(s.completed=!!r[0].completed),t.$set(s),(!l||a&1&&n!==(n=`left: ${r[0].from+r[0].width/2}%`))&&c(e,"style",n),(!l||a&2)&&G(e,"disabled",r[1])},i(r){l||(d(t.$$.fragment,r),l=!0)},o(r){m(t.$$.fragment,r),l=!1},d(r){r&&b(e),M(t),o()}}}function yv(i){let e,t;return e=new Mt({props:{tooltipContent:U(i[0].completed?"tooltip_episode_finished":"tooltip_episode_unfinished"),initialTranslateXPx:-10,initialTranslateYPx:-10,disabled:i[1],width:i[2]||0,isAriaHidden:!0,isFullWidthTooltip:!1,$$slots:{default:[vv]},$$scope:{ctx:i}}}),{c(){A(e.$$.fragment)},m(n,o){E(e,n,o),t=!0},p(n,[o]){let l={};o&1&&(l.tooltipContent=U(n[0].completed?"tooltip_episode_finished":"tooltip_episode_unfinished")),o&2&&(l.disabled=n[1]),o&4&&(l.width=n[2]||0),o&23&&(l.$$scope={dirty:o,ctx:n}),e.$set(l)},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){m(e.$$.fragment,n),t=!1},d(n){M(e,n)}}}function kv(i,e,t){let{videoEpisode:n}=e,{disabled:o}=e,l;function r(){l=this.clientWidth,t(2,l)}return i.$$set=a=>{"videoEpisode"in a&&t(0,n=a.videoEpisode),"disabled"in a&&t(1,o=a.disabled)},[n,o,l,r]}var Cu=class extends B{constructor(e){super(),D(this,e,kv,yv,R,{videoEpisode:0,disabled:1},bv)}},om=Cu;function wv(i){Ce(i,"svelte-1rzxunm",".video-episodes-wrap.svelte-1rzxunm{position:absolute;width:100%;height:100%}.video-episode.svelte-1rzxunm{position:absolute;height:calc(3 * var(--slider-height));box-sizing:border-box;margin-top:-5px;padding:var(--slider-height) var(--slider-video-episode-gap);transition:transform 0.2s}.video-episode.svelte-1rzxunm:not(.disabled):where(:hover, :active){transform:scaleY(1.5)}.video-episode-inner.svelte-1rzxunm,.video-episode-loaded.svelte-1rzxunm,.video-episode-filled.svelte-1rzxunm{position:absolute;height:var(--slider-height);border-radius:var(--slider-radius)}.video-episode-inner.svelte-1rzxunm{position:absolute;overflow:hidden;width:calc(100% - 2 * var(--slider-video-episode-gap));background:var(--slider-bg)}.video-episode-loaded.svelte-1rzxunm{position:absolute;left:-100%;width:100%;height:100%;border-radius:var(--slider-radius);background:var(--slider-loaded-bg);transition:transform 0.2s}.video-episode-filled.svelte-1rzxunm{position:absolute;left:-100%;width:100%;height:100%;border-radius:var(--slider-radius);background-color:var(--slider-filled-bg)}")}function rm(i,e,t){let n=i.slice();return n[3]=e[t],n}function lm(i){let e,t,n,o,l,r,a,s,u;return{c(){e=I("div"),t=I("div"),n=I("div"),l=H(),r=I("div"),s=H(),c(n,"class","video-episode-loaded svelte-1rzxunm"),c(n,"style",o=`transform: translateX(${i[3].loadedWidth/i[3].width*100}%)`),c(r,"class","video-episode-filled svelte-1rzxunm"),c(r,"style",a=`transform: translateX(${i[3].filledWidth/i[3].width*100}%)`),G(r,"mobile",i[1]),c(t,"class","video-episode-inner svelte-1rzxunm"),c(e,"class","video-episode svelte-1rzxunm"),c(e,"style",u=`left: ${i[3].from}%; width: ${i[3].width}%`),G(e,"disabled",i[2]),G(e,"mobile",i[1])},m(f,p){v(f,e,p),_(e,t),_(t,n),_(t,l),_(t,r),_(e,s)},p(f,p){p&1&&o!==(o=`transform: translateX(${f[3].loadedWidth/f[3].width*100}%)`)&&c(n,"style",o),p&1&&a!==(a=`transform: translateX(${f[3].filledWidth/f[3].width*100}%)`)&&c(r,"style",a),p&2&&G(r,"mobile",f[1]),p&1&&u!==(u=`left: ${f[3].from}%; width: ${f[3].width}%`)&&c(e,"style",u),p&4&&G(e,"disabled",f[2]),p&2&&G(e,"mobile",f[1])},d(f){f&&b(e)}}}function Cv(i){let e,t=gt(i[0]),n=[];for(let o=0;o<t.length;o+=1)n[o]=lm(rm(i,t,o));return{c(){e=I("div");for(let o=0;o<n.length;o+=1)n[o].c();c(e,"class","video-episodes-wrap svelte-1rzxunm")},m(o,l){v(o,e,l);for(let r=0;r<n.length;r+=1)n[r]&&n[r].m(e,null)},p(o,[l]){if(l&7){t=gt(o[0]);let r;for(r=0;r<t.length;r+=1){let a=rm(o,t,r);n[r]?n[r].p(a,l):(n[r]=lm(a),n[r].c(),n[r].m(e,null))}for(;r<n.length;r+=1)n[r].d(1);n.length=t.length}},i:ge,o:ge,d(o){o&&b(e),$t(n,o)}}}function Sv(i,e,t){let{videoEpisodes:n=[]}=e,{isMobile:o}=e,{disabled:l}=e;return i.$$set=r=>{"videoEpisodes"in r&&t(0,n=r.videoEpisodes),"isMobile"in r&&t(1,o=r.isMobile),"disabled"in r&&t(2,l=r.disabled)},[n,o,l]}var Su=class extends B{constructor(e){super(),D(this,e,Sv,Cv,R,{videoEpisodes:0,isMobile:1,disabled:2},wv)}},sm=Su;function Iv(i){Ce(i,"svelte-v8ydei",".interactive-icons.svelte-v8ydei.svelte-v8ydei{position:absolute;width:calc(100% - 20px);top:-28px}.interactive-icons.mobile.svelte-v8ydei.svelte-v8ydei{top:-10px}.slider.svelte-v8ydei.svelte-v8ydei{position:relative;height:var(--slider-height);border-radius:var(--slider-radius);cursor:pointer;transition:visibility 0.2s, opacity 0.2s;will-change:opacity, transform;width:100%;touch-action:none;-webkit-tap-highlight-color:transparent}.no-handle.svelte-v8ydei.svelte-v8ydei{cursor:default}.slider.svelte-v8ydei.svelte-v8ydei:before{content:'';position:absolute;left:0;right:0;top:calc(-1 * (var(--controls-height) / 2 - var(--slider-height)) / 2);height:calc(var(--controls-height) / 2)}.bars.svelte-v8ydei.svelte-v8ydei{position:absolute;width:100%;height:100%;border-radius:var(--slider-radius);overflow:hidden;background:var(--slider-bg)}.loaded.svelte-v8ydei.svelte-v8ydei{position:absolute;left:-100%;width:100%;height:100%;border-radius:var(--slider-radius);background:var(--slider-loaded-bg);transition:transform 0.2s}.filled.svelte-v8ydei.svelte-v8ydei{position:absolute;left:-100%;width:100%;height:100%;border-radius:var(--slider-radius);background-color:var(--slider-filled-bg)}.slider.square.svelte-v8ydei.svelte-v8ydei,.slider.square.svelte-v8ydei>.bars.svelte-v8ydei,.slider.square.svelte-v8ydei .loaded.svelte-v8ydei,.slider.square.svelte-v8ydei .filled.svelte-v8ydei{border-radius:unset}.filled.active-live.svelte-v8ydei.svelte-v8ydei{background-color:var(--slider-filled-active-live-bg)}.filled.ads.svelte-v8ydei.svelte-v8ydei{background-color:var(--slider-filled-ads)}.handleWrap.svelte-v8ydei.svelte-v8ydei{position:absolute;left:-100%;width:100%}.handle.svelte-v8ydei.svelte-v8ydei{position:absolute;width:var(--slider-handle-size);height:var(--slider-handle-size);right:calc(-1 * var(--slider-handle-size) / 2);top:calc((var(--slider-height) - var(--slider-handle-size)) / 2);border-radius:50%;background-color:var(--slider-filled-bg);visibility:hidden;opacity:0;transform:scale(0);transition:opacity 0.2s, transform 0.2s, visibility 0.2s;will-change:opacity, transform}.handle.active-live.svelte-v8ydei.svelte-v8ydei{background-color:var(--slider-filled-active-live-bg)}.slider.svelte-v8ydei:hover .handle.svelte-v8ydei,.slider-dragging.svelte-v8ydei .handle.svelte-v8ydei{visibility:visible;opacity:1;transform:scale(1)}.slider-dragging.svelte-v8ydei .handle.svelte-v8ydei{transform:scale(1.3)}.slider-vertical.svelte-v8ydei.svelte-v8ydei{position:absolute;left:-8px;top:-18px;transform-origin:0 0;transform:rotate(-90deg)}.slider.disabled.svelte-v8ydei.svelte-v8ydei{cursor:default;opacity:0.4}")}function am(i,e,t){let n=i.slice();return n[50]=e[t],n}function um(i){let e,t,n=gt(i[21]),o=[];for(let r=0;r<n.length;r+=1)o[r]=fm(am(i,n,r));let l=r=>m(o[r],1,1,()=>{o[r]=null});return{c(){e=I("div");for(let r=0;r<o.length;r+=1)o[r].c();c(e,"class","interactive-icons svelte-v8ydei"),G(e,"mobile",i[6]),G(e,"hidden",i[6]&&!i[20])},m(r,a){v(r,e,a);for(let s=0;s<o.length;s+=1)o[s]&&o[s].m(e,null);t=!0},p(r,a){if(a[0]&2098176){n=gt(r[21]);let s;for(s=0;s<n.length;s+=1){let u=am(r,n,s);o[s]?(o[s].p(u,a),d(o[s],1)):(o[s]=fm(u),o[s].c(),d(o[s],1),o[s].m(e,null))}for(ce(),s=n.length;s<o.length;s+=1)l(s);fe()}(!t||a[0]&64)&&G(e,"mobile",r[6]),(!t||a[0]&1048640)&&G(e,"hidden",r[6]&&!r[20])},i(r){if(!t){for(let a=0;a<n.length;a+=1)d(o[a]);t=!0}},o(r){o=o.filter(Boolean);for(let a=0;a<o.length;a+=1)m(o[a]);t=!1},d(r){r&&b(e),$t(o,r)}}}function cm(i){let e,t;return e=new om({props:{videoEpisode:i[50],disabled:i[10]}}),{c(){A(e.$$.fragment)},m(n,o){E(e,n,o),t=!0},p(n,o){let l={};o[0]&2097152&&(l.videoEpisode=n[50]),o[0]&1024&&(l.disabled=n[10]),e.$set(l)},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){m(e.$$.fragment,n),t=!1},d(n){M(e,n)}}}function fm(i){let e,t,n=i[50].interactive&&cm(i);return{c(){n&&n.c(),e=$e()},m(o,l){n&&n.m(o,l),v(o,e,l),t=!0},p(o,l){o[50].interactive?n?(n.p(o,l),l[0]&2097152&&d(n,1)):(n=cm(o),n.c(),d(n,1),n.m(e.parentNode,e)):n&&(ce(),m(n,1,1,()=>{n=null}),fe())},i(o){t||(d(n),t=!0)},o(o){m(n),t=!1},d(o){o&&b(e),n&&n.d(o)}}}function Tv(i){let e,t,n,o,l,r;return{c(){e=I("div"),t=I("div"),o=H(),l=I("div"),c(t,"class","loaded svelte-v8ydei"),c(t,"style",n=`transform: translateX(${i[12]*100}%);`),c(l,"class","filled svelte-v8ydei"),c(l,"style",r=`transform: translateX(${i[13]*100}%);`),G(l,"active-live",i[5]),G(l,"ads",i[7]),c(e,"class","bars svelte-v8ydei")},m(a,s){v(a,e,s),_(e,t),_(e,o),_(e,l)},p(a,s){s[0]&4096&&n!==(n=`transform: translateX(${a[12]*100}%);`)&&c(t,"style",n),s[0]&8192&&r!==(r=`transform: translateX(${a[13]*100}%);`)&&c(l,"style",r),s[0]&32&&G(l,"active-live",a[5]),s[0]&128&&G(l,"ads",a[7])},i:ge,o:ge,d(a){a&&b(e)}}}function Pv(i){let e,t;return e=new sm({props:{videoEpisodes:i[21],disabled:i[10],isMobile:i[6]}}),{c(){A(e.$$.fragment)},m(n,o){E(e,n,o),t=!0},p(n,o){let l={};o[0]&2097152&&(l.videoEpisodes=n[21]),o[0]&1024&&(l.disabled=n[10]),o[0]&64&&(l.isMobile=n[6]),e.$set(l)},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){m(e.$$.fragment,n),t=!1},d(n){M(e,n)}}}function Ev(i){let e,t,n,o,l,r,a,s,u,f,p,g,y,h=i[9]&&um(i),C=[Pv,Tv],w=[];function F(T,k){return T[21].length?0:1}return n=F(i,[-1,-1]),o=w[n]=C[n](i),{c(){h&&h.c(),e=H(),t=I("div"),o.c(),l=H(),r=I("div"),a=I("div"),c(a,"class","handle svelte-v8ydei"),G(a,"active-live",i[5]),c(r,"class","handleWrap svelte-v8ydei"),c(r,"style",s=`transform: translateX(${i[14]*100}%);`),G(r,"hidden",i[11]),c(t,"class",u="slider "+i[1]+" svelte-v8ydei"),c(t,"aria-label",i[15]),c(t,"aria-valuemin",i[16]),c(t,"aria-valuemax",i[17]),c(t,"aria-valuenow",i[18]),c(t,"aria-valuetext",i[19]),c(t,"role","slider"),c(t,"tabindex","0"),c(t,"data-testid",f=i[2]??null),G(t,"disabled",i[10]),G(t,"slider-dragging",i[20]),G(t,"hidden",i[3]),G(t,"slider-vertical",i[4]),G(t,"no-handle",i[11]),G(t,"square",i[8])},m(T,k){h&&h.m(T,k),v(T,e,k),v(T,t,k),w[n].m(t,null),_(t,l),_(t,r),_(r,a),i[44](t),p=!0,g||(y=[Pe(t,"pointerdown",Gt(i[22])),Pe(t,"pointermove",Gt(i[23])),Pe(t,"pointerup",Gt(i[24])),Pe(t,"pointerenter",Gt(i[25])),Pe(t,"pointerleave",Gt(i[26])),Pe(t,"click",mt(i[28])),Pe(t,"wheel",i[27])],g=!0)},p(T,k){T[9]?h?(h.p(T,k),k[0]&512&&d(h,1)):(h=um(T),h.c(),d(h,1),h.m(e.parentNode,e)):h&&(ce(),m(h,1,1,()=>{h=null}),fe());let P=n;n=F(T,k),n===P?w[n].p(T,k):(ce(),m(w[P],1,1,()=>{w[P]=null}),fe(),o=w[n],o?o.p(T,k):(o=w[n]=C[n](T),o.c()),d(o,1),o.m(t,l)),(!p||k[0]&32)&&G(a,"active-live",T[5]),(!p||k[0]&16384&&s!==(s=`transform: translateX(${T[14]*100}%);`))&&c(r,"style",s),(!p||k[0]&2048)&&G(r,"hidden",T[11]),(!p||k[0]&2&&u!==(u="slider "+T[1]+" svelte-v8ydei"))&&c(t,"class",u),(!p||k[0]&32768)&&c(t,"aria-label",T[15]),(!p||k[0]&65536)&&c(t,"aria-valuemin",T[16]),(!p||k[0]&131072)&&c(t,"aria-valuemax",T[17]),(!p||k[0]&262144)&&c(t,"aria-valuenow",T[18]),(!p||k[0]&524288)&&c(t,"aria-valuetext",T[19]),(!p||k[0]&4&&f!==(f=T[2]??null))&&c(t,"data-testid",f),(!p||k[0]&1026)&&G(t,"disabled",T[10]),(!p||k[0]&1048578)&&G(t,"slider-dragging",T[20]),(!p||k[0]&10)&&G(t,"hidden",T[3]),(!p||k[0]&18)&&G(t,"slider-vertical",T[4]),(!p||k[0]&2050)&&G(t,"no-handle",T[11]),(!p||k[0]&258)&&G(t,"square",T[8])},i(T){p||(d(h),d(o),p=!0)},o(T){m(h),m(o),p=!1},d(T){T&&(b(e),b(t)),h&&h.d(T),w[n].d(),i[44](null),g=!1,at(y)}}}function Mv(i,e,t){let n,o,{ref:l=void 0}=e,{className:r=""}=e,{testId:a=void 0}=e,{isHidden:s=!1}=e,{isVertical:u=!1}=e,{isActiveLive:f=!1}=e,{isMobile:p=!1}=e,{isAds:g=!1}=e,{squareBorders:y=!1}=e,{videoEpisodes:h=[]}=e,{withWheelHandler:C=!1}=e,{isInteractive:w=!1}=e,{disabled:F=!1}=e,{hideHandel:T=!1}=e,k,{onPointerDown:P=An.noop}=e,{onHandleMove:x=An.noop}=e,{onPointerUp:W=An.noop}=e,{onPointerEnter:z=An.noop}=e,{onPointerMove:se=An.noop}=e,{onPointerLeave:de=An.noop}=e,{onWheelUp:L=An.noop}=e,{onWheelDown:oe=An.noop}=e,{onWheelLeft:re=An.noop}=e,{onWheelRight:X=An.noop}=e,{onDisabledClick:Te=An.noop}=e,{loadedProgress:q=0}=e,{filledProgress:O=0}=e,{handleProgress:K=0}=e,{ariaLabel:le=""}=e,{ariaValueMin:ee=void 0}=e,{ariaValueMax:ue=void 0}=e,{ariaValueNow:ze=void 0}=e,{ariaValueText:Re=""}=e,ke=Bt(),Ve=!1,Qe;function tt(Q){if(l&&(k=l.getBoundingClientRect()),F||Ve||!l)return;t(20,Ve=!0);let Be=je(Q.clientX,Q.clientY);P(Be),l.setPointerCapture(Q.pointerId)}function j(Q){if(F)return;let Be=je(Q.clientX,Q.clientY),Ie=qe(Q.clientX);se(Be,Ie,k.width),Ve&&x(Be)}function ae(Q){if(F||!Ve)return;t(20,Ve=!1);let Be=je(Q.clientX,Q.clientY);W(Be)}function Ze(Q){if(l&&(k=l.getBoundingClientRect()),F)return;let Be=je(Q.clientX,Q.clientY),Ie=qe(Q.clientX);z(Be,Ie,k.width)}function _e(){F||de()}function Ue(Q){F||C&&(Q.preventDefault(),Q.deltaY<0?L():Q.deltaY>0?oe():Q.deltaX>0?X():re())}function st(Q){F&&Te(je(Q.clientX,Q.clientY))}function je(Q,Be){return u?Math.max(0,Math.min(1,(k.height-(Be-k.top))/k.height)):Math.min(Math.max(Q-k.x,0),k.width)/k.width}function qe(Q){return Math.min(Math.max(Q-k.x,0),k.width)}function Xe(Q,Be){let Ie=ke.features.episodesClustering&&!w?ke.episodeMinWidthPc:0,$=[],be=0,ot=0,me=0;for(let ut=1;ut<h.length;ut++)ot=h[ut].time/Qe*100,ot-be>Ie&&($.push({from:be,width:Math.max(0,ot-be),loadedWidth:Math.max(0,Math.min(ot,Q)-be),filledWidth:Math.max(0,Math.min(ot,Be)-be),interactive:h[ut-1].interactive,completed:h[ut-1].completed}),be=h[ut].time/Qe*100,me++);let _t={from:be,width:Math.max(0,100-be),loadedWidth:Math.max(0,Math.min(Q,100)-be),filledWidth:Math.max(0,Math.min(Be,100)-be),interactive:h[me].interactive,completed:h[me].completed};100-be<Ie?(me-=1,$[me].width+=100-be,$[me].loadedWidth+=Math.max(0,Math.min(Q,100)-be),$[me].filledWidth+=Math.max(0,Math.min(Be,100)-be)):$[me]=_t;let We=h[0].time;if(We!==0){let ut=We/Qe*100;$.unshift({from:0,width:ut,loadedWidth:Math.min(ut,Q),filledWidth:Math.min(ut,Be)})}return $}function Ye(Q){he[Q?"unshift":"push"](()=>{l=Q,t(0,l)})}return i.$$set=Q=>{"ref"in Q&&t(0,l=Q.ref),"className"in Q&&t(1,r=Q.className),"testId"in Q&&t(2,a=Q.testId),"isHidden"in Q&&t(3,s=Q.isHidden),"isVertical"in Q&&t(4,u=Q.isVertical),"isActiveLive"in Q&&t(5,f=Q.isActiveLive),"isMobile"in Q&&t(6,p=Q.isMobile),"isAds"in Q&&t(7,g=Q.isAds),"squareBorders"in Q&&t(8,y=Q.squareBorders),"videoEpisodes"in Q&&t(29,h=Q.videoEpisodes),"withWheelHandler"in Q&&t(30,C=Q.withWheelHandler),"isInteractive"in Q&&t(9,w=Q.isInteractive),"disabled"in Q&&t(10,F=Q.disabled),"hideHandel"in Q&&t(11,T=Q.hideHandel),"onPointerDown"in Q&&t(31,P=Q.onPointerDown),"onHandleMove"in Q&&t(32,x=Q.onHandleMove),"onPointerUp"in Q&&t(33,W=Q.onPointerUp),"onPointerEnter"in Q&&t(34,z=Q.onPointerEnter),"onPointerMove"in Q&&t(35,se=Q.onPointerMove),"onPointerLeave"in Q&&t(36,de=Q.onPointerLeave),"onWheelUp"in Q&&t(37,L=Q.onWheelUp),"onWheelDown"in Q&&t(38,oe=Q.onWheelDown),"onWheelLeft"in Q&&t(39,re=Q.onWheelLeft),"onWheelRight"in Q&&t(40,X=Q.onWheelRight),"onDisabledClick"in Q&&t(41,Te=Q.onDisabledClick),"loadedProgress"in Q&&t(12,q=Q.loadedProgress),"filledProgress"in Q&&t(13,O=Q.filledProgress),"handleProgress"in Q&&t(14,K=Q.handleProgress),"ariaLabel"in Q&&t(15,le=Q.ariaLabel),"ariaValueMin"in Q&&t(16,ee=Q.ariaValueMin),"ariaValueMax"in Q&&t(17,ue=Q.ariaValueMax),"ariaValueNow"in Q&&t(18,ze=Q.ariaValueNow),"ariaValueText"in Q&&t(19,Re=Q.ariaValueText)},i.$$.update=()=>{i.$$.dirty[0]&131072&&t(42,Qe=ue??0),i.$$.dirty[0]&536870912|i.$$.dirty[1]&2048&&t(43,n=h[h.length-1]?.time<Qe),i.$$.dirty[0]&536883200|i.$$.dirty[1]&6144&&t(21,o=h.length&&n&&Qe?Xe(q*100,O*100):[])},[l,r,a,s,u,f,p,g,y,w,F,T,q,O,K,le,ee,ue,ze,Re,Ve,o,tt,j,ae,Ze,_e,Ue,st,h,C,P,x,W,z,se,de,L,oe,re,X,Te,Qe,n,Ye]}var Iu=class extends B{constructor(e){super(),D(this,e,Mv,Ev,R,{ref:0,className:1,testId:2,isHidden:3,isVertical:4,isActiveLive:5,isMobile:6,isAds:7,squareBorders:8,videoEpisodes:29,withWheelHandler:30,isInteractive:9,disabled:10,hideHandel:11,onPointerDown:31,onHandleMove:32,onPointerUp:33,onPointerEnter:34,onPointerMove:35,onPointerLeave:36,onWheelUp:37,onWheelDown:38,onWheelLeft:39,onWheelRight:40,onDisabledClick:41,loadedProgress:12,filledProgress:13,handleProgress:14,ariaLabel:15,ariaValueMin:16,ariaValueMax:17,ariaValueNow:18,ariaValueText:19},Iv,[-1,-1])}},Pr=Iu;var Ji=(i,e)=>Do[i]>=Do[e],dm=(i,e)=>Do[i]<Do[e],Zl=(i,e)=>Do[i]<=Do[e],mm=i=>i>699?"xl":i>599?"l":i>509?"m":i>320?"s":"xs";function Av(i){Ce(i,"svelte-1l78lz9",".volumeBar-container.svelte-1l78lz9{display:flex;align-items:center}.volumeBar-container.vertical.svelte-1l78lz9,.vertical.svelte-1l78lz9 .tooltip-wrapper,.vertical.svelte-1l78lz9 .btn{width:40px}.volumeBar.svelte-1l78lz9{display:flex;align-items:center;margin:0 8px;position:relative;width:70px}.volumeBar-slider-vertical{width:50px !important}.volumeBar-vertical.svelte-1l78lz9{padding:0 8px 0 0;width:0}")}function Lv(i){let e,t;return e=new xo({props:{volume:i[3],muted:i[1]}}),{c(){A(e.$$.fragment)},m(n,o){E(e,n,o),t=!0},p(n,o){let l={};o[0]&8&&(l.volume=n[3]),o[0]&2&&(l.muted=n[1]),e.$set(l)},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){m(e.$$.fragment,n),t=!1},d(n){M(e,n)}}}function Vv(i){let e,t;return e=new pt({props:{className:"btn-full-opacity",disabled:i[9],testId:i[2]?"btn-volume-vertical":"btn-volume-horizontal",ariaLabel:i[7],click:i[0],ariaKeyShortCut:Xn.KeyM,$$slots:{default:[Lv]},$$scope:{ctx:i}}}),{c(){A(e.$$.fragment)},m(n,o){E(e,n,o),t=!0},p(n,o){let l={};o[0]&512&&(l.disabled=n[9]),o[0]&4&&(l.testId=n[2]?"btn-volume-vertical":"btn-volume-horizontal"),o[0]&128&&(l.ariaLabel=n[7]),o[0]&1&&(l.click=n[0]),o[0]&10|o[1]&32&&(l.$$scope={dirty:o,ctx:n}),e.$set(l)},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){m(e.$$.fragment,n),t=!1},d(n){M(e,n)}}}function pm(i){let e,t,n;return t=new Pr({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]:so.noop,onPointerLeave:i[2]?i[20]:so.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=I("div"),A(t.$$.fragment),c(e,"class","volumeBar svelte-1l78lz9"),G(e,"volumeBar-vertical",i[2])},m(o,l){v(o,e,l),E(t,e,null),n=!0},p(o,l){let r={};l[0]&4&&(r.className=o[2]?"volumeBar-slider-vertical":""),l[0]&36&&(r.isHidden=o[2]&&!o[5]),l[0]&4&&(r.isVertical=o[2]),l[0]&4&&(r.onPointerEnter=o[2]?o[19]:so.noop),l[0]&4&&(r.onPointerLeave=o[2]?o[20]:so.noop),l[0]&256&&(r.ariaValueNow=Math.round(o[8]*100)),l[0]&256&&(r.ariaValueText=`${Math.round(o[8]*100)}%`),l[0]&256&&(r.filledProgress=o[8]),l[0]&256&&(r.handleProgress=o[8]),l[0]&4&&(r.testId=o[2]?"volume-slider-vertical":"volume-slider"),t.$set(r),(!n||l[0]&4)&&G(e,"volumeBar-vertical",o[2])},i(o){n||(d(t.$$.fragment,o),n=!0)},o(o){m(t.$$.fragment,o),n=!1},d(o){o&&b(e),M(t)}}}function Rv(i){let e,t,n,o,l,r;t=new Tr({props:{content:i[6],translateY:-18,$$slots:{default:[Vv]},$$scope:{ctx:i}}});let a=i[4]&&pm(i);return{c(){e=I("div"),A(t.$$.fragment),n=H(),a&&a.c(),c(e,"class","volumeBar-container svelte-1l78lz9"),G(e,"vertical",i[2])},m(s,u){v(s,e,u),E(t,e,null),_(e,n),a&&a.m(e,null),o=!0,l||(r=[Pe(e,"mouseenter",function(){Wt(i[2]?i[21]:so.noop)&&(i[2]?i[21]:so.noop).apply(this,arguments)}),Pe(e,"mouseleave",function(){Wt(i[2]?i[22]:so.noop)&&(i[2]?i[22]:so.noop).apply(this,arguments)}),Pe(e,"wheel",Gt(i[23]))],l=!0)},p(s,u){i=s;let f={};u[0]&64&&(f.content=i[6]),u[0]&655|u[1]&32&&(f.$$scope={dirty:u,ctx:i}),t.$set(f),i[4]?a?(a.p(i,u),u[0]&16&&d(a,1)):(a=pm(i),a.c(),d(a,1),a.m(e,null)):a&&(ce(),m(a,1,1,()=>{a=null}),fe()),(!o||u[0]&4)&&G(e,"vertical",i[2])},i(s){o||(d(t.$$.fragment,s),d(a),o=!0)},o(s){m(t.$$.fragment,s),m(a),o=!1},d(s){s&&b(e),M(t),a&&a.d(),l=!1,at(r)}}}function Bv(i,e,t){let n,o,l,r,{click:a}=e,s=nt(),u=Bt(),f=s.state.volume$;N(i,f,ke=>t(3,n=ke));let p=s.state.muted$;N(i,p,ke=>t(25,r=ke));let g=s.actions.internal.setVolume,y=s.ui.currentGridType$;N(i,y,ke=>t(24,l=ke));let h=s.callbacks?.onAudioDoesNotExistHint,C=s.callbacks?.onAudioDisabledHint,w=s.state.isAudioAvailable$;N(i,w,ke=>t(4,o=ke));let F=s.state.isAudioDisabled,T=!1,k,P,x,W,z,se,de=1,L=!1,oe=!1;function re(ke){de=n,g(ke)}function X(){Dl(s,n,u.controls.volumeStepWheel)}function Te(){Nl(s,n,u.controls.volumeStepWheel)}function q(ke){g(ke)}function O(ke){let Ve=ke;g(Ve,Ve===0?de:Ve)}function K(){L=!0}function le(){L=!1,ze()}function ee(){clearTimeout(k),t(5,T=!0)}function ue(){ze()}function ze(){k=window.setTimeout(()=>{L||t(5,T=!1)},u.controls.volumeBarTimeout)}function Re(ke){ke.deltaY<0?X():ke.deltaY>0&&Te()}return i.$$set=ke=>{"click"in ke&&t(0,a=ke.click)},i.$$.update=()=>{i.$$.dirty[0]&33554448&&t(1,W=!o||r),i.$$.dirty[0]&16777216&&t(2,z=Zl(l,"s")),i.$$.dirty[0]&6&&(z?t(6,P=""):t(6,P=W?U("tooltip_volume"):U("tooltip_volume_muted")),t(7,x=W?U("tooltip_volume"):U("tooltip_volume_muted"))),i.$$.dirty[0]&10&&t(8,se=W?0:n),i.$$.dirty[0]&16&&(o?t(9,oe=F&&!C):t(9,oe=!h))},[a,W,z,n,o,T,P,x,se,oe,f,p,y,w,re,X,Te,q,O,K,le,ee,ue,Re,l,r]}var Tu=class extends B{constructor(e){super(),D(this,e,Bv,Rv,R,{click:0},Av,[-1,-1])}},_m=Tu;var bm=require("@vkontakte/videoplayer-shared");function Dv(i){let e,t,n,o,l,r=i[2].default,a=Ee(r,i,i[1],null),s=[{xmlns:"http://www.w3.org/2000/svg"},{width:"24"},{height:"24"},{"aria-hidden":"true"},{role:"img"},i[0]],u={};for(let f=0;f<s.length;f+=1)u=ne(u,s[f]);return{c(){e=V("svg"),a&&a.c(),t=V("g"),n=V("path"),o=V("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"),ye(e,u)},m(f,p){v(f,e,p),a&&a.m(e,null),_(e,t),_(t,n),_(t,o),l=!0},p(f,[p]){a&&a.p&&(!l||p&2)&&Ae(a,r,f,f[1],l?Me(r,f[1],p,null):Le(f[1]),null),ye(e,u=De(s,[{xmlns:"http://www.w3.org/2000/svg"},{width:"24"},{height:"24"},{"aria-hidden":"true"},{role:"img"},p&1&&f[0]]))},i(f){l||(d(a,f),l=!0)},o(f){m(a,f),l=!1},d(f){f&&b(e),a&&a.d(f)}}}function Nv(i,e,t){let{$$slots:n={},$$scope:o}=e;return i.$$set=l=>{t(0,e=ne(ne({},e),ve(l))),"$$scope"in l&&t(1,o=l.$$scope)},e=ve(e),[e,o,n]}var Pu=class extends B{constructor(e){super(),D(this,e,Nv,Dv,R,{})}},gm=Pu;function Ov(i){Ce(i,"svelte-17t966y",'svg[data-testid="close-fullscreen-icon"] ._enter,svg[data-testid="open-fullscreen-icon"] ._exit{visibility:hidden;opacity:0}')}function Fv(i){let e,t;return e=new gm({props:{"data-testid":i[0]?"close-fullscreen-icon":"open-fullscreen-icon"}}),{c(){A(e.$$.fragment)},m(n,o){E(e,n,o),t=!0},p(n,[o]){let l={};o&1&&(l["data-testid"]=n[0]?"close-fullscreen-icon":"open-fullscreen-icon"),e.$set(l)},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){m(e.$$.fragment,n),t=!1},d(n){M(e,n)}}}function qv(i,e,t){let{isFullscreen:n=!1}=e;return i.$$set=o=>{"isFullscreen"in o&&t(0,n=o.isFullscreen)},[n]}var Eu=class extends B{constructor(e){super(),D(this,e,qv,Fv,R,{isFullscreen:0},Ov)}},hm=Eu;function Hv(i){let e,t;return e=new hm({props:{isFullscreen:i[0]}}),{c(){A(e.$$.fragment)},m(n,o){E(e,n,o),t=!0},p(n,o){let l={};o&1&&(l.isFullscreen=n[0]),e.$set(l)},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){m(e.$$.fragment,n),t=!1},d(n){M(e,n)}}}function zv(i){let e,t;return e=new pt({props:{testId:"btn-fullscreen",ariaLabel:i[2],click:i[1],ariaKeyShortCut:Xn.KeyF,$$slots:{default:[Hv]},$$scope:{ctx:i}}}),{c(){A(e.$$.fragment)},m(n,o){E(e,n,o),t=!0},p(n,[o]){let l={};o&4&&(l.ariaLabel=n[2]),o&2&&(l.click=n[1]),o&9&&(l.$$scope={dirty:o,ctx:n}),e.$set(l)},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){m(e.$$.fragment,n),t=!1},d(n){M(e,n)}}}function Uv(i,e,t){let{isFullscreen:n=!1}=e,{click:o=bm.noop}=e,l;return i.$$set=r=>{"isFullscreen"in r&&t(0,n=r.isFullscreen),"click"in r&&t(1,o=r.click)},i.$$.update=()=>{i.$$.dirty&1&&t(2,l=n?U("tooltip_fullscreen_on"):U("tooltip_fullscreen_off"))},[n,o,l]}var Mu=class extends B{constructor(e){super(),D(this,e,Uv,zv,R,{isFullscreen:0,click:1})}},Xl=Mu;function Wv(i){let e,t,n,o=i[2].default,l=Ee(o,i,i[1],null),r=[{xmlns:"http://www.w3.org/2000/svg"},{width:"24"},{height:"24"},{fill:"none"},{"aria-hidden":"true"},{"data-testid":"play-icon"},{role:"img"},i[0]],a={};for(let s=0;s<r.length;s+=1)a=ne(a,r[s]);return{c(){e=V("svg"),l&&l.c(),t=V("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"),ye(e,a)},m(s,u){v(s,e,u),l&&l.m(e,null),_(e,t),n=!0},p(s,[u]){l&&l.p&&(!n||u&2)&&Ae(l,o,s,s[1],n?Me(o,s[1],u,null):Le(s[1]),null),ye(e,a=De(r,[{xmlns:"http://www.w3.org/2000/svg"},{width:"24"},{height:"24"},{fill:"none"},{"aria-hidden":"true"},{"data-testid":"play-icon"},{role:"img"},u&1&&s[0]]))},i(s){n||(d(l,s),n=!0)},o(s){m(l,s),n=!1},d(s){s&&b(e),l&&l.d(s)}}}function Kv(i,e,t){let{$$slots:n={},$$scope:o}=e;return i.$$set=l=>{t(0,e=ne(ne({},e),ve(l))),"$$scope"in l&&t(1,o=l.$$scope)},e=ve(e),[e,o,n]}var Au=class extends B{constructor(e){super(),D(this,e,Kv,Wv,R,{})}},Er=Au;function Gv(i){let e,t,n,o=i[2].default,l=Ee(o,i,i[1],null),r=[{xmlns:"http://www.w3.org/2000/svg"},{width:"24"},{height:"24"},{fill:"none"},{"aria-hidden":"true"},{"data-testid":"pause-icon"},{role:"img"},i[0]],a={};for(let s=0;s<r.length;s+=1)a=ne(a,r[s]);return{c(){e=V("svg"),l&&l.c(),t=V("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"),ye(e,a)},m(s,u){v(s,e,u),l&&l.m(e,null),_(e,t),n=!0},p(s,[u]){l&&l.p&&(!n||u&2)&&Ae(l,o,s,s[1],n?Me(o,s[1],u,null):Le(s[1]),null),ye(e,a=De(r,[{xmlns:"http://www.w3.org/2000/svg"},{width:"24"},{height:"24"},{fill:"none"},{"aria-hidden":"true"},{"data-testid":"pause-icon"},{role:"img"},u&1&&s[0]]))},i(s){n||(d(l,s),n=!0)},o(s){m(l,s),n=!1},d(s){s&&b(e),l&&l.d(s)}}}function jv(i,e,t){let{$$slots:n={},$$scope:o}=e;return i.$$set=l=>{t(0,e=ne(ne({},e),ve(l))),"$$scope"in l&&t(1,o=l.$$scope)},e=ve(e),[e,o,n]}var Lu=class extends B{constructor(e){super(),D(this,e,jv,Gv,R,{})}},Jl=Lu;var ym=require("@vkontakte/videoplayer-shared");function xv(i){Ce(i,"svelte-1ot3duq",".mobile.svelte-1ot3duq{position:relative;display:flex;align-items:center;justify-content:center}.mobile.svelte-1ot3duq svg{transform:scale(2)}.icon-background-mobile.svelte-1ot3duq{position:absolute;top:16px;left:16px;border-radius:var(--big-play-radius);background-color:var(--big-play-bg-color);width:calc(100% - 32px);height:calc(100% - 32px)}")}function vm(i){let e;return{c(){e=I("div"),c(e,"class","icon-background-mobile svelte-1ot3duq")},m(t,n){v(t,e,n)},d(t){t&&b(e)}}}function Yv(i){let e,t,n,o,l=i[1]&&vm(i);var r=i[8];function a(s,u){return{}}return r&&(n=Rt(r,a(i))),{c(){l&&l.c(),e=H(),t=I("div"),n&&A(n.$$.fragment),c(t,"class","svelte-1ot3duq"),G(t,"mobile",i[1])},m(s,u){l&&l.m(s,u),v(s,e,u),v(s,t,u),n&&E(n,t,null),o=!0},p(s,u){if(s[1]?l||(l=vm(s),l.c(),l.m(e.parentNode,e)):l&&(l.d(1),l=null),u&256&&r!==(r=s[8])){if(n){ce();let f=n;m(f.$$.fragment,1,0,()=>{M(f,1)}),fe()}r?(n=Rt(r,a(s,u)),A(n.$$.fragment),d(n.$$.fragment,1),E(n,t,null)):n=null}(!o||u&2)&&G(t,"mobile",s[1])},i(s){o||(n&&d(n.$$.fragment,s),o=!0)},o(s){n&&m(n.$$.fragment,s),o=!1},d(s){s&&(b(e),b(t)),l&&l.d(s),n&&M(n)}}}function Qv(i){let e,t,n;function o(r){i[13](r)}let l={className:(i[1]?"btn-m--play":"")+" "+i[3],testId:"btn-play",click:i[5]?i[6]:i[4],disabled:i[2],ariaLabel:i[7],ariaKeyShortCut:Xn.KeyK,$$slots:{default:[Yv]},$$scope:{ctx:i}};return i[0]!==void 0&&(l.ref=i[0]),e=new pt({props:l}),he.push(()=>Fe(e,"ref",o)),{c(){A(e.$$.fragment)},m(r,a){E(e,r,a),n=!0},p(r,[a]){let s={};a&10&&(s.className=(r[1]?"btn-m--play":"")+" "+r[3]),a&112&&(s.click=r[5]?r[6]:r[4]),a&4&&(s.disabled=r[2]),a&128&&(s.ariaLabel=r[7]),a&33026&&(s.$$scope={dirty:a,ctx:r}),!t&&a&1&&(t=!0,s.ref=r[0],Oe(()=>t=!1)),e.$set(s)},i(r){n||(d(e.$$.fragment,r),n=!0)},o(r){m(e.$$.fragment,r),n=!1},d(r){M(e,r)}}}function Zv(i,e,t){let n,o,{fakeIsPlaying$:l}=Mn();N(i,l,T=>t(12,o=T));let{ref:r=void 0}=e,{isMobile:a=!1}=e,{isPlaying:s=!1}=e,{disabled:u=!1}=e,{className:f=""}=e,{click:p=ym.noop}=e,{toggle:g}=l,y,h,C,w;function F(T){r=T,t(0,r)}return i.$$set=T=>{"ref"in T&&t(0,r=T.ref),"isMobile"in T&&t(1,a=T.isMobile),"isPlaying"in T&&t(10,s=T.isPlaying),"disabled"in T&&t(2,u=T.disabled),"className"in T&&t(3,f=T.className),"click"in T&&t(4,p=T.click)},i.$$.update=()=>{i.$$.dirty&4096&&t(5,h=o!==null),i.$$.dirty&5152&&t(11,C=h?o:s),i.$$.dirty&2048&&t(7,w=C?U("tooltip_pause"):U("tooltip_play")),i.$$.dirty&2048&&t(8,n=C?Jl:Er)},t(6,y=g),[r,a,u,f,p,h,y,w,n,l,s,C,o,F]}var Vu=class extends B{constructor(e){super(),D(this,e,Zv,Qv,R,{ref:0,isMobile:1,isPlaying:10,disabled:2,className:3,click:4},xv)}},Qr=Vu;function Xv(i){let e,t,n,o=i[2].default,l=Ee(o,i,i[1],null),r=[{xmlns:"http://www.w3.org/2000/svg"},{width:"26"},{height:"24"},{fill:"none"},{"aria-hidden":"true"},{role:"img"},i[0]],a={};for(let s=0;s<r.length;s+=1)a=ne(a,r[s]);return{c(){e=V("svg"),l&&l.c(),t=V("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"),ye(e,a)},m(s,u){v(s,e,u),l&&l.m(e,null),_(e,t),n=!0},p(s,[u]){l&&l.p&&(!n||u&2)&&Ae(l,o,s,s[1],n?Me(o,s[1],u,null):Le(s[1]),null),ye(e,a=De(r,[{xmlns:"http://www.w3.org/2000/svg"},{width:"26"},{height:"24"},{fill:"none"},{"aria-hidden":"true"},{role:"img"},u&1&&s[0]]))},i(s){n||(d(l,s),n=!0)},o(s){m(l,s),n=!1},d(s){s&&b(e),l&&l.d(s)}}}function Jv(i,e,t){let{$$slots:n={},$$scope:o}=e;return i.$$set=l=>{t(0,e=ne(ne({},e),ve(l))),"$$scope"in l&&t(1,o=l.$$scope)},e=ve(e),[e,o,n]}var Ru=class extends B{constructor(e){super(),D(this,e,Jv,Xv,R,{})}},km=Ru;function $v(i){let e,t;return e=new km({props:{style:i[1],"data-testid":i[0]?"prev-icon":"next-icon"}}),{c(){A(e.$$.fragment)},m(n,o){E(e,n,o),t=!0},p(n,[o]){let l={};o&2&&(l.style=n[1]),o&1&&(l["data-testid"]=n[0]?"prev-icon":"next-icon"),e.$set(l)},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){m(e.$$.fragment,n),t=!1},d(n){M(e,n)}}}function e4(i,e,t){let{isPrev:n=!1}=e,{isMobile:o=!1}=e,l;return i.$$set=r=>{"isPrev"in r&&t(0,n=r.isPrev),"isMobile"in r&&t(2,o=r.isMobile)},i.$$.update=()=>{i.$$.dirty&5&&(n&&o?t(1,l="transform: scaleX(-1) scale(1.3333);"):n?t(1,l="transform: scaleX(-1);"):o?t(1,l="transform: scale(1.3333);"):t(1,l=void 0))},[n,l,o]}var Bu=class extends B{constructor(e){super(),D(this,e,e4,$v,R,{isPrev:0,isMobile:2})}},wm=Bu;function t4(i){let e,t;return e=new wm({props:{isMobile:i[1],isPrev:i[3]==="prev"}}),{c(){A(e.$$.fragment)},m(n,o){E(e,n,o),t=!0},p(n,o){let l={};o&2&&(l.isMobile=n[1]),o&8&&(l.isPrev=n[3]==="prev"),e.$set(l)},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){m(e.$$.fragment,n),t=!1},d(n){M(e,n)}}}function i4(i){let e,t,n;function o(r){i[6](r)}let l={testId:"btn-"+i[3],disabled:i[2],ariaLabel:i[5],click:i[4],$$slots:{default:[t4]},$$scope:{ctx:i}};return i[0]!==void 0&&(l.ref=i[0]),e=new pt({props:l}),he.push(()=>Fe(e,"ref",o)),{c(){A(e.$$.fragment)},m(r,a){E(e,r,a),n=!0},p(r,[a]){let s={};a&8&&(s.testId="btn-"+r[3]),a&4&&(s.disabled=r[2]),a&32&&(s.ariaLabel=r[5]),a&16&&(s.click=r[4]),a&138&&(s.$$scope={dirty:a,ctx:r}),!t&&a&1&&(t=!0,s.ref=r[0],Oe(()=>t=!1)),e.$set(s)},i(r){n||(d(e.$$.fragment,r),n=!0)},o(r){m(e.$$.fragment,r),n=!1},d(r){M(e,r)}}}function n4(i,e,t){let{ref:n=void 0}=e,{isMobile:o=!1}=e,{disabled:l=!1}=e,{type:r}=e,{click:a}=e,s;function u(f){n=f,t(0,n)}return i.$$set=f=>{"ref"in f&&t(0,n=f.ref),"isMobile"in f&&t(1,o=f.isMobile),"disabled"in f&&t(2,l=f.disabled),"type"in f&&t(3,r=f.type),"click"in f&&t(4,a=f.click)},i.$$.update=()=>{i.$$.dirty&8&&t(5,s=r==="prev"?U("tooltip_previous"):U("tooltip_next"))},[n,o,l,r,a,s,u]}var Du=class extends B{constructor(e){super(),D(this,e,n4,i4,R,{ref:0,isMobile:1,disabled:2,type:3,click:4})}},Mr=Du;function o4(i){let e,t,n,o=i[2].default,l=Ee(o,i,i[1],null),r=[{xmlns:"http://www.w3.org/2000/svg"},{width:"24"},{height:"24"},{fill:"none"},{"aria-hidden":"true"},{"data-testid":"vk-logo-icon"},{role:"img"},i[0]],a={};for(let s=0;s<r.length;s+=1)a=ne(a,r[s]);return{c(){e=V("svg"),l&&l.c(),t=V("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"),ye(e,a)},m(s,u){v(s,e,u),l&&l.m(e,null),_(e,t),n=!0},p(s,[u]){l&&l.p&&(!n||u&2)&&Ae(l,o,s,s[1],n?Me(o,s[1],u,null):Le(s[1]),null),ye(e,a=De(r,[{xmlns:"http://www.w3.org/2000/svg"},{width:"24"},{height:"24"},{fill:"none"},{"aria-hidden":"true"},{"data-testid":"vk-logo-icon"},{role:"img"},u&1&&s[0]]))},i(s){n||(d(l,s),n=!0)},o(s){m(l,s),n=!1},d(s){s&&b(e),l&&l.d(s)}}}function r4(i,e,t){let{$$slots:n={},$$scope:o}=e;return i.$$set=l=>{t(0,e=ne(ne({},e),ve(l))),"$$scope"in l&&t(1,o=l.$$scope)},e=ve(e),[e,o,n]}var Nu=class extends B{constructor(e){super(),D(this,e,r4,o4,R,{})}},Cm=Nu;function l4(i){let e,t,n,o,l,r,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 p=0;p<u.length;p+=1)f=ne(f,u[p]);return{c(){e=V("svg"),s&&s.c(),t=V("path"),n=V("path"),o=V("path"),l=V("path"),c(t,"fill","#fff"),c(t,"d","M32.55 17.042h2.494L38.707 7h-1.81l-2.936 8.276h-.286L30.84 7H29zM48.075 17.042l-4.619-5.199L47.718 7h-2.11l-3.563 4.088h-.413V7h-1.71v10.042h1.71V12.74h.427l3.764 4.302z"),c(n,"fill","#fff"),c(n,"d","M57.888 11.886c.883-.342 1.44-1.125 1.44-2.151C59.327 8.14 58.001 7 56.062 7h-3.92v10.042h4.205c1.953 0 3.279-1.14 3.279-2.806 0-1.168-.656-2.037-1.74-2.35m-4.034-3.39h2.21c.911 0 1.539.555 1.539 1.381 0 .812-.628 1.368-1.54 1.368h-2.21zm2.494 7.05h-2.494V12.74h2.494c.898 0 1.525.57 1.525 1.396 0 .84-.627 1.41-1.525 1.41M61.188 17.042h2.323l2.766-5.498h.228v5.498h1.568V9.635h-2.324l-2.765 5.498h-.228V9.635h-1.568zM69.146 19.25h1.64v-2.208h5.33v2.208h1.64v-3.703h-1.283V9.635h-5.431l-.37 3.79c-.13 1.338-.528 2.121-1.34 2.121h-.186zm2.494-3.703c.4-.385.57-1.04.685-2.151l.228-2.265h2.28v4.416zM86.025 13.253c0-2.136-1.597-3.76-3.849-3.76s-3.848 1.61-3.848 3.846 1.596 3.846 3.848 3.846c1.54 0 2.994-.727 3.55-2.137l-1.54-.256c-.356.527-1.04.897-1.91.897-1.254 0-2.081-.77-2.238-1.909h5.958c.015-.156.029-.327.029-.527m-3.849-2.336c1.027 0 1.796.655 2.067 1.581h-4.105c.27-.954 1.04-1.58 2.038-1.58M90.837 17.185c2.324 0 3.963-1.596 3.963-3.846s-1.64-3.846-3.963-3.846-3.962 1.595-3.962 3.846c0 2.25 1.639 3.846 3.962 3.846m0-1.496c-1.34 0-2.252-.954-2.252-2.35s.912-2.35 2.252-2.35 2.252.954 2.252 2.35-.912 2.35-2.252 2.35"),c(n,"class","_ru"),c(o,"fill","#fff"),c(o,"d","M35.02 17.36h-2.484L29 7.422h1.832l2.826 8.188h.284l2.925-8.188h1.803zM43.43 12.215l4.6 5.144h-2.243l-3.749-4.256h-.426v4.256h-1.704V7.423h1.704v4.045h.412l3.55-4.045h2.101zM56.808 17.36h-2.485l-3.536-9.937h1.832l2.826 8.188h.284l2.925-8.188h1.803zM63.257 17.36h-1.633v-7.33h1.633zm-.809-8.373q-.455 0-.738-.268a.97.97 0 0 1-.284-.718.97.97 0 0 1 .284-.72q.297-.28.738-.281.44 0 .724.282a.97.97 0 0 1 .284.719.97.97 0 0 1-.284.718q-.284.268-.724.268M68.382 17.5q-1.037 0-1.86-.48a3.5 3.5 0 0 1-1.293-1.352q-.454-.874-.454-1.973t.454-1.96a3.37 3.37 0 0 1 1.293-1.352 3.55 3.55 0 0 1 1.86-.494q.894 0 1.59.367.696.352 1.136.888V7.423h1.633v9.936h-1.22l-.342-1.184a4 4 0 0 1-1.164.944q-.71.381-1.633.381m.397-1.452q1.038 0 1.676-.648.654-.663.653-1.705 0-1.044-.653-1.692-.639-.662-1.675-.662-1.023 0-1.662.662-.639.649-.639 1.692t.64 1.705q.638.648 1.66.648M81.929 13.61q0 .211-.029.522h-5.935q.113.86.71 1.38.597.508 1.52.508.624 0 1.121-.24.51-.24.781-.648l1.534.254a3 3 0 0 1-1.378 1.564q-.965.55-2.158.55-1.108 0-1.988-.48a3.6 3.6 0 0 1-1.363-1.352q-.483-.874-.483-1.973t.483-1.96a3.5 3.5 0 0 1 1.363-1.352q.88-.495 1.988-.494 1.107 0 1.974.494.88.478 1.363 1.339.497.845.497 1.888M78.095 11.3q-.738 0-1.292.423-.54.422-.739 1.141h4.09a2.17 2.17 0 0 0-.767-1.127q-.54-.437-1.292-.437M86.751 17.5q-1.136 0-2.044-.48a3.66 3.66 0 0 1-1.406-1.352q-.497-.874-.497-1.973t.497-1.96q.511-.873 1.406-1.352.909-.495 2.044-.494 1.137 0 2.031.494a3.4 3.4 0 0 1 1.406 1.353q.51.86.511 1.959 0 1.098-.511 1.973a3.53 3.53 0 0 1-1.406 1.353q-.894.48-2.03.479m0-1.48q.995 0 1.62-.634.624-.648.624-1.691t-.625-1.678q-.624-.648-1.619-.648-.993 0-1.618.648-.625.634-.625 1.678 0 1.043.625 1.69.625.636 1.618.635"),c(o,"class","_en"),c(l,"fill","#fff"),c(l,"fill-rule","evenodd"),c(l,"d","M7 8.6c0-1.96 0-2.94.381-3.689a3.5 3.5 0 0 1 1.53-1.53C9.66 3 10.64 3 12.6 3h1.36c2.464 0 3.696 0 4.638.48a4.4 4.4 0 0 1 1.922 1.922c.48.942.48 2.174.48 4.638v3.92c0 2.464 0 3.696-.48 4.638a4.4 4.4 0 0 1-1.922 1.922c-.942.48-2.174.48-4.638.48H12.6c-1.96 0-2.94 0-3.689-.381a3.5 3.5 0 0 1-1.53-1.53C7 18.34 7 17.36 7 15.4zm9.265 1.744c.901.539 1.352.808 1.505 1.157.133.304.133.65 0 .954-.153.349-.604.618-1.505 1.157l-2.386 1.425c-.943.563-1.414.844-1.802.807a1.2 1.2 0 0 1-.847-.48C11 15.05 11 14.5 11 13.403v-2.85c0-1.098 0-1.647.23-1.96.201-.274.51-.45.847-.481.388-.037.86.244 1.802.807zM5 9.04c0-2.464 0-3.696.48-4.638a4.4 4.4 0 0 1 .955-1.253 3.7 3.7 0 0 0-1.033.33A4.4 4.4 0 0 0 3.48 5.403C3 6.344 3 7.576 3 10.04v3.92c0 2.464 0 3.696.48 4.638a4.4 4.4 0 0 0 1.922 1.922c.304.155.637.26 1.033.33a4.4 4.4 0 0 1-.955-1.252C5 18.656 5 17.424 5 14.96z"),c(l,"clip-rule","evenodd"),ye(e,f)},m(p,g){v(p,e,g),s&&s.m(e,null),_(e,t),_(e,n),_(e,o),_(e,l),r=!0},p(p,[g]){s&&s.p&&(!r||g&2)&&Ae(s,a,p,p[1],r?Me(a,p[1],g,null):Le(p[1]),null),ye(e,f=De(u,[{xmlns:"http://www.w3.org/2000/svg"},{width:"95"},{height:"24"},{fill:"none"},{"aria-hidden":"true"},{role:"img"},g&1&&p[0]]))},i(p){r||(d(s,p),r=!0)},o(p){m(s,p),r=!1},d(p){p&&b(e),s&&s.d(p)}}}function s4(i,e,t){let{$$slots:n={},$$scope:o}=e;return i.$$set=l=>{t(0,e=ne(ne({},e),ve(l))),"$$scope"in l&&t(1,o=l.$$scope)},e=ve(e),[e,o,n]}var Ou=class extends B{constructor(e){super(),D(this,e,s4,l4,R,{})}},Sm=Ou;function a4(i){Ce(i,"svelte-1nhjml",'svg[data-testid="vk-video-logo-icon--short"] ._ru,svg[data-testid="vk-video-logo-icon--short"] ._en,svg[data-testid="vk-video-logo-icon"] ._en,svg[data-testid="vk-video-logo-icon--en"] ._ru{visibility:hidden;opacity:0}')}function u4(i){let e,t;return e=new Sm({props:{width:i[0],height:"24",viewBox:"0 0 "+(i[0]+1)+" 24","data-testid":i[1]}}),{c(){A(e.$$.fragment)},m(n,o){E(e,n,o),t=!0},p(n,[o]){let l={};o&1&&(l.width=n[0]),o&1&&(l.viewBox="0 0 "+(n[0]+1)+" 24"),o&2&&(l["data-testid"]=n[1]),e.$set(l)},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){m(e.$$.fragment,n),t=!1},d(n){M(e,n)}}}var c4="vk-video-logo-icon--short";function f4(i,e,t){let{short:n=!1}=e,{isCyrillic:o=!0}=e,l,r;return i.$$set=a=>{"short"in a&&t(2,n=a.short),"isCyrillic"in a&&t(3,o=a.isCyrillic)},i.$$.update=()=>{i.$$.dirty&12&&(t(0,l=n?21:95),t(1,r=n?c4:"vk-video-logo-icon"),!o&&!n&&(t(0,l=91),t(1,r="vk-video-logo-icon--en")))},[l,r,n,o]}var Fu=class extends B{constructor(e){super(),D(this,e,f4,u4,R,{short:2,isCyrillic:3},a4)}},Im=Fu;function m4(i){let e,t;return e=new Cm({}),{c(){A(e.$$.fragment)},m(n,o){E(e,n,o),t=!0},p:ge,i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){m(e.$$.fragment,n),t=!1},d(n){M(e,n)}}}function p4(i){let e,t;return e=new Im({props:{short:i[4],isCyrillic:i[5]}}),{c(){A(e.$$.fragment)},m(n,o){E(e,n,o),t=!0},p(n,o){let l={};o&16&&(l.short=n[4]),o&32&&(l.isCyrillic=n[5]),e.$set(l)},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){m(e.$$.fragment,n),t=!1},d(n){M(e,n)}}}function _4(i){let e,t,n,o,l=[p4,m4],r=[];function a(s,u){return s[2]?0:1}return e=a(i,-1),t=r[e]=l[e](i),{c(){t.c(),n=$e()},m(s,u){r[e].m(s,u),v(s,n,u),o=!0},p(s,u){let f=e;e=a(s,u),e===f?r[e].p(s,u):(ce(),m(r[f],1,1,()=>{r[f]=null}),fe(),t=r[e],t?t.p(s,u):(t=r[e]=l[e](s),t.c()),d(t,1),t.m(n.parentNode,n))},i(s){o||(d(t),o=!0)},o(s){m(t),o=!1},d(s){s&&b(n),r[e].d(s)}}}function g4(i){let e,t,n;function o(r){i[14](r)}let l={className:"btn-full-opacity",disabled:!i[1],click:i[9],testId:i[2]?"btn-vk-video-logo":"btn-vk-logo",ariaLabel:i[3],$$slots:{default:[_4]},$$scope:{ctx:i}};return i[0]!==void 0&&(l.ref=i[0]),e=new pt({props:l}),he.push(()=>Fe(e,"ref",o)),{c(){A(e.$$.fragment)},m(r,a){E(e,r,a),n=!0},p(r,[a]){let s={};a&2&&(s.disabled=!r[1]),a&4&&(s.testId=r[2]?"btn-vk-video-logo":"btn-vk-logo"),a&8&&(s.ariaLabel=r[3]),a&131124&&(s.$$scope={dirty:a,ctx:r}),!t&&a&1&&(t=!0,s.ref=r[0],Oe(()=>t=!1)),e.$set(s)},i(r){n||(d(e.$$.fragment,r),n=!0)},o(r){m(e.$$.fragment,r),n=!1},d(r){M(e,r)}}}function h4(i,e,t){let n,o,l,{ref:r=void 0}=e,{logoClickable:a=!1}=e,{targetUrl:s=""}=e,{click:u}=e,f=Bt(),p=nt(),g=p.ui.currentGridType$;N(i,g,P=>t(12,n=P));let y=p.ui.isMobile;N(i,y,P=>t(13,o=P));let h=p.isCyrillicRelatedInterface$;N(i,h,P=>t(5,l=P));let C,w,F,T=()=>{u(),p.callbacks?.onLogoClicked?p.callbacks?.onLogoClicked():s&&window.open(s,"_blank")};function k(P){r=P,t(0,r)}return i.$$set=P=>{"ref"in P&&t(0,r=P.ref),"logoClickable"in P&&t(1,a=P.logoClickable),"targetUrl"in P&&t(10,s=P.targetUrl),"click"in P&&t(11,u=P.click)},i.$$.update=()=>{i.$$.dirty&12292&&t(4,F=(o||Zl(n,"l"))&&w)},t(3,C=f.logoType==="vk_video"?U("tooltip_vk_video_logo"):U("tooltip_vk_logo")),t(2,w=f.logoType==="vk_video"||f.logoType==="vk_video_mobile"),[r,a,w,C,F,l,g,y,h,T,s,u,n,o,k]}var qu=class extends B{constructor(e){super(),D(this,e,h4,g4,R,{ref:0,logoClickable:1,targetUrl:10,click:11})}},$l=qu;var Pm=require("@vkontakte/videoplayer-core");var Hu=require("@vkontakte/videoplayer-core");function b4(i){Ce(i,"svelte-8z1bf5",".connecting.svelte-8z1bf5 .wave.svelte-8z1bf5{animation-duration:1s;animation-iteration-count:infinite}.connecting.svelte-8z1bf5 .wave1.svelte-8z1bf5{animation-name:svelte-8z1bf5-wave1}.connecting.svelte-8z1bf5 .wave2.svelte-8z1bf5{animation-name:svelte-8z1bf5-wave2}.connecting.svelte-8z1bf5 .wave3.svelte-8z1bf5{animation-name:svelte-8z1bf5-wave3}@keyframes svelte-8z1bf5-wave1{0%{opacity:0.3}33%{opacity:1}66%{opacity:1}100%{opacity:1}}@keyframes svelte-8z1bf5-wave2{0%{opacity:0.3}33%{opacity:0.3}66%{opacity:1}100%{opacity:1}}@keyframes svelte-8z1bf5-wave3{0%{opacity:0.3}33%{opacity:0.3}66%{opacity:0.3}100%{opacity:1}}")}function v4(i){let e,t,n,o,l,r,a,s;return{c(){e=V("svg"),t=V("g"),n=V("path"),o=V("path"),l=V("path"),r=V("path"),a=V("path"),s=V("path"),c(n,"class","wave wave1 svelte-8z1bf5"),c(n,"d","M1 18v3h3c0-1.66-1.34-3-3-3z"),c(n,"fill","#fff"),c(o,"class","wave wave2 svelte-8z1bf5"),c(o,"d","M1 14v2c2.76 0 5 2.24 5 5h2c0-3.87-3.13-7-7-7z"),c(o,"fill","#fff"),c(l,"class","wave wave3 svelte-8z1bf5"),c(l,"d","M1 10v2a9 9 0 0 1 9 9h2c0-6.08-4.93-11-11-11z"),c(l,"fill","#fff"),c(r,"d","M21 3H3c-1.1 0-2 .9-2 2v3h2V5h18v14h-7v2h7c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2z"),c(r,"fill","#fff"),c(a,"d","M0 0h24v24H0z"),c(s,"d","M5.667 7.44H18.5v9.167h-5.161a11.947 11.947 0 0 0-7.673-7.672V7.44Z"),c(s,"fill","#fff"),G(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"),G(e,"connecting",i[2])},m(u,f){v(u,e,f),_(e,t),_(t,n),_(t,o),_(t,l),_(t,r),_(t,a),_(t,s)},p(u,f){f&2&&G(s,"hidden",!u[1]),f&4&&G(e,"connecting",u[2])},d(u){u&&b(e)}}}function y4(i){let e,t,n,o,l,r,a,s,u,f,p,g,y,h,C,w,F,T,k,P,x;return{c(){e=V("svg"),t=V("g"),n=V("mask"),o=V("path"),r=V("path"),a=V("path"),u=V("path"),f=V("defs"),p=V("clipPath"),g=V("path"),h=V("filter"),C=V("feFlood"),w=V("feColorMatrix"),F=V("feOffset"),T=V("feGaussianBlur"),k=V("feColorMatrix"),P=V("feBlend"),x=V("feBlend"),c(o,"fill",l=i[1]?"#2688EB":"#fff"),c(o,"d","M1.1 3.1h22v18h-22z"),c(r,"fill-rule","evenodd"),c(r,"clip-rule","evenodd"),c(r,"d","M16.2 5.9c.855 0 1.442 0 1.897.038.445.036.683.103.856.19a2.1 2.1 0 0 1 .918.919c.088.172.155.411.191.856.037.455.038 1.042.038 1.897v4.4c0 .855 0 1.442-.038 1.897-.036.445-.103.683-.19.856a2.1 2.1 0 0 1-.919.918c-.172.088-.411.155-.856.191-.455.037-1.042.038-1.897.038H15a.9.9 0 0 0 0 1.8h1.238c.808 0 1.469 0 2.006-.044.556-.045 1.058-.142 1.527-.381a3.9 3.9 0 0 0 1.704-1.704c.239-.47.336-.971.381-1.527.044-.537.044-1.198.044-2.006V9.762c0-.808 0-1.469-.044-2.006-.045-.556-.142-1.058-.381-1.527a3.9 3.9 0 0 0-1.704-1.704c-.47-.239-.971-.336-1.527-.381-.537-.044-1.198-.044-2.006-.044H6a3.901 3.901 0 0 0-3.678 2.6.9.9 0 0 0 1.697.6A2.101 2.101 0 0 1 6 5.9h10.2ZM3.069 11.52a6.9 6.9 0 0 1 7.413 7.413.9.9 0 0 0 1.795.137 8.7 8.7 0 0 0-9.344-9.344.9.9 0 0 0 .136 1.794Zm.533 3.58c-.161 0-.32.011-.474.034a.9.9 0 1 1-.256-1.782A5.1 5.1 0 0 1 8.65 19.13a.9.9 0 1 1-1.782-.256A3.3 3.3 0 0 0 3.602 15.1Zm-1.5 3.3a1.5 1.5 0 1 1 3 0 1.5 1.5 0 0 1-3 0Z"),c(n,"id","c"),c(n,"maskUnits","userSpaceOnUse"),c(n,"x","1.1"),c(n,"y","3.1"),c(n,"width","22"),c(n,"height","18"),c(n,"fill","#000"),c(a,"fill-rule","evenodd"),c(a,"clip-rule","evenodd"),c(a,"d","M16.2 5.9c.855 0 1.442 0 1.897.038.445.036.683.103.856.19a2.1 2.1 0 0 1 .918.919c.088.172.155.411.191.856.037.455.038 1.042.038 1.897v4.4c0 .855 0 1.442-.038 1.897-.036.445-.103.683-.19.856a2.1 2.1 0 0 1-.919.918c-.172.088-.411.155-.856.191-.455.037-1.042.038-1.897.038H15a.9.9 0 0 0 0 1.8h1.238c.808 0 1.469 0 2.006-.044.556-.045 1.058-.142 1.527-.381a3.9 3.9 0 0 0 1.704-1.704c.239-.47.336-.971.381-1.527.044-.537.044-1.198.044-2.006V9.762c0-.808 0-1.469-.044-2.006-.045-.556-.142-1.058-.381-1.527a3.9 3.9 0 0 0-1.704-1.704c-.47-.239-.971-.336-1.527-.381-.537-.044-1.198-.044-2.006-.044H6a3.901 3.901 0 0 0-3.678 2.6.9.9 0 0 0 1.697.6A2.101 2.101 0 0 1 6 5.9h10.2ZM3.069 11.52a6.9 6.9 0 0 1 7.413 7.413.9.9 0 0 0 1.795.137 8.7 8.7 0 0 0-9.344-9.344.9.9 0 0 0 .136 1.794Zm.533 3.58c-.161 0-.32.011-.474.034a.9.9 0 1 1-.256-1.782A5.1 5.1 0 0 1 8.65 19.13a.9.9 0 1 1-1.782-.256A3.3 3.3 0 0 0 3.602 15.1Zm-1.5 3.3a1.5 1.5 0 1 1 3 0 1.5 1.5 0 0 1-3 0Z"),c(a,"fill",s=i[1]?"#2688EB":"#fff"),c(u,"d","m18.097 5.938-.04.498.04-.498Zm.856.19-.227.446.227-.445Zm.918.919-.445.227.445-.227Zm.191.856-.498.04.498-.04Zm0 8.194-.498-.04.498.04Zm-.19.856-.446-.227.445.227Zm-.919.918-.227-.445.227.445Zm-.856.191.04.498-.04-.498Zm-1.86 1.838v-.5.5Zm2.007-.044.04.498-.04-.498Zm1.527-.381-.227-.446.227.446Zm1.704-1.704.445.227-.445-.227Zm.381-1.527.498.04-.498-.04Zm.044-2.006h-.5.5Zm0-4.476h-.5.5Zm-.044-2.006.498-.04-.498.04Zm-.381-1.527.445-.227-.445.227ZM19.77 4.525l-.227.446.227-.446Zm-1.527-.381.04-.498-.04.498ZM16.238 4.1v.5-.5ZM6 4.1v-.5.5ZM2.322 6.7l-.471-.167.471.167Zm1.697.6-.471-.167.471.167ZM6 5.9v-.5.5Zm-2.931 5.62-.038-.498.038.498Zm7.413 7.413.498.038-.498-.038Zm1.795.137.498.038-.498-.038ZM2.931 9.725l-.038-.498.038.498Zm-.829.966.499-.038-.499.038Zm1.025 4.443-.071-.495.071.495Zm-1.019-.763.495-.071-.495.07Zm.763-1.02.071.496-.07-.495ZM8.65 19.13l.495.072-.495-.072Zm-1.019.764-.07.494.07-.494Zm-.763-1.02.495.072-.495-.071ZM18.138 5.44c-.48-.04-1.091-.04-1.938-.04v1c.863 0 1.426.001 1.856.036l.082-.996Zm1.042.243c-.255-.13-.567-.205-1.042-.243l-.082.996c.414.034.58.092.67.138l.454-.89Zm1.137 1.137a2.6 2.6 0 0 0-1.137-1.137l-.454.891a1.6 1.6 0 0 1 .7.7l.89-.454Zm.244 1.042c-.04-.475-.114-.787-.244-1.042l-.891.454c.046.09.104.256.138.67l.997-.082ZM20.6 9.8c0-.846 0-1.458-.04-1.938l-.996.082c.035.43.036.993.036 1.856h1Zm0 4.4V9.8h-1v4.4h1Zm-.04 1.938c.04-.48.04-1.092.04-1.938h-1c0 .863-.001 1.426-.036 1.856l.997.082Zm-.243 1.042c.13-.255.205-.567.244-1.042l-.997-.082c-.034.414-.092.58-.138.67l.89.454Zm-1.137 1.137a2.6 2.6 0 0 0 1.137-1.137l-.891-.454a1.6 1.6 0 0 1-.7.7l.454.89Zm-1.042.244c.475-.04.787-.114 1.042-.244l-.454-.891c-.09.046-.256.104-.67.138l.082.997ZM16.2 18.6c.847 0 1.458 0 1.938-.04l-.082-.996c-.43.035-.993.036-1.856.036v1Zm-1.2 0h1.2v-1H15v1Zm-.4.4c0-.22.18-.4.4-.4v-1a1.4 1.4 0 0 0-1.4 1.4h1Zm.4.4a.4.4 0 0 1-.4-.4h-1a1.4 1.4 0 0 0 1.4 1.4v-1Zm1.238 0H15v1h1.238v-1Zm1.965-.042c-.512.042-1.15.042-1.965.042v1c.8 0 1.484 0 2.046-.045l-.081-.997Zm1.34-.329c-.386.198-.815.286-1.34.329l.081.997c.587-.049 1.163-.154 1.714-.435l-.454-.89Zm1.486-1.485a3.4 3.4 0 0 1-1.485 1.485l.454.891a4.4 4.4 0 0 0 1.922-1.922l-.89-.454Zm.329-1.341c-.043.525-.131.954-.329 1.34l.891.455c.281-.552.386-1.127.434-1.714l-.996-.081Zm.042-1.965c0 .815 0 1.453-.042 1.965l.997.081c.045-.561.045-1.246.045-2.046h-1Zm0 0h1-1Zm0-4.476v4.476h1V9.762h-1Zm0 0h1-1Zm-.042-1.965c.042.512.042 1.15.042 1.965h1c0-.8 0-1.484-.045-2.046l-.997.081Zm-.329-1.34c.198.386.286.815.329 1.34l.997-.081c-.049-.587-.154-1.162-.435-1.714l-.89.454ZM19.544 4.97a3.4 3.4 0 0 1 1.485 1.485l.891-.454a4.4 4.4 0 0 0-1.922-1.922l-.454.89Zm-1.341-.329c.525.043.954.132 1.34.329l.455-.891c-.552-.281-1.127-.387-1.714-.434l-.081.996ZM16.238 4.6c.815 0 1.453 0 1.965.042l.081-.996c-.562-.046-1.246-.046-2.046-.046v1Zm0 0v-1 1ZM6 4.6h10.238v-1H6v1Zm0-1v1-1Zm0 0a4.401 4.401 0 0 0-4.15 2.933l.944.334A3.401 3.401 0 0 1 6 4.6v-1ZM1.85 6.533a1.4 1.4 0 0 0 .854 1.787l.333-.943a.4.4 0 0 1-.243-.51l-.943-.334Zm.854 1.787a1.4 1.4 0 0 0 1.787-.853l-.943-.334a.4.4 0 0 1-.51.244l-.334.943Zm1.787-.853A1.601 1.601 0 0 1 6 6.4v-1c-1.131 0-2.095.722-2.452 1.733l.943.334ZM16.2 5.4H6v1h10.2v-1ZM3.602 11c-.192 0-.383.007-.571.022l.076.997A6.53 6.53 0 0 1 3.602 12v-1Zm7.4 7.4a7.4 7.4 0 0 0-7.4-7.4v1a6.4 6.4 0 0 1 6.4 6.4h1Zm-.022.571c.015-.188.022-.379.022-.571h-1c0 .167-.006.332-.019.495l.997.076Zm.369.43a.4.4 0 0 1-.369-.43l-.997-.076a1.4 1.4 0 0 0 1.29 1.502l.076-.997Zm.429-.37a.4.4 0 0 1-.43.37l-.075.996a1.4 1.4 0 0 0 1.502-1.29l-.997-.075Zm.024-.631c0 .213-.008.423-.024.632l.997.076c.018-.234.027-.47.027-.708h-1Zm-8.2-8.2a8.2 8.2 0 0 1 8.2 8.2h1a9.2 9.2 0 0 0-9.2-9.2v1Zm-.632.024c.209-.016.42-.024.632-.024v-1c-.238 0-.474.01-.708.027l.076.997Zm-.368.43a.4.4 0 0 1 .368-.43l-.076-.997a1.4 1.4 0 0 0-1.29 1.502l.998-.076Zm.429.368a.4.4 0 0 1-.43-.369l-.996.076a1.4 1.4 0 0 0 1.502 1.29l-.076-.997Zm.168 4.607c.13-.02.265-.029.403-.029v-1c-.185 0-.367.013-.545.039l.142.99Zm-1.585-1.187A1.4 1.4 0 0 0 3.2 15.629l-.142-.99a.4.4 0 0 1-.453-.34l-.99.143Zm1.187-1.585a1.4 1.4 0 0 0-1.187 1.585l.99-.142a.4.4 0 0 1 .34-.453l-.143-.99Zm.801-.057c-.271 0-.538.02-.8.057l.141.99c.216-.031.436-.047.659-.047v-1Zm5.6 5.6a5.6 5.6 0 0 0-5.6-5.6v1a4.6 4.6 0 0 1 4.6 4.6h1Zm-.057.8c.038-.262.057-.529.057-.8h-1c0 .223-.016.443-.047.659l.99.142ZM7.56 20.389A1.4 1.4 0 0 0 9.145 19.2l-.99-.142a.4.4 0 0 1-.453.34l-.142.99Zm-1.187-1.585a1.4 1.4 0 0 0 1.187 1.584l.142-.99a.4.4 0 0 1-.339-.452l-.99-.142Zm.029-.403c0 .138-.01.272-.029.403l.99.142c.026-.178.039-.36.039-.545h-1Zm-2.8-2.8a2.8 2.8 0 0 1 2.8 2.8h1a3.8 3.8 0 0 0-3.8-3.8v1Zm0 .8a2 2 0 0 0-2 2h1a1 1 0 0 1 1-1v-1Zm2 2a2 2 0 0 0-2-2v1a1 1 0 0 1 1 1h1Zm-2 2a2 2 0 0 0 2-2h-1a1 1 0 0 1-1 1v1Zm-2-2a2 2 0 0 0 2 2v-1a1 1 0 0 1-1-1h-1Z"),c(u,"fill","#000"),c(u,"fill-opacity",".12"),c(u,"mask","url(#c)"),c(t,"filter","url(#b)"),c(t,"clip-path","url(#a)"),c(g,"fill",y=i[1]?"#2688EB":"#fff"),c(g,"d","M0 0h24v24H0z"),c(p,"id","a"),c(C,"flood-opacity","0"),c(C,"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(T,"stdDeviation","2.5"),c(k,"values","0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.16 0"),c(P,"in2","BackgroundImageFix"),c(P,"result","effect1_dropShadow_4085_178456"),c(x,"in","SourceGraphic"),c(x,"in2","effect1_dropShadow_4085_178456"),c(x,"result","shape"),c(h,"id","b"),c(h,"x","-3.4"),c(h,"y","-1.4"),c(h,"width","30.8"),c(h,"height","26.802"),c(h,"filterUnits","userSpaceOnUse"),c(h,"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(W,z){v(W,e,z),_(e,t),_(t,n),_(n,o),_(n,r),_(t,a),_(t,u),_(e,f),_(f,p),_(p,g),_(f,h),_(h,C),_(h,w),_(h,F),_(h,T),_(h,k),_(h,P),_(h,x)},p(W,z){z&2&&l!==(l=W[1]?"#2688EB":"#fff")&&c(o,"fill",l),z&2&&s!==(s=W[1]?"#2688EB":"#fff")&&c(a,"fill",s),z&2&&y!==(y=W[1]?"#2688EB":"#fff")&&c(g,"fill",y)},d(W){W&&b(e)}}}function k4(i){let e;function t(l,r){return l[0]?y4:v4}let n=t(i,-1),o=n(i);return{c(){o.c(),e=$e()},m(l,r){o.m(l,r),v(l,e,r)},p(l,[r]){n===(n=t(l,r))&&o?o.p(l,r):(o.d(1),o=n(l),o&&(o.c(),o.m(e.parentNode,e)))},i:ge,o:ge,d(l){l&&b(e),o.d(l)}}}function w4(i,e,t){let{isMobile:n=!1}=e,{state:o}=e,l,r;return i.$$set=a=>{"isMobile"in a&&t(0,n=a.isMobile),"state"in a&&t(3,o=a.state)},i.$$.update=()=>{i.$$.dirty&8&&(t(2,r=o===Hu.ChromecastState.CONNECTING),t(1,l=o===Hu.ChromecastState.CONNECTED))},[n,l,r,o]}var zu=class extends B{constructor(e){super(),D(this,e,w4,k4,R,{isMobile:0,state:3},b4)}},Tm=zu;var Em=require("@vkontakte/videoplayer-shared");function C4(i){let e,t;return e=new Tm({props:{isMobile:i[1],state:i[2]}}),{c(){A(e.$$.fragment)},m(n,o){E(e,n,o),t=!0},p(n,o){let l={};o&2&&(l.isMobile=n[1]),o&4&&(l.state=n[2]),e.$set(l)},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){m(e.$$.fragment,n),t=!1},d(n){M(e,n)}}}function S4(i){let e,t,n;function o(r){i[5](r)}let l={ariaLabel:i[4],click:i[3],testId:"btn-chromecast",$$slots:{default:[C4]},$$scope:{ctx:i}};return i[0]!==void 0&&(l.ref=i[0]),e=new pt({props:l}),he.push(()=>Fe(e,"ref",o)),{c(){A(e.$$.fragment)},m(r,a){E(e,r,a),n=!0},p(r,[a]){let s={};a&16&&(s.ariaLabel=r[4]),a&8&&(s.click=r[3]),a&70&&(s.$$scope={dirty:a,ctx:r}),!t&&a&1&&(t=!0,s.ref=r[0],Oe(()=>t=!1)),e.$set(s)},i(r){n||(d(e.$$.fragment,r),n=!0)},o(r){m(e.$$.fragment,r),n=!1},d(r){M(e,r)}}}function I4(i,e,t){let{ref:n=void 0}=e,{isMobile:o=!1}=e,{state:l}=e,{click:r=Em.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,l=u.state),"click"in u&&t(3,r=u.click)},i.$$.update=()=>{i.$$.dirty&4&&t(4,a=l===Pm.ChromecastState.CONNECTED?U("tooltip_chromecast_on"):U("tooltip_chromecast_off"))},[n,o,l,r,a,s]}var Uu=class extends B{constructor(e){super(),D(this,e,I4,S4,R,{ref:0,isMobile:1,state:2,click:3})}},es=Uu;var ts=require("@vkontakte/videoplayer-core");function T4(i){let e,t;return e=new Ml({props:{isActive:i[1]}}),{c(){A(e.$$.fragment)},m(n,o){E(e,n,o),t=!0},p(n,o){let l={};o&2&&(l.isActive=n[1]),e.$set(l)},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){m(e.$$.fragment,n),t=!1},d(n){M(e,n)}}}function P4(i){let e,t;return e=new pt({props:{className:i[0]?"":"btn--live btn-full-opacity",testId:i[1]?"btn-live":"btn-live-offset",disabled:i[1]&&i[3]===ts.PlaybackState.PLAYING,ariaLabel:i[2],click:i[4],$$slots:{default:[T4]},$$scope:{ctx:i}}}),{c(){A(e.$$.fragment)},m(n,o){E(e,n,o),t=!0},p(n,[o]){let l={};o&1&&(l.className=n[0]?"":"btn--live btn-full-opacity"),o&2&&(l.testId=n[1]?"btn-live":"btn-live-offset"),o&10&&(l.disabled=n[1]&&n[3]===ts.PlaybackState.PLAYING),o&4&&(l.ariaLabel=n[2]),o&16&&(l.click=n[4]),o&514&&(l.$$scope={dirty:o,ctx:n}),e.$set(l)},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){m(e.$$.fragment,n),t=!1},d(n){M(e,n)}}}function E4(i,e,t){let n,{isMobile:o=!1}=e,{isActiveLive:l=!1}=e,{ariaLabel:r=""}=e,a=nt(),s=a.state.playbackState$;N(i,s,g=>t(3,n=g));let u=a.actions.internal.switchToActiveLive,f=a.actions.internal.togglePlay,p;return i.$$set=g=>{"isMobile"in g&&t(0,o=g.isMobile),"isActiveLive"in g&&t(1,l=g.isActiveLive),"ariaLabel"in g&&t(2,r=g.ariaLabel)},i.$$.update=()=>{i.$$.dirty&10&&t(4,p=()=>{if(!l){u();return}n===ts.PlaybackState.PAUSED&&f()})},[o,l,r,n,p,s]}var Wu=class extends B{constructor(e){super(),D(this,e,E4,P4,R,{isMobile:0,isActiveLive:1,ariaLabel:2})}},is=Wu;function M4(i){Ce(i,"svelte-5ygsa2",'.tooltip-wrapper.svelte-5ygsa2{position:relative;display:block}.tooltip.svelte-5ygsa2{position:absolute;opacity:0;visibility:hidden;transition:opacity 200ms, visibility 200ms;bottom:100%;transform:translateX(-50%)}.pointer.svelte-5ygsa2:after{position:absolute;bottom:0;left:50%;width:0;border-top:5px solid rgba(41, 41, 41, .8);border-right:5px solid transparent;border-left:5px solid transparent;content:" ";font-size:0;line-height:0;transform:translate(-50%, 5px)}.tooltip.active.svelte-5ygsa2{opacity:1;visibility:visible}')}function A4(i){let e,t,n,o,l=i[9].default,r=Ee(l,i,i[8],null);return{c(){e=I("div"),t=I("div"),r&&r.c(),c(t,"class","tooltip svelte-5ygsa2"),G(t,"active",i[0]),G(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){v(a,e,s),_(e,t),r&&r.m(t,null),i[10](t),i[11](e),o=!0},p(a,[s]){r&&r.p&&(!o||s&256)&&Ae(r,l,a,a[8],o?Me(l,a[8],s,null):Le(a[8]),null),(!o||s&1)&&G(t,"active",a[0]),(!o||s&2)&&G(t,"pointer",a[1]),(!o||s&36&&n!==(n=`transform: translate(${a[5]}px, ${a[2]}px);`))&&c(e,"style",n)},i(a){o||(d(r,a),o=!0)},o(a){m(r,a),o=!1},d(a){a&&b(e),r&&r.d(a),i[10](null),i[11](null)}}}function L4(i,e,t){let n,{$$slots:o={},$$scope:l}=e,{active:r=!1}=e,{pointer:a=!1}=e,{translateXPx:s=0}=e,{translateYPx:u=0}=e,{containerWidth:f}=e,p,g;function y(w){if(!g)return 0;let{width:F}=g.getBoundingClientRect(),T=F/2;return w<T?T:w>f-T?f-T:w}function h(w){he[w?"unshift":"push"](()=>{g=w,t(4,g)})}function C(w){he[w?"unshift":"push"](()=>{p=w,t(3,p)})}return i.$$set=w=>{"active"in w&&t(0,r=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,l=w.$$scope)},i.$$.update=()=>{i.$$.dirty&64&&t(5,n=y(s))},[r,a,u,p,g,n,s,f,l,o,h,C]}var Ku=class extends B{constructor(e){super(),D(this,e,L4,A4,R,{active:0,pointer:1,translateXPx:6,translateYPx:2,containerWidth:7},M4)}},Mm=Ku;var ns=(i,e,t)=>t.filter(n=>n.time<i*e).pop();function V4(i){Ce(i,"svelte-l51fc1",".timeline-preview.svelte-l51fc1{bottom:18px;border-radius:2px;pointer-events:none}.timeline-preview.mobile.svelte-l51fc1{bottom:72px}.preview.svelte-l51fc1{margin-bottom:10px;background-color:var(--timeline-preview-bg);box-shadow:0 0 2px var(--timeline-preview-shadow), 0 8px 24px var(--timeline-preview-shadow);border-radius:8px;border:1px solid var(--white)}.episode.svelte-l51fc1{margin-top:10px;margin-bottom:4px;font-size:13px;line-height:16px;text-shadow:0 8px 24px var(--timeline-preview-shadow), 0 0 2px var(--timeline-preview-shadow);max-width:150px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;text-align:center;font-weight:500}.time.svelte-l51fc1{font-size:13px;line-height:16px;text-align:center;color:var(--slider-filled-bg);text-shadow:0 8px 24px var(--timeline-preview-shadow), 0 0 2px var(--timeline-preview-shadow);font-weight:500}")}function Am(i){let e;function t(l,r){return l[2]&&l[10].completed===!1?B4:R4}let n=t(i,-1),o=n(i);return{c(){o.c(),e=$e()},m(l,r){o.m(l,r),v(l,e,r)},p(l,r){n===(n=t(l,r))&&o?o.p(l,r):(o.d(1),o=n(l),o&&(o.c(),o.m(e.parentNode,e)))},d(l){l&&b(e),o.d(l)}}}function R4(i){let e=(i[10].text||"")+"",t;return{c(){t=Ne(e)},m(n,o){v(n,t,o)},p(n,o){o&1024&&e!==(e=(n[10].text||"")+"")&&Ge(t,e)},d(n){n&&b(t)}}}function B4(i){let e=U("tooltip_episode_unfinished")+"",t;return{c(){t=Ne(e)},m(n,o){v(n,t,o)},p:ge,d(n){n&&b(t)}}}function Lm(i){let e,t;return{c(){e=I("div"),t=Ne(i[0]),c(e,"class","time svelte-l51fc1")},m(n,o){v(n,e,o),_(e,t)},p(n,o){o&1&&Ge(t,n[0])},d(n){n&&b(e)}}}function D4(i){let e,t,n,o,l,r,a=i[10]&&Am(i),s=!i[2]&&Lm(i);return{c(){e=I("div"),t=I("div"),o=H(),l=I("div"),a&&a.c(),r=H(),s&&s.c(),c(t,"class","preview svelte-l51fc1"),c(t,"style",n=`width: ${i[3]}px; height: ${i[4]}px; background-image: url(${i[5]}); background-size: ${i[6]}px ${i[7]}px; background-position: ${i[8]}px ${i[9]}px; transform: translateY(${i[11]%180?-35:0}px) rotate(${i[11]}deg);`),c(l,"class","episode svelte-l51fc1"),c(e,"class","timeline-preview svelte-l51fc1"),G(e,"mobile",i[1])},m(u,f){v(u,e,f),_(e,t),_(e,o),_(e,l),a&&a.m(l,null),_(e,r),s&&s.m(e,null)},p(u,[f]){f&3064&&n!==(n=`width: ${u[3]}px; height: ${u[4]}px; background-image: url(${u[5]}); background-size: ${u[6]}px ${u[7]}px; background-position: ${u[8]}px ${u[9]}px; transform: translateY(${u[11]%180?-35:0}px) rotate(${u[11]}deg);`)&&c(t,"style",n),u[10]?a?a.p(u,f):(a=Am(u),a.c(),a.m(l,null)):a&&(a.d(1),a=null),u[2]?s&&(s.d(1),s=null):s?s.p(u,f):(s=Lm(u),s.c(),s.m(e,null)),f&2&&G(e,"mobile",u[1])},i:ge,o:ge,d(u){u&&b(e),a&&a.d(),s&&s.d()}}}var Ar=150;function N4(i,e,t){let n,{time:o=""}=e,{isMobile:l=!1}=e,{videoEpisodes:r=[]}=e,{previewThumbsData:a}=e,{progress:s=0}=e,{duration:u=0}=e,{isInteractive:f=!1}=e,g=nt().ui.rotateAlpha;N(i,g,z=>t(11,n=z));let y,h,C,w,F,T,k,P;function x(){let z=a.frameWidth,se=a.frameHeight;return z>Ar?(se=se/z*Ar,z=Ar):se>Ar&&(z=z/se*Ar,se=Ar),{width:z,height:se}}function W(z){let se;a.isUV?se=Math.floor(u*z/a.frequency):se=Math.min(a.countTotal,Math.max(0,Math.floor(a.countTotal*z)));let de=Math.floor(se/a.countPerImage),L=Math.floor(se%a.countPerImage/a.countPerRow),oe=se%a.countPerRow,re=Math.floor(a.countPerImage/a.countPerRow);!a.isUV&&de===Math.floor(a.countTotal/a.countPerImage)&&(re=Math.floor(a.countTotal%a.countPerImage/a.countPerRow),a.countTotal%a.countPerImage%a.countPerRow>0&&re++);let X=a.countPerRow;!a.isUV&&de===Math.floor(a.countTotal/a.countPerImage)&&a.countTotal%a.countPerImage>0&&(X=Math.min(a.countPerRow,a.countTotal%a.countPerImage));let Te=y*X,q=h*re,O=-oe*y,K=-L*h;return{imgSrc:a.links[de],imgWidth:Te,imgHeight:q,imgOffsetX:O,imgOffsetY:K}}return i.$$set=z=>{"time"in z&&t(0,o=z.time),"isMobile"in z&&t(1,l=z.isMobile),"videoEpisodes"in z&&t(13,r=z.videoEpisodes),"previewThumbsData"in z&&t(14,a=z.previewThumbsData),"progress"in z&&t(15,s=z.progress),"duration"in z&&t(16,u=z.duration),"isInteractive"in z&&t(2,f=z.isInteractive)},i.$$.update=()=>{i.$$.dirty&32768&&t(5,{imgSrc:C,imgWidth:w,imgHeight:F,imgOffsetX:T,imgOffsetY:k}=W(s),C,(t(6,w),t(15,s)),(t(7,F),t(15,s)),(t(8,T),t(15,s)),(t(9,k),t(15,s))),i.$$.dirty&106496&&t(10,P=ns(s,u,r))},t(3,{width:y,height:h}=x(),y,t(4,h)),[o,l,f,y,h,C,w,F,T,k,P,n,g,r,a,s,u]}var Gu=class extends B{constructor(e){super(),D(this,e,N4,D4,R,{time:0,isMobile:1,videoEpisodes:13,previewThumbsData:14,progress:15,duration:16,isInteractive:2},V4)}},Vm=Gu;function O4(i){Ce(i,"svelte-5lzly8",".time.svelte-5lzly8{display:inline-block;padding:6px 10px;border-radius:3px;color:var(--white);background-color:rgba(41, 41, 41, .8)}")}function F4(i){let e,t;return{c(){e=I("span"),t=Ne(i[8]),c(e,"class","time svelte-5lzly8")},m(n,o){v(n,e,o),_(e,t)},p(n,o){o[0]&256&&Ge(t,n[8])},i:ge,o:ge,d(n){n&&b(e)}}}function q4(i){let e,t;return e=new Vm({props:{time:i[8],isMobile:i[11],videoEpisodes:i[4],previewThumbsData:i[22],progress:i[9],duration:i[2],isInteractive:i[24]}}),{c(){A(e.$$.fragment)},m(n,o){E(e,n,o),t=!0},p(n,o){let l={};o[0]&256&&(l.time=n[8]),o[0]&2048&&(l.isMobile=n[11]),o[0]&16&&(l.videoEpisodes=n[4]),o[0]&512&&(l.progress=n[9]),o[0]&4&&(l.duration=n[2]),e.$set(l)},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){m(e.$$.fragment,n),t=!1},d(n){M(e,n)}}}function H4(i){let e,t,n,o,l=[q4,F4],r=[];function a(s,u){return s[15].features.timelinePreview&&s[22]&&!s[1]?0:1}return e=a(i,[-1,-1]),t=r[e]=l[e](i),{c(){t.c(),n=$e()},m(s,u){r[e].m(s,u),v(s,n,u),o=!0},p(s,u){let f=e;e=a(s,u),e===f?r[e].p(s,u):(ce(),m(r[f],1,1,()=>{r[f]=null}),fe(),t=r[e],t?t.p(s,u):(t=r[e]=l[e](s),t.c()),d(t,1),t.m(n.parentNode,n))},i(s){o||(d(t),o=!0)},o(s){m(t),o=!1},d(s){s&&b(n),r[e].d(s)}}}function z4(i){let e,t,n,o,l,r=[i[10]],a={$$slots:{default:[H4]},$$scope:{ctx:i}};for(let f=0;f<r.length;f+=1)a=ne(a,r[f]);e=new Mm({props:a});function s(f){i[43](f)}let u={isActiveLive:i[12],isMobile:i[11],ariaLabel:U("aria_timeline"),ariaValueMin:0,ariaValueMax:i[2],ariaValueNow:Math.round(i[7]*100),ariaValueText:U("aria_timeline_value",{position:i[6],duration:i[5]}),loadedProgress:i[13],filledProgress:i[7],handleProgress:i[7],videoEpisodes:i[4],onPointerDown:i[29],onHandleMove:i[30],onPointerMove:i[33],onPointerUp:i[31],onPointerEnter:i[32],onPointerLeave:i[34],onDisabledClick:i[27],isInteractive:i[24],disabled:i[14].has("TIMELINE"),hideHandel:i[3]};return i[0]!==void 0&&(u.ref=i[0]),n=new Pr({props:u}),he.push(()=>Fe(n,"ref",s)),{c(){A(e.$$.fragment),t=H(),A(n.$$.fragment)},m(f,p){E(e,f,p),v(f,t,p),E(n,f,p),l=!0},p(f,p){let g=p[0]&1024?De(r,[Ur(f[10])]):{};p[0]&2838|p[1]&524288&&(g.$$scope={dirty:p,ctx:f}),e.$set(g);let y={};p[0]&4096&&(y.isActiveLive=f[12]),p[0]&2048&&(y.isMobile=f[11]),p[0]&4&&(y.ariaValueMax=f[2]),p[0]&128&&(y.ariaValueNow=Math.round(f[7]*100)),p[0]&96&&(y.ariaValueText=U("aria_timeline_value",{position:f[6],duration:f[5]})),p[0]&8192&&(y.loadedProgress=f[13]),p[0]&128&&(y.filledProgress=f[7]),p[0]&128&&(y.handleProgress=f[7]),p[0]&16&&(y.videoEpisodes=f[4]),p[0]&16384&&(y.disabled=f[14].has("TIMELINE")),p[0]&8&&(y.hideHandel=f[3]),!o&&p[0]&1&&(o=!0,y.ref=f[0],Oe(()=>o=!1)),n.$set(y)},i(f){l||(d(e.$$.fragment,f),d(n.$$.fragment,f),l=!0)},o(f){m(e.$$.fragment,f),m(n.$$.fragment,f),l=!1},d(f){f&&b(t),M(e,f),M(n,f)}}}function U4(i,e,t){let n,o,l,r,a,s,u,f,p,g,y,{showTimeline:h=!1}=e,{ref:C=void 0}=e,w=nt(),F=Bt(),T=w.state.bufferedProgress$;N(i,T,Q=>t(13,g=Q));let k=w.state.positionWithScrubbing$;N(i,k,Q=>t(41,s=Q));let P=w.state.duration$;N(i,P,Q=>t(2,l=Q));let x=w.state.isLive$;N(i,x,Q=>t(1,o=Q));let W=w.state.isActiveLive$;N(i,W,Q=>t(12,p=Q));let z=w.ui.isMobile;N(i,z,Q=>t(11,f=Q));let se=F.features.episodes?w.actions.internal.getVideoEpisodes():void 0,de=w.actions.internal.getPreviewThumbsData(),L=w.state.interactiveEpisodes$;N(i,L,Q=>t(42,u=Q));let oe=w.state.isInteractive,re=w.state.isInteractiveTime$;N(i,re,Q=>t(3,r=Q));let X=w.state.isInteractiveExpectation$;N(i,X,Q=>t(40,a=Q));let Te=w.actions.internal.correctSeekTimeToInteractive,q=w.callbacks?.onDisabledTimelineClick,O=w.ui.controls.disabledControls$;N(i,O,Q=>t(14,y=Q));let K,le,ee,ue,ze=!1,Re="",ke=0,Ve=0,Qe=0,tt;function j(Q){return!Te||!oe?Q:Te(Q*l)/l}function ae(Q){w.actions.internal.startScrubbing(j(Q))}function Ze(Q){r||w.actions.internal.progressScrubbing(j(Q))}function _e(Q){w.actions.internal.completeScrubbing(j(Q)),t(36,ze=!1)}function Ue(Q,Be,Ie){qe(Q,Be,Ie),t(36,ze=!0)}function st(Q,Be,Ie){qe(Q,Be,Ie),t(36,ze=!0)}function je(){t(36,ze=!1)}function qe(Q,Be,Ie){t(9,Qe=j(Q)),t(37,ke=Be),Ie&&t(38,Ve=Ie),t(8,Re=Xe(Q))}function Xe(Q){let Be=Sn((o?1-Q:Q)*l);return o?`-${Be}`:Be}function Ye(Q){C=Q,t(0,C)}return i.$$set=Q=>{"showTimeline"in Q&&t(35,h=Q.showTimeline),"ref"in Q&&t(0,C=Q.ref)},i.$$.update=()=>{i.$$.dirty[1]&2048&&t(4,K=oe?u:se),i.$$.dirty[0]&4&&t(5,le=Sn(l)),i.$$.dirty[1]&1024&&t(6,ee=Sn(s)),i.$$.dirty[0]&4|i.$$.dirty[1]&1024&&t(7,ue=s/l),i.$$.dirty[0]&8|i.$$.dirty[1]&512&&t(39,tt=a||r),i.$$.dirty[0]&2|i.$$.dirty[1]&496&&t(10,n={containerWidth:Ve,translateXPx:ke,translateYPx:oe&&de?-36:-16,active:ze&&h&&!tt,pointer:!F.features.timelinePreview||!de||o})},[C,o,l,r,K,le,ee,ue,Re,Qe,n,f,p,g,y,F,T,k,P,x,W,z,de,L,oe,re,X,q,O,ae,Ze,_e,Ue,st,je,h,ze,ke,Ve,tt,a,s,u,Ye]}var ju=class extends B{constructor(e){super(),D(this,e,U4,z4,R,{showTimeline:35,ref:0},O4,[-1,-1])}},Rm=ju;function W4(i){let e,t;return e=new Pr({props:{ariaValueMin:0,ariaValueMax:i[0],ariaValueNow:Math.round(i[3]*100),ariaValueText:U("aria_timeline_value",{position:i[2],duration:i[1]}),filledProgress:i[3],isAds:!0,hideHandel:!0,squareBorders:i[4]}}),{c(){A(e.$$.fragment)},m(n,o){E(e,n,o),t=!0},p(n,[o]){let l={};o&1&&(l.ariaValueMax=n[0]),o&8&&(l.ariaValueNow=Math.round(n[3]*100)),o&6&&(l.ariaValueText=U("aria_timeline_value",{position:n[2],duration:n[1]})),o&8&&(l.filledProgress=n[3]),o&16&&(l.squareBorders=n[4]),e.$set(l)},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){m(e.$$.fragment,n),t=!1},d(n){M(e,n)}}}function K4(i,e,t){let n,{position:o=0}=e,{duration:l=0}=e,a=nt().ui.isMobile;N(i,a,p=>t(4,n=p));let s,u,f;return i.$$set=p=>{"position"in p&&t(6,o=p.position),"duration"in p&&t(0,l=p.duration)},i.$$.update=()=>{i.$$.dirty&1&&t(1,s=Sn(l)),i.$$.dirty&64&&t(2,u=Sn(o)),i.$$.dirty&65&&t(3,f=o/l)},[l,s,u,f,n,a,o]}var xu=class extends B{constructor(e){super(),D(this,e,K4,W4,R,{position:6,duration:0})}},os=xu;function G4(i){Ce(i,"svelte-1gqonyf",".timeline.svelte-1gqonyf{position:relative;pointer-events:all;display:flex;align-items:center;bottom:0;width:100%;min-width:86px;padding:3px 10px 4px;box-sizing:border-box}.timeline.mobile.svelte-1gqonyf{height:16px;padding:6px 12px 7px;margin-top:6px}.timeline-stub.svelte-1gqonyf{width:100%;min-width:20px}.timeline-stub.mobile.svelte-1gqonyf{height:8px}")}function j4(i){let e;return{c(){e=I("div"),c(e,"class","timeline-stub svelte-1gqonyf"),G(e,"mobile",i[3])},m(t,n){v(t,e,n)},p(t,n){n&8&&G(e,"mobile",t[3])},i:ge,o:ge,d(t){t&&b(e)}}}function x4(i){let e,t,n,o,l=[Q4,Y4],r=[];function a(s,u){return s[1]?0:1}return t=a(i,-1),n=r[t]=l[t](i),{c(){e=I("div"),n.c(),c(e,"class","timeline svelte-1gqonyf"),G(e,"mobile",i[3])},m(s,u){v(s,e,u),r[t].m(e,null),o=!0},p(s,u){let f=t;t=a(s,u),t===f?r[t].p(s,u):(ce(),m(r[f],1,1,()=>{r[f]=null}),fe(),n=r[t],n?n.p(s,u):(n=r[t]=l[t](s),n.c()),d(n,1),n.m(e,null)),(!o||u&8)&&G(e,"mobile",s[3])},i(s){o||(d(n),o=!0)},o(s){m(n),o=!1},d(s){s&&b(e),r[t].d()}}}function Y4(i){let e,t,n;function o(r){i[14](r)}let l={showTimeline:i[2]};return i[0]!==void 0&&(l.ref=i[0]),e=new Rm({props:l}),he.push(()=>Fe(e,"ref",o)),{c(){A(e.$$.fragment)},m(r,a){E(e,r,a),n=!0},p(r,a){let s={};a&4&&(s.showTimeline=r[2]),!t&&a&1&&(t=!0,s.ref=r[0],Oe(()=>t=!1)),e.$set(s)},i(r){n||(d(e.$$.fragment,r),n=!0)},o(r){m(e.$$.fragment,r),n=!1},d(r){M(e,r)}}}function Q4(i){let e,t;return e=new os({props:{position:i[4],duration:i[5]}}),{c(){A(e.$$.fragment)},m(n,o){E(e,n,o),t=!0},p(n,o){let l={};o&16&&(l.position=n[4]),o&32&&(l.duration=n[5]),e.$set(l)},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){m(e.$$.fragment,n),t=!1},d(n){M(e,n)}}}function Z4(i){let e,t,n,o,l=[x4,j4],r=[];function a(s,u){return s[2]?0:1}return e=a(i,-1),t=r[e]=l[e](i),{c(){t.c(),n=$e()},m(s,u){r[e].m(s,u),v(s,n,u),o=!0},p(s,[u]){let f=e;e=a(s,u),e===f?r[e].p(s,u):(ce(),m(r[f],1,1,()=>{r[f]=null}),fe(),t=r[e],t?t.p(s,u):(t=r[e]=l[e](s),t.c()),d(t,1),t.m(n.parentNode,n))},i(s){o||(d(t),o=!0)},o(s){m(t),o=!1},d(s){s&&b(n),r[e].d(s)}}}function X4(i,e,t){let n,o,l,r,{isAds:a=!1}=e,{canRewindLive:s}=e,{isRewindableLive:u}=e,{isHidden:f=!1}=e,{ref:p=void 0}=e,g=nt(),y=g.state.isLive$;N(i,y,k=>t(13,n=k));let h=g.ads.duration;N(i,h,k=>t(5,r=k));let C=g.ads.position;N(i,C,k=>t(4,l=k));let w=g.ui.isMobile;N(i,w,k=>t(3,o=k));let F;function T(k){p=k,t(0,p)}return i.$$set=k=>{"isAds"in k&&t(1,a=k.isAds),"canRewindLive"in k&&t(10,s=k.canRewindLive),"isRewindableLive"in k&&t(11,u=k.isRewindableLive),"isHidden"in k&&t(12,f=k.isHidden),"ref"in k&&t(0,p=k.ref)},i.$$.update=()=>{i.$$.dirty&15362&&t(2,F=!f&&(!n||n&&s&&u||a))},[p,a,F,o,l,r,y,h,C,w,s,u,f,n,T]}var Yu=class extends B{constructor(e){super(),D(this,e,X4,Z4,R,{isAds:1,canRewindLive:10,isRewindableLive:11,isHidden:12,ref:0},G4)}},rs=Yu;var Nm=require("@vkontakte/videoplayer-shared");function J4(i){let e,t,n,o,l,r=i[2].default,a=Ee(r,i,i[1],null),s=[{xmlns:"http://www.w3.org/2000/svg"},{width:"24"},{height:"24"},{fill:"none"},{"aria-hidden":"true"},{"data-testid":"episodes-icon"},{style:"flex-shrink:0"},{role:"img"},i[0]],u={};for(let f=0;f<s.length;f+=1)u=ne(u,s[f]);return{c(){e=V("svg"),a&&a.c(),t=V("path"),n=V("path"),o=V("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"),ye(e,u)},m(f,p){v(f,e,p),a&&a.m(e,null),_(e,t),_(e,n),_(e,o),l=!0},p(f,[p]){a&&a.p&&(!l||p&2)&&Ae(a,r,f,f[1],l?Me(r,f[1],p,null):Le(f[1]),null),ye(e,u=De(s,[{xmlns:"http://www.w3.org/2000/svg"},{width:"24"},{height:"24"},{fill:"none"},{"aria-hidden":"true"},{"data-testid":"episodes-icon"},{style:"flex-shrink:0"},{role:"img"},p&1&&f[0]]))},i(f){l||(d(a,f),l=!0)},o(f){m(a,f),l=!1},d(f){f&&b(e),a&&a.d(f)}}}function $4(i,e,t){let{$$slots:n={},$$scope:o}=e;return i.$$set=l=>{t(0,e=ne(ne({},e),ve(l))),"$$scope"in l&&t(1,o=l.$$scope)},e=ve(e),[e,o,n]}var Qu=class extends B{constructor(e){super(),D(this,e,$4,J4,R,{})}},Bm=Qu;function e3(i){let e,t,n,o=i[2].default,l=Ee(o,i,i[1],null),r=[{xmlns:"http://www.w3.org/2000/svg"},{width:"12"},{height:"13"},{fill:"none"},{"aria-hidden":"true"},{"data-testid":"chevron-light-icon"},{role:"img"},i[0]],a={};for(let s=0;s<r.length;s+=1)a=ne(a,r[s]);return{c(){e=V("svg"),l&&l.c(),t=V("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"),ye(e,a)},m(s,u){v(s,e,u),l&&l.m(e,null),_(e,t),n=!0},p(s,[u]){l&&l.p&&(!n||u&2)&&Ae(l,o,s,s[1],n?Me(o,s[1],u,null):Le(s[1]),null),ye(e,a=De(r,[{xmlns:"http://www.w3.org/2000/svg"},{width:"12"},{height:"13"},{fill:"none"},{"aria-hidden":"true"},{"data-testid":"chevron-light-icon"},{role:"img"},u&1&&s[0]]))},i(s){n||(d(l,s),n=!0)},o(s){m(l,s),n=!1},d(s){s&&b(e),l&&l.d(s)}}}function t3(i,e,t){let{$$slots:n={},$$scope:o}=e;return i.$$set=l=>{t(0,e=ne(ne({},e),ve(l))),"$$scope"in l&&t(1,o=l.$$scope)},e=ve(e),[e,o,n]}var Zu=class extends B{constructor(e){super(),D(this,e,t3,e3,R,{})}},Dm=Zu;function i3(i){Ce(i,"svelte-1yhs2ga",".text.svelte-1yhs2ga{padding:0 8px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.text.count.svelte-1yhs2ga{overflow:visible}.text.mobile.svelte-1yhs2ga{padding:0 3px 0 4px}.chevron-episodes.svelte-1yhs2ga{margin-bottom:-4px}")}function n3(i){let e,t,n,o;e=new Bm({});function l(s,u){if(s[4]==="FULL")return l3;if(s[4]==="COUNT")return r3}let r=l(i,-1),a=r&&r(i);return{c(){A(e.$$.fragment),t=H(),a&&a.c(),n=$e()},m(s,u){E(e,s,u),v(s,t,u),a&&a.m(s,u),v(s,n,u),o=!0},p(s,u){r===(r=l(s,u))&&a?a.p(s,u):(a&&a.d(1),a=r&&r(s),a&&(a.c(),a.m(n.parentNode,n)))},i(s){o||(d(e.$$.fragment,s),o=!0)},o(s){m(e.$$.fragment,s),o=!1},d(s){s&&(b(t),b(n)),M(e,s),a&&a.d(s)}}}function o3(i){let e,t,n,o,l,r;return l=new Dm({}),{c(){e=I("span"),t=Ne(i[2]),n=H(),o=I("div"),A(l.$$.fragment),c(e,"class","text mobile svelte-1yhs2ga"),c(o,"class","chevron-episodes svelte-1yhs2ga")},m(a,s){v(a,e,s),_(e,t),v(a,n,s),v(a,o,s),E(l,o,null),r=!0},p(a,s){(!r||s&4)&&Ge(t,a[2])},i(a){r||(d(l.$$.fragment,a),r=!0)},o(a){m(l.$$.fragment,a),r=!1},d(a){a&&(b(e),b(n),b(o)),M(l)}}}function r3(i){let e,t=i[0].length+"",n;return{c(){e=I("span"),n=Ne(t),c(e,"class","text count svelte-1yhs2ga")},m(o,l){v(o,e,l),_(e,n)},p(o,l){l&1&&t!==(t=o[0].length+"")&&Ge(n,t)},d(o){o&&b(e)}}}function l3(i){let e,t;return{c(){e=I("span"),t=Ne(i[2]),c(e,"class","text svelte-1yhs2ga")},m(n,o){v(n,e,o),_(e,t)},p(n,o){o&4&&Ge(t,n[2])},d(n){n&&b(e)}}}function s3(i){let e,t,n,o,l=[o3,n3],r=[];function a(s,u){return s[6]?0:1}return e=a(i,-1),t=r[e]=l[e](i),{c(){t.c(),n=$e()},m(s,u){r[e].m(s,u),v(s,n,u),o=!0},p(s,u){let f=e;e=a(s,u),e===f?r[e].p(s,u):(ce(),m(r[f],1,1,()=>{r[f]=null}),fe(),t=r[e],t?t.p(s,u):(t=r[e]=l[e](s),t.c()),d(t,1),t.m(n.parentNode,n))},i(s){o||(d(t),o=!0)},o(s){m(t),o=!1},d(s){s&&b(n),r[e].d(s)}}}function a3(i){let e,t,n;function o(r){i[19](r)}let l={className:"w-max btn-full-opacity "+(i[6]?"px-0":""),testId:"btn-episodes",click:i[12],disabled:!i[7],ariaExpanded:i[3],ariaLabel:i[5],$$slots:{default:[s3]},$$scope:{ctx:i}};return i[1]!==void 0&&(l.ref=i[1]),e=new pt({props:l}),he.push(()=>Fe(e,"ref",o)),{c(){A(e.$$.fragment)},m(r,a){E(e,r,a),n=!0},p(r,[a]){let s={};a&64&&(s.className="w-max btn-full-opacity "+(r[6]?"px-0":"")),a&8&&(s.ariaExpanded=r[3]),a&32&&(s.ariaLabel=r[5]),a&8388693&&(s.$$scope={dirty:a,ctx:r}),!t&&a&2&&(t=!0,s.ref=r[1],Oe(()=>t=!1)),e.$set(s)},i(r){n||(d(e.$$.fragment,r),n=!0)},o(r){m(e.$$.fragment,r),n=!1},d(r){M(e,r)}}}function u3(i,e,t){let n,o,l,r,a,s,{position:u=0}=e,{duration:f=0}=e,{timeCodes:p=[]}=e,g=nt(),y=g.callbacks?.onEpisodeChanged??Nm.noop,h=!!g.callbacks?.onEpisodeClicked,C=g.ui.currentGridType$;N(i,C,L=>t(18,a=L));let w=g.ui.episodes.openedByKeyboard$;N(i,w,L=>t(17,r=L));let F=g.ui.episodes.panelOpened$;N(i,F,L=>t(3,l=L));let T=g.ui.isMobile;N(i,T,L=>t(6,s=L));let k,P=L=>{if(!!g.callbacks?.onEpisodeClicked){let re=yr(L);w.set(re),F.set(!0),g.callbacks?.onEpisodeClicked?.(re)}},x,W,z,se=async(L,oe,re)=>{await qn(),L?.getAttribute("aria-expanded")==="false"&&oe&&!re&&(w.set(!1),L.focus())};function de(L){k=L,t(1,k)}return i.$$set=L=>{"position"in L&&t(13,u=L.position),"duration"in L&&t(14,f=L.duration),"timeCodes"in L&&t(0,p=L.timeCodes)},i.$$.update=()=>{if(i.$$.dirty&24576&&t(16,n=u/f),i.$$.dirty&114689){let L=ns(n,f,p);L&&x?.text!==L.text&&(y(L),t(15,x=L))}i.$$.dirty&32768&&t(2,o=x?.text||""),i.$$.dirty&262144&&(Ji(a,"xl")?t(4,W="FULL"):Ji(a,"m")&&dm(a,"xl")?t(4,W="COUNT"):t(4,W="SHORT")),i.$$.dirty&4&&t(5,z=`${U("tooltip_episodes")}: ${o}`),i.$$.dirty&131082&&se(k,r,l)},[p,k,o,l,W,z,s,h,C,w,F,T,P,u,f,x,n,r,a,de]}var Xu=class extends B{constructor(e){super(),D(this,e,u3,a3,R,{position:13,duration:14,timeCodes:0},i3)}},ls=Xu;function c3(i){let e,t,n,o,l=i[2].default,r=Ee(l,i,i[1],null),a=[{xmlns:"http://www.w3.org/2000/svg"},{width:"24"},{height:"24"},{fill:"none"},{"aria-hidden":"true"},{"data-testid":"seek-to-interactive-icon"},{role:"img"},i[0]],s={};for(let u=0;u<a.length;u+=1)s=ne(s,a[u]);return{c(){e=V("svg"),r&&r.c(),t=V("path"),n=V("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"),ye(e,s)},m(u,f){v(u,e,f),r&&r.m(e,null),_(e,t),_(e,n),o=!0},p(u,[f]){r&&r.p&&(!o||f&2)&&Ae(r,l,u,u[1],o?Me(l,u[1],f,null):Le(u[1]),null),ye(e,s=De(a,[{xmlns:"http://www.w3.org/2000/svg"},{width:"24"},{height:"24"},{fill:"none"},{"aria-hidden":"true"},{"data-testid":"seek-to-interactive-icon"},{role:"img"},f&1&&u[0]]))},i(u){o||(d(r,u),o=!0)},o(u){m(r,u),o=!1},d(u){u&&b(e),r&&r.d(u)}}}function f3(i,e,t){let{$$slots:n={},$$scope:o}=e;return i.$$set=l=>{t(0,e=ne(ne({},e),ve(l))),"$$scope"in l&&t(1,o=l.$$scope)},e=ve(e),[e,o,n]}var Ju=class extends B{constructor(e){super(),D(this,e,f3,c3,R,{})}},Om=Ju;function d3(i){let e,t;return e=new Om({}),{c(){A(e.$$.fragment)},m(n,o){E(e,n,o),t=!0},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){m(e.$$.fragment,n),t=!1},d(n){M(e,n)}}}function m3(i){let e,t,n;function o(r){i[4](r)}let l={className:i[1]?"hidden":"",testId:"btn-seek-to-interactive",ariaLabel:U("tooltip_interactive_seek"),disabled:i[2],click:i[3],$$slots:{default:[d3]},$$scope:{ctx:i}};return i[0]!==void 0&&(l.ref=i[0]),e=new pt({props:l}),he.push(()=>Fe(e,"ref",o)),{c(){A(e.$$.fragment)},m(r,a){E(e,r,a),n=!0},p(r,[a]){let s={};a&2&&(s.className=r[1]?"hidden":""),a&4&&(s.disabled=r[2]),a&8&&(s.click=r[3]),a&32&&(s.$$scope={dirty:a,ctx:r}),!t&&a&1&&(t=!0,s.ref=r[0],Oe(()=>t=!1)),e.$set(s)},i(r){n||(d(e.$$.fragment,r),n=!0)},o(r){m(e.$$.fragment,r),n=!1},d(r){M(e,r)}}}function p3(i,e,t){let{ref:n=void 0}=e,{hidden:o=!1}=e,{disabled:l=!1}=e,{click:r}=e;function a(s){n=s,t(0,n)}return i.$$set=s=>{"ref"in s&&t(0,n=s.ref),"hidden"in s&&t(1,o=s.hidden),"disabled"in s&&t(2,l=s.disabled),"click"in s&&t(3,r=s.click)},[n,o,l,r,a]}var $u=class extends B{constructor(e){super(),D(this,e,p3,m3,R,{ref:0,hidden:1,disabled:2,click:3})}},ss=$u;function _3(i){let e,t,n,o,l=i[2].default,r=Ee(l,i,i[1],null),a=[{xmlns:"http://www.w3.org/2000/svg"},{width:"24"},{height:"24"},{fill:"none"},{"aria-hidden":"true"},{role:"img"},i[0]],s={};for(let u=0;u<a.length;u+=1)s=ne(s,a[u]);return{c(){e=V("svg"),r&&r.c(),t=V("path"),n=V("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"),ye(e,s)},m(u,f){v(u,e,f),r&&r.m(e,null),_(e,t),_(e,n),o=!0},p(u,[f]){r&&r.p&&(!o||f&2)&&Ae(r,l,u,u[1],o?Me(l,u[1],f,null):Le(u[1]),null),ye(e,s=De(a,[{xmlns:"http://www.w3.org/2000/svg"},{width:"24"},{height:"24"},{fill:"none"},{"aria-hidden":"true"},{role:"img"},f&1&&u[0]]))},i(u){o||(d(r,u),o=!0)},o(u){m(r,u),o=!1},d(u){u&&b(e),r&&r.d(u)}}}function g3(i,e,t){let{$$slots:n={},$$scope:o}=e;return i.$$set=l=>{t(0,e=ne(ne({},e),ve(l))),"$$scope"in l&&t(1,o=l.$$scope)},e=ve(e),[e,o,n]}var ec=class extends B{constructor(e){super(),D(this,e,g3,_3,R,{})}},Fm=ec;function h3(i){Ce(i,"svelte-17ceof5",'svg[data-testid="graph-open-icon"] ._closed{visibility:hidden;opacity:0}')}function b3(i){let e,t;return e=new Fm({props:{"data-testid":i[0]?"graph-close-icon":"graph-open-icon"}}),{c(){A(e.$$.fragment)},m(n,o){E(e,n,o),t=!0},p(n,[o]){let l={};o&1&&(l["data-testid"]=n[0]?"graph-close-icon":"graph-open-icon"),e.$set(l)},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){m(e.$$.fragment,n),t=!1},d(n){M(e,n)}}}function v3(i,e,t){let{isOpened:n=!1}=e;return i.$$set=o=>{"isOpened"in o&&t(0,n=o.isOpened)},[n]}var tc=class extends B{constructor(e){super(),D(this,e,v3,b3,R,{isOpened:0},h3)}},qm=tc;function y3(i){let e,t;return e=new qm({props:{isOpened:i[3]}}),{c(){A(e.$$.fragment)},m(n,o){E(e,n,o),t=!0},p(n,o){let l={};o&8&&(l.isOpened=n[3]),e.$set(l)},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){m(e.$$.fragment,n),t=!1},d(n){M(e,n)}}}function k3(i){let e,t,n;function o(r){i[6](r)}let l={className:i[1]?"hidden":"",testId:"btn-graph",disabled:i[2],ariaLabel:i[5],click:i[4],$$slots:{default:[y3]},$$scope:{ctx:i}};return i[0]!==void 0&&(l.ref=i[0]),e=new pt({props:l}),he.push(()=>Fe(e,"ref",o)),{c(){A(e.$$.fragment)},m(r,a){E(e,r,a),n=!0},p(r,[a]){let s={};a&2&&(s.className=r[1]?"hidden":""),a&4&&(s.disabled=r[2]),a&32&&(s.ariaLabel=r[5]),a&16&&(s.click=r[4]),a&136&&(s.$$scope={dirty:a,ctx:r}),!t&&a&1&&(t=!0,s.ref=r[0],Oe(()=>t=!1)),e.$set(s)},i(r){n||(d(e.$$.fragment,r),n=!0)},o(r){m(e.$$.fragment,r),n=!1},d(r){M(e,r)}}}function w3(i,e,t){let{ref:n=void 0}=e,{hidden:o=!1}=e,{disabled:l=!1}=e,{graphIsOpened:r=!1}=e,{click:a}=e,s;function u(f){n=f,t(0,n)}return i.$$set=f=>{"ref"in f&&t(0,n=f.ref),"hidden"in f&&t(1,o=f.hidden),"disabled"in f&&t(2,l=f.disabled),"graphIsOpened"in f&&t(3,r=f.graphIsOpened),"click"in f&&t(4,a=f.click)},i.$$.update=()=>{i.$$.dirty&8&&t(5,s=r?U("tooltip_interactive_graph_on"):U("tooltip_interactive_graph_off"))},[n,o,l,r,a,s,u]}var ic=class extends B{constructor(e){super(),D(this,e,w3,k3,R,{ref:0,hidden:1,disabled:2,graphIsOpened:3,click:4})}},as=ic;function C3(i){let e,t,n,o=i[2].default,l=Ee(o,i,i[1],null),r=[{xmlns:"http://www.w3.org/2000/svg"},{width:"24"},{height:"24"},{fill:"none"},{"aria-hidden":"true"},{"data-testid":"replay-icon"},{role:"img"},i[0]],a={};for(let s=0;s<r.length;s+=1)a=ne(a,r[s]);return{c(){e=V("svg"),l&&l.c(),t=V("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"),ye(e,a)},m(s,u){v(s,e,u),l&&l.m(e,null),_(e,t),n=!0},p(s,[u]){l&&l.p&&(!n||u&2)&&Ae(l,o,s,s[1],n?Me(o,s[1],u,null):Le(s[1]),null),ye(e,a=De(r,[{xmlns:"http://www.w3.org/2000/svg"},{width:"24"},{height:"24"},{fill:"none"},{"aria-hidden":"true"},{"data-testid":"replay-icon"},{role:"img"},u&1&&s[0]]))},i(s){n||(d(l,s),n=!0)},o(s){m(l,s),n=!1},d(s){s&&b(e),l&&l.d(s)}}}function S3(i,e,t){let{$$slots:n={},$$scope:o}=e;return i.$$set=l=>{t(0,e=ne(ne({},e),ve(l))),"$$scope"in l&&t(1,o=l.$$scope)},e=ve(e),[e,o,n]}var nc=class extends B{constructor(e){super(),D(this,e,S3,C3,R,{})}},us=nc;var zm=require("@vkontakte/videoplayer-shared");function I3(i){Ce(i,"svelte-1ot3duq",".mobile.svelte-1ot3duq{position:relative;display:flex;align-items:center;justify-content:center}.mobile.svelte-1ot3duq svg{transform:scale(2)}.icon-background-mobile.svelte-1ot3duq{position:absolute;top:16px;left:16px;border-radius:var(--big-play-radius);background-color:var(--big-play-bg-color);width:calc(100% - 32px);height:calc(100% - 32px)}")}function Hm(i){let e;return{c(){e=I("div"),c(e,"class","icon-background-mobile svelte-1ot3duq")},m(t,n){v(t,e,n)},d(t){t&&b(e)}}}function T3(i){let e,t,n,o,l=i[1]&&Hm(i);return n=new us({}),{c(){l&&l.c(),e=H(),t=I("div"),A(n.$$.fragment),c(t,"class","svelte-1ot3duq"),G(t,"mobile",i[1])},m(r,a){l&&l.m(r,a),v(r,e,a),v(r,t,a),E(n,t,null),o=!0},p(r,a){r[1]?l||(l=Hm(r),l.c(),l.m(e.parentNode,e)):l&&(l.d(1),l=null),(!o||a&2)&&G(t,"mobile",r[1])},i(r){o||(d(n.$$.fragment,r),o=!0)},o(r){m(n.$$.fragment,r),o=!1},d(r){r&&(b(e),b(t)),l&&l.d(r),M(n)}}}function P3(i){let e,t,n;function o(r){i[5](r)}let l={className:(i[1]?"btn-m--play":"")+" "+i[3],testId:"btn-replay",ariaLabel:U("tooltip_restart"),disabled:i[2],click:i[4],ariaKeyShortCut:Xn.KeyK,$$slots:{default:[T3]},$$scope:{ctx:i}};return i[0]!==void 0&&(l.ref=i[0]),e=new pt({props:l}),he.push(()=>Fe(e,"ref",o)),{c(){A(e.$$.fragment)},m(r,a){E(e,r,a),n=!0},p(r,[a]){let s={};a&10&&(s.className=(r[1]?"btn-m--play":"")+" "+r[3]),a&4&&(s.disabled=r[2]),a&16&&(s.click=r[4]),a&66&&(s.$$scope={dirty:a,ctx:r}),!t&&a&1&&(t=!0,s.ref=r[0],Oe(()=>t=!1)),e.$set(s)},i(r){n||(d(e.$$.fragment,r),n=!0)},o(r){m(e.$$.fragment,r),n=!1},d(r){M(e,r)}}}function E3(i,e,t){let{ref:n=void 0}=e,{isMobile:o=!1}=e,{disabled:l=!1}=e,{className:r=""}=e,{click:a=zm.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,l=u.disabled),"className"in u&&t(3,r=u.className),"click"in u&&t(4,a=u.click)},[n,o,l,r,a,s]}var oc=class extends B{constructor(e){super(),D(this,e,E3,P3,R,{ref:0,isMobile:1,disabled:2,className:3,click:4},I3)}},Zr=oc;function M3(i){let e,t,n,o=i[2].default,l=Ee(o,i,i[1],null),r=[{xmlns:"http://www.w3.org/2000/svg"},{width:"24"},{height:"24"},{fill:"none"},{"data-testid":"play-prev-chapter-icon"},{role:"img"},i[0]],a={};for(let s=0;s<r.length;s+=1)a=ne(a,r[s]);return{c(){e=V("svg"),l&&l.c(),t=V("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"),ye(e,a)},m(s,u){v(s,e,u),l&&l.m(e,null),_(e,t),n=!0},p(s,[u]){l&&l.p&&(!n||u&2)&&Ae(l,o,s,s[1],n?Me(o,s[1],u,null):Le(s[1]),null),ye(e,a=De(r,[{xmlns:"http://www.w3.org/2000/svg"},{width:"24"},{height:"24"},{fill:"none"},{"data-testid":"play-prev-chapter-icon"},{role:"img"},u&1&&s[0]]))},i(s){n||(d(l,s),n=!0)},o(s){m(l,s),n=!1},d(s){s&&b(e),l&&l.d(s)}}}function A3(i,e,t){let{$$slots:n={},$$scope:o}=e;return i.$$set=l=>{t(0,e=ne(ne({},e),ve(l))),"$$scope"in l&&t(1,o=l.$$scope)},e=ve(e),[e,o,n]}var rc=class extends B{constructor(e){super(),D(this,e,A3,M3,R,{})}},Um=rc;function L3(i){let e,t;return e=new Um({}),{c(){A(e.$$.fragment)},m(n,o){E(e,n,o),t=!0},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){m(e.$$.fragment,n),t=!1},d(n){M(e,n)}}}function V3(i){let e,t,n;function o(r){i[4](r)}let l={className:i[1]?"hidden":"",testId:"btn-play-prev-chapter",ariaLabel:U("tooltip_interactive_go_back"),disabled:i[2],click:i[3],$$slots:{default:[L3]},$$scope:{ctx:i}};return i[0]!==void 0&&(l.ref=i[0]),e=new pt({props:l}),he.push(()=>Fe(e,"ref",o)),{c(){A(e.$$.fragment)},m(r,a){E(e,r,a),n=!0},p(r,[a]){let s={};a&2&&(s.className=r[1]?"hidden":""),a&4&&(s.disabled=r[2]),a&8&&(s.click=r[3]),a&32&&(s.$$scope={dirty:a,ctx:r}),!t&&a&1&&(t=!0,s.ref=r[0],Oe(()=>t=!1)),e.$set(s)},i(r){n||(d(e.$$.fragment,r),n=!0)},o(r){m(e.$$.fragment,r),n=!1},d(r){M(e,r)}}}function R3(i,e,t){let{ref:n=void 0}=e,{hidden:o=!1}=e,{disabled:l=!1}=e,{click:r}=e;function a(s){n=s,t(0,n)}return i.$$set=s=>{"ref"in s&&t(0,n=s.ref),"hidden"in s&&t(1,o=s.hidden),"disabled"in s&&t(2,l=s.disabled),"click"in s&&t(3,r=s.click)},[n,o,l,r,a]}var lc=class extends B{constructor(e){super(),D(this,e,R3,V3,R,{ref:0,hidden:1,disabled:2,click:3})}},cs=lc;var sc=require("@vkontakte/videoplayer-shared");function B3(i){Ce(i,"svelte-1aqpg2x",".icon.svelte-1aqpg2x{width:24px !important;height:24px !important;;}.inner.svelte-1aqpg2x{width:16px;height:16px;background-color:var(--white)}")}function D3(i){let e,t,n,o;return{c(){e=I("img"),c(e,"class","icon svelte-1aqpg2x"),io(e.src,t=i[0])||c(e,"src",t),c(e,"aria-hidden","true")},m(l,r){v(l,e,r),n||(o=Pe(e,"error",i[7]),n=!0)},p(l,r){r&1&&!io(e.src,t=l[0])&&c(e,"src",t)},d(l){l&&b(e),n=!1,o()}}}function N3(i){let e;return{c(){e=I("div"),e.innerHTML='<div class="inner svelte-1aqpg2x"></div>',c(e,"class","icon icon-error-stub svelte-1aqpg2x")},m(t,n){v(t,e,n)},p:ge,d(t){t&&b(e)}}}function O3(i){let e;function t(l,r){return l[5]?N3:D3}let n=t(i,-1),o=n(i);return{c(){o.c(),e=$e()},m(l,r){o.m(l,r),v(l,e,r)},p(l,r){n===(n=t(l,r))&&o?o.p(l,r):(o.d(1),o=n(l),o&&(o.c(),o.m(e.parentNode,e)))},d(l){l&&b(e),o.d(l)}}}function F3(i){let e,t;return e=new pt({props:{className:i[4]?"btn-full-opacity":"",ariaLabel:i[1],click:i[3],disabled:i[6],testId:i[2],$$slots:{default:[O3]},$$scope:{ctx:i}}}),{c(){A(e.$$.fragment)},m(n,o){E(e,n,o),t=!0},p(n,[o]){let l={};o&16&&(l.className=n[4]?"btn-full-opacity":""),o&2&&(l.ariaLabel=n[1]),o&8&&(l.click=n[3]),o&64&&(l.disabled=n[6]),o&4&&(l.testId=n[2]),o&545&&(l.$$scope={dirty:o,ctx:n}),e.$set(l)},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){m(e.$$.fragment,n),t=!1},d(n){M(e,n)}}}function q3(i,e,t){let n,o,l,{iconUrl:r}=e,{ariaLabel:a}=e,{disabled:s=!1}=e,{testId:u}=e,{onClick:f=sc.noop}=e,p=()=>{t(5,l=!0)};return i.$$set=g=>{"iconUrl"in g&&t(0,r=g.iconUrl),"ariaLabel"in g&&t(1,a=g.ariaLabel),"disabled"in g&&t(8,s=g.disabled),"testId"in g&&t(2,u=g.testId),"onClick"in g&&t(3,f=g.onClick)},i.$$.update=()=>{i.$$.dirty&8&&t(4,n=f===sc.noop),i.$$.dirty&272&&t(6,o=n||s)},t(5,l=!1),[r,a,u,f,n,l,o,p,s]}var ac=class extends B{constructor(e){super(),D(this,e,q3,F3,R,{iconUrl:0,ariaLabel:1,disabled:8,testId:2,onClick:3},B3)}},fs=ac;var dp=require("@vkontakte/videoplayer-shared");var Oi=require("@vkontakte/videoplayer-core"),ft=require("@vkontakte/videoplayer-shared"),ao=require("@vkontakte/videoplayer-statistics"),IL=require("@vkontakte/videoplayer-interactive");var St=require("@vkontakte/videoplayer-shared");var Wm=(i,e)=>i<400||e<225?5:i<640||e<360?0:i<960||e<540?1:i<1280||e<720?2:3;var H3="//ad.mail.ru/static/admanhtml/rbadman-html5.min.js",ds=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 St.Subject,started$:new St.Subject,paused$:new St.Subject,resumed$:new St.Subject,ended$:new St.Subject,skipped$:new St.Subject,clicked$:new St.Subject};this.loadAdman=e=>new Promise((t,n)=>{let o,l=()=>{clearTimeout(o),delete window.admanAsyncInit,window.AdmanHTML?t():n()};(0,St.addScript)(H3,e,this.loadTimeout).then(()=>{window.AdmanHTML?t():(window.admanAsyncInit=l,o=window.setTimeout(l,this.initTimeout))}).catch(()=>{n()})});this.onAdsReady=()=>{this.log({message:"ads ready"}),this.startPreroll()};this.onAdStarted=(e,t)=>{(0,St.assertNonNullable)(this.adsState),(0,St.assertNonNullable)(this.playerState),(0,St.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"}),Je(this.playerState.isMobile)&&this.playerState.mobileUnmuteButtonVisible.set(!0)),this.adsState.duration.set(t.duration),this.adsState.playbackState.set("playing"),this.adsState.canSkip.set(t.allowClose),this.adsState.secondsToWatchBeforeSkip.set(t.allowCloseDelay),this.startWatchDog()};this.onAdTimeRemained=({currentTime:e})=>{(0,St.assertNonNullable)(this.adsState),this.adsState.position.set(e),this.startWatchDog()};this.onAdPaused=()=>{this.stopWatchDog(),(0,St.assertNonNullable)(this.adsState),this.log({message:"ad paused"}),this.adsState.playbackState.set("paused")};this.onAdPlayed=()=>{(0,St.assertNonNullable)(this.adsState),this.log({message:"ad played"}),this.adsState.playbackState.set("playing"),this.startWatchDog()};this.onAdMidrollPoint=()=>{(0,St.assertNonNullable)(this.adman),(0,St.assertNonNullable)(this.actions),this.log({message:"midroll point"}),this.actions.switchFromVideoToAds(),this.currentAdSection="midroll",this.startWatchDog();try{this.adman.start("midroll")}catch{this.log({message:"could not start midroll"}),this.onAdError()}};this.onAdSkipped=()=>{this.log({message:"ad skipped"}),this.stopWatchDog()};this.onAdClosed=()=>{this.log({message:"ad closed"}),this.stopWatchDog(),this.switchToVideo()};this.onAdCompleted=()=>{this.log({message:"ad completed"}),this.events.ended$.next(),this.switchToVideo(),this.stopWatchDog()};this.onAdClicked=()=>{this.log({message:"ad clicked"}),this.videoElement?.pause(),this.events.clicked$.next(),this.stopWatchDog()};this.onAdError=()=>{this.log({message:"ad error"}),this.switchToVideo(!0),this.stopWatchDog()};this.log=e.createComponentLog("AdmanWrapper"),this.loadTimeout=t.loadTimeout,this.initTimeout=t.initTimeout,this.runtimeTimeout=t.runtimeTimeout}init(e,t,n){this.actions=e,this.adsState=t,this.playerState=n}onAdmanLoadingError(){this.log({message:"adman loading error"}),this.switchToVideo(!0)}initAdman(e){if(this.adman)return;this.startWatchDog();let{width:t,height:n,isFullscreen:o,isAutoplay:l,adsContainer:r,adsVideoElement:a,slotId:s,params:u={},duration:f,previewParam:p}=e,g,y=this.playerState&&Je(this.playerState.vsid);y&&(g=parseInt(y,36));let h={dl:encodeURIComponent(window.location.href),autoplay:l,player_width:t,player_height:n,puid10:Wm(t,n),puid11:o?0:1,preview:p,...g?{request_id:g}:{},duration:f,...u};p||delete h.preview;let C={slot:s,wrapper:r,videoEl:a,videoQuality:n,params:h,browser:{mobile:!1}};try{let 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(C),this.adman=w,this.videoElement=a,this.events.slotRequested$.next(),this.log({message:`adman init, config: ${JSON.stringify(C)}`})}catch{this.log({message:"could not init adman"}),this.onAdError()}}switchToVideo(e=!1){if(this.currentAdSection===null&&!e){this.log({message:"switch to video, no currentAdSection. can't switch"});return}(0,St.assertNonNullable)(this.actions),(0,St.assertNonNullable)(this.adsState),(0,St.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,St.assertNonNullable)(this.adsState),this.log({message:"toggle play"});let e=Je(this.adsState.playbackState);e==="playing"?this.pause():e==="paused"&&this.play()}setInitialVolume(e){this.log({message:`set initial volume ${e}`}),this.initialVolume=e}setVolume(e){if(this.log({message:`set volume ${e}`}),this.adman)try{this.adman.setVolume(e)}catch{this.log({message:"could not set ad volume"}),this.onAdError()}this.videoElement&&(this.videoElement.volume=e)}setFullscreen(e){if(this.log({message:`set fullscreen ${e}`}),this.adman)try{this.adman.setFullscreen(e)}catch{this.log({message:"could not set ad fullscreen"}),this.onAdError()}}startPreroll(){if((0,St.assertNonNullable)(this.adman),!this.isDestroyed){this.log({message:"start preroll"}),this.setVolume(this.initialVolume),this.currentAdSection="preroll",this.startWatchDog();try{this.adman.start("preroll")}catch{this.log({message:"could not start preroll"}),this.onAdError()}}}startPostroll(){(0,St.assertNonNullable)(this.adman),(0,St.assertNonNullable)(this.actions),this.log({message:"start postroll"}),this.actions.switchFromVideoToAds(),this.currentAdSection="postroll",this.startWatchDog();try{this.adman.start("postroll")}catch{this.log({message:"could not start postroll"}),this.onAdError()}}startWatchDog(){this.watchDogTimeout&&clearTimeout(this.watchDogTimeout),this.watchDogTimeout=window.setTimeout(()=>this.onAdError(),this.runtimeTimeout)}stopWatchDog(){clearTimeout(this.watchDogTimeout)}play(){(0,St.assertNonNullable)(this.adman),this.log({message:"ad play"}),this.startWatchDog();try{this.adman.resume(),this.events.resumed$.next()}catch{this.onAdError(),this.log({message:"could not resume ad"})}}pause(){(0,St.assertNonNullable)(this.adman),this.stopWatchDog(),this.log({message:"ad pause"});try{this.adman.pause(),this.events.paused$.next()}catch{this.onAdError(),this.log({message:"could not pause ad"})}}skip(){(0,St.assertNonNullable)(this.adman),this.stopWatchDog(),this.log({message:"ad skip"});try{this.adman.skip(),this.events.skipped$.next()}catch{this.log({message:"could not skip ad"}),this.onAdError()}}setPosition(e,t){this.adman?.setPosition(Math.floor(e),Math.floor(t))}destroy(){this.log({message:"destroy"}),this.stopWatchDog(),this.adman?.destroy(),this.videoElement&&(0,St.clearVideoElement)(this.videoElement),this.isDestroyed=!0}};var Km=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 uc=class{constructor(){this.oneLineRegExp=/\r\n|\n|\r/;this.twoLinesRegExp=/\r\n\r\n|\n\n|\r\r/}parse(e){let t=[],n=e.split(this.twoLinesRegExp);for(let o of n){let l={startTime:0,endTime:0,texts:[],lang:""},r=o.split(this.oneLineRegExp);for(let a of r)if(!l.startTime&&!l.endTime){let s=new ms,{startTime:u,endTime:f}=s.parse(a);l.startTime=u,l.endTime=f}else if(a.trim()!==""){let s=new cc,{texts:u}=s.parse(a);l.texts=[...l.texts,...u]}(l.startTime||l.endTime)&&l.texts.length>0&&t.push(l)}return t}},ms=class{constructor(){this.timeRegExp=/(\d{2})?:?(\d{2}):(\d{2}).(\d{2,3})/;this.timingRegExp=new RegExp(`${this.timeRegExp.source}( ?--> ?)${this.timeRegExp.source}`)}parse(e){let t={startTime:0,endTime:0},n=this.timingRegExp.exec(e);return n&&(t.startTime=this.calcTime(n[1],n[2],n[3],n[4]),t.endTime=this.calcTime(n[6],n[7],n[8],n[9])),t}parseTime(e){let t=this.timeRegExp.exec(e);return t?this.calcTime(t[1],t[2],t[3],t[4]):0}isTime(e){return this.timeRegExp.test(e)}calcTime(e="0",t="0",n="0",o="0"){let l=Number(e)*60*60,r=Number(t)*60,a=Number(n),s=+`0.${o}`;return l+r+a+s}},cc=class{constructor(){this.letterTagRegExp=/<[a-z]*>|<\/[a-z]*>/}parse(e){let t={texts:[]},o=e.replace(new RegExp(this.letterTagRegExp,"g"),"").split({[Symbol.split](r){let a=0,s=[];for(;a<r.length;){let u=["<",">"].reduce((f,p)=>{let g=r.indexOf(p,a);return f===-1||f>g?g:f},-1);if(u===-1){s.push(r.substring(a));break}s.push(r.substring(a,u)),a=u+1}return s}}),l=new ms;for(let r of o)l.isTime(r)?t.texts.push({type:"timestamp",value:l.parseTime(r)}):t.texts.push({type:"text",value:r});return t}},Gm=uc;var ps=require("@vkontakte/videoplayer-shared"),Co,Ln,fc=0,dc=!1,jm=(i,e,t)=>{let n=i>=fc,o=i<fc,l=(u,f=0,p=0)=>u<f&&u<p,r=(u,f=0,p=0)=>u>=f&&u<=p,a=(u,f=0,p=0)=>u>f&&u>p,s=t.find(({lang:u})=>u===e.value)?.subtitles;if(fc=i,o&&(dc=!1),(0,ps.isNonNullable)(Co)&&r(i,Co.startTime,Co.endTime)&&Co.lang===e.value)return Co;if(!(0,ps.isNonNullable)(Ln)&&s?.length&&!dc){let u=s.find(({startTime:f,endTime:p})=>r(i,f,p)||n&&l(i,f,p));Ln=u&&{...u,lang:e.value},Co=void 0,!(0,ps.isNonNullable)(Ln)&&s[s.length-1].endTime<i&&(dc=!0);return}else{if(r(i,Ln?.startTime,Ln?.endTime))return Co=Ln,Ln=void 0,Co;(n&&a(i,Ln?.startTime,Ln?.endTime)||o&&l(i,Ln?.startTime,Ln?.endTime))&&(Ln=void 0)}};var xm=require("@vkontakte/videoplayer-shared"),CL=require("@vkontakte/videoplayer-statistics"),_s=class{constructor(e,t=new xm.Subscription){this.oneStat=e;this.statSubscription=t}destroy(){this.oneStat.destroy(),this.statSubscription.unsubscribe()}};var Ym=({interfaceLanguage:i,isCyrillicRelatedInterface:e,videoId:t,isClip:n,isLiveCatchUpMode:o,statAuthToken:l,isAudioDisabled:r,canDownload:a,callbacks:s,webApi:u,videoEpisodes:f,previewThumbsData:p,uiConfig:g,coreConfig:y,player:h,disabledControls:C,isInteractive:w,interactiveRanges$:F,isInteractiveTime$:T,replayInteractive:k,hasInteractiveBranches:P,playPrevChapterDisabledTooltip:x,additionalButtons:W,additionalSettingsMenuItems:z,additionalContextMenuItems:se,looped:de=!1,statistics:L,saveRate:oe})=>{let re={...y,configName:[...y.configName??[],"ui"],isAudioDisabled:r,live:{...y.live??{},isLiveCatchUpMode:!!o}},X=g,Te=ft.Tracer.createRootTracer(X.features.saveTraceInfoToFile),q=Te.createComponentTracer("Store"),O=h||new Oi.Player(re,Te),K=new ft.Logger,le=new ds(K,{loadTimeout:X.ads.loadTimeout,initTimeout:X.ads.initTimeout,runtimeTimeout:X.ads.runtimeTimeout}),ee=qo.getInstance(),ue=u?.pictureInPictureApi,ze=u?.annotationsApi,Re=K.createComponentLog("Store"),ke,Ve,Qe={},tt=L?ht(L.oneStat.vsid$):En(void 0),j=He(bo()),ae=ue?.info.isActive$??new ft.ValueSubject(!1),Ze=ue?.info.type,_e=He(0),Ue=He([]),st=(0,ft.merge)(O.events.fatalError$,O.events.managedError$).subscribe(S=>Ue.update(Z=>[...Z,S])),je=En(!1,S=>{let Z=O.events.fatalError$.subscribe(()=>S(!0));return()=>Z.unsubscribe()}),qe=async S=>{let Z=Object.values(ft.InterfaceLanguage).includes(S);if(X.downloadVKLanguages&&(Z&&X.updateBuiltinLanguages||!$s(S))){let Ke;try{Ke=await(0,ft.loadVKLangPack)(S,If,Tf)}catch(ct){L?.oneStat?.logError({errorType:"VKLangPack",fatal:!1}),ee?.report(ct,{errorType:"VKLangPack",fatal:!1})}Ke&&(Js({language:S,pack:Ke,fallback:X.defaultLanguage}),Xe.set(S))}$s(S)&&Xe.set(S)},Xe=He(i),Ye=He(e);qe(i);let Q=(S,Z)=>{let Se=Je(Xe);return ea(Se,S,Z,X.defaultLanguage)},Be=He("thumb"),Ie=(()=>{let S=ei([je,Be],([Z,Se])=>Z?"crashed":Se);return{...S,is:Z=>Je(S)===Z}})(),$=(()=>{let S=He(new Set(C));return{...S,add:Z=>{S.update(Se=>new Set([...Se].concat(Z)))},remove:Z=>{S.update(Se=>{let Ke=[...Se];return new Set(Array.isArray(Z)?Ke.filter(ct=>!Z.includes(ct)):Ke.filter(ct=>ct!==Z))})},includes:Z=>{let Se=Je(S);return Array.isArray(Z)?Z.every(Ke=>Se.has(Ke)):Se.has(Z)}}})();q.log("create store"),Re({message:"create store"});let be=S=>{let Z=S.container;Z.append(O.experimental.element$.getValue()),At=new MutationObserver(Se=>{let{removedNodes:Ke}=Se[0];Ke.length&&Z.append(O.experimental.element$.getValue())}),At.observe(Z,{childList:!0})},ot=S=>{Re({message:`init video, config: ${JSON.stringify(S)}`}),w?be(S):O.initVideo(S),q.log("init video",{isInteractive:w}),S.subtitles&&O.setExternalTextTracks(S.subtitles),ke=S},me=new ft.Subject,_t=S=>me.next(S),We=new ft.Subject,ut=new ft.Subject,Tt=new ft.Subject,At=null,Lt={actionRewind$:We,actionSeek$:ut,inPiP$:ae,inFullscreen$:new ft.Observable(S=>j.subscribe(Z=>S.next(Z))),actionSetSubtitle$:Tt,nextMovie$:me};if(L){let{oneStat:S,statSubscription:Z}=L;w||Z.add(S.attachTo(O)),Z.add(S.attachToUi(Lt)),Z.add(S.attachToAds(le.events)),S.authorize(l).catch(Se=>{Re({message:`onestat auth error ${String(Se)}`})})}if(ee){let S=new ft.Subscription,Z=(Se,Ke)=>S.add(Se.subscribe(Ke));if(Z(O.events.managedError$,Se=>{ee.logIError(Se)}),Z(O.events.fatalError$,Se=>{ee.logIError(Se,!0)}),L){let{oneStat:Se}=L;Z(Se.experimental.error$,Ke=>{ee.logIError(Ke)})}ee.sentrySubscription.add(S)}let et=()=>{ft.clientChecker.isIOS&&Ve&&ld(Ve)},Pt=new ft.Subscription().add(O.experimental.element$.subscribe(S=>{S&&(Ve=S,S.classList.add("player-media"),zo(ue)&&(ue.updateVideoElement(),ue.registryEventHandlers()),w&&S.setAttribute("pip","false"))})).add(O.events.ended$.subscribe(()=>{et(),s?.onEnded?.()})).add(O.events.started$.subscribe(async()=>{zo(ue)&&await ue?.revealPictureInPicture();let S=O.info.muted$.getValue();s?.onStarted?.(),Qe.onStarted?.(S)})).add(O.events.willSeek$.subscribe(({from:S,to:Z})=>{s?.onSeek?.(S,Z)})).add(O.info.position$.subscribe(S=>{let Z=O.info.duration$.getValue();isFinite(Z)&&Z>0&&(s?.onTimeupdate?.(Z,S),le.setPosition(S,Z))})).add(O.events.fatalError$.subscribe(()=>{s?.onCrashed?.()})).add(O.events.loadedMetadata$.subscribe(()=>{wt.state.loadedMetadata$.set(!0)})).add(O.info.is3DVideo$.subscribe(S=>{wt.ui.is3DVideo.set(S)})).add(O.info.isEnded$.subscribe(S=>{w&&(S?(T?.getValue()&&$.add(_l),$.add("PLAY_BUTTON")):$.remove("PLAY_BUTTON"))})).add(O.info.liveTime$.subscribe(S=>{s?.onLiveTime?.(S)})).add(O.info.isStalled$.subscribe(S=>{s?.onStalledChanged?.(S)})).add(le.events.started$.subscribe(()=>{s?.adsInfo?.onStarted?.()})).add(le.events.ended$.subscribe(()=>{s?.adsInfo?.onCompleted?.()})),Dt=new ft.Subscription,ci=()=>{Dt.add(O.events.log$.subscribe(S=>{console.debug("%c sdk ","background:#9ddcf7;",`sdk component: ${S.component}`,S.message)})).add(K.log$.subscribe(S=>{console.debug("%c ui ","background:#f3da0b;",`ui component: ${S.component}.`,S.message)}))},lt=()=>{Dt.unsubscribe()},yt=(S,Z)=>{q.log("start camera manual rotation",{mx:S,my:Z}),O.startCameraManualRotation(S,Z)},we=(S=!1)=>{q.log("stop camera manual rotation",{immediate:S}),O.stopCameraManualRotation(S)},bt=(S,Z,Se)=>{q.log("move camera focus px",{xpx:S,ypx:Z,dt:Se}),O.moveCameraFocusPX(S,Z,Se)},Et=()=>{O.holdCamera()},jt=()=>{O.releaseCamera()},vt=En(O.info.position$.getValue(),S=>{let Z,Se,Ke=()=>{let ct=O.info.playbackState$.getValue(),ai=O.info.isLive$.getValue(),Ti=O.info.duration$.getValue(),ui=O.info.position$.getValue();if([Oi.PlaybackState.PLAYING,Oi.PlaybackState.PAUSED].includes(ct)){let Zn=ai?ui-Ti:O.getExactTime();Zn!==Se&&S(Zn),Se=Zn}Z=requestAnimationFrame(Ke)};return Ke(),()=>cancelAnimationFrame(Z)}),Nt=ht(ae),qt=ht(O.info.playbackState$),xt=ht(O.info.currentBuffer$),fi=ht(O.info.isEnded$),di=ht(O.info.isLive$),Ht=X.features.playbackRate?ht(O.info.canChangePlaybackSpeed$):En(!1),zt=ht(O.info.liveBufferTime$),oi=ht(O.info.volume$),Ot=ht(O.info.muted$),Ei=js(O.info.autoQualityLimits$.pipe((0,ft.map)(({max:S})=>S!==void 0)),O.info.autoQualityLimits$.getValue()?.max!==void 0),Ct=ht(O.info.autoQualityLimitingAvailable$),Mi=ht(O.info.availableQualities$),hi=ht(O.info.availableQualitiesFps$),ri=ht(O.info.chromecastState$),Ai=ht(O.info.chromecastDeviceName$),pe=ht(O.info.currentFormat$),dt=ht(O.info.throughputEstimation$),Li=ht(O.info.videoBitrate$),Vi=ht(O.info.intrinsicVideoSize$),qi=ht(O.info.duration$),$i=ht(O.info.isAudioAvailable$),Yt=null,bi=O.info.isBuffering$,dn=En(bi.getValue(),S=>{let Z=bi.subscribe(Se=>{Se&&Yt===null?Yt=window.setTimeout(()=>{S(bi.getValue()),Yt=null},X.loaderDelay):S(Se)});return()=>{Z.unsubscribe(),Yt&&clearTimeout(Yt)}}),Ut=()=>{Yt&&clearTimeout(Yt),Yt=null},vi=ei([qi,di],([S,Z])=>Z?-S:S),In=ei([qt],([S])=>S===Oi.PlaybackState.PLAYING),mi=ht(O.info.atLiveEdge$),en=ht(O.info.atLiveDurationEdge$),Hi=ht(O.info.position$),mn=ei([Hi,qi],([S,Z])=>isFinite(S)&&isFinite(Z)&&!!Z),pn=ei([ri],([S])=>S===Oi.ChromecastState.CONNECTED),ti=ht(O.info.availableVideoStreams$),zi=X.features.audioLanguages?ht(O.info.availableAudioStreams$):En([]),pi=ht(O.info.currentVideoStream$),li=ht(O.info.currentAudioStream$),Ui=S=>{S.language&&Zs(S.language),O.setVideoStream(S)},Vn=S=>{S.language&&Zs(S.language),O.setAudioStream(S)},Ri=S=>{let Z;if(S.length===1&&(Z=S.at(0)),Z??=S.find(Ke=>"isDefault"in Ke&&Ke.isDefault),Z)return Z;let Se=Jf();return Se&&(Z=S.find(({language:Ke})=>Se===Ke)),Z??=S.at(0),Z},tn=!1;Pt.add(O.info.availableAudioStreams$.subscribe(S=>{if(!tn&&S.length){let Z=Ri(S);Z&&(O.setAudioStream(Z),tn=!0)}}));let yi=!1;Pt.add(O.info.availableVideoStreams$.subscribe(S=>{if(!yi&&S.length){let Z=Ri(S);Z&&(O.setVideoStream(Z),yi=!0)}}));let _i=He(void 0),Wi=ht(O.info.isAutoQualityEnabled$,S=>S&&_i.set(void 0)),_n=ht(O.info.currentQuality$,()=>_i.set(void 0)),nn=ei([_i,_n],([S,Z])=>S??Z),ki=ei([Mi,hi,Wi,nn,pe],([S,Z,Se,Ke,ct])=>{let ai=[];ct!==Oi.VideoFormat.MPEG&&ai.push({value:"auto",displayValue:Q("auto_quality_option"),selected:Se});let Ti=S.filter(ui=>!(0,ft.isInvariantQuality)(ui));for(let ui of Ti){let Zn=Z[ui];ai.push({value:ui,displayValue:`${ui}${Zn?Km(Zn):""}`,selected:Se?!1:ui===Ke})}return ai}),wi=ht(O.info.currentPlaybackRate$),Ki=ei([wi,mi,en],([S,Z,Se])=>{let Ke=Se||w?1:X.controls.playbackRateMin,ct=Z?1:X.controls.playbackRateMax,ai=X.controls.playbackRateStep,Ti=[];for(let ui=Ke;ui<=ct;ui+=ai)Ti.push({value:ui,displayValue:ui===1?Q("playback_rate_1"):Q("playback_rate",{multiplier:ui.toString(10)}),selected:S===ui});return Ti}),Qt=X.features.subtitles?ht(O.info.availableTextTracks$):En([]),Zt=ei([Qt],([S],Z)=>{let Se=[],Ke=[];for(let ct of S)ct.url&&Se.push(fetch(ct.url));Promise.allSettled(Se).then(ct=>{for(let[ai,Ti]of ct.entries())Ti.status==="fulfilled"&&Ti.value.text().then(ui=>{let Zn=new Gm,ll=S[ai].language,Os=!!S[ai].isAuto,sl=Zn.parse(ui);ll&&sl&&Ke.push({lang:ll,subtitles:sl,isAuto:Os}),ai===ct.length-1&&Z(Ke)})})}),Kt={displayValue:Q("subtitles_off"),value:"off"},ii=He({...Kt}),Ci=ei([Zt,ii,Zt],([S,Z])=>{if(S?.length>0){let Se=[{...Kt,selected:Z?.value===Kt.value}];for(let{lang:Ke,isAuto:ct}of S)Go[Ke]&&Se.push({displayValue:ct?Q("subtitles_auto",{language:Go[Ke]}):Go[Ke],value:Ke,selected:Z?.value===Ke,isAuto:ct});return Se}else return[]}),on=ei([vt,ii,Zt],([S,Z,Se])=>{if(Z&&Z.value!==Kt.value)return jm(S,Z,Se)}),rt=ei([on],([S])=>S?.texts?S.texts:[]),Bi=He(!0),si=ei([xt,vi,Hi,zt],([S,Z,Se,Ke])=>{let ct=S?.end??0;if(!Ke)return ct/Z;let Ti=-Se+Ke-Z;return(ct-Ti)/Z}),Gi=ht(O.info.availableSources$),Si=ei([Gi],([S])=>Object.keys(S?.[Oi.VideoFormat.MPEG]||{}).length>0),xe=()=>{let S=Object.keys(O.info.availableSources$?.getValue()?.[Oi.VideoFormat.MPEG]||{}),Z=(0,ft.getHighestQuality)(S)||ft.VideoQuality.Q_144P;return ke.sources[Oi.VideoFormat.MPEG]?.[Z]},gn=()=>{let S=xe();if(S)q.log("download video",{url:S}),Ff(S,ke?.meta?.title||"video");else{let Z="There is no URL for download video";q.log("download video",{message:Z}),Re({message:Z})}},ji=()=>{Re({message:"toggle muted"});let S=O.info.muted$.getValue(),Z=O.info.volume$.getValue(),Se=Z===0||S,Ke=!Se;q.log("toggle muted",{muted:S,volume:Z,soundIsOff:Se,nextValue:Ke}),sn(Ke)},Di=()=>{q.log("close settings menu"),wt.ui.settingsMenuVisible.set(!1)},rn=S=>{q.log("open settings menu",{wasOpenedByKeyboard:S}),wt.ui.settingsMenuOpenedByKeyboard.set(!!S),wt.ui.settingsMenuVisible.set(!0)},ln=S=>{Je(wt.ui.settingsMenuVisible)?Di():rn(S)},Xt=(S,Z=S,Se=!1)=>{let Ke=!Se,ct=O.info.muted$.getValue();Re({message:`set volume, volume: ${S}, preferredVolume: ${Z}, internalCall: ${Ke}`}),q.log("set volume",{volume:S,preferredVolume:Z,internalCall:Ke}),O.setVolume(S),le.setVolume(S),Ke&&s?.onVolumeChange?.(S),Ys(Z),ct?(O.setMuted(!1),Ke&&s?.onUnmute?.(),bl(!1)):!ct&&S===0&&(O.setMuted(!0),Ke&&s?.onMute?.(),bl(!0))},sn=(S,Z=!1)=>{let Se=!Z,Ke=O.info.volume$.getValue();if(Re({message:`set muted, currentVolume: ${Ke}, mute: ${S}, internalCall: ${Se}`}),q.log("set muted",{mute:S,currentVolume:Ke,internalCall:Se}),O.setMuted(S),le.setVolume(S?0:Ke),bl(S),Se&&(S?s?.onMute?.():s?.onUnmute?.()),Ke===0){let ct=hl()??X.volumeDefault;ct===0&&(ct=X.volumeMinRestore,Ys(ct)),O.setVolume(ct),le.setVolume(ct),Se&&s?.onVolumeChange?.(ct)}},hn=He(!1),xi=S=>{q.log("set looped",{isLooped:S}),hn.set(S),O.setLooped(S)};xi(de);let gi=()=>{s?.uiInfo?.onReportProblem?.()},an=()=>{O.prepare()},bn=()=>{(0,ft.assertNonNullable)(wt);let S=Je(wt.ui.controls.disabledControls$),Z=Je(wt.playerPhase),Se={playerPhase:Z,isInteractive:w,isVideoEnded:!1,action:"none"};if(S.has("PLAY_BUTTON"))return;if(Re({message:"toggle play"}),Z==="ads"){Se.action="play",q.log("toggle adman play",Se),le.togglePlay();return}let Ke=()=>{Re({message:"toggle play, call player.play"}),Se.action="play",O.play(),s?.onPlay?.()},ct=()=>{Re({message:"toggle play, call player.pause"}),Se.action="pause",O.pause(),s?.onPause?.()};if(O.info.isEnded$.getValue()){if(Re({message:"toggle play, video ended, seek to 0"}),We.next(),ut.next(ao.SeekAction.REWIND),w){k?.();return}O.seekTime(0),Ke()}else O.info.playbackState$.getValue()!==Oi.PlaybackState.PLAYING?Ke():ct();q.log("toggle play",Se)},vn=S=>{Re({message:`set quality, quality: ${S}`}),q.log("set quality",{quality:S}),O.setAutoQuality(S==="auto"),S!=="auto"?(Gf(t,S),_i.set(S),O.setQuality(S)):Qs()},Rn=S=>{Re({message:`set trafficSavingEnabled, value: ${S}`}),q.log("set traffic saving enabled",{trafficSavingEnabled:S}),O.setAutoQualityLimits({max:S?X.trafficSavingLimit:void 0}),Zf(S)},Ii=S=>{q.log("set playback rate",{playbackRate:S}),O.setPlaybackRate(S),X.features.saveRate&&oe&&!O.info.isLive$.getValue()&&$f(S)},Yi=()=>{let S=Je(Ki),Z=S.findIndex(({selected:Ke})=>Ke);if(Z===S.length-1)return;let Se=S[Z+1];Ii(Se.value)},Ni=()=>{let S=Je(Ki),Z=S.findIndex(({selected:Ke})=>Ke);if(Z===0)return;let Se=S[Z-1];Ii(Se.value)},yn=S=>{q.log("set subtitles",{...S}),S&&S.value!==Kt.value&&Tt.next(S.isAuto?S.value+"_auto":S.value),ii.set(S)},Kn=()=>{q.log("toggle subtitles");let S=Je(Ci),Z=Je(ii),Se=Je(Xe);if(Z?.value===Kt.value){let Ke=S.filter(ct=>ct.value!==Kt.value).find(ct=>ct.value===Se)||S[1];yn(Ke??{...Kt})}else yn({...Kt,selected:!1})},Qi=(S,Z,Se=!0)=>{if(Re({message:`seek to time, time: ${S}`}),q.log("seek to time",{time:S,action:Z,forcePrecise:Se}),ut.next(Z),O.info.isLive$.getValue()){let Ke=O.info.duration$.getValue(),ct=Math.min(0,Ke+S);O.seekTime(ct,Se)}else{if(T?.getValue())return;O.seekTime(go(S),Se)}},Jt=S=>{Re({message:`seek to episode start time: ${S}`}),q.log("seek to episode start time",{time:S}),Qi(S,ao.SeekAction.EPISODE,!0)},Bn=(S,Z)=>{Re({message:`seek to percent, percent: ${S}`}),q.log("seek to percent",{percent:S,action:Z});let Se=Math.round(Je(vi)*S);Qi(Se,Z,!1)},Gn=S=>{Re({message:`seek external, time: ${S}`}),q.log("seek external",{time:S}),ut.next(ao.SeekAction.UNKNOWN),O.seekTime(O.info.isLive$.getValue()?-S:S)},Dn=S=>{let Z=S.max??"none",Se=S.min??"none";Re({message:`set auto quality limitation. Max: ${Z}. Min: ${Se}`}),q.log("set auto quality limits",{max:Z,min:Se}),O.setAutoQualityLimits(S)},jn=S=>{Re({message:`seek external to episode start time: ${S}`}),q.log("seek external to episode start time",{time:S}),Qi(S,ao.SeekAction.EPISODE,!0)},Nn=S=>{Re({message:`set playback rate to: ${S}`}),q.log("set playback rate external",{playbackRate:S}),O.setPlaybackRate(S)},un=He(void 0),ie=He(!1),kt=S=>{Re({message:`start scrubbing, progress: ${S}`}),q.log("start scrubbing",{progress:S}),ie.set(!0),kn(S)},kn=S=>{un.set(S)},cn,xn,Yn=()=>{un.set(void 0),ie.set(!1)},Qn=()=>{clearTimeout(xn),clearTimeout(cn),cn=window.setTimeout(()=>{Yn()},500),Ve?.removeEventListener("seeked",Qn)},So=S=>{Re({message:`complete scrubbing, progress: ${S}`}),q.log("complete scrubbing",{progress:S}),Bn(S,ao.SeekAction.SLIDER),Je(wt.ui.isMobile)&&Je(wt.state.currentFormat$)===Oi.VideoFormat.HLS?(Ve?.addEventListener("seeked",Qn),xn=window.setTimeout(()=>{Qn()},300)):Yn()},Io=ei([vt,vi,un],([S,Z,Se],Ke)=>{Ke((0,ft.isNonNullable)(Se)?Se*Z:S)}),fn=He({width:0,height:0}),to=ei([fn],([{width:S}],Z)=>{let Se=mm(S);Z(Se)}),te=He(!1),To=ei([to,te],([S,Z])=>Z?W.filter(Se=>!Se.hideOnMobile):W.filter(Se=>!Se.hideOnDesktopGridTypes?.includes(S))),On=He(z),Fr=ei([On],([S])=>X.features.additionalSettingsMenuItems?S.map(Z=>Z.type==="SWITCH"?{...Z,onClick:Z.onChangeEnabled}:Z):[]),Qo=(S,Z)=>{let Se=Je(On).map(Ke=>Ke.id!==S?Ke:{...Ke,...Z});On.set(Se)},Po=S=>{let Z=Je(On);if(Z.some(Se=>Se.id===S.id)){Re({message:`Settings menu item with id: "${S.id}" was exist! Can't add more with the same id`});return}Z.push(S),On.set(Z)},Eo=S=>{let Z=Je(On);if(!Z.some(Se=>Se.id===S)){Re({message:`Can't find settings menu item with id: "${S}"! Can't remove item with this id`});return}Z=Z.filter(Se=>Se.id!==S),On.set(Z)},Zi=He(se),co=ei([Zi],([S])=>X.features.additionalContextMenuItems?S:[]),fo=(S,Z)=>{let Se=Je(Zi).map(Ke=>Ke.id!==S?Ke:{...Ke,...Z});Zi.set(Se)},Zo=S=>{let Z=Je(Zi);if(Z.some(Se=>Se.id===S.id)){Re({message:`Context menu item with id: "${S.id}" was exist! Can't add more with the same id`});return}Z.push(S),Zi.set(Z)},Xo=S=>{let Z=Je(Zi);if(!Z.some(Se=>Se.id===S)){Re({message:`Can't find context menu item with id: "${S}"! Can't remove item with this id`});return}Z=Z.filter(Se=>Se.id!==S),Zi.set(Z)},Mo=ei([te,je],([S,Z],Se)=>{Se(S&&Z)}),Jo=()=>{ut.next(ao.SeekAction.LIVE),Re({message:"switch to active live"}),q.log("switch to active live"),O.seekTime(0),O.info.playbackState$.getValue()!==Oi.PlaybackState.PLAYING&&wt.actions.internal.togglePlay()},$o=()=>{q.log("skip adman"),le.skip()},er=(S=!0)=>{(0,ft.assertNonNullable)(wt),Re({message:`switch from ads to video, callPlay: ${S}`}),q.log("switch from ads to video",{callPlay:S}),Be.set("video"),S&&O.play()},tr=()=>{(0,ft.assertNonNullable)(wt),Re({message:"switch from video to ads"}),q.log("switch from video to ads"),wt.actions.internal.pause(),et(),Be.set("ads")},ir=S=>{(0,ft.assertNonNullable)(wt);let Z=S?"LiveWaitingStart":"thumb";q.log("set live waiting start",{state:S,playerPhase:Z}),Be.set(Z)},Y=S=>{(0,ft.assertNonNullable)(wt);let Z=S?"LiveWaitingRecover":"thumb";q.log("set live waiting recover",{state:S,playerPhase:Z}),Be.set(Z)},Vt=S=>{(0,ft.assertNonNullable)(wt);let Z=S?"LiveWaitingRecord":"thumb";q.log("set live waiting record",{state:S,playerPhase:Z}),Be.set(Z)},Tn=()=>((0,ft.assertNonNullable)(wt),q.log("get debug text data"),Nf(O,ke,wt)),Pn=()=>((0,ft.assertNonNullable)(wt),JSON.stringify(Te.getFinishedSpans())),nr=()=>((0,ft.assertNonNullable)(wt),Of(O,ke,wt)),Ao=()=>Ve,mo=()=>{Re({message:"toggle chromecast"}),q.log("toggle chromecast"),O.toggleChromecast()},po=S=>{if((0,ft.assertNonNullable)(wt),O.info.isEnded$.getValue())return;let Z=!S;if(Je(wt.playerPhase)==="ads"){Re({message:`pause ads, internalCall: ${Z}`}),q.log("pause ads",{internalCall:Z}),le.pause();return}Re({message:`pause video, internalCall: ${Z}`}),q.log("pause video",{internalCall:Z}),Z&&s?.onPause?.(),O.pause()},or=S=>{(0,ft.assertNonNullable)(wt);let Z=!S;if(Je(wt.playerPhase)==="ads"){Re({message:`play ads, internalCall: ${Z}`}),q.log("play ads",{internalCall:Z}),le.play();return}Re({message:`play video, internalCall: ${Z}`}),q.log("play video",{internalCall:Z}),Z&&s?.onPlay?.(),O.play()},_o=(S,Z)=>{(0,ft.assertNonNullable)(wt),Re({message:`first start, show ads: ${S}, internalCall: ${!Z}`}),q.log("first start",{showAds:S,external:Z}),S?Be.set("ads"):(Be.set("video"),Z?O.play():wt.actions.internal.togglePlay())},rr=()=>(Re({message:"getting time codes"}),f),lr=()=>{let S=rr();if(!S||[0,1].includes(S.length))return;let Z=O.info.position$.getValue();return S.find(Se=>Se.time>Z)},Ns=S=>{let Z=S;Z||(Z=lr());let Se=O.info.position$.getValue();q.log("seek to next episode",{currentTime:Se,...Z}),Z&&(Re({message:"seek to next episode"}),Qi(Z.time,ao.SeekAction.EPISODE,!0))},qr=()=>{let S=rr();if(!S||[0,1].includes(S.length))return;let Z=O.info.position$.getValue(),Se=S.findIndex(ct=>ct.time>Z),Ke=Se===-1?S.length-2:Se-2;if(!(Ke<0))return S[Ke]},il=S=>{let Z=S;Z||(Z=qr());let Se=O.info.position$.getValue();q.log("seek to prev episode",{currentTime:Se,...Z}),Z&&(Re({message:"seek to prev episode"}),Qi(Z.time,ao.SeekAction.EPISODE,!0))},nl=()=>(Re({message:"getting preview thumbs data"}),q.log("get preview thumbs data",{...p}),p),ol=async()=>{let S=ue?.isActive(),Z="none";ue?.isActive()?(Z="remove",await ue?.remove()):(Z="request",await ue?.request()),q.log("toggle picture in picture",{isActive:S,action:Z})},sr=(S=-90)=>{q.log("rotate video",{alphaDiff:S}),_e.update(Z=>Z+S)},it=He([]);F?.subscribe(S=>{let Z=[];for(let Se=0;Se<S.length;Se++){let{range:[Ke,ct],subjects:ai}=S[Se];Se===0&&Ke!==0&&Z.push({time:0,text:"",interactive:!1,completed:!0}),Z.push({time:Ke/1e3,text:"",interactive:!0,completed:!ai.length}),ct!==1/0&&Z.push({time:ct/1e3,text:"",interactive:!1,completed:!0})}it.set(Z)});let wn=He(!1);T?.subscribe(S=>{S&&Je(ie)&&Yn()});let go=S=>{if(!w)return S;let Z=Je(it),Se=Je(vi),ct=Je(Hi)/Se,ai=Z.find(Ti=>Ti.interactive&&!Ti.completed&&Ti.time>ct);return typeof ai?.time=="number"?Math.min(S,ai.time-.05):S},Hr=()=>{wt.ui.episodes.panelOpened$.set(!1)},rl=()=>{q.log("destroy store"),clearTimeout(xn),clearTimeout(cn),Pt.unsubscribe(),Dt.unsubscribe(),O.destroy(),le.destroy(),L?.destroy(),ee?.destroy(),st.unsubscribe(),At?.disconnect(),At=null},wt={interfaceLanguage$:Xe,isCyrillicRelatedInterface$:Ye,initVideo:ot,videoId:t,isClip:n,playerPhase:Ie,vsid:tt,state:{positionExact$:vt,positionWithScrubbing$:Io,duration$:vi,playbackState$:qt,isPlaying$:In,isLoaderVisible:dn,bufferedProgress$:si,isLive$:di,canChangePlaybackSpeed$:Ht,isActiveLive$:mi,isOldestAvailableLive$:en,isRewindableLive$:mn,isEnded$:fi,muted$:Ot,volume$:oi,trafficSavingEnabled$:Ei,autoQualityLimitingAvailable$:Ct,availableVideoStreams$:ti,availableAudioStreams$:zi,videoStream$:pi,audioStream$:li,currentQuality$:nn,isAutoQualityEnabled$:Wi,availableQualities$:ki,currentPlaybackRate$:wi,availablePlaybackRates$:Ki,currentSubtitle$:ii,availableSubtitlesList$:Ci,currentSubtitleCaptions$:rt,isAutoSubtitleCaptionVisible$:Bi,chromecastState$:ri,chromecastDeviceName$:Ai,chromecastConnected$:pn,currentFormat$:pe,throughputEstimation$:dt,videoBitrate$:Li,videoSize$:Vi,errorLog$:Ue,crashed$:je,isAudioAvailable$:$i,isAudioDisabled:!!r,canDownload:X.features.download&&!!a,availableSources$:Gi,hasMpegSources$:Si,isInteractive:w,showInteractiveGraph:X.features.interactiveGraph,showSeekToInteractive:X.features.seekToInteractive,showPlayPrevChapter:X.features.interactivePlayPrevChapter,showInteractiveTimeIndicator:X.features.interactiveTimeIndicator&&!!Je(it).length,interactiveEpisodes$:it,isInteractiveTime$:T?ht(T):He(!1),graphIsOpened$:He(!1),isInteractiveExpectation$:wn,hasInteractiveBranches:P,playPrevChapterDisabledTooltip:x,looped$:hn,loadedMetadata$:He(!1)},ui:{controlsVisible:He(!1),touched:He(!1),controls:{prevButton:He(void 0),playButton:He(void 0),replayButton:He(void 0),nextButton:He(void 0),playPrevChapterButton:He(void 0),seekToInteractiveButton:He(void 0),interactiveGraphButton:He(void 0),liveButton:He(void 0),time:He(void 0),episodes:He(void 0),volume:He(void 0),subtitles:He(void 0),settings:He(void 0),context:He(void 0),chromecast:He(void 0),pip:He(void 0),fullscreen:He(void 0),vkLogo:He(void 0),interactiveTimeIndicator:He(void 0),timeline:He(void 0),additionalButtons:W.length?W.reduce(S=>[...S,He(void 0)],[]):[],disabledControls$:$},modals:{hotKeyMap:{show:He(!1),data:He({title:"",closeBtnText:"",groups:[]})}},isFullscreen:j,rotateAlpha:_e,isAutoplay:He(!1),debugPanelVisible:He(!1),episodes:{panelOpened$:He(!1),openedByKeyboard$:He(!1)},contextMenu:{visible$:He(!1),btnRef$:He(void 0),openedByBtnKeyboard$:He(!1),openedByHotKey$:He(!1),lastActiveElem$:He(void 0),showContextMenuBtn$:He(!1),position$:He({top:0,left:0})},playerSize:fn,isMobile:te,mobileNotReportControlHidden$:Mo,mobileUnmuteButtonExpanded:He(!1),mobileUnmuteButtonVisible:He(!1),icon3DVideoVisible:He(!1),settingsMenuVisible:He(!1),settingsMenuOpenedByKeyboard:He(!1),scrubbingInProgress:ie,is3DVideo:He(!1),isPictureInPictureActive$:Nt,pictureInPictureType$:En(Ze),currentGridType$:to,additionalButtons$:To,additionalSettingsMenuItems$:Fr,additionalContextMenuItems$:co,interactiveHideMobileControls:He(!1),overlayContainer$:He(void 0),startedByKeyboard$:He(!1)},ads:{position:He(0),duration:He(0),playbackState:He("inactive"),canSkip:He(!1),secondsToWatchBeforeSkip:He(0),postrollPassed:He(!1)},webApi:{pictureInPictureApi:ue,annotationsApi:ze},actions:{internal:{preload:an,firstStart:S=>_o(S,!1),pause:()=>po(!1),togglePlay:bn,toggleMuted:ji,toggleSettingsMenu:ln,openSettingsMenu:rn,closeSettingsMenu:Di,setVolume:Xt,setVideoStream:Ui,setAudioStream:Vn,setQuality:vn,setTrafficSavingEnabled:S=>Rn(S),setPlaybackRate:Ii,incrementPlaybackRate:Yi,decrementPlaybackRate:Ni,setSubtitle:yn,toggleSubtitle:Kn,togglePictureInPicture:ol,startScrubbing:kt,progressScrubbing:kn,completeScrubbing:So,toggleChromecast:mo,switchToActiveLive:Jo,switchFromAdsToVideo:er,switchFromVideoToAds:tr,skipAd:$o,setLiveWaitingStart:ir,setLiveWaitingRecover:Y,setLiveWaitingRecord:Vt,getDebugTextData:Tn,getTraceTextData:Pn,getDebugPanelData:nr,getVideoElement:Ao,seekTime:(S,Z,Se)=>Qi(S,Z,Se),clearDelayedBufferingCheckTimeout:Ut,seekEpisodeStartTime:Jt,seekToPercent:Bn,getNextEpisode:lr,seekToNextEpisode:Ns,getPrevEpisode:qr,seekToPrevEpisode:il,startLogging:ci,stopLogging:lt,startCameraManualRotation:yt,stopCameraManualRotation:we,moveCameraFocusPX:bt,holdCamera:Et,releaseCamera:jt,getVideoEpisodes:rr,getPreviewThumbsData:nl,downloadVideo:gn,addLanguage:Js,setLanguage:qe,nextMovie:_t,videoRotate:sr,correctSeekTimeToInteractive:go,replayInteractive:k,setLooped:xi,reportProblem:gi},external:{firstStart:S=>_o(S,!0),play:()=>or(!0),pause:()=>po(!0),seekTime:S=>Gn(S),seekEpisodeStartTime:S=>jn(S),setPlaybackRate:S=>Nn(S),setAutoQualityLimits:S=>Dn(S),setMuted:S=>sn(S,!0),setVolume:S=>Xt(S,S,!0),returnFocusToEpisodes:Hr,updateAdditionalSettingsItem:Qo,addAdditionalSettingsItem:Po,removeAdditionalSettingsItem:Eo,updateAdditionalContextItem:fo,addAdditionalContextItem:Zo,removeAdditionalContextItem:Xo}},callbacks:s,setUiCallbacks:S=>{Qe={...S}},getAdmanWrapper:()=>le,getLogger:()=>K,destroy:rl};return wt};var hs=(i,e,t,n)=>{if(!i)return;let o=["tooltipPointerOffsetX","disabledControls$","additionalButtons"],l=["interactiveTimeIndicator"],r=i.getBoundingClientRect();for(let[a,s]of Object.entries(e))if(!["tooltipPointerOffsetX","disabledControls$","additionalButtons"].includes(a)){let u=t[a]?.getBoundingClientRect(),f=(n||l.includes(a))&&!!u&&!!(u.right-u.left);s.set({positionStartX:0,positionEndX:0,left:f?Math.round(u.left-r.left):0,right:f?Math.round(u.right-r.left):0,top:f?Math.round(u.top-r.top):0,bottom:f?Math.round(u.bottom-r.top):0,isDisplayed:f})}};var bs=async(i,e,t)=>{await qn(),e&&t&&(t.focus(),i.set(!1))};function U3(i){let e,t,n,o=i[2].default,l=Ee(o,i,i[1],null),r=[{xmlns:"http://www.w3.org/2000/svg"},{width:"24"},{height:"24"},{fill:"none"},{"aria-hidden":"true"},{"data-testid":"dots-icon"},{role:"img"},i[0]],a={};for(let s=0;s<r.length;s+=1)a=ne(a,r[s]);return{c(){e=V("svg"),l&&l.c(),t=V("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"),ye(e,a)},m(s,u){v(s,e,u),l&&l.m(e,null),_(e,t),n=!0},p(s,[u]){l&&l.p&&(!n||u&2)&&Ae(l,o,s,s[1],n?Me(o,s[1],u,null):Le(s[1]),null),ye(e,a=De(r,[{xmlns:"http://www.w3.org/2000/svg"},{width:"24"},{height:"24"},{fill:"none"},{"aria-hidden":"true"},{"data-testid":"dots-icon"},{role:"img"},u&1&&s[0]]))},i(s){n||(d(l,s),n=!0)},o(s){m(l,s),n=!1},d(s){s&&b(e),l&&l.d(s)}}}function W3(i,e,t){let{$$slots:n={},$$scope:o}=e;return i.$$set=l=>{t(0,e=ne(ne({},e),ve(l))),"$$scope"in l&&t(1,o=l.$$scope)},e=ve(e),[e,o,n]}var mc=class extends B{constructor(e){super(),D(this,e,W3,U3,R,{})}},Qm=mc;function K3(i){let e,t;return e=new Qm({}),{c(){A(e.$$.fragment)},m(n,o){E(e,n,o),t=!0},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){m(e.$$.fragment,n),t=!1},d(n){M(e,n)}}}function G3(i){let e,t,n;function o(r){i[8](r)}let l={className:i[3]?"opened":"",testId:"btn-context-menu",disabled:i[0],ariaLabel:i[1],click:i[5],focus:i[6],blur:i[7],ariaExpanded:i[3],$$slots:{default:[K3]},$$scope:{ctx:i}};return i[2]!==void 0&&(l.ref=i[2]),e=new pt({props:l}),he.push(()=>Fe(e,"ref",o)),{c(){A(e.$$.fragment)},m(r,a){E(e,r,a),n=!0},p(r,[a]){let s={};a&8&&(s.className=r[3]?"opened":""),a&1&&(s.disabled=r[0]),a&2&&(s.ariaLabel=r[1]),a&8&&(s.ariaExpanded=r[3]),a&16384&&(s.$$scope={dirty:a,ctx:r}),!t&&a&4&&(t=!0,s.ref=r[2],Oe(()=>t=!1)),e.$set(s)},i(r){n||(d(e.$$.fragment,r),n=!0)},o(r){m(e.$$.fragment,r),n=!1},d(r){M(e,r)}}}function j3(i,e,t){let n,{disabled:o=!1}=e,{ariaLabel:l=""}=e,r=nt(),a=r.ui.contextMenu.visible$;N(i,a,F=>t(3,n=F));let s=r.ui.contextMenu.openedByBtnKeyboard$,u=r.ui.contextMenu.showContextMenuBtn$,f=r.ui.contextMenu.position$,p=r.ui.contextMenu.btnRef$,g,y=F=>{let T=yr(F),k=Td(g);f.set(k),s.set(T),a.set(!n)},h=()=>{u.set(!0)},C=()=>{u.set(!1)};function w(F){g=F,t(2,g)}return i.$$set=F=>{"disabled"in F&&t(0,o=F.disabled),"ariaLabel"in F&&t(1,l=F.ariaLabel)},i.$$.update=()=>{i.$$.dirty&4&&g&&p.set(g)},[o,l,g,n,a,y,h,C,w]}var pc=class extends B{constructor(e){super(),D(this,e,j3,G3,R,{disabled:0,ariaLabel:1})}},Zm=pc;function x3(i){Ce(i,"svelte-17imlp9",".interactive-episode-icon-animated.svelte-17imlp9{position:absolute;top:16px;right:16px;width:32px;height:32px;transition:0.3s;opacity:1}.invisible.svelte-17imlp9{opacity:0;visibility:hidden}.fullscreen.svelte-17imlp9:not(.mobile){width:40px;top:19px;right:23px;height:40px}.mobile.svelte-17imlp9{width:28px;height:28px;top:12px;right:14px}.fullscreen.mobile.svelte-17imlp9{width:32px;height:32px}@media screen and (orientation: portrait){.interactive-episode-icon-animated.mobile.fullscreen.svelte-17imlp9{top:40px;right:16px}}@keyframes svelte-17imlp9-pulse{0%{transform:scale(1);border-width:1px;opacity:0}10%{opacity:1}50%{transform:scale(1.5);border-width:1px;opacity:0.5}100%{transform:scale(1.5);border-width:0.5px;opacity:0}}.pulse.svelte-17imlp9{display:block;content:'';border:1px solid #fff;position:absolute;top:0;left:0;right:0;bottom:0;border-radius:100%;transform:scale(1.8);animation:1s svelte-17imlp9-pulse infinite;transition:0.3s;pointer-events:none}.pulse.paused.svelte-17imlp9{animation-play-state:paused}.interactive-episode-icon-animated svg{width:100%;height:100%}.ref-block.svelte-17imlp9{position:absolute;top:0;width:100%;height:100%;visibility:hidden}.hidden.svelte-17imlp9{display:none}")}function Y3(i){let e,t;return e=new Ql({props:{completed:!0}}),{c(){A(e.$$.fragment)},m(n,o){E(e,n,o),t=!0},p:ge,i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){m(e.$$.fragment,n),t=!1},d(n){M(e,n)}}}function Q3(i){let e,t,n,o,l,r,a,s,u,f;function p(y){i[22](y)}let g={tooltipContent:U("tooltip_interactive_interaction_time_indicator"),tooltipActive:i[5],initialTranslateYPx:72,tooltipPlacement:"bottom",onTooltipVisibilityChange:i[13],$$slots:{default:[Y3]},$$scope:{ctx:i}};return i[0]!==void 0&&(g.ref=i[0]),t=new Mt({props:g}),he.push(()=>Fe(t,"ref",p)),t.$on("click",i[14]),{c(){e=I("div"),A(t.$$.fragment),o=H(),l=I("div"),r=H(),a=I("div"),c(l,"class","ref-block svelte-17imlp9"),G(l,"hidden",i[1]),c(a,"class","pulse svelte-17imlp9"),G(a,"paused",i[4]),c(e,"class","interactive-episode-icon-animated svelte-17imlp9"),G(e,"mobile",i[2]),G(e,"fullscreen",i[6]),G(e,"invisible",i[1])},m(y,h){v(y,e,h),E(t,e,null),_(e,o),_(e,l),i[23](l),_(e,r),_(e,a),i[24](a),s=!0,u||(f=[Pe(e,"mousemove",mt(i[21])),Pe(e,"mouseleave",i[15])],u=!0)},p(y,h){let C={};h[0]&32&&(C.tooltipActive=y[5]),h[1]&1&&(C.$$scope={dirty:h,ctx:y}),!n&&h[0]&1&&(n=!0,C.ref=y[0],Oe(()=>n=!1)),t.$set(C),(!s||h[0]&2)&&G(l,"hidden",y[1]),(!s||h[0]&16)&&G(a,"paused",y[4]),(!s||h[0]&4)&&G(e,"mobile",y[2]),(!s||h[0]&64)&&G(e,"fullscreen",y[6]),(!s||h[0]&2)&&G(e,"invisible",y[1])},i(y){s||(d(t.$$.fragment,y),s=!0)},o(y){m(t.$$.fragment,y),s=!1},d(y){y&&b(e),M(t),i[23](null),i[24](null),u=!1,at(f)}}}function Z3(i,e,t){let n,o,l,r,a,s,{ref:u=void 0}=e,f,p=nt(),g=Mn(),{interactiveControlsOpacity$:y}=g;N(i,y,le=>t(18,o=le));let h=p.ui.isMobile;N(i,h,le=>t(2,a=le));let C=p.ui.isFullscreen;N(i,C,le=>t(6,s=le));let w=p.state.isInteractiveTime$;N(i,w,le=>t(19,l=le));let F=g.showInteractiveTimeIndicatorTooltip$;N(i,F,le=>t(17,n=le));let T=p.ui.controlsVisible;N(i,T,le=>t(20,r=le));let k=p.callbacks?.onInteractiveTimeIndicatorClick,P,x,W,z=()=>{t(4,W=!0)},se=()=>{de(),f?.addEventListener("animationiteration",z,{once:!0})},de=()=>{t(4,W=!1),f?.removeEventListener("animationiteration",z)},L=le=>{F.set(le)},oe,re=()=>{x||(F.set(!0),k?.())};Fn(()=>{F.clearTimeout(),de()});let X=()=>{F.set(!1)};function Te(le){Cn.call(this,i,le)}function q(le){u=le,t(0,u)}function O(le){he[le?"unshift":"push"](()=>{u=le,t(0,u)})}function K(le){he[le?"unshift":"push"](()=>{f=le,t(3,f)})}return i.$$set=le=>{"ref"in le&&t(0,u=le.ref)},i.$$.update=()=>{i.$$.dirty[0]&1048580&&t(16,P=!a&&r),i.$$.dirty[0]&851968&&t(1,x=!l||!!o||P),i.$$.dirty[0]&2&&t(4,W=x),i.$$.dirty[0]&131074&&t(5,oe=n&&!x),i.$$.dirty[0]&131072&&(n?se():de())},[u,x,a,f,W,oe,s,y,h,C,w,F,T,L,re,X,P,n,o,l,r,Te,q,O,K]}var _c=class extends B{constructor(e){super(),D(this,e,Z3,Q3,R,{ref:0},x3,[-1,-1])}},vs=_c;function J3(i){Ce(i,"svelte-ips4nw",".wrapper-bottom.svelte-ips4nw.svelte-ips4nw{pointer-events:none;position:absolute;z-index:var(--controls-container-z-index);width:100%;bottom:0;left:0;height:var(--controls-gradient-height);background:var(--controls-gradient);transition:transform var(--controls-transition-duration) var(--controls-transition-fn);display:flex;flex-direction:column;justify-content:flex-end;box-sizing:border-box}.wrapper-bottom.svelte-ips4nw>.svelte-ips4nw{pointer-events:auto}.controls.svelte-ips4nw.svelte-ips4nw{width:100%;display:flex;align-items:center;justify-content:space-between;height:var(--controls-height);white-space:nowrap;font-size:13px;transition:transform var(--controls-transition-duration) var(--controls-transition-fn);will-change:transform;padding:0 8px 4px;box-sizing:border-box}.controls-left.svelte-ips4nw.svelte-ips4nw,.controls-right.svelte-ips4nw.svelte-ips4nw{display:flex;align-content:center}.controls-left.svelte-ips4nw.svelte-ips4nw{flex-grow:1;min-width:0;overflow:hidden}.controls-left.svelte-ips4nw > *:not(:first-child),.controls-right.svelte-ips4nw > *{margin-left:var(--controls-desktop-item-margin-left)}.controls-hidden.svelte-ips4nw.svelte-ips4nw{visibility:visible;transform:translateY(100%)}.wrapper-bottom.no-smooth.svelte-ips4nw.svelte-ips4nw{transition:none}.settings-menu.svelte-ips4nw.svelte-ips4nw{bottom:57px;right:18px;position:absolute;transition:opacity 0.2s, visibility 0.2s}")}function Xm(i,e,t){let n=i.slice();return n[210]=e[t].iconUrl,n[211]=e[t].ariaLabel,n[212]=e[t].testId,n[213]=e[t].onClick,n[214]=e[t].tooltip,n}function Jm(i){let e,t,n;function o(r){i[174](r)}let l={disabled:!i[9],tooltipContent:U("tooltip_previous"),$$slots:{default:[$3]},$$scope:{ctx:i}};return i[23].prevButton!==void 0&&(l.ref=i[23].prevButton),e=new Mt({props:l}),he.push(()=>Fe(e,"ref",o)),{c(){A(e.$$.fragment)},m(r,a){E(e,r,a),n=!0},p(r,a){let s={};a[0]&512&&(s.disabled=!r[9]),a[0]&4608|a[7]&1&&(s.$$scope={dirty:a,ctx:r}),!t&&a[0]&8388608&&(t=!0,s.ref=r[23].prevButton,Oe(()=>t=!1)),e.$set(s)},i(r){n||(d(e.$$.fragment,r),n=!0)},o(r){m(e.$$.fragment,r),n=!1},d(r){M(e,r)}}}function $3(i){let e,t;return e=new Mr({props:{click:i[12],type:"prev",disabled:!i[9],isMobile:!1}}),{c(){A(e.$$.fragment)},m(n,o){E(e,n,o),t=!0},p(n,o){let l={};o[0]&4096&&(l.click=n[12]),o[0]&512&&(l.disabled=!n[9]),e.$set(l)},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){m(e.$$.fragment,n),t=!1},d(n){M(e,n)}}}function $m(i){let e,t,n;function o(r){i[175](r)}let l={disabled:i[74],tooltipContent:U("tooltip_restart"),$$slots:{default:[e5]},$$scope:{ctx:i}};return i[23].replayButton!==void 0&&(l.ref=i[23].replayButton),e=new Mt({props:l}),he.push(()=>Fe(e,"ref",o)),{c(){A(e.$$.fragment)},m(r,a){E(e,r,a),n=!0},p(r,a){let s={};a[2]&4096&&(s.disabled=r[74]),a[2]&4096|a[7]&1&&(s.$$scope={dirty:a,ctx:r}),!t&&a[0]&8388608&&(t=!0,s.ref=r[23].replayButton,Oe(()=>t=!1)),e.$set(s)},i(r){n||(d(e.$$.fragment,r),n=!0)},o(r){m(e.$$.fragment,r),n=!1},d(r){M(e,r)}}}function e5(i){let e,t;return e=new Zr({props:{click:i[128],disabled:i[74]}}),{c(){A(e.$$.fragment)},m(n,o){E(e,n,o),t=!0},p(n,o){let l={};o[2]&4096&&(l.disabled=n[74]),e.$set(l)},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){m(e.$$.fragment,n),t=!1},d(n){M(e,n)}}}function ep(i){let e,t,n;function o(r){i[177](r)}let l={tooltipContent:i[47],disabled:i[75],$$slots:{default:[t5]},$$scope:{ctx:i}};return i[23].playButton!==void 0&&(l.ref=i[23].playButton),e=new Mt({props:l}),he.push(()=>Fe(e,"ref",o)),{c(){A(e.$$.fragment)},m(r,a){E(e,r,a),n=!0},p(r,a){let s={};a[1]&65536&&(s.tooltipContent=r[47]),a[2]&8192&&(s.disabled=r[75]),a[0]&67108864|a[1]&8|a[2]&8192|a[7]&1&&(s.$$scope={dirty:a,ctx:r}),!t&&a[0]&8388608&&(t=!0,s.ref=r[23].playButton,Oe(()=>t=!1)),e.$set(s)},i(r){n||(d(e.$$.fragment,r),n=!0)},o(r){m(e.$$.fragment,r),n=!1},d(r){M(e,r)}}}function t5(i){let e,t,n;function o(r){i[176](r)}let l={isMobile:!1,isPlaying:i[34],click:i[85],disabled:i[75]};return i[26]!==void 0&&(l.ref=i[26]),e=new Qr({props:l}),he.push(()=>Fe(e,"ref",o)),{c(){A(e.$$.fragment)},m(r,a){E(e,r,a),n=!0},p(r,a){let s={};a[1]&8&&(s.isPlaying=r[34]),a[2]&8192&&(s.disabled=r[75]),!t&&a[0]&67108864&&(t=!0,s.ref=r[26],Oe(()=>t=!1)),e.$set(s)},i(r){n||(d(e.$$.fragment,r),n=!0)},o(r){m(e.$$.fragment,r),n=!1},d(r){M(e,r)}}}function tp(i){let e,t,n;function o(r){i[178](r)}let l={disabled:!i[8],tooltipContent:U("tooltip_next"),$$slots:{default:[i5]},$$scope:{ctx:i}};return i[23].nextButton!==void 0&&(l.ref=i[23].nextButton),e=new Mt({props:l}),he.push(()=>Fe(e,"ref",o)),{c(){A(e.$$.fragment)},m(r,a){E(e,r,a),n=!0},p(r,a){let s={};a[0]&256&&(s.disabled=!r[8]),a[0]&2304|a[7]&1&&(s.$$scope={dirty:a,ctx:r}),!t&&a[0]&8388608&&(t=!0,s.ref=r[23].nextButton,Oe(()=>t=!1)),e.$set(s)},i(r){n||(d(e.$$.fragment,r),n=!0)},o(r){m(e.$$.fragment,r),n=!1},d(r){M(e,r)}}}function i5(i){let e,t;return e=new Mr({props:{click:i[11],type:"next",disabled:!i[8],isMobile:!1}}),{c(){A(e.$$.fragment)},m(n,o){E(e,n,o),t=!0},p(n,o){let l={};o[0]&2048&&(l.click=n[11]),o[0]&256&&(l.disabled=!n[8]),e.$set(l)},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){m(e.$$.fragment,n),t=!1},d(n){M(e,n)}}}function n5(i){let e,t,n,o,l=i[121]&&o5(i),r=i[120]&&l5(i),a=i[119]&&a5(i);return{c(){l&&l.c(),e=H(),r&&r.c(),t=H(),a&&a.c(),n=$e()},m(s,u){l&&l.m(s,u),v(s,e,u),r&&r.m(s,u),v(s,t,u),a&&a.m(s,u),v(s,n,u),o=!0},p(s,u){s[121]&&l.p(s,u),s[120]&&r.p(s,u),s[119]&&a.p(s,u)},i(s){o||(d(l),d(r),d(a),o=!0)},o(s){m(l),m(r),m(a),o=!1},d(s){s&&(b(e),b(t),b(n)),l&&l.d(s),r&&r.d(s),a&&a.d(s)}}}function o5(i){let e,t,n;function o(r){i[179](r)}let l={disabled:i[73],tooltipContent:U("tooltip_interactive_go_back"),disabledTooltipContent:U(i[124]),$$slots:{default:[r5]},$$scope:{ctx:i}};return i[23].playPrevChapterButton!==void 0&&(l.ref=i[23].playPrevChapterButton),e=new Mt({props:l}),he.push(()=>Fe(e,"ref",o)),{c(){A(e.$$.fragment)},m(r,a){E(e,r,a),n=!0},p(r,a){let s={};a[2]&2048&&(s.disabled=r[73]),a[0]&131072|a[2]&2048|a[7]&1&&(s.$$scope={dirty:a,ctx:r}),!t&&a[0]&8388608&&(t=!0,s.ref=r[23].playPrevChapterButton,Oe(()=>t=!1)),e.$set(s)},i(r){n||(d(e.$$.fragment,r),n=!0)},o(r){m(e.$$.fragment,r),n=!1},d(r){M(e,r)}}}function r5(i){let e,t;return e=new cs({props:{disabled:i[73],click:i[17]}}),{c(){A(e.$$.fragment)},m(n,o){E(e,n,o),t=!0},p(n,o){let l={};o[2]&2048&&(l.disabled=n[73]),o[0]&131072&&(l.click=n[17]),e.$set(l)},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){m(e.$$.fragment,n),t=!1},d(n){M(e,n)}}}function l5(i){let e,t,n;function o(r){i[180](r)}let l={disabled:i[76],tooltipContent:U("tooltip_interactive_seek"),disabledTooltipContent:U(i[78]),$$slots:{default:[s5]},$$scope:{ctx:i}};return i[23].seekToInteractiveButton!==void 0&&(l.ref=i[23].seekToInteractiveButton),e=new Mt({props:l}),he.push(()=>Fe(e,"ref",o)),{c(){A(e.$$.fragment)},m(r,a){E(e,r,a),n=!0},p(r,a){let s={};a[2]&16384&&(s.disabled=r[76]),a[2]&65536&&(s.disabledTooltipContent=U(r[78])),a[0]&32768|a[2]&16384|a[7]&1&&(s.$$scope={dirty:a,ctx:r}),!t&&a[0]&8388608&&(t=!0,s.ref=r[23].seekToInteractiveButton,Oe(()=>t=!1)),e.$set(s)},i(r){n||(d(e.$$.fragment,r),n=!0)},o(r){m(e.$$.fragment,r),n=!1},d(r){M(e,r)}}}function s5(i){let e,t;return e=new ss({props:{disabled:i[76],click:i[15]}}),{c(){A(e.$$.fragment)},m(n,o){E(e,n,o),t=!0},p(n,o){let l={};o[2]&16384&&(l.disabled=n[76]),o[0]&32768&&(l.click=n[15]),e.$set(l)},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){m(e.$$.fragment,n),t=!1},d(n){M(e,n)}}}function a5(i){let e,t,n;function o(r){i[181](r)}let l={tooltipContent:i[48],disabled:i[77],$$slots:{default:[u5]},$$scope:{ctx:i}};return i[23].interactiveGraphButton!==void 0&&(l.ref=i[23].interactiveGraphButton),e=new Mt({props:l}),he.push(()=>Fe(e,"ref",o)),{c(){A(e.$$.fragment)},m(r,a){E(e,r,a),n=!0},p(r,a){let s={};a[1]&131072&&(s.tooltipContent=r[48]),a[2]&32768&&(s.disabled=r[77]),a[0]&65536|a[1]&1|a[2]&32768|a[7]&1&&(s.$$scope={dirty:a,ctx:r}),!t&&a[0]&8388608&&(t=!0,s.ref=r[23].interactiveGraphButton,Oe(()=>t=!1)),e.$set(s)},i(r){n||(d(e.$$.fragment,r),n=!0)},o(r){m(e.$$.fragment,r),n=!1},d(r){M(e,r)}}}function u5(i){let e,t;return e=new as({props:{click:i[16],graphIsOpened:i[31],disabled:i[77]}}),{c(){A(e.$$.fragment)},m(n,o){E(e,n,o),t=!0},p(n,o){let l={};o[0]&65536&&(l.click=n[16]),o[1]&1&&(l.graphIsOpened=n[31]),o[2]&32768&&(l.disabled=n[77]),e.$set(l)},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){m(e.$$.fragment,n),t=!1},d(n){M(e,n)}}}function ip(i){let e,t,n;function o(r){i[182](r)}let l={tooltipContent:i[50],$$slots:{default:[c5]},$$scope:{ctx:i}};return i[23].liveButton!==void 0&&(l.ref=i[23].liveButton),e=new Mt({props:l}),he.push(()=>Fe(e,"ref",o)),{c(){A(e.$$.fragment)},m(r,a){E(e,r,a),n=!0},p(r,a){let s={};a[1]&524288&&(s.tooltipContent=r[50]),a[0]&2097152|a[1]&524288|a[7]&1&&(s.$$scope={dirty:a,ctx:r}),!t&&a[0]&8388608&&(t=!0,s.ref=r[23].liveButton,Oe(()=>t=!1)),e.$set(s)},i(r){n||(d(e.$$.fragment,r),n=!0)},o(r){m(e.$$.fragment,r),n=!1},d(r){M(e,r)}}}function c5(i){let e,t;return e=new is({props:{isActiveLive:i[21],isMobile:!1,ariaLabel:i[50]}}),{c(){A(e.$$.fragment)},m(n,o){E(e,n,o),t=!0},p(n,o){let l={};o[0]&2097152&&(l.isActiveLive=n[21]),o[1]&524288&&(l.ariaLabel=n[50]),e.$set(l)},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){m(e.$$.fragment,n),t=!1},d(n){M(e,n)}}}function np(i){let e,t,n;function o(r){i[183](r)}let l={isMobile:!1,showDuration:i[55],position:i[4]?i[79]:i[80],duration:i[4]?i[81]:i[82]};return i[23].time!==void 0&&(l.ref=i[23].time),e=new Yl({props:l}),he.push(()=>Fe(e,"ref",o)),{c(){A(e.$$.fragment)},m(r,a){E(e,r,a),n=!0},p(r,a){let s={};a[1]&16777216&&(s.showDuration=r[55]),a[0]&16|a[2]&393216&&(s.position=r[4]?r[79]:r[80]),a[0]&16|a[2]&1572864&&(s.duration=r[4]?r[81]:r[82]),!t&&a[0]&8388608&&(t=!0,s.ref=r[23].time,Oe(()=>t=!1)),e.$set(s)},i(r){n||(d(e.$$.fragment,r),n=!0)},o(r){m(e.$$.fragment,r),n=!1},d(r){M(e,r)}}}function op(i){let e,t;return e=new ls({props:{position:i[80],duration:i[82],timeCodes:i[101]}}),{c(){A(e.$$.fragment)},m(n,o){E(e,n,o),t=!0},p(n,o){let l={};o[2]&262144&&(l.position=n[80]),o[2]&1048576&&(l.duration=n[82]),e.$set(l)},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){m(e.$$.fragment,n),t=!1},d(n){M(e,n)}}}function f5(i){let e,t,n=i[20]&&op(i);return{c(){n&&n.c(),e=$e()},m(o,l){n&&n.m(o,l),v(o,e,l),t=!0},p(o,l){o[20]?n?(n.p(o,l),l[0]&1048576&&d(n,1)):(n=op(o),n.c(),d(n,1),n.m(e.parentNode,e)):n&&(ce(),m(n,1,1,()=>{n=null}),fe())},i(o){t||(d(n),t=!0)},o(o){m(n),t=!1},d(o){o&&b(e),n&&n.d(o)}}}function d5(i){let e,t;return e=new fs({props:{iconUrl:i[210],ariaLabel:i[211]??i[214],testId:i[212],onClick:i[213]}}),{c(){A(e.$$.fragment)},m(n,o){E(e,n,o),t=!0},p(n,o){let l={};o[0]&268435456&&(l.iconUrl=n[210]),o[0]&268435456&&(l.ariaLabel=n[211]??n[214]),o[0]&268435456&&(l.testId=n[212]),o[0]&268435456&&(l.onClick=n[213]),e.$set(l)},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){m(e.$$.fragment,n),t=!1},d(n){M(e,n)}}}function rp(i){let e,t;return e=new Mt({props:{tooltipContent:i[214],width:40,$$slots:{default:[d5]},$$scope:{ctx:i}}}),{c(){A(e.$$.fragment)},m(n,o){E(e,n,o),t=!0},p(n,o){let l={};o[0]&268435456&&(l.tooltipContent=n[214]),o[0]&268435456|o[7]&1&&(l.$$scope={dirty:o,ctx:n}),e.$set(l)},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){m(e.$$.fragment,n),t=!1},d(n){M(e,n)}}}function lp(i){let e,t,n;function o(r){i[186](r)}let l={disabled:!i[6],tooltipContent:i[51],disabledTooltipContent:"",$$slots:{default:[m5]},$$scope:{ctx:i}};return i[23].vkLogo!==void 0&&(l.ref=i[23].vkLogo),e=new Mt({props:l}),he.push(()=>Fe(e,"ref",o)),{c(){A(e.$$.fragment)},m(r,a){E(e,r,a),n=!0},p(r,a){let s={};a[0]&64&&(s.disabled=!r[6]),a[1]&1048576&&(s.tooltipContent=r[51]),a[0]&192|a[7]&1&&(s.$$scope={dirty:a,ctx:r}),!t&&a[0]&8388608&&(t=!0,s.ref=r[23].vkLogo,Oe(()=>t=!1)),e.$set(s)},i(r){n||(d(e.$$.fragment,r),n=!0)},o(r){m(e.$$.fragment,r),n=!1},d(r){M(e,r)}}}function m5(i){let e,t;return e=new $l({props:{click:i[86],targetUrl:i[7],logoClickable:i[6]}}),{c(){A(e.$$.fragment)},m(n,o){E(e,n,o),t=!0},p(n,o){let l={};o[0]&128&&(l.targetUrl=n[7]),o[0]&64&&(l.logoClickable=n[6]),e.$set(l)},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){m(e.$$.fragment,n),t=!1},d(n){M(e,n)}}}function p5(i){let e,t;return e=new _m({props:{click:i[127]}}),{c(){A(e.$$.fragment)},m(n,o){E(e,n,o),t=!0},p:ge,i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){m(e.$$.fragment,n),t=!1},d(n){M(e,n)}}}function sp(i){let e,t,n;function o(r){i[188](r)}let l={tooltipContent:i[52],$$slots:{default:[_5]},$$scope:{ctx:i}};return i[23].subtitles!==void 0&&(l.ref=i[23].subtitles),e=new Mt({props:l}),he.push(()=>Fe(e,"ref",o)),{c(){A(e.$$.fragment)},m(r,a){E(e,r,a),n=!0},p(r,a){let s={};a[1]&2097152&&(s.tooltipContent=r[52]),a[0]&262144|a[7]&1&&(s.$$scope={dirty:a,ctx:r}),!t&&a[0]&8388608&&(t=!0,s.ref=r[23].subtitles,Oe(()=>t=!1)),e.$set(s)},i(r){n||(d(e.$$.fragment,r),n=!0)},o(r){m(e.$$.fragment,r),n=!1},d(r){M(e,r)}}}function _5(i){let e,t;return e=new tm({props:{isSubtitlesEnabled:i[18],click:i[87]}}),{c(){A(e.$$.fragment)},m(n,o){E(e,n,o),t=!0},p(n,o){let l={};o[0]&262144&&(l.isSubtitlesEnabled=n[18]),e.$set(l)},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){m(e.$$.fragment,n),t=!1},d(n){M(e,n)}}}function ap(i){let e,t,n,o;function l(a){i[189](a)}let r={supportLink:i[10],playerControlsHeight:i[46]?.clientHeight,returnFocus:i[14]};return i[24]!==void 0&&(r.ref=i[24]),t=new xl({props:r}),he.push(()=>Fe(t,"ref",l)),{c(){e=I("div"),A(t.$$.fragment),c(e,"class","settings-menu svelte-ips4nw")},m(a,s){v(a,e,s),E(t,e,null),o=!0},p(a,s){let u={};s[0]&1024&&(u.supportLink=a[10]),s[1]&32768&&(u.playerControlsHeight=a[46]?.clientHeight),s[0]&16384&&(u.returnFocus=a[14]),!n&&s[0]&16777216&&(n=!0,u.ref=a[24],Oe(()=>n=!1)),t.$set(u)},i(a){o||(d(t.$$.fragment,a),o=!0)},o(a){m(t.$$.fragment,a),o=!1},d(a){a&&b(e),M(t)}}}function up(i){let e,t,n;function o(r){i[191](r)}let l={tooltipContent:i[27]?void 0:U("tooltip_settings_off"),$$slots:{default:[g5]},$$scope:{ctx:i}};return i[23].settings!==void 0&&(l.ref=i[23].settings),e=new Mt({props:l}),he.push(()=>Fe(e,"ref",o)),{c(){A(e.$$.fragment)},m(r,a){E(e,r,a),n=!0},p(r,a){let s={};a[0]&134217728&&(s.tooltipContent=r[27]?void 0:U("tooltip_settings_off")),a[0]&33554432|a[7]&1&&(s.$$scope={dirty:a,ctx:r}),!t&&a[0]&8388608&&(t=!0,s.ref=r[23].settings,Oe(()=>t=!1)),e.$set(s)},i(r){n||(d(e.$$.fragment,r),n=!0)},o(r){m(e.$$.fragment,r),n=!1},d(r){M(e,r)}}}function g5(i){let e,t,n;function o(r){i[190](r)}let l={};return i[25]!==void 0&&(l.ref=i[25]),e=new Yr({props:l}),he.push(()=>Fe(e,"ref",o)),{c(){A(e.$$.fragment)},m(r,a){E(e,r,a),n=!0},p(r,a){let s={};!t&&a[0]&33554432&&(t=!0,s.ref=r[25],Oe(()=>t=!1)),e.$set(s)},i(r){n||(d(e.$$.fragment,r),n=!0)},o(r){m(e.$$.fragment,r),n=!1},d(r){M(e,r)}}}function h5(i){let e,t,n;function o(r){i[192](r)}let l={className:i[41]?"":"out-of-view",tooltipContent:i[49],$$slots:{default:[b5]},$$scope:{ctx:i}};return i[23].context!==void 0&&(l.ref=i[23].context),e=new Mt({props:l}),he.push(()=>Fe(e,"ref",o)),{c(){A(e.$$.fragment)},m(r,a){E(e,r,a),n=!0},p(r,a){let s={};a[1]&1024&&(s.className=r[41]?"":"out-of-view"),a[1]&262144&&(s.tooltipContent=r[49]),a[1]&262144|a[7]&1&&(s.$$scope={dirty:a,ctx:r}),!t&&a[0]&8388608&&(t=!0,s.ref=r[23].context,Oe(()=>t=!1)),e.$set(s)},i(r){n||(d(e.$$.fragment,r),n=!0)},o(r){m(e.$$.fragment,r),n=!1},d(r){M(e,r)}}}function b5(i){let e,t;return e=new Zm({props:{ariaLabel:i[49]}}),{c(){A(e.$$.fragment)},m(n,o){E(e,n,o),t=!0},p(n,o){let l={};o[1]&262144&&(l.ariaLabel=n[49]),e.$set(l)},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){m(e.$$.fragment,n),t=!1},d(n){M(e,n)}}}function cp(i){let e,t,n;function o(r){i[193](r)}let l={tooltipContent:i[53],$$slots:{default:[v5]},$$scope:{ctx:i}};return i[23].fullscreen!==void 0&&(l.ref=i[23].fullscreen),e=new Mt({props:l}),he.push(()=>Fe(e,"ref",o)),{c(){A(e.$$.fragment)},m(r,a){E(e,r,a),n=!0},p(r,a){let s={};a[1]&4194304&&(s.tooltipContent=r[53]),a[0]&1073750016|a[7]&1&&(s.$$scope={dirty:a,ctx:r}),!t&&a[0]&8388608&&(t=!0,s.ref=r[23].fullscreen,Oe(()=>t=!1)),e.$set(s)},i(r){n||(d(e.$$.fragment,r),n=!0)},o(r){m(e.$$.fragment,r),n=!1},d(r){M(e,r)}}}function v5(i){let e,t;return e=new Xl({props:{click:i[13],isFullscreen:i[30]}}),{c(){A(e.$$.fragment)},m(n,o){E(e,n,o),t=!0},p(n,o){let l={};o[0]&8192&&(l.click=n[13]),o[0]&1073741824&&(l.isFullscreen=n[30]),e.$set(l)},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){m(e.$$.fragment,n),t=!1},d(n){M(e,n)}}}function fp(i){let e,t,n;function o(r){i[194](r)}let l={tooltipContent:i[54],$$slots:{default:[y5]},$$scope:{ctx:i}};return i[23].chromecast!==void 0&&(l.ref=i[23].chromecast),e=new Mt({props:l}),he.push(()=>Fe(e,"ref",o)),{c(){A(e.$$.fragment)},m(r,a){E(e,r,a),n=!0},p(r,a){let s={};a[1]&8388608&&(s.tooltipContent=r[54]),a[0]&536870912|a[7]&1&&(s.$$scope={dirty:a,ctx:r}),!t&&a[0]&8388608&&(t=!0,s.ref=r[23].chromecast,Oe(()=>t=!1)),e.$set(s)},i(r){n||(d(e.$$.fragment,r),n=!0)},o(r){m(e.$$.fragment,r),n=!1},d(r){M(e,r)}}}function y5(i){let e,t;return e=new es({props:{isMobile:!1,state:i[29],click:i[126]}}),{c(){A(e.$$.fragment)},m(n,o){E(e,n,o),t=!0},p(n,o){let l={};o[0]&536870912&&(l.state=n[29]),e.$set(l)},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){m(e.$$.fragment,n),t=!1},d(n){M(e,n)}}}function k5(i){let e,t,n;function o(r){i[197](r)}let l={};return i[23].interactiveTimeIndicator!==void 0&&(l.ref=i[23].interactiveTimeIndicator),e=new vs({props:l}),he.push(()=>Fe(e,"ref",o)),{c(){A(e.$$.fragment)},m(r,a){E(e,r,a),n=!0},p(r,a){let s={};!t&&a[0]&8388608&&(t=!0,s.ref=r[23].interactiveTimeIndicator,Oe(()=>t=!1)),e.$set(s)},i(r){n||(d(e.$$.fragment,r),n=!0)},o(r){m(e.$$.fragment,r),n=!1},d(r){M(e,r)}}}function w5(i){let e,t,n,o,l,r,a,s,u,f,p,g,y,h,C,w,F,T,k,P,x,W,z,se,de,L,oe,re,X,Te,q;function O($){i[173]($)}let K={isHidden:!i[45],isAds:i[4],canRewindLive:i[5],isRewindableLive:i[32]};i[23].timeline!==void 0&&(K.ref=i[23].timeline),t=new rs({props:K}),he.push(()=>Fe(t,"ref",O));let le=i[38]&&Jm(i),ee=i[35]&&$m(i),ue=i[36]&&ep(i),ze=i[37]&&tp(i),Re=i[117]&&n5(i),ke=!i[4]&&i[33]&&ip(i),Ve=i[19]&&np(i);function Qe($){i[184]($)}let tt={className:"w-max",disabled:!i[20],tooltipContent:U("tooltip_episodes"),$$slots:{default:[f5]},$$scope:{ctx:i}};i[23].episodes!==void 0&&(tt.ref=i[23].episodes),h=new Mt({props:tt}),he.push(()=>Fe(h,"ref",Qe));let j=gt(i[28]),ae=[];for(let $=0;$<j.length;$+=1)ae[$]=rp(Xm(i,j,$));let Ze=$=>m(ae[$],1,1,()=>{ae[$]=null}),_e=i[43]&&!i[4]&&lp(i);function Ue($){i[187]($)}let st={$$slots:{default:[p5]},$$scope:{ctx:i}};i[23].volume!==void 0&&(st.ref=i[23].volume),x=new Mt({props:st}),he.push(()=>Fe(x,"ref",Ue));let je=i[40]&&sp(i),qe=!i[83]&&!i[4]&&ap(i),Xe=i[42]&&!i[4]&&up(i),Ye=i[84].features.contextMenuButton&&h5(i),Q=i[44]&&cp(i),Be=i[39]&&fp(i),Ie=i[122]&&k5(i);return{c(){e=I("div"),A(t.$$.fragment),o=H(),l=I("div"),r=I("div"),le&&le.c(),a=H(),ee&&ee.c(),s=H(),ue&&ue.c(),u=H(),ze&&ze.c(),f=H(),Re&&Re.c(),p=H(),ke&&ke.c(),g=H(),Ve&&Ve.c(),y=H(),A(h.$$.fragment),F=H(),T=I("div");for(let $=0;$<ae.length;$+=1)ae[$].c();k=H(),_e&&_e.c(),P=H(),A(x.$$.fragment),z=H(),je&&je.c(),se=H(),qe&&qe.c(),de=H(),Xe&&Xe.c(),L=H(),Ye&&Ye.c(),oe=H(),Q&&Q.c(),re=H(),Be&&Be.c(),X=H(),Ie&&Ie.c(),Te=$e(),c(r,"class","controls-left svelte-ips4nw"),Hn(()=>i[185].call(r)),c(T,"class","controls-right svelte-ips4nw"),c(l,"class","controls svelte-ips4nw"),c(e,"class","wrapper-bottom svelte-ips4nw"),G(e,"hidden",i[1]),G(e,"controls-hidden",!i[3]),G(e,"no-smooth",i[2])},m($,be){v($,e,be),E(t,e,null),_(e,o),_(e,l),_(l,r),le&&le.m(r,null),_(r,a),ee&&ee.m(r,null),_(r,s),ue&&ue.m(r,null),_(r,u),ze&&ze.m(r,null),_(r,f),Re&&Re.m(r,null),_(r,p),ke&&ke.m(r,null),_(r,g),Ve&&Ve.m(r,null),_(r,y),E(h,r,null),w=ar(r,i[185].bind(r)),_(l,F),_(l,T);for(let ot=0;ot<ae.length;ot+=1)ae[ot]&&ae[ot].m(T,null);_(T,k),_e&&_e.m(T,null),_(T,P),E(x,T,null),_(T,z),je&&je.m(T,null),_(T,se),qe&&qe.m(T,null),_(T,de),Xe&&Xe.m(T,null),_(T,L),Ye&&Ye.m(T,null),_(T,oe),Q&&Q.m(T,null),_(T,re),Be&&Be.m(T,null),i[195](l),i[196](e),v($,X,be),Ie&&Ie.m($,be),v($,Te,be),q=!0},p($,be){let ot={};be[1]&16384&&(ot.isHidden=!$[45]),be[0]&16&&(ot.isAds=$[4]),be[0]&32&&(ot.canRewindLive=$[5]),be[1]&2&&(ot.isRewindableLive=$[32]),!n&&be[0]&8388608&&(n=!0,ot.ref=$[23].timeline,Oe(()=>n=!1)),t.$set(ot),$[38]?le?(le.p($,be),be[1]&128&&d(le,1)):(le=Jm($),le.c(),d(le,1),le.m(r,a)):le&&(ce(),m(le,1,1,()=>{le=null}),fe()),$[35]?ee?(ee.p($,be),be[1]&16&&d(ee,1)):(ee=$m($),ee.c(),d(ee,1),ee.m(r,s)):ee&&(ce(),m(ee,1,1,()=>{ee=null}),fe()),$[36]?ue?(ue.p($,be),be[1]&32&&d(ue,1)):(ue=ep($),ue.c(),d(ue,1),ue.m(r,u)):ue&&(ce(),m(ue,1,1,()=>{ue=null}),fe()),$[37]?ze?(ze.p($,be),be[1]&64&&d(ze,1)):(ze=tp($),ze.c(),d(ze,1),ze.m(r,f)):ze&&(ce(),m(ze,1,1,()=>{ze=null}),fe()),$[117]&&Re.p($,be),!$[4]&&$[33]?ke?(ke.p($,be),be[0]&16|be[1]&4&&d(ke,1)):(ke=ip($),ke.c(),d(ke,1),ke.m(r,g)):ke&&(ce(),m(ke,1,1,()=>{ke=null}),fe()),$[19]?Ve?(Ve.p($,be),be[0]&524288&&d(Ve,1)):(Ve=np($),Ve.c(),d(Ve,1),Ve.m(r,y)):Ve&&(ce(),m(Ve,1,1,()=>{Ve=null}),fe());let me={};if(be[0]&1048576&&(me.disabled=!$[20]),be[0]&1048576|be[2]&1310720|be[7]&1&&(me.$$scope={dirty:be,ctx:$}),!C&&be[0]&8388608&&(C=!0,me.ref=$[23].episodes,Oe(()=>C=!1)),h.$set(me),be[0]&268435456){j=gt($[28]);let We;for(We=0;We<j.length;We+=1){let ut=Xm($,j,We);ae[We]?(ae[We].p(ut,be),d(ae[We],1)):(ae[We]=rp(ut),ae[We].c(),d(ae[We],1),ae[We].m(T,k))}for(ce(),We=j.length;We<ae.length;We+=1)Ze(We);fe()}$[43]&&!$[4]?_e?(_e.p($,be),be[0]&16|be[1]&4096&&d(_e,1)):(_e=lp($),_e.c(),d(_e,1),_e.m(T,P)):_e&&(ce(),m(_e,1,1,()=>{_e=null}),fe());let _t={};be[7]&1&&(_t.$$scope={dirty:be,ctx:$}),!W&&be[0]&8388608&&(W=!0,_t.ref=$[23].volume,Oe(()=>W=!1)),x.$set(_t),$[40]?je?(je.p($,be),be[1]&512&&d(je,1)):(je=sp($),je.c(),d(je,1),je.m(T,se)):je&&(ce(),m(je,1,1,()=>{je=null}),fe()),!$[83]&&!$[4]?qe?(qe.p($,be),be[0]&16|be[2]&2097152&&d(qe,1)):(qe=ap($),qe.c(),d(qe,1),qe.m(T,de)):qe&&(ce(),m(qe,1,1,()=>{qe=null}),fe()),$[42]&&!$[4]?Xe?(Xe.p($,be),be[0]&16|be[1]&2048&&d(Xe,1)):(Xe=up($),Xe.c(),d(Xe,1),Xe.m(T,L)):Xe&&(ce(),m(Xe,1,1,()=>{Xe=null}),fe()),$[84].features.contextMenuButton&&Ye.p($,be),$[44]?Q?(Q.p($,be),be[1]&8192&&d(Q,1)):(Q=cp($),Q.c(),d(Q,1),Q.m(T,re)):Q&&(ce(),m(Q,1,1,()=>{Q=null}),fe()),$[39]?Be?(Be.p($,be),be[1]&256&&d(Be,1)):(Be=fp($),Be.c(),d(Be,1),Be.m(T,null)):Be&&(ce(),m(Be,1,1,()=>{Be=null}),fe()),(!q||be[0]&2)&&G(e,"hidden",$[1]),(!q||be[0]&8)&&G(e,"controls-hidden",!$[3]),(!q||be[0]&4)&&G(e,"no-smooth",$[2]),$[122]&&Ie.p($,be)},i($){if(!q){d(t.$$.fragment,$),d(le),d(ee),d(ue),d(ze),d(Re),d(ke),d(Ve),d(h.$$.fragment,$);for(let be=0;be<j.length;be+=1)d(ae[be]);d(_e),d(x.$$.fragment,$),d(je),d(qe),d(Xe),d(Ye),d(Q),d(Be),d(Ie),q=!0}},o($){m(t.$$.fragment,$),m(le),m(ee),m(ue),m(ze),m(Re),m(ke),m(Ve),m(h.$$.fragment,$),ae=ae.filter(Boolean);for(let be=0;be<ae.length;be+=1)m(ae[be]);m(_e),m(x.$$.fragment,$),m(je),m(qe),m(Xe),m(Ye),m(Q),m(Be),m(Ie),q=!1},d($){$&&(b(e),b(X),b(Te)),M(t),le&&le.d(),ee&&ee.d(),ue&&ue.d(),ze&&ze.d(),Re&&Re.d(),ke&&ke.d(),Ve&&Ve.d(),M(h),w(),$t(ae,$),_e&&_e.d(),M(x),je&&je.d(),qe&&qe.d(),Xe&&Xe.d(),Ye&&Ye.d(),Q&&Q.d(),Be&&Be.d(),i[195](null),i[196](null),Ie&&Ie.d($)}}}function C5(i,e,t){let n,o,l,r,a,s,u,f,p,g,y,h,C,w,F,T,k,P,x,W,z,se,de,L,oe,re,X,Te,q,O,K,le,ee=ge,ue=()=>(ee(),ee=Ft(de,J=>t(144,le=J)),de),ze,Re=ge,ke=()=>(Re(),Re=Ft(se,J=>t(145,ze=J)),se),Ve,Qe=ge,tt=()=>(Qe(),Qe=Ft(z,J=>t(146,Ve=J)),z),j,ae=ge,Ze=()=>(ae(),ae=Ft(W,J=>t(147,j=J)),W),_e,Ue=ge,st=()=>(Ue(),Ue=Ft(x,J=>t(148,_e=J)),x),je,qe=ge,Xe=()=>(qe(),qe=Ft(P,J=>t(149,je=J)),P),Ye,Q=ge,Be=()=>(Q(),Q=Ft(k,J=>t(150,Ye=J)),k),Ie,$=ge,be=()=>($(),$=Ft(T,J=>t(151,Ie=J)),T),ot,me=ge,_t=()=>(me(),me=Ft(F,J=>t(152,ot=J)),F),We,ut=ge,Tt=()=>(ut(),ut=Ft(w,J=>t(153,We=J)),w),At,Lt=ge,et=()=>(Lt(),Lt=Ft(C,J=>t(154,At=J)),C),Pt,Dt=ge,ci=()=>(Dt(),Dt=Ft(h,J=>t(155,Pt=J)),h),lt,yt=ge,we=()=>(yt(),yt=Ft(y,J=>t(156,lt=J)),y),bt,Et=ge,jt=()=>(Et(),Et=Ft(g,J=>t(157,bt=J)),g),vt,Nt=ge,qt=()=>(Nt(),Nt=Ft(p,J=>t(158,vt=J)),p),xt,fi=ge,di=()=>(fi(),fi=Ft(f,J=>t(159,xt=J)),f),Ht,zt=ge,oi=()=>(zt(),zt=Ft(u,J=>t(160,Ht=J)),u),Ot,Ei,Ct,Mi,hi,ri,Ai,pe,dt,Li,Vi,qi,$i,Yt,bi,dn,Ut,vi,In,mi,en,Hi,mn;i.$$.on_destroy.push(()=>ee()),i.$$.on_destroy.push(()=>Re()),i.$$.on_destroy.push(()=>Qe()),i.$$.on_destroy.push(()=>ae()),i.$$.on_destroy.push(()=>Ue()),i.$$.on_destroy.push(()=>qe()),i.$$.on_destroy.push(()=>Q()),i.$$.on_destroy.push(()=>$()),i.$$.on_destroy.push(()=>me()),i.$$.on_destroy.push(()=>ut()),i.$$.on_destroy.push(()=>Lt()),i.$$.on_destroy.push(()=>Dt()),i.$$.on_destroy.push(()=>yt()),i.$$.on_destroy.push(()=>Et()),i.$$.on_destroy.push(()=>Nt()),i.$$.on_destroy.push(()=>fi()),i.$$.on_destroy.push(()=>zt());let{bottomHidden:pn}=e,{bottomNoSmooth:ti}=e,{showControls:zi}=e,{controlsElementRef:pi=void 0}=e,{isAds:li=!1}=e,{canRewindLive:Ui}=e,{logoClickable:Vn}=e,{logoHidden:Ri}=e,{logoTargetUrl:tn=""}=e,{showNextPrevButtons:yi}=e,{nextButtonActive:_i}=e,{prevButtonActive:Wi}=e,{isOneVideoPlaylist:_n=!1}=e,{supportLink:nn}=e,{customFullscreenSupported:ki=!0}=e,{playNextVideo:wi}=e,{playPrevVideo:Ki}=e,{repeatPlaylist:Qt}=e,{toggleFullscreen:Zt}=e,{returnFocus:Kt}=e,{seekToInteractive:ii}=e,{toggleGraph:Ci}=e,{playPrevChapter:on}=e,rt=nt(),Bi=Mn(),si=Bt(),Gi=rt.actions.internal.toggleMuted,Si=rt.actions.internal.togglePlay,xe=rt.actions.internal.pause,gn=rt.actions.internal.toggleSubtitle,ji=rt.callbacks?.onAudioDoesNotExistHint,Di=rt.callbacks?.onAudioDisabledHint,rn=rt.state.duration$;N(i,rn,J=>t(82,Hi=J));let ln=rt.state.positionWithScrubbing$;N(i,ln,J=>t(80,mi=J));let Xt=rt.state.playbackState$;N(i,Xt,J=>t(161,Ct=J));let sn=rt.state.chromecastConnected$;N(i,sn,J=>t(83,mn=J));let hn=rt.state.isAudioAvailable$;N(i,hn,J=>t(198,L=J));let xi=rt.state.isAudioDisabled,gi=rt.state.isEnded$;N(i,gi,J=>t(169,Yt=J));let an=rt.state.isLive$;N(i,an,J=>t(33,pe=J));let bn=rt.state.isActiveLive$;N(i,bn,J=>t(163,ri=J));let vn=rt.state.isRewindableLive$;N(i,vn,J=>t(32,Ai=J));let Rn=rt.ui.isPictureInPictureActive$;N(i,Rn,J=>t(165,Li=J));let Ii=rt.ui.pictureInPictureType$;N(i,Ii,J=>t(164,dt=J));let Yi=rt.ui.settingsMenuVisible;N(i,Yi,J=>t(27,X=J));let Ni=rt.ui.settingsMenuOpenedByKeyboard;N(i,Ni,J=>t(140,re=J));let yn=rt.ui.controls,Kn=rt.actions.internal.getVideoEpisodes(),Qi=rt.state.chromecastState$;N(i,Qi,J=>t(29,Ot=J));let Jt=rt.state.availableSubtitlesList$;N(i,Jt,J=>t(168,$i=J));let Bn=rt.state.currentSubtitle$;N(i,Bn,J=>t(170,bi=J));let Gn=yn.disabledControls$;N(i,Gn,J=>t(172,Ut=J));let Dn=rt.ui.contextMenu.visible$;N(i,Dn,J=>t(162,Mi=J));let jn=rt.ui.contextMenu.showContextMenuBtn$;N(i,jn,J=>t(166,Vi=J));let Nn=rt.ui.contextMenu.openedByBtnKeyboard$;N(i,Nn,J=>t(167,qi=J));let un=rt.ui.startedByKeyboard$;N(i,un,J=>t(139,oe=J));let ie=rt.ads.duration;N(i,ie,J=>t(81,en=J));let kt=rt.ads.position;N(i,kt,J=>t(79,In=J));let kn=rt.ads.playbackState;N(i,kn,J=>t(171,dn=J));let cn=rt.ui.isFullscreen;N(i,cn,J=>t(30,Ei=J));let xn=rt.ui.playerSize;N(i,xn,J=>t(142,q=J));let Yn=rt.ui.currentGridType$;N(i,Yn,J=>t(143,O=J));let Qn=rt.ui.additionalButtons$;N(i,Qn,J=>t(28,K=J));let So=rt.actions.internal.getVideoElement,Io=rt.actions.internal.replayInteractive,fn=rt.state.isInteractive,to=rt.state.isInteractiveTime$;N(i,to,J=>t(141,Te=J));let te=rt.state.showInteractiveGraph,To=rt.state.showSeekToInteractive,On=rt.state.showPlayPrevChapter,Fr=rt.state.showInteractiveTimeIndicator,Qo=rt.state.graphIsOpened$;N(i,Qo,J=>t(31,hi=J));let Po=rt.state.playPrevChapterDisabledTooltip,Eo=Bi.seekToInteractiveDisabledTooltip$;N(i,Eo,J=>t(78,vi=J));let Zi=()=>rt.actions.internal.toggleChromecast(),co,fo,Zo,Xo,Mo,Jo,$o,er,tr,ir,Y,Vt,Tn,Pn,nr,Ao,mo,po,or,_o,rr,lr="",Ns=(J,Fs)=>{if(!J){t(50,lr=U("tooltip_live"));return}Fs===Yo.PlaybackState.PAUSED&&t(50,lr=U("tooltip_play"))},qr,il,nl,ol,sr,it={},wn,go,Hr,rl,wt=(0,dp.debounceFn)(hs,260),S,Z,Se;function Ke(){ko({isAudioDisabled:xi,audioDisabledHintCallback:Di,isAudioAvailable:L,audioIsNotExistHintCallback:ji})&&Gi()}let ct=fn?Io:_n?Si:Qt;function ai(J){i.$$.not_equal(it.timeline,J)&&(it.timeline=J,t(23,it))}function Ti(J){i.$$.not_equal(it.prevButton,J)&&(it.prevButton=J,t(23,it))}function ui(J){i.$$.not_equal(it.replayButton,J)&&(it.replayButton=J,t(23,it))}function Zn(J){Se=J,t(26,Se)}function ll(J){i.$$.not_equal(it.playButton,J)&&(it.playButton=J,t(23,it))}function Os(J){i.$$.not_equal(it.nextButton,J)&&(it.nextButton=J,t(23,it))}function sl(J){i.$$.not_equal(it.playPrevChapterButton,J)&&(it.playPrevChapterButton=J,t(23,it))}function V_(J){i.$$.not_equal(it.seekToInteractiveButton,J)&&(it.seekToInteractiveButton=J,t(23,it))}function R_(J){i.$$.not_equal(it.interactiveGraphButton,J)&&(it.interactiveGraphButton=J,t(23,it))}function B_(J){i.$$.not_equal(it.liveButton,J)&&(it.liveButton=J,t(23,it))}function D_(J){i.$$.not_equal(it.time,J)&&(it.time=J,t(23,it))}function N_(J){i.$$.not_equal(it.episodes,J)&&(it.episodes=J,t(23,it))}function O_(){sr=this.clientWidth,t(22,sr)}function F_(J){i.$$.not_equal(it.vkLogo,J)&&(it.vkLogo=J,t(23,it))}function q_(J){i.$$.not_equal(it.volume,J)&&(it.volume=J,t(23,it))}function H_(J){i.$$.not_equal(it.subtitles,J)&&(it.subtitles=J,t(23,it))}function z_(J){S=J,t(24,S)}function U_(J){Z=J,t(25,Z)}function W_(J){i.$$.not_equal(it.settings,J)&&(it.settings=J,t(23,it))}function K_(J){i.$$.not_equal(it.context,J)&&(it.context=J,t(23,it))}function G_(J){i.$$.not_equal(it.fullscreen,J)&&(it.fullscreen=J,t(23,it))}function j_(J){i.$$.not_equal(it.chromecast,J)&&(it.chromecast=J,t(23,it))}function x_(J){he[J?"unshift":"push"](()=>{mo=J,t(46,mo)})}function Y_(J){he[J?"unshift":"push"](()=>{pi=J,t(0,pi)})}function Q_(J){i.$$.not_equal(it.interactiveTimeIndicator,J)&&(it.interactiveTimeIndicator=J,t(23,it))}return i.$$set=J=>{"bottomHidden"in J&&t(1,pn=J.bottomHidden),"bottomNoSmooth"in J&&t(2,ti=J.bottomNoSmooth),"showControls"in J&&t(3,zi=J.showControls),"controlsElementRef"in J&&t(0,pi=J.controlsElementRef),"isAds"in J&&t(4,li=J.isAds),"canRewindLive"in J&&t(5,Ui=J.canRewindLive),"logoClickable"in J&&t(6,Vn=J.logoClickable),"logoHidden"in J&&t(129,Ri=J.logoHidden),"logoTargetUrl"in J&&t(7,tn=J.logoTargetUrl),"showNextPrevButtons"in J&&t(130,yi=J.showNextPrevButtons),"nextButtonActive"in J&&t(8,_i=J.nextButtonActive),"prevButtonActive"in J&&t(9,Wi=J.prevButtonActive),"isOneVideoPlaylist"in J&&t(131,_n=J.isOneVideoPlaylist),"supportLink"in J&&t(10,nn=J.supportLink),"customFullscreenSupported"in J&&t(132,ki=J.customFullscreenSupported),"playNextVideo"in J&&t(11,wi=J.playNextVideo),"playPrevVideo"in J&&t(12,Ki=J.playPrevVideo),"repeatPlaylist"in J&&t(133,Qt=J.repeatPlaylist),"toggleFullscreen"in J&&t(13,Zt=J.toggleFullscreen),"returnFocus"in J&&t(14,Kt=J.returnFocus),"seekToInteractive"in J&&t(15,ii=J.seekToInteractive),"toggleGraph"in J&&t(16,Ci=J.toggleGraph),"playPrevChapter"in J&&t(17,on=J.playPrevChapter)},i.$$.update=()=>{if(i.$$.dirty[5]&131072&&t(138,n=Ut.has("EPISODE_BUTTON")),i.$$.dirty[5]&131072&&t(77,o=Ut.has("GRAPH_BUTTON")),i.$$.dirty[5]&131072&&t(76,l=Ut.has("SEEK_TO_INTERACTIVE_BUTTON")),i.$$.dirty[5]&131072&&t(75,r=Ut.has("PLAY_BUTTON")),i.$$.dirty[5]&131072&&t(74,a=Ut.has("REPLAY_BUTTON")),i.$$.dirty[5]&131072&&t(73,s=Ut.has("PLAY_PREV_CHAPTER_BUTTON")),i.$$.dirty[0]&16|i.$$.dirty[5]&65600&&t(34,co=li?dn==="playing":Ct===Yo.PlaybackState.PLAYING),i.$$.dirty[5]&32768&&t(18,fo=bi.value!=="off"),i.$$.dirty[0]&16|i.$$.dirty[5]&16384&&t(35,Zo=Yt&&!li||fn),i.$$.dirty[0]&16|i.$$.dirty[5]&16384&&t(36,Xo=!Yt||fn||li),i.$$.dirty[4]&524288&&t(134,Mo=Ji(O,"m")),i.$$.dirty[0]&272|i.$$.dirty[4]&524352&&t(37,Jo=yi&&Ji(O,"m")&&!li&&_i),i.$$.dirty[0]&528|i.$$.dirty[4]&524352&&t(38,$o=yi&&Ji(O,"m")&&!li&&Wi),i.$$.dirty[0]&536870912|i.$$.dirty[4]&524288|i.$$.dirty[5]&1536&&t(39,er=Ot!==Yo.ChromecastState.NOT_AVAILABLE&&!(Li&&dt===1)&&Ji(O,"m")&&!fn),i.$$.dirty[4]&524288|i.$$.dirty[5]&8192&&t(40,tr=$i.length>0&&Ji(O,"m")),i.$$.dirty[5]&6144&&t(41,ir=qi||Vi),i.$$.dirty[4]&524288&&t(42,Y=Ji(O,"s")),i.$$.dirty[4]&32&&t(43,Vt=!Ri),i.$$.dirty[4]&524576|i.$$.dirty[5]&1536&&t(44,Tn=si.features.fullscreen&&(Ri||Ji(O,"s"))&&!(Li&&dt===1)&&(fn?ki:!0)),i.$$.dirty[0]&16|i.$$.dirty[1]&4&&t(19,Pn=(!pe||li)&&!(si.features.interactiveHideTime&&fn)),i.$$.dirty[4]&262144&&t(45,nr=q.width>100),i.$$.dirty[0]&16|i.$$.dirty[1]&4|i.$$.dirty[4]&17408&&t(20,Ao=!li&&!pe&&!!Kn?.length&&Mo&&!n),i.$$.dirty[1]&2|i.$$.dirty[5]&256&&t(21,po=!Ai||ri),i.$$.dirty[5]&64&&t(47,or=Ct===Yo.PlaybackState.PLAYING?U("tooltip_pause"):U("tooltip_play")),i.$$.dirty[1]&1&&t(48,_o=hi?U("tooltip_interactive_graph_on"):U("tooltip_interactive_graph_off")),i.$$.dirty[5]&128&&t(49,rr=Mi?U("aria_label_context_menu_close"):U("aria_label_context_menu_open")),i.$$.dirty[0]&2097152|i.$$.dirty[5]&64&&Ns(po,Ct),i.$$.dirty[0]&262144&&t(52,il=fo?U("tooltip_subtitles_on"):U("tooltip_subtitles_off")),i.$$.dirty[0]&1073741824&&t(53,nl=Ei?U("tooltip_fullscreen_on"):U("tooltip_fullscreen_off")),i.$$.dirty[0]&536870912&&t(54,ol=Ot===Yo.ChromecastState.CONNECTED?U("tooltip_chromecast_on"):U("tooltip_chromecast_off")),i.$$.dirty[0]&268435456|i.$$.dirty[4]&2146435072|i.$$.dirty[5]&63&&t(135,wn={prevButton:Ht?Ht.right-Ht.left:0,replayButton:xt?xt.right-xt.left:0,playButton:vt?vt.right-vt.left:0,nextButton:bt?bt.right-bt.left:0,playPrevChapterButton:lt?lt.right-lt.left:0,seekToInteractiveButton:Pt?Pt.right-Pt.left:0,interactiveGraphButton:At?At.right-At.left:0,liveButton:We?We.right-We.left:0,time:ot?ot.right-ot.left:0,episodes:Ie?Ie.right-Ie.left:0,vkLogo:Ye?Ye.right-Ye.left:0,volume:je?je.right-je.left:0,subtitles:_e?_e.right-_e.left:0,settings:j?j.right-j.left:0,context:Ve?Ve.right-Ve.left:0,fullscreen:ze?ze.right-ze.left:0,chromecast:le?le.right-le.left:0,additionalButtons:K.length?K.reduce(J=>[...J,40],[]):[]}),i.$$.dirty[4]&6144&&(!go||go<wn.time)&&t(136,go=wn.time),i.$$.dirty[0]&5767168|i.$$.dirty[4]&530432){let J=0;Ao&&(Ji(O,"xl")?J=wn.time:J=60);let Fs=wn.prevButton+wn.playButton+wn.nextButton+wn.seekToInteractiveButton+wn.interactiveGraphButton+wn.liveButton+go+J;t(137,Hr=Pn&&sr>=Fs)}i.$$.dirty[4]&532480&&t(55,rl=Hr&&Ji(O,"m")),i.$$.dirty[0]&8388616|i.$$.dirty[4]&393216&&wt(So(),yn,it,zi),i.$$.dirty[0]&167772160&&kr(Z,X,Ni),i.$$.dirty[0]&150994944|i.$$.dirty[4]&65536&&Wo(S,X,re),i.$$.dirty[0]&67108864|i.$$.dirty[4]&32768&&bs(un,oe,Se)},t(51,qr=si.logoType==="vk_video"?U("tooltip_vk_video_logo"):U("tooltip_vk_logo")),oi(t(72,{prevButton:u,replayButton:f,playButton:p,nextButton:g,playPrevChapterButton:y,seekToInteractiveButton:h,interactiveGraphButton:C,liveButton:w,time:F,episodes:T,vkLogo:k,volume:P,subtitles:x,settings:W,context:z,fullscreen:se,chromecast:de}=yn,u,di(t(71,f)),qt(t(70,p)),jt(t(69,g)),we(t(68,y)),ci(t(67,h)),et(t(66,C)),Tt(t(65,w)),_t(t(64,F)),be(t(63,T)),Be(t(62,k)),Xe(t(61,P)),st(t(60,x)),Ze(t(59,W)),tt(t(58,z)),ke(t(57,se)),ue(t(56,de)))),[pi,pn,ti,zi,li,Ui,Vn,tn,_i,Wi,nn,wi,Ki,Zt,Kt,ii,Ci,on,fo,Pn,Ao,po,sr,it,S,Z,Se,X,K,Ot,Ei,hi,Ai,pe,co,Zo,Xo,Jo,$o,er,tr,ir,Y,Vt,Tn,nr,mo,or,_o,rr,lr,qr,il,nl,ol,rl,de,se,z,W,x,P,k,T,F,w,C,h,y,g,p,f,u,s,a,r,l,o,vi,In,mi,en,Hi,mn,si,Si,xe,gn,rn,ln,Xt,sn,hn,gi,an,bn,vn,Rn,Ii,Yi,Ni,Kn,Qi,Jt,Bn,Gn,Dn,jn,Nn,un,ie,kt,kn,cn,xn,Yn,Qn,fn,to,te,To,On,Fr,Qo,Po,Eo,Zi,Ke,ct,Ri,yi,_n,ki,Qt,Mo,wn,go,Hr,n,oe,re,Te,q,O,le,ze,Ve,j,_e,je,Ye,Ie,ot,We,At,Pt,lt,bt,vt,xt,Ht,Ct,Mi,ri,dt,Li,Vi,qi,$i,Yt,bi,dn,Ut,ai,Ti,ui,Zn,ll,Os,sl,V_,R_,B_,D_,N_,O_,F_,q_,H_,z_,U_,W_,K_,G_,j_,x_,Y_,Q_]}var gc=class extends B{constructor(e){super(),D(this,e,C5,w5,R,{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},J3,[-1,-1,-1,-1,-1,-1,-1,-1])}},mp=gc;var Lr=require("@vkontakte/videoplayer-core");function S5(i){let e,t,n,o,l,r=i[2].default,a=Ee(r,i,i[1],null),s=[{xmlns:"http://www.w3.org/2000/svg"},{width:"24"},{height:"24"},{"aria-hidden":"true"},{"data-testid":"muted-icon"},{role:"img"},i[0]],u={};for(let f=0;f<s.length;f+=1)u=ne(u,s[f]);return{c(){e=V("svg"),a&&a.c(),t=V("g"),n=V("path"),o=V("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"),ye(e,u)},m(f,p){v(f,e,p),a&&a.m(e,null),_(e,t),_(t,n),_(t,o),l=!0},p(f,[p]){a&&a.p&&(!l||p&2)&&Ae(a,r,f,f[1],l?Me(r,f[1],p,null):Le(f[1]),null),ye(e,u=De(s,[{xmlns:"http://www.w3.org/2000/svg"},{width:"24"},{height:"24"},{"aria-hidden":"true"},{"data-testid":"muted-icon"},{role:"img"},p&1&&f[0]]))},i(f){l||(d(a,f),l=!0)},o(f){m(a,f),l=!1},d(f){f&&b(e),a&&a.d(f)}}}function I5(i,e,t){let{$$slots:n={},$$scope:o}=e;return i.$$set=l=>{t(0,e=ne(ne({},e),ve(l))),"$$scope"in l&&t(1,o=l.$$scope)},e=ve(e),[e,o,n]}var bc=class extends B{constructor(e){super(),D(this,e,I5,S5,R,{})}},pp=bc;var gp=require("@vkontakte/videoplayer-shared");function T5(i){Ce(i,"svelte-6gmlbk",".container.svelte-6gmlbk{display:flex;align-items:center}.expanded.svelte-6gmlbk{background-color:rgba(0, 0, 0, 0.56);border-radius:6px}.text.svelte-6gmlbk{font-size:15px;margin-left:8px}")}function _p(i){let e;return{c(){e=I("span"),e.textContent=`${U("mobile_unmute")}`,c(e,"class","text svelte-6gmlbk")},m(t,n){v(t,e,n)},d(t){t&&b(e)}}}function P5(i){let e,t,n,o;var l=i[4];function r(s,u){return{}}l&&(t=Rt(l,r(i)));let a=i[1]&&_p(i);return{c(){e=I("div"),t&&A(t.$$.fragment),n=H(),a&&a.c(),c(e,"class","container svelte-6gmlbk"),c(e,"aria-hidden","true"),G(e,"expanded",i[1])},m(s,u){v(s,e,u),t&&E(t,e,null),_(e,n),a&&a.m(e,null),o=!0},p(s,u){if(u&16&&l!==(l=s[4])){if(t){ce();let f=t;m(f.$$.fragment,1,0,()=>{M(f,1)}),fe()}l?(t=Rt(l,r(s,u)),A(t.$$.fragment),d(t.$$.fragment,1),E(t,e,n)):t=null}s[1]?a||(a=_p(s),a.c(),a.m(e,null)):a&&(a.d(1),a=null),(!o||u&2)&&G(e,"expanded",s[1])},i(s){o||(t&&d(t.$$.fragment,s),o=!0)},o(s){t&&m(t.$$.fragment,s),o=!1},d(s){s&&b(e),t&&M(t),a&&a.d()}}}function E5(i){let e,t,n;function o(r){i[6](r)}let l={testId:i[1]?"btn-mobile-unmuted":"btn-mobile-muted",click:i[2],ariaLabel:i[3],$$slots:{default:[P5]},$$scope:{ctx:i}};return i[0]!==void 0&&(l.ref=i[0]),e=new pt({props:l}),he.push(()=>Fe(e,"ref",o)),{c(){A(e.$$.fragment)},m(r,a){E(e,r,a),n=!0},p(r,[a]){let s={};a&2&&(s.testId=r[1]?"btn-mobile-unmuted":"btn-mobile-muted"),a&4&&(s.click=r[2]),a&8&&(s.ariaLabel=r[3]),a&146&&(s.$$scope={dirty:a,ctx:r}),!t&&a&1&&(t=!0,s.ref=r[0],Oe(()=>t=!1)),e.$set(s)},i(r){n||(d(e.$$.fragment,r),n=!0)},o(r){m(e.$$.fragment,r),n=!1},d(r){M(e,r)}}}function M5(i,e,t){let{muted:n=!1}=e,{expanded:o=!1}=e,{click:l=gp.noop}=e,{ref:r=void 0}=e,a,s;function u(f){r=f,t(0,r)}return i.$$set=f=>{"muted"in f&&t(5,n=f.muted),"expanded"in f&&t(1,o=f.expanded),"click"in f&&t(2,l=f.click),"ref"in f&&t(0,r=f.ref)},i.$$.update=()=>{i.$$.dirty&32&&t(3,a=n?U("tooltip_volume"):U("tooltip_volume_muted")),i.$$.dirty&2&&t(4,s=o?xo:pp)},[r,o,l,a,s,n,u]}var vc=class extends B{constructor(e){super(),D(this,e,M5,E5,R,{muted:5,expanded:1,click:2,ref:0},T5)}},yc=vc;function A5(i){let e,t,n,o,l,r=i[2].default,a=Ee(r,i,i[1],null),s=[{xmlns:"http://www.w3.org/2000/svg"},{width:"24"},{height:"24"},{fill:"none"},{role:"img"},i[0]],u={};for(let f=0;f<s.length;f+=1)u=ne(u,s[f]);return{c(){e=V("svg"),a&&a.c(),t=V("path"),n=V("path"),o=V("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"),ye(e,u)},m(f,p){v(f,e,p),a&&a.m(e,null),_(e,t),_(e,n),_(e,o),l=!0},p(f,[p]){a&&a.p&&(!l||p&2)&&Ae(a,r,f,f[1],l?Me(r,f[1],p,null):Le(f[1]),null),ye(e,u=De(s,[{xmlns:"http://www.w3.org/2000/svg"},{width:"24"},{height:"24"},{fill:"none"},{role:"img"},p&1&&f[0]]))},i(f){l||(d(a,f),l=!0)},o(f){m(a,f),l=!1},d(f){f&&b(e),a&&a.d(f)}}}function L5(i,e,t){let{$$slots:n={},$$scope:o}=e;return i.$$set=l=>{t(0,e=ne(ne({},e),ve(l))),"$$scope"in l&&t(1,o=l.$$scope)},e=ve(e),[e,o,n]}var kc=class extends B{constructor(e){super(),D(this,e,L5,A5,R,{})}},hp=kc;function V5(i){Ce(i,"svelte-tmam00",'svg[data-testid="pip-icon--active"] .hidden-active,svg[data-testid="pip-icon"] .hidden-not-active{visibility:hidden;opacity:0}')}function R5(i){let e,t;return e=new hp({props:{style:i[1],"data-testid":i[0]?"pip-icon--active":"pip-icon"}}),{c(){A(e.$$.fragment)},m(n,o){E(e,n,o),t=!0},p(n,[o]){let l={};o&2&&(l.style=n[1]),o&1&&(l["data-testid"]=n[0]?"pip-icon--active":"pip-icon"),e.$set(l)},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){m(e.$$.fragment,n),t=!1},d(n){M(e,n)}}}function B5(i,e,t){let n,{isActive:o=!1}=e;return i.$$set=l=>{"isActive"in l&&t(0,o=l.isActive)},i.$$.update=()=>{i.$$.dirty&1&&t(1,n=o?"color: #2688EB;":"color: #fff;")},[o,n]}var wc=class extends B{constructor(e){super(),D(this,e,B5,R5,R,{isActive:0},V5)}},bp=wc;var vp=require("@vkontakte/videoplayer-shared");function D5(i){let e,t;return e=new bp({props:{isActive:i[1]}}),{c(){A(e.$$.fragment)},m(n,o){E(e,n,o),t=!0},p(n,o){let l={};o&2&&(l.isActive=n[1]),e.$set(l)},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){m(e.$$.fragment,n),t=!1},d(n){M(e,n)}}}function N5(i){let e,t,n;function o(r){i[3](r)}let l={testId:"btn-pip",ariaLabel:U("menu_pip"),click:i[2],$$slots:{default:[D5]},$$scope:{ctx:i}};return i[0]!==void 0&&(l.ref=i[0]),e=new pt({props:l}),he.push(()=>Fe(e,"ref",o)),{c(){A(e.$$.fragment)},m(r,a){E(e,r,a),n=!0},p(r,[a]){let s={};a&4&&(s.click=r[2]),a&18&&(s.$$scope={dirty:a,ctx:r}),!t&&a&1&&(t=!0,s.ref=r[0],Oe(()=>t=!1)),e.$set(s)},i(r){n||(d(e.$$.fragment,r),n=!0)},o(r){m(e.$$.fragment,r),n=!1},d(r){M(e,r)}}}function O5(i,e,t){let{ref:n=void 0}=e,{isPictureInPictureActive:o=!1}=e,{click:l=vp.noop}=e;function r(a){n=a,t(0,n)}return i.$$set=a=>{"ref"in a&&t(0,n=a.ref),"isPictureInPictureActive"in a&&t(1,o=a.isPictureInPictureActive),"click"in a&&t(2,l=a.click)},[n,o,l,r]}var Cc=class extends B{constructor(e){super(),D(this,e,O5,N5,R,{ref:0,isPictureInPictureActive:1,click:2})}},yp=Cc;var Wp=require("@vkontakte/videoplayer-shared");function F5(i){Ce(i,"svelte-17qsgob",".wrapper-bottom.svelte-17qsgob.svelte-17qsgob{pointer-events:none;position:absolute;z-index:var(--controls-container-z-index);width:100%;bottom:0;left:0;height:var(--controls-gradient-height);background:var(--controls-gradient);transition:transform var(--controls-transition-duration) var(--controls-transition-fn);display:flex;flex-direction:column;justify-content:flex-end;box-sizing:border-box;padding:0 4px 8px}.wrapper-bottom.svelte-17qsgob>.svelte-17qsgob{pointer-events:auto}.wrapper-bottom.ads-timeline-mobile.svelte-17qsgob.svelte-17qsgob{height:9px;padding:0 4px 4px}.wrapper-middle.svelte-17qsgob.svelte-17qsgob{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-17qsgob.svelte-17qsgob{position:absolute;top:4px;right:8px;transition:opacity var(--controls-transition-duration);display:flex}.wrapper-top-left.svelte-17qsgob.svelte-17qsgob{position:absolute;top:4px;left:8px}.wrapper-middle-left.svelte-17qsgob.svelte-17qsgob,.wrapper-middle-left-second.svelte-17qsgob.svelte-17qsgob,.wrapper-middle-right.svelte-17qsgob.svelte-17qsgob{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-17qsgob.svelte-17qsgob{left:12px}.wrapper-middle-left-second.svelte-17qsgob.svelte-17qsgob{left:64px}.wrapper-middle-right.svelte-17qsgob.svelte-17qsgob{right:12px}.controls.svelte-17qsgob.svelte-17qsgob{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-17qsgob > *:not(:first-child){margin-left:8px}.hidden.svelte-17qsgob.svelte-17qsgob{visibility:hidden;opacity:0}.controls-hidden.svelte-17qsgob.svelte-17qsgob{visibility:visible;transform:translateY(100%)}.wrapper-bottom.no-smooth.svelte-17qsgob.svelte-17qsgob{transition:none}.settings-mobile.svelte-17qsgob.svelte-17qsgob{position:absolute;z-index:var(--mobile-settings-menu-z-index);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-17qsgob.svelte-17qsgob{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-17qsgob.svelte-17qsgob{top:16px}.wrapper-top-left.fullscreen.svelte-17qsgob.svelte-17qsgob{top:16px}.controls-wrapper.fullscreen.svelte-17qsgob.svelte-17qsgob{position:absolute;bottom:30px;width:calc(100% - 8px)}}@media screen and (orientation: landscape){.wrapper-top-left.fullscreen.svelte-17qsgob.svelte-17qsgob{top:12px;left:44px}.wrapper-top-right.fullscreen.svelte-17qsgob.svelte-17qsgob{top:12px;right:44px}.wrapper-middle-left.fullscreen.svelte-17qsgob.svelte-17qsgob{left:44px}.wrapper-middle-left-second.fullscreen.svelte-17qsgob.svelte-17qsgob{left:96px}.wrapper-middle-right.fullscreen.svelte-17qsgob.svelte-17qsgob{right:44px}.controls-wrapper.fullscreen.svelte-17qsgob.svelte-17qsgob{position:absolute;left:36px;right:36px;bottom:32px;width:calc(100% - 72px)}}")}function kp(i,e,t){let n=i.slice();return n[172]=e[t].iconUrl,n[173]=e[t].ariaLabel,n[174]=e[t].testId,n[175]=e[t].onClick,n[176]=e[t].tooltip,n}function wp(i){let e,t,n,o,l,r,a,s,u,f,p,g,y,h,C,w,F,T=(!i[51]||i[53])&&Cp(i),k=gt(i[56]),P=[];for(let q=0;q<k.length;q+=1)P[q]=Sp(kp(i,k,q));let x=q=>m(P[q],1,1,()=>{P[q]=null}),W=i[36]&&Ip(i),z=i[37]&&Tp(i),se=i[57]&&Pp(i),de=i[39]&&Ep(i),L=i[8]&&Mp(i),oe=i[34]&&Ap(i),re=i[33]&&Lp(i),X=i[8]&&Vp(i),Te=i[97]&&!i[29]&&Rp(i);return{c(){e=I("div"),t=H(),n=I("div"),T&&T.c(),o=H(),l=I("div");for(let q=0;q<P.length;q+=1)P[q].c();r=H(),W&&W.c(),a=H(),z&&z.c(),s=H(),se&&se.c(),u=H(),de&&de.c(),f=H(),p=I("div"),L&&L.c(),g=H(),oe&&oe.c(),y=H(),re&&re.c(),h=H(),X&&X.c(),C=H(),Te&&Te.c(),w=$e(),c(e,"class","overlay-mobile svelte-17qsgob"),G(e,"hidden",!i[42]),c(n,"class","wrapper-top-left svelte-17qsgob"),G(n,"hidden",!i[3]),G(n,"fullscreen",i[52]),c(l,"class","wrapper-top-right svelte-17qsgob"),G(l,"hidden",!i[3]&&!i[27]),G(l,"fullscreen",i[52]),c(p,"class","wrapper-middle svelte-17qsgob"),G(p,"hidden",!i[3]||i[29])},m(q,O){v(q,e,O),v(q,t,O),v(q,n,O),T&&T.m(n,null),v(q,o,O),v(q,l,O);for(let K=0;K<P.length;K+=1)P[K]&&P[K].m(l,null);_(l,r),W&&W.m(l,null),_(l,a),z&&z.m(l,null),_(l,s),se&&se.m(l,null),_(l,u),de&&de.m(l,null),v(q,f,O),v(q,p,O),L&&L.m(p,null),_(p,g),oe&&oe.m(p,null),_(p,y),re&&re.m(p,null),_(p,h),X&&X.m(p,null),v(q,C,O),Te&&Te.m(q,O),v(q,w,O),F=!0},p(q,O){if((!F||O[1]&2048)&&G(e,"hidden",!q[42]),!q[51]||q[53]?T?(T.p(q,O),O[1]&5242880&&d(T,1)):(T=Cp(q),T.c(),d(T,1),T.m(n,null)):T&&(ce(),m(T,1,1,()=>{T=null}),fe()),(!F||O[0]&8)&&G(n,"hidden",!q[3]),(!F||O[1]&2097152)&&G(n,"fullscreen",q[52]),O[1]&33554432){k=gt(q[56]);let K;for(K=0;K<k.length;K+=1){let le=kp(q,k,K);P[K]?(P[K].p(le,O),d(P[K],1)):(P[K]=Sp(le),P[K].c(),d(P[K],1),P[K].m(l,r))}for(ce(),K=k.length;K<P.length;K+=1)x(K);fe()}q[36]?W?(W.p(q,O),O[1]&32&&d(W,1)):(W=Ip(q),W.c(),d(W,1),W.m(l,a)):W&&(ce(),m(W,1,1,()=>{W=null}),fe()),q[37]?z?(z.p(q,O),O[1]&64&&d(z,1)):(z=Tp(q),z.c(),d(z,1),z.m(l,s)):z&&(ce(),m(z,1,1,()=>{z=null}),fe()),q[57]?se?(se.p(q,O),O[1]&67108864&&d(se,1)):(se=Pp(q),se.c(),d(se,1),se.m(l,u)):se&&(ce(),m(se,1,1,()=>{se=null}),fe()),q[39]?de?(de.p(q,O),O[1]&256&&d(de,1)):(de=Ep(q),de.c(),d(de,1),de.m(l,null)):de&&(ce(),m(de,1,1,()=>{de=null}),fe()),(!F||O[0]&134217736)&&G(l,"hidden",!q[3]&&!q[27]),(!F||O[1]&2097152)&&G(l,"fullscreen",q[52]),q[8]?L?(L.p(q,O),O[0]&256&&d(L,1)):(L=Mp(q),L.c(),d(L,1),L.m(p,g)):L&&(ce(),m(L,1,1,()=>{L=null}),fe()),q[34]?oe?(oe.p(q,O),O[1]&8&&d(oe,1)):(oe=Ap(q),oe.c(),d(oe,1),oe.m(p,y)):oe&&(ce(),m(oe,1,1,()=>{oe=null}),fe()),q[33]?re?(re.p(q,O),O[1]&4&&d(re,1)):(re=Lp(q),re.c(),d(re,1),re.m(p,h)):re&&(ce(),m(re,1,1,()=>{re=null}),fe()),q[8]?X?(X.p(q,O),O[0]&256&&d(X,1)):(X=Vp(q),X.c(),d(X,1),X.m(p,null)):X&&(ce(),m(X,1,1,()=>{X=null}),fe()),(!F||O[0]&536870920)&&G(p,"hidden",!q[3]||q[29]),q[97]&&!q[29]?Te?(Te.p(q,O),O[0]&536870912&&d(Te,1)):(Te=Rp(q),Te.c(),d(Te,1),Te.m(w.parentNode,w)):Te&&(ce(),m(Te,1,1,()=>{Te=null}),fe())},i(q){if(!F){d(T);for(let O=0;O<k.length;O+=1)d(P[O]);d(W),d(z),d(se),d(de),d(L),d(oe),d(re),d(X),d(Te),F=!0}},o(q){m(T),P=P.filter(Boolean);for(let O=0;O<P.length;O+=1)m(P[O]);m(W),m(z),m(se),m(de),m(L),m(oe),m(re),m(X),m(Te),F=!1},d(q){q&&(b(e),b(t),b(n),b(o),b(l),b(f),b(p),b(C),b(w)),T&&T.d(),$t(P,q),W&&W.d(),z&&z.d(),se&&se.d(),de&&de.d(),L&&L.d(),oe&&oe.d(),re&&re.d(),X&&X.d(),Te&&Te.d(q)}}}function Cp(i){let e,t,n;function o(r){i[132](r)}let l={muted:i[54],expanded:i[51]&&!i[70]&&i[55],click:i[107]};return i[20].volume!==void 0&&(l.ref=i[20].volume),e=new yc({props:l}),he.push(()=>Fe(e,"ref",o)),{c(){A(e.$$.fragment)},m(r,a){E(e,r,a),n=!0},p(r,a){let s={};a[1]&8388608&&(s.muted=r[54]),a[1]&17825792&&(s.expanded=r[51]&&!r[70]&&r[55]),!t&&a[0]&1048576&&(t=!0,s.ref=r[20].volume,Oe(()=>t=!1)),e.$set(s)},i(r){n||(d(e.$$.fragment,r),n=!0)},o(r){m(e.$$.fragment,r),n=!1},d(r){M(e,r)}}}function Sp(i){let e,t;return e=new fs({props:{iconUrl:i[172],ariaLabel:i[173]??i[176],testId:i[174],onClick:i[175]}}),{c(){A(e.$$.fragment)},m(n,o){E(e,n,o),t=!0},p(n,o){let l={};o[1]&33554432&&(l.iconUrl=n[172]),o[1]&33554432&&(l.ariaLabel=n[173]??n[176]),o[1]&33554432&&(l.testId=n[174]),o[1]&33554432&&(l.onClick=n[175]),e.$set(l)},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){m(e.$$.fragment,n),t=!1},d(n){M(e,n)}}}function Ip(i){let e,t,n;function o(r){i[133](r)}let l={isMobile:!0,click:i[105],state:i[28]};return i[20].chromecast!==void 0&&(l.ref=i[20].chromecast),e=new es({props:l}),he.push(()=>Fe(e,"ref",o)),{c(){A(e.$$.fragment)},m(r,a){E(e,r,a),n=!0},p(r,a){let s={};a[0]&268435456&&(s.state=r[28]),!t&&a[0]&1048576&&(t=!0,s.ref=r[20].chromecast,Oe(()=>t=!1)),e.$set(s)},i(r){n||(d(e.$$.fragment,r),n=!0)},o(r){m(e.$$.fragment,r),n=!1},d(r){M(e,r)}}}function Tp(i){let e,t,n;function o(r){i[134](r)}let l={click:i[106],isPictureInPictureActive:i[26]};return i[20].pip!==void 0&&(l.ref=i[20].pip),e=new yp({props:l}),he.push(()=>Fe(e,"ref",o)),{c(){A(e.$$.fragment)},m(r,a){E(e,r,a),n=!0},p(r,a){let s={};a[0]&67108864&&(s.isPictureInPictureActive=r[26]),!t&&a[0]&1048576&&(t=!0,s.ref=r[20].pip,Oe(()=>t=!1)),e.$set(s)},i(r){n||(d(e.$$.fragment,r),n=!0)},o(r){m(e.$$.fragment,r),n=!1},d(r){M(e,r)}}}function Pp(i){let e,t,n;function o(r){i[135](r)}let l={};return i[22]!==void 0&&(l.ref=i[22]),e=new Yr({props:l}),he.push(()=>Fe(e,"ref",o)),{c(){A(e.$$.fragment)},m(r,a){E(e,r,a),n=!0},p(r,a){let s={};!t&&a[0]&4194304&&(t=!0,s.ref=r[22],Oe(()=>t=!1)),e.$set(s)},i(r){n||(d(e.$$.fragment,r),n=!0)},o(r){m(e.$$.fragment,r),n=!1},d(r){M(e,r)}}}function Ep(i){let e,t,n;function o(r){i[136](r)}let l={click:i[64],targetUrl:i[7],logoClickable:i[6]};return i[20].vkLogo!==void 0&&(l.ref=i[20].vkLogo),e=new $l({props:l}),he.push(()=>Fe(e,"ref",o)),{c(){A(e.$$.fragment)},m(r,a){E(e,r,a),n=!0},p(r,a){let s={};a[0]&128&&(s.targetUrl=r[7]),a[0]&64&&(s.logoClickable=r[6]),!t&&a[0]&1048576&&(t=!0,s.ref=r[20].vkLogo,Oe(()=>t=!1)),e.$set(s)},i(r){n||(d(e.$$.fragment,r),n=!0)},o(r){m(e.$$.fragment,r),n=!1},d(r){M(e,r)}}}function Mp(i){let e,t,n;function o(r){i[137](r)}let l={click:i[13],type:"prev",disabled:!i[10],isMobile:!0};return i[20].prevButton!==void 0&&(l.ref=i[20].prevButton),e=new Mr({props:l}),he.push(()=>Fe(e,"ref",o)),{c(){A(e.$$.fragment)},m(r,a){E(e,r,a),n=!0},p(r,a){let s={};a[0]&8192&&(s.click=r[13]),a[0]&1024&&(s.disabled=!r[10]),!t&&a[0]&1048576&&(t=!0,s.ref=r[20].prevButton,Oe(()=>t=!1)),e.$set(s)},i(r){n||(d(e.$$.fragment,r),n=!0)},o(r){m(e.$$.fragment,r),n=!1},d(r){M(e,r)}}}function Ap(i){let e,t,n;function o(r){i[138](r)}let l={disabled:i[49],click:i[63],isMobile:!0,isPlaying:i[31]};return i[20].playButton!==void 0&&(l.ref=i[20].playButton),e=new Qr({props:l}),he.push(()=>Fe(e,"ref",o)),{c(){A(e.$$.fragment)},m(r,a){E(e,r,a),n=!0},p(r,a){let s={};a[1]&262144&&(s.disabled=r[49]),a[1]&1&&(s.isPlaying=r[31]),!t&&a[0]&1048576&&(t=!0,s.ref=r[20].playButton,Oe(()=>t=!1)),e.$set(s)},i(r){n||(d(e.$$.fragment,r),n=!0)},o(r){m(e.$$.fragment,r),n=!1},d(r){M(e,r)}}}function Lp(i){let e,t,n;function o(r){i[139](r)}let l={disabled:i[48],click:i[108],isMobile:!0};return i[20].replayButton!==void 0&&(l.ref=i[20].replayButton),e=new Zr({props:l}),he.push(()=>Fe(e,"ref",o)),{c(){A(e.$$.fragment)},m(r,a){E(e,r,a),n=!0},p(r,a){let s={};a[1]&131072&&(s.disabled=r[48]),!t&&a[0]&1048576&&(t=!0,s.ref=r[20].replayButton,Oe(()=>t=!1)),e.$set(s)},i(r){n||(d(e.$$.fragment,r),n=!0)},o(r){m(e.$$.fragment,r),n=!1},d(r){M(e,r)}}}function Vp(i){let e,t,n;function o(r){i[140](r)}let l={click:i[12],type:"next",disabled:!i[9],isMobile:!0};return i[20].nextButton!==void 0&&(l.ref=i[20].nextButton),e=new Mr({props:l}),he.push(()=>Fe(e,"ref",o)),{c(){A(e.$$.fragment)},m(r,a){E(e,r,a),n=!0},p(r,a){let s={};a[0]&4096&&(s.click=r[12]),a[0]&512&&(s.disabled=!r[9]),!t&&a[0]&1048576&&(t=!0,s.ref=r[20].nextButton,Oe(()=>t=!1)),e.$set(s)},i(r){n||(d(e.$$.fragment,r),n=!0)},o(r){m(e.$$.fragment,r),n=!1},d(r){M(e,r)}}}function Rp(i){let e,t,n,o,l=i[101]&&q5(i),r=i[99]&&H5(i),a=i[100]&&z5(i);return{c(){l&&l.c(),e=H(),r&&r.c(),t=H(),a&&a.c(),n=$e()},m(s,u){l&&l.m(s,u),v(s,e,u),r&&r.m(s,u),v(s,t,u),a&&a.m(s,u),v(s,n,u),o=!0},p(s,u){s[101]&&l.p(s,u),s[99]&&r.p(s,u),s[100]&&a.p(s,u)},i(s){o||(d(l),d(r),d(a),o=!0)},o(s){m(l),m(r),m(a),o=!1},d(s){s&&(b(e),b(t),b(n)),l&&l.d(s),r&&r.d(s),a&&a.d(s)}}}function q5(i){let e,t,n,o,l,r;function a(u){i[141](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 cs({props:s}),he.push(()=>Fe(t,"ref",a)),{c(){e=I("div"),A(t.$$.fragment),c(e,"class","wrapper-middle-left svelte-17qsgob"),G(e,"fullscreen",i[52]),G(e,"hidden",!i[3])},m(u,f){v(u,e,f),E(t,e,null),o=!0,l||(r=Pe(e,"click",i[109]),l=!0)},p(u,f){let p={};f[0]&8&&(p.hidden=!u[3]),f[1]&65536&&(p.disabled=u[47]),f[0]&262144&&(p.click=u[18]),!n&&f[0]&1048576&&(n=!0,p.ref=u[20].playPrevChapterButton,Oe(()=>n=!1)),t.$set(p),(!o||f[1]&2097152)&&G(e,"fullscreen",u[52]),(!o||f[0]&8)&&G(e,"hidden",!u[3])},i(u){o||(d(t.$$.fragment,u),o=!0)},o(u){m(t.$$.fragment,u),o=!1},d(u){u&&b(e),M(t),l=!1,r()}}}function H5(i){let e,t,n,o,l;function r(s){i[142](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 as({props:a}),he.push(()=>Fe(t,"ref",r)),{c(){e=I("div"),A(t.$$.fragment),c(e,"class",o=df(i[101]?"wrapper-middle-left-second":"wrapper-middle-left")+" svelte-17qsgob"),G(e,"fullscreen",i[52]),G(e,"hidden",!i[3]&&!i[58])},m(s,u){v(s,e,u),E(t,e,null),l=!0},p(s,u){let f={};u[0]&8|u[1]&134217728&&(f.hidden=!s[3]&&!s[58]),u[1]&524288&&(f.disabled=s[50]),u[0]&131072&&(f.click=s[17]),u[1]&134217728&&(f.graphIsOpened=s[58]),!n&&u[0]&1048576&&(n=!0,f.ref=s[20].interactiveGraphButton,Oe(()=>n=!1)),t.$set(f),(!l||u[1]&2097152)&&G(e,"fullscreen",s[52]),(!l||u[0]&8|u[1]&134217728)&&G(e,"hidden",!s[3]&&!s[58])},i(s){l||(d(t.$$.fragment,s),l=!0)},o(s){m(t.$$.fragment,s),l=!1},d(s){s&&b(e),M(t)}}}function z5(i){let e,t,n,o,l,r;function a(u){i[143](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 ss({props:s}),he.push(()=>Fe(t,"ref",a)),{c(){e=I("div"),A(t.$$.fragment),c(e,"class","wrapper-middle-right svelte-17qsgob"),G(e,"fullscreen",i[52]),G(e,"hidden",!i[3])},m(u,f){v(u,e,f),E(t,e,null),o=!0,l||(r=Pe(e,"click",i[110]),l=!0)},p(u,f){let p={};f[0]&8&&(p.hidden=!u[3]),f[1]&32768&&(p.disabled=u[46]),f[0]&65536&&(p.click=u[16]),!n&&f[0]&1048576&&(n=!0,p.ref=u[20].seekToInteractiveButton,Oe(()=>n=!1)),t.$set(p),(!o||f[1]&2097152)&&G(e,"fullscreen",u[52]),(!o||f[0]&8)&&G(e,"hidden",!u[3])},i(u){o||(d(t.$$.fragment,u),o=!0)},o(u){m(t.$$.fragment,u),o=!1},d(u){u&&b(e),M(t),l=!1,r()}}}function Bp(i){let e,t,n,o,l,r=i[53]&&Dp(i),a=i[32]&&Np(i);return o=new os({props:{position:i[59],duration:i[60]}}),{c(){r&&r.c(),e=H(),a&&a.c(),t=H(),n=I("div"),A(o.$$.fragment),c(n,"class","wrapper-bottom ads-timeline-mobile svelte-17qsgob"),G(n,"fullscreen",i[52])},m(s,u){r&&r.m(s,u),v(s,e,u),a&&a.m(s,u),v(s,t,u),v(s,n,u),E(o,n,null),l=!0},p(s,u){s[53]?r?(r.p(s,u),u[1]&4194304&&d(r,1)):(r=Dp(s),r.c(),d(r,1),r.m(e.parentNode,e)):r&&(ce(),m(r,1,1,()=>{r=null}),fe()),s[32]?a?(a.p(s,u),u[1]&2&&d(a,1)):(a=Np(s),a.c(),d(a,1),a.m(t.parentNode,t)):a&&(ce(),m(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),(!l||u[1]&2097152)&&G(n,"fullscreen",s[52])},i(s){l||(d(r),d(a),d(o.$$.fragment,s),l=!0)},o(s){m(r),m(a),m(o.$$.fragment,s),l=!1},d(s){s&&(b(e),b(t),b(n)),r&&r.d(s),a&&a.d(s),M(o)}}}function Dp(i){let e,t,n,o;function l(a){i[144](a)}let r={muted:i[54],expanded:!1,click:i[107]};return i[20].volume!==void 0&&(r.ref=i[20].volume),t=new yc({props:r}),he.push(()=>Fe(t,"ref",l)),{c(){e=I("div"),A(t.$$.fragment),c(e,"class","wrapper-top-right svelte-17qsgob"),G(e,"fullscreen",i[52])},m(a,s){v(a,e,s),E(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)&&G(e,"fullscreen",a[52])},i(a){o||(d(t.$$.fragment,a),o=!0)},o(a){m(t.$$.fragment,a),o=!1},d(a){a&&b(e),M(t)}}}function Np(i){let e,t,n,o;function l(a){i[145](a)}let r={disabled:i[49],click:i[63],isMobile:!0,isPlaying:!i[32]};return i[20].playButton!==void 0&&(r.ref=i[20].playButton),t=new Qr({props:r}),he.push(()=>Fe(t,"ref",l)),{c(){e=I("div"),A(t.$$.fragment),c(e,"class","wrapper-middle svelte-17qsgob")},m(a,s){v(a,e,s),E(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){m(t.$$.fragment,a),o=!1},d(a){a&&b(e),M(t)}}}function U5(i){let e,t,n;function o(r){i[146](r)}let l={disabled:i[48],$$slots:{default:[W5]},$$scope:{ctx:i}};return i[20].replayButton!==void 0&&(l.ref=i[20].replayButton),e=new Mt({props:l}),he.push(()=>Fe(e,"ref",o)),{c(){A(e.$$.fragment)},m(r,a){E(e,r,a),n=!0},p(r,a){let s={};a[1]&131072&&(s.disabled=r[48]),a[1]&131072|a[5]&16777216&&(s.$$scope={dirty:a,ctx:r}),!t&&a[0]&1048576&&(t=!0,s.ref=r[20].replayButton,Oe(()=>t=!1)),e.$set(s)},i(r){n||(d(e.$$.fragment,r),n=!0)},o(r){m(e.$$.fragment,r),n=!1},d(r){M(e,r)}}}function W5(i){let e,t;return e=new Zr({props:{disabled:i[48],click:i[96]}}),{c(){A(e.$$.fragment)},m(n,o){E(e,n,o),t=!0},p(n,o){let l={};o[1]&131072&&(l.disabled=n[48]),e.$set(l)},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){m(e.$$.fragment,n),t=!1},d(n){M(e,n)}}}function Op(i){let e,t,n;function o(r){i[147](r)}let l={$$slots:{default:[K5]},$$scope:{ctx:i}};return i[20].liveButton!==void 0&&(l.ref=i[20].liveButton),e=new Mt({props:l}),he.push(()=>Fe(e,"ref",o)),{c(){A(e.$$.fragment)},m(r,a){E(e,r,a),n=!0},p(r,a){let s={};a[0]&524288|a[1]&16384|a[5]&16777216&&(s.$$scope={dirty:a,ctx:r}),!t&&a[0]&1048576&&(t=!0,s.ref=r[20].liveButton,Oe(()=>t=!1)),e.$set(s)},i(r){n||(d(e.$$.fragment,r),n=!0)},o(r){m(e.$$.fragment,r),n=!1},d(r){M(e,r)}}}function K5(i){let e,t;return e=new is({props:{isActiveLive:i[19],isMobile:!0,ariaLabel:i[45]}}),{c(){A(e.$$.fragment)},m(n,o){E(e,n,o),t=!0},p(n,o){let l={};o[0]&524288&&(l.isActiveLive=n[19]),o[1]&16384&&(l.ariaLabel=n[45]),e.$set(l)},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){m(e.$$.fragment,n),t=!1},d(n){M(e,n)}}}function Fp(i){let e,t,n;function o(r){i[148](r)}let l={showDuration:i[35],position:i[4]?i[59]:i[61],duration:i[4]?i[60]:i[62],isMobile:!0};return i[20].time!==void 0&&(l.ref=i[20].time),e=new Yl({props:l}),he.push(()=>Fe(e,"ref",o)),{c(){A(e.$$.fragment)},m(r,a){E(e,r,a),n=!0},p(r,a){let s={};a[1]&16&&(s.showDuration=r[35]),a[0]&16|a[1]&1342177280&&(s.position=r[4]?r[59]:r[61]),a[0]&16|a[1]&536870912|a[2]&1&&(s.duration=r[4]?r[60]:r[62]),!t&&a[0]&1048576&&(t=!0,s.ref=r[20].time,Oe(()=>t=!1)),e.$set(s)},i(r){n||(d(e.$$.fragment,r),n=!0)},o(r){m(e.$$.fragment,r),n=!1},d(r){M(e,r)}}}function qp(i){let e,t,n,o;return n=new ls({props:{position:i[61],duration:i[62],timeCodes:i[84]}}),{c(){e=I("div"),e.textContent="\xB7",t=H(),A(n.$$.fragment),c(e,"aria-hidden","true")},m(l,r){v(l,e,r),v(l,t,r),E(n,l,r),o=!0},p(l,r){let a={};r[1]&1073741824&&(a.position=l[61]),r[2]&1&&(a.duration=l[62]),n.$set(a)},i(l){o||(d(n.$$.fragment,l),o=!0)},o(l){m(n.$$.fragment,l),o=!1},d(l){l&&(b(e),b(t)),M(n,l)}}}function G5(i){let e,t,n=i[43]&&qp(i);return{c(){n&&n.c(),e=$e()},m(o,l){n&&n.m(o,l),v(o,e,l),t=!0},p(o,l){o[43]?n?(n.p(o,l),l[1]&4096&&d(n,1)):(n=qp(o),n.c(),d(n,1),n.m(e.parentNode,e)):n&&(ce(),m(n,1,1,()=>{n=null}),fe())},i(o){t||(d(n),t=!0)},o(o){m(n),t=!1},d(o){o&&b(e),n&&n.d(o)}}}function Hp(i){let e,t,n;function o(r){i[151](r)}let l={$$slots:{default:[j5]},$$scope:{ctx:i}};return i[20].settings!==void 0&&(l.ref=i[20].settings),e=new Mt({props:l}),he.push(()=>Fe(e,"ref",o)),{c(){A(e.$$.fragment)},m(r,a){E(e,r,a),n=!0},p(r,a){let s={};a[0]&4194304|a[5]&16777216&&(s.$$scope={dirty:a,ctx:r}),!t&&a[0]&1048576&&(t=!0,s.ref=r[20].settings,Oe(()=>t=!1)),e.$set(s)},i(r){n||(d(e.$$.fragment,r),n=!0)},o(r){m(e.$$.fragment,r),n=!1},d(r){M(e,r)}}}function j5(i){let e,t,n;function o(r){i[150](r)}let l={};return i[22]!==void 0&&(l.ref=i[22]),e=new Yr({props:l}),he.push(()=>Fe(e,"ref",o)),{c(){A(e.$$.fragment)},m(r,a){E(e,r,a),n=!0},p(r,a){let s={};!t&&a[0]&4194304&&(t=!0,s.ref=r[22],Oe(()=>t=!1)),e.$set(s)},i(r){n||(d(e.$$.fragment,r),n=!0)},o(r){m(e.$$.fragment,r),n=!1},d(r){M(e,r)}}}function zp(i){let e,t,n;function o(r){i[152](r)}let l={$$slots:{default:[x5]},$$scope:{ctx:i}};return i[20].fullscreen!==void 0&&(l.ref=i[20].fullscreen),e=new Mt({props:l}),he.push(()=>Fe(e,"ref",o)),{c(){A(e.$$.fragment)},m(r,a){E(e,r,a),n=!0},p(r,a){let s={};a[0]&16384|a[1]&2097152|a[5]&16777216&&(s.$$scope={dirty:a,ctx:r}),!t&&a[0]&1048576&&(t=!0,s.ref=r[20].fullscreen,Oe(()=>t=!1)),e.$set(s)},i(r){n||(d(e.$$.fragment,r),n=!0)},o(r){m(e.$$.fragment,r),n=!1},d(r){M(e,r)}}}function x5(i){let e,t;return e=new Xl({props:{click:i[14],isFullscreen:i[52]}}),{c(){A(e.$$.fragment)},m(n,o){E(e,n,o),t=!0},p(n,o){let l={};o[0]&16384&&(l.click=n[14]),o[1]&2097152&&(l.isFullscreen=n[52]),e.$set(l)},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){m(e.$$.fragment,n),t=!1},d(n){M(e,n)}}}function Up(i){let e,t,n,o;function l(a){i[156](a)}let r={supportLink:i[11],returnFocus:i[15]};return i[21]!==void 0&&(r.ref=i[21]),t=new xl({props:r}),he.push(()=>Fe(t,"ref",l)),{c(){e=I("div"),A(t.$$.fragment),c(e,"class","settings-mobile svelte-17qsgob")},m(a,s){v(a,e,s),E(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){m(t.$$.fragment,a),o=!1},d(a){a&&b(e),M(t)}}}function Y5(i){let e,t,n;function o(r){i[157](r)}let l={};return i[20].interactiveTimeIndicator!==void 0&&(l.ref=i[20].interactiveTimeIndicator),e=new vs({props:l}),he.push(()=>Fe(e,"ref",o)),{c(){A(e.$$.fragment)},m(r,a){E(e,r,a),n=!0},p(r,a){let s={};!t&&a[0]&1048576&&(t=!0,s.ref=r[20].interactiveTimeIndicator,Oe(()=>t=!1)),e.$set(s)},i(r){n||(d(e.$$.fragment,r),n=!0)},o(r){m(e.$$.fragment,r),n=!1},d(r){M(e,r)}}}function Q5(i){let e,t,n,o,l,r,a,s,u,f,p,g,y,h,C,w,F,T,k,P=!i[4]&&wp(i),x=i[4]&&i[30]!=="inactive"&&Bp(i),W=i[97]&&U5(i),z=!i[4]&&i[25]&&Op(i),se=i[41]&&Fp(i);function de(K){i[149](K)}let L={className:"w-max",disabled:!i[43],$$slots:{default:[G5]},$$scope:{ctx:i}};i[20].episodes!==void 0&&(L.ref=i[20].episodes),u=new Mt({props:L}),he.push(()=>Fe(u,"ref",de));let oe=i[38]&&Hp(i),re=i[40]&&zp(i);function X(K){i[154](K)}let Te={isAds:i[4],canRewindLive:i[5],isRewindableLive:i[24]};i[20].timeline!==void 0&&(Te.ref=i[20].timeline),h=new rs({props:Te}),he.push(()=>Fe(h,"ref",X));let q=i[23]&&Up(i),O=i[102]&&Y5(i);return{c(){P&&P.c(),e=H(),x&&x.c(),t=H(),n=I("div"),o=I("div"),l=I("div"),W&&W.c(),r=H(),z&&z.c(),a=H(),se&&se.c(),s=H(),A(u.$$.fragment),p=H(),oe&&oe.c(),g=H(),re&&re.c(),y=H(),A(h.$$.fragment),w=H(),q&&q.c(),F=H(),O&&O.c(),T=$e(),c(l,"class","controls svelte-17qsgob"),G(l,"mobile",!0),c(o,"class","controls-wrapper svelte-17qsgob"),G(o,"fullscreen",i[52]),c(n,"class","wrapper-bottom svelte-17qsgob"),G(n,"hidden",i[1]),G(n,"controls-hidden",!i[3]),G(n,"no-smooth",i[2]),G(n,"mobile",!0)},m(K,le){P&&P.m(K,le),v(K,e,le),x&&x.m(K,le),v(K,t,le),v(K,n,le),_(n,o),_(o,l),W&&W.m(l,null),_(l,r),z&&z.m(l,null),_(l,a),se&&se.m(l,null),_(l,s),E(u,l,null),_(l,p),oe&&oe.m(l,null),_(l,g),re&&re.m(l,null),i[153](l),_(o,y),E(h,o,null),i[155](n),v(K,w,le),q&&q.m(K,le),v(K,F,le),O&&O.m(K,le),v(K,T,le),k=!0},p(K,le){K[4]?P&&(ce(),m(P,1,1,()=>{P=null}),fe()):P?(P.p(K,le),le[0]&16&&d(P,1)):(P=wp(K),P.c(),d(P,1),P.m(e.parentNode,e)),K[4]&&K[30]!=="inactive"?x?(x.p(K,le),le[0]&1073741840&&d(x,1)):(x=Bp(K),x.c(),d(x,1),x.m(t.parentNode,t)):x&&(ce(),m(x,1,1,()=>{x=null}),fe()),K[97]&&W.p(K,le),!K[4]&&K[25]?z?(z.p(K,le),le[0]&33554448&&d(z,1)):(z=Op(K),z.c(),d(z,1),z.m(l,a)):z&&(ce(),m(z,1,1,()=>{z=null}),fe()),K[41]?se?(se.p(K,le),le[1]&1024&&d(se,1)):(se=Fp(K),se.c(),d(se,1),se.m(l,s)):se&&(ce(),m(se,1,1,()=>{se=null}),fe());let ee={};le[1]&4096&&(ee.disabled=!K[43]),le[1]&1073745920|le[2]&1|le[5]&16777216&&(ee.$$scope={dirty:le,ctx:K}),!f&&le[0]&1048576&&(f=!0,ee.ref=K[20].episodes,Oe(()=>f=!1)),u.$set(ee),K[38]?oe?(oe.p(K,le),le[1]&128&&d(oe,1)):(oe=Hp(K),oe.c(),d(oe,1),oe.m(l,g)):oe&&(ce(),m(oe,1,1,()=>{oe=null}),fe()),K[40]?re?(re.p(K,le),le[1]&512&&d(re,1)):(re=zp(K),re.c(),d(re,1),re.m(l,null)):re&&(ce(),m(re,1,1,()=>{re=null}),fe());let ue={};le[0]&16&&(ue.isAds=K[4]),le[0]&32&&(ue.canRewindLive=K[5]),le[0]&16777216&&(ue.isRewindableLive=K[24]),!C&&le[0]&1048576&&(C=!0,ue.ref=K[20].timeline,Oe(()=>C=!1)),h.$set(ue),(!k||le[1]&2097152)&&G(o,"fullscreen",K[52]),(!k||le[0]&2)&&G(n,"hidden",K[1]),(!k||le[0]&8)&&G(n,"controls-hidden",!K[3]),(!k||le[0]&4)&&G(n,"no-smooth",K[2]),K[23]?q?(q.p(K,le),le[0]&8388608&&d(q,1)):(q=Up(K),q.c(),d(q,1),q.m(F.parentNode,F)):q&&(ce(),m(q,1,1,()=>{q=null}),fe()),K[102]&&O.p(K,le)},i(K){k||(d(P),d(x),d(W),d(z),d(se),d(u.$$.fragment,K),d(oe),d(re),d(h.$$.fragment,K),d(q),d(O),k=!0)},o(K){m(P),m(x),m(W),m(z),m(se),m(u.$$.fragment,K),m(oe),m(re),m(h.$$.fragment,K),m(q),m(O),k=!1},d(K){K&&(b(e),b(t),b(n),b(w),b(F),b(T)),P&&P.d(K),x&&x.d(K),W&&W.d(),z&&z.d(),se&&se.d(),M(u),oe&&oe.d(),re&&re.d(),i[153](null),M(h),i[155](null),q&&q.d(K),O&&O.d(K)}}}function Z5(i,e,t){let n,o,l,r,a,s,u,f,p,g,y,h,C,w,F,T,k,P,x,W,z,se,de,L,oe,re,X,Te,q,O,K,le,ee,ue,ze,Re,ke,Ve,{bottomHidden:Qe}=e,{bottomNoSmooth:tt}=e,{showControls:j}=e,{controlsElementRef:ae=void 0}=e,{isAds:Ze=!1}=e,{canRewindLive:_e}=e,{logoClickable:Ue}=e,{logoHidden:st}=e,{logoTargetUrl:je=""}=e,{showNextPrevButtons:qe}=e,{nextButtonActive:Xe}=e,{prevButtonActive:Ye}=e,{isOneVideoPlaylist:Q=!1}=e,{supportLink:Be}=e,{customFullscreenSupported:Ie=!0}=e,{playNextVideo:$}=e,{playPrevVideo:be}=e,{repeatPlaylist:ot}=e,{toggleFullscreen:me}=e,{returnFocus:_t}=e,{seekToInteractive:We}=e,{toggleGraph:ut}=e,{playPrevChapter:Tt}=e,{onDisabledPlayPrevChapterClick:At}=e,{onDisabledSeekToInteractiveClick:Lt}=e,et=nt(),Pt=Mn(),Dt=Bt(),ci=et.actions.internal.toggleMuted,lt=et.actions.internal.togglePlay,yt=et.actions.internal.pause,we=et.callbacks?.onAudioDoesNotExistHint,bt=et.callbacks?.onAudioDisabledHint,Et=et.playerPhase;N(i,Et,te=>t(128,se=te));let jt=et.state.duration$;N(i,jt,te=>t(62,Ve=te));let vt=et.state.positionWithScrubbing$;N(i,vt,te=>t(61,ke=te));let Nt=et.state.playbackState$;N(i,Nt,te=>t(122,g=te));let qt=et.state.isAudioAvailable$;N(i,qt,te=>t(51,y=te));let xt=et.state.isAudioDisabled,fi=et.state.isEnded$;N(i,fi,te=>t(129,L=te));let di=et.state.isLive$;N(i,di,te=>t(25,T=te));let Ht=et.state.muted$;N(i,Ht,te=>t(54,O=te));let zt=et.state.isActiveLive$;N(i,zt,te=>t(125,w=te));let oi=et.state.isRewindableLive$;N(i,oi,te=>t(24,F=te));let Ot=et.ui.scrubbingInProgress;N(i,Ot,te=>t(29,de=te));let Ei=et.ui.mobileNotReportControlHidden$;N(i,Ei,te=>t(27,W=te));let Ct=et.ui.isPictureInPictureActive$;N(i,Ct,te=>t(26,P=te));let Mi=et.ui.pictureInPictureType$;N(i,Mi,te=>t(126,k=te));let hi=et.ui.mobileUnmuteButtonExpanded;N(i,hi,te=>t(55,K=te));let ri=et.ui.mobileUnmuteButtonVisible;N(i,ri,te=>t(53,q=te));let Ai=et.ui.settingsMenuVisible;N(i,Ai,te=>t(23,p=te));let pe=et.ui.settingsMenuOpenedByKeyboard;N(i,pe,te=>t(121,f=te));let dt=et.ui.controls,Li=et.actions.internal.getVideoEpisodes(),Vi=et.webApi.pictureInPictureApi,qi=et.state.chromecastState$;N(i,qi,te=>t(28,z=te));let $i=et.state.crashed$;N(i,$i,te=>t(57,ee=te));let Yt=dt.disabledControls$;N(i,Yt,te=>t(130,re=te));let bi=et.ui.startedByKeyboard$;N(i,bi,te=>t(120,u=te));let dn=et.ui.currentGridType$;N(i,dn,te=>t(127,x=te));let Ut=et.ads.duration;N(i,Ut,te=>t(60,Re=te));let vi=et.ads.position;N(i,vi,te=>t(59,ze=te));let In=et.ads.playbackState;N(i,In,te=>t(30,oe=te));let mi=et.ui.isFullscreen;N(i,mi,te=>t(52,Te=te));let en=et.ui.playerSize;N(i,en,te=>t(124,C=te));let Hi=et.ui.additionalButtons$;N(i,Hi,te=>t(56,le=te));let mn=et.actions.internal.getVideoElement,pn=et.actions.internal.replayInteractive,ti=et.state.isInteractive,zi=et.state.isInteractiveTime$;N(i,zi,te=>t(123,h=te));let pi=et.state.showInteractiveGraph,li=et.state.showSeekToInteractive,Ui=et.state.showPlayPrevChapter,Vn=et.state.showInteractiveTimeIndicator,Ri=et.state.graphIsOpened$;N(i,Ri,te=>t(58,ue=te));let tn=Pt.seekToInteractiveDisabledTooltip$;N(i,tn,te=>t(131,X=te));let yi,_i,Wi,_n,nn,ki,wi,Ki,Qt,Zt,Kt,ii,Ci,on,rt,Bi,si,Gi,Si,xe={},gn=(0,Wp.debounceFn)(hs,260),ji=()=>et.actions.internal.toggleChromecast();function Di(){ko({isAudioDisabled:xt,audioDisabledHintCallback:bt,isAudioAvailable:y,audioIsNotExistHintCallback:we})&&ci()}async function rn(){Vi?.isActive()?await Vi?.remove():await Vi?.request()}function ln(){!xt&&y&&ri.set(!1),Di()}let Xt=Q?lt:ot,sn="",hn=(te,To)=>{if(!te){t(45,sn=U("tooltip_live"));return}To===Lr.PlaybackState.PAUSED&&t(45,sn=U("tooltip_play"))},xi,gi,an=()=>{s&&At(yi)},bn=()=>{l&&Lt(_i)};function vn(te){i.$$.not_equal(xe.volume,te)&&(xe.volume=te,t(20,xe))}function Rn(te){i.$$.not_equal(xe.chromecast,te)&&(xe.chromecast=te,t(20,xe))}function Ii(te){i.$$.not_equal(xe.pip,te)&&(xe.pip=te,t(20,xe))}function Yi(te){gi=te,t(22,gi)}function Ni(te){i.$$.not_equal(xe.vkLogo,te)&&(xe.vkLogo=te,t(20,xe))}function yn(te){i.$$.not_equal(xe.prevButton,te)&&(xe.prevButton=te,t(20,xe))}function Kn(te){i.$$.not_equal(xe.playButton,te)&&(xe.playButton=te,t(20,xe))}function Qi(te){i.$$.not_equal(xe.replayButton,te)&&(xe.replayButton=te,t(20,xe))}function Jt(te){i.$$.not_equal(xe.nextButton,te)&&(xe.nextButton=te,t(20,xe))}function Bn(te){i.$$.not_equal(xe.playPrevChapterButton,te)&&(xe.playPrevChapterButton=te,t(20,xe))}function Gn(te){i.$$.not_equal(xe.interactiveGraphButton,te)&&(xe.interactiveGraphButton=te,t(20,xe))}function Dn(te){i.$$.not_equal(xe.seekToInteractiveButton,te)&&(xe.seekToInteractiveButton=te,t(20,xe))}function jn(te){i.$$.not_equal(xe.volume,te)&&(xe.volume=te,t(20,xe))}function Nn(te){i.$$.not_equal(xe.playButton,te)&&(xe.playButton=te,t(20,xe))}function un(te){i.$$.not_equal(xe.replayButton,te)&&(xe.replayButton=te,t(20,xe))}function ie(te){i.$$.not_equal(xe.liveButton,te)&&(xe.liveButton=te,t(20,xe))}function kt(te){i.$$.not_equal(xe.time,te)&&(xe.time=te,t(20,xe))}function kn(te){i.$$.not_equal(xe.episodes,te)&&(xe.episodes=te,t(20,xe))}function cn(te){gi=te,t(22,gi)}function xn(te){i.$$.not_equal(xe.settings,te)&&(xe.settings=te,t(20,xe))}function Yn(te){i.$$.not_equal(xe.fullscreen,te)&&(xe.fullscreen=te,t(20,xe))}function Qn(te){he[te?"unshift":"push"](()=>{Gi=te,t(44,Gi)})}function So(te){i.$$.not_equal(xe.timeline,te)&&(xe.timeline=te,t(20,xe))}function Io(te){he[te?"unshift":"push"](()=>{ae=te,t(0,ae)})}function fn(te){xi=te,t(21,xi)}function to(te){i.$$.not_equal(xe.interactiveTimeIndicator,te)&&(xe.interactiveTimeIndicator=te,t(20,xe))}return i.$$set=te=>{"bottomHidden"in te&&t(1,Qe=te.bottomHidden),"bottomNoSmooth"in te&&t(2,tt=te.bottomNoSmooth),"showControls"in te&&t(3,j=te.showControls),"controlsElementRef"in te&&t(0,ae=te.controlsElementRef),"isAds"in te&&t(4,Ze=te.isAds),"canRewindLive"in te&&t(5,_e=te.canRewindLive),"logoClickable"in te&&t(6,Ue=te.logoClickable),"logoHidden"in te&&t(111,st=te.logoHidden),"logoTargetUrl"in te&&t(7,je=te.logoTargetUrl),"showNextPrevButtons"in te&&t(8,qe=te.showNextPrevButtons),"nextButtonActive"in te&&t(9,Xe=te.nextButtonActive),"prevButtonActive"in te&&t(10,Ye=te.prevButtonActive),"isOneVideoPlaylist"in te&&t(112,Q=te.isOneVideoPlaylist),"supportLink"in te&&t(11,Be=te.supportLink),"customFullscreenSupported"in te&&t(113,Ie=te.customFullscreenSupported),"playNextVideo"in te&&t(12,$=te.playNextVideo),"playPrevVideo"in te&&t(13,be=te.playPrevVideo),"repeatPlaylist"in te&&t(114,ot=te.repeatPlaylist),"toggleFullscreen"in te&&t(14,me=te.toggleFullscreen),"returnFocus"in te&&t(15,_t=te.returnFocus),"seekToInteractive"in te&&t(16,We=te.seekToInteractive),"toggleGraph"in te&&t(17,ut=te.toggleGraph),"playPrevChapter"in te&&t(18,Tt=te.playPrevChapter),"onDisabledPlayPrevChapterClick"in te&&t(115,At=te.onDisabledPlayPrevChapterClick),"onDisabledSeekToInteractiveClick"in te&&t(116,Lt=te.onDisabledSeekToInteractiveClick)},i.$$.update=()=>{if(i.$$.dirty[4]&128&&(_i=U(X)),i.$$.dirty[4]&64&&t(119,n=re.has("EPISODE_BUTTON")),i.$$.dirty[4]&64&&t(50,o=re.has("GRAPH_BUTTON")),i.$$.dirty[4]&64&&t(46,l=re.has("SEEK_TO_INTERACTIVE_BUTTON")),i.$$.dirty[4]&64&&t(49,r=re.has("PLAY_BUTTON")),i.$$.dirty[4]&64&&t(48,a=re.has("REPLAY_BUTTON")),i.$$.dirty[4]&64&&t(47,s=re.has("PLAY_PREV_CHAPTER_BUTTON")),i.$$.dirty[3]&536870912&&t(31,Wi=g===Lr.PlaybackState.PLAYING),i.$$.dirty[0]&1073741824&&t(32,_n=oe==="paused"),i.$$.dirty[0]&16|i.$$.dirty[4]&32&&t(33,nn=L&&!Ze&&!ti),i.$$.dirty[0]&16|i.$$.dirty[4]&32&&t(34,ki=!L||Ze),i.$$.dirty[4]&1&&t(117,wi=C.width>300),i.$$.dirty[4]&1&&t(35,Ki=C.width>400),i.$$.dirty[0]&536870912&&t(118,Qt=de),i.$$.dirty[0]&469762048|i.$$.dirty[4]&4&&t(36,Zt=z!==Lr.ChromecastState.NOT_AVAILABLE&&!(P&&k===1)&&!W&&!ti),i.$$.dirty[0]&402653184|i.$$.dirty[3]&33554432|i.$$.dirty[4]&20){let te=se==="LiveWaitingStart";t(37,Kt=!!Vi&&z!==Lr.ChromecastState.CONNECTED&&!W&&(k===1&&te||!te)&&!Qt&&!ti)}i.$$.dirty[3]&33554432|i.$$.dirty[4]&8&&t(38,ii=!Qt&&Ji(x,"s")),i.$$.dirty[3]&262144|i.$$.dirty[4]&1&&t(39,Ci=!st&&C.width>350),i.$$.dirty[0]&67108864|i.$$.dirty[3]&34603008|i.$$.dirty[4]&4&&t(40,on=Dt.features.fullscreen&&!(P&&k===1)&&(ti?Ie:!0)&&!Qt),i.$$.dirty[0]&33554448|i.$$.dirty[3]&33554432|i.$$.dirty[4]&1&&t(41,rt=(!T||Ze)&&C.width>260&&!Qt&&!(Dt.features.interactiveHideTime&&ti)),i.$$.dirty[0]&8388616&&t(42,Bi=p||j),i.$$.dirty[0]&33554448|i.$$.dirty[3]&117440512&&t(43,si=!Ze&&!T&&!!Li?.length&&wi&&!n&&!Qt),i.$$.dirty[0]&16777216|i.$$.dirty[4]&2&&t(19,Si=!F||w),i.$$.dirty[0]&1048584|i.$$.dirty[3]&1073741824|i.$$.dirty[4]&1&&gn(mn(),dt,xe,j),i.$$.dirty[0]&524288|i.$$.dirty[3]&536870912&&hn(Si,g),i.$$.dirty[0]&12582912&&kr(gi,p,pe),i.$$.dirty[0]&10485760|i.$$.dirty[3]&268435456&&Wo(xi,p,f),i.$$.dirty[0]&1048576|i.$$.dirty[3]&134217728&&bs(bi,u,xe.playButton)},yi=U(et.state.playPrevChapterDisabledTooltip),[ae,Qe,tt,j,Ze,_e,Ue,je,qe,Xe,Ye,Be,$,be,me,_t,We,ut,Tt,Si,xe,xi,gi,p,F,T,P,W,z,de,oe,Wi,_n,nn,ki,Ki,Zt,Kt,ii,Ci,on,rt,Bi,si,Gi,sn,l,s,a,r,o,y,Te,q,O,K,le,ee,ue,ze,Re,ke,Ve,lt,yt,Et,jt,vt,Nt,qt,xt,fi,di,Ht,zt,oi,Ot,Ei,Ct,Mi,hi,ri,Ai,pe,Li,qi,$i,Yt,bi,dn,Ut,vi,In,mi,en,Hi,pn,ti,zi,pi,li,Ui,Vn,Ri,tn,ji,rn,ln,Xt,an,bn,st,Q,Ie,ot,At,Lt,wi,Qt,n,u,f,g,h,C,w,k,x,se,L,re,X,vn,Rn,Ii,Yi,Ni,yn,Kn,Qi,Jt,Bn,Gn,Dn,jn,Nn,un,ie,kt,kn,cn,xn,Yn,Qn,So,Io,fn,to]}var Sc=class extends B{constructor(e){super(),D(this,e,Z5,Q5,R,{bottomHidden:1,bottomNoSmooth:2,showControls:3,controlsElementRef:0,isAds:4,canRewindLive:5,logoClickable:6,logoHidden:111,logoTargetUrl:7,showNextPrevButtons:8,nextButtonActive:9,prevButtonActive:10,isOneVideoPlaylist:112,supportLink:11,customFullscreenSupported:113,playNextVideo:12,playPrevVideo:13,repeatPlaylist:114,toggleFullscreen:14,returnFocus:15,seekToInteractive:16,toggleGraph:17,playPrevChapter:18,onDisabledPlayPrevChapterClick:115,onDisabledSeekToInteractiveClick:116},F5,[-1,-1,-1,-1,-1,-1])}},Kp=Sc;function X5(i){let e,t,n;function o(r){i[28](r)}let l={bottomHidden:i[1],bottomNoSmooth:i[2],showControls:i[3],isAds:i[4],canRewindLive:i[5],logoClickable:i[6],logoHidden:i[7],logoTargetUrl:i[8],showNextPrevButtons:i[9],nextButtonActive:i[10],prevButtonActive:i[11],isOneVideoPlaylist:i[12],supportLink:i[13],customFullscreenSupported:i[14],playNextVideo:i[15],playPrevVideo:i[16],repeatPlaylist:i[17],toggleFullscreen:i[18],returnFocus:i[19],seekToInteractive:i[20],toggleGraph:i[21],playPrevChapter:i[22]};return i[0]!==void 0&&(l.controlsElementRef=i[0]),e=new mp({props:l}),he.push(()=>Fe(e,"controlsElementRef",o)),{c(){A(e.$$.fragment)},m(r,a){E(e,r,a),n=!0},p(r,a){let s={};a&2&&(s.bottomHidden=r[1]),a&4&&(s.bottomNoSmooth=r[2]),a&8&&(s.showControls=r[3]),a&16&&(s.isAds=r[4]),a&32&&(s.canRewindLive=r[5]),a&64&&(s.logoClickable=r[6]),a&128&&(s.logoHidden=r[7]),a&256&&(s.logoTargetUrl=r[8]),a&512&&(s.showNextPrevButtons=r[9]),a&1024&&(s.nextButtonActive=r[10]),a&2048&&(s.prevButtonActive=r[11]),a&4096&&(s.isOneVideoPlaylist=r[12]),a&8192&&(s.supportLink=r[13]),a&16384&&(s.customFullscreenSupported=r[14]),a&32768&&(s.playNextVideo=r[15]),a&65536&&(s.playPrevVideo=r[16]),a&131072&&(s.repeatPlaylist=r[17]),a&262144&&(s.toggleFullscreen=r[18]),a&524288&&(s.returnFocus=r[19]),a&1048576&&(s.seekToInteractive=r[20]),a&2097152&&(s.toggleGraph=r[21]),a&4194304&&(s.playPrevChapter=r[22]),!t&&a&1&&(t=!0,s.controlsElementRef=r[0],Oe(()=>t=!1)),e.$set(s)},i(r){n||(d(e.$$.fragment,r),n=!0)},o(r){m(e.$$.fragment,r),n=!1},d(r){M(e,r)}}}function J5(i){let e,t,n;function o(r){i[27](r)}let l={bottomHidden:i[1],bottomNoSmooth:i[2],showControls:i[3],isAds:i[4],canRewindLive:i[5],logoClickable:i[6],logoHidden:i[7],logoTargetUrl:i[8],showNextPrevButtons:i[9],nextButtonActive:i[10],prevButtonActive:i[11],isOneVideoPlaylist:i[12],supportLink:i[13],customFullscreenSupported:i[14],playNextVideo:i[15],playPrevVideo:i[16],repeatPlaylist:i[17],toggleFullscreen:i[18],returnFocus:i[19],seekToInteractive:i[20],toggleGraph:i[21],playPrevChapter:i[22],onDisabledPlayPrevChapterClick:i[23],onDisabledSeekToInteractiveClick:i[24]};return i[0]!==void 0&&(l.controlsElementRef=i[0]),e=new Kp({props:l}),he.push(()=>Fe(e,"controlsElementRef",o)),{c(){A(e.$$.fragment)},m(r,a){E(e,r,a),n=!0},p(r,a){let s={};a&2&&(s.bottomHidden=r[1]),a&4&&(s.bottomNoSmooth=r[2]),a&8&&(s.showControls=r[3]),a&16&&(s.isAds=r[4]),a&32&&(s.canRewindLive=r[5]),a&64&&(s.logoClickable=r[6]),a&128&&(s.logoHidden=r[7]),a&256&&(s.logoTargetUrl=r[8]),a&512&&(s.showNextPrevButtons=r[9]),a&1024&&(s.nextButtonActive=r[10]),a&2048&&(s.prevButtonActive=r[11]),a&4096&&(s.isOneVideoPlaylist=r[12]),a&8192&&(s.supportLink=r[13]),a&16384&&(s.customFullscreenSupported=r[14]),a&32768&&(s.playNextVideo=r[15]),a&65536&&(s.playPrevVideo=r[16]),a&131072&&(s.repeatPlaylist=r[17]),a&262144&&(s.toggleFullscreen=r[18]),a&524288&&(s.returnFocus=r[19]),a&1048576&&(s.seekToInteractive=r[20]),a&2097152&&(s.toggleGraph=r[21]),a&4194304&&(s.playPrevChapter=r[22]),a&8388608&&(s.onDisabledPlayPrevChapterClick=r[23]),a&16777216&&(s.onDisabledSeekToInteractiveClick=r[24]),!t&&a&1&&(t=!0,s.controlsElementRef=r[0],Oe(()=>t=!1)),e.$set(s)},i(r){n||(d(e.$$.fragment,r),n=!0)},o(r){m(e.$$.fragment,r),n=!1},d(r){M(e,r)}}}function $5(i){let e,t,n,o,l=[J5,X5],r=[];function a(s,u){return s[25]?0:1}return e=a(i,-1),t=r[e]=l[e](i),{c(){t.c(),n=$e()},m(s,u){r[e].m(s,u),v(s,n,u),o=!0},p(s,[u]){let f=e;e=a(s,u),e===f?r[e].p(s,u):(ce(),m(r[f],1,1,()=>{r[f]=null}),fe(),t=r[e],t?t.p(s,u):(t=r[e]=l[e](s),t.c()),d(t,1),t.m(n.parentNode,n))},i(s){o||(d(t),o=!0)},o(s){m(t),o=!1},d(s){s&&b(n),r[e].d(s)}}}function e6(i,e,t){let n,{bottomHidden:o}=e,{bottomNoSmooth:l=!1}=e,{showControls:r}=e,{controlsElementRef:a=void 0}=e,{isAds:s=!1}=e,{canRewindLive:u}=e,{logoClickable:f}=e,{logoHidden:p}=e,{logoTargetUrl:g=""}=e,{showNextPrevButtons:y}=e,{nextButtonActive:h}=e,{prevButtonActive:C}=e,{isOneVideoPlaylist:w=!1}=e,{supportLink:F}=e,{customFullscreenSupported:T=!0}=e,{playNextVideo:k}=e,{playPrevVideo:P}=e,{repeatPlaylist:x}=e,{toggleFullscreen:W}=e,{returnFocus:z=ys.noop}=e,{seekToInteractive:se}=e,{toggleGraph:de}=e,{playPrevChapter:L}=e,{onDisabledPlayPrevChapterClick:oe=ys.noop}=e,{onDisabledSeekToInteractiveClick:re=ys.noop}=e,Te=nt().ui.isMobile;N(i,Te,K=>t(25,n=K));function q(K){a=K,t(0,a)}function O(K){a=K,t(0,a)}return i.$$set=K=>{"bottomHidden"in K&&t(1,o=K.bottomHidden),"bottomNoSmooth"in K&&t(2,l=K.bottomNoSmooth),"showControls"in K&&t(3,r=K.showControls),"controlsElementRef"in K&&t(0,a=K.controlsElementRef),"isAds"in K&&t(4,s=K.isAds),"canRewindLive"in K&&t(5,u=K.canRewindLive),"logoClickable"in K&&t(6,f=K.logoClickable),"logoHidden"in K&&t(7,p=K.logoHidden),"logoTargetUrl"in K&&t(8,g=K.logoTargetUrl),"showNextPrevButtons"in K&&t(9,y=K.showNextPrevButtons),"nextButtonActive"in K&&t(10,h=K.nextButtonActive),"prevButtonActive"in K&&t(11,C=K.prevButtonActive),"isOneVideoPlaylist"in K&&t(12,w=K.isOneVideoPlaylist),"supportLink"in K&&t(13,F=K.supportLink),"customFullscreenSupported"in K&&t(14,T=K.customFullscreenSupported),"playNextVideo"in K&&t(15,k=K.playNextVideo),"playPrevVideo"in K&&t(16,P=K.playPrevVideo),"repeatPlaylist"in K&&t(17,x=K.repeatPlaylist),"toggleFullscreen"in K&&t(18,W=K.toggleFullscreen),"returnFocus"in K&&t(19,z=K.returnFocus),"seekToInteractive"in K&&t(20,se=K.seekToInteractive),"toggleGraph"in K&&t(21,de=K.toggleGraph),"playPrevChapter"in K&&t(22,L=K.playPrevChapter),"onDisabledPlayPrevChapterClick"in K&&t(23,oe=K.onDisabledPlayPrevChapterClick),"onDisabledSeekToInteractiveClick"in K&&t(24,re=K.onDisabledSeekToInteractiveClick)},[a,o,l,r,s,u,f,p,g,y,h,C,w,F,T,k,P,x,W,z,se,de,L,oe,re,n,Te,q,O]}var Ic=class extends B{constructor(e){super(),D(this,e,e6,$5,R,{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})}},ks=Ic;function t6(i){let e,t,n,o,l,r,a,s,u,f,p,g,y,h,C=i[2].default,w=Ee(C,i,i[1],null),F=[{xmlns:"http://www.w3.org/2000/svg"},{width:"48"},{height:"51"},{fill:"none"},{"aria-hidden":"true"},{"data-testid":"seek-icon"},{role:"img"},i[0]],T={};for(let k=0;k<F.length;k+=1)T=ne(T,F[k]);return{c(){e=V("svg"),w&&w.c(),t=V("g"),n=V("path"),o=V("path"),l=V("defs"),r=V("filter"),a=V("feFlood"),s=V("feColorMatrix"),u=V("feOffset"),f=V("feGaussianBlur"),p=V("feColorMatrix"),g=V("feBlend"),y=V("feBlend"),c(n,"fill","#fff"),c(n,"d","M15.537 10.534a1.157 1.157 0 0 0 .003 1.96l7.658 4.823c.78.491 1.798-.065 1.798-.981v-3.3c7.265.512 13 6.568 13 13.964 0 7.732-6.268 14-14 14-5.98 0-11.088-3.75-13.093-9.032a1.5 1.5 0 0 0-2.805 1.064C10.531 39.441 16.73 44 23.996 44c9.39 0 17-7.611 17-17 0-9.053-7.076-16.453-16-16.971V6.664c0-.918-1.021-1.473-1.8-.98z"),c(o,"stroke","#000"),c(o,"stroke-opacity",".12"),c(o,"stroke-width",".5"),c(o,"d","M15.404 10.322a1.407 1.407 0 0 0 .003 2.384l7.657 4.823c.944.594 2.182-.076 2.182-1.193v-3.03c7.008.631 12.5 6.522 12.5 13.694 0 7.594-6.156 13.75-13.75 13.75-5.873 0-10.89-3.683-12.86-8.871a1.75 1.75 0 1 0-3.272 1.242c2.469 6.503 8.758 11.129 16.132 11.129 9.527 0 17.25-7.723 17.25-17.25 0-9.107-7.056-16.565-16-17.205V6.664c0-1.118-1.241-1.788-2.184-1.19z"),c(t,"filter","url(#a)"),c(a,"flood-opacity","0"),c(a,"result","BackgroundImageFix"),c(s,"in","SourceAlpha"),c(s,"result","hardAlpha"),c(s,"values","0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0"),c(f,"stdDeviation","2.5"),c(p,"values","0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.16 0"),c(g,"in2","BackgroundImageFix"),c(g,"result","effect1_dropShadow_2260_100684"),c(y,"in","SourceGraphic"),c(y,"in2","effect1_dropShadow_2260_100684"),c(y,"result","shape"),c(r,"id","a"),c(r,"width","43.996"),c(r,"height","49.5"),c(r,"x","2.5"),c(r,"y","0"),c(r,"color-interpolation-filters","sRGB"),c(r,"filterUnits","userSpaceOnUse"),ye(e,T)},m(k,P){v(k,e,P),w&&w.m(e,null),_(e,t),_(t,n),_(t,o),_(e,l),_(l,r),_(r,a),_(r,s),_(r,u),_(r,f),_(r,p),_(r,g),_(r,y),h=!0},p(k,[P]){w&&w.p&&(!h||P&2)&&Ae(w,C,k,k[1],h?Me(C,k[1],P,null):Le(k[1]),null),ye(e,T=De(F,[{xmlns:"http://www.w3.org/2000/svg"},{width:"48"},{height:"51"},{fill:"none"},{"aria-hidden":"true"},{"data-testid":"seek-icon"},{role:"img"},P&1&&k[0]]))},i(k){h||(d(w,k),h=!0)},o(k){m(w,k),h=!1},d(k){k&&b(e),w&&w.d(k)}}}function i6(i,e,t){let{$$slots:n={},$$scope:o}=e;return i.$$set=l=>{t(0,e=ne(ne({},e),ve(l))),"$$scope"in l&&t(1,o=l.$$scope)},e=ve(e),[e,o,n]}var Tc=class extends B{constructor(e){super(),D(this,e,i6,t6,R,{})}},Gp=Tc;function n6(i){let e,t;return e=new Gp({props:{style:i[0]}}),{c(){A(e.$$.fragment)},m(n,o){E(e,n,o),t=!0},p(n,[o]){let l={};o&1&&(l.style=n[0]),e.$set(l)},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){m(e.$$.fragment,n),t=!1},d(n){M(e,n)}}}function o6(i,e,t){let n,{reversed:o=!1}=e;return i.$$set=l=>{"reversed"in l&&t(1,o=l.reversed)},i.$$.update=()=>{i.$$.dirty&2&&t(0,n=o?"transform: scaleX(-1);":void 0)},[n,o]}var Pc=class extends B{constructor(e){super(),D(this,e,o6,n6,R,{reversed:1})}},jp=Pc;function r6(i){let e,t,n,o,l,r,a,s,u,f,p,g,y,h,C,w,F=i[2].default,T=Ee(F,i,i[1],null),k=[{xmlns:"http://www.w3.org/2000/svg"},{width:"48"},{height:"48"},{fill:"none"},{"aria-hidden":"true"},{"data-testid":"subtitles-on-icon"},{role:"img"},i[0]],P={};for(let x=0;x<k.length;x+=1)P=ne(P,k[x]);return{c(){e=V("svg"),T&&T.c(),t=V("g"),n=V("path"),o=V("path"),l=V("defs"),r=V("clipPath"),a=V("path"),s=V("filter"),u=V("feFlood"),f=V("feColorMatrix"),p=V("feOffset"),g=V("feGaussianBlur"),y=V("feColorMatrix"),h=V("feBlend"),C=V("feBlend"),c(n,"fill","#fff"),c(n,"fill-rule","evenodd"),c(n,"d","M28.167 7h-8.334c-2.463 0-4.404 0-5.966.128-1.594.13-2.925.4-4.134 1.016a10.5 10.5 0 0 0-4.589 4.59c-.616 1.208-.886 2.54-1.016 4.133C4 18.429 4 20.37 4 22.833v2.334c0 2.463 0 4.404.128 5.966.13 1.594.4 2.925 1.016 4.134a10.5 10.5 0 0 0 4.59 4.589c1.208.616 2.54.886 4.133 1.016 1.562.128 3.502.128 5.966.128h8.334c2.463 0 4.404 0 5.966-.128 1.594-.13 2.925-.4 4.134-1.016a10.5 10.5 0 0 0 4.589-4.59c.616-1.208.886-2.54 1.016-4.133.128-1.562.128-3.502.128-5.966v-2.334c0-2.463 0-4.404-.128-5.966-.13-1.594-.4-2.925-1.016-4.134a10.5 10.5 0 0 0-4.59-4.589c-1.208-.616-2.54-.886-4.133-1.016C32.571 7 30.63 7 28.167 7M13.5 28a1.5 1.5 0 0 0 0 3h11a1.5 1.5 0 0 0 0-3zM12 22a1.5 1.5 0 0 1 1.5-1.5h4a1.5 1.5 0 0 1 0 3h-4A1.5 1.5 0 0 1 12 22m18.5 6a1.5 1.5 0 0 0 0 3h4a1.5 1.5 0 0 0 0-3zM22 22a1.5 1.5 0 0 1 1.5-1.5h11a1.5 1.5 0 0 1 0 3h-11A1.5 1.5 0 0 1 22 22"),c(n,"clip-rule","evenodd"),c(o,"stroke","#000"),c(o,"stroke-opacity",".12"),c(o,"stroke-width",".5"),c(o,"d","M28.167 6.75h-8.344c-2.455 0-4.405 0-5.977.128-1.609.132-2.976.407-4.226 1.044a10.75 10.75 0 0 0-4.698 4.698c-.637 1.25-.912 2.617-1.044 4.226-.128 1.572-.128 3.522-.128 5.977v2.354c0 2.455 0 4.405.128 5.977.132 1.609.407 2.976 1.044 4.226a10.75 10.75 0 0 0 4.698 4.698c1.25.637 2.617.912 4.226 1.044 1.572.128 3.522.128 5.977.128h8.354c2.455 0 4.404 0 5.977-.128 1.609-.132 2.976-.407 4.226-1.044a10.75 10.75 0 0 0 4.698-4.698c.637-1.25.912-2.617 1.044-4.226.128-1.573.128-3.522.128-5.977v-2.354c0-2.455 0-4.405-.128-5.977-.132-1.609-.407-2.976-1.044-4.226a10.75 10.75 0 0 0-4.698-4.698c-1.25-.637-2.617-.912-4.226-1.044-1.572-.128-3.522-.128-5.977-.128zM12.25 29.5c0-.69.56-1.25 1.25-1.25h11a1.25 1.25 0 1 1 0 2.5h-11c-.69 0-1.25-.56-1.25-1.25Zm0-7.5c0-.69.56-1.25 1.25-1.25h4a1.25 1.25 0 1 1 0 2.5h-4c-.69 0-1.25-.56-1.25-1.25Zm17 7.5c0-.69.56-1.25 1.25-1.25h4a1.25 1.25 0 1 1 0 2.5h-4c-.69 0-1.25-.56-1.25-1.25Zm-7-7.5c0-.69.56-1.25 1.25-1.25h11a1.25 1.25 0 1 1 0 2.5h-11c-.69 0-1.25-.56-1.25-1.25Z"),c(t,"clip-path","url(#c)"),c(t,"filter","url(#a)"),c(a,"fill","#fff"),c(a,"d","M0 0h48v48H0z"),c(r,"id","c"),c(u,"flood-opacity","0"),c(u,"result","BackgroundImageFix"),c(f,"in","SourceAlpha"),c(f,"result","hardAlpha"),c(f,"values","0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0"),c(g,"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(h,"in2","BackgroundImageFix"),c(h,"result","effect1_dropShadow_2260_104204"),c(C,"in","SourceGraphic"),c(C,"in2","effect1_dropShadow_2260_104204"),c(C,"result","shape"),c(s,"id","a"),c(s,"width","51"),c(s,"height","45"),c(s,"x","-1.5"),c(s,"y","1.5"),c(s,"color-interpolation-filters","sRGB"),c(s,"filterUnits","userSpaceOnUse"),ye(e,P)},m(x,W){v(x,e,W),T&&T.m(e,null),_(e,t),_(t,n),_(t,o),_(e,l),_(l,r),_(r,a),_(l,s),_(s,u),_(s,f),_(s,p),_(s,g),_(s,y),_(s,h),_(s,C),w=!0},p(x,[W]){T&&T.p&&(!w||W&2)&&Ae(T,F,x,x[1],w?Me(F,x[1],W,null):Le(x[1]),null),ye(e,P=De(k,[{xmlns:"http://www.w3.org/2000/svg"},{width:"48"},{height:"48"},{fill:"none"},{"aria-hidden":"true"},{"data-testid":"subtitles-on-icon"},{role:"img"},W&1&&x[0]]))},i(x){w||(d(T,x),w=!0)},o(x){m(T,x),w=!1},d(x){x&&b(e),T&&T.d(x)}}}function l6(i,e,t){let{$$slots:n={},$$scope:o}=e;return i.$$set=l=>{t(0,e=ne(ne({},e),ve(l))),"$$scope"in l&&t(1,o=l.$$scope)},e=ve(e),[e,o,n]}var Ec=class extends B{constructor(e){super(),D(this,e,l6,r6,R,{})}},xp=Ec;function s6(i){let e,t,n,o,l,r,a,s,u,f,p,g,y,h,C,w,F,T=i[2].default,k=Ee(T,i,i[1],null),P=[{xmlns:"http://www.w3.org/2000/svg"},{width:"48"},{height:"48"},{fill:"none"},{"aria-hidden":"true"},{"data-testid":"subtitles-off-icon"},{role:"img"},i[0]],x={};for(let W=0;W<P.length;W+=1)x=ne(x,P[W]);return{c(){e=V("svg"),k&&k.c(),t=V("g"),n=V("path"),o=V("path"),l=V("path"),r=V("defs"),a=V("clipPath"),s=V("path"),u=V("filter"),f=V("feFlood"),p=V("feColorMatrix"),g=V("feOffset"),y=V("feGaussianBlur"),h=V("feColorMatrix"),C=V("feBlend"),w=V("feBlend"),c(n,"fill","#fff"),c(n,"fill-rule","evenodd"),c(n,"d","M6.56 4.44a1.5 1.5 0 1 0-2.12 2.12l3.088 3.09a10.5 10.5 0 0 0-2.384 3.083c-.616 1.21-.886 2.54-1.016 4.134C4 18.429 4 20.369 4 22.833v2.334c0 2.463 0 4.404.128 5.966.13 1.594.4 2.925 1.016 4.134a10.5 10.5 0 0 0 4.59 4.589c1.208.616 2.54.886 4.133 1.016 1.562.128 3.502.128 5.966.128h8.334c2.463 0 4.404 0 5.966-.128 1.437-.117 2.66-.348 3.773-.844l3.533 3.533a1.5 1.5 0 0 0 2.122-2.122l-37-37ZM13.5 28a1.5 1.5 0 0 0 0 3h11a1.5 1.5 0 0 0 0-3zM12 22a1.5 1.5 0 0 1 1.5-1.5h4a1.5 1.5 0 0 1 0 3h-4A1.5 1.5 0 0 1 12 22"),c(n,"clip-rule","evenodd"),c(o,"fill","#fff"),c(o,"d","M34.5 23.5h-4.639l12.552 12.551q.237-.381.443-.784c.616-1.21.886-2.54 1.016-4.134.128-1.562.128-3.502.128-5.966v-2.334c0-2.463 0-4.404-.128-5.966-.13-1.594-.4-2.925-1.016-4.134a10.5 10.5 0 0 0-4.59-4.589c-1.208-.616-2.54-.886-4.133-1.016C32.571 7 30.63 7 28.167 7h-8.334c-2.463 0-4.404 0-5.966.128l-.347.03L26.86 20.5h7.64a1.5 1.5 0 0 1 0 3"),c(l,"stroke","#000"),c(l,"stroke-opacity",".12"),c(l,"stroke-width",".5"),c(l,"d","M29.861 23.25h-.603l.427.427 12.55 12.551.223.223.167-.268q.243-.39.453-.803c.637-1.25.912-2.617 1.044-4.226.128-1.573.128-3.522.128-5.977v-2.354c0-2.455 0-4.405-.128-5.977-.132-1.609-.407-2.976-1.044-4.226a10.75 10.75 0 0 0-4.698-4.698c-1.25-.637-2.617-.912-4.226-1.044-1.572-.128-3.522-.128-5.977-.128h-8.354c-2.455 0-4.405 0-5.977.128q-.177.014-.35.032l-.527.051.374.374 13.341 13.342.074.073H34.5a1.25 1.25 0 1 1 0 2.5zM6.737 4.263a1.75 1.75 0 0 0-2.474 2.474l2.903 2.904a10.8 10.8 0 0 0-2.244 2.979c-.637 1.25-.912 2.617-1.044 4.226-.128 1.572-.128 3.522-.128 5.977v2.354c0 2.455 0 4.405.128 5.977.132 1.609.407 2.976 1.044 4.226a10.75 10.75 0 0 0 4.698 4.698c1.25.637 2.617.912 4.226 1.044 1.572.128 3.522.128 5.977.128h8.354c2.455 0 4.404 0 5.977-.128 1.384-.114 2.59-.333 3.696-.797l3.413 3.412a1.75 1.75 0 1 0 2.474-2.474zM12.25 29.5c0-.69.56-1.25 1.25-1.25h11a1.25 1.25 0 1 1 0 2.5h-11c-.69 0-1.25-.56-1.25-1.25Zm0-7.5c0-.69.56-1.25 1.25-1.25h4a1.25 1.25 0 1 1 0 2.5h-4c-.69 0-1.25-.56-1.25-1.25Z"),c(t,"clip-path","url(#c)"),c(t,"filter","url(#a)"),c(s,"fill","#fff"),c(s,"d","M0 0h48v48H0z"),c(a,"id","c"),c(f,"flood-opacity","0"),c(f,"result","BackgroundImageFix"),c(p,"in","SourceAlpha"),c(p,"result","hardAlpha"),c(p,"values","0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0"),c(y,"stdDeviation","2.5"),c(h,"values","0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.16 0"),c(C,"in2","BackgroundImageFix"),c(C,"result","effect1_dropShadow_2260_104293"),c(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"),ye(e,x)},m(W,z){v(W,e,z),k&&k.m(e,null),_(e,t),_(t,n),_(t,o),_(t,l),_(e,r),_(r,a),_(a,s),_(r,u),_(u,f),_(u,p),_(u,g),_(u,y),_(u,h),_(u,C),_(u,w),F=!0},p(W,[z]){k&&k.p&&(!F||z&2)&&Ae(k,T,W,W[1],F?Me(T,W[1],z,null):Le(W[1]),null),ye(e,x=De(P,[{xmlns:"http://www.w3.org/2000/svg"},{width:"48"},{height:"48"},{fill:"none"},{"aria-hidden":"true"},{"data-testid":"subtitles-off-icon"},{role:"img"},z&1&&W[0]]))},i(W){F||(d(k,W),F=!0)},o(W){m(k,W),F=!1},d(W){W&&b(e),k&&k.d(W)}}}function a6(i,e,t){let{$$slots:n={},$$scope:o}=e;return i.$$set=l=>{t(0,e=ne(ne({},e),ve(l))),"$$scope"in l&&t(1,o=l.$$scope)},e=ve(e),[e,o,n]}var Mc=class extends B{constructor(e){super(),D(this,e,a6,s6,R,{})}},Yp=Mc;function u6(i){let e,t;return e=new xp({}),{c(){A(e.$$.fragment)},m(n,o){E(e,n,o),t=!0},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){m(e.$$.fragment,n),t=!1},d(n){M(e,n)}}}function c6(i){let e,t;return e=new Yp({}),{c(){A(e.$$.fragment)},m(n,o){E(e,n,o),t=!0},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){m(e.$$.fragment,n),t=!1},d(n){M(e,n)}}}function f6(i){let e,t,n,o,l=[c6,u6],r=[];function a(s,u){return s[0]?0:1}return e=a(i,-1),t=r[e]=l[e](i),{c(){t.c(),n=$e()},m(s,u){r[e].m(s,u),v(s,n,u),o=!0},p(s,[u]){let f=e;e=a(s,u),e!==f&&(ce(),m(r[f],1,1,()=>{r[f]=null}),fe(),t=r[e],t||(t=r[e]=l[e](s),t.c()),d(t,1),t.m(n.parentNode,n))},i(s){o||(d(t),o=!0)},o(s){m(t),o=!1},d(s){s&&b(n),r[e].d(s)}}}function d6(i,e,t){let{isOff:n=!1}=e;return i.$$set=o=>{"isOff"in o&&t(0,n=o.isOff)},[n]}var Ac=class extends B{constructor(e){super(),D(this,e,d6,f6,R,{isOff:0})}},Lc=Ac;function m6(i){let e,t,n,o,l,r,a,s,u,f,p,g,y,h,C=i[2].default,w=Ee(C,i,i[1],null),F=[{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]],T={};for(let k=0;k<F.length;k+=1)T=ne(T,F[k]);return{c(){e=V("svg"),w&&w.c(),t=V("g"),n=V("path"),o=V("path"),l=V("defs"),r=V("filter"),a=V("feFlood"),s=V("feColorMatrix"),u=V("feOffset"),f=V("feGaussianBlur"),p=V("feColorMatrix"),g=V("feBlend"),y=V("feBlend"),c(n,"fill","#fff"),c(n,"d","M24 22.677v-5.87a1.2 1.2 0 0 0-1.792-1.045L9.51 22.955a1.2 1.2 0 0 0 0 2.088l12.697 7.192a1.2 1.2 0 0 0 1.791-1.044v-5.873l12.21 6.916A1.2 1.2 0 0 0 38 31.19V16.805a1.2 1.2 0 0 0-1.791-1.044z"),c(o,"stroke","#000"),c(o,"stroke-opacity",".12"),c(o,"stroke-width",".5"),c(o,"d","M24.25 16.806v5.442l11.835-6.704a1.45 1.45 0 0 1 2.165 1.261V31.19a1.45 1.45 0 0 1-2.165 1.262L24.25 25.747v5.444a1.45 1.45 0 0 1-2.164 1.262L9.388 25.26a1.45 1.45 0 0 1 0-2.523l12.697-7.192a1.45 1.45 0 0 1 2.164 1.261Z"),c(t,"filter","url(#a)"),c(a,"flood-opacity","0"),c(a,"result","BackgroundImageFix"),c(s,"in","SourceAlpha"),c(s,"result","hardAlpha"),c(s,"values","0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0"),c(f,"stdDeviation","2.5"),c(p,"values","0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.16 0"),c(g,"in2","BackgroundImageFix"),c(g,"result","effect1_dropShadow_2260_106627"),c(y,"in","SourceGraphic"),c(y,"in2","effect1_dropShadow_2260_106627"),c(y,"result","shape"),c(r,"id","a"),c(r,"width","40.098"),c(r,"height","27.785"),c(r,"x","3.402"),c(r,"y","10.105"),c(r,"color-interpolation-filters","sRGB"),c(r,"filterUnits","userSpaceOnUse"),ye(e,T)},m(k,P){v(k,e,P),w&&w.m(e,null),_(e,t),_(t,n),_(t,o),_(e,l),_(l,r),_(r,a),_(r,s),_(r,u),_(r,f),_(r,p),_(r,g),_(r,y),h=!0},p(k,[P]){w&&w.p&&(!h||P&2)&&Ae(w,C,k,k[1],h?Me(C,k[1],P,null):Le(k[1]),null),ye(e,T=De(F,[{xmlns:"http://www.w3.org/2000/svg"},{width:"48"},{height:"48"},{fill:"none"},{"aria-hidden":"true"},{"data-testid":"rate-change-icon"},{role:"img"},P&1&&k[0]]))},i(k){h||(d(w,k),h=!0)},o(k){m(w,k),h=!1},d(k){k&&b(e),w&&w.d(k)}}}function p6(i,e,t){let{$$slots:n={},$$scope:o}=e;return i.$$set=l=>{t(0,e=ne(ne({},e),ve(l))),"$$scope"in l&&t(1,o=l.$$scope)},e=ve(e),[e,o,n]}var Vc=class extends B{constructor(e){super(),D(this,e,p6,m6,R,{})}},Qp=Vc;function _6(i){let e,t;return e=new Qp({props:{style:i[0]}}),{c(){A(e.$$.fragment)},m(n,o){E(e,n,o),t=!0},p(n,[o]){let l={};o&1&&(l.style=n[0]),e.$set(l)},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){m(e.$$.fragment,n),t=!1},d(n){M(e,n)}}}function g6(i,e,t){let n,{reversed:o=!1}=e;return i.$$set=l=>{"reversed"in l&&t(1,o=l.reversed)},i.$$.update=()=>{i.$$.dirty&2&&t(0,n=o?"transform: scaleX(-1);":void 0)},[n,o]}var Rc=class extends B{constructor(e){super(),D(this,e,g6,_6,R,{reversed:1})}},Zp=Rc;function h6(i){let e,t,n,o,l,r,a,s,u,f,p,g,y,h,C=i[2].default,w=Ee(C,i,i[1],null),F=[{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]],T={};for(let k=0;k<F.length;k+=1)T=ne(T,F[k]);return{c(){e=V("svg"),w&&w.c(),t=V("g"),n=V("path"),o=V("path"),l=V("defs"),r=V("filter"),a=V("feFlood"),s=V("feColorMatrix"),u=V("feOffset"),f=V("feGaussianBlur"),p=V("feColorMatrix"),g=V("feBlend"),y=V("feBlend"),c(n,"fill","#fff"),c(n,"d","M14 21.817c.631-.505 1.627-1.054 3.084-1.857l13.009-7.172c2.268-1.25 3.402-1.875 4.332-1.778a2.9 2.9 0 0 1 2.026 1.134c.549.73.549 1.991.549 4.511v14.69c0 2.52 0 3.78-.549 4.51a2.9 2.9 0 0 1-2.026 1.135c-.93.097-2.064-.528-4.332-1.778L17.084 28.04c-1.457-.803-2.453-1.352-3.084-1.857V34.5a1.5 1.5 0 0 1-3 0v-21a1.5 1.5 0 0 1 3 0z"),c(o,"stroke","#000"),c(o,"stroke-opacity",".12"),c(o,"stroke-width",".5"),c(o,"d","m16.964 19.74-.029.016c-1.162.641-2.046 1.129-2.685 1.567V13.5a1.75 1.75 0 1 0-3.5 0v21a1.75 1.75 0 1 0 3.5 0v-7.823c.639.438 1.523.926 2.685 1.567l.029.015 13.008 7.172.012.006c1.124.62 1.983 1.093 2.676 1.398.695.306 1.26.46 1.791.404a3.16 3.16 0 0 0 2.2-1.233c.317-.421.46-.976.53-1.711.069-.733.069-1.688.069-2.936V16.641c0-1.248 0-2.203-.07-2.936-.07-.735-.212-1.29-.529-1.711a3.16 3.16 0 0 0-2.2-1.233c-.53-.055-1.096.098-1.79.404-.694.305-1.553.778-2.677 1.398l-.012.006z"),c(t,"filter","url(#a)"),c(a,"flood-opacity","0"),c(a,"result","BackgroundImageFix"),c(s,"in","SourceAlpha"),c(s,"result","hardAlpha"),c(s,"values","0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0"),c(f,"stdDeviation","2.5"),c(p,"values","0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.16 0"),c(g,"in2","BackgroundImageFix"),c(g,"result","effect1_dropShadow_2340_106922"),c(y,"in","SourceGraphic"),c(y,"in2","effect1_dropShadow_2340_106922"),c(y,"result","shape"),c(r,"id","a"),c(r,"width","37"),c(r,"height","37"),c(r,"x","5.5"),c(r,"y","5.5"),c(r,"color-interpolation-filters","sRGB"),c(r,"filterUnits","userSpaceOnUse"),ye(e,T)},m(k,P){v(k,e,P),w&&w.m(e,null),_(e,t),_(t,n),_(t,o),_(e,l),_(l,r),_(r,a),_(r,s),_(r,u),_(r,f),_(r,p),_(r,g),_(r,y),h=!0},p(k,[P]){w&&w.p&&(!h||P&2)&&Ae(w,C,k,k[1],h?Me(C,k[1],P,null):Le(k[1]),null),ye(e,T=De(F,[{xmlns:"http://www.w3.org/2000/svg"},{width:"48"},{height:"48"},{fill:"none"},{"aria-hidden":"true"},{"data-testid":"episodes-seek-icon"},{role:"img"},P&1&&k[0]]))},i(k){h||(d(w,k),h=!0)},o(k){m(w,k),h=!1},d(k){k&&b(e),w&&w.d(k)}}}function b6(i,e,t){let{$$slots:n={},$$scope:o}=e;return i.$$set=l=>{t(0,e=ne(ne({},e),ve(l))),"$$scope"in l&&t(1,o=l.$$scope)},e=ve(e),[e,o,n]}var Bc=class extends B{constructor(e){super(),D(this,e,b6,h6,R,{})}},Xp=Bc;function v6(i){let e,t;return e=new Xp({props:{style:i[0]}}),{c(){A(e.$$.fragment)},m(n,o){E(e,n,o),t=!0},p(n,[o]){let l={};o&1&&(l.style=n[0]),e.$set(l)},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){m(e.$$.fragment,n),t=!1},d(n){M(e,n)}}}function y6(i,e,t){let n,{reversed:o=!1}=e;return i.$$set=l=>{"reversed"in l&&t(1,o=l.reversed)},i.$$.update=()=>{i.$$.dirty&2&&t(0,n=o?"transform: scaleX(-1);":void 0)},[n,o]}var Dc=class extends B{constructor(e){super(),D(this,e,y6,v6,R,{reversed:1})}},Jp=Dc;function k6(i){Ce(i,"svelte-1ad3n06",`.hot-key-helpers-container.svelte-1ad3n06.svelte-1ad3n06{position:absolute;z-index:var(--hot-key-helpers-container-z-index);top:calc(50% - 40px);left:calc(50% - 100px);width:200px;height:120px;display:flex;align-items:center;flex-direction:column;animation:svelte-1ad3n06-fadeIn ease var(--controls-transition-duration);padding-top:14px;box-sizing:border-box}.hot-key-helpers-container.svelte-1ad3n06>div.svelte-1ad3n06{width:48px;height:48px;display:flex;justify-content:center;align-items:center}.hot-key-helpers-container.svelte-1ad3n06 svg[data-testid="volume-off-icon"],.hot-key-helpers-container.svelte-1ad3n06 svg[data-testid="volume-max-icon"]{transform:scale(2)}.hot-key-helpers-container.svelte-1ad3n06 svg[data-testid="replay-icon"],.hot-key-helpers-container.svelte-1ad3n06 svg[data-testid="play-icon"],.hot-key-helpers-container.svelte-1ad3n06 svg[data-testid="pause-icon"]{transform:scale(2.5)}.hot-key-helpers-container--left.svelte-1ad3n06.svelte-1ad3n06{left:calc(25% - 100px)}.hot-key-helpers-container--right.svelte-1ad3n06.svelte-1ad3n06{left:calc(75% - 100px)}.hot-key-helpers-text.svelte-1ad3n06.svelte-1ad3n06{text-align:center;font-feature-settings:'clig' off, 'liga' off;text-shadow:0px 0px 5px rgba(0, 0, 0, 0.16);font-size:15px;font-style:normal;font-weight:600;line-height:20px;letter-spacing:-0.105px;width:100%;max-height:40px;margin-top:4px;display:-webkit-box;text-overflow:ellipsis;white-space:pre-wrap;overflow:hidden;-webkit-line-clamp:2;-webkit-box-orient:vertical}.hidden.svelte-1ad3n06.svelte-1ad3n06{visibility:hidden;animation:svelte-1ad3n06-fadeOut ease var(--controls-transition-duration);width:0;height:0}@keyframes svelte-1ad3n06-fadeIn{0%{opacity:0}100%{opacity:1}}@keyframes svelte-1ad3n06-fadeOut{0%{opacity:1}100%{opacity:0}}`)}function $p(i){let e,t=["BACKWARD_SEEK","FORWARD_SEEK"].includes(i[4]),n,o,l,r,a,s,u=["RATE_DOWN","RATE_UP"].includes(i[4]),f,p=["EPISODE_PREV","EPISODE_NEXT"].includes(i[4]),g,y,h,C,w,F=t&&e0(i),T=i[4]==="PAUSE"&&t0(i),k=i[4]==="PLAY"&&i0(i),P=i[4]==="REPLAY"&&n0(i),x=i[4]==="SUBTITLES_OFF"&&o0(i),W=i[4]==="SUBTITLES_ON"&&r0(i),z=u&&l0(i),se=p&&s0(i),de=i[4]==="MUTE"&&a0(i),L=i[4]==="VOLUME"&&u0(i),oe=i[5]&&c0(i);return{c(){e=I("div"),F&&F.c(),n=H(),T&&T.c(),o=H(),k&&k.c(),l=H(),P&&P.c(),r=H(),x&&x.c(),a=H(),W&&W.c(),s=H(),z&&z.c(),f=H(),se&&se.c(),g=H(),de&&de.c(),y=H(),L&&L.c(),h=H(),oe&&oe.c(),C=$e(),c(e,"class","svelte-1ad3n06")},m(re,X){v(re,e,X),F&&F.m(e,null),_(e,n),T&&T.m(e,null),_(e,o),k&&k.m(e,null),_(e,l),P&&P.m(e,null),_(e,r),x&&x.m(e,null),_(e,a),W&&W.m(e,null),_(e,s),z&&z.m(e,null),_(e,f),se&&se.m(e,null),_(e,g),de&&de.m(e,null),_(e,y),L&&L.m(e,null),v(re,h,X),oe&&oe.m(re,X),v(re,C,X),w=!0},p(re,X){X&16&&(t=["BACKWARD_SEEK","FORWARD_SEEK"].includes(re[4])),t?F?(F.p(re,X),X&16&&d(F,1)):(F=e0(re),F.c(),d(F,1),F.m(e,n)):F&&(ce(),m(F,1,1,()=>{F=null}),fe()),re[4]==="PAUSE"?T?X&16&&d(T,1):(T=t0(re),T.c(),d(T,1),T.m(e,o)):T&&(ce(),m(T,1,1,()=>{T=null}),fe()),re[4]==="PLAY"?k?X&16&&d(k,1):(k=i0(re),k.c(),d(k,1),k.m(e,l)):k&&(ce(),m(k,1,1,()=>{k=null}),fe()),re[4]==="REPLAY"?P?X&16&&d(P,1):(P=n0(re),P.c(),d(P,1),P.m(e,r)):P&&(ce(),m(P,1,1,()=>{P=null}),fe()),re[4]==="SUBTITLES_OFF"?x?X&16&&d(x,1):(x=o0(re),x.c(),d(x,1),x.m(e,a)):x&&(ce(),m(x,1,1,()=>{x=null}),fe()),re[4]==="SUBTITLES_ON"?W?X&16&&d(W,1):(W=r0(re),W.c(),d(W,1),W.m(e,s)):W&&(ce(),m(W,1,1,()=>{W=null}),fe()),X&16&&(u=["RATE_DOWN","RATE_UP"].includes(re[4])),u?z?(z.p(re,X),X&16&&d(z,1)):(z=l0(re),z.c(),d(z,1),z.m(e,f)):z&&(ce(),m(z,1,1,()=>{z=null}),fe()),X&16&&(p=["EPISODE_PREV","EPISODE_NEXT"].includes(re[4])),p?se?(se.p(re,X),X&16&&d(se,1)):(se=s0(re),se.c(),d(se,1),se.m(e,g)):se&&(ce(),m(se,1,1,()=>{se=null}),fe()),re[4]==="MUTE"?de?X&16&&d(de,1):(de=a0(re),de.c(),d(de,1),de.m(e,y)):de&&(ce(),m(de,1,1,()=>{de=null}),fe()),re[4]==="VOLUME"?L?X&16&&d(L,1):(L=u0(re),L.c(),d(L,1),L.m(e,null)):L&&(ce(),m(L,1,1,()=>{L=null}),fe()),re[5]?oe?oe.p(re,X):(oe=c0(re),oe.c(),oe.m(C.parentNode,C)):oe&&(oe.d(1),oe=null)},i(re){w||(d(F),d(T),d(k),d(P),d(x),d(W),d(z),d(se),d(de),d(L),w=!0)},o(re){m(F),m(T),m(k),m(P),m(x),m(W),m(z),m(se),m(de),m(L),w=!1},d(re){re&&(b(e),b(h),b(C)),F&&F.d(),T&&T.d(),k&&k.d(),P&&P.d(),x&&x.d(),W&&W.d(),z&&z.d(),se&&se.d(),de&&de.d(),L&&L.d(),oe&&oe.d(re)}}}function e0(i){let e,t;return e=new jp({props:{reversed:i[4]==="FORWARD_SEEK"}}),{c(){A(e.$$.fragment)},m(n,o){E(e,n,o),t=!0},p(n,o){let l={};o&16&&(l.reversed=n[4]==="FORWARD_SEEK"),e.$set(l)},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){m(e.$$.fragment,n),t=!1},d(n){M(e,n)}}}function t0(i){let e,t;return e=new Jl({}),{c(){A(e.$$.fragment)},m(n,o){E(e,n,o),t=!0},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){m(e.$$.fragment,n),t=!1},d(n){M(e,n)}}}function i0(i){let e,t;return e=new Er({}),{c(){A(e.$$.fragment)},m(n,o){E(e,n,o),t=!0},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){m(e.$$.fragment,n),t=!1},d(n){M(e,n)}}}function n0(i){let e,t;return e=new us({}),{c(){A(e.$$.fragment)},m(n,o){E(e,n,o),t=!0},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){m(e.$$.fragment,n),t=!1},d(n){M(e,n)}}}function o0(i){let e,t;return e=new Lc({props:{isOff:!0}}),{c(){A(e.$$.fragment)},m(n,o){E(e,n,o),t=!0},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){m(e.$$.fragment,n),t=!1},d(n){M(e,n)}}}function r0(i){let e,t;return e=new Lc({}),{c(){A(e.$$.fragment)},m(n,o){E(e,n,o),t=!0},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){m(e.$$.fragment,n),t=!1},d(n){M(e,n)}}}function l0(i){let e,t;return e=new Zp({props:{reversed:i[4]==="RATE_UP"}}),{c(){A(e.$$.fragment)},m(n,o){E(e,n,o),t=!0},p(n,o){let l={};o&16&&(l.reversed=n[4]==="RATE_UP"),e.$set(l)},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){m(e.$$.fragment,n),t=!1},d(n){M(e,n)}}}function s0(i){let e,t;return e=new Jp({props:{reversed:i[4]==="EPISODE_NEXT"}}),{c(){A(e.$$.fragment)},m(n,o){E(e,n,o),t=!0},p(n,o){let l={};o&16&&(l.reversed=n[4]==="EPISODE_NEXT"),e.$set(l)},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){m(e.$$.fragment,n),t=!1},d(n){M(e,n)}}}function a0(i){let e,t;return e=new xo({props:{volume:0}}),{c(){A(e.$$.fragment)},m(n,o){E(e,n,o),t=!0},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){m(e.$$.fragment,n),t=!1},d(n){M(e,n)}}}function u0(i){let e,t;return e=new xo({props:{volume:1}}),{c(){A(e.$$.fragment)},m(n,o){E(e,n,o),t=!0},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){m(e.$$.fragment,n),t=!1},d(n){M(e,n)}}}function c0(i){let e,t;return{c(){e=I("span"),t=Ne(i[5]),c(e,"class","hot-key-helpers-text svelte-1ad3n06")},m(n,o){v(n,e,o),_(e,t)},p(n,o){o&32&&Ge(t,n[5])},d(n){n&&b(e)}}}function w6(i){let e,t,n=!i[1]&&i[4]&&$p(i);return{c(){e=I("div"),n&&n.c(),c(e,"class","hot-key-helpers-container svelte-1ad3n06"),G(e,"hidden",i[1]),G(e,"hot-key-helpers-container--left",i[2]),G(e,"hot-key-helpers-container--right",i[3])},m(o,l){v(o,e,l),n&&n.m(e,null),t=!0},p(o,[l]){!o[1]&&o[4]?n?(n.p(o,l),l&18&&d(n,1)):(n=$p(o),n.c(),d(n,1),n.m(e,null)):n&&(ce(),m(n,1,1,()=>{n=null}),fe()),(!t||l&2)&&G(e,"hidden",o[1]),(!t||l&4)&&G(e,"hot-key-helpers-container--left",o[2]),(!t||l&8)&&G(e,"hot-key-helpers-container--right",o[3])},i(o){t||(d(n),t=!0)},o(o){m(n),t=!1},d(o){o&&b(e),n&&n.d()}}}function C6(i,e,t){let n,o=ge,l=()=>(o(),o=Ft(r,g=>t(6,n=g)),r);i.$$.on_destroy.push(()=>o());let{data:r}=e;l();let a,s,u,f,p;return i.$$set=g=>{"data"in g&&l(t(0,r=g.data))},i.$$.update=()=>{i.$$.dirty&64&&(t(1,a=!n),t(2,s=n?.type==="BACKWARD_SEEK"),t(3,u=n?.type==="FORWARD_SEEK"),t(4,f=n?.type),n?.t?t(5,p=U(n.t.key,{value:n.t.value||""})):t(5,p=n?.text))},[r,a,s,u,f,p,n]}var Nc=class extends B{constructor(e){super(),D(this,e,C6,w6,R,{data:0},k6)}},f0=Nc;function S6(i){Ce(i,"svelte-1yzc86r",".immersive-controls.svelte-1yzc86r{position:absolute;display:flex;flex-direction:row;top:10px;left:10px;width:56px;height:56px;background-color:rgba(0, 0, 0, .56);border-radius:8px;transition-property:top, left;transition-duration:var(--controls-transition-duration);transition-timing-function:var(--controls-transition-fn)}.immersive-controls.m-shifted.svelte-1yzc86r{top:50px;left:20px}.button-block.svelte-1yzc86r{width:40px;height:40px;margin:auto auto;transform:rotate(45deg)}.button-row.svelte-1yzc86r{display:flex;flex-direction:row;position:relative}.button.svelte-1yzc86r{width:20px;height:20px;text-align:center;cursor:pointer}.button.svelte-1yzc86r svg{opacity:0.7;transition:opacity linear 0.2s}.button.button-up.svelte-1yzc86r svg{transform:rotate(-45deg) translate(-1px, -1px)}.button.button-right.svelte-1yzc86r svg{transform:rotate(45deg) translate(1px, -1px)}.button.button-down.svelte-1yzc86r svg{transform:rotate(135deg) translate(1px, -3px)}.button.button-left.svelte-1yzc86r svg{transform:rotate(-135deg) translate(-1px, -3px)}.button.svelte-1yzc86r:hover svg{opacity:1}")}function I6(i){let e,t,n,o,l,r,a,s,u,f,p,g,y,h,C,w,F,T,k;return l=new jo({props:{direction:"up"}}),s=new jo({props:{direction:"up"}}),g=new jo({props:{direction:"up"}}),C=new jo({props:{direction:"up"}}),{c(){e=I("div"),t=I("div"),n=I("div"),o=I("div"),A(l.$$.fragment),r=H(),a=I("div"),A(s.$$.fragment),u=H(),f=I("div"),p=I("div"),A(g.$$.fragment),y=H(),h=I("div"),A(C.$$.fragment),c(o,"class","button button-up svelte-1yzc86r"),c(a,"class","button button-right svelte-1yzc86r"),c(n,"class","button-row svelte-1yzc86r"),c(p,"class","button button-left svelte-1yzc86r"),c(h,"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=U("aria_label_spherical_control")),G(e,"m-shifted",i[0])},m(P,x){v(P,e,x),_(e,t),_(t,n),_(n,o),E(l,o,null),_(n,r),_(n,a),E(s,a,null),_(t,u),_(t,f),_(f,p),E(g,p,null),_(f,y),_(f,h),E(C,h,null),F=!0,T||(k=[Pe(o,"mousedown",i[1]),Pe(o,"mouseup",i[5]),Pe(o,"mouseleave",i[5]),Pe(a,"mousedown",i[3]),Pe(a,"mouseup",i[5]),Pe(a,"mouseleave",i[5]),Pe(p,"mousedown",i[4]),Pe(p,"mouseup",i[5]),Pe(p,"mouseleave",i[5]),Pe(h,"mousedown",i[2]),Pe(h,"mouseup",i[5]),Pe(h,"mouseleave",i[5]),Pe(e,"keydown",i[6]),Pe(e,"keyup",i[7])],T=!0)},p(P,[x]){(!F||x&1)&&G(e,"m-shifted",P[0])},i(P){F||(d(l.$$.fragment,P),d(s.$$.fragment,P),d(g.$$.fragment,P),d(C.$$.fragment,P),F=!0)},o(P){m(l.$$.fragment,P),m(s.$$.fragment,P),m(g.$$.fragment,P),m(C.$$.fragment,P),F=!1},d(P){P&&b(e),M(l),M(s),M(g),M(C),T=!1,at(k)}}}function T6(i,e,t){let{isShifted:n=!1}=e,o=nt(),l=new Set(["ArrowUp","ArrowDown","ArrowLeft","ArrowRight"]),r=()=>{o.actions.internal.startCameraManualRotation(0,1)},a=()=>{o.actions.internal.startCameraManualRotation(0,-1)},s=()=>{o.actions.internal.startCameraManualRotation(1,0)},u=()=>{o.actions.internal.startCameraManualRotation(-1,0)},f=()=>(o.actions.internal.stopCameraManualRotation(),null),p=y=>{if(l.has(y.code))switch(y.preventDefault(),y.stopPropagation(),y.code){case"ArrowUp":r();break;case"ArrowDown":a();break;case"ArrowLeft":u();break;case"ArrowRight":s();break}},g=y=>{l.has(y.code)&&(y.preventDefault(),y.stopPropagation(),f())};return i.$$set=y=>{"isShifted"in y&&t(0,n=y.isShifted)},[n,r,a,s,u,f,p,g]}var Oc=class extends B{constructor(e){super(),D(this,e,T6,I6,R,{isShifted:0},S6)}},ws=Oc;function P6(i){Ce(i,"svelte-ovfyp5",".subtitles-container.svelte-ovfyp5.svelte-ovfyp5{position:absolute;top:0;left:0;width:100%;height:100%;pointer-events:none;transition:transform var(--controls-transition-duration)}.subtitles-container.shifted.svelte-ovfyp5.svelte-ovfyp5{transform:translateY(calc(var(--controls-height) * -1))}.subtitles-caption.svelte-ovfyp5.svelte-ovfyp5{position:absolute;left:4%;right:4%;bottom:4%;display:flex;justify-content:center}.subtitles-caption.mobile.svelte-ovfyp5.svelte-ovfyp5{bottom:8%}.subtitles-container.auto.svelte-ovfyp5 .subtitles-caption.svelte-ovfyp5{left:24%;right:24%}.caption.svelte-ovfyp5.svelte-ovfyp5{display:block;overflow-wrap:normal;padding:4px 8px;border-radius:4px;background:rgba(0, 0, 0, 0.4)}.subtitles-container.auto.svelte-ovfyp5 .caption.svelte-ovfyp5{width:100%}.caption-line.svelte-ovfyp5.svelte-ovfyp5{display:block;text-align:center}.subtitles-container.auto.svelte-ovfyp5 .caption-line.svelte-ovfyp5{text-align:left}.caption-segment.svelte-ovfyp5.svelte-ovfyp5{display:inline-block;line-height:1.2;font-size:13px;color:var(--white);white-space:pre-wrap}")}function d0(i,e,t){let n=i.slice();return n[16]=e[t].value,n}function m0(i,e,t){let n=i.slice();return n[16]=e[t].value,n[17]=e[t].timeAppeared,n}function p0(i){let e,t;function n(r,a){return r[7]&&r[8]?A6:r[5]?M6:E6}let o=n(i,-1),l=o(i);return{c(){e=I("div"),t=I("span"),l.c(),c(t,"class","caption svelte-ovfyp5"),c(e,"class","subtitles-caption svelte-ovfyp5"),G(e,"mobile",i[3])},m(r,a){v(r,e,a),_(e,t),l.m(t,null)},p(r,a){o===(o=n(r,a))&&l?l.p(r,a):(l.d(1),l=o(r),l&&(l.c(),l.m(t,null))),a&8&&G(e,"mobile",r[3])},d(r){r&&b(e),l.d()}}}function E6(i){let e,t=gt(i[1]),n=[];for(let o=0;o<t.length;o+=1)n[o]=_0(d0(i,t,o));return{c(){for(let o=0;o<n.length;o+=1)n[o].c();e=$e()},m(o,l){for(let r=0;r<n.length;r+=1)n[r]&&n[r].m(o,l);v(o,e,l)},p(o,l){if(l&18){t=gt(o[1]);let r;for(r=0;r<t.length;r+=1){let a=d0(o,t,r);n[r]?n[r].p(a,l):(n[r]=_0(a),n[r].c(),n[r].m(e.parentNode,e))}for(;r<n.length;r+=1)n[r].d(1);n.length=t.length}},d(o){o&&b(e),$t(n,o)}}}function M6(i){let e,t,n=gt(i[6]),o=[];for(let l=0;l<n.length;l+=1)o[l]=h0(m0(i,n,l));return{c(){e=I("span"),t=I("span");for(let l=0;l<o.length;l+=1)o[l].c();c(t,"class","caption-segment svelte-ovfyp5"),ni(t,"font-size",i[4]+"px"),c(e,"class","caption-line svelte-ovfyp5")},m(l,r){v(l,e,r),_(e,t);for(let a=0;a<o.length;a+=1)o[a]&&o[a].m(t,null)},p(l,r){if(r&68){n=gt(l[6]);let a;for(a=0;a<n.length;a+=1){let s=m0(l,n,a);o[a]?o[a].p(s,r):(o[a]=h0(s),o[a].c(),o[a].m(t,null))}for(;a<o.length;a+=1)o[a].d(1);o.length=n.length}r&16&&ni(t,"font-size",l[4]+"px")},d(l){l&&b(e),$t(o,l)}}}function A6(i){let e,t,n=U("subtitles_auto_caption")+"",o;return{c(){e=I("span"),t=I("span"),o=Ne(n),c(t,"class","caption-segment svelte-ovfyp5"),ni(t,"font-size",i[4]+"px"),c(e,"class","caption-line svelte-ovfyp5")},m(l,r){v(l,e,r),_(e,t),_(t,o)},p(l,r){r&16&&ni(t,"font-size",l[4]+"px")},d(l){l&&b(e)}}}function _0(i){let e,t,n=i[16]+"",o,l;return{c(){e=I("span"),t=I("span"),o=Ne(n),l=H(),c(t,"class","caption-segment svelte-ovfyp5"),ni(t,"font-size",i[4]+"px"),c(e,"class","caption-line svelte-ovfyp5")},m(r,a){v(r,e,a),_(e,t),_(t,o),_(e,l)},p(r,a){a&2&&n!==(n=r[16]+"")&&Ge(o,n),a&16&&ni(t,"font-size",r[4]+"px")},d(r){r&&b(e)}}}function g0(i){let e=i[16]+"",t;return{c(){t=Ne(e)},m(n,o){v(n,t,o)},p(n,o){o&64&&e!==(e=n[16]+"")&&Ge(t,e)},d(n){n&&b(t)}}}function h0(i){let e,t=(!i[17]||i[17]<=i[2])&&g0(i);return{c(){t&&t.c(),e=$e()},m(n,o){t&&t.m(n,o),v(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&&b(e),t&&t.d(n)}}}function L6(i){let e,t=i[1].length>0&&p0(i);return{c(){e=I("div"),t&&t.c(),c(e,"class","subtitles-container svelte-ovfyp5"),G(e,"shifted",i[0]),G(e,"auto",i[5]&&!i[8])},m(n,o){v(n,e,o),t&&t.m(e,null)},p(n,[o]){n[1].length>0?t?t.p(n,o):(t=p0(n),t.c(),t.m(e,null)):t&&(t.d(1),t=null),o&1&&G(e,"shifted",n[0]),o&288&&G(e,"auto",n[5]&&!n[8])},i:ge,o:ge,d(n){n&&b(e),t&&t.d()}}}function V6(i,e,t){let n,o,{shifted:l}=e,{captions:r}=e,{position:a}=e,{playerSize:s}=e,{isMobile:u=!1}=e,f=nt(),p=Bt(),g=f.state.currentSubtitle$;N(i,g,k=>t(12,n=k));let y=f.state.isAutoSubtitleCaptionVisible$;N(i,y,k=>t(8,o=k));let h,C,w,F,T;return It(()=>{T=window.setTimeout(()=>{y.set(!1)},p.autoSubtitlesTimeout)}),Fn(()=>{window.clearTimeout(T)}),i.$$set=k=>{"shifted"in k&&t(0,l=k.shifted),"captions"in k&&t(1,r=k.captions),"position"in k&&t(2,a=k.position),"playerSize"in k&&t(11,s=k.playerSize),"isMobile"in k&&t(3,u=k.isMobile)},i.$$.update=()=>{if(i.$$.dirty&2048){let k=s.width*.02;t(4,h=k<=p.minSubtitlesFontSize?p.minSubtitlesFontSize:k)}i.$$.dirty&2&&t(5,C=r.some(k=>k.type==="timestamp")),i.$$.dirty&2&&t(6,w=r.reduce((k,{type:P,value:x})=>(P==="timestamp"?k.push({timeAppeared:Number(x),value:""}):k.length===0?k.push({value:String(x)}):k[k.length-1].value=String(x),k),[])),i.$$.dirty&4096&&t(7,F=!!n.isAuto)},[l,r,a,u,h,C,w,F,o,g,y,s,n]}var Fc=class extends B{constructor(e){super(),D(this,e,V6,L6,R,{shifted:0,captions:1,position:2,playerSize:11,isMobile:3},P6)}},Cs=Fc;function R6(i){Ce(i,"svelte-1o62kpz",".wrapper.svelte-1o62kpz{height:100%;background-position:center;background-size:cover;display:flex;align-items:center;justify-content:center;font-size:16px;flex-direction:column}.icon_wrapper.svelte-1o62kpz{display:flex;flex-direction:column;align-items:center;width:400px}.icon.svelte-1o62kpz{width:50px;height:50px}.text.svelte-1o62kpz{margin-top:20px}")}function b0(i){let e,t,n;return{c(){e=I("div"),t=Ne("\u0412\u0438\u0434\u0435\u043E \u0432\u043E\u0441\u043F\u0440\u043E\u0438\u0437\u0432\u043E\u0434\u0438\u0442\u0441\u044F \u043D\u0430 "),n=Ne(i[1]),c(e,"class","text svelte-1o62kpz")},m(o,l){v(o,e,l),_(e,t),_(e,n)},p(o,l){l&2&&Ge(n,o[1])},d(o){o&&b(e)}}}function B6(i){let e,t,n,o,l,r,a=i[1]&&b0(i);return{c(){e=I("div"),t=I("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=H(),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){v(s,e,u),_(e,t),_(e,n),a&&a.m(e,null),l||(r=Pe(e,"click",i[2]),l=!0)},p(s,[u]){s[1]?a?a.p(s,u):(a=b0(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:ge,o:ge,d(s){s&&b(e),a&&a.d(),l=!1,r()}}}function D6(i,e,t){let{thumbUrl:n}=e,{chromecastDeviceName:o}=e;function l(r){Cn.call(this,i,r)}return i.$$set=r=>{"thumbUrl"in r&&t(0,n=r.thumbUrl),"chromecastDeviceName"in r&&t(1,o=r.chromecastDeviceName)},[n,o,l]}var qc=class extends B{constructor(e){super(),D(this,e,D6,B6,R,{thumbUrl:0,chromecastDeviceName:1},R6)}},Ss=qc;function N6(i){let e,t,n,o=i[2].default,l=Ee(o,i,i[1],null),r=[{xmlns:"http://www.w3.org/2000/svg"},{width:"200"},{height:"200"},{"aria-hidden":"true"},{"data-testid":"error-icon"},{viewBox:"460 190 130 90"},{role:"img"},i[0]],a={};for(let s=0;s<r.length;s+=1)a=ne(a,r[s]);return{c(){e=V("svg"),l&&l.c(),t=V("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"),ye(e,a)},m(s,u){v(s,e,u),l&&l.m(e,null),_(e,t),n=!0},p(s,[u]){l&&l.p&&(!n||u&2)&&Ae(l,o,s,s[1],n?Me(o,s[1],u,null):Le(s[1]),null),ye(e,a=De(r,[{xmlns:"http://www.w3.org/2000/svg"},{width:"200"},{height:"200"},{"aria-hidden":"true"},{"data-testid":"error-icon"},{viewBox:"460 190 130 90"},{role:"img"},u&1&&s[0]]))},i(s){n||(d(l,s),n=!0)},o(s){m(l,s),n=!1},d(s){s&&b(e),l&&l.d(s)}}}function O6(i,e,t){let{$$slots:n={},$$scope:o}=e;return i.$$set=l=>{t(0,e=ne(ne({},e),ve(l))),"$$scope"in l&&t(1,o=l.$$scope)},e=ve(e),[e,o,n]}var Hc=class extends B{constructor(e){super(),D(this,e,O6,N6,R,{})}},v0=Hc;function F6(i){Ce(i,"svelte-13zpvm8",".container.svelte-13zpvm8{position:absolute;top:0;bottom:0;left:0;right:0;background:#000;display:flex;align-items:center;justify-content:center}")}function q6(i){let e,t,n;return t=new v0({}),{c(){e=I("div"),A(t.$$.fragment),c(e,"class","container svelte-13zpvm8")},m(o,l){v(o,e,l),E(t,e,null),n=!0},p:ge,i(o){n||(d(t.$$.fragment,o),n=!0)},o(o){m(t.$$.fragment,o),n=!1},d(o){o&&b(e),M(t)}}}var zc=class extends B{constructor(e){super(),D(this,e,null,q6,R,{},F6)}},Is=zc;function H6(i){Ce(i,"svelte-17wno3",".container.svelte-17wno3.svelte-17wno3{position:absolute;top:0;bottom:0;left:0;right:0;background-position:center;background-size:cover;cursor:pointer;transition:opacity 0.2s, visibility 0.2s;will-change:opacity}.container.hidden.svelte-17wno3.svelte-17wno3{opacity:0;visibility:hidden}.playButton.svelte-17wno3.svelte-17wno3{position:absolute;top:0;bottom:0;left:0;right:0;margin:auto;width:var(--big-play-size);height:var(--big-play-size);display:flex;align-items:center;justify-content:center}.playButtonBackground.svelte-17wno3.svelte-17wno3{position:absolute;top:0;bottom:0;left:0;right:0;border-radius:var(--big-play-radius);background-color:var(--big-play-bg-color);transition:background 0.2s, transform 0.2s;transition-timing-function:ease-out;will-change:background, transform}.container.svelte-17wno3:hover .playButtonBackground.svelte-17wno3{background-color:var(--big-play-hover-bg-color);transform:scale(1.15)}.playButton.svelte-17wno3 svg{transform:scale(2)}")}function z6(i){let e,t,n,o,l,r,a,s,u,f;return l=new Er({}),{c(){e=I("div"),t=I("div"),n=I("div"),o=H(),A(l.$$.fragment),c(n,"class","playButtonBackground svelte-17wno3"),c(t,"class","playButton svelte-17wno3"),c(t,"tabindex","0"),c(t,"role","button"),c(t,"aria-label",r=U("tooltip_play")),c(e,"class","container svelte-17wno3"),c(e,"style",a=`background-color: #222; background-image: url('${i[0]||""}')`),G(e,"hidden",i[1])},m(p,g){v(p,e,g),_(e,t),_(t,n),_(t,o),E(l,t,null),s=!0,u||(f=[Pe(t,"keydown",i[3]),Pe(e,"click",mt(function(){Wt(i[2])&&i[2].apply(this,arguments)}))],u=!0)},p(p,[g]){i=p,(!s||g&1&&a!==(a=`background-color: #222; background-image: url('${i[0]||""}')`))&&c(e,"style",a),(!s||g&2)&&G(e,"hidden",i[1])},i(p){s||(d(l.$$.fragment,p),s=!0)},o(p){m(l.$$.fragment,p),s=!1},d(p){p&&b(e),M(l),u=!1,at(f)}}}function U6(i,e,t){let{thumbUrl:n}=e,{hidden:o}=e,{startVideo:l}=e,a=nt().ui.startedByKeyboard$,s=u=>{let f=u.code;["Enter","Space"].includes(f)&&(u.stopPropagation(),u.preventDefault(),a.set(!0),l())};return i.$$set=u=>{"thumbUrl"in u&&t(0,n=u.thumbUrl),"hidden"in u&&t(1,o=u.hidden),"startVideo"in u&&t(2,l=u.startVideo)},[n,o,l,s]}var Uc=class extends B{constructor(e){super(),D(this,e,U6,z6,R,{thumbUrl:0,hidden:1,startVideo:2,handlePressKey:3},H6)}get handlePressKey(){return this.$$.ctx[3]}},Ts=Uc;function W6(i){Ce(i,"svelte-1bcvcf2",`.title.svelte-1bcvcf2{position:absolute;pointer-events:none;left:0;top:0;width:100%;height:var(--controls-gradient-height);font-size:15px;color:var(--white);box-sizing:border-box;padding:18px 20px 10px;overflow:hidden;white-space:nowrap;text-overflow:ellipsis;transition-property:visibility, transform, opacity;transition-duration:var(--controls-transition-duration);transition-timing-function:var(--controls-transition-fn);will-change:transform, opacity;background:linear-gradient(
26
+ Audio: `),y=De(g),h=H(),w=De(C),c(t,"class","svelte-k5ymwy"),c(e,"class","svelte-k5ymwy")},m(F,T){v(F,e,T),_(e,t),_(e,n),_(e,o),_(o,l),_(o,a),_(o,s),_(o,f),_(o,p),_(o,y),_(o,h),_(o,w)},p(F,T){T&1&&r!==(r=(F[0].videoCodec||"")+"")&&xe(a,r),T&1&&u!==(u=F[0].hdr?"(HDR)":"")&&xe(f,u),T&1&&g!==(g=(F[0].audioCodec||"")+"")&&xe(y,g),T&1&&C!==(C=F[0].audioLanguage?`(${F[0].audioLanguage})`:"")&&xe(w,C)},d(F){F&&b(e)}}}function Hd(i){let e,t,n,o,l=i[0].viewport+"",r;return{c(){e=I("div"),t=I("div"),t.textContent="Viewport",n=H(),o=I("span"),r=De(l),c(t,"class","svelte-k5ymwy"),c(e,"class","svelte-k5ymwy")},m(a,s){v(a,e,s),_(e,t),_(e,n),_(e,o),_(o,r)},p(a,s){s&1&&l!==(l=a[0].viewport+"")&&xe(r,l)},d(a){a&&b(e)}}}function Ud(i){let e,t,n,o,l=i[0].videoSize+"",r;return{c(){e=I("div"),t=I("div"),t.textContent="Video size",n=H(),o=I("span"),r=De(l),c(t,"class","svelte-k5ymwy"),c(e,"class","svelte-k5ymwy")},m(a,s){v(a,e,s),_(e,t),_(e,n),_(e,o),_(o,r)},p(a,s){s&1&&l!==(l=a[0].videoSize+"")&&xe(r,l)},d(a){a&&b(e)}}}function zd(i){let e,t,n,o,l=i[0].cdn+"",r;return{c(){e=I("div"),t=I("div"),t.textContent="CDN host",n=H(),o=I("span"),r=De(l),c(t,"class","svelte-k5ymwy"),c(e,"class","svelte-k5ymwy")},m(a,s){v(a,e,s),_(e,t),_(e,n),_(e,o),_(o,r)},p(a,s){s&1&&l!==(l=a[0].cdn+"")&&xe(r,l)},d(a){a&&b(e)}}}function Wd(i){let e,t,n,o,l=i[0].volume+"",r,a;return{c(){e=I("div"),t=I("div"),t.textContent="Volume",n=H(),o=I("span"),r=De(l),a=De(" %"),c(t,"class","svelte-k5ymwy"),c(e,"class","svelte-k5ymwy")},m(s,u){v(s,e,u),_(e,t),_(e,n),_(e,o),_(o,r),_(o,a)},p(s,u){u&1&&l!==(l=s[0].volume+"")&&xe(r,l)},d(s){s&&b(e)}}}function Kd(i){let e,t,n,o,l=i[0].buffer.toFixed(2)+"",r,a;return{c(){e=I("div"),t=I("div"),t.textContent="Buffer",n=H(),o=I("span"),r=De(l),a=De(" s"),c(t,"class","svelte-k5ymwy"),c(e,"class","svelte-k5ymwy")},m(s,u){v(s,e,u),_(e,t),_(e,n),_(e,o),_(o,r),_(o,a)},p(s,u){u&1&&l!==(l=s[0].buffer.toFixed(2)+"")&&xe(r,l)},d(s){s&&b(e)}}}function jd(i){let e,t,n,o,l=[{value:i[0].currentVideoSegmentLength,title:"Video:"},{value:i[0].currentAudioSegmentLength,title:"Audio:"}].filter(Yd).map(Qd).join(" & ")+"",r;return{c(){e=I("div"),t=I("div"),t.textContent="Segment",n=H(),o=I("span"),r=De(l),c(t,"class","svelte-k5ymwy"),c(e,"class","svelte-k5ymwy")},m(a,s){v(a,e,s),_(e,t),_(e,n),_(e,o),_(o,r)},p(a,s){s&1&&l!==(l=[{value:a[0].currentVideoSegmentLength,title:"Video:"},{value:a[0].currentAudioSegmentLength,title:"Audio:"}].filter(Yd).map(Qd).join(" & ")+"")&&xe(r,l)},d(a){a&&b(e)}}}function Gd(i){let e,t,n,o,l,r,a=i[0].speed.toFixed(2)+"",s,u,f;return o=new Rl({props:{values:i[5]}}),{c(){e=I("div"),t=I("div"),t.textContent="Network",n=H(),A(o.$$.fragment),l=H(),r=I("span"),s=De(a),u=De(" Kbps"),c(t,"class","svelte-k5ymwy"),c(e,"class","svelte-k5ymwy")},m(p,g){v(p,e,g),_(e,t),_(e,n),E(o,e,null),_(e,l),_(e,r),_(r,s),_(r,u),f=!0},p(p,g){let y={};g&32&&(y.values=p[5]),o.$set(y),(!f||g&1)&&a!==(a=p[0].speed.toFixed(2)+"")&&xe(s,a)},i(p){f||(d(o.$$.fragment,p),f=!0)},o(p){m(o.$$.fragment,p),f=!1},d(p){p&&b(e),M(o)}}}function xd(i){let e,t,n,o,l,r,a=i[0].bitrate.toFixed(2)+"",s,u,f;return o=new Rl({props:{values:i[6]}}),{c(){e=I("div"),t=I("div"),t.textContent="V bitrate",n=H(),A(o.$$.fragment),l=H(),r=I("span"),s=De(a),u=De(" Kbps"),c(t,"class","svelte-k5ymwy"),c(e,"class","svelte-k5ymwy")},m(p,g){v(p,e,g),_(e,t),_(e,n),E(o,e,null),_(e,l),_(e,r),_(r,s),_(r,u),f=!0},p(p,g){let y={};g&64&&(y.values=p[6]),o.$set(y),(!f||g&1)&&a!==(a=p[0].bitrate.toFixed(2)+"")&&xe(s,a)},i(p){f||(d(o.$$.fragment,p),f=!0)},o(p){m(o.$$.fragment,p),f=!1},d(p){p&&b(e),M(o)}}}function yh(i){let e,t,n,o,l,r,a,s,u=i[0].version+"",f,p,g,y,h,C,w,F,T,k,P,G,W,z,le,de,L,te,re,X,Pe,q,N,K,ce,oe,se,qe,Ve,ke,Re,ze,je,Y,fe=i[0].id&&Nd(i),Ze=i[0].vsid&&Od(i),_e=i[0].provider&&Fd(i),Ue=(i[0].videoCodec||i[0].audioCodec)&&qd(i),tt=i[0].viewport&&Hd(i),rt=i[0].videoSize&&Ud(i),Je=i[0].cdn&&zd(i),Ye=i[0].volume&&Wd(i),We=i[0].buffer&&Kd(i),J=(i[0].currentVideoSegmentLength||i[0].currentAudioSegmentLength)&&jd(i),He=i[0].speed&&Gd(i),we=i[0].bitrate&&xd(i);return se=new Rl({props:{values:i[4]}}),{c(){e=I("div"),t=I("button"),t.textContent="[x]",n=H(),o=I("div"),l=I("div"),r=I("div"),r.textContent="Version",a=H(),s=I("span"),f=De(u),p=H(),fe&&fe.c(),g=H(),Ze&&Ze.c(),y=H(),_e&&_e.c(),h=H(),Ue&&Ue.c(),C=H(),tt&&tt.c(),w=H(),rt&&rt.c(),F=H(),Je&&Je.c(),T=H(),Ye&&Ye.c(),k=H(),We&&We.c(),P=H(),J&&J.c(),G=H(),W=I("div"),z=I("div"),z.textContent="Dropped",le=H(),de=I("span"),L=De(i[2]),te=De(" / "),re=De(i[1]),X=De(" frames"),Pe=H(),He&&He.c(),q=H(),we&&we.c(),N=H(),K=I("div"),ce=I("div"),ce.textContent="FPS",oe=H(),A(se.$$.fragment),qe=H(),Ve=I("span"),ke=De(i[3]),c(t,"class","close svelte-k5ymwy"),c(t,"title","\u0437\u0430\u043A\u0440\u044B\u0442\u044C"),c(r,"class","svelte-k5ymwy"),c(l,"class","svelte-k5ymwy"),c(z,"class","svelte-k5ymwy"),c(W,"class","svelte-k5ymwy"),c(ce,"class","svelte-k5ymwy"),c(K,"class","svelte-k5ymwy"),c(o,"class","content svelte-k5ymwy"),c(e,"class","container svelte-k5ymwy"),c(e,"role","region"),c(e,"aria-label",Re=U("aria_label_debug_panel")),j(e,"container-mobile",i[7])},m(Ie,Ke){v(Ie,e,Ke),_(e,t),_(e,n),_(e,o),_(o,l),_(l,r),_(l,a),_(l,s),_(s,f),_(o,p),fe&&fe.m(o,null),_(o,g),Ze&&Ze.m(o,null),_(o,y),_e&&_e.m(o,null),_(o,h),Ue&&Ue.m(o,null),_(o,C),tt&&tt.m(o,null),_(o,w),rt&&rt.m(o,null),_(o,F),Je&&Je.m(o,null),_(o,T),Ye&&Ye.m(o,null),_(o,k),We&&We.m(o,null),_(o,P),J&&J.m(o,null),_(o,G),_(o,W),_(W,z),_(W,le),_(W,de),_(de,L),_(de,te),_(de,re),_(de,X),_(o,Pe),He&&He.m(o,null),_(o,q),we&&we.m(o,null),_(o,N),_(o,K),_(K,ce),_(K,oe),E(se,K,null),_(K,qe),_(K,Ve),_(Ve,ke),ze=!0,je||(Y=Te(t,"click",_t(i[9])),je=!0)},p(Ie,[Ke]){(!ze||Ke&1)&&u!==(u=Ie[0].version+"")&&xe(f,u),Ie[0].id?fe?fe.p(Ie,Ke):(fe=Nd(Ie),fe.c(),fe.m(o,g)):fe&&(fe.d(1),fe=null),Ie[0].vsid?Ze?Ze.p(Ie,Ke):(Ze=Od(Ie),Ze.c(),Ze.m(o,y)):Ze&&(Ze.d(1),Ze=null),Ie[0].provider?_e?_e.p(Ie,Ke):(_e=Fd(Ie),_e.c(),_e.m(o,h)):_e&&(_e.d(1),_e=null),Ie[0].videoCodec||Ie[0].audioCodec?Ue?Ue.p(Ie,Ke):(Ue=qd(Ie),Ue.c(),Ue.m(o,C)):Ue&&(Ue.d(1),Ue=null),Ie[0].viewport?tt?tt.p(Ie,Ke):(tt=Hd(Ie),tt.c(),tt.m(o,w)):tt&&(tt.d(1),tt=null),Ie[0].videoSize?rt?rt.p(Ie,Ke):(rt=Ud(Ie),rt.c(),rt.m(o,F)):rt&&(rt.d(1),rt=null),Ie[0].cdn?Je?Je.p(Ie,Ke):(Je=zd(Ie),Je.c(),Je.m(o,T)):Je&&(Je.d(1),Je=null),Ie[0].volume?Ye?Ye.p(Ie,Ke):(Ye=Wd(Ie),Ye.c(),Ye.m(o,k)):Ye&&(Ye.d(1),Ye=null),Ie[0].buffer?We?We.p(Ie,Ke):(We=Kd(Ie),We.c(),We.m(o,P)):We&&(We.d(1),We=null),Ie[0].currentVideoSegmentLength||Ie[0].currentAudioSegmentLength?J?J.p(Ie,Ke):(J=jd(Ie),J.c(),J.m(o,G)):J&&(J.d(1),J=null),(!ze||Ke&4)&&xe(L,Ie[2]),(!ze||Ke&2)&&xe(re,Ie[1]),Ie[0].speed?He?(He.p(Ie,Ke),Ke&1&&d(He,1)):(He=Gd(Ie),He.c(),d(He,1),He.m(o,q)):He&&(ae(),m(He,1,1,()=>{He=null}),ue()),Ie[0].bitrate?we?(we.p(Ie,Ke),Ke&1&&d(we,1)):(we=xd(Ie),we.c(),d(we,1),we.m(o,N)):we&&(ae(),m(we,1,1,()=>{we=null}),ue());let me={};Ke&16&&(me.values=Ie[4]),se.$set(me),(!ze||Ke&8)&&xe(ke,Ie[3]),(!ze||Ke&128)&&j(e,"container-mobile",Ie[7])},i(Ie){ze||(d(He),d(we),d(se.$$.fragment,Ie),ze=!0)},o(Ie){m(He),m(we),m(se.$$.fragment,Ie),ze=!1},d(Ie){Ie&&b(e),fe&&fe.d(),Ze&&Ze.d(),_e&&_e.d(),Ue&&Ue.d(),tt&&tt.d(),rt&&rt.d(),Je&&Je.d(),Ye&&Ye.d(),We&&We.d(),J&&J.d(),He&&He.d(),we&&we.d(),M(se),je=!1,Y()}}}var Yd=({value:i})=>i,Qd=({value:i,title:e})=>`${e} ${((i??0)/1e3).toFixed(2)} s`;function kh(i,e,t){let n,o=ot(),l=o.ui.debugPanelVisible,r=o.ui.isMobile;O(i,r,k=>t(7,n=k));let a=()=>{ka.safeStorage.remove(Kr),l.set(!1)},s=o.actions.internal.getDebugPanelData(),u=o.actions.internal.getVideoElement(),f=0,p=0,g=0,y=new vr(60),h=new vr(60),C=new vr(60),w=[],F=[],T=[];return Et(()=>{ka.safeStorage.set(Kr,"true"),o.actions.internal.startLogging(),u&&(t(2,p=u.getVideoPlaybackQuality().droppedVideoFrames),t(1,f=u.getVideoPlaybackQuality().totalVideoFrames));let k=window.setInterval(()=>{t(0,s=o.actions.internal.getDebugPanelData())},500),P;return u&&(P=window.setInterval(()=>{if(u){t(2,p=u.getVideoPlaybackQuality().droppedVideoFrames);let G=u.getVideoPlaybackQuality().totalVideoFrames;t(3,g=G-f),t(1,f=G),y.push(g),s.speed&&h.push(s.speed),s.bitrate&&C.push(s.bitrate),t(4,w=y.getValuesFromBottom()),t(5,F=h.getValuesFromBottom()),t(6,T=C.getValuesFromBottom())}},1e3)),()=>{o.actions.internal.stopLogging(),clearInterval(k),P&&clearInterval(P)}}),[s,f,p,g,w,F,T,n,r,a]}var wa=class extends B{constructor(e){super(),D(this,e,kh,yh,R,{},vh)}},Bl=wa;function wh(i){Ce(i,"svelte-1ome55p",".close.svelte-1ome55p{cursor:pointer;opacity:0.8;transition:opacity 0.2s;position:relative;width:16px;height:16px}.close.svelte-1ome55p:hover{opacity:1}.close.svelte-1ome55p:before,.close.svelte-1ome55p:after{position:absolute;left:8px;content:' ';height:16px;width:2px;background-color:var(--white)}.close.svelte-1ome55p:before{transform:rotate(45deg)}.close.svelte-1ome55p:after{transform:rotate(-45deg)}")}function Ch(i){let e,t,n;return{c(){e=I("div"),c(e,"class","close svelte-1ome55p")},m(o,l){v(o,e,l),t||(n=Te(e,"click",_t(i[0])),t=!0)},p:he,i:he,o:he,d(o){o&&b(e),t=!1,n()}}}function Sh(i){function e(t){Cn.call(this,i,t)}return[e]}var Ca=class extends B{constructor(e){super(),D(this,e,Sh,Ch,R,{},wh)}},Zd=Ca;var Xd=require("@vkontakte/videoplayer-shared");function Ih(i){Ce(i,"svelte-8jhsry",`.timer.svelte-8jhsry{border-radius:50%;transition:background .2s;background:rgba(31, 31, 31, .65);width:50px;height:50px;display:flex;align-items:center;justify-content:space-around}.timer.svelte-8jhsry:hover{background:rgba(31, 31, 31, .85)
27
+ }.timer-canvas.svelte-8jhsry{width:50px;height:50px;position:absolute}.timer-play-icon.svelte-8jhsry{width:22px;height:26px}`)}function Th(i){let e,t,n,o,l,r,a;return{c(){e=I("div"),t=I("canvas"),n=H(),o=V("svg"),l=V("g"),r=V("g"),a=V("path"),c(t,"class","timer-canvas svelte-8jhsry"),c(t,"width","100"),c(t,"height","100"),c(a,"class","_play"),c(a,"d","m8.13340613 5.10548415 10.49681277 6.24354325c.3559987.2117494.472936.6720001.2611866 1.0279989-.0638111.1072809-.1533894.1969388-.2606135.2608453l-10.4968128 6.256187c-.35581027.2120659-.81616483.095538-1.02823068-.2602722-.06921066-.1161237-.10574852-.2487949-.10574852-.3839792v-12.49973035c0-.41421357.33578644-.75.75-.75.13495801 0 .26741554.03641567.38340613.1054073z"),c(a,"fill","#fff"),c(r,"fill-rule","nonzero"),c(l,"fill","none"),c(l,"fill-rule","evenodd"),c(o,"class","timer-play-icon svelte-8jhsry"),c(o,"viewBox","0 0 24 24"),c(o,"xmlns","http://www.w3.org/2000/svg"),c(e,"class","timer svelte-8jhsry")},m(s,u){v(s,e,u),_(e,t),i[2](t),_(e,n),_(e,o),_(o,l),_(l,r),_(r,a)},p:he,i:he,o:he,d(s){s&&b(e),i[2](null)}}}var Ph=5e3;function Eh(i,e,t){let{onTimerEnded:n=Xd.noop}=e,o;Et(()=>{let r,a=o.getContext("2d");if(!a)return;a.lineWidth=6,a.lineCap="round",a.strokeStyle="#fff";let s=Date.now(),u=()=>{let f=(Date.now()-s)/Ph;f<1?(a.clearRect(0,0,100,100),a.beginPath(),a.arc(50,50,47,-Math.PI/2,-Math.PI/2+Math.PI*2*f),a.stroke(),r=requestAnimationFrame(u)):n()};return r=requestAnimationFrame(u),()=>{cancelAnimationFrame(r)}});function l(r){be[r?"unshift":"push"](()=>{o=r,t(0,o)})}return i.$$set=r=>{"onTimerEnded"in r&&t(1,n=r.onTimerEnded)},[o,n,l]}var Sa=class extends B{constructor(e){super(),D(this,e,Eh,Th,R,{onTimerEnded:1},Ih)}},Jd=Sa;function Mh(i){Ce(i,"svelte-kisfwc",".overlay.svelte-kisfwc{width:100%;height:100%;background:rgba(0, 0, 0, 0.72);position:absolute}.next-video.svelte-kisfwc{position:absolute;top:50%;left:50%;transform:translate(-50%, -50%);display:flex;width:362px;flex-direction:column}.top.svelte-kisfwc{display:flex;justify-content:space-between}.caption.svelte-kisfwc{font-size:11px;font-weight:bold;color:var(--white);text-transform:uppercase;opacity:0.8}.row.svelte-kisfwc{height:102px;background:rgba(48, 48, 48, .8);cursor:pointer;margin-top:6px;display:flex;flex-direction:row;flex-wrap:wrap;width:100%}.column.svelte-kisfwc{display:flex;flex-direction:column;flex-basis:50%}.thumb.svelte-kisfwc{width:100%;height:100%;background:no-repeat center;background-size:cover;display:flex;align-items:center;position:relative;justify-content:space-around}.thumb-overlay.svelte-kisfwc{width:100%;height:100%;background:var(--black);opacity:0.3;position:absolute}.title.svelte-kisfwc{padding:10px 16px;font-size:12px;font-weight:bold;color:var(--white);line-height:1.6;max-height:52px;overflow:hidden}")}function $d(i){let e,t;return e=new Jd({props:{onTimerEnded:i[2]}}),{c(){A(e.$$.fragment)},m(n,o){E(e,n,o),t=!0},p(n,o){let l={};o&4&&(l.onTimerEnded=n[2]),e.$set(l)},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){m(e.$$.fragment,n),t=!1},d(n){M(e,n)}}}function Ah(i){let e,t,n,o,l,r,a,s,u,f,p,g,y,h,C,w,F,T,k,P,G;a=new Zd({}),a.$on("click",i[4]);let W=i[3]&&$d(i);return{c(){e=I("div"),t=H(),n=I("div"),o=I("div"),l=I("div"),l.textContent="\u0441\u043B\u0435\u0434\u0443\u044E\u0449\u0435\u0435 \u0432\u0438\u0434\u0435\u043E",r=H(),A(a.$$.fragment),s=H(),u=I("div"),f=I("div"),p=I("div"),g=I("div"),y=H(),W&&W.c(),C=H(),w=I("div"),F=I("div"),T=De(i[0]),c(e,"class","overlay svelte-kisfwc"),c(l,"class","caption svelte-kisfwc"),c(o,"class","top svelte-kisfwc"),c(g,"class","thumb-overlay svelte-kisfwc"),c(p,"class","thumb svelte-kisfwc"),c(p,"style",h=`background-image: url('${i[1]}')`),c(f,"class","column svelte-kisfwc"),c(F,"class","title svelte-kisfwc"),c(w,"class","column svelte-kisfwc"),c(u,"class","row svelte-kisfwc"),c(n,"class","next-video svelte-kisfwc")},m(z,le){v(z,e,le),v(z,t,le),v(z,n,le),_(n,o),_(o,l),_(o,r),E(a,o,null),_(n,s),_(n,u),_(u,f),_(f,p),_(p,g),_(p,y),W&&W.m(p,null),_(u,C),_(u,w),_(w,F),_(F,T),k=!0,P||(G=Te(u,"click",function(){zt(i[2])&&i[2].apply(this,arguments)}),P=!0)},p(z,[le]){i=z,i[3]?W?(W.p(i,le),le&8&&d(W,1)):(W=$d(i),W.c(),d(W,1),W.m(p,null)):W&&(ae(),m(W,1,1,()=>{W=null}),ue()),(!k||le&2&&h!==(h=`background-image: url('${i[1]}')`))&&c(p,"style",h),(!k||le&1)&&xe(T,i[0])},i(z){k||(d(a.$$.fragment,z),d(W),k=!0)},o(z){m(a.$$.fragment,z),m(W),k=!1},d(z){z&&(b(e),b(t),b(n)),M(a),W&&W.d(),P=!1,G()}}}function Lh(i,e,t){let{title:n}=e,{thumb:o}=e,{playNextVideo:l}=e,r=!0,a=()=>t(3,r=!1);return i.$$set=s=>{"title"in s&&t(0,n=s.title),"thumb"in s&&t(1,o=s.thumb),"playNextVideo"in s&&t(2,l=s.playNextVideo)},[n,o,l,r,a]}var Ia=class extends B{constructor(e){super(),D(this,e,Lh,Ah,R,{title:0,thumb:1,playNextVideo:2},Mh)}},e1=Ia;var yo=require("@vkontakte/videoplayer-core"),t1=require("@vkontakte/videoplayer-shared"),Gi=require("@vkontakte/videoplayer-statistics");var Ta=(i,e)=>Math.min(+(i+e).toFixed(2),1),Pa=(i,e)=>Math.max(+(i-e).toFixed(2),0),Dl=(i,e,t)=>{let n=Ta(e,t);e<1&&i.actions.internal.setVolume(n)},Nl=(i,e,t)=>{let n=Pa(e,t);e>0&&i.actions.internal.setVolume(n)};var vo=({isAudioDisabled:i,audioDisabledHintCallback:e,isAudioAvailable:t,audioIsNotExistHintCallback:n})=>i?(e?.(),!1):t?!0:(n?.(),!1);function Rh(i){Ce(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,l,r=i[26].default,a=Ee(r,i,i[25],null);return{c(){e=I("div"),a&&a.c(),c(e,"class","keyboard-controls svelte-10kkmxz"),c(e,"tabindex","-1"),c(e,"role","region"),c(e,"aria-label",t=U("aria_label_video_player"))},m(s,u){v(s,e,u),a&&a.m(e,null),i[27](e),n=!0,o||(l=[Te(e,"keyup",i[17]),Te(e,"keydown",i[16])],o=!0)},p(s,u){a&&a.p&&(!n||u[0]&33554432)&&Ae(a,r,s,s[25],n?Me(r,s[25],u,null):Le(s[25]),null)},i(s){n||(d(a,s),n=!0)},o(s){m(a,s),n=!1},d(s){s&&b(e),a&&a.d(s),i[27](null),o=!1,at(l)}}}function Dh(i,e,t){let n,o,l,r,a,s,u,f,p,g,y,h,C,w,F,{$$slots:T={},$$scope:k}=e,{isAds:P}=e,{hideContextMenu:G}=e,{toggleFullscreen:W}=e,{showHotKeyHelpers:z}=e,{showKeyMap:le}=e,{fakePlayButtonHandler:de}=e,L=ot(),te=Nt(),re=L.getLogger().createComponentLog("KeyboardControls component"),X=L.state.playbackState$;O(i,X,$=>t(31,o=$));let Pe=L.ads.playbackState;O(i,Pe,$=>t(30,n=$));let q=L.state.positionExact$;O(i,q,$=>t(41,h=$));let N=L.state.duration$;O(i,N,$=>t(40,y=$));let K=L.state.volume$;O(i,K,$=>t(44,F=$));let ce=L.ui.controls.disabledControls$;O(i,ce,$=>t(39,g=$));let oe=L.state.muted$;O(i,oe,$=>t(34,a=$));let se=L.state.currentSubtitle$;O(i,se,$=>t(33,r=$));let qe=L.state.currentPlaybackRate$;O(i,qe,$=>t(42,C=$));let Ve=L.state.availablePlaybackRates$;O(i,Ve,$=>t(43,w=$));let ke=L.ui.contextMenu.openedByHotKey$,Re=L.ui.contextMenu.lastActiveElem$,ze=L.ui.contextMenu.visible$,je=L.ui.contextMenu.position$,Y=L.state.isEnded$;O(i,Y,$=>t(36,u=$));let fe=L.ui.overlayContainer$;O(i,fe,$=>t(32,l=$));let Ze=L.callbacks?.onAudioDoesNotExistHint,_e=L.callbacks?.onAudioDisabledHint,Ue=L.state.isAudioAvailable$;O(i,Ue,$=>t(35,s=$));let tt=L.state.isAudioDisabled,rt=L.state.isInteractiveTime$;O(i,rt,$=>t(38,p=$));let{showInteractiveTimeIndicatorTooltip$:Je}=An();O(i,Je,$=>t(37,f=$));let Ye=0,We=!0,J,He=()=>J?.focus(),we=$=>($!==We&&(We=$,Ye=0),Ye+=1,(te.controls.seekStepKeyboard+te.controls.seekStepKeyboard*Ye)/1e3),Ie=$=>{let dt=$.target,mt=dt?.getAttribute("role")?.includes("menuitem"),$e=dt.classList.contains("btn"),ut=$.code;if($e&&ut==="Space")return;let St=Mf.has(ut);if(mt&&St)return;let et=!Ef.has(ut);if($.ctrlKey&&et||$.altKey&&et||$.metaKey)return;let ni=mt&&ut==="Escape";Af.has(ut)||ni||G();let It=o===yo.PlaybackState.PLAYING||o===yo.PlaybackState.PAUSED,qt=P&&(n==="paused"||n==="playing"),oi=!qt&&!g.has("TIMELINE");if(It||qt)switch(re({message:`key down, code: ${ut}`}),ut){case"KeyJ":case"ArrowLeft":{if(!oi)break;if($.ctrlKey||$.altKey){let st=L.actions.internal.getPrevEpisode();L.actions.internal.seekToPrevEpisode(st),st&&z({type:"EPISODE_PREV",text:st.text}),$.preventDefault()}else{let st=$.shiftKey?we(!1):te.controls.seekStepKeyboard/1e3,yt=Math.max(h-st,0);h>0&&(L.actions.internal.seekTime(yt,Gi.SeekAction.DOUBLE_TAP),z({type:"BACKWARD_SEEK",text:st.toString()}),$.preventDefault())}break}case"KeyL":case"ArrowRight":{if(!oi)break;if($.ctrlKey||$.altKey){let st=L.actions.internal.getNextEpisode();L.actions.internal.seekToNextEpisode(st),st&&z({type:"EPISODE_NEXT",text:st.text}),$.preventDefault()}else{let st=$.shiftKey?we(!0):te.controls.seekStepKeyboard/1e3,yt=Math.min(h+st,y);Math.round(h)<Math.round(y)&&(L.actions.internal.seekTime(yt,Gi.SeekAction.DOUBLE_TAP),z({type:"FORWARD_SEEK",text:st.toString()}),$.preventDefault())}break}case"ArrowUp":{if(vo({isAudioDisabled:tt,audioDisabledHintCallback:_e,isAudioAvailable:s,audioIsNotExistHintCallback:Ze})){let st=F,yt=te.controls.volumeStepKeyboard,ei=st<=1;if(Dl(L,st,yt),ei){let pe=Math.round(Ta(st,yt)*100).toString();z({type:"VOLUME",t:{key:"hotkey_helper_current_volume",value:pe}})}}$.preventDefault();break}case"ArrowDown":{if(vo({isAudioDisabled:tt,audioDisabledHintCallback:_e,isAudioAvailable:s,audioIsNotExistHintCallback:Ze})){let st=F,yt=te.controls.volumeStepKeyboard,ei=st>=0;if(Nl(L,st,yt),ei){let pe=Math.round(Pa(st,yt)*100).toString();z({type:"VOLUME",t:{key:"hotkey_helper_current_volume",value:pe}})}}$.preventDefault();break}case"Comma":{if($.shiftKey){L.actions.internal.decrementPlaybackRate();let st=w.find(yt=>yt.value===C);z({type:"RATE_DOWN",text:st?.displayValue}),$.preventDefault()}else{if(qt||o!==yo.PlaybackState.PAUSED)break;let st=Math.max(h-te.controls.seekStepFrame/1e3,0);h>0&&(z({type:"BACKWARD_SEEK"}),L.actions.internal.clearDelayedBufferingCheckTimeout(),L.actions.internal.seekTime(st,Gi.SeekAction.DOUBLE_TAP),$.preventDefault())}break}case"Period":{if($.shiftKey){L.actions.internal.incrementPlaybackRate();let st=w.find(yt=>yt.value===C);z({type:"RATE_UP",text:st?.displayValue}),$.preventDefault()}else{if(qt||o!==yo.PlaybackState.PAUSED)break;let st=Math.min(h+te.controls.seekStepFrame/1e3,y);h<y&&(z({type:"FORWARD_SEEK"}),L.actions.internal.clearDelayedBufferingCheckTimeout(),L.actions.internal.seekTime(st,Gi.SeekAction.DOUBLE_TAP),$.preventDefault())}break}case"KeyK":case"Space":if(!g.has("PLAY_BUTTON"))if(p&&f&&Je.set(!1),de)de();else{L.actions.internal.togglePlay();let st="PLAY";o===yo.PlaybackState.PAUSED?st="PAUSE":u&&(st="REPLAY"),z({type:st})}$.preventDefault();break;case"KeyM":{vo({isAudioDisabled:tt,audioDisabledHintCallback:_e,isAudioAvailable:s,audioIsNotExistHintCallback:Ze})&&(z({type:a?"VOLUME":"MUTE"}),L.actions.internal.toggleMuted()),$.preventDefault();break}case"KeyF":W(),$.preventDefault();break;case"KeyC":L.actions.internal.toggleSubtitle(),r.value!=="off"?z({type:"SUBTITLES_ON",text:r?.displayValue}):z({type:"SUBTITLES_OFF"}),$.preventDefault();break;case"KeyI":L.actions.internal.togglePictureInPicture(),$.preventDefault();break;case"Digit1":case"Numpad1":if($.shiftKey){let st=Ed(l);je.set(st),Re.set(dt),ke.set(!0),ze.set(!0),$.preventDefault();break}z(),L.actions.internal.seekToPercent(.1,Gi.SeekAction.DOUBLE_TAP),$.preventDefault();break;case"Digit2":case"Numpad2":z(),L.actions.internal.seekToPercent(.2,Gi.SeekAction.DOUBLE_TAP),$.preventDefault();break;case"Digit3":case"Numpad3":z(),L.actions.internal.seekToPercent(.3,Gi.SeekAction.DOUBLE_TAP),$.preventDefault();break;case"Digit4":case"Numpad4":z(),L.actions.internal.seekToPercent(.4,Gi.SeekAction.DOUBLE_TAP),$.preventDefault();break;case"Digit5":case"Numpad5":z(),L.actions.internal.seekToPercent(.5,Gi.SeekAction.DOUBLE_TAP),$.preventDefault();break;case"Digit6":case"Numpad6":z(),L.actions.internal.seekToPercent(.6,Gi.SeekAction.DOUBLE_TAP),$.preventDefault();break;case"Digit7":case"Numpad7":z(),L.actions.internal.seekToPercent(.7,Gi.SeekAction.DOUBLE_TAP),$.preventDefault();break;case"Digit8":case"Numpad8":z(),L.actions.internal.seekToPercent(.8,Gi.SeekAction.DOUBLE_TAP),$.preventDefault();break;case"Digit9":case"Numpad9":z(),L.actions.internal.seekToPercent(.9,Gi.SeekAction.DOUBLE_TAP),$.preventDefault();break;case"Digit0":case"Numpad0":z(),L.actions.internal.seekToPercent(0,Gi.SeekAction.DOUBLE_TAP),$.preventDefault();break;case"Slash":{$.shiftKey&&te.features.hotKeyMapModal&&(le(),$.preventDefault());break}case"ShiftLeft":case"ShiftRight":$.preventDefault();break;case"Tab":case"Escape":case"Enter":break;default:(0,t1.checkNever)(ut);break}},Ke=$=>{let dt=$.code;if($.ctrlKey||$.altKey||$.metaKey)return;let mt=o===yo.PlaybackState.PLAYING||o===yo.PlaybackState.PAUSED,$e=P&&(n==="paused"||n==="playing");if(mt||$e)switch(dt){case"ShiftLeft":case"ShiftRight":Ye=0;break}};function me($){be[$?"unshift":"push"](()=>{J=$,t(0,J)})}return i.$$set=$=>{"isAds"in $&&t(18,P=$.isAds),"hideContextMenu"in $&&t(19,G=$.hideContextMenu),"toggleFullscreen"in $&&t(20,W=$.toggleFullscreen),"showHotKeyHelpers"in $&&t(21,z=$.showHotKeyHelpers),"showKeyMap"in $&&t(22,le=$.showKeyMap),"fakePlayButtonHandler"in $&&t(23,de=$.fakePlayButtonHandler),"$$scope"in $&&t(25,k=$.$$scope)},[J,X,Pe,q,N,K,ce,oe,se,qe,Ve,Y,fe,Ue,rt,Je,Ie,Ke,P,G,W,z,le,de,He,k,T,me]}var Ea=class extends B{constructor(e){super(),D(this,e,Dh,Bh,R,{isAds:18,hideContextMenu:19,toggleFullscreen:20,showHotKeyHelpers:21,showKeyMap:22,fakePlayButtonHandler:23,focus:24},Rh,[-1,-1])}get focus(){return this.$$.ctx[24]}},i1=Ea;function Nh(i){Ce(i,"svelte-8nkw5s",".container.svelte-8nkw5s.svelte-8nkw5s{position:absolute;top:50%;left:50%;transform:translate(-50%, -50%);pointer-events:none;display:flex}.dot.svelte-8nkw5s.svelte-8nkw5s:nth-child(1){animation-delay:calc(0 * 180ms)}.dot.svelte-8nkw5s.svelte-8nkw5s:nth-child(2){animation-delay:calc(1 * 180ms)}.dot.svelte-8nkw5s.svelte-8nkw5s:nth-child(3){animation-delay:calc(2 * 180ms)}@keyframes svelte-8nkw5s-dot_animation{0%{opacity:0.2}30%{opacity:1}100%{opacity:0.2}}.dot.svelte-8nkw5s.svelte-8nkw5s{border-radius:4px;width:8px;height:8px;background:var(--white);animation-duration:750ms;animation-name:svelte-8nkw5s-dot_animation;animation-iteration-count:infinite}.dot.svelte-8nkw5s+.dot.svelte-8nkw5s{margin-left:4px}")}function Oh(i){let e,t,n,o,l,r;return{c(){e=I("div"),t=I("div"),n=H(),o=I("div"),l=H(),r=I("div"),c(t,"class","dot svelte-8nkw5s"),c(o,"class","dot svelte-8nkw5s"),c(r,"class","dot svelte-8nkw5s"),c(e,"class","container svelte-8nkw5s"),c(e,"style",i[0])},m(a,s){v(a,e,s),_(e,t),_(e,n),_(e,o),_(e,l),_(e,r)},p(a,[s]){s&1&&c(e,"style",a[0])},i:he,o:he,d(a){a&&b(e)}}}function Fh(i,e,t){let{style:n=""}=e;return i.$$set=o=>{"style"in o&&t(0,n=o.style)},[n]}var Ma=class extends B{constructor(e){super(),D(this,e,Fh,Oh,R,{style:0},Nh)}},yr=Ma;function qh(i){let e,t,n,o,l,r,a,s,u,f,p,g,y,h,C=i[2].default,w=Ee(C,i,i[1],null),F=[{xmlns:"http://www.w3.org/2000/svg"},{width:"24"},{height:"24"},{fill:"none"},{"aria-hidden":"true"},{"data-testid":"cross-icon"},{role:"img"},i[0]],T={};for(let k=0;k<F.length;k+=1)T=ne(T,F[k]);return{c(){e=V("svg"),w&&w.c(),t=V("g"),n=V("path"),o=V("path"),l=V("defs"),r=V("filter"),a=V("feFlood"),s=V("feColorMatrix"),u=V("feOffset"),f=V("feGaussianBlur"),p=V("feColorMatrix"),g=V("feBlend"),y=V("feBlend"),c(n,"fill","#fff"),c(n,"d","M7.536 6.264a.9.9 0 0 0-1.272 1.272L10.727 12l-4.463 4.464a.9.9 0 0 0 1.272 1.272L12 13.273l4.464 4.463a.9.9 0 1 0 1.272-1.272L13.273 12l4.463-4.464a.9.9 0 1 0-1.272-1.272L12 10.727z"),c(o,"stroke","#000"),c(o,"stroke-opacity",".12"),c(o,"stroke-width",".5"),c(o,"d","M7.713 6.087a1.15 1.15 0 1 0-1.626 1.626L10.374 12l-4.287 4.287a1.15 1.15 0 0 0 1.626 1.626L12 13.626l4.287 4.287a1.15 1.15 0 0 0 1.626-1.626L13.626 12l4.287-4.287a1.15 1.15 0 1 0-1.626-1.626L12 10.374z"),c(t,"filter","url(#a)"),c(a,"flood-opacity","0"),c(a,"result","BackgroundImageFix"),c(s,"in","SourceAlpha"),c(s,"result","hardAlpha"),c(s,"values","0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0"),c(f,"stdDeviation","2.5"),c(p,"values","0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.16 0"),c(g,"in2","BackgroundImageFix"),c(g,"result","effect1_dropShadow_2422_111980"),c(y,"in","SourceGraphic"),c(y,"in2","effect1_dropShadow_2422_111980"),c(y,"result","shape"),c(r,"id","a"),c(r,"width","23"),c(r,"height","23"),c(r,"x",".5"),c(r,"y",".5"),c(r,"color-interpolation-filters","sRGB"),c(r,"filterUnits","userSpaceOnUse"),ye(e,T)},m(k,P){v(k,e,P),w&&w.m(e,null),_(e,t),_(t,n),_(t,o),_(e,l),_(l,r),_(r,a),_(r,s),_(r,u),_(r,f),_(r,p),_(r,g),_(r,y),h=!0},p(k,[P]){w&&w.p&&(!h||P&2)&&Ae(w,C,k,k[1],h?Me(C,k[1],P,null):Le(k[1]),null),ye(e,T=Be(F,[{xmlns:"http://www.w3.org/2000/svg"},{width:"24"},{height:"24"},{fill:"none"},{"aria-hidden":"true"},{"data-testid":"cross-icon"},{role:"img"},P&1&&k[0]]))},i(k){h||(d(w,k),h=!0)},o(k){m(w,k),h=!1},d(k){k&&b(e),w&&w.d(k)}}}function Hh(i,e,t){let{$$slots:n={},$$scope:o}=e;return i.$$set=l=>{t(0,e=ne(ne({},e),ve(l))),"$$scope"in l&&t(1,o=l.$$scope)},e=ve(e),[e,o,n]}var Aa=class extends B{constructor(e){super(),D(this,e,Hh,qh,R,{})}},n1=Aa;var Jn=require("@vkontakte/videoplayer-shared");function Uh(i){Ce(i,"svelte-1anemql",".btn.svelte-1anemql{padding:8px;margin:0;height:var(--controls-height);display:flex;flex-direction:row;align-items:center}.w-max.svelte-1anemql{width:100%}.btn--live.svelte-1anemql{padding:10px 4px}.btn-m.svelte-1anemql{position:absolute;left:12px;top:50%;transform:translateY(-50%);height:44px;width:44px;border-radius:12px;background-color:rgba(0, 0, 0, 0.56);transition:opacity var(--controls-transition-duration);display:flex;align-items:center;justify-content:center}.btn-m--play.svelte-1anemql{width:var(--big-play-size);height:var(--big-play-size);display:flex;align-items:center;justify-content:center;position:relative;padding:16px}.btn.svelte-1anemql:disabled{cursor:default;pointer-events:none}.btn.svelte-1anemql:not(.btn-full-opacity):disabled{opacity:0.4}.btn.svelte-1anemql:not(:disabled):hover{opacity:0.8}.pr-0.svelte-1anemql{padding-right:0}.pl-0.svelte-1anemql{padding-left:0}")}function zh(i){let e,t,n,o,l,r,a,s,u,f,p,g,y=i[14].default,h=Ee(y,i,i[13],null);return{c(){e=I("button"),h&&h.c(),c(e,"class",t="btn "+i[1]+" svelte-1anemql"),c(e,"style",n=i[2]||null),e.disabled=o=i[3]??null,c(e,"aria-hidden",l=i[5]??null),c(e,"aria-label",r=i[6]??null),c(e,"aria-keyshortcuts",a=i[7]??null),c(e,"aria-expanded",s=i[8]??null),c(e,"data-testid",u=i[4]??null),c(e,"tabindex",i[9])},m(C,w){v(C,e,w),h&&h.m(e,null),i[16](e),f=!0,p||(g=[Te(e,"pointerdown",_t(i[15])),Te(e,"click",_t(function(){zt(i[10]===Jn.noop?null:i[10])&&(i[10]===Jn.noop?null:i[10]).apply(this,arguments)})),Te(e,"focus",Yt(function(){zt(i[11]===Jn.noop?null:i[11])&&(i[11]===Jn.noop?null:i[11]).apply(this,arguments)})),Te(e,"blur",Yt(function(){zt(i[12]===Jn.noop?null:i[12])&&(i[12]===Jn.noop?null:i[12]).apply(this,arguments)}))],p=!0)},p(C,[w]){i=C,h&&h.p&&(!f||w&8192)&&Ae(h,y,i,i[13],f?Me(y,i[13],w,null):Le(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=i[3]??null))&&(e.disabled=o),(!f||w&32&&l!==(l=i[5]??null))&&c(e,"aria-hidden",l),(!f||w&64&&r!==(r=i[6]??null))&&c(e,"aria-label",r),(!f||w&128&&a!==(a=i[7]??null))&&c(e,"aria-keyshortcuts",a),(!f||w&256&&s!==(s=i[8]??null))&&c(e,"aria-expanded",s),(!f||w&16&&u!==(u=i[4]??null))&&c(e,"data-testid",u),(!f||w&512)&&c(e,"tabindex",i[9])},i(C){f||(d(h,C),f=!0)},o(C){m(h,C),f=!1},d(C){C&&b(e),h&&h.d(C),i[16](null),p=!1,at(g)}}}function Wh(i,e,t){let{$$slots:n={},$$scope:o}=e,{className:l=""}=e,{style:r=""}=e,{disabled:a=void 0}=e,{testId:s=void 0}=e,{ariaHidden:u=void 0}=e,{ariaLabel:f=void 0}=e,{ref:p=void 0}=e,{ariaKeyShortCut:g=void 0}=e,{ariaExpanded:y=void 0}=e,{tabIndex:h=0}=e,{click:C=Jn.noop}=e,{focus:w=Jn.noop}=e,{blur:F=Jn.noop}=e;function T(P){Cn.call(this,i,P)}function k(P){be[P?"unshift":"push"](()=>{p=P,t(0,p)})}return i.$$set=P=>{"className"in P&&t(1,l=P.className),"style"in P&&t(2,r=P.style),"disabled"in P&&t(3,a=P.disabled),"testId"in P&&t(4,s=P.testId),"ariaHidden"in P&&t(5,u=P.ariaHidden),"ariaLabel"in P&&t(6,f=P.ariaLabel),"ref"in P&&t(0,p=P.ref),"ariaKeyShortCut"in P&&t(7,g=P.ariaKeyShortCut),"ariaExpanded"in P&&t(8,y=P.ariaExpanded),"tabIndex"in P&&t(9,h=P.tabIndex),"click"in P&&t(10,C=P.click),"focus"in P&&t(11,w=P.focus),"blur"in P&&t(12,F=P.blur),"$$scope"in P&&t(13,o=P.$$scope)},[p,l,r,a,s,u,f,g,y,h,C,w,F,o,n,T,k]}var La=class extends B{constructor(e){super(),D(this,e,Wh,zh,R,{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},Uh)}},gt=La;function Kh(i){Ce(i,"svelte-1witlsj",".modal-overlay.svelte-1witlsj{position:absolute;top:0;bottom:0;left:0;right:0;background:transparent;display:flex;align-items:center;justify-content:center}.modal-container.svelte-1witlsj{display:flex;flex-direction:column;width:calc(100% - 32px);max-width:600px;height:calc(100% - 24px);max-height:490px;background:var(--mobile-settings-bg);color:var(--white);border-radius:8px}.modal-header.svelte-1witlsj{box-sizing:border-box;display:flex;justify-content:space-between;align-items:start;height:40px;padding:8px 10px;border-bottom:1px solid var(--white-alpha-24)}.modal-title.svelte-1witlsj{margin:3px 0 0 6px;color:var(--white);font-feature-settings:'clig' off, 'liga' off;font-size:13px;font-style:normal;font-weight:600;line-height:16px}.modal-scroll.svelte-1witlsj{overflow-y:auto;overflow-x:hidden;margin:8px 4px 8px 0;height:100%}.modal-scroll.svelte-1witlsj::-webkit-scrollbar{width:8px}.modal-scroll.svelte-1witlsj::-webkit-scrollbar-track{box-shadow:none;background-color:transparent;border-radius:4px;margin-right:2px}.modal-scroll.svelte-1witlsj::-webkit-scrollbar-thumb{min-height:40px;border-radius:5px;background-color:#666;border:1px solid transparent;background-clip:padding-box}.modal-scroll.svelte-1witlsj::-webkit-scrollbar-thumb:hover{background-color:#777}.modal-main.svelte-1witlsj{margin:-8px -4px 0 0}")}function o1(i){let e,t,n,o,l,r=i[2]&&r1(i);return{c(){e=I("div"),t=I("h3"),n=De(i[3]),o=H(),r&&r.c(),c(t,"class","modal-title svelte-1witlsj"),c(e,"class","modal-header svelte-1witlsj")},m(a,s){v(a,e,s),_(e,t),_(t,n),_(e,o),r&&r.m(e,null),l=!0},p(a,s){(!l||s&8)&&xe(n,a[3]),a[2]?r?(r.p(a,s),s&4&&d(r,1)):(r=r1(a),r.c(),d(r,1),r.m(e,null)):r&&(ae(),m(r,1,1,()=>{r=null}),ue())},i(a){l||(d(r),l=!0)},o(a){m(r),l=!1},d(a){a&&b(e),r&&r.d()}}}function r1(i){let e,t;return e=new gt({props:{click:i[0],testId:"close-modal",style:"padding: 0; height: 24px; width: 24px",ariaLabel:U("hotkey_map_modal_close_btn_text"),$$slots:{default:[jh]},$$scope:{ctx:i}}}),{c(){A(e.$$.fragment)},m(n,o){E(e,n,o),t=!0},p(n,o){let l={};o&1&&(l.click=n[0]),o&32&&(l.$$scope={dirty:o,ctx:n}),e.$set(l)},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){m(e.$$.fragment,n),t=!1},d(n){M(e,n)}}}function jh(i){let e,t;return e=new n1({}),{c(){A(e.$$.fragment)},m(n,o){E(e,n,o),t=!0},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){m(e.$$.fragment,n),t=!1},d(n){M(e,n)}}}function Gh(i){let e,t,n,o,l,r,a=i[1]&&o1(i),s=i[4].default,u=Ee(s,i,i[5],null);return{c(){e=I("div"),t=I("div"),a&&a.c(),n=H(),o=I("div"),l=I("div"),u&&u.c(),c(l,"class","modal-main svelte-1witlsj"),c(o,"class","modal-scroll svelte-1witlsj"),c(t,"class","modal-container svelte-1witlsj"),c(e,"class","modal-overlay svelte-1witlsj")},m(f,p){v(f,e,p),_(e,t),a&&a.m(t,null),_(t,n),_(t,o),_(o,l),u&&u.m(l,null),r=!0},p(f,[p]){f[1]?a?(a.p(f,p),p&2&&d(a,1)):(a=o1(f),a.c(),d(a,1),a.m(t,n)):a&&(ae(),m(a,1,1,()=>{a=null}),ue()),u&&u.p&&(!r||p&32)&&Ae(u,s,f,f[5],r?Me(s,f[5],p,null):Le(f[5]),null)},i(f){r||(d(a),d(u,f),r=!0)},o(f){m(a),m(u,f),r=!1},d(f){f&&b(e),a&&a.d(),u&&u.d(f)}}}function xh(i,e,t){let{$$slots:n={},$$scope:o}=e,{onClose:l}=e,{showHeader:r=!0}=e,{showCloseCross:a=!0}=e,{title:s}=e;return i.$$set=u=>{"onClose"in u&&t(0,l=u.onClose),"showHeader"in u&&t(1,r=u.showHeader),"showCloseCross"in u&&t(2,a=u.showCloseCross),"title"in u&&t(3,s=u.title),"$$scope"in u&&t(5,o=u.$$scope)},[l,r,a,s,n,o]}var Va=class extends B{constructor(e){super(),D(this,e,xh,Gh,R,{onClose:0,showHeader:1,showCloseCross:2,title:3},Kh)}},l1=Va;var Yh=new Set(["BR"]),Ra=i=>{let e=document.createElement("DIV");e.innerHTML=i;let t=e.querySelectorAll("*"),n=t.length;for(;n--;){let o=t[n],l=o.tagName;Yh.has(l)||o.parentElement?.removeChild(o)}return e.innerHTML};function Qh(i){Ce(i,"svelte-quklnq",".hot-key-map.svelte-quklnq{color:var(--black);box-sizing:border-box;overflow-x:hidden}.hot-key-map-group.svelte-quklnq{border-bottom:1px solid var(--white-alpha-24);margin:0 20px 0 16px}.hot-key-map-group.svelte-quklnq:last-child{border-bottom:none}.hot-key-map-group-title.svelte-quklnq{color:var(--white);font-feature-settings:'clig' off, 'liga' off;font-size:13px;font-style:normal;font-weight:600;line-height:16px}.hot-key-map-group-title.svelte-quklnq,.hot-key-map-item.svelte-quklnq{padding:12px 0;margin:0;width:100%}.hot-key-map-group-items.svelte-quklnq{box-sizing:border-box;list-style:none;padding:0;margin:0}.hot-key-map-item.svelte-quklnq{box-sizing:border-box;display:flex;justify-content:space-between;align-items:center;--videoplayer-hotkey-item-value-width:156px;--videoplayer-hotkey-item-value-padding-left:24px}.hot-key-map-item-description.svelte-quklnq{color:var(--white-alpha-72);width:calc(100% - var(--videoplayer-hotkey-item-value-width) - var(--videoplayer-hotkey-item-value-padding-left));max-width:388px}.hot-key-map-item-value.svelte-quklnq{color:var(--white);width:var(--videoplayer-hotkey-item-value-width);padding-left:var(--videoplayer-hotkey-item-value-padding-left);letter-spacing:-0.14px}.hot-key-map-item-description.svelte-quklnq,.hot-key-map-item-value.svelte-quklnq{font-feature-settings:'clig' off, 'liga' off;font-size:13px;font-style:normal;font-weight:400;line-height:16px}")}function s1(i,e,t){let n=i.slice();return n[5]=e[t].title,n[6]=e[t].items,n}function a1(i,e,t){let n=i.slice();return n[9]=e[t].description,n[10]=e[t].value,n}function u1(i){let e,t,n=Ra(i[9])+"",o,l,r=i[10]+"",a,s;return{c(){e=I("li"),t=I("span"),o=H(),l=I("span"),a=De(r),s=H(),c(t,"class","hot-key-map-item-description svelte-quklnq"),c(l,"class","hot-key-map-item-value svelte-quklnq"),c(e,"class","hot-key-map-item svelte-quklnq")},m(u,f){v(u,e,f),_(e,t),t.innerHTML=n,_(e,o),_(e,l),_(l,a),_(e,s)},p(u,f){f&1&&n!==(n=Ra(u[9])+"")&&(t.innerHTML=n),f&1&&r!==(r=u[10]+"")&&xe(a,r)},d(u){u&&b(e)}}}function c1(i){let e,t,n=i[5]+"",o,l,r,a,s=ht(i[6]),u=[];for(let f=0;f<s.length;f+=1)u[f]=u1(a1(i,s,f));return{c(){e=I("div"),t=I("h5"),o=De(n),l=H(),r=I("ul");for(let f=0;f<u.length;f+=1)u[f].c();a=H(),c(t,"class","hot-key-map-group-title svelte-quklnq"),c(r,"class","hot-key-map-group-items svelte-quklnq"),c(e,"class","hot-key-map-group svelte-quklnq")},m(f,p){v(f,e,p),_(e,t),_(t,o),_(e,l),_(e,r);for(let g=0;g<u.length;g+=1)u[g]&&u[g].m(r,null);_(e,a)},p(f,p){if(p&1&&n!==(n=f[5]+"")&&xe(o,n),p&1){s=ht(f[6]);let g;for(g=0;g<s.length;g+=1){let y=a1(f,s,g);u[g]?u[g].p(y,p):(u[g]=u1(y),u[g].c(),u[g].m(r,null))}for(;g<u.length;g+=1)u[g].d(1);u.length=s.length}},d(f){f&&b(e),Jt(u,f)}}}function Zh(i){let e,t=ht(i[0].groups),n=[];for(let o=0;o<t.length;o+=1)n[o]=c1(s1(i,t,o));return{c(){e=I("div");for(let o=0;o<n.length;o+=1)n[o].c();c(e,"class","hot-key-map svelte-quklnq")},m(o,l){v(o,e,l);for(let r=0;r<n.length;r+=1)n[r]&&n[r].m(e,null)},p(o,l){if(l&1){t=ht(o[0].groups);let r;for(r=0;r<t.length;r+=1){let a=s1(o,t,r);n[r]?n[r].p(a,l):(n[r]=c1(a),n[r].c(),n[r].m(e,null))}for(;r<n.length;r+=1)n[r].d(1);n.length=t.length}},d(o){o&&b(e),Jt(n,o)}}}function Xh(i){let e,t;return e=new l1({props:{title:i[0].title,onClose:i[2],$$slots:{default:[Zh]},$$scope:{ctx:i}}}),{c(){A(e.$$.fragment)},m(n,o){E(e,n,o),t=!0},p(n,[o]){let l={};o&1&&(l.title=n[0].title),o&8193&&(l.$$scope={dirty:o,ctx:n}),e.$set(l)},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){m(e.$$.fragment,n),t=!1},d(n){M(e,n)}}}function Jh(i,e,t){let n,o=ot(),{data:l,show:r}=o.ui.modals.hotKeyMap;return O(i,l,s=>t(0,n=s)),[n,l,()=>{r.set(!1)}]}var Ba=class extends B{constructor(e){super(),D(this,e,Jh,Xh,R,{},Qh)}},f1=Ba;var ks=require("@vkontakte/videoplayer-shared");var Ol;function kr(i){return Ol||(Ol=new ResizeObserver(e=>{for(let t of e)t.target.dispatchEvent(new CustomEvent("fd:resize"))})),Ol.observe(i),{destroy(){Ol.unobserve(i)}}}var xo=require("@vkontakte/videoplayer-core");var Ko={ru:"\u0420\u0443\u0441\u0441\u043A\u0438\u0439",en:"English",uk:"\u0423\u043A\u0440\u0430\u0457\u043D\u0441\u044C\u043A\u0430",be:"\u0411\u0435\u043B\u0430\u0440\u0443\u0441\u043A\u0430\u044F (\u0442\u0430\u0440\u0430\u0448\u043A\u0435\u0432i\u0446\u0430)",es:"Espa\xF1ol",fi:"Suomi",de:"Deutsch",it:"Italiano",bg:"\u0411\u044A\u043B\u0433\u0430\u0440\u0441\u043A\u0438",hr:"Hrvatski",hu:"Magyar",sr:"\u0421\u0440\u043F\u0441\u043A\u0438",pt:"Portugu\xEAs",el:"\u0395\u03BB\u03BB\u03B7\u03BD\u03B9\u03BA\u03AC",pl:"Polski",fr:"Fran\xE7ais",ko:"\uD55C\uAD6D\uC5B4","zh-CN":"\u6C49\u8BED",lt:"Lietuvi\u0173",ja:"\u65E5\u672C\u8A9E",cs:"\u010Ce\u0161tina",et:"Eesti",tt:"\u0422\u0430\u0442\u0430\u0440\u0447\u0430",ba:"\u0411\u0430\u0448\u04A1\u043E\u0440\u0442\u0441\u0430",cv:"\u0427\u0103\u0432\u0430\u0448\u043B\u0430",sk:"Sloven\u010Dina",ro:"Rom\xE2n\u0103",no:"Norsk",lv:"Latvie\u0161u",az:"Az\u0259rbaycan dili",hy:"\u0540\u0561\u0575\u0565\u0580\u0565\u0576",sv:"Svenska",nl:"Nederlands",tk:"T\xFCrkmen",ka:"\u10E5\u10D0\u10E0\u10D7\u10E3\u10DA\u10D8",da:"Dansk",uz:"O\u2018zbek",th:"\u0E20\u0E32\u0E29\u0E32\u0E44\u0E17\u0E22",id:"Bahasa Indonesia",tg:"\u0422\u043E\u04B7\u0438\u043A\u04E3",sl:"Sloven\u0161\u010Dina",bs:"Bosanski","pt-BR":"Portugu\xEAs brasileiro",fa:"\u0641\u0627\u0631\u0633\u06CC",vi:"Ti\u1EBFng Vi\u1EC7t",hi:"\u0939\u093F\u0928\u094D\u0926\u0940",si:"\u0DC3\u0DD2\u0D82\u0DC4\u0DBD",bn:"\u09AC\u09BE\u0982\u09B2\u09BE",tl:"Tagalog",mn:"\u041C\u043E\u043D\u0433\u043E\u043B",my:"\u1017\u1019\u102C\u1005\u102C",tr:"T\xFCrk\xE7e",ne:"\u0928\u0947\u092A\u093E\u0932\u0940",ur:"\u0627\u0631\u062F\u0648",ky:"\u041A\u044B\u0440\u0433\u044B\u0437 \u0442\u0438\u043B\u0438",pa:"\u067E\u0646\u062C\u0627\u0628\u06CC",os:"\u0418\u0440\u043E\u043D",kn:"\u0C95\u0CA8\u0CCD\u0CA8\u0CA1",sw:"Kiswahili",kk:"\u049A\u0430\u0437\u0430\u049B\u0448\u0430",ar:"\u0627\u0644\u0639\u0631\u0628\u064A\u0629",he:"\u05E2\u05D1\u05E8\u05D9\u05EA",ab:"\u0410\u04A7\u0441\u0448\u04D9\u0430",eu:"Euskara",eo:"Esperanto"},d1={abk:"as",ara:"ar",aze:"az",bak:"ba",bel:"be",ben:"bn",bos:"bs",bul:"bg",ces:"cs",chv:"cv",dan:"da",deu:"de",ell:"el",eng:"en",epo:"eo",est:"et",eus:"eu",fas:"fa",fin:"fi",fra:"fr",heb:"he",hin:"hi",hrv:"hr",hun:"hu",hye:"hy",ind:"id",ita:"it",jpn:"ja",kan:"kn",kat:"ka",kaz:"kk",kir:"ky",kor:"ko",lav:"lv",lit:"lt",mon:"mn",mya:"my",nep:"ne",nld:"nl",nor:"no",oss:"os",pan:"pa",pol:"pl",por:"pt",ron:"ro",rus:"ru",sin:"si",slk:"sk",slv:"sl",spa:"es",srp:"sr",swa:"sw",swe:"sv",tat:"tt",tgk:"tg",tgl:"tl",tha:"th",tuk:"tk",tur:"tr",ukr:"uk",urd:"ur",uzb:"uz",vie:"vi"};var $h=i=>Ko[i]??Ko[d1[i]]??void 0,Fl=(i,e)=>String(e.findIndex(t=>t.id===i.id)+1),ql=(i,e)=>{if(!i)return"";let{language:t,label:n}=i,o;if(t==="und"?o=void 0:t&&(o=$h(t)??t),n&&t&&o){let r=e.filter(a=>a.label===n&&a.language===t);if(r.length===1)return U("audio_stream_display_language_label",{language:o,label:n});{let a=Fl(i,r);return U("audio_stream_display_language_label_index",{language:o,label:n,index:a})}}if(n){let r=e.filter(a=>a.label===n);if(r.length===1)return n;{let a=Fl(i,r);return U("audio_stream_display_label_index",{label:n,index:a})}}if(t&&o){let r=e.filter(a=>a.language===t);if(r.length===1)return o;{let a=Fl(i,r);return U("audio_stream_display_language_index",{language:o,index:a})}}let l=Fl(i,e);return U("audio_stream_display_unknown",{index:l})};function eb(i){let e,t,n,o=i[2].default,l=Ee(o,i,i[1],null),r=[{xmlns:"http://www.w3.org/2000/svg"},{width:"16"},{height:"16"},{"aria-hidden":"true"},{"data-testid":"check-mark-icon"},{role:"img"},i[0]],a={};for(let s=0;s<r.length;s+=1)a=ne(a,r[s]);return{c(){e=V("svg"),l&&l.c(),t=V("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"),ye(e,a)},m(s,u){v(s,e,u),l&&l.m(e,null),_(e,t),n=!0},p(s,[u]){l&&l.p&&(!n||u&2)&&Ae(l,o,s,s[1],n?Me(o,s[1],u,null):Le(s[1]),null),ye(e,a=Be(r,[{xmlns:"http://www.w3.org/2000/svg"},{width:"16"},{height:"16"},{"aria-hidden":"true"},{"data-testid":"check-mark-icon"},{role:"img"},u&1&&s[0]]))},i(s){n||(d(l,s),n=!0)},o(s){m(l,s),n=!1},d(s){s&&b(e),l&&l.d(s)}}}function tb(i,e,t){let{$$slots:n={},$$scope:o}=e;return i.$$set=l=>{t(0,e=ne(ne({},e),ve(l))),"$$scope"in l&&t(1,o=l.$$scope)},e=ve(e),[e,o,n]}var Da=class extends B{constructor(e){super(),D(this,e,tb,eb,R,{})}},m1=Da;function ib(i){Ce(i,"svelte-124aexk",".select-icon.svelte-124aexk{margin-right:auto;padding-right:12px;opacity:0.9;position:relative;top:3px}")}function p1(i){let e,t,n;return t=new m1({}),{c(){e=I("div"),A(t.$$.fragment),c(e,"class","select-icon svelte-124aexk")},m(o,l){v(o,e,l),E(t,e,null),n=!0},i(o){n||(d(t.$$.fragment,o),n=!0)},o(o){m(t.$$.fragment,o),n=!1},d(o){o&&b(e),M(t)}}}function nb(i){let e,t=(i[1].label??i[1].value)+"",n;return{c(){e=I("div"),n=De(t),c(e,"class","menu-item-value"),j(e,"submenu-value-mobile",i[0])},m(o,l){v(o,e,l),_(e,n)},p(o,l){l&2&&t!==(t=(o[1].label??o[1].value)+"")&&xe(n,t),l&1&&j(e,"submenu-value-mobile",o[0])},i:he,o:he,d(o){o&&b(e)}}}function ob(i){let e,t,n,o=[i[1].valueComponentParams??{}];var l=i[1].valueComponent;function r(a,s){let u={};for(let f=0;f<o.length;f+=1)u=ne(u,o[f]);return s!==void 0&&s&2&&(u=ne(u,Be(o,[Wr(a[1].valueComponentParams??{})]))),{props:u}}return l&&(e=Dt(l,r(i))),{c(){e&&A(e.$$.fragment),t=it()},m(a,s){e&&E(e,a,s),v(a,t,s),n=!0},p(a,s){if(s&2&&l!==(l=a[1].valueComponent)){if(e){ae();let u=e;m(u.$$.fragment,1,0,()=>{M(u,1)}),ue()}l?(e=Dt(l,r(a,s)),A(e.$$.fragment),d(e.$$.fragment,1),E(e,t.parentNode,t)):e=null}else if(l){let u=s&2?Be(o,[Wr(a[1].valueComponentParams??{})]):{};e.$set(u)}},i(a){n||(e&&d(e.$$.fragment,a),n=!0)},o(a){e&&m(e.$$.fragment,a),n=!1},d(a){a&&b(t),e&&M(e,a)}}}function rb(i){let e,t,n,o,l,r,a,s,u,f=i[1].selected&&p1(i),p=[ob,nb],g=[];function y(h,C){return h[1].valueComponent?0:1}return n=y(i,-1),o=g[n]=p[n](i),{c(){e=I("li"),f&&f.c(),t=H(),o.c(),c(e,"class","item"),c(e,"data-value",l=i[1].dataValue??i[1].value),c(e,"role","menuitem"),c(e,"tabindex","0"),c(e,"aria-label",r=i[1].ariaLabel??i[1].label??i[1].value.toString()),j(e,"mobile",i[0])},m(h,C){v(h,e,C),f&&f.m(e,null),_(e,t),g[n].m(e,null),a=!0,s||(u=[Te(e,"click",_t(i[4])),Te(e,"keydown",i[5])],s=!0)},p(h,[C]){h[1].selected?f?C&2&&d(f,1):(f=p1(h),f.c(),d(f,1),f.m(e,t)):f&&(ae(),m(f,1,1,()=>{f=null}),ue());let w=n;n=y(h,C),n===w?g[n].p(h,C):(ae(),m(g[w],1,1,()=>{g[w]=null}),ue(),o=g[n],o?o.p(h,C):(o=g[n]=p[n](h),o.c()),d(o,1),o.m(e,null)),(!a||C&2&&l!==(l=h[1].dataValue??h[1].value))&&c(e,"data-value",l),(!a||C&2&&r!==(r=h[1].ariaLabel??h[1].label??h[1].value.toString()))&&c(e,"aria-label",r),(!a||C&1)&&j(e,"mobile",h[0])},i(h){a||(d(f),d(o),a=!0)},o(h){m(f),m(o),a=!1},d(h){h&&b(e),f&&f.d(),g[n].d(),s=!1,at(u)}}}function lb(i,e,t){let{isMobile:n=!1}=e,{item:o}=e,{selectItem:l}=e,r=(u,f)=>{br(u,()=>l(f))},a=()=>l(o.value),s=u=>r(u,o.value);return i.$$set=u=>{"isMobile"in u&&t(0,n=u.isMobile),"item"in u&&t(1,o=u.item),"selectItem"in u&&t(2,l=u.selectItem)},[n,o,l,r,a,s]}var Na=class extends B{constructor(e){super(),D(this,e,lb,rb,R,{isMobile:0,item:1,selectItem:2},ib)}},_1=Na;function sb(i){let e,t,n,o=i[2].default,l=Ee(o,i,i[1],null),r=[{xmlns:"http://www.w3.org/2000/svg"},{width:"12"},{height:"7"},{fill:"none"},{"aria-hidden":"true"},{role:"img"},i[0]],a={};for(let s=0;s<r.length;s+=1)a=ne(a,r[s]);return{c(){e=V("svg"),l&&l.c(),t=V("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"),ye(e,a)},m(s,u){v(s,e,u),l&&l.m(e,null),_(e,t),n=!0},p(s,[u]){l&&l.p&&(!n||u&2)&&Ae(l,o,s,s[1],n?Me(o,s[1],u,null):Le(s[1]),null),ye(e,a=Be(r,[{xmlns:"http://www.w3.org/2000/svg"},{width:"12"},{height:"7"},{fill:"none"},{"aria-hidden":"true"},{role:"img"},u&1&&s[0]]))},i(s){n||(d(l,s),n=!0)},o(s){m(l,s),n=!1},d(s){s&&b(e),l&&l.d(s)}}}function ab(i,e,t){let{$$slots:n={},$$scope:o}=e;return i.$$set=l=>{t(0,e=ne(ne({},e),ve(l))),"$$scope"in l&&t(1,o=l.$$scope)},e=ve(e),[e,o,n]}var Oa=class extends B{constructor(e){super(),D(this,e,ab,sb,R,{})}},g1=Oa;function ub(i){let e,t,n,o=i[2].default,l=Ee(o,i,i[1],null),r=[{xmlns:"http://www.w3.org/2000/svg"},{width:"12"},{height:"16"},{fill:"none"},{"aria-hidden":"true"},{role:"img"},i[0]],a={};for(let s=0;s<r.length;s+=1)a=ne(a,r[s]);return{c(){e=V("svg"),l&&l.c(),t=V("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"),ye(e,a)},m(s,u){v(s,e,u),l&&l.m(e,null),_(e,t),n=!0},p(s,[u]){l&&l.p&&(!n||u&2)&&Ae(l,o,s,s[1],n?Me(o,s[1],u,null):Le(s[1]),null),ye(e,a=Be(r,[{xmlns:"http://www.w3.org/2000/svg"},{width:"12"},{height:"16"},{fill:"none"},{"aria-hidden":"true"},{role:"img"},u&1&&s[0]]))},i(s){n||(d(l,s),n=!0)},o(s){m(l,s),n=!1},d(s){s&&b(e),l&&l.d(s)}}}function cb(i,e,t){let{$$slots:n={},$$scope:o}=e;return i.$$set=l=>{t(0,e=ne(ne({},e),ve(l))),"$$scope"in l&&t(1,o=l.$$scope)},e=ve(e),[e,o,n]}var Fa=class extends B{constructor(e){super(),D(this,e,cb,ub,R,{})}},h1=Fa;function fb(i){let e,t;return e=new h1({props:{style:i[2],"data-testid":i[0]?"chevron-icon--right":"chevron-icon--left"}}),{c(){A(e.$$.fragment)},m(n,o){E(e,n,o),t=!0},p(n,o){let l={};o&4&&(l.style=n[2]),o&1&&(l["data-testid"]=n[0]?"chevron-icon--right":"chevron-icon--left"),e.$set(l)},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){m(e.$$.fragment,n),t=!1},d(n){M(e,n)}}}function db(i){let e,t;return e=new g1({props:{style:i[2],"data-testid":i[0]?"chevron-icon--down":"chevron-icon--up"}}),{c(){A(e.$$.fragment)},m(n,o){E(e,n,o),t=!0},p(n,o){let l={};o&4&&(l.style=n[2]),o&1&&(l["data-testid"]=n[0]?"chevron-icon--down":"chevron-icon--up"),e.$set(l)},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){m(e.$$.fragment,n),t=!1},d(n){M(e,n)}}}function mb(i){let e,t,n,o,l=[db,fb],r=[];function a(s,u){return s[1]?0:1}return e=a(i,-1),t=r[e]=l[e](i),{c(){t.c(),n=it()},m(s,u){r[e].m(s,u),v(s,n,u),o=!0},p(s,[u]){let f=e;e=a(s,u),e===f?r[e].p(s,u):(ae(),m(r[f],1,1,()=>{r[f]=null}),ue(),t=r[e],t?t.p(s,u):(t=r[e]=l[e](s),t.c()),d(t,1),t.m(n.parentNode,n))},i(s){o||(d(t),o=!0)},o(s){m(t),o=!1},d(s){s&&b(n),r[e].d(s)}}}function pb(i,e,t){let n,{direction:o="left"}=e,l,r;return i.$$set=a=>{"direction"in a&&t(3,o=a.direction)},i.$$.update=()=>{i.$$.dirty&8&&(t(1,l=["up","down"].includes(o)),t(0,r=["right","down"].includes(o))),i.$$.dirty&1&&t(2,n=r?"transform: rotate(180deg);":void 0)},[r,l,n,o]}var qa=class extends B{constructor(e){super(),D(this,e,pb,mb,R,{direction:3})}},jo=qa;var qn={"quality-settings":100,"audio-language-settings":200,"playback-rate-settings":300,"subtitles-settings":400,"traffic-saving-settings":500,download:600,report:700,"copy-data":800,"save-trace-info":900,"debug-info":1e3};function gb(i){Ce(i,"svelte-1mrc4z3",'.sub-menu.svelte-1mrc4z3.svelte-1mrc4z3{line-height:32px;padding-bottom:0;padding-top:42px}.sub-menu.mobile.svelte-1mrc4z3.svelte-1mrc4z3{padding-top:58px}.sub-menu.svelte-1mrc4z3 .item{padding:0 12px}.sub-menu.svelte-1mrc4z3 .item.mobile{padding:0 14px}.sub-menu.svelte-1mrc4z3 .item.header.svelte-1mrc4z3{padding-top:6px;box-sizing:border-box;width:100%;justify-content:space-between;column-gap:12px;border-bottom:var(--divider-border);position:absolute;top:0}.sub-menu[data-testid="sub-menu-quality-settings"].svelte-1mrc4z3 .header.svelte-1mrc4z3{padding-right:34px}')}function b1(i,e,t){let n=i.slice();return n[23]=e[t],n}function v1(i){let e,t;return e=new _1({props:{item:i[23],isMobile:i[2],selectItem:i[7]}}),{c(){A(e.$$.fragment)},m(n,o){E(e,n,o),t=!0},p(n,o){let l={};o&64&&(l.item=n[23]),o&4&&(l.isMobile=n[2]),o&128&&(l.selectItem=n[7]),e.$set(l)},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){m(e.$$.fragment,n),t=!1},d(n){M(e,n)}}}function hb(i){let e,t,n,o,l,r,a,s,u,f,p,g,y,h;o=new jo({props:{direction:"left"}});let C=ht(i[6]),w=[];for(let T=0;T<C.length;T+=1)w[T]=v1(b1(i,C,T));let F=T=>m(w[T],1,1,()=>{w[T]=null});return{c(){e=I("div"),t=I("ul"),n=I("li"),A(o.$$.fragment),l=H(),r=I("div"),a=De(i[5]),s=H();for(let T=0;T<w.length;T+=1)w[T].c();c(n,"class","item header svelte-1mrc4z3"),c(n,"role","menuitem"),c(n,"tabindex","0"),c(n,"data-testid","return-to-settings-menu"),c(n,"aria-label",i[4]),j(n,"mobile",i[2]),c(t,"class","items"),c(t,"role","menu"),c(t,"style",u=i[13](i[9]?.clientHeight)),j(t,"mobile",i[2]),c(e,"class","sub-menu menu svelte-1mrc4z3"),c(e,"data-testid",f=`sub-menu-${i[1]}`),c(e,"style",p=`min-width: ${i[8]}px`),j(e,"desktop",!i[2]),j(e,"mobile",i[2])},m(T,k){v(T,e,k),_(e,t),_(t,n),E(o,n,null),_(n,l),_(n,r),_(r,a),i[18](n),_(t,s);for(let P=0;P<w.length;P+=1)w[P]&&w[P].m(t,null);i[19](t),g=!0,y||(h=[Te(n,"click",_t(function(){zt(i[3])&&i[3].apply(this,arguments)})),Te(t,"keydown",i[12])],y=!0)},p(T,[k]){if(i=T,(!g||k&32)&&xe(a,i[5]),(!g||k&16)&&c(n,"aria-label",i[4]),(!g||k&4)&&j(n,"mobile",i[2]),k&196){C=ht(i[6]);let P;for(P=0;P<C.length;P+=1){let G=b1(i,C,P);w[P]?(w[P].p(G,k),d(w[P],1)):(w[P]=v1(G),w[P].c(),d(w[P],1),w[P].m(t,null))}for(ae(),P=C.length;P<w.length;P+=1)F(P);ue()}(!g||k&512&&u!==(u=i[13](i[9]?.clientHeight)))&&c(t,"style",u),(!g||k&4)&&j(t,"mobile",i[2]),(!g||k&2&&f!==(f=`sub-menu-${i[1]}`))&&c(e,"data-testid",f),(!g||k&256&&p!==(p=`min-width: ${i[8]}px`))&&c(e,"style",p),(!g||k&4)&&j(e,"desktop",!i[2]),(!g||k&4)&&j(e,"mobile",i[2])},i(T){if(!g){d(o.$$.fragment,T);for(let k=0;k<C.length;k+=1)d(w[k]);g=!0}},o(T){m(o.$$.fragment,T),w=w.filter(Boolean);for(let k=0;k<w.length;k+=1)m(w[k]);g=!1},d(T){T&&b(e),M(o),i[18](null),Jt(w,T),i[19](null),y=!1,at(h)}}}function bb(i,e,t){let n,o,{id:l}=e,{isMobile:r=!1}=e,{playerControlsHeight:a=0}=e,{returnFromSubMenu:s}=e,{ariaLabelReturnFromSubMenu:u=U("aria_label_submenu_back")}=e,{title:f}=e,{listRef:p}=e,{closeSettingsMenu:g}=e,{backToMainSettings:y}=e,{itemIdReturnCase:h}=e,{items:C}=e,{selectItem:w}=e,{minWidth:F}=e,T=ot(),k=T.ui.isFullscreen;O(i,k,L=>t(21,o=L));let P=T.ui.playerSize;O(i,P,L=>t(20,n=L));let G,W=L=>{Id(L,y,{itemIdReturnCase:h,id:l},g)},z=(L=0)=>r&&o?`max-height: ${Math.round(n.height*.6)}px`:r?"":`max-height: ${n.height-32-L-a}px; overflow: auto;`;function le(L){be[L?"unshift":"push"](()=>{G=L,t(9,G)})}function de(L){be[L?"unshift":"push"](()=>{p=L,t(0,p)})}return i.$$set=L=>{"id"in L&&t(1,l=L.id),"isMobile"in L&&t(2,r=L.isMobile),"playerControlsHeight"in L&&t(14,a=L.playerControlsHeight),"returnFromSubMenu"in L&&t(3,s=L.returnFromSubMenu),"ariaLabelReturnFromSubMenu"in L&&t(4,u=L.ariaLabelReturnFromSubMenu),"title"in L&&t(5,f=L.title),"listRef"in L&&t(0,p=L.listRef),"closeSettingsMenu"in L&&t(15,g=L.closeSettingsMenu),"backToMainSettings"in L&&t(16,y=L.backToMainSettings),"itemIdReturnCase"in L&&t(17,h=L.itemIdReturnCase),"items"in L&&t(6,C=L.items),"selectItem"in L&&t(7,w=L.selectItem),"minWidth"in L&&t(8,F=L.minWidth)},[p,l,r,s,u,f,C,w,F,G,k,P,W,z,a,g,y,h,le,de]}var Ha=class extends B{constructor(e){super(),D(this,e,bb,hb,R,{id:1,isMobile:2,playerControlsHeight:14,returnFromSubMenu:3,ariaLabelReturnFromSubMenu:4,title:5,listRef:0,closeSettingsMenu:15,backToMainSettings:16,itemIdReturnCase:17,items:6,selectItem:7,minWidth:8},gb)}},y1=Ha;var k1=require("@vkontakte/videoplayer-shared");function vb(i){let e,t,n,o;return{c(){e=I("img"),c(e,"class","icon"),oo(e.src,t=i[0])||c(e,"src",t),c(e,"aria-hidden","true")},m(l,r){v(l,e,r),n||(o=Te(e,"error",i[2]),n=!0)},p(l,r){r&1&&!oo(e.src,t=l[0])&&c(e,"src",t)},d(l){l&&b(e),n=!1,o()}}}function yb(i){let e;return{c(){e=I("div"),e.innerHTML='<div class="inner"></div>',c(e,"class","icon icon-error-stub")},m(t,n){v(t,e,n)},p:he,d(t){t&&b(e)}}}function kb(i){let e;function t(l,r){return l[1]?yb:vb}let n=t(i,-1),o=n(i);return{c(){o.c(),e=it()},m(l,r){o.m(l,r),v(l,e,r)},p(l,[r]){n===(n=t(l,r))&&o?o.p(l,r):(o.d(1),o=n(l),o&&(o.c(),o.m(e.parentNode,e)))},i:he,o:he,d(l){l&&b(e),o.d(l)}}}function wb(i,e,t){let n,{icon:o}=e,l=()=>{t(1,n=!0)};return i.$$set=r=>{"icon"in r&&t(0,o=r.icon)},t(1,n=!1),[o,n,l]}var za=class extends B{constructor(e){super(),D(this,e,wb,kb,R,{icon:0})}},Hl=za;function Cb(i){Ce(i,"svelte-1ikfjte",".value.svelte-1ikfjte{position:relative;opacity:0.7;overflow:hidden;text-overflow:ellipsis}")}function Sb(i){let e,t,n;var o=i[8];function l(r,a){return{}}return o&&(e=Dt(o,l(i))),{c(){e&&A(e.$$.fragment),t=it()},m(r,a){e&&E(e,r,a),v(r,t,a),n=!0},p(r,a){if(a&256&&o!==(o=r[8])){if(e){ae();let s=e;m(s.$$.fragment,1,0,()=>{M(s,1)}),ue()}o?(e=Dt(o,l(r,a)),A(e.$$.fragment),d(e.$$.fragment,1),E(e,t.parentNode,t)):e=null}},i(r){n||(e&&d(e.$$.fragment,r),n=!0)},o(r){e&&m(e.$$.fragment,r),n=!1},d(r){r&&b(t),e&&M(e,r)}}}function Ib(i){let e,t;return e=new Hl({props:{icon:i[8]}}),{c(){A(e.$$.fragment)},m(n,o){E(e,n,o),t=!0},p(n,o){let l={};o&256&&(l.icon=n[8]),e.$set(l)},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){m(e.$$.fragment,n),t=!1},d(n){M(e,n)}}}function Tb(i){let e,t;return{c(){e=I("div"),t=De(i[6]),c(e,"class","value svelte-1ikfjte")},m(n,o){v(n,e,o),_(e,t)},p(n,o){o&64&&xe(t,n[6])},i:he,o:he,d(n){n&&b(e)}}}function Pb(i){let e,t,n;var o=i[7];function l(r,a){return{}}return o&&(e=Dt(o,l(i))),{c(){e&&A(e.$$.fragment),t=it()},m(r,a){e&&E(e,r,a),v(r,t,a),n=!0},p(r,a){if(a&128&&o!==(o=r[7])){if(e){ae();let s=e;m(s.$$.fragment,1,0,()=>{M(s,1)}),ue()}o?(e=Dt(o,l(r,a)),A(e.$$.fragment),d(e.$$.fragment,1),E(e,t.parentNode,t)):e=null}},i(r){n||(e&&d(e.$$.fragment,r),n=!0)},o(r){e&&m(e.$$.fragment,r),n=!1},d(r){r&&b(t),e&&M(e,r)}}}function Eb(i){let e,t,n,o,l,r,a,s,u,f,p,g,y,h=[Ib,Sb],C=[];function w(P,G){return typeof P[8]=="string"?0:1}n=w(i,-1),o=C[n]=h[n](i);let F=[Pb,Tb],T=[];function k(P,G){return P[7]?0:1}return u=k(i,-1),f=T[u]=F[u](i),{c(){e=I("li"),t=I("div"),o.c(),l=H(),r=I("div"),a=De(i[4]),s=H(),f.c(),c(t,"class","icon-wrapper"),c(r,"class","label"),c(e,"class","item"),c(e,"role","menuitem"),c(e,"tabindex","0"),c(e,"aria-label",i[5]),c(e,"aria-haspopup","true"),c(e,"data-testid",i[1]),j(e,"mobile",i[2])},m(P,G){v(P,e,G),_(e,t),C[n].m(t,null),_(e,l),_(e,r),_(r,a),_(e,s),T[u].m(e,null),i[11](e),p=!0,g||(y=[Te(e,"click",_t(function(){zt(i[3])&&i[3].apply(this,arguments)})),Te(e,"keydown",i[9])],g=!0)},p(P,[G]){i=P;let W=n;n=w(i,G),n===W?C[n].p(i,G):(ae(),m(C[W],1,1,()=>{C[W]=null}),ue(),o=C[n],o?o.p(i,G):(o=C[n]=h[n](i),o.c()),d(o,1),o.m(t,null)),(!p||G&16)&&xe(a,i[4]);let z=u;u=k(i,G),u===z?T[u].p(i,G):(ae(),m(T[z],1,1,()=>{T[z]=null}),ue(),f=T[u],f?f.p(i,G):(f=T[u]=F[u](i),f.c()),d(f,1),f.m(e,null)),(!p||G&32)&&c(e,"aria-label",i[5]),(!p||G&2)&&c(e,"data-testid",i[1]),(!p||G&4)&&j(e,"mobile",i[2])},i(P){p||(d(o),d(f),p=!0)},o(P){m(o),m(f),p=!1},d(P){P&&b(e),C[n].d(),T[u].d(),i[11](null),g=!1,at(y)}}}function Mb(i,e,t){let{id:n}=e,{isMobile:o=!1}=e,{onClick:l=k1.noop}=e,{getSubItemForFocus:r}=e,{label:a}=e,{ariaLabel:s}=e,{value:u}=e,{valueComponent:f=void 0}=e,{ref:p}=e,{icon:g}=e,y=C=>Sd(C,l,r);function h(C){be[C?"unshift":"push"](()=>{p=C,t(0,p)})}return i.$$set=C=>{"id"in C&&t(1,n=C.id),"isMobile"in C&&t(2,o=C.isMobile),"onClick"in C&&t(3,l=C.onClick),"getSubItemForFocus"in C&&t(10,r=C.getSubItemForFocus),"label"in C&&t(4,a=C.label),"ariaLabel"in C&&t(5,s=C.ariaLabel),"value"in C&&t(6,u=C.value),"valueComponent"in C&&t(7,f=C.valueComponent),"ref"in C&&t(0,p=C.ref),"icon"in C&&t(8,g=C.icon)},[p,n,o,l,a,s,u,f,g,y,r,h]}var Wa=class extends B{constructor(e){super(),D(this,e,Mb,Eb,R,{id:1,isMobile:2,onClick:3,getSubItemForFocus:10,label:4,ariaLabel:5,value:6,valueComponent:7,ref:0,icon:8},Cb)}},w1=Wa;var WS=require("@vkontakte/videoplayer-shared");function Ab(i){Ce(i,"svelte-1oe0j8n",".pillow.svelte-1oe0j8n{background-color:#679FF8;color:var(--white);font-size:6px;font-weight:600;-webkit-font-smoothing:antialiased;padding:2px 4px;border-radius:12px}")}function Lb(i){let e,t,n=i[1].default,o=Ee(n,i,i[0],null);return{c(){e=I("div"),o&&o.c(),c(e,"class","pillow svelte-1oe0j8n")},m(l,r){v(l,e,r),o&&o.m(e,null),t=!0},p(l,[r]){o&&o.p&&(!t||r&1)&&Ae(o,n,l,l[0],t?Me(n,l[0],r,null):Le(l[0]),null)},i(l){t||(d(o,l),t=!0)},o(l){m(o,l),t=!1},d(l){l&&b(e),o&&o.d(l)}}}function Vb(i,e,t){let{$$slots:n={},$$scope:o}=e;return i.$$set=l=>{"$$scope"in l&&t(0,o=l.$$scope)},[o,n]}var Ka=class extends B{constructor(e){super(),D(this,e,Vb,Lb,R,{},Ab)}},C1=Ka;var wr=require("@vkontakte/videoplayer-shared");function Rb(i){let e,t,n,o,l=i[2].default,r=Ee(l,i,i[1],null),a=[{xmlns:"http://www.w3.org/2000/svg"},{width:"9"},{height:"5"},{fill:"none"},{role:"img"},i[0]],s={};for(let u=0;u<a.length;u+=1)s=ne(s,a[u]);return{c(){e=V("svg"),r&&r.c(),t=V("path"),n=V("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"),ye(e,s)},m(u,f){v(u,e,f),r&&r.m(e,null),_(e,t),_(e,n),o=!0},p(u,[f]){r&&r.p&&(!o||f&2)&&Ae(r,l,u,u[1],o?Me(l,u[1],f,null):Le(u[1]),null),ye(e,s=Be(a,[{xmlns:"http://www.w3.org/2000/svg"},{width:"9"},{height:"5"},{fill:"none"},{role:"img"},f&1&&u[0]]))},i(u){o||(d(r,u),o=!0)},o(u){m(r,u),o=!1},d(u){u&&b(e),r&&r.d(u)}}}function Bb(i,e,t){let{$$slots:n={},$$scope:o}=e;return i.$$set=l=>{t(0,e=ne(ne({},e),ve(l))),"$$scope"in l&&t(1,o=l.$$scope)},e=ve(e),[e,o,n]}var ja=class extends B{constructor(e){super(),D(this,e,Bb,Rb,R,{})}},S1=ja;function Db(i){let e,t,n,o,l=i[2].default,r=Ee(l,i,i[1],null),a=[{xmlns:"http://www.w3.org/2000/svg"},{width:"9"},{height:"5"},{fill:"none"},{role:"img"},i[0]],s={};for(let u=0;u<a.length;u+=1)s=ne(s,a[u]);return{c(){e=V("svg"),r&&r.c(),t=V("path"),n=V("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"),ye(e,s)},m(u,f){v(u,e,f),r&&r.m(e,null),_(e,t),_(e,n),o=!0},p(u,[f]){r&&r.p&&(!o||f&2)&&Ae(r,l,u,u[1],o?Me(l,u[1],f,null):Le(u[1]),null),ye(e,s=Be(a,[{xmlns:"http://www.w3.org/2000/svg"},{width:"9"},{height:"5"},{fill:"none"},{role:"img"},f&1&&u[0]]))},i(u){o||(d(r,u),o=!0)},o(u){m(r,u),o=!1},d(u){u&&b(e),r&&r.d(u)}}}function Nb(i,e,t){let{$$slots:n={},$$scope:o}=e;return i.$$set=l=>{t(0,e=ne(ne({},e),ve(l))),"$$scope"in l&&t(1,o=l.$$scope)},e=ve(e),[e,o,n]}var Ga=class extends B{constructor(e){super(),D(this,e,Nb,Db,R,{})}},I1=Ga;function Ob(i){let e,t,n,o=i[2].default,l=Ee(o,i,i[1],null),r=[{xmlns:"http://www.w3.org/2000/svg"},{width:"9"},{height:"5"},{fill:"none"},{role:"img"},i[0]],a={};for(let s=0;s<r.length;s+=1)a=ne(a,r[s]);return{c(){e=V("svg"),l&&l.c(),t=V("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"),ye(e,a)},m(s,u){v(s,e,u),l&&l.m(e,null),_(e,t),n=!0},p(s,[u]){l&&l.p&&(!n||u&2)&&Ae(l,o,s,s[1],n?Me(o,s[1],u,null):Le(s[1]),null),ye(e,a=Be(r,[{xmlns:"http://www.w3.org/2000/svg"},{width:"9"},{height:"5"},{fill:"none"},{role:"img"},u&1&&s[0]]))},i(s){n||(d(l,s),n=!0)},o(s){m(l,s),n=!1},d(s){s&&b(e),l&&l.d(s)}}}function Fb(i,e,t){let{$$slots:n={},$$scope:o}=e;return i.$$set=l=>{t(0,e=ne(ne({},e),ve(l))),"$$scope"in l&&t(1,o=l.$$scope)},e=ve(e),[e,o,n]}var xa=class extends B{constructor(e){super(),D(this,e,Fb,Ob,R,{})}},T1=xa;function qb(i){let e,t,n,o=i[2].default,l=Ee(o,i,i[1],null),r=[{xmlns:"http://www.w3.org/2000/svg"},{width:"13"},{height:"5"},{fill:"none"},{role:"img"},i[0]],a={};for(let s=0;s<r.length;s+=1)a=ne(a,r[s]);return{c(){e=V("svg"),l&&l.c(),t=V("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"),ye(e,a)},m(s,u){v(s,e,u),l&&l.m(e,null),_(e,t),n=!0},p(s,[u]){l&&l.p&&(!n||u&2)&&Ae(l,o,s,s[1],n?Me(o,s[1],u,null):Le(s[1]),null),ye(e,a=Be(r,[{xmlns:"http://www.w3.org/2000/svg"},{width:"13"},{height:"5"},{fill:"none"},{role:"img"},u&1&&s[0]]))},i(s){n||(d(l,s),n=!0)},o(s){m(l,s),n=!1},d(s){s&&b(e),l&&l.d(s)}}}function Hb(i,e,t){let{$$slots:n={},$$scope:o}=e;return i.$$set=l=>{t(0,e=ne(ne({},e),ve(l))),"$$scope"in l&&t(1,o=l.$$scope)},e=ve(e),[e,o,n]}var Ya=class extends B{constructor(e){super(),D(this,e,Hb,qb,R,{})}},Ul=Ya;function Ub(i){let e,t,n,o,l=i[2].default,r=Ee(l,i,i[1],null),a=[{xmlns:"http://www.w3.org/2000/svg"},{width:"15"},{height:"7"},{fill:"none"},{role:"img"},i[0]],s={};for(let u=0;u<a.length;u+=1)s=ne(s,a[u]);return{c(){e=V("svg"),r&&r.c(),t=V("path"),n=V("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"),ye(e,s)},m(u,f){v(u,e,f),r&&r.m(e,null),_(e,t),_(e,n),o=!0},p(u,[f]){r&&r.p&&(!o||f&2)&&Ae(r,l,u,u[1],o?Me(l,u[1],f,null):Le(u[1]),null),ye(e,s=Be(a,[{xmlns:"http://www.w3.org/2000/svg"},{width:"15"},{height:"7"},{fill:"none"},{role:"img"},f&1&&u[0]]))},i(u){o||(d(r,u),o=!0)},o(u){m(r,u),o=!1},d(u){u&&b(e),r&&r.d(u)}}}function zb(i,e,t){let{$$slots:n={},$$scope:o}=e;return i.$$set=l=>{t(0,e=ne(ne({},e),ve(l))),"$$scope"in l&&t(1,o=l.$$scope)},e=ve(e),[e,o,n]}var Qa=class extends B{constructor(e){super(),D(this,e,zb,Ub,R,{})}},zl=Qa;var Wl=i=>{switch(i){case wr.VideoQuality.Q_720P:return T1;case wr.VideoQuality.Q_1080P:return Ul;case wr.VideoQuality.Q_1440P:return zl;case wr.VideoQuality.Q_2160P:return S1;case wr.VideoQuality.Q_4320P:return I1}};function Wb(i){let e,t,n,o=i[2].default,l=Ee(o,i,i[1],null),r=[{xmlns:"http://www.w3.org/2000/svg"},{width:"24"},{height:"24"},{fill:"none"},{"aria-hidden":"true"},{"data-testid":"settings-mobile-icon"},{role:"img"},i[0]],a={};for(let s=0;s<r.length;s+=1)a=ne(a,r[s]);return{c(){e=V("svg"),l&&l.c(),t=V("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"),ye(e,a)},m(s,u){v(s,e,u),l&&l.m(e,null),_(e,t),n=!0},p(s,[u]){l&&l.p&&(!n||u&2)&&Ae(l,o,s,s[1],n?Me(o,s[1],u,null):Le(s[1]),null),ye(e,a=Be(r,[{xmlns:"http://www.w3.org/2000/svg"},{width:"24"},{height:"24"},{fill:"none"},{"aria-hidden":"true"},{"data-testid":"settings-mobile-icon"},{role:"img"},u&1&&s[0]]))},i(s){n||(d(l,s),n=!0)},o(s){m(l,s),n=!1},d(s){s&&b(e),l&&l.d(s)}}}function Kb(i,e,t){let{$$slots:n={},$$scope:o}=e;return i.$$set=l=>{t(0,e=ne(ne({},e),ve(l))),"$$scope"in l&&t(1,o=l.$$scope)},e=ve(e),[e,o,n]}var Za=class extends B{constructor(e){super(),D(this,e,Kb,Wb,R,{})}},P1=Za;function jb(i){let e,t,n,o,l=i[2].default,r=Ee(l,i,i[1],null),a=[{xmlns:"http://www.w3.org/2000/svg"},{width:"24"},{height:"24"},{fill:"none"},{"data-testid":"settings-icon"},{role:"img"},i[0]],s={};for(let u=0;u<a.length;u+=1)s=ne(s,a[u]);return{c(){e=V("svg"),r&&r.c(),t=V("path"),n=V("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"),ye(e,s)},m(u,f){v(u,e,f),r&&r.m(e,null),_(e,t),_(e,n),o=!0},p(u,[f]){r&&r.p&&(!o||f&2)&&Ae(r,l,u,u[1],o?Me(l,u[1],f,null):Le(u[1]),null),ye(e,s=Be(a,[{xmlns:"http://www.w3.org/2000/svg"},{width:"24"},{height:"24"},{fill:"none"},{"data-testid":"settings-icon"},{role:"img"},f&1&&u[0]]))},i(u){o||(d(r,u),o=!0)},o(u){m(r,u),o=!1},d(u){u&&b(e),r&&r.d(u)}}}function Gb(i,e,t){let{$$slots:n={},$$scope:o}=e;return i.$$set=l=>{t(0,e=ne(ne({},e),ve(l))),"$$scope"in l&&t(1,o=l.$$scope)},e=ve(e),[e,o,n]}var Xa=class extends B{constructor(e){super(),D(this,e,Gb,jb,R,{})}},E1=Xa;function xb(i){Ce(i,"svelte-8t5w85",'.icon.svelte-8t5w85{display:flex;position:relative;width:24px;height:24px}.icon.svelte-8t5w85 .pillow{position:absolute;top:1px;right:-9px}.icon.triple.svelte-8t5w85 .pillow{right:-13px}.icon.svelte-8t5w85 svg[data-testid="settings-icon--labeled"] ._full{visibility:hidden;opacity:0}')}function Yb(i){let e,t,n,o,l=i[1]&&M1(i);return n=new E1({props:{"data-testid":i[1]?"settings-icon--labeled":"settings-icon"}}),{c(){e=I("div"),l&&l.c(),t=H(),A(n.$$.fragment),c(e,"class","icon svelte-8t5w85"),c(e,"aria-hidden","true"),j(e,"triple",i[2])},m(r,a){v(r,e,a),l&&l.m(e,null),_(e,t),E(n,e,null),o=!0},p(r,a){r[1]?l?(l.p(r,a),a&2&&d(l,1)):(l=M1(r),l.c(),d(l,1),l.m(e,t)):l&&(ae(),m(l,1,1,()=>{l=null}),ue());let s={};a&2&&(s["data-testid"]=r[1]?"settings-icon--labeled":"settings-icon"),n.$set(s),(!o||a&4)&&j(e,"triple",r[2])},i(r){o||(d(l),d(n.$$.fragment,r),o=!0)},o(r){m(l),m(n.$$.fragment,r),o=!1},d(r){r&&b(e),l&&l.d(),M(n)}}}function Qb(i){let e,t;return e=new P1({}),{c(){A(e.$$.fragment)},m(n,o){E(e,n,o),t=!0},p:he,i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){m(e.$$.fragment,n),t=!1},d(n){M(e,n)}}}function M1(i){let e,t;return e=new C1({props:{$$slots:{default:[Zb]},$$scope:{ctx:i}}}),{c(){A(e.$$.fragment)},m(n,o){E(e,n,o),t=!0},p(n,o){let l={};o&18&&(l.$$scope={dirty:o,ctx:n}),e.$set(l)},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){m(e.$$.fragment,n),t=!1},d(n){M(e,n)}}}function Zb(i){let e,t,n;var o=i[1];function l(r,a){return{}}return o&&(e=Dt(o,l(i))),{c(){e&&A(e.$$.fragment),t=it()},m(r,a){e&&E(e,r,a),v(r,t,a),n=!0},p(r,a){if(a&2&&o!==(o=r[1])){if(e){ae();let s=e;m(s.$$.fragment,1,0,()=>{M(s,1)}),ue()}o?(e=Dt(o,l(r,a)),A(e.$$.fragment),d(e.$$.fragment,1),E(e,t.parentNode,t)):e=null}},i(r){n||(e&&d(e.$$.fragment,r),n=!0)},o(r){e&&m(e.$$.fragment,r),n=!1},d(r){r&&b(t),e&&M(e,r)}}}function Xb(i){let e,t,n,o,l=[Qb,Yb],r=[];function a(s,u){return s[0]?0:1}return e=a(i,-1),t=r[e]=l[e](i),{c(){t.c(),n=it()},m(s,u){r[e].m(s,u),v(s,n,u),o=!0},p(s,[u]){let f=e;e=a(s,u),e===f?r[e].p(s,u):(ae(),m(r[f],1,1,()=>{r[f]=null}),ue(),t=r[e],t?t.p(s,u):(t=r[e]=l[e](s),t.c()),d(t,1),t.m(n.parentNode,n))},i(s){o||(d(t),o=!0)},o(s){m(t),o=!1},d(s){s&&b(n),r[e].d(s)}}}function Jb(i,e,t){let n,{isMobile:o=!1}=e,{currentQuality:l=void 0}=e,r;return i.$$set=a=>{"isMobile"in a&&t(0,o=a.isMobile),"currentQuality"in a&&t(3,l=a.currentQuality)},i.$$.update=()=>{i.$$.dirty&8&&t(1,n=Wl(l)),i.$$.dirty&2&&t(2,r=!!n&&[Ul,zl].includes(n))},[o,n,r,l]}var Ja=class extends B{constructor(e){super(),D(this,e,Jb,Xb,R,{isMobile:0,currentQuality:3},xb)}},Kl=Ja;function $b(i){let e,t,n,o=i[2].default,l=Ee(o,i,i[1],null),r=[{xmlns:"http://www.w3.org/2000/svg"},{width:"22"},{height:"18"},{fill:"none"},{"aria-hidden":"true"},{"data-testid":"subtitle-empty-icon"},{role:"img"},i[0]],a={};for(let s=0;s<r.length;s+=1)a=ne(a,r[s]);return{c(){e=V("svg"),l&&l.c(),t=V("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"),ye(e,a)},m(s,u){v(s,e,u),l&&l.m(e,null),_(e,t),n=!0},p(s,[u]){l&&l.p&&(!n||u&2)&&Ae(l,o,s,s[1],n?Me(o,s[1],u,null):Le(s[1]),null),ye(e,a=Be(r,[{xmlns:"http://www.w3.org/2000/svg"},{width:"22"},{height:"18"},{fill:"none"},{"aria-hidden":"true"},{"data-testid":"subtitle-empty-icon"},{role:"img"},u&1&&s[0]]))},i(s){n||(d(l,s),n=!0)},o(s){m(l,s),n=!1},d(s){s&&b(e),l&&l.d(s)}}}function e2(i,e,t){let{$$slots:n={},$$scope:o}=e;return i.$$set=l=>{t(0,e=ne(ne({},e),ve(l))),"$$scope"in l&&t(1,o=l.$$scope)},e=ve(e),[e,o,n]}var $a=class extends B{constructor(e){super(),D(this,e,e2,$b,R,{})}},jl=$a;function t2(i){let e,t,n,o=i[2].default,l=Ee(o,i,i[1],null),r=[{xmlns:"http://www.w3.org/2000/svg"},{width:"16"},{height:"19"},{fill:"none"},{"aria-hidden":"true"},{"data-testid":"download-icon"},{role:"img"},i[0]],a={};for(let s=0;s<r.length;s+=1)a=ne(a,r[s]);return{c(){e=V("svg"),l&&l.c(),t=V("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"),ye(e,a)},m(s,u){v(s,e,u),l&&l.m(e,null),_(e,t),n=!0},p(s,[u]){l&&l.p&&(!n||u&2)&&Ae(l,o,s,s[1],n?Me(o,s[1],u,null):Le(s[1]),null),ye(e,a=Be(r,[{xmlns:"http://www.w3.org/2000/svg"},{width:"16"},{height:"19"},{fill:"none"},{"aria-hidden":"true"},{"data-testid":"download-icon"},{role:"img"},u&1&&s[0]]))},i(s){n||(d(l,s),n=!0)},o(s){m(l,s),n=!1},d(s){s&&b(e),l&&l.d(s)}}}function i2(i,e,t){let{$$slots:n={},$$scope:o}=e;return i.$$set=l=>{t(0,e=ne(ne({},e),ve(l))),"$$scope"in l&&t(1,o=l.$$scope)},e=ve(e),[e,o,n]}var eu=class extends B{constructor(e){super(),D(this,e,i2,t2,R,{})}},A1=eu;function n2(i){let e,t,n,o=i[2].default,l=Ee(o,i,i[1],null),r=[{xmlns:"http://www.w3.org/2000/svg"},{width:"18"},{height:"17"},{fill:"none"},{"aria-hidden":"true"},{"data-testid":"traffic-saving-icon"},{role:"img"},i[0]],a={};for(let s=0;s<r.length;s+=1)a=ne(a,r[s]);return{c(){e=V("svg"),l&&l.c(),t=V("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"),ye(e,a)},m(s,u){v(s,e,u),l&&l.m(e,null),_(e,t),n=!0},p(s,[u]){l&&l.p&&(!n||u&2)&&Ae(l,o,s,s[1],n?Me(o,s[1],u,null):Le(s[1]),null),ye(e,a=Be(r,[{xmlns:"http://www.w3.org/2000/svg"},{width:"18"},{height:"17"},{fill:"none"},{"aria-hidden":"true"},{"data-testid":"traffic-saving-icon"},{role:"img"},u&1&&s[0]]))},i(s){n||(d(l,s),n=!0)},o(s){m(l,s),n=!1},d(s){s&&b(e),l&&l.d(s)}}}function o2(i,e,t){let{$$slots:n={},$$scope:o}=e;return i.$$set=l=>{t(0,e=ne(ne({},e),ve(l))),"$$scope"in l&&t(1,o=l.$$scope)},e=ve(e),[e,o,n]}var tu=class extends B{constructor(e){super(),D(this,e,o2,n2,R,{})}},L1=tu;function r2(i){let e,t,n,o,l,r=i[2].default,a=Ee(r,i,i[1],null),s=[{xmlns:"http://www.w3.org/2000/svg"},{width:"24"},{height:"24"},{"aria-hidden":"true"},{"data-testid":"play-speed-icon"},{role:"img"},i[0]],u={};for(let f=0;f<s.length;f+=1)u=ne(u,s[f]);return{c(){e=V("svg"),a&&a.c(),t=V("g"),n=V("path"),o=V("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"),ye(e,u)},m(f,p){v(f,e,p),a&&a.m(e,null),_(e,t),_(t,n),_(t,o),l=!0},p(f,[p]){a&&a.p&&(!l||p&2)&&Ae(a,r,f,f[1],l?Me(r,f[1],p,null):Le(f[1]),null),ye(e,u=Be(s,[{xmlns:"http://www.w3.org/2000/svg"},{width:"24"},{height:"24"},{"aria-hidden":"true"},{"data-testid":"play-speed-icon"},{role:"img"},p&1&&f[0]]))},i(f){l||(d(a,f),l=!0)},o(f){m(a,f),l=!1},d(f){f&&b(e),a&&a.d(f)}}}function l2(i,e,t){let{$$slots:n={},$$scope:o}=e;return i.$$set=l=>{t(0,e=ne(ne({},e),ve(l))),"$$scope"in l&&t(1,o=l.$$scope)},e=ve(e),[e,o,n]}var iu=class extends B{constructor(e){super(),D(this,e,l2,r2,R,{})}},V1=iu;function s2(i){let e,t,n,o=i[2].default,l=Ee(o,i,i[1],null),r=[{xmlns:"http://www.w3.org/2000/svg"},{width:"18"},{height:"15"},{fill:"none"},{"aria-hidden":"true"},{"data-testid":"audio-languages-icon"},{role:"img"},i[0]],a={};for(let s=0;s<r.length;s+=1)a=ne(a,r[s]);return{c(){e=V("svg"),l&&l.c(),t=V("path"),c(t,"fill","#fff"),c(t,"d","M8.295 14.247c1.87 1.896 5.505.02 5.505-3.548V5.645l2.399-.697A2.74 2.74 0 0 0 18 2.364l-.01-1.72a.75.75 0 0 0-.906-.623l-.267.061c-.941.215-1.886.431-2.807.721-1.332.45-2.03 1.614-2.01 3.077V9c-3.887.196-5.639 3.286-3.705 5.247M.9.1a.9.9 0 0 0 0 1.8h8.197a.9.9 0 0 0 0-1.8zM.9 5.1a.9.9 0 1 0 0 1.8h7.196a.9.9 0 0 0 0-1.8zM0 11a.9.9 0 0 1 .9-.9h4.183a.9.9 0 1 1 0 1.8H.9A.9.9 0 0 1 0 11"),ye(e,a)},m(s,u){v(s,e,u),l&&l.m(e,null),_(e,t),n=!0},p(s,[u]){l&&l.p&&(!n||u&2)&&Ae(l,o,s,s[1],n?Me(o,s[1],u,null):Le(s[1]),null),ye(e,a=Be(r,[{xmlns:"http://www.w3.org/2000/svg"},{width:"18"},{height:"15"},{fill:"none"},{"aria-hidden":"true"},{"data-testid":"audio-languages-icon"},{role:"img"},u&1&&s[0]]))},i(s){n||(d(l,s),n=!0)},o(s){m(l,s),n=!1},d(s){s&&b(e),l&&l.d(s)}}}function a2(i,e,t){let{$$slots:n={},$$scope:o}=e;return i.$$set=l=>{t(0,e=ne(ne({},e),ve(l))),"$$scope"in l&&t(1,o=l.$$scope)},e=ve(e),[e,o,n]}var nu=class extends B{constructor(e){super(),D(this,e,a2,s2,R,{})}},R1=nu;function u2(i){let e,t,n,o=i[2].default,l=Ee(o,i,i[1],null),r=[{xmlns:"http://www.w3.org/2000/svg"},{width:"24"},{height:"24"},{fill:"none"},{"aria-hidden":"true"},{"data-testid":"copy-icon"},{role:"img"},i[0]],a={};for(let s=0;s<r.length;s+=1)a=ne(a,r[s]);return{c(){e=V("svg"),l&&l.c(),t=V("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"),ye(e,a)},m(s,u){v(s,e,u),l&&l.m(e,null),_(e,t),n=!0},p(s,[u]){l&&l.p&&(!n||u&2)&&Ae(l,o,s,s[1],n?Me(o,s[1],u,null):Le(s[1]),null),ye(e,a=Be(r,[{xmlns:"http://www.w3.org/2000/svg"},{width:"24"},{height:"24"},{fill:"none"},{"aria-hidden":"true"},{"data-testid":"copy-icon"},{role:"img"},u&1&&s[0]]))},i(s){n||(d(l,s),n=!0)},o(s){m(l,s),n=!1},d(s){s&&b(e),l&&l.d(s)}}}function c2(i,e,t){let{$$slots:n={},$$scope:o}=e;return i.$$set=l=>{t(0,e=ne(ne({},e),ve(l))),"$$scope"in l&&t(1,o=l.$$scope)},e=ve(e),[e,o,n]}var ou=class extends B{constructor(e){super(),D(this,e,c2,u2,R,{})}},ru=ou;function f2(i){let e,t,n,o=i[2].default,l=Ee(o,i,i[1],null),r=[{xmlns:"http://www.w3.org/2000/svg"},{width:"24"},{height:"24"},{fill:"none"},{"aria-hidden":"true"},{"data-testid":"info-icon"},{role:"img"},i[0]],a={};for(let s=0;s<r.length;s+=1)a=ne(a,r[s]);return{c(){e=V("svg"),l&&l.c(),t=V("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"),ye(e,a)},m(s,u){v(s,e,u),l&&l.m(e,null),_(e,t),n=!0},p(s,[u]){l&&l.p&&(!n||u&2)&&Ae(l,o,s,s[1],n?Me(o,s[1],u,null):Le(s[1]),null),ye(e,a=Be(r,[{xmlns:"http://www.w3.org/2000/svg"},{width:"24"},{height:"24"},{fill:"none"},{"aria-hidden":"true"},{"data-testid":"info-icon"},{role:"img"},u&1&&s[0]]))},i(s){n||(d(l,s),n=!0)},o(s){m(l,s),n=!1},d(s){s&&b(e),l&&l.d(s)}}}function d2(i,e,t){let{$$slots:n={},$$scope:o}=e;return i.$$set=l=>{t(0,e=ne(ne({},e),ve(l))),"$$scope"in l&&t(1,o=l.$$scope)},e=ve(e),[e,o,n]}var lu=class extends B{constructor(e){super(),D(this,e,d2,f2,R,{})}},B1=lu;function m2(i){let e,t,n,o=i[2].default,l=Ee(o,i,i[1],null),r=[{xmlns:"http://www.w3.org/2000/svg"},{width:"24"},{height:"24"},{fill:"none"},{"aria-hidden":"true"},{"data-testid":"report-icon"},{role:"img"},i[0]],a={};for(let s=0;s<r.length;s+=1)a=ne(a,r[s]);return{c(){e=V("svg"),l&&l.c(),t=V("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"),ye(e,a)},m(s,u){v(s,e,u),l&&l.m(e,null),_(e,t),n=!0},p(s,[u]){l&&l.p&&(!n||u&2)&&Ae(l,o,s,s[1],n?Me(o,s[1],u,null):Le(s[1]),null),ye(e,a=Be(r,[{xmlns:"http://www.w3.org/2000/svg"},{width:"24"},{height:"24"},{fill:"none"},{"aria-hidden":"true"},{"data-testid":"report-icon"},{role:"img"},u&1&&s[0]]))},i(s){n||(d(l,s),n=!0)},o(s){m(l,s),n=!1},d(s){s&&b(e),l&&l.d(s)}}}function p2(i,e,t){let{$$slots:n={},$$scope:o}=e;return i.$$set=l=>{t(0,e=ne(ne({},e),ve(l))),"$$scope"in l&&t(1,o=l.$$scope)},e=ve(e),[e,o,n]}var su=class extends B{constructor(e){super(),D(this,e,p2,m2,R,{})}},D1=su;var SI=require("@vkontakte/videoplayer-core");function _2(i){Ce(i,"svelte-1a7qwh6",".menu-item-value.svelte-1a7qwh6.svelte-1a7qwh6{position:relative;padding-right:22px}.menu-item-value.svelte-1a7qwh6 span.svelte-1a7qwh6{opacity:0.7}.menu-item-value.sub.svelte-1a7qwh6 span.svelte-1a7qwh6{opacity:1}.quality-icon.svelte-1a7qwh6.svelte-1a7qwh6{position:absolute;top:-8px;right:2px;width:15px}.quality-icon.svelte-1a7qwh6 svg{color:var(--blue-light)}")}function N1(i){let e,t,n;var o=i[3];function l(r,a){return{}}return o&&(t=Dt(o,l(i))),{c(){e=I("div"),t&&A(t.$$.fragment),c(e,"class","quality-icon svelte-1a7qwh6")},m(r,a){v(r,e,a),t&&E(t,e,null),n=!0},p(r,a){if(a&8&&o!==(o=r[3])){if(t){ae();let s=t;m(s.$$.fragment,1,0,()=>{M(s,1)}),ue()}o?(t=Dt(o,l(r,a)),A(t.$$.fragment),d(t.$$.fragment,1),E(t,e,null)):t=null}},i(r){n||(t&&d(t.$$.fragment,r),n=!0)},o(r){t&&m(t.$$.fragment,r),n=!1},d(r){r&&b(e),t&&M(t)}}}function g2(i){let e,t,n,o,l,r=i[3]&&!i[1]&&N1(i);return{c(){e=I("div"),t=I("span"),n=De(i[0]),o=H(),r&&r.c(),c(t,"class","svelte-1a7qwh6"),c(e,"class","menu-item-value svelte-1a7qwh6"),j(e,"sub",i[2])},m(a,s){v(a,e,s),_(e,t),_(t,n),_(e,o),r&&r.m(e,null),l=!0},p(a,[s]){(!l||s&1)&&xe(n,a[0]),a[3]&&!a[1]?r?(r.p(a,s),s&10&&d(r,1)):(r=N1(a),r.c(),d(r,1),r.m(e,null)):r&&(ae(),m(r,1,1,()=>{r=null}),ue()),(!l||s&4)&&j(e,"sub",a[2])},i(a){l||(d(r),l=!0)},o(a){m(r),l=!1},d(a){a&&b(e),r&&r.d()}}}function h2(i,e,t){let n,{quality:o}=e,{label:l}=e,{isMobile:r}=e,{isSubCase:a=!1}=e;return i.$$set=s=>{"quality"in s&&t(4,o=s.quality),"label"in s&&t(0,l=s.label),"isMobile"in s&&t(1,r=s.isMobile),"isSubCase"in s&&t(2,a=s.isSubCase)},i.$$.update=()=>{i.$$.dirty&16&&t(3,n=Wl(o))},[l,r,a,n,o]}var au=class extends B{constructor(e){super(),D(this,e,h2,g2,R,{quality:4,label:0,isMobile:1,isSubCase:2},_2)}},Gl=au;var O1=require("@vkontakte/videoplayer-core");var xl=(i,e,t)=>{if(!i)return"...";let n=e.find(l=>l.value===i),o=n?n.displayValue:i;return t?i===O1.VideoQuality.INVARIANT?U("auto_quality_invariant"):U("auto_quality",{actual:o}):o};function b2(i){Ce(i,"svelte-vk2gx4",".menu-item-value-wrapper.svelte-vk2gx4{right:-22px;position:relative}")}function v2(i){let e,t,n;return t=new Gl({props:{quality:i[0],label:i[1],isMobile:i[2]}}),{c(){e=I("div"),A(t.$$.fragment),c(e,"class","menu-item-value-wrapper svelte-vk2gx4")},m(o,l){v(o,e,l),E(t,e,null),n=!0},p(o,[l]){let r={};l&1&&(r.quality=o[0]),l&2&&(r.label=o[1]),l&4&&(r.isMobile=o[2]),t.$set(r)},i(o){n||(d(t.$$.fragment,o),n=!0)},o(o){m(t.$$.fragment,o),n=!1},d(o){o&&b(e),M(t)}}}function y2(i,e,t){let n,o,l,r,a=ot(),s=a.state.currentQuality$;O(i,s,y=>t(0,l=y));let u=a.state.availableQualities$;O(i,u,y=>t(8,o=y));let f=a.state.isAutoQualityEnabled$;O(i,f,y=>t(7,n=y));let p=a.ui.isMobile;O(i,p,y=>t(2,r=y));let g;return i.$$.update=()=>{i.$$.dirty&385&&t(1,g=xl(l,o,n))},[l,g,r,s,u,f,p,n,o]}var uu=class extends B{constructor(e){super(),D(this,e,y2,v2,R,{},b2)}},F1=uu;var cu=require("@vkontakte/videoplayer-shared");function k2(i){let e,t,n;var o=i[4];function l(r,a){return{}}return o&&(e=Dt(o,l(i))),{c(){e&&A(e.$$.fragment),t=it()},m(r,a){e&&E(e,r,a),v(r,t,a),n=!0},p(r,a){if(a&16&&o!==(o=r[4])){if(e){ae();let s=e;m(s.$$.fragment,1,0,()=>{M(s,1)}),ue()}o?(e=Dt(o,l(r,a)),A(e.$$.fragment),d(e.$$.fragment,1),E(e,t.parentNode,t)):e=null}},i(r){n||(e&&d(e.$$.fragment,r),n=!0)},o(r){e&&m(e.$$.fragment,r),n=!1},d(r){r&&b(t),e&&M(e,r)}}}function w2(i){let e;function t(l,r){return l[5]?S2:C2}let n=t(i,-1),o=n(i);return{c(){o.c(),e=it()},m(l,r){o.m(l,r),v(l,e,r)},p(l,r){n===(n=t(l,r))&&o?o.p(l,r):(o.d(1),o=n(l),o&&(o.c(),o.m(e.parentNode,e)))},i:he,o:he,d(l){l&&b(e),o.d(l)}}}function C2(i){let e,t,n,o;return{c(){e=I("img"),c(e,"class","icon"),oo(e.src,t=i[4])||c(e,"src",t),c(e,"aria-hidden","true")},m(l,r){v(l,e,r),n||(o=Te(e,"error",i[6]),n=!0)},p(l,r){r&16&&!oo(e.src,t=l[4])&&c(e,"src",t)},d(l){l&&b(e),n=!1,o()}}}function S2(i){let e;return{c(){e=I("div"),e.innerHTML='<div class="inner"></div>',c(e,"class","icon icon-error-stub")},m(t,n){v(t,e,n)},p:he,d(t){t&&b(e)}}}function I2(i){let e,t,n,o,l,r,a,s,u,f,p,g=[w2,k2],y=[];function h(C,w){return typeof C[4]=="string"?0:1}return n=h(i,-1),o=y[n]=g[n](i),{c(){e=I("li"),t=I("div"),o.c(),l=H(),r=I("div"),a=De(i[2]),c(t,"class","icon-wrapper"),c(r,"class","label"),c(e,"class","item"),c(e,"role","menuitem"),c(e,"tabindex","0"),c(e,"aria-label",s=i[3]??i[2]),c(e,"data-testid",i[0]),j(e,"mobile",i[1])},m(C,w){v(C,e,w),_(e,t),y[n].m(t,null),_(e,l),_(e,r),_(r,a),u=!0,f||(p=[Te(e,"click",_t(i[7])),Te(e,"keydown",i[8])],f=!0)},p(C,[w]){let F=n;n=h(C,w),n===F?y[n].p(C,w):(ae(),m(y[F],1,1,()=>{y[F]=null}),ue(),o=y[n],o?o.p(C,w):(o=y[n]=g[n](C),o.c()),d(o,1),o.m(t,null)),(!u||w&4)&&xe(a,C[2]),(!u||w&12&&s!==(s=C[3]??C[2]))&&c(e,"aria-label",s),(!u||w&1)&&c(e,"data-testid",C[0]),(!u||w&2)&&j(e,"mobile",C[1])},i(C){u||(d(o),u=!0)},o(C){m(o),u=!1},d(C){C&&b(e),y[n].d(),f=!1,at(p)}}}function T2(i,e,t){let n,{id:o}=e,{isMobile:l=!1}=e,{onClick:r=cu.noop}=e,{closeSettings:a=cu.noop}=e,{label:s}=e,{ariaLabel:u}=e,{icon:f}=e,p=()=>{t(5,n=!0)},g=()=>{r(),a()},y=h=>{br(h,()=>g())};return i.$$set=h=>{"id"in h&&t(0,o=h.id),"isMobile"in h&&t(1,l=h.isMobile),"onClick"in h&&t(9,r=h.onClick),"closeSettings"in h&&t(10,a=h.closeSettings),"label"in h&&t(2,s=h.label),"ariaLabel"in h&&t(3,u=h.ariaLabel),"icon"in h&&t(4,f=h.icon)},t(5,n=!1),[o,l,s,u,f,n,p,g,y,r,a]}var fu=class extends B{constructor(e){super(),D(this,e,T2,I2,R,{id:0,isMobile:1,onClick:9,closeSettings:10,label:2,ariaLabel:3,icon:4})}},q1=fu;var K1=require("@vkontakte/videoplayer-shared");function P2(i){Ce(i,"svelte-17wbjko",'.toggle_wrap.svelte-17wbjko{min-height:15px;padding:0;font-size:12px;line-height:15px;cursor:pointer;user-select:none}.toggle.svelte-17wbjko{float:right;margin-top:3px;width:28px;height:9px;border-radius:45px;background-color:var(--toggle-color-separator);cursor:pointer}.toggle.svelte-17wbjko::after{content:"";float:left;position:relative;width:15px;height:15px;border-radius:50%;background-color:var(--toggle-color-off);top:-3px;left:0;transition:left .1s ease}.toggle.on.svelte-17wbjko::after{background-color:var(--toggle-color-on);left:13px}.toggle-label.svelte-17wbjko{overflow:hidden}')}function E2(i){let e,t,n,o;return{c(){e=I("div"),t=I("div"),n=H(),o=I("div"),c(t,"class","toggle svelte-17wbjko"),j(t,"on",i[0]),c(o,"class","toggle-label svelte-17wbjko"),c(e,"class","toggle_wrap svelte-17wbjko")},m(l,r){v(l,e,r),_(e,t),_(e,n),_(e,o)},p(l,[r]){r&1&&j(t,"on",l[0])},i:he,o:he,d(l){l&&b(e)}}}function M2(i,e,t){let{enabled:n=!1}=e;return i.$$set=o=>{"enabled"in o&&t(0,n=o.enabled)},[n]}var du=class extends B{constructor(e){super(),D(this,e,M2,E2,R,{enabled:0},P2)}},H1=du;var W1=require("@vkontakte/videoplayer-shared");function A2(i){let e,t,n=i[4].default,o=Ee(n,i,i[3],null);return{c(){e=I("div"),o&&o.c(),c(e,"class","overlay")},m(l,r){v(l,e,r),o&&o.m(e,null),i[5](e),t=!0},p(l,[r]){o&&o.p&&(!t||r&8)&&Ae(o,n,l,l[3],t?Me(n,l[3],r,null):Le(l[3]),null)},i(l){t||(d(o,l),t=!0)},o(l){m(o,l),t=!1},d(l){l&&b(e),o&&o.d(l),i[5](null)}}}function L2(i,e,t){let n,{$$slots:o={},$$scope:l}=e,a=ot().ui.overlayContainer$;O(i,a,g=>t(2,n=g));let s,u=g=>{!g||!s||!g.contains(s)||g.removeChild(s)},f=g=>{!g||!s||g.contains(s)||g.appendChild(s)};Et(()=>(f(n),()=>u(n)));function p(g){be[g?"unshift":"push"](()=>{s=g,t(0,s)})}return i.$$set=g=>{"$$scope"in g&&t(3,l=g.$$scope)},i.$$.update=()=>{i.$$.dirty&4&&f(n)},[s,a,n,l,o,p]}var mu=class extends B{constructor(e){super(),D(this,e,L2,A2,R,{})}},U1=mu;function V2(i){Ce(i,"svelte-1jbbzcj",'.tooltip-wrapper.svelte-1jbbzcj{display:flex;flex-direction:column;min-width:0}.full-width.svelte-1jbbzcj{width:100%}.tooltip.svelte-1jbbzcj{position:absolute;opacity:0;visibility:hidden;transition:opacity 200ms, visibility 200ms;bottom:100%;left:0}.content.svelte-1jbbzcj{display:inline-block;padding:6px 10px;border-radius:3px;color:var(--white);background-color:rgba(41, 41, 41, .8)}.tooltip.active.svelte-1jbbzcj{opacity:1;visibility:visible}.tooltip-pointer.svelte-1jbbzcj{position:absolute;bottom:0;width:0;border-top:5px solid rgba(41, 41, 41, .8);border-right:5px solid transparent;border-left:5px solid transparent;content:" ";font-size:0;line-height:0}')}function z1(i){let e,t;return e=new U1({props:{$$slots:{default:[R2]},$$scope:{ctx:i}}}),{c(){A(e.$$.fragment)},m(n,o){E(e,n,o),t=!0},p(n,o){let l={};o[0]&16777445&&(l.$$scope={dirty:o,ctx:n}),e.$set(l)},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){m(e.$$.fragment,n),t=!1},d(n){M(e,n)}}}function R2(i){let e,t,n,o,l;return{c(){e=I("div"),t=I("div"),n=De(i[2]),o=H(),l=I("div"),c(t,"class","content svelte-1jbbzcj"),c(l,"class","tooltip-pointer svelte-1jbbzcj"),c(l,"style",i[7]),c(e,"class","tooltip svelte-1jbbzcj"),c(e,"style",i[6]),j(e,"active",i[0])},m(r,a){v(r,e,a),_(e,t),_(t,n),_(e,o),_(e,l),i[23](e)},p(r,a){a[0]&4&&xe(n,r[2]),a[0]&128&&c(l,"style",r[7]),a[0]&64&&c(e,"style",r[6]),a[0]&1&&j(e,"active",r[0])},d(r){r&&b(e),i[23](null)}}}function B2(i){let e,t,n,o,l,r,a=i[21].default,s=Ee(a,i,i[24],null),u=i[2]&&!i[1]&&z1(i);return{c(){e=I("div"),s&&s.c(),t=H(),u&&u.c(),n=it(),c(e,"class","tooltip-wrapper svelte-1jbbzcj"),j(e,"full-width",i[3])},m(f,p){v(f,e,p),s&&s.m(e,null),i[22](e),v(f,t,p),u&&u.m(f,p),v(f,n,p),o=!0,l||(r=[Te(e,"mouseenter",i[10]),Te(e,"mousemove",i[10]),Te(e,"mouseleave",i[11]),Te(e,"mousedown",i[11]),Te(e,"mouseup",i[10])],l=!0)},p(f,p){s&&s.p&&(!o||p[0]&16777216)&&Ae(s,a,f,f[24],o?Me(a,f[24],p,null):Le(f[24]),null),(!o||p[0]&8)&&j(e,"full-width",f[3]),f[2]&&!f[1]?u?(u.p(f,p),p[0]&6&&d(u,1)):(u=z1(f),u.c(),d(u,1),u.m(n.parentNode,n)):u&&(ae(),m(u,1,1,()=>{u=null}),ue())},i(f){o||(d(s,f),d(u),o=!0)},o(f){m(s,f),m(u),o=!1},d(f){f&&(b(e),b(t),b(n)),s&&s.d(f),i[22](null),u&&u.d(f),l=!1,at(r)}}}var so=5;function D2(i,e,t){let n,o,{$$slots:l={},$$scope:r}=e,{isMobile:a=!1}=e,{content:s=""}=e,{active:u=!1}=e,{translateX:f=0}=e,{translateY:p=0}=e,{isFullWidthWrapper:g=!1}=e,{maxTooltipWidth:y=void 0}=e,{placement:h="top"}=e,{onVisibilityChange:C=W1.noop}=e,w,F,T,k=0,P=0,G=0,W=0,z=Nt(),le=ot(),de=le.ui.playerSize;O(i,de,Y=>t(27,o=Y));let L=le.ui.overlayContainer$;O(i,L,Y=>t(26,n=Y));let te=le.getLogger().createComponentLog("Tooltip component"),re=()=>{if(!n||!F||!w)return;t(18,P=so);let Y=n.getBoundingClientRect(),fe=w.getBoundingClientRect(),Ze=fe.width,_e=F.clientWidth,Ue=o.width,tt=(Ze-_e)/2,rt=fe.left+f-Y.left,Je=rt+tt,Ye=fe.top+p-Y.top,We=_e/2-so,J=Je<8,He=Je+_e>Ue-8;J&&(Je=8,We=rt+fe.width/2-2.5*so),He&&(Je=Ue-8-_e,We=fe.left-Y.left+fe.width/2-Je-so),t(19,G=Je),t(20,W=Ye),t(17,k=We)},X=()=>{!n||!F||!w||t(18,P=-so)},Pe=()=>{if(!n||!F||!w)return;t(17,k=so);let Y=n.getBoundingClientRect(),fe=w.getBoundingClientRect(),Ze=fe.height,_e=F.clientHeight,Ue=(Ze-_e)/2+_e,tt=fe.left+f-Y.left-F.clientWidth,rt=2,Je=tt-so;Je<8&&(Je=8);let We=fe.top+p-Y.top+Ue,J=rt-Ue/2,He=rt-so;t(19,G=Je),t(20,W=We),t(18,P=J),t(17,k=He)},q=()=>{!n||!F||!w||t(17,k=-so)},N=()=>{switch(h){case"top":re();break;case"bottom":X();break;case"left":Pe();break;default:q()}},K=()=>{try{if(!n||!w)return;N(),t(0,u=!0)}catch(Y){te({message:String(Y)})}},ce=()=>{t(0,u=!1)},oe=()=>{F&&(T||(T=window.setTimeout(K,z.controls.hideTimeoutTooltips)),u&&K())},se=()=>{ce(),window.clearTimeout(T),T=void 0},qe=(Y,fe)=>{let Ze="";switch(h){case"top":Ze=`transform: translate(${Y}px, ${fe}px);`;break;case"bottom":Ze=`transform: translate(${Y}px, ${fe}px); top: auto; bottom: 100%;`;break;case"left":Ze=`transform: translate(${Y}px, ${fe}px); left: 0; right: auto;`;break;default:Ze=`transform: translate(${Y}px, ${fe}px);`}return Ze+=` max-width: ${y===void 0?"auto":`${y}px`};`,Ze},Ve=(Y,fe)=>{let Ze="";switch(h){case"top":Ze=`transform: translate(${Y}px, ${fe}px) rotate(0); top: auto; bottom: 0;`;break;case"bottom":Ze=`transform: translate(${Y}px, ${fe}px) rotate(180deg); top: 0; bottom: auto;`;break;case"left":Ze=`transform: translate(${Y}px, ${fe}px) rotate(-90deg); left: 100%; top: auto; bottom: 0;`;break;default:Ze=`transform: translate(${Y}px, ${fe}px) rotate(90deg); right: 100%; top: auto; bottom: 0;`}return Ze},ke,Re;Et(N),Nn(()=>window.clearTimeout(T));function ze(Y){be[Y?"unshift":"push"](()=>{w=Y,t(4,w)})}function je(Y){be[Y?"unshift":"push"](()=>{F=Y,t(5,F)})}return i.$$set=Y=>{"isMobile"in Y&&t(1,a=Y.isMobile),"content"in Y&&t(2,s=Y.content),"active"in Y&&t(0,u=Y.active),"translateX"in Y&&t(12,f=Y.translateX),"translateY"in Y&&t(13,p=Y.translateY),"isFullWidthWrapper"in Y&&t(3,g=Y.isFullWidthWrapper),"maxTooltipWidth"in Y&&t(14,y=Y.maxTooltipWidth),"placement"in Y&&t(15,h=Y.placement),"onVisibilityChange"in Y&&t(16,C=Y.onVisibilityChange),"$$scope"in Y&&t(24,r=Y.$$scope)},i.$$.update=()=>{i.$$.dirty[0]&65537&&C(u),i.$$.dirty[0]&1966080&&(t(6,ke=qe(G,W)),t(7,Re=Ve(k,P)))},[u,a,s,g,w,F,ke,Re,de,L,oe,se,f,p,y,h,C,k,P,G,W,l,ze,je,r]}var pu=class extends B{constructor(e){super(),D(this,e,D2,B2,R,{isMobile:1,content:2,active:0,translateX:12,translateY:13,isFullWidthWrapper:3,maxTooltipWidth:14,placement:15,onVisibilityChange:16},V2,[-1,-1])}},Cr=pu;function N2(i){let e,t,n;var o=i[4];function l(r,a){return{}}return o&&(e=Dt(o,l(i))),{c(){e&&A(e.$$.fragment),t=it()},m(r,a){e&&E(e,r,a),v(r,t,a),n=!0},p(r,a){if(a&16&&o!==(o=r[4])){if(e){ae();let s=e;m(s.$$.fragment,1,0,()=>{M(s,1)}),ue()}o?(e=Dt(o,l(r,a)),A(e.$$.fragment),d(e.$$.fragment,1),E(e,t.parentNode,t)):e=null}},i(r){n||(e&&d(e.$$.fragment,r),n=!0)},o(r){e&&m(e.$$.fragment,r),n=!1},d(r){r&&b(t),e&&M(e,r)}}}function O2(i){let e,t;return e=new Hl({props:{icon:i[4]}}),{c(){A(e.$$.fragment)},m(n,o){E(e,n,o),t=!0},p(n,o){let l={};o&16&&(l.icon=n[4]),e.$set(l)},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){m(e.$$.fragment,n),t=!1},d(n){M(e,n)}}}function F2(i){let e,t,n,o,l,r,a,s,u,f,p=[O2,N2],g=[];function y(h,C){return typeof h[4]=="string"?0:1}return n=y(i,-1),o=g[n]=p[n](i),u=new H1({props:{enabled:i[5]}}),{c(){e=I("div"),t=I("div"),o.c(),l=H(),r=I("div"),a=De(i[2]),s=H(),A(u.$$.fragment),c(t,"class","icon-wrapper"),c(r,"class","label"),c(e,"class","switch-wrapper"),j(e,"mobile",i[1])},m(h,C){v(h,e,C),_(e,t),g[n].m(t,null),_(e,l),_(e,r),_(r,a),_(e,s),E(u,e,null),f=!0},p(h,C){let w=n;n=y(h,C),n===w?g[n].p(h,C):(ae(),m(g[w],1,1,()=>{g[w]=null}),ue(),o=g[n],o?o.p(h,C):(o=g[n]=p[n](h),o.c()),d(o,1),o.m(t,null)),(!f||C&4)&&xe(a,h[2]);let F={};C&32&&(F.enabled=h[5]),u.$set(F),(!f||C&2)&&j(e,"mobile",h[1])},i(h){f||(d(o),d(u.$$.fragment,h),f=!0)},o(h){m(o),m(u.$$.fragment,h),f=!1},d(h){h&&b(e),g[n].d(),M(u)}}}function q2(i){let e,t,n,o,l,r;return t=new Cr({props:{content:i[6],isMobile:i[1],placement:"left",translateX:10,isFullWidthWrapper:!0,maxTooltipWidth:i[7],$$slots:{default:[F2]},$$scope:{ctx:i}}}),{c(){e=I("li"),A(t.$$.fragment),c(e,"class","item switch-item"),c(e,"role","menuitem"),c(e,"tabindex","0"),c(e,"aria-label",n=i[3]??i[2]),c(e,"data-testid",i[0]),j(e,"mobile",i[1])},m(a,s){v(a,e,s),E(t,e,null),o=!0,l||(r=[Te(e,"click",_t(i[9])),Te(e,"keydown",i[8])],l=!0)},p(a,[s]){let u={};s&64&&(u.content=a[6]),s&2&&(u.isMobile=a[1]),s&128&&(u.maxTooltipWidth=a[7]),s&2102&&(u.$$scope={dirty:s,ctx:a}),t.$set(u),(!o||s&12&&n!==(n=a[3]??a[2]))&&c(e,"aria-label",n),(!o||s&1)&&c(e,"data-testid",a[0]),(!o||s&2)&&j(e,"mobile",a[1])},i(a){o||(d(t.$$.fragment,a),o=!0)},o(a){m(t.$$.fragment,a),o=!1},d(a){a&&b(e),M(t),l=!1,at(r)}}}function H2(i,e,t){let{id:n}=e,{isMobile:o=!1}=e,{onClick:l=K1.noop}=e,{label:r}=e,{ariaLabel:a}=e,{icon:s}=e,{enabled:u=!1}=e,{tooltipText:f=void 0}=e,{maxTooltipWidth:p=void 0}=e,g=h=>{Td(h,u,C=>l(C))},y=()=>l(!u);return i.$$set=h=>{"id"in h&&t(0,n=h.id),"isMobile"in h&&t(1,o=h.isMobile),"onClick"in h&&t(10,l=h.onClick),"label"in h&&t(2,r=h.label),"ariaLabel"in h&&t(3,a=h.ariaLabel),"icon"in h&&t(4,s=h.icon),"enabled"in h&&t(5,u=h.enabled),"tooltipText"in h&&t(6,f=h.tooltipText),"maxTooltipWidth"in h&&t(7,p=h.maxTooltipWidth)},[n,o,r,a,s,u,f,p,g,y,l]}var _u=class extends B{constructor(e){super(),D(this,e,H2,q2,R,{id:0,isMobile:1,onClick:10,label:2,ariaLabel:3,icon:4,enabled:5,tooltipText:6,maxTooltipWidth:7})}},j1=_u;var em=require("@vkontakte/videoplayer-shared");function U2(i){Ce(i,"svelte-179oyjr",".settings-menu-container.mobile.svelte-179oyjr.svelte-179oyjr{width:100%}.settings-menu-container.svelte-179oyjr ul{margin:0;padding:0;list-style-type:none}.settings-menu-container.svelte-179oyjr .menu{background-color:var(--settings-bg);border-radius:var(--settings-radius);transition:opacity 0.2s, visibility 0.2s}.settings-menu-container.svelte-179oyjr .menu .item:first-child:not(.mobile){padding-top:6px;border-top-right-radius:var(--settings-radius);border-top-left-radius:var(--settings-radius)}.settings-menu-container.svelte-179oyjr .menu .item:last-child{padding-bottom:6px;border-bottom-right-radius:var(--settings-radius);border-bottom-left-radius:var(--settings-radius)}.settings-menu-container.svelte-179oyjr .menu.desktop{position:absolute;right:0;bottom:0}.settings-menu.svelte-179oyjr.svelte-179oyjr{line-height:40px}.settings-menu.desktop.svelte-179oyjr.svelte-179oyjr{min-width:300px}.settings-menu-container.svelte-179oyjr .menu.mobile{width:100%;background:var(--mobile-settings-bg);font-size:15px;line-height:50px}.settings-menu-container.svelte-179oyjr .menu.mobile.hidden{display:none}.settings-menu-container.svelte-179oyjr .menu .item:not(.switch-item),.settings-menu-container.svelte-179oyjr .menu .switch-wrapper{align-items:center;color:var(--white);cursor:pointer;display:flex;justify-content:flex-end;white-space:nowrap;position:relative}.settings-menu-container.svelte-179oyjr .menu .item:hover{background-color:var(--settings-item-bg-hover)}.settings-menu-container.svelte-179oyjr .menu .item.mobile:hover{background:var(--mobile-settings-bg)}.settings-menu.svelte-179oyjr .item:not(.switch-item),.settings-menu.svelte-179oyjr .switch-wrapper{padding:0 32px 0 18px}.settings-menu.svelte-179oyjr .item.mobile:not(.switch-item),.settings-menu.svelte-179oyjr .switch-wrapper.mobile{padding:0 14px}.settings-menu.svelte-179oyjr .icon-wrapper{width:24px;min-width:24px;height:24px;display:flex;align-items:center;justify-content:center;margin-right:16px}.settings-menu.svelte-179oyjr .label{flex-grow:1;margin-right:24px;overflow:hidden;text-overflow:ellipsis}.settings-menu.svelte-179oyjr .header.svelte-179oyjr{color:var(--white);cursor:pointer;justify-content:space-between;column-gap:12px;display:flex;border-bottom:var(--divider-border);margin-bottom:4px}.settings-menu-container.svelte-179oyjr .items::-webkit-scrollbar{width:8px}.settings-menu-container.svelte-179oyjr .items::-webkit-scrollbar-track{box-shadow:none;background-color:#3a3a3a;border-radius:4px}.settings-menu-container.svelte-179oyjr .items::-webkit-scrollbar-thumb{min-height:40px;border-radius:5px;background-color:#666;border:1px solid transparent;background-clip:padding-box}.settings-menu-container.svelte-179oyjr .items::-webkit-scrollbar-thumb:hover{background-color:#777}.settings-menu-container.svelte-179oyjr .items.mobile{overflow-y:auto;overflow-x:hidden;max-height:160px;text-align:left}.close.svelte-179oyjr.svelte-179oyjr{position:relative;width:12px;height:12px;padding:12px;margin-right:-12px}.close.svelte-179oyjr.svelte-179oyjr:before,.close.svelte-179oyjr.svelte-179oyjr:after{position:absolute;left:18px;content:' ';height:12px;width:2px;background-color:var(--white)}.close.svelte-179oyjr.svelte-179oyjr:before{transform:rotate(45deg)}.close.svelte-179oyjr.svelte-179oyjr:after{transform:rotate(-45deg)}")}function x1(i,e,t){let n=i.slice();return n[89]=e[t],n[90]=e,n[91]=t,n}function Y1(i,e,t){let n=i.slice();return n[89]=e[t],n[92]=e,n[93]=t,n}function Q1(i){let e,t,n,o,l,r,a,s=i[5]&&Z1(i),u=ht(i[4]),f=[];for(let g=0;g<u.length;g+=1)f[g]=X1(Y1(i,u,g));let p=g=>m(f[g],1,1,()=>{f[g]=null});return{c(){e=I("div"),s&&s.c(),t=H(),n=I("ul");for(let g=0;g<f.length;g+=1)f[g].c();c(n,"class","items"),c(n,"role","menu"),c(n,"style",o=i[34]()),j(n,"mobile",i[5]),c(e,"class","settings-menu menu svelte-179oyjr"),c(e,"data-testid","settings-menu"),j(e,"desktop",!i[5]),j(e,"mobile",i[5]),j(e,"hidden",!i[6])},m(g,y){v(g,e,y),s&&s.m(e,null),_(e,t),_(e,n);for(let h=0;h<f.length;h+=1)f[h]&&f[h].m(n,null);i[68](n),l=!0,r||(a=[Te(e,"keydown",i[36]),Te(e,"mouseenter",i[32]),Te(e,"mouseleave",i[33])],r=!0)},p(g,y){if(g[5]?s?s.p(g,y):(s=Z1(g),s.c(),s.m(e,t)):s&&(s.d(1),s=null),y[0]&1610612788){u=ht(g[4]);let h;for(h=0;h<u.length;h+=1){let C=Y1(g,u,h);f[h]?(f[h].p(C,y),d(f[h],1)):(f[h]=X1(C),f[h].c(),d(f[h],1),f[h].m(n,null))}for(ae(),h=u.length;h<f.length;h+=1)p(h);ue()}(!l||y[0]&32)&&j(n,"mobile",g[5]),(!l||y[0]&32)&&j(e,"desktop",!g[5]),(!l||y[0]&32)&&j(e,"mobile",g[5]),(!l||y[0]&64)&&j(e,"hidden",!g[6])},i(g){if(!l){for(let y=0;y<u.length;y+=1)d(f[y]);l=!0}},o(g){f=f.filter(Boolean);for(let y=0;y<f.length;y+=1)m(f[y]);l=!1},d(g){g&&b(e),s&&s.d(),Jt(f,g),i[68](null),r=!1,at(a)}}}function Z1(i){let e,t,n,o,l,r;return{c(){e=I("div"),t=I("div"),t.textContent=`${U("submenu_settings")}`,n=H(),o=I("div"),c(o,"class","close svelte-179oyjr"),c(e,"class","item header svelte-179oyjr"),j(e,"mobile",i[5])},m(a,s){v(a,e,s),_(e,t),_(e,n),_(e,o),l||(r=Te(o,"click",_t(i[30])),l=!0)},p(a,s){s[0]&32&&j(e,"mobile",a[5])},d(a){a&&b(e),l=!1,r()}}}function z2(i){let e,t;return e=new j1({props:{isMobile:i[5],id:i[89].id,onClick:i[89].onClick,icon:i[89].icon,label:i[89].label,ariaLabel:i[89].ariaLabel,enabled:i[89].enabled,tooltipText:i[89].tooltipText,maxTooltipWidth:i[89].maxTooltipWidth}}),{c(){A(e.$$.fragment)},m(n,o){E(e,n,o),t=!0},p(n,o){let l={};o[0]&32&&(l.isMobile=n[5]),o[0]&16&&(l.id=n[89].id),o[0]&16&&(l.onClick=n[89].onClick),o[0]&16&&(l.icon=n[89].icon),o[0]&16&&(l.label=n[89].label),o[0]&16&&(l.ariaLabel=n[89].ariaLabel),o[0]&16&&(l.enabled=n[89].enabled),o[0]&16&&(l.tooltipText=n[89].tooltipText),o[0]&16&&(l.maxTooltipWidth=n[89].maxTooltipWidth),e.$set(l)},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){m(e.$$.fragment,n),t=!1},d(n){M(e,n)}}}function W2(i){let e,t;return e=new q1({props:{isMobile:i[5],id:i[89].id,onClick:i[89].onClick,icon:i[89].icon,label:i[89].label,ariaLabel:i[89].ariaLabel,closeSettings:i[30]}}),{c(){A(e.$$.fragment)},m(n,o){E(e,n,o),t=!0},p(n,o){let l={};o[0]&32&&(l.isMobile=n[5]),o[0]&16&&(l.id=n[89].id),o[0]&16&&(l.onClick=n[89].onClick),o[0]&16&&(l.icon=n[89].icon),o[0]&16&&(l.label=n[89].label),o[0]&16&&(l.ariaLabel=n[89].ariaLabel),e.$set(l)},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){m(e.$$.fragment,n),t=!1},d(n){M(e,n)}}}function K2(i){let e,t,n;function o(){return i[66](i[89])}function l(a){i[67](a,i[89])}let r={isMobile:i[5],id:i[89].id,icon:i[89].icon,label:i[89].label,ariaLabel:i[89].ariaLabel,value:i[89].value,valueComponent:i[89].valueComponent,onClick:o,getSubItemForFocus:i[89].getSubItemForFocus};return i[2][i[89].id]!==void 0&&(r.ref=i[2][i[89].id]),e=new w1({props:r}),be.push(()=>Oe(e,"ref",l)),{c(){A(e.$$.fragment)},m(a,s){E(e,a,s),n=!0},p(a,s){i=a;let u={};s[0]&32&&(u.isMobile=i[5]),s[0]&16&&(u.id=i[89].id),s[0]&16&&(u.icon=i[89].icon),s[0]&16&&(u.label=i[89].label),s[0]&16&&(u.ariaLabel=i[89].ariaLabel),s[0]&16&&(u.value=i[89].value),s[0]&16&&(u.valueComponent=i[89].valueComponent),s[0]&16&&(u.onClick=o),s[0]&16&&(u.getSubItemForFocus=i[89].getSubItemForFocus),!t&&s[0]&20&&(t=!0,u.ref=i[2][i[89].id],Ne(()=>t=!1)),e.$set(u)},i(a){n||(d(e.$$.fragment,a),n=!0)},o(a){m(e.$$.fragment,a),n=!1},d(a){M(e,a)}}}function X1(i){let e,t,n,o,l=[K2,W2,z2],r=[];function a(s,u){return s[89].type==="OPEN_SUB_MENU"?0:s[89].type==="CLICK"?1:s[89].type==="SWITCH"?2:-1}return~(e=a(i,[-1,-1,-1,-1]))&&(t=r[e]=l[e](i)),{c(){t&&t.c(),n=it()},m(s,u){~e&&r[e].m(s,u),v(s,n,u),o=!0},p(s,u){let f=e;e=a(s,u),e===f?~e&&r[e].p(s,u):(t&&(ae(),m(r[f],1,1,()=>{r[f]=null}),ue()),~e?(t=r[e],t?t.p(s,u):(t=r[e]=l[e](s),t.c()),d(t,1),t.m(n.parentNode,n)):t=null)},i(s){o||(d(t),o=!0)},o(s){m(t),o=!1},d(s){s&&b(n),~e&&r[e].d(s)}}}function J1(i){let e,t,n;function o(r){i[69](r,i[89])}let l={isMobile:i[5],playerControlsHeight:i[1],returnFromSubMenu:i[89].subMenu.returnFromSubMenu??i[31],id:i[89].id,title:i[89].subMenu.title,closeSettingsMenu:i[89].subMenu.closeSettingsMenu,backToMainSettings:i[89].subMenu.backToMainSettings,itemIdReturnCase:i[89].subMenu.itemIdReturnCase,items:i[89].subMenu.items,selectItem:i[89].subMenu.selectItem,minWidth:i[89].subMenu.minWidth??137};return i[3][i[89].id]!==void 0&&(l.listRef=i[3][i[89].id]),e=new y1({props:l}),be.push(()=>Oe(e,"listRef",o)),{c(){A(e.$$.fragment)},m(r,a){E(e,r,a),n=!0},p(r,a){i=r;let s={};a[0]&32&&(s.isMobile=i[5]),a[0]&2&&(s.playerControlsHeight=i[1]),a[0]&16&&(s.returnFromSubMenu=i[89].subMenu.returnFromSubMenu??i[31]),a[0]&16&&(s.id=i[89].id),a[0]&16&&(s.title=i[89].subMenu.title),a[0]&16&&(s.closeSettingsMenu=i[89].subMenu.closeSettingsMenu),a[0]&16&&(s.backToMainSettings=i[89].subMenu.backToMainSettings),a[0]&16&&(s.itemIdReturnCase=i[89].subMenu.itemIdReturnCase),a[0]&16&&(s.items=i[89].subMenu.items),a[0]&16&&(s.selectItem=i[89].subMenu.selectItem),a[0]&16&&(s.minWidth=i[89].subMenu.minWidth??137),!t&&a[0]&24&&(t=!0,s.listRef=i[3][i[89].id],Ne(()=>t=!1)),e.$set(s)},i(r){n||(d(e.$$.fragment,r),n=!0)},o(r){m(e.$$.fragment,r),n=!1},d(r){M(e,r)}}}function $1(i){let e,t,n=i[89].type==="OPEN_SUB_MENU"&&i[89].subMenu?.show&&J1(i);return{c(){n&&n.c(),e=it()},m(o,l){n&&n.m(o,l),v(o,e,l),t=!0},p(o,l){o[89].type==="OPEN_SUB_MENU"&&o[89].subMenu?.show?n?(n.p(o,l),l[0]&16&&d(n,1)):(n=J1(o),n.c(),d(n,1),n.m(e.parentNode,e)):n&&(ae(),m(n,1,1,()=>{n=null}),ue())},i(o){t||(d(n),t=!0)},o(o){m(n),t=!1},d(o){o&&b(e),n&&n.d(o)}}}function j2(i){let e,t,n,o=i[7]&&Q1(i),l=ht(i[4]),r=[];for(let s=0;s<l.length;s+=1)r[s]=$1(x1(i,l,s));let a=s=>m(r[s],1,1,()=>{r[s]=null});return{c(){e=I("div"),o&&o.c(),t=H();for(let s=0;s<r.length;s+=1)r[s].c();c(e,"class","settings-menu-container svelte-179oyjr"),j(e,"hidden",!i[7]),j(e,"mobile",i[5])},m(s,u){v(s,e,u),o&&o.m(e,null),_(e,t);for(let f=0;f<r.length;f+=1)r[f]&&r[f].m(e,null);n=!0},p(s,u){if(s[7]?o?(o.p(s,u),u[0]&128&&d(o,1)):(o=Q1(s),o.c(),d(o,1),o.m(e,t)):o&&(ae(),m(o,1,1,()=>{o=null}),ue()),u[0]&58|u[1]&1){l=ht(s[4]);let f;for(f=0;f<l.length;f+=1){let p=x1(s,l,f);r[f]?(r[f].p(p,u),d(r[f],1)):(r[f]=$1(p),r[f].c(),d(r[f],1),r[f].m(e,null))}for(ae(),f=l.length;f<r.length;f+=1)a(f);ue()}(!n||u[0]&128)&&j(e,"hidden",!s[7]),(!n||u[0]&32)&&j(e,"mobile",s[5])},i(s){if(!n){d(o);for(let u=0;u<l.length;u+=1)d(r[u]);n=!0}},o(s){m(o),r=r.filter(Boolean);for(let u=0;u<r.length;u+=1)m(r[u]);n=!1},d(s){s&&b(e),o&&o.d(),Jt(r,s)}}}function G2(i,e,t){let n,o,l,r,a,s,u,f,p,g,y,h,C,w,F,T,k,P,G,W,z,le,de,L,{ref:te=void 0}=e,{supportLink:re}=e,{playerControlsHeight:X=0}=e,{returnFocus:Pe}=e,q=ot(),N=Nt(),K=q.state.audioStream$;O(i,K,ge=>t(57,w=ge));let ce=q.state.availableAudioStreams$;O(i,ce,ge=>t(56,C=ge));let oe=q.state.currentQuality$;O(i,oe,ge=>t(60,k=ge));let se=q.state.availableQualities$;O(i,se,ge=>t(58,F=ge));let qe=q.state.autoQualityLimitingAvailable$;O(i,qe,ge=>t(64,z=ge));let Ve=q.state.isAutoQualityEnabled$;O(i,Ve,ge=>t(61,P=ge));let ke=q.state.currentPlaybackRate$;O(i,ke,ge=>t(55,h=ge));let Re=q.state.availablePlaybackRates$;O(i,Re,ge=>t(54,y=ge));let ze=q.state.currentSubtitle$;O(i,ze,ge=>t(53,g=ge));let je=q.state.availableSubtitlesList$;O(i,je,ge=>t(51,f=ge));let Y=q.state.canDownload,fe=q.state.hasMpegSources$;O(i,fe,ge=>t(65,le=ge));let Ze=q.ui.settingsMenuVisible;O(i,Ze,ge=>t(7,L=ge));let _e=q.ui.settingsMenuOpenedByKeyboard;O(i,_e,ge=>t(71,l=ge));let Ue=q.ui.isMobile;O(i,Ue,ge=>t(5,r=ge));let tt=q.ui.mobileNotReportControlHidden$;O(i,tt,ge=>t(62,G=ge));let rt=q.state.canChangePlaybackSpeed$;O(i,rt,ge=>t(63,W=ge));let Je=q.state.trafficSavingEnabled$;O(i,Je,ge=>t(50,u=ge));let Ye=q.ui.playerSize;O(i,Ye,ge=>t(72,de=ge));let We=q.ui.debugPanelVisible;O(i,We,ge=>t(49,s=ge));let J=q.state.isInteractiveTime$,He=q.ui.additionalSettingsMenuItems$;O(i,He,ge=>t(48,a=ge));let we=q.actions.internal.downloadVideo,Ie=q.actions.internal.closeSettingsMenu,Ke=!0,me=Fe({});O(i,me,ge=>t(52,p=ge));let $=!1;function dt(ge){t(6,Ke=!1);let pt=p;pt[ge]=!0,me.set(pt)}function mt(){l||Pe?.(),It(),Ie(),$=!1}function $e(ge){q.actions.internal.setQuality(ge),mt()}function ut(ge){q.actions.internal.setAudioStream(ge),mt()}function St(ge){q.actions.internal.setTrafficSavingEnabled(ge)}function et(ge){q.actions.internal.setPlaybackRate(ge),mt()}function ni(ge){q.actions.internal.setSubtitle(ge),mt()}function It(){t(6,Ke=!0);let ge=p;Object.keys(ge).forEach(pt=>{ge[pt]=!1}),me.set(ge)}function qt(){we()}function oi(){(0,em.isValidURL)(re)&&window.open(re,"_blank"),q.actions.internal.reportProblem(),q.actions.internal.pause()}function st(){_r(q.actions.internal.getDebugTextData())}let yt=()=>{let ge=q.actions.internal.getTraceTextData(),pt=new Blob([...ge],{type:"application/json"}),Zt=window.URL.createObjectURL(pt);No(Zt,"vk_player_trace_info","json")};function ei(){We.set(!s)}function pe(){$=!0}function Lt(){$=!1}function Vt(ge=0){return r?"":`max-height: ${de.height-32-ge-X}px; overflow: auto;`}let Pt,Tt,Ht,Rt,ai,_i,Qt,Ot=Fe();O(i,Ot,ge=>t(59,T=ge));let ri={},Ft={},Pi=ge=>{Ll(ge,Ie)},wt=[];Et(()=>{let ge=J.subscribe(pt=>{pt&&!r&&!$&&!l&&mt()});return()=>{ge()}});let Ei=ge=>dt(ge.id);function gi(ge,pt){i.$$.not_equal(ri[pt.id],ge)&&(ri[pt.id]=ge,t(2,ri))}function ui(ge){be[ge?"unshift":"push"](()=>{te=ge,t(0,te)})}function ci(ge,pt){i.$$.not_equal(Ft[pt.id],ge)&&(Ft[pt.id]=ge,t(3,Ft))}return i.$$set=ge=>{"ref"in ge&&t(0,te=ge.ref),"supportLink"in ge&&t(37,re=ge.supportLink),"playerControlsHeight"in ge&&t(1,X=ge.playerControlsHeight),"returnFocus"in ge&&t(38,Pe=ge.returnFocus)},i.$$.update=()=>{if(i.$$.dirty[1]&1744830464&&t(46,n=xl(k,F,P)),i.$$.dirty[2]&9&&t(39,Pt=Y&&le&&!G),i.$$.dirty[2]&5&&t(40,Tt=N.features.trafficSaving&&!G&&z),i.$$.dirty[1]&1048576|i.$$.dirty[2]&1&&t(41,Ht=f.length>0&&!G),i.$$.dirty[2]&3&&t(42,Rt=!!W&&!G),i.$$.dirty[1]&33554432|i.$$.dirty[2]&1&&t(43,ai=N.features.audioLanguages&&C.length>=2&&!G),i.$$.dirty[2]&1&&t(47,o=!G),i.$$.dirty[1]&1610612736&&t(44,_i=P?U("auto_quality_option"):k),i.$$.dirty[1]&25165824&&t(45,Qt=y.find(ge=>ge.value===h)?.displayValue),i.$$.dirty[0]&4|i.$$.dirty[1]&268435456){let ge=T;ge&&(Cd(ri[ge]),Ot.set(void 0))}i.$$.dirty[0]&56|i.$$.dirty[1]&268435200&&(t(4,wt=[]),o&&wt.push({id:"quality-settings",weight:qn["quality-settings"],type:"OPEN_SUB_MENU",getSubItemForFocus:()=>{let ge=F.findIndex(pt=>pt.selected);return Ft["quality-settings"].children[ge+1]},ariaLabel:U("aria_label_menu_quality",{actual:_i}),icon:Kl,label:U("menu_quality"),value:n,valueComponent:F1,subMenu:{show:p["quality-settings"],title:U("submenu_quality"),closeSettingsMenu:Ie,backToMainSettings:It,itemIdReturnCase:Ot,selectItem:$e,items:F.map(ge=>({value:ge.value,valueComponent:Gl,valueComponentParams:{quality:ge.value,label:ge.displayValue,isMobile:r,isSubCase:!0},selected:ge.selected,label:ge.displayValue}))}}),ai&&wt.push({id:"audio-language-settings",weight:qn["audio-language-settings"],type:"OPEN_SUB_MENU",getSubItemForFocus:()=>{let ge=C.findIndex(pt=>pt.id===w?.id);return Ft["audio-language-settings"].children[ge+1]},ariaLabel:U("aria_label_menu_audio_languages",{actual:ql(w,C)}),icon:R1,label:U("menu_audio_languages"),value:ql(w,C),subMenu:{show:p["audio-language-settings"],title:U("submenu_audio_languages"),closeSettingsMenu:Ie,backToMainSettings:It,itemIdReturnCase:Ot,selectItem:ut,items:C.map(ge=>({value:ge,dataValue:ge.id,selected:ge.id===w?.id,label:ql(ge,C)}))}}),Rt&&wt.push({id:"playback-rate-settings",weight:qn["playback-rate-settings"],type:"OPEN_SUB_MENU",getSubItemForFocus:()=>{let ge=y.findIndex(pt=>pt.selected);return Ft["playback-rate-settings"].children[ge+1]},ariaLabel:U("aria_label_menu_rate",{actual:Qt}),icon:V1,label:U("menu_playback_rate"),value:`${h}x`,subMenu:{show:p["playback-rate-settings"],title:U("submenu_playback_rate"),closeSettingsMenu:Ie,backToMainSettings:It,itemIdReturnCase:Ot,selectItem:et,items:y.map(ge=>({value:ge.value,selected:ge.selected,label:ge.displayValue}))}}),Ht&&wt.push({id:"subtitles-settings",weight:qn["subtitles-settings"],type:"OPEN_SUB_MENU",getSubItemForFocus:()=>{let ge=f.findIndex(pt=>pt.selected);return Ft["subtitles-settings"].children[ge+1]},ariaLabel:U("aria_label_menu_subtitle",{actual:g.displayValue}),icon:jl,label:U("subtitles_caption"),value:g.displayValue,subMenu:{show:p["subtitles-settings"],minWidth:164,title:U("subtitles_caption"),closeSettingsMenu:Ie,backToMainSettings:It,itemIdReturnCase:Ot,selectItem:ni,items:f.map(ge=>({value:ge,selected:ge.selected,label:ge.displayValue}))}}),Tt&&wt.push({id:"traffic-saving-settings",weight:qn["traffic-saving-settings"],type:"SWITCH",onClick:St,ariaLabel:u?U("aria_label_submenu_traffic_saving_off"):`${U("aria_label_submenu_traffic_saving_on")}. ${U("traffic_saving_helper_text")}`,icon:L1,label:U("menu_traffic_saving"),enabled:u,tooltipText:U("traffic_saving_helper_text"),maxTooltipWidth:175}),Pt&&wt.push({id:"download",weight:qn.download,type:"CLICK",onClick:qt,label:U("download_video_caption"),ariaLabel:U("aria_label_menu_download"),icon:A1}),N.showSupport&&wt.push({id:"report",weight:qn.report,type:"CLICK",onClick:oi,label:U("menu_report"),ariaLabel:`${U("menu_report")}. ${U("aria_label_new_tab_alert")}`,icon:D1,isHiddenFor:["desktop"]}),wt.push({id:"copy-data",weight:qn["copy-data"],type:"CLICK",onClick:st,label:U("menu_copy_debug"),ariaLabel:U("menu_copy_debug"),icon:ru,isHiddenFor:["desktop"]}),N.features.saveTraceInfoToFile&&wt.push({id:"save-trace-info",weight:qn["save-trace-info"],type:"CLICK",onClick:yt,label:U("menu_save_debug"),ariaLabel:U("menu_save_debug"),icon:ru,isHiddenFor:["desktop"]}),wt.push({id:"debug-info",weight:qn["debug-info"],type:"CLICK",onClick:ei,label:s?U("aria_label_menu_debug_overlay_disable"):U("aria_label_menu_debug_overlay_enable"),ariaLabel:U("menu_debug_overlay"),icon:B1,isHiddenFor:["desktop"]}),t(4,wt=[...wt,...a.map(ge=>({...ge,isAdditional:!0}))].filter(ge=>!ge.isHiddenFor?.length||!ge.isHiddenFor?.includes("desktop")&&!r||!ge.isHiddenFor?.includes("mobile")&&r).sort((ge,pt)=>ge.weight-pt.weight)))},[te,X,ri,Ft,wt,r,Ke,L,K,ce,oe,se,qe,Ve,ke,Re,ze,je,fe,Ze,_e,Ue,tt,rt,Je,Ye,We,He,me,dt,mt,It,pe,Lt,Vt,Ot,Pi,re,Pe,Pt,Tt,Ht,Rt,ai,_i,Qt,n,o,a,s,u,f,p,g,y,h,C,w,F,T,k,P,G,W,z,le,Ei,gi,ui,ci]}var gu=class extends B{constructor(e){super(),D(this,e,G2,j2,R,{ref:0,supportLink:37,playerControlsHeight:1,returnFocus:38},U2,[-1,-1,-1,-1])}},Yl=gu;function x2(i){Ce(i,"svelte-d9t49t",".settings-icon-wrapper.svelte-d9t49t{position:relative;width:24px}")}function Y2(i){let e,t,n;return t=new Kl({props:{isMobile:i[3],currentQuality:i[4]}}),{c(){e=I("span"),A(t.$$.fragment),c(e,"class","settings-icon-wrapper svelte-d9t49t")},m(o,l){v(o,e,l),E(t,e,null),n=!0},p(o,l){let r={};l&8&&(r.isMobile=o[3]),l&16&&(r.currentQuality=o[4]),t.$set(r)},i(o){n||(d(t.$$.fragment,o),n=!0)},o(o){m(t.$$.fragment,o),n=!1},d(o){o&&b(e),M(t)}}}function Q2(i){let e,t,n;function o(r){i[9](r)}let l={className:i[1]?"opened":"",testId:"btn-settings",click:i[8],ariaLabel:i[2],ariaExpanded:i[1],$$slots:{default:[Y2]},$$scope:{ctx:i}};return i[0]!==void 0&&(l.ref=i[0]),e=new gt({props:l}),be.push(()=>Oe(e,"ref",o)),{c(){A(e.$$.fragment)},m(r,a){E(e,r,a),n=!0},p(r,[a]){let s={};a&2&&(s.className=r[1]?"opened":""),a&4&&(s.ariaLabel=r[2]),a&2&&(s.ariaExpanded=r[1]),a&4120&&(s.$$scope={dirty:a,ctx:r}),!t&&a&1&&(t=!0,s.ref=r[0],Ne(()=>t=!1)),e.$set(s)},i(r){n||(d(e.$$.fragment,r),n=!0)},o(r){m(e.$$.fragment,r),n=!1},d(r){M(e,r)}}}function Z2(i,e,t){let n,o,l,{ref:r=void 0}=e,a=ot(),s=a.state.currentQuality$;O(i,s,C=>t(4,l=C));let u=a.ui.settingsMenuVisible;O(i,u,C=>t(1,n=C));let f=a.actions.internal.toggleSettingsMenu,p=a.ui.isMobile;O(i,p,C=>t(3,o=C));let g;function y(C){let w=gr(C);f(w)}function h(C){r=C,t(0,r)}return i.$$set=C=>{"ref"in C&&t(0,r=C.ref)},i.$$.update=()=>{i.$$.dirty&2&&t(2,g=n?U("tooltip_settings_on"):U("tooltip_settings_off"))},[r,n,g,o,l,s,u,p,y,h]}var hu=class extends B{constructor(e){super(),D(this,e,Z2,Q2,R,{ref:0},x2)}},Qr=hu;function X2(i){let e,t,n,o=i[2].default,l=Ee(o,i,i[1],null),r=[{xmlns:"http://www.w3.org/2000/svg"},{width:"22"},{height:"16"},{fill:"none"},{"aria-hidden":"true"},{"data-testid":"subtitle-pained-icon"},{role:"img"},i[0]],a={};for(let s=0;s<r.length;s+=1)a=ne(a,r[s]);return{c(){e=V("svg"),l&&l.c(),t=V("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"),ye(e,a)},m(s,u){v(s,e,u),l&&l.m(e,null),_(e,t),n=!0},p(s,[u]){l&&l.p&&(!n||u&2)&&Ae(l,o,s,s[1],n?Me(o,s[1],u,null):Le(s[1]),null),ye(e,a=Be(r,[{xmlns:"http://www.w3.org/2000/svg"},{width:"22"},{height:"16"},{fill:"none"},{"aria-hidden":"true"},{"data-testid":"subtitle-pained-icon"},{role:"img"},u&1&&s[0]]))},i(s){n||(d(l,s),n=!0)},o(s){m(l,s),n=!1},d(s){s&&b(e),l&&l.d(s)}}}function J2(i,e,t){let{$$slots:n={},$$scope:o}=e;return i.$$set=l=>{t(0,e=ne(ne({},e),ve(l))),"$$scope"in l&&t(1,o=l.$$scope)},e=ve(e),[e,o,n]}var bu=class extends B{constructor(e){super(),D(this,e,J2,X2,R,{})}},tm=bu;function $2(i){let e,t;return e=new jl({}),{c(){A(e.$$.fragment)},m(n,o){E(e,n,o),t=!0},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){m(e.$$.fragment,n),t=!1},d(n){M(e,n)}}}function ev(i){let e,t;return e=new tm({}),{c(){A(e.$$.fragment)},m(n,o){E(e,n,o),t=!0},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){m(e.$$.fragment,n),t=!1},d(n){M(e,n)}}}function tv(i){let e,t,n,o,l=[ev,$2],r=[];function a(s,u){return s[0]?0:1}return e=a(i,-1),t=r[e]=l[e](i),{c(){t.c(),n=it()},m(s,u){r[e].m(s,u),v(s,n,u),o=!0},p(s,u){let f=e;e=a(s,u),e!==f&&(ae(),m(r[f],1,1,()=>{r[f]=null}),ue(),t=r[e],t||(t=r[e]=l[e](s),t.c()),d(t,1),t.m(n.parentNode,n))},i(s){o||(d(t),o=!0)},o(s){m(t),o=!1},d(s){s&&b(n),r[e].d(s)}}}function iv(i){let e,t;return e=new gt({props:{testId:"btn-Subtitles",ariaLabel:i[2],click:i[1],ariaKeyShortCut:Zn.KeyC,$$slots:{default:[tv]},$$scope:{ctx:i}}}),{c(){A(e.$$.fragment)},m(n,o){E(e,n,o),t=!0},p(n,[o]){let l={};o&4&&(l.ariaLabel=n[2]),o&2&&(l.click=n[1]),o&9&&(l.$$scope={dirty:o,ctx:n}),e.$set(l)},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){m(e.$$.fragment,n),t=!1},d(n){M(e,n)}}}function nv(i,e,t){let{isSubtitlesEnabled:n=!1}=e,{click:o}=e,l;return i.$$set=r=>{"isSubtitlesEnabled"in r&&t(0,n=r.isSubtitlesEnabled),"click"in r&&t(1,o=r.click)},i.$$.update=()=>{i.$$.dirty&1&&t(2,l=n?U("tooltip_subtitles_on"):U("tooltip_subtitles_off"))},[n,o,l]}var vu=class extends B{constructor(e){super(),D(this,e,nv,iv,R,{isSubtitlesEnabled:0,click:1})}},im=vu;function ov(i){Ce(i,"svelte-19o2urr",".time.svelte-19o2urr{display:flex;align-items:center;font-weight:500;font-variant-numeric:tabular-nums;padding:12px 6px}.time.mobile.svelte-19o2urr{padding:0 0 0 8px}.current.svelte-19o2urr{position:relative}.duration.svelte-19o2urr{opacity:0.7}.duration.svelte-19o2urr:before{content:' / ';white-space:pre}")}function nm(i){let e,t;return{c(){e=I("span"),t=De(i[3]),c(e,"class","duration svelte-19o2urr")},m(n,o){v(n,e,o),_(e,t)},p(n,o){o&8&&xe(t,n[3])},d(n){n&&b(e)}}}function rv(i){let e,t,n,o,l=i[2]&&nm(i);return{c(){e=I("div"),t=I("span"),n=De(i[4]),o=H(),l&&l.c(),c(t,"class","current svelte-19o2urr"),c(e,"class","time svelte-19o2urr"),j(e,"mobile",i[1])},m(r,a){v(r,e,a),_(e,t),_(t,n),_(e,o),l&&l.m(e,null),i[7](e)},p(r,[a]){a&16&&xe(n,r[4]),r[2]?l?l.p(r,a):(l=nm(r),l.c(),l.m(e,null)):l&&(l.d(1),l=null),a&2&&j(e,"mobile",r[1])},i:he,o:he,d(r){r&&b(e),l&&l.d(),i[7](null)}}}function lv(i,e,t){let{isMobile:n=!1}=e,{duration:o}=e,{position:l}=e,{showDuration:r=!0}=e,{ref:a}=e,s,u;function f(p){be[p?"unshift":"push"](()=>{a=p,t(0,a)})}return i.$$set=p=>{"isMobile"in p&&t(1,n=p.isMobile),"duration"in p&&t(5,o=p.duration),"position"in p&&t(6,l=p.position),"showDuration"in p&&t(2,r=p.showDuration),"ref"in p&&t(0,a=p.ref)},i.$$.update=()=>{i.$$.dirty&32&&t(3,s=Sn(o)),i.$$.dirty&64&&t(4,u=Sn(l))},[a,n,r,s,u,o,l,f]}var yu=class extends B{constructor(e){super(),D(this,e,lv,rv,R,{isMobile:1,duration:5,position:6,showDuration:2,ref:0},ov)}},Ql=yu;var ao=require("@vkontakte/videoplayer-shared");function sv(i){Ce(i,"svelte-1n5yyua",".icon.svelte-1n5yyua.svelte-1n5yyua{display:block;width:24px;height:24px}.icon.svelte-1n5yyua .cross.svelte-1n5yyua{visibility:hidden}.icon[data-value='off'].svelte-1n5yyua .wave1.svelte-1n5yyua,.icon[data-value='off'].svelte-1n5yyua .wave2.svelte-1n5yyua{visibility:hidden}.icon[data-value='off'].svelte-1n5yyua .cross.svelte-1n5yyua{visibility:visible}.icon[data-value='mid'].svelte-1n5yyua .wave2.svelte-1n5yyua,.icon[data-value='min'].svelte-1n5yyua .wave2.svelte-1n5yyua{visibility:hidden}")}function av(i){let e,t,n,o,l,r;return{c(){e=V("svg"),t=V("g"),n=V("path"),o=V("path"),l=V("path"),c(n,"class","wave2 svelte-1n5yyua"),c(n,"d","M12.98 18.823c-.031 1.207-.67 1.609-1.828.62-1.719-1.469-3.609-3.194-4.242-3.721-.632-.529-1.645-.62-3.073-.62-1.427 0-1.815-.621-1.815-1.241s-.014-1.83-.014-2.001c0-.055.005-.086.014-.13.02-.095-.058-.973 0-1.59.085-.906.388-1.241 1.815-1.241 1.428 0 2.44-.092 3.073-.62.633-.529 2.523-2.253 4.242-3.722 1.158-.989 1.797-.587 1.829.62.043 1.607 0 3.85 0 6.683 0 2.83.043 5.356 0 6.963zm2.901-8.704A.875.875 0 1 1 17.12 8.88c.176.177.41.47.64.872.384.671.616 1.425.616 2.247s-.232 1.576-.615 2.247a4.23 4.23 0 0 1-.641.872.875.875 0 1 1-1.238-1.238c.074-.073.214-.249.36-.503.241-.423.384-.887.384-1.378s-.143-.955-.385-1.378a2.597 2.597 0 0 0-.359-.503zm3-2A.875.875 0 1 1 20.12 6.88c.263.264.62.74.966 1.432.517 1.033.843 2.255.89 3.716-.047 1.403-.373 2.625-.89 3.658-.346.692-.703 1.168-.966 1.432a.875.875 0 1 1-1.238-1.238c.138-.137.383-.464.639-.976.407-.814.667-1.79.705-2.876-.038-1.144-.298-2.12-.705-2.934-.256-.512-.501-.839-.639-.976z"),c(o,"class","wave1 svelte-1n5yyua"),c(o,"d","M12.98 18.823c-.031 1.207-.67 1.609-1.828.62-1.719-1.469-3.609-3.194-4.242-3.721-.632-.529-1.645-.62-3.073-.62-1.427 0-1.815-.621-1.815-1.241s-.014-1.83-.014-2.001c0-.055.005-.086.014-.13.02-.095-.058-.973 0-1.59.085-.906.388-1.241 1.815-1.241 1.428 0 2.44-.092 3.073-.62.633-.529 2.523-2.253 4.242-3.722 1.158-.989 1.797-.587 1.829.62.043 1.607 0 3.85 0 6.683 0 2.83.043 5.356 0 6.963zm2.901-8.704A.875.875 0 1 1 17.12 8.88c.176.177.41.47.64.872.384.671.616 1.425.616 2.247s-.232 1.576-.615 2.247a4.23 4.23 0 0 1-.641.872.875.875 0 1 1-1.238-1.238c.074-.073.214-.249.36-.503.241-.423.384-.887.384-1.378s-.143-.955-.385-1.378a2.597 2.597 0 0 0-.359-.503z"),c(l,"class","cross svelte-1n5yyua"),c(l,"d","m20 10.763 2.381-2.382A.875.875 0 1 1 23.62 9.62L21.237 12l2.382 2.381a.875.875 0 1 1-1.238 1.238L20 13.237l-2.381 2.382a.875.875 0 1 1-1.238-1.238L18.763 12 16.38 9.619A.875.875 0 1 1 17.62 8.38zm-7.02 8.06c-.031 1.207-.67 1.609-1.828.62-1.719-1.469-3.609-3.194-4.242-3.721-.632-.529-1.645-.62-3.073-.62-1.427 0-1.815-.621-1.815-1.241s-.014-1.83-.014-2.001c0-.055.005-.086.014-.13.02-.095-.058-.973 0-1.59.085-.906.388-1.241 1.815-1.241 1.428 0 2.44-.092 3.073-.62.633-.529 2.523-2.253 4.242-3.722 1.158-.989 1.797-.587 1.829.62.043 1.607 0 3.85 0 6.683 0 2.83.043 5.356 0 6.963z"),c(t,"fill","#fff"),c(t,"fill-rule","evenodd"),c(e,"data-value",i[0]),c(e,"data-testid",r="volume-"+i[0]+"-icon"),c(e,"xmlns","http://www.w3.org/2000/svg"),c(e,"class","icon svelte-1n5yyua"),c(e,"aria-hidden","true")},m(a,s){v(a,e,s),_(e,t),_(t,n),_(t,o),_(t,l)},p(a,[s]){s&1&&c(e,"data-value",a[0]),s&1&&r!==(r="volume-"+a[0]+"-icon")&&c(e,"data-testid",r)},i:he,o:he,d(a){a&&b(e)}}}function uv(i,e,t){let{volume:n=1}=e,{muted:o=!1}=e,l=(a,s)=>s?"off":a>.5?"max":a>.2?"mid":a>0?"min":"off",r;return i.$$set=a=>{"volume"in a&&t(1,n=a.volume),"muted"in a&&t(2,o=a.muted)},i.$$.update=()=>{i.$$.dirty&6&&t(0,r=l(n,o))},[r,n,o]}var ku=class extends B{constructor(e){super(),D(this,e,uv,av,R,{volume:1,muted:2},sv)}},Go=ku;var Ln=require("@vkontakte/videoplayer-shared");var om=require("@vkontakte/videoplayer-shared");function cv(i){Ce(i,"svelte-p9r045",".btn-container.svelte-p9r045{position:relative;display:flex;align-items:center;height:100%;transition:var(--button-hover-transition);will-change:opacity;-webkit-tap-highlight-color:transparent}.w-max.svelte-p9r045{width:100%;min-width:0}")}function fv(i){let e,t=i[19].default,n=Ee(t,i,i[24],null);return{c(){n&&n.c()},m(o,l){n&&n.m(o,l),e=!0},p(o,l){n&&n.p&&(!e||l&16777216)&&Ae(n,t,o,o[24],e?Me(t,o[24],l,null):Le(o[24]),null)},i(o){e||(d(n,o),e=!0)},o(o){m(n,o),e=!1},d(o){n&&n.d(o)}}}function dv(i){let e,t;return e=new Cr({props:{content:i[11],translateX:i[9],translateY:i[10],isFullWidthWrapper:i[4],active:i[5],placement:i[6],onVisibilityChange:i[8],$$slots:{default:[mv]},$$scope:{ctx:i}}}),{c(){A(e.$$.fragment)},m(n,o){E(e,n,o),t=!0},p(n,o){let l={};o&2048&&(l.content=n[11]),o&512&&(l.translateX=n[9]),o&1024&&(l.translateY=n[10]),o&16&&(l.isFullWidthWrapper=n[4]),o&32&&(l.active=n[5]),o&64&&(l.placement=n[6]),o&256&&(l.onVisibilityChange=n[8]),o&16777216&&(l.$$scope={dirty:o,ctx:n}),e.$set(l)},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){m(e.$$.fragment,n),t=!1},d(n){M(e,n)}}}function mv(i){let e,t=i[19].default,n=Ee(t,i,i[24],null);return{c(){n&&n.c()},m(o,l){n&&n.m(o,l),e=!0},p(o,l){n&&n.p&&(!e||l&16777216)&&Ae(n,t,o,o[24],e?Me(t,o[24],l,null):Le(o[24]),null)},i(o){e||(d(n,o),e=!0)},o(o){m(n,o),e=!1},d(o){n&&n.d(o)}}}function pv(i){let e,t,n,o,l,r,a,s,u,f=[dv,fv],p=[];function g(y,h){return y[3]&&y[11]&&!y[12]?0:1}return t=g(i,-1),n=p[t]=f[t](i),{c(){e=I("div"),n.c(),c(e,"class",o="btn-container "+i[2]+" svelte-p9r045"),c(e,"aria-hidden",l=i[7]||null)},m(y,h){v(y,e,h),p[t].m(e,null),i[23](e),a=!0,s||(u=[or(r=kr.call(null,e)),Te(e,"fd:resize",i[22]),Te(e,"pointerdown",_t(i[20])),Te(e,"click",_t(i[21]))],s=!0)},p(y,[h]){let C=t;t=g(y,h),t===C?p[t].p(y,h):(ae(),m(p[C],1,1,()=>{p[C]=null}),ue(),n=p[t],n?n.p(y,h):(n=p[t]=f[t](y),n.c()),d(n,1),n.m(e,null)),(!a||h&4&&o!==(o="btn-container "+y[2]+" svelte-p9r045"))&&c(e,"class",o),(!a||h&128&&l!==(l=y[7]||null))&&c(e,"aria-hidden",l)},i(y){a||(d(n),a=!0)},o(y){m(n),a=!1},d(y){y&&b(e),p[t].d(),i[23](null),s=!1,at(u)}}}function _v(i,e,t){let n,o,{$$slots:l={},$$scope:r}=e,{className:a=""}=e,{disabled:s=!1}=e,{hasTooltip:u=!0}=e,{ref:f=void 0}=e,{width:p=void 0}=e,{isFullWidthTooltip:g=!0}=e,{tooltipContent:y=""}=e,{tooltipActive:h=!1}=e,{tooltipPlacement:C="top"}=e,{disabledTooltipContent:w=U("tooltip_button_disabled")}=e,{isAriaHidden:F=!1}=e,{onTooltipVisibilityChange:T=om.noop}=e,{initialTranslateXPx:k=0}=e,{initialTranslateYPx:P=-18}=e,G=ot(),W=G.ui.isMobile;O(i,W,X=>t(12,o=X));let z=G.state.graphIsOpened$;O(i,z,X=>t(18,n=X));let le;function de(X){Cn.call(this,i,X)}function L(X){Cn.call(this,i,X)}let te=X=>{t(1,p=X.target.clientWidth)};function re(X){be[X?"unshift":"push"](()=>{f=X,t(0,f)})}return i.$$set=X=>{"className"in X&&t(2,a=X.className),"disabled"in X&&t(15,s=X.disabled),"hasTooltip"in X&&t(3,u=X.hasTooltip),"ref"in X&&t(0,f=X.ref),"width"in X&&t(1,p=X.width),"isFullWidthTooltip"in X&&t(4,g=X.isFullWidthTooltip),"tooltipContent"in X&&t(16,y=X.tooltipContent),"tooltipActive"in X&&t(5,h=X.tooltipActive),"tooltipPlacement"in X&&t(6,C=X.tooltipPlacement),"disabledTooltipContent"in X&&t(17,w=X.disabledTooltipContent),"isAriaHidden"in X&&t(7,F=X.isAriaHidden),"onTooltipVisibilityChange"in X&&t(8,T=X.onTooltipVisibilityChange),"initialTranslateXPx"in X&&t(9,k=X.initialTranslateXPx),"initialTranslateYPx"in X&&t(10,P=X.initialTranslateYPx),"$$scope"in X&&t(24,r=X.$$scope)},i.$$.update=()=>{i.$$.dirty&491520&&(s?t(11,le=n?U("tooltip_disabled_when_graph_on"):w):t(11,le=y))},[f,p,a,u,g,h,C,F,T,k,P,le,o,W,z,s,y,w,n,l,de,L,te,re,r]}var wu=class extends B{constructor(e){super(),D(this,e,_v,pv,R,{className:2,disabled:15,hasTooltip:3,ref:0,width:1,isFullWidthTooltip:4,tooltipContent:16,tooltipActive:5,tooltipPlacement:6,disabledTooltipContent:17,isAriaHidden:7,onTooltipVisibilityChange:8,initialTranslateXPx:9,initialTranslateYPx:10},cv)}},Mt=wu;function gv(i){let e,t,n,o,l,r;return{c(){e=V("svg"),t=V("rect"),o=V("path"),c(t,"width","20"),c(t,"height","20"),c(t,"rx","10"),c(t,"fill","white"),c(t,"fill-opacity",n=i[0]?1:.24),c(o,"d","M12.5259 8.68864L12.587 8.87536L12.3702 8.23648C12.236 7.84095 11.8295 7.60563 11.4192 7.68593C10.9471 7.77831 10.6508 8.24892 10.7718 8.71381L10.8968 9.19361L10.6671 8.33855C10.5566 7.92714 10.1475 7.67011 9.72832 7.74872C9.32282 7.82476 9.04808 8.18606 9.06319 8.57993L8.34064 5.64592C8.21338 5.12912 7.64646 4.85578 7.1621 5.07767C6.79216 5.24715 6.59467 5.65495 6.69131 6.0498L7.98547 11.3373L6.87 10.178C6.52545 9.81987 5.94024 9.86103 5.64933 10.2638C5.44455 10.5474 5.44907 10.9312 5.66048 11.2098L7.89246 14.1518C7.89246 14.1518 9.12075 15.9833 12.1932 15.3769C14.6243 14.8972 15.4434 12.7097 14.7748 10.4997L14.2213 8.20869C14.0975 7.69621 13.5537 7.40646 13.0585 7.58916C12.614 7.75319 12.3788 8.23875 12.5259 8.68864Z"),c(o,"fill",l=i[0]?"var(--interactive-episode-complete)":"white"),c(e,"width","20"),c(e,"height","20"),c(e,"viewBox","0 0 20 20"),c(e,"fill","none"),c(e,"xmlns","http://www.w3.org/2000/svg"),c(e,"aria-hidden","true"),c(e,"data-testid",r=(i[0],"interactive-episode-completed-icon"))},m(a,s){v(a,e,s),_(e,t),_(e,o)},p(a,[s]){s&1&&n!==(n=a[0]?1:.24)&&c(t,"fill-opacity",n),s&1&&l!==(l=a[0]?"var(--interactive-episode-complete)":"white")&&c(o,"fill",l),s&1&&r!==(r=(a[0],"interactive-episode-completed-icon"))&&c(e,"data-testid",r)},i:he,o:he,d(a){a&&b(e)}}}function hv(i,e,t){let{completed:n}=e;return i.$$set=o=>{"completed"in o&&t(0,n=o.completed)},[n]}var Cu=class extends B{constructor(e){super(),D(this,e,hv,gv,R,{completed:0})}},Zl=Cu;function bv(i){Ce(i,"svelte-bklhpe",".interactive-episode-icon.svelte-bklhpe{width:20px;height:20px;position:absolute;transform:translateX(-50%);cursor:default}.interactive-episode-icon.disabled.svelte-bklhpe{pointer-events:none;opacity:0.4}")}function vv(i){let e,t,n,o,l,r,a;return t=new Zl({props:{completed:!!i[0].completed}}),{c(){e=I("div"),A(t.$$.fragment),c(e,"class","interactive-episode-icon svelte-bklhpe"),c(e,"style",n=`left: ${i[0].from+i[0].width/2}%`),j(e,"disabled",i[1])},m(s,u){v(s,e,u),E(t,e,null),l=!0,r||(a=[or(o=kr.call(null,e)),Te(e,"fd:resize",i[3])],r=!0)},p(s,u){let f={};u&1&&(f.completed=!!s[0].completed),t.$set(f),(!l||u&1&&n!==(n=`left: ${s[0].from+s[0].width/2}%`))&&c(e,"style",n),(!l||u&2)&&j(e,"disabled",s[1])},i(s){l||(d(t.$$.fragment,s),l=!0)},o(s){m(t.$$.fragment,s),l=!1},d(s){s&&b(e),M(t),r=!1,at(a)}}}function yv(i){let e,t;return e=new Mt({props:{tooltipContent:U(i[0].completed?"tooltip_episode_finished":"tooltip_episode_unfinished"),initialTranslateXPx:-10,initialTranslateYPx:-10,disabled:i[1],width:i[2]||0,isAriaHidden:!0,isFullWidthTooltip:!1,$$slots:{default:[vv]},$$scope:{ctx:i}}}),{c(){A(e.$$.fragment)},m(n,o){E(e,n,o),t=!0},p(n,[o]){let l={};o&1&&(l.tooltipContent=U(n[0].completed?"tooltip_episode_finished":"tooltip_episode_unfinished")),o&2&&(l.disabled=n[1]),o&4&&(l.width=n[2]||0),o&23&&(l.$$scope={dirty:o,ctx:n}),e.$set(l)},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){m(e.$$.fragment,n),t=!1},d(n){M(e,n)}}}function kv(i,e,t){let{videoEpisode:n}=e,{disabled:o}=e,l,r=a=>{t(2,l=a.target.clientWidth)};return i.$$set=a=>{"videoEpisode"in a&&t(0,n=a.videoEpisode),"disabled"in a&&t(1,o=a.disabled)},[n,o,l,r]}var Su=class extends B{constructor(e){super(),D(this,e,kv,yv,R,{videoEpisode:0,disabled:1},bv)}},rm=Su;function wv(i){Ce(i,"svelte-1rzxunm",".video-episodes-wrap.svelte-1rzxunm{position:absolute;width:100%;height:100%}.video-episode.svelte-1rzxunm{position:absolute;height:calc(3 * var(--slider-height));box-sizing:border-box;margin-top:-5px;padding:var(--slider-height) var(--slider-video-episode-gap);transition:transform 0.2s}.video-episode.svelte-1rzxunm:not(.disabled):where(:hover, :active){transform:scaleY(1.5)}.video-episode-inner.svelte-1rzxunm,.video-episode-loaded.svelte-1rzxunm,.video-episode-filled.svelte-1rzxunm{position:absolute;height:var(--slider-height);border-radius:var(--slider-radius)}.video-episode-inner.svelte-1rzxunm{position:absolute;overflow:hidden;width:calc(100% - 2 * var(--slider-video-episode-gap));background:var(--slider-bg)}.video-episode-loaded.svelte-1rzxunm{position:absolute;left:-100%;width:100%;height:100%;border-radius:var(--slider-radius);background:var(--slider-loaded-bg);transition:transform 0.2s}.video-episode-filled.svelte-1rzxunm{position:absolute;left:-100%;width:100%;height:100%;border-radius:var(--slider-radius);background-color:var(--slider-filled-bg)}")}function lm(i,e,t){let n=i.slice();return n[3]=e[t],n}function sm(i){let e,t,n,o,l,r,a,s,u;return{c(){e=I("div"),t=I("div"),n=I("div"),l=H(),r=I("div"),s=H(),c(n,"class","video-episode-loaded svelte-1rzxunm"),c(n,"style",o=`transform: translateX(${i[3].loadedWidth/i[3].width*100}%)`),c(r,"class","video-episode-filled svelte-1rzxunm"),c(r,"style",a=`transform: translateX(${i[3].filledWidth/i[3].width*100}%)`),j(r,"mobile",i[1]),c(t,"class","video-episode-inner svelte-1rzxunm"),c(e,"class","video-episode svelte-1rzxunm"),c(e,"style",u=`left: ${i[3].from}%; width: ${i[3].width}%`),j(e,"disabled",i[2]),j(e,"mobile",i[1])},m(f,p){v(f,e,p),_(e,t),_(t,n),_(t,l),_(t,r),_(e,s)},p(f,p){p&1&&o!==(o=`transform: translateX(${f[3].loadedWidth/f[3].width*100}%)`)&&c(n,"style",o),p&1&&a!==(a=`transform: translateX(${f[3].filledWidth/f[3].width*100}%)`)&&c(r,"style",a),p&2&&j(r,"mobile",f[1]),p&1&&u!==(u=`left: ${f[3].from}%; width: ${f[3].width}%`)&&c(e,"style",u),p&4&&j(e,"disabled",f[2]),p&2&&j(e,"mobile",f[1])},d(f){f&&b(e)}}}function Cv(i){let e,t=ht(i[0]),n=[];for(let o=0;o<t.length;o+=1)n[o]=sm(lm(i,t,o));return{c(){e=I("div");for(let o=0;o<n.length;o+=1)n[o].c();c(e,"class","video-episodes-wrap svelte-1rzxunm")},m(o,l){v(o,e,l);for(let r=0;r<n.length;r+=1)n[r]&&n[r].m(e,null)},p(o,[l]){if(l&7){t=ht(o[0]);let r;for(r=0;r<t.length;r+=1){let a=lm(o,t,r);n[r]?n[r].p(a,l):(n[r]=sm(a),n[r].c(),n[r].m(e,null))}for(;r<n.length;r+=1)n[r].d(1);n.length=t.length}},i:he,o:he,d(o){o&&b(e),Jt(n,o)}}}function Sv(i,e,t){let{videoEpisodes:n=[]}=e,{isMobile:o}=e,{disabled:l}=e;return i.$$set=r=>{"videoEpisodes"in r&&t(0,n=r.videoEpisodes),"isMobile"in r&&t(1,o=r.isMobile),"disabled"in r&&t(2,l=r.disabled)},[n,o,l]}var Iu=class extends B{constructor(e){super(),D(this,e,Sv,Cv,R,{videoEpisodes:0,isMobile:1,disabled:2},wv)}},am=Iu;function Iv(i){Ce(i,"svelte-v8ydei",".interactive-icons.svelte-v8ydei.svelte-v8ydei{position:absolute;width:calc(100% - 20px);top:-28px}.interactive-icons.mobile.svelte-v8ydei.svelte-v8ydei{top:-10px}.slider.svelte-v8ydei.svelte-v8ydei{position:relative;height:var(--slider-height);border-radius:var(--slider-radius);cursor:pointer;transition:visibility 0.2s, opacity 0.2s;will-change:opacity, transform;width:100%;touch-action:none;-webkit-tap-highlight-color:transparent}.no-handle.svelte-v8ydei.svelte-v8ydei{cursor:default}.slider.svelte-v8ydei.svelte-v8ydei:before{content:'';position:absolute;left:0;right:0;top:calc(-1 * (var(--controls-height) / 2 - var(--slider-height)) / 2);height:calc(var(--controls-height) / 2)}.bars.svelte-v8ydei.svelte-v8ydei{position:absolute;width:100%;height:100%;border-radius:var(--slider-radius);overflow:hidden;background:var(--slider-bg)}.loaded.svelte-v8ydei.svelte-v8ydei{position:absolute;left:-100%;width:100%;height:100%;border-radius:var(--slider-radius);background:var(--slider-loaded-bg);transition:transform 0.2s}.filled.svelte-v8ydei.svelte-v8ydei{position:absolute;left:-100%;width:100%;height:100%;border-radius:var(--slider-radius);background-color:var(--slider-filled-bg)}.slider.square.svelte-v8ydei.svelte-v8ydei,.slider.square.svelte-v8ydei>.bars.svelte-v8ydei,.slider.square.svelte-v8ydei .loaded.svelte-v8ydei,.slider.square.svelte-v8ydei .filled.svelte-v8ydei{border-radius:unset}.filled.active-live.svelte-v8ydei.svelte-v8ydei{background-color:var(--slider-filled-active-live-bg)}.filled.ads.svelte-v8ydei.svelte-v8ydei{background-color:var(--slider-filled-ads)}.handleWrap.svelte-v8ydei.svelte-v8ydei{position:absolute;left:-100%;width:100%}.handle.svelte-v8ydei.svelte-v8ydei{position:absolute;width:var(--slider-handle-size);height:var(--slider-handle-size);right:calc(-1 * var(--slider-handle-size) / 2);top:calc((var(--slider-height) - var(--slider-handle-size)) / 2);border-radius:50%;background-color:var(--slider-filled-bg);visibility:hidden;opacity:0;transform:scale(0);transition:opacity 0.2s, transform 0.2s, visibility 0.2s;will-change:opacity, transform}.handle.active-live.svelte-v8ydei.svelte-v8ydei{background-color:var(--slider-filled-active-live-bg)}.slider.svelte-v8ydei:hover .handle.svelte-v8ydei,.slider-dragging.svelte-v8ydei .handle.svelte-v8ydei{visibility:visible;opacity:1;transform:scale(1)}.slider-dragging.svelte-v8ydei .handle.svelte-v8ydei{transform:scale(1.3)}.slider-vertical.svelte-v8ydei.svelte-v8ydei{position:absolute;left:-8px;top:-18px;transform-origin:0 0;transform:rotate(-90deg)}.slider.disabled.svelte-v8ydei.svelte-v8ydei{cursor:default;opacity:0.4}")}function um(i,e,t){let n=i.slice();return n[50]=e[t],n}function cm(i){let e,t,n=ht(i[21]),o=[];for(let r=0;r<n.length;r+=1)o[r]=dm(um(i,n,r));let l=r=>m(o[r],1,1,()=>{o[r]=null});return{c(){e=I("div");for(let r=0;r<o.length;r+=1)o[r].c();c(e,"class","interactive-icons svelte-v8ydei"),j(e,"mobile",i[6]),j(e,"hidden",i[6]&&!i[20])},m(r,a){v(r,e,a);for(let s=0;s<o.length;s+=1)o[s]&&o[s].m(e,null);t=!0},p(r,a){if(a[0]&2098176){n=ht(r[21]);let s;for(s=0;s<n.length;s+=1){let u=um(r,n,s);o[s]?(o[s].p(u,a),d(o[s],1)):(o[s]=dm(u),o[s].c(),d(o[s],1),o[s].m(e,null))}for(ae(),s=n.length;s<o.length;s+=1)l(s);ue()}(!t||a[0]&64)&&j(e,"mobile",r[6]),(!t||a[0]&1048640)&&j(e,"hidden",r[6]&&!r[20])},i(r){if(!t){for(let a=0;a<n.length;a+=1)d(o[a]);t=!0}},o(r){o=o.filter(Boolean);for(let a=0;a<o.length;a+=1)m(o[a]);t=!1},d(r){r&&b(e),Jt(o,r)}}}function fm(i){let e,t;return e=new rm({props:{videoEpisode:i[50],disabled:i[10]}}),{c(){A(e.$$.fragment)},m(n,o){E(e,n,o),t=!0},p(n,o){let l={};o[0]&2097152&&(l.videoEpisode=n[50]),o[0]&1024&&(l.disabled=n[10]),e.$set(l)},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){m(e.$$.fragment,n),t=!1},d(n){M(e,n)}}}function dm(i){let e,t,n=i[50].interactive&&fm(i);return{c(){n&&n.c(),e=it()},m(o,l){n&&n.m(o,l),v(o,e,l),t=!0},p(o,l){o[50].interactive?n?(n.p(o,l),l[0]&2097152&&d(n,1)):(n=fm(o),n.c(),d(n,1),n.m(e.parentNode,e)):n&&(ae(),m(n,1,1,()=>{n=null}),ue())},i(o){t||(d(n),t=!0)},o(o){m(n),t=!1},d(o){o&&b(e),n&&n.d(o)}}}function Tv(i){let e,t,n,o,l,r;return{c(){e=I("div"),t=I("div"),o=H(),l=I("div"),c(t,"class","loaded svelte-v8ydei"),c(t,"style",n=`transform: translateX(${i[12]*100}%);`),c(l,"class","filled svelte-v8ydei"),c(l,"style",r=`transform: translateX(${i[13]*100}%);`),j(l,"active-live",i[5]),j(l,"ads",i[7]),c(e,"class","bars svelte-v8ydei")},m(a,s){v(a,e,s),_(e,t),_(e,o),_(e,l)},p(a,s){s[0]&4096&&n!==(n=`transform: translateX(${a[12]*100}%);`)&&c(t,"style",n),s[0]&8192&&r!==(r=`transform: translateX(${a[13]*100}%);`)&&c(l,"style",r),s[0]&32&&j(l,"active-live",a[5]),s[0]&128&&j(l,"ads",a[7])},i:he,o:he,d(a){a&&b(e)}}}function Pv(i){let e,t;return e=new am({props:{videoEpisodes:i[21],disabled:i[10],isMobile:i[6]}}),{c(){A(e.$$.fragment)},m(n,o){E(e,n,o),t=!0},p(n,o){let l={};o[0]&2097152&&(l.videoEpisodes=n[21]),o[0]&1024&&(l.disabled=n[10]),o[0]&64&&(l.isMobile=n[6]),e.$set(l)},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){m(e.$$.fragment,n),t=!1},d(n){M(e,n)}}}function Ev(i){let e,t,n,o,l,r,a,s,u,f,p,g,y,h=i[9]&&cm(i),C=[Pv,Tv],w=[];function F(T,k){return T[21].length?0:1}return n=F(i,[-1,-1]),o=w[n]=C[n](i),{c(){h&&h.c(),e=H(),t=I("div"),o.c(),l=H(),r=I("div"),a=I("div"),c(a,"class","handle svelte-v8ydei"),j(a,"active-live",i[5]),c(r,"class","handleWrap svelte-v8ydei"),c(r,"style",s=`transform: translateX(${i[14]*100}%);`),j(r,"hidden",i[11]),c(t,"class",u="slider "+i[1]+" svelte-v8ydei"),c(t,"aria-label",i[15]),c(t,"aria-valuemin",i[16]),c(t,"aria-valuemax",i[17]),c(t,"aria-valuenow",i[18]),c(t,"aria-valuetext",i[19]),c(t,"role","slider"),c(t,"tabindex","0"),c(t,"data-testid",f=i[2]??null),j(t,"disabled",i[10]),j(t,"slider-dragging",i[20]),j(t,"hidden",i[3]),j(t,"slider-vertical",i[4]),j(t,"no-handle",i[11]),j(t,"square",i[8])},m(T,k){h&&h.m(T,k),v(T,e,k),v(T,t,k),w[n].m(t,null),_(t,l),_(t,r),_(r,a),i[44](t),p=!0,g||(y=[Te(t,"pointerdown",Yt(i[22])),Te(t,"pointermove",Yt(i[23])),Te(t,"pointerup",Yt(i[24])),Te(t,"pointerenter",Yt(i[25])),Te(t,"pointerleave",Yt(i[26])),Te(t,"click",_t(i[28])),Te(t,"wheel",i[27])],g=!0)},p(T,k){T[9]?h?(h.p(T,k),k[0]&512&&d(h,1)):(h=cm(T),h.c(),d(h,1),h.m(e.parentNode,e)):h&&(ae(),m(h,1,1,()=>{h=null}),ue());let P=n;n=F(T,k),n===P?w[n].p(T,k):(ae(),m(w[P],1,1,()=>{w[P]=null}),ue(),o=w[n],o?o.p(T,k):(o=w[n]=C[n](T),o.c()),d(o,1),o.m(t,l)),(!p||k[0]&32)&&j(a,"active-live",T[5]),(!p||k[0]&16384&&s!==(s=`transform: translateX(${T[14]*100}%);`))&&c(r,"style",s),(!p||k[0]&2048)&&j(r,"hidden",T[11]),(!p||k[0]&2&&u!==(u="slider "+T[1]+" svelte-v8ydei"))&&c(t,"class",u),(!p||k[0]&32768)&&c(t,"aria-label",T[15]),(!p||k[0]&65536)&&c(t,"aria-valuemin",T[16]),(!p||k[0]&131072)&&c(t,"aria-valuemax",T[17]),(!p||k[0]&262144)&&c(t,"aria-valuenow",T[18]),(!p||k[0]&524288)&&c(t,"aria-valuetext",T[19]),(!p||k[0]&4&&f!==(f=T[2]??null))&&c(t,"data-testid",f),(!p||k[0]&1026)&&j(t,"disabled",T[10]),(!p||k[0]&1048578)&&j(t,"slider-dragging",T[20]),(!p||k[0]&10)&&j(t,"hidden",T[3]),(!p||k[0]&18)&&j(t,"slider-vertical",T[4]),(!p||k[0]&2050)&&j(t,"no-handle",T[11]),(!p||k[0]&258)&&j(t,"square",T[8])},i(T){p||(d(h),d(o),p=!0)},o(T){m(h),m(o),p=!1},d(T){T&&(b(e),b(t)),h&&h.d(T),w[n].d(),i[44](null),g=!1,at(y)}}}function Mv(i,e,t){let n,o,{ref:l=void 0}=e,{className:r=""}=e,{testId:a=void 0}=e,{isHidden:s=!1}=e,{isVertical:u=!1}=e,{isActiveLive:f=!1}=e,{isMobile:p=!1}=e,{isAds:g=!1}=e,{squareBorders:y=!1}=e,{videoEpisodes:h=[]}=e,{withWheelHandler:C=!1}=e,{isInteractive:w=!1}=e,{disabled:F=!1}=e,{hideHandel:T=!1}=e,k,{onPointerDown:P=Ln.noop}=e,{onHandleMove:G=Ln.noop}=e,{onPointerUp:W=Ln.noop}=e,{onPointerEnter:z=Ln.noop}=e,{onPointerMove:le=Ln.noop}=e,{onPointerLeave:de=Ln.noop}=e,{onWheelUp:L=Ln.noop}=e,{onWheelDown:te=Ln.noop}=e,{onWheelLeft:re=Ln.noop}=e,{onWheelRight:X=Ln.noop}=e,{onDisabledClick:Pe=Ln.noop}=e,{loadedProgress:q=0}=e,{filledProgress:N=0}=e,{handleProgress:K=0}=e,{ariaLabel:ce=""}=e,{ariaValueMin:oe=void 0}=e,{ariaValueMax:se=void 0}=e,{ariaValueNow:qe=void 0}=e,{ariaValueText:Ve=""}=e,ke=Nt(),Re=!1,ze;function je(J){if(l&&(k=l.getBoundingClientRect()),F||Re||!l)return;t(20,Re=!0);let He=rt(J.clientX,J.clientY);P(He),l.setPointerCapture(J.pointerId)}function Y(J){if(F)return;let He=rt(J.clientX,J.clientY),we=Je(J.clientX);le(He,we,k.width),Re&&G(He)}function fe(J){if(F||!Re)return;t(20,Re=!1);let He=rt(J.clientX,J.clientY);W(He)}function Ze(J){if(l&&(k=l.getBoundingClientRect()),F)return;let He=rt(J.clientX,J.clientY),we=Je(J.clientX);z(He,we,k.width)}function _e(){F||de()}function Ue(J){F||C&&(J.preventDefault(),J.deltaY<0?L():J.deltaY>0?te():J.deltaX>0?X():re())}function tt(J){F&&Pe(rt(J.clientX,J.clientY))}function rt(J,He){return u?Math.max(0,Math.min(1,(k.height-(He-k.top))/k.height)):Math.min(Math.max(J-k.x,0),k.width)/k.width}function Je(J){return Math.min(Math.max(J-k.x,0),k.width)}function Ye(J,He){let we=ke.features.episodesClustering&&!w?ke.episodeMinWidthPc:0,Ie=[],Ke=0,me=0,$=0;for(let $e=1;$e<h.length;$e++)me=h[$e].time/ze*100,me-Ke>we&&(Ie.push({from:Ke,width:Math.max(0,me-Ke),loadedWidth:Math.max(0,Math.min(me,J)-Ke),filledWidth:Math.max(0,Math.min(me,He)-Ke),interactive:h[$e-1].interactive,completed:h[$e-1].completed}),Ke=h[$e].time/ze*100,$++);let dt={from:Ke,width:Math.max(0,100-Ke),loadedWidth:Math.max(0,Math.min(J,100)-Ke),filledWidth:Math.max(0,Math.min(He,100)-Ke),interactive:h[$].interactive,completed:h[$].completed};100-Ke<we?($-=1,Ie[$].width+=100-Ke,Ie[$].loadedWidth+=Math.max(0,Math.min(J,100)-Ke),Ie[$].filledWidth+=Math.max(0,Math.min(He,100)-Ke)):Ie[$]=dt;let mt=h[0].time;if(mt!==0){let $e=mt/ze*100;Ie.unshift({from:0,width:$e,loadedWidth:Math.min($e,J),filledWidth:Math.min($e,He)})}return Ie}function We(J){be[J?"unshift":"push"](()=>{l=J,t(0,l)})}return i.$$set=J=>{"ref"in J&&t(0,l=J.ref),"className"in J&&t(1,r=J.className),"testId"in J&&t(2,a=J.testId),"isHidden"in J&&t(3,s=J.isHidden),"isVertical"in J&&t(4,u=J.isVertical),"isActiveLive"in J&&t(5,f=J.isActiveLive),"isMobile"in J&&t(6,p=J.isMobile),"isAds"in J&&t(7,g=J.isAds),"squareBorders"in J&&t(8,y=J.squareBorders),"videoEpisodes"in J&&t(29,h=J.videoEpisodes),"withWheelHandler"in J&&t(30,C=J.withWheelHandler),"isInteractive"in J&&t(9,w=J.isInteractive),"disabled"in J&&t(10,F=J.disabled),"hideHandel"in J&&t(11,T=J.hideHandel),"onPointerDown"in J&&t(31,P=J.onPointerDown),"onHandleMove"in J&&t(32,G=J.onHandleMove),"onPointerUp"in J&&t(33,W=J.onPointerUp),"onPointerEnter"in J&&t(34,z=J.onPointerEnter),"onPointerMove"in J&&t(35,le=J.onPointerMove),"onPointerLeave"in J&&t(36,de=J.onPointerLeave),"onWheelUp"in J&&t(37,L=J.onWheelUp),"onWheelDown"in J&&t(38,te=J.onWheelDown),"onWheelLeft"in J&&t(39,re=J.onWheelLeft),"onWheelRight"in J&&t(40,X=J.onWheelRight),"onDisabledClick"in J&&t(41,Pe=J.onDisabledClick),"loadedProgress"in J&&t(12,q=J.loadedProgress),"filledProgress"in J&&t(13,N=J.filledProgress),"handleProgress"in J&&t(14,K=J.handleProgress),"ariaLabel"in J&&t(15,ce=J.ariaLabel),"ariaValueMin"in J&&t(16,oe=J.ariaValueMin),"ariaValueMax"in J&&t(17,se=J.ariaValueMax),"ariaValueNow"in J&&t(18,qe=J.ariaValueNow),"ariaValueText"in J&&t(19,Ve=J.ariaValueText)},i.$$.update=()=>{i.$$.dirty[0]&131072&&t(42,ze=se??0),i.$$.dirty[0]&536870912|i.$$.dirty[1]&2048&&t(43,n=h[h.length-1]?.time<ze),i.$$.dirty[0]&536883200|i.$$.dirty[1]&6144&&t(21,o=h.length&&n&&ze?Ye(q*100,N*100):[])},[l,r,a,s,u,f,p,g,y,w,F,T,q,N,K,ce,oe,se,qe,Ve,Re,o,je,Y,fe,Ze,_e,Ue,tt,h,C,P,G,W,z,le,de,L,te,re,X,Pe,ze,n,We]}var Tu=class extends B{constructor(e){super(),D(this,e,Mv,Ev,R,{ref:0,className:1,testId:2,isHidden:3,isVertical:4,isActiveLive:5,isMobile:6,isAds:7,squareBorders:8,videoEpisodes:29,withWheelHandler:30,isInteractive:9,disabled:10,hideHandel:11,onPointerDown:31,onHandleMove:32,onPointerUp:33,onPointerEnter:34,onPointerMove:35,onPointerLeave:36,onWheelUp:37,onWheelDown:38,onWheelLeft:39,onWheelRight:40,onDisabledClick:41,loadedProgress:12,filledProgress:13,handleProgress:14,ariaLabel:15,ariaValueMin:16,ariaValueMax:17,ariaValueNow:18,ariaValueText:19},Iv,[-1,-1])}},Sr=Tu;var In=(i,e)=>Bo[i]>=Bo[e],mm=(i,e)=>Bo[i]<Bo[e],Xl=(i,e)=>Bo[i]<=Bo[e],pm=i=>i>699?"xl":i>599?"l":i>509?"m":i>320?"s":"xs";function Av(i){Ce(i,"svelte-1l78lz9",".volumeBar-container.svelte-1l78lz9{display:flex;align-items:center}.volumeBar-container.vertical.svelte-1l78lz9,.vertical.svelte-1l78lz9 .tooltip-wrapper,.vertical.svelte-1l78lz9 .btn{width:40px}.volumeBar.svelte-1l78lz9{display:flex;align-items:center;margin:0 8px;position:relative;width:70px}.volumeBar-slider-vertical{width:50px !important}.volumeBar-vertical.svelte-1l78lz9{padding:0 8px 0 0;width:0}")}function Lv(i){let e,t;return e=new Go({props:{volume:i[3],muted:i[1]}}),{c(){A(e.$$.fragment)},m(n,o){E(e,n,o),t=!0},p(n,o){let l={};o[0]&8&&(l.volume=n[3]),o[0]&2&&(l.muted=n[1]),e.$set(l)},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){m(e.$$.fragment,n),t=!1},d(n){M(e,n)}}}function Vv(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:Zn.KeyM,$$slots:{default:[Lv]},$$scope:{ctx:i}}}),{c(){A(e.$$.fragment)},m(n,o){E(e,n,o),t=!0},p(n,o){let l={};o[0]&512&&(l.disabled=n[9]),o[0]&4&&(l.testId=n[2]?"btn-volume-vertical":"btn-volume-horizontal"),o[0]&128&&(l.ariaLabel=n[7]),o[0]&1&&(l.click=n[0]),o[0]&10|o[1]&32&&(l.$$scope={dirty:o,ctx:n}),e.$set(l)},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){m(e.$$.fragment,n),t=!1},d(n){M(e,n)}}}function _m(i){let e,t,n;return t=new Sr({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]:ao.noop,onPointerLeave:i[2]?i[20]:ao.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=I("div"),A(t.$$.fragment),c(e,"class","volumeBar svelte-1l78lz9"),j(e,"volumeBar-vertical",i[2])},m(o,l){v(o,e,l),E(t,e,null),n=!0},p(o,l){let r={};l[0]&4&&(r.className=o[2]?"volumeBar-slider-vertical":""),l[0]&36&&(r.isHidden=o[2]&&!o[5]),l[0]&4&&(r.isVertical=o[2]),l[0]&4&&(r.onPointerEnter=o[2]?o[19]:ao.noop),l[0]&4&&(r.onPointerLeave=o[2]?o[20]:ao.noop),l[0]&256&&(r.ariaValueNow=Math.round(o[8]*100)),l[0]&256&&(r.ariaValueText=`${Math.round(o[8]*100)}%`),l[0]&256&&(r.filledProgress=o[8]),l[0]&256&&(r.handleProgress=o[8]),l[0]&4&&(r.testId=o[2]?"volume-slider-vertical":"volume-slider"),t.$set(r),(!n||l[0]&4)&&j(e,"volumeBar-vertical",o[2])},i(o){n||(d(t.$$.fragment,o),n=!0)},o(o){m(t.$$.fragment,o),n=!1},d(o){o&&b(e),M(t)}}}function Rv(i){let e,t,n,o,l,r;t=new Cr({props:{content:i[6],translateY:-18,$$slots:{default:[Vv]},$$scope:{ctx:i}}});let a=i[4]&&_m(i);return{c(){e=I("div"),A(t.$$.fragment),n=H(),a&&a.c(),c(e,"class","volumeBar-container svelte-1l78lz9"),j(e,"vertical",i[2])},m(s,u){v(s,e,u),E(t,e,null),_(e,n),a&&a.m(e,null),o=!0,l||(r=[Te(e,"mouseenter",function(){zt(i[2]?i[21]:ao.noop)&&(i[2]?i[21]:ao.noop).apply(this,arguments)}),Te(e,"mouseleave",function(){zt(i[2]?i[22]:ao.noop)&&(i[2]?i[22]:ao.noop).apply(this,arguments)}),Te(e,"wheel",Yt(i[23]))],l=!0)},p(s,u){i=s;let f={};u[0]&64&&(f.content=i[6]),u[0]&655|u[1]&32&&(f.$$scope={dirty:u,ctx:i}),t.$set(f),i[4]?a?(a.p(i,u),u[0]&16&&d(a,1)):(a=_m(i),a.c(),d(a,1),a.m(e,null)):a&&(ae(),m(a,1,1,()=>{a=null}),ue()),(!o||u[0]&4)&&j(e,"vertical",i[2])},i(s){o||(d(t.$$.fragment,s),d(a),o=!0)},o(s){m(t.$$.fragment,s),m(a),o=!1},d(s){s&&b(e),M(t),a&&a.d(),l=!1,at(r)}}}function Bv(i,e,t){let n,o,l,r,{click:a}=e,s=ot(),u=Nt(),f=s.state.volume$;O(i,f,ke=>t(3,n=ke));let p=s.state.muted$;O(i,p,ke=>t(25,r=ke));let g=s.actions.internal.setVolume,y=s.ui.currentGridType$;O(i,y,ke=>t(24,l=ke));let h=s.callbacks?.onAudioDoesNotExistHint,C=s.callbacks?.onAudioDisabledHint,w=s.state.isAudioAvailable$;O(i,w,ke=>t(4,o=ke));let F=s.state.isAudioDisabled,T=!1,k,P,G,W,z,le,de=1,L=!1,te=!1;function re(ke){de=n,g(ke)}function X(){Dl(s,n,u.controls.volumeStepWheel)}function Pe(){Nl(s,n,u.controls.volumeStepWheel)}function q(ke){g(ke)}function N(ke){let Re=ke;g(Re,Re===0?de:Re)}function K(){L=!0}function ce(){L=!1,qe()}function oe(){clearTimeout(k),t(5,T=!0)}function se(){qe()}function qe(){k=window.setTimeout(()=>{L||t(5,T=!1)},u.controls.volumeBarTimeout)}function Ve(ke){ke.deltaY<0?X():ke.deltaY>0&&Pe()}return i.$$set=ke=>{"click"in ke&&t(0,a=ke.click)},i.$$.update=()=>{i.$$.dirty[0]&33554448&&t(1,W=!o||r),i.$$.dirty[0]&16777216&&t(2,z=Xl(l,"s")),i.$$.dirty[0]&6&&(z?t(6,P=""):t(6,P=W?U("tooltip_volume"):U("tooltip_volume_muted")),t(7,G=W?U("tooltip_volume"):U("tooltip_volume_muted"))),i.$$.dirty[0]&10&&t(8,le=W?0:n),i.$$.dirty[0]&16&&(o?t(9,te=F&&!C):t(9,te=!h))},[a,W,z,n,o,T,P,G,le,te,f,p,y,w,re,X,Pe,q,N,K,ce,oe,se,Ve,l,r]}var Pu=class extends B{constructor(e){super(),D(this,e,Bv,Rv,R,{click:0},Av,[-1,-1])}},gm=Pu;var vm=require("@vkontakte/videoplayer-shared");function Dv(i){let e,t,n,o,l,r=i[2].default,a=Ee(r,i,i[1],null),s=[{xmlns:"http://www.w3.org/2000/svg"},{width:"24"},{height:"24"},{"aria-hidden":"true"},{role:"img"},i[0]],u={};for(let f=0;f<s.length;f+=1)u=ne(u,s[f]);return{c(){e=V("svg"),a&&a.c(),t=V("g"),n=V("path"),o=V("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"),ye(e,u)},m(f,p){v(f,e,p),a&&a.m(e,null),_(e,t),_(t,n),_(t,o),l=!0},p(f,[p]){a&&a.p&&(!l||p&2)&&Ae(a,r,f,f[1],l?Me(r,f[1],p,null):Le(f[1]),null),ye(e,u=Be(s,[{xmlns:"http://www.w3.org/2000/svg"},{width:"24"},{height:"24"},{"aria-hidden":"true"},{role:"img"},p&1&&f[0]]))},i(f){l||(d(a,f),l=!0)},o(f){m(a,f),l=!1},d(f){f&&b(e),a&&a.d(f)}}}function Nv(i,e,t){let{$$slots:n={},$$scope:o}=e;return i.$$set=l=>{t(0,e=ne(ne({},e),ve(l))),"$$scope"in l&&t(1,o=l.$$scope)},e=ve(e),[e,o,n]}var Eu=class extends B{constructor(e){super(),D(this,e,Nv,Dv,R,{})}},hm=Eu;function Ov(i){Ce(i,"svelte-17t966y",'svg[data-testid="close-fullscreen-icon"] ._enter,svg[data-testid="open-fullscreen-icon"] ._exit{visibility:hidden;opacity:0}')}function Fv(i){let e,t;return e=new hm({props:{"data-testid":i[0]?"close-fullscreen-icon":"open-fullscreen-icon"}}),{c(){A(e.$$.fragment)},m(n,o){E(e,n,o),t=!0},p(n,[o]){let l={};o&1&&(l["data-testid"]=n[0]?"close-fullscreen-icon":"open-fullscreen-icon"),e.$set(l)},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){m(e.$$.fragment,n),t=!1},d(n){M(e,n)}}}function qv(i,e,t){let{isFullscreen:n=!1}=e;return i.$$set=o=>{"isFullscreen"in o&&t(0,n=o.isFullscreen)},[n]}var Mu=class extends B{constructor(e){super(),D(this,e,qv,Fv,R,{isFullscreen:0},Ov)}},bm=Mu;function Hv(i){let e,t;return e=new bm({props:{isFullscreen:i[0]}}),{c(){A(e.$$.fragment)},m(n,o){E(e,n,o),t=!0},p(n,o){let l={};o&1&&(l.isFullscreen=n[0]),e.$set(l)},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){m(e.$$.fragment,n),t=!1},d(n){M(e,n)}}}function Uv(i){let e,t;return e=new gt({props:{testId:"btn-fullscreen",ariaLabel:i[2],click:i[1],ariaKeyShortCut:Zn.KeyF,$$slots:{default:[Hv]},$$scope:{ctx:i}}}),{c(){A(e.$$.fragment)},m(n,o){E(e,n,o),t=!0},p(n,[o]){let l={};o&4&&(l.ariaLabel=n[2]),o&2&&(l.click=n[1]),o&9&&(l.$$scope={dirty:o,ctx:n}),e.$set(l)},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){m(e.$$.fragment,n),t=!1},d(n){M(e,n)}}}function zv(i,e,t){let{isFullscreen:n=!1}=e,{click:o=vm.noop}=e,l;return i.$$set=r=>{"isFullscreen"in r&&t(0,n=r.isFullscreen),"click"in r&&t(1,o=r.click)},i.$$.update=()=>{i.$$.dirty&1&&t(2,l=n?U("tooltip_fullscreen_on"):U("tooltip_fullscreen_off"))},[n,o,l]}var Au=class extends B{constructor(e){super(),D(this,e,zv,Uv,R,{isFullscreen:0,click:1})}},Jl=Au;function Wv(i){let e,t,n,o=i[2].default,l=Ee(o,i,i[1],null),r=[{xmlns:"http://www.w3.org/2000/svg"},{width:"24"},{height:"24"},{fill:"none"},{"aria-hidden":"true"},{"data-testid":"play-icon"},{role:"img"},i[0]],a={};for(let s=0;s<r.length;s+=1)a=ne(a,r[s]);return{c(){e=V("svg"),l&&l.c(),t=V("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"),ye(e,a)},m(s,u){v(s,e,u),l&&l.m(e,null),_(e,t),n=!0},p(s,[u]){l&&l.p&&(!n||u&2)&&Ae(l,o,s,s[1],n?Me(o,s[1],u,null):Le(s[1]),null),ye(e,a=Be(r,[{xmlns:"http://www.w3.org/2000/svg"},{width:"24"},{height:"24"},{fill:"none"},{"aria-hidden":"true"},{"data-testid":"play-icon"},{role:"img"},u&1&&s[0]]))},i(s){n||(d(l,s),n=!0)},o(s){m(l,s),n=!1},d(s){s&&b(e),l&&l.d(s)}}}function Kv(i,e,t){let{$$slots:n={},$$scope:o}=e;return i.$$set=l=>{t(0,e=ne(ne({},e),ve(l))),"$$scope"in l&&t(1,o=l.$$scope)},e=ve(e),[e,o,n]}var Lu=class extends B{constructor(e){super(),D(this,e,Kv,Wv,R,{})}},Ir=Lu;function jv(i){let e,t,n,o=i[2].default,l=Ee(o,i,i[1],null),r=[{xmlns:"http://www.w3.org/2000/svg"},{width:"24"},{height:"24"},{fill:"none"},{"aria-hidden":"true"},{"data-testid":"pause-icon"},{role:"img"},i[0]],a={};for(let s=0;s<r.length;s+=1)a=ne(a,r[s]);return{c(){e=V("svg"),l&&l.c(),t=V("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"),ye(e,a)},m(s,u){v(s,e,u),l&&l.m(e,null),_(e,t),n=!0},p(s,[u]){l&&l.p&&(!n||u&2)&&Ae(l,o,s,s[1],n?Me(o,s[1],u,null):Le(s[1]),null),ye(e,a=Be(r,[{xmlns:"http://www.w3.org/2000/svg"},{width:"24"},{height:"24"},{fill:"none"},{"aria-hidden":"true"},{"data-testid":"pause-icon"},{role:"img"},u&1&&s[0]]))},i(s){n||(d(l,s),n=!0)},o(s){m(l,s),n=!1},d(s){s&&b(e),l&&l.d(s)}}}function Gv(i,e,t){let{$$slots:n={},$$scope:o}=e;return i.$$set=l=>{t(0,e=ne(ne({},e),ve(l))),"$$scope"in l&&t(1,o=l.$$scope)},e=ve(e),[e,o,n]}var Vu=class extends B{constructor(e){super(),D(this,e,Gv,jv,R,{})}},$l=Vu;var km=require("@vkontakte/videoplayer-shared");function xv(i){Ce(i,"svelte-1ot3duq",".mobile.svelte-1ot3duq{position:relative;display:flex;align-items:center;justify-content:center}.mobile.svelte-1ot3duq svg{transform:scale(2)}.icon-background-mobile.svelte-1ot3duq{position:absolute;top:16px;left:16px;border-radius:var(--big-play-radius);background-color:var(--big-play-bg-color);width:calc(100% - 32px);height:calc(100% - 32px)}")}function ym(i){let e;return{c(){e=I("div"),c(e,"class","icon-background-mobile svelte-1ot3duq")},m(t,n){v(t,e,n)},d(t){t&&b(e)}}}function Yv(i){let e,t,n,o,l=i[1]&&ym(i);var r=i[8];function a(s,u){return{}}return r&&(n=Dt(r,a(i))),{c(){l&&l.c(),e=H(),t=I("div"),n&&A(n.$$.fragment),c(t,"class","svelte-1ot3duq"),j(t,"mobile",i[1])},m(s,u){l&&l.m(s,u),v(s,e,u),v(s,t,u),n&&E(n,t,null),o=!0},p(s,u){if(s[1]?l||(l=ym(s),l.c(),l.m(e.parentNode,e)):l&&(l.d(1),l=null),u&256&&r!==(r=s[8])){if(n){ae();let f=n;m(f.$$.fragment,1,0,()=>{M(f,1)}),ue()}r?(n=Dt(r,a(s,u)),A(n.$$.fragment),d(n.$$.fragment,1),E(n,t,null)):n=null}(!o||u&2)&&j(t,"mobile",s[1])},i(s){o||(n&&d(n.$$.fragment,s),o=!0)},o(s){n&&m(n.$$.fragment,s),o=!1},d(s){s&&(b(e),b(t)),l&&l.d(s),n&&M(n)}}}function Qv(i){let e,t,n;function o(r){i[13](r)}let l={className:(i[1]?"btn-m--play":"")+" "+i[3],testId:"btn-play",click:i[5]?i[6]:i[4],disabled:i[2],ariaLabel:i[7],ariaKeyShortCut:Zn.KeyK,$$slots:{default:[Yv]},$$scope:{ctx:i}};return i[0]!==void 0&&(l.ref=i[0]),e=new gt({props:l}),be.push(()=>Oe(e,"ref",o)),{c(){A(e.$$.fragment)},m(r,a){E(e,r,a),n=!0},p(r,[a]){let s={};a&10&&(s.className=(r[1]?"btn-m--play":"")+" "+r[3]),a&112&&(s.click=r[5]?r[6]:r[4]),a&4&&(s.disabled=r[2]),a&128&&(s.ariaLabel=r[7]),a&33026&&(s.$$scope={dirty:a,ctx:r}),!t&&a&1&&(t=!0,s.ref=r[0],Ne(()=>t=!1)),e.$set(s)},i(r){n||(d(e.$$.fragment,r),n=!0)},o(r){m(e.$$.fragment,r),n=!1},d(r){M(e,r)}}}function Zv(i,e,t){let n,o,{fakeIsPlaying$:l}=An();O(i,l,T=>t(12,o=T));let{ref:r=void 0}=e,{isMobile:a=!1}=e,{isPlaying:s=!1}=e,{disabled:u=!1}=e,{className:f=""}=e,{click:p=km.noop}=e,{toggle:g}=l,y,h,C,w;function F(T){r=T,t(0,r)}return i.$$set=T=>{"ref"in T&&t(0,r=T.ref),"isMobile"in T&&t(1,a=T.isMobile),"isPlaying"in T&&t(10,s=T.isPlaying),"disabled"in T&&t(2,u=T.disabled),"className"in T&&t(3,f=T.className),"click"in T&&t(4,p=T.click)},i.$$.update=()=>{i.$$.dirty&4096&&t(5,h=o!==null),i.$$.dirty&5152&&t(11,C=h?o:s),i.$$.dirty&2048&&t(7,w=C?U("tooltip_pause"):U("tooltip_play")),i.$$.dirty&2048&&t(8,n=C?$l:Ir)},t(6,y=g),[r,a,u,f,p,h,y,w,n,l,s,C,o,F]}var Ru=class extends B{constructor(e){super(),D(this,e,Zv,Qv,R,{ref:0,isMobile:1,isPlaying:10,disabled:2,className:3,click:4},xv)}},Zr=Ru;function Xv(i){let e,t,n,o=i[2].default,l=Ee(o,i,i[1],null),r=[{xmlns:"http://www.w3.org/2000/svg"},{width:"26"},{height:"24"},{fill:"none"},{"aria-hidden":"true"},{role:"img"},i[0]],a={};for(let s=0;s<r.length;s+=1)a=ne(a,r[s]);return{c(){e=V("svg"),l&&l.c(),t=V("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"),ye(e,a)},m(s,u){v(s,e,u),l&&l.m(e,null),_(e,t),n=!0},p(s,[u]){l&&l.p&&(!n||u&2)&&Ae(l,o,s,s[1],n?Me(o,s[1],u,null):Le(s[1]),null),ye(e,a=Be(r,[{xmlns:"http://www.w3.org/2000/svg"},{width:"26"},{height:"24"},{fill:"none"},{"aria-hidden":"true"},{role:"img"},u&1&&s[0]]))},i(s){n||(d(l,s),n=!0)},o(s){m(l,s),n=!1},d(s){s&&b(e),l&&l.d(s)}}}function Jv(i,e,t){let{$$slots:n={},$$scope:o}=e;return i.$$set=l=>{t(0,e=ne(ne({},e),ve(l))),"$$scope"in l&&t(1,o=l.$$scope)},e=ve(e),[e,o,n]}var Bu=class extends B{constructor(e){super(),D(this,e,Jv,Xv,R,{})}},wm=Bu;function $v(i){let e,t;return e=new wm({props:{style:i[1],"data-testid":i[0]?"prev-icon":"next-icon"}}),{c(){A(e.$$.fragment)},m(n,o){E(e,n,o),t=!0},p(n,[o]){let l={};o&2&&(l.style=n[1]),o&1&&(l["data-testid"]=n[0]?"prev-icon":"next-icon"),e.$set(l)},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){m(e.$$.fragment,n),t=!1},d(n){M(e,n)}}}function e4(i,e,t){let{isPrev:n=!1}=e,{isMobile:o=!1}=e,l;return i.$$set=r=>{"isPrev"in r&&t(0,n=r.isPrev),"isMobile"in r&&t(2,o=r.isMobile)},i.$$.update=()=>{i.$$.dirty&5&&(n&&o?t(1,l="transform: scaleX(-1) scale(1.3333);"):n?t(1,l="transform: scaleX(-1);"):o?t(1,l="transform: scale(1.3333);"):t(1,l=void 0))},[n,l,o]}var Du=class extends B{constructor(e){super(),D(this,e,e4,$v,R,{isPrev:0,isMobile:2})}},Cm=Du;function t4(i){let e,t;return e=new Cm({props:{isMobile:i[1],isPrev:i[3]==="prev"}}),{c(){A(e.$$.fragment)},m(n,o){E(e,n,o),t=!0},p(n,o){let l={};o&2&&(l.isMobile=n[1]),o&8&&(l.isPrev=n[3]==="prev"),e.$set(l)},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){m(e.$$.fragment,n),t=!1},d(n){M(e,n)}}}function i4(i){let e,t,n;function o(r){i[6](r)}let l={testId:"btn-"+i[3],disabled:i[2],ariaLabel:i[5],click:i[4],$$slots:{default:[t4]},$$scope:{ctx:i}};return i[0]!==void 0&&(l.ref=i[0]),e=new gt({props:l}),be.push(()=>Oe(e,"ref",o)),{c(){A(e.$$.fragment)},m(r,a){E(e,r,a),n=!0},p(r,[a]){let s={};a&8&&(s.testId="btn-"+r[3]),a&4&&(s.disabled=r[2]),a&32&&(s.ariaLabel=r[5]),a&16&&(s.click=r[4]),a&138&&(s.$$scope={dirty:a,ctx:r}),!t&&a&1&&(t=!0,s.ref=r[0],Ne(()=>t=!1)),e.$set(s)},i(r){n||(d(e.$$.fragment,r),n=!0)},o(r){m(e.$$.fragment,r),n=!1},d(r){M(e,r)}}}function n4(i,e,t){let{ref:n=void 0}=e,{isMobile:o=!1}=e,{disabled:l=!1}=e,{type:r}=e,{click:a}=e,s;function u(f){n=f,t(0,n)}return i.$$set=f=>{"ref"in f&&t(0,n=f.ref),"isMobile"in f&&t(1,o=f.isMobile),"disabled"in f&&t(2,l=f.disabled),"type"in f&&t(3,r=f.type),"click"in f&&t(4,a=f.click)},i.$$.update=()=>{i.$$.dirty&8&&t(5,s=r==="prev"?U("tooltip_previous"):U("tooltip_next"))},[n,o,l,r,a,s,u]}var Nu=class extends B{constructor(e){super(),D(this,e,n4,i4,R,{ref:0,isMobile:1,disabled:2,type:3,click:4})}},Tr=Nu;function o4(i){let e,t,n,o=i[2].default,l=Ee(o,i,i[1],null),r=[{xmlns:"http://www.w3.org/2000/svg"},{width:"24"},{height:"24"},{fill:"none"},{"aria-hidden":"true"},{"data-testid":"vk-logo-icon"},{role:"img"},i[0]],a={};for(let s=0;s<r.length;s+=1)a=ne(a,r[s]);return{c(){e=V("svg"),l&&l.c(),t=V("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"),ye(e,a)},m(s,u){v(s,e,u),l&&l.m(e,null),_(e,t),n=!0},p(s,[u]){l&&l.p&&(!n||u&2)&&Ae(l,o,s,s[1],n?Me(o,s[1],u,null):Le(s[1]),null),ye(e,a=Be(r,[{xmlns:"http://www.w3.org/2000/svg"},{width:"24"},{height:"24"},{fill:"none"},{"aria-hidden":"true"},{"data-testid":"vk-logo-icon"},{role:"img"},u&1&&s[0]]))},i(s){n||(d(l,s),n=!0)},o(s){m(l,s),n=!1},d(s){s&&b(e),l&&l.d(s)}}}function r4(i,e,t){let{$$slots:n={},$$scope:o}=e;return i.$$set=l=>{t(0,e=ne(ne({},e),ve(l))),"$$scope"in l&&t(1,o=l.$$scope)},e=ve(e),[e,o,n]}var Ou=class extends B{constructor(e){super(),D(this,e,r4,o4,R,{})}},Sm=Ou;function l4(i){let e,t,n,o,l,r,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 p=0;p<u.length;p+=1)f=ne(f,u[p]);return{c(){e=V("svg"),s&&s.c(),t=V("path"),n=V("path"),o=V("path"),l=V("path"),c(t,"fill","#fff"),c(t,"d","M32.55 17.042h2.494L38.707 7h-1.81l-2.936 8.276h-.286L30.84 7H29zM48.075 17.042l-4.619-5.199L47.718 7h-2.11l-3.563 4.088h-.413V7h-1.71v10.042h1.71V12.74h.427l3.764 4.302z"),c(n,"fill","#fff"),c(n,"d","M57.888 11.886c.883-.342 1.44-1.125 1.44-2.151C59.327 8.14 58.001 7 56.062 7h-3.92v10.042h4.205c1.953 0 3.279-1.14 3.279-2.806 0-1.168-.656-2.037-1.74-2.35m-4.034-3.39h2.21c.911 0 1.539.555 1.539 1.381 0 .812-.628 1.368-1.54 1.368h-2.21zm2.494 7.05h-2.494V12.74h2.494c.898 0 1.525.57 1.525 1.396 0 .84-.627 1.41-1.525 1.41M61.188 17.042h2.323l2.766-5.498h.228v5.498h1.568V9.635h-2.324l-2.765 5.498h-.228V9.635h-1.568zM69.146 19.25h1.64v-2.208h5.33v2.208h1.64v-3.703h-1.283V9.635h-5.431l-.37 3.79c-.13 1.338-.528 2.121-1.34 2.121h-.186zm2.494-3.703c.4-.385.57-1.04.685-2.151l.228-2.265h2.28v4.416zM86.025 13.253c0-2.136-1.597-3.76-3.849-3.76s-3.848 1.61-3.848 3.846 1.596 3.846 3.848 3.846c1.54 0 2.994-.727 3.55-2.137l-1.54-.256c-.356.527-1.04.897-1.91.897-1.254 0-2.081-.77-2.238-1.909h5.958c.015-.156.029-.327.029-.527m-3.849-2.336c1.027 0 1.796.655 2.067 1.581h-4.105c.27-.954 1.04-1.58 2.038-1.58M90.837 17.185c2.324 0 3.963-1.596 3.963-3.846s-1.64-3.846-3.963-3.846-3.962 1.595-3.962 3.846c0 2.25 1.639 3.846 3.962 3.846m0-1.496c-1.34 0-2.252-.954-2.252-2.35s.912-2.35 2.252-2.35 2.252.954 2.252 2.35-.912 2.35-2.252 2.35"),c(n,"class","_ru"),c(o,"fill","#fff"),c(o,"d","M35.02 17.36h-2.484L29 7.422h1.832l2.826 8.188h.284l2.925-8.188h1.803zM43.43 12.215l4.6 5.144h-2.243l-3.749-4.256h-.426v4.256h-1.704V7.423h1.704v4.045h.412l3.55-4.045h2.101zM56.808 17.36h-2.485l-3.536-9.937h1.832l2.826 8.188h.284l2.925-8.188h1.803zM63.257 17.36h-1.633v-7.33h1.633zm-.809-8.373q-.455 0-.738-.268a.97.97 0 0 1-.284-.718.97.97 0 0 1 .284-.72q.297-.28.738-.281.44 0 .724.282a.97.97 0 0 1 .284.719.97.97 0 0 1-.284.718q-.284.268-.724.268M68.382 17.5q-1.037 0-1.86-.48a3.5 3.5 0 0 1-1.293-1.352q-.454-.874-.454-1.973t.454-1.96a3.37 3.37 0 0 1 1.293-1.352 3.55 3.55 0 0 1 1.86-.494q.894 0 1.59.367.696.352 1.136.888V7.423h1.633v9.936h-1.22l-.342-1.184a4 4 0 0 1-1.164.944q-.71.381-1.633.381m.397-1.452q1.038 0 1.676-.648.654-.663.653-1.705 0-1.044-.653-1.692-.639-.662-1.675-.662-1.023 0-1.662.662-.639.649-.639 1.692t.64 1.705q.638.648 1.66.648M81.929 13.61q0 .211-.029.522h-5.935q.113.86.71 1.38.597.508 1.52.508.624 0 1.121-.24.51-.24.781-.648l1.534.254a3 3 0 0 1-1.378 1.564q-.965.55-2.158.55-1.108 0-1.988-.48a3.6 3.6 0 0 1-1.363-1.352q-.483-.874-.483-1.973t.483-1.96a3.5 3.5 0 0 1 1.363-1.352q.88-.495 1.988-.494 1.107 0 1.974.494.88.478 1.363 1.339.497.845.497 1.888M78.095 11.3q-.738 0-1.292.423-.54.422-.739 1.141h4.09a2.17 2.17 0 0 0-.767-1.127q-.54-.437-1.292-.437M86.751 17.5q-1.136 0-2.044-.48a3.66 3.66 0 0 1-1.406-1.352q-.497-.874-.497-1.973t.497-1.96q.511-.873 1.406-1.352.909-.495 2.044-.494 1.137 0 2.031.494a3.4 3.4 0 0 1 1.406 1.353q.51.86.511 1.959 0 1.098-.511 1.973a3.53 3.53 0 0 1-1.406 1.353q-.894.48-2.03.479m0-1.48q.995 0 1.62-.634.624-.648.624-1.691t-.625-1.678q-.624-.648-1.619-.648-.993 0-1.618.648-.625.634-.625 1.678 0 1.043.625 1.69.625.636 1.618.635"),c(o,"class","_en"),c(l,"fill","#fff"),c(l,"fill-rule","evenodd"),c(l,"d","M7 8.6c0-1.96 0-2.94.381-3.689a3.5 3.5 0 0 1 1.53-1.53C9.66 3 10.64 3 12.6 3h1.36c2.464 0 3.696 0 4.638.48a4.4 4.4 0 0 1 1.922 1.922c.48.942.48 2.174.48 4.638v3.92c0 2.464 0 3.696-.48 4.638a4.4 4.4 0 0 1-1.922 1.922c-.942.48-2.174.48-4.638.48H12.6c-1.96 0-2.94 0-3.689-.381a3.5 3.5 0 0 1-1.53-1.53C7 18.34 7 17.36 7 15.4zm9.265 1.744c.901.539 1.352.808 1.505 1.157.133.304.133.65 0 .954-.153.349-.604.618-1.505 1.157l-2.386 1.425c-.943.563-1.414.844-1.802.807a1.2 1.2 0 0 1-.847-.48C11 15.05 11 14.5 11 13.403v-2.85c0-1.098 0-1.647.23-1.96.201-.274.51-.45.847-.481.388-.037.86.244 1.802.807zM5 9.04c0-2.464 0-3.696.48-4.638a4.4 4.4 0 0 1 .955-1.253 3.7 3.7 0 0 0-1.033.33A4.4 4.4 0 0 0 3.48 5.403C3 6.344 3 7.576 3 10.04v3.92c0 2.464 0 3.696.48 4.638a4.4 4.4 0 0 0 1.922 1.922c.304.155.637.26 1.033.33a4.4 4.4 0 0 1-.955-1.252C5 18.656 5 17.424 5 14.96z"),c(l,"clip-rule","evenodd"),ye(e,f)},m(p,g){v(p,e,g),s&&s.m(e,null),_(e,t),_(e,n),_(e,o),_(e,l),r=!0},p(p,[g]){s&&s.p&&(!r||g&2)&&Ae(s,a,p,p[1],r?Me(a,p[1],g,null):Le(p[1]),null),ye(e,f=Be(u,[{xmlns:"http://www.w3.org/2000/svg"},{width:"95"},{height:"24"},{fill:"none"},{"aria-hidden":"true"},{role:"img"},g&1&&p[0]]))},i(p){r||(d(s,p),r=!0)},o(p){m(s,p),r=!1},d(p){p&&b(e),s&&s.d(p)}}}function s4(i,e,t){let{$$slots:n={},$$scope:o}=e;return i.$$set=l=>{t(0,e=ne(ne({},e),ve(l))),"$$scope"in l&&t(1,o=l.$$scope)},e=ve(e),[e,o,n]}var Fu=class extends B{constructor(e){super(),D(this,e,s4,l4,R,{})}},Im=Fu;function a4(i){Ce(i,"svelte-1nhjml",'svg[data-testid="vk-video-logo-icon--short"] ._ru,svg[data-testid="vk-video-logo-icon--short"] ._en,svg[data-testid="vk-video-logo-icon"] ._en,svg[data-testid="vk-video-logo-icon--en"] ._ru{visibility:hidden;opacity:0}')}function u4(i){let e,t;return e=new Im({props:{width:i[0],height:"24",viewBox:"0 0 "+(i[0]+1)+" 24","data-testid":i[1]}}),{c(){A(e.$$.fragment)},m(n,o){E(e,n,o),t=!0},p(n,[o]){let l={};o&1&&(l.width=n[0]),o&1&&(l.viewBox="0 0 "+(n[0]+1)+" 24"),o&2&&(l["data-testid"]=n[1]),e.$set(l)},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){m(e.$$.fragment,n),t=!1},d(n){M(e,n)}}}var c4="vk-video-logo-icon--short";function f4(i,e,t){let{short:n=!1}=e,{isCyrillic:o=!0}=e,l,r;return i.$$set=a=>{"short"in a&&t(2,n=a.short),"isCyrillic"in a&&t(3,o=a.isCyrillic)},i.$$.update=()=>{i.$$.dirty&12&&(t(0,l=n?21:95),t(1,r=n?c4:"vk-video-logo-icon"),!o&&!n&&(t(0,l=91),t(1,r="vk-video-logo-icon--en")))},[l,r,n,o]}var qu=class extends B{constructor(e){super(),D(this,e,f4,u4,R,{short:2,isCyrillic:3},a4)}},Tm=qu;function m4(i){let e,t;return e=new Sm({}),{c(){A(e.$$.fragment)},m(n,o){E(e,n,o),t=!0},p:he,i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){m(e.$$.fragment,n),t=!1},d(n){M(e,n)}}}function p4(i){let e,t;return e=new Tm({props:{short:i[4],isCyrillic:i[5]}}),{c(){A(e.$$.fragment)},m(n,o){E(e,n,o),t=!0},p(n,o){let l={};o&16&&(l.short=n[4]),o&32&&(l.isCyrillic=n[5]),e.$set(l)},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){m(e.$$.fragment,n),t=!1},d(n){M(e,n)}}}function _4(i){let e,t,n,o,l=[p4,m4],r=[];function a(s,u){return s[2]?0:1}return e=a(i,-1),t=r[e]=l[e](i),{c(){t.c(),n=it()},m(s,u){r[e].m(s,u),v(s,n,u),o=!0},p(s,u){let f=e;e=a(s,u),e===f?r[e].p(s,u):(ae(),m(r[f],1,1,()=>{r[f]=null}),ue(),t=r[e],t?t.p(s,u):(t=r[e]=l[e](s),t.c()),d(t,1),t.m(n.parentNode,n))},i(s){o||(d(t),o=!0)},o(s){m(t),o=!1},d(s){s&&b(n),r[e].d(s)}}}function g4(i){let e,t,n;function o(r){i[14](r)}let l={className:"btn-full-opacity",disabled:!i[1],click:i[9],testId:i[2]?"btn-vk-video-logo":"btn-vk-logo",ariaLabel:i[3],$$slots:{default:[_4]},$$scope:{ctx:i}};return i[0]!==void 0&&(l.ref=i[0]),e=new gt({props:l}),be.push(()=>Oe(e,"ref",o)),{c(){A(e.$$.fragment)},m(r,a){E(e,r,a),n=!0},p(r,[a]){let s={};a&2&&(s.disabled=!r[1]),a&4&&(s.testId=r[2]?"btn-vk-video-logo":"btn-vk-logo"),a&8&&(s.ariaLabel=r[3]),a&131124&&(s.$$scope={dirty:a,ctx:r}),!t&&a&1&&(t=!0,s.ref=r[0],Ne(()=>t=!1)),e.$set(s)},i(r){n||(d(e.$$.fragment,r),n=!0)},o(r){m(e.$$.fragment,r),n=!1},d(r){M(e,r)}}}function h4(i,e,t){let n,o,l,{ref:r=void 0}=e,{logoClickable:a=!1}=e,{targetUrl:s=""}=e,{click:u}=e,f=Nt(),p=ot(),g=p.ui.currentGridType$;O(i,g,P=>t(12,n=P));let y=p.ui.isMobile;O(i,y,P=>t(13,o=P));let h=p.isCyrillicRelatedInterface$;O(i,h,P=>t(5,l=P));let C,w,F,T=()=>{u(),p.callbacks?.onLogoClicked?p.callbacks?.onLogoClicked():s&&window.open(s,"_blank")};function k(P){r=P,t(0,r)}return i.$$set=P=>{"ref"in P&&t(0,r=P.ref),"logoClickable"in P&&t(1,a=P.logoClickable),"targetUrl"in P&&t(10,s=P.targetUrl),"click"in P&&t(11,u=P.click)},i.$$.update=()=>{i.$$.dirty&12292&&t(4,F=(o||Xl(n,"l"))&&w)},t(3,C=f.logoType==="vk_video"?U("tooltip_vk_video_logo"):U("tooltip_vk_logo")),t(2,w=f.logoType==="vk_video"||f.logoType==="vk_video_mobile"),[r,a,w,C,F,l,g,y,h,T,s,u,n,o,k]}var Hu=class extends B{constructor(e){super(),D(this,e,h4,g4,R,{ref:0,logoClickable:1,targetUrl:10,click:11})}},es=Hu;var Em=require("@vkontakte/videoplayer-core");var Uu=require("@vkontakte/videoplayer-core");function b4(i){Ce(i,"svelte-8z1bf5",".connecting.svelte-8z1bf5 .wave.svelte-8z1bf5{animation-duration:1s;animation-iteration-count:infinite}.connecting.svelte-8z1bf5 .wave1.svelte-8z1bf5{animation-name:svelte-8z1bf5-wave1}.connecting.svelte-8z1bf5 .wave2.svelte-8z1bf5{animation-name:svelte-8z1bf5-wave2}.connecting.svelte-8z1bf5 .wave3.svelte-8z1bf5{animation-name:svelte-8z1bf5-wave3}@keyframes svelte-8z1bf5-wave1{0%{opacity:0.3}33%{opacity:1}66%{opacity:1}100%{opacity:1}}@keyframes svelte-8z1bf5-wave2{0%{opacity:0.3}33%{opacity:0.3}66%{opacity:1}100%{opacity:1}}@keyframes svelte-8z1bf5-wave3{0%{opacity:0.3}33%{opacity:0.3}66%{opacity:0.3}100%{opacity:1}}")}function v4(i){let e,t,n,o,l,r,a,s;return{c(){e=V("svg"),t=V("g"),n=V("path"),o=V("path"),l=V("path"),r=V("path"),a=V("path"),s=V("path"),c(n,"class","wave wave1 svelte-8z1bf5"),c(n,"d","M1 18v3h3c0-1.66-1.34-3-3-3z"),c(n,"fill","#fff"),c(o,"class","wave wave2 svelte-8z1bf5"),c(o,"d","M1 14v2c2.76 0 5 2.24 5 5h2c0-3.87-3.13-7-7-7z"),c(o,"fill","#fff"),c(l,"class","wave wave3 svelte-8z1bf5"),c(l,"d","M1 10v2a9 9 0 0 1 9 9h2c0-6.08-4.93-11-11-11z"),c(l,"fill","#fff"),c(r,"d","M21 3H3c-1.1 0-2 .9-2 2v3h2V5h18v14h-7v2h7c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2z"),c(r,"fill","#fff"),c(a,"d","M0 0h24v24H0z"),c(s,"d","M5.667 7.44H18.5v9.167h-5.161a11.947 11.947 0 0 0-7.673-7.672V7.44Z"),c(s,"fill","#fff"),j(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"),j(e,"connecting",i[2])},m(u,f){v(u,e,f),_(e,t),_(t,n),_(t,o),_(t,l),_(t,r),_(t,a),_(t,s)},p(u,f){f&2&&j(s,"hidden",!u[1]),f&4&&j(e,"connecting",u[2])},d(u){u&&b(e)}}}function y4(i){let e,t,n,o,l,r,a,s,u,f,p,g,y,h,C,w,F,T,k,P,G;return{c(){e=V("svg"),t=V("g"),n=V("mask"),o=V("path"),r=V("path"),a=V("path"),u=V("path"),f=V("defs"),p=V("clipPath"),g=V("path"),h=V("filter"),C=V("feFlood"),w=V("feColorMatrix"),F=V("feOffset"),T=V("feGaussianBlur"),k=V("feColorMatrix"),P=V("feBlend"),G=V("feBlend"),c(o,"fill",l=i[1]?"#2688EB":"#fff"),c(o,"d","M1.1 3.1h22v18h-22z"),c(r,"fill-rule","evenodd"),c(r,"clip-rule","evenodd"),c(r,"d","M16.2 5.9c.855 0 1.442 0 1.897.038.445.036.683.103.856.19a2.1 2.1 0 0 1 .918.919c.088.172.155.411.191.856.037.455.038 1.042.038 1.897v4.4c0 .855 0 1.442-.038 1.897-.036.445-.103.683-.19.856a2.1 2.1 0 0 1-.919.918c-.172.088-.411.155-.856.191-.455.037-1.042.038-1.897.038H15a.9.9 0 0 0 0 1.8h1.238c.808 0 1.469 0 2.006-.044.556-.045 1.058-.142 1.527-.381a3.9 3.9 0 0 0 1.704-1.704c.239-.47.336-.971.381-1.527.044-.537.044-1.198.044-2.006V9.762c0-.808 0-1.469-.044-2.006-.045-.556-.142-1.058-.381-1.527a3.9 3.9 0 0 0-1.704-1.704c-.47-.239-.971-.336-1.527-.381-.537-.044-1.198-.044-2.006-.044H6a3.901 3.901 0 0 0-3.678 2.6.9.9 0 0 0 1.697.6A2.101 2.101 0 0 1 6 5.9h10.2ZM3.069 11.52a6.9 6.9 0 0 1 7.413 7.413.9.9 0 0 0 1.795.137 8.7 8.7 0 0 0-9.344-9.344.9.9 0 0 0 .136 1.794Zm.533 3.58c-.161 0-.32.011-.474.034a.9.9 0 1 1-.256-1.782A5.1 5.1 0 0 1 8.65 19.13a.9.9 0 1 1-1.782-.256A3.3 3.3 0 0 0 3.602 15.1Zm-1.5 3.3a1.5 1.5 0 1 1 3 0 1.5 1.5 0 0 1-3 0Z"),c(n,"id","c"),c(n,"maskUnits","userSpaceOnUse"),c(n,"x","1.1"),c(n,"y","3.1"),c(n,"width","22"),c(n,"height","18"),c(n,"fill","#000"),c(a,"fill-rule","evenodd"),c(a,"clip-rule","evenodd"),c(a,"d","M16.2 5.9c.855 0 1.442 0 1.897.038.445.036.683.103.856.19a2.1 2.1 0 0 1 .918.919c.088.172.155.411.191.856.037.455.038 1.042.038 1.897v4.4c0 .855 0 1.442-.038 1.897-.036.445-.103.683-.19.856a2.1 2.1 0 0 1-.919.918c-.172.088-.411.155-.856.191-.455.037-1.042.038-1.897.038H15a.9.9 0 0 0 0 1.8h1.238c.808 0 1.469 0 2.006-.044.556-.045 1.058-.142 1.527-.381a3.9 3.9 0 0 0 1.704-1.704c.239-.47.336-.971.381-1.527.044-.537.044-1.198.044-2.006V9.762c0-.808 0-1.469-.044-2.006-.045-.556-.142-1.058-.381-1.527a3.9 3.9 0 0 0-1.704-1.704c-.47-.239-.971-.336-1.527-.381-.537-.044-1.198-.044-2.006-.044H6a3.901 3.901 0 0 0-3.678 2.6.9.9 0 0 0 1.697.6A2.101 2.101 0 0 1 6 5.9h10.2ZM3.069 11.52a6.9 6.9 0 0 1 7.413 7.413.9.9 0 0 0 1.795.137 8.7 8.7 0 0 0-9.344-9.344.9.9 0 0 0 .136 1.794Zm.533 3.58c-.161 0-.32.011-.474.034a.9.9 0 1 1-.256-1.782A5.1 5.1 0 0 1 8.65 19.13a.9.9 0 1 1-1.782-.256A3.3 3.3 0 0 0 3.602 15.1Zm-1.5 3.3a1.5 1.5 0 1 1 3 0 1.5 1.5 0 0 1-3 0Z"),c(a,"fill",s=i[1]?"#2688EB":"#fff"),c(u,"d","m18.097 5.938-.04.498.04-.498Zm.856.19-.227.446.227-.445Zm.918.919-.445.227.445-.227Zm.191.856-.498.04.498-.04Zm0 8.194-.498-.04.498.04Zm-.19.856-.446-.227.445.227Zm-.919.918-.227-.445.227.445Zm-.856.191.04.498-.04-.498Zm-1.86 1.838v-.5.5Zm2.007-.044.04.498-.04-.498Zm1.527-.381-.227-.446.227.446Zm1.704-1.704.445.227-.445-.227Zm.381-1.527.498.04-.498-.04Zm.044-2.006h-.5.5Zm0-4.476h-.5.5Zm-.044-2.006.498-.04-.498.04Zm-.381-1.527.445-.227-.445.227ZM19.77 4.525l-.227.446.227-.446Zm-1.527-.381.04-.498-.04.498ZM16.238 4.1v.5-.5ZM6 4.1v-.5.5ZM2.322 6.7l-.471-.167.471.167Zm1.697.6-.471-.167.471.167ZM6 5.9v-.5.5Zm-2.931 5.62-.038-.498.038.498Zm7.413 7.413.498.038-.498-.038Zm1.795.137.498.038-.498-.038ZM2.931 9.725l-.038-.498.038.498Zm-.829.966.499-.038-.499.038Zm1.025 4.443-.071-.495.071.495Zm-1.019-.763.495-.071-.495.07Zm.763-1.02.071.496-.07-.495ZM8.65 19.13l.495.072-.495-.072Zm-1.019.764-.07.494.07-.494Zm-.763-1.02.495.072-.495-.071ZM18.138 5.44c-.48-.04-1.091-.04-1.938-.04v1c.863 0 1.426.001 1.856.036l.082-.996Zm1.042.243c-.255-.13-.567-.205-1.042-.243l-.082.996c.414.034.58.092.67.138l.454-.89Zm1.137 1.137a2.6 2.6 0 0 0-1.137-1.137l-.454.891a1.6 1.6 0 0 1 .7.7l.89-.454Zm.244 1.042c-.04-.475-.114-.787-.244-1.042l-.891.454c.046.09.104.256.138.67l.997-.082ZM20.6 9.8c0-.846 0-1.458-.04-1.938l-.996.082c.035.43.036.993.036 1.856h1Zm0 4.4V9.8h-1v4.4h1Zm-.04 1.938c.04-.48.04-1.092.04-1.938h-1c0 .863-.001 1.426-.036 1.856l.997.082Zm-.243 1.042c.13-.255.205-.567.244-1.042l-.997-.082c-.034.414-.092.58-.138.67l.89.454Zm-1.137 1.137a2.6 2.6 0 0 0 1.137-1.137l-.891-.454a1.6 1.6 0 0 1-.7.7l.454.89Zm-1.042.244c.475-.04.787-.114 1.042-.244l-.454-.891c-.09.046-.256.104-.67.138l.082.997ZM16.2 18.6c.847 0 1.458 0 1.938-.04l-.082-.996c-.43.035-.993.036-1.856.036v1Zm-1.2 0h1.2v-1H15v1Zm-.4.4c0-.22.18-.4.4-.4v-1a1.4 1.4 0 0 0-1.4 1.4h1Zm.4.4a.4.4 0 0 1-.4-.4h-1a1.4 1.4 0 0 0 1.4 1.4v-1Zm1.238 0H15v1h1.238v-1Zm1.965-.042c-.512.042-1.15.042-1.965.042v1c.8 0 1.484 0 2.046-.045l-.081-.997Zm1.34-.329c-.386.198-.815.286-1.34.329l.081.997c.587-.049 1.163-.154 1.714-.435l-.454-.89Zm1.486-1.485a3.4 3.4 0 0 1-1.485 1.485l.454.891a4.4 4.4 0 0 0 1.922-1.922l-.89-.454Zm.329-1.341c-.043.525-.131.954-.329 1.34l.891.455c.281-.552.386-1.127.434-1.714l-.996-.081Zm.042-1.965c0 .815 0 1.453-.042 1.965l.997.081c.045-.561.045-1.246.045-2.046h-1Zm0 0h1-1Zm0-4.476v4.476h1V9.762h-1Zm0 0h1-1Zm-.042-1.965c.042.512.042 1.15.042 1.965h1c0-.8 0-1.484-.045-2.046l-.997.081Zm-.329-1.34c.198.386.286.815.329 1.34l.997-.081c-.049-.587-.154-1.162-.435-1.714l-.89.454ZM19.544 4.97a3.4 3.4 0 0 1 1.485 1.485l.891-.454a4.4 4.4 0 0 0-1.922-1.922l-.454.89Zm-1.341-.329c.525.043.954.132 1.34.329l.455-.891c-.552-.281-1.127-.387-1.714-.434l-.081.996ZM16.238 4.6c.815 0 1.453 0 1.965.042l.081-.996c-.562-.046-1.246-.046-2.046-.046v1Zm0 0v-1 1ZM6 4.6h10.238v-1H6v1Zm0-1v1-1Zm0 0a4.401 4.401 0 0 0-4.15 2.933l.944.334A3.401 3.401 0 0 1 6 4.6v-1ZM1.85 6.533a1.4 1.4 0 0 0 .854 1.787l.333-.943a.4.4 0 0 1-.243-.51l-.943-.334Zm.854 1.787a1.4 1.4 0 0 0 1.787-.853l-.943-.334a.4.4 0 0 1-.51.244l-.334.943Zm1.787-.853A1.601 1.601 0 0 1 6 6.4v-1c-1.131 0-2.095.722-2.452 1.733l.943.334ZM16.2 5.4H6v1h10.2v-1ZM3.602 11c-.192 0-.383.007-.571.022l.076.997A6.53 6.53 0 0 1 3.602 12v-1Zm7.4 7.4a7.4 7.4 0 0 0-7.4-7.4v1a6.4 6.4 0 0 1 6.4 6.4h1Zm-.022.571c.015-.188.022-.379.022-.571h-1c0 .167-.006.332-.019.495l.997.076Zm.369.43a.4.4 0 0 1-.369-.43l-.997-.076a1.4 1.4 0 0 0 1.29 1.502l.076-.997Zm.429-.37a.4.4 0 0 1-.43.37l-.075.996a1.4 1.4 0 0 0 1.502-1.29l-.997-.075Zm.024-.631c0 .213-.008.423-.024.632l.997.076c.018-.234.027-.47.027-.708h-1Zm-8.2-8.2a8.2 8.2 0 0 1 8.2 8.2h1a9.2 9.2 0 0 0-9.2-9.2v1Zm-.632.024c.209-.016.42-.024.632-.024v-1c-.238 0-.474.01-.708.027l.076.997Zm-.368.43a.4.4 0 0 1 .368-.43l-.076-.997a1.4 1.4 0 0 0-1.29 1.502l.998-.076Zm.429.368a.4.4 0 0 1-.43-.369l-.996.076a1.4 1.4 0 0 0 1.502 1.29l-.076-.997Zm.168 4.607c.13-.02.265-.029.403-.029v-1c-.185 0-.367.013-.545.039l.142.99Zm-1.585-1.187A1.4 1.4 0 0 0 3.2 15.629l-.142-.99a.4.4 0 0 1-.453-.34l-.99.143Zm1.187-1.585a1.4 1.4 0 0 0-1.187 1.585l.99-.142a.4.4 0 0 1 .34-.453l-.143-.99Zm.801-.057c-.271 0-.538.02-.8.057l.141.99c.216-.031.436-.047.659-.047v-1Zm5.6 5.6a5.6 5.6 0 0 0-5.6-5.6v1a4.6 4.6 0 0 1 4.6 4.6h1Zm-.057.8c.038-.262.057-.529.057-.8h-1c0 .223-.016.443-.047.659l.99.142ZM7.56 20.389A1.4 1.4 0 0 0 9.145 19.2l-.99-.142a.4.4 0 0 1-.453.34l-.142.99Zm-1.187-1.585a1.4 1.4 0 0 0 1.187 1.584l.142-.99a.4.4 0 0 1-.339-.452l-.99-.142Zm.029-.403c0 .138-.01.272-.029.403l.99.142c.026-.178.039-.36.039-.545h-1Zm-2.8-2.8a2.8 2.8 0 0 1 2.8 2.8h1a3.8 3.8 0 0 0-3.8-3.8v1Zm0 .8a2 2 0 0 0-2 2h1a1 1 0 0 1 1-1v-1Zm2 2a2 2 0 0 0-2-2v1a1 1 0 0 1 1 1h1Zm-2 2a2 2 0 0 0 2-2h-1a1 1 0 0 1-1 1v1Zm-2-2a2 2 0 0 0 2 2v-1a1 1 0 0 1-1-1h-1Z"),c(u,"fill","#000"),c(u,"fill-opacity",".12"),c(u,"mask","url(#c)"),c(t,"filter","url(#b)"),c(t,"clip-path","url(#a)"),c(g,"fill",y=i[1]?"#2688EB":"#fff"),c(g,"d","M0 0h24v24H0z"),c(p,"id","a"),c(C,"flood-opacity","0"),c(C,"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(T,"stdDeviation","2.5"),c(k,"values","0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.16 0"),c(P,"in2","BackgroundImageFix"),c(P,"result","effect1_dropShadow_4085_178456"),c(G,"in","SourceGraphic"),c(G,"in2","effect1_dropShadow_4085_178456"),c(G,"result","shape"),c(h,"id","b"),c(h,"x","-3.4"),c(h,"y","-1.4"),c(h,"width","30.8"),c(h,"height","26.802"),c(h,"filterUnits","userSpaceOnUse"),c(h,"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(W,z){v(W,e,z),_(e,t),_(t,n),_(n,o),_(n,r),_(t,a),_(t,u),_(e,f),_(f,p),_(p,g),_(f,h),_(h,C),_(h,w),_(h,F),_(h,T),_(h,k),_(h,P),_(h,G)},p(W,z){z&2&&l!==(l=W[1]?"#2688EB":"#fff")&&c(o,"fill",l),z&2&&s!==(s=W[1]?"#2688EB":"#fff")&&c(a,"fill",s),z&2&&y!==(y=W[1]?"#2688EB":"#fff")&&c(g,"fill",y)},d(W){W&&b(e)}}}function k4(i){let e;function t(l,r){return l[0]?y4:v4}let n=t(i,-1),o=n(i);return{c(){o.c(),e=it()},m(l,r){o.m(l,r),v(l,e,r)},p(l,[r]){n===(n=t(l,r))&&o?o.p(l,r):(o.d(1),o=n(l),o&&(o.c(),o.m(e.parentNode,e)))},i:he,o:he,d(l){l&&b(e),o.d(l)}}}function w4(i,e,t){let{isMobile:n=!1}=e,{state:o}=e,l,r;return i.$$set=a=>{"isMobile"in a&&t(0,n=a.isMobile),"state"in a&&t(3,o=a.state)},i.$$.update=()=>{i.$$.dirty&8&&(t(2,r=o===Uu.ChromecastState.CONNECTING),t(1,l=o===Uu.ChromecastState.CONNECTED))},[n,l,r,o]}var zu=class extends B{constructor(e){super(),D(this,e,w4,k4,R,{isMobile:0,state:3},b4)}},Pm=zu;var Mm=require("@vkontakte/videoplayer-shared");function C4(i){let e,t;return e=new Pm({props:{isMobile:i[1],state:i[2]}}),{c(){A(e.$$.fragment)},m(n,o){E(e,n,o),t=!0},p(n,o){let l={};o&2&&(l.isMobile=n[1]),o&4&&(l.state=n[2]),e.$set(l)},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){m(e.$$.fragment,n),t=!1},d(n){M(e,n)}}}function S4(i){let e,t,n;function o(r){i[5](r)}let l={ariaLabel:i[4],click:i[3],testId:"btn-chromecast",$$slots:{default:[C4]},$$scope:{ctx:i}};return i[0]!==void 0&&(l.ref=i[0]),e=new gt({props:l}),be.push(()=>Oe(e,"ref",o)),{c(){A(e.$$.fragment)},m(r,a){E(e,r,a),n=!0},p(r,[a]){let s={};a&16&&(s.ariaLabel=r[4]),a&8&&(s.click=r[3]),a&70&&(s.$$scope={dirty:a,ctx:r}),!t&&a&1&&(t=!0,s.ref=r[0],Ne(()=>t=!1)),e.$set(s)},i(r){n||(d(e.$$.fragment,r),n=!0)},o(r){m(e.$$.fragment,r),n=!1},d(r){M(e,r)}}}function I4(i,e,t){let{ref:n=void 0}=e,{isMobile:o=!1}=e,{state:l}=e,{click:r=Mm.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,l=u.state),"click"in u&&t(3,r=u.click)},i.$$.update=()=>{i.$$.dirty&4&&t(4,a=l===Em.ChromecastState.CONNECTED?U("tooltip_chromecast_on"):U("tooltip_chromecast_off"))},[n,o,l,r,a,s]}var Wu=class extends B{constructor(e){super(),D(this,e,I4,S4,R,{ref:0,isMobile:1,state:2,click:3})}},ts=Wu;var is=require("@vkontakte/videoplayer-core");function T4(i){let e,t;return e=new Ml({props:{isActive:i[1]}}),{c(){A(e.$$.fragment)},m(n,o){E(e,n,o),t=!0},p(n,o){let l={};o&2&&(l.isActive=n[1]),e.$set(l)},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){m(e.$$.fragment,n),t=!1},d(n){M(e,n)}}}function P4(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]===is.PlaybackState.PLAYING,ariaLabel:i[2],click:i[4],$$slots:{default:[T4]},$$scope:{ctx:i}}}),{c(){A(e.$$.fragment)},m(n,o){E(e,n,o),t=!0},p(n,[o]){let l={};o&1&&(l.className=n[0]?"":"btn--live btn-full-opacity"),o&2&&(l.testId=n[1]?"btn-live":"btn-live-offset"),o&10&&(l.disabled=n[1]&&n[3]===is.PlaybackState.PLAYING),o&4&&(l.ariaLabel=n[2]),o&16&&(l.click=n[4]),o&514&&(l.$$scope={dirty:o,ctx:n}),e.$set(l)},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){m(e.$$.fragment,n),t=!1},d(n){M(e,n)}}}function E4(i,e,t){let n,{isMobile:o=!1}=e,{isActiveLive:l=!1}=e,{ariaLabel:r=""}=e,a=ot(),s=a.state.playbackState$;O(i,s,g=>t(3,n=g));let u=a.actions.internal.switchToActiveLive,f=a.actions.internal.togglePlay,p;return i.$$set=g=>{"isMobile"in g&&t(0,o=g.isMobile),"isActiveLive"in g&&t(1,l=g.isActiveLive),"ariaLabel"in g&&t(2,r=g.ariaLabel)},i.$$.update=()=>{i.$$.dirty&10&&t(4,p=()=>{if(!l){u();return}n===is.PlaybackState.PAUSED&&f()})},[o,l,r,n,p,s]}var Ku=class extends B{constructor(e){super(),D(this,e,E4,P4,R,{isMobile:0,isActiveLive:1,ariaLabel:2})}},ns=Ku;function M4(i){Ce(i,"svelte-5ygsa2",'.tooltip-wrapper.svelte-5ygsa2{position:relative;display:block}.tooltip.svelte-5ygsa2{position:absolute;opacity:0;visibility:hidden;transition:opacity 200ms, visibility 200ms;bottom:100%;transform:translateX(-50%)}.pointer.svelte-5ygsa2:after{position:absolute;bottom:0;left:50%;width:0;border-top:5px solid rgba(41, 41, 41, .8);border-right:5px solid transparent;border-left:5px solid transparent;content:" ";font-size:0;line-height:0;transform:translate(-50%, 5px)}.tooltip.active.svelte-5ygsa2{opacity:1;visibility:visible}')}function A4(i){let e,t,n,o,l=i[9].default,r=Ee(l,i,i[8],null);return{c(){e=I("div"),t=I("div"),r&&r.c(),c(t,"class","tooltip svelte-5ygsa2"),j(t,"active",i[0]),j(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){v(a,e,s),_(e,t),r&&r.m(t,null),i[10](t),i[11](e),o=!0},p(a,[s]){r&&r.p&&(!o||s&256)&&Ae(r,l,a,a[8],o?Me(l,a[8],s,null):Le(a[8]),null),(!o||s&1)&&j(t,"active",a[0]),(!o||s&2)&&j(t,"pointer",a[1]),(!o||s&36&&n!==(n=`transform: translate(${a[5]}px, ${a[2]}px);`))&&c(e,"style",n)},i(a){o||(d(r,a),o=!0)},o(a){m(r,a),o=!1},d(a){a&&b(e),r&&r.d(a),i[10](null),i[11](null)}}}function L4(i,e,t){let n,{$$slots:o={},$$scope:l}=e,{active:r=!1}=e,{pointer:a=!1}=e,{translateXPx:s=0}=e,{translateYPx:u=0}=e,{containerWidth:f}=e,p,g;function y(w){if(!g)return 0;let{width:F}=g.getBoundingClientRect(),T=F/2;return w<T?T:w>f-T?f-T:w}function h(w){be[w?"unshift":"push"](()=>{g=w,t(4,g)})}function C(w){be[w?"unshift":"push"](()=>{p=w,t(3,p)})}return i.$$set=w=>{"active"in w&&t(0,r=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,l=w.$$scope)},i.$$.update=()=>{i.$$.dirty&64&&t(5,n=y(s))},[r,a,u,p,g,n,s,f,l,o,h,C]}var ju=class extends B{constructor(e){super(),D(this,e,L4,A4,R,{active:0,pointer:1,translateXPx:6,translateYPx:2,containerWidth:7},M4)}},Am=ju;var os=(i,e,t)=>t.filter(n=>n.time<i*e).pop();function V4(i){Ce(i,"svelte-l51fc1",".timeline-preview.svelte-l51fc1{bottom:18px;border-radius:2px;pointer-events:none}.timeline-preview.mobile.svelte-l51fc1{bottom:72px}.preview.svelte-l51fc1{margin-bottom:10px;background-color:var(--timeline-preview-bg);box-shadow:0 0 2px var(--timeline-preview-shadow), 0 8px 24px var(--timeline-preview-shadow);border-radius:8px;border:1px solid var(--white)}.episode.svelte-l51fc1{margin-top:10px;margin-bottom:4px;font-size:13px;line-height:16px;text-shadow:0 8px 24px var(--timeline-preview-shadow), 0 0 2px var(--timeline-preview-shadow);max-width:150px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;text-align:center;font-weight:500}.time.svelte-l51fc1{font-size:13px;line-height:16px;text-align:center;color:var(--slider-filled-bg);text-shadow:0 8px 24px var(--timeline-preview-shadow), 0 0 2px var(--timeline-preview-shadow);font-weight:500}")}function Lm(i){let e;function t(l,r){return l[2]&&l[10].completed===!1?B4:R4}let n=t(i,-1),o=n(i);return{c(){o.c(),e=it()},m(l,r){o.m(l,r),v(l,e,r)},p(l,r){n===(n=t(l,r))&&o?o.p(l,r):(o.d(1),o=n(l),o&&(o.c(),o.m(e.parentNode,e)))},d(l){l&&b(e),o.d(l)}}}function R4(i){let e=(i[10].text||"")+"",t;return{c(){t=De(e)},m(n,o){v(n,t,o)},p(n,o){o&1024&&e!==(e=(n[10].text||"")+"")&&xe(t,e)},d(n){n&&b(t)}}}function B4(i){let e=U("tooltip_episode_unfinished")+"",t;return{c(){t=De(e)},m(n,o){v(n,t,o)},p:he,d(n){n&&b(t)}}}function Vm(i){let e,t;return{c(){e=I("div"),t=De(i[0]),c(e,"class","time svelte-l51fc1")},m(n,o){v(n,e,o),_(e,t)},p(n,o){o&1&&xe(t,n[0])},d(n){n&&b(e)}}}function D4(i){let e,t,n,o,l,r,a=i[10]&&Lm(i),s=!i[2]&&Vm(i);return{c(){e=I("div"),t=I("div"),o=H(),l=I("div"),a&&a.c(),r=H(),s&&s.c(),c(t,"class","preview svelte-l51fc1"),c(t,"style",n=`width: ${i[3]}px; height: ${i[4]}px; background-image: url(${i[5]}); background-size: ${i[6]}px ${i[7]}px; background-position: ${i[8]}px ${i[9]}px; transform: translateY(${i[11]%180?-35:0}px) rotate(${i[11]}deg);`),c(l,"class","episode svelte-l51fc1"),c(e,"class","timeline-preview svelte-l51fc1"),j(e,"mobile",i[1])},m(u,f){v(u,e,f),_(e,t),_(e,o),_(e,l),a&&a.m(l,null),_(e,r),s&&s.m(e,null)},p(u,[f]){f&3064&&n!==(n=`width: ${u[3]}px; height: ${u[4]}px; background-image: url(${u[5]}); background-size: ${u[6]}px ${u[7]}px; background-position: ${u[8]}px ${u[9]}px; transform: translateY(${u[11]%180?-35:0}px) rotate(${u[11]}deg);`)&&c(t,"style",n),u[10]?a?a.p(u,f):(a=Lm(u),a.c(),a.m(l,null)):a&&(a.d(1),a=null),u[2]?s&&(s.d(1),s=null):s?s.p(u,f):(s=Vm(u),s.c(),s.m(e,null)),f&2&&j(e,"mobile",u[1])},i:he,o:he,d(u){u&&b(e),a&&a.d(),s&&s.d()}}}var Pr=150;function N4(i,e,t){let n,{time:o=""}=e,{isMobile:l=!1}=e,{videoEpisodes:r=[]}=e,{previewThumbsData:a}=e,{progress:s=0}=e,{duration:u=0}=e,{isInteractive:f=!1}=e,g=ot().ui.rotateAlpha;O(i,g,z=>t(11,n=z));let y,h,C,w,F,T,k,P;function G(){let z=a.frameWidth,le=a.frameHeight;return z>Pr?(le=le/z*Pr,z=Pr):le>Pr&&(z=z/le*Pr,le=Pr),{width:z,height:le}}function W(z){let le;a.isUV?le=Math.floor(u*z/a.frequency):le=Math.min(a.countTotal,Math.max(0,Math.floor(a.countTotal*z)));let de=Math.floor(le/a.countPerImage),L=Math.floor(le%a.countPerImage/a.countPerRow),te=le%a.countPerRow,re=Math.floor(a.countPerImage/a.countPerRow);!a.isUV&&de===Math.floor(a.countTotal/a.countPerImage)&&(re=Math.floor(a.countTotal%a.countPerImage/a.countPerRow),a.countTotal%a.countPerImage%a.countPerRow>0&&re++);let X=a.countPerRow;!a.isUV&&de===Math.floor(a.countTotal/a.countPerImage)&&a.countTotal%a.countPerImage>0&&(X=Math.min(a.countPerRow,a.countTotal%a.countPerImage));let Pe=y*X,q=h*re,N=-te*y,K=-L*h;return{imgSrc:a.links[de],imgWidth:Pe,imgHeight:q,imgOffsetX:N,imgOffsetY:K}}return i.$$set=z=>{"time"in z&&t(0,o=z.time),"isMobile"in z&&t(1,l=z.isMobile),"videoEpisodes"in z&&t(13,r=z.videoEpisodes),"previewThumbsData"in z&&t(14,a=z.previewThumbsData),"progress"in z&&t(15,s=z.progress),"duration"in z&&t(16,u=z.duration),"isInteractive"in z&&t(2,f=z.isInteractive)},i.$$.update=()=>{i.$$.dirty&32768&&t(5,{imgSrc:C,imgWidth:w,imgHeight:F,imgOffsetX:T,imgOffsetY:k}=W(s),C,(t(6,w),t(15,s)),(t(7,F),t(15,s)),(t(8,T),t(15,s)),(t(9,k),t(15,s))),i.$$.dirty&106496&&t(10,P=os(s,u,r))},t(3,{width:y,height:h}=G(),y,t(4,h)),[o,l,f,y,h,C,w,F,T,k,P,n,g,r,a,s,u]}var Gu=class extends B{constructor(e){super(),D(this,e,N4,D4,R,{time:0,isMobile:1,videoEpisodes:13,previewThumbsData:14,progress:15,duration:16,isInteractive:2},V4)}},Rm=Gu;function O4(i){Ce(i,"svelte-5lzly8",".time.svelte-5lzly8{display:inline-block;padding:6px 10px;border-radius:3px;color:var(--white);background-color:rgba(41, 41, 41, .8)}")}function F4(i){let e,t;return{c(){e=I("span"),t=De(i[8]),c(e,"class","time svelte-5lzly8")},m(n,o){v(n,e,o),_(e,t)},p(n,o){o[0]&256&&xe(t,n[8])},i:he,o:he,d(n){n&&b(e)}}}function q4(i){let e,t;return e=new Rm({props:{time:i[8],isMobile:i[11],videoEpisodes:i[4],previewThumbsData:i[22],progress:i[9],duration:i[2],isInteractive:i[24]}}),{c(){A(e.$$.fragment)},m(n,o){E(e,n,o),t=!0},p(n,o){let l={};o[0]&256&&(l.time=n[8]),o[0]&2048&&(l.isMobile=n[11]),o[0]&16&&(l.videoEpisodes=n[4]),o[0]&512&&(l.progress=n[9]),o[0]&4&&(l.duration=n[2]),e.$set(l)},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){m(e.$$.fragment,n),t=!1},d(n){M(e,n)}}}function H4(i){let e,t,n,o,l=[q4,F4],r=[];function a(s,u){return s[15].features.timelinePreview&&s[22]&&!s[1]?0:1}return e=a(i,[-1,-1]),t=r[e]=l[e](i),{c(){t.c(),n=it()},m(s,u){r[e].m(s,u),v(s,n,u),o=!0},p(s,u){let f=e;e=a(s,u),e===f?r[e].p(s,u):(ae(),m(r[f],1,1,()=>{r[f]=null}),ue(),t=r[e],t?t.p(s,u):(t=r[e]=l[e](s),t.c()),d(t,1),t.m(n.parentNode,n))},i(s){o||(d(t),o=!0)},o(s){m(t),o=!1},d(s){s&&b(n),r[e].d(s)}}}function U4(i){let e,t,n,o,l,r=[i[10]],a={$$slots:{default:[H4]},$$scope:{ctx:i}};for(let f=0;f<r.length;f+=1)a=ne(a,r[f]);e=new Am({props:a});function s(f){i[43](f)}let u={isActiveLive:i[12],isMobile:i[11],ariaLabel:U("aria_timeline"),ariaValueMin:0,ariaValueMax:i[2],ariaValueNow:Math.round(i[7]*100),ariaValueText:U("aria_timeline_value",{position:i[6],duration:i[5]}),loadedProgress:i[13],filledProgress:i[7],handleProgress:i[7],videoEpisodes:i[4],onPointerDown:i[29],onHandleMove:i[30],onPointerMove:i[33],onPointerUp:i[31],onPointerEnter:i[32],onPointerLeave:i[34],onDisabledClick:i[27],isInteractive:i[24],disabled:i[14].has("TIMELINE"),hideHandel:i[3]};return i[0]!==void 0&&(u.ref=i[0]),n=new Sr({props:u}),be.push(()=>Oe(n,"ref",s)),{c(){A(e.$$.fragment),t=H(),A(n.$$.fragment)},m(f,p){E(e,f,p),v(f,t,p),E(n,f,p),l=!0},p(f,p){let g=p[0]&1024?Be(r,[Wr(f[10])]):{};p[0]&2838|p[1]&524288&&(g.$$scope={dirty:p,ctx:f}),e.$set(g);let y={};p[0]&4096&&(y.isActiveLive=f[12]),p[0]&2048&&(y.isMobile=f[11]),p[0]&4&&(y.ariaValueMax=f[2]),p[0]&128&&(y.ariaValueNow=Math.round(f[7]*100)),p[0]&96&&(y.ariaValueText=U("aria_timeline_value",{position:f[6],duration:f[5]})),p[0]&8192&&(y.loadedProgress=f[13]),p[0]&128&&(y.filledProgress=f[7]),p[0]&128&&(y.handleProgress=f[7]),p[0]&16&&(y.videoEpisodes=f[4]),p[0]&16384&&(y.disabled=f[14].has("TIMELINE")),p[0]&8&&(y.hideHandel=f[3]),!o&&p[0]&1&&(o=!0,y.ref=f[0],Ne(()=>o=!1)),n.$set(y)},i(f){l||(d(e.$$.fragment,f),d(n.$$.fragment,f),l=!0)},o(f){m(e.$$.fragment,f),m(n.$$.fragment,f),l=!1},d(f){f&&b(t),M(e,f),M(n,f)}}}function z4(i,e,t){let n,o,l,r,a,s,u,f,p,g,y,{showTimeline:h=!1}=e,{ref:C=void 0}=e,w=ot(),F=Nt(),T=w.state.bufferedProgress$;O(i,T,J=>t(13,g=J));let k=w.state.positionWithScrubbing$;O(i,k,J=>t(41,s=J));let P=w.state.duration$;O(i,P,J=>t(2,l=J));let G=w.state.isLive$;O(i,G,J=>t(1,o=J));let W=w.state.isActiveLive$;O(i,W,J=>t(12,p=J));let z=w.ui.isMobile;O(i,z,J=>t(11,f=J));let le=F.features.episodes?w.actions.internal.getVideoEpisodes():void 0,de=w.actions.internal.getPreviewThumbsData(),L=w.state.interactiveEpisodes$;O(i,L,J=>t(42,u=J));let te=w.state.isInteractive,re=w.state.isInteractiveTime$;O(i,re,J=>t(3,r=J));let X=w.state.isInteractiveExpectation$;O(i,X,J=>t(40,a=J));let Pe=w.actions.internal.correctSeekTimeToInteractive,q=w.callbacks?.onDisabledTimelineClick,N=w.ui.controls.disabledControls$;O(i,N,J=>t(14,y=J));let K,ce,oe,se,qe=!1,Ve="",ke=0,Re=0,ze=0,je;function Y(J){return!Pe||!te?J:Pe(J*l)/l}function fe(J){w.actions.internal.startScrubbing(Y(J))}function Ze(J){r||w.actions.internal.progressScrubbing(Y(J))}function _e(J){w.actions.internal.completeScrubbing(Y(J)),t(36,qe=!1)}function Ue(J,He,we){Je(J,He,we),t(36,qe=!0)}function tt(J,He,we){Je(J,He,we),t(36,qe=!0)}function rt(){t(36,qe=!1)}function Je(J,He,we){t(9,ze=Y(J)),t(37,ke=He),we&&t(38,Re=we),t(8,Ve=Ye(J))}function Ye(J){let He=Sn((o?1-J:J)*l);return o?`-${He}`:He}function We(J){C=J,t(0,C)}return i.$$set=J=>{"showTimeline"in J&&t(35,h=J.showTimeline),"ref"in J&&t(0,C=J.ref)},i.$$.update=()=>{i.$$.dirty[1]&2048&&t(4,K=te?u:le),i.$$.dirty[0]&4&&t(5,ce=Sn(l)),i.$$.dirty[1]&1024&&t(6,oe=Sn(s)),i.$$.dirty[0]&4|i.$$.dirty[1]&1024&&t(7,se=s/l),i.$$.dirty[0]&8|i.$$.dirty[1]&512&&t(39,je=a||r),i.$$.dirty[0]&2|i.$$.dirty[1]&496&&t(10,n={containerWidth:Re,translateXPx:ke,translateYPx:te&&de?-36:-16,active:qe&&h&&!je,pointer:!F.features.timelinePreview||!de||o})},[C,o,l,r,K,ce,oe,se,Ve,ze,n,f,p,g,y,F,T,k,P,G,W,z,de,L,te,re,X,q,N,fe,Ze,_e,Ue,tt,rt,h,qe,ke,Re,je,a,s,u,We]}var xu=class extends B{constructor(e){super(),D(this,e,z4,U4,R,{showTimeline:35,ref:0},O4,[-1,-1])}},Bm=xu;function W4(i){let e,t;return e=new Sr({props:{ariaValueMin:0,ariaValueMax:i[0],ariaValueNow:Math.round(i[3]*100),ariaValueText:U("aria_timeline_value",{position:i[2],duration:i[1]}),filledProgress:i[3],isAds:!0,hideHandel:!0,squareBorders:i[4]}}),{c(){A(e.$$.fragment)},m(n,o){E(e,n,o),t=!0},p(n,[o]){let l={};o&1&&(l.ariaValueMax=n[0]),o&8&&(l.ariaValueNow=Math.round(n[3]*100)),o&6&&(l.ariaValueText=U("aria_timeline_value",{position:n[2],duration:n[1]})),o&8&&(l.filledProgress=n[3]),o&16&&(l.squareBorders=n[4]),e.$set(l)},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){m(e.$$.fragment,n),t=!1},d(n){M(e,n)}}}function K4(i,e,t){let n,{position:o=0}=e,{duration:l=0}=e,a=ot().ui.isMobile;O(i,a,p=>t(4,n=p));let s,u,f;return i.$$set=p=>{"position"in p&&t(6,o=p.position),"duration"in p&&t(0,l=p.duration)},i.$$.update=()=>{i.$$.dirty&1&&t(1,s=Sn(l)),i.$$.dirty&64&&t(2,u=Sn(o)),i.$$.dirty&65&&t(3,f=o/l)},[l,s,u,f,n,a,o]}var Yu=class extends B{constructor(e){super(),D(this,e,K4,W4,R,{position:6,duration:0})}},rs=Yu;function j4(i){Ce(i,"svelte-1gqonyf",".timeline.svelte-1gqonyf{position:relative;pointer-events:all;display:flex;align-items:center;bottom:0;width:100%;min-width:86px;padding:3px 10px 4px;box-sizing:border-box}.timeline.mobile.svelte-1gqonyf{height:16px;padding:6px 12px 7px;margin-top:6px}.timeline-stub.svelte-1gqonyf{width:100%;min-width:20px}.timeline-stub.mobile.svelte-1gqonyf{height:8px}")}function G4(i){let e;return{c(){e=I("div"),c(e,"class","timeline-stub svelte-1gqonyf"),j(e,"mobile",i[3])},m(t,n){v(t,e,n)},p(t,n){n&8&&j(e,"mobile",t[3])},i:he,o:he,d(t){t&&b(e)}}}function x4(i){let e,t,n,o,l=[Q4,Y4],r=[];function a(s,u){return s[1]?0:1}return t=a(i,-1),n=r[t]=l[t](i),{c(){e=I("div"),n.c(),c(e,"class","timeline svelte-1gqonyf"),j(e,"mobile",i[3])},m(s,u){v(s,e,u),r[t].m(e,null),o=!0},p(s,u){let f=t;t=a(s,u),t===f?r[t].p(s,u):(ae(),m(r[f],1,1,()=>{r[f]=null}),ue(),n=r[t],n?n.p(s,u):(n=r[t]=l[t](s),n.c()),d(n,1),n.m(e,null)),(!o||u&8)&&j(e,"mobile",s[3])},i(s){o||(d(n),o=!0)},o(s){m(n),o=!1},d(s){s&&b(e),r[t].d()}}}function Y4(i){let e,t,n;function o(r){i[14](r)}let l={showTimeline:i[2]};return i[0]!==void 0&&(l.ref=i[0]),e=new Bm({props:l}),be.push(()=>Oe(e,"ref",o)),{c(){A(e.$$.fragment)},m(r,a){E(e,r,a),n=!0},p(r,a){let s={};a&4&&(s.showTimeline=r[2]),!t&&a&1&&(t=!0,s.ref=r[0],Ne(()=>t=!1)),e.$set(s)},i(r){n||(d(e.$$.fragment,r),n=!0)},o(r){m(e.$$.fragment,r),n=!1},d(r){M(e,r)}}}function Q4(i){let e,t;return e=new rs({props:{position:i[4],duration:i[5]}}),{c(){A(e.$$.fragment)},m(n,o){E(e,n,o),t=!0},p(n,o){let l={};o&16&&(l.position=n[4]),o&32&&(l.duration=n[5]),e.$set(l)},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){m(e.$$.fragment,n),t=!1},d(n){M(e,n)}}}function Z4(i){let e,t,n,o,l=[x4,G4],r=[];function a(s,u){return s[2]?0:1}return e=a(i,-1),t=r[e]=l[e](i),{c(){t.c(),n=it()},m(s,u){r[e].m(s,u),v(s,n,u),o=!0},p(s,[u]){let f=e;e=a(s,u),e===f?r[e].p(s,u):(ae(),m(r[f],1,1,()=>{r[f]=null}),ue(),t=r[e],t?t.p(s,u):(t=r[e]=l[e](s),t.c()),d(t,1),t.m(n.parentNode,n))},i(s){o||(d(t),o=!0)},o(s){m(t),o=!1},d(s){s&&b(n),r[e].d(s)}}}function X4(i,e,t){let n,o,l,r,{isAds:a=!1}=e,{canRewindLive:s}=e,{isRewindableLive:u}=e,{isHidden:f=!1}=e,{ref:p=void 0}=e,g=ot(),y=g.state.isLive$;O(i,y,k=>t(13,n=k));let h=g.ads.duration;O(i,h,k=>t(5,r=k));let C=g.ads.position;O(i,C,k=>t(4,l=k));let w=g.ui.isMobile;O(i,w,k=>t(3,o=k));let F;function T(k){p=k,t(0,p)}return i.$$set=k=>{"isAds"in k&&t(1,a=k.isAds),"canRewindLive"in k&&t(10,s=k.canRewindLive),"isRewindableLive"in k&&t(11,u=k.isRewindableLive),"isHidden"in k&&t(12,f=k.isHidden),"ref"in k&&t(0,p=k.ref)},i.$$.update=()=>{i.$$.dirty&15362&&t(2,F=!f&&(!n||n&&s&&u||a))},[p,a,F,o,l,r,y,h,C,w,s,u,f,n,T]}var Qu=class extends B{constructor(e){super(),D(this,e,X4,Z4,R,{isAds:1,canRewindLive:10,isRewindableLive:11,isHidden:12,ref:0},j4)}},ls=Qu;var Om=require("@vkontakte/videoplayer-shared");function J4(i){let e,t,n,o,l,r=i[2].default,a=Ee(r,i,i[1],null),s=[{xmlns:"http://www.w3.org/2000/svg"},{width:"24"},{height:"24"},{fill:"none"},{"aria-hidden":"true"},{"data-testid":"episodes-icon"},{style:"flex-shrink:0"},{role:"img"},i[0]],u={};for(let f=0;f<s.length;f+=1)u=ne(u,s[f]);return{c(){e=V("svg"),a&&a.c(),t=V("path"),n=V("path"),o=V("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"),ye(e,u)},m(f,p){v(f,e,p),a&&a.m(e,null),_(e,t),_(e,n),_(e,o),l=!0},p(f,[p]){a&&a.p&&(!l||p&2)&&Ae(a,r,f,f[1],l?Me(r,f[1],p,null):Le(f[1]),null),ye(e,u=Be(s,[{xmlns:"http://www.w3.org/2000/svg"},{width:"24"},{height:"24"},{fill:"none"},{"aria-hidden":"true"},{"data-testid":"episodes-icon"},{style:"flex-shrink:0"},{role:"img"},p&1&&f[0]]))},i(f){l||(d(a,f),l=!0)},o(f){m(a,f),l=!1},d(f){f&&b(e),a&&a.d(f)}}}function $4(i,e,t){let{$$slots:n={},$$scope:o}=e;return i.$$set=l=>{t(0,e=ne(ne({},e),ve(l))),"$$scope"in l&&t(1,o=l.$$scope)},e=ve(e),[e,o,n]}var Zu=class extends B{constructor(e){super(),D(this,e,$4,J4,R,{})}},Dm=Zu;function e3(i){let e,t,n,o=i[2].default,l=Ee(o,i,i[1],null),r=[{xmlns:"http://www.w3.org/2000/svg"},{width:"12"},{height:"13"},{fill:"none"},{"aria-hidden":"true"},{"data-testid":"chevron-light-icon"},{role:"img"},i[0]],a={};for(let s=0;s<r.length;s+=1)a=ne(a,r[s]);return{c(){e=V("svg"),l&&l.c(),t=V("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"),ye(e,a)},m(s,u){v(s,e,u),l&&l.m(e,null),_(e,t),n=!0},p(s,[u]){l&&l.p&&(!n||u&2)&&Ae(l,o,s,s[1],n?Me(o,s[1],u,null):Le(s[1]),null),ye(e,a=Be(r,[{xmlns:"http://www.w3.org/2000/svg"},{width:"12"},{height:"13"},{fill:"none"},{"aria-hidden":"true"},{"data-testid":"chevron-light-icon"},{role:"img"},u&1&&s[0]]))},i(s){n||(d(l,s),n=!0)},o(s){m(l,s),n=!1},d(s){s&&b(e),l&&l.d(s)}}}function t3(i,e,t){let{$$slots:n={},$$scope:o}=e;return i.$$set=l=>{t(0,e=ne(ne({},e),ve(l))),"$$scope"in l&&t(1,o=l.$$scope)},e=ve(e),[e,o,n]}var Xu=class extends B{constructor(e){super(),D(this,e,t3,e3,R,{})}},Nm=Xu;function i3(i){Ce(i,"svelte-1yhs2ga",".text.svelte-1yhs2ga{padding:0 8px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.text.count.svelte-1yhs2ga{overflow:visible}.text.mobile.svelte-1yhs2ga{padding:0 3px 0 4px}.chevron-episodes.svelte-1yhs2ga{margin-bottom:-4px}")}function n3(i){let e,t,n,o;e=new Dm({});function l(s,u){if(s[4]==="FULL")return l3;if(s[4]==="COUNT")return r3}let r=l(i,-1),a=r&&r(i);return{c(){A(e.$$.fragment),t=H(),a&&a.c(),n=it()},m(s,u){E(e,s,u),v(s,t,u),a&&a.m(s,u),v(s,n,u),o=!0},p(s,u){r===(r=l(s,u))&&a?a.p(s,u):(a&&a.d(1),a=r&&r(s),a&&(a.c(),a.m(n.parentNode,n)))},i(s){o||(d(e.$$.fragment,s),o=!0)},o(s){m(e.$$.fragment,s),o=!1},d(s){s&&(b(t),b(n)),M(e,s),a&&a.d(s)}}}function o3(i){let e,t,n,o,l,r;return l=new Nm({}),{c(){e=I("span"),t=De(i[2]),n=H(),o=I("div"),A(l.$$.fragment),c(e,"class","text mobile svelte-1yhs2ga"),c(o,"class","chevron-episodes svelte-1yhs2ga")},m(a,s){v(a,e,s),_(e,t),v(a,n,s),v(a,o,s),E(l,o,null),r=!0},p(a,s){(!r||s&4)&&xe(t,a[2])},i(a){r||(d(l.$$.fragment,a),r=!0)},o(a){m(l.$$.fragment,a),r=!1},d(a){a&&(b(e),b(n),b(o)),M(l)}}}function r3(i){let e,t=i[0].length+"",n;return{c(){e=I("span"),n=De(t),c(e,"class","text count svelte-1yhs2ga")},m(o,l){v(o,e,l),_(e,n)},p(o,l){l&1&&t!==(t=o[0].length+"")&&xe(n,t)},d(o){o&&b(e)}}}function l3(i){let e,t;return{c(){e=I("span"),t=De(i[2]),c(e,"class","text svelte-1yhs2ga")},m(n,o){v(n,e,o),_(e,t)},p(n,o){o&4&&xe(t,n[2])},d(n){n&&b(e)}}}function s3(i){let e,t,n,o,l=[o3,n3],r=[];function a(s,u){return s[6]?0:1}return e=a(i,-1),t=r[e]=l[e](i),{c(){t.c(),n=it()},m(s,u){r[e].m(s,u),v(s,n,u),o=!0},p(s,u){let f=e;e=a(s,u),e===f?r[e].p(s,u):(ae(),m(r[f],1,1,()=>{r[f]=null}),ue(),t=r[e],t?t.p(s,u):(t=r[e]=l[e](s),t.c()),d(t,1),t.m(n.parentNode,n))},i(s){o||(d(t),o=!0)},o(s){m(t),o=!1},d(s){s&&b(n),r[e].d(s)}}}function a3(i){let e,t,n;function o(r){i[19](r)}let l={className:"w-max btn-full-opacity "+(i[6]?"px-0":""),testId:"btn-episodes",click:i[12],disabled:!i[7],ariaExpanded:i[3],ariaLabel:i[5],$$slots:{default:[s3]},$$scope:{ctx:i}};return i[1]!==void 0&&(l.ref=i[1]),e=new gt({props:l}),be.push(()=>Oe(e,"ref",o)),{c(){A(e.$$.fragment)},m(r,a){E(e,r,a),n=!0},p(r,[a]){let s={};a&64&&(s.className="w-max btn-full-opacity "+(r[6]?"px-0":"")),a&8&&(s.ariaExpanded=r[3]),a&32&&(s.ariaLabel=r[5]),a&8388693&&(s.$$scope={dirty:a,ctx:r}),!t&&a&2&&(t=!0,s.ref=r[1],Ne(()=>t=!1)),e.$set(s)},i(r){n||(d(e.$$.fragment,r),n=!0)},o(r){m(e.$$.fragment,r),n=!1},d(r){M(e,r)}}}function u3(i,e,t){let n,o,l,r,a,s,{position:u=0}=e,{duration:f=0}=e,{timeCodes:p=[]}=e,g=ot(),y=g.callbacks?.onEpisodeChanged??Om.noop,h=!!g.callbacks?.onEpisodeClicked,C=g.ui.currentGridType$;O(i,C,L=>t(18,a=L));let w=g.ui.episodes.openedByKeyboard$;O(i,w,L=>t(17,r=L));let F=g.ui.episodes.panelOpened$;O(i,F,L=>t(3,l=L));let T=g.ui.isMobile;O(i,T,L=>t(6,s=L));let k,P=L=>{if(!!g.callbacks?.onEpisodeClicked){let re=gr(L);w.set(re),F.set(!0),g.callbacks?.onEpisodeClicked?.(re)}},G,W,z,le=async(L,te,re)=>{await On(),L?.getAttribute("aria-expanded")==="false"&&te&&!re&&(w.set(!1),L.focus())};function de(L){k=L,t(1,k)}return i.$$set=L=>{"position"in L&&t(13,u=L.position),"duration"in L&&t(14,f=L.duration),"timeCodes"in L&&t(0,p=L.timeCodes)},i.$$.update=()=>{if(i.$$.dirty&24576&&t(16,n=u/f),i.$$.dirty&114689){let L=os(n,f,p);L&&G?.text!==L.text&&(y(L),t(15,G=L))}i.$$.dirty&32768&&t(2,o=G?.text||""),i.$$.dirty&262144&&(In(a,"xl")?t(4,W="FULL"):In(a,"m")&&mm(a,"xl")?t(4,W="COUNT"):t(4,W="SHORT")),i.$$.dirty&4&&t(5,z=`${U("tooltip_episodes")}: ${o}`),i.$$.dirty&131082&&le(k,r,l)},[p,k,o,l,W,z,s,h,C,w,F,T,P,u,f,G,n,r,a,de]}var Ju=class extends B{constructor(e){super(),D(this,e,u3,a3,R,{position:13,duration:14,timeCodes:0},i3)}},ss=Ju;function c3(i){let e,t,n,o,l=i[2].default,r=Ee(l,i,i[1],null),a=[{xmlns:"http://www.w3.org/2000/svg"},{width:"24"},{height:"24"},{fill:"none"},{"aria-hidden":"true"},{"data-testid":"seek-to-interactive-icon"},{role:"img"},i[0]],s={};for(let u=0;u<a.length;u+=1)s=ne(s,a[u]);return{c(){e=V("svg"),r&&r.c(),t=V("path"),n=V("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"),ye(e,s)},m(u,f){v(u,e,f),r&&r.m(e,null),_(e,t),_(e,n),o=!0},p(u,[f]){r&&r.p&&(!o||f&2)&&Ae(r,l,u,u[1],o?Me(l,u[1],f,null):Le(u[1]),null),ye(e,s=Be(a,[{xmlns:"http://www.w3.org/2000/svg"},{width:"24"},{height:"24"},{fill:"none"},{"aria-hidden":"true"},{"data-testid":"seek-to-interactive-icon"},{role:"img"},f&1&&u[0]]))},i(u){o||(d(r,u),o=!0)},o(u){m(r,u),o=!1},d(u){u&&b(e),r&&r.d(u)}}}function f3(i,e,t){let{$$slots:n={},$$scope:o}=e;return i.$$set=l=>{t(0,e=ne(ne({},e),ve(l))),"$$scope"in l&&t(1,o=l.$$scope)},e=ve(e),[e,o,n]}var $u=class extends B{constructor(e){super(),D(this,e,f3,c3,R,{})}},Fm=$u;function d3(i){let e,t;return e=new Fm({}),{c(){A(e.$$.fragment)},m(n,o){E(e,n,o),t=!0},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){m(e.$$.fragment,n),t=!1},d(n){M(e,n)}}}function m3(i){let e,t,n;function o(r){i[4](r)}let l={className:i[1]?"hidden":"",testId:"btn-seek-to-interactive",ariaLabel:U("tooltip_interactive_seek"),disabled:i[2],click:i[3],$$slots:{default:[d3]},$$scope:{ctx:i}};return i[0]!==void 0&&(l.ref=i[0]),e=new gt({props:l}),be.push(()=>Oe(e,"ref",o)),{c(){A(e.$$.fragment)},m(r,a){E(e,r,a),n=!0},p(r,[a]){let s={};a&2&&(s.className=r[1]?"hidden":""),a&4&&(s.disabled=r[2]),a&8&&(s.click=r[3]),a&32&&(s.$$scope={dirty:a,ctx:r}),!t&&a&1&&(t=!0,s.ref=r[0],Ne(()=>t=!1)),e.$set(s)},i(r){n||(d(e.$$.fragment,r),n=!0)},o(r){m(e.$$.fragment,r),n=!1},d(r){M(e,r)}}}function p3(i,e,t){let{ref:n=void 0}=e,{hidden:o=!1}=e,{disabled:l=!1}=e,{click:r}=e;function a(s){n=s,t(0,n)}return i.$$set=s=>{"ref"in s&&t(0,n=s.ref),"hidden"in s&&t(1,o=s.hidden),"disabled"in s&&t(2,l=s.disabled),"click"in s&&t(3,r=s.click)},[n,o,l,r,a]}var ec=class extends B{constructor(e){super(),D(this,e,p3,m3,R,{ref:0,hidden:1,disabled:2,click:3})}},as=ec;function _3(i){let e,t,n,o,l=i[2].default,r=Ee(l,i,i[1],null),a=[{xmlns:"http://www.w3.org/2000/svg"},{width:"24"},{height:"24"},{fill:"none"},{"aria-hidden":"true"},{role:"img"},i[0]],s={};for(let u=0;u<a.length;u+=1)s=ne(s,a[u]);return{c(){e=V("svg"),r&&r.c(),t=V("path"),n=V("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"),ye(e,s)},m(u,f){v(u,e,f),r&&r.m(e,null),_(e,t),_(e,n),o=!0},p(u,[f]){r&&r.p&&(!o||f&2)&&Ae(r,l,u,u[1],o?Me(l,u[1],f,null):Le(u[1]),null),ye(e,s=Be(a,[{xmlns:"http://www.w3.org/2000/svg"},{width:"24"},{height:"24"},{fill:"none"},{"aria-hidden":"true"},{role:"img"},f&1&&u[0]]))},i(u){o||(d(r,u),o=!0)},o(u){m(r,u),o=!1},d(u){u&&b(e),r&&r.d(u)}}}function g3(i,e,t){let{$$slots:n={},$$scope:o}=e;return i.$$set=l=>{t(0,e=ne(ne({},e),ve(l))),"$$scope"in l&&t(1,o=l.$$scope)},e=ve(e),[e,o,n]}var tc=class extends B{constructor(e){super(),D(this,e,g3,_3,R,{})}},qm=tc;function h3(i){Ce(i,"svelte-17ceof5",'svg[data-testid="graph-open-icon"] ._closed{visibility:hidden;opacity:0}')}function b3(i){let e,t;return e=new qm({props:{"data-testid":i[0]?"graph-close-icon":"graph-open-icon"}}),{c(){A(e.$$.fragment)},m(n,o){E(e,n,o),t=!0},p(n,[o]){let l={};o&1&&(l["data-testid"]=n[0]?"graph-close-icon":"graph-open-icon"),e.$set(l)},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){m(e.$$.fragment,n),t=!1},d(n){M(e,n)}}}function v3(i,e,t){let{isOpened:n=!1}=e;return i.$$set=o=>{"isOpened"in o&&t(0,n=o.isOpened)},[n]}var ic=class extends B{constructor(e){super(),D(this,e,v3,b3,R,{isOpened:0},h3)}},Hm=ic;function y3(i){let e,t;return e=new Hm({props:{isOpened:i[3]}}),{c(){A(e.$$.fragment)},m(n,o){E(e,n,o),t=!0},p(n,o){let l={};o&8&&(l.isOpened=n[3]),e.$set(l)},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){m(e.$$.fragment,n),t=!1},d(n){M(e,n)}}}function k3(i){let e,t,n;function o(r){i[6](r)}let l={className:i[1]?"hidden":"",testId:"btn-graph",disabled:i[2],ariaLabel:i[5],click:i[4],$$slots:{default:[y3]},$$scope:{ctx:i}};return i[0]!==void 0&&(l.ref=i[0]),e=new gt({props:l}),be.push(()=>Oe(e,"ref",o)),{c(){A(e.$$.fragment)},m(r,a){E(e,r,a),n=!0},p(r,[a]){let s={};a&2&&(s.className=r[1]?"hidden":""),a&4&&(s.disabled=r[2]),a&32&&(s.ariaLabel=r[5]),a&16&&(s.click=r[4]),a&136&&(s.$$scope={dirty:a,ctx:r}),!t&&a&1&&(t=!0,s.ref=r[0],Ne(()=>t=!1)),e.$set(s)},i(r){n||(d(e.$$.fragment,r),n=!0)},o(r){m(e.$$.fragment,r),n=!1},d(r){M(e,r)}}}function w3(i,e,t){let{ref:n=void 0}=e,{hidden:o=!1}=e,{disabled:l=!1}=e,{graphIsOpened:r=!1}=e,{click:a}=e,s;function u(f){n=f,t(0,n)}return i.$$set=f=>{"ref"in f&&t(0,n=f.ref),"hidden"in f&&t(1,o=f.hidden),"disabled"in f&&t(2,l=f.disabled),"graphIsOpened"in f&&t(3,r=f.graphIsOpened),"click"in f&&t(4,a=f.click)},i.$$.update=()=>{i.$$.dirty&8&&t(5,s=r?U("tooltip_interactive_graph_on"):U("tooltip_interactive_graph_off"))},[n,o,l,r,a,s,u]}var nc=class extends B{constructor(e){super(),D(this,e,w3,k3,R,{ref:0,hidden:1,disabled:2,graphIsOpened:3,click:4})}},us=nc;function C3(i){let e,t,n,o=i[2].default,l=Ee(o,i,i[1],null),r=[{xmlns:"http://www.w3.org/2000/svg"},{width:"24"},{height:"24"},{fill:"none"},{"aria-hidden":"true"},{"data-testid":"replay-icon"},{role:"img"},i[0]],a={};for(let s=0;s<r.length;s+=1)a=ne(a,r[s]);return{c(){e=V("svg"),l&&l.c(),t=V("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"),ye(e,a)},m(s,u){v(s,e,u),l&&l.m(e,null),_(e,t),n=!0},p(s,[u]){l&&l.p&&(!n||u&2)&&Ae(l,o,s,s[1],n?Me(o,s[1],u,null):Le(s[1]),null),ye(e,a=Be(r,[{xmlns:"http://www.w3.org/2000/svg"},{width:"24"},{height:"24"},{fill:"none"},{"aria-hidden":"true"},{"data-testid":"replay-icon"},{role:"img"},u&1&&s[0]]))},i(s){n||(d(l,s),n=!0)},o(s){m(l,s),n=!1},d(s){s&&b(e),l&&l.d(s)}}}function S3(i,e,t){let{$$slots:n={},$$scope:o}=e;return i.$$set=l=>{t(0,e=ne(ne({},e),ve(l))),"$$scope"in l&&t(1,o=l.$$scope)},e=ve(e),[e,o,n]}var oc=class extends B{constructor(e){super(),D(this,e,S3,C3,R,{})}},cs=oc;var zm=require("@vkontakte/videoplayer-shared");function I3(i){Ce(i,"svelte-1ot3duq",".mobile.svelte-1ot3duq{position:relative;display:flex;align-items:center;justify-content:center}.mobile.svelte-1ot3duq svg{transform:scale(2)}.icon-background-mobile.svelte-1ot3duq{position:absolute;top:16px;left:16px;border-radius:var(--big-play-radius);background-color:var(--big-play-bg-color);width:calc(100% - 32px);height:calc(100% - 32px)}")}function Um(i){let e;return{c(){e=I("div"),c(e,"class","icon-background-mobile svelte-1ot3duq")},m(t,n){v(t,e,n)},d(t){t&&b(e)}}}function T3(i){let e,t,n,o,l=i[1]&&Um(i);return n=new cs({}),{c(){l&&l.c(),e=H(),t=I("div"),A(n.$$.fragment),c(t,"class","svelte-1ot3duq"),j(t,"mobile",i[1])},m(r,a){l&&l.m(r,a),v(r,e,a),v(r,t,a),E(n,t,null),o=!0},p(r,a){r[1]?l||(l=Um(r),l.c(),l.m(e.parentNode,e)):l&&(l.d(1),l=null),(!o||a&2)&&j(t,"mobile",r[1])},i(r){o||(d(n.$$.fragment,r),o=!0)},o(r){m(n.$$.fragment,r),o=!1},d(r){r&&(b(e),b(t)),l&&l.d(r),M(n)}}}function P3(i){let e,t,n;function o(r){i[5](r)}let l={className:(i[1]?"btn-m--play":"")+" "+i[3],testId:"btn-replay",ariaLabel:U("tooltip_restart"),disabled:i[2],click:i[4],ariaKeyShortCut:Zn.KeyK,$$slots:{default:[T3]},$$scope:{ctx:i}};return i[0]!==void 0&&(l.ref=i[0]),e=new gt({props:l}),be.push(()=>Oe(e,"ref",o)),{c(){A(e.$$.fragment)},m(r,a){E(e,r,a),n=!0},p(r,[a]){let s={};a&10&&(s.className=(r[1]?"btn-m--play":"")+" "+r[3]),a&4&&(s.disabled=r[2]),a&16&&(s.click=r[4]),a&66&&(s.$$scope={dirty:a,ctx:r}),!t&&a&1&&(t=!0,s.ref=r[0],Ne(()=>t=!1)),e.$set(s)},i(r){n||(d(e.$$.fragment,r),n=!0)},o(r){m(e.$$.fragment,r),n=!1},d(r){M(e,r)}}}function E3(i,e,t){let{ref:n=void 0}=e,{isMobile:o=!1}=e,{disabled:l=!1}=e,{className:r=""}=e,{click:a=zm.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,l=u.disabled),"className"in u&&t(3,r=u.className),"click"in u&&t(4,a=u.click)},[n,o,l,r,a,s]}var rc=class extends B{constructor(e){super(),D(this,e,E3,P3,R,{ref:0,isMobile:1,disabled:2,className:3,click:4},I3)}},Xr=rc;function M3(i){let e,t,n,o=i[2].default,l=Ee(o,i,i[1],null),r=[{xmlns:"http://www.w3.org/2000/svg"},{width:"24"},{height:"24"},{fill:"none"},{"data-testid":"play-prev-chapter-icon"},{role:"img"},i[0]],a={};for(let s=0;s<r.length;s+=1)a=ne(a,r[s]);return{c(){e=V("svg"),l&&l.c(),t=V("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"),ye(e,a)},m(s,u){v(s,e,u),l&&l.m(e,null),_(e,t),n=!0},p(s,[u]){l&&l.p&&(!n||u&2)&&Ae(l,o,s,s[1],n?Me(o,s[1],u,null):Le(s[1]),null),ye(e,a=Be(r,[{xmlns:"http://www.w3.org/2000/svg"},{width:"24"},{height:"24"},{fill:"none"},{"data-testid":"play-prev-chapter-icon"},{role:"img"},u&1&&s[0]]))},i(s){n||(d(l,s),n=!0)},o(s){m(l,s),n=!1},d(s){s&&b(e),l&&l.d(s)}}}function A3(i,e,t){let{$$slots:n={},$$scope:o}=e;return i.$$set=l=>{t(0,e=ne(ne({},e),ve(l))),"$$scope"in l&&t(1,o=l.$$scope)},e=ve(e),[e,o,n]}var lc=class extends B{constructor(e){super(),D(this,e,A3,M3,R,{})}},Wm=lc;function L3(i){let e,t;return e=new Wm({}),{c(){A(e.$$.fragment)},m(n,o){E(e,n,o),t=!0},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){m(e.$$.fragment,n),t=!1},d(n){M(e,n)}}}function V3(i){let e,t,n;function o(r){i[4](r)}let l={className:i[1]?"hidden":"",testId:"btn-play-prev-chapter",ariaLabel:U("tooltip_interactive_go_back"),disabled:i[2],click:i[3],$$slots:{default:[L3]},$$scope:{ctx:i}};return i[0]!==void 0&&(l.ref=i[0]),e=new gt({props:l}),be.push(()=>Oe(e,"ref",o)),{c(){A(e.$$.fragment)},m(r,a){E(e,r,a),n=!0},p(r,[a]){let s={};a&2&&(s.className=r[1]?"hidden":""),a&4&&(s.disabled=r[2]),a&8&&(s.click=r[3]),a&32&&(s.$$scope={dirty:a,ctx:r}),!t&&a&1&&(t=!0,s.ref=r[0],Ne(()=>t=!1)),e.$set(s)},i(r){n||(d(e.$$.fragment,r),n=!0)},o(r){m(e.$$.fragment,r),n=!1},d(r){M(e,r)}}}function R3(i,e,t){let{ref:n=void 0}=e,{hidden:o=!1}=e,{disabled:l=!1}=e,{click:r}=e;function a(s){n=s,t(0,n)}return i.$$set=s=>{"ref"in s&&t(0,n=s.ref),"hidden"in s&&t(1,o=s.hidden),"disabled"in s&&t(2,l=s.disabled),"click"in s&&t(3,r=s.click)},[n,o,l,r,a]}var sc=class extends B{constructor(e){super(),D(this,e,R3,V3,R,{ref:0,hidden:1,disabled:2,click:3})}},fs=sc;var ac=require("@vkontakte/videoplayer-shared");function B3(i){Ce(i,"svelte-1aqpg2x",".icon.svelte-1aqpg2x{width:24px !important;height:24px !important;;}.inner.svelte-1aqpg2x{width:16px;height:16px;background-color:var(--white)}")}function D3(i){let e,t,n,o;return{c(){e=I("img"),c(e,"class","icon svelte-1aqpg2x"),oo(e.src,t=i[0])||c(e,"src",t),c(e,"aria-hidden","true")},m(l,r){v(l,e,r),n||(o=Te(e,"error",i[7]),n=!0)},p(l,r){r&1&&!oo(e.src,t=l[0])&&c(e,"src",t)},d(l){l&&b(e),n=!1,o()}}}function N3(i){let e;return{c(){e=I("div"),e.innerHTML='<div class="inner svelte-1aqpg2x"></div>',c(e,"class","icon icon-error-stub svelte-1aqpg2x")},m(t,n){v(t,e,n)},p:he,d(t){t&&b(e)}}}function O3(i){let e;function t(l,r){return l[5]?N3:D3}let n=t(i,-1),o=n(i);return{c(){o.c(),e=it()},m(l,r){o.m(l,r),v(l,e,r)},p(l,r){n===(n=t(l,r))&&o?o.p(l,r):(o.d(1),o=n(l),o&&(o.c(),o.m(e.parentNode,e)))},d(l){l&&b(e),o.d(l)}}}function F3(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:[O3]},$$scope:{ctx:i}}}),{c(){A(e.$$.fragment)},m(n,o){E(e,n,o),t=!0},p(n,[o]){let l={};o&16&&(l.className=n[4]?"btn-full-opacity":""),o&2&&(l.ariaLabel=n[1]),o&8&&(l.click=n[3]),o&64&&(l.disabled=n[6]),o&4&&(l.testId=n[2]),o&545&&(l.$$scope={dirty:o,ctx:n}),e.$set(l)},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){m(e.$$.fragment,n),t=!1},d(n){M(e,n)}}}function q3(i,e,t){let n,o,l,{iconUrl:r}=e,{ariaLabel:a}=e,{disabled:s=!1}=e,{testId:u}=e,{onClick:f=ac.noop}=e,p=()=>{t(5,l=!0)};return i.$$set=g=>{"iconUrl"in g&&t(0,r=g.iconUrl),"ariaLabel"in g&&t(1,a=g.ariaLabel),"disabled"in g&&t(8,s=g.disabled),"testId"in g&&t(2,u=g.testId),"onClick"in g&&t(3,f=g.onClick)},i.$$.update=()=>{i.$$.dirty&8&&t(4,n=f===ac.noop),i.$$.dirty&272&&t(6,o=n||s)},t(5,l=!1),[r,a,u,f,n,l,o,p,s]}var uc=class extends B{constructor(e){super(),D(this,e,q3,F3,R,{iconUrl:0,ariaLabel:1,disabled:8,testId:2,onClick:3},B3)}},ds=uc;var mp=require("@vkontakte/videoplayer-shared");var Ni=require("@vkontakte/videoplayer-core"),ft=require("@vkontakte/videoplayer-shared"),uo=require("@vkontakte/videoplayer-statistics"),EL=require("@vkontakte/videoplayer-interactive");var Ct=require("@vkontakte/videoplayer-shared");var Km=(i,e)=>i<400||e<225?5:i<640||e<360?0:i<960||e<540?1:i<1280||e<720?2:3;var H3="//ad.mail.ru/static/admanhtml/rbadman-html5.min.js",ms=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 Ct.Subject,started$:new Ct.Subject,paused$:new Ct.Subject,resumed$:new Ct.Subject,ended$:new Ct.Subject,skipped$:new Ct.Subject,clicked$:new Ct.Subject};this.loadAdman=e=>new Promise((t,n)=>{let o,l=()=>{clearTimeout(o),delete window.admanAsyncInit,window.AdmanHTML?t():n()};(0,Ct.addScript)(H3,e,this.loadTimeout).then(()=>{window.AdmanHTML?t():(window.admanAsyncInit=l,o=window.setTimeout(l,this.initTimeout))}).catch(()=>{n()})});this.onAdsReady=()=>{this.log({message:"ads ready"}),this.startPreroll()};this.onAdStarted=(e,t)=>{(0,Ct.assertNonNullable)(this.adsState),(0,Ct.assertNonNullable)(this.playerState),(0,Ct.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"}),Xe(this.playerState.isMobile)&&this.playerState.mobileUnmuteButtonVisible.set(!0)),this.adsState.duration.set(t.duration),this.adsState.playbackState.set("playing"),this.adsState.canSkip.set(t.allowClose),this.adsState.secondsToWatchBeforeSkip.set(t.allowCloseDelay),this.startWatchDog()};this.onAdTimeRemained=({currentTime:e})=>{(0,Ct.assertNonNullable)(this.adsState),this.adsState.position.set(e),this.startWatchDog()};this.onAdPaused=()=>{this.stopWatchDog(),(0,Ct.assertNonNullable)(this.adsState),this.log({message:"ad paused"}),this.adsState.playbackState.set("paused")};this.onAdPlayed=()=>{(0,Ct.assertNonNullable)(this.adsState),this.log({message:"ad played"}),this.adsState.playbackState.set("playing"),this.startWatchDog()};this.onAdMidrollPoint=()=>{(0,Ct.assertNonNullable)(this.adman),(0,Ct.assertNonNullable)(this.actions),this.log({message:"midroll point"}),this.actions.switchFromVideoToAds(),this.currentAdSection="midroll",this.startWatchDog();try{this.adman.start("midroll")}catch{this.log({message:"could not start midroll"}),this.onAdError()}};this.onAdSkipped=()=>{this.log({message:"ad skipped"}),this.stopWatchDog()};this.onAdClosed=()=>{this.log({message:"ad closed"}),this.stopWatchDog(),this.switchToVideo()};this.onAdCompleted=()=>{this.log({message:"ad completed"}),this.events.ended$.next(),this.switchToVideo(),this.stopWatchDog()};this.onAdClicked=()=>{this.log({message:"ad clicked"}),this.videoElement?.pause(),this.events.clicked$.next(),this.stopWatchDog()};this.onAdError=()=>{this.log({message:"ad error"}),this.switchToVideo(!0),this.stopWatchDog()};this.log=e.createComponentLog("AdmanWrapper"),this.loadTimeout=t.loadTimeout,this.initTimeout=t.initTimeout,this.runtimeTimeout=t.runtimeTimeout}init(e,t,n){this.actions=e,this.adsState=t,this.playerState=n}onAdmanLoadingError(){this.log({message:"adman loading error"}),this.switchToVideo(!0)}initAdman(e){if(this.adman)return;this.startWatchDog();let{width:t,height:n,isFullscreen:o,isAutoplay:l,adsContainer:r,adsVideoElement:a,slotId:s,params:u={},duration:f,previewParam:p}=e,g,y=this.playerState&&Xe(this.playerState.vsid);y&&(g=parseInt(y,36));let h={dl:encodeURIComponent(window.location.href),autoplay:l,player_width:t,player_height:n,puid10:Km(t,n),puid11:o?0:1,preview:p,...g?{request_id:g}:{},duration:f,...u};p||delete h.preview;let C={slot:s,wrapper:r,videoEl:a,videoQuality:n,params:h,browser:{mobile:!1}};try{let 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(C),this.adman=w,this.videoElement=a,this.events.slotRequested$.next(),this.log({message:`adman init, config: ${JSON.stringify(C)}`})}catch{this.log({message:"could not init adman"}),this.onAdError()}}switchToVideo(e=!1){if(this.currentAdSection===null&&!e){this.log({message:"switch to video, no currentAdSection. can't switch"});return}(0,Ct.assertNonNullable)(this.actions),(0,Ct.assertNonNullable)(this.adsState),(0,Ct.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,Ct.assertNonNullable)(this.adsState),this.log({message:"toggle play"});let e=Xe(this.adsState.playbackState);e==="playing"?this.pause():e==="paused"&&this.play()}setInitialVolume(e){this.log({message:`set initial volume ${e}`}),this.initialVolume=e}setVolume(e){if(this.log({message:`set volume ${e}`}),this.adman)try{this.adman.setVolume(e)}catch{this.log({message:"could not set ad volume"}),this.onAdError()}this.videoElement&&(this.videoElement.volume=e)}setFullscreen(e){if(this.log({message:`set fullscreen ${e}`}),this.adman)try{this.adman.setFullscreen(e)}catch{this.log({message:"could not set ad fullscreen"}),this.onAdError()}}startPreroll(){if((0,Ct.assertNonNullable)(this.adman),!this.isDestroyed){this.log({message:"start preroll"}),this.setVolume(this.initialVolume),this.currentAdSection="preroll",this.startWatchDog();try{this.adman.start("preroll")}catch{this.log({message:"could not start preroll"}),this.onAdError()}}}startPostroll(){(0,Ct.assertNonNullable)(this.adman),(0,Ct.assertNonNullable)(this.actions),this.log({message:"start postroll"}),this.actions.switchFromVideoToAds(),this.currentAdSection="postroll",this.startWatchDog();try{this.adman.start("postroll")}catch{this.log({message:"could not start postroll"}),this.onAdError()}}startWatchDog(){this.watchDogTimeout&&clearTimeout(this.watchDogTimeout),this.watchDogTimeout=window.setTimeout(()=>this.onAdError(),this.runtimeTimeout)}stopWatchDog(){clearTimeout(this.watchDogTimeout)}play(){(0,Ct.assertNonNullable)(this.adman),this.log({message:"ad play"}),this.startWatchDog();try{this.adman.resume(),this.events.resumed$.next()}catch{this.onAdError(),this.log({message:"could not resume ad"})}}pause(){(0,Ct.assertNonNullable)(this.adman),this.stopWatchDog(),this.log({message:"ad pause"});try{this.adman.pause(),this.events.paused$.next()}catch{this.onAdError(),this.log({message:"could not pause ad"})}}skip(){(0,Ct.assertNonNullable)(this.adman),this.stopWatchDog(),this.log({message:"ad skip"});try{this.adman.skip(),this.events.skipped$.next()}catch{this.log({message:"could not skip ad"}),this.onAdError()}}setPosition(e,t){this.adman?.setPosition(Math.floor(e),Math.floor(t))}destroy(){this.log({message:"destroy"}),this.stopWatchDog(),this.adman?.destroy(),this.videoElement&&(0,Ct.clearVideoElement)(this.videoElement),this.isDestroyed=!0}};var jm=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 cc=class{constructor(){this.oneLineRegExp=/\r\n|\n|\r/;this.twoLinesRegExp=/\r\n\r\n|\n\n|\r\r/}parse(e){let t=[],n=e.split(this.twoLinesRegExp);for(let o of n){let l={startTime:0,endTime:0,texts:[],lang:""},r=o.split(this.oneLineRegExp);for(let a of r)if(!l.startTime&&!l.endTime){let s=new ps,{startTime:u,endTime:f}=s.parse(a);l.startTime=u,l.endTime=f}else if(a.trim()!==""){let s=new fc,{texts:u}=s.parse(a);l.texts=[...l.texts,...u]}(l.startTime||l.endTime)&&l.texts.length>0&&t.push(l)}return t}},ps=class{constructor(){this.timeRegExp=/(\d{2})?:?(\d{2}):(\d{2}).(\d{2,3})/;this.timingRegExp=new RegExp(`${this.timeRegExp.source}( ?--> ?)${this.timeRegExp.source}`)}parse(e){let t={startTime:0,endTime:0},n=this.timingRegExp.exec(e);return n&&(t.startTime=this.calcTime(n[1],n[2],n[3],n[4]),t.endTime=this.calcTime(n[6],n[7],n[8],n[9])),t}parseTime(e){let t=this.timeRegExp.exec(e);return t?this.calcTime(t[1],t[2],t[3],t[4]):0}isTime(e){return this.timeRegExp.test(e)}calcTime(e="0",t="0",n="0",o="0"){let l=Number(e)*60*60,r=Number(t)*60,a=Number(n),s=+`0.${o}`;return l+r+a+s}},fc=class{constructor(){this.letterTagRegExp=/<[a-z]*>|<\/[a-z]*>/}parse(e){let t={texts:[]},o=e.replace(new RegExp(this.letterTagRegExp,"g"),"").split({[Symbol.split](r){let a=0,s=[];for(;a<r.length;){let u=["<",">"].reduce((f,p)=>{let g=r.indexOf(p,a);return f===-1||f>g?g:f},-1);if(u===-1){s.push(r.substring(a));break}s.push(r.substring(a,u)),a=u+1}return s}}),l=new ps;for(let r of o)l.isTime(r)?t.texts.push({type:"timestamp",value:l.parseTime(r)}):t.texts.push({type:"text",value:r});return t}},Gm=cc;var _s=require("@vkontakte/videoplayer-shared"),ko,Vn,dc=0,mc=!1,xm=(i,e,t)=>{let n=i>=dc,o=i<dc,l=(u,f=0,p=0)=>u<f&&u<p,r=(u,f=0,p=0)=>u>=f&&u<=p,a=(u,f=0,p=0)=>u>f&&u>p,s=t.find(({lang:u})=>u===e.value)?.subtitles;if(dc=i,o&&(mc=!1),(0,_s.isNonNullable)(ko)&&r(i,ko.startTime,ko.endTime)&&ko.lang===e.value)return ko;if(!(0,_s.isNonNullable)(Vn)&&s?.length&&!mc){let u=s.find(({startTime:f,endTime:p})=>r(i,f,p)||n&&l(i,f,p));Vn=u&&{...u,lang:e.value},ko=void 0,!(0,_s.isNonNullable)(Vn)&&s[s.length-1].endTime<i&&(mc=!0);return}else{if(r(i,Vn?.startTime,Vn?.endTime))return ko=Vn,Vn=void 0,ko;(n&&a(i,Vn?.startTime,Vn?.endTime)||o&&l(i,Vn?.startTime,Vn?.endTime))&&(Vn=void 0)}};var Ym=require("@vkontakte/videoplayer-shared"),TL=require("@vkontakte/videoplayer-statistics"),gs=class{constructor(e,t=new Ym.Subscription){this.oneStat=e;this.statSubscription=t}destroy(){this.oneStat.destroy(),this.statSubscription.unsubscribe()}};var Qm=({interfaceLanguage:i,isCyrillicRelatedInterface:e,videoId:t,isClip:n,isLiveCatchUpMode:o,statAuthToken:l,isAudioDisabled:r,canDownload:a,callbacks:s,webApi:u,videoEpisodes:f,previewThumbsData:p,uiConfig:g,coreConfig:y,player:h,disabledControls:C,isInteractive:w,interactiveRanges$:F,isInteractiveTime$:T,replayInteractive:k,hasInteractiveBranches:P,playPrevChapterDisabledTooltip:G,additionalButtons:W,additionalSettingsMenuItems:z,additionalContextMenuItems:le,looped:de=!1,statistics:L,saveRate:te})=>{let re={...y,configName:[...y.configName??[],"ui"],isAudioDisabled:r,live:{...y.live??{},isLiveCatchUpMode:!!o}},X=g,Pe=ft.Tracer.createRootTracer(X.features.saveTraceInfoToFile),q=Pe.createComponentTracer("Store"),N=h||new Ni.Player(re,Pe),K=new ft.Logger,ce=new ms(K,{loadTimeout:X.ads.loadTimeout,initTimeout:X.ads.initTimeout,runtimeTimeout:X.ads.runtimeTimeout}),oe=Fo.getInstance(),se=u?.pictureInPictureApi,qe=u?.annotationsApi,Ve=K.createComponentLog("Store"),ke,Re,ze={},je=L?bt(L.oneStat.vsid$):Mn(void 0),Y=Fe(go()),fe=se?.info.isActive$??new ft.ValueSubject(!1),Ze=se?.info.type,_e=Fe(0),Ue=Fe([]),tt=(0,ft.merge)(N.events.fatalError$,N.events.managedError$).subscribe(S=>Ue.update(Q=>[...Q,S])),rt=Mn(!1,S=>{let Q=N.events.fatalError$.subscribe(()=>S(!0));return()=>Q.unsubscribe()}),Je=async S=>{let Q=Object.values(ft.InterfaceLanguage).includes(S);if(X.downloadVKLanguages&&(Q&&X.updateBuiltinLanguages||!ea(S))){let Ge;try{Ge=await(0,ft.loadVKLangPack)(S,Tf,Pf)}catch(ct){L?.oneStat?.logError({errorType:"VKLangPack",fatal:!1}),oe?.report(ct,{errorType:"VKLangPack",fatal:!1})}Ge&&($s({language:S,pack:Ge,fallback:X.defaultLanguage}),Ye.set(S))}ea(S)&&Ye.set(S)},Ye=Fe(i),We=Fe(e);Je(i);let J=(S,Q)=>{let Se=Xe(Ye);return ta(Se,S,Q,X.defaultLanguage)},He=Fe("thumb"),we=(()=>{let S=$t([rt,He],([Q,Se])=>Q?"crashed":Se);return{...S,is:Q=>Xe(S)===Q}})(),Ie=(()=>{let S=Fe(new Set(C));return{...S,add:Q=>{S.update(Se=>new Set([...Se].concat(Q)))},remove:Q=>{S.update(Se=>{let Ge=[...Se];return new Set(Array.isArray(Q)?Ge.filter(ct=>!Q.includes(ct)):Ge.filter(ct=>ct!==Q))})},includes:Q=>{let Se=Xe(S);return Array.isArray(Q)?Q.every(Ge=>Se.has(Ge)):Se.has(Q)}}})();q.log("create store"),Ve({message:"create store"});let Ke=S=>{let Q=S.container;Q.append(N.experimental.element$.getValue()),St=new MutationObserver(Se=>{let{removedNodes:Ge}=Se[0];Ge.length&&Q.append(N.experimental.element$.getValue())}),St.observe(Q,{childList:!0})},me=S=>{Ve({message:`init video, config: ${JSON.stringify(S)}`}),w?Ke(S):N.initVideo(S),q.log("init video",{isInteractive:w}),S.subtitles&&N.setExternalTextTracks(S.subtitles),ke=S},$=new ft.Subject,dt=S=>$.next(S),mt=new ft.Subject,$e=new ft.Subject,ut=new ft.Subject,St=null,et={actionRewind$:mt,actionSeek$:$e,inPiP$:fe,inFullscreen$:new ft.Observable(S=>Y.subscribe(Q=>S.next(Q))),actionSetSubtitle$:ut,nextMovie$:$};if(L){let{oneStat:S,statSubscription:Q}=L;w||Q.add(S.attachTo(N)),Q.add(S.attachToUi(et)),Q.add(S.attachToAds(ce.events)),S.authorize(l).catch(Se=>{Ve({message:`onestat auth error ${String(Se)}`})})}if(oe){let S=new ft.Subscription,Q=(Se,Ge)=>S.add(Se.subscribe(Ge));if(Q(N.events.managedError$,Se=>{oe.logIError(Se)}),Q(N.events.fatalError$,Se=>{oe.logIError(Se,!0)}),L){let{oneStat:Se}=L;Q(Se.experimental.error$,Ge=>{oe.logIError(Ge)})}oe.sentrySubscription.add(S)}let ni=()=>{ft.clientChecker.isIOS&&Re&&sd(Re)},It=new ft.Subscription().add(N.experimental.element$.subscribe(S=>{S&&(Re=S,S.classList.add("player-media"),Ho(se)&&(se.updateVideoElement(),se.registryEventHandlers()),w&&S.setAttribute("pip","false"))})).add(N.events.ended$.subscribe(()=>{ni(),s?.onEnded?.()})).add(N.events.started$.subscribe(async()=>{Ho(se)&&await se?.revealPictureInPicture();let S=N.info.muted$.getValue();s?.onStarted?.(),ze.onStarted?.(S)})).add(N.events.willSeek$.subscribe(({from:S,to:Q})=>{s?.onSeek?.(S,Q)})).add(N.info.position$.subscribe(S=>{let Q=N.info.duration$.getValue();isFinite(Q)&&Q>0&&(s?.onTimeupdate?.(Q,S),ce.setPosition(S,Q))})).add(N.events.fatalError$.subscribe(()=>{s?.onCrashed?.()})).add(N.events.loadedMetadata$.subscribe(()=>{kt.state.loadedMetadata$.set(!0)})).add(N.info.is3DVideo$.subscribe(S=>{kt.ui.is3DVideo.set(S)})).add(N.info.isEnded$.subscribe(S=>{w&&(S?(T?.getValue()&&Ie.add(_l),Ie.add("PLAY_BUTTON")):Ie.remove("PLAY_BUTTON"))})).add(N.info.liveTime$.subscribe(S=>{s?.onLiveTime?.(S)})).add(N.info.isStalled$.subscribe(S=>{s?.onStalledChanged?.(S)})).add(ce.events.started$.subscribe(()=>{s?.adsInfo?.onStarted?.()})).add(ce.events.ended$.subscribe(()=>{s?.adsInfo?.onCompleted?.()})),qt=new ft.Subscription,oi=()=>{qt.add(N.events.log$.subscribe(S=>{console.debug("%c sdk ","background:#9ddcf7;",`sdk component: ${S.component}`,S.message)})).add(K.log$.subscribe(S=>{console.debug("%c ui ","background:#f3da0b;",`ui component: ${S.component}.`,S.message)}))},st=()=>{qt.unsubscribe()},yt=(S,Q)=>{q.log("start camera manual rotation",{mx:S,my:Q}),N.startCameraManualRotation(S,Q)},ei=(S=!1)=>{q.log("stop camera manual rotation",{immediate:S}),N.stopCameraManualRotation(S)},pe=(S,Q,Se)=>{q.log("move camera focus px",{xpx:S,ypx:Q,dt:Se}),N.moveCameraFocusPX(S,Q,Se)},Lt=()=>{N.holdCamera()},Vt=()=>{N.releaseCamera()},Pt=Mn(N.info.position$.getValue(),S=>{let Q,Se,Ge=()=>{let ct=N.info.playbackState$.getValue(),li=N.info.isLive$.getValue(),Ii=N.info.duration$.getValue(),si=N.info.position$.getValue();if([Ni.PlaybackState.PLAYING,Ni.PlaybackState.PAUSED].includes(ct)){let Qn=li?si-Ii:N.getExactTime();Qn!==Se&&S(Qn),Se=Qn}Q=requestAnimationFrame(Ge)};return Ge(),()=>cancelAnimationFrame(Q)}),Tt=bt(fe),Ht=bt(N.info.playbackState$),Rt=bt(N.info.currentBuffer$),ai=bt(N.info.isEnded$),_i=bt(N.info.isLive$),Qt=X.features.playbackRate?bt(N.info.canChangePlaybackSpeed$):Mn(!1),Ot=bt(N.info.liveBufferTime$),ri=bt(N.info.volume$),Ft=bt(N.info.muted$),Pi=xs(N.info.autoQualityLimits$.pipe((0,ft.map)(({max:S})=>S!==void 0)),N.info.autoQualityLimits$.getValue()?.max!==void 0),wt=bt(N.info.autoQualityLimitingAvailable$),Ei=bt(N.info.availableQualities$),gi=bt(N.info.availableQualitiesFps$),ui=bt(N.info.chromecastState$),ci=bt(N.info.chromecastDeviceName$),ge=bt(N.info.currentFormat$),pt=bt(N.info.throughputEstimation$),Zt=bt(N.info.videoBitrate$),un=bt(N.info.intrinsicVideoSize$),Fi=bt(N.info.duration$),xi=bt(N.info.isAudioAvailable$),Kt=null,qi=N.info.isBuffering$,Yi=Mn(qi.getValue(),S=>{let Q=qi.subscribe(Se=>{Se&&Kt===null?Kt=window.setTimeout(()=>{S(qi.getValue()),Kt=null},X.loaderDelay):S(Se)});return()=>{Q.unsubscribe(),Kt&&clearTimeout(Kt)}}),fi=()=>{Kt&&clearTimeout(Kt),Kt=null},Xt=$t([Fi,_i],([S,Q])=>Q?-S:S),cn=$t([Ht],([S])=>S===Ni.PlaybackState.PLAYING),fn=bt(N.info.atLiveEdge$),hi=bt(N.info.atLiveDurationEdge$),Qi=bt(N.info.position$),bi=$t([Qi,Fi],([S,Q])=>isFinite(S)&&isFinite(Q)&&!!Q),Zi=$t([ui],([S])=>S===Ni.ChromecastState.CONNECTED),dn=bt(N.info.availableVideoStreams$),Mi=X.features.audioLanguages?bt(N.info.availableAudioStreams$):Mn([]),Hi=bt(N.info.currentVideoStream$),jt=bt(N.info.currentAudioStream$),mn=S=>{S.language&&Xs(S.language),N.setVideoStream(S)},Ai=S=>{S.language&&Xs(S.language),N.setAudioStream(S)},Ui=S=>{let Q;if(S.length===1&&(Q=S.at(0)),Q??=S.find(Ge=>"isDefault"in Ge&&Ge.isDefault),Q)return Q;let Se=$f();return Se&&(Q=S.find(({language:Ge})=>Se===Ge)),Q??=S.at(0),Q},Xi=!1;It.add(N.info.availableAudioStreams$.subscribe(S=>{if(!Xi&&S.length){let Q=Ui(S);Q&&(N.setAudioStream(Q),Xi=!0)}}));let Li=!1;It.add(N.info.availableVideoStreams$.subscribe(S=>{if(!Li&&S.length){let Q=Ui(S);Q&&(N.setVideoStream(Q),Li=!0)}}));let di=Fe(void 0),Vi=bt(N.info.isAutoQualityEnabled$,S=>S&&di.set(void 0)),Ji=bt(N.info.currentQuality$,()=>di.set(void 0)),$i=$t([di,Ji],([S,Q])=>S??Q),en=$t([Ei,gi,Vi,$i,ge],([S,Q,Se,Ge,ct])=>{let li=[];ct!==Ni.VideoFormat.MPEG&&li.push({value:"auto",displayValue:J("auto_quality_option"),selected:Se});let Ii=S.filter(si=>!(0,ft.isInvariantQuality)(si));for(let si of Ii){let Qn=Q[si];li.push({value:si,displayValue:`${si}${Qn?jm(Qn):""}`,selected:Se?!1:si===Ge})}return li}),Gt=bt(N.info.currentPlaybackRate$),vi=$t([Gt,fn,hi],([S,Q,Se])=>{let Ge=Se||w?1:X.controls.playbackRateMin,ct=Q?1:X.controls.playbackRateMax,li=X.controls.playbackRateStep,Ii=[];for(let si=Ge;si<=ct;si+=li)Ii.push({value:si,displayValue:si===1?J("playback_rate_1"):J("playback_rate",{multiplier:si.toString(10)}),selected:S===si});return Ii}),tn=X.features.subtitles?bt(N.info.availableTextTracks$):Mn([]),yi=$t([tn],([S],Q)=>{let Se=[],Ge=[];for(let ct of S)ct.url&&Se.push(fetch(ct.url));Promise.allSettled(Se).then(ct=>{for(let[li,Ii]of ct.entries())Ii.status==="fulfilled"&&Ii.value.text().then(si=>{let Qn=new Gm,sl=S[li].language,Fs=!!S[li].isAuto,al=Qn.parse(si);sl&&al&&Ge.push({lang:sl,subtitles:al,isAuto:Fs}),li===ct.length-1&&Q(Ge)})})}),At={displayValue:J("subtitles_off"),value:"off"},mi=Fe({...At}),ki=$t([yi,mi,yi],([S,Q])=>{if(S?.length>0){let Se=[{...At,selected:Q?.value===At.value}];for(let{lang:Ge,isAuto:ct}of S)Ko[Ge]&&Se.push({displayValue:ct?J("subtitles_auto",{language:Ko[Ge]}):Ko[Ge],value:Ge,selected:Q?.value===Ge,isAuto:ct});return Se}else return[]}),Ri=$t([Pt,mi,yi],([S,Q,Se])=>{if(Q&&Q.value!==At.value)return xm(S,Q,Se)}),lt=$t([Ri],([S])=>S?.texts?S.texts:[]),wi=Fe(!0),ti=$t([Rt,Xt,Qi,Ot],([S,Q,Se,Ge])=>{let ct=S?.end??0;if(!Ge)return ct/Q;let Ii=-Se+Ge-Q;return(ct-Ii)/Q}),Qe=bt(N.info.availableSources$),pn=$t([Qe],([S])=>Object.keys(S?.[Ni.VideoFormat.MPEG]||{}).length>0),nn=()=>{let S=Object.keys(N.info.availableSources$?.getValue()?.[Ni.VideoFormat.MPEG]||{}),Q=(0,ft.getHighestQuality)(S)||ft.VideoQuality.Q_144P;return ke.sources[Ni.VideoFormat.MPEG]?.[Q]},_n=()=>{let S=nn();if(S)q.log("download video",{url:S}),qf(S,ke?.meta?.title||"video");else{let Q="There is no URL for download video";q.log("download video",{message:Q}),Ve({message:Q})}},gn=()=>{Ve({message:"toggle muted"});let S=N.info.muted$.getValue(),Q=N.info.volume$.getValue(),Se=Q===0||S,Ge=!Se;q.log("toggle muted",{muted:S,volume:Q,soundIsOff:Se,nextValue:Ge}),Ut(Ge)},Bi=()=>{q.log("close settings menu"),kt.ui.settingsMenuVisible.set(!1)},Ci=S=>{q.log("open settings menu",{wasOpenedByKeyboard:S}),kt.ui.settingsMenuOpenedByKeyboard.set(!!S),kt.ui.settingsMenuVisible.set(!0)},zi=S=>{Xe(kt.ui.settingsMenuVisible)?Bi():Ci(S)},Wi=(S,Q=S,Se=!1)=>{let Ge=!Se,ct=N.info.muted$.getValue();Ve({message:`set volume, volume: ${S}, preferredVolume: ${Q}, internalCall: ${Ge}`}),q.log("set volume",{volume:S,preferredVolume:Q,internalCall:Ge}),N.setVolume(S),ce.setVolume(S),Ge&&s?.onVolumeChange?.(S),Qs(Q),ct?(N.setMuted(!1),Ge&&s?.onUnmute?.(),bl(!1)):!ct&&S===0&&(N.setMuted(!0),Ge&&s?.onMute?.(),bl(!0))},Ut=(S,Q=!1)=>{let Se=!Q,Ge=N.info.volume$.getValue();if(Ve({message:`set muted, currentVolume: ${Ge}, mute: ${S}, internalCall: ${Se}`}),q.log("set muted",{mute:S,currentVolume:Ge,internalCall:Se}),N.setMuted(S),ce.setVolume(S?0:Ge),bl(S),Se&&(S?s?.onMute?.():s?.onUnmute?.()),Ge===0){let ct=hl()??X.volumeDefault;ct===0&&(ct=X.volumeMinRestore,Qs(ct)),N.setVolume(ct),ce.setVolume(ct),Se&&s?.onVolumeChange?.(ct)}},Si=Fe(!1),Tn=S=>{q.log("set looped",{isLooped:S}),Si.set(S),N.setLooped(S)};Tn(de);let Pn=()=>{s?.uiInfo?.onReportProblem?.()},hn=()=>{N.prepare()},on=()=>{(0,ft.assertNonNullable)(kt);let S=Xe(kt.ui.controls.disabledControls$),Q=Xe(kt.playerPhase),Se={playerPhase:Q,isInteractive:w,isVideoEnded:!1,action:"none"};if(S.has("PLAY_BUTTON"))return;if(Ve({message:"toggle play"}),Q==="ads"){Se.action="play",q.log("toggle adman play",Se),ce.togglePlay();return}let Ge=()=>{Ve({message:"toggle play, call player.play"}),Se.action="play",N.play(),s?.onPlay?.()},ct=()=>{Ve({message:"toggle play, call player.pause"}),Se.action="pause",N.pause(),s?.onPause?.()};if(N.info.isEnded$.getValue()){if(Ve({message:"toggle play, video ended, seek to 0"}),mt.next(),$e.next(uo.SeekAction.REWIND),w){k?.();return}N.seekTime(0),Ge()}else N.info.playbackState$.getValue()!==Ni.PlaybackState.PLAYING?Ge():ct();q.log("toggle play",Se)},bn=S=>{Ve({message:`set quality, quality: ${S}`}),q.log("set quality",{quality:S}),N.setAutoQuality(S==="auto"),S!=="auto"?(Gf(t,S),di.set(S),N.setQuality(S)):Zs()},vn=S=>{Ve({message:`set trafficSavingEnabled, value: ${S}`}),q.log("set traffic saving enabled",{trafficSavingEnabled:S}),N.setAutoQualityLimits({max:S?X.trafficSavingLimit:void 0}),Xf(S)},yn=S=>{q.log("set playback rate",{playbackRate:S}),N.setPlaybackRate(S),X.features.saveRate&&te&&!N.info.isLive$.getValue()&&ed(S)},Ki=()=>{let S=Xe(vi),Q=S.findIndex(({selected:Ge})=>Ge);if(Q===S.length-1)return;let Se=S[Q+1];yn(Se.value)},Di=()=>{let S=Xe(vi),Q=S.findIndex(({selected:Ge})=>Ge);if(Q===0)return;let Se=S[Q-1];yn(Se.value)},pi=S=>{q.log("set subtitles",{...S}),S&&S.value!==At.value&&ut.next(S.isAuto?S.value+"_auto":S.value),mi.set(S)},Un=()=>{q.log("toggle subtitles");let S=Xe(ki),Q=Xe(mi),Se=Xe(Ye);if(Q?.value===At.value){let Ge=S.filter(ct=>ct.value!==At.value).find(ct=>ct.value===Se)||S[1];pi(Ge??{...At})}else pi({...At,selected:!1})},ji=(S,Q,Se=!0)=>{if(Ve({message:`seek to time, time: ${S}`}),q.log("seek to time",{time:S,action:Q,forcePrecise:Se}),$e.next(Q),N.info.isLive$.getValue()){let Ge=N.info.duration$.getValue(),ct=Math.min(0,Ge+S);N.seekTime(ct,Se)}else{if(T?.getValue())return;N.seekTime(mo(S),Se)}},zn=S=>{Ve({message:`seek to episode start time: ${S}`}),q.log("seek to episode start time",{time:S}),ji(S,uo.SeekAction.EPISODE,!0)},xt=(S,Q)=>{Ve({message:`seek to percent, percent: ${S}`}),q.log("seek to percent",{percent:S,action:Q});let Se=Math.round(Xe(Xt)*S);ji(Se,Q,!1)},Wn=S=>{Ve({message:`seek external, time: ${S}`}),q.log("seek external",{time:S}),$e.next(uo.SeekAction.UNKNOWN),N.seekTime(N.info.isLive$.getValue()?-S:S)},Kn=S=>{let Q=S.max??"none",Se=S.min??"none";Ve({message:`set auto quality limitation. Max: ${Q}. Min: ${Se}`}),q.log("set auto quality limits",{max:Q,min:Se}),N.setAutoQualityLimits(S)},Rn=S=>{Ve({message:`seek external to episode start time: ${S}`}),q.log("seek external to episode start time",{time:S}),ji(S,uo.SeekAction.EPISODE,!0)},jn=S=>{Ve({message:`set playback rate to: ${S}`}),q.log("set playback rate external",{playbackRate:S}),N.setPlaybackRate(S)},rn=Fe(void 0),ln=Fe(!1),ie=S=>{Ve({message:`start scrubbing, progress: ${S}`}),q.log("start scrubbing",{progress:S}),ln.set(!0),vt(S)},vt=S=>{rn.set(S)},sn,an,Gn=()=>{rn.set(void 0),ln.set(!1)},xn=()=>{clearTimeout(an),clearTimeout(sn),sn=window.setTimeout(()=>{Gn()},500),Re?.removeEventListener("seeked",xn)},wo=S=>{Ve({message:`complete scrubbing, progress: ${S}`}),q.log("complete scrubbing",{progress:S}),xt(S,uo.SeekAction.SLIDER),Xe(kt.ui.isMobile)&&Xe(kt.state.currentFormat$)===Ni.VideoFormat.HLS?(Re?.addEventListener("seeked",xn),an=window.setTimeout(()=>{xn()},300)):Gn()},Co=$t([Pt,Xt,rn],([S,Q,Se],Ge)=>{Ge((0,ft.isNonNullable)(Se)?Se*Q:S)}),ee=Fe({width:0,height:0}),eo=$t([ee],([{width:S}],Q)=>{let Se=pm(S);Q(Se)}),So=Fe(!1),Dr=$t([eo,So],([S,Q])=>Q?W.filter(Se=>!Se.hideOnMobile):W.filter(Se=>!Se.hideOnDesktopGridTypes?.includes(S))),Bn=Fe(z),Nr=$t([Bn],([S])=>X.features.additionalSettingsMenuItems?S.map(Q=>Q.type==="SWITCH"?{...Q,onClick:Q.onChangeEnabled}:Q):[]),Yo=(S,Q)=>{let Se=Xe(Bn).map(Ge=>Ge.id!==S?Ge:{...Ge,...Q});Bn.set(Se)},Or=S=>{let Q=Xe(Bn);if(Q.some(Se=>Se.id===S.id)){Ve({message:`Settings menu item with id: "${S.id}" was exist! Can't add more with the same id`});return}Q.push(S),Bn.set(Q)},fo=S=>{let Q=Xe(Bn);if(!Q.some(Se=>Se.id===S)){Ve({message:`Can't find settings menu item with id: "${S}"! Can't remove item with this id`});return}Q=Q.filter(Se=>Se.id!==S),Bn.set(Q)},En=Fe(le),Yn=$t([En],([S])=>X.features.additionalContextMenuItems?S:[]),to=(S,Q)=>{let Se=Xe(En).map(Ge=>Ge.id!==S?Ge:{...Ge,...Q});En.set(Se)},Io=S=>{let Q=Xe(En);if(Q.some(Se=>Se.id===S.id)){Ve({message:`Context menu item with id: "${S.id}" was exist! Can't add more with the same id`});return}Q.push(S),En.set(Q)},Qo=S=>{let Q=Xe(En);if(!Q.some(Se=>Se.id===S)){Ve({message:`Can't find context menu item with id: "${S}"! Can't remove item with this id`});return}Q=Q.filter(Se=>Se.id!==S),En.set(Q)},To=$t([So,rt],([S,Q],Se)=>{Se(S&&Q)}),Zo=()=>{$e.next(uo.SeekAction.LIVE),Ve({message:"switch to active live"}),q.log("switch to active live"),N.seekTime(0),N.info.playbackState$.getValue()!==Ni.PlaybackState.PLAYING&&kt.actions.internal.togglePlay()},Xo=()=>{q.log("skip adman"),ce.skip()},Jo=(S=!0)=>{(0,ft.assertNonNullable)(kt),Ve({message:`switch from ads to video, callPlay: ${S}`}),q.log("switch from ads to video",{callPlay:S}),He.set("video"),S&&N.play()},$o=()=>{(0,ft.assertNonNullable)(kt),Ve({message:"switch from video to ads"}),q.log("switch from video to ads"),kt.actions.internal.pause(),ni(),He.set("ads")},er=S=>{(0,ft.assertNonNullable)(kt);let Q=S?"LiveWaitingStart":"thumb";q.log("set live waiting start",{state:S,playerPhase:Q}),He.set(Q)},tr=S=>{(0,ft.assertNonNullable)(kt);let Q=S?"LiveWaitingRecover":"thumb";q.log("set live waiting recover",{state:S,playerPhase:Q}),He.set(Q)},x=S=>{(0,ft.assertNonNullable)(kt);let Q=S?"LiveWaitingRecord":"thumb";q.log("set live waiting record",{state:S,playerPhase:Q}),He.set(Q)},Bt=()=>((0,ft.assertNonNullable)(kt),q.log("get debug text data"),Of(N,ke,kt)),kn=()=>((0,ft.assertNonNullable)(kt),JSON.stringify(Pe.getFinishedSpans())),Dn=()=>((0,ft.assertNonNullable)(kt),Ff(N,ke,kt)),Po=()=>Re,Eo=()=>{Ve({message:"toggle chromecast"}),q.log("toggle chromecast"),N.toggleChromecast()},io=S=>{if((0,ft.assertNonNullable)(kt),N.info.isEnded$.getValue())return;let Q=!S;if(Xe(kt.playerPhase)==="ads"){Ve({message:`pause ads, internalCall: ${Q}`}),q.log("pause ads",{internalCall:Q}),ce.pause();return}Ve({message:`pause video, internalCall: ${Q}`}),q.log("pause video",{internalCall:Q}),Q&&s?.onPause?.(),N.pause()},ir=S=>{(0,ft.assertNonNullable)(kt);let Q=!S;if(Xe(kt.playerPhase)==="ads"){Ve({message:`play ads, internalCall: ${Q}`}),q.log("play ads",{internalCall:Q}),ce.play();return}Ve({message:`play video, internalCall: ${Q}`}),q.log("play video",{internalCall:Q}),Q&&s?.onPlay?.(),N.play()},Mo=(S,Q)=>{(0,ft.assertNonNullable)(kt),Ve({message:`first start, show ads: ${S}, internalCall: ${!Q}`}),q.log("first start",{showAds:S,external:Q}),S?He.set("ads"):(He.set("video"),Q?N.play():kt.actions.internal.togglePlay())},no=()=>(Ve({message:"getting time codes"}),f),nr=()=>{let S=no();if(!S||[0,1].includes(S.length))return;let Q=N.info.position$.getValue();return S.find(Se=>Se.time>Q)},Os=S=>{let Q=S;Q||(Q=nr());let Se=N.info.position$.getValue();q.log("seek to next episode",{currentTime:Se,...Q}),Q&&(Ve({message:"seek to next episode"}),ji(Q.time,uo.SeekAction.EPISODE,!0))},Fr=()=>{let S=no();if(!S||[0,1].includes(S.length))return;let Q=N.info.position$.getValue(),Se=S.findIndex(ct=>ct.time>Q),Ge=Se===-1?S.length-2:Se-2;if(!(Ge<0))return S[Ge]},nl=S=>{let Q=S;Q||(Q=Fr());let Se=N.info.position$.getValue();q.log("seek to prev episode",{currentTime:Se,...Q}),Q&&(Ve({message:"seek to prev episode"}),ji(Q.time,uo.SeekAction.EPISODE,!0))},ol=()=>(Ve({message:"getting preview thumbs data"}),q.log("get preview thumbs data",{...p}),p),rl=async()=>{let S=se?.isActive(),Q="none";se?.isActive()?(Q="remove",await se?.remove()):(Q="request",await se?.request()),q.log("toggle picture in picture",{isActive:S,action:Q})},qr=(S=-90)=>{q.log("rotate video",{alphaDiff:S}),_e.update(Q=>Q+S)},nt=Fe([]);F?.subscribe(S=>{let Q=[];for(let Se=0;Se<S.length;Se++){let{range:[Ge,ct],subjects:li}=S[Se];Se===0&&Ge!==0&&Q.push({time:0,text:"",interactive:!1,completed:!0}),Q.push({time:Ge/1e3,text:"",interactive:!0,completed:!li.length}),ct!==1/0&&Q.push({time:ct/1e3,text:"",interactive:!1,completed:!0})}nt.set(Q)});let wn=Fe(!1);T?.subscribe(S=>{S&&Xe(ln)&&Gn()});let mo=S=>{if(!w)return S;let Q=Xe(nt),Se=Xe(Xt),ct=Xe(Qi)/Se,li=Q.find(Ii=>Ii.interactive&&!Ii.completed&&Ii.time>ct);return typeof li?.time=="number"?Math.min(S,li.time-.05):S},Hr=()=>{kt.ui.episodes.panelOpened$.set(!1)},ll=()=>{q.log("destroy store"),clearTimeout(an),clearTimeout(sn),It.unsubscribe(),qt.unsubscribe(),N.destroy(),ce.destroy(),L?.destroy(),oe?.destroy(),tt.unsubscribe(),St?.disconnect(),St=null},kt={interfaceLanguage$:Ye,isCyrillicRelatedInterface$:We,initVideo:me,videoId:t,isClip:n,playerPhase:we,vsid:je,state:{positionExact$:Pt,positionWithScrubbing$:Co,duration$:Xt,playbackState$:Ht,isPlaying$:cn,isLoaderVisible:Yi,bufferedProgress$:ti,isLive$:_i,canChangePlaybackSpeed$:Qt,isActiveLive$:fn,isOldestAvailableLive$:hi,isRewindableLive$:bi,isEnded$:ai,muted$:Ft,volume$:ri,trafficSavingEnabled$:Pi,autoQualityLimitingAvailable$:wt,availableVideoStreams$:dn,availableAudioStreams$:Mi,videoStream$:Hi,audioStream$:jt,currentQuality$:$i,isAutoQualityEnabled$:Vi,availableQualities$:en,currentPlaybackRate$:Gt,availablePlaybackRates$:vi,currentSubtitle$:mi,availableSubtitlesList$:ki,currentSubtitleCaptions$:lt,isAutoSubtitleCaptionVisible$:wi,chromecastState$:ui,chromecastDeviceName$:ci,chromecastConnected$:Zi,currentFormat$:ge,throughputEstimation$:pt,videoBitrate$:Zt,videoSize$:un,errorLog$:Ue,crashed$:rt,isAudioAvailable$:xi,isAudioDisabled:!!r,canDownload:X.features.download&&!!a,availableSources$:Qe,hasMpegSources$:pn,isInteractive:w,showInteractiveGraph:X.features.interactiveGraph,showSeekToInteractive:X.features.seekToInteractive,showPlayPrevChapter:X.features.interactivePlayPrevChapter,showInteractiveTimeIndicator:X.features.interactiveTimeIndicator&&!!Xe(nt).length,interactiveEpisodes$:nt,isInteractiveTime$:T?bt(T):Fe(!1),graphIsOpened$:Fe(!1),isInteractiveExpectation$:wn,hasInteractiveBranches:P,playPrevChapterDisabledTooltip:G,looped$:Si,loadedMetadata$:Fe(!1)},ui:{controlsVisible:Fe(!1),touched:Fe(!1),controls:{prevButton:Fe(void 0),playButton:Fe(void 0),replayButton:Fe(void 0),nextButton:Fe(void 0),playPrevChapterButton:Fe(void 0),seekToInteractiveButton:Fe(void 0),interactiveGraphButton:Fe(void 0),liveButton:Fe(void 0),time:Fe(void 0),episodes:Fe(void 0),volume:Fe(void 0),subtitles:Fe(void 0),settings:Fe(void 0),context:Fe(void 0),chromecast:Fe(void 0),pip:Fe(void 0),fullscreen:Fe(void 0),vkLogo:Fe(void 0),interactiveTimeIndicator:Fe(void 0),timeline:Fe(void 0),additionalButtons:W.length?W.reduce(S=>[...S,Fe(void 0)],[]):[],disabledControls$:Ie},modals:{hotKeyMap:{show:Fe(!1),data:Fe({title:"",closeBtnText:"",groups:[]})}},isFullscreen:Y,rotateAlpha:_e,isAutoplay:Fe(!1),debugPanelVisible:Fe(!1),episodes:{panelOpened$:Fe(!1),openedByKeyboard$:Fe(!1)},contextMenu:{visible$:Fe(!1),btnRef$:Fe(void 0),openedByBtnKeyboard$:Fe(!1),openedByHotKey$:Fe(!1),lastActiveElem$:Fe(void 0),showContextMenuBtn$:Fe(!1),position$:Fe({top:0,left:0})},playerSize:ee,isMobile:So,mobileNotReportControlHidden$:To,mobileUnmuteButtonExpanded:Fe(!1),mobileUnmuteButtonVisible:Fe(!1),icon3DVideoVisible:Fe(!1),settingsMenuVisible:Fe(!1),settingsMenuOpenedByKeyboard:Fe(!1),scrubbingInProgress:ln,is3DVideo:Fe(!1),isPictureInPictureActive$:Tt,pictureInPictureType$:Mn(Ze),currentGridType$:eo,additionalButtons$:Dr,additionalSettingsMenuItems$:Nr,additionalContextMenuItems$:Yn,interactiveHideMobileControls:Fe(!1),overlayContainer$:Fe(void 0),startedByKeyboard$:Fe(!1)},ads:{position:Fe(0),duration:Fe(0),playbackState:Fe("inactive"),canSkip:Fe(!1),secondsToWatchBeforeSkip:Fe(0),postrollPassed:Fe(!1)},webApi:{pictureInPictureApi:se,annotationsApi:qe},actions:{internal:{preload:hn,firstStart:S=>Mo(S,!1),pause:()=>io(!1),togglePlay:on,toggleMuted:gn,toggleSettingsMenu:zi,openSettingsMenu:Ci,closeSettingsMenu:Bi,setVolume:Wi,setVideoStream:mn,setAudioStream:Ai,setQuality:bn,setTrafficSavingEnabled:S=>vn(S),setPlaybackRate:yn,incrementPlaybackRate:Ki,decrementPlaybackRate:Di,setSubtitle:pi,toggleSubtitle:Un,togglePictureInPicture:rl,startScrubbing:ie,progressScrubbing:vt,completeScrubbing:wo,toggleChromecast:Eo,switchToActiveLive:Zo,switchFromAdsToVideo:Jo,switchFromVideoToAds:$o,skipAd:Xo,setLiveWaitingStart:er,setLiveWaitingRecover:tr,setLiveWaitingRecord:x,getDebugTextData:Bt,getTraceTextData:kn,getDebugPanelData:Dn,getVideoElement:Po,seekTime:(S,Q,Se)=>ji(S,Q,Se),clearDelayedBufferingCheckTimeout:fi,seekEpisodeStartTime:zn,seekToPercent:xt,getNextEpisode:nr,seekToNextEpisode:Os,getPrevEpisode:Fr,seekToPrevEpisode:nl,startLogging:oi,stopLogging:st,startCameraManualRotation:yt,stopCameraManualRotation:ei,moveCameraFocusPX:pe,holdCamera:Lt,releaseCamera:Vt,getVideoEpisodes:no,getPreviewThumbsData:ol,downloadVideo:_n,addLanguage:$s,setLanguage:Je,nextMovie:dt,videoRotate:qr,correctSeekTimeToInteractive:mo,replayInteractive:k,setLooped:Tn,reportProblem:Pn},external:{firstStart:S=>Mo(S,!0),play:()=>ir(!0),pause:()=>io(!0),seekTime:S=>Wn(S),seekEpisodeStartTime:S=>Rn(S),setPlaybackRate:S=>jn(S),setAutoQualityLimits:S=>Kn(S),setMuted:S=>Ut(S,!0),setVolume:S=>Wi(S,S,!0),returnFocusToEpisodes:Hr,updateAdditionalSettingsItem:Yo,addAdditionalSettingsItem:Or,removeAdditionalSettingsItem:fo,updateAdditionalContextItem:to,addAdditionalContextItem:Io,removeAdditionalContextItem:Qo}},callbacks:s,setUiCallbacks:S=>{ze={...S}},getAdmanWrapper:()=>ce,getLogger:()=>K,destroy:ll};return kt};var bs=(i,e,t,n)=>{if(!i)return;let o=["tooltipPointerOffsetX","disabledControls$","additionalButtons"],l=["interactiveTimeIndicator"],r=i.getBoundingClientRect();for(let[a,s]of Object.entries(e))if(!["tooltipPointerOffsetX","disabledControls$","additionalButtons"].includes(a)){let u=t[a]?.getBoundingClientRect(),f=(n||l.includes(a))&&!!u&&!!(u.right-u.left);s.set({positionStartX:0,positionEndX:0,left:f?Math.round(u.left-r.left):0,right:f?Math.round(u.right-r.left):0,top:f?Math.round(u.top-r.top):0,bottom:f?Math.round(u.bottom-r.top):0,isDisplayed:f})}};var vs=async(i,e,t)=>{await On(),e&&t&&(t.focus(),i.set(!1))};function z3(i){let e,t,n,o=i[2].default,l=Ee(o,i,i[1],null),r=[{xmlns:"http://www.w3.org/2000/svg"},{width:"24"},{height:"24"},{fill:"none"},{"aria-hidden":"true"},{"data-testid":"dots-icon"},{role:"img"},i[0]],a={};for(let s=0;s<r.length;s+=1)a=ne(a,r[s]);return{c(){e=V("svg"),l&&l.c(),t=V("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"),ye(e,a)},m(s,u){v(s,e,u),l&&l.m(e,null),_(e,t),n=!0},p(s,[u]){l&&l.p&&(!n||u&2)&&Ae(l,o,s,s[1],n?Me(o,s[1],u,null):Le(s[1]),null),ye(e,a=Be(r,[{xmlns:"http://www.w3.org/2000/svg"},{width:"24"},{height:"24"},{fill:"none"},{"aria-hidden":"true"},{"data-testid":"dots-icon"},{role:"img"},u&1&&s[0]]))},i(s){n||(d(l,s),n=!0)},o(s){m(l,s),n=!1},d(s){s&&b(e),l&&l.d(s)}}}function W3(i,e,t){let{$$slots:n={},$$scope:o}=e;return i.$$set=l=>{t(0,e=ne(ne({},e),ve(l))),"$$scope"in l&&t(1,o=l.$$scope)},e=ve(e),[e,o,n]}var pc=class extends B{constructor(e){super(),D(this,e,W3,z3,R,{})}},Zm=pc;function K3(i){let e,t;return e=new Zm({}),{c(){A(e.$$.fragment)},m(n,o){E(e,n,o),t=!0},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){m(e.$$.fragment,n),t=!1},d(n){M(e,n)}}}function j3(i){let e,t,n;function o(r){i[8](r)}let l={className:i[3]?"opened":"",testId:"btn-context-menu",disabled:i[0],ariaLabel:i[1],click:i[5],focus:i[6],blur:i[7],ariaExpanded:i[3],$$slots:{default:[K3]},$$scope:{ctx:i}};return i[2]!==void 0&&(l.ref=i[2]),e=new gt({props:l}),be.push(()=>Oe(e,"ref",o)),{c(){A(e.$$.fragment)},m(r,a){E(e,r,a),n=!0},p(r,[a]){let s={};a&8&&(s.className=r[3]?"opened":""),a&1&&(s.disabled=r[0]),a&2&&(s.ariaLabel=r[1]),a&8&&(s.ariaExpanded=r[3]),a&16384&&(s.$$scope={dirty:a,ctx:r}),!t&&a&4&&(t=!0,s.ref=r[2],Ne(()=>t=!1)),e.$set(s)},i(r){n||(d(e.$$.fragment,r),n=!0)},o(r){m(e.$$.fragment,r),n=!1},d(r){M(e,r)}}}function G3(i,e,t){let n,{disabled:o=!1}=e,{ariaLabel:l=""}=e,r=ot(),a=r.ui.contextMenu.visible$;O(i,a,F=>t(3,n=F));let s=r.ui.contextMenu.openedByBtnKeyboard$,u=r.ui.contextMenu.showContextMenuBtn$,f=r.ui.contextMenu.position$,p=r.ui.contextMenu.btnRef$,g,y=F=>{let T=gr(F),k=Pd(g);f.set(k),s.set(T),a.set(!n)},h=()=>{u.set(!0)},C=()=>{u.set(!1)};function w(F){g=F,t(2,g)}return i.$$set=F=>{"disabled"in F&&t(0,o=F.disabled),"ariaLabel"in F&&t(1,l=F.ariaLabel)},i.$$.update=()=>{i.$$.dirty&4&&g&&p.set(g)},[o,l,g,n,a,y,h,C,w]}var _c=class extends B{constructor(e){super(),D(this,e,G3,j3,R,{disabled:0,ariaLabel:1})}},Xm=_c;function x3(i){Ce(i,"svelte-17imlp9",".interactive-episode-icon-animated.svelte-17imlp9{position:absolute;top:16px;right:16px;width:32px;height:32px;transition:0.3s;opacity:1}.invisible.svelte-17imlp9{opacity:0;visibility:hidden}.fullscreen.svelte-17imlp9:not(.mobile){width:40px;top:19px;right:23px;height:40px}.mobile.svelte-17imlp9{width:28px;height:28px;top:12px;right:14px}.fullscreen.mobile.svelte-17imlp9{width:32px;height:32px}@media screen and (orientation: portrait){.interactive-episode-icon-animated.mobile.fullscreen.svelte-17imlp9{top:40px;right:16px}}@keyframes svelte-17imlp9-pulse{0%{transform:scale(1);border-width:1px;opacity:0}10%{opacity:1}50%{transform:scale(1.5);border-width:1px;opacity:0.5}100%{transform:scale(1.5);border-width:0.5px;opacity:0}}.pulse.svelte-17imlp9{display:block;content:'';border:1px solid #fff;position:absolute;top:0;left:0;right:0;bottom:0;border-radius:100%;transform:scale(1.8);animation:1s svelte-17imlp9-pulse infinite;transition:0.3s;pointer-events:none}.pulse.paused.svelte-17imlp9{animation-play-state:paused}.interactive-episode-icon-animated svg{width:100%;height:100%}.ref-block.svelte-17imlp9{position:absolute;top:0;width:100%;height:100%;visibility:hidden}.hidden.svelte-17imlp9{display:none}")}function Y3(i){let e,t;return e=new Zl({props:{completed:!0}}),{c(){A(e.$$.fragment)},m(n,o){E(e,n,o),t=!0},p:he,i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){m(e.$$.fragment,n),t=!1},d(n){M(e,n)}}}function Q3(i){let e,t,n,o,l,r,a,s,u,f;function p(y){i[22](y)}let g={tooltipContent:U("tooltip_interactive_interaction_time_indicator"),tooltipActive:i[5],initialTranslateYPx:72,tooltipPlacement:"bottom",onTooltipVisibilityChange:i[13],$$slots:{default:[Y3]},$$scope:{ctx:i}};return i[0]!==void 0&&(g.ref=i[0]),t=new Mt({props:g}),be.push(()=>Oe(t,"ref",p)),t.$on("click",i[14]),{c(){e=I("div"),A(t.$$.fragment),o=H(),l=I("div"),r=H(),a=I("div"),c(l,"class","ref-block svelte-17imlp9"),j(l,"hidden",i[1]),c(a,"class","pulse svelte-17imlp9"),j(a,"paused",i[4]),c(e,"class","interactive-episode-icon-animated svelte-17imlp9"),j(e,"mobile",i[2]),j(e,"fullscreen",i[6]),j(e,"invisible",i[1])},m(y,h){v(y,e,h),E(t,e,null),_(e,o),_(e,l),i[23](l),_(e,r),_(e,a),i[24](a),s=!0,u||(f=[Te(e,"mousemove",_t(i[21])),Te(e,"mouseleave",i[15])],u=!0)},p(y,h){let C={};h[0]&32&&(C.tooltipActive=y[5]),h[1]&1&&(C.$$scope={dirty:h,ctx:y}),!n&&h[0]&1&&(n=!0,C.ref=y[0],Ne(()=>n=!1)),t.$set(C),(!s||h[0]&2)&&j(l,"hidden",y[1]),(!s||h[0]&16)&&j(a,"paused",y[4]),(!s||h[0]&4)&&j(e,"mobile",y[2]),(!s||h[0]&64)&&j(e,"fullscreen",y[6]),(!s||h[0]&2)&&j(e,"invisible",y[1])},i(y){s||(d(t.$$.fragment,y),s=!0)},o(y){m(t.$$.fragment,y),s=!1},d(y){y&&b(e),M(t),i[23](null),i[24](null),u=!1,at(f)}}}function Z3(i,e,t){let n,o,l,r,a,s,{ref:u=void 0}=e,f,p=ot(),g=An(),{interactiveControlsOpacity$:y}=g;O(i,y,ce=>t(18,o=ce));let h=p.ui.isMobile;O(i,h,ce=>t(2,a=ce));let C=p.ui.isFullscreen;O(i,C,ce=>t(6,s=ce));let w=p.state.isInteractiveTime$;O(i,w,ce=>t(19,l=ce));let F=g.showInteractiveTimeIndicatorTooltip$;O(i,F,ce=>t(17,n=ce));let T=p.ui.controlsVisible;O(i,T,ce=>t(20,r=ce));let k=p.callbacks?.onInteractiveTimeIndicatorClick,P,G,W,z=()=>{t(4,W=!0)},le=()=>{de(),f?.addEventListener("animationiteration",z,{once:!0})},de=()=>{t(4,W=!1),f?.removeEventListener("animationiteration",z)},L=ce=>{F.set(ce)},te,re=()=>{G||(F.set(!0),k?.())};Nn(()=>{F.clearTimeout(),de()});let X=()=>{F.set(!1)};function Pe(ce){Cn.call(this,i,ce)}function q(ce){u=ce,t(0,u)}function N(ce){be[ce?"unshift":"push"](()=>{u=ce,t(0,u)})}function K(ce){be[ce?"unshift":"push"](()=>{f=ce,t(3,f)})}return i.$$set=ce=>{"ref"in ce&&t(0,u=ce.ref)},i.$$.update=()=>{i.$$.dirty[0]&1048580&&t(16,P=!a&&r),i.$$.dirty[0]&851968&&t(1,G=!l||!!o||P),i.$$.dirty[0]&2&&t(4,W=G),i.$$.dirty[0]&131074&&t(5,te=n&&!G),i.$$.dirty[0]&131072&&(n?le():de())},[u,G,a,f,W,te,s,y,h,C,w,F,T,L,re,X,P,n,o,l,r,Pe,q,N,K]}var gc=class extends B{constructor(e){super(),D(this,e,Z3,Q3,R,{ref:0},x3,[-1,-1])}},ys=gc;function J3(i){Ce(i,"svelte-ips4nw",".wrapper-bottom.svelte-ips4nw.svelte-ips4nw{pointer-events:none;position:absolute;z-index:var(--controls-container-z-index);width:100%;bottom:0;left:0;height:var(--controls-gradient-height);background:var(--controls-gradient);transition:transform var(--controls-transition-duration) var(--controls-transition-fn);display:flex;flex-direction:column;justify-content:flex-end;box-sizing:border-box}.wrapper-bottom.svelte-ips4nw>.svelte-ips4nw{pointer-events:auto}.controls.svelte-ips4nw.svelte-ips4nw{width:100%;display:flex;align-items:center;justify-content:space-between;height:var(--controls-height);white-space:nowrap;font-size:13px;transition:transform var(--controls-transition-duration) var(--controls-transition-fn);will-change:transform;padding:0 8px 4px;box-sizing:border-box}.controls-left.svelte-ips4nw.svelte-ips4nw,.controls-right.svelte-ips4nw.svelte-ips4nw{display:flex;align-content:center}.controls-left.svelte-ips4nw.svelte-ips4nw{flex-grow:1;min-width:0;overflow:hidden}.controls-left.svelte-ips4nw > *:not(:first-child),.controls-right.svelte-ips4nw > *{margin-left:var(--controls-desktop-item-margin-left)}.controls-hidden.svelte-ips4nw.svelte-ips4nw{visibility:visible;transform:translateY(100%)}.wrapper-bottom.no-smooth.svelte-ips4nw.svelte-ips4nw{transition:none}.settings-menu.svelte-ips4nw.svelte-ips4nw{bottom:57px;right:18px;position:absolute;transition:opacity 0.2s, visibility 0.2s}")}function Jm(i,e,t){let n=i.slice();return n[210]=e[t].iconUrl,n[211]=e[t].ariaLabel,n[212]=e[t].testId,n[213]=e[t].onClick,n[214]=e[t].tooltip,n}function $m(i){let e,t,n;function o(r){i[174](r)}let l={disabled:!i[9],tooltipContent:U("tooltip_previous"),$$slots:{default:[$3]},$$scope:{ctx:i}};return i[23].prevButton!==void 0&&(l.ref=i[23].prevButton),e=new Mt({props:l}),be.push(()=>Oe(e,"ref",o)),{c(){A(e.$$.fragment)},m(r,a){E(e,r,a),n=!0},p(r,a){let s={};a[0]&512&&(s.disabled=!r[9]),a[0]&4608|a[7]&1&&(s.$$scope={dirty:a,ctx:r}),!t&&a[0]&8388608&&(t=!0,s.ref=r[23].prevButton,Ne(()=>t=!1)),e.$set(s)},i(r){n||(d(e.$$.fragment,r),n=!0)},o(r){m(e.$$.fragment,r),n=!1},d(r){M(e,r)}}}function $3(i){let e,t;return e=new Tr({props:{click:i[12],type:"prev",disabled:!i[9],isMobile:!1}}),{c(){A(e.$$.fragment)},m(n,o){E(e,n,o),t=!0},p(n,o){let l={};o[0]&4096&&(l.click=n[12]),o[0]&512&&(l.disabled=!n[9]),e.$set(l)},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){m(e.$$.fragment,n),t=!1},d(n){M(e,n)}}}function ep(i){let e,t,n;function o(r){i[175](r)}let l={disabled:i[74],tooltipContent:U("tooltip_restart"),$$slots:{default:[e5]},$$scope:{ctx:i}};return i[23].replayButton!==void 0&&(l.ref=i[23].replayButton),e=new Mt({props:l}),be.push(()=>Oe(e,"ref",o)),{c(){A(e.$$.fragment)},m(r,a){E(e,r,a),n=!0},p(r,a){let s={};a[2]&4096&&(s.disabled=r[74]),a[2]&4096|a[7]&1&&(s.$$scope={dirty:a,ctx:r}),!t&&a[0]&8388608&&(t=!0,s.ref=r[23].replayButton,Ne(()=>t=!1)),e.$set(s)},i(r){n||(d(e.$$.fragment,r),n=!0)},o(r){m(e.$$.fragment,r),n=!1},d(r){M(e,r)}}}function e5(i){let e,t;return e=new Xr({props:{click:i[128],disabled:i[74]}}),{c(){A(e.$$.fragment)},m(n,o){E(e,n,o),t=!0},p(n,o){let l={};o[2]&4096&&(l.disabled=n[74]),e.$set(l)},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){m(e.$$.fragment,n),t=!1},d(n){M(e,n)}}}function tp(i){let e,t,n;function o(r){i[177](r)}let l={tooltipContent:i[47],disabled:i[75],$$slots:{default:[t5]},$$scope:{ctx:i}};return i[23].playButton!==void 0&&(l.ref=i[23].playButton),e=new Mt({props:l}),be.push(()=>Oe(e,"ref",o)),{c(){A(e.$$.fragment)},m(r,a){E(e,r,a),n=!0},p(r,a){let s={};a[1]&65536&&(s.tooltipContent=r[47]),a[2]&8192&&(s.disabled=r[75]),a[0]&67108864|a[1]&8|a[2]&8192|a[7]&1&&(s.$$scope={dirty:a,ctx:r}),!t&&a[0]&8388608&&(t=!0,s.ref=r[23].playButton,Ne(()=>t=!1)),e.$set(s)},i(r){n||(d(e.$$.fragment,r),n=!0)},o(r){m(e.$$.fragment,r),n=!1},d(r){M(e,r)}}}function t5(i){let e,t,n;function o(r){i[176](r)}let l={isMobile:!1,isPlaying:i[34],click:i[85],disabled:i[75]};return i[26]!==void 0&&(l.ref=i[26]),e=new Zr({props:l}),be.push(()=>Oe(e,"ref",o)),{c(){A(e.$$.fragment)},m(r,a){E(e,r,a),n=!0},p(r,a){let s={};a[1]&8&&(s.isPlaying=r[34]),a[2]&8192&&(s.disabled=r[75]),!t&&a[0]&67108864&&(t=!0,s.ref=r[26],Ne(()=>t=!1)),e.$set(s)},i(r){n||(d(e.$$.fragment,r),n=!0)},o(r){m(e.$$.fragment,r),n=!1},d(r){M(e,r)}}}function ip(i){let e,t,n;function o(r){i[178](r)}let l={disabled:!i[8],tooltipContent:U("tooltip_next"),$$slots:{default:[i5]},$$scope:{ctx:i}};return i[23].nextButton!==void 0&&(l.ref=i[23].nextButton),e=new Mt({props:l}),be.push(()=>Oe(e,"ref",o)),{c(){A(e.$$.fragment)},m(r,a){E(e,r,a),n=!0},p(r,a){let s={};a[0]&256&&(s.disabled=!r[8]),a[0]&2304|a[7]&1&&(s.$$scope={dirty:a,ctx:r}),!t&&a[0]&8388608&&(t=!0,s.ref=r[23].nextButton,Ne(()=>t=!1)),e.$set(s)},i(r){n||(d(e.$$.fragment,r),n=!0)},o(r){m(e.$$.fragment,r),n=!1},d(r){M(e,r)}}}function i5(i){let e,t;return e=new Tr({props:{click:i[11],type:"next",disabled:!i[8],isMobile:!1}}),{c(){A(e.$$.fragment)},m(n,o){E(e,n,o),t=!0},p(n,o){let l={};o[0]&2048&&(l.click=n[11]),o[0]&256&&(l.disabled=!n[8]),e.$set(l)},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){m(e.$$.fragment,n),t=!1},d(n){M(e,n)}}}function n5(i){let e,t,n,o,l=i[121]&&o5(i),r=i[120]&&l5(i),a=i[119]&&a5(i);return{c(){l&&l.c(),e=H(),r&&r.c(),t=H(),a&&a.c(),n=it()},m(s,u){l&&l.m(s,u),v(s,e,u),r&&r.m(s,u),v(s,t,u),a&&a.m(s,u),v(s,n,u),o=!0},p(s,u){s[121]&&l.p(s,u),s[120]&&r.p(s,u),s[119]&&a.p(s,u)},i(s){o||(d(l),d(r),d(a),o=!0)},o(s){m(l),m(r),m(a),o=!1},d(s){s&&(b(e),b(t),b(n)),l&&l.d(s),r&&r.d(s),a&&a.d(s)}}}function o5(i){let e,t,n;function o(r){i[179](r)}let l={disabled:i[73],tooltipContent:U("tooltip_interactive_go_back"),disabledTooltipContent:U(i[124]),$$slots:{default:[r5]},$$scope:{ctx:i}};return i[23].playPrevChapterButton!==void 0&&(l.ref=i[23].playPrevChapterButton),e=new Mt({props:l}),be.push(()=>Oe(e,"ref",o)),{c(){A(e.$$.fragment)},m(r,a){E(e,r,a),n=!0},p(r,a){let s={};a[2]&2048&&(s.disabled=r[73]),a[0]&131072|a[2]&2048|a[7]&1&&(s.$$scope={dirty:a,ctx:r}),!t&&a[0]&8388608&&(t=!0,s.ref=r[23].playPrevChapterButton,Ne(()=>t=!1)),e.$set(s)},i(r){n||(d(e.$$.fragment,r),n=!0)},o(r){m(e.$$.fragment,r),n=!1},d(r){M(e,r)}}}function r5(i){let e,t;return e=new fs({props:{disabled:i[73],click:i[17]}}),{c(){A(e.$$.fragment)},m(n,o){E(e,n,o),t=!0},p(n,o){let l={};o[2]&2048&&(l.disabled=n[73]),o[0]&131072&&(l.click=n[17]),e.$set(l)},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){m(e.$$.fragment,n),t=!1},d(n){M(e,n)}}}function l5(i){let e,t,n;function o(r){i[180](r)}let l={disabled:i[76],tooltipContent:U("tooltip_interactive_seek"),disabledTooltipContent:U(i[78]),$$slots:{default:[s5]},$$scope:{ctx:i}};return i[23].seekToInteractiveButton!==void 0&&(l.ref=i[23].seekToInteractiveButton),e=new Mt({props:l}),be.push(()=>Oe(e,"ref",o)),{c(){A(e.$$.fragment)},m(r,a){E(e,r,a),n=!0},p(r,a){let s={};a[2]&16384&&(s.disabled=r[76]),a[2]&65536&&(s.disabledTooltipContent=U(r[78])),a[0]&32768|a[2]&16384|a[7]&1&&(s.$$scope={dirty:a,ctx:r}),!t&&a[0]&8388608&&(t=!0,s.ref=r[23].seekToInteractiveButton,Ne(()=>t=!1)),e.$set(s)},i(r){n||(d(e.$$.fragment,r),n=!0)},o(r){m(e.$$.fragment,r),n=!1},d(r){M(e,r)}}}function s5(i){let e,t;return e=new as({props:{disabled:i[76],click:i[15]}}),{c(){A(e.$$.fragment)},m(n,o){E(e,n,o),t=!0},p(n,o){let l={};o[2]&16384&&(l.disabled=n[76]),o[0]&32768&&(l.click=n[15]),e.$set(l)},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){m(e.$$.fragment,n),t=!1},d(n){M(e,n)}}}function a5(i){let e,t,n;function o(r){i[181](r)}let l={tooltipContent:i[48],disabled:i[77],$$slots:{default:[u5]},$$scope:{ctx:i}};return i[23].interactiveGraphButton!==void 0&&(l.ref=i[23].interactiveGraphButton),e=new Mt({props:l}),be.push(()=>Oe(e,"ref",o)),{c(){A(e.$$.fragment)},m(r,a){E(e,r,a),n=!0},p(r,a){let s={};a[1]&131072&&(s.tooltipContent=r[48]),a[2]&32768&&(s.disabled=r[77]),a[0]&65536|a[1]&1|a[2]&32768|a[7]&1&&(s.$$scope={dirty:a,ctx:r}),!t&&a[0]&8388608&&(t=!0,s.ref=r[23].interactiveGraphButton,Ne(()=>t=!1)),e.$set(s)},i(r){n||(d(e.$$.fragment,r),n=!0)},o(r){m(e.$$.fragment,r),n=!1},d(r){M(e,r)}}}function u5(i){let e,t;return e=new us({props:{click:i[16],graphIsOpened:i[31],disabled:i[77]}}),{c(){A(e.$$.fragment)},m(n,o){E(e,n,o),t=!0},p(n,o){let l={};o[0]&65536&&(l.click=n[16]),o[1]&1&&(l.graphIsOpened=n[31]),o[2]&32768&&(l.disabled=n[77]),e.$set(l)},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){m(e.$$.fragment,n),t=!1},d(n){M(e,n)}}}function np(i){let e,t,n;function o(r){i[182](r)}let l={tooltipContent:i[50],$$slots:{default:[c5]},$$scope:{ctx:i}};return i[23].liveButton!==void 0&&(l.ref=i[23].liveButton),e=new Mt({props:l}),be.push(()=>Oe(e,"ref",o)),{c(){A(e.$$.fragment)},m(r,a){E(e,r,a),n=!0},p(r,a){let s={};a[1]&524288&&(s.tooltipContent=r[50]),a[0]&2097152|a[1]&524288|a[7]&1&&(s.$$scope={dirty:a,ctx:r}),!t&&a[0]&8388608&&(t=!0,s.ref=r[23].liveButton,Ne(()=>t=!1)),e.$set(s)},i(r){n||(d(e.$$.fragment,r),n=!0)},o(r){m(e.$$.fragment,r),n=!1},d(r){M(e,r)}}}function c5(i){let e,t;return e=new ns({props:{isActiveLive:i[21],isMobile:!1,ariaLabel:i[50]}}),{c(){A(e.$$.fragment)},m(n,o){E(e,n,o),t=!0},p(n,o){let l={};o[0]&2097152&&(l.isActiveLive=n[21]),o[1]&524288&&(l.ariaLabel=n[50]),e.$set(l)},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){m(e.$$.fragment,n),t=!1},d(n){M(e,n)}}}function op(i){let e,t,n;function o(r){i[183](r)}let l={isMobile:!1,showDuration:i[55],position:i[4]?i[79]:i[80],duration:i[4]?i[81]:i[82]};return i[23].time!==void 0&&(l.ref=i[23].time),e=new Ql({props:l}),be.push(()=>Oe(e,"ref",o)),{c(){A(e.$$.fragment)},m(r,a){E(e,r,a),n=!0},p(r,a){let s={};a[1]&16777216&&(s.showDuration=r[55]),a[0]&16|a[2]&393216&&(s.position=r[4]?r[79]:r[80]),a[0]&16|a[2]&1572864&&(s.duration=r[4]?r[81]:r[82]),!t&&a[0]&8388608&&(t=!0,s.ref=r[23].time,Ne(()=>t=!1)),e.$set(s)},i(r){n||(d(e.$$.fragment,r),n=!0)},o(r){m(e.$$.fragment,r),n=!1},d(r){M(e,r)}}}function rp(i){let e,t;return e=new ss({props:{position:i[80],duration:i[82],timeCodes:i[101]}}),{c(){A(e.$$.fragment)},m(n,o){E(e,n,o),t=!0},p(n,o){let l={};o[2]&262144&&(l.position=n[80]),o[2]&1048576&&(l.duration=n[82]),e.$set(l)},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){m(e.$$.fragment,n),t=!1},d(n){M(e,n)}}}function f5(i){let e,t,n=i[20]&&rp(i);return{c(){n&&n.c(),e=it()},m(o,l){n&&n.m(o,l),v(o,e,l),t=!0},p(o,l){o[20]?n?(n.p(o,l),l[0]&1048576&&d(n,1)):(n=rp(o),n.c(),d(n,1),n.m(e.parentNode,e)):n&&(ae(),m(n,1,1,()=>{n=null}),ue())},i(o){t||(d(n),t=!0)},o(o){m(n),t=!1},d(o){o&&b(e),n&&n.d(o)}}}function d5(i){let e,t;return e=new ds({props:{iconUrl:i[210],ariaLabel:i[211]??i[214],testId:i[212],onClick:i[213]}}),{c(){A(e.$$.fragment)},m(n,o){E(e,n,o),t=!0},p(n,o){let l={};o[0]&268435456&&(l.iconUrl=n[210]),o[0]&268435456&&(l.ariaLabel=n[211]??n[214]),o[0]&268435456&&(l.testId=n[212]),o[0]&268435456&&(l.onClick=n[213]),e.$set(l)},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){m(e.$$.fragment,n),t=!1},d(n){M(e,n)}}}function lp(i){let e,t;return e=new Mt({props:{tooltipContent:i[214],width:40,$$slots:{default:[d5]},$$scope:{ctx:i}}}),{c(){A(e.$$.fragment)},m(n,o){E(e,n,o),t=!0},p(n,o){let l={};o[0]&268435456&&(l.tooltipContent=n[214]),o[0]&268435456|o[7]&1&&(l.$$scope={dirty:o,ctx:n}),e.$set(l)},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){m(e.$$.fragment,n),t=!1},d(n){M(e,n)}}}function sp(i){let e,t,n;function o(r){i[186](r)}let l={disabled:!i[6],tooltipContent:i[51],disabledTooltipContent:"",$$slots:{default:[m5]},$$scope:{ctx:i}};return i[23].vkLogo!==void 0&&(l.ref=i[23].vkLogo),e=new Mt({props:l}),be.push(()=>Oe(e,"ref",o)),{c(){A(e.$$.fragment)},m(r,a){E(e,r,a),n=!0},p(r,a){let s={};a[0]&64&&(s.disabled=!r[6]),a[1]&1048576&&(s.tooltipContent=r[51]),a[0]&192|a[7]&1&&(s.$$scope={dirty:a,ctx:r}),!t&&a[0]&8388608&&(t=!0,s.ref=r[23].vkLogo,Ne(()=>t=!1)),e.$set(s)},i(r){n||(d(e.$$.fragment,r),n=!0)},o(r){m(e.$$.fragment,r),n=!1},d(r){M(e,r)}}}function m5(i){let e,t;return e=new es({props:{click:i[86],targetUrl:i[7],logoClickable:i[6]}}),{c(){A(e.$$.fragment)},m(n,o){E(e,n,o),t=!0},p(n,o){let l={};o[0]&128&&(l.targetUrl=n[7]),o[0]&64&&(l.logoClickable=n[6]),e.$set(l)},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){m(e.$$.fragment,n),t=!1},d(n){M(e,n)}}}function p5(i){let e,t;return e=new gm({props:{click:i[127]}}),{c(){A(e.$$.fragment)},m(n,o){E(e,n,o),t=!0},p:he,i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){m(e.$$.fragment,n),t=!1},d(n){M(e,n)}}}function ap(i){let e,t,n;function o(r){i[188](r)}let l={tooltipContent:i[52],$$slots:{default:[_5]},$$scope:{ctx:i}};return i[23].subtitles!==void 0&&(l.ref=i[23].subtitles),e=new Mt({props:l}),be.push(()=>Oe(e,"ref",o)),{c(){A(e.$$.fragment)},m(r,a){E(e,r,a),n=!0},p(r,a){let s={};a[1]&2097152&&(s.tooltipContent=r[52]),a[0]&262144|a[7]&1&&(s.$$scope={dirty:a,ctx:r}),!t&&a[0]&8388608&&(t=!0,s.ref=r[23].subtitles,Ne(()=>t=!1)),e.$set(s)},i(r){n||(d(e.$$.fragment,r),n=!0)},o(r){m(e.$$.fragment,r),n=!1},d(r){M(e,r)}}}function _5(i){let e,t;return e=new im({props:{isSubtitlesEnabled:i[18],click:i[87]}}),{c(){A(e.$$.fragment)},m(n,o){E(e,n,o),t=!0},p(n,o){let l={};o[0]&262144&&(l.isSubtitlesEnabled=n[18]),e.$set(l)},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){m(e.$$.fragment,n),t=!1},d(n){M(e,n)}}}function up(i){let e,t,n,o;function l(a){i[189](a)}let r={supportLink:i[10],playerControlsHeight:i[46]?.clientHeight,returnFocus:i[14]};return i[24]!==void 0&&(r.ref=i[24]),t=new Yl({props:r}),be.push(()=>Oe(t,"ref",l)),{c(){e=I("div"),A(t.$$.fragment),c(e,"class","settings-menu svelte-ips4nw")},m(a,s){v(a,e,s),E(t,e,null),o=!0},p(a,s){let u={};s[0]&1024&&(u.supportLink=a[10]),s[1]&32768&&(u.playerControlsHeight=a[46]?.clientHeight),s[0]&16384&&(u.returnFocus=a[14]),!n&&s[0]&16777216&&(n=!0,u.ref=a[24],Ne(()=>n=!1)),t.$set(u)},i(a){o||(d(t.$$.fragment,a),o=!0)},o(a){m(t.$$.fragment,a),o=!1},d(a){a&&b(e),M(t)}}}function cp(i){let e,t,n;function o(r){i[191](r)}let l={tooltipContent:i[27]?void 0:U("tooltip_settings_off"),$$slots:{default:[g5]},$$scope:{ctx:i}};return i[23].settings!==void 0&&(l.ref=i[23].settings),e=new Mt({props:l}),be.push(()=>Oe(e,"ref",o)),{c(){A(e.$$.fragment)},m(r,a){E(e,r,a),n=!0},p(r,a){let s={};a[0]&134217728&&(s.tooltipContent=r[27]?void 0:U("tooltip_settings_off")),a[0]&33554432|a[7]&1&&(s.$$scope={dirty:a,ctx:r}),!t&&a[0]&8388608&&(t=!0,s.ref=r[23].settings,Ne(()=>t=!1)),e.$set(s)},i(r){n||(d(e.$$.fragment,r),n=!0)},o(r){m(e.$$.fragment,r),n=!1},d(r){M(e,r)}}}function g5(i){let e,t,n;function o(r){i[190](r)}let l={};return i[25]!==void 0&&(l.ref=i[25]),e=new Qr({props:l}),be.push(()=>Oe(e,"ref",o)),{c(){A(e.$$.fragment)},m(r,a){E(e,r,a),n=!0},p(r,a){let s={};!t&&a[0]&33554432&&(t=!0,s.ref=r[25],Ne(()=>t=!1)),e.$set(s)},i(r){n||(d(e.$$.fragment,r),n=!0)},o(r){m(e.$$.fragment,r),n=!1},d(r){M(e,r)}}}function h5(i){let e,t,n;function o(r){i[192](r)}let l={className:i[41]?"":"out-of-view",tooltipContent:i[49],$$slots:{default:[b5]},$$scope:{ctx:i}};return i[23].context!==void 0&&(l.ref=i[23].context),e=new Mt({props:l}),be.push(()=>Oe(e,"ref",o)),{c(){A(e.$$.fragment)},m(r,a){E(e,r,a),n=!0},p(r,a){let s={};a[1]&1024&&(s.className=r[41]?"":"out-of-view"),a[1]&262144&&(s.tooltipContent=r[49]),a[1]&262144|a[7]&1&&(s.$$scope={dirty:a,ctx:r}),!t&&a[0]&8388608&&(t=!0,s.ref=r[23].context,Ne(()=>t=!1)),e.$set(s)},i(r){n||(d(e.$$.fragment,r),n=!0)},o(r){m(e.$$.fragment,r),n=!1},d(r){M(e,r)}}}function b5(i){let e,t;return e=new Xm({props:{ariaLabel:i[49]}}),{c(){A(e.$$.fragment)},m(n,o){E(e,n,o),t=!0},p(n,o){let l={};o[1]&262144&&(l.ariaLabel=n[49]),e.$set(l)},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){m(e.$$.fragment,n),t=!1},d(n){M(e,n)}}}function fp(i){let e,t,n;function o(r){i[193](r)}let l={tooltipContent:i[53],$$slots:{default:[v5]},$$scope:{ctx:i}};return i[23].fullscreen!==void 0&&(l.ref=i[23].fullscreen),e=new Mt({props:l}),be.push(()=>Oe(e,"ref",o)),{c(){A(e.$$.fragment)},m(r,a){E(e,r,a),n=!0},p(r,a){let s={};a[1]&4194304&&(s.tooltipContent=r[53]),a[0]&1073750016|a[7]&1&&(s.$$scope={dirty:a,ctx:r}),!t&&a[0]&8388608&&(t=!0,s.ref=r[23].fullscreen,Ne(()=>t=!1)),e.$set(s)},i(r){n||(d(e.$$.fragment,r),n=!0)},o(r){m(e.$$.fragment,r),n=!1},d(r){M(e,r)}}}function v5(i){let e,t;return e=new Jl({props:{click:i[13],isFullscreen:i[30]}}),{c(){A(e.$$.fragment)},m(n,o){E(e,n,o),t=!0},p(n,o){let l={};o[0]&8192&&(l.click=n[13]),o[0]&1073741824&&(l.isFullscreen=n[30]),e.$set(l)},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){m(e.$$.fragment,n),t=!1},d(n){M(e,n)}}}function dp(i){let e,t,n;function o(r){i[194](r)}let l={tooltipContent:i[54],$$slots:{default:[y5]},$$scope:{ctx:i}};return i[23].chromecast!==void 0&&(l.ref=i[23].chromecast),e=new Mt({props:l}),be.push(()=>Oe(e,"ref",o)),{c(){A(e.$$.fragment)},m(r,a){E(e,r,a),n=!0},p(r,a){let s={};a[1]&8388608&&(s.tooltipContent=r[54]),a[0]&536870912|a[7]&1&&(s.$$scope={dirty:a,ctx:r}),!t&&a[0]&8388608&&(t=!0,s.ref=r[23].chromecast,Ne(()=>t=!1)),e.$set(s)},i(r){n||(d(e.$$.fragment,r),n=!0)},o(r){m(e.$$.fragment,r),n=!1},d(r){M(e,r)}}}function y5(i){let e,t;return e=new ts({props:{isMobile:!1,state:i[29],click:i[126]}}),{c(){A(e.$$.fragment)},m(n,o){E(e,n,o),t=!0},p(n,o){let l={};o[0]&536870912&&(l.state=n[29]),e.$set(l)},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){m(e.$$.fragment,n),t=!1},d(n){M(e,n)}}}function k5(i){let e,t,n;function o(r){i[197](r)}let l={};return i[23].interactiveTimeIndicator!==void 0&&(l.ref=i[23].interactiveTimeIndicator),e=new ys({props:l}),be.push(()=>Oe(e,"ref",o)),{c(){A(e.$$.fragment)},m(r,a){E(e,r,a),n=!0},p(r,a){let s={};!t&&a[0]&8388608&&(t=!0,s.ref=r[23].interactiveTimeIndicator,Ne(()=>t=!1)),e.$set(s)},i(r){n||(d(e.$$.fragment,r),n=!0)},o(r){m(e.$$.fragment,r),n=!1},d(r){M(e,r)}}}function w5(i){let e,t,n,o,l,r,a,s,u,f,p,g,y,h,C,w,F,T,k,P,G,W,z,le,de,L,te,re,X,Pe,q,N,K;function ce(me){i[173](me)}let oe={isHidden:!i[45],isAds:i[4],canRewindLive:i[5],isRewindableLive:i[32]};i[23].timeline!==void 0&&(oe.ref=i[23].timeline),t=new ls({props:oe}),be.push(()=>Oe(t,"ref",ce));let se=i[38]&&$m(i),qe=i[35]&&ep(i),Ve=i[36]&&tp(i),ke=i[37]&&ip(i),Re=i[117]&&n5(i),ze=!i[4]&&i[33]&&np(i),je=i[19]&&op(i);function Y(me){i[184](me)}let fe={className:"w-max",disabled:!i[20],tooltipContent:U("tooltip_episodes"),$$slots:{default:[f5]},$$scope:{ctx:i}};i[23].episodes!==void 0&&(fe.ref=i[23].episodes),h=new Mt({props:fe}),be.push(()=>Oe(h,"ref",Y));let Ze=ht(i[28]),_e=[];for(let me=0;me<Ze.length;me+=1)_e[me]=lp(Jm(i,Ze,me));let Ue=me=>m(_e[me],1,1,()=>{_e[me]=null}),tt=i[43]&&!i[4]&&sp(i);function rt(me){i[187](me)}let Je={$$slots:{default:[p5]},$$scope:{ctx:i}};i[23].volume!==void 0&&(Je.ref=i[23].volume),G=new Mt({props:Je}),be.push(()=>Oe(G,"ref",rt));let Ye=i[40]&&ap(i),We=!i[83]&&!i[4]&&up(i),J=i[42]&&!i[4]&&cp(i),He=i[84].features.contextMenuButton&&h5(i),we=i[44]&&fp(i),Ie=i[39]&&dp(i),Ke=i[122]&&k5(i);return{c(){e=I("div"),A(t.$$.fragment),o=H(),l=I("div"),r=I("div"),se&&se.c(),a=H(),qe&&qe.c(),s=H(),Ve&&Ve.c(),u=H(),ke&&ke.c(),f=H(),Re&&Re.c(),p=H(),ze&&ze.c(),g=H(),je&&je.c(),y=H(),A(h.$$.fragment),F=H(),T=I("div");for(let me=0;me<_e.length;me+=1)_e[me].c();k=H(),tt&&tt.c(),P=H(),A(G.$$.fragment),z=H(),Ye&&Ye.c(),le=H(),We&&We.c(),de=H(),J&&J.c(),L=H(),He&&He.c(),te=H(),we&&we.c(),re=H(),Ie&&Ie.c(),X=H(),Ke&&Ke.c(),Pe=it(),c(r,"class","controls-left svelte-ips4nw"),c(T,"class","controls-right svelte-ips4nw"),c(l,"class","controls svelte-ips4nw"),c(e,"class","wrapper-bottom svelte-ips4nw"),j(e,"hidden",i[1]),j(e,"controls-hidden",!i[3]),j(e,"no-smooth",i[2])},m(me,$){v(me,e,$),E(t,e,null),_(e,o),_(e,l),_(l,r),se&&se.m(r,null),_(r,a),qe&&qe.m(r,null),_(r,s),Ve&&Ve.m(r,null),_(r,u),ke&&ke.m(r,null),_(r,f),Re&&Re.m(r,null),_(r,p),ze&&ze.m(r,null),_(r,g),je&&je.m(r,null),_(r,y),E(h,r,null),_(l,F),_(l,T);for(let dt=0;dt<_e.length;dt+=1)_e[dt]&&_e[dt].m(T,null);_(T,k),tt&&tt.m(T,null),_(T,P),E(G,T,null),_(T,z),Ye&&Ye.m(T,null),_(T,le),We&&We.m(T,null),_(T,de),J&&J.m(T,null),_(T,L),He&&He.m(T,null),_(T,te),we&&we.m(T,null),_(T,re),Ie&&Ie.m(T,null),i[195](l),i[196](e),v(me,X,$),Ke&&Ke.m(me,$),v(me,Pe,$),q=!0,N||(K=[or(w=kr.call(null,r)),Te(r,"fd:resize",i[185])],N=!0)},p(me,$){let dt={};$[1]&16384&&(dt.isHidden=!me[45]),$[0]&16&&(dt.isAds=me[4]),$[0]&32&&(dt.canRewindLive=me[5]),$[1]&2&&(dt.isRewindableLive=me[32]),!n&&$[0]&8388608&&(n=!0,dt.ref=me[23].timeline,Ne(()=>n=!1)),t.$set(dt),me[38]?se?(se.p(me,$),$[1]&128&&d(se,1)):(se=$m(me),se.c(),d(se,1),se.m(r,a)):se&&(ae(),m(se,1,1,()=>{se=null}),ue()),me[35]?qe?(qe.p(me,$),$[1]&16&&d(qe,1)):(qe=ep(me),qe.c(),d(qe,1),qe.m(r,s)):qe&&(ae(),m(qe,1,1,()=>{qe=null}),ue()),me[36]?Ve?(Ve.p(me,$),$[1]&32&&d(Ve,1)):(Ve=tp(me),Ve.c(),d(Ve,1),Ve.m(r,u)):Ve&&(ae(),m(Ve,1,1,()=>{Ve=null}),ue()),me[37]?ke?(ke.p(me,$),$[1]&64&&d(ke,1)):(ke=ip(me),ke.c(),d(ke,1),ke.m(r,f)):ke&&(ae(),m(ke,1,1,()=>{ke=null}),ue()),me[117]&&Re.p(me,$),!me[4]&&me[33]?ze?(ze.p(me,$),$[0]&16|$[1]&4&&d(ze,1)):(ze=np(me),ze.c(),d(ze,1),ze.m(r,g)):ze&&(ae(),m(ze,1,1,()=>{ze=null}),ue()),me[19]?je?(je.p(me,$),$[0]&524288&&d(je,1)):(je=op(me),je.c(),d(je,1),je.m(r,y)):je&&(ae(),m(je,1,1,()=>{je=null}),ue());let mt={};if($[0]&1048576&&(mt.disabled=!me[20]),$[0]&1048576|$[2]&1310720|$[7]&1&&(mt.$$scope={dirty:$,ctx:me}),!C&&$[0]&8388608&&(C=!0,mt.ref=me[23].episodes,Ne(()=>C=!1)),h.$set(mt),$[0]&268435456){Ze=ht(me[28]);let ut;for(ut=0;ut<Ze.length;ut+=1){let St=Jm(me,Ze,ut);_e[ut]?(_e[ut].p(St,$),d(_e[ut],1)):(_e[ut]=lp(St),_e[ut].c(),d(_e[ut],1),_e[ut].m(T,k))}for(ae(),ut=Ze.length;ut<_e.length;ut+=1)Ue(ut);ue()}me[43]&&!me[4]?tt?(tt.p(me,$),$[0]&16|$[1]&4096&&d(tt,1)):(tt=sp(me),tt.c(),d(tt,1),tt.m(T,P)):tt&&(ae(),m(tt,1,1,()=>{tt=null}),ue());let $e={};$[7]&1&&($e.$$scope={dirty:$,ctx:me}),!W&&$[0]&8388608&&(W=!0,$e.ref=me[23].volume,Ne(()=>W=!1)),G.$set($e),me[40]?Ye?(Ye.p(me,$),$[1]&512&&d(Ye,1)):(Ye=ap(me),Ye.c(),d(Ye,1),Ye.m(T,le)):Ye&&(ae(),m(Ye,1,1,()=>{Ye=null}),ue()),!me[83]&&!me[4]?We?(We.p(me,$),$[0]&16|$[2]&2097152&&d(We,1)):(We=up(me),We.c(),d(We,1),We.m(T,de)):We&&(ae(),m(We,1,1,()=>{We=null}),ue()),me[42]&&!me[4]?J?(J.p(me,$),$[0]&16|$[1]&2048&&d(J,1)):(J=cp(me),J.c(),d(J,1),J.m(T,L)):J&&(ae(),m(J,1,1,()=>{J=null}),ue()),me[84].features.contextMenuButton&&He.p(me,$),me[44]?we?(we.p(me,$),$[1]&8192&&d(we,1)):(we=fp(me),we.c(),d(we,1),we.m(T,re)):we&&(ae(),m(we,1,1,()=>{we=null}),ue()),me[39]?Ie?(Ie.p(me,$),$[1]&256&&d(Ie,1)):(Ie=dp(me),Ie.c(),d(Ie,1),Ie.m(T,null)):Ie&&(ae(),m(Ie,1,1,()=>{Ie=null}),ue()),(!q||$[0]&2)&&j(e,"hidden",me[1]),(!q||$[0]&8)&&j(e,"controls-hidden",!me[3]),(!q||$[0]&4)&&j(e,"no-smooth",me[2]),me[122]&&Ke.p(me,$)},i(me){if(!q){d(t.$$.fragment,me),d(se),d(qe),d(Ve),d(ke),d(Re),d(ze),d(je),d(h.$$.fragment,me);for(let $=0;$<Ze.length;$+=1)d(_e[$]);d(tt),d(G.$$.fragment,me),d(Ye),d(We),d(J),d(He),d(we),d(Ie),d(Ke),q=!0}},o(me){m(t.$$.fragment,me),m(se),m(qe),m(Ve),m(ke),m(Re),m(ze),m(je),m(h.$$.fragment,me),_e=_e.filter(Boolean);for(let $=0;$<_e.length;$+=1)m(_e[$]);m(tt),m(G.$$.fragment,me),m(Ye),m(We),m(J),m(He),m(we),m(Ie),m(Ke),q=!1},d(me){me&&(b(e),b(X),b(Pe)),M(t),se&&se.d(),qe&&qe.d(),Ve&&Ve.d(),ke&&ke.d(),Re&&Re.d(),ze&&ze.d(),je&&je.d(),M(h),Jt(_e,me),tt&&tt.d(),M(G),Ye&&Ye.d(),We&&We.d(),J&&J.d(),He&&He.d(),we&&we.d(),Ie&&Ie.d(),i[195](null),i[196](null),Ke&&Ke.d(me),N=!1,at(K)}}}function C5(i,e,t){let n,o,l,r,a,s,u,f,p,g,y,h,C,w,F,T,k,P,G,W,z,le,de,L,te,re,X,Pe,q,N,K,ce,oe=he,se=()=>(oe(),oe=Wt(de,Z=>t(144,ce=Z)),de),qe,Ve=he,ke=()=>(Ve(),Ve=Wt(le,Z=>t(145,qe=Z)),le),Re,ze=he,je=()=>(ze(),ze=Wt(z,Z=>t(146,Re=Z)),z),Y,fe=he,Ze=()=>(fe(),fe=Wt(W,Z=>t(147,Y=Z)),W),_e,Ue=he,tt=()=>(Ue(),Ue=Wt(G,Z=>t(148,_e=Z)),G),rt,Je=he,Ye=()=>(Je(),Je=Wt(P,Z=>t(149,rt=Z)),P),We,J=he,He=()=>(J(),J=Wt(k,Z=>t(150,We=Z)),k),we,Ie=he,Ke=()=>(Ie(),Ie=Wt(T,Z=>t(151,we=Z)),T),me,$=he,dt=()=>($(),$=Wt(F,Z=>t(152,me=Z)),F),mt,$e=he,ut=()=>($e(),$e=Wt(w,Z=>t(153,mt=Z)),w),St,et=he,ni=()=>(et(),et=Wt(C,Z=>t(154,St=Z)),C),It,qt=he,oi=()=>(qt(),qt=Wt(h,Z=>t(155,It=Z)),h),st,yt=he,ei=()=>(yt(),yt=Wt(y,Z=>t(156,st=Z)),y),pe,Lt=he,Vt=()=>(Lt(),Lt=Wt(g,Z=>t(157,pe=Z)),g),Pt,Tt=he,Ht=()=>(Tt(),Tt=Wt(p,Z=>t(158,Pt=Z)),p),Rt,ai=he,_i=()=>(ai(),ai=Wt(f,Z=>t(159,Rt=Z)),f),Qt,Ot=he,ri=()=>(Ot(),Ot=Wt(u,Z=>t(160,Qt=Z)),u),Ft,Pi,wt,Ei,gi,ui,ci,ge,pt,Zt,un,Fi,xi,Kt,qi,Yi,fi,Xt,cn,fn,hi,Qi,bi;i.$$.on_destroy.push(()=>oe()),i.$$.on_destroy.push(()=>Ve()),i.$$.on_destroy.push(()=>ze()),i.$$.on_destroy.push(()=>fe()),i.$$.on_destroy.push(()=>Ue()),i.$$.on_destroy.push(()=>Je()),i.$$.on_destroy.push(()=>J()),i.$$.on_destroy.push(()=>Ie()),i.$$.on_destroy.push(()=>$()),i.$$.on_destroy.push(()=>$e()),i.$$.on_destroy.push(()=>et()),i.$$.on_destroy.push(()=>qt()),i.$$.on_destroy.push(()=>yt()),i.$$.on_destroy.push(()=>Lt()),i.$$.on_destroy.push(()=>Tt()),i.$$.on_destroy.push(()=>ai()),i.$$.on_destroy.push(()=>Ot());let{bottomHidden:Zi}=e,{bottomNoSmooth:dn}=e,{showControls:Mi}=e,{controlsElementRef:Hi=void 0}=e,{isAds:jt=!1}=e,{canRewindLive:mn}=e,{logoClickable:Ai}=e,{logoHidden:Ui}=e,{logoTargetUrl:Xi=""}=e,{showNextPrevButtons:Li}=e,{nextButtonActive:di}=e,{prevButtonActive:Vi}=e,{isOneVideoPlaylist:Ji=!1}=e,{supportLink:$i}=e,{customFullscreenSupported:en=!0}=e,{playNextVideo:Gt}=e,{playPrevVideo:vi}=e,{repeatPlaylist:tn}=e,{toggleFullscreen:yi}=e,{returnFocus:At}=e,{seekToInteractive:mi}=e,{toggleGraph:ki}=e,{playPrevChapter:Ri}=e,lt=ot(),wi=An(),ti=Nt(),Qe=lt.actions.internal.toggleMuted,pn=lt.actions.internal.togglePlay,nn=lt.actions.internal.pause,_n=lt.actions.internal.toggleSubtitle,gn=lt.callbacks?.onAudioDoesNotExistHint,Bi=lt.callbacks?.onAudioDisabledHint,Ci=lt.state.duration$;O(i,Ci,Z=>t(82,Qi=Z));let zi=lt.state.positionWithScrubbing$;O(i,zi,Z=>t(80,fn=Z));let Wi=lt.state.playbackState$;O(i,Wi,Z=>t(161,wt=Z));let Ut=lt.state.chromecastConnected$;O(i,Ut,Z=>t(83,bi=Z));let Si=lt.state.isAudioAvailable$;O(i,Si,Z=>t(198,L=Z));let Tn=lt.state.isAudioDisabled,Pn=lt.state.isEnded$;O(i,Pn,Z=>t(169,Kt=Z));let hn=lt.state.isLive$;O(i,hn,Z=>t(33,ge=Z));let on=lt.state.isActiveLive$;O(i,on,Z=>t(163,ui=Z));let bn=lt.state.isRewindableLive$;O(i,bn,Z=>t(32,ci=Z));let vn=lt.ui.isPictureInPictureActive$;O(i,vn,Z=>t(165,Zt=Z));let yn=lt.ui.pictureInPictureType$;O(i,yn,Z=>t(164,pt=Z));let Ki=lt.ui.settingsMenuVisible;O(i,Ki,Z=>t(27,X=Z));let Di=lt.ui.settingsMenuOpenedByKeyboard;O(i,Di,Z=>t(140,re=Z));let pi=lt.ui.controls,Un=lt.actions.internal.getVideoEpisodes(),ji=lt.state.chromecastState$;O(i,ji,Z=>t(29,Ft=Z));let zn=lt.state.availableSubtitlesList$;O(i,zn,Z=>t(168,xi=Z));let xt=lt.state.currentSubtitle$;O(i,xt,Z=>t(170,qi=Z));let Wn=pi.disabledControls$;O(i,Wn,Z=>t(172,fi=Z));let Kn=lt.ui.contextMenu.visible$;O(i,Kn,Z=>t(162,Ei=Z));let Rn=lt.ui.contextMenu.showContextMenuBtn$;O(i,Rn,Z=>t(166,un=Z));let jn=lt.ui.contextMenu.openedByBtnKeyboard$;O(i,jn,Z=>t(167,Fi=Z));let rn=lt.ui.startedByKeyboard$;O(i,rn,Z=>t(139,te=Z));let ln=lt.ads.duration;O(i,ln,Z=>t(81,hi=Z));let ie=lt.ads.position;O(i,ie,Z=>t(79,cn=Z));let vt=lt.ads.playbackState;O(i,vt,Z=>t(171,Yi=Z));let sn=lt.ui.isFullscreen;O(i,sn,Z=>t(30,Pi=Z));let an=lt.ui.playerSize;O(i,an,Z=>t(142,q=Z));let Gn=lt.ui.currentGridType$;O(i,Gn,Z=>t(143,N=Z));let xn=lt.ui.additionalButtons$;O(i,xn,Z=>t(28,K=Z));let wo=lt.actions.internal.getVideoElement,Co=lt.actions.internal.replayInteractive,ee=lt.state.isInteractive,eo=lt.state.isInteractiveTime$;O(i,eo,Z=>t(141,Pe=Z));let So=lt.state.showInteractiveGraph,Dr=lt.state.showSeekToInteractive,Bn=lt.state.showPlayPrevChapter,Nr=lt.state.showInteractiveTimeIndicator,Yo=lt.state.graphIsOpened$;O(i,Yo,Z=>t(31,gi=Z));let Or=lt.state.playPrevChapterDisabledTooltip,fo=wi.seekToInteractiveDisabledTooltip$;O(i,fo,Z=>t(78,Xt=Z));let En=()=>lt.actions.internal.toggleChromecast(),Yn,to,Io,Qo,To,Zo,Xo,Jo,$o,er,tr,x,Bt,kn,Dn,Po,Eo,io,ir,Mo,no,nr="",Os=(Z,qs)=>{if(!Z){t(50,nr=U("tooltip_live"));return}qs===xo.PlaybackState.PAUSED&&t(50,nr=U("tooltip_play"))},Fr,nl,ol,rl,qr,nt={},wn,mo,Hr,ll,kt=(0,mp.debounceFn)(bs,260),S,Q,Se;function Ge(){vo({isAudioDisabled:Tn,audioDisabledHintCallback:Bi,isAudioAvailable:L,audioIsNotExistHintCallback:gn})&&Qe()}let ct=ee?Co:Ji?pn:tn;function li(Z){i.$$.not_equal(nt.timeline,Z)&&(nt.timeline=Z,t(23,nt))}function Ii(Z){i.$$.not_equal(nt.prevButton,Z)&&(nt.prevButton=Z,t(23,nt))}function si(Z){i.$$.not_equal(nt.replayButton,Z)&&(nt.replayButton=Z,t(23,nt))}function Qn(Z){Se=Z,t(26,Se)}function sl(Z){i.$$.not_equal(nt.playButton,Z)&&(nt.playButton=Z,t(23,nt))}function Fs(Z){i.$$.not_equal(nt.nextButton,Z)&&(nt.nextButton=Z,t(23,nt))}function al(Z){i.$$.not_equal(nt.playPrevChapterButton,Z)&&(nt.playPrevChapterButton=Z,t(23,nt))}function R_(Z){i.$$.not_equal(nt.seekToInteractiveButton,Z)&&(nt.seekToInteractiveButton=Z,t(23,nt))}function B_(Z){i.$$.not_equal(nt.interactiveGraphButton,Z)&&(nt.interactiveGraphButton=Z,t(23,nt))}function D_(Z){i.$$.not_equal(nt.liveButton,Z)&&(nt.liveButton=Z,t(23,nt))}function N_(Z){i.$$.not_equal(nt.time,Z)&&(nt.time=Z,t(23,nt))}function O_(Z){i.$$.not_equal(nt.episodes,Z)&&(nt.episodes=Z,t(23,nt))}let F_=Z=>{t(22,qr=Z.target.clientWidth)};function q_(Z){i.$$.not_equal(nt.vkLogo,Z)&&(nt.vkLogo=Z,t(23,nt))}function H_(Z){i.$$.not_equal(nt.volume,Z)&&(nt.volume=Z,t(23,nt))}function U_(Z){i.$$.not_equal(nt.subtitles,Z)&&(nt.subtitles=Z,t(23,nt))}function z_(Z){S=Z,t(24,S)}function W_(Z){Q=Z,t(25,Q)}function K_(Z){i.$$.not_equal(nt.settings,Z)&&(nt.settings=Z,t(23,nt))}function j_(Z){i.$$.not_equal(nt.context,Z)&&(nt.context=Z,t(23,nt))}function G_(Z){i.$$.not_equal(nt.fullscreen,Z)&&(nt.fullscreen=Z,t(23,nt))}function x_(Z){i.$$.not_equal(nt.chromecast,Z)&&(nt.chromecast=Z,t(23,nt))}function Y_(Z){be[Z?"unshift":"push"](()=>{Eo=Z,t(46,Eo)})}function Q_(Z){be[Z?"unshift":"push"](()=>{Hi=Z,t(0,Hi)})}function Z_(Z){i.$$.not_equal(nt.interactiveTimeIndicator,Z)&&(nt.interactiveTimeIndicator=Z,t(23,nt))}return i.$$set=Z=>{"bottomHidden"in Z&&t(1,Zi=Z.bottomHidden),"bottomNoSmooth"in Z&&t(2,dn=Z.bottomNoSmooth),"showControls"in Z&&t(3,Mi=Z.showControls),"controlsElementRef"in Z&&t(0,Hi=Z.controlsElementRef),"isAds"in Z&&t(4,jt=Z.isAds),"canRewindLive"in Z&&t(5,mn=Z.canRewindLive),"logoClickable"in Z&&t(6,Ai=Z.logoClickable),"logoHidden"in Z&&t(129,Ui=Z.logoHidden),"logoTargetUrl"in Z&&t(7,Xi=Z.logoTargetUrl),"showNextPrevButtons"in Z&&t(130,Li=Z.showNextPrevButtons),"nextButtonActive"in Z&&t(8,di=Z.nextButtonActive),"prevButtonActive"in Z&&t(9,Vi=Z.prevButtonActive),"isOneVideoPlaylist"in Z&&t(131,Ji=Z.isOneVideoPlaylist),"supportLink"in Z&&t(10,$i=Z.supportLink),"customFullscreenSupported"in Z&&t(132,en=Z.customFullscreenSupported),"playNextVideo"in Z&&t(11,Gt=Z.playNextVideo),"playPrevVideo"in Z&&t(12,vi=Z.playPrevVideo),"repeatPlaylist"in Z&&t(133,tn=Z.repeatPlaylist),"toggleFullscreen"in Z&&t(13,yi=Z.toggleFullscreen),"returnFocus"in Z&&t(14,At=Z.returnFocus),"seekToInteractive"in Z&&t(15,mi=Z.seekToInteractive),"toggleGraph"in Z&&t(16,ki=Z.toggleGraph),"playPrevChapter"in Z&&t(17,Ri=Z.playPrevChapter)},i.$$.update=()=>{if(i.$$.dirty[5]&131072&&t(138,n=fi.has("EPISODE_BUTTON")),i.$$.dirty[5]&131072&&t(77,o=fi.has("GRAPH_BUTTON")),i.$$.dirty[5]&131072&&t(76,l=fi.has("SEEK_TO_INTERACTIVE_BUTTON")),i.$$.dirty[5]&131072&&t(75,r=fi.has("PLAY_BUTTON")),i.$$.dirty[5]&131072&&t(74,a=fi.has("REPLAY_BUTTON")),i.$$.dirty[5]&131072&&t(73,s=fi.has("PLAY_PREV_CHAPTER_BUTTON")),i.$$.dirty[0]&16|i.$$.dirty[5]&65600&&t(34,Yn=jt?Yi==="playing":wt===xo.PlaybackState.PLAYING),i.$$.dirty[5]&32768&&t(18,to=qi.value!=="off"),i.$$.dirty[0]&16|i.$$.dirty[5]&16384&&t(35,Io=Kt&&!jt||ee),i.$$.dirty[0]&16|i.$$.dirty[5]&16384&&t(36,Qo=!Kt||ee||jt),i.$$.dirty[4]&524288&&t(134,To=In(N,"m")),i.$$.dirty[0]&272|i.$$.dirty[4]&524352&&t(37,Zo=Li&&In(N,"m")&&!jt&&di),i.$$.dirty[0]&528|i.$$.dirty[4]&524352&&t(38,Xo=Li&&In(N,"m")&&!jt&&Vi),i.$$.dirty[0]&536870912|i.$$.dirty[4]&524288|i.$$.dirty[5]&1536&&t(39,Jo=Ft!==xo.ChromecastState.NOT_AVAILABLE&&!(Zt&&pt===1)&&In(N,"m")&&!ee),i.$$.dirty[4]&524288|i.$$.dirty[5]&8192&&t(40,$o=xi.length>0&&In(N,"m")),i.$$.dirty[5]&6144&&t(41,er=Fi||un),i.$$.dirty[4]&524288&&t(42,tr=In(N,"s")),i.$$.dirty[4]&32&&t(43,x=!Ui),i.$$.dirty[4]&524576|i.$$.dirty[5]&1536&&t(44,Bt=ti.features.fullscreen&&(Ui||In(N,"s"))&&!(Zt&&pt===1)&&(ee?en:!0)),i.$$.dirty[0]&16|i.$$.dirty[1]&4&&t(19,kn=(!ge||jt)&&!(ti.features.interactiveHideTime&&ee)),i.$$.dirty[4]&262144&&t(45,Dn=q.width>100),i.$$.dirty[0]&16|i.$$.dirty[1]&4|i.$$.dirty[4]&17408&&t(20,Po=!jt&&!ge&&!!Un?.length&&To&&!n),i.$$.dirty[1]&2|i.$$.dirty[5]&256&&t(21,io=!ci||ui),i.$$.dirty[5]&64&&t(47,ir=wt===xo.PlaybackState.PLAYING?U("tooltip_pause"):U("tooltip_play")),i.$$.dirty[1]&1&&t(48,Mo=gi?U("tooltip_interactive_graph_on"):U("tooltip_interactive_graph_off")),i.$$.dirty[5]&128&&t(49,no=Ei?U("aria_label_context_menu_close"):U("aria_label_context_menu_open")),i.$$.dirty[0]&2097152|i.$$.dirty[5]&64&&Os(io,wt),i.$$.dirty[0]&262144&&t(52,nl=to?U("tooltip_subtitles_on"):U("tooltip_subtitles_off")),i.$$.dirty[0]&1073741824&&t(53,ol=Pi?U("tooltip_fullscreen_on"):U("tooltip_fullscreen_off")),i.$$.dirty[0]&536870912&&t(54,rl=Ft===xo.ChromecastState.CONNECTED?U("tooltip_chromecast_on"):U("tooltip_chromecast_off")),i.$$.dirty[0]&268435456|i.$$.dirty[4]&2146435072|i.$$.dirty[5]&63&&t(135,wn={prevButton:Qt?Qt.right-Qt.left:0,replayButton:Rt?Rt.right-Rt.left:0,playButton:Pt?Pt.right-Pt.left:0,nextButton:pe?pe.right-pe.left:0,playPrevChapterButton:st?st.right-st.left:0,seekToInteractiveButton:It?It.right-It.left:0,interactiveGraphButton:St?St.right-St.left:0,liveButton:mt?mt.right-mt.left:0,time:me?me.right-me.left:0,episodes:we?we.right-we.left:0,vkLogo:We?We.right-We.left:0,volume:rt?rt.right-rt.left:0,subtitles:_e?_e.right-_e.left:0,settings:Y?Y.right-Y.left:0,context:Re?Re.right-Re.left:0,fullscreen:qe?qe.right-qe.left:0,chromecast:ce?ce.right-ce.left:0,additionalButtons:K.length?K.reduce(Z=>[...Z,40],[]):[]}),i.$$.dirty[4]&6144&&(!mo||mo<wn.time)&&t(136,mo=wn.time),i.$$.dirty[0]&5767168|i.$$.dirty[4]&530432){let Z=0;Po&&(In(N,"xl")?Z=wn.time:Z=60);let qs=wn.prevButton+wn.playButton+wn.nextButton+wn.seekToInteractiveButton+wn.interactiveGraphButton+wn.liveButton+mo+Z;t(137,Hr=kn&&qr>=qs)}i.$$.dirty[4]&532480&&t(55,ll=Hr&&In(N,"m")),i.$$.dirty[0]&8388616|i.$$.dirty[4]&393216&&kt(wo(),pi,nt,Mi),i.$$.dirty[0]&167772160&&hr(Q,X,Di),i.$$.dirty[0]&150994944|i.$$.dirty[4]&65536&&zo(S,X,re),i.$$.dirty[0]&67108864|i.$$.dirty[4]&32768&&vs(rn,te,Se)},t(51,Fr=ti.logoType==="vk_video"?U("tooltip_vk_video_logo"):U("tooltip_vk_logo")),ri(t(72,{prevButton:u,replayButton:f,playButton:p,nextButton:g,playPrevChapterButton:y,seekToInteractiveButton:h,interactiveGraphButton:C,liveButton:w,time:F,episodes:T,vkLogo:k,volume:P,subtitles:G,settings:W,context:z,fullscreen:le,chromecast:de}=pi,u,_i(t(71,f)),Ht(t(70,p)),Vt(t(69,g)),ei(t(68,y)),oi(t(67,h)),ni(t(66,C)),ut(t(65,w)),dt(t(64,F)),Ke(t(63,T)),He(t(62,k)),Ye(t(61,P)),tt(t(60,G)),Ze(t(59,W)),je(t(58,z)),ke(t(57,le)),se(t(56,de)))),[Hi,Zi,dn,Mi,jt,mn,Ai,Xi,di,Vi,$i,Gt,vi,yi,At,mi,ki,Ri,to,kn,Po,io,qr,nt,S,Q,Se,X,K,Ft,Pi,gi,ci,ge,Yn,Io,Qo,Zo,Xo,Jo,$o,er,tr,x,Bt,Dn,Eo,ir,Mo,no,nr,Fr,nl,ol,rl,ll,de,le,z,W,G,P,k,T,F,w,C,h,y,g,p,f,u,s,a,r,l,o,Xt,cn,fn,hi,Qi,bi,ti,pn,nn,_n,Ci,zi,Wi,Ut,Si,Pn,hn,on,bn,vn,yn,Ki,Di,Un,ji,zn,xt,Wn,Kn,Rn,jn,rn,ln,ie,vt,sn,an,Gn,xn,ee,eo,So,Dr,Bn,Nr,Yo,Or,fo,En,Ge,ct,Ui,Li,Ji,en,tn,To,wn,mo,Hr,n,te,re,Pe,q,N,ce,qe,Re,Y,_e,rt,We,we,me,mt,St,It,st,pe,Pt,Rt,Qt,wt,Ei,ui,pt,Zt,un,Fi,xi,Kt,qi,Yi,fi,li,Ii,si,Qn,sl,Fs,al,R_,B_,D_,N_,O_,F_,q_,H_,U_,z_,W_,K_,j_,G_,x_,Y_,Q_,Z_]}var hc=class extends B{constructor(e){super(),D(this,e,C5,w5,R,{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},J3,[-1,-1,-1,-1,-1,-1,-1,-1])}},pp=hc;var Er=require("@vkontakte/videoplayer-core");function S5(i){let e,t,n,o,l,r=i[2].default,a=Ee(r,i,i[1],null),s=[{xmlns:"http://www.w3.org/2000/svg"},{width:"24"},{height:"24"},{"aria-hidden":"true"},{"data-testid":"muted-icon"},{role:"img"},i[0]],u={};for(let f=0;f<s.length;f+=1)u=ne(u,s[f]);return{c(){e=V("svg"),a&&a.c(),t=V("g"),n=V("path"),o=V("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"),ye(e,u)},m(f,p){v(f,e,p),a&&a.m(e,null),_(e,t),_(t,n),_(t,o),l=!0},p(f,[p]){a&&a.p&&(!l||p&2)&&Ae(a,r,f,f[1],l?Me(r,f[1],p,null):Le(f[1]),null),ye(e,u=Be(s,[{xmlns:"http://www.w3.org/2000/svg"},{width:"24"},{height:"24"},{"aria-hidden":"true"},{"data-testid":"muted-icon"},{role:"img"},p&1&&f[0]]))},i(f){l||(d(a,f),l=!0)},o(f){m(a,f),l=!1},d(f){f&&b(e),a&&a.d(f)}}}function I5(i,e,t){let{$$slots:n={},$$scope:o}=e;return i.$$set=l=>{t(0,e=ne(ne({},e),ve(l))),"$$scope"in l&&t(1,o=l.$$scope)},e=ve(e),[e,o,n]}var vc=class extends B{constructor(e){super(),D(this,e,I5,S5,R,{})}},_p=vc;var hp=require("@vkontakte/videoplayer-shared");function T5(i){Ce(i,"svelte-6gmlbk",".container.svelte-6gmlbk{display:flex;align-items:center}.expanded.svelte-6gmlbk{background-color:rgba(0, 0, 0, 0.56);border-radius:6px}.text.svelte-6gmlbk{font-size:15px;margin-left:8px}")}function gp(i){let e;return{c(){e=I("span"),e.textContent=`${U("mobile_unmute")}`,c(e,"class","text svelte-6gmlbk")},m(t,n){v(t,e,n)},d(t){t&&b(e)}}}function P5(i){let e,t,n,o;var l=i[4];function r(s,u){return{}}l&&(t=Dt(l,r(i)));let a=i[1]&&gp(i);return{c(){e=I("div"),t&&A(t.$$.fragment),n=H(),a&&a.c(),c(e,"class","container svelte-6gmlbk"),c(e,"aria-hidden","true"),j(e,"expanded",i[1])},m(s,u){v(s,e,u),t&&E(t,e,null),_(e,n),a&&a.m(e,null),o=!0},p(s,u){if(u&16&&l!==(l=s[4])){if(t){ae();let f=t;m(f.$$.fragment,1,0,()=>{M(f,1)}),ue()}l?(t=Dt(l,r(s,u)),A(t.$$.fragment),d(t.$$.fragment,1),E(t,e,n)):t=null}s[1]?a||(a=gp(s),a.c(),a.m(e,null)):a&&(a.d(1),a=null),(!o||u&2)&&j(e,"expanded",s[1])},i(s){o||(t&&d(t.$$.fragment,s),o=!0)},o(s){t&&m(t.$$.fragment,s),o=!1},d(s){s&&b(e),t&&M(t),a&&a.d()}}}function E5(i){let e,t,n;function o(r){i[6](r)}let l={testId:i[1]?"btn-mobile-unmuted":"btn-mobile-muted",click:i[2],ariaLabel:i[3],$$slots:{default:[P5]},$$scope:{ctx:i}};return i[0]!==void 0&&(l.ref=i[0]),e=new gt({props:l}),be.push(()=>Oe(e,"ref",o)),{c(){A(e.$$.fragment)},m(r,a){E(e,r,a),n=!0},p(r,[a]){let s={};a&2&&(s.testId=r[1]?"btn-mobile-unmuted":"btn-mobile-muted"),a&4&&(s.click=r[2]),a&8&&(s.ariaLabel=r[3]),a&146&&(s.$$scope={dirty:a,ctx:r}),!t&&a&1&&(t=!0,s.ref=r[0],Ne(()=>t=!1)),e.$set(s)},i(r){n||(d(e.$$.fragment,r),n=!0)},o(r){m(e.$$.fragment,r),n=!1},d(r){M(e,r)}}}function M5(i,e,t){let{muted:n=!1}=e,{expanded:o=!1}=e,{click:l=hp.noop}=e,{ref:r=void 0}=e,a,s;function u(f){r=f,t(0,r)}return i.$$set=f=>{"muted"in f&&t(5,n=f.muted),"expanded"in f&&t(1,o=f.expanded),"click"in f&&t(2,l=f.click),"ref"in f&&t(0,r=f.ref)},i.$$.update=()=>{i.$$.dirty&32&&t(3,a=n?U("tooltip_volume"):U("tooltip_volume_muted")),i.$$.dirty&2&&t(4,s=o?Go:_p)},[r,o,l,a,s,n,u]}var yc=class extends B{constructor(e){super(),D(this,e,M5,E5,R,{muted:5,expanded:1,click:2,ref:0},T5)}},kc=yc;function A5(i){let e,t,n,o,l,r=i[2].default,a=Ee(r,i,i[1],null),s=[{xmlns:"http://www.w3.org/2000/svg"},{width:"24"},{height:"24"},{fill:"none"},{role:"img"},i[0]],u={};for(let f=0;f<s.length;f+=1)u=ne(u,s[f]);return{c(){e=V("svg"),a&&a.c(),t=V("path"),n=V("path"),o=V("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"),ye(e,u)},m(f,p){v(f,e,p),a&&a.m(e,null),_(e,t),_(e,n),_(e,o),l=!0},p(f,[p]){a&&a.p&&(!l||p&2)&&Ae(a,r,f,f[1],l?Me(r,f[1],p,null):Le(f[1]),null),ye(e,u=Be(s,[{xmlns:"http://www.w3.org/2000/svg"},{width:"24"},{height:"24"},{fill:"none"},{role:"img"},p&1&&f[0]]))},i(f){l||(d(a,f),l=!0)},o(f){m(a,f),l=!1},d(f){f&&b(e),a&&a.d(f)}}}function L5(i,e,t){let{$$slots:n={},$$scope:o}=e;return i.$$set=l=>{t(0,e=ne(ne({},e),ve(l))),"$$scope"in l&&t(1,o=l.$$scope)},e=ve(e),[e,o,n]}var wc=class extends B{constructor(e){super(),D(this,e,L5,A5,R,{})}},bp=wc;function V5(i){Ce(i,"svelte-tmam00",'svg[data-testid="pip-icon--active"] .hidden-active,svg[data-testid="pip-icon"] .hidden-not-active{visibility:hidden;opacity:0}')}function R5(i){let e,t;return e=new bp({props:{style:i[1],"data-testid":i[0]?"pip-icon--active":"pip-icon"}}),{c(){A(e.$$.fragment)},m(n,o){E(e,n,o),t=!0},p(n,[o]){let l={};o&2&&(l.style=n[1]),o&1&&(l["data-testid"]=n[0]?"pip-icon--active":"pip-icon"),e.$set(l)},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){m(e.$$.fragment,n),t=!1},d(n){M(e,n)}}}function B5(i,e,t){let n,{isActive:o=!1}=e;return i.$$set=l=>{"isActive"in l&&t(0,o=l.isActive)},i.$$.update=()=>{i.$$.dirty&1&&t(1,n=o?"color: #2688EB;":"color: #fff;")},[o,n]}var Cc=class extends B{constructor(e){super(),D(this,e,B5,R5,R,{isActive:0},V5)}},vp=Cc;var yp=require("@vkontakte/videoplayer-shared");function D5(i){let e,t;return e=new vp({props:{isActive:i[1]}}),{c(){A(e.$$.fragment)},m(n,o){E(e,n,o),t=!0},p(n,o){let l={};o&2&&(l.isActive=n[1]),e.$set(l)},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){m(e.$$.fragment,n),t=!1},d(n){M(e,n)}}}function N5(i){let e,t,n;function o(r){i[3](r)}let l={testId:"btn-pip",ariaLabel:U("menu_pip"),click:i[2],$$slots:{default:[D5]},$$scope:{ctx:i}};return i[0]!==void 0&&(l.ref=i[0]),e=new gt({props:l}),be.push(()=>Oe(e,"ref",o)),{c(){A(e.$$.fragment)},m(r,a){E(e,r,a),n=!0},p(r,[a]){let s={};a&4&&(s.click=r[2]),a&18&&(s.$$scope={dirty:a,ctx:r}),!t&&a&1&&(t=!0,s.ref=r[0],Ne(()=>t=!1)),e.$set(s)},i(r){n||(d(e.$$.fragment,r),n=!0)},o(r){m(e.$$.fragment,r),n=!1},d(r){M(e,r)}}}function O5(i,e,t){let{ref:n=void 0}=e,{isPictureInPictureActive:o=!1}=e,{click:l=yp.noop}=e;function r(a){n=a,t(0,n)}return i.$$set=a=>{"ref"in a&&t(0,n=a.ref),"isPictureInPictureActive"in a&&t(1,o=a.isPictureInPictureActive),"click"in a&&t(2,l=a.click)},[n,o,l,r]}var Sc=class extends B{constructor(e){super(),D(this,e,O5,N5,R,{ref:0,isPictureInPictureActive:1,click:2})}},kp=Sc;var Kp=require("@vkontakte/videoplayer-shared");function F5(i){Ce(i,"svelte-17qsgob",".wrapper-bottom.svelte-17qsgob.svelte-17qsgob{pointer-events:none;position:absolute;z-index:var(--controls-container-z-index);width:100%;bottom:0;left:0;height:var(--controls-gradient-height);background:var(--controls-gradient);transition:transform var(--controls-transition-duration) var(--controls-transition-fn);display:flex;flex-direction:column;justify-content:flex-end;box-sizing:border-box;padding:0 4px 8px}.wrapper-bottom.svelte-17qsgob>.svelte-17qsgob{pointer-events:auto}.wrapper-bottom.ads-timeline-mobile.svelte-17qsgob.svelte-17qsgob{height:9px;padding:0 4px 4px}.wrapper-middle.svelte-17qsgob.svelte-17qsgob{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-17qsgob.svelte-17qsgob{position:absolute;top:4px;right:8px;transition:opacity var(--controls-transition-duration);display:flex}.wrapper-top-left.svelte-17qsgob.svelte-17qsgob{position:absolute;top:4px;left:8px}.wrapper-middle-left.svelte-17qsgob.svelte-17qsgob,.wrapper-middle-left-second.svelte-17qsgob.svelte-17qsgob,.wrapper-middle-right.svelte-17qsgob.svelte-17qsgob{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-17qsgob.svelte-17qsgob{left:12px}.wrapper-middle-left-second.svelte-17qsgob.svelte-17qsgob{left:64px}.wrapper-middle-right.svelte-17qsgob.svelte-17qsgob{right:12px}.controls.svelte-17qsgob.svelte-17qsgob{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-17qsgob > *:not(:first-child){margin-left:8px}.hidden.svelte-17qsgob.svelte-17qsgob{visibility:hidden;opacity:0}.controls-hidden.svelte-17qsgob.svelte-17qsgob{visibility:visible;transform:translateY(100%)}.wrapper-bottom.no-smooth.svelte-17qsgob.svelte-17qsgob{transition:none}.settings-mobile.svelte-17qsgob.svelte-17qsgob{position:absolute;z-index:var(--mobile-settings-menu-z-index);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-17qsgob.svelte-17qsgob{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-17qsgob.svelte-17qsgob{top:16px}.wrapper-top-left.fullscreen.svelte-17qsgob.svelte-17qsgob{top:16px}.controls-wrapper.fullscreen.svelte-17qsgob.svelte-17qsgob{position:absolute;bottom:30px;width:calc(100% - 8px)}}@media screen and (orientation: landscape){.wrapper-top-left.fullscreen.svelte-17qsgob.svelte-17qsgob{top:12px;left:44px}.wrapper-top-right.fullscreen.svelte-17qsgob.svelte-17qsgob{top:12px;right:44px}.wrapper-middle-left.fullscreen.svelte-17qsgob.svelte-17qsgob{left:44px}.wrapper-middle-left-second.fullscreen.svelte-17qsgob.svelte-17qsgob{left:96px}.wrapper-middle-right.fullscreen.svelte-17qsgob.svelte-17qsgob{right:44px}.controls-wrapper.fullscreen.svelte-17qsgob.svelte-17qsgob{position:absolute;left:36px;right:36px;bottom:32px;width:calc(100% - 72px)}}")}function wp(i,e,t){let n=i.slice();return n[170]=e[t].iconUrl,n[171]=e[t].ariaLabel,n[172]=e[t].testId,n[173]=e[t].onClick,n[174]=e[t].tooltip,n}function Cp(i){let e,t,n,o,l,r,a,s,u,f,p,g,y,h,C,w,F,T=(!i[51]||i[53])&&Sp(i),k=ht(i[56]),P=[];for(let q=0;q<k.length;q+=1)P[q]=Ip(wp(i,k,q));let G=q=>m(P[q],1,1,()=>{P[q]=null}),W=i[36]&&Tp(i),z=i[37]&&Pp(i),le=i[57]&&Ep(i),de=i[39]&&Mp(i),L=i[8]&&Ap(i),te=i[34]&&Lp(i),re=i[33]&&Vp(i),X=i[8]&&Rp(i),Pe=i[96]&&!i[29]&&Bp(i);return{c(){e=I("div"),t=H(),n=I("div"),T&&T.c(),o=H(),l=I("div");for(let q=0;q<P.length;q+=1)P[q].c();r=H(),W&&W.c(),a=H(),z&&z.c(),s=H(),le&&le.c(),u=H(),de&&de.c(),f=H(),p=I("div"),L&&L.c(),g=H(),te&&te.c(),y=H(),re&&re.c(),h=H(),X&&X.c(),C=H(),Pe&&Pe.c(),w=it(),c(e,"class","overlay-mobile svelte-17qsgob"),j(e,"hidden",!i[42]),c(n,"class","wrapper-top-left svelte-17qsgob"),j(n,"hidden",!i[3]),j(n,"fullscreen",i[52]),c(l,"class","wrapper-top-right svelte-17qsgob"),j(l,"hidden",!i[3]&&!i[27]),j(l,"fullscreen",i[52]),c(p,"class","wrapper-middle svelte-17qsgob"),j(p,"hidden",!i[3]||i[29])},m(q,N){v(q,e,N),v(q,t,N),v(q,n,N),T&&T.m(n,null),v(q,o,N),v(q,l,N);for(let K=0;K<P.length;K+=1)P[K]&&P[K].m(l,null);_(l,r),W&&W.m(l,null),_(l,a),z&&z.m(l,null),_(l,s),le&&le.m(l,null),_(l,u),de&&de.m(l,null),v(q,f,N),v(q,p,N),L&&L.m(p,null),_(p,g),te&&te.m(p,null),_(p,y),re&&re.m(p,null),_(p,h),X&&X.m(p,null),v(q,C,N),Pe&&Pe.m(q,N),v(q,w,N),F=!0},p(q,N){if((!F||N[1]&2048)&&j(e,"hidden",!q[42]),!q[51]||q[53]?T?(T.p(q,N),N[1]&5242880&&d(T,1)):(T=Sp(q),T.c(),d(T,1),T.m(n,null)):T&&(ae(),m(T,1,1,()=>{T=null}),ue()),(!F||N[0]&8)&&j(n,"hidden",!q[3]),(!F||N[1]&2097152)&&j(n,"fullscreen",q[52]),N[1]&33554432){k=ht(q[56]);let K;for(K=0;K<k.length;K+=1){let ce=wp(q,k,K);P[K]?(P[K].p(ce,N),d(P[K],1)):(P[K]=Ip(ce),P[K].c(),d(P[K],1),P[K].m(l,r))}for(ae(),K=k.length;K<P.length;K+=1)G(K);ue()}q[36]?W?(W.p(q,N),N[1]&32&&d(W,1)):(W=Tp(q),W.c(),d(W,1),W.m(l,a)):W&&(ae(),m(W,1,1,()=>{W=null}),ue()),q[37]?z?(z.p(q,N),N[1]&64&&d(z,1)):(z=Pp(q),z.c(),d(z,1),z.m(l,s)):z&&(ae(),m(z,1,1,()=>{z=null}),ue()),q[57]?le?(le.p(q,N),N[1]&67108864&&d(le,1)):(le=Ep(q),le.c(),d(le,1),le.m(l,u)):le&&(ae(),m(le,1,1,()=>{le=null}),ue()),q[39]?de?(de.p(q,N),N[1]&256&&d(de,1)):(de=Mp(q),de.c(),d(de,1),de.m(l,null)):de&&(ae(),m(de,1,1,()=>{de=null}),ue()),(!F||N[0]&134217736)&&j(l,"hidden",!q[3]&&!q[27]),(!F||N[1]&2097152)&&j(l,"fullscreen",q[52]),q[8]?L?(L.p(q,N),N[0]&256&&d(L,1)):(L=Ap(q),L.c(),d(L,1),L.m(p,g)):L&&(ae(),m(L,1,1,()=>{L=null}),ue()),q[34]?te?(te.p(q,N),N[1]&8&&d(te,1)):(te=Lp(q),te.c(),d(te,1),te.m(p,y)):te&&(ae(),m(te,1,1,()=>{te=null}),ue()),q[33]?re?(re.p(q,N),N[1]&4&&d(re,1)):(re=Vp(q),re.c(),d(re,1),re.m(p,h)):re&&(ae(),m(re,1,1,()=>{re=null}),ue()),q[8]?X?(X.p(q,N),N[0]&256&&d(X,1)):(X=Rp(q),X.c(),d(X,1),X.m(p,null)):X&&(ae(),m(X,1,1,()=>{X=null}),ue()),(!F||N[0]&536870920)&&j(p,"hidden",!q[3]||q[29]),q[96]&&!q[29]?Pe?(Pe.p(q,N),N[0]&536870912&&d(Pe,1)):(Pe=Bp(q),Pe.c(),d(Pe,1),Pe.m(w.parentNode,w)):Pe&&(ae(),m(Pe,1,1,()=>{Pe=null}),ue())},i(q){if(!F){d(T);for(let N=0;N<k.length;N+=1)d(P[N]);d(W),d(z),d(le),d(de),d(L),d(te),d(re),d(X),d(Pe),F=!0}},o(q){m(T),P=P.filter(Boolean);for(let N=0;N<P.length;N+=1)m(P[N]);m(W),m(z),m(le),m(de),m(L),m(te),m(re),m(X),m(Pe),F=!1},d(q){q&&(b(e),b(t),b(n),b(o),b(l),b(f),b(p),b(C),b(w)),T&&T.d(),Jt(P,q),W&&W.d(),z&&z.d(),le&&le.d(),de&&de.d(),L&&L.d(),te&&te.d(),re&&re.d(),X&&X.d(),Pe&&Pe.d(q)}}}function Sp(i){let e,t,n;function o(r){i[130](r)}let l={muted:i[54],expanded:i[51]&&!i[70]&&i[55],click:i[106]};return i[20].volume!==void 0&&(l.ref=i[20].volume),e=new kc({props:l}),be.push(()=>Oe(e,"ref",o)),{c(){A(e.$$.fragment)},m(r,a){E(e,r,a),n=!0},p(r,a){let s={};a[1]&8388608&&(s.muted=r[54]),a[1]&17825792&&(s.expanded=r[51]&&!r[70]&&r[55]),!t&&a[0]&1048576&&(t=!0,s.ref=r[20].volume,Ne(()=>t=!1)),e.$set(s)},i(r){n||(d(e.$$.fragment,r),n=!0)},o(r){m(e.$$.fragment,r),n=!1},d(r){M(e,r)}}}function Ip(i){let e,t;return e=new ds({props:{iconUrl:i[170],ariaLabel:i[171]??i[174],testId:i[172],onClick:i[173]}}),{c(){A(e.$$.fragment)},m(n,o){E(e,n,o),t=!0},p(n,o){let l={};o[1]&33554432&&(l.iconUrl=n[170]),o[1]&33554432&&(l.ariaLabel=n[171]??n[174]),o[1]&33554432&&(l.testId=n[172]),o[1]&33554432&&(l.onClick=n[173]),e.$set(l)},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){m(e.$$.fragment,n),t=!1},d(n){M(e,n)}}}function Tp(i){let e,t,n;function o(r){i[131](r)}let l={isMobile:!0,click:i[104],state:i[28]};return i[20].chromecast!==void 0&&(l.ref=i[20].chromecast),e=new ts({props:l}),be.push(()=>Oe(e,"ref",o)),{c(){A(e.$$.fragment)},m(r,a){E(e,r,a),n=!0},p(r,a){let s={};a[0]&268435456&&(s.state=r[28]),!t&&a[0]&1048576&&(t=!0,s.ref=r[20].chromecast,Ne(()=>t=!1)),e.$set(s)},i(r){n||(d(e.$$.fragment,r),n=!0)},o(r){m(e.$$.fragment,r),n=!1},d(r){M(e,r)}}}function Pp(i){let e,t,n;function o(r){i[132](r)}let l={click:i[105],isPictureInPictureActive:i[26]};return i[20].pip!==void 0&&(l.ref=i[20].pip),e=new kp({props:l}),be.push(()=>Oe(e,"ref",o)),{c(){A(e.$$.fragment)},m(r,a){E(e,r,a),n=!0},p(r,a){let s={};a[0]&67108864&&(s.isPictureInPictureActive=r[26]),!t&&a[0]&1048576&&(t=!0,s.ref=r[20].pip,Ne(()=>t=!1)),e.$set(s)},i(r){n||(d(e.$$.fragment,r),n=!0)},o(r){m(e.$$.fragment,r),n=!1},d(r){M(e,r)}}}function Ep(i){let e,t,n;function o(r){i[133](r)}let l={};return i[22]!==void 0&&(l.ref=i[22]),e=new Qr({props:l}),be.push(()=>Oe(e,"ref",o)),{c(){A(e.$$.fragment)},m(r,a){E(e,r,a),n=!0},p(r,a){let s={};!t&&a[0]&4194304&&(t=!0,s.ref=r[22],Ne(()=>t=!1)),e.$set(s)},i(r){n||(d(e.$$.fragment,r),n=!0)},o(r){m(e.$$.fragment,r),n=!1},d(r){M(e,r)}}}function Mp(i){let e,t,n;function o(r){i[134](r)}let l={click:i[64],targetUrl:i[7],logoClickable:i[6]};return i[20].vkLogo!==void 0&&(l.ref=i[20].vkLogo),e=new es({props:l}),be.push(()=>Oe(e,"ref",o)),{c(){A(e.$$.fragment)},m(r,a){E(e,r,a),n=!0},p(r,a){let s={};a[0]&128&&(s.targetUrl=r[7]),a[0]&64&&(s.logoClickable=r[6]),!t&&a[0]&1048576&&(t=!0,s.ref=r[20].vkLogo,Ne(()=>t=!1)),e.$set(s)},i(r){n||(d(e.$$.fragment,r),n=!0)},o(r){m(e.$$.fragment,r),n=!1},d(r){M(e,r)}}}function Ap(i){let e,t,n;function o(r){i[135](r)}let l={click:i[13],type:"prev",disabled:!i[10],isMobile:!0};return i[20].prevButton!==void 0&&(l.ref=i[20].prevButton),e=new Tr({props:l}),be.push(()=>Oe(e,"ref",o)),{c(){A(e.$$.fragment)},m(r,a){E(e,r,a),n=!0},p(r,a){let s={};a[0]&8192&&(s.click=r[13]),a[0]&1024&&(s.disabled=!r[10]),!t&&a[0]&1048576&&(t=!0,s.ref=r[20].prevButton,Ne(()=>t=!1)),e.$set(s)},i(r){n||(d(e.$$.fragment,r),n=!0)},o(r){m(e.$$.fragment,r),n=!1},d(r){M(e,r)}}}function Lp(i){let e,t,n;function o(r){i[136](r)}let l={disabled:i[49],click:i[63],isMobile:!0,isPlaying:i[31]};return i[20].playButton!==void 0&&(l.ref=i[20].playButton),e=new Zr({props:l}),be.push(()=>Oe(e,"ref",o)),{c(){A(e.$$.fragment)},m(r,a){E(e,r,a),n=!0},p(r,a){let s={};a[1]&262144&&(s.disabled=r[49]),a[1]&1&&(s.isPlaying=r[31]),!t&&a[0]&1048576&&(t=!0,s.ref=r[20].playButton,Ne(()=>t=!1)),e.$set(s)},i(r){n||(d(e.$$.fragment,r),n=!0)},o(r){m(e.$$.fragment,r),n=!1},d(r){M(e,r)}}}function Vp(i){let e,t,n;function o(r){i[137](r)}let l={disabled:i[48],click:i[107],isMobile:!0};return i[20].replayButton!==void 0&&(l.ref=i[20].replayButton),e=new Xr({props:l}),be.push(()=>Oe(e,"ref",o)),{c(){A(e.$$.fragment)},m(r,a){E(e,r,a),n=!0},p(r,a){let s={};a[1]&131072&&(s.disabled=r[48]),!t&&a[0]&1048576&&(t=!0,s.ref=r[20].replayButton,Ne(()=>t=!1)),e.$set(s)},i(r){n||(d(e.$$.fragment,r),n=!0)},o(r){m(e.$$.fragment,r),n=!1},d(r){M(e,r)}}}function Rp(i){let e,t,n;function o(r){i[138](r)}let l={click:i[12],type:"next",disabled:!i[9],isMobile:!0};return i[20].nextButton!==void 0&&(l.ref=i[20].nextButton),e=new Tr({props:l}),be.push(()=>Oe(e,"ref",o)),{c(){A(e.$$.fragment)},m(r,a){E(e,r,a),n=!0},p(r,a){let s={};a[0]&4096&&(s.click=r[12]),a[0]&512&&(s.disabled=!r[9]),!t&&a[0]&1048576&&(t=!0,s.ref=r[20].nextButton,Ne(()=>t=!1)),e.$set(s)},i(r){n||(d(e.$$.fragment,r),n=!0)},o(r){m(e.$$.fragment,r),n=!1},d(r){M(e,r)}}}function Bp(i){let e,t,n,o,l=i[100]&&q5(i),r=i[98]&&H5(i),a=i[99]&&U5(i);return{c(){l&&l.c(),e=H(),r&&r.c(),t=H(),a&&a.c(),n=it()},m(s,u){l&&l.m(s,u),v(s,e,u),r&&r.m(s,u),v(s,t,u),a&&a.m(s,u),v(s,n,u),o=!0},p(s,u){s[100]&&l.p(s,u),s[98]&&r.p(s,u),s[99]&&a.p(s,u)},i(s){o||(d(l),d(r),d(a),o=!0)},o(s){m(l),m(r),m(a),o=!1},d(s){s&&(b(e),b(t),b(n)),l&&l.d(s),r&&r.d(s),a&&a.d(s)}}}function q5(i){let e,t,n,o,l,r;function a(u){i[139](u)}let s={hidden:!i[3],disabled:i[47],click:i[18]};return i[20].playPrevChapterButton!==void 0&&(s.ref=i[20].playPrevChapterButton),t=new fs({props:s}),be.push(()=>Oe(t,"ref",a)),{c(){e=I("div"),A(t.$$.fragment),c(e,"class","wrapper-middle-left svelte-17qsgob"),j(e,"fullscreen",i[52]),j(e,"hidden",!i[3])},m(u,f){v(u,e,f),E(t,e,null),o=!0,l||(r=Te(e,"click",i[108]),l=!0)},p(u,f){let p={};f[0]&8&&(p.hidden=!u[3]),f[1]&65536&&(p.disabled=u[47]),f[0]&262144&&(p.click=u[18]),!n&&f[0]&1048576&&(n=!0,p.ref=u[20].playPrevChapterButton,Ne(()=>n=!1)),t.$set(p),(!o||f[1]&2097152)&&j(e,"fullscreen",u[52]),(!o||f[0]&8)&&j(e,"hidden",!u[3])},i(u){o||(d(t.$$.fragment,u),o=!0)},o(u){m(t.$$.fragment,u),o=!1},d(u){u&&b(e),M(t),l=!1,r()}}}function H5(i){let e,t,n,o,l;function r(s){i[140](s)}let a={hidden:!i[3]&&!i[58],disabled:i[50],click:i[17],graphIsOpened:i[58]};return i[20].interactiveGraphButton!==void 0&&(a.ref=i[20].interactiveGraphButton),t=new us({props:a}),be.push(()=>Oe(t,"ref",r)),{c(){e=I("div"),A(t.$$.fragment),c(e,"class",o=mf(i[100]?"wrapper-middle-left-second":"wrapper-middle-left")+" svelte-17qsgob"),j(e,"fullscreen",i[52]),j(e,"hidden",!i[3]&&!i[58])},m(s,u){v(s,e,u),E(t,e,null),l=!0},p(s,u){let f={};u[0]&8|u[1]&134217728&&(f.hidden=!s[3]&&!s[58]),u[1]&524288&&(f.disabled=s[50]),u[0]&131072&&(f.click=s[17]),u[1]&134217728&&(f.graphIsOpened=s[58]),!n&&u[0]&1048576&&(n=!0,f.ref=s[20].interactiveGraphButton,Ne(()=>n=!1)),t.$set(f),(!l||u[1]&2097152)&&j(e,"fullscreen",s[52]),(!l||u[0]&8|u[1]&134217728)&&j(e,"hidden",!s[3]&&!s[58])},i(s){l||(d(t.$$.fragment,s),l=!0)},o(s){m(t.$$.fragment,s),l=!1},d(s){s&&b(e),M(t)}}}function U5(i){let e,t,n,o,l,r;function a(u){i[141](u)}let s={hidden:!i[3],disabled:i[46],click:i[16]};return i[20].seekToInteractiveButton!==void 0&&(s.ref=i[20].seekToInteractiveButton),t=new as({props:s}),be.push(()=>Oe(t,"ref",a)),{c(){e=I("div"),A(t.$$.fragment),c(e,"class","wrapper-middle-right svelte-17qsgob"),j(e,"fullscreen",i[52]),j(e,"hidden",!i[3])},m(u,f){v(u,e,f),E(t,e,null),o=!0,l||(r=Te(e,"click",i[109]),l=!0)},p(u,f){let p={};f[0]&8&&(p.hidden=!u[3]),f[1]&32768&&(p.disabled=u[46]),f[0]&65536&&(p.click=u[16]),!n&&f[0]&1048576&&(n=!0,p.ref=u[20].seekToInteractiveButton,Ne(()=>n=!1)),t.$set(p),(!o||f[1]&2097152)&&j(e,"fullscreen",u[52]),(!o||f[0]&8)&&j(e,"hidden",!u[3])},i(u){o||(d(t.$$.fragment,u),o=!0)},o(u){m(t.$$.fragment,u),o=!1},d(u){u&&b(e),M(t),l=!1,r()}}}function Dp(i){let e,t,n,o,l,r=i[53]&&Np(i),a=i[32]&&Op(i);return o=new rs({props:{position:i[59],duration:i[60]}}),{c(){r&&r.c(),e=H(),a&&a.c(),t=H(),n=I("div"),A(o.$$.fragment),c(n,"class","wrapper-bottom ads-timeline-mobile svelte-17qsgob"),j(n,"fullscreen",i[52])},m(s,u){r&&r.m(s,u),v(s,e,u),a&&a.m(s,u),v(s,t,u),v(s,n,u),E(o,n,null),l=!0},p(s,u){s[53]?r?(r.p(s,u),u[1]&4194304&&d(r,1)):(r=Np(s),r.c(),d(r,1),r.m(e.parentNode,e)):r&&(ae(),m(r,1,1,()=>{r=null}),ue()),s[32]?a?(a.p(s,u),u[1]&2&&d(a,1)):(a=Op(s),a.c(),d(a,1),a.m(t.parentNode,t)):a&&(ae(),m(a,1,1,()=>{a=null}),ue());let f={};u[1]&268435456&&(f.position=s[59]),u[1]&536870912&&(f.duration=s[60]),o.$set(f),(!l||u[1]&2097152)&&j(n,"fullscreen",s[52])},i(s){l||(d(r),d(a),d(o.$$.fragment,s),l=!0)},o(s){m(r),m(a),m(o.$$.fragment,s),l=!1},d(s){s&&(b(e),b(t),b(n)),r&&r.d(s),a&&a.d(s),M(o)}}}function Np(i){let e,t,n,o;function l(a){i[142](a)}let r={muted:i[54],expanded:!1,click:i[106]};return i[20].volume!==void 0&&(r.ref=i[20].volume),t=new kc({props:r}),be.push(()=>Oe(t,"ref",l)),{c(){e=I("div"),A(t.$$.fragment),c(e,"class","wrapper-top-right svelte-17qsgob"),j(e,"fullscreen",i[52])},m(a,s){v(a,e,s),E(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,Ne(()=>n=!1)),t.$set(u),(!o||s[1]&2097152)&&j(e,"fullscreen",a[52])},i(a){o||(d(t.$$.fragment,a),o=!0)},o(a){m(t.$$.fragment,a),o=!1},d(a){a&&b(e),M(t)}}}function Op(i){let e,t,n,o;function l(a){i[143](a)}let r={disabled:i[49],click:i[63],isMobile:!0,isPlaying:!i[32]};return i[20].playButton!==void 0&&(r.ref=i[20].playButton),t=new Zr({props:r}),be.push(()=>Oe(t,"ref",l)),{c(){e=I("div"),A(t.$$.fragment),c(e,"class","wrapper-middle svelte-17qsgob")},m(a,s){v(a,e,s),E(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,Ne(()=>n=!1)),t.$set(u)},i(a){o||(d(t.$$.fragment,a),o=!0)},o(a){m(t.$$.fragment,a),o=!1},d(a){a&&b(e),M(t)}}}function z5(i){let e,t,n;function o(r){i[144](r)}let l={disabled:i[48],$$slots:{default:[W5]},$$scope:{ctx:i}};return i[20].replayButton!==void 0&&(l.ref=i[20].replayButton),e=new Mt({props:l}),be.push(()=>Oe(e,"ref",o)),{c(){A(e.$$.fragment)},m(r,a){E(e,r,a),n=!0},p(r,a){let s={};a[1]&131072&&(s.disabled=r[48]),a[1]&131072|a[5]&4194304&&(s.$$scope={dirty:a,ctx:r}),!t&&a[0]&1048576&&(t=!0,s.ref=r[20].replayButton,Ne(()=>t=!1)),e.$set(s)},i(r){n||(d(e.$$.fragment,r),n=!0)},o(r){m(e.$$.fragment,r),n=!1},d(r){M(e,r)}}}function W5(i){let e,t;return e=new Xr({props:{disabled:i[48],click:i[95]}}),{c(){A(e.$$.fragment)},m(n,o){E(e,n,o),t=!0},p(n,o){let l={};o[1]&131072&&(l.disabled=n[48]),e.$set(l)},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){m(e.$$.fragment,n),t=!1},d(n){M(e,n)}}}function Fp(i){let e,t,n;function o(r){i[145](r)}let l={$$slots:{default:[K5]},$$scope:{ctx:i}};return i[20].liveButton!==void 0&&(l.ref=i[20].liveButton),e=new Mt({props:l}),be.push(()=>Oe(e,"ref",o)),{c(){A(e.$$.fragment)},m(r,a){E(e,r,a),n=!0},p(r,a){let s={};a[0]&524288|a[1]&16384|a[5]&4194304&&(s.$$scope={dirty:a,ctx:r}),!t&&a[0]&1048576&&(t=!0,s.ref=r[20].liveButton,Ne(()=>t=!1)),e.$set(s)},i(r){n||(d(e.$$.fragment,r),n=!0)},o(r){m(e.$$.fragment,r),n=!1},d(r){M(e,r)}}}function K5(i){let e,t;return e=new ns({props:{isActiveLive:i[19],isMobile:!0,ariaLabel:i[45]}}),{c(){A(e.$$.fragment)},m(n,o){E(e,n,o),t=!0},p(n,o){let l={};o[0]&524288&&(l.isActiveLive=n[19]),o[1]&16384&&(l.ariaLabel=n[45]),e.$set(l)},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){m(e.$$.fragment,n),t=!1},d(n){M(e,n)}}}function qp(i){let e,t,n;function o(r){i[146](r)}let l={showDuration:i[35],position:i[4]?i[59]:i[61],duration:i[4]?i[60]:i[62],isMobile:!0};return i[20].time!==void 0&&(l.ref=i[20].time),e=new Ql({props:l}),be.push(()=>Oe(e,"ref",o)),{c(){A(e.$$.fragment)},m(r,a){E(e,r,a),n=!0},p(r,a){let s={};a[1]&16&&(s.showDuration=r[35]),a[0]&16|a[1]&1342177280&&(s.position=r[4]?r[59]:r[61]),a[0]&16|a[1]&536870912|a[2]&1&&(s.duration=r[4]?r[60]:r[62]),!t&&a[0]&1048576&&(t=!0,s.ref=r[20].time,Ne(()=>t=!1)),e.$set(s)},i(r){n||(d(e.$$.fragment,r),n=!0)},o(r){m(e.$$.fragment,r),n=!1},d(r){M(e,r)}}}function Hp(i){let e,t,n,o;return n=new ss({props:{position:i[61],duration:i[62],timeCodes:i[84]}}),{c(){e=I("div"),e.textContent="\xB7",t=H(),A(n.$$.fragment),c(e,"aria-hidden","true")},m(l,r){v(l,e,r),v(l,t,r),E(n,l,r),o=!0},p(l,r){let a={};r[1]&1073741824&&(a.position=l[61]),r[2]&1&&(a.duration=l[62]),n.$set(a)},i(l){o||(d(n.$$.fragment,l),o=!0)},o(l){m(n.$$.fragment,l),o=!1},d(l){l&&(b(e),b(t)),M(n,l)}}}function j5(i){let e,t,n=i[43]&&Hp(i);return{c(){n&&n.c(),e=it()},m(o,l){n&&n.m(o,l),v(o,e,l),t=!0},p(o,l){o[43]?n?(n.p(o,l),l[1]&4096&&d(n,1)):(n=Hp(o),n.c(),d(n,1),n.m(e.parentNode,e)):n&&(ae(),m(n,1,1,()=>{n=null}),ue())},i(o){t||(d(n),t=!0)},o(o){m(n),t=!1},d(o){o&&b(e),n&&n.d(o)}}}function Up(i){let e,t,n;function o(r){i[149](r)}let l={$$slots:{default:[G5]},$$scope:{ctx:i}};return i[20].settings!==void 0&&(l.ref=i[20].settings),e=new Mt({props:l}),be.push(()=>Oe(e,"ref",o)),{c(){A(e.$$.fragment)},m(r,a){E(e,r,a),n=!0},p(r,a){let s={};a[0]&4194304|a[5]&4194304&&(s.$$scope={dirty:a,ctx:r}),!t&&a[0]&1048576&&(t=!0,s.ref=r[20].settings,Ne(()=>t=!1)),e.$set(s)},i(r){n||(d(e.$$.fragment,r),n=!0)},o(r){m(e.$$.fragment,r),n=!1},d(r){M(e,r)}}}function G5(i){let e,t,n;function o(r){i[148](r)}let l={};return i[22]!==void 0&&(l.ref=i[22]),e=new Qr({props:l}),be.push(()=>Oe(e,"ref",o)),{c(){A(e.$$.fragment)},m(r,a){E(e,r,a),n=!0},p(r,a){let s={};!t&&a[0]&4194304&&(t=!0,s.ref=r[22],Ne(()=>t=!1)),e.$set(s)},i(r){n||(d(e.$$.fragment,r),n=!0)},o(r){m(e.$$.fragment,r),n=!1},d(r){M(e,r)}}}function zp(i){let e,t,n;function o(r){i[150](r)}let l={$$slots:{default:[x5]},$$scope:{ctx:i}};return i[20].fullscreen!==void 0&&(l.ref=i[20].fullscreen),e=new Mt({props:l}),be.push(()=>Oe(e,"ref",o)),{c(){A(e.$$.fragment)},m(r,a){E(e,r,a),n=!0},p(r,a){let s={};a[0]&16384|a[1]&2097152|a[5]&4194304&&(s.$$scope={dirty:a,ctx:r}),!t&&a[0]&1048576&&(t=!0,s.ref=r[20].fullscreen,Ne(()=>t=!1)),e.$set(s)},i(r){n||(d(e.$$.fragment,r),n=!0)},o(r){m(e.$$.fragment,r),n=!1},d(r){M(e,r)}}}function x5(i){let e,t;return e=new Jl({props:{click:i[14],isFullscreen:i[52]}}),{c(){A(e.$$.fragment)},m(n,o){E(e,n,o),t=!0},p(n,o){let l={};o[0]&16384&&(l.click=n[14]),o[1]&2097152&&(l.isFullscreen=n[52]),e.$set(l)},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){m(e.$$.fragment,n),t=!1},d(n){M(e,n)}}}function Wp(i){let e,t,n,o;function l(a){i[154](a)}let r={supportLink:i[11],returnFocus:i[15]};return i[21]!==void 0&&(r.ref=i[21]),t=new Yl({props:r}),be.push(()=>Oe(t,"ref",l)),{c(){e=I("div"),A(t.$$.fragment),c(e,"class","settings-mobile svelte-17qsgob")},m(a,s){v(a,e,s),E(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],Ne(()=>n=!1)),t.$set(u)},i(a){o||(d(t.$$.fragment,a),o=!0)},o(a){m(t.$$.fragment,a),o=!1},d(a){a&&b(e),M(t)}}}function Y5(i){let e,t,n;function o(r){i[155](r)}let l={};return i[20].interactiveTimeIndicator!==void 0&&(l.ref=i[20].interactiveTimeIndicator),e=new ys({props:l}),be.push(()=>Oe(e,"ref",o)),{c(){A(e.$$.fragment)},m(r,a){E(e,r,a),n=!0},p(r,a){let s={};!t&&a[0]&1048576&&(t=!0,s.ref=r[20].interactiveTimeIndicator,Ne(()=>t=!1)),e.$set(s)},i(r){n||(d(e.$$.fragment,r),n=!0)},o(r){m(e.$$.fragment,r),n=!1},d(r){M(e,r)}}}function Q5(i){let e,t,n,o,l,r,a,s,u,f,p,g,y,h,C,w,F,T,k,P=!i[4]&&Cp(i),G=i[4]&&i[30]!=="inactive"&&Dp(i),W=i[96]&&z5(i),z=!i[4]&&i[25]&&Fp(i),le=i[41]&&qp(i);function de(K){i[147](K)}let L={className:"w-max",disabled:!i[43],$$slots:{default:[j5]},$$scope:{ctx:i}};i[20].episodes!==void 0&&(L.ref=i[20].episodes),u=new Mt({props:L}),be.push(()=>Oe(u,"ref",de));let te=i[38]&&Up(i),re=i[40]&&zp(i);function X(K){i[152](K)}let Pe={isAds:i[4],canRewindLive:i[5],isRewindableLive:i[24]};i[20].timeline!==void 0&&(Pe.ref=i[20].timeline),h=new ls({props:Pe}),be.push(()=>Oe(h,"ref",X));let q=i[23]&&Wp(i),N=i[101]&&Y5(i);return{c(){P&&P.c(),e=H(),G&&G.c(),t=H(),n=I("div"),o=I("div"),l=I("div"),W&&W.c(),r=H(),z&&z.c(),a=H(),le&&le.c(),s=H(),A(u.$$.fragment),p=H(),te&&te.c(),g=H(),re&&re.c(),y=H(),A(h.$$.fragment),w=H(),q&&q.c(),F=H(),N&&N.c(),T=it(),c(l,"class","controls svelte-17qsgob"),j(l,"mobile",!0),c(o,"class","controls-wrapper svelte-17qsgob"),j(o,"fullscreen",i[52]),c(n,"class","wrapper-bottom svelte-17qsgob"),j(n,"hidden",i[1]),j(n,"controls-hidden",!i[3]),j(n,"no-smooth",i[2]),j(n,"mobile",!0)},m(K,ce){P&&P.m(K,ce),v(K,e,ce),G&&G.m(K,ce),v(K,t,ce),v(K,n,ce),_(n,o),_(o,l),W&&W.m(l,null),_(l,r),z&&z.m(l,null),_(l,a),le&&le.m(l,null),_(l,s),E(u,l,null),_(l,p),te&&te.m(l,null),_(l,g),re&&re.m(l,null),i[151](l),_(o,y),E(h,o,null),i[153](n),v(K,w,ce),q&&q.m(K,ce),v(K,F,ce),N&&N.m(K,ce),v(K,T,ce),k=!0},p(K,ce){K[4]?P&&(ae(),m(P,1,1,()=>{P=null}),ue()):P?(P.p(K,ce),ce[0]&16&&d(P,1)):(P=Cp(K),P.c(),d(P,1),P.m(e.parentNode,e)),K[4]&&K[30]!=="inactive"?G?(G.p(K,ce),ce[0]&1073741840&&d(G,1)):(G=Dp(K),G.c(),d(G,1),G.m(t.parentNode,t)):G&&(ae(),m(G,1,1,()=>{G=null}),ue()),K[96]&&W.p(K,ce),!K[4]&&K[25]?z?(z.p(K,ce),ce[0]&33554448&&d(z,1)):(z=Fp(K),z.c(),d(z,1),z.m(l,a)):z&&(ae(),m(z,1,1,()=>{z=null}),ue()),K[41]?le?(le.p(K,ce),ce[1]&1024&&d(le,1)):(le=qp(K),le.c(),d(le,1),le.m(l,s)):le&&(ae(),m(le,1,1,()=>{le=null}),ue());let oe={};ce[1]&4096&&(oe.disabled=!K[43]),ce[1]&1073745920|ce[2]&1|ce[5]&4194304&&(oe.$$scope={dirty:ce,ctx:K}),!f&&ce[0]&1048576&&(f=!0,oe.ref=K[20].episodes,Ne(()=>f=!1)),u.$set(oe),K[38]?te?(te.p(K,ce),ce[1]&128&&d(te,1)):(te=Up(K),te.c(),d(te,1),te.m(l,g)):te&&(ae(),m(te,1,1,()=>{te=null}),ue()),K[40]?re?(re.p(K,ce),ce[1]&512&&d(re,1)):(re=zp(K),re.c(),d(re,1),re.m(l,null)):re&&(ae(),m(re,1,1,()=>{re=null}),ue());let se={};ce[0]&16&&(se.isAds=K[4]),ce[0]&32&&(se.canRewindLive=K[5]),ce[0]&16777216&&(se.isRewindableLive=K[24]),!C&&ce[0]&1048576&&(C=!0,se.ref=K[20].timeline,Ne(()=>C=!1)),h.$set(se),(!k||ce[1]&2097152)&&j(o,"fullscreen",K[52]),(!k||ce[0]&2)&&j(n,"hidden",K[1]),(!k||ce[0]&8)&&j(n,"controls-hidden",!K[3]),(!k||ce[0]&4)&&j(n,"no-smooth",K[2]),K[23]?q?(q.p(K,ce),ce[0]&8388608&&d(q,1)):(q=Wp(K),q.c(),d(q,1),q.m(F.parentNode,F)):q&&(ae(),m(q,1,1,()=>{q=null}),ue()),K[101]&&N.p(K,ce)},i(K){k||(d(P),d(G),d(W),d(z),d(le),d(u.$$.fragment,K),d(te),d(re),d(h.$$.fragment,K),d(q),d(N),k=!0)},o(K){m(P),m(G),m(W),m(z),m(le),m(u.$$.fragment,K),m(te),m(re),m(h.$$.fragment,K),m(q),m(N),k=!1},d(K){K&&(b(e),b(t),b(n),b(w),b(F),b(T)),P&&P.d(K),G&&G.d(K),W&&W.d(),z&&z.d(),le&&le.d(),M(u),te&&te.d(),re&&re.d(),i[151](null),M(h),i[153](null),q&&q.d(K),N&&N.d(K)}}}function Z5(i,e,t){let n,o,l,r,a,s,u,f,p,g,y,h,C,w,F,T,k,P,G,W,z,le,de,L,te,re,X,Pe,q,N,K,ce,oe,se,qe,Ve,ke,{bottomHidden:Re}=e,{bottomNoSmooth:ze}=e,{showControls:je}=e,{controlsElementRef:Y=void 0}=e,{isAds:fe=!1}=e,{canRewindLive:Ze}=e,{logoClickable:_e}=e,{logoHidden:Ue}=e,{logoTargetUrl:tt=""}=e,{showNextPrevButtons:rt}=e,{nextButtonActive:Je}=e,{prevButtonActive:Ye}=e,{isOneVideoPlaylist:We=!1}=e,{supportLink:J}=e,{customFullscreenSupported:He=!0}=e,{playNextVideo:we}=e,{playPrevVideo:Ie}=e,{repeatPlaylist:Ke}=e,{toggleFullscreen:me}=e,{returnFocus:$}=e,{seekToInteractive:dt}=e,{toggleGraph:mt}=e,{playPrevChapter:$e}=e,{onDisabledPlayPrevChapterClick:ut}=e,{onDisabledSeekToInteractiveClick:St}=e,et=ot(),ni=An(),It=Nt(),qt=et.actions.internal.toggleMuted,oi=et.actions.internal.togglePlay,st=et.actions.internal.pause,yt=et.callbacks?.onAudioDoesNotExistHint,ei=et.callbacks?.onAudioDisabledHint,pe=et.playerPhase;O(i,pe,ee=>t(126,z=ee));let Lt=et.state.duration$;O(i,Lt,ee=>t(62,ke=ee));let Vt=et.state.positionWithScrubbing$;O(i,Vt,ee=>t(61,Ve=ee));let Pt=et.state.playbackState$;O(i,Pt,ee=>t(121,g=ee));let Tt=et.state.isAudioAvailable$;O(i,Tt,ee=>t(51,y=ee));let Ht=et.state.isAudioDisabled,Rt=et.state.isEnded$;O(i,Rt,ee=>t(127,de=ee));let ai=et.state.isLive$;O(i,ai,ee=>t(25,T=ee));let _i=et.state.muted$;O(i,_i,ee=>t(54,q=ee));let Qt=et.state.isActiveLive$;O(i,Qt,ee=>t(124,w=ee));let Ot=et.state.isRewindableLive$;O(i,Ot,ee=>t(24,F=ee));let ri=et.ui.scrubbingInProgress;O(i,ri,ee=>t(29,le=ee));let Ft=et.ui.mobileNotReportControlHidden$;O(i,Ft,ee=>t(27,G=ee));let Pi=et.ui.isPictureInPictureActive$;O(i,Pi,ee=>t(26,P=ee));let wt=et.ui.pictureInPictureType$;O(i,wt,ee=>t(125,k=ee));let Ei=et.ui.mobileUnmuteButtonExpanded;O(i,Ei,ee=>t(55,N=ee));let gi=et.ui.mobileUnmuteButtonVisible;O(i,gi,ee=>t(53,Pe=ee));let ui=et.ui.settingsMenuVisible;O(i,ui,ee=>t(23,p=ee));let ci=et.ui.settingsMenuOpenedByKeyboard;O(i,ci,ee=>t(120,f=ee));let ge=et.ui.controls,pt=et.actions.internal.getVideoEpisodes(),Zt=et.webApi.pictureInPictureApi,un=et.state.chromecastState$;O(i,un,ee=>t(28,W=ee));let Fi=et.state.crashed$;O(i,Fi,ee=>t(57,ce=ee));let xi=ge.disabledControls$;O(i,xi,ee=>t(128,te=ee));let Kt=et.ui.startedByKeyboard$;O(i,Kt,ee=>t(119,u=ee));let qi=et.ads.duration;O(i,qi,ee=>t(60,qe=ee));let Yi=et.ads.position;O(i,Yi,ee=>t(59,se=ee));let fi=et.ads.playbackState;O(i,fi,ee=>t(30,L=ee));let Xt=et.ui.isFullscreen;O(i,Xt,ee=>t(52,X=ee));let cn=et.ui.playerSize;O(i,cn,ee=>t(123,C=ee));let fn=et.ui.additionalButtons$;O(i,fn,ee=>t(56,K=ee));let hi=et.actions.internal.getVideoElement,Qi=et.actions.internal.replayInteractive,bi=et.state.isInteractive,Zi=et.state.isInteractiveTime$;O(i,Zi,ee=>t(122,h=ee));let dn=et.state.showInteractiveGraph,Mi=et.state.showSeekToInteractive,Hi=et.state.showPlayPrevChapter,jt=et.state.showInteractiveTimeIndicator,mn=et.state.graphIsOpened$;O(i,mn,ee=>t(58,oe=ee));let Ai=ni.seekToInteractiveDisabledTooltip$;O(i,Ai,ee=>t(129,re=ee));let Ui,Xi,Li,di,Vi,Ji,$i,en,Gt,vi,tn,yi,At,mi,ki,Ri,lt,wi,ti,Qe={},pn=(0,Kp.debounceFn)(bs,260),nn=()=>et.actions.internal.toggleChromecast();function _n(){vo({isAudioDisabled:Ht,audioDisabledHintCallback:ei,isAudioAvailable:y,audioIsNotExistHintCallback:yt})&&qt()}async function gn(){Zt?.isActive()?await Zt?.remove():await Zt?.request()}function Bi(){!Ht&&y&&gi.set(!1),_n()}let Ci=We?oi:Ke,zi="",Wi=(ee,eo)=>{if(!ee){t(45,zi=U("tooltip_live"));return}eo===Er.PlaybackState.PAUSED&&t(45,zi=U("tooltip_play"))},Ut,Si,Tn=()=>{s&&ut(Ui)},Pn=()=>{l&&St(Xi)};function hn(ee){i.$$.not_equal(Qe.volume,ee)&&(Qe.volume=ee,t(20,Qe))}function on(ee){i.$$.not_equal(Qe.chromecast,ee)&&(Qe.chromecast=ee,t(20,Qe))}function bn(ee){i.$$.not_equal(Qe.pip,ee)&&(Qe.pip=ee,t(20,Qe))}function vn(ee){Si=ee,t(22,Si)}function yn(ee){i.$$.not_equal(Qe.vkLogo,ee)&&(Qe.vkLogo=ee,t(20,Qe))}function Ki(ee){i.$$.not_equal(Qe.prevButton,ee)&&(Qe.prevButton=ee,t(20,Qe))}function Di(ee){i.$$.not_equal(Qe.playButton,ee)&&(Qe.playButton=ee,t(20,Qe))}function pi(ee){i.$$.not_equal(Qe.replayButton,ee)&&(Qe.replayButton=ee,t(20,Qe))}function Un(ee){i.$$.not_equal(Qe.nextButton,ee)&&(Qe.nextButton=ee,t(20,Qe))}function ji(ee){i.$$.not_equal(Qe.playPrevChapterButton,ee)&&(Qe.playPrevChapterButton=ee,t(20,Qe))}function zn(ee){i.$$.not_equal(Qe.interactiveGraphButton,ee)&&(Qe.interactiveGraphButton=ee,t(20,Qe))}function xt(ee){i.$$.not_equal(Qe.seekToInteractiveButton,ee)&&(Qe.seekToInteractiveButton=ee,t(20,Qe))}function Wn(ee){i.$$.not_equal(Qe.volume,ee)&&(Qe.volume=ee,t(20,Qe))}function Kn(ee){i.$$.not_equal(Qe.playButton,ee)&&(Qe.playButton=ee,t(20,Qe))}function Rn(ee){i.$$.not_equal(Qe.replayButton,ee)&&(Qe.replayButton=ee,t(20,Qe))}function jn(ee){i.$$.not_equal(Qe.liveButton,ee)&&(Qe.liveButton=ee,t(20,Qe))}function rn(ee){i.$$.not_equal(Qe.time,ee)&&(Qe.time=ee,t(20,Qe))}function ln(ee){i.$$.not_equal(Qe.episodes,ee)&&(Qe.episodes=ee,t(20,Qe))}function ie(ee){Si=ee,t(22,Si)}function vt(ee){i.$$.not_equal(Qe.settings,ee)&&(Qe.settings=ee,t(20,Qe))}function sn(ee){i.$$.not_equal(Qe.fullscreen,ee)&&(Qe.fullscreen=ee,t(20,Qe))}function an(ee){be[ee?"unshift":"push"](()=>{wi=ee,t(44,wi)})}function Gn(ee){i.$$.not_equal(Qe.timeline,ee)&&(Qe.timeline=ee,t(20,Qe))}function xn(ee){be[ee?"unshift":"push"](()=>{Y=ee,t(0,Y)})}function wo(ee){Ut=ee,t(21,Ut)}function Co(ee){i.$$.not_equal(Qe.interactiveTimeIndicator,ee)&&(Qe.interactiveTimeIndicator=ee,t(20,Qe))}return i.$$set=ee=>{"bottomHidden"in ee&&t(1,Re=ee.bottomHidden),"bottomNoSmooth"in ee&&t(2,ze=ee.bottomNoSmooth),"showControls"in ee&&t(3,je=ee.showControls),"controlsElementRef"in ee&&t(0,Y=ee.controlsElementRef),"isAds"in ee&&t(4,fe=ee.isAds),"canRewindLive"in ee&&t(5,Ze=ee.canRewindLive),"logoClickable"in ee&&t(6,_e=ee.logoClickable),"logoHidden"in ee&&t(110,Ue=ee.logoHidden),"logoTargetUrl"in ee&&t(7,tt=ee.logoTargetUrl),"showNextPrevButtons"in ee&&t(8,rt=ee.showNextPrevButtons),"nextButtonActive"in ee&&t(9,Je=ee.nextButtonActive),"prevButtonActive"in ee&&t(10,Ye=ee.prevButtonActive),"isOneVideoPlaylist"in ee&&t(111,We=ee.isOneVideoPlaylist),"supportLink"in ee&&t(11,J=ee.supportLink),"customFullscreenSupported"in ee&&t(112,He=ee.customFullscreenSupported),"playNextVideo"in ee&&t(12,we=ee.playNextVideo),"playPrevVideo"in ee&&t(13,Ie=ee.playPrevVideo),"repeatPlaylist"in ee&&t(113,Ke=ee.repeatPlaylist),"toggleFullscreen"in ee&&t(14,me=ee.toggleFullscreen),"returnFocus"in ee&&t(15,$=ee.returnFocus),"seekToInteractive"in ee&&t(16,dt=ee.seekToInteractive),"toggleGraph"in ee&&t(17,mt=ee.toggleGraph),"playPrevChapter"in ee&&t(18,$e=ee.playPrevChapter),"onDisabledPlayPrevChapterClick"in ee&&t(114,ut=ee.onDisabledPlayPrevChapterClick),"onDisabledSeekToInteractiveClick"in ee&&t(115,St=ee.onDisabledSeekToInteractiveClick)},i.$$.update=()=>{if(i.$$.dirty[4]&32&&(Xi=U(re)),i.$$.dirty[4]&16&&t(118,n=te.has("EPISODE_BUTTON")),i.$$.dirty[4]&16&&t(50,o=te.has("GRAPH_BUTTON")),i.$$.dirty[4]&16&&t(46,l=te.has("SEEK_TO_INTERACTIVE_BUTTON")),i.$$.dirty[4]&16&&t(49,r=te.has("PLAY_BUTTON")),i.$$.dirty[4]&16&&t(48,a=te.has("REPLAY_BUTTON")),i.$$.dirty[4]&16&&t(47,s=te.has("PLAY_PREV_CHAPTER_BUTTON")),i.$$.dirty[3]&268435456&&t(31,Li=g===Er.PlaybackState.PLAYING),i.$$.dirty[0]&1073741824&&t(32,di=L==="paused"),i.$$.dirty[0]&16|i.$$.dirty[4]&8&&t(33,Vi=de&&!fe&&!bi),i.$$.dirty[0]&16|i.$$.dirty[4]&8&&t(34,Ji=!de||fe),i.$$.dirty[3]&1073741824&&t(116,$i=C.width>300),i.$$.dirty[3]&1073741824&&t(35,en=C.width>400),i.$$.dirty[0]&536870912&&t(117,Gt=le),i.$$.dirty[0]&469762048|i.$$.dirty[4]&2&&t(36,vi=W!==Er.ChromecastState.NOT_AVAILABLE&&!(P&&k===1)&&!G&&!bi),i.$$.dirty[0]&402653184|i.$$.dirty[3]&16777216|i.$$.dirty[4]&6){let ee=z==="LiveWaitingStart";t(37,tn=!!Zt&&W!==Er.ChromecastState.CONNECTED&&!G&&(k===1&&ee||!ee)&&!Gt&&!bi)}i.$$.dirty[3]&16777216&&t(38,yi=!Gt),i.$$.dirty[3]&1073872896&&t(39,At=!Ue&&C.width>350),i.$$.dirty[0]&67108864|i.$$.dirty[3]&17301504|i.$$.dirty[4]&2&&t(40,mi=It.features.fullscreen&&!(P&&k===1)&&(bi?He:!0)&&!Gt),i.$$.dirty[0]&33554448|i.$$.dirty[3]&1090519040&&t(41,ki=(!T||fe)&&C.width>260&&!Gt&&!(It.features.interactiveHideTime&&bi)),i.$$.dirty[0]&8388616&&t(42,Ri=p||je),i.$$.dirty[0]&33554448|i.$$.dirty[3]&58720256&&t(43,lt=!fe&&!T&&!!pt?.length&&$i&&!n&&!Gt),i.$$.dirty[0]&16777216|i.$$.dirty[4]&1&&t(19,ti=!F||w),i.$$.dirty[0]&1048584|i.$$.dirty[3]&1610612736&&pn(hi(),ge,Qe,je),i.$$.dirty[0]&524288|i.$$.dirty[3]&268435456&&Wi(ti,g),i.$$.dirty[0]&12582912&&hr(Si,p,ci),i.$$.dirty[0]&10485760|i.$$.dirty[3]&134217728&&zo(Ut,p,f),i.$$.dirty[0]&1048576|i.$$.dirty[3]&67108864&&vs(Kt,u,Qe.playButton)},Ui=U(et.state.playPrevChapterDisabledTooltip),[Y,Re,ze,je,fe,Ze,_e,tt,rt,Je,Ye,J,we,Ie,me,$,dt,mt,$e,ti,Qe,Ut,Si,p,F,T,P,G,W,le,L,Li,di,Vi,Ji,en,vi,tn,yi,At,mi,ki,Ri,lt,wi,zi,l,s,a,r,o,y,X,Pe,q,N,K,ce,oe,se,qe,Ve,ke,oi,st,pe,Lt,Vt,Pt,Tt,Ht,Rt,ai,_i,Qt,Ot,ri,Ft,Pi,wt,Ei,gi,ui,ci,pt,un,Fi,xi,Kt,qi,Yi,fi,Xt,cn,fn,Qi,bi,Zi,dn,Mi,Hi,jt,mn,Ai,nn,gn,Bi,Ci,Tn,Pn,Ue,We,He,Ke,ut,St,$i,Gt,n,u,f,g,h,C,w,k,z,de,te,re,hn,on,bn,vn,yn,Ki,Di,pi,Un,ji,zn,xt,Wn,Kn,Rn,jn,rn,ln,ie,vt,sn,an,Gn,xn,wo,Co]}var Ic=class extends B{constructor(e){super(),D(this,e,Z5,Q5,R,{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},F5,[-1,-1,-1,-1,-1,-1])}},jp=Ic;function X5(i){let e,t,n;function o(r){i[28](r)}let l={bottomHidden:i[1],bottomNoSmooth:i[2],showControls:i[3],isAds:i[4],canRewindLive:i[5],logoClickable:i[6],logoHidden:i[7],logoTargetUrl:i[8],showNextPrevButtons:i[9],nextButtonActive:i[10],prevButtonActive:i[11],isOneVideoPlaylist:i[12],supportLink:i[13],customFullscreenSupported:i[14],playNextVideo:i[15],playPrevVideo:i[16],repeatPlaylist:i[17],toggleFullscreen:i[18],returnFocus:i[19],seekToInteractive:i[20],toggleGraph:i[21],playPrevChapter:i[22]};return i[0]!==void 0&&(l.controlsElementRef=i[0]),e=new pp({props:l}),be.push(()=>Oe(e,"controlsElementRef",o)),{c(){A(e.$$.fragment)},m(r,a){E(e,r,a),n=!0},p(r,a){let s={};a&2&&(s.bottomHidden=r[1]),a&4&&(s.bottomNoSmooth=r[2]),a&8&&(s.showControls=r[3]),a&16&&(s.isAds=r[4]),a&32&&(s.canRewindLive=r[5]),a&64&&(s.logoClickable=r[6]),a&128&&(s.logoHidden=r[7]),a&256&&(s.logoTargetUrl=r[8]),a&512&&(s.showNextPrevButtons=r[9]),a&1024&&(s.nextButtonActive=r[10]),a&2048&&(s.prevButtonActive=r[11]),a&4096&&(s.isOneVideoPlaylist=r[12]),a&8192&&(s.supportLink=r[13]),a&16384&&(s.customFullscreenSupported=r[14]),a&32768&&(s.playNextVideo=r[15]),a&65536&&(s.playPrevVideo=r[16]),a&131072&&(s.repeatPlaylist=r[17]),a&262144&&(s.toggleFullscreen=r[18]),a&524288&&(s.returnFocus=r[19]),a&1048576&&(s.seekToInteractive=r[20]),a&2097152&&(s.toggleGraph=r[21]),a&4194304&&(s.playPrevChapter=r[22]),!t&&a&1&&(t=!0,s.controlsElementRef=r[0],Ne(()=>t=!1)),e.$set(s)},i(r){n||(d(e.$$.fragment,r),n=!0)},o(r){m(e.$$.fragment,r),n=!1},d(r){M(e,r)}}}function J5(i){let e,t,n;function o(r){i[27](r)}let l={bottomHidden:i[1],bottomNoSmooth:i[2],showControls:i[3],isAds:i[4],canRewindLive:i[5],logoClickable:i[6],logoHidden:i[7],logoTargetUrl:i[8],showNextPrevButtons:i[9],nextButtonActive:i[10],prevButtonActive:i[11],isOneVideoPlaylist:i[12],supportLink:i[13],customFullscreenSupported:i[14],playNextVideo:i[15],playPrevVideo:i[16],repeatPlaylist:i[17],toggleFullscreen:i[18],returnFocus:i[19],seekToInteractive:i[20],toggleGraph:i[21],playPrevChapter:i[22],onDisabledPlayPrevChapterClick:i[23],onDisabledSeekToInteractiveClick:i[24]};return i[0]!==void 0&&(l.controlsElementRef=i[0]),e=new jp({props:l}),be.push(()=>Oe(e,"controlsElementRef",o)),{c(){A(e.$$.fragment)},m(r,a){E(e,r,a),n=!0},p(r,a){let s={};a&2&&(s.bottomHidden=r[1]),a&4&&(s.bottomNoSmooth=r[2]),a&8&&(s.showControls=r[3]),a&16&&(s.isAds=r[4]),a&32&&(s.canRewindLive=r[5]),a&64&&(s.logoClickable=r[6]),a&128&&(s.logoHidden=r[7]),a&256&&(s.logoTargetUrl=r[8]),a&512&&(s.showNextPrevButtons=r[9]),a&1024&&(s.nextButtonActive=r[10]),a&2048&&(s.prevButtonActive=r[11]),a&4096&&(s.isOneVideoPlaylist=r[12]),a&8192&&(s.supportLink=r[13]),a&16384&&(s.customFullscreenSupported=r[14]),a&32768&&(s.playNextVideo=r[15]),a&65536&&(s.playPrevVideo=r[16]),a&131072&&(s.repeatPlaylist=r[17]),a&262144&&(s.toggleFullscreen=r[18]),a&524288&&(s.returnFocus=r[19]),a&1048576&&(s.seekToInteractive=r[20]),a&2097152&&(s.toggleGraph=r[21]),a&4194304&&(s.playPrevChapter=r[22]),a&8388608&&(s.onDisabledPlayPrevChapterClick=r[23]),a&16777216&&(s.onDisabledSeekToInteractiveClick=r[24]),!t&&a&1&&(t=!0,s.controlsElementRef=r[0],Ne(()=>t=!1)),e.$set(s)},i(r){n||(d(e.$$.fragment,r),n=!0)},o(r){m(e.$$.fragment,r),n=!1},d(r){M(e,r)}}}function $5(i){let e,t,n,o,l=[J5,X5],r=[];function a(s,u){return s[25]?0:1}return e=a(i,-1),t=r[e]=l[e](i),{c(){t.c(),n=it()},m(s,u){r[e].m(s,u),v(s,n,u),o=!0},p(s,[u]){let f=e;e=a(s,u),e===f?r[e].p(s,u):(ae(),m(r[f],1,1,()=>{r[f]=null}),ue(),t=r[e],t?t.p(s,u):(t=r[e]=l[e](s),t.c()),d(t,1),t.m(n.parentNode,n))},i(s){o||(d(t),o=!0)},o(s){m(t),o=!1},d(s){s&&b(n),r[e].d(s)}}}function e6(i,e,t){let n,{bottomHidden:o}=e,{bottomNoSmooth:l=!1}=e,{showControls:r}=e,{controlsElementRef:a=void 0}=e,{isAds:s=!1}=e,{canRewindLive:u}=e,{logoClickable:f}=e,{logoHidden:p}=e,{logoTargetUrl:g=""}=e,{showNextPrevButtons:y}=e,{nextButtonActive:h}=e,{prevButtonActive:C}=e,{isOneVideoPlaylist:w=!1}=e,{supportLink:F}=e,{customFullscreenSupported:T=!0}=e,{playNextVideo:k}=e,{playPrevVideo:P}=e,{repeatPlaylist:G}=e,{toggleFullscreen:W}=e,{returnFocus:z=ks.noop}=e,{seekToInteractive:le}=e,{toggleGraph:de}=e,{playPrevChapter:L}=e,{onDisabledPlayPrevChapterClick:te=ks.noop}=e,{onDisabledSeekToInteractiveClick:re=ks.noop}=e,Pe=ot().ui.isMobile;O(i,Pe,K=>t(25,n=K));function q(K){a=K,t(0,a)}function N(K){a=K,t(0,a)}return i.$$set=K=>{"bottomHidden"in K&&t(1,o=K.bottomHidden),"bottomNoSmooth"in K&&t(2,l=K.bottomNoSmooth),"showControls"in K&&t(3,r=K.showControls),"controlsElementRef"in K&&t(0,a=K.controlsElementRef),"isAds"in K&&t(4,s=K.isAds),"canRewindLive"in K&&t(5,u=K.canRewindLive),"logoClickable"in K&&t(6,f=K.logoClickable),"logoHidden"in K&&t(7,p=K.logoHidden),"logoTargetUrl"in K&&t(8,g=K.logoTargetUrl),"showNextPrevButtons"in K&&t(9,y=K.showNextPrevButtons),"nextButtonActive"in K&&t(10,h=K.nextButtonActive),"prevButtonActive"in K&&t(11,C=K.prevButtonActive),"isOneVideoPlaylist"in K&&t(12,w=K.isOneVideoPlaylist),"supportLink"in K&&t(13,F=K.supportLink),"customFullscreenSupported"in K&&t(14,T=K.customFullscreenSupported),"playNextVideo"in K&&t(15,k=K.playNextVideo),"playPrevVideo"in K&&t(16,P=K.playPrevVideo),"repeatPlaylist"in K&&t(17,G=K.repeatPlaylist),"toggleFullscreen"in K&&t(18,W=K.toggleFullscreen),"returnFocus"in K&&t(19,z=K.returnFocus),"seekToInteractive"in K&&t(20,le=K.seekToInteractive),"toggleGraph"in K&&t(21,de=K.toggleGraph),"playPrevChapter"in K&&t(22,L=K.playPrevChapter),"onDisabledPlayPrevChapterClick"in K&&t(23,te=K.onDisabledPlayPrevChapterClick),"onDisabledSeekToInteractiveClick"in K&&t(24,re=K.onDisabledSeekToInteractiveClick)},[a,o,l,r,s,u,f,p,g,y,h,C,w,F,T,k,P,G,W,z,le,de,L,te,re,n,Pe,q,N]}var Tc=class extends B{constructor(e){super(),D(this,e,e6,$5,R,{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})}},ws=Tc;function t6(i){let e,t,n,o,l,r,a,s,u,f,p,g,y,h,C=i[2].default,w=Ee(C,i,i[1],null),F=[{xmlns:"http://www.w3.org/2000/svg"},{width:"48"},{height:"51"},{fill:"none"},{"aria-hidden":"true"},{"data-testid":"seek-icon"},{role:"img"},i[0]],T={};for(let k=0;k<F.length;k+=1)T=ne(T,F[k]);return{c(){e=V("svg"),w&&w.c(),t=V("g"),n=V("path"),o=V("path"),l=V("defs"),r=V("filter"),a=V("feFlood"),s=V("feColorMatrix"),u=V("feOffset"),f=V("feGaussianBlur"),p=V("feColorMatrix"),g=V("feBlend"),y=V("feBlend"),c(n,"fill","#fff"),c(n,"d","M15.537 10.534a1.157 1.157 0 0 0 .003 1.96l7.658 4.823c.78.491 1.798-.065 1.798-.981v-3.3c7.265.512 13 6.568 13 13.964 0 7.732-6.268 14-14 14-5.98 0-11.088-3.75-13.093-9.032a1.5 1.5 0 0 0-2.805 1.064C10.531 39.441 16.73 44 23.996 44c9.39 0 17-7.611 17-17 0-9.053-7.076-16.453-16-16.971V6.664c0-.918-1.021-1.473-1.8-.98z"),c(o,"stroke","#000"),c(o,"stroke-opacity",".12"),c(o,"stroke-width",".5"),c(o,"d","M15.404 10.322a1.407 1.407 0 0 0 .003 2.384l7.657 4.823c.944.594 2.182-.076 2.182-1.193v-3.03c7.008.631 12.5 6.522 12.5 13.694 0 7.594-6.156 13.75-13.75 13.75-5.873 0-10.89-3.683-12.86-8.871a1.75 1.75 0 1 0-3.272 1.242c2.469 6.503 8.758 11.129 16.132 11.129 9.527 0 17.25-7.723 17.25-17.25 0-9.107-7.056-16.565-16-17.205V6.664c0-1.118-1.241-1.788-2.184-1.19z"),c(t,"filter","url(#a)"),c(a,"flood-opacity","0"),c(a,"result","BackgroundImageFix"),c(s,"in","SourceAlpha"),c(s,"result","hardAlpha"),c(s,"values","0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0"),c(f,"stdDeviation","2.5"),c(p,"values","0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.16 0"),c(g,"in2","BackgroundImageFix"),c(g,"result","effect1_dropShadow_2260_100684"),c(y,"in","SourceGraphic"),c(y,"in2","effect1_dropShadow_2260_100684"),c(y,"result","shape"),c(r,"id","a"),c(r,"width","43.996"),c(r,"height","49.5"),c(r,"x","2.5"),c(r,"y","0"),c(r,"color-interpolation-filters","sRGB"),c(r,"filterUnits","userSpaceOnUse"),ye(e,T)},m(k,P){v(k,e,P),w&&w.m(e,null),_(e,t),_(t,n),_(t,o),_(e,l),_(l,r),_(r,a),_(r,s),_(r,u),_(r,f),_(r,p),_(r,g),_(r,y),h=!0},p(k,[P]){w&&w.p&&(!h||P&2)&&Ae(w,C,k,k[1],h?Me(C,k[1],P,null):Le(k[1]),null),ye(e,T=Be(F,[{xmlns:"http://www.w3.org/2000/svg"},{width:"48"},{height:"51"},{fill:"none"},{"aria-hidden":"true"},{"data-testid":"seek-icon"},{role:"img"},P&1&&k[0]]))},i(k){h||(d(w,k),h=!0)},o(k){m(w,k),h=!1},d(k){k&&b(e),w&&w.d(k)}}}function i6(i,e,t){let{$$slots:n={},$$scope:o}=e;return i.$$set=l=>{t(0,e=ne(ne({},e),ve(l))),"$$scope"in l&&t(1,o=l.$$scope)},e=ve(e),[e,o,n]}var Pc=class extends B{constructor(e){super(),D(this,e,i6,t6,R,{})}},Gp=Pc;function n6(i){let e,t;return e=new Gp({props:{style:i[0]}}),{c(){A(e.$$.fragment)},m(n,o){E(e,n,o),t=!0},p(n,[o]){let l={};o&1&&(l.style=n[0]),e.$set(l)},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){m(e.$$.fragment,n),t=!1},d(n){M(e,n)}}}function o6(i,e,t){let n,{reversed:o=!1}=e;return i.$$set=l=>{"reversed"in l&&t(1,o=l.reversed)},i.$$.update=()=>{i.$$.dirty&2&&t(0,n=o?"transform: scaleX(-1);":void 0)},[n,o]}var Ec=class extends B{constructor(e){super(),D(this,e,o6,n6,R,{reversed:1})}},xp=Ec;function r6(i){let e,t,n,o,l,r,a,s,u,f,p,g,y,h,C,w,F=i[2].default,T=Ee(F,i,i[1],null),k=[{xmlns:"http://www.w3.org/2000/svg"},{width:"48"},{height:"48"},{fill:"none"},{"aria-hidden":"true"},{"data-testid":"subtitles-on-icon"},{role:"img"},i[0]],P={};for(let G=0;G<k.length;G+=1)P=ne(P,k[G]);return{c(){e=V("svg"),T&&T.c(),t=V("g"),n=V("path"),o=V("path"),l=V("defs"),r=V("clipPath"),a=V("path"),s=V("filter"),u=V("feFlood"),f=V("feColorMatrix"),p=V("feOffset"),g=V("feGaussianBlur"),y=V("feColorMatrix"),h=V("feBlend"),C=V("feBlend"),c(n,"fill","#fff"),c(n,"fill-rule","evenodd"),c(n,"d","M28.167 7h-8.334c-2.463 0-4.404 0-5.966.128-1.594.13-2.925.4-4.134 1.016a10.5 10.5 0 0 0-4.589 4.59c-.616 1.208-.886 2.54-1.016 4.133C4 18.429 4 20.37 4 22.833v2.334c0 2.463 0 4.404.128 5.966.13 1.594.4 2.925 1.016 4.134a10.5 10.5 0 0 0 4.59 4.589c1.208.616 2.54.886 4.133 1.016 1.562.128 3.502.128 5.966.128h8.334c2.463 0 4.404 0 5.966-.128 1.594-.13 2.925-.4 4.134-1.016a10.5 10.5 0 0 0 4.589-4.59c.616-1.208.886-2.54 1.016-4.133.128-1.562.128-3.502.128-5.966v-2.334c0-2.463 0-4.404-.128-5.966-.13-1.594-.4-2.925-1.016-4.134a10.5 10.5 0 0 0-4.59-4.589c-1.208-.616-2.54-.886-4.133-1.016C32.571 7 30.63 7 28.167 7M13.5 28a1.5 1.5 0 0 0 0 3h11a1.5 1.5 0 0 0 0-3zM12 22a1.5 1.5 0 0 1 1.5-1.5h4a1.5 1.5 0 0 1 0 3h-4A1.5 1.5 0 0 1 12 22m18.5 6a1.5 1.5 0 0 0 0 3h4a1.5 1.5 0 0 0 0-3zM22 22a1.5 1.5 0 0 1 1.5-1.5h11a1.5 1.5 0 0 1 0 3h-11A1.5 1.5 0 0 1 22 22"),c(n,"clip-rule","evenodd"),c(o,"stroke","#000"),c(o,"stroke-opacity",".12"),c(o,"stroke-width",".5"),c(o,"d","M28.167 6.75h-8.344c-2.455 0-4.405 0-5.977.128-1.609.132-2.976.407-4.226 1.044a10.75 10.75 0 0 0-4.698 4.698c-.637 1.25-.912 2.617-1.044 4.226-.128 1.572-.128 3.522-.128 5.977v2.354c0 2.455 0 4.405.128 5.977.132 1.609.407 2.976 1.044 4.226a10.75 10.75 0 0 0 4.698 4.698c1.25.637 2.617.912 4.226 1.044 1.572.128 3.522.128 5.977.128h8.354c2.455 0 4.404 0 5.977-.128 1.609-.132 2.976-.407 4.226-1.044a10.75 10.75 0 0 0 4.698-4.698c.637-1.25.912-2.617 1.044-4.226.128-1.573.128-3.522.128-5.977v-2.354c0-2.455 0-4.405-.128-5.977-.132-1.609-.407-2.976-1.044-4.226a10.75 10.75 0 0 0-4.698-4.698c-1.25-.637-2.617-.912-4.226-1.044-1.572-.128-3.522-.128-5.977-.128zM12.25 29.5c0-.69.56-1.25 1.25-1.25h11a1.25 1.25 0 1 1 0 2.5h-11c-.69 0-1.25-.56-1.25-1.25Zm0-7.5c0-.69.56-1.25 1.25-1.25h4a1.25 1.25 0 1 1 0 2.5h-4c-.69 0-1.25-.56-1.25-1.25Zm17 7.5c0-.69.56-1.25 1.25-1.25h4a1.25 1.25 0 1 1 0 2.5h-4c-.69 0-1.25-.56-1.25-1.25Zm-7-7.5c0-.69.56-1.25 1.25-1.25h11a1.25 1.25 0 1 1 0 2.5h-11c-.69 0-1.25-.56-1.25-1.25Z"),c(t,"clip-path","url(#c)"),c(t,"filter","url(#a)"),c(a,"fill","#fff"),c(a,"d","M0 0h48v48H0z"),c(r,"id","c"),c(u,"flood-opacity","0"),c(u,"result","BackgroundImageFix"),c(f,"in","SourceAlpha"),c(f,"result","hardAlpha"),c(f,"values","0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0"),c(g,"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(h,"in2","BackgroundImageFix"),c(h,"result","effect1_dropShadow_2260_104204"),c(C,"in","SourceGraphic"),c(C,"in2","effect1_dropShadow_2260_104204"),c(C,"result","shape"),c(s,"id","a"),c(s,"width","51"),c(s,"height","45"),c(s,"x","-1.5"),c(s,"y","1.5"),c(s,"color-interpolation-filters","sRGB"),c(s,"filterUnits","userSpaceOnUse"),ye(e,P)},m(G,W){v(G,e,W),T&&T.m(e,null),_(e,t),_(t,n),_(t,o),_(e,l),_(l,r),_(r,a),_(l,s),_(s,u),_(s,f),_(s,p),_(s,g),_(s,y),_(s,h),_(s,C),w=!0},p(G,[W]){T&&T.p&&(!w||W&2)&&Ae(T,F,G,G[1],w?Me(F,G[1],W,null):Le(G[1]),null),ye(e,P=Be(k,[{xmlns:"http://www.w3.org/2000/svg"},{width:"48"},{height:"48"},{fill:"none"},{"aria-hidden":"true"},{"data-testid":"subtitles-on-icon"},{role:"img"},W&1&&G[0]]))},i(G){w||(d(T,G),w=!0)},o(G){m(T,G),w=!1},d(G){G&&b(e),T&&T.d(G)}}}function l6(i,e,t){let{$$slots:n={},$$scope:o}=e;return i.$$set=l=>{t(0,e=ne(ne({},e),ve(l))),"$$scope"in l&&t(1,o=l.$$scope)},e=ve(e),[e,o,n]}var Mc=class extends B{constructor(e){super(),D(this,e,l6,r6,R,{})}},Yp=Mc;function s6(i){let e,t,n,o,l,r,a,s,u,f,p,g,y,h,C,w,F,T=i[2].default,k=Ee(T,i,i[1],null),P=[{xmlns:"http://www.w3.org/2000/svg"},{width:"48"},{height:"48"},{fill:"none"},{"aria-hidden":"true"},{"data-testid":"subtitles-off-icon"},{role:"img"},i[0]],G={};for(let W=0;W<P.length;W+=1)G=ne(G,P[W]);return{c(){e=V("svg"),k&&k.c(),t=V("g"),n=V("path"),o=V("path"),l=V("path"),r=V("defs"),a=V("clipPath"),s=V("path"),u=V("filter"),f=V("feFlood"),p=V("feColorMatrix"),g=V("feOffset"),y=V("feGaussianBlur"),h=V("feColorMatrix"),C=V("feBlend"),w=V("feBlend"),c(n,"fill","#fff"),c(n,"fill-rule","evenodd"),c(n,"d","M6.56 4.44a1.5 1.5 0 1 0-2.12 2.12l3.088 3.09a10.5 10.5 0 0 0-2.384 3.083c-.616 1.21-.886 2.54-1.016 4.134C4 18.429 4 20.369 4 22.833v2.334c0 2.463 0 4.404.128 5.966.13 1.594.4 2.925 1.016 4.134a10.5 10.5 0 0 0 4.59 4.589c1.208.616 2.54.886 4.133 1.016 1.562.128 3.502.128 5.966.128h8.334c2.463 0 4.404 0 5.966-.128 1.437-.117 2.66-.348 3.773-.844l3.533 3.533a1.5 1.5 0 0 0 2.122-2.122l-37-37ZM13.5 28a1.5 1.5 0 0 0 0 3h11a1.5 1.5 0 0 0 0-3zM12 22a1.5 1.5 0 0 1 1.5-1.5h4a1.5 1.5 0 0 1 0 3h-4A1.5 1.5 0 0 1 12 22"),c(n,"clip-rule","evenodd"),c(o,"fill","#fff"),c(o,"d","M34.5 23.5h-4.639l12.552 12.551q.237-.381.443-.784c.616-1.21.886-2.54 1.016-4.134.128-1.562.128-3.502.128-5.966v-2.334c0-2.463 0-4.404-.128-5.966-.13-1.594-.4-2.925-1.016-4.134a10.5 10.5 0 0 0-4.59-4.589c-1.208-.616-2.54-.886-4.133-1.016C32.571 7 30.63 7 28.167 7h-8.334c-2.463 0-4.404 0-5.966.128l-.347.03L26.86 20.5h7.64a1.5 1.5 0 0 1 0 3"),c(l,"stroke","#000"),c(l,"stroke-opacity",".12"),c(l,"stroke-width",".5"),c(l,"d","M29.861 23.25h-.603l.427.427 12.55 12.551.223.223.167-.268q.243-.39.453-.803c.637-1.25.912-2.617 1.044-4.226.128-1.573.128-3.522.128-5.977v-2.354c0-2.455 0-4.405-.128-5.977-.132-1.609-.407-2.976-1.044-4.226a10.75 10.75 0 0 0-4.698-4.698c-1.25-.637-2.617-.912-4.226-1.044-1.572-.128-3.522-.128-5.977-.128h-8.354c-2.455 0-4.405 0-5.977.128q-.177.014-.35.032l-.527.051.374.374 13.341 13.342.074.073H34.5a1.25 1.25 0 1 1 0 2.5zM6.737 4.263a1.75 1.75 0 0 0-2.474 2.474l2.903 2.904a10.8 10.8 0 0 0-2.244 2.979c-.637 1.25-.912 2.617-1.044 4.226-.128 1.572-.128 3.522-.128 5.977v2.354c0 2.455 0 4.405.128 5.977.132 1.609.407 2.976 1.044 4.226a10.75 10.75 0 0 0 4.698 4.698c1.25.637 2.617.912 4.226 1.044 1.572.128 3.522.128 5.977.128h8.354c2.455 0 4.404 0 5.977-.128 1.384-.114 2.59-.333 3.696-.797l3.413 3.412a1.75 1.75 0 1 0 2.474-2.474zM12.25 29.5c0-.69.56-1.25 1.25-1.25h11a1.25 1.25 0 1 1 0 2.5h-11c-.69 0-1.25-.56-1.25-1.25Zm0-7.5c0-.69.56-1.25 1.25-1.25h4a1.25 1.25 0 1 1 0 2.5h-4c-.69 0-1.25-.56-1.25-1.25Z"),c(t,"clip-path","url(#c)"),c(t,"filter","url(#a)"),c(s,"fill","#fff"),c(s,"d","M0 0h48v48H0z"),c(a,"id","c"),c(f,"flood-opacity","0"),c(f,"result","BackgroundImageFix"),c(p,"in","SourceAlpha"),c(p,"result","hardAlpha"),c(p,"values","0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0"),c(y,"stdDeviation","2.5"),c(h,"values","0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.16 0"),c(C,"in2","BackgroundImageFix"),c(C,"result","effect1_dropShadow_2260_104293"),c(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"),ye(e,G)},m(W,z){v(W,e,z),k&&k.m(e,null),_(e,t),_(t,n),_(t,o),_(t,l),_(e,r),_(r,a),_(a,s),_(r,u),_(u,f),_(u,p),_(u,g),_(u,y),_(u,h),_(u,C),_(u,w),F=!0},p(W,[z]){k&&k.p&&(!F||z&2)&&Ae(k,T,W,W[1],F?Me(T,W[1],z,null):Le(W[1]),null),ye(e,G=Be(P,[{xmlns:"http://www.w3.org/2000/svg"},{width:"48"},{height:"48"},{fill:"none"},{"aria-hidden":"true"},{"data-testid":"subtitles-off-icon"},{role:"img"},z&1&&W[0]]))},i(W){F||(d(k,W),F=!0)},o(W){m(k,W),F=!1},d(W){W&&b(e),k&&k.d(W)}}}function a6(i,e,t){let{$$slots:n={},$$scope:o}=e;return i.$$set=l=>{t(0,e=ne(ne({},e),ve(l))),"$$scope"in l&&t(1,o=l.$$scope)},e=ve(e),[e,o,n]}var Ac=class extends B{constructor(e){super(),D(this,e,a6,s6,R,{})}},Qp=Ac;function u6(i){let e,t;return e=new Yp({}),{c(){A(e.$$.fragment)},m(n,o){E(e,n,o),t=!0},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){m(e.$$.fragment,n),t=!1},d(n){M(e,n)}}}function c6(i){let e,t;return e=new Qp({}),{c(){A(e.$$.fragment)},m(n,o){E(e,n,o),t=!0},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){m(e.$$.fragment,n),t=!1},d(n){M(e,n)}}}function f6(i){let e,t,n,o,l=[c6,u6],r=[];function a(s,u){return s[0]?0:1}return e=a(i,-1),t=r[e]=l[e](i),{c(){t.c(),n=it()},m(s,u){r[e].m(s,u),v(s,n,u),o=!0},p(s,[u]){let f=e;e=a(s,u),e!==f&&(ae(),m(r[f],1,1,()=>{r[f]=null}),ue(),t=r[e],t||(t=r[e]=l[e](s),t.c()),d(t,1),t.m(n.parentNode,n))},i(s){o||(d(t),o=!0)},o(s){m(t),o=!1},d(s){s&&b(n),r[e].d(s)}}}function d6(i,e,t){let{isOff:n=!1}=e;return i.$$set=o=>{"isOff"in o&&t(0,n=o.isOff)},[n]}var Lc=class extends B{constructor(e){super(),D(this,e,d6,f6,R,{isOff:0})}},Vc=Lc;function m6(i){let e,t,n,o,l,r,a,s,u,f,p,g,y,h,C=i[2].default,w=Ee(C,i,i[1],null),F=[{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]],T={};for(let k=0;k<F.length;k+=1)T=ne(T,F[k]);return{c(){e=V("svg"),w&&w.c(),t=V("g"),n=V("path"),o=V("path"),l=V("defs"),r=V("filter"),a=V("feFlood"),s=V("feColorMatrix"),u=V("feOffset"),f=V("feGaussianBlur"),p=V("feColorMatrix"),g=V("feBlend"),y=V("feBlend"),c(n,"fill","#fff"),c(n,"d","M24 22.677v-5.87a1.2 1.2 0 0 0-1.792-1.045L9.51 22.955a1.2 1.2 0 0 0 0 2.088l12.697 7.192a1.2 1.2 0 0 0 1.791-1.044v-5.873l12.21 6.916A1.2 1.2 0 0 0 38 31.19V16.805a1.2 1.2 0 0 0-1.791-1.044z"),c(o,"stroke","#000"),c(o,"stroke-opacity",".12"),c(o,"stroke-width",".5"),c(o,"d","M24.25 16.806v5.442l11.835-6.704a1.45 1.45 0 0 1 2.165 1.261V31.19a1.45 1.45 0 0 1-2.165 1.262L24.25 25.747v5.444a1.45 1.45 0 0 1-2.164 1.262L9.388 25.26a1.45 1.45 0 0 1 0-2.523l12.697-7.192a1.45 1.45 0 0 1 2.164 1.261Z"),c(t,"filter","url(#a)"),c(a,"flood-opacity","0"),c(a,"result","BackgroundImageFix"),c(s,"in","SourceAlpha"),c(s,"result","hardAlpha"),c(s,"values","0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0"),c(f,"stdDeviation","2.5"),c(p,"values","0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.16 0"),c(g,"in2","BackgroundImageFix"),c(g,"result","effect1_dropShadow_2260_106627"),c(y,"in","SourceGraphic"),c(y,"in2","effect1_dropShadow_2260_106627"),c(y,"result","shape"),c(r,"id","a"),c(r,"width","40.098"),c(r,"height","27.785"),c(r,"x","3.402"),c(r,"y","10.105"),c(r,"color-interpolation-filters","sRGB"),c(r,"filterUnits","userSpaceOnUse"),ye(e,T)},m(k,P){v(k,e,P),w&&w.m(e,null),_(e,t),_(t,n),_(t,o),_(e,l),_(l,r),_(r,a),_(r,s),_(r,u),_(r,f),_(r,p),_(r,g),_(r,y),h=!0},p(k,[P]){w&&w.p&&(!h||P&2)&&Ae(w,C,k,k[1],h?Me(C,k[1],P,null):Le(k[1]),null),ye(e,T=Be(F,[{xmlns:"http://www.w3.org/2000/svg"},{width:"48"},{height:"48"},{fill:"none"},{"aria-hidden":"true"},{"data-testid":"rate-change-icon"},{role:"img"},P&1&&k[0]]))},i(k){h||(d(w,k),h=!0)},o(k){m(w,k),h=!1},d(k){k&&b(e),w&&w.d(k)}}}function p6(i,e,t){let{$$slots:n={},$$scope:o}=e;return i.$$set=l=>{t(0,e=ne(ne({},e),ve(l))),"$$scope"in l&&t(1,o=l.$$scope)},e=ve(e),[e,o,n]}var Rc=class extends B{constructor(e){super(),D(this,e,p6,m6,R,{})}},Zp=Rc;function _6(i){let e,t;return e=new Zp({props:{style:i[0]}}),{c(){A(e.$$.fragment)},m(n,o){E(e,n,o),t=!0},p(n,[o]){let l={};o&1&&(l.style=n[0]),e.$set(l)},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){m(e.$$.fragment,n),t=!1},d(n){M(e,n)}}}function g6(i,e,t){let n,{reversed:o=!1}=e;return i.$$set=l=>{"reversed"in l&&t(1,o=l.reversed)},i.$$.update=()=>{i.$$.dirty&2&&t(0,n=o?"transform: scaleX(-1);":void 0)},[n,o]}var Bc=class extends B{constructor(e){super(),D(this,e,g6,_6,R,{reversed:1})}},Xp=Bc;function h6(i){let e,t,n,o,l,r,a,s,u,f,p,g,y,h,C=i[2].default,w=Ee(C,i,i[1],null),F=[{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]],T={};for(let k=0;k<F.length;k+=1)T=ne(T,F[k]);return{c(){e=V("svg"),w&&w.c(),t=V("g"),n=V("path"),o=V("path"),l=V("defs"),r=V("filter"),a=V("feFlood"),s=V("feColorMatrix"),u=V("feOffset"),f=V("feGaussianBlur"),p=V("feColorMatrix"),g=V("feBlend"),y=V("feBlend"),c(n,"fill","#fff"),c(n,"d","M14 21.817c.631-.505 1.627-1.054 3.084-1.857l13.009-7.172c2.268-1.25 3.402-1.875 4.332-1.778a2.9 2.9 0 0 1 2.026 1.134c.549.73.549 1.991.549 4.511v14.69c0 2.52 0 3.78-.549 4.51a2.9 2.9 0 0 1-2.026 1.135c-.93.097-2.064-.528-4.332-1.778L17.084 28.04c-1.457-.803-2.453-1.352-3.084-1.857V34.5a1.5 1.5 0 0 1-3 0v-21a1.5 1.5 0 0 1 3 0z"),c(o,"stroke","#000"),c(o,"stroke-opacity",".12"),c(o,"stroke-width",".5"),c(o,"d","m16.964 19.74-.029.016c-1.162.641-2.046 1.129-2.685 1.567V13.5a1.75 1.75 0 1 0-3.5 0v21a1.75 1.75 0 1 0 3.5 0v-7.823c.639.438 1.523.926 2.685 1.567l.029.015 13.008 7.172.012.006c1.124.62 1.983 1.093 2.676 1.398.695.306 1.26.46 1.791.404a3.16 3.16 0 0 0 2.2-1.233c.317-.421.46-.976.53-1.711.069-.733.069-1.688.069-2.936V16.641c0-1.248 0-2.203-.07-2.936-.07-.735-.212-1.29-.529-1.711a3.16 3.16 0 0 0-2.2-1.233c-.53-.055-1.096.098-1.79.404-.694.305-1.553.778-2.677 1.398l-.012.006z"),c(t,"filter","url(#a)"),c(a,"flood-opacity","0"),c(a,"result","BackgroundImageFix"),c(s,"in","SourceAlpha"),c(s,"result","hardAlpha"),c(s,"values","0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0"),c(f,"stdDeviation","2.5"),c(p,"values","0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.16 0"),c(g,"in2","BackgroundImageFix"),c(g,"result","effect1_dropShadow_2340_106922"),c(y,"in","SourceGraphic"),c(y,"in2","effect1_dropShadow_2340_106922"),c(y,"result","shape"),c(r,"id","a"),c(r,"width","37"),c(r,"height","37"),c(r,"x","5.5"),c(r,"y","5.5"),c(r,"color-interpolation-filters","sRGB"),c(r,"filterUnits","userSpaceOnUse"),ye(e,T)},m(k,P){v(k,e,P),w&&w.m(e,null),_(e,t),_(t,n),_(t,o),_(e,l),_(l,r),_(r,a),_(r,s),_(r,u),_(r,f),_(r,p),_(r,g),_(r,y),h=!0},p(k,[P]){w&&w.p&&(!h||P&2)&&Ae(w,C,k,k[1],h?Me(C,k[1],P,null):Le(k[1]),null),ye(e,T=Be(F,[{xmlns:"http://www.w3.org/2000/svg"},{width:"48"},{height:"48"},{fill:"none"},{"aria-hidden":"true"},{"data-testid":"episodes-seek-icon"},{role:"img"},P&1&&k[0]]))},i(k){h||(d(w,k),h=!0)},o(k){m(w,k),h=!1},d(k){k&&b(e),w&&w.d(k)}}}function b6(i,e,t){let{$$slots:n={},$$scope:o}=e;return i.$$set=l=>{t(0,e=ne(ne({},e),ve(l))),"$$scope"in l&&t(1,o=l.$$scope)},e=ve(e),[e,o,n]}var Dc=class extends B{constructor(e){super(),D(this,e,b6,h6,R,{})}},Jp=Dc;function v6(i){let e,t;return e=new Jp({props:{style:i[0]}}),{c(){A(e.$$.fragment)},m(n,o){E(e,n,o),t=!0},p(n,[o]){let l={};o&1&&(l.style=n[0]),e.$set(l)},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){m(e.$$.fragment,n),t=!1},d(n){M(e,n)}}}function y6(i,e,t){let n,{reversed:o=!1}=e;return i.$$set=l=>{"reversed"in l&&t(1,o=l.reversed)},i.$$.update=()=>{i.$$.dirty&2&&t(0,n=o?"transform: scaleX(-1);":void 0)},[n,o]}var Nc=class extends B{constructor(e){super(),D(this,e,y6,v6,R,{reversed:1})}},$p=Nc;function k6(i){Ce(i,"svelte-1ad3n06",`.hot-key-helpers-container.svelte-1ad3n06.svelte-1ad3n06{position:absolute;z-index:var(--hot-key-helpers-container-z-index);top:calc(50% - 40px);left:calc(50% - 100px);width:200px;height:120px;display:flex;align-items:center;flex-direction:column;animation:svelte-1ad3n06-fadeIn ease var(--controls-transition-duration);padding-top:14px;box-sizing:border-box}.hot-key-helpers-container.svelte-1ad3n06>div.svelte-1ad3n06{width:48px;height:48px;display:flex;justify-content:center;align-items:center}.hot-key-helpers-container.svelte-1ad3n06 svg[data-testid="volume-off-icon"],.hot-key-helpers-container.svelte-1ad3n06 svg[data-testid="volume-max-icon"]{transform:scale(2)}.hot-key-helpers-container.svelte-1ad3n06 svg[data-testid="replay-icon"],.hot-key-helpers-container.svelte-1ad3n06 svg[data-testid="play-icon"],.hot-key-helpers-container.svelte-1ad3n06 svg[data-testid="pause-icon"]{transform:scale(2.5)}.hot-key-helpers-container--left.svelte-1ad3n06.svelte-1ad3n06{left:calc(25% - 100px)}.hot-key-helpers-container--right.svelte-1ad3n06.svelte-1ad3n06{left:calc(75% - 100px)}.hot-key-helpers-text.svelte-1ad3n06.svelte-1ad3n06{text-align:center;font-feature-settings:'clig' off, 'liga' off;text-shadow:0px 0px 5px rgba(0, 0, 0, 0.16);font-size:15px;font-style:normal;font-weight:600;line-height:20px;letter-spacing:-0.105px;width:100%;max-height:40px;margin-top:4px;display:-webkit-box;text-overflow:ellipsis;white-space:pre-wrap;overflow:hidden;-webkit-line-clamp:2;-webkit-box-orient:vertical}.hidden.svelte-1ad3n06.svelte-1ad3n06{visibility:hidden;animation:svelte-1ad3n06-fadeOut ease var(--controls-transition-duration);width:0;height:0}@keyframes svelte-1ad3n06-fadeIn{0%{opacity:0}100%{opacity:1}}@keyframes svelte-1ad3n06-fadeOut{0%{opacity:1}100%{opacity:0}}`)}function e0(i){let e,t=["BACKWARD_SEEK","FORWARD_SEEK"].includes(i[4]),n,o,l,r,a,s,u=["RATE_DOWN","RATE_UP"].includes(i[4]),f,p=["EPISODE_PREV","EPISODE_NEXT"].includes(i[4]),g,y,h,C,w,F=t&&t0(i),T=i[4]==="PAUSE"&&i0(i),k=i[4]==="PLAY"&&n0(i),P=i[4]==="REPLAY"&&o0(i),G=i[4]==="SUBTITLES_OFF"&&r0(i),W=i[4]==="SUBTITLES_ON"&&l0(i),z=u&&s0(i),le=p&&a0(i),de=i[4]==="MUTE"&&u0(i),L=i[4]==="VOLUME"&&c0(i),te=i[5]&&f0(i);return{c(){e=I("div"),F&&F.c(),n=H(),T&&T.c(),o=H(),k&&k.c(),l=H(),P&&P.c(),r=H(),G&&G.c(),a=H(),W&&W.c(),s=H(),z&&z.c(),f=H(),le&&le.c(),g=H(),de&&de.c(),y=H(),L&&L.c(),h=H(),te&&te.c(),C=it(),c(e,"class","svelte-1ad3n06")},m(re,X){v(re,e,X),F&&F.m(e,null),_(e,n),T&&T.m(e,null),_(e,o),k&&k.m(e,null),_(e,l),P&&P.m(e,null),_(e,r),G&&G.m(e,null),_(e,a),W&&W.m(e,null),_(e,s),z&&z.m(e,null),_(e,f),le&&le.m(e,null),_(e,g),de&&de.m(e,null),_(e,y),L&&L.m(e,null),v(re,h,X),te&&te.m(re,X),v(re,C,X),w=!0},p(re,X){X&16&&(t=["BACKWARD_SEEK","FORWARD_SEEK"].includes(re[4])),t?F?(F.p(re,X),X&16&&d(F,1)):(F=t0(re),F.c(),d(F,1),F.m(e,n)):F&&(ae(),m(F,1,1,()=>{F=null}),ue()),re[4]==="PAUSE"?T?X&16&&d(T,1):(T=i0(re),T.c(),d(T,1),T.m(e,o)):T&&(ae(),m(T,1,1,()=>{T=null}),ue()),re[4]==="PLAY"?k?X&16&&d(k,1):(k=n0(re),k.c(),d(k,1),k.m(e,l)):k&&(ae(),m(k,1,1,()=>{k=null}),ue()),re[4]==="REPLAY"?P?X&16&&d(P,1):(P=o0(re),P.c(),d(P,1),P.m(e,r)):P&&(ae(),m(P,1,1,()=>{P=null}),ue()),re[4]==="SUBTITLES_OFF"?G?X&16&&d(G,1):(G=r0(re),G.c(),d(G,1),G.m(e,a)):G&&(ae(),m(G,1,1,()=>{G=null}),ue()),re[4]==="SUBTITLES_ON"?W?X&16&&d(W,1):(W=l0(re),W.c(),d(W,1),W.m(e,s)):W&&(ae(),m(W,1,1,()=>{W=null}),ue()),X&16&&(u=["RATE_DOWN","RATE_UP"].includes(re[4])),u?z?(z.p(re,X),X&16&&d(z,1)):(z=s0(re),z.c(),d(z,1),z.m(e,f)):z&&(ae(),m(z,1,1,()=>{z=null}),ue()),X&16&&(p=["EPISODE_PREV","EPISODE_NEXT"].includes(re[4])),p?le?(le.p(re,X),X&16&&d(le,1)):(le=a0(re),le.c(),d(le,1),le.m(e,g)):le&&(ae(),m(le,1,1,()=>{le=null}),ue()),re[4]==="MUTE"?de?X&16&&d(de,1):(de=u0(re),de.c(),d(de,1),de.m(e,y)):de&&(ae(),m(de,1,1,()=>{de=null}),ue()),re[4]==="VOLUME"?L?X&16&&d(L,1):(L=c0(re),L.c(),d(L,1),L.m(e,null)):L&&(ae(),m(L,1,1,()=>{L=null}),ue()),re[5]?te?te.p(re,X):(te=f0(re),te.c(),te.m(C.parentNode,C)):te&&(te.d(1),te=null)},i(re){w||(d(F),d(T),d(k),d(P),d(G),d(W),d(z),d(le),d(de),d(L),w=!0)},o(re){m(F),m(T),m(k),m(P),m(G),m(W),m(z),m(le),m(de),m(L),w=!1},d(re){re&&(b(e),b(h),b(C)),F&&F.d(),T&&T.d(),k&&k.d(),P&&P.d(),G&&G.d(),W&&W.d(),z&&z.d(),le&&le.d(),de&&de.d(),L&&L.d(),te&&te.d(re)}}}function t0(i){let e,t;return e=new xp({props:{reversed:i[4]==="FORWARD_SEEK"}}),{c(){A(e.$$.fragment)},m(n,o){E(e,n,o),t=!0},p(n,o){let l={};o&16&&(l.reversed=n[4]==="FORWARD_SEEK"),e.$set(l)},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){m(e.$$.fragment,n),t=!1},d(n){M(e,n)}}}function i0(i){let e,t;return e=new $l({}),{c(){A(e.$$.fragment)},m(n,o){E(e,n,o),t=!0},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){m(e.$$.fragment,n),t=!1},d(n){M(e,n)}}}function n0(i){let e,t;return e=new Ir({}),{c(){A(e.$$.fragment)},m(n,o){E(e,n,o),t=!0},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){m(e.$$.fragment,n),t=!1},d(n){M(e,n)}}}function o0(i){let e,t;return e=new cs({}),{c(){A(e.$$.fragment)},m(n,o){E(e,n,o),t=!0},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){m(e.$$.fragment,n),t=!1},d(n){M(e,n)}}}function r0(i){let e,t;return e=new Vc({props:{isOff:!0}}),{c(){A(e.$$.fragment)},m(n,o){E(e,n,o),t=!0},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){m(e.$$.fragment,n),t=!1},d(n){M(e,n)}}}function l0(i){let e,t;return e=new Vc({}),{c(){A(e.$$.fragment)},m(n,o){E(e,n,o),t=!0},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){m(e.$$.fragment,n),t=!1},d(n){M(e,n)}}}function s0(i){let e,t;return e=new Xp({props:{reversed:i[4]==="RATE_UP"}}),{c(){A(e.$$.fragment)},m(n,o){E(e,n,o),t=!0},p(n,o){let l={};o&16&&(l.reversed=n[4]==="RATE_UP"),e.$set(l)},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){m(e.$$.fragment,n),t=!1},d(n){M(e,n)}}}function a0(i){let e,t;return e=new $p({props:{reversed:i[4]==="EPISODE_NEXT"}}),{c(){A(e.$$.fragment)},m(n,o){E(e,n,o),t=!0},p(n,o){let l={};o&16&&(l.reversed=n[4]==="EPISODE_NEXT"),e.$set(l)},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){m(e.$$.fragment,n),t=!1},d(n){M(e,n)}}}function u0(i){let e,t;return e=new Go({props:{volume:0}}),{c(){A(e.$$.fragment)},m(n,o){E(e,n,o),t=!0},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){m(e.$$.fragment,n),t=!1},d(n){M(e,n)}}}function c0(i){let e,t;return e=new Go({props:{volume:1}}),{c(){A(e.$$.fragment)},m(n,o){E(e,n,o),t=!0},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){m(e.$$.fragment,n),t=!1},d(n){M(e,n)}}}function f0(i){let e,t;return{c(){e=I("span"),t=De(i[5]),c(e,"class","hot-key-helpers-text svelte-1ad3n06")},m(n,o){v(n,e,o),_(e,t)},p(n,o){o&32&&xe(t,n[5])},d(n){n&&b(e)}}}function w6(i){let e,t,n=!i[1]&&i[4]&&e0(i);return{c(){e=I("div"),n&&n.c(),c(e,"class","hot-key-helpers-container svelte-1ad3n06"),j(e,"hidden",i[1]),j(e,"hot-key-helpers-container--left",i[2]),j(e,"hot-key-helpers-container--right",i[3])},m(o,l){v(o,e,l),n&&n.m(e,null),t=!0},p(o,[l]){!o[1]&&o[4]?n?(n.p(o,l),l&18&&d(n,1)):(n=e0(o),n.c(),d(n,1),n.m(e,null)):n&&(ae(),m(n,1,1,()=>{n=null}),ue()),(!t||l&2)&&j(e,"hidden",o[1]),(!t||l&4)&&j(e,"hot-key-helpers-container--left",o[2]),(!t||l&8)&&j(e,"hot-key-helpers-container--right",o[3])},i(o){t||(d(n),t=!0)},o(o){m(n),t=!1},d(o){o&&b(e),n&&n.d()}}}function C6(i,e,t){let n,o=he,l=()=>(o(),o=Wt(r,g=>t(6,n=g)),r);i.$$.on_destroy.push(()=>o());let{data:r}=e;l();let a,s,u,f,p;return i.$$set=g=>{"data"in g&&l(t(0,r=g.data))},i.$$.update=()=>{i.$$.dirty&64&&(t(1,a=!n),t(2,s=n?.type==="BACKWARD_SEEK"),t(3,u=n?.type==="FORWARD_SEEK"),t(4,f=n?.type),n?.t?t(5,p=U(n.t.key,{value:n.t.value||""})):t(5,p=n?.text))},[r,a,s,u,f,p,n]}var Oc=class extends B{constructor(e){super(),D(this,e,C6,w6,R,{data:0},k6)}},d0=Oc;function S6(i){Ce(i,"svelte-1yzc86r",".immersive-controls.svelte-1yzc86r{position:absolute;display:flex;flex-direction:row;top:10px;left:10px;width:56px;height:56px;background-color:rgba(0, 0, 0, .56);border-radius:8px;transition-property:top, left;transition-duration:var(--controls-transition-duration);transition-timing-function:var(--controls-transition-fn)}.immersive-controls.m-shifted.svelte-1yzc86r{top:50px;left:20px}.button-block.svelte-1yzc86r{width:40px;height:40px;margin:auto auto;transform:rotate(45deg)}.button-row.svelte-1yzc86r{display:flex;flex-direction:row;position:relative}.button.svelte-1yzc86r{width:20px;height:20px;text-align:center;cursor:pointer}.button.svelte-1yzc86r svg{opacity:0.7;transition:opacity linear 0.2s}.button.button-up.svelte-1yzc86r svg{transform:rotate(-45deg) translate(-1px, -1px)}.button.button-right.svelte-1yzc86r svg{transform:rotate(45deg) translate(1px, -1px)}.button.button-down.svelte-1yzc86r svg{transform:rotate(135deg) translate(1px, -3px)}.button.button-left.svelte-1yzc86r svg{transform:rotate(-135deg) translate(-1px, -3px)}.button.svelte-1yzc86r:hover svg{opacity:1}")}function I6(i){let e,t,n,o,l,r,a,s,u,f,p,g,y,h,C,w,F,T,k;return l=new jo({props:{direction:"up"}}),s=new jo({props:{direction:"up"}}),g=new jo({props:{direction:"up"}}),C=new jo({props:{direction:"up"}}),{c(){e=I("div"),t=I("div"),n=I("div"),o=I("div"),A(l.$$.fragment),r=H(),a=I("div"),A(s.$$.fragment),u=H(),f=I("div"),p=I("div"),A(g.$$.fragment),y=H(),h=I("div"),A(C.$$.fragment),c(o,"class","button button-up svelte-1yzc86r"),c(a,"class","button button-right svelte-1yzc86r"),c(n,"class","button-row svelte-1yzc86r"),c(p,"class","button button-left svelte-1yzc86r"),c(h,"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=U("aria_label_spherical_control")),j(e,"m-shifted",i[0])},m(P,G){v(P,e,G),_(e,t),_(t,n),_(n,o),E(l,o,null),_(n,r),_(n,a),E(s,a,null),_(t,u),_(t,f),_(f,p),E(g,p,null),_(f,y),_(f,h),E(C,h,null),F=!0,T||(k=[Te(o,"mousedown",i[1]),Te(o,"mouseup",i[5]),Te(o,"mouseleave",i[5]),Te(a,"mousedown",i[3]),Te(a,"mouseup",i[5]),Te(a,"mouseleave",i[5]),Te(p,"mousedown",i[4]),Te(p,"mouseup",i[5]),Te(p,"mouseleave",i[5]),Te(h,"mousedown",i[2]),Te(h,"mouseup",i[5]),Te(h,"mouseleave",i[5]),Te(e,"keydown",i[6]),Te(e,"keyup",i[7])],T=!0)},p(P,[G]){(!F||G&1)&&j(e,"m-shifted",P[0])},i(P){F||(d(l.$$.fragment,P),d(s.$$.fragment,P),d(g.$$.fragment,P),d(C.$$.fragment,P),F=!0)},o(P){m(l.$$.fragment,P),m(s.$$.fragment,P),m(g.$$.fragment,P),m(C.$$.fragment,P),F=!1},d(P){P&&b(e),M(l),M(s),M(g),M(C),T=!1,at(k)}}}function T6(i,e,t){let{isShifted:n=!1}=e,o=ot(),l=new Set(["ArrowUp","ArrowDown","ArrowLeft","ArrowRight"]),r=()=>{o.actions.internal.startCameraManualRotation(0,1)},a=()=>{o.actions.internal.startCameraManualRotation(0,-1)},s=()=>{o.actions.internal.startCameraManualRotation(1,0)},u=()=>{o.actions.internal.startCameraManualRotation(-1,0)},f=()=>(o.actions.internal.stopCameraManualRotation(),null),p=y=>{if(l.has(y.code))switch(y.preventDefault(),y.stopPropagation(),y.code){case"ArrowUp":r();break;case"ArrowDown":a();break;case"ArrowLeft":u();break;case"ArrowRight":s();break}},g=y=>{l.has(y.code)&&(y.preventDefault(),y.stopPropagation(),f())};return i.$$set=y=>{"isShifted"in y&&t(0,n=y.isShifted)},[n,r,a,s,u,f,p,g]}var Fc=class extends B{constructor(e){super(),D(this,e,T6,I6,R,{isShifted:0},S6)}},Cs=Fc;function P6(i){Ce(i,"svelte-ovfyp5",".subtitles-container.svelte-ovfyp5.svelte-ovfyp5{position:absolute;top:0;left:0;width:100%;height:100%;pointer-events:none;transition:transform var(--controls-transition-duration)}.subtitles-container.shifted.svelte-ovfyp5.svelte-ovfyp5{transform:translateY(calc(var(--controls-height) * -1))}.subtitles-caption.svelte-ovfyp5.svelte-ovfyp5{position:absolute;left:4%;right:4%;bottom:4%;display:flex;justify-content:center}.subtitles-caption.mobile.svelte-ovfyp5.svelte-ovfyp5{bottom:8%}.subtitles-container.auto.svelte-ovfyp5 .subtitles-caption.svelte-ovfyp5{left:24%;right:24%}.caption.svelte-ovfyp5.svelte-ovfyp5{display:block;overflow-wrap:normal;padding:4px 8px;border-radius:4px;background:rgba(0, 0, 0, 0.4)}.subtitles-container.auto.svelte-ovfyp5 .caption.svelte-ovfyp5{width:100%}.caption-line.svelte-ovfyp5.svelte-ovfyp5{display:block;text-align:center}.subtitles-container.auto.svelte-ovfyp5 .caption-line.svelte-ovfyp5{text-align:left}.caption-segment.svelte-ovfyp5.svelte-ovfyp5{display:inline-block;line-height:1.2;font-size:13px;color:var(--white);white-space:pre-wrap}")}function m0(i,e,t){let n=i.slice();return n[16]=e[t].value,n}function p0(i,e,t){let n=i.slice();return n[16]=e[t].value,n[17]=e[t].timeAppeared,n}function _0(i){let e,t;function n(r,a){return r[7]&&r[8]?A6:r[5]?M6:E6}let o=n(i,-1),l=o(i);return{c(){e=I("div"),t=I("span"),l.c(),c(t,"class","caption svelte-ovfyp5"),c(e,"class","subtitles-caption svelte-ovfyp5"),j(e,"mobile",i[3])},m(r,a){v(r,e,a),_(e,t),l.m(t,null)},p(r,a){o===(o=n(r,a))&&l?l.p(r,a):(l.d(1),l=o(r),l&&(l.c(),l.m(t,null))),a&8&&j(e,"mobile",r[3])},d(r){r&&b(e),l.d()}}}function E6(i){let e,t=ht(i[1]),n=[];for(let o=0;o<t.length;o+=1)n[o]=g0(m0(i,t,o));return{c(){for(let o=0;o<n.length;o+=1)n[o].c();e=it()},m(o,l){for(let r=0;r<n.length;r+=1)n[r]&&n[r].m(o,l);v(o,e,l)},p(o,l){if(l&18){t=ht(o[1]);let r;for(r=0;r<t.length;r+=1){let a=m0(o,t,r);n[r]?n[r].p(a,l):(n[r]=g0(a),n[r].c(),n[r].m(e.parentNode,e))}for(;r<n.length;r+=1)n[r].d(1);n.length=t.length}},d(o){o&&b(e),Jt(n,o)}}}function M6(i){let e,t,n=ht(i[6]),o=[];for(let l=0;l<n.length;l+=1)o[l]=b0(p0(i,n,l));return{c(){e=I("span"),t=I("span");for(let l=0;l<o.length;l+=1)o[l].c();c(t,"class","caption-segment svelte-ovfyp5"),ii(t,"font-size",i[4]+"px"),c(e,"class","caption-line svelte-ovfyp5")},m(l,r){v(l,e,r),_(e,t);for(let a=0;a<o.length;a+=1)o[a]&&o[a].m(t,null)},p(l,r){if(r&68){n=ht(l[6]);let a;for(a=0;a<n.length;a+=1){let s=p0(l,n,a);o[a]?o[a].p(s,r):(o[a]=b0(s),o[a].c(),o[a].m(t,null))}for(;a<o.length;a+=1)o[a].d(1);o.length=n.length}r&16&&ii(t,"font-size",l[4]+"px")},d(l){l&&b(e),Jt(o,l)}}}function A6(i){let e,t,n=U("subtitles_auto_caption")+"",o;return{c(){e=I("span"),t=I("span"),o=De(n),c(t,"class","caption-segment svelte-ovfyp5"),ii(t,"font-size",i[4]+"px"),c(e,"class","caption-line svelte-ovfyp5")},m(l,r){v(l,e,r),_(e,t),_(t,o)},p(l,r){r&16&&ii(t,"font-size",l[4]+"px")},d(l){l&&b(e)}}}function g0(i){let e,t,n=i[16]+"",o,l;return{c(){e=I("span"),t=I("span"),o=De(n),l=H(),c(t,"class","caption-segment svelte-ovfyp5"),ii(t,"font-size",i[4]+"px"),c(e,"class","caption-line svelte-ovfyp5")},m(r,a){v(r,e,a),_(e,t),_(t,o),_(e,l)},p(r,a){a&2&&n!==(n=r[16]+"")&&xe(o,n),a&16&&ii(t,"font-size",r[4]+"px")},d(r){r&&b(e)}}}function h0(i){let e=i[16]+"",t;return{c(){t=De(e)},m(n,o){v(n,t,o)},p(n,o){o&64&&e!==(e=n[16]+"")&&xe(t,e)},d(n){n&&b(t)}}}function b0(i){let e,t=(!i[17]||i[17]<=i[2])&&h0(i);return{c(){t&&t.c(),e=it()},m(n,o){t&&t.m(n,o),v(n,e,o)},p(n,o){!n[17]||n[17]<=n[2]?t?t.p(n,o):(t=h0(n),t.c(),t.m(e.parentNode,e)):t&&(t.d(1),t=null)},d(n){n&&b(e),t&&t.d(n)}}}function L6(i){let e,t=i[1].length>0&&_0(i);return{c(){e=I("div"),t&&t.c(),c(e,"class","subtitles-container svelte-ovfyp5"),j(e,"shifted",i[0]),j(e,"auto",i[5]&&!i[8])},m(n,o){v(n,e,o),t&&t.m(e,null)},p(n,[o]){n[1].length>0?t?t.p(n,o):(t=_0(n),t.c(),t.m(e,null)):t&&(t.d(1),t=null),o&1&&j(e,"shifted",n[0]),o&288&&j(e,"auto",n[5]&&!n[8])},i:he,o:he,d(n){n&&b(e),t&&t.d()}}}function V6(i,e,t){let n,o,{shifted:l}=e,{captions:r}=e,{position:a}=e,{playerSize:s}=e,{isMobile:u=!1}=e,f=ot(),p=Nt(),g=f.state.currentSubtitle$;O(i,g,k=>t(12,n=k));let y=f.state.isAutoSubtitleCaptionVisible$;O(i,y,k=>t(8,o=k));let h,C,w,F,T;return Et(()=>{T=window.setTimeout(()=>{y.set(!1)},p.autoSubtitlesTimeout)}),Nn(()=>{window.clearTimeout(T)}),i.$$set=k=>{"shifted"in k&&t(0,l=k.shifted),"captions"in k&&t(1,r=k.captions),"position"in k&&t(2,a=k.position),"playerSize"in k&&t(11,s=k.playerSize),"isMobile"in k&&t(3,u=k.isMobile)},i.$$.update=()=>{if(i.$$.dirty&2048){let k=s.width*.02;t(4,h=k<=p.minSubtitlesFontSize?p.minSubtitlesFontSize:k)}i.$$.dirty&2&&t(5,C=r.some(k=>k.type==="timestamp")),i.$$.dirty&2&&t(6,w=r.reduce((k,{type:P,value:G})=>(P==="timestamp"?k.push({timeAppeared:Number(G),value:""}):k.length===0?k.push({value:String(G)}):k[k.length-1].value=String(G),k),[])),i.$$.dirty&4096&&t(7,F=!!n.isAuto)},[l,r,a,u,h,C,w,F,o,g,y,s,n]}var qc=class extends B{constructor(e){super(),D(this,e,V6,L6,R,{shifted:0,captions:1,position:2,playerSize:11,isMobile:3},P6)}},Ss=qc;function R6(i){Ce(i,"svelte-1o62kpz",".wrapper.svelte-1o62kpz{height:100%;background-position:center;background-size:cover;display:flex;align-items:center;justify-content:center;font-size:16px;flex-direction:column}.icon_wrapper.svelte-1o62kpz{display:flex;flex-direction:column;align-items:center;width:400px}.icon.svelte-1o62kpz{width:50px;height:50px}.text.svelte-1o62kpz{margin-top:20px}")}function v0(i){let e,t,n;return{c(){e=I("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]),c(e,"class","text svelte-1o62kpz")},m(o,l){v(o,e,l),_(e,t),_(e,n)},p(o,l){l&2&&xe(n,o[1])},d(o){o&&b(e)}}}function B6(i){let e,t,n,o,l,r,a=i[1]&&v0(i);return{c(){e=I("div"),t=I("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=H(),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){v(s,e,u),_(e,t),_(e,n),a&&a.m(e,null),l||(r=Te(e,"click",i[2]),l=!0)},p(s,[u]){s[1]?a?a.p(s,u):(a=v0(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:he,o:he,d(s){s&&b(e),a&&a.d(),l=!1,r()}}}function D6(i,e,t){let{thumbUrl:n}=e,{chromecastDeviceName:o}=e;function l(r){Cn.call(this,i,r)}return i.$$set=r=>{"thumbUrl"in r&&t(0,n=r.thumbUrl),"chromecastDeviceName"in r&&t(1,o=r.chromecastDeviceName)},[n,o,l]}var Hc=class extends B{constructor(e){super(),D(this,e,D6,B6,R,{thumbUrl:0,chromecastDeviceName:1},R6)}},Is=Hc;function N6(i){let e,t,n,o=i[2].default,l=Ee(o,i,i[1],null),r=[{xmlns:"http://www.w3.org/2000/svg"},{width:"200"},{height:"200"},{"aria-hidden":"true"},{"data-testid":"error-icon"},{viewBox:"460 190 130 90"},{role:"img"},i[0]],a={};for(let s=0;s<r.length;s+=1)a=ne(a,r[s]);return{c(){e=V("svg"),l&&l.c(),t=V("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"),ye(e,a)},m(s,u){v(s,e,u),l&&l.m(e,null),_(e,t),n=!0},p(s,[u]){l&&l.p&&(!n||u&2)&&Ae(l,o,s,s[1],n?Me(o,s[1],u,null):Le(s[1]),null),ye(e,a=Be(r,[{xmlns:"http://www.w3.org/2000/svg"},{width:"200"},{height:"200"},{"aria-hidden":"true"},{"data-testid":"error-icon"},{viewBox:"460 190 130 90"},{role:"img"},u&1&&s[0]]))},i(s){n||(d(l,s),n=!0)},o(s){m(l,s),n=!1},d(s){s&&b(e),l&&l.d(s)}}}function O6(i,e,t){let{$$slots:n={},$$scope:o}=e;return i.$$set=l=>{t(0,e=ne(ne({},e),ve(l))),"$$scope"in l&&t(1,o=l.$$scope)},e=ve(e),[e,o,n]}var Uc=class extends B{constructor(e){super(),D(this,e,O6,N6,R,{})}},y0=Uc;function F6(i){Ce(i,"svelte-13zpvm8",".container.svelte-13zpvm8{position:absolute;top:0;bottom:0;left:0;right:0;background:#000;display:flex;align-items:center;justify-content:center}")}function q6(i){let e,t,n;return t=new y0({}),{c(){e=I("div"),A(t.$$.fragment),c(e,"class","container svelte-13zpvm8")},m(o,l){v(o,e,l),E(t,e,null),n=!0},p:he,i(o){n||(d(t.$$.fragment,o),n=!0)},o(o){m(t.$$.fragment,o),n=!1},d(o){o&&b(e),M(t)}}}var zc=class extends B{constructor(e){super(),D(this,e,null,q6,R,{},F6)}},Ts=zc;function H6(i){Ce(i,"svelte-17wno3",".container.svelte-17wno3.svelte-17wno3{position:absolute;top:0;bottom:0;left:0;right:0;background-position:center;background-size:cover;cursor:pointer;transition:opacity 0.2s, visibility 0.2s;will-change:opacity}.container.hidden.svelte-17wno3.svelte-17wno3{opacity:0;visibility:hidden}.playButton.svelte-17wno3.svelte-17wno3{position:absolute;top:0;bottom:0;left:0;right:0;margin:auto;width:var(--big-play-size);height:var(--big-play-size);display:flex;align-items:center;justify-content:center}.playButtonBackground.svelte-17wno3.svelte-17wno3{position:absolute;top:0;bottom:0;left:0;right:0;border-radius:var(--big-play-radius);background-color:var(--big-play-bg-color);transition:background 0.2s, transform 0.2s;transition-timing-function:ease-out;will-change:background, transform}.container.svelte-17wno3:hover .playButtonBackground.svelte-17wno3{background-color:var(--big-play-hover-bg-color);transform:scale(1.15)}.playButton.svelte-17wno3 svg{transform:scale(2)}")}function U6(i){let e,t,n,o,l,r,a,s,u,f;return l=new Ir({}),{c(){e=I("div"),t=I("div"),n=I("div"),o=H(),A(l.$$.fragment),c(n,"class","playButtonBackground svelte-17wno3"),c(t,"class","playButton svelte-17wno3"),c(t,"tabindex","0"),c(t,"role","button"),c(t,"aria-label",r=U("tooltip_play")),c(e,"class","container svelte-17wno3"),c(e,"style",a=`background-color: #222; background-image: url('${i[0]||""}')`),j(e,"hidden",i[1])},m(p,g){v(p,e,g),_(e,t),_(t,n),_(t,o),E(l,t,null),s=!0,u||(f=[Te(t,"keydown",i[3]),Te(e,"click",_t(function(){zt(i[2])&&i[2].apply(this,arguments)}))],u=!0)},p(p,[g]){i=p,(!s||g&1&&a!==(a=`background-color: #222; background-image: url('${i[0]||""}')`))&&c(e,"style",a),(!s||g&2)&&j(e,"hidden",i[1])},i(p){s||(d(l.$$.fragment,p),s=!0)},o(p){m(l.$$.fragment,p),s=!1},d(p){p&&b(e),M(l),u=!1,at(f)}}}function z6(i,e,t){let{thumbUrl:n}=e,{hidden:o}=e,{startVideo:l}=e,a=ot().ui.startedByKeyboard$,s=u=>{let f=u.code;["Enter","Space"].includes(f)&&(u.stopPropagation(),u.preventDefault(),a.set(!0),l())};return i.$$set=u=>{"thumbUrl"in u&&t(0,n=u.thumbUrl),"hidden"in u&&t(1,o=u.hidden),"startVideo"in u&&t(2,l=u.startVideo)},[n,o,l,s]}var Wc=class extends B{constructor(e){super(),D(this,e,z6,U6,R,{thumbUrl:0,hidden:1,startVideo:2,handlePressKey:3},H6)}get handlePressKey(){return this.$$.ctx[3]}},Ps=Wc;function W6(i){Ce(i,"svelte-1bcvcf2",`.title.svelte-1bcvcf2{position:absolute;pointer-events:none;left:0;top:0;width:100%;height:var(--controls-gradient-height);font-size:15px;color:var(--white);box-sizing:border-box;padding:18px 20px 10px;overflow:hidden;white-space:nowrap;text-overflow:ellipsis;transition-property:visibility, transform, opacity;transition-duration:var(--controls-transition-duration);transition-timing-function:var(--controls-transition-fn);will-change:transform, opacity;background:linear-gradient(
28
28
  0deg,
29
29
  rgba(0, 0, 0, 0) 0%,
30
30
  rgba(0, 0, 0, 0.02) 19%,
31
31
  rgba(0, 0, 0, 0.10) 34%,
32
32
  rgba(0, 0, 0, 0.40) 60%,
33
33
  rgba(0, 0, 0, 0.60) 100%
34
- )}.hidden.svelte-1bcvcf2{visibility:hidden;transform:translateY(calc(var(--controls-gradient-height) * -1));opacity:0}`)}function K6(i){let e,t;return{c(){e=I("div"),t=Ne(i[0]),c(e,"class","title svelte-1bcvcf2"),G(e,"hidden",i[1])},m(n,o){v(n,e,o),_(e,t)},p(n,[o]){o&1&&Ge(t,n[0]),o&2&&G(e,"hidden",n[1])},i:ge,o:ge,d(n){n&&b(e)}}}function G6(i,e,t){let{title:n=""}=e,{isHidden:o=!1}=e;return i.$$set=l=>{"title"in l&&t(0,n=l.title),"isHidden"in l&&t(1,o=l.isHidden)},[n,o]}var Wc=class extends B{constructor(e){super(),D(this,e,G6,K6,R,{title:0,isHidden:1},W6)}},y0=Wc;function j6(i){Ce(i,"svelte-1qpxtfg",".timer__container.svelte-1qpxtfg{display:flex;align-items:flex-start;justify-content:center}.cell.svelte-1qpxtfg{display:flex;flex-direction:column;align-items:center;width:62px}.cell__value.svelte-1qpxtfg{font-size:48px;line-height:1.2;font-weight:700}.cell__unit.svelte-1qpxtfg{font-size:14px;line-height:1.2;font-weight:400}.timer__points.svelte-1qpxtfg{display:inline-block;margin:0 8px;font-size:42px;line-height:1.2;font-weight:600}")}function k0(i){let e,t,n,o,l,r,a;return{c(){e=I("div"),t=I("span"),n=Ne(i[0]),o=H(),l=I("span"),l.textContent=`${U("waiting_live_day_value")}`,r=H(),a=I("span"),a.textContent=`${U("waiting_live_colon")}`,c(t,"class","cell__value svelte-1qpxtfg"),c(l,"class","cell__unit svelte-1qpxtfg"),c(e,"class","timer__cell cell svelte-1qpxtfg"),c(a,"class","timer__points svelte-1qpxtfg")},m(s,u){v(s,e,u),_(e,t),_(t,n),_(e,o),_(e,l),v(s,r,u),v(s,a,u)},p(s,u){u&1&&Ge(n,s[0])},d(s){s&&(b(e),b(r),b(a))}}}function w0(i){let e,t,n,o,l,r,a;return{c(){e=I("div"),t=I("span"),n=Ne(i[1]),o=H(),l=I("span"),l.textContent=`${U("waiting_live_hour_value")}`,r=H(),a=I("span"),a.textContent=`${U("waiting_live_colon")}`,c(t,"class","cell__value svelte-1qpxtfg"),c(l,"class","cell__unit svelte-1qpxtfg"),c(e,"class","timer__cell cell svelte-1qpxtfg"),c(a,"class","timer__points svelte-1qpxtfg")},m(s,u){v(s,e,u),_(e,t),_(t,n),_(e,o),_(e,l),v(s,r,u),v(s,a,u)},p(s,u){u&2&&Ge(n,s[1])},d(s){s&&(b(e),b(r),b(a))}}}function C0(i){let e,t,n,o,l,r,a;return{c(){e=I("div"),t=I("span"),n=Ne(i[2]),o=H(),l=I("span"),l.textContent=`${U("waiting_live_minute_value")}`,r=H(),a=I("span"),a.textContent=`${U("waiting_live_colon")}`,c(t,"class","cell__value svelte-1qpxtfg"),c(l,"class","cell__unit svelte-1qpxtfg"),c(e,"class","timer__cell cell svelte-1qpxtfg"),c(a,"class","timer__points svelte-1qpxtfg")},m(s,u){v(s,e,u),_(e,t),_(t,n),_(e,o),_(e,l),v(s,r,u),v(s,a,u)},p(s,u){u&4&&Ge(n,s[2])},d(s){s&&(b(e),b(r),b(a))}}}function S0(i){let e,t,n,o,l;return{c(){e=I("div"),t=I("span"),n=Ne(i[3]),o=H(),l=I("span"),l.textContent=`${U("waiting_live_second_value")}`,c(t,"class","cell__value svelte-1qpxtfg"),c(l,"class","cell__unit svelte-1qpxtfg"),c(e,"class","timer__cell cell svelte-1qpxtfg")},m(r,a){v(r,e,a),_(e,t),_(t,n),_(e,o),_(e,l)},p(r,a){a&8&&Ge(n,r[3])},d(r){r&&b(e)}}}function x6(i){let e,t,n,o,l=i[0]&&k0(i),r=i[1]&&w0(i),a=i[2]&&C0(i),s=i[3]&&S0(i);return{c(){e=I("div"),l&&l.c(),t=H(),r&&r.c(),n=H(),a&&a.c(),o=H(),s&&s.c(),c(e,"class","timer__container svelte-1qpxtfg")},m(u,f){v(u,e,f),l&&l.m(e,null),_(e,t),r&&r.m(e,null),_(e,n),a&&a.m(e,null),_(e,o),s&&s.m(e,null)},p(u,[f]){u[0]?l?l.p(u,f):(l=k0(u),l.c(),l.m(e,t)):l&&(l.d(1),l=null),u[1]?r?r.p(u,f):(r=w0(u),r.c(),r.m(e,n)):r&&(r.d(1),r=null),u[2]?a?a.p(u,f):(a=C0(u),a.c(),a.m(e,o)):a&&(a.d(1),a=null),u[3]?s?s.p(u,f):(s=S0(u),s.c(),s.m(e,null)):s&&(s.d(1),s=null)},i:ge,o:ge,d(u){u&&b(e),l&&l.d(),r&&r.d(),a&&a.d(),s&&s.d()}}}function Y6(i,e,t){let{startTime:n}=e,{onTimerOver:o}=e,l,r,a,s,u,f=y=>String(y).padStart(2,"0"),p=y=>{let h=Math.floor(y/86400);h&&(y-=h*86400,t(0,l=f(h)));let C=Math.floor(y/3600);t(1,r=f(C));let w=Math.floor(y/60)%60;t(2,a=f(w));let F=y%60;t(3,s=f(F))},g=()=>{let y=Math.floor(Date.now()/1e3),h=n-y;p(h),h>=1?u=requestAnimationFrame(g):o()};return It(()=>{u=requestAnimationFrame(g)}),Fn(()=>{cancelAnimationFrame(u)}),i.$$set=y=>{"startTime"in y&&t(4,n=y.startTime),"onTimerOver"in y&&t(5,o=y.onTimerOver)},[l,r,a,s,n,o]}var Kc=class extends B{constructor(e){super(),D(this,e,Y6,x6,R,{startTime:4,onTimerOver:5},j6)}},I0=Kc;function Q6(i){let e,t,n,o,l,r,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 p=0;p<u.length;p+=1)f=ne(f,u[p]);return{c(){e=V("svg"),s&&s.c(),t=V("path"),n=V("path"),o=V("path"),l=V("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"),ni(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"),ni(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"),ni(o,"opacity",".985"),c(l,"fill","#fefffe"),c(l,"d","M219.5 399.5h-40q-67.453-7.982-117-54a31.7 31.7 0 0 1 3.5-10q8.539-9.646 20.5-14.5 54.786-19.435 113-17.5 58.214-1.935 113 17.5 11.962 4.854 20.5 14.5a31.7 31.7 0 0 1 3.5 10q-49.547 46.018-117 54"),ni(l,"opacity",".986"),ye(e,f)},m(p,g){v(p,e,g),s&&s.m(e,null),_(e,t),_(e,n),_(e,o),_(e,l),r=!0},p(p,[g]){s&&s.p&&(!r||g&2)&&Ae(s,a,p,p[1],r?Me(a,p[1],g,null):Le(p[1]),null),ye(e,f=De(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"},g&1&&p[0]]))},i(p){r||(d(s,p),r=!0)},o(p){m(s,p),r=!1},d(p){p&&b(e),s&&s.d(p)}}}function Z6(i,e,t){let{$$slots:n={},$$scope:o}=e;return i.$$set=l=>{t(0,e=ne(ne({},e),ve(l))),"$$scope"in l&&t(1,o=l.$$scope)},e=ve(e),[e,o,n]}var Gc=class extends B{constructor(e){super(),D(this,e,Z6,Q6,R,{})}},T0=Gc;function X6(i){Ce(i,"svelte-15pewff",".waiting-container.svelte-15pewff{position:absolute;top:0;left:0;width:100%;height:100%;background-color:var(--black);background-position:center;background-size:cover;background-repeat:no-repeat}.waiting-container.svelte-15pewff::before{content:'';position:absolute;top:0;left:0;width:100%;height:100%;background-color:rgba(0, 0, 0, 0.56);z-index:1}.upcoming.svelte-15pewff{position:absolute;top:50%;left:0;width:100%;transform:translateY(-50%);display:flex;flex-direction:column;align-items:center;justify-content:center;z-index:0}.upcoming-icon.svelte-15pewff{width:20%;max-width:200px;margin-bottom:20px}.upcoming__title.svelte-15pewff{font-size:14px;line-height:1.2;font-weight:400}.waiting-timer.svelte-15pewff{position:absolute;top:50%;left:50%;transform:translate(-50%, -50%);z-index:2}.timer.svelte-15pewff{display:flex;flex-direction:column;align-items:center;justify-content:center}.timer__title.svelte-15pewff{display:inline-block;vertical-align:middle;margin-bottom:12px;font-size:14px;line-height:1.2;font-weight:400}")}function J6(i){let e,t,n,o,l;return o=new I0({props:{startTime:i[1]||0,onTimerOver:i[3]}}),{c(){e=I("div"),t=I("span"),t.textContent=`${U("waiting_live_timer_title")}`,n=H(),A(o.$$.fragment),c(t,"class","timer__title svelte-15pewff"),c(e,"class","waiting-timer timer svelte-15pewff")},m(r,a){v(r,e,a),_(e,t),_(e,n),E(o,e,null),l=!0},p(r,a){let s={};a&2&&(s.startTime=r[1]||0),a&4&&(s.onTimerOver=r[3]),o.$set(s)},i(r){l||(d(o.$$.fragment,r),l=!0)},o(r){m(o.$$.fragment,r),l=!1},d(r){r&&b(e),M(o)}}}function $6(i){let e,t,n,o,l,r;return n=new T0({}),{c(){e=I("div"),t=I("div"),A(n.$$.fragment),o=H(),l=I("span"),l.textContent=`${U("waiting_live_upcoming_title")}`,c(t,"class","upcoming-icon svelte-15pewff"),c(l,"class","upcoming__title svelte-15pewff"),c(e,"class","upcoming svelte-15pewff")},m(a,s){v(a,e,s),_(e,t),E(n,t,null),_(e,o),_(e,l),r=!0},p:ge,i(a){r||(d(n.$$.fragment,a),r=!0)},o(a){m(n.$$.fragment,a),r=!1},d(a){a&&b(e),M(n)}}}function e8(i){let e,t,n,o,l,r=[$6,J6],a=[];function s(u,f){return u[2]?0:1}return t=s(i,-1),n=a[t]=r[t](i),{c(){e=I("div"),n.c(),c(e,"class","waiting-container svelte-15pewff"),c(e,"style",o=`background-image: url(${i[2]?"":i[0]})`)},m(u,f){v(u,e,f),a[t].m(e,null),l=!0},p(u,[f]){let p=t;t=s(u,f),t===p?a[t].p(u,f):(ce(),m(a[p],1,1,()=>{a[p]=null}),fe(),n=a[t],n?n.p(u,f):(n=a[t]=r[t](u),n.c()),d(n,1),n.m(e,null)),(!l||f&5&&o!==(o=`background-image: url(${u[2]?"":u[0]})`))&&c(e,"style",o)},i(u){l||(d(n),l=!0)},o(u){m(n),l=!1},d(u){u&&b(e),a[t].d()}}}function t8(i,e,t){let n,{thumbUrl:o}=e,{startTime:l}=e,r=()=>t(2,n=!0);return i.$$set=a=>{"thumbUrl"in a&&t(0,o=a.thumbUrl),"startTime"in a&&t(1,l=a.startTime)},i.$$.update=()=>{i.$$.dirty&2&&t(2,n=l===void 0||l<Math.floor(Date.now()/1e3))},[o,l,n,r]}var jc=class extends B{constructor(e){super(),D(this,e,t8,e8,R,{thumbUrl:0,startTime:1},X6)}},Ps=jc;function i8(i){Ce(i,"svelte-xvqwsa",".waiting-container.svelte-xvqwsa{position:absolute;top:0;left:0;width:100%;height:100%;display:flex;align-items:center;justify-content:center;background-color:var(--black);background-position:center;background-size:cover;background-repeat:no-repeat}.waiting-container.svelte-xvqwsa::before{content:'';position:absolute;top:0;left:0;width:100%;height:100%;background-color:rgba(0, 0, 0, 0.4);backdrop-filter:blur(10px)}.waiting-caption.svelte-xvqwsa{position:relative;display:flex;flex-direction:column;align-items:center}.waiting-title.svelte-xvqwsa{margin:0;padding:20px;text-align:center;font-size:20px;line-height:1.2;font-weight:400}")}function n8(i){let e,t,n,o,l,r,a,s;return n=new Sr({props:{style:"position: static; transform: translate(0, 0)"}}),{c(){e=I("div"),t=I("div"),A(n.$$.fragment),o=H(),l=I("p"),r=Ne(i[1]),c(l,"class","waiting-title svelte-xvqwsa"),c(t,"class","waiting-caption svelte-xvqwsa"),c(e,"class","waiting-container svelte-xvqwsa"),c(e,"style",a=`background-image: url('${i[0]}')`)},m(u,f){v(u,e,f),_(e,t),E(n,t,null),_(t,o),_(t,l),_(l,r),s=!0},p(u,[f]){(!s||f&2)&&Ge(r,u[1]),(!s||f&1&&a!==(a=`background-image: url('${u[0]}')`))&&c(e,"style",a)},i(u){s||(d(n.$$.fragment,u),s=!0)},o(u){m(n.$$.fragment,u),s=!1},d(u){u&&b(e),M(n)}}}function o8(i,e,t){let{thumbUrl:n=""}=e,{kind:o}=e,l;return i.$$set=r=>{"thumbUrl"in r&&t(0,n=r.thumbUrl),"kind"in r&&t(2,o=r.kind)},i.$$.update=()=>{if(i.$$.dirty&4){let r={recover:U("waiting_live_recover_title"),record:U("waiting_record_title")};t(1,l=r[o]||"")}},[n,l,o]}var xc=class extends B{constructor(e){super(),D(this,e,o8,n8,R,{thumbUrl:0,kind:2},i8)}},Vr=xc;var{window:r8}=Lo;function l8(i){Ce(i,"svelte-12e19rp",".player-wrapper.svelte-12e19rp{position:absolute;width:100%;height:100%}.player-wrapper.svelte-12e19rp .player-media{position:absolute;left:0;top:0;width:100%;height:100%;background:var(--black);transition:transform 0.2s ease-in-out}.spherical-video-icon.svelte-12e19rp{display:inline-block;position:absolute;top:calc(50% - 23px);left:calc(50% - 38px)}.video-wrapper.svelte-12e19rp,.video-container.svelte-12e19rp,.ads-container.svelte-12e19rp{position:absolute;width:100%;height:100%;left:0;top:0}.video-wrapper.svelte-12e19rp{z-index:var(--video-container-z-index);background:var(--black)}.video-container.svelte-12e19rp{z-index:var(--video-container-z-index);transition:var(--rotate-transition-duration) ease all}.video-container.fast-rotate.svelte-12e19rp{transition:none}.nocursor.svelte-12e19rp{cursor:none}.ads-container.svelte-12e19rp{z-index:var(--ads-container-z-index);background:var(--black)}")}function E0(i){let e,t;return e=new Ps({props:{thumbUrl:i[3],startTime:i[4]?.startTime}}),{c(){A(e.$$.fragment)},m(n,o){E(e,n,o),t=!0},p(n,o){let l={};o[0]&8&&(l.thumbUrl=n[3]),o[0]&16&&(l.startTime=n[4]?.startTime),e.$set(l)},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){m(e.$$.fragment,n),t=!1},d(n){M(e,n)}}}function M0(i){let e,t;return e=new Vr({props:{kind:"recover",thumbUrl:i[3]}}),{c(){A(e.$$.fragment)},m(n,o){E(e,n,o),t=!0},p(n,o){let l={};o[0]&8&&(l.thumbUrl=n[3]),e.$set(l)},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){m(e.$$.fragment,n),t=!1},d(n){M(e,n)}}}function A0(i){let e,t;return e=new Vr({props:{kind:"record",thumbUrl:i[3]}}),{c(){A(e.$$.fragment)},m(n,o){E(e,n,o),t=!0},p(n,o){let l={};o[0]&8&&(l.thumbUrl=n[3]),e.$set(l)},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){m(e.$$.fragment,n),t=!1},d(n){M(e,n)}}}function L0(i){let e,t,n;return t=new El({props:{adsSlotId:i[8],adsParams:i[9],adsPreviewParam:i[10],duration:i[11]}}),{c(){e=I("div"),A(t.$$.fragment),c(e,"class","ads-container svelte-12e19rp"),G(e,"hidden",i[38]!=="ads")},m(o,l){v(o,e,l),E(t,e,null),n=!0},p(o,l){let r={};l[0]&256&&(r.adsSlotId=o[8]),l[0]&512&&(r.adsParams=o[9]),l[0]&1024&&(r.adsPreviewParam=o[10]),l[0]&2048&&(r.duration=o[11]),t.$set(r),(!n||l[1]&128)&&G(e,"hidden",o[38]!=="ads")},i(o){n||(d(t.$$.fragment,o),n=!0)},o(o){m(t.$$.fragment,o),n=!1},d(o){o&&b(e),M(t)}}}function V0(i){let e,t;return e=new $d({props:{title:i[18],thumb:i[19],playNextVideo:i[23]}}),{c(){A(e.$$.fragment)},m(n,o){E(e,n,o),t=!0},p(n,o){let l={};o[0]&262144&&(l.title=n[18]),o[0]&524288&&(l.thumb=n[19]),o[0]&8388608&&(l.playNextVideo=n[23]),e.$set(l)},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){m(e.$$.fragment,n),t=!1},d(n){M(e,n)}}}function R0(i){let e,t;return e=new y0({props:{title:i[2],isHidden:!i[36]}}),{c(){A(e.$$.fragment)},m(n,o){E(e,n,o),t=!0},p(n,o){let l={};o[0]&4&&(l.title=n[2]),o[1]&32&&(l.isHidden=!n[36]),e.$set(l)},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){m(e.$$.fragment,n),t=!1},d(n){M(e,n)}}}function B0(i){let e,t;return e=new ws({props:{isShifted:i[38]==="video"&&i[36]}}),{c(){A(e.$$.fragment)},m(n,o){E(e,n,o),t=!0},p(n,o){let l={};o[1]&160&&(l.isShifted=n[38]==="video"&&n[36]),e.$set(l)},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){m(e.$$.fragment,n),t=!1},d(n){M(e,n)}}}function D0(i){let e,t,n;return t=new vl({props:{"aria-label":U("video360")}}),{c(){e=I("div"),A(t.$$.fragment),c(e,"class","spherical-video-icon svelte-12e19rp")},m(o,l){v(o,e,l),E(t,e,null),n=!0},i(o){n||(d(t.$$.fragment,o),n=!0)},o(o){m(t.$$.fragment,o),n=!1},d(o){o&&b(e),M(t)}}}function N0(i){let e,t;return e=new Ss({props:{thumbUrl:i[3],chromecastDeviceName:i[54]}}),{c(){A(e.$$.fragment)},m(n,o){E(e,n,o),t=!0},p(n,o){let l={};o[0]&8&&(l.thumbUrl=n[3]),o[1]&8388608&&(l.chromecastDeviceName=n[54]),e.$set(l)},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){m(e.$$.fragment,n),t=!1},d(n){M(e,n)}}}function O0(i){let e,t;return e=new Cs({props:{shifted:i[36],captions:i[56],position:i[57],playerSize:i[34]}}),{c(){A(e.$$.fragment)},m(n,o){E(e,n,o),t=!0},p(n,o){let l={};o[1]&32&&(l.shifted=n[36]),o[1]&33554432&&(l.captions=n[56]),o[1]&67108864&&(l.position=n[57]),o[1]&8&&(l.playerSize=n[34]),e.$set(l)},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){m(e.$$.fragment,n),t=!1},d(n){M(e,n)}}}function F0(i){let e,t,n,o,l;return t=new Is({}),{c(){e=I("div"),A(t.$$.fragment)},m(r,a){v(r,e,a),E(t,e,null),n=!0,o||(l=[Pe(e,"contextmenu",Gt(i[108])),Pe(e,"click",mt(i[119]))],o=!0)},p:ge,i(r){n||(d(t.$$.fragment,r),n=!0)},o(r){m(t.$$.fragment,r),n=!1},d(r){r&&b(e),M(t),o=!1,at(l)}}}function q0(i){let e,t,n;function o(r){i[158](r)}let l={bottomHidden:i[38]==="thumb"||i[38]==="LiveWaitingStart"||i[38]==="LiveWaitingRecover"||i[38]==="LiveWaitingRecord",bottomNoSmooth:i[50],showControls:i[36],isAds:i[38]==="ads",canRewindLive:i[6]&&i[58]!==0,logoClickable:i[12],logoHidden:i[13],logoTargetUrl:i[14],showNextPrevButtons:i[15],nextButtonActive:i[16],prevButtonActive:i[17],isOneVideoPlaylist:i[20],supportLink:i[21],customFullscreenSupported:G0,playNextVideo:i[23],playPrevVideo:i[24],repeatPlaylist:i[25],toggleFullscreen:i[106],returnFocus:i[157],seekToInteractive:i[26],toggleGraph:i[27],playPrevChapter:i[28]};return i[41]!==void 0&&(l.controlsElementRef=i[41]),e=new ks({props:l}),he.push(()=>Fe(e,"controlsElementRef",o)),{c(){A(e.$$.fragment)},m(r,a){E(e,r,a),n=!0},p(r,a){let s={};a[1]&128&&(s.bottomHidden=r[38]==="thumb"||r[38]==="LiveWaitingStart"||r[38]==="LiveWaitingRecover"||r[38]==="LiveWaitingRecord"),a[1]&524288&&(s.bottomNoSmooth=r[50]),a[1]&32&&(s.showControls=r[36]),a[1]&128&&(s.isAds=r[38]==="ads"),a[0]&64|a[1]&134217728&&(s.canRewindLive=r[6]&&r[58]!==0),a[0]&4096&&(s.logoClickable=r[12]),a[0]&8192&&(s.logoHidden=r[13]),a[0]&16384&&(s.logoTargetUrl=r[14]),a[0]&32768&&(s.showNextPrevButtons=r[15]),a[0]&65536&&(s.nextButtonActive=r[16]),a[0]&131072&&(s.prevButtonActive=r[17]),a[0]&1048576&&(s.isOneVideoPlaylist=r[20]),a[0]&2097152&&(s.supportLink=r[21]),a[0]&8388608&&(s.playNextVideo=r[23]),a[0]&16777216&&(s.playPrevVideo=r[24]),a[0]&33554432&&(s.repeatPlaylist=r[25]),a[1]&131072&&(s.returnFocus=r[157]),a[0]&67108864&&(s.seekToInteractive=r[26]),a[0]&134217728&&(s.toggleGraph=r[27]),a[0]&268435456&&(s.playPrevChapter=r[28]),!t&&a[1]&1024&&(t=!0,s.controlsElementRef=r[41],Oe(()=>t=!1)),e.$set(s)},i(r){n||(d(e.$$.fragment,r),n=!0)},o(r){m(e.$$.fragment,r),n=!1},d(r){M(e,r)}}}function H0(i){let e,t;return e=new Sr({}),{c(){A(e.$$.fragment)},m(n,o){E(e,n,o),t=!0},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){m(e.$$.fragment,n),t=!1},d(n){M(e,n)}}}function z0(i){let e,t;return e=new c1({}),{c(){A(e.$$.fragment)},m(n,o){E(e,n,o),t=!0},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){m(e.$$.fragment,n),t=!1},d(n){M(e,n)}}}function U0(i){let e,t;return e=new Bl({}),{c(){A(e.$$.fragment)},m(n,o){E(e,n,o),t=!0},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){m(e.$$.fragment,n),t=!1},d(n){M(e,n)}}}function W0(i){let e,t,n,o,l,r,a,s,u,f,p,g,y,h,C,w,F,T,k,P,x,W,z,se,de;e=new Ts({props:{hidden:i[38]!=="thumb"||i[37]||i[92]&&i[5],thumbUrl:i[3],startVideo:i[29]}});let L=i[38]==="LiveWaitingStart"&&E0(i),oe=i[38]==="LiveWaitingRecover"&&M0(i),re=i[38]==="LiveWaitingRecord"&&A0(i),X=i[7]&&i[22]&&L0(i),Te=i[31]&&i[18]&&i[19]&&V0(i),q=i[44]&&R0(i),O=i[49]&&B0(i),K=i[53]&&D0(i),le=i[39]&&N0(i),ee=i[55].value!=="off"&&O0(i),ue=i[37]&&F0(i),ze=i[22]&&q0(i);C=new Al({props:{isLive:i[59],isHidden:!i[43],isPlaying:i[51],position:i[57],duration:i[60]}}),F=new f0({props:{data:i[103]}});function Re(j){i[160](j)}let ke={supportLink:i[21],returnFocus:i[159],visible:i[33],playerContainerRef:i[40],controlsContainerRef:i[41],position:i[61]};i[32]!==void 0&&(ke.menuElementRef=i[32]),k=new Rd({props:ke}),he.push(()=>Fe(k,"menuElementRef",Re));let Ve=i[42]&&H0(i),Qe=i[62]&&z0(i),tt=i[63]&&U0(i);return{c(){A(e.$$.fragment),t=H(),L&&L.c(),n=H(),oe&&oe.c(),o=H(),re&&re.c(),l=H(),X&&X.c(),r=H(),Te&&Te.c(),a=H(),q&&q.c(),s=H(),O&&O.c(),u=H(),K&&K.c(),f=H(),le&&le.c(),p=H(),ee&&ee.c(),g=H(),ue&&ue.c(),y=H(),ze&&ze.c(),h=H(),A(C.$$.fragment),w=H(),A(F.$$.fragment),T=H(),A(k.$$.fragment),x=H(),Ve&&Ve.c(),W=H(),Qe&&Qe.c(),z=H(),tt&&tt.c(),se=$e()},m(j,ae){E(e,j,ae),v(j,t,ae),L&&L.m(j,ae),v(j,n,ae),oe&&oe.m(j,ae),v(j,o,ae),re&&re.m(j,ae),v(j,l,ae),X&&X.m(j,ae),v(j,r,ae),Te&&Te.m(j,ae),v(j,a,ae),q&&q.m(j,ae),v(j,s,ae),O&&O.m(j,ae),v(j,u,ae),K&&K.m(j,ae),v(j,f,ae),le&&le.m(j,ae),v(j,p,ae),ee&&ee.m(j,ae),v(j,g,ae),ue&&ue.m(j,ae),v(j,y,ae),ze&&ze.m(j,ae),v(j,h,ae),E(C,j,ae),v(j,w,ae),E(F,j,ae),v(j,T,ae),E(k,j,ae),v(j,x,ae),Ve&&Ve.m(j,ae),v(j,W,ae),Qe&&Qe.m(j,ae),v(j,z,ae),tt&&tt.m(j,ae),v(j,se,ae),de=!0},p(j,ae){let Ze={};ae[0]&32|ae[1]&192&&(Ze.hidden=j[38]!=="thumb"||j[37]||j[92]&&j[5]),ae[0]&8&&(Ze.thumbUrl=j[3]),ae[0]&536870912&&(Ze.startVideo=j[29]),e.$set(Ze),j[38]==="LiveWaitingStart"?L?(L.p(j,ae),ae[1]&128&&d(L,1)):(L=E0(j),L.c(),d(L,1),L.m(n.parentNode,n)):L&&(ce(),m(L,1,1,()=>{L=null}),fe()),j[38]==="LiveWaitingRecover"?oe?(oe.p(j,ae),ae[1]&128&&d(oe,1)):(oe=M0(j),oe.c(),d(oe,1),oe.m(o.parentNode,o)):oe&&(ce(),m(oe,1,1,()=>{oe=null}),fe()),j[38]==="LiveWaitingRecord"?re?(re.p(j,ae),ae[1]&128&&d(re,1)):(re=A0(j),re.c(),d(re,1),re.m(l.parentNode,l)):re&&(ce(),m(re,1,1,()=>{re=null}),fe()),j[7]&&j[22]?X?(X.p(j,ae),ae[0]&4194432&&d(X,1)):(X=L0(j),X.c(),d(X,1),X.m(r.parentNode,r)):X&&(ce(),m(X,1,1,()=>{X=null}),fe()),j[31]&&j[18]&&j[19]?Te?(Te.p(j,ae),ae[0]&786432|ae[1]&1&&d(Te,1)):(Te=V0(j),Te.c(),d(Te,1),Te.m(a.parentNode,a)):Te&&(ce(),m(Te,1,1,()=>{Te=null}),fe()),j[44]?q?(q.p(j,ae),ae[1]&8192&&d(q,1)):(q=R0(j),q.c(),d(q,1),q.m(s.parentNode,s)):q&&(ce(),m(q,1,1,()=>{q=null}),fe()),j[49]?O?(O.p(j,ae),ae[1]&262144&&d(O,1)):(O=B0(j),O.c(),d(O,1),O.m(u.parentNode,u)):O&&(ce(),m(O,1,1,()=>{O=null}),fe()),j[53]?K?ae[1]&4194304&&d(K,1):(K=D0(j),K.c(),d(K,1),K.m(f.parentNode,f)):K&&(ce(),m(K,1,1,()=>{K=null}),fe()),j[39]?le?(le.p(j,ae),ae[1]&256&&d(le,1)):(le=N0(j),le.c(),d(le,1),le.m(p.parentNode,p)):le&&(ce(),m(le,1,1,()=>{le=null}),fe()),j[55].value!=="off"?ee?(ee.p(j,ae),ae[1]&16777216&&d(ee,1)):(ee=O0(j),ee.c(),d(ee,1),ee.m(g.parentNode,g)):ee&&(ce(),m(ee,1,1,()=>{ee=null}),fe()),j[37]?ue?(ue.p(j,ae),ae[1]&64&&d(ue,1)):(ue=F0(j),ue.c(),d(ue,1),ue.m(y.parentNode,y)):ue&&(ce(),m(ue,1,1,()=>{ue=null}),fe()),j[22]?ze?(ze.p(j,ae),ae[0]&4194304&&d(ze,1)):(ze=q0(j),ze.c(),d(ze,1),ze.m(h.parentNode,h)):ze&&(ce(),m(ze,1,1,()=>{ze=null}),fe());let _e={};ae[1]&268435456&&(_e.isLive=j[59]),ae[1]&4096&&(_e.isHidden=!j[43]),ae[1]&1048576&&(_e.isPlaying=j[51]),ae[1]&67108864&&(_e.position=j[57]),ae[1]&536870912&&(_e.duration=j[60]),C.$set(_e);let Ue={};ae[0]&2097152&&(Ue.supportLink=j[21]),ae[1]&131072&&(Ue.returnFocus=j[159]),ae[1]&4&&(Ue.visible=j[33]),ae[1]&512&&(Ue.playerContainerRef=j[40]),ae[1]&1024&&(Ue.controlsContainerRef=j[41]),ae[1]&1073741824&&(Ue.position=j[61]),!P&&ae[1]&2&&(P=!0,Ue.menuElementRef=j[32],Oe(()=>P=!1)),k.$set(Ue),j[42]?Ve?ae[1]&2048&&d(Ve,1):(Ve=H0(j),Ve.c(),d(Ve,1),Ve.m(W.parentNode,W)):Ve&&(ce(),m(Ve,1,1,()=>{Ve=null}),fe()),j[62]?Qe?ae[2]&1&&d(Qe,1):(Qe=z0(j),Qe.c(),d(Qe,1),Qe.m(z.parentNode,z)):Qe&&(ce(),m(Qe,1,1,()=>{Qe=null}),fe()),j[63]?tt?ae[2]&2&&d(tt,1):(tt=U0(j),tt.c(),d(tt,1),tt.m(se.parentNode,se)):tt&&(ce(),m(tt,1,1,()=>{tt=null}),fe())},i(j){de||(d(e.$$.fragment,j),d(L),d(oe),d(re),d(X),d(Te),d(q),d(O),d(K),d(le),d(ee),d(ue),d(ze),d(C.$$.fragment,j),d(F.$$.fragment,j),d(k.$$.fragment,j),d(Ve),d(Qe),d(tt),de=!0)},o(j){m(e.$$.fragment,j),m(L),m(oe),m(re),m(X),m(Te),m(q),m(O),m(K),m(le),m(ee),m(ue),m(ze),m(C.$$.fragment,j),m(F.$$.fragment,j),m(k.$$.fragment,j),m(Ve),m(Qe),m(tt),de=!1},d(j){j&&(b(t),b(n),b(o),b(l),b(r),b(a),b(s),b(u),b(f),b(p),b(g),b(y),b(h),b(w),b(T),b(x),b(W),b(z),b(se)),M(e,j),L&&L.d(j),oe&&oe.d(j),re&&re.d(j),X&&X.d(j),Te&&Te.d(j),q&&q.d(j),O&&O.d(j),K&&K.d(j),le&&le.d(j),ee&&ee.d(j),ue&&ue.d(j),ze&&ze.d(j),M(C,j),M(F,j),M(k,j),Ve&&Ve.d(j),Qe&&Qe.d(j),tt&&tt.d(j)}}}function s8(i){let e,t,n,o,l=i[52],r,a,s,u,f=W0(i);return{c(){e=I("div"),t=I("div"),o=H(),f.c(),r=$e(),c(t,"class","video-container svelte-12e19rp"),c(t,"style",n=`transform: rotate(${i[35]}deg) scale(${i[46]})`),c(t,"data-testid","video-container"),c(t,"data-is-playing",i[51]),G(t,"fast-rotate",!i[1].isSmoothVideoRotate),c(e,"class","video-wrapper svelte-12e19rp"),G(e,"hidden",i[38]!=="video"),G(e,"nocursor",i[45])},m(p,g){v(p,e,g),_(e,t),i[156](t),v(p,o,g),f.m(p,g),v(p,r,g),a=!0,s||(u=[Pe(e,"contextmenu",Gt(i[108])),Pe(e,"mousedown",Gt(i[113])),Pe(e,"mouseup",Gt(i[114])),Pe(e,"click",Gt(i[116])),Pe(e,"dblclick",Gt(i[115]))],s=!0)},p(p,g){(!a||g[1]&32784&&n!==(n=`transform: rotate(${p[35]}deg) scale(${p[46]})`))&&c(t,"style",n),(!a||g[1]&1048576)&&c(t,"data-is-playing",p[51]),(!a||g[0]&2)&&G(t,"fast-rotate",!p[1].isSmoothVideoRotate),(!a||g[1]&128)&&G(e,"hidden",p[38]!=="video"),(!a||g[1]&16384)&&G(e,"nocursor",p[45]),g[1]&2097152&&R(l,l=p[52])?(ce(),m(f,1,1,ge),fe(),f=W0(p),f.c(),d(f,1),f.m(r.parentNode,r)):f.p(p,g)},i(p){a||(d(f),a=!0)},o(p){m(f),a=!1},d(p){p&&(b(e),b(o),b(r)),i[156](null),f.d(p),s=!1,at(u)}}}function a8(i){let e,t,n,o,l,r,a,s={toggleFullscreen:i[106],hideContextMenu:i[107],showHotKeyHelpers:i[117],showKeyMap:i[118],isAds:i[38]==="ads",fakePlayButtonHandler:i[47]?i[105]:void 0,$$slots:{default:[s8]},$$scope:{ctx:i}};return t=new t1({props:s}),i[161](t),{c(){e=I("div"),A(t.$$.fragment),n=H(),o=I("div"),c(o,"class","overlay-container"),c(e,"class","player-wrapper svelte-12e19rp")},m(u,f){v(u,e,f),E(t,e,null),_(e,n),_(e,o),i[162](o),i[163](e),l=!0,r||(a=[Pe(r8,"blur",i[107]),Pe(e,"mouseenter",i[109]),Pe(e,"mouseleave",i[111]),Pe(e,"mousemove",i[112]),Pe(e,"click",i[120],!0),Pe(e,"focusin",i[110],!0)],r=!0)},p(u,f){let p={};f[1]&128&&(p.isAds=u[38]==="ads"),f[1]&65536&&(p.fakePlayButtonHandler=u[47]?u[105]:void 0),f[0]&1073741823|f[1]&2147418111|f[2]&3|f[6]&16&&(p.$$scope={dirty:f,ctx:u}),t.$set(p)},i(u){l||(d(t.$$.fragment,u),l=!0)},o(u){m(t.$$.fragment,u),l=!1},d(u){u&&b(e),i[161](null),M(t),i[162](null),i[163](null),r=!1,at(a)}}}var G0=!0;function Yc(i){return i?i.offsetTop+Yc(i.offsetParent):0}function j0(i){return i?i.offsetLeft+j0(i.offsetParent):0}function u8(i,e,t){let n,o,l,r,a,s,u,f,p,g,y,h,C,w,F,T,k,P,x,W,z,se,de,L,oe,re,X,Te,q,O,K,le,ee,ue,ze,Re,ke,Ve,Qe,tt,j,ae,Ze,{store:_e}=e,{uiConfig:Ue}=e,{title:st}=e,{thumbUrl:je}=e,{videoContainer:qe}=e,{interactiveContainer:Xe}=e,{live:Ye}=e,{autoplay:Q}=e,{canRewindLive:Be}=e,{showAds:Ie}=e,{adsSlotId:$=void 0}=e,{adsParams:be=void 0}=e,{adsPreviewParam:ot=void 0}=e,{duration:me=void 0}=e,{logoClickable:_t}=e,{logoHidden:We}=e,{logoTargetUrl:ut=""}=e,{showNextPrevButtons:Tt=!1}=e,{nextButtonActive:At=!1}=e,{prevButtonActive:Lt=!1}=e,{endScreenVideoTitle:et=void 0}=e,{endScreenVideoThumb:Pt=void 0}=e,{isOneVideoPlaylist:Dt=!1}=e,{supportLink:ci}=e,{shadowRootContainer:lt=void 0}=e,{outerContainerRef:yt=void 0}=e,{playerStarted:we=!1}=e,{fullScreenTarget:bt=void 0}=e,{showMiniTimer:Et=!1}=e,{playNextVideo:jt=Es.noop}=e,{playPrevVideo:vt=Es.noop}=e,{repeatPlaylist:Nt=Es.noop}=e,{seekToInteractive:qt}=e,{toggleGraph:xt}=e,{playPrevChapter:fi}=e,{firstStart:di}=e,Ht=_e.getLogger().createComponentLog("Root component"),zt=_e.interfaceLanguage$;N(i,zt,Y=>t(52,le=Y));let oi=_e.state.playbackState$;N(i,oi,Y=>t(153,Te=Y));let Ot=_e.ads.playbackState;N(i,Ot,Y=>t(154,q=Y));let Ei=_e.state.positionWithScrubbing$;N(i,Ei,Y=>t(57,ke=Y));let Ct=_e.state.duration$;N(i,Ct,Y=>t(60,tt=Y));let Mi=_e.playerPhase;N(i,Mi,Y=>t(38,de=Y));let hi=_e.ui.isFullscreen;N(i,hi,Y=>t(143,h=Y));let ri=_e.ui.controlsVisible;N(i,ri,Y=>t(36,P=Y));let Ai=_e.ui.settingsMenuVisible;N(i,Ai,Y=>t(141,s=Y));let pe=_e.ui.scrubbingInProgress;N(i,pe,Y=>t(145,T=Y));let dt=_e.ui.contextMenu.visible$;N(i,dt,Y=>t(33,n=Y));let Li=_e.ui.debugPanelVisible;N(i,Li,Y=>t(63,Ze=Y));let Vi=_e.state.isLoaderVisible;N(i,Vi,Y=>t(155,O=Y));let qi=_e.state.isEnded$;N(i,qi,Y=>t(142,f=Y));let $i=_e.state.chromecastConnected$;N(i,$i,Y=>t(39,re=Y));let Yt=_e.state.chromecastDeviceName$;N(i,Yt,Y=>t(54,ue=Y));let bi=_e.ads.postrollPassed;N(i,bi,Y=>t(148,z=Y));let dn=_e.state.isLive$;N(i,dn,Y=>t(59,Qe=Y));let Ut=_e.state.isPlaying$;N(i,Ut,Y=>t(51,K=Y));let vi=_e.state.crashed$;N(i,vi,Y=>t(37,W=Y));let In=_e.webApi.annotationsApi,mi=_e.webApi.pictureInPictureApi,en=_e.state.currentSubtitle$;N(i,en,Y=>t(55,ze=Y));let Hi=_e.state.currentSubtitleCaptions$;N(i,Hi,Y=>t(56,Re=Y));let mn=_e.state.duration$;N(i,mn,Y=>t(58,Ve=Y));let pn=_e.state.graphIsOpened$;N(i,pn,Y=>t(149,se=Y));let ti=_e.ui.playerSize;N(i,ti,Y=>t(34,g=Y));let zi=_e.ui.is3DVideo;N(i,zi,Y=>t(49,p=Y));let pi=_e.ui.icon3DVideoVisible;N(i,pi,Y=>t(53,ee=Y));let li=_e.ui.rotateAlpha;N(i,li,Y=>t(35,F=Y));let Ui=_e.state.isInteractive,Vn=_e.state.isInteractiveTime$;N(i,Vn,Y=>t(146,k=Y));let Ri=_e.state.isInteractiveExpectation$;N(i,Ri,Y=>t(152,X=Y));let tn=_e.state.hasInteractiveBranches,yi=_e.ui.touched;N(i,yi,Y=>t(150,L=Y));let _i=_e.ui.modals.hotKeyMap.data;N(i,_i,Y=>t(170,u=Y));let Wi=_e.ui.modals.hotKeyMap.show;N(i,Wi,Y=>t(62,ae=Y));let _n=_e.ui.overlayContainer$,nn=_e.ui.controls.interactiveTimeIndicator;N(i,nn,Y=>t(171,y=Y));let ki=_e.state.showInteractiveTimeIndicator,wi=_e.ui.contextMenu.position$;N(i,wi,Y=>t(61,j=Y));let Ki=_e.actions.internal.closeSettingsMenu,{fakeIsPlaying$:Qt}=Mn();N(i,Qt,Y=>t(144,w=Y));let Zt,Kt,ii,Ci,on;_i.set(ad());let rt,Bi,si=He(!1);N(i,si,Y=>t(50,C=Y));let Gi,Si=He(!1);N(i,Si,Y=>t(151,oe=Y));let xe=He(),gn=He(!1);N(i,gn,Y=>t(147,x=Y));let ji=!1,Di=!1,rn=!1,ln=!(Q&&!Ue.controls.showOnStartupAtAutoplay),Xt,sn,hn,xi,gi,an=!1,bn,vn=!1,{toggle:Rn}=Qt,Ii=!1,Yi=null,Ni;mi?.setContext(zr());let yn=()=>{Q&&!Ui&&Ue.controls.showOnStartupAtAutoplay&&Jt(Ue.controls.hideTimeout)};_e.setUiCallbacks({onStarted:yn});let Kn=()=>{window.clearTimeout(ii),Si.set(!1)},Qi=()=>{window.clearTimeout(Ci),xe.set(null)},Jt=Y=>{Kn(),Si.set(!0),ii=window.setTimeout(()=>Si.set(!1),Y);let Vt=Y-100;Gi=window.setTimeout(()=>{C&&si.set(!1)},Vt>0?Vt:Y)},Bn=(Y,Vt)=>{Qi(),xe.set(Vt),Ci=window.setTimeout(()=>xe.set(null),Y)},Gn=zi.subscribe(Y=>{pi.set(Y),Y&&(window.clearTimeout(on),on=window.setTimeout(()=>pi.set(!1),Ue.controls.hide360IconTimeout))}),Dn=async()=>{let Y=bo();if(Y){let Vt=jr(),Tn=Nn();Y=Vt===Tn||Vt===lt}if(Y){Jt(Ue.controls.hideTimeoutFullscreen);try{await mi?.remove()}catch(Vt){Ht({message:String(Vt)})}}hi.set(Y),_e.getAdmanWrapper().setFullscreen(Y),h?_e.callbacks?.onFullscreenEnter?.():_e.callbacks?.onFullscreenExit?.()},jn=Y=>{let Vt=Y;ti.set({width:Vt.target.width,height:Vt.target.height})};It(()=>(Tl(Dn),Ue.features.annotationsInside&&In?.init(Zt),zo(mi)&&(mi?.assignPlayerContainer(Zt),mi?.registryExternalEventHandlers({resize:jn})),Xe&&qe.parentElement?.insertBefore(Xe,qe.nextSibling),()=>{window.clearTimeout(ii),window.clearTimeout(Gi),window.clearTimeout(Ci),window.clearTimeout(on),Gn(),mi?.dispose(),Pl(Dn)}));let Nn=()=>{let Y=Ue.features.fullscreenInternalTargetPlayerContainer||!yt?Zt:yt,Vt=Y.getRootNode(),Tn=Vt instanceof ShadowRoot?Vt.host:Vt,Pn=bt instanceof HTMLElement&&bt.contains(Tn);return Ue.allowChangingFullscreenTarget&&bt&&Pn?bt:Y},un=async()=>{bo()?(await Il(document),Ht({message:"exit fullscreen"})):(Ht({message:"request fullscreen"}),await Sl(Nn()))},ie=()=>{Ki(),dt.set(!1)},kt=Y=>{dt.set(!0),wi.set({left:Y.clientX,top:Y.clientY})};function kn(){gn.set(!0),Ui||Jt(Ue.controls.hideTimeoutCursor)}function cn(){Ui||(si.set(!0),Jt(Ue.controls.hideTimeoutCursor))}function xn(){gn.set(!1),t(132,Di=!1),t(131,ji=!1),Ii=!1,_e.actions.internal.releaseCamera()}function Yn(Y){if(y&&ki){let Vt=Y.currentTarget,Tn=Yc(Vt),Pn=j0(Vt),nr=Y.pageX-Pn,Ao=Y.pageY-Tn,{left:mo,bottom:po,right:or}=y,_o=or-mo;return nr>=mo-_o&&Ao<=po+_o}}function Qn(Y){if(Zt){let Vt=Yc(Y.currentTarget),Tn=g.height,Pn=Y.pageY-Vt;if(Yn(Y)){t(132,Di=!1);return}Pn<40?t(132,Di=!0):Pn>Tn-40?t(131,ji=!0):(t(132,Di=!1),s||t(131,ji=!1))}}function So(Y){Qn(Y),Xt||Jt(Ue.controls.hideTimeoutCursor),p&&Ii&&Yi&&_e.actions.internal.moveCameraFocusPX(Yi.clientX-Y.clientX,Yi.clientY-Y.clientY,Y.timeStamp-Yi.timeStamp),Yi=Y}let Io=Y=>{Y.button===0&&(Ii=!0,_e.actions.internal.holdCamera()),Jt(Ue.controls.hideTimeoutCursor)},fn=Y=>{Y.button===0&&(Yi=Y,Ii=!1,_e.actions.internal.releaseCamera()),Jt(Ue.controls.hideTimeoutCursor)},to=()=>{G0&&(Ht({message:"double click on video"}),un(),Jt(Ue.controls.hideTimeoutCursor))},te=()=>{if(n||s){ie();return}if(!(f&&!tn)){if(vn)return Rn();if(Ni?.focus(),!we){di(),Jt(Ue.controls.hideTimeoutCursor);return}_e.actions.internal.togglePlay(),Jt(Ue.controls.hideTimeoutCursor)}},To=Y=>{ie(),yi.set(!0),Jt(Ue.controls.hideTimeout),Y&&Bn(Ue.controls.hideHotKeyHelpers,Y)},On=()=>{ie(),_e.callbacks?.onOpenHotKeyMap?_e.callbacks?.onOpenHotKeyMap(u):Wi.update(Y=>!Y)},Fr=()=>{if(n||s){ie();return}},Qo=()=>{yi.set(!0)},Po=_e.ui.contextMenu.openedByBtnKeyboard$;N(i,Po,Y=>t(140,a=Y));let Eo=_e.ui.contextMenu.btnRef$;N(i,Eo,Y=>t(139,r=Y));let Zi,co=_e.ui.contextMenu.openedByHotKey$;N(i,co,Y=>t(138,l=Y));let fo=_e.ui.contextMenu.lastActiveElem$;N(i,fo,Y=>t(137,o=Y));function Zo(Y){he[Y?"unshift":"push"](()=>{qe=Y,t(0,qe)})}let Xo=()=>Ni?.focus();function Mo(Y){Kt=Y,t(41,Kt)}let Jo=()=>Ni?.focus();function $o(Y){Zi=Y,t(32,Zi)}function er(Y){he[Y?"unshift":"push"](()=>{Ni=Y,t(48,Ni)})}function tr(Y){he[Y?"unshift":"push"](()=>{Bi=Y,t(30,Bi)})}function ir(Y){he[Y?"unshift":"push"](()=>{Zt=Y,t(40,Zt)})}return i.$$set=Y=>{"store"in Y&&t(125,_e=Y.store),"uiConfig"in Y&&t(1,Ue=Y.uiConfig),"title"in Y&&t(2,st=Y.title),"thumbUrl"in Y&&t(3,je=Y.thumbUrl),"videoContainer"in Y&&t(0,qe=Y.videoContainer),"interactiveContainer"in Y&&t(126,Xe=Y.interactiveContainer),"live"in Y&&t(4,Ye=Y.live),"autoplay"in Y&&t(5,Q=Y.autoplay),"canRewindLive"in Y&&t(6,Be=Y.canRewindLive),"showAds"in Y&&t(7,Ie=Y.showAds),"adsSlotId"in Y&&t(8,$=Y.adsSlotId),"adsParams"in Y&&t(9,be=Y.adsParams),"adsPreviewParam"in Y&&t(10,ot=Y.adsPreviewParam),"duration"in Y&&t(11,me=Y.duration),"logoClickable"in Y&&t(12,_t=Y.logoClickable),"logoHidden"in Y&&t(13,We=Y.logoHidden),"logoTargetUrl"in Y&&t(14,ut=Y.logoTargetUrl),"showNextPrevButtons"in Y&&t(15,Tt=Y.showNextPrevButtons),"nextButtonActive"in Y&&t(16,At=Y.nextButtonActive),"prevButtonActive"in Y&&t(17,Lt=Y.prevButtonActive),"endScreenVideoTitle"in Y&&t(18,et=Y.endScreenVideoTitle),"endScreenVideoThumb"in Y&&t(19,Pt=Y.endScreenVideoThumb),"isOneVideoPlaylist"in Y&&t(20,Dt=Y.isOneVideoPlaylist),"supportLink"in Y&&t(21,ci=Y.supportLink),"shadowRootContainer"in Y&&t(127,lt=Y.shadowRootContainer),"outerContainerRef"in Y&&t(128,yt=Y.outerContainerRef),"playerStarted"in Y&&t(22,we=Y.playerStarted),"fullScreenTarget"in Y&&t(129,bt=Y.fullScreenTarget),"showMiniTimer"in Y&&t(130,Et=Y.showMiniTimer),"playNextVideo"in Y&&t(23,jt=Y.playNextVideo),"playPrevVideo"in Y&&t(24,vt=Y.playPrevVideo),"repeatPlaylist"in Y&&t(25,Nt=Y.repeatPlaylist),"seekToInteractive"in Y&&t(26,qt=Y.seekToInteractive),"toggleGraph"in Y&&t(27,xt=Y.toggleGraph),"playPrevChapter"in Y&&t(28,fi=Y.playPrevChapter),"firstStart"in Y&&t(29,di=Y.firstStart)},i.$$.update=()=>{if(i.$$.dirty[1]&192|i.$$.dirty[4]&1073741824|i.$$.dirty[5]&1&&t(42,rt=(de==="video"&&O||de==="ads"&&q==="inactive")&&!W),i.$$.dirty[0]&1073741824&&_n.set(Bi),i.$$.dirty[4]&536871936&&(t(133,rn=ln&&Te!==K0.PlaybackState.PLAYING),ln||t(134,ln=!0)),i.$$.dirty[4]&272761728&&t(135,Xt=k&&!s&&!(ji||Di)&&!(rn&&!X)),i.$$.dirty[1]&448|i.$$.dirty[4]&136448512&&ri.set((rn||s||T||re||oe)&&!Xt&&(de==="video"||de==="ads")&&!W),i.$$.dirty[0]&2|i.$$.dirty[1]&224|i.$$.dirty[4]&67108928&&t(43,sn=Ue.features.thumbTimer&&Et&&de==="video"&&!P&&!W&&!Ui&&(Ue.hideThumbTimerAfterTouch&&!L||!Ue.hideThumbTimerAfterTouch)),i.$$.dirty[1]&128|i.$$.dirty[4]&34078720&&t(44,hn=de==="video"&&!se&&h),i.$$.dirty[0]&128|i.$$.dirty[1]&64|i.$$.dirty[4]&17039360&&t(31,xi=(Ie&&z||!Ie)&&f&&!W),i.$$.dirty[1]&33|i.$$.dirty[4]&12582912&&t(45,gi=x&&!(P||xi)&&!k),i.$$.dirty[0]&2|i.$$.dirty[4]&6295552&&(!T&&an&&!k&&Jt(Ue.controls.hideTimeoutCursor),t(136,an=T)),i.$$.dirty[0]&1|i.$$.dirty[1]&24&&t(46,bn=qe&&F%180?g.height/g.width:1),i.$$.dirty[4]&1048576&&t(47,vn=w!==null),i.$$.dirty[1]&6|i.$$.dirty[4]&65536&&Wo(Zi,n,a),i.$$.dirty[1]&4|i.$$.dirty[4]&32768){let Y=r;Y&&kr(Y,n,Po)}if(i.$$.dirty[1]&6|i.$$.dirty[4]&16384&&Wo(Zi,n,l),i.$$.dirty[1]&4|i.$$.dirty[4]&8192){let Y=o;Y&&kd(Y,n,co)}},[qe,Ue,st,je,Ye,Q,Be,Ie,$,be,ot,me,_t,We,ut,Tt,At,Lt,et,Pt,Dt,ci,we,jt,vt,Nt,qt,xt,fi,di,Bi,xi,Zi,n,g,F,P,W,de,re,Zt,Kt,rt,sn,hn,gi,bn,vn,Ni,p,C,K,le,ee,ue,ze,Re,ke,Ve,Qe,tt,j,ae,Ze,zt,oi,Ot,Ei,Ct,Mi,hi,ri,Ai,pe,dt,Li,Vi,qi,$i,Yt,bi,dn,Ut,vi,en,Hi,mn,pn,ti,zi,pi,li,Ui,Vn,Ri,yi,_i,Wi,nn,wi,Qt,si,Si,xe,gn,Rn,un,ie,kt,kn,cn,xn,So,Io,fn,to,te,To,On,Fr,Qo,Po,Eo,co,fo,_e,Xe,lt,yt,bt,Et,ji,Di,rn,ln,Xt,an,o,l,r,a,s,f,h,w,T,k,x,z,se,L,oe,X,Te,q,O,Zo,Xo,Mo,Jo,$o,er,tr,ir]}var Qc=class extends B{constructor(e){super(),D(this,e,u8,a8,R,{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},l8,[-1,-1,-1,-1,-1,-1,-1])}},x0=Qc;var m_=require("@vkontakte/videoplayer-core"),uo=require("@vkontakte/videoplayer-shared");function c8(i){Ce(i,"svelte-nhq2ld",".double-click-area.svelte-nhq2ld{position:absolute;top:0;height:100%;width:25%;overflow:hidden}.double-click-area.left.svelte-nhq2ld{left:0}.double-click-area.right.svelte-nhq2ld{right:0}.semicircle.svelte-nhq2ld{position:absolute;top:0;width:100%;height:100%;background-color:rgba(0, 0, 0, 0.5)}.semicircle.left.svelte-nhq2ld{left:0;border-top-right-radius:50%;border-bottom-right-radius:50%}.semicircle.right.svelte-nhq2ld{right:0;border-top-left-radius:50%;border-bottom-left-radius:50%}.info.svelte-nhq2ld{position:absolute;top:50%;left:50%;transform:translate(-50%, -50%);display:flex;flex-direction:column;align-items:center;justify-content:center}.triangles-wrapper.svelte-nhq2ld{position:relative;display:flex;margin-bottom:10px;justify-content:center}.triangle.svelte-nhq2ld{width:0;height:0;border-top:6px solid transparent;border-bottom:6px solid transparent;animation:svelte-nhq2ld-blink 500ms infinite;opacity:0}.triangle.right.svelte-nhq2ld:nth-child(1),.triangle.left.svelte-nhq2ld:nth-child(3){animation-delay:0ms}.triangle.right.svelte-nhq2ld:nth-child(2),.triangle.left.svelte-nhq2ld:nth-child(2){animation-delay:100ms}.triangle.right.svelte-nhq2ld:nth-child(3),.triangle.left.svelte-nhq2ld:nth-child(1){animation-delay:200ms}@keyframes svelte-nhq2ld-blink{0%{opacity:0}50%{opacity:1}100%{opacity:0}}.triangle.left.svelte-nhq2ld{border-right:8px solid var(--white)}.triangle.right.svelte-nhq2ld{border-left:8px solid var(--white)}.triangle.svelte-nhq2ld:not(:last-child){margin-right:5px}.step-caption.svelte-nhq2ld{margin:0;text-align:center;font-size:12px;line-height:1;color:var(--white)}")}function Y0(i){let e,t,n,o,l,r,a,s,u,f,p,g,y,h,C,w=U("doubletap_seek_step",{seconds:i[2].toFixed(0)})+"",F;return{c(){e=I("div"),n=H(),o=I("div"),l=I("div"),r=I("div"),s=H(),u=I("div"),p=H(),g=I("div"),h=H(),C=I("p"),F=Ne(w),c(e,"class",t="semicircle "+i[0]+" svelte-nhq2ld"),c(r,"class",a="triangle "+i[0]+" svelte-nhq2ld"),c(u,"class",f="triangle "+i[0]+" svelte-nhq2ld"),c(g,"class",y="triangle "+i[0]+" svelte-nhq2ld"),c(l,"class","triangles-wrapper svelte-nhq2ld"),c(C,"class","step-caption svelte-nhq2ld"),c(o,"class","info svelte-nhq2ld")},m(T,k){v(T,e,k),v(T,n,k),v(T,o,k),_(o,l),_(l,r),_(l,s),_(l,u),_(l,p),_(l,g),_(o,h),_(o,C),_(C,F)},p(T,k){k&1&&t!==(t="semicircle "+T[0]+" svelte-nhq2ld")&&c(e,"class",t),k&1&&a!==(a="triangle "+T[0]+" svelte-nhq2ld")&&c(r,"class",a),k&1&&f!==(f="triangle "+T[0]+" svelte-nhq2ld")&&c(u,"class",f),k&1&&y!==(y="triangle "+T[0]+" svelte-nhq2ld")&&c(g,"class",y),k&4&&w!==(w=U("doubletap_seek_step",{seconds:T[2].toFixed(0)})+"")&&Ge(F,w)},d(T){T&&(b(e),b(n),b(o))}}}function f8(i){let e,t,n,o,l=i[1]&&Y0(i);return{c(){e=I("div"),l&&l.c(),c(e,"class",t="double-click-area "+i[0]+" svelte-nhq2ld")},m(r,a){v(r,e,a),l&&l.m(e,null),n||(o=Pe(e,"click",mt(i[3]())),n=!0)},p(r,[a]){r[1]?l?l.p(r,a):(l=Y0(r),l.c(),l.m(e,null)):l&&(l.d(1),l=null),a&1&&t!==(t="double-click-area "+r[0]+" svelte-nhq2ld")&&c(e,"class",t)},i:ge,o:ge,d(r){r&&b(e),l&&l.d(),n=!1,o()}}}function d8(i,e,t){let{side:n}=e,{seekStep:o=0}=e,{handleSingleFirstClick:l}=e,{handleSecondClick:r}=e,a=!1,s=0,u=0,f=o,p=()=>()=>{u+=1,t(2,f=o*(u-1)),u===1?l():(t(1,a=!0),r()),window.clearTimeout(s),s=window.setTimeout(()=>{u=0,t(1,a=!1)},300)};return Fn(()=>{window.clearTimeout(s)}),i.$$set=g=>{"side"in g&&t(0,n=g.side),"seekStep"in g&&t(4,o=g.seekStep),"handleSingleFirstClick"in g&&t(5,l=g.handleSingleFirstClick),"handleSecondClick"in g&&t(6,r=g.handleSecondClick)},[n,a,f,p,o,l,r]}var Zc=class extends B{constructor(e){super(),D(this,e,d8,f8,R,{side:0,seekStep:4,handleSingleFirstClick:5,handleSecondClick:6},c8)}},Xc=Zc;function m8(i,e,t){let{playNextVideo:n}=e;return It(()=>{n()}),i.$$set=o=>{"playNextVideo"in o&&t(0,n=o.playNextVideo)},[n]}var Jc=class extends B{constructor(e){super(),D(this,e,m8,null,R,{playNextVideo:0})}},Q0=Jc;var{window:p8}=Lo;function _8(i){Ce(i,"svelte-6x5lql",".player-wrapper.svelte-6x5lql{position:absolute;width:100%;height:100%}.player-wrapper.svelte-6x5lql .player-media{position:absolute;left:0;top:0;width:100%;height:100%;background:var(--black);transition:transform 0.2s ease-in-out}.spherical-video-icon.svelte-6x5lql{display:inline-block;position:absolute;top:calc(50% - 23px);left:calc(50% - 38px)}.video-wrapper.svelte-6x5lql,.video-container.svelte-6x5lql,.ads-container.svelte-6x5lql{position:absolute;width:100%;height:100%;left:0;top:0}.video-wrapper.svelte-6x5lql{z-index:var(--video-container-z-index);background:var(--black)}.video-container.svelte-6x5lql{z-index:var(--video-container-z-index);transition:var(--rotate-transition-duration) ease all}.video-container.fast-rotate.svelte-6x5lql{transition:none}.ads-container.svelte-6x5lql{z-index:var(--ads-container-z-index);background:var(--black)}")}function Z0(i){let e,t,n,o=i[45]&&X0(i),l=i[46]&&J0(i);return{c(){o&&o.c(),e=H(),l&&l.c(),t=$e()},m(r,a){o&&o.m(r,a),v(r,e,a),l&&l.m(r,a),v(r,t,a),n=!0},p(r,a){r[45]?o?(o.p(r,a),a[1]&16384&&d(o,1)):(o=X0(r),o.c(),d(o,1),o.m(e.parentNode,e)):o&&(ce(),m(o,1,1,()=>{o=null}),fe()),r[46]?l?(l.p(r,a),a[1]&32768&&d(l,1)):(l=J0(r),l.c(),d(l,1),l.m(t.parentNode,t)):l&&(ce(),m(l,1,1,()=>{l=null}),fe())},i(r){n||(d(o),d(l),n=!0)},o(r){m(o),m(l),n=!1},d(r){r&&(b(e),b(t)),o&&o.d(r),l&&l.d(r)}}}function X0(i){let e,t;return e=new Xc({props:{side:"left",seekStep:i[1].controls.seekStepMobile/1e3,handleSingleFirstClick:i[100],handleSecondClick:i[132]}}),{c(){A(e.$$.fragment)},m(n,o){E(e,n,o),t=!0},p(n,o){let l={};o[0]&2&&(l.seekStep=n[1].controls.seekStepMobile/1e3),e.$set(l)},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){m(e.$$.fragment,n),t=!1},d(n){M(e,n)}}}function J0(i){let e,t;return e=new Xc({props:{side:"right",seekStep:i[1].controls.seekStepMobile/1e3,handleSingleFirstClick:i[100],handleSecondClick:i[133]}}),{c(){A(e.$$.fragment)},m(n,o){E(e,n,o),t=!0},p(n,o){let l={};o[0]&2&&(l.seekStep=n[1].controls.seekStepMobile/1e3),e.$set(l)},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){m(e.$$.fragment,n),t=!1},d(n){M(e,n)}}}function $0(i){let e,t;return e=new Ps({props:{thumbUrl:i[2],startTime:i[3]?.startTime}}),{c(){A(e.$$.fragment)},m(n,o){E(e,n,o),t=!0},p(n,o){let l={};o[0]&4&&(l.thumbUrl=n[2]),o[0]&8&&(l.startTime=n[3]?.startTime),e.$set(l)},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){m(e.$$.fragment,n),t=!1},d(n){M(e,n)}}}function e_(i){let e,t;return e=new Vr({props:{kind:"recover",thumbUrl:i[2]}}),{c(){A(e.$$.fragment)},m(n,o){E(e,n,o),t=!0},p(n,o){let l={};o[0]&4&&(l.thumbUrl=n[2]),e.$set(l)},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){m(e.$$.fragment,n),t=!1},d(n){M(e,n)}}}function t_(i){let e,t;return e=new Vr({props:{kind:"record",thumbUrl:i[2]}}),{c(){A(e.$$.fragment)},m(n,o){E(e,n,o),t=!0},p(n,o){let l={};o[0]&4&&(l.thumbUrl=n[2]),e.$set(l)},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){m(e.$$.fragment,n),t=!1},d(n){M(e,n)}}}function i_(i){let e,t,n;return t=new El({props:{adsSlotId:i[7],adsParams:i[8],adsPreviewParam:i[9],duration:i[10]}}),{c(){e=I("div"),A(t.$$.fragment),c(e,"class","ads-container svelte-6x5lql"),G(e,"hidden",i[36]!=="ads")},m(o,l){v(o,e,l),E(t,e,null),n=!0},p(o,l){let r={};l[0]&128&&(r.adsSlotId=o[7]),l[0]&256&&(r.adsParams=o[8]),l[0]&512&&(r.adsPreviewParam=o[9]),l[0]&1024&&(r.duration=o[10]),t.$set(r),(!n||l[1]&32)&&G(e,"hidden",o[36]!=="ads")},i(o){n||(d(t.$$.fragment,o),n=!0)},o(o){m(t.$$.fragment,o),n=!1},d(o){o&&b(e),M(t)}}}function n_(i){let e,t;return e=new Q0({props:{playNextVideo:i[22]}}),{c(){A(e.$$.fragment)},m(n,o){E(e,n,o),t=!0},p(n,o){let l={};o[0]&4194304&&(l.playNextVideo=n[22]),e.$set(l)},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){m(e.$$.fragment,n),t=!1},d(n){M(e,n)}}}function o_(i){let e,t;return e=new ws({}),{c(){A(e.$$.fragment)},m(n,o){E(e,n,o),t=!0},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){m(e.$$.fragment,n),t=!1},d(n){M(e,n)}}}function r_(i){let e,t,n;return t=new vl({props:{"aria-label":U("video360")}}),{c(){e=I("div"),A(t.$$.fragment),c(e,"class","spherical-video-icon svelte-6x5lql")},m(o,l){v(o,e,l),E(t,e,null),n=!0},i(o){n||(d(t.$$.fragment,o),n=!0)},o(o){m(t.$$.fragment,o),n=!1},d(o){o&&b(e),M(t)}}}function l_(i){let e,t;return e=new Ss({props:{thumbUrl:i[2],chromecastDeviceName:i[53]}}),{c(){A(e.$$.fragment)},m(n,o){E(e,n,o),t=!0},p(n,o){let l={};o[0]&4&&(l.thumbUrl=n[2]),o[1]&4194304&&(l.chromecastDeviceName=n[53]),e.$set(l)},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){m(e.$$.fragment,n),t=!1},d(n){M(e,n)}}}function s_(i){let e,t;return e=new Cs({props:{shifted:i[30],captions:i[55],position:i[32],playerSize:i[33],isMobile:!0}}),{c(){A(e.$$.fragment)},m(n,o){E(e,n,o),t=!0},p(n,o){let l={};o[0]&1073741824&&(l.shifted=n[30]),o[1]&16777216&&(l.captions=n[55]),o[1]&2&&(l.position=n[32]),o[1]&4&&(l.playerSize=n[33]),e.$set(l)},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){m(e.$$.fragment,n),t=!1},d(n){M(e,n)}}}function a_(i){let e,t,n,o,l;return t=new Is({}),{c(){e=I("div"),A(t.$$.fragment)},m(r,a){v(r,e,a),E(t,e,null),n=!0,o||(l=Pe(e,"click",mt(i[101])),o=!0)},p:ge,i(r){n||(d(t.$$.fragment,r),n=!0)},o(r){m(t.$$.fragment,r),n=!1},d(r){r&&b(e),M(t),o=!1,l()}}}function u_(i){let e,t,n;function o(r){i[134](r)}let l={bottomHidden:i[36]==="thumb"||i[36]==="LiveWaitingStart"||i[36]==="LiveWaitingRecover"||i[36]==="LiveWaitingRecord"||i[36]==="ads",showControls:i[30],bottomNoSmooth:i[47],isAds:i[36]==="ads",canRewindLive:i[5]&&i[56]!==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[41],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[39]!==void 0&&(l.controlsElementRef=i[39]),e=new ks({props:l}),he.push(()=>Fe(e,"controlsElementRef",o)),{c(){A(e.$$.fragment)},m(r,a){E(e,r,a),n=!0},p(r,a){let s={};a[1]&32&&(s.bottomHidden=r[36]==="thumb"||r[36]==="LiveWaitingStart"||r[36]==="LiveWaitingRecover"||r[36]==="LiveWaitingRecord"||r[36]==="ads"),a[0]&1073741824&&(s.showControls=r[30]),a[1]&65536&&(s.bottomNoSmooth=r[47]),a[1]&32&&(s.isAds=r[36]==="ads"),a[0]&32|a[1]&33554432&&(s.canRewindLive=r[5]&&r[56]!==0),a[0]&2048&&(s.logoClickable=r[11]),a[0]&4096&&(s.logoHidden=r[12]),a[0]&8192&&(s.logoTargetUrl=r[13]),a[0]&16384&&(s.showNextPrevButtons=r[14]),a[0]&32768&&(s.nextButtonActive=r[15]),a[0]&65536&&(s.prevButtonActive=r[16]),a[0]&524288&&(s.isOneVideoPlaylist=r[19]),a[0]&1048576&&(s.supportLink=r[20]),a[1]&1024&&(s.customFullscreenSupported=r[41]),a[0]&4194304&&(s.playNextVideo=r[22]),a[0]&8388608&&(s.playPrevVideo=r[23]),a[0]&16777216&&(s.repeatPlaylist=r[24]),a[0]&33554432&&(s.seekToInteractive=r[25]),a[0]&67108864&&(s.toggleGraph=r[26]),a[0]&134217728&&(s.playPrevChapter=r[27]),!t&&a[1]&256&&(t=!0,s.controlsElementRef=r[39],Oe(()=>t=!1)),e.$set(s)},i(r){n||(d(e.$$.fragment,r),n=!0)},o(r){m(e.$$.fragment,r),n=!1},d(r){M(e,r)}}}function c_(i){let e,t;return e=new Sr({}),{c(){A(e.$$.fragment)},m(n,o){E(e,n,o),t=!0},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){m(e.$$.fragment,n),t=!1},d(n){M(e,n)}}}function f_(i){let e,t;return e=new Bl({}),{c(){A(e.$$.fragment)},m(n,o){E(e,n,o),t=!0},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){m(e.$$.fragment,n),t=!1},d(n){M(e,n)}}}function d_(i){let e,t,n=i[5]&&i[79]&&!i[50].has("TIMELINE"),o,l,r,a,s,u,f,p,g,y,h,C,w,F,T,k,P;e=new Ts({props:{hidden:i[36]!=="thumb"||i[35]||i[90]&&i[4],thumbUrl:i[2],startVideo:i[28]}});let x=n&&Z0(i),W=i[36]==="LiveWaitingStart"&&$0(i),z=i[36]==="LiveWaitingRecover"&&e_(i),se=i[36]==="LiveWaitingRecord"&&t_(i),de=i[6]&&i[21]&&i_(i),L=i[43]&&i[17]&&i[18]&&n_(i),oe=i[51]&&o_(i),re=i[52]&&r_(i),X=i[37]&&l_(i),Te=i[54].value!=="off"&&s_(i),q=i[35]&&a_(i),O=i[21]&&u_(i);w=new Al({props:{isLive:i[57],isHidden:!i[42],isPlaying:i[48],position:i[32],duration:i[31]}});let K=i[40]&&c_(i),le=i[58]&&f_(i);return{c(){A(e.$$.fragment),t=H(),x&&x.c(),o=H(),W&&W.c(),l=H(),z&&z.c(),r=H(),se&&se.c(),a=H(),de&&de.c(),s=H(),L&&L.c(),u=H(),oe&&oe.c(),f=H(),re&&re.c(),p=H(),X&&X.c(),g=H(),Te&&Te.c(),y=H(),q&&q.c(),h=H(),O&&O.c(),C=H(),A(w.$$.fragment),F=H(),K&&K.c(),T=H(),le&&le.c(),k=$e()},m(ee,ue){E(e,ee,ue),v(ee,t,ue),x&&x.m(ee,ue),v(ee,o,ue),W&&W.m(ee,ue),v(ee,l,ue),z&&z.m(ee,ue),v(ee,r,ue),se&&se.m(ee,ue),v(ee,a,ue),de&&de.m(ee,ue),v(ee,s,ue),L&&L.m(ee,ue),v(ee,u,ue),oe&&oe.m(ee,ue),v(ee,f,ue),re&&re.m(ee,ue),v(ee,p,ue),X&&X.m(ee,ue),v(ee,g,ue),Te&&Te.m(ee,ue),v(ee,y,ue),q&&q.m(ee,ue),v(ee,h,ue),O&&O.m(ee,ue),v(ee,C,ue),E(w,ee,ue),v(ee,F,ue),K&&K.m(ee,ue),v(ee,T,ue),le&&le.m(ee,ue),v(ee,k,ue),P=!0},p(ee,ue){let ze={};ue[0]&16|ue[1]&48&&(ze.hidden=ee[36]!=="thumb"||ee[35]||ee[90]&&ee[4]),ue[0]&4&&(ze.thumbUrl=ee[2]),ue[0]&268435456&&(ze.startVideo=ee[28]),e.$set(ze),ue[0]&32|ue[1]&524288&&(n=ee[5]&&ee[79]&&!ee[50].has("TIMELINE")),n?x?(x.p(ee,ue),ue[0]&32|ue[1]&524288&&d(x,1)):(x=Z0(ee),x.c(),d(x,1),x.m(o.parentNode,o)):x&&(ce(),m(x,1,1,()=>{x=null}),fe()),ee[36]==="LiveWaitingStart"?W?(W.p(ee,ue),ue[1]&32&&d(W,1)):(W=$0(ee),W.c(),d(W,1),W.m(l.parentNode,l)):W&&(ce(),m(W,1,1,()=>{W=null}),fe()),ee[36]==="LiveWaitingRecover"?z?(z.p(ee,ue),ue[1]&32&&d(z,1)):(z=e_(ee),z.c(),d(z,1),z.m(r.parentNode,r)):z&&(ce(),m(z,1,1,()=>{z=null}),fe()),ee[36]==="LiveWaitingRecord"?se?(se.p(ee,ue),ue[1]&32&&d(se,1)):(se=t_(ee),se.c(),d(se,1),se.m(a.parentNode,a)):se&&(ce(),m(se,1,1,()=>{se=null}),fe()),ee[6]&&ee[21]?de?(de.p(ee,ue),ue[0]&2097216&&d(de,1)):(de=i_(ee),de.c(),d(de,1),de.m(s.parentNode,s)):de&&(ce(),m(de,1,1,()=>{de=null}),fe()),ee[43]&&ee[17]&&ee[18]?L?(L.p(ee,ue),ue[0]&393216|ue[1]&4096&&d(L,1)):(L=n_(ee),L.c(),d(L,1),L.m(u.parentNode,u)):L&&(ce(),m(L,1,1,()=>{L=null}),fe()),ee[51]?oe?ue[1]&1048576&&d(oe,1):(oe=o_(ee),oe.c(),d(oe,1),oe.m(f.parentNode,f)):oe&&(ce(),m(oe,1,1,()=>{oe=null}),fe()),ee[52]?re?ue[1]&2097152&&d(re,1):(re=r_(ee),re.c(),d(re,1),re.m(p.parentNode,p)):re&&(ce(),m(re,1,1,()=>{re=null}),fe()),ee[37]?X?(X.p(ee,ue),ue[1]&64&&d(X,1)):(X=l_(ee),X.c(),d(X,1),X.m(g.parentNode,g)):X&&(ce(),m(X,1,1,()=>{X=null}),fe()),ee[54].value!=="off"?Te?(Te.p(ee,ue),ue[1]&8388608&&d(Te,1)):(Te=s_(ee),Te.c(),d(Te,1),Te.m(y.parentNode,y)):Te&&(ce(),m(Te,1,1,()=>{Te=null}),fe()),ee[35]?q?(q.p(ee,ue),ue[1]&16&&d(q,1)):(q=a_(ee),q.c(),d(q,1),q.m(h.parentNode,h)):q&&(ce(),m(q,1,1,()=>{q=null}),fe()),ee[21]?O?(O.p(ee,ue),ue[0]&2097152&&d(O,1)):(O=u_(ee),O.c(),d(O,1),O.m(C.parentNode,C)):O&&(ce(),m(O,1,1,()=>{O=null}),fe());let Re={};ue[1]&67108864&&(Re.isLive=ee[57]),ue[1]&2048&&(Re.isHidden=!ee[42]),ue[1]&131072&&(Re.isPlaying=ee[48]),ue[1]&2&&(Re.position=ee[32]),ue[1]&1&&(Re.duration=ee[31]),w.$set(Re),ee[40]?K?ue[1]&512&&d(K,1):(K=c_(ee),K.c(),d(K,1),K.m(T.parentNode,T)):K&&(ce(),m(K,1,1,()=>{K=null}),fe()),ee[58]?le?ue[1]&134217728&&d(le,1):(le=f_(ee),le.c(),d(le,1),le.m(k.parentNode,k)):le&&(ce(),m(le,1,1,()=>{le=null}),fe())},i(ee){P||(d(e.$$.fragment,ee),d(x),d(W),d(z),d(se),d(de),d(L),d(oe),d(re),d(X),d(Te),d(q),d(O),d(w.$$.fragment,ee),d(K),d(le),P=!0)},o(ee){m(e.$$.fragment,ee),m(x),m(W),m(z),m(se),m(de),m(L),m(oe),m(re),m(X),m(Te),m(q),m(O),m(w.$$.fragment,ee),m(K),m(le),P=!1},d(ee){ee&&(b(t),b(o),b(l),b(r),b(a),b(s),b(u),b(f),b(p),b(g),b(y),b(h),b(C),b(F),b(T),b(k)),M(e,ee),x&&x.d(ee),W&&W.d(ee),z&&z.d(ee),se&&se.d(ee),de&&de.d(ee),L&&L.d(ee),oe&&oe.d(ee),re&&re.d(ee),X&&X.d(ee),Te&&Te.d(ee),q&&q.d(ee),O&&O.d(ee),M(w,ee),K&&K.d(ee),le&&le.d(ee)}}}function g8(i){let e,t,n,o,l,r=i[49],a,s,u,f,p,g,y=d_(i);return{c(){e=I("div"),t=I("div"),n=I("div"),l=H(),y.c(),a=H(),s=I("div"),c(n,"class","video-container svelte-6x5lql"),c(n,"style",o=`transform: rotate(${i[34]}deg) scale(${i[44]})`),c(n,"data-testid","video-container"),c(n,"data-is-playing",i[48]),G(n,"fast-rotate",!i[1].isSmoothVideoRotate),c(t,"class","video-wrapper svelte-6x5lql"),G(t,"hidden",i[36]!=="video"),c(s,"class","overlay-container"),c(e,"class","player-wrapper svelte-6x5lql"),c(e,"role","region"),c(e,"aria-label",u=U("aria_label_video_player")),c(e,"tabindex","-1")},m(h,C){v(h,e,C),_(e,t),_(t,n),i[131](n),_(e,l),y.m(e,null),_(e,a),_(e,s),i[135](s),i[136](e),f=!0,p||(g=[Pe(p8,"blur",i[99]),Pe(t,"click",Gt(i[100])),Pe(e,"click",i[102],!0),Pe(e,"focusin",i[103],!0)],p=!0)},p(h,C){(!f||C[1]&8200&&o!==(o=`transform: rotate(${h[34]}deg) scale(${h[44]})`))&&c(n,"style",o),(!f||C[1]&131072)&&c(n,"data-is-playing",h[48]),(!f||C[0]&2)&&G(n,"fast-rotate",!h[1].isSmoothVideoRotate),(!f||C[1]&32)&&G(t,"hidden",h[36]!=="video"),C[1]&262144&&R(r,r=h[49])?(ce(),m(y,1,1,ge),fe(),y=d_(h),y.c(),d(y,1),y.m(e,a)):y.p(h,C)},i(h){f||(d(y),f=!0)},o(h){m(y),f=!1},d(h){h&&b(e),i[131](null),y.d(h),i[135](null),i[136](null),p=!1,at(g)}}}function h8(i,e,t){let n,o,l,r,a,s,u,f,p,g,y,h,C,w,F,T,k,P,x,W,z,se,de,L,oe,re,X,Te,q,O,K,le,ee,ue,ze,Re,{store:ke}=e,{uiConfig:Ve}=e,{thumbUrl:Qe}=e,{videoContainer:tt}=e,{interactiveContainer:j}=e,{live:ae}=e,{autoplay:Ze}=e,{canRewindLive:_e}=e,{showAds:Ue}=e,{adsSlotId:st=void 0}=e,{adsParams:je=void 0}=e,{adsPreviewParam:qe=void 0}=e,{duration:Xe=void 0}=e,{logoClickable:Ye}=e,{logoHidden:Q}=e,{logoTargetUrl:Be=""}=e,{showNextPrevButtons:Ie=!1}=e,{nextButtonActive:$=!1}=e,{prevButtonActive:be=!1}=e,{endScreenVideoTitle:ot=void 0}=e,{endScreenVideoThumb:me=void 0}=e,{isOneVideoPlaylist:_t=!1}=e,{supportLink:We}=e,{shadowRootContainer:ut=void 0}=e,{outerContainerRef:Tt=void 0}=e,{showMiniTimer:At=!1}=e,{fullScreenTarget:Lt=void 0}=e,{playerStarted:et=!1}=e,{playNextVideo:Pt=uo.noop}=e,{playPrevVideo:Dt=uo.noop}=e,{repeatPlaylist:ci=uo.noop}=e,{seekToInteractive:lt}=e,{toggleGraph:yt}=e,{playPrevChapter:we}=e,{firstStart:bt}=e,{seekTime:Et}=e,jt=ke.getLogger().createComponentLog("Root component"),vt=ke.interfaceLanguage$;N(i,vt,ie=>t(49,X=ie));let Nt=ke.state.playbackState$;N(i,Nt,ie=>t(128,de=ie));let qt=ke.ads.playbackState;N(i,qt,ie=>t(129,L=ie));let xt=ke.state.positionWithScrubbing$;N(i,xt,ie=>t(32,a=ie));let fi=ke.state.duration$;N(i,fi,ie=>t(31,r=ie));let di=ke.playerPhase;N(i,di,ie=>t(36,x=ie));let Ht=ke.ui.isFullscreen;N(i,Ht,ie=>t(142,u=ie));let zt=ke.ui.controlsVisible;N(i,zt,ie=>t(30,o=ie));let oi=ke.ui.interactiveHideMobileControls;N(i,oi,ie=>t(120,y=ie));let Ot=ke.ui.settingsMenuVisible;N(i,Ot,ie=>t(118,n=ie));let Ei=ke.ui.scrubbingInProgress;N(i,Ei,ie=>t(121,C=ie));let Ct=ke.ui.debugPanelVisible;N(i,Ct,ie=>t(58,Re=ie));let Mi=ke.state.isLoaderVisible;N(i,Mi,ie=>t(130,oe=ie));let hi=ke.state.isEnded$;N(i,hi,ie=>t(123,T=ie));let ri=ke.state.chromecastConnected$;N(i,ri,ie=>t(37,W=ie));let Ai=ke.state.chromecastDeviceName$;N(i,Ai,ie=>t(53,K=ie));let pe=ke.ads.postrollPassed;N(i,pe,ie=>t(124,k=ie));let dt=ke.ui.mobileUnmuteButtonExpanded,Li=ke.ui.mobileUnmuteButtonVisible,Vi=ke.state.isLive$;N(i,Vi,ie=>t(57,ze=ie));let qi=ke.state.isPlaying$;N(i,qi,ie=>t(48,re=ie));let $i=ke.state.isActiveLive$;N(i,$i,ie=>t(119,s=ie));let Yt=ke.state.isRewindableLive$,bi=ke.state.crashed$;N(i,bi,ie=>t(35,F=ie));let dn=ke.webApi.annotationsApi,Ut=ke.webApi.pictureInPictureApi,vi=ke.state.videoSize$;N(i,vi,ie=>t(143,p=ie));let In=ke.state.currentSubtitle$;N(i,In,ie=>t(54,le=ie));let mi=ke.state.currentSubtitleCaptions$;N(i,mi,ie=>t(55,ee=ie));let en=ke.state.duration$;N(i,en,ie=>t(56,ue=ie));let Hi=ke.state.graphIsOpened$;N(i,Hi,ie=>t(127,se=ie));let mn=ke.ui.playerSize;N(i,mn,ie=>t(33,f=ie));let pn=ke.ui.is3DVideo;N(i,pn,ie=>t(51,q=ie));let ti=ke.ui.icon3DVideoVisible;N(i,ti,ie=>t(52,O=ie));let zi=ke.ui.rotateAlpha;N(i,zi,ie=>t(34,h=ie));let pi=ke.state.isInteractive,li=ke.state.isInteractiveTime$;N(i,li,ie=>t(122,w=ie));let Ui=ke.state.isInteractiveExpectation$;N(i,Ui,ie=>t(126,z=ie));let Vn=ke.state.hasInteractiveBranches,Ri=ke.ui.controls.disabledControls$;N(i,Ri,ie=>t(50,Te=ie));let tn=ke.ui.touched;N(i,tn,ie=>t(125,P=ie));let yi=ke.ui.overlayContainer$,_i=ke.state.loadedMetadata$;N(i,_i,ie=>t(141,l=ie));let Wi=ke.actions.internal.closeSettingsMenu,_n=ke.callbacks?.onDisabledPlayPrevChapterClick,nn=ke.callbacks?.onDisabledSeekToInteractiveClick,ki,wi,Ki,Qt,Zt,Kt,ii,Ci=He(!1);N(i,Ci,ie=>t(47,g=ie));let on,rt=!1,Bi,si=!1,Gi,Si=!0,xe,gn,ji=!1,Di;Ut?.setContext(zr());let rn=ie=>{clearTimeout(Qt),ie&&(Li.set(!0),dt.set(!0),Qt=window.setTimeout(()=>{dt.set(!1)},Ve.controls.collapseMobileUnmute),pi||Xt(Ve.controls.hideTimeoutMobile))};ke.setUiCallbacks({onStarted:rn});let ln=()=>{window.clearTimeout(Ki),t(113,rt=!1),y&&oi.set(!1)},Xt=ie=>{ln(),t(113,rt=!0),Ki=window.setTimeout(()=>t(113,rt=!1),ie);let kt=ie-100;on=window.setTimeout(()=>{g&&Ci.set(!1)},kt>0?kt:ie)},sn=pn.subscribe(ie=>{ti.set(ie),ie&&(window.clearTimeout(Zt),Zt=window.setTimeout(()=>ti.set(!1),Ve.controls.hide360IconTimeout))}),hn=async()=>{let ie=bo();if(ie){let kt=jr(),kn=vn(),cn=uo.clientChecker.isSamsungBrowser&&kt===ut;ie=kt===kn||cn}if(ie){Xt(Ve.controls.hideTimeoutFullscreen);try{await Ut?.remove()}catch(kt){jt({message:String(kt)})}try{let kt=p?.width&&p?.height?p:f;await sd(kt)}catch(kt){jt({message:String(kt)})}}Ht.set(ie),ke.getAdmanWrapper().setFullscreen(ie),u?ke.callbacks?.onFullscreenEnter?.():ke.callbacks?.onFullscreenExit?.()},xi=ie=>{let kt=ie;mn.set({width:kt.target.width,height:kt.target.height})};It(()=>(Tl(hn),Ve.features.annotationsInside&&dn?.init(ki),zo(Ut)&&(Ut?.assignPlayerContainer(ki),Ut?.registryExternalEventHandlers({resize:xi})),t(41,Si=!uo.clientChecker.isIphoneOrOldIpad),j&&tt.parentElement?.insertBefore(j,tt.nextSibling),()=>{window.clearTimeout(Ki),window.clearTimeout(on),window.clearTimeout(Qt),window.clearTimeout(Zt),sn(),Ut?.dispose(),Pl(hn)}));let gi=!0,an=!0,bn=ie=>{let kt=a+(ie==="forward"?1:-1)*Ve.controls.seekStepMobile/1e3;kt<0?(t(45,gi=!1),kt=0):kt>=r&&(t(46,an=!1),kt=r),t(115,si=!0),Et(kt)},vn=()=>{let ie=uo.clientChecker.isIOS||Ve.features.fullscreenInternalTargetPlayerContainer||!Tt?ki:Tt,kt=ie.getRootNode(),kn=kt instanceof ShadowRoot?kt.host:kt,cn=Lt instanceof HTMLElement&&Lt.contains(kn);return Ve.allowChangingFullscreenTarget&&Lt&&cn?Lt:ie},Rn=async()=>{if(bo())await Il(document),jt({message:"exit fullscreen"});else{if(jt({message:"request fullscreen"}),uo.clientChecker.isIOS&&!l)return;await Sl(vn())}},Ii=()=>{Wi()},Yi=()=>{if(n){Ii();return}if(!et){bt(),Xt(Ve.controls.hideTimeoutCursor);return}t(115,si=!1),o?ln():Xt(Ve.controls.hideTimeoutMobile)},Ni=()=>{if(n){Ii();return}},yn=()=>{tn.set(!0)},Kn=()=>{pi||(Ci.set(!0),Xt(Ve.controls.hideTimeoutCursor))},Qi=ie=>{_n&&(_n(ie),Xt(Ve.controls.hideTimeoutMobile))},Jt=ie=>{nn&&(nn(ie),Xt(Ve.controls.hideTimeoutMobile))};function Bn(ie){he[ie?"unshift":"push"](()=>{tt=ie,t(0,tt)})}let Gn=()=>bn("backward"),Dn=()=>bn("forward");function jn(ie){wi=ie,t(39,wi)}function Nn(ie){he[ie?"unshift":"push"](()=>{ii=ie,t(29,ii)})}function un(ie){he[ie?"unshift":"push"](()=>{ki=ie,t(38,ki)})}return i.$$set=ie=>{"store"in ie&&t(106,ke=ie.store),"uiConfig"in ie&&t(1,Ve=ie.uiConfig),"thumbUrl"in ie&&t(2,Qe=ie.thumbUrl),"videoContainer"in ie&&t(0,tt=ie.videoContainer),"interactiveContainer"in ie&&t(107,j=ie.interactiveContainer),"live"in ie&&t(3,ae=ie.live),"autoplay"in ie&&t(4,Ze=ie.autoplay),"canRewindLive"in ie&&t(5,_e=ie.canRewindLive),"showAds"in ie&&t(6,Ue=ie.showAds),"adsSlotId"in ie&&t(7,st=ie.adsSlotId),"adsParams"in ie&&t(8,je=ie.adsParams),"adsPreviewParam"in ie&&t(9,qe=ie.adsPreviewParam),"duration"in ie&&t(10,Xe=ie.duration),"logoClickable"in ie&&t(11,Ye=ie.logoClickable),"logoHidden"in ie&&t(12,Q=ie.logoHidden),"logoTargetUrl"in ie&&t(13,Be=ie.logoTargetUrl),"showNextPrevButtons"in ie&&t(14,Ie=ie.showNextPrevButtons),"nextButtonActive"in ie&&t(15,$=ie.nextButtonActive),"prevButtonActive"in ie&&t(16,be=ie.prevButtonActive),"endScreenVideoTitle"in ie&&t(17,ot=ie.endScreenVideoTitle),"endScreenVideoThumb"in ie&&t(18,me=ie.endScreenVideoThumb),"isOneVideoPlaylist"in ie&&t(19,_t=ie.isOneVideoPlaylist),"supportLink"in ie&&t(20,We=ie.supportLink),"shadowRootContainer"in ie&&t(108,ut=ie.shadowRootContainer),"outerContainerRef"in ie&&t(109,Tt=ie.outerContainerRef),"showMiniTimer"in ie&&t(110,At=ie.showMiniTimer),"fullScreenTarget"in ie&&t(111,Lt=ie.fullScreenTarget),"playerStarted"in ie&&t(21,et=ie.playerStarted),"playNextVideo"in ie&&t(22,Pt=ie.playNextVideo),"playPrevVideo"in ie&&t(23,Dt=ie.playPrevVideo),"repeatPlaylist"in ie&&t(24,ci=ie.repeatPlaylist),"seekToInteractive"in ie&&t(25,lt=ie.seekToInteractive),"toggleGraph"in ie&&t(26,yt=ie.toggleGraph),"playPrevChapter"in ie&&t(27,we=ie.playPrevChapter),"firstStart"in ie&&t(28,bt=ie.firstStart),"seekTime"in ie&&t(112,Et=ie.seekTime)},i.$$.update=()=>{i.$$.dirty[1]&48|i.$$.dirty[4]&96&&t(40,Kt=(x==="video"&&oe||x==="ads"&&L==="inactive")&&!F),i.$$.dirty[0]&536870912&&yi.set(ii),i.$$.dirty[4]&16&&t(114,Bi=de!==m_.PlaybackState.PLAYING),i.$$.dirty[3]&1211105280|i.$$.dirty[4]&12&&t(116,Gi=se||y||!rt&&(T&&!!Vn||Bi&&z)),i.$$.dirty[1]&112|i.$$.dirty[3]&317718528&&zt.set((Bi||n||C||W||rt&&!si)&&!Gi&&x==="video"&&!F),i.$$.dirty[0]&1073741826|i.$$.dirty[1]&48|i.$$.dirty[3]&131072|i.$$.dirty[4]&2&&t(42,xe=Ve.features.thumbTimer&&At&&x==="video"&&!o&&!F&&!pi&&(Ve.hideThumbTimerAfterTouch&&!P||!Ve.hideThumbTimerAfterTouch)),i.$$.dirty[0]&64|i.$$.dirty[1]&16|i.$$.dirty[3]&1073741824|i.$$.dirty[4]&1&&t(43,gn=(Ue&&k||!Ue)&&T&&!F),i.$$.dirty[0]&2|i.$$.dirty[3]&822083584&&(!C&&ji&&!w&&Xt(Ve.controls.hideTimeoutMobile),t(117,ji=C)),i.$$.dirty[0]&1|i.$$.dirty[1]&12&&t(44,Di=tt&&h%180?f.height/f.width:1),i.$$.dirty[1]&3|i.$$.dirty[3]&67108864&&(t(45,gi=a>0),t(46,an=!s&&a<r))},[tt,Ve,Qe,ae,Ze,_e,Ue,st,je,qe,Xe,Ye,Q,Be,Ie,$,be,ot,me,_t,We,et,Pt,Dt,ci,lt,yt,we,bt,ii,o,r,a,f,h,F,x,W,ki,wi,Kt,Si,xe,gn,Di,gi,an,g,re,X,Te,q,O,K,le,ee,ue,ze,Re,vt,Nt,qt,xt,fi,di,Ht,zt,oi,Ot,Ei,Ct,Mi,hi,ri,Ai,pe,Vi,qi,$i,Yt,bi,vi,In,mi,en,Hi,mn,pn,ti,zi,pi,li,Ui,Ri,tn,_i,Ci,bn,Rn,Ii,Yi,Ni,yn,Kn,Qi,Jt,ke,j,ut,Tt,At,Lt,Et,rt,Bi,si,Gi,ji,n,s,y,C,w,T,k,P,z,se,de,L,oe,Bn,Gn,Dn,jn,Nn,un]}var $c=class extends B{constructor(e){super(),D(this,e,h8,g8,R,{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},_8,[-1,-1,-1,-1,-1,-1])}},p_=$c;function b8(i){Ce(i,"svelte-6h4ol6",`.root.svelte-6h4ol6{--white:#fff;--black:#000;--red:#ff3347;--blue-light:#70c1ff;--black-alpha-40:rgba(0, 0, 0, 0.40);--white-alpha-24:rgba(255, 255, 255, 0.24);--white-alpha-72:rgba(255, 255, 255, 0.72);--devider-gray:#dce1e6;--text-gray:#626d7a;--controls-height:40px;--controls-gradient-height:100px;--controls-transition-duration:0.25s;--controls-transition-fn:cubic-bezier(0.455, 0.03, 0.515, 0.955);--controls-desktop-item-margin-left:4px;--focused:var(--white);--focused-element-shadow:inset 0 0 0 2px var(--focused);--focused-slider-shadow:0 0 0 2px var(--focused);--big-play-size:96px;--big-play-radius:50%;--big-play-bg-color:rgba(0, 0, 0, 0.5);--big-play-hover-bg-color:rgba(0, 0, 0, 0.6);--big-play-icon-width:38px;--big-play-icon-height:33px;--interactive-episode-complete:rgba(92, 156, 230, 1);--slider-height:5px;--slider-video-episode-gap:1.5px;--slider-radius:calc(var(--slider-height) / 2);--slider-handle-size:13px;--slider-bg:rgba(255, 255, 255, 0.4);--slider-loaded-bg:rgba(255, 255, 255, 0.4);--slider-filled-bg:var(--white);--slider-filled-active-live-bg:var(--red);--slider-filled-ads:rgba(103, 165, 235, 1);--slider-disabled-color:rgba(248, 248, 248, 0.31);--controls-gradient:linear-gradient(
34
+ )}.hidden.svelte-1bcvcf2{visibility:hidden;transform:translateY(calc(var(--controls-gradient-height) * -1));opacity:0}`)}function K6(i){let e,t;return{c(){e=I("div"),t=De(i[0]),c(e,"class","title svelte-1bcvcf2"),j(e,"hidden",i[1])},m(n,o){v(n,e,o),_(e,t)},p(n,[o]){o&1&&xe(t,n[0]),o&2&&j(e,"hidden",n[1])},i:he,o:he,d(n){n&&b(e)}}}function j6(i,e,t){let{title:n=""}=e,{isHidden:o=!1}=e;return i.$$set=l=>{"title"in l&&t(0,n=l.title),"isHidden"in l&&t(1,o=l.isHidden)},[n,o]}var Kc=class extends B{constructor(e){super(),D(this,e,j6,K6,R,{title:0,isHidden:1},W6)}},k0=Kc;function G6(i){Ce(i,"svelte-1qpxtfg",".timer__container.svelte-1qpxtfg{display:flex;align-items:flex-start;justify-content:center}.cell.svelte-1qpxtfg{display:flex;flex-direction:column;align-items:center;width:62px}.cell__value.svelte-1qpxtfg{font-size:48px;line-height:1.2;font-weight:700}.cell__unit.svelte-1qpxtfg{font-size:14px;line-height:1.2;font-weight:400}.timer__points.svelte-1qpxtfg{display:inline-block;margin:0 8px;font-size:42px;line-height:1.2;font-weight:600}")}function w0(i){let e,t,n,o,l,r,a;return{c(){e=I("div"),t=I("span"),n=De(i[0]),o=H(),l=I("span"),l.textContent=`${U("waiting_live_day_value")}`,r=H(),a=I("span"),a.textContent=`${U("waiting_live_colon")}`,c(t,"class","cell__value svelte-1qpxtfg"),c(l,"class","cell__unit svelte-1qpxtfg"),c(e,"class","timer__cell cell svelte-1qpxtfg"),c(a,"class","timer__points svelte-1qpxtfg")},m(s,u){v(s,e,u),_(e,t),_(t,n),_(e,o),_(e,l),v(s,r,u),v(s,a,u)},p(s,u){u&1&&xe(n,s[0])},d(s){s&&(b(e),b(r),b(a))}}}function C0(i){let e,t,n,o,l,r,a;return{c(){e=I("div"),t=I("span"),n=De(i[1]),o=H(),l=I("span"),l.textContent=`${U("waiting_live_hour_value")}`,r=H(),a=I("span"),a.textContent=`${U("waiting_live_colon")}`,c(t,"class","cell__value svelte-1qpxtfg"),c(l,"class","cell__unit svelte-1qpxtfg"),c(e,"class","timer__cell cell svelte-1qpxtfg"),c(a,"class","timer__points svelte-1qpxtfg")},m(s,u){v(s,e,u),_(e,t),_(t,n),_(e,o),_(e,l),v(s,r,u),v(s,a,u)},p(s,u){u&2&&xe(n,s[1])},d(s){s&&(b(e),b(r),b(a))}}}function S0(i){let e,t,n,o,l,r,a;return{c(){e=I("div"),t=I("span"),n=De(i[2]),o=H(),l=I("span"),l.textContent=`${U("waiting_live_minute_value")}`,r=H(),a=I("span"),a.textContent=`${U("waiting_live_colon")}`,c(t,"class","cell__value svelte-1qpxtfg"),c(l,"class","cell__unit svelte-1qpxtfg"),c(e,"class","timer__cell cell svelte-1qpxtfg"),c(a,"class","timer__points svelte-1qpxtfg")},m(s,u){v(s,e,u),_(e,t),_(t,n),_(e,o),_(e,l),v(s,r,u),v(s,a,u)},p(s,u){u&4&&xe(n,s[2])},d(s){s&&(b(e),b(r),b(a))}}}function I0(i){let e,t,n,o,l;return{c(){e=I("div"),t=I("span"),n=De(i[3]),o=H(),l=I("span"),l.textContent=`${U("waiting_live_second_value")}`,c(t,"class","cell__value svelte-1qpxtfg"),c(l,"class","cell__unit svelte-1qpxtfg"),c(e,"class","timer__cell cell svelte-1qpxtfg")},m(r,a){v(r,e,a),_(e,t),_(t,n),_(e,o),_(e,l)},p(r,a){a&8&&xe(n,r[3])},d(r){r&&b(e)}}}function x6(i){let e,t,n,o,l=i[0]&&w0(i),r=i[1]&&C0(i),a=i[2]&&S0(i),s=i[3]&&I0(i);return{c(){e=I("div"),l&&l.c(),t=H(),r&&r.c(),n=H(),a&&a.c(),o=H(),s&&s.c(),c(e,"class","timer__container svelte-1qpxtfg")},m(u,f){v(u,e,f),l&&l.m(e,null),_(e,t),r&&r.m(e,null),_(e,n),a&&a.m(e,null),_(e,o),s&&s.m(e,null)},p(u,[f]){u[0]?l?l.p(u,f):(l=w0(u),l.c(),l.m(e,t)):l&&(l.d(1),l=null),u[1]?r?r.p(u,f):(r=C0(u),r.c(),r.m(e,n)):r&&(r.d(1),r=null),u[2]?a?a.p(u,f):(a=S0(u),a.c(),a.m(e,o)):a&&(a.d(1),a=null),u[3]?s?s.p(u,f):(s=I0(u),s.c(),s.m(e,null)):s&&(s.d(1),s=null)},i:he,o:he,d(u){u&&b(e),l&&l.d(),r&&r.d(),a&&a.d(),s&&s.d()}}}function Y6(i,e,t){let{startTime:n}=e,{onTimerOver:o}=e,l,r,a,s,u,f=y=>String(y).padStart(2,"0"),p=y=>{let h=Math.floor(y/86400);h&&(y-=h*86400,t(0,l=f(h)));let C=Math.floor(y/3600);t(1,r=f(C));let w=Math.floor(y/60)%60;t(2,a=f(w));let F=y%60;t(3,s=f(F))},g=()=>{let y=Math.floor(Date.now()/1e3),h=n-y;p(h),h>=1?u=requestAnimationFrame(g):o()};return Et(()=>{u=requestAnimationFrame(g)}),Nn(()=>{cancelAnimationFrame(u)}),i.$$set=y=>{"startTime"in y&&t(4,n=y.startTime),"onTimerOver"in y&&t(5,o=y.onTimerOver)},[l,r,a,s,n,o]}var jc=class extends B{constructor(e){super(),D(this,e,Y6,x6,R,{startTime:4,onTimerOver:5},G6)}},T0=jc;function Q6(i){let e,t,n,o,l,r,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 p=0;p<u.length;p+=1)f=ne(f,u[p]);return{c(){e=V("svg"),s&&s.c(),t=V("path"),n=V("path"),o=V("path"),l=V("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"),ii(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"),ii(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"),ii(o,"opacity",".985"),c(l,"fill","#fefffe"),c(l,"d","M219.5 399.5h-40q-67.453-7.982-117-54a31.7 31.7 0 0 1 3.5-10q8.539-9.646 20.5-14.5 54.786-19.435 113-17.5 58.214-1.935 113 17.5 11.962 4.854 20.5 14.5a31.7 31.7 0 0 1 3.5 10q-49.547 46.018-117 54"),ii(l,"opacity",".986"),ye(e,f)},m(p,g){v(p,e,g),s&&s.m(e,null),_(e,t),_(e,n),_(e,o),_(e,l),r=!0},p(p,[g]){s&&s.p&&(!r||g&2)&&Ae(s,a,p,p[1],r?Me(a,p[1],g,null):Le(p[1]),null),ye(e,f=Be(u,[{xmlns:"http://www.w3.org/2000/svg"},{"aria-hidden":"true"},{"data-testid":"podcast-icon"},{style:"shape-rendering:geometricPrecision;text-rendering:geometricPrecision;image-rendering:optimizeQuality;fill-rule:evenodd;clip-rule:evenodd;width:100%;height:100%"},{viewBox:"0 0 400 400"},{role:"img"},g&1&&p[0]]))},i(p){r||(d(s,p),r=!0)},o(p){m(s,p),r=!1},d(p){p&&b(e),s&&s.d(p)}}}function Z6(i,e,t){let{$$slots:n={},$$scope:o}=e;return i.$$set=l=>{t(0,e=ne(ne({},e),ve(l))),"$$scope"in l&&t(1,o=l.$$scope)},e=ve(e),[e,o,n]}var Gc=class extends B{constructor(e){super(),D(this,e,Z6,Q6,R,{})}},P0=Gc;function X6(i){Ce(i,"svelte-15pewff",".waiting-container.svelte-15pewff{position:absolute;top:0;left:0;width:100%;height:100%;background-color:var(--black);background-position:center;background-size:cover;background-repeat:no-repeat}.waiting-container.svelte-15pewff::before{content:'';position:absolute;top:0;left:0;width:100%;height:100%;background-color:rgba(0, 0, 0, 0.56);z-index:1}.upcoming.svelte-15pewff{position:absolute;top:50%;left:0;width:100%;transform:translateY(-50%);display:flex;flex-direction:column;align-items:center;justify-content:center;z-index:0}.upcoming-icon.svelte-15pewff{width:20%;max-width:200px;margin-bottom:20px}.upcoming__title.svelte-15pewff{font-size:14px;line-height:1.2;font-weight:400}.waiting-timer.svelte-15pewff{position:absolute;top:50%;left:50%;transform:translate(-50%, -50%);z-index:2}.timer.svelte-15pewff{display:flex;flex-direction:column;align-items:center;justify-content:center}.timer__title.svelte-15pewff{display:inline-block;vertical-align:middle;margin-bottom:12px;font-size:14px;line-height:1.2;font-weight:400}")}function J6(i){let e,t,n,o,l;return o=new T0({props:{startTime:i[1]||0,onTimerOver:i[3]}}),{c(){e=I("div"),t=I("span"),t.textContent=`${U("waiting_live_timer_title")}`,n=H(),A(o.$$.fragment),c(t,"class","timer__title svelte-15pewff"),c(e,"class","waiting-timer timer svelte-15pewff")},m(r,a){v(r,e,a),_(e,t),_(e,n),E(o,e,null),l=!0},p(r,a){let s={};a&2&&(s.startTime=r[1]||0),a&4&&(s.onTimerOver=r[3]),o.$set(s)},i(r){l||(d(o.$$.fragment,r),l=!0)},o(r){m(o.$$.fragment,r),l=!1},d(r){r&&b(e),M(o)}}}function $6(i){let e,t,n,o,l,r;return n=new P0({}),{c(){e=I("div"),t=I("div"),A(n.$$.fragment),o=H(),l=I("span"),l.textContent=`${U("waiting_live_upcoming_title")}`,c(t,"class","upcoming-icon svelte-15pewff"),c(l,"class","upcoming__title svelte-15pewff"),c(e,"class","upcoming svelte-15pewff")},m(a,s){v(a,e,s),_(e,t),E(n,t,null),_(e,o),_(e,l),r=!0},p:he,i(a){r||(d(n.$$.fragment,a),r=!0)},o(a){m(n.$$.fragment,a),r=!1},d(a){a&&b(e),M(n)}}}function e8(i){let e,t,n,o,l,r=[$6,J6],a=[];function s(u,f){return u[2]?0:1}return t=s(i,-1),n=a[t]=r[t](i),{c(){e=I("div"),n.c(),c(e,"class","waiting-container svelte-15pewff"),c(e,"style",o=`background-image: url(${i[2]?"":i[0]})`)},m(u,f){v(u,e,f),a[t].m(e,null),l=!0},p(u,[f]){let p=t;t=s(u,f),t===p?a[t].p(u,f):(ae(),m(a[p],1,1,()=>{a[p]=null}),ue(),n=a[t],n?n.p(u,f):(n=a[t]=r[t](u),n.c()),d(n,1),n.m(e,null)),(!l||f&5&&o!==(o=`background-image: url(${u[2]?"":u[0]})`))&&c(e,"style",o)},i(u){l||(d(n),l=!0)},o(u){m(n),l=!1},d(u){u&&b(e),a[t].d()}}}function t8(i,e,t){let n,{thumbUrl:o}=e,{startTime:l}=e,r=()=>t(2,n=!0);return i.$$set=a=>{"thumbUrl"in a&&t(0,o=a.thumbUrl),"startTime"in a&&t(1,l=a.startTime)},i.$$.update=()=>{i.$$.dirty&2&&t(2,n=l===void 0||l<Math.floor(Date.now()/1e3))},[o,l,n,r]}var xc=class extends B{constructor(e){super(),D(this,e,t8,e8,R,{thumbUrl:0,startTime:1},X6)}},Es=xc;function i8(i){Ce(i,"svelte-xvqwsa",".waiting-container.svelte-xvqwsa{position:absolute;top:0;left:0;width:100%;height:100%;display:flex;align-items:center;justify-content:center;background-color:var(--black);background-position:center;background-size:cover;background-repeat:no-repeat}.waiting-container.svelte-xvqwsa::before{content:'';position:absolute;top:0;left:0;width:100%;height:100%;background-color:rgba(0, 0, 0, 0.4);backdrop-filter:blur(10px)}.waiting-caption.svelte-xvqwsa{position:relative;display:flex;flex-direction:column;align-items:center}.waiting-title.svelte-xvqwsa{margin:0;padding:20px;text-align:center;font-size:20px;line-height:1.2;font-weight:400}")}function n8(i){let e,t,n,o,l,r,a,s;return n=new yr({props:{style:"position: static; transform: translate(0, 0)"}}),{c(){e=I("div"),t=I("div"),A(n.$$.fragment),o=H(),l=I("p"),r=De(i[1]),c(l,"class","waiting-title svelte-xvqwsa"),c(t,"class","waiting-caption svelte-xvqwsa"),c(e,"class","waiting-container svelte-xvqwsa"),c(e,"style",a=`background-image: url('${i[0]}')`)},m(u,f){v(u,e,f),_(e,t),E(n,t,null),_(t,o),_(t,l),_(l,r),s=!0},p(u,[f]){(!s||f&2)&&xe(r,u[1]),(!s||f&1&&a!==(a=`background-image: url('${u[0]}')`))&&c(e,"style",a)},i(u){s||(d(n.$$.fragment,u),s=!0)},o(u){m(n.$$.fragment,u),s=!1},d(u){u&&b(e),M(n)}}}function o8(i,e,t){let{thumbUrl:n=""}=e,{kind:o}=e,l;return i.$$set=r=>{"thumbUrl"in r&&t(0,n=r.thumbUrl),"kind"in r&&t(2,o=r.kind)},i.$$.update=()=>{if(i.$$.dirty&4){let r={recover:U("waiting_live_recover_title"),record:U("waiting_record_title")};t(1,l=r[o]||"")}},[n,l,o]}var Yc=class extends B{constructor(e){super(),D(this,e,o8,n8,R,{thumbUrl:0,kind:2},i8)}},Mr=Yc;var{window:r8}=Ao;function l8(i){Ce(i,"svelte-12e19rp",".player-wrapper.svelte-12e19rp{position:absolute;width:100%;height:100%}.player-wrapper.svelte-12e19rp .player-media{position:absolute;left:0;top:0;width:100%;height:100%;background:var(--black);transition:transform 0.2s ease-in-out}.spherical-video-icon.svelte-12e19rp{display:inline-block;position:absolute;top:calc(50% - 23px);left:calc(50% - 38px)}.video-wrapper.svelte-12e19rp,.video-container.svelte-12e19rp,.ads-container.svelte-12e19rp{position:absolute;width:100%;height:100%;left:0;top:0}.video-wrapper.svelte-12e19rp{z-index:var(--video-container-z-index);background:var(--black)}.video-container.svelte-12e19rp{z-index:var(--video-container-z-index);transition:var(--rotate-transition-duration) ease all}.video-container.fast-rotate.svelte-12e19rp{transition:none}.nocursor.svelte-12e19rp{cursor:none}.ads-container.svelte-12e19rp{z-index:var(--ads-container-z-index);background:var(--black)}")}function M0(i){let e,t;return e=new Es({props:{thumbUrl:i[3],startTime:i[4]?.startTime}}),{c(){A(e.$$.fragment)},m(n,o){E(e,n,o),t=!0},p(n,o){let l={};o[0]&8&&(l.thumbUrl=n[3]),o[0]&16&&(l.startTime=n[4]?.startTime),e.$set(l)},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){m(e.$$.fragment,n),t=!1},d(n){M(e,n)}}}function A0(i){let e,t;return e=new Mr({props:{kind:"recover",thumbUrl:i[3]}}),{c(){A(e.$$.fragment)},m(n,o){E(e,n,o),t=!0},p(n,o){let l={};o[0]&8&&(l.thumbUrl=n[3]),e.$set(l)},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){m(e.$$.fragment,n),t=!1},d(n){M(e,n)}}}function L0(i){let e,t;return e=new Mr({props:{kind:"record",thumbUrl:i[3]}}),{c(){A(e.$$.fragment)},m(n,o){E(e,n,o),t=!0},p(n,o){let l={};o[0]&8&&(l.thumbUrl=n[3]),e.$set(l)},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){m(e.$$.fragment,n),t=!1},d(n){M(e,n)}}}function V0(i){let e,t,n;return t=new El({props:{adsSlotId:i[8],adsParams:i[9],adsPreviewParam:i[10],duration:i[11]}}),{c(){e=I("div"),A(t.$$.fragment),c(e,"class","ads-container svelte-12e19rp"),j(e,"hidden",i[38]!=="ads")},m(o,l){v(o,e,l),E(t,e,null),n=!0},p(o,l){let r={};l[0]&256&&(r.adsSlotId=o[8]),l[0]&512&&(r.adsParams=o[9]),l[0]&1024&&(r.adsPreviewParam=o[10]),l[0]&2048&&(r.duration=o[11]),t.$set(r),(!n||l[1]&128)&&j(e,"hidden",o[38]!=="ads")},i(o){n||(d(t.$$.fragment,o),n=!0)},o(o){m(t.$$.fragment,o),n=!1},d(o){o&&b(e),M(t)}}}function R0(i){let e,t;return e=new e1({props:{title:i[18],thumb:i[19],playNextVideo:i[23]}}),{c(){A(e.$$.fragment)},m(n,o){E(e,n,o),t=!0},p(n,o){let l={};o[0]&262144&&(l.title=n[18]),o[0]&524288&&(l.thumb=n[19]),o[0]&8388608&&(l.playNextVideo=n[23]),e.$set(l)},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){m(e.$$.fragment,n),t=!1},d(n){M(e,n)}}}function B0(i){let e,t;return e=new k0({props:{title:i[2],isHidden:!i[36]}}),{c(){A(e.$$.fragment)},m(n,o){E(e,n,o),t=!0},p(n,o){let l={};o[0]&4&&(l.title=n[2]),o[1]&32&&(l.isHidden=!n[36]),e.$set(l)},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){m(e.$$.fragment,n),t=!1},d(n){M(e,n)}}}function D0(i){let e,t;return e=new Cs({props:{isShifted:i[38]==="video"&&i[36]}}),{c(){A(e.$$.fragment)},m(n,o){E(e,n,o),t=!0},p(n,o){let l={};o[1]&160&&(l.isShifted=n[38]==="video"&&n[36]),e.$set(l)},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){m(e.$$.fragment,n),t=!1},d(n){M(e,n)}}}function N0(i){let e,t,n;return t=new vl({props:{"aria-label":U("video360")}}),{c(){e=I("div"),A(t.$$.fragment),c(e,"class","spherical-video-icon svelte-12e19rp")},m(o,l){v(o,e,l),E(t,e,null),n=!0},i(o){n||(d(t.$$.fragment,o),n=!0)},o(o){m(t.$$.fragment,o),n=!1},d(o){o&&b(e),M(t)}}}function O0(i){let e,t;return e=new Is({props:{thumbUrl:i[3],chromecastDeviceName:i[54]}}),{c(){A(e.$$.fragment)},m(n,o){E(e,n,o),t=!0},p(n,o){let l={};o[0]&8&&(l.thumbUrl=n[3]),o[1]&8388608&&(l.chromecastDeviceName=n[54]),e.$set(l)},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){m(e.$$.fragment,n),t=!1},d(n){M(e,n)}}}function F0(i){let e,t;return e=new Ss({props:{shifted:i[36],captions:i[56],position:i[57],playerSize:i[34]}}),{c(){A(e.$$.fragment)},m(n,o){E(e,n,o),t=!0},p(n,o){let l={};o[1]&32&&(l.shifted=n[36]),o[1]&33554432&&(l.captions=n[56]),o[1]&67108864&&(l.position=n[57]),o[1]&8&&(l.playerSize=n[34]),e.$set(l)},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){m(e.$$.fragment,n),t=!1},d(n){M(e,n)}}}function q0(i){let e,t,n,o,l;return t=new Ts({}),{c(){e=I("div"),A(t.$$.fragment)},m(r,a){v(r,e,a),E(t,e,null),n=!0,o||(l=[Te(e,"contextmenu",Yt(i[108])),Te(e,"click",_t(i[119]))],o=!0)},p:he,i(r){n||(d(t.$$.fragment,r),n=!0)},o(r){m(t.$$.fragment,r),n=!1},d(r){r&&b(e),M(t),o=!1,at(l)}}}function H0(i){let e,t,n;function o(r){i[159](r)}let l={bottomHidden:i[38]==="thumb"||i[38]==="LiveWaitingStart"||i[38]==="LiveWaitingRecover"||i[38]==="LiveWaitingRecord",bottomNoSmooth:i[50],showControls:i[36],isAds:i[38]==="ads",canRewindLive:i[6]&&i[58]!==0,logoClickable:i[12],logoHidden:i[13],logoTargetUrl:i[14],showNextPrevButtons:i[15],nextButtonActive:i[16],prevButtonActive:i[17],isOneVideoPlaylist:i[20],supportLink:i[21],customFullscreenSupported:G0,playNextVideo:i[23],playPrevVideo:i[24],repeatPlaylist:i[25],toggleFullscreen:i[106],returnFocus:i[158],seekToInteractive:i[26],toggleGraph:i[27],playPrevChapter:i[28]};return i[41]!==void 0&&(l.controlsElementRef=i[41]),e=new ws({props:l}),be.push(()=>Oe(e,"controlsElementRef",o)),{c(){A(e.$$.fragment)},m(r,a){E(e,r,a),n=!0},p(r,a){let s={};a[1]&128&&(s.bottomHidden=r[38]==="thumb"||r[38]==="LiveWaitingStart"||r[38]==="LiveWaitingRecover"||r[38]==="LiveWaitingRecord"),a[1]&524288&&(s.bottomNoSmooth=r[50]),a[1]&32&&(s.showControls=r[36]),a[1]&128&&(s.isAds=r[38]==="ads"),a[0]&64|a[1]&134217728&&(s.canRewindLive=r[6]&&r[58]!==0),a[0]&4096&&(s.logoClickable=r[12]),a[0]&8192&&(s.logoHidden=r[13]),a[0]&16384&&(s.logoTargetUrl=r[14]),a[0]&32768&&(s.showNextPrevButtons=r[15]),a[0]&65536&&(s.nextButtonActive=r[16]),a[0]&131072&&(s.prevButtonActive=r[17]),a[0]&1048576&&(s.isOneVideoPlaylist=r[20]),a[0]&2097152&&(s.supportLink=r[21]),a[0]&8388608&&(s.playNextVideo=r[23]),a[0]&16777216&&(s.playPrevVideo=r[24]),a[0]&33554432&&(s.repeatPlaylist=r[25]),a[1]&131072&&(s.returnFocus=r[158]),a[0]&67108864&&(s.seekToInteractive=r[26]),a[0]&134217728&&(s.toggleGraph=r[27]),a[0]&268435456&&(s.playPrevChapter=r[28]),!t&&a[1]&1024&&(t=!0,s.controlsElementRef=r[41],Ne(()=>t=!1)),e.$set(s)},i(r){n||(d(e.$$.fragment,r),n=!0)},o(r){m(e.$$.fragment,r),n=!1},d(r){M(e,r)}}}function U0(i){let e,t;return e=new yr({}),{c(){A(e.$$.fragment)},m(n,o){E(e,n,o),t=!0},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){m(e.$$.fragment,n),t=!1},d(n){M(e,n)}}}function z0(i){let e,t;return e=new f1({}),{c(){A(e.$$.fragment)},m(n,o){E(e,n,o),t=!0},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){m(e.$$.fragment,n),t=!1},d(n){M(e,n)}}}function W0(i){let e,t;return e=new Bl({}),{c(){A(e.$$.fragment)},m(n,o){E(e,n,o),t=!0},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){m(e.$$.fragment,n),t=!1},d(n){M(e,n)}}}function K0(i){let e,t,n,o,l,r,a,s,u,f,p,g,y,h,C,w,F,T,k,P,G,W,z,le,de;e=new Ps({props:{hidden:i[38]!=="thumb"||i[37]||i[92]&&i[5],thumbUrl:i[3],startVideo:i[29]}});let L=i[38]==="LiveWaitingStart"&&M0(i),te=i[38]==="LiveWaitingRecover"&&A0(i),re=i[38]==="LiveWaitingRecord"&&L0(i),X=i[7]&&i[22]&&V0(i),Pe=i[31]&&i[18]&&i[19]&&R0(i),q=i[44]&&B0(i),N=i[49]&&D0(i),K=i[53]&&N0(i),ce=i[39]&&O0(i),oe=i[55].value!=="off"&&F0(i),se=i[37]&&q0(i),qe=i[22]&&H0(i);C=new Al({props:{isLive:i[59],isHidden:!i[43],isPlaying:i[51],position:i[57],duration:i[60]}}),F=new d0({props:{data:i[103]}});function Ve(Y){i[161](Y)}let ke={supportLink:i[21],returnFocus:i[160],visible:i[33],playerContainerRef:i[40],controlsContainerRef:i[41],position:i[61]};i[32]!==void 0&&(ke.menuElementRef=i[32]),k=new Bd({props:ke}),be.push(()=>Oe(k,"menuElementRef",Ve));let Re=i[42]&&U0(i),ze=i[62]&&z0(i),je=i[63]&&W0(i);return{c(){A(e.$$.fragment),t=H(),L&&L.c(),n=H(),te&&te.c(),o=H(),re&&re.c(),l=H(),X&&X.c(),r=H(),Pe&&Pe.c(),a=H(),q&&q.c(),s=H(),N&&N.c(),u=H(),K&&K.c(),f=H(),ce&&ce.c(),p=H(),oe&&oe.c(),g=H(),se&&se.c(),y=H(),qe&&qe.c(),h=H(),A(C.$$.fragment),w=H(),A(F.$$.fragment),T=H(),A(k.$$.fragment),G=H(),Re&&Re.c(),W=H(),ze&&ze.c(),z=H(),je&&je.c(),le=it()},m(Y,fe){E(e,Y,fe),v(Y,t,fe),L&&L.m(Y,fe),v(Y,n,fe),te&&te.m(Y,fe),v(Y,o,fe),re&&re.m(Y,fe),v(Y,l,fe),X&&X.m(Y,fe),v(Y,r,fe),Pe&&Pe.m(Y,fe),v(Y,a,fe),q&&q.m(Y,fe),v(Y,s,fe),N&&N.m(Y,fe),v(Y,u,fe),K&&K.m(Y,fe),v(Y,f,fe),ce&&ce.m(Y,fe),v(Y,p,fe),oe&&oe.m(Y,fe),v(Y,g,fe),se&&se.m(Y,fe),v(Y,y,fe),qe&&qe.m(Y,fe),v(Y,h,fe),E(C,Y,fe),v(Y,w,fe),E(F,Y,fe),v(Y,T,fe),E(k,Y,fe),v(Y,G,fe),Re&&Re.m(Y,fe),v(Y,W,fe),ze&&ze.m(Y,fe),v(Y,z,fe),je&&je.m(Y,fe),v(Y,le,fe),de=!0},p(Y,fe){let Ze={};fe[0]&32|fe[1]&192&&(Ze.hidden=Y[38]!=="thumb"||Y[37]||Y[92]&&Y[5]),fe[0]&8&&(Ze.thumbUrl=Y[3]),fe[0]&536870912&&(Ze.startVideo=Y[29]),e.$set(Ze),Y[38]==="LiveWaitingStart"?L?(L.p(Y,fe),fe[1]&128&&d(L,1)):(L=M0(Y),L.c(),d(L,1),L.m(n.parentNode,n)):L&&(ae(),m(L,1,1,()=>{L=null}),ue()),Y[38]==="LiveWaitingRecover"?te?(te.p(Y,fe),fe[1]&128&&d(te,1)):(te=A0(Y),te.c(),d(te,1),te.m(o.parentNode,o)):te&&(ae(),m(te,1,1,()=>{te=null}),ue()),Y[38]==="LiveWaitingRecord"?re?(re.p(Y,fe),fe[1]&128&&d(re,1)):(re=L0(Y),re.c(),d(re,1),re.m(l.parentNode,l)):re&&(ae(),m(re,1,1,()=>{re=null}),ue()),Y[7]&&Y[22]?X?(X.p(Y,fe),fe[0]&4194432&&d(X,1)):(X=V0(Y),X.c(),d(X,1),X.m(r.parentNode,r)):X&&(ae(),m(X,1,1,()=>{X=null}),ue()),Y[31]&&Y[18]&&Y[19]?Pe?(Pe.p(Y,fe),fe[0]&786432|fe[1]&1&&d(Pe,1)):(Pe=R0(Y),Pe.c(),d(Pe,1),Pe.m(a.parentNode,a)):Pe&&(ae(),m(Pe,1,1,()=>{Pe=null}),ue()),Y[44]?q?(q.p(Y,fe),fe[1]&8192&&d(q,1)):(q=B0(Y),q.c(),d(q,1),q.m(s.parentNode,s)):q&&(ae(),m(q,1,1,()=>{q=null}),ue()),Y[49]?N?(N.p(Y,fe),fe[1]&262144&&d(N,1)):(N=D0(Y),N.c(),d(N,1),N.m(u.parentNode,u)):N&&(ae(),m(N,1,1,()=>{N=null}),ue()),Y[53]?K?fe[1]&4194304&&d(K,1):(K=N0(Y),K.c(),d(K,1),K.m(f.parentNode,f)):K&&(ae(),m(K,1,1,()=>{K=null}),ue()),Y[39]?ce?(ce.p(Y,fe),fe[1]&256&&d(ce,1)):(ce=O0(Y),ce.c(),d(ce,1),ce.m(p.parentNode,p)):ce&&(ae(),m(ce,1,1,()=>{ce=null}),ue()),Y[55].value!=="off"?oe?(oe.p(Y,fe),fe[1]&16777216&&d(oe,1)):(oe=F0(Y),oe.c(),d(oe,1),oe.m(g.parentNode,g)):oe&&(ae(),m(oe,1,1,()=>{oe=null}),ue()),Y[37]?se?(se.p(Y,fe),fe[1]&64&&d(se,1)):(se=q0(Y),se.c(),d(se,1),se.m(y.parentNode,y)):se&&(ae(),m(se,1,1,()=>{se=null}),ue()),Y[22]?qe?(qe.p(Y,fe),fe[0]&4194304&&d(qe,1)):(qe=H0(Y),qe.c(),d(qe,1),qe.m(h.parentNode,h)):qe&&(ae(),m(qe,1,1,()=>{qe=null}),ue());let _e={};fe[1]&268435456&&(_e.isLive=Y[59]),fe[1]&4096&&(_e.isHidden=!Y[43]),fe[1]&1048576&&(_e.isPlaying=Y[51]),fe[1]&67108864&&(_e.position=Y[57]),fe[1]&536870912&&(_e.duration=Y[60]),C.$set(_e);let Ue={};fe[0]&2097152&&(Ue.supportLink=Y[21]),fe[1]&131072&&(Ue.returnFocus=Y[160]),fe[1]&4&&(Ue.visible=Y[33]),fe[1]&512&&(Ue.playerContainerRef=Y[40]),fe[1]&1024&&(Ue.controlsContainerRef=Y[41]),fe[1]&1073741824&&(Ue.position=Y[61]),!P&&fe[1]&2&&(P=!0,Ue.menuElementRef=Y[32],Ne(()=>P=!1)),k.$set(Ue),Y[42]?Re?fe[1]&2048&&d(Re,1):(Re=U0(Y),Re.c(),d(Re,1),Re.m(W.parentNode,W)):Re&&(ae(),m(Re,1,1,()=>{Re=null}),ue()),Y[62]?ze?fe[2]&1&&d(ze,1):(ze=z0(Y),ze.c(),d(ze,1),ze.m(z.parentNode,z)):ze&&(ae(),m(ze,1,1,()=>{ze=null}),ue()),Y[63]?je?fe[2]&2&&d(je,1):(je=W0(Y),je.c(),d(je,1),je.m(le.parentNode,le)):je&&(ae(),m(je,1,1,()=>{je=null}),ue())},i(Y){de||(d(e.$$.fragment,Y),d(L),d(te),d(re),d(X),d(Pe),d(q),d(N),d(K),d(ce),d(oe),d(se),d(qe),d(C.$$.fragment,Y),d(F.$$.fragment,Y),d(k.$$.fragment,Y),d(Re),d(ze),d(je),de=!0)},o(Y){m(e.$$.fragment,Y),m(L),m(te),m(re),m(X),m(Pe),m(q),m(N),m(K),m(ce),m(oe),m(se),m(qe),m(C.$$.fragment,Y),m(F.$$.fragment,Y),m(k.$$.fragment,Y),m(Re),m(ze),m(je),de=!1},d(Y){Y&&(b(t),b(n),b(o),b(l),b(r),b(a),b(s),b(u),b(f),b(p),b(g),b(y),b(h),b(w),b(T),b(G),b(W),b(z),b(le)),M(e,Y),L&&L.d(Y),te&&te.d(Y),re&&re.d(Y),X&&X.d(Y),Pe&&Pe.d(Y),q&&q.d(Y),N&&N.d(Y),K&&K.d(Y),ce&&ce.d(Y),oe&&oe.d(Y),se&&se.d(Y),qe&&qe.d(Y),M(C,Y),M(F,Y),M(k,Y),Re&&Re.d(Y),ze&&ze.d(Y),je&&je.d(Y)}}}function s8(i){let e,t,n,o,l=i[52],r,a,s,u,f=K0(i);return{c(){e=I("div"),t=I("div"),o=H(),f.c(),r=it(),c(t,"class","video-container svelte-12e19rp"),c(t,"style",n=`transform: rotate(${i[35]}deg) scale(${i[46]})`),c(t,"data-testid","video-container"),c(t,"data-is-playing",i[51]),j(t,"fast-rotate",!i[1].isSmoothVideoRotate),c(e,"class","video-wrapper svelte-12e19rp"),j(e,"hidden",i[38]!=="video"),j(e,"nocursor",i[45])},m(p,g){v(p,e,g),_(e,t),i[157](t),v(p,o,g),f.m(p,g),v(p,r,g),a=!0,s||(u=[Te(e,"contextmenu",Yt(i[108])),Te(e,"mousedown",Yt(i[113])),Te(e,"mouseup",Yt(i[114])),Te(e,"click",Yt(i[116])),Te(e,"dblclick",Yt(i[115]))],s=!0)},p(p,g){(!a||g[1]&32784&&n!==(n=`transform: rotate(${p[35]}deg) scale(${p[46]})`))&&c(t,"style",n),(!a||g[1]&1048576)&&c(t,"data-is-playing",p[51]),(!a||g[0]&2)&&j(t,"fast-rotate",!p[1].isSmoothVideoRotate),(!a||g[1]&128)&&j(e,"hidden",p[38]!=="video"),(!a||g[1]&16384)&&j(e,"nocursor",p[45]),g[1]&2097152&&R(l,l=p[52])?(ae(),m(f,1,1,he),ue(),f=K0(p),f.c(),d(f,1),f.m(r.parentNode,r)):f.p(p,g)},i(p){a||(d(f),a=!0)},o(p){m(f),a=!1},d(p){p&&(b(e),b(o),b(r)),i[157](null),f.d(p),s=!1,at(u)}}}function a8(i){let e,t,n,o,l,r,a,s={toggleFullscreen:i[106],hideContextMenu:i[107],showHotKeyHelpers:i[117],showKeyMap:i[118],isAds:i[38]==="ads",fakePlayButtonHandler:i[47]?i[105]:void 0,$$slots:{default:[s8]},$$scope:{ctx:i}};return t=new i1({props:s}),i[162](t),{c(){e=I("div"),A(t.$$.fragment),n=H(),o=I("div"),c(o,"class","overlay-container"),c(e,"class","player-wrapper svelte-12e19rp")},m(u,f){v(u,e,f),E(t,e,null),_(e,n),_(e,o),i[163](o),i[164](e),l=!0,r||(a=[Te(r8,"blur",i[107]),Te(e,"mouseenter",i[109]),Te(e,"mouseleave",i[111]),Te(e,"mousemove",i[112]),Te(e,"click",i[120],!0),Te(e,"focusin",i[110],!0)],r=!0)},p(u,f){let p={};f[1]&128&&(p.isAds=u[38]==="ads"),f[1]&65536&&(p.fakePlayButtonHandler=u[47]?u[105]:void 0),f[0]&1073741823|f[1]&2147418111|f[2]&3|f[6]&32&&(p.$$scope={dirty:f,ctx:u}),t.$set(p)},i(u){l||(d(t.$$.fragment,u),l=!0)},o(u){m(t.$$.fragment,u),l=!1},d(u){u&&b(e),i[162](null),M(t),i[163](null),i[164](null),r=!1,at(a)}}}var G0=!0;function Qc(i){return i?i.offsetTop+Qc(i.offsetParent):0}function x0(i){return i?i.offsetLeft+x0(i.offsetParent):0}function u8(i,e,t){let n,o,l,r,a,s,u,f,p,g,y,h,C,w,F,T,k,P,G,W,z,le,de,L,te,re,X,Pe,q,N,K,ce,oe,se,qe,Ve,ke,Re,ze,je,Y,fe,Ze,{store:_e}=e,{uiConfig:Ue}=e,{title:tt}=e,{thumbUrl:rt}=e,{videoContainer:Je}=e,{interactiveContainer:Ye}=e,{live:We}=e,{autoplay:J}=e,{canRewindLive:He}=e,{showAds:we}=e,{adsSlotId:Ie=void 0}=e,{adsParams:Ke=void 0}=e,{adsPreviewParam:me=void 0}=e,{duration:$=void 0}=e,{logoClickable:dt}=e,{logoHidden:mt}=e,{logoTargetUrl:$e=""}=e,{showNextPrevButtons:ut=!1}=e,{nextButtonActive:St=!1}=e,{prevButtonActive:et=!1}=e,{endScreenVideoTitle:ni=void 0}=e,{endScreenVideoThumb:It=void 0}=e,{isOneVideoPlaylist:qt=!1}=e,{supportLink:oi}=e,{shadowRootContainer:st=void 0}=e,{outerContainerRef:yt=void 0}=e,{playerStarted:ei=!1}=e,{fullScreenTarget:pe=void 0}=e,{showMiniTimer:Lt=!1}=e,{showEndScreen:Vt=!0}=e,{playNextVideo:Pt=Ms.noop}=e,{playPrevVideo:Tt=Ms.noop}=e,{repeatPlaylist:Ht=Ms.noop}=e,{seekToInteractive:Rt}=e,{toggleGraph:ai}=e,{playPrevChapter:_i}=e,{firstStart:Qt}=e,Ot=_e.getLogger().createComponentLog("Root component"),ri=_e.interfaceLanguage$;O(i,ri,x=>t(52,ce=x));let Ft=_e.state.playbackState$;O(i,Ft,x=>t(154,Pe=x));let Pi=_e.ads.playbackState;O(i,Pi,x=>t(155,q=x));let wt=_e.state.positionWithScrubbing$;O(i,wt,x=>t(57,ke=x));let Ei=_e.state.duration$;O(i,Ei,x=>t(60,je=x));let gi=_e.playerPhase;O(i,gi,x=>t(38,de=x));let ui=_e.ui.isFullscreen;O(i,ui,x=>t(144,h=x));let ci=_e.ui.controlsVisible;O(i,ci,x=>t(36,P=x));let ge=_e.ui.settingsMenuVisible;O(i,ge,x=>t(142,s=x));let pt=_e.ui.scrubbingInProgress;O(i,pt,x=>t(146,T=x));let Zt=_e.ui.contextMenu.visible$;O(i,Zt,x=>t(33,n=x));let un=_e.ui.debugPanelVisible;O(i,un,x=>t(63,Ze=x));let Fi=_e.state.isLoaderVisible;O(i,Fi,x=>t(156,N=x));let xi=_e.state.isEnded$;O(i,xi,x=>t(143,f=x));let Kt=_e.state.chromecastConnected$;O(i,Kt,x=>t(39,re=x));let qi=_e.state.chromecastDeviceName$;O(i,qi,x=>t(54,se=x));let Yi=_e.ads.postrollPassed;O(i,Yi,x=>t(149,z=x));let fi=_e.state.isLive$;O(i,fi,x=>t(59,ze=x));let Xt=_e.state.isPlaying$;O(i,Xt,x=>t(51,K=x));let cn=_e.state.crashed$;O(i,cn,x=>t(37,W=x));let fn=_e.webApi.annotationsApi,hi=_e.webApi.pictureInPictureApi,Qi=_e.state.currentSubtitle$;O(i,Qi,x=>t(55,qe=x));let bi=_e.state.currentSubtitleCaptions$;O(i,bi,x=>t(56,Ve=x));let Zi=_e.state.duration$;O(i,Zi,x=>t(58,Re=x));let dn=_e.state.graphIsOpened$;O(i,dn,x=>t(150,le=x));let Mi=_e.ui.playerSize;O(i,Mi,x=>t(34,g=x));let Hi=_e.ui.is3DVideo;O(i,Hi,x=>t(49,p=x));let jt=_e.ui.icon3DVideoVisible;O(i,jt,x=>t(53,oe=x));let mn=_e.ui.rotateAlpha;O(i,mn,x=>t(35,F=x));let Ai=_e.state.isInteractive,Ui=_e.state.isInteractiveTime$;O(i,Ui,x=>t(147,k=x));let Xi=_e.state.isInteractiveExpectation$;O(i,Xi,x=>t(153,X=x));let Li=_e.state.hasInteractiveBranches,di=_e.ui.touched;O(i,di,x=>t(151,L=x));let Vi=_e.ui.modals.hotKeyMap.data;O(i,Vi,x=>t(171,u=x));let Ji=_e.ui.modals.hotKeyMap.show;O(i,Ji,x=>t(62,fe=x));let $i=_e.ui.overlayContainer$,en=_e.ui.controls.interactiveTimeIndicator;O(i,en,x=>t(172,y=x));let Gt=_e.state.showInteractiveTimeIndicator,vi=_e.ui.contextMenu.position$;O(i,vi,x=>t(61,Y=x));let tn=_e.actions.internal.closeSettingsMenu,{fakeIsPlaying$:yi}=An();O(i,yi,x=>t(145,w=x));let At,mi,ki,Ri,lt;Vi.set(ud());let wi,ti,Qe=Fe(!1);O(i,Qe,x=>t(50,C=x));let pn,nn=Fe(!1);O(i,nn,x=>t(152,te=x));let _n=Fe(),gn=Fe(!1);O(i,gn,x=>t(148,G=x));let Bi=!1,Ci=!1,zi=!1,Wi=!(J&&!Ue.controls.showOnStartupAtAutoplay),Ut,Si,Tn,Pn,hn,on=!1,bn,vn=!1,{toggle:yn}=yi,Ki=!1,Di=null,pi;hi?.setContext(Ur());let Un=()=>{J&&!Ai&&Ue.controls.showOnStartupAtAutoplay&&xt(Ue.controls.hideTimeout)};_e.setUiCallbacks({onStarted:Un});let ji=()=>{window.clearTimeout(ki),nn.set(!1)},zn=()=>{window.clearTimeout(Ri),_n.set(null)},xt=x=>{ji(),nn.set(!0),ki=window.setTimeout(()=>nn.set(!1),x);let Bt=x-100;pn=window.setTimeout(()=>{C&&Qe.set(!1)},Bt>0?Bt:x)},Wn=(x,Bt)=>{zn(),_n.set(Bt),Ri=window.setTimeout(()=>_n.set(null),x)},Kn=Hi.subscribe(x=>{jt.set(x),x&&(window.clearTimeout(lt),lt=window.setTimeout(()=>jt.set(!1),Ue.controls.hide360IconTimeout))}),Rn=async()=>{let x=go();if(x){let Bt=xr(),kn=rn();x=Bt===kn||Bt===st}if(x){xt(Ue.controls.hideTimeoutFullscreen);try{await hi?.remove()}catch(Bt){Ot({message:String(Bt)})}}ui.set(x),_e.getAdmanWrapper().setFullscreen(x),h?_e.callbacks?.onFullscreenEnter?.():_e.callbacks?.onFullscreenExit?.()},jn=x=>{let Bt=x;Mi.set({width:Bt.target.width,height:Bt.target.height})};Et(()=>(Tl(Rn),Ue.features.annotationsInside&&fn?.init(At),Ho(hi)&&(hi?.assignPlayerContainer(At),hi?.registryExternalEventHandlers({resize:jn})),Ye&&Je.parentElement?.insertBefore(Ye,Je.nextSibling),()=>{window.clearTimeout(ki),window.clearTimeout(pn),window.clearTimeout(Ri),window.clearTimeout(lt),Kn(),hi?.dispose(),Pl(Rn)}));let rn=()=>{let x=Ue.features.fullscreenInternalTargetPlayerContainer||!yt?At:yt,Bt=x.getRootNode(),kn=Bt instanceof ShadowRoot?Bt.host:Bt,Dn=pe instanceof HTMLElement&&pe.contains(kn);return Ue.allowChangingFullscreenTarget&&pe&&Dn?pe:x},ln=async()=>{go()?(await Il(document),Ot({message:"exit fullscreen"})):(Ot({message:"request fullscreen"}),await Sl(rn()))},ie=()=>{tn(),Zt.set(!1)},vt=x=>{Zt.set(!0),vi.set({left:x.clientX,top:x.clientY})};function sn(){gn.set(!0),Ai||xt(Ue.controls.hideTimeoutCursor)}function an(){Ai||(Qe.set(!0),xt(Ue.controls.hideTimeoutCursor))}function Gn(){gn.set(!1),t(133,Ci=!1),t(132,Bi=!1),Ki=!1,_e.actions.internal.releaseCamera()}function xn(x){if(y&&Gt){let Bt=x.currentTarget,kn=Qc(Bt),Dn=x0(Bt),Po=x.pageX-Dn,Eo=x.pageY-kn,{left:io,bottom:ir,right:Mo}=y,no=Mo-io;return Po>=io-no&&Eo<=ir+no}}function wo(x){if(At){let Bt=Qc(x.currentTarget),kn=g.height,Dn=x.pageY-Bt;if(xn(x)){t(133,Ci=!1);return}Dn<40?t(133,Ci=!0):Dn>kn-40?t(132,Bi=!0):(t(133,Ci=!1),s||t(132,Bi=!1))}}function Co(x){wo(x),Ut||xt(Ue.controls.hideTimeoutCursor),p&&Ki&&Di&&_e.actions.internal.moveCameraFocusPX(Di.clientX-x.clientX,Di.clientY-x.clientY,x.timeStamp-Di.timeStamp),Di=x}let ee=x=>{x.button===0&&(Ki=!0,_e.actions.internal.holdCamera()),xt(Ue.controls.hideTimeoutCursor)},eo=x=>{x.button===0&&(Di=x,Ki=!1,_e.actions.internal.releaseCamera()),xt(Ue.controls.hideTimeoutCursor)},So=()=>{G0&&(Ot({message:"double click on video"}),ln(),xt(Ue.controls.hideTimeoutCursor))},Dr=()=>{if(n||s){ie();return}if(!(f&&!Li)){if(vn)return yn();if(pi?.focus(),!ei){Qt(),xt(Ue.controls.hideTimeoutCursor);return}_e.actions.internal.togglePlay(),xt(Ue.controls.hideTimeoutCursor)}},Bn=x=>{ie(),di.set(!0),xt(Ue.controls.hideTimeout),x&&Wn(Ue.controls.hideHotKeyHelpers,x)},Nr=()=>{ie(),_e.callbacks?.onOpenHotKeyMap?_e.callbacks?.onOpenHotKeyMap(u):Ji.update(x=>!x)},Yo=()=>{if(n||s){ie();return}},Or=()=>{di.set(!0)},fo=_e.ui.contextMenu.openedByBtnKeyboard$;O(i,fo,x=>t(141,a=x));let En=_e.ui.contextMenu.btnRef$;O(i,En,x=>t(140,r=x));let Yn,to=_e.ui.contextMenu.openedByHotKey$;O(i,to,x=>t(139,l=x));let Io=_e.ui.contextMenu.lastActiveElem$;O(i,Io,x=>t(138,o=x));function Qo(x){be[x?"unshift":"push"](()=>{Je=x,t(0,Je)})}let To=()=>pi?.focus();function Zo(x){mi=x,t(41,mi)}let Xo=()=>pi?.focus();function Jo(x){Yn=x,t(32,Yn)}function $o(x){be[x?"unshift":"push"](()=>{pi=x,t(48,pi)})}function er(x){be[x?"unshift":"push"](()=>{ti=x,t(30,ti)})}function tr(x){be[x?"unshift":"push"](()=>{At=x,t(40,At)})}return i.$$set=x=>{"store"in x&&t(125,_e=x.store),"uiConfig"in x&&t(1,Ue=x.uiConfig),"title"in x&&t(2,tt=x.title),"thumbUrl"in x&&t(3,rt=x.thumbUrl),"videoContainer"in x&&t(0,Je=x.videoContainer),"interactiveContainer"in x&&t(126,Ye=x.interactiveContainer),"live"in x&&t(4,We=x.live),"autoplay"in x&&t(5,J=x.autoplay),"canRewindLive"in x&&t(6,He=x.canRewindLive),"showAds"in x&&t(7,we=x.showAds),"adsSlotId"in x&&t(8,Ie=x.adsSlotId),"adsParams"in x&&t(9,Ke=x.adsParams),"adsPreviewParam"in x&&t(10,me=x.adsPreviewParam),"duration"in x&&t(11,$=x.duration),"logoClickable"in x&&t(12,dt=x.logoClickable),"logoHidden"in x&&t(13,mt=x.logoHidden),"logoTargetUrl"in x&&t(14,$e=x.logoTargetUrl),"showNextPrevButtons"in x&&t(15,ut=x.showNextPrevButtons),"nextButtonActive"in x&&t(16,St=x.nextButtonActive),"prevButtonActive"in x&&t(17,et=x.prevButtonActive),"endScreenVideoTitle"in x&&t(18,ni=x.endScreenVideoTitle),"endScreenVideoThumb"in x&&t(19,It=x.endScreenVideoThumb),"isOneVideoPlaylist"in x&&t(20,qt=x.isOneVideoPlaylist),"supportLink"in x&&t(21,oi=x.supportLink),"shadowRootContainer"in x&&t(127,st=x.shadowRootContainer),"outerContainerRef"in x&&t(128,yt=x.outerContainerRef),"playerStarted"in x&&t(22,ei=x.playerStarted),"fullScreenTarget"in x&&t(129,pe=x.fullScreenTarget),"showMiniTimer"in x&&t(130,Lt=x.showMiniTimer),"showEndScreen"in x&&t(131,Vt=x.showEndScreen),"playNextVideo"in x&&t(23,Pt=x.playNextVideo),"playPrevVideo"in x&&t(24,Tt=x.playPrevVideo),"repeatPlaylist"in x&&t(25,Ht=x.repeatPlaylist),"seekToInteractive"in x&&t(26,Rt=x.seekToInteractive),"toggleGraph"in x&&t(27,ai=x.toggleGraph),"playPrevChapter"in x&&t(28,_i=x.playPrevChapter),"firstStart"in x&&t(29,Qt=x.firstStart)},i.$$.update=()=>{if(i.$$.dirty[1]&192|i.$$.dirty[5]&3&&t(42,wi=(de==="video"&&N||de==="ads"&&q==="inactive")&&!W),i.$$.dirty[0]&1073741824&&$i.set(ti),i.$$.dirty[4]&1073743872&&(t(134,zi=Wi&&Pe!==j0.PlaybackState.PLAYING),Wi||t(135,Wi=!0)),i.$$.dirty[4]&545523456&&t(136,Ut=k&&!s&&!(Bi||Ci)&&!(zi&&!X)),i.$$.dirty[1]&448|i.$$.dirty[4]&272897024&&ci.set((zi||s||T||re||te)&&!Ut&&(de==="video"||de==="ads")&&!W),i.$$.dirty[0]&2|i.$$.dirty[1]&224|i.$$.dirty[4]&134217792&&t(43,Si=Ue.features.thumbTimer&&Lt&&de==="video"&&!P&&!W&&!Ai&&(Ue.hideThumbTimerAfterTouch&&!L||!Ue.hideThumbTimerAfterTouch)),i.$$.dirty[1]&128|i.$$.dirty[4]&68157440&&t(44,Tn=de==="video"&&!le&&h),i.$$.dirty[0]&128|i.$$.dirty[1]&64|i.$$.dirty[4]&34078848&&t(31,Pn=Vt&&(we&&z||!we)&&f&&!W),i.$$.dirty[1]&33|i.$$.dirty[4]&25165824&&t(45,hn=G&&!(P||Pn)&&!k),i.$$.dirty[0]&2|i.$$.dirty[4]&12591104&&(!T&&on&&!k&&xt(Ue.controls.hideTimeoutCursor),t(137,on=T)),i.$$.dirty[0]&1|i.$$.dirty[1]&24&&t(46,bn=Je&&F%180?g.height/g.width:1),i.$$.dirty[4]&2097152&&t(47,vn=w!==null),i.$$.dirty[1]&6|i.$$.dirty[4]&131072&&zo(Yn,n,a),i.$$.dirty[1]&4|i.$$.dirty[4]&65536){let x=r;x&&hr(x,n,fo)}if(i.$$.dirty[1]&6|i.$$.dirty[4]&32768&&zo(Yn,n,l),i.$$.dirty[1]&4|i.$$.dirty[4]&16384){let x=o;x&&wd(x,n,to)}},[Je,Ue,tt,rt,We,J,He,we,Ie,Ke,me,$,dt,mt,$e,ut,St,et,ni,It,qt,oi,ei,Pt,Tt,Ht,Rt,ai,_i,Qt,ti,Pn,Yn,n,g,F,P,W,de,re,At,mi,wi,Si,Tn,hn,bn,vn,pi,p,C,K,ce,oe,se,qe,Ve,ke,Re,ze,je,Y,fe,Ze,ri,Ft,Pi,wt,Ei,gi,ui,ci,ge,pt,Zt,un,Fi,xi,Kt,qi,Yi,fi,Xt,cn,Qi,bi,Zi,dn,Mi,Hi,jt,mn,Ai,Ui,Xi,di,Vi,Ji,en,vi,yi,Qe,nn,_n,gn,yn,ln,ie,vt,sn,an,Gn,Co,ee,eo,So,Dr,Bn,Nr,Yo,Or,fo,En,to,Io,_e,Ye,st,yt,pe,Lt,Vt,Bi,Ci,zi,Wi,Ut,on,o,l,r,a,s,f,h,w,T,k,G,z,le,L,te,X,Pe,q,N,Qo,To,Zo,Xo,Jo,$o,er,tr]}var Zc=class extends B{constructor(e){super(),D(this,e,u8,a8,R,{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,showEndScreen:131,playNextVideo:23,playPrevVideo:24,repeatPlaylist:25,seekToInteractive:26,toggleGraph:27,playPrevChapter:28,firstStart:29},l8,[-1,-1,-1,-1,-1,-1,-1])}},Y0=Zc;var p_=require("@vkontakte/videoplayer-core"),co=require("@vkontakte/videoplayer-shared");function c8(i){Ce(i,"svelte-nhq2ld",".double-click-area.svelte-nhq2ld{position:absolute;top:0;height:100%;width:25%;overflow:hidden}.double-click-area.left.svelte-nhq2ld{left:0}.double-click-area.right.svelte-nhq2ld{right:0}.semicircle.svelte-nhq2ld{position:absolute;top:0;width:100%;height:100%;background-color:rgba(0, 0, 0, 0.5)}.semicircle.left.svelte-nhq2ld{left:0;border-top-right-radius:50%;border-bottom-right-radius:50%}.semicircle.right.svelte-nhq2ld{right:0;border-top-left-radius:50%;border-bottom-left-radius:50%}.info.svelte-nhq2ld{position:absolute;top:50%;left:50%;transform:translate(-50%, -50%);display:flex;flex-direction:column;align-items:center;justify-content:center}.triangles-wrapper.svelte-nhq2ld{position:relative;display:flex;margin-bottom:10px;justify-content:center}.triangle.svelte-nhq2ld{width:0;height:0;border-top:6px solid transparent;border-bottom:6px solid transparent;animation:svelte-nhq2ld-blink 500ms infinite;opacity:0}.triangle.right.svelte-nhq2ld:nth-child(1),.triangle.left.svelte-nhq2ld:nth-child(3){animation-delay:0ms}.triangle.right.svelte-nhq2ld:nth-child(2),.triangle.left.svelte-nhq2ld:nth-child(2){animation-delay:100ms}.triangle.right.svelte-nhq2ld:nth-child(3),.triangle.left.svelte-nhq2ld:nth-child(1){animation-delay:200ms}@keyframes svelte-nhq2ld-blink{0%{opacity:0}50%{opacity:1}100%{opacity:0}}.triangle.left.svelte-nhq2ld{border-right:8px solid var(--white)}.triangle.right.svelte-nhq2ld{border-left:8px solid var(--white)}.triangle.svelte-nhq2ld:not(:last-child){margin-right:5px}.step-caption.svelte-nhq2ld{margin:0;text-align:center;font-size:12px;line-height:1;color:var(--white)}")}function Q0(i){let e,t,n,o,l,r,a,s,u,f,p,g,y,h,C,w=U("doubletap_seek_step",{seconds:i[2].toFixed(0)})+"",F;return{c(){e=I("div"),n=H(),o=I("div"),l=I("div"),r=I("div"),s=H(),u=I("div"),p=H(),g=I("div"),h=H(),C=I("p"),F=De(w),c(e,"class",t="semicircle "+i[0]+" svelte-nhq2ld"),c(r,"class",a="triangle "+i[0]+" svelte-nhq2ld"),c(u,"class",f="triangle "+i[0]+" svelte-nhq2ld"),c(g,"class",y="triangle "+i[0]+" svelte-nhq2ld"),c(l,"class","triangles-wrapper svelte-nhq2ld"),c(C,"class","step-caption svelte-nhq2ld"),c(o,"class","info svelte-nhq2ld")},m(T,k){v(T,e,k),v(T,n,k),v(T,o,k),_(o,l),_(l,r),_(l,s),_(l,u),_(l,p),_(l,g),_(o,h),_(o,C),_(C,F)},p(T,k){k&1&&t!==(t="semicircle "+T[0]+" svelte-nhq2ld")&&c(e,"class",t),k&1&&a!==(a="triangle "+T[0]+" svelte-nhq2ld")&&c(r,"class",a),k&1&&f!==(f="triangle "+T[0]+" svelte-nhq2ld")&&c(u,"class",f),k&1&&y!==(y="triangle "+T[0]+" svelte-nhq2ld")&&c(g,"class",y),k&4&&w!==(w=U("doubletap_seek_step",{seconds:T[2].toFixed(0)})+"")&&xe(F,w)},d(T){T&&(b(e),b(n),b(o))}}}function f8(i){let e,t,n,o,l=i[1]&&Q0(i);return{c(){e=I("div"),l&&l.c(),c(e,"class",t="double-click-area "+i[0]+" svelte-nhq2ld")},m(r,a){v(r,e,a),l&&l.m(e,null),n||(o=Te(e,"click",_t(i[3]())),n=!0)},p(r,[a]){r[1]?l?l.p(r,a):(l=Q0(r),l.c(),l.m(e,null)):l&&(l.d(1),l=null),a&1&&t!==(t="double-click-area "+r[0]+" svelte-nhq2ld")&&c(e,"class",t)},i:he,o:he,d(r){r&&b(e),l&&l.d(),n=!1,o()}}}function d8(i,e,t){let{side:n}=e,{seekStep:o=0}=e,{handleSingleFirstClick:l}=e,{handleSecondClick:r}=e,a=!1,s=0,u=0,f=o,p=()=>()=>{u+=1,t(2,f=o*(u-1)),u===1?l():(t(1,a=!0),r()),window.clearTimeout(s),s=window.setTimeout(()=>{u=0,t(1,a=!1)},300)};return Nn(()=>{window.clearTimeout(s)}),i.$$set=g=>{"side"in g&&t(0,n=g.side),"seekStep"in g&&t(4,o=g.seekStep),"handleSingleFirstClick"in g&&t(5,l=g.handleSingleFirstClick),"handleSecondClick"in g&&t(6,r=g.handleSecondClick)},[n,a,f,p,o,l,r]}var Xc=class extends B{constructor(e){super(),D(this,e,d8,f8,R,{side:0,seekStep:4,handleSingleFirstClick:5,handleSecondClick:6},c8)}},Jc=Xc;function m8(i,e,t){let{playNextVideo:n}=e;return Et(()=>{n()}),i.$$set=o=>{"playNextVideo"in o&&t(0,n=o.playNextVideo)},[n]}var $c=class extends B{constructor(e){super(),D(this,e,m8,null,R,{playNextVideo:0})}},Z0=$c;var{window:p8}=Ao;function _8(i){Ce(i,"svelte-6x5lql",".player-wrapper.svelte-6x5lql{position:absolute;width:100%;height:100%}.player-wrapper.svelte-6x5lql .player-media{position:absolute;left:0;top:0;width:100%;height:100%;background:var(--black);transition:transform 0.2s ease-in-out}.spherical-video-icon.svelte-6x5lql{display:inline-block;position:absolute;top:calc(50% - 23px);left:calc(50% - 38px)}.video-wrapper.svelte-6x5lql,.video-container.svelte-6x5lql,.ads-container.svelte-6x5lql{position:absolute;width:100%;height:100%;left:0;top:0}.video-wrapper.svelte-6x5lql{z-index:var(--video-container-z-index);background:var(--black)}.video-container.svelte-6x5lql{z-index:var(--video-container-z-index);transition:var(--rotate-transition-duration) ease all}.video-container.fast-rotate.svelte-6x5lql{transition:none}.ads-container.svelte-6x5lql{z-index:var(--ads-container-z-index);background:var(--black)}")}function X0(i){let e,t,n,o=i[45]&&J0(i),l=i[46]&&$0(i);return{c(){o&&o.c(),e=H(),l&&l.c(),t=it()},m(r,a){o&&o.m(r,a),v(r,e,a),l&&l.m(r,a),v(r,t,a),n=!0},p(r,a){r[45]?o?(o.p(r,a),a[1]&16384&&d(o,1)):(o=J0(r),o.c(),d(o,1),o.m(e.parentNode,e)):o&&(ae(),m(o,1,1,()=>{o=null}),ue()),r[46]?l?(l.p(r,a),a[1]&32768&&d(l,1)):(l=$0(r),l.c(),d(l,1),l.m(t.parentNode,t)):l&&(ae(),m(l,1,1,()=>{l=null}),ue())},i(r){n||(d(o),d(l),n=!0)},o(r){m(o),m(l),n=!1},d(r){r&&(b(e),b(t)),o&&o.d(r),l&&l.d(r)}}}function J0(i){let e,t;return e=new Jc({props:{side:"left",seekStep:i[1].controls.seekStepMobile/1e3,handleSingleFirstClick:i[100],handleSecondClick:i[133]}}),{c(){A(e.$$.fragment)},m(n,o){E(e,n,o),t=!0},p(n,o){let l={};o[0]&2&&(l.seekStep=n[1].controls.seekStepMobile/1e3),e.$set(l)},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){m(e.$$.fragment,n),t=!1},d(n){M(e,n)}}}function $0(i){let e,t;return e=new Jc({props:{side:"right",seekStep:i[1].controls.seekStepMobile/1e3,handleSingleFirstClick:i[100],handleSecondClick:i[134]}}),{c(){A(e.$$.fragment)},m(n,o){E(e,n,o),t=!0},p(n,o){let l={};o[0]&2&&(l.seekStep=n[1].controls.seekStepMobile/1e3),e.$set(l)},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){m(e.$$.fragment,n),t=!1},d(n){M(e,n)}}}function e_(i){let e,t;return e=new Es({props:{thumbUrl:i[2],startTime:i[3]?.startTime}}),{c(){A(e.$$.fragment)},m(n,o){E(e,n,o),t=!0},p(n,o){let l={};o[0]&4&&(l.thumbUrl=n[2]),o[0]&8&&(l.startTime=n[3]?.startTime),e.$set(l)},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){m(e.$$.fragment,n),t=!1},d(n){M(e,n)}}}function t_(i){let e,t;return e=new Mr({props:{kind:"recover",thumbUrl:i[2]}}),{c(){A(e.$$.fragment)},m(n,o){E(e,n,o),t=!0},p(n,o){let l={};o[0]&4&&(l.thumbUrl=n[2]),e.$set(l)},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){m(e.$$.fragment,n),t=!1},d(n){M(e,n)}}}function i_(i){let e,t;return e=new Mr({props:{kind:"record",thumbUrl:i[2]}}),{c(){A(e.$$.fragment)},m(n,o){E(e,n,o),t=!0},p(n,o){let l={};o[0]&4&&(l.thumbUrl=n[2]),e.$set(l)},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){m(e.$$.fragment,n),t=!1},d(n){M(e,n)}}}function n_(i){let e,t,n;return t=new El({props:{adsSlotId:i[7],adsParams:i[8],adsPreviewParam:i[9],duration:i[10]}}),{c(){e=I("div"),A(t.$$.fragment),c(e,"class","ads-container svelte-6x5lql"),j(e,"hidden",i[36]!=="ads")},m(o,l){v(o,e,l),E(t,e,null),n=!0},p(o,l){let r={};l[0]&128&&(r.adsSlotId=o[7]),l[0]&256&&(r.adsParams=o[8]),l[0]&512&&(r.adsPreviewParam=o[9]),l[0]&1024&&(r.duration=o[10]),t.$set(r),(!n||l[1]&32)&&j(e,"hidden",o[36]!=="ads")},i(o){n||(d(t.$$.fragment,o),n=!0)},o(o){m(t.$$.fragment,o),n=!1},d(o){o&&b(e),M(t)}}}function o_(i){let e,t;return e=new Z0({props:{playNextVideo:i[22]}}),{c(){A(e.$$.fragment)},m(n,o){E(e,n,o),t=!0},p(n,o){let l={};o[0]&4194304&&(l.playNextVideo=n[22]),e.$set(l)},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){m(e.$$.fragment,n),t=!1},d(n){M(e,n)}}}function r_(i){let e,t;return e=new Cs({}),{c(){A(e.$$.fragment)},m(n,o){E(e,n,o),t=!0},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){m(e.$$.fragment,n),t=!1},d(n){M(e,n)}}}function l_(i){let e,t,n;return t=new vl({props:{"aria-label":U("video360")}}),{c(){e=I("div"),A(t.$$.fragment),c(e,"class","spherical-video-icon svelte-6x5lql")},m(o,l){v(o,e,l),E(t,e,null),n=!0},i(o){n||(d(t.$$.fragment,o),n=!0)},o(o){m(t.$$.fragment,o),n=!1},d(o){o&&b(e),M(t)}}}function s_(i){let e,t;return e=new Is({props:{thumbUrl:i[2],chromecastDeviceName:i[53]}}),{c(){A(e.$$.fragment)},m(n,o){E(e,n,o),t=!0},p(n,o){let l={};o[0]&4&&(l.thumbUrl=n[2]),o[1]&4194304&&(l.chromecastDeviceName=n[53]),e.$set(l)},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){m(e.$$.fragment,n),t=!1},d(n){M(e,n)}}}function a_(i){let e,t;return e=new Ss({props:{shifted:i[30],captions:i[55],position:i[32],playerSize:i[33],isMobile:!0}}),{c(){A(e.$$.fragment)},m(n,o){E(e,n,o),t=!0},p(n,o){let l={};o[0]&1073741824&&(l.shifted=n[30]),o[1]&16777216&&(l.captions=n[55]),o[1]&2&&(l.position=n[32]),o[1]&4&&(l.playerSize=n[33]),e.$set(l)},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){m(e.$$.fragment,n),t=!1},d(n){M(e,n)}}}function u_(i){let e,t,n,o,l;return t=new Ts({}),{c(){e=I("div"),A(t.$$.fragment)},m(r,a){v(r,e,a),E(t,e,null),n=!0,o||(l=Te(e,"click",_t(i[101])),o=!0)},p:he,i(r){n||(d(t.$$.fragment,r),n=!0)},o(r){m(t.$$.fragment,r),n=!1},d(r){r&&b(e),M(t),o=!1,l()}}}function c_(i){let e,t,n;function o(r){i[135](r)}let l={bottomHidden:i[36]==="thumb"||i[36]==="LiveWaitingStart"||i[36]==="LiveWaitingRecover"||i[36]==="LiveWaitingRecord"||i[36]==="ads",showControls:i[30],bottomNoSmooth:i[47],isAds:i[36]==="ads",canRewindLive:i[5]&&i[56]!==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[41],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[39]!==void 0&&(l.controlsElementRef=i[39]),e=new ws({props:l}),be.push(()=>Oe(e,"controlsElementRef",o)),{c(){A(e.$$.fragment)},m(r,a){E(e,r,a),n=!0},p(r,a){let s={};a[1]&32&&(s.bottomHidden=r[36]==="thumb"||r[36]==="LiveWaitingStart"||r[36]==="LiveWaitingRecover"||r[36]==="LiveWaitingRecord"||r[36]==="ads"),a[0]&1073741824&&(s.showControls=r[30]),a[1]&65536&&(s.bottomNoSmooth=r[47]),a[1]&32&&(s.isAds=r[36]==="ads"),a[0]&32|a[1]&33554432&&(s.canRewindLive=r[5]&&r[56]!==0),a[0]&2048&&(s.logoClickable=r[11]),a[0]&4096&&(s.logoHidden=r[12]),a[0]&8192&&(s.logoTargetUrl=r[13]),a[0]&16384&&(s.showNextPrevButtons=r[14]),a[0]&32768&&(s.nextButtonActive=r[15]),a[0]&65536&&(s.prevButtonActive=r[16]),a[0]&524288&&(s.isOneVideoPlaylist=r[19]),a[0]&1048576&&(s.supportLink=r[20]),a[1]&1024&&(s.customFullscreenSupported=r[41]),a[0]&4194304&&(s.playNextVideo=r[22]),a[0]&8388608&&(s.playPrevVideo=r[23]),a[0]&16777216&&(s.repeatPlaylist=r[24]),a[0]&33554432&&(s.seekToInteractive=r[25]),a[0]&67108864&&(s.toggleGraph=r[26]),a[0]&134217728&&(s.playPrevChapter=r[27]),!t&&a[1]&256&&(t=!0,s.controlsElementRef=r[39],Ne(()=>t=!1)),e.$set(s)},i(r){n||(d(e.$$.fragment,r),n=!0)},o(r){m(e.$$.fragment,r),n=!1},d(r){M(e,r)}}}function f_(i){let e,t;return e=new yr({}),{c(){A(e.$$.fragment)},m(n,o){E(e,n,o),t=!0},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){m(e.$$.fragment,n),t=!1},d(n){M(e,n)}}}function d_(i){let e,t;return e=new Bl({}),{c(){A(e.$$.fragment)},m(n,o){E(e,n,o),t=!0},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){m(e.$$.fragment,n),t=!1},d(n){M(e,n)}}}function m_(i){let e,t,n=i[5]&&i[79]&&!i[50].has("TIMELINE"),o,l,r,a,s,u,f,p,g,y,h,C,w,F,T,k,P;e=new Ps({props:{hidden:i[36]!=="thumb"||i[35]||i[90]&&i[4],thumbUrl:i[2],startVideo:i[28]}});let G=n&&X0(i),W=i[36]==="LiveWaitingStart"&&e_(i),z=i[36]==="LiveWaitingRecover"&&t_(i),le=i[36]==="LiveWaitingRecord"&&i_(i),de=i[6]&&i[21]&&n_(i),L=i[43]&&i[17]&&i[18]&&o_(i),te=i[51]&&r_(i),re=i[52]&&l_(i),X=i[37]&&s_(i),Pe=i[54].value!=="off"&&a_(i),q=i[35]&&u_(i),N=i[21]&&c_(i);w=new Al({props:{isLive:i[57],isHidden:!i[42],isPlaying:i[48],position:i[32],duration:i[31]}});let K=i[40]&&f_(i),ce=i[58]&&d_(i);return{c(){A(e.$$.fragment),t=H(),G&&G.c(),o=H(),W&&W.c(),l=H(),z&&z.c(),r=H(),le&&le.c(),a=H(),de&&de.c(),s=H(),L&&L.c(),u=H(),te&&te.c(),f=H(),re&&re.c(),p=H(),X&&X.c(),g=H(),Pe&&Pe.c(),y=H(),q&&q.c(),h=H(),N&&N.c(),C=H(),A(w.$$.fragment),F=H(),K&&K.c(),T=H(),ce&&ce.c(),k=it()},m(oe,se){E(e,oe,se),v(oe,t,se),G&&G.m(oe,se),v(oe,o,se),W&&W.m(oe,se),v(oe,l,se),z&&z.m(oe,se),v(oe,r,se),le&&le.m(oe,se),v(oe,a,se),de&&de.m(oe,se),v(oe,s,se),L&&L.m(oe,se),v(oe,u,se),te&&te.m(oe,se),v(oe,f,se),re&&re.m(oe,se),v(oe,p,se),X&&X.m(oe,se),v(oe,g,se),Pe&&Pe.m(oe,se),v(oe,y,se),q&&q.m(oe,se),v(oe,h,se),N&&N.m(oe,se),v(oe,C,se),E(w,oe,se),v(oe,F,se),K&&K.m(oe,se),v(oe,T,se),ce&&ce.m(oe,se),v(oe,k,se),P=!0},p(oe,se){let qe={};se[0]&16|se[1]&48&&(qe.hidden=oe[36]!=="thumb"||oe[35]||oe[90]&&oe[4]),se[0]&4&&(qe.thumbUrl=oe[2]),se[0]&268435456&&(qe.startVideo=oe[28]),e.$set(qe),se[0]&32|se[1]&524288&&(n=oe[5]&&oe[79]&&!oe[50].has("TIMELINE")),n?G?(G.p(oe,se),se[0]&32|se[1]&524288&&d(G,1)):(G=X0(oe),G.c(),d(G,1),G.m(o.parentNode,o)):G&&(ae(),m(G,1,1,()=>{G=null}),ue()),oe[36]==="LiveWaitingStart"?W?(W.p(oe,se),se[1]&32&&d(W,1)):(W=e_(oe),W.c(),d(W,1),W.m(l.parentNode,l)):W&&(ae(),m(W,1,1,()=>{W=null}),ue()),oe[36]==="LiveWaitingRecover"?z?(z.p(oe,se),se[1]&32&&d(z,1)):(z=t_(oe),z.c(),d(z,1),z.m(r.parentNode,r)):z&&(ae(),m(z,1,1,()=>{z=null}),ue()),oe[36]==="LiveWaitingRecord"?le?(le.p(oe,se),se[1]&32&&d(le,1)):(le=i_(oe),le.c(),d(le,1),le.m(a.parentNode,a)):le&&(ae(),m(le,1,1,()=>{le=null}),ue()),oe[6]&&oe[21]?de?(de.p(oe,se),se[0]&2097216&&d(de,1)):(de=n_(oe),de.c(),d(de,1),de.m(s.parentNode,s)):de&&(ae(),m(de,1,1,()=>{de=null}),ue()),oe[43]&&oe[17]&&oe[18]?L?(L.p(oe,se),se[0]&393216|se[1]&4096&&d(L,1)):(L=o_(oe),L.c(),d(L,1),L.m(u.parentNode,u)):L&&(ae(),m(L,1,1,()=>{L=null}),ue()),oe[51]?te?se[1]&1048576&&d(te,1):(te=r_(oe),te.c(),d(te,1),te.m(f.parentNode,f)):te&&(ae(),m(te,1,1,()=>{te=null}),ue()),oe[52]?re?se[1]&2097152&&d(re,1):(re=l_(oe),re.c(),d(re,1),re.m(p.parentNode,p)):re&&(ae(),m(re,1,1,()=>{re=null}),ue()),oe[37]?X?(X.p(oe,se),se[1]&64&&d(X,1)):(X=s_(oe),X.c(),d(X,1),X.m(g.parentNode,g)):X&&(ae(),m(X,1,1,()=>{X=null}),ue()),oe[54].value!=="off"?Pe?(Pe.p(oe,se),se[1]&8388608&&d(Pe,1)):(Pe=a_(oe),Pe.c(),d(Pe,1),Pe.m(y.parentNode,y)):Pe&&(ae(),m(Pe,1,1,()=>{Pe=null}),ue()),oe[35]?q?(q.p(oe,se),se[1]&16&&d(q,1)):(q=u_(oe),q.c(),d(q,1),q.m(h.parentNode,h)):q&&(ae(),m(q,1,1,()=>{q=null}),ue()),oe[21]?N?(N.p(oe,se),se[0]&2097152&&d(N,1)):(N=c_(oe),N.c(),d(N,1),N.m(C.parentNode,C)):N&&(ae(),m(N,1,1,()=>{N=null}),ue());let Ve={};se[1]&67108864&&(Ve.isLive=oe[57]),se[1]&2048&&(Ve.isHidden=!oe[42]),se[1]&131072&&(Ve.isPlaying=oe[48]),se[1]&2&&(Ve.position=oe[32]),se[1]&1&&(Ve.duration=oe[31]),w.$set(Ve),oe[40]?K?se[1]&512&&d(K,1):(K=f_(oe),K.c(),d(K,1),K.m(T.parentNode,T)):K&&(ae(),m(K,1,1,()=>{K=null}),ue()),oe[58]?ce?se[1]&134217728&&d(ce,1):(ce=d_(oe),ce.c(),d(ce,1),ce.m(k.parentNode,k)):ce&&(ae(),m(ce,1,1,()=>{ce=null}),ue())},i(oe){P||(d(e.$$.fragment,oe),d(G),d(W),d(z),d(le),d(de),d(L),d(te),d(re),d(X),d(Pe),d(q),d(N),d(w.$$.fragment,oe),d(K),d(ce),P=!0)},o(oe){m(e.$$.fragment,oe),m(G),m(W),m(z),m(le),m(de),m(L),m(te),m(re),m(X),m(Pe),m(q),m(N),m(w.$$.fragment,oe),m(K),m(ce),P=!1},d(oe){oe&&(b(t),b(o),b(l),b(r),b(a),b(s),b(u),b(f),b(p),b(g),b(y),b(h),b(C),b(F),b(T),b(k)),M(e,oe),G&&G.d(oe),W&&W.d(oe),z&&z.d(oe),le&&le.d(oe),de&&de.d(oe),L&&L.d(oe),te&&te.d(oe),re&&re.d(oe),X&&X.d(oe),Pe&&Pe.d(oe),q&&q.d(oe),N&&N.d(oe),M(w,oe),K&&K.d(oe),ce&&ce.d(oe)}}}function g8(i){let e,t,n,o,l,r=i[49],a,s,u,f,p,g,y=m_(i);return{c(){e=I("div"),t=I("div"),n=I("div"),l=H(),y.c(),a=H(),s=I("div"),c(n,"class","video-container svelte-6x5lql"),c(n,"style",o=`transform: rotate(${i[34]}deg) scale(${i[44]})`),c(n,"data-testid","video-container"),c(n,"data-is-playing",i[48]),j(n,"fast-rotate",!i[1].isSmoothVideoRotate),c(t,"class","video-wrapper svelte-6x5lql"),j(t,"hidden",i[36]!=="video"),c(s,"class","overlay-container"),c(e,"class","player-wrapper svelte-6x5lql"),c(e,"role","region"),c(e,"aria-label",u=U("aria_label_video_player")),c(e,"tabindex","-1")},m(h,C){v(h,e,C),_(e,t),_(t,n),i[132](n),_(e,l),y.m(e,null),_(e,a),_(e,s),i[136](s),i[137](e),f=!0,p||(g=[Te(p8,"blur",i[99]),Te(t,"click",Yt(i[100])),Te(e,"click",i[102],!0),Te(e,"focusin",i[103],!0)],p=!0)},p(h,C){(!f||C[1]&8200&&o!==(o=`transform: rotate(${h[34]}deg) scale(${h[44]})`))&&c(n,"style",o),(!f||C[1]&131072)&&c(n,"data-is-playing",h[48]),(!f||C[0]&2)&&j(n,"fast-rotate",!h[1].isSmoothVideoRotate),(!f||C[1]&32)&&j(t,"hidden",h[36]!=="video"),C[1]&262144&&R(r,r=h[49])?(ae(),m(y,1,1,he),ue(),y=m_(h),y.c(),d(y,1),y.m(e,a)):y.p(h,C)},i(h){f||(d(y),f=!0)},o(h){m(y),f=!1},d(h){h&&b(e),i[132](null),y.d(h),i[136](null),i[137](null),p=!1,at(g)}}}function h8(i,e,t){let n,o,l,r,a,s,u,f,p,g,y,h,C,w,F,T,k,P,G,W,z,le,de,L,te,re,X,Pe,q,N,K,ce,oe,se,qe,Ve,{store:ke}=e,{uiConfig:Re}=e,{thumbUrl:ze}=e,{videoContainer:je}=e,{interactiveContainer:Y}=e,{live:fe}=e,{autoplay:Ze}=e,{canRewindLive:_e}=e,{showAds:Ue}=e,{adsSlotId:tt=void 0}=e,{adsParams:rt=void 0}=e,{adsPreviewParam:Je=void 0}=e,{duration:Ye=void 0}=e,{logoClickable:We}=e,{logoHidden:J}=e,{logoTargetUrl:He=""}=e,{showNextPrevButtons:we=!1}=e,{nextButtonActive:Ie=!1}=e,{prevButtonActive:Ke=!1}=e,{endScreenVideoTitle:me=void 0}=e,{endScreenVideoThumb:$=void 0}=e,{isOneVideoPlaylist:dt=!1}=e,{supportLink:mt}=e,{shadowRootContainer:$e=void 0}=e,{outerContainerRef:ut=void 0}=e,{showMiniTimer:St=!1}=e,{fullScreenTarget:et=void 0}=e,{playerStarted:ni=!1}=e,{showEndScreen:It=!0}=e,{playNextVideo:qt=co.noop}=e,{playPrevVideo:oi=co.noop}=e,{repeatPlaylist:st=co.noop}=e,{seekToInteractive:yt}=e,{toggleGraph:ei}=e,{playPrevChapter:pe}=e,{firstStart:Lt}=e,{seekTime:Vt}=e,Pt=ke.getLogger().createComponentLog("Root component"),Tt=ke.interfaceLanguage$;O(i,Tt,ie=>t(49,X=ie));let Ht=ke.state.playbackState$;O(i,Ht,ie=>t(129,de=ie));let Rt=ke.ads.playbackState;O(i,Rt,ie=>t(130,L=ie));let ai=ke.state.positionWithScrubbing$;O(i,ai,ie=>t(32,a=ie));let _i=ke.state.duration$;O(i,_i,ie=>t(31,r=ie));let Qt=ke.playerPhase;O(i,Qt,ie=>t(36,G=ie));let Ot=ke.ui.isFullscreen;O(i,Ot,ie=>t(143,u=ie));let ri=ke.ui.controlsVisible;O(i,ri,ie=>t(30,o=ie));let Ft=ke.ui.interactiveHideMobileControls;O(i,Ft,ie=>t(121,y=ie));let Pi=ke.ui.settingsMenuVisible;O(i,Pi,ie=>t(119,n=ie));let wt=ke.ui.scrubbingInProgress;O(i,wt,ie=>t(122,C=ie));let Ei=ke.ui.debugPanelVisible;O(i,Ei,ie=>t(58,Ve=ie));let gi=ke.state.isLoaderVisible;O(i,gi,ie=>t(131,te=ie));let ui=ke.state.isEnded$;O(i,ui,ie=>t(124,T=ie));let ci=ke.state.chromecastConnected$;O(i,ci,ie=>t(37,W=ie));let ge=ke.state.chromecastDeviceName$;O(i,ge,ie=>t(53,K=ie));let pt=ke.ads.postrollPassed;O(i,pt,ie=>t(125,k=ie));let Zt=ke.ui.mobileUnmuteButtonExpanded,un=ke.ui.mobileUnmuteButtonVisible,Fi=ke.state.isLive$;O(i,Fi,ie=>t(57,qe=ie));let xi=ke.state.isPlaying$;O(i,xi,ie=>t(48,re=ie));let Kt=ke.state.isActiveLive$;O(i,Kt,ie=>t(120,s=ie));let qi=ke.state.isRewindableLive$,Yi=ke.state.crashed$;O(i,Yi,ie=>t(35,F=ie));let fi=ke.webApi.annotationsApi,Xt=ke.webApi.pictureInPictureApi,cn=ke.state.videoSize$;O(i,cn,ie=>t(144,p=ie));let fn=ke.state.currentSubtitle$;O(i,fn,ie=>t(54,ce=ie));let hi=ke.state.currentSubtitleCaptions$;O(i,hi,ie=>t(55,oe=ie));let Qi=ke.state.duration$;O(i,Qi,ie=>t(56,se=ie));let bi=ke.state.graphIsOpened$;O(i,bi,ie=>t(128,le=ie));let Zi=ke.ui.playerSize;O(i,Zi,ie=>t(33,f=ie));let dn=ke.ui.is3DVideo;O(i,dn,ie=>t(51,q=ie));let Mi=ke.ui.icon3DVideoVisible;O(i,Mi,ie=>t(52,N=ie));let Hi=ke.ui.rotateAlpha;O(i,Hi,ie=>t(34,h=ie));let jt=ke.state.isInteractive,mn=ke.state.isInteractiveTime$;O(i,mn,ie=>t(123,w=ie));let Ai=ke.state.isInteractiveExpectation$;O(i,Ai,ie=>t(127,z=ie));let Ui=ke.state.hasInteractiveBranches,Xi=ke.ui.controls.disabledControls$;O(i,Xi,ie=>t(50,Pe=ie));let Li=ke.ui.touched;O(i,Li,ie=>t(126,P=ie));let di=ke.ui.overlayContainer$,Vi=ke.state.loadedMetadata$;O(i,Vi,ie=>t(142,l=ie));let Ji=ke.actions.internal.closeSettingsMenu,$i=ke.callbacks?.onDisabledPlayPrevChapterClick,en=ke.callbacks?.onDisabledSeekToInteractiveClick,Gt,vi,tn,yi,At,mi,ki,Ri=Fe(!1);O(i,Ri,ie=>t(47,g=ie));let lt,wi=!1,ti,Qe=!1,pn,nn=!0,_n,gn,Bi=!1,Ci;Xt?.setContext(Ur());let zi=ie=>{clearTimeout(yi),ie&&(un.set(!0),Zt.set(!0),yi=window.setTimeout(()=>{Zt.set(!1)},Re.controls.collapseMobileUnmute),jt||Ut(Re.controls.hideTimeoutMobile))};ke.setUiCallbacks({onStarted:zi});let Wi=()=>{window.clearTimeout(tn),t(114,wi=!1),y&&Ft.set(!1)},Ut=ie=>{Wi(),t(114,wi=!0),tn=window.setTimeout(()=>t(114,wi=!1),ie);let vt=ie-100;lt=window.setTimeout(()=>{g&&Ri.set(!1)},vt>0?vt:ie)},Si=dn.subscribe(ie=>{Mi.set(ie),ie&&(window.clearTimeout(At),At=window.setTimeout(()=>Mi.set(!1),Re.controls.hide360IconTimeout))}),Tn=async()=>{let ie=go();if(ie){let vt=xr(),sn=vn(),an=co.clientChecker.isSamsungBrowser&&vt===$e;ie=vt===sn||an}if(ie){Ut(Re.controls.hideTimeoutFullscreen);try{await Xt?.remove()}catch(vt){Pt({message:String(vt)})}try{let vt=p?.width&&p?.height?p:f;await ad(vt)}catch(vt){Pt({message:String(vt)})}}Ot.set(ie),ke.getAdmanWrapper().setFullscreen(ie),u?ke.callbacks?.onFullscreenEnter?.():ke.callbacks?.onFullscreenExit?.()},Pn=ie=>{let vt=ie;Zi.set({width:vt.target.width,height:vt.target.height})};Et(()=>(Tl(Tn),Re.features.annotationsInside&&fi?.init(Gt),Ho(Xt)&&(Xt?.assignPlayerContainer(Gt),Xt?.registryExternalEventHandlers({resize:Pn})),t(41,nn=!co.clientChecker.isIphoneOrOldIpad),Y&&je.parentElement?.insertBefore(Y,je.nextSibling),()=>{window.clearTimeout(tn),window.clearTimeout(lt),window.clearTimeout(yi),window.clearTimeout(At),Si(),Xt?.dispose(),Pl(Tn)}));let hn=!0,on=!0,bn=ie=>{let vt=a+(ie==="forward"?1:-1)*Re.controls.seekStepMobile/1e3;vt<0?(t(45,hn=!1),vt=0):vt>=r&&(t(46,on=!1),vt=r),t(116,Qe=!0),Vt(vt)},vn=()=>{let ie=co.clientChecker.isIOS||Re.features.fullscreenInternalTargetPlayerContainer||!ut?Gt:ut,vt=ie.getRootNode(),sn=vt instanceof ShadowRoot?vt.host:vt,an=et instanceof HTMLElement&&et.contains(sn);return Re.allowChangingFullscreenTarget&&et&&an?et:ie},yn=async()=>{if(go())await Il(document),Pt({message:"exit fullscreen"});else{if(Pt({message:"request fullscreen"}),co.clientChecker.isIOS&&!l)return;await Sl(vn())}},Ki=()=>{Ji()},Di=()=>{if(n){Ki();return}if(!ni){Lt(),Ut(Re.controls.hideTimeoutCursor);return}t(116,Qe=!1),o?Wi():Ut(Re.controls.hideTimeoutMobile)},pi=()=>{if(n){Ki();return}},Un=()=>{Li.set(!0)},ji=()=>{jt||(Ri.set(!0),Ut(Re.controls.hideTimeoutCursor))},zn=ie=>{$i&&($i(ie),Ut(Re.controls.hideTimeoutMobile))},xt=ie=>{en&&(en(ie),Ut(Re.controls.hideTimeoutMobile))};function Wn(ie){be[ie?"unshift":"push"](()=>{je=ie,t(0,je)})}let Kn=()=>bn("backward"),Rn=()=>bn("forward");function jn(ie){vi=ie,t(39,vi)}function rn(ie){be[ie?"unshift":"push"](()=>{ki=ie,t(29,ki)})}function ln(ie){be[ie?"unshift":"push"](()=>{Gt=ie,t(38,Gt)})}return i.$$set=ie=>{"store"in ie&&t(106,ke=ie.store),"uiConfig"in ie&&t(1,Re=ie.uiConfig),"thumbUrl"in ie&&t(2,ze=ie.thumbUrl),"videoContainer"in ie&&t(0,je=ie.videoContainer),"interactiveContainer"in ie&&t(107,Y=ie.interactiveContainer),"live"in ie&&t(3,fe=ie.live),"autoplay"in ie&&t(4,Ze=ie.autoplay),"canRewindLive"in ie&&t(5,_e=ie.canRewindLive),"showAds"in ie&&t(6,Ue=ie.showAds),"adsSlotId"in ie&&t(7,tt=ie.adsSlotId),"adsParams"in ie&&t(8,rt=ie.adsParams),"adsPreviewParam"in ie&&t(9,Je=ie.adsPreviewParam),"duration"in ie&&t(10,Ye=ie.duration),"logoClickable"in ie&&t(11,We=ie.logoClickable),"logoHidden"in ie&&t(12,J=ie.logoHidden),"logoTargetUrl"in ie&&t(13,He=ie.logoTargetUrl),"showNextPrevButtons"in ie&&t(14,we=ie.showNextPrevButtons),"nextButtonActive"in ie&&t(15,Ie=ie.nextButtonActive),"prevButtonActive"in ie&&t(16,Ke=ie.prevButtonActive),"endScreenVideoTitle"in ie&&t(17,me=ie.endScreenVideoTitle),"endScreenVideoThumb"in ie&&t(18,$=ie.endScreenVideoThumb),"isOneVideoPlaylist"in ie&&t(19,dt=ie.isOneVideoPlaylist),"supportLink"in ie&&t(20,mt=ie.supportLink),"shadowRootContainer"in ie&&t(108,$e=ie.shadowRootContainer),"outerContainerRef"in ie&&t(109,ut=ie.outerContainerRef),"showMiniTimer"in ie&&t(110,St=ie.showMiniTimer),"fullScreenTarget"in ie&&t(111,et=ie.fullScreenTarget),"playerStarted"in ie&&t(21,ni=ie.playerStarted),"showEndScreen"in ie&&t(112,It=ie.showEndScreen),"playNextVideo"in ie&&t(22,qt=ie.playNextVideo),"playPrevVideo"in ie&&t(23,oi=ie.playPrevVideo),"repeatPlaylist"in ie&&t(24,st=ie.repeatPlaylist),"seekToInteractive"in ie&&t(25,yt=ie.seekToInteractive),"toggleGraph"in ie&&t(26,ei=ie.toggleGraph),"playPrevChapter"in ie&&t(27,pe=ie.playPrevChapter),"firstStart"in ie&&t(28,Lt=ie.firstStart),"seekTime"in ie&&t(113,Vt=ie.seekTime)},i.$$.update=()=>{i.$$.dirty[1]&48|i.$$.dirty[4]&192&&t(40,mi=(G==="video"&&te||G==="ads"&&L==="inactive")&&!F),i.$$.dirty[0]&536870912&&di.set(ki),i.$$.dirty[4]&32&&t(115,ti=de!==p_.PlaybackState.PLAYING),i.$$.dirty[3]&274726912|i.$$.dirty[4]&25&&t(117,pn=le||y||!wi&&(T&&!!Ui||ti&&z)),i.$$.dirty[1]&112|i.$$.dirty[3]&635437056&&ri.set((ti||n||C||W||wi&&!Qe)&&!pn&&G==="video"&&!F),i.$$.dirty[0]&1073741826|i.$$.dirty[1]&48|i.$$.dirty[3]&131072|i.$$.dirty[4]&4&&t(42,_n=Re.features.thumbTimer&&St&&G==="video"&&!o&&!F&&!jt&&(Re.hideThumbTimerAfterTouch&&!P||!Re.hideThumbTimerAfterTouch)),i.$$.dirty[0]&64|i.$$.dirty[1]&16|i.$$.dirty[3]&524288|i.$$.dirty[4]&3&&t(43,gn=It&&(Ue&&k||!Ue)&&T&&!F),i.$$.dirty[0]&2|i.$$.dirty[3]&1644167168&&(!C&&Bi&&!w&&Ut(Re.controls.hideTimeoutMobile),t(118,Bi=C)),i.$$.dirty[0]&1|i.$$.dirty[1]&12&&t(44,Ci=je&&h%180?f.height/f.width:1),i.$$.dirty[1]&3|i.$$.dirty[3]&134217728&&(t(45,hn=a>0),t(46,on=!s&&a<r))},[je,Re,ze,fe,Ze,_e,Ue,tt,rt,Je,Ye,We,J,He,we,Ie,Ke,me,$,dt,mt,ni,qt,oi,st,yt,ei,pe,Lt,ki,o,r,a,f,h,F,G,W,Gt,vi,mi,nn,_n,gn,Ci,hn,on,g,re,X,Pe,q,N,K,ce,oe,se,qe,Ve,Tt,Ht,Rt,ai,_i,Qt,Ot,ri,Ft,Pi,wt,Ei,gi,ui,ci,ge,pt,Fi,xi,Kt,qi,Yi,cn,fn,hi,Qi,bi,Zi,dn,Mi,Hi,jt,mn,Ai,Xi,Li,Vi,Ri,bn,yn,Ki,Di,pi,Un,ji,zn,xt,ke,Y,$e,ut,St,et,It,Vt,wi,ti,Qe,pn,Bi,n,s,y,C,w,T,k,P,z,le,de,L,te,Wn,Kn,Rn,jn,rn,ln]}var ef=class extends B{constructor(e){super(),D(this,e,h8,g8,R,{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,showEndScreen:112,playNextVideo:22,playPrevVideo:23,repeatPlaylist:24,seekToInteractive:25,toggleGraph:26,playPrevChapter:27,firstStart:28,seekTime:113},_8,[-1,-1,-1,-1,-1,-1])}},__=ef;function b8(i){Ce(i,"svelte-6h4ol6",`.root.svelte-6h4ol6{--white:#fff;--black:#000;--red:#ff3347;--blue-light:#70c1ff;--black-alpha-40:rgba(0, 0, 0, 0.40);--white-alpha-24:rgba(255, 255, 255, 0.24);--white-alpha-72:rgba(255, 255, 255, 0.72);--devider-gray:#dce1e6;--text-gray:#626d7a;--controls-height:40px;--controls-gradient-height:100px;--controls-transition-duration:0.25s;--controls-transition-fn:cubic-bezier(0.455, 0.03, 0.515, 0.955);--controls-desktop-item-margin-left:4px;--focused:var(--white);--focused-element-shadow:inset 0 0 0 2px var(--focused);--focused-slider-shadow:0 0 0 2px var(--focused);--big-play-size:96px;--big-play-radius:50%;--big-play-bg-color:rgba(0, 0, 0, 0.5);--big-play-hover-bg-color:rgba(0, 0, 0, 0.6);--big-play-icon-width:38px;--big-play-icon-height:33px;--interactive-episode-complete:rgba(92, 156, 230, 1);--slider-height:5px;--slider-video-episode-gap:1.5px;--slider-radius:calc(var(--slider-height) / 2);--slider-handle-size:13px;--slider-bg:rgba(255, 255, 255, 0.4);--slider-loaded-bg:rgba(255, 255, 255, 0.4);--slider-filled-bg:var(--white);--slider-filled-active-live-bg:var(--red);--slider-filled-ads:rgba(103, 165, 235, 1);--slider-disabled-color:rgba(248, 248, 248, 0.31);--controls-gradient:linear-gradient(
35
35
  180deg,
36
36
  rgba(0, 0, 0, 0.00) 0%,
37
37
  rgba(0, 0, 0, 0.01) 6.67%,
@@ -49,5 +49,5 @@
49
49
  rgba(0, 0, 0, 0.96) 86.67%,
50
50
  rgba(0, 0, 0, 0.99) 93.33%,
51
51
  #000 100%
52
- );--timeline-preview-shadow:rgba(0, 0, 0, 0.08);--timeline-preview-bg:rgba(34, 34, 34, 1);--settings-bg:rgba(0, 0, 0, 0.72);--settings-item-bg-hover:rgba(255, 255, 255, 0.08);--settings-radius:8px;--mobile-settings-bg:#2C2D2E;--divider-border:1px solid var(--white-alpha-24);--toggle-color-separator:#363738;--toggle-color-off:#656565;--toggle-color-on:#71aaeb;--button-hover-transition:opacity 0.2s;--video-container-z-index:0;--controls-container-z-index:1;--ads-container-z-index:1;--mobile-settings-menu-z-index:1;--thumb-timer-z-index:2;--debug-panel-z-index:2;--context-menu-z-index:3;--hot-key-helpers-container-z-index:3;--overlay-container-z-index:4;--rotate-transition-duration:0.25s;position:relative;width:100%;height:100%;color:var(--white);font-size:12px;line-height:normal;overflow:hidden;outline:0;user-select:none;font-family:-apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;background:var(--black)}*{-webkit-tap-highlight-color:transparent}button{border:none;margin:0;padding:0;width:auto;overflow:visible;background:transparent;color:inherit;font:inherit;line-height:normal;-webkit-font-smoothing:inherit;-moz-osx-font-smoothing:inherit;-webkit-appearance:none;cursor:pointer}svg:not(.interactiveContainer svg){pointer-events:none}*:focus, *:focus-visible{outline:none}*:focus-visible{box-shadow:var(--focused-element-shadow)}.hidden{visibility:hidden;opacity:0}.overlay-container{pointer-events:none;top:0;left:0;height:100%;width:100%;position:fixed;z-index:var(--overlay-container-z-index)}.out-of-view{position:absolute !important;left:-1000vh !important}.icon.icon-error-stub{display:flex;justify-content:center;align-items:center}`)}function v8(i){let e,t,n;function o(r){i[61](r)}let l={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&&(l.videoContainer=i[33]),e=new x0({props:l}),he.push(()=>Fe(e,"videoContainer",o)),{c(){A(e.$$.fragment)},m(r,a){E(e,r,a),n=!0},p(r,a){let s={};a[0]&1&&(s.store=r[0]),a[0]&2&&(s.title=r[1]),a[0]&4&&(s.thumbUrl=r[2]),a[0]&8&&(s.interactiveContainer=r[3]),a[0]&16&&(s.live=r[4]),a[0]&32&&(s.autoplay=r[5]),a[0]&64&&(s.canRewindLive=r[6]),a[0]&128&&(s.showAds=r[7]),a[0]&256&&(s.adsSlotId=r[8]),a[0]&512&&(s.adsParams=r[9]),a[0]&1024&&(s.adsPreviewParam=r[10]),a[0]&2048&&(s.duration=r[11]),a[0]&4096&&(s.logoClickable=r[12]),a[0]&8192&&(s.logoHidden=r[13]),a[0]&32768&&(s.showNextPrevButtons=r[15]),a[0]&65536&&(s.nextButtonActive=r[16]),a[0]&131072&&(s.prevButtonActive=r[17]),a[0]&262144&&(s.endScreenVideoTitle=r[18]),a[0]&524288&&(s.endScreenVideoThumb=r[19]),a[0]&1048576&&(s.isOneVideoPlaylist=r[20]),a[0]&2097152&&(s.supportLink=r[21]),a[0]&4194304&&(s.shadowRootContainer=r[22]),a[0]&8388608&&(s.outerContainerRef=r[23]),a[0]&16777216&&(s.fullScreenTarget=r[24]),a[0]&33554432&&(s.showMiniTimer=r[25]),a[1]&8&&(s.playerStarted=r[34]),a[0]&67108864&&(s.playNextVideo=r[26]),a[0]&134217728&&(s.playPrevVideo=r[27]),a[0]&268435456&&(s.repeatPlaylist=r[28]),a[0]&536870912&&(s.seekToInteractive=r[29]),a[0]&1073741824&&(s.toggleGraph=r[30]),a[1]&1&&(s.playPrevChapter=r[31]),!t&&a[1]&4&&(t=!0,s.videoContainer=r[33],Oe(()=>t=!1)),e.$set(s)},i(r){n||(d(e.$$.fragment,r),n=!0)},o(r){m(e.$$.fragment,r),n=!1},d(r){M(e,r)}}}function y8(i){let e,t,n;function o(r){i[60](r)}let l={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&&(l.videoContainer=i[33]),e=new p_({props:l}),he.push(()=>Fe(e,"videoContainer",o)),{c(){A(e.$$.fragment)},m(r,a){E(e,r,a),n=!0},p(r,a){let s={};a[0]&1&&(s.store=r[0]),a[0]&4&&(s.thumbUrl=r[2]),a[0]&8&&(s.interactiveContainer=r[3]),a[0]&16&&(s.live=r[4]),a[0]&32&&(s.autoplay=r[5]),a[0]&64&&(s.canRewindLive=r[6]),a[0]&128&&(s.showAds=r[7]),a[0]&256&&(s.adsSlotId=r[8]),a[0]&512&&(s.adsParams=r[9]),a[0]&1024&&(s.adsPreviewParam=r[10]),a[0]&2048&&(s.duration=r[11]),a[0]&4096&&(s.logoClickable=r[12]),a[0]&8192&&(s.logoHidden=r[13]),a[0]&32768&&(s.showNextPrevButtons=r[15]),a[0]&65536&&(s.nextButtonActive=r[16]),a[0]&131072&&(s.prevButtonActive=r[17]),a[0]&262144&&(s.endScreenVideoTitle=r[18]),a[0]&524288&&(s.endScreenVideoThumb=r[19]),a[0]&1048576&&(s.isOneVideoPlaylist=r[20]),a[0]&2097152&&(s.supportLink=r[21]),a[0]&4194304&&(s.shadowRootContainer=r[22]),a[0]&8388608&&(s.outerContainerRef=r[23]),a[0]&16777216&&(s.fullScreenTarget=r[24]),a[0]&33554432&&(s.showMiniTimer=r[25]),a[1]&8&&(s.playerStarted=r[34]),a[0]&67108864&&(s.playNextVideo=r[26]),a[0]&134217728&&(s.playPrevVideo=r[27]),a[0]&268435456&&(s.repeatPlaylist=r[28]),a[0]&536870912&&(s.seekToInteractive=r[29]),a[0]&1073741824&&(s.toggleGraph=r[30]),a[1]&1&&(s.playPrevChapter=r[31]),!t&&a[1]&4&&(t=!0,s.videoContainer=r[33],Oe(()=>t=!1)),e.$set(s)},i(r){n||(d(e.$$.fragment,r),n=!0)},o(r){m(e.$$.fragment,r),n=!1},d(r){M(e,r)}}}function k8(i){let e,t,n,o,l=[y8,v8],r=[];function a(s,u){return s[14]?0:1}return t=a(i,[-1,-1,-1]),n=r[t]=l[t](i),{c(){e=I("div"),n.c(),c(e,"class","root svelte-6h4ol6")},m(s,u){v(s,e,u),r[t].m(e,null),o=!0},p(s,u){let f=t;t=a(s,u),t===f?r[t].p(s,u):(ce(),m(r[f],1,1,()=>{r[f]=null}),fe(),n=r[t],n?n.p(s,u):(n=r[t]=l[t](s),n.c()),d(n,1),n.m(e,null))},i(s){o||(d(n),o=!0)},o(s){m(n),o=!1},d(s){s&&b(e),r[t].d()}}}function w8(i,e,t){let n,{sources:o}=e,{store:l}=e,{microStoresRoot:r}=e,{videoConfig:a}=e,{uiConfig:s}=e,{title:u}=e,{thumbUrl:f}=e,{interactiveContainer:p}=e,{subtitles:g}=e,{live:y}=e,{preload:h}=e,{autoplay:C}=e,{volume:w=void 0}=e,{muted:F=void 0}=e,{fromTime:T}=e,{canRewindLive:k}=e,{showAds:P}=e,{adsSlotId:x=void 0}=e,{adsParams:W=void 0}=e,{adsPreviewParam:z=void 0}=e,{duration:se=void 0}=e,{logoClickable:de}=e,{logoHidden:L}=e,{isMobile:oe}=e,{showNextPrevButtons:re=!1}=e,{nextButtonActive:X=!1}=e,{prevButtonActive:Te=!1}=e,{endScreenVideoTitle:q=void 0}=e,{endScreenVideoThumb:O=void 0}=e,{isOneVideoPlaylist:K=!1}=e,{supportLink:le}=e,{shadowRootContainer:ee=void 0}=e,{outerContainerRef:ue=void 0}=e,{fullScreenTarget:ze=void 0}=e,{failoverHosts:Re=void 0}=e,{showMiniTimer:ke=!1}=e,{saveRate:Ve}=e,{playNextVideo:Qe=Wn.noop}=e,{playPrevVideo:tt=Wn.noop}=e,{repeatPlaylist:j=Wn.noop}=e,{seekToInteractive:ae=Wn.noop}=e,{toggleGraph:Ze=Wn.noop}=e,{playPrevChapter:_e=Wn.noop}=e,{volumeMultiplier:Ue}=e,{subscribers:st,stores:je}=r;Sf(s);let qe=Bt(),Xe=s.logoLink,Ye=l.ui.debugPanelVisible,Q=l.ui.playerSize,Be=l.state.isLive$;N(i,Be,we=>t(63,n=we));let Ie,$=null,be=!1;l.getAdmanWrapper().init({switchFromAdsToVideo:l.actions.internal.switchFromAdsToVideo,switchFromVideoToAds:l.actions.internal.switchFromVideoToAds,setMuted:l.actions.external.setMuted},l.ads,{isMobile:l.ui.isMobile,mobileUnmuteButtonVisible:l.ui.mobileUnmuteButtonVisible,vsid:l.vsid}),Df(l,je);let ot=(we=!1)=>{t(34,be=!0),we?l.actions.external.firstStart(P):l.actions.internal.firstStart(P)};function me(we){let bt=o||we;bt&&l.initVideo({container:Ie,sources:bt,failoverHosts:Re,subtitles:g,volumeMultiplier:Ue});let Et=Wn.safeStorage.get(Wr)==="true";Ye.set(Et),T>0&&l.actions.external.seekTime(T);let jt=oe?qe.volumeDefault:w??hl()??qe.volumeDefault,vt=F??Qf();if(l.actions.external.setVolume(jt),l.actions.external.setMuted(vt),l.getAdmanWrapper().setInitialVolume(vt?0:jt),qe.features.trafficSaving){let qt=Xf();qt&&l.actions.internal.setTrafficSavingEnabled(qt)}if(qe.features.saveRate&&Ve){let qt=ed();qt&&!n&&l.actions.internal.setPlaybackRate(qt)}let Nt=jf(l.videoId);Nt&&l.actions.internal.setQuality(Nt),l.ui.isAutoplay.set(C),C?ot():h&&qe.features.preload&&l.actions.internal.preload()}let _t=we=>{if(window.ResizeObserver){let bt,Et;$=new ResizeObserver((0,Wn.throttleFn)(jt=>{let vt=jt[0];if(vt){if(vt.contentBoxSize){let Nt=Array.isArray(vt.contentBoxSize)?vt.contentBoxSize[0]:vt.contentBoxSize;bt=Nt.inlineSize,Et=Nt.blockSize}else vt.contentRect&&(bt=vt.contentRect.width,Et=vt.contentRect.height);Q.set({width:bt,height:Et})}},300)),$.observe(we)}Q.set({width:we.clientWidth,height:we.clientHeight})};It(()=>{_t(Ie);let we=st.map(Et=>Et.init({store:l,microStores:je,config:a}));if(y?.status==="upcoming"){l.actions.internal.setLiveWaitingStart(!0);return}if(y?.status==="waiting"){l.actions.internal.setLiveWaitingRecover(!0);return}if((y?.status==="finished"||y?.status==="postlive")&&!Object.keys(o||[]).length){l.actions.internal.setLiveWaitingRecord(!0);return}return me(),()=>{$?.disconnect(),we.forEach(Et=>Et.unsubscribe()),l.destroy()}});function We(){be?l.actions.external.play():ot(!0)}function ut(){l.actions.external.pause()}function Tt(we){oe||l.actions.external.setMuted(we)}function At(we){oe||we>=0&&we<=1&&l.actions.external.setVolume(we)}function Lt(we){l.actions.internal.seekTime(we,__.SeekAction.UNKNOWN)}function et(we){l.actions.external.seekEpisodeStartTime(we)}function Pt(){l.actions.external.returnFocusToEpisodes()}function Dt(we){l.actions.external.setPlaybackRate(we)}function ci(we){l.actions.external.setAutoQualityLimits(we)}function lt(we){Ie=we,t(33,Ie)}function yt(we){Ie=we,t(33,Ie)}return i.$$set=we=>{"sources"in we&&t(39,o=we.sources),"store"in we&&t(0,l=we.store),"microStoresRoot"in we&&t(40,r=we.microStoresRoot),"videoConfig"in we&&t(41,a=we.videoConfig),"uiConfig"in we&&t(42,s=we.uiConfig),"title"in we&&t(1,u=we.title),"thumbUrl"in we&&t(2,f=we.thumbUrl),"interactiveContainer"in we&&t(3,p=we.interactiveContainer),"subtitles"in we&&t(43,g=we.subtitles),"live"in we&&t(4,y=we.live),"preload"in we&&t(44,h=we.preload),"autoplay"in we&&t(5,C=we.autoplay),"volume"in we&&t(45,w=we.volume),"muted"in we&&t(46,F=we.muted),"fromTime"in we&&t(47,T=we.fromTime),"canRewindLive"in we&&t(6,k=we.canRewindLive),"showAds"in we&&t(7,P=we.showAds),"adsSlotId"in we&&t(8,x=we.adsSlotId),"adsParams"in we&&t(9,W=we.adsParams),"adsPreviewParam"in we&&t(10,z=we.adsPreviewParam),"duration"in we&&t(11,se=we.duration),"logoClickable"in we&&t(12,de=we.logoClickable),"logoHidden"in we&&t(13,L=we.logoHidden),"isMobile"in we&&t(14,oe=we.isMobile),"showNextPrevButtons"in we&&t(15,re=we.showNextPrevButtons),"nextButtonActive"in we&&t(16,X=we.nextButtonActive),"prevButtonActive"in we&&t(17,Te=we.prevButtonActive),"endScreenVideoTitle"in we&&t(18,q=we.endScreenVideoTitle),"endScreenVideoThumb"in we&&t(19,O=we.endScreenVideoThumb),"isOneVideoPlaylist"in we&&t(20,K=we.isOneVideoPlaylist),"supportLink"in we&&t(21,le=we.supportLink),"shadowRootContainer"in we&&t(22,ee=we.shadowRootContainer),"outerContainerRef"in we&&t(23,ue=we.outerContainerRef),"fullScreenTarget"in we&&t(24,ze=we.fullScreenTarget),"failoverHosts"in we&&t(48,Re=we.failoverHosts),"showMiniTimer"in we&&t(25,ke=we.showMiniTimer),"saveRate"in we&&t(49,Ve=we.saveRate),"playNextVideo"in we&&t(26,Qe=we.playNextVideo),"playPrevVideo"in we&&t(27,tt=we.playPrevVideo),"repeatPlaylist"in we&&t(28,j=we.repeatPlaylist),"seekToInteractive"in we&&t(29,ae=we.seekToInteractive),"toggleGraph"in we&&t(30,Ze=we.toggleGraph),"playPrevChapter"in we&&t(31,_e=we.playPrevChapter),"volumeMultiplier"in we&&t(50,Ue=we.volumeMultiplier)},i.$$.update=()=>{i.$$.dirty[0]&16385&&l.ui.isMobile.set(oe)},[l,u,f,p,y,C,k,P,x,W,z,se,de,L,oe,re,X,Te,q,O,K,le,ee,ue,ze,ke,Qe,tt,j,ae,Ze,_e,Lt,Ie,be,qe,Xe,Be,ot,o,r,a,s,g,h,w,F,T,Re,Ve,Ue,me,We,ut,Tt,At,et,Pt,Dt,ci,lt,yt]}var ef=class extends B{constructor(e){super(),D(this,e,w8,k8,R,{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},b8,[-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]}},g_=ef;function C8(i){let e,t,n,o=i[2].default,l=Ee(o,i,i[1],null),r=[{xmlns:"http://www.w3.org/2000/svg"},{width:"57"},{height:"60"},{fill:"none"},{"aria-hidden":"true"},{"data-testid":"stub-icon"},{role:"img"},i[0]],a={};for(let s=0;s<r.length;s+=1)a=ne(a,r[s]);return{c(){e=V("svg"),l&&l.c(),t=V("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"),ye(e,a)},m(s,u){v(s,e,u),l&&l.m(e,null),_(e,t),n=!0},p(s,[u]){l&&l.p&&(!n||u&2)&&Ae(l,o,s,s[1],n?Me(o,s[1],u,null):Le(s[1]),null),ye(e,a=De(r,[{xmlns:"http://www.w3.org/2000/svg"},{width:"57"},{height:"60"},{fill:"none"},{"aria-hidden":"true"},{"data-testid":"stub-icon"},{role:"img"},u&1&&s[0]]))},i(s){n||(d(l,s),n=!0)},o(s){m(l,s),n=!1},d(s){s&&b(e),l&&l.d(s)}}}function S8(i,e,t){let{$$slots:n={},$$scope:o}=e;return i.$$set=l=>{t(0,e=ne(ne({},e),ve(l))),"$$scope"in l&&t(1,o=l.$$scope)},e=ve(e),[e,o,n]}var tf=class extends B{constructor(e){super(),D(this,e,S8,C8,R,{})}},h_=tf;function I8(i){let e,t;return e=new h_({props:{style:i[0]}}),{c(){A(e.$$.fragment)},m(n,o){E(e,n,o),t=!0},p(n,[o]){let l={};o&1&&(l.style=n[0]),e.$set(l)},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){m(e.$$.fragment,n),t=!1},d(n){M(e,n)}}}function T8(i,e,t){let n,{isWhite:o=!1}=e;return i.$$set=l=>{"isWhite"in l&&t(1,o=l.isWhite)},i.$$.update=()=>{i.$$.dirty&2&&t(0,n=o?"color: #fff;":"color: #909499;")},[n,o]}var nf=class extends B{constructor(e){super(),D(this,e,T8,I8,R,{isWhite:1})}},b_=nf;function P8(i){Ce(i,"svelte-1y9fytq",".playerStub.svelte-1y9fytq{width:100%;height:100%;background-color:#222;display:flex;justify-content:center;align-items:center;position:relative;background-position:center;background-size:cover;font-family:-apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif}.title.svelte-1y9fytq{position:absolute;left:0;top:0;width:100%;font-size:15px;color:#fff;box-sizing:border-box;padding:18px 20px 10px;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}")}function v_(i){let e,t;return{c(){e=I("div"),t=Ne(i[0]),c(e,"class","title svelte-1y9fytq")},m(n,o){v(n,e,o),_(e,t)},p(n,o){o&1&&Ge(t,n[0])},d(n){n&&b(e)}}}function y_(i){let e,t;return e=new b_({props:{isWhite:!!i[1]}}),{c(){A(e.$$.fragment)},m(n,o){E(e,n,o),t=!0},p(n,o){let l={};o&2&&(l.isWhite=!!n[1]),e.$set(l)},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){m(e.$$.fragment,n),t=!1},d(n){M(e,n)}}}function E8(i){let e,t,n,o,l=i[0]&&v_(i),r=(!i[0]||!i[1])&&y_(i);return{c(){e=I("div"),l&&l.c(),t=H(),r&&r.c(),c(e,"class","playerStub svelte-1y9fytq"),c(e,"style",n=i[1]?`background-image: url('${i[1]}')`:"")},m(a,s){v(a,e,s),l&&l.m(e,null),_(e,t),r&&r.m(e,null),o=!0},p(a,[s]){a[0]?l?l.p(a,s):(l=v_(a),l.c(),l.m(e,t)):l&&(l.d(1),l=null),!a[0]||!a[1]?r?(r.p(a,s),s&3&&d(r,1)):(r=y_(a),r.c(),d(r,1),r.m(e,null)):r&&(ce(),m(r,1,1,()=>{r=null}),fe()),(!o||s&2&&n!==(n=a[1]?`background-image: url('${a[1]}')`:""))&&c(e,"style",n)},i(a){o||(d(r),o=!0)},o(a){m(r),o=!1},d(a){a&&b(e),l&&l.d(),r&&r.d()}}}function M8(i,e,t){let{title:n}=e,{thumbUrl:o}=e;return i.$$set=l=>{"title"in l&&t(0,n=l.title),"thumbUrl"in l&&t(1,o=l.thumbUrl)},[n,o]}var of=class extends B{constructor(e){super(),D(this,e,M8,E8,R,{title:0,thumbUrl:1},P8)}},k_=of;var Fi=require("@vkontakte/videoplayer-shared"),SF=require("@vkontakte/videoplayer-core"),L_=require("@vkontakte/videoplayer-statistics");var w_=require("@vkontakte/videoplayer-shared"),Ms=class{constructor(){this.subscription=new w_.Subscription}isSupported(){return"mediaSession"in navigator}setMetaData({title:e,artist:t="",thumbUrl:n=""}){this.isSupported()&&(navigator.mediaSession.metadata=new MediaMetadata({title:e,artist:t,artwork:[{src:n,sizes:"96x96",type:"image/png"},{src:n,sizes:"128x128",type:"image/png"},{src:n,sizes:"192x192",type:"image/png"},{src:n,sizes:"256x256",type:"image/png"},{src:n,sizes:"384x384",type:"image/png"},{src:n,sizes:"512x512",type:"image/png"}]}))}updateActionHandlers(e){this.resetActionHandlers(),this.setActionHandlers(e)}resetActionHandlers(){let e=[["play",null],["pause",null],["stop",null],["nexttrack",null],["previoustrack",null],["seekto",t=>null],["seekbackward",t=>null],["seekforward",t=>null]];this.setActionHandlers(e)}setActionHandlers(e){if(this.isSupported())for(let[t,n]of e)try{navigator.mediaSession.setActionHandler?.(t,n)}catch{throw new Error(`The media session action "${t}" is not supported yet.`)}}attachToStore(e){!this.isSupported()||!e||this.subscription.add(e.state.positionExact$.subscribe(t=>{let n=Je(e.state.currentPlaybackRate$),o=Je(e.state.duration$);!isFinite(t)||!isFinite(o)||navigator.mediaSession.setPositionState?.({position:t,playbackRate:n,duration:o})}))}clearSubscriptions(){this.subscription.unsubscribe()}destroy(){this.resetActionHandlers(),this.clearSubscriptions()}};var Rr=require("@vkontakte/videoplayer-shared");function A8(i){let e,t,n,o,l,r=i[2].default,a=Ee(r,i,i[1],null),s=[{xmlns:"http://www.w3.org/2000/svg"},{width:"57"},{height:"56"},{fill:"none"},{"aria-label":"dummy-image"},{"data-testid":"pip-dummy-icon"},{role:"img"},i[0]],u={};for(let f=0;f<s.length;f+=1)u=ne(u,s[f]);return{c(){e=V("svg"),a&&a.c(),t=V("g"),n=V("path"),o=V("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"),ye(e,u)},m(f,p){v(f,e,p),a&&a.m(e,null),_(e,t),_(t,n),_(t,o),l=!0},p(f,[p]){a&&a.p&&(!l||p&2)&&Ae(a,r,f,f[1],l?Me(r,f[1],p,null):Le(f[1]),null),ye(e,u=De(s,[{xmlns:"http://www.w3.org/2000/svg"},{width:"57"},{height:"56"},{fill:"none"},{"aria-label":"dummy-image"},{"data-testid":"pip-dummy-icon"},{role:"img"},p&1&&f[0]]))},i(f){l||(d(a,f),l=!0)},o(f){m(a,f),l=!1},d(f){f&&b(e),a&&a.d(f)}}}function L8(i,e,t){let{$$slots:n={},$$scope:o}=e;return i.$$set=l=>{t(0,e=ne(ne({},e),ve(l))),"$$scope"in l&&t(1,o=l.$$scope)},e=ve(e),[e,o,n]}var rf=class extends B{constructor(e){super(),D(this,e,L8,A8,R,{})}},C_=rf;function V8(i){Ce(i,"svelte-1pbsod4",".player-pip-dummy.svelte-1pbsod4{width:100%;height:100%;background-color:#19191A;display:flex;flex-direction:column;justify-content:center;align-items:center;font-family:-apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif}.player-pip-dummy.is-pip-api.svelte-1pbsod4{position:relative}.dummy-image.svelte-1pbsod4 svg{transform:scale(1.07143)}.dummy-image.desktop.svelte-1pbsod4{transform:scale(1.07143) rotate(-90deg) rotateY(180deg)}.title.svelte-1pbsod4{font-size:16px;color:#fff;padding:18px 20px 10px;text-align:center}")}function R8(i){let e,t,n,o,l,r,a;return n=new C_({}),{c(){e=I("div"),t=I("div"),A(n.$$.fragment),o=H(),l=I("span"),r=Ne(i[0]),c(t,"class","dummy-image svelte-1pbsod4"),G(t,"desktop",!i[1]),c(l,"class","title svelte-1pbsod4"),c(e,"class","player-pip-dummy svelte-1pbsod4"),G(e,"is-pip-api",i[2])},m(s,u){v(s,e,u),_(e,t),E(n,t,null),_(e,o),_(e,l),_(l,r),a=!0},p(s,[u]){(!a||u&2)&&G(t,"desktop",!s[1]),(!a||u&1)&&Ge(r,s[0])},i(s){a||(d(n.$$.fragment,s),a=!0)},o(s){m(n.$$.fragment,s),a=!1},d(s){s&&b(e),M(n)}}}function B8(i,e,t){let n,o,l=nt(),r=!!l.webApi.pictureInPictureApi,a=l.interfaceLanguage$;N(i,a,f=>t(5,n=f));let s=l.ui.isMobile;N(i,s,f=>t(1,o=f));let u;return i.$$.update=()=>{i.$$.dirty&32&&t(0,u=n&&U("pip_dummy_title"))},[u,o,r,a,s,n]}var lf=class extends B{constructor(e){super(),D(this,e,B8,R8,R,{},V8)}},S_=lf;var D8=460,N8=280,Xr=class{constructor(){this.info={isActive$:new Rr.ValueSubject(!1),type:1}}isSupported(){let{isEmbed:e}=(0,Rr.detectEmbed)();return"documentPictureInPicture"in window&&!Rr.clientChecker.isYandex&&!e}isActive(){return this.isSupported()&&!!documentPictureInPicture.window}setPlayerDomElement(e,t){this.playerDomElement=e,this.playerParentShadowRoot=t}setContext(e){this.svelteContext=e}async request(){if(!this.isSupported()||!this.playerDomElement||!this.playerParentShadowRoot)return;this.pipWindow=await documentPictureInPicture.requestWindow({width:D8,height:N8,copyStyleSheets:!0}),this.pipWindow.document.body.style.margin="0";let e=[...this.playerParentShadowRoot.styleSheets].map(l=>[...l.cssRules].map(r=>r.cssText).join(" ")).filter(Boolean).join(`
53
- `),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 S_({target:this.playerParentShadowRoot,context:this.svelteContext}),this.pipWindow?.document.body.append(n),this.info.isActive$.next(!0),this.pipWindow?.addEventListener("unload",l=>{!this.playerDomElement||!this.playerParentShadowRoot||!this.playerDummyElement||(this.playerDummyElement.$destroy(),this.playerParentShadowRoot.append(this.playerDomElement),this.info.isActive$.next(!1))})}async remove(){return new Promise(e=>{documentPictureInPicture.window?.close(),e()})}async dispose(){await this.remove()}createStretchedContainer(){let e=document.createElement("div");return e.style.width="100%",e.style.height="100%",e}};function I_(i){return i instanceof Xr}var As=class{static getLatestSupportedVersion(){let e=new Ho,t=new Xr;if(t.isSupported())return t;if(e.isSupported())return e}};function Ls(i,e){let t=new Set([...Object.keys(i),...Object.keys(e)]),n={};for(let o of t)n[o]=e[o]??i[o]??void 0;return n}var T_="Inner error. Unexpectedly root annotation container null reference exception",P_="Annotation with such name already exists",E_="Annotation with such name does not exist";var Br=class extends Error{constructor(e){super(e),this.name="AnnotationError"}};var Dr=require("@vkontakte/videoplayer-shared"),O8="1",F8=100,Vs=class{constructor(){this.annotations=new Map;this.subscriptions=new Dr.Subscription}init(e){this.rootAnnotationsContainer=e;let t=(0,Dr.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"},F8);this.subscriptions.add((0,Dr.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){if(!this.rootAnnotationsContainer)throw new Br(T_);if(this.annotations.has(e))throw new Br(P_);t.style.zIndex=t.style.zIndex??O8,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 Br(E_);return t}remove(e){let t=this.get(e);this.annotations.delete(e)&&t.remove()}clear(){for(let e in this.annotations.keys())this.remove(e)}destroy(){this.annotations.clear(),this.subscriptions.unsubscribe(),this.mutationObserver.disconnect(),this.rootAnnotationsContainer=null}isElementExceedsBoundaries(e,t,n){let o=e.offsetTop,l=e.offsetLeft,r=e.offsetWidth,a=e.offsetHeight;return o<0||l<0||l+r>t||o+a>n}registryRootContainer(e){}addLayer(e){return document.createElement("div")}getLayer(e){}removeLayer(e){}clearLayer(e){}detach(){}reattach(){}};var Nr=require("@vkontakte/videoplayer-shared"),eo=class{init({store:e,microStores:t,config:n}){return(0,Nr.assertNonNullable)(e),(0,Nr.assertNonNullable)(t),(0,Nr.assertNonNullable)(n),this.subscription=new Nr.Subscription,this.subscription}};var Jr=class extends eo{constructor(){super(...arguments);this.stateName="fakeIsPlaying$";this.state$={...He(null),toggle:()=>this.state$.update(t=>!t)}}init(t){let n=super.init(t),{isInteractiveExpectation$:o}=t.store.state;return n.add(o.subscribe(l=>{this.state$.set(l?!0:null)})),n}};var $r=class extends eo{constructor(){super(...arguments);this.stateName="interactiveControlsOpacity$";this.state$={...He(null),toggle:()=>this.state$.update(t=>!t)}}init(t){let n=super.init(t),{microStores:o,store:l}=t,{fakeIsPlaying$:r}=o,{isInteractiveExpectation$:a,isPlaying$:s}=l.state,{controlsVisible:u,isMobile:f}=l.ui,p=Je(f),g=()=>p&&Je(u);return n.add(u.subscribe(y=>{if(!p)return;let h=Je(r);Je(s)?this.state$.set(y):h!==null&&this.state$.set(!h||y)})),n.add(s.subscribe(y=>{this.state$.set(!y||g())})),n.add(r.subscribe(y=>{if(y===null)return;let h=Je(a);if(g()){this.state$.set(!0);return}h&&this.state$.set(!y)})),n}};var el=class extends eo{constructor(){super(...arguments);this.stateName="seekToInteractiveDisabledTooltip$";this.state$=He("tooltip_chapter_without_interactive")}init(t){let n=super.init(t),{store:o}=t;return n.add(o.state.interactiveEpisodes$.subscribe(l=>{l.length&&(l.every(r=>r.completed)?this.state$.set("tooltip_interactive_of_chapter_completed"):this.state$.set("tooltip_disabled_when_interactive"))})),n}};var M_=require("@vkontakte/videoplayer-shared"),sf=He(!1),Rs=null,tl=class extends eo{constructor(){super(...arguments);this.stateName="showInteractiveTimeIndicatorTooltip$";this.state$={...sf,set:(t,n=!1)=>{t!==Je(sf)&&(this.clearTimeout(),sf.set(t),!t&&Rs&&(Rs=!1),t&&n&&(this.timeout=setTimeout(()=>{this.state$.set(!1)},3e3)))},clearTimeout:()=>this.clearTimeout()}}init(t){let n=super.init(t),{store:o,config:l}=t,{isInteractiveTime$:r,isPlaying$:a}=o.state,s=o.ui.controlsVisible,{interactiveTimeIndicator:u}=o.ui.controls;n.add(s.subscribe(p=>{Je(r)&&p&&this.state$.set(!1)}));let f=l?.interactiveData||{tooltipHelpHintActive:!1};return n.add((0,M_.combine)({isPlaying$:a,isInteractiveTime$:r,interactiveTimeIndicator:u}).subscribe(({isPlaying$:p,isInteractiveTime$:g,interactiveTimeIndicator:y})=>{if(!(!p||!y?.isDisplayed)){if(!g)return this.state$.set(!1);f.tooltipHelpHintActive&&Rs===null&&(Rs=!0,f.tooltipHelpHintActive=!1,this.state$.set(!0),o.callbacks?.onInteractiveTimeIndicatorHintDeactivated?.())}})),n}clearTimeout(){window.clearTimeout(this.timeout)}};var A_=()=>[Jr,$r,el,tl].reduce(({subscribers:i,stores:e},t)=>{let n=new t;return{subscribers:[...i,n],stores:{...e,[n.stateName]:n.state$}}},{subscribers:[],stores:{}});var q8={preload:!0,autoplay:!1,repeat:!1,fromTime:0,canRewindLive:!0,showAds:!1,interfaceLanguage:Fi.InterfaceLanguage.RU,isCyrillicRelatedInterface:!0,logoClickable:!1,logoHidden:!1,isMobile:(0,Fi.isMobile)(),isMediaSessionEnabled:!0,isPictureInPictureEnabled:!0,isAudioDisabled:!1,callbacks:{uiInfo:{}},tuningConfig:{configName:[]},saveRate:!0,volumeMultiplier:1},Bs=class extends HTMLElement{constructor(){super();this.currentPlayingVideoIndex=0;this.needToRepeatPlaylist=!1;this.videoConfig=void 0;this.pictureInPictureApi=void 0;this.mediaSessionApi=void 0;this.unsubscribePlayerPhaseSubscription=void 0;this.annotationsApi=void 0;this.prevIsid=void 0;this.isInited=!1;this.createOneStat=(t,n={})=>{let{albumId:o,statPlace:l,statUserSalt:r,statTrackCode:a,refreshStatAuthToken:s,autoplay:u,isMobile:f,refDomain:p,deviceId:g,interactiveData:y}=Ls(this.videoConfig,n),h=y?.projectInfo?.pid,{unitedVideoId:C,isClip:w=!1}=t;if(this.uiConfig.features.statistics&&C)return new L_.OneStat({movieId:C,albumId:o,place:l,trackCode:a,autoplay:(u&&!this.interactiveController)??!1,mobile:f,clip:w,refDomain:p,deviceId:g,...h&&!this.isInited&&{projectId:Number(h)}},{refreshAuthToken:s,userSalt:r,config:this.statisticsConfig,...this.interactiveController&&{useIsid:!0,isid:this.prevIsid}})};this.logger=new Fi.Logger,this.log=this.logger.createComponentLog("VKVideoPlayer"),this.subscription=new Fi.Subscription,this.graphMadePause=!1,window?.videoPlayerConfig?.debugLogs&&this.subscription.add(this.logger.log$.subscribe(t=>{console.log("%c player web component ","background:#77dd77;",`${t.component}`,t.message)}))}connectedCallback(){if(this.isInited)return;this.initPlayerRootContainers();let t=this.getAttribute("stub-title")??void 0,n=this.getAttribute("stub-thumb-url")??void 0;this.svelteStubComponent=new k_({target:this.playerContainer,props:{title:t,thumbUrl:n}})}disconnectedCallback(){this.annotationsApi?.destroy(),this.mediaSessionApi?.destroy(),this.svelteRootComponent?.$destroy(),this.svelteStubComponent?.$destroy(),this.subscription.unsubscribe(),this.unsubscribePlayerPhaseSubscription?.(),this.interactiveController?.destroy()}initPlayerRootContainers(){this.rootContainer=document.createElement("div"),this.rootContainer.style.position="relative",this.rootContainer.className="root-container",this.rootContainer.style.width="100%",this.rootContainer.style.height="100%",this.shadowRootContainer=document.createElement("div"),this.shadowRootContainer.style.position="absolute",this.shadowRootContainer.className="shadow-root-container",this.shadowRootContainer.style.width="100%",this.shadowRootContainer.style.height="100%",this._shadowRoot=this.shadowRootContainer.attachShadow({mode:"open"}),this.playerContainer=document.createElement("div"),this.playerContainer.style.all="initial",this.playerContainer.style.display="block",this.playerContainer.style.contain="strict",this.playerContainer.style.width="100%",this.playerContainer.style.height="100%",this._shadowRoot.append(this.playerContainer),this.rootContainer.append(this.shadowRootContainer),this.append(this.rootContainer)}needToShowNextPrevButtons(){return this.videoConfig?this.videoConfig.videos.length>1:!1}isNextButtonActive(){return this.videoConfig?this.needToShowNextPrevButtons()&&(this.currentPlayingVideoIndex<this.videoConfig.videos.length-1||this.needToRepeatPlaylist):!1}isPrevButtonActive(){return this.videoConfig?this.needToShowNextPrevButtons()&&(this.currentPlayingVideoIndex>0||this.needToRepeatPlaylist):!1}isControlDisabled(t){return this.store?.ui.controls.disabledControls$?.includes(t)||!1}getNextVideoInfo(){if(!this.videoConfig)return{nextVideoTitle:void 0,nextVideoThumb:void 0};let t=this.videoConfig.videos[this.currentPlayingVideoIndex+1]||{};return{nextVideoTitle:t.title,nextVideoThumb:t.thumbUrl}}createPlayer(t,n={},o){if(!this.videoConfig)return;let{albumId:l,statPlace:r,statAuthToken:a,preload:s,autoplay:u,volume:f,muted:p,fromTime:g,canRewindLive:y,supportLink:h,showAds:C,adsSlotId:w,adsParams:F={},adsPreviewParam:T,interfaceLanguage:k,isCyrillicRelatedInterface:P,logoClickable:x,logoHidden:W,isMobile:z,isAudioDisabled:se,isLiveCatchUpMode:de,fullScreenTarget:L,failoverHosts:oe,canDownload:re,callbacks:X,interactiveData:Te,showThumbTimer:q,additionalButtons:O=[],additionalSettingsMenuItems:K=[],additionalContextMenuItems:le=[],repeat:ee,saveRate:ue,volumeMultiplier:ze}=Ls(this.videoConfig,n),{sources:Re,title:ke,thumbUrl:Ve,unitedVideoId:Qe,isClip:tt=!1,duration:j,adsParams:ae={},videoEpisodes:Ze,previewThumbsData:_e,subtitles:Ue,live:st}=t,je={...F,...ae},qe=this.getNextVideoInfo(),Xe={sources:Re,title:ke,thumbUrl:Ve,subtitles:Ue,unitedVideoId:Qe,isClip:tt,live:st,albumId:l,statPlace:r,autoplay:u,muted:p,volume:f,fromTime:g,canRewindLive:y,showAds:C,adsSlotId:w,adsParams:je,adsPreviewParam:T,duration:j,logoClickable:x,logoHidden:W,isMobile:z,repeat:ee,showNextPrevButtons:this.needToShowNextPrevButtons(),nextButtonActive:this.isNextButtonActive(),prevButtonActive:this.isPrevButtonActive(),endScreenVideoTitle:qe.nextVideoTitle,endScreenVideoThumb:qe.nextVideoThumb,isOneVideoPlaylist:this.isOneVideoPlaylist()},Ye={pictureInPictureApi:this.pictureInPictureApi,annotationsApi:this.annotationsApi};this.log({message:`create player, props: ${JSON.stringify(Xe)}`});let Q=this.interactiveController?.state.statistics$.getValue(),Be=Q?.oneStat||this.createOneStat(t,n);Be&&(this.statistics=new _s(Be,Q?.statSubscription)),this.uiConfig.features.sentry&&this.uiConfig.sentry.dsn&&new qo(this.uiConfig.sentry,{version:No,env:gl},{movieId:Qe,albumId:l,place:r,autoplay:(u&&!this.interactiveController)??!1,mobile:z,clip:tt}),this.interactiveController&&(this.prevIsid??=this.statistics?.oneStat.isid$.getValue()),this.sentry={...this.sentry,...qo.getInstance()};let $=!!Te,be=[],ot="tooltip_interactive_go_back_disabled_first";if($&&this.interactiveController){let We=this.interactiveController.state.isInitialChapter$.getValue(),ut=this.interactiveController.getHistoryState();We&&be.push("REPLAY_BUTTON"),this.interactiveController.getIsSeekable().getValue()||be.push("SEEK_TO_INTERACTIVE_BUTTON"),ut.hasPrevChapter$.getValue()||(be.push("PLAY_PREV_CHAPTER_BUTTON"),We||(ut.isGoBackLimited$.getValue()?ot="tooltip_interactive_go_back_disabled_limit":ot="tooltip_interactive_go_back_disabled"))}let me=()=>{this.isInited=!1,this.prevIsid=void 0;let We=o?.info.isEnded$.getValue()&&this.interactiveController?.state.isEndChapter$.getValue();X.onReplayInteractiveVideo&&!We?X.onReplayInteractiveVideo():this.replayInteractiveVideo()};this.store=Ym({player:o,interfaceLanguage:k,isCyrillicRelatedInterface:P,videoId:Qe,isClip:tt,isLiveCatchUpMode:de,isAudioDisabled:se,statAuthToken:a,callbacks:X,webApi:Ye,videoEpisodes:Ze,previewThumbsData:_e,canDownload:re,uiConfig:this.uiConfig,coreConfig:this.coreConfig,disabledControls:be,isInteractive:$,saveRate:ue,interactiveRanges$:this.interactiveController?.state.interactiveRanges$,isInteractiveTime$:this.interactiveController?.state.isInteractiveTime$,replayInteractive:me,playPrevChapterDisabledTooltip:ot,hasInteractiveBranches:!!this.interactiveController?.getChapterBranches()?.length,additionalButtons:this.uiConfig.features.additionalButtons?O:[],additionalSettingsMenuItems:K??[],additionalContextMenuItems:le??[],looped:ee&&this.videoConfig.videos.length===1,statistics:this.statistics});let{stores:_t}=this.microStoresRoot=A_();this.subscription.add(this.store.state.currentFormat$.subscribe(We=>X?.onCurrentFormatChanged?.(We))),this.subscription.add(_t.interactiveControlsOpacity$.subscribe(We=>{We!==null&&this?.interactiveController?.setDisabledControls(We)})),this.subscription.add(this.store.state.throughputEstimation$.subscribe(We=>X?.onThroughputEstimationChanged?.(We))),this.subscription.add(this.store.state.trafficSavingEnabled$.subscribe(We=>X?.onTrafficSavingEnabledChanged?.(We))),this.subscription.add(this.store.state.currentPlaybackRate$.subscribe(We=>X?.onCurrentPlaybackRateChanged?.(We))),this.subscription.add(this.store.state.volume$.subscribe(We=>X?.onVolumeChange?.(We))),this.subscription.add(this.store.state.muted$.subscribe(We=>We?X?.onMute?.():X?.onUnmute?.())),this.subscription.add(this.store.state.videoBitrate$.subscribe(We=>X?.onVideoBitrateChanged?.(We))),this.subscription.add(this.store.state.isInteractiveTime$.subscribe(We=>{let ut=this.store?.ui.controls.disabledControls$;ut&&(We&&!ut.includes(Kr)&&ut.add(Kr),We||ut.remove(Kr))})),this.subscription.add(this.store.ui.isFullscreen.subscribe(async We=>{if(!Fi.clientChecker.isSamsungBrowser||!We||!this.interactiveController)return;document.fullscreenElement===this.shadowRootContainer&&await this.replayInteractiveChapter(this.videoConfig?.callbacks.onExternalFullscreenExit)})),this.statistics&&this.subscription.add(this.statistics.oneStat.vsid$.subscribe(We=>X?.onVSIDChanged?.(We))),this.initMediaSession(),this.svelteRootComponent=new g_({target:this.playerContainer,props:{interactiveContainer:this.interactiveContainer,sources:Re,store:this.store,microStoresRoot:this.microStoresRoot,videoConfig:this.videoConfig,uiConfig:this.uiConfig,title:ke,thumbUrl:Ve,subtitles:Ue,live:st,preload:s,autoplay:u,muted:p,volume:f,fromTime:g,canRewindLive:y,supportLink:h,showAds:C,adsSlotId:w,adsParams:je,adsPreviewParam:T,duration:j,logoClickable:x,logoHidden:W,isMobile:z,failoverHosts:oe,fullScreenTarget:L,saveRate:ue,shadowRootContainer:this.shadowRootContainer,showMiniTimer:q,outerContainerRef:this.rootContainer,showNextPrevButtons:this.needToShowNextPrevButtons(),nextButtonActive:this.isNextButtonActive(),prevButtonActive:this.isPrevButtonActive(),endScreenVideoTitle:qe.nextVideoTitle,endScreenVideoThumb:qe.nextVideoThumb,isOneVideoPlaylist:this.isOneVideoPlaylist(),playNextVideo:()=>this.playNextVideo(),playPrevVideo:()=>this.playPrevVideo(),repeatPlaylist:()=>this.repeatPlaylist(),playPrevChapter:()=>this.playPrevChapter(),seekToInteractive:()=>this.seekToInteractive(),toggleGraph:()=>this.toggleGraph(),volumeMultiplier:ze}}),this.addPlayerInfoSubscriptions(),this.isInited||(this.isInited=!0,this.videoConfig?.callbacks?.onInited?.())}addPlayerInfoSubscriptions(){let t=this.store;if(!t)return;let n=this.videoConfig?.callbacks;n&&this.subscription.add(t.playerPhase.subscribe(l=>n.onPlayerPhaseChanged?.(l))).add(t.state.playbackState$.subscribe(l=>n.onPlaybackStateChanged?.(l))).add(t.state.isLive$.subscribe(l=>n.onIsLiveChanged?.(l))).add(t.state.isActiveLive$.subscribe(l=>n.onIsActiveLiveChanged?.(l))).add(t.state.isAudioAvailable$.subscribe(l=>n.onIsAudioAvailableChanged?.(l))).add(t.state.currentQuality$.subscribe(l=>n.onCurrentQualityChanged?.(l))).add(t.state.availableQualities$.subscribe(l=>n.onAvailableQualitiesChanged?.(l.map(({value:r})=>r).filter(r=>r!=="auto")))).add(t.state.availableAudioStreams$.subscribe(l=>{l.length>1&&n.onAudioLanguagesAvailable&&n.onAudioLanguagesAvailable()})).add(t.ui.isPictureInPictureActive$.subscribe(l=>l?n.onPiPEnter?.():n.onPiPExit?.()));let o=n?.uiInfo;o&&this.subscription.add(t.ui.controlsVisible.subscribe(l=>o.onControlsVisibleChanged?.(l))).add(t.ui.isMobile.subscribe(l=>o.onIsMobileChanged?.(l))).add(t.ui.playerSize.subscribe(l=>o.onPlayerSizeChanged?.(l))).add(t.ui.controls.prevButton.subscribe(l=>o.onPrevButtonChanged?.(l))).add(t.ui.controls.playButton.subscribe(l=>o.onPlayButtonChanged?.(l))).add(t.ui.controls.replayButton.subscribe(l=>o.onReplayButtonChanged?.(l))).add(t.ui.controls.nextButton.subscribe(l=>o.onNextButtonChanged?.(l))).add(t.ui.controls.playPrevChapterButton.subscribe(l=>o.onPlayPrevChapterChanged?.(l))).add(t.ui.controls.seekToInteractiveButton.subscribe(l=>o.onSeekToInteractiveButtonChanged?.(l))).add(t.ui.controls.interactiveGraphButton.subscribe(l=>o.onGraphButtonChanged?.(l))).add(t.ui.controls.liveButton.subscribe(l=>o.onLiveButtonChanged?.(l))).add(t.ui.controls.time.subscribe(l=>o.onTimeUpdateChanged?.(l))).add(t.ui.controls.episodes.subscribe(l=>o.onEpisodesChanged?.(l))).add(t.ui.controls.subtitles.subscribe(l=>o.onSubtitlesChanged?.(l))).add(t.ui.controls.settings.subscribe(l=>o.onSettingsChanged?.(l))).add(t.ui.controls.fullscreen.subscribe(l=>o.onFullscreenChanged?.(l))).add(t.ui.controls.chromecast.subscribe(l=>o.onChromecastChanged?.(l))).add(t.ui.controls.pip.subscribe(l=>o.onPipChanged?.(l))).add(t.ui.controls.vkLogo.subscribe(l=>o.onVkLogoChanged?.(l))).add(t.ui.controls.interactiveTimeIndicator.subscribe(l=>o.onInteractiveTimeIndicatorChanged?.(l))).add(t.ui.controls.timeline.subscribe(l=>o.onTimelineChanged?.(l)))}playNextVideo(){if(!this.videoConfig)return;let t=!0;if(this.videoConfig.callbacks?.onNextVideoClick)try{t=this.videoConfig.callbacks.onNextVideoClick()}catch{this.log({message:"onNextVideoClick callback failed to execute"})}t&&(this.currentPlayingVideoIndex++,this.currentPlayingVideoIndex>=this.videoConfig.videos.length&&(this.currentPlayingVideoIndex=0),this.log({message:`play next video, index: ${this.currentPlayingVideoIndex}`}),this.createPlayerWithCurrentVideo())}playPrevVideo(){if(!this.videoConfig)return;let t=!0;if(this.videoConfig.callbacks?.onPrevVideoClick)try{t=this.videoConfig.callbacks.onPrevVideoClick()}catch{this.log({message:"onPrevVideoClick callback failed to execute"})}t&&(this.currentPlayingVideoIndex--,this.currentPlayingVideoIndex<0&&(this.currentPlayingVideoIndex=this.videoConfig.videos.length-1),this.log({message:`play prev video, index: ${this.currentPlayingVideoIndex}`}),this.createPlayerWithCurrentVideo())}repeatPlaylist(){this.currentPlayingVideoIndex=0,this.log({message:"repeat playlist"}),this.createPlayerWithCurrentVideo()}createPlayerWithCurrentVideo(t,n=!0){if(!this.videoConfig)return;let o=this.videoConfig.videos[this.currentPlayingVideoIndex];if(!o){this.log({message:"no next video"});return}this.isInited&&(0,Fi.isNonNullable)(o.unitedVideoId)&&this.store.actions.internal.nextMovie(o.unitedVideoId),this.svelteRootComponent?.$destroy(),this.createPlayer(o,{autoplay:n,fromTime:0},t)}playPrevChapter(){this.interactiveController?.playPrevChapter()}seekToInteractive(){let t=this.interactiveController?.getNextInteractiveStartTime();typeof t=="number"&&this.seekTime(t/1e3)}toggleGraph(){if(!this.isInited)return;let t=this.store,{isEnded$:n,playbackState$:o,graphIsOpened$:l}=t.state,{disabledControls$:r}=t.ui.controls,a=Je(n),s=Je(o);Je(l)?(l.set(!1),this.interactiveController?.toggleGraphView(!1),r.remove(Gs),!a&&this.graphMadePause&&this.play()):(this.graphMadePause=s==="playing",l.set(!0),this.interactiveController?.toggleGraphView(!0),r.add(Gs),!a&&this.graphMadePause&&this.pause())}async initInteractives(){if(this.videoConfig?.interactiveData)try{let{Interactives:t,EVENT_NAMES:n,CustomError:o}=await import("@vkontakte/videoplayer-interactive");this.interactiveContainer=document.createElement("div"),this.interactiveContainer.classList.add("interactiveContainer");let l=this.store?.interfaceLanguage$,r=l?Je(l):this.videoConfig.interfaceLanguage,{projectInfo:a,initChapterId:s,historyApi:u,videoLoader:f}=this.videoConfig.interactiveData;this.interactiveController=new t({parentElement:this.interactiveContainer,fullscreenTargetElement:this.playerContainer,lang:r,graph:this.uiConfig.features.interactiveGraph,projectInfo:a,initChapterId:s,historyApi:u,vkVideoLoader:f,lastFrame:this.uiConfig.features.interactiveLastFrame,permanentTextControls:this.uiConfig.features.interactiveTextPermanent,initSeamless:!0,config:this.uiConfig.interactive,coreConfig:this.coreConfig,createOneStat:this.createOneStat});let{isInteractiveExpectation$:p,isSeekable$:g}=this.interactiveController.state;this.uiConfig.features.seekToInteractive&&this.subscription.add(g.subscribe(h=>{if(!this.isInited)return;let C=this.store;h?C.ui.controls.disabledControls$.remove("SEEK_TO_INTERACTIVE_BUTTON"):C.ui.controls.disabledControls$.add("SEEK_TO_INTERACTIVE_BUTTON")})),this.subscription.add(p.subscribe(h=>{this.store&&this.store.state.isInteractiveExpectation$.set(h)}));let y=!0;if(this.interactiveController.on(n.playerChanged,h=>{if(!this.videoConfig)return;this.videoConfig.videos[this.currentPlayingVideoIndex]={...h.config,title:a?.title||h.config.title};let C=y?this.videoConfig.autoplay:!0;this.createPlayerWithCurrentVideo(h.player,C),y&&(y=!1)}),this.interactiveController.on(n.interactives,({type:h,actionType:C})=>{if(!this.store)return;let w=p.getValue();if(h==="action-choice"&&C==="setRandomBranch"&&(this.store.state.graphIsOpened$.set(!1),this.store.ui.controls.disabledControls$.remove(_l)),h==="action-choice-canceled"){let F=Je(this.store.state.isPlaying$)||w;if(this.videoConfig?.isMobile&&F){this.store.ui.interactiveHideMobileControls.set(!0);return}this.videoConfig?.callbacks.onDisabledInteractiveClick?.()}}),await this.interactiveController.setManifest(this.videoConfig.interactiveData.manifest),this.videoConfig?.callbacks?.onInteractiveHistoryChanged){let h=this.interactiveController.getHistoryState();this.subscription.add(h.history$.subscribe(C=>{C.length&&this.videoConfig?.callbacks?.onInteractiveHistoryChanged?.(C)}))}this.uiConfig.features.interactiveTimeIndicator&&this.subscription.add(this.interactiveController.events.noInteraction$.subscribe(()=>{this.microStoresRoot?.stores.showInteractiveTimeIndicatorTooltip$.set(!0,!0),this.videoConfig?.callbacks.onInteractiveTimeIndicatorClick?.()})),this.interactiveController.on(n.errors,h=>{this.log({message:h.toString()})})}catch(t){this.log({message:t.message})}}initPlayer(t,n={}){if(!Array.isArray(t.videos)||t.videos.length===0&&!t.interactiveData)throw new Error("empty videos");this.videoConfig=Ls(q8,(0,Fi.cloneDeepWith)(t,o=>o instanceof HTMLElement?o:void 0)),this.uiConfig=Cf(n.ui??{}),this.coreConfig=n.core??{configName:[]},this.statisticsConfig=n.statistics??{},this.sentry={config:this.uiConfig.sentry??{}},(0,Fi.isNonNullable)(this.videoConfig.isMediaSessionEnabled)&&(this.uiConfig.features.mediaSession=this.uiConfig.features.mediaSession??this.videoConfig.isMediaSessionEnabled??!0),(0,Fi.isNonNullable)(this.videoConfig.isPictureInPictureEnabled)&&(this.uiConfig.features.pip=this.uiConfig.features.pip??this.videoConfig.isPictureInPictureEnabled??!0,this.uiConfig.features.dpip=this.uiConfig.features.dpip??this.videoConfig.isPictureInPictureEnabled??!0),this.videoConfig.isMobile=this.uiConfig.isMobile??this.videoConfig.isMobile,this.videoConfig.autoplay&&=this.uiConfig.features.autoplay,this.videoConfig.showAds=this.uiConfig.ads.enable??this.videoConfig.showAds,this.videoConfig.adsSlotId=this.uiConfig.ads.slot??this.videoConfig.adsSlotId,this.videoConfig.adsPreviewParam=this.uiConfig.ads.preview??this.videoConfig.adsPreviewParam,this.videoConfig.logoHidden=!(this.uiConfig.showLogo??!this.videoConfig.logoHidden),this.videoConfig.canRewindLive&&=this.uiConfig.features.liveRewind,this.videoConfig.supportLink=this.videoConfig.supportLink??this.uiConfig.supportLink,this.currentPlayingVideoIndex=0,this.needToRepeatPlaylist=this.videoConfig.repeat,this.uiConfig.features.pip&&(this.uiConfig.features.dpip?this.pictureInPictureApi=As.getLatestSupportedVersion():this.pictureInPictureApi=new Ho),this.mediaSessionApi=this.uiConfig.features.mediaSession?new Ms:void 0,this.annotationsApi=this.uiConfig.features.annotations?new Vs:void 0,this.annotationsApi&&!this.uiConfig.features.annotationsInside&&this.annotationsApi.init(this.rootContainer),this.svelteStubComponent?.$destroy(),this.svelteRootComponent?.$destroy(),this.isInited=!1,this.prevIsid=void 0,this.interactiveController&&(this.interactiveController.destroy(),this.interactiveController=void 0),t.interactiveData?this.initInteractives():this.createPlayer(t.videos[0]),I_(this.pictureInPictureApi)&&this.pictureInPictureApi.setPlayerDomElement(this.playerContainer,this._shadowRoot)}isOneVideoPlaylist(){return this.videoConfig?this.videoConfig.videos.length===1:!1}updateNextVideos(t){if(!this.videoConfig)return;this.log({message:`update next videos, videos: ${JSON.stringify(t)}`}),this.videoConfig.videos.splice(this.currentPlayingVideoIndex+1),this.videoConfig.videos.push(...t);let n=this.getNextVideoInfo();this.svelteRootComponent?.$set({showNextPrevButtons:this.needToShowNextPrevButtons(),nextButtonActive:this.isNextButtonActive(),prevButtonActive:this.isPrevButtonActive(),endScreenVideoTitle:n.nextVideoTitle,endScreenVideoThumb:n.nextVideoThumb,isOneVideoPlaylist:this.isOneVideoPlaylist()})}initMediaSession(){this.mediaSessionApi&&(this.unsubscribePlayerPhaseSubscription?.(),this.mediaSessionApi.clearSubscriptions(),this.unsubscribePlayerPhaseSubscription=this.store?.playerPhase.subscribe(t=>{t==="video"?this.setupMediaSessionForVideo():t==="ads"&&this.setupMediaSessionForAds()}))}setupMediaSessionForVideo(){if(!(!this.videoConfig||!this.mediaSessionApi))try{let{title:t,thumbUrl:n}={...this.videoConfig.videos[this.currentPlayingVideoIndex]},o=[["play",()=>this.play()],["pause",()=>this.pause()],["seekto",l=>this.seekTime(l.seekTime)]];this.videoConfig.videos.length>1&&(this.currentPlayingVideoIndex<this.videoConfig.videos.length-1&&o.push(["nexttrack",()=>this.playNextVideo()]),this.currentPlayingVideoIndex>0&&o.push(["previoustrack",()=>this.playPrevVideo()])),this.mediaSessionApi.setMetaData({title:t,thumbUrl:n}),this.mediaSessionApi.updateActionHandlers(o),this.mediaSessionApi.attachToStore(this.store)}catch(t){this.log({message:t.message})}}setupMediaSessionForAds(){if(!(!this.videoConfig||!this.mediaSessionApi))try{let t="\u0420\u0435\u043A\u043B\u0430\u043C\u0430",n=[["play",()=>this.play()],["pause",()=>this.pause()]];this.mediaSessionApi.setMetaData({title:t}),this.mediaSessionApi.updateActionHandlers(n),this.mediaSessionApi.attachToStore(this.store)}catch(t){this.log({message:t.message})}}play(){this.isControlDisabled("PLAY_BUTTON")||this.store?.playerPhase.is("LiveWaitingStart")||this.store?.playerPhase.is("LiveWaitingRecover")||this.store?.playerPhase.is("LiveWaitingRecord")||(this.log({message:"play"}),this.svelteRootComponent?.play())}pause(){this.log({message:"pause"}),this.svelteRootComponent?.pause()}stop(){if(!this.videoConfig)return;this.log({message:"stop"}),this.svelteStubComponent?.$destroy(),this.mediaSessionApi?.destroy();let t=this.videoConfig.videos[0];t&&(this.svelteRootComponent?.$destroy(),this.createPlayer(t))}setMuted(t){this.log({message:`set muted, muted: ${t}`}),this.svelteRootComponent?.setMuted(t)}setVolume(t){this.log({message:`set volume, volume: ${t}`}),this.svelteRootComponent?.setVolume(t)}setRepeat(t){this.log({message:`set repeat, repeat: ${t}`}),this.needToRepeatPlaylist=t,this.svelteRootComponent?.$set({needToRepeatPlaylist:this.needToRepeatPlaylist,showNextPrevButtons:this.needToShowNextPrevButtons(),nextButtonActive:this.isNextButtonActive(),prevButtonActive:this.isPrevButtonActive()})}seekTime(t){this.isControlDisabled("TIMELINE")||(this.log({message:`seek time, time: ${t}`}),this.svelteRootComponent?.seekTime(t))}seekEpisodeStartTime(t){this.log({message:`seek episode start time, time: ${t}`}),this.svelteRootComponent?.seekEpisodeStartTime(t)}returnFocusToEpisodes(){this.log({message:"return focus to episodes button"}),this.svelteRootComponent?.returnFocusToEpisodes()}setPlaybackRate(t){this.log({message:`set playback rate to: ${t}`}),this.svelteRootComponent?.setPlaybackRate(t)}setAutoQualityLimits(t){this.log({message:`set auto quality limitation. Max: ${t.max??"none"}. Min: ${t.min??"none"}`}),this.svelteRootComponent?.setAutoQualityLimits(t)}addLanguage(t){this.store?.actions.internal.addLanguage(t)}async setLanguage(t){await this.store?.actions.internal.setLanguage(t)}setLiveStart(t){this.log({message:"live started"}),this.store?.actions.internal.setLiveWaitingRecover(!1),this.store?.actions.internal.setLiveWaitingStart(!1),this.svelteRootComponent?.$destroy(),this.createPlayer(t,{autoplay:!0})}setLiveWaitingRecover(){this.log({message:"live waiting"}),this.store?.actions.internal.setLiveWaitingRecover(!0),this.store?.destroy()}setLiveWaitingRecord(){this.log({message:"post live"}),this.store?.actions.internal.setLiveWaitingRecord(!0),this.store?.destroy()}setLiveEnd(t){this.log({message:"live ended"}),this.store?.actions.internal.setLiveWaitingRecover(!1),this.store?.actions.internal.setLiveWaitingRecord(!1),this.svelteRootComponent?.$destroy(),this.createPlayer(t,{autoplay:!1})}getDeviceId(){return this.statistics?.oneStat.getDeviceId()??void 0}replayInteractiveVideo(){this.interactiveController&&this.interactiveController.setChapter()}async replayInteractiveChapter(t){if(this.interactiveController&&this.store?.state.positionExact$){let{EVENT_NAMES:n}=await import("@vkontakte/videoplayer-interactive"),o=Je(this.store.state.positionExact$),r=Je(this.store.state.interactiveEpisodes$).find(s=>!s.completed);this.interactiveController.once(n.playerChanged,()=>{r&&o>=r.time?this.seekTime(r.time):this.seekTime(o),t?.()});let a=this.interactiveController.getCurrentChapter();await this.interactiveController.setChapter({chapterId:a.chapter.id,pushToHistory:!1})}}showInteractiveIndicatorTooltip(t,n=!1){this.microStoresRoot?.stores.showInteractiveTimeIndicatorTooltip$.set(t,n)}switchToActiveLive(){this.store?.actions.internal.switchToActiveLive()}updateAdditionalSettingsItem(t,n){this.store?.actions.external.updateAdditionalSettingsItem(t,n)}addAdditionalSettingsItem(t){this.store?.actions.external.addAdditionalSettingsItem(t)}removeAdditionalSettingsItem(t){this.store?.actions.external.removeAdditionalSettingsItem(t)}updateAdditionalContextItem(t,n){this.store?.actions.external.updateAdditionalContextItem(t,n)}addAdditionalContextItem(t){this.store?.actions.external.addAdditionalContextItem(t)}removeAdditionalContextItem(t){this.store?.actions.external.removeAdditionalContextItem(t)}updateStatContext(t){this.statistics&&this.statistics.oneStat.updateContext(t)}};var Or=require("@vkontakte/videoplayer-shared"),Ds=require("@vkontakte/videoplayer-core"),H8=()=>{window.customElements.define("vk-video-player",Bs)};
52
+ );--timeline-preview-shadow:rgba(0, 0, 0, 0.08);--timeline-preview-bg:rgba(34, 34, 34, 1);--settings-bg:rgba(0, 0, 0, 0.72);--settings-item-bg-hover:rgba(255, 255, 255, 0.08);--settings-radius:8px;--mobile-settings-bg:#2C2D2E;--divider-border:1px solid var(--white-alpha-24);--toggle-color-separator:#363738;--toggle-color-off:#656565;--toggle-color-on:#71aaeb;--button-hover-transition:opacity 0.2s;--video-container-z-index:0;--controls-container-z-index:1;--ads-container-z-index:1;--mobile-settings-menu-z-index:1;--thumb-timer-z-index:2;--debug-panel-z-index:2;--context-menu-z-index:3;--hot-key-helpers-container-z-index:3;--overlay-container-z-index:4;--rotate-transition-duration:0.25s;position:relative;width:100%;height:100%;color:var(--white);font-size:12px;line-height:normal;overflow:hidden;outline:0;user-select:none;font-family:-apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;background:var(--black)}*{-webkit-tap-highlight-color:transparent}button{border:none;margin:0;padding:0;width:auto;overflow:visible;background:transparent;color:inherit;font:inherit;line-height:normal;-webkit-font-smoothing:inherit;-moz-osx-font-smoothing:inherit;-webkit-appearance:none;cursor:pointer}svg:not(.interactiveContainer svg){pointer-events:none}*:focus, *:focus-visible{outline:none}*:focus-visible{box-shadow:var(--focused-element-shadow)}.hidden{visibility:hidden;opacity:0}.overlay-container{pointer-events:none;top:0;left:0;height:100%;width:100%;position:fixed;z-index:var(--overlay-container-z-index)}.out-of-view{position:absolute !important;left:-1000vh !important}.icon.icon-error-stub{display:flex;justify-content:center;align-items:center}`)}function v8(i){let e,t,n;function o(r){i[62](r)}let l={store:i[0],uiConfig:i[36],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[37],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[35],playNextVideo:i[26],playPrevVideo:i[27],repeatPlaylist:i[28],seekToInteractive:i[29],toggleGraph:i[30],playPrevChapter:i[31],firstStart:i[39],showEndScreen:i[32]};return i[34]!==void 0&&(l.videoContainer=i[34]),e=new Y0({props:l}),be.push(()=>Oe(e,"videoContainer",o)),{c(){A(e.$$.fragment)},m(r,a){E(e,r,a),n=!0},p(r,a){let s={};a[0]&1&&(s.store=r[0]),a[0]&2&&(s.title=r[1]),a[0]&4&&(s.thumbUrl=r[2]),a[0]&8&&(s.interactiveContainer=r[3]),a[0]&16&&(s.live=r[4]),a[0]&32&&(s.autoplay=r[5]),a[0]&64&&(s.canRewindLive=r[6]),a[0]&128&&(s.showAds=r[7]),a[0]&256&&(s.adsSlotId=r[8]),a[0]&512&&(s.adsParams=r[9]),a[0]&1024&&(s.adsPreviewParam=r[10]),a[0]&2048&&(s.duration=r[11]),a[0]&4096&&(s.logoClickable=r[12]),a[0]&8192&&(s.logoHidden=r[13]),a[0]&32768&&(s.showNextPrevButtons=r[15]),a[0]&65536&&(s.nextButtonActive=r[16]),a[0]&131072&&(s.prevButtonActive=r[17]),a[0]&262144&&(s.endScreenVideoTitle=r[18]),a[0]&524288&&(s.endScreenVideoThumb=r[19]),a[0]&1048576&&(s.isOneVideoPlaylist=r[20]),a[0]&2097152&&(s.supportLink=r[21]),a[0]&4194304&&(s.shadowRootContainer=r[22]),a[0]&8388608&&(s.outerContainerRef=r[23]),a[0]&16777216&&(s.fullScreenTarget=r[24]),a[0]&33554432&&(s.showMiniTimer=r[25]),a[1]&16&&(s.playerStarted=r[35]),a[0]&67108864&&(s.playNextVideo=r[26]),a[0]&134217728&&(s.playPrevVideo=r[27]),a[0]&268435456&&(s.repeatPlaylist=r[28]),a[0]&536870912&&(s.seekToInteractive=r[29]),a[0]&1073741824&&(s.toggleGraph=r[30]),a[1]&1&&(s.playPrevChapter=r[31]),a[1]&2&&(s.showEndScreen=r[32]),!t&&a[1]&8&&(t=!0,s.videoContainer=r[34],Ne(()=>t=!1)),e.$set(s)},i(r){n||(d(e.$$.fragment,r),n=!0)},o(r){m(e.$$.fragment,r),n=!1},d(r){M(e,r)}}}function y8(i){let e,t,n;function o(r){i[61](r)}let l={store:i[0],uiConfig:i[36],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[37],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[35],playNextVideo:i[26],playPrevVideo:i[27],repeatPlaylist:i[28],seekToInteractive:i[29],toggleGraph:i[30],playPrevChapter:i[31],firstStart:i[39],seekTime:i[33],showEndScreen:i[32]};return i[34]!==void 0&&(l.videoContainer=i[34]),e=new __({props:l}),be.push(()=>Oe(e,"videoContainer",o)),{c(){A(e.$$.fragment)},m(r,a){E(e,r,a),n=!0},p(r,a){let s={};a[0]&1&&(s.store=r[0]),a[0]&4&&(s.thumbUrl=r[2]),a[0]&8&&(s.interactiveContainer=r[3]),a[0]&16&&(s.live=r[4]),a[0]&32&&(s.autoplay=r[5]),a[0]&64&&(s.canRewindLive=r[6]),a[0]&128&&(s.showAds=r[7]),a[0]&256&&(s.adsSlotId=r[8]),a[0]&512&&(s.adsParams=r[9]),a[0]&1024&&(s.adsPreviewParam=r[10]),a[0]&2048&&(s.duration=r[11]),a[0]&4096&&(s.logoClickable=r[12]),a[0]&8192&&(s.logoHidden=r[13]),a[0]&32768&&(s.showNextPrevButtons=r[15]),a[0]&65536&&(s.nextButtonActive=r[16]),a[0]&131072&&(s.prevButtonActive=r[17]),a[0]&262144&&(s.endScreenVideoTitle=r[18]),a[0]&524288&&(s.endScreenVideoThumb=r[19]),a[0]&1048576&&(s.isOneVideoPlaylist=r[20]),a[0]&2097152&&(s.supportLink=r[21]),a[0]&4194304&&(s.shadowRootContainer=r[22]),a[0]&8388608&&(s.outerContainerRef=r[23]),a[0]&16777216&&(s.fullScreenTarget=r[24]),a[0]&33554432&&(s.showMiniTimer=r[25]),a[1]&16&&(s.playerStarted=r[35]),a[0]&67108864&&(s.playNextVideo=r[26]),a[0]&134217728&&(s.playPrevVideo=r[27]),a[0]&268435456&&(s.repeatPlaylist=r[28]),a[0]&536870912&&(s.seekToInteractive=r[29]),a[0]&1073741824&&(s.toggleGraph=r[30]),a[1]&1&&(s.playPrevChapter=r[31]),a[1]&2&&(s.showEndScreen=r[32]),!t&&a[1]&8&&(t=!0,s.videoContainer=r[34],Ne(()=>t=!1)),e.$set(s)},i(r){n||(d(e.$$.fragment,r),n=!0)},o(r){m(e.$$.fragment,r),n=!1},d(r){M(e,r)}}}function k8(i){let e,t,n,o,l=[y8,v8],r=[];function a(s,u){return s[14]?0:1}return t=a(i,[-1,-1,-1]),n=r[t]=l[t](i),{c(){e=I("div"),n.c(),c(e,"class","root svelte-6h4ol6")},m(s,u){v(s,e,u),r[t].m(e,null),o=!0},p(s,u){let f=t;t=a(s,u),t===f?r[t].p(s,u):(ae(),m(r[f],1,1,()=>{r[f]=null}),ue(),n=r[t],n?n.p(s,u):(n=r[t]=l[t](s),n.c()),d(n,1),n.m(e,null))},i(s){o||(d(n),o=!0)},o(s){m(n),o=!1},d(s){s&&b(e),r[t].d()}}}function w8(i,e,t){let n,{sources:o}=e,{store:l}=e,{microStoresRoot:r}=e,{videoConfig:a}=e,{uiConfig:s}=e,{title:u}=e,{thumbUrl:f}=e,{interactiveContainer:p}=e,{subtitles:g}=e,{live:y}=e,{preload:h}=e,{autoplay:C}=e,{volume:w=void 0}=e,{muted:F=void 0}=e,{fromTime:T}=e,{canRewindLive:k}=e,{showAds:P}=e,{adsSlotId:G=void 0}=e,{adsParams:W=void 0}=e,{adsPreviewParam:z=void 0}=e,{duration:le=void 0}=e,{logoClickable:de}=e,{logoHidden:L}=e,{isMobile:te}=e,{showNextPrevButtons:re=!1}=e,{nextButtonActive:X=!1}=e,{prevButtonActive:Pe=!1}=e,{endScreenVideoTitle:q=void 0}=e,{endScreenVideoThumb:N=void 0}=e,{isOneVideoPlaylist:K=!1}=e,{supportLink:ce}=e,{shadowRootContainer:oe=void 0}=e,{outerContainerRef:se=void 0}=e,{fullScreenTarget:qe=void 0}=e,{failoverHosts:Ve=void 0}=e,{showMiniTimer:ke=!1}=e,{saveRate:Re}=e,{playNextVideo:ze=Hn.noop}=e,{playPrevVideo:je=Hn.noop}=e,{repeatPlaylist:Y=Hn.noop}=e,{seekToInteractive:fe=Hn.noop}=e,{toggleGraph:Ze=Hn.noop}=e,{playPrevChapter:_e=Hn.noop}=e,{volumeMultiplier:Ue}=e,{showEndScreen:tt=!0}=e,{subscribers:rt,stores:Je}=r;If(s);let Ye=Nt(),We=s.logoLink,J=l.ui.debugPanelVisible,He=l.ui.playerSize,we=l.state.isLive$;O(i,we,pe=>t(64,n=pe));let Ie,Ke=null,me=!1;l.getAdmanWrapper().init({switchFromAdsToVideo:l.actions.internal.switchFromAdsToVideo,switchFromVideoToAds:l.actions.internal.switchFromVideoToAds,setMuted:l.actions.external.setMuted},l.ads,{isMobile:l.ui.isMobile,mobileUnmuteButtonVisible:l.ui.mobileUnmuteButtonVisible,vsid:l.vsid}),Nf(l,Je);let $=(pe=!1)=>{t(35,me=!0),pe?l.actions.external.firstStart(P):l.actions.internal.firstStart(P)};function dt(pe){let Lt=o||pe;Lt&&l.initVideo({container:Ie,sources:Lt,failoverHosts:Ve,subtitles:g,volumeMultiplier:Ue});let Vt=Hn.safeStorage.get(Kr)==="true";J.set(Vt),T>0&&l.actions.external.seekTime(T);let Pt=te?Ye.volumeDefault:w??hl()??Ye.volumeDefault,Tt=F??Zf();if(l.actions.external.setVolume(Pt),l.actions.external.setMuted(Tt),l.getAdmanWrapper().setInitialVolume(Tt?0:Pt),Ye.features.trafficSaving){let Rt=Jf();Rt&&l.actions.internal.setTrafficSavingEnabled(Rt)}if(Ye.features.saveRate&&Re){let Rt=td();Rt&&!n&&l.actions.internal.setPlaybackRate(Rt)}let Ht=xf(l.videoId);Ht&&l.actions.internal.setQuality(Ht),l.ui.isAutoplay.set(C),C?$():h&&Ye.features.preload&&l.actions.internal.preload()}let mt=pe=>{if(window.ResizeObserver){let Lt,Vt;Ke=new ResizeObserver((0,Hn.throttleFn)(Pt=>{let Tt=Pt[0];if(Tt){if(Tt.contentBoxSize){let Ht=Array.isArray(Tt.contentBoxSize)?Tt.contentBoxSize[0]:Tt.contentBoxSize;Lt=Ht.inlineSize,Vt=Ht.blockSize}else Tt.contentRect&&(Lt=Tt.contentRect.width,Vt=Tt.contentRect.height);He.set({width:Lt,height:Vt})}},300)),Ke.observe(pe)}He.set({width:pe.clientWidth,height:pe.clientHeight})};Et(()=>{mt(Ie);let pe=rt.map(Vt=>Vt.init({store:l,microStores:Je,config:a}));if(y?.status==="upcoming"){l.actions.internal.setLiveWaitingStart(!0);return}if(y?.status==="waiting"){l.actions.internal.setLiveWaitingRecover(!0);return}if((y?.status==="finished"||y?.status==="postlive")&&!Object.keys(o||[]).length){l.actions.internal.setLiveWaitingRecord(!0);return}return dt(),()=>{Ke?.disconnect(),pe.forEach(Vt=>Vt.unsubscribe()),l.destroy()}});function $e(){me?l.actions.external.play():$(!0)}function ut(){l.actions.external.pause()}function St(pe){te||l.actions.external.setMuted(pe)}function et(pe){te||pe>=0&&pe<=1&&l.actions.external.setVolume(pe)}function ni(pe){l.actions.internal.seekTime(pe,g_.SeekAction.UNKNOWN)}function It(pe){l.actions.external.seekEpisodeStartTime(pe)}function qt(){l.actions.external.returnFocusToEpisodes()}function oi(pe){l.actions.external.setPlaybackRate(pe)}function st(pe){l.actions.external.setAutoQualityLimits(pe)}function yt(pe){Ie=pe,t(34,Ie)}function ei(pe){Ie=pe,t(34,Ie)}return i.$$set=pe=>{"sources"in pe&&t(40,o=pe.sources),"store"in pe&&t(0,l=pe.store),"microStoresRoot"in pe&&t(41,r=pe.microStoresRoot),"videoConfig"in pe&&t(42,a=pe.videoConfig),"uiConfig"in pe&&t(43,s=pe.uiConfig),"title"in pe&&t(1,u=pe.title),"thumbUrl"in pe&&t(2,f=pe.thumbUrl),"interactiveContainer"in pe&&t(3,p=pe.interactiveContainer),"subtitles"in pe&&t(44,g=pe.subtitles),"live"in pe&&t(4,y=pe.live),"preload"in pe&&t(45,h=pe.preload),"autoplay"in pe&&t(5,C=pe.autoplay),"volume"in pe&&t(46,w=pe.volume),"muted"in pe&&t(47,F=pe.muted),"fromTime"in pe&&t(48,T=pe.fromTime),"canRewindLive"in pe&&t(6,k=pe.canRewindLive),"showAds"in pe&&t(7,P=pe.showAds),"adsSlotId"in pe&&t(8,G=pe.adsSlotId),"adsParams"in pe&&t(9,W=pe.adsParams),"adsPreviewParam"in pe&&t(10,z=pe.adsPreviewParam),"duration"in pe&&t(11,le=pe.duration),"logoClickable"in pe&&t(12,de=pe.logoClickable),"logoHidden"in pe&&t(13,L=pe.logoHidden),"isMobile"in pe&&t(14,te=pe.isMobile),"showNextPrevButtons"in pe&&t(15,re=pe.showNextPrevButtons),"nextButtonActive"in pe&&t(16,X=pe.nextButtonActive),"prevButtonActive"in pe&&t(17,Pe=pe.prevButtonActive),"endScreenVideoTitle"in pe&&t(18,q=pe.endScreenVideoTitle),"endScreenVideoThumb"in pe&&t(19,N=pe.endScreenVideoThumb),"isOneVideoPlaylist"in pe&&t(20,K=pe.isOneVideoPlaylist),"supportLink"in pe&&t(21,ce=pe.supportLink),"shadowRootContainer"in pe&&t(22,oe=pe.shadowRootContainer),"outerContainerRef"in pe&&t(23,se=pe.outerContainerRef),"fullScreenTarget"in pe&&t(24,qe=pe.fullScreenTarget),"failoverHosts"in pe&&t(49,Ve=pe.failoverHosts),"showMiniTimer"in pe&&t(25,ke=pe.showMiniTimer),"saveRate"in pe&&t(50,Re=pe.saveRate),"playNextVideo"in pe&&t(26,ze=pe.playNextVideo),"playPrevVideo"in pe&&t(27,je=pe.playPrevVideo),"repeatPlaylist"in pe&&t(28,Y=pe.repeatPlaylist),"seekToInteractive"in pe&&t(29,fe=pe.seekToInteractive),"toggleGraph"in pe&&t(30,Ze=pe.toggleGraph),"playPrevChapter"in pe&&t(31,_e=pe.playPrevChapter),"volumeMultiplier"in pe&&t(51,Ue=pe.volumeMultiplier),"showEndScreen"in pe&&t(32,tt=pe.showEndScreen)},i.$$.update=()=>{i.$$.dirty[0]&16385&&l.ui.isMobile.set(te)},[l,u,f,p,y,C,k,P,G,W,z,le,de,L,te,re,X,Pe,q,N,K,ce,oe,se,qe,ke,ze,je,Y,fe,Ze,_e,tt,ni,Ie,me,Ye,We,we,$,o,r,a,s,g,h,w,F,T,Ve,Re,Ue,dt,$e,ut,St,et,It,qt,oi,st,yt,ei]}var tf=class extends B{constructor(e){super(),D(this,e,w8,k8,R,{sources:40,store:0,microStoresRoot:41,videoConfig:42,uiConfig:43,title:1,thumbUrl:2,interactiveContainer:3,subtitles:44,live:4,preload:45,autoplay:5,volume:46,muted:47,fromTime:48,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:49,showMiniTimer:25,saveRate:50,playNextVideo:26,playPrevVideo:27,repeatPlaylist:28,seekToInteractive:29,toggleGraph:30,playPrevChapter:31,volumeMultiplier:51,showEndScreen:32,initVideo:52,play:53,pause:54,setMuted:55,setVolume:56,seekTime:33,seekEpisodeStartTime:57,returnFocusToEpisodes:58,setPlaybackRate:59,setAutoQualityLimits:60},b8,[-1,-1,-1])}get initVideo(){return this.$$.ctx[52]}get play(){return this.$$.ctx[53]}get pause(){return this.$$.ctx[54]}get setMuted(){return this.$$.ctx[55]}get setVolume(){return this.$$.ctx[56]}get seekTime(){return this.$$.ctx[33]}get seekEpisodeStartTime(){return this.$$.ctx[57]}get returnFocusToEpisodes(){return this.$$.ctx[58]}get setPlaybackRate(){return this.$$.ctx[59]}get setAutoQualityLimits(){return this.$$.ctx[60]}},h_=tf;function C8(i){let e,t,n,o=i[2].default,l=Ee(o,i,i[1],null),r=[{xmlns:"http://www.w3.org/2000/svg"},{width:"57"},{height:"60"},{fill:"none"},{"aria-hidden":"true"},{"data-testid":"stub-icon"},{role:"img"},i[0]],a={};for(let s=0;s<r.length;s+=1)a=ne(a,r[s]);return{c(){e=V("svg"),l&&l.c(),t=V("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"),ye(e,a)},m(s,u){v(s,e,u),l&&l.m(e,null),_(e,t),n=!0},p(s,[u]){l&&l.p&&(!n||u&2)&&Ae(l,o,s,s[1],n?Me(o,s[1],u,null):Le(s[1]),null),ye(e,a=Be(r,[{xmlns:"http://www.w3.org/2000/svg"},{width:"57"},{height:"60"},{fill:"none"},{"aria-hidden":"true"},{"data-testid":"stub-icon"},{role:"img"},u&1&&s[0]]))},i(s){n||(d(l,s),n=!0)},o(s){m(l,s),n=!1},d(s){s&&b(e),l&&l.d(s)}}}function S8(i,e,t){let{$$slots:n={},$$scope:o}=e;return i.$$set=l=>{t(0,e=ne(ne({},e),ve(l))),"$$scope"in l&&t(1,o=l.$$scope)},e=ve(e),[e,o,n]}var nf=class extends B{constructor(e){super(),D(this,e,S8,C8,R,{})}},b_=nf;function I8(i){let e,t;return e=new b_({props:{style:i[0]}}),{c(){A(e.$$.fragment)},m(n,o){E(e,n,o),t=!0},p(n,[o]){let l={};o&1&&(l.style=n[0]),e.$set(l)},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){m(e.$$.fragment,n),t=!1},d(n){M(e,n)}}}function T8(i,e,t){let n,{isWhite:o=!1}=e;return i.$$set=l=>{"isWhite"in l&&t(1,o=l.isWhite)},i.$$.update=()=>{i.$$.dirty&2&&t(0,n=o?"color: #fff;":"color: #909499;")},[n,o]}var of=class extends B{constructor(e){super(),D(this,e,T8,I8,R,{isWhite:1})}},v_=of;function P8(i){Ce(i,"svelte-1y9fytq",".playerStub.svelte-1y9fytq{width:100%;height:100%;background-color:#222;display:flex;justify-content:center;align-items:center;position:relative;background-position:center;background-size:cover;font-family:-apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif}.title.svelte-1y9fytq{position:absolute;left:0;top:0;width:100%;font-size:15px;color:#fff;box-sizing:border-box;padding:18px 20px 10px;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}")}function y_(i){let e,t;return{c(){e=I("div"),t=De(i[0]),c(e,"class","title svelte-1y9fytq")},m(n,o){v(n,e,o),_(e,t)},p(n,o){o&1&&xe(t,n[0])},d(n){n&&b(e)}}}function k_(i){let e,t;return e=new v_({props:{isWhite:!!i[1]}}),{c(){A(e.$$.fragment)},m(n,o){E(e,n,o),t=!0},p(n,o){let l={};o&2&&(l.isWhite=!!n[1]),e.$set(l)},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){m(e.$$.fragment,n),t=!1},d(n){M(e,n)}}}function E8(i){let e,t,n,o,l=i[0]&&y_(i),r=(!i[0]||!i[1])&&k_(i);return{c(){e=I("div"),l&&l.c(),t=H(),r&&r.c(),c(e,"class","playerStub svelte-1y9fytq"),c(e,"style",n=i[1]?`background-image: url('${i[1]}')`:"")},m(a,s){v(a,e,s),l&&l.m(e,null),_(e,t),r&&r.m(e,null),o=!0},p(a,[s]){a[0]?l?l.p(a,s):(l=y_(a),l.c(),l.m(e,t)):l&&(l.d(1),l=null),!a[0]||!a[1]?r?(r.p(a,s),s&3&&d(r,1)):(r=k_(a),r.c(),d(r,1),r.m(e,null)):r&&(ae(),m(r,1,1,()=>{r=null}),ue()),(!o||s&2&&n!==(n=a[1]?`background-image: url('${a[1]}')`:""))&&c(e,"style",n)},i(a){o||(d(r),o=!0)},o(a){m(r),o=!1},d(a){a&&b(e),l&&l.d(),r&&r.d()}}}function M8(i,e,t){let{title:n}=e,{thumbUrl:o}=e;return i.$$set=l=>{"title"in l&&t(0,n=l.title),"thumbUrl"in l&&t(1,o=l.thumbUrl)},[n,o]}var rf=class extends B{constructor(e){super(),D(this,e,M8,E8,R,{title:0,thumbUrl:1},P8)}},w_=rf;var Oi=require("@vkontakte/videoplayer-shared"),PF=require("@vkontakte/videoplayer-core"),V_=require("@vkontakte/videoplayer-statistics");var C_=require("@vkontakte/videoplayer-shared"),As=class{constructor(){this.subscription=new C_.Subscription}isSupported(){return"mediaSession"in navigator}setMetaData({title:e,artist:t="",thumbUrl:n=""}){this.isSupported()&&(navigator.mediaSession.metadata=new MediaMetadata({title:e,artist:t,artwork:[{src:n,sizes:"96x96",type:"image/png"},{src:n,sizes:"128x128",type:"image/png"},{src:n,sizes:"192x192",type:"image/png"},{src:n,sizes:"256x256",type:"image/png"},{src:n,sizes:"384x384",type:"image/png"},{src:n,sizes:"512x512",type:"image/png"}]}))}updateActionHandlers(e){this.resetActionHandlers(),this.setActionHandlers(e)}resetActionHandlers(){let e=[["play",null],["pause",null],["stop",null],["nexttrack",null],["previoustrack",null],["seekto",t=>null],["seekbackward",t=>null],["seekforward",t=>null]];this.setActionHandlers(e)}setActionHandlers(e){if(this.isSupported())for(let[t,n]of e)try{navigator.mediaSession.setActionHandler?.(t,n)}catch{throw new Error(`The media session action "${t}" is not supported yet.`)}}attachToStore(e){!this.isSupported()||!e||this.subscription.add(e.state.positionExact$.subscribe(t=>{let n=Xe(e.state.currentPlaybackRate$),o=Xe(e.state.duration$);!isFinite(t)||!isFinite(o)||navigator.mediaSession.setPositionState?.({position:t,playbackRate:n,duration:o})}))}clearSubscriptions(){this.subscription.unsubscribe()}destroy(){this.resetActionHandlers(),this.clearSubscriptions()}};var Ar=require("@vkontakte/videoplayer-shared");function A8(i){let e,t,n,o,l,r=i[2].default,a=Ee(r,i,i[1],null),s=[{xmlns:"http://www.w3.org/2000/svg"},{width:"57"},{height:"56"},{fill:"none"},{"aria-label":"dummy-image"},{"data-testid":"pip-dummy-icon"},{role:"img"},i[0]],u={};for(let f=0;f<s.length;f+=1)u=ne(u,s[f]);return{c(){e=V("svg"),a&&a.c(),t=V("g"),n=V("path"),o=V("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"),ye(e,u)},m(f,p){v(f,e,p),a&&a.m(e,null),_(e,t),_(t,n),_(t,o),l=!0},p(f,[p]){a&&a.p&&(!l||p&2)&&Ae(a,r,f,f[1],l?Me(r,f[1],p,null):Le(f[1]),null),ye(e,u=Be(s,[{xmlns:"http://www.w3.org/2000/svg"},{width:"57"},{height:"56"},{fill:"none"},{"aria-label":"dummy-image"},{"data-testid":"pip-dummy-icon"},{role:"img"},p&1&&f[0]]))},i(f){l||(d(a,f),l=!0)},o(f){m(a,f),l=!1},d(f){f&&b(e),a&&a.d(f)}}}function L8(i,e,t){let{$$slots:n={},$$scope:o}=e;return i.$$set=l=>{t(0,e=ne(ne({},e),ve(l))),"$$scope"in l&&t(1,o=l.$$scope)},e=ve(e),[e,o,n]}var lf=class extends B{constructor(e){super(),D(this,e,L8,A8,R,{})}},S_=lf;function V8(i){Ce(i,"svelte-1pbsod4",".player-pip-dummy.svelte-1pbsod4{width:100%;height:100%;background-color:#19191A;display:flex;flex-direction:column;justify-content:center;align-items:center;font-family:-apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif}.player-pip-dummy.is-pip-api.svelte-1pbsod4{position:relative}.dummy-image.svelte-1pbsod4 svg{transform:scale(1.07143)}.dummy-image.desktop.svelte-1pbsod4{transform:scale(1.07143) rotate(-90deg) rotateY(180deg)}.title.svelte-1pbsod4{font-size:16px;color:#fff;padding:18px 20px 10px;text-align:center}")}function R8(i){let e,t,n,o,l,r,a;return n=new S_({}),{c(){e=I("div"),t=I("div"),A(n.$$.fragment),o=H(),l=I("span"),r=De(i[0]),c(t,"class","dummy-image svelte-1pbsod4"),j(t,"desktop",!i[1]),c(l,"class","title svelte-1pbsod4"),c(e,"class","player-pip-dummy svelte-1pbsod4"),j(e,"is-pip-api",i[2])},m(s,u){v(s,e,u),_(e,t),E(n,t,null),_(e,o),_(e,l),_(l,r),a=!0},p(s,[u]){(!a||u&2)&&j(t,"desktop",!s[1]),(!a||u&1)&&xe(r,s[0])},i(s){a||(d(n.$$.fragment,s),a=!0)},o(s){m(n.$$.fragment,s),a=!1},d(s){s&&b(e),M(n)}}}function B8(i,e,t){let n,o,l=ot(),r=!!l.webApi.pictureInPictureApi,a=l.interfaceLanguage$;O(i,a,f=>t(5,n=f));let s=l.ui.isMobile;O(i,s,f=>t(1,o=f));let u;return i.$$.update=()=>{i.$$.dirty&32&&t(0,u=n&&U("pip_dummy_title"))},[u,o,r,a,s,n]}var sf=class extends B{constructor(e){super(),D(this,e,B8,R8,R,{},V8)}},I_=sf;var D8=460,N8=280,Jr=class{constructor(){this.info={isActive$:new Ar.ValueSubject(!1),type:1}}isSupported(){let{isEmbed:e}=(0,Ar.detectEmbed)();return"documentPictureInPicture"in window&&!Ar.clientChecker.isYandex&&!e}isActive(){return this.isSupported()&&!!documentPictureInPicture.window}setPlayerDomElement(e,t){this.playerDomElement=e,this.playerParentShadowRoot=t}setContext(e){this.svelteContext=e}async request(){if(!this.isSupported()||!this.playerDomElement||!this.playerParentShadowRoot)return;this.pipWindow=await documentPictureInPicture.requestWindow({width:D8,height:N8,copyStyleSheets:!0}),this.pipWindow.document.body.style.margin="0";let e=[...this.playerParentShadowRoot.styleSheets].map(l=>[...l.cssRules].map(r=>r.cssText).join(" ")).filter(Boolean).join(`
53
+ `),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 I_({target:this.playerParentShadowRoot,context:this.svelteContext}),this.pipWindow?.document.body.append(n),this.info.isActive$.next(!0),this.pipWindow?.addEventListener("unload",l=>{!this.playerDomElement||!this.playerParentShadowRoot||!this.playerDummyElement||(this.playerDummyElement.$destroy(),this.playerParentShadowRoot.append(this.playerDomElement),this.info.isActive$.next(!1))})}async remove(){return new Promise(e=>{documentPictureInPicture.window?.close(),e()})}async dispose(){await this.remove()}createStretchedContainer(){let e=document.createElement("div");return e.style.width="100%",e.style.height="100%",e}};function T_(i){return i instanceof Jr}var Ls=class{static getLatestSupportedVersion(){let e=new qo,t=new Jr;if(t.isSupported())return t;if(e.isSupported())return e}};function Vs(i,e){let t=new Set([...Object.keys(i),...Object.keys(e)]),n={};for(let o of t)n[o]=e[o]??i[o]??void 0;return n}var P_="Inner error. Unexpectedly root annotation container null reference exception",E_="Annotation with such name already exists",M_="Annotation with such name does not exist";var Lr=class extends Error{constructor(e){super(e),this.name="AnnotationError"}};var Vr=require("@vkontakte/videoplayer-shared"),O8="1",F8=100,Rs=class{constructor(){this.annotations=new Map;this.subscriptions=new Vr.Subscription}init(e){this.rootAnnotationsContainer=e;let t=(0,Vr.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"},F8);this.subscriptions.add((0,Vr.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){if(!this.rootAnnotationsContainer)throw new Lr(P_);if(this.annotations.has(e))throw new Lr(E_);t.style.zIndex=t.style.zIndex??O8,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 Lr(M_);return t}remove(e){let t=this.get(e);this.annotations.delete(e)&&t.remove()}clear(){for(let e in this.annotations.keys())this.remove(e)}destroy(){this.annotations.clear(),this.subscriptions.unsubscribe(),this.mutationObserver.disconnect(),this.rootAnnotationsContainer=null}isElementExceedsBoundaries(e,t,n){let o=e.offsetTop,l=e.offsetLeft,r=e.offsetWidth,a=e.offsetHeight;return o<0||l<0||l+r>t||o+a>n}registryRootContainer(e){}addLayer(e){return document.createElement("div")}getLayer(e){}removeLayer(e){}clearLayer(e){}detach(){}reattach(){}};var Rr=require("@vkontakte/videoplayer-shared"),$n=class{init({store:e,microStores:t,config:n}){return(0,Rr.assertNonNullable)(e),(0,Rr.assertNonNullable)(t),(0,Rr.assertNonNullable)(n),this.subscription=new Rr.Subscription,this.subscription}};var $r=class extends $n{constructor(){super(...arguments);this.stateName="fakeIsPlaying$";this.state$={...Fe(null),toggle:()=>this.state$.update(t=>!t)}}init(t){let n=super.init(t),{isInteractiveExpectation$:o}=t.store.state;return n.add(o.subscribe(l=>{this.state$.set(l?!0:null)})),n}};var el=class extends $n{constructor(){super(...arguments);this.stateName="interactiveControlsOpacity$";this.state$={...Fe(null),toggle:()=>this.state$.update(t=>!t)}}init(t){let n=super.init(t),{microStores:o,store:l}=t,{fakeIsPlaying$:r}=o,{isInteractiveExpectation$:a,isPlaying$:s}=l.state,{controlsVisible:u,isMobile:f}=l.ui,p=Xe(f),g=()=>p&&Xe(u);return n.add(u.subscribe(y=>{if(!p)return;let h=Xe(r);Xe(s)?this.state$.set(y):h!==null&&this.state$.set(!h||y)})),n.add(s.subscribe(y=>{this.state$.set(!y||g())})),n.add(r.subscribe(y=>{if(y===null)return;let h=Xe(a);if(g()){this.state$.set(!0);return}h&&this.state$.set(!y)})),n}};var tl=class extends $n{constructor(){super(...arguments);this.stateName="seekToInteractiveDisabledTooltip$";this.state$=Fe("tooltip_chapter_without_interactive")}init(t){let n=super.init(t),{store:o}=t;return n.add(o.state.interactiveEpisodes$.subscribe(l=>{l.length&&(l.every(r=>r.completed)?this.state$.set("tooltip_interactive_of_chapter_completed"):this.state$.set("tooltip_disabled_when_interactive"))})),n}};var A_=require("@vkontakte/videoplayer-shared"),af=Fe(!1),Bs=null,il=class extends $n{constructor(){super(...arguments);this.stateName="showInteractiveTimeIndicatorTooltip$";this.state$={...af,set:(t,n=!1)=>{t!==Xe(af)&&(this.clearTimeout(),af.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:l}=t,{isInteractiveTime$:r,isPlaying$:a}=o.state,s=o.ui.controlsVisible,{interactiveTimeIndicator:u}=o.ui.controls;n.add(s.subscribe(p=>{Xe(r)&&p&&this.state$.set(!1)}));let f=l?.interactiveData||{tooltipHelpHintActive:!1};return n.add((0,A_.combine)({isPlaying$:a,isInteractiveTime$:r,interactiveTimeIndicator:u}).subscribe(({isPlaying$:p,isInteractiveTime$:g,interactiveTimeIndicator:y})=>{if(!(!p||!y?.isDisplayed)){if(!g)return this.state$.set(!1);f.tooltipHelpHintActive&&Bs===null&&(Bs=!0,f.tooltipHelpHintActive=!1,this.state$.set(!0),o.callbacks?.onInteractiveTimeIndicatorHintDeactivated?.())}})),n}clearTimeout(){window.clearTimeout(this.timeout)}};var L_=()=>[$r,el,tl,il].reduce(({subscribers:i,stores:e},t)=>{let n=new t;return{subscribers:[...i,n],stores:{...e,[n.stateName]:n.state$}}},{subscribers:[],stores:{}});var q8={preload:!0,autoplay:!1,repeat:!1,fromTime:0,canRewindLive:!0,showAds:!1,interfaceLanguage:Oi.InterfaceLanguage.RU,isCyrillicRelatedInterface:!0,logoClickable:!1,logoHidden:!1,isMobile:(0,Oi.isMobile)(),isMediaSessionEnabled:!0,isPictureInPictureEnabled:!0,isAudioDisabled:!1,callbacks:{uiInfo:{}},tuningConfig:{configName:[]},saveRate:!0,volumeMultiplier:1,showEndScreen:!0},Ds=class extends HTMLElement{constructor(){super();this.currentPlayingVideoIndex=0;this.needToRepeatPlaylist=!1;this.videoConfig=void 0;this.pictureInPictureApi=void 0;this.mediaSessionApi=void 0;this.unsubscribePlayerPhaseSubscription=void 0;this.annotationsApi=void 0;this.prevIsid=void 0;this.isInited=!1;this.createOneStat=(t,n={})=>{let{albumId:o,statPlace:l,statUserSalt:r,statTrackCode:a,refreshStatAuthToken:s,autoplay:u,isMobile:f,refDomain:p,deviceId:g,interactiveData:y}=Vs(this.videoConfig,n),h=y?.projectInfo?.pid,{unitedVideoId:C,isClip:w=!1}=t;if(this.uiConfig.features.statistics&&C)return new V_.OneStat({movieId:C,albumId:o,place:l,trackCode:a,autoplay:(u&&!this.interactiveController)??!1,mobile:f,clip:w,refDomain:p,deviceId:g,...h&&!this.isInited&&{projectId:Number(h)}},{refreshAuthToken:s,userSalt:r,config:this.statisticsConfig,...this.interactiveController&&{useIsid:!0,isid:this.prevIsid}})};this.logger=new Oi.Logger,this.log=this.logger.createComponentLog("VKVideoPlayer"),this.subscription=new Oi.Subscription,this.graphMadePause=!1,window?.videoPlayerConfig?.debugLogs&&this.subscription.add(this.logger.log$.subscribe(t=>{console.log("%c player web component ","background:#77dd77;",`${t.component}`,t.message)}))}connectedCallback(){if(this.isInited)return;this.initPlayerRootContainers();let t=this.getAttribute("stub-title")??void 0,n=this.getAttribute("stub-thumb-url")??void 0;this.svelteStubComponent=new w_({target:this.playerContainer,props:{title:t,thumbUrl:n}})}disconnectedCallback(){this.annotationsApi?.destroy(),this.mediaSessionApi?.destroy(),this.svelteRootComponent?.$destroy(),this.svelteStubComponent?.$destroy(),this.subscription.unsubscribe(),this.unsubscribePlayerPhaseSubscription?.(),this.interactiveController?.destroy()}initPlayerRootContainers(){this.rootContainer=document.createElement("div"),this.rootContainer.style.position="relative",this.rootContainer.className="root-container",this.rootContainer.style.width="100%",this.rootContainer.style.height="100%",this.shadowRootContainer=document.createElement("div"),this.shadowRootContainer.style.position="absolute",this.shadowRootContainer.className="shadow-root-container",this.shadowRootContainer.style.width="100%",this.shadowRootContainer.style.height="100%",this._shadowRoot=this.shadowRootContainer.attachShadow({mode:"open"}),this.playerContainer=document.createElement("div"),this.playerContainer.style.all="initial",this.playerContainer.style.display="block",this.playerContainer.style.contain="strict",this.playerContainer.style.width="100%",this.playerContainer.style.height="100%",this._shadowRoot.append(this.playerContainer),this.rootContainer.append(this.shadowRootContainer),this.append(this.rootContainer)}needToShowNextPrevButtons(){return this.videoConfig?this.videoConfig.videos.length>1:!1}isNextButtonActive(){return this.videoConfig?this.needToShowNextPrevButtons()&&(this.currentPlayingVideoIndex<this.videoConfig.videos.length-1||this.needToRepeatPlaylist):!1}isPrevButtonActive(){return this.videoConfig?this.needToShowNextPrevButtons()&&(this.currentPlayingVideoIndex>0||this.needToRepeatPlaylist):!1}isControlDisabled(t){return this.store?.ui.controls.disabledControls$?.includes(t)||!1}getNextVideoInfo(){if(!this.videoConfig)return{nextVideoTitle:void 0,nextVideoThumb:void 0};let t=this.videoConfig.videos[this.currentPlayingVideoIndex+1]||{};return{nextVideoTitle:t.title,nextVideoThumb:t.thumbUrl}}createPlayer(t,n={},o){if(!this.videoConfig)return;let{albumId:l,statPlace:r,statAuthToken:a,preload:s,autoplay:u,volume:f,muted:p,fromTime:g,canRewindLive:y,supportLink:h,showAds:C,adsSlotId:w,adsParams:F={},adsPreviewParam:T,interfaceLanguage:k,isCyrillicRelatedInterface:P,logoClickable:G,logoHidden:W,isMobile:z,isAudioDisabled:le,isLiveCatchUpMode:de,fullScreenTarget:L,failoverHosts:te,canDownload:re,callbacks:X,interactiveData:Pe,showThumbTimer:q,additionalButtons:N=[],additionalSettingsMenuItems:K=[],additionalContextMenuItems:ce=[],repeat:oe,saveRate:se,volumeMultiplier:qe,showEndScreen:Ve}=Vs(this.videoConfig,n),{sources:ke,title:Re,thumbUrl:ze,unitedVideoId:je,isClip:Y=!1,duration:fe,adsParams:Ze={},videoEpisodes:_e,previewThumbsData:Ue,subtitles:tt,live:rt}=t,Je={...F,...Ze},Ye=this.getNextVideoInfo(),We={sources:ke,title:Re,thumbUrl:ze,subtitles:tt,unitedVideoId:je,isClip:Y,live:rt,albumId:l,statPlace:r,autoplay:u,muted:p,volume:f,fromTime:g,canRewindLive:y,showAds:C,adsSlotId:w,adsParams:Je,adsPreviewParam:T,duration:fe,logoClickable:G,logoHidden:W,isMobile:z,repeat:oe,showNextPrevButtons:this.needToShowNextPrevButtons(),nextButtonActive:this.isNextButtonActive(),prevButtonActive:this.isPrevButtonActive(),endScreenVideoTitle:Ye.nextVideoTitle,endScreenVideoThumb:Ye.nextVideoThumb,isOneVideoPlaylist:this.isOneVideoPlaylist()},J={pictureInPictureApi:this.pictureInPictureApi,annotationsApi:this.annotationsApi};this.log({message:`create player, props: ${JSON.stringify(We)}`});let He=this.interactiveController?.state.statistics$.getValue(),we=He?.oneStat||this.createOneStat(t,n);we&&(this.statistics=new gs(we,He?.statSubscription)),this.uiConfig.features.sentry&&this.uiConfig.sentry.dsn&&new Fo(this.uiConfig.sentry,{version:Do,env:gl},{movieId:je,albumId:l,place:r,autoplay:(u&&!this.interactiveController)??!1,mobile:z,clip:Y}),this.interactiveController&&(this.prevIsid??=this.statistics?.oneStat.isid$.getValue()),this.sentry={...this.sentry,...Fo.getInstance()};let Ke=!!Pe,me=[],$="tooltip_interactive_go_back_disabled_first";if(Ke&&this.interactiveController){let $e=this.interactiveController.state.isInitialChapter$.getValue(),ut=this.interactiveController.getHistoryState();$e&&me.push("REPLAY_BUTTON"),this.interactiveController.getIsSeekable().getValue()||me.push("SEEK_TO_INTERACTIVE_BUTTON"),ut.hasPrevChapter$.getValue()||(me.push("PLAY_PREV_CHAPTER_BUTTON"),$e||(ut.isGoBackLimited$.getValue()?$="tooltip_interactive_go_back_disabled_limit":$="tooltip_interactive_go_back_disabled"))}let dt=()=>{this.isInited=!1,this.prevIsid=void 0;let $e=o?.info.isEnded$.getValue()&&this.interactiveController?.state.isEndChapter$.getValue();X.onReplayInteractiveVideo&&!$e?X.onReplayInteractiveVideo():this.replayInteractiveVideo()};this.store=Qm({player:o,interfaceLanguage:k,isCyrillicRelatedInterface:P,videoId:je,isClip:Y,isLiveCatchUpMode:de,isAudioDisabled:le,statAuthToken:a,callbacks:X,webApi:J,videoEpisodes:_e,previewThumbsData:Ue,canDownload:re,uiConfig:this.uiConfig,coreConfig:this.coreConfig,disabledControls:me,isInteractive:Ke,saveRate:se,interactiveRanges$:this.interactiveController?.state.interactiveRanges$,isInteractiveTime$:this.interactiveController?.state.isInteractiveTime$,replayInteractive:dt,playPrevChapterDisabledTooltip:$,hasInteractiveBranches:!!this.interactiveController?.getChapterBranches()?.length,additionalButtons:this.uiConfig.features.additionalButtons?N:[],additionalSettingsMenuItems:K??[],additionalContextMenuItems:ce??[],looped:oe&&this.videoConfig.videos.length===1,statistics:this.statistics});let{stores:mt}=this.microStoresRoot=L_();this.subscription.add(this.store.state.currentFormat$.subscribe($e=>X?.onCurrentFormatChanged?.($e))),this.subscription.add(mt.interactiveControlsOpacity$.subscribe($e=>{$e!==null&&this?.interactiveController?.setDisabledControls($e)})),this.subscription.add(this.store.state.throughputEstimation$.subscribe($e=>X?.onThroughputEstimationChanged?.($e))),this.subscription.add(this.store.state.trafficSavingEnabled$.subscribe($e=>X?.onTrafficSavingEnabledChanged?.($e))),this.subscription.add(this.store.state.currentPlaybackRate$.subscribe($e=>X?.onCurrentPlaybackRateChanged?.($e))),this.subscription.add(this.store.state.volume$.subscribe($e=>X?.onVolumeChange?.($e))),this.subscription.add(this.store.state.muted$.subscribe($e=>$e?X?.onMute?.():X?.onUnmute?.())),this.subscription.add(this.store.state.videoBitrate$.subscribe($e=>X?.onVideoBitrateChanged?.($e))),this.subscription.add(this.store.state.isInteractiveTime$.subscribe($e=>{let ut=this.store?.ui.controls.disabledControls$;ut&&($e&&!ut.includes(jr)&&ut.add(jr),$e||ut.remove(jr))})),this.subscription.add(this.store.ui.isFullscreen.subscribe(async $e=>{if(!Oi.clientChecker.isSamsungBrowser||!$e||!this.interactiveController)return;document.fullscreenElement===this.shadowRootContainer&&await this.replayInteractiveChapter(this.videoConfig?.callbacks.onExternalFullscreenExit)})),this.statistics&&this.subscription.add(this.statistics.oneStat.vsid$.subscribe($e=>X?.onVSIDChanged?.($e))),this.initMediaSession(),this.svelteRootComponent=new h_({target:this.playerContainer,props:{interactiveContainer:this.interactiveContainer,sources:ke,store:this.store,microStoresRoot:this.microStoresRoot,videoConfig:this.videoConfig,uiConfig:this.uiConfig,title:Re,thumbUrl:ze,subtitles:tt,live:rt,preload:s,autoplay:u,muted:p,volume:f,fromTime:g,canRewindLive:y,supportLink:h,showAds:C,adsSlotId:w,adsParams:Je,adsPreviewParam:T,duration:fe,logoClickable:G,logoHidden:W,isMobile:z,failoverHosts:te,fullScreenTarget:L,saveRate:se,shadowRootContainer:this.shadowRootContainer,showMiniTimer:q,outerContainerRef:this.rootContainer,showNextPrevButtons:this.needToShowNextPrevButtons(),nextButtonActive:this.isNextButtonActive(),prevButtonActive:this.isPrevButtonActive(),endScreenVideoTitle:Ye.nextVideoTitle,endScreenVideoThumb:Ye.nextVideoThumb,isOneVideoPlaylist:this.isOneVideoPlaylist(),playNextVideo:()=>this.playNextVideo(),playPrevVideo:()=>this.playPrevVideo(),repeatPlaylist:()=>this.repeatPlaylist(),playPrevChapter:()=>this.playPrevChapter(),seekToInteractive:()=>this.seekToInteractive(),toggleGraph:()=>this.toggleGraph(),volumeMultiplier:qe,showEndScreen:Ve}}),this.addPlayerInfoSubscriptions(),this.isInited||(this.isInited=!0,this.videoConfig?.callbacks?.onInited?.())}addPlayerInfoSubscriptions(){let t=this.store;if(!t)return;let n=this.videoConfig?.callbacks;n&&this.subscription.add(t.playerPhase.subscribe(l=>n.onPlayerPhaseChanged?.(l))).add(t.state.playbackState$.subscribe(l=>n.onPlaybackStateChanged?.(l))).add(t.state.isLive$.subscribe(l=>n.onIsLiveChanged?.(l))).add(t.state.isActiveLive$.subscribe(l=>n.onIsActiveLiveChanged?.(l))).add(t.state.isAudioAvailable$.subscribe(l=>n.onIsAudioAvailableChanged?.(l))).add(t.state.currentQuality$.subscribe(l=>n.onCurrentQualityChanged?.(l))).add(t.state.availableQualities$.subscribe(l=>n.onAvailableQualitiesChanged?.(l.map(({value:r})=>r).filter(r=>r!=="auto")))).add(t.state.availableAudioStreams$.subscribe(l=>{l.length>1&&n.onAudioLanguagesAvailable&&n.onAudioLanguagesAvailable()})).add(t.ui.isPictureInPictureActive$.subscribe(l=>l?n.onPiPEnter?.():n.onPiPExit?.()));let o=n?.uiInfo;o&&this.subscription.add(t.ui.controlsVisible.subscribe(l=>o.onControlsVisibleChanged?.(l))).add(t.ui.isMobile.subscribe(l=>o.onIsMobileChanged?.(l))).add(t.ui.playerSize.subscribe(l=>o.onPlayerSizeChanged?.(l))).add(t.ui.controls.prevButton.subscribe(l=>o.onPrevButtonChanged?.(l))).add(t.ui.controls.playButton.subscribe(l=>o.onPlayButtonChanged?.(l))).add(t.ui.controls.replayButton.subscribe(l=>o.onReplayButtonChanged?.(l))).add(t.ui.controls.nextButton.subscribe(l=>o.onNextButtonChanged?.(l))).add(t.ui.controls.playPrevChapterButton.subscribe(l=>o.onPlayPrevChapterChanged?.(l))).add(t.ui.controls.seekToInteractiveButton.subscribe(l=>o.onSeekToInteractiveButtonChanged?.(l))).add(t.ui.controls.interactiveGraphButton.subscribe(l=>o.onGraphButtonChanged?.(l))).add(t.ui.controls.liveButton.subscribe(l=>o.onLiveButtonChanged?.(l))).add(t.ui.controls.time.subscribe(l=>o.onTimeUpdateChanged?.(l))).add(t.ui.controls.episodes.subscribe(l=>o.onEpisodesChanged?.(l))).add(t.ui.controls.subtitles.subscribe(l=>o.onSubtitlesChanged?.(l))).add(t.ui.controls.settings.subscribe(l=>o.onSettingsChanged?.(l))).add(t.ui.controls.fullscreen.subscribe(l=>o.onFullscreenChanged?.(l))).add(t.ui.controls.chromecast.subscribe(l=>o.onChromecastChanged?.(l))).add(t.ui.controls.pip.subscribe(l=>o.onPipChanged?.(l))).add(t.ui.controls.vkLogo.subscribe(l=>o.onVkLogoChanged?.(l))).add(t.ui.controls.interactiveTimeIndicator.subscribe(l=>o.onInteractiveTimeIndicatorChanged?.(l))).add(t.ui.controls.timeline.subscribe(l=>o.onTimelineChanged?.(l)))}playNextVideo(){if(!this.videoConfig)return;let t=!0;if(this.videoConfig.callbacks?.onNextVideoClick)try{t=this.videoConfig.callbacks.onNextVideoClick()}catch{this.log({message:"onNextVideoClick callback failed to execute"})}t&&(this.currentPlayingVideoIndex++,this.currentPlayingVideoIndex>=this.videoConfig.videos.length&&(this.currentPlayingVideoIndex=0),this.log({message:`play next video, index: ${this.currentPlayingVideoIndex}`}),this.createPlayerWithCurrentVideo())}playPrevVideo(){if(!this.videoConfig)return;let t=!0;if(this.videoConfig.callbacks?.onPrevVideoClick)try{t=this.videoConfig.callbacks.onPrevVideoClick()}catch{this.log({message:"onPrevVideoClick callback failed to execute"})}t&&(this.currentPlayingVideoIndex--,this.currentPlayingVideoIndex<0&&(this.currentPlayingVideoIndex=this.videoConfig.videos.length-1),this.log({message:`play prev video, index: ${this.currentPlayingVideoIndex}`}),this.createPlayerWithCurrentVideo())}repeatPlaylist(){this.currentPlayingVideoIndex=0,this.log({message:"repeat playlist"}),this.createPlayerWithCurrentVideo()}createPlayerWithCurrentVideo(t,n=!0){if(!this.videoConfig)return;let o=this.videoConfig.videos[this.currentPlayingVideoIndex];if(!o){this.log({message:"no next video"});return}this.isInited&&(0,Oi.isNonNullable)(o.unitedVideoId)&&this.store.actions.internal.nextMovie(o.unitedVideoId),this.svelteRootComponent?.$destroy(),this.createPlayer(o,{autoplay:n,fromTime:0},t)}playPrevChapter(){this.interactiveController?.playPrevChapter()}seekToInteractive(){let t=this.interactiveController?.getNextInteractiveStartTime();typeof t=="number"&&this.seekTime(t/1e3)}toggleGraph(){if(!this.isInited)return;let t=this.store,{isEnded$:n,playbackState$:o,graphIsOpened$:l}=t.state,{disabledControls$:r}=t.ui.controls,a=Xe(n),s=Xe(o);Xe(l)?(l.set(!1),this.interactiveController?.toggleGraphView(!1),r.remove(Gs),!a&&this.graphMadePause&&this.play()):(this.graphMadePause=s==="playing",l.set(!0),this.interactiveController?.toggleGraphView(!0),r.add(Gs),!a&&this.graphMadePause&&this.pause())}async initInteractives(){if(this.videoConfig?.interactiveData)try{let{Interactives:t,EVENT_NAMES:n,CustomError:o}=await import("@vkontakte/videoplayer-interactive");this.interactiveContainer=document.createElement("div"),this.interactiveContainer.classList.add("interactiveContainer");let l=this.store?.interfaceLanguage$,r=l?Xe(l):this.videoConfig.interfaceLanguage,{projectInfo:a,initChapterId:s,historyApi:u,videoLoader:f}=this.videoConfig.interactiveData;this.interactiveController=new t({parentElement:this.interactiveContainer,fullscreenTargetElement:this.playerContainer,lang:r,graph:this.uiConfig.features.interactiveGraph,projectInfo:a,initChapterId:s,historyApi:u,vkVideoLoader:f,lastFrame:this.uiConfig.features.interactiveLastFrame,permanentTextControls:this.uiConfig.features.interactiveTextPermanent,initSeamless:!0,config:this.uiConfig.interactive,coreConfig:this.coreConfig,createOneStat:this.createOneStat});let{isInteractiveExpectation$:p,isSeekable$:g}=this.interactiveController.state;this.uiConfig.features.seekToInteractive&&this.subscription.add(g.subscribe(h=>{if(!this.isInited)return;let C=this.store;h?C.ui.controls.disabledControls$.remove("SEEK_TO_INTERACTIVE_BUTTON"):C.ui.controls.disabledControls$.add("SEEK_TO_INTERACTIVE_BUTTON")})),this.subscription.add(p.subscribe(h=>{this.store&&this.store.state.isInteractiveExpectation$.set(h)}));let y=!0;if(this.interactiveController.on(n.playerChanged,h=>{if(!this.videoConfig)return;this.videoConfig.videos[this.currentPlayingVideoIndex]={...h.config,title:a?.title||h.config.title};let C=y?this.videoConfig.autoplay:!0;this.createPlayerWithCurrentVideo(h.player,C),y&&(y=!1)}),this.interactiveController.on(n.interactives,({type:h,actionType:C})=>{if(!this.store)return;let w=p.getValue();if(h==="action-choice"&&C==="setRandomBranch"&&(this.store.state.graphIsOpened$.set(!1),this.store.ui.controls.disabledControls$.remove(_l)),h==="action-choice-canceled"){let F=Xe(this.store.state.isPlaying$)||w;if(this.videoConfig?.isMobile&&F){this.store.ui.interactiveHideMobileControls.set(!0);return}this.videoConfig?.callbacks.onDisabledInteractiveClick?.()}}),await this.interactiveController.setManifest(this.videoConfig.interactiveData.manifest),this.videoConfig?.callbacks?.onInteractiveHistoryChanged){let h=this.interactiveController.getHistoryState();this.subscription.add(h.history$.subscribe(C=>{C.length&&this.videoConfig?.callbacks?.onInteractiveHistoryChanged?.(C)}))}this.uiConfig.features.interactiveTimeIndicator&&this.subscription.add(this.interactiveController.events.noInteraction$.subscribe(()=>{this.microStoresRoot?.stores.showInteractiveTimeIndicatorTooltip$.set(!0,!0),this.videoConfig?.callbacks.onInteractiveTimeIndicatorClick?.()})),this.interactiveController.on(n.errors,h=>{this.log({message:h.toString()})})}catch(t){this.log({message:t.message})}}initPlayer(t,n={}){if(!Array.isArray(t.videos)||t.videos.length===0&&!t.interactiveData)throw new Error("empty videos");this.videoConfig=Vs(q8,(0,Oi.cloneDeepWith)(t,o=>o instanceof HTMLElement?o:void 0)),this.uiConfig=Sf(n.ui??{}),this.coreConfig=n.core??{configName:[]},this.statisticsConfig=n.statistics??{},this.sentry={config:this.uiConfig.sentry??{}},(0,Oi.isNonNullable)(this.videoConfig.isMediaSessionEnabled)&&(this.uiConfig.features.mediaSession=this.uiConfig.features.mediaSession??this.videoConfig.isMediaSessionEnabled??!0),(0,Oi.isNonNullable)(this.videoConfig.isPictureInPictureEnabled)&&(this.uiConfig.features.pip=this.uiConfig.features.pip??this.videoConfig.isPictureInPictureEnabled??!0,this.uiConfig.features.dpip=this.uiConfig.features.dpip??this.videoConfig.isPictureInPictureEnabled??!0),this.videoConfig.isMobile=this.uiConfig.isMobile??this.videoConfig.isMobile,this.videoConfig.autoplay&&=this.uiConfig.features.autoplay,this.videoConfig.showAds=this.uiConfig.ads.enable??this.videoConfig.showAds,this.videoConfig.adsSlotId=this.uiConfig.ads.slot??this.videoConfig.adsSlotId,this.videoConfig.adsPreviewParam=this.uiConfig.ads.preview??this.videoConfig.adsPreviewParam,this.videoConfig.logoHidden=!(this.uiConfig.showLogo??!this.videoConfig.logoHidden),this.videoConfig.canRewindLive&&=this.uiConfig.features.liveRewind,this.videoConfig.supportLink=this.videoConfig.supportLink??this.uiConfig.supportLink,this.currentPlayingVideoIndex=0,this.needToRepeatPlaylist=this.videoConfig.repeat,this.uiConfig.features.pip&&(this.uiConfig.features.dpip?this.pictureInPictureApi=Ls.getLatestSupportedVersion():this.pictureInPictureApi=new qo),this.mediaSessionApi=this.uiConfig.features.mediaSession?new As:void 0,this.annotationsApi=this.uiConfig.features.annotations?new Rs:void 0,this.annotationsApi&&!this.uiConfig.features.annotationsInside&&this.annotationsApi.init(this.rootContainer),this.svelteStubComponent?.$destroy(),this.svelteRootComponent?.$destroy(),this.isInited=!1,this.prevIsid=void 0,this.interactiveController&&(this.interactiveController.destroy(),this.interactiveController=void 0),t.interactiveData?this.initInteractives():this.createPlayer(t.videos[0]),T_(this.pictureInPictureApi)&&this.pictureInPictureApi.setPlayerDomElement(this.playerContainer,this._shadowRoot)}isOneVideoPlaylist(){return this.videoConfig?this.videoConfig.videos.length===1:!1}updateNextVideos(t){if(!this.videoConfig)return;this.log({message:`update next videos, videos: ${JSON.stringify(t)}`}),this.videoConfig.videos.splice(this.currentPlayingVideoIndex+1),this.videoConfig.videos.push(...t);let n=this.getNextVideoInfo();this.svelteRootComponent?.$set({showNextPrevButtons:this.needToShowNextPrevButtons(),nextButtonActive:this.isNextButtonActive(),prevButtonActive:this.isPrevButtonActive(),endScreenVideoTitle:n.nextVideoTitle,endScreenVideoThumb:n.nextVideoThumb,isOneVideoPlaylist:this.isOneVideoPlaylist()})}initMediaSession(){this.mediaSessionApi&&(this.unsubscribePlayerPhaseSubscription?.(),this.mediaSessionApi.clearSubscriptions(),this.unsubscribePlayerPhaseSubscription=this.store?.playerPhase.subscribe(t=>{t==="video"?this.setupMediaSessionForVideo():t==="ads"&&this.setupMediaSessionForAds()}))}setupMediaSessionForVideo(){if(!(!this.videoConfig||!this.mediaSessionApi))try{let{title:t,thumbUrl:n}={...this.videoConfig.videos[this.currentPlayingVideoIndex]},o=[["play",()=>this.play()],["pause",()=>this.pause()],["seekto",l=>this.seekTime(l.seekTime)]];this.videoConfig.videos.length>1&&(this.currentPlayingVideoIndex<this.videoConfig.videos.length-1&&o.push(["nexttrack",()=>this.playNextVideo()]),this.currentPlayingVideoIndex>0&&o.push(["previoustrack",()=>this.playPrevVideo()])),this.mediaSessionApi.setMetaData({title:t,thumbUrl:n}),this.mediaSessionApi.updateActionHandlers(o),this.mediaSessionApi.attachToStore(this.store)}catch(t){this.log({message:t.message})}}setupMediaSessionForAds(){if(!(!this.videoConfig||!this.mediaSessionApi))try{let t="\u0420\u0435\u043A\u043B\u0430\u043C\u0430",n=[["play",()=>this.play()],["pause",()=>this.pause()]];this.mediaSessionApi.setMetaData({title:t}),this.mediaSessionApi.updateActionHandlers(n),this.mediaSessionApi.attachToStore(this.store)}catch(t){this.log({message:t.message})}}play(){this.isControlDisabled("PLAY_BUTTON")||this.store?.playerPhase.is("LiveWaitingStart")||this.store?.playerPhase.is("LiveWaitingRecover")||this.store?.playerPhase.is("LiveWaitingRecord")||(this.log({message:"play"}),this.svelteRootComponent?.play())}pause(){this.log({message:"pause"}),this.svelteRootComponent?.pause()}stop(){if(!this.videoConfig)return;this.log({message:"stop"}),this.svelteStubComponent?.$destroy(),this.mediaSessionApi?.destroy();let t=this.videoConfig.videos[0];t&&(this.svelteRootComponent?.$destroy(),this.createPlayer(t))}setMuted(t){this.log({message:`set muted, muted: ${t}`}),this.svelteRootComponent?.setMuted(t)}setVolume(t){this.log({message:`set volume, volume: ${t}`}),this.svelteRootComponent?.setVolume(t)}setRepeat(t){this.log({message:`set repeat, repeat: ${t}`}),this.needToRepeatPlaylist=t,this.svelteRootComponent?.$set({needToRepeatPlaylist:this.needToRepeatPlaylist,showNextPrevButtons:this.needToShowNextPrevButtons(),nextButtonActive:this.isNextButtonActive(),prevButtonActive:this.isPrevButtonActive()})}seekTime(t){this.isControlDisabled("TIMELINE")||(this.log({message:`seek time, time: ${t}`}),this.svelteRootComponent?.seekTime(t))}seekEpisodeStartTime(t){this.log({message:`seek episode start time, time: ${t}`}),this.svelteRootComponent?.seekEpisodeStartTime(t)}returnFocusToEpisodes(){this.log({message:"return focus to episodes button"}),this.svelteRootComponent?.returnFocusToEpisodes()}setPlaybackRate(t){this.log({message:`set playback rate to: ${t}`}),this.svelteRootComponent?.setPlaybackRate(t)}setAutoQualityLimits(t){this.log({message:`set auto quality limitation. Max: ${t.max??"none"}. Min: ${t.min??"none"}`}),this.svelteRootComponent?.setAutoQualityLimits(t)}addLanguage(t){this.store?.actions.internal.addLanguage(t)}async setLanguage(t){await this.store?.actions.internal.setLanguage(t)}setLiveStart(t){this.log({message:"live started"}),this.store?.actions.internal.setLiveWaitingRecover(!1),this.store?.actions.internal.setLiveWaitingStart(!1),this.svelteRootComponent?.$destroy(),this.createPlayer(t,{autoplay:!0})}setLiveWaitingRecover(){this.log({message:"live waiting"}),this.store?.actions.internal.setLiveWaitingRecover(!0),this.store?.destroy()}setLiveWaitingRecord(){this.log({message:"post live"}),this.store?.actions.internal.setLiveWaitingRecord(!0),this.store?.destroy()}setLiveEnd(t){this.log({message:"live ended"}),this.store?.actions.internal.setLiveWaitingRecover(!1),this.store?.actions.internal.setLiveWaitingRecord(!1),this.svelteRootComponent?.$destroy(),this.createPlayer(t,{autoplay:!1})}getDeviceId(){return this.statistics?.oneStat.getDeviceId()??void 0}replayInteractiveVideo(){this.interactiveController&&this.interactiveController.setChapter()}async replayInteractiveChapter(t){if(this.interactiveController&&this.store?.state.positionExact$){let{EVENT_NAMES:n}=await import("@vkontakte/videoplayer-interactive"),o=Xe(this.store.state.positionExact$),r=Xe(this.store.state.interactiveEpisodes$).find(s=>!s.completed);this.interactiveController.once(n.playerChanged,()=>{r&&o>=r.time?this.seekTime(r.time):this.seekTime(o),t?.()});let a=this.interactiveController.getCurrentChapter();await this.interactiveController.setChapter({chapterId:a.chapter.id,pushToHistory:!1})}}showInteractiveIndicatorTooltip(t,n=!1){this.microStoresRoot?.stores.showInteractiveTimeIndicatorTooltip$.set(t,n)}switchToActiveLive(){this.store?.actions.internal.switchToActiveLive()}updateAdditionalSettingsItem(t,n){this.store?.actions.external.updateAdditionalSettingsItem(t,n)}addAdditionalSettingsItem(t){this.store?.actions.external.addAdditionalSettingsItem(t)}removeAdditionalSettingsItem(t){this.store?.actions.external.removeAdditionalSettingsItem(t)}updateAdditionalContextItem(t,n){this.store?.actions.external.updateAdditionalContextItem(t,n)}addAdditionalContextItem(t){this.store?.actions.external.addAdditionalContextItem(t)}removeAdditionalContextItem(t){this.store?.actions.external.removeAdditionalContextItem(t)}updateStatContext(t){this.statistics&&this.statistics.oneStat.updateContext(t)}};var Br=require("@vkontakte/videoplayer-shared"),Ns=require("@vkontakte/videoplayer-core"),H8=()=>{window.customElements.define("vk-video-player",Ds)};