@vkontakte/videoplayer 1.1.13 → 1.1.14

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/es2015.esm.js CHANGED
@@ -1,6 +1,6 @@
1
1
  /**
2
- * @vkontakte/videoplayer v1.1.13
3
- * Mon, 09 Jan 2023 10:11:29 GMT
4
- * https://st.mycdn.me/static/vkontakte-videoplayer/1-1-13/doc/
2
+ * @vkontakte/videoplayer v1.1.14
3
+ * Thu, 19 Jan 2023 10:11:16 GMT
4
+ * https://st.mycdn.me/static/vkontakte-videoplayer/1-1-14/doc/
5
5
  */
6
- import{VideoQuality as e,PlaybackState as t,ChromecastState as i,Player as n,VideoFormat as o}from'@vkontakte/videoplayer-core/es2015.esm.js';import l from'lodash/debounce.js';import{assertNonNullable as a,checkNever as s,Subject as r,addScript as c,Subscription as d,Logger as u,isNonNullable as v,merge as p}from'@vkontakte/videoplayer-shared/es2015.esm.js';import{OneStat as m,ApiEnv as h}from'@vkontakte/videoplayer-statistics/es2015.esm.js';import g from'lodash/cloneDeepWith.js';function f(){}function b(e){return e()}function w(){return Object.create(null)}function $(e){e.forEach(b)}function y(e){return'function'==typeof e}function x(e,t){return e!=e?t==t:e!==t||e&&'object'==typeof e||'function'==typeof e}let k,V;function P(e,t){return k||(k=document.createElement('a')),k.href=t,e===k.href}function z(e,...t){if(null==e)return f;const i=e.subscribe(...t);return i.unsubscribe?()=>i.unsubscribe():i}function A(e){let t;return z(e,(e=>t=e))(),t}function C(e,t,i){e.$$.on_destroy.push(z(t,i))}function S(e,t,i,n){return e[1]&&n?function(e,t){for(const i in t)e[i]=t[i];return e}(i.ctx.slice(),e[1](n(t))):i.ctx}function M(e){return null==e?'':e}function L(e,t){e.appendChild(t)}function N(e,t,i){const n=function(e){if(!e)return document;const t=e.getRootNode?e.getRootNode():e.ownerDocument;if(t&&t.host)return t;return e.ownerDocument}(e);if(!n.getElementById(t)){const e=B('style');e.id=t,e.textContent=i,function(e,t){L(e.head||e,t)}(n,e)}}function q(e,t,i){e.insertBefore(t,i||null)}function T(e){e.parentNode.removeChild(e)}function E(e,t){for(let i=0;i<e.length;i+=1)e[i]&&e[i].d(t)}function B(e){return document.createElement(e)}function I(e){return document.createElementNS('http://www.w3.org/2000/svg',e)}function F(e){return document.createTextNode(e)}function j(){return F(' ')}function R(){return F('')}function H(e,t,i,n){return e.addEventListener(t,i,n),()=>e.removeEventListener(t,i,n)}function _(e){return function(t){return t.preventDefault(),e.call(this,t)}}function D(e,t,i){null==i?e.removeAttribute(t):e.getAttribute(t)!==i&&e.setAttribute(t,i)}function U(e,t){t=''+t,e.wholeText!==t&&(e.data=t)}function O(e,t,i,n){null===i?e.style.removeProperty(t):e.style.setProperty(t,i,n?'important':'')}function Q(e,t,i){e.classList[i?'add':'remove'](t)}function W(e){V=e}function K(){if(!V)throw new Error('Function called outside component initialization');return V}function Y(e){K().$$.on_mount.push(e)}function X(e,t){const i=e.$$.callbacks[t.type];i&&i.slice().forEach((e=>e.call(this,t)))}const G=[],J=[],Z=[],ee=[],te=Promise.resolve();let ie=!1;function ne(e){Z.push(e)}const oe=new Set;let le=0;function ae(){const e=V;do{for(;le<G.length;){const e=G[le];le++,W(e),se(e.$$)}for(W(null),G.length=0,le=0;J.length;)J.pop()();for(let e=0;e<Z.length;e+=1){const t=Z[e];oe.has(t)||(oe.add(t),t())}Z.length=0}while(G.length);for(;ee.length;)ee.pop()();ie=!1,oe.clear(),W(e)}function se(e){if(null!==e.fragment){e.update(),$(e.before_update);const t=e.dirty;e.dirty=[-1],e.fragment&&e.fragment.p(e.ctx,t),e.after_update.forEach(ne)}}const re=new Set;let ce;function de(){ce={r:0,c:[],p:ce}}function ue(){ce.r||$(ce.c),ce=ce.p}function ve(e,t){e&&e.i&&(re.delete(e),e.i(t))}function pe(e,t,i,n){if(e&&e.o){if(re.has(e))return;re.add(e),ce.c.push((()=>{re.delete(e),n&&(i&&e.d(1),n())})),e.o(t)}else n&&n()}const me='undefined'!=typeof window?window:'undefined'!=typeof globalThis?globalThis:global;function he(e){e&&e.c()}function ge(e,t,i,n){const{fragment:o,on_mount:l,on_destroy:a,after_update:s}=e.$$;o&&o.m(t,i),n||ne((()=>{const t=l.map(b).filter(y);a?a.push(...t):$(t),e.$$.on_mount=[]})),s.forEach(ne)}function fe(e,t){const i=e.$$;null!==i.fragment&&($(i.on_destroy),i.fragment&&i.fragment.d(t),i.on_destroy=i.fragment=null,i.ctx=[])}function be(e,t){-1===e.$$.dirty[0]&&(G.push(e),ie||(ie=!0,te.then(ae)),e.$$.dirty.fill(0)),e.$$.dirty[t/31|0]|=1<<t%31}function we(e,t,i,n,o,l,a,s=[-1]){const r=V;W(e);const c=e.$$={fragment:null,ctx:null,props:l,update:f,not_equal:o,bound:w(),on_mount:[],on_destroy:[],on_disconnect:[],before_update:[],after_update:[],context:new Map(t.context||(r?r.$$.context:[])),callbacks:w(),dirty:s,skip_bound:!1,root:t.target||r.$$.root};a&&a(c.root);let d=!1;if(c.ctx=i?i(e,t.props||{},((t,i,...n)=>{const l=n.length?n[0]:i;return c.ctx&&o(c.ctx[t],c.ctx[t]=l)&&(!c.skip_bound&&c.bound[t]&&c.bound[t](l),d&&be(e,t)),i})):[],c.update(),d=!0,$(c.before_update),c.fragment=!!n&&n(c.ctx),t.target){if(t.hydrate){const e=function(e){return Array.from(e.childNodes)}(t.target);c.fragment&&c.fragment.l(e),e.forEach(T)}else c.fragment&&c.fragment.c();t.intro&&ve(e.$$.fragment),ge(e,t.target,t.anchor,t.customElement),ae()}W(r)}class $e{$destroy(){fe(this,1),this.$destroy=f}$on(e,t){const i=this.$$.callbacks[e]||(this.$$.callbacks[e]=[]);return i.push(t),()=>{const e=i.indexOf(t);-1!==e&&i.splice(e,1)}}$set(e){var t;this.$$set&&(t=e,0!==Object.keys(t).length)&&(this.$$.skip_bound=!0,this.$$set(e),this.$$.skip_bound=!1)}}const ye=[];function xe(e,t){return{subscribe:ke(e,t).subscribe}}function ke(e,t=f){let i;const n=new Set;function o(t){if(x(e,t)&&(e=t,i)){const t=!ye.length;for(const t of n)t[1](),ye.push(t,e);if(t){for(let e=0;e<ye.length;e+=2)ye[e][0](ye[e+1]);ye.length=0}}}return{set:o,update:function(t){o(t(e))},subscribe:function(l,a=f){const s=[l,a];return n.add(s),1===n.size&&(i=t(o)||f),l(e),()=>{n.delete(s),0===n.size&&(i(),i=null)}}}}function Ve(e,t,i){const n=!Array.isArray(e),o=n?[e]:e,l=t.length<2;return xe(i,(e=>{let i=!1;const a=[];let s=0,r=f;const c=()=>{if(s)return;r();const i=t(n?a[0]:a,e);l?e(i):r=y(i)?i:f},d=o.map(((e,t)=>z(e,(e=>{a[t]=e,s&=~(1<<t),i&&c()}),(()=>{s|=1<<t}))));return i=!0,c(),function(){$(d),r()}}))}const Pe=Symbol('storeContext'),ze=e=>{var t,i;t=Pe,i=e,K().$$.context.set(t,i)},Ae=()=>{const e=(t=Pe,K().$$.context.get(t));var t;return a(e,'Store context is empty!'),e},Ce=(e,t)=>xe(e.getValue(),(i=>{const n=e.subscribe((e=>{i(e),null==t||t(e)}));return()=>n.unsubscribe()})),Se='https://vk.com/support?act=new&from=v';var Me;!function(e){e.ArrowLeft='ArrowLeft',e.ArrowUp='ArrowUp',e.ArrowRight='ArrowRight',e.ArrowDown='ArrowDown',e.Comma='Comma',e.Period='Period',e.Space='Space',e.KeyM='KeyM',e.KeyF='KeyF',e.KeyK='KeyK',e.KeyL='KeyL',e.KeyJ='KeyJ'}(Me||(Me={}));var Le='data:image/svg+xml,%3csvg width=\'24\' height=\'24\' fill=\'none\' xmlns=\'http://www.w3.org/2000/svg\'%3e%3cpath d=\'M13.25 2.833c.222.74.378 1.479 1.574 2.19a.574.574 0 0 0 .12.05c1.355.35 2.028-.021 2.654-.439.663-.442.86-.314 1.124-.053l.644.643c.294.294.412.412 0 1.178-.366.68-.779 1.313-.435 2.662a.469.469 0 0 0 .05.12c.71 1.206 1.448 1.418 2.186 1.566.78.156.83.386.833.757v.91c0 .416 0 .583-.833.833-.74.222-1.479.378-2.19 1.574a.469.469 0 0 0-.05.12c-.35 1.355.021 2.028.439 2.654.442.663.314.86.053 1.124l-.643.644c-.294.294-.412.412-1.178 0-.68-.366-1.313-.779-2.662-.435a.464.464 0 0 0-.12.05c-1.206.71-1.418 1.448-1.566 2.186-.156.78-.386.83-.757.833h-.91c-.416 0-.583 0-.833-.833-.222-.74-.378-1.479-1.574-2.19a.468.468 0 0 0-.12-.05c-1.355-.35-2.028.021-2.654.439-.663.442-.86.314-1.124.053l-.644-.643c-.294-.294-.412-.412 0-1.178.366-.68.779-1.313.435-2.662a.466.466 0 0 0-.05-.12c-.71-1.206-1.448-1.418-2.186-1.566-.78-.156-.83-.386-.833-.757v-.91c0-.416 0-.583.833-.833.74-.222 1.479-.378 2.19-1.574a.467.467 0 0 0 .05-.12c.35-1.355-.021-2.028-.439-2.654-.442-.663-.314-.86-.053-1.124l.643-.644c.294-.294.412-.412 1.178 0 .68.366 1.313.779 2.662.435a.467.467 0 0 0 .12-.05c1.206-.71 1.418-1.448 1.566-2.186.156-.78.386-.83.757-.833h.91c.416 0 .583 0 .833.833zM12 7.25a4.75 4.75 0 1 0 0 9.5 4.75 4.75 0 0 0 0-9.5z\' fill=\'white\'/%3e%3c/svg%3e',Ne='data:image/svg+xml,%3csvg height=\'16\' width=\'16\' xmlns=\'http://www.w3.org/2000/svg\'%3e%3cpath 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\' fill=\'white\'/%3e%3c/svg%3e',qe='data:image/svg+xml,%3csvg width=\'12\' height=\'16\' fill=\'none\' xmlns=\'http://www.w3.org/2000/svg\'%3e%3cpath d=\'m5.773 8 3.363 3.364a.9.9 0 1 1-1.272 1.272l-4-4a.9.9 0 0 1 0-1.272l4-4a.9.9 0 0 1 1.272 1.272L5.773 8z\' fill=\'white\'/%3e%3c/svg%3e';const Te=e=>{if(document.queryCommandSupported&&document.queryCommandSupported('copy')){const t=document.createElement('textarea');t.textContent=e,t.style.position='absolute',t.style.top='-9999px',document.body.appendChild(t),t.select();try{document.execCommand('copy')}finally{document.body.removeChild(t)}}};function Ee(e){N(e,'v-1f29v8g','ul.v-1f29v8g.v-1f29v8g{margin:0;padding:0}.menu.v-1f29v8g.v-1f29v8g{background-color:rgba(17, 17, 17, 0.8);border-radius:8px;line-height:40px;transition:opacity 0.2s, visibility 0.2s;overflow:hidden}.container-mobile.v-1f29v8g.v-1f29v8g{width:100%}.menu-desktop.v-1f29v8g.v-1f29v8g{position:absolute;right:0;bottom:0}.menu-mobile.v-1f29v8g.v-1f29v8g{width:100%;background:var(--videplayer-mobile-settings-bg);font-size:15px;line-height:50px}.hidden.v-1f29v8g.v-1f29v8g{visibility:hidden;opacity:0}.menu-mobile.hidden.v-1f29v8g.v-1f29v8g{display:none}.menu-subList.v-1f29v8g.v-1f29v8g{min-width:134px;padding-bottom:0}.item.v-1f29v8g.v-1f29v8g{align-items:center;color:var(--white);cursor:pointer;display:flex;justify-content:flex-end;padding:0 24px 0 18px;white-space:nowrap;position:relative}.item-mobile.v-1f29v8g.v-1f29v8g{padding:0 14px}.item-quality.item-mobile.v-1f29v8g.v-1f29v8g{flex-direction:row-reverse}.quality-title-mobile.v-1f29v8g.v-1f29v8g{flex-grow:1}.item.v-1f29v8g.v-1f29v8g:hover{background-color:rgba(255, 255, 255, 0.08)}.item-mobile.v-1f29v8g.v-1f29v8g:hover{background:var(--videplayer-mobile-settings-bg)}.menu-subList.v-1f29v8g .item.v-1f29v8g{color:rgba(255, 255, 255, 0.9)}.menu-subList.v-1f29v8g .item.v-1f29v8g:last-child{margin-bottom:4px}.menu-icon.v-1f29v8g.v-1f29v8g{margin-right:16px}.menu-title.v-1f29v8g.v-1f29v8g{flex-grow:1;margin-right:24px;overflow:hidden;text-overflow:ellipsis}.menu-value.v-1f29v8g.v-1f29v8g{position:relative;opacity:0.7}.menu-valueIcon.v-1f29v8g.v-1f29v8g{position:absolute;top:10px;margin-left:4px;width:15px}.menu-valueIcon-list.v-1f29v8g.v-1f29v8g{position:absolute;top:12px;width:15px;right:6px}.menu-divider.v-1f29v8g.v-1f29v8g{background-color:rgba(255, 255, 255, 0.3);height:1px;margin-bottom:4px}.menu-header.v-1f29v8g.v-1f29v8g{color:var(--white);cursor:pointer;justify-content:space-between;display:flex}.menu-header-back-icon.v-1f29v8g.v-1f29v8g{width:16px;height:24px}.menu-header.v-1f29v8g:hover .menu-header-back-icon.v-1f29v8g{opacity:0.8;transition:opacity 0.2s}.itemIcon.v-1f29v8g.v-1f29v8g{margin-right:auto;opacity:0.9}.items.v-1f29v8g.v-1f29v8g::-webkit-scrollbar{width:8px}.items.v-1f29v8g.v-1f29v8g::-webkit-scrollbar-track{box-shadow:none;background-color:#3a3a3a;border-radius:4px}.items.v-1f29v8g.v-1f29v8g::-webkit-scrollbar-thumb{min-height:40px;border-radius:5px;background-color:#666;border:1px solid transparent;background-clip:padding-box}.items.v-1f29v8g.v-1f29v8g::-webkit-scrollbar-thumb:hover{background-color:#777}.items-mobile.v-1f29v8g.v-1f29v8g{overflow-y:auto;max-height:160px;text-align:left}.close.v-1f29v8g.v-1f29v8g{position:relative;width:12px;height:12px;padding:12px;margin-right:-12px}.close.v-1f29v8g.v-1f29v8g:before,.close.v-1f29v8g.v-1f29v8g:after{position:absolute;left:18px;content:\' \';height:12px;width:2px;background-color:var(--white)}.close.v-1f29v8g.v-1f29v8g:before{transform:rotate(45deg)}.close.v-1f29v8g.v-1f29v8g:after{transform:rotate(-45deg)}')}function Be(e,t,i){const n=e.slice();return n[42]=t[i],n}function Ie(e,t,i){const n=e.slice();return n[45]=t[i],n}function Fe(e){let t,i,n,o,l,a,s,r;return{c(){t=B('div'),i=B('div'),i.textContent='Настройки',n=j(),o=B('div'),l=j(),a=B('div'),D(o,'class','close v-1f29v8g'),D(t,'class','item menu-header v-1f29v8g'),Q(t,'item-mobile',e[0]),D(a,'class','menu-divider v-1f29v8g')},m(c,d){q(c,t,d),L(t,i),L(t,n),L(t,o),q(c,l,d),q(c,a,d),s||(r=H(o,'click',e[22]),s=!0)},p(e,i){1&i[0]&&Q(t,'item-mobile',e[0])},d(e){e&&T(t),e&&T(l),e&&T(a),s=!1,r()}}}function je(e){let t,i;return{c(){t=B('img'),D(t,'class','menu-valueIcon v-1f29v8g'),P(t.src,i=e[6])||D(t,'src',i),D(t,'alt','')},m(e,i){q(e,t,i)},p(e,n){64&n[0]&&!P(t.src,i=e[6])&&D(t,'src',i)},d(e){e&&T(t)}}}function Re(e){let t,i,n,o,l,a,s,r,c,d,u;return{c(){t=B('li'),i=B('img'),o=j(),l=B('div'),l.textContent='Скорость',a=j(),s=B('div'),r=F(e[10]),c=F('x'),D(i,'class','menu-icon v-1f29v8g'),P(i.src,n='data:image/svg+xml,%3csvg height=\'24\' width=\'24\' xmlns=\'http://www.w3.org/2000/svg\'%3e%3cg fill=\'none\' fill-rule=\'evenodd\'%3e%3cpath d=\'M0 0h24v24H0z\'/%3e%3cpath d=\'M11 4.07V2.05c-2.01.2-3.84 1-5.32 2.21L7.1 5.69A7.941 7.941 0 0 1 11 4.07zM5.69 7.1 4.26 5.68A9.949 9.949 0 0 0 2.05 11h2.02c.18-1.46.76-2.79 1.62-3.9zM2.05 13c.2 2.01 1 3.84 2.21 5.32l1.43-1.43A7.868 7.868 0 0 1 4.07 13zM11 21.95v-2.02a7.941 7.941 0 0 1-3.9-1.62l-1.42 1.43A9.981 9.981 0 0 0 11 21.95zM22 12c0 5.16-3.92 9.42-8.95 9.95v-2.02C16.97 19.41 20 16.05 20 12s-3.03-7.41-6.95-7.93V2.05C18.08 2.58 22 6.84 22 12zM10.688 8.576l4.746 2.736a.792.792 0 0 1 0 1.372l-4.746 2.737a.792.792 0 0 1-1.188-.686V9.262a.792.792 0 0 1 1.188-.686z\' fill=\'white\' fill-rule=\'nonzero\'/%3e%3c/g%3e%3c/svg%3e')||D(i,'src','data:image/svg+xml,%3csvg height=\'24\' width=\'24\' xmlns=\'http://www.w3.org/2000/svg\'%3e%3cg fill=\'none\' fill-rule=\'evenodd\'%3e%3cpath d=\'M0 0h24v24H0z\'/%3e%3cpath d=\'M11 4.07V2.05c-2.01.2-3.84 1-5.32 2.21L7.1 5.69A7.941 7.941 0 0 1 11 4.07zM5.69 7.1 4.26 5.68A9.949 9.949 0 0 0 2.05 11h2.02c.18-1.46.76-2.79 1.62-3.9zM2.05 13c.2 2.01 1 3.84 2.21 5.32l1.43-1.43A7.868 7.868 0 0 1 4.07 13zM11 21.95v-2.02a7.941 7.941 0 0 1-3.9-1.62l-1.42 1.43A9.981 9.981 0 0 0 11 21.95zM22 12c0 5.16-3.92 9.42-8.95 9.95v-2.02C16.97 19.41 20 16.05 20 12s-3.03-7.41-6.95-7.93V2.05C18.08 2.58 22 6.84 22 12zM10.688 8.576l4.746 2.736a.792.792 0 0 1 0 1.372l-4.746 2.737a.792.792 0 0 1-1.188-.686V9.262a.792.792 0 0 1 1.188-.686z\' fill=\'white\' fill-rule=\'nonzero\'/%3e%3c/g%3e%3c/svg%3e'),D(i,'alt',''),D(l,'class','menu-title v-1f29v8g'),D(s,'class','menu-value v-1f29v8g'),D(t,'class','item v-1f29v8g'),D(t,'role','menuitemradio'),D(t,'tabindex','0'),Q(t,'item-mobile',e[0])},m(n,v){q(n,t,v),L(t,i),L(t,o),L(t,l),L(t,a),L(t,s),L(s,r),L(s,c),d||(u=H(t,'click',e[26]),d=!0)},p(e,i){1024&i[0]&&U(r,e[10]),1&i[0]&&Q(t,'item-mobile',e[0])},d(e){e&&T(t),d=!1,u()}}}function He(e){let t,i,n,o,l,a,s,r,c,d,u,v,p,m,h,g,b,w,y;return{c(){t=B('li'),i=B('img'),o=j(),l=B('div'),l.textContent='Сообщить о проблеме',a=j(),s=B('li'),r=B('img'),d=j(),u=B('div'),u.textContent='Копировать данные для диагностики',v=j(),p=B('li'),m=B('img'),g=j(),b=B('div'),b.textContent='Техническая информация',D(i,'class','menu-icon v-1f29v8g'),P(i.src,n='data:image/svg+xml,%3csvg width=\'24\' height=\'24\' fill=\'none\' xmlns=\'http://www.w3.org/2000/svg\'%3e%3cpath fill-rule=\'evenodd\' clip-rule=\'evenodd\' d=\'M8.863 2.1h6.274c.674-.002 1.2.211 1.683.697l4.383 4.383c.478.476.699.998.697 1.683v6.274c.002.685-.22 1.207-.697 1.683l-4.383 4.383c-.476.478-.998.699-1.683.697H8.863c-.685.002-1.207-.22-1.683-.697L2.797 16.82c-.478-.476-.699-.998-.697-1.683V8.863c-.002-.685.22-1.207.697-1.683L7.18 2.797c.484-.486 1.009-.699 1.683-.697zm-.445 2.005L4.105 8.418c-.18.18-.205.242-.205.495v6.174c0 .25.025.316.205.495l4.313 4.313c.179.179.24.205.495.205h6.174c.253 0 .316-.026.495-.205l4.313-4.313c.18-.18.205-.245.205-.495V8.913c0-.254-.026-.316-.205-.495l-4.313-4.313c-.18-.18-.242-.205-.495-.205H8.913c-.254 0-.319.029-.495.205zM13 16a1 1 0 1 1-2 0 1 1 0 0 1 2 0zm-.1-8.1a.9.9 0 0 0-1.8 0v5.2a.9.9 0 1 0 1.8 0V7.9z\' fill=\'white\'/%3e%3c/svg%3e')||D(i,'src','data:image/svg+xml,%3csvg width=\'24\' height=\'24\' fill=\'none\' xmlns=\'http://www.w3.org/2000/svg\'%3e%3cpath fill-rule=\'evenodd\' clip-rule=\'evenodd\' d=\'M8.863 2.1h6.274c.674-.002 1.2.211 1.683.697l4.383 4.383c.478.476.699.998.697 1.683v6.274c.002.685-.22 1.207-.697 1.683l-4.383 4.383c-.476.478-.998.699-1.683.697H8.863c-.685.002-1.207-.22-1.683-.697L2.797 16.82c-.478-.476-.699-.998-.697-1.683V8.863c-.002-.685.22-1.207.697-1.683L7.18 2.797c.484-.486 1.009-.699 1.683-.697zm-.445 2.005L4.105 8.418c-.18.18-.205.242-.205.495v6.174c0 .25.025.316.205.495l4.313 4.313c.179.179.24.205.495.205h6.174c.253 0 .316-.026.495-.205l4.313-4.313c.18-.18.205-.245.205-.495V8.913c0-.254-.026-.316-.205-.495l-4.313-4.313c-.18-.18-.242-.205-.495-.205H8.913c-.254 0-.319.029-.495.205zM13 16a1 1 0 1 1-2 0 1 1 0 0 1 2 0zm-.1-8.1a.9.9 0 0 0-1.8 0v5.2a.9.9 0 1 0 1.8 0V7.9z\' fill=\'white\'/%3e%3c/svg%3e'),D(i,'alt',''),D(l,'class','menu-title v-1f29v8g'),D(t,'class','item item-mobile v-1f29v8g'),D(t,'role','menuitemradio'),D(t,'tabindex','0'),D(r,'class','menu-icon v-1f29v8g'),P(r.src,c='data:image/svg+xml,%3csvg width=\'24\' height=\'24\' fill=\'none\' xmlns=\'http://www.w3.org/2000/svg\'%3e%3cpath fill-rule=\'evenodd\' clip-rule=\'evenodd\' 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 4H16.812a2.073 2.073 0 0 0-.174-.49 2.4 2.4 0 0 0-1.048-1.048 2.439 2.439 0 0 0-.931-.239 13.48 13.48 0 0 0-1.026-.023H12.26c-1.576 0-2.814 0-3.81.081-1.014.083-1.856.255-2.62.644A6.65 6.65 0 0 0 2.926 5.83c-.389.763-.56 1.605-.644 2.62-.081.995-.081 2.233-.081 3.809v1.373c0 .392 0 .738.023 1.025.025.306.081.623.239.931a2.4 2.4 0 0 0 1.048 1.05c.162.082.326.136.49.173V12.3zM10.08 6h-.035c-.52 0-.964 0-1.329.03-.383.03-.755.097-1.112.276a2.9 2.9 0 0 0-1.298 1.298c-.179.357-.246.73-.277 1.112C6 9.081 6 9.524 6 10.046v7.909c0 .52 0 .964.03 1.329.03.382.097.755.276 1.112a2.9 2.9 0 0 0 1.298 1.298c.357.179.73.246 1.112.277.365.029.808.029 1.329.029h6.91c.52 0 .964 0 1.329-.03.382-.03.755-.097 1.112-.276a2.9 2.9 0 0 0 1.298-1.298c.179-.357.246-.73.277-1.112.029-.365.029-.808.029-1.33v-7.909c0-.52 0-.964-.03-1.329-.03-.382-.097-.755-.276-1.112a2.9 2.9 0 0 0-1.298-1.298c-.357-.179-.73-.246-1.112-.277C17.919 6 17.476 6 16.954 6H10.08zM8.408 7.916c.065-.032.179-.07.452-.093.284-.022.655-.023 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.093-.284.022-.655.023-1.22.023h-6.84c-.565 0-.936 0-1.22-.023-.273-.023-.387-.06-.452-.093a1.1 1.1 0 0 1-.492-.492c-.032-.065-.07-.18-.093-.452a17.057 17.057 0 0 1-.023-1.22v-7.84c0-.565 0-.936.023-1.22.022-.273.06-.387.093-.452a1.1 1.1 0 0 1 .492-.492z\' fill=\'white\'/%3e%3c/svg%3e')||D(r,'src','data:image/svg+xml,%3csvg width=\'24\' height=\'24\' fill=\'none\' xmlns=\'http://www.w3.org/2000/svg\'%3e%3cpath fill-rule=\'evenodd\' clip-rule=\'evenodd\' 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 4H16.812a2.073 2.073 0 0 0-.174-.49 2.4 2.4 0 0 0-1.048-1.048 2.439 2.439 0 0 0-.931-.239 13.48 13.48 0 0 0-1.026-.023H12.26c-1.576 0-2.814 0-3.81.081-1.014.083-1.856.255-2.62.644A6.65 6.65 0 0 0 2.926 5.83c-.389.763-.56 1.605-.644 2.62-.081.995-.081 2.233-.081 3.809v1.373c0 .392 0 .738.023 1.025.025.306.081.623.239.931a2.4 2.4 0 0 0 1.048 1.05c.162.082.326.136.49.173V12.3zM10.08 6h-.035c-.52 0-.964 0-1.329.03-.383.03-.755.097-1.112.276a2.9 2.9 0 0 0-1.298 1.298c-.179.357-.246.73-.277 1.112C6 9.081 6 9.524 6 10.046v7.909c0 .52 0 .964.03 1.329.03.382.097.755.276 1.112a2.9 2.9 0 0 0 1.298 1.298c.357.179.73.246 1.112.277.365.029.808.029 1.329.029h6.91c.52 0 .964 0 1.329-.03.382-.03.755-.097 1.112-.276a2.9 2.9 0 0 0 1.298-1.298c.179-.357.246-.73.277-1.112.029-.365.029-.808.029-1.33v-7.909c0-.52 0-.964-.03-1.329-.03-.382-.097-.755-.276-1.112a2.9 2.9 0 0 0-1.298-1.298c-.357-.179-.73-.246-1.112-.277C17.919 6 17.476 6 16.954 6H10.08zM8.408 7.916c.065-.032.179-.07.452-.093.284-.022.655-.023 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.093-.284.022-.655.023-1.22.023h-6.84c-.565 0-.936 0-1.22-.023-.273-.023-.387-.06-.452-.093a1.1 1.1 0 0 1-.492-.492c-.032-.065-.07-.18-.093-.452a17.057 17.057 0 0 1-.023-1.22v-7.84c0-.565 0-.936.023-1.22.022-.273.06-.387.093-.452a1.1 1.1 0 0 1 .492-.492z\' fill=\'white\'/%3e%3c/svg%3e'),D(r,'alt',''),D(u,'class','menu-title v-1f29v8g'),D(s,'class','item item-mobile v-1f29v8g'),D(s,'role','menuitemradio'),D(s,'tabindex','0'),D(m,'class','menu-icon v-1f29v8g'),P(m.src,h='data:image/svg+xml,%3csvg width=\'24\' height=\'24\' fill=\'none\' xmlns=\'http://www.w3.org/2000/svg\'%3e%3cpath d=\'M12 20.105a8.105 8.105 0 1 0 0-16.21 8.105 8.105 0 0 0 0 16.21zM12 22C6.477 22 2 17.523 2 12S6.477 2 12 2s10 4.477 10 10-4.477 10-10 10zm0-12.372a1.316 1.316 0 1 1 0-2.632 1.316 1.316 0 0 1 0 2.632zm-.947 2.822c0-.541.424-.98.947-.98.523 0 .947.439.947.98v3.83c0 .54-.424.98-.947.98-.523 0-.947-.44-.947-.98v-3.83z\' fill=\'white\'/%3e%3c/svg%3e')||D(m,'src','data:image/svg+xml,%3csvg width=\'24\' height=\'24\' fill=\'none\' xmlns=\'http://www.w3.org/2000/svg\'%3e%3cpath d=\'M12 20.105a8.105 8.105 0 1 0 0-16.21 8.105 8.105 0 0 0 0 16.21zM12 22C6.477 22 2 17.523 2 12S6.477 2 12 2s10 4.477 10 10-4.477 10-10 10zm0-12.372a1.316 1.316 0 1 1 0-2.632 1.316 1.316 0 0 1 0 2.632zm-.947 2.822c0-.541.424-.98.947-.98.523 0 .947.439.947.98v3.83c0 .54-.424.98-.947.98-.523 0-.947-.44-.947-.98v-3.83z\' fill=\'white\'/%3e%3c/svg%3e'),D(m,'alt',''),D(b,'class','menu-title v-1f29v8g'),D(p,'class','item item-mobile v-1f29v8g'),D(p,'role','menuitemradio'),D(p,'tabindex','0')},m(n,c){q(n,t,c),L(t,i),L(t,o),L(t,l),q(n,a,c),q(n,s,c),L(s,r),L(s,d),L(s,u),q(n,v,c),q(n,p,c),L(p,m),L(p,g),L(p,b),w||(y=[H(t,'click',e[28]),H(s,'click',e[29]),H(p,'click',e[30])],w=!0)},p:f,d(e){e&&T(t),e&&T(a),e&&T(s),e&&T(v),e&&T(p),w=!1,$(y)}}}function _e(e){let t,i;return{c(){t=B('img'),D(t,'class','itemIcon v-1f29v8g'),P(t.src,i=Ne)||D(t,'src','data:image/svg+xml,%3csvg height=\'16\' width=\'16\' xmlns=\'http://www.w3.org/2000/svg\'%3e%3cpath 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\' fill=\'white\'/%3e%3c/svg%3e'),D(t,'alt','')},m(e,i){q(e,t,i)},p:f,d(e){e&&T(t)}}}function De(e){let t,i;return{c(){t=B('img'),D(t,'class','menu-valueIcon-list v-1f29v8g'),P(t.src,i=e[31](e[45].value))||D(t,'src',i),D(t,'alt','')},m(e,i){q(e,t,i)},p(e,n){2&n[0]&&!P(t.src,i=e[31](e[45].value))&&D(t,'src',i)},d(e){e&&T(t)}}}function Ue(e){let t,i,n,o,l,a,s,r,c,d=e[45].displayValue+'',u=e[45].selected&&_e(),v=!e[0]&&De(e);function p(){return e[37](e[45])}return{c(){t=B('li'),u&&u.c(),i=j(),n=B('div'),o=F(d),l=j(),v&&v.c(),a=j(),D(n,'class','v-1f29v8g'),Q(n,'quality-title-mobile',e[0]),D(t,'class','item item-quality v-1f29v8g'),D(t,'data-value',s=e[45].value),D(t,'role','menuitemradio'),D(t,'tabindex','0'),Q(t,'item-mobile',e[0])},m(e,s){q(e,t,s),u&&u.m(t,null),L(t,i),L(t,n),L(n,o),L(t,l),v&&v.m(t,null),L(t,a),r||(c=H(t,'click',p),r=!0)},p(l,r){(e=l)[45].selected?u?u.p(e,r):(u=_e(),u.c(),u.m(t,i)):u&&(u.d(1),u=null),2&r[0]&&d!==(d=e[45].displayValue+'')&&U(o,d),1&r[0]&&Q(n,'quality-title-mobile',e[0]),e[0]?v&&(v.d(1),v=null):v?v.p(e,r):(v=De(e),v.c(),v.m(t,a)),2&r[0]&&s!==(s=e[45].value)&&D(t,'data-value',s),1&r[0]&&Q(t,'item-mobile',e[0])},d(e){e&&T(t),u&&u.d(),v&&v.d(),r=!1,c()}}}function Oe(e){let t,i;return{c(){t=B('img'),D(t,'class','itemIcon v-1f29v8g'),P(t.src,i=Ne)||D(t,'src','data:image/svg+xml,%3csvg height=\'16\' width=\'16\' xmlns=\'http://www.w3.org/2000/svg\'%3e%3cpath 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\' fill=\'white\'/%3e%3c/svg%3e'),D(t,'alt','')},m(e,i){q(e,t,i)},p:f,d(e){e&&T(t)}}}function Qe(e){let t,i,n,o,l,a,s,r,c=e[42].displayValue+'',d=e[42].selected&&Oe();function u(){return e[38](e[42])}return{c(){t=B('li'),d&&d.c(),i=j(),n=B('div'),o=F(c),l=j(),D(n,'class','v-1f29v8g'),Q(n,'quality-title-mobile',e[0]),D(t,'class','item item-quality v-1f29v8g'),D(t,'data-value',a=e[42].value),D(t,'role','menuitemradio'),D(t,'tabindex','0'),Q(t,'item-mobile',e[0])},m(e,a){q(e,t,a),d&&d.m(t,null),L(t,i),L(t,n),L(n,o),L(t,l),s||(r=H(t,'click',u),s=!0)},p(l,s){(e=l)[42].selected?d?d.p(e,s):(d=Oe(),d.c(),d.m(t,i)):d&&(d.d(1),d=null),2048&s[0]&&c!==(c=e[42].displayValue+'')&&U(o,c),1&s[0]&&Q(n,'quality-title-mobile',e[0]),2048&s[0]&&a!==(a=e[42].value)&&D(t,'data-value',a),1&s[0]&&Q(t,'item-mobile',e[0])},d(e){e&&T(t),d&&d.d(),s=!1,r()}}}function We(e){let t,i,n,o,l,a,s,r,c,d,u,v,p,m,h,g,b,w,y,x,k,V,z,A,C,S,M,N,I,R,_,O,W,K,Y,X,G,J,Z,ee=e[0]&&Fe(e),te=e[6]&&!e[0]&&je(e),ie=!e[9]&&Re(e),ne=e[0]&&He(e),oe=e[1],le=[];for(let t=0;t<oe.length;t+=1)le[t]=Ue(Ie(e,oe,t));let ae=e[11],se=[];for(let t=0;t<ae.length;t+=1)se[t]=Qe(Be(e,ae,t));return{c(){t=B('div'),i=B('div'),ee&&ee.c(),n=j(),o=B('ul'),l=B('li'),a=B('img'),r=j(),c=B('div'),c.textContent='Качество',d=j(),u=B('div'),v=F(e[7]),p=j(),te&&te.c(),m=j(),ie&&ie.c(),h=j(),ne&&ne.c(),g=j(),b=B('div'),w=B('div'),y=B('img'),k=j(),V=B('div'),V.textContent='Качество',z=j(),A=B('div'),C=j(),S=B('ul');for(let e=0;e<le.length;e+=1)le[e].c();M=j(),N=B('div'),I=B('div'),R=B('img'),O=j(),W=B('div'),W.textContent='Скорость',K=j(),Y=B('div'),X=j(),G=B('ul');for(let e=0;e<se.length;e+=1)se[e].c();D(a,'class','menu-icon v-1f29v8g'),P(a.src,s=Le)||D(a,'src','data:image/svg+xml,%3csvg width=\'24\' height=\'24\' fill=\'none\' xmlns=\'http://www.w3.org/2000/svg\'%3e%3cpath d=\'M13.25 2.833c.222.74.378 1.479 1.574 2.19a.574.574 0 0 0 .12.05c1.355.35 2.028-.021 2.654-.439.663-.442.86-.314 1.124-.053l.644.643c.294.294.412.412 0 1.178-.366.68-.779 1.313-.435 2.662a.469.469 0 0 0 .05.12c.71 1.206 1.448 1.418 2.186 1.566.78.156.83.386.833.757v.91c0 .416 0 .583-.833.833-.74.222-1.479.378-2.19 1.574a.469.469 0 0 0-.05.12c-.35 1.355.021 2.028.439 2.654.442.663.314.86.053 1.124l-.643.644c-.294.294-.412.412-1.178 0-.68-.366-1.313-.779-2.662-.435a.464.464 0 0 0-.12.05c-1.206.71-1.418 1.448-1.566 2.186-.156.78-.386.83-.757.833h-.91c-.416 0-.583 0-.833-.833-.222-.74-.378-1.479-1.574-2.19a.468.468 0 0 0-.12-.05c-1.355-.35-2.028.021-2.654.439-.663.442-.86.314-1.124.053l-.644-.643c-.294-.294-.412-.412 0-1.178.366-.68.779-1.313.435-2.662a.466.466 0 0 0-.05-.12c-.71-1.206-1.448-1.418-2.186-1.566-.78-.156-.83-.386-.833-.757v-.91c0-.416 0-.583.833-.833.74-.222 1.479-.378 2.19-1.574a.467.467 0 0 0 .05-.12c.35-1.355-.021-2.028-.439-2.654-.442-.663-.314-.86-.053-1.124l.643-.644c.294-.294.412-.412 1.178 0 .68.366 1.313.779 2.662.435a.467.467 0 0 0 .12-.05c1.206-.71 1.418-1.448 1.566-2.186.156-.78.386-.83.757-.833h.91c.416 0 .583 0 .833.833zM12 7.25a4.75 4.75 0 1 0 0 9.5 4.75 4.75 0 0 0 0-9.5z\' fill=\'white\'/%3e%3c/svg%3e'),D(a,'alt',''),D(c,'class','menu-title v-1f29v8g'),D(u,'class','menu-value v-1f29v8g'),D(l,'class','item v-1f29v8g'),D(l,'role','menuitemradio'),D(l,'tabindex','0'),Q(l,'item-mobile',e[0]),D(o,'class','items v-1f29v8g'),Q(o,'items-mobile',e[0]),D(i,'class','menu v-1f29v8g'),D(i,'role','menu'),Q(i,'menu-desktop',!e[0]),Q(i,'menu-mobile',e[0]),Q(i,'hidden',!e[3]),P(y.src,x=qe)||D(y,'src','data:image/svg+xml,%3csvg width=\'12\' height=\'16\' fill=\'none\' xmlns=\'http://www.w3.org/2000/svg\'%3e%3cpath d=\'m5.773 8 3.363 3.364a.9.9 0 1 1-1.272 1.272l-4-4a.9.9 0 0 1 0-1.272l4-4a.9.9 0 0 1 1.272 1.272L5.773 8z\' fill=\'white\'/%3e%3c/svg%3e'),D(y,'class','menu-header-back-icon v-1f29v8g'),D(y,'alt',''),D(w,'class','item menu-header v-1f29v8g'),Q(w,'item-mobile',e[0]),D(A,'class','menu-divider v-1f29v8g'),D(S,'class','items v-1f29v8g'),D(S,'style',e[8]),Q(S,'items-mobile',e[0]),D(b,'class','menu menu-subList v-1f29v8g'),Q(b,'menu-desktop',!e[0]),Q(b,'menu-mobile',e[0]),Q(b,'hidden',!e[4]),P(R.src,_=qe)||D(R,'src','data:image/svg+xml,%3csvg width=\'12\' height=\'16\' fill=\'none\' xmlns=\'http://www.w3.org/2000/svg\'%3e%3cpath d=\'m5.773 8 3.363 3.364a.9.9 0 1 1-1.272 1.272l-4-4a.9.9 0 0 1 0-1.272l4-4a.9.9 0 0 1 1.272 1.272L5.773 8z\' fill=\'white\'/%3e%3c/svg%3e'),D(R,'class','menu-header-back-icon v-1f29v8g'),D(R,'alt',''),D(I,'class','item menu-header v-1f29v8g'),Q(I,'item-mobile',e[0]),D(Y,'class','menu-divider v-1f29v8g'),D(G,'class','items v-1f29v8g'),Q(G,'items-mobile',e[0]),D(N,'class','menu menu-subList v-1f29v8g'),Q(N,'menu-desktop',!e[0]),Q(N,'menu-mobile',e[0]),Q(N,'hidden',!e[5]),D(t,'class','v-1f29v8g'),Q(t,'hidden',!e[2]),Q(t,'container-mobile',e[0])},m(s,f){q(s,t,f),L(t,i),ee&&ee.m(i,null),L(i,n),L(i,o),L(o,l),L(l,a),L(l,r),L(l,c),L(l,d),L(l,u),L(u,v),L(u,p),te&&te.m(u,null),L(o,m),ie&&ie.m(o,null),L(o,h),ne&&ne.m(o,null),L(t,g),L(t,b),L(b,w),L(w,y),L(w,k),L(w,V),L(b,z),L(b,A),L(b,C),L(b,S);for(let e=0;e<le.length;e+=1)le[e].m(S,null);L(t,M),L(t,N),L(N,I),L(I,R),L(I,O),L(I,W),L(N,K),L(N,Y),L(N,X),L(N,G);for(let e=0;e<se.length;e+=1)se[e].m(G,null);J||(Z=[H(l,'click',e[23]),H(w,'click',e[27]),H(I,'click',e[27])],J=!0)},p(e,a){if(e[0]?ee?ee.p(e,a):(ee=Fe(e),ee.c(),ee.m(i,n)):ee&&(ee.d(1),ee=null),128&a[0]&&U(v,e[7]),e[6]&&!e[0]?te?te.p(e,a):(te=je(e),te.c(),te.m(u,null)):te&&(te.d(1),te=null),1&a[0]&&Q(l,'item-mobile',e[0]),e[9]?ie&&(ie.d(1),ie=null):ie?ie.p(e,a):(ie=Re(e),ie.c(),ie.m(o,h)),e[0]?ne?ne.p(e,a):(ne=He(e),ne.c(),ne.m(o,null)):ne&&(ne.d(1),ne=null),1&a[0]&&Q(o,'items-mobile',e[0]),1&a[0]&&Q(i,'menu-desktop',!e[0]),1&a[0]&&Q(i,'menu-mobile',e[0]),8&a[0]&&Q(i,'hidden',!e[3]),1&a[0]&&Q(w,'item-mobile',e[0]),16777219&a[0]|1&a[1]){let t;for(oe=e[1],t=0;t<oe.length;t+=1){const i=Ie(e,oe,t);le[t]?le[t].p(i,a):(le[t]=Ue(i),le[t].c(),le[t].m(S,null))}for(;t<le.length;t+=1)le[t].d(1);le.length=oe.length}if(256&a[0]&&D(S,'style',e[8]),1&a[0]&&Q(S,'items-mobile',e[0]),1&a[0]&&Q(b,'menu-desktop',!e[0]),1&a[0]&&Q(b,'menu-mobile',e[0]),16&a[0]&&Q(b,'hidden',!e[4]),1&a[0]&&Q(I,'item-mobile',e[0]),33556481&a[0]){let t;for(ae=e[11],t=0;t<ae.length;t+=1){const i=Be(e,ae,t);se[t]?se[t].p(i,a):(se[t]=Qe(i),se[t].c(),se[t].m(G,null))}for(;t<se.length;t+=1)se[t].d(1);se.length=ae.length}1&a[0]&&Q(G,'items-mobile',e[0]),1&a[0]&&Q(N,'menu-desktop',!e[0]),1&a[0]&&Q(N,'menu-mobile',e[0]),32&a[0]&&Q(N,'hidden',!e[5]),4&a[0]&&Q(t,'hidden',!e[2]),1&a[0]&&Q(t,'container-mobile',e[0])},i:f,o:f,d(e){e&&T(t),ee&&ee.d(),te&&te.d(),ie&&ie.d(),ne&&ne.d(),E(le,e),E(se,e),J=!1,$(Z)}}}function Ke(t,i,n){let o,l,a,s,r,c,d,u,v,p,{supportLink:m}=i;const h=Ae(),g=h.state.currentQuality$;C(t,g,(e=>n(36,c=e)));const f=h.state.availableQualities$;C(t,f,(e=>n(1,r=e)));const b=h.state.isAutoQualityEnabled$;C(t,b,(e=>n(35,s=e)));const w=h.state.currentPlaybackRate$;C(t,w,(e=>n(10,v=e)));const $=h.state.availablePlaybackRates$;C(t,$,(e=>n(11,p=e)));const y=h.ui.settingsMenuVisible;C(t,y,(e=>n(2,d=e)));const x=h.ui.isMobile;C(t,x,(e=>n(0,a=e)));const k=h.ui.isFullscreen;C(t,k,(e=>n(34,l=e)));const V=h.state.isLive$;C(t,V,(e=>n(9,u=e)));const P=h.ui.playerSize;C(t,P,(e=>n(33,o=e)));const z=h.ui.debugPanelVisible;let A,S,M,L=!0,N=!1,q=!1;function T(){y.set(!1)}function E(e){h.actions.internal.setQuality(e),T()}function B(e){h.actions.internal.setPlaybackRate(e),T()}function I(t){switch(t){case e.Q_720P:return'data:image/svg+xml,%3csvg width=\'15\' height=\'5\' fill=\'none\' xmlns=\'http://www.w3.org/2000/svg\'%3e%3cpath d=\'M5.516 5h1.107C8.103 5 9 4.065 9 2.5S8.103 0 6.623 0H5.516C5.191 0 5 .2 5 .537V4.46c0 .342.191.54.516.54zm.516-.854V.852H6.5C7.41.852 8 1.468 8 2.5c0 1.066-.577 1.646-1.5 1.646h-.468zM.516 5c.325 0 .516-.198.516-.536V2.922h1.936v1.542c0 .338.191.536.516.536S4 4.802 4 4.464V.54C4 .198 3.809 0 3.484 0s-.516.198-.516.54v1.531H1.032V.54C1.032.198.841 0 .516 0S0 .198 0 .54v3.989C0 4.867.191 5 .516 5z\' fill=\'%2370C1FF\'/%3e%3c/svg%3e';case e.Q_1080P:return'data:image/svg+xml,%3csvg width=\'15\' height=\'5\' fill=\'none\' xmlns=\'http://www.w3.org/2000/svg\'%3e%3cpath d=\'M9.516 5h1.107C12.103 5 13 4.065 13 2.5S12.103 0 10.623 0H9.516C9.191 0 9 .2 9 .537V4.46c0 .342.191.54.516.54zm.516-.854V.852h.468c.91 0 1.5.616 1.5 1.648 0 1.066-.577 1.646-1.5 1.646h-.468zM4.516 5c.325 0 .516-.198.516-.536V2.922h1.936v1.542c0 .338.191.536.516.536S8 4.802 8 4.464V.54C8 .198 7.809 0 7.484 0s-.516.198-.516.54v1.531H5.032V.54c0-.342-.191-.54-.516-.54S4 .198 4 .54v3.989c0 .338.191.471.516.471zm-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 5z\' fill=\'%2370C1FF\'/%3e%3c/svg%3e';case e.Q_1440P:return'data:image/svg+xml,%3csvg width=\'15\' height=\'6\' fill=\'none\' xmlns=\'http://www.w3.org/2000/svg\'%3e%3cpath d=\'M11.516 5h1.107C14.103 5 15 4.065 15 2.5S14.103 0 12.623 0h-1.107C11.191 0 11 .2 11 .537V4.46c0 .342.191.54.516.54zm.516-.854V.852h.468c.91 0 1.5.616 1.5 1.648 0 1.066-.577 1.646-1.5 1.646h-.468zM6.516 5c.325 0 .516-.198.516-.536V2.922h1.936v1.542c0 .338.191.536.516.536S10 4.802 10 4.464V.54C10 .198 9.809 0 9.484 0s-.516.198-.516.54v1.531H7.032V.54c0-.342-.191-.54-.516-.54S6 .198 6 .54v3.989c0 .338.191.471.516.471z\' fill=\'%2370C1FF\'/%3e%3cpath fill-rule=\'evenodd\' clip-rule=\'evenodd\' d=\'M3.338 4.909A3.9 3.9 0 0 1 2.5 5C1.037 5 0 4.135 0 2.553 0 .983 1.037 0 2.5 0 3.96 0 5 .984 5 2.553c0 .863-.274 1.46-.778 1.88l.194.29a.5.5 0 0 1-.832.554l-.246-.368zm-.52-.78-.234-.352a.5.5 0 1 1 .832-.554l.245.367c.184-.26.286-.615.286-1.037C3.947 1.517 3.307.9 2.5.9c-.81 0-1.447.617-1.447 1.653 0 1.032.637 1.596 1.447 1.596.08 0 .208-.007.318-.02z\' fill=\'%2370C1FF\'/%3e%3c/svg%3e';case e.Q_2160P:return'data:image/svg+xml,%3csvg width=\'15\' height=\'6\' fill=\'none\' xmlns=\'http://www.w3.org/2000/svg\'%3e%3cpath d=\'M5.517 5c.325 0 .516-.198.516-.536v-.97l.492-.517 1.46 1.74c.16.205.304.283.516.283A.491.491 0 0 0 9 4.501c0-.14-.068-.287-.222-.478l-1.47-1.73L8.818.868C8.949.731 9 .618 9 .475A.474.474 0 0 0 8.515 0c-.171 0-.301.065-.445.222L6.064 2.25h-.03V.54c0-.342-.192-.54-.517-.54s-.516.198-.516.54v3.924c0 .338.191.536.516.536z\' fill=\'%2370C1FF\'/%3e%3cpath fill-rule=\'evenodd\' clip-rule=\'evenodd\' d=\'m2.551 1.052-1.51 2.052h1.51V1.052zM3.5 3.104V.832c0-.81-1.089-1.14-1.556-.48L.139 2.821a.75.75 0 0 0 .612 1.183h1.8v.55c0 .248.25.45.499.45a.45.45 0 0 0 .45-.45v-.55h.052a.45.45 0 0 0 0-.9H3.5z\' fill=\'%2370C1FF\'/%3e%3c/svg%3e';case e.Q_4320P:return'data:image/svg+xml,%3csvg width=\'15\' height=\'5\' fill=\'none\' xmlns=\'http://www.w3.org/2000/svg\'%3e%3cpath d=\'M5.513 5c.323 0 .513-.198.513-.537v-.97l.49-.516L7.99 4.715c.16.205.302.284.513.284A.49.49 0 0 0 9 4.5c0-.14-.068-.287-.22-.478L7.293 2.293 8.82.868C8.949.731 9 .618 9 .475A.473.473 0 0 0 8.517 0c-.17 0-.299.065-.441.222L6.056 2.25h-.03V.54c0-.342-.19-.54-.513-.54S5 .198 5 .54v3.923c0 .339.19.537.513.537z\' fill=\'%2370C1FF\'/%3e%3cpath fill-rule=\'evenodd\' clip-rule=\'evenodd\' d=\'M2 0c-.353 0-.671.057-.952.173a1.492 1.492 0 0 0-.654.484c-.154.208-.23.445-.23.71 0 .423.208.756.613.995a1.46 1.46 0 0 0-.547.44c-.154.203-.23.441-.23.71 0 .288.084.548.252.778l.001.001c.173.224.412.398.712.523C1.267 4.939 1.612 5 2 5c.388 0 .733-.061 1.035-.186.3-.125.537-.299.705-.524.174-.23.26-.49.26-.777 0-.27-.076-.508-.23-.711a1.448 1.448 0 0 0-.552-.44c.409-.235.618-.569.618-.994a1.14 1.14 0 0 0-.238-.711 1.436 1.436 0 0 0-.653-.484A2.427 2.427 0 0 0 2 0zm-.573.964C1.563.86 1.75.804 2 .804c.25 0 .434.055.564.16h.001a.512.512 0 0 1 .204.43.52.52 0 0 1-.204.437c-.13.105-.315.161-.565.161-.25 0-.437-.056-.573-.161a.519.519 0 0 1-.203-.437c0-.185.07-.326.203-.43zm-.345 2.522c0-.217.08-.381.233-.503.16-.122.385-.188.685-.188.3 0 .522.066.677.188.16.122.24.287.24.503a.628.628 0 0 1-.24.523c-.155.122-.377.188-.677.188-.3 0-.524-.065-.684-.187a.637.637 0 0 1-.234-.524z\' fill=\'%2370C1FF\'/%3e%3c/svg%3e'}}return t.$$set=e=>{'supportLink'in e&&n(32,m=e.supportLink)},t.$$.update=()=>{4&t.$$.dirty[0]&&d&&(n(3,L=!0),n(4,N=!1),n(5,q=!1)),32&t.$$.dirty[1]&&n(6,A=I(c)),2&t.$$.dirty[0]|48&t.$$.dirty[1]&&n(7,S=function(t,i,n){if(!t)return'...';const o=i.find((e=>e.value===t)),l=o?o.displayValue:t;return n?t===e.INVARIANT?'Авто':`Авто ${l}`:l}(c,r,s)),1&t.$$.dirty[0]|12&t.$$.dirty[1]&&n(8,M=a&&l?`max-height: ${Math.round(.6*o.height)}px`:'')},[a,r,d,L,N,q,A,S,M,u,v,p,g,f,b,w,$,y,x,k,V,P,T,function(){n(3,L=!1),n(4,N=!0)},E,B,function(){n(3,L=!1),n(5,q=!0)},function(){n(3,L=!0),n(4,N=!1),n(5,q=!1)},function(){window.open(m,'_blank'),T(),h.actions.internal.pause()},function(){Te(h.actions.internal.getDebugTextData()),T()},function(){z.set(!0),T()},I,m,o,l,s,c,e=>E(e.value),e=>B(e.value)]}class Ye extends $e{constructor(e){super(),we(this,e,Ke,We,x,{supportLink:32},Ee,[-1,-1])}}function Xe(e){N(e,'v-1qf7s4g','.settingsButton-icon.v-1qf7s4g{display:block;width:40px;height:24px}.settingsButton-icon.mobile.v-1qf7s4g{width:auto}')}function Ge(e){let t,i,n,o,l,a,s;return{c(){t=B('div'),i=B('div'),n=B('img'),P(n.src,o=e[7](e[2],e[1]))||D(n,'src',o),D(n,'alt',''),D(i,'class','settingsButton-icon v-1qf7s4g'),Q(i,'mobile',e[1]),D(t,'class',l=M(e[0])+' v-1qf7s4g'),D(t,'aria-label','Открыть настройки видеоплеера'),D(t,'tabindex','-1'),D(t,'role','button')},m(o,l){q(o,t,l),L(t,i),L(i,n),a||(s=H(t,'click',e[6]),a=!0)},p(e,[a]){6&a&&!P(n.src,o=e[7](e[2],e[1]))&&D(n,'src',o),2&a&&Q(i,'mobile',e[1]),1&a&&l!==(l=M(e[0])+' v-1qf7s4g')&&D(t,'class',l)},i:f,o:f,d(e){e&&T(t),a=!1,s()}}}function Je(t,i,n){let o,l,a,{className:s=''}=i;const r=Ae(),c=r.state.currentQuality$;C(t,c,(e=>n(2,a=e)));const d=r.ui.settingsMenuVisible;C(t,d,(e=>n(8,o=e)));const u=r.ui.isMobile;return C(t,u,(e=>n(1,l=e))),t.$$set=e=>{'className'in e&&n(0,s=e.className)},[s,l,a,c,d,u,function(){d.set(!o)},function(t,i){if(i)return Le;switch(t){case e.Q_720P:return'data:image/svg+xml,%3csvg width=\'34\' height=\'24\' fill=\'none\' xmlns=\'http://www.w3.org/2000/svg\'%3e%3cpath fill-rule=\'evenodd\' clip-rule=\'evenodd\' d=\'M13.933 4.875a.6.6 0 0 0-.07-.658c-.327-.413-.45-.833-.574-1.253l-.039-.13C13 2 12.833 2 12.417 2h-.91c-.371.003-.6.052-.757.833-.148.738-.36 1.476-1.566 2.186a.466.466 0 0 1-.12.05c-1.27.324-1.905-.023-2.542-.37l-.12-.065c-.766-.412-.884-.294-1.178 0l-.643.644c-.26.264-.389.461.053 1.124.418.626.789 1.299.438 2.654a.466.466 0 0 1-.05.12c-.668 1.126-1.362 1.33-2.058 1.535l-.13.039C2 11 2 11.167 2 11.583v.91c.003.371.052.6.833.757.738.148 1.476.36 2.186 1.566a.465.465 0 0 1 .05.12c.324 1.27-.023 1.905-.37 2.542l-.065.12c-.412.766-.294.884 0 1.178l.644.643c.264.26.461.389 1.124-.053.626-.418 1.299-.789 2.654-.438.041.01.083.028.12.05 1.126.668 1.33 1.362 1.535 2.058l.039.13c.25.834.417.834.833.834h.91c.371-.003.6-.052.757-.833.148-.738.36-1.476 1.566-2.186a.467.467 0 0 1 .12-.05c1.27-.324 1.905.023 2.542.37l.12.065c.766.412.884.294 1.178 0l.643-.644c.26-.264.389-.461-.053-1.124-.26-.39-.503-.799-.563-1.38a.598.598 0 0 0-.413-.519 7.464 7.464 0 0 1-1.918-.871.58.58 0 0 0-.758.134 4.75 4.75 0 1 1-3.163-7.68.581.581 0 0 0 .633-.44 7.448 7.448 0 0 1 .749-1.967z\' fill=\'white\'/%3e%3crect x=\'15\' y=\'3\' width=\'17\' height=\'11\' rx=\'5.5\' fill=\'%23689FF8\'/%3e%3cpath d=\'M24.516 11h1.107C27.103 11 28 10.066 28 8.5S27.103 6 25.623 6h-1.107c-.325 0-.516.2-.516.537v3.923c0 .342.191.54.516.54zm.516-.854V6.852h.468c.91 0 1.5.616 1.5 1.648 0 1.066-.577 1.646-1.5 1.646h-.468zM19.516 11c.325 0 .516-.198.516-.536V8.922h1.936v1.542c0 .338.191.537.516.537s.516-.199.516-.537V6.54c0-.342-.191-.54-.516-.54s-.516.198-.516.54v1.531h-1.936V6.54c0-.342-.191-.54-.516-.54S19 6.198 19 6.54v3.989c0 .338.191.472.516.472z\' fill=\'white\'/%3e%3c/svg%3e';case e.Q_1080P:return'data:image/svg+xml,%3csvg width=\'38\' height=\'24\' fill=\'none\' xmlns=\'http://www.w3.org/2000/svg\'%3e%3cpath fill-rule=\'evenodd\' clip-rule=\'evenodd\' d=\'M13.933 4.875a.6.6 0 0 0-.07-.658c-.327-.413-.45-.833-.574-1.253l-.039-.13C13 2 12.833 2 12.417 2h-.91c-.371.003-.6.052-.757.833-.148.738-.36 1.476-1.566 2.186a.466.466 0 0 1-.12.05c-1.27.324-1.905-.023-2.542-.37l-.12-.065c-.766-.412-.884-.294-1.178 0l-.643.644c-.26.264-.389.461.053 1.124.418.626.789 1.299.438 2.654a.466.466 0 0 1-.05.12c-.668 1.126-1.362 1.33-2.058 1.535l-.13.039C2 11 2 11.167 2 11.583v.91c.003.371.052.6.833.757.738.148 1.476.36 2.186 1.566a.465.465 0 0 1 .05.12c.324 1.27-.023 1.905-.37 2.542l-.065.12c-.412.766-.294.884 0 1.178l.644.643c.264.26.461.389 1.124-.053.626-.418 1.299-.789 2.654-.438.041.01.083.028.12.05 1.126.668 1.33 1.362 1.535 2.058l.039.13c.25.834.417.834.833.834h.91c.371-.003.6-.052.757-.833.148-.738.36-1.476 1.566-2.186a.467.467 0 0 1 .12-.05c1.27-.324 1.905.023 2.542.37l.12.065c.766.412.884.294 1.178 0l.643-.644c.26-.264.389-.461-.053-1.124-.26-.39-.503-.799-.563-1.38a.598.598 0 0 0-.413-.519 7.464 7.464 0 0 1-1.918-.871.58.58 0 0 0-.758.134 4.75 4.75 0 1 1-3.163-7.68.581.581 0 0 0 .633-.44 7.448 7.448 0 0 1 .749-1.967z\' fill=\'white\'/%3e%3crect x=\'15\' y=\'3\' width=\'21\' height=\'11\' rx=\'5.5\' fill=\'%23689FF8\'/%3e%3cpath d=\'M28.516 11h1.107C31.103 11 32 10.066 32 8.5S31.103 6 29.623 6h-1.107c-.325 0-.516.2-.516.537v3.923c0 .342.191.54.516.54zm.516-.854V6.852h.468c.91 0 1.5.616 1.5 1.648 0 1.066-.577 1.646-1.5 1.646h-.468zM23.516 11c.325 0 .516-.198.516-.536V8.922h1.936v1.542c0 .338.191.537.516.537s.516-.199.516-.537V6.54c0-.342-.191-.54-.516-.54s-.516.198-.516.54v1.531h-1.936V6.54c0-.342-.191-.54-.516-.54S23 6.198 23 6.54v3.989c0 .338.191.472.516.472zm-4 0c.325 0 .516-.198.516-.537V9h1.332c.27 0 .441-.154.441-.41 0-.253-.174-.407-.44-.407h-1.333V6.854h1.5c.28 0 .468-.16.468-.427 0-.266-.185-.427-.468-.427h-2.016c-.325 0-.516.198-.516.537v3.926c0 .339.191.537.516.537z\' fill=\'white\'/%3e%3c/svg%3e';case e.Q_1440P:return'data:image/svg+xml,%3csvg width=\'40\' height=\'24\' fill=\'none\' xmlns=\'http://www.w3.org/2000/svg\'%3e%3cpath fill-rule=\'evenodd\' clip-rule=\'evenodd\' d=\'M13.933 4.875a.6.6 0 0 0-.07-.658c-.327-.413-.45-.833-.574-1.253l-.039-.13C13 2 12.833 2 12.417 2h-.91c-.371.003-.6.052-.757.833-.148.738-.36 1.476-1.566 2.186a.466.466 0 0 1-.12.05c-1.27.324-1.905-.023-2.542-.37l-.12-.065c-.766-.412-.884-.294-1.178 0l-.643.644c-.26.264-.389.461.053 1.124.418.626.789 1.299.438 2.654a.466.466 0 0 1-.05.12c-.668 1.126-1.362 1.33-2.058 1.535l-.13.039C2 11 2 11.167 2 11.583v.91c.003.371.052.6.833.757.738.148 1.476.36 2.186 1.566a.465.465 0 0 1 .05.12c.324 1.27-.023 1.905-.37 2.542l-.065.12c-.412.766-.294.884 0 1.178l.644.643c.264.26.461.389 1.124-.053.626-.418 1.299-.789 2.654-.438.041.01.083.028.12.05 1.126.668 1.33 1.362 1.535 2.058l.039.13c.25.834.417.834.833.834h.91c.371-.003.6-.052.757-.833.148-.738.36-1.476 1.566-2.186a.467.467 0 0 1 .12-.05c1.27-.324 1.905.023 2.542.37l.12.065c.766.412.884.294 1.178 0l.643-.644c.26-.264.389-.461-.053-1.124-.26-.39-.503-.799-.563-1.38a.598.598 0 0 0-.413-.519 7.464 7.464 0 0 1-1.918-.871.58.58 0 0 0-.758.134 4.75 4.75 0 1 1-3.163-7.68.581.581 0 0 0 .633-.44 7.448 7.448 0 0 1 .749-1.967z\' fill=\'white\'/%3e%3cpath d=\'M15 8.5A5.5 5.5 0 0 1 20.5 3h12a5.5 5.5 0 1 1 0 11h-12A5.5 5.5 0 0 1 15 8.5z\' fill=\'%23689FF8\'/%3e%3cpath d=\'M30.516 11h1.107C33.103 11 34 10.066 34 8.5S33.103 6 31.623 6h-1.107c-.325 0-.516.2-.516.537v3.923c0 .342.191.54.516.54zm.516-.854V6.852h.468c.91 0 1.5.616 1.5 1.648 0 1.066-.577 1.646-1.5 1.646h-.468zM25.516 11c.325 0 .516-.198.516-.536V8.922h1.936v1.542c0 .338.191.537.516.537s.516-.199.516-.537V6.54c0-.342-.191-.54-.516-.54s-.516.198-.516.54v1.531h-1.936V6.54c0-.342-.191-.54-.516-.54S25 6.198 25 6.54v3.989c0 .338.191.472.516.472z\' fill=\'white\'/%3e%3cpath fill-rule=\'evenodd\' clip-rule=\'evenodd\' d=\'M22.338 10.909c-.254.06-.58.091-.838.091-1.463 0-2.5-.865-2.5-2.447C19 6.983 20.037 6 21.5 6c1.46 0 2.5.984 2.5 2.553 0 .863-.274 1.46-.777 1.88l.193.29a.5.5 0 1 1-.832.554l-.246-.368zm-.52-.78-.234-.352a.5.5 0 0 1 .832-.554l.245.367c.184-.26.286-.615.286-1.037 0-1.036-.64-1.653-1.447-1.653-.81 0-1.447.617-1.447 1.653 0 1.032.637 1.596 1.447 1.596.08 0 .208-.007.318-.02z\' fill=\'white\'/%3e%3c/svg%3e';case e.Q_2160P:return'data:image/svg+xml,%3csvg width=\'34\' height=\'24\' fill=\'none\' xmlns=\'http://www.w3.org/2000/svg\'%3e%3cpath fill-rule=\'evenodd\' clip-rule=\'evenodd\' d=\'M13.933 4.875a.6.6 0 0 0-.07-.658c-.327-.413-.45-.833-.574-1.253l-.039-.13C13 2 12.833 2 12.417 2h-.91c-.371.003-.6.052-.757.833-.148.738-.36 1.476-1.566 2.186a.466.466 0 0 1-.12.05c-1.27.324-1.905-.023-2.542-.37l-.12-.065c-.766-.412-.884-.294-1.178 0l-.643.644c-.26.264-.389.461.053 1.124.418.626.789 1.299.438 2.654a.466.466 0 0 1-.05.12c-.668 1.126-1.362 1.33-2.058 1.535l-.13.039C2 11 2 11.167 2 11.583v.91c.003.371.052.6.833.757.738.148 1.476.36 2.186 1.566a.465.465 0 0 1 .05.12c.324 1.27-.023 1.905-.37 2.542l-.065.12c-.412.766-.294.884 0 1.178l.644.643c.264.26.461.389 1.124-.053.626-.418 1.299-.789 2.654-.438.041.01.083.028.12.05 1.126.668 1.33 1.362 1.535 2.058l.039.13c.25.834.417.834.833.834h.91c.371-.003.6-.052.757-.833.148-.738.36-1.476 1.566-2.186a.467.467 0 0 1 .12-.05c1.27-.324 1.905.023 2.542.37l.12.065c.766.412.884.294 1.178 0l.643-.644c.26-.264.389-.461-.053-1.124-.26-.39-.503-.799-.563-1.38a.598.598 0 0 0-.413-.519 7.464 7.464 0 0 1-1.918-.871.58.58 0 0 0-.758.134 4.75 4.75 0 1 1-3.163-7.68.581.581 0 0 0 .633-.44 7.448 7.448 0 0 1 .749-1.967z\' fill=\'white\'/%3e%3crect x=\'15\' y=\'3\' width=\'17\' height=\'11\' rx=\'5.5\' fill=\'%23689FF8\'/%3e%3cpath d=\'M24.517 11c.325 0 .516-.198.516-.536v-.97l.492-.517 1.46 1.74c.16.205.304.284.516.284a.491.491 0 0 0 .499-.5c0-.14-.068-.287-.222-.478l-1.47-1.73 1.51-1.425c.13-.137.182-.25.182-.393A.474.474 0 0 0 27.515 6c-.171 0-.301.065-.445.222L25.064 8.25h-.03V6.54c0-.342-.192-.54-.517-.54s-.516.198-.516.54v3.924c0 .338.191.537.516.537z\' fill=\'white\'/%3e%3cpath fill-rule=\'evenodd\' clip-rule=\'evenodd\' d=\'m21.551 7.052-1.51 2.052h1.51V7.052zm.949 2.052V6.832c0-.81-1.089-1.14-1.556-.48l-1.805 2.469a.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 1 0 0-.9H22.5z\' fill=\'white\'/%3e%3c/svg%3e';case e.Q_4320P:return'data:image/svg+xml,%3csvg width=\'34\' height=\'24\' fill=\'none\' xmlns=\'http://www.w3.org/2000/svg\'%3e%3cpath fill-rule=\'evenodd\' clip-rule=\'evenodd\' d=\'M13.933 4.875a.6.6 0 0 0-.07-.658c-.327-.413-.45-.833-.574-1.253l-.039-.13C13 2 12.833 2 12.417 2h-.91c-.371.003-.6.052-.757.833-.148.738-.36 1.476-1.566 2.186a.466.466 0 0 1-.12.05c-1.27.324-1.905-.023-2.542-.37l-.12-.065c-.766-.412-.884-.294-1.178 0l-.643.644c-.26.264-.389.461.053 1.124.418.626.789 1.299.438 2.654a.466.466 0 0 1-.05.12c-.668 1.126-1.362 1.33-2.058 1.535l-.13.039C2 11 2 11.167 2 11.583v.91c.003.371.052.6.833.757.738.148 1.476.36 2.186 1.566a.465.465 0 0 1 .05.12c.324 1.27-.023 1.905-.37 2.542l-.065.12c-.412.766-.294.884 0 1.178l.644.643c.264.26.461.389 1.124-.053.626-.418 1.299-.789 2.654-.438.041.01.083.028.12.05 1.126.668 1.33 1.362 1.535 2.058l.039.13c.25.834.417.834.833.834h.91c.371-.003.6-.052.757-.833.148-.738.36-1.476 1.566-2.186a.467.467 0 0 1 .12-.05c1.27-.324 1.905.023 2.542.37l.12.065c.766.412.884.294 1.178 0l.643-.644c.26-.264.389-.461-.053-1.124-.26-.39-.503-.799-.563-1.38a.598.598 0 0 0-.413-.519 7.464 7.464 0 0 1-1.918-.871.58.58 0 0 0-.758.134 4.75 4.75 0 1 1-3.163-7.68.581.581 0 0 0 .633-.44 7.448 7.448 0 0 1 .749-1.967z\' fill=\'white\'/%3e%3crect x=\'15\' y=\'3\' width=\'17\' height=\'11\' rx=\'5.5\' fill=\'%23689FF8\'/%3e%3cpath d=\'M24.513 11c.323 0 .513-.198.513-.537v-.97l.49-.516 1.475 1.738c.16.205.302.284.513.284A.49.49 0 0 0 28 10.5c0-.14-.068-.287-.22-.478l-1.486-1.729 1.526-1.425c.129-.137.18-.25.18-.393A.473.473 0 0 0 27.517 6c-.17 0-.299.065-.441.222l-2.02 2.027h-.03V6.54c0-.342-.19-.54-.513-.54S24 6.198 24 6.54v3.923c0 .339.19.537.513.537z\' fill=\'white\'/%3e%3cpath fill-rule=\'evenodd\' clip-rule=\'evenodd\' d=\'M21 6c-.353 0-.671.057-.952.173a1.493 1.493 0 0 0-.654.484c-.154.208-.23.445-.23.71 0 .423.208.756.613.995a1.46 1.46 0 0 0-.547.44c-.154.203-.23.441-.23.71 0 .288.084.548.252.777l.001.002c.173.224.412.398.712.523.302.125.647.186 1.035.186.388 0 .733-.061 1.035-.186.3-.125.537-.299.705-.524.174-.23.26-.49.26-.777 0-.27-.076-.508-.23-.711a1.448 1.448 0 0 0-.552-.44c.409-.235.618-.569.618-.994a1.14 1.14 0 0 0-.238-.711 1.436 1.436 0 0 0-.653-.484A2.428 2.428 0 0 0 21 6zm-.573.964c.136-.105.323-.16.573-.16.25 0 .434.055.564.16h.001a.512.512 0 0 1 .203.43c0 .19-.07.333-.203.437-.13.105-.315.161-.565.161-.25 0-.437-.056-.573-.161a.519.519 0 0 1-.203-.437c0-.185.07-.326.203-.43zm-.345 2.522c0-.217.08-.381.233-.503.16-.122.385-.188.685-.188.3 0 .522.066.677.188.16.122.24.287.24.503a.628.628 0 0 1-.24.523c-.155.122-.377.188-.677.188-.3 0-.524-.065-.684-.188a.636.636 0 0 1-.234-.523z\' fill=\'white\'/%3e%3c/svg%3e';default:return Le}}]}class Ze extends $e{constructor(e){super(),we(this,e,Je,Ge,x,{className:0},Xe)}}const et=e=>{if(!isFinite(e))return'00:00';let t=Math.round(e);const i=Math.floor(t/3600);t-=3600*i;const n=Math.floor(t/60);t-=60*n;return(i>0?[i,n,t]:[n,t]).map((e=>e>9?String(e):`0${e}`)).join(':')};function tt(e){N(e,'v-1bjfp5n','.time.v-1bjfp5n{display:flex;align-items:center;font-weight:500;font-variant-numeric:tabular-nums}.current.v-1bjfp5n{position:relative}.duration.v-1bjfp5n{opacity:0.7}.duration.v-1bjfp5n:before{content:\' / \';white-space:pre}')}function it(e){let t,i;return{c(){t=B('span'),i=F(e[2]),D(t,'class','duration v-1bjfp5n')},m(e,n){q(e,t,n),L(t,i)},p(e,t){4&t&&U(i,e[2])},d(e){e&&T(t)}}}function nt(e){let t,i,n,o,l,a=e[0]&&it(e);return{c(){t=B('div'),i=B('span'),n=F(e[3]),o=j(),a&&a.c(),D(i,'class','current v-1bjfp5n'),D(t,'class',l='time '+e[1]+' v-1bjfp5n')},m(e,l){q(e,t,l),L(t,i),L(i,n),L(t,o),a&&a.m(t,null)},p(e,[i]){8&i&&U(n,e[3]),e[0]?a?a.p(e,i):(a=it(e),a.c(),a.m(t,null)):a&&(a.d(1),a=null),2&i&&l!==(l='time '+e[1]+' v-1bjfp5n')&&D(t,'class',l)},i:f,o:f,d(e){e&&T(t),a&&a.d()}}}function ot(e,t,i){let n,o,{duration:l}=t,{position:a}=t,{showDuration:s=!0}=t,{className:r=''}=t;return e.$$set=e=>{'duration'in e&&i(4,l=e.duration),'position'in e&&i(5,a=e.position),'showDuration'in e&&i(0,s=e.showDuration),'className'in e&&i(1,r=e.className)},e.$$.update=()=>{16&e.$$.dirty&&i(2,n=et(l)),32&e.$$.dirty&&i(3,o=et(a))},[s,r,n,o,l,a]}class lt extends $e{constructor(e){super(),we(this,e,ot,nt,x,{duration:4,position:5,showDuration:0,className:1},tt)}}function at(e){N(e,'v-1w56qn2','.slider.v-1w56qn2.v-1w56qn2{position:relative;height:var(--videoplayer-slider-height);border-radius:var(--videoplayer-slider-radius);background:var(--videoplayer-slider-bg);cursor:pointer;transition:visibility 0.2s, opacity 0.2s;will-change:opacity, transform;width:100%;touch-action:none;-webkit-tap-highlight-color:transparent}.no-handle.v-1w56qn2.v-1w56qn2{cursor:default}.slider.v-1w56qn2.v-1w56qn2:before{content:\'\';position:absolute;left:0;right:0;top:calc(-1 * (var(--videoplayer-controls-height) - var(--videoplayer-slider-height)) / 2);height:var(--videoplayer-controls-height)}.bars.v-1w56qn2.v-1w56qn2{position:absolute;width:100%;height:100%;border-radius:var(--videoplayer-slider-radius);overflow:hidden}.loaded.v-1w56qn2.v-1w56qn2{position:absolute;left:-100%;width:100%;height:100%;border-radius:var(--videoplayer-slider-radius);background:var(--videoplayer-slider-loaded-bg);transition:transform 0.2s}.filled.v-1w56qn2.v-1w56qn2{position:absolute;left:-100%;width:100%;height:100%;border-radius:var(--videoplayer-slider-radius);background-color:var(--videoplayer-slider-filled-bg)}.slider.square.v-1w56qn2.v-1w56qn2,.slider.square.v-1w56qn2>.bars.v-1w56qn2,.loaded.v-1w56qn2.v-1w56qn2,.filled.v-1w56qn2.v-1w56qn2{border-radius:unset}.filled.active-live.v-1w56qn2.v-1w56qn2{background-color:var(--videoplayer-slider-filled-active-live-bg)}.filled.ads.v-1w56qn2.v-1w56qn2{background-color:var(--videoplayer-slider-filled-ads)}.handleWrap.v-1w56qn2.v-1w56qn2{position:absolute;left:-100%;width:100%}.handle.v-1w56qn2.v-1w56qn2{position:absolute;width:var(--videoplayer-slider-handle-size);height:var(--videoplayer-slider-handle-size);right:calc(-1 * var(--videoplayer-slider-handle-size) / 2);top:calc((var(--videoplayer-slider-height) - var(--videoplayer-slider-handle-size)) / 2);border-radius:50%;background-color:var(--videoplayer-slider-filled-bg);visibility:hidden;opacity:0;transform:scale(0);transition:opacity 0.2s, transform 0.2s, visibility 0.2s;will-change:opacity, transform}.handle.active-live.v-1w56qn2.v-1w56qn2{background-color:var(--videoplayer-slider-filled-active-live-bg)}.slider.v-1w56qn2:hover .handle.v-1w56qn2,.slider-dragging.v-1w56qn2 .handle.v-1w56qn2{visibility:visible;opacity:1;transform:scale(1)}.slider-dragging.v-1w56qn2 .handle.v-1w56qn2{transform:scale(1.3)}.slider-vertical.v-1w56qn2.v-1w56qn2{position:absolute;left:-26px;top:-18px;transform-origin:0 0;transform:rotate(-90deg)}.hidden.v-1w56qn2.v-1w56qn2{visibility:hidden;opacity:0}')}function st(e){let t,i,n,o,l,a,s,r,c,d,u,v,p,m;return{c(){t=B('div'),i=B('div'),n=B('div'),l=j(),a=B('div'),r=j(),c=B('div'),d=B('div'),D(n,'class','loaded v-1w56qn2'),D(n,'style',o=`transform: translateX(${100*e[6]}%);`),D(a,'class','filled v-1w56qn2'),D(a,'style',s=`transform: translateX(${100*e[7]}%);`),Q(a,'active-live',e[3]),Q(a,'ads',e[4]),D(i,'class','bars v-1w56qn2'),D(d,'class','handle v-1w56qn2'),Q(d,'active-live',e[3]),D(c,'class','handleWrap v-1w56qn2'),D(c,'style',u=`transform: translateX(${100*e[8]}%);`),Q(c,'hidden',e[4]),D(t,'class',v='slider '+e[0]+' v-1w56qn2'),D(t,'aria-label',e[9]),D(t,'aria-valuemin',e[10]),D(t,'aria-valuemax',e[11]),D(t,'aria-valuenow',e[12]),D(t,'aria-valuetext',e[13]),D(t,'role','slider'),D(t,'tabindex','0'),Q(t,'slider-dragging',e[15]),Q(t,'hidden',e[1]),Q(t,'slider-vertical',e[2]),Q(t,'no-handle',e[4]),Q(t,'square',e[5])},m(o,s){q(o,t,s),L(t,i),L(i,n),L(i,l),L(i,a),L(t,r),L(t,c),L(c,d),e[27](t),p||(m=[H(t,'pointerdown',_(e[16])),H(t,'pointermove',_(e[17])),H(t,'pointerup',_(e[18])),H(t,'pointerenter',_(e[19])),H(t,'pointerleave',_(e[20]))],p=!0)},p(e,[i]){64&i&&o!==(o=`transform: translateX(${100*e[6]}%);`)&&D(n,'style',o),128&i&&s!==(s=`transform: translateX(${100*e[7]}%);`)&&D(a,'style',s),8&i&&Q(a,'active-live',e[3]),16&i&&Q(a,'ads',e[4]),8&i&&Q(d,'active-live',e[3]),256&i&&u!==(u=`transform: translateX(${100*e[8]}%);`)&&D(c,'style',u),16&i&&Q(c,'hidden',e[4]),1&i&&v!==(v='slider '+e[0]+' v-1w56qn2')&&D(t,'class',v),512&i&&D(t,'aria-label',e[9]),1024&i&&D(t,'aria-valuemin',e[10]),2048&i&&D(t,'aria-valuemax',e[11]),4096&i&&D(t,'aria-valuenow',e[12]),8192&i&&D(t,'aria-valuetext',e[13]),32769&i&&Q(t,'slider-dragging',e[15]),3&i&&Q(t,'hidden',e[1]),5&i&&Q(t,'slider-vertical',e[2]),17&i&&Q(t,'no-handle',e[4]),33&i&&Q(t,'square',e[5])},i:f,o:f,d(i){i&&T(t),e[27](null),p=!1,$(m)}}}function rt(e,t,i){let n,o,{className:l=''}=t,{isHidden:a=!1}=t,{isVertical:s=!1}=t,{isActiveLive:r=!1}=t,{isAds:c=!1}=t,{squareBorders:d=!1}=t,{onPointerDown:u=f}=t,{onHandleMove:v=f}=t,{onPointerUp:p=f}=t,{onPointerEnter:m=f}=t,{onPointerMove:h=f}=t,{onPointerLeave:g=f}=t,{loadedProgress:b=0}=t,{filledProgress:w=0}=t,{handleProgress:$=0}=t,{ariaLabel:y=''}=t,{ariaValueMin:x}=t,{ariaValueMax:k}=t,{ariaValueNow:V}=t,{ariaValueText:P=''}=t,z=!1;function A(e,t){return s?Math.max(0,Math.min(1,(o.height-(t-o.top))/o.height)):Math.min(Math.max(e-o.x,0),o.width)/o.width}function C(e){return Math.min(Math.max(e-o.x,0),o.width)}return e.$$set=e=>{'className'in e&&i(0,l=e.className),'isHidden'in e&&i(1,a=e.isHidden),'isVertical'in e&&i(2,s=e.isVertical),'isActiveLive'in e&&i(3,r=e.isActiveLive),'isAds'in e&&i(4,c=e.isAds),'squareBorders'in e&&i(5,d=e.squareBorders),'onPointerDown'in e&&i(21,u=e.onPointerDown),'onHandleMove'in e&&i(22,v=e.onHandleMove),'onPointerUp'in e&&i(23,p=e.onPointerUp),'onPointerEnter'in e&&i(24,m=e.onPointerEnter),'onPointerMove'in e&&i(25,h=e.onPointerMove),'onPointerLeave'in e&&i(26,g=e.onPointerLeave),'loadedProgress'in e&&i(6,b=e.loadedProgress),'filledProgress'in e&&i(7,w=e.filledProgress),'handleProgress'in e&&i(8,$=e.handleProgress),'ariaLabel'in e&&i(9,y=e.ariaLabel),'ariaValueMin'in e&&i(10,x=e.ariaValueMin),'ariaValueMax'in e&&i(11,k=e.ariaValueMax),'ariaValueNow'in e&&i(12,V=e.ariaValueNow),'ariaValueText'in e&&i(13,P=e.ariaValueText)},[l,a,s,r,c,d,b,w,$,y,x,k,V,P,n,z,function(e){if(z)return;i(15,z=!0),o=n.getBoundingClientRect();const t=A(e.clientX,e.clientY);u(t),n.setPointerCapture(e.pointerId)},function(e){const t=A(e.clientX,e.clientY),i=C(e.clientX);h(t,i),z&&v(t)},function(e){if(!z)return;i(15,z=!1);const t=A(e.clientX,e.clientY);p(t)},function(e){o=n.getBoundingClientRect();const t=A(e.clientX,e.clientY),i=C(e.clientX);m(t,i)},function(){g()},u,v,p,m,h,g,function(e){J[e?'unshift':'push']((()=>{n=e,i(14,n)}))}]}class ct extends $e{constructor(e){super(),we(this,e,rt,st,x,{className:0,isHidden:1,isVertical:2,isActiveLive:3,isAds:4,squareBorders:5,onPointerDown:21,onHandleMove:22,onPointerUp:23,onPointerEnter:24,onPointerMove:25,onPointerLeave:26,loadedProgress:6,filledProgress:7,handleProgress:8,ariaLabel:9,ariaValueMin:10,ariaValueMax:11,ariaValueNow:12,ariaValueText:13},at)}}function dt(e){N(e,'v-t7t1oe','.icon.v-t7t1oe.v-t7t1oe{display:block;width:24px;height:24px}.icon.v-t7t1oe .cross.v-t7t1oe{visibility:hidden}.icon[data-value=\'off\'].v-t7t1oe .wave1.v-t7t1oe,.icon[data-value=\'off\'].v-t7t1oe .wave2.v-t7t1oe{visibility:hidden}.icon[data-value=\'off\'].v-t7t1oe .cross.v-t7t1oe{visibility:visible}.icon[data-value=\'mid\'].v-t7t1oe .wave2.v-t7t1oe,.icon[data-value=\'min\'].v-t7t1oe .wave2.v-t7t1oe{visibility:hidden}.volumeBar.v-t7t1oe.v-t7t1oe{display:flex;align-items:center;margin:0 8px;position:relative;width:70px}.volumeBar-slider-vertical{width:50px !important}.volumeBar-vertical.v-t7t1oe.v-t7t1oe{padding:0;width:0}')}function ut(e){let t,i,n,o,l,a,s,r,c,d,u,v;return c=new ct({props:{className:e[0]?'volumeBar-slider-vertical':'',isHidden:e[0]&&!e[1],isVertical:e[0],onPointerDown:e[6],onHandleMove:e[7],onPointerUp:e[8],onPointerEnter:e[0]?e[9]:f,onPointerLeave:e[0]?e[10]:f,ariaLabel:'Ползунок громкости',ariaValueMin:0,ariaValueMax:100,ariaValueNow:Math.round(100*e[3]),ariaValueText:`${Math.round(100*e[3])}%`,filledProgress:e[3],handleProgress:e[3]}}),{c(){t=B('div'),i=I('svg'),n=I('g'),o=I('path'),l=I('path'),a=I('path'),s=j(),r=B('div'),he(c.$$.fragment),D(o,'class','wave2 v-t7t1oe'),D(o,'d','M12.980843 18.8227621c-.032051 1.2070086-.6704932 1.608931-1.8287519.6202507-1.7185995-1.4687545-3.60887471-3.1942931-4.24215929-3.7215065-.63217937-.528454-1.64491897-.6202511-3.07284859-.6202511-1.42682441 0-1.81505873-.6202511-1.81505873-1.2405016s-.01369327-1.8288162-.01369327-2.001246c0-.0549443.00464608-.085056.01369327-.1291845.01954957-.0953551-.05817756-.9728525 0-1.591076.08510106-.90556663.38823432-1.24050252 1.81505873-1.24050252 1.42792962 0 2.44066922-.09179716 3.07284859-.62025109.63328458-.52845393 2.52355979-2.25275186 4.24215929-3.72150644 1.1582587-.98868024 1.7967003-.58675756 1.8287514.62025106.0431031 1.60645033 5e-7 3.85020301 5e-7 6.68226949 0 2.8295855.0431032 5.3568042 0 6.9632545zm2.9004386-8.7040437c-.3417088-.34170872-.3417088-.89572808 0-1.23743683.3417087-.34170876.8957281-.34170876 1.2374368 0 .1762598.17625972.4111566.46988072.6409943.87209686C18.1429358 10.4240187 18.375 11.1782274 18.375 12s-.2320642 1.5759813-.6152873 2.2466216c-.2298377.4022161-.4647345.6958371-.6409943.8720968-.3417087.3417088-.8957281.3417088-1.2374368 0-.3417088-.3417087-.3417088-.8957281 0-1.2374368.0737402-.0737403.2138434-.2488693.3590057-.5029032C16.4820642 12.9552687 16.625 12.4907274 16.625 12s-.1429358-.9552687-.3847127-1.3783784c-.1451623-.2540339-.2852655-.4291629-.3590057-.5029032zm3-1.99999997c-.3417088-.34170875-.3417088-.89572811 0-1.23743686.3417087-.34170876.8957281-.34170876 1.2374368 0 .2637116.26371158.6207023.73969919.9665078 1.43131016.5167785 1.03355701.842501 2.25503497.8892639 3.71655167-.0467629 1.4032299-.3724854 2.6247079-.8892639 3.6582649-.3458055.6916109-.7027962 1.1675985-.9665078 1.4313101-.3417087.3417088-.8957281.3417088-1.2374368 0-.3417088-.3417087-.3417088-.8957281 0-1.2374368.1375896-.1375897.3825507-.4642045.638697-.9764971.4071252-.8142505.6673665-1.7901701.7054825-2.8756411-.038116-1.1437578-.2983573-2.11967743-.7054825-2.93392787-.2561463-.51229266-.5011074-.83890747-.638697-.9764971z'),D(l,'class','wave1 v-t7t1oe'),D(l,'d','M12.980843 18.8227621c-.032051 1.2070086-.6704932 1.608931-1.8287519.6202507-1.7185995-1.4687545-3.60887471-3.1942931-4.24215929-3.7215065-.63217937-.528454-1.64491897-.6202511-3.07284859-.6202511-1.42682441 0-1.81505873-.6202511-1.81505873-1.2405016s-.01369327-1.8288162-.01369327-2.001246c0-.0549443.00464608-.085056.01369327-.1291845.01954957-.0953551-.05817756-.9728525 0-1.591076.08510106-.90556663.38823432-1.24050252 1.81505873-1.24050252 1.42792962 0 2.44066922-.09179716 3.07284859-.62025109.63328458-.52845393 2.52355979-2.25275186 4.24215929-3.72150644 1.1582587-.98868024 1.7967003-.58675756 1.8287514.62025106.0431031 1.60645033 5e-7 3.85020301 5e-7 6.68226949 0 2.8295855.0431032 5.3568042 0 6.9632545zm2.9004386-8.7040437c-.3417088-.34170872-.3417088-.89572808 0-1.23743683.3417087-.34170876.8957281-.34170876 1.2374368 0 .1762598.17625972.4111566.46988072.6409943.87209686C18.1429358 10.4240187 18.375 11.1782274 18.375 12s-.2320642 1.5759813-.6152873 2.2466216c-.2298377.4022161-.4647345.6958371-.6409943.8720968-.3417087.3417088-.8957281.3417088-1.2374368 0-.3417088-.3417087-.3417088-.8957281 0-1.2374368.0737402-.0737403.2138434-.2488693.3590057-.5029032C16.4820642 12.9552687 16.625 12.4907274 16.625 12s-.1429358-.9552687-.3847127-1.3783784c-.1451623-.2540339-.2852655-.4291629-.3590057-.5029032z'),D(a,'class','cross v-t7t1oe'),D(a,'d','M20 10.7625631l2.3812816-2.38128153c.3417087-.34170876.8957281-.34170876 1.2374368 0 .3417088.34170875.3417088.89572811 0 1.23743686L21.2374369 12l2.3812815 2.3812816c.3417088.3417087.3417088.8957281 0 1.2374368-.3417087.3417088-.8957281.3417088-1.2374368 0L20 13.2374369l-2.3812816 2.3812815c-.3417087.3417088-.8957281.3417088-1.2374368 0-.3417088-.3417087-.3417088-.8957281 0-1.2374368L18.7625631 12l-2.3812815-2.38128157c-.3417088-.34170875-.3417088-.89572811 0-1.23743686.3417087-.34170876.8957281-.34170876 1.2374368 0zm-7.019157 8.060199c-.032051 1.2070086-.6704932 1.608931-1.8287519.6202507-1.7185995-1.4687545-3.60887471-3.1942931-4.24215929-3.7215065-.63217937-.528454-1.64491897-.6202511-3.07284859-.6202511-1.42682441 0-1.81505873-.6202511-1.81505873-1.2405016s-.01369327-1.8288162-.01369327-2.001246c0-.0549443.00464608-.085056.01369327-.1291845.01954957-.0953551-.05817756-.9728525 0-1.591076.08510106-.90556663.38823432-1.24050252 1.81505873-1.24050252 1.42792962 0 2.44066922-.09179716 3.07284859-.62025109.63328458-.52845393 2.52355979-2.25275186 4.24215929-3.72150644 1.1582587-.98868024 1.7967003-.58675756 1.8287514.62025106.0431031 1.60645033 5e-7 3.85020301 5e-7 6.68226949 0 2.8295855.0431032 5.3568042 0 6.9632545z'),D(n,'fill','#fff'),D(n,'fill-rule','evenodd'),D(i,'xmlns','http://www.w3.org/2000/svg'),D(i,'class','icon v-t7t1oe'),D(i,'data-value',e[2]),D(t,'tabindex','0'),D(t,'role','button'),D(r,'class','volumeBar v-t7t1oe'),Q(r,'volumeBar-vertical',e[0])},m(p,m){q(p,t,m),L(t,i),L(i,n),L(n,o),L(n,l),L(n,a),q(p,s,m),q(p,r,m),ge(c,r,null),d=!0,u||(v=[H(t,'mouseenter',(function(){y(e[0]?e[11]:f)&&(e[0]?e[11]:f).apply(this,arguments)})),H(t,'mouseleave',(function(){y(e[0]?e[12]:f)&&(e[0]?e[12]:f).apply(this,arguments)})),H(t,'click',e[15])],u=!0)},p(t,[n]){e=t,(!d||4&n)&&D(i,'data-value',e[2]);const o={};1&n&&(o.className=e[0]?'volumeBar-slider-vertical':''),3&n&&(o.isHidden=e[0]&&!e[1]),1&n&&(o.isVertical=e[0]),1&n&&(o.onPointerEnter=e[0]?e[9]:f),1&n&&(o.onPointerLeave=e[0]?e[10]:f),8&n&&(o.ariaValueNow=Math.round(100*e[3])),8&n&&(o.ariaValueText=`${Math.round(100*e[3])}%`),8&n&&(o.filledProgress=e[3]),8&n&&(o.handleProgress=e[3]),c.$set(o),1&n&&Q(r,'volumeBar-vertical',e[0])},i(e){d||(ve(c.$$.fragment,e),d=!0)},o(e){pe(c.$$.fragment,e),d=!1},d(e){e&&T(t),e&&T(s),e&&T(r),fe(c),u=!1,$(v)}}}function vt(e,t,i){let n,o,{isVerticalVolume:l=!1}=t;const a=Ae(),s=a.state.volume$;C(e,s,(e=>i(13,n=e)));const r=a.state.muted$;C(e,r,(e=>i(14,o=e)));const c=a.actions.internal.setVolume;let d,u,v,p=!1,m=1,h=!1;function g(){d=window.setTimeout((()=>{h||i(1,p=!1)}),300)}return e.$$set=e=>{'isVerticalVolume'in e&&i(0,l=e.isVerticalVolume)},e.$$.update=()=>{var t;24576&e.$$.dirty&&i(2,(t=n,u=o?'off':t>.5?'max':t>.2?'mid':t>0?'min':'off')),24576&e.$$.dirty&&i(3,v=o?0:n)},[l,p,u,v,s,r,function(e){m=n,c(e)},function(e){c(e)},function(e){c(e,0===e?m:e)},function(){h=!0},function(){h=!1,g()},function(){clearTimeout(d),i(1,p=!0)},function(){g()},n,o,function(t){X.call(this,e,t)}]}class pt extends $e{constructor(e){super(),we(this,e,vt,ut,x,{isVerticalVolume:0},dt)}}function mt(e){N(e,'v-1fkqq1h','.container.v-1fkqq1h{display:flex;align-items:center;height:100%;transition:var(--videoplayer-button-hover-transition);will-change:opacity;cursor:pointer;-webkit-tap-highlight-color:transparent}.container.v-1fkqq1h:hover{opacity:0.8}.disabled.v-1fkqq1h{pointer-events:none}')}function ht(e){let t,i,n;const o=e[3].default,l=function(e,t,i,n){if(e){const o=S(e,t,i,n);return e[0](o)}}(o,e,e[2],null);return{c(){t=B('div'),l&&l.c(),D(t,'class',i='container '+e[0]+' v-1fkqq1h'),Q(t,'disabled',e[1])},m(e,i){q(e,t,i),l&&l.m(t,null),n=!0},p(e,[a]){l&&l.p&&(!n||4&a)&&function(e,t,i,n,o,l){if(o){const a=S(t,i,n,l);e.p(a,o)}}(l,o,e,e[2],n?function(e,t,i,n){if(e[2]&&n){const o=e[2](n(i));if(void 0===t.dirty)return o;if('object'==typeof o){const e=[],i=Math.max(t.dirty.length,o.length);for(let n=0;n<i;n+=1)e[n]=t.dirty[n]|o[n];return e}return t.dirty|o}return t.dirty}(o,e[2],a,null):function(e){if(e.ctx.length>32){const t=[],i=e.ctx.length/32;for(let e=0;e<i;e++)t[e]=-1;return t}return-1}(e[2]),null),(!n||1&a&&i!==(i='container '+e[0]+' v-1fkqq1h'))&&D(t,'class',i),3&a&&Q(t,'disabled',e[1])},i(e){n||(ve(l,e),n=!0)},o(e){pe(l,e),n=!1},d(e){e&&T(t),l&&l.d(e)}}}function gt(e,t,i){let{$$slots:n={},$$scope:o}=t,{className:l=''}=t,{disabled:a=!1}=t;return e.$$set=e=>{'className'in e&&i(0,l=e.className),'disabled'in e&&i(1,a=e.disabled),'$$scope'in e&&i(2,o=e.$$scope)},[l,a,o,n]}class ft extends $e{constructor(e){super(),we(this,e,gt,ht,x,{className:0,disabled:1},mt)}}function bt(e){N(e,'v-daygaf','.icon.v-daygaf{display:block;width:24px;height:24px}')}function wt(e){let t;return{c(){t=I('path'),D(t,'class','_enter'),D(t,'d','M10.5 19c0 .5522847-.4477153 1-1 1H5c-.55228475 0-1-.4477153-1-1v-4.5c0-.5522847.44771525-1 1-1s1 .4477153 1 1v2.0715l3.36290054-3.3643932.00012963-.0001296c.39052429-.3905243 1.02368923-.3905243 1.41421353 0l.0157791.0157791.0001297.0001296c.3904527.3905959.3903366 1.0237609-.0002593 1.4142136L7.4285 18H9.5c.5522847 0 1 .4477153 1 1zM18 7.4285l-3.3629005 3.3643932c-.0000432.0000432-.0000865.0000864-.0001297.0001296-.3905243.3905243-1.0236892.3905243-1.4142135 0l-.0157791-.0157791c-.0000433-.0000432-.0000865-.0000864-.0001297-.0001296-.3904527-.3905959-.3903366-1.02376087.0002593-1.41421356L16.5715 6H14.5c-.5522847 0-1-.44771525-1-1s.4477153-1 1-1H19c.5522847 0 1 .44771525 1 1v4.5c0 .5522847-.4477153 1-1 1s-1-.4477153-1-1z')},m(e,i){q(e,t,i)},d(e){e&&T(t)}}}function $t(e){let t;return{c(){t=I('path'),D(t,'class','_exit'),D(t,'d','M4.57969048 13.9787492c0-.5464165.44295809-.9893746.9893746-.9893746h4.45218572c.5464165 0 .9893746.4429581.9893746.9893746v4.4521857c0 .5464165-.4429581.9893746-.9893746.9893746-.54641651 0-.98937461-.4429581-.98937461-.9893746v-2.0494895l-3.3196551 3.3211319-.00012963.0001297c-.39052429.3905243-1.02368927.3905243-1.41421356 0l-.00058487-.0005849-.00012964-.0001297c-.39045268-.3905958-.3903366-1.0237608.00025929-1.4142135l3.32113189-3.3196551H5.56906508c-.54641651 0-.9893746-.4429581-.9893746-.9893746zM14.9681238 7.61855457l3.3196551-3.32113189.0001296-.00012966c.3905243-.39052429 1.0236893-.39052429 1.4142136 0l.0005849.00058488.0001296.00012965c.3904527.39059589.3903366 1.02376086-.0002593 1.41421354l-3.3211319 3.3196551h2.0494895c.5464165 0 .9893746.4429581.9893746.98937461 0 .5464165-.4429581.9893746-.9893746.9893746h-4.4415603c-.5522847 0-1-.4477153-1-1V5.56906508c0-.54641651.4429581-.9893746.9893746-.9893746s.9893746.44295809.9893746.9893746z')},m(e,i){q(e,t,i)},d(e){e&&T(t)}}}function yt(e){let t,i,n,o,l;function a(e,t){return e[0]?$t:wt}let s=a(e),r=s(e);return{c(){t=B('div'),i=I('svg'),n=I('g'),r.c(),D(n,'fill','#fff'),D(n,'fill-rule','evenodd'),D(i,'class','icon v-daygaf'),D(i,'xmlns','http://www.w3.org/2000/svg'),D(t,'role','button'),D(t,'tabindex','0')},m(a,s){q(a,t,s),L(t,i),L(i,n),r.m(n,null),o||(l=H(t,'click',e[2]),o=!0)},p(e,[t]){s!==(s=a(e))&&(r.d(1),r=s(e),r&&(r.c(),r.m(n,null)))},i:f,o:f,d(e){e&&T(t),r.d(),o=!1,l()}}}function xt(e,t,i){let n;const o=Ae().ui.isFullscreen;return C(e,o,(e=>i(0,n=e))),[n,o,function(t){X.call(this,e,t)}]}class kt extends $e{constructor(e){super(),we(this,e,xt,yt,x,{},bt)}}var Vt,Pt,zt,At,Ct='data:image/svg+xml,%3csvg width=\'24\' height=\'24\' fill=\'none\' xmlns=\'http://www.w3.org/2000/svg\'%3e%3cpath d=\'M17.671 10.923c.82.483.82 1.67 0 2.154l-8.787 5.175A1.25 1.25 0 0 1 7 17.174V6.826a1.25 1.25 0 0 1 1.884-1.078l8.787 5.175z\' fill=\'white\'/%3e%3c/svg%3e',St='data:image/svg+xml,%3csvg width=\'24\' height=\'24\' fill=\'none\' xmlns=\'http://www.w3.org/2000/svg\'%3e%3cpath d=\'M8.712 5c.448 0 .61.047.774.134a.913.913 0 0 1 .38.38c.087.164.134.326.134.774v11.424c0 .448-.047.61-.134.774a.914.914 0 0 1-.38.38c-.164.087-.326.134-.774.134H6.788c-.448 0-.61-.047-.774-.134a.914.914 0 0 1-.38-.38c-.087-.164-.134-.326-.134-.774V6.288c0-.448.047-.61.134-.774a.913.913 0 0 1 .38-.38C6.178 5.047 6.34 5 6.788 5h1.924zm8 0c.448 0 .61.047.774.134a.914.914 0 0 1 .38.38c.087.164.134.326.134.774v11.424c0 .448-.047.61-.134.774a.914.914 0 0 1-.38.38c-.164.087-.326.134-.774.134h-1.924c-.448 0-.61-.047-.774-.134a.914.914 0 0 1-.38-.38c-.087-.164-.134-.326-.134-.774V6.288c0-.448.047-.61.134-.774a.914.914 0 0 1 .38-.38c.164-.087.326-.134.774-.134h1.924z\' fill=\'white\'/%3e%3c/svg%3e';function Mt(e){N(e,'v-1kcq5gq','.container-mobile.v-1kcq5gq{width:var(--videoplayer-big-play-size);height:var(--videoplayer-big-play-size);display:flex;align-items:center;justify-content:center;position:relative}.icon.v-1kcq5gq{display:block;width:24px;height:24px}.icon-mobile.v-1kcq5gq{position:relative;width:48px;height:48px}.icon-background-mobile.v-1kcq5gq{position:absolute;top:0;left:0;border-radius:var(--videoplayer-big-play-radius);background-color:var(--videoplayer-big-play-bg-color);width:100%;height:100%}')}function Lt(e){let t,i,n,o,l,a;return{c(){t=B('div'),i=B('img'),P(i.src,n=e[2])||D(i,'src',n),D(i,'class','icon v-1kcq5gq'),D(i,'alt',''),D(t,'class',o=M(e[0])+' v-1kcq5gq'),D(t,'role','button'),D(t,'tabindex','0')},m(n,o){q(n,t,o),L(t,i),l||(a=H(t,'click',(function(){y(e[1])&&e[1].apply(this,arguments)})),l=!0)},p(l,a){e=l,4&a&&!P(i.src,n=e[2])&&D(i,'src',n),1&a&&o!==(o=M(e[0])+' v-1kcq5gq')&&D(t,'class',o)},d(e){e&&T(t),l=!1,a()}}}function Nt(e){let t,i,n,o,l,a,s;return{c(){t=B('div'),i=B('div'),n=j(),o=B('img'),D(i,'class','icon-background-mobile v-1kcq5gq'),P(o.src,l=e[2])||D(o,'src',l),D(o,'class','icon-mobile v-1kcq5gq'),D(o,'alt',''),D(t,'class','container-mobile v-1kcq5gq'),D(t,'role','button'),D(t,'tabindex','0')},m(l,r){q(l,t,r),L(t,i),L(t,n),L(t,o),a||(s=H(t,'click',(function(){y(e[1])&&e[1].apply(this,arguments)})),a=!0)},p(t,i){e=t,4&i&&!P(o.src,l=e[2])&&D(o,'src',l)},d(e){e&&T(t),a=!1,s()}}}function qt(e){let t;function i(e,t){return e[3]?Nt:Lt}let n=i(e),o=n(e);return{c(){o.c(),t=R()},m(e,i){o.m(e,i),q(e,t,i)},p(e,[l]){n===(n=i(e))&&o?o.p(e,l):(o.d(1),o=n(e),o&&(o.c(),o.m(t.parentNode,t)))},i:f,o:f,d(e){o.d(e),e&&T(t)}}}function Tt(e,i,n){let o,l,a,{isEnded:s}=i,{isAds:r}=i,{playbackState:c}=i,{adPlaybackState:d}=i,{className:u=''}=i,{handlePlayClick:v}=i,{repeatPlaylist:p}=i,{isOneVideoPlaylist:m}=i;const h=Ae().ui.isMobile;return C(e,h,(e=>n(3,a=e))),e.$$set=e=>{'isEnded'in e&&n(5,s=e.isEnded),'isAds'in e&&n(6,r=e.isAds),'playbackState'in e&&n(7,c=e.playbackState),'adPlaybackState'in e&&n(8,d=e.adPlaybackState),'className'in e&&n(0,u=e.className),'handlePlayClick'in e&&n(9,v=e.handlePlayClick),'repeatPlaylist'in e&&n(10,p=e.repeatPlaylist),'isOneVideoPlaylist'in e&&n(11,m=e.isOneVideoPlaylist)},e.$$.update=()=>{480&e.$$.dirty&&n(2,o=r?function(e){return e===At.PLAYING?St:Ct}(d):function(e,i){return i?'data:image/svg+xml,%3csvg width=\'24\' height=\'24\' fill=\'none\' xmlns=\'http://www.w3.org/2000/svg\'%3e%3cpath d=\'M12 9.096a.4.4 0 0 1-.67.296L7.044 5.493a.668.668 0 0 1 0-.986L11.33.608a.4.4 0 0 1 .67.296V4a8 8 0 1 1-8 8 1 1 0 1 1 2 0 6 6 0 1 0 6-6v3.096z\' fill=\'white\'/%3e%3c/svg%3e':e===t.PLAYING?St:Ct}(c,s)),3680&e.$$.dirty&&n(1,l=r||!s||m?v:p)},[u,l,o,a,h,s,r,c,d,v,p,m]}!function(e){e.AUTO='auto'}(Vt||(Vt={})),function(e){e.Thumb='thumb',e.Video='video',e.Ads='ads',e.Crashed='crashed'}(Pt||(Pt={})),function(e){e.Preroll='preroll',e.Midroll='midroll',e.Postroll='postroll'}(zt||(zt={})),function(e){e.INACTIVE='inactive',e.PLAYING='playing',e.PAUSED='paused'}(At||(At={}));class Et extends $e{constructor(e){super(),we(this,e,Tt,qt,x,{isEnded:5,isAds:6,playbackState:7,adPlaybackState:8,className:0,handlePlayClick:9,repeatPlaylist:10,isOneVideoPlaylist:11},Mt)}}var Bt='data:image/svg+xml,%3csvg width=\'26\' height=\'24\' fill=\'none\' xmlns=\'http://www.w3.org/2000/svg\'%3e%3cpath 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\' fill=\'white\'/%3e%3c/svg%3e';function It(e){N(e,'v-1tmb7ku','.container-mobile-prev.v-1tmb7ku{margin-right:12px}.container-mobile-next.v-1tmb7ku{margin-right:12px}.disabled.v-1tmb7ku{opacity:0.4;pointer-events:none}.icon.v-1tmb7ku{display:block;height:24px}.icon-mobile.v-1tmb7ku{height:32px}.icon-prev.v-1tmb7ku{transform:scaleX(-1)}')}function Ft(e){let t,i,n,o,l;return{c(){t=B('div'),i=B('img'),D(i,'class','icon v-1tmb7ku'),P(i.src,n=Bt)||D(i,'src','data:image/svg+xml,%3csvg width=\'26\' height=\'24\' fill=\'none\' xmlns=\'http://www.w3.org/2000/svg\'%3e%3cpath 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\' fill=\'white\'/%3e%3c/svg%3e'),D(i,'alt',''),Q(i,'icon-prev','prev'===e[1]),D(t,'role','button'),D(t,'tabindex','0'),D(t,'class','v-1tmb7ku'),Q(t,'disabled',e[0])},m(n,a){q(n,t,a),L(t,i),o||(l=H(t,'click',e[5]),o=!0)},p(e,n){2&n&&Q(i,'icon-prev','prev'===e[1]),1&n&&Q(t,'disabled',e[0])},d(e){e&&T(t),o=!1,l()}}}function jt(e){let t,i,n,o,l;return{c(){t=B('div'),i=B('img'),D(i,'class','icon-mobile v-1tmb7ku'),P(i.src,n=Bt)||D(i,'src','data:image/svg+xml,%3csvg width=\'26\' height=\'24\' fill=\'none\' xmlns=\'http://www.w3.org/2000/svg\'%3e%3cpath 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\' fill=\'white\'/%3e%3c/svg%3e'),D(i,'alt',''),Q(i,'icon-prev','prev'===e[1]),D(t,'role','button'),D(t,'tabindex','0'),D(t,'class','v-1tmb7ku'),Q(t,'container-mobile-prev','prev'===e[1]),Q(t,'container-mobile-next','next'===e[1]),Q(t,'disabled',e[0])},m(n,a){q(n,t,a),L(t,i),o||(l=H(t,'click',e[4]),o=!0)},p(e,n){2&n&&Q(i,'icon-prev','prev'===e[1]),2&n&&Q(t,'container-mobile-prev','prev'===e[1]),2&n&&Q(t,'container-mobile-next','next'===e[1]),1&n&&Q(t,'disabled',e[0])},d(e){e&&T(t),o=!1,l()}}}function Rt(e){let t;function i(e,t){return e[2]?jt:Ft}let n=i(e),o=n(e);return{c(){o.c(),t=R()},m(e,i){o.m(e,i),q(e,t,i)},p(e,[l]){n===(n=i(e))&&o?o.p(e,l):(o.d(1),o=n(e),o&&(o.c(),o.m(t.parentNode,t)))},i:f,o:f,d(e){o.d(e),e&&T(t)}}}function Ht(e,t,i){let n,{disabled:o=!1}=t,{type:l}=t;const a=Ae().ui.isMobile;return C(e,a,(e=>i(2,n=e))),e.$$set=e=>{'disabled'in e&&i(0,o=e.disabled),'type'in e&&i(1,l=e.type)},[o,l,n,a,function(t){X.call(this,e,t)},function(t){X.call(this,e,t)}]}class _t extends $e{constructor(e){super(),we(this,e,Ht,Rt,x,{disabled:0,type:1},It)}}var Dt='data:image/svg+xml,%3csvg width=\'24\' height=\'24\' fill=\'none\' xmlns=\'http://www.w3.org/2000/svg\'%3e%3cpath fill-rule=\'evenodd\' clip-rule=\'evenodd\' d=\'M4.265 4.265C3 5.531 3 7.567 3 11.64v.72c0 4.073 0 6.11 1.265 7.375C5.531 21 7.567 21 11.64 21h.72c4.073 0 6.11 0 7.375-1.265C21 18.469 21 16.433 21 12.36v-.72c0-4.073 0-6.11-1.265-7.375C18.469 3 16.433 3 12.36 3h-.72C7.567 3 5.53 3 4.265 4.265zM6 8.5c.096 4.682 2.556 7.5 6.61 7.5h.235v-2.679c1.476.15 2.577 1.254 3.026 2.679H18c-.578-2.132-2.075-3.31-3.005-3.76.93-.558 2.246-1.908 2.556-3.74h-1.937c-.406 1.49-1.615 2.84-2.77 2.968V8.5h-1.968v5.197c-1.197-.3-2.759-1.757-2.823-5.197H6z\' fill=\'white\'/%3e%3c/svg%3e';function Ut(e){N(e,'v-j4644b','.no-hover.v-j4644b{pointer-events:none}.icon.v-j4644b{display:block;width:24px;height:24px}')}function Ot(e){let t,i;return{c(){t=B('img'),P(t.src,i=Dt)||D(t,'src','data:image/svg+xml,%3csvg width=\'24\' height=\'24\' fill=\'none\' xmlns=\'http://www.w3.org/2000/svg\'%3e%3cpath fill-rule=\'evenodd\' clip-rule=\'evenodd\' d=\'M4.265 4.265C3 5.531 3 7.567 3 11.64v.72c0 4.073 0 6.11 1.265 7.375C5.531 21 7.567 21 11.64 21h.72c4.073 0 6.11 0 7.375-1.265C21 18.469 21 16.433 21 12.36v-.72c0-4.073 0-6.11-1.265-7.375C18.469 3 16.433 3 12.36 3h-.72C7.567 3 5.53 3 4.265 4.265zM6 8.5c.096 4.682 2.556 7.5 6.61 7.5h.235v-2.679c1.476.15 2.577 1.254 3.026 2.679H18c-.578-2.132-2.075-3.31-3.005-3.76.93-.558 2.246-1.908 2.556-3.74h-1.937c-.406 1.49-1.615 2.84-2.77 2.968V8.5h-1.968v5.197c-1.197-.3-2.759-1.757-2.823-5.197H6z\' fill=\'white\'/%3e%3c/svg%3e'),D(t,'class','icon v-j4644b'),D(t,'alt','')},m(e,i){q(e,t,i)},p:f,d(e){e&&T(t)}}}function Qt(e){let t,i,n,o,l;return{c(){t=B('a'),i=B('img'),P(i.src,n=Dt)||D(i,'src','data:image/svg+xml,%3csvg width=\'24\' height=\'24\' fill=\'none\' xmlns=\'http://www.w3.org/2000/svg\'%3e%3cpath fill-rule=\'evenodd\' clip-rule=\'evenodd\' d=\'M4.265 4.265C3 5.531 3 7.567 3 11.64v.72c0 4.073 0 6.11 1.265 7.375C5.531 21 7.567 21 11.64 21h.72c4.073 0 6.11 0 7.375-1.265C21 18.469 21 16.433 21 12.36v-.72c0-4.073 0-6.11-1.265-7.375C18.469 3 16.433 3 12.36 3h-.72C7.567 3 5.53 3 4.265 4.265zM6 8.5c.096 4.682 2.556 7.5 6.61 7.5h.235v-2.679c1.476.15 2.577 1.254 3.026 2.679H18c-.578-2.132-2.075-3.31-3.005-3.76.93-.558 2.246-1.908 2.556-3.74h-1.937c-.406 1.49-1.615 2.84-2.77 2.968V8.5h-1.968v5.197c-1.197-.3-2.759-1.757-2.823-5.197H6z\' fill=\'white\'/%3e%3c/svg%3e'),D(i,'class','icon v-j4644b'),D(i,'alt',''),D(t,'href','https://vk.com/video'),D(t,'target','_blank')},m(n,a){q(n,t,a),L(t,i),o||(l=H(t,'click',e[2]),o=!0)},p:f,d(e){e&&T(t),o=!1,l()}}}function Wt(e){let t,i;function n(e,t){return e[1]?Qt:Ot}let o=n(e),l=o(e);return{c(){t=B('div'),l.c(),D(t,'class',i=M(e[0])+' v-j4644b'),D(t,'role','button'),D(t,'tabindex','0'),Q(t,'no-hover',!e[1])},m(e,i){q(e,t,i),l.m(t,null)},p(e,[a]){o===(o=n(e))&&l?l.p(e,a):(l.d(1),l=o(e),l&&(l.c(),l.m(t,null))),1&a&&i!==(i=M(e[0])+' v-j4644b')&&D(t,'class',i),3&a&&Q(t,'no-hover',!e[1])},i:f,o:f,d(e){e&&T(t),l.d()}}}function Kt(e,t,i){let{className:n=''}=t,{logoClickable:o=!1}=t;return e.$$set=e=>{'className'in e&&i(0,n=e.className),'logoClickable'in e&&i(1,o=e.logoClickable)},[n,o,function(t){X.call(this,e,t)}]}class Yt extends $e{constructor(e){super(),we(this,e,Kt,Wt,x,{className:0,logoClickable:1},Ut)}}function Xt(e){N(e,'v-1gdbwrb','.icon.v-1gdbwrb{display:block;width:24px;height:24px}.wave.v-1gdbwrb{animation-duration:1s;animation-iteration-count:infinite}.wave1.v-1gdbwrb{animation-name:v-1gdbwrb-wave1}.wave2.v-1gdbwrb{animation-name:v-1gdbwrb-wave2}.wave3.v-1gdbwrb{animation-name:v-1gdbwrb-wave3}@keyframes v-1gdbwrb-wave1{0%{opacity:0.3}33%{opacity:1}66%{opacity:1}100%{opacity:1}}@keyframes v-1gdbwrb-wave2{0%{opacity:0.3}33%{opacity:0.3}66%{opacity:1}100%{opacity:1}}@keyframes v-1gdbwrb-wave3{0%{opacity:0.3}33%{opacity:0.3}66%{opacity:0.3}100%{opacity:1}}')}function Gt(e){let t,n,o,l;function a(e,t){return e[1]===i.AVAILABLE?ei:e[1]===i.CONNECTED?Zt:e[1]===i.CONNECTING?Jt:void 0}let s=a(e),r=s&&s(e);return{c(){t=B('div'),r&&r.c(),D(t,'class',n=M(e[0])+' v-1gdbwrb'),D(t,'role','button'),D(t,'tabindex','0')},m(i,n){q(i,t,n),r&&r.m(t,null),o||(l=H(t,'click',e[4]),o=!0)},p(e,i){s!==(s=a(e))&&(r&&r.d(1),r=s&&s(e),r&&(r.c(),r.m(t,null))),1&i&&n!==(n=M(e[0])+' v-1gdbwrb')&&D(t,'class',n)},d(e){e&&T(t),r&&r.d(),o=!1,l()}}}function Jt(e){let t,i,n,o,l,a,s;return{c(){t=I('svg'),i=I('g'),n=I('path'),o=I('path'),l=I('path'),a=I('path'),s=I('path'),D(n,'class','wave wave1 v-1gdbwrb'),D(n,'d','M1 18v3h3c0-1.66-1.34-3-3-3z'),D(n,'opacity','.3'),D(n,'fill','#fff'),D(o,'class','wave wave2 v-1gdbwrb'),D(o,'d','M1 14v2c2.76 0 5 2.24 5 5h2c0-3.87-3.13-7-7-7z'),D(o,'opacity','.3'),D(o,'fill','#fff'),D(l,'class','wave wave3 v-1gdbwrb'),D(l,'d','M1 10v2a9 9 0 0 1 9 9h2c0-6.08-4.93-11-11-11z'),D(l,'opacity','.3'),D(l,'fill','#fff'),D(a,'d','M21 3H3c-1.1 0-2 .9-2 2v3h2V5h18v14h-7v2h7c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2z'),D(a,'fill','#fff'),D(s,'d','M0 0h24v24H0z'),D(i,'fill','none'),D(i,'fill-rule','evenodd'),D(t,'class','icon v-1gdbwrb'),D(t,'width','22'),D(t,'height','22'),D(t,'viewBox','0 0 24 24'),D(t,'xmlns','http://www.w3.org/2000/svg')},m(e,r){q(e,t,r),L(t,i),L(i,n),L(i,o),L(i,l),L(i,a),L(i,s)},d(e){e&&T(t)}}}function Zt(e){let t,i,n,o;return{c(){t=I('svg'),i=I('g'),n=I('path'),o=I('path'),D(n,'d','M1 18v3h3c0-1.66-1.34-3-3-3zm0-4v2c2.76 0 5 2.24 5 5h2c0-3.87-3.13-7-7-7zm18-7H5v1.63c3.96 1.28 7.09 4.41 8.37 8.37H19V7zM1 10v2a9 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'),D(n,'fill','#fff'),D(o,'d','M0 0h24v24H0z'),D(i,'fill','none'),D(i,'fill-rule','evenodd'),D(t,'class','icon v-1gdbwrb'),D(t,'width','22'),D(t,'height','22'),D(t,'viewBox','0 0 24 24'),D(t,'xmlns','http://www.w3.org/2000/svg')},m(e,l){q(e,t,l),L(t,i),L(i,n),L(i,o)},d(e){e&&T(t)}}}function ei(e){let t,i,n,o;return{c(){t=I('svg'),i=I('g'),n=I('path'),o=I('path'),D(n,'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'),D(n,'fill','#fff'),D(o,'d','M0 0h24v24H0z'),D(i,'fill','none'),D(i,'fill-rule','evenodd'),D(t,'class','icon v-1gdbwrb'),D(t,'width','22'),D(t,'height','22'),D(t,'viewBox','0 0 24 24'),D(t,'xmlns','http://www.w3.org/2000/svg')},m(e,l){q(e,t,l),L(t,i),L(i,n),L(i,o)},d(e){e&&T(t)}}}function ti(e){let t,n=e[1]!==i.NOT_AVAILABLE&&Gt(e);return{c(){n&&n.c(),t=R()},m(e,i){n&&n.m(e,i),q(e,t,i)},p(e,[o]){e[1]!==i.NOT_AVAILABLE?n?n.p(e,o):(n=Gt(e),n.c(),n.m(t.parentNode,t)):n&&(n.d(1),n=null)},i:f,o:f,d(e){n&&n.d(e),e&&T(t)}}}function ii(e,t,i){let n,{className:o=''}=t;const l=Ae().state.chromecastState$;let a;return C(e,l,(e=>i(3,n=e))),e.$$set=e=>{'className'in e&&i(0,o=e.className)},e.$$.update=()=>{8&e.$$.dirty&&i(1,a=n)},[o,a,l,n,function(t){X.call(this,e,t)}]}class ni extends $e{constructor(e){super(),we(this,e,ii,ti,x,{className:0},Xt)}}function oi(e){N(e,'v-rwtbzf','.icon.v-rwtbzf{display:block;width:42px;height:20px}')}function li(e){let t,i,n,o,l;return{c(){t=B('div'),i=B('img'),P(i.src,n=e[0])||D(i,'src',n),D(i,'class','icon v-rwtbzf'),D(i,'alt',''),D(t,'role','button'),D(t,'tabindex','0')},m(n,a){q(n,t,a),L(t,i),o||(l=H(t,'click',e[2]),o=!0)},p(e,[t]){1&t&&!P(i.src,n=e[0])&&D(i,'src',n)},i:f,o:f,d(e){e&&T(t),o=!1,l()}}}function ai(e,t,i){let{isActiveLive:n=!1}=t,o='';return e.$$set=e=>{'isActiveLive'in e&&i(1,n=e.isActiveLive)},e.$$.update=()=>{2&e.$$.dirty&&i(0,o=n?'data:image/svg+xml,%3csvg width=\'42\' height=\'20\' fill=\'none\' xmlns=\'http://www.w3.org/2000/svg\'%3e%3crect width=\'42\' height=\'20\' rx=\'5\' fill=\'%23FF3347\'/%3e%3cpath fill-rule=\'evenodd\' clip-rule=\'evenodd\' d=\'M8 5a1 1 0 0 0-1 1v8a1 1 0 0 0 1 1h4a1 1 0 1 0 0-2H9V6a1 1 0 0 0-1-1zm7 1a1 1 0 1 1 2 0v8a1 1 0 1 1-2 0V6zm15-1a1 1 0 0 0-1 1v8a1 1 0 0 0 1 1h4a1 1 0 1 0 0-2h-3v-2h3a1 1 0 1 0 0-2h-3V7h3a1 1 0 1 0 0-2h-4zm-8.325 9.31-2.55-7.824a.993.993 0 0 1-.117-.363L19 6.1h.005a1 1 0 1 1 1.99-.199L21 5.9l2 6.4 2-6.4h.005a1 1 0 0 1 1.99.2H27l-.008.023a.993.993 0 0 1-.118.363l-2.55 7.824a1 1 0 0 1-.95.69h-.748a1 1 0 0 1-.95-.69z\' fill=\'%23F2F3F5\'/%3e%3c/svg%3e':'data:image/svg+xml,%3csvg viewBox=\'0 0 42 20\' xmlns=\'http://www.w3.org/2000/svg\'%3e%3cpath d=\'M6.41 1A6.46 6.46 0 0 0 3 1.55 3.52 3.52 0 0 0 1.55 3 6.46 6.46 0 0 0 1 6.41v7.18A6.46 6.46 0 0 0 1.55 17 3.52 3.52 0 0 0 3 18.45a6.46 6.46 0 0 0 3.41.55h29.18a6.46 6.46 0 0 0 3.41-.55A3.52 3.52 0 0 0 40.45 17a6.46 6.46 0 0 0 .55-3.41V6.41A6.46 6.46 0 0 0 40.45 3 3.52 3.52 0 0 0 39 1.55 6.46 6.46 0 0 0 35.59 1z\' fill=\'none\' stroke=\'white\' stroke-width=\'2\'/%3e%3cpath d=\'M8 5a1 1 0 0 1 1 1v7h3a1 1 0 0 1 1 .88V14a1 1 0 0 1-1 1H8a1 1 0 0 1-1-.77v-.11A.49.49 0 0 1 7 14V6a1 1 0 0 1 .88-1zm8 0a1 1 0 0 1 1 1v8a1 1 0 0 1-.88 1H16a1 1 0 0 1-1-1V6a1 1 0 0 1 .88-1zm18 0a1 1 0 0 1 1 .88V6a1 1 0 0 1-1 1h-3v2h3a1 1 0 0 1 1 .88V10a1 1 0 0 1-1 1h-3v2h3a1 1 0 0 1 1 .88V14a1 1 0 0 1-1 1h-4a1 1 0 0 1-1-.77v-.11a.49.49 0 0 1 0-.12V6a1 1 0 0 1 .56-.9A1 1 0 0 1 30 5zm-8 0a1 1 0 0 1 1 1v.1a.89.89 0 0 1-.11.35l-2.47 7.57a1.48 1.48 0 0 1-1.32.98h-.2a1.48 1.48 0 0 1-1.31-.95l-2.47-7.57a.89.89 0 0 1-.12-.36V6a1 1 0 0 1 .88-1H20a1 1 0 0 1 1 1v-.1l2 6.4 2-6.4a1 1 0 0 1 1-.9z\' fill=\'%23f0f2f5\' fill-rule=\'evenodd\'/%3e%3c/svg%3e')},[o,n,function(t){X.call(this,e,t)}]}class si extends $e{constructor(e){super(),we(this,e,ai,li,x,{isActiveLive:1},oi)}}var ri='data:image/svg+xml,%3csvg xmlns=\'http://www.w3.org/2000/svg\' width=\'24\' height=\'24\'%3e%3cg fill=\'none\' fill-rule=\'evenodd\'%3e%3cpath d=\'M0 0h24v24H0z\'/%3e%3cpath fill=\'white\' d=\'M8.695 8.105 5.301 4.71a1 1 0 0 1 1.414-1.415L20.7 17.285a1 1 0 0 1-1.414 1.415L16 15.41V20a1 1 0 0 1-1 1c-.641 0-1.258-.25-1.72-.695L7.79 15H5a2 2 0 0 1-2-2v-2a2 2 0 0 1 2-2h2.765l.93-.895Zm2.88-2.77 1.704-1.642A2.481 2.481 0 0 1 15 3a1 1 0 0 1 1 1v5.76l-4.426-4.426Z\'/%3e%3c/g%3e%3c/svg%3e',ci='data:image/svg+xml,%3csvg xmlns=\'http://www.w3.org/2000/svg\' width=\'24\' height=\'24\'%3e%3cg fill=\'none\' fill-rule=\'evenodd\'%3e%3cpath d=\'M0 0h24v24H0z\'/%3e%3cpath fill=\'white\' fill-rule=\'nonzero\' d=\'M21.657 17.657a.9.9 0 1 1-1.273-1.273 6.2 6.2 0 0 0 0-8.768.9.9 0 1 1 1.273-1.273 8 8 0 0 1 0 11.314ZM19.11 15.11a.9.9 0 0 1-1.273-1.273 2.6 2.6 0 0 0 0-3.676.9.9 0 1 1 1.273-1.273 4.4 4.4 0 0 1 0 6.222ZM5 15a2 2 0 0 1-2-2v-2a2 2 0 0 1 2-2h2.765l5.514-5.307A2.481 2.481 0 0 1 15 3a1 1 0 0 1 1 1v16a1 1 0 0 1-1 1c-.641 0-1.258-.25-1.72-.695L7.79 15H5Z\'/%3e%3c/g%3e%3c/svg%3e';function di(e){N(e,'v-dsbe5p','.container.v-dsbe5p{display:flex;height:32px;align-items:center;padding:0 8px}.expanded.v-dsbe5p{background-color:rgba(0, 0, 0, 0.56);border-radius:6px}.icon.v-dsbe5p{width:24px;height:24px}.text.v-dsbe5p{font-size:15px;margin-left:8px}')}function ui(e){let t;return{c(){t=B('span'),t.textContent='Включить звук',D(t,'class','text v-dsbe5p')},m(e,i){q(e,t,i)},d(e){e&&T(t)}}}function vi(e){let t,i,n,o,l,a,s=e[0]&&ui();return{c(){t=B('div'),i=B('img'),o=j(),s&&s.c(),P(i.src,n=e[0]?ci:ri)||D(i,'src',n),D(i,'class','icon v-dsbe5p'),D(i,'alt',''),D(t,'class','container v-dsbe5p'),Q(t,'expanded',e[0])},m(n,r){q(n,t,r),L(t,i),L(t,o),s&&s.m(t,null),l||(a=H(t,'click',e[1]),l=!0)},p(e,[o]){1&o&&!P(i.src,n=e[0]?ci:ri)&&D(i,'src',n),e[0]?s||(s=ui(),s.c(),s.m(t,null)):s&&(s.d(1),s=null),1&o&&Q(t,'expanded',e[0])},i:f,o:f,d(e){e&&T(t),s&&s.d(),l=!1,a()}}}function pi(e,t,i){let{expanded:n=!1}=t;return e.$$set=e=>{'expanded'in e&&i(0,n=e.expanded)},[n,function(t){X.call(this,e,t)}]}class mi extends $e{constructor(e){super(),we(this,e,pi,vi,x,{expanded:0},di)}}function hi(e){N(e,'v-1bwjmdb','.tooltip-wrapper.v-1bwjmdb{position:relative;display:block}.tooltip.v-1bwjmdb{position:absolute;opacity:0;visibility:hidden;transition:opacity 200ms, visibility 200ms;bottom:100%;transform:translateX(-50%)}.tooltip.v-1bwjmdb: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)}.content.v-1bwjmdb{display:inline-block;padding:6px 10px;border-radius:3px;color:var(--white);background-color:rgba(41, 41, 41, .8)}.tooltip.active.v-1bwjmdb{opacity:1;visibility:visible}')}function gi(e){let t,i,n,o,l;return{c(){t=B('div'),i=B('div'),n=B('div'),o=F(e[0]),D(n,'class','content v-1bwjmdb'),D(i,'class','tooltip v-1bwjmdb'),Q(i,'active',e[1]),D(t,'class','tooltip-wrapper v-1bwjmdb'),D(t,'style',l=`transform: translate(${e[2]}px, ${e[3]}px);`)},m(e,l){q(e,t,l),L(t,i),L(i,n),L(n,o)},p(e,[n]){1&n&&U(o,e[0]),2&n&&Q(i,'active',e[1]),12&n&&l!==(l=`transform: translate(${e[2]}px, ${e[3]}px);`)&&D(t,'style',l)},i:f,o:f,d(e){e&&T(t)}}}function fi(e,t,i){let{content:n=''}=t,{active:o=!1}=t,{translateXPx:l=0}=t,{translateYPx:a=0}=t;return e.$$set=e=>{'content'in e&&i(0,n=e.content),'active'in e&&i(1,o=e.active),'translateXPx'in e&&i(2,l=e.translateXPx),'translateYPx'in e&&i(3,a=e.translateYPx)},[n,o,l,a]}class bi extends $e{constructor(e){super(),we(this,e,fi,gi,x,{content:0,active:1,translateXPx:2,translateYPx:3},hi)}}function wi(e){let t,i;return t=new bi({props:{content:e[5],active:e[4],translateXPx:e[6],translateYPx:-16}}),{c(){he(t.$$.fragment)},m(e,n){ge(t,e,n),i=!0},p(e,i){const n={};32&i&&(n.content=e[5]),16&i&&(n.active=e[4]),64&i&&(n.translateXPx=e[6]),t.$set(n)},i(e){i||(ve(t.$$.fragment,e),i=!0)},o(e){pe(t.$$.fragment,e),i=!1},d(e){fe(t,e)}}}function $i(e){let t,i,n,o=(!e[8]||e[8]&&e[7])&&wi(e);return i=new ct({props:{isActiveLive:e[9],ariaLabel:'Ползунок временной шкалы',ariaValueMin:0,ariaValueMax:e[0],ariaValueNow:Math.round(100*e[3]),ariaValueText:`${e[2]} (общая длительность ${e[1]})`,loadedProgress:e[10],filledProgress:e[3],handleProgress:e[3],onPointerDown:e[17],onHandleMove:e[18],onPointerMove:e[21],onPointerUp:e[19],onPointerEnter:e[20],onPointerLeave:e[22]}}),{c(){o&&o.c(),t=j(),he(i.$$.fragment)},m(e,l){o&&o.m(e,l),q(e,t,l),ge(i,e,l),n=!0},p(e,[n]){!e[8]||e[8]&&e[7]?o?(o.p(e,n),384&n&&ve(o,1)):(o=wi(e),o.c(),ve(o,1),o.m(t.parentNode,t)):o&&(de(),pe(o,1,1,(()=>{o=null})),ue());const l={};512&n&&(l.isActiveLive=e[9]),1&n&&(l.ariaValueMax=e[0]),8&n&&(l.ariaValueNow=Math.round(100*e[3])),6&n&&(l.ariaValueText=`${e[2]} (общая длительность ${e[1]})`),1024&n&&(l.loadedProgress=e[10]),8&n&&(l.filledProgress=e[3]),8&n&&(l.handleProgress=e[3]),i.$set(l)},i(e){n||(ve(o),ve(i.$$.fragment,e),n=!0)},o(e){pe(o),pe(i.$$.fragment,e),n=!1},d(e){o&&o.d(e),e&&T(t),fe(i,e)}}}function yi(e,t,i){let n,o,l,a,s,r;const c=Ae(),d=c.state.bufferedProgress$;C(e,d,(e=>i(10,r=e)));const u=c.state.positionWithScrubbing$;C(e,u,(e=>i(23,l=e)));const v=c.state.duration$;C(e,v,(e=>i(0,o=e)));const p=c.state.isLive$;C(e,p,(e=>i(7,n=e)));const m=c.state.isActiveLive$;C(e,m,(e=>i(9,s=e)));const h=c.ui.isMobile;let g,f,b;C(e,h,(e=>i(8,a=e)));let w=!1,$='',y=0;function x(e,t){i(6,y=t),i(5,$=function(e){const t=et((n?1-e:e)*o);return n?`-${t}`:t}(e))}return e.$$.update=()=>{1&e.$$.dirty&&i(1,g=et(o)),8388608&e.$$.dirty&&i(2,f=et(l)),8388609&e.$$.dirty&&i(3,b=l/o)},[o,g,f,b,w,$,y,n,a,s,r,d,u,v,p,m,h,function(e){c.actions.internal.startScrubbing(e)},function(e){c.actions.internal.progressScrubbing(e)},function(e){c.actions.internal.completeScrubbing(e)},function(e,t){x(e,t),i(4,w=!0)},function(e,t){x(e,t)},function(){i(4,w=!1)},l]}class xi extends $e{constructor(e){super(),we(this,e,yi,$i,x,{})}}function ki(e){let t,i;return t=new ct({props:{ariaValueMin:0,ariaValueMax:e[0],ariaValueNow:Math.round(100*e[3]),ariaValueText:`${e[2]} (общая длительность ${e[1]})`,filledProgress:e[3],isAds:!0,squareBorders:e[4]}}),{c(){he(t.$$.fragment)},m(e,n){ge(t,e,n),i=!0},p(e,[i]){const n={};1&i&&(n.ariaValueMax=e[0]),8&i&&(n.ariaValueNow=Math.round(100*e[3])),6&i&&(n.ariaValueText=`${e[2]} (общая длительность ${e[1]})`),8&i&&(n.filledProgress=e[3]),16&i&&(n.squareBorders=e[4]),t.$set(n)},i(e){i||(ve(t.$$.fragment,e),i=!0)},o(e){pe(t.$$.fragment,e),i=!1},d(e){fe(t,e)}}}function Vi(e,t,i){let n,{position:o=0}=t,{duration:l=0}=t;const a=Ae().ui.isMobile;let s,r,c;return C(e,a,(e=>i(4,n=e))),e.$$set=e=>{'position'in e&&i(6,o=e.position),'duration'in e&&i(0,l=e.duration)},e.$$.update=()=>{1&e.$$.dirty&&i(1,s=et(l)),64&e.$$.dirty&&i(2,r=et(o)),65&e.$$.dirty&&i(3,c=o/l)},[l,s,r,c,n,a,o]}class Pi extends $e{constructor(e){super(),we(this,e,Vi,ki,x,{position:6,duration:0})}}function zi(e){N(e,'v-17msmwz','.timeline.v-17msmwz{display:flex;align-items:center;width:100%;min-width:86px;margin:0 6px}.timeline-stub.v-17msmwz{width:100%;min-width:20px}')}function Ai(e){let t;return{c(){t=B('div'),D(t,'class','timeline-stub v-17msmwz')},m(e,i){q(e,t,i)},p:f,i:f,o:f,d(e){e&&T(t)}}}function Ci(e){let t,i,n,o,l;const a=[Mi,Si],s=[];function r(e,t){return e[0]?0:1}return i=r(e),n=s[i]=a[i](e),{c(){t=B('div'),n.c(),D(t,'class',o='timeline '+e[1]+' v-17msmwz')},m(e,n){q(e,t,n),s[i].m(t,null),l=!0},p(e,c){let d=i;i=r(e),i===d?s[i].p(e,c):(de(),pe(s[d],1,1,(()=>{s[d]=null})),ue(),n=s[i],n?n.p(e,c):(n=s[i]=a[i](e),n.c()),ve(n,1),n.m(t,null)),(!l||2&c&&o!==(o='timeline '+e[1]+' v-17msmwz'))&&D(t,'class',o)},i(e){l||(ve(n),l=!0)},o(e){pe(n),l=!1},d(e){e&&T(t),s[i].d()}}}function Si(e){let t,i;return t=new xi({}),{c(){he(t.$$.fragment)},m(e,n){ge(t,e,n),i=!0},p:f,i(e){i||(ve(t.$$.fragment,e),i=!0)},o(e){pe(t.$$.fragment,e),i=!1},d(e){fe(t,e)}}}function Mi(e){let t,i;return t=new Pi({props:{position:e[3],duration:e[4]}}),{c(){he(t.$$.fragment)},m(e,n){ge(t,e,n),i=!0},p(e,i){const n={};8&i&&(n.position=e[3]),16&i&&(n.duration=e[4]),t.$set(n)},i(e){i||(ve(t.$$.fragment,e),i=!0)},o(e){pe(t.$$.fragment,e),i=!1},d(e){fe(t,e)}}}function Li(e){let t,i,n,o;const l=[Ci,Ai],a=[];function s(e,t){return e[2]?0:1}return t=s(e),i=a[t]=l[t](e),{c(){i.c(),n=R()},m(e,i){a[t].m(e,i),q(e,n,i),o=!0},p(e,[o]){let r=t;t=s(e),t===r?a[t].p(e,o):(de(),pe(a[r],1,1,(()=>{a[r]=null})),ue(),i=a[t],i?i.p(e,o):(i=a[t]=l[t](e),i.c()),ve(i,1),i.m(n.parentNode,n))},i(e){o||(ve(i),o=!0)},o(e){pe(i),o=!1},d(e){a[t].d(e),e&&T(n)}}}function Ni(e,t,i){let n,o,l,{isAds:a=!1}=t,{canRewindLive:s}=t,{isHidden:r=!1}=t,{className:c=''}=t;const d=Ae(),u=d.state.isLive$;C(e,u,(e=>i(10,n=e)));const v=d.ads.duration;C(e,v,(e=>i(4,l=e)));const p=d.ads.position;let m;return C(e,p,(e=>i(3,o=e))),e.$$set=e=>{'isAds'in e&&i(0,a=e.isAds),'canRewindLive'in e&&i(8,s=e.canRewindLive),'isHidden'in e&&i(9,r=e.isHidden),'className'in e&&i(1,c=e.className)},e.$$.update=()=>{1793&e.$$.dirty&&i(2,m=!r&&(!n||n&&s||a))},[a,c,m,o,l,u,v,p,s,r,n]}class qi extends $e{constructor(e){super(),we(this,e,Ni,Li,x,{isAds:0,canRewindLive:8,isHidden:9,className:1},zi)}}function Ti(e){N(e,'v-1qfxnal','.wrapper-bottom.v-1qfxnal.v-1qfxnal{position:absolute;width:100%;bottom:0;left:0;height:var(--videoplayer-controls-gradient-height);background:linear-gradient(\n 180deg,\n rgba(0, 0, 0, 0) 0%,\n rgba(0, 0, 0, 0.02) 19%,\n rgba(0, 0, 0, 0.10) 34%,\n rgba(0, 0, 0, 0.40) 60%,\n rgba(0, 0, 0, 0.60) 100%\n );transition:transform var(--videoplayer-controls-transition-duration)\n var(--videoplayer-controls-transition-fn)}.wrapper-bottom.ads-timeline-mobile.v-1qfxnal.v-1qfxnal{height:5px}.wrapper-middle.v-1qfxnal.v-1qfxnal{position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);transition:opacity var(--videoplayer-controls-transition-duration);display:flex;align-items:center}.wrapper-top-right.v-1qfxnal.v-1qfxnal{position:absolute;top:16px;right:16px;transition:opacity var(--videoplayer-controls-transition-duration);display:flex}.wrapper-top-left.v-1qfxnal.v-1qfxnal{position:absolute;top:12px;left:12px}.controls.v-1qfxnal.v-1qfxnal{position:absolute;bottom:0;left:0;right:0;display:flex;align-items:center;height:var(--videoplayer-controls-height);white-space:nowrap;font-size:13px;transition:transform var(--videoplayer-controls-transition-duration)\n var(--videoplayer-controls-transition-fn);will-change:transform;padding:0 16px;box-sizing:border-box}.controls-element+.controls-element{padding-left:8px}.hidden.v-1qfxnal.v-1qfxnal{visibility:hidden;opacity:0}.controls-hidden.v-1qfxnal.v-1qfxnal{visibility:visible;transform:translateY(100%)}.settings-desktop.v-1qfxnal.v-1qfxnal{bottom:42px;right:18px;position:absolute;transition:opacity 0.2s, visibility 0.2s}.settings-mobile.v-1qfxnal.v-1qfxnal{position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);transition:opacity var(--videoplayer-controls-transition-duration);display:flex;align-items:center;max-width:320px;width:90%}.overlay-mobile.v-1qfxnal.v-1qfxnal{position:absolute;top:0;left:0;width:100%;height:100%;background-color:rgba(0, 0, 0, .3);pointer-events:none;transition:opacity var(--videoplayer-controls-transition-duration)}.wrapper-bottom-fullscreen-desktop.v-1qfxnal .controls.v-1qfxnal{--videoplayer-controls-height:50px;font-size:16px}.wrapper-bottom-fullscreen-desktop.v-1qfxnal .ui-time{padding-left:20px;padding-right:15px}.wrapper-bottom-fullscreen-desktop.v-1qfxnal .controls-play-button{padding-left:20px;padding-right:11px}.mobile-top-right-button+.mobile-top-right-button{margin-left:24px}@media screen and (orientation: portrait){.wrapper-top-right.wrapper-top-fullscreen-mobile.v-1qfxnal.v-1qfxnal{top:36px}.wrapper-top-left.wrapper-top-fullscreen-mobile.v-1qfxnal.v-1qfxnal{top:32px}.controls.controls-fullscreen-mobile.v-1qfxnal.v-1qfxnal{bottom:36px}}@media screen and (orientation: landscape){.wrapper-top-left.wrapper-top-fullscreen-mobile.v-1qfxnal.v-1qfxnal{left:32px}.wrapper-top-right.wrapper-top-fullscreen-mobile.v-1qfxnal.v-1qfxnal{right:36px}.controls.controls-fullscreen-mobile.v-1qfxnal.v-1qfxnal{left:20px;right:20px;bottom:24px}}')}function Ei(e){let t,i,n,o,l,a,s,r,c,d,u,v,p,m=e[28]&&Bi(e);a=new Ze({props:{className:'mobile-top-right-button'}});let h=!e[6]&&Ii(e),g=e[7]&&Fi(e);u=new Et({props:{playbackState:e[31],adPlaybackState:e[32],isAds:e[3],handlePlayClick:e[41],repeatPlaylist:e[14],isEnded:e[33],isOneVideoPlaylist:e[10]}});let f=e[7]&&ji(e);return{c(){t=B('div'),i=j(),n=B('div'),m&&m.c(),o=j(),l=B('div'),he(a.$$.fragment),s=j(),h&&h.c(),r=j(),c=B('div'),g&&g.c(),d=j(),he(u.$$.fragment),v=j(),f&&f.c(),D(t,'class','overlay-mobile v-1qfxnal'),Q(t,'hidden',!e[26]),D(n,'class','wrapper-top-left v-1qfxnal'),Q(n,'hidden',!e[2]),Q(n,'wrapper-top-fullscreen-mobile',e[27]&&e[18]),D(l,'class','wrapper-top-right v-1qfxnal'),Q(l,'hidden',!e[2]),Q(l,'wrapper-top-fullscreen-mobile',e[27]&&e[18]),D(c,'class','wrapper-middle v-1qfxnal'),Q(c,'hidden',!e[2]||e[30])},m(e,b){q(e,t,b),q(e,i,b),q(e,n,b),m&&m.m(n,null),q(e,o,b),q(e,l,b),ge(a,l,null),L(l,s),h&&h.m(l,null),q(e,r,b),q(e,c,b),g&&g.m(c,null),L(c,d),ge(u,c,null),L(c,v),f&&f.m(c,null),p=!0},p(e,i){67108864&i[0]&&Q(t,'hidden',!e[26]),e[28]?m?(m.p(e,i),268435456&i[0]&&ve(m,1)):(m=Bi(e),m.c(),ve(m,1),m.m(n,null)):m&&(de(),pe(m,1,1,(()=>{m=null})),ue()),4&i[0]&&Q(n,'hidden',!e[2]),134479872&i[0]&&Q(n,'wrapper-top-fullscreen-mobile',e[27]&&e[18]),e[6]?h&&(de(),pe(h,1,1,(()=>{h=null})),ue()):h?(h.p(e,i),64&i[0]&&ve(h,1)):(h=Ii(e),h.c(),ve(h,1),h.m(l,null)),4&i[0]&&Q(l,'hidden',!e[2]),134479872&i[0]&&Q(l,'wrapper-top-fullscreen-mobile',e[27]&&e[18]),e[7]?g?(g.p(e,i),128&i[0]&&ve(g,1)):(g=Fi(e),g.c(),ve(g,1),g.m(c,d)):g&&(de(),pe(g,1,1,(()=>{g=null})),ue());const o={};1&i[1]&&(o.playbackState=e[31]),2&i[1]&&(o.adPlaybackState=e[32]),8&i[0]&&(o.isAds=e[3]),16384&i[0]&&(o.repeatPlaylist=e[14]),4&i[1]&&(o.isEnded=e[33]),1024&i[0]&&(o.isOneVideoPlaylist=e[10]),u.$set(o),e[7]?f?(f.p(e,i),128&i[0]&&ve(f,1)):(f=ji(e),f.c(),ve(f,1),f.m(c,null)):f&&(de(),pe(f,1,1,(()=>{f=null})),ue()),1073741828&i[0]&&Q(c,'hidden',!e[2]||e[30])},i(e){p||(ve(m),ve(a.$$.fragment,e),ve(h),ve(g),ve(u.$$.fragment,e),ve(f),p=!0)},o(e){pe(m),pe(a.$$.fragment,e),pe(h),pe(g),pe(u.$$.fragment,e),pe(f),p=!1},d(e){e&&T(t),e&&T(i),e&&T(n),m&&m.d(),e&&T(o),e&&T(l),fe(a),h&&h.d(),e&&T(r),e&&T(c),g&&g.d(),fe(u),f&&f.d()}}}function Bi(e){let t,i;return t=new mi({props:{expanded:e[29]}}),t.$on('click',e[62]),{c(){he(t.$$.fragment)},m(e,n){ge(t,e,n),i=!0},p(e,i){const n={};536870912&i[0]&&(n.expanded=e[29]),t.$set(n)},i(e){i||(ve(t.$$.fragment,e),i=!0)},o(e){pe(t.$$.fragment,e),i=!1},d(e){fe(t,e)}}}function Ii(e){let t,i;return t=new Yt({props:{className:'mobile-top-right-button',logoClickable:e[5]}}),t.$on('click',e[42]),{c(){he(t.$$.fragment)},m(e,n){ge(t,e,n),i=!0},p(e,i){const n={};32&i[0]&&(n.logoClickable=e[5]),t.$set(n)},i(e){i||(ve(t.$$.fragment,e),i=!0)},o(e){pe(t.$$.fragment,e),i=!1},d(e){fe(t,e)}}}function Fi(e){let t,i;return t=new _t({props:{type:'prev',disabled:!e[9]}}),t.$on('click',(function(){y(e[13])&&e[13].apply(this,arguments)})),{c(){he(t.$$.fragment)},m(e,n){ge(t,e,n),i=!0},p(i,n){e=i;const o={};512&n[0]&&(o.disabled=!e[9]),t.$set(o)},i(e){i||(ve(t.$$.fragment,e),i=!0)},o(e){pe(t.$$.fragment,e),i=!1},d(e){fe(t,e)}}}function ji(e){let t,i;return t=new _t({props:{type:'next',disabled:!e[8]}}),t.$on('click',(function(){y(e[12])&&e[12].apply(this,arguments)})),{c(){he(t.$$.fragment)},m(e,n){ge(t,e,n),i=!0},p(i,n){e=i;const o={};256&n[0]&&(o.disabled=!e[8]),t.$set(o)},i(e){i||(ve(t.$$.fragment,e),i=!0)},o(e){pe(t.$$.fragment,e),i=!1},d(e){fe(t,e)}}}function Ri(e){let t,i,n,o,l,a=e[28]&&Hi(e),s=e[32]===At.PAUSED&&_i(e);return o=new Pi({props:{position:e[34],duration:e[35]}}),{c(){a&&a.c(),t=j(),s&&s.c(),i=j(),n=B('div'),he(o.$$.fragment),D(n,'class','wrapper-bottom ads-timeline-mobile v-1qfxnal')},m(e,r){a&&a.m(e,r),q(e,t,r),s&&s.m(e,r),q(e,i,r),q(e,n,r),ge(o,n,null),l=!0},p(e,n){e[28]?a?(a.p(e,n),268435456&n[0]&&ve(a,1)):(a=Hi(e),a.c(),ve(a,1),a.m(t.parentNode,t)):a&&(de(),pe(a,1,1,(()=>{a=null})),ue()),e[32]===At.PAUSED?s?(s.p(e,n),2&n[1]&&ve(s,1)):(s=_i(e),s.c(),ve(s,1),s.m(i.parentNode,i)):s&&(de(),pe(s,1,1,(()=>{s=null})),ue());const l={};8&n[1]&&(l.position=e[34]),16&n[1]&&(l.duration=e[35]),o.$set(l)},i(e){l||(ve(a),ve(s),ve(o.$$.fragment,e),l=!0)},o(e){pe(a),pe(s),pe(o.$$.fragment,e),l=!1},d(e){a&&a.d(e),e&&T(t),s&&s.d(e),e&&T(i),e&&T(n),fe(o)}}}function Hi(e){let t,i,n;return i=new mi({props:{expanded:!1}}),i.$on('click',e[62]),{c(){t=B('div'),he(i.$$.fragment),D(t,'class','wrapper-top-right v-1qfxnal')},m(e,o){q(e,t,o),ge(i,t,null),n=!0},p:f,i(e){n||(ve(i.$$.fragment,e),n=!0)},o(e){pe(i.$$.fragment,e),n=!1},d(e){e&&T(t),fe(i)}}}function _i(e){let t,i,n;return i=new Et({props:{playbackState:e[31],adPlaybackState:e[32],isAds:!0,handlePlayClick:e[41],repeatPlaylist:f,isEnded:!1,isOneVideoPlaylist:!1}}),{c(){t=B('div'),he(i.$$.fragment),D(t,'class','wrapper-middle v-1qfxnal')},m(e,o){q(e,t,o),ge(i,t,null),n=!0},p(e,t){const n={};1&t[1]&&(n.playbackState=e[31]),2&t[1]&&(n.adPlaybackState=e[32]),i.$set(n)},i(e){n||(ve(i.$$.fragment,e),n=!0)},o(e){pe(i.$$.fragment,e),n=!1},d(e){e&&T(t),fe(i)}}}function Di(e){let t,i,n,o,l,a=e[7]&&!e[3]&&Ui(e);i=new ft({props:{className:'controls-element',$$slots:{default:[Qi]},$$scope:{ctx:e}}});let s=e[7]&&!e[3]&&Wi(e);return{c(){a&&a.c(),t=j(),he(i.$$.fragment),n=j(),s&&s.c(),o=R()},m(e,r){a&&a.m(e,r),q(e,t,r),ge(i,e,r),q(e,n,r),s&&s.m(e,r),q(e,o,r),l=!0},p(e,n){e[7]&&!e[3]?a?(a.p(e,n),136&n[0]&&ve(a,1)):(a=Ui(e),a.c(),ve(a,1),a.m(t.parentNode,t)):a&&(de(),pe(a,1,1,(()=>{a=null})),ue());const l={};17416&n[0]|7&n[1]|16&n[2]&&(l.$$scope={dirty:n,ctx:e}),i.$set(l),e[7]&&!e[3]?s?(s.p(e,n),136&n[0]&&ve(s,1)):(s=Wi(e),s.c(),ve(s,1),s.m(o.parentNode,o)):s&&(de(),pe(s,1,1,(()=>{s=null})),ue())},i(e){l||(ve(a),ve(i.$$.fragment,e),ve(s),l=!0)},o(e){pe(a),pe(i.$$.fragment,e),pe(s),l=!1},d(e){a&&a.d(e),e&&T(t),fe(i,e),e&&T(n),s&&s.d(e),e&&T(o)}}}function Ui(e){let t,i;return t=new ft({props:{className:'controls-element',disabled:!e[9],$$slots:{default:[Oi]},$$scope:{ctx:e}}}),{c(){he(t.$$.fragment)},m(e,n){ge(t,e,n),i=!0},p(e,i){const n={};512&i[0]&&(n.disabled=!e[9]),8704&i[0]|16&i[2]&&(n.$$scope={dirty:i,ctx:e}),t.$set(n)},i(e){i||(ve(t.$$.fragment,e),i=!0)},o(e){pe(t.$$.fragment,e),i=!1},d(e){fe(t,e)}}}function Oi(e){let t,i;return t=new _t({props:{type:'prev',disabled:!e[9]}}),t.$on('click',(function(){y(e[13])&&e[13].apply(this,arguments)})),{c(){he(t.$$.fragment)},m(e,n){ge(t,e,n),i=!0},p(i,n){e=i;const o={};512&n[0]&&(o.disabled=!e[9]),t.$set(o)},i(e){i||(ve(t.$$.fragment,e),i=!0)},o(e){pe(t.$$.fragment,e),i=!1},d(e){fe(t,e)}}}function Qi(e){let t,i;return t=new Et({props:{className:'controls-play-button',playbackState:e[31],adPlaybackState:e[32],isAds:e[3],handlePlayClick:e[41],repeatPlaylist:e[14],isEnded:e[33],isOneVideoPlaylist:e[10]}}),{c(){he(t.$$.fragment)},m(e,n){ge(t,e,n),i=!0},p(e,i){const n={};1&i[1]&&(n.playbackState=e[31]),2&i[1]&&(n.adPlaybackState=e[32]),8&i[0]&&(n.isAds=e[3]),16384&i[0]&&(n.repeatPlaylist=e[14]),4&i[1]&&(n.isEnded=e[33]),1024&i[0]&&(n.isOneVideoPlaylist=e[10]),t.$set(n)},i(e){i||(ve(t.$$.fragment,e),i=!0)},o(e){pe(t.$$.fragment,e),i=!1},d(e){fe(t,e)}}}function Wi(e){let t,i;return t=new ft({props:{className:'controls-element',disabled:!e[8],$$slots:{default:[Ki]},$$scope:{ctx:e}}}),{c(){he(t.$$.fragment)},m(e,n){ge(t,e,n),i=!0},p(e,i){const n={};256&i[0]&&(n.disabled=!e[8]),4352&i[0]|16&i[2]&&(n.$$scope={dirty:i,ctx:e}),t.$set(n)},i(e){i||(ve(t.$$.fragment,e),i=!0)},o(e){pe(t.$$.fragment,e),i=!1},d(e){fe(t,e)}}}function Ki(e){let t,i;return t=new _t({props:{type:'next',disabled:!e[8]}}),t.$on('click',(function(){y(e[12])&&e[12].apply(this,arguments)})),{c(){he(t.$$.fragment)},m(e,n){ge(t,e,n),i=!0},p(i,n){e=i;const o={};256&n[0]&&(o.disabled=!e[8]),t.$set(o)},i(e){i||(ve(t.$$.fragment,e),i=!0)},o(e){pe(t.$$.fragment,e),i=!1},d(e){fe(t,e)}}}function Yi(e){let t,i;return t=new ft({props:{className:'controls-element',$$slots:{default:[Xi]},$$scope:{ctx:e}}}),{c(){he(t.$$.fragment)},m(e,n){ge(t,e,n),i=!0},p(e,i){const n={};32&i[1]|16&i[2]&&(n.$$scope={dirty:i,ctx:e}),t.$set(n)},i(e){i||(ve(t.$$.fragment,e),i=!0)},o(e){pe(t.$$.fragment,e),i=!1},d(e){fe(t,e)}}}function Xi(e){let t,i;return t=new si({props:{isActiveLive:e[36]}}),t.$on('click',e[61]),{c(){he(t.$$.fragment)},m(e,n){ge(t,e,n),i=!0},p(e,i){const n={};32&i[1]&&(n.isActiveLive=e[36]),t.$set(n)},i(e){i||(ve(t.$$.fragment,e),i=!0)},o(e){pe(t.$$.fragment,e),i=!1},d(e){fe(t,e)}}}function Gi(e){let t,i;return t=new qi({props:{isHidden:!e[23],isAds:e[3],canRewindLive:e[4],className:'controls-element'}}),{c(){he(t.$$.fragment)},m(e,n){ge(t,e,n),i=!0},p(e,i){const n={};8388608&i[0]&&(n.isHidden=!e[23]),8&i[0]&&(n.isAds=e[3]),16&i[0]&&(n.canRewindLive=e[4]),t.$set(n)},i(e){i||(ve(t.$$.fragment,e),i=!0)},o(e){pe(t.$$.fragment,e),i=!1},d(e){fe(t,e)}}}function Ji(e){let t,i;return t=new lt({props:{className:'ui-time controls-element',showDuration:e[20],position:e[3]?e[34]:e[37],duration:e[3]?e[35]:e[38]}}),{c(){he(t.$$.fragment)},m(e,n){ge(t,e,n),i=!0},p(e,i){const n={};1048576&i[0]&&(n.showDuration=e[20]),8&i[0]|72&i[1]&&(n.position=e[3]?e[34]:e[37]),8&i[0]|144&i[1]&&(n.duration=e[3]?e[35]:e[38]),t.$set(n)},i(e){i||(ve(t.$$.fragment,e),i=!0)},o(e){pe(t.$$.fragment,e),i=!1},d(e){fe(t,e)}}}function Zi(e){let t,i;return t=new qi({props:{isAds:e[3],canRewindLive:e[4],className:'controls-element'}}),{c(){he(t.$$.fragment)},m(e,n){ge(t,e,n),i=!0},p(e,i){const n={};8&i[0]&&(n.isAds=e[3]),16&i[0]&&(n.canRewindLive=e[4]),t.$set(n)},i(e){i||(ve(t.$$.fragment,e),i=!0)},o(e){pe(t.$$.fragment,e),i=!1},d(e){fe(t,e)}}}function en(e){let t,i,n,o;t=new ft({props:{className:'controls-element',$$slots:{default:[tn]},$$scope:{ctx:e}}});let l=!e[39]&&!e[3]&&nn(e);return{c(){he(t.$$.fragment),i=j(),l&&l.c(),n=R()},m(e,a){ge(t,e,a),q(e,i,a),l&&l.m(e,a),q(e,n,a),o=!0},p(e,i){const o={};524288&i[0]|16&i[2]&&(o.$$scope={dirty:i,ctx:e}),t.$set(o),e[39]||e[3]?l&&(de(),pe(l,1,1,(()=>{l=null})),ue()):l?(l.p(e,i),8&i[0]|256&i[1]&&ve(l,1)):(l=nn(e),l.c(),ve(l,1),l.m(n.parentNode,n))},i(e){o||(ve(t.$$.fragment,e),ve(l),o=!0)},o(e){pe(t.$$.fragment,e),pe(l),o=!1},d(e){fe(t,e),e&&T(i),l&&l.d(e),e&&T(n)}}}function tn(e){let t,i;return t=new pt({props:{isVerticalVolume:e[19]}}),t.$on('click',e[40]),{c(){he(t.$$.fragment)},m(e,n){ge(t,e,n),i=!0},p(e,i){const n={};524288&i[0]&&(n.isVerticalVolume=e[19]),t.$set(n)},i(e){i||(ve(t.$$.fragment,e),i=!0)},o(e){pe(t.$$.fragment,e),i=!1},d(e){fe(t,e)}}}function nn(e){let t,i,n,o,l;i=new Ye({props:{supportLink:e[11]}});let a=e[22]&&on(e);return{c(){t=B('div'),he(i.$$.fragment),n=j(),a&&a.c(),o=R(),D(t,'class','settings-desktop v-1qfxnal')},m(e,s){q(e,t,s),ge(i,t,null),q(e,n,s),a&&a.m(e,s),q(e,o,s),l=!0},p(e,t){const n={};2048&t[0]&&(n.supportLink=e[11]),i.$set(n),e[22]?a?4194304&t[0]&&ve(a,1):(a=on(e),a.c(),ve(a,1),a.m(o.parentNode,o)):a&&(de(),pe(a,1,1,(()=>{a=null})),ue())},i(e){l||(ve(i.$$.fragment,e),ve(a),l=!0)},o(e){pe(i.$$.fragment,e),pe(a),l=!1},d(e){e&&T(t),fe(i),e&&T(n),a&&a.d(e),e&&T(o)}}}function on(e){let t,i;return t=new ft({props:{className:'controls-element',$$slots:{default:[ln]},$$scope:{ctx:e}}}),{c(){he(t.$$.fragment)},m(e,n){ge(t,e,n),i=!0},i(e){i||(ve(t.$$.fragment,e),i=!0)},o(e){pe(t.$$.fragment,e),i=!1},d(e){fe(t,e)}}}function ln(e){let t,i;return t=new Ze({props:{className:'ui-settings'}}),{c(){he(t.$$.fragment)},m(e,n){ge(t,e,n),i=!0},p:f,i(e){i||(ve(t.$$.fragment,e),i=!0)},o(e){pe(t.$$.fragment,e),i=!1},d(e){fe(t,e)}}}function an(e){let t,i;return t=new ft({props:{className:'controls-element',$$slots:{default:[sn]},$$scope:{ctx:e}}}),{c(){he(t.$$.fragment)},m(e,n){ge(t,e,n),i=!0},p(e,i){const n={};32768&i[0]|16&i[2]&&(n.$$scope={dirty:i,ctx:e}),t.$set(n)},i(e){i||(ve(t.$$.fragment,e),i=!0)},o(e){pe(t.$$.fragment,e),i=!1},d(e){fe(t,e)}}}function sn(e){let t,i;return t=new kt({}),t.$on('click',(function(){y(e[15])&&e[15].apply(this,arguments)})),{c(){he(t.$$.fragment)},m(e,n){ge(t,e,n),i=!0},p(t,i){e=t},i(e){i||(ve(t.$$.fragment,e),i=!0)},o(e){pe(t.$$.fragment,e),i=!1},d(e){fe(t,e)}}}function rn(e){let t,i,n,o=e[21]&&cn(e),l=!e[6]&&un(e);return{c(){o&&o.c(),t=j(),l&&l.c(),i=R()},m(e,a){o&&o.m(e,a),q(e,t,a),l&&l.m(e,a),q(e,i,a),n=!0},p(e,n){e[21]?o?(o.p(e,n),2097152&n[0]&&ve(o,1)):(o=cn(e),o.c(),ve(o,1),o.m(t.parentNode,t)):o&&(de(),pe(o,1,1,(()=>{o=null})),ue()),e[6]?l&&(de(),pe(l,1,1,(()=>{l=null})),ue()):l?(l.p(e,n),64&n[0]&&ve(l,1)):(l=un(e),l.c(),ve(l,1),l.m(i.parentNode,i))},i(e){n||(ve(o),ve(l),n=!0)},o(e){pe(o),pe(l),n=!1},d(e){o&&o.d(e),e&&T(t),l&&l.d(e),e&&T(i)}}}function cn(e){let t,i;return t=new ft({props:{className:'controls-element',$$slots:{default:[dn]},$$scope:{ctx:e}}}),{c(){he(t.$$.fragment)},m(e,n){ge(t,e,n),i=!0},p(e,i){const n={};16&i[2]&&(n.$$scope={dirty:i,ctx:e}),t.$set(n)},i(e){i||(ve(t.$$.fragment,e),i=!0)},o(e){pe(t.$$.fragment,e),i=!1},d(e){fe(t,e)}}}function dn(e){let t,i;return t=new ni({props:{className:'ui-chromecast'}}),t.$on('click',e[60]),{c(){he(t.$$.fragment)},m(e,n){ge(t,e,n),i=!0},p:f,i(e){i||(ve(t.$$.fragment,e),i=!0)},o(e){pe(t.$$.fragment,e),i=!1},d(e){fe(t,e)}}}function un(e){let t,i;return t=new ft({props:{className:'controls-element',$$slots:{default:[vn]},$$scope:{ctx:e}}}),{c(){he(t.$$.fragment)},m(e,n){ge(t,e,n),i=!0},p(e,i){const n={};32&i[0]|16&i[2]&&(n.$$scope={dirty:i,ctx:e}),t.$set(n)},i(e){i||(ve(t.$$.fragment,e),i=!0)},o(e){pe(t.$$.fragment,e),i=!1},d(e){fe(t,e)}}}function vn(e){let t,i;return t=new Yt({props:{logoClickable:e[5]}}),t.$on('click',e[42]),{c(){he(t.$$.fragment)},m(e,n){ge(t,e,n),i=!0},p(e,i){const n={};32&i[0]&&(n.logoClickable=e[5]),t.$set(n)},i(e){i||(ve(t.$$.fragment,e),i=!0)},o(e){pe(t.$$.fragment,e),i=!1},d(e){fe(t,e)}}}function pn(e){let t,i,n;return i=new Ye({props:{supportLink:e[11]}}),{c(){t=B('div'),he(i.$$.fragment),D(t,'class','settings-mobile v-1qfxnal')},m(e,o){q(e,t,o),ge(i,t,null),n=!0},p(e,t){const n={};2048&t[0]&&(n.supportLink=e[11]),i.$set(n)},i(e){n||(ve(i.$$.fragment,e),n=!0)},o(e){pe(i.$$.fragment,e),n=!1},d(e){e&&T(t),fe(i)}}}function mn(e){let t,i,n,o,l,a,s,r,c,d,u,v,p,m,h=e[18]&&!e[3]&&Ei(e),g=e[18]&&e[3]&&e[32]!==At.INACTIVE&&Ri(e),f=!e[18]&&Di(e),b=!e[3]&&e[17]&&Yi(e),w=!e[18]&&Gi(e),$=e[25]&&Ji(e),y=e[18]&&Zi(e),x=!e[18]&&en(e),k=e[24]&&an(e),V=!e[18]&&rn(e),P=e[18]&&e[16]&&pn(e);return{c(){h&&h.c(),t=j(),g&&g.c(),i=j(),n=B('div'),o=B('div'),f&&f.c(),l=j(),b&&b.c(),a=j(),w&&w.c(),s=j(),$&&$.c(),r=j(),y&&y.c(),c=j(),x&&x.c(),d=j(),k&&k.c(),u=j(),V&&V.c(),v=j(),P&&P.c(),p=R(),D(o,'class','controls v-1qfxnal'),Q(o,'controls-hidden',!e[2]),Q(o,'controls-fullscreen-mobile',e[27]&&e[18]),D(n,'class','wrapper-bottom v-1qfxnal'),Q(n,'hidden',e[1]),Q(n,'controls-hidden',!e[2]),Q(n,'wrapper-bottom-fullscreen-desktop',e[27]&&!e[18])},m(z,A){h&&h.m(z,A),q(z,t,A),g&&g.m(z,A),q(z,i,A),q(z,n,A),L(n,o),f&&f.m(o,null),L(o,l),b&&b.m(o,null),L(o,a),w&&w.m(o,null),L(o,s),$&&$.m(o,null),L(o,r),y&&y.m(o,null),L(o,c),x&&x.m(o,null),L(o,d),k&&k.m(o,null),L(o,u),V&&V.m(o,null),e[64](n),q(z,v,A),P&&P.m(z,A),q(z,p,A),m=!0},p(e,v){e[18]&&!e[3]?h?(h.p(e,v),262152&v[0]&&ve(h,1)):(h=Ei(e),h.c(),ve(h,1),h.m(t.parentNode,t)):h&&(de(),pe(h,1,1,(()=>{h=null})),ue()),e[18]&&e[3]&&e[32]!==At.INACTIVE?g?(g.p(e,v),262152&v[0]|2&v[1]&&ve(g,1)):(g=Ri(e),g.c(),ve(g,1),g.m(i.parentNode,i)):g&&(de(),pe(g,1,1,(()=>{g=null})),ue()),e[18]?f&&(de(),pe(f,1,1,(()=>{f=null})),ue()):f?(f.p(e,v),262144&v[0]&&ve(f,1)):(f=Di(e),f.c(),ve(f,1),f.m(o,l)),!e[3]&&e[17]?b?(b.p(e,v),131080&v[0]&&ve(b,1)):(b=Yi(e),b.c(),ve(b,1),b.m(o,a)):b&&(de(),pe(b,1,1,(()=>{b=null})),ue()),e[18]?w&&(de(),pe(w,1,1,(()=>{w=null})),ue()):w?(w.p(e,v),262144&v[0]&&ve(w,1)):(w=Gi(e),w.c(),ve(w,1),w.m(o,s)),e[25]?$?($.p(e,v),33554432&v[0]&&ve($,1)):($=Ji(e),$.c(),ve($,1),$.m(o,r)):$&&(de(),pe($,1,1,(()=>{$=null})),ue()),e[18]?y?(y.p(e,v),262144&v[0]&&ve(y,1)):(y=Zi(e),y.c(),ve(y,1),y.m(o,c)):y&&(de(),pe(y,1,1,(()=>{y=null})),ue()),e[18]?x&&(de(),pe(x,1,1,(()=>{x=null})),ue()):x?(x.p(e,v),262144&v[0]&&ve(x,1)):(x=en(e),x.c(),ve(x,1),x.m(o,d)),e[24]?k?(k.p(e,v),16777216&v[0]&&ve(k,1)):(k=an(e),k.c(),ve(k,1),k.m(o,u)):k&&(de(),pe(k,1,1,(()=>{k=null})),ue()),e[18]?V&&(de(),pe(V,1,1,(()=>{V=null})),ue()):V?(V.p(e,v),262144&v[0]&&ve(V,1)):(V=rn(e),V.c(),ve(V,1),V.m(o,null)),4&v[0]&&Q(o,'controls-hidden',!e[2]),134479872&v[0]&&Q(o,'controls-fullscreen-mobile',e[27]&&e[18]),2&v[0]&&Q(n,'hidden',e[1]),4&v[0]&&Q(n,'controls-hidden',!e[2]),134479872&v[0]&&Q(n,'wrapper-bottom-fullscreen-desktop',e[27]&&!e[18]),e[18]&&e[16]?P?(P.p(e,v),327680&v[0]&&ve(P,1)):(P=pn(e),P.c(),ve(P,1),P.m(p.parentNode,p)):P&&(de(),pe(P,1,1,(()=>{P=null})),ue())},i(e){m||(ve(h),ve(g),ve(f),ve(b),ve(w),ve($),ve(y),ve(x),ve(k),ve(V),ve(P),m=!0)},o(e){pe(h),pe(g),pe(f),pe(b),pe(w),pe($),pe(y),pe(x),pe(k),pe(V),pe(P),m=!1},d(o){h&&h.d(o),o&&T(t),g&&g.d(o),o&&T(i),o&&T(n),f&&f.d(),b&&b.d(),w&&w.d(),$&&$.d(),y&&y.d(),x&&x.d(),k&&k.d(),V&&V.d(),e[64](null),o&&T(v),P&&P.d(o),o&&T(p)}}}function hn(e,t,i){let n,o,l,a,s,r,c,d,u,v,p,m,h,g,f,b,w,{hidden:$}=t,{showControls:y}=t,{controlsElementRef:x}=t,{isAds:k=!1}=t,{canRewindLive:V}=t,{logoClickable:P}=t,{logoHidden:z}=t,{showNextPrevButtons:A}=t,{nextButtonActive:S}=t,{prevButtonActive:M}=t,{isOneVideoPlaylist:L=!1}=t,{supportLink:N}=t,{playNextVideo:q}=t,{playPrevVideo:T}=t,{repeatPlaylist:E}=t,{toggleFullscreen:B}=t;const I=Ae(),F=I.actions.internal.toggleMuted,j=I.actions.internal.togglePlay,R=I.actions.internal.pause,H=I.state.duration$;C(e,H,(e=>i(38,b=e)));const _=I.state.positionWithScrubbing$;C(e,_,(e=>i(37,f=e)));const D=I.state.playbackState$;C(e,D,(e=>i(31,u=e)));const U=I.state.chromecastConnected$;C(e,U,(e=>i(39,w=e)));const O=I.state.isEnded$;C(e,O,(e=>i(33,p=e)));const Q=I.state.isLive$;C(e,Q,(e=>i(17,l=e)));const W=I.state.isActiveLive$;C(e,W,(e=>i(36,g=e)));const K=I.ui.scrubbingInProgress;C(e,K,(e=>i(30,d=e)));const Y=I.ui.isMobile;C(e,Y,(e=>i(18,a=e)));const X=I.ui.mobileUnmuteButtonExpanded;C(e,X,(e=>i(29,c=e)));const G=I.ui.mobileUnmuteButtonVisible;C(e,G,(e=>i(28,r=e)));const Z=I.ui.settingsMenuVisible;C(e,Z,(e=>i(16,n=e)));const ee=I.ads.duration;C(e,ee,(e=>i(35,h=e)));const te=I.ads.position;C(e,te,(e=>i(34,m=e)));const ie=I.ads.playbackState;C(e,ie,(e=>i(32,v=e)));const ne=I.ui.isFullscreen;C(e,ne,(e=>i(27,s=e)));const oe=I.ui.playerSize;C(e,oe,(e=>i(63,o=e)));let le,ae,se,re,ce,de,ue,ve;return e.$$set=e=>{'hidden'in e&&i(1,$=e.hidden),'showControls'in e&&i(2,y=e.showControls),'controlsElementRef'in e&&i(0,x=e.controlsElementRef),'isAds'in e&&i(3,k=e.isAds),'canRewindLive'in e&&i(4,V=e.canRewindLive),'logoClickable'in e&&i(5,P=e.logoClickable),'logoHidden'in e&&i(6,z=e.logoHidden),'showNextPrevButtons'in e&&i(7,A=e.showNextPrevButtons),'nextButtonActive'in e&&i(8,S=e.nextButtonActive),'prevButtonActive'in e&&i(9,M=e.prevButtonActive),'isOneVideoPlaylist'in e&&i(10,L=e.isOneVideoPlaylist),'supportLink'in e&&i(11,N=e.supportLink),'playNextVideo'in e&&i(12,q=e.playNextVideo),'playPrevVideo'in e&&i(13,T=e.playPrevVideo),'repeatPlaylist'in e&&i(14,E=e.repeatPlaylist),'toggleFullscreen'in e&&i(15,B=e.toggleFullscreen)},e.$$.update=()=>{2&e.$$.dirty[2]&&i(19,le=o.width<600),262144&e.$$.dirty[0]|2&e.$$.dirty[2]&&i(20,ae=a||o.width>550),262144&e.$$.dirty[0]|2&e.$$.dirty[2]&&i(21,se=a||o.width>450),262144&e.$$.dirty[0]|2&e.$$.dirty[2]&&i(22,re=a||o.width>380),262144&e.$$.dirty[0]|2&e.$$.dirty[2]&&i(23,ce=a||o.width>300),262144&e.$$.dirty[0]|2&e.$$.dirty[2]&&i(24,de=a||o.width>220),131080&e.$$.dirty[0]|2&e.$$.dirty[2]&&i(25,ue=(!l||k)&&o.width>200),65540&e.$$.dirty[0]&&i(26,ve=n||y)},[x,$,y,k,V,P,z,A,S,M,L,N,q,T,E,B,n,l,a,le,ae,se,re,ce,de,ue,ve,s,r,c,d,u,v,p,m,h,g,f,b,w,F,j,R,H,_,D,U,O,Q,W,K,Y,X,G,Z,ee,te,ie,ne,oe,()=>I.actions.internal.toggleChromecast(),()=>I.actions.internal.switchToActiveLive(),function(){G.set(!1),F()},o,function(e){J[e?'unshift':'push']((()=>{x=e,i(0,x)}))}]}class gn extends $e{constructor(e){super(),we(this,e,hn,mn,x,{hidden:1,showControls:2,controlsElementRef:0,isAds:3,canRewindLive:4,logoClickable:5,logoHidden:6,showNextPrevButtons:7,nextButtonActive:8,prevButtonActive:9,isOneVideoPlaylist:10,supportLink:11,playNextVideo:12,playPrevVideo:13,repeatPlaylist:14,toggleFullscreen:15},Ti,[-1,-1,-1])}}function fn(e){N(e,'v-y9pij4','.container.v-y9pij4.v-y9pij4{position:absolute;top:0;bottom:0;left:0;right:0;background-position:center;background-size:cover;cursor:pointer;transition:opacity 0.2s, visibility 0.2s;will-change:opacity}.container.hidden.v-y9pij4.v-y9pij4{opacity:0;visibility:hidden}.playButton.v-y9pij4.v-y9pij4{position:absolute;top:0;bottom:0;left:0;right:0;margin:auto;width:var(--videoplayer-big-play-size);height:var(--videoplayer-big-play-size);display:flex;align-items:center;justify-content:center}.playButtonBackground.v-y9pij4.v-y9pij4{position:absolute;top:0;bottom:0;left:0;right:0;border-radius:var(--videoplayer-big-play-radius);background-color:var(--videoplayer-big-play-bg-color);transition:background 0.2s, transform 0.2s;transition-timing-function:ease-out;will-change:background, transform}.container.v-y9pij4:hover .playButtonBackground.v-y9pij4{background-color:var(--videoplayer-big-play-hover-bg-color);transform:scale(1.15)}.playButtonIcon.v-y9pij4.v-y9pij4{position:relative;width:48px;height:48px}')}function bn(e){let t,i,n,o,l,a,s,r,c;return{c(){t=B('div'),i=B('div'),n=B('div'),o=j(),l=B('img'),D(n,'class','playButtonBackground v-y9pij4'),P(l.src,a=Ct)||D(l,'src','data:image/svg+xml,%3csvg width=\'24\' height=\'24\' fill=\'none\' xmlns=\'http://www.w3.org/2000/svg\'%3e%3cpath d=\'M17.671 10.923c.82.483.82 1.67 0 2.154l-8.787 5.175A1.25 1.25 0 0 1 7 17.174V6.826a1.25 1.25 0 0 1 1.884-1.078l8.787 5.175z\' fill=\'white\'/%3e%3c/svg%3e'),D(l,'class','playButtonIcon v-y9pij4'),D(l,'alt',''),D(i,'class','playButton v-y9pij4'),D(t,'class','container v-y9pij4'),D(t,'style',s=`background-color: #222; background-image: url('${e[0]||''}')`),Q(t,'hidden',e[1])},m(a,s){q(a,t,s),L(t,i),L(i,n),L(i,o),L(i,l),r||(c=H(t,'click',(function(){y(e[2])&&e[2].apply(this,arguments)})),r=!0)},p(i,[n]){e=i,1&n&&s!==(s=`background-color: #222; background-image: url('${e[0]||''}')`)&&D(t,'style',s),2&n&&Q(t,'hidden',e[1])},i:f,o:f,d(e){e&&T(t),r=!1,c()}}}function wn(e,t,i){let{thumbUrl:n}=t,{hidden:o}=t,{startVideo:l}=t;return e.$$set=e=>{'thumbUrl'in e&&i(0,n=e.thumbUrl),'hidden'in e&&i(1,o=e.hidden),'startVideo'in e&&i(2,l=e.startVideo)},[n,o,l]}class $n extends $e{constructor(e){super(),we(this,e,wn,bn,x,{thumbUrl:0,hidden:1,startVideo:2},fn)}}function yn(e){N(e,'v-8nkw5s','.container.v-8nkw5s.v-8nkw5s{position:absolute;top:50%;left:50%;transform:translate(-50%, -50%);pointer-events:none;display:flex}.dot.v-8nkw5s.v-8nkw5s:nth-child(1){animation-delay:calc(0 * 180ms)}.dot.v-8nkw5s.v-8nkw5s:nth-child(2){animation-delay:calc(1 * 180ms)}.dot.v-8nkw5s.v-8nkw5s:nth-child(3){animation-delay:calc(2 * 180ms)}@keyframes v-8nkw5s-dot_animation{0%{opacity:0.2}30%{opacity:1}100%{opacity:0.2}}.dot.v-8nkw5s.v-8nkw5s{border-radius:4px;width:8px;height:8px;background:var(--white);animation-duration:750ms;animation-name:v-8nkw5s-dot_animation;animation-iteration-count:infinite}.dot.v-8nkw5s+.dot.v-8nkw5s{margin-left:4px}')}function xn(e){let t;return{c(){t=B('div'),t.innerHTML='<div class="dot v-8nkw5s"></div> \n <div class="dot v-8nkw5s"></div> \n <div class="dot v-8nkw5s"></div>',D(t,'class','container v-8nkw5s')},m(e,i){q(e,t,i)},p:f,i:f,o:f,d(e){e&&T(t)}}}class kn extends $e{constructor(e){super(),we(this,e,null,xn,x,{},yn)}}function Vn(e){const t=Ae();return Y((()=>{t.getAdmanWrapper().startPostroll()})),[]}class Pn extends $e{constructor(e){super(),we(this,e,Vn,null,x,{})}}function zn(e){N(e,'v-17pubzn','.container.v-17pubzn{position:absolute;top:14px;left:16px;padding:4px 8px;font-size:13px;color:var(--white);background:rgba(0, 0, 0, 0.35);border-radius:4px}.container-mobile.v-17pubzn{font-size:15px;background:unset;border-radius:unset}')}function An(e){let t,i,n;return{c(){t=B('div'),i=F('Реклама '),n=F(e[0]),D(t,'class','container v-17pubzn'),Q(t,'container-mobile',e[1])},m(e,o){q(e,t,o),L(t,i),L(t,n)},p(e,[i]){1&i&&U(n,e[0]),2&i&&Q(t,'container-mobile',e[1])},i:f,o:f,d(e){e&&T(t)}}}function Cn(e,t,i){let n,{position:o=0}=t,{duration:l=0}=t;const a=Ae().ui.isMobile;let s;return C(e,a,(e=>i(1,n=e))),e.$$set=e=>{'position'in e&&i(3,o=e.position),'duration'in e&&i(4,l=e.duration)},e.$$.update=()=>{24&e.$$.dirty&&i(0,s=et(l-o))},[s,n,a,o,l]}class Sn extends $e{constructor(e){super(),we(this,e,Cn,An,x,{position:3,duration:4},zn)}}function Mn(e){N(e,'v-22jj8o','.container.v-22jj8o.v-22jj8o{position:absolute;top:14px;right:16px;padding:4px 8px;font-size:13px;color:#bbb;background:rgba(0, 0, 0, 0.35);border-radius:4px;transition:color .2s}.container-mobile.v-22jj8o.v-22jj8o{bottom:14px;top:unset;font-size:15px;max-width:142px}.icon.v-22jj8o.v-22jj8o{margin-left:4px;position:relative;top:2px;fill:var(--white);transition:fill .2s}.skip.v-22jj8o.v-22jj8o{width:86px}.skippable.v-22jj8o.v-22jj8o{cursor:pointer;color:var(--white)}.skippable.v-22jj8o.v-22jj8o:hover{color:rgba(255, 255, 255, .75)}.skippable.v-22jj8o:hover .icon.v-22jj8o{fill:rgba(255, 255, 255, .75)}')}function Ln(e){let t,i,n,o=Math.ceil(e[1]-e[0])+'';return{c(){t=F('Пропустить рекламу через '),i=F(o),n=F(' с')},m(e,o){q(e,t,o),q(e,i,o),q(e,n,o)},p(e,t){3&t&&o!==(o=Math.ceil(e[1]-e[0])+'')&&U(i,o)},d(e){e&&T(t),e&&T(i),e&&T(n)}}}function Nn(e){let t,i,n;return{c(){t=B('div'),t.innerHTML='Пропустить рекламу\n <svg class="icon v-22jj8o" width="7" height="12" viewBox="0 0 7 12" fill="none" xmlns="http://www.w3.org/2000/svg"><path fill-rule="evenodd" clip-rule="evenodd" 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"></path></svg>',D(t,'class','skip v-22jj8o')},m(o,l){q(o,t,l),i||(n=H(t,'click',(function(){y(e[2])&&e[2].apply(this,arguments)})),i=!0)},p(t,i){e=t},d(e){e&&T(t),i=!1,n()}}}function qn(e){let t;function i(e,t){return e[3]?Nn:Ln}let n=i(e),o=n(e);return{c(){t=B('div'),o.c(),D(t,'class','container v-22jj8o'),Q(t,'container-mobile',e[4]),Q(t,'skippable',e[3])},m(e,i){q(e,t,i),o.m(t,null)},p(e,[l]){n===(n=i(e))&&o?o.p(e,l):(o.d(1),o=n(e),o&&(o.c(),o.m(t,null))),16&l&&Q(t,'container-mobile',e[4]),8&l&&Q(t,'skippable',e[3])},i:f,o:f,d(e){e&&T(t),o.d()}}}function Tn(e,t,i){let n,{position:o=0}=t,{secondsToWatchBeforeSkip:l=0}=t,{skipAd:a=f}=t;const s=Ae().ui.isMobile;let r;return C(e,s,(e=>i(4,n=e))),e.$$set=e=>{'position'in e&&i(0,o=e.position),'secondsToWatchBeforeSkip'in e&&i(1,l=e.secondsToWatchBeforeSkip),'skipAd'in e&&i(2,a=e.skipAd)},e.$$.update=()=>{3&e.$$.dirty&&i(3,r=o>0&&o>=l)},[o,l,a,r,n,s]}class En extends $e{constructor(e){super(),we(this,e,Tn,qn,x,{position:0,secondsToWatchBeforeSkip:1,skipAd:2},Mn)}}function Bn(e){N(e,'v-1wy3dql','button.v-1wy3dql{position:absolute;pointer-events:none;bottom:14px;left:16px;font-size:15px;background:white;border:none;padding:6px 10px;border-radius:6px;color:black}')}function In(e){let t;return{c(){t=B('button'),t.textContent='Перейти на сайт',D(t,'class','v-1wy3dql')},m(e,i){q(e,t,i)},p:f,i:f,o:f,d(e){e&&T(t)}}}class Fn extends $e{constructor(e){super(),we(this,e,null,In,x,{},Bn)}}function jn(e){N(e,'v-354ajf','.container.v-354ajf{width:100%;height:100%}.top-gradient-mobile.v-354ajf{position:absolute;width:100%;height:80px;top:0;left:0;pointer-events:none;background:linear-gradient(\n 360deg,\n rgba(0, 0, 0, 0) 0%,\n rgba(0, 0, 0, 0.05) 12%,\n rgba(0, 0, 0, 0.15) 25%,\n rgba(0, 0, 0, 0.3) 45%,\n rgba(0, 0, 0, 0.4) 57%,\n rgba(0, 0, 0, 0.5) 77%,\n rgba(0, 0, 0, 0.55) 88%,\n rgba(0, 0, 0, 0.65) 100%\n )}')}function Rn(e){let t;return{c(){t=B('div'),D(t,'class','top-gradient-mobile v-354ajf')},m(e,i){q(e,t,i)},d(e){e&&T(t)}}}function Hn(e){let t,i;return t=new Sn({props:{position:e[6],duration:e[7]}}),{c(){he(t.$$.fragment)},m(e,n){ge(t,e,n),i=!0},p(e,i){const n={};64&i&&(n.position=e[6]),128&i&&(n.duration=e[7]),t.$set(n)},i(e){i||(ve(t.$$.fragment,e),i=!0)},o(e){pe(t.$$.fragment,e),i=!1},d(e){fe(t,e)}}}function _n(e){let t,i;return t=new En({props:{position:e[6],secondsToWatchBeforeSkip:e[8],skipAd:e[10].actions.internal.skipAd}}),{c(){he(t.$$.fragment)},m(e,n){ge(t,e,n),i=!0},p(e,i){const n={};64&i&&(n.position=e[6]),256&i&&(n.secondsToWatchBeforeSkip=e[8]),t.$set(n)},i(e){i||(ve(t.$$.fragment,e),i=!0)},o(e){pe(t.$$.fragment,e),i=!1},d(e){fe(t,e)}}}function Dn(e){let t,i;return t=new Pn({}),{c(){he(t.$$.fragment)},m(e,n){ge(t,e,n),i=!0},i(e){i||(ve(t.$$.fragment,e),i=!0)},o(e){pe(t.$$.fragment,e),i=!1},d(e){fe(t,e)}}}function Un(e){let t,i;return t=new Fn({}),{c(){he(t.$$.fragment)},m(e,n){ge(t,e,n),i=!0},i(e){i||(ve(t.$$.fragment,e),i=!0)},o(e){pe(t.$$.fragment,e),i=!1},d(e){fe(t,e)}}}function On(e){let t,i,n,o,l,a,s,r,c=e[0]&&Rn(),d=e[3]&&Hn(e),u=e[4]&&_n(e),v=e[9]&&Dn(),p=e[5]&&Un();return{c(){t=B('div'),c&&c.c(),i=j(),n=B('video'),o=j(),d&&d.c(),l=j(),u&&u.c(),a=j(),v&&v.c(),s=j(),p&&p.c(),O(n,'width','100%'),O(n,'height','100%'),n.playsInline=!0,D(t,'class','container v-354ajf')},m(m,h){q(m,t,h),c&&c.m(t,null),L(t,i),L(t,n),e[22](n),L(t,o),d&&d.m(t,null),L(t,l),u&&u.m(t,null),L(t,a),v&&v.m(t,null),L(t,s),p&&p.m(t,null),e[23](t),r=!0},p(e,[n]){e[0]?c||(c=Rn(),c.c(),c.m(t,i)):c&&(c.d(1),c=null),e[3]?d?(d.p(e,n),8&n&&ve(d,1)):(d=Hn(e),d.c(),ve(d,1),d.m(t,l)):d&&(de(),pe(d,1,1,(()=>{d=null})),ue()),e[4]?u?(u.p(e,n),16&n&&ve(u,1)):(u=_n(e),u.c(),ve(u,1),u.m(t,a)):u&&(de(),pe(u,1,1,(()=>{u=null})),ue()),e[9]?v?512&n&&ve(v,1):(v=Dn(),v.c(),ve(v,1),v.m(t,s)):v&&(de(),pe(v,1,1,(()=>{v=null})),ue()),e[5]?p?32&n&&ve(p,1):(p=Un(),p.c(),ve(p,1),p.m(t,null)):p&&(de(),pe(p,1,1,(()=>{p=null})),ue())},i(e){r||(ve(d),ve(u),ve(v),ve(p),r=!0)},o(e){pe(d),pe(u),pe(v),pe(p),r=!1},d(i){i&&T(t),c&&c.d(),e[22](null),d&&d.d(),u&&u.d(),v&&v.d(),p&&p.d(),e[23](null)}}}function Qn(e,t,i){let n,o,l,a,s,r,{adsSlotId:c}=t,{adsParams:d}=t,{adsPreviewParam:u}=t,{duration:v=0}=t;const p=Ae(),m=p.state.isEnded$;C(e,m,(e=>i(9,r=e)));const h=p.ui.isMobile;let g,f;C(e,h,(e=>i(0,o=e)));let b=!1;const w=p.ads.playbackState;C(e,w,(e=>i(21,n=e)));const $=p.ads.canSkip,y=p.ads.duration;C(e,y,(e=>i(7,a=e)));const x=p.ads.position;C(e,x,(e=>i(6,l=e)));const k=p.ads.secondsToWatchBeforeSkip;let V,P,z;return C(e,k,(e=>i(8,s=e))),Y((()=>{const e=new AbortController;const t=p.getAdmanWrapper();if(!c)return void t.onAdmanLoadingError();const{width:i,height:n}=A(p.ui.playerSize),o={width:i,height:n,isFullscreen:A(p.ui.isFullscreen),isAutoplay:A(p.ui.isAutoplay),adsContainer:g,adsVideoElement:f,slotId:c,params:d,previewParam:u,duration:v};return window.AdmanHTML?(t.initAdman(o),b=!0):t.loadAdman(e.signal).then((()=>{t.initAdman(o),b=!0})).catch((()=>{t.onAdmanLoadingError()})),()=>{!b&&e.abort()}})),e.$$set=e=>{'adsSlotId'in e&&i(17,c=e.adsSlotId),'adsParams'in e&&i(18,d=e.adsParams),'adsPreviewParam'in e&&i(19,u=e.adsPreviewParam),'duration'in e&&i(20,v=e.duration)},e.$$.update=()=>{2097152&e.$$.dirty&&i(3,V=n!==At.INACTIVE),2097152&e.$$.dirty&&i(4,P=$&&n!==At.INACTIVE),2097153&e.$$.dirty&&i(5,z=o&&n!==At.INACTIVE)},[o,g,f,V,P,z,l,a,s,r,p,m,h,w,y,x,k,c,d,u,v,n,function(e){J[e?'unshift':'push']((()=>{f=e,i(2,f)}))},function(e){J[e?'unshift':'push']((()=>{g=e,i(1,g)}))}]}class Wn extends $e{constructor(e){super(),we(this,e,Qn,On,x,{adsSlotId:17,adsParams:18,adsPreviewParam:19,duration:20},jn)}}function Kn(e){N(e,'v-p5rs9b','ul.v-p5rs9b{position:absolute;border-radius:3px;background:rgba(0, 0, 0, 0.88);overflow:hidden;transition:visibility .1s,opacity .1s;font-size:13px;list-style:none;margin:0;padding:0}.hidden.v-p5rs9b{visibility:hidden;opacity:0}li.v-p5rs9b{padding:8px 20px;cursor:pointer;position:relative;display:block;color:rgba(255, 255, 255, 0.72);font-size:13px;white-space:nowrap}li.v-p5rs9b:hover{background:rgba(66, 66, 66, .5);color:var(--white)}')}function Yn(e){let t,i,n,o,l,a,s,r;return{c(){t=B('ul'),i=B('li'),i.textContent='Сообщить о проблеме',n=j(),o=B('li'),o.textContent='Копировать данные для диагностики',l=j(),a=B('li'),a.textContent='Техническая информация',D(i,'class','v-p5rs9b'),D(o,'class','v-p5rs9b'),D(a,'class','v-p5rs9b'),O(t,'top',e[1]+'px'),O(t,'left',e[0]+'px'),D(t,'class','v-p5rs9b'),Q(t,'hidden',!e[2])},m(c,d){q(c,t,d),L(t,i),L(t,n),L(t,o),L(t,l),L(t,a),e[10](t),s||(r=[H(i,'click',e[4]),H(o,'click',e[5]),H(a,'click',e[6])],s=!0)},p(e,[i]){2&i&&O(t,'top',e[1]+'px'),1&i&&O(t,'left',e[0]+'px'),4&i&&Q(t,'hidden',!e[2])},i:f,o:f,d(i){i&&T(t),e[10](null),s=!1,$(r)}}}function Xn(e,t,i){let{visible:n=!1}=t,{supportLink:o}=t,{x:l=0}=t,{y:a=0}=t,{playerContainerRef:s}=t,{controlsContainerRef:r}=t;const c=Ae(),d=c.ui.contextMenuVisible,u=c.ui.debugPanelVisible;let v;return e.$$set=e=>{'visible'in e&&i(2,n=e.visible),'supportLink'in e&&i(7,o=e.supportLink),'x'in e&&i(0,l=e.x),'y'in e&&i(1,a=e.y),'playerContainerRef'in e&&i(8,s=e.playerContainerRef),'controlsContainerRef'in e&&i(9,r=e.controlsContainerRef)},e.$$.update=()=>{3&e.$$.dirty&&((e,t)=>{if(!v||!s||!r)return;const n=v.getBoundingClientRect(),o=s.getBoundingClientRect(),c=r.getBoundingClientRect();i(0,l=e-o.left),i(1,a=t-o.top),l+n.width>o.width&&i(0,l-=n.width),a+n.height>o.height-c.height&&i(1,a-=n.height)})(l,a)},[l,a,n,v,e=>{window.open(o,'_blank'),d.set(!1),c.actions.internal.pause(),e.stopPropagation()},e=>{Te(c.actions.internal.getDebugTextData()),d.set(!1),e.stopPropagation()},e=>{u.set(!0),d.set(!1),e.stopPropagation()},o,s,r,function(e){J[e?'unshift':'push']((()=>{v=e,i(3,v)}))}]}class Gn extends $e{constructor(e){super(),we(this,e,Xn,Yn,x,{visible:2,supportLink:7,x:0,y:1,playerContainerRef:8,controlsContainerRef:9},Kn)}}class Jn{constructor(e){this.value=e,this.next=null}}class Zn{constructor(e){this.top=null,this.bottom=null,this.size=0,this.maxSize=e}push(e){const t=new Jn(e);this.top?(this.top.next=t,this.top=t):(this.top=t,this.bottom=t),this.size++,this.size>this.maxSize&&this.bottom&&(this.bottom=this.bottom.next)}getValuesFromBottom(){const e=[];let t=this.bottom;for(;t;)e.push(t.value),t=t.next;return e}}function eo(e){N(e,'v-1ssl9eb','.container.v-1ssl9eb{display:inline-block;width:120px;height:16px}canvas.v-1ssl9eb{transform:scale(1, -1);margin-top:2px}')}function to(e){let t,i;return{c(){t=B('div'),i=B('canvas'),D(i,'class','v-1ssl9eb'),D(t,'class','container v-1ssl9eb')},m(n,o){q(n,t,o),L(t,i),e[3](i)},p:f,i:f,o:f,d(i){i&&T(t),e[3](null)}}}function io(e,t,i,n,o){0===o&&(o=1),e.fillStyle='#fff',e.fillRect(t,i,n,o)}function no(e,t,i){let n,o,{values:l=[]}=t;return Y((()=>{i(0,n.width=120,n),i(0,n.height=16,n),i(2,o=n.getContext('2d'))})),e.$$set=e=>{'values'in e&&i(1,l=e.values)},e.$$.update=()=>{if(6&e.$$.dirty&&o){let e=l[0];for(let t=1;t<l.length;t++)l[t]>e&&(e=l[t]);o.clearRect(0,0,120,16);let t=59;for(let i=l.length-1;i>=0;i--){const n=2*t,a=e>0?l[i]/e*16:0;io(o,n,0,2,a),t--}}},[n,l,o,function(e){J[e?'unshift':'push']((()=>{n=e,i(0,n)}))}]}class oo extends $e{constructor(e){super(),we(this,e,no,to,x,{values:1},eo)}}const lo={set:(e,t)=>{try{localStorage.setItem(e,JSON.stringify(t))}catch(e){}},get:e=>{try{const t=localStorage.getItem(e);return t?JSON.parse(t):null}catch(e){return null}},remove(e){try{localStorage.removeItem(e)}catch(e){}}};function ao(e){N(e,'v-1gy2e68','.container.v-1gy2e68.v-1gy2e68.v-1gy2e68{background:rgba(28, 28, 28, 0.8);border-radius:4px;color:#fff;left:20px;position:absolute;top:45px;min-width:160px;font-size:10px;text-align:left}.container-mobile.v-1gy2e68.v-1gy2e68.v-1gy2e68{top:16px;left:16px}button.v-1gy2e68.v-1gy2e68.v-1gy2e68{position:absolute;right:5px;top:3px;cursor:pointer;outline:0;border:none;background-color:transparent;padding:0;color:#fff}.content.v-1gy2e68.v-1gy2e68.v-1gy2e68{padding:5px}.content.v-1gy2e68>div.v-1gy2e68>div.v-1gy2e68{display:inline-block;text-align:right;width:52px;padding:0 5px}')}function so(e){let t,i,n,o,l,a=e[0].provider+'';return{c(){t=B('div'),i=B('div'),i.textContent='Provider',n=j(),o=B('span'),l=F(a),D(i,'class','v-1gy2e68'),D(t,'class','v-1gy2e68')},m(e,a){q(e,t,a),L(t,i),L(t,n),L(t,o),L(o,l)},p(e,t){1&t&&a!==(a=e[0].provider+'')&&U(l,a)},d(e){e&&T(t)}}}function ro(e){let t,i,n,o,l,a=e[0].viewport+'';return{c(){t=B('div'),i=B('div'),i.textContent='Viewport',n=j(),o=B('span'),l=F(a),D(i,'class','v-1gy2e68'),D(t,'class','v-1gy2e68')},m(e,a){q(e,t,a),L(t,i),L(t,n),L(t,o),L(o,l)},p(e,t){1&t&&a!==(a=e[0].viewport+'')&&U(l,a)},d(e){e&&T(t)}}}function co(e){let t,i,n,o,l,a=e[0].videoSize+'';return{c(){t=B('div'),i=B('div'),i.textContent='Video size',n=j(),o=B('span'),l=F(a),D(i,'class','v-1gy2e68'),D(t,'class','v-1gy2e68')},m(e,a){q(e,t,a),L(t,i),L(t,n),L(t,o),L(o,l)},p(e,t){1&t&&a!==(a=e[0].videoSize+'')&&U(l,a)},d(e){e&&T(t)}}}function uo(e){let t,i,n,o,l,a=e[0].cdn+'';return{c(){t=B('div'),i=B('div'),i.textContent='CDN host',n=j(),o=B('span'),l=F(a),D(i,'class','v-1gy2e68'),D(t,'class','v-1gy2e68')},m(e,a){q(e,t,a),L(t,i),L(t,n),L(t,o),L(o,l)},p(e,t){1&t&&a!==(a=e[0].cdn+'')&&U(l,a)},d(e){e&&T(t)}}}function vo(e){let t,i,n,o,l,a,s=e[0].volume+'';return{c(){t=B('div'),i=B('div'),i.textContent='Volume',n=j(),o=B('span'),l=F(s),a=F(' %'),D(i,'class','v-1gy2e68'),D(t,'class','v-1gy2e68')},m(e,s){q(e,t,s),L(t,i),L(t,n),L(t,o),L(o,l),L(o,a)},p(e,t){1&t&&s!==(s=e[0].volume+'')&&U(l,s)},d(e){e&&T(t)}}}function po(e){let t,i,n,o,l,a,s=e[0].buffer.toFixed(2)+'';return{c(){t=B('div'),i=B('div'),i.textContent='Buffer',n=j(),o=B('span'),l=F(s),a=F(' s'),D(i,'class','v-1gy2e68'),D(t,'class','v-1gy2e68')},m(e,s){q(e,t,s),L(t,i),L(t,n),L(t,o),L(o,l),L(o,a)},p(e,t){1&t&&s!==(s=e[0].buffer.toFixed(2)+'')&&U(l,s)},d(e){e&&T(t)}}}function mo(e){let t,i,n,o,l,a,s,r,c,d=e[0].speed.toFixed(2)+'';return o=new oo({props:{values:e[5]}}),{c(){t=B('div'),i=B('div'),i.textContent='Speed',n=j(),he(o.$$.fragment),l=j(),a=B('span'),s=F(d),r=F(' kbps'),D(i,'class','v-1gy2e68'),D(t,'class','v-1gy2e68')},m(e,d){q(e,t,d),L(t,i),L(t,n),ge(o,t,null),L(t,l),L(t,a),L(a,s),L(a,r),c=!0},p(e,t){const i={};32&t&&(i.values=e[5]),o.$set(i),(!c||1&t)&&d!==(d=e[0].speed.toFixed(2)+'')&&U(s,d)},i(e){c||(ve(o.$$.fragment,e),c=!0)},o(e){pe(o.$$.fragment,e),c=!1},d(e){e&&T(t),fe(o)}}}function ho(e){let t,i,n,o,l,a,s,r,c,d,u,v,p,m,h,g,f,b,w,$,y,x,k,V,P,z,A,C,S,M,N,E,I,R,_,O,W=e[0].version+'',K=e[0].provider&&so(e),Y=e[0].viewport&&ro(e),X=e[0].videoSize&&co(e),G=e[0].cdn&&uo(e),J=e[0].volume&&vo(e),Z=e[0].buffer&&po(e),ee=e[0].speed&&mo(e);return M=new oo({props:{values:e[4]}}),{c(){t=B('div'),i=B('button'),i.textContent='[x]',n=j(),o=B('div'),l=B('div'),a=B('div'),a.textContent='Version',s=j(),r=B('span'),c=F(W),d=j(),K&&K.c(),u=j(),Y&&Y.c(),v=j(),X&&X.c(),p=j(),G&&G.c(),m=j(),J&&J.c(),h=j(),Z&&Z.c(),g=j(),f=B('div'),b=B('div'),b.textContent='Dropped',w=j(),$=B('span'),y=F(e[2]),x=F(' / '),k=F(e[1]),V=F(' frames'),P=j(),ee&&ee.c(),z=j(),A=B('div'),C=B('div'),C.textContent='FPS',S=j(),he(M.$$.fragment),N=j(),E=B('span'),I=F(e[3]),D(i,'class','close v-1gy2e68'),D(i,'title','закрыть'),D(a,'class','v-1gy2e68'),D(l,'class','v-1gy2e68'),D(b,'class','v-1gy2e68'),D(f,'class','v-1gy2e68'),D(C,'class','v-1gy2e68'),D(A,'class','v-1gy2e68'),D(o,'class','content v-1gy2e68'),D(t,'class','container v-1gy2e68'),Q(t,'container-mobile',e[6])},m(T,B){q(T,t,B),L(t,i),L(t,n),L(t,o),L(o,l),L(l,a),L(l,s),L(l,r),L(r,c),L(o,d),K&&K.m(o,null),L(o,u),Y&&Y.m(o,null),L(o,v),X&&X.m(o,null),L(o,p),G&&G.m(o,null),L(o,m),J&&J.m(o,null),L(o,h),Z&&Z.m(o,null),L(o,g),L(o,f),L(f,b),L(f,w),L(f,$),L($,y),L($,x),L($,k),L($,V),L(o,P),ee&&ee.m(o,null),L(o,z),L(o,A),L(A,C),L(A,S),ge(M,A,null),L(A,N),L(A,E),L(E,I),R=!0,_||(O=H(i,'click',e[8]),_=!0)},p(e,[i]){(!R||1&i)&&W!==(W=e[0].version+'')&&U(c,W),e[0].provider?K?K.p(e,i):(K=so(e),K.c(),K.m(o,u)):K&&(K.d(1),K=null),e[0].viewport?Y?Y.p(e,i):(Y=ro(e),Y.c(),Y.m(o,v)):Y&&(Y.d(1),Y=null),e[0].videoSize?X?X.p(e,i):(X=co(e),X.c(),X.m(o,p)):X&&(X.d(1),X=null),e[0].cdn?G?G.p(e,i):(G=uo(e),G.c(),G.m(o,m)):G&&(G.d(1),G=null),e[0].volume?J?J.p(e,i):(J=vo(e),J.c(),J.m(o,h)):J&&(J.d(1),J=null),e[0].buffer?Z?Z.p(e,i):(Z=po(e),Z.c(),Z.m(o,g)):Z&&(Z.d(1),Z=null),(!R||4&i)&&U(y,e[2]),(!R||2&i)&&U(k,e[1]),e[0].speed?ee?(ee.p(e,i),1&i&&ve(ee,1)):(ee=mo(e),ee.c(),ve(ee,1),ee.m(o,z)):ee&&(de(),pe(ee,1,1,(()=>{ee=null})),ue());const n={};16&i&&(n.values=e[4]),M.$set(n),(!R||8&i)&&U(I,e[3]),64&i&&Q(t,'container-mobile',e[6])},i(e){R||(ve(ee),ve(M.$$.fragment,e),R=!0)},o(e){pe(ee),pe(M.$$.fragment,e),R=!1},d(e){e&&T(t),K&&K.d(),Y&&Y.d(),X&&X.d(),G&&G.d(),J&&J.d(),Z&&Z.d(),ee&&ee.d(),fe(M),_=!1,O()}}}function go(e,t,i){let n;const o=Ae(),l=o.ui.debugPanelVisible,a=o.ui.isMobile;C(e,a,(e=>i(6,n=e)));let s=o.actions.internal.getDebugPanelData(),r=o.actions.internal.getVideoElement(),c=0,d=0,u=0;const v=new Zn(60),p=new Zn(60);let m=[],h=[];return Y((()=>{lo.set('vk_player_debug_panel_opened',!0),o.actions.internal.startLogging(),r&&(i(2,d=r.getVideoPlaybackQuality().droppedVideoFrames),i(1,c=r.getVideoPlaybackQuality().totalVideoFrames));const e=window.setInterval((()=>{i(0,s=o.actions.internal.getDebugPanelData())}),500);let t;return r&&(t=window.setInterval((()=>{if(r){i(2,d=r.getVideoPlaybackQuality().droppedVideoFrames);const e=r.getVideoPlaybackQuality().totalVideoFrames;i(3,u=e-c),i(1,c=e),v.push(u),s.speed&&p.push(s.speed),i(4,m=v.getValuesFromBottom()),i(5,h=p.getValuesFromBottom())}}),1e3)),()=>{o.actions.internal.stopLogging(),clearInterval(e),t&&clearInterval(t)}})),[s,c,d,u,m,h,n,a,e=>{lo.set('vk_player_debug_panel_opened',!1),l.set(!1),e.stopPropagation()}]}class fo extends $e{constructor(e){super(),we(this,e,go,ho,x,{},ao)}}function bo(e){N(e,'v-1ome55p','.close.v-1ome55p{cursor:pointer;opacity:0.8;transition:opacity 0.2s;position:relative;width:16px;height:16px}.close.v-1ome55p:hover{opacity:1}.close.v-1ome55p:before,.close.v-1ome55p:after{position:absolute;left:8px;content:\' \';height:16px;width:2px;background-color:var(--white)}.close.v-1ome55p:before{transform:rotate(45deg)}.close.v-1ome55p:after{transform:rotate(-45deg)}')}function wo(e){let t,i,n;return{c(){t=B('div'),D(t,'class','close v-1ome55p')},m(o,l){q(o,t,l),i||(n=H(t,'click',e[0]),i=!0)},p:f,i:f,o:f,d(e){e&&T(t),i=!1,n()}}}function $o(e){return[function(t){X.call(this,e,t)}]}class yo extends $e{constructor(e){super(),we(this,e,$o,wo,x,{},bo)}}function xo(e){N(e,'v-8jhsry','.timer.v-8jhsry{border-radius:50%;transition:background .2s;background:rgba(31, 31, 31, .65);width:50px;height:50px;display:flex;align-items:center;justify-content:space-around}.timer.v-8jhsry:hover{background:rgba(31, 31, 31, .85)\n }.timer-canvas.v-8jhsry{width:50px;height:50px;position:absolute}.timer-play-icon.v-8jhsry{width:22px;height:26px}')}function ko(e){let t,i,n,o,l,a,s;return{c(){t=B('div'),i=B('canvas'),n=j(),o=I('svg'),l=I('g'),a=I('g'),s=I('path'),D(i,'class','timer-canvas v-8jhsry'),D(i,'width','100'),D(i,'height','100'),D(s,'class','_play'),D(s,'d','m8.13340613 5.10548415 10.49681277 6.24354325c.3559987.2117494.472936.6720001.2611866 1.0279989-.0638111.1072809-.1533894.1969388-.2606135.2608453l-10.4968128 6.256187c-.35581027.2120659-.81616483.095538-1.02823068-.2602722-.06921066-.1161237-.10574852-.2487949-.10574852-.3839792v-12.49973035c0-.41421357.33578644-.75.75-.75.13495801 0 .26741554.03641567.38340613.1054073z'),D(s,'fill','#fff'),D(a,'fill-rule','nonzero'),D(l,'fill','none'),D(l,'fill-rule','evenodd'),D(o,'class','timer-play-icon v-8jhsry'),D(o,'viewBox','0 0 24 24'),D(o,'xmlns','http://www.w3.org/2000/svg'),D(t,'class','timer v-8jhsry')},m(r,c){q(r,t,c),L(t,i),e[2](i),L(t,n),L(t,o),L(o,l),L(l,a),L(a,s)},p:f,i:f,o:f,d(i){i&&T(t),e[2](null)}}}function Vo(e,t,i){let n,{onTimerEnded:o=f}=t;return Y((()=>{let e;const t=n.getContext('2d');if(!t)return;t.lineWidth=6,t.lineCap='round',t.strokeStyle='#fff';const i=Date.now(),l=()=>{const n=(Date.now()-i)/5e3;n<1?(t.clearRect(0,0,100,100),t.beginPath(),t.arc(50,50,47,-Math.PI/2,-Math.PI/2+2*Math.PI*n),t.stroke(),e=requestAnimationFrame(l)):o()};return e=requestAnimationFrame(l),()=>{cancelAnimationFrame(e)}})),e.$$set=e=>{'onTimerEnded'in e&&i(1,o=e.onTimerEnded)},[n,o,function(e){J[e?'unshift':'push']((()=>{n=e,i(0,n)}))}]}class Po extends $e{constructor(e){super(),we(this,e,Vo,ko,x,{onTimerEnded:1},xo)}}function zo(e){N(e,'v-kisfwc','.overlay.v-kisfwc{width:100%;height:100%;background:rgba(0, 0, 0, 0.72);position:absolute}.next-video.v-kisfwc{position:absolute;top:50%;left:50%;transform:translate(-50%, -50%);display:flex;width:362px;flex-direction:column}.top.v-kisfwc{display:flex;justify-content:space-between}.caption.v-kisfwc{font-size:11px;font-weight:bold;color:var(--white);text-transform:uppercase;opacity:0.8}.row.v-kisfwc{height:102px;background:rgba(48, 48, 48, .8);cursor:pointer;margin-top:6px;display:flex;flex-direction:row;flex-wrap:wrap;width:100%}.column.v-kisfwc{display:flex;flex-direction:column;flex-basis:50%}.thumb.v-kisfwc{width:100%;height:100%;background:no-repeat center;background-size:cover;display:flex;align-items:center;position:relative;justify-content:space-around}.thumb-overlay.v-kisfwc{width:100%;height:100%;background:var(--black);opacity:0.3;position:absolute}.title.v-kisfwc{padding:10px 16px;font-size:12px;font-weight:bold;color:var(--white);line-height:1.6;max-height:52px;overflow:hidden}')}function Ao(e){let t,i;return t=new Po({props:{onTimerEnded:e[2]}}),{c(){he(t.$$.fragment)},m(e,n){ge(t,e,n),i=!0},p(e,i){const n={};4&i&&(n.onTimerEnded=e[2]),t.$set(n)},i(e){i||(ve(t.$$.fragment,e),i=!0)},o(e){pe(t.$$.fragment,e),i=!1},d(e){fe(t,e)}}}function Co(e){let t,i,n,o,l,a,s,r,c,d,u,v,p,m,h,g,f,b,w,$,x;s=new yo({}),s.$on('click',e[4]);let k=e[3]&&Ao(e);return{c(){t=B('div'),i=j(),n=B('div'),o=B('div'),l=B('div'),l.textContent='следующее видео',a=j(),he(s.$$.fragment),r=j(),c=B('div'),d=B('div'),u=B('div'),v=B('div'),p=j(),k&&k.c(),h=j(),g=B('div'),f=B('div'),b=F(e[0]),D(t,'class','overlay v-kisfwc'),D(l,'class','caption v-kisfwc'),D(o,'class','top v-kisfwc'),D(v,'class','thumb-overlay v-kisfwc'),D(u,'class','thumb v-kisfwc'),D(u,'style',m=`background-image: url('${e[1]}')`),D(d,'class','column v-kisfwc'),D(f,'class','title v-kisfwc'),D(g,'class','column v-kisfwc'),D(c,'class','row v-kisfwc'),D(n,'class','next-video v-kisfwc')},m(m,V){q(m,t,V),q(m,i,V),q(m,n,V),L(n,o),L(o,l),L(o,a),ge(s,o,null),L(n,r),L(n,c),L(c,d),L(d,u),L(u,v),L(u,p),k&&k.m(u,null),L(c,h),L(c,g),L(g,f),L(f,b),w=!0,$||(x=H(c,'click',(function(){y(e[2])&&e[2].apply(this,arguments)})),$=!0)},p(t,[i]){(e=t)[3]?k?(k.p(e,i),8&i&&ve(k,1)):(k=Ao(e),k.c(),ve(k,1),k.m(u,null)):k&&(de(),pe(k,1,1,(()=>{k=null})),ue()),(!w||2&i&&m!==(m=`background-image: url('${e[1]}')`))&&D(u,'style',m),(!w||1&i)&&U(b,e[0])},i(e){w||(ve(s.$$.fragment,e),ve(k),w=!0)},o(e){pe(s.$$.fragment,e),pe(k),w=!1},d(e){e&&T(t),e&&T(i),e&&T(n),fe(s),k&&k.d(),$=!1,x()}}}function So(e,t,i){let{title:n}=t,{thumb:o}=t,{playNextVideo:l}=t,a=!0;return e.$$set=e=>{'title'in e&&i(0,n=e.title),'thumb'in e&&i(1,o=e.thumb),'playNextVideo'in e&&i(2,l=e.playNextVideo)},[n,o,l,a,()=>i(3,a=!1)]}class Mo extends $e{constructor(e){super(),we(this,e,So,Co,x,{title:0,thumb:1,playNextVideo:2},zo)}}function Lo(e,t,i){let{playNextVideo:n}=t;return Y((()=>{n()})),e.$$set=e=>{'playNextVideo'in e&&i(0,n=e.playNextVideo)},[n]}class No extends $e{constructor(e){super(),we(this,e,Lo,null,x,{playNextVideo:0})}}function qo(e){N(e,'v-cus9x4','.title.v-cus9x4{position:absolute;left:0;top:0;width:100%;height:var(--videoplayer-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(--videoplayer-controls-transition-duration);transition-timing-function:var(--videoplayer-controls-transition-fn);will-change:transform, opacity;background:linear-gradient(\n 0deg,\n rgba(0, 0, 0, 0) 0%,\n rgba(0, 0, 0, 0.02) 19%,\n rgba(0, 0, 0, 0.10) 34%,\n rgba(0, 0, 0, 0.40) 60%,\n rgba(0, 0, 0, 0.60) 100%\n )}.hidden.v-cus9x4{visibility:hidden;transform:translateY(calc(var(--videoplayer-controls-gradient-height) * -1));opacity:0}')}function To(e){let t,i;return{c(){t=B('div'),i=F(e[0]),D(t,'class','title v-cus9x4'),Q(t,'hidden',e[1])},m(e,n){q(e,t,n),L(t,i)},p(e,[n]){1&n&&U(i,e[0]),2&n&&Q(t,'hidden',e[1])},i:f,o:f,d(e){e&&T(t)}}}function Eo(e,t,i){let{title:n=''}=t,{isHidden:o=!1}=t;return e.$$set=e=>{'title'in e&&i(0,n=e.title),'isHidden'in e&&i(1,o=e.isHidden)},[n,o]}class Bo extends $e{constructor(e){super(),we(this,e,Eo,To,x,{title:0,isHidden:1},qo)}}function Io(e){N(e,'v-1o62kpz','.wrapper.v-1o62kpz{height:100%;background-position:center;background-size:cover;display:flex;align-items:center;justify-content:center;font-size:16px;flex-direction:column}.icon_wrapper.v-1o62kpz{display:flex;flex-direction:column;align-items:center;width:400px}.icon.v-1o62kpz{width:50px;height:50px}.text.v-1o62kpz{margin-top:20px}')}function Fo(e){let t,i,n;return{c(){t=B('div'),i=F('Видео воспроизводится на '),n=F(e[1]),D(t,'class','text v-1o62kpz')},m(e,o){q(e,t,o),L(t,i),L(t,n)},p(e,t){2&t&&U(n,e[1])},d(e){e&&T(t)}}}function jo(e){let t,i,n,o,l,a,s=e[1]&&Fo(e);return{c(){t=B('div'),i=B('div'),i.innerHTML='<svg class="icon v-1o62kpz" width="22" height="22" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><g fill="none" fill-rule="evenodd"><path d="M1 18v3h3c0-1.66-1.34-3-3-3zm0-4v2c2.76 0 5 2.24 5 5h2c0-3.87-3.13-7-7-7zm0-4v2a9 9 0 0 1 9 9h2c0-6.08-4.93-11-11-11zm20-7H3c-1.1 0-2 .9-2 2v3h2V5h18v14h-7v2h7c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2z" fill="#fff"></path><path d="M0 0h24v24H0z"></path></g></svg>',n=j(),s&&s.c(),D(i,'class','icon_wrapper v-1o62kpz'),D(t,'class','wrapper v-1o62kpz'),D(t,'style',o=`background-image: linear-gradient(0deg, rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)), url('${e[0]||''}')`)},m(o,r){q(o,t,r),L(t,i),L(t,n),s&&s.m(t,null),l||(a=H(t,'click',e[2]),l=!0)},p(e,[i]){e[1]?s?s.p(e,i):(s=Fo(e),s.c(),s.m(t,null)):s&&(s.d(1),s=null),1&i&&o!==(o=`background-image: linear-gradient(0deg, rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)), url('${e[0]||''}')`)&&D(t,'style',o)},i:f,o:f,d(e){e&&T(t),s&&s.d(),l=!1,a()}}}function Ro(e,t,i){let{thumbUrl:n}=t,{chromecastDeviceName:o}=t;return e.$$set=e=>{'thumbUrl'in e&&i(0,n=e.thumbUrl),'chromecastDeviceName'in e&&i(1,o=e.chromecastDeviceName)},[n,o,function(t){X.call(this,e,t)}]}class Ho extends $e{constructor(e){super(),we(this,e,Ro,jo,x,{thumbUrl:0,chromecastDeviceName:1},Io)}}function _o(e){N(e,'v-zd9h6u','.container.v-zd9h6u{position:absolute;top:0;bottom:0;left:0;right:0;background:#000;display:flex;align-items:center;justify-content:center}.icon.v-zd9h6u{width:200px;height:200px}')}function Do(e){let t,i,n;return{c(){t=B('div'),i=B('img'),P(i.src,n='data:image/svg+xml,%3csvg viewBox=\'460 190 130 90\' xmlns=\'http://www.w3.org/2000/svg\'%3e%3cpath d=\'M460 193.998a3.997 3.997 0 0 1 3.997-3.998h122.006a4.003 4.003 0 0 1 3.997 3.998v82.004a3.997 3.997 0 0 1-3.997 3.998H463.997a4.003 4.003 0 0 1-3.997-3.998zm6 2.993c0-.546.45-.99.99-.99h4.02c.546 0 .99.45.99.99v4.02c0 .546-.45.99-.99.99h-4.02a.995.995 0 0 1-.99-.99zm0 12c0-.546.45-.99.99-.99h4.02c.546 0 .99.45.99.99v4.02c0 .546-.45.99-.99.99h-4.02a.995.995 0 0 1-.99-.99zm0 12c0-.546.45-.99.99-.99h4.02c.546 0 .99.45.99.99v4.02c0 .546-.45.99-.99.99h-4.02a.995.995 0 0 1-.99-.99zm0 12c0-.546.45-.99.99-.99h4.02c.546 0 .99.45.99.99v4.02c0 .546-.45.99-.99.99h-4.02a.995.995 0 0 1-.99-.99zm0 12c0-.546.45-.99.99-.99h4.02c.546 0 .99.45.99.99v4.02c0 .546-.45.99-.99.99h-4.02a.995.995 0 0 1-.99-.99zm0 12c0-.546.45-.99.99-.99h4.02c.546 0 .99.45.99.99v4.02c0 .546-.45.99-.99.99h-4.02a.995.995 0 0 1-.99-.99zm0 12c0-.546.45-.99.99-.99h4.02c.546 0 .99.45.99.99v4.02c0 .546-.45.99-.99.99h-4.02a.995.995 0 0 1-.99-.99zm112-72c0-.546.45-.99.99-.99h4.02c.546 0 .99.45.99.99v4.02c0 .546-.45.99-.99.99h-4.02a.995.995 0 0 1-.99-.99zm0 12c0-.546.45-.99.99-.99h4.02c.546 0 .99.45.99.99v4.02c0 .546-.45.99-.99.99h-4.02a.995.995 0 0 1-.99-.99zm0 12c0-.546.45-.99.99-.99h4.02c.546 0 .99.45.99.99v4.02c0 .546-.45.99-.99.99h-4.02a.995.995 0 0 1-.99-.99zm0 12c0-.546.45-.99.99-.99h4.02c.546 0 .99.45.99.99v4.02c0 .546-.45.99-.99.99h-4.02a.995.995 0 0 1-.99-.99zm0 12c0-.546.45-.99.99-.99h4.02c.546 0 .99.45.99.99v4.02c0 .546-.45.99-.99.99h-4.02a.995.995 0 0 1-.99-.99zm0 12c0-.546.45-.99.99-.99h4.02c.546 0 .99.45.99.99v4.02c0 .546-.45.99-.99.99h-4.02a.995.995 0 0 1-.99-.99zm0 12c0-.546.45-.99.99-.99h4.02c.546 0 .99.45.99.99v4.02c0 .546-.45.99-.99.99h-4.02a.995.995 0 0 1-.99-.99zM507 232a6 6 0 1 0 0-12 6 6 0 0 0 0 12zm36 0a6 6 0 1 0 0-12 6 6 0 0 0 0 12zm-18.05 15c6.05 0 11.624 4.446 11.944 4.65 2.106 1.35 3.252.772 3.957.156s1.15-2.806-1.044-4.657c-1.735-1.48-5.806-5.16-14.856-5.15s-12.95 3.5-14.792 5.185c-1.84 1.685-2.288 3.498-.973 4.657 1.315 1.158 2.315 1.158 4.357-.327-.007.007 5.357-4.515 11.408-4.515z\' fill=\'white\' fill-rule=\'evenodd\'/%3e%3c/svg%3e')||D(i,'src','data:image/svg+xml,%3csvg viewBox=\'460 190 130 90\' xmlns=\'http://www.w3.org/2000/svg\'%3e%3cpath d=\'M460 193.998a3.997 3.997 0 0 1 3.997-3.998h122.006a4.003 4.003 0 0 1 3.997 3.998v82.004a3.997 3.997 0 0 1-3.997 3.998H463.997a4.003 4.003 0 0 1-3.997-3.998zm6 2.993c0-.546.45-.99.99-.99h4.02c.546 0 .99.45.99.99v4.02c0 .546-.45.99-.99.99h-4.02a.995.995 0 0 1-.99-.99zm0 12c0-.546.45-.99.99-.99h4.02c.546 0 .99.45.99.99v4.02c0 .546-.45.99-.99.99h-4.02a.995.995 0 0 1-.99-.99zm0 12c0-.546.45-.99.99-.99h4.02c.546 0 .99.45.99.99v4.02c0 .546-.45.99-.99.99h-4.02a.995.995 0 0 1-.99-.99zm0 12c0-.546.45-.99.99-.99h4.02c.546 0 .99.45.99.99v4.02c0 .546-.45.99-.99.99h-4.02a.995.995 0 0 1-.99-.99zm0 12c0-.546.45-.99.99-.99h4.02c.546 0 .99.45.99.99v4.02c0 .546-.45.99-.99.99h-4.02a.995.995 0 0 1-.99-.99zm0 12c0-.546.45-.99.99-.99h4.02c.546 0 .99.45.99.99v4.02c0 .546-.45.99-.99.99h-4.02a.995.995 0 0 1-.99-.99zm0 12c0-.546.45-.99.99-.99h4.02c.546 0 .99.45.99.99v4.02c0 .546-.45.99-.99.99h-4.02a.995.995 0 0 1-.99-.99zm112-72c0-.546.45-.99.99-.99h4.02c.546 0 .99.45.99.99v4.02c0 .546-.45.99-.99.99h-4.02a.995.995 0 0 1-.99-.99zm0 12c0-.546.45-.99.99-.99h4.02c.546 0 .99.45.99.99v4.02c0 .546-.45.99-.99.99h-4.02a.995.995 0 0 1-.99-.99zm0 12c0-.546.45-.99.99-.99h4.02c.546 0 .99.45.99.99v4.02c0 .546-.45.99-.99.99h-4.02a.995.995 0 0 1-.99-.99zm0 12c0-.546.45-.99.99-.99h4.02c.546 0 .99.45.99.99v4.02c0 .546-.45.99-.99.99h-4.02a.995.995 0 0 1-.99-.99zm0 12c0-.546.45-.99.99-.99h4.02c.546 0 .99.45.99.99v4.02c0 .546-.45.99-.99.99h-4.02a.995.995 0 0 1-.99-.99zm0 12c0-.546.45-.99.99-.99h4.02c.546 0 .99.45.99.99v4.02c0 .546-.45.99-.99.99h-4.02a.995.995 0 0 1-.99-.99zm0 12c0-.546.45-.99.99-.99h4.02c.546 0 .99.45.99.99v4.02c0 .546-.45.99-.99.99h-4.02a.995.995 0 0 1-.99-.99zM507 232a6 6 0 1 0 0-12 6 6 0 0 0 0 12zm36 0a6 6 0 1 0 0-12 6 6 0 0 0 0 12zm-18.05 15c6.05 0 11.624 4.446 11.944 4.65 2.106 1.35 3.252.772 3.957.156s1.15-2.806-1.044-4.657c-1.735-1.48-5.806-5.16-14.856-5.15s-12.95 3.5-14.792 5.185c-1.84 1.685-2.288 3.498-.973 4.657 1.315 1.158 2.315 1.158 4.357-.327-.007.007 5.357-4.515 11.408-4.515z\' fill=\'white\' fill-rule=\'evenodd\'/%3e%3c/svg%3e'),D(i,'class','icon v-zd9h6u'),D(i,'alt',''),D(t,'class','container v-zd9h6u')},m(e,n){q(e,t,n),L(t,i)},p:f,i:f,o:f,d(e){e&&T(t)}}}class Uo extends $e{constructor(e){super(),we(this,e,null,Do,x,{},_o)}}function Oo(e,i,n){let o,l,a,r,c,{isAds:d}=i,{hideContextMenu:u}=i,{toggleFullscreen:v}=i;const p=Ae(),m=p.getLogger().createComponentLog('KeyboardControls component'),h=p.state.playbackState$;C(e,h,(e=>n(13,c=e)));const g=p.ads.playbackState;C(e,g,(e=>n(12,r=e)));const f=p.state.positionExact$;C(e,f,(e=>n(11,a=e)));const b=p.state.duration$;C(e,b,(e=>n(10,l=e)));const w=p.state.volume$;C(e,w,(e=>n(9,o=e)));return e.$$set=e=>{'isAds'in e&&n(5,d=e.isAds),'hideContextMenu'in e&&n(6,u=e.hideContextMenu),'toggleFullscreen'in e&&n(7,v=e.toggleFullscreen)},[h,g,f,b,w,d,u,v,e=>{u();const i=e.code;if(e.ctrlKey||e.altKey||e.metaKey)return;const n=c===t.PLAYING||c===t.PAUSED,h=d&&(r===At.PAUSED||r===At.PLAYING);if(n||h)switch(m({message:`key down, code: ${i}`}),i){case Me.KeyJ:case Me.ArrowLeft:{if(h)break;const t=Math.max(a-10,0);a>0&&p.actions.internal.seekTime(t),e.preventDefault();break}case Me.KeyL:case Me.ArrowRight:{if(h)break;const t=Math.min(a+10,l);a<l&&p.actions.internal.seekTime(t),e.preventDefault();break}case Me.ArrowUp:{const t=Math.min(o+.05,1);o<1&&p.actions.internal.setVolume(t),e.preventDefault();break}case Me.ArrowDown:{const t=Math.max(o-.05,0);o>0&&p.actions.internal.setVolume(t),e.preventDefault();break}case Me.Comma:e.shiftKey&&(p.actions.internal.decrementPlaybackRate(),e.preventDefault());break;case Me.Period:e.shiftKey&&(p.actions.internal.incrementPlaybackRate(),e.preventDefault());break;case Me.KeyK:case Me.Space:p.actions.internal.togglePlay(),e.preventDefault();break;case Me.KeyM:p.actions.internal.toggleMuted(),e.preventDefault();break;case Me.KeyF:v(),e.preventDefault();break;default:s(i)}}]}class Qo extends $e{constructor(e){super(),we(this,e,Oo,null,x,{isAds:5,hideContextMenu:6,toggleFullscreen:7,keyDownHandler:8})}get keyDownHandler(){return this.$$.ctx[8]}}function Wo(e){N(e,'v-1c30l04','.double-click-area.v-1c30l04{position:absolute;z-index:1;top:0;height:100%;width:25%;overflow:hidden}.double-click-area.left.v-1c30l04{left:0}.double-click-area.right.v-1c30l04{right:0}.semicircle.v-1c30l04{position:absolute;top:0;width:100%;height:100%;background-color:rgba(0, 0, 0, 0.5)}.semicircle.left.v-1c30l04{left:0;border-top-right-radius:50%;border-bottom-right-radius:50%}.semicircle.right.v-1c30l04{right:0;border-top-left-radius:50%;border-bottom-left-radius:50%}.info.v-1c30l04{position:absolute;top:50%;left:50%;transform:translate(-50%, -50%);display:flex;flex-direction:column;align-items:center;justify-content:center}.triangles-wrapper.v-1c30l04{position:relative;display:flex;margin-bottom:10px;justify-content:center}.triangle.v-1c30l04{width:0;height:0;border-top:6px solid transparent;border-bottom:6px solid transparent;animation:v-1c30l04-blink 500ms infinite;opacity:0}.triangle.right.v-1c30l04:nth-child(1),.triangle.left.v-1c30l04:nth-child(3){animation-delay:0ms}.triangle.right.v-1c30l04:nth-child(2),.triangle.left.v-1c30l04:nth-child(2){animation-delay:100ms}.triangle.right.v-1c30l04:nth-child(3),.triangle.left.v-1c30l04:nth-child(1){animation-delay:200ms}@keyframes v-1c30l04-blink{0%{opacity:0}50%{opacity:1}100%{opacity:0}}.triangle.left.v-1c30l04{border-right:8px solid var(--white)}.triangle.right.v-1c30l04{border-left:8px solid var(--white)}.triangle.v-1c30l04:not(:last-child){margin-right:5px}.step-caption.v-1c30l04{margin:0;text-align:center;font-size:12px;line-height:1;color:var(--white)}')}function Ko(e){let t,i,n,o,l,a,s,r,c,d,u,v,p,m,h,g,f;return{c(){t=B('div'),n=j(),o=B('div'),l=B('div'),a=B('div'),r=j(),c=B('div'),u=j(),v=B('div'),m=j(),h=B('p'),g=F(e[1]),f=F(' секунд'),D(t,'class',i='semicircle '+e[0]+' v-1c30l04'),D(a,'class',s='triangle '+e[0]+' v-1c30l04'),D(c,'class',d='triangle '+e[0]+' v-1c30l04'),D(v,'class',p='triangle '+e[0]+' v-1c30l04'),D(l,'class','triangles-wrapper v-1c30l04'),D(h,'class','step-caption v-1c30l04'),D(o,'class','info v-1c30l04')},m(e,i){q(e,t,i),q(e,n,i),q(e,o,i),L(o,l),L(l,a),L(l,r),L(l,c),L(l,u),L(l,v),L(o,m),L(o,h),L(h,g),L(h,f)},p(e,n){1&n&&i!==(i='semicircle '+e[0]+' v-1c30l04')&&D(t,'class',i),1&n&&s!==(s='triangle '+e[0]+' v-1c30l04')&&D(a,'class',s),1&n&&d!==(d='triangle '+e[0]+' v-1c30l04')&&D(c,'class',d),1&n&&p!==(p='triangle '+e[0]+' v-1c30l04')&&D(v,'class',p),2&n&&U(g,e[1])},d(e){e&&T(t),e&&T(n),e&&T(o)}}}function Yo(e){let t,i,n,o,l=e[2]&&Ko(e);return{c(){t=B('div'),l&&l.c(),D(t,'class',i='double-click-area '+e[0]+' v-1c30l04')},m(i,a){var s;q(i,t,a),l&&l.m(t,null),n||(o=H(t,'click',(s=e[3](),function(e){return e.stopPropagation(),s.call(this,e)})),n=!0)},p(e,[n]){e[2]?l?l.p(e,n):(l=Ko(e),l.c(),l.m(t,null)):l&&(l.d(1),l=null),1&n&&i!==(i='double-click-area '+e[0]+' v-1c30l04')&&D(t,'class',i)},i:f,o:f,d(e){e&&T(t),l&&l.d(),n=!1,o()}}}function Xo(e,t,i){let{side:n}=t,{seekStep:o}=t,{handleSingleFirstClick:l}=t,{handleSecondClick:a}=t,s=!1,r=0,c=0;var d;return d=()=>{window.clearTimeout(r),window.clearTimeout(c)},K().$$.on_destroy.push(d),e.$$set=e=>{'side'in e&&i(0,n=e.side),'seekStep'in e&&i(1,o=e.seekStep),'handleSingleFirstClick'in e&&i(4,l=e.handleSingleFirstClick),'handleSecondClick'in e&&i(5,a=e.handleSecondClick)},[n,o,s,()=>{let e=0;return()=>{e+=1,1===e?r=window.setTimeout((()=>{l(),e=0}),300):(window.clearTimeout(r),e=0,a(),i(2,s=!0),c=window.setTimeout((()=>{i(2,s=!1)}),500))}},l,a]}class Go extends $e{constructor(e){super(),we(this,e,Xo,Yo,x,{side:0,seekStep:1,handleSingleFirstClick:4,handleSecondClick:5},Wo)}}const Jo=(e,t)=>e<400||t<225?5:e<640||t<360?0:e<960||t<540?1:e<1280||t<720?2:3;class Zo{constructor(e){this.adman=null,this.initialVolume=1,this.videoElement=null,this.currentAdSection=null,this.actions=null,this.adsState=null,this.uiState=null,this.events={slotRequested$:new r,started$:new r,paused$:new r,resumed$:new r,ended$:new r,skipped$:new r,clicked$:new r},this.loadAdman=e=>new Promise(((t,i)=>{let n;const o=()=>{clearTimeout(n),delete window.admanAsyncInit,window.AdmanHTML?t():i()};c('//ad.mail.ru/static/admanhtml/rbadman-html5.min.js',e,2e3).then((()=>{window.AdmanHTML?t():(window.admanAsyncInit=o,n=window.setTimeout(o,2e3))})).catch((()=>{i()}))})),this.onAdsReady=()=>{this.log({message:'ads ready'}),this.startPreroll()},this.onAdStarted=(e,t)=>{a(this.adsState),a(this.uiState),a(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'}),A(this.uiState.isMobile)&&this.uiState.mobileUnmuteButtonVisible.set(!0)),this.adsState.duration.set(t.duration),this.adsState.playbackState.set(At.PLAYING),this.adsState.canSkip.set(t.allowClose),this.adsState.secondsToWatchBeforeSkip.set(t.allowCloseDelay)},this.onAdTimeRemained=({currentTime:e})=>{a(this.adsState),this.adsState.position.set(e)},this.onAdPaused=()=>{a(this.adsState),this.log({message:'ad paused'}),this.adsState.playbackState.set(At.PAUSED)},this.onAdPlayed=()=>{a(this.adsState),this.log({message:'ad played'}),this.adsState.playbackState.set(At.PLAYING)},this.onAdMidrollPoint=()=>{a(this.adman),a(this.actions),this.log({message:'midroll point'}),this.actions.switchFromVideoToAds(),this.currentAdSection=zt.Midroll,this.adman.start(zt.Midroll)},this.onAdSkipped=()=>{this.log({message:'ad skipped'}),this.switchToVideo()},this.onAdClosed=()=>{this.log({message:'ad closed'}),this.switchToVideo()},this.onAdCompleted=()=>{this.log({message:'ad completed'}),this.events.ended$.next(),this.switchToVideo()},this.onAdClicked=()=>{var e;this.log({message:'ad clicked'}),null===(e=this.videoElement)||void 0===e||e.pause(),this.events.clicked$.next()},this.onAdError=()=>{this.log({message:'ad error'}),this.switchToVideo()},this.log=e.createComponentLog('AdmanWrapper')}init(e,t,i){this.actions=e,this.adsState=t,this.uiState=i}onAdmanLoadingError(){this.log({message:'adman loading error'}),this.switchToVideo(!0)}initAdman(e){const{width:t,height:i,isFullscreen:n,isAutoplay:o,adsContainer:l,adsVideoElement:a,slotId:s,params:r={},duration:c,previewParam:d}=e,u={slot:s,wrapper:l,videoEl:a,videoQuality:i,params:Object.assign({dl:encodeURIComponent(window.location.href),autoplay:o,player_width:t,player_height:i,puid10:Jo(t,i),puid11:n?0:1,preview:d,duration:c},r),browser:{mobile:!1}},v=new window.AdmanHTML;v.setDebug(!1),v.onReady(this.onAdsReady),v.onStarted(this.onAdStarted),v.onPlayed(this.onAdPlayed),v.onPaused(this.onAdPaused),v.adMidrollPoint(this.onAdMidrollPoint),v.onClosed(this.onAdClosed),v.onSkipped(this.onAdSkipped),v.onClicked(this.onAdClicked),v.onTimeRemained(this.onAdTimeRemained),v.onCompleted(this.onAdCompleted),v.onError(this.onAdError),v.init(u),this.adman=v,this.videoElement=a,this.events.slotRequested$.next(),this.log({message:`adman init, config: ${JSON.stringify(u)}`})}switchToVideo(e=!1){if(null===this.currentAdSection&&!e)return void this.log({message:'switch to video, no currentAdSection. can\'t switch'});a(this.actions),a(this.adsState),a(this.uiState);const t=this.currentAdSection===zt.Postroll;this.adsState.playbackState.set(At.INACTIVE),this.currentAdSection=null,this.uiState.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(){a(this.adsState),this.log({message:'toggle play'});const e=A(this.adsState.playbackState);e===At.PLAYING?this.pause():e===At.PAUSED&&this.play()}setInitialVolume(e){this.log({message:`set initial volume ${e}`}),this.initialVolume=e}setVolume(e){var t;this.log({message:`set volume ${e}`}),null===(t=this.adman)||void 0===t||t.setVolume(e),this.videoElement&&(this.videoElement.volume=e)}setFullscreen(e){var t;this.log({message:`set fullscreen ${e}`}),null===(t=this.adman)||void 0===t||t.setFullscreen(e)}startPreroll(){a(this.adman),this.log({message:'start preroll'}),this.setVolume(this.initialVolume),this.currentAdSection=zt.Preroll,this.adman.start(zt.Preroll)}startPostroll(){a(this.adman),a(this.actions),this.log({message:'start postroll'}),this.actions.switchFromVideoToAds(),this.currentAdSection=zt.Postroll,this.adman.start(zt.Postroll)}play(){a(this.adman),this.log({message:'ad play'}),this.adman.resume(),this.events.resumed$.next()}pause(){a(this.adman),this.log({message:'ad pause'}),this.adman.pause(),this.events.paused$.next()}skip(){a(this.adman),this.log({message:'ad skip'}),this.adman.skip(),this.events.skipped$.next()}setPosition(e,t){var i;null===(i=this.adman)||void 0===i||i.setPosition(Math.floor(e),Math.floor(t))}destroy(){var e;this.log({message:'destroy'}),null===(e=this.adman)||void 0===e||e.destroy()}}const el=()=>{const e=document;return!!(e.fullscreenElement||e.mozFullScreenElement||e.webkitFullscreenElement||e.msFullscreenElement)},tl=e=>{const t=Math.round(e);return isNaN(t)||t<40?'':t>=40&&t<55?50:t>=55&&t<90?60:t>=90&&t<180?120:t>=180?240:''},il=e=>e>1?1:e<0?0:e,nl=e=>lo.set('vk_player_preferred_volume',il(e)),ol=()=>{const e=parseFloat(lo.get('vk_player_preferred_volume'));return isNaN(e)?1:il(e)},ll=e=>lo.set('vk_player_prefer_volume_mute',e),al=({videoId:l,albumId:s,autoplay:r,statPlace:c,callbacks:g,uiCallbacks:f})=>{const b=new n,w=new u,$=new Zo(w),y=w.createComponentLog('Store');let x,k;const V=xe([],(e=>{let t=[];const i=p(b.events.managedError$,b.events.fatalError$).subscribe((i=>{t=[...t,i],e(t)}));return()=>i.unsubscribe()})),P=xe(!1,(e=>{const t=b.events.fatalError$.subscribe((()=>e(!0)));return()=>t.unsubscribe()})),z=ke(Pt.Thumb),C=Ve([P,z],(([e,t])=>e?Pt.Crashed:t));y({message:'create store'});const S=new m({movieId:l,albumId:s,place:c,autoplay:r},{apiEnv:h.VK_ALIAS}),M=((e,t,i)=>{const n=new d;return n.add(i.attachTo(e)),n.add(t.slotRequested$.subscribe((()=>{i.logAdSlotRequest()}))).add(t.started$.subscribe((e=>{i.logAdStarted(e)}))).add(t.paused$.subscribe((()=>{i.logAdPaused()}))).add(t.resumed$.subscribe((()=>{i.logAdResumed()}))).add(t.ended$.subscribe((()=>{i.logAdEnded()}))).add(t.skipped$.subscribe((()=>{i.logAdSkipped()}))).add(t.clicked$.subscribe((()=>{i.logAdClicked()}))),n})(b,$.events,S),L=()=>{/ipad|iphone|ipod/.test(window.navigator.userAgent.toLowerCase())&&k&&(e=>{const t=e;(null==t?void 0:t.webkitExitFullscreen)?null==t||t.webkitExitFullscreen():Promise.reject()})(k)},N=(new d).add(b.experimental.element$.subscribe((e=>{e&&(k=e,e.classList.add('player-media'))}))).add(b.events.ended$.subscribe((()=>{var e;L(),null===(e=g.onEnded)||void 0===e||e.call(g)}))).add(b.events.started$.subscribe((()=>{var e;const t=b.info.muted$.getValue();null===(e=g.onStarted)||void 0===e||e.call(g),f.onStarted(t)}))).add(b.events.willSeek$.subscribe((({from:e,to:t})=>{var i;null===(i=g.onSeek)||void 0===i||i.call(g,e,t)}))).add(b.info.position$.subscribe((e=>{var t;const i=b.info.duration$.getValue();null===(t=g.onTimeupdate)||void 0===t||t.call(g,i,e),$.setPosition(e,i)}))).add(b.events.fatalError$.subscribe((()=>{var e;null===(e=g.onCrashed)||void 0===e||e.call(g)}))),q=new d,T=xe(b.info.position$.getValue(),(e=>{let i,n;const o=()=>{const l=b.info.playbackState$.getValue(),a=b.info.isLive$.getValue(),s=b.info.duration$.getValue(),r=b.info.position$.getValue();if([t.PLAYING,t.PAUSED].includes(l)){const t=a?r-s:b.getExactTime();t!==n&&e(t),n=t}i=requestAnimationFrame(o)};return o(),()=>cancelAnimationFrame(i)})),E=Ce(b.info.playbackState$),B=Ce(b.info.currentBuffer$),I=Ce(b.info.isEnded$),F=Ce(b.info.isLive$),j=Ce(b.info.volume$),R=Ce(b.info.muted$),H=Ce(b.info.availableQualities$),_=Ce(b.info.availableQualitiesFps$),D=Ce(b.info.chromecastState$),U=Ce(b.info.chromecastDeviceName$),O=Ce(b.info.currentFormat$),Q=Ce(b.info.duration$);let W=null;const K=b.info.isBuffering$,Y=xe(K.getValue(),(e=>{const t=K.subscribe((t=>{t&&null===W?W=window.setTimeout((()=>{e(K.getValue()),W=null}),500):e(t)}));return()=>{t.unsubscribe(),W&&clearTimeout(W)}})),X=Ve([Q,F],(([e,t])=>t?-e:e)),G=Ve([F,Ce(b.info.position$)],(([e,t])=>Boolean(e&&t>-5))),J=Ve([D],(([e])=>e===i.CONNECTED)),Z=ke(void 0),ee=Ce(b.info.isAutoQualityEnabled$,(e=>e&&Z.set(void 0))),te=Ce(b.info.currentQuality$,(()=>Z.set(void 0))),ie=Ve([Z,te],(([e,t])=>null!=e?e:t)),ne=Ve([H,_,ee,ie,O],(([t,i,n,l,a])=>{const s=[];a!==o.MPEG&&s.push({value:Vt.AUTO,displayValue:'Авто',selected:n});const r=t.filter((t=>t!==e.INVARIANT));for(const t of r){const o=i[t],a=t===e.INVARIANT?'Авто':t;s.push({value:t,displayValue:`${a}${o?tl(o):''}`,selected:!n&&t===l})}return s})),oe=Ce(b.info.currentPlaybackRate$),le=Ve([oe],(([e])=>{const t=[];for(let i=.25;i<=2;i+=.25)t.push({value:i,displayValue:1===i?'Обычная':i+'x',selected:e===i});return t})),ae=Ve([B,X],(([e,t],i)=>{var n;return i((null!==(n=null==e?void 0:e.end)&&void 0!==n?n:0)/t)})),se=(e,t=e,i=!1)=>{var n,o;const l=!i,a=b.info.muted$.getValue();y({message:`set volume, volume: ${e}, preferredVolume: ${t}, internalCall: ${l}`}),b.setVolume(e),$.setVolume(e),l&&(null===(n=g.onVolumeChange)||void 0===n||n.call(g,e)),nl(t),a&&(b.setMuted(!1),l&&(null===(o=g.onUnmute)||void 0===o||o.call(g)),ll(!1))},re=(e,t=!1)=>{var i,n,o;const l=!t,a=b.info.volume$.getValue();if(y({message:`set muted, currentVolume: ${a}, mute: ${e}, internalCall: ${l}`}),b.setMuted(e),$.setVolume(e?0:a),ll(e),l&&(e?null===(i=g.onMute)||void 0===i||i.call(g):null===(n=g.onUnmute)||void 0===n||n.call(g)),0===a){let e=ol();0===e&&(e=.05,nl(e)),b.setVolume(e),$.setVolume(e),l&&(null===(o=g.onVolumeChange)||void 0===o||o.call(g,e))}},ce=e=>{b.setPlaybackRate(e)},de=(e,t=!0)=>{if(y({message:`seek to time, time: ${e}`}),b.info.isLive$.getValue()){const i=b.info.duration$.getValue(),n=Math.min(0,i+e);b.seekTime(n,t)}else b.seekTime(e,t)},ue=ke(void 0),ve=ke(!1),pe=e=>{ue.set(e)};let me;const he=()=>{ue.set(void 0),ve.set(!1)},ge=()=>{clearTimeout(me),me=window.setTimeout((()=>{he()}),500),null==k||k.removeEventListener('canplay',ge)},fe=Ve([T,X,ue],(([e,t,i],n)=>{n(v(i)?i*t:e)})),be=e=>{var t;a($e);const i=!e;if(A($e.playerPhase)===Pt.Ads)return y({message:`pause ads, internalCall: ${i}`}),void $.pause();y({message:`pause video, internalCall: ${i}`}),i&&(null===(t=g.onPause)||void 0===t||t.call(g)),b.pause()},we=(e,t)=>{a($e),y({message:`first start, show ads: ${e}, internalCall: ${!t}`}),e?z.set(Pt.Ads):(z.set(Pt.Video),t?b.play():$e.actions.internal.togglePlay())},$e={initVideo:e=>{y({message:`init video, config: ${JSON.stringify(e)}`}),b.initVideo(e),x=e},videoId:l,playerPhase:C,state:{positionExact$:T,positionWithScrubbing$:fe,duration$:X,playbackState$:E,isLoaderVisible:Y,bufferedProgress$:ae,isLive$:F,isActiveLive$:G,isEnded$:I,muted$:R,volume$:j,currentQuality$:ie,isAutoQualityEnabled$:ee,availableQualities$:ne,currentPlaybackRate$:oe,availablePlaybackRates$:le,chromecastState$:D,chromecastDeviceName$:U,chromecastConnected$:J,currentFormat$:O,errorLog$:V,crashed$:P},ui:{controlsVisible:ke(!1),isFullscreen:ke(!1),isAutoplay:ke(!1),contextMenuVisible:ke(!1),debugPanelVisible:ke(!1),playerSize:ke({width:0,height:0}),isMobile:ke(!1),mobileUnmuteButtonExpanded:ke(!1),mobileUnmuteButtonVisible:ke(!1),settingsMenuVisible:ke(!1),scrubbingInProgress:ve},ads:{position:ke(0),duration:ke(0),playbackState:ke(At.INACTIVE),canSkip:ke(!1),secondsToWatchBeforeSkip:ke(0),postrollPassed:ke(!1)},actions:{internal:{firstStart:e=>we(e,!1),pause:()=>be(!1),togglePlay:()=>{var e,i;a($e),y({message:'toggle play'}),A($e.playerPhase)!==Pt.Ads?b.info.playbackState$.getValue()!==t.PLAYING?(b.info.isEnded$.getValue()&&(y({message:'toggle play, video ended, seek to 0'}),b.seekTime(0)),y({message:'toggle play, call player.play'}),b.play(),null===(e=g.onPlay)||void 0===e||e.call(g)):(y({message:'toggle play, call player.pause'}),b.pause(),null===(i=g.onPause)||void 0===i||i.call(g)):$.togglePlay()},toggleMuted:()=>{y({message:'toggle muted'});const e=b.info.muted$.getValue(),t=b.info.volume$.getValue();re(!(0===t||e))},setVolume:se,setQuality:e=>{y({message:`set quality, quality: ${e}`}),b.setAutoQuality(e===Vt.AUTO),e!==Vt.AUTO&&(Z.set(e),b.setQuality(e))},setPlaybackRate:ce,incrementPlaybackRate:()=>{const e=A(le),t=e.findIndex((({selected:e})=>e));if(t===e.length-1)return;const i=e[t+1];ce(i.value)},decrementPlaybackRate:()=>{const e=A(le),t=e.findIndex((({selected:e})=>e));if(0===t)return;const i=e[t-1];ce(i.value)},startScrubbing:e=>{y({message:`start scrubbing, progress: ${e}`}),ve.set(!0),pe(e)},progressScrubbing:pe,completeScrubbing:e=>{y({message:`complete scrubbing, progress: ${e}`}),(e=>{y({message:`seek to percent, percent: ${e}`});const t=Math.round(A(X)*e);de(t,!1)})(e),A($e.ui.isMobile)&&A($e.state.currentFormat$)===o.HLS?null==k||k.addEventListener('canplay',ge):he()},toggleChromecast:()=>{y({message:'toggle chromecast'}),b.toggleChromecast()},switchToActiveLive:()=>{y({message:'switch to active live'}),b.seekTime(0)},switchFromAdsToVideo:(e=!0)=>{a($e),y({message:`switch from ads to video, callPlay: ${e}`}),z.set(Pt.Video),e&&b.play()},switchFromVideoToAds:()=>{a($e),y({message:'switch from video to ads'}),$e.actions.internal.pause(),L(),z.set(Pt.Ads)},skipAd:()=>$.skip(),getDebugTextData:()=>(a($e),((e,t,i)=>{var n,o,l,a;const s=e.info,{width:r,height:c}=A(i.ui.playerSize),d=null!==(o=null===(n=s.throughputEstimation$.getValue())||void 0===n?void 0:n.toFixed(0))&&void 0!==o?o:0,u=null!==(a=null===(l=s.rttEstimation$.getValue())||void 0===l?void 0:l.toFixed(0))&&void 0!==a?a:0,v=s.isAutoQualityEnabled$.getValue()?'auto':'manual',p={Version:'@vkontakte/videoplayer@1.1.13',Browser:navigator.userAgent,'United video id':i.videoId,'Content host':s.hostname$.getValue(),'Connection type':s.httpConnectionType$.getValue()+(s.httpConnectionReused$.getValue()?' (reused)':''),Throughput:`${d}Kbps @ ${u}ms RTT`,Format:s.currentFormat$.getValue(),'Available Formats':Object.keys(t.sources).join(', '),Quality:`${v} ${s.currentQuality$.getValue()}`,'Available qualities':s.availableQualities$.getValue().join(', '),Position:`${A(i.state.positionExact$)}s`,State:`${A(i.playerPhase)} ${s.playbackState$.getValue()}`,'Player size':`${r}x${c}`,URL:window.location.href,Errors:A(i.state.errorLog$).map((({id:e})=>e)).join(', ')};return Object.entries(p).map((([e,t])=>`${e}: ${t}`)).join('\n')})(b,x,$e)),getDebugPanelData:()=>(a($e),((e,t,i)=>{const n=e.info,{width:o,height:l}=A(i.ui.playerSize),a={version:'1.1.13',viewport:`${o}x${l}`,volume:Math.round(100*A(i.state.volume$))};n.currentFormat$.getValue()&&(a.provider=n.currentFormat$.getValue()),n.hostname$.getValue()&&(a.cdn=n.hostname$.getValue());const s=n.intrinsicVideoSize$.getValue();s&&(a.videoSize=`${s.width}x${s.height}`);const r=n.currentBuffer$.getValue();r&&(a.buffer=Math.max(r.end-A(i.state.positionExact$),0));const c=n.throughputEstimation$.getValue();return c&&(a.speed=c),a})(b,0,$e)),getVideoElement:()=>k,seekTime:e=>de(e),startLogging:()=>{q.add(b.events.log$.subscribe((e=>{console.debug('%c sdk ','background:#9ddcf7;',`sdk component: ${e.component}`,e.message)}))).add(w.log$.subscribe((e=>{console.debug('%c ui ','background:#f3da0b;',`ui component: ${e.component}.`,e.message)})))},stopLogging:()=>{q.unsubscribe()}},external:{firstStart:e=>we(e,!0),play:()=>(e=>{var t;a($e);const i=!e;if(A($e.playerPhase)===Pt.Ads)return y({message:`play ads, internalCall: ${i}`}),void $.play();y({message:`play video, internalCall: ${i}`}),i&&(null===(t=g.onPlay)||void 0===t||t.call(g)),b.play()})(!0),pause:()=>be(!0),seekTime:e=>(e=>{y({message:`seek external, time: ${e}`}),b.seekTime(b.info.isLive$.getValue()?-e:e)})(e),setMuted:e=>re(e,!0),setVolume:e=>se(e,e,!0)}},callbacks:g,getAdmanWrapper:()=>$,getLogger:()=>w,destroy:()=>{S.destroy(),M.unsubscribe(),N.unsubscribe(),q.unsubscribe(),b.destroy(),$.destroy()}};return $e},{window:sl}=me;function rl(e){N(e,'v-1suzue9','.player-wrapper.v-1suzue9{--white:#fff;--black:#000;--red:#ff3347;--videoplayer-controls-height:45px;--videoplayer-controls-fullscreen-height:50px;--videoplayer-controls-gradient-height:100px;--videoplayer-controls-transition-duration:0.25s;--videoplayer-controls-transition-fn:cubic-bezier(0.455, 0.03, 0.515, 0.955);--videoplayer-focused-element-shadow:inset 0 0 0 2px #2a5885;--videoplayer-focused-slider-shadow:0 0 0 2px #2a5885;--videoplayer-big-play-size:75px;--videoplayer-big-play-radius:50%;--videoplayer-big-play-bg-color:rgba(0, 0, 0, 0.5);--videoplayer-big-play-hover-bg-color:rgba(0, 0, 0, 0.6);--videoplayer-big-play-icon-width:38px;--videoplayer-big-play-icon-height:33px;--videoplayer-slider-height:5px;--videoplayer-slider-radius:calc(var(--videoplayer-slider-height) / 2);--videoplayer-slider-handle-size:13px;--videoplayer-slider-bg:rgba(255, 255, 255, 0.4);--videoplayer-slider-loaded-bg:rgba(255, 255, 255, 0.4);--videoplayer-slider-filled-bg:var(--white);--videoplayer-slider-filled-active-live-bg:var(--red);--videoplayer-slider-filled-ads:rgba(103, 165, 235, 1);--videoplayer-slider-disabled-color:rgba(248, 248, 248, 0.31);--videplayer-mobile-settings-bg:#2C2D2E;--videoplayer-button-hover-transition:opacity 0.2s;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}.player-wrapper.v-1suzue9 .player-media{position:absolute;left:0;top:0;width:100%;height:100%;background:var(--black);transition:transform 0.2s ease-in-out}.video-container.v-1suzue9,.ads-container.v-1suzue9{position:absolute;width:100%;height:100%;left:0;top:0}.video-container.v-1suzue9{z-index:0}.ads-container.v-1suzue9{background:var(--black)}.hidden.v-1suzue9{visibility:hidden}div{outline:none}')}function cl(e){let t,i,n,o;t=new Go({props:{side:'left',seekStep:kl,handleSingleFirstClick:e[65],handleSecondClick:e[94]}});let l=!e[36]&&dl(e);return{c(){he(t.$$.fragment),i=j(),l&&l.c(),n=R()},m(e,a){ge(t,e,a),q(e,i,a),l&&l.m(e,a),q(e,n,a),o=!0},p(e,t){e[36]?l&&(de(),pe(l,1,1,(()=>{l=null})),ue()):l?(l.p(e,t),32&t[1]&&ve(l,1)):(l=dl(e),l.c(),ve(l,1),l.m(n.parentNode,n))},i(e){o||(ve(t.$$.fragment,e),ve(l),o=!0)},o(e){pe(t.$$.fragment,e),pe(l),o=!1},d(e){fe(t,e),e&&T(i),l&&l.d(e),e&&T(n)}}}function dl(e){let t,i;return t=new Go({props:{side:'right',seekStep:kl,handleSingleFirstClick:e[65],handleSecondClick:e[95]}}),{c(){he(t.$$.fragment)},m(e,n){ge(t,e,n),i=!0},p:f,i(e){i||(ve(t.$$.fragment,e),i=!0)},o(e){pe(t.$$.fragment,e),i=!1},d(e){fe(t,e)}}}function ul(e){let t,i,n;return i=new Wn({props:{adsSlotId:e[5],adsParams:e[6],adsPreviewParam:e[7],duration:e[8]}}),{c(){t=B('div'),he(i.$$.fragment),D(t,'class','ads-container v-1suzue9'),Q(t,'hidden',e[23]!==Pt.Ads)},m(e,o){q(e,t,o),ge(i,t,null),n=!0},p(e,n){const o={};32&n[0]&&(o.adsSlotId=e[5]),64&n[0]&&(o.adsParams=e[6]),128&n[0]&&(o.adsPreviewParam=e[7]),256&n[0]&&(o.duration=e[8]),i.$set(o),8388608&n[0]&&Q(t,'hidden',e[23]!==Pt.Ads)},i(e){n||(ve(i.$$.fragment,e),n=!0)},o(e){pe(i.$$.fragment,e),n=!1},d(e){e&&T(t),fe(i)}}}function vl(e){let t,i,n,o;const l=[ml,pl],a=[];function s(e,t){return e[11]?0:1}return t=s(e),i=a[t]=l[t](e),{c(){i.c(),n=R()},m(e,i){a[t].m(e,i),q(e,n,i),o=!0},p(e,o){let r=t;t=s(e),t===r?a[t].p(e,o):(de(),pe(a[r],1,1,(()=>{a[r]=null})),ue(),i=a[t],i?i.p(e,o):(i=a[t]=l[t](e),i.c()),ve(i,1),i.m(n.parentNode,n))},i(e){o||(ve(i),o=!0)},o(e){pe(i),o=!1},d(e){a[t].d(e),e&&T(n)}}}function pl(e){let t,i;return t=new Mo({props:{title:e[15],thumb:e[16],playNextVideo:e[18]}}),{c(){he(t.$$.fragment)},m(e,n){ge(t,e,n),i=!0},p(e,i){const n={};32768&i[0]&&(n.title=e[15]),65536&i[0]&&(n.thumb=e[16]),262144&i[0]&&(n.playNextVideo=e[18]),t.$set(n)},i(e){i||(ve(t.$$.fragment,e),i=!0)},o(e){pe(t.$$.fragment,e),i=!1},d(e){fe(t,e)}}}function ml(e){let t,i;return t=new No({props:{playNextVideo:e[18]}}),{c(){he(t.$$.fragment)},m(e,n){ge(t,e,n),i=!0},p(e,i){const n={};262144&i[0]&&(n.playNextVideo=e[18]),t.$set(n)},i(e){i||(ve(t.$$.fragment,e),i=!0)},o(e){pe(t.$$.fragment,e),i=!1},d(e){fe(t,e)}}}function hl(e){let t,i;return t=new Bo({props:{title:e[0],isHidden:!e[33]}}),{c(){he(t.$$.fragment)},m(e,n){ge(t,e,n),i=!0},p(e,i){const n={};1&i[0]&&(n.title=e[0]),4&i[1]&&(n.isHidden=!e[33]),t.$set(n)},i(e){i||(ve(t.$$.fragment,e),i=!0)},o(e){pe(t.$$.fragment,e),i=!1},d(e){fe(t,e)}}}function gl(e){let t,i;return t=new Ho({props:{thumbUrl:e[1],chromecastDeviceName:e[37]}}),{c(){he(t.$$.fragment)},m(e,n){ge(t,e,n),i=!0},p(e,i){const n={};2&i[0]&&(n.thumbUrl=e[1]),64&i[1]&&(n.chromecastDeviceName=e[37]),t.$set(n)},i(e){i||(ve(t.$$.fragment,e),i=!0)},o(e){pe(t.$$.fragment,e),i=!1},d(e){fe(t,e)}}}function fl(e){let t,i,n={toggleFullscreen:e[62],hideContextMenu:e[63],isAds:e[23]===Pt.Ads};return t=new Qo({props:n}),e[97](t),{c(){he(t.$$.fragment)},m(e,n){ge(t,e,n),i=!0},p(e,i){const n={};8388608&i[0]&&(n.isAds=e[23]===Pt.Ads),t.$set(n)},i(e){i||(ve(t.$$.fragment,e),i=!0)},o(e){pe(t.$$.fragment,e),i=!1},d(i){e[97](null),fe(t,i)}}}function bl(e){let t,i,n,o,l;return i=new Uo({}),{c(){t=B('div'),he(i.$$.fragment)},m(a,s){q(a,t,s),ge(i,t,null),n=!0,o||(l=[H(t,'contextmenu',_(e[64])),H(t,'click',e[67])],o=!0)},p:f,i(e){n||(ve(i.$$.fragment,e),n=!0)},o(e){pe(i.$$.fragment,e),n=!1},d(e){e&&T(t),fe(i),o=!1,$(l)}}}function wl(e){let t,i;return t=new Gn({props:{supportLink:e[3],visible:e[35],playerContainerRef:e[25],controlsContainerRef:e[27],x:e[29],y:e[30]}}),{c(){he(t.$$.fragment)},m(e,n){ge(t,e,n),i=!0},p(e,i){const n={};8&i[0]&&(n.supportLink=e[3]),16&i[1]&&(n.visible=e[35]),33554432&i[0]&&(n.playerContainerRef=e[25]),134217728&i[0]&&(n.controlsContainerRef=e[27]),536870912&i[0]&&(n.x=e[29]),1073741824&i[0]&&(n.y=e[30]),t.$set(n)},i(e){i||(ve(t.$$.fragment,e),i=!0)},o(e){pe(t.$$.fragment,e),i=!1},d(e){fe(t,e)}}}function $l(e){let t,i;return t=new kn({}),{c(){he(t.$$.fragment)},m(e,n){ge(t,e,n),i=!0},i(e){i||(ve(t.$$.fragment,e),i=!0)},o(e){pe(t.$$.fragment,e),i=!1},d(e){fe(t,e)}}}function yl(e){let t,i;return t=new fo({}),{c(){he(t.$$.fragment)},m(e,n){ge(t,e,n),i=!0},i(e){i||(ve(t.$$.fragment,e),i=!0)},o(e){pe(t.$$.fragment,e),i=!1},d(e){fe(t,e)}}}function xl(e){let t,i,n,o,l,a,s,r,c,d,u,v,p,m,h,g,b,w,x;i=new $n({props:{hidden:e[23]!==Pt.Thumb||e[21],thumbUrl:e[1],startVideo:e[60]}});let k=e[11]&&cl(e),V=e[4]&&e[28]&&ul(e),P=e[34]&&e[15]&&e[16]&&vl(e),z=!e[11]&&e[23]===Pt.Video&&hl(e),A=e[22]&&gl(e),C=!e[11]&&fl(e);function S(t){e[98](t)}let M={hidden:e[23]===Pt.Thumb||e[11]&&e[23]===Pt.Ads,showControls:e[33],isAds:e[23]===Pt.Ads,canRewindLive:e[2]&&0!==e[24],logoClickable:e[9],logoHidden:e[10],showNextPrevButtons:e[12],nextButtonActive:e[13],prevButtonActive:e[14],isOneVideoPlaylist:e[17],supportLink:e[3],playNextVideo:e[18],playPrevVideo:e[19],repeatPlaylist:e[20],toggleFullscreen:e[62]};void 0!==e[27]&&(M.controlsElementRef=e[27]),u=new gn({props:M}),J.push((()=>function(e,t,i){const n=e.$$.props[t];void 0!==n&&(e.$$.bound[n]=i,i(e.$$.ctx[n]))}(u,'controlsElementRef',S)));let N=e[21]&&bl(e),E=!e[11]&&wl(e),I=e[32]&&$l(),F=e[38]&&yl();return{c(){t=B('div'),he(i.$$.fragment),n=j(),o=B('div'),k&&k.c(),l=j(),V&&V.c(),a=j(),P&&P.c(),s=j(),z&&z.c(),r=j(),A&&A.c(),c=j(),C&&C.c(),d=j(),he(u.$$.fragment),p=j(),N&&N.c(),m=j(),E&&E.c(),h=j(),I&&I.c(),g=j(),F&&F.c(),D(o,'class','video-container v-1suzue9'),Q(o,'hidden',e[23]!==Pt.Video),D(t,'class','player-wrapper v-1suzue9'),D(t,'tabindex','0')},m(v,$){q(v,t,$),ge(i,t,null),L(t,n),L(t,o),k&&k.m(o,null),e[96](o),L(t,l),V&&V.m(t,null),L(t,a),P&&P.m(t,null),L(t,s),z&&z.m(t,null),L(t,r),A&&A.m(t,null),L(t,c),C&&C.m(t,null),L(t,d),ge(u,t,null),L(t,p),N&&N.m(t,null),L(t,m),E&&E.m(t,null),L(t,h),I&&I.m(t,null),L(t,g),F&&F.m(t,null),e[99](t),b=!0,w||(x=[H(sl,'blur',e[63]),H(o,'contextmenu',_(e[64])),H(o,'click',e[66]),H(t,'mouseenter',(function(){y(e[11]?f:e[57])&&(e[11]?f:e[57]).apply(this,arguments)})),H(t,'mouseleave',(function(){y(e[11]?f:e[58])&&(e[11]?f:e[58]).apply(this,arguments)})),H(t,'mousemove',(function(){y(e[11]?f:e[59])&&(e[11]?f:e[59]).apply(this,arguments)})),H(t,'keydown',(function(){y(e[11]?f:e[68])&&(e[11]?f:e[68]).apply(this,arguments)}))],w=!0)},p(n,l){e=n;const p={};10485760&l[0]&&(p.hidden=e[23]!==Pt.Thumb||e[21]),2&l[0]&&(p.thumbUrl=e[1]),i.$set(p),e[11]?k?(k.p(e,l),2048&l[0]&&ve(k,1)):(k=cl(e),k.c(),ve(k,1),k.m(o,null)):k&&(de(),pe(k,1,1,(()=>{k=null})),ue()),8388608&l[0]&&Q(o,'hidden',e[23]!==Pt.Video),e[4]&&e[28]?V?(V.p(e,l),268435472&l[0]&&ve(V,1)):(V=ul(e),V.c(),ve(V,1),V.m(t,a)):V&&(de(),pe(V,1,1,(()=>{V=null})),ue()),e[34]&&e[15]&&e[16]?P?(P.p(e,l),98304&l[0]|8&l[1]&&ve(P,1)):(P=vl(e),P.c(),ve(P,1),P.m(t,s)):P&&(de(),pe(P,1,1,(()=>{P=null})),ue()),e[11]||e[23]!==Pt.Video?z&&(de(),pe(z,1,1,(()=>{z=null})),ue()):z?(z.p(e,l),8390656&l[0]&&ve(z,1)):(z=hl(e),z.c(),ve(z,1),z.m(t,r)),e[22]?A?(A.p(e,l),4194304&l[0]&&ve(A,1)):(A=gl(e),A.c(),ve(A,1),A.m(t,c)):A&&(de(),pe(A,1,1,(()=>{A=null})),ue()),e[11]?C&&(de(),pe(C,1,1,(()=>{C=null})),ue()):C?(C.p(e,l),2048&l[0]&&ve(C,1)):(C=fl(e),C.c(),ve(C,1),C.m(t,d));const f={};var b;8390656&l[0]&&(f.hidden=e[23]===Pt.Thumb||e[11]&&e[23]===Pt.Ads),4&l[1]&&(f.showControls=e[33]),8388608&l[0]&&(f.isAds=e[23]===Pt.Ads),16777220&l[0]&&(f.canRewindLive=e[2]&&0!==e[24]),512&l[0]&&(f.logoClickable=e[9]),1024&l[0]&&(f.logoHidden=e[10]),4096&l[0]&&(f.showNextPrevButtons=e[12]),8192&l[0]&&(f.nextButtonActive=e[13]),16384&l[0]&&(f.prevButtonActive=e[14]),131072&l[0]&&(f.isOneVideoPlaylist=e[17]),8&l[0]&&(f.supportLink=e[3]),262144&l[0]&&(f.playNextVideo=e[18]),524288&l[0]&&(f.playPrevVideo=e[19]),1048576&l[0]&&(f.repeatPlaylist=e[20]),!v&&134217728&l[0]&&(v=!0,f.controlsElementRef=e[27],b=()=>v=!1,ee.push(b)),u.$set(f),e[21]?N?(N.p(e,l),2097152&l[0]&&ve(N,1)):(N=bl(e),N.c(),ve(N,1),N.m(t,m)):N&&(de(),pe(N,1,1,(()=>{N=null})),ue()),e[11]?E&&(de(),pe(E,1,1,(()=>{E=null})),ue()):E?(E.p(e,l),2048&l[0]&&ve(E,1)):(E=wl(e),E.c(),ve(E,1),E.m(t,h)),e[32]?I?2&l[1]&&ve(I,1):(I=$l(),I.c(),ve(I,1),I.m(t,g)):I&&(de(),pe(I,1,1,(()=>{I=null})),ue()),e[38]?F?128&l[1]&&ve(F,1):(F=yl(),F.c(),ve(F,1),F.m(t,null)):F&&(de(),pe(F,1,1,(()=>{F=null})),ue())},i(e){b||(ve(i.$$.fragment,e),ve(k),ve(V),ve(P),ve(z),ve(A),ve(C),ve(u.$$.fragment,e),ve(N),ve(E),ve(I),ve(F),b=!0)},o(e){pe(i.$$.fragment,e),pe(k),pe(V),pe(P),pe(z),pe(A),pe(C),pe(u.$$.fragment,e),pe(N),pe(E),pe(I),pe(F),b=!1},d(n){n&&T(t),fe(i),k&&k.d(),e[96](null),V&&V.d(),P&&P.d(),z&&z.d(),A&&A.d(),C&&C.d(),fe(u),N&&N.d(),E&&E.d(),I&&I.d(),F&&F.d(),e[99](null),w=!1,$(x)}}}let kl=15;function Vl(e,i,n){let o,a,s,r,c,d,u,v,p,m,h,g,b,w,$,y,x,k,{sources:V}=i,{title:P}=i,{thumbUrl:z}=i,{unitedVideoId:A}=i,{albumId:S}=i,{statPlace:M}=i,{autoplay:L=!1}=i,{volume:N}=i,{muted:q}=i,{fromTime:T=0}=i,{canRewindLive:E=!0}=i,{supportLink:B=Se}=i,{showAds:I=!1}=i,{adsSlotId:F}=i,{adsParams:j}=i,{adsPreviewParam:R}=i,{duration:H}=i,{logoClickable:_=!1}=i,{logoHidden:D=!1}=i,{isMobile:U=!1}=i,{showNextPrevButtons:O=!1}=i,{nextButtonActive:Q=!1}=i,{prevButtonActive:W=!1}=i,{endScreenVideoTitle:K}=i,{endScreenVideoThumb:X}=i,{isOneVideoPlaylist:G=!1}=i,{outerContainerRef:Z}=i,{playNextVideo:ee=f}=i,{playPrevVideo:te=f}=i,{repeatPlaylist:ie=f}=i,{callbacks:ne={}}=i,{fullScreenTarget:oe}=i,{failoverHosts:le}=i;const ae=al({videoId:A,autoplay:L,albumId:S,statPlace:M,callbacks:ne,uiCallbacks:{onStarted:e=>{me.set(!0),e?U&&(Ae.set(!0),Pe.set(!0),window.setTimeout((()=>{Pe.set(!1),Oe(2e3)}),6e3)):Oe(2e3)}}});ae.getAdmanWrapper().init({switchFromAdsToVideo:ae.actions.internal.switchFromAdsToVideo,switchFromVideoToAds:ae.actions.internal.switchFromVideoToAds,setMuted:ae.actions.external.setMuted},ae.ads,{isMobile:ae.ui.isMobile,mobileUnmuteButtonVisible:ae.ui.mobileUnmuteButtonVisible});const se=ae.getLogger().createComponentLog('Root component'),re=ae.state.playbackState$;C(e,re,(e=>n(105,v=e)));const ce=ae.ads.playbackState;C(e,ce,(e=>n(92,b=e)));const de=ae.state.positionWithScrubbing$;C(e,de,(e=>n(103,d=e)));const ue=ae.state.duration$;C(e,ue,(e=>n(102,c=e)));const ve=ae.playerPhase;C(e,ve,(e=>n(23,w=e)));const pe=ae.ui.isFullscreen;C(e,pe,(e=>n(101,r=e)));const me=ae.ui.controlsVisible;C(e,me,(e=>n(89,s=e)));const he=ae.ui.settingsMenuVisible;C(e,he,(e=>n(104,u=e)));const ge=ae.ui.scrubbingInProgress;C(e,ge,(e=>n(90,p=e)));const fe=ae.ui.playerSize,be=ae.ui.contextMenuVisible;C(e,be,(e=>n(35,o=e)));const we=ae.ui.debugPanelVisible;C(e,we,(e=>n(38,k=e)));const $e=ae.state.isLoaderVisible;C(e,$e,(e=>n(93,$=e)));const ye=ae.state.isEnded$;C(e,ye,(e=>n(88,a=e)));const xe=ae.state.chromecastConnected$;C(e,xe,(e=>n(22,g=e)));const ke=ae.state.chromecastDeviceName$;C(e,ke,(e=>n(37,x=e)));const Ve=ae.ads.postrollPassed;C(e,Ve,(e=>n(91,h=e)));const Pe=ae.ui.mobileUnmuteButtonExpanded,Ae=ae.ui.mobileUnmuteButtonVisible,Ce=ae.state.isActiveLive$;C(e,Ce,(e=>n(36,y=e)));const Me=ae.state.crashed$;C(e,Me,(e=>n(21,m=e)));let Le,Ne,qe,Te,Ee=0;ae.state.duration$.subscribe((e=>{n(24,Ee=e)})),ze(ae);let Be,Ie,Fe,je,Re=null,He=!1,_e=0,De=0,Ue=!1;function Oe(e){n(86,Te=window.setTimeout((()=>{if(v===t.PLAYING){if(U&&u)return;me.set(!1),he.set(!1)}}),e))}const Qe=(e=!1)=>{n(28,He=!0),e?ae.actions.external.firstStart(I):ae.actions.internal.firstStart(I)};function We(e){ae.actions.internal.seekTime(e)}Y((()=>{var e;e=Xe,document.addEventListener('fullscreenchange',e),document.addEventListener('webkitfullscreenchange',e),document.addEventListener('mozfullscreenchange',e),document.addEventListener('MSFullscreenChange',e),(e=>{if(window.ResizeObserver){let t,i;Re=new ResizeObserver(l((e=>{const n=e[0];if(n){if(n.contentBoxSize){const e=Array.isArray(n.contentBoxSize)?n.contentBoxSize[0]:n.contentBoxSize;t=e.inlineSize,i=e.blockSize}else n.contentRect&&(t=n.contentRect.width,i=n.contentRect.height);fe.set({width:t,height:i})}}),300)),Re.observe(e)}fe.set({width:e.clientWidth,height:e.clientHeight})})(Le),ae.initVideo({container:Ne,sources:V,failoverHosts:le}),T>0&&ae.actions.external.seekTime(T);const t=U?1:null!=N?N:ol(),i=null!=q?q:(()=>{const e=lo.get('vk_player_prefer_volume_mute');return'boolean'==typeof e&&e})();ae.actions.external.setVolume(t),ae.actions.external.setMuted(i),ae.getAdmanWrapper().setInitialVolume(i?0:t),ae.ui.isAutoplay.set(L),L&&Qe();const n=Boolean(lo.get('vk_player_debug_panel_opened'));return we.set(n),()=>{(e=>{document.removeEventListener('fullscreenchange',e),document.removeEventListener('webkitfullscreenchange',e),document.removeEventListener('mozfullscreenchange',e),document.removeEventListener('MSFullscreenChange',e)})(Xe),null==Re||Re.disconnect(),ae.destroy()}}));const Ke=e=>{let t=d+('forward'===e?kl:-kl);t<0?t=0:t>c&&(t=c-1),We(t)},Ye=()=>{if(el())(e=document).exitFullscreen?e.exitFullscreen():e.msExitFullscreen?e.msExitFullscreen():e.webkitExitFullscreen?e.webkitExitFullscreen():e.mozCancelFullScreen?e.mozCancelFullScreen():Promise.reject(),se({message:'exit fullscreen'});else{se({message:'request fullscreen'});const e=null!=Z?Z:Le,t=e.getRootNode(),i=t instanceof ShadowRoot?t.host:t,n=oe instanceof HTMLElement&&oe.contains(i);(e=>{if(e.requestFullscreen)return e.requestFullscreen();if(e.msRequestFullscreen)return e.msRequestFullscreen();if(e.webkitRequestFullscreen)return e.webkitRequestFullscreen();if(e.mozRequestFullScreen)return e.mozRequestFullScreen();const t=e.querySelector('video');(null==t?void 0:t.webkitEnterFullscreen)?t.webkitEnterFullscreen():Promise.reject()})(oe&&n?oe:e)}var e},Xe=()=>{var e,t,i,n;const o=el();pe.set(o),ae.getAdmanWrapper().setFullscreen(o),r?null===(t=(e=ae.callbacks).onFullscreenEnter)||void 0===t||t.call(e):null===(n=(i=ae.callbacks).onFullscreenExit)||void 0===n||n.call(i)},Ge=()=>be.set(!1),Je=()=>{s?me.set(!1):(me.set(!0),clearTimeout(Te),Oe(3e3))};return e.$$set=e=>{'sources'in e&&n(69,V=e.sources),'title'in e&&n(0,P=e.title),'thumbUrl'in e&&n(1,z=e.thumbUrl),'unitedVideoId'in e&&n(70,A=e.unitedVideoId),'albumId'in e&&n(71,S=e.albumId),'statPlace'in e&&n(72,M=e.statPlace),'autoplay'in e&&n(73,L=e.autoplay),'volume'in e&&n(74,N=e.volume),'muted'in e&&n(75,q=e.muted),'fromTime'in e&&n(76,T=e.fromTime),'canRewindLive'in e&&n(2,E=e.canRewindLive),'supportLink'in e&&n(3,B=e.supportLink),'showAds'in e&&n(4,I=e.showAds),'adsSlotId'in e&&n(5,F=e.adsSlotId),'adsParams'in e&&n(6,j=e.adsParams),'adsPreviewParam'in e&&n(7,R=e.adsPreviewParam),'duration'in e&&n(8,H=e.duration),'logoClickable'in e&&n(9,_=e.logoClickable),'logoHidden'in e&&n(10,D=e.logoHidden),'isMobile'in e&&n(11,U=e.isMobile),'showNextPrevButtons'in e&&n(12,O=e.showNextPrevButtons),'nextButtonActive'in e&&n(13,Q=e.nextButtonActive),'prevButtonActive'in e&&n(14,W=e.prevButtonActive),'endScreenVideoTitle'in e&&n(15,K=e.endScreenVideoTitle),'endScreenVideoThumb'in e&&n(16,X=e.endScreenVideoThumb),'isOneVideoPlaylist'in e&&n(17,G=e.isOneVideoPlaylist),'outerContainerRef'in e&&n(77,Z=e.outerContainerRef),'playNextVideo'in e&&n(18,ee=e.playNextVideo),'playPrevVideo'in e&&n(19,te=e.playPrevVideo),'repeatPlaylist'in e&&n(20,ie=e.repeatPlaylist),'callbacks'in e&&n(78,ne=e.callbacks),'fullScreenTarget'in e&&n(79,oe=e.fullScreenTarget),'failoverHosts'in e&&n(80,le=e.failoverHosts)},e.$$.update=()=>{10485760&e.$$.dirty[0]|1073741824&e.$$.dirty[2]|1&e.$$.dirty[3]&&n(32,Ie=(w===Pt.Video&&$||w===Pt.Ads&&b===At.INACTIVE)&&!m),6291456&e.$$.dirty[0]|201326592&e.$$.dirty[2]&&n(33,Fe=(s||g||a)&&!m),2097168&e.$$.dirty[0]|603979776&e.$$.dirty[2]&&n(34,je=(I&&h||!I)&&a&&!m),2048&e.$$.dirty[0]&&ae.ui.isMobile.set(U),2048&e.$$.dirty[0]|318767104&e.$$.dirty[2]&&(Ue!==p&&U&&(clearTimeout(Te),p?me.set(!0):Oe(3e3)),n(87,Ue=p))},[P,z,E,B,I,F,j,R,H,_,D,U,O,Q,W,K,X,G,ee,te,ie,m,g,w,Ee,Le,Ne,qe,He,_e,De,Be,Ie,Fe,je,o,y,x,k,re,ce,de,ue,ve,pe,me,he,ge,be,we,$e,ye,xe,ke,Ve,Ce,Me,function(){clearTimeout(Te),me.set(!0)},function(){Oe(500)},function(){clearTimeout(Te),me.set(!0),r&&qe&&!function(e,t){var i,n,o,l,a;return!!e&&(null!==(a=null!==(l=null!==(o=null!==(n=null!==(i=e.matches)&&void 0!==i?i:e.matchesSelector)&&void 0!==n?n:e.mozMatchesSelector)&&void 0!==o?o:e.msMatchesSelector)&&void 0!==l?l:e.oMatchesSelector)&&void 0!==a?a:e.webkitMatchesSelector).call(e,t)}(qe,':hover')&&Oe(3e3)},Qe,Ke,Ye,Ge,e=>{be.set(!0),n(29,_e=e.clientX),n(30,De=e.clientY)},Je,e=>{U?Je():o?Ge():(Ge(),a||(ae.actions.internal.togglePlay(),he.set(!1),2===e.detail&&(se({message:'double click on video'}),Ye())))},()=>{o&&Ge()},e=>{Be.keyDownHandler(e)},V,A,S,M,L,N,q,T,Z,ne,oe,le,function(){He?ae.actions.external.play():Qe(!0)},function(){ae.actions.external.pause()},function(e){U||ae.actions.external.setMuted(e)},function(e){U||e>=0&&e<=1&&ae.actions.external.setVolume(e)},We,Te,Ue,a,s,p,h,b,$,()=>Ke('backward'),()=>Ke('forward'),function(e){J[e?'unshift':'push']((()=>{Ne=e,n(26,Ne)}))},function(e){J[e?'unshift':'push']((()=>{Be=e,n(31,Be)}))},function(e){qe=e,n(27,qe)},function(e){J[e?'unshift':'push']((()=>{Le=e,n(25,Le)}))}]}class Pl extends $e{constructor(e){super(),we(this,e,Vl,xl,x,{sources:69,title:0,thumbUrl:1,unitedVideoId:70,albumId:71,statPlace:72,autoplay:73,volume:74,muted:75,fromTime:76,canRewindLive:2,supportLink:3,showAds:4,adsSlotId:5,adsParams:6,adsPreviewParam:7,duration:8,logoClickable:9,logoHidden:10,isMobile:11,showNextPrevButtons:12,nextButtonActive:13,prevButtonActive:14,endScreenVideoTitle:15,endScreenVideoThumb:16,isOneVideoPlaylist:17,outerContainerRef:77,playNextVideo:18,playPrevVideo:19,repeatPlaylist:20,callbacks:78,fullScreenTarget:79,failoverHosts:80,play:81,pause:82,setMuted:83,setVolume:84,seekTime:85},rl,[-1,-1,-1,-1])}get play(){return this.$$.ctx[81]}get pause(){return this.$$.ctx[82]}get setMuted(){return this.$$.ctx[83]}get setVolume(){return this.$$.ctx[84]}get seekTime(){return this.$$.ctx[85]}}function zl(e){N(e,'v-1oqts7t','.playerStub.v-1oqts7t{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}.stubImage.v-1oqts7t{height:60px}.stubImage-white.v-1oqts7t{filter:brightness(0) invert(1)}.title.v-1oqts7t{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 Al(e){let t,i;return{c(){t=B('div'),i=F(e[0]),D(t,'class','title v-1oqts7t')},m(e,n){q(e,t,n),L(t,i)},p(e,t){1&t&&U(i,e[0])},d(e){e&&T(t)}}}function Cl(e){let t,i;return{c(){t=B('img'),P(t.src,i='data:image/svg+xml,%3csvg width=\'57\' height=\'60\' fill=\'none\' xmlns=\'http://www.w3.org/2000/svg\'%3e%3cpath d=\'M38.245 6c3.566 0 4.859.371 6.162 1.069a7.27 7.27 0 0 1 3.025 3.024c.697 1.303 1.068 2.597 1.068 6.163v23.489c0 3.566-.371 4.859-1.069 6.162a7.27 7.27 0 0 1-3.024 3.025C43.104 49.629 41.811 50 38.245 50h-19.49c-3.565 0-4.859-.371-6.162-1.069a7.27 7.27 0 0 1-3.024-3.024C8.87 44.604 8.5 43.311 8.5 39.745v-23.49c0-3.565.371-4.859 1.069-6.162a7.27 7.27 0 0 1 3.024-3.024C13.896 6.37 15.19 6 18.756 6h19.489zm.314 3H18.756c-2.799 0-3.761.186-4.749.714a4.27 4.27 0 0 0-1.793 1.793c-.508.95-.7 1.876-.713 4.434L11.5 39.744c0 2.799.186 3.761.714 4.749a4.27 4.27 0 0 0 1.793 1.793c.988.528 1.95.714 4.749.714h19.489c2.798 0 3.76-.186 4.748-.714a4.27 4.27 0 0 0 1.793-1.793c.528-.988.714-1.95.714-4.748v-23.49c0-2.798-.186-3.76-.714-4.748a4.27 4.27 0 0 0-1.793-1.793c-.95-.508-1.876-.7-4.434-.713zM19.22 38c.445 0 .607.046.77.134a.91.91 0 0 1 .377.378c.088.163.134.324.134.77v1.436c0 .446-.046.607-.134.77a.908.908 0 0 1-.378.378c-.162.088-.324.134-.77.134h-1.436c-.446 0-.608-.046-.77-.134a.908.908 0 0 1-.378-.378c-.088-.163-.134-.324-.134-.77v-1.436c0-.446.046-.607.134-.77a.908.908 0 0 1 .378-.378c.162-.088.324-.134.77-.134h1.436zm20 0c.445 0 .606.046.77.134a.91.91 0 0 1 .377.378c.088.163.134.324.134.77v1.436c0 .446-.046.607-.134.77a.908.908 0 0 1-.378.378c-.163.088-.324.134-.77.134h-1.436c-.446 0-.607-.046-.77-.134a.908.908 0 0 1-.378-.378c-.088-.163-.134-.324-.134-.77v-1.436c0-.446.046-.607.134-.77a.908.908 0 0 1 .378-.378c.163-.088.324-.134.77-.134h1.436zm-20-8c.445 0 .607.046.77.134a.91.91 0 0 1 .377.378c.088.162.134.324.134.77v1.436c0 .446-.046.607-.134.77a.908.908 0 0 1-.378.378c-.162.088-.324.134-.77.134h-1.436c-.446 0-.608-.046-.77-.134a.908.908 0 0 1-.378-.378c-.088-.163-.134-.324-.134-.77v-1.436c0-.446.046-.608.134-.77a.908.908 0 0 1 .378-.378c.162-.088.324-.134.77-.134h1.436zm20 0c.445 0 .606.046.77.134a.91.91 0 0 1 .377.378c.088.162.134.324.134.77v1.436c0 .446-.046.607-.134.77a.908.908 0 0 1-.378.378c-.163.088-.324.134-.77.134h-1.436c-.446 0-.607-.046-.77-.134a.908.908 0 0 1-.378-.378c-.088-.163-.134-.324-.134-.77v-1.436c0-.446.046-.608.134-.77a.908.908 0 0 1 .378-.378c.163-.088.324-.134.77-.134h1.436zm-20-8c.445 0 .607.046.77.134a.91.91 0 0 1 .377.378c.088.162.134.324.134.77v1.436c0 .446-.046.608-.134.77a.908.908 0 0 1-.378.378c-.162.088-.324.134-.77.134h-1.436c-.446 0-.608-.046-.77-.134a.908.908 0 0 1-.378-.378c-.088-.162-.134-.324-.134-.77v-1.436c0-.446.046-.608.134-.77a.908.908 0 0 1 .378-.378c.162-.088.324-.134.77-.134h1.436zm20 0c.445 0 .606.046.77.134a.91.91 0 0 1 .377.378c.088.162.134.324.134.77v1.436c0 .446-.046.608-.134.77a.908.908 0 0 1-.378.378c-.163.088-.324.134-.77.134h-1.436c-.446 0-.607-.046-.77-.134a.908.908 0 0 1-.378-.378c-.088-.162-.134-.324-.134-.77v-1.436c0-.446.046-.608.134-.77a.908.908 0 0 1 .378-.378c.163-.088.324-.134.77-.134h1.436zm-20-8c.445 0 .607.046.77.134a.91.91 0 0 1 .377.378c.088.162.134.324.134.77v1.436c0 .446-.046.608-.134.77a.908.908 0 0 1-.378.378c-.162.088-.324.134-.77.134h-1.436c-.446 0-.608-.046-.77-.134a.908.908 0 0 1-.378-.378c-.088-.162-.134-.324-.134-.77v-1.436c0-.446.046-.607.134-.77a.908.908 0 0 1 .378-.378c.162-.088.324-.134.77-.134h1.436zm20 0c.445 0 .606.046.77.134a.91.91 0 0 1 .377.378c.088.162.134.324.134.77v1.436c0 .446-.046.608-.134.77a.908.908 0 0 1-.378.378c-.163.088-.324.134-.77.134h-1.436c-.446 0-.607-.046-.77-.134a.908.908 0 0 1-.378-.378c-.088-.162-.134-.324-.134-.77v-1.436c0-.446.046-.607.134-.77a.908.908 0 0 1 .378-.378c.163-.088.324-.134.77-.134h1.436z\' fill=\'%23909499\'/%3e%3c/svg%3e')||D(t,'src','data:image/svg+xml,%3csvg width=\'57\' height=\'60\' fill=\'none\' xmlns=\'http://www.w3.org/2000/svg\'%3e%3cpath d=\'M38.245 6c3.566 0 4.859.371 6.162 1.069a7.27 7.27 0 0 1 3.025 3.024c.697 1.303 1.068 2.597 1.068 6.163v23.489c0 3.566-.371 4.859-1.069 6.162a7.27 7.27 0 0 1-3.024 3.025C43.104 49.629 41.811 50 38.245 50h-19.49c-3.565 0-4.859-.371-6.162-1.069a7.27 7.27 0 0 1-3.024-3.024C8.87 44.604 8.5 43.311 8.5 39.745v-23.49c0-3.565.371-4.859 1.069-6.162a7.27 7.27 0 0 1 3.024-3.024C13.896 6.37 15.19 6 18.756 6h19.489zm.314 3H18.756c-2.799 0-3.761.186-4.749.714a4.27 4.27 0 0 0-1.793 1.793c-.508.95-.7 1.876-.713 4.434L11.5 39.744c0 2.799.186 3.761.714 4.749a4.27 4.27 0 0 0 1.793 1.793c.988.528 1.95.714 4.749.714h19.489c2.798 0 3.76-.186 4.748-.714a4.27 4.27 0 0 0 1.793-1.793c.528-.988.714-1.95.714-4.748v-23.49c0-2.798-.186-3.76-.714-4.748a4.27 4.27 0 0 0-1.793-1.793c-.95-.508-1.876-.7-4.434-.713zM19.22 38c.445 0 .607.046.77.134a.91.91 0 0 1 .377.378c.088.163.134.324.134.77v1.436c0 .446-.046.607-.134.77a.908.908 0 0 1-.378.378c-.162.088-.324.134-.77.134h-1.436c-.446 0-.608-.046-.77-.134a.908.908 0 0 1-.378-.378c-.088-.163-.134-.324-.134-.77v-1.436c0-.446.046-.607.134-.77a.908.908 0 0 1 .378-.378c.162-.088.324-.134.77-.134h1.436zm20 0c.445 0 .606.046.77.134a.91.91 0 0 1 .377.378c.088.163.134.324.134.77v1.436c0 .446-.046.607-.134.77a.908.908 0 0 1-.378.378c-.163.088-.324.134-.77.134h-1.436c-.446 0-.607-.046-.77-.134a.908.908 0 0 1-.378-.378c-.088-.163-.134-.324-.134-.77v-1.436c0-.446.046-.607.134-.77a.908.908 0 0 1 .378-.378c.163-.088.324-.134.77-.134h1.436zm-20-8c.445 0 .607.046.77.134a.91.91 0 0 1 .377.378c.088.162.134.324.134.77v1.436c0 .446-.046.607-.134.77a.908.908 0 0 1-.378.378c-.162.088-.324.134-.77.134h-1.436c-.446 0-.608-.046-.77-.134a.908.908 0 0 1-.378-.378c-.088-.163-.134-.324-.134-.77v-1.436c0-.446.046-.608.134-.77a.908.908 0 0 1 .378-.378c.162-.088.324-.134.77-.134h1.436zm20 0c.445 0 .606.046.77.134a.91.91 0 0 1 .377.378c.088.162.134.324.134.77v1.436c0 .446-.046.607-.134.77a.908.908 0 0 1-.378.378c-.163.088-.324.134-.77.134h-1.436c-.446 0-.607-.046-.77-.134a.908.908 0 0 1-.378-.378c-.088-.163-.134-.324-.134-.77v-1.436c0-.446.046-.608.134-.77a.908.908 0 0 1 .378-.378c.163-.088.324-.134.77-.134h1.436zm-20-8c.445 0 .607.046.77.134a.91.91 0 0 1 .377.378c.088.162.134.324.134.77v1.436c0 .446-.046.608-.134.77a.908.908 0 0 1-.378.378c-.162.088-.324.134-.77.134h-1.436c-.446 0-.608-.046-.77-.134a.908.908 0 0 1-.378-.378c-.088-.162-.134-.324-.134-.77v-1.436c0-.446.046-.608.134-.77a.908.908 0 0 1 .378-.378c.162-.088.324-.134.77-.134h1.436zm20 0c.445 0 .606.046.77.134a.91.91 0 0 1 .377.378c.088.162.134.324.134.77v1.436c0 .446-.046.608-.134.77a.908.908 0 0 1-.378.378c-.163.088-.324.134-.77.134h-1.436c-.446 0-.607-.046-.77-.134a.908.908 0 0 1-.378-.378c-.088-.162-.134-.324-.134-.77v-1.436c0-.446.046-.608.134-.77a.908.908 0 0 1 .378-.378c.163-.088.324-.134.77-.134h1.436zm-20-8c.445 0 .607.046.77.134a.91.91 0 0 1 .377.378c.088.162.134.324.134.77v1.436c0 .446-.046.608-.134.77a.908.908 0 0 1-.378.378c-.162.088-.324.134-.77.134h-1.436c-.446 0-.608-.046-.77-.134a.908.908 0 0 1-.378-.378c-.088-.162-.134-.324-.134-.77v-1.436c0-.446.046-.607.134-.77a.908.908 0 0 1 .378-.378c.162-.088.324-.134.77-.134h1.436zm20 0c.445 0 .606.046.77.134a.91.91 0 0 1 .377.378c.088.162.134.324.134.77v1.436c0 .446-.046.608-.134.77a.908.908 0 0 1-.378.378c-.163.088-.324.134-.77.134h-1.436c-.446 0-.607-.046-.77-.134a.908.908 0 0 1-.378-.378c-.088-.162-.134-.324-.134-.77v-1.436c0-.446.046-.607.134-.77a.908.908 0 0 1 .378-.378c.163-.088.324-.134.77-.134h1.436z\' fill=\'%23909499\'/%3e%3c/svg%3e'),D(t,'class','stubImage v-1oqts7t'),D(t,'alt',''),Q(t,'stubImage-white',e[1]||'')},m(e,i){q(e,t,i)},p(e,i){2&i&&Q(t,'stubImage-white',e[1]||'')},d(e){e&&T(t)}}}function Sl(e){let t,i,n,o=e[0]&&Al(e),l=(!e[0]||!e[1])&&Cl(e);return{c(){t=B('div'),o&&o.c(),i=j(),l&&l.c(),D(t,'class','playerStub v-1oqts7t'),D(t,'style',n=e[1]?`background-image: url('${e[1]}')`:'')},m(e,n){q(e,t,n),o&&o.m(t,null),L(t,i),l&&l.m(t,null)},p(e,[a]){e[0]?o?o.p(e,a):(o=Al(e),o.c(),o.m(t,i)):o&&(o.d(1),o=null),e[0]&&e[1]?l&&(l.d(1),l=null):l?l.p(e,a):(l=Cl(e),l.c(),l.m(t,null)),2&a&&n!==(n=e[1]?`background-image: url('${e[1]}')`:'')&&D(t,'style',n)},i:f,o:f,d(e){e&&T(t),o&&o.d(),l&&l.d()}}}function Ml(e,t,i){let{title:n}=t,{thumbUrl:o}=t;return e.$$set=e=>{'title'in e&&i(0,n=e.title),'thumbUrl'in e&&i(1,o=e.thumbUrl)},[n,o]}class Ll extends $e{constructor(e){super(),we(this,e,Ml,Sl,x,{title:0,thumbUrl:1},zl)}}class Nl extends HTMLElement{constructor(){var e;super(),this.currentPlayingVideoIndex=0,this.needToRepeatPlaylist=!1,this.config=void 0,this._shadowRoot=this.attachShadow({mode:'open'}),this.playerContainer=document.createElement('div'),this.playerContainer.style.width='100%',this.playerContainer.style.height='100%',this._shadowRoot.append(this.playerContainer),this.logger=new u,this.log=this.logger.createComponentLog('VKVideoPlayer'),this.subscription=new d,(null===(e=null===window||void 0===window?void 0:window.videoPlayerConfig)||void 0===e?void 0:e.debugLogs)&&this.subscription.add(this.logger.log$.subscribe((e=>{console.log('%c player web component ','background:#77dd77;',`${e.component}`,e.message)})))}connectedCallback(){const e=this.getAttribute('stub-title'),t=this.getAttribute('stub-thumb-url');this.svelteStubComponent=new Ll({target:this.playerContainer,props:{title:e,thumbUrl:t}})}disconnectedCallback(){var e,t;null===(e=this.svelteRootComponent)||void 0===e||e.$destroy(),null===(t=this.svelteStubComponent)||void 0===t||t.$destroy(),this.subscription.unsubscribe()}needToShowNextPrevButtons(){return!!this.config&&this.config.videos.length>1}isNextButtonActive(){return!!this.config&&(this.needToShowNextPrevButtons()&&(this.currentPlayingVideoIndex<this.config.videos.length-1||this.needToRepeatPlaylist))}isPrevButtonActive(){return!!this.config&&(this.needToShowNextPrevButtons()&&(this.currentPlayingVideoIndex>0||this.needToRepeatPlaylist))}getNextVideoInfo(){if(!this.config)return{nextVideoTitle:void 0,nextVideoThumb:void 0};const e=this.config.videos[this.currentPlayingVideoIndex+1]||{};return{nextVideoTitle:e.title,nextVideoThumb:e.thumbUrl}}createPlayer(e,t={}){if(!this.config)return;const{albumId:i,statPlace:n,autoplay:o,volume:l,muted:a,fromTime:s,canRewindLive:r,supportLink:c,showAds:d,adsSlotId:u,adsParams:v={},adsPreviewParam:p,logoClickable:m,logoHidden:h,isMobile:g,fullScreenTarget:f,failoverHosts:b,callbacks:w}=Object.assign(Object.assign({},this.config),t),{sources:$,title:y,thumbUrl:x,unitedVideoId:k,duration:V,adsParams:P={}}=e,z=Object.assign(Object.assign({},v),P),A=this.getNextVideoInfo(),C={sources:$,title:y,thumbUrl:x,unitedVideoId:k,albumId:i,statPlace:n,autoplay:o,muted:a,volume:l,fromTime:s,canRewindLive:r,supportLink:c,showAds:d,adsSlotId:u,adsParams:z,adsPreviewParam:p,duration:V,logoClickable:m,logoHidden:h,isMobile:g,showNextPrevButtons:this.needToShowNextPrevButtons(),nextButtonActive:this.isNextButtonActive(),prevButtonActive:this.isPrevButtonActive(),endScreenVideoTitle:A.nextVideoTitle,endScreenVideoThumb:A.nextVideoThumb,isOneVideoPlaylist:this.isOneVideoPlaylist()};this.log({message:`create player, props: ${JSON.stringify(C)}`}),this.svelteRootComponent=new Pl({target:this.playerContainer,props:{sources:$,title:y,thumbUrl:x,unitedVideoId:k,albumId:i,statPlace:n,autoplay:o,muted:a,volume:l,fromTime:s,canRewindLive:r,supportLink:c,showAds:d,adsSlotId:u,adsParams:z,adsPreviewParam:p,duration:V,logoClickable:m,logoHidden:h,isMobile:g,callbacks:w,failoverHosts:b,fullScreenTarget:f,outerContainerRef:this.playerContainer,showNextPrevButtons:this.needToShowNextPrevButtons(),nextButtonActive:this.isNextButtonActive(),prevButtonActive:this.isPrevButtonActive(),endScreenVideoTitle:A.nextVideoTitle,endScreenVideoThumb:A.nextVideoThumb,isOneVideoPlaylist:this.isOneVideoPlaylist(),playNextVideo:()=>this.playNextVideo(),playPrevVideo:()=>this.playPrevVideo(),repeatPlaylist:()=>this.repeatPlaylist()}})}playNextVideo(){this.config&&(this.currentPlayingVideoIndex++,this.currentPlayingVideoIndex>=this.config.videos.length&&(this.currentPlayingVideoIndex=0),this.log({message:`play next video, index: ${this.currentPlayingVideoIndex}`}),this.createPlayerWithCurrentVideo())}playPrevVideo(){this.config&&(this.currentPlayingVideoIndex--,this.currentPlayingVideoIndex<0&&(this.currentPlayingVideoIndex=this.config.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(){var e;if(!this.config)return;const t=this.config.videos[this.currentPlayingVideoIndex];t?(null===(e=this.svelteRootComponent)||void 0===e||e.$destroy(),setTimeout((()=>this.createPlayer(t,{autoplay:!0,fromTime:0})),0)):this.log({message:'no next video'})}initPlayer(e){var t,i,n;if(!Array.isArray(e.videos)||0===e.videos.length)throw new Error('empty videos');this.config=g(e,(e=>e instanceof HTMLElement?e:void 0)),this.config.callbacks=null!==(t=e.callbacks)&&void 0!==t?t:{},this.currentPlayingVideoIndex=0,null===(i=this.svelteStubComponent)||void 0===i||i.$destroy(),null===(n=this.svelteRootComponent)||void 0===n||n.$destroy(),this.createPlayer(e.videos[0])}isOneVideoPlaylist(){return!!this.config&&1===this.config.videos.length}updateNextVideos(e){var t;if(!this.config)return;this.log({message:`update next videos, videos: ${JSON.stringify(e)}`}),this.config.videos.splice(this.currentPlayingVideoIndex+1),this.config.videos.push(...e);const i=this.getNextVideoInfo();null===(t=this.svelteRootComponent)||void 0===t||t.$set({showNextPrevButtons:this.needToShowNextPrevButtons(),nextButtonActive:this.isNextButtonActive(),prevButtonActive:this.isPrevButtonActive(),endScreenVideoTitle:i.nextVideoTitle,endScreenVideoThumb:i.nextVideoThumb,isOneVideoPlaylist:this.isOneVideoPlaylist()})}play(){var e;this.log({message:'play'}),null===(e=this.svelteRootComponent)||void 0===e||e.play()}pause(){var e;this.log({message:'pause'}),null===(e=this.svelteRootComponent)||void 0===e||e.pause()}stop(){var e,t;if(!this.config)return;this.log({message:'stop'}),null===(e=this.svelteStubComponent)||void 0===e||e.$destroy();const i=this.config.videos[0];i&&(null===(t=this.svelteRootComponent)||void 0===t||t.$destroy(),this.createPlayer(i))}setMuted(e){var t;this.log({message:`set muted, muted: ${e}`}),null===(t=this.svelteRootComponent)||void 0===t||t.setMuted(e)}setVolume(e){var t;this.log({message:`set volume, volume: ${e}`}),null===(t=this.svelteRootComponent)||void 0===t||t.setVolume(e)}setRepeat(e){var t;this.log({message:`set repeat, repeat: ${e}`}),this.needToRepeatPlaylist=e,null===(t=this.svelteRootComponent)||void 0===t||t.$set({showNextPrevButtons:this.needToShowNextPrevButtons(),nextButtonActive:this.isNextButtonActive(),prevButtonActive:this.isPrevButtonActive()})}seekTime(e){var t;this.log({message:`seek time, time: ${e}`}),null===(t=this.svelteRootComponent)||void 0===t||t.seekTime(e)}}const ql=()=>{window.customElements.define('vk-video-player',Nl)};export{ql as registerPlayerWebComponent};
6
+ import{VideoQuality as e,PlaybackState as t,ChromecastState as i,Player as n,VideoFormat as o}from'@vkontakte/videoplayer-core/es2015.esm.js';import l from'lodash/debounce.js';import{assertNonNullable as a,checkNever as s,Subject as r,addScript as c,Subscription as d,Logger as u,isNonNullable as v,merge as p}from'@vkontakte/videoplayer-shared/es2015.esm.js';import{OneStat as m,ApiEnv as h}from'@vkontakte/videoplayer-statistics/es2015.esm.js';import g from'lodash/cloneDeepWith.js';function f(){}function b(e){return e()}function w(){return Object.create(null)}function $(e){e.forEach(b)}function y(e){return'function'==typeof e}function x(e,t){return e!=e?t==t:e!==t||e&&'object'==typeof e||'function'==typeof e}let k,V;function P(e,t){return k||(k=document.createElement('a')),k.href=t,e===k.href}function z(e,...t){if(null==e)return f;const i=e.subscribe(...t);return i.unsubscribe?()=>i.unsubscribe():i}function A(e){let t;return z(e,(e=>t=e))(),t}function C(e,t,i){e.$$.on_destroy.push(z(t,i))}function S(e,t,i,n){return e[1]&&n?function(e,t){for(const i in t)e[i]=t[i];return e}(i.ctx.slice(),e[1](n(t))):i.ctx}function M(e){return null==e?'':e}function L(e,t){e.appendChild(t)}function N(e,t,i){const n=function(e){if(!e)return document;const t=e.getRootNode?e.getRootNode():e.ownerDocument;if(t&&t.host)return t;return e.ownerDocument}(e);if(!n.getElementById(t)){const e=B('style');e.id=t,e.textContent=i,function(e,t){L(e.head||e,t)}(n,e)}}function q(e,t,i){e.insertBefore(t,i||null)}function T(e){e.parentNode.removeChild(e)}function E(e,t){for(let i=0;i<e.length;i+=1)e[i]&&e[i].d(t)}function B(e){return document.createElement(e)}function I(e){return document.createElementNS('http://www.w3.org/2000/svg',e)}function F(e){return document.createTextNode(e)}function j(){return F(' ')}function R(){return F('')}function H(e,t,i,n){return e.addEventListener(t,i,n),()=>e.removeEventListener(t,i,n)}function _(e){return function(t){return t.preventDefault(),e.call(this,t)}}function D(e,t,i){null==i?e.removeAttribute(t):e.getAttribute(t)!==i&&e.setAttribute(t,i)}function U(e,t){t=''+t,e.wholeText!==t&&(e.data=t)}function O(e,t,i,n){null===i?e.style.removeProperty(t):e.style.setProperty(t,i,n?'important':'')}function Q(e,t,i){e.classList[i?'add':'remove'](t)}function K(e){V=e}function W(){if(!V)throw new Error('Function called outside component initialization');return V}function Y(e){W().$$.on_mount.push(e)}function X(e,t){const i=e.$$.callbacks[t.type];i&&i.slice().forEach((e=>e.call(this,t)))}const G=[],J=[],Z=[],ee=[],te=Promise.resolve();let ie=!1;function ne(e){Z.push(e)}const oe=new Set;let le=0;function ae(){const e=V;do{for(;le<G.length;){const e=G[le];le++,K(e),se(e.$$)}for(K(null),G.length=0,le=0;J.length;)J.pop()();for(let e=0;e<Z.length;e+=1){const t=Z[e];oe.has(t)||(oe.add(t),t())}Z.length=0}while(G.length);for(;ee.length;)ee.pop()();ie=!1,oe.clear(),K(e)}function se(e){if(null!==e.fragment){e.update(),$(e.before_update);const t=e.dirty;e.dirty=[-1],e.fragment&&e.fragment.p(e.ctx,t),e.after_update.forEach(ne)}}const re=new Set;let ce;function de(){ce={r:0,c:[],p:ce}}function ue(){ce.r||$(ce.c),ce=ce.p}function ve(e,t){e&&e.i&&(re.delete(e),e.i(t))}function pe(e,t,i,n){if(e&&e.o){if(re.has(e))return;re.add(e),ce.c.push((()=>{re.delete(e),n&&(i&&e.d(1),n())})),e.o(t)}else n&&n()}const me='undefined'!=typeof window?window:'undefined'!=typeof globalThis?globalThis:global;function he(e){e&&e.c()}function ge(e,t,i,n){const{fragment:o,on_mount:l,on_destroy:a,after_update:s}=e.$$;o&&o.m(t,i),n||ne((()=>{const t=l.map(b).filter(y);a?a.push(...t):$(t),e.$$.on_mount=[]})),s.forEach(ne)}function fe(e,t){const i=e.$$;null!==i.fragment&&($(i.on_destroy),i.fragment&&i.fragment.d(t),i.on_destroy=i.fragment=null,i.ctx=[])}function be(e,t){-1===e.$$.dirty[0]&&(G.push(e),ie||(ie=!0,te.then(ae)),e.$$.dirty.fill(0)),e.$$.dirty[t/31|0]|=1<<t%31}function we(e,t,i,n,o,l,a,s=[-1]){const r=V;K(e);const c=e.$$={fragment:null,ctx:null,props:l,update:f,not_equal:o,bound:w(),on_mount:[],on_destroy:[],on_disconnect:[],before_update:[],after_update:[],context:new Map(t.context||(r?r.$$.context:[])),callbacks:w(),dirty:s,skip_bound:!1,root:t.target||r.$$.root};a&&a(c.root);let d=!1;if(c.ctx=i?i(e,t.props||{},((t,i,...n)=>{const l=n.length?n[0]:i;return c.ctx&&o(c.ctx[t],c.ctx[t]=l)&&(!c.skip_bound&&c.bound[t]&&c.bound[t](l),d&&be(e,t)),i})):[],c.update(),d=!0,$(c.before_update),c.fragment=!!n&&n(c.ctx),t.target){if(t.hydrate){const e=function(e){return Array.from(e.childNodes)}(t.target);c.fragment&&c.fragment.l(e),e.forEach(T)}else c.fragment&&c.fragment.c();t.intro&&ve(e.$$.fragment),ge(e,t.target,t.anchor,t.customElement),ae()}K(r)}class $e{$destroy(){fe(this,1),this.$destroy=f}$on(e,t){const i=this.$$.callbacks[e]||(this.$$.callbacks[e]=[]);return i.push(t),()=>{const e=i.indexOf(t);-1!==e&&i.splice(e,1)}}$set(e){var t;this.$$set&&(t=e,0!==Object.keys(t).length)&&(this.$$.skip_bound=!0,this.$$set(e),this.$$.skip_bound=!1)}}const ye=[];function xe(e,t){return{subscribe:ke(e,t).subscribe}}function ke(e,t=f){let i;const n=new Set;function o(t){if(x(e,t)&&(e=t,i)){const t=!ye.length;for(const t of n)t[1](),ye.push(t,e);if(t){for(let e=0;e<ye.length;e+=2)ye[e][0](ye[e+1]);ye.length=0}}}return{set:o,update:function(t){o(t(e))},subscribe:function(l,a=f){const s=[l,a];return n.add(s),1===n.size&&(i=t(o)||f),l(e),()=>{n.delete(s),0===n.size&&(i(),i=null)}}}}function Ve(e,t,i){const n=!Array.isArray(e),o=n?[e]:e,l=t.length<2;return xe(i,(e=>{let i=!1;const a=[];let s=0,r=f;const c=()=>{if(s)return;r();const i=t(n?a[0]:a,e);l?e(i):r=y(i)?i:f},d=o.map(((e,t)=>z(e,(e=>{a[t]=e,s&=~(1<<t),i&&c()}),(()=>{s|=1<<t}))));return i=!0,c(),function(){$(d),r()}}))}const Pe=Symbol('storeContext'),ze=e=>{var t,i;t=Pe,i=e,W().$$.context.set(t,i)},Ae=()=>{const e=(t=Pe,W().$$.context.get(t));var t;return a(e,'Store context is empty!'),e},Ce=(e,t)=>xe(e.getValue(),(i=>{const n=e.subscribe((e=>{i(e),null==t||t(e)}));return()=>n.unsubscribe()})),Se='https://vk.com/support?act=new&from=v';var Me;!function(e){e.ArrowLeft='ArrowLeft',e.ArrowUp='ArrowUp',e.ArrowRight='ArrowRight',e.ArrowDown='ArrowDown',e.Comma='Comma',e.Period='Period',e.Space='Space',e.KeyM='KeyM',e.KeyF='KeyF',e.KeyK='KeyK',e.KeyL='KeyL',e.KeyJ='KeyJ'}(Me||(Me={}));var Le='data:image/svg+xml,%3csvg width=\'24\' height=\'24\' fill=\'none\' xmlns=\'http://www.w3.org/2000/svg\'%3e%3cpath d=\'M13.25 2.833c.222.74.378 1.479 1.574 2.19a.574.574 0 0 0 .12.05c1.355.35 2.028-.021 2.654-.439.663-.442.86-.314 1.124-.053l.644.643c.294.294.412.412 0 1.178-.366.68-.779 1.313-.435 2.662a.469.469 0 0 0 .05.12c.71 1.206 1.448 1.418 2.186 1.566.78.156.83.386.833.757v.91c0 .416 0 .583-.833.833-.74.222-1.479.378-2.19 1.574a.469.469 0 0 0-.05.12c-.35 1.355.021 2.028.439 2.654.442.663.314.86.053 1.124l-.643.644c-.294.294-.412.412-1.178 0-.68-.366-1.313-.779-2.662-.435a.464.464 0 0 0-.12.05c-1.206.71-1.418 1.448-1.566 2.186-.156.78-.386.83-.757.833h-.91c-.416 0-.583 0-.833-.833-.222-.74-.378-1.479-1.574-2.19a.468.468 0 0 0-.12-.05c-1.355-.35-2.028.021-2.654.439-.663.442-.86.314-1.124.053l-.644-.643c-.294-.294-.412-.412 0-1.178.366-.68.779-1.313.435-2.662a.466.466 0 0 0-.05-.12c-.71-1.206-1.448-1.418-2.186-1.566-.78-.156-.83-.386-.833-.757v-.91c0-.416 0-.583.833-.833.74-.222 1.479-.378 2.19-1.574a.467.467 0 0 0 .05-.12c.35-1.355-.021-2.028-.439-2.654-.442-.663-.314-.86-.053-1.124l.643-.644c.294-.294.412-.412 1.178 0 .68.366 1.313.779 2.662.435a.467.467 0 0 0 .12-.05c1.206-.71 1.418-1.448 1.566-2.186.156-.78.386-.83.757-.833h.91c.416 0 .583 0 .833.833zM12 7.25a4.75 4.75 0 1 0 0 9.5 4.75 4.75 0 0 0 0-9.5z\' fill=\'white\'/%3e%3c/svg%3e',Ne='data:image/svg+xml,%3csvg height=\'16\' width=\'16\' xmlns=\'http://www.w3.org/2000/svg\'%3e%3cpath 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\' fill=\'white\'/%3e%3c/svg%3e',qe='data:image/svg+xml,%3csvg width=\'12\' height=\'16\' fill=\'none\' xmlns=\'http://www.w3.org/2000/svg\'%3e%3cpath d=\'m5.773 8 3.363 3.364a.9.9 0 1 1-1.272 1.272l-4-4a.9.9 0 0 1 0-1.272l4-4a.9.9 0 0 1 1.272 1.272L5.773 8z\' fill=\'white\'/%3e%3c/svg%3e';const Te=e=>{if(document.queryCommandSupported&&document.queryCommandSupported('copy')){const t=document.createElement('textarea');t.textContent=e,t.style.position='absolute',t.style.top='-9999px',document.body.appendChild(t),t.select();try{document.execCommand('copy')}finally{document.body.removeChild(t)}}};function Ee(e){N(e,'v-1f29v8g','ul.v-1f29v8g.v-1f29v8g{margin:0;padding:0}.menu.v-1f29v8g.v-1f29v8g{background-color:rgba(17, 17, 17, 0.8);border-radius:8px;line-height:40px;transition:opacity 0.2s, visibility 0.2s;overflow:hidden}.container-mobile.v-1f29v8g.v-1f29v8g{width:100%}.menu-desktop.v-1f29v8g.v-1f29v8g{position:absolute;right:0;bottom:0}.menu-mobile.v-1f29v8g.v-1f29v8g{width:100%;background:var(--videplayer-mobile-settings-bg);font-size:15px;line-height:50px}.hidden.v-1f29v8g.v-1f29v8g{visibility:hidden;opacity:0}.menu-mobile.hidden.v-1f29v8g.v-1f29v8g{display:none}.menu-subList.v-1f29v8g.v-1f29v8g{min-width:134px;padding-bottom:0}.item.v-1f29v8g.v-1f29v8g{align-items:center;color:var(--white);cursor:pointer;display:flex;justify-content:flex-end;padding:0 24px 0 18px;white-space:nowrap;position:relative}.item-mobile.v-1f29v8g.v-1f29v8g{padding:0 14px}.item-quality.item-mobile.v-1f29v8g.v-1f29v8g{flex-direction:row-reverse}.quality-title-mobile.v-1f29v8g.v-1f29v8g{flex-grow:1}.item.v-1f29v8g.v-1f29v8g:hover{background-color:rgba(255, 255, 255, 0.08)}.item-mobile.v-1f29v8g.v-1f29v8g:hover{background:var(--videplayer-mobile-settings-bg)}.menu-subList.v-1f29v8g .item.v-1f29v8g{color:rgba(255, 255, 255, 0.9)}.menu-subList.v-1f29v8g .item.v-1f29v8g:last-child{margin-bottom:4px}.menu-icon.v-1f29v8g.v-1f29v8g{margin-right:16px}.menu-title.v-1f29v8g.v-1f29v8g{flex-grow:1;margin-right:24px;overflow:hidden;text-overflow:ellipsis}.menu-value.v-1f29v8g.v-1f29v8g{position:relative;opacity:0.7}.menu-valueIcon.v-1f29v8g.v-1f29v8g{position:absolute;top:10px;margin-left:4px;width:15px}.menu-valueIcon-list.v-1f29v8g.v-1f29v8g{position:absolute;top:12px;width:15px;right:6px}.menu-divider.v-1f29v8g.v-1f29v8g{background-color:rgba(255, 255, 255, 0.3);height:1px;margin-bottom:4px}.menu-header.v-1f29v8g.v-1f29v8g{color:var(--white);cursor:pointer;justify-content:space-between;display:flex}.menu-header-back-icon.v-1f29v8g.v-1f29v8g{width:16px;height:24px}.menu-header.v-1f29v8g:hover .menu-header-back-icon.v-1f29v8g{opacity:0.8;transition:opacity 0.2s}.itemIcon.v-1f29v8g.v-1f29v8g{margin-right:auto;opacity:0.9}.items.v-1f29v8g.v-1f29v8g::-webkit-scrollbar{width:8px}.items.v-1f29v8g.v-1f29v8g::-webkit-scrollbar-track{box-shadow:none;background-color:#3a3a3a;border-radius:4px}.items.v-1f29v8g.v-1f29v8g::-webkit-scrollbar-thumb{min-height:40px;border-radius:5px;background-color:#666;border:1px solid transparent;background-clip:padding-box}.items.v-1f29v8g.v-1f29v8g::-webkit-scrollbar-thumb:hover{background-color:#777}.items-mobile.v-1f29v8g.v-1f29v8g{overflow-y:auto;max-height:160px;text-align:left}.close.v-1f29v8g.v-1f29v8g{position:relative;width:12px;height:12px;padding:12px;margin-right:-12px}.close.v-1f29v8g.v-1f29v8g:before,.close.v-1f29v8g.v-1f29v8g:after{position:absolute;left:18px;content:\' \';height:12px;width:2px;background-color:var(--white)}.close.v-1f29v8g.v-1f29v8g:before{transform:rotate(45deg)}.close.v-1f29v8g.v-1f29v8g:after{transform:rotate(-45deg)}')}function Be(e,t,i){const n=e.slice();return n[42]=t[i],n}function Ie(e,t,i){const n=e.slice();return n[45]=t[i],n}function Fe(e){let t,i,n,o,l,a,s,r;return{c(){t=B('div'),i=B('div'),i.textContent='Настройки',n=j(),o=B('div'),l=j(),a=B('div'),D(o,'class','close v-1f29v8g'),D(t,'class','item menu-header v-1f29v8g'),Q(t,'item-mobile',e[0]),D(a,'class','menu-divider v-1f29v8g')},m(c,d){q(c,t,d),L(t,i),L(t,n),L(t,o),q(c,l,d),q(c,a,d),s||(r=H(o,'click',e[22]),s=!0)},p(e,i){1&i[0]&&Q(t,'item-mobile',e[0])},d(e){e&&T(t),e&&T(l),e&&T(a),s=!1,r()}}}function je(e){let t,i;return{c(){t=B('img'),D(t,'class','menu-valueIcon v-1f29v8g'),P(t.src,i=e[6])||D(t,'src',i),D(t,'alt','')},m(e,i){q(e,t,i)},p(e,n){64&n[0]&&!P(t.src,i=e[6])&&D(t,'src',i)},d(e){e&&T(t)}}}function Re(e){let t,i,n,o,l,a,s,r,c,d,u;return{c(){t=B('li'),i=B('img'),o=j(),l=B('div'),l.textContent='Скорость',a=j(),s=B('div'),r=F(e[10]),c=F('x'),D(i,'class','menu-icon v-1f29v8g'),P(i.src,n='data:image/svg+xml,%3csvg height=\'24\' width=\'24\' xmlns=\'http://www.w3.org/2000/svg\'%3e%3cg fill=\'none\' fill-rule=\'evenodd\'%3e%3cpath d=\'M0 0h24v24H0z\'/%3e%3cpath d=\'M11 4.07V2.05c-2.01.2-3.84 1-5.32 2.21L7.1 5.69A7.941 7.941 0 0 1 11 4.07zM5.69 7.1 4.26 5.68A9.949 9.949 0 0 0 2.05 11h2.02c.18-1.46.76-2.79 1.62-3.9zM2.05 13c.2 2.01 1 3.84 2.21 5.32l1.43-1.43A7.868 7.868 0 0 1 4.07 13zM11 21.95v-2.02a7.941 7.941 0 0 1-3.9-1.62l-1.42 1.43A9.981 9.981 0 0 0 11 21.95zM22 12c0 5.16-3.92 9.42-8.95 9.95v-2.02C16.97 19.41 20 16.05 20 12s-3.03-7.41-6.95-7.93V2.05C18.08 2.58 22 6.84 22 12zM10.688 8.576l4.746 2.736a.792.792 0 0 1 0 1.372l-4.746 2.737a.792.792 0 0 1-1.188-.686V9.262a.792.792 0 0 1 1.188-.686z\' fill=\'white\' fill-rule=\'nonzero\'/%3e%3c/g%3e%3c/svg%3e')||D(i,'src','data:image/svg+xml,%3csvg height=\'24\' width=\'24\' xmlns=\'http://www.w3.org/2000/svg\'%3e%3cg fill=\'none\' fill-rule=\'evenodd\'%3e%3cpath d=\'M0 0h24v24H0z\'/%3e%3cpath d=\'M11 4.07V2.05c-2.01.2-3.84 1-5.32 2.21L7.1 5.69A7.941 7.941 0 0 1 11 4.07zM5.69 7.1 4.26 5.68A9.949 9.949 0 0 0 2.05 11h2.02c.18-1.46.76-2.79 1.62-3.9zM2.05 13c.2 2.01 1 3.84 2.21 5.32l1.43-1.43A7.868 7.868 0 0 1 4.07 13zM11 21.95v-2.02a7.941 7.941 0 0 1-3.9-1.62l-1.42 1.43A9.981 9.981 0 0 0 11 21.95zM22 12c0 5.16-3.92 9.42-8.95 9.95v-2.02C16.97 19.41 20 16.05 20 12s-3.03-7.41-6.95-7.93V2.05C18.08 2.58 22 6.84 22 12zM10.688 8.576l4.746 2.736a.792.792 0 0 1 0 1.372l-4.746 2.737a.792.792 0 0 1-1.188-.686V9.262a.792.792 0 0 1 1.188-.686z\' fill=\'white\' fill-rule=\'nonzero\'/%3e%3c/g%3e%3c/svg%3e'),D(i,'alt',''),D(l,'class','menu-title v-1f29v8g'),D(s,'class','menu-value v-1f29v8g'),D(t,'class','item v-1f29v8g'),D(t,'role','menuitemradio'),D(t,'tabindex','0'),Q(t,'item-mobile',e[0])},m(n,v){q(n,t,v),L(t,i),L(t,o),L(t,l),L(t,a),L(t,s),L(s,r),L(s,c),d||(u=H(t,'click',e[26]),d=!0)},p(e,i){1024&i[0]&&U(r,e[10]),1&i[0]&&Q(t,'item-mobile',e[0])},d(e){e&&T(t),d=!1,u()}}}function He(e){let t,i,n,o,l,a,s,r,c,d,u,v,p,m,h,g,b,w,y;return{c(){t=B('li'),i=B('img'),o=j(),l=B('div'),l.textContent='Сообщить о проблеме',a=j(),s=B('li'),r=B('img'),d=j(),u=B('div'),u.textContent='Копировать данные для диагностики',v=j(),p=B('li'),m=B('img'),g=j(),b=B('div'),b.textContent='Техническая информация',D(i,'class','menu-icon v-1f29v8g'),P(i.src,n='data:image/svg+xml,%3csvg width=\'24\' height=\'24\' fill=\'none\' xmlns=\'http://www.w3.org/2000/svg\'%3e%3cpath fill-rule=\'evenodd\' clip-rule=\'evenodd\' d=\'M8.863 2.1h6.274c.674-.002 1.2.211 1.683.697l4.383 4.383c.478.476.699.998.697 1.683v6.274c.002.685-.22 1.207-.697 1.683l-4.383 4.383c-.476.478-.998.699-1.683.697H8.863c-.685.002-1.207-.22-1.683-.697L2.797 16.82c-.478-.476-.699-.998-.697-1.683V8.863c-.002-.685.22-1.207.697-1.683L7.18 2.797c.484-.486 1.009-.699 1.683-.697zm-.445 2.005L4.105 8.418c-.18.18-.205.242-.205.495v6.174c0 .25.025.316.205.495l4.313 4.313c.179.179.24.205.495.205h6.174c.253 0 .316-.026.495-.205l4.313-4.313c.18-.18.205-.245.205-.495V8.913c0-.254-.026-.316-.205-.495l-4.313-4.313c-.18-.18-.242-.205-.495-.205H8.913c-.254 0-.319.029-.495.205zM13 16a1 1 0 1 1-2 0 1 1 0 0 1 2 0zm-.1-8.1a.9.9 0 0 0-1.8 0v5.2a.9.9 0 1 0 1.8 0V7.9z\' fill=\'white\'/%3e%3c/svg%3e')||D(i,'src','data:image/svg+xml,%3csvg width=\'24\' height=\'24\' fill=\'none\' xmlns=\'http://www.w3.org/2000/svg\'%3e%3cpath fill-rule=\'evenodd\' clip-rule=\'evenodd\' d=\'M8.863 2.1h6.274c.674-.002 1.2.211 1.683.697l4.383 4.383c.478.476.699.998.697 1.683v6.274c.002.685-.22 1.207-.697 1.683l-4.383 4.383c-.476.478-.998.699-1.683.697H8.863c-.685.002-1.207-.22-1.683-.697L2.797 16.82c-.478-.476-.699-.998-.697-1.683V8.863c-.002-.685.22-1.207.697-1.683L7.18 2.797c.484-.486 1.009-.699 1.683-.697zm-.445 2.005L4.105 8.418c-.18.18-.205.242-.205.495v6.174c0 .25.025.316.205.495l4.313 4.313c.179.179.24.205.495.205h6.174c.253 0 .316-.026.495-.205l4.313-4.313c.18-.18.205-.245.205-.495V8.913c0-.254-.026-.316-.205-.495l-4.313-4.313c-.18-.18-.242-.205-.495-.205H8.913c-.254 0-.319.029-.495.205zM13 16a1 1 0 1 1-2 0 1 1 0 0 1 2 0zm-.1-8.1a.9.9 0 0 0-1.8 0v5.2a.9.9 0 1 0 1.8 0V7.9z\' fill=\'white\'/%3e%3c/svg%3e'),D(i,'alt',''),D(l,'class','menu-title v-1f29v8g'),D(t,'class','item item-mobile v-1f29v8g'),D(t,'role','menuitemradio'),D(t,'tabindex','0'),D(r,'class','menu-icon v-1f29v8g'),P(r.src,c='data:image/svg+xml,%3csvg width=\'24\' height=\'24\' fill=\'none\' xmlns=\'http://www.w3.org/2000/svg\'%3e%3cpath fill-rule=\'evenodd\' clip-rule=\'evenodd\' 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 4H16.812a2.073 2.073 0 0 0-.174-.49 2.4 2.4 0 0 0-1.048-1.048 2.439 2.439 0 0 0-.931-.239 13.48 13.48 0 0 0-1.026-.023H12.26c-1.576 0-2.814 0-3.81.081-1.014.083-1.856.255-2.62.644A6.65 6.65 0 0 0 2.926 5.83c-.389.763-.56 1.605-.644 2.62-.081.995-.081 2.233-.081 3.809v1.373c0 .392 0 .738.023 1.025.025.306.081.623.239.931a2.4 2.4 0 0 0 1.048 1.05c.162.082.326.136.49.173V12.3zM10.08 6h-.035c-.52 0-.964 0-1.329.03-.383.03-.755.097-1.112.276a2.9 2.9 0 0 0-1.298 1.298c-.179.357-.246.73-.277 1.112C6 9.081 6 9.524 6 10.046v7.909c0 .52 0 .964.03 1.329.03.382.097.755.276 1.112a2.9 2.9 0 0 0 1.298 1.298c.357.179.73.246 1.112.277.365.029.808.029 1.329.029h6.91c.52 0 .964 0 1.329-.03.382-.03.755-.097 1.112-.276a2.9 2.9 0 0 0 1.298-1.298c.179-.357.246-.73.277-1.112.029-.365.029-.808.029-1.33v-7.909c0-.52 0-.964-.03-1.329-.03-.382-.097-.755-.276-1.112a2.9 2.9 0 0 0-1.298-1.298c-.357-.179-.73-.246-1.112-.277C17.919 6 17.476 6 16.954 6H10.08zM8.408 7.916c.065-.032.179-.07.452-.093.284-.022.655-.023 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.093-.284.022-.655.023-1.22.023h-6.84c-.565 0-.936 0-1.22-.023-.273-.023-.387-.06-.452-.093a1.1 1.1 0 0 1-.492-.492c-.032-.065-.07-.18-.093-.452a17.057 17.057 0 0 1-.023-1.22v-7.84c0-.565 0-.936.023-1.22.022-.273.06-.387.093-.452a1.1 1.1 0 0 1 .492-.492z\' fill=\'white\'/%3e%3c/svg%3e')||D(r,'src','data:image/svg+xml,%3csvg width=\'24\' height=\'24\' fill=\'none\' xmlns=\'http://www.w3.org/2000/svg\'%3e%3cpath fill-rule=\'evenodd\' clip-rule=\'evenodd\' 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 4H16.812a2.073 2.073 0 0 0-.174-.49 2.4 2.4 0 0 0-1.048-1.048 2.439 2.439 0 0 0-.931-.239 13.48 13.48 0 0 0-1.026-.023H12.26c-1.576 0-2.814 0-3.81.081-1.014.083-1.856.255-2.62.644A6.65 6.65 0 0 0 2.926 5.83c-.389.763-.56 1.605-.644 2.62-.081.995-.081 2.233-.081 3.809v1.373c0 .392 0 .738.023 1.025.025.306.081.623.239.931a2.4 2.4 0 0 0 1.048 1.05c.162.082.326.136.49.173V12.3zM10.08 6h-.035c-.52 0-.964 0-1.329.03-.383.03-.755.097-1.112.276a2.9 2.9 0 0 0-1.298 1.298c-.179.357-.246.73-.277 1.112C6 9.081 6 9.524 6 10.046v7.909c0 .52 0 .964.03 1.329.03.382.097.755.276 1.112a2.9 2.9 0 0 0 1.298 1.298c.357.179.73.246 1.112.277.365.029.808.029 1.329.029h6.91c.52 0 .964 0 1.329-.03.382-.03.755-.097 1.112-.276a2.9 2.9 0 0 0 1.298-1.298c.179-.357.246-.73.277-1.112.029-.365.029-.808.029-1.33v-7.909c0-.52 0-.964-.03-1.329-.03-.382-.097-.755-.276-1.112a2.9 2.9 0 0 0-1.298-1.298c-.357-.179-.73-.246-1.112-.277C17.919 6 17.476 6 16.954 6H10.08zM8.408 7.916c.065-.032.179-.07.452-.093.284-.022.655-.023 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.093-.284.022-.655.023-1.22.023h-6.84c-.565 0-.936 0-1.22-.023-.273-.023-.387-.06-.452-.093a1.1 1.1 0 0 1-.492-.492c-.032-.065-.07-.18-.093-.452a17.057 17.057 0 0 1-.023-1.22v-7.84c0-.565 0-.936.023-1.22.022-.273.06-.387.093-.452a1.1 1.1 0 0 1 .492-.492z\' fill=\'white\'/%3e%3c/svg%3e'),D(r,'alt',''),D(u,'class','menu-title v-1f29v8g'),D(s,'class','item item-mobile v-1f29v8g'),D(s,'role','menuitemradio'),D(s,'tabindex','0'),D(m,'class','menu-icon v-1f29v8g'),P(m.src,h='data:image/svg+xml,%3csvg width=\'24\' height=\'24\' fill=\'none\' xmlns=\'http://www.w3.org/2000/svg\'%3e%3cpath d=\'M12 20.105a8.105 8.105 0 1 0 0-16.21 8.105 8.105 0 0 0 0 16.21zM12 22C6.477 22 2 17.523 2 12S6.477 2 12 2s10 4.477 10 10-4.477 10-10 10zm0-12.372a1.316 1.316 0 1 1 0-2.632 1.316 1.316 0 0 1 0 2.632zm-.947 2.822c0-.541.424-.98.947-.98.523 0 .947.439.947.98v3.83c0 .54-.424.98-.947.98-.523 0-.947-.44-.947-.98v-3.83z\' fill=\'white\'/%3e%3c/svg%3e')||D(m,'src','data:image/svg+xml,%3csvg width=\'24\' height=\'24\' fill=\'none\' xmlns=\'http://www.w3.org/2000/svg\'%3e%3cpath d=\'M12 20.105a8.105 8.105 0 1 0 0-16.21 8.105 8.105 0 0 0 0 16.21zM12 22C6.477 22 2 17.523 2 12S6.477 2 12 2s10 4.477 10 10-4.477 10-10 10zm0-12.372a1.316 1.316 0 1 1 0-2.632 1.316 1.316 0 0 1 0 2.632zm-.947 2.822c0-.541.424-.98.947-.98.523 0 .947.439.947.98v3.83c0 .54-.424.98-.947.98-.523 0-.947-.44-.947-.98v-3.83z\' fill=\'white\'/%3e%3c/svg%3e'),D(m,'alt',''),D(b,'class','menu-title v-1f29v8g'),D(p,'class','item item-mobile v-1f29v8g'),D(p,'role','menuitemradio'),D(p,'tabindex','0')},m(n,c){q(n,t,c),L(t,i),L(t,o),L(t,l),q(n,a,c),q(n,s,c),L(s,r),L(s,d),L(s,u),q(n,v,c),q(n,p,c),L(p,m),L(p,g),L(p,b),w||(y=[H(t,'click',e[28]),H(s,'click',e[29]),H(p,'click',e[30])],w=!0)},p:f,d(e){e&&T(t),e&&T(a),e&&T(s),e&&T(v),e&&T(p),w=!1,$(y)}}}function _e(e){let t,i;return{c(){t=B('img'),D(t,'class','itemIcon v-1f29v8g'),P(t.src,i=Ne)||D(t,'src','data:image/svg+xml,%3csvg height=\'16\' width=\'16\' xmlns=\'http://www.w3.org/2000/svg\'%3e%3cpath 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\' fill=\'white\'/%3e%3c/svg%3e'),D(t,'alt','')},m(e,i){q(e,t,i)},p:f,d(e){e&&T(t)}}}function De(e){let t,i;return{c(){t=B('img'),D(t,'class','menu-valueIcon-list v-1f29v8g'),P(t.src,i=e[31](e[45].value))||D(t,'src',i),D(t,'alt','')},m(e,i){q(e,t,i)},p(e,n){2&n[0]&&!P(t.src,i=e[31](e[45].value))&&D(t,'src',i)},d(e){e&&T(t)}}}function Ue(e){let t,i,n,o,l,a,s,r,c,d=e[45].displayValue+'',u=e[45].selected&&_e(),v=!e[0]&&De(e);function p(){return e[37](e[45])}return{c(){t=B('li'),u&&u.c(),i=j(),n=B('div'),o=F(d),l=j(),v&&v.c(),a=j(),D(n,'class','v-1f29v8g'),Q(n,'quality-title-mobile',e[0]),D(t,'class','item item-quality v-1f29v8g'),D(t,'data-value',s=e[45].value),D(t,'role','menuitemradio'),D(t,'tabindex','0'),Q(t,'item-mobile',e[0])},m(e,s){q(e,t,s),u&&u.m(t,null),L(t,i),L(t,n),L(n,o),L(t,l),v&&v.m(t,null),L(t,a),r||(c=H(t,'click',p),r=!0)},p(l,r){(e=l)[45].selected?u?u.p(e,r):(u=_e(),u.c(),u.m(t,i)):u&&(u.d(1),u=null),2&r[0]&&d!==(d=e[45].displayValue+'')&&U(o,d),1&r[0]&&Q(n,'quality-title-mobile',e[0]),e[0]?v&&(v.d(1),v=null):v?v.p(e,r):(v=De(e),v.c(),v.m(t,a)),2&r[0]&&s!==(s=e[45].value)&&D(t,'data-value',s),1&r[0]&&Q(t,'item-mobile',e[0])},d(e){e&&T(t),u&&u.d(),v&&v.d(),r=!1,c()}}}function Oe(e){let t,i;return{c(){t=B('img'),D(t,'class','itemIcon v-1f29v8g'),P(t.src,i=Ne)||D(t,'src','data:image/svg+xml,%3csvg height=\'16\' width=\'16\' xmlns=\'http://www.w3.org/2000/svg\'%3e%3cpath 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\' fill=\'white\'/%3e%3c/svg%3e'),D(t,'alt','')},m(e,i){q(e,t,i)},p:f,d(e){e&&T(t)}}}function Qe(e){let t,i,n,o,l,a,s,r,c=e[42].displayValue+'',d=e[42].selected&&Oe();function u(){return e[38](e[42])}return{c(){t=B('li'),d&&d.c(),i=j(),n=B('div'),o=F(c),l=j(),D(n,'class','v-1f29v8g'),Q(n,'quality-title-mobile',e[0]),D(t,'class','item item-quality v-1f29v8g'),D(t,'data-value',a=e[42].value),D(t,'role','menuitemradio'),D(t,'tabindex','0'),Q(t,'item-mobile',e[0])},m(e,a){q(e,t,a),d&&d.m(t,null),L(t,i),L(t,n),L(n,o),L(t,l),s||(r=H(t,'click',u),s=!0)},p(l,s){(e=l)[42].selected?d?d.p(e,s):(d=Oe(),d.c(),d.m(t,i)):d&&(d.d(1),d=null),2048&s[0]&&c!==(c=e[42].displayValue+'')&&U(o,c),1&s[0]&&Q(n,'quality-title-mobile',e[0]),2048&s[0]&&a!==(a=e[42].value)&&D(t,'data-value',a),1&s[0]&&Q(t,'item-mobile',e[0])},d(e){e&&T(t),d&&d.d(),s=!1,r()}}}function Ke(e){let t,i,n,o,l,a,s,r,c,d,u,v,p,m,h,g,b,w,y,x,k,V,z,A,C,S,M,N,I,R,_,O,K,W,Y,X,G,J,Z,ee=e[0]&&Fe(e),te=e[6]&&!e[0]&&je(e),ie=!e[9]&&Re(e),ne=e[0]&&He(e),oe=e[1],le=[];for(let t=0;t<oe.length;t+=1)le[t]=Ue(Ie(e,oe,t));let ae=e[11],se=[];for(let t=0;t<ae.length;t+=1)se[t]=Qe(Be(e,ae,t));return{c(){t=B('div'),i=B('div'),ee&&ee.c(),n=j(),o=B('ul'),l=B('li'),a=B('img'),r=j(),c=B('div'),c.textContent='Качество',d=j(),u=B('div'),v=F(e[7]),p=j(),te&&te.c(),m=j(),ie&&ie.c(),h=j(),ne&&ne.c(),g=j(),b=B('div'),w=B('div'),y=B('img'),k=j(),V=B('div'),V.textContent='Качество',z=j(),A=B('div'),C=j(),S=B('ul');for(let e=0;e<le.length;e+=1)le[e].c();M=j(),N=B('div'),I=B('div'),R=B('img'),O=j(),K=B('div'),K.textContent='Скорость',W=j(),Y=B('div'),X=j(),G=B('ul');for(let e=0;e<se.length;e+=1)se[e].c();D(a,'class','menu-icon v-1f29v8g'),P(a.src,s=Le)||D(a,'src','data:image/svg+xml,%3csvg width=\'24\' height=\'24\' fill=\'none\' xmlns=\'http://www.w3.org/2000/svg\'%3e%3cpath d=\'M13.25 2.833c.222.74.378 1.479 1.574 2.19a.574.574 0 0 0 .12.05c1.355.35 2.028-.021 2.654-.439.663-.442.86-.314 1.124-.053l.644.643c.294.294.412.412 0 1.178-.366.68-.779 1.313-.435 2.662a.469.469 0 0 0 .05.12c.71 1.206 1.448 1.418 2.186 1.566.78.156.83.386.833.757v.91c0 .416 0 .583-.833.833-.74.222-1.479.378-2.19 1.574a.469.469 0 0 0-.05.12c-.35 1.355.021 2.028.439 2.654.442.663.314.86.053 1.124l-.643.644c-.294.294-.412.412-1.178 0-.68-.366-1.313-.779-2.662-.435a.464.464 0 0 0-.12.05c-1.206.71-1.418 1.448-1.566 2.186-.156.78-.386.83-.757.833h-.91c-.416 0-.583 0-.833-.833-.222-.74-.378-1.479-1.574-2.19a.468.468 0 0 0-.12-.05c-1.355-.35-2.028.021-2.654.439-.663.442-.86.314-1.124.053l-.644-.643c-.294-.294-.412-.412 0-1.178.366-.68.779-1.313.435-2.662a.466.466 0 0 0-.05-.12c-.71-1.206-1.448-1.418-2.186-1.566-.78-.156-.83-.386-.833-.757v-.91c0-.416 0-.583.833-.833.74-.222 1.479-.378 2.19-1.574a.467.467 0 0 0 .05-.12c.35-1.355-.021-2.028-.439-2.654-.442-.663-.314-.86-.053-1.124l.643-.644c.294-.294.412-.412 1.178 0 .68.366 1.313.779 2.662.435a.467.467 0 0 0 .12-.05c1.206-.71 1.418-1.448 1.566-2.186.156-.78.386-.83.757-.833h.91c.416 0 .583 0 .833.833zM12 7.25a4.75 4.75 0 1 0 0 9.5 4.75 4.75 0 0 0 0-9.5z\' fill=\'white\'/%3e%3c/svg%3e'),D(a,'alt',''),D(c,'class','menu-title v-1f29v8g'),D(u,'class','menu-value v-1f29v8g'),D(l,'class','item v-1f29v8g'),D(l,'role','menuitemradio'),D(l,'tabindex','0'),Q(l,'item-mobile',e[0]),D(o,'class','items v-1f29v8g'),Q(o,'items-mobile',e[0]),D(i,'class','menu v-1f29v8g'),D(i,'role','menu'),Q(i,'menu-desktop',!e[0]),Q(i,'menu-mobile',e[0]),Q(i,'hidden',!e[3]),P(y.src,x=qe)||D(y,'src','data:image/svg+xml,%3csvg width=\'12\' height=\'16\' fill=\'none\' xmlns=\'http://www.w3.org/2000/svg\'%3e%3cpath d=\'m5.773 8 3.363 3.364a.9.9 0 1 1-1.272 1.272l-4-4a.9.9 0 0 1 0-1.272l4-4a.9.9 0 0 1 1.272 1.272L5.773 8z\' fill=\'white\'/%3e%3c/svg%3e'),D(y,'class','menu-header-back-icon v-1f29v8g'),D(y,'alt',''),D(w,'class','item menu-header v-1f29v8g'),Q(w,'item-mobile',e[0]),D(A,'class','menu-divider v-1f29v8g'),D(S,'class','items v-1f29v8g'),D(S,'style',e[8]),Q(S,'items-mobile',e[0]),D(b,'class','menu menu-subList v-1f29v8g'),Q(b,'menu-desktop',!e[0]),Q(b,'menu-mobile',e[0]),Q(b,'hidden',!e[4]),P(R.src,_=qe)||D(R,'src','data:image/svg+xml,%3csvg width=\'12\' height=\'16\' fill=\'none\' xmlns=\'http://www.w3.org/2000/svg\'%3e%3cpath d=\'m5.773 8 3.363 3.364a.9.9 0 1 1-1.272 1.272l-4-4a.9.9 0 0 1 0-1.272l4-4a.9.9 0 0 1 1.272 1.272L5.773 8z\' fill=\'white\'/%3e%3c/svg%3e'),D(R,'class','menu-header-back-icon v-1f29v8g'),D(R,'alt',''),D(I,'class','item menu-header v-1f29v8g'),Q(I,'item-mobile',e[0]),D(Y,'class','menu-divider v-1f29v8g'),D(G,'class','items v-1f29v8g'),Q(G,'items-mobile',e[0]),D(N,'class','menu menu-subList v-1f29v8g'),Q(N,'menu-desktop',!e[0]),Q(N,'menu-mobile',e[0]),Q(N,'hidden',!e[5]),D(t,'class','v-1f29v8g'),Q(t,'hidden',!e[2]),Q(t,'container-mobile',e[0])},m(s,f){q(s,t,f),L(t,i),ee&&ee.m(i,null),L(i,n),L(i,o),L(o,l),L(l,a),L(l,r),L(l,c),L(l,d),L(l,u),L(u,v),L(u,p),te&&te.m(u,null),L(o,m),ie&&ie.m(o,null),L(o,h),ne&&ne.m(o,null),L(t,g),L(t,b),L(b,w),L(w,y),L(w,k),L(w,V),L(b,z),L(b,A),L(b,C),L(b,S);for(let e=0;e<le.length;e+=1)le[e].m(S,null);L(t,M),L(t,N),L(N,I),L(I,R),L(I,O),L(I,K),L(N,W),L(N,Y),L(N,X),L(N,G);for(let e=0;e<se.length;e+=1)se[e].m(G,null);J||(Z=[H(l,'click',e[23]),H(w,'click',e[27]),H(I,'click',e[27])],J=!0)},p(e,a){if(e[0]?ee?ee.p(e,a):(ee=Fe(e),ee.c(),ee.m(i,n)):ee&&(ee.d(1),ee=null),128&a[0]&&U(v,e[7]),e[6]&&!e[0]?te?te.p(e,a):(te=je(e),te.c(),te.m(u,null)):te&&(te.d(1),te=null),1&a[0]&&Q(l,'item-mobile',e[0]),e[9]?ie&&(ie.d(1),ie=null):ie?ie.p(e,a):(ie=Re(e),ie.c(),ie.m(o,h)),e[0]?ne?ne.p(e,a):(ne=He(e),ne.c(),ne.m(o,null)):ne&&(ne.d(1),ne=null),1&a[0]&&Q(o,'items-mobile',e[0]),1&a[0]&&Q(i,'menu-desktop',!e[0]),1&a[0]&&Q(i,'menu-mobile',e[0]),8&a[0]&&Q(i,'hidden',!e[3]),1&a[0]&&Q(w,'item-mobile',e[0]),16777219&a[0]|1&a[1]){let t;for(oe=e[1],t=0;t<oe.length;t+=1){const i=Ie(e,oe,t);le[t]?le[t].p(i,a):(le[t]=Ue(i),le[t].c(),le[t].m(S,null))}for(;t<le.length;t+=1)le[t].d(1);le.length=oe.length}if(256&a[0]&&D(S,'style',e[8]),1&a[0]&&Q(S,'items-mobile',e[0]),1&a[0]&&Q(b,'menu-desktop',!e[0]),1&a[0]&&Q(b,'menu-mobile',e[0]),16&a[0]&&Q(b,'hidden',!e[4]),1&a[0]&&Q(I,'item-mobile',e[0]),33556481&a[0]){let t;for(ae=e[11],t=0;t<ae.length;t+=1){const i=Be(e,ae,t);se[t]?se[t].p(i,a):(se[t]=Qe(i),se[t].c(),se[t].m(G,null))}for(;t<se.length;t+=1)se[t].d(1);se.length=ae.length}1&a[0]&&Q(G,'items-mobile',e[0]),1&a[0]&&Q(N,'menu-desktop',!e[0]),1&a[0]&&Q(N,'menu-mobile',e[0]),32&a[0]&&Q(N,'hidden',!e[5]),4&a[0]&&Q(t,'hidden',!e[2]),1&a[0]&&Q(t,'container-mobile',e[0])},i:f,o:f,d(e){e&&T(t),ee&&ee.d(),te&&te.d(),ie&&ie.d(),ne&&ne.d(),E(le,e),E(se,e),J=!1,$(Z)}}}function We(t,i,n){let o,l,a,s,r,c,d,u,v,p,{supportLink:m}=i;const h=Ae(),g=h.state.currentQuality$;C(t,g,(e=>n(36,c=e)));const f=h.state.availableQualities$;C(t,f,(e=>n(1,r=e)));const b=h.state.isAutoQualityEnabled$;C(t,b,(e=>n(35,s=e)));const w=h.state.currentPlaybackRate$;C(t,w,(e=>n(10,v=e)));const $=h.state.availablePlaybackRates$;C(t,$,(e=>n(11,p=e)));const y=h.ui.settingsMenuVisible;C(t,y,(e=>n(2,d=e)));const x=h.ui.isMobile;C(t,x,(e=>n(0,a=e)));const k=h.ui.isFullscreen;C(t,k,(e=>n(34,l=e)));const V=h.state.isLive$;C(t,V,(e=>n(9,u=e)));const P=h.ui.playerSize;C(t,P,(e=>n(33,o=e)));const z=h.ui.debugPanelVisible;let A,S,M,L=!0,N=!1,q=!1;function T(){y.set(!1)}function E(e){h.actions.internal.setQuality(e),T()}function B(e){h.actions.internal.setPlaybackRate(e),T()}function I(t){switch(t){case e.Q_720P:return'data:image/svg+xml,%3csvg width=\'15\' height=\'5\' fill=\'none\' xmlns=\'http://www.w3.org/2000/svg\'%3e%3cpath d=\'M5.516 5h1.107C8.103 5 9 4.065 9 2.5S8.103 0 6.623 0H5.516C5.191 0 5 .2 5 .537V4.46c0 .342.191.54.516.54zm.516-.854V.852H6.5C7.41.852 8 1.468 8 2.5c0 1.066-.577 1.646-1.5 1.646h-.468zM.516 5c.325 0 .516-.198.516-.536V2.922h1.936v1.542c0 .338.191.536.516.536S4 4.802 4 4.464V.54C4 .198 3.809 0 3.484 0s-.516.198-.516.54v1.531H1.032V.54C1.032.198.841 0 .516 0S0 .198 0 .54v3.989C0 4.867.191 5 .516 5z\' fill=\'%2370C1FF\'/%3e%3c/svg%3e';case e.Q_1080P:return'data:image/svg+xml,%3csvg width=\'15\' height=\'5\' fill=\'none\' xmlns=\'http://www.w3.org/2000/svg\'%3e%3cpath d=\'M9.516 5h1.107C12.103 5 13 4.065 13 2.5S12.103 0 10.623 0H9.516C9.191 0 9 .2 9 .537V4.46c0 .342.191.54.516.54zm.516-.854V.852h.468c.91 0 1.5.616 1.5 1.648 0 1.066-.577 1.646-1.5 1.646h-.468zM4.516 5c.325 0 .516-.198.516-.536V2.922h1.936v1.542c0 .338.191.536.516.536S8 4.802 8 4.464V.54C8 .198 7.809 0 7.484 0s-.516.198-.516.54v1.531H5.032V.54c0-.342-.191-.54-.516-.54S4 .198 4 .54v3.989c0 .338.191.471.516.471zm-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 5z\' fill=\'%2370C1FF\'/%3e%3c/svg%3e';case e.Q_1440P:return'data:image/svg+xml,%3csvg width=\'15\' height=\'6\' fill=\'none\' xmlns=\'http://www.w3.org/2000/svg\'%3e%3cpath d=\'M11.516 5h1.107C14.103 5 15 4.065 15 2.5S14.103 0 12.623 0h-1.107C11.191 0 11 .2 11 .537V4.46c0 .342.191.54.516.54zm.516-.854V.852h.468c.91 0 1.5.616 1.5 1.648 0 1.066-.577 1.646-1.5 1.646h-.468zM6.516 5c.325 0 .516-.198.516-.536V2.922h1.936v1.542c0 .338.191.536.516.536S10 4.802 10 4.464V.54C10 .198 9.809 0 9.484 0s-.516.198-.516.54v1.531H7.032V.54c0-.342-.191-.54-.516-.54S6 .198 6 .54v3.989c0 .338.191.471.516.471z\' fill=\'%2370C1FF\'/%3e%3cpath fill-rule=\'evenodd\' clip-rule=\'evenodd\' d=\'M3.338 4.909A3.9 3.9 0 0 1 2.5 5C1.037 5 0 4.135 0 2.553 0 .983 1.037 0 2.5 0 3.96 0 5 .984 5 2.553c0 .863-.274 1.46-.778 1.88l.194.29a.5.5 0 0 1-.832.554l-.246-.368zm-.52-.78-.234-.352a.5.5 0 1 1 .832-.554l.245.367c.184-.26.286-.615.286-1.037C3.947 1.517 3.307.9 2.5.9c-.81 0-1.447.617-1.447 1.653 0 1.032.637 1.596 1.447 1.596.08 0 .208-.007.318-.02z\' fill=\'%2370C1FF\'/%3e%3c/svg%3e';case e.Q_2160P:return'data:image/svg+xml,%3csvg width=\'15\' height=\'6\' fill=\'none\' xmlns=\'http://www.w3.org/2000/svg\'%3e%3cpath d=\'M5.517 5c.325 0 .516-.198.516-.536v-.97l.492-.517 1.46 1.74c.16.205.304.283.516.283A.491.491 0 0 0 9 4.501c0-.14-.068-.287-.222-.478l-1.47-1.73L8.818.868C8.949.731 9 .618 9 .475A.474.474 0 0 0 8.515 0c-.171 0-.301.065-.445.222L6.064 2.25h-.03V.54c0-.342-.192-.54-.517-.54s-.516.198-.516.54v3.924c0 .338.191.536.516.536z\' fill=\'%2370C1FF\'/%3e%3cpath fill-rule=\'evenodd\' clip-rule=\'evenodd\' d=\'m2.551 1.052-1.51 2.052h1.51V1.052zM3.5 3.104V.832c0-.81-1.089-1.14-1.556-.48L.139 2.821a.75.75 0 0 0 .612 1.183h1.8v.55c0 .248.25.45.499.45a.45.45 0 0 0 .45-.45v-.55h.052a.45.45 0 0 0 0-.9H3.5z\' fill=\'%2370C1FF\'/%3e%3c/svg%3e';case e.Q_4320P:return'data:image/svg+xml,%3csvg width=\'15\' height=\'5\' fill=\'none\' xmlns=\'http://www.w3.org/2000/svg\'%3e%3cpath d=\'M5.513 5c.323 0 .513-.198.513-.537v-.97l.49-.516L7.99 4.715c.16.205.302.284.513.284A.49.49 0 0 0 9 4.5c0-.14-.068-.287-.22-.478L7.293 2.293 8.82.868C8.949.731 9 .618 9 .475A.473.473 0 0 0 8.517 0c-.17 0-.299.065-.441.222L6.056 2.25h-.03V.54c0-.342-.19-.54-.513-.54S5 .198 5 .54v3.923c0 .339.19.537.513.537z\' fill=\'%2370C1FF\'/%3e%3cpath fill-rule=\'evenodd\' clip-rule=\'evenodd\' d=\'M2 0c-.353 0-.671.057-.952.173a1.492 1.492 0 0 0-.654.484c-.154.208-.23.445-.23.71 0 .423.208.756.613.995a1.46 1.46 0 0 0-.547.44c-.154.203-.23.441-.23.71 0 .288.084.548.252.778l.001.001c.173.224.412.398.712.523C1.267 4.939 1.612 5 2 5c.388 0 .733-.061 1.035-.186.3-.125.537-.299.705-.524.174-.23.26-.49.26-.777 0-.27-.076-.508-.23-.711a1.448 1.448 0 0 0-.552-.44c.409-.235.618-.569.618-.994a1.14 1.14 0 0 0-.238-.711 1.436 1.436 0 0 0-.653-.484A2.427 2.427 0 0 0 2 0zm-.573.964C1.563.86 1.75.804 2 .804c.25 0 .434.055.564.16h.001a.512.512 0 0 1 .204.43.52.52 0 0 1-.204.437c-.13.105-.315.161-.565.161-.25 0-.437-.056-.573-.161a.519.519 0 0 1-.203-.437c0-.185.07-.326.203-.43zm-.345 2.522c0-.217.08-.381.233-.503.16-.122.385-.188.685-.188.3 0 .522.066.677.188.16.122.24.287.24.503a.628.628 0 0 1-.24.523c-.155.122-.377.188-.677.188-.3 0-.524-.065-.684-.187a.637.637 0 0 1-.234-.524z\' fill=\'%2370C1FF\'/%3e%3c/svg%3e'}}return t.$$set=e=>{'supportLink'in e&&n(32,m=e.supportLink)},t.$$.update=()=>{4&t.$$.dirty[0]&&d&&(n(3,L=!0),n(4,N=!1),n(5,q=!1)),32&t.$$.dirty[1]&&n(6,A=I(c)),2&t.$$.dirty[0]|48&t.$$.dirty[1]&&n(7,S=function(t,i,n){if(!t)return'...';const o=i.find((e=>e.value===t)),l=o?o.displayValue:t;return n?t===e.INVARIANT?'Авто':`Авто ${l}`:l}(c,r,s)),1&t.$$.dirty[0]|12&t.$$.dirty[1]&&n(8,M=a&&l?`max-height: ${Math.round(.6*o.height)}px`:'')},[a,r,d,L,N,q,A,S,M,u,v,p,g,f,b,w,$,y,x,k,V,P,T,function(){n(3,L=!1),n(4,N=!0)},E,B,function(){n(3,L=!1),n(5,q=!0)},function(){n(3,L=!0),n(4,N=!1),n(5,q=!1)},function(){window.open(m,'_blank'),T(),h.actions.internal.pause()},function(){Te(h.actions.internal.getDebugTextData()),T()},function(){z.set(!0),T()},I,m,o,l,s,c,e=>E(e.value),e=>B(e.value)]}class Ye extends $e{constructor(e){super(),we(this,e,We,Ke,x,{supportLink:32},Ee,[-1,-1])}}function Xe(e){N(e,'v-1qf7s4g','.settingsButton-icon.v-1qf7s4g{display:block;width:40px;height:24px}.settingsButton-icon.mobile.v-1qf7s4g{width:auto}')}function Ge(e){let t,i,n,o,l,a,s;return{c(){t=B('div'),i=B('div'),n=B('img'),P(n.src,o=e[7](e[2],e[1]))||D(n,'src',o),D(n,'alt',''),D(i,'class','settingsButton-icon v-1qf7s4g'),Q(i,'mobile',e[1]),D(t,'class',l=M(e[0])+' v-1qf7s4g'),D(t,'aria-label','Открыть настройки видеоплеера'),D(t,'tabindex','-1'),D(t,'role','button')},m(o,l){q(o,t,l),L(t,i),L(i,n),a||(s=H(t,'click',e[6]),a=!0)},p(e,[a]){6&a&&!P(n.src,o=e[7](e[2],e[1]))&&D(n,'src',o),2&a&&Q(i,'mobile',e[1]),1&a&&l!==(l=M(e[0])+' v-1qf7s4g')&&D(t,'class',l)},i:f,o:f,d(e){e&&T(t),a=!1,s()}}}function Je(t,i,n){let o,l,a,{className:s=''}=i;const r=Ae(),c=r.state.currentQuality$;C(t,c,(e=>n(2,a=e)));const d=r.ui.settingsMenuVisible;C(t,d,(e=>n(8,o=e)));const u=r.ui.isMobile;return C(t,u,(e=>n(1,l=e))),t.$$set=e=>{'className'in e&&n(0,s=e.className)},[s,l,a,c,d,u,function(){d.set(!o)},function(t,i){if(i)return Le;switch(t){case e.Q_720P:return'data:image/svg+xml,%3csvg width=\'34\' height=\'24\' fill=\'none\' xmlns=\'http://www.w3.org/2000/svg\'%3e%3cpath fill-rule=\'evenodd\' clip-rule=\'evenodd\' d=\'M13.933 4.875a.6.6 0 0 0-.07-.658c-.327-.413-.45-.833-.574-1.253l-.039-.13C13 2 12.833 2 12.417 2h-.91c-.371.003-.6.052-.757.833-.148.738-.36 1.476-1.566 2.186a.466.466 0 0 1-.12.05c-1.27.324-1.905-.023-2.542-.37l-.12-.065c-.766-.412-.884-.294-1.178 0l-.643.644c-.26.264-.389.461.053 1.124.418.626.789 1.299.438 2.654a.466.466 0 0 1-.05.12c-.668 1.126-1.362 1.33-2.058 1.535l-.13.039C2 11 2 11.167 2 11.583v.91c.003.371.052.6.833.757.738.148 1.476.36 2.186 1.566a.465.465 0 0 1 .05.12c.324 1.27-.023 1.905-.37 2.542l-.065.12c-.412.766-.294.884 0 1.178l.644.643c.264.26.461.389 1.124-.053.626-.418 1.299-.789 2.654-.438.041.01.083.028.12.05 1.126.668 1.33 1.362 1.535 2.058l.039.13c.25.834.417.834.833.834h.91c.371-.003.6-.052.757-.833.148-.738.36-1.476 1.566-2.186a.467.467 0 0 1 .12-.05c1.27-.324 1.905.023 2.542.37l.12.065c.766.412.884.294 1.178 0l.643-.644c.26-.264.389-.461-.053-1.124-.26-.39-.503-.799-.563-1.38a.598.598 0 0 0-.413-.519 7.464 7.464 0 0 1-1.918-.871.58.58 0 0 0-.758.134 4.75 4.75 0 1 1-3.163-7.68.581.581 0 0 0 .633-.44 7.448 7.448 0 0 1 .749-1.967z\' fill=\'white\'/%3e%3crect x=\'15\' y=\'3\' width=\'17\' height=\'11\' rx=\'5.5\' fill=\'%23689FF8\'/%3e%3cpath d=\'M24.516 11h1.107C27.103 11 28 10.066 28 8.5S27.103 6 25.623 6h-1.107c-.325 0-.516.2-.516.537v3.923c0 .342.191.54.516.54zm.516-.854V6.852h.468c.91 0 1.5.616 1.5 1.648 0 1.066-.577 1.646-1.5 1.646h-.468zM19.516 11c.325 0 .516-.198.516-.536V8.922h1.936v1.542c0 .338.191.537.516.537s.516-.199.516-.537V6.54c0-.342-.191-.54-.516-.54s-.516.198-.516.54v1.531h-1.936V6.54c0-.342-.191-.54-.516-.54S19 6.198 19 6.54v3.989c0 .338.191.472.516.472z\' fill=\'white\'/%3e%3c/svg%3e';case e.Q_1080P:return'data:image/svg+xml,%3csvg width=\'38\' height=\'24\' fill=\'none\' xmlns=\'http://www.w3.org/2000/svg\'%3e%3cpath fill-rule=\'evenodd\' clip-rule=\'evenodd\' d=\'M13.933 4.875a.6.6 0 0 0-.07-.658c-.327-.413-.45-.833-.574-1.253l-.039-.13C13 2 12.833 2 12.417 2h-.91c-.371.003-.6.052-.757.833-.148.738-.36 1.476-1.566 2.186a.466.466 0 0 1-.12.05c-1.27.324-1.905-.023-2.542-.37l-.12-.065c-.766-.412-.884-.294-1.178 0l-.643.644c-.26.264-.389.461.053 1.124.418.626.789 1.299.438 2.654a.466.466 0 0 1-.05.12c-.668 1.126-1.362 1.33-2.058 1.535l-.13.039C2 11 2 11.167 2 11.583v.91c.003.371.052.6.833.757.738.148 1.476.36 2.186 1.566a.465.465 0 0 1 .05.12c.324 1.27-.023 1.905-.37 2.542l-.065.12c-.412.766-.294.884 0 1.178l.644.643c.264.26.461.389 1.124-.053.626-.418 1.299-.789 2.654-.438.041.01.083.028.12.05 1.126.668 1.33 1.362 1.535 2.058l.039.13c.25.834.417.834.833.834h.91c.371-.003.6-.052.757-.833.148-.738.36-1.476 1.566-2.186a.467.467 0 0 1 .12-.05c1.27-.324 1.905.023 2.542.37l.12.065c.766.412.884.294 1.178 0l.643-.644c.26-.264.389-.461-.053-1.124-.26-.39-.503-.799-.563-1.38a.598.598 0 0 0-.413-.519 7.464 7.464 0 0 1-1.918-.871.58.58 0 0 0-.758.134 4.75 4.75 0 1 1-3.163-7.68.581.581 0 0 0 .633-.44 7.448 7.448 0 0 1 .749-1.967z\' fill=\'white\'/%3e%3crect x=\'15\' y=\'3\' width=\'21\' height=\'11\' rx=\'5.5\' fill=\'%23689FF8\'/%3e%3cpath d=\'M28.516 11h1.107C31.103 11 32 10.066 32 8.5S31.103 6 29.623 6h-1.107c-.325 0-.516.2-.516.537v3.923c0 .342.191.54.516.54zm.516-.854V6.852h.468c.91 0 1.5.616 1.5 1.648 0 1.066-.577 1.646-1.5 1.646h-.468zM23.516 11c.325 0 .516-.198.516-.536V8.922h1.936v1.542c0 .338.191.537.516.537s.516-.199.516-.537V6.54c0-.342-.191-.54-.516-.54s-.516.198-.516.54v1.531h-1.936V6.54c0-.342-.191-.54-.516-.54S23 6.198 23 6.54v3.989c0 .338.191.472.516.472zm-4 0c.325 0 .516-.198.516-.537V9h1.332c.27 0 .441-.154.441-.41 0-.253-.174-.407-.44-.407h-1.333V6.854h1.5c.28 0 .468-.16.468-.427 0-.266-.185-.427-.468-.427h-2.016c-.325 0-.516.198-.516.537v3.926c0 .339.191.537.516.537z\' fill=\'white\'/%3e%3c/svg%3e';case e.Q_1440P:return'data:image/svg+xml,%3csvg width=\'40\' height=\'24\' fill=\'none\' xmlns=\'http://www.w3.org/2000/svg\'%3e%3cpath fill-rule=\'evenodd\' clip-rule=\'evenodd\' d=\'M13.933 4.875a.6.6 0 0 0-.07-.658c-.327-.413-.45-.833-.574-1.253l-.039-.13C13 2 12.833 2 12.417 2h-.91c-.371.003-.6.052-.757.833-.148.738-.36 1.476-1.566 2.186a.466.466 0 0 1-.12.05c-1.27.324-1.905-.023-2.542-.37l-.12-.065c-.766-.412-.884-.294-1.178 0l-.643.644c-.26.264-.389.461.053 1.124.418.626.789 1.299.438 2.654a.466.466 0 0 1-.05.12c-.668 1.126-1.362 1.33-2.058 1.535l-.13.039C2 11 2 11.167 2 11.583v.91c.003.371.052.6.833.757.738.148 1.476.36 2.186 1.566a.465.465 0 0 1 .05.12c.324 1.27-.023 1.905-.37 2.542l-.065.12c-.412.766-.294.884 0 1.178l.644.643c.264.26.461.389 1.124-.053.626-.418 1.299-.789 2.654-.438.041.01.083.028.12.05 1.126.668 1.33 1.362 1.535 2.058l.039.13c.25.834.417.834.833.834h.91c.371-.003.6-.052.757-.833.148-.738.36-1.476 1.566-2.186a.467.467 0 0 1 .12-.05c1.27-.324 1.905.023 2.542.37l.12.065c.766.412.884.294 1.178 0l.643-.644c.26-.264.389-.461-.053-1.124-.26-.39-.503-.799-.563-1.38a.598.598 0 0 0-.413-.519 7.464 7.464 0 0 1-1.918-.871.58.58 0 0 0-.758.134 4.75 4.75 0 1 1-3.163-7.68.581.581 0 0 0 .633-.44 7.448 7.448 0 0 1 .749-1.967z\' fill=\'white\'/%3e%3cpath d=\'M15 8.5A5.5 5.5 0 0 1 20.5 3h12a5.5 5.5 0 1 1 0 11h-12A5.5 5.5 0 0 1 15 8.5z\' fill=\'%23689FF8\'/%3e%3cpath d=\'M30.516 11h1.107C33.103 11 34 10.066 34 8.5S33.103 6 31.623 6h-1.107c-.325 0-.516.2-.516.537v3.923c0 .342.191.54.516.54zm.516-.854V6.852h.468c.91 0 1.5.616 1.5 1.648 0 1.066-.577 1.646-1.5 1.646h-.468zM25.516 11c.325 0 .516-.198.516-.536V8.922h1.936v1.542c0 .338.191.537.516.537s.516-.199.516-.537V6.54c0-.342-.191-.54-.516-.54s-.516.198-.516.54v1.531h-1.936V6.54c0-.342-.191-.54-.516-.54S25 6.198 25 6.54v3.989c0 .338.191.472.516.472z\' fill=\'white\'/%3e%3cpath fill-rule=\'evenodd\' clip-rule=\'evenodd\' d=\'M22.338 10.909c-.254.06-.58.091-.838.091-1.463 0-2.5-.865-2.5-2.447C19 6.983 20.037 6 21.5 6c1.46 0 2.5.984 2.5 2.553 0 .863-.274 1.46-.777 1.88l.193.29a.5.5 0 1 1-.832.554l-.246-.368zm-.52-.78-.234-.352a.5.5 0 0 1 .832-.554l.245.367c.184-.26.286-.615.286-1.037 0-1.036-.64-1.653-1.447-1.653-.81 0-1.447.617-1.447 1.653 0 1.032.637 1.596 1.447 1.596.08 0 .208-.007.318-.02z\' fill=\'white\'/%3e%3c/svg%3e';case e.Q_2160P:return'data:image/svg+xml,%3csvg width=\'34\' height=\'24\' fill=\'none\' xmlns=\'http://www.w3.org/2000/svg\'%3e%3cpath fill-rule=\'evenodd\' clip-rule=\'evenodd\' d=\'M13.933 4.875a.6.6 0 0 0-.07-.658c-.327-.413-.45-.833-.574-1.253l-.039-.13C13 2 12.833 2 12.417 2h-.91c-.371.003-.6.052-.757.833-.148.738-.36 1.476-1.566 2.186a.466.466 0 0 1-.12.05c-1.27.324-1.905-.023-2.542-.37l-.12-.065c-.766-.412-.884-.294-1.178 0l-.643.644c-.26.264-.389.461.053 1.124.418.626.789 1.299.438 2.654a.466.466 0 0 1-.05.12c-.668 1.126-1.362 1.33-2.058 1.535l-.13.039C2 11 2 11.167 2 11.583v.91c.003.371.052.6.833.757.738.148 1.476.36 2.186 1.566a.465.465 0 0 1 .05.12c.324 1.27-.023 1.905-.37 2.542l-.065.12c-.412.766-.294.884 0 1.178l.644.643c.264.26.461.389 1.124-.053.626-.418 1.299-.789 2.654-.438.041.01.083.028.12.05 1.126.668 1.33 1.362 1.535 2.058l.039.13c.25.834.417.834.833.834h.91c.371-.003.6-.052.757-.833.148-.738.36-1.476 1.566-2.186a.467.467 0 0 1 .12-.05c1.27-.324 1.905.023 2.542.37l.12.065c.766.412.884.294 1.178 0l.643-.644c.26-.264.389-.461-.053-1.124-.26-.39-.503-.799-.563-1.38a.598.598 0 0 0-.413-.519 7.464 7.464 0 0 1-1.918-.871.58.58 0 0 0-.758.134 4.75 4.75 0 1 1-3.163-7.68.581.581 0 0 0 .633-.44 7.448 7.448 0 0 1 .749-1.967z\' fill=\'white\'/%3e%3crect x=\'15\' y=\'3\' width=\'17\' height=\'11\' rx=\'5.5\' fill=\'%23689FF8\'/%3e%3cpath d=\'M24.517 11c.325 0 .516-.198.516-.536v-.97l.492-.517 1.46 1.74c.16.205.304.284.516.284a.491.491 0 0 0 .499-.5c0-.14-.068-.287-.222-.478l-1.47-1.73 1.51-1.425c.13-.137.182-.25.182-.393A.474.474 0 0 0 27.515 6c-.171 0-.301.065-.445.222L25.064 8.25h-.03V6.54c0-.342-.192-.54-.517-.54s-.516.198-.516.54v3.924c0 .338.191.537.516.537z\' fill=\'white\'/%3e%3cpath fill-rule=\'evenodd\' clip-rule=\'evenodd\' d=\'m21.551 7.052-1.51 2.052h1.51V7.052zm.949 2.052V6.832c0-.81-1.089-1.14-1.556-.48l-1.805 2.469a.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 1 0 0-.9H22.5z\' fill=\'white\'/%3e%3c/svg%3e';case e.Q_4320P:return'data:image/svg+xml,%3csvg width=\'34\' height=\'24\' fill=\'none\' xmlns=\'http://www.w3.org/2000/svg\'%3e%3cpath fill-rule=\'evenodd\' clip-rule=\'evenodd\' d=\'M13.933 4.875a.6.6 0 0 0-.07-.658c-.327-.413-.45-.833-.574-1.253l-.039-.13C13 2 12.833 2 12.417 2h-.91c-.371.003-.6.052-.757.833-.148.738-.36 1.476-1.566 2.186a.466.466 0 0 1-.12.05c-1.27.324-1.905-.023-2.542-.37l-.12-.065c-.766-.412-.884-.294-1.178 0l-.643.644c-.26.264-.389.461.053 1.124.418.626.789 1.299.438 2.654a.466.466 0 0 1-.05.12c-.668 1.126-1.362 1.33-2.058 1.535l-.13.039C2 11 2 11.167 2 11.583v.91c.003.371.052.6.833.757.738.148 1.476.36 2.186 1.566a.465.465 0 0 1 .05.12c.324 1.27-.023 1.905-.37 2.542l-.065.12c-.412.766-.294.884 0 1.178l.644.643c.264.26.461.389 1.124-.053.626-.418 1.299-.789 2.654-.438.041.01.083.028.12.05 1.126.668 1.33 1.362 1.535 2.058l.039.13c.25.834.417.834.833.834h.91c.371-.003.6-.052.757-.833.148-.738.36-1.476 1.566-2.186a.467.467 0 0 1 .12-.05c1.27-.324 1.905.023 2.542.37l.12.065c.766.412.884.294 1.178 0l.643-.644c.26-.264.389-.461-.053-1.124-.26-.39-.503-.799-.563-1.38a.598.598 0 0 0-.413-.519 7.464 7.464 0 0 1-1.918-.871.58.58 0 0 0-.758.134 4.75 4.75 0 1 1-3.163-7.68.581.581 0 0 0 .633-.44 7.448 7.448 0 0 1 .749-1.967z\' fill=\'white\'/%3e%3crect x=\'15\' y=\'3\' width=\'17\' height=\'11\' rx=\'5.5\' fill=\'%23689FF8\'/%3e%3cpath d=\'M24.513 11c.323 0 .513-.198.513-.537v-.97l.49-.516 1.475 1.738c.16.205.302.284.513.284A.49.49 0 0 0 28 10.5c0-.14-.068-.287-.22-.478l-1.486-1.729 1.526-1.425c.129-.137.18-.25.18-.393A.473.473 0 0 0 27.517 6c-.17 0-.299.065-.441.222l-2.02 2.027h-.03V6.54c0-.342-.19-.54-.513-.54S24 6.198 24 6.54v3.923c0 .339.19.537.513.537z\' fill=\'white\'/%3e%3cpath fill-rule=\'evenodd\' clip-rule=\'evenodd\' d=\'M21 6c-.353 0-.671.057-.952.173a1.493 1.493 0 0 0-.654.484c-.154.208-.23.445-.23.71 0 .423.208.756.613.995a1.46 1.46 0 0 0-.547.44c-.154.203-.23.441-.23.71 0 .288.084.548.252.777l.001.002c.173.224.412.398.712.523.302.125.647.186 1.035.186.388 0 .733-.061 1.035-.186.3-.125.537-.299.705-.524.174-.23.26-.49.26-.777 0-.27-.076-.508-.23-.711a1.448 1.448 0 0 0-.552-.44c.409-.235.618-.569.618-.994a1.14 1.14 0 0 0-.238-.711 1.436 1.436 0 0 0-.653-.484A2.428 2.428 0 0 0 21 6zm-.573.964c.136-.105.323-.16.573-.16.25 0 .434.055.564.16h.001a.512.512 0 0 1 .203.43c0 .19-.07.333-.203.437-.13.105-.315.161-.565.161-.25 0-.437-.056-.573-.161a.519.519 0 0 1-.203-.437c0-.185.07-.326.203-.43zm-.345 2.522c0-.217.08-.381.233-.503.16-.122.385-.188.685-.188.3 0 .522.066.677.188.16.122.24.287.24.503a.628.628 0 0 1-.24.523c-.155.122-.377.188-.677.188-.3 0-.524-.065-.684-.188a.636.636 0 0 1-.234-.523z\' fill=\'white\'/%3e%3c/svg%3e';default:return Le}}]}class Ze extends $e{constructor(e){super(),we(this,e,Je,Ge,x,{className:0},Xe)}}const et=e=>{if(!isFinite(e))return'00:00';let t=Math.round(e);const i=Math.floor(t/3600);t-=3600*i;const n=Math.floor(t/60);t-=60*n;return(i>0?[i,n,t]:[n,t]).map((e=>e>9?String(e):`0${e}`)).join(':')};function tt(e){N(e,'v-1bjfp5n','.time.v-1bjfp5n{display:flex;align-items:center;font-weight:500;font-variant-numeric:tabular-nums}.current.v-1bjfp5n{position:relative}.duration.v-1bjfp5n{opacity:0.7}.duration.v-1bjfp5n:before{content:\' / \';white-space:pre}')}function it(e){let t,i;return{c(){t=B('span'),i=F(e[2]),D(t,'class','duration v-1bjfp5n')},m(e,n){q(e,t,n),L(t,i)},p(e,t){4&t&&U(i,e[2])},d(e){e&&T(t)}}}function nt(e){let t,i,n,o,l,a=e[0]&&it(e);return{c(){t=B('div'),i=B('span'),n=F(e[3]),o=j(),a&&a.c(),D(i,'class','current v-1bjfp5n'),D(t,'class',l='time '+e[1]+' v-1bjfp5n')},m(e,l){q(e,t,l),L(t,i),L(i,n),L(t,o),a&&a.m(t,null)},p(e,[i]){8&i&&U(n,e[3]),e[0]?a?a.p(e,i):(a=it(e),a.c(),a.m(t,null)):a&&(a.d(1),a=null),2&i&&l!==(l='time '+e[1]+' v-1bjfp5n')&&D(t,'class',l)},i:f,o:f,d(e){e&&T(t),a&&a.d()}}}function ot(e,t,i){let n,o,{duration:l}=t,{position:a}=t,{showDuration:s=!0}=t,{className:r=''}=t;return e.$$set=e=>{'duration'in e&&i(4,l=e.duration),'position'in e&&i(5,a=e.position),'showDuration'in e&&i(0,s=e.showDuration),'className'in e&&i(1,r=e.className)},e.$$.update=()=>{16&e.$$.dirty&&i(2,n=et(l)),32&e.$$.dirty&&i(3,o=et(a))},[s,r,n,o,l,a]}class lt extends $e{constructor(e){super(),we(this,e,ot,nt,x,{duration:4,position:5,showDuration:0,className:1},tt)}}function at(e){N(e,'v-1w56qn2','.slider.v-1w56qn2.v-1w56qn2{position:relative;height:var(--videoplayer-slider-height);border-radius:var(--videoplayer-slider-radius);background:var(--videoplayer-slider-bg);cursor:pointer;transition:visibility 0.2s, opacity 0.2s;will-change:opacity, transform;width:100%;touch-action:none;-webkit-tap-highlight-color:transparent}.no-handle.v-1w56qn2.v-1w56qn2{cursor:default}.slider.v-1w56qn2.v-1w56qn2:before{content:\'\';position:absolute;left:0;right:0;top:calc(-1 * (var(--videoplayer-controls-height) - var(--videoplayer-slider-height)) / 2);height:var(--videoplayer-controls-height)}.bars.v-1w56qn2.v-1w56qn2{position:absolute;width:100%;height:100%;border-radius:var(--videoplayer-slider-radius);overflow:hidden}.loaded.v-1w56qn2.v-1w56qn2{position:absolute;left:-100%;width:100%;height:100%;border-radius:var(--videoplayer-slider-radius);background:var(--videoplayer-slider-loaded-bg);transition:transform 0.2s}.filled.v-1w56qn2.v-1w56qn2{position:absolute;left:-100%;width:100%;height:100%;border-radius:var(--videoplayer-slider-radius);background-color:var(--videoplayer-slider-filled-bg)}.slider.square.v-1w56qn2.v-1w56qn2,.slider.square.v-1w56qn2>.bars.v-1w56qn2,.loaded.v-1w56qn2.v-1w56qn2,.filled.v-1w56qn2.v-1w56qn2{border-radius:unset}.filled.active-live.v-1w56qn2.v-1w56qn2{background-color:var(--videoplayer-slider-filled-active-live-bg)}.filled.ads.v-1w56qn2.v-1w56qn2{background-color:var(--videoplayer-slider-filled-ads)}.handleWrap.v-1w56qn2.v-1w56qn2{position:absolute;left:-100%;width:100%}.handle.v-1w56qn2.v-1w56qn2{position:absolute;width:var(--videoplayer-slider-handle-size);height:var(--videoplayer-slider-handle-size);right:calc(-1 * var(--videoplayer-slider-handle-size) / 2);top:calc((var(--videoplayer-slider-height) - var(--videoplayer-slider-handle-size)) / 2);border-radius:50%;background-color:var(--videoplayer-slider-filled-bg);visibility:hidden;opacity:0;transform:scale(0);transition:opacity 0.2s, transform 0.2s, visibility 0.2s;will-change:opacity, transform}.handle.active-live.v-1w56qn2.v-1w56qn2{background-color:var(--videoplayer-slider-filled-active-live-bg)}.slider.v-1w56qn2:hover .handle.v-1w56qn2,.slider-dragging.v-1w56qn2 .handle.v-1w56qn2{visibility:visible;opacity:1;transform:scale(1)}.slider-dragging.v-1w56qn2 .handle.v-1w56qn2{transform:scale(1.3)}.slider-vertical.v-1w56qn2.v-1w56qn2{position:absolute;left:-26px;top:-18px;transform-origin:0 0;transform:rotate(-90deg)}.hidden.v-1w56qn2.v-1w56qn2{visibility:hidden;opacity:0}')}function st(e){let t,i,n,o,l,a,s,r,c,d,u,v,p,m;return{c(){t=B('div'),i=B('div'),n=B('div'),l=j(),a=B('div'),r=j(),c=B('div'),d=B('div'),D(n,'class','loaded v-1w56qn2'),D(n,'style',o=`transform: translateX(${100*e[6]}%);`),D(a,'class','filled v-1w56qn2'),D(a,'style',s=`transform: translateX(${100*e[7]}%);`),Q(a,'active-live',e[3]),Q(a,'ads',e[4]),D(i,'class','bars v-1w56qn2'),D(d,'class','handle v-1w56qn2'),Q(d,'active-live',e[3]),D(c,'class','handleWrap v-1w56qn2'),D(c,'style',u=`transform: translateX(${100*e[8]}%);`),Q(c,'hidden',e[4]),D(t,'class',v='slider '+e[0]+' v-1w56qn2'),D(t,'aria-label',e[9]),D(t,'aria-valuemin',e[10]),D(t,'aria-valuemax',e[11]),D(t,'aria-valuenow',e[12]),D(t,'aria-valuetext',e[13]),D(t,'role','slider'),D(t,'tabindex','0'),Q(t,'slider-dragging',e[15]),Q(t,'hidden',e[1]),Q(t,'slider-vertical',e[2]),Q(t,'no-handle',e[4]),Q(t,'square',e[5])},m(o,s){q(o,t,s),L(t,i),L(i,n),L(i,l),L(i,a),L(t,r),L(t,c),L(c,d),e[27](t),p||(m=[H(t,'pointerdown',_(e[16])),H(t,'pointermove',_(e[17])),H(t,'pointerup',_(e[18])),H(t,'pointerenter',_(e[19])),H(t,'pointerleave',_(e[20]))],p=!0)},p(e,[i]){64&i&&o!==(o=`transform: translateX(${100*e[6]}%);`)&&D(n,'style',o),128&i&&s!==(s=`transform: translateX(${100*e[7]}%);`)&&D(a,'style',s),8&i&&Q(a,'active-live',e[3]),16&i&&Q(a,'ads',e[4]),8&i&&Q(d,'active-live',e[3]),256&i&&u!==(u=`transform: translateX(${100*e[8]}%);`)&&D(c,'style',u),16&i&&Q(c,'hidden',e[4]),1&i&&v!==(v='slider '+e[0]+' v-1w56qn2')&&D(t,'class',v),512&i&&D(t,'aria-label',e[9]),1024&i&&D(t,'aria-valuemin',e[10]),2048&i&&D(t,'aria-valuemax',e[11]),4096&i&&D(t,'aria-valuenow',e[12]),8192&i&&D(t,'aria-valuetext',e[13]),32769&i&&Q(t,'slider-dragging',e[15]),3&i&&Q(t,'hidden',e[1]),5&i&&Q(t,'slider-vertical',e[2]),17&i&&Q(t,'no-handle',e[4]),33&i&&Q(t,'square',e[5])},i:f,o:f,d(i){i&&T(t),e[27](null),p=!1,$(m)}}}function rt(e,t,i){let n,o,{className:l=''}=t,{isHidden:a=!1}=t,{isVertical:s=!1}=t,{isActiveLive:r=!1}=t,{isAds:c=!1}=t,{squareBorders:d=!1}=t,{onPointerDown:u=f}=t,{onHandleMove:v=f}=t,{onPointerUp:p=f}=t,{onPointerEnter:m=f}=t,{onPointerMove:h=f}=t,{onPointerLeave:g=f}=t,{loadedProgress:b=0}=t,{filledProgress:w=0}=t,{handleProgress:$=0}=t,{ariaLabel:y=''}=t,{ariaValueMin:x}=t,{ariaValueMax:k}=t,{ariaValueNow:V}=t,{ariaValueText:P=''}=t,z=!1;function A(e,t){return s?Math.max(0,Math.min(1,(o.height-(t-o.top))/o.height)):Math.min(Math.max(e-o.x,0),o.width)/o.width}function C(e){return Math.min(Math.max(e-o.x,0),o.width)}return e.$$set=e=>{'className'in e&&i(0,l=e.className),'isHidden'in e&&i(1,a=e.isHidden),'isVertical'in e&&i(2,s=e.isVertical),'isActiveLive'in e&&i(3,r=e.isActiveLive),'isAds'in e&&i(4,c=e.isAds),'squareBorders'in e&&i(5,d=e.squareBorders),'onPointerDown'in e&&i(21,u=e.onPointerDown),'onHandleMove'in e&&i(22,v=e.onHandleMove),'onPointerUp'in e&&i(23,p=e.onPointerUp),'onPointerEnter'in e&&i(24,m=e.onPointerEnter),'onPointerMove'in e&&i(25,h=e.onPointerMove),'onPointerLeave'in e&&i(26,g=e.onPointerLeave),'loadedProgress'in e&&i(6,b=e.loadedProgress),'filledProgress'in e&&i(7,w=e.filledProgress),'handleProgress'in e&&i(8,$=e.handleProgress),'ariaLabel'in e&&i(9,y=e.ariaLabel),'ariaValueMin'in e&&i(10,x=e.ariaValueMin),'ariaValueMax'in e&&i(11,k=e.ariaValueMax),'ariaValueNow'in e&&i(12,V=e.ariaValueNow),'ariaValueText'in e&&i(13,P=e.ariaValueText)},[l,a,s,r,c,d,b,w,$,y,x,k,V,P,n,z,function(e){if(z)return;i(15,z=!0),o=n.getBoundingClientRect();const t=A(e.clientX,e.clientY);u(t),n.setPointerCapture(e.pointerId)},function(e){const t=A(e.clientX,e.clientY),i=C(e.clientX);h(t,i),z&&v(t)},function(e){if(!z)return;i(15,z=!1);const t=A(e.clientX,e.clientY);p(t)},function(e){o=n.getBoundingClientRect();const t=A(e.clientX,e.clientY),i=C(e.clientX);m(t,i)},function(){g()},u,v,p,m,h,g,function(e){J[e?'unshift':'push']((()=>{n=e,i(14,n)}))}]}class ct extends $e{constructor(e){super(),we(this,e,rt,st,x,{className:0,isHidden:1,isVertical:2,isActiveLive:3,isAds:4,squareBorders:5,onPointerDown:21,onHandleMove:22,onPointerUp:23,onPointerEnter:24,onPointerMove:25,onPointerLeave:26,loadedProgress:6,filledProgress:7,handleProgress:8,ariaLabel:9,ariaValueMin:10,ariaValueMax:11,ariaValueNow:12,ariaValueText:13},at)}}function dt(e){N(e,'v-t7t1oe','.icon.v-t7t1oe.v-t7t1oe{display:block;width:24px;height:24px}.icon.v-t7t1oe .cross.v-t7t1oe{visibility:hidden}.icon[data-value=\'off\'].v-t7t1oe .wave1.v-t7t1oe,.icon[data-value=\'off\'].v-t7t1oe .wave2.v-t7t1oe{visibility:hidden}.icon[data-value=\'off\'].v-t7t1oe .cross.v-t7t1oe{visibility:visible}.icon[data-value=\'mid\'].v-t7t1oe .wave2.v-t7t1oe,.icon[data-value=\'min\'].v-t7t1oe .wave2.v-t7t1oe{visibility:hidden}.volumeBar.v-t7t1oe.v-t7t1oe{display:flex;align-items:center;margin:0 8px;position:relative;width:70px}.volumeBar-slider-vertical{width:50px !important}.volumeBar-vertical.v-t7t1oe.v-t7t1oe{padding:0;width:0}')}function ut(e){let t,i,n,o,l,a,s,r,c,d,u,v;return c=new ct({props:{className:e[0]?'volumeBar-slider-vertical':'',isHidden:e[0]&&!e[1],isVertical:e[0],onPointerDown:e[6],onHandleMove:e[7],onPointerUp:e[8],onPointerEnter:e[0]?e[9]:f,onPointerLeave:e[0]?e[10]:f,ariaLabel:'Ползунок громкости',ariaValueMin:0,ariaValueMax:100,ariaValueNow:Math.round(100*e[3]),ariaValueText:`${Math.round(100*e[3])}%`,filledProgress:e[3],handleProgress:e[3]}}),{c(){t=B('div'),i=I('svg'),n=I('g'),o=I('path'),l=I('path'),a=I('path'),s=j(),r=B('div'),he(c.$$.fragment),D(o,'class','wave2 v-t7t1oe'),D(o,'d','M12.980843 18.8227621c-.032051 1.2070086-.6704932 1.608931-1.8287519.6202507-1.7185995-1.4687545-3.60887471-3.1942931-4.24215929-3.7215065-.63217937-.528454-1.64491897-.6202511-3.07284859-.6202511-1.42682441 0-1.81505873-.6202511-1.81505873-1.2405016s-.01369327-1.8288162-.01369327-2.001246c0-.0549443.00464608-.085056.01369327-.1291845.01954957-.0953551-.05817756-.9728525 0-1.591076.08510106-.90556663.38823432-1.24050252 1.81505873-1.24050252 1.42792962 0 2.44066922-.09179716 3.07284859-.62025109.63328458-.52845393 2.52355979-2.25275186 4.24215929-3.72150644 1.1582587-.98868024 1.7967003-.58675756 1.8287514.62025106.0431031 1.60645033 5e-7 3.85020301 5e-7 6.68226949 0 2.8295855.0431032 5.3568042 0 6.9632545zm2.9004386-8.7040437c-.3417088-.34170872-.3417088-.89572808 0-1.23743683.3417087-.34170876.8957281-.34170876 1.2374368 0 .1762598.17625972.4111566.46988072.6409943.87209686C18.1429358 10.4240187 18.375 11.1782274 18.375 12s-.2320642 1.5759813-.6152873 2.2466216c-.2298377.4022161-.4647345.6958371-.6409943.8720968-.3417087.3417088-.8957281.3417088-1.2374368 0-.3417088-.3417087-.3417088-.8957281 0-1.2374368.0737402-.0737403.2138434-.2488693.3590057-.5029032C16.4820642 12.9552687 16.625 12.4907274 16.625 12s-.1429358-.9552687-.3847127-1.3783784c-.1451623-.2540339-.2852655-.4291629-.3590057-.5029032zm3-1.99999997c-.3417088-.34170875-.3417088-.89572811 0-1.23743686.3417087-.34170876.8957281-.34170876 1.2374368 0 .2637116.26371158.6207023.73969919.9665078 1.43131016.5167785 1.03355701.842501 2.25503497.8892639 3.71655167-.0467629 1.4032299-.3724854 2.6247079-.8892639 3.6582649-.3458055.6916109-.7027962 1.1675985-.9665078 1.4313101-.3417087.3417088-.8957281.3417088-1.2374368 0-.3417088-.3417087-.3417088-.8957281 0-1.2374368.1375896-.1375897.3825507-.4642045.638697-.9764971.4071252-.8142505.6673665-1.7901701.7054825-2.8756411-.038116-1.1437578-.2983573-2.11967743-.7054825-2.93392787-.2561463-.51229266-.5011074-.83890747-.638697-.9764971z'),D(l,'class','wave1 v-t7t1oe'),D(l,'d','M12.980843 18.8227621c-.032051 1.2070086-.6704932 1.608931-1.8287519.6202507-1.7185995-1.4687545-3.60887471-3.1942931-4.24215929-3.7215065-.63217937-.528454-1.64491897-.6202511-3.07284859-.6202511-1.42682441 0-1.81505873-.6202511-1.81505873-1.2405016s-.01369327-1.8288162-.01369327-2.001246c0-.0549443.00464608-.085056.01369327-.1291845.01954957-.0953551-.05817756-.9728525 0-1.591076.08510106-.90556663.38823432-1.24050252 1.81505873-1.24050252 1.42792962 0 2.44066922-.09179716 3.07284859-.62025109.63328458-.52845393 2.52355979-2.25275186 4.24215929-3.72150644 1.1582587-.98868024 1.7967003-.58675756 1.8287514.62025106.0431031 1.60645033 5e-7 3.85020301 5e-7 6.68226949 0 2.8295855.0431032 5.3568042 0 6.9632545zm2.9004386-8.7040437c-.3417088-.34170872-.3417088-.89572808 0-1.23743683.3417087-.34170876.8957281-.34170876 1.2374368 0 .1762598.17625972.4111566.46988072.6409943.87209686C18.1429358 10.4240187 18.375 11.1782274 18.375 12s-.2320642 1.5759813-.6152873 2.2466216c-.2298377.4022161-.4647345.6958371-.6409943.8720968-.3417087.3417088-.8957281.3417088-1.2374368 0-.3417088-.3417087-.3417088-.8957281 0-1.2374368.0737402-.0737403.2138434-.2488693.3590057-.5029032C16.4820642 12.9552687 16.625 12.4907274 16.625 12s-.1429358-.9552687-.3847127-1.3783784c-.1451623-.2540339-.2852655-.4291629-.3590057-.5029032z'),D(a,'class','cross v-t7t1oe'),D(a,'d','M20 10.7625631l2.3812816-2.38128153c.3417087-.34170876.8957281-.34170876 1.2374368 0 .3417088.34170875.3417088.89572811 0 1.23743686L21.2374369 12l2.3812815 2.3812816c.3417088.3417087.3417088.8957281 0 1.2374368-.3417087.3417088-.8957281.3417088-1.2374368 0L20 13.2374369l-2.3812816 2.3812815c-.3417087.3417088-.8957281.3417088-1.2374368 0-.3417088-.3417087-.3417088-.8957281 0-1.2374368L18.7625631 12l-2.3812815-2.38128157c-.3417088-.34170875-.3417088-.89572811 0-1.23743686.3417087-.34170876.8957281-.34170876 1.2374368 0zm-7.019157 8.060199c-.032051 1.2070086-.6704932 1.608931-1.8287519.6202507-1.7185995-1.4687545-3.60887471-3.1942931-4.24215929-3.7215065-.63217937-.528454-1.64491897-.6202511-3.07284859-.6202511-1.42682441 0-1.81505873-.6202511-1.81505873-1.2405016s-.01369327-1.8288162-.01369327-2.001246c0-.0549443.00464608-.085056.01369327-.1291845.01954957-.0953551-.05817756-.9728525 0-1.591076.08510106-.90556663.38823432-1.24050252 1.81505873-1.24050252 1.42792962 0 2.44066922-.09179716 3.07284859-.62025109.63328458-.52845393 2.52355979-2.25275186 4.24215929-3.72150644 1.1582587-.98868024 1.7967003-.58675756 1.8287514.62025106.0431031 1.60645033 5e-7 3.85020301 5e-7 6.68226949 0 2.8295855.0431032 5.3568042 0 6.9632545z'),D(n,'fill','#fff'),D(n,'fill-rule','evenodd'),D(i,'xmlns','http://www.w3.org/2000/svg'),D(i,'class','icon v-t7t1oe'),D(i,'data-value',e[2]),D(t,'tabindex','0'),D(t,'role','button'),D(r,'class','volumeBar v-t7t1oe'),Q(r,'volumeBar-vertical',e[0])},m(p,m){q(p,t,m),L(t,i),L(i,n),L(n,o),L(n,l),L(n,a),q(p,s,m),q(p,r,m),ge(c,r,null),d=!0,u||(v=[H(t,'mouseenter',(function(){y(e[0]?e[11]:f)&&(e[0]?e[11]:f).apply(this,arguments)})),H(t,'mouseleave',(function(){y(e[0]?e[12]:f)&&(e[0]?e[12]:f).apply(this,arguments)})),H(t,'click',e[15])],u=!0)},p(t,[n]){e=t,(!d||4&n)&&D(i,'data-value',e[2]);const o={};1&n&&(o.className=e[0]?'volumeBar-slider-vertical':''),3&n&&(o.isHidden=e[0]&&!e[1]),1&n&&(o.isVertical=e[0]),1&n&&(o.onPointerEnter=e[0]?e[9]:f),1&n&&(o.onPointerLeave=e[0]?e[10]:f),8&n&&(o.ariaValueNow=Math.round(100*e[3])),8&n&&(o.ariaValueText=`${Math.round(100*e[3])}%`),8&n&&(o.filledProgress=e[3]),8&n&&(o.handleProgress=e[3]),c.$set(o),1&n&&Q(r,'volumeBar-vertical',e[0])},i(e){d||(ve(c.$$.fragment,e),d=!0)},o(e){pe(c.$$.fragment,e),d=!1},d(e){e&&T(t),e&&T(s),e&&T(r),fe(c),u=!1,$(v)}}}function vt(e,t,i){let n,o,{isVerticalVolume:l=!1}=t;const a=Ae(),s=a.state.volume$;C(e,s,(e=>i(13,n=e)));const r=a.state.muted$;C(e,r,(e=>i(14,o=e)));const c=a.actions.internal.setVolume;let d,u,v,p=!1,m=1,h=!1;function g(){d=window.setTimeout((()=>{h||i(1,p=!1)}),300)}return e.$$set=e=>{'isVerticalVolume'in e&&i(0,l=e.isVerticalVolume)},e.$$.update=()=>{var t;24576&e.$$.dirty&&i(2,(t=n,u=o?'off':t>.5?'max':t>.2?'mid':t>0?'min':'off')),24576&e.$$.dirty&&i(3,v=o?0:n)},[l,p,u,v,s,r,function(e){m=n,c(e)},function(e){c(e)},function(e){c(e,0===e?m:e)},function(){h=!0},function(){h=!1,g()},function(){clearTimeout(d),i(1,p=!0)},function(){g()},n,o,function(t){X.call(this,e,t)}]}class pt extends $e{constructor(e){super(),we(this,e,vt,ut,x,{isVerticalVolume:0},dt)}}function mt(e){N(e,'v-1fkqq1h','.container.v-1fkqq1h{display:flex;align-items:center;height:100%;transition:var(--videoplayer-button-hover-transition);will-change:opacity;cursor:pointer;-webkit-tap-highlight-color:transparent}.container.v-1fkqq1h:hover{opacity:0.8}.disabled.v-1fkqq1h{pointer-events:none}')}function ht(e){let t,i,n;const o=e[3].default,l=function(e,t,i,n){if(e){const o=S(e,t,i,n);return e[0](o)}}(o,e,e[2],null);return{c(){t=B('div'),l&&l.c(),D(t,'class',i='container '+e[0]+' v-1fkqq1h'),Q(t,'disabled',e[1])},m(e,i){q(e,t,i),l&&l.m(t,null),n=!0},p(e,[a]){l&&l.p&&(!n||4&a)&&function(e,t,i,n,o,l){if(o){const a=S(t,i,n,l);e.p(a,o)}}(l,o,e,e[2],n?function(e,t,i,n){if(e[2]&&n){const o=e[2](n(i));if(void 0===t.dirty)return o;if('object'==typeof o){const e=[],i=Math.max(t.dirty.length,o.length);for(let n=0;n<i;n+=1)e[n]=t.dirty[n]|o[n];return e}return t.dirty|o}return t.dirty}(o,e[2],a,null):function(e){if(e.ctx.length>32){const t=[],i=e.ctx.length/32;for(let e=0;e<i;e++)t[e]=-1;return t}return-1}(e[2]),null),(!n||1&a&&i!==(i='container '+e[0]+' v-1fkqq1h'))&&D(t,'class',i),3&a&&Q(t,'disabled',e[1])},i(e){n||(ve(l,e),n=!0)},o(e){pe(l,e),n=!1},d(e){e&&T(t),l&&l.d(e)}}}function gt(e,t,i){let{$$slots:n={},$$scope:o}=t,{className:l=''}=t,{disabled:a=!1}=t;return e.$$set=e=>{'className'in e&&i(0,l=e.className),'disabled'in e&&i(1,a=e.disabled),'$$scope'in e&&i(2,o=e.$$scope)},[l,a,o,n]}class ft extends $e{constructor(e){super(),we(this,e,gt,ht,x,{className:0,disabled:1},mt)}}function bt(e){N(e,'v-daygaf','.icon.v-daygaf{display:block;width:24px;height:24px}')}function wt(e){let t;return{c(){t=I('path'),D(t,'class','_enter'),D(t,'d','M10.5 19c0 .5522847-.4477153 1-1 1H5c-.55228475 0-1-.4477153-1-1v-4.5c0-.5522847.44771525-1 1-1s1 .4477153 1 1v2.0715l3.36290054-3.3643932.00012963-.0001296c.39052429-.3905243 1.02368923-.3905243 1.41421353 0l.0157791.0157791.0001297.0001296c.3904527.3905959.3903366 1.0237609-.0002593 1.4142136L7.4285 18H9.5c.5522847 0 1 .4477153 1 1zM18 7.4285l-3.3629005 3.3643932c-.0000432.0000432-.0000865.0000864-.0001297.0001296-.3905243.3905243-1.0236892.3905243-1.4142135 0l-.0157791-.0157791c-.0000433-.0000432-.0000865-.0000864-.0001297-.0001296-.3904527-.3905959-.3903366-1.02376087.0002593-1.41421356L16.5715 6H14.5c-.5522847 0-1-.44771525-1-1s.4477153-1 1-1H19c.5522847 0 1 .44771525 1 1v4.5c0 .5522847-.4477153 1-1 1s-1-.4477153-1-1z')},m(e,i){q(e,t,i)},d(e){e&&T(t)}}}function $t(e){let t;return{c(){t=I('path'),D(t,'class','_exit'),D(t,'d','M4.57969048 13.9787492c0-.5464165.44295809-.9893746.9893746-.9893746h4.45218572c.5464165 0 .9893746.4429581.9893746.9893746v4.4521857c0 .5464165-.4429581.9893746-.9893746.9893746-.54641651 0-.98937461-.4429581-.98937461-.9893746v-2.0494895l-3.3196551 3.3211319-.00012963.0001297c-.39052429.3905243-1.02368927.3905243-1.41421356 0l-.00058487-.0005849-.00012964-.0001297c-.39045268-.3905958-.3903366-1.0237608.00025929-1.4142135l3.32113189-3.3196551H5.56906508c-.54641651 0-.9893746-.4429581-.9893746-.9893746zM14.9681238 7.61855457l3.3196551-3.32113189.0001296-.00012966c.3905243-.39052429 1.0236893-.39052429 1.4142136 0l.0005849.00058488.0001296.00012965c.3904527.39059589.3903366 1.02376086-.0002593 1.41421354l-3.3211319 3.3196551h2.0494895c.5464165 0 .9893746.4429581.9893746.98937461 0 .5464165-.4429581.9893746-.9893746.9893746h-4.4415603c-.5522847 0-1-.4477153-1-1V5.56906508c0-.54641651.4429581-.9893746.9893746-.9893746s.9893746.44295809.9893746.9893746z')},m(e,i){q(e,t,i)},d(e){e&&T(t)}}}function yt(e){let t,i,n,o,l;function a(e,t){return e[0]?$t:wt}let s=a(e),r=s(e);return{c(){t=B('div'),i=I('svg'),n=I('g'),r.c(),D(n,'fill','#fff'),D(n,'fill-rule','evenodd'),D(i,'class','icon v-daygaf'),D(i,'xmlns','http://www.w3.org/2000/svg'),D(t,'role','button'),D(t,'tabindex','0')},m(a,s){q(a,t,s),L(t,i),L(i,n),r.m(n,null),o||(l=H(t,'click',e[2]),o=!0)},p(e,[t]){s!==(s=a(e))&&(r.d(1),r=s(e),r&&(r.c(),r.m(n,null)))},i:f,o:f,d(e){e&&T(t),r.d(),o=!1,l()}}}function xt(e,t,i){let n;const o=Ae().ui.isFullscreen;return C(e,o,(e=>i(0,n=e))),[n,o,function(t){X.call(this,e,t)}]}class kt extends $e{constructor(e){super(),we(this,e,xt,yt,x,{},bt)}}var Vt,Pt,zt,At,Ct='data:image/svg+xml,%3csvg width=\'24\' height=\'24\' fill=\'none\' xmlns=\'http://www.w3.org/2000/svg\'%3e%3cpath d=\'M17.671 10.923c.82.483.82 1.67 0 2.154l-8.787 5.175A1.25 1.25 0 0 1 7 17.174V6.826a1.25 1.25 0 0 1 1.884-1.078l8.787 5.175z\' fill=\'white\'/%3e%3c/svg%3e',St='data:image/svg+xml,%3csvg width=\'24\' height=\'24\' fill=\'none\' xmlns=\'http://www.w3.org/2000/svg\'%3e%3cpath d=\'M8.712 5c.448 0 .61.047.774.134a.913.913 0 0 1 .38.38c.087.164.134.326.134.774v11.424c0 .448-.047.61-.134.774a.914.914 0 0 1-.38.38c-.164.087-.326.134-.774.134H6.788c-.448 0-.61-.047-.774-.134a.914.914 0 0 1-.38-.38c-.087-.164-.134-.326-.134-.774V6.288c0-.448.047-.61.134-.774a.913.913 0 0 1 .38-.38C6.178 5.047 6.34 5 6.788 5h1.924zm8 0c.448 0 .61.047.774.134a.914.914 0 0 1 .38.38c.087.164.134.326.134.774v11.424c0 .448-.047.61-.134.774a.914.914 0 0 1-.38.38c-.164.087-.326.134-.774.134h-1.924c-.448 0-.61-.047-.774-.134a.914.914 0 0 1-.38-.38c-.087-.164-.134-.326-.134-.774V6.288c0-.448.047-.61.134-.774a.914.914 0 0 1 .38-.38c.164-.087.326-.134.774-.134h1.924z\' fill=\'white\'/%3e%3c/svg%3e';function Mt(e){N(e,'v-1kcq5gq','.container-mobile.v-1kcq5gq{width:var(--videoplayer-big-play-size);height:var(--videoplayer-big-play-size);display:flex;align-items:center;justify-content:center;position:relative}.icon.v-1kcq5gq{display:block;width:24px;height:24px}.icon-mobile.v-1kcq5gq{position:relative;width:48px;height:48px}.icon-background-mobile.v-1kcq5gq{position:absolute;top:0;left:0;border-radius:var(--videoplayer-big-play-radius);background-color:var(--videoplayer-big-play-bg-color);width:100%;height:100%}')}function Lt(e){let t,i,n,o,l,a;return{c(){t=B('div'),i=B('img'),P(i.src,n=e[2])||D(i,'src',n),D(i,'class','icon v-1kcq5gq'),D(i,'alt',''),D(t,'class',o=M(e[0])+' v-1kcq5gq'),D(t,'role','button'),D(t,'tabindex','0')},m(n,o){q(n,t,o),L(t,i),l||(a=H(t,'click',(function(){y(e[1])&&e[1].apply(this,arguments)})),l=!0)},p(l,a){e=l,4&a&&!P(i.src,n=e[2])&&D(i,'src',n),1&a&&o!==(o=M(e[0])+' v-1kcq5gq')&&D(t,'class',o)},d(e){e&&T(t),l=!1,a()}}}function Nt(e){let t,i,n,o,l,a,s;return{c(){t=B('div'),i=B('div'),n=j(),o=B('img'),D(i,'class','icon-background-mobile v-1kcq5gq'),P(o.src,l=e[2])||D(o,'src',l),D(o,'class','icon-mobile v-1kcq5gq'),D(o,'alt',''),D(t,'class','container-mobile v-1kcq5gq'),D(t,'role','button'),D(t,'tabindex','0')},m(l,r){q(l,t,r),L(t,i),L(t,n),L(t,o),a||(s=H(t,'click',(function(){y(e[1])&&e[1].apply(this,arguments)})),a=!0)},p(t,i){e=t,4&i&&!P(o.src,l=e[2])&&D(o,'src',l)},d(e){e&&T(t),a=!1,s()}}}function qt(e){let t;function i(e,t){return e[3]?Nt:Lt}let n=i(e),o=n(e);return{c(){o.c(),t=R()},m(e,i){o.m(e,i),q(e,t,i)},p(e,[l]){n===(n=i(e))&&o?o.p(e,l):(o.d(1),o=n(e),o&&(o.c(),o.m(t.parentNode,t)))},i:f,o:f,d(e){o.d(e),e&&T(t)}}}function Tt(e,i,n){let o,l,a,{isEnded:s}=i,{isAds:r}=i,{playbackState:c}=i,{adPlaybackState:d}=i,{className:u=''}=i,{handlePlayClick:v}=i,{repeatPlaylist:p}=i,{isOneVideoPlaylist:m}=i;const h=Ae().ui.isMobile;return C(e,h,(e=>n(3,a=e))),e.$$set=e=>{'isEnded'in e&&n(5,s=e.isEnded),'isAds'in e&&n(6,r=e.isAds),'playbackState'in e&&n(7,c=e.playbackState),'adPlaybackState'in e&&n(8,d=e.adPlaybackState),'className'in e&&n(0,u=e.className),'handlePlayClick'in e&&n(9,v=e.handlePlayClick),'repeatPlaylist'in e&&n(10,p=e.repeatPlaylist),'isOneVideoPlaylist'in e&&n(11,m=e.isOneVideoPlaylist)},e.$$.update=()=>{480&e.$$.dirty&&n(2,o=r?function(e){return e===At.PLAYING?St:Ct}(d):function(e,i){return i?'data:image/svg+xml,%3csvg width=\'24\' height=\'24\' fill=\'none\' xmlns=\'http://www.w3.org/2000/svg\'%3e%3cpath d=\'M12 9.096a.4.4 0 0 1-.67.296L7.044 5.493a.668.668 0 0 1 0-.986L11.33.608a.4.4 0 0 1 .67.296V4a8 8 0 1 1-8 8 1 1 0 1 1 2 0 6 6 0 1 0 6-6v3.096z\' fill=\'white\'/%3e%3c/svg%3e':e===t.PLAYING?St:Ct}(c,s)),3680&e.$$.dirty&&n(1,l=r||!s||m?v:p)},[u,l,o,a,h,s,r,c,d,v,p,m]}!function(e){e.AUTO='auto'}(Vt||(Vt={})),function(e){e.Thumb='thumb',e.Video='video',e.Ads='ads',e.Crashed='crashed'}(Pt||(Pt={})),function(e){e.Preroll='preroll',e.Midroll='midroll',e.Postroll='postroll'}(zt||(zt={})),function(e){e.INACTIVE='inactive',e.PLAYING='playing',e.PAUSED='paused'}(At||(At={}));class Et extends $e{constructor(e){super(),we(this,e,Tt,qt,x,{isEnded:5,isAds:6,playbackState:7,adPlaybackState:8,className:0,handlePlayClick:9,repeatPlaylist:10,isOneVideoPlaylist:11},Mt)}}var Bt='data:image/svg+xml,%3csvg width=\'26\' height=\'24\' fill=\'none\' xmlns=\'http://www.w3.org/2000/svg\'%3e%3cpath 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\' fill=\'white\'/%3e%3c/svg%3e';function It(e){N(e,'v-1tmb7ku','.container-mobile-prev.v-1tmb7ku{margin-right:12px}.container-mobile-next.v-1tmb7ku{margin-right:12px}.disabled.v-1tmb7ku{opacity:0.4;pointer-events:none}.icon.v-1tmb7ku{display:block;height:24px}.icon-mobile.v-1tmb7ku{height:32px}.icon-prev.v-1tmb7ku{transform:scaleX(-1)}')}function Ft(e){let t,i,n,o,l;return{c(){t=B('div'),i=B('img'),D(i,'class','icon v-1tmb7ku'),P(i.src,n=Bt)||D(i,'src','data:image/svg+xml,%3csvg width=\'26\' height=\'24\' fill=\'none\' xmlns=\'http://www.w3.org/2000/svg\'%3e%3cpath 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\' fill=\'white\'/%3e%3c/svg%3e'),D(i,'alt',''),Q(i,'icon-prev','prev'===e[1]),D(t,'role','button'),D(t,'tabindex','0'),D(t,'class','v-1tmb7ku'),Q(t,'disabled',e[0])},m(n,a){q(n,t,a),L(t,i),o||(l=H(t,'click',e[5]),o=!0)},p(e,n){2&n&&Q(i,'icon-prev','prev'===e[1]),1&n&&Q(t,'disabled',e[0])},d(e){e&&T(t),o=!1,l()}}}function jt(e){let t,i,n,o,l;return{c(){t=B('div'),i=B('img'),D(i,'class','icon-mobile v-1tmb7ku'),P(i.src,n=Bt)||D(i,'src','data:image/svg+xml,%3csvg width=\'26\' height=\'24\' fill=\'none\' xmlns=\'http://www.w3.org/2000/svg\'%3e%3cpath 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\' fill=\'white\'/%3e%3c/svg%3e'),D(i,'alt',''),Q(i,'icon-prev','prev'===e[1]),D(t,'role','button'),D(t,'tabindex','0'),D(t,'class','v-1tmb7ku'),Q(t,'container-mobile-prev','prev'===e[1]),Q(t,'container-mobile-next','next'===e[1]),Q(t,'disabled',e[0])},m(n,a){q(n,t,a),L(t,i),o||(l=H(t,'click',e[4]),o=!0)},p(e,n){2&n&&Q(i,'icon-prev','prev'===e[1]),2&n&&Q(t,'container-mobile-prev','prev'===e[1]),2&n&&Q(t,'container-mobile-next','next'===e[1]),1&n&&Q(t,'disabled',e[0])},d(e){e&&T(t),o=!1,l()}}}function Rt(e){let t;function i(e,t){return e[2]?jt:Ft}let n=i(e),o=n(e);return{c(){o.c(),t=R()},m(e,i){o.m(e,i),q(e,t,i)},p(e,[l]){n===(n=i(e))&&o?o.p(e,l):(o.d(1),o=n(e),o&&(o.c(),o.m(t.parentNode,t)))},i:f,o:f,d(e){o.d(e),e&&T(t)}}}function Ht(e,t,i){let n,{disabled:o=!1}=t,{type:l}=t;const a=Ae().ui.isMobile;return C(e,a,(e=>i(2,n=e))),e.$$set=e=>{'disabled'in e&&i(0,o=e.disabled),'type'in e&&i(1,l=e.type)},[o,l,n,a,function(t){X.call(this,e,t)},function(t){X.call(this,e,t)}]}class _t extends $e{constructor(e){super(),we(this,e,Ht,Rt,x,{disabled:0,type:1},It)}}var Dt='data:image/svg+xml,%3csvg width=\'24\' height=\'24\' fill=\'none\' xmlns=\'http://www.w3.org/2000/svg\'%3e%3cpath fill-rule=\'evenodd\' clip-rule=\'evenodd\' d=\'M4.265 4.265C3 5.531 3 7.567 3 11.64v.72c0 4.073 0 6.11 1.265 7.375C5.531 21 7.567 21 11.64 21h.72c4.073 0 6.11 0 7.375-1.265C21 18.469 21 16.433 21 12.36v-.72c0-4.073 0-6.11-1.265-7.375C18.469 3 16.433 3 12.36 3h-.72C7.567 3 5.53 3 4.265 4.265zM6 8.5c.096 4.682 2.556 7.5 6.61 7.5h.235v-2.679c1.476.15 2.577 1.254 3.026 2.679H18c-.578-2.132-2.075-3.31-3.005-3.76.93-.558 2.246-1.908 2.556-3.74h-1.937c-.406 1.49-1.615 2.84-2.77 2.968V8.5h-1.968v5.197c-1.197-.3-2.759-1.757-2.823-5.197H6z\' fill=\'white\'/%3e%3c/svg%3e';function Ut(e){N(e,'v-j4644b','.no-hover.v-j4644b{pointer-events:none}.icon.v-j4644b{display:block;width:24px;height:24px}')}function Ot(e){let t,i;return{c(){t=B('img'),P(t.src,i=Dt)||D(t,'src','data:image/svg+xml,%3csvg width=\'24\' height=\'24\' fill=\'none\' xmlns=\'http://www.w3.org/2000/svg\'%3e%3cpath fill-rule=\'evenodd\' clip-rule=\'evenodd\' d=\'M4.265 4.265C3 5.531 3 7.567 3 11.64v.72c0 4.073 0 6.11 1.265 7.375C5.531 21 7.567 21 11.64 21h.72c4.073 0 6.11 0 7.375-1.265C21 18.469 21 16.433 21 12.36v-.72c0-4.073 0-6.11-1.265-7.375C18.469 3 16.433 3 12.36 3h-.72C7.567 3 5.53 3 4.265 4.265zM6 8.5c.096 4.682 2.556 7.5 6.61 7.5h.235v-2.679c1.476.15 2.577 1.254 3.026 2.679H18c-.578-2.132-2.075-3.31-3.005-3.76.93-.558 2.246-1.908 2.556-3.74h-1.937c-.406 1.49-1.615 2.84-2.77 2.968V8.5h-1.968v5.197c-1.197-.3-2.759-1.757-2.823-5.197H6z\' fill=\'white\'/%3e%3c/svg%3e'),D(t,'class','icon v-j4644b'),D(t,'alt','')},m(e,i){q(e,t,i)},p:f,d(e){e&&T(t)}}}function Qt(e){let t,i,n,o,l;return{c(){t=B('a'),i=B('img'),P(i.src,n=Dt)||D(i,'src','data:image/svg+xml,%3csvg width=\'24\' height=\'24\' fill=\'none\' xmlns=\'http://www.w3.org/2000/svg\'%3e%3cpath fill-rule=\'evenodd\' clip-rule=\'evenodd\' d=\'M4.265 4.265C3 5.531 3 7.567 3 11.64v.72c0 4.073 0 6.11 1.265 7.375C5.531 21 7.567 21 11.64 21h.72c4.073 0 6.11 0 7.375-1.265C21 18.469 21 16.433 21 12.36v-.72c0-4.073 0-6.11-1.265-7.375C18.469 3 16.433 3 12.36 3h-.72C7.567 3 5.53 3 4.265 4.265zM6 8.5c.096 4.682 2.556 7.5 6.61 7.5h.235v-2.679c1.476.15 2.577 1.254 3.026 2.679H18c-.578-2.132-2.075-3.31-3.005-3.76.93-.558 2.246-1.908 2.556-3.74h-1.937c-.406 1.49-1.615 2.84-2.77 2.968V8.5h-1.968v5.197c-1.197-.3-2.759-1.757-2.823-5.197H6z\' fill=\'white\'/%3e%3c/svg%3e'),D(i,'class','icon v-j4644b'),D(i,'alt',''),D(t,'href','https://vk.com/video'),D(t,'target','_blank')},m(n,a){q(n,t,a),L(t,i),o||(l=H(t,'click',e[2]),o=!0)},p:f,d(e){e&&T(t),o=!1,l()}}}function Kt(e){let t,i;function n(e,t){return e[1]?Qt:Ot}let o=n(e),l=o(e);return{c(){t=B('div'),l.c(),D(t,'class',i=M(e[0])+' v-j4644b'),D(t,'role','button'),D(t,'tabindex','0'),Q(t,'no-hover',!e[1])},m(e,i){q(e,t,i),l.m(t,null)},p(e,[a]){o===(o=n(e))&&l?l.p(e,a):(l.d(1),l=o(e),l&&(l.c(),l.m(t,null))),1&a&&i!==(i=M(e[0])+' v-j4644b')&&D(t,'class',i),3&a&&Q(t,'no-hover',!e[1])},i:f,o:f,d(e){e&&T(t),l.d()}}}function Wt(e,t,i){let{className:n=''}=t,{logoClickable:o=!1}=t;return e.$$set=e=>{'className'in e&&i(0,n=e.className),'logoClickable'in e&&i(1,o=e.logoClickable)},[n,o,function(t){X.call(this,e,t)}]}class Yt extends $e{constructor(e){super(),we(this,e,Wt,Kt,x,{className:0,logoClickable:1},Ut)}}function Xt(e){N(e,'v-1gdbwrb','.icon.v-1gdbwrb{display:block;width:24px;height:24px}.wave.v-1gdbwrb{animation-duration:1s;animation-iteration-count:infinite}.wave1.v-1gdbwrb{animation-name:v-1gdbwrb-wave1}.wave2.v-1gdbwrb{animation-name:v-1gdbwrb-wave2}.wave3.v-1gdbwrb{animation-name:v-1gdbwrb-wave3}@keyframes v-1gdbwrb-wave1{0%{opacity:0.3}33%{opacity:1}66%{opacity:1}100%{opacity:1}}@keyframes v-1gdbwrb-wave2{0%{opacity:0.3}33%{opacity:0.3}66%{opacity:1}100%{opacity:1}}@keyframes v-1gdbwrb-wave3{0%{opacity:0.3}33%{opacity:0.3}66%{opacity:0.3}100%{opacity:1}}')}function Gt(e){let t,n,o,l;function a(e,t){return e[1]===i.AVAILABLE?ei:e[1]===i.CONNECTED?Zt:e[1]===i.CONNECTING?Jt:void 0}let s=a(e),r=s&&s(e);return{c(){t=B('div'),r&&r.c(),D(t,'class',n=M(e[0])+' v-1gdbwrb'),D(t,'role','button'),D(t,'tabindex','0')},m(i,n){q(i,t,n),r&&r.m(t,null),o||(l=H(t,'click',e[4]),o=!0)},p(e,i){s!==(s=a(e))&&(r&&r.d(1),r=s&&s(e),r&&(r.c(),r.m(t,null))),1&i&&n!==(n=M(e[0])+' v-1gdbwrb')&&D(t,'class',n)},d(e){e&&T(t),r&&r.d(),o=!1,l()}}}function Jt(e){let t,i,n,o,l,a,s;return{c(){t=I('svg'),i=I('g'),n=I('path'),o=I('path'),l=I('path'),a=I('path'),s=I('path'),D(n,'class','wave wave1 v-1gdbwrb'),D(n,'d','M1 18v3h3c0-1.66-1.34-3-3-3z'),D(n,'opacity','.3'),D(n,'fill','#fff'),D(o,'class','wave wave2 v-1gdbwrb'),D(o,'d','M1 14v2c2.76 0 5 2.24 5 5h2c0-3.87-3.13-7-7-7z'),D(o,'opacity','.3'),D(o,'fill','#fff'),D(l,'class','wave wave3 v-1gdbwrb'),D(l,'d','M1 10v2a9 9 0 0 1 9 9h2c0-6.08-4.93-11-11-11z'),D(l,'opacity','.3'),D(l,'fill','#fff'),D(a,'d','M21 3H3c-1.1 0-2 .9-2 2v3h2V5h18v14h-7v2h7c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2z'),D(a,'fill','#fff'),D(s,'d','M0 0h24v24H0z'),D(i,'fill','none'),D(i,'fill-rule','evenodd'),D(t,'class','icon v-1gdbwrb'),D(t,'width','22'),D(t,'height','22'),D(t,'viewBox','0 0 24 24'),D(t,'xmlns','http://www.w3.org/2000/svg')},m(e,r){q(e,t,r),L(t,i),L(i,n),L(i,o),L(i,l),L(i,a),L(i,s)},d(e){e&&T(t)}}}function Zt(e){let t,i,n,o;return{c(){t=I('svg'),i=I('g'),n=I('path'),o=I('path'),D(n,'d','M1 18v3h3c0-1.66-1.34-3-3-3zm0-4v2c2.76 0 5 2.24 5 5h2c0-3.87-3.13-7-7-7zm18-7H5v1.63c3.96 1.28 7.09 4.41 8.37 8.37H19V7zM1 10v2a9 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'),D(n,'fill','#fff'),D(o,'d','M0 0h24v24H0z'),D(i,'fill','none'),D(i,'fill-rule','evenodd'),D(t,'class','icon v-1gdbwrb'),D(t,'width','22'),D(t,'height','22'),D(t,'viewBox','0 0 24 24'),D(t,'xmlns','http://www.w3.org/2000/svg')},m(e,l){q(e,t,l),L(t,i),L(i,n),L(i,o)},d(e){e&&T(t)}}}function ei(e){let t,i,n,o;return{c(){t=I('svg'),i=I('g'),n=I('path'),o=I('path'),D(n,'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'),D(n,'fill','#fff'),D(o,'d','M0 0h24v24H0z'),D(i,'fill','none'),D(i,'fill-rule','evenodd'),D(t,'class','icon v-1gdbwrb'),D(t,'width','22'),D(t,'height','22'),D(t,'viewBox','0 0 24 24'),D(t,'xmlns','http://www.w3.org/2000/svg')},m(e,l){q(e,t,l),L(t,i),L(i,n),L(i,o)},d(e){e&&T(t)}}}function ti(e){let t,n=e[1]!==i.NOT_AVAILABLE&&Gt(e);return{c(){n&&n.c(),t=R()},m(e,i){n&&n.m(e,i),q(e,t,i)},p(e,[o]){e[1]!==i.NOT_AVAILABLE?n?n.p(e,o):(n=Gt(e),n.c(),n.m(t.parentNode,t)):n&&(n.d(1),n=null)},i:f,o:f,d(e){n&&n.d(e),e&&T(t)}}}function ii(e,t,i){let n,{className:o=''}=t;const l=Ae().state.chromecastState$;let a;return C(e,l,(e=>i(3,n=e))),e.$$set=e=>{'className'in e&&i(0,o=e.className)},e.$$.update=()=>{8&e.$$.dirty&&i(1,a=n)},[o,a,l,n,function(t){X.call(this,e,t)}]}class ni extends $e{constructor(e){super(),we(this,e,ii,ti,x,{className:0},Xt)}}function oi(e){N(e,'v-rwtbzf','.icon.v-rwtbzf{display:block;width:42px;height:20px}')}function li(e){let t,i,n,o,l;return{c(){t=B('div'),i=B('img'),P(i.src,n=e[0])||D(i,'src',n),D(i,'class','icon v-rwtbzf'),D(i,'alt',''),D(t,'role','button'),D(t,'tabindex','0')},m(n,a){q(n,t,a),L(t,i),o||(l=H(t,'click',e[2]),o=!0)},p(e,[t]){1&t&&!P(i.src,n=e[0])&&D(i,'src',n)},i:f,o:f,d(e){e&&T(t),o=!1,l()}}}function ai(e,t,i){let{isActiveLive:n=!1}=t,o='';return e.$$set=e=>{'isActiveLive'in e&&i(1,n=e.isActiveLive)},e.$$.update=()=>{2&e.$$.dirty&&i(0,o=n?'data:image/svg+xml,%3csvg width=\'42\' height=\'20\' fill=\'none\' xmlns=\'http://www.w3.org/2000/svg\'%3e%3crect width=\'42\' height=\'20\' rx=\'5\' fill=\'%23FF3347\'/%3e%3cpath fill-rule=\'evenodd\' clip-rule=\'evenodd\' d=\'M8 5a1 1 0 0 0-1 1v8a1 1 0 0 0 1 1h4a1 1 0 1 0 0-2H9V6a1 1 0 0 0-1-1zm7 1a1 1 0 1 1 2 0v8a1 1 0 1 1-2 0V6zm15-1a1 1 0 0 0-1 1v8a1 1 0 0 0 1 1h4a1 1 0 1 0 0-2h-3v-2h3a1 1 0 1 0 0-2h-3V7h3a1 1 0 1 0 0-2h-4zm-8.325 9.31-2.55-7.824a.993.993 0 0 1-.117-.363L19 6.1h.005a1 1 0 1 1 1.99-.199L21 5.9l2 6.4 2-6.4h.005a1 1 0 0 1 1.99.2H27l-.008.023a.993.993 0 0 1-.118.363l-2.55 7.824a1 1 0 0 1-.95.69h-.748a1 1 0 0 1-.95-.69z\' fill=\'%23F2F3F5\'/%3e%3c/svg%3e':'data:image/svg+xml,%3csvg viewBox=\'0 0 42 20\' xmlns=\'http://www.w3.org/2000/svg\'%3e%3cpath d=\'M6.41 1A6.46 6.46 0 0 0 3 1.55 3.52 3.52 0 0 0 1.55 3 6.46 6.46 0 0 0 1 6.41v7.18A6.46 6.46 0 0 0 1.55 17 3.52 3.52 0 0 0 3 18.45a6.46 6.46 0 0 0 3.41.55h29.18a6.46 6.46 0 0 0 3.41-.55A3.52 3.52 0 0 0 40.45 17a6.46 6.46 0 0 0 .55-3.41V6.41A6.46 6.46 0 0 0 40.45 3 3.52 3.52 0 0 0 39 1.55 6.46 6.46 0 0 0 35.59 1z\' fill=\'none\' stroke=\'white\' stroke-width=\'2\'/%3e%3cpath d=\'M8 5a1 1 0 0 1 1 1v7h3a1 1 0 0 1 1 .88V14a1 1 0 0 1-1 1H8a1 1 0 0 1-1-.77v-.11A.49.49 0 0 1 7 14V6a1 1 0 0 1 .88-1zm8 0a1 1 0 0 1 1 1v8a1 1 0 0 1-.88 1H16a1 1 0 0 1-1-1V6a1 1 0 0 1 .88-1zm18 0a1 1 0 0 1 1 .88V6a1 1 0 0 1-1 1h-3v2h3a1 1 0 0 1 1 .88V10a1 1 0 0 1-1 1h-3v2h3a1 1 0 0 1 1 .88V14a1 1 0 0 1-1 1h-4a1 1 0 0 1-1-.77v-.11a.49.49 0 0 1 0-.12V6a1 1 0 0 1 .56-.9A1 1 0 0 1 30 5zm-8 0a1 1 0 0 1 1 1v.1a.89.89 0 0 1-.11.35l-2.47 7.57a1.48 1.48 0 0 1-1.32.98h-.2a1.48 1.48 0 0 1-1.31-.95l-2.47-7.57a.89.89 0 0 1-.12-.36V6a1 1 0 0 1 .88-1H20a1 1 0 0 1 1 1v-.1l2 6.4 2-6.4a1 1 0 0 1 1-.9z\' fill=\'%23f0f2f5\' fill-rule=\'evenodd\'/%3e%3c/svg%3e')},[o,n,function(t){X.call(this,e,t)}]}class si extends $e{constructor(e){super(),we(this,e,ai,li,x,{isActiveLive:1},oi)}}var ri='data:image/svg+xml,%3csvg xmlns=\'http://www.w3.org/2000/svg\' width=\'24\' height=\'24\'%3e%3cg fill=\'none\' fill-rule=\'evenodd\'%3e%3cpath d=\'M0 0h24v24H0z\'/%3e%3cpath fill=\'white\' d=\'M8.695 8.105 5.301 4.71a1 1 0 0 1 1.414-1.415L20.7 17.285a1 1 0 0 1-1.414 1.415L16 15.41V20a1 1 0 0 1-1 1c-.641 0-1.258-.25-1.72-.695L7.79 15H5a2 2 0 0 1-2-2v-2a2 2 0 0 1 2-2h2.765l.93-.895Zm2.88-2.77 1.704-1.642A2.481 2.481 0 0 1 15 3a1 1 0 0 1 1 1v5.76l-4.426-4.426Z\'/%3e%3c/g%3e%3c/svg%3e',ci='data:image/svg+xml,%3csvg xmlns=\'http://www.w3.org/2000/svg\' width=\'24\' height=\'24\'%3e%3cg fill=\'none\' fill-rule=\'evenodd\'%3e%3cpath d=\'M0 0h24v24H0z\'/%3e%3cpath fill=\'white\' fill-rule=\'nonzero\' d=\'M21.657 17.657a.9.9 0 1 1-1.273-1.273 6.2 6.2 0 0 0 0-8.768.9.9 0 1 1 1.273-1.273 8 8 0 0 1 0 11.314ZM19.11 15.11a.9.9 0 0 1-1.273-1.273 2.6 2.6 0 0 0 0-3.676.9.9 0 1 1 1.273-1.273 4.4 4.4 0 0 1 0 6.222ZM5 15a2 2 0 0 1-2-2v-2a2 2 0 0 1 2-2h2.765l5.514-5.307A2.481 2.481 0 0 1 15 3a1 1 0 0 1 1 1v16a1 1 0 0 1-1 1c-.641 0-1.258-.25-1.72-.695L7.79 15H5Z\'/%3e%3c/g%3e%3c/svg%3e';function di(e){N(e,'v-dsbe5p','.container.v-dsbe5p{display:flex;height:32px;align-items:center;padding:0 8px}.expanded.v-dsbe5p{background-color:rgba(0, 0, 0, 0.56);border-radius:6px}.icon.v-dsbe5p{width:24px;height:24px}.text.v-dsbe5p{font-size:15px;margin-left:8px}')}function ui(e){let t;return{c(){t=B('span'),t.textContent='Включить звук',D(t,'class','text v-dsbe5p')},m(e,i){q(e,t,i)},d(e){e&&T(t)}}}function vi(e){let t,i,n,o,l,a,s=e[0]&&ui();return{c(){t=B('div'),i=B('img'),o=j(),s&&s.c(),P(i.src,n=e[0]?ci:ri)||D(i,'src',n),D(i,'class','icon v-dsbe5p'),D(i,'alt',''),D(t,'class','container v-dsbe5p'),Q(t,'expanded',e[0])},m(n,r){q(n,t,r),L(t,i),L(t,o),s&&s.m(t,null),l||(a=H(t,'click',e[1]),l=!0)},p(e,[o]){1&o&&!P(i.src,n=e[0]?ci:ri)&&D(i,'src',n),e[0]?s||(s=ui(),s.c(),s.m(t,null)):s&&(s.d(1),s=null),1&o&&Q(t,'expanded',e[0])},i:f,o:f,d(e){e&&T(t),s&&s.d(),l=!1,a()}}}function pi(e,t,i){let{expanded:n=!1}=t;return e.$$set=e=>{'expanded'in e&&i(0,n=e.expanded)},[n,function(t){X.call(this,e,t)}]}class mi extends $e{constructor(e){super(),we(this,e,pi,vi,x,{expanded:0},di)}}function hi(e){N(e,'v-1bwjmdb','.tooltip-wrapper.v-1bwjmdb{position:relative;display:block}.tooltip.v-1bwjmdb{position:absolute;opacity:0;visibility:hidden;transition:opacity 200ms, visibility 200ms;bottom:100%;transform:translateX(-50%)}.tooltip.v-1bwjmdb: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)}.content.v-1bwjmdb{display:inline-block;padding:6px 10px;border-radius:3px;color:var(--white);background-color:rgba(41, 41, 41, .8)}.tooltip.active.v-1bwjmdb{opacity:1;visibility:visible}')}function gi(e){let t,i,n,o,l;return{c(){t=B('div'),i=B('div'),n=B('div'),o=F(e[0]),D(n,'class','content v-1bwjmdb'),D(i,'class','tooltip v-1bwjmdb'),Q(i,'active',e[1]),D(t,'class','tooltip-wrapper v-1bwjmdb'),D(t,'style',l=`transform: translate(${e[2]}px, ${e[3]}px);`)},m(e,l){q(e,t,l),L(t,i),L(i,n),L(n,o)},p(e,[n]){1&n&&U(o,e[0]),2&n&&Q(i,'active',e[1]),12&n&&l!==(l=`transform: translate(${e[2]}px, ${e[3]}px);`)&&D(t,'style',l)},i:f,o:f,d(e){e&&T(t)}}}function fi(e,t,i){let{content:n=''}=t,{active:o=!1}=t,{translateXPx:l=0}=t,{translateYPx:a=0}=t;return e.$$set=e=>{'content'in e&&i(0,n=e.content),'active'in e&&i(1,o=e.active),'translateXPx'in e&&i(2,l=e.translateXPx),'translateYPx'in e&&i(3,a=e.translateYPx)},[n,o,l,a]}class bi extends $e{constructor(e){super(),we(this,e,fi,gi,x,{content:0,active:1,translateXPx:2,translateYPx:3},hi)}}function wi(e){let t,i;return t=new bi({props:{content:e[5],active:e[4],translateXPx:e[6],translateYPx:-16}}),{c(){he(t.$$.fragment)},m(e,n){ge(t,e,n),i=!0},p(e,i){const n={};32&i&&(n.content=e[5]),16&i&&(n.active=e[4]),64&i&&(n.translateXPx=e[6]),t.$set(n)},i(e){i||(ve(t.$$.fragment,e),i=!0)},o(e){pe(t.$$.fragment,e),i=!1},d(e){fe(t,e)}}}function $i(e){let t,i,n,o=(!e[8]||e[8]&&e[7])&&wi(e);return i=new ct({props:{isActiveLive:e[9],ariaLabel:'Ползунок временной шкалы',ariaValueMin:0,ariaValueMax:e[0],ariaValueNow:Math.round(100*e[3]),ariaValueText:`${e[2]} (общая длительность ${e[1]})`,loadedProgress:e[10],filledProgress:e[3],handleProgress:e[3],onPointerDown:e[17],onHandleMove:e[18],onPointerMove:e[21],onPointerUp:e[19],onPointerEnter:e[20],onPointerLeave:e[22]}}),{c(){o&&o.c(),t=j(),he(i.$$.fragment)},m(e,l){o&&o.m(e,l),q(e,t,l),ge(i,e,l),n=!0},p(e,[n]){!e[8]||e[8]&&e[7]?o?(o.p(e,n),384&n&&ve(o,1)):(o=wi(e),o.c(),ve(o,1),o.m(t.parentNode,t)):o&&(de(),pe(o,1,1,(()=>{o=null})),ue());const l={};512&n&&(l.isActiveLive=e[9]),1&n&&(l.ariaValueMax=e[0]),8&n&&(l.ariaValueNow=Math.round(100*e[3])),6&n&&(l.ariaValueText=`${e[2]} (общая длительность ${e[1]})`),1024&n&&(l.loadedProgress=e[10]),8&n&&(l.filledProgress=e[3]),8&n&&(l.handleProgress=e[3]),i.$set(l)},i(e){n||(ve(o),ve(i.$$.fragment,e),n=!0)},o(e){pe(o),pe(i.$$.fragment,e),n=!1},d(e){o&&o.d(e),e&&T(t),fe(i,e)}}}function yi(e,t,i){let n,o,l,a,s,r;const c=Ae(),d=c.state.bufferedProgress$;C(e,d,(e=>i(10,r=e)));const u=c.state.positionWithScrubbing$;C(e,u,(e=>i(23,l=e)));const v=c.state.duration$;C(e,v,(e=>i(0,o=e)));const p=c.state.isLive$;C(e,p,(e=>i(7,n=e)));const m=c.state.isActiveLive$;C(e,m,(e=>i(9,s=e)));const h=c.ui.isMobile;let g,f,b;C(e,h,(e=>i(8,a=e)));let w=!1,$='',y=0;function x(e,t){i(6,y=t),i(5,$=function(e){const t=et((n?1-e:e)*o);return n?`-${t}`:t}(e))}return e.$$.update=()=>{1&e.$$.dirty&&i(1,g=et(o)),8388608&e.$$.dirty&&i(2,f=et(l)),8388609&e.$$.dirty&&i(3,b=l/o)},[o,g,f,b,w,$,y,n,a,s,r,d,u,v,p,m,h,function(e){c.actions.internal.startScrubbing(e)},function(e){c.actions.internal.progressScrubbing(e)},function(e){c.actions.internal.completeScrubbing(e)},function(e,t){x(e,t),i(4,w=!0)},function(e,t){x(e,t)},function(){i(4,w=!1)},l]}class xi extends $e{constructor(e){super(),we(this,e,yi,$i,x,{})}}function ki(e){let t,i;return t=new ct({props:{ariaValueMin:0,ariaValueMax:e[0],ariaValueNow:Math.round(100*e[3]),ariaValueText:`${e[2]} (общая длительность ${e[1]})`,filledProgress:e[3],isAds:!0,squareBorders:e[4]}}),{c(){he(t.$$.fragment)},m(e,n){ge(t,e,n),i=!0},p(e,[i]){const n={};1&i&&(n.ariaValueMax=e[0]),8&i&&(n.ariaValueNow=Math.round(100*e[3])),6&i&&(n.ariaValueText=`${e[2]} (общая длительность ${e[1]})`),8&i&&(n.filledProgress=e[3]),16&i&&(n.squareBorders=e[4]),t.$set(n)},i(e){i||(ve(t.$$.fragment,e),i=!0)},o(e){pe(t.$$.fragment,e),i=!1},d(e){fe(t,e)}}}function Vi(e,t,i){let n,{position:o=0}=t,{duration:l=0}=t;const a=Ae().ui.isMobile;let s,r,c;return C(e,a,(e=>i(4,n=e))),e.$$set=e=>{'position'in e&&i(6,o=e.position),'duration'in e&&i(0,l=e.duration)},e.$$.update=()=>{1&e.$$.dirty&&i(1,s=et(l)),64&e.$$.dirty&&i(2,r=et(o)),65&e.$$.dirty&&i(3,c=o/l)},[l,s,r,c,n,a,o]}class Pi extends $e{constructor(e){super(),we(this,e,Vi,ki,x,{position:6,duration:0})}}function zi(e){N(e,'v-17msmwz','.timeline.v-17msmwz{display:flex;align-items:center;width:100%;min-width:86px;margin:0 6px}.timeline-stub.v-17msmwz{width:100%;min-width:20px}')}function Ai(e){let t;return{c(){t=B('div'),D(t,'class','timeline-stub v-17msmwz')},m(e,i){q(e,t,i)},p:f,i:f,o:f,d(e){e&&T(t)}}}function Ci(e){let t,i,n,o,l;const a=[Mi,Si],s=[];function r(e,t){return e[0]?0:1}return i=r(e),n=s[i]=a[i](e),{c(){t=B('div'),n.c(),D(t,'class',o='timeline '+e[1]+' v-17msmwz')},m(e,n){q(e,t,n),s[i].m(t,null),l=!0},p(e,c){let d=i;i=r(e),i===d?s[i].p(e,c):(de(),pe(s[d],1,1,(()=>{s[d]=null})),ue(),n=s[i],n?n.p(e,c):(n=s[i]=a[i](e),n.c()),ve(n,1),n.m(t,null)),(!l||2&c&&o!==(o='timeline '+e[1]+' v-17msmwz'))&&D(t,'class',o)},i(e){l||(ve(n),l=!0)},o(e){pe(n),l=!1},d(e){e&&T(t),s[i].d()}}}function Si(e){let t,i;return t=new xi({}),{c(){he(t.$$.fragment)},m(e,n){ge(t,e,n),i=!0},p:f,i(e){i||(ve(t.$$.fragment,e),i=!0)},o(e){pe(t.$$.fragment,e),i=!1},d(e){fe(t,e)}}}function Mi(e){let t,i;return t=new Pi({props:{position:e[3],duration:e[4]}}),{c(){he(t.$$.fragment)},m(e,n){ge(t,e,n),i=!0},p(e,i){const n={};8&i&&(n.position=e[3]),16&i&&(n.duration=e[4]),t.$set(n)},i(e){i||(ve(t.$$.fragment,e),i=!0)},o(e){pe(t.$$.fragment,e),i=!1},d(e){fe(t,e)}}}function Li(e){let t,i,n,o;const l=[Ci,Ai],a=[];function s(e,t){return e[2]?0:1}return t=s(e),i=a[t]=l[t](e),{c(){i.c(),n=R()},m(e,i){a[t].m(e,i),q(e,n,i),o=!0},p(e,[o]){let r=t;t=s(e),t===r?a[t].p(e,o):(de(),pe(a[r],1,1,(()=>{a[r]=null})),ue(),i=a[t],i?i.p(e,o):(i=a[t]=l[t](e),i.c()),ve(i,1),i.m(n.parentNode,n))},i(e){o||(ve(i),o=!0)},o(e){pe(i),o=!1},d(e){a[t].d(e),e&&T(n)}}}function Ni(e,t,i){let n,o,l,{isAds:a=!1}=t,{canRewindLive:s}=t,{isHidden:r=!1}=t,{className:c=''}=t;const d=Ae(),u=d.state.isLive$;C(e,u,(e=>i(10,n=e)));const v=d.ads.duration;C(e,v,(e=>i(4,l=e)));const p=d.ads.position;let m;return C(e,p,(e=>i(3,o=e))),e.$$set=e=>{'isAds'in e&&i(0,a=e.isAds),'canRewindLive'in e&&i(8,s=e.canRewindLive),'isHidden'in e&&i(9,r=e.isHidden),'className'in e&&i(1,c=e.className)},e.$$.update=()=>{1793&e.$$.dirty&&i(2,m=!r&&(!n||n&&s||a))},[a,c,m,o,l,u,v,p,s,r,n]}class qi extends $e{constructor(e){super(),we(this,e,Ni,Li,x,{isAds:0,canRewindLive:8,isHidden:9,className:1},zi)}}function Ti(e){N(e,'v-1qfxnal','.wrapper-bottom.v-1qfxnal.v-1qfxnal{position:absolute;width:100%;bottom:0;left:0;height:var(--videoplayer-controls-gradient-height);background:linear-gradient(\n 180deg,\n rgba(0, 0, 0, 0) 0%,\n rgba(0, 0, 0, 0.02) 19%,\n rgba(0, 0, 0, 0.10) 34%,\n rgba(0, 0, 0, 0.40) 60%,\n rgba(0, 0, 0, 0.60) 100%\n );transition:transform var(--videoplayer-controls-transition-duration)\n var(--videoplayer-controls-transition-fn)}.wrapper-bottom.ads-timeline-mobile.v-1qfxnal.v-1qfxnal{height:5px}.wrapper-middle.v-1qfxnal.v-1qfxnal{position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);transition:opacity var(--videoplayer-controls-transition-duration);display:flex;align-items:center}.wrapper-top-right.v-1qfxnal.v-1qfxnal{position:absolute;top:16px;right:16px;transition:opacity var(--videoplayer-controls-transition-duration);display:flex}.wrapper-top-left.v-1qfxnal.v-1qfxnal{position:absolute;top:12px;left:12px}.controls.v-1qfxnal.v-1qfxnal{position:absolute;bottom:0;left:0;right:0;display:flex;align-items:center;height:var(--videoplayer-controls-height);white-space:nowrap;font-size:13px;transition:transform var(--videoplayer-controls-transition-duration)\n var(--videoplayer-controls-transition-fn);will-change:transform;padding:0 16px;box-sizing:border-box}.controls-element+.controls-element{padding-left:8px}.hidden.v-1qfxnal.v-1qfxnal{visibility:hidden;opacity:0}.controls-hidden.v-1qfxnal.v-1qfxnal{visibility:visible;transform:translateY(100%)}.settings-desktop.v-1qfxnal.v-1qfxnal{bottom:42px;right:18px;position:absolute;transition:opacity 0.2s, visibility 0.2s}.settings-mobile.v-1qfxnal.v-1qfxnal{position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);transition:opacity var(--videoplayer-controls-transition-duration);display:flex;align-items:center;max-width:320px;width:90%}.overlay-mobile.v-1qfxnal.v-1qfxnal{position:absolute;top:0;left:0;width:100%;height:100%;background-color:rgba(0, 0, 0, .3);pointer-events:none;transition:opacity var(--videoplayer-controls-transition-duration)}.wrapper-bottom-fullscreen-desktop.v-1qfxnal .controls.v-1qfxnal{--videoplayer-controls-height:50px;font-size:16px}.wrapper-bottom-fullscreen-desktop.v-1qfxnal .ui-time{padding-left:20px;padding-right:15px}.wrapper-bottom-fullscreen-desktop.v-1qfxnal .controls-play-button{padding-left:20px;padding-right:11px}.mobile-top-right-button+.mobile-top-right-button{margin-left:24px}@media screen and (orientation: portrait){.wrapper-top-right.wrapper-top-fullscreen-mobile.v-1qfxnal.v-1qfxnal{top:36px}.wrapper-top-left.wrapper-top-fullscreen-mobile.v-1qfxnal.v-1qfxnal{top:32px}.controls.controls-fullscreen-mobile.v-1qfxnal.v-1qfxnal{bottom:36px}}@media screen and (orientation: landscape){.wrapper-top-left.wrapper-top-fullscreen-mobile.v-1qfxnal.v-1qfxnal{left:32px}.wrapper-top-right.wrapper-top-fullscreen-mobile.v-1qfxnal.v-1qfxnal{right:36px}.controls.controls-fullscreen-mobile.v-1qfxnal.v-1qfxnal{left:20px;right:20px;bottom:24px}}')}function Ei(e){let t,i,n,o,l,a,s,r,c,d,u,v,p,m=e[28]&&Bi(e);a=new Ze({props:{className:'mobile-top-right-button'}});let h=!e[6]&&Ii(e),g=e[7]&&Fi(e);u=new Et({props:{playbackState:e[31],adPlaybackState:e[32],isAds:e[3],handlePlayClick:e[41],repeatPlaylist:e[14],isEnded:e[33],isOneVideoPlaylist:e[10]}});let f=e[7]&&ji(e);return{c(){t=B('div'),i=j(),n=B('div'),m&&m.c(),o=j(),l=B('div'),he(a.$$.fragment),s=j(),h&&h.c(),r=j(),c=B('div'),g&&g.c(),d=j(),he(u.$$.fragment),v=j(),f&&f.c(),D(t,'class','overlay-mobile v-1qfxnal'),Q(t,'hidden',!e[26]),D(n,'class','wrapper-top-left v-1qfxnal'),Q(n,'hidden',!e[2]),Q(n,'wrapper-top-fullscreen-mobile',e[27]&&e[18]),D(l,'class','wrapper-top-right v-1qfxnal'),Q(l,'hidden',!e[2]),Q(l,'wrapper-top-fullscreen-mobile',e[27]&&e[18]),D(c,'class','wrapper-middle v-1qfxnal'),Q(c,'hidden',!e[2]||e[30])},m(e,b){q(e,t,b),q(e,i,b),q(e,n,b),m&&m.m(n,null),q(e,o,b),q(e,l,b),ge(a,l,null),L(l,s),h&&h.m(l,null),q(e,r,b),q(e,c,b),g&&g.m(c,null),L(c,d),ge(u,c,null),L(c,v),f&&f.m(c,null),p=!0},p(e,i){67108864&i[0]&&Q(t,'hidden',!e[26]),e[28]?m?(m.p(e,i),268435456&i[0]&&ve(m,1)):(m=Bi(e),m.c(),ve(m,1),m.m(n,null)):m&&(de(),pe(m,1,1,(()=>{m=null})),ue()),4&i[0]&&Q(n,'hidden',!e[2]),134479872&i[0]&&Q(n,'wrapper-top-fullscreen-mobile',e[27]&&e[18]),e[6]?h&&(de(),pe(h,1,1,(()=>{h=null})),ue()):h?(h.p(e,i),64&i[0]&&ve(h,1)):(h=Ii(e),h.c(),ve(h,1),h.m(l,null)),4&i[0]&&Q(l,'hidden',!e[2]),134479872&i[0]&&Q(l,'wrapper-top-fullscreen-mobile',e[27]&&e[18]),e[7]?g?(g.p(e,i),128&i[0]&&ve(g,1)):(g=Fi(e),g.c(),ve(g,1),g.m(c,d)):g&&(de(),pe(g,1,1,(()=>{g=null})),ue());const o={};1&i[1]&&(o.playbackState=e[31]),2&i[1]&&(o.adPlaybackState=e[32]),8&i[0]&&(o.isAds=e[3]),16384&i[0]&&(o.repeatPlaylist=e[14]),4&i[1]&&(o.isEnded=e[33]),1024&i[0]&&(o.isOneVideoPlaylist=e[10]),u.$set(o),e[7]?f?(f.p(e,i),128&i[0]&&ve(f,1)):(f=ji(e),f.c(),ve(f,1),f.m(c,null)):f&&(de(),pe(f,1,1,(()=>{f=null})),ue()),1073741828&i[0]&&Q(c,'hidden',!e[2]||e[30])},i(e){p||(ve(m),ve(a.$$.fragment,e),ve(h),ve(g),ve(u.$$.fragment,e),ve(f),p=!0)},o(e){pe(m),pe(a.$$.fragment,e),pe(h),pe(g),pe(u.$$.fragment,e),pe(f),p=!1},d(e){e&&T(t),e&&T(i),e&&T(n),m&&m.d(),e&&T(o),e&&T(l),fe(a),h&&h.d(),e&&T(r),e&&T(c),g&&g.d(),fe(u),f&&f.d()}}}function Bi(e){let t,i;return t=new mi({props:{expanded:e[29]}}),t.$on('click',e[62]),{c(){he(t.$$.fragment)},m(e,n){ge(t,e,n),i=!0},p(e,i){const n={};536870912&i[0]&&(n.expanded=e[29]),t.$set(n)},i(e){i||(ve(t.$$.fragment,e),i=!0)},o(e){pe(t.$$.fragment,e),i=!1},d(e){fe(t,e)}}}function Ii(e){let t,i;return t=new Yt({props:{className:'mobile-top-right-button',logoClickable:e[5]}}),t.$on('click',e[42]),{c(){he(t.$$.fragment)},m(e,n){ge(t,e,n),i=!0},p(e,i){const n={};32&i[0]&&(n.logoClickable=e[5]),t.$set(n)},i(e){i||(ve(t.$$.fragment,e),i=!0)},o(e){pe(t.$$.fragment,e),i=!1},d(e){fe(t,e)}}}function Fi(e){let t,i;return t=new _t({props:{type:'prev',disabled:!e[9]}}),t.$on('click',(function(){y(e[13])&&e[13].apply(this,arguments)})),{c(){he(t.$$.fragment)},m(e,n){ge(t,e,n),i=!0},p(i,n){e=i;const o={};512&n[0]&&(o.disabled=!e[9]),t.$set(o)},i(e){i||(ve(t.$$.fragment,e),i=!0)},o(e){pe(t.$$.fragment,e),i=!1},d(e){fe(t,e)}}}function ji(e){let t,i;return t=new _t({props:{type:'next',disabled:!e[8]}}),t.$on('click',(function(){y(e[12])&&e[12].apply(this,arguments)})),{c(){he(t.$$.fragment)},m(e,n){ge(t,e,n),i=!0},p(i,n){e=i;const o={};256&n[0]&&(o.disabled=!e[8]),t.$set(o)},i(e){i||(ve(t.$$.fragment,e),i=!0)},o(e){pe(t.$$.fragment,e),i=!1},d(e){fe(t,e)}}}function Ri(e){let t,i,n,o,l,a=e[28]&&Hi(e),s=e[32]===At.PAUSED&&_i(e);return o=new Pi({props:{position:e[34],duration:e[35]}}),{c(){a&&a.c(),t=j(),s&&s.c(),i=j(),n=B('div'),he(o.$$.fragment),D(n,'class','wrapper-bottom ads-timeline-mobile v-1qfxnal')},m(e,r){a&&a.m(e,r),q(e,t,r),s&&s.m(e,r),q(e,i,r),q(e,n,r),ge(o,n,null),l=!0},p(e,n){e[28]?a?(a.p(e,n),268435456&n[0]&&ve(a,1)):(a=Hi(e),a.c(),ve(a,1),a.m(t.parentNode,t)):a&&(de(),pe(a,1,1,(()=>{a=null})),ue()),e[32]===At.PAUSED?s?(s.p(e,n),2&n[1]&&ve(s,1)):(s=_i(e),s.c(),ve(s,1),s.m(i.parentNode,i)):s&&(de(),pe(s,1,1,(()=>{s=null})),ue());const l={};8&n[1]&&(l.position=e[34]),16&n[1]&&(l.duration=e[35]),o.$set(l)},i(e){l||(ve(a),ve(s),ve(o.$$.fragment,e),l=!0)},o(e){pe(a),pe(s),pe(o.$$.fragment,e),l=!1},d(e){a&&a.d(e),e&&T(t),s&&s.d(e),e&&T(i),e&&T(n),fe(o)}}}function Hi(e){let t,i,n;return i=new mi({props:{expanded:!1}}),i.$on('click',e[62]),{c(){t=B('div'),he(i.$$.fragment),D(t,'class','wrapper-top-right v-1qfxnal')},m(e,o){q(e,t,o),ge(i,t,null),n=!0},p:f,i(e){n||(ve(i.$$.fragment,e),n=!0)},o(e){pe(i.$$.fragment,e),n=!1},d(e){e&&T(t),fe(i)}}}function _i(e){let t,i,n;return i=new Et({props:{playbackState:e[31],adPlaybackState:e[32],isAds:!0,handlePlayClick:e[41],repeatPlaylist:f,isEnded:!1,isOneVideoPlaylist:!1}}),{c(){t=B('div'),he(i.$$.fragment),D(t,'class','wrapper-middle v-1qfxnal')},m(e,o){q(e,t,o),ge(i,t,null),n=!0},p(e,t){const n={};1&t[1]&&(n.playbackState=e[31]),2&t[1]&&(n.adPlaybackState=e[32]),i.$set(n)},i(e){n||(ve(i.$$.fragment,e),n=!0)},o(e){pe(i.$$.fragment,e),n=!1},d(e){e&&T(t),fe(i)}}}function Di(e){let t,i,n,o,l,a=e[7]&&!e[3]&&Ui(e);i=new ft({props:{className:'controls-element',$$slots:{default:[Qi]},$$scope:{ctx:e}}});let s=e[7]&&!e[3]&&Ki(e);return{c(){a&&a.c(),t=j(),he(i.$$.fragment),n=j(),s&&s.c(),o=R()},m(e,r){a&&a.m(e,r),q(e,t,r),ge(i,e,r),q(e,n,r),s&&s.m(e,r),q(e,o,r),l=!0},p(e,n){e[7]&&!e[3]?a?(a.p(e,n),136&n[0]&&ve(a,1)):(a=Ui(e),a.c(),ve(a,1),a.m(t.parentNode,t)):a&&(de(),pe(a,1,1,(()=>{a=null})),ue());const l={};17416&n[0]|7&n[1]|16&n[2]&&(l.$$scope={dirty:n,ctx:e}),i.$set(l),e[7]&&!e[3]?s?(s.p(e,n),136&n[0]&&ve(s,1)):(s=Ki(e),s.c(),ve(s,1),s.m(o.parentNode,o)):s&&(de(),pe(s,1,1,(()=>{s=null})),ue())},i(e){l||(ve(a),ve(i.$$.fragment,e),ve(s),l=!0)},o(e){pe(a),pe(i.$$.fragment,e),pe(s),l=!1},d(e){a&&a.d(e),e&&T(t),fe(i,e),e&&T(n),s&&s.d(e),e&&T(o)}}}function Ui(e){let t,i;return t=new ft({props:{className:'controls-element',disabled:!e[9],$$slots:{default:[Oi]},$$scope:{ctx:e}}}),{c(){he(t.$$.fragment)},m(e,n){ge(t,e,n),i=!0},p(e,i){const n={};512&i[0]&&(n.disabled=!e[9]),8704&i[0]|16&i[2]&&(n.$$scope={dirty:i,ctx:e}),t.$set(n)},i(e){i||(ve(t.$$.fragment,e),i=!0)},o(e){pe(t.$$.fragment,e),i=!1},d(e){fe(t,e)}}}function Oi(e){let t,i;return t=new _t({props:{type:'prev',disabled:!e[9]}}),t.$on('click',(function(){y(e[13])&&e[13].apply(this,arguments)})),{c(){he(t.$$.fragment)},m(e,n){ge(t,e,n),i=!0},p(i,n){e=i;const o={};512&n[0]&&(o.disabled=!e[9]),t.$set(o)},i(e){i||(ve(t.$$.fragment,e),i=!0)},o(e){pe(t.$$.fragment,e),i=!1},d(e){fe(t,e)}}}function Qi(e){let t,i;return t=new Et({props:{className:'controls-play-button',playbackState:e[31],adPlaybackState:e[32],isAds:e[3],handlePlayClick:e[41],repeatPlaylist:e[14],isEnded:e[33],isOneVideoPlaylist:e[10]}}),{c(){he(t.$$.fragment)},m(e,n){ge(t,e,n),i=!0},p(e,i){const n={};1&i[1]&&(n.playbackState=e[31]),2&i[1]&&(n.adPlaybackState=e[32]),8&i[0]&&(n.isAds=e[3]),16384&i[0]&&(n.repeatPlaylist=e[14]),4&i[1]&&(n.isEnded=e[33]),1024&i[0]&&(n.isOneVideoPlaylist=e[10]),t.$set(n)},i(e){i||(ve(t.$$.fragment,e),i=!0)},o(e){pe(t.$$.fragment,e),i=!1},d(e){fe(t,e)}}}function Ki(e){let t,i;return t=new ft({props:{className:'controls-element',disabled:!e[8],$$slots:{default:[Wi]},$$scope:{ctx:e}}}),{c(){he(t.$$.fragment)},m(e,n){ge(t,e,n),i=!0},p(e,i){const n={};256&i[0]&&(n.disabled=!e[8]),4352&i[0]|16&i[2]&&(n.$$scope={dirty:i,ctx:e}),t.$set(n)},i(e){i||(ve(t.$$.fragment,e),i=!0)},o(e){pe(t.$$.fragment,e),i=!1},d(e){fe(t,e)}}}function Wi(e){let t,i;return t=new _t({props:{type:'next',disabled:!e[8]}}),t.$on('click',(function(){y(e[12])&&e[12].apply(this,arguments)})),{c(){he(t.$$.fragment)},m(e,n){ge(t,e,n),i=!0},p(i,n){e=i;const o={};256&n[0]&&(o.disabled=!e[8]),t.$set(o)},i(e){i||(ve(t.$$.fragment,e),i=!0)},o(e){pe(t.$$.fragment,e),i=!1},d(e){fe(t,e)}}}function Yi(e){let t,i;return t=new ft({props:{className:'controls-element',$$slots:{default:[Xi]},$$scope:{ctx:e}}}),{c(){he(t.$$.fragment)},m(e,n){ge(t,e,n),i=!0},p(e,i){const n={};32&i[1]|16&i[2]&&(n.$$scope={dirty:i,ctx:e}),t.$set(n)},i(e){i||(ve(t.$$.fragment,e),i=!0)},o(e){pe(t.$$.fragment,e),i=!1},d(e){fe(t,e)}}}function Xi(e){let t,i;return t=new si({props:{isActiveLive:e[36]}}),t.$on('click',e[61]),{c(){he(t.$$.fragment)},m(e,n){ge(t,e,n),i=!0},p(e,i){const n={};32&i[1]&&(n.isActiveLive=e[36]),t.$set(n)},i(e){i||(ve(t.$$.fragment,e),i=!0)},o(e){pe(t.$$.fragment,e),i=!1},d(e){fe(t,e)}}}function Gi(e){let t,i;return t=new qi({props:{isHidden:!e[23],isAds:e[3],canRewindLive:e[4],className:'controls-element'}}),{c(){he(t.$$.fragment)},m(e,n){ge(t,e,n),i=!0},p(e,i){const n={};8388608&i[0]&&(n.isHidden=!e[23]),8&i[0]&&(n.isAds=e[3]),16&i[0]&&(n.canRewindLive=e[4]),t.$set(n)},i(e){i||(ve(t.$$.fragment,e),i=!0)},o(e){pe(t.$$.fragment,e),i=!1},d(e){fe(t,e)}}}function Ji(e){let t,i;return t=new lt({props:{className:'ui-time controls-element',showDuration:e[20],position:e[3]?e[34]:e[37],duration:e[3]?e[35]:e[38]}}),{c(){he(t.$$.fragment)},m(e,n){ge(t,e,n),i=!0},p(e,i){const n={};1048576&i[0]&&(n.showDuration=e[20]),8&i[0]|72&i[1]&&(n.position=e[3]?e[34]:e[37]),8&i[0]|144&i[1]&&(n.duration=e[3]?e[35]:e[38]),t.$set(n)},i(e){i||(ve(t.$$.fragment,e),i=!0)},o(e){pe(t.$$.fragment,e),i=!1},d(e){fe(t,e)}}}function Zi(e){let t,i;return t=new qi({props:{isAds:e[3],canRewindLive:e[4],className:'controls-element'}}),{c(){he(t.$$.fragment)},m(e,n){ge(t,e,n),i=!0},p(e,i){const n={};8&i[0]&&(n.isAds=e[3]),16&i[0]&&(n.canRewindLive=e[4]),t.$set(n)},i(e){i||(ve(t.$$.fragment,e),i=!0)},o(e){pe(t.$$.fragment,e),i=!1},d(e){fe(t,e)}}}function en(e){let t,i,n,o;t=new ft({props:{className:'controls-element',$$slots:{default:[tn]},$$scope:{ctx:e}}});let l=!e[39]&&!e[3]&&nn(e);return{c(){he(t.$$.fragment),i=j(),l&&l.c(),n=R()},m(e,a){ge(t,e,a),q(e,i,a),l&&l.m(e,a),q(e,n,a),o=!0},p(e,i){const o={};524288&i[0]|16&i[2]&&(o.$$scope={dirty:i,ctx:e}),t.$set(o),e[39]||e[3]?l&&(de(),pe(l,1,1,(()=>{l=null})),ue()):l?(l.p(e,i),8&i[0]|256&i[1]&&ve(l,1)):(l=nn(e),l.c(),ve(l,1),l.m(n.parentNode,n))},i(e){o||(ve(t.$$.fragment,e),ve(l),o=!0)},o(e){pe(t.$$.fragment,e),pe(l),o=!1},d(e){fe(t,e),e&&T(i),l&&l.d(e),e&&T(n)}}}function tn(e){let t,i;return t=new pt({props:{isVerticalVolume:e[19]}}),t.$on('click',e[40]),{c(){he(t.$$.fragment)},m(e,n){ge(t,e,n),i=!0},p(e,i){const n={};524288&i[0]&&(n.isVerticalVolume=e[19]),t.$set(n)},i(e){i||(ve(t.$$.fragment,e),i=!0)},o(e){pe(t.$$.fragment,e),i=!1},d(e){fe(t,e)}}}function nn(e){let t,i,n,o,l;i=new Ye({props:{supportLink:e[11]}});let a=e[22]&&on(e);return{c(){t=B('div'),he(i.$$.fragment),n=j(),a&&a.c(),o=R(),D(t,'class','settings-desktop v-1qfxnal')},m(e,s){q(e,t,s),ge(i,t,null),q(e,n,s),a&&a.m(e,s),q(e,o,s),l=!0},p(e,t){const n={};2048&t[0]&&(n.supportLink=e[11]),i.$set(n),e[22]?a?4194304&t[0]&&ve(a,1):(a=on(e),a.c(),ve(a,1),a.m(o.parentNode,o)):a&&(de(),pe(a,1,1,(()=>{a=null})),ue())},i(e){l||(ve(i.$$.fragment,e),ve(a),l=!0)},o(e){pe(i.$$.fragment,e),pe(a),l=!1},d(e){e&&T(t),fe(i),e&&T(n),a&&a.d(e),e&&T(o)}}}function on(e){let t,i;return t=new ft({props:{className:'controls-element',$$slots:{default:[ln]},$$scope:{ctx:e}}}),{c(){he(t.$$.fragment)},m(e,n){ge(t,e,n),i=!0},i(e){i||(ve(t.$$.fragment,e),i=!0)},o(e){pe(t.$$.fragment,e),i=!1},d(e){fe(t,e)}}}function ln(e){let t,i;return t=new Ze({props:{className:'ui-settings'}}),{c(){he(t.$$.fragment)},m(e,n){ge(t,e,n),i=!0},p:f,i(e){i||(ve(t.$$.fragment,e),i=!0)},o(e){pe(t.$$.fragment,e),i=!1},d(e){fe(t,e)}}}function an(e){let t,i;return t=new ft({props:{className:'controls-element',$$slots:{default:[sn]},$$scope:{ctx:e}}}),{c(){he(t.$$.fragment)},m(e,n){ge(t,e,n),i=!0},p(e,i){const n={};32768&i[0]|16&i[2]&&(n.$$scope={dirty:i,ctx:e}),t.$set(n)},i(e){i||(ve(t.$$.fragment,e),i=!0)},o(e){pe(t.$$.fragment,e),i=!1},d(e){fe(t,e)}}}function sn(e){let t,i;return t=new kt({}),t.$on('click',(function(){y(e[15])&&e[15].apply(this,arguments)})),{c(){he(t.$$.fragment)},m(e,n){ge(t,e,n),i=!0},p(t,i){e=t},i(e){i||(ve(t.$$.fragment,e),i=!0)},o(e){pe(t.$$.fragment,e),i=!1},d(e){fe(t,e)}}}function rn(e){let t,i,n,o=e[21]&&cn(e),l=!e[6]&&un(e);return{c(){o&&o.c(),t=j(),l&&l.c(),i=R()},m(e,a){o&&o.m(e,a),q(e,t,a),l&&l.m(e,a),q(e,i,a),n=!0},p(e,n){e[21]?o?(o.p(e,n),2097152&n[0]&&ve(o,1)):(o=cn(e),o.c(),ve(o,1),o.m(t.parentNode,t)):o&&(de(),pe(o,1,1,(()=>{o=null})),ue()),e[6]?l&&(de(),pe(l,1,1,(()=>{l=null})),ue()):l?(l.p(e,n),64&n[0]&&ve(l,1)):(l=un(e),l.c(),ve(l,1),l.m(i.parentNode,i))},i(e){n||(ve(o),ve(l),n=!0)},o(e){pe(o),pe(l),n=!1},d(e){o&&o.d(e),e&&T(t),l&&l.d(e),e&&T(i)}}}function cn(e){let t,i;return t=new ft({props:{className:'controls-element',$$slots:{default:[dn]},$$scope:{ctx:e}}}),{c(){he(t.$$.fragment)},m(e,n){ge(t,e,n),i=!0},p(e,i){const n={};16&i[2]&&(n.$$scope={dirty:i,ctx:e}),t.$set(n)},i(e){i||(ve(t.$$.fragment,e),i=!0)},o(e){pe(t.$$.fragment,e),i=!1},d(e){fe(t,e)}}}function dn(e){let t,i;return t=new ni({props:{className:'ui-chromecast'}}),t.$on('click',e[60]),{c(){he(t.$$.fragment)},m(e,n){ge(t,e,n),i=!0},p:f,i(e){i||(ve(t.$$.fragment,e),i=!0)},o(e){pe(t.$$.fragment,e),i=!1},d(e){fe(t,e)}}}function un(e){let t,i;return t=new ft({props:{className:'controls-element',disabled:!e[5],$$slots:{default:[vn]},$$scope:{ctx:e}}}),{c(){he(t.$$.fragment)},m(e,n){ge(t,e,n),i=!0},p(e,i){const n={};32&i[0]&&(n.disabled=!e[5]),32&i[0]|16&i[2]&&(n.$$scope={dirty:i,ctx:e}),t.$set(n)},i(e){i||(ve(t.$$.fragment,e),i=!0)},o(e){pe(t.$$.fragment,e),i=!1},d(e){fe(t,e)}}}function vn(e){let t,i;return t=new Yt({props:{logoClickable:e[5]}}),t.$on('click',e[42]),{c(){he(t.$$.fragment)},m(e,n){ge(t,e,n),i=!0},p(e,i){const n={};32&i[0]&&(n.logoClickable=e[5]),t.$set(n)},i(e){i||(ve(t.$$.fragment,e),i=!0)},o(e){pe(t.$$.fragment,e),i=!1},d(e){fe(t,e)}}}function pn(e){let t,i,n;return i=new Ye({props:{supportLink:e[11]}}),{c(){t=B('div'),he(i.$$.fragment),D(t,'class','settings-mobile v-1qfxnal')},m(e,o){q(e,t,o),ge(i,t,null),n=!0},p(e,t){const n={};2048&t[0]&&(n.supportLink=e[11]),i.$set(n)},i(e){n||(ve(i.$$.fragment,e),n=!0)},o(e){pe(i.$$.fragment,e),n=!1},d(e){e&&T(t),fe(i)}}}function mn(e){let t,i,n,o,l,a,s,r,c,d,u,v,p,m,h=e[18]&&!e[3]&&Ei(e),g=e[18]&&e[3]&&e[32]!==At.INACTIVE&&Ri(e),f=!e[18]&&Di(e),b=!e[3]&&e[17]&&Yi(e),w=!e[18]&&Gi(e),$=e[25]&&Ji(e),y=e[18]&&Zi(e),x=!e[18]&&en(e),k=e[24]&&an(e),V=!e[18]&&rn(e),P=e[18]&&e[16]&&pn(e);return{c(){h&&h.c(),t=j(),g&&g.c(),i=j(),n=B('div'),o=B('div'),f&&f.c(),l=j(),b&&b.c(),a=j(),w&&w.c(),s=j(),$&&$.c(),r=j(),y&&y.c(),c=j(),x&&x.c(),d=j(),k&&k.c(),u=j(),V&&V.c(),v=j(),P&&P.c(),p=R(),D(o,'class','controls v-1qfxnal'),Q(o,'controls-hidden',!e[2]),Q(o,'controls-fullscreen-mobile',e[27]&&e[18]),D(n,'class','wrapper-bottom v-1qfxnal'),Q(n,'hidden',e[1]),Q(n,'controls-hidden',!e[2]),Q(n,'wrapper-bottom-fullscreen-desktop',e[27]&&!e[18])},m(z,A){h&&h.m(z,A),q(z,t,A),g&&g.m(z,A),q(z,i,A),q(z,n,A),L(n,o),f&&f.m(o,null),L(o,l),b&&b.m(o,null),L(o,a),w&&w.m(o,null),L(o,s),$&&$.m(o,null),L(o,r),y&&y.m(o,null),L(o,c),x&&x.m(o,null),L(o,d),k&&k.m(o,null),L(o,u),V&&V.m(o,null),e[64](n),q(z,v,A),P&&P.m(z,A),q(z,p,A),m=!0},p(e,v){e[18]&&!e[3]?h?(h.p(e,v),262152&v[0]&&ve(h,1)):(h=Ei(e),h.c(),ve(h,1),h.m(t.parentNode,t)):h&&(de(),pe(h,1,1,(()=>{h=null})),ue()),e[18]&&e[3]&&e[32]!==At.INACTIVE?g?(g.p(e,v),262152&v[0]|2&v[1]&&ve(g,1)):(g=Ri(e),g.c(),ve(g,1),g.m(i.parentNode,i)):g&&(de(),pe(g,1,1,(()=>{g=null})),ue()),e[18]?f&&(de(),pe(f,1,1,(()=>{f=null})),ue()):f?(f.p(e,v),262144&v[0]&&ve(f,1)):(f=Di(e),f.c(),ve(f,1),f.m(o,l)),!e[3]&&e[17]?b?(b.p(e,v),131080&v[0]&&ve(b,1)):(b=Yi(e),b.c(),ve(b,1),b.m(o,a)):b&&(de(),pe(b,1,1,(()=>{b=null})),ue()),e[18]?w&&(de(),pe(w,1,1,(()=>{w=null})),ue()):w?(w.p(e,v),262144&v[0]&&ve(w,1)):(w=Gi(e),w.c(),ve(w,1),w.m(o,s)),e[25]?$?($.p(e,v),33554432&v[0]&&ve($,1)):($=Ji(e),$.c(),ve($,1),$.m(o,r)):$&&(de(),pe($,1,1,(()=>{$=null})),ue()),e[18]?y?(y.p(e,v),262144&v[0]&&ve(y,1)):(y=Zi(e),y.c(),ve(y,1),y.m(o,c)):y&&(de(),pe(y,1,1,(()=>{y=null})),ue()),e[18]?x&&(de(),pe(x,1,1,(()=>{x=null})),ue()):x?(x.p(e,v),262144&v[0]&&ve(x,1)):(x=en(e),x.c(),ve(x,1),x.m(o,d)),e[24]?k?(k.p(e,v),16777216&v[0]&&ve(k,1)):(k=an(e),k.c(),ve(k,1),k.m(o,u)):k&&(de(),pe(k,1,1,(()=>{k=null})),ue()),e[18]?V&&(de(),pe(V,1,1,(()=>{V=null})),ue()):V?(V.p(e,v),262144&v[0]&&ve(V,1)):(V=rn(e),V.c(),ve(V,1),V.m(o,null)),4&v[0]&&Q(o,'controls-hidden',!e[2]),134479872&v[0]&&Q(o,'controls-fullscreen-mobile',e[27]&&e[18]),2&v[0]&&Q(n,'hidden',e[1]),4&v[0]&&Q(n,'controls-hidden',!e[2]),134479872&v[0]&&Q(n,'wrapper-bottom-fullscreen-desktop',e[27]&&!e[18]),e[18]&&e[16]?P?(P.p(e,v),327680&v[0]&&ve(P,1)):(P=pn(e),P.c(),ve(P,1),P.m(p.parentNode,p)):P&&(de(),pe(P,1,1,(()=>{P=null})),ue())},i(e){m||(ve(h),ve(g),ve(f),ve(b),ve(w),ve($),ve(y),ve(x),ve(k),ve(V),ve(P),m=!0)},o(e){pe(h),pe(g),pe(f),pe(b),pe(w),pe($),pe(y),pe(x),pe(k),pe(V),pe(P),m=!1},d(o){h&&h.d(o),o&&T(t),g&&g.d(o),o&&T(i),o&&T(n),f&&f.d(),b&&b.d(),w&&w.d(),$&&$.d(),y&&y.d(),x&&x.d(),k&&k.d(),V&&V.d(),e[64](null),o&&T(v),P&&P.d(o),o&&T(p)}}}function hn(e,t,i){let n,o,l,a,s,r,c,d,u,v,p,m,h,g,f,b,w,{hidden:$}=t,{showControls:y}=t,{controlsElementRef:x}=t,{isAds:k=!1}=t,{canRewindLive:V}=t,{logoClickable:P}=t,{logoHidden:z}=t,{showNextPrevButtons:A}=t,{nextButtonActive:S}=t,{prevButtonActive:M}=t,{isOneVideoPlaylist:L=!1}=t,{supportLink:N}=t,{playNextVideo:q}=t,{playPrevVideo:T}=t,{repeatPlaylist:E}=t,{toggleFullscreen:B}=t;const I=Ae(),F=I.actions.internal.toggleMuted,j=I.actions.internal.togglePlay,R=I.actions.internal.pause,H=I.state.duration$;C(e,H,(e=>i(38,b=e)));const _=I.state.positionWithScrubbing$;C(e,_,(e=>i(37,f=e)));const D=I.state.playbackState$;C(e,D,(e=>i(31,u=e)));const U=I.state.chromecastConnected$;C(e,U,(e=>i(39,w=e)));const O=I.state.isEnded$;C(e,O,(e=>i(33,p=e)));const Q=I.state.isLive$;C(e,Q,(e=>i(17,l=e)));const K=I.state.isActiveLive$;C(e,K,(e=>i(36,g=e)));const W=I.ui.scrubbingInProgress;C(e,W,(e=>i(30,d=e)));const Y=I.ui.isMobile;C(e,Y,(e=>i(18,a=e)));const X=I.ui.mobileUnmuteButtonExpanded;C(e,X,(e=>i(29,c=e)));const G=I.ui.mobileUnmuteButtonVisible;C(e,G,(e=>i(28,r=e)));const Z=I.ui.settingsMenuVisible;C(e,Z,(e=>i(16,n=e)));const ee=I.ads.duration;C(e,ee,(e=>i(35,h=e)));const te=I.ads.position;C(e,te,(e=>i(34,m=e)));const ie=I.ads.playbackState;C(e,ie,(e=>i(32,v=e)));const ne=I.ui.isFullscreen;C(e,ne,(e=>i(27,s=e)));const oe=I.ui.playerSize;C(e,oe,(e=>i(63,o=e)));let le,ae,se,re,ce,de,ue,ve;return e.$$set=e=>{'hidden'in e&&i(1,$=e.hidden),'showControls'in e&&i(2,y=e.showControls),'controlsElementRef'in e&&i(0,x=e.controlsElementRef),'isAds'in e&&i(3,k=e.isAds),'canRewindLive'in e&&i(4,V=e.canRewindLive),'logoClickable'in e&&i(5,P=e.logoClickable),'logoHidden'in e&&i(6,z=e.logoHidden),'showNextPrevButtons'in e&&i(7,A=e.showNextPrevButtons),'nextButtonActive'in e&&i(8,S=e.nextButtonActive),'prevButtonActive'in e&&i(9,M=e.prevButtonActive),'isOneVideoPlaylist'in e&&i(10,L=e.isOneVideoPlaylist),'supportLink'in e&&i(11,N=e.supportLink),'playNextVideo'in e&&i(12,q=e.playNextVideo),'playPrevVideo'in e&&i(13,T=e.playPrevVideo),'repeatPlaylist'in e&&i(14,E=e.repeatPlaylist),'toggleFullscreen'in e&&i(15,B=e.toggleFullscreen)},e.$$.update=()=>{2&e.$$.dirty[2]&&i(19,le=o.width<600),262144&e.$$.dirty[0]|2&e.$$.dirty[2]&&i(20,ae=a||o.width>550),262144&e.$$.dirty[0]|2&e.$$.dirty[2]&&i(21,se=a||o.width>450),262144&e.$$.dirty[0]|2&e.$$.dirty[2]&&i(22,re=a||o.width>380),262144&e.$$.dirty[0]|2&e.$$.dirty[2]&&i(23,ce=a||o.width>300),262144&e.$$.dirty[0]|2&e.$$.dirty[2]&&i(24,de=a||o.width>220),131080&e.$$.dirty[0]|2&e.$$.dirty[2]&&i(25,ue=(!l||k)&&o.width>200),65540&e.$$.dirty[0]&&i(26,ve=n||y)},[x,$,y,k,V,P,z,A,S,M,L,N,q,T,E,B,n,l,a,le,ae,se,re,ce,de,ue,ve,s,r,c,d,u,v,p,m,h,g,f,b,w,F,j,R,H,_,D,U,O,Q,K,W,Y,X,G,Z,ee,te,ie,ne,oe,()=>I.actions.internal.toggleChromecast(),()=>I.actions.internal.switchToActiveLive(),function(){G.set(!1),F()},o,function(e){J[e?'unshift':'push']((()=>{x=e,i(0,x)}))}]}class gn extends $e{constructor(e){super(),we(this,e,hn,mn,x,{hidden:1,showControls:2,controlsElementRef:0,isAds:3,canRewindLive:4,logoClickable:5,logoHidden:6,showNextPrevButtons:7,nextButtonActive:8,prevButtonActive:9,isOneVideoPlaylist:10,supportLink:11,playNextVideo:12,playPrevVideo:13,repeatPlaylist:14,toggleFullscreen:15},Ti,[-1,-1,-1])}}function fn(e){N(e,'v-y9pij4','.container.v-y9pij4.v-y9pij4{position:absolute;top:0;bottom:0;left:0;right:0;background-position:center;background-size:cover;cursor:pointer;transition:opacity 0.2s, visibility 0.2s;will-change:opacity}.container.hidden.v-y9pij4.v-y9pij4{opacity:0;visibility:hidden}.playButton.v-y9pij4.v-y9pij4{position:absolute;top:0;bottom:0;left:0;right:0;margin:auto;width:var(--videoplayer-big-play-size);height:var(--videoplayer-big-play-size);display:flex;align-items:center;justify-content:center}.playButtonBackground.v-y9pij4.v-y9pij4{position:absolute;top:0;bottom:0;left:0;right:0;border-radius:var(--videoplayer-big-play-radius);background-color:var(--videoplayer-big-play-bg-color);transition:background 0.2s, transform 0.2s;transition-timing-function:ease-out;will-change:background, transform}.container.v-y9pij4:hover .playButtonBackground.v-y9pij4{background-color:var(--videoplayer-big-play-hover-bg-color);transform:scale(1.15)}.playButtonIcon.v-y9pij4.v-y9pij4{position:relative;width:48px;height:48px}')}function bn(e){let t,i,n,o,l,a,s,r,c;return{c(){t=B('div'),i=B('div'),n=B('div'),o=j(),l=B('img'),D(n,'class','playButtonBackground v-y9pij4'),P(l.src,a=Ct)||D(l,'src','data:image/svg+xml,%3csvg width=\'24\' height=\'24\' fill=\'none\' xmlns=\'http://www.w3.org/2000/svg\'%3e%3cpath d=\'M17.671 10.923c.82.483.82 1.67 0 2.154l-8.787 5.175A1.25 1.25 0 0 1 7 17.174V6.826a1.25 1.25 0 0 1 1.884-1.078l8.787 5.175z\' fill=\'white\'/%3e%3c/svg%3e'),D(l,'class','playButtonIcon v-y9pij4'),D(l,'alt',''),D(i,'class','playButton v-y9pij4'),D(t,'class','container v-y9pij4'),D(t,'style',s=`background-color: #222; background-image: url('${e[0]||''}')`),Q(t,'hidden',e[1])},m(a,s){q(a,t,s),L(t,i),L(i,n),L(i,o),L(i,l),r||(c=H(t,'click',(function(){y(e[2])&&e[2].apply(this,arguments)})),r=!0)},p(i,[n]){e=i,1&n&&s!==(s=`background-color: #222; background-image: url('${e[0]||''}')`)&&D(t,'style',s),2&n&&Q(t,'hidden',e[1])},i:f,o:f,d(e){e&&T(t),r=!1,c()}}}function wn(e,t,i){let{thumbUrl:n}=t,{hidden:o}=t,{startVideo:l}=t;return e.$$set=e=>{'thumbUrl'in e&&i(0,n=e.thumbUrl),'hidden'in e&&i(1,o=e.hidden),'startVideo'in e&&i(2,l=e.startVideo)},[n,o,l]}class $n extends $e{constructor(e){super(),we(this,e,wn,bn,x,{thumbUrl:0,hidden:1,startVideo:2},fn)}}function yn(e){N(e,'v-8nkw5s','.container.v-8nkw5s.v-8nkw5s{position:absolute;top:50%;left:50%;transform:translate(-50%, -50%);pointer-events:none;display:flex}.dot.v-8nkw5s.v-8nkw5s:nth-child(1){animation-delay:calc(0 * 180ms)}.dot.v-8nkw5s.v-8nkw5s:nth-child(2){animation-delay:calc(1 * 180ms)}.dot.v-8nkw5s.v-8nkw5s:nth-child(3){animation-delay:calc(2 * 180ms)}@keyframes v-8nkw5s-dot_animation{0%{opacity:0.2}30%{opacity:1}100%{opacity:0.2}}.dot.v-8nkw5s.v-8nkw5s{border-radius:4px;width:8px;height:8px;background:var(--white);animation-duration:750ms;animation-name:v-8nkw5s-dot_animation;animation-iteration-count:infinite}.dot.v-8nkw5s+.dot.v-8nkw5s{margin-left:4px}')}function xn(e){let t;return{c(){t=B('div'),t.innerHTML='<div class="dot v-8nkw5s"></div> \n <div class="dot v-8nkw5s"></div> \n <div class="dot v-8nkw5s"></div>',D(t,'class','container v-8nkw5s')},m(e,i){q(e,t,i)},p:f,i:f,o:f,d(e){e&&T(t)}}}class kn extends $e{constructor(e){super(),we(this,e,null,xn,x,{},yn)}}function Vn(e){const t=Ae();return Y((()=>{t.getAdmanWrapper().startPostroll()})),[]}class Pn extends $e{constructor(e){super(),we(this,e,Vn,null,x,{})}}function zn(e){N(e,'v-17pubzn','.container.v-17pubzn{position:absolute;top:14px;left:16px;padding:4px 8px;font-size:13px;color:var(--white);background:rgba(0, 0, 0, 0.35);border-radius:4px}.container-mobile.v-17pubzn{font-size:15px;background:unset;border-radius:unset}')}function An(e){let t,i,n;return{c(){t=B('div'),i=F('Реклама '),n=F(e[0]),D(t,'class','container v-17pubzn'),Q(t,'container-mobile',e[1])},m(e,o){q(e,t,o),L(t,i),L(t,n)},p(e,[i]){1&i&&U(n,e[0]),2&i&&Q(t,'container-mobile',e[1])},i:f,o:f,d(e){e&&T(t)}}}function Cn(e,t,i){let n,{position:o=0}=t,{duration:l=0}=t;const a=Ae().ui.isMobile;let s;return C(e,a,(e=>i(1,n=e))),e.$$set=e=>{'position'in e&&i(3,o=e.position),'duration'in e&&i(4,l=e.duration)},e.$$.update=()=>{24&e.$$.dirty&&i(0,s=et(l-o))},[s,n,a,o,l]}class Sn extends $e{constructor(e){super(),we(this,e,Cn,An,x,{position:3,duration:4},zn)}}function Mn(e){N(e,'v-22jj8o','.container.v-22jj8o.v-22jj8o{position:absolute;top:14px;right:16px;padding:4px 8px;font-size:13px;color:#bbb;background:rgba(0, 0, 0, 0.35);border-radius:4px;transition:color .2s}.container-mobile.v-22jj8o.v-22jj8o{bottom:14px;top:unset;font-size:15px;max-width:142px}.icon.v-22jj8o.v-22jj8o{margin-left:4px;position:relative;top:2px;fill:var(--white);transition:fill .2s}.skip.v-22jj8o.v-22jj8o{width:86px}.skippable.v-22jj8o.v-22jj8o{cursor:pointer;color:var(--white)}.skippable.v-22jj8o.v-22jj8o:hover{color:rgba(255, 255, 255, .75)}.skippable.v-22jj8o:hover .icon.v-22jj8o{fill:rgba(255, 255, 255, .75)}')}function Ln(e){let t,i,n,o=Math.ceil(e[1]-e[0])+'';return{c(){t=F('Пропустить рекламу через '),i=F(o),n=F(' с')},m(e,o){q(e,t,o),q(e,i,o),q(e,n,o)},p(e,t){3&t&&o!==(o=Math.ceil(e[1]-e[0])+'')&&U(i,o)},d(e){e&&T(t),e&&T(i),e&&T(n)}}}function Nn(e){let t,i,n;return{c(){t=B('div'),t.innerHTML='Пропустить рекламу\n <svg class="icon v-22jj8o" width="7" height="12" viewBox="0 0 7 12" fill="none" xmlns="http://www.w3.org/2000/svg"><path fill-rule="evenodd" clip-rule="evenodd" 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"></path></svg>',D(t,'class','skip v-22jj8o')},m(o,l){q(o,t,l),i||(n=H(t,'click',(function(){y(e[2])&&e[2].apply(this,arguments)})),i=!0)},p(t,i){e=t},d(e){e&&T(t),i=!1,n()}}}function qn(e){let t;function i(e,t){return e[3]?Nn:Ln}let n=i(e),o=n(e);return{c(){t=B('div'),o.c(),D(t,'class','container v-22jj8o'),Q(t,'container-mobile',e[4]),Q(t,'skippable',e[3])},m(e,i){q(e,t,i),o.m(t,null)},p(e,[l]){n===(n=i(e))&&o?o.p(e,l):(o.d(1),o=n(e),o&&(o.c(),o.m(t,null))),16&l&&Q(t,'container-mobile',e[4]),8&l&&Q(t,'skippable',e[3])},i:f,o:f,d(e){e&&T(t),o.d()}}}function Tn(e,t,i){let n,{position:o=0}=t,{secondsToWatchBeforeSkip:l=0}=t,{skipAd:a=f}=t;const s=Ae().ui.isMobile;let r;return C(e,s,(e=>i(4,n=e))),e.$$set=e=>{'position'in e&&i(0,o=e.position),'secondsToWatchBeforeSkip'in e&&i(1,l=e.secondsToWatchBeforeSkip),'skipAd'in e&&i(2,a=e.skipAd)},e.$$.update=()=>{3&e.$$.dirty&&i(3,r=o>0&&o>=l)},[o,l,a,r,n,s]}class En extends $e{constructor(e){super(),we(this,e,Tn,qn,x,{position:0,secondsToWatchBeforeSkip:1,skipAd:2},Mn)}}function Bn(e){N(e,'v-1wy3dql','button.v-1wy3dql{position:absolute;pointer-events:none;bottom:14px;left:16px;font-size:15px;background:white;border:none;padding:6px 10px;border-radius:6px;color:black}')}function In(e){let t;return{c(){t=B('button'),t.textContent='Перейти на сайт',D(t,'class','v-1wy3dql')},m(e,i){q(e,t,i)},p:f,i:f,o:f,d(e){e&&T(t)}}}class Fn extends $e{constructor(e){super(),we(this,e,null,In,x,{},Bn)}}function jn(e){N(e,'v-354ajf','.container.v-354ajf{width:100%;height:100%}.top-gradient-mobile.v-354ajf{position:absolute;width:100%;height:80px;top:0;left:0;pointer-events:none;background:linear-gradient(\n 360deg,\n rgba(0, 0, 0, 0) 0%,\n rgba(0, 0, 0, 0.05) 12%,\n rgba(0, 0, 0, 0.15) 25%,\n rgba(0, 0, 0, 0.3) 45%,\n rgba(0, 0, 0, 0.4) 57%,\n rgba(0, 0, 0, 0.5) 77%,\n rgba(0, 0, 0, 0.55) 88%,\n rgba(0, 0, 0, 0.65) 100%\n )}')}function Rn(e){let t;return{c(){t=B('div'),D(t,'class','top-gradient-mobile v-354ajf')},m(e,i){q(e,t,i)},d(e){e&&T(t)}}}function Hn(e){let t,i;return t=new Sn({props:{position:e[6],duration:e[7]}}),{c(){he(t.$$.fragment)},m(e,n){ge(t,e,n),i=!0},p(e,i){const n={};64&i&&(n.position=e[6]),128&i&&(n.duration=e[7]),t.$set(n)},i(e){i||(ve(t.$$.fragment,e),i=!0)},o(e){pe(t.$$.fragment,e),i=!1},d(e){fe(t,e)}}}function _n(e){let t,i;return t=new En({props:{position:e[6],secondsToWatchBeforeSkip:e[8],skipAd:e[10].actions.internal.skipAd}}),{c(){he(t.$$.fragment)},m(e,n){ge(t,e,n),i=!0},p(e,i){const n={};64&i&&(n.position=e[6]),256&i&&(n.secondsToWatchBeforeSkip=e[8]),t.$set(n)},i(e){i||(ve(t.$$.fragment,e),i=!0)},o(e){pe(t.$$.fragment,e),i=!1},d(e){fe(t,e)}}}function Dn(e){let t,i;return t=new Pn({}),{c(){he(t.$$.fragment)},m(e,n){ge(t,e,n),i=!0},i(e){i||(ve(t.$$.fragment,e),i=!0)},o(e){pe(t.$$.fragment,e),i=!1},d(e){fe(t,e)}}}function Un(e){let t,i;return t=new Fn({}),{c(){he(t.$$.fragment)},m(e,n){ge(t,e,n),i=!0},i(e){i||(ve(t.$$.fragment,e),i=!0)},o(e){pe(t.$$.fragment,e),i=!1},d(e){fe(t,e)}}}function On(e){let t,i,n,o,l,a,s,r,c=e[0]&&Rn(),d=e[3]&&Hn(e),u=e[4]&&_n(e),v=e[9]&&Dn(),p=e[5]&&Un();return{c(){t=B('div'),c&&c.c(),i=j(),n=B('video'),o=j(),d&&d.c(),l=j(),u&&u.c(),a=j(),v&&v.c(),s=j(),p&&p.c(),O(n,'width','100%'),O(n,'height','100%'),n.playsInline=!0,D(t,'class','container v-354ajf')},m(m,h){q(m,t,h),c&&c.m(t,null),L(t,i),L(t,n),e[22](n),L(t,o),d&&d.m(t,null),L(t,l),u&&u.m(t,null),L(t,a),v&&v.m(t,null),L(t,s),p&&p.m(t,null),e[23](t),r=!0},p(e,[n]){e[0]?c||(c=Rn(),c.c(),c.m(t,i)):c&&(c.d(1),c=null),e[3]?d?(d.p(e,n),8&n&&ve(d,1)):(d=Hn(e),d.c(),ve(d,1),d.m(t,l)):d&&(de(),pe(d,1,1,(()=>{d=null})),ue()),e[4]?u?(u.p(e,n),16&n&&ve(u,1)):(u=_n(e),u.c(),ve(u,1),u.m(t,a)):u&&(de(),pe(u,1,1,(()=>{u=null})),ue()),e[9]?v?512&n&&ve(v,1):(v=Dn(),v.c(),ve(v,1),v.m(t,s)):v&&(de(),pe(v,1,1,(()=>{v=null})),ue()),e[5]?p?32&n&&ve(p,1):(p=Un(),p.c(),ve(p,1),p.m(t,null)):p&&(de(),pe(p,1,1,(()=>{p=null})),ue())},i(e){r||(ve(d),ve(u),ve(v),ve(p),r=!0)},o(e){pe(d),pe(u),pe(v),pe(p),r=!1},d(i){i&&T(t),c&&c.d(),e[22](null),d&&d.d(),u&&u.d(),v&&v.d(),p&&p.d(),e[23](null)}}}function Qn(e,t,i){let n,o,l,a,s,r,{adsSlotId:c}=t,{adsParams:d}=t,{adsPreviewParam:u}=t,{duration:v=0}=t;const p=Ae(),m=p.state.isEnded$;C(e,m,(e=>i(9,r=e)));const h=p.ui.isMobile;let g,f;C(e,h,(e=>i(0,o=e)));let b=!1;const w=p.ads.playbackState;C(e,w,(e=>i(21,n=e)));const $=p.ads.canSkip,y=p.ads.duration;C(e,y,(e=>i(7,a=e)));const x=p.ads.position;C(e,x,(e=>i(6,l=e)));const k=p.ads.secondsToWatchBeforeSkip;let V,P,z;return C(e,k,(e=>i(8,s=e))),Y((()=>{const e=new AbortController;const t=p.getAdmanWrapper();if(!c)return void t.onAdmanLoadingError();const{width:i,height:n}=A(p.ui.playerSize),o={width:i,height:n,isFullscreen:A(p.ui.isFullscreen),isAutoplay:A(p.ui.isAutoplay),adsContainer:g,adsVideoElement:f,slotId:c,params:d,previewParam:u,duration:v};return window.AdmanHTML?(t.initAdman(o),b=!0):t.loadAdman(e.signal).then((()=>{t.initAdman(o),b=!0})).catch((()=>{t.onAdmanLoadingError()})),()=>{!b&&e.abort()}})),e.$$set=e=>{'adsSlotId'in e&&i(17,c=e.adsSlotId),'adsParams'in e&&i(18,d=e.adsParams),'adsPreviewParam'in e&&i(19,u=e.adsPreviewParam),'duration'in e&&i(20,v=e.duration)},e.$$.update=()=>{2097152&e.$$.dirty&&i(3,V=n!==At.INACTIVE),2097152&e.$$.dirty&&i(4,P=$&&n!==At.INACTIVE),2097153&e.$$.dirty&&i(5,z=o&&n!==At.INACTIVE)},[o,g,f,V,P,z,l,a,s,r,p,m,h,w,y,x,k,c,d,u,v,n,function(e){J[e?'unshift':'push']((()=>{f=e,i(2,f)}))},function(e){J[e?'unshift':'push']((()=>{g=e,i(1,g)}))}]}class Kn extends $e{constructor(e){super(),we(this,e,Qn,On,x,{adsSlotId:17,adsParams:18,adsPreviewParam:19,duration:20},jn)}}function Wn(e){N(e,'v-p5rs9b','ul.v-p5rs9b{position:absolute;border-radius:3px;background:rgba(0, 0, 0, 0.88);overflow:hidden;transition:visibility .1s,opacity .1s;font-size:13px;list-style:none;margin:0;padding:0}.hidden.v-p5rs9b{visibility:hidden;opacity:0}li.v-p5rs9b{padding:8px 20px;cursor:pointer;position:relative;display:block;color:rgba(255, 255, 255, 0.72);font-size:13px;white-space:nowrap}li.v-p5rs9b:hover{background:rgba(66, 66, 66, .5);color:var(--white)}')}function Yn(e){let t,i,n,o,l,a,s,r;return{c(){t=B('ul'),i=B('li'),i.textContent='Сообщить о проблеме',n=j(),o=B('li'),o.textContent='Копировать данные для диагностики',l=j(),a=B('li'),a.textContent='Техническая информация',D(i,'class','v-p5rs9b'),D(o,'class','v-p5rs9b'),D(a,'class','v-p5rs9b'),O(t,'top',e[1]+'px'),O(t,'left',e[0]+'px'),D(t,'class','v-p5rs9b'),Q(t,'hidden',!e[2])},m(c,d){q(c,t,d),L(t,i),L(t,n),L(t,o),L(t,l),L(t,a),e[10](t),s||(r=[H(i,'click',e[4]),H(o,'click',e[5]),H(a,'click',e[6])],s=!0)},p(e,[i]){2&i&&O(t,'top',e[1]+'px'),1&i&&O(t,'left',e[0]+'px'),4&i&&Q(t,'hidden',!e[2])},i:f,o:f,d(i){i&&T(t),e[10](null),s=!1,$(r)}}}function Xn(e,t,i){let{visible:n=!1}=t,{supportLink:o}=t,{x:l=0}=t,{y:a=0}=t,{playerContainerRef:s}=t,{controlsContainerRef:r}=t;const c=Ae(),d=c.ui.contextMenuVisible,u=c.ui.debugPanelVisible;let v;return e.$$set=e=>{'visible'in e&&i(2,n=e.visible),'supportLink'in e&&i(7,o=e.supportLink),'x'in e&&i(0,l=e.x),'y'in e&&i(1,a=e.y),'playerContainerRef'in e&&i(8,s=e.playerContainerRef),'controlsContainerRef'in e&&i(9,r=e.controlsContainerRef)},e.$$.update=()=>{3&e.$$.dirty&&((e,t)=>{if(!v||!s||!r)return;const n=v.getBoundingClientRect(),o=s.getBoundingClientRect(),c=r.getBoundingClientRect();i(0,l=e-o.left),i(1,a=t-o.top),l+n.width>o.width&&i(0,l-=n.width),a+n.height>o.height-c.height&&i(1,a-=n.height)})(l,a)},[l,a,n,v,e=>{window.open(o,'_blank'),d.set(!1),c.actions.internal.pause(),e.stopPropagation()},e=>{Te(c.actions.internal.getDebugTextData()),d.set(!1),e.stopPropagation()},e=>{u.set(!0),d.set(!1),e.stopPropagation()},o,s,r,function(e){J[e?'unshift':'push']((()=>{v=e,i(3,v)}))}]}class Gn extends $e{constructor(e){super(),we(this,e,Xn,Yn,x,{visible:2,supportLink:7,x:0,y:1,playerContainerRef:8,controlsContainerRef:9},Wn)}}class Jn{constructor(e){this.value=e,this.next=null}}class Zn{constructor(e){this.top=null,this.bottom=null,this.size=0,this.maxSize=e}push(e){const t=new Jn(e);this.top?(this.top.next=t,this.top=t):(this.top=t,this.bottom=t),this.size++,this.size>this.maxSize&&this.bottom&&(this.bottom=this.bottom.next)}getValuesFromBottom(){const e=[];let t=this.bottom;for(;t;)e.push(t.value),t=t.next;return e}}function eo(e){N(e,'v-1ssl9eb','.container.v-1ssl9eb{display:inline-block;width:120px;height:16px}canvas.v-1ssl9eb{transform:scale(1, -1);margin-top:2px}')}function to(e){let t,i;return{c(){t=B('div'),i=B('canvas'),D(i,'class','v-1ssl9eb'),D(t,'class','container v-1ssl9eb')},m(n,o){q(n,t,o),L(t,i),e[3](i)},p:f,i:f,o:f,d(i){i&&T(t),e[3](null)}}}function io(e,t,i,n,o){0===o&&(o=1),e.fillStyle='#fff',e.fillRect(t,i,n,o)}function no(e,t,i){let n,o,{values:l=[]}=t;return Y((()=>{i(0,n.width=120,n),i(0,n.height=16,n),i(2,o=n.getContext('2d'))})),e.$$set=e=>{'values'in e&&i(1,l=e.values)},e.$$.update=()=>{if(6&e.$$.dirty&&o){let e=l[0];for(let t=1;t<l.length;t++)l[t]>e&&(e=l[t]);o.clearRect(0,0,120,16);let t=59;for(let i=l.length-1;i>=0;i--){const n=2*t,a=e>0?l[i]/e*16:0;io(o,n,0,2,a),t--}}},[n,l,o,function(e){J[e?'unshift':'push']((()=>{n=e,i(0,n)}))}]}class oo extends $e{constructor(e){super(),we(this,e,no,to,x,{values:1},eo)}}const lo={set:(e,t)=>{try{localStorage.setItem(e,JSON.stringify(t))}catch(e){}},get:e=>{try{const t=localStorage.getItem(e);return t?JSON.parse(t):null}catch(e){return null}},remove(e){try{localStorage.removeItem(e)}catch(e){}}};function ao(e){N(e,'v-1gy2e68','.container.v-1gy2e68.v-1gy2e68.v-1gy2e68{background:rgba(28, 28, 28, 0.8);border-radius:4px;color:#fff;left:20px;position:absolute;top:45px;min-width:160px;font-size:10px;text-align:left}.container-mobile.v-1gy2e68.v-1gy2e68.v-1gy2e68{top:16px;left:16px}button.v-1gy2e68.v-1gy2e68.v-1gy2e68{position:absolute;right:5px;top:3px;cursor:pointer;outline:0;border:none;background-color:transparent;padding:0;color:#fff}.content.v-1gy2e68.v-1gy2e68.v-1gy2e68{padding:5px}.content.v-1gy2e68>div.v-1gy2e68>div.v-1gy2e68{display:inline-block;text-align:right;width:52px;padding:0 5px}')}function so(e){let t,i,n,o,l,a=e[0].id+'';return{c(){t=B('div'),i=B('div'),i.textContent='Video id',n=j(),o=B('span'),l=F(a),D(i,'class','v-1gy2e68'),D(t,'class','v-1gy2e68')},m(e,a){q(e,t,a),L(t,i),L(t,n),L(t,o),L(o,l)},p(e,t){1&t&&a!==(a=e[0].id+'')&&U(l,a)},d(e){e&&T(t)}}}function ro(e){let t,i,n,o,l,a=e[0].provider+'';return{c(){t=B('div'),i=B('div'),i.textContent='Provider',n=j(),o=B('span'),l=F(a),D(i,'class','v-1gy2e68'),D(t,'class','v-1gy2e68')},m(e,a){q(e,t,a),L(t,i),L(t,n),L(t,o),L(o,l)},p(e,t){1&t&&a!==(a=e[0].provider+'')&&U(l,a)},d(e){e&&T(t)}}}function co(e){let t,i,n,o,l,a=e[0].viewport+'';return{c(){t=B('div'),i=B('div'),i.textContent='Viewport',n=j(),o=B('span'),l=F(a),D(i,'class','v-1gy2e68'),D(t,'class','v-1gy2e68')},m(e,a){q(e,t,a),L(t,i),L(t,n),L(t,o),L(o,l)},p(e,t){1&t&&a!==(a=e[0].viewport+'')&&U(l,a)},d(e){e&&T(t)}}}function uo(e){let t,i,n,o,l,a=e[0].videoSize+'';return{c(){t=B('div'),i=B('div'),i.textContent='Video size',n=j(),o=B('span'),l=F(a),D(i,'class','v-1gy2e68'),D(t,'class','v-1gy2e68')},m(e,a){q(e,t,a),L(t,i),L(t,n),L(t,o),L(o,l)},p(e,t){1&t&&a!==(a=e[0].videoSize+'')&&U(l,a)},d(e){e&&T(t)}}}function vo(e){let t,i,n,o,l,a=e[0].cdn+'';return{c(){t=B('div'),i=B('div'),i.textContent='CDN host',n=j(),o=B('span'),l=F(a),D(i,'class','v-1gy2e68'),D(t,'class','v-1gy2e68')},m(e,a){q(e,t,a),L(t,i),L(t,n),L(t,o),L(o,l)},p(e,t){1&t&&a!==(a=e[0].cdn+'')&&U(l,a)},d(e){e&&T(t)}}}function po(e){let t,i,n,o,l,a,s=e[0].volume+'';return{c(){t=B('div'),i=B('div'),i.textContent='Volume',n=j(),o=B('span'),l=F(s),a=F(' %'),D(i,'class','v-1gy2e68'),D(t,'class','v-1gy2e68')},m(e,s){q(e,t,s),L(t,i),L(t,n),L(t,o),L(o,l),L(o,a)},p(e,t){1&t&&s!==(s=e[0].volume+'')&&U(l,s)},d(e){e&&T(t)}}}function mo(e){let t,i,n,o,l,a,s=e[0].buffer.toFixed(2)+'';return{c(){t=B('div'),i=B('div'),i.textContent='Buffer',n=j(),o=B('span'),l=F(s),a=F(' s'),D(i,'class','v-1gy2e68'),D(t,'class','v-1gy2e68')},m(e,s){q(e,t,s),L(t,i),L(t,n),L(t,o),L(o,l),L(o,a)},p(e,t){1&t&&s!==(s=e[0].buffer.toFixed(2)+'')&&U(l,s)},d(e){e&&T(t)}}}function ho(e){let t,i,n,o,l,a,s,r,c,d=e[0].speed.toFixed(2)+'';return o=new oo({props:{values:e[5]}}),{c(){t=B('div'),i=B('div'),i.textContent='Network',n=j(),he(o.$$.fragment),l=j(),a=B('span'),s=F(d),r=F(' Kbps'),D(i,'class','v-1gy2e68'),D(t,'class','v-1gy2e68')},m(e,d){q(e,t,d),L(t,i),L(t,n),ge(o,t,null),L(t,l),L(t,a),L(a,s),L(a,r),c=!0},p(e,t){const i={};32&t&&(i.values=e[5]),o.$set(i),(!c||1&t)&&d!==(d=e[0].speed.toFixed(2)+'')&&U(s,d)},i(e){c||(ve(o.$$.fragment,e),c=!0)},o(e){pe(o.$$.fragment,e),c=!1},d(e){e&&T(t),fe(o)}}}function go(e){let t,i,n,o,l,a,s,r,c,d=e[0].bitrate.toFixed(2)+'';return o=new oo({props:{values:e[6]}}),{c(){t=B('div'),i=B('div'),i.textContent='V bitrate',n=j(),he(o.$$.fragment),l=j(),a=B('span'),s=F(d),r=F(' Kbps'),D(i,'class','v-1gy2e68'),D(t,'class','v-1gy2e68')},m(e,d){q(e,t,d),L(t,i),L(t,n),ge(o,t,null),L(t,l),L(t,a),L(a,s),L(a,r),c=!0},p(e,t){const i={};64&t&&(i.values=e[6]),o.$set(i),(!c||1&t)&&d!==(d=e[0].bitrate.toFixed(2)+'')&&U(s,d)},i(e){c||(ve(o.$$.fragment,e),c=!0)},o(e){pe(o.$$.fragment,e),c=!1},d(e){e&&T(t),fe(o)}}}function fo(e){let t,i,n,o,l,a,s,r,c,d,u,v,p,m,h,g,f,b,w,$,y,x,k,V,P,z,A,C,S,M,N,E,I,R,_,O,K,W,Y=e[0].version+'',X=e[0].id&&so(e),G=e[0].provider&&ro(e),J=e[0].viewport&&co(e),Z=e[0].videoSize&&uo(e),ee=e[0].cdn&&vo(e),te=e[0].volume&&po(e),ie=e[0].buffer&&mo(e),ne=e[0].speed&&ho(e),oe=e[0].bitrate&&go(e);return E=new oo({props:{values:e[4]}}),{c(){t=B('div'),i=B('button'),i.textContent='[x]',n=j(),o=B('div'),l=B('div'),a=B('div'),a.textContent='Version',s=j(),r=B('span'),c=F(Y),d=j(),X&&X.c(),u=j(),G&&G.c(),v=j(),J&&J.c(),p=j(),Z&&Z.c(),m=j(),ee&&ee.c(),h=j(),te&&te.c(),g=j(),ie&&ie.c(),f=j(),b=B('div'),w=B('div'),w.textContent='Dropped',$=j(),y=B('span'),x=F(e[2]),k=F(' / '),V=F(e[1]),P=F(' frames'),z=j(),ne&&ne.c(),A=j(),oe&&oe.c(),C=j(),S=B('div'),M=B('div'),M.textContent='FPS',N=j(),he(E.$$.fragment),I=j(),R=B('span'),_=F(e[3]),D(i,'class','close v-1gy2e68'),D(i,'title','закрыть'),D(a,'class','v-1gy2e68'),D(l,'class','v-1gy2e68'),D(w,'class','v-1gy2e68'),D(b,'class','v-1gy2e68'),D(M,'class','v-1gy2e68'),D(S,'class','v-1gy2e68'),D(o,'class','content v-1gy2e68'),D(t,'class','container v-1gy2e68'),Q(t,'container-mobile',e[7])},m(T,B){q(T,t,B),L(t,i),L(t,n),L(t,o),L(o,l),L(l,a),L(l,s),L(l,r),L(r,c),L(o,d),X&&X.m(o,null),L(o,u),G&&G.m(o,null),L(o,v),J&&J.m(o,null),L(o,p),Z&&Z.m(o,null),L(o,m),ee&&ee.m(o,null),L(o,h),te&&te.m(o,null),L(o,g),ie&&ie.m(o,null),L(o,f),L(o,b),L(b,w),L(b,$),L(b,y),L(y,x),L(y,k),L(y,V),L(y,P),L(o,z),ne&&ne.m(o,null),L(o,A),oe&&oe.m(o,null),L(o,C),L(o,S),L(S,M),L(S,N),ge(E,S,null),L(S,I),L(S,R),L(R,_),O=!0,K||(W=H(i,'click',e[9]),K=!0)},p(e,[i]){(!O||1&i)&&Y!==(Y=e[0].version+'')&&U(c,Y),e[0].id?X?X.p(e,i):(X=so(e),X.c(),X.m(o,u)):X&&(X.d(1),X=null),e[0].provider?G?G.p(e,i):(G=ro(e),G.c(),G.m(o,v)):G&&(G.d(1),G=null),e[0].viewport?J?J.p(e,i):(J=co(e),J.c(),J.m(o,p)):J&&(J.d(1),J=null),e[0].videoSize?Z?Z.p(e,i):(Z=uo(e),Z.c(),Z.m(o,m)):Z&&(Z.d(1),Z=null),e[0].cdn?ee?ee.p(e,i):(ee=vo(e),ee.c(),ee.m(o,h)):ee&&(ee.d(1),ee=null),e[0].volume?te?te.p(e,i):(te=po(e),te.c(),te.m(o,g)):te&&(te.d(1),te=null),e[0].buffer?ie?ie.p(e,i):(ie=mo(e),ie.c(),ie.m(o,f)):ie&&(ie.d(1),ie=null),(!O||4&i)&&U(x,e[2]),(!O||2&i)&&U(V,e[1]),e[0].speed?ne?(ne.p(e,i),1&i&&ve(ne,1)):(ne=ho(e),ne.c(),ve(ne,1),ne.m(o,A)):ne&&(de(),pe(ne,1,1,(()=>{ne=null})),ue()),e[0].bitrate?oe?(oe.p(e,i),1&i&&ve(oe,1)):(oe=go(e),oe.c(),ve(oe,1),oe.m(o,C)):oe&&(de(),pe(oe,1,1,(()=>{oe=null})),ue());const n={};16&i&&(n.values=e[4]),E.$set(n),(!O||8&i)&&U(_,e[3]),128&i&&Q(t,'container-mobile',e[7])},i(e){O||(ve(ne),ve(oe),ve(E.$$.fragment,e),O=!0)},o(e){pe(ne),pe(oe),pe(E.$$.fragment,e),O=!1},d(e){e&&T(t),X&&X.d(),G&&G.d(),J&&J.d(),Z&&Z.d(),ee&&ee.d(),te&&te.d(),ie&&ie.d(),ne&&ne.d(),oe&&oe.d(),fe(E),K=!1,W()}}}function bo(e,t,i){let n;const o=Ae(),l=o.ui.debugPanelVisible,a=o.ui.isMobile;C(e,a,(e=>i(7,n=e)));let s=o.actions.internal.getDebugPanelData(),r=o.actions.internal.getVideoElement(),c=0,d=0,u=0;const v=new Zn(60),p=new Zn(60),m=new Zn(60);let h=[],g=[],f=[];return Y((()=>{lo.set('vk_player_debug_panel_opened',!0),o.actions.internal.startLogging(),r&&(i(2,d=r.getVideoPlaybackQuality().droppedVideoFrames),i(1,c=r.getVideoPlaybackQuality().totalVideoFrames));const e=window.setInterval((()=>{i(0,s=o.actions.internal.getDebugPanelData())}),500);let t;return r&&(t=window.setInterval((()=>{if(r){i(2,d=r.getVideoPlaybackQuality().droppedVideoFrames);const e=r.getVideoPlaybackQuality().totalVideoFrames;i(3,u=e-c),i(1,c=e),v.push(u),s.speed&&p.push(s.speed),s.bitrate&&m.push(s.bitrate),i(4,h=v.getValuesFromBottom()),i(5,g=p.getValuesFromBottom()),i(6,f=m.getValuesFromBottom())}}),1e3)),()=>{o.actions.internal.stopLogging(),clearInterval(e),t&&clearInterval(t)}})),[s,c,d,u,h,g,f,n,a,e=>{lo.set('vk_player_debug_panel_opened',!1),l.set(!1),e.stopPropagation()}]}class wo extends $e{constructor(e){super(),we(this,e,bo,fo,x,{},ao)}}function $o(e){N(e,'v-1ome55p','.close.v-1ome55p{cursor:pointer;opacity:0.8;transition:opacity 0.2s;position:relative;width:16px;height:16px}.close.v-1ome55p:hover{opacity:1}.close.v-1ome55p:before,.close.v-1ome55p:after{position:absolute;left:8px;content:\' \';height:16px;width:2px;background-color:var(--white)}.close.v-1ome55p:before{transform:rotate(45deg)}.close.v-1ome55p:after{transform:rotate(-45deg)}')}function yo(e){let t,i,n;return{c(){t=B('div'),D(t,'class','close v-1ome55p')},m(o,l){q(o,t,l),i||(n=H(t,'click',e[0]),i=!0)},p:f,i:f,o:f,d(e){e&&T(t),i=!1,n()}}}function xo(e){return[function(t){X.call(this,e,t)}]}class ko extends $e{constructor(e){super(),we(this,e,xo,yo,x,{},$o)}}function Vo(e){N(e,'v-8jhsry','.timer.v-8jhsry{border-radius:50%;transition:background .2s;background:rgba(31, 31, 31, .65);width:50px;height:50px;display:flex;align-items:center;justify-content:space-around}.timer.v-8jhsry:hover{background:rgba(31, 31, 31, .85)\n }.timer-canvas.v-8jhsry{width:50px;height:50px;position:absolute}.timer-play-icon.v-8jhsry{width:22px;height:26px}')}function Po(e){let t,i,n,o,l,a,s;return{c(){t=B('div'),i=B('canvas'),n=j(),o=I('svg'),l=I('g'),a=I('g'),s=I('path'),D(i,'class','timer-canvas v-8jhsry'),D(i,'width','100'),D(i,'height','100'),D(s,'class','_play'),D(s,'d','m8.13340613 5.10548415 10.49681277 6.24354325c.3559987.2117494.472936.6720001.2611866 1.0279989-.0638111.1072809-.1533894.1969388-.2606135.2608453l-10.4968128 6.256187c-.35581027.2120659-.81616483.095538-1.02823068-.2602722-.06921066-.1161237-.10574852-.2487949-.10574852-.3839792v-12.49973035c0-.41421357.33578644-.75.75-.75.13495801 0 .26741554.03641567.38340613.1054073z'),D(s,'fill','#fff'),D(a,'fill-rule','nonzero'),D(l,'fill','none'),D(l,'fill-rule','evenodd'),D(o,'class','timer-play-icon v-8jhsry'),D(o,'viewBox','0 0 24 24'),D(o,'xmlns','http://www.w3.org/2000/svg'),D(t,'class','timer v-8jhsry')},m(r,c){q(r,t,c),L(t,i),e[2](i),L(t,n),L(t,o),L(o,l),L(l,a),L(a,s)},p:f,i:f,o:f,d(i){i&&T(t),e[2](null)}}}function zo(e,t,i){let n,{onTimerEnded:o=f}=t;return Y((()=>{let e;const t=n.getContext('2d');if(!t)return;t.lineWidth=6,t.lineCap='round',t.strokeStyle='#fff';const i=Date.now(),l=()=>{const n=(Date.now()-i)/5e3;n<1?(t.clearRect(0,0,100,100),t.beginPath(),t.arc(50,50,47,-Math.PI/2,-Math.PI/2+2*Math.PI*n),t.stroke(),e=requestAnimationFrame(l)):o()};return e=requestAnimationFrame(l),()=>{cancelAnimationFrame(e)}})),e.$$set=e=>{'onTimerEnded'in e&&i(1,o=e.onTimerEnded)},[n,o,function(e){J[e?'unshift':'push']((()=>{n=e,i(0,n)}))}]}class Ao extends $e{constructor(e){super(),we(this,e,zo,Po,x,{onTimerEnded:1},Vo)}}function Co(e){N(e,'v-kisfwc','.overlay.v-kisfwc{width:100%;height:100%;background:rgba(0, 0, 0, 0.72);position:absolute}.next-video.v-kisfwc{position:absolute;top:50%;left:50%;transform:translate(-50%, -50%);display:flex;width:362px;flex-direction:column}.top.v-kisfwc{display:flex;justify-content:space-between}.caption.v-kisfwc{font-size:11px;font-weight:bold;color:var(--white);text-transform:uppercase;opacity:0.8}.row.v-kisfwc{height:102px;background:rgba(48, 48, 48, .8);cursor:pointer;margin-top:6px;display:flex;flex-direction:row;flex-wrap:wrap;width:100%}.column.v-kisfwc{display:flex;flex-direction:column;flex-basis:50%}.thumb.v-kisfwc{width:100%;height:100%;background:no-repeat center;background-size:cover;display:flex;align-items:center;position:relative;justify-content:space-around}.thumb-overlay.v-kisfwc{width:100%;height:100%;background:var(--black);opacity:0.3;position:absolute}.title.v-kisfwc{padding:10px 16px;font-size:12px;font-weight:bold;color:var(--white);line-height:1.6;max-height:52px;overflow:hidden}')}function So(e){let t,i;return t=new Ao({props:{onTimerEnded:e[2]}}),{c(){he(t.$$.fragment)},m(e,n){ge(t,e,n),i=!0},p(e,i){const n={};4&i&&(n.onTimerEnded=e[2]),t.$set(n)},i(e){i||(ve(t.$$.fragment,e),i=!0)},o(e){pe(t.$$.fragment,e),i=!1},d(e){fe(t,e)}}}function Mo(e){let t,i,n,o,l,a,s,r,c,d,u,v,p,m,h,g,f,b,w,$,x;s=new ko({}),s.$on('click',e[4]);let k=e[3]&&So(e);return{c(){t=B('div'),i=j(),n=B('div'),o=B('div'),l=B('div'),l.textContent='следующее видео',a=j(),he(s.$$.fragment),r=j(),c=B('div'),d=B('div'),u=B('div'),v=B('div'),p=j(),k&&k.c(),h=j(),g=B('div'),f=B('div'),b=F(e[0]),D(t,'class','overlay v-kisfwc'),D(l,'class','caption v-kisfwc'),D(o,'class','top v-kisfwc'),D(v,'class','thumb-overlay v-kisfwc'),D(u,'class','thumb v-kisfwc'),D(u,'style',m=`background-image: url('${e[1]}')`),D(d,'class','column v-kisfwc'),D(f,'class','title v-kisfwc'),D(g,'class','column v-kisfwc'),D(c,'class','row v-kisfwc'),D(n,'class','next-video v-kisfwc')},m(m,V){q(m,t,V),q(m,i,V),q(m,n,V),L(n,o),L(o,l),L(o,a),ge(s,o,null),L(n,r),L(n,c),L(c,d),L(d,u),L(u,v),L(u,p),k&&k.m(u,null),L(c,h),L(c,g),L(g,f),L(f,b),w=!0,$||(x=H(c,'click',(function(){y(e[2])&&e[2].apply(this,arguments)})),$=!0)},p(t,[i]){(e=t)[3]?k?(k.p(e,i),8&i&&ve(k,1)):(k=So(e),k.c(),ve(k,1),k.m(u,null)):k&&(de(),pe(k,1,1,(()=>{k=null})),ue()),(!w||2&i&&m!==(m=`background-image: url('${e[1]}')`))&&D(u,'style',m),(!w||1&i)&&U(b,e[0])},i(e){w||(ve(s.$$.fragment,e),ve(k),w=!0)},o(e){pe(s.$$.fragment,e),pe(k),w=!1},d(e){e&&T(t),e&&T(i),e&&T(n),fe(s),k&&k.d(),$=!1,x()}}}function Lo(e,t,i){let{title:n}=t,{thumb:o}=t,{playNextVideo:l}=t,a=!0;return e.$$set=e=>{'title'in e&&i(0,n=e.title),'thumb'in e&&i(1,o=e.thumb),'playNextVideo'in e&&i(2,l=e.playNextVideo)},[n,o,l,a,()=>i(3,a=!1)]}class No extends $e{constructor(e){super(),we(this,e,Lo,Mo,x,{title:0,thumb:1,playNextVideo:2},Co)}}function qo(e,t,i){let{playNextVideo:n}=t;return Y((()=>{n()})),e.$$set=e=>{'playNextVideo'in e&&i(0,n=e.playNextVideo)},[n]}class To extends $e{constructor(e){super(),we(this,e,qo,null,x,{playNextVideo:0})}}function Eo(e){N(e,'v-cus9x4','.title.v-cus9x4{position:absolute;left:0;top:0;width:100%;height:var(--videoplayer-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(--videoplayer-controls-transition-duration);transition-timing-function:var(--videoplayer-controls-transition-fn);will-change:transform, opacity;background:linear-gradient(\n 0deg,\n rgba(0, 0, 0, 0) 0%,\n rgba(0, 0, 0, 0.02) 19%,\n rgba(0, 0, 0, 0.10) 34%,\n rgba(0, 0, 0, 0.40) 60%,\n rgba(0, 0, 0, 0.60) 100%\n )}.hidden.v-cus9x4{visibility:hidden;transform:translateY(calc(var(--videoplayer-controls-gradient-height) * -1));opacity:0}')}function Bo(e){let t,i;return{c(){t=B('div'),i=F(e[0]),D(t,'class','title v-cus9x4'),Q(t,'hidden',e[1])},m(e,n){q(e,t,n),L(t,i)},p(e,[n]){1&n&&U(i,e[0]),2&n&&Q(t,'hidden',e[1])},i:f,o:f,d(e){e&&T(t)}}}function Io(e,t,i){let{title:n=''}=t,{isHidden:o=!1}=t;return e.$$set=e=>{'title'in e&&i(0,n=e.title),'isHidden'in e&&i(1,o=e.isHidden)},[n,o]}class Fo extends $e{constructor(e){super(),we(this,e,Io,Bo,x,{title:0,isHidden:1},Eo)}}function jo(e){N(e,'v-1o62kpz','.wrapper.v-1o62kpz{height:100%;background-position:center;background-size:cover;display:flex;align-items:center;justify-content:center;font-size:16px;flex-direction:column}.icon_wrapper.v-1o62kpz{display:flex;flex-direction:column;align-items:center;width:400px}.icon.v-1o62kpz{width:50px;height:50px}.text.v-1o62kpz{margin-top:20px}')}function Ro(e){let t,i,n;return{c(){t=B('div'),i=F('Видео воспроизводится на '),n=F(e[1]),D(t,'class','text v-1o62kpz')},m(e,o){q(e,t,o),L(t,i),L(t,n)},p(e,t){2&t&&U(n,e[1])},d(e){e&&T(t)}}}function Ho(e){let t,i,n,o,l,a,s=e[1]&&Ro(e);return{c(){t=B('div'),i=B('div'),i.innerHTML='<svg class="icon v-1o62kpz" width="22" height="22" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><g fill="none" fill-rule="evenodd"><path d="M1 18v3h3c0-1.66-1.34-3-3-3zm0-4v2c2.76 0 5 2.24 5 5h2c0-3.87-3.13-7-7-7zm0-4v2a9 9 0 0 1 9 9h2c0-6.08-4.93-11-11-11zm20-7H3c-1.1 0-2 .9-2 2v3h2V5h18v14h-7v2h7c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2z" fill="#fff"></path><path d="M0 0h24v24H0z"></path></g></svg>',n=j(),s&&s.c(),D(i,'class','icon_wrapper v-1o62kpz'),D(t,'class','wrapper v-1o62kpz'),D(t,'style',o=`background-image: linear-gradient(0deg, rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)), url('${e[0]||''}')`)},m(o,r){q(o,t,r),L(t,i),L(t,n),s&&s.m(t,null),l||(a=H(t,'click',e[2]),l=!0)},p(e,[i]){e[1]?s?s.p(e,i):(s=Ro(e),s.c(),s.m(t,null)):s&&(s.d(1),s=null),1&i&&o!==(o=`background-image: linear-gradient(0deg, rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)), url('${e[0]||''}')`)&&D(t,'style',o)},i:f,o:f,d(e){e&&T(t),s&&s.d(),l=!1,a()}}}function _o(e,t,i){let{thumbUrl:n}=t,{chromecastDeviceName:o}=t;return e.$$set=e=>{'thumbUrl'in e&&i(0,n=e.thumbUrl),'chromecastDeviceName'in e&&i(1,o=e.chromecastDeviceName)},[n,o,function(t){X.call(this,e,t)}]}class Do extends $e{constructor(e){super(),we(this,e,_o,Ho,x,{thumbUrl:0,chromecastDeviceName:1},jo)}}function Uo(e){N(e,'v-zd9h6u','.container.v-zd9h6u{position:absolute;top:0;bottom:0;left:0;right:0;background:#000;display:flex;align-items:center;justify-content:center}.icon.v-zd9h6u{width:200px;height:200px}')}function Oo(e){let t,i,n;return{c(){t=B('div'),i=B('img'),P(i.src,n='data:image/svg+xml,%3csvg viewBox=\'460 190 130 90\' xmlns=\'http://www.w3.org/2000/svg\'%3e%3cpath d=\'M460 193.998a3.997 3.997 0 0 1 3.997-3.998h122.006a4.003 4.003 0 0 1 3.997 3.998v82.004a3.997 3.997 0 0 1-3.997 3.998H463.997a4.003 4.003 0 0 1-3.997-3.998zm6 2.993c0-.546.45-.99.99-.99h4.02c.546 0 .99.45.99.99v4.02c0 .546-.45.99-.99.99h-4.02a.995.995 0 0 1-.99-.99zm0 12c0-.546.45-.99.99-.99h4.02c.546 0 .99.45.99.99v4.02c0 .546-.45.99-.99.99h-4.02a.995.995 0 0 1-.99-.99zm0 12c0-.546.45-.99.99-.99h4.02c.546 0 .99.45.99.99v4.02c0 .546-.45.99-.99.99h-4.02a.995.995 0 0 1-.99-.99zm0 12c0-.546.45-.99.99-.99h4.02c.546 0 .99.45.99.99v4.02c0 .546-.45.99-.99.99h-4.02a.995.995 0 0 1-.99-.99zm0 12c0-.546.45-.99.99-.99h4.02c.546 0 .99.45.99.99v4.02c0 .546-.45.99-.99.99h-4.02a.995.995 0 0 1-.99-.99zm0 12c0-.546.45-.99.99-.99h4.02c.546 0 .99.45.99.99v4.02c0 .546-.45.99-.99.99h-4.02a.995.995 0 0 1-.99-.99zm0 12c0-.546.45-.99.99-.99h4.02c.546 0 .99.45.99.99v4.02c0 .546-.45.99-.99.99h-4.02a.995.995 0 0 1-.99-.99zm112-72c0-.546.45-.99.99-.99h4.02c.546 0 .99.45.99.99v4.02c0 .546-.45.99-.99.99h-4.02a.995.995 0 0 1-.99-.99zm0 12c0-.546.45-.99.99-.99h4.02c.546 0 .99.45.99.99v4.02c0 .546-.45.99-.99.99h-4.02a.995.995 0 0 1-.99-.99zm0 12c0-.546.45-.99.99-.99h4.02c.546 0 .99.45.99.99v4.02c0 .546-.45.99-.99.99h-4.02a.995.995 0 0 1-.99-.99zm0 12c0-.546.45-.99.99-.99h4.02c.546 0 .99.45.99.99v4.02c0 .546-.45.99-.99.99h-4.02a.995.995 0 0 1-.99-.99zm0 12c0-.546.45-.99.99-.99h4.02c.546 0 .99.45.99.99v4.02c0 .546-.45.99-.99.99h-4.02a.995.995 0 0 1-.99-.99zm0 12c0-.546.45-.99.99-.99h4.02c.546 0 .99.45.99.99v4.02c0 .546-.45.99-.99.99h-4.02a.995.995 0 0 1-.99-.99zm0 12c0-.546.45-.99.99-.99h4.02c.546 0 .99.45.99.99v4.02c0 .546-.45.99-.99.99h-4.02a.995.995 0 0 1-.99-.99zM507 232a6 6 0 1 0 0-12 6 6 0 0 0 0 12zm36 0a6 6 0 1 0 0-12 6 6 0 0 0 0 12zm-18.05 15c6.05 0 11.624 4.446 11.944 4.65 2.106 1.35 3.252.772 3.957.156s1.15-2.806-1.044-4.657c-1.735-1.48-5.806-5.16-14.856-5.15s-12.95 3.5-14.792 5.185c-1.84 1.685-2.288 3.498-.973 4.657 1.315 1.158 2.315 1.158 4.357-.327-.007.007 5.357-4.515 11.408-4.515z\' fill=\'white\' fill-rule=\'evenodd\'/%3e%3c/svg%3e')||D(i,'src','data:image/svg+xml,%3csvg viewBox=\'460 190 130 90\' xmlns=\'http://www.w3.org/2000/svg\'%3e%3cpath d=\'M460 193.998a3.997 3.997 0 0 1 3.997-3.998h122.006a4.003 4.003 0 0 1 3.997 3.998v82.004a3.997 3.997 0 0 1-3.997 3.998H463.997a4.003 4.003 0 0 1-3.997-3.998zm6 2.993c0-.546.45-.99.99-.99h4.02c.546 0 .99.45.99.99v4.02c0 .546-.45.99-.99.99h-4.02a.995.995 0 0 1-.99-.99zm0 12c0-.546.45-.99.99-.99h4.02c.546 0 .99.45.99.99v4.02c0 .546-.45.99-.99.99h-4.02a.995.995 0 0 1-.99-.99zm0 12c0-.546.45-.99.99-.99h4.02c.546 0 .99.45.99.99v4.02c0 .546-.45.99-.99.99h-4.02a.995.995 0 0 1-.99-.99zm0 12c0-.546.45-.99.99-.99h4.02c.546 0 .99.45.99.99v4.02c0 .546-.45.99-.99.99h-4.02a.995.995 0 0 1-.99-.99zm0 12c0-.546.45-.99.99-.99h4.02c.546 0 .99.45.99.99v4.02c0 .546-.45.99-.99.99h-4.02a.995.995 0 0 1-.99-.99zm0 12c0-.546.45-.99.99-.99h4.02c.546 0 .99.45.99.99v4.02c0 .546-.45.99-.99.99h-4.02a.995.995 0 0 1-.99-.99zm0 12c0-.546.45-.99.99-.99h4.02c.546 0 .99.45.99.99v4.02c0 .546-.45.99-.99.99h-4.02a.995.995 0 0 1-.99-.99zm112-72c0-.546.45-.99.99-.99h4.02c.546 0 .99.45.99.99v4.02c0 .546-.45.99-.99.99h-4.02a.995.995 0 0 1-.99-.99zm0 12c0-.546.45-.99.99-.99h4.02c.546 0 .99.45.99.99v4.02c0 .546-.45.99-.99.99h-4.02a.995.995 0 0 1-.99-.99zm0 12c0-.546.45-.99.99-.99h4.02c.546 0 .99.45.99.99v4.02c0 .546-.45.99-.99.99h-4.02a.995.995 0 0 1-.99-.99zm0 12c0-.546.45-.99.99-.99h4.02c.546 0 .99.45.99.99v4.02c0 .546-.45.99-.99.99h-4.02a.995.995 0 0 1-.99-.99zm0 12c0-.546.45-.99.99-.99h4.02c.546 0 .99.45.99.99v4.02c0 .546-.45.99-.99.99h-4.02a.995.995 0 0 1-.99-.99zm0 12c0-.546.45-.99.99-.99h4.02c.546 0 .99.45.99.99v4.02c0 .546-.45.99-.99.99h-4.02a.995.995 0 0 1-.99-.99zm0 12c0-.546.45-.99.99-.99h4.02c.546 0 .99.45.99.99v4.02c0 .546-.45.99-.99.99h-4.02a.995.995 0 0 1-.99-.99zM507 232a6 6 0 1 0 0-12 6 6 0 0 0 0 12zm36 0a6 6 0 1 0 0-12 6 6 0 0 0 0 12zm-18.05 15c6.05 0 11.624 4.446 11.944 4.65 2.106 1.35 3.252.772 3.957.156s1.15-2.806-1.044-4.657c-1.735-1.48-5.806-5.16-14.856-5.15s-12.95 3.5-14.792 5.185c-1.84 1.685-2.288 3.498-.973 4.657 1.315 1.158 2.315 1.158 4.357-.327-.007.007 5.357-4.515 11.408-4.515z\' fill=\'white\' fill-rule=\'evenodd\'/%3e%3c/svg%3e'),D(i,'class','icon v-zd9h6u'),D(i,'alt',''),D(t,'class','container v-zd9h6u')},m(e,n){q(e,t,n),L(t,i)},p:f,i:f,o:f,d(e){e&&T(t)}}}class Qo extends $e{constructor(e){super(),we(this,e,null,Oo,x,{},Uo)}}function Ko(e,i,n){let o,l,a,r,c,{isAds:d}=i,{hideContextMenu:u}=i,{toggleFullscreen:v}=i;const p=Ae(),m=p.getLogger().createComponentLog('KeyboardControls component'),h=p.state.playbackState$;C(e,h,(e=>n(13,c=e)));const g=p.ads.playbackState;C(e,g,(e=>n(12,r=e)));const f=p.state.positionExact$;C(e,f,(e=>n(11,a=e)));const b=p.state.duration$;C(e,b,(e=>n(10,l=e)));const w=p.state.volume$;C(e,w,(e=>n(9,o=e)));return e.$$set=e=>{'isAds'in e&&n(5,d=e.isAds),'hideContextMenu'in e&&n(6,u=e.hideContextMenu),'toggleFullscreen'in e&&n(7,v=e.toggleFullscreen)},[h,g,f,b,w,d,u,v,e=>{u();const i=e.code;if(e.ctrlKey||e.altKey||e.metaKey)return;const n=c===t.PLAYING||c===t.PAUSED,h=d&&(r===At.PAUSED||r===At.PLAYING);if(n||h)switch(m({message:`key down, code: ${i}`}),i){case Me.KeyJ:case Me.ArrowLeft:{if(h)break;const t=Math.max(a-10,0);a>0&&p.actions.internal.seekTime(t),e.preventDefault();break}case Me.KeyL:case Me.ArrowRight:{if(h)break;const t=Math.min(a+10,l);a<l&&p.actions.internal.seekTime(t),e.preventDefault();break}case Me.ArrowUp:{const t=Math.min(o+.05,1);o<1&&p.actions.internal.setVolume(t),e.preventDefault();break}case Me.ArrowDown:{const t=Math.max(o-.05,0);o>0&&p.actions.internal.setVolume(t),e.preventDefault();break}case Me.Comma:e.shiftKey&&(p.actions.internal.decrementPlaybackRate(),e.preventDefault());break;case Me.Period:e.shiftKey&&(p.actions.internal.incrementPlaybackRate(),e.preventDefault());break;case Me.KeyK:case Me.Space:p.actions.internal.togglePlay(),e.preventDefault();break;case Me.KeyM:p.actions.internal.toggleMuted(),e.preventDefault();break;case Me.KeyF:v(),e.preventDefault();break;default:s(i)}}]}class Wo extends $e{constructor(e){super(),we(this,e,Ko,null,x,{isAds:5,hideContextMenu:6,toggleFullscreen:7,keyDownHandler:8})}get keyDownHandler(){return this.$$.ctx[8]}}function Yo(e){N(e,'v-1c30l04','.double-click-area.v-1c30l04{position:absolute;z-index:1;top:0;height:100%;width:25%;overflow:hidden}.double-click-area.left.v-1c30l04{left:0}.double-click-area.right.v-1c30l04{right:0}.semicircle.v-1c30l04{position:absolute;top:0;width:100%;height:100%;background-color:rgba(0, 0, 0, 0.5)}.semicircle.left.v-1c30l04{left:0;border-top-right-radius:50%;border-bottom-right-radius:50%}.semicircle.right.v-1c30l04{right:0;border-top-left-radius:50%;border-bottom-left-radius:50%}.info.v-1c30l04{position:absolute;top:50%;left:50%;transform:translate(-50%, -50%);display:flex;flex-direction:column;align-items:center;justify-content:center}.triangles-wrapper.v-1c30l04{position:relative;display:flex;margin-bottom:10px;justify-content:center}.triangle.v-1c30l04{width:0;height:0;border-top:6px solid transparent;border-bottom:6px solid transparent;animation:v-1c30l04-blink 500ms infinite;opacity:0}.triangle.right.v-1c30l04:nth-child(1),.triangle.left.v-1c30l04:nth-child(3){animation-delay:0ms}.triangle.right.v-1c30l04:nth-child(2),.triangle.left.v-1c30l04:nth-child(2){animation-delay:100ms}.triangle.right.v-1c30l04:nth-child(3),.triangle.left.v-1c30l04:nth-child(1){animation-delay:200ms}@keyframes v-1c30l04-blink{0%{opacity:0}50%{opacity:1}100%{opacity:0}}.triangle.left.v-1c30l04{border-right:8px solid var(--white)}.triangle.right.v-1c30l04{border-left:8px solid var(--white)}.triangle.v-1c30l04:not(:last-child){margin-right:5px}.step-caption.v-1c30l04{margin:0;text-align:center;font-size:12px;line-height:1;color:var(--white)}')}function Xo(e){let t,i,n,o,l,a,s,r,c,d,u,v,p,m,h,g,f;return{c(){t=B('div'),n=j(),o=B('div'),l=B('div'),a=B('div'),r=j(),c=B('div'),u=j(),v=B('div'),m=j(),h=B('p'),g=F(e[1]),f=F(' секунд'),D(t,'class',i='semicircle '+e[0]+' v-1c30l04'),D(a,'class',s='triangle '+e[0]+' v-1c30l04'),D(c,'class',d='triangle '+e[0]+' v-1c30l04'),D(v,'class',p='triangle '+e[0]+' v-1c30l04'),D(l,'class','triangles-wrapper v-1c30l04'),D(h,'class','step-caption v-1c30l04'),D(o,'class','info v-1c30l04')},m(e,i){q(e,t,i),q(e,n,i),q(e,o,i),L(o,l),L(l,a),L(l,r),L(l,c),L(l,u),L(l,v),L(o,m),L(o,h),L(h,g),L(h,f)},p(e,n){1&n&&i!==(i='semicircle '+e[0]+' v-1c30l04')&&D(t,'class',i),1&n&&s!==(s='triangle '+e[0]+' v-1c30l04')&&D(a,'class',s),1&n&&d!==(d='triangle '+e[0]+' v-1c30l04')&&D(c,'class',d),1&n&&p!==(p='triangle '+e[0]+' v-1c30l04')&&D(v,'class',p),2&n&&U(g,e[1])},d(e){e&&T(t),e&&T(n),e&&T(o)}}}function Go(e){let t,i,n,o,l=e[2]&&Xo(e);return{c(){t=B('div'),l&&l.c(),D(t,'class',i='double-click-area '+e[0]+' v-1c30l04')},m(i,a){var s;q(i,t,a),l&&l.m(t,null),n||(o=H(t,'click',(s=e[3](),function(e){return e.stopPropagation(),s.call(this,e)})),n=!0)},p(e,[n]){e[2]?l?l.p(e,n):(l=Xo(e),l.c(),l.m(t,null)):l&&(l.d(1),l=null),1&n&&i!==(i='double-click-area '+e[0]+' v-1c30l04')&&D(t,'class',i)},i:f,o:f,d(e){e&&T(t),l&&l.d(),n=!1,o()}}}function Jo(e,t,i){let{side:n}=t,{seekStep:o}=t,{handleSingleFirstClick:l}=t,{handleSecondClick:a}=t,s=!1,r=0,c=0;var d;return d=()=>{window.clearTimeout(r),window.clearTimeout(c)},W().$$.on_destroy.push(d),e.$$set=e=>{'side'in e&&i(0,n=e.side),'seekStep'in e&&i(1,o=e.seekStep),'handleSingleFirstClick'in e&&i(4,l=e.handleSingleFirstClick),'handleSecondClick'in e&&i(5,a=e.handleSecondClick)},[n,o,s,()=>{let e=0;return()=>{e+=1,1===e?r=window.setTimeout((()=>{l(),e=0}),300):(window.clearTimeout(r),e=0,a(),i(2,s=!0),c=window.setTimeout((()=>{i(2,s=!1)}),500))}},l,a]}class Zo extends $e{constructor(e){super(),we(this,e,Jo,Go,x,{side:0,seekStep:1,handleSingleFirstClick:4,handleSecondClick:5},Yo)}}const el=(e,t)=>e<400||t<225?5:e<640||t<360?0:e<960||t<540?1:e<1280||t<720?2:3;class tl{constructor(e){this.adman=null,this.initialVolume=1,this.videoElement=null,this.currentAdSection=null,this.actions=null,this.adsState=null,this.uiState=null,this.events={slotRequested$:new r,started$:new r,paused$:new r,resumed$:new r,ended$:new r,skipped$:new r,clicked$:new r},this.loadAdman=e=>new Promise(((t,i)=>{let n;const o=()=>{clearTimeout(n),delete window.admanAsyncInit,window.AdmanHTML?t():i()};c('//ad.mail.ru/static/admanhtml/rbadman-html5.min.js',e,2e3).then((()=>{window.AdmanHTML?t():(window.admanAsyncInit=o,n=window.setTimeout(o,2e3))})).catch((()=>{i()}))})),this.onAdsReady=()=>{this.log({message:'ads ready'}),this.startPreroll()},this.onAdStarted=(e,t)=>{a(this.adsState),a(this.uiState),a(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'}),A(this.uiState.isMobile)&&this.uiState.mobileUnmuteButtonVisible.set(!0)),this.adsState.duration.set(t.duration),this.adsState.playbackState.set(At.PLAYING),this.adsState.canSkip.set(t.allowClose),this.adsState.secondsToWatchBeforeSkip.set(t.allowCloseDelay)},this.onAdTimeRemained=({currentTime:e})=>{a(this.adsState),this.adsState.position.set(e)},this.onAdPaused=()=>{a(this.adsState),this.log({message:'ad paused'}),this.adsState.playbackState.set(At.PAUSED)},this.onAdPlayed=()=>{a(this.adsState),this.log({message:'ad played'}),this.adsState.playbackState.set(At.PLAYING)},this.onAdMidrollPoint=()=>{a(this.adman),a(this.actions),this.log({message:'midroll point'}),this.actions.switchFromVideoToAds(),this.currentAdSection=zt.Midroll,this.adman.start(zt.Midroll)},this.onAdSkipped=()=>{this.log({message:'ad skipped'}),this.switchToVideo()},this.onAdClosed=()=>{this.log({message:'ad closed'}),this.switchToVideo()},this.onAdCompleted=()=>{this.log({message:'ad completed'}),this.events.ended$.next(),this.switchToVideo()},this.onAdClicked=()=>{var e;this.log({message:'ad clicked'}),null===(e=this.videoElement)||void 0===e||e.pause(),this.events.clicked$.next()},this.onAdError=()=>{this.log({message:'ad error'}),this.switchToVideo()},this.log=e.createComponentLog('AdmanWrapper')}init(e,t,i){this.actions=e,this.adsState=t,this.uiState=i}onAdmanLoadingError(){this.log({message:'adman loading error'}),this.switchToVideo(!0)}initAdman(e){const{width:t,height:i,isFullscreen:n,isAutoplay:o,adsContainer:l,adsVideoElement:a,slotId:s,params:r={},duration:c,previewParam:d}=e,u={slot:s,wrapper:l,videoEl:a,videoQuality:i,params:Object.assign({dl:encodeURIComponent(window.location.href),autoplay:o,player_width:t,player_height:i,puid10:el(t,i),puid11:n?0:1,preview:d,duration:c},r),browser:{mobile:!1}},v=new window.AdmanHTML;v.setDebug(!1),v.onReady(this.onAdsReady),v.onStarted(this.onAdStarted),v.onPlayed(this.onAdPlayed),v.onPaused(this.onAdPaused),v.adMidrollPoint(this.onAdMidrollPoint),v.onClosed(this.onAdClosed),v.onSkipped(this.onAdSkipped),v.onClicked(this.onAdClicked),v.onTimeRemained(this.onAdTimeRemained),v.onCompleted(this.onAdCompleted),v.onError(this.onAdError),v.init(u),this.adman=v,this.videoElement=a,this.events.slotRequested$.next(),this.log({message:`adman init, config: ${JSON.stringify(u)}`})}switchToVideo(e=!1){if(null===this.currentAdSection&&!e)return void this.log({message:'switch to video, no currentAdSection. can\'t switch'});a(this.actions),a(this.adsState),a(this.uiState);const t=this.currentAdSection===zt.Postroll;this.adsState.playbackState.set(At.INACTIVE),this.currentAdSection=null,this.uiState.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(){a(this.adsState),this.log({message:'toggle play'});const e=A(this.adsState.playbackState);e===At.PLAYING?this.pause():e===At.PAUSED&&this.play()}setInitialVolume(e){this.log({message:`set initial volume ${e}`}),this.initialVolume=e}setVolume(e){var t;this.log({message:`set volume ${e}`}),null===(t=this.adman)||void 0===t||t.setVolume(e),this.videoElement&&(this.videoElement.volume=e)}setFullscreen(e){var t;this.log({message:`set fullscreen ${e}`}),null===(t=this.adman)||void 0===t||t.setFullscreen(e)}startPreroll(){a(this.adman),this.log({message:'start preroll'}),this.setVolume(this.initialVolume),this.currentAdSection=zt.Preroll,this.adman.start(zt.Preroll)}startPostroll(){a(this.adman),a(this.actions),this.log({message:'start postroll'}),this.actions.switchFromVideoToAds(),this.currentAdSection=zt.Postroll,this.adman.start(zt.Postroll)}play(){a(this.adman),this.log({message:'ad play'}),this.adman.resume(),this.events.resumed$.next()}pause(){a(this.adman),this.log({message:'ad pause'}),this.adman.pause(),this.events.paused$.next()}skip(){a(this.adman),this.log({message:'ad skip'}),this.adman.skip(),this.events.skipped$.next()}setPosition(e,t){var i;null===(i=this.adman)||void 0===i||i.setPosition(Math.floor(e),Math.floor(t))}destroy(){var e;this.log({message:'destroy'}),null===(e=this.adman)||void 0===e||e.destroy()}}const il=()=>{const e=document;return!!(e.fullscreenElement||e.mozFullScreenElement||e.webkitFullscreenElement||e.msFullscreenElement)},nl=e=>{const t=Math.round(e);return isNaN(t)||t<40?'':t>=40&&t<55?50:t>=55&&t<90?60:t>=90&&t<180?120:t>=180?240:''},ol=e=>e>1?1:e<0?0:e,ll=e=>lo.set('vk_player_preferred_volume',ol(e)),al=()=>{const e=parseFloat(lo.get('vk_player_preferred_volume'));return isNaN(e)?1:ol(e)},sl=e=>lo.set('vk_player_prefer_volume_mute',e),rl=({videoId:l,albumId:s,autoplay:r,statPlace:c,callbacks:g,uiCallbacks:f})=>{const b=new n,w=new u,$=new tl(w),y=w.createComponentLog('Store');let x,k;const V=xe([],(e=>{let t=[];const i=p(b.events.managedError$,b.events.fatalError$).subscribe((i=>{t=[...t,i],e(t)}));return()=>i.unsubscribe()})),P=xe(!1,(e=>{const t=b.events.fatalError$.subscribe((()=>e(!0)));return()=>t.unsubscribe()})),z=ke(Pt.Thumb),C=Ve([P,z],(([e,t])=>e?Pt.Crashed:t));y({message:'create store'});const S=new m({movieId:l,albumId:s,place:c,autoplay:r},{apiEnv:h.VK_ALIAS}),M=((e,t,i)=>{const n=new d;return n.add(i.attachTo(e)),n.add(t.slotRequested$.subscribe((()=>{i.logAdSlotRequest()}))).add(t.started$.subscribe((e=>{i.logAdStarted(e)}))).add(t.paused$.subscribe((()=>{i.logAdPaused()}))).add(t.resumed$.subscribe((()=>{i.logAdResumed()}))).add(t.ended$.subscribe((()=>{i.logAdEnded()}))).add(t.skipped$.subscribe((()=>{i.logAdSkipped()}))).add(t.clicked$.subscribe((()=>{i.logAdClicked()}))),n})(b,$.events,S),L=()=>{/ipad|iphone|ipod/.test(window.navigator.userAgent.toLowerCase())&&k&&(e=>{const t=e;(null==t?void 0:t.webkitExitFullscreen)?null==t||t.webkitExitFullscreen():Promise.reject()})(k)},N=(new d).add(b.experimental.element$.subscribe((e=>{e&&(k=e,e.classList.add('player-media'))}))).add(b.events.ended$.subscribe((()=>{var e;L(),null===(e=g.onEnded)||void 0===e||e.call(g)}))).add(b.events.started$.subscribe((()=>{var e;const t=b.info.muted$.getValue();null===(e=g.onStarted)||void 0===e||e.call(g),f.onStarted(t)}))).add(b.events.willSeek$.subscribe((({from:e,to:t})=>{var i;null===(i=g.onSeek)||void 0===i||i.call(g,e,t)}))).add(b.info.position$.subscribe((e=>{var t;const i=b.info.duration$.getValue();null===(t=g.onTimeupdate)||void 0===t||t.call(g,i,e),$.setPosition(e,i)}))).add(b.events.fatalError$.subscribe((()=>{var e;null===(e=g.onCrashed)||void 0===e||e.call(g)}))),q=new d,T=xe(b.info.position$.getValue(),(e=>{let i,n;const o=()=>{const l=b.info.playbackState$.getValue(),a=b.info.isLive$.getValue(),s=b.info.duration$.getValue(),r=b.info.position$.getValue();if([t.PLAYING,t.PAUSED].includes(l)){const t=a?r-s:b.getExactTime();t!==n&&e(t),n=t}i=requestAnimationFrame(o)};return o(),()=>cancelAnimationFrame(i)})),E=Ce(b.info.playbackState$),B=Ce(b.info.currentBuffer$),I=Ce(b.info.isEnded$),F=Ce(b.info.isLive$),j=Ce(b.info.volume$),R=Ce(b.info.muted$),H=Ce(b.info.availableQualities$),_=Ce(b.info.availableQualitiesFps$),D=Ce(b.info.chromecastState$),U=Ce(b.info.chromecastDeviceName$),O=Ce(b.info.currentFormat$),Q=Ce(b.info.duration$);let K=null;const W=b.info.isBuffering$,Y=xe(W.getValue(),(e=>{const t=W.subscribe((t=>{t&&null===K?K=window.setTimeout((()=>{e(W.getValue()),K=null}),500):e(t)}));return()=>{t.unsubscribe(),K&&clearTimeout(K)}})),X=Ve([Q,F],(([e,t])=>t?-e:e)),G=Ve([F,Ce(b.info.position$)],(([e,t])=>Boolean(e&&t>-5))),J=Ve([D],(([e])=>e===i.CONNECTED)),Z=ke(void 0),ee=Ce(b.info.isAutoQualityEnabled$,(e=>e&&Z.set(void 0))),te=Ce(b.info.currentQuality$,(()=>Z.set(void 0))),ie=Ve([Z,te],(([e,t])=>null!=e?e:t)),ne=Ve([H,_,ee,ie,O],(([t,i,n,l,a])=>{const s=[];a!==o.MPEG&&s.push({value:Vt.AUTO,displayValue:'Авто',selected:n});const r=t.filter((t=>t!==e.INVARIANT));for(const t of r){const o=i[t],a=t===e.INVARIANT?'Авто':t;s.push({value:t,displayValue:`${a}${o?nl(o):''}`,selected:!n&&t===l})}return s})),oe=Ce(b.info.currentPlaybackRate$),le=Ve([oe],(([e])=>{const t=[];for(let i=.25;i<=2;i+=.25)t.push({value:i,displayValue:1===i?'Обычная':i+'x',selected:e===i});return t})),ae=Ve([B,X],(([e,t],i)=>{var n;return i((null!==(n=null==e?void 0:e.end)&&void 0!==n?n:0)/t)})),se=(e,t=e,i=!1)=>{var n,o;const l=!i,a=b.info.muted$.getValue();y({message:`set volume, volume: ${e}, preferredVolume: ${t}, internalCall: ${l}`}),b.setVolume(e),$.setVolume(e),l&&(null===(n=g.onVolumeChange)||void 0===n||n.call(g,e)),ll(t),a&&(b.setMuted(!1),l&&(null===(o=g.onUnmute)||void 0===o||o.call(g)),sl(!1))},re=(e,t=!1)=>{var i,n,o;const l=!t,a=b.info.volume$.getValue();if(y({message:`set muted, currentVolume: ${a}, mute: ${e}, internalCall: ${l}`}),b.setMuted(e),$.setVolume(e?0:a),sl(e),l&&(e?null===(i=g.onMute)||void 0===i||i.call(g):null===(n=g.onUnmute)||void 0===n||n.call(g)),0===a){let e=al();0===e&&(e=.05,ll(e)),b.setVolume(e),$.setVolume(e),l&&(null===(o=g.onVolumeChange)||void 0===o||o.call(g,e))}},ce=e=>{b.setPlaybackRate(e)},de=(e,t=!0)=>{if(y({message:`seek to time, time: ${e}`}),b.info.isLive$.getValue()){const i=b.info.duration$.getValue(),n=Math.min(0,i+e);b.seekTime(n,t)}else b.seekTime(e,t)},ue=ke(void 0),ve=ke(!1),pe=e=>{ue.set(e)};let me;const he=()=>{ue.set(void 0),ve.set(!1)},ge=()=>{clearTimeout(me),me=window.setTimeout((()=>{he()}),500),null==k||k.removeEventListener('canplay',ge)},fe=Ve([T,X,ue],(([e,t,i],n)=>{n(v(i)?i*t:e)})),be=e=>{var t;a($e);const i=!e;if(A($e.playerPhase)===Pt.Ads)return y({message:`pause ads, internalCall: ${i}`}),void $.pause();y({message:`pause video, internalCall: ${i}`}),i&&(null===(t=g.onPause)||void 0===t||t.call(g)),b.pause()},we=(e,t)=>{a($e),y({message:`first start, show ads: ${e}, internalCall: ${!t}`}),e?z.set(Pt.Ads):(z.set(Pt.Video),t?b.play():$e.actions.internal.togglePlay())},$e={initVideo:e=>{y({message:`init video, config: ${JSON.stringify(e)}`}),b.initVideo(e),x=e},videoId:l,playerPhase:C,state:{positionExact$:T,positionWithScrubbing$:fe,duration$:X,playbackState$:E,isLoaderVisible:Y,bufferedProgress$:ae,isLive$:F,isActiveLive$:G,isEnded$:I,muted$:R,volume$:j,currentQuality$:ie,isAutoQualityEnabled$:ee,availableQualities$:ne,currentPlaybackRate$:oe,availablePlaybackRates$:le,chromecastState$:D,chromecastDeviceName$:U,chromecastConnected$:J,currentFormat$:O,errorLog$:V,crashed$:P},ui:{controlsVisible:ke(!1),isFullscreen:ke(!1),isAutoplay:ke(!1),contextMenuVisible:ke(!1),debugPanelVisible:ke(!1),playerSize:ke({width:0,height:0}),isMobile:ke(!1),mobileUnmuteButtonExpanded:ke(!1),mobileUnmuteButtonVisible:ke(!1),settingsMenuVisible:ke(!1),scrubbingInProgress:ve},ads:{position:ke(0),duration:ke(0),playbackState:ke(At.INACTIVE),canSkip:ke(!1),secondsToWatchBeforeSkip:ke(0),postrollPassed:ke(!1)},actions:{internal:{firstStart:e=>we(e,!1),pause:()=>be(!1),togglePlay:()=>{var e,i;a($e),y({message:'toggle play'}),A($e.playerPhase)!==Pt.Ads?b.info.playbackState$.getValue()!==t.PLAYING?(b.info.isEnded$.getValue()&&(y({message:'toggle play, video ended, seek to 0'}),b.seekTime(0)),y({message:'toggle play, call player.play'}),b.play(),null===(e=g.onPlay)||void 0===e||e.call(g)):(y({message:'toggle play, call player.pause'}),b.pause(),null===(i=g.onPause)||void 0===i||i.call(g)):$.togglePlay()},toggleMuted:()=>{y({message:'toggle muted'});const e=b.info.muted$.getValue(),t=b.info.volume$.getValue();re(!(0===t||e))},setVolume:se,setQuality:e=>{y({message:`set quality, quality: ${e}`}),b.setAutoQuality(e===Vt.AUTO),e!==Vt.AUTO&&(Z.set(e),b.setQuality(e))},setPlaybackRate:ce,incrementPlaybackRate:()=>{const e=A(le),t=e.findIndex((({selected:e})=>e));if(t===e.length-1)return;const i=e[t+1];ce(i.value)},decrementPlaybackRate:()=>{const e=A(le),t=e.findIndex((({selected:e})=>e));if(0===t)return;const i=e[t-1];ce(i.value)},startScrubbing:e=>{y({message:`start scrubbing, progress: ${e}`}),ve.set(!0),pe(e)},progressScrubbing:pe,completeScrubbing:e=>{y({message:`complete scrubbing, progress: ${e}`}),(e=>{y({message:`seek to percent, percent: ${e}`});const t=Math.round(A(X)*e);de(t,!1)})(e),A($e.ui.isMobile)&&A($e.state.currentFormat$)===o.HLS?null==k||k.addEventListener('canplay',ge):he()},toggleChromecast:()=>{y({message:'toggle chromecast'}),b.toggleChromecast()},switchToActiveLive:()=>{y({message:'switch to active live'}),b.seekTime(0)},switchFromAdsToVideo:(e=!0)=>{a($e),y({message:`switch from ads to video, callPlay: ${e}`}),z.set(Pt.Video),e&&b.play()},switchFromVideoToAds:()=>{a($e),y({message:'switch from video to ads'}),$e.actions.internal.pause(),L(),z.set(Pt.Ads)},skipAd:()=>$.skip(),getDebugTextData:()=>(a($e),((e,t,i)=>{var n,o,l,a;const s=e.info,{width:r,height:c}=A(i.ui.playerSize),d=null!==(o=null===(n=s.throughputEstimation$.getValue())||void 0===n?void 0:n.toFixed(0))&&void 0!==o?o:0,u=null!==(a=null===(l=s.rttEstimation$.getValue())||void 0===l?void 0:l.toFixed(0))&&void 0!==a?a:0,v=s.isAutoQualityEnabled$.getValue()?'auto':'manual',p={Version:'@vkontakte/videoplayer@1.1.14',Browser:navigator.userAgent,'United video id':i.videoId,'Content host':s.hostname$.getValue(),'Connection type':s.httpConnectionType$.getValue()+(s.httpConnectionReused$.getValue()?' (reused)':''),Throughput:`${d}Kbps @ ${u}ms RTT`,Format:s.currentFormat$.getValue(),'Available Formats':Object.keys(t.sources).join(', '),Quality:`${v} ${s.currentQuality$.getValue()}`,'Available qualities':s.availableQualities$.getValue().join(', '),Position:`${A(i.state.positionExact$)}s`,State:`${A(i.playerPhase)} ${s.playbackState$.getValue()}`,'Player size':`${r}x${c}`,URL:window.location.href,Errors:A(i.state.errorLog$).map((({id:e})=>e)).join(', ')};return Object.entries(p).map((([e,t])=>`${e}: ${t}`)).join('\n')})(b,x,$e)),getDebugPanelData:()=>(a($e),((e,t,i)=>{const n=e.info,{width:o,height:l}=A(i.ui.playerSize),a={version:'1.1.14',viewport:`${o}x${l}`,volume:Math.round(100*A(i.state.volume$))},s=i.videoId;s&&(a.id=s),n.currentFormat$.getValue()&&(a.provider=n.currentFormat$.getValue()),n.hostname$.getValue()&&(a.cdn=n.hostname$.getValue());const r=n.intrinsicVideoSize$.getValue();r&&(a.videoSize=`${r.width}x${r.height}`);const c=n.currentBuffer$.getValue();c&&(a.buffer=Math.max(c.end-A(i.state.positionExact$),0));const d=n.throughputEstimation$.getValue();d&&(a.speed=d);const u=n.videoBitrate$.getValue();return u&&(a.bitrate=u),a})(b,0,$e)),getVideoElement:()=>k,seekTime:e=>de(e),startLogging:()=>{q.add(b.events.log$.subscribe((e=>{console.debug('%c sdk ','background:#9ddcf7;',`sdk component: ${e.component}`,e.message)}))).add(w.log$.subscribe((e=>{console.debug('%c ui ','background:#f3da0b;',`ui component: ${e.component}.`,e.message)})))},stopLogging:()=>{q.unsubscribe()}},external:{firstStart:e=>we(e,!0),play:()=>(e=>{var t;a($e);const i=!e;if(A($e.playerPhase)===Pt.Ads)return y({message:`play ads, internalCall: ${i}`}),void $.play();y({message:`play video, internalCall: ${i}`}),i&&(null===(t=g.onPlay)||void 0===t||t.call(g)),b.play()})(!0),pause:()=>be(!0),seekTime:e=>(e=>{y({message:`seek external, time: ${e}`}),b.seekTime(b.info.isLive$.getValue()?-e:e)})(e),setMuted:e=>re(e,!0),setVolume:e=>se(e,e,!0)}},callbacks:g,getAdmanWrapper:()=>$,getLogger:()=>w,destroy:()=>{S.destroy(),M.unsubscribe(),N.unsubscribe(),q.unsubscribe(),b.destroy(),$.destroy()}};return $e},{window:cl}=me;function dl(e){N(e,'v-phigzb','.player-wrapper.v-phigzb{--white:#fff;--black:#000;--red:#ff3347;--videoplayer-controls-height:45px;--videoplayer-controls-fullscreen-height:50px;--videoplayer-controls-gradient-height:100px;--videoplayer-controls-transition-duration:0.25s;--videoplayer-controls-transition-fn:cubic-bezier(0.455, 0.03, 0.515, 0.955);--videoplayer-focused-element-shadow:inset 0 0 0 2px #2a5885;--videoplayer-focused-slider-shadow:0 0 0 2px #2a5885;--videoplayer-big-play-size:75px;--videoplayer-big-play-radius:50%;--videoplayer-big-play-bg-color:rgba(0, 0, 0, 0.5);--videoplayer-big-play-hover-bg-color:rgba(0, 0, 0, 0.6);--videoplayer-big-play-icon-width:38px;--videoplayer-big-play-icon-height:33px;--videoplayer-slider-height:5px;--videoplayer-slider-radius:calc(var(--videoplayer-slider-height) / 2);--videoplayer-slider-handle-size:13px;--videoplayer-slider-bg:rgba(255, 255, 255, 0.4);--videoplayer-slider-loaded-bg:rgba(255, 255, 255, 0.4);--videoplayer-slider-filled-bg:var(--white);--videoplayer-slider-filled-active-live-bg:var(--red);--videoplayer-slider-filled-ads:rgba(103, 165, 235, 1);--videoplayer-slider-disabled-color:rgba(248, 248, 248, 0.31);--videplayer-mobile-settings-bg:#2C2D2E;--videoplayer-button-hover-transition:opacity 0.2s;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}.player-wrapper.v-phigzb .player-media{position:absolute;left:0;top:0;width:100%;height:100%;background:var(--black);transition:transform 0.2s ease-in-out}.video-container.v-phigzb,.ads-container.v-phigzb{position:absolute;width:100%;height:100%;left:0;top:0}.video-container.v-phigzb{z-index:0}.nocursor.v-phigzb{cursor:none}.ads-container.v-phigzb{background:var(--black)}.hidden.v-phigzb{visibility:hidden}div{outline:none}')}function ul(e){let t,i,n,o;t=new Zo({props:{side:'left',seekStep:Pl,handleSingleFirstClick:e[66],handleSecondClick:e[95]}});let l=!e[37]&&vl(e);return{c(){he(t.$$.fragment),i=j(),l&&l.c(),n=R()},m(e,a){ge(t,e,a),q(e,i,a),l&&l.m(e,a),q(e,n,a),o=!0},p(e,t){e[37]?l&&(de(),pe(l,1,1,(()=>{l=null})),ue()):l?(l.p(e,t),64&t[1]&&ve(l,1)):(l=vl(e),l.c(),ve(l,1),l.m(n.parentNode,n))},i(e){o||(ve(t.$$.fragment,e),ve(l),o=!0)},o(e){pe(t.$$.fragment,e),pe(l),o=!1},d(e){fe(t,e),e&&T(i),l&&l.d(e),e&&T(n)}}}function vl(e){let t,i;return t=new Zo({props:{side:'right',seekStep:Pl,handleSingleFirstClick:e[66],handleSecondClick:e[96]}}),{c(){he(t.$$.fragment)},m(e,n){ge(t,e,n),i=!0},p:f,i(e){i||(ve(t.$$.fragment,e),i=!0)},o(e){pe(t.$$.fragment,e),i=!1},d(e){fe(t,e)}}}function pl(e){let t,i,n;return i=new Kn({props:{adsSlotId:e[5],adsParams:e[6],adsPreviewParam:e[7],duration:e[8]}}),{c(){t=B('div'),he(i.$$.fragment),D(t,'class','ads-container v-phigzb'),Q(t,'hidden',e[25]!==Pt.Ads)},m(e,o){q(e,t,o),ge(i,t,null),n=!0},p(e,n){const o={};32&n[0]&&(o.adsSlotId=e[5]),64&n[0]&&(o.adsParams=e[6]),128&n[0]&&(o.adsPreviewParam=e[7]),256&n[0]&&(o.duration=e[8]),i.$set(o),33554432&n[0]&&Q(t,'hidden',e[25]!==Pt.Ads)},i(e){n||(ve(i.$$.fragment,e),n=!0)},o(e){pe(i.$$.fragment,e),n=!1},d(e){e&&T(t),fe(i)}}}function ml(e){let t,i,n,o;const l=[gl,hl],a=[];function s(e,t){return e[11]?0:1}return t=s(e),i=a[t]=l[t](e),{c(){i.c(),n=R()},m(e,i){a[t].m(e,i),q(e,n,i),o=!0},p(e,o){let r=t;t=s(e),t===r?a[t].p(e,o):(de(),pe(a[r],1,1,(()=>{a[r]=null})),ue(),i=a[t],i?i.p(e,o):(i=a[t]=l[t](e),i.c()),ve(i,1),i.m(n.parentNode,n))},i(e){o||(ve(i),o=!0)},o(e){pe(i),o=!1},d(e){a[t].d(e),e&&T(n)}}}function hl(e){let t,i;return t=new No({props:{title:e[15],thumb:e[16],playNextVideo:e[18]}}),{c(){he(t.$$.fragment)},m(e,n){ge(t,e,n),i=!0},p(e,i){const n={};32768&i[0]&&(n.title=e[15]),65536&i[0]&&(n.thumb=e[16]),262144&i[0]&&(n.playNextVideo=e[18]),t.$set(n)},i(e){i||(ve(t.$$.fragment,e),i=!0)},o(e){pe(t.$$.fragment,e),i=!1},d(e){fe(t,e)}}}function gl(e){let t,i;return t=new To({props:{playNextVideo:e[18]}}),{c(){he(t.$$.fragment)},m(e,n){ge(t,e,n),i=!0},p(e,i){const n={};262144&i[0]&&(n.playNextVideo=e[18]),t.$set(n)},i(e){i||(ve(t.$$.fragment,e),i=!0)},o(e){pe(t.$$.fragment,e),i=!1},d(e){fe(t,e)}}}function fl(e){let t,i;return t=new Fo({props:{title:e[0],isHidden:!e[21]}}),{c(){he(t.$$.fragment)},m(e,n){ge(t,e,n),i=!0},p(e,i){const n={};1&i[0]&&(n.title=e[0]),2097152&i[0]&&(n.isHidden=!e[21]),t.$set(n)},i(e){i||(ve(t.$$.fragment,e),i=!0)},o(e){pe(t.$$.fragment,e),i=!1},d(e){fe(t,e)}}}function bl(e){let t,i;return t=new Do({props:{thumbUrl:e[1],chromecastDeviceName:e[38]}}),{c(){he(t.$$.fragment)},m(e,n){ge(t,e,n),i=!0},p(e,i){const n={};2&i[0]&&(n.thumbUrl=e[1]),128&i[1]&&(n.chromecastDeviceName=e[38]),t.$set(n)},i(e){i||(ve(t.$$.fragment,e),i=!0)},o(e){pe(t.$$.fragment,e),i=!1},d(e){fe(t,e)}}}function wl(e){let t,i,n={toggleFullscreen:e[63],hideContextMenu:e[64],isAds:e[25]===Pt.Ads};return t=new Wo({props:n}),e[98](t),{c(){he(t.$$.fragment)},m(e,n){ge(t,e,n),i=!0},p(e,i){const n={};33554432&i[0]&&(n.isAds=e[25]===Pt.Ads),t.$set(n)},i(e){i||(ve(t.$$.fragment,e),i=!0)},o(e){pe(t.$$.fragment,e),i=!1},d(i){e[98](null),fe(t,i)}}}function $l(e){let t,i,n,o,l;return i=new Qo({}),{c(){t=B('div'),he(i.$$.fragment)},m(a,s){q(a,t,s),ge(i,t,null),n=!0,o||(l=[H(t,'contextmenu',_(e[65])),H(t,'click',e[68])],o=!0)},p:f,i(e){n||(ve(i.$$.fragment,e),n=!0)},o(e){pe(i.$$.fragment,e),n=!1},d(e){e&&T(t),fe(i),o=!1,$(l)}}}function yl(e){let t,i;return t=new Gn({props:{supportLink:e[3],visible:e[36],playerContainerRef:e[27],controlsContainerRef:e[29],x:e[31],y:e[32]}}),{c(){he(t.$$.fragment)},m(e,n){ge(t,e,n),i=!0},p(e,i){const n={};8&i[0]&&(n.supportLink=e[3]),32&i[1]&&(n.visible=e[36]),134217728&i[0]&&(n.playerContainerRef=e[27]),536870912&i[0]&&(n.controlsContainerRef=e[29]),1&i[1]&&(n.x=e[31]),2&i[1]&&(n.y=e[32]),t.$set(n)},i(e){i||(ve(t.$$.fragment,e),i=!0)},o(e){pe(t.$$.fragment,e),i=!1},d(e){fe(t,e)}}}function xl(e){let t,i;return t=new kn({}),{c(){he(t.$$.fragment)},m(e,n){ge(t,e,n),i=!0},i(e){i||(ve(t.$$.fragment,e),i=!0)},o(e){pe(t.$$.fragment,e),i=!1},d(e){fe(t,e)}}}function kl(e){let t,i;return t=new wo({}),{c(){he(t.$$.fragment)},m(e,n){ge(t,e,n),i=!0},i(e){i||(ve(t.$$.fragment,e),i=!0)},o(e){pe(t.$$.fragment,e),i=!1},d(e){fe(t,e)}}}function Vl(e){let t,i,n,o,l,a,s,r,c,d,u,v,p,m,h,g,b,w,x;i=new $n({props:{hidden:e[25]!==Pt.Thumb||e[23],thumbUrl:e[1],startVideo:e[61]}});let k=e[11]&&ul(e),V=e[4]&&e[30]&&pl(e),P=e[22]&&e[15]&&e[16]&&ml(e),z=!e[11]&&e[25]===Pt.Video&&fl(e),A=e[24]&&bl(e),C=!e[11]&&wl(e);function S(t){e[99](t)}let M={hidden:e[25]===Pt.Thumb||e[11]&&e[25]===Pt.Ads,showControls:e[21],isAds:e[25]===Pt.Ads,canRewindLive:e[2]&&0!==e[26],logoClickable:e[9],logoHidden:e[10],showNextPrevButtons:e[12],nextButtonActive:e[13],prevButtonActive:e[14],isOneVideoPlaylist:e[17],supportLink:e[3],playNextVideo:e[18],playPrevVideo:e[19],repeatPlaylist:e[20],toggleFullscreen:e[63]};void 0!==e[29]&&(M.controlsElementRef=e[29]),u=new gn({props:M}),J.push((()=>function(e,t,i){const n=e.$$.props[t];void 0!==n&&(e.$$.bound[n]=i,i(e.$$.ctx[n]))}(u,'controlsElementRef',S)));let N=e[23]&&$l(e),E=!e[11]&&yl(e),I=e[34]&&xl(),F=e[39]&&kl();return{c(){t=B('div'),he(i.$$.fragment),n=j(),o=B('div'),k&&k.c(),l=j(),V&&V.c(),a=j(),P&&P.c(),s=j(),z&&z.c(),r=j(),A&&A.c(),c=j(),C&&C.c(),d=j(),he(u.$$.fragment),p=j(),N&&N.c(),m=j(),E&&E.c(),h=j(),I&&I.c(),g=j(),F&&F.c(),D(o,'class','video-container v-phigzb'),Q(o,'hidden',e[25]!==Pt.Video),Q(o,'nocursor',e[35]),D(t,'class','player-wrapper v-phigzb'),D(t,'tabindex','0')},m(v,$){q(v,t,$),ge(i,t,null),L(t,n),L(t,o),k&&k.m(o,null),e[97](o),L(t,l),V&&V.m(t,null),L(t,a),P&&P.m(t,null),L(t,s),z&&z.m(t,null),L(t,r),A&&A.m(t,null),L(t,c),C&&C.m(t,null),L(t,d),ge(u,t,null),L(t,p),N&&N.m(t,null),L(t,m),E&&E.m(t,null),L(t,h),I&&I.m(t,null),L(t,g),F&&F.m(t,null),e[100](t),b=!0,w||(x=[H(cl,'blur',e[64]),H(o,'contextmenu',_(e[65])),H(o,'click',e[67]),H(t,'mouseenter',(function(){y(e[11]?f:e[58])&&(e[11]?f:e[58]).apply(this,arguments)})),H(t,'mouseleave',(function(){y(e[11]?f:e[59])&&(e[11]?f:e[59]).apply(this,arguments)})),H(t,'mousemove',(function(){y(e[11]?f:e[60])&&(e[11]?f:e[60]).apply(this,arguments)})),H(t,'keydown',(function(){y(e[11]?f:e[69])&&(e[11]?f:e[69]).apply(this,arguments)}))],w=!0)},p(n,l){e=n;const p={};41943040&l[0]&&(p.hidden=e[25]!==Pt.Thumb||e[23]),2&l[0]&&(p.thumbUrl=e[1]),i.$set(p),e[11]?k?(k.p(e,l),2048&l[0]&&ve(k,1)):(k=ul(e),k.c(),ve(k,1),k.m(o,null)):k&&(de(),pe(k,1,1,(()=>{k=null})),ue()),33554432&l[0]&&Q(o,'hidden',e[25]!==Pt.Video),16&l[1]&&Q(o,'nocursor',e[35]),e[4]&&e[30]?V?(V.p(e,l),1073741840&l[0]&&ve(V,1)):(V=pl(e),V.c(),ve(V,1),V.m(t,a)):V&&(de(),pe(V,1,1,(()=>{V=null})),ue()),e[22]&&e[15]&&e[16]?P?(P.p(e,l),4292608&l[0]&&ve(P,1)):(P=ml(e),P.c(),ve(P,1),P.m(t,s)):P&&(de(),pe(P,1,1,(()=>{P=null})),ue()),e[11]||e[25]!==Pt.Video?z&&(de(),pe(z,1,1,(()=>{z=null})),ue()):z?(z.p(e,l),33556480&l[0]&&ve(z,1)):(z=fl(e),z.c(),ve(z,1),z.m(t,r)),e[24]?A?(A.p(e,l),16777216&l[0]&&ve(A,1)):(A=bl(e),A.c(),ve(A,1),A.m(t,c)):A&&(de(),pe(A,1,1,(()=>{A=null})),ue()),e[11]?C&&(de(),pe(C,1,1,(()=>{C=null})),ue()):C?(C.p(e,l),2048&l[0]&&ve(C,1)):(C=wl(e),C.c(),ve(C,1),C.m(t,d));const f={};var b;33556480&l[0]&&(f.hidden=e[25]===Pt.Thumb||e[11]&&e[25]===Pt.Ads),2097152&l[0]&&(f.showControls=e[21]),33554432&l[0]&&(f.isAds=e[25]===Pt.Ads),67108868&l[0]&&(f.canRewindLive=e[2]&&0!==e[26]),512&l[0]&&(f.logoClickable=e[9]),1024&l[0]&&(f.logoHidden=e[10]),4096&l[0]&&(f.showNextPrevButtons=e[12]),8192&l[0]&&(f.nextButtonActive=e[13]),16384&l[0]&&(f.prevButtonActive=e[14]),131072&l[0]&&(f.isOneVideoPlaylist=e[17]),8&l[0]&&(f.supportLink=e[3]),262144&l[0]&&(f.playNextVideo=e[18]),524288&l[0]&&(f.playPrevVideo=e[19]),1048576&l[0]&&(f.repeatPlaylist=e[20]),!v&&536870912&l[0]&&(v=!0,f.controlsElementRef=e[29],b=()=>v=!1,ee.push(b)),u.$set(f),e[23]?N?(N.p(e,l),8388608&l[0]&&ve(N,1)):(N=$l(e),N.c(),ve(N,1),N.m(t,m)):N&&(de(),pe(N,1,1,(()=>{N=null})),ue()),e[11]?E&&(de(),pe(E,1,1,(()=>{E=null})),ue()):E?(E.p(e,l),2048&l[0]&&ve(E,1)):(E=yl(e),E.c(),ve(E,1),E.m(t,h)),e[34]?I?8&l[1]&&ve(I,1):(I=xl(),I.c(),ve(I,1),I.m(t,g)):I&&(de(),pe(I,1,1,(()=>{I=null})),ue()),e[39]?F?256&l[1]&&ve(F,1):(F=kl(),F.c(),ve(F,1),F.m(t,null)):F&&(de(),pe(F,1,1,(()=>{F=null})),ue())},i(e){b||(ve(i.$$.fragment,e),ve(k),ve(V),ve(P),ve(z),ve(A),ve(C),ve(u.$$.fragment,e),ve(N),ve(E),ve(I),ve(F),b=!0)},o(e){pe(i.$$.fragment,e),pe(k),pe(V),pe(P),pe(z),pe(A),pe(C),pe(u.$$.fragment,e),pe(N),pe(E),pe(I),pe(F),b=!1},d(n){n&&T(t),fe(i),k&&k.d(),e[97](null),V&&V.d(),P&&P.d(),z&&z.d(),A&&A.d(),C&&C.d(),fe(u),N&&N.d(),E&&E.d(),I&&I.d(),F&&F.d(),e[100](null),w=!1,$(x)}}}let Pl=15;function zl(e,i,n){let o,a,s,r,c,d,u,v,p,m,h,g,b,w,$,y,x,k,{sources:V}=i,{title:P}=i,{thumbUrl:z}=i,{unitedVideoId:A}=i,{albumId:S}=i,{statPlace:M}=i,{autoplay:L=!1}=i,{volume:N}=i,{muted:q}=i,{fromTime:T=0}=i,{canRewindLive:E=!0}=i,{supportLink:B=Se}=i,{showAds:I=!1}=i,{adsSlotId:F}=i,{adsParams:j}=i,{adsPreviewParam:R}=i,{duration:H}=i,{logoClickable:_=!1}=i,{logoHidden:D=!1}=i,{isMobile:U=!1}=i,{showNextPrevButtons:O=!1}=i,{nextButtonActive:Q=!1}=i,{prevButtonActive:K=!1}=i,{endScreenVideoTitle:W}=i,{endScreenVideoThumb:X}=i,{isOneVideoPlaylist:G=!1}=i,{outerContainerRef:Z}=i,{playNextVideo:ee=f}=i,{playPrevVideo:te=f}=i,{repeatPlaylist:ie=f}=i,{callbacks:ne={}}=i,{fullScreenTarget:oe}=i,{failoverHosts:le}=i;const ae=rl({videoId:A,autoplay:L,albumId:S,statPlace:M,callbacks:ne,uiCallbacks:{onStarted:e=>{me.set(!0),e?U&&(Ae.set(!0),Pe.set(!0),window.setTimeout((()=>{Pe.set(!1),Qe(2e3)}),6e3)):Qe(2e3)}}});ae.getAdmanWrapper().init({switchFromAdsToVideo:ae.actions.internal.switchFromAdsToVideo,switchFromVideoToAds:ae.actions.internal.switchFromVideoToAds,setMuted:ae.actions.external.setMuted},ae.ads,{isMobile:ae.ui.isMobile,mobileUnmuteButtonVisible:ae.ui.mobileUnmuteButtonVisible});const se=ae.getLogger().createComponentLog('Root component'),re=ae.state.playbackState$;C(e,re,(e=>n(106,v=e)));const ce=ae.ads.playbackState;C(e,ce,(e=>n(93,b=e)));const de=ae.state.positionWithScrubbing$;C(e,de,(e=>n(104,d=e)));const ue=ae.state.duration$;C(e,ue,(e=>n(103,c=e)));const ve=ae.playerPhase;C(e,ve,(e=>n(25,w=e)));const pe=ae.ui.isFullscreen;C(e,pe,(e=>n(102,r=e)));const me=ae.ui.controlsVisible;C(e,me,(e=>n(90,s=e)));const he=ae.ui.settingsMenuVisible;C(e,he,(e=>n(105,u=e)));const ge=ae.ui.scrubbingInProgress;C(e,ge,(e=>n(91,p=e)));const fe=ae.ui.playerSize,be=ae.ui.contextMenuVisible;C(e,be,(e=>n(36,o=e)));const we=ae.ui.debugPanelVisible;C(e,we,(e=>n(39,k=e)));const $e=ae.state.isLoaderVisible;C(e,$e,(e=>n(94,$=e)));const ye=ae.state.isEnded$;C(e,ye,(e=>n(89,a=e)));const xe=ae.state.chromecastConnected$;C(e,xe,(e=>n(24,g=e)));const ke=ae.state.chromecastDeviceName$;C(e,ke,(e=>n(38,x=e)));const Ve=ae.ads.postrollPassed;C(e,Ve,(e=>n(92,h=e)));const Pe=ae.ui.mobileUnmuteButtonExpanded,Ae=ae.ui.mobileUnmuteButtonVisible,Ce=ae.state.isActiveLive$;C(e,Ce,(e=>n(37,y=e)));const Me=ae.state.crashed$;C(e,Me,(e=>n(23,m=e)));let Le,Ne,qe,Te,Ee=0;ae.state.duration$.subscribe((e=>{n(26,Ee=e)})),ze(ae);let Be,Ie,Fe,je,Re,He=null,_e=!1,De=0,Ue=0,Oe=!1;function Qe(e){n(87,Te=window.setTimeout((()=>{if(v===t.PLAYING){if(U&&u)return;me.set(!1),he.set(!1)}}),e))}const Ke=(e=!1)=>{n(30,_e=!0),e?ae.actions.external.firstStart(I):ae.actions.internal.firstStart(I)};function We(e){ae.actions.internal.seekTime(e)}Y((()=>{var e;e=Ge,document.addEventListener('fullscreenchange',e),document.addEventListener('webkitfullscreenchange',e),document.addEventListener('mozfullscreenchange',e),document.addEventListener('MSFullscreenChange',e),(e=>{if(window.ResizeObserver){let t,i;He=new ResizeObserver(l((e=>{const n=e[0];if(n){if(n.contentBoxSize){const e=Array.isArray(n.contentBoxSize)?n.contentBoxSize[0]:n.contentBoxSize;t=e.inlineSize,i=e.blockSize}else n.contentRect&&(t=n.contentRect.width,i=n.contentRect.height);fe.set({width:t,height:i})}}),300)),He.observe(e)}fe.set({width:e.clientWidth,height:e.clientHeight})})(Le),ae.initVideo({container:Ne,sources:V,failoverHosts:le}),T>0&&ae.actions.external.seekTime(T);const t=U?1:null!=N?N:al(),i=null!=q?q:(()=>{const e=lo.get('vk_player_prefer_volume_mute');return'boolean'==typeof e&&e})();ae.actions.external.setVolume(t),ae.actions.external.setMuted(i),ae.getAdmanWrapper().setInitialVolume(i?0:t),ae.ui.isAutoplay.set(L),L&&Ke();const n=Boolean(lo.get('vk_player_debug_panel_opened'));return we.set(n),()=>{(e=>{document.removeEventListener('fullscreenchange',e),document.removeEventListener('webkitfullscreenchange',e),document.removeEventListener('mozfullscreenchange',e),document.removeEventListener('MSFullscreenChange',e)})(Ge),null==He||He.disconnect(),ae.destroy()}}));const Ye=e=>{let t=d+('forward'===e?Pl:-Pl);t<0?t=0:t>c&&(t=c-1),We(t)},Xe=()=>{if(il())(e=document).exitFullscreen?e.exitFullscreen():e.msExitFullscreen?e.msExitFullscreen():e.webkitExitFullscreen?e.webkitExitFullscreen():e.mozCancelFullScreen?e.mozCancelFullScreen():Promise.reject(),se({message:'exit fullscreen'});else{se({message:'request fullscreen'});const e=null!=Z?Z:Le,t=e.getRootNode(),i=t instanceof ShadowRoot?t.host:t,n=oe instanceof HTMLElement&&oe.contains(i);(e=>{if(e.requestFullscreen)return e.requestFullscreen();if(e.msRequestFullscreen)return e.msRequestFullscreen();if(e.webkitRequestFullscreen)return e.webkitRequestFullscreen();if(e.mozRequestFullScreen)return e.mozRequestFullScreen();const t=e.querySelector('video');(null==t?void 0:t.webkitEnterFullscreen)?t.webkitEnterFullscreen():Promise.reject()})(oe&&n?oe:e)}var e},Ge=()=>{var e,t,i,n;const o=il();pe.set(o),ae.getAdmanWrapper().setFullscreen(o),r?null===(t=(e=ae.callbacks).onFullscreenEnter)||void 0===t||t.call(e):null===(n=(i=ae.callbacks).onFullscreenExit)||void 0===n||n.call(i)},Je=()=>be.set(!1),Ze=()=>{s?me.set(!1):(me.set(!0),clearTimeout(Te),Qe(3e3))};return e.$$set=e=>{'sources'in e&&n(70,V=e.sources),'title'in e&&n(0,P=e.title),'thumbUrl'in e&&n(1,z=e.thumbUrl),'unitedVideoId'in e&&n(71,A=e.unitedVideoId),'albumId'in e&&n(72,S=e.albumId),'statPlace'in e&&n(73,M=e.statPlace),'autoplay'in e&&n(74,L=e.autoplay),'volume'in e&&n(75,N=e.volume),'muted'in e&&n(76,q=e.muted),'fromTime'in e&&n(77,T=e.fromTime),'canRewindLive'in e&&n(2,E=e.canRewindLive),'supportLink'in e&&n(3,B=e.supportLink),'showAds'in e&&n(4,I=e.showAds),'adsSlotId'in e&&n(5,F=e.adsSlotId),'adsParams'in e&&n(6,j=e.adsParams),'adsPreviewParam'in e&&n(7,R=e.adsPreviewParam),'duration'in e&&n(8,H=e.duration),'logoClickable'in e&&n(9,_=e.logoClickable),'logoHidden'in e&&n(10,D=e.logoHidden),'isMobile'in e&&n(11,U=e.isMobile),'showNextPrevButtons'in e&&n(12,O=e.showNextPrevButtons),'nextButtonActive'in e&&n(13,Q=e.nextButtonActive),'prevButtonActive'in e&&n(14,K=e.prevButtonActive),'endScreenVideoTitle'in e&&n(15,W=e.endScreenVideoTitle),'endScreenVideoThumb'in e&&n(16,X=e.endScreenVideoThumb),'isOneVideoPlaylist'in e&&n(17,G=e.isOneVideoPlaylist),'outerContainerRef'in e&&n(78,Z=e.outerContainerRef),'playNextVideo'in e&&n(18,ee=e.playNextVideo),'playPrevVideo'in e&&n(19,te=e.playPrevVideo),'repeatPlaylist'in e&&n(20,ie=e.repeatPlaylist),'callbacks'in e&&n(79,ne=e.callbacks),'fullScreenTarget'in e&&n(80,oe=e.fullScreenTarget),'failoverHosts'in e&&n(81,le=e.failoverHosts)},e.$$.update=()=>{41943040&e.$$.dirty[0]|3&e.$$.dirty[3]&&n(34,Ie=(w===Pt.Video&&$||w===Pt.Ads&&b===At.INACTIVE)&&!m),25165824&e.$$.dirty[0]|402653184&e.$$.dirty[2]&&n(21,Fe=(s||g||a)&&!m),8388624&e.$$.dirty[0]|1207959552&e.$$.dirty[2]&&n(22,je=(I&&h||!I)&&a&&!m),6291456&e.$$.dirty[0]&&n(35,Re=pe&&!(Fe||je)),2048&e.$$.dirty[0]&&ae.ui.isMobile.set(U),2048&e.$$.dirty[0]|637534208&e.$$.dirty[2]&&(Oe!==p&&U&&(clearTimeout(Te),p?me.set(!0):Qe(3e3)),n(88,Oe=p))},[P,z,E,B,I,F,j,R,H,_,D,U,O,Q,K,W,X,G,ee,te,ie,Fe,je,m,g,w,Ee,Le,Ne,qe,_e,De,Ue,Be,Ie,Re,o,y,x,k,re,ce,de,ue,ve,pe,me,he,ge,be,we,$e,ye,xe,ke,Ve,Ce,Me,function(){clearTimeout(Te),me.set(!0)},function(){Qe(500)},function(){clearTimeout(Te),me.set(!0),r&&qe&&!function(e,t){var i,n,o,l,a;return!!e&&(null!==(a=null!==(l=null!==(o=null!==(n=null!==(i=e.matches)&&void 0!==i?i:e.matchesSelector)&&void 0!==n?n:e.mozMatchesSelector)&&void 0!==o?o:e.msMatchesSelector)&&void 0!==l?l:e.oMatchesSelector)&&void 0!==a?a:e.webkitMatchesSelector).call(e,t)}(qe,':hover')&&Qe(3e3)},Ke,Ye,Xe,Je,e=>{be.set(!0),n(31,De=e.clientX),n(32,Ue=e.clientY)},Ze,e=>{U?Ze():o?Je():(Je(),a||(ae.actions.internal.togglePlay(),he.set(!1),2===e.detail&&(se({message:'double click on video'}),Xe())))},()=>{o&&Je()},e=>{Be.keyDownHandler(e)},V,A,S,M,L,N,q,T,Z,ne,oe,le,function(){_e?ae.actions.external.play():Ke(!0)},function(){ae.actions.external.pause()},function(e){U||ae.actions.external.setMuted(e)},function(e){U||e>=0&&e<=1&&ae.actions.external.setVolume(e)},We,Te,Oe,a,s,p,h,b,$,()=>Ye('backward'),()=>Ye('forward'),function(e){J[e?'unshift':'push']((()=>{Ne=e,n(28,Ne)}))},function(e){J[e?'unshift':'push']((()=>{Be=e,n(33,Be)}))},function(e){qe=e,n(29,qe)},function(e){J[e?'unshift':'push']((()=>{Le=e,n(27,Le)}))}]}class Al extends $e{constructor(e){super(),we(this,e,zl,Vl,x,{sources:70,title:0,thumbUrl:1,unitedVideoId:71,albumId:72,statPlace:73,autoplay:74,volume:75,muted:76,fromTime:77,canRewindLive:2,supportLink:3,showAds:4,adsSlotId:5,adsParams:6,adsPreviewParam:7,duration:8,logoClickable:9,logoHidden:10,isMobile:11,showNextPrevButtons:12,nextButtonActive:13,prevButtonActive:14,endScreenVideoTitle:15,endScreenVideoThumb:16,isOneVideoPlaylist:17,outerContainerRef:78,playNextVideo:18,playPrevVideo:19,repeatPlaylist:20,callbacks:79,fullScreenTarget:80,failoverHosts:81,play:82,pause:83,setMuted:84,setVolume:85,seekTime:86},dl,[-1,-1,-1,-1])}get play(){return this.$$.ctx[82]}get pause(){return this.$$.ctx[83]}get setMuted(){return this.$$.ctx[84]}get setVolume(){return this.$$.ctx[85]}get seekTime(){return this.$$.ctx[86]}}function Cl(e){N(e,'v-1oqts7t','.playerStub.v-1oqts7t{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}.stubImage.v-1oqts7t{height:60px}.stubImage-white.v-1oqts7t{filter:brightness(0) invert(1)}.title.v-1oqts7t{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 Sl(e){let t,i;return{c(){t=B('div'),i=F(e[0]),D(t,'class','title v-1oqts7t')},m(e,n){q(e,t,n),L(t,i)},p(e,t){1&t&&U(i,e[0])},d(e){e&&T(t)}}}function Ml(e){let t,i;return{c(){t=B('img'),P(t.src,i='data:image/svg+xml,%3csvg width=\'57\' height=\'60\' fill=\'none\' xmlns=\'http://www.w3.org/2000/svg\'%3e%3cpath d=\'M38.245 6c3.566 0 4.859.371 6.162 1.069a7.27 7.27 0 0 1 3.025 3.024c.697 1.303 1.068 2.597 1.068 6.163v23.489c0 3.566-.371 4.859-1.069 6.162a7.27 7.27 0 0 1-3.024 3.025C43.104 49.629 41.811 50 38.245 50h-19.49c-3.565 0-4.859-.371-6.162-1.069a7.27 7.27 0 0 1-3.024-3.024C8.87 44.604 8.5 43.311 8.5 39.745v-23.49c0-3.565.371-4.859 1.069-6.162a7.27 7.27 0 0 1 3.024-3.024C13.896 6.37 15.19 6 18.756 6h19.489zm.314 3H18.756c-2.799 0-3.761.186-4.749.714a4.27 4.27 0 0 0-1.793 1.793c-.508.95-.7 1.876-.713 4.434L11.5 39.744c0 2.799.186 3.761.714 4.749a4.27 4.27 0 0 0 1.793 1.793c.988.528 1.95.714 4.749.714h19.489c2.798 0 3.76-.186 4.748-.714a4.27 4.27 0 0 0 1.793-1.793c.528-.988.714-1.95.714-4.748v-23.49c0-2.798-.186-3.76-.714-4.748a4.27 4.27 0 0 0-1.793-1.793c-.95-.508-1.876-.7-4.434-.713zM19.22 38c.445 0 .607.046.77.134a.91.91 0 0 1 .377.378c.088.163.134.324.134.77v1.436c0 .446-.046.607-.134.77a.908.908 0 0 1-.378.378c-.162.088-.324.134-.77.134h-1.436c-.446 0-.608-.046-.77-.134a.908.908 0 0 1-.378-.378c-.088-.163-.134-.324-.134-.77v-1.436c0-.446.046-.607.134-.77a.908.908 0 0 1 .378-.378c.162-.088.324-.134.77-.134h1.436zm20 0c.445 0 .606.046.77.134a.91.91 0 0 1 .377.378c.088.163.134.324.134.77v1.436c0 .446-.046.607-.134.77a.908.908 0 0 1-.378.378c-.163.088-.324.134-.77.134h-1.436c-.446 0-.607-.046-.77-.134a.908.908 0 0 1-.378-.378c-.088-.163-.134-.324-.134-.77v-1.436c0-.446.046-.607.134-.77a.908.908 0 0 1 .378-.378c.163-.088.324-.134.77-.134h1.436zm-20-8c.445 0 .607.046.77.134a.91.91 0 0 1 .377.378c.088.162.134.324.134.77v1.436c0 .446-.046.607-.134.77a.908.908 0 0 1-.378.378c-.162.088-.324.134-.77.134h-1.436c-.446 0-.608-.046-.77-.134a.908.908 0 0 1-.378-.378c-.088-.163-.134-.324-.134-.77v-1.436c0-.446.046-.608.134-.77a.908.908 0 0 1 .378-.378c.162-.088.324-.134.77-.134h1.436zm20 0c.445 0 .606.046.77.134a.91.91 0 0 1 .377.378c.088.162.134.324.134.77v1.436c0 .446-.046.607-.134.77a.908.908 0 0 1-.378.378c-.163.088-.324.134-.77.134h-1.436c-.446 0-.607-.046-.77-.134a.908.908 0 0 1-.378-.378c-.088-.163-.134-.324-.134-.77v-1.436c0-.446.046-.608.134-.77a.908.908 0 0 1 .378-.378c.163-.088.324-.134.77-.134h1.436zm-20-8c.445 0 .607.046.77.134a.91.91 0 0 1 .377.378c.088.162.134.324.134.77v1.436c0 .446-.046.608-.134.77a.908.908 0 0 1-.378.378c-.162.088-.324.134-.77.134h-1.436c-.446 0-.608-.046-.77-.134a.908.908 0 0 1-.378-.378c-.088-.162-.134-.324-.134-.77v-1.436c0-.446.046-.608.134-.77a.908.908 0 0 1 .378-.378c.162-.088.324-.134.77-.134h1.436zm20 0c.445 0 .606.046.77.134a.91.91 0 0 1 .377.378c.088.162.134.324.134.77v1.436c0 .446-.046.608-.134.77a.908.908 0 0 1-.378.378c-.163.088-.324.134-.77.134h-1.436c-.446 0-.607-.046-.77-.134a.908.908 0 0 1-.378-.378c-.088-.162-.134-.324-.134-.77v-1.436c0-.446.046-.608.134-.77a.908.908 0 0 1 .378-.378c.163-.088.324-.134.77-.134h1.436zm-20-8c.445 0 .607.046.77.134a.91.91 0 0 1 .377.378c.088.162.134.324.134.77v1.436c0 .446-.046.608-.134.77a.908.908 0 0 1-.378.378c-.162.088-.324.134-.77.134h-1.436c-.446 0-.608-.046-.77-.134a.908.908 0 0 1-.378-.378c-.088-.162-.134-.324-.134-.77v-1.436c0-.446.046-.607.134-.77a.908.908 0 0 1 .378-.378c.162-.088.324-.134.77-.134h1.436zm20 0c.445 0 .606.046.77.134a.91.91 0 0 1 .377.378c.088.162.134.324.134.77v1.436c0 .446-.046.608-.134.77a.908.908 0 0 1-.378.378c-.163.088-.324.134-.77.134h-1.436c-.446 0-.607-.046-.77-.134a.908.908 0 0 1-.378-.378c-.088-.162-.134-.324-.134-.77v-1.436c0-.446.046-.607.134-.77a.908.908 0 0 1 .378-.378c.163-.088.324-.134.77-.134h1.436z\' fill=\'%23909499\'/%3e%3c/svg%3e')||D(t,'src','data:image/svg+xml,%3csvg width=\'57\' height=\'60\' fill=\'none\' xmlns=\'http://www.w3.org/2000/svg\'%3e%3cpath d=\'M38.245 6c3.566 0 4.859.371 6.162 1.069a7.27 7.27 0 0 1 3.025 3.024c.697 1.303 1.068 2.597 1.068 6.163v23.489c0 3.566-.371 4.859-1.069 6.162a7.27 7.27 0 0 1-3.024 3.025C43.104 49.629 41.811 50 38.245 50h-19.49c-3.565 0-4.859-.371-6.162-1.069a7.27 7.27 0 0 1-3.024-3.024C8.87 44.604 8.5 43.311 8.5 39.745v-23.49c0-3.565.371-4.859 1.069-6.162a7.27 7.27 0 0 1 3.024-3.024C13.896 6.37 15.19 6 18.756 6h19.489zm.314 3H18.756c-2.799 0-3.761.186-4.749.714a4.27 4.27 0 0 0-1.793 1.793c-.508.95-.7 1.876-.713 4.434L11.5 39.744c0 2.799.186 3.761.714 4.749a4.27 4.27 0 0 0 1.793 1.793c.988.528 1.95.714 4.749.714h19.489c2.798 0 3.76-.186 4.748-.714a4.27 4.27 0 0 0 1.793-1.793c.528-.988.714-1.95.714-4.748v-23.49c0-2.798-.186-3.76-.714-4.748a4.27 4.27 0 0 0-1.793-1.793c-.95-.508-1.876-.7-4.434-.713zM19.22 38c.445 0 .607.046.77.134a.91.91 0 0 1 .377.378c.088.163.134.324.134.77v1.436c0 .446-.046.607-.134.77a.908.908 0 0 1-.378.378c-.162.088-.324.134-.77.134h-1.436c-.446 0-.608-.046-.77-.134a.908.908 0 0 1-.378-.378c-.088-.163-.134-.324-.134-.77v-1.436c0-.446.046-.607.134-.77a.908.908 0 0 1 .378-.378c.162-.088.324-.134.77-.134h1.436zm20 0c.445 0 .606.046.77.134a.91.91 0 0 1 .377.378c.088.163.134.324.134.77v1.436c0 .446-.046.607-.134.77a.908.908 0 0 1-.378.378c-.163.088-.324.134-.77.134h-1.436c-.446 0-.607-.046-.77-.134a.908.908 0 0 1-.378-.378c-.088-.163-.134-.324-.134-.77v-1.436c0-.446.046-.607.134-.77a.908.908 0 0 1 .378-.378c.163-.088.324-.134.77-.134h1.436zm-20-8c.445 0 .607.046.77.134a.91.91 0 0 1 .377.378c.088.162.134.324.134.77v1.436c0 .446-.046.607-.134.77a.908.908 0 0 1-.378.378c-.162.088-.324.134-.77.134h-1.436c-.446 0-.608-.046-.77-.134a.908.908 0 0 1-.378-.378c-.088-.163-.134-.324-.134-.77v-1.436c0-.446.046-.608.134-.77a.908.908 0 0 1 .378-.378c.162-.088.324-.134.77-.134h1.436zm20 0c.445 0 .606.046.77.134a.91.91 0 0 1 .377.378c.088.162.134.324.134.77v1.436c0 .446-.046.607-.134.77a.908.908 0 0 1-.378.378c-.163.088-.324.134-.77.134h-1.436c-.446 0-.607-.046-.77-.134a.908.908 0 0 1-.378-.378c-.088-.163-.134-.324-.134-.77v-1.436c0-.446.046-.608.134-.77a.908.908 0 0 1 .378-.378c.163-.088.324-.134.77-.134h1.436zm-20-8c.445 0 .607.046.77.134a.91.91 0 0 1 .377.378c.088.162.134.324.134.77v1.436c0 .446-.046.608-.134.77a.908.908 0 0 1-.378.378c-.162.088-.324.134-.77.134h-1.436c-.446 0-.608-.046-.77-.134a.908.908 0 0 1-.378-.378c-.088-.162-.134-.324-.134-.77v-1.436c0-.446.046-.608.134-.77a.908.908 0 0 1 .378-.378c.162-.088.324-.134.77-.134h1.436zm20 0c.445 0 .606.046.77.134a.91.91 0 0 1 .377.378c.088.162.134.324.134.77v1.436c0 .446-.046.608-.134.77a.908.908 0 0 1-.378.378c-.163.088-.324.134-.77.134h-1.436c-.446 0-.607-.046-.77-.134a.908.908 0 0 1-.378-.378c-.088-.162-.134-.324-.134-.77v-1.436c0-.446.046-.608.134-.77a.908.908 0 0 1 .378-.378c.163-.088.324-.134.77-.134h1.436zm-20-8c.445 0 .607.046.77.134a.91.91 0 0 1 .377.378c.088.162.134.324.134.77v1.436c0 .446-.046.608-.134.77a.908.908 0 0 1-.378.378c-.162.088-.324.134-.77.134h-1.436c-.446 0-.608-.046-.77-.134a.908.908 0 0 1-.378-.378c-.088-.162-.134-.324-.134-.77v-1.436c0-.446.046-.607.134-.77a.908.908 0 0 1 .378-.378c.162-.088.324-.134.77-.134h1.436zm20 0c.445 0 .606.046.77.134a.91.91 0 0 1 .377.378c.088.162.134.324.134.77v1.436c0 .446-.046.608-.134.77a.908.908 0 0 1-.378.378c-.163.088-.324.134-.77.134h-1.436c-.446 0-.607-.046-.77-.134a.908.908 0 0 1-.378-.378c-.088-.162-.134-.324-.134-.77v-1.436c0-.446.046-.607.134-.77a.908.908 0 0 1 .378-.378c.163-.088.324-.134.77-.134h1.436z\' fill=\'%23909499\'/%3e%3c/svg%3e'),D(t,'class','stubImage v-1oqts7t'),D(t,'alt',''),Q(t,'stubImage-white',e[1]||'')},m(e,i){q(e,t,i)},p(e,i){2&i&&Q(t,'stubImage-white',e[1]||'')},d(e){e&&T(t)}}}function Ll(e){let t,i,n,o=e[0]&&Sl(e),l=(!e[0]||!e[1])&&Ml(e);return{c(){t=B('div'),o&&o.c(),i=j(),l&&l.c(),D(t,'class','playerStub v-1oqts7t'),D(t,'style',n=e[1]?`background-image: url('${e[1]}')`:'')},m(e,n){q(e,t,n),o&&o.m(t,null),L(t,i),l&&l.m(t,null)},p(e,[a]){e[0]?o?o.p(e,a):(o=Sl(e),o.c(),o.m(t,i)):o&&(o.d(1),o=null),e[0]&&e[1]?l&&(l.d(1),l=null):l?l.p(e,a):(l=Ml(e),l.c(),l.m(t,null)),2&a&&n!==(n=e[1]?`background-image: url('${e[1]}')`:'')&&D(t,'style',n)},i:f,o:f,d(e){e&&T(t),o&&o.d(),l&&l.d()}}}function Nl(e,t,i){let{title:n}=t,{thumbUrl:o}=t;return e.$$set=e=>{'title'in e&&i(0,n=e.title),'thumbUrl'in e&&i(1,o=e.thumbUrl)},[n,o]}class ql extends $e{constructor(e){super(),we(this,e,Nl,Ll,x,{title:0,thumbUrl:1},Cl)}}class Tl extends HTMLElement{constructor(){var e;super(),this.currentPlayingVideoIndex=0,this.needToRepeatPlaylist=!1,this.config=void 0,this._shadowRoot=this.attachShadow({mode:'open'}),this.playerContainer=document.createElement('div'),this.playerContainer.style.width='100%',this.playerContainer.style.height='100%',this._shadowRoot.append(this.playerContainer),this.logger=new u,this.log=this.logger.createComponentLog('VKVideoPlayer'),this.subscription=new d,(null===(e=null===window||void 0===window?void 0:window.videoPlayerConfig)||void 0===e?void 0:e.debugLogs)&&this.subscription.add(this.logger.log$.subscribe((e=>{console.log('%c player web component ','background:#77dd77;',`${e.component}`,e.message)})))}connectedCallback(){const e=this.getAttribute('stub-title'),t=this.getAttribute('stub-thumb-url');this.svelteStubComponent=new ql({target:this.playerContainer,props:{title:e,thumbUrl:t}})}disconnectedCallback(){var e,t;null===(e=this.svelteRootComponent)||void 0===e||e.$destroy(),null===(t=this.svelteStubComponent)||void 0===t||t.$destroy(),this.subscription.unsubscribe()}needToShowNextPrevButtons(){return!!this.config&&this.config.videos.length>1}isNextButtonActive(){return!!this.config&&(this.needToShowNextPrevButtons()&&(this.currentPlayingVideoIndex<this.config.videos.length-1||this.needToRepeatPlaylist))}isPrevButtonActive(){return!!this.config&&(this.needToShowNextPrevButtons()&&(this.currentPlayingVideoIndex>0||this.needToRepeatPlaylist))}getNextVideoInfo(){if(!this.config)return{nextVideoTitle:void 0,nextVideoThumb:void 0};const e=this.config.videos[this.currentPlayingVideoIndex+1]||{};return{nextVideoTitle:e.title,nextVideoThumb:e.thumbUrl}}createPlayer(e,t={}){if(!this.config)return;const{albumId:i,statPlace:n,autoplay:o,volume:l,muted:a,fromTime:s,canRewindLive:r,supportLink:c,showAds:d,adsSlotId:u,adsParams:v={},adsPreviewParam:p,logoClickable:m,logoHidden:h,isMobile:g,fullScreenTarget:f,failoverHosts:b,callbacks:w}=Object.assign(Object.assign({},this.config),t),{sources:$,title:y,thumbUrl:x,unitedVideoId:k,duration:V,adsParams:P={}}=e,z=Object.assign(Object.assign({},v),P),A=this.getNextVideoInfo(),C={sources:$,title:y,thumbUrl:x,unitedVideoId:k,albumId:i,statPlace:n,autoplay:o,muted:a,volume:l,fromTime:s,canRewindLive:r,supportLink:c,showAds:d,adsSlotId:u,adsParams:z,adsPreviewParam:p,duration:V,logoClickable:m,logoHidden:h,isMobile:g,showNextPrevButtons:this.needToShowNextPrevButtons(),nextButtonActive:this.isNextButtonActive(),prevButtonActive:this.isPrevButtonActive(),endScreenVideoTitle:A.nextVideoTitle,endScreenVideoThumb:A.nextVideoThumb,isOneVideoPlaylist:this.isOneVideoPlaylist()};this.log({message:`create player, props: ${JSON.stringify(C)}`}),this.svelteRootComponent=new Al({target:this.playerContainer,props:{sources:$,title:y,thumbUrl:x,unitedVideoId:k,albumId:i,statPlace:n,autoplay:o,muted:a,volume:l,fromTime:s,canRewindLive:r,supportLink:c,showAds:d,adsSlotId:u,adsParams:z,adsPreviewParam:p,duration:V,logoClickable:m,logoHidden:h,isMobile:g,callbacks:w,failoverHosts:b,fullScreenTarget:f,outerContainerRef:this.playerContainer,showNextPrevButtons:this.needToShowNextPrevButtons(),nextButtonActive:this.isNextButtonActive(),prevButtonActive:this.isPrevButtonActive(),endScreenVideoTitle:A.nextVideoTitle,endScreenVideoThumb:A.nextVideoThumb,isOneVideoPlaylist:this.isOneVideoPlaylist(),playNextVideo:()=>this.playNextVideo(),playPrevVideo:()=>this.playPrevVideo(),repeatPlaylist:()=>this.repeatPlaylist()}})}playNextVideo(){this.config&&(this.currentPlayingVideoIndex++,this.currentPlayingVideoIndex>=this.config.videos.length&&(this.currentPlayingVideoIndex=0),this.log({message:`play next video, index: ${this.currentPlayingVideoIndex}`}),this.createPlayerWithCurrentVideo())}playPrevVideo(){this.config&&(this.currentPlayingVideoIndex--,this.currentPlayingVideoIndex<0&&(this.currentPlayingVideoIndex=this.config.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(){var e;if(!this.config)return;const t=this.config.videos[this.currentPlayingVideoIndex];t?(null===(e=this.svelteRootComponent)||void 0===e||e.$destroy(),setTimeout((()=>this.createPlayer(t,{autoplay:!0,fromTime:0})),0)):this.log({message:'no next video'})}initPlayer(e){var t,i,n;if(!Array.isArray(e.videos)||0===e.videos.length)throw new Error('empty videos');this.config=g(e,(e=>e instanceof HTMLElement?e:void 0)),this.config.callbacks=null!==(t=e.callbacks)&&void 0!==t?t:{},this.currentPlayingVideoIndex=0,null===(i=this.svelteStubComponent)||void 0===i||i.$destroy(),null===(n=this.svelteRootComponent)||void 0===n||n.$destroy(),this.createPlayer(e.videos[0])}isOneVideoPlaylist(){return!!this.config&&1===this.config.videos.length}updateNextVideos(e){var t;if(!this.config)return;this.log({message:`update next videos, videos: ${JSON.stringify(e)}`}),this.config.videos.splice(this.currentPlayingVideoIndex+1),this.config.videos.push(...e);const i=this.getNextVideoInfo();null===(t=this.svelteRootComponent)||void 0===t||t.$set({showNextPrevButtons:this.needToShowNextPrevButtons(),nextButtonActive:this.isNextButtonActive(),prevButtonActive:this.isPrevButtonActive(),endScreenVideoTitle:i.nextVideoTitle,endScreenVideoThumb:i.nextVideoThumb,isOneVideoPlaylist:this.isOneVideoPlaylist()})}play(){var e;this.log({message:'play'}),null===(e=this.svelteRootComponent)||void 0===e||e.play()}pause(){var e;this.log({message:'pause'}),null===(e=this.svelteRootComponent)||void 0===e||e.pause()}stop(){var e,t;if(!this.config)return;this.log({message:'stop'}),null===(e=this.svelteStubComponent)||void 0===e||e.$destroy();const i=this.config.videos[0];i&&(null===(t=this.svelteRootComponent)||void 0===t||t.$destroy(),this.createPlayer(i))}setMuted(e){var t;this.log({message:`set muted, muted: ${e}`}),null===(t=this.svelteRootComponent)||void 0===t||t.setMuted(e)}setVolume(e){var t;this.log({message:`set volume, volume: ${e}`}),null===(t=this.svelteRootComponent)||void 0===t||t.setVolume(e)}setRepeat(e){var t;this.log({message:`set repeat, repeat: ${e}`}),this.needToRepeatPlaylist=e,null===(t=this.svelteRootComponent)||void 0===t||t.$set({showNextPrevButtons:this.needToShowNextPrevButtons(),nextButtonActive:this.isNextButtonActive(),prevButtonActive:this.isPrevButtonActive()})}seekTime(e){var t;this.log({message:`seek time, time: ${e}`}),null===(t=this.svelteRootComponent)||void 0===t||t.seekTime(e)}}const El=()=>{window.customElements.define('vk-video-player',Tl)};export{El as registerPlayerWebComponent};